@anchrd/colab-sdk 0.1.32 → 0.1.33
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/README.md +3 -1
- package/dist/actions/actions.d.ts +46 -17
- package/dist/actions/actions.js +10 -0
- package/dist/archive/archive.d.ts +10 -0
- package/dist/archive/archive.js +9 -0
- package/dist/boards/boards.d.ts +29 -25
- package/dist/boards/boards.js +3 -2
- package/dist/card-kinds/card-kinds.d.ts +5 -5
- package/dist/columns/columns.d.ts +2 -2
- package/dist/connectors/connectors.d.ts +37 -3
- package/dist/connectors/connectors.js +6 -2
- package/dist/crawls/crawls.d.ts +3 -3
- package/dist/documents/documents.d.ts +4 -0
- package/dist/documents/documents.js +3 -2
- package/dist/error/error.d.ts +1 -0
- package/dist/error/error.js +8 -1
- package/dist/files/files.d.ts +4 -0
- package/dist/files/files.js +3 -2
- package/dist/gadgets/gadgets.d.ts +44 -0
- package/dist/gadgets/gadgets.js +35 -5
- package/dist/goals/goals.d.ts +7 -0
- package/dist/goals/goals.js +7 -5
- package/dist/grammar/grammar.d.ts +2 -1
- package/dist/grammar/grammar.js +9 -3
- package/dist/mcps/mcps.d.ts +41 -3
- package/dist/mcps/mcps.js +53 -3
- package/dist/nodes/nodes.d.ts +21 -9
- package/dist/nodes/nodes.js +16 -2
- package/dist/operators/operators.js +1 -1
- package/dist/organisation/organisation.d.ts +45 -0
- package/dist/organisation/organisation.js +45 -0
- package/dist/profile/profile.d.ts +3 -3
- package/dist/profile/profile.js +3 -2
- package/dist/providers/providers.d.ts +128 -0
- package/dist/providers/providers.js +118 -0
- package/dist/runs/runs.d.ts +3 -3
- package/dist/runtime-config.d.ts +12 -0
- package/dist/runtime-config.js +10 -0
- package/dist/sdk.d.ts +5 -4
- package/dist/sdk.js +5 -4
- package/dist/skills/skills.d.ts +4 -0
- package/dist/skills/skills.js +3 -2
- package/dist/sources/sources.d.ts +19 -4
- package/dist/sources/sources.js +8 -3
- package/dist/tables/tables.d.ts +4 -0
- package/dist/tables/tables.js +3 -2
- package/dist/versions/versions.d.ts +13 -13
- package/dist/written/written.d.ts +5 -2
- package/dist/written/written.js +2 -2
- package/package.json +1 -1
- package/dist/sso/sso.d.ts +0 -71
- package/dist/sso/sso.js +0 -59
package/README.md
CHANGED
|
@@ -33,7 +33,9 @@ ES modules only, with type declarations.
|
|
|
33
33
|
## The service client
|
|
34
34
|
|
|
35
35
|
A service registered under **Settings › Services** holds a service key. With it, the service checks
|
|
36
|
-
|
|
36
|
+
the caller's token once per request and decides locally what they may call. Colab accepts only a
|
|
37
|
+
token it issued for this service (an Operator's, or a person's for the service's OAuth resource); a
|
|
38
|
+
Colab session and a token for Colab's own `/mcp` get `401`:
|
|
37
39
|
|
|
38
40
|
```ts
|
|
39
41
|
import { createServiceClient } from "@anchrd/colab-sdk";
|
|
@@ -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";
|
|
25
26
|
backlog: "backlog";
|
|
26
27
|
open: "open";
|
|
27
28
|
progress: "progress";
|
|
28
29
|
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";
|
|
38
39
|
backlog: "backlog";
|
|
39
40
|
open: "open";
|
|
40
41
|
progress: "progress";
|
|
41
42
|
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;
|
|
@@ -86,13 +86,13 @@ export declare const ActionRunTask: z.ZodObject<{
|
|
|
86
86
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
87
87
|
name: z.ZodString;
|
|
88
88
|
type: z.ZodEnum<{
|
|
89
|
+
archive: "archive";
|
|
89
90
|
backlog: "backlog";
|
|
90
91
|
open: "open";
|
|
91
92
|
progress: "progress";
|
|
92
93
|
done: "done";
|
|
93
94
|
discarded: "discarded";
|
|
94
95
|
blocked: "blocked";
|
|
95
|
-
archive: "archive";
|
|
96
96
|
}>;
|
|
97
97
|
}, z.core.$strip>;
|
|
98
98
|
rev: z.ZodNumber;
|
|
@@ -121,6 +121,14 @@ export declare const ActionSource: z.ZodObject<{
|
|
|
121
121
|
hint: z.ZodBoolean;
|
|
122
122
|
}, z.core.$strip>;
|
|
123
123
|
export type ActionSource = z.infer<typeof ActionSource>;
|
|
124
|
+
export declare const ActionGoalRun: z.ZodObject<{
|
|
125
|
+
problem: z.ZodEnum<{
|
|
126
|
+
noplan: "noplan";
|
|
127
|
+
notclosed: "notclosed";
|
|
128
|
+
}>;
|
|
129
|
+
runId: z.ZodTemplateLiteral<`run_${string}`>;
|
|
130
|
+
}, z.core.$strip>;
|
|
131
|
+
export type ActionGoalRun = z.infer<typeof ActionGoalRun>;
|
|
124
132
|
export declare const ActionItem: z.ZodObject<{
|
|
125
133
|
node: z.ZodObject<{
|
|
126
134
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
@@ -149,13 +157,13 @@ export declare const ActionItem: z.ZodObject<{
|
|
|
149
157
|
}, z.core.$strip>>;
|
|
150
158
|
}, z.core.$strip>;
|
|
151
159
|
status: z.ZodNullable<z.ZodEnum<{
|
|
160
|
+
archive: "archive";
|
|
152
161
|
backlog: "backlog";
|
|
153
162
|
open: "open";
|
|
154
163
|
progress: "progress";
|
|
155
164
|
done: "done";
|
|
156
165
|
discarded: "discarded";
|
|
157
166
|
blocked: "blocked";
|
|
158
|
-
archive: "archive";
|
|
159
167
|
}>>;
|
|
160
168
|
boardKind: z.ZodNullable<z.ZodEnum<{
|
|
161
169
|
board: "board";
|
|
@@ -173,26 +181,26 @@ export declare const ActionItem: z.ZodObject<{
|
|
|
173
181
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
174
182
|
name: z.ZodString;
|
|
175
183
|
type: z.ZodEnum<{
|
|
184
|
+
archive: "archive";
|
|
176
185
|
backlog: "backlog";
|
|
177
186
|
open: "open";
|
|
178
187
|
progress: "progress";
|
|
179
188
|
done: "done";
|
|
180
189
|
discarded: "discarded";
|
|
181
190
|
blocked: "blocked";
|
|
182
|
-
archive: "archive";
|
|
183
191
|
}>;
|
|
184
192
|
}, z.core.$strip>;
|
|
185
193
|
buttons: z.ZodArray<z.ZodObject<{
|
|
186
194
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
187
195
|
name: z.ZodString;
|
|
188
196
|
type: z.ZodEnum<{
|
|
197
|
+
archive: "archive";
|
|
189
198
|
backlog: "backlog";
|
|
190
199
|
open: "open";
|
|
191
200
|
progress: "progress";
|
|
192
201
|
done: "done";
|
|
193
202
|
discarded: "discarded";
|
|
194
203
|
blocked: "blocked";
|
|
195
|
-
archive: "archive";
|
|
196
204
|
}>;
|
|
197
205
|
}, z.core.$strip>>;
|
|
198
206
|
handedOver: z.ZodBoolean;
|
|
@@ -249,6 +257,13 @@ export declare const ActionItem: z.ZodObject<{
|
|
|
249
257
|
message: z.ZodString;
|
|
250
258
|
hint: z.ZodBoolean;
|
|
251
259
|
}, z.core.$strip>>>;
|
|
260
|
+
goalRun: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
261
|
+
problem: z.ZodEnum<{
|
|
262
|
+
noplan: "noplan";
|
|
263
|
+
notclosed: "notclosed";
|
|
264
|
+
}>;
|
|
265
|
+
runId: z.ZodTemplateLiteral<`run_${string}`>;
|
|
266
|
+
}, z.core.$strip>>>;
|
|
252
267
|
}, z.core.$strip>;
|
|
253
268
|
export type ActionItem = z.infer<typeof ActionItem>;
|
|
254
269
|
export declare const ActionAbortReason: z.ZodEnum<{
|
|
@@ -355,13 +370,13 @@ export declare const ActionAbort: z.ZodObject<{
|
|
|
355
370
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
356
371
|
name: z.ZodString;
|
|
357
372
|
type: z.ZodEnum<{
|
|
373
|
+
archive: "archive";
|
|
358
374
|
backlog: "backlog";
|
|
359
375
|
open: "open";
|
|
360
376
|
progress: "progress";
|
|
361
377
|
done: "done";
|
|
362
378
|
discarded: "discarded";
|
|
363
379
|
blocked: "blocked";
|
|
364
|
-
archive: "archive";
|
|
365
380
|
}>;
|
|
366
381
|
}, z.core.$strip>;
|
|
367
382
|
rev: z.ZodNumber;
|
|
@@ -469,13 +484,13 @@ export declare const ActionNotice: z.ZodObject<{
|
|
|
469
484
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
470
485
|
name: z.ZodString;
|
|
471
486
|
type: z.ZodEnum<{
|
|
487
|
+
archive: "archive";
|
|
472
488
|
backlog: "backlog";
|
|
473
489
|
open: "open";
|
|
474
490
|
progress: "progress";
|
|
475
491
|
done: "done";
|
|
476
492
|
discarded: "discarded";
|
|
477
493
|
blocked: "blocked";
|
|
478
|
-
archive: "archive";
|
|
479
494
|
}>;
|
|
480
495
|
}, z.core.$strip>;
|
|
481
496
|
rev: z.ZodNumber;
|
|
@@ -585,13 +600,13 @@ export declare const ActionNoticeItem: z.ZodObject<{
|
|
|
585
600
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
586
601
|
name: z.ZodString;
|
|
587
602
|
type: z.ZodEnum<{
|
|
603
|
+
archive: "archive";
|
|
588
604
|
backlog: "backlog";
|
|
589
605
|
open: "open";
|
|
590
606
|
progress: "progress";
|
|
591
607
|
done: "done";
|
|
592
608
|
discarded: "discarded";
|
|
593
609
|
blocked: "blocked";
|
|
594
|
-
archive: "archive";
|
|
595
610
|
}>;
|
|
596
611
|
}, z.core.$strip>;
|
|
597
612
|
rev: z.ZodNumber;
|
|
@@ -633,13 +648,13 @@ export declare const ActionRow: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
633
648
|
}, z.core.$strip>>;
|
|
634
649
|
}, z.core.$strip>;
|
|
635
650
|
status: z.ZodNullable<z.ZodEnum<{
|
|
651
|
+
archive: "archive";
|
|
636
652
|
backlog: "backlog";
|
|
637
653
|
open: "open";
|
|
638
654
|
progress: "progress";
|
|
639
655
|
done: "done";
|
|
640
656
|
discarded: "discarded";
|
|
641
657
|
blocked: "blocked";
|
|
642
|
-
archive: "archive";
|
|
643
658
|
}>>;
|
|
644
659
|
boardKind: z.ZodNullable<z.ZodEnum<{
|
|
645
660
|
board: "board";
|
|
@@ -657,26 +672,26 @@ export declare const ActionRow: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
657
672
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
658
673
|
name: z.ZodString;
|
|
659
674
|
type: z.ZodEnum<{
|
|
675
|
+
archive: "archive";
|
|
660
676
|
backlog: "backlog";
|
|
661
677
|
open: "open";
|
|
662
678
|
progress: "progress";
|
|
663
679
|
done: "done";
|
|
664
680
|
discarded: "discarded";
|
|
665
681
|
blocked: "blocked";
|
|
666
|
-
archive: "archive";
|
|
667
682
|
}>;
|
|
668
683
|
}, z.core.$strip>;
|
|
669
684
|
buttons: z.ZodArray<z.ZodObject<{
|
|
670
685
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
671
686
|
name: z.ZodString;
|
|
672
687
|
type: z.ZodEnum<{
|
|
688
|
+
archive: "archive";
|
|
673
689
|
backlog: "backlog";
|
|
674
690
|
open: "open";
|
|
675
691
|
progress: "progress";
|
|
676
692
|
done: "done";
|
|
677
693
|
discarded: "discarded";
|
|
678
694
|
blocked: "blocked";
|
|
679
|
-
archive: "archive";
|
|
680
695
|
}>;
|
|
681
696
|
}, z.core.$strip>>;
|
|
682
697
|
handedOver: z.ZodBoolean;
|
|
@@ -733,6 +748,13 @@ export declare const ActionRow: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
733
748
|
message: z.ZodString;
|
|
734
749
|
hint: z.ZodBoolean;
|
|
735
750
|
}, z.core.$strip>>>;
|
|
751
|
+
goalRun: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
752
|
+
problem: z.ZodEnum<{
|
|
753
|
+
noplan: "noplan";
|
|
754
|
+
notclosed: "notclosed";
|
|
755
|
+
}>;
|
|
756
|
+
runId: z.ZodTemplateLiteral<`run_${string}`>;
|
|
757
|
+
}, z.core.$strip>>>;
|
|
736
758
|
}, z.core.$strip>, z.ZodObject<{
|
|
737
759
|
notice: z.ZodObject<{
|
|
738
760
|
package: z.ZodEnum<{
|
|
@@ -835,13 +857,13 @@ export declare const ActionRow: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
835
857
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
836
858
|
name: z.ZodString;
|
|
837
859
|
type: z.ZodEnum<{
|
|
860
|
+
archive: "archive";
|
|
838
861
|
backlog: "backlog";
|
|
839
862
|
open: "open";
|
|
840
863
|
progress: "progress";
|
|
841
864
|
done: "done";
|
|
842
865
|
discarded: "discarded";
|
|
843
866
|
blocked: "blocked";
|
|
844
|
-
archive: "archive";
|
|
845
867
|
}>;
|
|
846
868
|
}, z.core.$strip>;
|
|
847
869
|
rev: z.ZodNumber;
|
|
@@ -903,13 +925,13 @@ export declare const ActionList: z.ZodObject<{
|
|
|
903
925
|
}, z.core.$strip>>;
|
|
904
926
|
}, z.core.$strip>;
|
|
905
927
|
status: z.ZodNullable<z.ZodEnum<{
|
|
928
|
+
archive: "archive";
|
|
906
929
|
backlog: "backlog";
|
|
907
930
|
open: "open";
|
|
908
931
|
progress: "progress";
|
|
909
932
|
done: "done";
|
|
910
933
|
discarded: "discarded";
|
|
911
934
|
blocked: "blocked";
|
|
912
|
-
archive: "archive";
|
|
913
935
|
}>>;
|
|
914
936
|
boardKind: z.ZodNullable<z.ZodEnum<{
|
|
915
937
|
board: "board";
|
|
@@ -927,26 +949,26 @@ export declare const ActionList: z.ZodObject<{
|
|
|
927
949
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
928
950
|
name: z.ZodString;
|
|
929
951
|
type: z.ZodEnum<{
|
|
952
|
+
archive: "archive";
|
|
930
953
|
backlog: "backlog";
|
|
931
954
|
open: "open";
|
|
932
955
|
progress: "progress";
|
|
933
956
|
done: "done";
|
|
934
957
|
discarded: "discarded";
|
|
935
958
|
blocked: "blocked";
|
|
936
|
-
archive: "archive";
|
|
937
959
|
}>;
|
|
938
960
|
}, z.core.$strip>;
|
|
939
961
|
buttons: z.ZodArray<z.ZodObject<{
|
|
940
962
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
941
963
|
name: z.ZodString;
|
|
942
964
|
type: z.ZodEnum<{
|
|
965
|
+
archive: "archive";
|
|
943
966
|
backlog: "backlog";
|
|
944
967
|
open: "open";
|
|
945
968
|
progress: "progress";
|
|
946
969
|
done: "done";
|
|
947
970
|
discarded: "discarded";
|
|
948
971
|
blocked: "blocked";
|
|
949
|
-
archive: "archive";
|
|
950
972
|
}>;
|
|
951
973
|
}, z.core.$strip>>;
|
|
952
974
|
handedOver: z.ZodBoolean;
|
|
@@ -1003,6 +1025,13 @@ export declare const ActionList: z.ZodObject<{
|
|
|
1003
1025
|
message: z.ZodString;
|
|
1004
1026
|
hint: z.ZodBoolean;
|
|
1005
1027
|
}, z.core.$strip>>>;
|
|
1028
|
+
goalRun: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1029
|
+
problem: z.ZodEnum<{
|
|
1030
|
+
noplan: "noplan";
|
|
1031
|
+
notclosed: "notclosed";
|
|
1032
|
+
}>;
|
|
1033
|
+
runId: z.ZodTemplateLiteral<`run_${string}`>;
|
|
1034
|
+
}, z.core.$strip>>>;
|
|
1006
1035
|
}, z.core.$strip>, z.ZodObject<{
|
|
1007
1036
|
notice: z.ZodObject<{
|
|
1008
1037
|
package: z.ZodEnum<{
|
|
@@ -1105,13 +1134,13 @@ export declare const ActionList: z.ZodObject<{
|
|
|
1105
1134
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
1106
1135
|
name: z.ZodString;
|
|
1107
1136
|
type: z.ZodEnum<{
|
|
1137
|
+
archive: "archive";
|
|
1108
1138
|
backlog: "backlog";
|
|
1109
1139
|
open: "open";
|
|
1110
1140
|
progress: "progress";
|
|
1111
1141
|
done: "done";
|
|
1112
1142
|
discarded: "discarded";
|
|
1113
1143
|
blocked: "blocked";
|
|
1114
|
-
archive: "archive";
|
|
1115
1144
|
}>;
|
|
1116
1145
|
}, z.core.$strip>;
|
|
1117
1146
|
rev: z.ZodNumber;
|
package/dist/actions/actions.js
CHANGED
|
@@ -91,6 +91,14 @@ export const ActionSource = z.object({
|
|
|
91
91
|
message: z.string(),
|
|
92
92
|
hint: z.boolean(),
|
|
93
93
|
});
|
|
94
|
+
// An open run of a goal its Operator has not got going or not closed (#914, E139, Nodes › Ziel ›
|
|
95
|
+
// Läufe), on the goal's row in the Operator's Actions: `noplan` while the run has no plan, from its
|
|
96
|
+
// start; `notclosed` once a session ended with a plan but neither a report nor a follow-up, until
|
|
97
|
+
// one of them is there. The goal is the row's node.
|
|
98
|
+
export const ActionGoalRun = z.object({
|
|
99
|
+
problem: z.enum(["noplan", "notclosed"]),
|
|
100
|
+
runId: OperatorRunId,
|
|
101
|
+
});
|
|
94
102
|
// One row: the node, where it waits, since when, and what makes it wait. Exactly one of task and
|
|
95
103
|
// gadget, or none of them on a row that is a chat alone; chat beside either.
|
|
96
104
|
export const ActionItem = z.object({
|
|
@@ -117,6 +125,8 @@ export const ActionItem = z.object({
|
|
|
117
125
|
gadget: ActionGadget.nullable(),
|
|
118
126
|
// Left out on every row that is no source's.
|
|
119
127
|
source: ActionSource.nullable().optional(),
|
|
128
|
+
// Left out on every row that is no goal's with such a run.
|
|
129
|
+
goalRun: ActionGoalRun.nullable().optional(),
|
|
120
130
|
});
|
|
121
131
|
// What another package puts into a person's Actions (#334, E81, E82): "access invalid" for every
|
|
122
132
|
// admin, "Operator paused" for its responsible person. Gathered when asked like every row, never
|
|
@@ -7,10 +7,20 @@ export declare const NodeRestoreInput: z.ZodObject<{
|
|
|
7
7
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
8
8
|
}, z.core.$strict>;
|
|
9
9
|
export type NodeRestoreInput = z.infer<typeof NodeRestoreInput>;
|
|
10
|
+
export declare const ArchivedGoalLink: z.ZodObject<{
|
|
11
|
+
goalId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export type ArchivedGoalLink = z.infer<typeof ArchivedGoalLink>;
|
|
10
15
|
export declare const NodeArchived: z.ZodObject<{
|
|
11
16
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
12
17
|
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
13
18
|
nodes: z.ZodNumber;
|
|
19
|
+
goals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
20
|
+
goalId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
}, z.core.$strip>>>;
|
|
23
|
+
goalsHidden: z.ZodOptional<z.ZodNumber>;
|
|
14
24
|
}, z.core.$strip>;
|
|
15
25
|
export type NodeArchived = z.infer<typeof NodeArchived>;
|
|
16
26
|
export declare const NodePurgeInput: z.ZodObject<{
|
package/dist/archive/archive.js
CHANGED
|
@@ -9,11 +9,20 @@ export const NodeArchiveInput = z.strictObject({
|
|
|
9
9
|
export const NodeRestoreInput = z.strictObject({
|
|
10
10
|
nodeId: NodeId.describe("The archived node to bring back to its place, with what was archived together with it. Something archived on its own before stays archived; under an archived folder, restore the folder first."),
|
|
11
11
|
});
|
|
12
|
+
// A goal whose text links what was just archived (#918): its Startklar is red from now on.
|
|
13
|
+
export const ArchivedGoalLink = z.object({
|
|
14
|
+
goalId: NodeId,
|
|
15
|
+
name: z.string(),
|
|
16
|
+
});
|
|
12
17
|
// Archive and restore answer the same: the state now, and how many nodes changed with this call.
|
|
13
18
|
export const NodeArchived = z.object({
|
|
14
19
|
nodeId: NodeId,
|
|
15
20
|
archivedAt: z.iso.datetime().nullable(),
|
|
16
21
|
nodes: z.number().int(),
|
|
22
|
+
// Archiving only, left out on a restore: the goals the caller reads whose text links the node or
|
|
23
|
+
// anything archived with it, and how many more link it that the caller cannot read.
|
|
24
|
+
goals: z.array(ArchivedGoalLink).optional(),
|
|
25
|
+
goalsHidden: z.number().int().optional(),
|
|
17
26
|
});
|
|
18
27
|
export const NodePurgeInput = z.strictObject({
|
|
19
28
|
nodeId: NodeId.describe("The archived node to delete for good, with everything archived under it. It cannot be undone."),
|