@flowrunner/cli 0.1.19-dev.1 → 0.1.19-dev.3
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 +6 -5
- package/ai-docs/instructions/service-code-format/05-dictionaries.md +1 -1
- package/ai-docs/instructions/service-code-format/11-output-model.md +2 -5
- package/ai-docs/instructions/service-code-format/13-runtime-contracts.md +2 -3
- package/ai-docs/instructions/service-code-format/17-client-certificates.md +4 -5
- package/ai-docs/instructions/service-code-format/README.md +2 -2
- package/dist/cli.js +322 -896
- package/dist/cli.js.map +4 -4
- package/dist/index.js +340 -908
- 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 +2 -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/dist/types/flow-extension-runner/src/{v2/model → 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/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/{v2/params → params}/schema/parse.d.ts +1 -1
- package/dist/types/flow-extension-runner/src/{v2/params → params}/types.d.ts +1 -1
- 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/constants/testing.d.ts +13 -6
- 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 +20 -0
- package/dist/types/shared/src/constants/flow-catalog.d.ts +54 -0
- package/dist/types/shared/src/constants/index.d.ts +2 -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/flow-catalog.d.ts +37 -0
- package/dist/types/shared/src/errors/index.d.ts +2 -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/flow-catalog/analysis.d.ts +190 -0
- package/dist/types/shared/src/scheme/flow-catalog/index.d.ts +6 -0
- package/dist/types/shared/src/scheme/flow-catalog/pack.d.ts +144 -0
- package/dist/types/shared/src/scheme/flow-catalog/requests.d.ts +664 -0
- package/dist/types/shared/src/scheme/flow-catalog/summary.d.ts +69 -0
- package/dist/types/shared/src/scheme/flow-catalog/version.d.ts +132 -0
- 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 +102 -0
- package/dist/types/shared/src/scheme/flowrunner/workspace-dashboard.dto.d.ts +207 -0
- package/dist/types/shared/src/scheme/index.d.ts +1 -0
- package/dist/types/shared/src/scheme/integration-connection/dto.d.ts +22 -0
- package/dist/types/shared/src/scheme/knowledge-base/dto.d.ts +12 -12
- 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/properties/index.d.ts +1 -0
- package/dist/types/shared/src/scheme/properties/secret.d.ts +12 -0
- package/dist/types/shared/src/scheme/remote-mcp-server/dto.d.ts +142 -29
- package/dist/types/shared/src/scheme/shared-extensions/base.d.ts +0 -4
- package/dist/types/shared/src/scheme/shared-extensions/config.d.ts +20 -2
- 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/rest.d.ts +1 -0
- 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 -7
- package/project-files/sandbox/files-mock.js +3 -5
- package/project-files/sandbox/nock-mock.js +61 -5
- package/project-files/sandbox/service.js +10 -11
- package/runtime/index.js +178 -863
- 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 +2 -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/runtime/types/flow-extension-runner/src/{v2/model → 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/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/{v2/params → params}/schema/parse.d.ts +1 -1
- package/runtime/types/flow-extension-runner/src/{v2/params → params}/types.d.ts +1 -1
- 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}/index.d.ts +0 -0
- /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/types.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/date-format.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/defaults.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/field-plan.d.ts +0 -0
- /package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/introspect.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}/schema/notices.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/params → params}/zod.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}/index.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/types.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/date-format.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/defaults.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/field-plan.d.ts +0 -0
- /package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/introspect.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}/schema/notices.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/params → params}/zod.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,8 +1,8 @@
|
|
|
1
|
-
import type { ServiceConfigsValues } from '../../common/constants';
|
|
2
|
-
import { type FilesApi, type FileScopes } from '../../common/context-files';
|
|
3
1
|
import type { Extension } from '../extension';
|
|
4
2
|
import type { OAuthBag } from '../oauth/types';
|
|
3
|
+
import type { ServiceConfigsValues } from '../params/config-types';
|
|
5
4
|
import type { HandlerBag, Logger } from '../types';
|
|
5
|
+
import { type FilesApi, type FileScopes } from './files';
|
|
6
6
|
export interface ExecutionContextOptions {
|
|
7
7
|
configs?: ServiceConfigsValues;
|
|
8
8
|
accessToken?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ConfigItem } from '../common/types';
|
|
2
1
|
import { ExecutionContext, type ExecutionContextOptions } from './context/execution-context';
|
|
3
2
|
import type { ExtensionMethod } from './method';
|
|
3
|
+
import type { ConfigItem } from './model/model-types';
|
|
4
4
|
import type { SharedExtensionDefinition, SharedExtensionServiceInfo } from './model/model-types';
|
|
5
5
|
import { OAuth2 } from './oauth/oauth2';
|
|
6
6
|
import type { OAuth2Props } from './oauth/types';
|
|
@@ -40,8 +40,8 @@ export declare class Extension {
|
|
|
40
40
|
toConfigItems(): ConfigItem[];
|
|
41
41
|
toServiceInfo(): SharedExtensionServiceInfo;
|
|
42
42
|
/**
|
|
43
|
-
* The published model — the
|
|
44
|
-
*
|
|
43
|
+
* The published model — the `{ serviceInfo, methodsMap }` shape the console consumes, the same one the
|
|
44
|
+
* removed v1 JSDoc parser produced.
|
|
45
45
|
*
|
|
46
46
|
* Every method describes itself, so this is one pass with no per-kind branches: what a service publishes
|
|
47
47
|
* is exactly what it registered.
|
|
@@ -1,31 +1,19 @@
|
|
|
1
1
|
import type BLRequest from 'backendless-request'
|
|
2
2
|
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type { FlowrunnerCrypto } from './v2/crypto'
|
|
8
|
-
import type { ExtendedZod } from './v2/params'
|
|
9
|
-
import type { getExtension } from './v2/registry'
|
|
3
|
+
import type { createExtension } from './create-extension'
|
|
4
|
+
import type { FlowrunnerCrypto } from './crypto'
|
|
5
|
+
import type { ExtendedZod } from './params'
|
|
6
|
+
import type { getExtension } from './registry'
|
|
10
7
|
|
|
11
|
-
// The single `Flowrunner` runtime installed on the global scope by
|
|
8
|
+
// The single `Flowrunner` runtime installed on the global scope by ./namespace.ts:
|
|
12
9
|
// - `Request` — HTTP client used by service code (`Flowrunner.Request.get(...)`).
|
|
13
|
-
// - `z` / `createExtension` / `getExtension` — the
|
|
14
|
-
// - `ServerCode` — the v1-only registration seam, set for the duration of a v1 require (see v1/namespace.ts).
|
|
10
|
+
// - `z` / `createExtension` / `getExtension` — the authoring surface (services do `const z = Flowrunner.z`).
|
|
15
11
|
export interface FlowrunnerRuntime {
|
|
16
12
|
Request: typeof BLRequest
|
|
17
13
|
z: ExtendedZod
|
|
18
14
|
crypto: FlowrunnerCrypto
|
|
19
15
|
createExtension: typeof createExtension
|
|
20
16
|
getExtension: typeof getExtension
|
|
21
|
-
ServerCode: FlowrunnerServerCode | null
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface FlowrunnerServerCode {
|
|
25
|
-
addService(ServiceClass: ServiceClassType, sourceConfigItems?: ConfigItemSource[]): void
|
|
26
|
-
ConfigItems: {
|
|
27
|
-
TYPES: typeof ServiceConfigItemTypes
|
|
28
|
-
}
|
|
29
17
|
}
|
|
30
18
|
|
|
31
19
|
declare global {
|
|
@@ -1,15 +1,41 @@
|
|
|
1
1
|
import './namespace';
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
2
|
+
import { type FilesApi, type FlowrunnerContextFilesOptions } from './context/files';
|
|
3
|
+
import type { ConfigItem, SharedExtensionDefinition } from './model/model-types';
|
|
4
|
+
import { type ServiceConfigsValues } from './params/config-types';
|
|
5
|
+
import type { Logger } from './types';
|
|
5
6
|
export * from './errors';
|
|
6
|
-
export type {
|
|
7
|
-
export type {
|
|
8
|
-
export type
|
|
9
|
-
export {
|
|
10
|
-
export
|
|
11
|
-
export {
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
7
|
+
export type { ConfigItem } from './model/model-types';
|
|
8
|
+
export type { SharedExtensionDefinition } from './model/model-types';
|
|
9
|
+
export type FlowrunnerContextOptions = FlowrunnerContextFilesOptions;
|
|
10
|
+
export type { DeleteOptions, DeleteResult, FileInfo, FilesApi, GetOptions, ListOptions, ListResult, UploadFileOptions, UploadResult, UsageResult, } from './context/files';
|
|
11
|
+
export { FileScope } from './context/files';
|
|
12
|
+
export { ExecutionContext } from './context/execution-context';
|
|
13
|
+
export { Extension } from './extension';
|
|
14
|
+
export { getAllExtensions, getExtension, resetRegistry } from './registry';
|
|
15
|
+
export type { PollingInvocation, PollingResult } from './polling-triggers/types';
|
|
16
|
+
export type { RealtimeInvocation } from './realtime-triggers/types';
|
|
17
|
+
export type { HandlerBag, Logger } from './types';
|
|
18
|
+
export interface RunServiceMethodData {
|
|
19
|
+
serviceId: string;
|
|
20
|
+
serviceEntryPointPath: string;
|
|
21
|
+
configs?: ServiceConfigsValues;
|
|
22
|
+
methodName: string;
|
|
23
|
+
methodData?: Record<string, unknown>;
|
|
24
|
+
logger?: Logger;
|
|
25
|
+
retrieveNewS3Token: (runtimeKey: string) => Promise<{
|
|
26
|
+
filesS3Token: string;
|
|
27
|
+
}>;
|
|
28
|
+
createFiles?: (options: FlowrunnerContextOptions) => FilesApi;
|
|
29
|
+
executionContext: {
|
|
30
|
+
runtimeKey: string;
|
|
31
|
+
accessToken: string;
|
|
32
|
+
appId: string;
|
|
33
|
+
apiKey: string;
|
|
34
|
+
serverURL: string;
|
|
35
|
+
flowId: string;
|
|
36
|
+
executionId: string;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export declare function getServiceConfigs(serviceId: string, serviceEntryPointPath: string): ConfigItem[];
|
|
40
|
+
export declare function buildServiceDefinition(serviceId: string, serviceEntryPointPath: string): SharedExtensionDefinition | null;
|
|
41
|
+
export declare function runServiceMethod(data: RunServiceMethodData): Promise<unknown>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ConfigItem } from '../../common/types';
|
|
2
1
|
import { DictionaryScope } from '../params/schema/dictionary-binding';
|
|
3
2
|
import { type AnyZod } from '../params/schema/introspect';
|
|
3
|
+
import type { ConfigItem } from './model-types';
|
|
4
4
|
import type { SharedExtensionMetaInfoArg, SharedExtensionParam } from './model-types';
|
|
5
5
|
export interface FieldToParamOptions {
|
|
6
6
|
nested?: boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ParamsSchemaJSON } from '../params';
|
|
2
|
+
import type { ServiceConfigItemType } from '../params/config-types';
|
|
2
3
|
export interface SharedExtensionParam {
|
|
3
4
|
name: string;
|
|
4
5
|
required: boolean;
|
|
@@ -66,8 +67,17 @@ export interface SharedExtensionServiceInfo {
|
|
|
66
67
|
requireOAuth?: boolean | null;
|
|
67
68
|
}
|
|
68
69
|
export interface SharedExtensionDefinition {
|
|
69
|
-
runnerVersion: 'v1' | 'v2';
|
|
70
70
|
methodsMap: Record<string, SharedExtensionMethod>;
|
|
71
71
|
serviceInfo: SharedExtensionServiceInfo;
|
|
72
72
|
configSchema?: ParamsSchemaJSON | null;
|
|
73
73
|
}
|
|
74
|
+
export interface ConfigItem {
|
|
75
|
+
name: string;
|
|
76
|
+
type: ServiceConfigItemType;
|
|
77
|
+
shared: boolean;
|
|
78
|
+
required: boolean;
|
|
79
|
+
description: string;
|
|
80
|
+
label: string;
|
|
81
|
+
defaultValue?: unknown;
|
|
82
|
+
options: string[];
|
|
83
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ConfigItem } from '../../common/types';
|
|
2
1
|
import { type ConfigParams, DictionaryScope, type MethodParams, type Params } from '../params';
|
|
2
|
+
import type { ConfigItem } from './model-types';
|
|
3
3
|
import type { SharedExtensionMetaInfoArg, SharedExtensionParam } from './model-types';
|
|
4
4
|
export declare function toBodyParams(params: MethodParams): SharedExtensionParam[];
|
|
5
5
|
export declare function toArgs(params: MethodParams): Record<string, SharedExtensionMetaInfoArg>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ValidationIssue } from '
|
|
1
|
+
import type { ValidationIssue } from '../../errors';
|
|
2
2
|
import type { ZodIssue } from '../types';
|
|
3
3
|
import type { FieldPlan } from './field-plan';
|
|
4
4
|
export declare const requiredMessage: (plan: FieldPlan) => string;
|
|
@@ -12,6 +12,8 @@ export declare class ExtensionRegistry {
|
|
|
12
12
|
* which imports it.
|
|
13
13
|
*/
|
|
14
14
|
load(id: string, entryPointPath: string): Extension;
|
|
15
|
+
/** As `load`, but `undefined` instead of throwing when the module registers no extension under `id`. */
|
|
16
|
+
tryLoad(id: string, entryPointPath: string): Extension | undefined;
|
|
15
17
|
reset(): void;
|
|
16
18
|
}
|
|
17
19
|
export declare const registry: ExtensionRegistry;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { z } from 'zod';
|
|
2
|
-
import type { FilesApi, FileScopes } from '
|
|
2
|
+
import type { FilesApi, FileScopes } from './context/files';
|
|
3
3
|
import type { Extension } from './extension';
|
|
4
4
|
import type { OAuth2Props, OAuthBag } from './oauth/types';
|
|
5
5
|
import type { DictionaryRef } from './params';
|
|
@@ -12,17 +12,24 @@ export declare const TESTING_FILES: string[];
|
|
|
12
12
|
/**
|
|
13
13
|
* What the harness needs installed, pinned to the majors it was written against.
|
|
14
14
|
*
|
|
15
|
-
* `query-string
|
|
16
|
-
* CommonJS runtime refuses to execute
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* alone only breaks the harness. `nock-mock.js` also depends on its `parseNumbers` / `parseBooleans`
|
|
20
|
-
* options to put JS types back on a query string that carries none.
|
|
15
|
+
* No `query-string`: v7 drags in a `decode-uri-component` with a high-severity advisory, and v8 and up are
|
|
16
|
+
* ESM-only, which jest's CommonJS runtime refuses to execute. `nock-mock.js` decodes queries and form bodies
|
|
17
|
+
* itself. A project made by an older `init` keeps its own `query-string` — and its old `nock-mock.js` that
|
|
18
|
+
* requires it — because `init` never removes or overwrites.
|
|
21
19
|
*
|
|
22
20
|
* `nock` 14 is the first version that intercepts `fetch` as well as `http`, which is what makes the
|
|
23
21
|
* mock work for a service using a bundled SDK.
|
|
24
22
|
*/
|
|
25
23
|
export declare const TEST_DEV_DEPENDENCIES: Record<string, string>;
|
|
24
|
+
/**
|
|
25
|
+
* Added to `overrides`, and only where the project has no override of that name already.
|
|
26
|
+
*
|
|
27
|
+
* jest 30 reaches `glob@10` through `babel-plugin-istanbul` → `test-exclude@7`, and npm prints a
|
|
28
|
+
* deprecation warning for it on every fresh install. `test-exclude@7` only calls `glob()`, which glob 13
|
|
29
|
+
* exports unchanged — the same major jest itself already uses — so one glob for the whole tree. Drop this
|
|
30
|
+
* once `babel-plugin-istanbul` moves to `test-exclude@8`.
|
|
31
|
+
*/
|
|
32
|
+
export declare const TEST_OVERRIDES: Record<string, string>;
|
|
26
33
|
/** Added to `scripts`, and only where the project has no script of that name already. */
|
|
27
34
|
export declare const TEST_SCRIPTS: Record<string, string>;
|
|
28
35
|
/**
|
|
@@ -7,9 +7,7 @@ export interface DiscoveredService {
|
|
|
7
7
|
serviceInfo: SharedExtensionDefinition['serviceInfo'];
|
|
8
8
|
methodsMap: SharedExtensionDefinition['methodsMap'];
|
|
9
9
|
configDescriptions: SharedExtensionConfigItem[];
|
|
10
|
-
/**
|
|
11
|
-
runnerVersion: SharedExtensionDefinition['runnerVersion'];
|
|
12
|
-
/** v2 only: the declared config schema, encoded. `null` for a JSDoc-parsed service. */
|
|
10
|
+
/** The declared config schema, encoded. */
|
|
13
11
|
configSchema: SharedExtensionDefinition['configSchema'];
|
|
14
12
|
}
|
|
15
13
|
export interface DiscoveryResult {
|
|
@@ -22,5 +20,5 @@ export interface DiscoveryResult {
|
|
|
22
20
|
*/
|
|
23
21
|
skipped: SkippedService[];
|
|
24
22
|
}
|
|
25
|
-
/** Scan `services/*` under the project root and build each service's definition
|
|
23
|
+
/** Scan `services/*` under the project root and build each service's definition from its `createExtension` call. */
|
|
26
24
|
export declare function discoverServices(projectRoot?: string): DiscoveryResult;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z, type ZodSchema } from 'zod';
|
|
2
2
|
import { type AllNotificationType } from './notification-types';
|
|
3
|
+
import { panicNotificationData } from './panic-mode';
|
|
3
4
|
import { type SeverityType } from './severity';
|
|
4
5
|
/**
|
|
5
6
|
* Which activity log a given operation belongs to. Present on every operation
|
|
@@ -98,7 +99,18 @@ export declare enum ActivityLogOperation {
|
|
|
98
99
|
WS_SSO_CONFIG_SAVED = "WS_SSO_CONFIG_SAVED",
|
|
99
100
|
WS_SSO_CONFIG_DELETED = "WS_SSO_CONFIG_DELETED",
|
|
100
101
|
WS_SSO_RELINK_PERMITTED = "WS_SSO_RELINK_PERMITTED",
|
|
102
|
+
WS_SSO_SIGNING_KEY_CHANGED = "WS_SSO_SIGNING_KEY_CHANGED",
|
|
101
103
|
WS_ACCESS_KEY_ROTATED = "WS_ACCESS_KEY_ROTATED",
|
|
104
|
+
WS_EXTERNAL_INVOCATION_SUSPENDED = "WS_EXTERNAL_INVOCATION_SUSPENDED",
|
|
105
|
+
WS_EXTERNAL_INVOCATION_RESUMED = "WS_EXTERNAL_INVOCATION_RESUMED",
|
|
106
|
+
WS_ACCESS_KEY_REVOKED = "WS_ACCESS_KEY_REVOKED",
|
|
107
|
+
WS_ACCESS_KEY_REACTIVATED = "WS_ACCESS_KEY_REACTIVATED",
|
|
108
|
+
WS_ACCESS_KEY_SECRET_REVEALED = "WS_ACCESS_KEY_SECRET_REVEALED",
|
|
109
|
+
WS_ACCESS_KEY_REVOKED_KEY_USED = "WS_ACCESS_KEY_REVOKED_KEY_USED",
|
|
110
|
+
WS_ACCESS_KEY_TRANSPORT_DENIED = "WS_ACCESS_KEY_TRANSPORT_DENIED",
|
|
111
|
+
WS_ACCESS_KEY_FLOW_ALLOWLIST_DENIED = "WS_ACCESS_KEY_FLOW_ALLOWLIST_DENIED",
|
|
112
|
+
WS_ACCESS_KEY_ADDRESS_ALLOWLIST_DENIED = "WS_ACCESS_KEY_ADDRESS_ALLOWLIST_DENIED",
|
|
113
|
+
WS_ACCESS_KEY_VOLUME_SPIKED = "WS_ACCESS_KEY_VOLUME_SPIKED",
|
|
102
114
|
WS_ACCOUNT_PERMISSIONS_CHANGED = "WS_ACCOUNT_PERMISSIONS_CHANGED",
|
|
103
115
|
WS_OWNERSHIP_TRANSFER_STARTED = "WS_OWNERSHIP_TRANSFER_STARTED",
|
|
104
116
|
WS_OWNERSHIP_TRANSFER_COMPLETED = "WS_OWNERSHIP_TRANSFER_COMPLETED",
|
|
@@ -140,9 +152,13 @@ export declare enum ActivityLogOperation {
|
|
|
140
152
|
ACC_ACTIVATED_BY_SSO = "ACC_ACTIVATED_BY_SSO",
|
|
141
153
|
ACC_SSO_RELINK_PERMITTED = "ACC_SSO_RELINK_PERMITTED",
|
|
142
154
|
ACC_SSO_SIGN_IN_LINKS_REQUESTED = "ACC_SSO_SIGN_IN_LINKS_REQUESTED",
|
|
155
|
+
ACC_SSO_SIGN_IN_CODE_ISSUED = "ACC_SSO_SIGN_IN_CODE_ISSUED",
|
|
156
|
+
ACC_SSO_SIGNING_KEY_CHANGED = "ACC_SSO_SIGNING_KEY_CHANGED",
|
|
143
157
|
ACC_LOGIN_OTP_ISSUED = "ACC_LOGIN_OTP_ISSUED",
|
|
144
158
|
ACC_EMAIL_CONFIRMATION_REQUESTED = "ACC_EMAIL_CONFIRMATION_REQUESTED",
|
|
145
159
|
ACC_PAYMENT_CONFIRMATION_REQUIRED = "ACC_PAYMENT_CONFIRMATION_REQUIRED",
|
|
160
|
+
ACC_EMAIL_CHANGE_CONFIRMATION_REQUESTED = "ACC_EMAIL_CHANGE_CONFIRMATION_REQUESTED",
|
|
161
|
+
ACC_EMAIL_CHANGED = "ACC_EMAIL_CHANGED",
|
|
146
162
|
ACC_WORKSPACE_DELETED = "ACC_WORKSPACE_DELETED",
|
|
147
163
|
ACC_PASSWORD_CHANGED = "ACC_PASSWORD_CHANGED",
|
|
148
164
|
ACC_PROFILE_UPDATED = "ACC_PROFILE_UPDATED"
|
|
@@ -158,6 +174,12 @@ export interface ActivityLogOperationConfig {
|
|
|
158
174
|
requirePerformerId?: boolean;
|
|
159
175
|
detailsSchema?: ZodSchema;
|
|
160
176
|
notify?: ActivityLogNotifyRule;
|
|
177
|
+
/**
|
|
178
|
+
* Deliver only through the `notify` email — do not persist a history row and do not broadcast. For a
|
|
179
|
+
* transactional secret (a sign-in confirmation code) that must never be readable in any activity log.
|
|
180
|
+
* The notification it fires should itself be `emailOnly`. Honoured by the account activity service.
|
|
181
|
+
*/
|
|
182
|
+
transient?: boolean;
|
|
161
183
|
}
|
|
162
184
|
export declare const ActivityLogOperationsConfigs: {
|
|
163
185
|
WS_DYNAMIC_FORM_CREATED: {
|
|
@@ -768,9 +790,16 @@ export declare const ActivityLogOperationsConfigs: {
|
|
|
768
790
|
category: ActivityLogCategory.WORKSPACE_MANAGE;
|
|
769
791
|
title: string;
|
|
770
792
|
summary: string;
|
|
771
|
-
detailsSchema: z.ZodObject<{
|
|
793
|
+
detailsSchema: z.ZodObject<{
|
|
794
|
+
elements: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
795
|
+
readonly API_ACCESS: "apiAccess";
|
|
796
|
+
readonly CONSOLE_ACCESS: "consoleAccess";
|
|
797
|
+
readonly ACCOUNT_SESSIONS: "accountSessions";
|
|
798
|
+
}>>>;
|
|
799
|
+
}, z.core.$strict>;
|
|
772
800
|
notify: {
|
|
773
801
|
type: "PANIC_MODE_ENABLED";
|
|
802
|
+
mapData: typeof panicNotificationData;
|
|
774
803
|
};
|
|
775
804
|
};
|
|
776
805
|
WS_PANIC_MODE_DISABLED: {
|
|
@@ -779,9 +808,16 @@ export declare const ActivityLogOperationsConfigs: {
|
|
|
779
808
|
category: ActivityLogCategory.WORKSPACE_MANAGE;
|
|
780
809
|
title: string;
|
|
781
810
|
summary: string;
|
|
782
|
-
detailsSchema: z.ZodObject<{
|
|
811
|
+
detailsSchema: z.ZodObject<{
|
|
812
|
+
elements: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
813
|
+
readonly API_ACCESS: "apiAccess";
|
|
814
|
+
readonly CONSOLE_ACCESS: "consoleAccess";
|
|
815
|
+
readonly ACCOUNT_SESSIONS: "accountSessions";
|
|
816
|
+
}>>>;
|
|
817
|
+
}, z.core.$strict>;
|
|
783
818
|
notify: {
|
|
784
819
|
type: "PANIC_MODE_DISABLED";
|
|
820
|
+
mapData: typeof panicNotificationData;
|
|
785
821
|
};
|
|
786
822
|
};
|
|
787
823
|
WS_HIPAA_COMPLIANCE_ENABLED: {
|
|
@@ -826,6 +862,26 @@ export declare const ActivityLogOperationsConfigs: {
|
|
|
826
862
|
accountId: z.ZodOptional<z.ZodString>;
|
|
827
863
|
}, z.core.$strip>;
|
|
828
864
|
};
|
|
865
|
+
WS_SSO_SIGNING_KEY_CHANGED: {
|
|
866
|
+
scope: ActivityLogScope.WORKSPACE;
|
|
867
|
+
severity: "warning";
|
|
868
|
+
category: ActivityLogCategory.WORKSPACE_MANAGE;
|
|
869
|
+
title: ({ accountName, signingCertificates }: Record<string, unknown>) => string;
|
|
870
|
+
summary: string;
|
|
871
|
+
detailsSchema: z.ZodObject<{
|
|
872
|
+
accountId: z.ZodString;
|
|
873
|
+
accountName: z.ZodOptional<z.ZodString>;
|
|
874
|
+
signingKeyFingerprint: z.ZodString;
|
|
875
|
+
signingCertificates: z.ZodArray<z.ZodObject<{
|
|
876
|
+
sha256: z.ZodString;
|
|
877
|
+
sha1: z.ZodString;
|
|
878
|
+
}, z.core.$strip>>;
|
|
879
|
+
}, z.core.$strip>;
|
|
880
|
+
notify: {
|
|
881
|
+
type: "WORKSPACE_SSO_SIGNING_KEY_CHANGED";
|
|
882
|
+
recipient: "workspaceOwner";
|
|
883
|
+
};
|
|
884
|
+
};
|
|
829
885
|
WS_ACCESS_KEY_ROTATED: {
|
|
830
886
|
scope: ActivityLogScope.WORKSPACE;
|
|
831
887
|
severity: "critical";
|
|
@@ -839,6 +895,133 @@ export declare const ActivityLogOperationsConfigs: {
|
|
|
839
895
|
type: "ACCESS_KEY_ROTATED";
|
|
840
896
|
};
|
|
841
897
|
};
|
|
898
|
+
WS_EXTERNAL_INVOCATION_SUSPENDED: {
|
|
899
|
+
scope: ActivityLogScope.WORKSPACE;
|
|
900
|
+
severity: "warning";
|
|
901
|
+
category: ActivityLogCategory.API_KEYS;
|
|
902
|
+
title: () => string;
|
|
903
|
+
summary: string;
|
|
904
|
+
requirePerformerId: true;
|
|
905
|
+
};
|
|
906
|
+
WS_EXTERNAL_INVOCATION_RESUMED: {
|
|
907
|
+
scope: ActivityLogScope.WORKSPACE;
|
|
908
|
+
severity: "info";
|
|
909
|
+
category: ActivityLogCategory.API_KEYS;
|
|
910
|
+
title: () => string;
|
|
911
|
+
summary: string;
|
|
912
|
+
requirePerformerId: true;
|
|
913
|
+
};
|
|
914
|
+
WS_ACCESS_KEY_REVOKED: {
|
|
915
|
+
scope: ActivityLogScope.WORKSPACE;
|
|
916
|
+
severity: "warning";
|
|
917
|
+
category: ActivityLogCategory.API_KEYS;
|
|
918
|
+
title: ({ accessKeyName }: Record<string, unknown>) => string;
|
|
919
|
+
summary: string;
|
|
920
|
+
requirePerformerId: true;
|
|
921
|
+
detailsSchema: z.ZodObject<{
|
|
922
|
+
accessKeyId: z.ZodString;
|
|
923
|
+
}, z.core.$strict>;
|
|
924
|
+
};
|
|
925
|
+
WS_ACCESS_KEY_REACTIVATED: {
|
|
926
|
+
scope: ActivityLogScope.WORKSPACE;
|
|
927
|
+
severity: "info";
|
|
928
|
+
category: ActivityLogCategory.API_KEYS;
|
|
929
|
+
title: ({ accessKeyName }: Record<string, unknown>) => string;
|
|
930
|
+
summary: string;
|
|
931
|
+
requirePerformerId: true;
|
|
932
|
+
detailsSchema: z.ZodObject<{
|
|
933
|
+
accessKeyId: z.ZodString;
|
|
934
|
+
}, z.core.$strict>;
|
|
935
|
+
};
|
|
936
|
+
WS_ACCESS_KEY_SECRET_REVEALED: {
|
|
937
|
+
scope: ActivityLogScope.WORKSPACE;
|
|
938
|
+
severity: "info";
|
|
939
|
+
category: ActivityLogCategory.API_KEYS;
|
|
940
|
+
title: ({ accessKeyName }: Record<string, unknown>) => string;
|
|
941
|
+
summary: string;
|
|
942
|
+
requirePerformerId: true;
|
|
943
|
+
detailsSchema: z.ZodObject<{
|
|
944
|
+
accessKeyId: z.ZodString;
|
|
945
|
+
}, z.core.$strict>;
|
|
946
|
+
};
|
|
947
|
+
WS_ACCESS_KEY_REVOKED_KEY_USED: {
|
|
948
|
+
scope: ActivityLogScope.WORKSPACE;
|
|
949
|
+
severity: "critical";
|
|
950
|
+
category: ActivityLogCategory.API_KEYS;
|
|
951
|
+
title: ({ accessKeyName }: Record<string, unknown>) => string;
|
|
952
|
+
summary: string;
|
|
953
|
+
detailsSchema: z.ZodObject<{
|
|
954
|
+
accessKeyId: z.ZodString;
|
|
955
|
+
accessKeyName: z.ZodString;
|
|
956
|
+
}, z.core.$strict>;
|
|
957
|
+
notify: {
|
|
958
|
+
type: "ACCESS_KEY_REVOKED_KEY_USED";
|
|
959
|
+
recipient: "workspaceOwner";
|
|
960
|
+
};
|
|
961
|
+
};
|
|
962
|
+
WS_ACCESS_KEY_TRANSPORT_DENIED: {
|
|
963
|
+
scope: ActivityLogScope.WORKSPACE;
|
|
964
|
+
severity: "warning";
|
|
965
|
+
category: ActivityLogCategory.API_KEYS;
|
|
966
|
+
title: ({ accessKeyName, transport }: Record<string, unknown>) => string;
|
|
967
|
+
summary: string;
|
|
968
|
+
detailsSchema: z.ZodObject<{
|
|
969
|
+
accessKeyId: z.ZodString;
|
|
970
|
+
accessKeyName: z.ZodString;
|
|
971
|
+
transport: z.ZodString;
|
|
972
|
+
}, z.core.$strict>;
|
|
973
|
+
notify: {
|
|
974
|
+
type: "ACCESS_KEY_TRANSPORT_DENIED";
|
|
975
|
+
};
|
|
976
|
+
};
|
|
977
|
+
WS_ACCESS_KEY_FLOW_ALLOWLIST_DENIED: {
|
|
978
|
+
scope: ActivityLogScope.WORKSPACE;
|
|
979
|
+
severity: "warning";
|
|
980
|
+
category: ActivityLogCategory.API_KEYS;
|
|
981
|
+
title: ({ accessKeyName }: Record<string, unknown>) => string;
|
|
982
|
+
summary: string;
|
|
983
|
+
detailsSchema: z.ZodObject<{
|
|
984
|
+
accessKeyId: z.ZodString;
|
|
985
|
+
accessKeyName: z.ZodString;
|
|
986
|
+
flowIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
987
|
+
}, z.core.$strict>;
|
|
988
|
+
notify: {
|
|
989
|
+
type: "ACCESS_KEY_FLOW_ALLOWLIST_DENIED";
|
|
990
|
+
};
|
|
991
|
+
};
|
|
992
|
+
WS_ACCESS_KEY_ADDRESS_ALLOWLIST_DENIED: {
|
|
993
|
+
scope: ActivityLogScope.WORKSPACE;
|
|
994
|
+
severity: "critical";
|
|
995
|
+
category: ActivityLogCategory.API_KEYS;
|
|
996
|
+
title: ({ accessKeyName, address }: Record<string, unknown>) => string;
|
|
997
|
+
summary: string;
|
|
998
|
+
detailsSchema: z.ZodObject<{
|
|
999
|
+
accessKeyId: z.ZodString;
|
|
1000
|
+
accessKeyName: z.ZodString;
|
|
1001
|
+
address: z.ZodString;
|
|
1002
|
+
}, z.core.$strict>;
|
|
1003
|
+
notify: {
|
|
1004
|
+
type: "ACCESS_KEY_ADDRESS_ALLOWLIST_DENIED";
|
|
1005
|
+
recipient: "workspaceOwner";
|
|
1006
|
+
};
|
|
1007
|
+
};
|
|
1008
|
+
WS_ACCESS_KEY_VOLUME_SPIKED: {
|
|
1009
|
+
scope: ActivityLogScope.WORKSPACE;
|
|
1010
|
+
severity: "warning";
|
|
1011
|
+
category: ActivityLogCategory.API_KEYS;
|
|
1012
|
+
title: ({ accessKeyName }: Record<string, unknown>) => string;
|
|
1013
|
+
summary: string;
|
|
1014
|
+
detailsSchema: z.ZodObject<{
|
|
1015
|
+
accessKeyId: z.ZodString;
|
|
1016
|
+
accessKeyName: z.ZodString;
|
|
1017
|
+
todayExecutions: z.ZodNumber;
|
|
1018
|
+
baselineExecutions: z.ZodNumber;
|
|
1019
|
+
windowInDays: z.ZodNumber;
|
|
1020
|
+
}, z.core.$strict>;
|
|
1021
|
+
notify: {
|
|
1022
|
+
type: "ACCESS_KEY_VOLUME_SPIKED";
|
|
1023
|
+
};
|
|
1024
|
+
};
|
|
842
1025
|
WS_ACCOUNT_PERMISSIONS_CHANGED: {
|
|
843
1026
|
scope: ActivityLogScope.WORKSPACE;
|
|
844
1027
|
severity: "info";
|
|
@@ -1409,6 +1592,41 @@ export declare const ActivityLogOperationsConfigs: {
|
|
|
1409
1592
|
type: "SSO_SIGN_IN_LINKS_REQUESTED";
|
|
1410
1593
|
};
|
|
1411
1594
|
};
|
|
1595
|
+
ACC_SSO_SIGN_IN_CODE_ISSUED: {
|
|
1596
|
+
scope: ActivityLogScope.ACCOUNT;
|
|
1597
|
+
severity: "info";
|
|
1598
|
+
category: ActivityLogCategory.ACCOUNT;
|
|
1599
|
+
title: string;
|
|
1600
|
+
summary: string;
|
|
1601
|
+
detailsSchema: z.ZodObject<{
|
|
1602
|
+
workspaceId: z.ZodString;
|
|
1603
|
+
workspaceName: z.ZodOptional<z.ZodString>;
|
|
1604
|
+
code: z.ZodString;
|
|
1605
|
+
}, z.core.$strip>;
|
|
1606
|
+
transient: true;
|
|
1607
|
+
notify: {
|
|
1608
|
+
type: "SSO_SIGN_IN_CODE_ISSUED";
|
|
1609
|
+
};
|
|
1610
|
+
};
|
|
1611
|
+
ACC_SSO_SIGNING_KEY_CHANGED: {
|
|
1612
|
+
scope: ActivityLogScope.ACCOUNT;
|
|
1613
|
+
severity: "warning";
|
|
1614
|
+
category: ActivityLogCategory.ACCOUNT;
|
|
1615
|
+
title: ({ workspaceName }: Record<string, unknown>) => string;
|
|
1616
|
+
summary: string;
|
|
1617
|
+
detailsSchema: z.ZodObject<{
|
|
1618
|
+
workspaceId: z.ZodString;
|
|
1619
|
+
workspaceName: z.ZodOptional<z.ZodString>;
|
|
1620
|
+
signingKeyFingerprint: z.ZodString;
|
|
1621
|
+
signingCertificates: z.ZodArray<z.ZodObject<{
|
|
1622
|
+
sha256: z.ZodString;
|
|
1623
|
+
sha1: z.ZodString;
|
|
1624
|
+
}, z.core.$strip>>;
|
|
1625
|
+
}, z.core.$strip>;
|
|
1626
|
+
notify: {
|
|
1627
|
+
type: "SSO_SIGNING_KEY_CHANGED";
|
|
1628
|
+
};
|
|
1629
|
+
};
|
|
1412
1630
|
ACC_LOGIN_OTP_ISSUED: {
|
|
1413
1631
|
scope: ActivityLogScope.ACCOUNT;
|
|
1414
1632
|
severity: "info";
|
|
@@ -1435,6 +1653,34 @@ export declare const ActivityLogOperationsConfigs: {
|
|
|
1435
1653
|
type: "ACCOUNT_REGISTRATION_CONFIRMATION";
|
|
1436
1654
|
};
|
|
1437
1655
|
};
|
|
1656
|
+
ACC_EMAIL_CHANGE_CONFIRMATION_REQUESTED: {
|
|
1657
|
+
scope: ActivityLogScope.ACCOUNT;
|
|
1658
|
+
severity: "warning";
|
|
1659
|
+
category: ActivityLogCategory.ACCOUNT;
|
|
1660
|
+
title: string;
|
|
1661
|
+
summary: string;
|
|
1662
|
+
detailsSchema: z.ZodObject<{
|
|
1663
|
+
newEmail: z.ZodString;
|
|
1664
|
+
code: z.ZodString;
|
|
1665
|
+
}, z.core.$strip>;
|
|
1666
|
+
notify: {
|
|
1667
|
+
type: "EMAIL_CHANGE_CONFIRMATION_REQUESTED";
|
|
1668
|
+
};
|
|
1669
|
+
};
|
|
1670
|
+
ACC_EMAIL_CHANGED: {
|
|
1671
|
+
scope: ActivityLogScope.ACCOUNT;
|
|
1672
|
+
severity: "critical";
|
|
1673
|
+
category: ActivityLogCategory.ACCOUNT;
|
|
1674
|
+
title: string;
|
|
1675
|
+
summary: string;
|
|
1676
|
+
detailsSchema: z.ZodObject<{
|
|
1677
|
+
previousEmail: z.ZodString;
|
|
1678
|
+
newEmail: z.ZodString;
|
|
1679
|
+
}, z.core.$strip>;
|
|
1680
|
+
notify: {
|
|
1681
|
+
type: "EMAIL_CHANGED";
|
|
1682
|
+
};
|
|
1683
|
+
};
|
|
1438
1684
|
ACC_PAYMENT_CONFIRMATION_REQUIRED: {
|
|
1439
1685
|
scope: ActivityLogScope.ACCOUNT;
|
|
1440
1686
|
severity: "warning";
|
|
@@ -18,3 +18,23 @@ export declare enum CommonErrorTypes {
|
|
|
18
18
|
export declare enum OAuthConnectionErrorTypes {
|
|
19
19
|
OAUTH_CONNECTION_RECONNECT_REQUIRED = "OAUTH_CONNECTION_RECONNECT_REQUIRED"
|
|
20
20
|
}
|
|
21
|
+
export declare enum SecretErrorTypes {
|
|
22
|
+
SECRET_DECRYPTION_FAILED = "SECRET_DECRYPTION_FAILED",
|
|
23
|
+
SECRETS_KEYSET_NOT_LOADED = "SECRETS_KEYSET_NOT_LOADED",
|
|
24
|
+
SECRETS_KEYSET_NOT_CONFIGURED = "SECRETS_KEYSET_NOT_CONFIGURED",
|
|
25
|
+
SECRETS_KEYSET_INVALID = "SECRETS_KEYSET_INVALID"
|
|
26
|
+
}
|
|
27
|
+
export declare enum FlowCatalogErrorTypes {
|
|
28
|
+
PACK_NOT_FOUND = "FLOW_CATALOG_PACK_NOT_FOUND",
|
|
29
|
+
VERSION_NOT_FOUND = "FLOW_CATALOG_VERSION_NOT_FOUND",
|
|
30
|
+
NO_CHANGES = "FLOW_CATALOG_NO_CHANGES",
|
|
31
|
+
IDENTICAL_TO_VERSION = "FLOW_CATALOG_IDENTICAL_TO_VERSION",
|
|
32
|
+
BLOCKING_ISSUES = "FLOW_CATALOG_BLOCKING_ISSUES",
|
|
33
|
+
WARNINGS_NOT_ACKNOWLEDGED = "FLOW_CATALOG_WARNINGS_NOT_ACKNOWLEDGED",
|
|
34
|
+
NOT_PUBLISHED = "FLOW_CATALOG_NOT_PUBLISHED",
|
|
35
|
+
NAME_COLLISION = "FLOW_CATALOG_NAME_COLLISION",
|
|
36
|
+
INVALID_PACK_FILE = "FLOW_CATALOG_INVALID_PACK_FILE",
|
|
37
|
+
SETUP_INCOMPLETE = "FLOW_CATALOG_SETUP_INCOMPLETE",
|
|
38
|
+
EXTENSION_NOT_INSTALLED = "FLOW_CATALOG_EXTENSION_NOT_INSTALLED",
|
|
39
|
+
PACK_PUBLISHED = "FLOW_CATALOG_PACK_PUBLISHED"
|
|
40
|
+
}
|