@bitflow/core 0.4.0 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/{types/bits.d.ts → bits.d.ts} +2 -3
  2. package/dist/{cjs/bitsSchema.d.ts → bitsSchema.d.ts} +0 -0
  3. package/dist/{cjs/do.d.ts → do.d.ts} +0 -0
  4. package/dist/{cjs/doSchema.d.ts → doSchema.d.ts} +94 -18
  5. package/dist/{cjs/findLast.d.ts → findLast.d.ts} +0 -0
  6. package/dist/{types/flow.d.ts → flow.d.ts} +7 -1
  7. package/dist/{types/flowSchema.d.ts → flowSchema.d.ts} +76 -12
  8. package/dist/{cjs/groupBy.d.ts → groupBy.d.ts} +0 -0
  9. package/dist/index.cjs.js +732 -0
  10. package/dist/index.cjs.js.map +7 -0
  11. package/dist/{cjs/index.d.ts → index.d.ts} +0 -0
  12. package/dist/index.esm.mjs +703 -0
  13. package/dist/index.esm.mjs.map +7 -0
  14. package/dist/{cjs/lerpColor.d.ts → lerpColor.d.ts} +0 -0
  15. package/dist/{cjs/levenshtein.d.ts → levenshtein.d.ts} +0 -0
  16. package/dist/{cjs/uuid.d.ts → uuid.d.ts} +0 -0
  17. package/package.json +19 -23
  18. package/CHANGELOG.md +0 -32
  19. package/dist/cjs/bits.d.ts +0 -129
  20. package/dist/cjs/bits.js +0 -30
  21. package/dist/cjs/bits.js.map +0 -1
  22. package/dist/cjs/bitsSchema.js +0 -77
  23. package/dist/cjs/bitsSchema.js.map +0 -1
  24. package/dist/cjs/do.js +0 -85
  25. package/dist/cjs/do.js.map +0 -1
  26. package/dist/cjs/doSchema.js +0 -38
  27. package/dist/cjs/doSchema.js.map +0 -1
  28. package/dist/cjs/findLast.js +0 -13
  29. package/dist/cjs/findLast.js.map +0 -1
  30. package/dist/cjs/flow.d.ts +0 -163
  31. package/dist/cjs/flow.js +0 -98
  32. package/dist/cjs/flow.js.map +0 -1
  33. package/dist/cjs/flowSchema.d.ts +0 -2456
  34. package/dist/cjs/flowSchema.js +0 -251
  35. package/dist/cjs/flowSchema.js.map +0 -1
  36. package/dist/cjs/groupBy.js +0 -27
  37. package/dist/cjs/groupBy.js.map +0 -1
  38. package/dist/cjs/index.js +0 -24
  39. package/dist/cjs/index.js.map +0 -1
  40. package/dist/cjs/lerpColor.js +0 -9
  41. package/dist/cjs/lerpColor.js.map +0 -1
  42. package/dist/cjs/levenshtein.js +0 -88
  43. package/dist/cjs/levenshtein.js.map +0 -1
  44. package/dist/cjs/uuid.js +0 -16
  45. package/dist/cjs/uuid.js.map +0 -1
  46. package/dist/esm/bits.d.ts +0 -129
  47. package/dist/esm/bits.js +0 -19
  48. package/dist/esm/bits.js.map +0 -1
  49. package/dist/esm/bitsSchema.d.ts +0 -150
  50. package/dist/esm/bitsSchema.js +0 -55
  51. package/dist/esm/bitsSchema.js.map +0 -1
  52. package/dist/esm/do.d.ts +0 -37
  53. package/dist/esm/do.js +0 -62
  54. package/dist/esm/do.js.map +0 -1
  55. package/dist/esm/doSchema.d.ts +0 -1402
  56. package/dist/esm/doSchema.js +0 -23
  57. package/dist/esm/doSchema.js.map +0 -1
  58. package/dist/esm/findLast.d.ts +0 -1
  59. package/dist/esm/findLast.js +0 -9
  60. package/dist/esm/findLast.js.map +0 -1
  61. package/dist/esm/flow.d.ts +0 -163
  62. package/dist/esm/flow.js +0 -88
  63. package/dist/esm/flow.js.map +0 -1
  64. package/dist/esm/flowSchema.d.ts +0 -2456
  65. package/dist/esm/flowSchema.js +0 -199
  66. package/dist/esm/flowSchema.js.map +0 -1
  67. package/dist/esm/groupBy.d.ts +0 -1
  68. package/dist/esm/groupBy.js +0 -23
  69. package/dist/esm/groupBy.js.map +0 -1
  70. package/dist/esm/index.d.ts +0 -11
  71. package/dist/esm/index.js +0 -12
  72. package/dist/esm/index.js.map +0 -1
  73. package/dist/esm/lerpColor.d.ts +0 -1
  74. package/dist/esm/lerpColor.js +0 -5
  75. package/dist/esm/lerpColor.js.map +0 -1
  76. package/dist/esm/levenshtein.d.ts +0 -1
  77. package/dist/esm/levenshtein.js +0 -84
  78. package/dist/esm/levenshtein.js.map +0 -1
  79. package/dist/esm/uuid.d.ts +0 -1
  80. package/dist/esm/uuid.js +0 -12
  81. package/dist/esm/uuid.js.map +0 -1
  82. package/dist/types/bitsSchema.d.ts +0 -150
  83. package/dist/types/do.d.ts +0 -37
  84. package/dist/types/doSchema.d.ts +0 -1402
  85. package/dist/types/findLast.d.ts +0 -1
  86. package/dist/types/groupBy.d.ts +0 -1
  87. package/dist/types/index.d.ts +0 -11
  88. package/dist/types/lerpColor.d.ts +0 -1
  89. package/dist/types/levenshtein.d.ts +0 -1
  90. package/dist/types/uuid.d.ts +0 -1
@@ -1,2456 +0,0 @@
1
- import { z, ZodSchema } from "zod";
2
- import { AndCondition, Condition, EqualCondition, GreaterCondition, InCondition, LessCondition, OrCondition, PrimitiveCondition, TrueCondition } from "./flow";
3
- export declare const FlowCheckpointNodeSchema: z.ZodObject<z.extendShape<{
4
- id: z.ZodString;
5
- position: z.ZodObject<{
6
- x: z.ZodNumber;
7
- y: z.ZodNumber;
8
- }, "strip", z.ZodTypeAny, {
9
- x: number;
10
- y: number;
11
- }, {
12
- x: number;
13
- y: number;
14
- }>;
15
- }, {
16
- type: z.ZodLiteral<"checkpoint">;
17
- }>, "strip", z.ZodTypeAny, {
18
- id: string;
19
- type: "checkpoint";
20
- position: {
21
- x: number;
22
- y: number;
23
- };
24
- }, {
25
- id: string;
26
- type: "checkpoint";
27
- position: {
28
- x: number;
29
- y: number;
30
- };
31
- }>;
32
- export declare const FlowSynchronizeNodeSchema: z.ZodObject<z.extendShape<{
33
- id: z.ZodString;
34
- position: z.ZodObject<{
35
- x: z.ZodNumber;
36
- y: z.ZodNumber;
37
- }, "strip", z.ZodTypeAny, {
38
- x: number;
39
- y: number;
40
- }, {
41
- x: number;
42
- y: number;
43
- }>;
44
- }, {
45
- type: z.ZodLiteral<"synchronize">;
46
- }>, "strip", z.ZodTypeAny, {
47
- id: string;
48
- type: "synchronize";
49
- position: {
50
- x: number;
51
- y: number;
52
- };
53
- }, {
54
- id: string;
55
- type: "synchronize";
56
- position: {
57
- x: number;
58
- y: number;
59
- };
60
- }>;
61
- export declare const makeFlowTaskNodeSchema: (task: ZodSchema<Bitflow.Task>) => z.ZodObject<z.extendShape<{
62
- id: z.ZodString;
63
- position: z.ZodObject<{
64
- x: z.ZodNumber;
65
- y: z.ZodNumber;
66
- }, "strip", z.ZodTypeAny, {
67
- x: number;
68
- y: number;
69
- }, {
70
- x: number;
71
- y: number;
72
- }>;
73
- }, {
74
- type: z.ZodLiteral<"task">;
75
- data: z.ZodType<Bitflow.Task, z.ZodTypeDef, Bitflow.Task>;
76
- }>, "strip", z.ZodTypeAny, {
77
- id: string;
78
- type: "task";
79
- position: {
80
- x: number;
81
- y: number;
82
- };
83
- data: Bitflow.Task;
84
- }, {
85
- id: string;
86
- type: "task";
87
- position: {
88
- x: number;
89
- y: number;
90
- };
91
- data: Bitflow.Task;
92
- }>;
93
- export declare const makeFlowStartNodeSchema: (start: ZodSchema<Bitflow.Start>) => z.ZodObject<z.extendShape<{
94
- id: z.ZodString;
95
- position: z.ZodObject<{
96
- x: z.ZodNumber;
97
- y: z.ZodNumber;
98
- }, "strip", z.ZodTypeAny, {
99
- x: number;
100
- y: number;
101
- }, {
102
- x: number;
103
- y: number;
104
- }>;
105
- }, {
106
- type: z.ZodLiteral<"start">;
107
- data: z.ZodType<Bitflow.Start, z.ZodTypeDef, Bitflow.Start>;
108
- }>, "strip", z.ZodTypeAny, {
109
- id: string;
110
- type: "start";
111
- position: {
112
- x: number;
113
- y: number;
114
- };
115
- data: Bitflow.Start;
116
- }, {
117
- id: string;
118
- type: "start";
119
- position: {
120
- x: number;
121
- y: number;
122
- };
123
- data: Bitflow.Start;
124
- }>;
125
- export declare const makeFlowEndNodeSchema: (end: ZodSchema<Bitflow.End>) => z.ZodObject<z.extendShape<{
126
- id: z.ZodString;
127
- position: z.ZodObject<{
128
- x: z.ZodNumber;
129
- y: z.ZodNumber;
130
- }, "strip", z.ZodTypeAny, {
131
- x: number;
132
- y: number;
133
- }, {
134
- x: number;
135
- y: number;
136
- }>;
137
- }, {
138
- type: z.ZodLiteral<"end">;
139
- data: z.ZodType<Bitflow.End, z.ZodTypeDef, Bitflow.End>;
140
- }>, "strip", z.ZodTypeAny, {
141
- id: string;
142
- type: "end";
143
- position: {
144
- x: number;
145
- y: number;
146
- };
147
- data: Bitflow.End;
148
- }, {
149
- id: string;
150
- type: "end";
151
- position: {
152
- x: number;
153
- y: number;
154
- };
155
- data: Bitflow.End;
156
- }>;
157
- export declare const makeFlowInputNodeSchema: (input: ZodSchema<Bitflow.Input>) => z.ZodObject<z.extendShape<{
158
- id: z.ZodString;
159
- position: z.ZodObject<{
160
- x: z.ZodNumber;
161
- y: z.ZodNumber;
162
- }, "strip", z.ZodTypeAny, {
163
- x: number;
164
- y: number;
165
- }, {
166
- x: number;
167
- y: number;
168
- }>;
169
- }, {
170
- type: z.ZodLiteral<"input">;
171
- data: z.ZodType<Bitflow.Input, z.ZodTypeDef, Bitflow.Input>;
172
- }>, "strip", z.ZodTypeAny, {
173
- id: string;
174
- type: "input";
175
- position: {
176
- x: number;
177
- y: number;
178
- };
179
- data: Bitflow.Input;
180
- }, {
181
- id: string;
182
- type: "input";
183
- position: {
184
- x: number;
185
- y: number;
186
- };
187
- data: Bitflow.Input;
188
- }>;
189
- export declare const makeFlowTitleNodeSchema: (title: ZodSchema<Bitflow.Title>) => z.ZodObject<z.extendShape<{
190
- id: z.ZodString;
191
- position: z.ZodObject<{
192
- x: z.ZodNumber;
193
- y: z.ZodNumber;
194
- }, "strip", z.ZodTypeAny, {
195
- x: number;
196
- y: number;
197
- }, {
198
- x: number;
199
- y: number;
200
- }>;
201
- }, {
202
- type: z.ZodLiteral<"title">;
203
- data: z.ZodType<Bitflow.Title, z.ZodTypeDef, Bitflow.Title>;
204
- }>, "strip", z.ZodTypeAny, {
205
- id: string;
206
- type: "title";
207
- position: {
208
- x: number;
209
- y: number;
210
- };
211
- data: Bitflow.Title;
212
- }, {
213
- id: string;
214
- type: "title";
215
- position: {
216
- x: number;
217
- y: number;
218
- };
219
- data: Bitflow.Title;
220
- }>;
221
- export declare const EqualConditionSchema: ZodSchema<EqualCondition>;
222
- export declare const TrueConditionSchema: ZodSchema<TrueCondition>;
223
- export declare const GreaterConditionSchema: ZodSchema<GreaterCondition>;
224
- export declare const LessConditionSchema: ZodSchema<LessCondition>;
225
- export declare const InConditionSchema: ZodSchema<InCondition>;
226
- export declare const PrimitiveConditionSchema: ZodSchema<PrimitiveCondition>;
227
- export declare const AndConditionSchema: ZodSchema<AndCondition>;
228
- export declare const OrConditionSchema: ZodSchema<OrCondition>;
229
- export declare const ConditionSchema: ZodSchema<Condition>;
230
- export declare const SplitAnswerSchema: z.ZodObject<{
231
- condition: z.ZodType<Condition, z.ZodTypeDef, Condition>;
232
- }, "strip", z.ZodTypeAny, {
233
- condition: Condition;
234
- }, {
235
- condition: Condition;
236
- }>;
237
- export declare const FlowSplitAnswerNodeSchema: z.ZodObject<z.extendShape<{
238
- id: z.ZodString;
239
- position: z.ZodObject<{
240
- x: z.ZodNumber;
241
- y: z.ZodNumber;
242
- }, "strip", z.ZodTypeAny, {
243
- x: number;
244
- y: number;
245
- }, {
246
- x: number;
247
- y: number;
248
- }>;
249
- }, {
250
- type: z.ZodLiteral<"split-answer">;
251
- data: z.ZodObject<{
252
- condition: z.ZodType<Condition, z.ZodTypeDef, Condition>;
253
- }, "strip", z.ZodTypeAny, {
254
- condition: Condition;
255
- }, {
256
- condition: Condition;
257
- }>;
258
- }>, "strip", z.ZodTypeAny, {
259
- id: string;
260
- type: "split-answer";
261
- position: {
262
- x: number;
263
- y: number;
264
- };
265
- data: {
266
- condition: Condition;
267
- };
268
- }, {
269
- id: string;
270
- type: "split-answer";
271
- position: {
272
- x: number;
273
- y: number;
274
- };
275
- data: {
276
- condition: Condition;
277
- };
278
- }>;
279
- export declare const SplitResultSchema: z.ZodObject<{
280
- condition: z.ZodType<Condition, z.ZodTypeDef, Condition>;
281
- }, "strip", z.ZodTypeAny, {
282
- condition: Condition;
283
- }, {
284
- condition: Condition;
285
- }>;
286
- export declare const FlowSplitResultNodeSchema: z.ZodObject<z.extendShape<{
287
- id: z.ZodString;
288
- position: z.ZodObject<{
289
- x: z.ZodNumber;
290
- y: z.ZodNumber;
291
- }, "strip", z.ZodTypeAny, {
292
- x: number;
293
- y: number;
294
- }, {
295
- x: number;
296
- y: number;
297
- }>;
298
- }, {
299
- type: z.ZodLiteral<"split-result">;
300
- data: z.ZodObject<{
301
- condition: z.ZodType<Condition, z.ZodTypeDef, Condition>;
302
- }, "strip", z.ZodTypeAny, {
303
- condition: Condition;
304
- }, {
305
- condition: Condition;
306
- }>;
307
- }>, "strip", z.ZodTypeAny, {
308
- id: string;
309
- type: "split-result";
310
- position: {
311
- x: number;
312
- y: number;
313
- };
314
- data: {
315
- condition: Condition;
316
- };
317
- }, {
318
- id: string;
319
- type: "split-result";
320
- position: {
321
- x: number;
322
- y: number;
323
- };
324
- data: {
325
- condition: Condition;
326
- };
327
- }>;
328
- export declare const SplitPointsSchema: z.ZodObject<{
329
- points: z.ZodNumber;
330
- }, "strip", z.ZodTypeAny, {
331
- points: number;
332
- }, {
333
- points: number;
334
- }>;
335
- export declare const FlowSplitPointsNodeSchema: z.ZodObject<z.extendShape<{
336
- id: z.ZodString;
337
- position: z.ZodObject<{
338
- x: z.ZodNumber;
339
- y: z.ZodNumber;
340
- }, "strip", z.ZodTypeAny, {
341
- x: number;
342
- y: number;
343
- }, {
344
- x: number;
345
- y: number;
346
- }>;
347
- }, {
348
- type: z.ZodLiteral<"split-points">;
349
- data: z.ZodObject<{
350
- points: z.ZodNumber;
351
- }, "strip", z.ZodTypeAny, {
352
- points: number;
353
- }, {
354
- points: number;
355
- }>;
356
- }>, "strip", z.ZodTypeAny, {
357
- id: string;
358
- type: "split-points";
359
- position: {
360
- x: number;
361
- y: number;
362
- };
363
- data: {
364
- points: number;
365
- };
366
- }, {
367
- id: string;
368
- type: "split-points";
369
- position: {
370
- x: number;
371
- y: number;
372
- };
373
- data: {
374
- points: number;
375
- };
376
- }>;
377
- export declare const PortalInputSchema: z.ZodObject<{
378
- portal: z.ZodString;
379
- description: z.ZodString;
380
- }, "strip", z.ZodTypeAny, {
381
- description: string;
382
- portal: string;
383
- }, {
384
- description: string;
385
- portal: string;
386
- }>;
387
- export declare const PortalOutputSchema: z.ZodObject<{
388
- portal: z.ZodString;
389
- description: z.ZodString;
390
- }, "strip", z.ZodTypeAny, {
391
- description: string;
392
- portal: string;
393
- }, {
394
- description: string;
395
- portal: string;
396
- }>;
397
- export declare const FlowPortalInputNodeSchema: z.ZodObject<z.extendShape<{
398
- id: z.ZodString;
399
- position: z.ZodObject<{
400
- x: z.ZodNumber;
401
- y: z.ZodNumber;
402
- }, "strip", z.ZodTypeAny, {
403
- x: number;
404
- y: number;
405
- }, {
406
- x: number;
407
- y: number;
408
- }>;
409
- }, {
410
- type: z.ZodLiteral<"portal-input">;
411
- data: z.ZodObject<{
412
- portal: z.ZodString;
413
- description: z.ZodString;
414
- }, "strip", z.ZodTypeAny, {
415
- description: string;
416
- portal: string;
417
- }, {
418
- description: string;
419
- portal: string;
420
- }>;
421
- }>, "strip", z.ZodTypeAny, {
422
- id: string;
423
- type: "portal-input";
424
- position: {
425
- x: number;
426
- y: number;
427
- };
428
- data: {
429
- description: string;
430
- portal: string;
431
- };
432
- }, {
433
- id: string;
434
- type: "portal-input";
435
- position: {
436
- x: number;
437
- y: number;
438
- };
439
- data: {
440
- description: string;
441
- portal: string;
442
- };
443
- }>;
444
- export declare const FlowPortalOutputNodeSchema: z.ZodObject<z.extendShape<{
445
- id: z.ZodString;
446
- position: z.ZodObject<{
447
- x: z.ZodNumber;
448
- y: z.ZodNumber;
449
- }, "strip", z.ZodTypeAny, {
450
- x: number;
451
- y: number;
452
- }, {
453
- x: number;
454
- y: number;
455
- }>;
456
- }, {
457
- type: z.ZodLiteral<"portal-output">;
458
- data: z.ZodObject<{
459
- portal: z.ZodString;
460
- description: z.ZodString;
461
- }, "strip", z.ZodTypeAny, {
462
- description: string;
463
- portal: string;
464
- }, {
465
- description: string;
466
- portal: string;
467
- }>;
468
- }>, "strip", z.ZodTypeAny, {
469
- id: string;
470
- type: "portal-output";
471
- position: {
472
- x: number;
473
- y: number;
474
- };
475
- data: {
476
- description: string;
477
- portal: string;
478
- };
479
- }, {
480
- id: string;
481
- type: "portal-output";
482
- position: {
483
- x: number;
484
- y: number;
485
- };
486
- data: {
487
- description: string;
488
- portal: string;
489
- };
490
- }>;
491
- export declare const FlowSplitRandomNodeSchema: z.ZodObject<z.extendShape<{
492
- id: z.ZodString;
493
- position: z.ZodObject<{
494
- x: z.ZodNumber;
495
- y: z.ZodNumber;
496
- }, "strip", z.ZodTypeAny, {
497
- x: number;
498
- y: number;
499
- }, {
500
- x: number;
501
- y: number;
502
- }>;
503
- }, {
504
- type: z.ZodLiteral<"split-random">;
505
- }>, "strip", z.ZodTypeAny, {
506
- id: string;
507
- type: "split-random";
508
- position: {
509
- x: number;
510
- y: number;
511
- };
512
- }, {
513
- id: string;
514
- type: "split-random";
515
- position: {
516
- x: number;
517
- y: number;
518
- };
519
- }>;
520
- export declare const ControlFlowNodeSchema: z.ZodUnion<[z.ZodObject<z.extendShape<{
521
- id: z.ZodString;
522
- position: z.ZodObject<{
523
- x: z.ZodNumber;
524
- y: z.ZodNumber;
525
- }, "strip", z.ZodTypeAny, {
526
- x: number;
527
- y: number;
528
- }, {
529
- x: number;
530
- y: number;
531
- }>;
532
- }, {
533
- type: z.ZodLiteral<"split-answer">;
534
- data: z.ZodObject<{
535
- condition: z.ZodType<Condition, z.ZodTypeDef, Condition>;
536
- }, "strip", z.ZodTypeAny, {
537
- condition: Condition;
538
- }, {
539
- condition: Condition;
540
- }>;
541
- }>, "strip", z.ZodTypeAny, {
542
- id: string;
543
- type: "split-answer";
544
- position: {
545
- x: number;
546
- y: number;
547
- };
548
- data: {
549
- condition: Condition;
550
- };
551
- }, {
552
- id: string;
553
- type: "split-answer";
554
- position: {
555
- x: number;
556
- y: number;
557
- };
558
- data: {
559
- condition: Condition;
560
- };
561
- }>, z.ZodObject<z.extendShape<{
562
- id: z.ZodString;
563
- position: z.ZodObject<{
564
- x: z.ZodNumber;
565
- y: z.ZodNumber;
566
- }, "strip", z.ZodTypeAny, {
567
- x: number;
568
- y: number;
569
- }, {
570
- x: number;
571
- y: number;
572
- }>;
573
- }, {
574
- type: z.ZodLiteral<"split-result">;
575
- data: z.ZodObject<{
576
- condition: z.ZodType<Condition, z.ZodTypeDef, Condition>;
577
- }, "strip", z.ZodTypeAny, {
578
- condition: Condition;
579
- }, {
580
- condition: Condition;
581
- }>;
582
- }>, "strip", z.ZodTypeAny, {
583
- id: string;
584
- type: "split-result";
585
- position: {
586
- x: number;
587
- y: number;
588
- };
589
- data: {
590
- condition: Condition;
591
- };
592
- }, {
593
- id: string;
594
- type: "split-result";
595
- position: {
596
- x: number;
597
- y: number;
598
- };
599
- data: {
600
- condition: Condition;
601
- };
602
- }>, z.ZodObject<z.extendShape<{
603
- id: z.ZodString;
604
- position: z.ZodObject<{
605
- x: z.ZodNumber;
606
- y: z.ZodNumber;
607
- }, "strip", z.ZodTypeAny, {
608
- x: number;
609
- y: number;
610
- }, {
611
- x: number;
612
- y: number;
613
- }>;
614
- }, {
615
- type: z.ZodLiteral<"split-points">;
616
- data: z.ZodObject<{
617
- points: z.ZodNumber;
618
- }, "strip", z.ZodTypeAny, {
619
- points: number;
620
- }, {
621
- points: number;
622
- }>;
623
- }>, "strip", z.ZodTypeAny, {
624
- id: string;
625
- type: "split-points";
626
- position: {
627
- x: number;
628
- y: number;
629
- };
630
- data: {
631
- points: number;
632
- };
633
- }, {
634
- id: string;
635
- type: "split-points";
636
- position: {
637
- x: number;
638
- y: number;
639
- };
640
- data: {
641
- points: number;
642
- };
643
- }>, z.ZodObject<z.extendShape<{
644
- id: z.ZodString;
645
- position: z.ZodObject<{
646
- x: z.ZodNumber;
647
- y: z.ZodNumber;
648
- }, "strip", z.ZodTypeAny, {
649
- x: number;
650
- y: number;
651
- }, {
652
- x: number;
653
- y: number;
654
- }>;
655
- }, {
656
- type: z.ZodLiteral<"split-random">;
657
- }>, "strip", z.ZodTypeAny, {
658
- id: string;
659
- type: "split-random";
660
- position: {
661
- x: number;
662
- y: number;
663
- };
664
- }, {
665
- id: string;
666
- type: "split-random";
667
- position: {
668
- x: number;
669
- y: number;
670
- };
671
- }>, z.ZodObject<z.extendShape<{
672
- id: z.ZodString;
673
- position: z.ZodObject<{
674
- x: z.ZodNumber;
675
- y: z.ZodNumber;
676
- }, "strip", z.ZodTypeAny, {
677
- x: number;
678
- y: number;
679
- }, {
680
- x: number;
681
- y: number;
682
- }>;
683
- }, {
684
- type: z.ZodLiteral<"portal-input">;
685
- data: z.ZodObject<{
686
- portal: z.ZodString;
687
- description: z.ZodString;
688
- }, "strip", z.ZodTypeAny, {
689
- description: string;
690
- portal: string;
691
- }, {
692
- description: string;
693
- portal: string;
694
- }>;
695
- }>, "strip", z.ZodTypeAny, {
696
- id: string;
697
- type: "portal-input";
698
- position: {
699
- x: number;
700
- y: number;
701
- };
702
- data: {
703
- description: string;
704
- portal: string;
705
- };
706
- }, {
707
- id: string;
708
- type: "portal-input";
709
- position: {
710
- x: number;
711
- y: number;
712
- };
713
- data: {
714
- description: string;
715
- portal: string;
716
- };
717
- }>, z.ZodObject<z.extendShape<{
718
- id: z.ZodString;
719
- position: z.ZodObject<{
720
- x: z.ZodNumber;
721
- y: z.ZodNumber;
722
- }, "strip", z.ZodTypeAny, {
723
- x: number;
724
- y: number;
725
- }, {
726
- x: number;
727
- y: number;
728
- }>;
729
- }, {
730
- type: z.ZodLiteral<"portal-output">;
731
- data: z.ZodObject<{
732
- portal: z.ZodString;
733
- description: z.ZodString;
734
- }, "strip", z.ZodTypeAny, {
735
- description: string;
736
- portal: string;
737
- }, {
738
- description: string;
739
- portal: string;
740
- }>;
741
- }>, "strip", z.ZodTypeAny, {
742
- id: string;
743
- type: "portal-output";
744
- position: {
745
- x: number;
746
- y: number;
747
- };
748
- data: {
749
- description: string;
750
- portal: string;
751
- };
752
- }, {
753
- id: string;
754
- type: "portal-output";
755
- position: {
756
- x: number;
757
- y: number;
758
- };
759
- data: {
760
- description: string;
761
- portal: string;
762
- };
763
- }>]>;
764
- export declare const makeInteractiveFlowNodeSchema: ({ start, end, input, title, task, }: {
765
- start: ZodSchema<Bitflow.Start>;
766
- end: ZodSchema<Bitflow.End>;
767
- input: ZodSchema<Bitflow.Input>;
768
- title: ZodSchema<Bitflow.Title>;
769
- task: ZodSchema<Bitflow.Task>;
770
- }) => z.ZodUnion<[z.ZodObject<z.extendShape<{
771
- id: z.ZodString;
772
- position: z.ZodObject<{
773
- x: z.ZodNumber;
774
- y: z.ZodNumber;
775
- }, "strip", z.ZodTypeAny, {
776
- x: number;
777
- y: number;
778
- }, {
779
- x: number;
780
- y: number;
781
- }>;
782
- }, {
783
- type: z.ZodLiteral<"start">;
784
- data: z.ZodType<Bitflow.Start, z.ZodTypeDef, Bitflow.Start>;
785
- }>, "strip", z.ZodTypeAny, {
786
- id: string;
787
- type: "start";
788
- position: {
789
- x: number;
790
- y: number;
791
- };
792
- data: Bitflow.Start;
793
- }, {
794
- id: string;
795
- type: "start";
796
- position: {
797
- x: number;
798
- y: number;
799
- };
800
- data: Bitflow.Start;
801
- }>, z.ZodObject<z.extendShape<{
802
- id: z.ZodString;
803
- position: z.ZodObject<{
804
- x: z.ZodNumber;
805
- y: z.ZodNumber;
806
- }, "strip", z.ZodTypeAny, {
807
- x: number;
808
- y: number;
809
- }, {
810
- x: number;
811
- y: number;
812
- }>;
813
- }, {
814
- type: z.ZodLiteral<"end">;
815
- data: z.ZodType<Bitflow.End, z.ZodTypeDef, Bitflow.End>;
816
- }>, "strip", z.ZodTypeAny, {
817
- id: string;
818
- type: "end";
819
- position: {
820
- x: number;
821
- y: number;
822
- };
823
- data: Bitflow.End;
824
- }, {
825
- id: string;
826
- type: "end";
827
- position: {
828
- x: number;
829
- y: number;
830
- };
831
- data: Bitflow.End;
832
- }>, z.ZodObject<z.extendShape<{
833
- id: z.ZodString;
834
- position: z.ZodObject<{
835
- x: z.ZodNumber;
836
- y: z.ZodNumber;
837
- }, "strip", z.ZodTypeAny, {
838
- x: number;
839
- y: number;
840
- }, {
841
- x: number;
842
- y: number;
843
- }>;
844
- }, {
845
- type: z.ZodLiteral<"input">;
846
- data: z.ZodType<Bitflow.Input, z.ZodTypeDef, Bitflow.Input>;
847
- }>, "strip", z.ZodTypeAny, {
848
- id: string;
849
- type: "input";
850
- position: {
851
- x: number;
852
- y: number;
853
- };
854
- data: Bitflow.Input;
855
- }, {
856
- id: string;
857
- type: "input";
858
- position: {
859
- x: number;
860
- y: number;
861
- };
862
- data: Bitflow.Input;
863
- }>, z.ZodObject<z.extendShape<{
864
- id: z.ZodString;
865
- position: z.ZodObject<{
866
- x: z.ZodNumber;
867
- y: z.ZodNumber;
868
- }, "strip", z.ZodTypeAny, {
869
- x: number;
870
- y: number;
871
- }, {
872
- x: number;
873
- y: number;
874
- }>;
875
- }, {
876
- type: z.ZodLiteral<"task">;
877
- data: z.ZodType<Bitflow.Task, z.ZodTypeDef, Bitflow.Task>;
878
- }>, "strip", z.ZodTypeAny, {
879
- id: string;
880
- type: "task";
881
- position: {
882
- x: number;
883
- y: number;
884
- };
885
- data: Bitflow.Task;
886
- }, {
887
- id: string;
888
- type: "task";
889
- position: {
890
- x: number;
891
- y: number;
892
- };
893
- data: Bitflow.Task;
894
- }>, z.ZodObject<z.extendShape<{
895
- id: z.ZodString;
896
- position: z.ZodObject<{
897
- x: z.ZodNumber;
898
- y: z.ZodNumber;
899
- }, "strip", z.ZodTypeAny, {
900
- x: number;
901
- y: number;
902
- }, {
903
- x: number;
904
- y: number;
905
- }>;
906
- }, {
907
- type: z.ZodLiteral<"title">;
908
- data: z.ZodType<Bitflow.Title, z.ZodTypeDef, Bitflow.Title>;
909
- }>, "strip", z.ZodTypeAny, {
910
- id: string;
911
- type: "title";
912
- position: {
913
- x: number;
914
- y: number;
915
- };
916
- data: Bitflow.Title;
917
- }, {
918
- id: string;
919
- type: "title";
920
- position: {
921
- x: number;
922
- y: number;
923
- };
924
- data: Bitflow.Title;
925
- }>, z.ZodObject<z.extendShape<{
926
- id: z.ZodString;
927
- position: z.ZodObject<{
928
- x: z.ZodNumber;
929
- y: z.ZodNumber;
930
- }, "strip", z.ZodTypeAny, {
931
- x: number;
932
- y: number;
933
- }, {
934
- x: number;
935
- y: number;
936
- }>;
937
- }, {
938
- type: z.ZodLiteral<"synchronize">;
939
- }>, "strip", z.ZodTypeAny, {
940
- id: string;
941
- type: "synchronize";
942
- position: {
943
- x: number;
944
- y: number;
945
- };
946
- }, {
947
- id: string;
948
- type: "synchronize";
949
- position: {
950
- x: number;
951
- y: number;
952
- };
953
- }>, z.ZodObject<z.extendShape<{
954
- id: z.ZodString;
955
- position: z.ZodObject<{
956
- x: z.ZodNumber;
957
- y: z.ZodNumber;
958
- }, "strip", z.ZodTypeAny, {
959
- x: number;
960
- y: number;
961
- }, {
962
- x: number;
963
- y: number;
964
- }>;
965
- }, {
966
- type: z.ZodLiteral<"checkpoint">;
967
- }>, "strip", z.ZodTypeAny, {
968
- id: string;
969
- type: "checkpoint";
970
- position: {
971
- x: number;
972
- y: number;
973
- };
974
- }, {
975
- id: string;
976
- type: "checkpoint";
977
- position: {
978
- x: number;
979
- y: number;
980
- };
981
- }>]>;
982
- export declare const FlowEdgeSchema: z.ZodObject<{
983
- id: z.ZodString;
984
- source: z.ZodString;
985
- sourceHandle: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"a">, z.ZodLiteral<"b">, z.ZodLiteral<"c">, z.ZodLiteral<"d">, z.ZodLiteral<"e">, z.ZodLiteral<"f">]>>;
986
- target: z.ZodString;
987
- }, "strip", z.ZodTypeAny, {
988
- sourceHandle?: "a" | "b" | "c" | "d" | "e" | "f" | undefined;
989
- id: string;
990
- source: string;
991
- target: string;
992
- }, {
993
- sourceHandle?: "a" | "b" | "c" | "d" | "e" | "f" | undefined;
994
- id: string;
995
- source: string;
996
- target: string;
997
- }>;
998
- export declare const makeFlowNodeSchema: ({ end, input, start, task, title, }: {
999
- start: ZodSchema<Bitflow.Start>;
1000
- end: ZodSchema<Bitflow.End>;
1001
- input: ZodSchema<Bitflow.Input>;
1002
- title: ZodSchema<Bitflow.Title>;
1003
- task: ZodSchema<Bitflow.Task>;
1004
- }) => z.ZodUnion<[z.ZodObject<z.extendShape<{
1005
- id: z.ZodString;
1006
- position: z.ZodObject<{
1007
- x: z.ZodNumber;
1008
- y: z.ZodNumber;
1009
- }, "strip", z.ZodTypeAny, {
1010
- x: number;
1011
- y: number;
1012
- }, {
1013
- x: number;
1014
- y: number;
1015
- }>;
1016
- }, {
1017
- type: z.ZodLiteral<"split-answer">;
1018
- data: z.ZodObject<{
1019
- condition: z.ZodType<Condition, z.ZodTypeDef, Condition>;
1020
- }, "strip", z.ZodTypeAny, {
1021
- condition: Condition;
1022
- }, {
1023
- condition: Condition;
1024
- }>;
1025
- }>, "strip", z.ZodTypeAny, {
1026
- id: string;
1027
- type: "split-answer";
1028
- position: {
1029
- x: number;
1030
- y: number;
1031
- };
1032
- data: {
1033
- condition: Condition;
1034
- };
1035
- }, {
1036
- id: string;
1037
- type: "split-answer";
1038
- position: {
1039
- x: number;
1040
- y: number;
1041
- };
1042
- data: {
1043
- condition: Condition;
1044
- };
1045
- }>, z.ZodObject<z.extendShape<{
1046
- id: z.ZodString;
1047
- position: z.ZodObject<{
1048
- x: z.ZodNumber;
1049
- y: z.ZodNumber;
1050
- }, "strip", z.ZodTypeAny, {
1051
- x: number;
1052
- y: number;
1053
- }, {
1054
- x: number;
1055
- y: number;
1056
- }>;
1057
- }, {
1058
- type: z.ZodLiteral<"split-result">;
1059
- data: z.ZodObject<{
1060
- condition: z.ZodType<Condition, z.ZodTypeDef, Condition>;
1061
- }, "strip", z.ZodTypeAny, {
1062
- condition: Condition;
1063
- }, {
1064
- condition: Condition;
1065
- }>;
1066
- }>, "strip", z.ZodTypeAny, {
1067
- id: string;
1068
- type: "split-result";
1069
- position: {
1070
- x: number;
1071
- y: number;
1072
- };
1073
- data: {
1074
- condition: Condition;
1075
- };
1076
- }, {
1077
- id: string;
1078
- type: "split-result";
1079
- position: {
1080
- x: number;
1081
- y: number;
1082
- };
1083
- data: {
1084
- condition: Condition;
1085
- };
1086
- }>, z.ZodObject<z.extendShape<{
1087
- id: z.ZodString;
1088
- position: z.ZodObject<{
1089
- x: z.ZodNumber;
1090
- y: z.ZodNumber;
1091
- }, "strip", z.ZodTypeAny, {
1092
- x: number;
1093
- y: number;
1094
- }, {
1095
- x: number;
1096
- y: number;
1097
- }>;
1098
- }, {
1099
- type: z.ZodLiteral<"split-points">;
1100
- data: z.ZodObject<{
1101
- points: z.ZodNumber;
1102
- }, "strip", z.ZodTypeAny, {
1103
- points: number;
1104
- }, {
1105
- points: number;
1106
- }>;
1107
- }>, "strip", z.ZodTypeAny, {
1108
- id: string;
1109
- type: "split-points";
1110
- position: {
1111
- x: number;
1112
- y: number;
1113
- };
1114
- data: {
1115
- points: number;
1116
- };
1117
- }, {
1118
- id: string;
1119
- type: "split-points";
1120
- position: {
1121
- x: number;
1122
- y: number;
1123
- };
1124
- data: {
1125
- points: number;
1126
- };
1127
- }>, z.ZodObject<z.extendShape<{
1128
- id: z.ZodString;
1129
- position: z.ZodObject<{
1130
- x: z.ZodNumber;
1131
- y: z.ZodNumber;
1132
- }, "strip", z.ZodTypeAny, {
1133
- x: number;
1134
- y: number;
1135
- }, {
1136
- x: number;
1137
- y: number;
1138
- }>;
1139
- }, {
1140
- type: z.ZodLiteral<"split-random">;
1141
- }>, "strip", z.ZodTypeAny, {
1142
- id: string;
1143
- type: "split-random";
1144
- position: {
1145
- x: number;
1146
- y: number;
1147
- };
1148
- }, {
1149
- id: string;
1150
- type: "split-random";
1151
- position: {
1152
- x: number;
1153
- y: number;
1154
- };
1155
- }>, z.ZodObject<z.extendShape<{
1156
- id: z.ZodString;
1157
- position: z.ZodObject<{
1158
- x: z.ZodNumber;
1159
- y: z.ZodNumber;
1160
- }, "strip", z.ZodTypeAny, {
1161
- x: number;
1162
- y: number;
1163
- }, {
1164
- x: number;
1165
- y: number;
1166
- }>;
1167
- }, {
1168
- type: z.ZodLiteral<"portal-input">;
1169
- data: z.ZodObject<{
1170
- portal: z.ZodString;
1171
- description: z.ZodString;
1172
- }, "strip", z.ZodTypeAny, {
1173
- description: string;
1174
- portal: string;
1175
- }, {
1176
- description: string;
1177
- portal: string;
1178
- }>;
1179
- }>, "strip", z.ZodTypeAny, {
1180
- id: string;
1181
- type: "portal-input";
1182
- position: {
1183
- x: number;
1184
- y: number;
1185
- };
1186
- data: {
1187
- description: string;
1188
- portal: string;
1189
- };
1190
- }, {
1191
- id: string;
1192
- type: "portal-input";
1193
- position: {
1194
- x: number;
1195
- y: number;
1196
- };
1197
- data: {
1198
- description: string;
1199
- portal: string;
1200
- };
1201
- }>, z.ZodObject<z.extendShape<{
1202
- id: z.ZodString;
1203
- position: z.ZodObject<{
1204
- x: z.ZodNumber;
1205
- y: z.ZodNumber;
1206
- }, "strip", z.ZodTypeAny, {
1207
- x: number;
1208
- y: number;
1209
- }, {
1210
- x: number;
1211
- y: number;
1212
- }>;
1213
- }, {
1214
- type: z.ZodLiteral<"portal-output">;
1215
- data: z.ZodObject<{
1216
- portal: z.ZodString;
1217
- description: z.ZodString;
1218
- }, "strip", z.ZodTypeAny, {
1219
- description: string;
1220
- portal: string;
1221
- }, {
1222
- description: string;
1223
- portal: string;
1224
- }>;
1225
- }>, "strip", z.ZodTypeAny, {
1226
- id: string;
1227
- type: "portal-output";
1228
- position: {
1229
- x: number;
1230
- y: number;
1231
- };
1232
- data: {
1233
- description: string;
1234
- portal: string;
1235
- };
1236
- }, {
1237
- id: string;
1238
- type: "portal-output";
1239
- position: {
1240
- x: number;
1241
- y: number;
1242
- };
1243
- data: {
1244
- description: string;
1245
- portal: string;
1246
- };
1247
- }>, z.ZodObject<z.extendShape<{
1248
- id: z.ZodString;
1249
- position: z.ZodObject<{
1250
- x: z.ZodNumber;
1251
- y: z.ZodNumber;
1252
- }, "strip", z.ZodTypeAny, {
1253
- x: number;
1254
- y: number;
1255
- }, {
1256
- x: number;
1257
- y: number;
1258
- }>;
1259
- }, {
1260
- type: z.ZodLiteral<"checkpoint">;
1261
- }>, "strip", z.ZodTypeAny, {
1262
- id: string;
1263
- type: "checkpoint";
1264
- position: {
1265
- x: number;
1266
- y: number;
1267
- };
1268
- }, {
1269
- id: string;
1270
- type: "checkpoint";
1271
- position: {
1272
- x: number;
1273
- y: number;
1274
- };
1275
- }>, z.ZodObject<z.extendShape<{
1276
- id: z.ZodString;
1277
- position: z.ZodObject<{
1278
- x: z.ZodNumber;
1279
- y: z.ZodNumber;
1280
- }, "strip", z.ZodTypeAny, {
1281
- x: number;
1282
- y: number;
1283
- }, {
1284
- x: number;
1285
- y: number;
1286
- }>;
1287
- }, {
1288
- type: z.ZodLiteral<"synchronize">;
1289
- }>, "strip", z.ZodTypeAny, {
1290
- id: string;
1291
- type: "synchronize";
1292
- position: {
1293
- x: number;
1294
- y: number;
1295
- };
1296
- }, {
1297
- id: string;
1298
- type: "synchronize";
1299
- position: {
1300
- x: number;
1301
- y: number;
1302
- };
1303
- }>, z.ZodObject<z.extendShape<{
1304
- id: z.ZodString;
1305
- position: z.ZodObject<{
1306
- x: z.ZodNumber;
1307
- y: z.ZodNumber;
1308
- }, "strip", z.ZodTypeAny, {
1309
- x: number;
1310
- y: number;
1311
- }, {
1312
- x: number;
1313
- y: number;
1314
- }>;
1315
- }, {
1316
- type: z.ZodLiteral<"end">;
1317
- data: z.ZodType<Bitflow.End, z.ZodTypeDef, Bitflow.End>;
1318
- }>, "strip", z.ZodTypeAny, {
1319
- id: string;
1320
- type: "end";
1321
- position: {
1322
- x: number;
1323
- y: number;
1324
- };
1325
- data: Bitflow.End;
1326
- }, {
1327
- id: string;
1328
- type: "end";
1329
- position: {
1330
- x: number;
1331
- y: number;
1332
- };
1333
- data: Bitflow.End;
1334
- }>, z.ZodObject<z.extendShape<{
1335
- id: z.ZodString;
1336
- position: z.ZodObject<{
1337
- x: z.ZodNumber;
1338
- y: z.ZodNumber;
1339
- }, "strip", z.ZodTypeAny, {
1340
- x: number;
1341
- y: number;
1342
- }, {
1343
- x: number;
1344
- y: number;
1345
- }>;
1346
- }, {
1347
- type: z.ZodLiteral<"input">;
1348
- data: z.ZodType<Bitflow.Input, z.ZodTypeDef, Bitflow.Input>;
1349
- }>, "strip", z.ZodTypeAny, {
1350
- id: string;
1351
- type: "input";
1352
- position: {
1353
- x: number;
1354
- y: number;
1355
- };
1356
- data: Bitflow.Input;
1357
- }, {
1358
- id: string;
1359
- type: "input";
1360
- position: {
1361
- x: number;
1362
- y: number;
1363
- };
1364
- data: Bitflow.Input;
1365
- }>, z.ZodObject<z.extendShape<{
1366
- id: z.ZodString;
1367
- position: z.ZodObject<{
1368
- x: z.ZodNumber;
1369
- y: z.ZodNumber;
1370
- }, "strip", z.ZodTypeAny, {
1371
- x: number;
1372
- y: number;
1373
- }, {
1374
- x: number;
1375
- y: number;
1376
- }>;
1377
- }, {
1378
- type: z.ZodLiteral<"start">;
1379
- data: z.ZodType<Bitflow.Start, z.ZodTypeDef, Bitflow.Start>;
1380
- }>, "strip", z.ZodTypeAny, {
1381
- id: string;
1382
- type: "start";
1383
- position: {
1384
- x: number;
1385
- y: number;
1386
- };
1387
- data: Bitflow.Start;
1388
- }, {
1389
- id: string;
1390
- type: "start";
1391
- position: {
1392
- x: number;
1393
- y: number;
1394
- };
1395
- data: Bitflow.Start;
1396
- }>, z.ZodObject<z.extendShape<{
1397
- id: z.ZodString;
1398
- position: z.ZodObject<{
1399
- x: z.ZodNumber;
1400
- y: z.ZodNumber;
1401
- }, "strip", z.ZodTypeAny, {
1402
- x: number;
1403
- y: number;
1404
- }, {
1405
- x: number;
1406
- y: number;
1407
- }>;
1408
- }, {
1409
- type: z.ZodLiteral<"task">;
1410
- data: z.ZodType<Bitflow.Task, z.ZodTypeDef, Bitflow.Task>;
1411
- }>, "strip", z.ZodTypeAny, {
1412
- id: string;
1413
- type: "task";
1414
- position: {
1415
- x: number;
1416
- y: number;
1417
- };
1418
- data: Bitflow.Task;
1419
- }, {
1420
- id: string;
1421
- type: "task";
1422
- position: {
1423
- x: number;
1424
- y: number;
1425
- };
1426
- data: Bitflow.Task;
1427
- }>, z.ZodObject<z.extendShape<{
1428
- id: z.ZodString;
1429
- position: z.ZodObject<{
1430
- x: z.ZodNumber;
1431
- y: z.ZodNumber;
1432
- }, "strip", z.ZodTypeAny, {
1433
- x: number;
1434
- y: number;
1435
- }, {
1436
- x: number;
1437
- y: number;
1438
- }>;
1439
- }, {
1440
- type: z.ZodLiteral<"title">;
1441
- data: z.ZodType<Bitflow.Title, z.ZodTypeDef, Bitflow.Title>;
1442
- }>, "strip", z.ZodTypeAny, {
1443
- id: string;
1444
- type: "title";
1445
- position: {
1446
- x: number;
1447
- y: number;
1448
- };
1449
- data: Bitflow.Title;
1450
- }, {
1451
- id: string;
1452
- type: "title";
1453
- position: {
1454
- x: number;
1455
- y: number;
1456
- };
1457
- data: Bitflow.Title;
1458
- }>]>;
1459
- export declare const makeFlowSchema: ({ end, input, start, task, title, }: {
1460
- start: ZodSchema<Bitflow.Start>;
1461
- end: ZodSchema<Bitflow.End>;
1462
- input: ZodSchema<Bitflow.Input>;
1463
- title: ZodSchema<Bitflow.Title>;
1464
- task: ZodSchema<Bitflow.Task>;
1465
- }) => z.ZodEffects<z.ZodObject<{
1466
- name: z.ZodString;
1467
- description: z.ZodString;
1468
- language: z.ZodEnum<["en", "de", "fr", "es", "nl", "pt", "tr", "it"]>;
1469
- visibility: z.ZodEnum<["public", "private", "unlisted"]>;
1470
- draft: z.ZodBoolean;
1471
- nodes: z.ZodArray<z.ZodUnion<[z.ZodObject<z.extendShape<{
1472
- id: z.ZodString;
1473
- position: z.ZodObject<{
1474
- x: z.ZodNumber;
1475
- y: z.ZodNumber;
1476
- }, "strip", z.ZodTypeAny, {
1477
- x: number;
1478
- y: number;
1479
- }, {
1480
- x: number;
1481
- y: number;
1482
- }>;
1483
- }, {
1484
- type: z.ZodLiteral<"split-answer">;
1485
- data: z.ZodObject<{
1486
- condition: z.ZodType<Condition, z.ZodTypeDef, Condition>;
1487
- }, "strip", z.ZodTypeAny, {
1488
- condition: Condition;
1489
- }, {
1490
- condition: Condition;
1491
- }>;
1492
- }>, "strip", z.ZodTypeAny, {
1493
- id: string;
1494
- type: "split-answer";
1495
- position: {
1496
- x: number;
1497
- y: number;
1498
- };
1499
- data: {
1500
- condition: Condition;
1501
- };
1502
- }, {
1503
- id: string;
1504
- type: "split-answer";
1505
- position: {
1506
- x: number;
1507
- y: number;
1508
- };
1509
- data: {
1510
- condition: Condition;
1511
- };
1512
- }>, z.ZodObject<z.extendShape<{
1513
- id: z.ZodString;
1514
- position: z.ZodObject<{
1515
- x: z.ZodNumber;
1516
- y: z.ZodNumber;
1517
- }, "strip", z.ZodTypeAny, {
1518
- x: number;
1519
- y: number;
1520
- }, {
1521
- x: number;
1522
- y: number;
1523
- }>;
1524
- }, {
1525
- type: z.ZodLiteral<"split-result">;
1526
- data: z.ZodObject<{
1527
- condition: z.ZodType<Condition, z.ZodTypeDef, Condition>;
1528
- }, "strip", z.ZodTypeAny, {
1529
- condition: Condition;
1530
- }, {
1531
- condition: Condition;
1532
- }>;
1533
- }>, "strip", z.ZodTypeAny, {
1534
- id: string;
1535
- type: "split-result";
1536
- position: {
1537
- x: number;
1538
- y: number;
1539
- };
1540
- data: {
1541
- condition: Condition;
1542
- };
1543
- }, {
1544
- id: string;
1545
- type: "split-result";
1546
- position: {
1547
- x: number;
1548
- y: number;
1549
- };
1550
- data: {
1551
- condition: Condition;
1552
- };
1553
- }>, z.ZodObject<z.extendShape<{
1554
- id: z.ZodString;
1555
- position: z.ZodObject<{
1556
- x: z.ZodNumber;
1557
- y: z.ZodNumber;
1558
- }, "strip", z.ZodTypeAny, {
1559
- x: number;
1560
- y: number;
1561
- }, {
1562
- x: number;
1563
- y: number;
1564
- }>;
1565
- }, {
1566
- type: z.ZodLiteral<"split-points">;
1567
- data: z.ZodObject<{
1568
- points: z.ZodNumber;
1569
- }, "strip", z.ZodTypeAny, {
1570
- points: number;
1571
- }, {
1572
- points: number;
1573
- }>;
1574
- }>, "strip", z.ZodTypeAny, {
1575
- id: string;
1576
- type: "split-points";
1577
- position: {
1578
- x: number;
1579
- y: number;
1580
- };
1581
- data: {
1582
- points: number;
1583
- };
1584
- }, {
1585
- id: string;
1586
- type: "split-points";
1587
- position: {
1588
- x: number;
1589
- y: number;
1590
- };
1591
- data: {
1592
- points: number;
1593
- };
1594
- }>, z.ZodObject<z.extendShape<{
1595
- id: z.ZodString;
1596
- position: z.ZodObject<{
1597
- x: z.ZodNumber;
1598
- y: z.ZodNumber;
1599
- }, "strip", z.ZodTypeAny, {
1600
- x: number;
1601
- y: number;
1602
- }, {
1603
- x: number;
1604
- y: number;
1605
- }>;
1606
- }, {
1607
- type: z.ZodLiteral<"split-random">;
1608
- }>, "strip", z.ZodTypeAny, {
1609
- id: string;
1610
- type: "split-random";
1611
- position: {
1612
- x: number;
1613
- y: number;
1614
- };
1615
- }, {
1616
- id: string;
1617
- type: "split-random";
1618
- position: {
1619
- x: number;
1620
- y: number;
1621
- };
1622
- }>, z.ZodObject<z.extendShape<{
1623
- id: z.ZodString;
1624
- position: z.ZodObject<{
1625
- x: z.ZodNumber;
1626
- y: z.ZodNumber;
1627
- }, "strip", z.ZodTypeAny, {
1628
- x: number;
1629
- y: number;
1630
- }, {
1631
- x: number;
1632
- y: number;
1633
- }>;
1634
- }, {
1635
- type: z.ZodLiteral<"portal-input">;
1636
- data: z.ZodObject<{
1637
- portal: z.ZodString;
1638
- description: z.ZodString;
1639
- }, "strip", z.ZodTypeAny, {
1640
- description: string;
1641
- portal: string;
1642
- }, {
1643
- description: string;
1644
- portal: string;
1645
- }>;
1646
- }>, "strip", z.ZodTypeAny, {
1647
- id: string;
1648
- type: "portal-input";
1649
- position: {
1650
- x: number;
1651
- y: number;
1652
- };
1653
- data: {
1654
- description: string;
1655
- portal: string;
1656
- };
1657
- }, {
1658
- id: string;
1659
- type: "portal-input";
1660
- position: {
1661
- x: number;
1662
- y: number;
1663
- };
1664
- data: {
1665
- description: string;
1666
- portal: string;
1667
- };
1668
- }>, z.ZodObject<z.extendShape<{
1669
- id: z.ZodString;
1670
- position: z.ZodObject<{
1671
- x: z.ZodNumber;
1672
- y: z.ZodNumber;
1673
- }, "strip", z.ZodTypeAny, {
1674
- x: number;
1675
- y: number;
1676
- }, {
1677
- x: number;
1678
- y: number;
1679
- }>;
1680
- }, {
1681
- type: z.ZodLiteral<"portal-output">;
1682
- data: z.ZodObject<{
1683
- portal: z.ZodString;
1684
- description: z.ZodString;
1685
- }, "strip", z.ZodTypeAny, {
1686
- description: string;
1687
- portal: string;
1688
- }, {
1689
- description: string;
1690
- portal: string;
1691
- }>;
1692
- }>, "strip", z.ZodTypeAny, {
1693
- id: string;
1694
- type: "portal-output";
1695
- position: {
1696
- x: number;
1697
- y: number;
1698
- };
1699
- data: {
1700
- description: string;
1701
- portal: string;
1702
- };
1703
- }, {
1704
- id: string;
1705
- type: "portal-output";
1706
- position: {
1707
- x: number;
1708
- y: number;
1709
- };
1710
- data: {
1711
- description: string;
1712
- portal: string;
1713
- };
1714
- }>, z.ZodObject<z.extendShape<{
1715
- id: z.ZodString;
1716
- position: z.ZodObject<{
1717
- x: z.ZodNumber;
1718
- y: z.ZodNumber;
1719
- }, "strip", z.ZodTypeAny, {
1720
- x: number;
1721
- y: number;
1722
- }, {
1723
- x: number;
1724
- y: number;
1725
- }>;
1726
- }, {
1727
- type: z.ZodLiteral<"checkpoint">;
1728
- }>, "strip", z.ZodTypeAny, {
1729
- id: string;
1730
- type: "checkpoint";
1731
- position: {
1732
- x: number;
1733
- y: number;
1734
- };
1735
- }, {
1736
- id: string;
1737
- type: "checkpoint";
1738
- position: {
1739
- x: number;
1740
- y: number;
1741
- };
1742
- }>, z.ZodObject<z.extendShape<{
1743
- id: z.ZodString;
1744
- position: z.ZodObject<{
1745
- x: z.ZodNumber;
1746
- y: z.ZodNumber;
1747
- }, "strip", z.ZodTypeAny, {
1748
- x: number;
1749
- y: number;
1750
- }, {
1751
- x: number;
1752
- y: number;
1753
- }>;
1754
- }, {
1755
- type: z.ZodLiteral<"synchronize">;
1756
- }>, "strip", z.ZodTypeAny, {
1757
- id: string;
1758
- type: "synchronize";
1759
- position: {
1760
- x: number;
1761
- y: number;
1762
- };
1763
- }, {
1764
- id: string;
1765
- type: "synchronize";
1766
- position: {
1767
- x: number;
1768
- y: number;
1769
- };
1770
- }>, z.ZodObject<z.extendShape<{
1771
- id: z.ZodString;
1772
- position: z.ZodObject<{
1773
- x: z.ZodNumber;
1774
- y: z.ZodNumber;
1775
- }, "strip", z.ZodTypeAny, {
1776
- x: number;
1777
- y: number;
1778
- }, {
1779
- x: number;
1780
- y: number;
1781
- }>;
1782
- }, {
1783
- type: z.ZodLiteral<"end">;
1784
- data: z.ZodType<Bitflow.End, z.ZodTypeDef, Bitflow.End>;
1785
- }>, "strip", z.ZodTypeAny, {
1786
- id: string;
1787
- type: "end";
1788
- position: {
1789
- x: number;
1790
- y: number;
1791
- };
1792
- data: Bitflow.End;
1793
- }, {
1794
- id: string;
1795
- type: "end";
1796
- position: {
1797
- x: number;
1798
- y: number;
1799
- };
1800
- data: Bitflow.End;
1801
- }>, z.ZodObject<z.extendShape<{
1802
- id: z.ZodString;
1803
- position: z.ZodObject<{
1804
- x: z.ZodNumber;
1805
- y: z.ZodNumber;
1806
- }, "strip", z.ZodTypeAny, {
1807
- x: number;
1808
- y: number;
1809
- }, {
1810
- x: number;
1811
- y: number;
1812
- }>;
1813
- }, {
1814
- type: z.ZodLiteral<"input">;
1815
- data: z.ZodType<Bitflow.Input, z.ZodTypeDef, Bitflow.Input>;
1816
- }>, "strip", z.ZodTypeAny, {
1817
- id: string;
1818
- type: "input";
1819
- position: {
1820
- x: number;
1821
- y: number;
1822
- };
1823
- data: Bitflow.Input;
1824
- }, {
1825
- id: string;
1826
- type: "input";
1827
- position: {
1828
- x: number;
1829
- y: number;
1830
- };
1831
- data: Bitflow.Input;
1832
- }>, z.ZodObject<z.extendShape<{
1833
- id: z.ZodString;
1834
- position: z.ZodObject<{
1835
- x: z.ZodNumber;
1836
- y: z.ZodNumber;
1837
- }, "strip", z.ZodTypeAny, {
1838
- x: number;
1839
- y: number;
1840
- }, {
1841
- x: number;
1842
- y: number;
1843
- }>;
1844
- }, {
1845
- type: z.ZodLiteral<"start">;
1846
- data: z.ZodType<Bitflow.Start, z.ZodTypeDef, Bitflow.Start>;
1847
- }>, "strip", z.ZodTypeAny, {
1848
- id: string;
1849
- type: "start";
1850
- position: {
1851
- x: number;
1852
- y: number;
1853
- };
1854
- data: Bitflow.Start;
1855
- }, {
1856
- id: string;
1857
- type: "start";
1858
- position: {
1859
- x: number;
1860
- y: number;
1861
- };
1862
- data: Bitflow.Start;
1863
- }>, z.ZodObject<z.extendShape<{
1864
- id: z.ZodString;
1865
- position: z.ZodObject<{
1866
- x: z.ZodNumber;
1867
- y: z.ZodNumber;
1868
- }, "strip", z.ZodTypeAny, {
1869
- x: number;
1870
- y: number;
1871
- }, {
1872
- x: number;
1873
- y: number;
1874
- }>;
1875
- }, {
1876
- type: z.ZodLiteral<"task">;
1877
- data: z.ZodType<Bitflow.Task, z.ZodTypeDef, Bitflow.Task>;
1878
- }>, "strip", z.ZodTypeAny, {
1879
- id: string;
1880
- type: "task";
1881
- position: {
1882
- x: number;
1883
- y: number;
1884
- };
1885
- data: Bitflow.Task;
1886
- }, {
1887
- id: string;
1888
- type: "task";
1889
- position: {
1890
- x: number;
1891
- y: number;
1892
- };
1893
- data: Bitflow.Task;
1894
- }>, z.ZodObject<z.extendShape<{
1895
- id: z.ZodString;
1896
- position: z.ZodObject<{
1897
- x: z.ZodNumber;
1898
- y: z.ZodNumber;
1899
- }, "strip", z.ZodTypeAny, {
1900
- x: number;
1901
- y: number;
1902
- }, {
1903
- x: number;
1904
- y: number;
1905
- }>;
1906
- }, {
1907
- type: z.ZodLiteral<"title">;
1908
- data: z.ZodType<Bitflow.Title, z.ZodTypeDef, Bitflow.Title>;
1909
- }>, "strip", z.ZodTypeAny, {
1910
- id: string;
1911
- type: "title";
1912
- position: {
1913
- x: number;
1914
- y: number;
1915
- };
1916
- data: Bitflow.Title;
1917
- }, {
1918
- id: string;
1919
- type: "title";
1920
- position: {
1921
- x: number;
1922
- y: number;
1923
- };
1924
- data: Bitflow.Title;
1925
- }>]>, "many">;
1926
- edges: z.ZodArray<z.ZodObject<{
1927
- id: z.ZodString;
1928
- source: z.ZodString;
1929
- sourceHandle: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"a">, z.ZodLiteral<"b">, z.ZodLiteral<"c">, z.ZodLiteral<"d">, z.ZodLiteral<"e">, z.ZodLiteral<"f">]>>;
1930
- target: z.ZodString;
1931
- }, "strip", z.ZodTypeAny, {
1932
- sourceHandle?: "a" | "b" | "c" | "d" | "e" | "f" | undefined;
1933
- id: string;
1934
- source: string;
1935
- target: string;
1936
- }, {
1937
- sourceHandle?: "a" | "b" | "c" | "d" | "e" | "f" | undefined;
1938
- id: string;
1939
- source: string;
1940
- target: string;
1941
- }>, "many">;
1942
- zoom: z.ZodDefault<z.ZodNumber>;
1943
- position: z.ZodDefault<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1944
- }, "strip", z.ZodTypeAny, {
1945
- position: [number, number];
1946
- name: string;
1947
- description: string;
1948
- language: "en" | "de" | "fr" | "es" | "nl" | "pt" | "tr" | "it";
1949
- visibility: "public" | "private" | "unlisted";
1950
- draft: boolean;
1951
- nodes: ({
1952
- id: string;
1953
- type: "checkpoint";
1954
- position: {
1955
- x: number;
1956
- y: number;
1957
- };
1958
- } | {
1959
- id: string;
1960
- type: "synchronize";
1961
- position: {
1962
- x: number;
1963
- y: number;
1964
- };
1965
- } | {
1966
- id: string;
1967
- type: "split-answer";
1968
- position: {
1969
- x: number;
1970
- y: number;
1971
- };
1972
- data: {
1973
- condition: Condition;
1974
- };
1975
- } | {
1976
- id: string;
1977
- type: "split-result";
1978
- position: {
1979
- x: number;
1980
- y: number;
1981
- };
1982
- data: {
1983
- condition: Condition;
1984
- };
1985
- } | {
1986
- id: string;
1987
- type: "split-points";
1988
- position: {
1989
- x: number;
1990
- y: number;
1991
- };
1992
- data: {
1993
- points: number;
1994
- };
1995
- } | {
1996
- id: string;
1997
- type: "portal-input";
1998
- position: {
1999
- x: number;
2000
- y: number;
2001
- };
2002
- data: {
2003
- description: string;
2004
- portal: string;
2005
- };
2006
- } | {
2007
- id: string;
2008
- type: "portal-output";
2009
- position: {
2010
- x: number;
2011
- y: number;
2012
- };
2013
- data: {
2014
- description: string;
2015
- portal: string;
2016
- };
2017
- } | {
2018
- id: string;
2019
- type: "split-random";
2020
- position: {
2021
- x: number;
2022
- y: number;
2023
- };
2024
- } | {
2025
- id: string;
2026
- type: "task";
2027
- position: {
2028
- x: number;
2029
- y: number;
2030
- };
2031
- data: Bitflow.Task;
2032
- } | {
2033
- id: string;
2034
- type: "start";
2035
- position: {
2036
- x: number;
2037
- y: number;
2038
- };
2039
- data: Bitflow.Start;
2040
- } | {
2041
- id: string;
2042
- type: "end";
2043
- position: {
2044
- x: number;
2045
- y: number;
2046
- };
2047
- data: Bitflow.End;
2048
- } | {
2049
- id: string;
2050
- type: "input";
2051
- position: {
2052
- x: number;
2053
- y: number;
2054
- };
2055
- data: Bitflow.Input;
2056
- } | {
2057
- id: string;
2058
- type: "title";
2059
- position: {
2060
- x: number;
2061
- y: number;
2062
- };
2063
- data: Bitflow.Title;
2064
- })[];
2065
- edges: {
2066
- sourceHandle?: "a" | "b" | "c" | "d" | "e" | "f" | undefined;
2067
- id: string;
2068
- source: string;
2069
- target: string;
2070
- }[];
2071
- zoom: number;
2072
- }, {
2073
- position?: [number, number] | undefined;
2074
- zoom?: number | undefined;
2075
- name: string;
2076
- description: string;
2077
- language: "en" | "de" | "fr" | "es" | "nl" | "pt" | "tr" | "it";
2078
- visibility: "public" | "private" | "unlisted";
2079
- draft: boolean;
2080
- nodes: ({
2081
- id: string;
2082
- type: "checkpoint";
2083
- position: {
2084
- x: number;
2085
- y: number;
2086
- };
2087
- } | {
2088
- id: string;
2089
- type: "synchronize";
2090
- position: {
2091
- x: number;
2092
- y: number;
2093
- };
2094
- } | {
2095
- id: string;
2096
- type: "split-answer";
2097
- position: {
2098
- x: number;
2099
- y: number;
2100
- };
2101
- data: {
2102
- condition: Condition;
2103
- };
2104
- } | {
2105
- id: string;
2106
- type: "split-result";
2107
- position: {
2108
- x: number;
2109
- y: number;
2110
- };
2111
- data: {
2112
- condition: Condition;
2113
- };
2114
- } | {
2115
- id: string;
2116
- type: "split-points";
2117
- position: {
2118
- x: number;
2119
- y: number;
2120
- };
2121
- data: {
2122
- points: number;
2123
- };
2124
- } | {
2125
- id: string;
2126
- type: "portal-input";
2127
- position: {
2128
- x: number;
2129
- y: number;
2130
- };
2131
- data: {
2132
- description: string;
2133
- portal: string;
2134
- };
2135
- } | {
2136
- id: string;
2137
- type: "portal-output";
2138
- position: {
2139
- x: number;
2140
- y: number;
2141
- };
2142
- data: {
2143
- description: string;
2144
- portal: string;
2145
- };
2146
- } | {
2147
- id: string;
2148
- type: "split-random";
2149
- position: {
2150
- x: number;
2151
- y: number;
2152
- };
2153
- } | {
2154
- id: string;
2155
- type: "task";
2156
- position: {
2157
- x: number;
2158
- y: number;
2159
- };
2160
- data: Bitflow.Task;
2161
- } | {
2162
- id: string;
2163
- type: "start";
2164
- position: {
2165
- x: number;
2166
- y: number;
2167
- };
2168
- data: Bitflow.Start;
2169
- } | {
2170
- id: string;
2171
- type: "end";
2172
- position: {
2173
- x: number;
2174
- y: number;
2175
- };
2176
- data: Bitflow.End;
2177
- } | {
2178
- id: string;
2179
- type: "input";
2180
- position: {
2181
- x: number;
2182
- y: number;
2183
- };
2184
- data: Bitflow.Input;
2185
- } | {
2186
- id: string;
2187
- type: "title";
2188
- position: {
2189
- x: number;
2190
- y: number;
2191
- };
2192
- data: Bitflow.Title;
2193
- })[];
2194
- edges: {
2195
- sourceHandle?: "a" | "b" | "c" | "d" | "e" | "f" | undefined;
2196
- id: string;
2197
- source: string;
2198
- target: string;
2199
- }[];
2200
- }>, {
2201
- position: [number, number];
2202
- name: string;
2203
- description: string;
2204
- language: "en" | "de" | "fr" | "es" | "nl" | "pt" | "tr" | "it";
2205
- visibility: "public" | "private" | "unlisted";
2206
- draft: boolean;
2207
- nodes: ({
2208
- id: string;
2209
- type: "checkpoint";
2210
- position: {
2211
- x: number;
2212
- y: number;
2213
- };
2214
- } | {
2215
- id: string;
2216
- type: "synchronize";
2217
- position: {
2218
- x: number;
2219
- y: number;
2220
- };
2221
- } | {
2222
- id: string;
2223
- type: "split-answer";
2224
- position: {
2225
- x: number;
2226
- y: number;
2227
- };
2228
- data: {
2229
- condition: Condition;
2230
- };
2231
- } | {
2232
- id: string;
2233
- type: "split-result";
2234
- position: {
2235
- x: number;
2236
- y: number;
2237
- };
2238
- data: {
2239
- condition: Condition;
2240
- };
2241
- } | {
2242
- id: string;
2243
- type: "split-points";
2244
- position: {
2245
- x: number;
2246
- y: number;
2247
- };
2248
- data: {
2249
- points: number;
2250
- };
2251
- } | {
2252
- id: string;
2253
- type: "portal-input";
2254
- position: {
2255
- x: number;
2256
- y: number;
2257
- };
2258
- data: {
2259
- description: string;
2260
- portal: string;
2261
- };
2262
- } | {
2263
- id: string;
2264
- type: "portal-output";
2265
- position: {
2266
- x: number;
2267
- y: number;
2268
- };
2269
- data: {
2270
- description: string;
2271
- portal: string;
2272
- };
2273
- } | {
2274
- id: string;
2275
- type: "split-random";
2276
- position: {
2277
- x: number;
2278
- y: number;
2279
- };
2280
- } | {
2281
- id: string;
2282
- type: "task";
2283
- position: {
2284
- x: number;
2285
- y: number;
2286
- };
2287
- data: Bitflow.Task;
2288
- } | {
2289
- id: string;
2290
- type: "start";
2291
- position: {
2292
- x: number;
2293
- y: number;
2294
- };
2295
- data: Bitflow.Start;
2296
- } | {
2297
- id: string;
2298
- type: "end";
2299
- position: {
2300
- x: number;
2301
- y: number;
2302
- };
2303
- data: Bitflow.End;
2304
- } | {
2305
- id: string;
2306
- type: "input";
2307
- position: {
2308
- x: number;
2309
- y: number;
2310
- };
2311
- data: Bitflow.Input;
2312
- } | {
2313
- id: string;
2314
- type: "title";
2315
- position: {
2316
- x: number;
2317
- y: number;
2318
- };
2319
- data: Bitflow.Title;
2320
- })[];
2321
- edges: {
2322
- sourceHandle?: "a" | "b" | "c" | "d" | "e" | "f" | undefined;
2323
- id: string;
2324
- source: string;
2325
- target: string;
2326
- }[];
2327
- zoom: number;
2328
- }, {
2329
- position?: [number, number] | undefined;
2330
- zoom?: number | undefined;
2331
- name: string;
2332
- description: string;
2333
- language: "en" | "de" | "fr" | "es" | "nl" | "pt" | "tr" | "it";
2334
- visibility: "public" | "private" | "unlisted";
2335
- draft: boolean;
2336
- nodes: ({
2337
- id: string;
2338
- type: "checkpoint";
2339
- position: {
2340
- x: number;
2341
- y: number;
2342
- };
2343
- } | {
2344
- id: string;
2345
- type: "synchronize";
2346
- position: {
2347
- x: number;
2348
- y: number;
2349
- };
2350
- } | {
2351
- id: string;
2352
- type: "split-answer";
2353
- position: {
2354
- x: number;
2355
- y: number;
2356
- };
2357
- data: {
2358
- condition: Condition;
2359
- };
2360
- } | {
2361
- id: string;
2362
- type: "split-result";
2363
- position: {
2364
- x: number;
2365
- y: number;
2366
- };
2367
- data: {
2368
- condition: Condition;
2369
- };
2370
- } | {
2371
- id: string;
2372
- type: "split-points";
2373
- position: {
2374
- x: number;
2375
- y: number;
2376
- };
2377
- data: {
2378
- points: number;
2379
- };
2380
- } | {
2381
- id: string;
2382
- type: "portal-input";
2383
- position: {
2384
- x: number;
2385
- y: number;
2386
- };
2387
- data: {
2388
- description: string;
2389
- portal: string;
2390
- };
2391
- } | {
2392
- id: string;
2393
- type: "portal-output";
2394
- position: {
2395
- x: number;
2396
- y: number;
2397
- };
2398
- data: {
2399
- description: string;
2400
- portal: string;
2401
- };
2402
- } | {
2403
- id: string;
2404
- type: "split-random";
2405
- position: {
2406
- x: number;
2407
- y: number;
2408
- };
2409
- } | {
2410
- id: string;
2411
- type: "task";
2412
- position: {
2413
- x: number;
2414
- y: number;
2415
- };
2416
- data: Bitflow.Task;
2417
- } | {
2418
- id: string;
2419
- type: "start";
2420
- position: {
2421
- x: number;
2422
- y: number;
2423
- };
2424
- data: Bitflow.Start;
2425
- } | {
2426
- id: string;
2427
- type: "end";
2428
- position: {
2429
- x: number;
2430
- y: number;
2431
- };
2432
- data: Bitflow.End;
2433
- } | {
2434
- id: string;
2435
- type: "input";
2436
- position: {
2437
- x: number;
2438
- y: number;
2439
- };
2440
- data: Bitflow.Input;
2441
- } | {
2442
- id: string;
2443
- type: "title";
2444
- position: {
2445
- x: number;
2446
- y: number;
2447
- };
2448
- data: Bitflow.Title;
2449
- })[];
2450
- edges: {
2451
- sourceHandle?: "a" | "b" | "c" | "d" | "e" | "f" | undefined;
2452
- id: string;
2453
- source: string;
2454
- target: string;
2455
- }[];
2456
- }>;