@treasuredata/tdx 0.9.7 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +1 -1
- package/dist/build-info.json +2 -2
- package/dist/cli-categories.js +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/activations.js.map +1 -1
- package/dist/commands/agent-command.js +1 -1
- package/dist/commands/agent-command.js.map +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/api-command.js.map +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/auth-command.js.map +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/chat-command.js.map +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-statusline-command.js.map +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/claude-usage-command.js.map +1 -1
- package/dist/commands/command.d.ts +2 -2
- package/dist/commands/command.d.ts.map +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/command.js.map +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/connection-command.js.map +1 -1
- package/dist/commands/context-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/databases.js.map +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/describe.js.map +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/engage-command.js.map +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/job-command.js.map +1 -1
- package/dist/commands/journey-command.d.ts.map +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/journey-command.js.map +1 -1
- package/dist/commands/journey-validate-command.d.ts +18 -0
- package/dist/commands/journey-validate-command.d.ts.map +1 -0
- package/dist/commands/journey-validate-command.js +1 -0
- package/dist/commands/journey-validate-command.js.map +1 -0
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/llm-command.js.map +1 -1
- package/dist/commands/llm-proxy.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/parent-segment-command.js.map +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/profiles-command.js.map +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/query-command.js.map +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-command.js.map +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-create-command.js.map +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-fields-command.js.map +1 -1
- package/dist/commands/segment-pull-command.d.ts +1 -6
- package/dist/commands/segment-pull-command.d.ts.map +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-pull-command.js.map +1 -1
- package/dist/commands/segment-push-command.d.ts +2 -0
- package/dist/commands/segment-push-command.d.ts.map +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-push-command.js.map +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-update-command.js.map +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-use-command.js.map +1 -1
- package/dist/commands/segment-validate-command.d.ts +18 -0
- package/dist/commands/segment-validate-command.d.ts.map +1 -0
- package/dist/commands/segment-validate-command.js +1 -0
- package/dist/commands/segment-validate-command.js.map +1 -0
- package/dist/commands/segments.js +1 -1
- package/dist/commands/segments.js.map +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/show.js.map +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/tables.js.map +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/use-command.js.map +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/user-command.js.map +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/commands/workflow-command.js.map +1 -1
- package/dist/core/auth.d.ts +1 -1
- package/dist/core/auth.d.ts.map +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/{utils → core}/command-output.d.ts +1 -1
- package/dist/core/command-output.d.ts.map +1 -0
- package/dist/core/command-output.js +1 -0
- package/dist/core/command-output.js.map +1 -0
- package/dist/core/config.d.ts +1 -1
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/config.js.map +1 -1
- package/dist/core/connection-cache.d.ts +1 -1
- package/dist/core/connection-cache.d.ts.map +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/constants.d.ts.map +1 -0
- package/dist/core/constants.js +1 -0
- package/dist/core/constants.js.map +1 -0
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.d.ts +2 -2
- package/dist/core/global-context.d.ts.map +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/profile.d.ts +1 -1
- package/dist/core/profile.d.ts.map +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.d.ts +1 -1
- package/dist/core/project-config.d.ts.map +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.d.ts +1 -1
- package/dist/core/session.d.ts.map +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/user-cache.d.ts +1 -1
- package/dist/core/user-cache.d.ts.map +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/proxy/anthropic-adapter.d.ts +2 -2
- package/dist/proxy/anthropic-adapter.d.ts.map +1 -1
- package/dist/proxy/anthropic-adapter.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/claude-usage-tracker.js.map +1 -1
- package/dist/proxy/context-signature.d.ts +1 -1
- package/dist/proxy/context-signature.d.ts.map +1 -1
- package/dist/proxy/context-signature.js +1 -1
- package/dist/proxy/context-signature.js.map +1 -1
- package/dist/proxy/conversation-utils.d.ts +1 -1
- package/dist/proxy/conversation-utils.d.ts.map +1 -1
- package/dist/proxy/conversation-utils.js +1 -1
- package/dist/proxy/server.js +1 -1
- package/dist/proxy/server.js.map +1 -1
- package/dist/proxy/session-cache.d.ts +1 -1
- package/dist/proxy/session-cache.d.ts.map +1 -1
- package/dist/proxy/session-cache.js +1 -1
- package/dist/sdk/agent/agent-config.d.ts.map +1 -0
- package/dist/sdk/agent/agent-config.js +1 -0
- package/dist/sdk/agent/agent-config.js.map +1 -0
- package/dist/sdk/agent/agent-ref-parser.d.ts.map +1 -0
- package/dist/sdk/agent/agent-ref-parser.js +1 -0
- package/dist/sdk/agent/agent-ref-parser.js.map +1 -0
- package/dist/sdk/agent/agent-yaml.d.ts +71 -176
- package/dist/sdk/agent/agent-yaml.d.ts.map +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/agent-yaml.js.map +1 -1
- package/dist/sdk/agent/types/agent-def.d.ts +182 -0
- package/dist/sdk/agent/types/agent-def.d.ts.map +1 -0
- package/dist/sdk/agent/types/agent-def.js.map +1 -0
- package/dist/sdk/api.d.ts +2 -2
- package/dist/sdk/api.d.ts.map +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/api.js.map +1 -1
- package/dist/{client → sdk/client}/cdp-api-client.d.ts +24 -9
- package/dist/sdk/client/cdp-api-client.d.ts.map +1 -0
- package/dist/sdk/client/cdp-api-client.js +1 -0
- package/dist/sdk/client/cdp-api-client.js.map +1 -0
- package/dist/{types → sdk/client}/endpoints.d.ts +1 -1
- package/dist/sdk/client/endpoints.d.ts.map +1 -0
- package/dist/sdk/client/endpoints.js +1 -0
- package/dist/sdk/client/endpoints.js.map +1 -0
- package/dist/{client → sdk/client}/engage-api-client.d.ts +1 -1
- package/dist/sdk/client/engage-api-client.d.ts.map +1 -0
- package/dist/sdk/client/engage-api-client.js +1 -0
- package/dist/sdk/client/engage-api-client.js.map +1 -0
- package/dist/{client → sdk/client}/http-client.d.ts +2 -2
- package/dist/sdk/client/http-client.d.ts.map +1 -0
- package/dist/sdk/client/http-client.js +1 -0
- package/dist/sdk/client/http-client.js.map +1 -0
- package/dist/{client → sdk/client}/llm-api-client.d.ts +8 -8
- package/dist/sdk/client/llm-api-client.d.ts.map +1 -0
- package/dist/sdk/client/llm-api-client.js +1 -0
- package/dist/sdk/client/llm-api-client.js.map +1 -0
- package/dist/sdk/client/rate-limiter.d.ts.map +1 -0
- package/dist/sdk/client/rate-limiter.js +1 -0
- package/dist/sdk/client/rate-limiter.js.map +1 -0
- package/dist/{client → sdk/client}/td-api-client.d.ts +2 -2
- package/dist/sdk/client/td-api-client.d.ts.map +1 -0
- package/dist/sdk/client/td-api-client.js +1 -0
- package/dist/sdk/client/td-api-client.js.map +1 -0
- package/dist/{client → sdk/client}/trino-api-client.d.ts +2 -2
- package/dist/sdk/client/trino-api-client.d.ts.map +1 -0
- package/dist/sdk/client/trino-api-client.js +1 -0
- package/dist/sdk/client/trino-api-client.js.map +1 -0
- package/dist/{client → sdk/client}/workflow-client.d.ts +2 -2
- package/dist/sdk/client/workflow-client.d.ts.map +1 -0
- package/dist/sdk/client/workflow-client.js +1 -0
- package/dist/sdk/client/workflow-client.js.map +1 -0
- package/dist/sdk/connection-validator.d.ts +1 -1
- package/dist/sdk/connection-validator.d.ts.map +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.d.ts +1 -1
- package/dist/sdk/connection.d.ts.map +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/connection.js.map +1 -1
- package/dist/sdk/engage.d.ts +1 -1
- package/dist/sdk/engage.d.ts.map +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/engage.js.map +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.d.ts +18 -18
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/io/index.d.ts +9 -0
- package/dist/sdk/io/index.d.ts.map +1 -0
- package/dist/sdk/io/index.js +1 -0
- package/dist/sdk/io/index.js.map +1 -0
- package/dist/sdk/io/node-filesystem.d.ts +13 -0
- package/dist/sdk/io/node-filesystem.d.ts.map +1 -0
- package/dist/sdk/io/node-filesystem.js +1 -0
- package/dist/sdk/io/node-filesystem.js.map +1 -0
- package/dist/sdk/io/types.d.ts +39 -0
- package/dist/sdk/io/types.d.ts.map +1 -0
- package/dist/sdk/io/types.js.map +1 -0
- package/dist/sdk/job.d.ts +1 -1
- package/dist/sdk/job.d.ts.map +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/job.js.map +1 -1
- package/dist/sdk/journey.d.ts +23 -1
- package/dist/sdk/journey.d.ts.map +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/journey.js.map +1 -1
- package/dist/sdk/llm/chat-cache.d.ts.map +1 -0
- package/dist/sdk/llm/chat-cache.js +1 -0
- package/dist/sdk/llm/chat-cache.js.map +1 -0
- package/dist/sdk/{llm.d.ts → llm/index.d.ts} +2 -2
- package/dist/sdk/llm/index.d.ts.map +1 -0
- package/dist/sdk/llm/index.js +1 -0
- package/dist/sdk/llm/index.js.map +1 -0
- package/dist/{utils → sdk/llm}/llm-backup-utils.d.ts +2 -2
- package/dist/sdk/llm/llm-backup-utils.d.ts.map +1 -0
- package/dist/sdk/llm/llm-backup-utils.js +1 -0
- package/dist/sdk/llm/llm-backup-utils.js.map +1 -0
- package/dist/sdk/llm/model-aliases.d.ts.map +1 -0
- package/dist/sdk/llm/model-aliases.js +1 -0
- package/dist/sdk/llm/model-aliases.js.map +1 -0
- package/dist/sdk/llm/model-factors.d.ts.map +1 -0
- package/dist/sdk/llm/model-factors.js +1 -0
- package/dist/sdk/llm/model-factors.js.map +1 -0
- package/dist/sdk/{query.d.ts → query/index.d.ts} +2 -2
- package/dist/sdk/query/index.d.ts.map +1 -0
- package/dist/sdk/query/index.js +1 -0
- package/dist/sdk/query/index.js.map +1 -0
- package/dist/sdk/query/sql-parser.d.ts.map +1 -0
- package/dist/sdk/query/sql-parser.js +1 -0
- package/dist/sdk/query/sql-parser.js.map +1 -0
- package/dist/sdk/segment/child-segment-yaml.d.ts +84 -257
- package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js.map +1 -1
- package/dist/{utils → sdk/segment}/fields-display.d.ts +1 -1
- package/dist/sdk/segment/fields-display.d.ts.map +1 -0
- package/dist/sdk/segment/fields-display.js +1 -0
- package/dist/sdk/segment/fields-display.js.map +1 -0
- package/dist/sdk/segment/file-discovery.d.ts +39 -0
- package/dist/sdk/segment/file-discovery.d.ts.map +1 -0
- package/dist/sdk/segment/file-discovery.js +1 -0
- package/dist/sdk/segment/file-discovery.js.map +1 -0
- package/dist/{utils → sdk/segment}/journey-utils.d.ts +62 -9
- package/dist/sdk/segment/journey-utils.d.ts.map +1 -0
- package/dist/sdk/segment/journey-utils.js +1 -0
- package/dist/sdk/segment/journey-utils.js.map +1 -0
- package/dist/sdk/segment/journey-yaml.d.ts +81 -465
- package/dist/sdk/segment/journey-yaml.d.ts.map +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/journey-yaml.js.map +1 -1
- package/dist/sdk/segment/parent-segment-preview.d.ts +14 -14
- package/dist/sdk/segment/parent-segment-preview.d.ts.map +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js.map +1 -1
- package/dist/sdk/segment/parent-segment-yaml.d.ts +16 -158
- package/dist/sdk/segment/parent-segment-yaml.d.ts.map +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js.map +1 -1
- package/dist/sdk/segment/pull-workflow.d.ts +91 -0
- package/dist/sdk/segment/pull-workflow.d.ts.map +1 -0
- package/dist/sdk/segment/pull-workflow.js +1 -0
- package/dist/sdk/segment/pull-workflow.js.map +1 -0
- package/dist/sdk/segment/push-workflow.d.ts +953 -0
- package/dist/sdk/segment/push-workflow.d.ts.map +1 -0
- package/dist/sdk/segment/push-workflow.js +1 -0
- package/dist/sdk/segment/push-workflow.js.map +1 -0
- package/dist/sdk/segment/resolution-context.d.ts +43 -0
- package/dist/sdk/segment/resolution-context.d.ts.map +1 -0
- package/dist/sdk/segment/resolution-context.js +1 -0
- package/dist/sdk/segment/resolution-context.js.map +1 -0
- package/dist/{utils → sdk/segment}/segment-path-parser.d.ts +2 -1
- package/dist/sdk/segment/segment-path-parser.d.ts.map +1 -0
- package/dist/sdk/segment/segment-path-parser.js +1 -0
- package/dist/sdk/segment/segment-path-parser.js.map +1 -0
- package/dist/sdk/segment/segment-ref-parser.d.ts.map +1 -0
- package/dist/sdk/segment/segment-ref-parser.js +1 -0
- package/dist/sdk/segment/segment-ref-parser.js.map +1 -0
- package/dist/sdk/segment/target-resolution.d.ts +162 -0
- package/dist/sdk/segment/target-resolution.d.ts.map +1 -0
- package/dist/sdk/segment/target-resolution.js +1 -0
- package/dist/sdk/segment/target-resolution.js.map +1 -0
- package/dist/{utils → sdk/segment}/tdx-config.d.ts +8 -0
- package/dist/sdk/segment/tdx-config.d.ts.map +1 -0
- package/dist/sdk/segment/tdx-config.js +1 -0
- package/dist/sdk/segment/tdx-config.js.map +1 -0
- package/dist/sdk/segment/types/journey-def.d.ts +323 -0
- package/dist/sdk/segment/types/journey-def.d.ts.map +1 -0
- package/dist/sdk/segment/types/journey-def.js.map +1 -0
- package/dist/sdk/segment/types/parent-segment-def.d.ts +157 -0
- package/dist/sdk/segment/types/parent-segment-def.d.ts.map +1 -0
- package/dist/sdk/segment/types/parent-segment-def.js.map +1 -0
- package/dist/sdk/segment/types/segment-def.d.ts +284 -0
- package/dist/sdk/segment/types/segment-def.d.ts.map +1 -0
- package/dist/sdk/segment/types/segment-def.js.map +1 -0
- package/dist/sdk/segment/validate-files.d.ts +94 -0
- package/dist/sdk/segment/validate-files.d.ts.map +1 -0
- package/dist/sdk/segment/validate-files.js +1 -0
- package/dist/sdk/segment/validate-files.js.map +1 -0
- package/dist/sdk/segment/yaml-validator.d.ts +101 -0
- package/dist/sdk/segment/yaml-validator.d.ts.map +1 -0
- package/dist/sdk/segment/yaml-validator.js +1 -0
- package/dist/sdk/segment/yaml-validator.js.map +1 -0
- package/dist/sdk/segment.d.ts +59 -15
- package/dist/sdk/segment.d.ts.map +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/segment.js.map +1 -1
- package/dist/sdk/types/anthropic.d.ts.map +1 -0
- package/dist/sdk/types/anthropic.js.map +1 -0
- package/dist/{types → sdk/types}/cdp.d.ts +2 -2
- package/dist/sdk/types/cdp.d.ts.map +1 -0
- package/dist/sdk/types/cdp.js.map +1 -0
- package/dist/sdk/types/connection.d.ts.map +1 -0
- package/dist/sdk/types/connection.js.map +1 -0
- package/dist/sdk/types/connector-schema.d.ts.map +1 -0
- package/dist/sdk/types/connector-schema.js.map +1 -0
- package/dist/sdk/types/database.d.ts.map +1 -0
- package/dist/sdk/types/database.js.map +1 -0
- package/dist/sdk/types/engage.d.ts.map +1 -0
- package/dist/sdk/types/engage.js +1 -0
- package/dist/sdk/types/engage.js.map +1 -0
- package/dist/{types → sdk/types}/index.d.ts +6 -4
- package/dist/sdk/types/index.d.ts.map +1 -0
- package/dist/sdk/types/index.js +1 -0
- package/dist/sdk/types/index.js.map +1 -0
- package/dist/sdk/types/job.d.ts.map +1 -0
- package/dist/sdk/types/job.js +1 -0
- package/dist/sdk/types/job.js.map +1 -0
- package/dist/{types → sdk/types}/llm.d.ts +2 -2
- package/dist/sdk/types/llm.d.ts.map +1 -0
- package/dist/sdk/types/llm.js +1 -0
- package/dist/sdk/types/llm.js.map +1 -0
- package/dist/sdk/types/progress.d.ts +42 -0
- package/dist/sdk/types/progress.d.ts.map +1 -0
- package/dist/sdk/types/progress.js +1 -0
- package/dist/sdk/types/progress.js.map +1 -0
- package/dist/sdk/types/resolution-context.d.ts +85 -0
- package/dist/sdk/types/resolution-context.d.ts.map +1 -0
- package/dist/sdk/types/resolution-context.js +1 -0
- package/dist/sdk/types/resolution-context.js.map +1 -0
- package/dist/sdk/types/trino.d.ts.map +1 -0
- package/dist/sdk/types/trino.js +1 -0
- package/dist/sdk/types/trino.js.map +1 -0
- package/dist/sdk/types/workflow.d.ts.map +1 -0
- package/dist/sdk/types/workflow.js +1 -0
- package/dist/sdk/types/workflow.js.map +1 -0
- package/dist/sdk/user.d.ts +1 -1
- package/dist/sdk/user.d.ts.map +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/user.js.map +1 -1
- package/dist/sdk/util/format-detector.d.ts.map +1 -0
- package/dist/sdk/util/format-detector.js +1 -0
- package/dist/sdk/util/format-detector.js.map +1 -0
- package/dist/{utils → sdk/util}/formatters.d.ts +1 -1
- package/dist/sdk/util/formatters.d.ts.map +1 -0
- package/dist/sdk/util/formatters.js +1 -0
- package/dist/sdk/util/formatters.js.map +1 -0
- package/dist/sdk/util/index.d.ts +9 -0
- package/dist/sdk/util/index.d.ts.map +1 -0
- package/dist/sdk/util/index.js +1 -0
- package/dist/sdk/util/index.js.map +1 -0
- package/dist/sdk/util/tree-formatter.d.ts.map +1 -0
- package/dist/sdk/util/tree-formatter.js +1 -0
- package/dist/sdk/util/tree-formatter.js.map +1 -0
- package/dist/sdk/{workflow.d.ts → workflow/index.d.ts} +2 -2
- package/dist/sdk/workflow/index.d.ts.map +1 -0
- package/dist/sdk/workflow/index.js +1 -0
- package/dist/sdk/workflow/index.js.map +1 -0
- package/dist/sdk/workflow/workflow-utils.d.ts.map +1 -0
- package/dist/sdk/workflow/workflow-utils.js +1 -0
- package/dist/sdk/workflow/workflow-utils.js.map +1 -0
- package/dist/utils/async.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/port.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/spinner.d.ts +12 -12
- package/dist/utils/spinner.d.ts.map +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/spinner.js.map +1 -1
- package/dist/utils/sse-parser.d.ts +1 -1
- package/dist/utils/sse-parser.d.ts.map +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/package.json +1 -1
- package/dist/client/cdp-api-client.d.ts.map +0 -1
- package/dist/client/cdp-api-client.js +0 -1
- package/dist/client/cdp-api-client.js.map +0 -1
- package/dist/client/engage-api-client.d.ts.map +0 -1
- package/dist/client/engage-api-client.js +0 -1
- package/dist/client/engage-api-client.js.map +0 -1
- package/dist/client/http-client.d.ts.map +0 -1
- package/dist/client/http-client.js +0 -1
- package/dist/client/http-client.js.map +0 -1
- package/dist/client/llm-api-client.d.ts.map +0 -1
- package/dist/client/llm-api-client.js +0 -1
- package/dist/client/llm-api-client.js.map +0 -1
- package/dist/client/rate-limiter.d.ts.map +0 -1
- package/dist/client/rate-limiter.js +0 -1
- package/dist/client/rate-limiter.js.map +0 -1
- package/dist/client/td-api-client.d.ts.map +0 -1
- package/dist/client/td-api-client.js +0 -1
- package/dist/client/td-api-client.js.map +0 -1
- package/dist/client/trino-api-client.d.ts.map +0 -1
- package/dist/client/trino-api-client.js +0 -1
- package/dist/client/trino-api-client.js.map +0 -1
- package/dist/client/workflow-client.d.ts.map +0 -1
- package/dist/client/workflow-client.js +0 -1
- package/dist/client/workflow-client.js.map +0 -1
- package/dist/sdk/llm.d.ts.map +0 -1
- package/dist/sdk/llm.js +0 -1
- package/dist/sdk/llm.js.map +0 -1
- package/dist/sdk/query.d.ts.map +0 -1
- package/dist/sdk/query.js +0 -1
- package/dist/sdk/query.js.map +0 -1
- package/dist/sdk/workflow.d.ts.map +0 -1
- package/dist/sdk/workflow.js +0 -1
- package/dist/sdk/workflow.js.map +0 -1
- package/dist/types/anthropic.d.ts.map +0 -1
- package/dist/types/anthropic.js.map +0 -1
- package/dist/types/cdp.d.ts.map +0 -1
- package/dist/types/cdp.js.map +0 -1
- package/dist/types/connection.d.ts.map +0 -1
- package/dist/types/connection.js.map +0 -1
- package/dist/types/connector-schema.d.ts.map +0 -1
- package/dist/types/connector-schema.js.map +0 -1
- package/dist/types/database.d.ts.map +0 -1
- package/dist/types/database.js.map +0 -1
- package/dist/types/endpoints.d.ts.map +0 -1
- package/dist/types/endpoints.js +0 -1
- package/dist/types/endpoints.js.map +0 -1
- package/dist/types/engage.d.ts.map +0 -1
- package/dist/types/engage.js.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -1
- package/dist/types/index.js.map +0 -1
- package/dist/types/job.d.ts.map +0 -1
- package/dist/types/job.js.map +0 -1
- package/dist/types/llm.d.ts.map +0 -1
- package/dist/types/llm.js.map +0 -1
- package/dist/types/trino.d.ts.map +0 -1
- package/dist/types/trino.js.map +0 -1
- package/dist/types/workflow.d.ts.map +0 -1
- package/dist/types/workflow.js.map +0 -1
- package/dist/utils/agent-config.d.ts.map +0 -1
- package/dist/utils/agent-config.js +0 -1
- package/dist/utils/agent-config.js.map +0 -1
- package/dist/utils/agent-ref-parser.d.ts.map +0 -1
- package/dist/utils/agent-ref-parser.js +0 -1
- package/dist/utils/agent-ref-parser.js.map +0 -1
- package/dist/utils/chat-cache.d.ts.map +0 -1
- package/dist/utils/chat-cache.js +0 -1
- package/dist/utils/chat-cache.js.map +0 -1
- package/dist/utils/command-output.d.ts.map +0 -1
- package/dist/utils/command-output.js +0 -1
- package/dist/utils/command-output.js.map +0 -1
- package/dist/utils/constants.d.ts.map +0 -1
- package/dist/utils/constants.js +0 -1
- package/dist/utils/constants.js.map +0 -1
- package/dist/utils/fields-display.d.ts.map +0 -1
- package/dist/utils/fields-display.js +0 -1
- package/dist/utils/fields-display.js.map +0 -1
- package/dist/utils/format-detector.d.ts.map +0 -1
- package/dist/utils/format-detector.js +0 -1
- package/dist/utils/format-detector.js.map +0 -1
- package/dist/utils/formatters.d.ts.map +0 -1
- package/dist/utils/formatters.js +0 -1
- package/dist/utils/formatters.js.map +0 -1
- package/dist/utils/journey-utils.d.ts.map +0 -1
- package/dist/utils/journey-utils.js +0 -1
- package/dist/utils/journey-utils.js.map +0 -1
- package/dist/utils/llm-backup-utils.d.ts.map +0 -1
- package/dist/utils/llm-backup-utils.js +0 -1
- package/dist/utils/llm-backup-utils.js.map +0 -1
- package/dist/utils/model-aliases.d.ts.map +0 -1
- package/dist/utils/model-aliases.js +0 -1
- package/dist/utils/model-aliases.js.map +0 -1
- package/dist/utils/model-factors.d.ts.map +0 -1
- package/dist/utils/model-factors.js +0 -1
- package/dist/utils/model-factors.js.map +0 -1
- package/dist/utils/segment-path-parser.d.ts.map +0 -1
- package/dist/utils/segment-path-parser.js +0 -1
- package/dist/utils/segment-path-parser.js.map +0 -1
- package/dist/utils/segment-ref-parser.d.ts.map +0 -1
- package/dist/utils/segment-ref-parser.js +0 -1
- package/dist/utils/segment-ref-parser.js.map +0 -1
- package/dist/utils/sql-parser.d.ts.map +0 -1
- package/dist/utils/sql-parser.js +0 -1
- package/dist/utils/sql-parser.js.map +0 -1
- package/dist/utils/tdx-config.d.ts.map +0 -1
- package/dist/utils/tdx-config.js +0 -1
- package/dist/utils/tdx-config.js.map +0 -1
- package/dist/utils/tree-formatter.d.ts.map +0 -1
- package/dist/utils/tree-formatter.js +0 -1
- package/dist/utils/tree-formatter.js.map +0 -1
- package/dist/utils/workflow-utils.d.ts.map +0 -1
- package/dist/utils/workflow-utils.js +0 -1
- package/dist/utils/workflow-utils.js.map +0 -1
- /package/dist/{utils → core}/constants.d.ts +0 -0
- /package/dist/{utils → sdk/agent}/agent-config.d.ts +0 -0
- /package/dist/{utils → sdk/agent}/agent-ref-parser.d.ts +0 -0
- /package/dist/{types/anthropic.js → sdk/agent/types/agent-def.js} +0 -0
- /package/dist/{client → sdk/client}/rate-limiter.d.ts +0 -0
- /package/dist/{types/cdp.js → sdk/io/types.js} +0 -0
- /package/dist/{utils → sdk/llm}/chat-cache.d.ts +0 -0
- /package/dist/{utils → sdk/llm}/model-aliases.d.ts +0 -0
- /package/dist/{utils → sdk/llm}/model-factors.d.ts +0 -0
- /package/dist/{utils → sdk/query}/sql-parser.d.ts +0 -0
- /package/dist/{utils → sdk/segment}/segment-ref-parser.d.ts +0 -0
- /package/dist/{types/connection.js → sdk/segment/types/journey-def.js} +0 -0
- /package/dist/{types/connector-schema.js → sdk/segment/types/parent-segment-def.js} +0 -0
- /package/dist/{types/database.js → sdk/segment/types/segment-def.js} +0 -0
- /package/dist/{types → sdk/types}/anthropic.d.ts +0 -0
- /package/dist/{types/engage.js → sdk/types/anthropic.js} +0 -0
- /package/dist/{types/job.js → sdk/types/cdp.js} +0 -0
- /package/dist/{types → sdk/types}/connection.d.ts +0 -0
- /package/dist/{types/llm.js → sdk/types/connection.js} +0 -0
- /package/dist/{types → sdk/types}/connector-schema.d.ts +0 -0
- /package/dist/{types/trino.js → sdk/types/connector-schema.js} +0 -0
- /package/dist/{types → sdk/types}/database.d.ts +0 -0
- /package/dist/{types/workflow.js → sdk/types/database.js} +0 -0
- /package/dist/{types → sdk/types}/engage.d.ts +0 -0
- /package/dist/{types → sdk/types}/job.d.ts +0 -0
- /package/dist/{types → sdk/types}/trino.d.ts +0 -0
- /package/dist/{types → sdk/types}/workflow.d.ts +0 -0
- /package/dist/{utils → sdk/util}/format-detector.d.ts +0 -0
- /package/dist/{utils → sdk/util}/tree-formatter.d.ts +0 -0
- /package/dist/{utils → sdk/workflow}/workflow-utils.d.ts +0 -0
|
@@ -3,430 +3,31 @@
|
|
|
3
3
|
*
|
|
4
4
|
* This module provides a human-friendly YAML format for journey configuration
|
|
5
5
|
* and utilities to convert between YAML and API formats.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export type
|
|
17
|
-
/**
|
|
18
|
-
|
|
19
|
-
*/
|
|
20
|
-
export type
|
|
6
|
+
*
|
|
7
|
+
* Transformation flow:
|
|
8
|
+
* - PULL: ApiModel → JourneyDef → YAML
|
|
9
|
+
* - PUSH: YAML → JourneyDef → (resolve refs) → ApiModel
|
|
10
|
+
*/
|
|
11
|
+
import { type ActivationDef } from './child-segment-yaml.js';
|
|
12
|
+
import type { ResolutionContext, DereferenceContext } from '../types/resolution-context.js';
|
|
13
|
+
import type { Journey } from '../types/cdp.js';
|
|
14
|
+
import type { JourneyDef, JourneyEntryDef, StageDef, WaitStepDef, ActivationStepDef, DecisionPointStepDef, AbTestStepDef, JumpStepDef, CriteriaDef, EmbeddedSegmentDef, JourneyStateType, ReentryModeType, WaitUnitType } from './types/journey-def.js';
|
|
15
|
+
export type { JourneyDef, JourneyEntryDef, StageDef, StepDef, StepBaseDef, WaitStepDef, WaitStepParamsDef, WaitConditionDef, ActivationStepDef, ActivationStepParamsDef, DecisionPointStepDef, DecisionPointStepParamsDef, DecisionBranchDef, AbTestStepDef, AbTestStepParamsDef, AbTestVariantDef, MergeStepDef, JumpStepDef, JumpStepParamsDef, JumpTargetDef, EndStepDef, CriteriaDef, EmbeddedSegmentDef, JourneyStateType, ReentryModeType, WaitUnitType, } from './types/journey-def.js';
|
|
16
|
+
export type { RuleDef, ActivationDef } from './child-segment-yaml.js';
|
|
17
|
+
/** Alias for WaitUnitType */
|
|
18
|
+
export type WaitUnit = WaitUnitType;
|
|
19
|
+
/** Alias for ReentryModeType */
|
|
20
|
+
export type ReentryMode = ReentryModeType;
|
|
21
21
|
/**
|
|
22
22
|
* Normalize wait unit to singular form for API compatibility.
|
|
23
23
|
* Accepts both singular (day, week) and plural (days, weeks) forms.
|
|
24
24
|
* @internal Exported for testing
|
|
25
25
|
*/
|
|
26
26
|
export declare function normalizeWaitUnit(unit: string): WaitUnit;
|
|
27
|
-
/**
|
|
28
|
-
* Step type enumeration
|
|
29
|
-
*/
|
|
30
|
-
export type StepType = 'wait' | 'activation' | 'decision_point' | 'ab_test' | 'merge' | 'jump' | 'end';
|
|
31
|
-
/**
|
|
32
|
-
* Reference to a child segment (by name or ID)
|
|
33
|
-
* @deprecated Use segment name directly in criteria/branches
|
|
34
|
-
*/
|
|
35
|
-
export interface YamlSegmentRef {
|
|
36
|
-
/** Segment name (resolved to ID during push) */
|
|
37
|
-
segment?: string;
|
|
38
|
-
/** Segment ID (used directly) - internal only, not in user-facing YAML */
|
|
39
|
-
segment_id?: string;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Embedded segment definition for journey-local segments.
|
|
43
|
-
* These segments are created when the journey is launched and are scoped to the journey.
|
|
44
|
-
*
|
|
45
|
-
* Segment names should be kebab-case identifiers (e.g., "high-value-customers").
|
|
46
|
-
*/
|
|
47
|
-
export interface YamlEmbeddedSegment {
|
|
48
|
-
/** Segment description */
|
|
49
|
-
description?: string;
|
|
50
|
-
/** Filtering rule that defines the segment criteria */
|
|
51
|
-
rule: YamlRule;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Journey goal/milestone/criteria definition
|
|
55
|
-
*/
|
|
56
|
-
export interface YamlJourneyCriteria {
|
|
57
|
-
/** Display name */
|
|
58
|
-
name: string;
|
|
59
|
-
/** Description */
|
|
60
|
-
description?: string;
|
|
61
|
-
/**
|
|
62
|
-
* Segment reference - can be:
|
|
63
|
-
* - Name of embedded segment (defined in journey's `segments` section)
|
|
64
|
-
* - "ref:Segment Name" to reference an existing child segment
|
|
65
|
-
* - Segment ID (internal, for API compatibility)
|
|
66
|
-
*/
|
|
67
|
-
segment: string;
|
|
68
|
-
/** Optional jump target when criteria is met */
|
|
69
|
-
target?: YamlJumpTarget;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Jump target to another journey/stage
|
|
73
|
-
*/
|
|
74
|
-
export interface YamlJumpTarget {
|
|
75
|
-
/** Target journey name or ID */
|
|
76
|
-
journey: string;
|
|
77
|
-
/** Target stage name */
|
|
78
|
-
stage: string;
|
|
79
|
-
/** Journey bundle ID (optional, for versioned journeys) */
|
|
80
|
-
bundle_id?: string;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Base step interface.
|
|
84
|
-
* Follows GitHub Actions-like format where type-specific parameters are nested under 'with'.
|
|
85
|
-
*/
|
|
86
|
-
export interface YamlStepBase {
|
|
87
|
-
/** Step type - always comes first */
|
|
88
|
-
type: StepType;
|
|
89
|
-
/** Step name - used as identifier (human-readable) */
|
|
90
|
-
name: string;
|
|
91
|
-
/** UUID for step (internal, used during API conversion) */
|
|
92
|
-
uuid?: string;
|
|
93
|
-
/** Next step name or UUID (omitted for 'end' type) */
|
|
94
|
-
next?: string;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Wait step parameters (nested under 'with')
|
|
98
|
-
*/
|
|
99
|
-
export interface YamlWaitStepParams {
|
|
100
|
-
/** Duration to wait */
|
|
101
|
-
duration?: number;
|
|
102
|
-
/** Time unit (day or week) */
|
|
103
|
-
unit?: WaitUnit;
|
|
104
|
-
/** Wait until specific date */
|
|
105
|
-
wait_until?: string;
|
|
106
|
-
/** Wait until condition is met */
|
|
107
|
-
condition?: {
|
|
108
|
-
segment: string;
|
|
109
|
-
timeout?: {
|
|
110
|
-
duration: number;
|
|
111
|
-
unit: WaitUnit;
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
/** Days of the week to wait for */
|
|
115
|
-
days_of_week?: string[];
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Wait step - pause execution
|
|
119
|
-
*/
|
|
120
|
-
export interface YamlWaitStep extends YamlStepBase {
|
|
121
|
-
type: 'wait';
|
|
122
|
-
/** Step-specific parameters */
|
|
123
|
-
with: YamlWaitStepParams;
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Activation step parameters (nested under 'with')
|
|
127
|
-
*/
|
|
128
|
-
export interface YamlActivationStepParams {
|
|
129
|
-
/** Activation name (resolved to ID during push) */
|
|
130
|
-
activation: string;
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Activation step - send to external system
|
|
134
|
-
*/
|
|
135
|
-
export interface YamlActivationStep extends YamlStepBase {
|
|
136
|
-
type: 'activation';
|
|
137
|
-
/** Step-specific parameters */
|
|
138
|
-
with: YamlActivationStepParams;
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Decision point branch
|
|
142
|
-
*/
|
|
143
|
-
export interface YamlDecisionBranch {
|
|
144
|
-
/** Branch name */
|
|
145
|
-
name: string;
|
|
146
|
-
/**
|
|
147
|
-
* Segment reference - can be:
|
|
148
|
-
* - Name of embedded segment (defined in journey's `segments` section)
|
|
149
|
-
* - "ref:Segment Name" to reference an existing child segment
|
|
150
|
-
* - Segment ID (internal, for API compatibility)
|
|
151
|
-
*/
|
|
152
|
-
segment?: string;
|
|
153
|
-
/**
|
|
154
|
-
* Segment ID (alternative to segment name)
|
|
155
|
-
* @deprecated Use `segment` name instead - IDs are internal only
|
|
156
|
-
* @internal
|
|
157
|
-
*/
|
|
158
|
-
segment_id?: string;
|
|
159
|
-
/** Is this the excluded/else path? */
|
|
160
|
-
excluded?: boolean;
|
|
161
|
-
/** Next step for this branch */
|
|
162
|
-
next?: string;
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* Decision point step parameters (nested under 'with')
|
|
166
|
-
*/
|
|
167
|
-
export interface YamlDecisionPointStepParams {
|
|
168
|
-
/** Branches for the decision */
|
|
169
|
-
branches: YamlDecisionBranch[];
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
|
-
* Decision point step - branch based on segment
|
|
173
|
-
*/
|
|
174
|
-
export interface YamlDecisionPointStep extends YamlStepBase {
|
|
175
|
-
type: 'decision_point';
|
|
176
|
-
/** Step-specific parameters */
|
|
177
|
-
with: YamlDecisionPointStepParams;
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* A/B test variant
|
|
181
|
-
*/
|
|
182
|
-
export interface YamlAbTestVariant {
|
|
183
|
-
/** Variant ID */
|
|
184
|
-
id?: string;
|
|
185
|
-
/** Variant name */
|
|
186
|
-
name: string;
|
|
187
|
-
/** Percentage of traffic (0-100) */
|
|
188
|
-
percentage: number;
|
|
189
|
-
/** Next step for this variant */
|
|
190
|
-
next?: string;
|
|
191
|
-
}
|
|
192
|
-
/**
|
|
193
|
-
* A/B test step parameters (nested under 'with')
|
|
194
|
-
*/
|
|
195
|
-
export interface YamlAbTestStepParams {
|
|
196
|
-
/** Use custom split percentages (vs equal distribution) */
|
|
197
|
-
customized_split?: boolean;
|
|
198
|
-
/** Unique ID for the test */
|
|
199
|
-
unique_id?: string;
|
|
200
|
-
/** Test variants */
|
|
201
|
-
variants: YamlAbTestVariant[];
|
|
202
|
-
}
|
|
203
|
-
/**
|
|
204
|
-
* A/B test step - split traffic for testing
|
|
205
|
-
*/
|
|
206
|
-
export interface YamlAbTestStep extends YamlStepBase {
|
|
207
|
-
type: 'ab_test';
|
|
208
|
-
/** Step-specific parameters */
|
|
209
|
-
with: YamlAbTestStepParams;
|
|
210
|
-
}
|
|
211
|
-
/**
|
|
212
|
-
* Merge step - rejoin branched paths (no additional parameters)
|
|
213
|
-
*/
|
|
214
|
-
export interface YamlMergeStep extends YamlStepBase {
|
|
215
|
-
type: 'merge';
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
* Jump step parameters (nested under 'with')
|
|
219
|
-
*/
|
|
220
|
-
export interface YamlJumpStepParams {
|
|
221
|
-
/** Jump target */
|
|
222
|
-
target: YamlJumpTarget;
|
|
223
|
-
}
|
|
224
|
-
/**
|
|
225
|
-
* Jump step - go to another journey/stage
|
|
226
|
-
*/
|
|
227
|
-
export interface YamlJumpStep extends YamlStepBase {
|
|
228
|
-
type: 'jump';
|
|
229
|
-
/** Step-specific parameters */
|
|
230
|
-
with: YamlJumpStepParams;
|
|
231
|
-
}
|
|
232
|
-
/**
|
|
233
|
-
* End step - exit the stage (no next, no additional parameters)
|
|
234
|
-
*/
|
|
235
|
-
export interface YamlEndStep extends YamlStepBase {
|
|
236
|
-
type: 'end';
|
|
237
|
-
}
|
|
238
27
|
/**
|
|
239
28
|
* Helper type to check if a step has 'with' params
|
|
240
29
|
*/
|
|
241
|
-
export type
|
|
242
|
-
/**
|
|
243
|
-
* Union of all step types
|
|
244
|
-
*/
|
|
245
|
-
export type YamlStep = YamlWaitStep | YamlActivationStep | YamlDecisionPointStep | YamlAbTestStep | YamlMergeStep | YamlJumpStep | YamlEndStep;
|
|
246
|
-
/**
|
|
247
|
-
* Journey stage definition
|
|
248
|
-
*/
|
|
249
|
-
export interface YamlJourneyStage {
|
|
250
|
-
/** Stage name */
|
|
251
|
-
name: string;
|
|
252
|
-
/** Stage description */
|
|
253
|
-
description?: string;
|
|
254
|
-
/**
|
|
255
|
-
* Stage ID (from API, used for updates)
|
|
256
|
-
* @internal Not included in user-facing YAML output
|
|
257
|
-
*/
|
|
258
|
-
id?: string;
|
|
259
|
-
/** Entry criteria - who enters this stage */
|
|
260
|
-
entry_criteria?: YamlJourneyCriteria;
|
|
261
|
-
/** Exit criteria - when to remove from stage */
|
|
262
|
-
exit_criteria?: YamlJourneyCriteria[];
|
|
263
|
-
/** Milestone - tracking point */
|
|
264
|
-
milestone?: YamlJourneyCriteria;
|
|
265
|
-
/** Root step UUID (entry point) */
|
|
266
|
-
root_step?: string;
|
|
267
|
-
/** Steps in this stage */
|
|
268
|
-
steps?: YamlStep[];
|
|
269
|
-
}
|
|
270
|
-
/**
|
|
271
|
-
* Resource type discriminator for YAML files
|
|
272
|
-
*/
|
|
273
|
-
export type YamlResourceType = 'segment' | 'journey';
|
|
274
|
-
/**
|
|
275
|
-
* Journey version definition for multi-version YAML files.
|
|
276
|
-
* Each version has its own stages but shares segment definitions with other versions.
|
|
277
|
-
* @deprecated Use YamlJourneyEntry with the 'journeys' array format instead
|
|
278
|
-
*/
|
|
279
|
-
export interface YamlJourneyVersion {
|
|
280
|
-
/** Version name (e.g., "v1", "v2") */
|
|
281
|
-
name: string;
|
|
282
|
-
/** Version state */
|
|
283
|
-
state: 'draft' | 'launched';
|
|
284
|
-
/**
|
|
285
|
-
* Whether this is the currently active (latest) version.
|
|
286
|
-
* Only one version should have latest=true.
|
|
287
|
-
* Default: false (omit if false)
|
|
288
|
-
*/
|
|
289
|
-
latest?: boolean;
|
|
290
|
-
/** Version-specific stages (1-8) */
|
|
291
|
-
stages: YamlJourneyStage[];
|
|
292
|
-
/**
|
|
293
|
-
* Journey ID for this version (from API, used for updates)
|
|
294
|
-
* @internal Not included in user-facing YAML output
|
|
295
|
-
*/
|
|
296
|
-
id?: string;
|
|
297
|
-
/** Version number */
|
|
298
|
-
version_number?: number;
|
|
299
|
-
}
|
|
300
|
-
/**
|
|
301
|
-
* Journey entry definition for the unified 'journeys' array format.
|
|
302
|
-
* Each entry represents a version of the journey with its own stages.
|
|
303
|
-
* Shared properties (goal, reentry, segments) can be inherited from top-level
|
|
304
|
-
* or overridden per-entry.
|
|
305
|
-
*/
|
|
306
|
-
export interface YamlJourneyEntry {
|
|
307
|
-
/**
|
|
308
|
-
* Version identifier (e.g., "v1", "v2").
|
|
309
|
-
* Optional - defaults to "v1" for single-version journeys.
|
|
310
|
-
*/
|
|
311
|
-
version?: string;
|
|
312
|
-
/** Version state */
|
|
313
|
-
state?: 'draft' | 'launched';
|
|
314
|
-
/**
|
|
315
|
-
* Whether this is the currently active (latest) version.
|
|
316
|
-
* Only one entry should have latest=true.
|
|
317
|
-
* Default: false (omit if false)
|
|
318
|
-
*/
|
|
319
|
-
latest?: boolean;
|
|
320
|
-
/** Version-specific stages (1-8) */
|
|
321
|
-
stages: YamlJourneyStage[];
|
|
322
|
-
/**
|
|
323
|
-
* Journey ID for this entry (from API, used for updates)
|
|
324
|
-
* @internal Not included in user-facing YAML output
|
|
325
|
-
*/
|
|
326
|
-
id?: string;
|
|
327
|
-
/** Version number from API */
|
|
328
|
-
version_number?: number;
|
|
329
|
-
/** Override goal for this version */
|
|
330
|
-
goal?: YamlJourneyCriteria;
|
|
331
|
-
/** Override reentry mode for this version */
|
|
332
|
-
reentry?: ReentryMode;
|
|
333
|
-
}
|
|
334
|
-
/**
|
|
335
|
-
* Complete journey YAML configuration.
|
|
336
|
-
*
|
|
337
|
-
* Supports three modes (in order of preference):
|
|
338
|
-
* 1. **Unified format (recommended)**: Use `journeys` array - each entry is a version
|
|
339
|
-
* 2. Legacy multi-version mode: Use `versions` array (deprecated)
|
|
340
|
-
* 3. Legacy single-version mode: Use `stages` at top level (deprecated)
|
|
341
|
-
*
|
|
342
|
-
* The unified format (`journeys` array) is the recommended format for new journeys.
|
|
343
|
-
* Legacy formats are supported for backward compatibility during push.
|
|
344
|
-
*
|
|
345
|
-
* Folder is NOT stored in YAML - it's inferred from the local file path structure.
|
|
346
|
-
*/
|
|
347
|
-
export interface JourneyYaml {
|
|
348
|
-
/** Resource type - must be 'journey' to distinguish from segments */
|
|
349
|
-
type: 'journey';
|
|
350
|
-
/** Journey name (the actual journey name, same as bundle_name) */
|
|
351
|
-
name: string;
|
|
352
|
-
/** Journey description */
|
|
353
|
-
description?: string;
|
|
354
|
-
/**
|
|
355
|
-
* Embedded segment definitions local to this journey.
|
|
356
|
-
* These segments are created when the journey is launched.
|
|
357
|
-
*
|
|
358
|
-
* Keys are segment names (kebab-case, e.g., "high-value-customers").
|
|
359
|
-
* Reference these names in criteria/branches using the segment field.
|
|
360
|
-
* To reference an existing child segment, use "ref:Segment Name" prefix.
|
|
361
|
-
*/
|
|
362
|
-
segments?: Record<string, YamlEmbeddedSegment>;
|
|
363
|
-
/**
|
|
364
|
-
* Embedded activation definitions local to this journey.
|
|
365
|
-
* These activations are created/updated when the journey is launched.
|
|
366
|
-
*
|
|
367
|
-
* Keys are activation names used in activation steps.
|
|
368
|
-
* Reference these names in steps using the activation field.
|
|
369
|
-
* To reference an existing activation, use "ref:Activation Name" prefix.
|
|
370
|
-
*/
|
|
371
|
-
activations?: Record<string, YamlActivation>;
|
|
372
|
-
/** Journey goal (shared across all versions, can be overridden per-version in journeys array) */
|
|
373
|
-
goal?: YamlJourneyCriteria;
|
|
374
|
-
/** Reentry mode (shared across all versions, can be overridden per-version in journeys array) */
|
|
375
|
-
reentry?: ReentryMode;
|
|
376
|
-
/**
|
|
377
|
-
* Journey versions using unified format.
|
|
378
|
-
* Each entry has `version` (optional, defaults to "v1"), `state`, `stages`,
|
|
379
|
-
* and optionally `goal`/`reentry` overrides.
|
|
380
|
-
*
|
|
381
|
-
* This is the recommended format for all journeys (single or multi-version).
|
|
382
|
-
*/
|
|
383
|
-
journeys?: YamlJourneyEntry[];
|
|
384
|
-
/**
|
|
385
|
-
* Journey stages for legacy single-version mode (1-8).
|
|
386
|
-
* @deprecated Use `journeys` array instead
|
|
387
|
-
*/
|
|
388
|
-
stages?: YamlJourneyStage[];
|
|
389
|
-
/**
|
|
390
|
-
* Journey versions for legacy multi-version mode.
|
|
391
|
-
* @deprecated Use `journeys` array instead
|
|
392
|
-
*/
|
|
393
|
-
versions?: YamlJourneyVersion[];
|
|
394
|
-
/**
|
|
395
|
-
* Journey ID (from API, used for updates)
|
|
396
|
-
* @internal Not included in user-facing YAML output
|
|
397
|
-
*/
|
|
398
|
-
id?: string;
|
|
399
|
-
/**
|
|
400
|
-
* Version name (e.g., "v11") - the API name field
|
|
401
|
-
* @internal Used for single-version mode API compatibility
|
|
402
|
-
*/
|
|
403
|
-
version?: string;
|
|
404
|
-
/**
|
|
405
|
-
* Version number
|
|
406
|
-
* @internal Used for single-version mode API compatibility
|
|
407
|
-
*/
|
|
408
|
-
version_number?: number;
|
|
409
|
-
/**
|
|
410
|
-
* Folder ID (from API)
|
|
411
|
-
* @internal Folder is inferred from file path, not stored in YAML
|
|
412
|
-
*/
|
|
413
|
-
folder_id?: string;
|
|
414
|
-
/**
|
|
415
|
-
* Journey bundle ID (for versioned journeys)
|
|
416
|
-
* @internal Not included in user-facing YAML output
|
|
417
|
-
*/
|
|
418
|
-
bundle_id?: string;
|
|
419
|
-
/**
|
|
420
|
-
* Bundle name (same as name, kept for compatibility)
|
|
421
|
-
* @internal Not included in user-facing YAML output
|
|
422
|
-
*/
|
|
423
|
-
bundle_name?: string;
|
|
424
|
-
/**
|
|
425
|
-
* Allow reentry (legacy, use reentry instead)
|
|
426
|
-
* @deprecated Use `reentry` instead
|
|
427
|
-
*/
|
|
428
|
-
allow_reentry?: boolean;
|
|
429
|
-
}
|
|
30
|
+
export type StepWithParams = WaitStepDef | ActivationStepDef | DecisionPointStepDef | AbTestStepDef | JumpStepDef;
|
|
430
31
|
/**
|
|
431
32
|
* Jump target from API (used in jump steps and exit criteria)
|
|
432
33
|
* Format of journeyName: "Stage Name (Journey Name/Subfolder/Root folders)"
|
|
@@ -451,6 +52,24 @@ export interface ApiJourneyCriteria {
|
|
|
451
52
|
segmentId: string;
|
|
452
53
|
target?: ApiJumpTarget;
|
|
453
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* Wait step condition from API (for Condition type wait steps)
|
|
57
|
+
*/
|
|
58
|
+
export interface ApiWaitStepCondition {
|
|
59
|
+
id?: string;
|
|
60
|
+
/** Segment ID for the condition (only for matched path) */
|
|
61
|
+
segmentId?: string;
|
|
62
|
+
/** True for timeout path, false for matched path */
|
|
63
|
+
timedOutPath: boolean;
|
|
64
|
+
/** Next step UUID */
|
|
65
|
+
next?: string;
|
|
66
|
+
/** Name of the condition path */
|
|
67
|
+
name?: string;
|
|
68
|
+
/** Duration for timeout path (moveAfter in API) */
|
|
69
|
+
moveAfter?: number;
|
|
70
|
+
/** Time unit for timeout */
|
|
71
|
+
unit?: 'day' | 'week';
|
|
72
|
+
}
|
|
454
73
|
/**
|
|
455
74
|
* Journey step from API (keyed by UUID)
|
|
456
75
|
*/
|
|
@@ -462,6 +81,7 @@ export interface ApiJourneyStep {
|
|
|
462
81
|
waitStepUnit?: 'day' | 'week';
|
|
463
82
|
waitUntilDate?: string;
|
|
464
83
|
daysOfWeek?: string[];
|
|
84
|
+
conditions?: ApiWaitStepCondition[];
|
|
465
85
|
conditionSegmentId?: string;
|
|
466
86
|
conditionTimeoutDuration?: number;
|
|
467
87
|
conditionTimeoutUnit?: 'day' | 'week';
|
|
@@ -497,16 +117,16 @@ export interface ApiJourneyStage {
|
|
|
497
117
|
steps?: Record<string, ApiJourneyStep>;
|
|
498
118
|
}
|
|
499
119
|
/**
|
|
500
|
-
* Full journey from API
|
|
120
|
+
* Full journey response from API
|
|
501
121
|
*/
|
|
502
|
-
export interface
|
|
122
|
+
export interface JourneyResponse {
|
|
503
123
|
id: string;
|
|
504
124
|
type: 'journey';
|
|
505
125
|
attributes: {
|
|
506
126
|
name: string;
|
|
507
127
|
description?: string;
|
|
508
128
|
audienceId: string;
|
|
509
|
-
state:
|
|
129
|
+
state: JourneyStateType;
|
|
510
130
|
goal?: ApiJourneyCriteria;
|
|
511
131
|
allowReentry?: boolean;
|
|
512
132
|
reentryMode?: ReentryMode;
|
|
@@ -544,7 +164,7 @@ export interface ResolvedSegment {
|
|
|
544
164
|
/** Whether this is a journey-local segment (true) or external child segment (false) */
|
|
545
165
|
isJourneyLocal: boolean;
|
|
546
166
|
/** Segment rule definition (only for journey-local segments) */
|
|
547
|
-
definition?:
|
|
167
|
+
definition?: EmbeddedSegmentDef;
|
|
548
168
|
}
|
|
549
169
|
/**
|
|
550
170
|
* Result of resolving an activation ID during API to YAML conversion
|
|
@@ -555,7 +175,7 @@ export interface ResolvedActivation {
|
|
|
555
175
|
/** Whether this activation should be embedded in the journey YAML */
|
|
556
176
|
isJourneyLocal: boolean;
|
|
557
177
|
/** Full activation definition (for embedding) */
|
|
558
|
-
definition?:
|
|
178
|
+
definition?: ActivationDef;
|
|
559
179
|
}
|
|
560
180
|
/**
|
|
561
181
|
* Resolved jump target information
|
|
@@ -567,35 +187,26 @@ export interface ResolvedJumpTarget {
|
|
|
567
187
|
stageName: string;
|
|
568
188
|
}
|
|
569
189
|
/**
|
|
570
|
-
* Context for
|
|
190
|
+
* Context for converting API response to portable definition (pull).
|
|
571
191
|
*
|
|
572
|
-
* When pulling from API, references are stored as IDs. To make
|
|
573
|
-
* these IDs can be resolved to names using the context functions.
|
|
192
|
+
* When pulling from API, references are stored as IDs. To make the definition
|
|
193
|
+
* human-readable, these IDs can be resolved to names using the context functions.
|
|
574
194
|
*
|
|
575
|
-
* If no context is provided, IDs are stored as-is in the
|
|
195
|
+
* If no context is provided, IDs are stored as-is in the output.
|
|
576
196
|
*/
|
|
577
|
-
export interface
|
|
197
|
+
export interface JourneyResponseToDefContext extends DereferenceContext {
|
|
578
198
|
/**
|
|
579
199
|
* Resolve segment ID to its definition and metadata.
|
|
580
200
|
* Returns name and whether it's journey-local or an external ref.
|
|
581
201
|
* For journey-local segments, also returns the rule definition for embedding.
|
|
582
202
|
*/
|
|
583
203
|
resolveSegment?: (id: string) => Promise<ResolvedSegment>;
|
|
584
|
-
/**
|
|
585
|
-
* Resolve segment ID to name (simple version, for backward compatibility)
|
|
586
|
-
* @deprecated Use resolveSegment for full segment resolution
|
|
587
|
-
*/
|
|
588
|
-
resolveSegmentName?: (id: string) => Promise<string>;
|
|
589
204
|
/**
|
|
590
205
|
* Resolve activation ID to its definition and metadata.
|
|
591
|
-
* Returns name and whether it should be embedded in the journey
|
|
206
|
+
* Returns name and whether it should be embedded in the journey definition.
|
|
592
207
|
* For journey-local activations, also returns the full definition for embedding.
|
|
593
208
|
*/
|
|
594
209
|
resolveActivation?: (id: string) => Promise<ResolvedActivation>;
|
|
595
|
-
/** Resolve activation ID to name (simple version, for backward compatibility) */
|
|
596
|
-
resolveActivationName?: (id: string) => Promise<string>;
|
|
597
|
-
/** Resolve journey ID to name */
|
|
598
|
-
resolveJourneyName?: (id: string) => Promise<string>;
|
|
599
210
|
/**
|
|
600
211
|
* Resolve jump target IDs (journey ID and stage ID) to their names.
|
|
601
212
|
* Used for human-readable jump step targets.
|
|
@@ -610,7 +221,7 @@ export interface ApiToYamlContext {
|
|
|
610
221
|
*
|
|
611
222
|
* @internal Use apiToYamlAsync for user-facing YAML
|
|
612
223
|
*/
|
|
613
|
-
export declare function
|
|
224
|
+
export declare function journeyResponseToDefSync(api: JourneyResponse): JourneyDef;
|
|
614
225
|
/**
|
|
615
226
|
* Convert API journey to YAML format with segment resolution.
|
|
616
227
|
*
|
|
@@ -621,17 +232,11 @@ export declare function apiToYaml(api: ApiJourney): JourneyYaml;
|
|
|
621
232
|
* @param context - Resolution context for IDs to names
|
|
622
233
|
* @returns Journey YAML with embedded segments and name references
|
|
623
234
|
*/
|
|
624
|
-
export declare function
|
|
235
|
+
export declare function journeyResponseToDef(api: JourneyResponse, context?: JourneyResponseToDefContext): Promise<JourneyDef>;
|
|
625
236
|
/**
|
|
626
|
-
* Context for
|
|
237
|
+
* Context for converting portable definition to API request (push).
|
|
627
238
|
*/
|
|
628
|
-
export interface
|
|
629
|
-
/** Resolve segment name to ID */
|
|
630
|
-
resolveSegmentId?: (name: string) => Promise<string>;
|
|
631
|
-
/** Resolve activation name to ID */
|
|
632
|
-
resolveActivationId?: (name: string) => Promise<string>;
|
|
633
|
-
/** Resolve journey name to ID */
|
|
634
|
-
resolveJourneyId?: (name: string) => Promise<string>;
|
|
239
|
+
export interface JourneyDefToRequestContext extends ResolutionContext {
|
|
635
240
|
/**
|
|
636
241
|
* Resolve stage name to ID within a journey.
|
|
637
242
|
* Used for jump step target stage resolution.
|
|
@@ -644,12 +249,12 @@ export interface YamlToApiContext {
|
|
|
644
249
|
* Resolve embedded segment definition to ID.
|
|
645
250
|
* Used when an embedded segment needs to be created/matched in the API.
|
|
646
251
|
*/
|
|
647
|
-
resolveEmbeddedSegmentId?: (name: string, definition:
|
|
252
|
+
resolveEmbeddedSegmentId?: (name: string, definition: EmbeddedSegmentDef) => Promise<string>;
|
|
648
253
|
/**
|
|
649
254
|
* Resolve embedded activation definition to ID.
|
|
650
255
|
* Used when an embedded activation needs to be created/matched in the API.
|
|
651
256
|
*/
|
|
652
|
-
resolveEmbeddedActivationId?: (name: string, definition:
|
|
257
|
+
resolveEmbeddedActivationId?: (name: string, definition: ActivationDef) => Promise<string>;
|
|
653
258
|
}
|
|
654
259
|
/**
|
|
655
260
|
* API request format for creating/updating a journey
|
|
@@ -682,12 +287,12 @@ export interface ApiJourneyRequest {
|
|
|
682
287
|
* @param audienceId - Parent segment ID (from context, not stored in YAML)
|
|
683
288
|
* @param context - Resolution context for references
|
|
684
289
|
*/
|
|
685
|
-
export declare function
|
|
290
|
+
export declare function journeyDefToRequest(yamlConfig: JourneyDef, audienceId: string, context?: JourneyDefToRequestContext): Promise<ApiJourneyRequest>;
|
|
686
291
|
/**
|
|
687
292
|
* Serialize journey config to YAML string.
|
|
688
293
|
* Strips internal fields (IDs, folder_id, etc.) from output for clean, portable YAML.
|
|
689
294
|
*/
|
|
690
|
-
export declare function toYamlString(config:
|
|
295
|
+
export declare function toYamlString(config: JourneyDef): string;
|
|
691
296
|
/**
|
|
692
297
|
* Parse YAML string to journey config.
|
|
693
298
|
* Supports three formats:
|
|
@@ -695,11 +300,11 @@ export declare function toYamlString(config: JourneyYaml): string;
|
|
|
695
300
|
* 2. Legacy single-version mode: stages at top level
|
|
696
301
|
* 3. Legacy multi-version mode: versions array
|
|
697
302
|
*/
|
|
698
|
-
export declare function parseYamlString(yamlString: string):
|
|
303
|
+
export declare function parseYamlString(yamlString: string): JourneyDef;
|
|
699
304
|
/**
|
|
700
305
|
* Check if a YAML object represents a journey (vs segment)
|
|
701
306
|
*/
|
|
702
|
-
export declare function
|
|
307
|
+
export declare function isJourneyDef(parsed: unknown): parsed is JourneyDef;
|
|
703
308
|
/**
|
|
704
309
|
* Generate a sample YAML template for a new journey
|
|
705
310
|
*/
|
|
@@ -733,31 +338,31 @@ export declare function isExternalSegmentRef(ref: string): boolean;
|
|
|
733
338
|
* Check if a journey YAML uses the unified 'journeys' array format.
|
|
734
339
|
* This is the recommended format for all journeys.
|
|
735
340
|
*/
|
|
736
|
-
export declare function isJourneysArrayMode(config:
|
|
341
|
+
export declare function isJourneysArrayMode(config: JourneyDef): boolean;
|
|
737
342
|
/**
|
|
738
343
|
* Check if a journey YAML is in legacy multi-version mode (using 'versions' array).
|
|
739
344
|
* @deprecated Use isJourneysArrayMode instead
|
|
740
345
|
*/
|
|
741
|
-
export declare function isMultiVersionMode(config:
|
|
346
|
+
export declare function isMultiVersionMode(config: JourneyDef): boolean;
|
|
742
347
|
/**
|
|
743
348
|
* Check if a journey YAML is in legacy single-version mode (using 'stages' at top level).
|
|
744
349
|
* @deprecated Use isJourneysArrayMode instead
|
|
745
350
|
*/
|
|
746
|
-
export declare function isSingleVersionMode(config:
|
|
351
|
+
export declare function isSingleVersionMode(config: JourneyDef): boolean;
|
|
747
352
|
/**
|
|
748
353
|
* Check if a journey YAML has multiple versions defined (in any format).
|
|
749
354
|
* Works with unified journeys array, legacy versions array, or legacy single-version mode.
|
|
750
355
|
*/
|
|
751
|
-
export declare function hasMultipleVersions(config:
|
|
356
|
+
export declare function hasMultipleVersions(config: JourneyDef): boolean;
|
|
752
357
|
/**
|
|
753
358
|
* Normalize a journey YAML config to the unified journeys array format.
|
|
754
359
|
* This is useful for comparing journeys across different format versions.
|
|
755
360
|
* Converts legacy single-version (stages at top) and multi-version (versions array)
|
|
756
361
|
* formats to the unified journeys array format.
|
|
757
362
|
*/
|
|
758
|
-
export declare function normalizeToJourneysFormat(config:
|
|
363
|
+
export declare function normalizeToJourneysFormat(config: JourneyDef): JourneyDef;
|
|
759
364
|
/**
|
|
760
|
-
* Normalize a
|
|
365
|
+
* Normalize a JourneyDef to have consistent field ordering.
|
|
761
366
|
* This ensures that local YAML files and server-converted YAML have the same field order,
|
|
762
367
|
* avoiding spurious diffs in `tdx journey push` that are just reordering changes.
|
|
763
368
|
*
|
|
@@ -767,7 +372,7 @@ export declare function normalizeToJourneysFormat(config: JourneyYaml): JourneyY
|
|
|
767
372
|
* - Stage: name, description, entry_criteria, exit_criteria, milestone, steps
|
|
768
373
|
* - Step: type, name, next, with
|
|
769
374
|
*/
|
|
770
|
-
export declare function
|
|
375
|
+
export declare function normalizeJourneyDef(config: JourneyDef, existingYaml?: JourneyDef): JourneyDef;
|
|
771
376
|
/**
|
|
772
377
|
* Get all stages from a journey YAML, regardless of mode.
|
|
773
378
|
* Returns stages from the latest/active version.
|
|
@@ -777,7 +382,7 @@ export declare function normalizeJourneyYaml(config: JourneyYaml, existingYaml?:
|
|
|
777
382
|
* 2. stages (legacy single-version) - returns stages directly
|
|
778
383
|
* 3. versions (legacy multi-version) - returns stages from latest version
|
|
779
384
|
*/
|
|
780
|
-
export declare function getActiveStages(config:
|
|
385
|
+
export declare function getActiveStages(config: JourneyDef): StageDef[];
|
|
781
386
|
/**
|
|
782
387
|
* Get the latest/active journey entry from a journey YAML.
|
|
783
388
|
* Works with all three formats (unified, legacy multi-version, legacy single-version).
|
|
@@ -785,7 +390,7 @@ export declare function getActiveStages(config: JourneyYaml): YamlJourneyStage[]
|
|
|
785
390
|
* Returns the entry/version marked with `latest: true`, or the first one as fallback.
|
|
786
391
|
* For legacy single-version mode, returns a synthetic entry created from top-level fields.
|
|
787
392
|
*/
|
|
788
|
-
export declare function getLatestJourneyEntry(config:
|
|
393
|
+
export declare function getLatestJourneyEntry(config: JourneyDef): JourneyEntryDef | undefined;
|
|
789
394
|
/**
|
|
790
395
|
* Get the latest/active version from a legacy multi-version journey.
|
|
791
396
|
* Returns the version marked with `latest: true`, or the first version as fallback.
|
|
@@ -793,25 +398,36 @@ export declare function getLatestJourneyEntry(config: JourneyYaml): YamlJourneyE
|
|
|
793
398
|
*
|
|
794
399
|
* @deprecated Use getLatestJourneyEntry instead
|
|
795
400
|
*/
|
|
796
|
-
export declare function getLatestVersion(config:
|
|
401
|
+
export declare function getLatestVersion(config: JourneyDef): JourneyEntryDef | undefined;
|
|
797
402
|
/**
|
|
798
403
|
* Get effective goal for a journey, considering per-version overrides.
|
|
799
404
|
* For unified format, checks the active journey entry first, then falls back to top-level.
|
|
800
405
|
*/
|
|
801
|
-
export declare function getEffectiveGoal(config:
|
|
406
|
+
export declare function getEffectiveGoal(config: JourneyDef): CriteriaDef | undefined;
|
|
802
407
|
/**
|
|
803
408
|
* Get effective reentry mode for a journey, considering per-version overrides.
|
|
804
409
|
* For unified format, checks the active journey entry first, then falls back to top-level.
|
|
805
410
|
*/
|
|
806
|
-
export declare function getEffectiveReentry(config:
|
|
411
|
+
export declare function getEffectiveReentry(config: JourneyDef): ReentryMode | undefined;
|
|
807
412
|
/**
|
|
808
413
|
* Collect all segment references from a journey YAML.
|
|
809
414
|
* Returns a set of unique segment reference strings.
|
|
810
415
|
*/
|
|
811
|
-
export declare function collectSegmentRefs(config:
|
|
416
|
+
export declare function collectSegmentRefs(config: JourneyDef): Set<string>;
|
|
812
417
|
/**
|
|
813
418
|
* Validate that all segment references in a journey YAML are resolvable.
|
|
814
419
|
* Returns an array of validation errors (empty if all valid).
|
|
815
420
|
*/
|
|
816
|
-
export declare function validateSegmentRefs(config:
|
|
421
|
+
export declare function validateSegmentRefs(config: JourneyDef): string[];
|
|
422
|
+
/**
|
|
423
|
+
* Collect segment IDs referenced in a Journey API response.
|
|
424
|
+
* This is the API-format counterpart to collectSegmentIdsFromJourney (which works with JourneyDef).
|
|
425
|
+
*
|
|
426
|
+
* Used during push operations to understand which segments are referenced by a journey
|
|
427
|
+
* for determining expanded rule comparisons and segment ordering.
|
|
428
|
+
*
|
|
429
|
+
* @param journey - Journey API response object
|
|
430
|
+
* @returns Set of segment IDs referenced in the journey
|
|
431
|
+
*/
|
|
432
|
+
export declare function collectSegmentIdsFromJourneyApi(journey: Journey): Set<string>;
|
|
817
433
|
//# sourceMappingURL=journey-yaml.d.ts.map
|