@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
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
# lt.escalations
|
|
2
|
+
|
|
3
|
+
Manage human-in-the-loop escalations -- list, claim, resolve, and bulk-operate on workflow escalations.
|
|
4
|
+
|
|
5
|
+
## list
|
|
6
|
+
|
|
7
|
+
List escalations with optional filters, scoped to the authenticated user's roles.
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
const result = await lt.escalations.list({
|
|
11
|
+
status: 'pending',
|
|
12
|
+
role: 'reviewer',
|
|
13
|
+
limit: 25,
|
|
14
|
+
});
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
**Parameters:**
|
|
18
|
+
|
|
19
|
+
| Field | Type | Required | Description |
|
|
20
|
+
|-------|------|----------|-------------|
|
|
21
|
+
| `status` | `string` | No | Filter by `pending`, `resolved`, or `cancelled` |
|
|
22
|
+
| `role` | `string` | No | Filter by assigned role |
|
|
23
|
+
| `type` | `string` | No | Filter by workflow type |
|
|
24
|
+
| `subtype` | `string` | No | Filter by subtype |
|
|
25
|
+
| `assigned_to` | `string` | No | Filter by assigned user ID |
|
|
26
|
+
| `priority` | `number` | No | Filter by priority (1--4) |
|
|
27
|
+
| `limit` | `number` | No | Max results (default: 50) |
|
|
28
|
+
| `offset` | `number` | No | Pagination offset |
|
|
29
|
+
| `sort_by` | `string` | No | Column to sort by (e.g. `created_at`, `priority`) |
|
|
30
|
+
| `order` | `string` | No | `asc` or `desc` |
|
|
31
|
+
|
|
32
|
+
**Returns:** `LTApiResult<{ escalations, total }>`
|
|
33
|
+
|
|
34
|
+
**Auth:** Required
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## listAvailable
|
|
39
|
+
|
|
40
|
+
List escalations available for claim (pending and not actively claimed).
|
|
41
|
+
|
|
42
|
+
```typescript
|
|
43
|
+
const result = await lt.escalations.listAvailable({
|
|
44
|
+
role: 'reviewer',
|
|
45
|
+
limit: 10,
|
|
46
|
+
});
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
**Parameters:**
|
|
50
|
+
|
|
51
|
+
| Field | Type | Required | Description |
|
|
52
|
+
|-------|------|----------|-------------|
|
|
53
|
+
| `role` | `string` | No | Filter by role |
|
|
54
|
+
| `type` | `string` | No | Filter by workflow type |
|
|
55
|
+
| `subtype` | `string` | No | Filter by subtype |
|
|
56
|
+
| `priority` | `number` | No | Filter by priority (1--4) |
|
|
57
|
+
| `limit` | `number` | No | Max results (default: 50) |
|
|
58
|
+
| `offset` | `number` | No | Pagination offset |
|
|
59
|
+
| `sort_by` | `string` | No | Column to sort by |
|
|
60
|
+
| `order` | `string` | No | `asc` or `desc` |
|
|
61
|
+
|
|
62
|
+
**Returns:** `LTApiResult<{ escalations, total }>`
|
|
63
|
+
|
|
64
|
+
**Auth:** Required
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## listTypes
|
|
69
|
+
|
|
70
|
+
List all distinct escalation type values.
|
|
71
|
+
|
|
72
|
+
```typescript
|
|
73
|
+
const result = await lt.escalations.listTypes();
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**Parameters:** None (pass `{}` or `undefined`).
|
|
77
|
+
|
|
78
|
+
**Returns:** `LTApiResult<{ types: string[] }>`
|
|
79
|
+
|
|
80
|
+
**Auth:** Not required
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## getStats
|
|
85
|
+
|
|
86
|
+
Get aggregate escalation statistics scoped to the user's roles.
|
|
87
|
+
|
|
88
|
+
```typescript
|
|
89
|
+
const result = await lt.escalations.getStats({ period: '24h' });
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
**Parameters:**
|
|
93
|
+
|
|
94
|
+
| Field | Type | Required | Description |
|
|
95
|
+
|-------|------|----------|-------------|
|
|
96
|
+
| `period` | `string` | No | Time window (`1h`, `24h`, `7d`, `30d`) |
|
|
97
|
+
|
|
98
|
+
**Returns:** `LTApiResult<{ pending, claimed, created, resolved, by_role, by_type }>`
|
|
99
|
+
|
|
100
|
+
**Auth:** Required
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## get
|
|
105
|
+
|
|
106
|
+
Get a single escalation by ID.
|
|
107
|
+
|
|
108
|
+
```typescript
|
|
109
|
+
const result = await lt.escalations.get({ id: 'esc_123' });
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
**Parameters:**
|
|
113
|
+
|
|
114
|
+
| Field | Type | Required | Description |
|
|
115
|
+
|-------|------|----------|-------------|
|
|
116
|
+
| `id` | `string` | Yes | Escalation UUID |
|
|
117
|
+
|
|
118
|
+
**Returns:** `LTApiResult<Escalation>` -- returns 403 if user lacks the role, 404 if not found.
|
|
119
|
+
|
|
120
|
+
**Auth:** Required
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## getByWorkflowId
|
|
125
|
+
|
|
126
|
+
List all escalations for a given workflow ID.
|
|
127
|
+
|
|
128
|
+
```typescript
|
|
129
|
+
const result = await lt.escalations.getByWorkflowId({ workflowId: 'wf_abc' });
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
**Parameters:**
|
|
133
|
+
|
|
134
|
+
| Field | Type | Required | Description |
|
|
135
|
+
|-------|------|----------|-------------|
|
|
136
|
+
| `workflowId` | `string` | Yes | HotMesh workflow ID |
|
|
137
|
+
|
|
138
|
+
**Returns:** `LTApiResult<{ escalations }>`
|
|
139
|
+
|
|
140
|
+
**Auth:** Not required
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## escalate
|
|
145
|
+
|
|
146
|
+
Route a pending escalation to a different role.
|
|
147
|
+
|
|
148
|
+
```typescript
|
|
149
|
+
const result = await lt.escalations.escalate({
|
|
150
|
+
id: 'esc_123',
|
|
151
|
+
targetRole: 'senior-reviewer',
|
|
152
|
+
});
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
**Parameters:**
|
|
156
|
+
|
|
157
|
+
| Field | Type | Required | Description |
|
|
158
|
+
|-------|------|----------|-------------|
|
|
159
|
+
| `id` | `string` | Yes | Escalation UUID |
|
|
160
|
+
| `targetRole` | `string` | Yes | Destination role |
|
|
161
|
+
|
|
162
|
+
**Returns:** `LTApiResult<Escalation>` -- returns 403 if not authorized, 404 if not found, 409 if not pending.
|
|
163
|
+
|
|
164
|
+
**Auth:** Required
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
## claim
|
|
169
|
+
|
|
170
|
+
Claim a pending escalation for the authenticated user.
|
|
171
|
+
|
|
172
|
+
```typescript
|
|
173
|
+
const result = await lt.escalations.claim({
|
|
174
|
+
id: 'esc_123',
|
|
175
|
+
durationMinutes: 60,
|
|
176
|
+
});
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
**Parameters:**
|
|
180
|
+
|
|
181
|
+
| Field | Type | Required | Description |
|
|
182
|
+
|-------|------|----------|-------------|
|
|
183
|
+
| `id` | `string` | Yes | Escalation UUID |
|
|
184
|
+
| `durationMinutes` | `number` | No | Claim duration (default: 30) |
|
|
185
|
+
|
|
186
|
+
**Returns:** `LTApiResult<{ escalation, isExtension }>` -- returns 403 if user lacks the role, 404 if not found, 409 if not available.
|
|
187
|
+
|
|
188
|
+
**Auth:** Required
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
192
|
+
## release
|
|
193
|
+
|
|
194
|
+
Release a claimed escalation back to the pool.
|
|
195
|
+
|
|
196
|
+
```typescript
|
|
197
|
+
const result = await lt.escalations.release({ id: 'esc_123' });
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
**Parameters:**
|
|
201
|
+
|
|
202
|
+
| Field | Type | Required | Description |
|
|
203
|
+
|-------|------|----------|-------------|
|
|
204
|
+
| `id` | `string` | Yes | Escalation UUID |
|
|
205
|
+
|
|
206
|
+
**Returns:** `LTApiResult<{ escalation }>` -- returns 409 if not claimed by the caller.
|
|
207
|
+
|
|
208
|
+
**Auth:** Required
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
## resolve
|
|
213
|
+
|
|
214
|
+
Resolve a pending escalation with a human-provided payload.
|
|
215
|
+
|
|
216
|
+
Supports two resolution paths: signal-routed (sends payload to a paused workflow) and re-run (restarts the workflow with resolver data injected). Password fields are replaced with ephemeral tokens.
|
|
217
|
+
|
|
218
|
+
```typescript
|
|
219
|
+
const result = await lt.escalations.resolve({
|
|
220
|
+
id: 'esc_123',
|
|
221
|
+
resolverPayload: { approved: true, comment: 'Looks good' },
|
|
222
|
+
});
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
**Parameters:**
|
|
226
|
+
|
|
227
|
+
| Field | Type | Required | Description |
|
|
228
|
+
|-------|------|----------|-------------|
|
|
229
|
+
| `id` | `string` | Yes | Escalation UUID |
|
|
230
|
+
| `resolverPayload` | `Record<string, any>` | Yes | Human decision data |
|
|
231
|
+
|
|
232
|
+
**Returns:** `LTApiResult<{ signaled, escalationId, workflowId }>` (signal path) or `LTApiResult<{ started, escalationId, workflowId }>` (re-run path) -- returns 404 if not found, 409 if not pending.
|
|
233
|
+
|
|
234
|
+
**Auth:** Required
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
238
|
+
## releaseExpired
|
|
239
|
+
|
|
240
|
+
Release all escalation claims past their `assigned_until` deadline.
|
|
241
|
+
|
|
242
|
+
```typescript
|
|
243
|
+
const result = await lt.escalations.releaseExpired();
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
**Parameters:** None (pass `{}` or `undefined`).
|
|
247
|
+
|
|
248
|
+
**Returns:** `LTApiResult<{ released: number }>`
|
|
249
|
+
|
|
250
|
+
**Auth:** Not required
|
|
251
|
+
|
|
252
|
+
---
|
|
253
|
+
|
|
254
|
+
## updatePriority
|
|
255
|
+
|
|
256
|
+
Update priority for one or more escalations.
|
|
257
|
+
|
|
258
|
+
```typescript
|
|
259
|
+
const result = await lt.escalations.updatePriority({
|
|
260
|
+
ids: ['esc_1', 'esc_2'],
|
|
261
|
+
priority: 1,
|
|
262
|
+
});
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
**Parameters:**
|
|
266
|
+
|
|
267
|
+
| Field | Type | Required | Description |
|
|
268
|
+
|-------|------|----------|-------------|
|
|
269
|
+
| `ids` | `string[]` | Yes | Array of escalation UUIDs |
|
|
270
|
+
| `priority` | `number` | Yes | New priority (1=critical, 2=high, 3=medium, 4=low) |
|
|
271
|
+
|
|
272
|
+
**Returns:** `LTApiResult<{ updated: number }>`
|
|
273
|
+
|
|
274
|
+
**Auth:** Required
|
|
275
|
+
|
|
276
|
+
---
|
|
277
|
+
|
|
278
|
+
## bulkClaim
|
|
279
|
+
|
|
280
|
+
Claim multiple escalations at once for the authenticated user.
|
|
281
|
+
|
|
282
|
+
```typescript
|
|
283
|
+
const result = await lt.escalations.bulkClaim({
|
|
284
|
+
ids: ['esc_1', 'esc_2'],
|
|
285
|
+
durationMinutes: 60,
|
|
286
|
+
});
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
**Parameters:**
|
|
290
|
+
|
|
291
|
+
| Field | Type | Required | Description |
|
|
292
|
+
|-------|------|----------|-------------|
|
|
293
|
+
| `ids` | `string[]` | Yes | Array of escalation UUIDs |
|
|
294
|
+
| `durationMinutes` | `number` | No | Claim duration (default: 30) |
|
|
295
|
+
|
|
296
|
+
**Returns:** `LTApiResult<{ claimed, skipped }>`
|
|
297
|
+
|
|
298
|
+
**Auth:** Required
|
|
299
|
+
|
|
300
|
+
---
|
|
301
|
+
|
|
302
|
+
## bulkAssign
|
|
303
|
+
|
|
304
|
+
Assign multiple escalations to a specific user.
|
|
305
|
+
|
|
306
|
+
```typescript
|
|
307
|
+
const result = await lt.escalations.bulkAssign({
|
|
308
|
+
ids: ['esc_1', 'esc_2'],
|
|
309
|
+
targetUserId: 'user_456',
|
|
310
|
+
durationMinutes: 60,
|
|
311
|
+
});
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
**Parameters:**
|
|
315
|
+
|
|
316
|
+
| Field | Type | Required | Description |
|
|
317
|
+
|-------|------|----------|-------------|
|
|
318
|
+
| `ids` | `string[]` | Yes | Array of escalation UUIDs |
|
|
319
|
+
| `targetUserId` | `string` | Yes | User to assign to |
|
|
320
|
+
| `durationMinutes` | `number` | No | Assignment duration (default: 30) |
|
|
321
|
+
|
|
322
|
+
**Returns:** `LTApiResult<{ assigned, skipped }>`
|
|
323
|
+
|
|
324
|
+
**Auth:** Required
|
|
325
|
+
|
|
326
|
+
---
|
|
327
|
+
|
|
328
|
+
## bulkEscalate
|
|
329
|
+
|
|
330
|
+
Route multiple escalations to a different role.
|
|
331
|
+
|
|
332
|
+
```typescript
|
|
333
|
+
const result = await lt.escalations.bulkEscalate({
|
|
334
|
+
ids: ['esc_1', 'esc_2'],
|
|
335
|
+
targetRole: 'senior-reviewer',
|
|
336
|
+
});
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
**Parameters:**
|
|
340
|
+
|
|
341
|
+
| Field | Type | Required | Description |
|
|
342
|
+
|-------|------|----------|-------------|
|
|
343
|
+
| `ids` | `string[]` | Yes | Array of escalation UUIDs |
|
|
344
|
+
| `targetRole` | `string` | Yes | Destination role |
|
|
345
|
+
|
|
346
|
+
**Returns:** `LTApiResult<{ updated: number }>`
|
|
347
|
+
|
|
348
|
+
**Auth:** Required
|
|
349
|
+
|
|
350
|
+
---
|
|
351
|
+
|
|
352
|
+
## bulkTriage
|
|
353
|
+
|
|
354
|
+
Trigger AI triage for multiple escalations.
|
|
355
|
+
|
|
356
|
+
Resolves each escalation and starts a triage workflow that uses MCP tools to analyze and potentially auto-resolve the issue.
|
|
357
|
+
|
|
358
|
+
```typescript
|
|
359
|
+
const result = await lt.escalations.bulkTriage({
|
|
360
|
+
ids: ['esc_1', 'esc_2'],
|
|
361
|
+
hint: 'Check if the content violates policy section 3.2',
|
|
362
|
+
});
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
**Parameters:**
|
|
366
|
+
|
|
367
|
+
| Field | Type | Required | Description |
|
|
368
|
+
|-------|------|----------|-------------|
|
|
369
|
+
| `ids` | `string[]` | Yes | Array of escalation UUIDs |
|
|
370
|
+
| `hint` | `string` | No | Natural-language guidance for the triage AI |
|
|
371
|
+
|
|
372
|
+
**Returns:** `LTApiResult<{ triaged, workflows }>`
|
|
373
|
+
|
|
374
|
+
**Auth:** Required
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# lt.events
|
|
2
|
+
|
|
3
|
+
Subscribe to real-time Long Tail events via in-process callbacks.
|
|
4
|
+
|
|
5
|
+
## on
|
|
6
|
+
|
|
7
|
+
Subscribe to events by type pattern. Returns an unsubscribe function.
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
// Exact event type
|
|
11
|
+
const unsub = lt.events.on('escalation.claimed', (event) => {
|
|
12
|
+
console.log('claimed:', event.escalationId);
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
// Category wildcard — all task events
|
|
16
|
+
const unsub2 = lt.events.on('task.*', (event) => {
|
|
17
|
+
console.log('task event:', event.type);
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
// Global wildcard — every event
|
|
21
|
+
const unsub3 = lt.events.on('*', (event) => {
|
|
22
|
+
console.log(event.type, event.workflowId);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
// Unsubscribe when done
|
|
26
|
+
unsub();
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
**Parameters:**
|
|
30
|
+
|
|
31
|
+
| Field | Type | Required | Description |
|
|
32
|
+
|-------|------|----------|-------------|
|
|
33
|
+
| `pattern` | `LTEventType \| '*' \| string` | Yes | Event type to match |
|
|
34
|
+
| `callback` | `(event: LTEvent) => void` | Yes | Handler invoked for each matching event |
|
|
35
|
+
|
|
36
|
+
**Pattern matching:**
|
|
37
|
+
|
|
38
|
+
| Pattern | Matches |
|
|
39
|
+
|---------|---------|
|
|
40
|
+
| `'task.created'` | Exact match on `task.created` only |
|
|
41
|
+
| `'task.*'` | All events starting with `task.` (e.g. `task.created`, `task.completed`, `task.failed`) |
|
|
42
|
+
| `'*'` | Every event |
|
|
43
|
+
|
|
44
|
+
**Returns:** `() => void` -- call the returned function to unsubscribe.
|
|
45
|
+
|
|
46
|
+
**Auth:** Not required
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
### LTEventType values
|
|
51
|
+
|
|
52
|
+
`task.created`, `task.started`, `task.completed`, `task.escalated`, `task.failed`, `escalation.created`, `escalation.resolved`, `escalation.claimed`, `escalation.released`, `workflow.started`, `workflow.completed`, `workflow.failed`, `activity.started`, `activity.completed`, `activity.failed`, `milestone`
|
|
53
|
+
|
|
54
|
+
### LTEvent fields
|
|
55
|
+
|
|
56
|
+
| Field | Type | Description |
|
|
57
|
+
|-------|------|-------------|
|
|
58
|
+
| `type` | `LTEventType \| string` | Event classification |
|
|
59
|
+
| `source` | `string` | Origin: `'interceptor'`, `'orchestrator'`, or `'activity'` |
|
|
60
|
+
| `workflowId` | `string` | The workflow instance that produced this event |
|
|
61
|
+
| `workflowName` | `string` | The workflow function name |
|
|
62
|
+
| `taskQueue` | `string` | The task queue the workflow ran on |
|
|
63
|
+
| `taskId` | `string?` | The task ID (present when orchestrated) |
|
|
64
|
+
| `escalationId` | `string?` | The escalation ID (present for escalation events) |
|
|
65
|
+
| `originId` | `string?` | Root process lineage |
|
|
66
|
+
| `status` | `string?` | Task or workflow status after this event |
|
|
67
|
+
| `data` | `Record<string, unknown>?` | Event-specific payload |
|
|
68
|
+
| `timestamp` | `string` | ISO 8601 timestamp |
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# lt.exports
|
|
2
|
+
|
|
3
|
+
Export workflow state, execution trees, and job metadata.
|
|
4
|
+
|
|
5
|
+
## listJobs
|
|
6
|
+
|
|
7
|
+
List export jobs with optional filtering, sorting, and pagination.
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
const result = await lt.exports.listJobs({ limit: 25, offset: 0, status: 'completed' });
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
**Parameters:**
|
|
14
|
+
|
|
15
|
+
| Field | Type | Required | Description |
|
|
16
|
+
|-------|------|----------|-------------|
|
|
17
|
+
| `limit` | `number` | No | Maximum number of jobs to return |
|
|
18
|
+
| `offset` | `number` | No | Number of jobs to skip for pagination |
|
|
19
|
+
| `entity` | `string` | No | Filter by entity/workflow type |
|
|
20
|
+
| `search` | `string` | No | Free-text search across job fields |
|
|
21
|
+
| `status` | `string` | No | Filter by job status |
|
|
22
|
+
| `sort_by` | `string` | No | Field name to sort results by |
|
|
23
|
+
| `order` | `string` | No | Sort direction (`asc` or `desc`) |
|
|
24
|
+
| `registered` | `string` | No | Filter by registration status |
|
|
25
|
+
|
|
26
|
+
**Returns:** `LTApiResult<{ jobs, total, ... }>`
|
|
27
|
+
|
|
28
|
+
**Auth:** Not required
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## exportState
|
|
33
|
+
|
|
34
|
+
Export the stored state (hash data) of a workflow. Fields can be filtered via allow/block lists.
|
|
35
|
+
|
|
36
|
+
```typescript
|
|
37
|
+
const result = await lt.exports.exportState({
|
|
38
|
+
workflowId: 'wf_abc123',
|
|
39
|
+
allow: ['data', 'status'],
|
|
40
|
+
values: true,
|
|
41
|
+
});
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
**Parameters:**
|
|
45
|
+
|
|
46
|
+
| Field | Type | Required | Description |
|
|
47
|
+
|-------|------|----------|-------------|
|
|
48
|
+
| `workflowId` | `string` | Yes | The workflow's unique identifier |
|
|
49
|
+
| `allow` | `LTExportField[]` | No | Whitelist of field names to include |
|
|
50
|
+
| `block` | `LTExportField[]` | No | Blacklist of field names to exclude |
|
|
51
|
+
| `values` | `boolean` | No | When true, include field values (not just names) |
|
|
52
|
+
|
|
53
|
+
`LTExportField` is one of: `'data'`, `'state'`, `'status'`, `'timeline'`, `'transitions'`
|
|
54
|
+
|
|
55
|
+
**Returns:** `LTApiResult<ExportedState>` -- returns 404 if the workflow is not found or data has expired.
|
|
56
|
+
|
|
57
|
+
**Auth:** Not required
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## exportExecution
|
|
62
|
+
|
|
63
|
+
Export the full execution tree of a workflow, including activity inputs and results.
|
|
64
|
+
|
|
65
|
+
```typescript
|
|
66
|
+
const result = await lt.exports.exportExecution({
|
|
67
|
+
workflowId: 'wf_abc123',
|
|
68
|
+
excludeSystem: true,
|
|
69
|
+
});
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
**Parameters:**
|
|
73
|
+
|
|
74
|
+
| Field | Type | Required | Description |
|
|
75
|
+
|-------|------|----------|-------------|
|
|
76
|
+
| `workflowId` | `string` | Yes | The workflow's unique identifier |
|
|
77
|
+
| `excludeSystem` | `boolean` | No | Omit system-generated activities from the export |
|
|
78
|
+
| `omitResults` | `boolean` | No | Exclude activity result payloads |
|
|
79
|
+
| `mode` | `ExportMode` | No | Export mode controlling output format (e.g., tree, flat) |
|
|
80
|
+
| `maxDepth` | `number` | No | Maximum depth to traverse in the execution tree |
|
|
81
|
+
|
|
82
|
+
**Returns:** `LTApiResult<ExecutionExport>` -- returns 404 if the workflow is not found or data has expired.
|
|
83
|
+
|
|
84
|
+
**Auth:** Not required
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## getStatus
|
|
89
|
+
|
|
90
|
+
Get the current status of a workflow (e.g., running, completed, failed).
|
|
91
|
+
|
|
92
|
+
```typescript
|
|
93
|
+
const result = await lt.exports.getStatus({ workflowId: 'wf_abc123' });
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
**Parameters:**
|
|
97
|
+
|
|
98
|
+
| Field | Type | Required | Description |
|
|
99
|
+
|-------|------|----------|-------------|
|
|
100
|
+
| `workflowId` | `string` | Yes | The workflow's unique identifier |
|
|
101
|
+
|
|
102
|
+
**Returns:** `LTApiResult<WorkflowStatus>` -- returns 404 if the workflow is not found or data has expired.
|
|
103
|
+
|
|
104
|
+
**Auth:** Not required
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## getState
|
|
109
|
+
|
|
110
|
+
Get the current state data of a workflow.
|
|
111
|
+
|
|
112
|
+
```typescript
|
|
113
|
+
const result = await lt.exports.getState({ workflowId: 'wf_abc123' });
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
**Parameters:**
|
|
117
|
+
|
|
118
|
+
| Field | Type | Required | Description |
|
|
119
|
+
|-------|------|----------|-------------|
|
|
120
|
+
| `workflowId` | `string` | Yes | The workflow's unique identifier |
|
|
121
|
+
|
|
122
|
+
**Returns:** `LTApiResult<WorkflowState>` -- returns 404 if the workflow is not found or data has expired.
|
|
123
|
+
|
|
124
|
+
**Auth:** Not required
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# lt.insight
|
|
2
|
+
|
|
3
|
+
LLM-powered natural-language queries and workflow generation against connected MCP servers.
|
|
4
|
+
|
|
5
|
+
## mcpQuery
|
|
6
|
+
|
|
7
|
+
Execute a natural-language query against connected MCP servers.
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
const result = await lt.insight.mcpQuery({
|
|
11
|
+
prompt: 'Find all open issues labeled bug',
|
|
12
|
+
tags: ['github'],
|
|
13
|
+
wait: true,
|
|
14
|
+
});
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
**Parameters:**
|
|
18
|
+
|
|
19
|
+
| Field | Type | Required | Description |
|
|
20
|
+
|-------|------|----------|-------------|
|
|
21
|
+
| `prompt` | `string` | Yes | The natural-language query to execute |
|
|
22
|
+
| `tags` | `string[]` | No | Tags to scope which MCP servers are queried |
|
|
23
|
+
| `wait` | `boolean` | No | When true, block until the query completes; otherwise return immediately |
|
|
24
|
+
| `direct` | `boolean` | No | When true, bypass workflow orchestration and query the LLM directly |
|
|
25
|
+
| `context` | `any` | No | Additional context forwarded to the LLM |
|
|
26
|
+
|
|
27
|
+
**Returns:** `LTApiResult<any>`
|
|
28
|
+
|
|
29
|
+
**Auth:** Optional (userId forwarded to the query pipeline when provided)
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## buildWorkflow
|
|
34
|
+
|
|
35
|
+
Generate a workflow definition from a natural-language description.
|
|
36
|
+
|
|
37
|
+
```typescript
|
|
38
|
+
const result = await lt.insight.buildWorkflow({
|
|
39
|
+
prompt: 'Screenshot a URL, analyze the image, and store results in a spreadsheet',
|
|
40
|
+
tags: ['browser', 'vision', 'sheets'],
|
|
41
|
+
wait: true,
|
|
42
|
+
});
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**Parameters:**
|
|
46
|
+
|
|
47
|
+
| Field | Type | Required | Description |
|
|
48
|
+
|-------|------|----------|-------------|
|
|
49
|
+
| `prompt` | `string` | Yes | Natural-language description of the desired workflow |
|
|
50
|
+
| `tags` | `string[]` | No | Tags to scope available MCP tools |
|
|
51
|
+
| `wait` | `boolean` | No | When true, block until generation completes |
|
|
52
|
+
| `feedback` | `string` | No | Refinement feedback on a previous generation |
|
|
53
|
+
| `prior_yaml` | `string` | No | YAML from a previous generation to refine |
|
|
54
|
+
| `answers` | `any` | No | Answers to clarifying questions from a prior round |
|
|
55
|
+
| `prior_questions` | `any` | No | Questions from a prior round for context |
|
|
56
|
+
|
|
57
|
+
**Returns:** `LTApiResult<any>`
|
|
58
|
+
|
|
59
|
+
**Auth:** Optional (userId forwarded to the builder when provided)
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## refineWorkflow
|
|
64
|
+
|
|
65
|
+
Refine an existing workflow definition using feedback.
|
|
66
|
+
|
|
67
|
+
```typescript
|
|
68
|
+
const result = await lt.insight.refineWorkflow({
|
|
69
|
+
prompt: 'Screenshot and analyze a URL',
|
|
70
|
+
prior_yaml: existingYaml,
|
|
71
|
+
feedback: 'Add a retry step if the screenshot fails',
|
|
72
|
+
wait: true,
|
|
73
|
+
});
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**Parameters:**
|
|
77
|
+
|
|
78
|
+
| Field | Type | Required | Description |
|
|
79
|
+
|-------|------|----------|-------------|
|
|
80
|
+
| `prompt` | `string` | Yes | Original natural-language description |
|
|
81
|
+
| `prior_yaml` | `string` | Yes | The YAML workflow to refine |
|
|
82
|
+
| `feedback` | `string` | Yes | User feedback describing desired changes |
|
|
83
|
+
| `tags` | `string[]` | No | Tags to scope available MCP tools |
|
|
84
|
+
| `wait` | `boolean` | No | When true, block until refinement completes |
|
|
85
|
+
|
|
86
|
+
**Returns:** `LTApiResult<any>`
|
|
87
|
+
|
|
88
|
+
**Auth:** Optional (userId forwarded to the builder when provided)
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## describeWorkflow
|
|
93
|
+
|
|
94
|
+
Generate a human-readable description and tags for a workflow.
|
|
95
|
+
|
|
96
|
+
```typescript
|
|
97
|
+
const result = await lt.insight.describeWorkflow({
|
|
98
|
+
prompt: 'Take a screenshot of a URL and analyze it with GPT-4 Vision',
|
|
99
|
+
});
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
**Parameters:**
|
|
103
|
+
|
|
104
|
+
| Field | Type | Required | Description |
|
|
105
|
+
|-------|------|----------|-------------|
|
|
106
|
+
| `prompt` | `string` | Yes | The workflow prompt or content to describe |
|
|
107
|
+
| `result_title` | `string` | No | Title from the workflow result for additional context |
|
|
108
|
+
| `result_summary` | `string` | No | Summary from the workflow result for additional context |
|
|
109
|
+
|
|
110
|
+
**Returns:** `LTApiResult<{ description: string, tags: string[] }>`
|
|
111
|
+
|
|
112
|
+
**Auth:** Not required
|