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