@flowrunner/cli 0.1.18 → 0.1.19-dev.2
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/ai-docs/instructions/service-code-format/01-service-structure.md +1 -1
- package/ai-docs/instructions/service-code-format/02-zod-types.md +115 -7
- package/ai-docs/instructions/service-code-format/05-dictionaries.md +1 -1
- package/ai-docs/instructions/service-code-format/11-output-model.md +5 -5
- package/ai-docs/instructions/service-code-format/13-runtime-contracts.md +2 -3
- package/ai-docs/instructions/service-code-format/16-gotchas.md +30 -6
- package/ai-docs/instructions/service-code-format/README.md +2 -2
- package/dist/cli.js +944 -958
- package/dist/cli.js.map +4 -4
- package/dist/index.js +977 -988
- package/dist/index.js.map +4 -4
- package/{runtime/types/flow-extension-runner/src/v2 → dist/types/flow-extension-runner/src}/context/execution-context.d.ts +10 -2
- package/{runtime/types/flow-extension-runner/src/v2 → dist/types/flow-extension-runner/src}/extension.d.ts +3 -3
- package/dist/types/flow-extension-runner/src/global.d.ts +6 -18
- package/dist/types/flow-extension-runner/src/index.d.ts +39 -13
- package/{runtime/types/flow-extension-runner/src/v2 → dist/types/flow-extension-runner/src}/model/field-mapper.d.ts +1 -1
- package/dist/types/flow-extension-runner/src/{v2/model → model}/model-types.d.ts +11 -1
- package/dist/types/flow-extension-runner/src/{v2/model → model}/params-model.d.ts +1 -1
- package/dist/types/flow-extension-runner/src/{v2/params → params}/config-params.d.ts +1 -1
- package/{runtime/types/flow-extension-runner/src/v2 → dist/types/flow-extension-runner/src}/params/index.d.ts +2 -0
- package/dist/types/flow-extension-runner/src/{v2/params → params}/json/types.d.ts +2 -0
- package/dist/types/flow-extension-runner/src/params/schema/date-format.d.ts +80 -0
- package/{runtime/types/flow-extension-runner/src/v2 → dist/types/flow-extension-runner/src}/params/schema/defaults.d.ts +3 -2
- package/{runtime/types/flow-extension-runner/src/v2 → dist/types/flow-extension-runner/src}/params/schema/field-plan.d.ts +9 -2
- package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/introspect.d.ts +8 -0
- package/{runtime/types/flow-extension-runner/src/v2 → dist/types/flow-extension-runner/src}/params/schema/messages.d.ts +1 -1
- package/{runtime/types/flow-extension-runner/src/v2 → dist/types/flow-extension-runner/src}/params/schema/normalize.d.ts +1 -1
- package/dist/types/flow-extension-runner/src/params/schema/notices.d.ts +15 -0
- package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/parse.d.ts +1 -1
- package/{runtime/types/flow-extension-runner/src/v2 → dist/types/flow-extension-runner/src}/params/types.d.ts +1 -1
- package/{runtime/types/flow-extension-runner/src/v2 → dist/types/flow-extension-runner/src}/params/zod.d.ts +21 -0
- package/{runtime/types/flow-extension-runner/src/v2 → dist/types/flow-extension-runner/src}/registry.d.ts +2 -0
- package/dist/types/flow-extension-runner/src/{v2/types.d.ts → types.d.ts} +1 -1
- package/dist/types/packages/cli/src/operations/deploy/discover-services.d.ts +2 -4
- package/dist/types/shared/src/constants/activity-log.d.ts +248 -2
- package/dist/types/shared/src/constants/error-codes.d.ts +6 -0
- package/dist/types/shared/src/constants/index.d.ts +1 -0
- package/dist/types/shared/src/constants/notification-types.d.ts +309 -0
- package/dist/types/shared/src/constants/panic-mode.d.ts +17 -0
- package/dist/types/shared/src/constants/shared-extensions.d.ts +10 -0
- package/dist/types/shared/src/errors/index.d.ts +1 -0
- package/dist/types/shared/src/errors/secrets.d.ts +16 -0
- package/dist/types/shared/src/scheme/access-keys/dto.d.ts +35 -13
- package/dist/types/shared/src/scheme/api-keys/dto.d.ts +29 -4
- package/dist/types/shared/src/scheme/flowrunner/custom-elements.d.ts +0 -16
- package/dist/types/shared/src/scheme/flowrunner/index.d.ts +1 -0
- package/dist/types/shared/src/scheme/flowrunner/java.dto.d.ts +26 -0
- package/dist/types/shared/src/scheme/flowrunner/workspace-dashboard.dto.d.ts +207 -0
- package/dist/types/shared/src/scheme/integration-connection/dto.d.ts +22 -0
- package/dist/types/shared/src/scheme/notifications/dto.d.ts +10 -0
- package/dist/types/shared/src/scheme/notifications/rest.d.ts +20 -0
- package/dist/types/shared/src/scheme/remote-mcp-server/dto.d.ts +153 -29
- package/dist/types/shared/src/scheme/shared-extensions/base.d.ts +0 -4
- package/dist/types/shared/src/scheme/shared-extensions/custom-extensions.d.ts +0 -24
- package/dist/types/shared/src/scheme/shared-extensions/extension.d.ts +0 -18
- package/dist/types/shared/src/scheme/shared-extensions/flow-extensions.d.ts +0 -3
- package/dist/types/shared/src/scheme/shared-extensions/index.d.ts +1 -0
- package/dist/types/shared/src/scheme/shared-extensions/list.d.ts +0 -28
- package/dist/types/shared/src/scheme/shared-extensions/methods.d.ts +0 -1
- package/dist/types/shared/src/scheme/shared-extensions/resolve.d.ts +0 -12
- package/dist/types/shared/src/scheme/shared-extensions/search.d.ts +0 -8
- package/dist/types/shared/src/scheme/shared-extensions/usage-stats.d.ts +189 -0
- package/package.json +1 -4
- package/project-files/sandbox/files-mock.js +3 -5
- package/project-files/sandbox/service.js +10 -11
- package/runtime/index.js +794 -896
- package/runtime/index.js.map +4 -4
- package/{dist/types/flow-extension-runner/src/v2 → runtime/types/flow-extension-runner/src}/context/execution-context.d.ts +10 -2
- package/{dist/types/flow-extension-runner/src/v2 → runtime/types/flow-extension-runner/src}/extension.d.ts +3 -3
- package/runtime/types/flow-extension-runner/src/global.d.ts +6 -18
- package/runtime/types/flow-extension-runner/src/index.d.ts +39 -13
- package/{dist/types/flow-extension-runner/src/v2 → runtime/types/flow-extension-runner/src}/model/field-mapper.d.ts +1 -1
- package/runtime/types/flow-extension-runner/src/{v2/model → model}/model-types.d.ts +11 -1
- package/runtime/types/flow-extension-runner/src/{v2/model → model}/params-model.d.ts +1 -1
- package/runtime/types/flow-extension-runner/src/{v2/params → params}/config-params.d.ts +1 -1
- package/{dist/types/flow-extension-runner/src/v2 → runtime/types/flow-extension-runner/src}/params/index.d.ts +2 -0
- package/runtime/types/flow-extension-runner/src/{v2/params → params}/json/types.d.ts +2 -0
- package/runtime/types/flow-extension-runner/src/params/schema/date-format.d.ts +80 -0
- package/{dist/types/flow-extension-runner/src/v2 → runtime/types/flow-extension-runner/src}/params/schema/defaults.d.ts +3 -2
- package/{dist/types/flow-extension-runner/src/v2 → runtime/types/flow-extension-runner/src}/params/schema/field-plan.d.ts +9 -2
- package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/introspect.d.ts +8 -0
- package/{dist/types/flow-extension-runner/src/v2 → runtime/types/flow-extension-runner/src}/params/schema/messages.d.ts +1 -1
- package/{dist/types/flow-extension-runner/src/v2 → runtime/types/flow-extension-runner/src}/params/schema/normalize.d.ts +1 -1
- package/runtime/types/flow-extension-runner/src/params/schema/notices.d.ts +15 -0
- package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/parse.d.ts +1 -1
- package/{dist/types/flow-extension-runner/src/v2 → runtime/types/flow-extension-runner/src}/params/types.d.ts +1 -1
- package/{dist/types/flow-extension-runner/src/v2 → runtime/types/flow-extension-runner/src}/params/zod.d.ts +21 -0
- package/{dist/types/flow-extension-runner/src/v2 → runtime/types/flow-extension-runner/src}/registry.d.ts +2 -0
- package/runtime/types/flow-extension-runner/src/{v2/types.d.ts → types.d.ts} +1 -1
- package/runtime/types/packages/cli/src/runtime/index.d.ts +6 -5
- package/dist/types/flow-extension-runner/src/common/config.d.ts +0 -12
- package/dist/types/flow-extension-runner/src/common/context.d.ts +0 -6
- package/dist/types/flow-extension-runner/src/common/types.d.ts +0 -11
- package/dist/types/flow-extension-runner/src/v1/config.d.ts +0 -3
- package/dist/types/flow-extension-runner/src/v1/constants.d.ts +0 -4
- package/dist/types/flow-extension-runner/src/v1/index.d.ts +0 -11
- package/dist/types/flow-extension-runner/src/v1/namespace.d.ts +0 -9
- package/dist/types/flow-extension-runner/src/v1/service.d.ts +0 -29
- package/dist/types/flow-extension-runner/src/v1/types.d.ts +0 -13
- package/dist/types/flow-extension-runner/src/v2/index.d.ts +0 -39
- package/dist/types/jsdoc-parser/src/custom-type-defs/files.d.ts +0 -2
- package/dist/types/jsdoc-parser/src/index.d.ts +0 -2
- package/dist/types/jsdoc-parser/src/lib.d.ts +0 -42
- package/dist/types/jsdoc-parser/src/types.d.ts +0 -2
- package/runtime/types/flow-extension-runner/src/common/config.d.ts +0 -12
- package/runtime/types/flow-extension-runner/src/common/context.d.ts +0 -6
- package/runtime/types/flow-extension-runner/src/common/types.d.ts +0 -11
- package/runtime/types/flow-extension-runner/src/v1/config.d.ts +0 -3
- package/runtime/types/flow-extension-runner/src/v1/constants.d.ts +0 -4
- package/runtime/types/flow-extension-runner/src/v1/index.d.ts +0 -11
- package/runtime/types/flow-extension-runner/src/v1/namespace.d.ts +0 -9
- package/runtime/types/flow-extension-runner/src/v1/service.d.ts +0 -29
- package/runtime/types/flow-extension-runner/src/v1/types.d.ts +0 -13
- package/runtime/types/flow-extension-runner/src/v2/index.d.ts +0 -39
- package/runtime/types/jsdoc-parser/src/custom-type-defs/files.d.ts +0 -2
- package/runtime/types/jsdoc-parser/src/index.d.ts +0 -2
- package/runtime/types/jsdoc-parser/src/lib.d.ts +0 -42
- package/runtime/types/jsdoc-parser/src/types.d.ts +0 -2
- package/runtime/types/shared/src/constants/activity-log.d.ts +0 -1573
- package/runtime/types/shared/src/constants/ai-agent-tools.d.ts +0 -20
- package/runtime/types/shared/src/constants/ai.d.ts +0 -11
- package/runtime/types/shared/src/constants/api-keys.d.ts +0 -1
- package/runtime/types/shared/src/constants/app.d.ts +0 -57
- package/runtime/types/shared/src/constants/billing.d.ts +0 -16
- package/runtime/types/shared/src/constants/compliances.d.ts +0 -3
- package/runtime/types/shared/src/constants/data-types.d.ts +0 -26
- package/runtime/types/shared/src/constants/docs.d.ts +0 -6
- package/runtime/types/shared/src/constants/error-codes.d.ts +0 -20
- package/runtime/types/shared/src/constants/flow.d.ts +0 -12
- package/runtime/types/shared/src/constants/index.d.ts +0 -18
- package/runtime/types/shared/src/constants/knowledge-base.d.ts +0 -15
- package/runtime/types/shared/src/constants/notification-types.d.ts +0 -1234
- package/runtime/types/shared/src/constants/notifications.d.ts +0 -10
- package/runtime/types/shared/src/constants/oauth-connection-error.d.ts +0 -3
- package/runtime/types/shared/src/constants/patterns.d.ts +0 -28
- package/runtime/types/shared/src/constants/retry-policy.d.ts +0 -30
- package/runtime/types/shared/src/constants/severity.d.ts +0 -9
- package/runtime/types/shared/src/constants/shared-extensions-search.d.ts +0 -6
- package/runtime/types/shared/src/constants/shared-extensions.d.ts +0 -56
- package/runtime/types/shared/src/constants/zod.d.ts +0 -2
- package/runtime/types/shared/src/errors/api.d.ts +0 -15
- package/runtime/types/shared/src/errors/base.d.ts +0 -38
- package/runtime/types/shared/src/errors/common.d.ts +0 -39
- package/runtime/types/shared/src/errors/index.d.ts +0 -14
- package/runtime/types/shared/src/errors/k8s.d.ts +0 -14
- package/runtime/types/shared/src/errors/message.d.ts +0 -48
- package/runtime/types/shared/src/errors/oauth-connection.d.ts +0 -4
- package/runtime/types/shared/src/errors/open-search.d.ts +0 -4
- package/runtime/types/shared/src/errors/s3.d.ts +0 -11
- package/runtime/types/shared/src/extensions/zod.d.ts +0 -25
- package/runtime/types/shared/src/scheme/access-keys/dto.d.ts +0 -101
- package/runtime/types/shared/src/scheme/access-keys/index.d.ts +0 -2
- package/runtime/types/shared/src/scheme/account/dto.d.ts +0 -63
- package/runtime/types/shared/src/scheme/account/index.d.ts +0 -1
- package/runtime/types/shared/src/scheme/activity-log-base.d.ts +0 -35
- package/runtime/types/shared/src/scheme/ai-agent-tools/dto.d.ts +0 -69
- package/runtime/types/shared/src/scheme/ai-agent-tools/index.d.ts +0 -2
- package/runtime/types/shared/src/scheme/ai-agent-tools/parameters.d.ts +0 -7
- package/runtime/types/shared/src/scheme/ai-router/dto.d.ts +0 -23
- package/runtime/types/shared/src/scheme/ai-router/index.d.ts +0 -2
- package/runtime/types/shared/src/scheme/api-keys/dto.d.ts +0 -28
- package/runtime/types/shared/src/scheme/api-keys/index.d.ts +0 -2
- package/runtime/types/shared/src/scheme/app/index.d.ts +0 -1
- package/runtime/types/shared/src/scheme/app/java.dto.d.ts +0 -6
- package/runtime/types/shared/src/scheme/billing/index.d.ts +0 -1
- package/runtime/types/shared/src/scheme/billing/java.dto.d.ts +0 -181
- package/runtime/types/shared/src/scheme/crm/billing.d.ts +0 -149
- package/runtime/types/shared/src/scheme/crm/dto.d.ts +0 -218
- package/runtime/types/shared/src/scheme/crm/index.d.ts +0 -3
- package/runtime/types/shared/src/scheme/data-types/index.d.ts +0 -1
- package/runtime/types/shared/src/scheme/data-types/java.dto.d.ts +0 -22
- package/runtime/types/shared/src/scheme/dynamic-forms/dto.d.ts +0 -30
- package/runtime/types/shared/src/scheme/dynamic-forms/index.d.ts +0 -2
- package/runtime/types/shared/src/scheme/extensions/index.d.ts +0 -1
- package/runtime/types/shared/src/scheme/extensions/params-to-zod.d.ts +0 -14
- package/runtime/types/shared/src/scheme/flowrunner/custom-elements.d.ts +0 -383
- package/runtime/types/shared/src/scheme/flowrunner/index.d.ts +0 -3
- package/runtime/types/shared/src/scheme/flowrunner/java.dto.d.ts +0 -655
- package/runtime/types/shared/src/scheme/index.d.ts +0 -21
- package/runtime/types/shared/src/scheme/integration-connection/dto.d.ts +0 -135
- package/runtime/types/shared/src/scheme/integration-connection/index.d.ts +0 -2
- package/runtime/types/shared/src/scheme/knowledge-base/dto.d.ts +0 -776
- package/runtime/types/shared/src/scheme/knowledge-base/index.d.ts +0 -2
- package/runtime/types/shared/src/scheme/mcp-oauth/dto.d.ts +0 -9
- package/runtime/types/shared/src/scheme/mcp-oauth/index.d.ts +0 -2
- package/runtime/types/shared/src/scheme/notifications/dto.d.ts +0 -118
- package/runtime/types/shared/src/scheme/notifications/index.d.ts +0 -3
- package/runtime/types/shared/src/scheme/notifications/rest.d.ts +0 -162
- package/runtime/types/shared/src/scheme/onboarding/dto.d.ts +0 -29
- package/runtime/types/shared/src/scheme/onboarding/index.d.ts +0 -1
- package/runtime/types/shared/src/scheme/properties/account.d.ts +0 -3
- package/runtime/types/shared/src/scheme/properties/app.d.ts +0 -5
- package/runtime/types/shared/src/scheme/properties/billing.d.ts +0 -12
- package/runtime/types/shared/src/scheme/properties/common.d.ts +0 -2
- package/runtime/types/shared/src/scheme/properties/db.d.ts +0 -8
- package/runtime/types/shared/src/scheme/properties/flow-extensions.d.ts +0 -7
- package/runtime/types/shared/src/scheme/properties/index.d.ts +0 -7
- package/runtime/types/shared/src/scheme/remote-mcp-server/dto.d.ts +0 -278
- package/runtime/types/shared/src/scheme/remote-mcp-server/index.d.ts +0 -2
- package/runtime/types/shared/src/scheme/shared-extensions/base.d.ts +0 -62
- package/runtime/types/shared/src/scheme/shared-extensions/config.d.ts +0 -96
- package/runtime/types/shared/src/scheme/shared-extensions/custom-extensions.d.ts +0 -631
- package/runtime/types/shared/src/scheme/shared-extensions/extension.d.ts +0 -411
- package/runtime/types/shared/src/scheme/shared-extensions/flow-extensions.d.ts +0 -64
- package/runtime/types/shared/src/scheme/shared-extensions/index.d.ts +0 -17
- package/runtime/types/shared/src/scheme/shared-extensions/light.d.ts +0 -38
- package/runtime/types/shared/src/scheme/shared-extensions/list.d.ts +0 -250
- package/runtime/types/shared/src/scheme/shared-extensions/logs.d.ts +0 -21
- package/runtime/types/shared/src/scheme/shared-extensions/methods.d.ts +0 -112
- package/runtime/types/shared/src/scheme/shared-extensions/params-schema.d.ts +0 -48
- package/runtime/types/shared/src/scheme/shared-extensions/popular-pool.d.ts +0 -11
- package/runtime/types/shared/src/scheme/shared-extensions/resolve.d.ts +0 -373
- package/runtime/types/shared/src/scheme/shared-extensions/rest.d.ts +0 -9
- package/runtime/types/shared/src/scheme/shared-extensions/search.d.ts +0 -189
- package/runtime/types/shared/src/scheme/shared-extensions/service-identity.d.ts +0 -10
- package/runtime/types/shared/src/scheme/shared-extensions/service-info.d.ts +0 -16
- package/runtime/types/shared/src/scheme/shared-extensions/workspace-stack.d.ts +0 -44
- package/runtime/types/shared/src/scheme/workspace/dto.d.ts +0 -40
- package/runtime/types/shared/src/scheme/workspace/index.d.ts +0 -1
- package/runtime/types/shared/src/utils/object.d.ts +0 -8
- package/runtime/types/shared/src/utils/uuid.d.ts +0 -5
- package/runtime/types/shared/src/utils/versions.d.ts +0 -4
- package/dist/types/flow-extension-runner/src/{v2/actions → actions}/action-method.d.ts +0 -0
- package/dist/types/flow-extension-runner/src/{common/context-files.d.ts → context/files.d.ts} +0 -0
- package/dist/types/flow-extension-runner/src/{v2/context → context}/logger.d.ts +0 -0
- package/dist/types/flow-extension-runner/src/{v2/context → context}/method-input.d.ts +0 -0
- package/dist/types/flow-extension-runner/src/{v2/context → context}/proxies.d.ts +0 -0
- package/dist/types/flow-extension-runner/src/{v2/create-extension.d.ts → create-extension.d.ts} +0 -0
- package/dist/types/flow-extension-runner/src/{v2/crypto.d.ts → crypto.d.ts} +0 -0
- package/dist/types/flow-extension-runner/src/{v2/dictionaries → dictionaries}/dictionary-method.d.ts +0 -0
- package/dist/types/flow-extension-runner/src/{v2/dictionaries → dictionaries}/payload-schema.d.ts +0 -0
- package/dist/types/flow-extension-runner/src/{v2/loaders → loaders}/loader-method.d.ts +0 -0
- package/dist/types/flow-extension-runner/src/{v2/loaders → loaders}/loader-owner.d.ts +0 -0
- package/dist/types/flow-extension-runner/src/{v2/loaders → loaders}/payload-schema.d.ts +0 -0
- package/dist/types/flow-extension-runner/src/{v2/method.d.ts → method.d.ts} +0 -0
- package/dist/types/flow-extension-runner/src/{v2/model → model}/method-model.d.ts +0 -0
- package/dist/types/flow-extension-runner/src/{v2/oauth → oauth}/method-names.d.ts +0 -0
- package/dist/types/flow-extension-runner/src/{v2/oauth → oauth}/oauth2.d.ts +0 -0
- package/dist/types/flow-extension-runner/src/{v2/oauth → oauth}/system-params.d.ts +0 -0
- package/dist/types/flow-extension-runner/src/{v2/oauth → oauth}/types.d.ts +0 -0
- package/dist/types/flow-extension-runner/src/{common/constants.d.ts → params/config-types.d.ts} +0 -0
- package/{runtime/types/flow-extension-runner/src/v2 → dist/types/flow-extension-runner/src}/params/files-options.d.ts +4 -4
- /package/dist/types/flow-extension-runner/src/{v2/params → params}/json/checks.d.ts +0 -0
- /package/dist/types/flow-extension-runner/src/{v2/params → params}/json/decode.d.ts +0 -0
- /package/dist/types/flow-extension-runner/src/{v2/params → params}/json/encode.d.ts +0 -0
- /package/dist/types/flow-extension-runner/src/{v2/params → params}/json/values.d.ts +0 -0
- /package/dist/types/flow-extension-runner/src/{v2/params → params}/method-params.d.ts +0 -0
- /package/dist/types/flow-extension-runner/src/{v2/params → params}/params.d.ts +0 -0
- /package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/assert-object-schema.d.ts +0 -0
- /package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/assert-supported-schema.d.ts +0 -0
- /package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/coerce.d.ts +0 -0
- /package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/dates.d.ts +0 -0
- /package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/dictionary-binding.d.ts +0 -0
- /package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/labels.d.ts +0 -0
- /package/dist/types/flow-extension-runner/src/{v2/params → params}/widget-types.d.ts +0 -0
- /package/dist/types/flow-extension-runner/src/{v2/path.d.ts → path.d.ts} +0 -0
- /package/dist/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/mechanisms.d.ts +0 -0
- /package/dist/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/method-names.d.ts +0 -0
- /package/dist/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/polling-triggers.d.ts +0 -0
- /package/dist/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/system-params.d.ts +0 -0
- /package/dist/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/trigger-method.d.ts +0 -0
- /package/dist/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/types.d.ts +0 -0
- /package/dist/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/method-names.d.ts +0 -0
- /package/dist/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/realtime-setup.d.ts +0 -0
- /package/dist/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/system-params.d.ts +0 -0
- /package/dist/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/trigger-method.d.ts +0 -0
- /package/dist/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/types.d.ts +0 -0
- /package/dist/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/verify.d.ts +0 -0
- /package/dist/types/flow-extension-runner/src/{v2/result.d.ts → result.d.ts} +0 -0
- /package/dist/types/flow-extension-runner/src/{v2/system-method.d.ts → system-method.d.ts} +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/actions → actions}/action-method.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{common/context-files.d.ts → context/files.d.ts} +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/context → context}/logger.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/context → context}/method-input.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/context → context}/proxies.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/create-extension.d.ts → create-extension.d.ts} +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/crypto.d.ts → crypto.d.ts} +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/dictionaries → dictionaries}/dictionary-method.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/dictionaries → dictionaries}/payload-schema.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/loaders → loaders}/loader-method.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/loaders → loaders}/loader-owner.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/loaders → loaders}/payload-schema.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/method.d.ts → method.d.ts} +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/model → model}/method-model.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/oauth → oauth}/method-names.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/oauth → oauth}/oauth2.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/oauth → oauth}/system-params.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/oauth → oauth}/types.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{common/constants.d.ts → params/config-types.d.ts} +0 -0
- /package/{dist/types/flow-extension-runner/src/v2 → runtime/types/flow-extension-runner/src}/params/files-options.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/params → params}/json/checks.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/params → params}/json/decode.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/params → params}/json/encode.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/params → params}/json/values.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/params → params}/method-params.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/params → params}/params.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/assert-object-schema.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/assert-supported-schema.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/coerce.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/dates.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/dictionary-binding.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/labels.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/params → params}/widget-types.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/path.d.ts → path.d.ts} +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/mechanisms.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/method-names.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/polling-triggers.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/system-params.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/trigger-method.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/types.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/method-names.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/realtime-setup.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/system-params.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/trigger-method.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/types.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/verify.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/result.d.ts → result.d.ts} +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/system-method.d.ts → system-method.d.ts} +0 -0
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type ValuesTuple } from './zod';
|
|
2
|
-
export declare const NotificationTag: {
|
|
3
|
-
readonly ACCOUNT: "account";
|
|
4
|
-
readonly BILLING: "billing";
|
|
5
|
-
readonly SECURITY: "security";
|
|
6
|
-
readonly FLOW_EXECUTION: "flow-execution";
|
|
7
|
-
readonly SYSTEM: "system";
|
|
8
|
-
};
|
|
9
|
-
export type NotificationTagType = typeof NotificationTag[keyof typeof NotificationTag];
|
|
10
|
-
export declare const NotificationTagValues: ValuesTuple<typeof NotificationTag>;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export declare const EMAIL: RegExp;
|
|
2
|
-
export declare const HOST_NAME: RegExp;
|
|
3
|
-
export declare const IP_ADDRESS: RegExp;
|
|
4
|
-
export declare const COLUMN_NAME: RegExp;
|
|
5
|
-
export declare const STRICT_NAME: RegExp;
|
|
6
|
-
export declare const RESTRICTED_NAME: RegExp;
|
|
7
|
-
export declare const DIRECTORY_NAME: RegExp;
|
|
8
|
-
export declare const APP_NAME: RegExp;
|
|
9
|
-
export declare const APP_ID: RegExp;
|
|
10
|
-
export declare const API_KEY: RegExp;
|
|
11
|
-
export declare const URL: RegExp;
|
|
12
|
-
export declare const DATETIME: RegExp;
|
|
13
|
-
export declare const TIME: RegExp;
|
|
14
|
-
export declare const ZIP_FILE: RegExp;
|
|
15
|
-
export declare const GIT_FILE: RegExp;
|
|
16
|
-
export declare const DOUBLE: RegExp;
|
|
17
|
-
export declare const DECIMAL: RegExp;
|
|
18
|
-
export declare const IMAGE_FILE: RegExp;
|
|
19
|
-
export declare const PRICE: RegExp;
|
|
20
|
-
export declare const FILE_NAME: RegExp;
|
|
21
|
-
export declare const BL_UUID: RegExp;
|
|
22
|
-
export declare const YOUTUBE_VIDEO_ID: RegExp;
|
|
23
|
-
export declare const SQL_NAMED_PARAMS: RegExp;
|
|
24
|
-
export declare const TEMPLATE_NAME_BLOCKLIST: RegExp;
|
|
25
|
-
/**
|
|
26
|
-
* aaa=adasd, bad=a13ad,adad=asdsad
|
|
27
|
-
*/
|
|
28
|
-
export declare const COMMA_SEPARATED_KEY_VALUE_PAIRS: RegExp;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export declare const BackoffStrategy: {
|
|
2
|
-
readonly FIXED: "FIXED";
|
|
3
|
-
readonly EXPONENTIAL_EQUAL_JITTER: "EXPONENTIAL_EQUAL_JITTER";
|
|
4
|
-
};
|
|
5
|
-
export type BackoffStrategy = typeof BackoffStrategy[keyof typeof BackoffStrategy];
|
|
6
|
-
export declare const RetryConditionType: {
|
|
7
|
-
readonly HTTP: "HTTP";
|
|
8
|
-
};
|
|
9
|
-
export type RetryConditionType = typeof RetryConditionType[keyof typeof RetryConditionType];
|
|
10
|
-
export declare const StatusClass: {
|
|
11
|
-
readonly C4XX: "C4XX";
|
|
12
|
-
readonly C5XX: "C5XX";
|
|
13
|
-
};
|
|
14
|
-
export type StatusClass = typeof StatusClass[keyof typeof StatusClass];
|
|
15
|
-
export interface HttpRetryCondition {
|
|
16
|
-
type: typeof RetryConditionType.HTTP;
|
|
17
|
-
statusCodes: number[];
|
|
18
|
-
statusClasses: StatusClass[];
|
|
19
|
-
retryOnTransportError: boolean;
|
|
20
|
-
}
|
|
21
|
-
export type RetryCondition = HttpRetryCondition;
|
|
22
|
-
export interface RetryPolicyConfig {
|
|
23
|
-
enabled: boolean;
|
|
24
|
-
maxAttempts: number | null;
|
|
25
|
-
strategy: BackoffStrategy;
|
|
26
|
-
delaySeconds: number | null;
|
|
27
|
-
initialDelaySeconds: number | null;
|
|
28
|
-
backoffMultiplier: number | null;
|
|
29
|
-
condition: RetryCondition;
|
|
30
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const Severity: {
|
|
2
|
-
readonly INFO: "info";
|
|
3
|
-
readonly WARNING: "warning";
|
|
4
|
-
readonly CRITICAL: "critical";
|
|
5
|
-
};
|
|
6
|
-
export type SeverityType = typeof Severity[keyof typeof Severity];
|
|
7
|
-
type ValuesTuple<T extends Record<string, string>> = [T[keyof T], ...T[keyof T][]];
|
|
8
|
-
export declare const SeverityValues: ValuesTuple<typeof Severity>;
|
|
9
|
-
export {};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
export declare const DEFAULT_FLOW_EXTENSION_PACKAGE_ID = "default";
|
|
2
|
-
export declare const WORKSPACE_STACK_MAX_EXTENSIONS = 100;
|
|
3
|
-
export declare const SharedExtensionStatuses: {
|
|
4
|
-
readonly INSTALLED: "installed";
|
|
5
|
-
readonly MISSING_FS: "missing_fs";
|
|
6
|
-
readonly MISSING_DB: "missing_db";
|
|
7
|
-
};
|
|
8
|
-
export type SharedExtensionStatusesT = typeof SharedExtensionStatuses[keyof typeof SharedExtensionStatuses];
|
|
9
|
-
export declare const SharedExtensionListStatuses: {
|
|
10
|
-
readonly UP_TO_DATE: "up_to_date";
|
|
11
|
-
readonly UPDATE_AVAILABLE: "update_available";
|
|
12
|
-
readonly LEGACY: "legacy";
|
|
13
|
-
};
|
|
14
|
-
export type SharedExtensionListStatusesT = typeof SharedExtensionListStatuses[keyof typeof SharedExtensionListStatuses];
|
|
15
|
-
export declare const SharedExtensionConfigStatuses: {
|
|
16
|
-
readonly CONFIGURED: "configured";
|
|
17
|
-
readonly MISSING: "missing";
|
|
18
|
-
readonly NOT_NEEDED: "not_needed";
|
|
19
|
-
};
|
|
20
|
-
export type SharedExtensionConfigStatusesT = typeof SharedExtensionConfigStatuses[keyof typeof SharedExtensionConfigStatuses];
|
|
21
|
-
export declare const SharedExtensionRegisterAs: {
|
|
22
|
-
readonly ACTION: "ACTION";
|
|
23
|
-
readonly DICTIONARY: "DICTIONARY";
|
|
24
|
-
readonly PARAM_SCHEMA_DEFINITION: "PARAM_SCHEMA_DEFINITION";
|
|
25
|
-
readonly METHOD_SAMPLE_RESULT_LOADER: "SAMPLE_RESULT_LOADER";
|
|
26
|
-
readonly SYSTEM: "SYSTEM";
|
|
27
|
-
readonly REALTIME_TRIGGER: "REALTIME_TRIGGER";
|
|
28
|
-
readonly POLLING_TRIGGER: "POLLING_TRIGGER";
|
|
29
|
-
readonly MCP_SERVER_TOOL: "MCP_SERVER_TOOL";
|
|
30
|
-
};
|
|
31
|
-
export type SharedExtensionRegisterAs = typeof SharedExtensionRegisterAs[keyof typeof SharedExtensionRegisterAs];
|
|
32
|
-
export declare const HostTypes: {
|
|
33
|
-
readonly APP: "APP";
|
|
34
|
-
readonly SHARED: "SHARED";
|
|
35
|
-
};
|
|
36
|
-
export type HostTypeT = typeof HostTypes[keyof typeof HostTypes];
|
|
37
|
-
export declare const ServiceConfigFieldTypes: {
|
|
38
|
-
readonly STRING: "string";
|
|
39
|
-
readonly BOOL: "bool";
|
|
40
|
-
readonly DATE: "date";
|
|
41
|
-
readonly CHOICE: "choice";
|
|
42
|
-
readonly TEXT: "text";
|
|
43
|
-
};
|
|
44
|
-
export type ServiceConfigFieldTypeT = typeof ServiceConfigFieldTypes[keyof typeof ServiceConfigFieldTypes];
|
|
45
|
-
export declare const ExtensionResolveStatuses: {
|
|
46
|
-
readonly UNCHANGED: "UNCHANGED";
|
|
47
|
-
readonly UPDATED: "UPDATED";
|
|
48
|
-
readonly NOT_FOUND: "NOT_FOUND";
|
|
49
|
-
};
|
|
50
|
-
export type ExtensionResolveStatusT = typeof ExtensionResolveStatuses[keyof typeof ExtensionResolveStatuses];
|
|
51
|
-
export declare const SHARED_EXTENSIONS_POPULAR_POOL_SIZE = 50;
|
|
52
|
-
export interface PopularSharedExtensionServiceRef {
|
|
53
|
-
serviceId: string;
|
|
54
|
-
packageId: string;
|
|
55
|
-
}
|
|
56
|
-
export declare const SHARED_EXTENSIONS_POPULAR_SERVICES: PopularSharedExtensionServiceRef[];
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ApiError } from './base';
|
|
2
|
-
import { NotAuthorizedError } from './common';
|
|
3
|
-
export declare class ClITokenExpiredError extends ApiError {
|
|
4
|
-
constructor(message?: string);
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* The caller's own developer auth key is missing or was rejected — an expired session, a signed-out tab, a
|
|
8
|
-
* key from another cluster. Expected traffic, not a server fault (logged at debug, see `handlers.ts`).
|
|
9
|
-
*
|
|
10
|
-
* Throw it only for the USER's key. A 401 to a call made with the console's own credentials is a
|
|
11
|
-
* misconfiguration and must stay an error.
|
|
12
|
-
*/
|
|
13
|
-
export declare class InvalidAuthKeyError extends NotAuthorizedError {
|
|
14
|
-
constructor(message?: string);
|
|
15
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Base API Error Class
|
|
3
|
-
*
|
|
4
|
-
* All API errors extend this class to provide consistent error handling
|
|
5
|
-
* across the application.
|
|
6
|
-
*/
|
|
7
|
-
export interface ApiErrorJSON<DetailsT = unknown> {
|
|
8
|
-
statusCode: number;
|
|
9
|
-
type: string;
|
|
10
|
-
message: string;
|
|
11
|
-
details?: DetailsT;
|
|
12
|
-
}
|
|
13
|
-
export declare class ApiError<DetailsT = unknown> extends Error {
|
|
14
|
-
statusCode: number;
|
|
15
|
-
type: string;
|
|
16
|
-
message: string;
|
|
17
|
-
details?: DetailsT | undefined;
|
|
18
|
-
constructor(statusCode: number, // HTTP status code (400, 404, 500, etc.)
|
|
19
|
-
type: string, // Application error type (ALERT_NOT_FOUND, etc.)
|
|
20
|
-
message: string, // Human-readable error message
|
|
21
|
-
details?: DetailsT | undefined);
|
|
22
|
-
/**
|
|
23
|
-
* Convert error to JSON response format.
|
|
24
|
-
*/
|
|
25
|
-
toJSON(): ApiErrorJSON<DetailsT>;
|
|
26
|
-
/**
|
|
27
|
-
* Get metadata from an error instance (for schema generation)
|
|
28
|
-
*/
|
|
29
|
-
static getMetadata(ErrorClass: new () => ApiError): {
|
|
30
|
-
statusCode: number;
|
|
31
|
-
type: string;
|
|
32
|
-
message: string;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Type helper to extract error class constructor
|
|
37
|
-
*/
|
|
38
|
-
export type ApiErrorConstructor = new (...args: never[]) => ApiError;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { ApiError } from './base';
|
|
2
|
-
export declare class BadRequestError extends ApiError {
|
|
3
|
-
constructor(message?: string, details?: unknown);
|
|
4
|
-
}
|
|
5
|
-
export declare class ValidationError extends ApiError {
|
|
6
|
-
constructor(message?: string, details?: unknown);
|
|
7
|
-
}
|
|
8
|
-
export declare class NotFoundError extends ApiError {
|
|
9
|
-
constructor(message?: string, details?: unknown);
|
|
10
|
-
}
|
|
11
|
-
export declare class ForbiddenError extends ApiError {
|
|
12
|
-
constructor(message?: string, details?: unknown);
|
|
13
|
-
}
|
|
14
|
-
export declare class InvalidOperationError extends ApiError {
|
|
15
|
-
constructor(message?: string, details?: unknown);
|
|
16
|
-
}
|
|
17
|
-
export declare class NotAuthorizedError extends ApiError {
|
|
18
|
-
constructor(message?: string, details?: unknown);
|
|
19
|
-
}
|
|
20
|
-
export declare class ConflictError extends ApiError {
|
|
21
|
-
constructor(message?: string, details?: unknown);
|
|
22
|
-
}
|
|
23
|
-
export declare class ResourceNotAvailableError extends ApiError {
|
|
24
|
-
constructor(message?: string, details?: unknown);
|
|
25
|
-
}
|
|
26
|
-
export declare class LockedError extends ApiError {
|
|
27
|
-
constructor(message?: string, details?: unknown);
|
|
28
|
-
}
|
|
29
|
-
export declare class InternalServerError extends ApiError<object> {
|
|
30
|
-
readonly id: string;
|
|
31
|
-
constructor(message?: string, details?: object);
|
|
32
|
-
toJSON(): {
|
|
33
|
-
id: string;
|
|
34
|
-
statusCode: number;
|
|
35
|
-
type: string;
|
|
36
|
-
message: string;
|
|
37
|
-
details?: object | undefined;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Centralized Error Exports
|
|
3
|
-
*
|
|
4
|
-
* This file provides a single entry point for all error classes and utilities
|
|
5
|
-
* used across the application.
|
|
6
|
-
*/
|
|
7
|
-
export * from './api';
|
|
8
|
-
export * from './base';
|
|
9
|
-
export * from './common';
|
|
10
|
-
export * from './k8s';
|
|
11
|
-
export * from './oauth-connection';
|
|
12
|
-
export * from './open-search';
|
|
13
|
-
export * from './s3';
|
|
14
|
-
export * from '../constants/error-codes';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ApiError } from './base';
|
|
2
|
-
export declare class K8SPodExecutionError extends ApiError {
|
|
3
|
-
constructor(message?: string, details?: unknown);
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* The pod's response exceeded the byte cap `fr-web-console` is willing to read back (see
|
|
7
|
-
* `cloudCode.request.maxResponseBytes`). Raised so one workspace returning a gigantic result fails
|
|
8
|
-
* cleanly for that execution only, instead of this shared service buffering the body until it runs
|
|
9
|
-
* out of memory and takes Cloud Code down for everyone. It is the customer's execution error — the
|
|
10
|
-
* code ran, it is the size of what it returned that is the problem.
|
|
11
|
-
*/
|
|
12
|
-
export declare class CloudCodeResponseTooLargeError extends ApiError {
|
|
13
|
-
constructor(message?: string, details?: unknown);
|
|
14
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Error Message Normalization
|
|
3
|
-
*
|
|
4
|
-
* `backendless-request` builds its `ResponseError` message from the response body, falling back to
|
|
5
|
-
* the body object itself when that body carries no top-level `message` of its own. An API answering
|
|
6
|
-
* `{ success, status_code, status_message }` therefore yields an Error holding an *object* as its
|
|
7
|
-
* message — and every `${ error.message }` downstream renders `[object Object]`.
|
|
8
|
-
*
|
|
9
|
-
* We cannot change `backendless-request` (other projects depend on the behaviour), so our own error
|
|
10
|
-
* classes absorb the shape instead: a non-string message is replaced with a Proxy over the SAME
|
|
11
|
-
* payload which answers three kinds of access at once —
|
|
12
|
-
*
|
|
13
|
-
* `${ msg }`, String(msg), new Error(msg), err.stack → the readable serialized text
|
|
14
|
-
* JSON.stringify(msg) → the payload itself, structure intact
|
|
15
|
-
* msg.status_message → the body's own value, as today
|
|
16
|
-
* msg.length, msg.includes('…'), msg.slice(0, 20) → the string method, applied to that text
|
|
17
|
-
*
|
|
18
|
-
* The last one is why this is a Proxy rather than a decorated copy: a lot of code treats `message`
|
|
19
|
-
* as a string, and a `get` fallback lets all of it keep working. The payload itself is never copied
|
|
20
|
-
* and never touched, so `error.body` stays exactly what the HTTP client parsed.
|
|
21
|
-
*
|
|
22
|
-
* Two rules the whole module follows:
|
|
23
|
-
*
|
|
24
|
-
* 1. a message that is already a string is returned untouched — never wrapped, never prefixed.
|
|
25
|
-
* That is what keeps every existing call site working.
|
|
26
|
-
* 2. no error class passes a `status`. `statusCode` on the wrapping error is OURS, not the status
|
|
27
|
-
* the remote API answered, and stamping it on someone else's body would claim it did. The
|
|
28
|
-
* parameter exists for the one kind of caller that holds the real response — a `Request` seam.
|
|
29
|
-
*/
|
|
30
|
-
/** A wrapped payload: the body's own keys, readable coercion, and string methods over the text. */
|
|
31
|
-
export type ErrorMessage<PayloadT = unknown> = PayloadT & {
|
|
32
|
-
toString(): string;
|
|
33
|
-
toJSON(): string;
|
|
34
|
-
};
|
|
35
|
-
export declare function isNormalizedErrorMessage(value: unknown): boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Render any message payload as text. Strings pass through verbatim (rule 1); anything else is
|
|
38
|
-
* JSON, so the payload is carried instead of `[object Object]`.
|
|
39
|
-
*/
|
|
40
|
-
export declare function safeMessageStringify(errorMessage: unknown, status?: number): string;
|
|
41
|
-
/**
|
|
42
|
-
* Replace a non-string `message` with a readable, still-inspectable equivalent.
|
|
43
|
-
*
|
|
44
|
-
* @param message the raw message — usually `ResponseError.message`, i.e. a response body
|
|
45
|
-
* @param status prefixed to the readable text when given; only a caller holding the real response
|
|
46
|
-
* may pass one (see rule 2 above)
|
|
47
|
-
*/
|
|
48
|
-
export declare function normalizeErrorMessage(message: unknown, status?: number): unknown;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ApiError } from './base';
|
|
2
|
-
export declare class S3Error extends ApiError {
|
|
3
|
-
constructor({ title, instance, status, type, detail, ...rest }: {
|
|
4
|
-
title?: string | null;
|
|
5
|
-
instance?: string | null;
|
|
6
|
-
detail?: string | null;
|
|
7
|
-
type?: string | null;
|
|
8
|
-
status?: number;
|
|
9
|
-
properties?: unknown;
|
|
10
|
-
});
|
|
11
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { type core } from 'zod';
|
|
2
|
-
interface Logger {
|
|
3
|
-
error: (data: object, message: string) => void;
|
|
4
|
-
}
|
|
5
|
-
export declare function setZodLogger(l: Logger): void;
|
|
6
|
-
/**
|
|
7
|
-
* Extends Zod schemas with ensureOutputShape method
|
|
8
|
-
*/
|
|
9
|
-
declare module 'zod' {
|
|
10
|
-
interface ZodType<out Output = unknown, out Input = unknown, out Internals extends core.$ZodTypeInternals<Output, Input> = core.$ZodTypeInternals<Output, Input>> extends core.$ZodType<Output, Input, Internals> {
|
|
11
|
-
/**
|
|
12
|
-
* Validates output data shape and throws InternalServerError if validation fails.
|
|
13
|
-
* Used to ensure workflows return correctly shaped data.
|
|
14
|
-
*
|
|
15
|
-
* @param data - The data to validate
|
|
16
|
-
* @returns The validated and typed data
|
|
17
|
-
* @throws InternalServerError if validation fails (indicates a bug in the code)
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* return LoggedInAccountResponseSchema.ensureOutputShape({ account, session })
|
|
21
|
-
*/
|
|
22
|
-
ensureOutputShape(data: unknown): core.output<this>;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
export {};
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import '../../extensions/zod';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
export declare const AccessKeyStatus: {
|
|
4
|
-
readonly ACTIVE: "active";
|
|
5
|
-
readonly REVOKED: "revoked";
|
|
6
|
-
};
|
|
7
|
-
export type AccessKeyStatus = typeof AccessKeyStatus[keyof typeof AccessKeyStatus];
|
|
8
|
-
export declare const AccessKeyStatusSchema: z.ZodEnum<{
|
|
9
|
-
readonly ACTIVE: "active";
|
|
10
|
-
readonly REVOKED: "revoked";
|
|
11
|
-
}>;
|
|
12
|
-
export declare const AccessKeyRole: {
|
|
13
|
-
readonly INTERNAL: "INTERNAL";
|
|
14
|
-
readonly PUBLIC: "PUBLIC";
|
|
15
|
-
};
|
|
16
|
-
export type AccessKeyRole = typeof AccessKeyRole[keyof typeof AccessKeyRole];
|
|
17
|
-
export declare const AccessKeyRoleSchema: z.ZodEnum<{
|
|
18
|
-
readonly INTERNAL: "INTERNAL";
|
|
19
|
-
readonly PUBLIC: "PUBLIC";
|
|
20
|
-
}>;
|
|
21
|
-
export declare const AccessKeyTransport: {
|
|
22
|
-
readonly HEADER: "header";
|
|
23
|
-
readonly QUERY: "query";
|
|
24
|
-
readonly PATH: "path";
|
|
25
|
-
};
|
|
26
|
-
export type AccessKeyTransport = typeof AccessKeyTransport[keyof typeof AccessKeyTransport];
|
|
27
|
-
export declare const AccessKeyTransportSchema: z.ZodEnum<{
|
|
28
|
-
readonly HEADER: "header";
|
|
29
|
-
readonly QUERY: "query";
|
|
30
|
-
readonly PATH: "path";
|
|
31
|
-
}>;
|
|
32
|
-
export declare const DEFAULT_NEW_KEY_TRANSPORTS: AccessKeyTransport[];
|
|
33
|
-
export declare const AccessKeyScopeSchema: z.ZodObject<{
|
|
34
|
-
flows: z.ZodArray<z.ZodString>;
|
|
35
|
-
ipRanges: z.ZodArray<z.ZodString>;
|
|
36
|
-
}, z.core.$strip>;
|
|
37
|
-
export type AccessKeyScope = z.infer<typeof AccessKeyScopeSchema>;
|
|
38
|
-
export declare const AccessKeyLimitsSchema: z.ZodObject<{
|
|
39
|
-
ratePerMin: z.ZodOptional<z.ZodNumber>;
|
|
40
|
-
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
41
|
-
monthlyQuota: z.ZodOptional<z.ZodNumber>;
|
|
42
|
-
}, z.core.$strip>;
|
|
43
|
-
export type AccessKeyLimits = z.infer<typeof AccessKeyLimitsSchema>;
|
|
44
|
-
export declare const AccessKeySchema: z.ZodObject<{
|
|
45
|
-
id: z.ZodString;
|
|
46
|
-
label: z.ZodString;
|
|
47
|
-
secret: z.ZodString;
|
|
48
|
-
prefix: z.ZodString;
|
|
49
|
-
status: z.ZodEnum<{
|
|
50
|
-
readonly ACTIVE: "active";
|
|
51
|
-
readonly REVOKED: "revoked";
|
|
52
|
-
}>;
|
|
53
|
-
role: z.ZodOptional<z.ZodEnum<{
|
|
54
|
-
readonly INTERNAL: "INTERNAL";
|
|
55
|
-
readonly PUBLIC: "PUBLIC";
|
|
56
|
-
}>>;
|
|
57
|
-
createdAt: z.ZodNumber;
|
|
58
|
-
lastUsedAt: z.ZodOptional<z.ZodNumber>;
|
|
59
|
-
scope: z.ZodOptional<z.ZodObject<{
|
|
60
|
-
flows: z.ZodArray<z.ZodString>;
|
|
61
|
-
ipRanges: z.ZodArray<z.ZodString>;
|
|
62
|
-
}, z.core.$strip>>;
|
|
63
|
-
limits: z.ZodOptional<z.ZodObject<{
|
|
64
|
-
ratePerMin: z.ZodOptional<z.ZodNumber>;
|
|
65
|
-
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
66
|
-
monthlyQuota: z.ZodOptional<z.ZodNumber>;
|
|
67
|
-
}, z.core.$strip>>;
|
|
68
|
-
transports: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
69
|
-
readonly HEADER: "header";
|
|
70
|
-
readonly QUERY: "query";
|
|
71
|
-
readonly PATH: "path";
|
|
72
|
-
}>>>;
|
|
73
|
-
usageThisMonth: z.ZodOptional<z.ZodNumber>;
|
|
74
|
-
}, z.core.$strip>;
|
|
75
|
-
export type AccessKey = z.infer<typeof AccessKeySchema>;
|
|
76
|
-
export declare const NewAccessKeySchema: z.ZodObject<{
|
|
77
|
-
label: z.ZodString;
|
|
78
|
-
}, z.core.$strip>;
|
|
79
|
-
export type NewAccessKey = z.infer<typeof NewAccessKeySchema>;
|
|
80
|
-
export declare const UpdateAccessKeySchema: z.ZodObject<{
|
|
81
|
-
label: z.ZodOptional<z.ZodString>;
|
|
82
|
-
scope: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
83
|
-
flows: z.ZodArray<z.ZodString>;
|
|
84
|
-
ipRanges: z.ZodArray<z.ZodString>;
|
|
85
|
-
}, z.core.$strip>>>;
|
|
86
|
-
limits: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
87
|
-
ratePerMin: z.ZodOptional<z.ZodNumber>;
|
|
88
|
-
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
89
|
-
monthlyQuota: z.ZodOptional<z.ZodNumber>;
|
|
90
|
-
}, z.core.$strip>>>;
|
|
91
|
-
transports: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
92
|
-
readonly HEADER: "header";
|
|
93
|
-
readonly QUERY: "query";
|
|
94
|
-
readonly PATH: "path";
|
|
95
|
-
}>>>>;
|
|
96
|
-
}, z.core.$strip>;
|
|
97
|
-
export type UpdateAccessKey = z.infer<typeof UpdateAccessKeySchema>;
|
|
98
|
-
export declare const AccessKeysWorkspaceStateSchema: z.ZodObject<{
|
|
99
|
-
externalInvocationSuspended: z.ZodBoolean;
|
|
100
|
-
}, z.core.$strip>;
|
|
101
|
-
export type AccessKeysWorkspaceState = z.infer<typeof AccessKeysWorkspaceStateSchema>;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const AccountDocSchema: z.ZodObject<{
|
|
3
|
-
_id: z.ZodString;
|
|
4
|
-
_class: z.ZodOptional<z.ZodString>;
|
|
5
|
-
name: z.ZodString;
|
|
6
|
-
email: z.ZodString;
|
|
7
|
-
password: z.ZodOptional<z.ZodString>;
|
|
8
|
-
statusId: z.ZodOptional<z.ZodString>;
|
|
9
|
-
system: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
-
billingCustomerId: z.ZodOptional<z.ZodString>;
|
|
11
|
-
workspaceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12
|
-
registrationDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
13
|
-
usedTrial: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
-
lastLogin: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
15
|
-
metaInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16
|
-
lastReadNotificationsAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
17
|
-
}, z.core.$strip>;
|
|
18
|
-
export declare const AccountShortPublicDTOSchema: z.ZodObject<{
|
|
19
|
-
name: z.ZodString;
|
|
20
|
-
email: z.ZodString;
|
|
21
|
-
_id: z.ZodString;
|
|
22
|
-
system: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
-
}, z.core.$strip>;
|
|
24
|
-
export declare const AccountShortPublicDTOMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
25
|
-
name: z.ZodString;
|
|
26
|
-
email: z.ZodString;
|
|
27
|
-
_id: z.ZodString;
|
|
28
|
-
system: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
-
}, z.core.$strip>>;
|
|
30
|
-
export declare const AccountDTOSchema: z.ZodObject<{
|
|
31
|
-
name: z.ZodString;
|
|
32
|
-
email: z.ZodString;
|
|
33
|
-
_id: z.ZodString;
|
|
34
|
-
_class: z.ZodOptional<z.ZodString>;
|
|
35
|
-
statusId: z.ZodOptional<z.ZodString>;
|
|
36
|
-
system: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
-
billingCustomerId: z.ZodOptional<z.ZodString>;
|
|
38
|
-
workspaceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
39
|
-
registrationDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
40
|
-
usedTrial: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
-
lastLogin: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
42
|
-
metaInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
43
|
-
lastReadNotificationsAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
44
|
-
}, z.core.$strip>;
|
|
45
|
-
export declare const AccountJavaDTOSchema: z.ZodObject<{
|
|
46
|
-
name: z.ZodString;
|
|
47
|
-
email: z.ZodString;
|
|
48
|
-
statusId: z.ZodOptional<z.ZodString>;
|
|
49
|
-
system: z.ZodOptional<z.ZodBoolean>;
|
|
50
|
-
billingCustomerId: z.ZodOptional<z.ZodString>;
|
|
51
|
-
workspaceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
52
|
-
registrationDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
53
|
-
usedTrial: z.ZodOptional<z.ZodBoolean>;
|
|
54
|
-
lastLogin: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
55
|
-
metaInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
56
|
-
id: z.ZodString;
|
|
57
|
-
lastReadNotificationsAt: z.ZodCoercedNumber<unknown>;
|
|
58
|
-
}, z.core.$strip>;
|
|
59
|
-
export type AccountDoc = z.infer<typeof AccountDocSchema>;
|
|
60
|
-
export type AccountDTO = z.infer<typeof AccountDTOSchema>;
|
|
61
|
-
export type AccountShortPublicDTO = z.infer<typeof AccountShortPublicDTOSchema>;
|
|
62
|
-
export type AccountShortPublicDTOMap = z.infer<typeof AccountShortPublicDTOMapSchema>;
|
|
63
|
-
export type AccountJavaDTO = z.infer<typeof AccountJavaDTOSchema>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './dto';
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared Activity Log schema building blocks (FR-3347)
|
|
3
|
-
*
|
|
4
|
-
* The workspace / account / system activity logs share most of their DTO, query and list-response shape.
|
|
5
|
-
* These base pieces capture the common fields; each scope extends them with its own operation enum and
|
|
6
|
-
* target fields. `.openapi(name)` is applied on the final per-scope schema (never here), so the three
|
|
7
|
-
* register as distinct OpenAPI components.
|
|
8
|
-
*/
|
|
9
|
-
import '../extensions/zod';
|
|
10
|
-
import { z } from 'zod';
|
|
11
|
-
import { ActivityLogCategory } from '../constants/activity-log';
|
|
12
|
-
export declare const BaseActivityLogEventSchema: z.ZodObject<{
|
|
13
|
-
_id: z.ZodString;
|
|
14
|
-
category: z.ZodEnum<typeof ActivityLogCategory>;
|
|
15
|
-
performerId: z.ZodNullable<z.ZodString>;
|
|
16
|
-
details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
17
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
18
|
-
}, z.core.$strip>;
|
|
19
|
-
export declare const BaseActivityLogQuerySchema: z.ZodObject<{
|
|
20
|
-
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
21
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
22
|
-
category: z.ZodOptional<z.ZodEnum<typeof ActivityLogCategory>>;
|
|
23
|
-
dateFrom: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
24
|
-
dateTo: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
25
|
-
}, z.core.$strip>;
|
|
26
|
-
export declare function activityLogListResponse<Item extends z.ZodTypeAny>(items: Item): z.ZodObject<{
|
|
27
|
-
items: z.ZodArray<Item>;
|
|
28
|
-
hasMore: z.ZodBoolean;
|
|
29
|
-
accountsMap: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
30
|
-
name: z.ZodString;
|
|
31
|
-
email: z.ZodString;
|
|
32
|
-
_id: z.ZodString;
|
|
33
|
-
system: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
-
}, z.core.$strip>>;
|
|
35
|
-
}, z.core.$strip>;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export type ToolParamType = 'STRING' | 'BOOLEAN' | 'NUMBER' | 'LIST' | 'OBJECT';
|
|
3
|
-
export interface ToolParamProperty {
|
|
4
|
-
name: string;
|
|
5
|
-
type: ToolParamType;
|
|
6
|
-
required: boolean;
|
|
7
|
-
description: string;
|
|
8
|
-
}
|
|
9
|
-
export interface ToolParamDef {
|
|
10
|
-
name: string;
|
|
11
|
-
type: ToolParamType;
|
|
12
|
-
required: boolean;
|
|
13
|
-
description: string;
|
|
14
|
-
properties?: ToolParamProperty[];
|
|
15
|
-
items?: {
|
|
16
|
-
type: ToolParamType;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export type TypedParamDef<T> = ToolParamDef & {
|
|
20
|
-
name: keyof T & string;
|
|
21
|
-
};
|
|
22
|
-
export declare const HttpRequestHeaderSchema: z.ZodObject<{
|
|
23
|
-
name: z.ZodString;
|
|
24
|
-
value: z.ZodString;
|
|
25
|
-
}, z.core.$strip>;
|
|
26
|
-
export declare const HttpRequestStaticInputSchema: z.ZodObject<{
|
|
27
|
-
url: z.ZodString;
|
|
28
|
-
httpMethod: z.ZodString;
|
|
29
|
-
body: z.ZodOptional<z.ZodString>;
|
|
30
|
-
query: z.ZodOptional<z.ZodString>;
|
|
31
|
-
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
32
|
-
name: z.ZodString;
|
|
33
|
-
value: z.ZodString;
|
|
34
|
-
}, z.core.$strip>>>;
|
|
35
|
-
}, z.core.$strip>;
|
|
36
|
-
export type HttpRequestStaticInput = z.infer<typeof HttpRequestStaticInputSchema>;
|
|
37
|
-
export declare const SharedMemoryDataEntrySchema: z.ZodObject<{
|
|
38
|
-
name: z.ZodString;
|
|
39
|
-
value: z.ZodUnknown;
|
|
40
|
-
}, z.core.$strip>;
|
|
41
|
-
export declare const SharedMemoryPutStaticInputSchema: z.ZodObject<{
|
|
42
|
-
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
43
|
-
name: z.ZodString;
|
|
44
|
-
value: z.ZodUnknown;
|
|
45
|
-
}, z.core.$strip>>>;
|
|
46
|
-
}, z.core.$strip>;
|
|
47
|
-
export type SharedMemoryPutStaticInput = z.infer<typeof SharedMemoryPutStaticInputSchema>;
|
|
48
|
-
export declare const SharedMemoryDeleteStaticInputSchema: z.ZodObject<{
|
|
49
|
-
keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
50
|
-
}, z.core.$strip>;
|
|
51
|
-
export type SharedMemoryDeleteStaticInput = z.infer<typeof SharedMemoryDeleteStaticInputSchema>;
|
|
52
|
-
export declare const SharedMemoryReadStaticInputSchema: z.ZodObject<{
|
|
53
|
-
key: z.ZodOptional<z.ZodString>;
|
|
54
|
-
defaultValue: z.ZodOptional<z.ZodUnknown>;
|
|
55
|
-
}, z.core.$strip>;
|
|
56
|
-
export type SharedMemoryReadStaticInput = z.infer<typeof SharedMemoryReadStaticInputSchema>;
|
|
57
|
-
export declare const AssignInstanceNameStaticInputSchema: z.ZodObject<{
|
|
58
|
-
executionName: z.ZodOptional<z.ZodString>;
|
|
59
|
-
}, z.core.$strip>;
|
|
60
|
-
export type AssignInstanceNameStaticInput = z.infer<typeof AssignInstanceNameStaticInputSchema>;
|
|
61
|
-
export interface CustomCloudCodeParamDef {
|
|
62
|
-
name: string;
|
|
63
|
-
type?: ToolParamType;
|
|
64
|
-
required?: boolean;
|
|
65
|
-
description?: string | null;
|
|
66
|
-
}
|
|
67
|
-
export interface CustomCloudCodeDefinition {
|
|
68
|
-
parameters?: CustomCloudCodeParamDef[];
|
|
69
|
-
}
|