@anchrd/intel-contract 0.12.0 → 0.13.0
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/contract/contract.d.ts +66 -1193
- package/dist/contract/contract.js +16 -705
- package/package.json +1 -1
|
@@ -18,17 +18,11 @@ export declare const SessionUser: z.ZodObject<{
|
|
|
18
18
|
name: z.ZodNullable<z.ZodString>;
|
|
19
19
|
}, z.core.$strict>;
|
|
20
20
|
export type SessionUser = z.infer<typeof SessionUser>;
|
|
21
|
-
export declare const IntelCapabilities: z.ZodObject<{
|
|
22
|
-
agentRuntime: z.ZodBoolean;
|
|
23
|
-
}, z.core.$strict>;
|
|
24
|
-
export type IntelCapabilities = z.infer<typeof IntelCapabilities>;
|
|
25
21
|
export declare const NodeKind: z.ZodEnum<{
|
|
26
22
|
folder: "folder";
|
|
27
23
|
document: "document";
|
|
28
24
|
attachment: "attachment";
|
|
29
25
|
table: "table";
|
|
30
|
-
agent: "agent";
|
|
31
|
-
board: "board";
|
|
32
26
|
}>;
|
|
33
27
|
export type NodeKind = z.infer<typeof NodeKind>;
|
|
34
28
|
export declare const ResourceVerb: z.ZodEnum<{
|
|
@@ -56,8 +50,6 @@ export declare const Node: z.ZodObject<{
|
|
|
56
50
|
document: "document";
|
|
57
51
|
attachment: "attachment";
|
|
58
52
|
table: "table";
|
|
59
|
-
agent: "agent";
|
|
60
|
-
board: "board";
|
|
61
53
|
}>;
|
|
62
54
|
title: z.ZodString;
|
|
63
55
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -115,8 +107,6 @@ export declare const CreateNodeInput: z.ZodObject<{
|
|
|
115
107
|
document: "document";
|
|
116
108
|
attachment: "attachment";
|
|
117
109
|
table: "table";
|
|
118
|
-
agent: "agent";
|
|
119
|
-
board: "board";
|
|
120
110
|
}>;
|
|
121
111
|
title: z.ZodString;
|
|
122
112
|
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -164,8 +154,6 @@ export declare const NodeList: z.ZodObject<{
|
|
|
164
154
|
document: "document";
|
|
165
155
|
attachment: "attachment";
|
|
166
156
|
table: "table";
|
|
167
|
-
agent: "agent";
|
|
168
|
-
board: "board";
|
|
169
157
|
}>;
|
|
170
158
|
title: z.ZodString;
|
|
171
159
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -205,8 +193,6 @@ export declare const NodeDocument: z.ZodObject<{
|
|
|
205
193
|
document: "document";
|
|
206
194
|
attachment: "attachment";
|
|
207
195
|
table: "table";
|
|
208
|
-
agent: "agent";
|
|
209
|
-
board: "board";
|
|
210
196
|
}>;
|
|
211
197
|
title: z.ZodString;
|
|
212
198
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -243,8 +229,6 @@ export declare const NodeAttachment: z.ZodObject<{
|
|
|
243
229
|
document: "document";
|
|
244
230
|
attachment: "attachment";
|
|
245
231
|
table: "table";
|
|
246
|
-
agent: "agent";
|
|
247
|
-
board: "board";
|
|
248
232
|
}>;
|
|
249
233
|
title: z.ZodString;
|
|
250
234
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -301,8 +285,6 @@ export declare const NodeTable: z.ZodObject<{
|
|
|
301
285
|
document: "document";
|
|
302
286
|
attachment: "attachment";
|
|
303
287
|
table: "table";
|
|
304
|
-
agent: "agent";
|
|
305
|
-
board: "board";
|
|
306
288
|
}>;
|
|
307
289
|
title: z.ZodString;
|
|
308
290
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -317,612 +299,7 @@ export declare const NodeTable: z.ZodObject<{
|
|
|
317
299
|
versionId: z.ZodNullable<z.ZodString>;
|
|
318
300
|
}, z.core.$strict>;
|
|
319
301
|
export type NodeTable = z.infer<typeof NodeTable>;
|
|
320
|
-
export declare const AppendTableRowsResult: z.ZodObject<{
|
|
321
|
-
node: z.ZodObject<{
|
|
322
|
-
id: z.ZodString;
|
|
323
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
324
|
-
kind: z.ZodEnum<{
|
|
325
|
-
folder: "folder";
|
|
326
|
-
document: "document";
|
|
327
|
-
attachment: "attachment";
|
|
328
|
-
table: "table";
|
|
329
|
-
agent: "agent";
|
|
330
|
-
board: "board";
|
|
331
|
-
}>;
|
|
332
|
-
title: z.ZodString;
|
|
333
|
-
description: z.ZodNullable<z.ZodString>;
|
|
334
|
-
ownerId: z.ZodString;
|
|
335
|
-
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
336
|
-
createdAt: z.ZodISODateTime;
|
|
337
|
-
updatedAt: z.ZodISODateTime;
|
|
338
|
-
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
339
|
-
}, z.core.$strict>;
|
|
340
|
-
version: z.ZodObject<{
|
|
341
|
-
id: z.ZodString;
|
|
342
|
-
nodeId: z.ZodString;
|
|
343
|
-
sequence: z.ZodNumber;
|
|
344
|
-
contentKey: z.ZodString;
|
|
345
|
-
mediaType: z.ZodString;
|
|
346
|
-
contentHash: z.ZodString;
|
|
347
|
-
size: z.ZodNumber;
|
|
348
|
-
segment: z.ZodNullable<z.ZodEnum<{
|
|
349
|
-
append: "append";
|
|
350
|
-
snapshot: "snapshot";
|
|
351
|
-
}>>;
|
|
352
|
-
createdBy: z.ZodString;
|
|
353
|
-
createdAt: z.ZodISODateTime;
|
|
354
|
-
}, z.core.$strict>;
|
|
355
|
-
appended: z.ZodNumber;
|
|
356
|
-
}, z.core.$strict>;
|
|
357
|
-
export type AppendTableRowsResult = z.infer<typeof AppendTableRowsResult>;
|
|
358
|
-
export declare const TableRowPosition: z.ZodNumber;
|
|
359
|
-
export declare const UpdateTableRowsInput: z.ZodObject<{
|
|
360
|
-
nodeId: z.ZodString;
|
|
361
|
-
baseVersionId: z.ZodString;
|
|
362
|
-
updates: z.ZodArray<z.ZodObject<{
|
|
363
|
-
position: z.ZodNumber;
|
|
364
|
-
row: z.ZodArray<z.ZodString>;
|
|
365
|
-
}, z.core.$strict>>;
|
|
366
|
-
idempotencyKey: z.ZodString;
|
|
367
|
-
}, z.core.$strict>;
|
|
368
|
-
export type UpdateTableRowsInput = z.infer<typeof UpdateTableRowsInput>;
|
|
369
|
-
export declare const UpdateTableRowsResult: z.ZodObject<{
|
|
370
|
-
node: z.ZodObject<{
|
|
371
|
-
id: z.ZodString;
|
|
372
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
373
|
-
kind: z.ZodEnum<{
|
|
374
|
-
folder: "folder";
|
|
375
|
-
document: "document";
|
|
376
|
-
attachment: "attachment";
|
|
377
|
-
table: "table";
|
|
378
|
-
agent: "agent";
|
|
379
|
-
board: "board";
|
|
380
|
-
}>;
|
|
381
|
-
title: z.ZodString;
|
|
382
|
-
description: z.ZodNullable<z.ZodString>;
|
|
383
|
-
ownerId: z.ZodString;
|
|
384
|
-
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
385
|
-
createdAt: z.ZodISODateTime;
|
|
386
|
-
updatedAt: z.ZodISODateTime;
|
|
387
|
-
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
388
|
-
}, z.core.$strict>;
|
|
389
|
-
version: z.ZodObject<{
|
|
390
|
-
id: z.ZodString;
|
|
391
|
-
nodeId: z.ZodString;
|
|
392
|
-
sequence: z.ZodNumber;
|
|
393
|
-
contentKey: z.ZodString;
|
|
394
|
-
mediaType: z.ZodString;
|
|
395
|
-
contentHash: z.ZodString;
|
|
396
|
-
size: z.ZodNumber;
|
|
397
|
-
segment: z.ZodNullable<z.ZodEnum<{
|
|
398
|
-
append: "append";
|
|
399
|
-
snapshot: "snapshot";
|
|
400
|
-
}>>;
|
|
401
|
-
createdBy: z.ZodString;
|
|
402
|
-
createdAt: z.ZodISODateTime;
|
|
403
|
-
}, z.core.$strict>;
|
|
404
|
-
updated: z.ZodNumber;
|
|
405
|
-
}, z.core.$strict>;
|
|
406
|
-
export type UpdateTableRowsResult = z.infer<typeof UpdateTableRowsResult>;
|
|
407
|
-
export declare const DeleteTableRowsInput: z.ZodObject<{
|
|
408
|
-
nodeId: z.ZodString;
|
|
409
|
-
baseVersionId: z.ZodString;
|
|
410
|
-
positions: z.ZodArray<z.ZodNumber>;
|
|
411
|
-
idempotencyKey: z.ZodString;
|
|
412
|
-
}, z.core.$strict>;
|
|
413
|
-
export type DeleteTableRowsInput = z.infer<typeof DeleteTableRowsInput>;
|
|
414
|
-
export declare const DeleteTableRowsResult: z.ZodObject<{
|
|
415
|
-
node: z.ZodObject<{
|
|
416
|
-
id: z.ZodString;
|
|
417
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
418
|
-
kind: z.ZodEnum<{
|
|
419
|
-
folder: "folder";
|
|
420
|
-
document: "document";
|
|
421
|
-
attachment: "attachment";
|
|
422
|
-
table: "table";
|
|
423
|
-
agent: "agent";
|
|
424
|
-
board: "board";
|
|
425
|
-
}>;
|
|
426
|
-
title: z.ZodString;
|
|
427
|
-
description: z.ZodNullable<z.ZodString>;
|
|
428
|
-
ownerId: z.ZodString;
|
|
429
|
-
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
430
|
-
createdAt: z.ZodISODateTime;
|
|
431
|
-
updatedAt: z.ZodISODateTime;
|
|
432
|
-
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
433
|
-
}, z.core.$strict>;
|
|
434
|
-
version: z.ZodObject<{
|
|
435
|
-
id: z.ZodString;
|
|
436
|
-
nodeId: z.ZodString;
|
|
437
|
-
sequence: z.ZodNumber;
|
|
438
|
-
contentKey: z.ZodString;
|
|
439
|
-
mediaType: z.ZodString;
|
|
440
|
-
contentHash: z.ZodString;
|
|
441
|
-
size: z.ZodNumber;
|
|
442
|
-
segment: z.ZodNullable<z.ZodEnum<{
|
|
443
|
-
append: "append";
|
|
444
|
-
snapshot: "snapshot";
|
|
445
|
-
}>>;
|
|
446
|
-
createdBy: z.ZodString;
|
|
447
|
-
createdAt: z.ZodISODateTime;
|
|
448
|
-
}, z.core.$strict>;
|
|
449
|
-
deleted: z.ZodNumber;
|
|
450
|
-
}, z.core.$strict>;
|
|
451
|
-
export type DeleteTableRowsResult = z.infer<typeof DeleteTableRowsResult>;
|
|
452
|
-
export declare const RedefineTableColumn: z.ZodObject<{
|
|
453
|
-
name: z.ZodString;
|
|
454
|
-
source: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
455
|
-
}, z.core.$strict>;
|
|
456
|
-
export type RedefineTableColumn = z.infer<typeof RedefineTableColumn>;
|
|
457
|
-
export declare const RedefineTableInput: z.ZodObject<{
|
|
458
|
-
nodeId: z.ZodString;
|
|
459
|
-
baseVersionId: z.ZodString;
|
|
460
|
-
columns: z.ZodArray<z.ZodObject<{
|
|
461
|
-
name: z.ZodString;
|
|
462
|
-
source: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
463
|
-
}, z.core.$strict>>;
|
|
464
|
-
idempotencyKey: z.ZodString;
|
|
465
|
-
}, z.core.$strict>;
|
|
466
|
-
export type RedefineTableInput = z.infer<typeof RedefineTableInput>;
|
|
467
|
-
export declare const BoardMediaType = "application/vnd.anchrd.board+json";
|
|
468
|
-
export declare const ArchivedBoardStatusId = "archived";
|
|
469
|
-
export declare const BoardStatusId: z.ZodString;
|
|
470
|
-
export declare const BoardStatus: z.ZodObject<{
|
|
471
|
-
id: z.ZodString;
|
|
472
|
-
label: z.ZodString;
|
|
473
|
-
order: z.ZodNumber;
|
|
474
|
-
terminal: z.ZodBoolean;
|
|
475
|
-
}, z.core.$strict>;
|
|
476
|
-
export type BoardStatus = z.infer<typeof BoardStatus>;
|
|
477
|
-
export declare const BoardDefaultStatuses: readonly BoardStatus[];
|
|
478
|
-
/**
|
|
479
|
-
* Who a task is on: a person Gate knows, or an agent node in this installation (#285).
|
|
480
|
-
*
|
|
481
|
-
* ⚠️ A `user` id is deliberately NOT validated against Intel's own id shape. Identity is Gate's
|
|
482
|
-
* (see the product boundary), so a rule here would be Intel inventing one about somebody else's
|
|
483
|
-
* identifier — the same reason `GateApplicationId` is a plain bounded string.
|
|
484
|
-
*/
|
|
485
|
-
export declare const BoardAssignee: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
486
|
-
type: z.ZodLiteral<"user">;
|
|
487
|
-
id: z.ZodString;
|
|
488
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
489
|
-
type: z.ZodLiteral<"agent">;
|
|
490
|
-
nodeId: z.ZodString;
|
|
491
|
-
}, z.core.$strict>], "type">;
|
|
492
|
-
export type BoardAssignee = z.infer<typeof BoardAssignee>;
|
|
493
|
-
/**
|
|
494
|
-
* A task's place among the others, as a fractional index (#285).
|
|
495
|
-
*
|
|
496
|
-
* ⚠️ Server-assigned, and a caller can never send one. A move names its NEIGHBOURS and the server
|
|
497
|
-
* mints a key between theirs, so moving one task writes one task and renumbers nothing — the whole
|
|
498
|
-
* reason a board is not addressed by position the way a table's rows are (`TableRowPosition`).
|
|
499
|
-
* A hand-written key could collide, and two tasks sharing a key have no defined order at all.
|
|
500
|
-
*
|
|
501
|
-
* ⚠️ This CHARACTER CLASS is the truth about a stored key, not `fractional-indexing`, and the two
|
|
502
|
-
* are deliberately not the same set (anchrd/intel#359). A board that arrived through a bundle may
|
|
503
|
-
* spell `"0"`, `"a00"`, `"zzz"` or `"A"` — all of them legal here, none of them readable by that
|
|
504
|
-
* library. Narrowing the regex to what it reads would be a rule on the STORED document, so a board
|
|
505
|
-
* carrying one would stop parsing in all four places a board body is read (the board read, the
|
|
506
|
-
* indexer, the link reader, the bundle import) — unreadable, unsearchable and unmovable at once,
|
|
507
|
-
* over a value its owner never wrote. That is the trap #311, #318 and #321 each walked into from a
|
|
508
|
-
* different side.
|
|
509
|
-
*
|
|
510
|
-
* ⚠️ What every consumer may therefore rely on is exactly what stands here: keys are non-empty
|
|
511
|
-
* strings over `[0-9A-Za-z]` and are ORDERED BY STRING COMPARISON. Nothing may assume more — and
|
|
512
|
-
* `packages/api`'s `orderBetween` is the one place that asks `fractional-indexing` for a key and
|
|
513
|
-
* carries on without it when it refuses a bound.
|
|
514
|
-
*/
|
|
515
|
-
export declare const MaxBoardTaskOrderLength = 64;
|
|
516
|
-
export declare const BoardTaskOrder: z.ZodString;
|
|
517
|
-
export declare const BoardTaskId: z.ZodString;
|
|
518
|
-
export declare const BoardTaskLabel: z.ZodString;
|
|
519
|
-
export declare const BoardTaskDate: z.ZodISODate;
|
|
520
|
-
export declare const BoardTaskDescription: z.ZodString;
|
|
521
|
-
/**
|
|
522
|
-
* The tasks one task waits for (#285), each of them at most once (anchrd/intel#318).
|
|
523
|
-
*
|
|
524
|
-
* ⚠️ Board-internal only, enforced on the write path: a dependency on a task in another board would
|
|
525
|
-
* hang this node on a file that can change without anyone here noticing. Across boards the link is
|
|
526
|
-
* `references`, which points at the board NODE and lands in the link graph.
|
|
527
|
-
*
|
|
528
|
-
* ⚠️ Refused rather than folded together, the same shape as the status ids in `ConfigureBoardInput`.
|
|
529
|
-
* A repeat carries no information — but that is a fact about the value, not about the answer: a
|
|
530
|
-
* caller handed back a shorter list than it sent is told nothing, and composes the same one again.
|
|
531
|
-
* The refusal names the mistake once, and the caller is holding the list it has to fix. (The one
|
|
532
|
-
* place a repeat is folded instead is `upgradeStoredBoard`, where there is no caller to tell.)
|
|
533
|
-
*
|
|
534
|
-
* ⚠️ It sits on the STORED task as well as on the two inputs, so a consumer may rely on it rather
|
|
535
|
-
* than defend against it — `createBoardGraph` mints one edge key per pair, and a second one threw
|
|
536
|
-
* the whole graph view off the screen for everybody looking at that board.
|
|
537
|
-
*/
|
|
538
|
-
export declare const BoardTaskDependsOn: z.ZodArray<z.ZodString>;
|
|
539
|
-
/**
|
|
540
|
-
* A task's labels, each of them at most once (anchrd/intel#318).
|
|
541
|
-
*
|
|
542
|
-
* ⚠️ The same rule the detail panel has always applied to what a person types — it refuses to add a
|
|
543
|
-
* label the task already carries — stated where every surface meets it, because the MCP write path
|
|
544
|
-
* did not. A repeated label draws the same chip twice on the card, with two remove buttons of which
|
|
545
|
-
* either takes both away, and weights that word higher in the search text (`indexing.ts`).
|
|
546
|
-
*/
|
|
547
|
-
export declare const BoardTaskLabels: z.ZodArray<z.ZodString>;
|
|
548
|
-
/**
|
|
549
|
-
* The Intel nodes a task points at, each of them at most once (anchrd/intel#318).
|
|
550
|
-
*
|
|
551
|
-
* They land in the link graph as `text` links, the same way a document's inline links do, so what a
|
|
552
|
-
* board points at is visible from the other side too.
|
|
553
|
-
*
|
|
554
|
-
* ⚠️ Distinct for the same reason as `labels`: the picker in the detail panel already refuses one
|
|
555
|
-
* the task holds, and the link graph counts a repeat once anyway (`ON CONFLICT DO NOTHING`), so a
|
|
556
|
-
* duplicate is a second row in the panel and nothing else — which is exactly the kind of value that
|
|
557
|
-
* has no reading and should not be storable.
|
|
558
|
-
*/
|
|
559
|
-
export declare const BoardTaskReferences: z.ZodArray<z.ZodString>;
|
|
560
|
-
export declare const BoardTask: z.ZodObject<{
|
|
561
|
-
id: z.ZodString;
|
|
562
|
-
title: z.ZodString;
|
|
563
|
-
status: z.ZodString;
|
|
564
|
-
assignee: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
565
|
-
type: z.ZodLiteral<"user">;
|
|
566
|
-
id: z.ZodString;
|
|
567
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
568
|
-
type: z.ZodLiteral<"agent">;
|
|
569
|
-
nodeId: z.ZodString;
|
|
570
|
-
}, z.core.$strict>], "type">>;
|
|
571
|
-
labels: z.ZodArray<z.ZodString>;
|
|
572
|
-
startDate: z.ZodNullable<z.ZodISODate>;
|
|
573
|
-
dueDate: z.ZodNullable<z.ZodISODate>;
|
|
574
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
575
|
-
dependsOn: z.ZodArray<z.ZodString>;
|
|
576
|
-
order: z.ZodString;
|
|
577
|
-
description: z.ZodString;
|
|
578
|
-
references: z.ZodArray<z.ZodString>;
|
|
579
|
-
}, z.core.$strict>;
|
|
580
|
-
export type BoardTask = z.infer<typeof BoardTask>;
|
|
581
|
-
export declare const BoardDocument: z.ZodObject<{
|
|
582
|
-
statuses: z.ZodArray<z.ZodObject<{
|
|
583
|
-
id: z.ZodString;
|
|
584
|
-
label: z.ZodString;
|
|
585
|
-
order: z.ZodNumber;
|
|
586
|
-
terminal: z.ZodBoolean;
|
|
587
|
-
}, z.core.$strict>>;
|
|
588
|
-
tasks: z.ZodArray<z.ZodObject<{
|
|
589
|
-
id: z.ZodString;
|
|
590
|
-
title: z.ZodString;
|
|
591
|
-
status: z.ZodString;
|
|
592
|
-
assignee: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
593
|
-
type: z.ZodLiteral<"user">;
|
|
594
|
-
id: z.ZodString;
|
|
595
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
596
|
-
type: z.ZodLiteral<"agent">;
|
|
597
|
-
nodeId: z.ZodString;
|
|
598
|
-
}, z.core.$strict>], "type">>;
|
|
599
|
-
labels: z.ZodArray<z.ZodString>;
|
|
600
|
-
startDate: z.ZodNullable<z.ZodISODate>;
|
|
601
|
-
dueDate: z.ZodNullable<z.ZodISODate>;
|
|
602
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
603
|
-
dependsOn: z.ZodArray<z.ZodString>;
|
|
604
|
-
order: z.ZodString;
|
|
605
|
-
description: z.ZodString;
|
|
606
|
-
references: z.ZodArray<z.ZodString>;
|
|
607
|
-
}, z.core.$strict>>;
|
|
608
|
-
}, z.core.$strict>;
|
|
609
|
-
export type BoardDocument = z.infer<typeof BoardDocument>;
|
|
610
|
-
export declare const BoardMaxTaskDepth = 5;
|
|
611
|
-
export declare const GetBoardInput: z.ZodObject<{
|
|
612
|
-
nodeId: z.ZodString;
|
|
613
|
-
}, z.core.$strict>;
|
|
614
|
-
export type GetBoardInput = z.infer<typeof GetBoardInput>;
|
|
615
|
-
export declare const NodeBoard: z.ZodObject<{
|
|
616
|
-
node: z.ZodObject<{
|
|
617
|
-
id: z.ZodString;
|
|
618
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
619
|
-
kind: z.ZodEnum<{
|
|
620
|
-
folder: "folder";
|
|
621
|
-
document: "document";
|
|
622
|
-
attachment: "attachment";
|
|
623
|
-
table: "table";
|
|
624
|
-
agent: "agent";
|
|
625
|
-
board: "board";
|
|
626
|
-
}>;
|
|
627
|
-
title: z.ZodString;
|
|
628
|
-
description: z.ZodNullable<z.ZodString>;
|
|
629
|
-
ownerId: z.ZodString;
|
|
630
|
-
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
631
|
-
createdAt: z.ZodISODateTime;
|
|
632
|
-
updatedAt: z.ZodISODateTime;
|
|
633
|
-
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
634
|
-
}, z.core.$strict>;
|
|
635
|
-
board: z.ZodObject<{
|
|
636
|
-
statuses: z.ZodArray<z.ZodObject<{
|
|
637
|
-
id: z.ZodString;
|
|
638
|
-
label: z.ZodString;
|
|
639
|
-
order: z.ZodNumber;
|
|
640
|
-
terminal: z.ZodBoolean;
|
|
641
|
-
}, z.core.$strict>>;
|
|
642
|
-
tasks: z.ZodArray<z.ZodObject<{
|
|
643
|
-
id: z.ZodString;
|
|
644
|
-
title: z.ZodString;
|
|
645
|
-
status: z.ZodString;
|
|
646
|
-
assignee: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
647
|
-
type: z.ZodLiteral<"user">;
|
|
648
|
-
id: z.ZodString;
|
|
649
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
650
|
-
type: z.ZodLiteral<"agent">;
|
|
651
|
-
nodeId: z.ZodString;
|
|
652
|
-
}, z.core.$strict>], "type">>;
|
|
653
|
-
labels: z.ZodArray<z.ZodString>;
|
|
654
|
-
startDate: z.ZodNullable<z.ZodISODate>;
|
|
655
|
-
dueDate: z.ZodNullable<z.ZodISODate>;
|
|
656
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
657
|
-
dependsOn: z.ZodArray<z.ZodString>;
|
|
658
|
-
order: z.ZodString;
|
|
659
|
-
description: z.ZodString;
|
|
660
|
-
references: z.ZodArray<z.ZodString>;
|
|
661
|
-
}, z.core.$strict>>;
|
|
662
|
-
}, z.core.$strict>;
|
|
663
|
-
versionId: z.ZodNullable<z.ZodString>;
|
|
664
|
-
}, z.core.$strict>;
|
|
665
|
-
export type NodeBoard = z.infer<typeof NodeBoard>;
|
|
666
|
-
export declare const BoardStatusInput: z.ZodObject<{
|
|
667
|
-
id: z.ZodString;
|
|
668
|
-
label: z.ZodString;
|
|
669
|
-
terminal: z.ZodOptional<z.ZodBoolean>;
|
|
670
|
-
}, z.core.$strict>;
|
|
671
|
-
export type BoardStatusInput = z.infer<typeof BoardStatusInput>;
|
|
672
|
-
export declare const ConfigureBoardInput: z.ZodObject<{
|
|
673
|
-
nodeId: z.ZodString;
|
|
674
|
-
statuses: z.ZodArray<z.ZodObject<{
|
|
675
|
-
id: z.ZodString;
|
|
676
|
-
label: z.ZodString;
|
|
677
|
-
terminal: z.ZodOptional<z.ZodBoolean>;
|
|
678
|
-
}, z.core.$strict>>;
|
|
679
|
-
idempotencyKey: z.ZodString;
|
|
680
|
-
}, z.core.$strict>;
|
|
681
|
-
export type ConfigureBoardInput = z.infer<typeof ConfigureBoardInput>;
|
|
682
|
-
/**
|
|
683
|
-
* A new task (#285).
|
|
684
|
-
*
|
|
685
|
-
* ⚠️ No `baseVersionId`, on this and on every other task operation, and that absence is the
|
|
686
|
-
* feature. A board is addressed by stable task id and never by position, so two agents touching two
|
|
687
|
-
* different tasks cannot collide — demanding a base version would invent the `version_conflict`
|
|
688
|
-
* that #285 exists to remove, and force every caller to read the whole board first.
|
|
689
|
-
*/
|
|
690
|
-
export declare const AddBoardTaskInput: z.ZodObject<{
|
|
691
|
-
nodeId: z.ZodString;
|
|
692
|
-
title: z.ZodString;
|
|
693
|
-
status: z.ZodOptional<z.ZodString>;
|
|
694
|
-
assignee: z.ZodDefault<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
695
|
-
type: z.ZodLiteral<"user">;
|
|
696
|
-
id: z.ZodString;
|
|
697
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
698
|
-
type: z.ZodLiteral<"agent">;
|
|
699
|
-
nodeId: z.ZodString;
|
|
700
|
-
}, z.core.$strict>], "type">>>;
|
|
701
|
-
labels: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
702
|
-
startDate: z.ZodDefault<z.ZodNullable<z.ZodISODate>>;
|
|
703
|
-
dueDate: z.ZodDefault<z.ZodNullable<z.ZodISODate>>;
|
|
704
|
-
parentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
705
|
-
dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
706
|
-
description: z.ZodDefault<z.ZodString>;
|
|
707
|
-
references: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
708
|
-
afterTaskId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
709
|
-
beforeTaskId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
710
|
-
idempotencyKey: z.ZodString;
|
|
711
|
-
}, z.core.$strict>;
|
|
712
|
-
export type AddBoardTaskInput = z.infer<typeof AddBoardTaskInput>;
|
|
713
|
-
/**
|
|
714
|
-
* What a task says about itself.
|
|
715
|
-
*
|
|
716
|
-
* ⚠️ Deliberately no `status`, no `parentId` and no `order`: where a task SITS is a move, and a
|
|
717
|
-
* move is the operation that has to mint an order key and re-check the two cycle rules. Folding
|
|
718
|
-
* both into one call would mean every field edit pays for those checks and every move could quietly
|
|
719
|
-
* rewrite a description.
|
|
720
|
-
*/
|
|
721
|
-
export declare const UpdateBoardTaskInput: z.ZodObject<{
|
|
722
|
-
nodeId: z.ZodString;
|
|
723
|
-
taskId: z.ZodString;
|
|
724
|
-
title: z.ZodOptional<z.ZodString>;
|
|
725
|
-
assignee: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
726
|
-
type: z.ZodLiteral<"user">;
|
|
727
|
-
id: z.ZodString;
|
|
728
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
729
|
-
type: z.ZodLiteral<"agent">;
|
|
730
|
-
nodeId: z.ZodString;
|
|
731
|
-
}, z.core.$strict>], "type">>>;
|
|
732
|
-
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
733
|
-
startDate: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
|
|
734
|
-
dueDate: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
|
|
735
|
-
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
736
|
-
description: z.ZodOptional<z.ZodString>;
|
|
737
|
-
references: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
738
|
-
idempotencyKey: z.ZodString;
|
|
739
|
-
}, z.core.$strict>;
|
|
740
|
-
export type UpdateBoardTaskInput = z.infer<typeof UpdateBoardTaskInput>;
|
|
741
|
-
export declare const MoveBoardTaskInput: z.ZodObject<{
|
|
742
|
-
nodeId: z.ZodString;
|
|
743
|
-
taskId: z.ZodString;
|
|
744
|
-
status: z.ZodOptional<z.ZodString>;
|
|
745
|
-
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
746
|
-
afterTaskId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
747
|
-
beforeTaskId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
748
|
-
idempotencyKey: z.ZodString;
|
|
749
|
-
}, z.core.$strict>;
|
|
750
|
-
export type MoveBoardTaskInput = z.infer<typeof MoveBoardTaskInput>;
|
|
751
|
-
export declare const DeleteBoardTaskInput: z.ZodObject<{
|
|
752
|
-
nodeId: z.ZodString;
|
|
753
|
-
taskId: z.ZodString;
|
|
754
|
-
idempotencyKey: z.ZodString;
|
|
755
|
-
}, z.core.$strict>;
|
|
756
|
-
export type DeleteBoardTaskInput = z.infer<typeof DeleteBoardTaskInput>;
|
|
757
|
-
/**
|
|
758
|
-
* The way out of a board whose `tasks[]` names one id twice (anchrd/intel#341).
|
|
759
|
-
*
|
|
760
|
-
* ⚠️ It names no task, and that is not an oversight. Such a board holds a pair the caller cannot
|
|
761
|
-
* tell apart — every other operation here addresses a task BY id (#285), so the one thing nobody
|
|
762
|
-
* can say is "the second of the two". The board is what is named, and the server does the one thing
|
|
763
|
-
* that removes the ambiguity: the first entry under an id keeps it, every later one gets a freshly
|
|
764
|
-
* minted id and keeps everything else it carries.
|
|
765
|
-
*
|
|
766
|
-
* ⚠️ It exists because the pair is deliberately NOT folded away on read (`upgradeStoredBoard`,
|
|
767
|
-
* `repeatedBoardId`): two tasks under one id are two whole tasks, and a fold on the read is written
|
|
768
|
-
* back by the next save of any kind. So somebody has to ask for the repair, and this is the asking.
|
|
769
|
-
*/
|
|
770
|
-
export declare const RepairBoardTaskIdsInput: z.ZodObject<{
|
|
771
|
-
nodeId: z.ZodString;
|
|
772
|
-
idempotencyKey: z.ZodString;
|
|
773
|
-
}, z.core.$strict>;
|
|
774
|
-
export type RepairBoardTaskIdsInput = z.infer<typeof RepairBoardTaskIdsInput>;
|
|
775
|
-
export declare const BoardTaskResult: z.ZodObject<{
|
|
776
|
-
node: z.ZodObject<{
|
|
777
|
-
id: z.ZodString;
|
|
778
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
779
|
-
kind: z.ZodEnum<{
|
|
780
|
-
folder: "folder";
|
|
781
|
-
document: "document";
|
|
782
|
-
attachment: "attachment";
|
|
783
|
-
table: "table";
|
|
784
|
-
agent: "agent";
|
|
785
|
-
board: "board";
|
|
786
|
-
}>;
|
|
787
|
-
title: z.ZodString;
|
|
788
|
-
description: z.ZodNullable<z.ZodString>;
|
|
789
|
-
ownerId: z.ZodString;
|
|
790
|
-
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
791
|
-
createdAt: z.ZodISODateTime;
|
|
792
|
-
updatedAt: z.ZodISODateTime;
|
|
793
|
-
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
794
|
-
}, z.core.$strict>;
|
|
795
|
-
version: z.ZodObject<{
|
|
796
|
-
id: z.ZodString;
|
|
797
|
-
nodeId: z.ZodString;
|
|
798
|
-
sequence: z.ZodNumber;
|
|
799
|
-
contentKey: z.ZodString;
|
|
800
|
-
mediaType: z.ZodString;
|
|
801
|
-
contentHash: z.ZodString;
|
|
802
|
-
size: z.ZodNumber;
|
|
803
|
-
segment: z.ZodNullable<z.ZodEnum<{
|
|
804
|
-
append: "append";
|
|
805
|
-
snapshot: "snapshot";
|
|
806
|
-
}>>;
|
|
807
|
-
createdBy: z.ZodString;
|
|
808
|
-
createdAt: z.ZodISODateTime;
|
|
809
|
-
}, z.core.$strict>;
|
|
810
|
-
task: z.ZodObject<{
|
|
811
|
-
id: z.ZodString;
|
|
812
|
-
title: z.ZodString;
|
|
813
|
-
status: z.ZodString;
|
|
814
|
-
assignee: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
815
|
-
type: z.ZodLiteral<"user">;
|
|
816
|
-
id: z.ZodString;
|
|
817
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
818
|
-
type: z.ZodLiteral<"agent">;
|
|
819
|
-
nodeId: z.ZodString;
|
|
820
|
-
}, z.core.$strict>], "type">>;
|
|
821
|
-
labels: z.ZodArray<z.ZodString>;
|
|
822
|
-
startDate: z.ZodNullable<z.ZodISODate>;
|
|
823
|
-
dueDate: z.ZodNullable<z.ZodISODate>;
|
|
824
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
825
|
-
dependsOn: z.ZodArray<z.ZodString>;
|
|
826
|
-
order: z.ZodString;
|
|
827
|
-
description: z.ZodString;
|
|
828
|
-
references: z.ZodArray<z.ZodString>;
|
|
829
|
-
}, z.core.$strict>;
|
|
830
|
-
}, z.core.$strict>;
|
|
831
|
-
export type BoardTaskResult = z.infer<typeof BoardTaskResult>;
|
|
832
|
-
export declare const DeleteBoardTaskResult: z.ZodObject<{
|
|
833
|
-
node: z.ZodObject<{
|
|
834
|
-
id: z.ZodString;
|
|
835
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
836
|
-
kind: z.ZodEnum<{
|
|
837
|
-
folder: "folder";
|
|
838
|
-
document: "document";
|
|
839
|
-
attachment: "attachment";
|
|
840
|
-
table: "table";
|
|
841
|
-
agent: "agent";
|
|
842
|
-
board: "board";
|
|
843
|
-
}>;
|
|
844
|
-
title: z.ZodString;
|
|
845
|
-
description: z.ZodNullable<z.ZodString>;
|
|
846
|
-
ownerId: z.ZodString;
|
|
847
|
-
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
848
|
-
createdAt: z.ZodISODateTime;
|
|
849
|
-
updatedAt: z.ZodISODateTime;
|
|
850
|
-
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
851
|
-
}, z.core.$strict>;
|
|
852
|
-
version: z.ZodObject<{
|
|
853
|
-
id: z.ZodString;
|
|
854
|
-
nodeId: z.ZodString;
|
|
855
|
-
sequence: z.ZodNumber;
|
|
856
|
-
contentKey: z.ZodString;
|
|
857
|
-
mediaType: z.ZodString;
|
|
858
|
-
contentHash: z.ZodString;
|
|
859
|
-
size: z.ZodNumber;
|
|
860
|
-
segment: z.ZodNullable<z.ZodEnum<{
|
|
861
|
-
append: "append";
|
|
862
|
-
snapshot: "snapshot";
|
|
863
|
-
}>>;
|
|
864
|
-
createdBy: z.ZodString;
|
|
865
|
-
createdAt: z.ZodISODateTime;
|
|
866
|
-
}, z.core.$strict>;
|
|
867
|
-
deleted: z.ZodNumber;
|
|
868
|
-
}, z.core.$strict>;
|
|
869
|
-
export type DeleteBoardTaskResult = z.infer<typeof DeleteBoardTaskResult>;
|
|
870
|
-
export declare const ConfigureBoardResult: z.ZodObject<{
|
|
871
|
-
node: z.ZodObject<{
|
|
872
|
-
id: z.ZodString;
|
|
873
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
874
|
-
kind: z.ZodEnum<{
|
|
875
|
-
folder: "folder";
|
|
876
|
-
document: "document";
|
|
877
|
-
attachment: "attachment";
|
|
878
|
-
table: "table";
|
|
879
|
-
agent: "agent";
|
|
880
|
-
board: "board";
|
|
881
|
-
}>;
|
|
882
|
-
title: z.ZodString;
|
|
883
|
-
description: z.ZodNullable<z.ZodString>;
|
|
884
|
-
ownerId: z.ZodString;
|
|
885
|
-
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
886
|
-
createdAt: z.ZodISODateTime;
|
|
887
|
-
updatedAt: z.ZodISODateTime;
|
|
888
|
-
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
889
|
-
}, z.core.$strict>;
|
|
890
|
-
version: z.ZodObject<{
|
|
891
|
-
id: z.ZodString;
|
|
892
|
-
nodeId: z.ZodString;
|
|
893
|
-
sequence: z.ZodNumber;
|
|
894
|
-
contentKey: z.ZodString;
|
|
895
|
-
mediaType: z.ZodString;
|
|
896
|
-
contentHash: z.ZodString;
|
|
897
|
-
size: z.ZodNumber;
|
|
898
|
-
segment: z.ZodNullable<z.ZodEnum<{
|
|
899
|
-
append: "append";
|
|
900
|
-
snapshot: "snapshot";
|
|
901
|
-
}>>;
|
|
902
|
-
createdBy: z.ZodString;
|
|
903
|
-
createdAt: z.ZodISODateTime;
|
|
904
|
-
}, z.core.$strict>;
|
|
905
|
-
statuses: z.ZodArray<z.ZodObject<{
|
|
906
|
-
id: z.ZodString;
|
|
907
|
-
label: z.ZodString;
|
|
908
|
-
order: z.ZodNumber;
|
|
909
|
-
terminal: z.ZodBoolean;
|
|
910
|
-
}, z.core.$strict>>;
|
|
911
|
-
}, z.core.$strict>;
|
|
912
|
-
export type ConfigureBoardResult = z.infer<typeof ConfigureBoardResult>;
|
|
913
|
-
/**
|
|
914
|
-
* What the repair did, task by task (anchrd/intel#341).
|
|
915
|
-
*
|
|
916
|
-
* ⚠️ `previousId` is the id the entry shared, and it still names a task on this board — the FIRST
|
|
917
|
-
* entry under it, the one that kept it. That is what makes the repair readable: nothing that
|
|
918
|
-
* pointed at that id moved, so a caller can see which of the two the board's `parentId` and
|
|
919
|
-
* `dependsOn` edges have been meaning all along, and move them with `board_task_move` and
|
|
920
|
-
* `board_task_update` if they meant the other one.
|
|
921
|
-
*
|
|
922
|
-
* ⚠️ At least one entry, because a board with nothing to repair is refused rather than answered
|
|
923
|
-
* with an empty list and a new version that changed nothing.
|
|
924
|
-
*/
|
|
925
|
-
export declare const RepairBoardTaskIdsResult: z.ZodObject<{
|
|
302
|
+
export declare const AppendTableRowsResult: z.ZodObject<{
|
|
926
303
|
node: z.ZodObject<{
|
|
927
304
|
id: z.ZodString;
|
|
928
305
|
parentId: z.ZodNullable<z.ZodString>;
|
|
@@ -931,8 +308,6 @@ export declare const RepairBoardTaskIdsResult: z.ZodObject<{
|
|
|
931
308
|
document: "document";
|
|
932
309
|
attachment: "attachment";
|
|
933
310
|
table: "table";
|
|
934
|
-
agent: "agent";
|
|
935
|
-
board: "board";
|
|
936
311
|
}>;
|
|
937
312
|
title: z.ZodString;
|
|
938
313
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -957,440 +332,21 @@ export declare const RepairBoardTaskIdsResult: z.ZodObject<{
|
|
|
957
332
|
createdBy: z.ZodString;
|
|
958
333
|
createdAt: z.ZodISODateTime;
|
|
959
334
|
}, z.core.$strict>;
|
|
960
|
-
|
|
961
|
-
previousId: z.ZodString;
|
|
962
|
-
task: z.ZodObject<{
|
|
963
|
-
id: z.ZodString;
|
|
964
|
-
title: z.ZodString;
|
|
965
|
-
status: z.ZodString;
|
|
966
|
-
assignee: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
967
|
-
type: z.ZodLiteral<"user">;
|
|
968
|
-
id: z.ZodString;
|
|
969
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
970
|
-
type: z.ZodLiteral<"agent">;
|
|
971
|
-
nodeId: z.ZodString;
|
|
972
|
-
}, z.core.$strict>], "type">>;
|
|
973
|
-
labels: z.ZodArray<z.ZodString>;
|
|
974
|
-
startDate: z.ZodNullable<z.ZodISODate>;
|
|
975
|
-
dueDate: z.ZodNullable<z.ZodISODate>;
|
|
976
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
977
|
-
dependsOn: z.ZodArray<z.ZodString>;
|
|
978
|
-
order: z.ZodString;
|
|
979
|
-
description: z.ZodString;
|
|
980
|
-
references: z.ZodArray<z.ZodString>;
|
|
981
|
-
}, z.core.$strict>;
|
|
982
|
-
}, z.core.$strict>>;
|
|
983
|
-
}, z.core.$strict>;
|
|
984
|
-
export type RepairBoardTaskIdsResult = z.infer<typeof RepairBoardTaskIdsResult>;
|
|
985
|
-
export declare const AgentMediaType = "application/vnd.anchrd.agent+json";
|
|
986
|
-
export declare const AgentReferenceRole: z.ZodEnum<{
|
|
987
|
-
"system-message": "system-message";
|
|
988
|
-
"semantic-context": "semantic-context";
|
|
989
|
-
memory: "memory";
|
|
990
|
-
}>;
|
|
991
|
-
export type AgentReferenceRole = z.infer<typeof AgentReferenceRole>;
|
|
992
|
-
export declare const AgentReference: z.ZodObject<{
|
|
993
|
-
nodeId: z.ZodString;
|
|
994
|
-
role: z.ZodEnum<{
|
|
995
|
-
"system-message": "system-message";
|
|
996
|
-
"semantic-context": "semantic-context";
|
|
997
|
-
memory: "memory";
|
|
998
|
-
}>;
|
|
999
|
-
}, z.core.$strict>;
|
|
1000
|
-
export type AgentReference = z.infer<typeof AgentReference>;
|
|
1001
|
-
/**
|
|
1002
|
-
* Which kinds of node each role can actually be given (#255).
|
|
1003
|
-
*
|
|
1004
|
-
* ⚠️ Not every role takes every kind, and the reasons are about what the runtime DOES with a
|
|
1005
|
-
* reference rather than about tidiness:
|
|
1006
|
-
*
|
|
1007
|
-
* `memory` is a folder because the agent WRITES there — `agent_remember` creates a note inside
|
|
1008
|
-
* it. A single document as memory would mean the agent overwrites the document it was given.
|
|
1009
|
-
*
|
|
1010
|
-
* `semantic-context` is a folder because it is a search SPACE, searched per folder by
|
|
1011
|
-
* `loop/scoped-search`. A single document is not a narrower search space; reading it whole is a
|
|
1012
|
-
* different behaviour, and one that gets named before it is introduced, not slipped in.
|
|
1013
|
-
*
|
|
1014
|
-
* `system-message` reads single nodes already and takes a document or a table as well as a
|
|
1015
|
-
* folder. A document is the natural case — a skill somebody wrote as ordinary text — and a table
|
|
1016
|
-
* is the same read: the runtime asks intel for the node and prepends its content, which for a
|
|
1017
|
-
* table is its CSV.
|
|
1018
|
-
*
|
|
1019
|
-
* ⚠️ `folder` stays on `system-message` although a folder carries no content of its own. Every
|
|
1020
|
-
* definition written before #255 could only name folders, and taking the combination away here
|
|
1021
|
-
* would refuse the next save of an agent that has been working for months — "existing definitions
|
|
1022
|
-
* stay valid" is not only about reading them.
|
|
1023
|
-
*
|
|
1024
|
-
* ⚠️ This is the ONE place the rule lives. The screen offers what it says and the write path
|
|
1025
|
-
* refuses what it forbids; a surface that made its own list would eventually disagree with the
|
|
1026
|
-
* other, and the one that matters is whichever runs last.
|
|
1027
|
-
*/
|
|
1028
|
-
export declare const AgentReferenceKinds: {
|
|
1029
|
-
readonly "system-message": readonly ["folder", "document", "table"];
|
|
1030
|
-
readonly "semantic-context": readonly ["folder"];
|
|
1031
|
-
readonly memory: readonly ["folder"];
|
|
1032
|
-
};
|
|
1033
|
-
export declare function agentReferenceAccepts(role: AgentReferenceRole, kind: NodeKind): boolean;
|
|
1034
|
-
/** The roles a node of this kind may be given — the same rule, read from the other side. */
|
|
1035
|
-
export declare function agentReferenceRolesFor(kind: NodeKind): AgentReferenceRole[];
|
|
1036
|
-
export declare const AgentScheduleTarget: z.ZodObject<{
|
|
1037
|
-
kind: z.ZodEnum<{
|
|
1038
|
-
document: "document";
|
|
1039
|
-
flow: "flow";
|
|
1040
|
-
}>;
|
|
1041
|
-
id: z.ZodString;
|
|
1042
|
-
}, z.core.$strict>;
|
|
1043
|
-
export type AgentScheduleTarget = z.infer<typeof AgentScheduleTarget>;
|
|
1044
|
-
export declare const AgentSchedule: z.ZodObject<{
|
|
1045
|
-
cron: z.ZodString;
|
|
1046
|
-
timezone: z.ZodDefault<z.ZodString>;
|
|
1047
|
-
target: z.ZodObject<{
|
|
1048
|
-
kind: z.ZodEnum<{
|
|
1049
|
-
document: "document";
|
|
1050
|
-
flow: "flow";
|
|
1051
|
-
}>;
|
|
1052
|
-
id: z.ZodString;
|
|
1053
|
-
}, z.core.$strict>;
|
|
1054
|
-
}, z.core.$strict>;
|
|
1055
|
-
export type AgentSchedule = z.infer<typeof AgentSchedule>;
|
|
1056
|
-
export declare const AgentModel: z.ZodObject<{
|
|
1057
|
-
provider: z.ZodEnum<{
|
|
1058
|
-
"workers-ai": "workers-ai";
|
|
1059
|
-
anthropic: "anthropic";
|
|
1060
|
-
}>;
|
|
1061
|
-
model: z.ZodString;
|
|
1062
|
-
}, z.core.$strict>;
|
|
1063
|
-
export type AgentModel = z.infer<typeof AgentModel>;
|
|
1064
|
-
/**
|
|
1065
|
-
* One MCP server as the portal names it. The handle is what the portal puts in front of every tool
|
|
1066
|
-
* that server offers (`notion_notion-search` belongs to `notion`), and it is the only identifier
|
|
1067
|
-
* Intel can both store and recognise again in a live `tools/list`.
|
|
1068
|
-
*
|
|
1069
|
-
* ⚠️ A handle is never invented from a tool name. Which servers exist is the portal's answer
|
|
1070
|
-
* (`portal_list_servers`), and the prefix is only used to attribute a tool to a server that answer
|
|
1071
|
-
* already named — see `packages/api/src/tools/tool-servers` for why splitting on the underscore
|
|
1072
|
-
* alone would be ambiguous.
|
|
1073
|
-
*/
|
|
1074
|
-
export declare const ToolServerHandle: z.ZodString;
|
|
1075
|
-
export type ToolServerHandle = z.infer<typeof ToolServerHandle>;
|
|
1076
|
-
/**
|
|
1077
|
-
* What a caller may ASK for: whole MCP servers, and nothing about who delegates them (D30).
|
|
1078
|
-
*
|
|
1079
|
-
* ⚠️ The absence of `delegatedBy` is the point, and it is why the write shape differs from the read
|
|
1080
|
-
* shape at all. Intel writes that field from the session it authorized; a caller who could name
|
|
1081
|
-
* somebody else would be handing an agent a portal connection they do not have, and the agent would
|
|
1082
|
-
* act on it unattended. Leaving the field out of the input makes that structural instead of a
|
|
1083
|
-
* runtime overwrite: a body carrying it is a parse error at the boundary, on every surface, and no
|
|
1084
|
-
* screen ever has to invent a value it has no business knowing.
|
|
1085
|
-
*/
|
|
1086
|
-
export declare const AgentToolSelection: z.ZodObject<{
|
|
1087
|
-
servers: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1088
|
-
}, z.core.$strict>;
|
|
1089
|
-
export type AgentToolSelection = z.infer<typeof AgentToolSelection>;
|
|
1090
|
-
/**
|
|
1091
|
-
* What is STORED and read back: the selection plus whose portal connection it came from (D30).
|
|
1092
|
-
*
|
|
1093
|
-
* ⚠️ This is a selection, not a permission. Nothing here grants anything: whether a server is
|
|
1094
|
-
* reachable is still decided by one live `tools/list` with `delegatedBy`'s own portal token, so a
|
|
1095
|
-
* delegator who loses the server or the connection takes it away from the agent at the next run
|
|
1096
|
-
* with no edit to this document.
|
|
1097
|
-
*
|
|
1098
|
-
* ⚠️ Read shape only. It appears in `AgentDefinition` and never in an input — see
|
|
1099
|
-
* `AgentToolSelection` for why the two are deliberately different documents rather than one schema
|
|
1100
|
-
* with an optional field.
|
|
1101
|
-
*/
|
|
1102
|
-
export declare const AgentToolDelegation: z.ZodObject<{
|
|
1103
|
-
delegatedBy: z.ZodString;
|
|
1104
|
-
servers: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1105
|
-
}, z.core.$strict>;
|
|
1106
|
-
export type AgentToolDelegation = z.infer<typeof AgentToolDelegation>;
|
|
1107
|
-
export declare const AgentDefinition: z.ZodObject<{
|
|
1108
|
-
tools: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1109
|
-
delegatedBy: z.ZodString;
|
|
1110
|
-
servers: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1111
|
-
}, z.core.$strict>>>;
|
|
1112
|
-
references: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1113
|
-
nodeId: z.ZodString;
|
|
1114
|
-
role: z.ZodEnum<{
|
|
1115
|
-
"system-message": "system-message";
|
|
1116
|
-
"semantic-context": "semantic-context";
|
|
1117
|
-
memory: "memory";
|
|
1118
|
-
}>;
|
|
1119
|
-
}, z.core.$strict>>>;
|
|
1120
|
-
schedules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1121
|
-
cron: z.ZodString;
|
|
1122
|
-
timezone: z.ZodDefault<z.ZodString>;
|
|
1123
|
-
target: z.ZodObject<{
|
|
1124
|
-
kind: z.ZodEnum<{
|
|
1125
|
-
document: "document";
|
|
1126
|
-
flow: "flow";
|
|
1127
|
-
}>;
|
|
1128
|
-
id: z.ZodString;
|
|
1129
|
-
}, z.core.$strict>;
|
|
1130
|
-
}, z.core.$strict>>>;
|
|
1131
|
-
model: z.ZodObject<{
|
|
1132
|
-
provider: z.ZodEnum<{
|
|
1133
|
-
"workers-ai": "workers-ai";
|
|
1134
|
-
anthropic: "anthropic";
|
|
1135
|
-
}>;
|
|
1136
|
-
model: z.ZodString;
|
|
1137
|
-
}, z.core.$strict>;
|
|
1138
|
-
}, z.core.$strict>;
|
|
1139
|
-
export type AgentDefinition = z.infer<typeof AgentDefinition>;
|
|
1140
|
-
/**
|
|
1141
|
-
* The same document as `AgentDefinition`, minus the one field a caller may not write.
|
|
1142
|
-
*
|
|
1143
|
-
* ⚠️ Two schemas rather than one, and the split is load-bearing (#208, D30). Everything an agent IS
|
|
1144
|
-
* comes from whoever edits it; **whose portal connection it acts on** does not, because that is an
|
|
1145
|
-
* authority the editor would be granting to themselves. So the write shape simply has no place to
|
|
1146
|
-
* put it: `{ tools: { servers: [...] } }` is what a screen or an MCP client sends, Intel adds
|
|
1147
|
-
* `delegatedBy` from the session, and a body that tries to name one is refused by the strict object
|
|
1148
|
-
* before any of it is read. The reading shape keeps the field because a reader must be able to see
|
|
1149
|
-
* whose connection an agent runs on.
|
|
1150
|
-
*/
|
|
1151
|
-
export declare const AgentDefinitionInput: z.ZodObject<{
|
|
1152
|
-
tools: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1153
|
-
servers: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1154
|
-
}, z.core.$strict>>>;
|
|
1155
|
-
references: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1156
|
-
nodeId: z.ZodString;
|
|
1157
|
-
role: z.ZodEnum<{
|
|
1158
|
-
"system-message": "system-message";
|
|
1159
|
-
"semantic-context": "semantic-context";
|
|
1160
|
-
memory: "memory";
|
|
1161
|
-
}>;
|
|
1162
|
-
}, z.core.$strict>>>;
|
|
1163
|
-
schedules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1164
|
-
cron: z.ZodString;
|
|
1165
|
-
timezone: z.ZodDefault<z.ZodString>;
|
|
1166
|
-
target: z.ZodObject<{
|
|
1167
|
-
kind: z.ZodEnum<{
|
|
1168
|
-
document: "document";
|
|
1169
|
-
flow: "flow";
|
|
1170
|
-
}>;
|
|
1171
|
-
id: z.ZodString;
|
|
1172
|
-
}, z.core.$strict>;
|
|
1173
|
-
}, z.core.$strict>>>;
|
|
1174
|
-
model: z.ZodObject<{
|
|
1175
|
-
provider: z.ZodEnum<{
|
|
1176
|
-
"workers-ai": "workers-ai";
|
|
1177
|
-
anthropic: "anthropic";
|
|
1178
|
-
}>;
|
|
1179
|
-
model: z.ZodString;
|
|
1180
|
-
}, z.core.$strict>;
|
|
1181
|
-
}, z.core.$strict>;
|
|
1182
|
-
export type AgentDefinitionInput = z.infer<typeof AgentDefinitionInput>;
|
|
1183
|
-
export declare const SaveAgentDefinitionInput: z.ZodObject<{
|
|
1184
|
-
nodeId: z.ZodString;
|
|
1185
|
-
baseVersionId: z.ZodNullable<z.ZodString>;
|
|
1186
|
-
definition: z.ZodObject<{
|
|
1187
|
-
tools: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1188
|
-
servers: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1189
|
-
}, z.core.$strict>>>;
|
|
1190
|
-
references: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1191
|
-
nodeId: z.ZodString;
|
|
1192
|
-
role: z.ZodEnum<{
|
|
1193
|
-
"system-message": "system-message";
|
|
1194
|
-
"semantic-context": "semantic-context";
|
|
1195
|
-
memory: "memory";
|
|
1196
|
-
}>;
|
|
1197
|
-
}, z.core.$strict>>>;
|
|
1198
|
-
schedules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1199
|
-
cron: z.ZodString;
|
|
1200
|
-
timezone: z.ZodDefault<z.ZodString>;
|
|
1201
|
-
target: z.ZodObject<{
|
|
1202
|
-
kind: z.ZodEnum<{
|
|
1203
|
-
document: "document";
|
|
1204
|
-
flow: "flow";
|
|
1205
|
-
}>;
|
|
1206
|
-
id: z.ZodString;
|
|
1207
|
-
}, z.core.$strict>;
|
|
1208
|
-
}, z.core.$strict>>>;
|
|
1209
|
-
model: z.ZodObject<{
|
|
1210
|
-
provider: z.ZodEnum<{
|
|
1211
|
-
"workers-ai": "workers-ai";
|
|
1212
|
-
anthropic: "anthropic";
|
|
1213
|
-
}>;
|
|
1214
|
-
model: z.ZodString;
|
|
1215
|
-
}, z.core.$strict>;
|
|
1216
|
-
}, z.core.$strict>;
|
|
1217
|
-
idempotencyKey: z.ZodString;
|
|
1218
|
-
}, z.core.$strict>;
|
|
1219
|
-
export type SaveAgentDefinitionInput = z.infer<typeof SaveAgentDefinitionInput>;
|
|
1220
|
-
export declare const GetAgentInput: z.ZodObject<{
|
|
1221
|
-
nodeId: z.ZodString;
|
|
1222
|
-
}, z.core.$strict>;
|
|
1223
|
-
export type GetAgentInput = z.infer<typeof GetAgentInput>;
|
|
1224
|
-
export declare const PauseAgentInput: z.ZodObject<{
|
|
1225
|
-
nodeId: z.ZodString;
|
|
335
|
+
appended: z.ZodNumber;
|
|
1226
336
|
}, z.core.$strict>;
|
|
1227
|
-
export type
|
|
1228
|
-
export declare const
|
|
337
|
+
export type AppendTableRowsResult = z.infer<typeof AppendTableRowsResult>;
|
|
338
|
+
export declare const TableRowPosition: z.ZodNumber;
|
|
339
|
+
export declare const UpdateTableRowsInput: z.ZodObject<{
|
|
1229
340
|
nodeId: z.ZodString;
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
}>;
|
|
1235
|
-
id: z.ZodString;
|
|
1236
|
-
}, z.core.$strict>;
|
|
1237
|
-
}, z.core.$strict>;
|
|
1238
|
-
export type RunAgentNowInput = z.infer<typeof RunAgentNowInput>;
|
|
1239
|
-
/**
|
|
1240
|
-
* What one agent has actually cost, read out of Cloudflare's AI Gateway log (#251).
|
|
1241
|
-
*
|
|
1242
|
-
* ⚠️ Intel computes none of this from tokens and a price table. The gateway publishes the billed
|
|
1243
|
-
* figure per call, and that figure is the debit from the Cloudflare balance 1:1 — Cloudflare takes
|
|
1244
|
-
* its 5 % when the balance is loaded and passes inference through unchanged (measured 2026-08-07).
|
|
1245
|
-
* A second, self-maintained answer beside it would be wrong on the day the two disagreed, and the
|
|
1246
|
-
* wrong one would be the one on screen.
|
|
1247
|
-
*
|
|
1248
|
-
* ⚠️ `status` travels with the numbers and may never be dropped. `runs: []` means "cost nothing"
|
|
1249
|
-
* only when `status` is `read`; under `not_configured` or `unreadable` it means "not known", and a
|
|
1250
|
-
* screen that renders the two alike reports an outage as a saving.
|
|
1251
|
-
*/
|
|
1252
|
-
export declare const AgentCostStatus: z.ZodEnum<{
|
|
1253
|
-
read: "read";
|
|
1254
|
-
not_configured: "not_configured";
|
|
1255
|
-
unreadable: "unreadable";
|
|
1256
|
-
}>;
|
|
1257
|
-
export type AgentCostStatus = z.infer<typeof AgentCostStatus>;
|
|
1258
|
-
export declare const AgentRunCost: z.ZodObject<{
|
|
1259
|
-
runId: z.ZodString;
|
|
1260
|
-
cost: z.ZodNumber;
|
|
1261
|
-
calls: z.ZodNumber;
|
|
1262
|
-
}, z.core.$strict>;
|
|
1263
|
-
export type AgentRunCost = z.infer<typeof AgentRunCost>;
|
|
1264
|
-
export declare const AgentCostWindow: z.ZodObject<{
|
|
1265
|
-
days: z.ZodNumber;
|
|
1266
|
-
cost: z.ZodNumber;
|
|
1267
|
-
calls: z.ZodNumber;
|
|
1268
|
-
models: z.ZodArray<z.ZodString>;
|
|
1269
|
-
}, z.core.$strict>;
|
|
1270
|
-
export type AgentCostWindow = z.infer<typeof AgentCostWindow>;
|
|
1271
|
-
export declare const AgentCosts: z.ZodObject<{
|
|
1272
|
-
status: z.ZodEnum<{
|
|
1273
|
-
read: "read";
|
|
1274
|
-
not_configured: "not_configured";
|
|
1275
|
-
unreadable: "unreadable";
|
|
1276
|
-
}>;
|
|
1277
|
-
currency: z.ZodLiteral<"USD">;
|
|
1278
|
-
runs: z.ZodArray<z.ZodObject<{
|
|
1279
|
-
runId: z.ZodString;
|
|
1280
|
-
cost: z.ZodNumber;
|
|
1281
|
-
calls: z.ZodNumber;
|
|
1282
|
-
}, z.core.$strict>>;
|
|
1283
|
-
windows: z.ZodArray<z.ZodObject<{
|
|
1284
|
-
days: z.ZodNumber;
|
|
1285
|
-
cost: z.ZodNumber;
|
|
1286
|
-
calls: z.ZodNumber;
|
|
1287
|
-
models: z.ZodArray<z.ZodString>;
|
|
1288
|
-
}, z.core.$strict>>;
|
|
1289
|
-
partial: z.ZodBoolean;
|
|
1290
|
-
}, z.core.$strict>;
|
|
1291
|
-
export type AgentCosts = z.infer<typeof AgentCosts>;
|
|
1292
|
-
/**
|
|
1293
|
-
* What the models on offer cost and how much they hold (#257).
|
|
1294
|
-
*
|
|
1295
|
-
* ⚠️ `source` is per ENTRY and not per response, and that is not over-engineering. Cloudflare
|
|
1296
|
-
* publishes figures for the models it serves itself and none at all for the Anthropic models it
|
|
1297
|
-
* resells through Unified Billing — so a perfectly healthy read still leaves half the list on a
|
|
1298
|
-
* written-out table, and one flag for the whole answer would call either the read stale or the
|
|
1299
|
-
* table live.
|
|
1300
|
-
*/
|
|
1301
|
-
export declare const ModelPrice: z.ZodObject<{
|
|
1302
|
-
inputPerMillion: z.ZodNumber;
|
|
1303
|
-
outputPerMillion: z.ZodNumber;
|
|
1304
|
-
}, z.core.$strict>;
|
|
1305
|
-
export type ModelPrice = z.infer<typeof ModelPrice>;
|
|
1306
|
-
export declare const ModelCatalogEntry: z.ZodObject<{
|
|
1307
|
-
provider: z.ZodEnum<{
|
|
1308
|
-
"workers-ai": "workers-ai";
|
|
1309
|
-
anthropic: "anthropic";
|
|
1310
|
-
}>;
|
|
1311
|
-
model: z.ZodString;
|
|
1312
|
-
name: z.ZodString;
|
|
1313
|
-
contextTokens: z.ZodNullable<z.ZodNumber>;
|
|
1314
|
-
price: z.ZodNullable<z.ZodObject<{
|
|
1315
|
-
inputPerMillion: z.ZodNumber;
|
|
1316
|
-
outputPerMillion: z.ZodNumber;
|
|
1317
|
-
}, z.core.$strict>>;
|
|
1318
|
-
source: z.ZodEnum<{
|
|
1319
|
-
cloudflare: "cloudflare";
|
|
1320
|
-
builtin: "builtin";
|
|
1321
|
-
}>;
|
|
1322
|
-
}, z.core.$strict>;
|
|
1323
|
-
export type ModelCatalogEntry = z.infer<typeof ModelCatalogEntry>;
|
|
1324
|
-
export declare const ModelCatalog: z.ZodObject<{
|
|
1325
|
-
entries: z.ZodArray<z.ZodObject<{
|
|
1326
|
-
provider: z.ZodEnum<{
|
|
1327
|
-
"workers-ai": "workers-ai";
|
|
1328
|
-
anthropic: "anthropic";
|
|
1329
|
-
}>;
|
|
1330
|
-
model: z.ZodString;
|
|
1331
|
-
name: z.ZodString;
|
|
1332
|
-
contextTokens: z.ZodNullable<z.ZodNumber>;
|
|
1333
|
-
price: z.ZodNullable<z.ZodObject<{
|
|
1334
|
-
inputPerMillion: z.ZodNumber;
|
|
1335
|
-
outputPerMillion: z.ZodNumber;
|
|
1336
|
-
}, z.core.$strict>>;
|
|
1337
|
-
source: z.ZodEnum<{
|
|
1338
|
-
cloudflare: "cloudflare";
|
|
1339
|
-
builtin: "builtin";
|
|
1340
|
-
}>;
|
|
341
|
+
baseVersionId: z.ZodString;
|
|
342
|
+
updates: z.ZodArray<z.ZodObject<{
|
|
343
|
+
position: z.ZodNumber;
|
|
344
|
+
row: z.ZodArray<z.ZodString>;
|
|
1341
345
|
}, z.core.$strict>>;
|
|
1342
|
-
liveStatus: z.ZodEnum<{
|
|
1343
|
-
read: "read";
|
|
1344
|
-
not_configured: "not_configured";
|
|
1345
|
-
unreadable: "unreadable";
|
|
1346
|
-
}>;
|
|
1347
|
-
}, z.core.$strict>;
|
|
1348
|
-
export type ModelCatalog = z.infer<typeof ModelCatalog>;
|
|
1349
|
-
export declare const ListAgentsInput: z.ZodObject<{
|
|
1350
|
-
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1351
|
-
includeArchived: z.ZodDefault<z.ZodBoolean>;
|
|
1352
|
-
}, z.core.$strict>;
|
|
1353
|
-
export type ListAgentsInput = z.infer<typeof ListAgentsInput>;
|
|
1354
|
-
export declare const CreateAgentInput: z.ZodObject<{
|
|
1355
|
-
parentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1356
|
-
title: z.ZodString;
|
|
1357
|
-
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1358
|
-
definition: z.ZodObject<{
|
|
1359
|
-
tools: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1360
|
-
servers: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1361
|
-
}, z.core.$strict>>>;
|
|
1362
|
-
references: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1363
|
-
nodeId: z.ZodString;
|
|
1364
|
-
role: z.ZodEnum<{
|
|
1365
|
-
"system-message": "system-message";
|
|
1366
|
-
"semantic-context": "semantic-context";
|
|
1367
|
-
memory: "memory";
|
|
1368
|
-
}>;
|
|
1369
|
-
}, z.core.$strict>>>;
|
|
1370
|
-
schedules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1371
|
-
cron: z.ZodString;
|
|
1372
|
-
timezone: z.ZodDefault<z.ZodString>;
|
|
1373
|
-
target: z.ZodObject<{
|
|
1374
|
-
kind: z.ZodEnum<{
|
|
1375
|
-
document: "document";
|
|
1376
|
-
flow: "flow";
|
|
1377
|
-
}>;
|
|
1378
|
-
id: z.ZodString;
|
|
1379
|
-
}, z.core.$strict>;
|
|
1380
|
-
}, z.core.$strict>>>;
|
|
1381
|
-
model: z.ZodObject<{
|
|
1382
|
-
provider: z.ZodEnum<{
|
|
1383
|
-
"workers-ai": "workers-ai";
|
|
1384
|
-
anthropic: "anthropic";
|
|
1385
|
-
}>;
|
|
1386
|
-
model: z.ZodString;
|
|
1387
|
-
}, z.core.$strict>;
|
|
1388
|
-
}, z.core.$strict>;
|
|
1389
346
|
idempotencyKey: z.ZodString;
|
|
1390
347
|
}, z.core.$strict>;
|
|
1391
|
-
export type
|
|
1392
|
-
export declare const
|
|
1393
|
-
export declare const NodeAgent: z.ZodObject<{
|
|
348
|
+
export type UpdateTableRowsInput = z.infer<typeof UpdateTableRowsInput>;
|
|
349
|
+
export declare const UpdateTableRowsResult: z.ZodObject<{
|
|
1394
350
|
node: z.ZodObject<{
|
|
1395
351
|
id: z.ZodString;
|
|
1396
352
|
parentId: z.ZodNullable<z.ZodString>;
|
|
@@ -1399,8 +355,6 @@ export declare const NodeAgent: z.ZodObject<{
|
|
|
1399
355
|
document: "document";
|
|
1400
356
|
attachment: "attachment";
|
|
1401
357
|
table: "table";
|
|
1402
|
-
agent: "agent";
|
|
1403
|
-
board: "board";
|
|
1404
358
|
}>;
|
|
1405
359
|
title: z.ZodString;
|
|
1406
360
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -1410,7 +364,7 @@ export declare const NodeAgent: z.ZodObject<{
|
|
|
1410
364
|
updatedAt: z.ZodISODateTime;
|
|
1411
365
|
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1412
366
|
}, z.core.$strict>;
|
|
1413
|
-
version: z.
|
|
367
|
+
version: z.ZodObject<{
|
|
1414
368
|
id: z.ZodString;
|
|
1415
369
|
nodeId: z.ZodString;
|
|
1416
370
|
sequence: z.ZodNumber;
|
|
@@ -1424,58 +378,18 @@ export declare const NodeAgent: z.ZodObject<{
|
|
|
1424
378
|
}>>;
|
|
1425
379
|
createdBy: z.ZodString;
|
|
1426
380
|
createdAt: z.ZodISODateTime;
|
|
1427
|
-
}, z.core.$strict
|
|
1428
|
-
|
|
1429
|
-
tools: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1430
|
-
delegatedBy: z.ZodString;
|
|
1431
|
-
servers: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1432
|
-
}, z.core.$strict>>>;
|
|
1433
|
-
references: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1434
|
-
nodeId: z.ZodString;
|
|
1435
|
-
role: z.ZodEnum<{
|
|
1436
|
-
"system-message": "system-message";
|
|
1437
|
-
"semantic-context": "semantic-context";
|
|
1438
|
-
memory: "memory";
|
|
1439
|
-
}>;
|
|
1440
|
-
}, z.core.$strict>>>;
|
|
1441
|
-
schedules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1442
|
-
cron: z.ZodString;
|
|
1443
|
-
timezone: z.ZodDefault<z.ZodString>;
|
|
1444
|
-
target: z.ZodObject<{
|
|
1445
|
-
kind: z.ZodEnum<{
|
|
1446
|
-
document: "document";
|
|
1447
|
-
flow: "flow";
|
|
1448
|
-
}>;
|
|
1449
|
-
id: z.ZodString;
|
|
1450
|
-
}, z.core.$strict>;
|
|
1451
|
-
}, z.core.$strict>>>;
|
|
1452
|
-
model: z.ZodObject<{
|
|
1453
|
-
provider: z.ZodEnum<{
|
|
1454
|
-
"workers-ai": "workers-ai";
|
|
1455
|
-
anthropic: "anthropic";
|
|
1456
|
-
}>;
|
|
1457
|
-
model: z.ZodString;
|
|
1458
|
-
}, z.core.$strict>;
|
|
1459
|
-
}, z.core.$strict>>;
|
|
1460
|
-
applicationId: z.ZodNullable<z.ZodString>;
|
|
381
|
+
}, z.core.$strict>;
|
|
382
|
+
updated: z.ZodNumber;
|
|
1461
383
|
}, z.core.$strict>;
|
|
1462
|
-
export type
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
* added anywhere in this file is a parse error at the boundary rather than a leak somebody has to
|
|
1472
|
-
* spot in review.
|
|
1473
|
-
*
|
|
1474
|
-
* What `POST /nodes/agents` and `agent_create` answer is therefore exactly what every read answers:
|
|
1475
|
-
* the node, its first definition, and the `applicationId` that NAMES the principal without
|
|
1476
|
-
* authenticating it.
|
|
1477
|
-
*/
|
|
1478
|
-
export declare const CreatedAgent: z.ZodObject<{
|
|
384
|
+
export type UpdateTableRowsResult = z.infer<typeof UpdateTableRowsResult>;
|
|
385
|
+
export declare const DeleteTableRowsInput: z.ZodObject<{
|
|
386
|
+
nodeId: z.ZodString;
|
|
387
|
+
baseVersionId: z.ZodString;
|
|
388
|
+
positions: z.ZodArray<z.ZodNumber>;
|
|
389
|
+
idempotencyKey: z.ZodString;
|
|
390
|
+
}, z.core.$strict>;
|
|
391
|
+
export type DeleteTableRowsInput = z.infer<typeof DeleteTableRowsInput>;
|
|
392
|
+
export declare const DeleteTableRowsResult: z.ZodObject<{
|
|
1479
393
|
node: z.ZodObject<{
|
|
1480
394
|
id: z.ZodString;
|
|
1481
395
|
parentId: z.ZodNullable<z.ZodString>;
|
|
@@ -1484,8 +398,6 @@ export declare const CreatedAgent: z.ZodObject<{
|
|
|
1484
398
|
document: "document";
|
|
1485
399
|
attachment: "attachment";
|
|
1486
400
|
table: "table";
|
|
1487
|
-
agent: "agent";
|
|
1488
|
-
board: "board";
|
|
1489
401
|
}>;
|
|
1490
402
|
title: z.ZodString;
|
|
1491
403
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -1495,7 +407,7 @@ export declare const CreatedAgent: z.ZodObject<{
|
|
|
1495
407
|
updatedAt: z.ZodISODateTime;
|
|
1496
408
|
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1497
409
|
}, z.core.$strict>;
|
|
1498
|
-
version: z.
|
|
410
|
+
version: z.ZodObject<{
|
|
1499
411
|
id: z.ZodString;
|
|
1500
412
|
nodeId: z.ZodString;
|
|
1501
413
|
sequence: z.ZodNumber;
|
|
@@ -1509,82 +421,37 @@ export declare const CreatedAgent: z.ZodObject<{
|
|
|
1509
421
|
}>>;
|
|
1510
422
|
createdBy: z.ZodString;
|
|
1511
423
|
createdAt: z.ZodISODateTime;
|
|
1512
|
-
}, z.core.$strict
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
nodeId: z.ZodString;
|
|
1520
|
-
role: z.ZodEnum<{
|
|
1521
|
-
"system-message": "system-message";
|
|
1522
|
-
"semantic-context": "semantic-context";
|
|
1523
|
-
memory: "memory";
|
|
1524
|
-
}>;
|
|
1525
|
-
}, z.core.$strict>>>;
|
|
1526
|
-
schedules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1527
|
-
cron: z.ZodString;
|
|
1528
|
-
timezone: z.ZodDefault<z.ZodString>;
|
|
1529
|
-
target: z.ZodObject<{
|
|
1530
|
-
kind: z.ZodEnum<{
|
|
1531
|
-
document: "document";
|
|
1532
|
-
flow: "flow";
|
|
1533
|
-
}>;
|
|
1534
|
-
id: z.ZodString;
|
|
1535
|
-
}, z.core.$strict>;
|
|
1536
|
-
}, z.core.$strict>>>;
|
|
1537
|
-
model: z.ZodObject<{
|
|
1538
|
-
provider: z.ZodEnum<{
|
|
1539
|
-
"workers-ai": "workers-ai";
|
|
1540
|
-
anthropic: "anthropic";
|
|
1541
|
-
}>;
|
|
1542
|
-
model: z.ZodString;
|
|
1543
|
-
}, z.core.$strict>;
|
|
1544
|
-
}, z.core.$strict>>;
|
|
1545
|
-
applicationId: z.ZodNullable<z.ZodString>;
|
|
424
|
+
}, z.core.$strict>;
|
|
425
|
+
deleted: z.ZodNumber;
|
|
426
|
+
}, z.core.$strict>;
|
|
427
|
+
export type DeleteTableRowsResult = z.infer<typeof DeleteTableRowsResult>;
|
|
428
|
+
export declare const RedefineTableColumn: z.ZodObject<{
|
|
429
|
+
name: z.ZodString;
|
|
430
|
+
source: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1546
431
|
}, z.core.$strict>;
|
|
1547
|
-
export type
|
|
1548
|
-
export declare const
|
|
432
|
+
export type RedefineTableColumn = z.infer<typeof RedefineTableColumn>;
|
|
433
|
+
export declare const RedefineTableInput: z.ZodObject<{
|
|
1549
434
|
nodeId: z.ZodString;
|
|
435
|
+
baseVersionId: z.ZodString;
|
|
436
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
437
|
+
name: z.ZodString;
|
|
438
|
+
source: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
439
|
+
}, z.core.$strict>>;
|
|
440
|
+
idempotencyKey: z.ZodString;
|
|
1550
441
|
}, z.core.$strict>;
|
|
1551
|
-
export type
|
|
442
|
+
export type RedefineTableInput = z.infer<typeof RedefineTableInput>;
|
|
1552
443
|
/**
|
|
1553
|
-
*
|
|
444
|
+
* One MCP server as the portal names it. The handle is what the portal puts in front of every tool
|
|
445
|
+
* that server offers (`notion_notion-search` belongs to `notion`), and it is the only identifier
|
|
446
|
+
* Intel can both store and recognise again in a live `tools/list`.
|
|
1554
447
|
*
|
|
1555
|
-
* ⚠️
|
|
1556
|
-
*
|
|
1557
|
-
*
|
|
1558
|
-
*
|
|
448
|
+
* ⚠️ A handle is never invented from a tool name. Which servers exist is the portal's answer
|
|
449
|
+
* (`portal_list_servers`), and the prefix is only used to attribute a tool to a server that answer
|
|
450
|
+
* already named — see `packages/api/src/tools/tool-servers` for why splitting on the underscore
|
|
451
|
+
* alone would be ambiguous.
|
|
1559
452
|
*/
|
|
1560
|
-
export declare const
|
|
1561
|
-
|
|
1562
|
-
applicationId: z.ZodString;
|
|
1563
|
-
rotatedAt: z.ZodISODateTime;
|
|
1564
|
-
}, z.core.$strict>;
|
|
1565
|
-
export type AgentKeyRotated = z.infer<typeof AgentKeyRotated>;
|
|
1566
|
-
export declare const AgentList: z.ZodObject<{
|
|
1567
|
-
items: z.ZodArray<z.ZodObject<{
|
|
1568
|
-
id: z.ZodString;
|
|
1569
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
1570
|
-
kind: z.ZodEnum<{
|
|
1571
|
-
folder: "folder";
|
|
1572
|
-
document: "document";
|
|
1573
|
-
attachment: "attachment";
|
|
1574
|
-
table: "table";
|
|
1575
|
-
agent: "agent";
|
|
1576
|
-
board: "board";
|
|
1577
|
-
}>;
|
|
1578
|
-
title: z.ZodString;
|
|
1579
|
-
description: z.ZodNullable<z.ZodString>;
|
|
1580
|
-
ownerId: z.ZodString;
|
|
1581
|
-
currentVersionId: z.ZodNullable<z.ZodString>;
|
|
1582
|
-
createdAt: z.ZodISODateTime;
|
|
1583
|
-
updatedAt: z.ZodISODateTime;
|
|
1584
|
-
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1585
|
-
}, z.core.$strict>>;
|
|
1586
|
-
}, z.core.$strict>;
|
|
1587
|
-
export type AgentList = z.infer<typeof AgentList>;
|
|
453
|
+
export declare const ToolServerHandle: z.ZodString;
|
|
454
|
+
export type ToolServerHandle = z.infer<typeof ToolServerHandle>;
|
|
1588
455
|
export declare const NodeLinkRelation: z.ZodEnum<{
|
|
1589
456
|
references: "references";
|
|
1590
457
|
related: "related";
|
|
@@ -1667,8 +534,6 @@ export declare const NodeGraph: z.ZodObject<{
|
|
|
1667
534
|
document: "document";
|
|
1668
535
|
attachment: "attachment";
|
|
1669
536
|
table: "table";
|
|
1670
|
-
agent: "agent";
|
|
1671
|
-
board: "board";
|
|
1672
537
|
}>;
|
|
1673
538
|
title: z.ZodString;
|
|
1674
539
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -2893,8 +1758,6 @@ export declare const RelationNodeKind: z.ZodEnum<{
|
|
|
2893
1758
|
document: "document";
|
|
2894
1759
|
attachment: "attachment";
|
|
2895
1760
|
table: "table";
|
|
2896
|
-
agent: "agent";
|
|
2897
|
-
board: "board";
|
|
2898
1761
|
flow: "flow";
|
|
2899
1762
|
}>;
|
|
2900
1763
|
export type RelationNodeKind = z.infer<typeof RelationNodeKind>;
|
|
@@ -2905,8 +1768,6 @@ export declare const RelationNode: z.ZodObject<{
|
|
|
2905
1768
|
document: "document";
|
|
2906
1769
|
attachment: "attachment";
|
|
2907
1770
|
table: "table";
|
|
2908
|
-
agent: "agent";
|
|
2909
|
-
board: "board";
|
|
2910
1771
|
flow: "flow";
|
|
2911
1772
|
}>;
|
|
2912
1773
|
title: z.ZodString;
|
|
@@ -2957,8 +1818,6 @@ export declare const RelationGraph: z.ZodObject<{
|
|
|
2957
1818
|
document: "document";
|
|
2958
1819
|
attachment: "attachment";
|
|
2959
1820
|
table: "table";
|
|
2960
|
-
agent: "agent";
|
|
2961
|
-
board: "board";
|
|
2962
1821
|
flow: "flow";
|
|
2963
1822
|
}>;
|
|
2964
1823
|
title: z.ZodString;
|
|
@@ -3323,14 +2182,28 @@ export declare const FlowRunHistory: z.ZodObject<{
|
|
|
3323
2182
|
}, z.core.$strict>;
|
|
3324
2183
|
export type FlowRunHistory = z.infer<typeof FlowRunHistory>;
|
|
3325
2184
|
export declare const BundleManifestFilename = "manifest.json";
|
|
2185
|
+
/**
|
|
2186
|
+
* What a bundle entry can be. `flow` joins the node kinds because a flow shares the folder tree
|
|
2187
|
+
* without being a node (ADR-0004), and the bundle mirrors the tree, not the tables.
|
|
2188
|
+
*
|
|
2189
|
+
* ⚠️ `agent` and `board` are STILL HERE, and that is the one place in this file where a value
|
|
2190
|
+
* survives its feature (#390). A bundle is somebody else's file: an export written before Agents
|
|
2191
|
+
* and Board were parked (#385) is a correct export, and it has to PARSE so the import can refuse it
|
|
2192
|
+
* by name — with the entry, the kind and the branch the code is on. Take them out and the same
|
|
2193
|
+
* bundle fails as `unexpected enum value`, which sends its holder looking for a broken file that is
|
|
2194
|
+
* not broken.
|
|
2195
|
+
*
|
|
2196
|
+
* They belong to the wire format of a file that already exists, not to the product. Nothing may
|
|
2197
|
+
* create either kind; `NodeKind` is the enum that says so.
|
|
2198
|
+
*/
|
|
3326
2199
|
export declare const BundleEntryKind: z.ZodEnum<{
|
|
3327
2200
|
folder: "folder";
|
|
3328
2201
|
document: "document";
|
|
3329
2202
|
attachment: "attachment";
|
|
3330
2203
|
table: "table";
|
|
2204
|
+
flow: "flow";
|
|
3331
2205
|
agent: "agent";
|
|
3332
2206
|
board: "board";
|
|
3333
|
-
flow: "flow";
|
|
3334
2207
|
}>;
|
|
3335
2208
|
export type BundleEntryKind = z.infer<typeof BundleEntryKind>;
|
|
3336
2209
|
export declare const BundleManifestEntry: z.ZodObject<{
|
|
@@ -3340,9 +2213,9 @@ export declare const BundleManifestEntry: z.ZodObject<{
|
|
|
3340
2213
|
document: "document";
|
|
3341
2214
|
attachment: "attachment";
|
|
3342
2215
|
table: "table";
|
|
2216
|
+
flow: "flow";
|
|
3343
2217
|
agent: "agent";
|
|
3344
2218
|
board: "board";
|
|
3345
|
-
flow: "flow";
|
|
3346
2219
|
}>;
|
|
3347
2220
|
title: z.ZodString;
|
|
3348
2221
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -3368,9 +2241,9 @@ export declare const BundleManifest: z.ZodObject<{
|
|
|
3368
2241
|
document: "document";
|
|
3369
2242
|
attachment: "attachment";
|
|
3370
2243
|
table: "table";
|
|
2244
|
+
flow: "flow";
|
|
3371
2245
|
agent: "agent";
|
|
3372
2246
|
board: "board";
|
|
3373
|
-
flow: "flow";
|
|
3374
2247
|
}>;
|
|
3375
2248
|
title: z.ZodString;
|
|
3376
2249
|
description: z.ZodNullable<z.ZodString>;
|