@powerhousedao/workflow 6.2.3-dev.23 → 6.2.3-dev.25

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 (308) hide show
  1. package/README.md +37 -0
  2. package/dist/browser/BlockSelector-QQgOCVH3.js +1355 -0
  3. package/dist/browser/BlockSelector-QQgOCVH3.js.map +1 -0
  4. package/dist/browser/{PieceMarkdown-CZYNY1qQ.js → PieceMarkdown-BY_aQD0M.js} +120 -86
  5. package/dist/browser/PieceMarkdown-BY_aQD0M.js.map +1 -0
  6. package/dist/browser/assets/{entry-4ObkElbc.js → entry-GDzXcBs1.js} +10 -6
  7. package/dist/browser/assets/{projection-entry-4FDMlGcp.js → projection-entry-BJpyPvov.js} +7 -13
  8. package/dist/browser/{connection-DEe5aDuU.js → connection-BUum0hJI.js} +2 -2
  9. package/dist/browser/{connection-DEe5aDuU.js.map → connection-BUum0hJI.js.map} +1 -1
  10. package/dist/browser/connection-form-XKR4zQgQ.js +533 -0
  11. package/dist/browser/connection-form-XKR4zQgQ.js.map +1 -0
  12. package/dist/browser/data-tree-DKrDFeQg.js +1896 -0
  13. package/dist/browser/data-tree-DKrDFeQg.js.map +1 -0
  14. package/dist/browser/document-models/connection/index.js +2 -2
  15. package/dist/browser/document-models/index.js +3 -3
  16. package/dist/browser/document-models/workflow/index.js +2 -2
  17. package/dist/browser/{document-models-BYheX-te.js → document-models-C6ebrsd9.js} +3 -3
  18. package/dist/browser/{document-models-BYheX-te.js.map → document-models-C6ebrsd9.js.map} +1 -1
  19. package/dist/browser/{editor-tgTc0MrV.js → editor-BxtfhdPP.js} +3362 -1612
  20. package/dist/browser/editor-BxtfhdPP.js.map +1 -0
  21. package/dist/browser/editor-C_E_JTp6.js +257 -0
  22. package/dist/browser/editor-C_E_JTp6.js.map +1 -0
  23. package/dist/browser/editor-kbIdHU7F.js +1511 -0
  24. package/dist/browser/editor-kbIdHU7F.js.map +1 -0
  25. package/dist/browser/editors/connection-editor/module.js +1 -1
  26. package/dist/browser/editors/connection-editor/module.js.map +1 -1
  27. package/dist/browser/editors/workflow-editor/module.js +1 -1
  28. package/dist/browser/editors/workflow-editor/module.js.map +1 -1
  29. package/dist/browser/editors/workflow-studio/module.js +1 -1
  30. package/dist/browser/editors/workflow-studio/module.js.map +1 -1
  31. package/dist/browser/index.js +7 -5
  32. package/dist/browser/index.js.map +1 -1
  33. package/dist/{node/module-IRMgzJC1.mjs → browser/module-Bkms70LV.js} +3 -3
  34. package/dist/browser/{module-CYQnNZWl.js.map → module-Bkms70LV.js.map} +1 -1
  35. package/dist/{node/module-IA-Ay7ig.mjs → browser/module-jDZ4pq3W.js} +2 -2
  36. package/dist/browser/{module-12vI18HY.js.map → module-jDZ4pq3W.js.map} +1 -1
  37. package/dist/browser/piece-auth-Z4mZEOtL.js +113 -0
  38. package/dist/browser/piece-auth-Z4mZEOtL.js.map +1 -0
  39. package/dist/browser/reactor/index.js +2 -2
  40. package/dist/browser/{chunk-BoAXSpZd.js → rolldown-runtime-DC62tzP2.js} +2 -2
  41. package/dist/browser/{runtime-api-DQa04P3e.js → runtime-api-xwvg5PzA.js} +41 -124
  42. package/dist/browser/runtime-api-xwvg5PzA.js.map +1 -0
  43. package/dist/browser/style.css +26 -0
  44. package/dist/browser/trigger-text-CdNxQOHw.js +551 -0
  45. package/dist/browser/trigger-text-CdNxQOHw.js.map +1 -0
  46. package/dist/browser/upgrade-manifests-BLrv3cf2.js +8 -0
  47. package/dist/browser/{upgrade-manifests-Cnpfo6kC.js.map → upgrade-manifests-BLrv3cf2.js.map} +1 -1
  48. package/dist/browser/{workflow-CFZUezoY.js → workflow-CGtVlhr8.js} +2 -2
  49. package/dist/browser/{workflow-CFZUezoY.js.map → workflow-CGtVlhr8.js.map} +1 -1
  50. package/dist/node/BlockSelector-COZm6-ev.mjs +1355 -0
  51. package/dist/node/BlockSelector-COZm6-ev.mjs.map +1 -0
  52. package/dist/node/{PieceMarkdown-D9nI2gI2.mjs → PieceMarkdown-Ejo9UTqJ.mjs} +113 -81
  53. package/dist/node/PieceMarkdown-Ejo9UTqJ.mjs.map +1 -0
  54. package/dist/node/{connection-DGsS2Db3.mjs → connection-D544oqVW.mjs} +2 -2
  55. package/dist/node/{connection-DGsS2Db3.mjs.map → connection-D544oqVW.mjs.map} +1 -1
  56. package/dist/node/connection-form-BLduFusc.mjs +533 -0
  57. package/dist/node/connection-form-BLduFusc.mjs.map +1 -0
  58. package/dist/node/data-tree-CmiGqG7C.mjs +1903 -0
  59. package/dist/node/data-tree-CmiGqG7C.mjs.map +1 -0
  60. package/dist/node/document-models/connection/index.mjs +2 -2
  61. package/dist/node/document-models/index.mjs +3 -3
  62. package/dist/node/document-models/workflow/index.mjs +2 -2
  63. package/dist/node/editor-BNgGzvAL.mjs +1511 -0
  64. package/dist/node/editor-BNgGzvAL.mjs.map +1 -0
  65. package/dist/node/{editor-iDEb5EeC.mjs → editor-CLDjPgdl.mjs} +3213 -1509
  66. package/dist/node/editor-CLDjPgdl.mjs.map +1 -0
  67. package/dist/node/editor-CN4PEGrW.mjs +257 -0
  68. package/dist/node/editor-CN4PEGrW.mjs.map +1 -0
  69. package/dist/node/editors/connection-editor/module.mjs +1 -1
  70. package/dist/node/editors/connection-editor/module.mjs.map +1 -1
  71. package/dist/node/editors/workflow-editor/module.mjs +1 -1
  72. package/dist/node/editors/workflow-editor/module.mjs.map +1 -1
  73. package/dist/node/editors/workflow-studio/module.mjs +1 -1
  74. package/dist/node/editors/workflow-studio/module.mjs.map +1 -1
  75. package/dist/node/index.mjs +8 -6
  76. package/dist/node/index.mjs.map +1 -1
  77. package/dist/{browser/module-12vI18HY.js → node/module-BMwJQh65.mjs} +2 -2
  78. package/dist/node/{module-IA-Ay7ig.mjs.map → module-BMwJQh65.mjs.map} +1 -1
  79. package/dist/{browser/module-CYQnNZWl.js → node/module-DuxxhgKs.mjs} +3 -3
  80. package/dist/node/{module-IRMgzJC1.mjs.map → module-DuxxhgKs.mjs.map} +1 -1
  81. package/dist/node/piece-auth-Z4mZEOtL.mjs +113 -0
  82. package/dist/node/piece-auth-Z4mZEOtL.mjs.map +1 -0
  83. package/dist/node/pieces/index.mjs.map +1 -1
  84. package/dist/node/pieces/reactor/index.mjs +230 -488
  85. package/dist/node/pieces/reactor/index.mjs.map +1 -1
  86. package/dist/node/{chunk-BSw8zbkd.mjs → rolldown-runtime-BMI-E3GI.mjs} +11 -4
  87. package/dist/node/{runtime-api-JQ6lSS1Y.mjs → runtime-api-xwvg5PzA.mjs} +41 -124
  88. package/dist/node/runtime-api-xwvg5PzA.mjs.map +1 -0
  89. package/dist/node/style.css +26 -0
  90. package/dist/node/trigger-text-qj_U3Qzd.mjs +551 -0
  91. package/dist/node/trigger-text-qj_U3Qzd.mjs.map +1 -0
  92. package/dist/node/upgrade-manifests-C1sl_M-H.mjs +8 -0
  93. package/dist/node/{upgrade-manifests-3VN0Bfcf.mjs.map → upgrade-manifests-C1sl_M-H.mjs.map} +1 -1
  94. package/dist/node/{workflow-fFvyypuu.mjs → workflow-C-uuQPnf.mjs} +2 -2
  95. package/dist/node/{workflow-fFvyypuu.mjs.map → workflow-C-uuQPnf.mjs.map} +1 -1
  96. package/dist/style.css +927 -252
  97. package/dist/types/document-models/connection/upgrades/versions.d.ts.map +1 -1
  98. package/dist/types/document-models/connection/v1/actions.d.ts +6 -14
  99. package/dist/types/document-models/connection/v1/actions.d.ts.map +1 -1
  100. package/dist/types/document-models/connection/v1/gen/config/creators.d.ts.map +1 -1
  101. package/dist/types/document-models/connection/v1/gen/config/error.d.ts.map +1 -1
  102. package/dist/types/document-models/connection/v1/gen/connection/creators.d.ts.map +1 -1
  103. package/dist/types/document-models/connection/v1/gen/health/creators.d.ts.map +1 -1
  104. package/dist/types/document-models/connection/v1/gen/schema/zod.d.ts.map +1 -1
  105. package/dist/types/document-models/connection/v1/module.d.ts +6 -14
  106. package/dist/types/document-models/connection/v1/module.d.ts.map +1 -1
  107. package/dist/types/document-models/connection/v1/tests/document-model.test.d.ts +0 -8
  108. package/dist/types/document-models/connection/v1/tests/document-model.test.d.ts.map +1 -1
  109. package/dist/types/document-models/document-models.d.ts +15 -31
  110. package/dist/types/document-models/document-models.d.ts.map +1 -1
  111. package/dist/types/document-models/workflow/upgrades/versions.d.ts.map +1 -1
  112. package/dist/types/document-models/workflow/v1/actions.d.ts +9 -17
  113. package/dist/types/document-models/workflow/v1/actions.d.ts.map +1 -1
  114. package/dist/types/document-models/workflow/v1/gen/edges/creators.d.ts.map +1 -1
  115. package/dist/types/document-models/workflow/v1/gen/edges/error.d.ts.map +1 -1
  116. package/dist/types/document-models/workflow/v1/gen/policy/creators.d.ts.map +1 -1
  117. package/dist/types/document-models/workflow/v1/gen/runtime/creators.d.ts.map +1 -1
  118. package/dist/types/document-models/workflow/v1/gen/schema/zod.d.ts.map +1 -1
  119. package/dist/types/document-models/workflow/v1/gen/steps/creators.d.ts.map +1 -1
  120. package/dist/types/document-models/workflow/v1/gen/steps/error.d.ts.map +1 -1
  121. package/dist/types/document-models/workflow/v1/gen/trigger/creators.d.ts.map +1 -1
  122. package/dist/types/document-models/workflow/v1/gen/trigger/error.d.ts.map +1 -1
  123. package/dist/types/document-models/workflow/v1/gen/variables/creators.d.ts.map +1 -1
  124. package/dist/types/document-models/workflow/v1/gen/variables/error.d.ts.map +1 -1
  125. package/dist/types/document-models/workflow/v1/gen/workflow/creators.d.ts.map +1 -1
  126. package/dist/types/document-models/workflow/v1/module.d.ts +9 -17
  127. package/dist/types/document-models/workflow/v1/module.d.ts.map +1 -1
  128. package/dist/types/document-models/workflow/v1/tests/document-model.test.d.ts +0 -8
  129. package/dist/types/document-models/workflow/v1/tests/document-model.test.d.ts.map +1 -1
  130. package/dist/types/editors/connection-editor/ConnectionToolbar.d.ts +2 -0
  131. package/dist/types/editors/connection-editor/ConnectionToolbar.d.ts.map +1 -1
  132. package/dist/types/editors/connection-editor/UsedBy.d.ts +6 -0
  133. package/dist/types/editors/connection-editor/UsedBy.d.ts.map +1 -0
  134. package/dist/types/editors/connection-editor/connection-callbacks.d.ts.map +1 -1
  135. package/dist/types/editors/connection-editor/connection-callbacks.test.d.ts +2 -0
  136. package/dist/types/editors/connection-editor/connection-callbacks.test.d.ts.map +1 -0
  137. package/dist/types/editors/connection-editor/connection-form.d.ts +5 -1
  138. package/dist/types/editors/connection-editor/connection-form.d.ts.map +1 -1
  139. package/dist/types/editors/connection-editor/connection-usage.d.ts.map +1 -0
  140. package/dist/types/editors/connection-editor/connection-usage.test.d.ts.map +1 -0
  141. package/dist/types/editors/connection-editor/editor.d.ts.map +1 -1
  142. package/dist/types/editors/connection-editor/piece-auth.d.ts +2 -0
  143. package/dist/types/editors/connection-editor/piece-auth.d.ts.map +1 -1
  144. package/dist/types/editors/connection-editor/status.d.ts +3 -1
  145. package/dist/types/editors/connection-editor/status.d.ts.map +1 -1
  146. package/dist/types/editors/shared/DocumentErrorBoundary.d.ts.map +1 -1
  147. package/dist/types/editors/shared/controls.d.ts +98 -0
  148. package/dist/types/editors/shared/controls.d.ts.map +1 -0
  149. package/dist/types/editors/shared/data-tree.d.ts +5 -0
  150. package/dist/types/editors/shared/data-tree.d.ts.map +1 -0
  151. package/dist/types/editors/shared/data-viewer.d.ts +7 -0
  152. package/dist/types/editors/shared/data-viewer.d.ts.map +1 -0
  153. package/dist/types/editors/shared/editor-chrome.d.ts +7 -0
  154. package/dist/types/editors/shared/editor-chrome.d.ts.map +1 -0
  155. package/dist/types/editors/shared/icons.d.ts +36 -0
  156. package/dist/types/editors/shared/icons.d.ts.map +1 -0
  157. package/dist/types/editors/workflow-editor/editor.d.ts.map +1 -1
  158. package/dist/types/editors/workflow-editor/runtime-api.d.ts +6 -0
  159. package/dist/types/editors/workflow-editor/runtime-api.d.ts.map +1 -1
  160. package/dist/types/editors/workflow-editor/ui/ActionListEditor.d.ts.map +1 -1
  161. package/dist/types/editors/workflow-editor/ui/Autocomplete.d.ts +1 -0
  162. package/dist/types/editors/workflow-editor/ui/Autocomplete.d.ts.map +1 -1
  163. package/dist/types/editors/workflow-editor/ui/BlockSelector.d.ts +1 -0
  164. package/dist/types/editors/workflow-editor/ui/BlockSelector.d.ts.map +1 -1
  165. package/dist/types/editors/workflow-editor/ui/ConnectionField.d.ts.map +1 -1
  166. package/dist/types/editors/workflow-editor/ui/CreateConnectionModal.d.ts +1 -1
  167. package/dist/types/editors/workflow-editor/ui/CreateConnectionModal.d.ts.map +1 -1
  168. package/dist/types/editors/workflow-editor/ui/ExpressionPicker.d.ts.map +1 -1
  169. package/dist/types/editors/workflow-editor/ui/PieceMarkdown.d.ts.map +1 -1
  170. package/dist/types/editors/workflow-editor/ui/PropertyForm.d.ts.map +1 -1
  171. package/dist/types/editors/workflow-editor/ui/ScheduleBuilder.d.ts +5 -0
  172. package/dist/types/editors/workflow-editor/ui/ScheduleBuilder.d.ts.map +1 -0
  173. package/dist/types/editors/workflow-editor/ui/StepPanel.d.ts +1 -0
  174. package/dist/types/editors/workflow-editor/ui/StepPanel.d.ts.map +1 -1
  175. package/dist/types/editors/workflow-editor/ui/WorkflowCanvas.d.ts.map +1 -1
  176. package/dist/types/editors/workflow-editor/ui/WorkflowEditorApp.d.ts +3 -0
  177. package/dist/types/editors/workflow-editor/ui/WorkflowEditorApp.d.ts.map +1 -1
  178. package/dist/types/editors/workflow-editor/ui/ap-edge.d.ts.map +1 -1
  179. package/dist/types/editors/workflow-editor/ui/ap-layout.d.ts +1 -0
  180. package/dist/types/editors/workflow-editor/ui/ap-layout.d.ts.map +1 -1
  181. package/dist/types/editors/workflow-editor/ui/ap-nodes.d.ts.map +1 -1
  182. package/dist/types/editors/workflow-editor/ui/block-meta.d.ts +6 -0
  183. package/dist/types/editors/workflow-editor/ui/block-meta.d.ts.map +1 -1
  184. package/dist/types/editors/workflow-editor/ui/connection-create.d.ts +1 -1
  185. package/dist/types/editors/workflow-editor/ui/connection-create.d.ts.map +1 -1
  186. package/dist/types/editors/workflow-editor/ui/forms.d.ts +14 -0
  187. package/dist/types/editors/workflow-editor/ui/forms.d.ts.map +1 -1
  188. package/dist/types/editors/workflow-editor/ui/model.test.d.ts +2 -0
  189. package/dist/types/editors/workflow-editor/ui/model.test.d.ts.map +1 -0
  190. package/dist/types/editors/workflow-editor/ui/piece-source.d.ts +9 -0
  191. package/dist/types/editors/workflow-editor/ui/piece-source.d.ts.map +1 -1
  192. package/dist/types/editors/workflow-editor/ui/schedule-draft.d.ts +35 -0
  193. package/dist/types/editors/workflow-editor/ui/schedule-draft.d.ts.map +1 -0
  194. package/dist/types/editors/workflow-editor/ui/schedule-draft.test.d.ts +2 -0
  195. package/dist/types/editors/workflow-editor/ui/schedule-draft.test.d.ts.map +1 -0
  196. package/dist/types/editors/workflow-editor/ui/trigger-text.d.ts +9 -0
  197. package/dist/types/editors/workflow-editor/ui/trigger-text.d.ts.map +1 -0
  198. package/dist/types/editors/workflow-editor/ui/trigger-text.test.d.ts +2 -0
  199. package/dist/types/editors/workflow-editor/ui/trigger-text.test.d.ts.map +1 -0
  200. package/dist/types/editors/workflow-editor/ui/validation.d.ts.map +1 -1
  201. package/dist/types/editors/workflow-studio/components/RunsTable.d.ts +2 -0
  202. package/dist/types/editors/workflow-studio/components/RunsTable.d.ts.map +1 -1
  203. package/dist/types/editors/workflow-studio/components/RunsView.d.ts.map +1 -1
  204. package/dist/types/editors/workflow-studio/components/Sidebar.d.ts +1 -1
  205. package/dist/types/editors/workflow-studio/components/Sidebar.d.ts.map +1 -1
  206. package/dist/types/editors/workflow-studio/components/WorkflowBoard.d.ts +8 -0
  207. package/dist/types/editors/workflow-studio/components/WorkflowBoard.d.ts.map +1 -0
  208. package/dist/types/editors/workflow-studio/components/WorkflowHeader.d.ts.map +1 -1
  209. package/dist/types/editors/workflow-studio/components/WorkflowSteps.d.ts.map +1 -1
  210. package/dist/types/editors/workflow-studio/components/WorkflowStudio.d.ts.map +1 -1
  211. package/dist/types/editors/workflow-studio/components/chain.d.ts +18 -0
  212. package/dist/types/editors/workflow-studio/components/chain.d.ts.map +1 -0
  213. package/dist/types/editors/workflow-studio/components/run-format.d.ts +29 -6
  214. package/dist/types/editors/workflow-studio/components/run-format.d.ts.map +1 -1
  215. package/dist/types/editors/workflow-studio/components/run-format.test.d.ts +2 -0
  216. package/dist/types/editors/workflow-studio/components/run-format.test.d.ts.map +1 -0
  217. package/dist/types/editors/workflow-studio/components/run-timeline.test.d.ts +2 -0
  218. package/dist/types/editors/workflow-studio/components/run-timeline.test.d.ts.map +1 -0
  219. package/dist/types/editors/workflow-studio/components/ui.d.ts +20 -0
  220. package/dist/types/editors/workflow-studio/components/ui.d.ts.map +1 -0
  221. package/dist/types/editors/workflow-studio/components/useRuns.d.ts +1 -1
  222. package/dist/types/editors/workflow-studio/components/useRuns.d.ts.map +1 -1
  223. package/dist/types/pieces/index.d.ts.map +1 -1
  224. package/dist/types/pieces/reactor/index.d.ts.map +1 -1
  225. package/dist/types/pieces/reactor/lib/reactor.d.ts.map +1 -1
  226. package/dist/types/pieces/reactor/lib/triggers/document-event.d.ts +12 -12
  227. package/dist/types/playwright.config.d.ts +3 -0
  228. package/dist/types/playwright.config.d.ts.map +1 -0
  229. package/dist/types/scripts/ui-shots.d.ts +2 -0
  230. package/dist/types/scripts/ui-shots.d.ts.map +1 -0
  231. package/dist/types/scripts/ui-stack.d.ts +77 -0
  232. package/dist/types/scripts/ui-stack.d.ts.map +1 -0
  233. package/dist/types/test/ui/connection-editor.spec.d.ts +2 -0
  234. package/dist/types/test/ui/connection-editor.spec.d.ts.map +1 -0
  235. package/dist/types/test/ui/data-viewer.spec.d.ts +2 -0
  236. package/dist/types/test/ui/data-viewer.spec.d.ts.map +1 -0
  237. package/dist/types/test/ui/fixtures.d.ts +9 -0
  238. package/dist/types/test/ui/fixtures.d.ts.map +1 -0
  239. package/dist/types/test/ui/global-setup.d.ts +2 -0
  240. package/dist/types/test/ui/global-setup.d.ts.map +1 -0
  241. package/dist/types/test/ui/pieces.spec.d.ts +2 -0
  242. package/dist/types/test/ui/pieces.spec.d.ts.map +1 -0
  243. package/dist/types/test/ui/step-panel.spec.d.ts +2 -0
  244. package/dist/types/test/ui/step-panel.spec.d.ts.map +1 -0
  245. package/dist/types/test/ui/studio.spec.d.ts +2 -0
  246. package/dist/types/test/ui/studio.spec.d.ts.map +1 -0
  247. package/dist/types/vitest.config.d.ts.map +1 -1
  248. package/package.json +18 -11
  249. package/dist/browser/PieceMarkdown-CZYNY1qQ.js.map +0 -1
  250. package/dist/browser/ap-layout-DLTZBpE7.js +0 -331
  251. package/dist/browser/ap-layout-DLTZBpE7.js.map +0 -1
  252. package/dist/browser/connection-form-B_3_LFlh.js +0 -453
  253. package/dist/browser/connection-form-B_3_LFlh.js.map +0 -1
  254. package/dist/browser/editor-D2hD_zy5.js +0 -134
  255. package/dist/browser/editor-D2hD_zy5.js.map +0 -1
  256. package/dist/browser/editor-DPQptW3F.js +0 -1550
  257. package/dist/browser/editor-DPQptW3F.js.map +0 -1
  258. package/dist/browser/editor-tgTc0MrV.js.map +0 -1
  259. package/dist/browser/runtime-api-DQa04P3e.js.map +0 -1
  260. package/dist/browser/status-kpDX5CIA.js +0 -11
  261. package/dist/browser/status-kpDX5CIA.js.map +0 -1
  262. package/dist/browser/upgrade-manifests-Cnpfo6kC.js +0 -8
  263. package/dist/browser/use-runtime-url-CSz0PsWV.js +0 -181
  264. package/dist/browser/use-runtime-url-CSz0PsWV.js.map +0 -1
  265. package/dist/node/PieceMarkdown-D9nI2gI2.mjs.map +0 -1
  266. package/dist/node/ap-layout-DDOX4Vxv.mjs +0 -331
  267. package/dist/node/ap-layout-DDOX4Vxv.mjs.map +0 -1
  268. package/dist/node/connection-form-CTNkgu_d.mjs +0 -453
  269. package/dist/node/connection-form-CTNkgu_d.mjs.map +0 -1
  270. package/dist/node/editor-gpF-ytd5.mjs +0 -1550
  271. package/dist/node/editor-gpF-ytd5.mjs.map +0 -1
  272. package/dist/node/editor-iDEb5EeC.mjs.map +0 -1
  273. package/dist/node/editor-sBw5dTYS.mjs +0 -134
  274. package/dist/node/editor-sBw5dTYS.mjs.map +0 -1
  275. package/dist/node/runtime-api-JQ6lSS1Y.mjs.map +0 -1
  276. package/dist/node/status-CDRcDUMS.mjs +0 -11
  277. package/dist/node/status-CDRcDUMS.mjs.map +0 -1
  278. package/dist/node/upgrade-manifests-3VN0Bfcf.mjs +0 -8
  279. package/dist/node/use-runtime-url-BOooH4kU.mjs +0 -181
  280. package/dist/node/use-runtime-url-BOooH4kU.mjs.map +0 -1
  281. package/dist/types/document-models/connection/v1/tests/config.test.d.ts +0 -2
  282. package/dist/types/document-models/connection/v1/tests/config.test.d.ts.map +0 -1
  283. package/dist/types/document-models/connection/v1/tests/connection.test.d.ts +0 -2
  284. package/dist/types/document-models/connection/v1/tests/connection.test.d.ts.map +0 -1
  285. package/dist/types/document-models/connection/v1/tests/health.test.d.ts +0 -2
  286. package/dist/types/document-models/connection/v1/tests/health.test.d.ts.map +0 -1
  287. package/dist/types/document-models/workflow/v1/tests/edges.test.d.ts +0 -2
  288. package/dist/types/document-models/workflow/v1/tests/edges.test.d.ts.map +0 -1
  289. package/dist/types/document-models/workflow/v1/tests/policy.test.d.ts +0 -2
  290. package/dist/types/document-models/workflow/v1/tests/policy.test.d.ts.map +0 -1
  291. package/dist/types/document-models/workflow/v1/tests/runtime.test.d.ts +0 -2
  292. package/dist/types/document-models/workflow/v1/tests/runtime.test.d.ts.map +0 -1
  293. package/dist/types/document-models/workflow/v1/tests/steps.test.d.ts +0 -2
  294. package/dist/types/document-models/workflow/v1/tests/steps.test.d.ts.map +0 -1
  295. package/dist/types/document-models/workflow/v1/tests/trigger.test.d.ts +0 -2
  296. package/dist/types/document-models/workflow/v1/tests/trigger.test.d.ts.map +0 -1
  297. package/dist/types/document-models/workflow/v1/tests/variables.test.d.ts +0 -2
  298. package/dist/types/document-models/workflow/v1/tests/variables.test.d.ts.map +0 -1
  299. package/dist/types/document-models/workflow/v1/tests/workflow.test.d.ts +0 -2
  300. package/dist/types/document-models/workflow/v1/tests/workflow.test.d.ts.map +0 -1
  301. package/dist/types/editors/workflow-studio/components/ConnectionView.d.ts +0 -7
  302. package/dist/types/editors/workflow-studio/components/ConnectionView.d.ts.map +0 -1
  303. package/dist/types/editors/workflow-studio/components/EditorToolbar.d.ts +0 -8
  304. package/dist/types/editors/workflow-studio/components/EditorToolbar.d.ts.map +0 -1
  305. package/dist/types/editors/workflow-studio/components/connection-usage.d.ts.map +0 -1
  306. package/dist/types/editors/workflow-studio/components/connection-usage.test.d.ts.map +0 -1
  307. /package/dist/types/editors/{workflow-studio/components → connection-editor}/connection-usage.d.ts +0 -0
  308. /package/dist/types/editors/{workflow-studio/components → connection-editor}/connection-usage.test.d.ts +0 -0
@@ -72,7 +72,6 @@ function cached(getter) {
72
72
  Object.defineProperty(this, "value", { value });
73
73
  return value;
74
74
  }
75
- throw new Error("cached value already set");
76
75
  } };
77
76
  }
78
77
  function nullish(input) {
@@ -105,15 +104,6 @@ const captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace
105
104
  function isObject(data) {
106
105
  return typeof data === "object" && data !== null && !Array.isArray(data);
107
106
  }
108
- cached(() => {
109
- if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) return false;
110
- try {
111
- new Function("");
112
- return true;
113
- } catch (_) {
114
- return false;
115
- }
116
- });
117
107
  function isPlainObject(o) {
118
108
  if (isObject(o) === false) return false;
119
109
  const ctor = o.constructor;
@@ -124,7 +114,7 @@ function isPlainObject(o) {
124
114
  if (Object.prototype.hasOwnProperty.call(prot, "isPrototypeOf") === false) return false;
125
115
  return true;
126
116
  }
127
- const propertyKeyTypes = new Set([
117
+ const propertyKeyTypes = /* @__PURE__ */ new Set([
128
118
  "string",
129
119
  "number",
130
120
  "symbol"
@@ -157,7 +147,6 @@ function optionalKeys(shape) {
157
147
  return shape[k]._zod.optin === "optional" && shape[k]._zod.optout === "optional";
158
148
  });
159
149
  }
160
- Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER, -Number.MAX_VALUE, Number.MAX_VALUE;
161
150
  function aborted(x, startIndex = 0) {
162
151
  if (x.aborted === true) return true;
163
152
  for (let i = startIndex; i < x.issues.length; i++) if (x.issues[i]?.continue !== true) return true;
@@ -230,13 +219,13 @@ const _parse = (_Err) => (schema, value, _ctx, _params) => {
230
219
  }, ctx);
231
220
  if (result instanceof Promise) throw new $ZodAsyncError();
232
221
  if (result.issues.length) {
233
- const e = new (_params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
222
+ const e = new ((_params?.Err) ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
234
223
  captureStackTrace(e, _params?.callee);
235
224
  throw e;
236
225
  }
237
226
  return result.value;
238
227
  };
239
- const parse = /* @__PURE__ */ _parse($ZodRealError);
228
+ const parse = /* @__PURE__*/ _parse($ZodRealError);
240
229
  const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
241
230
  const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
242
231
  let result = schema._zod.run({
@@ -245,13 +234,13 @@ const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
245
234
  }, ctx);
246
235
  if (result instanceof Promise) result = await result;
247
236
  if (result.issues.length) {
248
- const e = new (params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
237
+ const e = new ((params?.Err) ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
249
238
  captureStackTrace(e, params?.callee);
250
239
  throw e;
251
240
  }
252
241
  return result.value;
253
242
  };
254
- const parseAsync = /* @__PURE__ */ _parseAsync($ZodRealError);
243
+ const parseAsync = /* @__PURE__*/ _parseAsync($ZodRealError);
255
244
  const _safeParse = (_Err) => (schema, value, _ctx) => {
256
245
  const ctx = _ctx ? {
257
246
  ..._ctx,
@@ -270,7 +259,7 @@ const _safeParse = (_Err) => (schema, value, _ctx) => {
270
259
  data: result.value
271
260
  };
272
261
  };
273
- const safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
262
+ const safeParse = /* @__PURE__*/ _safeParse($ZodRealError);
274
263
  const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
275
264
  const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
276
265
  let result = schema._zod.run({
@@ -286,7 +275,7 @@ const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
286
275
  data: result.value
287
276
  };
288
277
  };
289
- const safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
278
+ const safeParseAsync = /* @__PURE__*/ _safeParseAsync($ZodRealError);
290
279
  const string$1 = (params) => {
291
280
  const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
292
281
  return new RegExp(`^${regex}$`);
@@ -295,13 +284,13 @@ const number$2 = /^-?\d+(?:\.\d+)?$/;
295
284
  const boolean$1 = /^(?:true|false)$/i;
296
285
  //#endregion
297
286
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js
298
- const $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
287
+ const $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => {
299
288
  var _a;
300
289
  inst._zod ?? (inst._zod = {});
301
290
  inst._zod.def = def;
302
291
  (_a = inst._zod).onattach ?? (_a.onattach = []);
303
292
  });
304
- const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
293
+ const $ZodCheckMinLength = /*@__PURE__*/ $constructor("$ZodCheckMinLength", (inst, def) => {
305
294
  var _a;
306
295
  $ZodCheck.init(inst, def);
307
296
  (_a = inst._zod.def).when ?? (_a.when = (payload) => {
@@ -327,7 +316,7 @@ const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (i
327
316
  });
328
317
  };
329
318
  });
330
- const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
319
+ const $ZodCheckStringFormat = /*@__PURE__*/ $constructor("$ZodCheckStringFormat", (inst, def) => {
331
320
  var _a, _b;
332
321
  $ZodCheck.init(inst, def);
333
322
  inst._zod.onattach.push((inst) => {
@@ -353,7 +342,7 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
353
342
  });
354
343
  else (_b = inst._zod).check ?? (_b.check = () => {});
355
344
  });
356
- const $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def) => {
345
+ const $ZodCheckRegex = /*@__PURE__*/ $constructor("$ZodCheckRegex", (inst, def) => {
357
346
  $ZodCheckStringFormat.init(inst, def);
358
347
  inst._zod.check = (payload) => {
359
348
  def.pattern.lastIndex = 0;
@@ -378,7 +367,7 @@ const version = {
378
367
  };
379
368
  //#endregion
380
369
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js
381
- const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
370
+ const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
382
371
  var _a;
383
372
  inst ?? (inst = {});
384
373
  inst._zod.def = def;
@@ -466,7 +455,7 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
466
455
  version: 1
467
456
  }));
468
457
  });
469
- const $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
458
+ const $ZodString = /*@__PURE__*/ $constructor("$ZodString", (inst, def) => {
470
459
  $ZodType.init(inst, def);
471
460
  inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string$1(inst._zod.bag);
472
461
  inst._zod.parse = (payload, _) => {
@@ -483,7 +472,7 @@ const $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
483
472
  return payload;
484
473
  };
485
474
  });
486
- const $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
475
+ const $ZodNumber = /*@__PURE__*/ $constructor("$ZodNumber", (inst, def) => {
487
476
  $ZodType.init(inst, def);
488
477
  inst._zod.pattern = inst._zod.bag.pattern ?? number$2;
489
478
  inst._zod.parse = (payload, _ctx) => {
@@ -503,7 +492,7 @@ const $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
503
492
  return payload;
504
493
  };
505
494
  });
506
- const $ZodBoolean = /* @__PURE__ */ $constructor("$ZodBoolean", (inst, def) => {
495
+ const $ZodBoolean = /*@__PURE__*/ $constructor("$ZodBoolean", (inst, def) => {
507
496
  $ZodType.init(inst, def);
508
497
  inst._zod.pattern = boolean$1;
509
498
  inst._zod.parse = (payload, _ctx) => {
@@ -521,15 +510,15 @@ const $ZodBoolean = /* @__PURE__ */ $constructor("$ZodBoolean", (inst, def) => {
521
510
  return payload;
522
511
  };
523
512
  });
524
- const $ZodAny = /* @__PURE__ */ $constructor("$ZodAny", (inst, def) => {
513
+ const $ZodAny = /*@__PURE__*/ $constructor("$ZodAny", (inst, def) => {
525
514
  $ZodType.init(inst, def);
526
515
  inst._zod.parse = (payload) => payload;
527
516
  });
528
- const $ZodUnknown = /* @__PURE__ */ $constructor("$ZodUnknown", (inst, def) => {
517
+ const $ZodUnknown = /*@__PURE__*/ $constructor("$ZodUnknown", (inst, def) => {
529
518
  $ZodType.init(inst, def);
530
519
  inst._zod.parse = (payload) => payload;
531
520
  });
532
- const $ZodVoid = /* @__PURE__ */ $constructor("$ZodVoid", (inst, def) => {
521
+ const $ZodVoid = /*@__PURE__*/ $constructor("$ZodVoid", (inst, def) => {
533
522
  $ZodType.init(inst, def);
534
523
  inst._zod.parse = (payload, _ctx) => {
535
524
  const input = payload.value;
@@ -547,7 +536,7 @@ function handleArrayResult(result, final, index) {
547
536
  if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues));
548
537
  final.value[index] = result.value;
549
538
  }
550
- const $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
539
+ const $ZodArray = /*@__PURE__*/ $constructor("$ZodArray", (inst, def) => {
551
540
  $ZodType.init(inst, def);
552
541
  inst._zod.parse = (payload, ctx) => {
553
542
  const input = payload.value;
@@ -626,7 +615,7 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
626
615
  return payload;
627
616
  });
628
617
  }
629
- const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
618
+ const $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
630
619
  $ZodType.init(inst, def);
631
620
  if (!Object.getOwnPropertyDescriptor(def, "shape")?.get) {
632
621
  const sh = def.shape;
@@ -699,7 +688,7 @@ function handleUnionResults(results, final, inst, ctx) {
699
688
  });
700
689
  return final;
701
690
  }
702
- const $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
691
+ const $ZodUnion = /*@__PURE__*/ $constructor("$ZodUnion", (inst, def) => {
703
692
  $ZodType.init(inst, def);
704
693
  defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0);
705
694
  defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0);
@@ -737,62 +726,7 @@ const $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
737
726
  });
738
727
  };
739
728
  });
740
- const $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnion", (inst, def) => {
741
- def.inclusive = false;
742
- $ZodUnion.init(inst, def);
743
- const _super = inst._zod.parse;
744
- defineLazy(inst._zod, "propValues", () => {
745
- const propValues = {};
746
- for (const option of def.options) {
747
- const pv = option._zod.propValues;
748
- if (!pv || Object.keys(pv).length === 0) throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(option)}"`);
749
- for (const [k, v] of Object.entries(pv)) {
750
- if (!propValues[k]) propValues[k] = /* @__PURE__ */ new Set();
751
- for (const val of v) propValues[k].add(val);
752
- }
753
- }
754
- return propValues;
755
- });
756
- const disc = cached(() => {
757
- const opts = def.options;
758
- const map = /* @__PURE__ */ new Map();
759
- for (const o of opts) {
760
- const values = o._zod.propValues?.[def.discriminator];
761
- if (!values || values.size === 0) throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(o)}"`);
762
- for (const v of values) {
763
- if (map.has(v)) throw new Error(`Duplicate discriminator value "${String(v)}"`);
764
- map.set(v, o);
765
- }
766
- }
767
- return map;
768
- });
769
- inst._zod.parse = (payload, ctx) => {
770
- const input = payload.value;
771
- if (!isObject(input)) {
772
- payload.issues.push({
773
- code: "invalid_type",
774
- expected: "object",
775
- input,
776
- inst
777
- });
778
- return payload;
779
- }
780
- const opt = disc.value.get(input?.[def.discriminator]);
781
- if (opt) return opt._zod.run(payload, ctx);
782
- if (def.unionFallback) return _super(payload, ctx);
783
- payload.issues.push({
784
- code: "invalid_union",
785
- errors: [],
786
- note: "No matching discriminator",
787
- discriminator: def.discriminator,
788
- input,
789
- path: [def.discriminator],
790
- inst
791
- });
792
- return payload;
793
- };
794
- });
795
- const $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
729
+ const $ZodRecord = /*@__PURE__*/ $constructor("$ZodRecord", (inst, def) => {
796
730
  $ZodType.init(inst, def);
797
731
  inst._zod.parse = (payload, ctx) => {
798
732
  const input = payload.value;
@@ -883,7 +817,7 @@ const $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
883
817
  return payload;
884
818
  };
885
819
  });
886
- const $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def) => {
820
+ const $ZodEnum = /*@__PURE__*/ $constructor("$ZodEnum", (inst, def) => {
887
821
  $ZodType.init(inst, def);
888
822
  const values = getEnumValues(def.entries);
889
823
  const valuesSet = new Set(values);
@@ -901,7 +835,7 @@ const $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def) => {
901
835
  return payload;
902
836
  };
903
837
  });
904
- const $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
838
+ const $ZodLiteral = /*@__PURE__*/ $constructor("$ZodLiteral", (inst, def) => {
905
839
  $ZodType.init(inst, def);
906
840
  if (def.values.length === 0) throw new Error("Cannot create literal schema with no valid values");
907
841
  const values = new Set(def.values);
@@ -919,7 +853,7 @@ const $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
919
853
  return payload;
920
854
  };
921
855
  });
922
- const $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
856
+ const $ZodTransform = /*@__PURE__*/ $constructor("$ZodTransform", (inst, def) => {
923
857
  $ZodType.init(inst, def);
924
858
  inst._zod.parse = (payload, ctx) => {
925
859
  if (ctx.direction === "backward") throw new $ZodEncodeError(inst.constructor.name);
@@ -940,12 +874,12 @@ function handleOptionalResult(result, input) {
940
874
  };
941
875
  return result;
942
876
  }
943
- const $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
877
+ const $ZodOptional = /*@__PURE__*/ $constructor("$ZodOptional", (inst, def) => {
944
878
  $ZodType.init(inst, def);
945
879
  inst._zod.optin = "optional";
946
880
  inst._zod.optout = "optional";
947
881
  defineLazy(inst._zod, "values", () => {
948
- return def.innerType._zod.values ? new Set([...def.innerType._zod.values, void 0]) : void 0;
882
+ return def.innerType._zod.values ? /* @__PURE__ */ new Set([...def.innerType._zod.values, void 0]) : void 0;
949
883
  });
950
884
  defineLazy(inst._zod, "pattern", () => {
951
885
  const pattern = def.innerType._zod.pattern;
@@ -961,7 +895,7 @@ const $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) =>
961
895
  return def.innerType._zod.run(payload, ctx);
962
896
  };
963
897
  });
964
- const $ZodNullable = /* @__PURE__ */ $constructor("$ZodNullable", (inst, def) => {
898
+ const $ZodNullable = /*@__PURE__*/ $constructor("$ZodNullable", (inst, def) => {
965
899
  $ZodType.init(inst, def);
966
900
  defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
967
901
  defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
@@ -970,14 +904,14 @@ const $ZodNullable = /* @__PURE__ */ $constructor("$ZodNullable", (inst, def) =>
970
904
  return pattern ? new RegExp(`^(${cleanRegex(pattern.source)}|null)$`) : void 0;
971
905
  });
972
906
  defineLazy(inst._zod, "values", () => {
973
- return def.innerType._zod.values ? new Set([...def.innerType._zod.values, null]) : void 0;
907
+ return def.innerType._zod.values ? /* @__PURE__ */ new Set([...def.innerType._zod.values, null]) : void 0;
974
908
  });
975
909
  inst._zod.parse = (payload, ctx) => {
976
910
  if (payload.value === null) return payload;
977
911
  return def.innerType._zod.run(payload, ctx);
978
912
  };
979
913
  });
980
- const $ZodPipe = /* @__PURE__ */ $constructor("$ZodPipe", (inst, def) => {
914
+ const $ZodPipe = /*@__PURE__*/ $constructor("$ZodPipe", (inst, def) => {
981
915
  $ZodType.init(inst, def);
982
916
  defineLazy(inst._zod, "values", () => def.in._zod.values);
983
917
  defineLazy(inst._zod, "optin", () => def.in._zod.optin);
@@ -1004,7 +938,7 @@ function handlePipeResult(left, next, ctx) {
1004
938
  issues: left.issues
1005
939
  }, ctx);
1006
940
  }
1007
- const $ZodCustom = /* @__PURE__ */ $constructor("$ZodCustom", (inst, def) => {
941
+ const $ZodCustom = /*@__PURE__*/ $constructor("$ZodCustom", (inst, def) => {
1008
942
  $ZodCheck.init(inst, def);
1009
943
  $ZodType.init(inst, def);
1010
944
  inst._zod.parse = (payload, _) => {
@@ -1031,62 +965,15 @@ function handleRefineResult(result, payload, input, inst) {
1031
965
  }
1032
966
  }
1033
967
  //#endregion
1034
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
1035
- var _a;
1036
- var $ZodRegistry = class {
1037
- constructor() {
1038
- this._map = /* @__PURE__ */ new WeakMap();
1039
- this._idmap = /* @__PURE__ */ new Map();
1040
- }
1041
- add(schema, ..._meta) {
1042
- const meta = _meta[0];
1043
- this._map.set(schema, meta);
1044
- if (meta && typeof meta === "object" && "id" in meta) this._idmap.set(meta.id, schema);
1045
- return this;
1046
- }
1047
- clear() {
1048
- this._map = /* @__PURE__ */ new WeakMap();
1049
- this._idmap = /* @__PURE__ */ new Map();
1050
- return this;
1051
- }
1052
- remove(schema) {
1053
- const meta = this._map.get(schema);
1054
- if (meta && typeof meta === "object" && "id" in meta) this._idmap.delete(meta.id);
1055
- this._map.delete(schema);
1056
- return this;
1057
- }
1058
- get(schema) {
1059
- const p = schema._zod.parent;
1060
- if (p) {
1061
- const pm = { ...this.get(p) ?? {} };
1062
- delete pm.id;
1063
- const f = {
1064
- ...pm,
1065
- ...this._map.get(schema)
1066
- };
1067
- return Object.keys(f).length ? f : void 0;
1068
- }
1069
- return this._map.get(schema);
1070
- }
1071
- has(schema) {
1072
- return this._map.has(schema);
1073
- }
1074
- };
1075
- function registry() {
1076
- return new $ZodRegistry();
1077
- }
1078
- (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
1079
- globalThis.__zod_globalRegistry;
1080
- //#endregion
1081
968
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
1082
- /* @__NO_SIDE_EFFECTS__ */
969
+ // @__NO_SIDE_EFFECTS__
1083
970
  function _string(Class, params) {
1084
971
  return new Class({
1085
972
  type: "string",
1086
973
  ...normalizeParams(params)
1087
974
  });
1088
975
  }
1089
- /* @__NO_SIDE_EFFECTS__ */
976
+ // @__NO_SIDE_EFFECTS__
1090
977
  function _number(Class, params) {
1091
978
  return new Class({
1092
979
  type: "number",
@@ -1094,29 +981,29 @@ function _number(Class, params) {
1094
981
  ...normalizeParams(params)
1095
982
  });
1096
983
  }
1097
- /* @__NO_SIDE_EFFECTS__ */
984
+ // @__NO_SIDE_EFFECTS__
1098
985
  function _boolean(Class, params) {
1099
986
  return new Class({
1100
987
  type: "boolean",
1101
988
  ...normalizeParams(params)
1102
989
  });
1103
990
  }
1104
- /* @__NO_SIDE_EFFECTS__ */
991
+ // @__NO_SIDE_EFFECTS__
1105
992
  function _any(Class) {
1106
993
  return new Class({ type: "any" });
1107
994
  }
1108
- /* @__NO_SIDE_EFFECTS__ */
995
+ // @__NO_SIDE_EFFECTS__
1109
996
  function _unknown(Class) {
1110
997
  return new Class({ type: "unknown" });
1111
998
  }
1112
- /* @__NO_SIDE_EFFECTS__ */
999
+ // @__NO_SIDE_EFFECTS__
1113
1000
  function _void$1(Class, params) {
1114
1001
  return new Class({
1115
1002
  type: "void",
1116
1003
  ...normalizeParams(params)
1117
1004
  });
1118
1005
  }
1119
- /* @__NO_SIDE_EFFECTS__ */
1006
+ // @__NO_SIDE_EFFECTS__
1120
1007
  function _minLength(minimum, params) {
1121
1008
  return new $ZodCheckMinLength({
1122
1009
  check: "min_length",
@@ -1124,7 +1011,7 @@ function _minLength(minimum, params) {
1124
1011
  minimum
1125
1012
  });
1126
1013
  }
1127
- /* @__NO_SIDE_EFFECTS__ */
1014
+ // @__NO_SIDE_EFFECTS__
1128
1015
  function _regex(pattern, params) {
1129
1016
  return new $ZodCheckRegex({
1130
1017
  check: "string_format",
@@ -1133,7 +1020,7 @@ function _regex(pattern, params) {
1133
1020
  pattern
1134
1021
  });
1135
1022
  }
1136
- /* @__NO_SIDE_EFFECTS__ */
1023
+ // @__NO_SIDE_EFFECTS__
1137
1024
  function _custom(Class, fn, _params) {
1138
1025
  const norm = normalizeParams(_params);
1139
1026
  norm.abort ?? (norm.abort = true);
@@ -1146,7 +1033,7 @@ function _custom(Class, fn, _params) {
1146
1033
  }
1147
1034
  //#endregion
1148
1035
  //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/schemas.js
1149
- const ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
1036
+ const ZodMiniType = /*@__PURE__*/ $constructor("ZodMiniType", (inst, def) => {
1150
1037
  if (!inst._zod) throw new Error("Uninitialized schema in ZodMiniType.");
1151
1038
  $ZodType.init(inst, def);
1152
1039
  inst.def = def;
@@ -1174,59 +1061,59 @@ const ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
1174
1061
  });
1175
1062
  inst.apply = (fn) => fn(inst);
1176
1063
  });
1177
- const ZodMiniString = /* @__PURE__ */ $constructor("ZodMiniString", (inst, def) => {
1064
+ const ZodMiniString = /*@__PURE__*/ $constructor("ZodMiniString", (inst, def) => {
1178
1065
  $ZodString.init(inst, def);
1179
1066
  ZodMiniType.init(inst, def);
1180
1067
  });
1181
- /* @__NO_SIDE_EFFECTS__ */
1068
+ // @__NO_SIDE_EFFECTS__
1182
1069
  function string(params) {
1183
1070
  return /* @__PURE__ */ _string(ZodMiniString, params);
1184
1071
  }
1185
- const ZodMiniNumber = /* @__PURE__ */ $constructor("ZodMiniNumber", (inst, def) => {
1072
+ const ZodMiniNumber = /*@__PURE__*/ $constructor("ZodMiniNumber", (inst, def) => {
1186
1073
  $ZodNumber.init(inst, def);
1187
1074
  ZodMiniType.init(inst, def);
1188
1075
  });
1189
- /* @__NO_SIDE_EFFECTS__ */
1076
+ // @__NO_SIDE_EFFECTS__
1190
1077
  function number$1(params) {
1191
1078
  return /* @__PURE__ */ _number(ZodMiniNumber, params);
1192
1079
  }
1193
- const ZodMiniBoolean = /* @__PURE__ */ $constructor("ZodMiniBoolean", (inst, def) => {
1080
+ const ZodMiniBoolean = /*@__PURE__*/ $constructor("ZodMiniBoolean", (inst, def) => {
1194
1081
  $ZodBoolean.init(inst, def);
1195
1082
  ZodMiniType.init(inst, def);
1196
1083
  });
1197
- /* @__NO_SIDE_EFFECTS__ */
1084
+ // @__NO_SIDE_EFFECTS__
1198
1085
  function boolean(params) {
1199
1086
  return /* @__PURE__ */ _boolean(ZodMiniBoolean, params);
1200
1087
  }
1201
- const ZodMiniAny = /* @__PURE__ */ $constructor("ZodMiniAny", (inst, def) => {
1088
+ const ZodMiniAny = /*@__PURE__*/ $constructor("ZodMiniAny", (inst, def) => {
1202
1089
  $ZodAny.init(inst, def);
1203
1090
  ZodMiniType.init(inst, def);
1204
1091
  });
1205
- /* @__NO_SIDE_EFFECTS__ */
1092
+ // @__NO_SIDE_EFFECTS__
1206
1093
  function any() {
1207
1094
  return /* @__PURE__ */ _any(ZodMiniAny);
1208
1095
  }
1209
- const ZodMiniUnknown = /* @__PURE__ */ $constructor("ZodMiniUnknown", (inst, def) => {
1096
+ const ZodMiniUnknown = /*@__PURE__*/ $constructor("ZodMiniUnknown", (inst, def) => {
1210
1097
  $ZodUnknown.init(inst, def);
1211
1098
  ZodMiniType.init(inst, def);
1212
1099
  });
1213
- /* @__NO_SIDE_EFFECTS__ */
1100
+ // @__NO_SIDE_EFFECTS__
1214
1101
  function unknown() {
1215
1102
  return /* @__PURE__ */ _unknown(ZodMiniUnknown);
1216
1103
  }
1217
- const ZodMiniVoid = /* @__PURE__ */ $constructor("ZodMiniVoid", (inst, def) => {
1104
+ const ZodMiniVoid = /*@__PURE__*/ $constructor("ZodMiniVoid", (inst, def) => {
1218
1105
  $ZodVoid.init(inst, def);
1219
1106
  ZodMiniType.init(inst, def);
1220
1107
  });
1221
- /* @__NO_SIDE_EFFECTS__ */
1108
+ // @__NO_SIDE_EFFECTS__
1222
1109
  function _void(params) {
1223
1110
  return /* @__PURE__ */ _void$1(ZodMiniVoid, params);
1224
1111
  }
1225
- const ZodMiniArray = /* @__PURE__ */ $constructor("ZodMiniArray", (inst, def) => {
1112
+ const ZodMiniArray = /*@__PURE__*/ $constructor("ZodMiniArray", (inst, def) => {
1226
1113
  $ZodArray.init(inst, def);
1227
1114
  ZodMiniType.init(inst, def);
1228
1115
  });
1229
- /* @__NO_SIDE_EFFECTS__ */
1116
+ // @__NO_SIDE_EFFECTS__
1230
1117
  function array(element, params) {
1231
1118
  return new ZodMiniArray({
1232
1119
  type: "array",
@@ -1234,24 +1121,25 @@ function array(element, params) {
1234
1121
  ...normalizeParams(params)
1235
1122
  });
1236
1123
  }
1237
- const ZodMiniObject = /* @__PURE__ */ $constructor("ZodMiniObject", (inst, def) => {
1124
+ const ZodMiniObject = /*@__PURE__*/ $constructor("ZodMiniObject", (inst, def) => {
1238
1125
  $ZodObject.init(inst, def);
1239
1126
  ZodMiniType.init(inst, def);
1240
1127
  defineLazy(inst, "shape", () => def.shape);
1241
1128
  });
1242
- /* @__NO_SIDE_EFFECTS__ */
1129
+ // @__NO_SIDE_EFFECTS__
1243
1130
  function object(shape, params) {
1244
- return new ZodMiniObject({
1131
+ const def = {
1245
1132
  type: "object",
1246
1133
  shape: shape ?? {},
1247
1134
  ...normalizeParams(params)
1248
- });
1135
+ };
1136
+ return new ZodMiniObject(def);
1249
1137
  }
1250
- const ZodMiniUnion = /* @__PURE__ */ $constructor("ZodMiniUnion", (inst, def) => {
1138
+ const ZodMiniUnion = /*@__PURE__*/ $constructor("ZodMiniUnion", (inst, def) => {
1251
1139
  $ZodUnion.init(inst, def);
1252
1140
  ZodMiniType.init(inst, def);
1253
1141
  });
1254
- /* @__NO_SIDE_EFFECTS__ */
1142
+ // @__NO_SIDE_EFFECTS__
1255
1143
  function union(options, params) {
1256
1144
  return new ZodMiniUnion({
1257
1145
  type: "union",
@@ -1259,24 +1147,11 @@ function union(options, params) {
1259
1147
  ...normalizeParams(params)
1260
1148
  });
1261
1149
  }
1262
- const ZodMiniDiscriminatedUnion = /* @__PURE__ */ $constructor("ZodMiniDiscriminatedUnion", (inst, def) => {
1263
- $ZodDiscriminatedUnion.init(inst, def);
1264
- ZodMiniType.init(inst, def);
1265
- });
1266
- /* @__NO_SIDE_EFFECTS__ */
1267
- function discriminatedUnion(discriminator, options, params) {
1268
- return new ZodMiniDiscriminatedUnion({
1269
- type: "union",
1270
- options,
1271
- discriminator,
1272
- ...normalizeParams(params)
1273
- });
1274
- }
1275
- const ZodMiniRecord = /* @__PURE__ */ $constructor("ZodMiniRecord", (inst, def) => {
1150
+ const ZodMiniRecord = /*@__PURE__*/ $constructor("ZodMiniRecord", (inst, def) => {
1276
1151
  $ZodRecord.init(inst, def);
1277
1152
  ZodMiniType.init(inst, def);
1278
1153
  });
1279
- /* @__NO_SIDE_EFFECTS__ */
1154
+ // @__NO_SIDE_EFFECTS__
1280
1155
  function record(keyType, valueType, params) {
1281
1156
  return new ZodMiniRecord({
1282
1157
  type: "record",
@@ -1285,24 +1160,25 @@ function record(keyType, valueType, params) {
1285
1160
  ...normalizeParams(params)
1286
1161
  });
1287
1162
  }
1288
- const ZodMiniEnum = /* @__PURE__ */ $constructor("ZodMiniEnum", (inst, def) => {
1163
+ const ZodMiniEnum = /*@__PURE__*/ $constructor("ZodMiniEnum", (inst, def) => {
1289
1164
  $ZodEnum.init(inst, def);
1290
1165
  ZodMiniType.init(inst, def);
1291
1166
  inst.options = Object.values(def.entries);
1292
1167
  });
1293
- /* @__NO_SIDE_EFFECTS__ */
1168
+ // @__NO_SIDE_EFFECTS__
1294
1169
  function _enum(values, params) {
1170
+ const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
1295
1171
  return new ZodMiniEnum({
1296
1172
  type: "enum",
1297
- entries: Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values,
1173
+ entries,
1298
1174
  ...normalizeParams(params)
1299
1175
  });
1300
1176
  }
1301
- const ZodMiniLiteral = /* @__PURE__ */ $constructor("ZodMiniLiteral", (inst, def) => {
1177
+ const ZodMiniLiteral = /*@__PURE__*/ $constructor("ZodMiniLiteral", (inst, def) => {
1302
1178
  $ZodLiteral.init(inst, def);
1303
1179
  ZodMiniType.init(inst, def);
1304
1180
  });
1305
- /* @__NO_SIDE_EFFECTS__ */
1181
+ // @__NO_SIDE_EFFECTS__
1306
1182
  function literal(value, params) {
1307
1183
  return new ZodMiniLiteral({
1308
1184
  type: "literal",
@@ -1310,44 +1186,44 @@ function literal(value, params) {
1310
1186
  ...normalizeParams(params)
1311
1187
  });
1312
1188
  }
1313
- const ZodMiniTransform = /* @__PURE__ */ $constructor("ZodMiniTransform", (inst, def) => {
1189
+ const ZodMiniTransform = /*@__PURE__*/ $constructor("ZodMiniTransform", (inst, def) => {
1314
1190
  $ZodTransform.init(inst, def);
1315
1191
  ZodMiniType.init(inst, def);
1316
1192
  });
1317
- /* @__NO_SIDE_EFFECTS__ */
1193
+ // @__NO_SIDE_EFFECTS__
1318
1194
  function transform(fn) {
1319
1195
  return new ZodMiniTransform({
1320
1196
  type: "transform",
1321
1197
  transform: fn
1322
1198
  });
1323
1199
  }
1324
- const ZodMiniOptional = /* @__PURE__ */ $constructor("ZodMiniOptional", (inst, def) => {
1200
+ const ZodMiniOptional = /*@__PURE__*/ $constructor("ZodMiniOptional", (inst, def) => {
1325
1201
  $ZodOptional.init(inst, def);
1326
1202
  ZodMiniType.init(inst, def);
1327
1203
  });
1328
- /* @__NO_SIDE_EFFECTS__ */
1204
+ // @__NO_SIDE_EFFECTS__
1329
1205
  function optional(innerType) {
1330
1206
  return new ZodMiniOptional({
1331
1207
  type: "optional",
1332
1208
  innerType
1333
1209
  });
1334
1210
  }
1335
- const ZodMiniNullable = /* @__PURE__ */ $constructor("ZodMiniNullable", (inst, def) => {
1211
+ const ZodMiniNullable = /*@__PURE__*/ $constructor("ZodMiniNullable", (inst, def) => {
1336
1212
  $ZodNullable.init(inst, def);
1337
1213
  ZodMiniType.init(inst, def);
1338
1214
  });
1339
- /* @__NO_SIDE_EFFECTS__ */
1215
+ // @__NO_SIDE_EFFECTS__
1340
1216
  function nullable(innerType) {
1341
1217
  return new ZodMiniNullable({
1342
1218
  type: "nullable",
1343
1219
  innerType
1344
1220
  });
1345
1221
  }
1346
- const ZodMiniPipe = /* @__PURE__ */ $constructor("ZodMiniPipe", (inst, def) => {
1222
+ const ZodMiniPipe = /*@__PURE__*/ $constructor("ZodMiniPipe", (inst, def) => {
1347
1223
  $ZodPipe.init(inst, def);
1348
1224
  ZodMiniType.init(inst, def);
1349
1225
  });
1350
- /* @__NO_SIDE_EFFECTS__ */
1226
+ // @__NO_SIDE_EFFECTS__
1351
1227
  function pipe(in_, out) {
1352
1228
  return new ZodMiniPipe({
1353
1229
  type: "pipe",
@@ -1355,16 +1231,16 @@ function pipe(in_, out) {
1355
1231
  out
1356
1232
  });
1357
1233
  }
1358
- const ZodMiniCustom = /* @__PURE__ */ $constructor("ZodMiniCustom", (inst, def) => {
1234
+ const ZodMiniCustom = /*@__PURE__*/ $constructor("ZodMiniCustom", (inst, def) => {
1359
1235
  $ZodCustom.init(inst, def);
1360
1236
  ZodMiniType.init(inst, def);
1361
1237
  });
1362
- /* @__NO_SIDE_EFFECTS__ */
1238
+ // @__NO_SIDE_EFFECTS__
1363
1239
  function custom(fn, _params) {
1364
1240
  return /* @__PURE__ */ _custom(ZodMiniCustom, fn ?? (() => true), _params);
1365
1241
  }
1366
1242
  //#endregion
1367
- //#region ../pieces-framework/dist/markdown-property-Df2l6_y_.js
1243
+ //#region ../pieces-framework/dist/markdown-property-DMfHjEiL.js
1368
1244
  const BasePropertySchema = /* @__PURE__ */ object({
1369
1245
  displayName: /* @__PURE__ */ string(),
1370
1246
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
@@ -1378,40 +1254,13 @@ const TPropertyValue = (_T, propertyType) => /* @__PURE__ */ object({
1378
1254
  required: /* @__PURE__ */ boolean(),
1379
1255
  defaultValue: /* @__PURE__ */ optional(/* @__PURE__ */ any())
1380
1256
  });
1381
- let PropertyType = /* @__PURE__ */ function(PropertyType) {
1382
- PropertyType["SHORT_TEXT"] = "SHORT_TEXT";
1383
- PropertyType["LONG_TEXT"] = "LONG_TEXT";
1384
- PropertyType["RICH_TEXT"] = "RICH_TEXT";
1385
- PropertyType["MARKDOWN"] = "MARKDOWN";
1386
- PropertyType["DROPDOWN"] = "DROPDOWN";
1387
- PropertyType["STATIC_DROPDOWN"] = "STATIC_DROPDOWN";
1388
- PropertyType["NUMBER"] = "NUMBER";
1389
- PropertyType["CHECKBOX"] = "CHECKBOX";
1390
- PropertyType["OAUTH2"] = "OAUTH2";
1391
- PropertyType["SECRET_TEXT"] = "SECRET_TEXT";
1392
- PropertyType["ARRAY"] = "ARRAY";
1393
- PropertyType["OBJECT"] = "OBJECT";
1394
- PropertyType["BASIC_AUTH"] = "BASIC_AUTH";
1395
- PropertyType["JSON"] = "JSON";
1396
- PropertyType["MULTI_SELECT_DROPDOWN"] = "MULTI_SELECT_DROPDOWN";
1397
- PropertyType["STATIC_MULTI_SELECT_DROPDOWN"] = "STATIC_MULTI_SELECT_DROPDOWN";
1398
- PropertyType["DYNAMIC"] = "DYNAMIC";
1399
- PropertyType["CUSTOM_AUTH"] = "CUSTOM_AUTH";
1400
- PropertyType["OIDC"] = "OIDC";
1401
- PropertyType["DATE_TIME"] = "DATE_TIME";
1402
- PropertyType["DATE_RANGE"] = "DATE_RANGE";
1403
- PropertyType["FILE"] = "FILE";
1404
- PropertyType["CUSTOM"] = "CUSTOM";
1405
- PropertyType["COLOR"] = "COLOR";
1406
- return PropertyType;
1407
- }({});
1408
1257
  const ShortTextProperty = /* @__PURE__ */ object({
1409
1258
  ...BasePropertySchema.shape,
1410
- ...TPropertyValue(/* @__PURE__ */ string(), PropertyType.SHORT_TEXT).shape
1259
+ ...TPropertyValue(/* @__PURE__ */ string(), "SHORT_TEXT").shape
1411
1260
  });
1412
1261
  const LongTextProperty = /* @__PURE__ */ object({
1413
1262
  ...BasePropertySchema.shape,
1414
- ...TPropertyValue(/* @__PURE__ */ string(), PropertyType.LONG_TEXT).shape
1263
+ ...TPropertyValue(/* @__PURE__ */ string(), "LONG_TEXT").shape
1415
1264
  });
1416
1265
  const DropdownState = /* @__PURE__ */ object({
1417
1266
  disabled: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
@@ -1428,17 +1277,17 @@ const StaticDropdownProperty = /* @__PURE__ */ object({
1428
1277
  ...BasePropertySchema.shape,
1429
1278
  options: DropdownState,
1430
1279
  display: /* @__PURE__ */ optional(StaticDropdownDisplay),
1431
- ...TPropertyValue(/* @__PURE__ */ unknown(), PropertyType.STATIC_DROPDOWN).shape
1280
+ ...TPropertyValue(/* @__PURE__ */ unknown(), "STATIC_DROPDOWN").shape
1432
1281
  });
1433
1282
  const StaticMultiSelectDropdownProperty = /* @__PURE__ */ object({
1434
1283
  ...BasePropertySchema.shape,
1435
1284
  options: DropdownState,
1436
- ...TPropertyValue(/* @__PURE__ */ array(/* @__PURE__ */ unknown()), PropertyType.STATIC_MULTI_SELECT_DROPDOWN).shape
1285
+ ...TPropertyValue(/* @__PURE__ */ array(/* @__PURE__ */ unknown()), "STATIC_MULTI_SELECT_DROPDOWN").shape
1437
1286
  });
1438
1287
  const CheckboxProperty = /* @__PURE__ */ object({
1439
1288
  ...BasePropertySchema.shape,
1440
1289
  reveals: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
1441
- ...TPropertyValue(/* @__PURE__ */ boolean(), PropertyType.CHECKBOX).shape
1290
+ ...TPropertyValue(/* @__PURE__ */ boolean(), "CHECKBOX").shape
1442
1291
  });
1443
1292
  const NumberProperty = /* @__PURE__ */ object({
1444
1293
  ...BasePropertySchema.shape,
@@ -1446,12 +1295,12 @@ const NumberProperty = /* @__PURE__ */ object({
1446
1295
  min: /* @__PURE__ */ optional(/* @__PURE__ */ number$1()),
1447
1296
  max: /* @__PURE__ */ optional(/* @__PURE__ */ number$1()),
1448
1297
  step: /* @__PURE__ */ optional(/* @__PURE__ */ number$1()),
1449
- ...TPropertyValue(/* @__PURE__ */ number$1(), PropertyType.NUMBER).shape
1298
+ ...TPropertyValue(/* @__PURE__ */ number$1(), "NUMBER").shape
1450
1299
  });
1451
1300
  const FileProperty = /* @__PURE__ */ object({
1452
1301
  ...BasePropertySchema.shape,
1453
1302
  streaming: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1454
- ...TPropertyValue(/* @__PURE__ */ unknown(), PropertyType.FILE).shape
1303
+ ...TPropertyValue(/* @__PURE__ */ unknown(), "FILE").shape
1455
1304
  });
1456
1305
  const DateRangeValue = /* @__PURE__ */ object({
1457
1306
  preset: /* @__PURE__ */ optional(/* @__PURE__ */ _enum([
@@ -1469,7 +1318,7 @@ const DateRangeValue = /* @__PURE__ */ object({
1469
1318
  const DateRangeProperty = /* @__PURE__ */ object({
1470
1319
  ...BasePropertySchema.shape,
1471
1320
  display: /* @__PURE__ */ optional(/* @__PURE__ */ _enum(["dropdown"])),
1472
- ...TPropertyValue(DateRangeValue, PropertyType.DATE_RANGE).shape
1321
+ ...TPropertyValue(DateRangeValue, "DATE_RANGE").shape
1473
1322
  });
1474
1323
  let MarkdownVariant = /* @__PURE__ */ function(MarkdownVariant) {
1475
1324
  MarkdownVariant["BORDERLESS"] = "BORDERLESS";
@@ -1483,11 +1332,11 @@ function isNil(value) {
1483
1332
  }
1484
1333
  const MarkDownProperty = /* @__PURE__ */ object({
1485
1334
  ...BasePropertySchema.shape,
1486
- ...TPropertyValue(/* @__PURE__ */ _void(), PropertyType.MARKDOWN).shape,
1335
+ ...TPropertyValue(/* @__PURE__ */ _void(), "MARKDOWN").shape,
1487
1336
  variant: /* @__PURE__ */ optional(/* @__PURE__ */ _enum(MarkdownVariant))
1488
1337
  });
1489
1338
  //#endregion
1490
- //#region ../pieces-framework/dist/input-COuhC1I-.js
1339
+ //#region ../pieces-framework/dist/input-BHkj_oP5.js
1491
1340
  const ErrorHandlingOptionsParam = /* @__PURE__ */ object({
1492
1341
  retryOnFailure: /* @__PURE__ */ object({
1493
1342
  defaultValue: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
@@ -1499,6 +1348,19 @@ const ErrorHandlingOptionsParam = /* @__PURE__ */ object({
1499
1348
  })
1500
1349
  });
1501
1350
  var IAction = class {
1351
+ name;
1352
+ displayName;
1353
+ description;
1354
+ props;
1355
+ propertyGroups;
1356
+ run;
1357
+ test;
1358
+ requireAuth;
1359
+ errorHandlingOptions;
1360
+ outputSchema;
1361
+ audience;
1362
+ aiMetadata;
1363
+ classification;
1502
1364
  constructor(name, displayName, description, props, propertyGroups, run, test, requireAuth, errorHandlingOptions, outputSchema, audience, aiMetadata, classification) {
1503
1365
  this.name = name;
1504
1366
  this.displayName = displayName;
@@ -1523,25 +1385,25 @@ const createAction = (params) => {
1523
1385
  };
1524
1386
  const DropdownProperty = /* @__PURE__ */ object({
1525
1387
  ...BasePropertySchema.shape,
1526
- ...TPropertyValue(/* @__PURE__ */ unknown(), PropertyType.DROPDOWN).shape,
1388
+ ...TPropertyValue(/* @__PURE__ */ unknown(), "DROPDOWN").shape,
1527
1389
  refreshers: /* @__PURE__ */ array(/* @__PURE__ */ string())
1528
1390
  });
1529
1391
  const MultiSelectDropdownProperty = /* @__PURE__ */ object({
1530
1392
  ...BasePropertySchema.shape,
1531
- ...TPropertyValue(/* @__PURE__ */ array(/* @__PURE__ */ unknown()), PropertyType.MULTI_SELECT_DROPDOWN).shape,
1393
+ ...TPropertyValue(/* @__PURE__ */ array(/* @__PURE__ */ unknown()), "MULTI_SELECT_DROPDOWN").shape,
1532
1394
  refreshers: /* @__PURE__ */ array(/* @__PURE__ */ string())
1533
1395
  });
1534
1396
  const JsonProperty = /* @__PURE__ */ object({
1535
1397
  ...BasePropertySchema.shape,
1536
- ...TPropertyValue(/* @__PURE__ */ union([/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ unknown())]), PropertyType.JSON).shape
1398
+ ...TPropertyValue(/* @__PURE__ */ union([/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ unknown())]), "JSON").shape
1537
1399
  });
1538
1400
  const ColorProperty = /* @__PURE__ */ object({
1539
1401
  ...BasePropertySchema.shape,
1540
- ...TPropertyValue(/* @__PURE__ */ string(), PropertyType.COLOR).shape
1402
+ ...TPropertyValue(/* @__PURE__ */ string(), "COLOR").shape
1541
1403
  });
1542
1404
  const DateTimeProperty = /* @__PURE__ */ object({
1543
1405
  ...BasePropertySchema.shape,
1544
- ...TPropertyValue(/* @__PURE__ */ string(), PropertyType.DATE_TIME).shape
1406
+ ...TPropertyValue(/* @__PURE__ */ string(), "DATE_TIME").shape
1545
1407
  });
1546
1408
  const ArraySubProps = /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([
1547
1409
  ShortTextProperty,
@@ -1559,16 +1421,16 @@ const ArraySubProps = /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PUR
1559
1421
  const ArrayProperty = /* @__PURE__ */ object({
1560
1422
  ...BasePropertySchema.shape,
1561
1423
  properties: /* @__PURE__ */ optional(ArraySubProps),
1562
- ...TPropertyValue(/* @__PURE__ */ array(/* @__PURE__ */ unknown()), PropertyType.ARRAY).shape
1424
+ ...TPropertyValue(/* @__PURE__ */ array(/* @__PURE__ */ unknown()), "ARRAY").shape
1563
1425
  });
1564
1426
  const DynamicProperties = /* @__PURE__ */ object({
1565
1427
  refreshers: /* @__PURE__ */ array(/* @__PURE__ */ string()),
1566
1428
  ...BasePropertySchema.shape,
1567
- ...TPropertyValue(/* @__PURE__ */ unknown(), PropertyType.DYNAMIC).shape
1429
+ ...TPropertyValue(/* @__PURE__ */ unknown(), "DYNAMIC").shape
1568
1430
  });
1569
1431
  const ObjectProperty = /* @__PURE__ */ object({
1570
1432
  ...BasePropertySchema.shape,
1571
- ...TPropertyValue(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ unknown()), PropertyType.OBJECT).shape
1433
+ ...TPropertyValue(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ unknown()), "OBJECT").shape
1572
1434
  });
1573
1435
  const InputProperty = /* @__PURE__ */ union([
1574
1436
  ShortTextProperty,
@@ -1576,7 +1438,7 @@ const InputProperty = /* @__PURE__ */ union([
1576
1438
  /* @__PURE__ */ object({
1577
1439
  ...BasePropertySchema.shape,
1578
1440
  formatProperty: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1579
- ...TPropertyValue(/* @__PURE__ */ string(), PropertyType.RICH_TEXT).shape
1441
+ ...TPropertyValue(/* @__PURE__ */ string(), "RICH_TEXT").shape
1580
1442
  }),
1581
1443
  MarkDownProperty,
1582
1444
  CheckboxProperty,
@@ -1594,7 +1456,7 @@ const InputProperty = /* @__PURE__ */ union([
1594
1456
  FileProperty,
1595
1457
  /* @__PURE__ */ object({
1596
1458
  ...BasePropertySchema.shape,
1597
- ...TPropertyValue(/* @__PURE__ */ unknown(), PropertyType.CUSTOM).shape,
1459
+ ...TPropertyValue(/* @__PURE__ */ unknown(), "CUSTOM").shape,
1598
1460
  code: /* @__PURE__ */ string()
1599
1461
  }),
1600
1462
  ColorProperty
@@ -1604,28 +1466,28 @@ const Property = {
1604
1466
  return {
1605
1467
  ...request,
1606
1468
  valueSchema: void 0,
1607
- type: PropertyType.SHORT_TEXT
1469
+ type: "SHORT_TEXT"
1608
1470
  };
1609
1471
  },
1610
1472
  Checkbox(request) {
1611
1473
  return {
1612
1474
  ...request,
1613
1475
  valueSchema: void 0,
1614
- type: PropertyType.CHECKBOX
1476
+ type: "CHECKBOX"
1615
1477
  };
1616
1478
  },
1617
1479
  LongText(request) {
1618
1480
  return {
1619
1481
  ...request,
1620
1482
  valueSchema: void 0,
1621
- type: PropertyType.LONG_TEXT
1483
+ type: "LONG_TEXT"
1622
1484
  };
1623
1485
  },
1624
1486
  RichText(request) {
1625
1487
  return {
1626
1488
  ...request,
1627
1489
  valueSchema: void 0,
1628
- type: PropertyType.RICH_TEXT
1490
+ type: "RICH_TEXT"
1629
1491
  };
1630
1492
  },
1631
1493
  MarkDown(request) {
@@ -1633,93 +1495,93 @@ const Property = {
1633
1495
  displayName: "Markdown",
1634
1496
  required: false,
1635
1497
  description: request.value,
1636
- type: PropertyType.MARKDOWN,
1498
+ type: "MARKDOWN",
1637
1499
  valueSchema: void 0,
1638
- variant: request.variant ?? MarkdownVariant.INFO
1500
+ variant: request.variant ?? "INFO"
1639
1501
  };
1640
1502
  },
1641
1503
  Number(request) {
1642
1504
  return {
1643
1505
  ...request,
1644
1506
  valueSchema: void 0,
1645
- type: PropertyType.NUMBER
1507
+ type: "NUMBER"
1646
1508
  };
1647
1509
  },
1648
1510
  Json(request) {
1649
1511
  return {
1650
1512
  ...request,
1651
1513
  valueSchema: void 0,
1652
- type: PropertyType.JSON
1514
+ type: "JSON"
1653
1515
  };
1654
1516
  },
1655
1517
  Array(request) {
1656
1518
  return {
1657
1519
  ...request,
1658
1520
  valueSchema: void 0,
1659
- type: PropertyType.ARRAY
1521
+ type: "ARRAY"
1660
1522
  };
1661
1523
  },
1662
1524
  Object(request) {
1663
1525
  return {
1664
1526
  ...request,
1665
1527
  valueSchema: void 0,
1666
- type: PropertyType.OBJECT
1528
+ type: "OBJECT"
1667
1529
  };
1668
1530
  },
1669
1531
  Dropdown(request) {
1670
1532
  return {
1671
1533
  ...request,
1672
1534
  valueSchema: void 0,
1673
- type: PropertyType.DROPDOWN
1535
+ type: "DROPDOWN"
1674
1536
  };
1675
1537
  },
1676
1538
  StaticDropdown(request) {
1677
1539
  return {
1678
1540
  ...request,
1679
1541
  valueSchema: void 0,
1680
- type: PropertyType.STATIC_DROPDOWN
1542
+ type: "STATIC_DROPDOWN"
1681
1543
  };
1682
1544
  },
1683
1545
  MultiSelectDropdown(request) {
1684
1546
  return {
1685
1547
  ...request,
1686
1548
  valueSchema: void 0,
1687
- type: PropertyType.MULTI_SELECT_DROPDOWN
1549
+ type: "MULTI_SELECT_DROPDOWN"
1688
1550
  };
1689
1551
  },
1690
1552
  DynamicProperties(request) {
1691
1553
  return {
1692
1554
  ...request,
1693
1555
  valueSchema: void 0,
1694
- type: PropertyType.DYNAMIC
1556
+ type: "DYNAMIC"
1695
1557
  };
1696
1558
  },
1697
1559
  StaticMultiSelectDropdown(request) {
1698
1560
  return {
1699
1561
  ...request,
1700
1562
  valueSchema: void 0,
1701
- type: PropertyType.STATIC_MULTI_SELECT_DROPDOWN
1563
+ type: "STATIC_MULTI_SELECT_DROPDOWN"
1702
1564
  };
1703
1565
  },
1704
1566
  DateTime(request) {
1705
1567
  return {
1706
1568
  ...request,
1707
1569
  valueSchema: void 0,
1708
- type: PropertyType.DATE_TIME
1570
+ type: "DATE_TIME"
1709
1571
  };
1710
1572
  },
1711
1573
  DateRange(request) {
1712
1574
  return {
1713
1575
  ...request,
1714
1576
  valueSchema: void 0,
1715
- type: PropertyType.DATE_RANGE
1577
+ type: "DATE_RANGE"
1716
1578
  };
1717
1579
  },
1718
1580
  File(request) {
1719
1581
  return {
1720
1582
  ...request,
1721
1583
  valueSchema: void 0,
1722
- type: PropertyType.FILE
1584
+ type: "FILE"
1723
1585
  };
1724
1586
  },
1725
1587
  Custom(request) {
@@ -1728,30 +1590,19 @@ const Property = {
1728
1590
  ...request,
1729
1591
  code,
1730
1592
  valueSchema: void 0,
1731
- type: PropertyType.CUSTOM
1593
+ type: "CUSTOM"
1732
1594
  };
1733
1595
  },
1734
1596
  Color(request) {
1735
1597
  return {
1736
1598
  ...request,
1737
1599
  valueSchema: void 0,
1738
- type: PropertyType.COLOR
1600
+ type: "COLOR"
1739
1601
  };
1740
1602
  }
1741
1603
  };
1742
1604
  //#endregion
1743
- //#region ../pieces-framework/dist/authentication-B7brX_It.js
1744
- let AppConnectionType = /* @__PURE__ */ function(AppConnectionType) {
1745
- AppConnectionType["OAUTH2"] = "OAUTH2";
1746
- AppConnectionType["PLATFORM_OAUTH2"] = "PLATFORM_OAUTH2";
1747
- AppConnectionType["CLOUD_OAUTH2"] = "CLOUD_OAUTH2";
1748
- AppConnectionType["SECRET_TEXT"] = "SECRET_TEXT";
1749
- AppConnectionType["BASIC_AUTH"] = "BASIC_AUTH";
1750
- AppConnectionType["CUSTOM_AUTH"] = "CUSTOM_AUTH";
1751
- AppConnectionType["OIDC"] = "OIDC";
1752
- AppConnectionType["NO_AUTH"] = "NO_AUTH";
1753
- return AppConnectionType;
1754
- }({});
1605
+ //#region ../pieces-framework/dist/authentication-o-4CdAPR.js
1755
1606
  let OAuth2GrantType = /* @__PURE__ */ function(OAuth2GrantType) {
1756
1607
  OAuth2GrantType["AUTHORIZATION_CODE"] = "authorization_code";
1757
1608
  OAuth2GrantType["CLIENT_CREDENTIALS"] = "client_credentials";
@@ -1765,14 +1616,6 @@ let TriggerStrategy = /* @__PURE__ */ function(TriggerStrategy) {
1765
1616
  TriggerStrategy["MANUAL"] = "MANUAL";
1766
1617
  return TriggerStrategy;
1767
1618
  }({});
1768
- let WebhookHandshakeStrategy = /* @__PURE__ */ function(WebhookHandshakeStrategy) {
1769
- WebhookHandshakeStrategy["NONE"] = "NONE";
1770
- WebhookHandshakeStrategy["HEADER_PRESENT"] = "HEADER_PRESENT";
1771
- WebhookHandshakeStrategy["QUERY_PRESENT"] = "QUERY_PRESENT";
1772
- WebhookHandshakeStrategy["BODY_PARAM_PRESENT"] = "BODY_PARAM_PRESENT";
1773
- WebhookHandshakeStrategy["HEAD_REQUEST"] = "HEAD_REQUEST";
1774
- return WebhookHandshakeStrategy;
1775
- }({});
1776
1619
  let TriggerTestStrategy = /* @__PURE__ */ function(TriggerTestStrategy) {
1777
1620
  TriggerTestStrategy["SIMULATION"] = "SIMULATION";
1778
1621
  TriggerTestStrategy["TEST_FUNCTION"] = "TEST_FUNCTION";
@@ -1797,11 +1640,11 @@ const BasicAuthProperty = /* @__PURE__ */ object({
1797
1640
  displayName: /* @__PURE__ */ string(),
1798
1641
  description: /* @__PURE__ */ optional(/* @__PURE__ */ string())
1799
1642
  }),
1800
- ...TPropertyValue(BasicAuthPropertyValue, PropertyType.BASIC_AUTH).shape
1643
+ ...TPropertyValue(BasicAuthPropertyValue, "BASIC_AUTH").shape
1801
1644
  });
1802
1645
  const SecretTextProperty = /* @__PURE__ */ object({
1803
1646
  ...BasePieceAuthSchema.shape,
1804
- ...TPropertyValue(/* @__PURE__ */ object({ auth: /* @__PURE__ */ string() }), PropertyType.SECRET_TEXT).shape
1647
+ ...TPropertyValue(/* @__PURE__ */ object({ auth: /* @__PURE__ */ string() }), "SECRET_TEXT").shape
1805
1648
  });
1806
1649
  const CustomAuthProps = /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([
1807
1650
  ShortTextProperty,
@@ -1816,7 +1659,7 @@ const CustomAuthProps = /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__P
1816
1659
  const CustomAuthProperty = /* @__PURE__ */ object({
1817
1660
  ...BasePieceAuthSchema.shape,
1818
1661
  props: CustomAuthProps,
1819
- ...TPropertyValue(/* @__PURE__ */ unknown(), PropertyType.CUSTOM_AUTH).shape
1662
+ ...TPropertyValue(/* @__PURE__ */ unknown(), "CUSTOM_AUTH").shape
1820
1663
  });
1821
1664
  const OIDCAuthProps = /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([
1822
1665
  ShortTextProperty,
@@ -1831,7 +1674,7 @@ const OIDCAuthProps = /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PUR
1831
1674
  const OIDCProperty = /* @__PURE__ */ object({
1832
1675
  ...BasePieceAuthSchema.shape,
1833
1676
  props: OIDCAuthProps,
1834
- ...TPropertyValue(/* @__PURE__ */ unknown(), PropertyType.OIDC).shape
1677
+ ...TPropertyValue(/* @__PURE__ */ unknown(), "OIDC").shape
1835
1678
  });
1836
1679
  let OAuth2AuthorizationMethod = /* @__PURE__ */ function(OAuth2AuthorizationMethod) {
1837
1680
  OAuth2AuthorizationMethod["HEADER"] = "HEADER";
@@ -1873,15 +1716,15 @@ const PieceAuthProperty = /* @__PURE__ */ union([
1873
1716
  /* @__PURE__ */ object({
1874
1717
  ...BasePieceAuthSchema.shape,
1875
1718
  ...OAuth2ExtraProps.shape,
1876
- ...TPropertyValue(OAuth2PropertyValue, PropertyType.OAUTH2).shape
1719
+ ...TPropertyValue(OAuth2PropertyValue, "OAUTH2").shape
1877
1720
  }),
1878
1721
  SecretTextProperty
1879
1722
  ]);
1880
- AppConnectionType.OAUTH2, PropertyType.OAUTH2, AppConnectionType.CLOUD_OAUTH2, PropertyType.OAUTH2, AppConnectionType.PLATFORM_OAUTH2, PropertyType.OAUTH2, AppConnectionType.BASIC_AUTH, PropertyType.BASIC_AUTH, AppConnectionType.CUSTOM_AUTH, PropertyType.CUSTOM_AUTH, AppConnectionType.OIDC, PropertyType.OIDC, AppConnectionType.SECRET_TEXT, PropertyType.SECRET_TEXT, AppConnectionType.NO_AUTH;
1881
1723
  //#endregion
1882
1724
  //#region ../../node_modules/.pnpm/nanoid@3.3.17/node_modules/nanoid/index.js
1883
1725
  const POOL_SIZE_MULTIPLIER = 128;
1884
- let pool, poolOffset;
1726
+ let pool;
1727
+ let poolOffset;
1885
1728
  let fillPool = (bytes) => {
1886
1729
  if (bytes < 0) throw new RangeError("Wrong ID size");
1887
1730
  try {
@@ -1952,13 +1795,6 @@ let PieceCategory = /* @__PURE__ */ function(PieceCategory) {
1952
1795
  PieceCategory["SALES_AND_CRM"] = "SALES_AND_CRM";
1953
1796
  return PieceCategory;
1954
1797
  }({});
1955
- let PauseType = /* @__PURE__ */ function(PauseType) {
1956
- PauseType["DELAY"] = "DELAY";
1957
- PauseType["WEBHOOK"] = "WEBHOOK";
1958
- return PauseType;
1959
- }({});
1960
- PauseType.DELAY;
1961
- PauseType.WEBHOOK;
1962
1798
  const ALPHABET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
1963
1799
  const ID_LENGTH = 21;
1964
1800
  (/* @__PURE__ */ string()).check(/* @__PURE__ */ _regex(new RegExp(`^[0-9a-zA-Z]{${ID_LENGTH}}$`)));
@@ -1970,68 +1806,17 @@ const BaseModelSchema = {
1970
1806
  updated: DateOrString
1971
1807
  };
1972
1808
  const Nullable = (schema) => /* @__PURE__ */ optional(/* @__PURE__ */ nullable(schema));
1973
- function NullableEnum(enumObj) {
1974
- return /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ _enum(enumObj)));
1975
- }
1976
- const OptionalArrayFromQuery = (schema) => /* @__PURE__ */ pipe(/* @__PURE__ */ transform((val) => Array.isArray(val) ? val : val !== void 0 ? [val] : void 0), /* @__PURE__ */ optional(/* @__PURE__ */ array(schema)));
1977
- let AIProviderName = /* @__PURE__ */ function(AIProviderName) {
1978
- AIProviderName["OPENAI"] = "openai";
1979
- AIProviderName["OPENROUTER"] = "openrouter";
1980
- AIProviderName["ANTHROPIC"] = "anthropic";
1981
- AIProviderName["AZURE"] = "azure";
1982
- AIProviderName["GOOGLE"] = "google";
1983
- AIProviderName["ACTIVEPIECES"] = "activepieces";
1984
- AIProviderName["CLOUDFLARE_GATEWAY"] = "cloudflare-gateway";
1985
- AIProviderName["CUSTOM"] = "custom";
1986
- AIProviderName["BEDROCK"] = "bedrock";
1987
- AIProviderName["VERTEX"] = "vertex";
1988
- AIProviderName["MISTRAL"] = "mistral";
1989
- AIProviderName["XAI"] = "xai";
1990
- AIProviderName["DEEPSEEK"] = "deepseek";
1991
- AIProviderName["ZAI"] = "zai";
1992
- AIProviderName["QWEN"] = "qwen";
1993
- AIProviderName["MINIMAX"] = "minimax";
1994
- AIProviderName["MOONSHOT"] = "moonshot";
1995
- return AIProviderName;
1996
- }({});
1997
- let AgentToolType = /* @__PURE__ */ function(AgentToolType) {
1998
- AgentToolType["PIECE"] = "PIECE";
1999
- AgentToolType["FLOW"] = "FLOW";
2000
- AgentToolType["MCP"] = "MCP";
2001
- AgentToolType["KNOWLEDGE_BASE"] = "KNOWLEDGE_BASE";
2002
- return AgentToolType;
2003
- }({});
2004
- let McpAuthType = /* @__PURE__ */ function(McpAuthType) {
2005
- McpAuthType["NONE"] = "none";
2006
- McpAuthType["ACCESS_TOKEN"] = "access_token";
2007
- McpAuthType["API_KEY"] = "api_key";
2008
- McpAuthType["HEADERS"] = "headers";
2009
- return McpAuthType;
2010
- }({});
2011
- let ContentBlockType = /* @__PURE__ */ function(ContentBlockType) {
2012
- ContentBlockType["MARKDOWN"] = "MARKDOWN";
2013
- ContentBlockType["TOOL_CALL"] = "TOOL_CALL";
2014
- return ContentBlockType;
2015
- }({});
2016
1809
  let ToolCallStatus = /* @__PURE__ */ function(ToolCallStatus) {
2017
1810
  ToolCallStatus["IN_PROGRESS"] = "in-progress";
2018
1811
  ToolCallStatus["COMPLETED"] = "completed";
2019
1812
  return ToolCallStatus;
2020
1813
  }({});
2021
- let ToolCallType = /* @__PURE__ */ function(ToolCallType) {
2022
- ToolCallType["PIECE"] = "PIECE";
2023
- ToolCallType["FLOW"] = "FLOW";
2024
- ToolCallType["MCP"] = "MCP";
2025
- ToolCallType["KNOWLEDGE_BASE"] = "KNOWLEDGE_BASE";
2026
- ToolCallType["UNKNOWN"] = "UNKNOWN";
2027
- return ToolCallType;
2028
- }({});
2029
- AgentToolType.PIECE, (/* @__PURE__ */ string()).check(/* @__PURE__ */ _minLength(1));
2030
- McpAuthType.NONE, McpAuthType.ACCESS_TOKEN, McpAuthType.API_KEY, McpAuthType.HEADERS;
2031
- AgentToolType.FLOW, (/* @__PURE__ */ string()).check(/* @__PURE__ */ _minLength(1)), AgentToolType.MCP, (/* @__PURE__ */ string()).check(/* @__PURE__ */ _minLength(1)), AgentToolType.KNOWLEDGE_BASE, (/* @__PURE__ */ string()).check(/* @__PURE__ */ _minLength(1));
2032
- ContentBlockType.MARKDOWN;
1814
+ (/* @__PURE__ */ string()).check(/* @__PURE__ */ _minLength(1));
1815
+ (/* @__PURE__ */ string()).check(/* @__PURE__ */ _minLength(1));
1816
+ (/* @__PURE__ */ string()).check(/* @__PURE__ */ _minLength(1));
1817
+ (/* @__PURE__ */ string()).check(/* @__PURE__ */ _minLength(1));
2033
1818
  const toolCallBaseShape = {
2034
- type: /* @__PURE__ */ literal(ContentBlockType.TOOL_CALL),
1819
+ type: /* @__PURE__ */ literal("TOOL_CALL"),
2035
1820
  input: Nullable(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ unknown())),
2036
1821
  output: /* @__PURE__ */ optional(/* @__PURE__ */ unknown()),
2037
1822
  toolName: /* @__PURE__ */ string(),
@@ -2040,12 +1825,11 @@ const toolCallBaseShape = {
2040
1825
  startTime: /* @__PURE__ */ string(),
2041
1826
  endTime: /* @__PURE__ */ optional(/* @__PURE__ */ string())
2042
1827
  };
2043
- ({ ...toolCallBaseShape }), ToolCallType.PIECE, { ...toolCallBaseShape }, ToolCallType.FLOW, { ...toolCallBaseShape }, ToolCallType.MCP, { ...toolCallBaseShape }, ToolCallType.KNOWLEDGE_BASE, { ...toolCallBaseShape }, ToolCallType.UNKNOWN;
1828
+ ({ ...toolCallBaseShape }), { ...toolCallBaseShape }, { ...toolCallBaseShape }, { ...toolCallBaseShape }, { ...toolCallBaseShape };
2044
1829
  (/* @__PURE__ */ string()).check(/* @__PURE__ */ _minLength(1));
2045
1830
  (/* @__PURE__ */ string()).check(/* @__PURE__ */ _minLength(1)), (/* @__PURE__ */ string()).check(/* @__PURE__ */ _minLength(1));
2046
1831
  (/* @__PURE__ */ string()).check(/* @__PURE__ */ _minLength(1));
2047
1832
  (/* @__PURE__ */ string()).check(/* @__PURE__ */ _regex(/^[a-z0-9][a-z0-9-]{0,62}$/)), (/* @__PURE__ */ string()).check(/* @__PURE__ */ _regex(/^[a-z0-9][a-z0-9-]{0,62}$/));
2048
- AIProviderName.OPENAI, AIProviderName.ANTHROPIC, AIProviderName.GOOGLE, AIProviderName.GOOGLE;
2049
1833
  const OPENAI_CHAT_MODELS = [
2050
1834
  "gpt-5.5",
2051
1835
  "gpt-5.4-mini",
@@ -2072,59 +1856,58 @@ const GOOGLE_CHAT_MODELS = [
2072
1856
  "gemini-3-flash-preview"
2073
1857
  ];
2074
1858
  const X_AI_OPENROUTER_CHAT_MODELS = ["grok-4.20"];
2075
- ANTHROPIC_OPENROUTER_CHAT_MODELS.map((model) => `${AIProviderName.ANTHROPIC}/${model}`);
1859
+ ANTHROPIC_OPENROUTER_CHAT_MODELS.map((model) => `anthropic/${model}`);
2076
1860
  const ALLOWED_CHAT_MODELS_BY_PROVIDER = {
2077
- [AIProviderName.OPENAI]: OPENAI_CHAT_MODELS,
2078
- [AIProviderName.ANTHROPIC]: ANTHROPIC_CHAT_MODELS,
2079
- [AIProviderName.GOOGLE]: GOOGLE_CHAT_MODELS,
2080
- [AIProviderName.VERTEX]: GOOGLE_CHAT_MODELS,
2081
- [AIProviderName.ACTIVEPIECES]: [
2082
- ...ANTHROPIC_OPENROUTER_CHAT_MODELS.map((m) => `${AIProviderName.ANTHROPIC}/${m}`),
2083
- ...OPENAI_CHAT_MODELS.map((m) => `${AIProviderName.OPENAI}/${m}`),
2084
- ...GOOGLE_CHAT_MODELS.map((m) => `${AIProviderName.GOOGLE}/${m}`),
1861
+ ["openai"]: OPENAI_CHAT_MODELS,
1862
+ ["anthropic"]: ANTHROPIC_CHAT_MODELS,
1863
+ ["google"]: GOOGLE_CHAT_MODELS,
1864
+ ["vertex"]: GOOGLE_CHAT_MODELS,
1865
+ ["activepieces"]: [
1866
+ ...ANTHROPIC_OPENROUTER_CHAT_MODELS.map((m) => `anthropic/${m}`),
1867
+ ...OPENAI_CHAT_MODELS.map((m) => `openai/${m}`),
1868
+ ...GOOGLE_CHAT_MODELS.map((m) => `google/${m}`),
2085
1869
  ...X_AI_OPENROUTER_CHAT_MODELS.map((m) => `x-ai/${m}`)
2086
1870
  ]
2087
1871
  };
2088
1872
  const DEFAULT_MAX_CONTEXT_TOKENS = 128e3;
2089
1873
  const PROVIDER_MAX_CONTEXT_TOKENS = {
2090
- [AIProviderName.OPENAI]: 128e3,
2091
- [AIProviderName.ANTHROPIC]: 2e5,
2092
- [AIProviderName.GOOGLE]: 1048576,
2093
- [AIProviderName.BEDROCK]: 2e5,
2094
- [AIProviderName.VERTEX]: 1048576,
2095
- [AIProviderName.AZURE]: 128e3,
2096
- [AIProviderName.OPENROUTER]: 128e3,
2097
- [AIProviderName.ACTIVEPIECES]: 2e5,
2098
- [AIProviderName.MISTRAL]: 128e3
1874
+ ["openai"]: 128e3,
1875
+ ["anthropic"]: 2e5,
1876
+ ["google"]: 1048576,
1877
+ ["bedrock"]: 2e5,
1878
+ ["vertex"]: 1048576,
1879
+ ["azure"]: 128e3,
1880
+ ["openrouter"]: 128e3,
1881
+ ["activepieces"]: 2e5,
1882
+ ["mistral"]: 128e3
2099
1883
  };
2100
1884
  function getMaxContextTokens({ provider }) {
2101
1885
  if (!provider) return DEFAULT_MAX_CONTEXT_TOKENS;
2102
1886
  return PROVIDER_MAX_CONTEXT_TOKENS[provider] ?? DEFAULT_MAX_CONTEXT_TOKENS;
2103
1887
  }
2104
1888
  const DEFAULT_EMBEDDING_MODELS = {
2105
- [AIProviderName.OPENAI]: "text-embedding-3-small",
2106
- [AIProviderName.GOOGLE]: "text-embedding-004",
2107
- [AIProviderName.AZURE]: "text-embedding-3-small",
2108
- [AIProviderName.ACTIVEPIECES]: "text-embedding-3-small",
2109
- [AIProviderName.OPENROUTER]: "openai/text-embedding-3-small"
1889
+ ["openai"]: "text-embedding-3-small",
1890
+ ["google"]: "text-embedding-004",
1891
+ ["azure"]: "text-embedding-3-small",
1892
+ ["activepieces"]: "text-embedding-3-small",
1893
+ ["openrouter"]: "openai/text-embedding-3-small"
2110
1894
  };
2111
1895
  const WEB_SEARCH_MODE_BY_PROVIDER = {
2112
- [AIProviderName.ANTHROPIC]: "native",
2113
- [AIProviderName.GOOGLE]: "native",
2114
- [AIProviderName.OPENROUTER]: "plugin",
2115
- [AIProviderName.ACTIVEPIECES]: "plugin"
1896
+ ["anthropic"]: "native",
1897
+ ["google"]: "native",
1898
+ ["openrouter"]: "plugin",
1899
+ ["activepieces"]: "plugin"
2116
1900
  };
2117
- const NO_IMAGE_GENERATION_PROVIDERS = new Set([
2118
- AIProviderName.ANTHROPIC,
2119
- AIProviderName.MISTRAL,
2120
- AIProviderName.XAI,
2121
- AIProviderName.DEEPSEEK,
2122
- AIProviderName.ZAI,
2123
- AIProviderName.QWEN,
2124
- AIProviderName.MINIMAX,
2125
- AIProviderName.MOONSHOT
1901
+ const NO_IMAGE_GENERATION_PROVIDERS = /* @__PURE__ */ new Set([
1902
+ "anthropic",
1903
+ "mistral",
1904
+ "xai",
1905
+ "deepseek",
1906
+ "zai",
1907
+ "qwen",
1908
+ "minimax",
1909
+ "moonshot"
2126
1910
  ]);
2127
- AIProviderName.XAI, AIProviderName.DEEPSEEK, AIProviderName.ZAI, AIProviderName.QWEN, AIProviderName.MINIMAX, AIProviderName.MOONSHOT;
2128
1911
  function buildProviderCapabilities(provider) {
2129
1912
  return {
2130
1913
  chatModels: ALLOWED_CHAT_MODELS_BY_PROVIDER[provider],
@@ -2135,88 +1918,38 @@ function buildProviderCapabilities(provider) {
2135
1918
  webSearch: WEB_SEARCH_MODE_BY_PROVIDER[provider]
2136
1919
  };
2137
1920
  }
2138
- AIProviderName.OPENAI, buildProviderCapabilities(AIProviderName.OPENAI), AIProviderName.ANTHROPIC, buildProviderCapabilities(AIProviderName.ANTHROPIC), AIProviderName.OPENROUTER, buildProviderCapabilities(AIProviderName.OPENROUTER), AIProviderName.AZURE, buildProviderCapabilities(AIProviderName.AZURE), AIProviderName.GOOGLE, buildProviderCapabilities(AIProviderName.GOOGLE), AIProviderName.CLOUDFLARE_GATEWAY, buildProviderCapabilities(AIProviderName.CLOUDFLARE_GATEWAY), AIProviderName.CUSTOM, buildProviderCapabilities(AIProviderName.CUSTOM), AIProviderName.BEDROCK, buildProviderCapabilities(AIProviderName.BEDROCK), AIProviderName.VERTEX, buildProviderCapabilities(AIProviderName.VERTEX), AIProviderName.MISTRAL, buildProviderCapabilities(AIProviderName.MISTRAL), AIProviderName.ACTIVEPIECES, buildProviderCapabilities(AIProviderName.ACTIVEPIECES), AIProviderName.XAI, buildProviderCapabilities(AIProviderName.XAI), AIProviderName.DEEPSEEK, buildProviderCapabilities(AIProviderName.DEEPSEEK), AIProviderName.ZAI, buildProviderCapabilities(AIProviderName.ZAI), AIProviderName.QWEN, buildProviderCapabilities(AIProviderName.QWEN), AIProviderName.MINIMAX, buildProviderCapabilities(AIProviderName.MINIMAX), AIProviderName.MOONSHOT, buildProviderCapabilities(AIProviderName.MOONSHOT);
2139
- let HumanInputFormResultTypes = /* @__PURE__ */ function(HumanInputFormResultTypes) {
2140
- HumanInputFormResultTypes["FILE"] = "file";
2141
- HumanInputFormResultTypes["MARKDOWN"] = "markdown";
2142
- return HumanInputFormResultTypes;
2143
- }({});
2144
- HumanInputFormResultTypes.FILE, HumanInputFormResultTypes.MARKDOWN;
2145
- let FieldType = /* @__PURE__ */ function(FieldType) {
2146
- FieldType["TEXT"] = "TEXT";
2147
- FieldType["NUMBER"] = "NUMBER";
2148
- FieldType["DATE"] = "DATE";
2149
- FieldType["DATETIME"] = "DATETIME";
2150
- FieldType["STATIC_DROPDOWN"] = "STATIC_DROPDOWN";
2151
- return FieldType;
2152
- }({});
2153
- let TableAutomationTrigger = /* @__PURE__ */ function(TableAutomationTrigger) {
2154
- TableAutomationTrigger["ON_NEW_RECORD"] = "ON_NEW_RECORD";
2155
- TableAutomationTrigger["ON_UPDATE_RECORD"] = "ON_UPDATE_RECORD";
2156
- return TableAutomationTrigger;
2157
- }({});
2158
- let TableAutomationStatus = /* @__PURE__ */ function(TableAutomationStatus) {
2159
- TableAutomationStatus["ENABLED"] = "ENABLED";
2160
- TableAutomationStatus["DISABLED"] = "DISABLED";
2161
- return TableAutomationStatus;
2162
- }({});
2163
- let FilterOperator = /* @__PURE__ */ function(FilterOperator) {
2164
- FilterOperator["EQ"] = "eq";
2165
- FilterOperator["NEQ"] = "neq";
2166
- FilterOperator["GT"] = "gt";
2167
- FilterOperator["GTE"] = "gte";
2168
- FilterOperator["LT"] = "lt";
2169
- FilterOperator["LTE"] = "lte";
2170
- FilterOperator["CO"] = "co";
2171
- FilterOperator["EXISTS"] = "exists";
2172
- FilterOperator["NOT_EXISTS"] = "not_exists";
2173
- return FilterOperator;
2174
- }({});
2175
- ({ ...BaseModelSchema }), FieldType.STATIC_DROPDOWN, { ...BaseModelSchema }, FieldType.TEXT, FieldType.NUMBER, FieldType.DATE, FieldType.DATETIME;
2176
- ({ ...BaseModelSchema }), Nullable(/* @__PURE__ */ string()), NullableEnum(TableAutomationStatus), NullableEnum(TableAutomationTrigger);
1921
+ buildProviderCapabilities("openai"), buildProviderCapabilities("anthropic"), buildProviderCapabilities("openrouter"), buildProviderCapabilities("azure"), buildProviderCapabilities("google"), buildProviderCapabilities("cloudflare-gateway"), buildProviderCapabilities("custom"), buildProviderCapabilities("bedrock"), buildProviderCapabilities("vertex"), buildProviderCapabilities("mistral"), buildProviderCapabilities("activepieces"), buildProviderCapabilities("xai"), buildProviderCapabilities("deepseek"), buildProviderCapabilities("zai"), buildProviderCapabilities("qwen"), buildProviderCapabilities("minimax"), buildProviderCapabilities("moonshot");
1922
+ ({ ...BaseModelSchema }), { ...BaseModelSchema };
1923
+ ({ ...BaseModelSchema });
1924
+ ({ ...BaseModelSchema });
2177
1925
  ({ ...BaseModelSchema });
2178
- OptionalArrayFromQuery(/* @__PURE__ */ string()), OptionalArrayFromQuery(/* @__PURE__ */ string());
2179
- coerceToString();
2180
- coerceToString();
2181
- OptionalArrayFromQuery(/* @__PURE__ */ discriminatedUnion("operator", [
2182
- valueFilter(FilterOperator.EQ),
2183
- valueFilter(FilterOperator.NEQ),
2184
- valueFilter(FilterOperator.GT),
2185
- valueFilter(FilterOperator.GTE),
2186
- valueFilter(FilterOperator.LT),
2187
- valueFilter(FilterOperator.LTE),
2188
- valueFilter(FilterOperator.CO),
2189
- existenceFilter(FilterOperator.EXISTS),
2190
- existenceFilter(FilterOperator.NOT_EXISTS)
2191
- ]));
2192
- function coerceToString() {
2193
- return /* @__PURE__ */ pipe(/* @__PURE__ */ transform((v) => v === null || v === void 0 ? v : String(v)), /* @__PURE__ */ nullable(/* @__PURE__ */ string()));
2194
- }
2195
- function valueFilter(op) {
2196
- return /* @__PURE__ */ object({
2197
- fieldId: /* @__PURE__ */ string(),
2198
- operator: /* @__PURE__ */ literal(op),
2199
- value: /* @__PURE__ */ string()
2200
- });
2201
- }
2202
- function existenceFilter(op) {
2203
- return /* @__PURE__ */ object({
2204
- fieldId: /* @__PURE__ */ string(),
2205
- operator: /* @__PURE__ */ literal(op)
2206
- });
2207
- }
2208
- ({ ...BaseModelSchema }), Nullable(DateOrString), Nullable(/* @__PURE__ */ string());
2209
1926
  const PiecePropertyMap = /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([InputProperty, PieceAuthProperty]));
2210
- let WebhookRenewStrategy = /* @__PURE__ */ function(WebhookRenewStrategy) {
2211
- WebhookRenewStrategy["CRON"] = "CRON";
2212
- WebhookRenewStrategy["NONE"] = "NONE";
2213
- return WebhookRenewStrategy;
2214
- }({});
2215
1927
  const WebhookRenewConfiguration = /* @__PURE__ */ union([/* @__PURE__ */ object({
2216
- strategy: /* @__PURE__ */ literal(WebhookRenewStrategy.CRON),
1928
+ strategy: /* @__PURE__ */ literal("CRON"),
2217
1929
  cronExpression: /* @__PURE__ */ string()
2218
- }), /* @__PURE__ */ object({ strategy: /* @__PURE__ */ literal(WebhookRenewStrategy.NONE) })]);
1930
+ }), /* @__PURE__ */ object({ strategy: /* @__PURE__ */ literal("NONE") })]);
2219
1931
  var ITrigger = class {
1932
+ name;
1933
+ displayName;
1934
+ description;
1935
+ requireAuth;
1936
+ props;
1937
+ type;
1938
+ handshakeConfiguration;
1939
+ onHandshake;
1940
+ renewConfiguration;
1941
+ onRenew;
1942
+ onEnable;
1943
+ onDisable;
1944
+ onStart;
1945
+ run;
1946
+ test;
1947
+ sampleData;
1948
+ testStrategy;
1949
+ outputSchema;
1950
+ aiMetadata;
1951
+ classification;
1952
+ propertyGroups;
2220
1953
  constructor(name, displayName, description, requireAuth, props, type, handshakeConfiguration, onHandshake, renewConfiguration, onRenew, onEnable, onDisable, onStart, run, test, sampleData, testStrategy, outputSchema, aiMetadata, classification, propertyGroups) {
2221
1954
  this.name = name;
2222
1955
  this.displayName = displayName;
@@ -2243,22 +1976,31 @@ var ITrigger = class {
2243
1976
  };
2244
1977
  const createTrigger = (params) => {
2245
1978
  switch (params.type) {
2246
- case TriggerStrategy.WEBHOOK: return new ITrigger(params.name, params.displayName, params.description, params.requireAuth ?? true, params.props, params.type, params.handshakeConfiguration ?? { strategy: WebhookHandshakeStrategy.NONE }, params.onHandshake ?? (async () => ({ status: 200 })), params.renewConfiguration ?? { strategy: WebhookRenewStrategy.NONE }, params.onRenew ?? (async () => Promise.resolve()), params.onEnable, params.onDisable, params.onStart ?? (async () => Promise.resolve()), params.run, params.test ?? (() => Promise.resolve([params.sampleData])), params.sampleData, params.test ? TriggerTestStrategy.TEST_FUNCTION : TriggerTestStrategy.SIMULATION, params.outputSchema, params.aiMetadata, params.classification, params.propertyGroups);
2247
- case TriggerStrategy.POLLING: return new ITrigger(params.name, params.displayName, params.description, params.requireAuth ?? true, params.props, params.type, { strategy: WebhookHandshakeStrategy.NONE }, async () => ({ status: 200 }), { strategy: WebhookRenewStrategy.NONE }, async () => Promise.resolve(), params.onEnable, params.onDisable, params.onStart ?? (async () => Promise.resolve()), params.run, params.test ?? (() => Promise.resolve([params.sampleData])), params.sampleData, TriggerTestStrategy.TEST_FUNCTION, params.outputSchema, params.aiMetadata, params.classification, params.propertyGroups);
2248
- case TriggerStrategy.MANUAL: return new ITrigger(params.name, params.displayName, params.description, params.requireAuth ?? true, params.props, params.type, { strategy: WebhookHandshakeStrategy.NONE }, async () => ({ status: 200 }), { strategy: WebhookRenewStrategy.NONE }, async () => Promise.resolve(), params.onEnable, params.onDisable, params.onStart ?? (async () => Promise.resolve()), params.run, params.test ?? (() => Promise.resolve([params.sampleData])), params.sampleData, TriggerTestStrategy.TEST_FUNCTION, params.outputSchema, params.aiMetadata, params.classification, params.propertyGroups);
2249
- case TriggerStrategy.APP_WEBHOOK: return new ITrigger(params.name, params.displayName, params.description, params.requireAuth ?? true, params.props, params.type, { strategy: WebhookHandshakeStrategy.NONE }, async () => ({ status: 200 }), { strategy: WebhookRenewStrategy.NONE }, async () => Promise.resolve(), params.onEnable, params.onDisable, params.onStart ?? (async () => Promise.resolve()), params.run, params.test ?? (() => Promise.resolve([params.sampleData])), params.sampleData, isNil(params.sampleData) && isNil(params.test) ? TriggerTestStrategy.SIMULATION : TriggerTestStrategy.TEST_FUNCTION, params.outputSchema, params.aiMetadata, params.classification, params.propertyGroups);
1979
+ case "WEBHOOK": return new ITrigger(params.name, params.displayName, params.description, params.requireAuth ?? true, params.props, params.type, params.handshakeConfiguration ?? { strategy: "NONE" }, params.onHandshake ?? (async () => ({ status: 200 })), params.renewConfiguration ?? { strategy: "NONE" }, params.onRenew ?? (async () => Promise.resolve()), params.onEnable, params.onDisable, params.onStart ?? (async () => Promise.resolve()), params.run, params.test ?? (() => Promise.resolve([params.sampleData])), params.sampleData, params.test ? "TEST_FUNCTION" : "SIMULATION", params.outputSchema, params.aiMetadata, params.classification, params.propertyGroups);
1980
+ case "POLLING": return new ITrigger(params.name, params.displayName, params.description, params.requireAuth ?? true, params.props, params.type, { strategy: "NONE" }, async () => ({ status: 200 }), { strategy: "NONE" }, async () => Promise.resolve(), params.onEnable, params.onDisable, params.onStart ?? (async () => Promise.resolve()), params.run, params.test ?? (() => Promise.resolve([params.sampleData])), params.sampleData, "TEST_FUNCTION", params.outputSchema, params.aiMetadata, params.classification, params.propertyGroups);
1981
+ case "MANUAL": return new ITrigger(params.name, params.displayName, params.description, params.requireAuth ?? true, params.props, params.type, { strategy: "NONE" }, async () => ({ status: 200 }), { strategy: "NONE" }, async () => Promise.resolve(), params.onEnable, params.onDisable, params.onStart ?? (async () => Promise.resolve()), params.run, params.test ?? (() => Promise.resolve([params.sampleData])), params.sampleData, "TEST_FUNCTION", params.outputSchema, params.aiMetadata, params.classification, params.propertyGroups);
1982
+ case "APP_WEBHOOK": return new ITrigger(params.name, params.displayName, params.description, params.requireAuth ?? true, params.props, params.type, { strategy: "NONE" }, async () => ({ status: 200 }), { strategy: "NONE" }, async () => Promise.resolve(), params.onEnable, params.onDisable, params.onStart ?? (async () => Promise.resolve()), params.run, params.test ?? (() => Promise.resolve([params.sampleData])), params.sampleData, isNil(params.sampleData) && isNil(params.test) ? "SIMULATION" : "TEST_FUNCTION", params.outputSchema, params.aiMetadata, params.classification, params.propertyGroups);
1983
+ default: {
1984
+ const { name, type, strategy } = params;
1985
+ throw new Error(type === void 0 && strategy !== void 0 ? `createTrigger: trigger ${JSON.stringify(name)} sets \`strategy\`; the field is \`type\`, e.g. type: TriggerStrategy.POLLING` : `createTrigger: trigger ${JSON.stringify(name)} has \`type\` ${JSON.stringify(type)}; set type: TriggerStrategy.POLLING or TriggerStrategy.WEBHOOK`);
1986
+ }
2250
1987
  }
2251
1988
  };
2252
- const LATEST_CONTEXT_VERSION = (/* @__PURE__ */ function(ContextVersion) {
2253
- ContextVersion["V1"] = "1";
2254
- ContextVersion["V2"] = "2";
2255
- return ContextVersion;
2256
- }({})).V2;
2257
1989
  const MINIMUM_SUPPORTED_RELEASE_AFTER_LATEST_CONTEXT_VERSION = "0.82.0";
2258
1990
  var Piece = class {
1991
+ displayName;
1992
+ logoUrl;
1993
+ authors;
1994
+ events;
1995
+ categories;
1996
+ auth;
1997
+ minimumSupportedRelease;
1998
+ maximumSupportedRelease;
1999
+ description;
2000
+ deprecated;
2259
2001
  _actions = {};
2260
2002
  _triggers = {};
2261
- getContextInfo = () => ({ version: LATEST_CONTEXT_VERSION });
2003
+ getContextInfo = () => ({ version: "2" });
2262
2004
  constructor(displayName, logoUrl, authors, events, actions, triggers, categories, auth, minimumSupportedRelease = MINIMUM_SUPPORTED_RELEASE_AFTER_LATEST_CONTEXT_VERSION, maximumSupportedRelease, description = "", deprecated) {
2263
2005
  this.displayName = displayName;
2264
2006
  this.logoUrl = logoUrl;