@bitflow/core 0.3.0 → 0.5.2

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 (87) hide show
  1. package/package.json +22 -17
  2. package/CHANGELOG.md +0 -20
  3. package/LICENSE.md +0 -21
  4. package/dist/cjs/bits.d.ts +0 -128
  5. package/dist/cjs/bits.js +0 -16
  6. package/dist/cjs/bits.js.map +0 -1
  7. package/dist/cjs/bitsSchema.d.ts +0 -150
  8. package/dist/cjs/bitsSchema.js +0 -77
  9. package/dist/cjs/bitsSchema.js.map +0 -1
  10. package/dist/cjs/do.d.ts +0 -37
  11. package/dist/cjs/do.js +0 -85
  12. package/dist/cjs/do.js.map +0 -1
  13. package/dist/cjs/doSchema.d.ts +0 -1066
  14. package/dist/cjs/doSchema.js +0 -38
  15. package/dist/cjs/doSchema.js.map +0 -1
  16. package/dist/cjs/findLast.d.ts +0 -1
  17. package/dist/cjs/findLast.js +0 -13
  18. package/dist/cjs/findLast.js.map +0 -1
  19. package/dist/cjs/flow.d.ts +0 -163
  20. package/dist/cjs/flow.js +0 -98
  21. package/dist/cjs/flow.js.map +0 -1
  22. package/dist/cjs/flowSchema.d.ts +0 -2118
  23. package/dist/cjs/flowSchema.js +0 -247
  24. package/dist/cjs/flowSchema.js.map +0 -1
  25. package/dist/cjs/groupBy.d.ts +0 -1
  26. package/dist/cjs/groupBy.js +0 -27
  27. package/dist/cjs/groupBy.js.map +0 -1
  28. package/dist/cjs/index.d.ts +0 -11
  29. package/dist/cjs/index.js +0 -24
  30. package/dist/cjs/index.js.map +0 -1
  31. package/dist/cjs/lerpColor.d.ts +0 -1
  32. package/dist/cjs/lerpColor.js +0 -9
  33. package/dist/cjs/lerpColor.js.map +0 -1
  34. package/dist/cjs/levenshtein.d.ts +0 -1
  35. package/dist/cjs/levenshtein.js +0 -88
  36. package/dist/cjs/levenshtein.js.map +0 -1
  37. package/dist/cjs/uuid.d.ts +0 -1
  38. package/dist/cjs/uuid.js +0 -16
  39. package/dist/cjs/uuid.js.map +0 -1
  40. package/dist/esm/bits.d.ts +0 -128
  41. package/dist/esm/bits.js +0 -9
  42. package/dist/esm/bits.js.map +0 -1
  43. package/dist/esm/bitsSchema.d.ts +0 -150
  44. package/dist/esm/bitsSchema.js +0 -55
  45. package/dist/esm/bitsSchema.js.map +0 -1
  46. package/dist/esm/do.d.ts +0 -37
  47. package/dist/esm/do.js +0 -62
  48. package/dist/esm/do.js.map +0 -1
  49. package/dist/esm/doSchema.d.ts +0 -1066
  50. package/dist/esm/doSchema.js +0 -23
  51. package/dist/esm/doSchema.js.map +0 -1
  52. package/dist/esm/findLast.d.ts +0 -1
  53. package/dist/esm/findLast.js +0 -9
  54. package/dist/esm/findLast.js.map +0 -1
  55. package/dist/esm/flow.d.ts +0 -163
  56. package/dist/esm/flow.js +0 -88
  57. package/dist/esm/flow.js.map +0 -1
  58. package/dist/esm/flowSchema.d.ts +0 -2118
  59. package/dist/esm/flowSchema.js +0 -195
  60. package/dist/esm/flowSchema.js.map +0 -1
  61. package/dist/esm/groupBy.d.ts +0 -1
  62. package/dist/esm/groupBy.js +0 -23
  63. package/dist/esm/groupBy.js.map +0 -1
  64. package/dist/esm/index.d.ts +0 -11
  65. package/dist/esm/index.js +0 -12
  66. package/dist/esm/index.js.map +0 -1
  67. package/dist/esm/lerpColor.d.ts +0 -1
  68. package/dist/esm/lerpColor.js +0 -5
  69. package/dist/esm/lerpColor.js.map +0 -1
  70. package/dist/esm/levenshtein.d.ts +0 -1
  71. package/dist/esm/levenshtein.js +0 -84
  72. package/dist/esm/levenshtein.js.map +0 -1
  73. package/dist/esm/uuid.d.ts +0 -1
  74. package/dist/esm/uuid.js +0 -12
  75. package/dist/esm/uuid.js.map +0 -1
  76. package/dist/types/bits.d.ts +0 -128
  77. package/dist/types/bitsSchema.d.ts +0 -150
  78. package/dist/types/do.d.ts +0 -37
  79. package/dist/types/doSchema.d.ts +0 -1066
  80. package/dist/types/findLast.d.ts +0 -1
  81. package/dist/types/flow.d.ts +0 -163
  82. package/dist/types/flowSchema.d.ts +0 -2118
  83. package/dist/types/groupBy.d.ts +0 -1
  84. package/dist/types/index.d.ts +0 -11
  85. package/dist/types/lerpColor.d.ts +0 -1
  86. package/dist/types/levenshtein.d.ts +0 -1
  87. package/dist/types/uuid.d.ts +0 -1
@@ -1,2118 +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
- }>]>;
926
- export declare const FlowEdgeSchema: z.ZodObject<{
927
- id: z.ZodString;
928
- source: z.ZodString;
929
- sourceHandle: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"a">, z.ZodLiteral<"b">, z.ZodLiteral<"c">, z.ZodLiteral<"d">, z.ZodLiteral<"e">, z.ZodLiteral<"f">]>>;
930
- target: z.ZodString;
931
- }, "strip", z.ZodTypeAny, {
932
- sourceHandle?: "a" | "b" | "c" | "d" | "e" | "f" | undefined;
933
- id: string;
934
- source: string;
935
- target: string;
936
- }, {
937
- sourceHandle?: "a" | "b" | "c" | "d" | "e" | "f" | undefined;
938
- id: string;
939
- source: string;
940
- target: string;
941
- }>;
942
- export declare const makeFlowNodeSchema: ({ end, input, start, task, title, }: {
943
- start: ZodSchema<Bitflow.Start>;
944
- end: ZodSchema<Bitflow.End>;
945
- input: ZodSchema<Bitflow.Input>;
946
- title: ZodSchema<Bitflow.Title>;
947
- task: ZodSchema<Bitflow.Task>;
948
- }) => z.ZodUnion<[z.ZodObject<z.extendShape<{
949
- id: z.ZodString;
950
- position: z.ZodObject<{
951
- x: z.ZodNumber;
952
- y: z.ZodNumber;
953
- }, "strip", z.ZodTypeAny, {
954
- x: number;
955
- y: number;
956
- }, {
957
- x: number;
958
- y: number;
959
- }>;
960
- }, {
961
- type: z.ZodLiteral<"split-answer">;
962
- data: z.ZodObject<{
963
- condition: z.ZodType<Condition, z.ZodTypeDef, Condition>;
964
- }, "strip", z.ZodTypeAny, {
965
- condition: Condition;
966
- }, {
967
- condition: Condition;
968
- }>;
969
- }>, "strip", z.ZodTypeAny, {
970
- id: string;
971
- type: "split-answer";
972
- position: {
973
- x: number;
974
- y: number;
975
- };
976
- data: {
977
- condition: Condition;
978
- };
979
- }, {
980
- id: string;
981
- type: "split-answer";
982
- position: {
983
- x: number;
984
- y: number;
985
- };
986
- data: {
987
- condition: Condition;
988
- };
989
- }>, z.ZodObject<z.extendShape<{
990
- id: z.ZodString;
991
- position: z.ZodObject<{
992
- x: z.ZodNumber;
993
- y: z.ZodNumber;
994
- }, "strip", z.ZodTypeAny, {
995
- x: number;
996
- y: number;
997
- }, {
998
- x: number;
999
- y: number;
1000
- }>;
1001
- }, {
1002
- type: z.ZodLiteral<"split-result">;
1003
- data: z.ZodObject<{
1004
- condition: z.ZodType<Condition, z.ZodTypeDef, Condition>;
1005
- }, "strip", z.ZodTypeAny, {
1006
- condition: Condition;
1007
- }, {
1008
- condition: Condition;
1009
- }>;
1010
- }>, "strip", z.ZodTypeAny, {
1011
- id: string;
1012
- type: "split-result";
1013
- position: {
1014
- x: number;
1015
- y: number;
1016
- };
1017
- data: {
1018
- condition: Condition;
1019
- };
1020
- }, {
1021
- id: string;
1022
- type: "split-result";
1023
- position: {
1024
- x: number;
1025
- y: number;
1026
- };
1027
- data: {
1028
- condition: Condition;
1029
- };
1030
- }>, 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-points">;
1044
- data: z.ZodObject<{
1045
- points: z.ZodNumber;
1046
- }, "strip", z.ZodTypeAny, {
1047
- points: number;
1048
- }, {
1049
- points: number;
1050
- }>;
1051
- }>, "strip", z.ZodTypeAny, {
1052
- id: string;
1053
- type: "split-points";
1054
- position: {
1055
- x: number;
1056
- y: number;
1057
- };
1058
- data: {
1059
- points: number;
1060
- };
1061
- }, {
1062
- id: string;
1063
- type: "split-points";
1064
- position: {
1065
- x: number;
1066
- y: number;
1067
- };
1068
- data: {
1069
- points: number;
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-random">;
1085
- }>, "strip", z.ZodTypeAny, {
1086
- id: string;
1087
- type: "split-random";
1088
- position: {
1089
- x: number;
1090
- y: number;
1091
- };
1092
- }, {
1093
- id: string;
1094
- type: "split-random";
1095
- position: {
1096
- x: number;
1097
- y: number;
1098
- };
1099
- }>, z.ZodObject<z.extendShape<{
1100
- id: z.ZodString;
1101
- position: z.ZodObject<{
1102
- x: z.ZodNumber;
1103
- y: z.ZodNumber;
1104
- }, "strip", z.ZodTypeAny, {
1105
- x: number;
1106
- y: number;
1107
- }, {
1108
- x: number;
1109
- y: number;
1110
- }>;
1111
- }, {
1112
- type: z.ZodLiteral<"portal-input">;
1113
- data: z.ZodObject<{
1114
- portal: z.ZodString;
1115
- description: z.ZodString;
1116
- }, "strip", z.ZodTypeAny, {
1117
- description: string;
1118
- portal: string;
1119
- }, {
1120
- description: string;
1121
- portal: string;
1122
- }>;
1123
- }>, "strip", z.ZodTypeAny, {
1124
- id: string;
1125
- type: "portal-input";
1126
- position: {
1127
- x: number;
1128
- y: number;
1129
- };
1130
- data: {
1131
- description: string;
1132
- portal: string;
1133
- };
1134
- }, {
1135
- id: string;
1136
- type: "portal-input";
1137
- position: {
1138
- x: number;
1139
- y: number;
1140
- };
1141
- data: {
1142
- description: string;
1143
- portal: string;
1144
- };
1145
- }>, z.ZodObject<z.extendShape<{
1146
- id: z.ZodString;
1147
- position: z.ZodObject<{
1148
- x: z.ZodNumber;
1149
- y: z.ZodNumber;
1150
- }, "strip", z.ZodTypeAny, {
1151
- x: number;
1152
- y: number;
1153
- }, {
1154
- x: number;
1155
- y: number;
1156
- }>;
1157
- }, {
1158
- type: z.ZodLiteral<"portal-output">;
1159
- data: z.ZodObject<{
1160
- portal: z.ZodString;
1161
- description: z.ZodString;
1162
- }, "strip", z.ZodTypeAny, {
1163
- description: string;
1164
- portal: string;
1165
- }, {
1166
- description: string;
1167
- portal: string;
1168
- }>;
1169
- }>, "strip", z.ZodTypeAny, {
1170
- id: string;
1171
- type: "portal-output";
1172
- position: {
1173
- x: number;
1174
- y: number;
1175
- };
1176
- data: {
1177
- description: string;
1178
- portal: string;
1179
- };
1180
- }, {
1181
- id: string;
1182
- type: "portal-output";
1183
- position: {
1184
- x: number;
1185
- y: number;
1186
- };
1187
- data: {
1188
- description: string;
1189
- portal: string;
1190
- };
1191
- }>, z.ZodObject<z.extendShape<{
1192
- id: z.ZodString;
1193
- position: z.ZodObject<{
1194
- x: z.ZodNumber;
1195
- y: z.ZodNumber;
1196
- }, "strip", z.ZodTypeAny, {
1197
- x: number;
1198
- y: number;
1199
- }, {
1200
- x: number;
1201
- y: number;
1202
- }>;
1203
- }, {
1204
- type: z.ZodLiteral<"end">;
1205
- data: z.ZodType<Bitflow.End, z.ZodTypeDef, Bitflow.End>;
1206
- }>, "strip", z.ZodTypeAny, {
1207
- id: string;
1208
- type: "end";
1209
- position: {
1210
- x: number;
1211
- y: number;
1212
- };
1213
- data: Bitflow.End;
1214
- }, {
1215
- id: string;
1216
- type: "end";
1217
- position: {
1218
- x: number;
1219
- y: number;
1220
- };
1221
- data: Bitflow.End;
1222
- }>, z.ZodObject<z.extendShape<{
1223
- id: z.ZodString;
1224
- position: z.ZodObject<{
1225
- x: z.ZodNumber;
1226
- y: z.ZodNumber;
1227
- }, "strip", z.ZodTypeAny, {
1228
- x: number;
1229
- y: number;
1230
- }, {
1231
- x: number;
1232
- y: number;
1233
- }>;
1234
- }, {
1235
- type: z.ZodLiteral<"input">;
1236
- data: z.ZodType<Bitflow.Input, z.ZodTypeDef, Bitflow.Input>;
1237
- }>, "strip", z.ZodTypeAny, {
1238
- id: string;
1239
- type: "input";
1240
- position: {
1241
- x: number;
1242
- y: number;
1243
- };
1244
- data: Bitflow.Input;
1245
- }, {
1246
- id: string;
1247
- type: "input";
1248
- position: {
1249
- x: number;
1250
- y: number;
1251
- };
1252
- data: Bitflow.Input;
1253
- }>, z.ZodObject<z.extendShape<{
1254
- id: z.ZodString;
1255
- position: z.ZodObject<{
1256
- x: z.ZodNumber;
1257
- y: z.ZodNumber;
1258
- }, "strip", z.ZodTypeAny, {
1259
- x: number;
1260
- y: number;
1261
- }, {
1262
- x: number;
1263
- y: number;
1264
- }>;
1265
- }, {
1266
- type: z.ZodLiteral<"start">;
1267
- data: z.ZodType<Bitflow.Start, z.ZodTypeDef, Bitflow.Start>;
1268
- }>, "strip", z.ZodTypeAny, {
1269
- id: string;
1270
- type: "start";
1271
- position: {
1272
- x: number;
1273
- y: number;
1274
- };
1275
- data: Bitflow.Start;
1276
- }, {
1277
- id: string;
1278
- type: "start";
1279
- position: {
1280
- x: number;
1281
- y: number;
1282
- };
1283
- data: Bitflow.Start;
1284
- }>, z.ZodObject<z.extendShape<{
1285
- id: z.ZodString;
1286
- position: z.ZodObject<{
1287
- x: z.ZodNumber;
1288
- y: z.ZodNumber;
1289
- }, "strip", z.ZodTypeAny, {
1290
- x: number;
1291
- y: number;
1292
- }, {
1293
- x: number;
1294
- y: number;
1295
- }>;
1296
- }, {
1297
- type: z.ZodLiteral<"task">;
1298
- data: z.ZodType<Bitflow.Task, z.ZodTypeDef, Bitflow.Task>;
1299
- }>, "strip", z.ZodTypeAny, {
1300
- id: string;
1301
- type: "task";
1302
- position: {
1303
- x: number;
1304
- y: number;
1305
- };
1306
- data: Bitflow.Task;
1307
- }, {
1308
- id: string;
1309
- type: "task";
1310
- position: {
1311
- x: number;
1312
- y: number;
1313
- };
1314
- data: Bitflow.Task;
1315
- }>, z.ZodObject<z.extendShape<{
1316
- id: z.ZodString;
1317
- position: z.ZodObject<{
1318
- x: z.ZodNumber;
1319
- y: z.ZodNumber;
1320
- }, "strip", z.ZodTypeAny, {
1321
- x: number;
1322
- y: number;
1323
- }, {
1324
- x: number;
1325
- y: number;
1326
- }>;
1327
- }, {
1328
- type: z.ZodLiteral<"title">;
1329
- data: z.ZodType<Bitflow.Title, z.ZodTypeDef, Bitflow.Title>;
1330
- }>, "strip", z.ZodTypeAny, {
1331
- id: string;
1332
- type: "title";
1333
- position: {
1334
- x: number;
1335
- y: number;
1336
- };
1337
- data: Bitflow.Title;
1338
- }, {
1339
- id: string;
1340
- type: "title";
1341
- position: {
1342
- x: number;
1343
- y: number;
1344
- };
1345
- data: Bitflow.Title;
1346
- }>]>;
1347
- export declare const makeFlowSchema: ({ end, input, start, task, title, }: {
1348
- start: ZodSchema<Bitflow.Start>;
1349
- end: ZodSchema<Bitflow.End>;
1350
- input: ZodSchema<Bitflow.Input>;
1351
- title: ZodSchema<Bitflow.Title>;
1352
- task: ZodSchema<Bitflow.Task>;
1353
- }) => z.ZodEffects<z.ZodObject<{
1354
- name: z.ZodString;
1355
- description: z.ZodString;
1356
- language: z.ZodEnum<["en", "de", "fr", "es", "nl", "pt", "tr", "it"]>;
1357
- visibility: z.ZodEnum<["public", "private", "unlisted"]>;
1358
- draft: z.ZodBoolean;
1359
- nodes: z.ZodArray<z.ZodUnion<[z.ZodObject<z.extendShape<{
1360
- id: z.ZodString;
1361
- position: z.ZodObject<{
1362
- x: z.ZodNumber;
1363
- y: z.ZodNumber;
1364
- }, "strip", z.ZodTypeAny, {
1365
- x: number;
1366
- y: number;
1367
- }, {
1368
- x: number;
1369
- y: number;
1370
- }>;
1371
- }, {
1372
- type: z.ZodLiteral<"split-answer">;
1373
- data: z.ZodObject<{
1374
- condition: z.ZodType<Condition, z.ZodTypeDef, Condition>;
1375
- }, "strip", z.ZodTypeAny, {
1376
- condition: Condition;
1377
- }, {
1378
- condition: Condition;
1379
- }>;
1380
- }>, "strip", z.ZodTypeAny, {
1381
- id: string;
1382
- type: "split-answer";
1383
- position: {
1384
- x: number;
1385
- y: number;
1386
- };
1387
- data: {
1388
- condition: Condition;
1389
- };
1390
- }, {
1391
- id: string;
1392
- type: "split-answer";
1393
- position: {
1394
- x: number;
1395
- y: number;
1396
- };
1397
- data: {
1398
- condition: Condition;
1399
- };
1400
- }>, z.ZodObject<z.extendShape<{
1401
- id: z.ZodString;
1402
- position: z.ZodObject<{
1403
- x: z.ZodNumber;
1404
- y: z.ZodNumber;
1405
- }, "strip", z.ZodTypeAny, {
1406
- x: number;
1407
- y: number;
1408
- }, {
1409
- x: number;
1410
- y: number;
1411
- }>;
1412
- }, {
1413
- type: z.ZodLiteral<"split-result">;
1414
- data: z.ZodObject<{
1415
- condition: z.ZodType<Condition, z.ZodTypeDef, Condition>;
1416
- }, "strip", z.ZodTypeAny, {
1417
- condition: Condition;
1418
- }, {
1419
- condition: Condition;
1420
- }>;
1421
- }>, "strip", z.ZodTypeAny, {
1422
- id: string;
1423
- type: "split-result";
1424
- position: {
1425
- x: number;
1426
- y: number;
1427
- };
1428
- data: {
1429
- condition: Condition;
1430
- };
1431
- }, {
1432
- id: string;
1433
- type: "split-result";
1434
- position: {
1435
- x: number;
1436
- y: number;
1437
- };
1438
- data: {
1439
- condition: Condition;
1440
- };
1441
- }>, z.ZodObject<z.extendShape<{
1442
- id: z.ZodString;
1443
- position: z.ZodObject<{
1444
- x: z.ZodNumber;
1445
- y: z.ZodNumber;
1446
- }, "strip", z.ZodTypeAny, {
1447
- x: number;
1448
- y: number;
1449
- }, {
1450
- x: number;
1451
- y: number;
1452
- }>;
1453
- }, {
1454
- type: z.ZodLiteral<"split-points">;
1455
- data: z.ZodObject<{
1456
- points: z.ZodNumber;
1457
- }, "strip", z.ZodTypeAny, {
1458
- points: number;
1459
- }, {
1460
- points: number;
1461
- }>;
1462
- }>, "strip", z.ZodTypeAny, {
1463
- id: string;
1464
- type: "split-points";
1465
- position: {
1466
- x: number;
1467
- y: number;
1468
- };
1469
- data: {
1470
- points: number;
1471
- };
1472
- }, {
1473
- id: string;
1474
- type: "split-points";
1475
- position: {
1476
- x: number;
1477
- y: number;
1478
- };
1479
- data: {
1480
- points: number;
1481
- };
1482
- }>, z.ZodObject<z.extendShape<{
1483
- id: z.ZodString;
1484
- position: z.ZodObject<{
1485
- x: z.ZodNumber;
1486
- y: z.ZodNumber;
1487
- }, "strip", z.ZodTypeAny, {
1488
- x: number;
1489
- y: number;
1490
- }, {
1491
- x: number;
1492
- y: number;
1493
- }>;
1494
- }, {
1495
- type: z.ZodLiteral<"split-random">;
1496
- }>, "strip", z.ZodTypeAny, {
1497
- id: string;
1498
- type: "split-random";
1499
- position: {
1500
- x: number;
1501
- y: number;
1502
- };
1503
- }, {
1504
- id: string;
1505
- type: "split-random";
1506
- position: {
1507
- x: number;
1508
- y: number;
1509
- };
1510
- }>, 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<"portal-input">;
1524
- data: z.ZodObject<{
1525
- portal: z.ZodString;
1526
- description: z.ZodString;
1527
- }, "strip", z.ZodTypeAny, {
1528
- description: string;
1529
- portal: string;
1530
- }, {
1531
- description: string;
1532
- portal: string;
1533
- }>;
1534
- }>, "strip", z.ZodTypeAny, {
1535
- id: string;
1536
- type: "portal-input";
1537
- position: {
1538
- x: number;
1539
- y: number;
1540
- };
1541
- data: {
1542
- description: string;
1543
- portal: string;
1544
- };
1545
- }, {
1546
- id: string;
1547
- type: "portal-input";
1548
- position: {
1549
- x: number;
1550
- y: number;
1551
- };
1552
- data: {
1553
- description: string;
1554
- portal: string;
1555
- };
1556
- }>, z.ZodObject<z.extendShape<{
1557
- id: z.ZodString;
1558
- position: z.ZodObject<{
1559
- x: z.ZodNumber;
1560
- y: z.ZodNumber;
1561
- }, "strip", z.ZodTypeAny, {
1562
- x: number;
1563
- y: number;
1564
- }, {
1565
- x: number;
1566
- y: number;
1567
- }>;
1568
- }, {
1569
- type: z.ZodLiteral<"portal-output">;
1570
- data: z.ZodObject<{
1571
- portal: z.ZodString;
1572
- description: z.ZodString;
1573
- }, "strip", z.ZodTypeAny, {
1574
- description: string;
1575
- portal: string;
1576
- }, {
1577
- description: string;
1578
- portal: string;
1579
- }>;
1580
- }>, "strip", z.ZodTypeAny, {
1581
- id: string;
1582
- type: "portal-output";
1583
- position: {
1584
- x: number;
1585
- y: number;
1586
- };
1587
- data: {
1588
- description: string;
1589
- portal: string;
1590
- };
1591
- }, {
1592
- id: string;
1593
- type: "portal-output";
1594
- position: {
1595
- x: number;
1596
- y: number;
1597
- };
1598
- data: {
1599
- description: string;
1600
- portal: string;
1601
- };
1602
- }>, z.ZodObject<z.extendShape<{
1603
- id: z.ZodString;
1604
- position: z.ZodObject<{
1605
- x: z.ZodNumber;
1606
- y: z.ZodNumber;
1607
- }, "strip", z.ZodTypeAny, {
1608
- x: number;
1609
- y: number;
1610
- }, {
1611
- x: number;
1612
- y: number;
1613
- }>;
1614
- }, {
1615
- type: z.ZodLiteral<"end">;
1616
- data: z.ZodType<Bitflow.End, z.ZodTypeDef, Bitflow.End>;
1617
- }>, "strip", z.ZodTypeAny, {
1618
- id: string;
1619
- type: "end";
1620
- position: {
1621
- x: number;
1622
- y: number;
1623
- };
1624
- data: Bitflow.End;
1625
- }, {
1626
- id: string;
1627
- type: "end";
1628
- position: {
1629
- x: number;
1630
- y: number;
1631
- };
1632
- data: Bitflow.End;
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<"input">;
1647
- data: z.ZodType<Bitflow.Input, z.ZodTypeDef, Bitflow.Input>;
1648
- }>, "strip", z.ZodTypeAny, {
1649
- id: string;
1650
- type: "input";
1651
- position: {
1652
- x: number;
1653
- y: number;
1654
- };
1655
- data: Bitflow.Input;
1656
- }, {
1657
- id: string;
1658
- type: "input";
1659
- position: {
1660
- x: number;
1661
- y: number;
1662
- };
1663
- data: Bitflow.Input;
1664
- }>, z.ZodObject<z.extendShape<{
1665
- id: z.ZodString;
1666
- position: z.ZodObject<{
1667
- x: z.ZodNumber;
1668
- y: z.ZodNumber;
1669
- }, "strip", z.ZodTypeAny, {
1670
- x: number;
1671
- y: number;
1672
- }, {
1673
- x: number;
1674
- y: number;
1675
- }>;
1676
- }, {
1677
- type: z.ZodLiteral<"start">;
1678
- data: z.ZodType<Bitflow.Start, z.ZodTypeDef, Bitflow.Start>;
1679
- }>, "strip", z.ZodTypeAny, {
1680
- id: string;
1681
- type: "start";
1682
- position: {
1683
- x: number;
1684
- y: number;
1685
- };
1686
- data: Bitflow.Start;
1687
- }, {
1688
- id: string;
1689
- type: "start";
1690
- position: {
1691
- x: number;
1692
- y: number;
1693
- };
1694
- data: Bitflow.Start;
1695
- }>, z.ZodObject<z.extendShape<{
1696
- id: z.ZodString;
1697
- position: z.ZodObject<{
1698
- x: z.ZodNumber;
1699
- y: z.ZodNumber;
1700
- }, "strip", z.ZodTypeAny, {
1701
- x: number;
1702
- y: number;
1703
- }, {
1704
- x: number;
1705
- y: number;
1706
- }>;
1707
- }, {
1708
- type: z.ZodLiteral<"task">;
1709
- data: z.ZodType<Bitflow.Task, z.ZodTypeDef, Bitflow.Task>;
1710
- }>, "strip", z.ZodTypeAny, {
1711
- id: string;
1712
- type: "task";
1713
- position: {
1714
- x: number;
1715
- y: number;
1716
- };
1717
- data: Bitflow.Task;
1718
- }, {
1719
- id: string;
1720
- type: "task";
1721
- position: {
1722
- x: number;
1723
- y: number;
1724
- };
1725
- data: Bitflow.Task;
1726
- }>, z.ZodObject<z.extendShape<{
1727
- id: z.ZodString;
1728
- position: z.ZodObject<{
1729
- x: z.ZodNumber;
1730
- y: z.ZodNumber;
1731
- }, "strip", z.ZodTypeAny, {
1732
- x: number;
1733
- y: number;
1734
- }, {
1735
- x: number;
1736
- y: number;
1737
- }>;
1738
- }, {
1739
- type: z.ZodLiteral<"title">;
1740
- data: z.ZodType<Bitflow.Title, z.ZodTypeDef, Bitflow.Title>;
1741
- }>, "strip", z.ZodTypeAny, {
1742
- id: string;
1743
- type: "title";
1744
- position: {
1745
- x: number;
1746
- y: number;
1747
- };
1748
- data: Bitflow.Title;
1749
- }, {
1750
- id: string;
1751
- type: "title";
1752
- position: {
1753
- x: number;
1754
- y: number;
1755
- };
1756
- data: Bitflow.Title;
1757
- }>]>, "many">;
1758
- edges: z.ZodArray<z.ZodObject<{
1759
- id: z.ZodString;
1760
- source: z.ZodString;
1761
- sourceHandle: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"a">, z.ZodLiteral<"b">, z.ZodLiteral<"c">, z.ZodLiteral<"d">, z.ZodLiteral<"e">, z.ZodLiteral<"f">]>>;
1762
- target: z.ZodString;
1763
- }, "strip", z.ZodTypeAny, {
1764
- sourceHandle?: "a" | "b" | "c" | "d" | "e" | "f" | undefined;
1765
- id: string;
1766
- source: string;
1767
- target: string;
1768
- }, {
1769
- sourceHandle?: "a" | "b" | "c" | "d" | "e" | "f" | undefined;
1770
- id: string;
1771
- source: string;
1772
- target: string;
1773
- }>, "many">;
1774
- zoom: z.ZodDefault<z.ZodNumber>;
1775
- position: z.ZodDefault<z.ZodTuple<[z.ZodNumber, z.ZodNumber]>>;
1776
- }, "strip", z.ZodTypeAny, {
1777
- position: [number, number];
1778
- name: string;
1779
- description: string;
1780
- language: "en" | "de" | "fr" | "es" | "nl" | "pt" | "tr" | "it";
1781
- visibility: "public" | "private" | "unlisted";
1782
- draft: boolean;
1783
- nodes: ({
1784
- id: string;
1785
- type: "split-answer";
1786
- position: {
1787
- x: number;
1788
- y: number;
1789
- };
1790
- data: {
1791
- condition: Condition;
1792
- };
1793
- } | {
1794
- id: string;
1795
- type: "split-result";
1796
- position: {
1797
- x: number;
1798
- y: number;
1799
- };
1800
- data: {
1801
- condition: Condition;
1802
- };
1803
- } | {
1804
- id: string;
1805
- type: "split-points";
1806
- position: {
1807
- x: number;
1808
- y: number;
1809
- };
1810
- data: {
1811
- points: number;
1812
- };
1813
- } | {
1814
- id: string;
1815
- type: "portal-input";
1816
- position: {
1817
- x: number;
1818
- y: number;
1819
- };
1820
- data: {
1821
- description: string;
1822
- portal: string;
1823
- };
1824
- } | {
1825
- id: string;
1826
- type: "portal-output";
1827
- position: {
1828
- x: number;
1829
- y: number;
1830
- };
1831
- data: {
1832
- description: string;
1833
- portal: string;
1834
- };
1835
- } | {
1836
- id: string;
1837
- type: "split-random";
1838
- position: {
1839
- x: number;
1840
- y: number;
1841
- };
1842
- } | {
1843
- id: string;
1844
- type: "task";
1845
- position: {
1846
- x: number;
1847
- y: number;
1848
- };
1849
- data: Bitflow.Task;
1850
- } | {
1851
- id: string;
1852
- type: "start";
1853
- position: {
1854
- x: number;
1855
- y: number;
1856
- };
1857
- data: Bitflow.Start;
1858
- } | {
1859
- id: string;
1860
- type: "end";
1861
- position: {
1862
- x: number;
1863
- y: number;
1864
- };
1865
- data: Bitflow.End;
1866
- } | {
1867
- id: string;
1868
- type: "input";
1869
- position: {
1870
- x: number;
1871
- y: number;
1872
- };
1873
- data: Bitflow.Input;
1874
- } | {
1875
- id: string;
1876
- type: "title";
1877
- position: {
1878
- x: number;
1879
- y: number;
1880
- };
1881
- data: Bitflow.Title;
1882
- })[];
1883
- edges: {
1884
- sourceHandle?: "a" | "b" | "c" | "d" | "e" | "f" | undefined;
1885
- id: string;
1886
- source: string;
1887
- target: string;
1888
- }[];
1889
- zoom: number;
1890
- }, {
1891
- position?: [number, number] | undefined;
1892
- zoom?: number | undefined;
1893
- name: string;
1894
- description: string;
1895
- language: "en" | "de" | "fr" | "es" | "nl" | "pt" | "tr" | "it";
1896
- visibility: "public" | "private" | "unlisted";
1897
- draft: boolean;
1898
- nodes: ({
1899
- id: string;
1900
- type: "split-answer";
1901
- position: {
1902
- x: number;
1903
- y: number;
1904
- };
1905
- data: {
1906
- condition: Condition;
1907
- };
1908
- } | {
1909
- id: string;
1910
- type: "split-result";
1911
- position: {
1912
- x: number;
1913
- y: number;
1914
- };
1915
- data: {
1916
- condition: Condition;
1917
- };
1918
- } | {
1919
- id: string;
1920
- type: "split-points";
1921
- position: {
1922
- x: number;
1923
- y: number;
1924
- };
1925
- data: {
1926
- points: number;
1927
- };
1928
- } | {
1929
- id: string;
1930
- type: "portal-input";
1931
- position: {
1932
- x: number;
1933
- y: number;
1934
- };
1935
- data: {
1936
- description: string;
1937
- portal: string;
1938
- };
1939
- } | {
1940
- id: string;
1941
- type: "portal-output";
1942
- position: {
1943
- x: number;
1944
- y: number;
1945
- };
1946
- data: {
1947
- description: string;
1948
- portal: string;
1949
- };
1950
- } | {
1951
- id: string;
1952
- type: "split-random";
1953
- position: {
1954
- x: number;
1955
- y: number;
1956
- };
1957
- } | {
1958
- id: string;
1959
- type: "task";
1960
- position: {
1961
- x: number;
1962
- y: number;
1963
- };
1964
- data: Bitflow.Task;
1965
- } | {
1966
- id: string;
1967
- type: "start";
1968
- position: {
1969
- x: number;
1970
- y: number;
1971
- };
1972
- data: Bitflow.Start;
1973
- } | {
1974
- id: string;
1975
- type: "end";
1976
- position: {
1977
- x: number;
1978
- y: number;
1979
- };
1980
- data: Bitflow.End;
1981
- } | {
1982
- id: string;
1983
- type: "input";
1984
- position: {
1985
- x: number;
1986
- y: number;
1987
- };
1988
- data: Bitflow.Input;
1989
- } | {
1990
- id: string;
1991
- type: "title";
1992
- position: {
1993
- x: number;
1994
- y: number;
1995
- };
1996
- data: Bitflow.Title;
1997
- })[];
1998
- edges: {
1999
- sourceHandle?: "a" | "b" | "c" | "d" | "e" | "f" | undefined;
2000
- id: string;
2001
- source: string;
2002
- target: string;
2003
- }[];
2004
- }>, {
2005
- position: [number, number];
2006
- name: string;
2007
- description: string;
2008
- language: "en" | "de" | "fr" | "es" | "nl" | "pt" | "tr" | "it";
2009
- visibility: "public" | "private" | "unlisted";
2010
- draft: boolean;
2011
- nodes: ({
2012
- id: string;
2013
- type: "split-answer";
2014
- position: {
2015
- x: number;
2016
- y: number;
2017
- };
2018
- data: {
2019
- condition: Condition;
2020
- };
2021
- } | {
2022
- id: string;
2023
- type: "split-result";
2024
- position: {
2025
- x: number;
2026
- y: number;
2027
- };
2028
- data: {
2029
- condition: Condition;
2030
- };
2031
- } | {
2032
- id: string;
2033
- type: "split-points";
2034
- position: {
2035
- x: number;
2036
- y: number;
2037
- };
2038
- data: {
2039
- points: number;
2040
- };
2041
- } | {
2042
- id: string;
2043
- type: "portal-input";
2044
- position: {
2045
- x: number;
2046
- y: number;
2047
- };
2048
- data: {
2049
- description: string;
2050
- portal: string;
2051
- };
2052
- } | {
2053
- id: string;
2054
- type: "portal-output";
2055
- position: {
2056
- x: number;
2057
- y: number;
2058
- };
2059
- data: {
2060
- description: string;
2061
- portal: string;
2062
- };
2063
- } | {
2064
- id: string;
2065
- type: "split-random";
2066
- position: {
2067
- x: number;
2068
- y: number;
2069
- };
2070
- } | {
2071
- id: string;
2072
- type: "task";
2073
- position: {
2074
- x: number;
2075
- y: number;
2076
- };
2077
- data: Bitflow.Task;
2078
- } | {
2079
- id: string;
2080
- type: "start";
2081
- position: {
2082
- x: number;
2083
- y: number;
2084
- };
2085
- data: Bitflow.Start;
2086
- } | {
2087
- id: string;
2088
- type: "end";
2089
- position: {
2090
- x: number;
2091
- y: number;
2092
- };
2093
- data: Bitflow.End;
2094
- } | {
2095
- id: string;
2096
- type: "input";
2097
- position: {
2098
- x: number;
2099
- y: number;
2100
- };
2101
- data: Bitflow.Input;
2102
- } | {
2103
- id: string;
2104
- type: "title";
2105
- position: {
2106
- x: number;
2107
- y: number;
2108
- };
2109
- data: Bitflow.Title;
2110
- })[];
2111
- edges: {
2112
- sourceHandle?: "a" | "b" | "c" | "d" | "e" | "f" | undefined;
2113
- id: string;
2114
- source: string;
2115
- target: string;
2116
- }[];
2117
- zoom: number;
2118
- }>;