@flowrunner/cli 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +148 -0
- package/ai-docs/instructions/service-code-format/01-service-structure.md +180 -0
- package/ai-docs/instructions/service-code-format/02-zod-types.md +260 -0
- package/ai-docs/instructions/service-code-format/03-parameters.md +193 -0
- package/ai-docs/instructions/service-code-format/04-http-requests.md +257 -0
- package/ai-docs/instructions/service-code-format/05-dictionaries.md +103 -0
- package/ai-docs/instructions/service-code-format/06-oauth2.md +42 -0
- package/ai-docs/instructions/service-code-format/07-actions.md +171 -0
- package/ai-docs/instructions/service-code-format/08-polling-triggers.md +54 -0
- package/ai-docs/instructions/service-code-format/09-realtime-triggers.md +269 -0
- package/ai-docs/instructions/service-code-format/10-files-api.md +148 -0
- package/ai-docs/instructions/service-code-format/11-output-model.md +142 -0
- package/ai-docs/instructions/service-code-format/12-service-readme.md +69 -0
- package/ai-docs/instructions/service-code-format/13-runtime-contracts.md +193 -0
- package/ai-docs/instructions/service-code-format/14-reference-service.md +341 -0
- package/ai-docs/instructions/service-code-format/15-unit-tests.md +361 -0
- package/ai-docs/instructions/service-code-format/16-gotchas.md +201 -0
- package/ai-docs/instructions/service-code-format/17-client-certificates.md +162 -0
- package/ai-docs/instructions/service-code-format/18-test-recipes.md +160 -0
- package/ai-docs/instructions/service-code-format/README.md +120 -0
- package/ai-docs/providers/claude/agents/flowrunner-service-code-engineer.md +139 -0
- package/ai-docs/providers/claude/agents/flowrunner-service-test-engineer.md +497 -0
- package/ai-docs/providers/claude/main-orchestrator-segment.md +51 -0
- package/bin/flowrunner.js +66 -0
- package/bin/resolve-local.js +98 -0
- package/dist/cli.js +10972 -0
- package/dist/cli.js.map +7 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +10131 -0
- package/dist/index.js.map +7 -0
- package/dist/types/flow-extension-runner/src/common/config.d.ts +12 -0
- package/dist/types/flow-extension-runner/src/common/constants.d.ts +9 -0
- package/dist/types/flow-extension-runner/src/common/context-files.d.ts +107 -0
- package/dist/types/flow-extension-runner/src/common/context.d.ts +6 -0
- package/dist/types/flow-extension-runner/src/common/types.d.ts +11 -0
- package/dist/types/flow-extension-runner/src/errors/base.d.ts +17 -0
- package/dist/types/flow-extension-runner/src/errors/codes.d.ts +17 -0
- package/dist/types/flow-extension-runner/src/errors/errors.d.ts +48 -0
- package/dist/types/flow-extension-runner/src/errors/index.d.ts +3 -0
- package/dist/types/flow-extension-runner/src/global.d.ts +34 -0
- package/dist/types/flow-extension-runner/src/index.d.ts +15 -0
- package/dist/types/flow-extension-runner/src/namespace.d.ts +3 -0
- package/dist/types/flow-extension-runner/src/v1/config.d.ts +3 -0
- package/dist/types/flow-extension-runner/src/v1/constants.d.ts +4 -0
- package/dist/types/flow-extension-runner/src/v1/index.d.ts +11 -0
- package/dist/types/flow-extension-runner/src/v1/namespace.d.ts +9 -0
- package/dist/types/flow-extension-runner/src/v1/service.d.ts +29 -0
- package/dist/types/flow-extension-runner/src/v1/types.d.ts +13 -0
- package/dist/types/flow-extension-runner/src/v2/actions/action-method.d.ts +34 -0
- package/dist/types/flow-extension-runner/src/v2/context/execution-context.d.ts +25 -0
- package/dist/types/flow-extension-runner/src/v2/context/logger.d.ts +2 -0
- package/dist/types/flow-extension-runner/src/v2/context/method-input.d.ts +27 -0
- package/dist/types/flow-extension-runner/src/v2/context/proxies.d.ts +1 -0
- package/dist/types/flow-extension-runner/src/v2/create-extension.d.ts +2 -0
- package/dist/types/flow-extension-runner/src/v2/crypto.d.ts +6 -0
- package/dist/types/flow-extension-runner/src/v2/dictionaries/dictionary-method.d.ts +24 -0
- package/dist/types/flow-extension-runner/src/v2/dictionaries/payload-schema.d.ts +10 -0
- package/dist/types/flow-extension-runner/src/v2/extension.d.ts +51 -0
- package/dist/types/flow-extension-runner/src/v2/index.d.ts +39 -0
- package/dist/types/flow-extension-runner/src/v2/loaders/loader-method.d.ts +31 -0
- package/dist/types/flow-extension-runner/src/v2/loaders/loader-owner.d.ts +17 -0
- package/dist/types/flow-extension-runner/src/v2/loaders/payload-schema.d.ts +3 -0
- package/dist/types/flow-extension-runner/src/v2/method.d.ts +22 -0
- package/dist/types/flow-extension-runner/src/v2/model/field-mapper.d.ts +10 -0
- package/dist/types/flow-extension-runner/src/v2/model/method-model.d.ts +3 -0
- package/dist/types/flow-extension-runner/src/v2/model/model-types.d.ts +70 -0
- package/dist/types/flow-extension-runner/src/v2/model/params-model.d.ts +16 -0
- package/dist/types/flow-extension-runner/src/v2/oauth/method-names.d.ts +5 -0
- package/dist/types/flow-extension-runner/src/v2/oauth/oauth2.d.ts +9 -0
- package/dist/types/flow-extension-runner/src/v2/oauth/system-params.d.ts +6 -0
- package/dist/types/flow-extension-runner/src/v2/oauth/types.d.ts +54 -0
- package/dist/types/flow-extension-runner/src/v2/params/config-params.d.ts +14 -0
- package/dist/types/flow-extension-runner/src/v2/params/files-options.d.ts +58 -0
- package/dist/types/flow-extension-runner/src/v2/params/index.d.ts +19 -0
- package/dist/types/flow-extension-runner/src/v2/params/json/checks.d.ts +26 -0
- package/dist/types/flow-extension-runner/src/v2/params/json/decode.d.ts +24 -0
- package/dist/types/flow-extension-runner/src/v2/params/json/encode.d.ts +20 -0
- package/dist/types/flow-extension-runner/src/v2/params/json/types.d.ts +86 -0
- package/dist/types/flow-extension-runner/src/v2/params/json/values.d.ts +5 -0
- package/dist/types/flow-extension-runner/src/v2/params/method-params.d.ts +17 -0
- package/dist/types/flow-extension-runner/src/v2/params/params.d.ts +26 -0
- package/dist/types/flow-extension-runner/src/v2/params/schema/assert-object-schema.d.ts +6 -0
- package/dist/types/flow-extension-runner/src/v2/params/schema/assert-supported-schema.d.ts +8 -0
- package/dist/types/flow-extension-runner/src/v2/params/schema/coerce.d.ts +54 -0
- package/dist/types/flow-extension-runner/src/v2/params/schema/dates.d.ts +40 -0
- package/dist/types/flow-extension-runner/src/v2/params/schema/defaults.d.ts +36 -0
- package/dist/types/flow-extension-runner/src/v2/params/schema/field-plan.d.ts +33 -0
- package/dist/types/flow-extension-runner/src/v2/params/schema/introspect.d.ts +58 -0
- package/dist/types/flow-extension-runner/src/v2/params/schema/labels.d.ts +3 -0
- package/dist/types/flow-extension-runner/src/v2/params/schema/messages.d.ts +16 -0
- package/dist/types/flow-extension-runner/src/v2/params/schema/normalize.d.ts +8 -0
- package/dist/types/flow-extension-runner/src/v2/params/schema/parse.d.ts +7 -0
- package/dist/types/flow-extension-runner/src/v2/params/types.d.ts +29 -0
- package/dist/types/flow-extension-runner/src/v2/params/widget-types.d.ts +40 -0
- package/dist/types/flow-extension-runner/src/v2/params/zod.d.ts +86 -0
- package/dist/types/flow-extension-runner/src/v2/path.d.ts +1 -0
- package/dist/types/flow-extension-runner/src/v2/polling-triggers/mechanisms.d.ts +19 -0
- package/dist/types/flow-extension-runner/src/v2/polling-triggers/method-names.d.ts +1 -0
- package/dist/types/flow-extension-runner/src/v2/polling-triggers/polling-triggers.d.ts +11 -0
- package/dist/types/flow-extension-runner/src/v2/polling-triggers/system-params.d.ts +7 -0
- package/dist/types/flow-extension-runner/src/v2/polling-triggers/trigger-method.d.ts +25 -0
- package/dist/types/flow-extension-runner/src/v2/polling-triggers/types.d.ts +46 -0
- package/dist/types/flow-extension-runner/src/v2/realtime-triggers/method-names.d.ts +7 -0
- package/dist/types/flow-extension-runner/src/v2/realtime-triggers/realtime-setup.d.ts +10 -0
- package/dist/types/flow-extension-runner/src/v2/realtime-triggers/system-params.d.ts +29 -0
- package/dist/types/flow-extension-runner/src/v2/realtime-triggers/trigger-method.d.ts +33 -0
- package/dist/types/flow-extension-runner/src/v2/realtime-triggers/types.d.ts +147 -0
- package/dist/types/flow-extension-runner/src/v2/realtime-triggers/verify.d.ts +2 -0
- package/dist/types/flow-extension-runner/src/v2/registry.d.ts +20 -0
- package/dist/types/flow-extension-runner/src/v2/result.d.ts +13 -0
- package/dist/types/flow-extension-runner/src/v2/system-method.d.ts +41 -0
- package/dist/types/flow-extension-runner/src/v2/types.d.ts +126 -0
- package/dist/types/jsdoc-parser/src/custom-type-defs/files.d.ts +2 -0
- package/dist/types/jsdoc-parser/src/index.d.ts +2 -0
- package/dist/types/jsdoc-parser/src/lib.d.ts +42 -0
- package/dist/types/jsdoc-parser/src/types.d.ts +2 -0
- package/dist/types/packages/cli/src/api/console-client.d.ts +69 -0
- package/dist/types/packages/cli/src/constants/index.d.ts +5 -0
- package/dist/types/packages/cli/src/constants/packaging.d.ts +7 -0
- package/dist/types/packages/cli/src/constants/project.d.ts +9 -0
- package/dist/types/packages/cli/src/constants/providers.d.ts +30 -0
- package/dist/types/packages/cli/src/constants/server.d.ts +29 -0
- package/dist/types/packages/cli/src/constants/testing.d.ts +32 -0
- package/dist/types/packages/cli/src/errors.d.ts +131 -0
- package/dist/types/packages/cli/src/index.d.ts +29 -0
- package/dist/types/packages/cli/src/operations/deploy/discover-services.d.ts +26 -0
- package/dist/types/packages/cli/src/operations/deploy/hash.d.ts +1 -0
- package/dist/types/packages/cli/src/operations/deploy/index.d.ts +94 -0
- package/dist/types/packages/cli/src/operations/deploy/public-files.d.ts +20 -0
- package/dist/types/packages/cli/src/operations/deploy/select.d.ts +9 -0
- package/dist/types/packages/cli/src/operations/deploy/zip.d.ts +1 -0
- package/dist/types/packages/cli/src/operations/init/answers.d.ts +35 -0
- package/dist/types/packages/cli/src/operations/init/create-service.d.ts +39 -0
- package/dist/types/packages/cli/src/operations/init/index.d.ts +79 -0
- package/dist/types/packages/cli/src/operations/init/testing.d.ts +13 -0
- package/dist/types/packages/cli/src/operations/init-claude/index.d.ts +40 -0
- package/dist/types/packages/cli/src/operations/init-claude/segment.d.ts +25 -0
- package/dist/types/packages/cli/src/operations/login.d.ts +38 -0
- package/dist/types/packages/cli/src/operations/logout.d.ts +19 -0
- package/dist/types/packages/cli/src/operations/pull/extract.d.ts +23 -0
- package/dist/types/packages/cli/src/operations/pull/index.d.ts +87 -0
- package/dist/types/packages/cli/src/operations/server-target.d.ts +14 -0
- package/dist/types/packages/cli/src/operations/types.d.ts +20 -0
- package/dist/types/packages/cli/src/operations/use-server.d.ts +17 -0
- package/dist/types/packages/cli/src/project/auth.d.ts +41 -0
- package/dist/types/packages/cli/src/project/config.d.ts +31 -0
- package/dist/types/packages/cli/src/project/token.d.ts +5 -0
- package/dist/types/packages/cli/src/server/index.d.ts +14 -0
- package/dist/types/packages/cli/src/server/pages.d.ts +2 -0
- package/dist/types/packages/cli/src/server/routes/callback.d.ts +6 -0
- package/dist/types/packages/cli/src/server/types.d.ts +12 -0
- package/dist/types/packages/cli/src/templates/index.d.ts +8 -0
- package/dist/types/packages/cli/src/templates/manifest.d.ts +97 -0
- package/dist/types/packages/cli/src/templates/package-root.d.ts +3 -0
- package/dist/types/packages/cli/src/templates/paths.d.ts +3 -0
- package/dist/types/packages/cli/src/templates/registry.d.ts +13 -0
- package/dist/types/packages/cli/src/templates/render.d.ts +13 -0
- package/dist/types/packages/cli/src/templates/scaffold.d.ts +25 -0
- package/dist/types/packages/cli/src/utils/invocation.d.ts +28 -0
- package/dist/types/packages/cli/src/utils/open-browser.d.ts +2 -0
- package/dist/types/shared/src/constants/ai-agent-tools.d.ts +20 -0
- package/dist/types/shared/src/constants/ai.d.ts +11 -0
- package/dist/types/shared/src/constants/api-keys.d.ts +1 -0
- package/dist/types/shared/src/constants/app.d.ts +58 -0
- package/dist/types/shared/src/constants/billing.d.ts +16 -0
- package/dist/types/shared/src/constants/compliances.d.ts +3 -0
- package/dist/types/shared/src/constants/data-types.d.ts +26 -0
- package/dist/types/shared/src/constants/error-codes.d.ts +16 -0
- package/dist/types/shared/src/constants/flow.d.ts +12 -0
- package/dist/types/shared/src/constants/index.d.ts +16 -0
- package/dist/types/shared/src/constants/knowledge-base.d.ts +13 -0
- package/dist/types/shared/src/constants/notification-types.d.ts +985 -0
- package/dist/types/shared/src/constants/notifications.d.ts +10 -0
- package/dist/types/shared/src/constants/patterns.d.ts +28 -0
- package/dist/types/shared/src/constants/retry-policy.d.ts +30 -0
- package/dist/types/shared/src/constants/severity.d.ts +9 -0
- package/dist/types/shared/src/constants/shared-extensions-search.d.ts +6 -0
- package/dist/types/shared/src/constants/shared-extensions.d.ts +35 -0
- package/dist/types/shared/src/constants/zod.d.ts +2 -0
- package/dist/types/shared/src/errors/api.d.ts +4 -0
- package/dist/types/shared/src/errors/base.d.ts +38 -0
- package/dist/types/shared/src/errors/common.d.ts +39 -0
- package/dist/types/shared/src/errors/index.d.ts +13 -0
- package/dist/types/shared/src/errors/k8s.d.ts +4 -0
- package/dist/types/shared/src/errors/message.d.ts +48 -0
- package/dist/types/shared/src/errors/open-search.d.ts +4 -0
- package/dist/types/shared/src/errors/s3.d.ts +11 -0
- package/dist/types/shared/src/extensions/zod.d.ts +25 -0
- package/dist/types/shared/src/scheme/account/dto.d.ts +60 -0
- package/dist/types/shared/src/scheme/account/index.d.ts +1 -0
- package/dist/types/shared/src/scheme/ai-agent-tools/dto.d.ts +69 -0
- package/dist/types/shared/src/scheme/ai-agent-tools/index.d.ts +2 -0
- package/dist/types/shared/src/scheme/ai-agent-tools/parameters.d.ts +7 -0
- package/dist/types/shared/src/scheme/ai-router/dto.d.ts +23 -0
- package/dist/types/shared/src/scheme/ai-router/index.d.ts +2 -0
- package/dist/types/shared/src/scheme/api-keys/dto.d.ts +28 -0
- package/dist/types/shared/src/scheme/api-keys/index.d.ts +2 -0
- package/dist/types/shared/src/scheme/app/index.d.ts +1 -0
- package/dist/types/shared/src/scheme/app/java.dto.d.ts +6 -0
- package/dist/types/shared/src/scheme/billing/index.d.ts +1 -0
- package/dist/types/shared/src/scheme/billing/java.dto.d.ts +163 -0
- package/dist/types/shared/src/scheme/crm/billing.d.ts +149 -0
- package/dist/types/shared/src/scheme/crm/dto.d.ts +212 -0
- package/dist/types/shared/src/scheme/crm/index.d.ts +3 -0
- package/dist/types/shared/src/scheme/data-types/index.d.ts +1 -0
- package/dist/types/shared/src/scheme/data-types/java.dto.d.ts +23 -0
- package/dist/types/shared/src/scheme/dynamic-forms/dto.d.ts +30 -0
- package/dist/types/shared/src/scheme/dynamic-forms/index.d.ts +2 -0
- package/dist/types/shared/src/scheme/extensions/index.d.ts +1 -0
- package/dist/types/shared/src/scheme/extensions/params-to-zod.d.ts +14 -0
- package/dist/types/shared/src/scheme/flowrunner/custom-elements.d.ts +368 -0
- package/dist/types/shared/src/scheme/flowrunner/index.d.ts +3 -0
- package/dist/types/shared/src/scheme/flowrunner/java.dto.d.ts +628 -0
- package/dist/types/shared/src/scheme/index.d.ts +19 -0
- package/dist/types/shared/src/scheme/integration-connection/dto.d.ts +81 -0
- package/dist/types/shared/src/scheme/integration-connection/index.d.ts +2 -0
- package/dist/types/shared/src/scheme/knowledge-base/dto.d.ts +540 -0
- package/dist/types/shared/src/scheme/knowledge-base/index.d.ts +2 -0
- package/dist/types/shared/src/scheme/mcp-oauth/dto.d.ts +7 -0
- package/dist/types/shared/src/scheme/mcp-oauth/index.d.ts +2 -0
- package/dist/types/shared/src/scheme/notifications/dto.d.ts +111 -0
- package/dist/types/shared/src/scheme/notifications/index.d.ts +3 -0
- package/dist/types/shared/src/scheme/notifications/rest.d.ts +148 -0
- package/dist/types/shared/src/scheme/properties/account.d.ts +3 -0
- package/dist/types/shared/src/scheme/properties/app.d.ts +5 -0
- package/dist/types/shared/src/scheme/properties/billing.d.ts +12 -0
- package/dist/types/shared/src/scheme/properties/common.d.ts +2 -0
- package/dist/types/shared/src/scheme/properties/db.d.ts +8 -0
- package/dist/types/shared/src/scheme/properties/flow-extensions.d.ts +7 -0
- package/dist/types/shared/src/scheme/properties/index.d.ts +7 -0
- package/dist/types/shared/src/scheme/remote-mcp-server/dto.d.ts +278 -0
- package/dist/types/shared/src/scheme/remote-mcp-server/index.d.ts +2 -0
- package/dist/types/shared/src/scheme/shared-extensions/base.d.ts +56 -0
- package/dist/types/shared/src/scheme/shared-extensions/config.d.ts +96 -0
- package/dist/types/shared/src/scheme/shared-extensions/custom-extensions.d.ts +485 -0
- package/dist/types/shared/src/scheme/shared-extensions/extension.d.ts +387 -0
- package/dist/types/shared/src/scheme/shared-extensions/flow-extensions.d.ts +64 -0
- package/dist/types/shared/src/scheme/shared-extensions/index.d.ts +15 -0
- package/dist/types/shared/src/scheme/shared-extensions/light.d.ts +38 -0
- package/dist/types/shared/src/scheme/shared-extensions/logs.d.ts +21 -0
- package/dist/types/shared/src/scheme/shared-extensions/methods.d.ts +80 -0
- package/dist/types/shared/src/scheme/shared-extensions/params-schema.d.ts +47 -0
- package/dist/types/shared/src/scheme/shared-extensions/popular-pool.d.ts +11 -0
- package/dist/types/shared/src/scheme/shared-extensions/resolve.d.ts +364 -0
- package/dist/types/shared/src/scheme/shared-extensions/rest.d.ts +9 -0
- package/dist/types/shared/src/scheme/shared-extensions/search.d.ts +177 -0
- package/dist/types/shared/src/scheme/shared-extensions/service-identity.d.ts +10 -0
- package/dist/types/shared/src/scheme/shared-extensions/service-info.d.ts +15 -0
- package/dist/types/shared/src/scheme/workspace/dto.d.ts +40 -0
- package/dist/types/shared/src/scheme/workspace/index.d.ts +1 -0
- package/dist/types/shared/src/utils/object.d.ts +8 -0
- package/dist/types/shared/src/utils/uuid.d.ts +5 -0
- package/dist/types/shared/src/utils/versions.d.ts +4 -0
- package/dist/types/types/backendless-request.d.ts +40 -0
- package/package.json +66 -0
- package/project-files/jest.config.js +38 -0
- package/project-files/jest.setup.js +24 -0
- package/project-files/sandbox/files-mock.js +654 -0
- package/project-files/sandbox/index.js +32 -0
- package/project-files/sandbox/nock-mock.js +600 -0
- package/project-files/sandbox/service.js +145 -0
- package/runtime/index.d.ts +2 -0
- package/runtime/index.js +5665 -0
- package/runtime/index.js.map +7 -0
- package/runtime/types/flow-extension-runner/src/common/config.d.ts +12 -0
- package/runtime/types/flow-extension-runner/src/common/constants.d.ts +9 -0
- package/runtime/types/flow-extension-runner/src/common/context-files.d.ts +107 -0
- package/runtime/types/flow-extension-runner/src/common/context.d.ts +6 -0
- package/runtime/types/flow-extension-runner/src/common/types.d.ts +11 -0
- package/runtime/types/flow-extension-runner/src/errors/base.d.ts +17 -0
- package/runtime/types/flow-extension-runner/src/errors/codes.d.ts +17 -0
- package/runtime/types/flow-extension-runner/src/errors/errors.d.ts +48 -0
- package/runtime/types/flow-extension-runner/src/errors/index.d.ts +3 -0
- package/runtime/types/flow-extension-runner/src/global.d.ts +34 -0
- package/runtime/types/flow-extension-runner/src/index.d.ts +15 -0
- package/runtime/types/flow-extension-runner/src/namespace.d.ts +3 -0
- package/runtime/types/flow-extension-runner/src/v1/config.d.ts +3 -0
- package/runtime/types/flow-extension-runner/src/v1/constants.d.ts +4 -0
- package/runtime/types/flow-extension-runner/src/v1/index.d.ts +11 -0
- package/runtime/types/flow-extension-runner/src/v1/namespace.d.ts +9 -0
- package/runtime/types/flow-extension-runner/src/v1/service.d.ts +29 -0
- package/runtime/types/flow-extension-runner/src/v1/types.d.ts +13 -0
- package/runtime/types/flow-extension-runner/src/v2/actions/action-method.d.ts +34 -0
- package/runtime/types/flow-extension-runner/src/v2/context/execution-context.d.ts +25 -0
- package/runtime/types/flow-extension-runner/src/v2/context/logger.d.ts +2 -0
- package/runtime/types/flow-extension-runner/src/v2/context/method-input.d.ts +27 -0
- package/runtime/types/flow-extension-runner/src/v2/context/proxies.d.ts +1 -0
- package/runtime/types/flow-extension-runner/src/v2/create-extension.d.ts +2 -0
- package/runtime/types/flow-extension-runner/src/v2/crypto.d.ts +6 -0
- package/runtime/types/flow-extension-runner/src/v2/dictionaries/dictionary-method.d.ts +24 -0
- package/runtime/types/flow-extension-runner/src/v2/dictionaries/payload-schema.d.ts +10 -0
- package/runtime/types/flow-extension-runner/src/v2/extension.d.ts +51 -0
- package/runtime/types/flow-extension-runner/src/v2/index.d.ts +39 -0
- package/runtime/types/flow-extension-runner/src/v2/loaders/loader-method.d.ts +31 -0
- package/runtime/types/flow-extension-runner/src/v2/loaders/loader-owner.d.ts +17 -0
- package/runtime/types/flow-extension-runner/src/v2/loaders/payload-schema.d.ts +3 -0
- package/runtime/types/flow-extension-runner/src/v2/method.d.ts +22 -0
- package/runtime/types/flow-extension-runner/src/v2/model/field-mapper.d.ts +10 -0
- package/runtime/types/flow-extension-runner/src/v2/model/method-model.d.ts +3 -0
- package/runtime/types/flow-extension-runner/src/v2/model/model-types.d.ts +70 -0
- package/runtime/types/flow-extension-runner/src/v2/model/params-model.d.ts +16 -0
- package/runtime/types/flow-extension-runner/src/v2/oauth/method-names.d.ts +5 -0
- package/runtime/types/flow-extension-runner/src/v2/oauth/oauth2.d.ts +9 -0
- package/runtime/types/flow-extension-runner/src/v2/oauth/system-params.d.ts +6 -0
- package/runtime/types/flow-extension-runner/src/v2/oauth/types.d.ts +54 -0
- package/runtime/types/flow-extension-runner/src/v2/params/config-params.d.ts +14 -0
- package/runtime/types/flow-extension-runner/src/v2/params/files-options.d.ts +58 -0
- package/runtime/types/flow-extension-runner/src/v2/params/index.d.ts +19 -0
- package/runtime/types/flow-extension-runner/src/v2/params/json/checks.d.ts +26 -0
- package/runtime/types/flow-extension-runner/src/v2/params/json/decode.d.ts +24 -0
- package/runtime/types/flow-extension-runner/src/v2/params/json/encode.d.ts +20 -0
- package/runtime/types/flow-extension-runner/src/v2/params/json/types.d.ts +86 -0
- package/runtime/types/flow-extension-runner/src/v2/params/json/values.d.ts +5 -0
- package/runtime/types/flow-extension-runner/src/v2/params/method-params.d.ts +17 -0
- package/runtime/types/flow-extension-runner/src/v2/params/params.d.ts +26 -0
- package/runtime/types/flow-extension-runner/src/v2/params/schema/assert-object-schema.d.ts +6 -0
- package/runtime/types/flow-extension-runner/src/v2/params/schema/assert-supported-schema.d.ts +8 -0
- package/runtime/types/flow-extension-runner/src/v2/params/schema/coerce.d.ts +54 -0
- package/runtime/types/flow-extension-runner/src/v2/params/schema/dates.d.ts +40 -0
- package/runtime/types/flow-extension-runner/src/v2/params/schema/defaults.d.ts +36 -0
- package/runtime/types/flow-extension-runner/src/v2/params/schema/field-plan.d.ts +33 -0
- package/runtime/types/flow-extension-runner/src/v2/params/schema/introspect.d.ts +58 -0
- package/runtime/types/flow-extension-runner/src/v2/params/schema/labels.d.ts +3 -0
- package/runtime/types/flow-extension-runner/src/v2/params/schema/messages.d.ts +16 -0
- package/runtime/types/flow-extension-runner/src/v2/params/schema/normalize.d.ts +8 -0
- package/runtime/types/flow-extension-runner/src/v2/params/schema/parse.d.ts +7 -0
- package/runtime/types/flow-extension-runner/src/v2/params/types.d.ts +29 -0
- package/runtime/types/flow-extension-runner/src/v2/params/widget-types.d.ts +40 -0
- package/runtime/types/flow-extension-runner/src/v2/params/zod.d.ts +86 -0
- package/runtime/types/flow-extension-runner/src/v2/path.d.ts +1 -0
- package/runtime/types/flow-extension-runner/src/v2/polling-triggers/mechanisms.d.ts +19 -0
- package/runtime/types/flow-extension-runner/src/v2/polling-triggers/method-names.d.ts +1 -0
- package/runtime/types/flow-extension-runner/src/v2/polling-triggers/polling-triggers.d.ts +11 -0
- package/runtime/types/flow-extension-runner/src/v2/polling-triggers/system-params.d.ts +7 -0
- package/runtime/types/flow-extension-runner/src/v2/polling-triggers/trigger-method.d.ts +25 -0
- package/runtime/types/flow-extension-runner/src/v2/polling-triggers/types.d.ts +46 -0
- package/runtime/types/flow-extension-runner/src/v2/realtime-triggers/method-names.d.ts +7 -0
- package/runtime/types/flow-extension-runner/src/v2/realtime-triggers/realtime-setup.d.ts +10 -0
- package/runtime/types/flow-extension-runner/src/v2/realtime-triggers/system-params.d.ts +29 -0
- package/runtime/types/flow-extension-runner/src/v2/realtime-triggers/trigger-method.d.ts +33 -0
- package/runtime/types/flow-extension-runner/src/v2/realtime-triggers/types.d.ts +147 -0
- package/runtime/types/flow-extension-runner/src/v2/realtime-triggers/verify.d.ts +2 -0
- package/runtime/types/flow-extension-runner/src/v2/registry.d.ts +20 -0
- package/runtime/types/flow-extension-runner/src/v2/result.d.ts +13 -0
- package/runtime/types/flow-extension-runner/src/v2/system-method.d.ts +41 -0
- package/runtime/types/flow-extension-runner/src/v2/types.d.ts +126 -0
- package/runtime/types/jsdoc-parser/src/custom-type-defs/files.d.ts +2 -0
- package/runtime/types/jsdoc-parser/src/index.d.ts +2 -0
- package/runtime/types/jsdoc-parser/src/lib.d.ts +42 -0
- package/runtime/types/jsdoc-parser/src/types.d.ts +2 -0
- package/runtime/types/packages/cli/src/runtime/index.d.ts +5 -0
- package/runtime/types/shared/src/constants/ai-agent-tools.d.ts +20 -0
- package/runtime/types/shared/src/constants/ai.d.ts +11 -0
- package/runtime/types/shared/src/constants/api-keys.d.ts +1 -0
- package/runtime/types/shared/src/constants/app.d.ts +58 -0
- package/runtime/types/shared/src/constants/billing.d.ts +16 -0
- package/runtime/types/shared/src/constants/compliances.d.ts +3 -0
- package/runtime/types/shared/src/constants/data-types.d.ts +26 -0
- package/runtime/types/shared/src/constants/error-codes.d.ts +16 -0
- package/runtime/types/shared/src/constants/flow.d.ts +12 -0
- package/runtime/types/shared/src/constants/index.d.ts +16 -0
- package/runtime/types/shared/src/constants/knowledge-base.d.ts +13 -0
- package/runtime/types/shared/src/constants/notification-types.d.ts +985 -0
- package/runtime/types/shared/src/constants/notifications.d.ts +10 -0
- package/runtime/types/shared/src/constants/patterns.d.ts +28 -0
- package/runtime/types/shared/src/constants/retry-policy.d.ts +30 -0
- package/runtime/types/shared/src/constants/severity.d.ts +9 -0
- package/runtime/types/shared/src/constants/shared-extensions-search.d.ts +6 -0
- package/runtime/types/shared/src/constants/shared-extensions.d.ts +35 -0
- package/runtime/types/shared/src/constants/zod.d.ts +2 -0
- package/runtime/types/shared/src/errors/api.d.ts +4 -0
- package/runtime/types/shared/src/errors/base.d.ts +38 -0
- package/runtime/types/shared/src/errors/common.d.ts +39 -0
- package/runtime/types/shared/src/errors/index.d.ts +13 -0
- package/runtime/types/shared/src/errors/k8s.d.ts +4 -0
- package/runtime/types/shared/src/errors/message.d.ts +48 -0
- package/runtime/types/shared/src/errors/open-search.d.ts +4 -0
- package/runtime/types/shared/src/errors/s3.d.ts +11 -0
- package/runtime/types/shared/src/extensions/zod.d.ts +25 -0
- package/runtime/types/shared/src/scheme/account/dto.d.ts +60 -0
- package/runtime/types/shared/src/scheme/account/index.d.ts +1 -0
- package/runtime/types/shared/src/scheme/ai-agent-tools/dto.d.ts +69 -0
- package/runtime/types/shared/src/scheme/ai-agent-tools/index.d.ts +2 -0
- package/runtime/types/shared/src/scheme/ai-agent-tools/parameters.d.ts +7 -0
- package/runtime/types/shared/src/scheme/ai-router/dto.d.ts +23 -0
- package/runtime/types/shared/src/scheme/ai-router/index.d.ts +2 -0
- package/runtime/types/shared/src/scheme/api-keys/dto.d.ts +28 -0
- package/runtime/types/shared/src/scheme/api-keys/index.d.ts +2 -0
- package/runtime/types/shared/src/scheme/app/index.d.ts +1 -0
- package/runtime/types/shared/src/scheme/app/java.dto.d.ts +6 -0
- package/runtime/types/shared/src/scheme/billing/index.d.ts +1 -0
- package/runtime/types/shared/src/scheme/billing/java.dto.d.ts +163 -0
- package/runtime/types/shared/src/scheme/crm/billing.d.ts +149 -0
- package/runtime/types/shared/src/scheme/crm/dto.d.ts +212 -0
- package/runtime/types/shared/src/scheme/crm/index.d.ts +3 -0
- package/runtime/types/shared/src/scheme/data-types/index.d.ts +1 -0
- package/runtime/types/shared/src/scheme/data-types/java.dto.d.ts +23 -0
- package/runtime/types/shared/src/scheme/dynamic-forms/dto.d.ts +30 -0
- package/runtime/types/shared/src/scheme/dynamic-forms/index.d.ts +2 -0
- package/runtime/types/shared/src/scheme/extensions/index.d.ts +1 -0
- package/runtime/types/shared/src/scheme/extensions/params-to-zod.d.ts +14 -0
- package/runtime/types/shared/src/scheme/flowrunner/custom-elements.d.ts +368 -0
- package/runtime/types/shared/src/scheme/flowrunner/index.d.ts +3 -0
- package/runtime/types/shared/src/scheme/flowrunner/java.dto.d.ts +628 -0
- package/runtime/types/shared/src/scheme/index.d.ts +19 -0
- package/runtime/types/shared/src/scheme/integration-connection/dto.d.ts +81 -0
- package/runtime/types/shared/src/scheme/integration-connection/index.d.ts +2 -0
- package/runtime/types/shared/src/scheme/knowledge-base/dto.d.ts +540 -0
- package/runtime/types/shared/src/scheme/knowledge-base/index.d.ts +2 -0
- package/runtime/types/shared/src/scheme/mcp-oauth/dto.d.ts +7 -0
- package/runtime/types/shared/src/scheme/mcp-oauth/index.d.ts +2 -0
- package/runtime/types/shared/src/scheme/notifications/dto.d.ts +111 -0
- package/runtime/types/shared/src/scheme/notifications/index.d.ts +3 -0
- package/runtime/types/shared/src/scheme/notifications/rest.d.ts +148 -0
- package/runtime/types/shared/src/scheme/properties/account.d.ts +3 -0
- package/runtime/types/shared/src/scheme/properties/app.d.ts +5 -0
- package/runtime/types/shared/src/scheme/properties/billing.d.ts +12 -0
- package/runtime/types/shared/src/scheme/properties/common.d.ts +2 -0
- package/runtime/types/shared/src/scheme/properties/db.d.ts +8 -0
- package/runtime/types/shared/src/scheme/properties/flow-extensions.d.ts +7 -0
- package/runtime/types/shared/src/scheme/properties/index.d.ts +7 -0
- package/runtime/types/shared/src/scheme/remote-mcp-server/dto.d.ts +278 -0
- package/runtime/types/shared/src/scheme/remote-mcp-server/index.d.ts +2 -0
- package/runtime/types/shared/src/scheme/shared-extensions/base.d.ts +56 -0
- package/runtime/types/shared/src/scheme/shared-extensions/config.d.ts +96 -0
- package/runtime/types/shared/src/scheme/shared-extensions/custom-extensions.d.ts +485 -0
- package/runtime/types/shared/src/scheme/shared-extensions/extension.d.ts +387 -0
- package/runtime/types/shared/src/scheme/shared-extensions/flow-extensions.d.ts +64 -0
- package/runtime/types/shared/src/scheme/shared-extensions/index.d.ts +15 -0
- package/runtime/types/shared/src/scheme/shared-extensions/light.d.ts +38 -0
- package/runtime/types/shared/src/scheme/shared-extensions/logs.d.ts +21 -0
- package/runtime/types/shared/src/scheme/shared-extensions/methods.d.ts +80 -0
- package/runtime/types/shared/src/scheme/shared-extensions/params-schema.d.ts +47 -0
- package/runtime/types/shared/src/scheme/shared-extensions/popular-pool.d.ts +11 -0
- package/runtime/types/shared/src/scheme/shared-extensions/resolve.d.ts +364 -0
- package/runtime/types/shared/src/scheme/shared-extensions/rest.d.ts +9 -0
- package/runtime/types/shared/src/scheme/shared-extensions/search.d.ts +177 -0
- package/runtime/types/shared/src/scheme/shared-extensions/service-identity.d.ts +10 -0
- package/runtime/types/shared/src/scheme/shared-extensions/service-info.d.ts +15 -0
- package/runtime/types/shared/src/scheme/workspace/dto.d.ts +40 -0
- package/runtime/types/shared/src/scheme/workspace/index.d.ts +1 -0
- package/runtime/types/shared/src/utils/object.d.ts +8 -0
- package/runtime/types/shared/src/utils/uuid.d.ts +5 -0
- package/runtime/types/shared/src/utils/versions.d.ts +4 -0
- package/runtime/types/types/backendless-request.d.ts +40 -0
- package/templates/blank/files/README.md +28 -0
- package/templates/blank/files/package.json +8 -0
- package/templates/blank/files/public/icon.svg +5 -0
- package/templates/blank/files/src/index.js +130 -0
- package/templates/blank/template.json +61 -0
- package/templates/demo-todo-list/files/README.md +54 -0
- package/templates/demo-todo-list/files/package.json +8 -0
- package/templates/demo-todo-list/files/public/icon.svg +8 -0
- package/templates/demo-todo-list/files/src/index.js +590 -0
- package/templates/demo-todo-list/template.json +44 -0
- package/templates/qa-test/files/README.md +88 -0
- package/templates/qa-test/files/package.json +8 -0
- package/templates/qa-test/files/public/icon.svg +8 -0
- package/templates/qa-test/files/src/index.js +755 -0
- package/templates/qa-test/template.json +62 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import type { AnySchema, AnyShape, ExtensionShape, HandlerBag, Infer, ProviderPayload, SampleResult } from '../types';
|
|
2
|
+
export interface RealtimeSubTrigger {
|
|
3
|
+
id: string;
|
|
4
|
+
params: Record<string, unknown>;
|
|
5
|
+
providerEventName?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface RealtimeSubscribeResult {
|
|
8
|
+
webhookData?: unknown;
|
|
9
|
+
eventScopeId?: string;
|
|
10
|
+
refreshIntervalInSeconds?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface ResponseToWebhook {
|
|
13
|
+
httpStatus?: number;
|
|
14
|
+
headers?: Record<string, string>;
|
|
15
|
+
body?: unknown;
|
|
16
|
+
rawBody?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface RealtimeResolveResult {
|
|
19
|
+
events?: {
|
|
20
|
+
id: string;
|
|
21
|
+
providerEventData: unknown;
|
|
22
|
+
}[];
|
|
23
|
+
eventScopeId?: string;
|
|
24
|
+
handshake?: boolean;
|
|
25
|
+
responseToWebhook?: ResponseToWebhook;
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated Use `responseToWebhook.rawBody` (a String, sent as raw text/plain) or `.body` (JSON).
|
|
28
|
+
* Still accepted and still forwarded to the platform untouched — nothing is translated, so an existing
|
|
29
|
+
* service keeps working — but new code should declare the response through `responseToWebhook`.
|
|
30
|
+
*/
|
|
31
|
+
responseToExternalService?: unknown;
|
|
32
|
+
/** @deprecated Use `responseToWebhook.headers`. Still accepted and forwarded untouched. */
|
|
33
|
+
responseHeaders?: Record<string, unknown>;
|
|
34
|
+
}
|
|
35
|
+
export interface RealtimeVerify<TShape extends ExtensionShape = AnyShape> {
|
|
36
|
+
header: string;
|
|
37
|
+
algo: string;
|
|
38
|
+
encoding: 'hex' | 'base64';
|
|
39
|
+
secret: (config: TShape['config']) => string;
|
|
40
|
+
freshness?: number;
|
|
41
|
+
timestampHeader?: string;
|
|
42
|
+
}
|
|
43
|
+
type InboundBag<TShape extends ExtensionShape = AnyShape> = HandlerBag<TShape> & {
|
|
44
|
+
rawBody?: string;
|
|
45
|
+
headers: Record<string, unknown>;
|
|
46
|
+
};
|
|
47
|
+
export interface HandshakeResult {
|
|
48
|
+
responseToWebhook?: ResponseToWebhook;
|
|
49
|
+
/** @deprecated Use `responseToWebhook.rawBody` / `.body` — see RealtimeResolveResult. */
|
|
50
|
+
responseToExternalService?: unknown;
|
|
51
|
+
/** @deprecated Use `responseToWebhook.headers`. */
|
|
52
|
+
responseHeaders?: Record<string, unknown>;
|
|
53
|
+
}
|
|
54
|
+
export interface RealtimeSetupProps<TShape extends ExtensionShape = AnyShape> {
|
|
55
|
+
scope: 'SINGLE_APP' | 'ALL_APPS';
|
|
56
|
+
extractProviderEventName?: string | ((bag: {
|
|
57
|
+
requestBody: ProviderPayload;
|
|
58
|
+
}) => string | null);
|
|
59
|
+
extractProviderEventData?: string | ((bag: {
|
|
60
|
+
requestBody: ProviderPayload;
|
|
61
|
+
}) => unknown);
|
|
62
|
+
scopeAt?: string;
|
|
63
|
+
verify?: RealtimeVerify<TShape>;
|
|
64
|
+
handshake?: (bag: InboundBag<TShape> & {
|
|
65
|
+
requestBody: ProviderPayload;
|
|
66
|
+
}) => HandshakeResult | void | Promise<HandshakeResult | void>;
|
|
67
|
+
subscribe: (bag: HandlerBag<TShape> & {
|
|
68
|
+
callbackUrl: string;
|
|
69
|
+
triggers: RealtimeSubTrigger[];
|
|
70
|
+
webhookData: ProviderPayload;
|
|
71
|
+
connectionId?: string;
|
|
72
|
+
}) => RealtimeSubscribeResult | Promise<RealtimeSubscribeResult>;
|
|
73
|
+
unsubscribe: (bag: HandlerBag<TShape> & {
|
|
74
|
+
callbackUrl?: string;
|
|
75
|
+
webhookData: ProviderPayload;
|
|
76
|
+
connectionId?: string;
|
|
77
|
+
}) => {
|
|
78
|
+
webhookData?: unknown;
|
|
79
|
+
} | Promise<{
|
|
80
|
+
webhookData?: unknown;
|
|
81
|
+
}>;
|
|
82
|
+
refresh?: (bag: HandlerBag<TShape> & {
|
|
83
|
+
callbackUrl: string;
|
|
84
|
+
triggers: RealtimeSubTrigger[];
|
|
85
|
+
webhookData: ProviderPayload;
|
|
86
|
+
}) => {
|
|
87
|
+
webhookData?: unknown;
|
|
88
|
+
refreshIntervalInSeconds?: number;
|
|
89
|
+
} | Promise<{
|
|
90
|
+
webhookData?: unknown;
|
|
91
|
+
refreshIntervalInSeconds?: number;
|
|
92
|
+
}>;
|
|
93
|
+
resolveEvents?: (bag: InboundBag<TShape> & {
|
|
94
|
+
query: Record<string, unknown>;
|
|
95
|
+
body: ProviderPayload;
|
|
96
|
+
connectionId?: string;
|
|
97
|
+
}) => RealtimeResolveResult | Promise<RealtimeResolveResult>;
|
|
98
|
+
verifyRequest?: (bag: InboundBag<TShape> & {
|
|
99
|
+
config: TShape['config'];
|
|
100
|
+
}) => boolean | Promise<boolean>;
|
|
101
|
+
}
|
|
102
|
+
export interface RealtimeTriggerProps<TShape extends ExtensionShape = AnyShape, TParams extends AnySchema = AnySchema> {
|
|
103
|
+
category: string;
|
|
104
|
+
id: string;
|
|
105
|
+
label: string;
|
|
106
|
+
description: string;
|
|
107
|
+
providerEventName?: string | string[] | ((bag: {
|
|
108
|
+
params: Infer<TParams>;
|
|
109
|
+
}) => string[]);
|
|
110
|
+
params?: TParams;
|
|
111
|
+
result: SampleResult<TShape, TParams>;
|
|
112
|
+
extendEventData?: (bag: {
|
|
113
|
+
requestBody: ProviderPayload;
|
|
114
|
+
providerEventData: ProviderPayload;
|
|
115
|
+
}) => Record<string, unknown>;
|
|
116
|
+
match?: Record<string, string> | ((bag: {
|
|
117
|
+
params: Infer<TParams>;
|
|
118
|
+
providerEventData: ProviderPayload;
|
|
119
|
+
}) => boolean);
|
|
120
|
+
extendResult?: (bag: HandlerBag<TShape> & {
|
|
121
|
+
providerEventData: ProviderPayload;
|
|
122
|
+
}) => unknown;
|
|
123
|
+
oauth2Scopes?: string[];
|
|
124
|
+
logo?: string;
|
|
125
|
+
appearanceColors?: [string, string];
|
|
126
|
+
}
|
|
127
|
+
export interface RealtimeInvocation {
|
|
128
|
+
callbackUrl?: string;
|
|
129
|
+
events?: {
|
|
130
|
+
name: string;
|
|
131
|
+
triggerData?: Record<string, unknown>;
|
|
132
|
+
}[];
|
|
133
|
+
webhookData?: unknown;
|
|
134
|
+
connectionId?: string;
|
|
135
|
+
headers?: Record<string, unknown>;
|
|
136
|
+
queryParams?: Record<string, unknown>;
|
|
137
|
+
body?: unknown;
|
|
138
|
+
rawBody?: string;
|
|
139
|
+
triggers?: {
|
|
140
|
+
id: string;
|
|
141
|
+
data?: Record<string, unknown>;
|
|
142
|
+
}[];
|
|
143
|
+
eventName?: string;
|
|
144
|
+
eventData?: unknown;
|
|
145
|
+
}
|
|
146
|
+
export type RealtimeTriggerDefinition = RealtimeTriggerProps;
|
|
147
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Extension } from './extension';
|
|
2
|
+
export declare class ExtensionRegistry {
|
|
3
|
+
#private;
|
|
4
|
+
register(extension: Extension): void;
|
|
5
|
+
get(id: string): Extension | undefined;
|
|
6
|
+
all(): Extension[];
|
|
7
|
+
/**
|
|
8
|
+
* The extension for `id`, requiring its module first if it hasn't registered yet. Registration is a
|
|
9
|
+
* require-time side effect and the require cache is shared, so this is a no-op once loaded.
|
|
10
|
+
*
|
|
11
|
+
* The shared namespace must already be installed (../namespace) — callers reach here via ../index.ts,
|
|
12
|
+
* which imports it.
|
|
13
|
+
*/
|
|
14
|
+
load(id: string, entryPointPath: string): Extension;
|
|
15
|
+
reset(): void;
|
|
16
|
+
}
|
|
17
|
+
export declare const registry: ExtensionRegistry;
|
|
18
|
+
export declare function getExtension(id: string): Extension | undefined;
|
|
19
|
+
export declare function getAllExtensions(): Extension[];
|
|
20
|
+
export declare function resetRegistry(): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { SharedExtensionMetaInfo } from './model/model-types';
|
|
2
|
+
import type { MethodParams } from './params';
|
|
3
|
+
export declare class ResultSpec {
|
|
4
|
+
#private;
|
|
5
|
+
private readonly declared;
|
|
6
|
+
static from(result: unknown): ResultSpec;
|
|
7
|
+
private constructor();
|
|
8
|
+
get isLoader(): boolean;
|
|
9
|
+
get returnType(): string;
|
|
10
|
+
get isDeclared(): boolean;
|
|
11
|
+
toMetaInfo(ownerId: string, params: MethodParams): Pick<SharedExtensionMetaInfo, 'sampleResult' | 'sampleResultLoader'>;
|
|
12
|
+
runLoader(bag: object): Promise<unknown>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ExecutionContext } from './context/execution-context';
|
|
2
|
+
import type { Extension } from './extension';
|
|
3
|
+
import { ExtensionMethod } from './method';
|
|
4
|
+
import type { SharedExtensionMethod } from './model/model-types';
|
|
5
|
+
import { MethodParams } from './params';
|
|
6
|
+
import type { AnySchema } from './types';
|
|
7
|
+
export interface SystemMethodSpec {
|
|
8
|
+
name: string;
|
|
9
|
+
/**
|
|
10
|
+
* The params this method takes, as a normal z.object. Today every SYSTEM method happens to declare
|
|
11
|
+
* exactly ONE property (`invocation` / `callbackObject` / `refreshToken`) — but that is a fact about the
|
|
12
|
+
* current seam, not a constraint of the machinery: a second property needs no change here. Omit entirely
|
|
13
|
+
* for a method that takes no input (getOAuth2ConnectionURL).
|
|
14
|
+
*/
|
|
15
|
+
scheme?: AnySchema;
|
|
16
|
+
returnType?: string;
|
|
17
|
+
published?: boolean;
|
|
18
|
+
run: (params: Record<string, unknown>, ctx: ExecutionContext) => unknown;
|
|
19
|
+
}
|
|
20
|
+
export declare class SystemMethod extends ExtensionMethod {
|
|
21
|
+
private readonly spec;
|
|
22
|
+
readonly params: MethodParams;
|
|
23
|
+
constructor(extension: Extension, spec: SystemMethodSpec);
|
|
24
|
+
get name(): string;
|
|
25
|
+
get registerAs(): string;
|
|
26
|
+
get published(): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* FIELD-BY-FIELD validation: every declared param is required, then checked against its OWN schema. The
|
|
29
|
+
* input here is a wrapper carrying named params rather than the params themselves — `{ invocation }` /
|
|
30
|
+
* `{ callbackObject }` / `{ refreshToken }` are separate method params.
|
|
31
|
+
*
|
|
32
|
+
* Deliberately not one `parse(methodData)` over the whole object, because two failures must stay
|
|
33
|
+
* distinguishable: an ABSENT param is a malformed call (MissingMethodParamError naming the param), while a
|
|
34
|
+
* bad VALUE is a malformed value (InvalidMethodInputError whose issue paths are relative to that param,
|
|
35
|
+
* not to `methodData`). A whole-object parse would flatten both into the second, with `invocation.` in
|
|
36
|
+
* front of every path.
|
|
37
|
+
*/
|
|
38
|
+
validate(methodData: Record<string, unknown>): Record<string, unknown>;
|
|
39
|
+
execute(params: Record<string, unknown>, ctx: ExecutionContext): unknown;
|
|
40
|
+
toModel(): SharedExtensionMethod;
|
|
41
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
import type { FilesApi, FileScopes } from '../common/context-files';
|
|
3
|
+
import type { Extension } from './extension';
|
|
4
|
+
import type { OAuth2Props, OAuthBag } from './oauth/types';
|
|
5
|
+
import type { DictionaryRef } from './params';
|
|
6
|
+
import type { PollingTriggerProps } from './polling-triggers/types';
|
|
7
|
+
import type { RealtimeSetupProps, RealtimeTriggerProps } from './realtime-triggers/types';
|
|
8
|
+
export type { ZodIssue, ZodSchema } from './params';
|
|
9
|
+
import type { ZodSchema } from './params';
|
|
10
|
+
export type AnySchema = z.ZodType;
|
|
11
|
+
export type Infer<TSchema, TFallback = Record<string, unknown>> = TSchema extends z.ZodType ? (unknown extends z.infer<TSchema> ? TFallback : z.infer<TSchema>) : TFallback;
|
|
12
|
+
export interface Logger {
|
|
13
|
+
debug: (...args: unknown[]) => void;
|
|
14
|
+
info: (...args: unknown[]) => void;
|
|
15
|
+
warn: (...args: unknown[]) => void;
|
|
16
|
+
error: (...args: unknown[]) => void;
|
|
17
|
+
}
|
|
18
|
+
export type ApiRequestFn = (arg: never) => unknown;
|
|
19
|
+
export type ProviderPayload = any;
|
|
20
|
+
type InjectedApiRequestArgs = 'context' | 'logger';
|
|
21
|
+
export type BoundApiRequest<TApiRequest> = TApiRequest extends (arg: infer TArg) => infer TResult ? (arg: Omit<TArg, InjectedApiRequestArgs>) => TResult : (arg: Record<string, unknown>) => unknown;
|
|
22
|
+
export interface ExtensionShape {
|
|
23
|
+
config: unknown;
|
|
24
|
+
context: unknown;
|
|
25
|
+
helpers: unknown;
|
|
26
|
+
apiRequest: unknown;
|
|
27
|
+
}
|
|
28
|
+
export interface HandlerBag<TShape extends ExtensionShape = AnyShape> {
|
|
29
|
+
config: TShape['config'];
|
|
30
|
+
context: TShape['context'];
|
|
31
|
+
helpers: TShape['helpers'];
|
|
32
|
+
apiRequest: BoundApiRequest<TShape['apiRequest']>;
|
|
33
|
+
oauth: OAuthBag;
|
|
34
|
+
files: FilesApi;
|
|
35
|
+
filesScope: FileScopes;
|
|
36
|
+
logger: Logger;
|
|
37
|
+
}
|
|
38
|
+
export type BagWithParams<TShape extends ExtensionShape, TSchema> = HandlerBag<TShape> & {
|
|
39
|
+
params: Infer<TSchema>;
|
|
40
|
+
};
|
|
41
|
+
export type SampleResult<TShape extends ExtensionShape, TSchema> = Record<string, unknown> | unknown[] | string | number | boolean | null | AnySchema | ((bag: BagWithParams<TShape, TSchema>) => unknown);
|
|
42
|
+
export interface ExtensionProps<TConfigSchema extends AnySchema = AnySchema, TContext = unknown, THelpers = Record<string, unknown>, TApiRequest extends ApiRequestFn = ApiRequestFn> {
|
|
43
|
+
id: string;
|
|
44
|
+
name: string;
|
|
45
|
+
description: string;
|
|
46
|
+
logo: string;
|
|
47
|
+
appearanceColors?: [string, string];
|
|
48
|
+
usesFileStorage?: boolean;
|
|
49
|
+
configItems?: TConfigSchema;
|
|
50
|
+
initContext?: (bag: {
|
|
51
|
+
config: Infer<TConfigSchema>;
|
|
52
|
+
oauth: OAuthBag;
|
|
53
|
+
}) => TContext;
|
|
54
|
+
apiRequest?: TApiRequest;
|
|
55
|
+
helpers?: (bag: Omit<HandlerBag<{
|
|
56
|
+
config: Infer<TConfigSchema>;
|
|
57
|
+
context: TContext;
|
|
58
|
+
helpers: never;
|
|
59
|
+
apiRequest: TApiRequest;
|
|
60
|
+
}>, 'helpers'>) => THelpers;
|
|
61
|
+
}
|
|
62
|
+
export type ShapeOf<TConfigSchema extends AnySchema, TContext, THelpers, TApiRequest extends ApiRequestFn> = {
|
|
63
|
+
config: Infer<TConfigSchema>;
|
|
64
|
+
context: TContext;
|
|
65
|
+
helpers: THelpers;
|
|
66
|
+
apiRequest: TApiRequest;
|
|
67
|
+
};
|
|
68
|
+
export interface DictionaryResultItem {
|
|
69
|
+
value: string | number | boolean | null;
|
|
70
|
+
label: string;
|
|
71
|
+
note?: string;
|
|
72
|
+
}
|
|
73
|
+
export type DictionaryResultItems = DictionaryResultItem[];
|
|
74
|
+
export interface DictionaryResult {
|
|
75
|
+
cursor?: string;
|
|
76
|
+
items: DictionaryResultItems;
|
|
77
|
+
}
|
|
78
|
+
export interface DictionaryProps<TShape extends ExtensionShape = AnyShape, TCriteria extends AnySchema = AnySchema> {
|
|
79
|
+
id: string;
|
|
80
|
+
category?: string;
|
|
81
|
+
label?: string;
|
|
82
|
+
description?: string;
|
|
83
|
+
criteria?: TCriteria;
|
|
84
|
+
result?: unknown;
|
|
85
|
+
oauth2Scopes?: string[];
|
|
86
|
+
execute: (bag: HandlerBag<TShape> & {
|
|
87
|
+
search?: string;
|
|
88
|
+
cursor?: unknown;
|
|
89
|
+
criteria: Infer<TCriteria>;
|
|
90
|
+
}) => DictionaryResult | DictionaryResultItems | Promise<DictionaryResult | DictionaryResultItems>;
|
|
91
|
+
}
|
|
92
|
+
export interface DynamicParamsDef<TShape extends ExtensionShape = AnyShape, TCriteria extends AnySchema = AnySchema> {
|
|
93
|
+
criteria: TCriteria;
|
|
94
|
+
resolve: (bag: HandlerBag<TShape> & {
|
|
95
|
+
criteria: Infer<TCriteria>;
|
|
96
|
+
}) => AnySchema | Promise<AnySchema>;
|
|
97
|
+
}
|
|
98
|
+
export interface ActionProps<TShape extends ExtensionShape = AnyShape, TParams extends AnySchema = AnySchema, TDynamicCriteria extends AnySchema = AnySchema> {
|
|
99
|
+
category: string;
|
|
100
|
+
id: string;
|
|
101
|
+
label: string;
|
|
102
|
+
description: string;
|
|
103
|
+
params?: TParams;
|
|
104
|
+
dynamicParams?: DynamicParamsDef<TShape, TDynamicCriteria>;
|
|
105
|
+
result: SampleResult<TShape, TParams>;
|
|
106
|
+
logo?: string;
|
|
107
|
+
appearanceColors?: [string, string];
|
|
108
|
+
oauth2Scopes?: string[];
|
|
109
|
+
execute: (bag: BagWithParams<TShape, TParams>) => unknown;
|
|
110
|
+
}
|
|
111
|
+
export interface ExtensionApi<TShape extends ExtensionShape = AnyShape> {
|
|
112
|
+
dictionary<TCriteria extends AnySchema = AnySchema>(props: DictionaryProps<TShape, TCriteria>): DictionaryRef;
|
|
113
|
+
addAction<TParams extends AnySchema = AnySchema, TDynamicCriteria extends AnySchema = AnySchema>(props: ActionProps<TShape, TParams, TDynamicCriteria>): void;
|
|
114
|
+
addPollingTrigger<TParams extends AnySchema = AnySchema>(props: PollingTriggerProps<TShape, TParams>): void;
|
|
115
|
+
setupRealtimeTriggers(props: RealtimeSetupProps<TShape>): void;
|
|
116
|
+
addRealtimeTrigger<TParams extends AnySchema = AnySchema>(props: RealtimeTriggerProps<TShape, TParams>): void;
|
|
117
|
+
setupOauth2<TToken = unknown>(props: OAuth2Props<TShape, TToken>): void;
|
|
118
|
+
readonly extension: Extension;
|
|
119
|
+
}
|
|
120
|
+
export interface AnyShape extends ExtensionShape {
|
|
121
|
+
config: Record<string, unknown>;
|
|
122
|
+
context: any;
|
|
123
|
+
helpers: any;
|
|
124
|
+
apiRequest: (arg: Record<string, unknown>) => unknown;
|
|
125
|
+
}
|
|
126
|
+
export declare const asRuntimeSchema: (schema?: AnySchema) => ZodSchema | undefined;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export interface DocletTag {
|
|
2
|
+
originalTitle: string;
|
|
3
|
+
value?: string;
|
|
4
|
+
text?: string;
|
|
5
|
+
}
|
|
6
|
+
interface DocletParam {
|
|
7
|
+
name: string;
|
|
8
|
+
type?: {
|
|
9
|
+
names?: string[];
|
|
10
|
+
};
|
|
11
|
+
optional?: boolean;
|
|
12
|
+
description?: string;
|
|
13
|
+
}
|
|
14
|
+
interface DocletProperty {
|
|
15
|
+
name: string;
|
|
16
|
+
type?: {
|
|
17
|
+
names?: string[];
|
|
18
|
+
};
|
|
19
|
+
optional?: boolean;
|
|
20
|
+
description?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface Doclet {
|
|
23
|
+
kind: string;
|
|
24
|
+
name: string;
|
|
25
|
+
memberof?: string;
|
|
26
|
+
scope?: string;
|
|
27
|
+
description?: string;
|
|
28
|
+
tags?: DocletTag[];
|
|
29
|
+
params?: DocletParam[];
|
|
30
|
+
properties?: DocletProperty[];
|
|
31
|
+
returns?: {
|
|
32
|
+
type?: {
|
|
33
|
+
names?: string[];
|
|
34
|
+
};
|
|
35
|
+
}[];
|
|
36
|
+
access?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Parse a JS file using jsdoc programmatically and return the doclets array.
|
|
40
|
+
*/
|
|
41
|
+
export declare function parseJSDoc(filePath: string): Doclet[];
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { ExtensionVersion, RunServiceMethodData } from '../../../../flow-extension-runner/src/index';
|
|
2
|
+
export { buildServiceDefinition, detectVersion, getServiceConfigs, runServiceMethod, } from '../../../../flow-extension-runner/src/index';
|
|
3
|
+
export { resetRegistry } from '../../../../flow-extension-runner/src/v2/index';
|
|
4
|
+
export type { ConfigItem, SharedExtensionDefinition } from '../../../../flow-extension-runner/src/v2/index';
|
|
5
|
+
export { parseJsDocToServiceJson } from '../../../../jsdoc-parser/src/index';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const ToolTypes: {
|
|
2
|
+
readonly FR_FUNCTION: "FR_FUNCTION";
|
|
3
|
+
readonly MCP_SERVER_TOOL: "MCP_SERVER_TOOL";
|
|
4
|
+
readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
|
|
5
|
+
readonly CALL_FLOW_TOOL: "CALL_FLOW_TOOL";
|
|
6
|
+
readonly HTTP_REQUEST: "HTTP_REQUEST";
|
|
7
|
+
readonly SHARED_MEMORY_PUT: "SHARED_MEMORY_PUT";
|
|
8
|
+
readonly SHARED_MEMORY_DELETE: "SHARED_MEMORY_DELETE";
|
|
9
|
+
readonly SHARED_MEMORY_READ: "SHARED_MEMORY_READ";
|
|
10
|
+
readonly ASSIGN_INSTANCE_NAME: "ASSIGN_INSTANCE_NAME";
|
|
11
|
+
readonly CUSTOM_CLOUD_CODE: "CUSTOM_CLOUD_CODE";
|
|
12
|
+
readonly FILE_READER: "FILE_READER";
|
|
13
|
+
};
|
|
14
|
+
export declare const KBToolSubTypes: {
|
|
15
|
+
readonly SEARCH: "SEARCH";
|
|
16
|
+
readonly ADD_DOCUMENT: "ADD_DOCUMENT";
|
|
17
|
+
readonly DELETE_DOCUMENT: "DELETE_DOCUMENT";
|
|
18
|
+
readonly DELETE_BY_FILTER: "DELETE_BY_FILTER";
|
|
19
|
+
readonly LIST_DOCUMENTS: "LIST_DOCUMENTS";
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CUSTOM_API_KEY_ID = "custom";
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export declare const Modes: {
|
|
2
|
+
CLOUD: string;
|
|
3
|
+
ENTERPRISE: string;
|
|
4
|
+
MANAGED: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const Sections: {
|
|
7
|
+
DATA: string;
|
|
8
|
+
USERS: string;
|
|
9
|
+
MESSAGING: string;
|
|
10
|
+
FILES: string;
|
|
11
|
+
MANAGE: string;
|
|
12
|
+
UI_BUILDER: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const OnboardingCampaigns: {
|
|
15
|
+
FLOW_RUNNER: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const ClientTypes: {
|
|
18
|
+
ALL: string;
|
|
19
|
+
ANDROID: string;
|
|
20
|
+
IOS: string;
|
|
21
|
+
JS: string;
|
|
22
|
+
REST: string;
|
|
23
|
+
WP: string;
|
|
24
|
+
BL: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const ClientTypeLabels: {
|
|
27
|
+
[ClientTypes.ALL]: string;
|
|
28
|
+
[ClientTypes.ANDROID]: string;
|
|
29
|
+
[ClientTypes.IOS]: string;
|
|
30
|
+
[ClientTypes.JS]: string;
|
|
31
|
+
[ClientTypes.REST]: string;
|
|
32
|
+
[ClientTypes.WP]: string;
|
|
33
|
+
[ClientTypes.BL]: string;
|
|
34
|
+
};
|
|
35
|
+
export declare const HiddenAPIKeysForFR: {
|
|
36
|
+
[ClientTypes.ANDROID]: number;
|
|
37
|
+
[ClientTypes.IOS]: number;
|
|
38
|
+
[ClientTypes.JS]: number;
|
|
39
|
+
[ClientTypes.WP]: number;
|
|
40
|
+
[ClientTypes.BL]: number;
|
|
41
|
+
};
|
|
42
|
+
export declare const Versions: {
|
|
43
|
+
isHigherOrEqualVersion: (version: string, comparedVersion: string) => boolean;
|
|
44
|
+
};
|
|
45
|
+
export declare const API_KEY_LENGTH = 36;
|
|
46
|
+
export declare const PRESERVED_SCREENS: {
|
|
47
|
+
'oauth-connections': number;
|
|
48
|
+
'api-keys': number;
|
|
49
|
+
calendars: number;
|
|
50
|
+
'audit-log': number;
|
|
51
|
+
compliance: number;
|
|
52
|
+
'panic-mode': number;
|
|
53
|
+
general: number;
|
|
54
|
+
team: number;
|
|
55
|
+
billing: number;
|
|
56
|
+
'log-management': number;
|
|
57
|
+
};
|
|
58
|
+
export type PreservedScreenType = keyof typeof PRESERVED_SCREENS;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const PLAN_COMPONENTS_IDS: {
|
|
2
|
+
TIMER_FREQUENCY: string;
|
|
3
|
+
};
|
|
4
|
+
export type BillingPlanId = 'free' | 'starter' | 'starter_plus' | 'growth' | 'growth_plus' | 'growth_pro' | 'professional' | 'business' | 'enterprise';
|
|
5
|
+
export declare const BillingPlans: {
|
|
6
|
+
readonly FREE: "free";
|
|
7
|
+
readonly STARTER: "starter";
|
|
8
|
+
readonly STARTER_PLUS: "starter_plus";
|
|
9
|
+
readonly GROWTH: "growth";
|
|
10
|
+
readonly GROWTH_PLUS: "growth_plus";
|
|
11
|
+
readonly GROWTH_PRO: "growth_pro";
|
|
12
|
+
readonly PROFESSIONAL: "professional";
|
|
13
|
+
readonly BUSINESS: "business";
|
|
14
|
+
readonly ENTERPRISE: "enterprise";
|
|
15
|
+
};
|
|
16
|
+
export declare const BillingPlanList: ("enterprise" | "free" | "starter" | "starter_plus" | "growth" | "growth_plus" | "growth_pro" | "professional" | "business")[];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
interface PageSizesArray extends Array<number> {
|
|
2
|
+
DEFAULT: number;
|
|
3
|
+
}
|
|
4
|
+
export declare const PAGE_SIZES: PageSizesArray;
|
|
5
|
+
export declare const DataTypes: {
|
|
6
|
+
readonly INT: "INT";
|
|
7
|
+
readonly DOUBLE: "DOUBLE";
|
|
8
|
+
readonly BOOLEAN: "BOOLEAN";
|
|
9
|
+
readonly STRING: "STRING";
|
|
10
|
+
readonly DATETIME: "DATETIME";
|
|
11
|
+
readonly JSON: "JSON";
|
|
12
|
+
readonly OBJECT: "OBJECT";
|
|
13
|
+
readonly ARRAY: "ARRAY";
|
|
14
|
+
};
|
|
15
|
+
export type DataTypes = typeof DataTypes[keyof typeof DataTypes];
|
|
16
|
+
export declare const DataTypesLabels: {
|
|
17
|
+
STRING: string;
|
|
18
|
+
DATETIME: string;
|
|
19
|
+
INT: string;
|
|
20
|
+
DOUBLE: string;
|
|
21
|
+
BOOLEAN: string;
|
|
22
|
+
JSON: string;
|
|
23
|
+
OBJECT: string;
|
|
24
|
+
ARRAY: string;
|
|
25
|
+
};
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare enum CommonErrorTypes {
|
|
2
|
+
INTERNAL_SERVER_ERROR = "INTERNAL_SERVER_ERROR",
|
|
3
|
+
VALIDATION_ERROR = "VALIDATION_ERROR",
|
|
4
|
+
NOT_FOUND = "NOT_FOUND",
|
|
5
|
+
BAD_REQUEST = "BAD_REQUEST",
|
|
6
|
+
INVALID_OPERATION = "INVALID_OPERATION",
|
|
7
|
+
NOT_AUTHORIZED = "NOT_AUTHORIZED",
|
|
8
|
+
FORBIDDEN = "FORBIDDEN",
|
|
9
|
+
CONFLICT = "CONFLICT",
|
|
10
|
+
RESOURCE_NOT_AVAILABLE = "RESOURCE_NOT_AVAILABLE",
|
|
11
|
+
LOCKED = "LOCKED",
|
|
12
|
+
S3_ERROR = "S3_ERROR",
|
|
13
|
+
CLI_TOKEN_EXPIRED = "CLI_TOKEN_EXPIRED",
|
|
14
|
+
K8S_POD_EXECUTION_ERROR = "K8S_POD_EXECUTION_ERROR",
|
|
15
|
+
VECTOR_SEARCH_ERROR = "VECTOR_SEARCH_ERROR"
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const FlowStatuses: {
|
|
2
|
+
readonly READY: "READY";
|
|
3
|
+
readonly RUNNING: "RUNNING";
|
|
4
|
+
readonly LIVE: "LIVE";
|
|
5
|
+
readonly PAUSED: "PAUSED";
|
|
6
|
+
readonly INVALID: "INVALID";
|
|
7
|
+
readonly SUSPENDED: "SUSPENDED";
|
|
8
|
+
readonly STOPPING: "STOPPING";
|
|
9
|
+
readonly SUSPENDING: "SUSPENDING";
|
|
10
|
+
readonly DEACTIVATING: "DEACTIVATING";
|
|
11
|
+
};
|
|
12
|
+
export type FlowStatuses = typeof FlowStatuses[keyof typeof FlowStatuses];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from './ai';
|
|
2
|
+
export * from './ai-agent-tools';
|
|
3
|
+
export * from './api-keys';
|
|
4
|
+
export * from './app';
|
|
5
|
+
export * from './billing';
|
|
6
|
+
export * from './compliances';
|
|
7
|
+
export * from './data-types';
|
|
8
|
+
export * from './error-codes';
|
|
9
|
+
export * from './knowledge-base';
|
|
10
|
+
export * from './notification-types';
|
|
11
|
+
export * from './notifications';
|
|
12
|
+
export * from './patterns';
|
|
13
|
+
export * from './retry-policy';
|
|
14
|
+
export * from './severity';
|
|
15
|
+
export * from './shared-extensions';
|
|
16
|
+
export * from './shared-extensions-search';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const VectorStoreAdapters: {
|
|
2
|
+
readonly QDRANT: "QDRANT";
|
|
3
|
+
readonly MONGODB_ATLAS: "MONGODB_ATLAS";
|
|
4
|
+
readonly POSTGRESQL: "POSTGRESQL";
|
|
5
|
+
};
|
|
6
|
+
export type VectorStoreAdapters = typeof VectorStoreAdapters[keyof typeof VectorStoreAdapters];
|
|
7
|
+
export declare const KNOWLEDGE_BASE_ELEMENT_SERVICE_INFO: {
|
|
8
|
+
logo: {
|
|
9
|
+
letters: string;
|
|
10
|
+
icon: string;
|
|
11
|
+
color: string;
|
|
12
|
+
};
|
|
13
|
+
};
|