@anchrd/colab-sdk 0.1.41 → 0.1.43
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 +28 -61
- package/dist/actions/actions.js +1 -6
- package/dist/boards/boards.d.ts +32 -167
- package/dist/boards/boards.js +4 -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/instructions/instructions.d.ts +0 -4
- package/dist/instructions/instructions.js +5 -13
- package/dist/mcps/mcps.d.ts +3 -3
- package/dist/nodes/nodes.d.ts +3 -115
- package/dist/nodes/nodes.js +11 -41
- package/dist/operators/operators.d.ts +0 -7
- package/dist/operators/operators.js +1 -6
- 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 +5 -6
- package/dist/sdk.js +5 -6
- package/dist/sources/sources.d.ts +6 -6
- package/dist/versions/versions.d.ts +32 -71
- package/dist/versions/versions.js +0 -6
- package/dist/written/written.d.ts +0 -2
- package/dist/written/written.js +0 -2
- package/package.json +1 -1
- package/dist/validation/validation.d.ts +0 -60
- package/dist/validation/validation.js +0 -26
package/dist/nodes/nodes.d.ts
CHANGED
|
@@ -37,13 +37,8 @@ export declare const NodeKindRead: z.ZodCatch<z.ZodEnum<{
|
|
|
37
37
|
}>>;
|
|
38
38
|
export type NodeKindRead = z.infer<typeof NodeKindRead>;
|
|
39
39
|
export declare const responsibleKinds: readonly ["document", "table", "file"];
|
|
40
|
-
export declare const BoardSystem: z.ZodEnum<{
|
|
41
|
-
validation: "validation";
|
|
42
|
-
}>;
|
|
43
|
-
export type BoardSystem = z.infer<typeof BoardSystem>;
|
|
44
40
|
export declare const BoardShownKind: z.ZodEnum<{
|
|
45
41
|
board: "board";
|
|
46
|
-
validation: "validation";
|
|
47
42
|
process: "process";
|
|
48
43
|
}>;
|
|
49
44
|
export type BoardShownKind = z.infer<typeof BoardShownKind>;
|
|
@@ -60,7 +55,6 @@ export declare const CreateSection: z.ZodOptional<z.ZodEnum<{
|
|
|
60
55
|
export type CreateSection = z.infer<typeof CreateSection>;
|
|
61
56
|
export declare const NodeSort: z.ZodEnum<{
|
|
62
57
|
name: "name";
|
|
63
|
-
status: "status";
|
|
64
58
|
kind: "kind";
|
|
65
59
|
updated: "updated";
|
|
66
60
|
}>;
|
|
@@ -77,7 +71,6 @@ export declare const NodeListInput: z.ZodObject<{
|
|
|
77
71
|
includeHidden: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>;
|
|
78
72
|
sort: z.ZodOptional<z.ZodEnum<{
|
|
79
73
|
name: "name";
|
|
80
|
-
status: "status";
|
|
81
74
|
kind: "kind";
|
|
82
75
|
updated: "updated";
|
|
83
76
|
}>>;
|
|
@@ -149,21 +142,8 @@ export declare const NodeListItem: z.ZodObject<{
|
|
|
149
142
|
updatedAt: z.ZodISODateTime;
|
|
150
143
|
sharedWith: z.ZodNumber;
|
|
151
144
|
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
152
|
-
status: z.ZodNullable<z.ZodEnum<{
|
|
153
|
-
backlog: "backlog";
|
|
154
|
-
open: "open";
|
|
155
|
-
progress: "progress";
|
|
156
|
-
done: "done";
|
|
157
|
-
discarded: "discarded";
|
|
158
|
-
blocked: "blocked";
|
|
159
|
-
archive: "archive";
|
|
160
|
-
}>>;
|
|
161
|
-
system: z.ZodNullable<z.ZodEnum<{
|
|
162
|
-
validation: "validation";
|
|
163
|
-
}>>;
|
|
164
145
|
boardKind: z.ZodNullable<z.ZodEnum<{
|
|
165
146
|
board: "board";
|
|
166
|
-
validation: "validation";
|
|
167
147
|
process: "process";
|
|
168
148
|
}>>;
|
|
169
149
|
path: z.ZodOptional<z.ZodObject<{
|
|
@@ -222,21 +202,8 @@ export declare const NodeList: z.ZodObject<{
|
|
|
222
202
|
updatedAt: z.ZodISODateTime;
|
|
223
203
|
sharedWith: z.ZodNumber;
|
|
224
204
|
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
225
|
-
status: z.ZodNullable<z.ZodEnum<{
|
|
226
|
-
backlog: "backlog";
|
|
227
|
-
open: "open";
|
|
228
|
-
progress: "progress";
|
|
229
|
-
done: "done";
|
|
230
|
-
discarded: "discarded";
|
|
231
|
-
blocked: "blocked";
|
|
232
|
-
archive: "archive";
|
|
233
|
-
}>>;
|
|
234
|
-
system: z.ZodNullable<z.ZodEnum<{
|
|
235
|
-
validation: "validation";
|
|
236
|
-
}>>;
|
|
237
205
|
boardKind: z.ZodNullable<z.ZodEnum<{
|
|
238
206
|
board: "board";
|
|
239
|
-
validation: "validation";
|
|
240
207
|
process: "process";
|
|
241
208
|
}>>;
|
|
242
209
|
path: z.ZodOptional<z.ZodObject<{
|
|
@@ -259,7 +226,6 @@ export declare const NodeList: z.ZodObject<{
|
|
|
259
226
|
instructions: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
260
227
|
chain: z.ZodArray<z.ZodObject<{
|
|
261
228
|
path: z.ZodString;
|
|
262
|
-
status: z.ZodNullable<z.ZodString>;
|
|
263
229
|
markdown: z.ZodString;
|
|
264
230
|
}, z.core.$strip>>;
|
|
265
231
|
hint: z.ZodOptional<z.ZodString>;
|
|
@@ -272,10 +238,10 @@ export declare const NodeList: z.ZodObject<{
|
|
|
272
238
|
export type NodeList = z.infer<typeof NodeList>;
|
|
273
239
|
export declare const NodeHitFoundIn: z.ZodObject<{
|
|
274
240
|
kind: z.ZodEnum<{
|
|
275
|
-
column: "column";
|
|
276
241
|
page: "page";
|
|
277
242
|
title: "title";
|
|
278
243
|
text: "text";
|
|
244
|
+
column: "column";
|
|
279
245
|
card: "card";
|
|
280
246
|
}>;
|
|
281
247
|
label: z.ZodNullable<z.ZodString>;
|
|
@@ -311,28 +277,18 @@ export declare const NodeHit: z.ZodObject<{
|
|
|
311
277
|
snippet: z.ZodString;
|
|
312
278
|
foundIn: z.ZodObject<{
|
|
313
279
|
kind: z.ZodEnum<{
|
|
314
|
-
column: "column";
|
|
315
280
|
page: "page";
|
|
316
281
|
title: "title";
|
|
317
282
|
text: "text";
|
|
283
|
+
column: "column";
|
|
318
284
|
card: "card";
|
|
319
285
|
}>;
|
|
320
286
|
label: z.ZodNullable<z.ZodString>;
|
|
321
287
|
}, z.core.$strip>;
|
|
322
288
|
rank: z.ZodNumber;
|
|
323
|
-
status: z.ZodNullable<z.ZodEnum<{
|
|
324
|
-
backlog: "backlog";
|
|
325
|
-
open: "open";
|
|
326
|
-
progress: "progress";
|
|
327
|
-
done: "done";
|
|
328
|
-
discarded: "discarded";
|
|
329
|
-
blocked: "blocked";
|
|
330
|
-
archive: "archive";
|
|
331
|
-
}>>;
|
|
332
289
|
updatedAt: z.ZodISODateTime;
|
|
333
290
|
boardKind: z.ZodNullable<z.ZodEnum<{
|
|
334
291
|
board: "board";
|
|
335
|
-
validation: "validation";
|
|
336
292
|
process: "process";
|
|
337
293
|
}>>;
|
|
338
294
|
secret: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -385,28 +341,18 @@ export declare const NodeSearch: z.ZodObject<{
|
|
|
385
341
|
snippet: z.ZodString;
|
|
386
342
|
foundIn: z.ZodObject<{
|
|
387
343
|
kind: z.ZodEnum<{
|
|
388
|
-
column: "column";
|
|
389
344
|
page: "page";
|
|
390
345
|
title: "title";
|
|
391
346
|
text: "text";
|
|
347
|
+
column: "column";
|
|
392
348
|
card: "card";
|
|
393
349
|
}>;
|
|
394
350
|
label: z.ZodNullable<z.ZodString>;
|
|
395
351
|
}, z.core.$strip>;
|
|
396
352
|
rank: z.ZodNumber;
|
|
397
|
-
status: z.ZodNullable<z.ZodEnum<{
|
|
398
|
-
backlog: "backlog";
|
|
399
|
-
open: "open";
|
|
400
|
-
progress: "progress";
|
|
401
|
-
done: "done";
|
|
402
|
-
discarded: "discarded";
|
|
403
|
-
blocked: "blocked";
|
|
404
|
-
archive: "archive";
|
|
405
|
-
}>>;
|
|
406
353
|
updatedAt: z.ZodISODateTime;
|
|
407
354
|
boardKind: z.ZodNullable<z.ZodEnum<{
|
|
408
355
|
board: "board";
|
|
409
|
-
validation: "validation";
|
|
410
356
|
process: "process";
|
|
411
357
|
}>>;
|
|
412
358
|
secret: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -448,33 +394,6 @@ export declare const NodeGetInput: z.ZodObject<{
|
|
|
448
394
|
known: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodString>, unknown>>;
|
|
449
395
|
}, z.core.$strict>;
|
|
450
396
|
export type NodeGetInput = z.infer<typeof NodeGetInput>;
|
|
451
|
-
export declare const NodeValidation: z.ZodObject<{
|
|
452
|
-
ticketId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
453
|
-
column: z.ZodObject<{
|
|
454
|
-
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
455
|
-
name: z.ZodString;
|
|
456
|
-
type: z.ZodEnum<{
|
|
457
|
-
backlog: "backlog";
|
|
458
|
-
open: "open";
|
|
459
|
-
progress: "progress";
|
|
460
|
-
done: "done";
|
|
461
|
-
discarded: "discarded";
|
|
462
|
-
blocked: "blocked";
|
|
463
|
-
archive: "archive";
|
|
464
|
-
}>;
|
|
465
|
-
}, z.core.$strip>;
|
|
466
|
-
validUntil: z.ZodNullable<z.ZodISODateTime>;
|
|
467
|
-
responsible: z.ZodObject<{
|
|
468
|
-
userId: z.ZodString;
|
|
469
|
-
name: z.ZodNullable<z.ZodString>;
|
|
470
|
-
kind: z.ZodNullable<z.ZodEnum<{
|
|
471
|
-
machine: "machine";
|
|
472
|
-
human: "human";
|
|
473
|
-
}>>;
|
|
474
|
-
}, z.core.$strip>;
|
|
475
|
-
content: z.ZodString;
|
|
476
|
-
}, z.core.$strip>;
|
|
477
|
-
export type NodeValidation = z.infer<typeof NodeValidation>;
|
|
478
397
|
export declare const NodeDetail: z.ZodObject<{
|
|
479
398
|
secretId: z.ZodOptional<z.ZodTemplateLiteral<`secret_${string}`>>;
|
|
480
399
|
secretBy: z.ZodOptional<z.ZodObject<{
|
|
@@ -506,12 +425,8 @@ export declare const NodeDetail: z.ZodObject<{
|
|
|
506
425
|
name: z.ZodString;
|
|
507
426
|
hidden: z.ZodBoolean;
|
|
508
427
|
rootOf: z.ZodNullable<z.ZodString>;
|
|
509
|
-
system: z.ZodNullable<z.ZodEnum<{
|
|
510
|
-
validation: "validation";
|
|
511
|
-
}>>;
|
|
512
428
|
boardKind: z.ZodNullable<z.ZodEnum<{
|
|
513
429
|
board: "board";
|
|
514
|
-
validation: "validation";
|
|
515
430
|
process: "process";
|
|
516
431
|
}>>;
|
|
517
432
|
parentId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
@@ -553,36 +468,9 @@ export declare const NodeDetail: z.ZodObject<{
|
|
|
553
468
|
purge: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
554
469
|
createdAt: z.ZodISODateTime;
|
|
555
470
|
updatedAt: z.ZodISODateTime;
|
|
556
|
-
validation: z.ZodNullable<z.ZodObject<{
|
|
557
|
-
ticketId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
558
|
-
column: z.ZodObject<{
|
|
559
|
-
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
560
|
-
name: z.ZodString;
|
|
561
|
-
type: z.ZodEnum<{
|
|
562
|
-
backlog: "backlog";
|
|
563
|
-
open: "open";
|
|
564
|
-
progress: "progress";
|
|
565
|
-
done: "done";
|
|
566
|
-
discarded: "discarded";
|
|
567
|
-
blocked: "blocked";
|
|
568
|
-
archive: "archive";
|
|
569
|
-
}>;
|
|
570
|
-
}, z.core.$strip>;
|
|
571
|
-
validUntil: z.ZodNullable<z.ZodISODateTime>;
|
|
572
|
-
responsible: z.ZodObject<{
|
|
573
|
-
userId: z.ZodString;
|
|
574
|
-
name: z.ZodNullable<z.ZodString>;
|
|
575
|
-
kind: z.ZodNullable<z.ZodEnum<{
|
|
576
|
-
machine: "machine";
|
|
577
|
-
human: "human";
|
|
578
|
-
}>>;
|
|
579
|
-
}, z.core.$strip>;
|
|
580
|
-
content: z.ZodString;
|
|
581
|
-
}, z.core.$strip>>;
|
|
582
471
|
instructions: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
583
472
|
chain: z.ZodArray<z.ZodObject<{
|
|
584
473
|
path: z.ZodString;
|
|
585
|
-
status: z.ZodNullable<z.ZodString>;
|
|
586
474
|
markdown: z.ZodString;
|
|
587
475
|
}, z.core.$strip>>;
|
|
588
476
|
hint: z.ZodOptional<z.ZodString>;
|
package/dist/nodes/nodes.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { ColumnType, TaskColumn } from "../columns/columns.js";
|
|
3
2
|
import { idSchema } from "../ids/ids.js";
|
|
4
3
|
import { InstructionRead, InstructionsRead, Known } from "../instructions/instructions.js";
|
|
5
4
|
import { Flag, Limit as PageSize } from "../list-input.js";
|
|
@@ -48,20 +47,16 @@ export const NodeKind = z.enum(nodeKinds);
|
|
|
48
47
|
// list. Only for answers; every input keeps the strict `NodeKind`.
|
|
49
48
|
export const unknownNodeKind = "unknown";
|
|
50
49
|
export const NodeKindRead = z.enum([...nodeKinds, unknownNodeKind]).catch(unknownNodeKind);
|
|
51
|
-
// Only these kinds have a responsible person (E32): the one who answers for the content
|
|
50
|
+
// Only these kinds have a responsible person (E32): the one who answers for the content.
|
|
52
51
|
export const responsibleKinds = [
|
|
53
52
|
"document",
|
|
54
53
|
"table",
|
|
55
54
|
"file",
|
|
56
55
|
];
|
|
57
|
-
//
|
|
58
|
-
//
|
|
59
|
-
//
|
|
60
|
-
export const
|
|
61
|
-
// What a board is as an answer shows it: besides the two a caller makes (`boardKinds` in
|
|
62
|
-
// `boards.ts`), the one validation board of a Colab (#47), which no caller makes or turns into. Here
|
|
63
|
-
// for the same reason as `BoardSystem`: the lists carry it too (#227).
|
|
64
|
-
export const BoardShownKind = z.enum(["board", "process", "validation"]);
|
|
56
|
+
// What a board is as an answer shows it: besides the one a caller makes (`boardKinds` in `boards.ts`),
|
|
57
|
+
// a process from before goals. Here, not beside the boards, because the lists carry it too (#227) and
|
|
58
|
+
// `boards.ts` imports from this file.
|
|
59
|
+
export const BoardShownKind = z.enum(["board", "process"]);
|
|
65
60
|
// The three sections of the tree (Funktionen › Seitenbaum, E67).
|
|
66
61
|
export const NodeSection = z.enum(["own", "shared", "users"]);
|
|
67
62
|
// Where a create without a parent lands (#930, after #791): Own unless the caller says Shared. Only
|
|
@@ -72,7 +67,7 @@ export const CreateSection = z
|
|
|
72
67
|
.enum(["own", "shared"])
|
|
73
68
|
.optional()
|
|
74
69
|
.describe("Only with parentId null: shared creates the node on the top level of Shared, where you see it and everyone you share it with; own or leaving it out creates it in your own root folder (Own). Send shared only when Shared is meant.");
|
|
75
|
-
export const NodeSort = z.enum(["name", "updated", "kind"
|
|
70
|
+
export const NodeSort = z.enum(["name", "updated", "kind"]);
|
|
76
71
|
const Limit = PageSize.describe("How many entries one page holds, 1 to 100. Leaving it out gives 50.");
|
|
77
72
|
// The name a person reads. ⚠️ A name starting with a dot hides the node from listings (`.Intern`),
|
|
78
73
|
// which is appearance only: rights, search and links still see it.
|
|
@@ -92,7 +87,7 @@ export const NodeListInput = z.strictObject({
|
|
|
92
87
|
section: NodeSection.optional().describe("List a section of the tree instead of a folder: own (what lies in your own root folder), shared (the tops of everything others let you reach) or users (every other person's root folder, only for an admin in admin mode)."),
|
|
93
88
|
query: NodeQuery.optional(),
|
|
94
89
|
includeHidden: Flag.optional().describe("Also list nodes whose name starts with a dot. Leaving it out hides them."),
|
|
95
|
-
sort: NodeSort.optional().describe("The order: name (default, as the tree shows it: folders, documents, tables, boards, gadgets, files, skills, goals, each kind A to Z as in German, 2 before 10, a leading dot not counted), kind (the same), updated (most recently changed first)
|
|
90
|
+
sort: NodeSort.optional().describe("The order: name (default, as the tree shows it: folders, documents, tables, boards, gadgets, files, skills, goals, each kind A to Z as in German, 2 before 10, a leading dot not counted), kind (the same), or updated (most recently changed first)."),
|
|
96
91
|
foldersFirst: Flag.optional().describe("Put folders before everything else, each group in the chosen order."),
|
|
97
92
|
cursor: z
|
|
98
93
|
.string()
|
|
@@ -140,14 +135,8 @@ export const NodeListItem = z.object({
|
|
|
140
135
|
sharedWith: z.number().int(),
|
|
141
136
|
// When it went into the archive; null for a node that is not archived.
|
|
142
137
|
archivedAt: z.iso.datetime().nullable(),
|
|
143
|
-
//
|
|
144
|
-
//
|
|
145
|
-
status: ColumnType.nullable(),
|
|
146
|
-
// A board that is a system part with a lock (#52: the tree draws the lock and no ⋯); null for
|
|
147
|
-
// every other node.
|
|
148
|
-
system: BoardSystem.nullable(),
|
|
149
|
-
// What a board is (#227): the tree, the folder and the archive draw a process and the validation
|
|
150
|
-
// board apart from a board; null for every other kind.
|
|
138
|
+
// What a board is (#227): the tree, the folder and the archive draw a process apart from a board;
|
|
139
|
+
// null for every other kind.
|
|
151
140
|
boardKind: BoardShownKind.nullable(),
|
|
152
141
|
// Only in the archive (`archived: true`): where it stood, as the caller can read it, for a folder
|
|
153
142
|
// how many archived nodes it holds directly, and for a board how many archived tasks (#135).
|
|
@@ -194,10 +183,7 @@ export const NodeHit = z.object({
|
|
|
194
183
|
foundIn: NodeHitFoundIn,
|
|
195
184
|
// 1 is the best hit; counted over the whole answer, not per page.
|
|
196
185
|
rank: z.number().int().min(1),
|
|
197
|
-
// The
|
|
198
|
-
// in; null for a kind that is not validated.
|
|
199
|
-
status: ColumnType.nullable(),
|
|
200
|
-
// The last change, beside the status on the hit (#236).
|
|
186
|
+
// The last change, on the hit (#236).
|
|
201
187
|
updatedAt: z.iso.datetime(),
|
|
202
188
|
// What a board is, like `NodeListItem.boardKind` (#227); null for every other kind.
|
|
203
189
|
boardKind: BoardShownKind.nullable(),
|
|
@@ -233,18 +219,6 @@ export const SearchIndexState = z.object({
|
|
|
233
219
|
.nullable(),
|
|
234
220
|
});
|
|
235
221
|
export const NodeGetInput = z.strictObject({ nodeId: NodeId, known: Known.optional() });
|
|
236
|
-
// A document's, table's or file's validation (#47, Seiten › Validierung): where its ticket stands.
|
|
237
|
-
export const NodeValidation = z.object({
|
|
238
|
-
ticketId: NodeId,
|
|
239
|
-
// The ticket's column; its type is the node's status.
|
|
240
|
-
column: TaskColumn,
|
|
241
|
-
// The end of the ticket's period, set by the Operator ("gültig bis"); null without one.
|
|
242
|
-
validUntil: z.iso.datetime().nullable(),
|
|
243
|
-
// Who is asked when the validity is to be decided: the node's responsible person.
|
|
244
|
-
responsible: NodePerson,
|
|
245
|
-
// What holds for exactly this node, the ticket's Markdown; empty without a word.
|
|
246
|
-
content: z.string(),
|
|
247
|
-
});
|
|
248
222
|
export const NodeDetail = z.object({
|
|
249
223
|
nodeId: NodeId,
|
|
250
224
|
// `unknown` for a kind this release does not know (E195): the page reloads into the new one.
|
|
@@ -252,8 +226,6 @@ export const NodeDetail = z.object({
|
|
|
252
226
|
name: z.string(),
|
|
253
227
|
hidden: z.boolean(),
|
|
254
228
|
rootOf: z.string().nullable(),
|
|
255
|
-
// A board that is a system part with a lock (#52): its page shows no ⋯; null for every other node.
|
|
256
|
-
system: BoardSystem.nullable(),
|
|
257
229
|
// What a board is, like `NodeListItem.boardKind` (#227): the recently opened nodes of the search
|
|
258
230
|
// are these; null for every other kind.
|
|
259
231
|
boardKind: BoardShownKind.nullable(),
|
|
@@ -275,8 +247,6 @@ export const NodeDetail = z.object({
|
|
|
275
247
|
purge: z.record(z.string(), z.number().int()).nullable(),
|
|
276
248
|
createdAt: z.iso.datetime(),
|
|
277
249
|
updatedAt: z.iso.datetime(),
|
|
278
|
-
// Only for a document, table or file with a ticket (#47); null for every other node.
|
|
279
|
-
validation: NodeValidation.nullable(),
|
|
280
250
|
// Over MCP only: the INSTRUCTIONS of the node's folder, the node itself for a folder (#39).
|
|
281
251
|
instructions: InstructionsRead.optional(),
|
|
282
252
|
// Over MCP only, for a board and a task (E87, #354): the board's own
|
|
@@ -300,7 +270,7 @@ export const NodeUpdateInput = z.strictObject({
|
|
|
300
270
|
name: NodeName.optional(),
|
|
301
271
|
responsibleId: idSchema("user")
|
|
302
272
|
.optional()
|
|
303
|
-
.describe("Make this person responsible for the content
|
|
273
|
+
.describe("Make this person responsible for the content. Only for documents, tables and files, and only someone who can read the node."),
|
|
304
274
|
});
|
|
305
275
|
export const NodeMoveInput = z.strictObject({
|
|
306
276
|
nodeId: NodeId,
|
|
@@ -681,10 +681,6 @@ export declare const operatorDefaults: {
|
|
|
681
681
|
readonly keepStepsDays: 30;
|
|
682
682
|
};
|
|
683
683
|
};
|
|
684
|
-
export declare const validatorTrigger: {
|
|
685
|
-
readonly on: "change";
|
|
686
|
-
readonly quietMinutes: 5;
|
|
687
|
-
};
|
|
688
684
|
export declare const scheduleQuietMinutes = 5;
|
|
689
685
|
export declare const OperatorState: z.ZodEnum<{
|
|
690
686
|
no_role: "no_role";
|
|
@@ -1625,7 +1621,6 @@ export declare const OperatorRunTouched: z.ZodObject<{
|
|
|
1625
1621
|
export type OperatorRunTouched = z.infer<typeof OperatorRunTouched>;
|
|
1626
1622
|
export declare const OperatorRunInstructions: z.ZodObject<{
|
|
1627
1623
|
version: z.ZodNullable<z.ZodInt>;
|
|
1628
|
-
status: z.ZodNullable<z.ZodString>;
|
|
1629
1624
|
cut: z.ZodBoolean;
|
|
1630
1625
|
}, z.core.$strip>;
|
|
1631
1626
|
export type OperatorRunInstructions = z.infer<typeof OperatorRunInstructions>;
|
|
@@ -1697,7 +1692,6 @@ export declare const OperatorRun: z.ZodObject<{
|
|
|
1697
1692
|
}, z.core.$strip>;
|
|
1698
1693
|
instructions: z.ZodNullable<z.ZodObject<{
|
|
1699
1694
|
version: z.ZodNullable<z.ZodInt>;
|
|
1700
|
-
status: z.ZodNullable<z.ZodString>;
|
|
1701
1695
|
cut: z.ZodBoolean;
|
|
1702
1696
|
}, z.core.$strip>>;
|
|
1703
1697
|
credentialKind: z.ZodNullable<z.ZodEnum<{
|
|
@@ -2049,7 +2043,6 @@ export declare const OperatorRunList: z.ZodObject<{
|
|
|
2049
2043
|
}, z.core.$strip>;
|
|
2050
2044
|
instructions: z.ZodNullable<z.ZodObject<{
|
|
2051
2045
|
version: z.ZodNullable<z.ZodInt>;
|
|
2052
|
-
status: z.ZodNullable<z.ZodString>;
|
|
2053
2046
|
cut: z.ZodBoolean;
|
|
2054
2047
|
}, z.core.$strip>>;
|
|
2055
2048
|
credentialKind: z.ZodNullable<z.ZodEnum<{
|
|
@@ -561,10 +561,6 @@ export const operatorDefaults = {
|
|
|
561
561
|
trigger: { on: "change", quietMinutes: 0 },
|
|
562
562
|
limits: { maxRunMinutes: 30, maxRunsPerDay: 50, keepStepsDays: 30 },
|
|
563
563
|
};
|
|
564
|
-
// The validation's Operator keeps 5 minutes, as a fixed value when it is created with the role
|
|
565
|
-
// `validator` and no trigger (E185): it sees many small saves in a row and takes them in one run.
|
|
566
|
-
// ⚠️ Not a standard of its own: an Operator handed the role later keeps what it stored.
|
|
567
|
-
export const validatorTrigger = { on: "change", quietMinutes: 5 };
|
|
568
564
|
// A schedule stored before #824 carries no quiet time and was read with the standard of then; it
|
|
569
565
|
// keeps those 5 minutes, so E185 changes no stored Operator silently.
|
|
570
566
|
export const scheduleQuietMinutes = 5;
|
|
@@ -812,10 +808,9 @@ export const OperatorRunTouched = z.object({
|
|
|
812
808
|
connectors: z.array(z.string().max(200)).max(200),
|
|
813
809
|
});
|
|
814
810
|
// The INSTRUCTIONS a run got as its system message (#581, E111): the version of the document in the
|
|
815
|
-
// Operator's root folder
|
|
811
|
+
// Operator's root folder and whether it was cut at the limit.
|
|
816
812
|
export const OperatorRunInstructions = z.object({
|
|
817
813
|
version: z.int().min(1).nullable(),
|
|
818
|
-
status: z.string().nullable(),
|
|
819
814
|
cut: z.boolean(),
|
|
820
815
|
});
|
|
821
816
|
export const OperatorRunWoken = z.object({
|
package/dist/roles/roles.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const RoleId: z.ZodTemplateLiteral<`role_${string}`>;
|
|
3
|
-
export declare const validatorRoleId = "role_01K0000000000000000000VDR1";
|
|
4
3
|
export declare const RightPath: z.ZodString;
|
|
5
4
|
export declare const RoleListInput: z.ZodObject<{
|
|
6
5
|
archived: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>;
|
|
@@ -64,11 +63,6 @@ export declare const RoleList: z.ZodObject<{
|
|
|
64
63
|
nextCursor: z.ZodNullable<z.ZodTemplateLiteral<`role_${string}`>>;
|
|
65
64
|
}, z.core.$strip>;
|
|
66
65
|
export type RoleList = z.infer<typeof RoleList>;
|
|
67
|
-
export declare const RightInCode: z.ZodEnum<{
|
|
68
|
-
fixed: "fixed";
|
|
69
|
-
automatic: "automatic";
|
|
70
|
-
}>;
|
|
71
|
-
export type RightInCode = z.infer<typeof RightInCode>;
|
|
72
66
|
export declare const RightTree: z.ZodArray<z.ZodObject<{
|
|
73
67
|
resources: z.ZodArray<z.ZodObject<{
|
|
74
68
|
actions: z.ZodArray<z.ZodObject<{
|
|
@@ -76,10 +70,6 @@ export declare const RightTree: z.ZodArray<z.ZodObject<{
|
|
|
76
70
|
permission: z.ZodString;
|
|
77
71
|
on: z.ZodBoolean;
|
|
78
72
|
orphaned: z.ZodOptional<z.ZodLiteral<true>>;
|
|
79
|
-
inCode: z.ZodOptional<z.ZodEnum<{
|
|
80
|
-
fixed: "fixed";
|
|
81
|
-
automatic: "automatic";
|
|
82
|
-
}>>;
|
|
83
73
|
}, z.core.$strip>>;
|
|
84
74
|
on: z.ZodBoolean;
|
|
85
75
|
granted: z.ZodNumber;
|
|
@@ -107,10 +97,6 @@ export declare const RoleDetail: z.ZodObject<{
|
|
|
107
97
|
permission: z.ZodString;
|
|
108
98
|
on: z.ZodBoolean;
|
|
109
99
|
orphaned: z.ZodOptional<z.ZodLiteral<true>>;
|
|
110
|
-
inCode: z.ZodOptional<z.ZodEnum<{
|
|
111
|
-
fixed: "fixed";
|
|
112
|
-
automatic: "automatic";
|
|
113
|
-
}>>;
|
|
114
100
|
}, z.core.$strip>>;
|
|
115
101
|
on: z.ZodBoolean;
|
|
116
102
|
granted: z.ZodNumber;
|
package/dist/roles/roles.js
CHANGED
|
@@ -5,9 +5,6 @@ import { Flag, Limit } from "../list-input.js";
|
|
|
5
5
|
// their routes, and the answers the UI reads. A right is `package / resource / action`, every word one
|
|
6
6
|
// word (E64).
|
|
7
7
|
export const RoleId = idSchema("role");
|
|
8
|
-
// The fixed role `validator` (E79, E80): its id is fixed, so `operator` knows the validation's
|
|
9
|
-
// Operator at its creation (E185) without asking `access`.
|
|
10
|
-
export const validatorRoleId = "role_01K0000000000000000000VDR1";
|
|
11
8
|
// A right (`access / role / list`) or the prefix of a level (`intelligence / document`, `connectors`).
|
|
12
9
|
// The spaces around `/` are optional; `access` stores the form with them. The last word may be a
|
|
13
10
|
// connector's function, `connectors / shopify / order-list` (#5): resource and action joined by a
|
|
@@ -47,8 +44,8 @@ export const Role = z.object({
|
|
|
47
44
|
roleId: RoleId,
|
|
48
45
|
name: z.string(),
|
|
49
46
|
description: z.string(),
|
|
50
|
-
// `admin
|
|
51
|
-
//
|
|
47
|
+
// `admin` and `mitglied`: no rename, no archive; `admin` has no switches (E9, E80). Operator is a
|
|
48
|
+
// normal role.
|
|
52
49
|
fixed: z.boolean(),
|
|
53
50
|
archivedAt: z.iso.datetime().nullable(),
|
|
54
51
|
createdAt: z.iso.datetime(),
|
|
@@ -57,10 +54,6 @@ export const Role = z.object({
|
|
|
57
54
|
export const RoleList = z.object({ items: z.array(Role), nextCursor: RoleId.nullable() });
|
|
58
55
|
// One switch per level: on as soon as one right below is on, with the count for "2 / 3".
|
|
59
56
|
const Level = { on: z.boolean(), granted: z.number().int(), total: z.number().int() };
|
|
60
|
-
// A right the fixed role `validator` holds in code (#367, E80): `fixed` for the reads of nodes and the
|
|
61
|
-
// validation's writes, `automatic` for the reads of every connector and outside service. Locked on in
|
|
62
|
-
// the tree; switching it off answers `conflict`. Set only on the tree of `validator`.
|
|
63
|
-
export const RightInCode = z.enum(["fixed", "automatic"]);
|
|
64
57
|
export const RightTree = z.array(z.object({
|
|
65
58
|
package: z.string(),
|
|
66
59
|
...Level,
|
|
@@ -74,7 +67,6 @@ export const RightTree = z.array(z.object({
|
|
|
74
67
|
// A stored grant whose right no tool carries any more, for instance of a connector taken
|
|
75
68
|
// out of `colab.config.ts` (#5). It stays on the role until an admin removes it.
|
|
76
69
|
orphaned: z.literal(true).optional(),
|
|
77
|
-
inCode: RightInCode.optional(),
|
|
78
70
|
})),
|
|
79
71
|
})),
|
|
80
72
|
}));
|
package/dist/runs/runs.d.ts
CHANGED
|
@@ -4,18 +4,18 @@ export type RunId = z.infer<typeof RunId>;
|
|
|
4
4
|
export declare const runStatuses: readonly ["running", "done", "open", "error"];
|
|
5
5
|
export declare const RunStatus: z.ZodEnum<{
|
|
6
6
|
error: "error";
|
|
7
|
-
open: "open";
|
|
8
7
|
done: "done";
|
|
9
8
|
running: "running";
|
|
9
|
+
open: "open";
|
|
10
10
|
}>;
|
|
11
11
|
export type RunStatus = z.infer<typeof RunStatus>;
|
|
12
12
|
export declare const RunListInput: z.ZodObject<{
|
|
13
13
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
14
14
|
status: z.ZodOptional<z.ZodEnum<{
|
|
15
15
|
error: "error";
|
|
16
|
-
open: "open";
|
|
17
16
|
done: "done";
|
|
18
17
|
running: "running";
|
|
18
|
+
open: "open";
|
|
19
19
|
}>>;
|
|
20
20
|
from: z.ZodOptional<z.ZodISODateTime>;
|
|
21
21
|
to: z.ZodOptional<z.ZodISODateTime>;
|
|
@@ -31,14 +31,13 @@ export declare const RunItem: z.ZodObject<{
|
|
|
31
31
|
runId: z.ZodTemplateLiteral<`run_${string}`>;
|
|
32
32
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
33
33
|
kind: z.ZodEnum<{
|
|
34
|
-
validation: "validation";
|
|
35
34
|
process: "process";
|
|
36
35
|
}>;
|
|
37
36
|
status: z.ZodEnum<{
|
|
38
37
|
error: "error";
|
|
39
|
-
open: "open";
|
|
40
38
|
done: "done";
|
|
41
39
|
running: "running";
|
|
40
|
+
open: "open";
|
|
42
41
|
}>;
|
|
43
42
|
dueAt: z.ZodNullable<z.ZodISODateTime>;
|
|
44
43
|
startedAt: z.ZodISODateTime;
|
|
@@ -67,14 +66,13 @@ export declare const RunList: z.ZodObject<{
|
|
|
67
66
|
runId: z.ZodTemplateLiteral<`run_${string}`>;
|
|
68
67
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
69
68
|
kind: z.ZodEnum<{
|
|
70
|
-
validation: "validation";
|
|
71
69
|
process: "process";
|
|
72
70
|
}>;
|
|
73
71
|
status: z.ZodEnum<{
|
|
74
72
|
error: "error";
|
|
75
|
-
open: "open";
|
|
76
73
|
done: "done";
|
|
77
74
|
running: "running";
|
|
75
|
+
open: "open";
|
|
78
76
|
}>;
|
|
79
77
|
dueAt: z.ZodNullable<z.ZodISODateTime>;
|
|
80
78
|
startedAt: z.ZodISODateTime;
|
|
@@ -102,25 +100,25 @@ export declare const RunList: z.ZodObject<{
|
|
|
102
100
|
export type RunList = z.infer<typeof RunList>;
|
|
103
101
|
export declare const RunDetail: z.ZodObject<{
|
|
104
102
|
counts: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
|
|
103
|
+
archive: "archive";
|
|
104
|
+
done: "done";
|
|
105
105
|
backlog: "backlog";
|
|
106
106
|
open: "open";
|
|
107
107
|
progress: "progress";
|
|
108
|
-
done: "done";
|
|
109
108
|
discarded: "discarded";
|
|
110
109
|
blocked: "blocked";
|
|
111
|
-
archive: "archive";
|
|
112
110
|
}> & z.core.$partial, z.ZodNumber>>;
|
|
113
111
|
columns: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
114
112
|
columnId: z.ZodTemplateLiteral<`column_${string}`>;
|
|
115
113
|
name: z.ZodString;
|
|
116
114
|
type: z.ZodEnum<{
|
|
115
|
+
archive: "archive";
|
|
116
|
+
done: "done";
|
|
117
117
|
backlog: "backlog";
|
|
118
118
|
open: "open";
|
|
119
119
|
progress: "progress";
|
|
120
|
-
done: "done";
|
|
121
120
|
discarded: "discarded";
|
|
122
121
|
blocked: "blocked";
|
|
123
|
-
archive: "archive";
|
|
124
122
|
}>;
|
|
125
123
|
tasks: z.ZodNumber;
|
|
126
124
|
}, z.core.$strip>>>;
|
|
@@ -172,14 +170,13 @@ export declare const RunDetail: z.ZodObject<{
|
|
|
172
170
|
runId: z.ZodTemplateLiteral<`run_${string}`>;
|
|
173
171
|
nodeId: z.ZodTemplateLiteral<`node_${string}`>;
|
|
174
172
|
kind: z.ZodEnum<{
|
|
175
|
-
validation: "validation";
|
|
176
173
|
process: "process";
|
|
177
174
|
}>;
|
|
178
175
|
status: z.ZodEnum<{
|
|
179
176
|
error: "error";
|
|
180
|
-
open: "open";
|
|
181
177
|
done: "done";
|
|
182
178
|
running: "running";
|
|
179
|
+
open: "open";
|
|
183
180
|
}>;
|
|
184
181
|
dueAt: z.ZodNullable<z.ZodISODateTime>;
|
|
185
182
|
startedAt: z.ZodISODateTime;
|
package/dist/runs/runs.js
CHANGED
|
@@ -4,17 +4,17 @@ import { ColumnId, ColumnType } from "../columns/columns.js";
|
|
|
4
4
|
import { idSchema } from "../ids/ids.js";
|
|
5
5
|
import { Limit } from "../list-input.js";
|
|
6
6
|
import { NodeId, NodePerson } from "../nodes/nodes.js";
|
|
7
|
-
// Runs of a process board
|
|
7
|
+
// Runs of a process board from before goals (#43, Funktionen › Läufe, E42,
|
|
8
8
|
// E45, E67, E70, E119, E139): the inputs of `intelligence_run_list` and `_get`, and the answers. No
|
|
9
9
|
// run starts (#847) or ends (#852) any more; the ones that stand stay readable, frozen as they are.
|
|
10
10
|
export const RunId = idSchema("run").describe("The run's id, `run_…`, as intelligence_run_list returned it.");
|
|
11
11
|
export const runStatuses = ["running", "done", "open", "error"];
|
|
12
12
|
export const RunStatus = z
|
|
13
13
|
.enum(runStatuses)
|
|
14
|
-
.describe("The run's status, set by Colab from its result, never by the caller: running (started, not completed), done (
|
|
14
|
+
.describe("The run's status, set by Colab from its result, never by the caller: running (started, not completed), done (every task in a done, discarded or archive column), open (a task not in such a column), error (a task in a blocked column).");
|
|
15
15
|
const Moment = z.iso.datetime({ offset: true });
|
|
16
16
|
export const RunListInput = z.strictObject({
|
|
17
|
-
nodeId: NodeId.describe("The process board
|
|
17
|
+
nodeId: NodeId.describe("The process board whose runs to list, one you can read. Runs never stand in the tree."),
|
|
18
18
|
status: RunStatus.optional().describe("Only the runs with this status."),
|
|
19
19
|
from: Moment.optional().describe("Only the runs started at or after this moment, ISO 8601."),
|
|
20
20
|
to: Moment.optional().describe("Only the runs started at or before this moment, ISO 8601."),
|
|
@@ -29,8 +29,7 @@ export const RunGetInput = z.strictObject({ runId: RunId });
|
|
|
29
29
|
export const RunItem = z.object({
|
|
30
30
|
runId: RunId,
|
|
31
31
|
nodeId: NodeId,
|
|
32
|
-
|
|
33
|
-
kind: z.enum(["process", "validation"]),
|
|
32
|
+
kind: z.enum(["process"]),
|
|
34
33
|
status: RunStatus,
|
|
35
34
|
// The moment of the schedule this run stands for, null for a run started by hand.
|
|
36
35
|
dueAt: z.iso.datetime().nullable(),
|
|
@@ -59,7 +58,7 @@ export const RunDetail = z.object({
|
|
|
59
58
|
}))
|
|
60
59
|
.nullable(),
|
|
61
60
|
// A process run: the card kinds it copied when it started, with their fields (#638); empty for a
|
|
62
|
-
// run of a board without kinds
|
|
61
|
+
// run of a board without kinds.
|
|
63
62
|
cardKinds: z.array(CardKind).nullable(),
|
|
64
63
|
// The instruction of the board as the run started (E87, #354); null without one.
|
|
65
64
|
instruction: z.string().nullable(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { TimeZone } from "../profile/profile.js";
|
|
3
|
-
// The schedule (Ausführung) of a process board
|
|
3
|
+
// The schedule (Ausführung) of a process board (#43, Funktionen › Läufe): when a
|
|
4
4
|
// run falls due and what happens while the last one is still open.
|
|
5
5
|
export const rhythms = ["manual", "daily", "weekly", "monthly", "dates"];
|
|
6
6
|
export const weekdays = [
|