@getrheo/contracts 1.0.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.
Files changed (81) hide show
  1. package/dist/animations.d.ts +226 -0
  2. package/dist/animations.js +1160 -0
  3. package/dist/animations.js.map +1 -0
  4. package/dist/appIntegrations.d.ts +175 -0
  5. package/dist/appIntegrations.js +60 -0
  6. package/dist/appIntegrations.js.map +1 -0
  7. package/dist/billingPeriod.d.ts +26 -0
  8. package/dist/billingPeriod.js +39 -0
  9. package/dist/billingPeriod.js.map +1 -0
  10. package/dist/canvasEditorGates.d.ts +81 -0
  11. package/dist/canvasEditorGates.js +1460 -0
  12. package/dist/canvasEditorGates.js.map +1 -0
  13. package/dist/constants/index.d.ts +30 -0
  14. package/dist/constants/index.js +67 -0
  15. package/dist/constants/index.js.map +1 -0
  16. package/dist/dashboard.d.ts +181856 -0
  17. package/dist/dashboard.js +3348 -0
  18. package/dist/dashboard.js.map +1 -0
  19. package/dist/decisions.d.ts +575 -0
  20. package/dist/decisions.js +1209 -0
  21. package/dist/decisions.js.map +1 -0
  22. package/dist/events.d.ts +231 -0
  23. package/dist/events.js +63 -0
  24. package/dist/events.js.map +1 -0
  25. package/dist/experiments-DN8pQa_D.d.ts +530 -0
  26. package/dist/externalSurfaceIntegrations.d.ts +20 -0
  27. package/dist/externalSurfaceIntegrations.js +49 -0
  28. package/dist/externalSurfaceIntegrations.js.map +1 -0
  29. package/dist/externalSurfaces.d.ts +177 -0
  30. package/dist/externalSurfaces.js +1190 -0
  31. package/dist/externalSurfaces.js.map +1 -0
  32. package/dist/fields.d.ts +8 -0
  33. package/dist/fields.js +15 -0
  34. package/dist/fields.js.map +1 -0
  35. package/dist/flowManifestSchema-CtqygXCK.d.ts +50857 -0
  36. package/dist/flowTemplateComments.d.ts +23 -0
  37. package/dist/flowTemplateComments.js +14 -0
  38. package/dist/flowTemplateComments.js.map +1 -0
  39. package/dist/flowTemplates.d.ts +22 -0
  40. package/dist/flowTemplates.js +73 -0
  41. package/dist/flowTemplates.js.map +1 -0
  42. package/dist/identity.d.ts +35 -0
  43. package/dist/identity.js +18 -0
  44. package/dist/identity.js.map +1 -0
  45. package/dist/imageContentType.d.ts +11 -0
  46. package/dist/imageContentType.js +54 -0
  47. package/dist/imageContentType.js.map +1 -0
  48. package/dist/index.d.ts +224 -0
  49. package/dist/index.js +4557 -0
  50. package/dist/index.js.map +1 -0
  51. package/dist/layerUnion-BzXoAJLY.d.ts +34 -0
  52. package/dist/layers.d.ts +89844 -0
  53. package/dist/layers.js +1507 -0
  54. package/dist/layers.js.map +1 -0
  55. package/dist/layout-D0LpaKG-.d.ts +12896 -0
  56. package/dist/localized.d.ts +17 -0
  57. package/dist/localized.js +18 -0
  58. package/dist/localized.js.map +1 -0
  59. package/dist/manifest.d.ts +22192 -0
  60. package/dist/manifest.js +2163 -0
  61. package/dist/manifest.js.map +1 -0
  62. package/dist/media.d.ts +53 -0
  63. package/dist/media.js +55 -0
  64. package/dist/media.js.map +1 -0
  65. package/dist/planEntitlements.d.ts +65 -0
  66. package/dist/planEntitlements.js +117 -0
  67. package/dist/planEntitlements.js.map +1 -0
  68. package/dist/publish-exports.json +102 -0
  69. package/dist/screens.d.ts +33586 -0
  70. package/dist/screens.js +1439 -0
  71. package/dist/screens.js.map +1 -0
  72. package/dist/sdk.d.ts +145942 -0
  73. package/dist/sdk.js +3424 -0
  74. package/dist/sdk.js.map +1 -0
  75. package/dist/sdkAttributes.d.ts +11 -0
  76. package/dist/sdkAttributes.js +17 -0
  77. package/dist/sdkAttributes.js.map +1 -0
  78. package/dist/workspaceCapabilities.d.ts +15 -0
  79. package/dist/workspaceCapabilities.js +116 -0
  80. package/dist/workspaceCapabilities.js.map +1 -0
  81. package/package.json +162 -0
@@ -0,0 +1,575 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const DecisionNodeIdSchema: z.ZodString;
4
+ type DecisionNodeId = z.infer<typeof DecisionNodeIdSchema>;
5
+ /**
6
+ * Terminal jump target for an external surface branch: end the flow immediately
7
+ * after this outcome (no next screen). Distinct from omitting the outcome, which
8
+ * falls through to {@link ExternalSurfaceNode.fallback}.
9
+ */
10
+ declare const EXTERNAL_SURFACE_NO_NEXT: "__onb_surface_no_next__";
11
+ /**
12
+ * React Flow `Handle.id` / edge `sourceHandle` for a decision node's catch-all
13
+ * output (`elseNext`). Not a {@link FlowJumpTarget}.
14
+ */
15
+ declare const DECISION_ELSE_SOURCE_HANDLE: "__dec_else__";
16
+ /** Nullable jump target from a screen, decision, or external surface: another screen, a decision vertex, or an external surface. */
17
+ declare const FlowJumpTargetSchema: z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodString]>, z.ZodString]>, z.ZodLiteral<"__onb_surface_no_next__">]>>;
18
+ type FlowJumpTarget = z.infer<typeof FlowJumpTargetSchema>;
19
+ declare const DecisionBuiltinNameSchema: z.ZodEnum<["locale", "platform"]>;
20
+ type DecisionBuiltinName = z.infer<typeof DecisionBuiltinNameSchema>;
21
+ declare const DecisionVariableRefSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
22
+ kind: z.ZodLiteral<"builtin">;
23
+ name: z.ZodEnum<["locale", "platform"]>;
24
+ }, "strip", z.ZodTypeAny, {
25
+ name: "locale" | "platform";
26
+ kind: "builtin";
27
+ }, {
28
+ name: "locale" | "platform";
29
+ kind: "builtin";
30
+ }>, z.ZodObject<{
31
+ kind: z.ZodLiteral<"sdk">;
32
+ key: z.ZodString;
33
+ }, "strip", z.ZodTypeAny, {
34
+ kind: "sdk";
35
+ key: string;
36
+ }, {
37
+ kind: "sdk";
38
+ key: string;
39
+ }>, z.ZodObject<{
40
+ kind: z.ZodLiteral<"field">;
41
+ fieldKey: z.ZodString;
42
+ }, "strip", z.ZodTypeAny, {
43
+ kind: "field";
44
+ fieldKey: string;
45
+ }, {
46
+ kind: "field";
47
+ fieldKey: string;
48
+ }>]>;
49
+ type DecisionVariableRef = z.infer<typeof DecisionVariableRefSchema>;
50
+ declare const DecisionStringPredicateSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
51
+ op: z.ZodLiteral<"eq">;
52
+ value: z.ZodString;
53
+ }, "strip", z.ZodTypeAny, {
54
+ value: string;
55
+ op: "eq";
56
+ }, {
57
+ value: string;
58
+ op: "eq";
59
+ }>, z.ZodObject<{
60
+ op: z.ZodLiteral<"neq">;
61
+ value: z.ZodString;
62
+ }, "strip", z.ZodTypeAny, {
63
+ value: string;
64
+ op: "neq";
65
+ }, {
66
+ value: string;
67
+ op: "neq";
68
+ }>, z.ZodObject<{
69
+ op: z.ZodLiteral<"contains">;
70
+ value: z.ZodString;
71
+ }, "strip", z.ZodTypeAny, {
72
+ value: string;
73
+ op: "contains";
74
+ }, {
75
+ value: string;
76
+ op: "contains";
77
+ }>]>;
78
+ declare const DecisionNumberPredicateSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
79
+ op: z.ZodLiteral<"eq">;
80
+ value: z.ZodNumber;
81
+ }, "strip", z.ZodTypeAny, {
82
+ value: number;
83
+ op: "eq";
84
+ }, {
85
+ value: number;
86
+ op: "eq";
87
+ }>, z.ZodObject<{
88
+ op: z.ZodLiteral<"neq">;
89
+ value: z.ZodNumber;
90
+ }, "strip", z.ZodTypeAny, {
91
+ value: number;
92
+ op: "neq";
93
+ }, {
94
+ value: number;
95
+ op: "neq";
96
+ }>, z.ZodObject<{
97
+ op: z.ZodLiteral<"lt">;
98
+ value: z.ZodNumber;
99
+ }, "strip", z.ZodTypeAny, {
100
+ value: number;
101
+ op: "lt";
102
+ }, {
103
+ value: number;
104
+ op: "lt";
105
+ }>, z.ZodObject<{
106
+ op: z.ZodLiteral<"lte">;
107
+ value: z.ZodNumber;
108
+ }, "strip", z.ZodTypeAny, {
109
+ value: number;
110
+ op: "lte";
111
+ }, {
112
+ value: number;
113
+ op: "lte";
114
+ }>, z.ZodObject<{
115
+ op: z.ZodLiteral<"gt">;
116
+ value: z.ZodNumber;
117
+ }, "strip", z.ZodTypeAny, {
118
+ value: number;
119
+ op: "gt";
120
+ }, {
121
+ value: number;
122
+ op: "gt";
123
+ }>, z.ZodObject<{
124
+ op: z.ZodLiteral<"gte">;
125
+ value: z.ZodNumber;
126
+ }, "strip", z.ZodTypeAny, {
127
+ value: number;
128
+ op: "gte";
129
+ }, {
130
+ value: number;
131
+ op: "gte";
132
+ }>]>;
133
+ declare const DecisionChoicePredicateSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
134
+ op: z.ZodLiteral<"eq">;
135
+ optionId: z.ZodString;
136
+ }, "strip", z.ZodTypeAny, {
137
+ optionId: string;
138
+ op: "eq";
139
+ }, {
140
+ optionId: string;
141
+ op: "eq";
142
+ }>, z.ZodObject<{
143
+ op: z.ZodLiteral<"one_of">;
144
+ optionIds: z.ZodArray<z.ZodString, "many">;
145
+ }, "strip", z.ZodTypeAny, {
146
+ op: "one_of";
147
+ optionIds: string[];
148
+ }, {
149
+ op: "one_of";
150
+ optionIds: string[];
151
+ }>]>;
152
+ declare const DecisionMultiPredicateSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
153
+ op: z.ZodLiteral<"intersects">;
154
+ optionIds: z.ZodArray<z.ZodString, "many">;
155
+ }, "strip", z.ZodTypeAny, {
156
+ op: "intersects";
157
+ optionIds: string[];
158
+ }, {
159
+ op: "intersects";
160
+ optionIds: string[];
161
+ }>, z.ZodObject<{
162
+ op: z.ZodLiteral<"contains_all">;
163
+ optionIds: z.ZodArray<z.ZodString, "many">;
164
+ }, "strip", z.ZodTypeAny, {
165
+ op: "contains_all";
166
+ optionIds: string[];
167
+ }, {
168
+ op: "contains_all";
169
+ optionIds: string[];
170
+ }>, z.ZodObject<{
171
+ op: z.ZodLiteral<"subset_of">;
172
+ optionIds: z.ZodArray<z.ZodString, "many">;
173
+ }, "strip", z.ZodTypeAny, {
174
+ op: "subset_of";
175
+ optionIds: string[];
176
+ }, {
177
+ op: "subset_of";
178
+ optionIds: string[];
179
+ }>]>;
180
+ declare const DecisionBooleanPredicateSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
181
+ op: z.ZodLiteral<"eq">;
182
+ value: z.ZodBoolean;
183
+ }, "strip", z.ZodTypeAny, {
184
+ value: boolean;
185
+ op: "eq";
186
+ }, {
187
+ value: boolean;
188
+ op: "eq";
189
+ }>, z.ZodObject<{
190
+ op: z.ZodLiteral<"neq">;
191
+ value: z.ZodBoolean;
192
+ }, "strip", z.ZodTypeAny, {
193
+ value: boolean;
194
+ op: "neq";
195
+ }, {
196
+ value: boolean;
197
+ op: "neq";
198
+ }>]>;
199
+ declare const DecisionPredicatePayloadSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
200
+ type: z.ZodLiteral<"string">;
201
+ pred: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
202
+ op: z.ZodLiteral<"eq">;
203
+ value: z.ZodString;
204
+ }, "strip", z.ZodTypeAny, {
205
+ value: string;
206
+ op: "eq";
207
+ }, {
208
+ value: string;
209
+ op: "eq";
210
+ }>, z.ZodObject<{
211
+ op: z.ZodLiteral<"neq">;
212
+ value: z.ZodString;
213
+ }, "strip", z.ZodTypeAny, {
214
+ value: string;
215
+ op: "neq";
216
+ }, {
217
+ value: string;
218
+ op: "neq";
219
+ }>, z.ZodObject<{
220
+ op: z.ZodLiteral<"contains">;
221
+ value: z.ZodString;
222
+ }, "strip", z.ZodTypeAny, {
223
+ value: string;
224
+ op: "contains";
225
+ }, {
226
+ value: string;
227
+ op: "contains";
228
+ }>]>;
229
+ }, "strip", z.ZodTypeAny, {
230
+ type: "string";
231
+ pred: {
232
+ value: string;
233
+ op: "eq";
234
+ } | {
235
+ value: string;
236
+ op: "neq";
237
+ } | {
238
+ value: string;
239
+ op: "contains";
240
+ };
241
+ }, {
242
+ type: "string";
243
+ pred: {
244
+ value: string;
245
+ op: "eq";
246
+ } | {
247
+ value: string;
248
+ op: "neq";
249
+ } | {
250
+ value: string;
251
+ op: "contains";
252
+ };
253
+ }>, z.ZodObject<{
254
+ type: z.ZodLiteral<"number">;
255
+ pred: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
256
+ op: z.ZodLiteral<"eq">;
257
+ value: z.ZodNumber;
258
+ }, "strip", z.ZodTypeAny, {
259
+ value: number;
260
+ op: "eq";
261
+ }, {
262
+ value: number;
263
+ op: "eq";
264
+ }>, z.ZodObject<{
265
+ op: z.ZodLiteral<"neq">;
266
+ value: z.ZodNumber;
267
+ }, "strip", z.ZodTypeAny, {
268
+ value: number;
269
+ op: "neq";
270
+ }, {
271
+ value: number;
272
+ op: "neq";
273
+ }>, z.ZodObject<{
274
+ op: z.ZodLiteral<"lt">;
275
+ value: z.ZodNumber;
276
+ }, "strip", z.ZodTypeAny, {
277
+ value: number;
278
+ op: "lt";
279
+ }, {
280
+ value: number;
281
+ op: "lt";
282
+ }>, z.ZodObject<{
283
+ op: z.ZodLiteral<"lte">;
284
+ value: z.ZodNumber;
285
+ }, "strip", z.ZodTypeAny, {
286
+ value: number;
287
+ op: "lte";
288
+ }, {
289
+ value: number;
290
+ op: "lte";
291
+ }>, z.ZodObject<{
292
+ op: z.ZodLiteral<"gt">;
293
+ value: z.ZodNumber;
294
+ }, "strip", z.ZodTypeAny, {
295
+ value: number;
296
+ op: "gt";
297
+ }, {
298
+ value: number;
299
+ op: "gt";
300
+ }>, z.ZodObject<{
301
+ op: z.ZodLiteral<"gte">;
302
+ value: z.ZodNumber;
303
+ }, "strip", z.ZodTypeAny, {
304
+ value: number;
305
+ op: "gte";
306
+ }, {
307
+ value: number;
308
+ op: "gte";
309
+ }>]>;
310
+ }, "strip", z.ZodTypeAny, {
311
+ type: "number";
312
+ pred: {
313
+ value: number;
314
+ op: "eq";
315
+ } | {
316
+ value: number;
317
+ op: "neq";
318
+ } | {
319
+ value: number;
320
+ op: "lt";
321
+ } | {
322
+ value: number;
323
+ op: "lte";
324
+ } | {
325
+ value: number;
326
+ op: "gt";
327
+ } | {
328
+ value: number;
329
+ op: "gte";
330
+ };
331
+ }, {
332
+ type: "number";
333
+ pred: {
334
+ value: number;
335
+ op: "eq";
336
+ } | {
337
+ value: number;
338
+ op: "neq";
339
+ } | {
340
+ value: number;
341
+ op: "lt";
342
+ } | {
343
+ value: number;
344
+ op: "lte";
345
+ } | {
346
+ value: number;
347
+ op: "gt";
348
+ } | {
349
+ value: number;
350
+ op: "gte";
351
+ };
352
+ }>, z.ZodObject<{
353
+ type: z.ZodLiteral<"boolean">;
354
+ pred: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
355
+ op: z.ZodLiteral<"eq">;
356
+ value: z.ZodBoolean;
357
+ }, "strip", z.ZodTypeAny, {
358
+ value: boolean;
359
+ op: "eq";
360
+ }, {
361
+ value: boolean;
362
+ op: "eq";
363
+ }>, z.ZodObject<{
364
+ op: z.ZodLiteral<"neq">;
365
+ value: z.ZodBoolean;
366
+ }, "strip", z.ZodTypeAny, {
367
+ value: boolean;
368
+ op: "neq";
369
+ }, {
370
+ value: boolean;
371
+ op: "neq";
372
+ }>]>;
373
+ }, "strip", z.ZodTypeAny, {
374
+ type: "boolean";
375
+ pred: {
376
+ value: boolean;
377
+ op: "eq";
378
+ } | {
379
+ value: boolean;
380
+ op: "neq";
381
+ };
382
+ }, {
383
+ type: "boolean";
384
+ pred: {
385
+ value: boolean;
386
+ op: "eq";
387
+ } | {
388
+ value: boolean;
389
+ op: "neq";
390
+ };
391
+ }>, z.ZodObject<{
392
+ type: z.ZodLiteral<"choice">;
393
+ pred: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
394
+ op: z.ZodLiteral<"eq">;
395
+ optionId: z.ZodString;
396
+ }, "strip", z.ZodTypeAny, {
397
+ optionId: string;
398
+ op: "eq";
399
+ }, {
400
+ optionId: string;
401
+ op: "eq";
402
+ }>, z.ZodObject<{
403
+ op: z.ZodLiteral<"one_of">;
404
+ optionIds: z.ZodArray<z.ZodString, "many">;
405
+ }, "strip", z.ZodTypeAny, {
406
+ op: "one_of";
407
+ optionIds: string[];
408
+ }, {
409
+ op: "one_of";
410
+ optionIds: string[];
411
+ }>]>;
412
+ }, "strip", z.ZodTypeAny, {
413
+ type: "choice";
414
+ pred: {
415
+ optionId: string;
416
+ op: "eq";
417
+ } | {
418
+ op: "one_of";
419
+ optionIds: string[];
420
+ };
421
+ }, {
422
+ type: "choice";
423
+ pred: {
424
+ optionId: string;
425
+ op: "eq";
426
+ } | {
427
+ op: "one_of";
428
+ optionIds: string[];
429
+ };
430
+ }>, z.ZodObject<{
431
+ type: z.ZodLiteral<"multi">;
432
+ pred: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
433
+ op: z.ZodLiteral<"intersects">;
434
+ optionIds: z.ZodArray<z.ZodString, "many">;
435
+ }, "strip", z.ZodTypeAny, {
436
+ op: "intersects";
437
+ optionIds: string[];
438
+ }, {
439
+ op: "intersects";
440
+ optionIds: string[];
441
+ }>, z.ZodObject<{
442
+ op: z.ZodLiteral<"contains_all">;
443
+ optionIds: z.ZodArray<z.ZodString, "many">;
444
+ }, "strip", z.ZodTypeAny, {
445
+ op: "contains_all";
446
+ optionIds: string[];
447
+ }, {
448
+ op: "contains_all";
449
+ optionIds: string[];
450
+ }>, z.ZodObject<{
451
+ op: z.ZodLiteral<"subset_of">;
452
+ optionIds: z.ZodArray<z.ZodString, "many">;
453
+ }, "strip", z.ZodTypeAny, {
454
+ op: "subset_of";
455
+ optionIds: string[];
456
+ }, {
457
+ op: "subset_of";
458
+ optionIds: string[];
459
+ }>]>;
460
+ }, "strip", z.ZodTypeAny, {
461
+ type: "multi";
462
+ pred: {
463
+ op: "intersects";
464
+ optionIds: string[];
465
+ } | {
466
+ op: "contains_all";
467
+ optionIds: string[];
468
+ } | {
469
+ op: "subset_of";
470
+ optionIds: string[];
471
+ };
472
+ }, {
473
+ type: "multi";
474
+ pred: {
475
+ op: "intersects";
476
+ optionIds: string[];
477
+ } | {
478
+ op: "contains_all";
479
+ optionIds: string[];
480
+ } | {
481
+ op: "subset_of";
482
+ optionIds: string[];
483
+ };
484
+ }>]>;
485
+ type DecisionPredicatePayload = z.infer<typeof DecisionPredicatePayloadSchema>;
486
+ type DecisionExpr = {
487
+ kind: 'empty';
488
+ } | {
489
+ kind: 'group';
490
+ op: 'and' | 'or';
491
+ children: DecisionExpr[];
492
+ } | {
493
+ kind: 'predicate';
494
+ variable: DecisionVariableRef;
495
+ predicate: DecisionPredicatePayload;
496
+ };
497
+ declare const DecisionExprSchema: z.ZodType<DecisionExpr>;
498
+ /** One ordered segment evaluated before {@link DecisionNode.elseNext}. */
499
+ declare const DecisionCaseSchema: z.ZodObject<{
500
+ id: z.ZodString;
501
+ /** Display label in the editor (e.g. “Engaged users”). */
502
+ name: z.ZodOptional<z.ZodString>;
503
+ expression: z.ZodType<DecisionExpr, z.ZodTypeDef, DecisionExpr>;
504
+ next: z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodString]>, z.ZodString]>, z.ZodLiteral<"__onb_surface_no_next__">]>>;
505
+ }, "strip", z.ZodTypeAny, {
506
+ id: string;
507
+ next: string | null;
508
+ expression: DecisionExpr;
509
+ name?: string | undefined;
510
+ }, {
511
+ id: string;
512
+ next: string | null;
513
+ expression: DecisionExpr;
514
+ name?: string | undefined;
515
+ }>;
516
+ type DecisionCase = z.infer<typeof DecisionCaseSchema>;
517
+ /**
518
+ * Multi-branch decision: `cases` are evaluated in order; the first matching
519
+ * expression routes to that case’s `next`. If none match, `elseNext` is used
520
+ * (“everyone else”).
521
+ */
522
+ declare const DecisionNodeSchema: z.ZodObject<{
523
+ id: z.ZodString;
524
+ name: z.ZodOptional<z.ZodString>;
525
+ cases: z.ZodArray<z.ZodObject<{
526
+ id: z.ZodString;
527
+ /** Display label in the editor (e.g. “Engaged users”). */
528
+ name: z.ZodOptional<z.ZodString>;
529
+ expression: z.ZodType<DecisionExpr, z.ZodTypeDef, DecisionExpr>;
530
+ next: z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodString]>, z.ZodString]>, z.ZodLiteral<"__onb_surface_no_next__">]>>;
531
+ }, "strip", z.ZodTypeAny, {
532
+ id: string;
533
+ next: string | null;
534
+ expression: DecisionExpr;
535
+ name?: string | undefined;
536
+ }, {
537
+ id: string;
538
+ next: string | null;
539
+ expression: DecisionExpr;
540
+ name?: string | undefined;
541
+ }>, "many">;
542
+ elseNext: z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodString]>, z.ZodString]>, z.ZodLiteral<"__onb_surface_no_next__">]>>;
543
+ }, "strip", z.ZodTypeAny, {
544
+ id: string;
545
+ cases: {
546
+ id: string;
547
+ next: string | null;
548
+ expression: DecisionExpr;
549
+ name?: string | undefined;
550
+ }[];
551
+ elseNext: string | null;
552
+ name?: string | undefined;
553
+ }, {
554
+ id: string;
555
+ cases: {
556
+ id: string;
557
+ next: string | null;
558
+ expression: DecisionExpr;
559
+ name?: string | undefined;
560
+ }[];
561
+ elseNext: string | null;
562
+ name?: string | undefined;
563
+ }>;
564
+ type DecisionNode = z.infer<typeof DecisionNodeSchema>;
565
+ /**
566
+ * Migrate a persisted binary decision (`expression` + `onTrue` / `onFalse`) to
567
+ * the multi-segment shape in-place. No-op when already migrated.
568
+ */
569
+ declare const migrateLegacyDecisionNodeInPlace: (node: Record<string, unknown>) => void;
570
+ declare const collectDecisionSdkKeys: (expr: DecisionExpr) => string[];
571
+ declare const collectDecisionFieldKeys: (expr: DecisionExpr) => string[];
572
+ declare const collectDecisionSdkKeysFromNode: (node: DecisionNode) => string[];
573
+ declare const collectDecisionFieldKeysFromNode: (node: DecisionNode) => string[];
574
+
575
+ export { DECISION_ELSE_SOURCE_HANDLE, DecisionBooleanPredicateSchema, type DecisionBuiltinName, DecisionBuiltinNameSchema, type DecisionCase, DecisionCaseSchema, DecisionChoicePredicateSchema, type DecisionExpr, DecisionExprSchema, DecisionMultiPredicateSchema, type DecisionNode, type DecisionNodeId, DecisionNodeIdSchema, DecisionNodeSchema, DecisionNumberPredicateSchema, type DecisionPredicatePayload, DecisionPredicatePayloadSchema, DecisionStringPredicateSchema, type DecisionVariableRef, DecisionVariableRefSchema, EXTERNAL_SURFACE_NO_NEXT, type FlowJumpTarget, FlowJumpTargetSchema, collectDecisionFieldKeys, collectDecisionFieldKeysFromNode, collectDecisionSdkKeys, collectDecisionSdkKeysFromNode, migrateLegacyDecisionNodeInPlace };