@treasuredata/tdx 0.8.4 → 0.8.5
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.d.ts +1 -1
- package/dist/cli-categories.js +1 -1
- package/dist/cli-categories.js.map +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/client/cdp-api-client.d.ts +59 -1
- package/dist/client/cdp-api-client.d.ts.map +1 -1
- package/dist/client/cdp-api-client.js +1 -1
- package/dist/client/cdp-api-client.js.map +1 -1
- package/dist/client/engage-api-client.js +1 -1
- package/dist/client/http-client.js +1 -1
- package/dist/client/llm-api-client.js +1 -1
- package/dist/client/rate-limiter.js +1 -1
- package/dist/client/td-api-client.js +1 -1
- package/dist/client/trino-api-client.js +1 -1
- package/dist/client/workflow-client.js +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/api-command.js +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/claude-command.d.ts.map +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-command.js.map +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/context-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/journey-command.d.ts +53 -0
- package/dist/commands/journey-command.d.ts.map +1 -0
- package/dist/commands/journey-command.js +1 -0
- package/dist/commands/journey-command.js.map +1 -0
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/llm-proxy.d.ts.map +1 -1
- package/dist/commands/llm-proxy.js +1 -1
- package/dist/commands/llm-proxy.js.map +1 -1
- package/dist/commands/parent-segment-command.d.ts.map +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/query-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- 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.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-use-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/index.js +1 -1
- package/dist/proxy/anthropic-adapter.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/context-signature.js +1 -1
- package/dist/proxy/conversation-utils.js +1 -1
- package/dist/proxy/server.js +1 -1
- package/dist/proxy/session-cache.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.d.ts +11 -0
- package/dist/sdk/errors.d.ts.map +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/errors.js.map +1 -1
- package/dist/sdk/index.d.ts +7 -0
- 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/job.js +1 -1
- package/dist/sdk/journey.d.ts +82 -0
- package/dist/sdk/journey.d.ts.map +1 -0
- package/dist/sdk/journey.js +1 -0
- package/dist/sdk/journey.js.map +1 -0
- package/dist/sdk/llm.js +1 -1
- package/dist/sdk/query.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.d.ts +11 -1
- 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/sdk/segment/journey-yaml.d.ts +616 -0
- package/dist/sdk/segment/journey-yaml.d.ts.map +1 -0
- package/dist/sdk/segment/journey-yaml.js +1 -0
- package/dist/sdk/segment/journey-yaml.js.map +1 -0
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/workflow.js +1 -1
- package/dist/types/cdp.d.ts +253 -0
- package/dist/types/cdp.d.ts.map +1 -1
- package/dist/types/endpoints.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/utils/agent-ref-parser.js +1 -1
- package/dist/utils/async.js +1 -1
- package/dist/utils/chat-cache.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/command-output.js +1 -1
- package/dist/utils/constants.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/fields-display.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/format-detector.js +1 -1
- package/dist/utils/formatters.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/llm-backup-utils.js +1 -1
- package/dist/utils/model-aliases.js +1 -1
- package/dist/utils/model-factors.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/port.js +1 -1
- package/dist/utils/process.d.ts.map +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/process.js.map +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/segment-path-parser.d.ts +8 -2
- package/dist/utils/segment-path-parser.d.ts.map +1 -1
- package/dist/utils/segment-path-parser.js +1 -1
- package/dist/utils/segment-path-parser.js.map +1 -1
- package/dist/utils/segment-ref-parser.js +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/sql-parser.js +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.d.ts +12 -0
- package/dist/utils/string-utils.d.ts.map +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/string-utils.js.map +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-config.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/tree-formatter.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/dist/utils/workflow-utils.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,616 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Journey YAML Schema Types and Conversion Utilities
|
|
3
|
+
*
|
|
4
|
+
* This module provides a human-friendly YAML format for journey configuration
|
|
5
|
+
* and utilities to convert between YAML and API formats.
|
|
6
|
+
*/
|
|
7
|
+
import type { YamlRule } from './child-segment-yaml.js';
|
|
8
|
+
export type { YamlRule, YamlCondition, YamlOperator } from './child-segment-yaml.js';
|
|
9
|
+
/**
|
|
10
|
+
* Reentry mode for journey
|
|
11
|
+
*/
|
|
12
|
+
export type ReentryMode = 'no_reentry' | 'reentry_unless_goal_achieved' | 'reentry_always';
|
|
13
|
+
/**
|
|
14
|
+
* Journey state
|
|
15
|
+
*/
|
|
16
|
+
export type JourneyState = 'draft' | 'simulation' | 'launched';
|
|
17
|
+
/**
|
|
18
|
+
* Wait step time unit
|
|
19
|
+
*/
|
|
20
|
+
export type WaitUnit = 'day' | 'week';
|
|
21
|
+
/**
|
|
22
|
+
* Step type enumeration
|
|
23
|
+
*/
|
|
24
|
+
export type StepType = 'wait' | 'activation' | 'decision_point' | 'ab_test' | 'merge' | 'jump' | 'end';
|
|
25
|
+
/**
|
|
26
|
+
* Reference to a child segment (by name or ID)
|
|
27
|
+
* @deprecated Use segment name directly in criteria/branches
|
|
28
|
+
*/
|
|
29
|
+
export interface YamlSegmentRef {
|
|
30
|
+
/** Segment name (resolved to ID during push) */
|
|
31
|
+
segment?: string;
|
|
32
|
+
/** Segment ID (used directly) - internal only, not in user-facing YAML */
|
|
33
|
+
segment_id?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Embedded segment definition for journey-local segments.
|
|
37
|
+
* These segments are created when the journey is launched and are scoped to the journey.
|
|
38
|
+
*
|
|
39
|
+
* Segment names should be kebab-case identifiers (e.g., "high-value-customers").
|
|
40
|
+
*/
|
|
41
|
+
export interface YamlEmbeddedSegment {
|
|
42
|
+
/** Segment description */
|
|
43
|
+
description?: string;
|
|
44
|
+
/** Filtering rule that defines the segment criteria */
|
|
45
|
+
rule: YamlRule;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Journey goal/milestone/criteria definition
|
|
49
|
+
*/
|
|
50
|
+
export interface YamlJourneyCriteria {
|
|
51
|
+
/** Display name */
|
|
52
|
+
name: string;
|
|
53
|
+
/** Description */
|
|
54
|
+
description?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Segment reference - can be:
|
|
57
|
+
* - Name of embedded segment (defined in journey's `segments` section)
|
|
58
|
+
* - "ref:Segment Name" to reference an existing child segment
|
|
59
|
+
* - Segment ID (internal, for API compatibility)
|
|
60
|
+
*/
|
|
61
|
+
segment: string;
|
|
62
|
+
/** Optional jump target when criteria is met */
|
|
63
|
+
target?: YamlJumpTarget;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Jump target to another journey/stage
|
|
67
|
+
*/
|
|
68
|
+
export interface YamlJumpTarget {
|
|
69
|
+
/** Target journey name or ID */
|
|
70
|
+
journey: string;
|
|
71
|
+
/** Target stage name */
|
|
72
|
+
stage: string;
|
|
73
|
+
/** Journey bundle ID (optional, for versioned journeys) */
|
|
74
|
+
bundle_id?: string;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Base step interface
|
|
78
|
+
*/
|
|
79
|
+
export interface YamlStepBase {
|
|
80
|
+
/** Step type */
|
|
81
|
+
type: StepType;
|
|
82
|
+
/** Step name */
|
|
83
|
+
name?: string;
|
|
84
|
+
/** UUID for step (auto-generated if not provided) */
|
|
85
|
+
uuid?: string;
|
|
86
|
+
/** Next step UUID or name */
|
|
87
|
+
next?: string;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Wait step - pause execution
|
|
91
|
+
*/
|
|
92
|
+
export interface YamlWaitStep extends YamlStepBase {
|
|
93
|
+
type: 'wait';
|
|
94
|
+
/** Duration to wait */
|
|
95
|
+
duration?: number;
|
|
96
|
+
/** Time unit (day or week) */
|
|
97
|
+
unit?: WaitUnit;
|
|
98
|
+
/** Wait until specific date */
|
|
99
|
+
wait_until?: string;
|
|
100
|
+
/** Wait until condition is met */
|
|
101
|
+
condition?: {
|
|
102
|
+
segment: string;
|
|
103
|
+
timeout?: {
|
|
104
|
+
duration: number;
|
|
105
|
+
unit: WaitUnit;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
/** Days of the week to wait for */
|
|
109
|
+
days_of_week?: string[];
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Activation step - send to external system
|
|
113
|
+
*/
|
|
114
|
+
export interface YamlActivationStep extends YamlStepBase {
|
|
115
|
+
type: 'activation';
|
|
116
|
+
/** Activation name (resolved to ID during push) */
|
|
117
|
+
activation: string;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Decision point branch
|
|
121
|
+
*/
|
|
122
|
+
export interface YamlDecisionBranch {
|
|
123
|
+
/** Branch name */
|
|
124
|
+
name: string;
|
|
125
|
+
/**
|
|
126
|
+
* Segment reference - can be:
|
|
127
|
+
* - Name of embedded segment (defined in journey's `segments` section)
|
|
128
|
+
* - "ref:Segment Name" to reference an existing child segment
|
|
129
|
+
* - Segment ID (internal, for API compatibility)
|
|
130
|
+
*/
|
|
131
|
+
segment?: string;
|
|
132
|
+
/**
|
|
133
|
+
* Segment ID (alternative to segment name)
|
|
134
|
+
* @deprecated Use `segment` name instead - IDs are internal only
|
|
135
|
+
* @internal
|
|
136
|
+
*/
|
|
137
|
+
segment_id?: string;
|
|
138
|
+
/** Is this the excluded/else path? */
|
|
139
|
+
excluded?: boolean;
|
|
140
|
+
/** Next step for this branch */
|
|
141
|
+
next?: string;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Decision point step - branch based on segment
|
|
145
|
+
*/
|
|
146
|
+
export interface YamlDecisionPointStep extends YamlStepBase {
|
|
147
|
+
type: 'decision_point';
|
|
148
|
+
/** Branches for the decision */
|
|
149
|
+
branches: YamlDecisionBranch[];
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* A/B test variant
|
|
153
|
+
*/
|
|
154
|
+
export interface YamlAbTestVariant {
|
|
155
|
+
/** Variant ID */
|
|
156
|
+
id?: string;
|
|
157
|
+
/** Variant name */
|
|
158
|
+
name: string;
|
|
159
|
+
/** Percentage of traffic (0-100) */
|
|
160
|
+
percentage: number;
|
|
161
|
+
/** Next step for this variant */
|
|
162
|
+
next?: string;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* A/B test step - split traffic for testing
|
|
166
|
+
*/
|
|
167
|
+
export interface YamlAbTestStep extends YamlStepBase {
|
|
168
|
+
type: 'ab_test';
|
|
169
|
+
/** Use custom split percentages (vs equal distribution) */
|
|
170
|
+
customized_split?: boolean;
|
|
171
|
+
/** Unique ID for the test */
|
|
172
|
+
unique_id?: string;
|
|
173
|
+
/** Test variants */
|
|
174
|
+
variants: YamlAbTestVariant[];
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Merge step - rejoin branched paths
|
|
178
|
+
*/
|
|
179
|
+
export interface YamlMergeStep extends YamlStepBase {
|
|
180
|
+
type: 'merge';
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Jump step - go to another journey/stage
|
|
184
|
+
*/
|
|
185
|
+
export interface YamlJumpStep extends YamlStepBase {
|
|
186
|
+
type: 'jump';
|
|
187
|
+
/** Jump target */
|
|
188
|
+
target: YamlJumpTarget;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* End step - exit the stage
|
|
192
|
+
*/
|
|
193
|
+
export interface YamlEndStep extends YamlStepBase {
|
|
194
|
+
type: 'end';
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Union of all step types
|
|
198
|
+
*/
|
|
199
|
+
export type YamlStep = YamlWaitStep | YamlActivationStep | YamlDecisionPointStep | YamlAbTestStep | YamlMergeStep | YamlJumpStep | YamlEndStep;
|
|
200
|
+
/**
|
|
201
|
+
* Journey stage definition
|
|
202
|
+
*/
|
|
203
|
+
export interface YamlJourneyStage {
|
|
204
|
+
/** Stage name */
|
|
205
|
+
name: string;
|
|
206
|
+
/** Stage description */
|
|
207
|
+
description?: string;
|
|
208
|
+
/**
|
|
209
|
+
* Stage ID (from API, used for updates)
|
|
210
|
+
* @internal Not included in user-facing YAML output
|
|
211
|
+
*/
|
|
212
|
+
id?: string;
|
|
213
|
+
/** Entry criteria - who enters this stage */
|
|
214
|
+
entry_criteria?: YamlJourneyCriteria;
|
|
215
|
+
/** Exit criteria - when to remove from stage */
|
|
216
|
+
exit_criteria?: YamlJourneyCriteria[];
|
|
217
|
+
/** Milestone - tracking point */
|
|
218
|
+
milestone?: YamlJourneyCriteria;
|
|
219
|
+
/** Root step UUID (entry point) */
|
|
220
|
+
root_step?: string;
|
|
221
|
+
/** Steps in this stage */
|
|
222
|
+
steps?: YamlStep[];
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Resource type discriminator for YAML files
|
|
226
|
+
*/
|
|
227
|
+
export type YamlResourceType = 'segment' | 'journey';
|
|
228
|
+
/**
|
|
229
|
+
* Journey version definition for multi-version YAML files.
|
|
230
|
+
* Each version has its own stages but shares segment definitions with other versions.
|
|
231
|
+
*/
|
|
232
|
+
export interface YamlJourneyVersion {
|
|
233
|
+
/** Version name (e.g., "v1", "v2") */
|
|
234
|
+
name: string;
|
|
235
|
+
/** Version state */
|
|
236
|
+
state: 'draft' | 'launched';
|
|
237
|
+
/**
|
|
238
|
+
* Whether this is the currently active (latest) version.
|
|
239
|
+
* Only one version should have latest=true.
|
|
240
|
+
* Default: false (omit if false)
|
|
241
|
+
*/
|
|
242
|
+
latest?: boolean;
|
|
243
|
+
/** Version-specific stages (1-8) */
|
|
244
|
+
stages: YamlJourneyStage[];
|
|
245
|
+
/**
|
|
246
|
+
* Journey ID for this version (from API, used for updates)
|
|
247
|
+
* @internal Not included in user-facing YAML output
|
|
248
|
+
*/
|
|
249
|
+
id?: string;
|
|
250
|
+
/** Version number */
|
|
251
|
+
version_number?: number;
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Complete journey YAML configuration.
|
|
255
|
+
*
|
|
256
|
+
* Supports two modes:
|
|
257
|
+
* 1. Single-version mode: Use `stages` at top level (backward compatible)
|
|
258
|
+
* 2. Multi-version mode: Use `versions` array (all versions in one YAML)
|
|
259
|
+
*
|
|
260
|
+
* Cannot have both `stages` and `versions` at top level.
|
|
261
|
+
*
|
|
262
|
+
* Folder is NOT stored in YAML - it's inferred from the local file path structure.
|
|
263
|
+
*/
|
|
264
|
+
export interface JourneyYaml {
|
|
265
|
+
/** Resource type - must be 'journey' to distinguish from segments */
|
|
266
|
+
type: 'journey';
|
|
267
|
+
/** Journey name (the actual journey name, same as bundle_name) */
|
|
268
|
+
name: string;
|
|
269
|
+
/** Journey description */
|
|
270
|
+
description?: string;
|
|
271
|
+
/**
|
|
272
|
+
* Embedded segment definitions local to this journey.
|
|
273
|
+
* These segments are created when the journey is launched.
|
|
274
|
+
*
|
|
275
|
+
* Keys are segment names (kebab-case, e.g., "high-value-customers").
|
|
276
|
+
* Reference these names in criteria/branches using the segment field.
|
|
277
|
+
* To reference an existing child segment, use "ref:Segment Name" prefix.
|
|
278
|
+
*/
|
|
279
|
+
segments?: Record<string, YamlEmbeddedSegment>;
|
|
280
|
+
/** Journey goal (shared across all versions) */
|
|
281
|
+
goal?: YamlJourneyCriteria;
|
|
282
|
+
/** Reentry mode (shared across all versions) */
|
|
283
|
+
reentry?: ReentryMode;
|
|
284
|
+
/**
|
|
285
|
+
* Journey stages for single-version mode (1-8).
|
|
286
|
+
* Cannot be used together with `versions`.
|
|
287
|
+
*/
|
|
288
|
+
stages?: YamlJourneyStage[];
|
|
289
|
+
/**
|
|
290
|
+
* Journey versions for multi-version mode.
|
|
291
|
+
* Each version has its own stages but shares segments/goal with other versions.
|
|
292
|
+
* Cannot be used together with `stages`.
|
|
293
|
+
*/
|
|
294
|
+
versions?: YamlJourneyVersion[];
|
|
295
|
+
/**
|
|
296
|
+
* Journey ID (from API, used for updates)
|
|
297
|
+
* @internal Not included in user-facing YAML output
|
|
298
|
+
*/
|
|
299
|
+
id?: string;
|
|
300
|
+
/**
|
|
301
|
+
* Version name (e.g., "v11") - the API name field
|
|
302
|
+
* @internal Used for single-version mode API compatibility
|
|
303
|
+
*/
|
|
304
|
+
version?: string;
|
|
305
|
+
/**
|
|
306
|
+
* Version number
|
|
307
|
+
* @internal Used for single-version mode API compatibility
|
|
308
|
+
*/
|
|
309
|
+
version_number?: number;
|
|
310
|
+
/**
|
|
311
|
+
* Folder ID (from API)
|
|
312
|
+
* @internal Folder is inferred from file path, not stored in YAML
|
|
313
|
+
*/
|
|
314
|
+
folder_id?: string;
|
|
315
|
+
/**
|
|
316
|
+
* Journey bundle ID (for versioned journeys)
|
|
317
|
+
* @internal Not included in user-facing YAML output
|
|
318
|
+
*/
|
|
319
|
+
bundle_id?: string;
|
|
320
|
+
/**
|
|
321
|
+
* Bundle name (same as name, kept for compatibility)
|
|
322
|
+
* @internal Not included in user-facing YAML output
|
|
323
|
+
*/
|
|
324
|
+
bundle_name?: string;
|
|
325
|
+
/**
|
|
326
|
+
* Allow reentry (legacy, use reentry instead)
|
|
327
|
+
* @deprecated Use `reentry` instead
|
|
328
|
+
*/
|
|
329
|
+
allow_reentry?: boolean;
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Journey criteria from API
|
|
333
|
+
*/
|
|
334
|
+
export interface ApiJourneyCriteria {
|
|
335
|
+
name: string;
|
|
336
|
+
description?: string;
|
|
337
|
+
segmentId: string;
|
|
338
|
+
target?: {
|
|
339
|
+
journeyId: string;
|
|
340
|
+
journeyStageId: string;
|
|
341
|
+
journeyBundleId?: string;
|
|
342
|
+
stageOrderIndex?: number;
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* Journey step from API (keyed by UUID)
|
|
347
|
+
*/
|
|
348
|
+
export interface ApiJourneyStep {
|
|
349
|
+
type: 'WaitStep' | 'Activation' | 'DecisionPoint' | 'AbTest' | 'Merge' | 'Jump' | 'End';
|
|
350
|
+
name?: string;
|
|
351
|
+
waitStepType?: 'Duration' | 'Date' | 'DaysOfTheWeek' | 'Condition';
|
|
352
|
+
waitStep?: number;
|
|
353
|
+
waitStepUnit?: 'day' | 'week';
|
|
354
|
+
waitUntilDate?: string;
|
|
355
|
+
daysOfWeek?: string[];
|
|
356
|
+
conditionSegmentId?: string;
|
|
357
|
+
conditionTimeoutDuration?: number;
|
|
358
|
+
conditionTimeoutUnit?: 'day' | 'week';
|
|
359
|
+
journeyActivationStepId?: string;
|
|
360
|
+
branches?: {
|
|
361
|
+
name: string;
|
|
362
|
+
segmentId: string;
|
|
363
|
+
excludedPath?: boolean;
|
|
364
|
+
next?: string;
|
|
365
|
+
}[];
|
|
366
|
+
customizedSplit?: boolean;
|
|
367
|
+
uniqueId?: string;
|
|
368
|
+
variants?: {
|
|
369
|
+
id: string;
|
|
370
|
+
name: string;
|
|
371
|
+
percentage: number;
|
|
372
|
+
next?: string;
|
|
373
|
+
}[];
|
|
374
|
+
target?: {
|
|
375
|
+
journeyId: string;
|
|
376
|
+
journeyStageId: string;
|
|
377
|
+
journeyBundleId?: string;
|
|
378
|
+
};
|
|
379
|
+
next?: string;
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* Journey stage from API
|
|
383
|
+
*/
|
|
384
|
+
export interface ApiJourneyStage {
|
|
385
|
+
id?: string;
|
|
386
|
+
name: string;
|
|
387
|
+
description?: string;
|
|
388
|
+
entryCriteria?: ApiJourneyCriteria;
|
|
389
|
+
exitCriterias?: ApiJourneyCriteria[];
|
|
390
|
+
milestone?: ApiJourneyCriteria;
|
|
391
|
+
rootStep?: string;
|
|
392
|
+
steps?: Record<string, ApiJourneyStep>;
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* Full journey from API
|
|
396
|
+
*/
|
|
397
|
+
export interface ApiJourney {
|
|
398
|
+
id: string;
|
|
399
|
+
type: 'journey';
|
|
400
|
+
attributes: {
|
|
401
|
+
name: string;
|
|
402
|
+
description?: string;
|
|
403
|
+
audienceId: string;
|
|
404
|
+
state: JourneyState;
|
|
405
|
+
goal?: ApiJourneyCriteria;
|
|
406
|
+
allowReentry?: boolean;
|
|
407
|
+
reentryMode?: ReentryMode;
|
|
408
|
+
paused?: boolean;
|
|
409
|
+
pausedAt?: string;
|
|
410
|
+
journeyBundleId?: string;
|
|
411
|
+
journeyBundleName?: string;
|
|
412
|
+
versionNumber?: number;
|
|
413
|
+
journeyStages: ApiJourneyStage[];
|
|
414
|
+
createdAt: string;
|
|
415
|
+
updatedAt: string;
|
|
416
|
+
launchedAt?: string;
|
|
417
|
+
};
|
|
418
|
+
relationships?: {
|
|
419
|
+
parentFolder?: {
|
|
420
|
+
data?: {
|
|
421
|
+
id: string;
|
|
422
|
+
type: 'folder';
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
createdBy?: {
|
|
426
|
+
data?: {
|
|
427
|
+
id: string;
|
|
428
|
+
type: 'user';
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* Resolved segment information for embedding in YAML
|
|
435
|
+
*/
|
|
436
|
+
export interface ResolvedSegment {
|
|
437
|
+
/** Segment name (kebab-case identifier for embedding, or original name for ref) */
|
|
438
|
+
name: string;
|
|
439
|
+
/** Whether this is a journey-local segment (true) or external child segment (false) */
|
|
440
|
+
isJourneyLocal: boolean;
|
|
441
|
+
/** Segment rule definition (only for journey-local segments) */
|
|
442
|
+
definition?: YamlEmbeddedSegment;
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* Context for resolving IDs to names during API → YAML conversion (pull).
|
|
446
|
+
*
|
|
447
|
+
* When pulling from API, references are stored as IDs. To make YAML human-readable,
|
|
448
|
+
* these IDs can be resolved to names using the context functions.
|
|
449
|
+
*
|
|
450
|
+
* If no context is provided, IDs are stored as-is in the YAML output.
|
|
451
|
+
*/
|
|
452
|
+
export interface ApiToYamlContext {
|
|
453
|
+
/**
|
|
454
|
+
* Resolve segment ID to its definition and metadata.
|
|
455
|
+
* Returns name and whether it's journey-local or an external ref.
|
|
456
|
+
* For journey-local segments, also returns the rule definition for embedding.
|
|
457
|
+
*/
|
|
458
|
+
resolveSegment?: (id: string) => Promise<ResolvedSegment>;
|
|
459
|
+
/**
|
|
460
|
+
* Resolve segment ID to name (simple version, for backward compatibility)
|
|
461
|
+
* @deprecated Use resolveSegment for full segment resolution
|
|
462
|
+
*/
|
|
463
|
+
resolveSegmentName?: (id: string) => Promise<string>;
|
|
464
|
+
/** Resolve activation ID to name */
|
|
465
|
+
resolveActivationName?: (id: string) => Promise<string>;
|
|
466
|
+
/** Resolve journey ID to name */
|
|
467
|
+
resolveJourneyName?: (id: string) => Promise<string>;
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* Convert API journey to YAML format.
|
|
471
|
+
*
|
|
472
|
+
* Note: This is a synchronous version that stores IDs as-is (for internal use).
|
|
473
|
+
* For human-readable YAML output, use apiToYamlAsync with a resolution context.
|
|
474
|
+
*
|
|
475
|
+
* @internal Use apiToYamlAsync for user-facing YAML
|
|
476
|
+
*/
|
|
477
|
+
export declare function apiToYaml(api: ApiJourney): JourneyYaml;
|
|
478
|
+
/**
|
|
479
|
+
* Convert API journey to YAML format with segment resolution.
|
|
480
|
+
*
|
|
481
|
+
* This async version resolves segment IDs to names and builds the embedded
|
|
482
|
+
* segments section for journey-local segments.
|
|
483
|
+
*
|
|
484
|
+
* @param api - Journey from API
|
|
485
|
+
* @param context - Resolution context for IDs to names
|
|
486
|
+
* @returns Journey YAML with embedded segments and name references
|
|
487
|
+
*/
|
|
488
|
+
export declare function apiToYamlAsync(api: ApiJourney, context?: ApiToYamlContext): Promise<JourneyYaml>;
|
|
489
|
+
/**
|
|
490
|
+
* Context for resolving references during YAML → API conversion
|
|
491
|
+
*/
|
|
492
|
+
export interface YamlToApiContext {
|
|
493
|
+
/** Resolve segment name to ID */
|
|
494
|
+
resolveSegmentId?: (name: string) => Promise<string>;
|
|
495
|
+
/** Resolve activation name to ID */
|
|
496
|
+
resolveActivationId?: (name: string) => Promise<string>;
|
|
497
|
+
/** Resolve journey name to ID */
|
|
498
|
+
resolveJourneyId?: (name: string) => Promise<string>;
|
|
499
|
+
/**
|
|
500
|
+
* Resolve embedded segment definition to ID.
|
|
501
|
+
* Used when an embedded segment needs to be created/matched in the API.
|
|
502
|
+
*/
|
|
503
|
+
resolveEmbeddedSegmentId?: (name: string, definition: YamlEmbeddedSegment) => Promise<string>;
|
|
504
|
+
}
|
|
505
|
+
/**
|
|
506
|
+
* API request format for creating/updating a journey
|
|
507
|
+
*/
|
|
508
|
+
export interface ApiJourneyRequest {
|
|
509
|
+
id?: string;
|
|
510
|
+
type: 'journey';
|
|
511
|
+
attributes: {
|
|
512
|
+
name: string;
|
|
513
|
+
description?: string;
|
|
514
|
+
audienceId: string;
|
|
515
|
+
goal?: ApiJourneyCriteria;
|
|
516
|
+
reentryMode?: ReentryMode;
|
|
517
|
+
allowReentry?: boolean;
|
|
518
|
+
journeyStages: ApiJourneyStage[];
|
|
519
|
+
};
|
|
520
|
+
relationships?: {
|
|
521
|
+
parentFolder?: {
|
|
522
|
+
data: {
|
|
523
|
+
id: string;
|
|
524
|
+
type: 'folder';
|
|
525
|
+
};
|
|
526
|
+
};
|
|
527
|
+
};
|
|
528
|
+
}
|
|
529
|
+
/**
|
|
530
|
+
* Convert YAML journey to API request format
|
|
531
|
+
*
|
|
532
|
+
* @param yamlConfig - Journey YAML configuration
|
|
533
|
+
* @param audienceId - Parent segment ID (from context, not stored in YAML)
|
|
534
|
+
* @param context - Resolution context for references
|
|
535
|
+
*/
|
|
536
|
+
export declare function yamlToApi(yamlConfig: JourneyYaml, audienceId: string, context?: YamlToApiContext): Promise<ApiJourneyRequest>;
|
|
537
|
+
/**
|
|
538
|
+
* Serialize journey config to YAML string.
|
|
539
|
+
* Strips internal fields (IDs, folder_id, etc.) from output for clean, portable YAML.
|
|
540
|
+
*/
|
|
541
|
+
export declare function toYamlString(config: JourneyYaml): string;
|
|
542
|
+
/**
|
|
543
|
+
* Parse YAML string to journey config.
|
|
544
|
+
* Supports both single-version mode (stages at top level) and multi-version mode (versions array).
|
|
545
|
+
*/
|
|
546
|
+
export declare function parseYamlString(yamlString: string): JourneyYaml;
|
|
547
|
+
/**
|
|
548
|
+
* Check if a YAML object represents a journey (vs segment)
|
|
549
|
+
*/
|
|
550
|
+
export declare function isJourneyYaml(parsed: unknown): parsed is JourneyYaml;
|
|
551
|
+
/**
|
|
552
|
+
* Generate a sample YAML template for a new journey
|
|
553
|
+
*/
|
|
554
|
+
export declare function generateTemplate(name: string, entrySegment: string): string;
|
|
555
|
+
/**
|
|
556
|
+
* Prefix for referencing existing child segments (not embedded in YAML).
|
|
557
|
+
* Use "ref:Segment Name" to reference an existing child segment by name.
|
|
558
|
+
*/
|
|
559
|
+
export declare const SEGMENT_REF_PREFIX = "ref:";
|
|
560
|
+
/**
|
|
561
|
+
* Parse a segment reference string.
|
|
562
|
+
*
|
|
563
|
+
* Returns the type and name:
|
|
564
|
+
* - { type: 'embedded', name: 'segment-name' } for embedded segments
|
|
565
|
+
* - { type: 'ref', name: 'Segment Name' } for existing child segment references
|
|
566
|
+
* - { type: 'id', name: '12345' } for raw IDs (internal use)
|
|
567
|
+
*/
|
|
568
|
+
export declare function parseSegmentRef(ref: string): {
|
|
569
|
+
type: 'embedded' | 'ref' | 'id';
|
|
570
|
+
name: string;
|
|
571
|
+
};
|
|
572
|
+
/**
|
|
573
|
+
* Create a reference string for an existing child segment.
|
|
574
|
+
*/
|
|
575
|
+
export declare function makeSegmentRef(segmentName: string): string;
|
|
576
|
+
/**
|
|
577
|
+
* Check if a segment reference points to an existing child segment (vs embedded).
|
|
578
|
+
*/
|
|
579
|
+
export declare function isExternalSegmentRef(ref: string): boolean;
|
|
580
|
+
/**
|
|
581
|
+
* Check if a journey YAML is in multi-version mode.
|
|
582
|
+
*/
|
|
583
|
+
export declare function isMultiVersionMode(config: JourneyYaml): boolean;
|
|
584
|
+
/**
|
|
585
|
+
* Check if a journey YAML is in single-version mode.
|
|
586
|
+
*/
|
|
587
|
+
export declare function isSingleVersionMode(config: JourneyYaml): boolean;
|
|
588
|
+
/**
|
|
589
|
+
* Get all stages from a journey YAML, regardless of mode.
|
|
590
|
+
* For single-version mode, returns the stages array.
|
|
591
|
+
* For multi-version mode, returns stages from the latest version (or first version if no latest).
|
|
592
|
+
*/
|
|
593
|
+
export declare function getActiveStages(config: JourneyYaml): YamlJourneyStage[];
|
|
594
|
+
/**
|
|
595
|
+
* Get the latest/active version from a multi-version journey YAML.
|
|
596
|
+
* Returns undefined for single-version mode.
|
|
597
|
+
*/
|
|
598
|
+
/**
|
|
599
|
+
* Get the latest/active version from a multi-version journey.
|
|
600
|
+
* Returns the version marked with `latest: true`, or the first version as fallback.
|
|
601
|
+
* Returns undefined for single-version mode journeys.
|
|
602
|
+
*
|
|
603
|
+
* Note: Returns first version (not last) when none marked latest for deterministic behavior.
|
|
604
|
+
*/
|
|
605
|
+
export declare function getLatestVersion(config: JourneyYaml): YamlJourneyVersion | undefined;
|
|
606
|
+
/**
|
|
607
|
+
* Collect all segment references from a journey YAML.
|
|
608
|
+
* Returns a set of unique segment reference strings.
|
|
609
|
+
*/
|
|
610
|
+
export declare function collectSegmentRefs(config: JourneyYaml): Set<string>;
|
|
611
|
+
/**
|
|
612
|
+
* Validate that all segment references in a journey YAML are resolvable.
|
|
613
|
+
* Returns an array of validation errors (empty if all valid).
|
|
614
|
+
*/
|
|
615
|
+
export declare function validateSegmentRefs(config: JourneyYaml): string[];
|
|
616
|
+
//# sourceMappingURL=journey-yaml.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"journey-yaml.d.ts","sourceRoot":"","sources":["../../../src/sdk/segment/journey-yaml.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAGxD,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAMrF;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,YAAY,GAAG,8BAA8B,GAAG,gBAAgB,CAAC;AAE3F;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,YAAY,GAAG,UAAU,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,MAAM,CAAC;AAEtC;;GAEG;AACH,MAAM,MAAM,QAAQ,GAChB,MAAM,GACN,YAAY,GACZ,gBAAgB,GAChB,SAAS,GACT,OAAO,GACP,MAAM,GACN,KAAK,CAAC;AAEV;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,gDAA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