@anchrd/colab-sdk 0.1.54 → 0.1.56

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 (46) hide show
  1. package/dist/action-blocks/action-blocks.d.ts +1 -0
  2. package/dist/action-blocks/action-blocks.js +22 -0
  3. package/dist/actions/actions.d.ts +356 -3
  4. package/dist/actions/actions.js +21 -3
  5. package/dist/boards/boards.d.ts +0 -14
  6. package/dist/boards/boards.js +3 -18
  7. package/dist/documents/documents.d.ts +2 -0
  8. package/dist/flows/flow-runs.d.ts +34 -0
  9. package/dist/flows/flow-runs.js +48 -4
  10. package/dist/flows/flows.d.ts +5 -0
  11. package/dist/flows/flows.js +3 -0
  12. package/dist/gadgets/gadgets.d.ts +4 -0
  13. package/dist/gadgets/gadgets.js +5 -0
  14. package/dist/goals/goals.d.ts +1 -0
  15. package/dist/goals/goals.js +2 -2
  16. package/dist/grammar/grammar.d.ts +1 -2
  17. package/dist/grammar/grammar.js +5 -7
  18. package/dist/home/home.d.ts +2 -0
  19. package/dist/links/links.d.ts +15 -2
  20. package/dist/links/links.js +25 -13
  21. package/dist/messages/messages.js +5 -4
  22. package/dist/nodes/nodes.d.ts +11 -6
  23. package/dist/nodes/nodes.js +11 -7
  24. package/dist/operators/operators.d.ts +87 -4
  25. package/dist/operators/operators.js +55 -2
  26. package/dist/processes/processes.d.ts +1999 -0
  27. package/dist/processes/processes.js +417 -0
  28. package/dist/runs/runs.d.ts +1 -200
  29. package/dist/runs/runs.js +3 -64
  30. package/dist/schedule/schedule.js +3 -3
  31. package/dist/sdk.d.ts +10 -11
  32. package/dist/sdk.js +10 -11
  33. package/dist/skills/skills.d.ts +1 -0
  34. package/dist/sources/sources.d.ts +4 -3
  35. package/dist/tables/tables.d.ts +114 -1
  36. package/dist/tables/tables.js +86 -2
  37. package/dist/tool.d.ts +1 -0
  38. package/dist/users/users.d.ts +30 -0
  39. package/dist/users/users.js +32 -0
  40. package/dist/written/written.d.ts +2 -4
  41. package/dist/written/written.js +2 -5
  42. package/package.json +2 -1
  43. package/dist/relations/relations.d.ts +0 -342
  44. package/dist/relations/relations.js +0 -129
  45. package/dist/types/types.d.ts +0 -181
  46. package/dist/types/types.js +0 -124
@@ -0,0 +1,1999 @@
1
+ import { z } from "zod";
2
+ export declare const ProcessId: z.ZodTemplateLiteral<`node_${string}`>;
3
+ export type ProcessId = z.infer<typeof ProcessId>;
4
+ export declare const ProcessStepId: z.ZodTemplateLiteral<`step_${string}`>;
5
+ export type ProcessStepId = z.infer<typeof ProcessStepId>;
6
+ export declare const ProcessActionId: z.ZodTemplateLiteral<`action_${string}`>;
7
+ export type ProcessActionId = z.infer<typeof ProcessActionId>;
8
+ export declare const processLimits: {
9
+ readonly steps: 30;
10
+ readonly actors: 30;
11
+ readonly actions: 200;
12
+ readonly connections: 20;
13
+ readonly starts: 10;
14
+ readonly actionSteps: 20;
15
+ readonly nodes: 40;
16
+ readonly processes: 30;
17
+ };
18
+ export declare const ProcessStep: z.ZodObject<{
19
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
20
+ name: z.ZodString;
21
+ }, z.core.$strict>;
22
+ export type ProcessStep = z.infer<typeof ProcessStep>;
23
+ export declare const ProcessActor: z.ZodObject<{
24
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
25
+ }, z.core.$strict>;
26
+ export type ProcessActor = z.infer<typeof ProcessActor>;
27
+ export declare const processStartKinds: readonly ["task", "goal", "mention"];
28
+ export declare const ProcessStartPlace: z.ZodDiscriminatedUnion<[z.ZodObject<{
29
+ kind: z.ZodLiteral<"task">;
30
+ boardId: z.ZodTemplateLiteral<`node_${string}`>;
31
+ columnId: z.ZodTemplateLiteral<`column_${string}`>;
32
+ }, z.core.$strict>, z.ZodObject<{
33
+ kind: z.ZodLiteral<"goal">;
34
+ goalId: z.ZodTemplateLiteral<`node_${string}`>;
35
+ }, z.core.$strict>, z.ZodObject<{
36
+ kind: z.ZodLiteral<"mention">;
37
+ nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
38
+ }, z.core.$strict>], "kind">;
39
+ export type ProcessStartPlace = z.infer<typeof ProcessStartPlace>;
40
+ export declare const ProcessStart: z.ZodObject<{
41
+ place: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
42
+ kind: z.ZodLiteral<"task">;
43
+ boardId: z.ZodTemplateLiteral<`node_${string}`>;
44
+ columnId: z.ZodTemplateLiteral<`column_${string}`>;
45
+ }, z.core.$strict>, z.ZodObject<{
46
+ kind: z.ZodLiteral<"goal">;
47
+ goalId: z.ZodTemplateLiteral<`node_${string}`>;
48
+ }, z.core.$strict>, z.ZodObject<{
49
+ kind: z.ZodLiteral<"mention">;
50
+ nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
51
+ }, z.core.$strict>], "kind">>;
52
+ name: z.ZodOptional<z.ZodString>;
53
+ when: z.ZodString;
54
+ }, z.core.$strict>;
55
+ export type ProcessStart = z.infer<typeof ProcessStart>;
56
+ export declare const ProcessConnectionTarget: z.ZodUnion<readonly [z.ZodObject<{
57
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
58
+ }, z.core.$strict>, z.ZodObject<{
59
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
60
+ }, z.core.$strict>]>;
61
+ export type ProcessConnectionTarget = z.infer<typeof ProcessConnectionTarget>;
62
+ export declare const ProcessConnection: z.ZodObject<{
63
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
64
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
65
+ }, z.core.$strict>, z.ZodObject<{
66
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
67
+ }, z.core.$strict>]>>;
68
+ name: z.ZodOptional<z.ZodString>;
69
+ when: z.ZodString;
70
+ }, z.core.$strict>;
71
+ export type ProcessConnection = z.infer<typeof ProcessConnection>;
72
+ export declare const processNodeKinds: readonly ["skill", "document", "table", "source", "gadget", "flow", "board", "task"];
73
+ export declare const ProcessNodeKind: z.ZodEnum<{
74
+ document: "document";
75
+ table: "table";
76
+ board: "board";
77
+ task: "task";
78
+ gadget: "gadget";
79
+ skill: "skill";
80
+ source: "source";
81
+ flow: "flow";
82
+ }>;
83
+ export type ProcessNodeKind = z.infer<typeof ProcessNodeKind>;
84
+ export declare const ProcessNode: z.ZodObject<{
85
+ nodeId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
86
+ name: z.ZodOptional<z.ZodString>;
87
+ kind: z.ZodOptional<z.ZodEnum<{
88
+ document: "document";
89
+ table: "table";
90
+ board: "board";
91
+ task: "task";
92
+ gadget: "gadget";
93
+ skill: "skill";
94
+ source: "source";
95
+ flow: "flow";
96
+ }>>;
97
+ description: z.ZodOptional<z.ZodString>;
98
+ }, z.core.$strict>;
99
+ export type ProcessNode = z.infer<typeof ProcessNode>;
100
+ export declare const ProcessActionStep: z.ZodObject<{
101
+ name: z.ZodString;
102
+ nodes: z.ZodArray<z.ZodObject<{
103
+ nodeId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
104
+ name: z.ZodOptional<z.ZodString>;
105
+ kind: z.ZodOptional<z.ZodEnum<{
106
+ document: "document";
107
+ table: "table";
108
+ board: "board";
109
+ task: "task";
110
+ gadget: "gadget";
111
+ skill: "skill";
112
+ source: "source";
113
+ flow: "flow";
114
+ }>>;
115
+ description: z.ZodOptional<z.ZodString>;
116
+ }, z.core.$strict>>;
117
+ }, z.core.$strict>;
118
+ export type ProcessActionStep = z.infer<typeof ProcessActionStep>;
119
+ export declare const ProcessAction: z.ZodObject<{
120
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
121
+ name: z.ZodString;
122
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
123
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
124
+ instruction: z.ZodString;
125
+ entry: z.ZodOptional<z.ZodBoolean>;
126
+ starts: z.ZodArray<z.ZodObject<{
127
+ place: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
128
+ kind: z.ZodLiteral<"task">;
129
+ boardId: z.ZodTemplateLiteral<`node_${string}`>;
130
+ columnId: z.ZodTemplateLiteral<`column_${string}`>;
131
+ }, z.core.$strict>, z.ZodObject<{
132
+ kind: z.ZodLiteral<"goal">;
133
+ goalId: z.ZodTemplateLiteral<`node_${string}`>;
134
+ }, z.core.$strict>, z.ZodObject<{
135
+ kind: z.ZodLiteral<"mention">;
136
+ nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
137
+ }, z.core.$strict>], "kind">>;
138
+ name: z.ZodOptional<z.ZodString>;
139
+ when: z.ZodString;
140
+ }, z.core.$strict>>;
141
+ steps: z.ZodArray<z.ZodObject<{
142
+ name: z.ZodString;
143
+ nodes: z.ZodArray<z.ZodObject<{
144
+ nodeId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
145
+ name: z.ZodOptional<z.ZodString>;
146
+ kind: z.ZodOptional<z.ZodEnum<{
147
+ document: "document";
148
+ table: "table";
149
+ board: "board";
150
+ task: "task";
151
+ gadget: "gadget";
152
+ skill: "skill";
153
+ source: "source";
154
+ flow: "flow";
155
+ }>>;
156
+ description: z.ZodOptional<z.ZodString>;
157
+ }, z.core.$strict>>;
158
+ }, z.core.$strict>>;
159
+ connections: z.ZodArray<z.ZodObject<{
160
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
161
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
162
+ }, z.core.$strict>, z.ZodObject<{
163
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
164
+ }, z.core.$strict>]>>;
165
+ name: z.ZodOptional<z.ZodString>;
166
+ when: z.ZodString;
167
+ }, z.core.$strict>>;
168
+ }, z.core.$strict>;
169
+ export type ProcessAction = z.infer<typeof ProcessAction>;
170
+ export declare const processPlacements: readonly ["inner", "outer"];
171
+ export declare const ProcessPlacement: z.ZodEnum<{
172
+ inner: "inner";
173
+ outer: "outer";
174
+ }>;
175
+ export type ProcessPlacement = z.infer<typeof ProcessPlacement>;
176
+ export declare const ProcessLinked: z.ZodObject<{
177
+ placement: z.ZodEnum<{
178
+ inner: "inner";
179
+ outer: "outer";
180
+ }>;
181
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
182
+ connections: z.ZodArray<z.ZodObject<{
183
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
184
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
185
+ }, z.core.$strict>, z.ZodObject<{
186
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
187
+ }, z.core.$strict>]>>;
188
+ name: z.ZodOptional<z.ZodString>;
189
+ when: z.ZodString;
190
+ }, z.core.$strict>>;
191
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
192
+ }, z.core.$strict>;
193
+ export declare const ProcessNew: z.ZodObject<{
194
+ placement: z.ZodLiteral<"inner">;
195
+ draft: z.ZodObject<{
196
+ processes: z.ZodArray<z.ZodObject<{
197
+ placement: z.ZodEnum<{
198
+ inner: "inner";
199
+ outer: "outer";
200
+ }>;
201
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
202
+ connections: z.ZodArray<z.ZodObject<{
203
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
204
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
205
+ }, z.core.$strict>, z.ZodObject<{
206
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
207
+ }, z.core.$strict>]>>;
208
+ name: z.ZodOptional<z.ZodString>;
209
+ when: z.ZodString;
210
+ }, z.core.$strict>>;
211
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
212
+ }, z.core.$strict>>;
213
+ instruction: z.ZodString;
214
+ steps: z.ZodArray<z.ZodObject<{
215
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
216
+ name: z.ZodString;
217
+ }, z.core.$strict>>;
218
+ actors: z.ZodArray<z.ZodObject<{
219
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
220
+ }, z.core.$strict>>;
221
+ actions: z.ZodArray<z.ZodObject<{
222
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
223
+ name: z.ZodString;
224
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
225
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
226
+ instruction: z.ZodString;
227
+ entry: z.ZodOptional<z.ZodBoolean>;
228
+ starts: z.ZodArray<z.ZodObject<{
229
+ place: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
230
+ kind: z.ZodLiteral<"task">;
231
+ boardId: z.ZodTemplateLiteral<`node_${string}`>;
232
+ columnId: z.ZodTemplateLiteral<`column_${string}`>;
233
+ }, z.core.$strict>, z.ZodObject<{
234
+ kind: z.ZodLiteral<"goal">;
235
+ goalId: z.ZodTemplateLiteral<`node_${string}`>;
236
+ }, z.core.$strict>, z.ZodObject<{
237
+ kind: z.ZodLiteral<"mention">;
238
+ nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
239
+ }, z.core.$strict>], "kind">>;
240
+ name: z.ZodOptional<z.ZodString>;
241
+ when: z.ZodString;
242
+ }, z.core.$strict>>;
243
+ steps: z.ZodArray<z.ZodObject<{
244
+ name: z.ZodString;
245
+ nodes: z.ZodArray<z.ZodObject<{
246
+ nodeId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
247
+ name: z.ZodOptional<z.ZodString>;
248
+ kind: z.ZodOptional<z.ZodEnum<{
249
+ document: "document";
250
+ table: "table";
251
+ board: "board";
252
+ task: "task";
253
+ gadget: "gadget";
254
+ skill: "skill";
255
+ source: "source";
256
+ flow: "flow";
257
+ }>>;
258
+ description: z.ZodOptional<z.ZodString>;
259
+ }, z.core.$strict>>;
260
+ }, z.core.$strict>>;
261
+ connections: z.ZodArray<z.ZodObject<{
262
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
263
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
264
+ }, z.core.$strict>, z.ZodObject<{
265
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
266
+ }, z.core.$strict>]>>;
267
+ name: z.ZodOptional<z.ZodString>;
268
+ when: z.ZodString;
269
+ }, z.core.$strict>>;
270
+ }, z.core.$strict>>;
271
+ name: z.ZodString;
272
+ }, z.core.$strict>;
273
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
274
+ connections: z.ZodArray<z.ZodObject<{
275
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
276
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
277
+ }, z.core.$strict>, z.ZodObject<{
278
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
279
+ }, z.core.$strict>]>>;
280
+ name: z.ZodOptional<z.ZodString>;
281
+ when: z.ZodString;
282
+ }, z.core.$strict>>;
283
+ processId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
284
+ }, z.core.$strict>;
285
+ export declare const ProcessOval: z.ZodUnion<readonly [z.ZodObject<{
286
+ placement: z.ZodLiteral<"inner">;
287
+ draft: z.ZodObject<{
288
+ processes: z.ZodArray<z.ZodObject<{
289
+ placement: z.ZodEnum<{
290
+ inner: "inner";
291
+ outer: "outer";
292
+ }>;
293
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
294
+ connections: z.ZodArray<z.ZodObject<{
295
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
296
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
297
+ }, z.core.$strict>, z.ZodObject<{
298
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
299
+ }, z.core.$strict>]>>;
300
+ name: z.ZodOptional<z.ZodString>;
301
+ when: z.ZodString;
302
+ }, z.core.$strict>>;
303
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
304
+ }, z.core.$strict>>;
305
+ instruction: z.ZodString;
306
+ steps: z.ZodArray<z.ZodObject<{
307
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
308
+ name: z.ZodString;
309
+ }, z.core.$strict>>;
310
+ actors: z.ZodArray<z.ZodObject<{
311
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
312
+ }, z.core.$strict>>;
313
+ actions: z.ZodArray<z.ZodObject<{
314
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
315
+ name: z.ZodString;
316
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
317
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
318
+ instruction: z.ZodString;
319
+ entry: z.ZodOptional<z.ZodBoolean>;
320
+ starts: z.ZodArray<z.ZodObject<{
321
+ place: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
322
+ kind: z.ZodLiteral<"task">;
323
+ boardId: z.ZodTemplateLiteral<`node_${string}`>;
324
+ columnId: z.ZodTemplateLiteral<`column_${string}`>;
325
+ }, z.core.$strict>, z.ZodObject<{
326
+ kind: z.ZodLiteral<"goal">;
327
+ goalId: z.ZodTemplateLiteral<`node_${string}`>;
328
+ }, z.core.$strict>, z.ZodObject<{
329
+ kind: z.ZodLiteral<"mention">;
330
+ nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
331
+ }, z.core.$strict>], "kind">>;
332
+ name: z.ZodOptional<z.ZodString>;
333
+ when: z.ZodString;
334
+ }, z.core.$strict>>;
335
+ steps: z.ZodArray<z.ZodObject<{
336
+ name: z.ZodString;
337
+ nodes: z.ZodArray<z.ZodObject<{
338
+ nodeId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
339
+ name: z.ZodOptional<z.ZodString>;
340
+ kind: z.ZodOptional<z.ZodEnum<{
341
+ document: "document";
342
+ table: "table";
343
+ board: "board";
344
+ task: "task";
345
+ gadget: "gadget";
346
+ skill: "skill";
347
+ source: "source";
348
+ flow: "flow";
349
+ }>>;
350
+ description: z.ZodOptional<z.ZodString>;
351
+ }, z.core.$strict>>;
352
+ }, z.core.$strict>>;
353
+ connections: z.ZodArray<z.ZodObject<{
354
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
355
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
356
+ }, z.core.$strict>, z.ZodObject<{
357
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
358
+ }, z.core.$strict>]>>;
359
+ name: z.ZodOptional<z.ZodString>;
360
+ when: z.ZodString;
361
+ }, z.core.$strict>>;
362
+ }, z.core.$strict>>;
363
+ name: z.ZodString;
364
+ }, z.core.$strict>;
365
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
366
+ connections: z.ZodArray<z.ZodObject<{
367
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
368
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
369
+ }, z.core.$strict>, z.ZodObject<{
370
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
371
+ }, z.core.$strict>]>>;
372
+ name: z.ZodOptional<z.ZodString>;
373
+ when: z.ZodString;
374
+ }, z.core.$strict>>;
375
+ processId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
376
+ }, z.core.$strict>, z.ZodObject<{
377
+ placement: z.ZodEnum<{
378
+ inner: "inner";
379
+ outer: "outer";
380
+ }>;
381
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
382
+ connections: z.ZodArray<z.ZodObject<{
383
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
384
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
385
+ }, z.core.$strict>, z.ZodObject<{
386
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
387
+ }, z.core.$strict>]>>;
388
+ name: z.ZodOptional<z.ZodString>;
389
+ when: z.ZodString;
390
+ }, z.core.$strict>>;
391
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
392
+ }, z.core.$strict>]>;
393
+ export type ProcessOval = z.infer<typeof ProcessOval>;
394
+ export declare const ProcessContentInput: z.ZodObject<{
395
+ processes: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
396
+ placement: z.ZodLiteral<"inner">;
397
+ draft: z.ZodObject<{
398
+ processes: z.ZodArray<z.ZodObject<{
399
+ placement: z.ZodEnum<{
400
+ inner: "inner";
401
+ outer: "outer";
402
+ }>;
403
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
404
+ connections: z.ZodArray<z.ZodObject<{
405
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
406
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
407
+ }, z.core.$strict>, z.ZodObject<{
408
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
409
+ }, z.core.$strict>]>>;
410
+ name: z.ZodOptional<z.ZodString>;
411
+ when: z.ZodString;
412
+ }, z.core.$strict>>;
413
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
414
+ }, z.core.$strict>>;
415
+ instruction: z.ZodString;
416
+ steps: z.ZodArray<z.ZodObject<{
417
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
418
+ name: z.ZodString;
419
+ }, z.core.$strict>>;
420
+ actors: z.ZodArray<z.ZodObject<{
421
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
422
+ }, z.core.$strict>>;
423
+ actions: z.ZodArray<z.ZodObject<{
424
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
425
+ name: z.ZodString;
426
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
427
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
428
+ instruction: z.ZodString;
429
+ entry: z.ZodOptional<z.ZodBoolean>;
430
+ starts: z.ZodArray<z.ZodObject<{
431
+ place: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
432
+ kind: z.ZodLiteral<"task">;
433
+ boardId: z.ZodTemplateLiteral<`node_${string}`>;
434
+ columnId: z.ZodTemplateLiteral<`column_${string}`>;
435
+ }, z.core.$strict>, z.ZodObject<{
436
+ kind: z.ZodLiteral<"goal">;
437
+ goalId: z.ZodTemplateLiteral<`node_${string}`>;
438
+ }, z.core.$strict>, z.ZodObject<{
439
+ kind: z.ZodLiteral<"mention">;
440
+ nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
441
+ }, z.core.$strict>], "kind">>;
442
+ name: z.ZodOptional<z.ZodString>;
443
+ when: z.ZodString;
444
+ }, z.core.$strict>>;
445
+ steps: z.ZodArray<z.ZodObject<{
446
+ name: z.ZodString;
447
+ nodes: z.ZodArray<z.ZodObject<{
448
+ nodeId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
449
+ name: z.ZodOptional<z.ZodString>;
450
+ kind: z.ZodOptional<z.ZodEnum<{
451
+ document: "document";
452
+ table: "table";
453
+ board: "board";
454
+ task: "task";
455
+ gadget: "gadget";
456
+ skill: "skill";
457
+ source: "source";
458
+ flow: "flow";
459
+ }>>;
460
+ description: z.ZodOptional<z.ZodString>;
461
+ }, z.core.$strict>>;
462
+ }, z.core.$strict>>;
463
+ connections: z.ZodArray<z.ZodObject<{
464
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
465
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
466
+ }, z.core.$strict>, z.ZodObject<{
467
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
468
+ }, z.core.$strict>]>>;
469
+ name: z.ZodOptional<z.ZodString>;
470
+ when: z.ZodString;
471
+ }, z.core.$strict>>;
472
+ }, z.core.$strict>>;
473
+ name: z.ZodString;
474
+ }, z.core.$strict>;
475
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
476
+ connections: z.ZodArray<z.ZodObject<{
477
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
478
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
479
+ }, z.core.$strict>, z.ZodObject<{
480
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
481
+ }, z.core.$strict>]>>;
482
+ name: z.ZodOptional<z.ZodString>;
483
+ when: z.ZodString;
484
+ }, z.core.$strict>>;
485
+ processId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
486
+ }, z.core.$strict>, z.ZodObject<{
487
+ placement: z.ZodEnum<{
488
+ inner: "inner";
489
+ outer: "outer";
490
+ }>;
491
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
492
+ connections: z.ZodArray<z.ZodObject<{
493
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
494
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
495
+ }, z.core.$strict>, z.ZodObject<{
496
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
497
+ }, z.core.$strict>]>>;
498
+ name: z.ZodOptional<z.ZodString>;
499
+ when: z.ZodString;
500
+ }, z.core.$strict>>;
501
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
502
+ }, z.core.$strict>]>>;
503
+ instruction: z.ZodString;
504
+ steps: z.ZodArray<z.ZodObject<{
505
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
506
+ name: z.ZodString;
507
+ }, z.core.$strict>>;
508
+ actors: z.ZodArray<z.ZodObject<{
509
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
510
+ }, z.core.$strict>>;
511
+ actions: z.ZodArray<z.ZodObject<{
512
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
513
+ name: z.ZodString;
514
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
515
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
516
+ instruction: z.ZodString;
517
+ entry: z.ZodOptional<z.ZodBoolean>;
518
+ starts: z.ZodArray<z.ZodObject<{
519
+ place: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
520
+ kind: z.ZodLiteral<"task">;
521
+ boardId: z.ZodTemplateLiteral<`node_${string}`>;
522
+ columnId: z.ZodTemplateLiteral<`column_${string}`>;
523
+ }, z.core.$strict>, z.ZodObject<{
524
+ kind: z.ZodLiteral<"goal">;
525
+ goalId: z.ZodTemplateLiteral<`node_${string}`>;
526
+ }, z.core.$strict>, z.ZodObject<{
527
+ kind: z.ZodLiteral<"mention">;
528
+ nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
529
+ }, z.core.$strict>], "kind">>;
530
+ name: z.ZodOptional<z.ZodString>;
531
+ when: z.ZodString;
532
+ }, z.core.$strict>>;
533
+ steps: z.ZodArray<z.ZodObject<{
534
+ name: z.ZodString;
535
+ nodes: z.ZodArray<z.ZodObject<{
536
+ nodeId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
537
+ name: z.ZodOptional<z.ZodString>;
538
+ kind: z.ZodOptional<z.ZodEnum<{
539
+ document: "document";
540
+ table: "table";
541
+ board: "board";
542
+ task: "task";
543
+ gadget: "gadget";
544
+ skill: "skill";
545
+ source: "source";
546
+ flow: "flow";
547
+ }>>;
548
+ description: z.ZodOptional<z.ZodString>;
549
+ }, z.core.$strict>>;
550
+ }, z.core.$strict>>;
551
+ connections: z.ZodArray<z.ZodObject<{
552
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
553
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
554
+ }, z.core.$strict>, z.ZodObject<{
555
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
556
+ }, z.core.$strict>]>>;
557
+ name: z.ZodOptional<z.ZodString>;
558
+ when: z.ZodString;
559
+ }, z.core.$strict>>;
560
+ }, z.core.$strict>>;
561
+ }, z.core.$strict>;
562
+ export type ProcessContentInput = z.infer<typeof ProcessContentInput>;
563
+ declare const StoredNew: z.ZodObject<{
564
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
565
+ placement: z.ZodLiteral<"inner">;
566
+ draft: z.ZodObject<{
567
+ processes: z.ZodArray<z.ZodObject<{
568
+ placement: z.ZodEnum<{
569
+ inner: "inner";
570
+ outer: "outer";
571
+ }>;
572
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
573
+ connections: z.ZodArray<z.ZodObject<{
574
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
575
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
576
+ }, z.core.$strict>, z.ZodObject<{
577
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
578
+ }, z.core.$strict>]>>;
579
+ name: z.ZodOptional<z.ZodString>;
580
+ when: z.ZodString;
581
+ }, z.core.$strict>>;
582
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
583
+ }, z.core.$strict>>;
584
+ instruction: z.ZodString;
585
+ steps: z.ZodArray<z.ZodObject<{
586
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
587
+ name: z.ZodString;
588
+ }, z.core.$strict>>;
589
+ actors: z.ZodArray<z.ZodObject<{
590
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
591
+ }, z.core.$strict>>;
592
+ actions: z.ZodArray<z.ZodObject<{
593
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
594
+ name: z.ZodString;
595
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
596
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
597
+ instruction: z.ZodString;
598
+ entry: z.ZodOptional<z.ZodBoolean>;
599
+ starts: z.ZodArray<z.ZodObject<{
600
+ place: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
601
+ kind: z.ZodLiteral<"task">;
602
+ boardId: z.ZodTemplateLiteral<`node_${string}`>;
603
+ columnId: z.ZodTemplateLiteral<`column_${string}`>;
604
+ }, z.core.$strict>, z.ZodObject<{
605
+ kind: z.ZodLiteral<"goal">;
606
+ goalId: z.ZodTemplateLiteral<`node_${string}`>;
607
+ }, z.core.$strict>, z.ZodObject<{
608
+ kind: z.ZodLiteral<"mention">;
609
+ nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
610
+ }, z.core.$strict>], "kind">>;
611
+ name: z.ZodOptional<z.ZodString>;
612
+ when: z.ZodString;
613
+ }, z.core.$strict>>;
614
+ steps: z.ZodArray<z.ZodObject<{
615
+ name: z.ZodString;
616
+ nodes: z.ZodArray<z.ZodObject<{
617
+ nodeId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
618
+ name: z.ZodOptional<z.ZodString>;
619
+ kind: z.ZodOptional<z.ZodEnum<{
620
+ document: "document";
621
+ table: "table";
622
+ board: "board";
623
+ task: "task";
624
+ gadget: "gadget";
625
+ skill: "skill";
626
+ source: "source";
627
+ flow: "flow";
628
+ }>>;
629
+ description: z.ZodOptional<z.ZodString>;
630
+ }, z.core.$strict>>;
631
+ }, z.core.$strict>>;
632
+ connections: z.ZodArray<z.ZodObject<{
633
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
634
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
635
+ }, z.core.$strict>, z.ZodObject<{
636
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
637
+ }, z.core.$strict>]>>;
638
+ name: z.ZodOptional<z.ZodString>;
639
+ when: z.ZodString;
640
+ }, z.core.$strict>>;
641
+ }, z.core.$strict>>;
642
+ name: z.ZodString;
643
+ }, z.core.$strict>;
644
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
645
+ connections: z.ZodArray<z.ZodObject<{
646
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
647
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
648
+ }, z.core.$strict>, z.ZodObject<{
649
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
650
+ }, z.core.$strict>]>>;
651
+ name: z.ZodOptional<z.ZodString>;
652
+ when: z.ZodString;
653
+ }, z.core.$strict>>;
654
+ }, z.core.$strip>;
655
+ export declare const ProcessContent: z.ZodObject<{
656
+ processes: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
657
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
658
+ placement: z.ZodLiteral<"inner">;
659
+ draft: z.ZodObject<{
660
+ processes: z.ZodArray<z.ZodObject<{
661
+ placement: z.ZodEnum<{
662
+ inner: "inner";
663
+ outer: "outer";
664
+ }>;
665
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
666
+ connections: z.ZodArray<z.ZodObject<{
667
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
668
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
669
+ }, z.core.$strict>, z.ZodObject<{
670
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
671
+ }, z.core.$strict>]>>;
672
+ name: z.ZodOptional<z.ZodString>;
673
+ when: z.ZodString;
674
+ }, z.core.$strict>>;
675
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
676
+ }, z.core.$strict>>;
677
+ instruction: z.ZodString;
678
+ steps: z.ZodArray<z.ZodObject<{
679
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
680
+ name: z.ZodString;
681
+ }, z.core.$strict>>;
682
+ actors: z.ZodArray<z.ZodObject<{
683
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
684
+ }, z.core.$strict>>;
685
+ actions: z.ZodArray<z.ZodObject<{
686
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
687
+ name: z.ZodString;
688
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
689
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
690
+ instruction: z.ZodString;
691
+ entry: z.ZodOptional<z.ZodBoolean>;
692
+ starts: z.ZodArray<z.ZodObject<{
693
+ place: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
694
+ kind: z.ZodLiteral<"task">;
695
+ boardId: z.ZodTemplateLiteral<`node_${string}`>;
696
+ columnId: z.ZodTemplateLiteral<`column_${string}`>;
697
+ }, z.core.$strict>, z.ZodObject<{
698
+ kind: z.ZodLiteral<"goal">;
699
+ goalId: z.ZodTemplateLiteral<`node_${string}`>;
700
+ }, z.core.$strict>, z.ZodObject<{
701
+ kind: z.ZodLiteral<"mention">;
702
+ nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
703
+ }, z.core.$strict>], "kind">>;
704
+ name: z.ZodOptional<z.ZodString>;
705
+ when: z.ZodString;
706
+ }, z.core.$strict>>;
707
+ steps: z.ZodArray<z.ZodObject<{
708
+ name: z.ZodString;
709
+ nodes: z.ZodArray<z.ZodObject<{
710
+ nodeId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
711
+ name: z.ZodOptional<z.ZodString>;
712
+ kind: z.ZodOptional<z.ZodEnum<{
713
+ document: "document";
714
+ table: "table";
715
+ board: "board";
716
+ task: "task";
717
+ gadget: "gadget";
718
+ skill: "skill";
719
+ source: "source";
720
+ flow: "flow";
721
+ }>>;
722
+ description: z.ZodOptional<z.ZodString>;
723
+ }, z.core.$strict>>;
724
+ }, z.core.$strict>>;
725
+ connections: z.ZodArray<z.ZodObject<{
726
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
727
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
728
+ }, z.core.$strict>, z.ZodObject<{
729
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
730
+ }, z.core.$strict>]>>;
731
+ name: z.ZodOptional<z.ZodString>;
732
+ when: z.ZodString;
733
+ }, z.core.$strict>>;
734
+ }, z.core.$strict>>;
735
+ name: z.ZodString;
736
+ }, z.core.$strict>;
737
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
738
+ connections: z.ZodArray<z.ZodObject<{
739
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
740
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
741
+ }, z.core.$strict>, z.ZodObject<{
742
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
743
+ }, z.core.$strict>]>>;
744
+ name: z.ZodOptional<z.ZodString>;
745
+ when: z.ZodString;
746
+ }, z.core.$strict>>;
747
+ }, z.core.$strip>, z.ZodObject<{
748
+ placement: z.ZodEnum<{
749
+ inner: "inner";
750
+ outer: "outer";
751
+ }>;
752
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
753
+ connections: z.ZodArray<z.ZodObject<{
754
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
755
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
756
+ }, z.core.$strict>, z.ZodObject<{
757
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
758
+ }, z.core.$strict>]>>;
759
+ name: z.ZodOptional<z.ZodString>;
760
+ when: z.ZodString;
761
+ }, z.core.$strict>>;
762
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
763
+ }, z.core.$strict>]>>;
764
+ instruction: z.ZodString;
765
+ steps: z.ZodArray<z.ZodObject<{
766
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
767
+ name: z.ZodString;
768
+ }, z.core.$strict>>;
769
+ actors: z.ZodArray<z.ZodObject<{
770
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
771
+ }, z.core.$strict>>;
772
+ actions: z.ZodArray<z.ZodObject<{
773
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
774
+ name: z.ZodString;
775
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
776
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
777
+ instruction: z.ZodString;
778
+ entry: z.ZodOptional<z.ZodBoolean>;
779
+ starts: z.ZodArray<z.ZodObject<{
780
+ place: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
781
+ kind: z.ZodLiteral<"task">;
782
+ boardId: z.ZodTemplateLiteral<`node_${string}`>;
783
+ columnId: z.ZodTemplateLiteral<`column_${string}`>;
784
+ }, z.core.$strict>, z.ZodObject<{
785
+ kind: z.ZodLiteral<"goal">;
786
+ goalId: z.ZodTemplateLiteral<`node_${string}`>;
787
+ }, z.core.$strict>, z.ZodObject<{
788
+ kind: z.ZodLiteral<"mention">;
789
+ nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
790
+ }, z.core.$strict>], "kind">>;
791
+ name: z.ZodOptional<z.ZodString>;
792
+ when: z.ZodString;
793
+ }, z.core.$strict>>;
794
+ steps: z.ZodArray<z.ZodObject<{
795
+ name: z.ZodString;
796
+ nodes: z.ZodArray<z.ZodObject<{
797
+ nodeId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
798
+ name: z.ZodOptional<z.ZodString>;
799
+ kind: z.ZodOptional<z.ZodEnum<{
800
+ document: "document";
801
+ table: "table";
802
+ board: "board";
803
+ task: "task";
804
+ gadget: "gadget";
805
+ skill: "skill";
806
+ source: "source";
807
+ flow: "flow";
808
+ }>>;
809
+ description: z.ZodOptional<z.ZodString>;
810
+ }, z.core.$strict>>;
811
+ }, z.core.$strict>>;
812
+ connections: z.ZodArray<z.ZodObject<{
813
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
814
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
815
+ }, z.core.$strict>, z.ZodObject<{
816
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
817
+ }, z.core.$strict>]>>;
818
+ name: z.ZodOptional<z.ZodString>;
819
+ when: z.ZodString;
820
+ }, z.core.$strict>>;
821
+ }, z.core.$strict>>;
822
+ }, z.core.$strip>;
823
+ export type ProcessContent = z.infer<typeof ProcessContent>;
824
+ export type ProcessNewOval = z.infer<typeof StoredNew>;
825
+ export type ProcessLinkedOval = z.infer<typeof ProcessLinked>;
826
+ export declare const ProcessVersionContent: z.ZodObject<{
827
+ processes: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
828
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
829
+ placement: z.ZodLiteral<"inner">;
830
+ draft: z.ZodObject<{
831
+ processes: z.ZodArray<z.ZodObject<{
832
+ placement: z.ZodEnum<{
833
+ inner: "inner";
834
+ outer: "outer";
835
+ }>;
836
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
837
+ connections: z.ZodArray<z.ZodObject<{
838
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
839
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
840
+ }, z.core.$strict>, z.ZodObject<{
841
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
842
+ }, z.core.$strict>]>>;
843
+ name: z.ZodOptional<z.ZodString>;
844
+ when: z.ZodString;
845
+ }, z.core.$strict>>;
846
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
847
+ }, z.core.$strict>>;
848
+ instruction: z.ZodString;
849
+ steps: z.ZodArray<z.ZodObject<{
850
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
851
+ name: z.ZodString;
852
+ }, z.core.$strict>>;
853
+ actors: z.ZodArray<z.ZodObject<{
854
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
855
+ }, z.core.$strict>>;
856
+ actions: z.ZodArray<z.ZodObject<{
857
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
858
+ name: z.ZodString;
859
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
860
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
861
+ instruction: z.ZodString;
862
+ entry: z.ZodOptional<z.ZodBoolean>;
863
+ starts: z.ZodArray<z.ZodObject<{
864
+ place: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
865
+ kind: z.ZodLiteral<"task">;
866
+ boardId: z.ZodTemplateLiteral<`node_${string}`>;
867
+ columnId: z.ZodTemplateLiteral<`column_${string}`>;
868
+ }, z.core.$strict>, z.ZodObject<{
869
+ kind: z.ZodLiteral<"goal">;
870
+ goalId: z.ZodTemplateLiteral<`node_${string}`>;
871
+ }, z.core.$strict>, z.ZodObject<{
872
+ kind: z.ZodLiteral<"mention">;
873
+ nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
874
+ }, z.core.$strict>], "kind">>;
875
+ name: z.ZodOptional<z.ZodString>;
876
+ when: z.ZodString;
877
+ }, z.core.$strict>>;
878
+ steps: z.ZodArray<z.ZodObject<{
879
+ name: z.ZodString;
880
+ nodes: z.ZodArray<z.ZodObject<{
881
+ nodeId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
882
+ name: z.ZodOptional<z.ZodString>;
883
+ kind: z.ZodOptional<z.ZodEnum<{
884
+ document: "document";
885
+ table: "table";
886
+ board: "board";
887
+ task: "task";
888
+ gadget: "gadget";
889
+ skill: "skill";
890
+ source: "source";
891
+ flow: "flow";
892
+ }>>;
893
+ description: z.ZodOptional<z.ZodString>;
894
+ }, z.core.$strict>>;
895
+ }, z.core.$strict>>;
896
+ connections: z.ZodArray<z.ZodObject<{
897
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
898
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
899
+ }, z.core.$strict>, z.ZodObject<{
900
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
901
+ }, z.core.$strict>]>>;
902
+ name: z.ZodOptional<z.ZodString>;
903
+ when: z.ZodString;
904
+ }, z.core.$strict>>;
905
+ }, z.core.$strict>>;
906
+ name: z.ZodString;
907
+ }, z.core.$strict>;
908
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
909
+ connections: z.ZodArray<z.ZodObject<{
910
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
911
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
912
+ }, z.core.$strict>, z.ZodObject<{
913
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
914
+ }, z.core.$strict>]>>;
915
+ name: z.ZodOptional<z.ZodString>;
916
+ when: z.ZodString;
917
+ }, z.core.$strict>>;
918
+ }, z.core.$strip>, z.ZodObject<{
919
+ placement: z.ZodEnum<{
920
+ inner: "inner";
921
+ outer: "outer";
922
+ }>;
923
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
924
+ connections: z.ZodArray<z.ZodObject<{
925
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
926
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
927
+ }, z.core.$strict>, z.ZodObject<{
928
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
929
+ }, z.core.$strict>]>>;
930
+ name: z.ZodOptional<z.ZodString>;
931
+ when: z.ZodString;
932
+ }, z.core.$strict>>;
933
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
934
+ }, z.core.$strict>]>>;
935
+ instruction: z.ZodString;
936
+ steps: z.ZodArray<z.ZodObject<{
937
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
938
+ name: z.ZodString;
939
+ }, z.core.$strict>>;
940
+ actors: z.ZodArray<z.ZodObject<{
941
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
942
+ }, z.core.$strict>>;
943
+ actions: z.ZodArray<z.ZodObject<{
944
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
945
+ name: z.ZodString;
946
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
947
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
948
+ instruction: z.ZodString;
949
+ entry: z.ZodOptional<z.ZodBoolean>;
950
+ starts: z.ZodArray<z.ZodObject<{
951
+ place: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
952
+ kind: z.ZodLiteral<"task">;
953
+ boardId: z.ZodTemplateLiteral<`node_${string}`>;
954
+ columnId: z.ZodTemplateLiteral<`column_${string}`>;
955
+ }, z.core.$strict>, z.ZodObject<{
956
+ kind: z.ZodLiteral<"goal">;
957
+ goalId: z.ZodTemplateLiteral<`node_${string}`>;
958
+ }, z.core.$strict>, z.ZodObject<{
959
+ kind: z.ZodLiteral<"mention">;
960
+ nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
961
+ }, z.core.$strict>], "kind">>;
962
+ name: z.ZodOptional<z.ZodString>;
963
+ when: z.ZodString;
964
+ }, z.core.$strict>>;
965
+ steps: z.ZodArray<z.ZodObject<{
966
+ name: z.ZodString;
967
+ nodes: z.ZodArray<z.ZodObject<{
968
+ nodeId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
969
+ name: z.ZodOptional<z.ZodString>;
970
+ kind: z.ZodOptional<z.ZodEnum<{
971
+ document: "document";
972
+ table: "table";
973
+ board: "board";
974
+ task: "task";
975
+ gadget: "gadget";
976
+ skill: "skill";
977
+ source: "source";
978
+ flow: "flow";
979
+ }>>;
980
+ description: z.ZodOptional<z.ZodString>;
981
+ }, z.core.$strict>>;
982
+ }, z.core.$strict>>;
983
+ connections: z.ZodArray<z.ZodObject<{
984
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
985
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
986
+ }, z.core.$strict>, z.ZodObject<{
987
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
988
+ }, z.core.$strict>]>>;
989
+ name: z.ZodOptional<z.ZodString>;
990
+ when: z.ZodString;
991
+ }, z.core.$strict>>;
992
+ }, z.core.$strict>>;
993
+ }, z.core.$strip>;
994
+ export type ProcessVersionContent = ProcessContent;
995
+ export declare const processFindingCodes: readonly ["unwoken", "void", "right", "sketch"];
996
+ export declare const ProcessFindingCode: z.ZodEnum<{
997
+ void: "void";
998
+ right: "right";
999
+ unwoken: "unwoken";
1000
+ sketch: "sketch";
1001
+ }>;
1002
+ export type ProcessFindingCode = z.infer<typeof ProcessFindingCode>;
1003
+ export declare const ProcessFindingPlace: z.ZodObject<{
1004
+ path: z.ZodArray<z.ZodObject<{
1005
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1006
+ name: z.ZodString;
1007
+ }, z.core.$strip>>;
1008
+ actionId: z.ZodNullable<z.ZodTemplateLiteral<`action_${string}`>>;
1009
+ actionName: z.ZodNullable<z.ZodString>;
1010
+ nodeId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
1011
+ nodeName: z.ZodNullable<z.ZodString>;
1012
+ start: z.ZodNullable<z.ZodNumber>;
1013
+ step: z.ZodNullable<z.ZodNumber>;
1014
+ entry: z.ZodNullable<z.ZodNumber>;
1015
+ connection: z.ZodNullable<z.ZodNumber>;
1016
+ }, z.core.$strip>;
1017
+ export type ProcessFindingPlace = z.infer<typeof ProcessFindingPlace>;
1018
+ export declare const ProcessFinding: z.ZodObject<{
1019
+ level: z.ZodEnum<{
1020
+ error: "error";
1021
+ warning: "warning";
1022
+ }>;
1023
+ code: z.ZodEnum<{
1024
+ void: "void";
1025
+ right: "right";
1026
+ unwoken: "unwoken";
1027
+ sketch: "sketch";
1028
+ }>;
1029
+ message: z.ZodString;
1030
+ at: z.ZodObject<{
1031
+ path: z.ZodArray<z.ZodObject<{
1032
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1033
+ name: z.ZodString;
1034
+ }, z.core.$strip>>;
1035
+ actionId: z.ZodNullable<z.ZodTemplateLiteral<`action_${string}`>>;
1036
+ actionName: z.ZodNullable<z.ZodString>;
1037
+ nodeId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
1038
+ nodeName: z.ZodNullable<z.ZodString>;
1039
+ start: z.ZodNullable<z.ZodNumber>;
1040
+ step: z.ZodNullable<z.ZodNumber>;
1041
+ entry: z.ZodNullable<z.ZodNumber>;
1042
+ connection: z.ZodNullable<z.ZodNumber>;
1043
+ }, z.core.$strip>;
1044
+ }, z.core.$strip>;
1045
+ export type ProcessFinding = z.infer<typeof ProcessFinding>;
1046
+ export declare const ProcessCreateInput: z.ZodObject<{
1047
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1048
+ rev: z.ZodNumber;
1049
+ draft: z.ZodObject<{
1050
+ processes: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1051
+ placement: z.ZodLiteral<"inner">;
1052
+ draft: z.ZodObject<{
1053
+ processes: z.ZodArray<z.ZodObject<{
1054
+ placement: z.ZodEnum<{
1055
+ inner: "inner";
1056
+ outer: "outer";
1057
+ }>;
1058
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
1059
+ connections: z.ZodArray<z.ZodObject<{
1060
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
1061
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1062
+ }, z.core.$strict>, z.ZodObject<{
1063
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1064
+ }, z.core.$strict>]>>;
1065
+ name: z.ZodOptional<z.ZodString>;
1066
+ when: z.ZodString;
1067
+ }, z.core.$strict>>;
1068
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1069
+ }, z.core.$strict>>;
1070
+ instruction: z.ZodString;
1071
+ steps: z.ZodArray<z.ZodObject<{
1072
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
1073
+ name: z.ZodString;
1074
+ }, z.core.$strict>>;
1075
+ actors: z.ZodArray<z.ZodObject<{
1076
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
1077
+ }, z.core.$strict>>;
1078
+ actions: z.ZodArray<z.ZodObject<{
1079
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1080
+ name: z.ZodString;
1081
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
1082
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
1083
+ instruction: z.ZodString;
1084
+ entry: z.ZodOptional<z.ZodBoolean>;
1085
+ starts: z.ZodArray<z.ZodObject<{
1086
+ place: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1087
+ kind: z.ZodLiteral<"task">;
1088
+ boardId: z.ZodTemplateLiteral<`node_${string}`>;
1089
+ columnId: z.ZodTemplateLiteral<`column_${string}`>;
1090
+ }, z.core.$strict>, z.ZodObject<{
1091
+ kind: z.ZodLiteral<"goal">;
1092
+ goalId: z.ZodTemplateLiteral<`node_${string}`>;
1093
+ }, z.core.$strict>, z.ZodObject<{
1094
+ kind: z.ZodLiteral<"mention">;
1095
+ nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
1096
+ }, z.core.$strict>], "kind">>;
1097
+ name: z.ZodOptional<z.ZodString>;
1098
+ when: z.ZodString;
1099
+ }, z.core.$strict>>;
1100
+ steps: z.ZodArray<z.ZodObject<{
1101
+ name: z.ZodString;
1102
+ nodes: z.ZodArray<z.ZodObject<{
1103
+ nodeId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
1104
+ name: z.ZodOptional<z.ZodString>;
1105
+ kind: z.ZodOptional<z.ZodEnum<{
1106
+ document: "document";
1107
+ table: "table";
1108
+ board: "board";
1109
+ task: "task";
1110
+ gadget: "gadget";
1111
+ skill: "skill";
1112
+ source: "source";
1113
+ flow: "flow";
1114
+ }>>;
1115
+ description: z.ZodOptional<z.ZodString>;
1116
+ }, z.core.$strict>>;
1117
+ }, z.core.$strict>>;
1118
+ connections: z.ZodArray<z.ZodObject<{
1119
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
1120
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1121
+ }, z.core.$strict>, z.ZodObject<{
1122
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1123
+ }, z.core.$strict>]>>;
1124
+ name: z.ZodOptional<z.ZodString>;
1125
+ when: z.ZodString;
1126
+ }, z.core.$strict>>;
1127
+ }, z.core.$strict>>;
1128
+ name: z.ZodString;
1129
+ }, z.core.$strict>;
1130
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
1131
+ connections: z.ZodArray<z.ZodObject<{
1132
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
1133
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1134
+ }, z.core.$strict>, z.ZodObject<{
1135
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1136
+ }, z.core.$strict>]>>;
1137
+ name: z.ZodOptional<z.ZodString>;
1138
+ when: z.ZodString;
1139
+ }, z.core.$strict>>;
1140
+ processId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
1141
+ }, z.core.$strict>, z.ZodObject<{
1142
+ placement: z.ZodEnum<{
1143
+ inner: "inner";
1144
+ outer: "outer";
1145
+ }>;
1146
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
1147
+ connections: z.ZodArray<z.ZodObject<{
1148
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
1149
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1150
+ }, z.core.$strict>, z.ZodObject<{
1151
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1152
+ }, z.core.$strict>]>>;
1153
+ name: z.ZodOptional<z.ZodString>;
1154
+ when: z.ZodString;
1155
+ }, z.core.$strict>>;
1156
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1157
+ }, z.core.$strict>]>>;
1158
+ instruction: z.ZodString;
1159
+ steps: z.ZodArray<z.ZodObject<{
1160
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
1161
+ name: z.ZodString;
1162
+ }, z.core.$strict>>;
1163
+ actors: z.ZodArray<z.ZodObject<{
1164
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
1165
+ }, z.core.$strict>>;
1166
+ actions: z.ZodArray<z.ZodObject<{
1167
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1168
+ name: z.ZodString;
1169
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
1170
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
1171
+ instruction: z.ZodString;
1172
+ entry: z.ZodOptional<z.ZodBoolean>;
1173
+ starts: z.ZodArray<z.ZodObject<{
1174
+ place: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1175
+ kind: z.ZodLiteral<"task">;
1176
+ boardId: z.ZodTemplateLiteral<`node_${string}`>;
1177
+ columnId: z.ZodTemplateLiteral<`column_${string}`>;
1178
+ }, z.core.$strict>, z.ZodObject<{
1179
+ kind: z.ZodLiteral<"goal">;
1180
+ goalId: z.ZodTemplateLiteral<`node_${string}`>;
1181
+ }, z.core.$strict>, z.ZodObject<{
1182
+ kind: z.ZodLiteral<"mention">;
1183
+ nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
1184
+ }, z.core.$strict>], "kind">>;
1185
+ name: z.ZodOptional<z.ZodString>;
1186
+ when: z.ZodString;
1187
+ }, z.core.$strict>>;
1188
+ steps: z.ZodArray<z.ZodObject<{
1189
+ name: z.ZodString;
1190
+ nodes: z.ZodArray<z.ZodObject<{
1191
+ nodeId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
1192
+ name: z.ZodOptional<z.ZodString>;
1193
+ kind: z.ZodOptional<z.ZodEnum<{
1194
+ document: "document";
1195
+ table: "table";
1196
+ board: "board";
1197
+ task: "task";
1198
+ gadget: "gadget";
1199
+ skill: "skill";
1200
+ source: "source";
1201
+ flow: "flow";
1202
+ }>>;
1203
+ description: z.ZodOptional<z.ZodString>;
1204
+ }, z.core.$strict>>;
1205
+ }, z.core.$strict>>;
1206
+ connections: z.ZodArray<z.ZodObject<{
1207
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
1208
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1209
+ }, z.core.$strict>, z.ZodObject<{
1210
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1211
+ }, z.core.$strict>]>>;
1212
+ name: z.ZodOptional<z.ZodString>;
1213
+ when: z.ZodString;
1214
+ }, z.core.$strict>>;
1215
+ }, z.core.$strict>>;
1216
+ }, z.core.$strict>;
1217
+ }, z.core.$strict>;
1218
+ export type ProcessCreateInput = z.infer<typeof ProcessCreateInput>;
1219
+ export declare const ProcessGetInput: z.ZodObject<{
1220
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1221
+ version: z.ZodOptional<z.ZodPreprocess<z.ZodUnion<readonly [z.ZodEnum<{
1222
+ live: "live";
1223
+ draft: "draft";
1224
+ }>, z.ZodNumber]>, unknown>>;
1225
+ }, z.core.$strict>;
1226
+ export type ProcessGetInput = z.infer<typeof ProcessGetInput>;
1227
+ export declare const ProcessUpdateInput: z.ZodObject<{
1228
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1229
+ rev: z.ZodNumber;
1230
+ draft: z.ZodOptional<z.ZodObject<{
1231
+ processes: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1232
+ placement: z.ZodLiteral<"inner">;
1233
+ draft: z.ZodObject<{
1234
+ processes: z.ZodArray<z.ZodObject<{
1235
+ placement: z.ZodEnum<{
1236
+ inner: "inner";
1237
+ outer: "outer";
1238
+ }>;
1239
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
1240
+ connections: z.ZodArray<z.ZodObject<{
1241
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
1242
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1243
+ }, z.core.$strict>, z.ZodObject<{
1244
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1245
+ }, z.core.$strict>]>>;
1246
+ name: z.ZodOptional<z.ZodString>;
1247
+ when: z.ZodString;
1248
+ }, z.core.$strict>>;
1249
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1250
+ }, z.core.$strict>>;
1251
+ instruction: z.ZodString;
1252
+ steps: z.ZodArray<z.ZodObject<{
1253
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
1254
+ name: z.ZodString;
1255
+ }, z.core.$strict>>;
1256
+ actors: z.ZodArray<z.ZodObject<{
1257
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
1258
+ }, z.core.$strict>>;
1259
+ actions: z.ZodArray<z.ZodObject<{
1260
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1261
+ name: z.ZodString;
1262
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
1263
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
1264
+ instruction: z.ZodString;
1265
+ entry: z.ZodOptional<z.ZodBoolean>;
1266
+ starts: z.ZodArray<z.ZodObject<{
1267
+ place: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1268
+ kind: z.ZodLiteral<"task">;
1269
+ boardId: z.ZodTemplateLiteral<`node_${string}`>;
1270
+ columnId: z.ZodTemplateLiteral<`column_${string}`>;
1271
+ }, z.core.$strict>, z.ZodObject<{
1272
+ kind: z.ZodLiteral<"goal">;
1273
+ goalId: z.ZodTemplateLiteral<`node_${string}`>;
1274
+ }, z.core.$strict>, z.ZodObject<{
1275
+ kind: z.ZodLiteral<"mention">;
1276
+ nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
1277
+ }, z.core.$strict>], "kind">>;
1278
+ name: z.ZodOptional<z.ZodString>;
1279
+ when: z.ZodString;
1280
+ }, z.core.$strict>>;
1281
+ steps: z.ZodArray<z.ZodObject<{
1282
+ name: z.ZodString;
1283
+ nodes: z.ZodArray<z.ZodObject<{
1284
+ nodeId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
1285
+ name: z.ZodOptional<z.ZodString>;
1286
+ kind: z.ZodOptional<z.ZodEnum<{
1287
+ document: "document";
1288
+ table: "table";
1289
+ board: "board";
1290
+ task: "task";
1291
+ gadget: "gadget";
1292
+ skill: "skill";
1293
+ source: "source";
1294
+ flow: "flow";
1295
+ }>>;
1296
+ description: z.ZodOptional<z.ZodString>;
1297
+ }, z.core.$strict>>;
1298
+ }, z.core.$strict>>;
1299
+ connections: z.ZodArray<z.ZodObject<{
1300
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
1301
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1302
+ }, z.core.$strict>, z.ZodObject<{
1303
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1304
+ }, z.core.$strict>]>>;
1305
+ name: z.ZodOptional<z.ZodString>;
1306
+ when: z.ZodString;
1307
+ }, z.core.$strict>>;
1308
+ }, z.core.$strict>>;
1309
+ name: z.ZodString;
1310
+ }, z.core.$strict>;
1311
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
1312
+ connections: z.ZodArray<z.ZodObject<{
1313
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
1314
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1315
+ }, z.core.$strict>, z.ZodObject<{
1316
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1317
+ }, z.core.$strict>]>>;
1318
+ name: z.ZodOptional<z.ZodString>;
1319
+ when: z.ZodString;
1320
+ }, z.core.$strict>>;
1321
+ processId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
1322
+ }, z.core.$strict>, z.ZodObject<{
1323
+ placement: z.ZodEnum<{
1324
+ inner: "inner";
1325
+ outer: "outer";
1326
+ }>;
1327
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
1328
+ connections: z.ZodArray<z.ZodObject<{
1329
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
1330
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1331
+ }, z.core.$strict>, z.ZodObject<{
1332
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1333
+ }, z.core.$strict>]>>;
1334
+ name: z.ZodOptional<z.ZodString>;
1335
+ when: z.ZodString;
1336
+ }, z.core.$strict>>;
1337
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1338
+ }, z.core.$strict>]>>;
1339
+ instruction: z.ZodString;
1340
+ steps: z.ZodArray<z.ZodObject<{
1341
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
1342
+ name: z.ZodString;
1343
+ }, z.core.$strict>>;
1344
+ actors: z.ZodArray<z.ZodObject<{
1345
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
1346
+ }, z.core.$strict>>;
1347
+ actions: z.ZodArray<z.ZodObject<{
1348
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1349
+ name: z.ZodString;
1350
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
1351
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
1352
+ instruction: z.ZodString;
1353
+ entry: z.ZodOptional<z.ZodBoolean>;
1354
+ starts: z.ZodArray<z.ZodObject<{
1355
+ place: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1356
+ kind: z.ZodLiteral<"task">;
1357
+ boardId: z.ZodTemplateLiteral<`node_${string}`>;
1358
+ columnId: z.ZodTemplateLiteral<`column_${string}`>;
1359
+ }, z.core.$strict>, z.ZodObject<{
1360
+ kind: z.ZodLiteral<"goal">;
1361
+ goalId: z.ZodTemplateLiteral<`node_${string}`>;
1362
+ }, z.core.$strict>, z.ZodObject<{
1363
+ kind: z.ZodLiteral<"mention">;
1364
+ nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
1365
+ }, z.core.$strict>], "kind">>;
1366
+ name: z.ZodOptional<z.ZodString>;
1367
+ when: z.ZodString;
1368
+ }, z.core.$strict>>;
1369
+ steps: z.ZodArray<z.ZodObject<{
1370
+ name: z.ZodString;
1371
+ nodes: z.ZodArray<z.ZodObject<{
1372
+ nodeId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
1373
+ name: z.ZodOptional<z.ZodString>;
1374
+ kind: z.ZodOptional<z.ZodEnum<{
1375
+ document: "document";
1376
+ table: "table";
1377
+ board: "board";
1378
+ task: "task";
1379
+ gadget: "gadget";
1380
+ skill: "skill";
1381
+ source: "source";
1382
+ flow: "flow";
1383
+ }>>;
1384
+ description: z.ZodOptional<z.ZodString>;
1385
+ }, z.core.$strict>>;
1386
+ }, z.core.$strict>>;
1387
+ connections: z.ZodArray<z.ZodObject<{
1388
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
1389
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1390
+ }, z.core.$strict>, z.ZodObject<{
1391
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1392
+ }, z.core.$strict>]>>;
1393
+ name: z.ZodOptional<z.ZodString>;
1394
+ when: z.ZodString;
1395
+ }, z.core.$strict>>;
1396
+ }, z.core.$strict>>;
1397
+ }, z.core.$strict>>;
1398
+ responsibleId: z.ZodOptional<z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>>;
1399
+ fromVersion: z.ZodOptional<z.ZodNumber>;
1400
+ discard: z.ZodOptional<z.ZodLiteral<true>>;
1401
+ }, z.core.$strict>;
1402
+ export type ProcessUpdateInput = z.infer<typeof ProcessUpdateInput>;
1403
+ export declare const ProcessPublishInput: z.ZodObject<{
1404
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1405
+ rev: z.ZodNumber;
1406
+ }, z.core.$strict>;
1407
+ export type ProcessPublishInput = z.infer<typeof ProcessPublishInput>;
1408
+ export declare const ProcessArchiveInput: z.ZodObject<{
1409
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1410
+ rev: z.ZodNumber;
1411
+ }, z.core.$strict>;
1412
+ export type ProcessArchiveInput = z.infer<typeof ProcessArchiveInput>;
1413
+ export declare const ProcessRestoreInput: z.ZodObject<{
1414
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1415
+ rev: z.ZodNumber;
1416
+ }, z.core.$strict>;
1417
+ export type ProcessRestoreInput = z.infer<typeof ProcessRestoreInput>;
1418
+ export declare const ProcessDetail: z.ZodObject<{
1419
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1420
+ name: z.ZodString;
1421
+ path: z.ZodObject<{
1422
+ section: z.ZodEnum<{
1423
+ users: "users";
1424
+ own: "own";
1425
+ shared: "shared";
1426
+ }>;
1427
+ items: z.ZodArray<z.ZodObject<{
1428
+ nodeId: z.ZodTemplateLiteral<`node_${string}`>;
1429
+ name: z.ZodString;
1430
+ process: z.ZodBoolean;
1431
+ }, z.core.$strip>>;
1432
+ }, z.core.$strip>;
1433
+ version: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"draft">]>>;
1434
+ content: z.ZodNullable<z.ZodObject<{
1435
+ processes: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1436
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1437
+ placement: z.ZodLiteral<"inner">;
1438
+ draft: z.ZodObject<{
1439
+ processes: z.ZodArray<z.ZodObject<{
1440
+ placement: z.ZodEnum<{
1441
+ inner: "inner";
1442
+ outer: "outer";
1443
+ }>;
1444
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
1445
+ connections: z.ZodArray<z.ZodObject<{
1446
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
1447
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1448
+ }, z.core.$strict>, z.ZodObject<{
1449
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1450
+ }, z.core.$strict>]>>;
1451
+ name: z.ZodOptional<z.ZodString>;
1452
+ when: z.ZodString;
1453
+ }, z.core.$strict>>;
1454
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1455
+ }, z.core.$strict>>;
1456
+ instruction: z.ZodString;
1457
+ steps: z.ZodArray<z.ZodObject<{
1458
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
1459
+ name: z.ZodString;
1460
+ }, z.core.$strict>>;
1461
+ actors: z.ZodArray<z.ZodObject<{
1462
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
1463
+ }, z.core.$strict>>;
1464
+ actions: z.ZodArray<z.ZodObject<{
1465
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1466
+ name: z.ZodString;
1467
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
1468
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
1469
+ instruction: z.ZodString;
1470
+ entry: z.ZodOptional<z.ZodBoolean>;
1471
+ starts: z.ZodArray<z.ZodObject<{
1472
+ place: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1473
+ kind: z.ZodLiteral<"task">;
1474
+ boardId: z.ZodTemplateLiteral<`node_${string}`>;
1475
+ columnId: z.ZodTemplateLiteral<`column_${string}`>;
1476
+ }, z.core.$strict>, z.ZodObject<{
1477
+ kind: z.ZodLiteral<"goal">;
1478
+ goalId: z.ZodTemplateLiteral<`node_${string}`>;
1479
+ }, z.core.$strict>, z.ZodObject<{
1480
+ kind: z.ZodLiteral<"mention">;
1481
+ nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
1482
+ }, z.core.$strict>], "kind">>;
1483
+ name: z.ZodOptional<z.ZodString>;
1484
+ when: z.ZodString;
1485
+ }, z.core.$strict>>;
1486
+ steps: z.ZodArray<z.ZodObject<{
1487
+ name: z.ZodString;
1488
+ nodes: z.ZodArray<z.ZodObject<{
1489
+ nodeId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
1490
+ name: z.ZodOptional<z.ZodString>;
1491
+ kind: z.ZodOptional<z.ZodEnum<{
1492
+ document: "document";
1493
+ table: "table";
1494
+ board: "board";
1495
+ task: "task";
1496
+ gadget: "gadget";
1497
+ skill: "skill";
1498
+ source: "source";
1499
+ flow: "flow";
1500
+ }>>;
1501
+ description: z.ZodOptional<z.ZodString>;
1502
+ }, z.core.$strict>>;
1503
+ }, z.core.$strict>>;
1504
+ connections: z.ZodArray<z.ZodObject<{
1505
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
1506
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1507
+ }, z.core.$strict>, z.ZodObject<{
1508
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1509
+ }, z.core.$strict>]>>;
1510
+ name: z.ZodOptional<z.ZodString>;
1511
+ when: z.ZodString;
1512
+ }, z.core.$strict>>;
1513
+ }, z.core.$strict>>;
1514
+ name: z.ZodString;
1515
+ }, z.core.$strict>;
1516
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
1517
+ connections: z.ZodArray<z.ZodObject<{
1518
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
1519
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1520
+ }, z.core.$strict>, z.ZodObject<{
1521
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1522
+ }, z.core.$strict>]>>;
1523
+ name: z.ZodOptional<z.ZodString>;
1524
+ when: z.ZodString;
1525
+ }, z.core.$strict>>;
1526
+ }, z.core.$strip>, z.ZodObject<{
1527
+ placement: z.ZodEnum<{
1528
+ inner: "inner";
1529
+ outer: "outer";
1530
+ }>;
1531
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
1532
+ connections: z.ZodArray<z.ZodObject<{
1533
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
1534
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1535
+ }, z.core.$strict>, z.ZodObject<{
1536
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1537
+ }, z.core.$strict>]>>;
1538
+ name: z.ZodOptional<z.ZodString>;
1539
+ when: z.ZodString;
1540
+ }, z.core.$strict>>;
1541
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1542
+ }, z.core.$strict>]>>;
1543
+ instruction: z.ZodString;
1544
+ steps: z.ZodArray<z.ZodObject<{
1545
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
1546
+ name: z.ZodString;
1547
+ }, z.core.$strict>>;
1548
+ actors: z.ZodArray<z.ZodObject<{
1549
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
1550
+ }, z.core.$strict>>;
1551
+ actions: z.ZodArray<z.ZodObject<{
1552
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1553
+ name: z.ZodString;
1554
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
1555
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
1556
+ instruction: z.ZodString;
1557
+ entry: z.ZodOptional<z.ZodBoolean>;
1558
+ starts: z.ZodArray<z.ZodObject<{
1559
+ place: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1560
+ kind: z.ZodLiteral<"task">;
1561
+ boardId: z.ZodTemplateLiteral<`node_${string}`>;
1562
+ columnId: z.ZodTemplateLiteral<`column_${string}`>;
1563
+ }, z.core.$strict>, z.ZodObject<{
1564
+ kind: z.ZodLiteral<"goal">;
1565
+ goalId: z.ZodTemplateLiteral<`node_${string}`>;
1566
+ }, z.core.$strict>, z.ZodObject<{
1567
+ kind: z.ZodLiteral<"mention">;
1568
+ nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
1569
+ }, z.core.$strict>], "kind">>;
1570
+ name: z.ZodOptional<z.ZodString>;
1571
+ when: z.ZodString;
1572
+ }, z.core.$strict>>;
1573
+ steps: z.ZodArray<z.ZodObject<{
1574
+ name: z.ZodString;
1575
+ nodes: z.ZodArray<z.ZodObject<{
1576
+ nodeId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
1577
+ name: z.ZodOptional<z.ZodString>;
1578
+ kind: z.ZodOptional<z.ZodEnum<{
1579
+ document: "document";
1580
+ table: "table";
1581
+ board: "board";
1582
+ task: "task";
1583
+ gadget: "gadget";
1584
+ skill: "skill";
1585
+ source: "source";
1586
+ flow: "flow";
1587
+ }>>;
1588
+ description: z.ZodOptional<z.ZodString>;
1589
+ }, z.core.$strict>>;
1590
+ }, z.core.$strict>>;
1591
+ connections: z.ZodArray<z.ZodObject<{
1592
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
1593
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1594
+ }, z.core.$strict>, z.ZodObject<{
1595
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1596
+ }, z.core.$strict>]>>;
1597
+ name: z.ZodOptional<z.ZodString>;
1598
+ when: z.ZodString;
1599
+ }, z.core.$strict>>;
1600
+ }, z.core.$strict>>;
1601
+ }, z.core.$strip>>;
1602
+ findings: z.ZodArray<z.ZodObject<{
1603
+ level: z.ZodEnum<{
1604
+ error: "error";
1605
+ warning: "warning";
1606
+ }>;
1607
+ code: z.ZodEnum<{
1608
+ void: "void";
1609
+ right: "right";
1610
+ unwoken: "unwoken";
1611
+ sketch: "sketch";
1612
+ }>;
1613
+ message: z.ZodString;
1614
+ at: z.ZodObject<{
1615
+ path: z.ZodArray<z.ZodObject<{
1616
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1617
+ name: z.ZodString;
1618
+ }, z.core.$strip>>;
1619
+ actionId: z.ZodNullable<z.ZodTemplateLiteral<`action_${string}`>>;
1620
+ actionName: z.ZodNullable<z.ZodString>;
1621
+ nodeId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
1622
+ nodeName: z.ZodNullable<z.ZodString>;
1623
+ start: z.ZodNullable<z.ZodNumber>;
1624
+ step: z.ZodNullable<z.ZodNumber>;
1625
+ entry: z.ZodNullable<z.ZodNumber>;
1626
+ connection: z.ZodNullable<z.ZodNumber>;
1627
+ }, z.core.$strip>;
1628
+ }, z.core.$strip>>;
1629
+ live: z.ZodNullable<z.ZodObject<{
1630
+ version: z.ZodNumber;
1631
+ publishedAt: z.ZodISODateTime;
1632
+ publishedBy: z.ZodObject<{
1633
+ userId: z.ZodString;
1634
+ name: z.ZodNullable<z.ZodString>;
1635
+ kind: z.ZodNullable<z.ZodEnum<{
1636
+ machine: "machine";
1637
+ human: "human";
1638
+ }>>;
1639
+ }, z.core.$strip>;
1640
+ }, z.core.$strip>>;
1641
+ draft: z.ZodNullable<z.ZodObject<{
1642
+ updatedAt: z.ZodISODateTime;
1643
+ updatedBy: z.ZodObject<{
1644
+ userId: z.ZodString;
1645
+ name: z.ZodNullable<z.ZodString>;
1646
+ kind: z.ZodNullable<z.ZodEnum<{
1647
+ machine: "machine";
1648
+ human: "human";
1649
+ }>>;
1650
+ }, z.core.$strip>;
1651
+ }, z.core.$strip>>;
1652
+ responsible: z.ZodNullable<z.ZodObject<{
1653
+ userId: z.ZodString;
1654
+ name: z.ZodNullable<z.ZodString>;
1655
+ kind: z.ZodNullable<z.ZodEnum<{
1656
+ machine: "machine";
1657
+ human: "human";
1658
+ }>>;
1659
+ }, z.core.$strip>>;
1660
+ effectiveResponsible: z.ZodObject<{
1661
+ userId: z.ZodString;
1662
+ name: z.ZodNullable<z.ZodString>;
1663
+ kind: z.ZodNullable<z.ZodEnum<{
1664
+ machine: "machine";
1665
+ human: "human";
1666
+ }>>;
1667
+ }, z.core.$strip>;
1668
+ parentProcessId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
1669
+ rights: z.ZodObject<{
1670
+ write: z.ZodBoolean;
1671
+ }, z.core.$strip>;
1672
+ rev: z.ZodNumber;
1673
+ archivedAt: z.ZodNullable<z.ZodISODateTime>;
1674
+ }, z.core.$strip>;
1675
+ export type ProcessDetail = z.infer<typeof ProcessDetail>;
1676
+ export declare const ProcessRunId: z.ZodTemplateLiteral<`run_${string}`>;
1677
+ export type ProcessRunId = z.infer<typeof ProcessRunId>;
1678
+ export declare const processRunStatuses: readonly ["running", "waiting", "completed", "failed"];
1679
+ export declare const ProcessRunStatus: z.ZodEnum<{
1680
+ running: "running";
1681
+ failed: "failed";
1682
+ completed: "completed";
1683
+ waiting: "waiting";
1684
+ }>;
1685
+ export type ProcessRunStatus = z.infer<typeof ProcessRunStatus>;
1686
+ export declare const ProcessRunStart: z.ZodObject<{
1687
+ manual: z.ZodBoolean;
1688
+ goal: z.ZodNullable<z.ZodObject<{
1689
+ goalId: z.ZodTemplateLiteral<`node_${string}`>;
1690
+ name: z.ZodNullable<z.ZodString>;
1691
+ goalRunId: z.ZodString;
1692
+ }, z.core.$strip>>;
1693
+ task: z.ZodNullable<z.ZodObject<{
1694
+ taskId: z.ZodTemplateLiteral<`node_${string}`>;
1695
+ name: z.ZodNullable<z.ZodString>;
1696
+ }, z.core.$strip>>;
1697
+ }, z.core.$strip>;
1698
+ export type ProcessRunStart = z.infer<typeof ProcessRunStart>;
1699
+ export declare const ProcessRunDone: z.ZodObject<{
1700
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1701
+ name: z.ZodString;
1702
+ at: z.ZodISODateTime;
1703
+ }, z.core.$strip>;
1704
+ export type ProcessRunDone = z.infer<typeof ProcessRunDone>;
1705
+ export declare const ProcessRoleRun: z.ZodObject<{
1706
+ runId: z.ZodTemplateLiteral<`run_${string}`>;
1707
+ startedAt: z.ZodISODateTime;
1708
+ start: z.ZodObject<{
1709
+ manual: z.ZodBoolean;
1710
+ goal: z.ZodNullable<z.ZodObject<{
1711
+ goalId: z.ZodTemplateLiteral<`node_${string}`>;
1712
+ name: z.ZodNullable<z.ZodString>;
1713
+ goalRunId: z.ZodString;
1714
+ }, z.core.$strip>>;
1715
+ task: z.ZodNullable<z.ZodObject<{
1716
+ taskId: z.ZodTemplateLiteral<`node_${string}`>;
1717
+ name: z.ZodNullable<z.ZodString>;
1718
+ }, z.core.$strip>>;
1719
+ }, z.core.$strip>;
1720
+ done: z.ZodArray<z.ZodObject<{
1721
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1722
+ name: z.ZodString;
1723
+ at: z.ZodISODateTime;
1724
+ }, z.core.$strip>>;
1725
+ }, z.core.$strip>;
1726
+ export type ProcessRoleRun = z.infer<typeof ProcessRoleRun>;
1727
+ export declare const ProcessRole: z.ZodObject<{
1728
+ process: z.ZodObject<{
1729
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1730
+ name: z.ZodString;
1731
+ version: z.ZodNumber;
1732
+ }, z.core.$strip>;
1733
+ step: z.ZodObject<{
1734
+ stepId: z.ZodTemplateLiteral<`step_${string}`>;
1735
+ name: z.ZodString;
1736
+ }, z.core.$strip>;
1737
+ action: z.ZodObject<{
1738
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1739
+ name: z.ZodString;
1740
+ instruction: z.ZodString;
1741
+ }, z.core.$strip>;
1742
+ start: z.ZodObject<{
1743
+ index: z.ZodNumber;
1744
+ place: z.ZodDiscriminatedUnion<[z.ZodObject<{
1745
+ kind: z.ZodLiteral<"task">;
1746
+ boardId: z.ZodTemplateLiteral<`node_${string}`>;
1747
+ columnId: z.ZodTemplateLiteral<`column_${string}`>;
1748
+ }, z.core.$strict>, z.ZodObject<{
1749
+ kind: z.ZodLiteral<"goal">;
1750
+ goalId: z.ZodTemplateLiteral<`node_${string}`>;
1751
+ }, z.core.$strict>, z.ZodObject<{
1752
+ kind: z.ZodLiteral<"mention">;
1753
+ nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
1754
+ }, z.core.$strict>], "kind">;
1755
+ name: z.ZodNullable<z.ZodString>;
1756
+ when: z.ZodString;
1757
+ }, z.core.$strip>;
1758
+ steps: z.ZodArray<z.ZodObject<{
1759
+ name: z.ZodString;
1760
+ nodes: z.ZodArray<z.ZodObject<{
1761
+ nodeId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
1762
+ kind: z.ZodNullable<z.ZodString>;
1763
+ name: z.ZodNullable<z.ZodString>;
1764
+ description: z.ZodNullable<z.ZodString>;
1765
+ }, z.core.$strip>>;
1766
+ }, z.core.$strip>>;
1767
+ connections: z.ZodArray<z.ZodObject<{
1768
+ to: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
1769
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1770
+ }, z.core.$strict>, z.ZodObject<{
1771
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1772
+ }, z.core.$strict>]>>;
1773
+ name: z.ZodNullable<z.ZodString>;
1774
+ when: z.ZodString;
1775
+ }, z.core.$strip>>;
1776
+ run: z.ZodNullable<z.ZodObject<{
1777
+ runId: z.ZodTemplateLiteral<`run_${string}`>;
1778
+ startedAt: z.ZodISODateTime;
1779
+ start: z.ZodObject<{
1780
+ manual: z.ZodBoolean;
1781
+ goal: z.ZodNullable<z.ZodObject<{
1782
+ goalId: z.ZodTemplateLiteral<`node_${string}`>;
1783
+ name: z.ZodNullable<z.ZodString>;
1784
+ goalRunId: z.ZodString;
1785
+ }, z.core.$strip>>;
1786
+ task: z.ZodNullable<z.ZodObject<{
1787
+ taskId: z.ZodTemplateLiteral<`node_${string}`>;
1788
+ name: z.ZodNullable<z.ZodString>;
1789
+ }, z.core.$strip>>;
1790
+ }, z.core.$strip>;
1791
+ done: z.ZodArray<z.ZodObject<{
1792
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1793
+ name: z.ZodString;
1794
+ at: z.ZodISODateTime;
1795
+ }, z.core.$strip>>;
1796
+ }, z.core.$strip>>;
1797
+ }, z.core.$strip>;
1798
+ export type ProcessRole = z.infer<typeof ProcessRole>;
1799
+ export declare const processRunEntryStatuses: readonly ["running", "completed", "failed"];
1800
+ export declare const ProcessRunEntry: z.ZodObject<{
1801
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1802
+ name: z.ZodString;
1803
+ actor: z.ZodObject<{
1804
+ userId: z.ZodString;
1805
+ name: z.ZodNullable<z.ZodString>;
1806
+ kind: z.ZodNullable<z.ZodEnum<{
1807
+ machine: "machine";
1808
+ human: "human";
1809
+ }>>;
1810
+ }, z.core.$strip>;
1811
+ at: z.ZodISODateTime;
1812
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
1813
+ status: z.ZodEnum<{
1814
+ running: "running";
1815
+ failed: "failed";
1816
+ completed: "completed";
1817
+ }>;
1818
+ result: z.ZodNullable<z.ZodString>;
1819
+ costUsd: z.ZodNullable<z.ZodNumber>;
1820
+ operatorRunId: z.ZodNullable<z.ZodTemplateLiteral<`run_${string}`>>;
1821
+ }, z.core.$strip>;
1822
+ export type ProcessRunEntry = z.infer<typeof ProcessRunEntry>;
1823
+ export declare const ProcessRun: z.ZodObject<{
1824
+ runId: z.ZodTemplateLiteral<`run_${string}`>;
1825
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1826
+ startedAt: z.ZodISODateTime;
1827
+ start: z.ZodObject<{
1828
+ manual: z.ZodBoolean;
1829
+ goal: z.ZodNullable<z.ZodObject<{
1830
+ goalId: z.ZodTemplateLiteral<`node_${string}`>;
1831
+ name: z.ZodNullable<z.ZodString>;
1832
+ goalRunId: z.ZodString;
1833
+ }, z.core.$strip>>;
1834
+ task: z.ZodNullable<z.ZodObject<{
1835
+ taskId: z.ZodTemplateLiteral<`node_${string}`>;
1836
+ name: z.ZodNullable<z.ZodString>;
1837
+ }, z.core.$strip>>;
1838
+ }, z.core.$strip>;
1839
+ status: z.ZodEnum<{
1840
+ running: "running";
1841
+ failed: "failed";
1842
+ completed: "completed";
1843
+ waiting: "waiting";
1844
+ }>;
1845
+ actions: z.ZodNumber;
1846
+ processActions: z.ZodNumber;
1847
+ costUsd: z.ZodNullable<z.ZodNumber>;
1848
+ at: z.ZodNullable<z.ZodObject<{
1849
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1850
+ name: z.ZodString;
1851
+ actor: z.ZodObject<{
1852
+ userId: z.ZodString;
1853
+ name: z.ZodNullable<z.ZodString>;
1854
+ kind: z.ZodNullable<z.ZodEnum<{
1855
+ machine: "machine";
1856
+ human: "human";
1857
+ }>>;
1858
+ }, z.core.$strip>;
1859
+ since: z.ZodISODateTime;
1860
+ }, z.core.$strip>>;
1861
+ result: z.ZodNullable<z.ZodString>;
1862
+ }, z.core.$strip>;
1863
+ export type ProcessRun = z.infer<typeof ProcessRun>;
1864
+ export declare const ProcessRunDetail: z.ZodObject<{
1865
+ entries: z.ZodArray<z.ZodObject<{
1866
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1867
+ name: z.ZodString;
1868
+ actor: z.ZodObject<{
1869
+ userId: z.ZodString;
1870
+ name: z.ZodNullable<z.ZodString>;
1871
+ kind: z.ZodNullable<z.ZodEnum<{
1872
+ machine: "machine";
1873
+ human: "human";
1874
+ }>>;
1875
+ }, z.core.$strip>;
1876
+ at: z.ZodISODateTime;
1877
+ endedAt: z.ZodNullable<z.ZodISODateTime>;
1878
+ status: z.ZodEnum<{
1879
+ running: "running";
1880
+ failed: "failed";
1881
+ completed: "completed";
1882
+ }>;
1883
+ result: z.ZodNullable<z.ZodString>;
1884
+ costUsd: z.ZodNullable<z.ZodNumber>;
1885
+ operatorRunId: z.ZodNullable<z.ZodTemplateLiteral<`run_${string}`>>;
1886
+ }, z.core.$strip>>;
1887
+ next: z.ZodArray<z.ZodObject<{
1888
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1889
+ name: z.ZodString;
1890
+ }, z.core.$strip>>;
1891
+ runId: z.ZodTemplateLiteral<`run_${string}`>;
1892
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1893
+ startedAt: z.ZodISODateTime;
1894
+ start: z.ZodObject<{
1895
+ manual: z.ZodBoolean;
1896
+ goal: z.ZodNullable<z.ZodObject<{
1897
+ goalId: z.ZodTemplateLiteral<`node_${string}`>;
1898
+ name: z.ZodNullable<z.ZodString>;
1899
+ goalRunId: z.ZodString;
1900
+ }, z.core.$strip>>;
1901
+ task: z.ZodNullable<z.ZodObject<{
1902
+ taskId: z.ZodTemplateLiteral<`node_${string}`>;
1903
+ name: z.ZodNullable<z.ZodString>;
1904
+ }, z.core.$strip>>;
1905
+ }, z.core.$strip>;
1906
+ status: z.ZodEnum<{
1907
+ running: "running";
1908
+ failed: "failed";
1909
+ completed: "completed";
1910
+ waiting: "waiting";
1911
+ }>;
1912
+ actions: z.ZodNumber;
1913
+ processActions: z.ZodNumber;
1914
+ costUsd: z.ZodNullable<z.ZodNumber>;
1915
+ at: z.ZodNullable<z.ZodObject<{
1916
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1917
+ name: z.ZodString;
1918
+ actor: z.ZodObject<{
1919
+ userId: z.ZodString;
1920
+ name: z.ZodNullable<z.ZodString>;
1921
+ kind: z.ZodNullable<z.ZodEnum<{
1922
+ machine: "machine";
1923
+ human: "human";
1924
+ }>>;
1925
+ }, z.core.$strip>;
1926
+ since: z.ZodISODateTime;
1927
+ }, z.core.$strip>>;
1928
+ result: z.ZodNullable<z.ZodString>;
1929
+ }, z.core.$strip>;
1930
+ export type ProcessRunDetail = z.infer<typeof ProcessRunDetail>;
1931
+ export declare const ProcessRunList: z.ZodObject<{
1932
+ items: z.ZodArray<z.ZodObject<{
1933
+ runId: z.ZodTemplateLiteral<`run_${string}`>;
1934
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1935
+ startedAt: z.ZodISODateTime;
1936
+ start: z.ZodObject<{
1937
+ manual: z.ZodBoolean;
1938
+ goal: z.ZodNullable<z.ZodObject<{
1939
+ goalId: z.ZodTemplateLiteral<`node_${string}`>;
1940
+ name: z.ZodNullable<z.ZodString>;
1941
+ goalRunId: z.ZodString;
1942
+ }, z.core.$strip>>;
1943
+ task: z.ZodNullable<z.ZodObject<{
1944
+ taskId: z.ZodTemplateLiteral<`node_${string}`>;
1945
+ name: z.ZodNullable<z.ZodString>;
1946
+ }, z.core.$strip>>;
1947
+ }, z.core.$strip>;
1948
+ status: z.ZodEnum<{
1949
+ running: "running";
1950
+ failed: "failed";
1951
+ completed: "completed";
1952
+ waiting: "waiting";
1953
+ }>;
1954
+ actions: z.ZodNumber;
1955
+ processActions: z.ZodNumber;
1956
+ costUsd: z.ZodNullable<z.ZodNumber>;
1957
+ at: z.ZodNullable<z.ZodObject<{
1958
+ actionId: z.ZodTemplateLiteral<`action_${string}`>;
1959
+ name: z.ZodString;
1960
+ actor: z.ZodObject<{
1961
+ userId: z.ZodString;
1962
+ name: z.ZodNullable<z.ZodString>;
1963
+ kind: z.ZodNullable<z.ZodEnum<{
1964
+ machine: "machine";
1965
+ human: "human";
1966
+ }>>;
1967
+ }, z.core.$strip>;
1968
+ since: z.ZodISODateTime;
1969
+ }, z.core.$strip>>;
1970
+ result: z.ZodNullable<z.ZodString>;
1971
+ }, z.core.$strip>>;
1972
+ nextCursor: z.ZodNullable<z.ZodString>;
1973
+ }, z.core.$strip>;
1974
+ export type ProcessRunList = z.infer<typeof ProcessRunList>;
1975
+ export declare const ProcessRunListInput: z.ZodObject<{
1976
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1977
+ status: z.ZodOptional<z.ZodEnum<{
1978
+ running: "running";
1979
+ failed: "failed";
1980
+ completed: "completed";
1981
+ waiting: "waiting";
1982
+ }>>;
1983
+ cursor: z.ZodOptional<z.ZodString>;
1984
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1985
+ }, z.core.$strict>;
1986
+ export type ProcessRunListInput = z.infer<typeof ProcessRunListInput>;
1987
+ export declare const ProcessRunGetInput: z.ZodObject<{
1988
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1989
+ runId: z.ZodTemplateLiteral<`run_${string}`>;
1990
+ }, z.core.$strict>;
1991
+ export type ProcessRunGetInput = z.infer<typeof ProcessRunGetInput>;
1992
+ export declare const ProcessRunCreateInput: z.ZodObject<{
1993
+ processId: z.ZodTemplateLiteral<`node_${string}`>;
1994
+ actionId: z.ZodOptional<z.ZodTemplateLiteral<`action_${string}`>>;
1995
+ title: z.ZodOptional<z.ZodString>;
1996
+ idempotencyKey: z.ZodString;
1997
+ }, z.core.$strict>;
1998
+ export type ProcessRunCreateInput = z.infer<typeof ProcessRunCreateInput>;
1999
+ export {};