@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.
Files changed (43) hide show
  1. package/dist/actions/actions.d.ts +83 -61
  2. package/dist/actions/actions.js +12 -6
  3. package/dist/boards/boards.d.ts +72 -167
  4. package/dist/boards/boards.js +30 -23
  5. package/dist/card-kinds/card-kinds.js +1 -1
  6. package/dist/columns/columns.d.ts +4 -4
  7. package/dist/columns/columns.js +3 -3
  8. package/dist/documents/documents.d.ts +0 -2
  9. package/dist/files/files.d.ts +32 -1
  10. package/dist/files/files.js +89 -27
  11. package/dist/grammar/grammar.d.ts +4 -1
  12. package/dist/grammar/grammar.js +17 -0
  13. package/dist/grants/grants.d.ts +12 -4
  14. package/dist/grants/grants.js +23 -8
  15. package/dist/home/home.d.ts +3 -3
  16. package/dist/instructions/instructions.d.ts +0 -4
  17. package/dist/instructions/instructions.js +5 -13
  18. package/dist/invitations/invitations.d.ts +1 -0
  19. package/dist/invitations/invitations.js +8 -0
  20. package/dist/jobs/jobs.d.ts +67 -0
  21. package/dist/jobs/jobs.js +45 -0
  22. package/dist/mcps/mcps.d.ts +3 -3
  23. package/dist/nodes/nodes.d.ts +5 -115
  24. package/dist/nodes/nodes.js +15 -41
  25. package/dist/operators/operators.d.ts +89 -7
  26. package/dist/operators/operators.js +50 -7
  27. package/dist/roles/roles.d.ts +0 -14
  28. package/dist/roles/roles.js +2 -10
  29. package/dist/runs/runs.d.ts +9 -12
  30. package/dist/runs/runs.js +5 -6
  31. package/dist/schedule/schedule.js +1 -1
  32. package/dist/sdk.d.ts +10 -9
  33. package/dist/sdk.js +10 -9
  34. package/dist/sources/sources.d.ts +6 -6
  35. package/dist/teams/teams.d.ts +120 -0
  36. package/dist/teams/teams.js +70 -0
  37. package/dist/versions/versions.d.ts +54 -71
  38. package/dist/versions/versions.js +5 -6
  39. package/dist/written/written.d.ts +62 -2
  40. package/dist/written/written.js +16 -2
  41. package/package.json +1 -1
  42. package/dist/validation/validation.d.ts +0 -60
  43. package/dist/validation/validation.js +0 -26
@@ -0,0 +1,45 @@
1
+ import { z } from "zod";
2
+ import { idSchema } from "../ids/ids.js";
3
+ import { NodeId } from "../nodes/nodes.js";
4
+ import { IdempotencyKey } from "../primitives/primitives.js";
5
+ // Jobs (#1129, E236, Seiten › Archiv): deleting for good or restoring many archive entries runs on
6
+ // the server. One request names the entries and answers the job at once; the queue works them off
7
+ // one after the other, each through the door of a single entry, under the rights of the person who
8
+ // started it. Only a person in the browser starts or reads a job (D124): there is no tool over `/mcp`.
9
+ export const JobId = idSchema("job").describe("The job's id, `job_…`.");
10
+ export const JobKind = z.enum(["purge", "restore"]);
11
+ // The most entries one job takes: the archive draws at most 2000 entries per section.
12
+ export const maxJobEntries = 2000;
13
+ // The most refused entries an answer names; the rest is counted.
14
+ export const maxJobRefusedNamed = 100;
15
+ export const JobCreateInput = z.strictObject({
16
+ kind: JobKind.describe("purge deletes the entries for good, restore brings them back."),
17
+ nodeIds: z
18
+ .array(NodeId)
19
+ .min(1)
20
+ .max(maxJobEntries)
21
+ .describe("The archived entries, the topmost of a selection: an entry inside another one goes with it."),
22
+ idempotencyKey: IdempotencyKey,
23
+ });
24
+ export const JobGetInput = z.strictObject({ jobId: JobId });
25
+ // The jobs of the caller that have not ended: few at any time, so one page.
26
+ export const JobListInput = z.strictObject({});
27
+ export const JobRefused = z.object({
28
+ nodeId: NodeId,
29
+ // The name it had when the job reached it; null for an entry the person could not read.
30
+ name: z.string().nullable(),
31
+ });
32
+ export const Job = z.object({
33
+ jobId: JobId,
34
+ kind: JobKind,
35
+ // Every entry the job took, the ones done, and the ones the server refused.
36
+ total: z.number().int(),
37
+ done: z.number().int(),
38
+ refused: z.number().int(),
39
+ // The first `maxJobRefusedNamed` refused entries, in the order given.
40
+ refusedEntries: z.array(JobRefused),
41
+ createdAt: z.string(),
42
+ // Null while entries are still open.
43
+ completedAt: z.string().nullable(),
44
+ });
45
+ export const JobList = z.object({ items: z.array(Job), nextCursor: z.null() });
@@ -340,11 +340,11 @@ export declare const McpList: z.ZodObject<{
340
340
  }, z.core.$strip>;
341
341
  export type McpList = z.infer<typeof McpList>;
342
342
  export declare const McpCallAction: z.ZodEnum<{
343
- blocked: "blocked";
344
343
  update: "update";
345
344
  test: "test";
346
345
  revoke: "revoke";
347
346
  call: "call";
347
+ blocked: "blocked";
348
348
  connect: "connect";
349
349
  signin: "signin";
350
350
  expire: "expire";
@@ -353,11 +353,11 @@ export type McpCallAction = z.infer<typeof McpCallAction>;
353
353
  export declare const McpCall: z.ZodObject<{
354
354
  callId: z.ZodTemplateLiteral<`call_${string}`>;
355
355
  action: z.ZodEnum<{
356
- blocked: "blocked";
357
356
  update: "update";
358
357
  test: "test";
359
358
  revoke: "revoke";
360
359
  call: "call";
360
+ blocked: "blocked";
361
361
  connect: "connect";
362
362
  signin: "signin";
363
363
  expire: "expire";
@@ -372,11 +372,11 @@ export declare const McpCallList: z.ZodObject<{
372
372
  items: z.ZodArray<z.ZodObject<{
373
373
  callId: z.ZodTemplateLiteral<`call_${string}`>;
374
374
  action: z.ZodEnum<{
375
- blocked: "blocked";
376
375
  update: "update";
377
376
  test: "test";
378
377
  revoke: "revoke";
379
378
  call: "call";
379
+ blocked: "blocked";
380
380
  connect: "connect";
381
381
  signin: "signin";
382
382
  expire: "expire";
@@ -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<{
@@ -179,6 +159,7 @@ export declare const NodeListItem: z.ZodObject<{
179
159
  }, z.core.$strip>>;
180
160
  count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
181
161
  secret: z.ZodOptional<z.ZodLiteral<true>>;
162
+ preview: z.ZodOptional<z.ZodTemplateLiteral<`version_${string}`>>;
182
163
  rootArchived: z.ZodOptional<z.ZodLiteral<true>>;
183
164
  }, z.core.$strip>;
184
165
  export type NodeListItem = z.infer<typeof NodeListItem>;
@@ -222,21 +203,8 @@ export declare const NodeList: z.ZodObject<{
222
203
  updatedAt: z.ZodISODateTime;
223
204
  sharedWith: z.ZodNumber;
224
205
  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
206
  boardKind: z.ZodNullable<z.ZodEnum<{
238
207
  board: "board";
239
- validation: "validation";
240
208
  process: "process";
241
209
  }>>;
242
210
  path: z.ZodOptional<z.ZodObject<{
@@ -252,6 +220,7 @@ export declare const NodeList: z.ZodObject<{
252
220
  }, z.core.$strip>>;
253
221
  count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
254
222
  secret: z.ZodOptional<z.ZodLiteral<true>>;
223
+ preview: z.ZodOptional<z.ZodTemplateLiteral<`version_${string}`>>;
255
224
  rootArchived: z.ZodOptional<z.ZodLiteral<true>>;
256
225
  }, z.core.$strip>>;
257
226
  nextCursor: z.ZodNullable<z.ZodString>;
@@ -259,7 +228,6 @@ export declare const NodeList: z.ZodObject<{
259
228
  instructions: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
260
229
  chain: z.ZodArray<z.ZodObject<{
261
230
  path: z.ZodString;
262
- status: z.ZodNullable<z.ZodString>;
263
231
  markdown: z.ZodString;
264
232
  }, z.core.$strip>>;
265
233
  hint: z.ZodOptional<z.ZodString>;
@@ -272,10 +240,10 @@ export declare const NodeList: z.ZodObject<{
272
240
  export type NodeList = z.infer<typeof NodeList>;
273
241
  export declare const NodeHitFoundIn: z.ZodObject<{
274
242
  kind: z.ZodEnum<{
275
- column: "column";
276
243
  page: "page";
277
244
  title: "title";
278
245
  text: "text";
246
+ column: "column";
279
247
  card: "card";
280
248
  }>;
281
249
  label: z.ZodNullable<z.ZodString>;
@@ -311,28 +279,18 @@ export declare const NodeHit: z.ZodObject<{
311
279
  snippet: z.ZodString;
312
280
  foundIn: z.ZodObject<{
313
281
  kind: z.ZodEnum<{
314
- column: "column";
315
282
  page: "page";
316
283
  title: "title";
317
284
  text: "text";
285
+ column: "column";
318
286
  card: "card";
319
287
  }>;
320
288
  label: z.ZodNullable<z.ZodString>;
321
289
  }, z.core.$strip>;
322
290
  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
291
  updatedAt: z.ZodISODateTime;
333
292
  boardKind: z.ZodNullable<z.ZodEnum<{
334
293
  board: "board";
335
- validation: "validation";
336
294
  process: "process";
337
295
  }>>;
338
296
  secret: z.ZodOptional<z.ZodLiteral<true>>;
@@ -385,28 +343,18 @@ export declare const NodeSearch: z.ZodObject<{
385
343
  snippet: z.ZodString;
386
344
  foundIn: z.ZodObject<{
387
345
  kind: z.ZodEnum<{
388
- column: "column";
389
346
  page: "page";
390
347
  title: "title";
391
348
  text: "text";
349
+ column: "column";
392
350
  card: "card";
393
351
  }>;
394
352
  label: z.ZodNullable<z.ZodString>;
395
353
  }, z.core.$strip>;
396
354
  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
355
  updatedAt: z.ZodISODateTime;
407
356
  boardKind: z.ZodNullable<z.ZodEnum<{
408
357
  board: "board";
409
- validation: "validation";
410
358
  process: "process";
411
359
  }>>;
412
360
  secret: z.ZodOptional<z.ZodLiteral<true>>;
@@ -448,33 +396,6 @@ export declare const NodeGetInput: z.ZodObject<{
448
396
  known: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodString>, unknown>>;
449
397
  }, z.core.$strict>;
450
398
  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
399
  export declare const NodeDetail: z.ZodObject<{
479
400
  secretId: z.ZodOptional<z.ZodTemplateLiteral<`secret_${string}`>>;
480
401
  secretBy: z.ZodOptional<z.ZodObject<{
@@ -506,12 +427,8 @@ export declare const NodeDetail: z.ZodObject<{
506
427
  name: z.ZodString;
507
428
  hidden: z.ZodBoolean;
508
429
  rootOf: z.ZodNullable<z.ZodString>;
509
- system: z.ZodNullable<z.ZodEnum<{
510
- validation: "validation";
511
- }>>;
512
430
  boardKind: z.ZodNullable<z.ZodEnum<{
513
431
  board: "board";
514
- validation: "validation";
515
432
  process: "process";
516
433
  }>>;
517
434
  parentId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
@@ -553,36 +470,9 @@ export declare const NodeDetail: z.ZodObject<{
553
470
  purge: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNumber>>;
554
471
  createdAt: z.ZodISODateTime;
555
472
  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
473
  instructions: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
583
474
  chain: z.ZodArray<z.ZodObject<{
584
475
  path: z.ZodString;
585
- status: z.ZodNullable<z.ZodString>;
586
476
  markdown: z.ZodString;
587
477
  }, z.core.$strip>>;
588
478
  hint: z.ZodOptional<z.ZodString>;
@@ -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's validity.
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
- // A system part with a lock (E67): renaming, moving, archiving, deleting and sharing refuse. The one
58
- // validation board (#47); the board Vorschläge in every root is gone (E88, #355). It lives here, not
59
- // beside the boards, because the listing carries it too (#52) and `boards.ts` imports from this file.
60
- export const BoardSystem = z.enum(["validation"]);
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", "status"]);
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), or status (the type of the column the validation ticket stands in, New read as backlog: backlog, open, progress, done, discarded, blocked, archive, then nodes without a ticket)."),
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
- // The validation status (#47): the type of the column its ticket stands in, a ticket in New read as
144
- // `backlog` (unchecked, #814); null for a kind that is not validated.
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).
@@ -155,6 +144,10 @@ export const NodeListItem = z.object({
155
144
  count: z.number().int().nullable().optional(),
156
145
  // Only on a secret document or table (#357): the tree draws the lock.
157
146
  secret: secretFlag,
147
+ // Only over `/api`, on a file whose current version is an image the installation can show smaller
148
+ // (#1135): that version, so the folder's preview address changes with a new version. `/mcp` leaves
149
+ // it out; an AI reads the file itself.
150
+ preview: idSchema("version").optional(),
158
151
  // Only in section users (E97, #447): the root of an archived account, listed only while it still
159
152
  // holds something, after all others.
160
153
  rootArchived: z
@@ -194,10 +187,7 @@ export const NodeHit = z.object({
194
187
  foundIn: NodeHitFoundIn,
195
188
  // 1 is the best hit; counted over the whole answer, not per page.
196
189
  rank: z.number().int().min(1),
197
- // The validation status like `NodeListItem.status` (#236): the type of the column its ticket stands
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).
190
+ // The last change, on the hit (#236).
201
191
  updatedAt: z.iso.datetime(),
202
192
  // What a board is, like `NodeListItem.boardKind` (#227); null for every other kind.
203
193
  boardKind: BoardShownKind.nullable(),
@@ -233,18 +223,6 @@ export const SearchIndexState = z.object({
233
223
  .nullable(),
234
224
  });
235
225
  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
226
  export const NodeDetail = z.object({
249
227
  nodeId: NodeId,
250
228
  // `unknown` for a kind this release does not know (E195): the page reloads into the new one.
@@ -252,8 +230,6 @@ export const NodeDetail = z.object({
252
230
  name: z.string(),
253
231
  hidden: z.boolean(),
254
232
  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
233
  // What a board is, like `NodeListItem.boardKind` (#227): the recently opened nodes of the search
258
234
  // are these; null for every other kind.
259
235
  boardKind: BoardShownKind.nullable(),
@@ -275,8 +251,6 @@ export const NodeDetail = z.object({
275
251
  purge: z.record(z.string(), z.number().int()).nullable(),
276
252
  createdAt: z.iso.datetime(),
277
253
  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
254
  // Over MCP only: the INSTRUCTIONS of the node's folder, the node itself for a folder (#39).
281
255
  instructions: InstructionsRead.optional(),
282
256
  // Over MCP only, for a board and a task (E87, #354): the board's own
@@ -300,7 +274,7 @@ export const NodeUpdateInput = z.strictObject({
300
274
  name: NodeName.optional(),
301
275
  responsibleId: idSchema("user")
302
276
  .optional()
303
- .describe("Make this person responsible for the content's validity. Only for documents, tables and files, and only someone who can read the node."),
277
+ .describe("Make this person responsible for the content. Only for documents, tables and files, and only someone who can read the node."),
304
278
  });
305
279
  export const NodeMoveInput = z.strictObject({
306
280
  nodeId: NodeId,
@@ -458,6 +458,35 @@ export declare const CredentialRevokeInput: z.ZodObject<{
458
458
  credentialId: z.ZodTemplateLiteral<`credential_${string}`>;
459
459
  }, z.core.$strict>;
460
460
  export type CredentialRevokeInput = z.infer<typeof CredentialRevokeInput>;
461
+ export declare const UserCredentialCreateInput: z.ZodObject<{
462
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
463
+ name: z.ZodOptional<z.ZodString>;
464
+ value: z.ZodString;
465
+ }, z.core.$strict>;
466
+ export type UserCredentialCreateInput = z.infer<typeof UserCredentialCreateInput>;
467
+ export declare const UserCredentialUpdateInput: z.ZodObject<{
468
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
469
+ credentialId: z.ZodTemplateLiteral<`credential_${string}`>;
470
+ name: z.ZodOptional<z.ZodString>;
471
+ value: z.ZodOptional<z.ZodString>;
472
+ }, z.core.$strict>;
473
+ export type UserCredentialUpdateInput = z.infer<typeof UserCredentialUpdateInput>;
474
+ export declare const UserCredentialTestInput: z.ZodObject<{
475
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
476
+ credentialId: z.ZodTemplateLiteral<`credential_${string}`>;
477
+ }, z.core.$strict>;
478
+ export type UserCredentialTestInput = z.infer<typeof UserCredentialTestInput>;
479
+ export declare const UserCredentialRevokeInput: z.ZodObject<{
480
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
481
+ credentialId: z.ZodTemplateLiteral<`credential_${string}`>;
482
+ }, z.core.$strict>;
483
+ export type UserCredentialRevokeInput = z.infer<typeof UserCredentialRevokeInput>;
484
+ export declare const OwnCredentialState: z.ZodEnum<{
485
+ limit: "limit";
486
+ invalid: "invalid";
487
+ valid: "valid";
488
+ }>;
489
+ export type OwnCredentialState = z.infer<typeof OwnCredentialState>;
461
490
  export declare const Credential: z.ZodObject<{
462
491
  credentialId: z.ZodTemplateLiteral<`credential_${string}`>;
463
492
  provider: z.ZodNullable<z.ZodEnum<{
@@ -681,10 +710,6 @@ export declare const operatorDefaults: {
681
710
  readonly keepStepsDays: 30;
682
711
  };
683
712
  };
684
- export declare const validatorTrigger: {
685
- readonly on: "change";
686
- readonly quietMinutes: 5;
687
- };
688
713
  export declare const scheduleQuietMinutes = 5;
689
714
  export declare const OperatorState: z.ZodEnum<{
690
715
  no_role: "no_role";
@@ -695,6 +720,7 @@ export type OperatorState = z.infer<typeof OperatorState>;
695
720
  export declare const PauseReason: z.ZodEnum<{
696
721
  credential: "credential";
697
722
  limit: "limit";
723
+ own: "own";
698
724
  manual: "manual";
699
725
  model: "model";
700
726
  failures: "failures";
@@ -1018,6 +1044,7 @@ export declare const Operator: z.ZodObject<{
1018
1044
  pausedReason: z.ZodNullable<z.ZodEnum<{
1019
1045
  credential: "credential";
1020
1046
  limit: "limit";
1047
+ own: "own";
1021
1048
  manual: "manual";
1022
1049
  model: "model";
1023
1050
  failures: "failures";
@@ -1220,6 +1247,7 @@ export declare const OperatorList: z.ZodObject<{
1220
1247
  pausedReason: z.ZodNullable<z.ZodEnum<{
1221
1248
  credential: "credential";
1222
1249
  limit: "limit";
1250
+ own: "own";
1223
1251
  manual: "manual";
1224
1252
  model: "model";
1225
1253
  failures: "failures";
@@ -1301,6 +1329,45 @@ export declare const OperatorList: z.ZodObject<{
1301
1329
  spentUsd: z.ZodNumber;
1302
1330
  reached: z.ZodBoolean;
1303
1331
  }, z.core.$strip>>;
1332
+ ownCredential: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1333
+ credentialId: z.ZodTemplateLiteral<`credential_${string}`>;
1334
+ provider: z.ZodNullable<z.ZodEnum<{
1335
+ claude: "claude";
1336
+ codex: "codex";
1337
+ gemini: "gemini";
1338
+ gateway: "gateway";
1339
+ }>>;
1340
+ kind: z.ZodEnum<{
1341
+ gateway: "gateway";
1342
+ subscription: "subscription";
1343
+ apikey: "apikey";
1344
+ }>;
1345
+ name: z.ZodString;
1346
+ state: z.ZodEnum<{
1347
+ invalid: "invalid";
1348
+ valid: "valid";
1349
+ }>;
1350
+ checkedAt: z.ZodNullable<z.ZodISODateTime>;
1351
+ setAt: z.ZodISODateTime;
1352
+ position: z.ZodInt;
1353
+ personal: z.ZodBoolean;
1354
+ fallback: z.ZodBoolean;
1355
+ rights: z.ZodNullable<z.ZodArray<z.ZodObject<{
1356
+ right: z.ZodEnum<{
1357
+ run: "run";
1358
+ read: "read";
1359
+ workersai: "workersai";
1360
+ }>;
1361
+ granted: z.ZodNullable<z.ZodBoolean>;
1362
+ without: z.ZodNullable<z.ZodString>;
1363
+ }, z.core.$strip>>>;
1364
+ limitedAt: z.ZodNullable<z.ZodISODateTime>;
1365
+ limitedUntil: z.ZodNullable<z.ZodISODateTime>;
1366
+ machineIds: z.ZodArray<z.ZodTemplateLiteral<`user_${string}`>>;
1367
+ createdAt: z.ZodISODateTime;
1368
+ createdBy: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
1369
+ updatedAt: z.ZodISODateTime;
1370
+ }, z.core.$strip>>>;
1304
1371
  }, z.core.$strip>;
1305
1372
  export type OperatorList = z.infer<typeof OperatorList>;
1306
1373
  export declare const OperatorUserListInput: z.ZodObject<{
@@ -1440,6 +1507,13 @@ export declare const OperatorUser: z.ZodObject<{
1440
1507
  reached: z.ZodBoolean;
1441
1508
  }, z.core.$strip>;
1442
1509
  machineIds: z.ZodArray<z.ZodTemplateLiteral<`user_${string}`>>;
1510
+ ownCredential: z.ZodNullable<z.ZodObject<{
1511
+ state: z.ZodEnum<{
1512
+ limit: "limit";
1513
+ invalid: "invalid";
1514
+ valid: "valid";
1515
+ }>;
1516
+ }, z.core.$strip>>;
1443
1517
  }, z.core.$strip>;
1444
1518
  export type OperatorUser = z.infer<typeof OperatorUser>;
1445
1519
  export declare const OperatorUserList: z.ZodObject<{
@@ -1573,6 +1647,13 @@ export declare const OperatorUserList: z.ZodObject<{
1573
1647
  reached: z.ZodBoolean;
1574
1648
  }, z.core.$strip>;
1575
1649
  machineIds: z.ZodArray<z.ZodTemplateLiteral<`user_${string}`>>;
1650
+ ownCredential: z.ZodNullable<z.ZodObject<{
1651
+ state: z.ZodEnum<{
1652
+ limit: "limit";
1653
+ invalid: "invalid";
1654
+ valid: "valid";
1655
+ }>;
1656
+ }, z.core.$strip>>;
1576
1657
  }, z.core.$strip>>;
1577
1658
  nextCursor: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
1578
1659
  }, z.core.$strip>;
@@ -1625,7 +1706,6 @@ export declare const OperatorRunTouched: z.ZodObject<{
1625
1706
  export type OperatorRunTouched = z.infer<typeof OperatorRunTouched>;
1626
1707
  export declare const OperatorRunInstructions: z.ZodObject<{
1627
1708
  version: z.ZodNullable<z.ZodInt>;
1628
- status: z.ZodNullable<z.ZodString>;
1629
1709
  cut: z.ZodBoolean;
1630
1710
  }, z.core.$strip>;
1631
1711
  export type OperatorRunInstructions = z.infer<typeof OperatorRunInstructions>;
@@ -1697,7 +1777,6 @@ export declare const OperatorRun: z.ZodObject<{
1697
1777
  }, z.core.$strip>;
1698
1778
  instructions: z.ZodNullable<z.ZodObject<{
1699
1779
  version: z.ZodNullable<z.ZodInt>;
1700
- status: z.ZodNullable<z.ZodString>;
1701
1780
  cut: z.ZodBoolean;
1702
1781
  }, z.core.$strip>>;
1703
1782
  credentialKind: z.ZodNullable<z.ZodEnum<{
@@ -1734,8 +1813,10 @@ export declare const OperatorRun: z.ZodObject<{
1734
1813
  by: z.ZodNullable<z.ZodString>;
1735
1814
  }, z.core.$strip>>;
1736
1815
  credentialName: z.ZodNullable<z.ZodString>;
1816
+ credentialOwn: z.ZodOptional<z.ZodBoolean>;
1737
1817
  fallback: z.ZodNullable<z.ZodObject<{
1738
1818
  fromName: z.ZodString;
1819
+ fromOwn: z.ZodOptional<z.ZodBoolean>;
1739
1820
  reason: z.ZodEnum<{
1740
1821
  credential: "credential";
1741
1822
  limit: "limit";
@@ -2049,7 +2130,6 @@ export declare const OperatorRunList: z.ZodObject<{
2049
2130
  }, z.core.$strip>;
2050
2131
  instructions: z.ZodNullable<z.ZodObject<{
2051
2132
  version: z.ZodNullable<z.ZodInt>;
2052
- status: z.ZodNullable<z.ZodString>;
2053
2133
  cut: z.ZodBoolean;
2054
2134
  }, z.core.$strip>>;
2055
2135
  credentialKind: z.ZodNullable<z.ZodEnum<{
@@ -2086,8 +2166,10 @@ export declare const OperatorRunList: z.ZodObject<{
2086
2166
  by: z.ZodNullable<z.ZodString>;
2087
2167
  }, z.core.$strip>>;
2088
2168
  credentialName: z.ZodNullable<z.ZodString>;
2169
+ credentialOwn: z.ZodOptional<z.ZodBoolean>;
2089
2170
  fallback: z.ZodNullable<z.ZodObject<{
2090
2171
  fromName: z.ZodString;
2172
+ fromOwn: z.ZodOptional<z.ZodBoolean>;
2091
2173
  reason: z.ZodEnum<{
2092
2174
  credential: "credential";
2093
2175
  limit: "limit";