@invect/core 0.0.1
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/LICENSE +21 -0
- package/README.md +103 -0
- package/dist/_virtual/_rolldown/runtime.cjs +33 -0
- package/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/actions/action-executor.cjs +166 -0
- package/dist/actions/action-executor.cjs.map +1 -0
- package/dist/actions/action-executor.d.cts +33 -0
- package/dist/actions/action-executor.d.cts.map +1 -0
- package/dist/actions/action-executor.d.ts +33 -0
- package/dist/actions/action-executor.d.ts.map +1 -0
- package/dist/actions/action-executor.js +164 -0
- package/dist/actions/action-executor.js.map +1 -0
- package/dist/actions/action-registry.cjs +236 -0
- package/dist/actions/action-registry.cjs.map +1 -0
- package/dist/actions/action-registry.d.cts +58 -0
- package/dist/actions/action-registry.d.cts.map +1 -0
- package/dist/actions/action-registry.d.ts +58 -0
- package/dist/actions/action-registry.d.ts.map +1 -0
- package/dist/actions/action-registry.js +233 -0
- package/dist/actions/action-registry.js.map +1 -0
- package/dist/actions/core/if-else.cjs +111 -0
- package/dist/actions/core/if-else.cjs.map +1 -0
- package/dist/actions/core/if-else.d.cts +1 -0
- package/dist/actions/core/if-else.d.ts +1 -0
- package/dist/actions/core/if-else.js +98 -0
- package/dist/actions/core/if-else.js.map +1 -0
- package/dist/actions/core/index.cjs +20 -0
- package/dist/actions/core/index.cjs.map +1 -0
- package/dist/actions/core/index.d.cts +7 -0
- package/dist/actions/core/index.d.cts.map +1 -0
- package/dist/actions/core/index.d.ts +7 -0
- package/dist/actions/core/index.d.ts.map +1 -0
- package/dist/actions/core/index.js +20 -0
- package/dist/actions/core/index.js.map +1 -0
- package/dist/actions/core/input.cjs +73 -0
- package/dist/actions/core/input.cjs.map +1 -0
- package/dist/actions/core/input.d.cts +1 -0
- package/dist/actions/core/input.d.ts +1 -0
- package/dist/actions/core/input.js +72 -0
- package/dist/actions/core/input.js.map +1 -0
- package/dist/actions/core/javascript.cjs +77 -0
- package/dist/actions/core/javascript.cjs.map +1 -0
- package/dist/actions/core/javascript.d.cts +1 -0
- package/dist/actions/core/javascript.d.ts +1 -0
- package/dist/actions/core/javascript.js +62 -0
- package/dist/actions/core/javascript.js.map +1 -0
- package/dist/actions/core/model.cjs +285 -0
- package/dist/actions/core/model.cjs.map +1 -0
- package/dist/actions/core/model.d.cts +1 -0
- package/dist/actions/core/model.d.ts +1 -0
- package/dist/actions/core/model.js +276 -0
- package/dist/actions/core/model.js.map +1 -0
- package/dist/actions/core/output.cjs +66 -0
- package/dist/actions/core/output.cjs.map +1 -0
- package/dist/actions/core/output.d.cts +1 -0
- package/dist/actions/core/output.d.ts +1 -0
- package/dist/actions/core/output.js +57 -0
- package/dist/actions/core/output.js.map +1 -0
- package/dist/actions/core/template-string.cjs +85 -0
- package/dist/actions/core/template-string.cjs.map +1 -0
- package/dist/actions/core/template-string.d.cts +1 -0
- package/dist/actions/core/template-string.d.ts +1 -0
- package/dist/actions/core/template-string.js +76 -0
- package/dist/actions/core/template-string.js.map +1 -0
- package/dist/actions/define-action.cjs +14 -0
- package/dist/actions/define-action.cjs.map +1 -0
- package/dist/actions/define-action.d.cts +13 -0
- package/dist/actions/define-action.d.cts.map +1 -0
- package/dist/actions/define-action.d.ts +13 -0
- package/dist/actions/define-action.d.ts.map +1 -0
- package/dist/actions/define-action.js +14 -0
- package/dist/actions/define-action.js.map +1 -0
- package/dist/actions/github/add-issue-comment.cjs +152 -0
- package/dist/actions/github/add-issue-comment.cjs.map +1 -0
- package/dist/actions/github/add-issue-comment.d.cts +1 -0
- package/dist/actions/github/add-issue-comment.d.ts +1 -0
- package/dist/actions/github/add-issue-comment.js +150 -0
- package/dist/actions/github/add-issue-comment.js.map +1 -0
- package/dist/actions/github/create-branch.cjs +201 -0
- package/dist/actions/github/create-branch.cjs.map +1 -0
- package/dist/actions/github/create-branch.d.cts +1 -0
- package/dist/actions/github/create-branch.d.ts +1 -0
- package/dist/actions/github/create-branch.js +199 -0
- package/dist/actions/github/create-branch.js.map +1 -0
- package/dist/actions/github/create-issue.cjs +190 -0
- package/dist/actions/github/create-issue.cjs.map +1 -0
- package/dist/actions/github/create-issue.d.cts +1 -0
- package/dist/actions/github/create-issue.d.ts +1 -0
- package/dist/actions/github/create-issue.js +188 -0
- package/dist/actions/github/create-issue.js.map +1 -0
- package/dist/actions/github/create-or-update-file.cjs +216 -0
- package/dist/actions/github/create-or-update-file.cjs.map +1 -0
- package/dist/actions/github/create-or-update-file.d.cts +1 -0
- package/dist/actions/github/create-or-update-file.d.ts +1 -0
- package/dist/actions/github/create-or-update-file.js +214 -0
- package/dist/actions/github/create-or-update-file.js.map +1 -0
- package/dist/actions/github/create-pull-request.cjs +206 -0
- package/dist/actions/github/create-pull-request.cjs.map +1 -0
- package/dist/actions/github/create-pull-request.d.cts +1 -0
- package/dist/actions/github/create-pull-request.d.ts +1 -0
- package/dist/actions/github/create-pull-request.js +204 -0
- package/dist/actions/github/create-pull-request.js.map +1 -0
- package/dist/actions/github/create-release.cjs +218 -0
- package/dist/actions/github/create-release.cjs.map +1 -0
- package/dist/actions/github/create-release.d.cts +1 -0
- package/dist/actions/github/create-release.d.ts +1 -0
- package/dist/actions/github/create-release.js +216 -0
- package/dist/actions/github/create-release.js.map +1 -0
- package/dist/actions/github/get-file-content.cjs +164 -0
- package/dist/actions/github/get-file-content.cjs.map +1 -0
- package/dist/actions/github/get-file-content.d.cts +1 -0
- package/dist/actions/github/get-file-content.d.ts +1 -0
- package/dist/actions/github/get-file-content.js +162 -0
- package/dist/actions/github/get-file-content.js.map +1 -0
- package/dist/actions/github/get-issue.cjs +149 -0
- package/dist/actions/github/get-issue.cjs.map +1 -0
- package/dist/actions/github/get-issue.d.cts +1 -0
- package/dist/actions/github/get-issue.d.ts +1 -0
- package/dist/actions/github/get-issue.js +147 -0
- package/dist/actions/github/get-issue.js.map +1 -0
- package/dist/actions/github/get-pull-request.cjs +160 -0
- package/dist/actions/github/get-pull-request.cjs.map +1 -0
- package/dist/actions/github/get-pull-request.d.cts +1 -0
- package/dist/actions/github/get-pull-request.d.ts +1 -0
- package/dist/actions/github/get-pull-request.js +158 -0
- package/dist/actions/github/get-pull-request.js.map +1 -0
- package/dist/actions/github/get-repo.cjs +144 -0
- package/dist/actions/github/get-repo.cjs.map +1 -0
- package/dist/actions/github/get-repo.d.cts +1 -0
- package/dist/actions/github/get-repo.d.ts +1 -0
- package/dist/actions/github/get-repo.js +142 -0
- package/dist/actions/github/get-repo.js.map +1 -0
- package/dist/actions/github/index.cjs +48 -0
- package/dist/actions/github/index.cjs.map +1 -0
- package/dist/actions/github/index.d.cts +7 -0
- package/dist/actions/github/index.d.cts.map +1 -0
- package/dist/actions/github/index.d.ts +7 -0
- package/dist/actions/github/index.d.ts.map +1 -0
- package/dist/actions/github/index.js +48 -0
- package/dist/actions/github/index.js.map +1 -0
- package/dist/actions/github/list-branches.cjs +149 -0
- package/dist/actions/github/list-branches.cjs.map +1 -0
- package/dist/actions/github/list-branches.d.cts +1 -0
- package/dist/actions/github/list-branches.d.ts +1 -0
- package/dist/actions/github/list-branches.js +147 -0
- package/dist/actions/github/list-branches.js.map +1 -0
- package/dist/actions/github/list-commits.cjs +200 -0
- package/dist/actions/github/list-commits.cjs.map +1 -0
- package/dist/actions/github/list-commits.d.cts +1 -0
- package/dist/actions/github/list-commits.d.ts +1 -0
- package/dist/actions/github/list-commits.js +198 -0
- package/dist/actions/github/list-commits.js.map +1 -0
- package/dist/actions/github/list-issue-comments.cjs +153 -0
- package/dist/actions/github/list-issue-comments.cjs.map +1 -0
- package/dist/actions/github/list-issue-comments.d.cts +1 -0
- package/dist/actions/github/list-issue-comments.d.ts +1 -0
- package/dist/actions/github/list-issue-comments.js +151 -0
- package/dist/actions/github/list-issue-comments.js.map +1 -0
- package/dist/actions/github/list-issues.cjs +244 -0
- package/dist/actions/github/list-issues.cjs.map +1 -0
- package/dist/actions/github/list-issues.d.cts +1 -0
- package/dist/actions/github/list-issues.d.ts +1 -0
- package/dist/actions/github/list-issues.js +242 -0
- package/dist/actions/github/list-issues.js.map +1 -0
- package/dist/actions/github/list-pull-requests.cjs +252 -0
- package/dist/actions/github/list-pull-requests.cjs.map +1 -0
- package/dist/actions/github/list-pull-requests.d.cts +1 -0
- package/dist/actions/github/list-pull-requests.d.ts +1 -0
- package/dist/actions/github/list-pull-requests.js +250 -0
- package/dist/actions/github/list-pull-requests.js.map +1 -0
- package/dist/actions/github/list-releases.cjs +152 -0
- package/dist/actions/github/list-releases.cjs.map +1 -0
- package/dist/actions/github/list-releases.d.cts +1 -0
- package/dist/actions/github/list-releases.d.ts +1 -0
- package/dist/actions/github/list-releases.js +150 -0
- package/dist/actions/github/list-releases.js.map +1 -0
- package/dist/actions/github/list-repos.cjs +227 -0
- package/dist/actions/github/list-repos.cjs.map +1 -0
- package/dist/actions/github/list-repos.d.cts +1 -0
- package/dist/actions/github/list-repos.d.ts +1 -0
- package/dist/actions/github/list-repos.js +225 -0
- package/dist/actions/github/list-repos.js.map +1 -0
- package/dist/actions/github/merge-pull-request.cjs +204 -0
- package/dist/actions/github/merge-pull-request.cjs.map +1 -0
- package/dist/actions/github/merge-pull-request.d.cts +1 -0
- package/dist/actions/github/merge-pull-request.d.ts +1 -0
- package/dist/actions/github/merge-pull-request.js +202 -0
- package/dist/actions/github/merge-pull-request.js.map +1 -0
- package/dist/actions/github/search-issues.cjs +200 -0
- package/dist/actions/github/search-issues.cjs.map +1 -0
- package/dist/actions/github/search-issues.d.cts +1 -0
- package/dist/actions/github/search-issues.d.ts +1 -0
- package/dist/actions/github/search-issues.js +198 -0
- package/dist/actions/github/search-issues.js.map +1 -0
- package/dist/actions/github/update-issue.cjs +243 -0
- package/dist/actions/github/update-issue.cjs.map +1 -0
- package/dist/actions/github/update-issue.d.cts +1 -0
- package/dist/actions/github/update-issue.d.ts +1 -0
- package/dist/actions/github/update-issue.js +241 -0
- package/dist/actions/github/update-issue.js.map +1 -0
- package/dist/actions/gmail/create-draft.cjs +228 -0
- package/dist/actions/gmail/create-draft.cjs.map +1 -0
- package/dist/actions/gmail/create-draft.d.cts +1 -0
- package/dist/actions/gmail/create-draft.d.ts +1 -0
- package/dist/actions/gmail/create-draft.js +226 -0
- package/dist/actions/gmail/create-draft.js.map +1 -0
- package/dist/actions/gmail/get-message.cjs +205 -0
- package/dist/actions/gmail/get-message.cjs.map +1 -0
- package/dist/actions/gmail/get-message.d.cts +1 -0
- package/dist/actions/gmail/get-message.d.ts +1 -0
- package/dist/actions/gmail/get-message.js +203 -0
- package/dist/actions/gmail/get-message.js.map +1 -0
- package/dist/actions/gmail/index.cjs +18 -0
- package/dist/actions/gmail/index.cjs.map +1 -0
- package/dist/actions/gmail/index.d.cts +7 -0
- package/dist/actions/gmail/index.d.cts.map +1 -0
- package/dist/actions/gmail/index.d.ts +7 -0
- package/dist/actions/gmail/index.d.ts.map +1 -0
- package/dist/actions/gmail/index.js +18 -0
- package/dist/actions/gmail/index.js.map +1 -0
- package/dist/actions/gmail/list-messages.cjs +195 -0
- package/dist/actions/gmail/list-messages.cjs.map +1 -0
- package/dist/actions/gmail/list-messages.d.cts +1 -0
- package/dist/actions/gmail/list-messages.d.ts +1 -0
- package/dist/actions/gmail/list-messages.js +193 -0
- package/dist/actions/gmail/list-messages.js.map +1 -0
- package/dist/actions/gmail/modify-labels.cjs +163 -0
- package/dist/actions/gmail/modify-labels.cjs.map +1 -0
- package/dist/actions/gmail/modify-labels.d.cts +1 -0
- package/dist/actions/gmail/modify-labels.d.ts +1 -0
- package/dist/actions/gmail/modify-labels.js +161 -0
- package/dist/actions/gmail/modify-labels.js.map +1 -0
- package/dist/actions/gmail/send-message.cjs +233 -0
- package/dist/actions/gmail/send-message.cjs.map +1 -0
- package/dist/actions/gmail/send-message.d.cts +1 -0
- package/dist/actions/gmail/send-message.d.ts +1 -0
- package/dist/actions/gmail/send-message.js +231 -0
- package/dist/actions/gmail/send-message.js.map +1 -0
- package/dist/actions/google-calendar/create-event.cjs +274 -0
- package/dist/actions/google-calendar/create-event.cjs.map +1 -0
- package/dist/actions/google-calendar/create-event.d.cts +1 -0
- package/dist/actions/google-calendar/create-event.d.ts +1 -0
- package/dist/actions/google-calendar/create-event.js +272 -0
- package/dist/actions/google-calendar/create-event.js.map +1 -0
- package/dist/actions/google-calendar/delete-event.cjs +145 -0
- package/dist/actions/google-calendar/delete-event.cjs.map +1 -0
- package/dist/actions/google-calendar/delete-event.d.cts +1 -0
- package/dist/actions/google-calendar/delete-event.d.ts +1 -0
- package/dist/actions/google-calendar/delete-event.js +143 -0
- package/dist/actions/google-calendar/delete-event.js.map +1 -0
- package/dist/actions/google-calendar/get-event.cjs +128 -0
- package/dist/actions/google-calendar/get-event.cjs.map +1 -0
- package/dist/actions/google-calendar/get-event.d.cts +1 -0
- package/dist/actions/google-calendar/get-event.d.ts +1 -0
- package/dist/actions/google-calendar/get-event.js +126 -0
- package/dist/actions/google-calendar/get-event.js.map +1 -0
- package/dist/actions/google-calendar/index.cjs +20 -0
- package/dist/actions/google-calendar/index.cjs.map +1 -0
- package/dist/actions/google-calendar/index.d.cts +7 -0
- package/dist/actions/google-calendar/index.d.cts.map +1 -0
- package/dist/actions/google-calendar/index.d.ts +7 -0
- package/dist/actions/google-calendar/index.d.ts.map +1 -0
- package/dist/actions/google-calendar/index.js +20 -0
- package/dist/actions/google-calendar/index.js.map +1 -0
- package/dist/actions/google-calendar/list-events.cjs +193 -0
- package/dist/actions/google-calendar/list-events.cjs.map +1 -0
- package/dist/actions/google-calendar/list-events.d.cts +1 -0
- package/dist/actions/google-calendar/list-events.d.ts +1 -0
- package/dist/actions/google-calendar/list-events.js +191 -0
- package/dist/actions/google-calendar/list-events.js.map +1 -0
- package/dist/actions/google-calendar/query-freebusy.cjs +160 -0
- package/dist/actions/google-calendar/query-freebusy.cjs.map +1 -0
- package/dist/actions/google-calendar/query-freebusy.d.cts +1 -0
- package/dist/actions/google-calendar/query-freebusy.d.ts +1 -0
- package/dist/actions/google-calendar/query-freebusy.js +158 -0
- package/dist/actions/google-calendar/query-freebusy.js.map +1 -0
- package/dist/actions/google-calendar/update-event.cjs +221 -0
- package/dist/actions/google-calendar/update-event.cjs.map +1 -0
- package/dist/actions/google-calendar/update-event.d.cts +1 -0
- package/dist/actions/google-calendar/update-event.d.ts +1 -0
- package/dist/actions/google-calendar/update-event.js +219 -0
- package/dist/actions/google-calendar/update-event.js.map +1 -0
- package/dist/actions/google-docs/append-text.cjs +138 -0
- package/dist/actions/google-docs/append-text.cjs.map +1 -0
- package/dist/actions/google-docs/append-text.d.cts +1 -0
- package/dist/actions/google-docs/append-text.d.ts +1 -0
- package/dist/actions/google-docs/append-text.js +136 -0
- package/dist/actions/google-docs/append-text.js.map +1 -0
- package/dist/actions/google-docs/create-document.cjs +138 -0
- package/dist/actions/google-docs/create-document.cjs.map +1 -0
- package/dist/actions/google-docs/create-document.d.cts +1 -0
- package/dist/actions/google-docs/create-document.d.ts +1 -0
- package/dist/actions/google-docs/create-document.js +136 -0
- package/dist/actions/google-docs/create-document.js.map +1 -0
- package/dist/actions/google-docs/get-document.cjs +118 -0
- package/dist/actions/google-docs/get-document.cjs.map +1 -0
- package/dist/actions/google-docs/get-document.d.cts +1 -0
- package/dist/actions/google-docs/get-document.d.ts +1 -0
- package/dist/actions/google-docs/get-document.js +116 -0
- package/dist/actions/google-docs/get-document.js.map +1 -0
- package/dist/actions/google-docs/index.cjs +18 -0
- package/dist/actions/google-docs/index.cjs.map +1 -0
- package/dist/actions/google-docs/index.d.cts +7 -0
- package/dist/actions/google-docs/index.d.cts.map +1 -0
- package/dist/actions/google-docs/index.d.ts +7 -0
- package/dist/actions/google-docs/index.d.ts.map +1 -0
- package/dist/actions/google-docs/index.js +18 -0
- package/dist/actions/google-docs/index.js.map +1 -0
- package/dist/actions/google-docs/insert-text.cjs +136 -0
- package/dist/actions/google-docs/insert-text.cjs.map +1 -0
- package/dist/actions/google-docs/insert-text.d.cts +1 -0
- package/dist/actions/google-docs/insert-text.d.ts +1 -0
- package/dist/actions/google-docs/insert-text.js +134 -0
- package/dist/actions/google-docs/insert-text.js.map +1 -0
- package/dist/actions/google-docs/replace-text.cjs +152 -0
- package/dist/actions/google-docs/replace-text.cjs.map +1 -0
- package/dist/actions/google-docs/replace-text.d.cts +1 -0
- package/dist/actions/google-docs/replace-text.d.ts +1 -0
- package/dist/actions/google-docs/replace-text.js +150 -0
- package/dist/actions/google-docs/replace-text.js.map +1 -0
- package/dist/actions/google-drive/create-file.cjs +155 -0
- package/dist/actions/google-drive/create-file.cjs.map +1 -0
- package/dist/actions/google-drive/create-file.d.cts +1 -0
- package/dist/actions/google-drive/create-file.d.ts +1 -0
- package/dist/actions/google-drive/create-file.js +153 -0
- package/dist/actions/google-drive/create-file.js.map +1 -0
- package/dist/actions/google-drive/create-folder.cjs +130 -0
- package/dist/actions/google-drive/create-folder.cjs.map +1 -0
- package/dist/actions/google-drive/create-folder.d.cts +1 -0
- package/dist/actions/google-drive/create-folder.d.ts +1 -0
- package/dist/actions/google-drive/create-folder.js +128 -0
- package/dist/actions/google-drive/create-folder.js.map +1 -0
- package/dist/actions/google-drive/delete-file.cjs +98 -0
- package/dist/actions/google-drive/delete-file.cjs.map +1 -0
- package/dist/actions/google-drive/delete-file.d.cts +1 -0
- package/dist/actions/google-drive/delete-file.d.ts +1 -0
- package/dist/actions/google-drive/delete-file.js +96 -0
- package/dist/actions/google-drive/delete-file.js.map +1 -0
- package/dist/actions/google-drive/get-file.cjs +103 -0
- package/dist/actions/google-drive/get-file.cjs.map +1 -0
- package/dist/actions/google-drive/get-file.d.cts +1 -0
- package/dist/actions/google-drive/get-file.d.ts +1 -0
- package/dist/actions/google-drive/get-file.js +101 -0
- package/dist/actions/google-drive/get-file.js.map +1 -0
- package/dist/actions/google-drive/index.cjs +22 -0
- package/dist/actions/google-drive/index.cjs.map +1 -0
- package/dist/actions/google-drive/index.d.cts +7 -0
- package/dist/actions/google-drive/index.d.cts.map +1 -0
- package/dist/actions/google-drive/index.d.ts +7 -0
- package/dist/actions/google-drive/index.d.ts.map +1 -0
- package/dist/actions/google-drive/index.js +22 -0
- package/dist/actions/google-drive/index.js.map +1 -0
- package/dist/actions/google-drive/list-files.cjs +156 -0
- package/dist/actions/google-drive/list-files.cjs.map +1 -0
- package/dist/actions/google-drive/list-files.d.cts +1 -0
- package/dist/actions/google-drive/list-files.d.ts +1 -0
- package/dist/actions/google-drive/list-files.js +154 -0
- package/dist/actions/google-drive/list-files.js.map +1 -0
- package/dist/actions/google-drive/search-files.cjs +138 -0
- package/dist/actions/google-drive/search-files.cjs.map +1 -0
- package/dist/actions/google-drive/search-files.d.cts +1 -0
- package/dist/actions/google-drive/search-files.d.ts +1 -0
- package/dist/actions/google-drive/search-files.js +136 -0
- package/dist/actions/google-drive/search-files.js.map +1 -0
- package/dist/actions/google-drive/share-file.cjs +226 -0
- package/dist/actions/google-drive/share-file.cjs.map +1 -0
- package/dist/actions/google-drive/share-file.d.cts +1 -0
- package/dist/actions/google-drive/share-file.d.ts +1 -0
- package/dist/actions/google-drive/share-file.js +224 -0
- package/dist/actions/google-drive/share-file.js.map +1 -0
- package/dist/actions/google-sheets/append-values.cjs +175 -0
- package/dist/actions/google-sheets/append-values.cjs.map +1 -0
- package/dist/actions/google-sheets/append-values.d.cts +1 -0
- package/dist/actions/google-sheets/append-values.d.ts +1 -0
- package/dist/actions/google-sheets/append-values.js +173 -0
- package/dist/actions/google-sheets/append-values.js.map +1 -0
- package/dist/actions/google-sheets/clear-values.cjs +118 -0
- package/dist/actions/google-sheets/clear-values.cjs.map +1 -0
- package/dist/actions/google-sheets/clear-values.d.cts +1 -0
- package/dist/actions/google-sheets/clear-values.d.ts +1 -0
- package/dist/actions/google-sheets/clear-values.js +116 -0
- package/dist/actions/google-sheets/clear-values.js.map +1 -0
- package/dist/actions/google-sheets/create-spreadsheet.cjs +128 -0
- package/dist/actions/google-sheets/create-spreadsheet.cjs.map +1 -0
- package/dist/actions/google-sheets/create-spreadsheet.d.cts +1 -0
- package/dist/actions/google-sheets/create-spreadsheet.d.ts +1 -0
- package/dist/actions/google-sheets/create-spreadsheet.js +126 -0
- package/dist/actions/google-sheets/create-spreadsheet.js.map +1 -0
- package/dist/actions/google-sheets/get-values.cjs +168 -0
- package/dist/actions/google-sheets/get-values.cjs.map +1 -0
- package/dist/actions/google-sheets/get-values.d.cts +1 -0
- package/dist/actions/google-sheets/get-values.d.ts +1 -0
- package/dist/actions/google-sheets/get-values.js +166 -0
- package/dist/actions/google-sheets/get-values.js.map +1 -0
- package/dist/actions/google-sheets/index.cjs +18 -0
- package/dist/actions/google-sheets/index.cjs.map +1 -0
- package/dist/actions/google-sheets/index.d.cts +7 -0
- package/dist/actions/google-sheets/index.d.cts.map +1 -0
- package/dist/actions/google-sheets/index.d.ts +7 -0
- package/dist/actions/google-sheets/index.d.ts.map +1 -0
- package/dist/actions/google-sheets/index.js +18 -0
- package/dist/actions/google-sheets/index.js.map +1 -0
- package/dist/actions/google-sheets/update-values.cjs +158 -0
- package/dist/actions/google-sheets/update-values.cjs.map +1 -0
- package/dist/actions/google-sheets/update-values.d.cts +1 -0
- package/dist/actions/google-sheets/update-values.d.ts +1 -0
- package/dist/actions/google-sheets/update-values.js +156 -0
- package/dist/actions/google-sheets/update-values.js.map +1 -0
- package/dist/actions/http/index.cjs +7 -0
- package/dist/actions/http/index.cjs.map +1 -0
- package/dist/actions/http/index.d.cts +7 -0
- package/dist/actions/http/index.d.cts.map +1 -0
- package/dist/actions/http/index.d.ts +7 -0
- package/dist/actions/http/index.d.ts.map +1 -0
- package/dist/actions/http/index.js +8 -0
- package/dist/actions/http/index.js.map +1 -0
- package/dist/actions/http/request.cjs +223 -0
- package/dist/actions/http/request.cjs.map +1 -0
- package/dist/actions/http/request.d.cts +1 -0
- package/dist/actions/http/request.d.ts +1 -0
- package/dist/actions/http/request.js +222 -0
- package/dist/actions/http/request.js.map +1 -0
- package/dist/actions/index.cjs +46 -0
- package/dist/actions/index.cjs.map +1 -0
- package/dist/actions/index.d.cts +27 -0
- package/dist/actions/index.d.cts.map +1 -0
- package/dist/actions/index.d.ts +27 -0
- package/dist/actions/index.d.ts.map +1 -0
- package/dist/actions/index.js +45 -0
- package/dist/actions/index.js.map +1 -0
- package/dist/actions/linear/create-issue.cjs +296 -0
- package/dist/actions/linear/create-issue.cjs.map +1 -0
- package/dist/actions/linear/create-issue.d.cts +1 -0
- package/dist/actions/linear/create-issue.d.ts +1 -0
- package/dist/actions/linear/create-issue.js +294 -0
- package/dist/actions/linear/create-issue.js.map +1 -0
- package/dist/actions/linear/index.cjs +16 -0
- package/dist/actions/linear/index.cjs.map +1 -0
- package/dist/actions/linear/index.d.cts +7 -0
- package/dist/actions/linear/index.d.cts.map +1 -0
- package/dist/actions/linear/index.d.ts +7 -0
- package/dist/actions/linear/index.d.ts.map +1 -0
- package/dist/actions/linear/index.js +16 -0
- package/dist/actions/linear/index.js.map +1 -0
- package/dist/actions/linear/list-issues.cjs +239 -0
- package/dist/actions/linear/list-issues.cjs.map +1 -0
- package/dist/actions/linear/list-issues.d.cts +1 -0
- package/dist/actions/linear/list-issues.d.ts +1 -0
- package/dist/actions/linear/list-issues.js +237 -0
- package/dist/actions/linear/list-issues.js.map +1 -0
- package/dist/actions/linear/list-teams.cjs +183 -0
- package/dist/actions/linear/list-teams.cjs.map +1 -0
- package/dist/actions/linear/list-teams.d.cts +1 -0
- package/dist/actions/linear/list-teams.d.ts +1 -0
- package/dist/actions/linear/list-teams.js +181 -0
- package/dist/actions/linear/list-teams.js.map +1 -0
- package/dist/actions/linear/update-issue.cjs +282 -0
- package/dist/actions/linear/update-issue.cjs.map +1 -0
- package/dist/actions/linear/update-issue.d.cts +1 -0
- package/dist/actions/linear/update-issue.d.ts +1 -0
- package/dist/actions/linear/update-issue.js +280 -0
- package/dist/actions/linear/update-issue.js.map +1 -0
- package/dist/actions/microsoft/get-calendar-event.cjs +139 -0
- package/dist/actions/microsoft/get-calendar-event.cjs.map +1 -0
- package/dist/actions/microsoft/get-calendar-event.d.cts +1 -0
- package/dist/actions/microsoft/get-calendar-event.d.ts +1 -0
- package/dist/actions/microsoft/get-calendar-event.js +137 -0
- package/dist/actions/microsoft/get-calendar-event.js.map +1 -0
- package/dist/actions/microsoft/get-meeting-transcript.cjs +221 -0
- package/dist/actions/microsoft/get-meeting-transcript.cjs.map +1 -0
- package/dist/actions/microsoft/get-meeting-transcript.d.cts +1 -0
- package/dist/actions/microsoft/get-meeting-transcript.d.ts +1 -0
- package/dist/actions/microsoft/get-meeting-transcript.js +219 -0
- package/dist/actions/microsoft/get-meeting-transcript.js.map +1 -0
- package/dist/actions/microsoft/get-message.cjs +173 -0
- package/dist/actions/microsoft/get-message.cjs.map +1 -0
- package/dist/actions/microsoft/get-message.d.cts +1 -0
- package/dist/actions/microsoft/get-message.d.ts +1 -0
- package/dist/actions/microsoft/get-message.js +171 -0
- package/dist/actions/microsoft/get-message.js.map +1 -0
- package/dist/actions/microsoft/index.cjs +22 -0
- package/dist/actions/microsoft/index.cjs.map +1 -0
- package/dist/actions/microsoft/index.d.cts +1 -0
- package/dist/actions/microsoft/index.d.ts +1 -0
- package/dist/actions/microsoft/index.js +22 -0
- package/dist/actions/microsoft/index.js.map +1 -0
- package/dist/actions/microsoft/list-calendar-events.cjs +202 -0
- package/dist/actions/microsoft/list-calendar-events.cjs.map +1 -0
- package/dist/actions/microsoft/list-calendar-events.d.cts +1 -0
- package/dist/actions/microsoft/list-calendar-events.d.ts +1 -0
- package/dist/actions/microsoft/list-calendar-events.js +200 -0
- package/dist/actions/microsoft/list-calendar-events.js.map +1 -0
- package/dist/actions/microsoft/list-calendars.cjs +99 -0
- package/dist/actions/microsoft/list-calendars.cjs.map +1 -0
- package/dist/actions/microsoft/list-calendars.d.cts +1 -0
- package/dist/actions/microsoft/list-calendars.d.ts +1 -0
- package/dist/actions/microsoft/list-calendars.js +97 -0
- package/dist/actions/microsoft/list-calendars.js.map +1 -0
- package/dist/actions/microsoft/list-messages.cjs +223 -0
- package/dist/actions/microsoft/list-messages.cjs.map +1 -0
- package/dist/actions/microsoft/list-messages.d.cts +1 -0
- package/dist/actions/microsoft/list-messages.d.ts +1 -0
- package/dist/actions/microsoft/list-messages.js +221 -0
- package/dist/actions/microsoft/list-messages.js.map +1 -0
- package/dist/actions/microsoft/list-online-meetings.cjs +132 -0
- package/dist/actions/microsoft/list-online-meetings.cjs.map +1 -0
- package/dist/actions/microsoft/list-online-meetings.d.cts +1 -0
- package/dist/actions/microsoft/list-online-meetings.d.ts +1 -0
- package/dist/actions/microsoft/list-online-meetings.js +130 -0
- package/dist/actions/microsoft/list-online-meetings.js.map +1 -0
- package/dist/actions/postgres/describe-table.cjs +175 -0
- package/dist/actions/postgres/describe-table.cjs.map +1 -0
- package/dist/actions/postgres/describe-table.d.cts +1 -0
- package/dist/actions/postgres/describe-table.d.ts +1 -0
- package/dist/actions/postgres/describe-table.js +165 -0
- package/dist/actions/postgres/describe-table.js.map +1 -0
- package/dist/actions/postgres/execute-query.cjs +120 -0
- package/dist/actions/postgres/execute-query.cjs.map +1 -0
- package/dist/actions/postgres/execute-query.d.cts +1 -0
- package/dist/actions/postgres/execute-query.d.ts +1 -0
- package/dist/actions/postgres/execute-query.js +110 -0
- package/dist/actions/postgres/execute-query.js.map +1 -0
- package/dist/actions/postgres/index.cjs +16 -0
- package/dist/actions/postgres/index.cjs.map +1 -0
- package/dist/actions/postgres/index.d.cts +7 -0
- package/dist/actions/postgres/index.d.cts.map +1 -0
- package/dist/actions/postgres/index.d.ts +7 -0
- package/dist/actions/postgres/index.d.ts.map +1 -0
- package/dist/actions/postgres/index.js +16 -0
- package/dist/actions/postgres/index.js.map +1 -0
- package/dist/actions/postgres/insert-rows.cjs +168 -0
- package/dist/actions/postgres/insert-rows.cjs.map +1 -0
- package/dist/actions/postgres/insert-rows.d.cts +1 -0
- package/dist/actions/postgres/insert-rows.d.ts +1 -0
- package/dist/actions/postgres/insert-rows.js +158 -0
- package/dist/actions/postgres/insert-rows.js.map +1 -0
- package/dist/actions/postgres/list-tables.cjs +133 -0
- package/dist/actions/postgres/list-tables.cjs.map +1 -0
- package/dist/actions/postgres/list-tables.d.cts +1 -0
- package/dist/actions/postgres/list-tables.d.ts +1 -0
- package/dist/actions/postgres/list-tables.js +123 -0
- package/dist/actions/postgres/list-tables.js.map +1 -0
- package/dist/actions/providers.cjs +128 -0
- package/dist/actions/providers.cjs.map +1 -0
- package/dist/actions/providers.d.cts +22 -0
- package/dist/actions/providers.d.cts.map +1 -0
- package/dist/actions/providers.d.ts +22 -0
- package/dist/actions/providers.d.ts.map +1 -0
- package/dist/actions/providers.js +116 -0
- package/dist/actions/providers.js.map +1 -0
- package/dist/actions/slack/index.cjs +9 -0
- package/dist/actions/slack/index.cjs.map +1 -0
- package/dist/actions/slack/index.d.cts +7 -0
- package/dist/actions/slack/index.d.cts.map +1 -0
- package/dist/actions/slack/index.d.ts +7 -0
- package/dist/actions/slack/index.d.ts.map +1 -0
- package/dist/actions/slack/index.js +9 -0
- package/dist/actions/slack/index.js.map +1 -0
- package/dist/actions/slack/list-channels.cjs +157 -0
- package/dist/actions/slack/list-channels.cjs.map +1 -0
- package/dist/actions/slack/list-channels.d.cts +1 -0
- package/dist/actions/slack/list-channels.d.ts +1 -0
- package/dist/actions/slack/list-channels.js +155 -0
- package/dist/actions/slack/list-channels.js.map +1 -0
- package/dist/actions/slack/send-message.cjs +157 -0
- package/dist/actions/slack/send-message.cjs.map +1 -0
- package/dist/actions/slack/send-message.d.cts +1 -0
- package/dist/actions/slack/send-message.d.ts +1 -0
- package/dist/actions/slack/send-message.js +155 -0
- package/dist/actions/slack/send-message.js.map +1 -0
- package/dist/actions/triggers/cron.cjs +95 -0
- package/dist/actions/triggers/cron.cjs.map +1 -0
- package/dist/actions/triggers/cron.d.cts +1 -0
- package/dist/actions/triggers/cron.d.ts +1 -0
- package/dist/actions/triggers/cron.js +83 -0
- package/dist/actions/triggers/cron.js.map +1 -0
- package/dist/actions/triggers/index.cjs +9 -0
- package/dist/actions/triggers/index.cjs.map +1 -0
- package/dist/actions/triggers/index.d.cts +1 -0
- package/dist/actions/triggers/index.d.ts +1 -0
- package/dist/actions/triggers/index.js +9 -0
- package/dist/actions/triggers/index.js.map +1 -0
- package/dist/actions/triggers/manual.cjs +105 -0
- package/dist/actions/triggers/manual.cjs.map +1 -0
- package/dist/actions/triggers/manual.d.cts +1 -0
- package/dist/actions/triggers/manual.d.ts +1 -0
- package/dist/actions/triggers/manual.js +103 -0
- package/dist/actions/triggers/manual.js.map +1 -0
- package/dist/actions/types.d.cts +373 -0
- package/dist/actions/types.d.cts.map +1 -0
- package/dist/actions/types.d.ts +373 -0
- package/dist/actions/types.d.ts.map +1 -0
- package/dist/database/adapter-factory.cjs +188 -0
- package/dist/database/adapter-factory.cjs.map +1 -0
- package/dist/database/adapter-factory.js +187 -0
- package/dist/database/adapter-factory.js.map +1 -0
- package/dist/database/adapter.cjs +33 -0
- package/dist/database/adapter.cjs.map +1 -0
- package/dist/database/adapter.d.cts +76 -0
- package/dist/database/adapter.d.cts.map +1 -0
- package/dist/database/adapter.d.ts +76 -0
- package/dist/database/adapter.d.ts.map +1 -0
- package/dist/database/adapter.js +33 -0
- package/dist/database/adapter.js.map +1 -0
- package/dist/database/adapters/connection-bridge.cjs +119 -0
- package/dist/database/adapters/connection-bridge.cjs.map +1 -0
- package/dist/database/adapters/connection-bridge.js +118 -0
- package/dist/database/adapters/connection-bridge.js.map +1 -0
- package/dist/database/adapters/kysely-adapter.cjs +138 -0
- package/dist/database/adapters/kysely-adapter.cjs.map +1 -0
- package/dist/database/adapters/kysely-adapter.js +137 -0
- package/dist/database/adapters/kysely-adapter.js.map +1 -0
- package/dist/database/connection.cjs +277 -0
- package/dist/database/connection.cjs.map +1 -0
- package/dist/database/connection.d.cts +115 -0
- package/dist/database/connection.d.cts.map +1 -0
- package/dist/database/connection.d.ts +115 -0
- package/dist/database/connection.d.ts.map +1 -0
- package/dist/database/connection.js +271 -0
- package/dist/database/connection.js.map +1 -0
- package/dist/database/core-schema.cjs +644 -0
- package/dist/database/core-schema.cjs.map +1 -0
- package/dist/database/core-schema.d.cts +22 -0
- package/dist/database/core-schema.d.cts.map +1 -0
- package/dist/database/core-schema.d.ts +22 -0
- package/dist/database/core-schema.d.ts.map +1 -0
- package/dist/database/core-schema.js +642 -0
- package/dist/database/core-schema.js.map +1 -0
- package/dist/database/index.cjs +4 -0
- package/dist/database/index.d.cts +10 -0
- package/dist/database/index.d.cts.map +1 -0
- package/dist/database/index.d.ts +10 -0
- package/dist/database/index.d.ts.map +1 -0
- package/dist/database/index.js +5 -0
- package/dist/database/prisma-schema-generator.cjs +219 -0
- package/dist/database/prisma-schema-generator.cjs.map +1 -0
- package/dist/database/prisma-schema-generator.d.cts +19 -0
- package/dist/database/prisma-schema-generator.d.cts.map +1 -0
- package/dist/database/prisma-schema-generator.d.ts +19 -0
- package/dist/database/prisma-schema-generator.d.ts.map +1 -0
- package/dist/database/prisma-schema-generator.js +218 -0
- package/dist/database/prisma-schema-generator.js.map +1 -0
- package/dist/database/schema-generator.cjs +576 -0
- package/dist/database/schema-generator.cjs.map +1 -0
- package/dist/database/schema-generator.d.cts +18 -0
- package/dist/database/schema-generator.d.cts.map +1 -0
- package/dist/database/schema-generator.d.ts +18 -0
- package/dist/database/schema-generator.d.ts.map +1 -0
- package/dist/database/schema-generator.js +571 -0
- package/dist/database/schema-generator.js.map +1 -0
- package/dist/database/schema-merger.cjs +153 -0
- package/dist/database/schema-merger.cjs.map +1 -0
- package/dist/database/schema-merger.d.cts +53 -0
- package/dist/database/schema-merger.d.cts.map +1 -0
- package/dist/database/schema-merger.d.ts +53 -0
- package/dist/database/schema-merger.d.ts.map +1 -0
- package/dist/database/schema-merger.js +152 -0
- package/dist/database/schema-merger.js.map +1 -0
- package/dist/database/schema-metadata.cjs +98 -0
- package/dist/database/schema-metadata.cjs.map +1 -0
- package/dist/database/schema-metadata.js +98 -0
- package/dist/database/schema-metadata.js.map +1 -0
- package/dist/database/schema-mysql.cjs +288 -0
- package/dist/database/schema-mysql.cjs.map +1 -0
- package/dist/database/schema-mysql.d.cts +2117 -0
- package/dist/database/schema-mysql.d.cts.map +1 -0
- package/dist/database/schema-mysql.d.ts +2117 -0
- package/dist/database/schema-mysql.d.ts.map +1 -0
- package/dist/database/schema-mysql.js +263 -0
- package/dist/database/schema-mysql.js.map +1 -0
- package/dist/database/schema-postgres.cjs +312 -0
- package/dist/database/schema-postgres.cjs.map +1 -0
- package/dist/database/schema-postgres.d.cts +2127 -0
- package/dist/database/schema-postgres.d.cts.map +1 -0
- package/dist/database/schema-postgres.d.ts +2127 -0
- package/dist/database/schema-postgres.d.ts.map +1 -0
- package/dist/database/schema-postgres.js +280 -0
- package/dist/database/schema-postgres.js.map +1 -0
- package/dist/database/schema-sqlite.cjs +247 -0
- package/dist/database/schema-sqlite.cjs.map +1 -0
- package/dist/database/schema-sqlite.d.cts +2294 -0
- package/dist/database/schema-sqlite.d.cts.map +1 -0
- package/dist/database/schema-sqlite.d.ts +2294 -0
- package/dist/database/schema-sqlite.d.ts.map +1 -0
- package/dist/database/schema-sqlite.js +222 -0
- package/dist/database/schema-sqlite.js.map +1 -0
- package/dist/database/schema-verification.cjs +123 -0
- package/dist/database/schema-verification.cjs.map +1 -0
- package/dist/database/schema-verification.d.cts +40 -0
- package/dist/database/schema-verification.d.cts.map +1 -0
- package/dist/database/schema-verification.d.ts +40 -0
- package/dist/database/schema-verification.d.ts.map +1 -0
- package/dist/database/schema-verification.js +123 -0
- package/dist/database/schema-verification.js.map +1 -0
- package/dist/database/schema.cjs +3 -0
- package/dist/database/schema.d.cts +3 -0
- package/dist/database/schema.d.ts +3 -0
- package/dist/database/schema.js +4 -0
- package/dist/index.cjs +199 -0
- package/dist/index.d.cts +70 -0
- package/dist/index.d.ts +70 -0
- package/dist/index.js +56 -0
- package/dist/invect-core.cjs +1688 -0
- package/dist/invect-core.cjs.map +1 -0
- package/dist/invect-core.d.cts +846 -0
- package/dist/invect-core.d.cts.map +1 -0
- package/dist/invect-core.d.ts +846 -0
- package/dist/invect-core.d.ts.map +1 -0
- package/dist/invect-core.js +1688 -0
- package/dist/invect-core.js.map +1 -0
- package/dist/nodes/agent-executor.cjs +881 -0
- package/dist/nodes/agent-executor.cjs.map +1 -0
- package/dist/nodes/agent-executor.d.cts +243 -0
- package/dist/nodes/agent-executor.d.cts.map +1 -0
- package/dist/nodes/agent-executor.d.ts +243 -0
- package/dist/nodes/agent-executor.d.ts.map +1 -0
- package/dist/nodes/agent-executor.js +877 -0
- package/dist/nodes/agent-executor.js.map +1 -0
- package/dist/nodes/base-node.cjs +174 -0
- package/dist/nodes/base-node.cjs.map +1 -0
- package/dist/nodes/base-node.d.cts +125 -0
- package/dist/nodes/base-node.d.cts.map +1 -0
- package/dist/nodes/base-node.d.ts +125 -0
- package/dist/nodes/base-node.d.ts.map +1 -0
- package/dist/nodes/base-node.js +170 -0
- package/dist/nodes/base-node.js.map +1 -0
- package/dist/nodes/executor-registry.cjs +46 -0
- package/dist/nodes/executor-registry.cjs.map +1 -0
- package/dist/nodes/executor-registry.d.cts +18 -0
- package/dist/nodes/executor-registry.d.cts.map +1 -0
- package/dist/nodes/executor-registry.d.ts +18 -0
- package/dist/nodes/executor-registry.d.ts.map +1 -0
- package/dist/nodes/executor-registry.js +46 -0
- package/dist/nodes/executor-registry.js.map +1 -0
- package/dist/nodes/index.cjs +2 -0
- package/dist/nodes/index.d.cts +3 -0
- package/dist/nodes/index.d.ts +3 -0
- package/dist/nodes/index.js +3 -0
- package/dist/services/agent-tool-executions/agent-tool-execution.service.cjs +110 -0
- package/dist/services/agent-tool-executions/agent-tool-execution.service.cjs.map +1 -0
- package/dist/services/agent-tool-executions/agent-tool-execution.service.d.cts +42 -0
- package/dist/services/agent-tool-executions/agent-tool-execution.service.d.cts.map +1 -0
- package/dist/services/agent-tool-executions/agent-tool-execution.service.d.ts +42 -0
- package/dist/services/agent-tool-executions/agent-tool-execution.service.d.ts.map +1 -0
- package/dist/services/agent-tool-executions/agent-tool-execution.service.js +110 -0
- package/dist/services/agent-tool-executions/agent-tool-execution.service.js.map +1 -0
- package/dist/services/agent-tool-executions/agent-tool-executions.model.cjs +152 -0
- package/dist/services/agent-tool-executions/agent-tool-executions.model.cjs.map +1 -0
- package/dist/services/agent-tool-executions/agent-tool-executions.model.d.cts +71 -0
- package/dist/services/agent-tool-executions/agent-tool-executions.model.d.cts.map +1 -0
- package/dist/services/agent-tool-executions/agent-tool-executions.model.d.ts +71 -0
- package/dist/services/agent-tool-executions/agent-tool-executions.model.d.ts.map +1 -0
- package/dist/services/agent-tool-executions/agent-tool-executions.model.js +152 -0
- package/dist/services/agent-tool-executions/agent-tool-executions.model.js.map +1 -0
- package/dist/services/agent-tools/agent-tool-registry.cjs +101 -0
- package/dist/services/agent-tools/agent-tool-registry.cjs.map +1 -0
- package/dist/services/agent-tools/agent-tool-registry.d.cts +51 -0
- package/dist/services/agent-tools/agent-tool-registry.d.cts.map +1 -0
- package/dist/services/agent-tools/agent-tool-registry.d.ts +51 -0
- package/dist/services/agent-tools/agent-tool-registry.d.ts.map +1 -0
- package/dist/services/agent-tools/agent-tool-registry.js +98 -0
- package/dist/services/agent-tools/agent-tool-registry.js.map +1 -0
- package/dist/services/agent-tools/builtin/index.cjs +17 -0
- package/dist/services/agent-tools/builtin/index.cjs.map +1 -0
- package/dist/services/agent-tools/builtin/index.js +17 -0
- package/dist/services/agent-tools/builtin/index.js.map +1 -0
- package/dist/services/agent-tools/builtin/json-logic-tool.cjs +73 -0
- package/dist/services/agent-tools/builtin/json-logic-tool.cjs.map +1 -0
- package/dist/services/agent-tools/builtin/json-logic-tool.js +70 -0
- package/dist/services/agent-tools/builtin/json-logic-tool.js.map +1 -0
- package/dist/services/agent-tools/builtin/math-tool.cjs +117 -0
- package/dist/services/agent-tools/builtin/math-tool.cjs.map +1 -0
- package/dist/services/agent-tools/builtin/math-tool.js +116 -0
- package/dist/services/agent-tools/builtin/math-tool.js.map +1 -0
- package/dist/services/agent-tools/index.cjs +2 -0
- package/dist/services/agent-tools/index.js +3 -0
- package/dist/services/ai/ai-types.cjs +37 -0
- package/dist/services/ai/ai-types.cjs.map +1 -0
- package/dist/services/ai/ai-types.d.cts +105 -0
- package/dist/services/ai/ai-types.d.cts.map +1 -0
- package/dist/services/ai/ai-types.d.ts +105 -0
- package/dist/services/ai/ai-types.d.ts.map +1 -0
- package/dist/services/ai/ai-types.js +35 -0
- package/dist/services/ai/ai-types.js.map +1 -0
- package/dist/services/ai/anthropic-adapter.cjs +411 -0
- package/dist/services/ai/anthropic-adapter.cjs.map +1 -0
- package/dist/services/ai/anthropic-adapter.d.cts +1 -0
- package/dist/services/ai/anthropic-adapter.d.ts +1 -0
- package/dist/services/ai/anthropic-adapter.js +409 -0
- package/dist/services/ai/anthropic-adapter.js.map +1 -0
- package/dist/services/ai/base-client.cjs +345 -0
- package/dist/services/ai/base-client.cjs.map +1 -0
- package/dist/services/ai/base-client.d.cts +138 -0
- package/dist/services/ai/base-client.d.cts.map +1 -0
- package/dist/services/ai/base-client.d.ts +138 -0
- package/dist/services/ai/base-client.d.ts.map +1 -0
- package/dist/services/ai/base-client.js +345 -0
- package/dist/services/ai/base-client.js.map +1 -0
- package/dist/services/ai/openai-adapter.cjs +460 -0
- package/dist/services/ai/openai-adapter.cjs.map +1 -0
- package/dist/services/ai/openai-adapter.d.cts +1 -0
- package/dist/services/ai/openai-adapter.d.ts +1 -0
- package/dist/services/ai/openai-adapter.js +458 -0
- package/dist/services/ai/openai-adapter.js.map +1 -0
- package/dist/services/ai/openrouter-adapter.cjs +124 -0
- package/dist/services/ai/openrouter-adapter.cjs.map +1 -0
- package/dist/services/ai/openrouter-adapter.d.cts +1 -0
- package/dist/services/ai/openrouter-adapter.d.ts +1 -0
- package/dist/services/ai/openrouter-adapter.js +122 -0
- package/dist/services/ai/openrouter-adapter.js.map +1 -0
- package/dist/services/ai/provider-adapter.cjs +72 -0
- package/dist/services/ai/provider-adapter.cjs.map +1 -0
- package/dist/services/ai/provider-adapter.d.cts +81 -0
- package/dist/services/ai/provider-adapter.d.cts.map +1 -0
- package/dist/services/ai/provider-adapter.d.ts +81 -0
- package/dist/services/ai/provider-adapter.d.ts.map +1 -0
- package/dist/services/ai/provider-adapter.js +72 -0
- package/dist/services/ai/provider-adapter.js.map +1 -0
- package/dist/services/auth/authorization.service.cjs +259 -0
- package/dist/services/auth/authorization.service.cjs.map +1 -0
- package/dist/services/auth/authorization.service.d.cts +102 -0
- package/dist/services/auth/authorization.service.d.cts.map +1 -0
- package/dist/services/auth/authorization.service.d.ts +102 -0
- package/dist/services/auth/authorization.service.d.ts.map +1 -0
- package/dist/services/auth/authorization.service.js +257 -0
- package/dist/services/auth/authorization.service.js.map +1 -0
- package/dist/services/auth/flow-access.service.cjs +259 -0
- package/dist/services/auth/flow-access.service.cjs.map +1 -0
- package/dist/services/auth/flow-access.service.d.cts +89 -0
- package/dist/services/auth/flow-access.service.d.cts.map +1 -0
- package/dist/services/auth/flow-access.service.d.ts +89 -0
- package/dist/services/auth/flow-access.service.d.ts.map +1 -0
- package/dist/services/auth/flow-access.service.js +259 -0
- package/dist/services/auth/flow-access.service.js.map +1 -0
- package/dist/services/auth/index.d.ts +2 -0
- package/dist/services/batch-jobs/batch-jobs.model.cjs +213 -0
- package/dist/services/batch-jobs/batch-jobs.model.cjs.map +1 -0
- package/dist/services/batch-jobs/batch-jobs.model.d.cts +79 -0
- package/dist/services/batch-jobs/batch-jobs.model.d.cts.map +1 -0
- package/dist/services/batch-jobs/batch-jobs.model.d.ts +79 -0
- package/dist/services/batch-jobs/batch-jobs.model.d.ts.map +1 -0
- package/dist/services/batch-jobs/batch-jobs.model.js +213 -0
- package/dist/services/batch-jobs/batch-jobs.model.js.map +1 -0
- package/dist/services/batch-jobs/batch-jobs.service.cjs +178 -0
- package/dist/services/batch-jobs/batch-jobs.service.cjs.map +1 -0
- package/dist/services/batch-jobs/batch-jobs.service.d.cts +83 -0
- package/dist/services/batch-jobs/batch-jobs.service.d.cts.map +1 -0
- package/dist/services/batch-jobs/batch-jobs.service.d.ts +83 -0
- package/dist/services/batch-jobs/batch-jobs.service.d.ts.map +1 -0
- package/dist/services/batch-jobs/batch-jobs.service.js +178 -0
- package/dist/services/batch-jobs/batch-jobs.service.js.map +1 -0
- package/dist/services/chat/chat-messages.model.cjs +143 -0
- package/dist/services/chat/chat-messages.model.cjs.map +1 -0
- package/dist/services/chat/chat-messages.model.d.cts +43 -0
- package/dist/services/chat/chat-messages.model.d.cts.map +1 -0
- package/dist/services/chat/chat-messages.model.d.ts +43 -0
- package/dist/services/chat/chat-messages.model.d.ts.map +1 -0
- package/dist/services/chat/chat-messages.model.js +142 -0
- package/dist/services/chat/chat-messages.model.js.map +1 -0
- package/dist/services/chat/chat-stream-session.cjs +181 -0
- package/dist/services/chat/chat-stream-session.cjs.map +1 -0
- package/dist/services/chat/chat-stream-session.d.cts +1 -0
- package/dist/services/chat/chat-stream-session.d.ts +1 -0
- package/dist/services/chat/chat-stream-session.js +181 -0
- package/dist/services/chat/chat-stream-session.js.map +1 -0
- package/dist/services/chat/chat-stream.service.cjs +205 -0
- package/dist/services/chat/chat-stream.service.cjs.map +1 -0
- package/dist/services/chat/chat-stream.service.d.cts +84 -0
- package/dist/services/chat/chat-stream.service.d.cts.map +1 -0
- package/dist/services/chat/chat-stream.service.d.ts +84 -0
- package/dist/services/chat/chat-stream.service.d.ts.map +1 -0
- package/dist/services/chat/chat-stream.service.js +205 -0
- package/dist/services/chat/chat-stream.service.js.map +1 -0
- package/dist/services/chat/chat-toolkit.cjs +125 -0
- package/dist/services/chat/chat-toolkit.cjs.map +1 -0
- package/dist/services/chat/chat-toolkit.d.cts +58 -0
- package/dist/services/chat/chat-toolkit.d.cts.map +1 -0
- package/dist/services/chat/chat-toolkit.d.ts +58 -0
- package/dist/services/chat/chat-toolkit.d.ts.map +1 -0
- package/dist/services/chat/chat-toolkit.js +124 -0
- package/dist/services/chat/chat-toolkit.js.map +1 -0
- package/dist/services/chat/chat-types.cjs +24 -0
- package/dist/services/chat/chat-types.cjs.map +1 -0
- package/dist/services/chat/chat-types.d.cts +134 -0
- package/dist/services/chat/chat-types.d.cts.map +1 -0
- package/dist/services/chat/chat-types.d.ts +134 -0
- package/dist/services/chat/chat-types.d.ts.map +1 -0
- package/dist/services/chat/chat-types.js +23 -0
- package/dist/services/chat/chat-types.js.map +1 -0
- package/dist/services/chat/index.cjs +5 -0
- package/dist/services/chat/index.d.cts +3 -0
- package/dist/services/chat/index.d.ts +3 -0
- package/dist/services/chat/index.js +6 -0
- package/dist/services/chat/system-prompt.cjs +223 -0
- package/dist/services/chat/system-prompt.cjs.map +1 -0
- package/dist/services/chat/system-prompt.d.cts +1 -0
- package/dist/services/chat/system-prompt.d.ts +1 -0
- package/dist/services/chat/system-prompt.js +223 -0
- package/dist/services/chat/system-prompt.js.map +1 -0
- package/dist/services/chat/tools/agent-tools.cjs +472 -0
- package/dist/services/chat/tools/agent-tools.cjs.map +1 -0
- package/dist/services/chat/tools/agent-tools.js +471 -0
- package/dist/services/chat/tools/agent-tools.js.map +1 -0
- package/dist/services/chat/tools/context-tools.cjs +252 -0
- package/dist/services/chat/tools/context-tools.cjs.map +1 -0
- package/dist/services/chat/tools/context-tools.js +251 -0
- package/dist/services/chat/tools/context-tools.js.map +1 -0
- package/dist/services/chat/tools/flow-tools.cjs +244 -0
- package/dist/services/chat/tools/flow-tools.cjs.map +1 -0
- package/dist/services/chat/tools/flow-tools.js +243 -0
- package/dist/services/chat/tools/flow-tools.js.map +1 -0
- package/dist/services/chat/tools/index.cjs +22 -0
- package/dist/services/chat/tools/index.cjs.map +1 -0
- package/dist/services/chat/tools/index.js +22 -0
- package/dist/services/chat/tools/index.js.map +1 -0
- package/dist/services/chat/tools/node-tools.cjs +323 -0
- package/dist/services/chat/tools/node-tools.cjs.map +1 -0
- package/dist/services/chat/tools/node-tools.js +322 -0
- package/dist/services/chat/tools/node-tools.js.map +1 -0
- package/dist/services/chat/tools/plan-tools.cjs +94 -0
- package/dist/services/chat/tools/plan-tools.cjs.map +1 -0
- package/dist/services/chat/tools/plan-tools.js +93 -0
- package/dist/services/chat/tools/plan-tools.js.map +1 -0
- package/dist/services/chat/tools/run-tools.cjs +121 -0
- package/dist/services/chat/tools/run-tools.cjs.map +1 -0
- package/dist/services/chat/tools/run-tools.js +120 -0
- package/dist/services/chat/tools/run-tools.js.map +1 -0
- package/dist/services/credentials/credentials.model.cjs +313 -0
- package/dist/services/credentials/credentials.model.cjs.map +1 -0
- package/dist/services/credentials/credentials.model.d.cts +27 -0
- package/dist/services/credentials/credentials.model.d.cts.map +1 -0
- package/dist/services/credentials/credentials.model.d.ts +27 -0
- package/dist/services/credentials/credentials.model.d.ts.map +1 -0
- package/dist/services/credentials/credentials.model.js +312 -0
- package/dist/services/credentials/credentials.model.js.map +1 -0
- package/dist/services/credentials/credentials.service.cjs +358 -0
- package/dist/services/credentials/credentials.service.cjs.map +1 -0
- package/dist/services/credentials/credentials.service.d.cts +156 -0
- package/dist/services/credentials/credentials.service.d.cts.map +1 -0
- package/dist/services/credentials/credentials.service.d.ts +156 -0
- package/dist/services/credentials/credentials.service.d.ts.map +1 -0
- package/dist/services/credentials/credentials.service.js +357 -0
- package/dist/services/credentials/credentials.service.js.map +1 -0
- package/dist/services/credentials/encryption.service.cjs +121 -0
- package/dist/services/credentials/encryption.service.cjs.map +1 -0
- package/dist/services/credentials/encryption.service.d.cts +70 -0
- package/dist/services/credentials/encryption.service.d.cts.map +1 -0
- package/dist/services/credentials/encryption.service.d.ts +70 -0
- package/dist/services/credentials/encryption.service.d.ts.map +1 -0
- package/dist/services/credentials/encryption.service.js +119 -0
- package/dist/services/credentials/encryption.service.js.map +1 -0
- package/dist/services/credentials/index.d.cts +4 -0
- package/dist/services/credentials/index.d.ts +4 -0
- package/dist/services/credentials/oauth2-providers.cjs +668 -0
- package/dist/services/credentials/oauth2-providers.cjs.map +1 -0
- package/dist/services/credentials/oauth2-providers.d.cts +39 -0
- package/dist/services/credentials/oauth2-providers.d.cts.map +1 -0
- package/dist/services/credentials/oauth2-providers.d.ts +39 -0
- package/dist/services/credentials/oauth2-providers.d.ts.map +1 -0
- package/dist/services/credentials/oauth2-providers.js +667 -0
- package/dist/services/credentials/oauth2-providers.js.map +1 -0
- package/dist/services/credentials/oauth2.service.cjs +252 -0
- package/dist/services/credentials/oauth2.service.cjs.map +1 -0
- package/dist/services/credentials/oauth2.service.d.cts +132 -0
- package/dist/services/credentials/oauth2.service.d.cts.map +1 -0
- package/dist/services/credentials/oauth2.service.d.ts +132 -0
- package/dist/services/credentials/oauth2.service.d.ts.map +1 -0
- package/dist/services/credentials/oauth2.service.js +251 -0
- package/dist/services/credentials/oauth2.service.js.map +1 -0
- package/dist/services/database/database.service.cjs +469 -0
- package/dist/services/database/database.service.cjs.map +1 -0
- package/dist/services/database/database.service.d.cts +162 -0
- package/dist/services/database/database.service.d.cts.map +1 -0
- package/dist/services/database/database.service.d.ts +162 -0
- package/dist/services/database/database.service.d.ts.map +1 -0
- package/dist/services/database/database.service.js +469 -0
- package/dist/services/database/database.service.js.map +1 -0
- package/dist/services/execution-event-bus.cjs +80 -0
- package/dist/services/execution-event-bus.cjs.map +1 -0
- package/dist/services/execution-event-bus.d.cts +57 -0
- package/dist/services/execution-event-bus.d.cts.map +1 -0
- package/dist/services/execution-event-bus.d.ts +57 -0
- package/dist/services/execution-event-bus.d.ts.map +1 -0
- package/dist/services/execution-event-bus.js +77 -0
- package/dist/services/execution-event-bus.js.map +1 -0
- package/dist/services/flow-orchestration/flow-run-coordinator.cjs +499 -0
- package/dist/services/flow-orchestration/flow-run-coordinator.cjs.map +1 -0
- package/dist/services/flow-orchestration/flow-run-coordinator.js +499 -0
- package/dist/services/flow-orchestration/flow-run-coordinator.js.map +1 -0
- package/dist/services/flow-orchestration/node-execution-coordinator.cjs +657 -0
- package/dist/services/flow-orchestration/node-execution-coordinator.cjs.map +1 -0
- package/dist/services/flow-orchestration/node-execution-coordinator.js +657 -0
- package/dist/services/flow-orchestration/node-execution-coordinator.js.map +1 -0
- package/dist/services/flow-orchestration.service.cjs +493 -0
- package/dist/services/flow-orchestration.service.cjs.map +1 -0
- package/dist/services/flow-orchestration.service.d.cts +149 -0
- package/dist/services/flow-orchestration.service.d.cts.map +1 -0
- package/dist/services/flow-orchestration.service.d.ts +149 -0
- package/dist/services/flow-orchestration.service.d.ts.map +1 -0
- package/dist/services/flow-orchestration.service.js +493 -0
- package/dist/services/flow-orchestration.service.js.map +1 -0
- package/dist/services/flow-runs/flow-runs.model.cjs +403 -0
- package/dist/services/flow-runs/flow-runs.model.cjs.map +1 -0
- package/dist/services/flow-runs/flow-runs.model.d.cts +113 -0
- package/dist/services/flow-runs/flow-runs.model.d.cts.map +1 -0
- package/dist/services/flow-runs/flow-runs.model.d.ts +113 -0
- package/dist/services/flow-runs/flow-runs.model.d.ts.map +1 -0
- package/dist/services/flow-runs/flow-runs.model.js +403 -0
- package/dist/services/flow-runs/flow-runs.model.js.map +1 -0
- package/dist/services/flow-runs/flow-runs.service.cjs +273 -0
- package/dist/services/flow-runs/flow-runs.service.cjs.map +1 -0
- package/dist/services/flow-runs/flow-runs.service.d.cts +129 -0
- package/dist/services/flow-runs/flow-runs.service.d.cts.map +1 -0
- package/dist/services/flow-runs/flow-runs.service.d.ts +129 -0
- package/dist/services/flow-runs/flow-runs.service.d.ts.map +1 -0
- package/dist/services/flow-runs/flow-runs.service.js +273 -0
- package/dist/services/flow-runs/flow-runs.service.js.map +1 -0
- package/dist/services/flow-validator.cjs +149 -0
- package/dist/services/flow-validator.cjs.map +1 -0
- package/dist/services/flow-validator.js +149 -0
- package/dist/services/flow-validator.js.map +1 -0
- package/dist/services/flow-versions/flow-versions.model.cjs +231 -0
- package/dist/services/flow-versions/flow-versions.model.cjs.map +1 -0
- package/dist/services/flow-versions/flow-versions.model.d.cts +55 -0
- package/dist/services/flow-versions/flow-versions.model.d.cts.map +1 -0
- package/dist/services/flow-versions/flow-versions.model.d.ts +55 -0
- package/dist/services/flow-versions/flow-versions.model.d.ts.map +1 -0
- package/dist/services/flow-versions/flow-versions.model.js +231 -0
- package/dist/services/flow-versions/flow-versions.model.js.map +1 -0
- package/dist/services/flow-versions/flow-versions.service.cjs +72 -0
- package/dist/services/flow-versions/flow-versions.service.cjs.map +1 -0
- package/dist/services/flow-versions/flow-versions.service.d.cts +63 -0
- package/dist/services/flow-versions/flow-versions.service.d.cts.map +1 -0
- package/dist/services/flow-versions/flow-versions.service.d.ts +63 -0
- package/dist/services/flow-versions/flow-versions.service.d.ts.map +1 -0
- package/dist/services/flow-versions/flow-versions.service.js +72 -0
- package/dist/services/flow-versions/flow-versions.service.js.map +1 -0
- package/dist/services/flow-versions/schemas-fresh.cjs +90 -0
- package/dist/services/flow-versions/schemas-fresh.cjs.map +1 -0
- package/dist/services/flow-versions/schemas-fresh.d.cts +201 -0
- package/dist/services/flow-versions/schemas-fresh.d.cts.map +1 -0
- package/dist/services/flow-versions/schemas-fresh.d.ts +201 -0
- package/dist/services/flow-versions/schemas-fresh.d.ts.map +1 -0
- package/dist/services/flow-versions/schemas-fresh.js +85 -0
- package/dist/services/flow-versions/schemas-fresh.js.map +1 -0
- package/dist/services/flows/flows.model.cjs +273 -0
- package/dist/services/flows/flows.model.cjs.map +1 -0
- package/dist/services/flows/flows.model.d.cts +105 -0
- package/dist/services/flows/flows.model.d.cts.map +1 -0
- package/dist/services/flows/flows.model.d.ts +105 -0
- package/dist/services/flows/flows.model.d.ts.map +1 -0
- package/dist/services/flows/flows.model.js +273 -0
- package/dist/services/flows/flows.model.js.map +1 -0
- package/dist/services/flows/flows.service.cjs +134 -0
- package/dist/services/flows/flows.service.cjs.map +1 -0
- package/dist/services/flows/flows.service.d.cts +105 -0
- package/dist/services/flows/flows.service.d.cts.map +1 -0
- package/dist/services/flows/flows.service.d.ts +105 -0
- package/dist/services/flows/flows.service.d.ts.map +1 -0
- package/dist/services/flows/flows.service.js +134 -0
- package/dist/services/flows/flows.service.js.map +1 -0
- package/dist/services/graph.service.cjs +375 -0
- package/dist/services/graph.service.cjs.map +1 -0
- package/dist/services/graph.service.d.cts +90 -0
- package/dist/services/graph.service.d.cts.map +1 -0
- package/dist/services/graph.service.d.ts +90 -0
- package/dist/services/graph.service.d.ts.map +1 -0
- package/dist/services/graph.service.js +375 -0
- package/dist/services/graph.service.js.map +1 -0
- package/dist/services/node-data.service.cjs +232 -0
- package/dist/services/node-data.service.cjs.map +1 -0
- package/dist/services/node-data.service.d.cts +119 -0
- package/dist/services/node-data.service.d.cts.map +1 -0
- package/dist/services/node-data.service.d.ts +119 -0
- package/dist/services/node-data.service.d.ts.map +1 -0
- package/dist/services/node-data.service.js +230 -0
- package/dist/services/node-data.service.js.map +1 -0
- package/dist/services/node-executions/node-execution.service.cjs +236 -0
- package/dist/services/node-executions/node-execution.service.cjs.map +1 -0
- package/dist/services/node-executions/node-execution.service.d.cts +126 -0
- package/dist/services/node-executions/node-execution.service.d.cts.map +1 -0
- package/dist/services/node-executions/node-execution.service.d.ts +126 -0
- package/dist/services/node-executions/node-execution.service.d.ts.map +1 -0
- package/dist/services/node-executions/node-execution.service.js +236 -0
- package/dist/services/node-executions/node-execution.service.js.map +1 -0
- package/dist/services/node-executions/node-executions.model.cjs +300 -0
- package/dist/services/node-executions/node-executions.model.cjs.map +1 -0
- package/dist/services/node-executions/node-executions.model.d.cts +102 -0
- package/dist/services/node-executions/node-executions.model.d.cts.map +1 -0
- package/dist/services/node-executions/node-executions.model.d.ts +102 -0
- package/dist/services/node-executions/node-executions.model.d.ts.map +1 -0
- package/dist/services/node-executions/node-executions.model.js +300 -0
- package/dist/services/node-executions/node-executions.model.js.map +1 -0
- package/dist/services/plugin-manager.cjs +205 -0
- package/dist/services/plugin-manager.cjs.map +1 -0
- package/dist/services/plugin-manager.js +205 -0
- package/dist/services/plugin-manager.js.map +1 -0
- package/dist/services/react-flow-renderer.service.cjs +236 -0
- package/dist/services/react-flow-renderer.service.cjs.map +1 -0
- package/dist/services/react-flow-renderer.service.d.cts +149 -0
- package/dist/services/react-flow-renderer.service.d.cts.map +1 -0
- package/dist/services/react-flow-renderer.service.d.ts +149 -0
- package/dist/services/react-flow-renderer.service.d.ts.map +1 -0
- package/dist/services/react-flow-renderer.service.js +235 -0
- package/dist/services/react-flow-renderer.service.js.map +1 -0
- package/dist/services/service-factory.cjs +301 -0
- package/dist/services/service-factory.cjs.map +1 -0
- package/dist/services/service-factory.d.cts +172 -0
- package/dist/services/service-factory.d.cts.map +1 -0
- package/dist/services/service-factory.d.ts +172 -0
- package/dist/services/service-factory.d.ts.map +1 -0
- package/dist/services/service-factory.js +301 -0
- package/dist/services/service-factory.js.map +1 -0
- package/dist/services/templating/index.cjs +2 -0
- package/dist/services/templating/index.d.ts +2 -0
- package/dist/services/templating/index.js +3 -0
- package/dist/services/templating/js-expression.service.cjs +148 -0
- package/dist/services/templating/js-expression.service.cjs.map +1 -0
- package/dist/services/templating/js-expression.service.d.cts +61 -0
- package/dist/services/templating/js-expression.service.d.cts.map +1 -0
- package/dist/services/templating/js-expression.service.d.ts +60 -0
- package/dist/services/templating/js-expression.service.d.ts.map +1 -0
- package/dist/services/templating/js-expression.service.js +143 -0
- package/dist/services/templating/js-expression.service.js.map +1 -0
- package/dist/services/templating/template.service.cjs +182 -0
- package/dist/services/templating/template.service.cjs.map +1 -0
- package/dist/services/templating/template.service.d.cts +62 -0
- package/dist/services/templating/template.service.d.cts.map +1 -0
- package/dist/services/templating/template.service.d.ts +62 -0
- package/dist/services/templating/template.service.d.ts.map +1 -0
- package/dist/services/templating/template.service.js +180 -0
- package/dist/services/templating/template.service.js.map +1 -0
- package/dist/services/triggers/cron-scheduler.service.cjs +141 -0
- package/dist/services/triggers/cron-scheduler.service.cjs.map +1 -0
- package/dist/services/triggers/cron-scheduler.service.d.cts +36 -0
- package/dist/services/triggers/cron-scheduler.service.d.cts.map +1 -0
- package/dist/services/triggers/cron-scheduler.service.d.ts +36 -0
- package/dist/services/triggers/cron-scheduler.service.d.ts.map +1 -0
- package/dist/services/triggers/cron-scheduler.service.js +140 -0
- package/dist/services/triggers/cron-scheduler.service.js.map +1 -0
- package/dist/services/triggers/flow-triggers.model.cjs +241 -0
- package/dist/services/triggers/flow-triggers.model.cjs.map +1 -0
- package/dist/services/triggers/flow-triggers.model.d.cts +53 -0
- package/dist/services/triggers/flow-triggers.model.d.cts.map +1 -0
- package/dist/services/triggers/flow-triggers.model.d.ts +53 -0
- package/dist/services/triggers/flow-triggers.model.d.ts.map +1 -0
- package/dist/services/triggers/flow-triggers.model.js +241 -0
- package/dist/services/triggers/flow-triggers.model.js.map +1 -0
- package/dist/services/triggers/flow-triggers.service.cjs +218 -0
- package/dist/services/triggers/flow-triggers.service.cjs.map +1 -0
- package/dist/services/triggers/flow-triggers.service.d.cts +77 -0
- package/dist/services/triggers/flow-triggers.service.d.cts.map +1 -0
- package/dist/services/triggers/flow-triggers.service.d.ts +77 -0
- package/dist/services/triggers/flow-triggers.service.d.ts.map +1 -0
- package/dist/services/triggers/flow-triggers.service.js +217 -0
- package/dist/services/triggers/flow-triggers.service.js.map +1 -0
- package/dist/services/triggers/index.cjs +3 -0
- package/dist/services/triggers/index.d.cts +4 -0
- package/dist/services/triggers/index.d.ts +4 -0
- package/dist/services/triggers/index.js +4 -0
- package/dist/services/triggers/trigger.types.d.cts +63 -0
- package/dist/services/triggers/trigger.types.d.cts.map +1 -0
- package/dist/services/triggers/trigger.types.d.ts +63 -0
- package/dist/services/triggers/trigger.types.d.ts.map +1 -0
- package/dist/types/agent-tool.types.cjs +20 -0
- package/dist/types/agent-tool.types.cjs.map +1 -0
- package/dist/types/agent-tool.types.d.cts +211 -0
- package/dist/types/agent-tool.types.d.cts.map +1 -0
- package/dist/types/agent-tool.types.d.ts +211 -0
- package/dist/types/agent-tool.types.d.ts.map +1 -0
- package/dist/types/agent-tool.types.js +18 -0
- package/dist/types/agent-tool.types.js.map +1 -0
- package/dist/types/auth.types.cjs +76 -0
- package/dist/types/auth.types.cjs.map +1 -0
- package/dist/types/auth.types.d.cts +235 -0
- package/dist/types/auth.types.d.cts.map +1 -0
- package/dist/types/auth.types.d.ts +235 -0
- package/dist/types/auth.types.d.ts.map +1 -0
- package/dist/types/auth.types.js +75 -0
- package/dist/types/auth.types.js.map +1 -0
- package/dist/types/base.cjs +25 -0
- package/dist/types/base.cjs.map +1 -0
- package/dist/types/base.d.cts +21 -0
- package/dist/types/base.d.cts.map +1 -0
- package/dist/types/base.d.ts +21 -0
- package/dist/types/base.d.ts.map +1 -0
- package/dist/types/base.js +24 -0
- package/dist/types/base.js.map +1 -0
- package/dist/types/common/errors.types.cjs +46 -0
- package/dist/types/common/errors.types.cjs.map +1 -0
- package/dist/types/common/errors.types.js +44 -0
- package/dist/types/common/errors.types.js.map +1 -0
- package/dist/types/graph-node-types.cjs +46 -0
- package/dist/types/graph-node-types.cjs.map +1 -0
- package/dist/types/graph-node-types.d.cts +32 -0
- package/dist/types/graph-node-types.d.cts.map +1 -0
- package/dist/types/graph-node-types.d.ts +32 -0
- package/dist/types/graph-node-types.d.ts.map +1 -0
- package/dist/types/graph-node-types.js +45 -0
- package/dist/types/graph-node-types.js.map +1 -0
- package/dist/types/node-config-update.types.d.cts +33 -0
- package/dist/types/node-config-update.types.d.cts.map +1 -0
- package/dist/types/node-config-update.types.d.ts +33 -0
- package/dist/types/node-config-update.types.d.ts.map +1 -0
- package/dist/types/node-definition.types.d.cts +88 -0
- package/dist/types/node-definition.types.d.cts.map +1 -0
- package/dist/types/node-definition.types.d.ts +88 -0
- package/dist/types/node-definition.types.d.ts.map +1 -0
- package/dist/types/node-execution.types.d.cts +39 -0
- package/dist/types/node-execution.types.d.cts.map +1 -0
- package/dist/types/node-execution.types.d.ts +39 -0
- package/dist/types/node-execution.types.d.ts.map +1 -0
- package/dist/types/node-io-types.cjs +19 -0
- package/dist/types/node-io-types.cjs.map +1 -0
- package/dist/types/node-io-types.d.cts +65 -0
- package/dist/types/node-io-types.d.cts.map +1 -0
- package/dist/types/node-io-types.d.ts +65 -0
- package/dist/types/node-io-types.d.ts.map +1 -0
- package/dist/types/node-io-types.js +18 -0
- package/dist/types/node-io-types.js.map +1 -0
- package/dist/types/node-output-schemas.cjs +51 -0
- package/dist/types/node-output-schemas.cjs.map +1 -0
- package/dist/types/node-output-schemas.js +50 -0
- package/dist/types/node-output-schemas.js.map +1 -0
- package/dist/types/plugin.types.d.cts +654 -0
- package/dist/types/plugin.types.d.cts.map +1 -0
- package/dist/types/plugin.types.d.ts +654 -0
- package/dist/types/plugin.types.d.ts.map +1 -0
- package/dist/types/schemas/flow/create-flow-version.schema.cjs +1 -0
- package/dist/types/schemas/flow/create-flow-version.schema.d.ts +1 -0
- package/dist/types/schemas/flow/create-flow-version.schema.js +2 -0
- package/dist/types/schemas/flow/create-flow.schema.cjs +9 -0
- package/dist/types/schemas/flow/create-flow.schema.cjs.map +1 -0
- package/dist/types/schemas/flow/create-flow.schema.d.cts +14 -0
- package/dist/types/schemas/flow/create-flow.schema.d.cts.map +1 -0
- package/dist/types/schemas/flow/create-flow.schema.d.ts +14 -0
- package/dist/types/schemas/flow/create-flow.schema.d.ts.map +1 -0
- package/dist/types/schemas/flow/create-flow.schema.js +10 -0
- package/dist/types/schemas/flow/create-flow.schema.js.map +1 -0
- package/dist/types/schemas/flow/delete-flow.schema.cjs +11 -0
- package/dist/types/schemas/flow/delete-flow.schema.cjs.map +1 -0
- package/dist/types/schemas/flow/delete-flow.schema.d.ts +1 -0
- package/dist/types/schemas/flow/delete-flow.schema.js +11 -0
- package/dist/types/schemas/flow/delete-flow.schema.js.map +1 -0
- package/dist/types/schemas/flow/flow-executions.schema.cjs +36 -0
- package/dist/types/schemas/flow/flow-executions.schema.cjs.map +1 -0
- package/dist/types/schemas/flow/flow-executions.schema.d.ts +1 -0
- package/dist/types/schemas/flow/flow-executions.schema.js +35 -0
- package/dist/types/schemas/flow/flow-executions.schema.js.map +1 -0
- package/dist/types/schemas/flow/get-flow-by-id-response.schema.cjs +7 -0
- package/dist/types/schemas/flow/get-flow-by-id-response.schema.cjs.map +1 -0
- package/dist/types/schemas/flow/get-flow-by-id-response.schema.d.ts +1 -0
- package/dist/types/schemas/flow/get-flow-by-id-response.schema.js +7 -0
- package/dist/types/schemas/flow/get-flow-by-id-response.schema.js.map +1 -0
- package/dist/types/schemas/flow/get-flow-versions-response.schema.cjs +1 -0
- package/dist/types/schemas/flow/get-flow-versions-response.schema.d.ts +1 -0
- package/dist/types/schemas/flow/get-flow-versions-response.schema.js +2 -0
- package/dist/types/schemas/flow/get-flows-response.schema.cjs +6 -0
- package/dist/types/schemas/flow/get-flows-response.schema.cjs.map +1 -0
- package/dist/types/schemas/flow/get-flows-response.schema.d.ts +1 -0
- package/dist/types/schemas/flow/get-flows-response.schema.js +7 -0
- package/dist/types/schemas/flow/get-flows-response.schema.js.map +1 -0
- package/dist/types/schemas/flow/index.cjs +9 -0
- package/dist/types/schemas/flow/index.d.ts +1 -0
- package/dist/types/schemas/flow/index.js +10 -0
- package/dist/types/schemas/flow/update-flow.schema.cjs +1 -0
- package/dist/types/schemas/flow/update-flow.schema.d.ts +1 -0
- package/dist/types/schemas/flow/update-flow.schema.js +2 -0
- package/dist/types/schemas/flow/validate-flow.schema.cjs +19 -0
- package/dist/types/schemas/flow/validate-flow.schema.cjs.map +1 -0
- package/dist/types/schemas/flow/validate-flow.schema.d.ts +1 -0
- package/dist/types/schemas/flow/validate-flow.schema.js +19 -0
- package/dist/types/schemas/flow/validate-flow.schema.js.map +1 -0
- package/dist/types/schemas/index.cjs +3 -0
- package/dist/types/schemas/index.d.ts +2 -0
- package/dist/types/schemas/index.js +4 -0
- package/dist/types/schemas/pagination-sort-filter.cjs +56 -0
- package/dist/types/schemas/pagination-sort-filter.cjs.map +1 -0
- package/dist/types/schemas/pagination-sort-filter.d.cts +38 -0
- package/dist/types/schemas/pagination-sort-filter.d.cts.map +1 -0
- package/dist/types/schemas/pagination-sort-filter.d.ts +38 -0
- package/dist/types/schemas/pagination-sort-filter.d.ts.map +1 -0
- package/dist/types/schemas/pagination-sort-filter.js +50 -0
- package/dist/types/schemas/pagination-sort-filter.js.map +1 -0
- package/dist/types/schemas-fresh/invect-config.cjs +181 -0
- package/dist/types/schemas-fresh/invect-config.cjs.map +1 -0
- package/dist/types/schemas-fresh/invect-config.d.cts +207 -0
- package/dist/types/schemas-fresh/invect-config.d.cts.map +1 -0
- package/dist/types/schemas-fresh/invect-config.d.ts +207 -0
- package/dist/types/schemas-fresh/invect-config.d.ts.map +1 -0
- package/dist/types/schemas-fresh/invect-config.js +174 -0
- package/dist/types/schemas-fresh/invect-config.js.map +1 -0
- package/dist/types/validation/common.schemas.cjs +41 -0
- package/dist/types/validation/common.schemas.cjs.map +1 -0
- package/dist/types/validation/common.schemas.js +39 -0
- package/dist/types/validation/common.schemas.js.map +1 -0
- package/dist/types/validation/flow.schemas.cjs +49 -0
- package/dist/types/validation/flow.schemas.cjs.map +1 -0
- package/dist/types/validation/flow.schemas.js +46 -0
- package/dist/types/validation/flow.schemas.js.map +1 -0
- package/dist/types/validation.cjs +49 -0
- package/dist/types/validation.cjs.map +1 -0
- package/dist/types/validation.d.cts +49 -0
- package/dist/types/validation.d.cts.map +1 -0
- package/dist/types/validation.d.ts +49 -0
- package/dist/types/validation.d.ts.map +1 -0
- package/dist/types/validation.js +48 -0
- package/dist/types/validation.js.map +1 -0
- package/dist/types-export.cjs +11 -0
- package/dist/types-export.d.cts +25 -0
- package/dist/types-export.d.ts +25 -0
- package/dist/types-export.js +5 -0
- package/dist/types-fresh.cjs +9 -0
- package/dist/types-fresh.cjs.map +1 -0
- package/dist/types-fresh.d.cts +129 -0
- package/dist/types-fresh.d.cts.map +1 -0
- package/dist/types-fresh.d.ts +129 -0
- package/dist/types-fresh.d.ts.map +1 -0
- package/dist/types-fresh.js +8 -0
- package/dist/types-fresh.js.map +1 -0
- package/dist/utils/id-generator.cjs +34 -0
- package/dist/utils/id-generator.cjs.map +1 -0
- package/dist/utils/id-generator.js +34 -0
- package/dist/utils/id-generator.js.map +1 -0
- package/dist/utils/logger.cjs +285 -0
- package/dist/utils/logger.cjs.map +1 -0
- package/dist/utils/logger.d.cts +161 -0
- package/dist/utils/logger.d.cts.map +1 -0
- package/dist/utils/logger.d.ts +160 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +282 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/node-slug.cjs +13 -0
- package/dist/utils/node-slug.cjs.map +1 -0
- package/dist/utils/node-slug.d.cts +8 -0
- package/dist/utils/node-slug.d.cts.map +1 -0
- package/dist/utils/node-slug.d.ts +8 -0
- package/dist/utils/node-slug.d.ts.map +1 -0
- package/dist/utils/node-slug.js +13 -0
- package/dist/utils/node-slug.js.map +1 -0
- package/dist/utils/provider-detection.cjs +72 -0
- package/dist/utils/provider-detection.cjs.map +1 -0
- package/dist/utils/provider-detection.js +72 -0
- package/dist/utils/provider-detection.js.map +1 -0
- package/dist/utils/url-safe-id.cjs +52 -0
- package/dist/utils/url-safe-id.cjs.map +1 -0
- package/dist/utils/url-safe-id.js +52 -0
- package/dist/utils/url-safe-id.js.map +1 -0
- package/package.json +121 -0
|
@@ -0,0 +1,846 @@
|
|
|
1
|
+
import { PaginatedResponse, QueryOptions } from "./types/schemas/pagination-sort-filter.cjs";
|
|
2
|
+
import { CreateFlowRequest } from "./types/schemas/flow/create-flow.schema.cjs";
|
|
3
|
+
import { InvectConfig, InvectDatabaseConfig } from "./types/schemas-fresh/invect-config.cjs";
|
|
4
|
+
import { CreateFlowVersionRequest } from "./services/flow-versions/schemas-fresh.cjs";
|
|
5
|
+
import { AgentPromptResult, AgentToolDefinition } from "./types/agent-tool.types.cjs";
|
|
6
|
+
import { SQLQueryResult, SubmitPromptRequest, SubmitSQLQueryRequest } from "./services/node-data.service.cjs";
|
|
7
|
+
import { SubmitAgentPromptRequest } from "./types-fresh.cjs";
|
|
8
|
+
import { NodeDefinition } from "./types/node-definition.types.cjs";
|
|
9
|
+
import { OAuth2ProviderDefinition } from "./services/credentials/oauth2-providers.cjs";
|
|
10
|
+
import { OAuth2PendingState, OAuth2StartResult } from "./services/credentials/oauth2.service.cjs";
|
|
11
|
+
import { CreateCredentialInput, Credential, CredentialFilters, CredentialsService, UpdateCredentialInput } from "./services/credentials/credentials.service.cjs";
|
|
12
|
+
import { ActionDefinition, LoadOptionsResult, ProviderDef } from "./actions/types.cjs";
|
|
13
|
+
import { AuthEvent, AuthorizationContext, AuthorizationResult, InvectIdentity, InvectPermission } from "./types/auth.types.cjs";
|
|
14
|
+
import { InvectPlugin, InvectPluginEndpoint, PluginHookRunner } from "./types/plugin.types.cjs";
|
|
15
|
+
import { FlowRun } from "./services/flow-runs/flow-runs.model.cjs";
|
|
16
|
+
import { Flow, UpdateFlowInput } from "./services/flows/flows.model.cjs";
|
|
17
|
+
import { NodeExecution } from "./services/node-executions/node-executions.model.cjs";
|
|
18
|
+
import { CreateTriggerInput, FlowTriggerRegistration, UpdateTriggerInput } from "./services/triggers/trigger.types.cjs";
|
|
19
|
+
import { ChatMessageRecord } from "./services/chat/chat-messages.model.cjs";
|
|
20
|
+
import { BatchProvider, Model } from "./services/ai/ai-types.cjs";
|
|
21
|
+
import { FlowVersion } from "./database/schema-sqlite.cjs";
|
|
22
|
+
import { DatabaseConnection } from "./database/connection.cjs";
|
|
23
|
+
import { ChatStreamEvent } from "./services/chat/chat-types.cjs";
|
|
24
|
+
import { ActionRegistry } from "./actions/action-registry.cjs";
|
|
25
|
+
import { ExecutionStreamEvent } from "./services/execution-event-bus.cjs";
|
|
26
|
+
import { ExecuteFlowOptions, FlowInputs, FlowRunResult } from "./services/flow-runs/flow-runs.service.cjs";
|
|
27
|
+
import { NodeConfigUpdateEvent, NodeConfigUpdateResponse } from "./types/node-config-update.types.cjs";
|
|
28
|
+
import { NodeExecutorRegistry } from "./nodes/executor-registry.cjs";
|
|
29
|
+
import { FlowAccessPermission, FlowAccessRecord } from "./services/auth/flow-access.service.cjs";
|
|
30
|
+
import { ReactFlowData } from "./services/react-flow-renderer.service.cjs";
|
|
31
|
+
import { ServiceFactory } from "./services/service-factory.cjs";
|
|
32
|
+
import { FlowValidationResult } from "./types/validation.cjs";
|
|
33
|
+
import { LogLevel, LoggerManager, ScopedLogger } from "./utils/logger.cjs";
|
|
34
|
+
import { AuthorizationService } from "./services/auth/authorization.service.cjs";
|
|
35
|
+
//#region src/invect-core.d.ts
|
|
36
|
+
/**
|
|
37
|
+
* Custom node configuration interface
|
|
38
|
+
*/
|
|
39
|
+
interface CustomNodeConfig {
|
|
40
|
+
nodeType: string;
|
|
41
|
+
executor: string;
|
|
42
|
+
config?: Record<string, unknown>;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Invect Core initialization status
|
|
46
|
+
*/
|
|
47
|
+
interface CoreInitializationStatus {
|
|
48
|
+
isInitialized: boolean;
|
|
49
|
+
servicesReady: boolean;
|
|
50
|
+
databaseReady: boolean;
|
|
51
|
+
errors?: string[];
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Dashboard statistics returned by getDashboardStats()
|
|
55
|
+
*/
|
|
56
|
+
interface DashboardStats {
|
|
57
|
+
/** Total number of flows */
|
|
58
|
+
totalFlows: number;
|
|
59
|
+
/** Total number of flow runs (all time) */
|
|
60
|
+
totalRuns: number;
|
|
61
|
+
/** Number of runs in the last 24 hours */
|
|
62
|
+
runsLast24h: number;
|
|
63
|
+
/** Currently active runs (RUNNING + PENDING + PAUSED_FOR_BATCH) */
|
|
64
|
+
activeRuns: number;
|
|
65
|
+
/** Success rate as percentage (0-100) */
|
|
66
|
+
successRate: number;
|
|
67
|
+
/** Number of failed runs in the last 24 hours */
|
|
68
|
+
failedRunsLast24h: number;
|
|
69
|
+
/** Run counts keyed by FlowRunStatus */
|
|
70
|
+
runsByStatus: Record<string, number>;
|
|
71
|
+
/** Most recent 10 flow runs */
|
|
72
|
+
recentRuns: FlowRun[];
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Main Invect Core class
|
|
76
|
+
*
|
|
77
|
+
* Provides a high-level API for flow operations with comprehensive lifecycle management.
|
|
78
|
+
* This class orchestrates all flow-related operations including:
|
|
79
|
+
* - Flow and flow version management
|
|
80
|
+
* - Flow execution and monitoring
|
|
81
|
+
* - Node execution tracking
|
|
82
|
+
* - AI batch operations
|
|
83
|
+
* - Testing and development utilities
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```typescript
|
|
87
|
+
* const invect = new Invect(config);
|
|
88
|
+
* await invect.initialize();
|
|
89
|
+
*
|
|
90
|
+
* const flow = await invect.createFlow({ name: "My Flow", description: "..." });
|
|
91
|
+
* const result = await invect.startFlowRun(flow.id, inputs);
|
|
92
|
+
*
|
|
93
|
+
* await invect.shutdown();
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
declare class Invect {
|
|
97
|
+
private readonly config;
|
|
98
|
+
protected serviceFactory: ServiceFactory | null;
|
|
99
|
+
protected nodeRegistry: NodeExecutorRegistry | null;
|
|
100
|
+
protected actionRegistry: ActionRegistry | null;
|
|
101
|
+
private jsExpressionService;
|
|
102
|
+
private templateService;
|
|
103
|
+
private pluginManager;
|
|
104
|
+
private initialized;
|
|
105
|
+
private loggerManager;
|
|
106
|
+
private authService;
|
|
107
|
+
/**
|
|
108
|
+
* Creates a new Invect instance
|
|
109
|
+
*
|
|
110
|
+
* @param config - Invect configuration object
|
|
111
|
+
*/
|
|
112
|
+
constructor(config: InvectConfig);
|
|
113
|
+
/**
|
|
114
|
+
* Authorize an action for an identity.
|
|
115
|
+
*
|
|
116
|
+
* This is the main entry point for authorization checks. Framework adapters
|
|
117
|
+
* (Express, NestJS, Next.js) should call this method to check permissions.
|
|
118
|
+
*
|
|
119
|
+
* @param context - Authorization context with identity, action, and optional resource
|
|
120
|
+
* @returns Authorization result with allowed flag and optional reason
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
* ```typescript
|
|
124
|
+
* const result = await invect.authorize({
|
|
125
|
+
* identity: { id: 'user_123', role: 'editor' },
|
|
126
|
+
* action: 'flow:create',
|
|
127
|
+
* });
|
|
128
|
+
*
|
|
129
|
+
* if (!result.allowed) {
|
|
130
|
+
* throw new ForbiddenError(result.reason);
|
|
131
|
+
* }
|
|
132
|
+
* ```
|
|
133
|
+
*/
|
|
134
|
+
authorize(context: AuthorizationContext): Promise<AuthorizationResult>;
|
|
135
|
+
/**
|
|
136
|
+
* Check if a specific identity has a permission.
|
|
137
|
+
* Convenience method that wraps authorize().
|
|
138
|
+
*/
|
|
139
|
+
hasPermission(identity: InvectIdentity | null, permission: InvectPermission): boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Get all permissions for an identity.
|
|
142
|
+
*/
|
|
143
|
+
getPermissions(identity: InvectIdentity | null): InvectPermission[];
|
|
144
|
+
/**
|
|
145
|
+
* Check if a plugin is registered by ID.
|
|
146
|
+
*/
|
|
147
|
+
hasPlugin(pluginId: string): boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Get a registered plugin by ID.
|
|
150
|
+
*/
|
|
151
|
+
getPlugin(pluginId: string): InvectPlugin | null;
|
|
152
|
+
/**
|
|
153
|
+
* Get all registered plugins.
|
|
154
|
+
*/
|
|
155
|
+
getPlugins(): readonly InvectPlugin[];
|
|
156
|
+
/**
|
|
157
|
+
* Get all plugin-defined API endpoints.
|
|
158
|
+
* Framework adapters use this to mount plugin routes.
|
|
159
|
+
*/
|
|
160
|
+
getPluginEndpoints(): InvectPluginEndpoint[];
|
|
161
|
+
/**
|
|
162
|
+
* Get the plugin hook runner for framework adapters.
|
|
163
|
+
* Used to run onRequest/onResponse/onAuthorize hooks.
|
|
164
|
+
*/
|
|
165
|
+
getPluginHookRunner(): PluginHookRunner;
|
|
166
|
+
/**
|
|
167
|
+
* Get the initialized host database connection.
|
|
168
|
+
* Framework adapters use this to expose a narrow database API to plugins.
|
|
169
|
+
*/
|
|
170
|
+
getDatabaseConnection(): DatabaseConnection;
|
|
171
|
+
/**
|
|
172
|
+
* Check if authentication is enabled.
|
|
173
|
+
*/
|
|
174
|
+
isAuthEnabled(): boolean;
|
|
175
|
+
/**
|
|
176
|
+
* Check if a route is public (no auth required).
|
|
177
|
+
*/
|
|
178
|
+
isPublicRoute(path: string): boolean;
|
|
179
|
+
/**
|
|
180
|
+
* Get the authorization service for advanced use cases.
|
|
181
|
+
* The service extends EventEmitter and emits auth events.
|
|
182
|
+
*/
|
|
183
|
+
getAuthService(): AuthorizationService;
|
|
184
|
+
/**
|
|
185
|
+
* Get available roles and their permissions.
|
|
186
|
+
* Useful for admin UIs to show role options.
|
|
187
|
+
*/
|
|
188
|
+
getAvailableRoles(): {
|
|
189
|
+
role: string;
|
|
190
|
+
permissions: InvectPermission[];
|
|
191
|
+
}[];
|
|
192
|
+
/**
|
|
193
|
+
* Subscribe to auth events for audit logging.
|
|
194
|
+
*
|
|
195
|
+
* @example
|
|
196
|
+
* ```typescript
|
|
197
|
+
* invect.onAuthEvent('auth:forbidden', (event) => {
|
|
198
|
+
* auditLogger.warn('Access denied', event);
|
|
199
|
+
* });
|
|
200
|
+
* ```
|
|
201
|
+
*/
|
|
202
|
+
onAuthEvent<T extends AuthEvent['type']>(event: T, listener: (event: Extract<AuthEvent, {
|
|
203
|
+
type: T;
|
|
204
|
+
}>) => void): void;
|
|
205
|
+
/**
|
|
206
|
+
* Check if flow access table is enabled.
|
|
207
|
+
*/
|
|
208
|
+
isFlowAccessTableEnabled(): boolean;
|
|
209
|
+
/**
|
|
210
|
+
* Grant access to a flow for a user or team.
|
|
211
|
+
* Requires useFlowAccessTable: true in config.
|
|
212
|
+
*
|
|
213
|
+
* @example
|
|
214
|
+
* ```typescript
|
|
215
|
+
* // Grant editor access to a user
|
|
216
|
+
* await invect.grantFlowAccess({
|
|
217
|
+
* flowId: 'flow_123',
|
|
218
|
+
* userId: 'user_456',
|
|
219
|
+
* permission: 'editor',
|
|
220
|
+
* grantedBy: currentUser.id,
|
|
221
|
+
* });
|
|
222
|
+
*
|
|
223
|
+
* // Grant viewer access to a team
|
|
224
|
+
* await invect.grantFlowAccess({
|
|
225
|
+
* flowId: 'flow_123',
|
|
226
|
+
* teamId: 'team_abc',
|
|
227
|
+
* permission: 'viewer',
|
|
228
|
+
* });
|
|
229
|
+
* ```
|
|
230
|
+
*/
|
|
231
|
+
grantFlowAccess(input: {
|
|
232
|
+
flowId: string;
|
|
233
|
+
userId?: string;
|
|
234
|
+
teamId?: string;
|
|
235
|
+
permission: 'owner' | 'editor' | 'operator' | 'viewer';
|
|
236
|
+
grantedBy?: string;
|
|
237
|
+
expiresAt?: Date | string;
|
|
238
|
+
}): Promise<FlowAccessRecord>;
|
|
239
|
+
/**
|
|
240
|
+
* Revoke a specific flow access record.
|
|
241
|
+
* Requires useFlowAccessTable: true in config.
|
|
242
|
+
*/
|
|
243
|
+
revokeFlowAccess(accessId: string): Promise<void>;
|
|
244
|
+
/**
|
|
245
|
+
* Revoke all access to a flow for a specific user or team.
|
|
246
|
+
* Requires useFlowAccessTable: true in config.
|
|
247
|
+
*/
|
|
248
|
+
revokeFlowAccessForUserOrTeam(flowId: string, userId?: string, teamId?: string): Promise<void>;
|
|
249
|
+
/**
|
|
250
|
+
* List all access records for a flow.
|
|
251
|
+
* Requires useFlowAccessTable: true in config.
|
|
252
|
+
*/
|
|
253
|
+
listFlowAccess(flowId: string): Promise<FlowAccessRecord[]>;
|
|
254
|
+
/**
|
|
255
|
+
* Get all flows a user has access to (directly or via teams).
|
|
256
|
+
* Requires useFlowAccessTable: true in config.
|
|
257
|
+
*/
|
|
258
|
+
getAccessibleFlowIds(userId: string, teamIds?: string[]): Promise<string[]>;
|
|
259
|
+
/**
|
|
260
|
+
* Check if a user has access to a flow with at least the required permission.
|
|
261
|
+
* Requires useFlowAccessTable: true in config.
|
|
262
|
+
*/
|
|
263
|
+
hasFlowAccess(flowId: string, userId: string, teamIds?: string[], requiredPermission?: 'owner' | 'editor' | 'operator' | 'viewer'): Promise<boolean>;
|
|
264
|
+
/**
|
|
265
|
+
* Get the highest permission level a user has for a flow.
|
|
266
|
+
* Requires useFlowAccessTable: true in config.
|
|
267
|
+
*/
|
|
268
|
+
getFlowPermission(flowId: string, userId: string, teamIds?: string[]): Promise<FlowAccessPermission | null>;
|
|
269
|
+
/**
|
|
270
|
+
* Get a scoped logger for a specific feature area.
|
|
271
|
+
*
|
|
272
|
+
* Scoped loggers have independent log levels that can be configured
|
|
273
|
+
* per scope via the logging.scopes configuration.
|
|
274
|
+
*
|
|
275
|
+
* @param scope - The scope/feature area (use LogScope constants)
|
|
276
|
+
* @param context - Optional additional context (e.g., class name)
|
|
277
|
+
* @returns A ScopedLogger instance
|
|
278
|
+
*
|
|
279
|
+
* @example
|
|
280
|
+
* ```typescript
|
|
281
|
+
* const logger = invect.getLogger('execution', 'MyService');
|
|
282
|
+
* logger.debug('Starting execution'); // Only logs if execution scope is 'debug'
|
|
283
|
+
* ```
|
|
284
|
+
*/
|
|
285
|
+
getLogger(scope: string, context?: string): ScopedLogger;
|
|
286
|
+
/**
|
|
287
|
+
* Get the logger manager for advanced logging configuration
|
|
288
|
+
*/
|
|
289
|
+
getLoggerManager(): LoggerManager;
|
|
290
|
+
/**
|
|
291
|
+
* Update the log level for a specific scope at runtime
|
|
292
|
+
*
|
|
293
|
+
* @example
|
|
294
|
+
* ```typescript
|
|
295
|
+
* // Enable debug logging for execution during troubleshooting
|
|
296
|
+
* invect.setLogLevel('execution', 'debug');
|
|
297
|
+
* ```
|
|
298
|
+
*/
|
|
299
|
+
setLogLevel(scope: string, level: LogLevel): void;
|
|
300
|
+
/**
|
|
301
|
+
* Initialize Invect Core
|
|
302
|
+
*/
|
|
303
|
+
initialize(): Promise<void>;
|
|
304
|
+
/**
|
|
305
|
+
* Check if we're in a build-time environment where database connections should be avoided
|
|
306
|
+
*/
|
|
307
|
+
private isBuildTime;
|
|
308
|
+
/**
|
|
309
|
+
* Gracefully shutdown Invect Core.
|
|
310
|
+
* Marks any in-progress flow runs as FAILED before closing services.
|
|
311
|
+
*/
|
|
312
|
+
shutdown(): Promise<void>;
|
|
313
|
+
/**
|
|
314
|
+
* Check if core is initialized
|
|
315
|
+
*/
|
|
316
|
+
isInitialized(): boolean;
|
|
317
|
+
/**
|
|
318
|
+
* Run health check on all services
|
|
319
|
+
*/
|
|
320
|
+
healthCheck(): Promise<{
|
|
321
|
+
[serviceName: string]: boolean;
|
|
322
|
+
}>;
|
|
323
|
+
/**
|
|
324
|
+
* Create a new flow
|
|
325
|
+
*/
|
|
326
|
+
createFlow(flowData: CreateFlowRequest): Promise<Flow>;
|
|
327
|
+
/**
|
|
328
|
+
* Get all flows with optional filtering, sorting, and pagination
|
|
329
|
+
*/
|
|
330
|
+
listFlows(options?: QueryOptions<Flow>): Promise<PaginatedResponse<Flow>>;
|
|
331
|
+
/**
|
|
332
|
+
* Get flow by ID
|
|
333
|
+
*/
|
|
334
|
+
getFlow(flowId: string): Promise<Flow>;
|
|
335
|
+
/**
|
|
336
|
+
* Update an existing flow
|
|
337
|
+
*/
|
|
338
|
+
updateFlow(flowId: string, updateData: UpdateFlowInput): Promise<Flow>;
|
|
339
|
+
/**
|
|
340
|
+
* Delete a flow
|
|
341
|
+
*/
|
|
342
|
+
deleteFlow(flowId: string): Promise<void>;
|
|
343
|
+
/**
|
|
344
|
+
* Validate flow definition
|
|
345
|
+
*/
|
|
346
|
+
validateFlowDefinition(flowId: string, flowDefinition: unknown): Promise<FlowValidationResult>;
|
|
347
|
+
/**
|
|
348
|
+
* Create flow version and sync trigger registrations (D3: sync on publish)
|
|
349
|
+
*/
|
|
350
|
+
createFlowVersion(flowId: string, versionData: CreateFlowVersionRequest): Promise<FlowVersion>;
|
|
351
|
+
/**
|
|
352
|
+
* Get flow versions with optional filtering, sorting, and pagination
|
|
353
|
+
*/
|
|
354
|
+
listFlowVersions(flowId: string, options?: QueryOptions<FlowVersion>): Promise<PaginatedResponse<FlowVersion>>;
|
|
355
|
+
/**
|
|
356
|
+
* Get specific flow version by version number or 'latest'
|
|
357
|
+
*/
|
|
358
|
+
getFlowVersion(flowId: string, version: string | number | 'latest'): Promise<FlowVersion | null>;
|
|
359
|
+
/**
|
|
360
|
+
* Execute a flow (synchronous - waits for completion)
|
|
361
|
+
*/
|
|
362
|
+
startFlowRun(flowId: string, inputs?: FlowInputs, options?: ExecuteFlowOptions): Promise<FlowRunResult>;
|
|
363
|
+
/**
|
|
364
|
+
* Start a flow execution asynchronously - returns immediately with flow run ID.
|
|
365
|
+
* The flow executes in the background. Use this for UI-initiated runs where
|
|
366
|
+
* you want to redirect the user immediately without waiting for completion.
|
|
367
|
+
*/
|
|
368
|
+
startFlowRunAsync(flowId: string, inputs?: FlowInputs, options?: ExecuteFlowOptions): Promise<FlowRunResult>;
|
|
369
|
+
/**
|
|
370
|
+
* Execute a flow up to a specific target node.
|
|
371
|
+
* Only executes the upstream nodes required to produce output for the target node.
|
|
372
|
+
* This is useful for testing a specific node with its real upstream dependencies.
|
|
373
|
+
*
|
|
374
|
+
* @param flowId - The flow to execute
|
|
375
|
+
* @param targetNodeId - The node to execute up to (this node will also be executed)
|
|
376
|
+
* @param inputs - Flow-level inputs
|
|
377
|
+
* @param options - Execution options (version, batch processing, etc.)
|
|
378
|
+
* @returns The flow run result with the target node's output
|
|
379
|
+
*/
|
|
380
|
+
executeFlowToNode(flowId: string, targetNodeId: string, inputs?: FlowInputs, options?: ExecuteFlowOptions): Promise<FlowRunResult>;
|
|
381
|
+
/**
|
|
382
|
+
* Resume execution
|
|
383
|
+
*/
|
|
384
|
+
resumeExecution(executionId: string): Promise<{
|
|
385
|
+
message: string;
|
|
386
|
+
timestamp: string;
|
|
387
|
+
}>;
|
|
388
|
+
/**
|
|
389
|
+
* Get all Flow Runs
|
|
390
|
+
*/
|
|
391
|
+
listFlowRuns(options?: QueryOptions<FlowRun>): Promise<PaginatedResponse<FlowRun>>;
|
|
392
|
+
/**
|
|
393
|
+
* Get flow executions for a specific flow
|
|
394
|
+
*/
|
|
395
|
+
listFlowRunsByFlowId(flowId: string): Promise<PaginatedResponse<FlowRun>>;
|
|
396
|
+
/**
|
|
397
|
+
* Get a specific flow run by ID
|
|
398
|
+
*/
|
|
399
|
+
getFlowRunById(flowRunId: string): Promise<FlowRun>;
|
|
400
|
+
/**
|
|
401
|
+
* Cancel a flow run
|
|
402
|
+
*/
|
|
403
|
+
cancelFlowRun(flowRunId: string): Promise<{
|
|
404
|
+
message: string;
|
|
405
|
+
timestamp: string;
|
|
406
|
+
}>;
|
|
407
|
+
/**
|
|
408
|
+
* Pause a flow run
|
|
409
|
+
*/
|
|
410
|
+
pauseFlowRun(flowRunId: string, reason?: string): Promise<{
|
|
411
|
+
message: string;
|
|
412
|
+
timestamp: string;
|
|
413
|
+
}>;
|
|
414
|
+
/**
|
|
415
|
+
* Get dashboard statistics: flow counts, run counts by status, recent activity.
|
|
416
|
+
*/
|
|
417
|
+
getDashboardStats(): Promise<DashboardStats>;
|
|
418
|
+
/**
|
|
419
|
+
* Create a credential
|
|
420
|
+
*/
|
|
421
|
+
createCredential(input: CreateCredentialInput): Promise<Credential>;
|
|
422
|
+
/**
|
|
423
|
+
* List credentials with optional filters
|
|
424
|
+
*/
|
|
425
|
+
listCredentials(filters?: CredentialFilters): Promise<Array<Omit<Credential, 'config'>>>;
|
|
426
|
+
/**
|
|
427
|
+
* Retrieve a credential by id
|
|
428
|
+
*/
|
|
429
|
+
getCredential(id: string): Promise<Credential>;
|
|
430
|
+
/**
|
|
431
|
+
* Update credential
|
|
432
|
+
*/
|
|
433
|
+
updateCredential(id: string, input: UpdateCredentialInput): Promise<Credential>;
|
|
434
|
+
/**
|
|
435
|
+
* Delete credential
|
|
436
|
+
*/
|
|
437
|
+
deleteCredential(id: string): Promise<void>;
|
|
438
|
+
/**
|
|
439
|
+
* Test credential validity
|
|
440
|
+
*/
|
|
441
|
+
testCredential(id: string): Promise<{
|
|
442
|
+
success: boolean;
|
|
443
|
+
error?: string;
|
|
444
|
+
}>;
|
|
445
|
+
/**
|
|
446
|
+
* Update credential last used timestamp
|
|
447
|
+
*/
|
|
448
|
+
updateCredentialLastUsed(id: string): Promise<void>;
|
|
449
|
+
/**
|
|
450
|
+
* Get expiring credentials helper
|
|
451
|
+
*/
|
|
452
|
+
getExpiringCredentials(daysUntilExpiry?: number): Promise<Credential[]>;
|
|
453
|
+
/**
|
|
454
|
+
* Get node executions by flow run ID
|
|
455
|
+
*/
|
|
456
|
+
getNodeExecutionsByRunId(flowRunId: string): Promise<NodeExecution[]>;
|
|
457
|
+
/**
|
|
458
|
+
* Get all node executions with optional filtering, sorting, and pagination
|
|
459
|
+
*/
|
|
460
|
+
listNodeExecutions(options?: QueryOptions<NodeExecution>): Promise<PaginatedResponse<NodeExecution>>;
|
|
461
|
+
/**
|
|
462
|
+
* Create an async iterable that yields execution events for a flow run.
|
|
463
|
+
*
|
|
464
|
+
* The first event is always a "snapshot" with the current FlowRun and all
|
|
465
|
+
* NodeExecutions. Subsequent events are incremental updates. The stream
|
|
466
|
+
* ends automatically when the flow run reaches a terminal status.
|
|
467
|
+
*
|
|
468
|
+
* Consumers (Express/NestJS/Next.js adapters) iterate this with
|
|
469
|
+
* `for await (const event of stream)` and write SSE frames.
|
|
470
|
+
*/
|
|
471
|
+
createFlowRunEventStream(flowRunId: string): AsyncGenerator<ExecutionStreamEvent, void, undefined>;
|
|
472
|
+
/**
|
|
473
|
+
* Start batch polling for automatic batch completion handling
|
|
474
|
+
*/
|
|
475
|
+
startBatchPolling(): Promise<void>;
|
|
476
|
+
/**
|
|
477
|
+
* Stop batch polling
|
|
478
|
+
*/
|
|
479
|
+
stopBatchPolling(): Promise<void>;
|
|
480
|
+
/**
|
|
481
|
+
* Start the cron scheduler for automatic cron trigger execution.
|
|
482
|
+
* Call after initialize() — typically in your server startup code.
|
|
483
|
+
* If cronEnabled is false in InvectConfig.triggers, this is a no-op.
|
|
484
|
+
*/
|
|
485
|
+
startCronScheduler(): Promise<void>;
|
|
486
|
+
/**
|
|
487
|
+
* Stop the cron scheduler. Call during graceful shutdown.
|
|
488
|
+
*/
|
|
489
|
+
stopCronScheduler(): void;
|
|
490
|
+
/**
|
|
491
|
+
* Refresh cron jobs from the database (e.g. after trigger registrations change).
|
|
492
|
+
*/
|
|
493
|
+
refreshCronScheduler(): Promise<void>;
|
|
494
|
+
/**
|
|
495
|
+
* Execute a SQL query for node testing purposes
|
|
496
|
+
*/
|
|
497
|
+
executeSqlQuery(request: SubmitSQLQueryRequest): Promise<SQLQueryResult>;
|
|
498
|
+
/**
|
|
499
|
+
* Test a JS expression in the QuickJS sandbox.
|
|
500
|
+
* Used by the frontend data mapper preview.
|
|
501
|
+
*/
|
|
502
|
+
testJsExpression(request: {
|
|
503
|
+
expression: string;
|
|
504
|
+
context: Record<string, unknown>;
|
|
505
|
+
}): Promise<{
|
|
506
|
+
success: boolean;
|
|
507
|
+
result?: unknown;
|
|
508
|
+
error?: string;
|
|
509
|
+
}>;
|
|
510
|
+
/**
|
|
511
|
+
* Test a mapper expression — returns the result plus metadata about how
|
|
512
|
+
* the node would behave (iterate vs single, item count).
|
|
513
|
+
* Used by the frontend Data Mapper pane live preview.
|
|
514
|
+
*/
|
|
515
|
+
testMapper(request: {
|
|
516
|
+
expression: string;
|
|
517
|
+
incomingData: Record<string, unknown>;
|
|
518
|
+
mode?: 'auto' | 'iterate' | 'reshape';
|
|
519
|
+
}): Promise<{
|
|
520
|
+
success: boolean;
|
|
521
|
+
result?: unknown;
|
|
522
|
+
resultType?: 'array' | 'object' | 'primitive';
|
|
523
|
+
itemCount?: number;
|
|
524
|
+
error?: string;
|
|
525
|
+
}>;
|
|
526
|
+
/**
|
|
527
|
+
* Test a model prompt
|
|
528
|
+
*/
|
|
529
|
+
testModelPrompt(request: SubmitPromptRequest): Promise<unknown>;
|
|
530
|
+
/**
|
|
531
|
+
* Get available AI models
|
|
532
|
+
*/
|
|
533
|
+
getAvailableModels(): Promise<unknown>;
|
|
534
|
+
/**
|
|
535
|
+
* Get models for a specific provider
|
|
536
|
+
*/
|
|
537
|
+
getModelsForProvider(provider: BatchProvider): Promise<{
|
|
538
|
+
provider: BatchProvider;
|
|
539
|
+
models: Model[];
|
|
540
|
+
defaultModel: string;
|
|
541
|
+
}>;
|
|
542
|
+
/**
|
|
543
|
+
* Get models for a credential by detecting its provider
|
|
544
|
+
*/
|
|
545
|
+
getModelsForCredential(credentialId: string): Promise<{
|
|
546
|
+
provider: BatchProvider;
|
|
547
|
+
models: Model[];
|
|
548
|
+
defaultModel: string;
|
|
549
|
+
}>;
|
|
550
|
+
/**
|
|
551
|
+
* Get available databases
|
|
552
|
+
*/
|
|
553
|
+
getAvailableDatabases(): InvectDatabaseConfig[];
|
|
554
|
+
/**
|
|
555
|
+
* Get definitions for all available nodes.
|
|
556
|
+
* Returns both legacy node definitions and action-based node definitions.
|
|
557
|
+
*/
|
|
558
|
+
getAvailableNodes(): NodeDefinition[];
|
|
559
|
+
/** Get the TemplateService or throw if not initialized. */
|
|
560
|
+
private getTemplateServiceOrThrow;
|
|
561
|
+
/**
|
|
562
|
+
* Resolve {{ expression }} templates in params using the provided context.
|
|
563
|
+
* Used for test node execution where we need to resolve templates before running.
|
|
564
|
+
*
|
|
565
|
+
* @param params - The node parameters to resolve
|
|
566
|
+
* @param context - The context to use for template resolution
|
|
567
|
+
* @param skipKeys - Keys to skip (their values should not be resolved as templates)
|
|
568
|
+
*/
|
|
569
|
+
private resolveTemplateParams;
|
|
570
|
+
/**
|
|
571
|
+
* Test/execute a single node with the provided params and input data.
|
|
572
|
+
* This is useful for testing node configuration in isolation.
|
|
573
|
+
*
|
|
574
|
+
* Templates in params (e.g., {{ some_input.data.variables.output.value }})
|
|
575
|
+
* are resolved using the inputData as context before execution.
|
|
576
|
+
*
|
|
577
|
+
* @param nodeType - The type of node to execute
|
|
578
|
+
* @param params - The node's configuration parameters (may contain {{ }} templates)
|
|
579
|
+
* @param inputData - Mock input data used both as node inputs and as template context
|
|
580
|
+
* @returns The node execution result
|
|
581
|
+
*/
|
|
582
|
+
testNode(nodeType: string, params: Record<string, unknown>, inputData?: Record<string, unknown>): Promise<{
|
|
583
|
+
success: boolean;
|
|
584
|
+
output?: Record<string, unknown>;
|
|
585
|
+
error?: string;
|
|
586
|
+
}>;
|
|
587
|
+
/**
|
|
588
|
+
* Handle node configuration update events coming from the frontend.
|
|
589
|
+
* Supports both legacy executors (AGENT) and action-based nodes.
|
|
590
|
+
*/
|
|
591
|
+
handleNodeConfigUpdate(event: NodeConfigUpdateEvent): Promise<NodeConfigUpdateResponse>;
|
|
592
|
+
/**
|
|
593
|
+
* Resolve dynamic options for a specific field on an action.
|
|
594
|
+
*
|
|
595
|
+
* Called by: `GET /actions/:actionId/fields/:fieldName/options?deps={...}`
|
|
596
|
+
*
|
|
597
|
+
* The action's `ParamField.loadOptions.handler` is invoked server-side with
|
|
598
|
+
* the dependency values and returns an options list + optional default value.
|
|
599
|
+
*/
|
|
600
|
+
resolveFieldOptions(actionId: string, fieldName: string, dependencyValues: Record<string, unknown>): Promise<LoadOptionsResult>;
|
|
601
|
+
/**
|
|
602
|
+
* Render flow to React Flow format
|
|
603
|
+
*/
|
|
604
|
+
renderToReactFlow(flowId: string, options?: {
|
|
605
|
+
version?: string | number | 'latest';
|
|
606
|
+
flowRunId?: string;
|
|
607
|
+
}): Promise<ReactFlowData>;
|
|
608
|
+
/**
|
|
609
|
+
* Get flow service with initialization check
|
|
610
|
+
*/
|
|
611
|
+
private get flowService();
|
|
612
|
+
/**
|
|
613
|
+
* Get flow versions service with initialization check
|
|
614
|
+
*/
|
|
615
|
+
private get flowVersionsService();
|
|
616
|
+
/**
|
|
617
|
+
* Get flow runs service with initialization check
|
|
618
|
+
*/
|
|
619
|
+
private get flowRunsService();
|
|
620
|
+
/**
|
|
621
|
+
* Get orchestration service with initialization check
|
|
622
|
+
*/
|
|
623
|
+
private get orchestrationService();
|
|
624
|
+
/**
|
|
625
|
+
* Get node executions service with initialization check
|
|
626
|
+
*/
|
|
627
|
+
private get nodeExecutionsService();
|
|
628
|
+
/**
|
|
629
|
+
* Get node data service with initialization check
|
|
630
|
+
*/
|
|
631
|
+
private get nodeDataService();
|
|
632
|
+
/**
|
|
633
|
+
* Get base AI client with initialization check
|
|
634
|
+
*/
|
|
635
|
+
private get baseAIClient();
|
|
636
|
+
/**
|
|
637
|
+
* Ensure a provider adapter is registered for the given credential.
|
|
638
|
+
* Resolves the credential, extracts the API key, detects the provider,
|
|
639
|
+
* and calls registerAdapter() if not already present.
|
|
640
|
+
*/
|
|
641
|
+
private ensureAdapterForCredential;
|
|
642
|
+
/**
|
|
643
|
+
* Get React Flow renderer service with initialization check
|
|
644
|
+
*/
|
|
645
|
+
private get reactFlowRendererService();
|
|
646
|
+
/**
|
|
647
|
+
* Get credentials service with initialization check
|
|
648
|
+
*/
|
|
649
|
+
private get credentialsService();
|
|
650
|
+
/**
|
|
651
|
+
* Get triggers service with initialization check
|
|
652
|
+
*/
|
|
653
|
+
private get triggersService();
|
|
654
|
+
/**
|
|
655
|
+
* Get credentials service (public accessor)
|
|
656
|
+
*/
|
|
657
|
+
getCredentialsService(): CredentialsService;
|
|
658
|
+
/**
|
|
659
|
+
* Ensure default credentials exist.
|
|
660
|
+
* Runs once after initialization completes — skips any that already exist by name.
|
|
661
|
+
*/
|
|
662
|
+
private ensureDefaultCredentials;
|
|
663
|
+
/**
|
|
664
|
+
* Initialize services
|
|
665
|
+
*/
|
|
666
|
+
private initializeServices;
|
|
667
|
+
/**
|
|
668
|
+
* Initialize node registry with tool registry
|
|
669
|
+
*/
|
|
670
|
+
private initializeNodes;
|
|
671
|
+
/**
|
|
672
|
+
* Register all actions in the ActionRegistry as agent tools.
|
|
673
|
+
*/
|
|
674
|
+
private registerActionsAsTools;
|
|
675
|
+
/**
|
|
676
|
+
* Ensure core is initialized
|
|
677
|
+
*/
|
|
678
|
+
private ensureInitialized;
|
|
679
|
+
/**
|
|
680
|
+
* Get the action registry.
|
|
681
|
+
*/
|
|
682
|
+
getActionRegistry(): ActionRegistry;
|
|
683
|
+
/**
|
|
684
|
+
* Register an action at runtime (e.g. from a plugin or external package).
|
|
685
|
+
*/
|
|
686
|
+
registerAction(action: ActionDefinition): void;
|
|
687
|
+
/**
|
|
688
|
+
* Get all registered providers.
|
|
689
|
+
*/
|
|
690
|
+
getProviders(): ProviderDef[];
|
|
691
|
+
/**
|
|
692
|
+
* Get all actions for a specific provider.
|
|
693
|
+
*/
|
|
694
|
+
getActionsForProvider(providerId: string): ActionDefinition[];
|
|
695
|
+
/**
|
|
696
|
+
* Get all available agent tools
|
|
697
|
+
*/
|
|
698
|
+
getAgentTools(): AgentToolDefinition[];
|
|
699
|
+
/**
|
|
700
|
+
* Execute agent prompt with tools
|
|
701
|
+
*/
|
|
702
|
+
submitAgentPrompt(request: SubmitAgentPromptRequest): Promise<AgentPromptResult | {
|
|
703
|
+
type: 'batch_submitted';
|
|
704
|
+
batchJobId: string;
|
|
705
|
+
nodeId: string;
|
|
706
|
+
flowRunId: string;
|
|
707
|
+
}>;
|
|
708
|
+
/**
|
|
709
|
+
* Create a streaming chat session.
|
|
710
|
+
*
|
|
711
|
+
* Returns an AsyncGenerator<ChatStreamEvent> that framework adapters
|
|
712
|
+
* serialize to SSE. The generator handles the full LLM loop including
|
|
713
|
+
* tool calls.
|
|
714
|
+
*
|
|
715
|
+
* @example
|
|
716
|
+
* ```typescript
|
|
717
|
+
* const stream = await invect.createChatStream({
|
|
718
|
+
* messages: [{ role: 'user', content: 'Add a Gmail node' }],
|
|
719
|
+
* context: { flowId: 'flow_123' },
|
|
720
|
+
* });
|
|
721
|
+
*
|
|
722
|
+
* for await (const event of stream) {
|
|
723
|
+
* // event.type: 'text_delta' | 'tool_call_start' | 'tool_call_result' | 'done' | 'error'
|
|
724
|
+
* }
|
|
725
|
+
* ```
|
|
726
|
+
*/
|
|
727
|
+
createChatStream(options: {
|
|
728
|
+
messages: Array<{
|
|
729
|
+
role: string;
|
|
730
|
+
content: string;
|
|
731
|
+
toolCalls?: unknown[];
|
|
732
|
+
toolCallId?: string;
|
|
733
|
+
}>;
|
|
734
|
+
context: {
|
|
735
|
+
flowId?: string;
|
|
736
|
+
selectedNodeId?: string;
|
|
737
|
+
viewMode?: string;
|
|
738
|
+
credentialId?: string;
|
|
739
|
+
maxSteps?: number;
|
|
740
|
+
};
|
|
741
|
+
identity?: InvectIdentity;
|
|
742
|
+
}): Promise<AsyncGenerator<ChatStreamEvent>>;
|
|
743
|
+
/**
|
|
744
|
+
* Check if the chat assistant feature is enabled and configured.
|
|
745
|
+
*/
|
|
746
|
+
isChatEnabled(): boolean;
|
|
747
|
+
/**
|
|
748
|
+
* Get all persisted chat messages for a flow (ordered by creation time).
|
|
749
|
+
*/
|
|
750
|
+
getChatMessages(flowId: string): Promise<ChatMessageRecord[]>;
|
|
751
|
+
/**
|
|
752
|
+
* Save chat messages for a flow (replaces existing messages).
|
|
753
|
+
*/
|
|
754
|
+
saveChatMessages(flowId: string, messages: Array<{
|
|
755
|
+
role: 'user' | 'assistant' | 'system' | 'tool';
|
|
756
|
+
content: string;
|
|
757
|
+
toolMeta?: Record<string, unknown> | null;
|
|
758
|
+
}>): Promise<ChatMessageRecord[]>;
|
|
759
|
+
/**
|
|
760
|
+
* Delete all chat messages for a flow.
|
|
761
|
+
*/
|
|
762
|
+
deleteChatMessages(flowId: string): Promise<void>;
|
|
763
|
+
/**
|
|
764
|
+
* List all trigger registrations for a flow.
|
|
765
|
+
*/
|
|
766
|
+
listTriggersForFlow(flowId: string): Promise<FlowTriggerRegistration[]>;
|
|
767
|
+
/**
|
|
768
|
+
* Get a single trigger registration by ID.
|
|
769
|
+
*/
|
|
770
|
+
getTrigger(triggerId: string): Promise<FlowTriggerRegistration | null>;
|
|
771
|
+
/**
|
|
772
|
+
* Create a trigger registration.
|
|
773
|
+
*/
|
|
774
|
+
createTrigger(input: CreateTriggerInput): Promise<FlowTriggerRegistration>;
|
|
775
|
+
/**
|
|
776
|
+
* Update a trigger registration.
|
|
777
|
+
*/
|
|
778
|
+
updateTrigger(triggerId: string, input: UpdateTriggerInput): Promise<FlowTriggerRegistration | null>;
|
|
779
|
+
/**
|
|
780
|
+
* Delete a trigger registration.
|
|
781
|
+
*/
|
|
782
|
+
deleteTrigger(triggerId: string): Promise<void>;
|
|
783
|
+
/**
|
|
784
|
+
* Sync trigger registrations for a flow from its definition.
|
|
785
|
+
* Call this after publishing a new flow version. Also refreshes
|
|
786
|
+
* the cron scheduler if any cron triggers were changed.
|
|
787
|
+
*/
|
|
788
|
+
syncTriggersForFlow(flowId: string, definition: {
|
|
789
|
+
nodes: Array<{
|
|
790
|
+
id: string;
|
|
791
|
+
type: string;
|
|
792
|
+
params?: Record<string, unknown>;
|
|
793
|
+
}>;
|
|
794
|
+
}): Promise<FlowTriggerRegistration[]>;
|
|
795
|
+
/**
|
|
796
|
+
* Get all enabled cron triggers (for scheduler initialization).
|
|
797
|
+
*/
|
|
798
|
+
getEnabledCronTriggers(): Promise<FlowTriggerRegistration[]>;
|
|
799
|
+
/**
|
|
800
|
+
* Execute a cron trigger (called by the cron scheduler).
|
|
801
|
+
*/
|
|
802
|
+
executeCronTrigger(triggerId: string): Promise<{
|
|
803
|
+
flowRunId: string;
|
|
804
|
+
flowId: string;
|
|
805
|
+
}>;
|
|
806
|
+
/**
|
|
807
|
+
* Get all available OAuth2 providers
|
|
808
|
+
*/
|
|
809
|
+
getOAuth2Providers(): OAuth2ProviderDefinition[];
|
|
810
|
+
/**
|
|
811
|
+
* Get a specific OAuth2 provider by ID
|
|
812
|
+
*/
|
|
813
|
+
getOAuth2Provider(providerId: string): OAuth2ProviderDefinition | undefined;
|
|
814
|
+
/**
|
|
815
|
+
* Start an OAuth2 authorization flow
|
|
816
|
+
* Returns the authorization URL and state to redirect the user to
|
|
817
|
+
*/
|
|
818
|
+
startOAuth2Flow(providerId: string, appConfig: {
|
|
819
|
+
clientId: string;
|
|
820
|
+
clientSecret: string;
|
|
821
|
+
redirectUri: string;
|
|
822
|
+
}, options?: {
|
|
823
|
+
scopes?: string[];
|
|
824
|
+
returnUrl?: string;
|
|
825
|
+
credentialName?: string;
|
|
826
|
+
}): OAuth2StartResult;
|
|
827
|
+
/**
|
|
828
|
+
* Get pending OAuth2 state (for verifying callback)
|
|
829
|
+
*/
|
|
830
|
+
getOAuth2PendingState(state: string): OAuth2PendingState | undefined;
|
|
831
|
+
/**
|
|
832
|
+
* Handle OAuth2 callback - exchange code for tokens and create credential
|
|
833
|
+
*/
|
|
834
|
+
handleOAuth2Callback(code: string, state: string, appConfig: {
|
|
835
|
+
clientId: string;
|
|
836
|
+
clientSecret: string;
|
|
837
|
+
redirectUri: string;
|
|
838
|
+
}): Promise<Credential>;
|
|
839
|
+
/**
|
|
840
|
+
* Refresh an OAuth2 credential's access token
|
|
841
|
+
*/
|
|
842
|
+
refreshOAuth2Credential(credentialId: string): Promise<Credential>;
|
|
843
|
+
}
|
|
844
|
+
//#endregion
|
|
845
|
+
export { CoreInitializationStatus, CustomNodeConfig, DashboardStats, Invect };
|
|
846
|
+
//# sourceMappingURL=invect-core.d.cts.map
|