@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,87 @@
|
|
|
1
|
+
import type { RemoteService } from '../../api/console-client';
|
|
2
|
+
import type { AuthGap } from '../../project/auth';
|
|
3
|
+
import type { OperationOptions } from '../types';
|
|
4
|
+
export { declaredDependencies, extractService, isSafeServiceId } from './extract';
|
|
5
|
+
/**
|
|
6
|
+
* What the local copy of a service is, relative to the deployed one.
|
|
7
|
+
*
|
|
8
|
+
* Decided on `sourceHash`, which covers the service folder and nothing else — so the answer holds wherever
|
|
9
|
+
* the service is checked out, and "same version" and "same code" are the same question.
|
|
10
|
+
*/
|
|
11
|
+
export type LocalState = 'absent' | 'same' | 'different';
|
|
12
|
+
export type PullEvent = {
|
|
13
|
+
type: 'listed';
|
|
14
|
+
services: RemoteService[];
|
|
15
|
+
workspace: Workspace;
|
|
16
|
+
} | {
|
|
17
|
+
type: 'selected';
|
|
18
|
+
services: RemoteService[];
|
|
19
|
+
} | {
|
|
20
|
+
type: 'up-to-date';
|
|
21
|
+
serviceId: string;
|
|
22
|
+
sourceHash: string;
|
|
23
|
+
} | {
|
|
24
|
+
type: 'skipped';
|
|
25
|
+
serviceId: string;
|
|
26
|
+
reason: string;
|
|
27
|
+
} | {
|
|
28
|
+
type: 'pulled';
|
|
29
|
+
serviceId: string;
|
|
30
|
+
sourceHash: string;
|
|
31
|
+
files: number;
|
|
32
|
+
directory: string;
|
|
33
|
+
} | {
|
|
34
|
+
type: 'install-needed';
|
|
35
|
+
serviceId: string;
|
|
36
|
+
dependencies: string[];
|
|
37
|
+
};
|
|
38
|
+
export interface Workspace {
|
|
39
|
+
workspaceId: string;
|
|
40
|
+
workspaceName: string;
|
|
41
|
+
}
|
|
42
|
+
export interface PullOptions extends OperationOptions<PullEvent> {
|
|
43
|
+
/** Service ids to pull. Wins over `all`. */
|
|
44
|
+
serviceIds?: string[];
|
|
45
|
+
/** Pull every service in the workspace. */
|
|
46
|
+
all?: boolean;
|
|
47
|
+
/** Overwrite `services/<id>/` when it already exists. Without this, existing folders are left alone. */
|
|
48
|
+
force?: boolean;
|
|
49
|
+
onAuthRequired?: (gap: AuthGap) => Promise<void>;
|
|
50
|
+
onSelectionRequired?: (available: RemoteService[]) => Promise<{
|
|
51
|
+
serviceIds?: string[];
|
|
52
|
+
all?: boolean;
|
|
53
|
+
}>;
|
|
54
|
+
}
|
|
55
|
+
export interface PulledService {
|
|
56
|
+
serviceId: string;
|
|
57
|
+
serviceName: string;
|
|
58
|
+
sourceHash: string;
|
|
59
|
+
files: number;
|
|
60
|
+
directory: string;
|
|
61
|
+
/** What the service declares. Non-empty means `npm install` is needed in its folder before it will run. */
|
|
62
|
+
dependencies: string[];
|
|
63
|
+
}
|
|
64
|
+
export interface PullResult {
|
|
65
|
+
workspace: Workspace;
|
|
66
|
+
serverUrl: string;
|
|
67
|
+
/** Services written to disk. */
|
|
68
|
+
services: PulledService[];
|
|
69
|
+
/** Already identical to what is deployed — nothing to download, nothing to write. */
|
|
70
|
+
upToDate: {
|
|
71
|
+
serviceId: string;
|
|
72
|
+
serviceName: string;
|
|
73
|
+
sourceHash: string;
|
|
74
|
+
}[];
|
|
75
|
+
/** Selected but not written: a local copy that differs, without `--force`. */
|
|
76
|
+
skipped: {
|
|
77
|
+
serviceId: string;
|
|
78
|
+
reason: string;
|
|
79
|
+
}[];
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* How the local `services/<id>/` compares to the deployed service.
|
|
83
|
+
*
|
|
84
|
+
* A folder that is not there is `absent`; anything else is decided on the hash a deploy would produce.
|
|
85
|
+
*/
|
|
86
|
+
export declare function localState(projectRoot: string, service: RemoteService): Promise<LocalState>;
|
|
87
|
+
export declare function pull(options?: PullOptions): Promise<PullResult>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ClusterName } from '../constants';
|
|
2
|
+
export declare const CLUSTER_NAMES: ClusterName[];
|
|
3
|
+
/** Trailing slashes are noise: the same server typed two ways must compare equal. */
|
|
4
|
+
export declare function normalizeServerUrl(serverUrl: string): string;
|
|
5
|
+
/** Which cluster a URL is, or null when it is not one of ours. */
|
|
6
|
+
export declare function clusterFor(serverUrl: string): ClusterName | null;
|
|
7
|
+
/**
|
|
8
|
+
* Resolve `prod` / `dev` / `local`, or an explicit URL, to a server URL.
|
|
9
|
+
*
|
|
10
|
+
* Anything that is not a known name and does not look like a URL is refused rather than passed through: a
|
|
11
|
+
* mistyped `prd` would otherwise be stored as a server address and fail much later, against a host that
|
|
12
|
+
* does not exist.
|
|
13
|
+
*/
|
|
14
|
+
export declare function resolveServerTarget(target: string): string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Progress, as structured events rather than sentences.
|
|
3
|
+
*
|
|
4
|
+
* An operation that called `report('Packaged 1.2 MB')` would still be composing English for a human, which
|
|
5
|
+
* is the thing being moved out of this layer — and a caller rendering progress into a web page or a log line
|
|
6
|
+
* would have to parse it back apart. Each operation declares its own event union instead, and whoever is
|
|
7
|
+
* watching decides what those events look like. `cli/reporter.ts` turns them into the terminal output the
|
|
8
|
+
* CLI has always produced.
|
|
9
|
+
*/
|
|
10
|
+
export interface OperationOptions<TEvent = never> {
|
|
11
|
+
/**
|
|
12
|
+
* Which project to work on. Defaults to the current directory, because that is what a command means, but
|
|
13
|
+
* a caller driving this from code usually has a project somewhere else in mind.
|
|
14
|
+
*/
|
|
15
|
+
cwd?: string;
|
|
16
|
+
/** Called as the operation progresses. Omitted means the operation runs silently, which is the default. */
|
|
17
|
+
onEvent?: (event: TEvent) => void;
|
|
18
|
+
}
|
|
19
|
+
/** Narrows `options.onEvent` to something always callable, so operations need no null checks. */
|
|
20
|
+
export declare function emitter<TEvent>(options: OperationOptions<TEvent>): (event: TEvent) => void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ClusterName } from '../constants';
|
|
2
|
+
import type { OperationOptions } from './types';
|
|
3
|
+
export { CLUSTER_NAMES, clusterFor, normalizeServerUrl, resolveServerTarget } from './server-target';
|
|
4
|
+
export interface UseServerResult {
|
|
5
|
+
/** The cluster switched to, or null for a URL that is not one of ours. */
|
|
6
|
+
cluster: ClusterName | null;
|
|
7
|
+
serverUrl: string;
|
|
8
|
+
previousServerUrl: string;
|
|
9
|
+
/** False when the project was already pointed at this server — nothing was touched. */
|
|
10
|
+
changed: boolean;
|
|
11
|
+
/** A login existed for the previous server and was detached. */
|
|
12
|
+
clearedLogin: boolean;
|
|
13
|
+
/** The workspace that was detached, if there was one. */
|
|
14
|
+
clearedWorkspaceId: string;
|
|
15
|
+
}
|
|
16
|
+
/** Point the project at `target`, detaching any login that belonged to the server it was on. */
|
|
17
|
+
export declare function useServer(target: string, options?: OperationOptions): UseServerResult;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export interface StoredAuth {
|
|
2
|
+
serverUrl: string;
|
|
3
|
+
workspaceId: string;
|
|
4
|
+
workspaceName: string;
|
|
5
|
+
deployToken: string;
|
|
6
|
+
}
|
|
7
|
+
/** What is missing, when something is. The two gaps have different causes and different fixes. */
|
|
8
|
+
export type AuthGap = 'not-logged-in' | 'no-workspace';
|
|
9
|
+
/** What a completed login has to write down. `workspaceName` is cosmetic and an older console may not send it. */
|
|
10
|
+
export interface AuthToSave {
|
|
11
|
+
serverUrl: string;
|
|
12
|
+
workspaceId: string;
|
|
13
|
+
deployToken: string;
|
|
14
|
+
workspaceName?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function saveAuth({ serverUrl, workspaceId, deployToken, workspaceName }: AuthToSave, projectRoot?: string): void;
|
|
17
|
+
export declare function loadAuth(projectRoot?: string): StoredAuth | null;
|
|
18
|
+
export declare function clearAuth(projectRoot?: string): void;
|
|
19
|
+
/** Which half of the connection is missing, or null when the project is fully connected. */
|
|
20
|
+
export declare function authGap(stored: StoredAuth | null): AuthGap | null;
|
|
21
|
+
/**
|
|
22
|
+
* The credentials, or a thrown error naming what is absent.
|
|
23
|
+
*
|
|
24
|
+
* Deliberately does nothing about the gap. Offering a login is an interaction, and an operation that opens
|
|
25
|
+
* a browser on its own cannot be called from a program, a test or a CI job — so the offer lives in `cli/`
|
|
26
|
+
* and this stays a question with two possible answers.
|
|
27
|
+
*/
|
|
28
|
+
export declare function requireAuth(projectRoot?: string): StoredAuth;
|
|
29
|
+
/**
|
|
30
|
+
* How to refer to the connected workspace in output: its name when the console gave us one, else the id.
|
|
31
|
+
*
|
|
32
|
+
* The full form states the connection — name *and* id, since the id is what lives in `flowrunner.json`. The
|
|
33
|
+
* short form is for every mention after that: repeating a GUID three times in one screen of output is noise
|
|
34
|
+
* that makes the name harder to notice, not easier.
|
|
35
|
+
*/
|
|
36
|
+
export declare function describeWorkspace({ workspaceId, workspaceName }: {
|
|
37
|
+
workspaceId: string;
|
|
38
|
+
workspaceName?: string;
|
|
39
|
+
}, { short }?: {
|
|
40
|
+
short?: boolean;
|
|
41
|
+
}): string;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface ProjectConfig {
|
|
2
|
+
serverUrl?: string;
|
|
3
|
+
workspaceId?: string;
|
|
4
|
+
/** Cosmetic: which workspace the id refers to, so the CLI can name it instead of printing a GUID. */
|
|
5
|
+
workspaceName?: string;
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
}
|
|
8
|
+
export interface EnsuredServerUrl {
|
|
9
|
+
serverUrl: string;
|
|
10
|
+
/** `flowrunner.json` did not exist and was created. */
|
|
11
|
+
created: boolean;
|
|
12
|
+
/** It existed but did not name a server, or named a different one, and was rewritten. */
|
|
13
|
+
updated: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function configPath(projectRoot?: string): string;
|
|
16
|
+
export declare function readConfig(projectRoot?: string): ProjectConfig;
|
|
17
|
+
export declare function writeConfig(config: ProjectConfig, projectRoot?: string): void;
|
|
18
|
+
/**
|
|
19
|
+
* Which console this project talks to: the project file first, then the environment, then the shipped
|
|
20
|
+
* default. Never empty — a project that has never logged in still has somewhere to log in to.
|
|
21
|
+
*/
|
|
22
|
+
export declare function getServerUrl(projectRoot?: string): string;
|
|
23
|
+
export declare function getWorkspaceId(projectRoot?: string): string;
|
|
24
|
+
/**
|
|
25
|
+
* Make the project's server URL explicit in `flowrunner.json`, creating the file if it is missing.
|
|
26
|
+
*
|
|
27
|
+
* Leaving it implicit reads as working by accident: the project would behave differently depending on an
|
|
28
|
+
* environment variable, or on which CLI version happens to be installed. `init` writes the choice down
|
|
29
|
+
* once, and every command after that reads the project's own decision.
|
|
30
|
+
*/
|
|
31
|
+
export declare function ensureServerUrl(projectRoot?: string, serverUrl?: string): EnsuredServerUrl;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function tokenPath(projectRoot?: string): string;
|
|
2
|
+
export declare function readToken(projectRoot?: string): string | null;
|
|
3
|
+
export declare function writeToken(token: string, projectRoot?: string): void;
|
|
4
|
+
export declare function deleteToken(projectRoot?: string): void;
|
|
5
|
+
export declare function ensureGitignore(projectRoot?: string): void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Route } from './types';
|
|
2
|
+
export { callbackRoute } from './routes/callback';
|
|
3
|
+
export type { Route, RouteContext } from './types';
|
|
4
|
+
export interface LocalServer {
|
|
5
|
+
port: number;
|
|
6
|
+
close: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function startLocalServer(routes: Route[]): Promise<LocalServer>;
|
|
9
|
+
export interface CallbackServer extends LocalServer {
|
|
10
|
+
/** Resolves with the exchange code the console redirects back with. */
|
|
11
|
+
waitForCode: () => Promise<string>;
|
|
12
|
+
}
|
|
13
|
+
/** The one composition the login needs: a server whose only route is the authorization callback. */
|
|
14
|
+
export declare function startCallbackServer(): Promise<CallbackServer>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const SUCCESS_HTML = "<!DOCTYPE html>\n<html><head><meta charset=\"UTF-8\"><title>Authorized \u2014 FlowRunner CLI</title>\n<style>\n *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }\n body { font-family: Inter, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif; font-size: 14px; background: #F3F4F6; color: #111827; display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 16px; }\n .card { background: #fff; border-radius: 16px; box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075); width: 100%; max-width: 420px; padding: 32px; text-align: center; }\n .brand { font-size: 20px; font-weight: 700; color: #7f7fed; margin-bottom: 24px; }\n .icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 24px; }\n .icon-success { background: rgba(16,185,129,0.1); color: #10B981; }\n .icon-error { background: rgba(220,38,38,0.1); color: #DC2626; }\n h1 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }\n p { font-size: 14px; color: #6B7280; line-height: 1.5; }\n p + p { margin-top: 4px; }\n</style>\n</head><body>\n<div class=\"card\">\n <div class=\"brand\">FlowRunner</div>\n <div class=\"icon icon-success\">✓</div>\n <h1>Authorization Successful</h1>\n <p>You can close this window and return to the terminal.</p>\n</div>\n</body></html>";
|
|
2
|
+
export declare const ERROR_HTML: (error: string) => string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type http from 'http';
|
|
2
|
+
export interface RouteContext {
|
|
3
|
+
req: http.IncomingMessage;
|
|
4
|
+
res: http.ServerResponse;
|
|
5
|
+
/** The request URL, already parsed — every route wants the query string. */
|
|
6
|
+
url: URL;
|
|
7
|
+
}
|
|
8
|
+
export interface Route {
|
|
9
|
+
method: 'GET' | 'POST';
|
|
10
|
+
path: string;
|
|
11
|
+
handle: (context: RouteContext) => void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type { Answers, Prompt, Template, TemplateFile, TemplateManifest, ValidationContext, Validator, ValidatorName, } from './manifest';
|
|
2
|
+
export { PromptSchema, SERVICE_ID_PATTERN, TemplateManifestSchema, VALIDATORS } from './manifest';
|
|
3
|
+
export { packageRoot, templatesRoot } from './package-root';
|
|
4
|
+
export { serviceDirectory, SERVICES_DIRECTORY, servicesDirectory } from './paths';
|
|
5
|
+
export { DEFAULT_TEMPLATE_ALIAS, DEFAULT_TEMPLATE_ID, defaultTemplate, findTemplate, listTemplates, } from './registry';
|
|
6
|
+
export { applyFilter, interpolate, render, stripConditionals } from './render';
|
|
7
|
+
export type { RenderedFile, ScaffoldResult } from './scaffold';
|
|
8
|
+
export { renderTemplate, scaffoldService } from './scaffold';
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const SERVICE_ID_PATTERN: RegExp;
|
|
3
|
+
export interface ValidationContext {
|
|
4
|
+
/** The project being scaffolded into — an id is only "taken" relative to one project. */
|
|
5
|
+
projectRoot: string;
|
|
6
|
+
}
|
|
7
|
+
/** Returns an error message, or null when the value is acceptable. */
|
|
8
|
+
export type Validator = (value: string, context: ValidationContext) => string | null;
|
|
9
|
+
export declare const VALIDATORS: {
|
|
10
|
+
serviceId: (value: string, context: ValidationContext) => string | null;
|
|
11
|
+
nonEmpty: (value: string) => "must not be empty" | null;
|
|
12
|
+
};
|
|
13
|
+
export type ValidatorName = keyof typeof VALIDATORS;
|
|
14
|
+
export declare const PromptSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
15
|
+
name: z.ZodString;
|
|
16
|
+
label: z.ZodString;
|
|
17
|
+
type: z.ZodLiteral<"string">;
|
|
18
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
19
|
+
default: z.ZodDefault<z.ZodString>;
|
|
20
|
+
validate: z.ZodOptional<z.ZodEnum<{
|
|
21
|
+
serviceId: "serviceId";
|
|
22
|
+
nonEmpty: "nonEmpty";
|
|
23
|
+
}>>;
|
|
24
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
+
name: z.ZodString;
|
|
26
|
+
label: z.ZodString;
|
|
27
|
+
type: z.ZodLiteral<"boolean">;
|
|
28
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
29
|
+
default: z.ZodDefault<z.ZodBoolean>;
|
|
30
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
+
name: z.ZodString;
|
|
32
|
+
label: z.ZodString;
|
|
33
|
+
type: z.ZodLiteral<"choice">;
|
|
34
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
35
|
+
default: z.ZodString;
|
|
36
|
+
options: z.ZodArray<z.ZodObject<{
|
|
37
|
+
value: z.ZodString;
|
|
38
|
+
label: z.ZodString;
|
|
39
|
+
description: z.ZodOptional<z.ZodString>;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
}, z.core.$strip>], "type">;
|
|
42
|
+
export declare const TemplateFileSchema: z.ZodObject<{
|
|
43
|
+
from: z.ZodString;
|
|
44
|
+
to: z.ZodString;
|
|
45
|
+
when: z.ZodOptional<z.ZodString>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
export declare const TemplateManifestSchema: z.ZodObject<{
|
|
48
|
+
id: z.ZodString;
|
|
49
|
+
label: z.ZodString;
|
|
50
|
+
description: z.ZodString;
|
|
51
|
+
prompts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
52
|
+
name: z.ZodString;
|
|
53
|
+
label: z.ZodString;
|
|
54
|
+
type: z.ZodLiteral<"string">;
|
|
55
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
56
|
+
default: z.ZodDefault<z.ZodString>;
|
|
57
|
+
validate: z.ZodOptional<z.ZodEnum<{
|
|
58
|
+
serviceId: "serviceId";
|
|
59
|
+
nonEmpty: "nonEmpty";
|
|
60
|
+
}>>;
|
|
61
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
62
|
+
name: z.ZodString;
|
|
63
|
+
label: z.ZodString;
|
|
64
|
+
type: z.ZodLiteral<"boolean">;
|
|
65
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
66
|
+
default: z.ZodDefault<z.ZodBoolean>;
|
|
67
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
68
|
+
name: z.ZodString;
|
|
69
|
+
label: z.ZodString;
|
|
70
|
+
type: z.ZodLiteral<"choice">;
|
|
71
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
72
|
+
default: z.ZodString;
|
|
73
|
+
options: z.ZodArray<z.ZodObject<{
|
|
74
|
+
value: z.ZodString;
|
|
75
|
+
label: z.ZodString;
|
|
76
|
+
description: z.ZodOptional<z.ZodString>;
|
|
77
|
+
}, z.core.$strip>>;
|
|
78
|
+
}, z.core.$strip>], "type">>;
|
|
79
|
+
values: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>>;
|
|
80
|
+
files: z.ZodArray<z.ZodObject<{
|
|
81
|
+
from: z.ZodString;
|
|
82
|
+
to: z.ZodString;
|
|
83
|
+
when: z.ZodOptional<z.ZodString>;
|
|
84
|
+
}, z.core.$strip>>;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
export type Prompt = z.infer<typeof PromptSchema>;
|
|
87
|
+
export type TemplateFile = z.infer<typeof TemplateFileSchema>;
|
|
88
|
+
export type TemplateManifest = z.infer<typeof TemplateManifestSchema>;
|
|
89
|
+
export type Answers = Record<string, string | boolean>;
|
|
90
|
+
/** A manifest plus where it was loaded from, so file paths resolve against the right template. */
|
|
91
|
+
export interface Template {
|
|
92
|
+
manifest: TemplateManifest;
|
|
93
|
+
/** Absolute path of the template directory (the one holding `template.json`). */
|
|
94
|
+
directory: string;
|
|
95
|
+
/** Whether this is the default template. Decided by the registry, not declared by the manifest. */
|
|
96
|
+
isDefault: boolean;
|
|
97
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Template } from './manifest';
|
|
2
|
+
/** The template `flowrunner cs demo` resolves to, and the one that heads the interactive picker. */
|
|
3
|
+
export declare const DEFAULT_TEMPLATE_ID = "demo-todo-list";
|
|
4
|
+
/**
|
|
5
|
+
* A stable shorthand for "whichever template is the default one", so `flowrunner cs demo` keeps working
|
|
6
|
+
* if the default moves. The default template's own id still resolves normally.
|
|
7
|
+
*/
|
|
8
|
+
export declare const DEFAULT_TEMPLATE_ALIAS = "demo";
|
|
9
|
+
/** Every template shipped with the CLI — the default one first, then alphabetically. */
|
|
10
|
+
export declare function listTemplates(): Template[];
|
|
11
|
+
export declare function defaultTemplate(): Template | null;
|
|
12
|
+
/** Resolves a template id, or the `demo` alias, to a template. */
|
|
13
|
+
export declare function findTemplate(id: string): Template | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Answers } from './manifest';
|
|
2
|
+
export declare function applyFilter(name: string, value: string): string;
|
|
3
|
+
/**
|
|
4
|
+
* Substitute `{{name}}` / `{{name|filter}}` against the answers.
|
|
5
|
+
*
|
|
6
|
+
* An unknown key is an error rather than an empty string: a typo in a template would otherwise ship a
|
|
7
|
+
* silently broken service, and the generated file is the thing a user reads to learn the format.
|
|
8
|
+
*/
|
|
9
|
+
export declare function interpolate(source: string, answers: Answers, origin: string): string;
|
|
10
|
+
/** Drop the lines inside `{{#if flag}}` blocks whose flag is falsy, and the marker lines themselves. */
|
|
11
|
+
export declare function stripConditionals(source: string, answers: Answers, origin: string): string;
|
|
12
|
+
/** Full render of one template file: conditionals first, so a dropped block's placeholders never resolve. */
|
|
13
|
+
export declare function render(source: string, answers: Answers, origin: string): string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Answers, Template } from './manifest';
|
|
2
|
+
export interface RenderedFile {
|
|
3
|
+
/** Path relative to the service directory, e.g. `src/index.js`. */
|
|
4
|
+
relativePath: string;
|
|
5
|
+
contents: Buffer;
|
|
6
|
+
}
|
|
7
|
+
export interface ScaffoldResult {
|
|
8
|
+
serviceDirectory: string;
|
|
9
|
+
files: RenderedFile[];
|
|
10
|
+
createdServicesDirectory: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Render every file the template declares, in memory.
|
|
14
|
+
*
|
|
15
|
+
* Nothing touches disk here: a bad placeholder or an unknown flag must fail before the first `mkdir`, or
|
|
16
|
+
* the user is left cleaning up a half-written service directory by hand.
|
|
17
|
+
*/
|
|
18
|
+
export declare function renderTemplate(template: Template, answers: Answers): RenderedFile[];
|
|
19
|
+
/**
|
|
20
|
+
* Write a rendered template into `services/<serviceId>/` under `projectRoot`.
|
|
21
|
+
*
|
|
22
|
+
* Refuses an existing service directory outright — overwriting one would silently discard work, and the
|
|
23
|
+
* service id is frozen once deployed, so a collision is far more likely to be a mistake than an intent.
|
|
24
|
+
*/
|
|
25
|
+
export declare function scaffoldService(template: Template, answers: Answers, serviceId: string, projectRoot?: string): ScaffoldResult;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The invocation for text written to FILES.
|
|
3
|
+
*
|
|
4
|
+
* A README is committed and read on machines other than the one that generated it, so it cannot encode this
|
|
5
|
+
* machine's PATH. `npx` resolves `node_modules/.bin` first and falls back to PATH, so it is right for a
|
|
6
|
+
* local install, a global one, and CI alike.
|
|
7
|
+
*/
|
|
8
|
+
export declare const PORTABLE_CLI_COMMAND = "npx flowrunner";
|
|
9
|
+
/**
|
|
10
|
+
* Whether a global install has put `flowrunner` on PATH.
|
|
11
|
+
*
|
|
12
|
+
* This is what makes the bare command usable at all — and, with the launcher in `bin/resolve-local.js`,
|
|
13
|
+
* what lets it hand over to the project's own copy.
|
|
14
|
+
*/
|
|
15
|
+
export declare function hasGlobalInstall(): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The invocation to PRINT, for the person at this keyboard right now.
|
|
18
|
+
*
|
|
19
|
+
* Bare when a global install makes it resolvable, `npx flowrunner` otherwise — so every hint the CLI prints
|
|
20
|
+
* is one the reader can actually paste. Wrong only in the safe direction: a terminal that injects
|
|
21
|
+
* `node_modules/.bin` gets the `npx` form, which still runs. It never prints a bare command that fails.
|
|
22
|
+
*
|
|
23
|
+
* Both forms run the same code: the bare one goes through the global launcher, which delegates to the
|
|
24
|
+
* project's copy, and `npx` resolves that copy directly.
|
|
25
|
+
*/
|
|
26
|
+
export declare function cliCommand(): string;
|
|
27
|
+
/** Testing seam: the answer is cached because it cannot change within one run. */
|
|
28
|
+
export declare function resetCliCommandCache(): void;
|
|
@@ -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];
|