@hotmeshio/long-tail 0.1.7 → 0.1.8
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.
- package/README.md +3 -1
- package/build/api/auth.d.ts +11 -0
- package/build/api/auth.js +11 -0
- package/build/api/bot-accounts.d.ts +87 -0
- package/build/api/bot-accounts.js +87 -0
- package/build/api/controlplane.d.ts +48 -0
- package/build/api/controlplane.js +48 -0
- package/build/api/dba.d.ts +27 -0
- package/build/api/dba.js +27 -0
- package/build/api/escalations.d.ts +201 -0
- package/build/api/escalations.js +236 -0
- package/build/api/exports.d.ts +58 -0
- package/build/api/exports.js +58 -0
- package/build/api/insight.d.ts +57 -0
- package/build/api/insight.js +57 -0
- package/build/api/maintenance.d.ts +15 -0
- package/build/api/maintenance.js +15 -0
- package/build/api/mcp-runs.d.ts +27 -0
- package/build/api/mcp-runs.js +27 -0
- package/build/api/mcp.d.ts +108 -0
- package/build/api/mcp.js +108 -0
- package/build/api/namespaces.d.ts +13 -0
- package/build/api/namespaces.js +13 -0
- package/build/api/roles.d.ts +63 -0
- package/build/api/roles.js +63 -5
- package/build/api/settings.d.ts +8 -0
- package/build/api/settings.js +8 -0
- package/build/api/tasks.d.ts +43 -0
- package/build/api/tasks.js +43 -0
- package/build/api/users.d.ts +71 -0
- package/build/api/users.js +71 -5
- package/build/api/workflow-sets.d.ts +51 -0
- package/build/api/workflow-sets.js +51 -0
- package/build/api/workflows.d.ts +110 -0
- package/build/api/workflows.js +109 -0
- package/build/api/yaml-workflows.d.ts +195 -0
- package/build/api/yaml-workflows.js +195 -0
- package/build/examples/types/envelopes.d.ts +27 -0
- package/build/examples/types/index.d.ts +1 -1
- package/build/examples/workers.js +8 -0
- package/build/examples/workflows/assembly-line/activities.d.ts +28 -0
- package/build/examples/workflows/assembly-line/activities.js +53 -0
- package/build/examples/workflows/assembly-line/index.d.ts +17 -0
- package/build/examples/workflows/assembly-line/index.js +60 -0
- package/build/examples/workflows/assembly-line/iterator.d.ts +12 -0
- package/build/examples/workflows/assembly-line/iterator.js +54 -0
- package/build/examples/workflows/assembly-line/reverter.d.ts +18 -0
- package/build/examples/workflows/assembly-line/reverter.js +89 -0
- package/build/examples/workflows/assembly-line/types.d.ts +25 -0
- package/build/examples/workflows/assembly-line/types.js +8 -0
- package/build/examples/workflows/assembly-line/worker.d.ts +13 -0
- package/build/examples/workflows/assembly-line/worker.js +81 -0
- package/build/routes/escalations/list.js +22 -0
- package/build/routes/workflows/invocation.js +15 -9
- package/build/sdk/index.d.ts +11 -0
- package/build/sdk/index.js +1 -0
- package/build/services/workflow-invocation.d.ts +15 -2
- package/build/services/workflow-invocation.js +11 -6
- package/build/tsconfig.tsbuildinfo +1 -1
- package/dashboard/dist/assets/{AdminDashboard-DRjkRSjJ.js → AdminDashboard-B15jSEV2.js} +2 -2
- package/dashboard/dist/assets/{AdminDashboard-DRjkRSjJ.js.map → AdminDashboard-B15jSEV2.js.map} +1 -1
- package/dashboard/dist/assets/{AvailableEscalationsPage-CnivX4Tz.js → AvailableEscalationsPage-0V2yvKak.js} +2 -2
- package/dashboard/dist/assets/{AvailableEscalationsPage-CnivX4Tz.js.map → AvailableEscalationsPage-0V2yvKak.js.map} +1 -1
- package/dashboard/dist/assets/{BotPicker-DwwaBhTH.js → BotPicker-B4UxHcek.js} +2 -2
- package/dashboard/dist/assets/{BotPicker-DwwaBhTH.js.map → BotPicker-B4UxHcek.js.map} +1 -1
- package/dashboard/dist/assets/{CollapsibleSection-DQpaVA0M.js → CollapsibleSection-BBexNWVd.js} +2 -2
- package/dashboard/dist/assets/{CollapsibleSection-DQpaVA0M.js.map → CollapsibleSection-BBexNWVd.js.map} +1 -1
- package/dashboard/dist/assets/{ConfirmDeleteModal-B7JoDNvt.js → ConfirmDeleteModal-DlPDJSq_.js} +2 -2
- package/dashboard/dist/assets/{ConfirmDeleteModal-B7JoDNvt.js.map → ConfirmDeleteModal-DlPDJSq_.js.map} +1 -1
- package/dashboard/dist/assets/{CopyableId-AqoZayBG.js → CopyableId-BxHW1ahb.js} +2 -2
- package/dashboard/dist/assets/{CopyableId-AqoZayBG.js.map → CopyableId-BxHW1ahb.js.map} +1 -1
- package/dashboard/dist/assets/{CredentialsPage-qGw1kQzi.js → CredentialsPage-Bp_Y1Szk.js} +2 -2
- package/dashboard/dist/assets/{CredentialsPage-qGw1kQzi.js.map → CredentialsPage-Bp_Y1Szk.js.map} +1 -1
- package/dashboard/dist/assets/{CustomDurationPicker-D1HUQcd0.js → CustomDurationPicker-ByBFqXSO.js} +2 -2
- package/dashboard/dist/assets/{CustomDurationPicker-D1HUQcd0.js.map → CustomDurationPicker-ByBFqXSO.js.map} +1 -1
- package/dashboard/dist/assets/{DataTable-DKvSKoVG.js → DataTable-DyIXg-tQ.js} +2 -2
- package/dashboard/dist/assets/{DataTable-DKvSKoVG.js.map → DataTable-DyIXg-tQ.js.map} +1 -1
- package/dashboard/dist/assets/{ElapsedCell-B0yrReGQ.js → ElapsedCell-BgnA0qpS.js} +2 -2
- package/dashboard/dist/assets/{ElapsedCell-B0yrReGQ.js.map → ElapsedCell-BgnA0qpS.js.map} +1 -1
- package/dashboard/dist/assets/{EmptyState-X0fIzYID.js → EmptyState-DlMImvgm.js} +2 -2
- package/dashboard/dist/assets/{EmptyState-X0fIzYID.js.map → EmptyState-DlMImvgm.js.map} +1 -1
- package/dashboard/dist/assets/{EscalationsOverview-BQAT9W7r.js → EscalationsOverview-D90kdfw1.js} +2 -2
- package/dashboard/dist/assets/{EscalationsOverview-BQAT9W7r.js.map → EscalationsOverview-D90kdfw1.js.map} +1 -1
- package/dashboard/dist/assets/{EventTable-CX1KNLhZ.js → EventTable-BNxtlgNz.js} +2 -2
- package/dashboard/dist/assets/{EventTable-CX1KNLhZ.js.map → EventTable-BNxtlgNz.js.map} +1 -1
- package/dashboard/dist/assets/{FilterBar-DMTvuQy-.js → FilterBar-BTiaAhCx.js} +2 -2
- package/dashboard/dist/assets/{FilterBar-DMTvuQy-.js.map → FilterBar-BTiaAhCx.js.map} +1 -1
- package/dashboard/dist/assets/{ListToolbar-DTOSxoEy.js → ListToolbar-BUcagSCn.js} +2 -2
- package/dashboard/dist/assets/{ListToolbar-DTOSxoEy.js.map → ListToolbar-BUcagSCn.js.map} +1 -1
- package/dashboard/dist/assets/{McpOverview-BaKTIWrG.js → McpOverview-B-tCvz8C.js} +2 -2
- package/dashboard/dist/assets/{McpOverview-BaKTIWrG.js.map → McpOverview-B-tCvz8C.js.map} +1 -1
- package/dashboard/dist/assets/{McpQueryDetailPage-CC08T5k8.js → McpQueryDetailPage-DPlF1wYb.js} +2 -2
- package/dashboard/dist/assets/{McpQueryDetailPage-CC08T5k8.js.map → McpQueryDetailPage-DPlF1wYb.js.map} +1 -1
- package/dashboard/dist/assets/{McpQueryPage-CVfF9dYg.js → McpQueryPage-Bz7AdcfR.js} +2 -2
- package/dashboard/dist/assets/{McpQueryPage-CVfF9dYg.js.map → McpQueryPage-Bz7AdcfR.js.map} +1 -1
- package/dashboard/dist/assets/{McpRunDetailPage-CKs1RWeV.js → McpRunDetailPage-Di_qpL2V.js} +2 -2
- package/dashboard/dist/assets/{McpRunDetailPage-CKs1RWeV.js.map → McpRunDetailPage-Di_qpL2V.js.map} +1 -1
- package/dashboard/dist/assets/{McpRunsPage-CcPD_tY1.js → McpRunsPage-BBgybBEa.js} +2 -2
- package/dashboard/dist/assets/{McpRunsPage-CcPD_tY1.js.map → McpRunsPage-BBgybBEa.js.map} +1 -1
- package/dashboard/dist/assets/{Modal-_2AbWxJT.js → Modal-CaJ0gTEa.js} +2 -2
- package/dashboard/dist/assets/{Modal-_2AbWxJT.js.map → Modal-CaJ0gTEa.js.map} +1 -1
- package/dashboard/dist/assets/{OperatorDashboard-BGiRaRDr.js → OperatorDashboard-DDfMmrmR.js} +2 -2
- package/dashboard/dist/assets/{OperatorDashboard-BGiRaRDr.js.map → OperatorDashboard-DDfMmrmR.js.map} +1 -1
- package/dashboard/dist/assets/{PageHeader-DVr5Qyzm.js → PageHeader-C5D-G5rp.js} +2 -2
- package/dashboard/dist/assets/{PageHeader-DVr5Qyzm.js.map → PageHeader-C5D-G5rp.js.map} +1 -1
- package/dashboard/dist/assets/{PageHeaderWithStats-D0KRASML.js → PageHeaderWithStats-DCa2eZh2.js} +2 -2
- package/dashboard/dist/assets/{PageHeaderWithStats-D0KRASML.js.map → PageHeaderWithStats-DCa2eZh2.js.map} +1 -1
- package/dashboard/dist/assets/{PriorityBadge-Bx2559OU.js → PriorityBadge-DTHq6OUZ.js} +2 -2
- package/dashboard/dist/assets/{PriorityBadge-Bx2559OU.js.map → PriorityBadge-DTHq6OUZ.js.map} +1 -1
- package/dashboard/dist/assets/{ProcessDetailPage-69I--sry.js → ProcessDetailPage-fC4dhrd0.js} +2 -2
- package/dashboard/dist/assets/{ProcessDetailPage-69I--sry.js.map → ProcessDetailPage-fC4dhrd0.js.map} +1 -1
- package/dashboard/dist/assets/{ProcessesListPage-BDpUbua2.js → ProcessesListPage-CL2MY8uD.js} +2 -2
- package/dashboard/dist/assets/{ProcessesListPage-BDpUbua2.js.map → ProcessesListPage-CL2MY8uD.js.map} +1 -1
- package/dashboard/dist/assets/{RolePill-CcAqEaSt.js → RolePill-kgKPANly.js} +2 -2
- package/dashboard/dist/assets/{RolePill-CcAqEaSt.js.map → RolePill-kgKPANly.js.map} +1 -1
- package/dashboard/dist/assets/{RolesPage-Cl23Hjet.js → RolesPage-Be2lXTHD.js} +2 -2
- package/dashboard/dist/assets/{RolesPage-Cl23Hjet.js.map → RolesPage-Be2lXTHD.js.map} +1 -1
- package/dashboard/dist/assets/{RowActions-B4mqIt3Z.js → RowActions-DIzJCwqR.js} +2 -2
- package/dashboard/dist/assets/{RowActions-B4mqIt3Z.js.map → RowActions-DIzJCwqR.js.map} +1 -1
- package/dashboard/dist/assets/{StatCard-Cz_2OjAZ.js → StatCard-CRi2Jy6t.js} +2 -2
- package/dashboard/dist/assets/{StatCard-Cz_2OjAZ.js.map → StatCard-CRi2Jy6t.js.map} +1 -1
- package/dashboard/dist/assets/{StatusBadge-Wi2FJZsn.js → StatusBadge-BETI_8Mr.js} +2 -2
- package/dashboard/dist/assets/{StatusBadge-Wi2FJZsn.js.map → StatusBadge-BETI_8Mr.js.map} +1 -1
- package/dashboard/dist/assets/{StepIndicator-PW5NRDMb.js → StepIndicator-DjpMqCjz.js} +2 -2
- package/dashboard/dist/assets/{StepIndicator-PW5NRDMb.js.map → StepIndicator-DjpMqCjz.js.map} +1 -1
- package/dashboard/dist/assets/{StickyPagination-Bl2Uzz65.js → StickyPagination-BZbExQ9t.js} +2 -2
- package/dashboard/dist/assets/{StickyPagination-Bl2Uzz65.js.map → StickyPagination-BZbExQ9t.js.map} +1 -1
- package/dashboard/dist/assets/{SwimlaneTimeline-CUPqMd0z.js → SwimlaneTimeline-DZthQyhR.js} +2 -2
- package/dashboard/dist/assets/{SwimlaneTimeline-CUPqMd0z.js.map → SwimlaneTimeline-DZthQyhR.js.map} +1 -1
- package/dashboard/dist/assets/{TagInput-BLtf86Ly.js → TagInput-CukbOfYn.js} +2 -2
- package/dashboard/dist/assets/{TagInput-BLtf86Ly.js.map → TagInput-CukbOfYn.js.map} +1 -1
- package/dashboard/dist/assets/{TaskDetailPage-BXJFX74D.js → TaskDetailPage-CIZHIKo9.js} +2 -2
- package/dashboard/dist/assets/{TaskDetailPage-BXJFX74D.js.map → TaskDetailPage-CIZHIKo9.js.map} +1 -1
- package/dashboard/dist/assets/{TaskQueuePill-CWYj3xKe.js → TaskQueuePill-Q7DGoysj.js} +2 -2
- package/dashboard/dist/assets/{TaskQueuePill-CWYj3xKe.js.map → TaskQueuePill-Q7DGoysj.js.map} +1 -1
- package/dashboard/dist/assets/{TasksListPage-C3cX94Mw.js → TasksListPage-CsC9wjb0.js} +2 -2
- package/dashboard/dist/assets/{TasksListPage-C3cX94Mw.js.map → TasksListPage-CsC9wjb0.js.map} +1 -1
- package/dashboard/dist/assets/{TimeAgo-B_5yDDHV.js → TimeAgo-BcOOnJeH.js} +2 -2
- package/dashboard/dist/assets/{TimeAgo-B_5yDDHV.js.map → TimeAgo-BcOOnJeH.js.map} +1 -1
- package/dashboard/dist/assets/{TimestampCell-DRX724uU.js → TimestampCell-CEMapYDQ.js} +2 -2
- package/dashboard/dist/assets/{TimestampCell-DRX724uU.js.map → TimestampCell-CEMapYDQ.js.map} +1 -1
- package/dashboard/dist/assets/{UserName-Ca8FA469.js → UserName-BHoN7iRL.js} +2 -2
- package/dashboard/dist/assets/{UserName-Ca8FA469.js.map → UserName-BHoN7iRL.js.map} +1 -1
- package/dashboard/dist/assets/{WorkflowExecutionPage-BBYWEV2P.js → WorkflowExecutionPage-DawKl1LT.js} +2 -2
- package/dashboard/dist/assets/{WorkflowExecutionPage-BBYWEV2P.js.map → WorkflowExecutionPage-DawKl1LT.js.map} +1 -1
- package/dashboard/dist/assets/{WorkflowPill-BXifAuLi.js → WorkflowPill-CP84Vqeg.js} +2 -2
- package/dashboard/dist/assets/{WorkflowPill-BXifAuLi.js.map → WorkflowPill-CP84Vqeg.js.map} +1 -1
- package/dashboard/dist/assets/{WorkflowsDashboard-Drl3juz9.js → WorkflowsDashboard-QrvVFxtQ.js} +2 -2
- package/dashboard/dist/assets/{WorkflowsDashboard-Drl3juz9.js.map → WorkflowsDashboard-QrvVFxtQ.js.map} +1 -1
- package/dashboard/dist/assets/{WorkflowsOverview-03IRrDLg.js → WorkflowsOverview-DuhAi_OY.js} +2 -2
- package/dashboard/dist/assets/{WorkflowsOverview-03IRrDLg.js.map → WorkflowsOverview-DuhAi_OY.js.map} +1 -1
- package/dashboard/dist/assets/{YamlWorkflowsPage-DC2cLxVi.js → YamlWorkflowsPage-Dc9xw82a.js} +2 -2
- package/dashboard/dist/assets/{YamlWorkflowsPage-DC2cLxVi.js.map → YamlWorkflowsPage-Dc9xw82a.js.map} +1 -1
- package/dashboard/dist/assets/{bots-DZEXcgiJ.js → bots-Dny-rmmI.js} +2 -2
- package/dashboard/dist/assets/{bots-DZEXcgiJ.js.map → bots-Dny-rmmI.js.map} +1 -1
- package/dashboard/dist/assets/{escalation-Cw48lNaF.js → escalation-CV0sKNH5.js} +2 -2
- package/dashboard/dist/assets/{escalation-Cw48lNaF.js.map → escalation-CV0sKNH5.js.map} +1 -1
- package/dashboard/dist/assets/{escalation-columns-NINpo3qf.js → escalation-columns-30CKyoWI.js} +2 -2
- package/dashboard/dist/assets/{escalation-columns-NINpo3qf.js.map → escalation-columns-30CKyoWI.js.map} +1 -1
- package/dashboard/dist/assets/{helpers-fk_qr729.js → helpers-C1-30CzH.js} +2 -2
- package/dashboard/dist/assets/{helpers-fk_qr729.js.map → helpers-C1-30CzH.js.map} +1 -1
- package/dashboard/dist/assets/{helpers-Cuu3xKfr.js → helpers-C1jaRD-d.js} +2 -2
- package/dashboard/dist/assets/{helpers-Cuu3xKfr.js.map → helpers-C1jaRD-d.js.map} +1 -1
- package/dashboard/dist/assets/{index-CNI7k7oB.js → index-BUVQ6wmy.js} +2 -2
- package/dashboard/dist/assets/{index-CNI7k7oB.js.map → index-BUVQ6wmy.js.map} +1 -1
- package/dashboard/dist/assets/{index-aRvL-dXp.js → index-CxVB7F4X.js} +2 -2
- package/dashboard/dist/assets/{index-aRvL-dXp.js.map → index-CxVB7F4X.js.map} +1 -1
- package/dashboard/dist/assets/{index-BIG3KooI.js → index-D-oCWCAS.js} +2 -2
- package/dashboard/dist/assets/{index-BIG3KooI.js.map → index-D-oCWCAS.js.map} +1 -1
- package/dashboard/dist/assets/{index-b03HlbnH.js → index-D0wPM3Ck.js} +2 -2
- package/dashboard/dist/assets/{index-b03HlbnH.js.map → index-D0wPM3Ck.js.map} +1 -1
- package/dashboard/dist/assets/{index-DwRytW9O.js → index-DHgnkykj.js} +2 -2
- package/dashboard/dist/assets/{index-DwRytW9O.js.map → index-DHgnkykj.js.map} +1 -1
- package/dashboard/dist/assets/{index-Dj-z-x8M.js → index-D_aJBEAG.js} +2 -2
- package/dashboard/dist/assets/{index-Dj-z-x8M.js.map → index-D_aJBEAG.js.map} +1 -1
- package/dashboard/dist/assets/{index-CORHB0WC.js → index-Dd_U4mLm.js} +2 -2
- package/dashboard/dist/assets/{index-CORHB0WC.js.map → index-Dd_U4mLm.js.map} +1 -1
- package/dashboard/dist/assets/{index-BwN3KP_L.js → index-DnmZbNxk.js} +7 -7
- package/dashboard/dist/assets/index-DnmZbNxk.js.map +1 -0
- package/dashboard/dist/assets/{index-B98ipWxE.js → index-_RBvi7s6.js} +2 -2
- package/dashboard/dist/assets/{index-B98ipWxE.js.map → index-_RBvi7s6.js.map} +1 -1
- package/dashboard/dist/assets/{index-Bxe8h1x4.js → index-n7td8zgX.js} +2 -2
- package/dashboard/dist/assets/{index-Bxe8h1x4.js.map → index-n7td8zgX.js.map} +1 -1
- package/dashboard/dist/assets/{mcp-BZoFryNc.js → mcp-CRFr4L9W.js} +2 -2
- package/dashboard/dist/assets/{mcp-BZoFryNc.js.map → mcp-CRFr4L9W.js.map} +1 -1
- package/dashboard/dist/assets/{mcp-query-wiw1kwm8.js → mcp-query-DHY2mZBQ.js} +2 -2
- package/dashboard/dist/assets/{mcp-query-wiw1kwm8.js.map → mcp-query-DHY2mZBQ.js.map} +1 -1
- package/dashboard/dist/assets/{mcp-runs-BaEKnf5v.js → mcp-runs-BqPHqwAO.js} +2 -2
- package/dashboard/dist/assets/{mcp-runs-BaEKnf5v.js.map → mcp-runs-BqPHqwAO.js.map} +1 -1
- package/dashboard/dist/assets/{namespaces-BwnZI4_A.js → namespaces-TG1aIpo_.js} +2 -2
- package/dashboard/dist/assets/{namespaces-BwnZI4_A.js.map → namespaces-TG1aIpo_.js.map} +1 -1
- package/dashboard/dist/assets/{roles-Bgn1K8zU.js → roles-DhhLTvXg.js} +2 -2
- package/dashboard/dist/assets/{roles-Bgn1K8zU.js.map → roles-DhhLTvXg.js.map} +1 -1
- package/dashboard/dist/assets/{settings-CizYiutL.js → settings-D9MBzEeB.js} +2 -2
- package/dashboard/dist/assets/{settings-CizYiutL.js.map → settings-D9MBzEeB.js.map} +1 -1
- package/dashboard/dist/assets/{tasks-Bmte_hc4.js → tasks-BxmcZoev.js} +2 -2
- package/dashboard/dist/assets/{tasks-Bmte_hc4.js.map → tasks-BxmcZoev.js.map} +1 -1
- package/dashboard/dist/assets/{useEventHooks-CUCxpiI2.js → useEventHooks-BylecvvI.js} +2 -2
- package/dashboard/dist/assets/{useEventHooks-CUCxpiI2.js.map → useEventHooks-BylecvvI.js.map} +1 -1
- package/dashboard/dist/assets/{useYamlActivityEvents-Cum02Ej9.js → useYamlActivityEvents-ocmj11e_.js} +2 -2
- package/dashboard/dist/assets/{useYamlActivityEvents-Cum02Ej9.js.map → useYamlActivityEvents-ocmj11e_.js.map} +1 -1
- package/dashboard/dist/assets/{users-NSDgTt-z.js → users-Ce5r-JAv.js} +2 -2
- package/dashboard/dist/assets/{users-NSDgTt-z.js.map → users-Ce5r-JAv.js.map} +1 -1
- package/dashboard/dist/assets/{workflows-k0XRdGXx.js → workflows-ykIeVbRJ.js} +2 -2
- package/dashboard/dist/assets/{workflows-k0XRdGXx.js.map → workflows-ykIeVbRJ.js.map} +1 -1
- package/dashboard/dist/assets/{yaml-workflows-DAre8I78.js → yaml-workflows-WypmKYht.js} +2 -2
- package/dashboard/dist/assets/{yaml-workflows-DAre8I78.js.map → yaml-workflows-WypmKYht.js.map} +1 -1
- package/dashboard/dist/index.html +1 -1
- package/docs/api/sdk/auth.md +27 -0
- package/docs/api/sdk/bot-accounts.md +243 -0
- package/docs/api/sdk/controlplane.md +103 -0
- package/docs/api/sdk/dba.md +52 -0
- package/docs/api/sdk/escalations.md +374 -0
- package/docs/api/sdk/events.md +68 -0
- package/docs/api/sdk/exports.md +124 -0
- package/docs/api/sdk/insight.md +112 -0
- package/docs/api/sdk/maintenance.md +54 -0
- package/docs/api/sdk/mcp-runs.md +71 -0
- package/docs/api/sdk/mcp.md +250 -0
- package/docs/api/sdk/namespaces.md +43 -0
- package/docs/api/sdk/roles.md +183 -0
- package/docs/api/sdk/settings.md +24 -0
- package/docs/api/sdk/tasks.md +120 -0
- package/docs/api/sdk/users.md +196 -0
- package/docs/api/sdk/workflow-sets.md +135 -0
- package/docs/api/sdk/workflows.md +271 -0
- package/docs/api/sdk/yaml-workflows.md +408 -0
- package/package.json +1 -1
- package/dashboard/dist/assets/index-BwN3KP_L.js.map +0 -1
- package/docs/epic-integration.md +0 -224
- package/docs/workflow-builder.md +0 -371
- /package/docs/api/{dba.md → http/dba.md} +0 -0
- /package/docs/api/{escalations.md → http/escalations.md} +0 -0
- /package/docs/api/{exports.md → http/exports.md} +0 -0
- /package/docs/api/{maintenance.md → http/maintenance.md} +0 -0
- /package/docs/api/{mcp-runs.md → http/mcp-runs.md} +0 -0
- /package/docs/api/{mcp-servers.md → http/mcp-servers.md} +0 -0
- /package/docs/api/{namespaces.md → http/namespaces.md} +0 -0
- /package/docs/api/{roles.md → http/roles.md} +0 -0
- /package/docs/api/{service-accounts.md → http/service-accounts.md} +0 -0
- /package/docs/api/{settings.md → http/settings.md} +0 -0
- /package/docs/api/{tasks.md → http/tasks.md} +0 -0
- /package/docs/api/{users.md → http/users.md} +0 -0
- /package/docs/api/{workflows.md → http/workflows.md} +0 -0
- /package/docs/api/{yaml-workflows.md → http/yaml-workflows.md} +0 -0
package/build/api/workflows.js
CHANGED
|
@@ -59,6 +59,17 @@ function isResolveError(err) {
|
|
|
59
59
|
return err?.message?.includes('Cannot resolve workflow');
|
|
60
60
|
}
|
|
61
61
|
// ── Invocation ──────────────────────────────────────────────────────────────
|
|
62
|
+
/**
|
|
63
|
+
* Start a workflow — proxy for `Durable.Client.workflow.start()`.
|
|
64
|
+
*
|
|
65
|
+
* Resolves the task queue, enforces auth/role constraints, builds the
|
|
66
|
+
* LTEnvelope with IAM context, and delegates to the Durable client.
|
|
67
|
+
* Any WorkflowOptions field (workflowId, expire, entity, namespace,
|
|
68
|
+
* search, signalIn, pending, etc.) can be passed via `options` and
|
|
69
|
+
* flows through to the Durable client unchanged.
|
|
70
|
+
*
|
|
71
|
+
* @see https://docs.hotmesh.io/types/types_durable.WorkflowOptions.html
|
|
72
|
+
*/
|
|
62
73
|
async function invokeWorkflow(input, auth) {
|
|
63
74
|
try {
|
|
64
75
|
await (0, workflow_invocation_1.checkInvocationRoles)(input.type, auth.userId);
|
|
@@ -67,6 +78,7 @@ async function invokeWorkflow(input, auth) {
|
|
|
67
78
|
data: input.data || {},
|
|
68
79
|
metadata: input.metadata,
|
|
69
80
|
executeAs: input.execute_as,
|
|
81
|
+
options: input.options,
|
|
70
82
|
auth: {
|
|
71
83
|
userId: auth.userId,
|
|
72
84
|
},
|
|
@@ -81,6 +93,15 @@ async function invokeWorkflow(input, auth) {
|
|
|
81
93
|
return { status, error: err.message };
|
|
82
94
|
}
|
|
83
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* Get the execution status of a workflow.
|
|
98
|
+
*
|
|
99
|
+
* Returns the HotMesh status code (0 = completed, 1 = running).
|
|
100
|
+
* Resolves the workflow handle via task record or worker registry.
|
|
101
|
+
*
|
|
102
|
+
* @param input.workflowId — HotMesh workflow ID
|
|
103
|
+
* @returns `{ status: 200, data: { workflowId, status } }` or 404
|
|
104
|
+
*/
|
|
84
105
|
async function getWorkflowStatus(input) {
|
|
85
106
|
try {
|
|
86
107
|
const resolved = await (0, task_1.resolveWorkflowHandle)(input.workflowId);
|
|
@@ -98,6 +119,15 @@ async function getWorkflowStatus(input) {
|
|
|
98
119
|
return { status: 500, error: err.message };
|
|
99
120
|
}
|
|
100
121
|
}
|
|
122
|
+
/**
|
|
123
|
+
* Get the result of a completed workflow.
|
|
124
|
+
*
|
|
125
|
+
* Returns 202 if the workflow is still running, 200 with the result
|
|
126
|
+
* payload when complete. Never blocks — always returns immediately.
|
|
127
|
+
*
|
|
128
|
+
* @param input.workflowId — HotMesh workflow ID
|
|
129
|
+
* @returns `{ status: 200, data: { workflowId, result } }` or 202 if running
|
|
130
|
+
*/
|
|
101
131
|
async function getWorkflowResult(input) {
|
|
102
132
|
try {
|
|
103
133
|
const resolved = await (0, task_1.resolveWorkflowHandle)(input.workflowId);
|
|
@@ -122,6 +152,14 @@ async function getWorkflowResult(input) {
|
|
|
122
152
|
return { status: 500, error: err.message };
|
|
123
153
|
}
|
|
124
154
|
}
|
|
155
|
+
/**
|
|
156
|
+
* Terminate a running workflow.
|
|
157
|
+
*
|
|
158
|
+
* Interrupts the workflow execution immediately via HotMesh.
|
|
159
|
+
*
|
|
160
|
+
* @param input.workflowId — HotMesh workflow ID
|
|
161
|
+
* @returns `{ status: 200, data: { terminated: true, workflowId } }` or 404
|
|
162
|
+
*/
|
|
125
163
|
async function terminateWorkflow(input) {
|
|
126
164
|
try {
|
|
127
165
|
const resolved = await (0, task_1.resolveWorkflowHandle)(input.workflowId);
|
|
@@ -139,6 +177,15 @@ async function terminateWorkflow(input) {
|
|
|
139
177
|
return { status: 500, error: err.message };
|
|
140
178
|
}
|
|
141
179
|
}
|
|
180
|
+
/**
|
|
181
|
+
* Export the full state of a workflow.
|
|
182
|
+
*
|
|
183
|
+
* Returns the serialized workflow state including all activity
|
|
184
|
+
* results, signals, and metadata.
|
|
185
|
+
*
|
|
186
|
+
* @param input.workflowId — HotMesh workflow ID
|
|
187
|
+
* @returns `{ status: 200, data: <exported state> }` or 404
|
|
188
|
+
*/
|
|
142
189
|
async function exportWorkflow(input) {
|
|
143
190
|
try {
|
|
144
191
|
const resolved = await (0, task_1.resolveWorkflowHandle)(input.workflowId);
|
|
@@ -152,6 +199,12 @@ async function exportWorkflow(input) {
|
|
|
152
199
|
}
|
|
153
200
|
}
|
|
154
201
|
// ── Discovery ───────────────────────────────────────────────────────────────
|
|
202
|
+
/**
|
|
203
|
+
* List active workflow workers with their registration status.
|
|
204
|
+
*
|
|
205
|
+
* @param input.include_system — include system workflows (default: false)
|
|
206
|
+
* @returns `{ status: 200, data: { workers: [{ name, task_queue, registered, system }] } }`
|
|
207
|
+
*/
|
|
155
208
|
async function listWorkers(input) {
|
|
156
209
|
try {
|
|
157
210
|
const activeWorkers = (0, registry_1.getRegisteredWorkers)();
|
|
@@ -172,6 +225,16 @@ async function listWorkers(input) {
|
|
|
172
225
|
return { status: 500, error: err.message };
|
|
173
226
|
}
|
|
174
227
|
}
|
|
228
|
+
/**
|
|
229
|
+
* Discover all known workflow types from workers, history, and config.
|
|
230
|
+
*
|
|
231
|
+
* Merges three sources: active in-memory workers, historical entities
|
|
232
|
+
* from the durable jobs table, and registered workflow configs. Returns
|
|
233
|
+
* a unified list with status flags for each type.
|
|
234
|
+
*
|
|
235
|
+
* @param input.include_system — include system workflows (default: false)
|
|
236
|
+
* @returns `{ status: 200, data: { workflows: [{ workflow_type, task_queue, registered, active, invocable, ... }] } }`
|
|
237
|
+
*/
|
|
175
238
|
async function listDiscoveredWorkflows(input) {
|
|
176
239
|
try {
|
|
177
240
|
// 1. Active workers from in-memory registry
|
|
@@ -216,6 +279,11 @@ async function listDiscoveredWorkflows(input) {
|
|
|
216
279
|
return { status: 500, error: err.message };
|
|
217
280
|
}
|
|
218
281
|
}
|
|
282
|
+
/**
|
|
283
|
+
* List all cron-scheduled workflows and their active state.
|
|
284
|
+
*
|
|
285
|
+
* @returns `{ status: 200, data: { schedules: [{ workflow_type, cron_schedule, active, ... }] } }`
|
|
286
|
+
*/
|
|
219
287
|
async function getCronStatus() {
|
|
220
288
|
try {
|
|
221
289
|
const configs = await configService.listWorkflowConfigs();
|
|
@@ -237,6 +305,11 @@ async function getCronStatus() {
|
|
|
237
305
|
}
|
|
238
306
|
}
|
|
239
307
|
// ── Configuration ───────────────────────────────────────────────────────────
|
|
308
|
+
/**
|
|
309
|
+
* List all registered workflow configurations.
|
|
310
|
+
*
|
|
311
|
+
* @returns `{ status: 200, data: { workflows: LTWorkflowConfig[] } }`
|
|
312
|
+
*/
|
|
240
313
|
async function listWorkflowConfigs() {
|
|
241
314
|
try {
|
|
242
315
|
const configs = await configService.listWorkflowConfigs();
|
|
@@ -246,6 +319,12 @@ async function listWorkflowConfigs() {
|
|
|
246
319
|
return { status: 500, error: err.message };
|
|
247
320
|
}
|
|
248
321
|
}
|
|
322
|
+
/**
|
|
323
|
+
* Get a single workflow configuration by type.
|
|
324
|
+
*
|
|
325
|
+
* @param input.type — workflow type name (e.g. `"reviewContent"`)
|
|
326
|
+
* @returns `{ status: 200, data: <config> }` or 404
|
|
327
|
+
*/
|
|
249
328
|
async function getWorkflowConfig(input) {
|
|
250
329
|
try {
|
|
251
330
|
const config = await configService.getWorkflowConfig(input.type);
|
|
@@ -258,6 +337,27 @@ async function getWorkflowConfig(input) {
|
|
|
258
337
|
return { status: 500, error: err.message };
|
|
259
338
|
}
|
|
260
339
|
}
|
|
340
|
+
/**
|
|
341
|
+
* Create or replace a workflow configuration.
|
|
342
|
+
*
|
|
343
|
+
* Invalidates the config cache and restarts the cron schedule if one
|
|
344
|
+
* is defined. Idempotent — safe to call repeatedly with the same input.
|
|
345
|
+
*
|
|
346
|
+
* @param input.type — workflow type name
|
|
347
|
+
* @param input.invocable — whether the workflow can be started via the API
|
|
348
|
+
* @param input.task_queue — HotMesh task queue
|
|
349
|
+
* @param input.default_role — default escalation role
|
|
350
|
+
* @param input.description — human-readable description
|
|
351
|
+
* @param input.execute_as — service account for proxy invocation
|
|
352
|
+
* @param input.roles — roles that can resolve escalations
|
|
353
|
+
* @param input.invocation_roles — roles that can invoke this workflow
|
|
354
|
+
* @param input.consumes — workflow types whose data this workflow consumes
|
|
355
|
+
* @param input.tool_tags — MCP tool tags for discovery
|
|
356
|
+
* @param input.envelope_schema — JSON Schema for envelope.data validation
|
|
357
|
+
* @param input.resolver_schema — JSON Schema for resolver payload validation
|
|
358
|
+
* @param input.cron_schedule — cron expression for scheduled execution
|
|
359
|
+
* @returns `{ status: 200, data: <saved config> }`
|
|
360
|
+
*/
|
|
261
361
|
async function upsertWorkflowConfig(input) {
|
|
262
362
|
try {
|
|
263
363
|
const config = await configService.upsertWorkflowConfig({
|
|
@@ -283,6 +383,15 @@ async function upsertWorkflowConfig(input) {
|
|
|
283
383
|
return { status: 500, error: err.message };
|
|
284
384
|
}
|
|
285
385
|
}
|
|
386
|
+
/**
|
|
387
|
+
* Delete a workflow configuration.
|
|
388
|
+
*
|
|
389
|
+
* Removes the config record and invalidates the cache. Active workers
|
|
390
|
+
* continue running — this only removes the config/interceptor binding.
|
|
391
|
+
*
|
|
392
|
+
* @param input.type — workflow type name
|
|
393
|
+
* @returns `{ status: 200, data: { deleted: true, workflow_type } }` or 404
|
|
394
|
+
*/
|
|
286
395
|
async function deleteWorkflowConfig(input) {
|
|
287
396
|
try {
|
|
288
397
|
const deleted = await configService.deleteWorkflowConfig(input.type);
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
import type { LTApiResult, LTApiAuth } from '../types/sdk';
|
|
2
|
+
/**
|
|
3
|
+
* List YAML workflows with optional filtering and pagination.
|
|
4
|
+
*
|
|
5
|
+
* Delegates to the DB layer. Returns 404 when a filter references an invalid UUID.
|
|
6
|
+
*
|
|
7
|
+
* @param input.status — lifecycle filter (draft, deployed, active, archived)
|
|
8
|
+
* @param input.graph_topic — filter by the HotMesh subscription topic
|
|
9
|
+
* @param input.app_id — filter by namespace (MCP server name)
|
|
10
|
+
* @param input.search — free-text search across workflow name/description
|
|
11
|
+
* @param input.source_workflow_id — filter by the execution trace this workflow was compiled from
|
|
12
|
+
* @param input.set_id — filter by compositional set membership
|
|
13
|
+
* @param input.limit — max rows to return
|
|
14
|
+
* @param input.offset — pagination offset
|
|
15
|
+
* @returns `{ status: 200, data: YamlWorkflow[] }` matching workflows
|
|
16
|
+
*/
|
|
2
17
|
export declare function listYamlWorkflows(input: {
|
|
3
18
|
status?: string;
|
|
4
19
|
graph_topic?: string;
|
|
@@ -9,6 +24,25 @@ export declare function listYamlWorkflows(input: {
|
|
|
9
24
|
limit?: number;
|
|
10
25
|
offset?: number;
|
|
11
26
|
}): Promise<LTApiResult>;
|
|
27
|
+
/**
|
|
28
|
+
* Compile an execution trace into a new YAML workflow (draft).
|
|
29
|
+
*
|
|
30
|
+
* Validates that the source execution did not exhaust its tool rounds, checks for
|
|
31
|
+
* topic collisions in the target namespace, then delegates to the LLM-based YAML
|
|
32
|
+
* generator. The resulting YAML, schemas, and activity manifest are persisted as a
|
|
33
|
+
* new draft record. Auto-derived tags are merged with any user-supplied tags.
|
|
34
|
+
*
|
|
35
|
+
* @param input.workflow_id — ID of the source execution trace to compile from
|
|
36
|
+
* @param input.task_queue — HotMesh task queue the source execution ran on
|
|
37
|
+
* @param input.workflow_name — type name of the source workflow
|
|
38
|
+
* @param input.name — tool name for the new workflow (no dashes; used to derive the topic)
|
|
39
|
+
* @param input.description — human-readable description passed to the generator
|
|
40
|
+
* @param input.app_id — target namespace (defaults to "longtail")
|
|
41
|
+
* @param input.subscribes — explicit subscription topic override (otherwise derived from name)
|
|
42
|
+
* @param input.tags — additional tags to merge with auto-derived tags
|
|
43
|
+
* @param input.compilation_feedback — natural-language feedback to steer the LLM compilation
|
|
44
|
+
* @returns `{ status: 201, data: YamlWorkflow }` the newly created draft record
|
|
45
|
+
*/
|
|
12
46
|
export declare function createYamlWorkflow(input: {
|
|
13
47
|
workflow_id: string;
|
|
14
48
|
task_queue: string;
|
|
@@ -20,6 +54,23 @@ export declare function createYamlWorkflow(input: {
|
|
|
20
54
|
tags?: string[];
|
|
21
55
|
compilation_feedback?: string;
|
|
22
56
|
}): Promise<LTApiResult>;
|
|
57
|
+
/**
|
|
58
|
+
* Create a YAML workflow directly from user-supplied YAML content (no compilation).
|
|
59
|
+
*
|
|
60
|
+
* Sanitizes the name, app_id, and graph_topic to lowercase alphanumeric characters.
|
|
61
|
+
* Rewrites the `subscribes`, `id`, and `topic` fields inside the YAML to match the
|
|
62
|
+
* sanitized values. Checks for topic collisions before persisting.
|
|
63
|
+
*
|
|
64
|
+
* @param input.name — tool name (sanitized to lowercase alphanumeric, periods, dashes, underscores)
|
|
65
|
+
* @param input.description — human-readable description; also stored as original_prompt
|
|
66
|
+
* @param input.yaml_content — raw HotMesh YAML definition
|
|
67
|
+
* @param input.input_schema — JSON Schema describing the workflow's input (defaults to empty object)
|
|
68
|
+
* @param input.activity_manifest — list of activity declarations (defaults to empty array)
|
|
69
|
+
* @param input.tags — classification tags (defaults to empty array)
|
|
70
|
+
* @param input.app_id — target namespace / MCP server name (defaults to "longtail", sanitized to lowercase alphanumeric)
|
|
71
|
+
* @param input.graph_topic — subscription topic override (defaults to sanitized name; overridden by `subscribes` in YAML if present)
|
|
72
|
+
* @returns `{ status: 200, data: YamlWorkflow }` the persisted workflow record
|
|
73
|
+
*/
|
|
23
74
|
export declare function createYamlWorkflowDirect(input: {
|
|
24
75
|
name: string;
|
|
25
76
|
description?: string;
|
|
@@ -30,28 +81,105 @@ export declare function createYamlWorkflowDirect(input: {
|
|
|
30
81
|
app_id?: string;
|
|
31
82
|
graph_topic?: string;
|
|
32
83
|
}): Promise<LTApiResult>;
|
|
84
|
+
/**
|
|
85
|
+
* Retrieve all distinct app_id namespaces that have at least one YAML workflow.
|
|
86
|
+
*
|
|
87
|
+
* @returns `{ status: 200, data: { app_ids: string[] } }` sorted list of namespace identifiers
|
|
88
|
+
*/
|
|
33
89
|
export declare function getAppIds(): Promise<LTApiResult>;
|
|
90
|
+
/**
|
|
91
|
+
* Fetch a single YAML workflow by its primary key.
|
|
92
|
+
*
|
|
93
|
+
* @param input.id — UUID of the workflow record
|
|
94
|
+
* @returns `{ status: 200, data: YamlWorkflow }` the full workflow record, or 404 if not found
|
|
95
|
+
*/
|
|
34
96
|
export declare function getYamlWorkflow(input: {
|
|
35
97
|
id: string;
|
|
36
98
|
}): Promise<LTApiResult>;
|
|
99
|
+
/**
|
|
100
|
+
* Partially update a YAML workflow record.
|
|
101
|
+
*
|
|
102
|
+
* Accepts arbitrary fields beyond `id` and forwards them to the DB update layer.
|
|
103
|
+
*
|
|
104
|
+
* @param input.id — UUID of the workflow to update
|
|
105
|
+
* @param input.[key] — any mutable workflow fields (name, description, yaml_content, tags, etc.)
|
|
106
|
+
* @returns `{ status: 200, data: YamlWorkflow }` the updated record, or 404 if not found
|
|
107
|
+
*/
|
|
37
108
|
export declare function updateYamlWorkflow(input: {
|
|
38
109
|
id: string;
|
|
39
110
|
[key: string]: any;
|
|
40
111
|
}): Promise<LTApiResult>;
|
|
112
|
+
/**
|
|
113
|
+
* Re-compile an existing YAML workflow from its original execution trace.
|
|
114
|
+
*
|
|
115
|
+
* Looks up the source workflow reference, re-runs the LLM-based YAML generator, and
|
|
116
|
+
* overwrites the YAML content, schemas, manifest, and tags in place. When
|
|
117
|
+
* compilation_feedback is provided, the current YAML is passed as priorFailedYaml so
|
|
118
|
+
* the generator can incorporate the feedback. Archived workflows cannot be regenerated.
|
|
119
|
+
*
|
|
120
|
+
* @param input.id — UUID of the workflow to regenerate
|
|
121
|
+
* @param input.task_queue — override the task queue (otherwise resolved from the source task record)
|
|
122
|
+
* @param input.compilation_feedback — natural-language feedback to steer the re-compilation
|
|
123
|
+
* @returns `{ status: 200, data: YamlWorkflow }` the updated record with new YAML content
|
|
124
|
+
*/
|
|
41
125
|
export declare function regenerateYamlWorkflow(input: {
|
|
42
126
|
id: string;
|
|
43
127
|
task_queue?: string;
|
|
44
128
|
compilation_feedback?: string;
|
|
45
129
|
}): Promise<LTApiResult>;
|
|
130
|
+
/**
|
|
131
|
+
* Permanently delete a YAML workflow record.
|
|
132
|
+
*
|
|
133
|
+
* Only draft or archived workflows can be deleted. Active or deployed workflows must
|
|
134
|
+
* be archived first.
|
|
135
|
+
*
|
|
136
|
+
* @param input.id — UUID of the workflow to delete
|
|
137
|
+
* @returns `{ status: 200, data: { deleted: true } }` on success, or 400 if the workflow is active/deployed
|
|
138
|
+
*/
|
|
46
139
|
export declare function deleteYamlWorkflow(input: {
|
|
47
140
|
id: string;
|
|
48
141
|
}): Promise<LTApiResult>;
|
|
142
|
+
/**
|
|
143
|
+
* Deploy a YAML workflow and all sibling workflows sharing its app_id namespace.
|
|
144
|
+
*
|
|
145
|
+
* Merges and deploys the full app_id YAML, registers HotMesh workers for every
|
|
146
|
+
* non-archived sibling, transitions draft/deployed siblings to active, and marks
|
|
147
|
+
* the app_id content as deployed. Uses the app_version declared in the workflow record.
|
|
148
|
+
*
|
|
149
|
+
* @param input.id — UUID of the workflow to deploy
|
|
150
|
+
* @returns `{ status: 200, data: YamlWorkflow }` the refreshed workflow record after deployment
|
|
151
|
+
*/
|
|
49
152
|
export declare function deployYamlWorkflow(input: {
|
|
50
153
|
id: string;
|
|
51
154
|
}): Promise<LTApiResult>;
|
|
155
|
+
/**
|
|
156
|
+
* Activate a previously deployed YAML workflow and its app_id siblings.
|
|
157
|
+
*
|
|
158
|
+
* Calls the deployer to activate the app_id at its current version, then registers
|
|
159
|
+
* HotMesh workers for all sibling workflows. Siblings in "deployed" status are
|
|
160
|
+
* transitioned to "active". The workflow must already be in deployed or active status.
|
|
161
|
+
*
|
|
162
|
+
* @param input.id — UUID of the workflow to activate
|
|
163
|
+
* @returns `{ status: 200, data: YamlWorkflow }` the refreshed workflow record after activation
|
|
164
|
+
*/
|
|
52
165
|
export declare function activateYamlWorkflow(input: {
|
|
53
166
|
id: string;
|
|
54
167
|
}): Promise<LTApiResult>;
|
|
168
|
+
/**
|
|
169
|
+
* Invoke an active YAML workflow, executing its DAG pipeline.
|
|
170
|
+
*
|
|
171
|
+
* The workflow must be in "active" status. Delegates to the invoke service which
|
|
172
|
+
* starts the HotMesh execution. Supports both synchronous (wait for result) and
|
|
173
|
+
* asynchronous (fire-and-forget) invocation modes.
|
|
174
|
+
*
|
|
175
|
+
* @param input.id — UUID of the workflow to invoke
|
|
176
|
+
* @param input.data — input payload passed to the workflow's entry point
|
|
177
|
+
* @param input.sync — when true, block until the workflow completes and return its output
|
|
178
|
+
* @param input.timeout — max milliseconds to wait when sync is true
|
|
179
|
+
* @param input.execute_as — override identity for the execution context
|
|
180
|
+
* @param auth — authenticated user context; userId is forwarded to the invoke service
|
|
181
|
+
* @returns `{ status: 200, data: ... }` workflow execution result (sync) or job metadata (async)
|
|
182
|
+
*/
|
|
55
183
|
export declare function invokeYamlWorkflow(input: {
|
|
56
184
|
id: string;
|
|
57
185
|
data?: any;
|
|
@@ -59,29 +187,96 @@ export declare function invokeYamlWorkflow(input: {
|
|
|
59
187
|
timeout?: number;
|
|
60
188
|
execute_as?: string;
|
|
61
189
|
}, auth?: LTApiAuth): Promise<LTApiResult>;
|
|
190
|
+
/**
|
|
191
|
+
* Archive a YAML workflow, removing it from active service.
|
|
192
|
+
*
|
|
193
|
+
* If the workflow is currently active, its HotMesh engine is stopped before
|
|
194
|
+
* transitioning the status to "archived". Archived workflows cannot be invoked
|
|
195
|
+
* or regenerated but can still be viewed or deleted.
|
|
196
|
+
*
|
|
197
|
+
* @param input.id — UUID of the workflow to archive
|
|
198
|
+
* @returns `{ status: 200, data: YamlWorkflow }` the updated record with status "archived"
|
|
199
|
+
*/
|
|
62
200
|
export declare function archiveYamlWorkflow(input: {
|
|
63
201
|
id: string;
|
|
64
202
|
}): Promise<LTApiResult>;
|
|
203
|
+
/**
|
|
204
|
+
* Retrieve the version history for a YAML workflow.
|
|
205
|
+
*
|
|
206
|
+
* Returns a paginated list of version snapshots ordered by version number.
|
|
207
|
+
*
|
|
208
|
+
* @param input.id — UUID of the workflow
|
|
209
|
+
* @param input.limit — max versions to return (defaults to 20)
|
|
210
|
+
* @param input.offset — pagination offset (defaults to 0)
|
|
211
|
+
* @returns `{ status: 200, data: VersionSnapshot[] }` paginated version history
|
|
212
|
+
*/
|
|
65
213
|
export declare function getVersionHistory(input: {
|
|
66
214
|
id: string;
|
|
67
215
|
limit?: number;
|
|
68
216
|
offset?: number;
|
|
69
217
|
}): Promise<LTApiResult>;
|
|
218
|
+
/**
|
|
219
|
+
* Retrieve a specific version snapshot of a YAML workflow.
|
|
220
|
+
*
|
|
221
|
+
* Validates that the version number is a positive integer before querying.
|
|
222
|
+
*
|
|
223
|
+
* @param input.id — UUID of the workflow
|
|
224
|
+
* @param input.version — 1-based version number to retrieve
|
|
225
|
+
* @returns `{ status: 200, data: VersionSnapshot }` the snapshot at the requested version, or 404
|
|
226
|
+
*/
|
|
70
227
|
export declare function getVersionSnapshot(input: {
|
|
71
228
|
id: string;
|
|
72
229
|
version: number;
|
|
73
230
|
}): Promise<LTApiResult>;
|
|
231
|
+
/**
|
|
232
|
+
* Retrieve the raw YAML content for a workflow, optionally at a specific version.
|
|
233
|
+
*
|
|
234
|
+
* When a version is provided, fetches from the version snapshot table. Otherwise
|
|
235
|
+
* returns the current yaml_content from the live workflow record.
|
|
236
|
+
*
|
|
237
|
+
* @param input.id — UUID of the workflow
|
|
238
|
+
* @param input.version — optional version number; when omitted, returns the current content
|
|
239
|
+
* @returns `{ status: 200, data: string }` the raw YAML string
|
|
240
|
+
*/
|
|
74
241
|
export declare function getYamlContent(input: {
|
|
75
242
|
id: string;
|
|
76
243
|
version?: number;
|
|
77
244
|
}): Promise<LTApiResult<string>>;
|
|
245
|
+
/**
|
|
246
|
+
* Set or update the cron schedule for a YAML workflow.
|
|
247
|
+
*
|
|
248
|
+
* Persists the schedule in the DB and restarts the in-process cron timer via the
|
|
249
|
+
* cron registry so the change takes effect immediately.
|
|
250
|
+
*
|
|
251
|
+
* @param input.id — UUID of the workflow to schedule
|
|
252
|
+
* @param input.cron_schedule — cron expression (e.g. "0 * * * *")
|
|
253
|
+
* @param input.cron_envelope — optional payload passed to each scheduled invocation
|
|
254
|
+
* @param input.execute_as — optional identity override for scheduled executions
|
|
255
|
+
* @returns `{ status: 200, data: YamlWorkflow }` the updated workflow record with cron fields set
|
|
256
|
+
*/
|
|
78
257
|
export declare function setCronSchedule(input: {
|
|
79
258
|
id: string;
|
|
80
259
|
cron_schedule: string;
|
|
81
260
|
cron_envelope?: any;
|
|
82
261
|
execute_as?: string;
|
|
83
262
|
}): Promise<LTApiResult>;
|
|
263
|
+
/**
|
|
264
|
+
* Remove the cron schedule from a YAML workflow.
|
|
265
|
+
*
|
|
266
|
+
* Stops the in-process cron timer first, then clears the schedule fields in the DB.
|
|
267
|
+
*
|
|
268
|
+
* @param input.id — UUID of the workflow to unschedule
|
|
269
|
+
* @returns `{ status: 200, data: YamlWorkflow }` the updated workflow record with cron fields cleared
|
|
270
|
+
*/
|
|
84
271
|
export declare function clearCronSchedule(input: {
|
|
85
272
|
id: string;
|
|
86
273
|
}): Promise<LTApiResult>;
|
|
274
|
+
/**
|
|
275
|
+
* List all YAML workflows that have a cron schedule, with their live timer status.
|
|
276
|
+
*
|
|
277
|
+
* Fetches all cron-scheduled workflows from the DB and cross-references with the
|
|
278
|
+
* in-process cron registry to determine which timers are actually running.
|
|
279
|
+
*
|
|
280
|
+
* @returns `{ status: 200, data: { schedules: Array<{ id, name, graph_topic, app_id, cron_schedule, execute_as, active }> } }`
|
|
281
|
+
*/
|
|
87
282
|
export declare function getCronStatus(): Promise<LTApiResult>;
|