@anchrd/colab-sdk 0.1.42 → 0.1.44
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.
- package/dist/actions/actions.d.ts +83 -61
- package/dist/actions/actions.js +12 -6
- package/dist/boards/boards.d.ts +72 -167
- package/dist/boards/boards.js +30 -23
- package/dist/card-kinds/card-kinds.js +1 -1
- package/dist/columns/columns.d.ts +4 -4
- package/dist/columns/columns.js +3 -3
- package/dist/documents/documents.d.ts +0 -2
- package/dist/files/files.d.ts +32 -1
- package/dist/files/files.js +89 -27
- package/dist/grammar/grammar.d.ts +4 -1
- package/dist/grammar/grammar.js +17 -0
- package/dist/grants/grants.d.ts +12 -4
- package/dist/grants/grants.js +23 -8
- package/dist/home/home.d.ts +3 -3
- package/dist/instructions/instructions.d.ts +0 -4
- package/dist/instructions/instructions.js +5 -13
- package/dist/invitations/invitations.d.ts +1 -0
- package/dist/invitations/invitations.js +8 -0
- package/dist/jobs/jobs.d.ts +67 -0
- package/dist/jobs/jobs.js +45 -0
- package/dist/mcps/mcps.d.ts +3 -3
- package/dist/nodes/nodes.d.ts +5 -115
- package/dist/nodes/nodes.js +15 -41
- package/dist/operators/operators.d.ts +89 -7
- package/dist/operators/operators.js +50 -7
- package/dist/roles/roles.d.ts +0 -14
- package/dist/roles/roles.js +2 -10
- package/dist/runs/runs.d.ts +9 -12
- package/dist/runs/runs.js +5 -6
- package/dist/schedule/schedule.js +1 -1
- package/dist/sdk.d.ts +10 -9
- package/dist/sdk.js +10 -9
- package/dist/sources/sources.d.ts +6 -6
- package/dist/teams/teams.d.ts +120 -0
- package/dist/teams/teams.js +70 -0
- package/dist/versions/versions.d.ts +54 -71
- package/dist/versions/versions.js +5 -6
- package/dist/written/written.d.ts +62 -2
- package/dist/written/written.js +16 -2
- package/package.json +1 -1
- package/dist/validation/validation.d.ts +0 -60
- package/dist/validation/validation.js +0 -26
package/dist/boards/boards.d.ts
CHANGED
|
@@ -21,13 +21,13 @@ export declare const BoardCreateInput: z.ZodObject<{
|
|
|
21
21
|
columnId: z.ZodOptional<z.ZodTemplateLiteral<`column_${string}`>>;
|
|
22
22
|
name: z.ZodString;
|
|
23
23
|
type: z.ZodEnum<{
|
|
24
|
+
archive: "archive";
|
|
25
|
+
done: "done";
|
|
24
26
|
backlog: "backlog";
|
|
25
27
|
open: "open";
|
|
26
28
|
progress: "progress";
|
|
27
|
-
done: "done";
|
|
28
29
|
discarded: "discarded";
|
|
29
30
|
blocked: "blocked";
|
|
30
|
-
archive: "archive";
|
|
31
31
|
}>;
|
|
32
32
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
33
33
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -94,13 +94,13 @@ export declare const BoardUpdateInput: z.ZodObject<{
|
|
|
94
94
|
columnId: z.ZodOptional<z.ZodTemplateLiteral<`column_${string}`>>;
|
|
95
95
|
name: z.ZodString;
|
|
96
96
|
type: z.ZodEnum<{
|
|
97
|
+
archive: "archive";
|
|
98
|
+
done: "done";
|
|
97
99
|
backlog: "backlog";
|
|
98
100
|
open: "open";
|
|
99
101
|
progress: "progress";
|
|
100
|
-
done: "done";
|
|
101
102
|
discarded: "discarded";
|
|
102
103
|
blocked: "blocked";
|
|
103
|
-
archive: "archive";
|
|
104
104
|
}>;
|
|
105
105
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
106
106
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -159,17 +159,16 @@ export declare const BoardColumn: z.ZodObject<{
|
|
|
159
159
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
160
160
|
name: z.ZodString;
|
|
161
161
|
type: z.ZodEnum<{
|
|
162
|
+
archive: "archive";
|
|
163
|
+
done: "done";
|
|
162
164
|
backlog: "backlog";
|
|
163
165
|
open: "open";
|
|
164
166
|
progress: "progress";
|
|
165
|
-
done: "done";
|
|
166
167
|
discarded: "discarded";
|
|
167
168
|
blocked: "blocked";
|
|
168
|
-
archive: "archive";
|
|
169
169
|
}>;
|
|
170
170
|
visible: z.ZodBoolean;
|
|
171
171
|
description: z.ZodString;
|
|
172
|
-
system: z.ZodOptional<z.ZodLiteral<"new">>;
|
|
173
172
|
}, z.core.$strip>;
|
|
174
173
|
export type BoardColumn = z.infer<typeof BoardColumn>;
|
|
175
174
|
export declare const BoardLabel: z.ZodObject<{
|
|
@@ -182,36 +181,23 @@ export declare const BoardDetail: z.ZodObject<{
|
|
|
182
181
|
name: z.ZodString;
|
|
183
182
|
kind: z.ZodEnum<{
|
|
184
183
|
board: "board";
|
|
185
|
-
validation: "validation";
|
|
186
184
|
process: "process";
|
|
187
185
|
}>;
|
|
188
|
-
system: z.ZodNullable<z.ZodEnum<{
|
|
189
|
-
validation: "validation";
|
|
190
|
-
}>>;
|
|
191
186
|
instruction: z.ZodNullable<z.ZodString>;
|
|
192
|
-
validator: z.ZodNullable<z.ZodObject<{
|
|
193
|
-
userId: z.ZodString;
|
|
194
|
-
name: z.ZodNullable<z.ZodString>;
|
|
195
|
-
kind: z.ZodNullable<z.ZodEnum<{
|
|
196
|
-
machine: "machine";
|
|
197
|
-
human: "human";
|
|
198
|
-
}>>;
|
|
199
|
-
}, z.core.$strip>>;
|
|
200
187
|
columns: z.ZodArray<z.ZodObject<{
|
|
201
188
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
202
189
|
name: z.ZodString;
|
|
203
190
|
type: z.ZodEnum<{
|
|
191
|
+
archive: "archive";
|
|
192
|
+
done: "done";
|
|
204
193
|
backlog: "backlog";
|
|
205
194
|
open: "open";
|
|
206
195
|
progress: "progress";
|
|
207
|
-
done: "done";
|
|
208
196
|
discarded: "discarded";
|
|
209
197
|
blocked: "blocked";
|
|
210
|
-
archive: "archive";
|
|
211
198
|
}>;
|
|
212
199
|
visible: z.ZodBoolean;
|
|
213
200
|
description: z.ZodString;
|
|
214
|
-
system: z.ZodOptional<z.ZodLiteral<"new">>;
|
|
215
201
|
}, z.core.$strip>>;
|
|
216
202
|
cardKinds: z.ZodArray<z.ZodObject<{
|
|
217
203
|
kindId: z.ZodTemplateLiteral<`kind_${string}`>;
|
|
@@ -275,13 +261,13 @@ export declare const BoardTaskListInput: z.ZodObject<{
|
|
|
275
261
|
runId: z.ZodOptional<z.ZodTemplateLiteral<`run_${string}`>>;
|
|
276
262
|
columnId: z.ZodOptional<z.ZodTemplateLiteral<`column_${string}`>>;
|
|
277
263
|
type: z.ZodOptional<z.ZodEnum<{
|
|
264
|
+
archive: "archive";
|
|
265
|
+
done: "done";
|
|
278
266
|
backlog: "backlog";
|
|
279
267
|
open: "open";
|
|
280
268
|
progress: "progress";
|
|
281
|
-
done: "done";
|
|
282
269
|
discarded: "discarded";
|
|
283
270
|
blocked: "blocked";
|
|
284
|
-
archive: "archive";
|
|
285
271
|
}>>;
|
|
286
272
|
assigneeId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
287
273
|
labelId: z.ZodOptional<z.ZodTemplateLiteral<`label_${string}`>>;
|
|
@@ -293,6 +279,7 @@ export declare const BoardTaskListInput: z.ZodObject<{
|
|
|
293
279
|
known: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodString>, unknown>>;
|
|
294
280
|
}, z.core.$strict>;
|
|
295
281
|
export type BoardTaskListInput = z.infer<typeof BoardTaskListInput>;
|
|
282
|
+
export declare const maxRules = 5;
|
|
296
283
|
export declare const BoardTaskCreateInput: z.ZodObject<{
|
|
297
284
|
title: z.ZodOptional<z.ZodString>;
|
|
298
285
|
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -307,6 +294,12 @@ export declare const BoardTaskCreateInput: z.ZodObject<{
|
|
|
307
294
|
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
308
295
|
parentTaskId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
309
296
|
dependsOn: z.ZodOptional<z.ZodArray<z.ZodTemplateLiteral<`node_${string}`>>>;
|
|
297
|
+
rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
298
|
+
taskId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
299
|
+
from: z.ZodTemplateLiteral<`column_${string}`>;
|
|
300
|
+
when: z.ZodTemplateLiteral<`column_${string}`>;
|
|
301
|
+
to: z.ZodTemplateLiteral<`column_${string}`>;
|
|
302
|
+
}, z.core.$strict>>>;
|
|
310
303
|
position: z.ZodOptional<z.ZodString>;
|
|
311
304
|
kind: z.ZodOptional<z.ZodString>;
|
|
312
305
|
fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -321,6 +314,12 @@ export declare const BoardTaskCreateInput: z.ZodObject<{
|
|
|
321
314
|
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
322
315
|
parentTaskId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
323
316
|
dependsOn: z.ZodOptional<z.ZodArray<z.ZodTemplateLiteral<`node_${string}`>>>;
|
|
317
|
+
rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
318
|
+
taskId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
319
|
+
from: z.ZodTemplateLiteral<`column_${string}`>;
|
|
320
|
+
when: z.ZodTemplateLiteral<`column_${string}`>;
|
|
321
|
+
to: z.ZodTemplateLiteral<`column_${string}`>;
|
|
322
|
+
}, z.core.$strict>>>;
|
|
324
323
|
position: z.ZodOptional<z.ZodString>;
|
|
325
324
|
kind: z.ZodOptional<z.ZodString>;
|
|
326
325
|
fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -352,6 +351,12 @@ export declare const TaskUpdateInput: z.ZodObject<{
|
|
|
352
351
|
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
353
352
|
parentTaskId: z.ZodOptional<z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>>;
|
|
354
353
|
dependsOn: z.ZodOptional<z.ZodArray<z.ZodTemplateLiteral<`node_${string}`>>>;
|
|
354
|
+
rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
355
|
+
taskId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
356
|
+
from: z.ZodTemplateLiteral<`column_${string}`>;
|
|
357
|
+
when: z.ZodTemplateLiteral<`column_${string}`>;
|
|
358
|
+
to: z.ZodTemplateLiteral<`column_${string}`>;
|
|
359
|
+
}, z.core.$strict>>>;
|
|
355
360
|
position: z.ZodOptional<z.ZodString>;
|
|
356
361
|
kind: z.ZodOptional<z.ZodString>;
|
|
357
362
|
fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -374,6 +379,12 @@ export declare const BoardTaskUpdateInput: z.ZodObject<{
|
|
|
374
379
|
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
375
380
|
parentTaskId: z.ZodOptional<z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>>;
|
|
376
381
|
dependsOn: z.ZodOptional<z.ZodArray<z.ZodTemplateLiteral<`node_${string}`>>>;
|
|
382
|
+
rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
383
|
+
taskId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
384
|
+
from: z.ZodTemplateLiteral<`column_${string}`>;
|
|
385
|
+
when: z.ZodTemplateLiteral<`column_${string}`>;
|
|
386
|
+
to: z.ZodTemplateLiteral<`column_${string}`>;
|
|
387
|
+
}, z.core.$strict>>>;
|
|
377
388
|
position: z.ZodOptional<z.ZodString>;
|
|
378
389
|
kind: z.ZodOptional<z.ZodString>;
|
|
379
390
|
fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -406,13 +417,13 @@ export declare const BoardTaskItem: z.ZodObject<{
|
|
|
406
417
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
407
418
|
name: z.ZodString;
|
|
408
419
|
type: z.ZodEnum<{
|
|
420
|
+
archive: "archive";
|
|
421
|
+
done: "done";
|
|
409
422
|
backlog: "backlog";
|
|
410
423
|
open: "open";
|
|
411
424
|
progress: "progress";
|
|
412
|
-
done: "done";
|
|
413
425
|
discarded: "discarded";
|
|
414
426
|
blocked: "blocked";
|
|
415
|
-
archive: "archive";
|
|
416
427
|
}>;
|
|
417
428
|
}, z.core.$strip>;
|
|
418
429
|
assignee: z.ZodObject<{
|
|
@@ -465,32 +476,6 @@ export declare const BoardTaskItem: z.ZodObject<{
|
|
|
465
476
|
text: z.ZodString;
|
|
466
477
|
done: z.ZodBoolean;
|
|
467
478
|
}, z.core.$strip>>]>>>;
|
|
468
|
-
subject: z.ZodNullable<z.ZodObject<{
|
|
469
|
-
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
470
|
-
kind: z.ZodEnum<{
|
|
471
|
-
file: "file";
|
|
472
|
-
folder: "folder";
|
|
473
|
-
document: "document";
|
|
474
|
-
table: "table";
|
|
475
|
-
board: "board";
|
|
476
|
-
task: "task";
|
|
477
|
-
gadget: "gadget";
|
|
478
|
-
goal: "goal";
|
|
479
|
-
skill: "skill";
|
|
480
|
-
source: "source";
|
|
481
|
-
}>;
|
|
482
|
-
path: z.ZodObject<{
|
|
483
|
-
section: z.ZodEnum<{
|
|
484
|
-
users: "users";
|
|
485
|
-
own: "own";
|
|
486
|
-
shared: "shared";
|
|
487
|
-
}>;
|
|
488
|
-
items: z.ZodArray<z.ZodObject<{
|
|
489
|
-
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
490
|
-
name: z.ZodString;
|
|
491
|
-
}, z.core.$strip>>;
|
|
492
|
-
}, z.core.$strip>;
|
|
493
|
-
}, z.core.$strip>>;
|
|
494
479
|
rights: z.ZodObject<{
|
|
495
480
|
write: z.ZodBoolean;
|
|
496
481
|
}, z.core.$strip>;
|
|
@@ -509,13 +494,13 @@ export declare const BoardTaskList: z.ZodObject<{
|
|
|
509
494
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
510
495
|
name: z.ZodString;
|
|
511
496
|
type: z.ZodEnum<{
|
|
497
|
+
archive: "archive";
|
|
498
|
+
done: "done";
|
|
512
499
|
backlog: "backlog";
|
|
513
500
|
open: "open";
|
|
514
501
|
progress: "progress";
|
|
515
|
-
done: "done";
|
|
516
502
|
discarded: "discarded";
|
|
517
503
|
blocked: "blocked";
|
|
518
|
-
archive: "archive";
|
|
519
504
|
}>;
|
|
520
505
|
}, z.core.$strip>;
|
|
521
506
|
assignee: z.ZodObject<{
|
|
@@ -568,32 +553,6 @@ export declare const BoardTaskList: z.ZodObject<{
|
|
|
568
553
|
text: z.ZodString;
|
|
569
554
|
done: z.ZodBoolean;
|
|
570
555
|
}, z.core.$strip>>]>>>;
|
|
571
|
-
subject: z.ZodNullable<z.ZodObject<{
|
|
572
|
-
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
573
|
-
kind: z.ZodEnum<{
|
|
574
|
-
file: "file";
|
|
575
|
-
folder: "folder";
|
|
576
|
-
document: "document";
|
|
577
|
-
table: "table";
|
|
578
|
-
board: "board";
|
|
579
|
-
task: "task";
|
|
580
|
-
gadget: "gadget";
|
|
581
|
-
goal: "goal";
|
|
582
|
-
skill: "skill";
|
|
583
|
-
source: "source";
|
|
584
|
-
}>;
|
|
585
|
-
path: z.ZodObject<{
|
|
586
|
-
section: z.ZodEnum<{
|
|
587
|
-
users: "users";
|
|
588
|
-
own: "own";
|
|
589
|
-
shared: "shared";
|
|
590
|
-
}>;
|
|
591
|
-
items: z.ZodArray<z.ZodObject<{
|
|
592
|
-
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
593
|
-
name: z.ZodString;
|
|
594
|
-
}, z.core.$strip>>;
|
|
595
|
-
}, z.core.$strip>;
|
|
596
|
-
}, z.core.$strip>>;
|
|
597
556
|
rights: z.ZodObject<{
|
|
598
557
|
write: z.ZodBoolean;
|
|
599
558
|
}, z.core.$strip>;
|
|
@@ -614,35 +573,34 @@ export declare const BoardTaskList: z.ZodObject<{
|
|
|
614
573
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
615
574
|
name: z.ZodString;
|
|
616
575
|
type: z.ZodEnum<{
|
|
576
|
+
archive: "archive";
|
|
577
|
+
done: "done";
|
|
617
578
|
backlog: "backlog";
|
|
618
579
|
open: "open";
|
|
619
580
|
progress: "progress";
|
|
620
|
-
done: "done";
|
|
621
581
|
discarded: "discarded";
|
|
622
582
|
blocked: "blocked";
|
|
623
|
-
archive: "archive";
|
|
624
583
|
}>;
|
|
625
584
|
visible: z.ZodBoolean;
|
|
626
585
|
description: z.ZodString;
|
|
627
|
-
system: z.ZodOptional<z.ZodLiteral<"new">>;
|
|
628
586
|
}, z.core.$strip>>>;
|
|
629
587
|
}, z.core.$strip>;
|
|
630
588
|
export type BoardTaskList = z.infer<typeof BoardTaskList>;
|
|
631
589
|
export declare const BoardTaskBrief: z.ZodObject<{
|
|
590
|
+
title: z.ZodString;
|
|
632
591
|
column: z.ZodObject<{
|
|
633
592
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
634
593
|
name: z.ZodString;
|
|
635
594
|
type: z.ZodEnum<{
|
|
595
|
+
archive: "archive";
|
|
596
|
+
done: "done";
|
|
636
597
|
backlog: "backlog";
|
|
637
598
|
open: "open";
|
|
638
599
|
progress: "progress";
|
|
639
|
-
done: "done";
|
|
640
600
|
discarded: "discarded";
|
|
641
601
|
blocked: "blocked";
|
|
642
|
-
archive: "archive";
|
|
643
602
|
}>;
|
|
644
603
|
}, z.core.$strip>;
|
|
645
|
-
title: z.ZodString;
|
|
646
604
|
rev: z.ZodNumber;
|
|
647
605
|
taskId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
648
606
|
assignee: z.ZodObject<{
|
|
@@ -668,33 +626,32 @@ export declare const BoardTaskBriefList: z.ZodObject<{
|
|
|
668
626
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
669
627
|
name: z.ZodString;
|
|
670
628
|
type: z.ZodEnum<{
|
|
629
|
+
archive: "archive";
|
|
630
|
+
done: "done";
|
|
671
631
|
backlog: "backlog";
|
|
672
632
|
open: "open";
|
|
673
633
|
progress: "progress";
|
|
674
|
-
done: "done";
|
|
675
634
|
discarded: "discarded";
|
|
676
635
|
blocked: "blocked";
|
|
677
|
-
archive: "archive";
|
|
678
636
|
}>;
|
|
679
637
|
visible: z.ZodBoolean;
|
|
680
638
|
description: z.ZodString;
|
|
681
|
-
system: z.ZodOptional<z.ZodLiteral<"new">>;
|
|
682
639
|
}, z.core.$strip>>>;
|
|
683
640
|
items: z.ZodArray<z.ZodObject<{
|
|
641
|
+
title: z.ZodString;
|
|
684
642
|
column: z.ZodObject<{
|
|
685
643
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
686
644
|
name: z.ZodString;
|
|
687
645
|
type: z.ZodEnum<{
|
|
646
|
+
archive: "archive";
|
|
647
|
+
done: "done";
|
|
688
648
|
backlog: "backlog";
|
|
689
649
|
open: "open";
|
|
690
650
|
progress: "progress";
|
|
691
|
-
done: "done";
|
|
692
651
|
discarded: "discarded";
|
|
693
652
|
blocked: "blocked";
|
|
694
|
-
archive: "archive";
|
|
695
653
|
}>;
|
|
696
654
|
}, z.core.$strip>;
|
|
697
|
-
title: z.ZodString;
|
|
698
655
|
rev: z.ZodNumber;
|
|
699
656
|
taskId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
700
657
|
assignee: z.ZodObject<{
|
|
@@ -708,6 +665,14 @@ export declare const BoardTaskBriefList: z.ZodObject<{
|
|
|
708
665
|
}, z.core.$strip>>;
|
|
709
666
|
}, z.core.$strip>;
|
|
710
667
|
export type BoardTaskBriefList = z.infer<typeof BoardTaskBriefList>;
|
|
668
|
+
export declare const TaskRule: z.ZodObject<{
|
|
669
|
+
taskId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
670
|
+
from: z.ZodTemplateLiteral<`column_${string}`>;
|
|
671
|
+
when: z.ZodTemplateLiteral<`column_${string}`>;
|
|
672
|
+
to: z.ZodTemplateLiteral<`column_${string}`>;
|
|
673
|
+
valid: z.ZodBoolean;
|
|
674
|
+
}, z.core.$strip>;
|
|
675
|
+
export type TaskRule = z.infer<typeof TaskRule>;
|
|
711
676
|
export declare const TaskDetail: z.ZodObject<{
|
|
712
677
|
taskId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
713
678
|
boardId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
@@ -718,13 +683,13 @@ export declare const TaskDetail: z.ZodObject<{
|
|
|
718
683
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
719
684
|
name: z.ZodString;
|
|
720
685
|
type: z.ZodEnum<{
|
|
686
|
+
archive: "archive";
|
|
687
|
+
done: "done";
|
|
721
688
|
backlog: "backlog";
|
|
722
689
|
open: "open";
|
|
723
690
|
progress: "progress";
|
|
724
|
-
done: "done";
|
|
725
691
|
discarded: "discarded";
|
|
726
692
|
blocked: "blocked";
|
|
727
|
-
archive: "archive";
|
|
728
693
|
}>;
|
|
729
694
|
}, z.core.$strip>;
|
|
730
695
|
columnAt: z.ZodISODateTime;
|
|
@@ -758,7 +723,6 @@ export declare const TaskDetail: z.ZodObject<{
|
|
|
758
723
|
name: z.ZodString;
|
|
759
724
|
boardKind: z.ZodEnum<{
|
|
760
725
|
board: "board";
|
|
761
|
-
validation: "validation";
|
|
762
726
|
process: "process";
|
|
763
727
|
}>;
|
|
764
728
|
}, z.core.$strip>;
|
|
@@ -775,13 +739,13 @@ export declare const TaskDetail: z.ZodObject<{
|
|
|
775
739
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
776
740
|
name: z.ZodString;
|
|
777
741
|
type: z.ZodEnum<{
|
|
742
|
+
archive: "archive";
|
|
743
|
+
done: "done";
|
|
778
744
|
backlog: "backlog";
|
|
779
745
|
open: "open";
|
|
780
746
|
progress: "progress";
|
|
781
|
-
done: "done";
|
|
782
747
|
discarded: "discarded";
|
|
783
748
|
blocked: "blocked";
|
|
784
|
-
archive: "archive";
|
|
785
749
|
}>;
|
|
786
750
|
}, z.core.$strip>;
|
|
787
751
|
kind: z.ZodNullable<z.ZodObject<{
|
|
@@ -817,13 +781,13 @@ export declare const TaskDetail: z.ZodObject<{
|
|
|
817
781
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
818
782
|
name: z.ZodString;
|
|
819
783
|
type: z.ZodEnum<{
|
|
784
|
+
archive: "archive";
|
|
785
|
+
done: "done";
|
|
820
786
|
backlog: "backlog";
|
|
821
787
|
open: "open";
|
|
822
788
|
progress: "progress";
|
|
823
|
-
done: "done";
|
|
824
789
|
discarded: "discarded";
|
|
825
790
|
blocked: "blocked";
|
|
826
|
-
archive: "archive";
|
|
827
791
|
}>;
|
|
828
792
|
}, z.core.$strip>;
|
|
829
793
|
kind: z.ZodNullable<z.ZodObject<{
|
|
@@ -849,6 +813,13 @@ export declare const TaskDetail: z.ZodObject<{
|
|
|
849
813
|
}>;
|
|
850
814
|
}, z.core.$strip>>;
|
|
851
815
|
}, z.core.$strip>>;
|
|
816
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
817
|
+
taskId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
818
|
+
from: z.ZodTemplateLiteral<`column_${string}`>;
|
|
819
|
+
when: z.ZodTemplateLiteral<`column_${string}`>;
|
|
820
|
+
to: z.ZodTemplateLiteral<`column_${string}`>;
|
|
821
|
+
valid: z.ZodBoolean;
|
|
822
|
+
}, z.core.$strip>>;
|
|
852
823
|
ready: z.ZodBoolean;
|
|
853
824
|
images: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
854
825
|
kind: z.ZodLiteral<"url">;
|
|
@@ -897,71 +868,6 @@ export declare const TaskDetail: z.ZodObject<{
|
|
|
897
868
|
}>>;
|
|
898
869
|
}, z.core.$strip>;
|
|
899
870
|
}, z.core.$strip>>;
|
|
900
|
-
subject: z.ZodNullable<z.ZodObject<{
|
|
901
|
-
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
902
|
-
kind: z.ZodEnum<{
|
|
903
|
-
file: "file";
|
|
904
|
-
folder: "folder";
|
|
905
|
-
document: "document";
|
|
906
|
-
table: "table";
|
|
907
|
-
board: "board";
|
|
908
|
-
task: "task";
|
|
909
|
-
gadget: "gadget";
|
|
910
|
-
goal: "goal";
|
|
911
|
-
skill: "skill";
|
|
912
|
-
source: "source";
|
|
913
|
-
}>;
|
|
914
|
-
name: z.ZodString;
|
|
915
|
-
path: z.ZodObject<{
|
|
916
|
-
section: z.ZodEnum<{
|
|
917
|
-
users: "users";
|
|
918
|
-
own: "own";
|
|
919
|
-
shared: "shared";
|
|
920
|
-
}>;
|
|
921
|
-
items: z.ZodArray<z.ZodObject<{
|
|
922
|
-
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
923
|
-
name: z.ZodString;
|
|
924
|
-
}, z.core.$strip>>;
|
|
925
|
-
}, z.core.$strip>;
|
|
926
|
-
}, z.core.$strip>>;
|
|
927
|
-
lastMove: z.ZodNullable<z.ZodObject<{
|
|
928
|
-
from: z.ZodNullable<z.ZodObject<{
|
|
929
|
-
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
930
|
-
name: z.ZodNullable<z.ZodString>;
|
|
931
|
-
type: z.ZodNullable<z.ZodEnum<{
|
|
932
|
-
backlog: "backlog";
|
|
933
|
-
open: "open";
|
|
934
|
-
progress: "progress";
|
|
935
|
-
done: "done";
|
|
936
|
-
discarded: "discarded";
|
|
937
|
-
blocked: "blocked";
|
|
938
|
-
archive: "archive";
|
|
939
|
-
}>>;
|
|
940
|
-
}, z.core.$strip>>;
|
|
941
|
-
to: z.ZodObject<{
|
|
942
|
-
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
943
|
-
name: z.ZodNullable<z.ZodString>;
|
|
944
|
-
type: z.ZodNullable<z.ZodEnum<{
|
|
945
|
-
backlog: "backlog";
|
|
946
|
-
open: "open";
|
|
947
|
-
progress: "progress";
|
|
948
|
-
done: "done";
|
|
949
|
-
discarded: "discarded";
|
|
950
|
-
blocked: "blocked";
|
|
951
|
-
archive: "archive";
|
|
952
|
-
}>>;
|
|
953
|
-
}, z.core.$strip>;
|
|
954
|
-
comment: z.ZodNullable<z.ZodString>;
|
|
955
|
-
movedBy: z.ZodObject<{
|
|
956
|
-
userId: z.ZodString;
|
|
957
|
-
name: z.ZodNullable<z.ZodString>;
|
|
958
|
-
kind: z.ZodNullable<z.ZodEnum<{
|
|
959
|
-
machine: "machine";
|
|
960
|
-
human: "human";
|
|
961
|
-
}>>;
|
|
962
|
-
}, z.core.$strip>;
|
|
963
|
-
movedAt: z.ZodISODateTime;
|
|
964
|
-
}, z.core.$strip>>;
|
|
965
871
|
createdBy: z.ZodObject<{
|
|
966
872
|
userId: z.ZodString;
|
|
967
873
|
name: z.ZodNullable<z.ZodString>;
|
|
@@ -985,17 +891,16 @@ export declare const TaskDetail: z.ZodObject<{
|
|
|
985
891
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
986
892
|
name: z.ZodString;
|
|
987
893
|
type: z.ZodEnum<{
|
|
894
|
+
archive: "archive";
|
|
895
|
+
done: "done";
|
|
988
896
|
backlog: "backlog";
|
|
989
897
|
open: "open";
|
|
990
898
|
progress: "progress";
|
|
991
|
-
done: "done";
|
|
992
899
|
discarded: "discarded";
|
|
993
900
|
blocked: "blocked";
|
|
994
|
-
archive: "archive";
|
|
995
901
|
}>;
|
|
996
902
|
visible: z.ZodBoolean;
|
|
997
903
|
description: z.ZodString;
|
|
998
|
-
system: z.ZodOptional<z.ZodLiteral<"new">>;
|
|
999
904
|
current: z.ZodBoolean;
|
|
1000
905
|
}, z.core.$strip>>>;
|
|
1001
906
|
}, z.core.$strip>;
|
package/dist/boards/boards.js
CHANGED
|
@@ -4,10 +4,8 @@ import { ColumnId, ColumnType, TaskColumn } from "../columns/columns.js";
|
|
|
4
4
|
import { idSchema } from "../ids/ids.js";
|
|
5
5
|
import { InstructionRead, Known } from "../instructions/instructions.js";
|
|
6
6
|
import { Flag } from "../list-input.js";
|
|
7
|
-
import { BoardShownKind,
|
|
7
|
+
import { BoardShownKind, CreateSection, NodeId, NodePerson } from "../nodes/nodes.js";
|
|
8
8
|
import { IdempotencyKey, Rev } from "../primitives/primitives.js";
|
|
9
|
-
import { TicketSubject, TicketSubjectRef } from "../validation/validation.js";
|
|
10
|
-
import { TaskMove } from "../versions/versions.js";
|
|
11
9
|
// Boards, their columns and labels, and tasks (#42, Nodes › Board, Nodes › Aufgabe, E38, E40, E41,
|
|
12
10
|
// E43, E44, E67, E70): the inputs of `intelligence_board_create`, `_get`, `_update`,
|
|
13
11
|
// `intelligence_board_task_list`, `_create`, `intelligence_task_get`, `_update`, and the answers. A
|
|
@@ -66,7 +64,7 @@ export const BoardUpdateInput = z.strictObject({
|
|
|
66
64
|
boardId: BoardId,
|
|
67
65
|
rev: Rev,
|
|
68
66
|
kind: BoardKind.optional().describe("Make a process from before goals a board again. Its runs stay readable with intelligence_run_list."),
|
|
69
|
-
instruction: BoardInstruction.optional().describe("The board's instruction, Markdown: what the board is about and how every AI working on it goes about it. It comes along with every read of the board and its tasks over MCP, as only its digest where the read sends that digest under known.
|
|
67
|
+
instruction: BoardInstruction.optional().describe("The board's instruction, Markdown: what the board is about and how every AI working on it goes about it. It comes along with every read of the board and its tasks over MCP, as only its digest where the read sends that digest under known. An empty text removes it; leaving it out keeps it."),
|
|
70
68
|
columns: Columns.optional(),
|
|
71
69
|
cardKinds: CardKindsInput.optional(),
|
|
72
70
|
labels: z
|
|
@@ -85,22 +83,14 @@ export const BoardColumn = z.object({
|
|
|
85
83
|
visible: z.boolean(),
|
|
86
84
|
// Markdown, empty without one (#624).
|
|
87
85
|
description: z.string(),
|
|
88
|
-
// `new` on the validation board's New only (#814): a column of type open where every ticket starts,
|
|
89
|
-
// shown unchecked (grey, dashed) like the status of its tickets. Absent on every other column.
|
|
90
|
-
system: z.literal("new").optional(),
|
|
91
86
|
});
|
|
92
87
|
export const BoardLabel = z.object({ labelId: LabelId, name: z.string() });
|
|
93
88
|
export const BoardDetail = z.object({
|
|
94
89
|
boardId: NodeId,
|
|
95
90
|
name: z.string(),
|
|
96
91
|
kind: BoardShownKind,
|
|
97
|
-
//
|
|
98
|
-
system: BoardSystem.nullable(),
|
|
99
|
-
// The board's instruction (E87, #354; the validation's since #47), Markdown; null without one.
|
|
92
|
+
// The board's instruction (E87, #354), Markdown; null without one.
|
|
100
93
|
instruction: z.string().nullable(),
|
|
101
|
-
// Who carries the validation (E79, #378): the holder of the role `validator` while they can act,
|
|
102
|
-
// for every reader of the validation board; null without one and for every other board.
|
|
103
|
-
validator: NodePerson.nullable(),
|
|
104
94
|
columns: z.array(BoardColumn),
|
|
105
95
|
// The card kinds with their fields in order (#638, E115); empty on a board of free cards.
|
|
106
96
|
cardKinds: z.array(CardKind),
|
|
@@ -159,6 +149,19 @@ const DependsOn = z
|
|
|
159
149
|
.array(TaskId)
|
|
160
150
|
.max(100)
|
|
161
151
|
.describe("The tasks of the same board this one waits for. It is ready once each of them is in a column of type done or discarded.");
|
|
152
|
+
// The rule on "waits for" (E242, #1132): when the card waited for moves into one column, Colab moves
|
|
153
|
+
// this card from one column into another. Every line names the board's columns by id.
|
|
154
|
+
export const maxRules = 5;
|
|
155
|
+
const RuleInput = z.strictObject({
|
|
156
|
+
taskId: TaskId.describe("The card this one waits for, one of its dependsOn: the line watches it. Every line names the same card."),
|
|
157
|
+
from: ColumnId.describe("The column this card must lie in for the line to act; lying elsewhere, nothing moves."),
|
|
158
|
+
when: ColumnId.describe("The column the card waited for moves into."),
|
|
159
|
+
to: ColumnId.describe("The column Colab then moves this card into."),
|
|
160
|
+
});
|
|
161
|
+
const Rules = z
|
|
162
|
+
.array(RuleInput)
|
|
163
|
+
.max(maxRules)
|
|
164
|
+
.describe("The rule on waits for, all its lines (at most 5): each says 'lying in from, when the card waited for moves into when, Colab moves this card to to'. Lines only for ONE card of dependsOn, never the archive column, never two lines with the same from and when. Without a rule nothing moves. Moved into an open column, its assignee wakes. Example, a release: lying in Backlog, when Review moves to Done, to Open; and when Review moves to Discarded, to Open. An empty list removes the rule; leaving it out keeps it.");
|
|
162
165
|
const Position = z
|
|
163
166
|
.string()
|
|
164
167
|
.min(1)
|
|
@@ -176,6 +179,7 @@ const newTask = {
|
|
|
176
179
|
labels: Labels.optional(),
|
|
177
180
|
parentTaskId: TaskId.optional().describe("Make it a subtask of this task of the same board; it is still a card of its own."),
|
|
178
181
|
dependsOn: DependsOn.optional(),
|
|
182
|
+
rules: Rules.optional(),
|
|
179
183
|
position: Position.optional(),
|
|
180
184
|
kind: TaskKindInput.optional(),
|
|
181
185
|
fields: TaskFieldsInput.optional(),
|
|
@@ -231,6 +235,7 @@ export const TaskUpdateInput = z.strictObject({
|
|
|
231
235
|
.optional()
|
|
232
236
|
.describe("Hang the task under this task of the same board; null makes it a task of its own again."),
|
|
233
237
|
dependsOn: DependsOn.optional(),
|
|
238
|
+
rules: Rules.optional(),
|
|
234
239
|
position: Position.optional(),
|
|
235
240
|
kind: TaskKindInput.optional().describe("Only to confirm: a card never changes its kind, so any other kind than its own is invalid."),
|
|
236
241
|
fields: TaskFieldsInput.optional(),
|
|
@@ -290,11 +295,7 @@ export const BoardTaskItem = z.object({
|
|
|
290
295
|
// without kinds.
|
|
291
296
|
kind: TaskKind.nullable(),
|
|
292
297
|
fields: TaskFields,
|
|
293
|
-
//
|
|
294
|
-
subject: TicketSubjectRef.nullable(),
|
|
295
|
-
// Whether the caller may change this task, as intelligence_task_update decides it: the board's
|
|
296
|
-
// right for a task, its node's for a ticket (#47: the node's responsible person, the holder of
|
|
297
|
-
// `validator` (#334), an admin in admin mode; only reading while the node is archived).
|
|
298
|
+
// Whether the caller may change this task, as intelligence_task_update decides it: the board's right.
|
|
298
299
|
rights: z.object({ write: z.boolean() }),
|
|
299
300
|
position: z.string(),
|
|
300
301
|
rev: z.number().int(),
|
|
@@ -329,6 +330,15 @@ const TaskRef = z.object({
|
|
|
329
330
|
column: TaskColumn,
|
|
330
331
|
kind: TaskKind.nullable(),
|
|
331
332
|
});
|
|
333
|
+
// A line of the rule as a card answers it (E242): `valid` false when one of its columns is gone from
|
|
334
|
+
// the board; such a line does not act.
|
|
335
|
+
export const TaskRule = z.object({
|
|
336
|
+
taskId: NodeId,
|
|
337
|
+
from: ColumnId,
|
|
338
|
+
when: ColumnId,
|
|
339
|
+
to: ColumnId,
|
|
340
|
+
valid: z.boolean(),
|
|
341
|
+
});
|
|
332
342
|
export const TaskDetail = z.object({
|
|
333
343
|
taskId: NodeId,
|
|
334
344
|
boardId: NodeId,
|
|
@@ -356,6 +366,8 @@ export const TaskDetail = z.object({
|
|
|
356
366
|
total: z.number().int(),
|
|
357
367
|
}),
|
|
358
368
|
dependencies: z.array(TaskRef),
|
|
369
|
+
// The rule on waits for (E242), its lines in order; empty without one.
|
|
370
|
+
rules: z.array(TaskRule),
|
|
359
371
|
ready: z.boolean(),
|
|
360
372
|
images: z.array(TaskImage),
|
|
361
373
|
// The card's kind and the values of its fields by name (#638, E115); null and {} on a board
|
|
@@ -366,11 +378,6 @@ export const TaskDetail = z.object({
|
|
|
366
378
|
// The task waits (#377, E77): its assignee lacks something, a right above all, and asked in the
|
|
367
379
|
// chat. Shown in place of the column; null while it does not wait.
|
|
368
380
|
waiting: z.object({ since: z.iso.datetime(), by: NodePerson }).nullable(),
|
|
369
|
-
// A ticket of the validation board (#47): the node it validates with its path, and its last move
|
|
370
|
-
// from its versions (E117), null before its first. Both null for every other task; the history of
|
|
371
|
-
// every task stands in intelligence_node_version_list.
|
|
372
|
-
subject: TicketSubject.nullable(),
|
|
373
|
-
lastMove: TaskMove.nullable(),
|
|
374
381
|
createdBy: NodePerson,
|
|
375
382
|
rev: z.number().int(),
|
|
376
383
|
archivedAt: z.iso.datetime().nullable(),
|
|
@@ -97,7 +97,7 @@ export const CardKindInput = z.strictObject({
|
|
|
97
97
|
export const CardKindsInput = z
|
|
98
98
|
.array(CardKindInput)
|
|
99
99
|
.max(20)
|
|
100
|
-
.describe("The board's card kinds, all of them, in their order: a kind with kindId is kept, one without is made, one left out is removed, which only a kind no card has can be. Once a board has kinds, every card has exactly one: the cards that stand get the standard kind when the first kind is made, and a card never changes its kind.
|
|
100
|
+
.describe("The board's card kinds, all of them, in their order: a kind with kindId is kept, one without is made, one left out is removed, which only a kind no card has can be. Once a board has kinds, every card has exactly one: the cards that stand get the standard kind when the first kind is made, and a card never changes its kind.");
|
|
101
101
|
export const CardFieldOption = z.object({ optionId: CardOptionId, name: z.string() });
|
|
102
102
|
export const CardField = z.object({
|
|
103
103
|
fieldId: CardFieldId,
|