next-workflow-builder 0.1.0
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/dist/client/components/ai-elements/canvas.d.ts +9 -0
- package/dist/client/components/ai-elements/canvas.d.ts.map +1 -0
- package/dist/client/components/ai-elements/canvas.js +7 -0
- package/dist/client/components/ai-elements/canvas.js.map +1 -0
- package/dist/client/components/ai-elements/connection.d.ts +3 -0
- package/dist/client/components/ai-elements/connection.d.ts.map +1 -0
- package/dist/client/components/ai-elements/connection.js +4 -0
- package/dist/client/components/ai-elements/connection.js.map +1 -0
- package/dist/client/components/ai-elements/controls.d.ts +2 -0
- package/dist/client/components/ai-elements/controls.d.ts.map +1 -0
- package/dist/client/components/ai-elements/controls.js +26 -0
- package/dist/client/components/ai-elements/controls.js.map +1 -0
- package/dist/client/components/ai-elements/edge.d.ts +6 -0
- package/dist/client/components/ai-elements/edge.d.ts.map +1 -0
- package/dist/client/components/ai-elements/edge.js +86 -0
- package/dist/client/components/ai-elements/edge.js.map +1 -0
- package/dist/client/components/ai-elements/node.d.ts +23 -0
- package/dist/client/components/ai-elements/node.d.ts.map +1 -0
- package/dist/client/components/ai-elements/node.js +13 -0
- package/dist/client/components/ai-elements/node.js.map +1 -0
- package/dist/client/components/ai-elements/panel.d.ts +6 -0
- package/dist/client/components/ai-elements/panel.d.ts.map +1 -0
- package/dist/client/components/ai-elements/panel.js +5 -0
- package/dist/client/components/ai-elements/panel.js.map +1 -0
- package/dist/client/components/ai-elements/prompt.d.ts +7 -0
- package/dist/client/components/ai-elements/prompt.d.ts.map +1 -0
- package/dist/client/components/ai-elements/prompt.js +220 -0
- package/dist/client/components/ai-elements/prompt.js.map +1 -0
- package/dist/client/components/ai-elements/shimmer.d.ts +10 -0
- package/dist/client/components/ai-elements/shimmer.d.ts.map +1 -0
- package/dist/client/components/ai-elements/shimmer.js +19 -0
- package/dist/client/components/ai-elements/shimmer.js.map +1 -0
- package/dist/client/components/auth/dialog.d.ts +8 -0
- package/dist/client/components/auth/dialog.d.ts.map +1 -0
- package/dist/client/components/auth/dialog.js +181 -0
- package/dist/client/components/auth/dialog.js.map +1 -0
- package/dist/client/components/deploy-button.d.ts +2 -0
- package/dist/client/components/deploy-button.d.ts.map +1 -0
- package/dist/client/components/deploy-button.js +8 -0
- package/dist/client/components/deploy-button.js.map +1 -0
- package/dist/client/components/global-modals.d.ts +2 -0
- package/dist/client/components/global-modals.d.ts.map +1 -0
- package/dist/client/components/global-modals.js +8 -0
- package/dist/client/components/global-modals.js.map +1 -0
- package/dist/client/components/icons/github-icon.d.ts +4 -0
- package/dist/client/components/icons/github-icon.d.ts.map +1 -0
- package/dist/client/components/icons/github-icon.js +5 -0
- package/dist/client/components/icons/github-icon.js.map +1 -0
- package/dist/client/components/index.d.ts +7 -0
- package/dist/client/components/index.d.ts.map +1 -0
- package/dist/client/components/index.js +8 -0
- package/dist/client/components/index.js.map +1 -0
- package/dist/client/components/layout-provider.d.ts +4 -0
- package/dist/client/components/layout-provider.d.ts.map +1 -0
- package/dist/client/components/layout-provider.js +20 -0
- package/dist/client/components/layout-provider.js.map +1 -0
- package/dist/client/components/overlays/add-connection-overlay.d.ts +14 -0
- package/dist/client/components/overlays/add-connection-overlay.d.ts.map +1 -0
- package/dist/client/components/overlays/add-connection-overlay.js +218 -0
- package/dist/client/components/overlays/add-connection-overlay.js.map +1 -0
- package/dist/client/components/overlays/api-keys-overlay.d.ts +6 -0
- package/dist/client/components/overlays/api-keys-overlay.d.ts.map +1 -0
- package/dist/client/components/overlays/api-keys-overlay.js +124 -0
- package/dist/client/components/overlays/api-keys-overlay.js.map +1 -0
- package/dist/client/components/overlays/configuration-overlay.d.ts +5 -0
- package/dist/client/components/overlays/configuration-overlay.d.ts.map +1 -0
- package/dist/client/components/overlays/configuration-overlay.js +325 -0
- package/dist/client/components/overlays/configuration-overlay.js.map +1 -0
- package/dist/client/components/overlays/confirm-overlay.d.ts +15 -0
- package/dist/client/components/overlays/confirm-overlay.d.ts.map +1 -0
- package/dist/client/components/overlays/confirm-overlay.js +31 -0
- package/dist/client/components/overlays/confirm-overlay.js.map +1 -0
- package/dist/client/components/overlays/edit-connection-overlay.d.ts +16 -0
- package/dist/client/components/overlays/edit-connection-overlay.d.ts.map +1 -0
- package/dist/client/components/overlays/edit-connection-overlay.js +213 -0
- package/dist/client/components/overlays/edit-connection-overlay.js.map +1 -0
- package/dist/client/components/overlays/export-workflow-overlay.d.ts +8 -0
- package/dist/client/components/overlays/export-workflow-overlay.d.ts.map +1 -0
- package/dist/client/components/overlays/export-workflow-overlay.js +22 -0
- package/dist/client/components/overlays/export-workflow-overlay.js.map +1 -0
- package/dist/client/components/overlays/integrations-overlay.d.ts +6 -0
- package/dist/client/components/overlays/integrations-overlay.d.ts.map +1 -0
- package/dist/client/components/overlays/integrations-overlay.js +56 -0
- package/dist/client/components/overlays/integrations-overlay.js.map +1 -0
- package/dist/client/components/overlays/make-public-overlay.d.ts +7 -0
- package/dist/client/components/overlays/make-public-overlay.d.ts.map +1 -0
- package/dist/client/components/overlays/make-public-overlay.js +17 -0
- package/dist/client/components/overlays/make-public-overlay.js.map +1 -0
- package/dist/client/components/overlays/overlay-container.d.ts +2 -0
- package/dist/client/components/overlays/overlay-container.d.ts.map +1 -0
- package/dist/client/components/overlays/overlay-container.js +236 -0
- package/dist/client/components/overlays/overlay-container.js.map +1 -0
- package/dist/client/components/overlays/overlay-footer.d.ts +3 -0
- package/dist/client/components/overlays/overlay-footer.d.ts.map +1 -0
- package/dist/client/components/overlays/overlay-footer.js +25 -0
- package/dist/client/components/overlays/overlay-footer.js.map +1 -0
- package/dist/client/components/overlays/overlay-header.d.ts +8 -0
- package/dist/client/components/overlays/overlay-header.d.ts.map +1 -0
- package/dist/client/components/overlays/overlay-header.js +32 -0
- package/dist/client/components/overlays/overlay-header.js.map +1 -0
- package/dist/client/components/overlays/overlay-provider.d.ts +17 -0
- package/dist/client/components/overlays/overlay-provider.d.ts.map +1 -0
- package/dist/client/components/overlays/overlay-provider.js +120 -0
- package/dist/client/components/overlays/overlay-provider.js.map +1 -0
- package/dist/client/components/overlays/overlay-sync.d.ts +2 -0
- package/dist/client/components/overlays/overlay-sync.d.ts.map +1 -0
- package/dist/client/components/overlays/overlay-sync.js +21 -0
- package/dist/client/components/overlays/overlay-sync.js.map +1 -0
- package/dist/client/components/overlays/overlay.d.ts +7 -0
- package/dist/client/components/overlays/overlay.d.ts.map +1 -0
- package/dist/client/components/overlays/overlay.js +9 -0
- package/dist/client/components/overlays/overlay.js.map +1 -0
- package/dist/client/components/overlays/settings-overlay.d.ts +6 -0
- package/dist/client/components/overlays/settings-overlay.d.ts.map +1 -0
- package/dist/client/components/overlays/settings-overlay.js +64 -0
- package/dist/client/components/overlays/settings-overlay.js.map +1 -0
- package/dist/client/components/overlays/types.d.ts +64 -0
- package/dist/client/components/overlays/types.d.ts.map +1 -0
- package/dist/client/components/overlays/types.js +2 -0
- package/dist/client/components/overlays/types.js.map +1 -0
- package/dist/client/components/overlays/workflow-issues-overlay.d.ts +37 -0
- package/dist/client/components/overlays/workflow-issues-overlay.d.ts.map +1 -0
- package/dist/client/components/overlays/workflow-issues-overlay.js +67 -0
- package/dist/client/components/overlays/workflow-issues-overlay.js.map +1 -0
- package/dist/client/components/pages/home-page.d.ts +3 -0
- package/dist/client/components/pages/home-page.d.ts.map +1 -0
- package/dist/client/components/pages/home-page.js +100 -0
- package/dist/client/components/pages/home-page.js.map +1 -0
- package/dist/client/components/pages/workflow-page.d.ts +4 -0
- package/dist/client/components/pages/workflow-page.d.ts.map +1 -0
- package/dist/client/components/pages/workflow-page.js +23 -0
- package/dist/client/components/pages/workflow-page.js.map +1 -0
- package/dist/client/components/pages/workflows-redirect.d.ts +3 -0
- package/dist/client/components/pages/workflows-redirect.d.ts.map +1 -0
- package/dist/client/components/pages/workflows-redirect.js +30 -0
- package/dist/client/components/pages/workflows-redirect.js.map +1 -0
- package/dist/client/components/settings/account-settings.d.ts +9 -0
- package/dist/client/components/settings/account-settings.d.ts.map +1 -0
- package/dist/client/components/settings/account-settings.js +8 -0
- package/dist/client/components/settings/account-settings.js.map +1 -0
- package/dist/client/components/settings/integrations-manager.d.ts +7 -0
- package/dist/client/components/settings/integrations-manager.d.ts.map +1 -0
- package/dist/client/components/settings/integrations-manager.js +120 -0
- package/dist/client/components/settings/integrations-manager.js.map +1 -0
- package/dist/client/components/theme-provider.d.ts +5 -0
- package/dist/client/components/theme-provider.d.ts.map +1 -0
- package/dist/client/components/theme-provider.js +6 -0
- package/dist/client/components/theme-provider.js.map +1 -0
- package/dist/client/components/ui/alert-dialog.d.ts +15 -0
- package/dist/client/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/client/components/ui/alert-dialog.js +40 -0
- package/dist/client/components/ui/alert-dialog.js.map +1 -0
- package/dist/client/components/ui/alert.d.ts +10 -0
- package/dist/client/components/ui/alert.d.ts.map +1 -0
- package/dist/client/components/ui/alert.js +25 -0
- package/dist/client/components/ui/alert.js.map +1 -0
- package/dist/client/components/ui/animated-border.d.ts +6 -0
- package/dist/client/components/ui/animated-border.d.ts.map +1 -0
- package/dist/client/components/ui/animated-border.js +34 -0
- package/dist/client/components/ui/animated-border.js.map +1 -0
- package/dist/client/components/ui/avatar.d.ts +7 -0
- package/dist/client/components/ui/avatar.d.ts.map +1 -0
- package/dist/client/components/ui/avatar.js +15 -0
- package/dist/client/components/ui/avatar.js.map +1 -0
- package/dist/client/components/ui/button-group.d.ts +12 -0
- package/dist/client/components/ui/button-group.d.ts.map +1 -0
- package/dist/client/components/ui/button-group.js +28 -0
- package/dist/client/components/ui/button-group.js.map +1 -0
- package/dist/client/components/ui/button.d.ts +11 -0
- package/dist/client/components/ui/button.d.ts.map +1 -0
- package/dist/client/components/ui/button.js +34 -0
- package/dist/client/components/ui/button.js.map +1 -0
- package/dist/client/components/ui/card.d.ts +10 -0
- package/dist/client/components/ui/card.d.ts.map +1 -0
- package/dist/client/components/ui/card.js +25 -0
- package/dist/client/components/ui/card.js.map +1 -0
- package/dist/client/components/ui/checkbox.d.ts +5 -0
- package/dist/client/components/ui/checkbox.d.ts.map +1 -0
- package/dist/client/components/ui/checkbox.js +10 -0
- package/dist/client/components/ui/checkbox.js.map +1 -0
- package/dist/client/components/ui/code-editor.d.ts +3 -0
- package/dist/client/components/ui/code-editor.d.ts.map +1 -0
- package/dist/client/components/ui/code-editor.js +17 -0
- package/dist/client/components/ui/code-editor.js.map +1 -0
- package/dist/client/components/ui/collapsible.d.ts +6 -0
- package/dist/client/components/ui/collapsible.d.ts.map +1 -0
- package/dist/client/components/ui/collapsible.js +14 -0
- package/dist/client/components/ui/collapsible.js.map +1 -0
- package/dist/client/components/ui/context-menu.d.ts +26 -0
- package/dist/client/components/ui/context-menu.d.ts.map +1 -0
- package/dist/client/components/ui/context-menu.js +52 -0
- package/dist/client/components/ui/context-menu.js.map +1 -0
- package/dist/client/components/ui/dialog.d.ts +16 -0
- package/dist/client/components/ui/dialog.d.ts.map +1 -0
- package/dist/client/components/ui/dialog.js +37 -0
- package/dist/client/components/ui/dialog.js.map +1 -0
- package/dist/client/components/ui/drawer.d.ts +14 -0
- package/dist/client/components/ui/drawer.d.ts.map +1 -0
- package/dist/client/components/ui/drawer.js +36 -0
- package/dist/client/components/ui/drawer.js.map +1 -0
- package/dist/client/components/ui/dropdown-menu.d.ts +26 -0
- package/dist/client/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/client/components/ui/dropdown-menu.js +52 -0
- package/dist/client/components/ui/dropdown-menu.js.map +1 -0
- package/dist/client/components/ui/input.d.ts +4 -0
- package/dist/client/components/ui/input.d.ts.map +1 -0
- package/dist/client/components/ui/input.js +7 -0
- package/dist/client/components/ui/input.js.map +1 -0
- package/dist/client/components/ui/integration-icon.d.ts +7 -0
- package/dist/client/components/ui/integration-icon.d.ts.map +1 -0
- package/dist/client/components/ui/integration-icon.js +25 -0
- package/dist/client/components/ui/integration-icon.js.map +1 -0
- package/dist/client/components/ui/integration-selector.d.ts +12 -0
- package/dist/client/components/ui/integration-selector.d.ts.map +1 -0
- package/dist/client/components/ui/integration-selector.js +198 -0
- package/dist/client/components/ui/integration-selector.js.map +1 -0
- package/dist/client/components/ui/label.d.ts +5 -0
- package/dist/client/components/ui/label.d.ts.map +1 -0
- package/dist/client/components/ui/label.js +9 -0
- package/dist/client/components/ui/label.js.map +1 -0
- package/dist/client/components/ui/resizable.d.ts +9 -0
- package/dist/client/components/ui/resizable.d.ts.map +1 -0
- package/dist/client/components/ui/resizable.js +16 -0
- package/dist/client/components/ui/resizable.js.map +1 -0
- package/dist/client/components/ui/select.d.ts +16 -0
- package/dist/client/components/ui/select.d.ts.map +1 -0
- package/dist/client/components/ui/select.js +39 -0
- package/dist/client/components/ui/select.js.map +1 -0
- package/dist/client/components/ui/separator.d.ts +5 -0
- package/dist/client/components/ui/separator.d.ts.map +1 -0
- package/dist/client/components/ui/separator.js +9 -0
- package/dist/client/components/ui/separator.js.map +1 -0
- package/dist/client/components/ui/sheet.d.ts +14 -0
- package/dist/client/components/ui/sheet.d.ts.map +1 -0
- package/dist/client/components/ui/sheet.js +41 -0
- package/dist/client/components/ui/sheet.js.map +1 -0
- package/dist/client/components/ui/sonner.d.ts +4 -0
- package/dist/client/components/ui/sonner.d.ts.map +1 -0
- package/dist/client/components/ui/sonner.js +22 -0
- package/dist/client/components/ui/sonner.js.map +1 -0
- package/dist/client/components/ui/spinner.d.ts +4 -0
- package/dist/client/components/ui/spinner.d.ts.map +1 -0
- package/dist/client/components/ui/spinner.js +9 -0
- package/dist/client/components/ui/spinner.js.map +1 -0
- package/dist/client/components/ui/tabs.d.ts +8 -0
- package/dist/client/components/ui/tabs.d.ts.map +1 -0
- package/dist/client/components/ui/tabs.js +18 -0
- package/dist/client/components/ui/tabs.js.map +1 -0
- package/dist/client/components/ui/template-autocomplete.d.ts +14 -0
- package/dist/client/components/ui/template-autocomplete.d.ts.map +1 -0
- package/dist/client/components/ui/template-autocomplete.js +239 -0
- package/dist/client/components/ui/template-autocomplete.js.map +1 -0
- package/dist/client/components/ui/template-badge-input.d.ts +10 -0
- package/dist/client/components/ui/template-badge-input.d.ts.map +1 -0
- package/dist/client/components/ui/template-badge-input.js +360 -0
- package/dist/client/components/ui/template-badge-input.js.map +1 -0
- package/dist/client/components/ui/template-badge-textarea.d.ts +11 -0
- package/dist/client/components/ui/template-badge-textarea.d.ts.map +1 -0
- package/dist/client/components/ui/template-badge-textarea.js +431 -0
- package/dist/client/components/ui/template-badge-textarea.js.map +1 -0
- package/dist/client/components/ui/timezone-select.d.ts +9 -0
- package/dist/client/components/ui/timezone-select.d.ts.map +1 -0
- package/dist/client/components/ui/timezone-select.js +87 -0
- package/dist/client/components/ui/timezone-select.js.map +1 -0
- package/dist/client/components/ui/tooltip.d.ts +8 -0
- package/dist/client/components/ui/tooltip.d.ts.map +1 -0
- package/dist/client/components/ui/tooltip.js +18 -0
- package/dist/client/components/ui/tooltip.js.map +1 -0
- package/dist/client/components/ui/workflow-icon.d.ts +4 -0
- package/dist/client/components/ui/workflow-icon.d.ts.map +1 -0
- package/dist/client/components/ui/workflow-icon.js +5 -0
- package/dist/client/components/ui/workflow-icon.js.map +1 -0
- package/dist/client/components/workflow/config/action-config-renderer.d.ts +10 -0
- package/dist/client/components/workflow/config/action-config-renderer.d.ts.map +1 -0
- package/dist/client/components/workflow/config/action-config-renderer.js +64 -0
- package/dist/client/components/workflow/config/action-config-renderer.js.map +1 -0
- package/dist/client/components/workflow/config/action-config.d.ts +9 -0
- package/dist/client/components/workflow/config/action-config.d.ts.map +1 -0
- package/dist/client/components/workflow/config/action-config.js +174 -0
- package/dist/client/components/workflow/config/action-config.js.map +1 -0
- package/dist/client/components/workflow/config/action-grid.d.ts +8 -0
- package/dist/client/components/workflow/config/action-grid.d.ts.map +1 -0
- package/dist/client/components/workflow/config/action-grid.js +162 -0
- package/dist/client/components/workflow/config/action-grid.js.map +1 -0
- package/dist/client/components/workflow/config/condition-config.d.ts +8 -0
- package/dist/client/components/workflow/config/condition-config.d.ts.map +1 -0
- package/dist/client/components/workflow/config/condition-config.js +7 -0
- package/dist/client/components/workflow/config/condition-config.js.map +1 -0
- package/dist/client/components/workflow/config/editor-config.d.ts +13 -0
- package/dist/client/components/workflow/config/editor-config.d.ts.map +1 -0
- package/dist/client/components/workflow/config/editor-config.js +34 -0
- package/dist/client/components/workflow/config/editor-config.js.map +1 -0
- package/dist/client/components/workflow/config/schema-builder.d.ts +17 -0
- package/dist/client/components/workflow/config/schema-builder.d.ts.map +1 -0
- package/dist/client/components/workflow/config/schema-builder.js +55 -0
- package/dist/client/components/workflow/config/schema-builder.js.map +1 -0
- package/dist/client/components/workflow/config/system-action.d.ts +9 -0
- package/dist/client/components/workflow/config/system-action.d.ts.map +1 -0
- package/dist/client/components/workflow/config/system-action.js +33 -0
- package/dist/client/components/workflow/config/system-action.js.map +1 -0
- package/dist/client/components/workflow/config/trigger-config.d.ts +9 -0
- package/dist/client/components/workflow/config/trigger-config.d.ts.map +1 -0
- package/dist/client/components/workflow/config/trigger-config.js +33 -0
- package/dist/client/components/workflow/config/trigger-config.js.map +1 -0
- package/dist/client/components/workflow/node-config-panel.d.ts +3 -0
- package/dist/client/components/workflow/node-config-panel.d.ts.map +1 -0
- package/dist/client/components/workflow/node-config-panel.js +353 -0
- package/dist/client/components/workflow/node-config-panel.js.map +1 -0
- package/dist/client/components/workflow/nodes/action-node.d.ts +10 -0
- package/dist/client/components/workflow/nodes/action-node.d.ts.map +1 -0
- package/dist/client/components/workflow/nodes/action-node.js +176 -0
- package/dist/client/components/workflow/nodes/action-node.js.map +1 -0
- package/dist/client/components/workflow/nodes/add-node.d.ts +9 -0
- package/dist/client/components/workflow/nodes/add-node.d.ts.map +1 -0
- package/dist/client/components/workflow/nodes/add-node.js +8 -0
- package/dist/client/components/workflow/nodes/add-node.js.map +1 -0
- package/dist/client/components/workflow/nodes/trigger-node.d.ts +8 -0
- package/dist/client/components/workflow/nodes/trigger-node.d.ts.map +1 -0
- package/dist/client/components/workflow/nodes/trigger-node.js +25 -0
- package/dist/client/components/workflow/nodes/trigger-node.js.map +1 -0
- package/dist/client/components/workflow/persistent-canvas.d.ts +2 -0
- package/dist/client/components/workflow/persistent-canvas.d.ts.map +1 -0
- package/dist/client/components/workflow/persistent-canvas.js +13 -0
- package/dist/client/components/workflow/persistent-canvas.js.map +1 -0
- package/dist/client/components/workflow/utils/code-generators.d.ts +12 -0
- package/dist/client/components/workflow/utils/code-generators.d.ts.map +1 -0
- package/dist/client/components/workflow/utils/code-generators.js +70 -0
- package/dist/client/components/workflow/utils/code-generators.js.map +1 -0
- package/dist/client/components/workflow/workflow-canvas.d.ts +3 -0
- package/dist/client/components/workflow/workflow-canvas.d.ts.map +1 -0
- package/dist/client/components/workflow/workflow-canvas.js +347 -0
- package/dist/client/components/workflow/workflow-canvas.js.map +1 -0
- package/dist/client/components/workflow/workflow-context-menu.d.ts +27 -0
- package/dist/client/components/workflow/workflow-context-menu.d.ts.map +1 -0
- package/dist/client/components/workflow/workflow-context-menu.js +156 -0
- package/dist/client/components/workflow/workflow-context-menu.js.map +1 -0
- package/dist/client/components/workflow/workflow-editor.d.ts +6 -0
- package/dist/client/components/workflow/workflow-editor.d.ts.map +1 -0
- package/dist/client/components/workflow/workflow-editor.js +443 -0
- package/dist/client/components/workflow/workflow-editor.js.map +1 -0
- package/dist/client/components/workflow/workflow-runs.d.ts +8 -0
- package/dist/client/components/workflow/workflow-runs.d.ts.map +1 -0
- package/dist/client/components/workflow/workflow-runs.js +336 -0
- package/dist/client/components/workflow/workflow-runs.js.map +1 -0
- package/dist/client/components/workflow/workflow-toolbar.d.ts +6 -0
- package/dist/client/components/workflow/workflow-toolbar.d.ts.map +1 -0
- package/dist/client/components/workflow/workflow-toolbar.js +707 -0
- package/dist/client/components/workflow/workflow-toolbar.js.map +1 -0
- package/dist/client/components/workflows/user-menu.d.ts +2 -0
- package/dist/client/components/workflows/user-menu.d.ts.map +1 -0
- package/dist/client/components/workflows/user-menu.js +65 -0
- package/dist/client/components/workflows/user-menu.js.map +1 -0
- package/dist/client/hooks/use-mobile.d.ts +2 -0
- package/dist/client/hooks/use-mobile.d.ts.map +1 -0
- package/dist/client/hooks/use-mobile.js +16 -0
- package/dist/client/hooks/use-mobile.js.map +1 -0
- package/dist/client/hooks/use-touch.d.ts +2 -0
- package/dist/client/hooks/use-touch.d.ts.map +1 -0
- package/dist/client/hooks/use-touch.js +12 -0
- package/dist/client/hooks/use-touch.js.map +1 -0
- package/dist/client/index.d.ts +11 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +12 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/package.json +1 -0
- package/dist/lib/api-client.d.ts +330 -0
- package/dist/lib/api-client.d.ts.map +1 -0
- package/dist/lib/api-client.js +274 -0
- package/dist/lib/api-client.js.map +1 -0
- package/dist/lib/atoms/overlay.d.ts +15 -0
- package/dist/lib/atoms/overlay.d.ts.map +1 -0
- package/dist/lib/atoms/overlay.js +78 -0
- package/dist/lib/atoms/overlay.js.map +1 -0
- package/dist/lib/auth-client.d.ts +871 -0
- package/dist/lib/auth-client.d.ts.map +1 -0
- package/dist/lib/auth-client.js +10 -0
- package/dist/lib/auth-client.js.map +1 -0
- package/dist/lib/auth-providers.d.ts +12 -0
- package/dist/lib/auth-providers.d.ts.map +1 -0
- package/dist/lib/auth-providers.js +27 -0
- package/dist/lib/auth-providers.js.map +1 -0
- package/dist/lib/auth.d.ts +5 -0
- package/dist/lib/auth.d.ts.map +1 -0
- package/dist/lib/auth.js +62 -0
- package/dist/lib/auth.js.map +1 -0
- package/dist/lib/codegen-templates/condition.d.ts +3 -0
- package/dist/lib/codegen-templates/condition.d.ts.map +1 -0
- package/dist/lib/codegen-templates/condition.js +9 -0
- package/dist/lib/codegen-templates/condition.js.map +1 -0
- package/dist/lib/codegen-templates/database-query.d.ts +3 -0
- package/dist/lib/codegen-templates/database-query.d.ts.map +1 -0
- package/dist/lib/codegen-templates/database-query.js +24 -0
- package/dist/lib/codegen-templates/database-query.js.map +1 -0
- package/dist/lib/codegen-templates/http-request.d.ts +3 -0
- package/dist/lib/codegen-templates/http-request.d.ts.map +1 -0
- package/dist/lib/codegen-templates/http-request.js +44 -0
- package/dist/lib/codegen-templates/http-request.js.map +1 -0
- package/dist/lib/condition-validator.d.ts +10 -0
- package/dist/lib/condition-validator.d.ts.map +1 -0
- package/dist/lib/condition-validator.js +230 -0
- package/dist/lib/condition-validator.js.map +1 -0
- package/dist/lib/constants.d.ts +3 -0
- package/dist/lib/constants.d.ts.map +1 -0
- package/dist/lib/constants.js +3 -0
- package/dist/lib/constants.js.map +1 -0
- package/dist/lib/credential-fetcher.d.ts +4 -0
- package/dist/lib/credential-fetcher.d.ts.map +1 -0
- package/dist/lib/credential-fetcher.js +38 -0
- package/dist/lib/credential-fetcher.js.map +1 -0
- package/dist/lib/db/index.d.ts +4 -0
- package/dist/lib/db/index.d.ts.map +1 -0
- package/dist/lib/db/index.js +17 -0
- package/dist/lib/db/index.js.map +1 -0
- package/dist/lib/db/integrations.d.ts +36 -0
- package/dist/lib/db/integrations.d.ts.map +1 -0
- package/dist/lib/db/integrations.js +170 -0
- package/dist/lib/db/integrations.js.map +1 -0
- package/dist/lib/db/schema.d.ts +1474 -0
- package/dist/lib/db/schema.d.ts.map +1 -0
- package/dist/lib/db/schema.js +143 -0
- package/dist/lib/db/schema.js.map +1 -0
- package/dist/lib/integrations-store.d.ts +13 -0
- package/dist/lib/integrations-store.d.ts.map +1 -0
- package/dist/lib/integrations-store.js +10 -0
- package/dist/lib/integrations-store.js.map +1 -0
- package/dist/lib/managed-connection.d.ts +49 -0
- package/dist/lib/managed-connection.d.ts.map +1 -0
- package/dist/lib/managed-connection.js +21 -0
- package/dist/lib/managed-connection.js.map +1 -0
- package/dist/lib/monaco-theme.d.ts +29 -0
- package/dist/lib/monaco-theme.d.ts.map +1 -0
- package/dist/lib/monaco-theme.js +54 -0
- package/dist/lib/monaco-theme.js.map +1 -0
- package/dist/lib/plugin-registry.d.ts +10 -0
- package/dist/lib/plugin-registry.d.ts.map +1 -0
- package/dist/lib/plugin-registry.js +16 -0
- package/dist/lib/plugin-registry.js.map +1 -0
- package/dist/lib/steps/credentials.d.ts +14 -0
- package/dist/lib/steps/credentials.d.ts.map +1 -0
- package/dist/lib/steps/credentials.js +65 -0
- package/dist/lib/steps/credentials.js.map +1 -0
- package/dist/lib/steps/http-request.d.ts +22 -0
- package/dist/lib/steps/http-request.d.ts.map +1 -0
- package/dist/lib/steps/http-request.js +72 -0
- package/dist/lib/steps/http-request.js.map +1 -0
- package/dist/lib/steps/index.d.ts +10 -0
- package/dist/lib/steps/index.d.ts.map +1 -0
- package/dist/lib/steps/index.js +14 -0
- package/dist/lib/steps/index.js.map +1 -0
- package/dist/lib/steps/step-handler.d.ts +30 -0
- package/dist/lib/steps/step-handler.d.ts.map +1 -0
- package/dist/lib/steps/step-handler.js +105 -0
- package/dist/lib/steps/step-handler.js.map +1 -0
- package/dist/lib/steps/trigger.d.ts +21 -0
- package/dist/lib/steps/trigger.d.ts.map +1 -0
- package/dist/lib/steps/trigger.js +17 -0
- package/dist/lib/steps/trigger.js.map +1 -0
- package/dist/lib/types/integration.d.ts +3 -0
- package/dist/lib/types/integration.d.ts.map +1 -0
- package/dist/lib/types/integration.js +2 -0
- package/dist/lib/types/integration.js.map +1 -0
- package/dist/lib/utils/format-number.d.ts +2 -0
- package/dist/lib/utils/format-number.d.ts.map +1 -0
- package/dist/lib/utils/format-number.js +16 -0
- package/dist/lib/utils/format-number.js.map +1 -0
- package/dist/lib/utils/id.d.ts +2 -0
- package/dist/lib/utils/id.d.ts.map +1 -0
- package/dist/lib/utils/id.js +6 -0
- package/dist/lib/utils/id.js.map +1 -0
- package/dist/lib/utils/redact.d.ts +4 -0
- package/dist/lib/utils/redact.d.ts.map +1 -0
- package/dist/lib/utils/redact.js +143 -0
- package/dist/lib/utils/redact.js.map +1 -0
- package/dist/lib/utils/template.d.ts +18 -0
- package/dist/lib/utils/template.d.ts.map +1 -0
- package/dist/lib/utils/template.js +323 -0
- package/dist/lib/utils/template.js.map +1 -0
- package/dist/lib/utils/time.d.ts +2 -0
- package/dist/lib/utils/time.d.ts.map +1 -0
- package/dist/lib/utils/time.js +34 -0
- package/dist/lib/utils/time.js.map +1 -0
- package/dist/lib/utils.d.ts +5 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +99 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/lib/workflow-codegen-sdk.d.ts +4 -0
- package/dist/lib/workflow-codegen-sdk.d.ts.map +1 -0
- package/dist/lib/workflow-codegen-sdk.js +482 -0
- package/dist/lib/workflow-codegen-sdk.js.map +1 -0
- package/dist/lib/workflow-codegen-shared.d.ts +26 -0
- package/dist/lib/workflow-codegen-shared.d.ts.map +1 -0
- package/dist/lib/workflow-codegen-shared.js +232 -0
- package/dist/lib/workflow-codegen-shared.js.map +1 -0
- package/dist/lib/workflow-codegen.d.ts +18 -0
- package/dist/lib/workflow-codegen.d.ts.map +1 -0
- package/dist/lib/workflow-codegen.js +786 -0
- package/dist/lib/workflow-codegen.js.map +1 -0
- package/dist/lib/workflow-executor.workflow.d.ts +33 -0
- package/dist/lib/workflow-executor.workflow.d.ts.map +1 -0
- package/dist/lib/workflow-executor.workflow.js +605 -0
- package/dist/lib/workflow-executor.workflow.js.map +1 -0
- package/dist/lib/workflow-logging.d.ts +29 -0
- package/dist/lib/workflow-logging.d.ts.map +1 -0
- package/dist/lib/workflow-logging.js +48 -0
- package/dist/lib/workflow-logging.js.map +1 -0
- package/dist/lib/workflow-store.d.ts +118 -0
- package/dist/lib/workflow-store.d.ts.map +1 -0
- package/dist/lib/workflow-store.js +351 -0
- package/dist/lib/workflow-store.js.map +1 -0
- package/dist/plugins/condition/components/condition-fields.d.ts +7 -0
- package/dist/plugins/condition/components/condition-fields.d.ts.map +1 -0
- package/dist/plugins/condition/components/condition-fields.js +8 -0
- package/dist/plugins/condition/components/condition-fields.js.map +1 -0
- package/dist/plugins/condition/index.d.ts +4 -0
- package/dist/plugins/condition/index.d.ts.map +1 -0
- package/dist/plugins/condition/index.js +23 -0
- package/dist/plugins/condition/index.js.map +1 -0
- package/dist/plugins/condition/steps/evaluate.d.ts +15 -0
- package/dist/plugins/condition/steps/evaluate.d.ts.map +1 -0
- package/dist/plugins/condition/steps/evaluate.js +10 -0
- package/dist/plugins/condition/steps/evaluate.js.map +1 -0
- package/dist/plugins/database/components/database-query-fields.d.ts +7 -0
- package/dist/plugins/database/components/database-query-fields.d.ts.map +1 -0
- package/dist/plugins/database/components/database-query-fields.js +18 -0
- package/dist/plugins/database/components/database-query-fields.js.map +1 -0
- package/dist/plugins/database/index.d.ts +4 -0
- package/dist/plugins/database/index.d.ts.map +1 -0
- package/dist/plugins/database/index.js +23 -0
- package/dist/plugins/database/index.js.map +1 -0
- package/dist/plugins/database/steps/query.d.ts +20 -0
- package/dist/plugins/database/steps/query.d.ts.map +1 -0
- package/dist/plugins/database/steps/query.js +92 -0
- package/dist/plugins/database/steps/query.js.map +1 -0
- package/dist/plugins/index.d.ts +10 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/index.js +6 -0
- package/dist/plugins/index.js.map +1 -0
- package/dist/plugins/legacy-mappings.d.ts +2 -0
- package/dist/plugins/legacy-mappings.d.ts.map +1 -0
- package/dist/plugins/legacy-mappings.js +2 -0
- package/dist/plugins/legacy-mappings.js.map +1 -0
- package/dist/plugins/loop/components/loop-fields.d.ts +7 -0
- package/dist/plugins/loop/components/loop-fields.d.ts.map +1 -0
- package/dist/plugins/loop/components/loop-fields.js +8 -0
- package/dist/plugins/loop/components/loop-fields.js.map +1 -0
- package/dist/plugins/loop/icon.d.ts +4 -0
- package/dist/plugins/loop/icon.d.ts.map +1 -0
- package/dist/plugins/loop/icon.js +5 -0
- package/dist/plugins/loop/icon.js.map +1 -0
- package/dist/plugins/loop/index.d.ts +4 -0
- package/dist/plugins/loop/index.d.ts.map +1 -0
- package/dist/plugins/loop/index.js +52 -0
- package/dist/plugins/loop/index.js.map +1 -0
- package/dist/plugins/loop/steps/iterate.d.ts +24 -0
- package/dist/plugins/loop/steps/iterate.d.ts.map +1 -0
- package/dist/plugins/loop/steps/iterate.js +31 -0
- package/dist/plugins/loop/steps/iterate.js.map +1 -0
- package/dist/plugins/registry.d.ts +136 -0
- package/dist/plugins/registry.d.ts.map +1 -0
- package/dist/plugins/registry.js +241 -0
- package/dist/plugins/registry.js.map +1 -0
- package/dist/plugins/switch/icon.d.ts +4 -0
- package/dist/plugins/switch/icon.d.ts.map +1 -0
- package/dist/plugins/switch/icon.js +5 -0
- package/dist/plugins/switch/icon.js.map +1 -0
- package/dist/plugins/switch/index.d.ts +4 -0
- package/dist/plugins/switch/index.d.ts.map +1 -0
- package/dist/plugins/switch/index.js +81 -0
- package/dist/plugins/switch/index.js.map +1 -0
- package/dist/plugins/switch/steps/evaluate.d.ts +27 -0
- package/dist/plugins/switch/steps/evaluate.d.ts.map +1 -0
- package/dist/plugins/switch/steps/evaluate.js +81 -0
- package/dist/plugins/switch/steps/evaluate.js.map +1 -0
- package/dist/scripts/create-plugin.d.ts +3 -0
- package/dist/scripts/create-plugin.d.ts.map +1 -0
- package/dist/scripts/create-plugin.js +205 -0
- package/dist/scripts/create-plugin.js.map +1 -0
- package/dist/scripts/discover-plugins.d.ts +3 -0
- package/dist/scripts/discover-plugins.d.ts.map +1 -0
- package/dist/scripts/discover-plugins.js +729 -0
- package/dist/scripts/discover-plugins.js.map +1 -0
- package/dist/scripts/migrate-prod.d.ts +2 -0
- package/dist/scripts/migrate-prod.d.ts.map +1 -0
- package/dist/scripts/migrate-prod.js +17 -0
- package/dist/scripts/migrate-prod.js.map +1 -0
- package/dist/scripts/nwb.d.ts +3 -0
- package/dist/scripts/nwb.d.ts.map +1 -0
- package/dist/scripts/nwb.js +33 -0
- package/dist/scripts/nwb.js.map +1 -0
- package/dist/server/api/handler-utils.d.ts +22 -0
- package/dist/server/api/handler-utils.d.ts.map +1 -0
- package/dist/server/api/handler-utils.js +42 -0
- package/dist/server/api/handler-utils.js.map +1 -0
- package/dist/server/api/handlers/ai/generate/route.d.ts +3 -0
- package/dist/server/api/handlers/ai/generate/route.d.ts.map +1 -0
- package/dist/server/api/handlers/ai/generate/route.js +260 -0
- package/dist/server/api/handlers/ai/generate/route.js.map +1 -0
- package/dist/server/api/handlers/api-keys/[keyId]/route.d.ts +3 -0
- package/dist/server/api/handlers/api-keys/[keyId]/route.d.ts.map +1 -0
- package/dist/server/api/handlers/api-keys/[keyId]/route.js +25 -0
- package/dist/server/api/handlers/api-keys/[keyId]/route.js.map +1 -0
- package/dist/server/api/handlers/api-keys/route.d.ts +3 -0
- package/dist/server/api/handlers/api-keys/route.d.ts.map +1 -0
- package/dist/server/api/handlers/api-keys/route.js +84 -0
- package/dist/server/api/handlers/api-keys/route.js.map +1 -0
- package/dist/server/api/handlers/auth/route.d.ts +3 -0
- package/dist/server/api/handlers/auth/route.d.ts.map +1 -0
- package/dist/server/api/handlers/auth/route.js +14 -0
- package/dist/server/api/handlers/auth/route.js.map +1 -0
- package/dist/server/api/handlers/integrations/[integrationId]/route.d.ts +16 -0
- package/dist/server/api/handlers/integrations/[integrationId]/route.d.ts.map +1 -0
- package/dist/server/api/handlers/integrations/[integrationId]/route.js +117 -0
- package/dist/server/api/handlers/integrations/[integrationId]/route.js.map +1 -0
- package/dist/server/api/handlers/integrations/[integrationId]/test/route.d.ts +7 -0
- package/dist/server/api/handlers/integrations/[integrationId]/test/route.d.ts.map +1 -0
- package/dist/server/api/handlers/integrations/[integrationId]/test/route.js +96 -0
- package/dist/server/api/handlers/integrations/[integrationId]/test/route.js.map +1 -0
- package/dist/server/api/handlers/integrations/route.d.ts +24 -0
- package/dist/server/api/handlers/integrations/route.d.ts.map +1 -0
- package/dist/server/api/handlers/integrations/route.js +80 -0
- package/dist/server/api/handlers/integrations/route.js.map +1 -0
- package/dist/server/api/handlers/integrations/test/route.d.ts +12 -0
- package/dist/server/api/handlers/integrations/test/route.d.ts.map +1 -0
- package/dist/server/api/handlers/integrations/test/route.js +76 -0
- package/dist/server/api/handlers/integrations/test/route.js.map +1 -0
- package/dist/server/api/handlers/og/workflow/[workflowId]/route.d.ts +7 -0
- package/dist/server/api/handlers/og/workflow/[workflowId]/route.d.ts.map +1 -0
- package/dist/server/api/handlers/og/workflow/[workflowId]/route.js +197 -0
- package/dist/server/api/handlers/og/workflow/[workflowId]/route.js.map +1 -0
- package/dist/server/api/handlers/user/route.d.ts +3 -0
- package/dist/server/api/handlers/user/route.d.ts.map +1 -0
- package/dist/server/api/handlers/user/route.js +81 -0
- package/dist/server/api/handlers/user/route.js.map +1 -0
- package/dist/server/api/handlers/workflow/[workflowId]/cron/route.d.ts +3 -0
- package/dist/server/api/handlers/workflow/[workflowId]/cron/route.d.ts.map +1 -0
- package/dist/server/api/handlers/workflow/[workflowId]/cron/route.js +65 -0
- package/dist/server/api/handlers/workflow/[workflowId]/cron/route.js.map +1 -0
- package/dist/server/api/handlers/workflow/[workflowId]/execute/route.d.ts +3 -0
- package/dist/server/api/handlers/workflow/[workflowId]/execute/route.d.ts.map +1 -0
- package/dist/server/api/handlers/workflow/[workflowId]/execute/route.js +72 -0
- package/dist/server/api/handlers/workflow/[workflowId]/execute/route.js.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/code/route.d.ts +3 -0
- package/dist/server/api/handlers/workflows/[workflowId]/code/route.d.ts.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/code/route.js +24 -0
- package/dist/server/api/handlers/workflows/[workflowId]/code/route.js.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/cron/route.d.ts +3 -0
- package/dist/server/api/handlers/workflows/[workflowId]/cron/route.d.ts.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/cron/route.js +65 -0
- package/dist/server/api/handlers/workflows/[workflowId]/cron/route.js.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/download/route.d.ts +3 -0
- package/dist/server/api/handlers/workflows/[workflowId]/download/route.d.ts.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/download/route.js +24 -0
- package/dist/server/api/handlers/workflows/[workflowId]/download/route.js.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/duplicate/route.d.ts +3 -0
- package/dist/server/api/handlers/workflows/[workflowId]/duplicate/route.d.ts.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/duplicate/route.js +89 -0
- package/dist/server/api/handlers/workflows/[workflowId]/duplicate/route.js.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/execute/route.d.ts +3 -0
- package/dist/server/api/handlers/workflows/[workflowId]/execute/route.d.ts.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/execute/route.js +72 -0
- package/dist/server/api/handlers/workflows/[workflowId]/execute/route.js.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/executions/route.d.ts +3 -0
- package/dist/server/api/handlers/workflows/[workflowId]/executions/route.d.ts.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/executions/route.js +63 -0
- package/dist/server/api/handlers/workflows/[workflowId]/executions/route.js.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/route.d.ts +3 -0
- package/dist/server/api/handlers/workflows/[workflowId]/route.d.ts.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/route.js +132 -0
- package/dist/server/api/handlers/workflows/[workflowId]/route.js.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/webhook/route.d.ts +3 -0
- package/dist/server/api/handlers/workflows/[workflowId]/webhook/route.d.ts.map +1 -0
- package/dist/server/api/handlers/workflows/[workflowId]/webhook/route.js +111 -0
- package/dist/server/api/handlers/workflows/[workflowId]/webhook/route.js.map +1 -0
- package/dist/server/api/handlers/workflows/create/route.d.ts +3 -0
- package/dist/server/api/handlers/workflows/create/route.d.ts.map +1 -0
- package/dist/server/api/handlers/workflows/create/route.js +67 -0
- package/dist/server/api/handlers/workflows/create/route.js.map +1 -0
- package/dist/server/api/handlers/workflows/current/route.d.ts +3 -0
- package/dist/server/api/handlers/workflows/current/route.d.ts.map +1 -0
- package/dist/server/api/handlers/workflows/current/route.js +89 -0
- package/dist/server/api/handlers/workflows/current/route.js.map +1 -0
- package/dist/server/api/handlers/workflows/executions/[executionId]/logs/route.d.ts +3 -0
- package/dist/server/api/handlers/workflows/executions/[executionId]/logs/route.d.ts.map +1 -0
- package/dist/server/api/handlers/workflows/executions/[executionId]/logs/route.js +38 -0
- package/dist/server/api/handlers/workflows/executions/[executionId]/logs/route.js.map +1 -0
- package/dist/server/api/handlers/workflows/executions/[executionId]/status/route.d.ts +3 -0
- package/dist/server/api/handlers/workflows/executions/[executionId]/status/route.d.ts.map +1 -0
- package/dist/server/api/handlers/workflows/executions/[executionId]/status/route.js +35 -0
- package/dist/server/api/handlers/workflows/executions/[executionId]/status/route.js.map +1 -0
- package/dist/server/api/handlers/workflows/route.d.ts +3 -0
- package/dist/server/api/handlers/workflows/route.d.ts.map +1 -0
- package/dist/server/api/handlers/workflows/route.js +22 -0
- package/dist/server/api/handlers/workflows/route.js.map +1 -0
- package/dist/server/api/routes.d.ts +4 -0
- package/dist/server/api/routes.d.ts.map +1 -0
- package/dist/server/api/routes.js +51 -0
- package/dist/server/api/routes.js.map +1 -0
- package/dist/server/api/types.d.ts +41 -0
- package/dist/server/api/types.d.ts.map +1 -0
- package/dist/server/api/types.js +2 -0
- package/dist/server/api/types.js.map +1 -0
- package/dist/server/api/workflows.d.ts +8 -0
- package/dist/server/api/workflows.d.ts.map +1 -0
- package/dist/server/api/workflows.js +75 -0
- package/dist/server/api/workflows.js.map +1 -0
- package/dist/server/db/migrate.d.ts +2 -0
- package/dist/server/db/migrate.d.ts.map +1 -0
- package/dist/server/db/migrate.js +2 -0
- package/dist/server/db/migrate.js.map +1 -0
- package/dist/server/db/schema.d.ts +1465 -0
- package/dist/server/db/schema.d.ts.map +1 -0
- package/dist/server/db/schema.js +15 -0
- package/dist/server/db/schema.js.map +1 -0
- package/dist/server/index.d.ts +11 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/index.js +9 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/plugin.d.ts +17 -0
- package/dist/server/plugin.d.ts.map +1 -0
- package/dist/server/plugin.js +27 -0
- package/dist/server/plugin.js.map +1 -0
- package/dist/server/utils.d.ts +3 -0
- package/dist/server/utils.d.ts.map +1 -0
- package/dist/server/utils.js +7 -0
- package/dist/server/utils.js.map +1 -0
- package/dist/styles/globals.css +254 -0
- package/package.json +130 -0
- package/src/plugins/_template/credentials.ts.txt +10 -0
- package/src/plugins/_template/icon.tsx.txt +28 -0
- package/src/plugins/_template/index.ts.txt +122 -0
- package/src/plugins/_template/steps/action.ts.txt +103 -0
- package/src/plugins/_template/test.ts.txt +57 -0
- package/src/plugins/condition/components/condition-fields.tsx +32 -0
- package/src/plugins/condition/index.ts +27 -0
- package/src/plugins/condition/steps/evaluate.ts +32 -0
- package/src/plugins/database/components/database-query-fields.tsx +58 -0
- package/src/plugins/database/index.ts +27 -0
- package/src/plugins/database/steps/query.ts +141 -0
- package/src/plugins/index.ts +37 -0
- package/src/plugins/legacy-mappings.ts +11 -0
- package/src/plugins/loop/components/loop-fields.tsx +46 -0
- package/src/plugins/loop/icon.tsx +21 -0
- package/src/plugins/loop/index.ts +57 -0
- package/src/plugins/loop/steps/iterate.ts +74 -0
- package/src/plugins/loop/workflow-executor.patch +241 -0
- package/src/plugins/registry.ts +660 -0
- package/src/plugins/switch/icon.tsx +23 -0
- package/src/plugins/switch/index.ts +87 -0
- package/src/plugins/switch/steps/evaluate.ts +139 -0
- package/src/plugins/switch/workflow-executor.patch +130 -0
- package/src/scripts/create-plugin.ts +301 -0
- package/src/scripts/discover-plugins.ts +1122 -0
- package/src/scripts/migrate-prod.ts +16 -0
- package/src/scripts/nwb.ts +54 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PLUGIN INDEX TEMPLATE
|
|
3
|
+
*
|
|
4
|
+
* This is the main plugin definition file. It registers your integration
|
|
5
|
+
* and defines all actions, configuration fields, and metadata.
|
|
6
|
+
*
|
|
7
|
+
* Instructions:
|
|
8
|
+
* 1. Replace all [PLACEHOLDERS] with your integration's values
|
|
9
|
+
* 2. Run `pnpm discover-plugins` after creating your plugin
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type { IntegrationPlugin } from "../registry";
|
|
13
|
+
import { registerIntegration } from "../registry";
|
|
14
|
+
import { [IntegrationName]Icon } from "./icon";
|
|
15
|
+
|
|
16
|
+
const [integrationName]Plugin: IntegrationPlugin = {
|
|
17
|
+
// Must be unique and match your folder name (e.g., "my-integration")
|
|
18
|
+
type: "[integration-type]",
|
|
19
|
+
|
|
20
|
+
// Display name shown in the UI
|
|
21
|
+
label: "[Integration Name]",
|
|
22
|
+
|
|
23
|
+
// Brief description of what this integration does
|
|
24
|
+
description: "[Integration Description]",
|
|
25
|
+
|
|
26
|
+
// Icon component - imported from ./icon.tsx
|
|
27
|
+
// Can be a custom SVG component or use a Lucide icon directly
|
|
28
|
+
icon: [IntegrationName]Icon,
|
|
29
|
+
|
|
30
|
+
// Form fields for the integration settings dialog
|
|
31
|
+
// These define what credentials/config users need to provide
|
|
32
|
+
formFields: [
|
|
33
|
+
{
|
|
34
|
+
id: "apiKey",
|
|
35
|
+
label: "API Key",
|
|
36
|
+
type: "password", // "password" | "text" | "url"
|
|
37
|
+
placeholder: "[api-key-prefix]...",
|
|
38
|
+
configKey: "apiKey", // Key stored in database
|
|
39
|
+
envVar: "[INTEGRATION_NAME]_API_KEY", // Environment variable name
|
|
40
|
+
helpText: "Get your API key from ",
|
|
41
|
+
helpLink: {
|
|
42
|
+
text: "[integration-name].com/api-keys",
|
|
43
|
+
url: "https://[integration-name].com/api-keys",
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
// Add more fields as needed (e.g., workspace ID, region, etc.)
|
|
47
|
+
],
|
|
48
|
+
|
|
49
|
+
// Test function for validating credentials
|
|
50
|
+
// Lazy-loaded to avoid bundling server code in client
|
|
51
|
+
testConfig: {
|
|
52
|
+
getTestFunction: async () => {
|
|
53
|
+
const { test[IntegrationName] } = await import("./test");
|
|
54
|
+
return test[IntegrationName];
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
|
|
58
|
+
// Actions provided by this integration
|
|
59
|
+
actions: [
|
|
60
|
+
{
|
|
61
|
+
// Unique slug for this action (used in URLs and IDs)
|
|
62
|
+
// Full action ID will be: "[integration-type]/[slug]"
|
|
63
|
+
slug: "[action-slug]",
|
|
64
|
+
|
|
65
|
+
// Display name and description
|
|
66
|
+
label: "[Action Label]",
|
|
67
|
+
description: "[Action Description]",
|
|
68
|
+
|
|
69
|
+
// Category for grouping in the action picker (usually integration name)
|
|
70
|
+
category: "[Integration Name]",
|
|
71
|
+
|
|
72
|
+
// Step function name and import path
|
|
73
|
+
// The function must be exported from plugins/[integration]/steps/[stepImportPath].ts
|
|
74
|
+
stepFunction: "[actionName]Step",
|
|
75
|
+
stepImportPath: "[action-slug]",
|
|
76
|
+
|
|
77
|
+
// Declarative config fields for the action
|
|
78
|
+
// Supported types: "template-input", "template-textarea", "text", "number", "select", "schema-builder"
|
|
79
|
+
configFields: [
|
|
80
|
+
{
|
|
81
|
+
key: "fieldA",
|
|
82
|
+
label: "Field A",
|
|
83
|
+
type: "template-input", // Supports {{NodeName.field}} syntax
|
|
84
|
+
placeholder: "Enter value or use {{NodeName.field}}",
|
|
85
|
+
example: "example value", // Used in AI prompt generation
|
|
86
|
+
required: true,
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
key: "fieldB",
|
|
90
|
+
label: "Field B",
|
|
91
|
+
type: "template-textarea",
|
|
92
|
+
placeholder: "Multi-line content...",
|
|
93
|
+
rows: 5,
|
|
94
|
+
},
|
|
95
|
+
// For select fields:
|
|
96
|
+
// {
|
|
97
|
+
// key: "option",
|
|
98
|
+
// label: "Option",
|
|
99
|
+
// type: "select",
|
|
100
|
+
// options: [
|
|
101
|
+
// { value: "a", label: "Option A" },
|
|
102
|
+
// { value: "b", label: "Option B" },
|
|
103
|
+
// ],
|
|
104
|
+
// defaultValue: "a",
|
|
105
|
+
// },
|
|
106
|
+
// For conditional fields:
|
|
107
|
+
// {
|
|
108
|
+
// key: "conditionalField",
|
|
109
|
+
// label: "Conditional Field",
|
|
110
|
+
// type: "text",
|
|
111
|
+
// showWhen: { field: "option", equals: "b" },
|
|
112
|
+
// },
|
|
113
|
+
],
|
|
114
|
+
},
|
|
115
|
+
// Add more actions as needed
|
|
116
|
+
],
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
// Auto-register on import
|
|
120
|
+
registerIntegration([integrationName]Plugin);
|
|
121
|
+
|
|
122
|
+
export default [integrationName]Plugin;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* STEP FUNCTION TEMPLATE
|
|
3
|
+
*
|
|
4
|
+
* This file contains the server-side execution logic for your action.
|
|
5
|
+
*
|
|
6
|
+
* Structure:
|
|
7
|
+
* 1. `stepHandler` - Core logic that receives credentials as a parameter
|
|
8
|
+
* 2. `[actionName]Step` - Entry point that fetches credentials and wraps with logging
|
|
9
|
+
*
|
|
10
|
+
* TODO:
|
|
11
|
+
* 1. Update the input/result types to match your action's fields
|
|
12
|
+
* 2. Implement your API call logic in stepHandler
|
|
13
|
+
* 3. The step function must be exported and match the name in index.ts
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
import { fetchCredentials } from "@/lib/credential-fetcher";
|
|
17
|
+
import { type StepInput, withStepLogging } from "@/lib/steps/step-handler";
|
|
18
|
+
import { getErrorMessage } from "@/lib/utils";
|
|
19
|
+
import type { [IntegrationName]Credentials } from "../credentials";
|
|
20
|
+
|
|
21
|
+
// TODO: Customize result fields for your action
|
|
22
|
+
type [ActionName]Result =
|
|
23
|
+
| { success: true; resultId: string }
|
|
24
|
+
| { success: false; error: string };
|
|
25
|
+
|
|
26
|
+
// Core input fields
|
|
27
|
+
export type [ActionName]CoreInput = {
|
|
28
|
+
fieldA: string;
|
|
29
|
+
fieldB?: string;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
// Full input includes integrationId and step context
|
|
33
|
+
export type [ActionName]Input = StepInput &
|
|
34
|
+
[ActionName]CoreInput & {
|
|
35
|
+
integrationId?: string;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Core logic
|
|
40
|
+
*/
|
|
41
|
+
async function stepHandler(
|
|
42
|
+
input: [ActionName]CoreInput,
|
|
43
|
+
credentials: [IntegrationName]Credentials
|
|
44
|
+
): Promise<[ActionName]Result> {
|
|
45
|
+
const apiKey = credentials.[INTEGRATION_NAME]_API_KEY;
|
|
46
|
+
|
|
47
|
+
if (!apiKey) {
|
|
48
|
+
return {
|
|
49
|
+
success: false,
|
|
50
|
+
error:
|
|
51
|
+
"[INTEGRATION_NAME]_API_KEY is not configured. Please add it in Project Integrations.",
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
try {
|
|
56
|
+
// Your API call or business logic here
|
|
57
|
+
// Example:
|
|
58
|
+
// const client = new MyClient(apiKey);
|
|
59
|
+
// const result = await client.doSomething(input.fieldA);
|
|
60
|
+
|
|
61
|
+
const response = await fetch("https://api.[integration-name].com/endpoint", {
|
|
62
|
+
method: "POST",
|
|
63
|
+
headers: {
|
|
64
|
+
"Content-Type": "application/json",
|
|
65
|
+
Authorization: `Bearer ${apiKey}`,
|
|
66
|
+
},
|
|
67
|
+
body: JSON.stringify({
|
|
68
|
+
fieldA: input.fieldA,
|
|
69
|
+
fieldB: input.fieldB,
|
|
70
|
+
}),
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
if (!response.ok) {
|
|
74
|
+
throw new Error(`API request failed: ${response.statusText}`);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
const result = await response.json();
|
|
78
|
+
|
|
79
|
+
return { success: true, resultId: result.id };
|
|
80
|
+
} catch (error) {
|
|
81
|
+
return {
|
|
82
|
+
success: false,
|
|
83
|
+
error: `Failed to execute action: ${getErrorMessage(error)}`,
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Step entry point
|
|
90
|
+
*/
|
|
91
|
+
export async function [actionName]Step(
|
|
92
|
+
input: [ActionName]Input
|
|
93
|
+
): Promise<[ActionName]Result> {
|
|
94
|
+
"use step";
|
|
95
|
+
|
|
96
|
+
const credentials = input.integrationId
|
|
97
|
+
? await fetchCredentials(input.integrationId)
|
|
98
|
+
: {};
|
|
99
|
+
|
|
100
|
+
return withStepLogging(input, () => stepHandler(input, credentials));
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export const _integrationType = "[integration-type]";
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TEST FUNCTION TEMPLATE
|
|
3
|
+
*
|
|
4
|
+
* This function validates credentials when users click "Test Connection".
|
|
5
|
+
* It should verify credentials are valid without performing destructive actions.
|
|
6
|
+
*
|
|
7
|
+
* The function is lazy-loaded via getTestFunction() in index.ts to avoid
|
|
8
|
+
* bundling server-side code in the client.
|
|
9
|
+
*
|
|
10
|
+
* Approaches for testing:
|
|
11
|
+
* 1. Format validation (e.g., check API key prefix)
|
|
12
|
+
* 2. Lightweight API call (e.g., fetch user info, list resources)
|
|
13
|
+
* 3. Dedicated test endpoint if the API provides one
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
export async function test[IntegrationName](credentials: Record<string, string>) {
|
|
17
|
+
try {
|
|
18
|
+
const apiKey = credentials.[INTEGRATION_NAME]_API_KEY;
|
|
19
|
+
|
|
20
|
+
// Validate API key is provided
|
|
21
|
+
if (!apiKey) {
|
|
22
|
+
return {
|
|
23
|
+
success: false,
|
|
24
|
+
error: "[INTEGRATION_NAME]_API_KEY is required",
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// Option 1: Format validation (if API keys have a known format)
|
|
29
|
+
// if (!apiKey.startsWith("sk_")) {
|
|
30
|
+
// return {
|
|
31
|
+
// success: false,
|
|
32
|
+
// error: "Invalid API key format. API keys should start with 'sk_'",
|
|
33
|
+
// };
|
|
34
|
+
// }
|
|
35
|
+
|
|
36
|
+
// Option 2: Make a lightweight API call to verify the key works
|
|
37
|
+
const response = await fetch("https://api.[integration-name].com/v1/test", {
|
|
38
|
+
method: "GET",
|
|
39
|
+
headers: {
|
|
40
|
+
"Content-Type": "application/json",
|
|
41
|
+
Authorization: `Bearer ${apiKey}`,
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
if (response.ok) {
|
|
46
|
+
return { success: true };
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const error = await response.text();
|
|
50
|
+
return { success: false, error: error || "Invalid API key" };
|
|
51
|
+
} catch (error) {
|
|
52
|
+
return {
|
|
53
|
+
success: false,
|
|
54
|
+
error: error instanceof Error ? error.message : String(error),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Label } from "../../../client/components/ui/label";
|
|
2
|
+
import { TemplateBadgeInput } from "../../../client/components/ui/template-badge-input";
|
|
3
|
+
|
|
4
|
+
// Condition fields component
|
|
5
|
+
function ConditionFields({
|
|
6
|
+
config,
|
|
7
|
+
onUpdateConfig,
|
|
8
|
+
disabled,
|
|
9
|
+
}: {
|
|
10
|
+
config: Record<string, unknown>;
|
|
11
|
+
onUpdateConfig: (key: string, value: string) => void;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
}) {
|
|
14
|
+
return (
|
|
15
|
+
<div className="space-y-2">
|
|
16
|
+
<Label htmlFor="condition">Condition Expression</Label>
|
|
17
|
+
<TemplateBadgeInput
|
|
18
|
+
disabled={ disabled }
|
|
19
|
+
id="condition"
|
|
20
|
+
onChange={ (value) => onUpdateConfig("condition", value) }
|
|
21
|
+
placeholder="e.g., 5 > 3, status === 200, {{PreviousNode.value}} > 100"
|
|
22
|
+
value={ (config?.condition as string) || "" }
|
|
23
|
+
/>
|
|
24
|
+
<p className="text-muted-foreground text-xs">
|
|
25
|
+
Enter a JavaScript expression that evaluates to true or false. You can
|
|
26
|
+
use @ to reference previous node outputs.
|
|
27
|
+
</p>
|
|
28
|
+
</div>
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { ConditionFields };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { GitBranchIcon } from "lucide-react";
|
|
2
|
+
import type { IntegrationPlugin } from "../registry";
|
|
3
|
+
|
|
4
|
+
const conditionPlugin: IntegrationPlugin = {
|
|
5
|
+
type: "condition",
|
|
6
|
+
label: "Condition",
|
|
7
|
+
description: "",
|
|
8
|
+
icon: GitBranchIcon,
|
|
9
|
+
isBuiltIn: true,
|
|
10
|
+
|
|
11
|
+
formFields: [],
|
|
12
|
+
|
|
13
|
+
actions: [
|
|
14
|
+
{
|
|
15
|
+
slug: "iterate",
|
|
16
|
+
label: "Iterate",
|
|
17
|
+
description: "Split data into batches and iterate over each batch",
|
|
18
|
+
category: "System",
|
|
19
|
+
stepFunction: "iterateStep",
|
|
20
|
+
stepImportPath: "iterate",
|
|
21
|
+
configFields: [],
|
|
22
|
+
outputFields: [],
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default conditionPlugin;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Executable step function for Condition action
|
|
3
|
+
*/
|
|
4
|
+
import { StepInput, withStepLogging } from "../../../lib/steps/step-handler";
|
|
5
|
+
|
|
6
|
+
export type ConditionInput = StepInput & {
|
|
7
|
+
condition: boolean;
|
|
8
|
+
/** Original condition expression string for logging (e.g., "{{@nodeId:Label.field}} === 'good'") */
|
|
9
|
+
expression?: string;
|
|
10
|
+
/** Resolved values of template variables for logging (e.g., { "Label.field": "actual_value" }) */
|
|
11
|
+
values?: Record<string, unknown>;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
type ConditionResult = {
|
|
15
|
+
condition: boolean;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
function evaluateCondition(input: ConditionInput): ConditionResult {
|
|
19
|
+
return { condition: input.condition };
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// biome-ignore lint/suspicious/useAwait: workflow "use step" requires async
|
|
23
|
+
export async function conditionStep(
|
|
24
|
+
input: ConditionInput,
|
|
25
|
+
): Promise<ConditionResult> {
|
|
26
|
+
"use step";
|
|
27
|
+
return withStepLogging(input, () =>
|
|
28
|
+
Promise.resolve(evaluateCondition(input)),
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
conditionStep.maxRetries = 0;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { CodeEditor } from "../../../client/components/ui/code-editor";
|
|
2
|
+
import { Label } from "../../../client/components/ui/label";
|
|
3
|
+
import { SchemaBuilder, SchemaField } from "../../../client/components/workflow/config/schema-builder";
|
|
4
|
+
|
|
5
|
+
// Database Query fields component
|
|
6
|
+
function DatabaseQueryFields({
|
|
7
|
+
config,
|
|
8
|
+
onUpdateConfig,
|
|
9
|
+
disabled,
|
|
10
|
+
}: {
|
|
11
|
+
config: Record<string, unknown>;
|
|
12
|
+
onUpdateConfig: (key: string, value: string) => void;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
}) {
|
|
15
|
+
return (
|
|
16
|
+
<>
|
|
17
|
+
<div className="space-y-2">
|
|
18
|
+
<Label htmlFor="dbQuery">SQL Query</Label>
|
|
19
|
+
<div className="overflow-hidden rounded-md border">
|
|
20
|
+
<CodeEditor
|
|
21
|
+
defaultLanguage="sql"
|
|
22
|
+
height="150px"
|
|
23
|
+
onChange={ (value) => onUpdateConfig("dbQuery", value || "") }
|
|
24
|
+
options={ {
|
|
25
|
+
minimap: { enabled: false },
|
|
26
|
+
lineNumbers: "on",
|
|
27
|
+
scrollBeyondLastLine: false,
|
|
28
|
+
fontSize: 12,
|
|
29
|
+
readOnly: disabled,
|
|
30
|
+
wordWrap: "off",
|
|
31
|
+
} }
|
|
32
|
+
value={ (config?.dbQuery as string) || "" }
|
|
33
|
+
/>
|
|
34
|
+
</div>
|
|
35
|
+
<p className="text-muted-foreground text-xs">
|
|
36
|
+
The DATABASE_URL from your project integrations will be used to
|
|
37
|
+
execute this query.
|
|
38
|
+
</p>
|
|
39
|
+
</div>
|
|
40
|
+
<div className="space-y-2">
|
|
41
|
+
<Label>Schema (Optional)</Label>
|
|
42
|
+
<SchemaBuilder
|
|
43
|
+
disabled={ disabled }
|
|
44
|
+
onChange={ (schema) =>
|
|
45
|
+
onUpdateConfig("dbSchema", JSON.stringify(schema))
|
|
46
|
+
}
|
|
47
|
+
schema={
|
|
48
|
+
config?.dbSchema
|
|
49
|
+
? (JSON.parse(config.dbSchema as string) as SchemaField[])
|
|
50
|
+
: []
|
|
51
|
+
}
|
|
52
|
+
/>
|
|
53
|
+
</div>
|
|
54
|
+
</>
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export { DatabaseQueryFields };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DatabaseIcon } from "lucide-react";
|
|
2
|
+
import type { IntegrationPlugin } from "../registry";
|
|
3
|
+
|
|
4
|
+
const databasePlugin: IntegrationPlugin = {
|
|
5
|
+
type: "database",
|
|
6
|
+
label: "Database",
|
|
7
|
+
description: "",
|
|
8
|
+
icon: DatabaseIcon,
|
|
9
|
+
isBuiltIn: true,
|
|
10
|
+
|
|
11
|
+
formFields: [],
|
|
12
|
+
|
|
13
|
+
actions: [
|
|
14
|
+
{
|
|
15
|
+
slug: "query",
|
|
16
|
+
label: "Query",
|
|
17
|
+
description: "Execute a database query",
|
|
18
|
+
category: "Database",
|
|
19
|
+
stepFunction: "databaseQueryStep",
|
|
20
|
+
stepImportPath: "query",
|
|
21
|
+
configFields: [],
|
|
22
|
+
outputFields: [],
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default databasePlugin;
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Executable step function for Database Query action
|
|
3
|
+
*
|
|
4
|
+
* SECURITY PATTERN - External Secret Store:
|
|
5
|
+
* Step fetches credentials using workflow ID reference
|
|
6
|
+
*/
|
|
7
|
+
import { sql } from "drizzle-orm";
|
|
8
|
+
import { drizzle } from "drizzle-orm/postgres-js";
|
|
9
|
+
import postgres from "postgres";
|
|
10
|
+
import { fetchCredentials } from "../../../lib/credential-fetcher";
|
|
11
|
+
import { type StepInput, withStepLogging } from "../../../lib/steps/step-handler";
|
|
12
|
+
|
|
13
|
+
type DatabaseQueryResult =
|
|
14
|
+
| { success: true; rows: unknown; count: number }
|
|
15
|
+
| { success: false; error: string };
|
|
16
|
+
|
|
17
|
+
export type DatabaseQueryInput = StepInput & {
|
|
18
|
+
integrationId?: string;
|
|
19
|
+
dbQuery?: string;
|
|
20
|
+
query?: string;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
function validateInput(input: DatabaseQueryInput): string | null {
|
|
24
|
+
const queryString = input.dbQuery || input.query;
|
|
25
|
+
|
|
26
|
+
if (!queryString || queryString.trim() === "") {
|
|
27
|
+
return "SQL query is required";
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function createDatabaseClient(databaseUrl: string): postgres.Sql {
|
|
34
|
+
return postgres(databaseUrl, {
|
|
35
|
+
max: 1,
|
|
36
|
+
connect_timeout: 10,
|
|
37
|
+
idle_timeout: 20,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
async function executeQuery(
|
|
42
|
+
client: postgres.Sql,
|
|
43
|
+
queryString: string,
|
|
44
|
+
): Promise<unknown> {
|
|
45
|
+
const db = drizzle(client);
|
|
46
|
+
return await db.execute(sql.raw(queryString));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function getDatabaseErrorMessage(error: unknown): string {
|
|
50
|
+
if (!(error instanceof Error)) {
|
|
51
|
+
return "Unknown database error";
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const errorMessage = error.message;
|
|
55
|
+
|
|
56
|
+
if (errorMessage.includes("ECONNREFUSED")) {
|
|
57
|
+
return "Connection refused. Please check your database URL and ensure the database is running.";
|
|
58
|
+
}
|
|
59
|
+
if (errorMessage.includes("ENOTFOUND")) {
|
|
60
|
+
return "Database host not found. Please check your database URL.";
|
|
61
|
+
}
|
|
62
|
+
if (errorMessage.includes("authentication failed")) {
|
|
63
|
+
return "Authentication failed. Please check your database credentials.";
|
|
64
|
+
}
|
|
65
|
+
if (errorMessage.includes("does not exist")) {
|
|
66
|
+
return `Database error: ${ errorMessage }`;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return errorMessage;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
async function cleanupClient(client: postgres.Sql | null): Promise<void> {
|
|
73
|
+
if (client) {
|
|
74
|
+
try {
|
|
75
|
+
await client.end();
|
|
76
|
+
} catch {
|
|
77
|
+
// Ignore errors during cleanup
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Database query logic
|
|
84
|
+
*/
|
|
85
|
+
async function query(
|
|
86
|
+
input: DatabaseQueryInput,
|
|
87
|
+
): Promise<DatabaseQueryResult> {
|
|
88
|
+
const validationError = validateInput(input);
|
|
89
|
+
if (validationError) {
|
|
90
|
+
return { success: false, error: validationError };
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
const credentials = input.integrationId
|
|
94
|
+
? await fetchCredentials(input.integrationId)
|
|
95
|
+
: {};
|
|
96
|
+
|
|
97
|
+
const databaseUrl = credentials.DATABASE_URL;
|
|
98
|
+
|
|
99
|
+
if (!databaseUrl) {
|
|
100
|
+
return {
|
|
101
|
+
success: false,
|
|
102
|
+
error:
|
|
103
|
+
"DATABASE_URL is not configured. Please add it in Project Integrations.",
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
const queryString = (input.dbQuery || input.query) as string;
|
|
108
|
+
let client: postgres.Sql | null = null;
|
|
109
|
+
|
|
110
|
+
try {
|
|
111
|
+
client = createDatabaseClient(databaseUrl);
|
|
112
|
+
const result = await executeQuery(client, queryString);
|
|
113
|
+
await client.end();
|
|
114
|
+
|
|
115
|
+
return {
|
|
116
|
+
success: true,
|
|
117
|
+
rows: result,
|
|
118
|
+
count: Array.isArray(result) ? result.length : 0,
|
|
119
|
+
};
|
|
120
|
+
} catch (error) {
|
|
121
|
+
await cleanupClient(client);
|
|
122
|
+
return {
|
|
123
|
+
success: false,
|
|
124
|
+
error: `Database query failed: ${ getDatabaseErrorMessage(error) }`,
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Database Query Step
|
|
131
|
+
* Executes a SQL query against a PostgreSQL database
|
|
132
|
+
*/
|
|
133
|
+
// biome-ignore lint/suspicious/useAwait: workflow "use step" requires async
|
|
134
|
+
export async function databaseQueryStep(
|
|
135
|
+
input: DatabaseQueryInput,
|
|
136
|
+
): Promise<DatabaseQueryResult> {
|
|
137
|
+
"use step";
|
|
138
|
+
return withStepLogging(input, () => query(input));
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
databaseQueryStep.maxRetries = 0;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// Export the lib utilities
|
|
2
|
+
export { getErrorMessage, getErrorMessageAsync } from "../lib/utils";
|
|
3
|
+
export type { IntegrationType } from "../lib/types/integration";
|
|
4
|
+
export { fetchCredentials } from "../lib/credential-fetcher";
|
|
5
|
+
export { type StepInput, withStepLogging } from "../lib/steps/step-handler";
|
|
6
|
+
|
|
7
|
+
// Export the registry utilities
|
|
8
|
+
export {
|
|
9
|
+
registerIntegration,
|
|
10
|
+
getAllIntegrations,
|
|
11
|
+
registerCodegenTemplates,
|
|
12
|
+
getCodegenTemplate,
|
|
13
|
+
registerOutputDisplayConfigs,
|
|
14
|
+
getOutputDisplayConfig,
|
|
15
|
+
} from "./registry";
|
|
16
|
+
export type { SerializableOutputDisplayConfig, ResultComponentProps, IntegrationPlugin } from "./registry";
|
|
17
|
+
|
|
18
|
+
// Export the steps utilities
|
|
19
|
+
export type { StepImporter } from "../lib/steps/index";
|
|
20
|
+
|
|
21
|
+
// Export managed connection types, atoms, and registration for plugins that provide managed key flows
|
|
22
|
+
export {
|
|
23
|
+
registerManagedConnectionProvider,
|
|
24
|
+
managedConnectionProviderAtom,
|
|
25
|
+
managedConnectionStatusAtom,
|
|
26
|
+
managedConnectionTeamsAtom,
|
|
27
|
+
managedConnectionTeamsLoadingAtom,
|
|
28
|
+
managedConnectionTeamsFetchedAtom,
|
|
29
|
+
} from "../lib/managed-connection";
|
|
30
|
+
export type {
|
|
31
|
+
ManagedConnectionProvider,
|
|
32
|
+
ManagedConnectionApi,
|
|
33
|
+
ManagedConnectionStatus,
|
|
34
|
+
ManagedConnectionTeam,
|
|
35
|
+
ManagedConsentResponse,
|
|
36
|
+
ConsentOverlayProps,
|
|
37
|
+
} from "../lib/managed-connection";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Legacy Action Mappings
|
|
3
|
+
*
|
|
4
|
+
* This file maps old action type names to new namespaced action IDs.
|
|
5
|
+
* Used for backward compatibility with existing workflows.
|
|
6
|
+
*
|
|
7
|
+
* Format: "Old Label" -> "plugin-type/action-slug"
|
|
8
|
+
*
|
|
9
|
+
* TODO: Remove this file once all workflows have been migrated to the new format.
|
|
10
|
+
*/
|
|
11
|
+
export const LEGACY_ACTION_MAPPINGS: Record<string, string> = {};
|