@anchrd/colab-sdk 0.1.51 → 0.1.53

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