@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
|
@@ -22,26 +22,26 @@ export declare const ActionTask: z.ZodObject<{
|
|
|
22
22
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
23
23
|
name: z.ZodString;
|
|
24
24
|
type: z.ZodEnum<{
|
|
25
|
+
archive: "archive";
|
|
26
|
+
done: "done";
|
|
25
27
|
backlog: "backlog";
|
|
26
28
|
open: "open";
|
|
27
29
|
progress: "progress";
|
|
28
|
-
done: "done";
|
|
29
30
|
discarded: "discarded";
|
|
30
31
|
blocked: "blocked";
|
|
31
|
-
archive: "archive";
|
|
32
32
|
}>;
|
|
33
33
|
}, z.core.$strip>;
|
|
34
34
|
buttons: z.ZodArray<z.ZodObject<{
|
|
35
35
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
36
36
|
name: z.ZodString;
|
|
37
37
|
type: z.ZodEnum<{
|
|
38
|
+
archive: "archive";
|
|
39
|
+
done: "done";
|
|
38
40
|
backlog: "backlog";
|
|
39
41
|
open: "open";
|
|
40
42
|
progress: "progress";
|
|
41
|
-
done: "done";
|
|
42
43
|
discarded: "discarded";
|
|
43
44
|
blocked: "blocked";
|
|
44
|
-
archive: "archive";
|
|
45
45
|
}>;
|
|
46
46
|
}, z.core.$strip>>;
|
|
47
47
|
handedOver: z.ZodBoolean;
|
|
@@ -88,13 +88,13 @@ export declare const ActionRunTask: z.ZodObject<{
|
|
|
88
88
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
89
89
|
name: z.ZodString;
|
|
90
90
|
type: z.ZodEnum<{
|
|
91
|
+
archive: "archive";
|
|
92
|
+
done: "done";
|
|
91
93
|
backlog: "backlog";
|
|
92
94
|
open: "open";
|
|
93
95
|
progress: "progress";
|
|
94
|
-
done: "done";
|
|
95
96
|
discarded: "discarded";
|
|
96
97
|
blocked: "blocked";
|
|
97
|
-
archive: "archive";
|
|
98
98
|
}>;
|
|
99
99
|
}, z.core.$strip>;
|
|
100
100
|
rev: z.ZodNumber;
|
|
@@ -159,18 +159,8 @@ export declare const ActionItem: z.ZodObject<{
|
|
|
159
159
|
name: z.ZodString;
|
|
160
160
|
}, z.core.$strip>>;
|
|
161
161
|
}, z.core.$strip>;
|
|
162
|
-
status: z.ZodNullable<z.ZodEnum<{
|
|
163
|
-
backlog: "backlog";
|
|
164
|
-
open: "open";
|
|
165
|
-
progress: "progress";
|
|
166
|
-
done: "done";
|
|
167
|
-
discarded: "discarded";
|
|
168
|
-
blocked: "blocked";
|
|
169
|
-
archive: "archive";
|
|
170
|
-
}>>;
|
|
171
162
|
boardKind: z.ZodNullable<z.ZodEnum<{
|
|
172
163
|
board: "board";
|
|
173
|
-
validation: "validation";
|
|
174
164
|
process: "process";
|
|
175
165
|
}>>;
|
|
176
166
|
}, z.core.$strip>;
|
|
@@ -184,26 +174,26 @@ export declare const ActionItem: z.ZodObject<{
|
|
|
184
174
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
185
175
|
name: z.ZodString;
|
|
186
176
|
type: z.ZodEnum<{
|
|
177
|
+
archive: "archive";
|
|
178
|
+
done: "done";
|
|
187
179
|
backlog: "backlog";
|
|
188
180
|
open: "open";
|
|
189
181
|
progress: "progress";
|
|
190
|
-
done: "done";
|
|
191
182
|
discarded: "discarded";
|
|
192
183
|
blocked: "blocked";
|
|
193
|
-
archive: "archive";
|
|
194
184
|
}>;
|
|
195
185
|
}, z.core.$strip>;
|
|
196
186
|
buttons: z.ZodArray<z.ZodObject<{
|
|
197
187
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
198
188
|
name: z.ZodString;
|
|
199
189
|
type: z.ZodEnum<{
|
|
190
|
+
archive: "archive";
|
|
191
|
+
done: "done";
|
|
200
192
|
backlog: "backlog";
|
|
201
193
|
open: "open";
|
|
202
194
|
progress: "progress";
|
|
203
|
-
done: "done";
|
|
204
195
|
discarded: "discarded";
|
|
205
196
|
blocked: "blocked";
|
|
206
|
-
archive: "archive";
|
|
207
197
|
}>;
|
|
208
198
|
}, z.core.$strip>>;
|
|
209
199
|
handedOver: z.ZodBoolean;
|
|
@@ -310,6 +300,8 @@ export declare const ActionNoticeTitle: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
310
300
|
}>;
|
|
311
301
|
}, z.core.$strip>, z.ZodObject<{
|
|
312
302
|
text: z.ZodLiteral<"runUnfinished">;
|
|
303
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
304
|
+
text: z.ZodLiteral<"ownCredential">;
|
|
313
305
|
}, z.core.$strip>], "text">;
|
|
314
306
|
export type ActionNoticeTitle = z.infer<typeof ActionNoticeTitle>;
|
|
315
307
|
export declare const ActionNoticeCrumb: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -344,6 +336,15 @@ export declare const ActionNoticeReason: z.ZodObject<{
|
|
|
344
336
|
spentUsd: z.ZodNumber;
|
|
345
337
|
limitUsd: z.ZodNumber;
|
|
346
338
|
until: z.ZodISODateTime;
|
|
339
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
340
|
+
text: z.ZodLiteral<"ownDown">;
|
|
341
|
+
state: z.ZodEnum<{
|
|
342
|
+
limit: "limit";
|
|
343
|
+
invalid: "invalid";
|
|
344
|
+
}>;
|
|
345
|
+
since: z.ZodISODateTime;
|
|
346
|
+
until: z.ZodNullable<z.ZodISODateTime>;
|
|
347
|
+
paused: z.ZodArray<z.ZodString>;
|
|
347
348
|
}, z.core.$strip>, z.ZodObject<{
|
|
348
349
|
text: z.ZodLiteral<"lastFailure">;
|
|
349
350
|
at: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -380,13 +381,13 @@ export declare const ActionAbort: z.ZodObject<{
|
|
|
380
381
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
381
382
|
name: z.ZodString;
|
|
382
383
|
type: z.ZodEnum<{
|
|
384
|
+
archive: "archive";
|
|
385
|
+
done: "done";
|
|
383
386
|
backlog: "backlog";
|
|
384
387
|
open: "open";
|
|
385
388
|
progress: "progress";
|
|
386
|
-
done: "done";
|
|
387
389
|
discarded: "discarded";
|
|
388
390
|
blocked: "blocked";
|
|
389
|
-
archive: "archive";
|
|
390
391
|
}>;
|
|
391
392
|
}, z.core.$strip>;
|
|
392
393
|
rev: z.ZodNumber;
|
|
@@ -431,6 +432,8 @@ export declare const ActionNotice: z.ZodObject<{
|
|
|
431
432
|
}>;
|
|
432
433
|
}, z.core.$strip>, z.ZodObject<{
|
|
433
434
|
text: z.ZodLiteral<"runUnfinished">;
|
|
435
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
436
|
+
text: z.ZodLiteral<"ownCredential">;
|
|
434
437
|
}, z.core.$strip>], "text">;
|
|
435
438
|
path: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
436
439
|
word: z.ZodEnum<{
|
|
@@ -463,6 +466,15 @@ export declare const ActionNotice: z.ZodObject<{
|
|
|
463
466
|
spentUsd: z.ZodNumber;
|
|
464
467
|
limitUsd: z.ZodNumber;
|
|
465
468
|
until: z.ZodISODateTime;
|
|
469
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
470
|
+
text: z.ZodLiteral<"ownDown">;
|
|
471
|
+
state: z.ZodEnum<{
|
|
472
|
+
limit: "limit";
|
|
473
|
+
invalid: "invalid";
|
|
474
|
+
}>;
|
|
475
|
+
since: z.ZodISODateTime;
|
|
476
|
+
until: z.ZodNullable<z.ZodISODateTime>;
|
|
477
|
+
paused: z.ZodArray<z.ZodString>;
|
|
466
478
|
}, z.core.$strip>, z.ZodObject<{
|
|
467
479
|
text: z.ZodLiteral<"lastFailure">;
|
|
468
480
|
at: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -498,13 +510,13 @@ export declare const ActionNotice: z.ZodObject<{
|
|
|
498
510
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
499
511
|
name: z.ZodString;
|
|
500
512
|
type: z.ZodEnum<{
|
|
513
|
+
archive: "archive";
|
|
514
|
+
done: "done";
|
|
501
515
|
backlog: "backlog";
|
|
502
516
|
open: "open";
|
|
503
517
|
progress: "progress";
|
|
504
|
-
done: "done";
|
|
505
518
|
discarded: "discarded";
|
|
506
519
|
blocked: "blocked";
|
|
507
|
-
archive: "archive";
|
|
508
520
|
}>;
|
|
509
521
|
}, z.core.$strip>;
|
|
510
522
|
rev: z.ZodNumber;
|
|
@@ -551,6 +563,8 @@ export declare const ActionNoticeItem: z.ZodObject<{
|
|
|
551
563
|
}>;
|
|
552
564
|
}, z.core.$strip>, z.ZodObject<{
|
|
553
565
|
text: z.ZodLiteral<"runUnfinished">;
|
|
566
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
567
|
+
text: z.ZodLiteral<"ownCredential">;
|
|
554
568
|
}, z.core.$strip>], "text">;
|
|
555
569
|
path: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
556
570
|
word: z.ZodEnum<{
|
|
@@ -583,6 +597,15 @@ export declare const ActionNoticeItem: z.ZodObject<{
|
|
|
583
597
|
spentUsd: z.ZodNumber;
|
|
584
598
|
limitUsd: z.ZodNumber;
|
|
585
599
|
until: z.ZodISODateTime;
|
|
600
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
601
|
+
text: z.ZodLiteral<"ownDown">;
|
|
602
|
+
state: z.ZodEnum<{
|
|
603
|
+
limit: "limit";
|
|
604
|
+
invalid: "invalid";
|
|
605
|
+
}>;
|
|
606
|
+
since: z.ZodISODateTime;
|
|
607
|
+
until: z.ZodNullable<z.ZodISODateTime>;
|
|
608
|
+
paused: z.ZodArray<z.ZodString>;
|
|
586
609
|
}, z.core.$strip>, z.ZodObject<{
|
|
587
610
|
text: z.ZodLiteral<"lastFailure">;
|
|
588
611
|
at: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -618,13 +641,13 @@ export declare const ActionNoticeItem: z.ZodObject<{
|
|
|
618
641
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
619
642
|
name: z.ZodString;
|
|
620
643
|
type: z.ZodEnum<{
|
|
644
|
+
archive: "archive";
|
|
645
|
+
done: "done";
|
|
621
646
|
backlog: "backlog";
|
|
622
647
|
open: "open";
|
|
623
648
|
progress: "progress";
|
|
624
|
-
done: "done";
|
|
625
649
|
discarded: "discarded";
|
|
626
650
|
blocked: "blocked";
|
|
627
|
-
archive: "archive";
|
|
628
651
|
}>;
|
|
629
652
|
}, z.core.$strip>;
|
|
630
653
|
rev: z.ZodNumber;
|
|
@@ -666,18 +689,8 @@ export declare const ActionRow: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
666
689
|
name: z.ZodString;
|
|
667
690
|
}, z.core.$strip>>;
|
|
668
691
|
}, z.core.$strip>;
|
|
669
|
-
status: z.ZodNullable<z.ZodEnum<{
|
|
670
|
-
backlog: "backlog";
|
|
671
|
-
open: "open";
|
|
672
|
-
progress: "progress";
|
|
673
|
-
done: "done";
|
|
674
|
-
discarded: "discarded";
|
|
675
|
-
blocked: "blocked";
|
|
676
|
-
archive: "archive";
|
|
677
|
-
}>>;
|
|
678
692
|
boardKind: z.ZodNullable<z.ZodEnum<{
|
|
679
693
|
board: "board";
|
|
680
|
-
validation: "validation";
|
|
681
694
|
process: "process";
|
|
682
695
|
}>>;
|
|
683
696
|
}, z.core.$strip>;
|
|
@@ -691,26 +704,26 @@ export declare const ActionRow: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
691
704
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
692
705
|
name: z.ZodString;
|
|
693
706
|
type: z.ZodEnum<{
|
|
707
|
+
archive: "archive";
|
|
708
|
+
done: "done";
|
|
694
709
|
backlog: "backlog";
|
|
695
710
|
open: "open";
|
|
696
711
|
progress: "progress";
|
|
697
|
-
done: "done";
|
|
698
712
|
discarded: "discarded";
|
|
699
713
|
blocked: "blocked";
|
|
700
|
-
archive: "archive";
|
|
701
714
|
}>;
|
|
702
715
|
}, z.core.$strip>;
|
|
703
716
|
buttons: z.ZodArray<z.ZodObject<{
|
|
704
717
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
705
718
|
name: z.ZodString;
|
|
706
719
|
type: z.ZodEnum<{
|
|
720
|
+
archive: "archive";
|
|
721
|
+
done: "done";
|
|
707
722
|
backlog: "backlog";
|
|
708
723
|
open: "open";
|
|
709
724
|
progress: "progress";
|
|
710
|
-
done: "done";
|
|
711
725
|
discarded: "discarded";
|
|
712
726
|
blocked: "blocked";
|
|
713
|
-
archive: "archive";
|
|
714
727
|
}>;
|
|
715
728
|
}, z.core.$strip>>;
|
|
716
729
|
handedOver: z.ZodBoolean;
|
|
@@ -815,6 +828,8 @@ export declare const ActionRow: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
815
828
|
}>;
|
|
816
829
|
}, z.core.$strip>, z.ZodObject<{
|
|
817
830
|
text: z.ZodLiteral<"runUnfinished">;
|
|
831
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
832
|
+
text: z.ZodLiteral<"ownCredential">;
|
|
818
833
|
}, z.core.$strip>], "text">;
|
|
819
834
|
path: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
820
835
|
word: z.ZodEnum<{
|
|
@@ -847,6 +862,15 @@ export declare const ActionRow: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
847
862
|
spentUsd: z.ZodNumber;
|
|
848
863
|
limitUsd: z.ZodNumber;
|
|
849
864
|
until: z.ZodISODateTime;
|
|
865
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
866
|
+
text: z.ZodLiteral<"ownDown">;
|
|
867
|
+
state: z.ZodEnum<{
|
|
868
|
+
limit: "limit";
|
|
869
|
+
invalid: "invalid";
|
|
870
|
+
}>;
|
|
871
|
+
since: z.ZodISODateTime;
|
|
872
|
+
until: z.ZodNullable<z.ZodISODateTime>;
|
|
873
|
+
paused: z.ZodArray<z.ZodString>;
|
|
850
874
|
}, z.core.$strip>, z.ZodObject<{
|
|
851
875
|
text: z.ZodLiteral<"lastFailure">;
|
|
852
876
|
at: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -882,13 +906,13 @@ export declare const ActionRow: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
882
906
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
883
907
|
name: z.ZodString;
|
|
884
908
|
type: z.ZodEnum<{
|
|
909
|
+
archive: "archive";
|
|
910
|
+
done: "done";
|
|
885
911
|
backlog: "backlog";
|
|
886
912
|
open: "open";
|
|
887
913
|
progress: "progress";
|
|
888
|
-
done: "done";
|
|
889
914
|
discarded: "discarded";
|
|
890
915
|
blocked: "blocked";
|
|
891
|
-
archive: "archive";
|
|
892
916
|
}>;
|
|
893
917
|
}, z.core.$strip>;
|
|
894
918
|
rev: z.ZodNumber;
|
|
@@ -905,14 +929,12 @@ export type ActionRow = z.infer<typeof ActionRow>;
|
|
|
905
929
|
export declare function isNodeRow(row: ActionRow): row is ActionItem;
|
|
906
930
|
export declare const MachineInstructions: z.ZodObject<{
|
|
907
931
|
path: z.ZodString;
|
|
908
|
-
status: z.ZodNullable<z.ZodString>;
|
|
909
932
|
markdown: z.ZodString;
|
|
910
933
|
version: z.ZodNullable<z.ZodInt>;
|
|
911
934
|
}, z.core.$strip>;
|
|
912
935
|
export type MachineInstructions = z.infer<typeof MachineInstructions>;
|
|
913
936
|
export declare const MachineInstructionsRead: z.ZodUnion<readonly [z.ZodObject<{
|
|
914
937
|
path: z.ZodString;
|
|
915
|
-
status: z.ZodNullable<z.ZodString>;
|
|
916
938
|
markdown: z.ZodString;
|
|
917
939
|
version: z.ZodNullable<z.ZodInt>;
|
|
918
940
|
digest: z.ZodString;
|
|
@@ -950,18 +972,8 @@ export declare const ActionList: z.ZodObject<{
|
|
|
950
972
|
name: z.ZodString;
|
|
951
973
|
}, z.core.$strip>>;
|
|
952
974
|
}, z.core.$strip>;
|
|
953
|
-
status: z.ZodNullable<z.ZodEnum<{
|
|
954
|
-
backlog: "backlog";
|
|
955
|
-
open: "open";
|
|
956
|
-
progress: "progress";
|
|
957
|
-
done: "done";
|
|
958
|
-
discarded: "discarded";
|
|
959
|
-
blocked: "blocked";
|
|
960
|
-
archive: "archive";
|
|
961
|
-
}>>;
|
|
962
975
|
boardKind: z.ZodNullable<z.ZodEnum<{
|
|
963
976
|
board: "board";
|
|
964
|
-
validation: "validation";
|
|
965
977
|
process: "process";
|
|
966
978
|
}>>;
|
|
967
979
|
}, z.core.$strip>;
|
|
@@ -975,26 +987,26 @@ export declare const ActionList: z.ZodObject<{
|
|
|
975
987
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
976
988
|
name: z.ZodString;
|
|
977
989
|
type: z.ZodEnum<{
|
|
990
|
+
archive: "archive";
|
|
991
|
+
done: "done";
|
|
978
992
|
backlog: "backlog";
|
|
979
993
|
open: "open";
|
|
980
994
|
progress: "progress";
|
|
981
|
-
done: "done";
|
|
982
995
|
discarded: "discarded";
|
|
983
996
|
blocked: "blocked";
|
|
984
|
-
archive: "archive";
|
|
985
997
|
}>;
|
|
986
998
|
}, z.core.$strip>;
|
|
987
999
|
buttons: z.ZodArray<z.ZodObject<{
|
|
988
1000
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
989
1001
|
name: z.ZodString;
|
|
990
1002
|
type: z.ZodEnum<{
|
|
1003
|
+
archive: "archive";
|
|
1004
|
+
done: "done";
|
|
991
1005
|
backlog: "backlog";
|
|
992
1006
|
open: "open";
|
|
993
1007
|
progress: "progress";
|
|
994
|
-
done: "done";
|
|
995
1008
|
discarded: "discarded";
|
|
996
1009
|
blocked: "blocked";
|
|
997
|
-
archive: "archive";
|
|
998
1010
|
}>;
|
|
999
1011
|
}, z.core.$strip>>;
|
|
1000
1012
|
handedOver: z.ZodBoolean;
|
|
@@ -1099,6 +1111,8 @@ export declare const ActionList: z.ZodObject<{
|
|
|
1099
1111
|
}>;
|
|
1100
1112
|
}, z.core.$strip>, z.ZodObject<{
|
|
1101
1113
|
text: z.ZodLiteral<"runUnfinished">;
|
|
1114
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1115
|
+
text: z.ZodLiteral<"ownCredential">;
|
|
1102
1116
|
}, z.core.$strip>], "text">;
|
|
1103
1117
|
path: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1104
1118
|
word: z.ZodEnum<{
|
|
@@ -1131,6 +1145,15 @@ export declare const ActionList: z.ZodObject<{
|
|
|
1131
1145
|
spentUsd: z.ZodNumber;
|
|
1132
1146
|
limitUsd: z.ZodNumber;
|
|
1133
1147
|
until: z.ZodISODateTime;
|
|
1148
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1149
|
+
text: z.ZodLiteral<"ownDown">;
|
|
1150
|
+
state: z.ZodEnum<{
|
|
1151
|
+
limit: "limit";
|
|
1152
|
+
invalid: "invalid";
|
|
1153
|
+
}>;
|
|
1154
|
+
since: z.ZodISODateTime;
|
|
1155
|
+
until: z.ZodNullable<z.ZodISODateTime>;
|
|
1156
|
+
paused: z.ZodArray<z.ZodString>;
|
|
1134
1157
|
}, z.core.$strip>, z.ZodObject<{
|
|
1135
1158
|
text: z.ZodLiteral<"lastFailure">;
|
|
1136
1159
|
at: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -1166,13 +1189,13 @@ export declare const ActionList: z.ZodObject<{
|
|
|
1166
1189
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
1167
1190
|
name: z.ZodString;
|
|
1168
1191
|
type: z.ZodEnum<{
|
|
1192
|
+
archive: "archive";
|
|
1193
|
+
done: "done";
|
|
1169
1194
|
backlog: "backlog";
|
|
1170
1195
|
open: "open";
|
|
1171
1196
|
progress: "progress";
|
|
1172
|
-
done: "done";
|
|
1173
1197
|
discarded: "discarded";
|
|
1174
1198
|
blocked: "blocked";
|
|
1175
|
-
archive: "archive";
|
|
1176
1199
|
}>;
|
|
1177
1200
|
}, z.core.$strip>;
|
|
1178
1201
|
rev: z.ZodNumber;
|
|
@@ -1189,7 +1212,6 @@ export declare const ActionList: z.ZodObject<{
|
|
|
1189
1212
|
count: z.ZodNumber;
|
|
1190
1213
|
instructions: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1191
1214
|
path: z.ZodString;
|
|
1192
|
-
status: z.ZodNullable<z.ZodString>;
|
|
1193
1215
|
markdown: z.ZodString;
|
|
1194
1216
|
version: z.ZodNullable<z.ZodInt>;
|
|
1195
1217
|
digest: z.ZodString;
|
package/dist/actions/actions.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import {
|
|
2
|
+
import { TaskColumn } from "../columns/columns.js";
|
|
3
3
|
import { CallId } from "../connectors/connectors.js";
|
|
4
4
|
import { GadgetLevel } from "../gadgets/gadgets.js";
|
|
5
5
|
import { packages } from "../grammar/grammar.js";
|
|
@@ -110,12 +110,7 @@ export const ActionItem = z.object({
|
|
|
110
110
|
kind: NodeKindRead,
|
|
111
111
|
name: z.string(),
|
|
112
112
|
// Where it stands, from the first level the person can read; a task's last crumb is its board.
|
|
113
|
-
// A ticket of the validation board (#47) is called after its node, its crumb is the board.
|
|
114
113
|
path: NodePath,
|
|
115
|
-
// The validation status (#47): the type of the column the ticket of a document, table or file
|
|
116
|
-
// stands in, and a ticket's own; null for every other node. ⚠️ A ticket in New reads `backlog`
|
|
117
|
-
// (unchecked) although New is a column of type open (#814, E141).
|
|
118
|
-
status: ColumnType.nullable(),
|
|
119
114
|
// What a board is, like `NodeListItem.boardKind` (#227); null for every other kind.
|
|
120
115
|
boardKind: BoardShownKind.nullable(),
|
|
121
116
|
}),
|
|
@@ -169,6 +164,9 @@ export const ActionNoticeTitle = z.discriminatedUnion("text", [
|
|
|
169
164
|
z.object({ text: z.literal("runAborted"), reason: ActionAbortReason }),
|
|
170
165
|
// "Run not finished" (E231, #1097): it completed with open work.
|
|
171
166
|
z.object({ text: z.literal("runUnfinished") }),
|
|
167
|
+
// "Your own access does not carry" (E240, #1114): the person's own token is refused or at its
|
|
168
|
+
// limit and no company credential marked personal takes over.
|
|
169
|
+
z.object({ text: z.literal("ownCredential") }),
|
|
172
170
|
]);
|
|
173
171
|
// One step of the grey path below the title: a word the UI translates, or a name shown as it is.
|
|
174
172
|
export const ActionNoticeCrumb = z.union([
|
|
@@ -200,6 +198,14 @@ export const ActionNoticeReason = z.object({
|
|
|
200
198
|
limitUsd: z.number().nonnegative(),
|
|
201
199
|
until: z.iso.datetime(),
|
|
202
200
|
}),
|
|
201
|
+
// "Refused since <since>" or "At its limit until <until>", then "<paused> are paused." (E240)
|
|
202
|
+
z.object({
|
|
203
|
+
text: z.literal("ownDown"),
|
|
204
|
+
state: z.enum(["invalid", "limit"]),
|
|
205
|
+
since: z.iso.datetime(),
|
|
206
|
+
until: z.iso.datetime().nullable(),
|
|
207
|
+
paused: z.array(z.string()),
|
|
208
|
+
}),
|
|
203
209
|
// "Last at <at>: <detail>", the last failed run; null without one.
|
|
204
210
|
z.object({
|
|
205
211
|
text: z.literal("lastFailure"),
|