@anchrd/intel-contract 0.11.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.
@@ -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>;
@@ -326,8 +308,6 @@ export declare const AppendTableRowsResult: z.ZodObject<{
326
308
  document: "document";
327
309
  attachment: "attachment";
328
310
  table: "table";
329
- agent: "agent";
330
- board: "board";
331
311
  }>;
332
312
  title: z.ZodString;
333
313
  description: z.ZodNullable<z.ZodString>;
@@ -375,8 +355,6 @@ export declare const UpdateTableRowsResult: z.ZodObject<{
375
355
  document: "document";
376
356
  attachment: "attachment";
377
357
  table: "table";
378
- agent: "agent";
379
- board: "board";
380
358
  }>;
381
359
  title: z.ZodString;
382
360
  description: z.ZodNullable<z.ZodString>;
@@ -420,8 +398,6 @@ export declare const DeleteTableRowsResult: z.ZodObject<{
420
398
  document: "document";
421
399
  attachment: "attachment";
422
400
  table: "table";
423
- agent: "agent";
424
- board: "board";
425
401
  }>;
426
402
  title: z.ZodString;
427
403
  description: z.ZodNullable<z.ZodString>;
@@ -464,498 +440,6 @@ export declare const RedefineTableInput: z.ZodObject<{
464
440
  idempotencyKey: z.ZodString;
465
441
  }, z.core.$strict>;
466
442
  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
- export declare const BoardTaskOrder: z.ZodString;
502
- export declare const BoardTaskId: z.ZodString;
503
- export declare const BoardTaskLabel: z.ZodString;
504
- export declare const BoardTaskDate: z.ZodISODate;
505
- export declare const BoardTaskDescription: z.ZodString;
506
- /**
507
- * The tasks one task waits for (#285), each of them at most once (anchrd/intel#318).
508
- *
509
- * ⚠️ Board-internal only, enforced on the write path: a dependency on a task in another board would
510
- * hang this node on a file that can change without anyone here noticing. Across boards the link is
511
- * `references`, which points at the board NODE and lands in the link graph.
512
- *
513
- * ⚠️ Refused rather than folded together, the same shape as the status ids in `ConfigureBoardInput`.
514
- * A repeat carries no information — but that is a fact about the value, not about the answer: a
515
- * caller handed back a shorter list than it sent is told nothing, and composes the same one again.
516
- * The refusal names the mistake once, and the caller is holding the list it has to fix. (The one
517
- * place a repeat is folded instead is `upgradeStoredBoard`, where there is no caller to tell.)
518
- *
519
- * ⚠️ It sits on the STORED task as well as on the two inputs, so a consumer may rely on it rather
520
- * than defend against it — `createBoardGraph` mints one edge key per pair, and a second one threw
521
- * the whole graph view off the screen for everybody looking at that board.
522
- */
523
- export declare const BoardTaskDependsOn: z.ZodArray<z.ZodString>;
524
- /**
525
- * A task's labels, each of them at most once (anchrd/intel#318).
526
- *
527
- * ⚠️ The same rule the detail panel has always applied to what a person types — it refuses to add a
528
- * label the task already carries — stated where every surface meets it, because the MCP write path
529
- * did not. A repeated label draws the same chip twice on the card, with two remove buttons of which
530
- * either takes both away, and weights that word higher in the search text (`indexing.ts`).
531
- */
532
- export declare const BoardTaskLabels: z.ZodArray<z.ZodString>;
533
- /**
534
- * The Intel nodes a task points at, each of them at most once (anchrd/intel#318).
535
- *
536
- * They land in the link graph as `text` links, the same way a document's inline links do, so what a
537
- * board points at is visible from the other side too.
538
- *
539
- * ⚠️ Distinct for the same reason as `labels`: the picker in the detail panel already refuses one
540
- * the task holds, and the link graph counts a repeat once anyway (`ON CONFLICT DO NOTHING`), so a
541
- * duplicate is a second row in the panel and nothing else — which is exactly the kind of value that
542
- * has no reading and should not be storable.
543
- */
544
- export declare const BoardTaskReferences: z.ZodArray<z.ZodString>;
545
- export declare const BoardTask: z.ZodObject<{
546
- id: z.ZodString;
547
- title: z.ZodString;
548
- status: z.ZodString;
549
- assignee: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
550
- type: z.ZodLiteral<"user">;
551
- id: z.ZodString;
552
- }, z.core.$strict>, z.ZodObject<{
553
- type: z.ZodLiteral<"agent">;
554
- nodeId: z.ZodString;
555
- }, z.core.$strict>], "type">>;
556
- labels: z.ZodArray<z.ZodString>;
557
- startDate: z.ZodNullable<z.ZodISODate>;
558
- dueDate: z.ZodNullable<z.ZodISODate>;
559
- parentId: z.ZodNullable<z.ZodString>;
560
- dependsOn: z.ZodArray<z.ZodString>;
561
- order: z.ZodString;
562
- description: z.ZodString;
563
- references: z.ZodArray<z.ZodString>;
564
- }, z.core.$strict>;
565
- export type BoardTask = z.infer<typeof BoardTask>;
566
- export declare const BoardDocument: z.ZodObject<{
567
- statuses: z.ZodArray<z.ZodObject<{
568
- id: z.ZodString;
569
- label: z.ZodString;
570
- order: z.ZodNumber;
571
- terminal: z.ZodBoolean;
572
- }, z.core.$strict>>;
573
- tasks: z.ZodArray<z.ZodObject<{
574
- id: z.ZodString;
575
- title: z.ZodString;
576
- status: z.ZodString;
577
- assignee: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
578
- type: z.ZodLiteral<"user">;
579
- id: z.ZodString;
580
- }, z.core.$strict>, z.ZodObject<{
581
- type: z.ZodLiteral<"agent">;
582
- nodeId: z.ZodString;
583
- }, z.core.$strict>], "type">>;
584
- labels: z.ZodArray<z.ZodString>;
585
- startDate: z.ZodNullable<z.ZodISODate>;
586
- dueDate: z.ZodNullable<z.ZodISODate>;
587
- parentId: z.ZodNullable<z.ZodString>;
588
- dependsOn: z.ZodArray<z.ZodString>;
589
- order: z.ZodString;
590
- description: z.ZodString;
591
- references: z.ZodArray<z.ZodString>;
592
- }, z.core.$strict>>;
593
- }, z.core.$strict>;
594
- export type BoardDocument = z.infer<typeof BoardDocument>;
595
- export declare const BoardMaxTaskDepth = 5;
596
- export declare const GetBoardInput: z.ZodObject<{
597
- nodeId: z.ZodString;
598
- }, z.core.$strict>;
599
- export type GetBoardInput = z.infer<typeof GetBoardInput>;
600
- export declare const NodeBoard: z.ZodObject<{
601
- node: z.ZodObject<{
602
- id: z.ZodString;
603
- parentId: z.ZodNullable<z.ZodString>;
604
- kind: z.ZodEnum<{
605
- folder: "folder";
606
- document: "document";
607
- attachment: "attachment";
608
- table: "table";
609
- agent: "agent";
610
- board: "board";
611
- }>;
612
- title: z.ZodString;
613
- description: z.ZodNullable<z.ZodString>;
614
- ownerId: z.ZodString;
615
- currentVersionId: z.ZodNullable<z.ZodString>;
616
- createdAt: z.ZodISODateTime;
617
- updatedAt: z.ZodISODateTime;
618
- archivedAt: z.ZodNullable<z.ZodISODateTime>;
619
- }, z.core.$strict>;
620
- board: z.ZodObject<{
621
- statuses: z.ZodArray<z.ZodObject<{
622
- id: z.ZodString;
623
- label: z.ZodString;
624
- order: z.ZodNumber;
625
- terminal: z.ZodBoolean;
626
- }, z.core.$strict>>;
627
- tasks: z.ZodArray<z.ZodObject<{
628
- id: z.ZodString;
629
- title: z.ZodString;
630
- status: z.ZodString;
631
- assignee: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
632
- type: z.ZodLiteral<"user">;
633
- id: z.ZodString;
634
- }, z.core.$strict>, z.ZodObject<{
635
- type: z.ZodLiteral<"agent">;
636
- nodeId: z.ZodString;
637
- }, z.core.$strict>], "type">>;
638
- labels: z.ZodArray<z.ZodString>;
639
- startDate: z.ZodNullable<z.ZodISODate>;
640
- dueDate: z.ZodNullable<z.ZodISODate>;
641
- parentId: z.ZodNullable<z.ZodString>;
642
- dependsOn: z.ZodArray<z.ZodString>;
643
- order: z.ZodString;
644
- description: z.ZodString;
645
- references: z.ZodArray<z.ZodString>;
646
- }, z.core.$strict>>;
647
- }, z.core.$strict>;
648
- versionId: z.ZodNullable<z.ZodString>;
649
- }, z.core.$strict>;
650
- export type NodeBoard = z.infer<typeof NodeBoard>;
651
- export declare const BoardStatusInput: z.ZodObject<{
652
- id: z.ZodString;
653
- label: z.ZodString;
654
- terminal: z.ZodOptional<z.ZodBoolean>;
655
- }, z.core.$strict>;
656
- export type BoardStatusInput = z.infer<typeof BoardStatusInput>;
657
- export declare const ConfigureBoardInput: z.ZodObject<{
658
- nodeId: z.ZodString;
659
- statuses: z.ZodArray<z.ZodObject<{
660
- id: z.ZodString;
661
- label: z.ZodString;
662
- terminal: z.ZodOptional<z.ZodBoolean>;
663
- }, z.core.$strict>>;
664
- idempotencyKey: z.ZodString;
665
- }, z.core.$strict>;
666
- export type ConfigureBoardInput = z.infer<typeof ConfigureBoardInput>;
667
- /**
668
- * A new task (#285).
669
- *
670
- * ⚠️ No `baseVersionId`, on this and on every other task operation, and that absence is the
671
- * feature. A board is addressed by stable task id and never by position, so two agents touching two
672
- * different tasks cannot collide — demanding a base version would invent the `version_conflict`
673
- * that #285 exists to remove, and force every caller to read the whole board first.
674
- */
675
- export declare const AddBoardTaskInput: z.ZodObject<{
676
- nodeId: z.ZodString;
677
- title: z.ZodString;
678
- status: z.ZodOptional<z.ZodString>;
679
- assignee: z.ZodDefault<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
680
- type: z.ZodLiteral<"user">;
681
- id: z.ZodString;
682
- }, z.core.$strict>, z.ZodObject<{
683
- type: z.ZodLiteral<"agent">;
684
- nodeId: z.ZodString;
685
- }, z.core.$strict>], "type">>>;
686
- labels: z.ZodDefault<z.ZodArray<z.ZodString>>;
687
- startDate: z.ZodDefault<z.ZodNullable<z.ZodISODate>>;
688
- dueDate: z.ZodDefault<z.ZodNullable<z.ZodISODate>>;
689
- parentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
690
- dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
691
- description: z.ZodDefault<z.ZodString>;
692
- references: z.ZodDefault<z.ZodArray<z.ZodString>>;
693
- afterTaskId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
694
- beforeTaskId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
695
- idempotencyKey: z.ZodString;
696
- }, z.core.$strict>;
697
- export type AddBoardTaskInput = z.infer<typeof AddBoardTaskInput>;
698
- /**
699
- * What a task says about itself.
700
- *
701
- * ⚠️ Deliberately no `status`, no `parentId` and no `order`: where a task SITS is a move, and a
702
- * move is the operation that has to mint an order key and re-check the two cycle rules. Folding
703
- * both into one call would mean every field edit pays for those checks and every move could quietly
704
- * rewrite a description.
705
- */
706
- export declare const UpdateBoardTaskInput: z.ZodObject<{
707
- nodeId: z.ZodString;
708
- taskId: z.ZodString;
709
- title: z.ZodOptional<z.ZodString>;
710
- assignee: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
711
- type: z.ZodLiteral<"user">;
712
- id: z.ZodString;
713
- }, z.core.$strict>, z.ZodObject<{
714
- type: z.ZodLiteral<"agent">;
715
- nodeId: z.ZodString;
716
- }, z.core.$strict>], "type">>>;
717
- labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
718
- startDate: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
719
- dueDate: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
720
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
721
- description: z.ZodOptional<z.ZodString>;
722
- references: z.ZodOptional<z.ZodArray<z.ZodString>>;
723
- idempotencyKey: z.ZodString;
724
- }, z.core.$strict>;
725
- export type UpdateBoardTaskInput = z.infer<typeof UpdateBoardTaskInput>;
726
- export declare const MoveBoardTaskInput: z.ZodObject<{
727
- nodeId: z.ZodString;
728
- taskId: z.ZodString;
729
- status: z.ZodOptional<z.ZodString>;
730
- parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
731
- afterTaskId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
732
- beforeTaskId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
733
- idempotencyKey: z.ZodString;
734
- }, z.core.$strict>;
735
- export type MoveBoardTaskInput = z.infer<typeof MoveBoardTaskInput>;
736
- export declare const DeleteBoardTaskInput: z.ZodObject<{
737
- nodeId: z.ZodString;
738
- taskId: z.ZodString;
739
- idempotencyKey: z.ZodString;
740
- }, z.core.$strict>;
741
- export type DeleteBoardTaskInput = z.infer<typeof DeleteBoardTaskInput>;
742
- export declare const BoardTaskResult: z.ZodObject<{
743
- node: z.ZodObject<{
744
- id: z.ZodString;
745
- parentId: z.ZodNullable<z.ZodString>;
746
- kind: z.ZodEnum<{
747
- folder: "folder";
748
- document: "document";
749
- attachment: "attachment";
750
- table: "table";
751
- agent: "agent";
752
- board: "board";
753
- }>;
754
- title: z.ZodString;
755
- description: z.ZodNullable<z.ZodString>;
756
- ownerId: z.ZodString;
757
- currentVersionId: z.ZodNullable<z.ZodString>;
758
- createdAt: z.ZodISODateTime;
759
- updatedAt: z.ZodISODateTime;
760
- archivedAt: z.ZodNullable<z.ZodISODateTime>;
761
- }, z.core.$strict>;
762
- version: z.ZodObject<{
763
- id: z.ZodString;
764
- nodeId: z.ZodString;
765
- sequence: z.ZodNumber;
766
- contentKey: z.ZodString;
767
- mediaType: z.ZodString;
768
- contentHash: z.ZodString;
769
- size: z.ZodNumber;
770
- segment: z.ZodNullable<z.ZodEnum<{
771
- append: "append";
772
- snapshot: "snapshot";
773
- }>>;
774
- createdBy: z.ZodString;
775
- createdAt: z.ZodISODateTime;
776
- }, z.core.$strict>;
777
- task: z.ZodObject<{
778
- id: z.ZodString;
779
- title: z.ZodString;
780
- status: z.ZodString;
781
- assignee: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
782
- type: z.ZodLiteral<"user">;
783
- id: z.ZodString;
784
- }, z.core.$strict>, z.ZodObject<{
785
- type: z.ZodLiteral<"agent">;
786
- nodeId: z.ZodString;
787
- }, z.core.$strict>], "type">>;
788
- labels: z.ZodArray<z.ZodString>;
789
- startDate: z.ZodNullable<z.ZodISODate>;
790
- dueDate: z.ZodNullable<z.ZodISODate>;
791
- parentId: z.ZodNullable<z.ZodString>;
792
- dependsOn: z.ZodArray<z.ZodString>;
793
- order: z.ZodString;
794
- description: z.ZodString;
795
- references: z.ZodArray<z.ZodString>;
796
- }, z.core.$strict>;
797
- }, z.core.$strict>;
798
- export type BoardTaskResult = z.infer<typeof BoardTaskResult>;
799
- export declare const DeleteBoardTaskResult: z.ZodObject<{
800
- node: z.ZodObject<{
801
- id: z.ZodString;
802
- parentId: z.ZodNullable<z.ZodString>;
803
- kind: z.ZodEnum<{
804
- folder: "folder";
805
- document: "document";
806
- attachment: "attachment";
807
- table: "table";
808
- agent: "agent";
809
- board: "board";
810
- }>;
811
- title: z.ZodString;
812
- description: z.ZodNullable<z.ZodString>;
813
- ownerId: z.ZodString;
814
- currentVersionId: z.ZodNullable<z.ZodString>;
815
- createdAt: z.ZodISODateTime;
816
- updatedAt: z.ZodISODateTime;
817
- archivedAt: z.ZodNullable<z.ZodISODateTime>;
818
- }, z.core.$strict>;
819
- version: z.ZodObject<{
820
- id: z.ZodString;
821
- nodeId: z.ZodString;
822
- sequence: z.ZodNumber;
823
- contentKey: z.ZodString;
824
- mediaType: z.ZodString;
825
- contentHash: z.ZodString;
826
- size: z.ZodNumber;
827
- segment: z.ZodNullable<z.ZodEnum<{
828
- append: "append";
829
- snapshot: "snapshot";
830
- }>>;
831
- createdBy: z.ZodString;
832
- createdAt: z.ZodISODateTime;
833
- }, z.core.$strict>;
834
- deleted: z.ZodNumber;
835
- }, z.core.$strict>;
836
- export type DeleteBoardTaskResult = z.infer<typeof DeleteBoardTaskResult>;
837
- export declare const ConfigureBoardResult: z.ZodObject<{
838
- node: z.ZodObject<{
839
- id: z.ZodString;
840
- parentId: z.ZodNullable<z.ZodString>;
841
- kind: z.ZodEnum<{
842
- folder: "folder";
843
- document: "document";
844
- attachment: "attachment";
845
- table: "table";
846
- agent: "agent";
847
- board: "board";
848
- }>;
849
- title: z.ZodString;
850
- description: z.ZodNullable<z.ZodString>;
851
- ownerId: z.ZodString;
852
- currentVersionId: z.ZodNullable<z.ZodString>;
853
- createdAt: z.ZodISODateTime;
854
- updatedAt: z.ZodISODateTime;
855
- archivedAt: z.ZodNullable<z.ZodISODateTime>;
856
- }, z.core.$strict>;
857
- version: z.ZodObject<{
858
- id: z.ZodString;
859
- nodeId: z.ZodString;
860
- sequence: z.ZodNumber;
861
- contentKey: z.ZodString;
862
- mediaType: z.ZodString;
863
- contentHash: z.ZodString;
864
- size: z.ZodNumber;
865
- segment: z.ZodNullable<z.ZodEnum<{
866
- append: "append";
867
- snapshot: "snapshot";
868
- }>>;
869
- createdBy: z.ZodString;
870
- createdAt: z.ZodISODateTime;
871
- }, z.core.$strict>;
872
- statuses: z.ZodArray<z.ZodObject<{
873
- id: z.ZodString;
874
- label: z.ZodString;
875
- order: z.ZodNumber;
876
- terminal: z.ZodBoolean;
877
- }, z.core.$strict>>;
878
- }, z.core.$strict>;
879
- export type ConfigureBoardResult = z.infer<typeof ConfigureBoardResult>;
880
- export declare const AgentMediaType = "application/vnd.anchrd.agent+json";
881
- export declare const AgentReferenceRole: z.ZodEnum<{
882
- "system-message": "system-message";
883
- "semantic-context": "semantic-context";
884
- memory: "memory";
885
- }>;
886
- export type AgentReferenceRole = z.infer<typeof AgentReferenceRole>;
887
- export declare const AgentReference: z.ZodObject<{
888
- nodeId: z.ZodString;
889
- role: z.ZodEnum<{
890
- "system-message": "system-message";
891
- "semantic-context": "semantic-context";
892
- memory: "memory";
893
- }>;
894
- }, z.core.$strict>;
895
- export type AgentReference = z.infer<typeof AgentReference>;
896
- /**
897
- * Which kinds of node each role can actually be given (#255).
898
- *
899
- * ⚠️ Not every role takes every kind, and the reasons are about what the runtime DOES with a
900
- * reference rather than about tidiness:
901
- *
902
- * `memory` is a folder because the agent WRITES there — `agent_remember` creates a note inside
903
- * it. A single document as memory would mean the agent overwrites the document it was given.
904
- *
905
- * `semantic-context` is a folder because it is a search SPACE, searched per folder by
906
- * `loop/scoped-search`. A single document is not a narrower search space; reading it whole is a
907
- * different behaviour, and one that gets named before it is introduced, not slipped in.
908
- *
909
- * `system-message` reads single nodes already and takes a document or a table as well as a
910
- * folder. A document is the natural case — a skill somebody wrote as ordinary text — and a table
911
- * is the same read: the runtime asks intel for the node and prepends its content, which for a
912
- * table is its CSV.
913
- *
914
- * ⚠️ `folder` stays on `system-message` although a folder carries no content of its own. Every
915
- * definition written before #255 could only name folders, and taking the combination away here
916
- * would refuse the next save of an agent that has been working for months — "existing definitions
917
- * stay valid" is not only about reading them.
918
- *
919
- * ⚠️ This is the ONE place the rule lives. The screen offers what it says and the write path
920
- * refuses what it forbids; a surface that made its own list would eventually disagree with the
921
- * other, and the one that matters is whichever runs last.
922
- */
923
- export declare const AgentReferenceKinds: {
924
- readonly "system-message": readonly ["folder", "document", "table"];
925
- readonly "semantic-context": readonly ["folder"];
926
- readonly memory: readonly ["folder"];
927
- };
928
- export declare function agentReferenceAccepts(role: AgentReferenceRole, kind: NodeKind): boolean;
929
- /** The roles a node of this kind may be given — the same rule, read from the other side. */
930
- export declare function agentReferenceRolesFor(kind: NodeKind): AgentReferenceRole[];
931
- export declare const AgentScheduleTarget: z.ZodObject<{
932
- kind: z.ZodEnum<{
933
- document: "document";
934
- flow: "flow";
935
- }>;
936
- id: z.ZodString;
937
- }, z.core.$strict>;
938
- export type AgentScheduleTarget = z.infer<typeof AgentScheduleTarget>;
939
- export declare const AgentSchedule: z.ZodObject<{
940
- cron: z.ZodString;
941
- timezone: z.ZodDefault<z.ZodString>;
942
- target: z.ZodObject<{
943
- kind: z.ZodEnum<{
944
- document: "document";
945
- flow: "flow";
946
- }>;
947
- id: z.ZodString;
948
- }, z.core.$strict>;
949
- }, z.core.$strict>;
950
- export type AgentSchedule = z.infer<typeof AgentSchedule>;
951
- export declare const AgentModel: z.ZodObject<{
952
- provider: z.ZodEnum<{
953
- "workers-ai": "workers-ai";
954
- anthropic: "anthropic";
955
- }>;
956
- model: z.ZodString;
957
- }, z.core.$strict>;
958
- export type AgentModel = z.infer<typeof AgentModel>;
959
443
  /**
960
444
  * One MCP server as the portal names it. The handle is what the portal puts in front of every tool
961
445
  * that server offers (`notion_notion-search` belongs to `notion`), and it is the only identifier
@@ -968,518 +452,6 @@ export type AgentModel = z.infer<typeof AgentModel>;
968
452
  */
969
453
  export declare const ToolServerHandle: z.ZodString;
970
454
  export type ToolServerHandle = z.infer<typeof ToolServerHandle>;
971
- /**
972
- * What a caller may ASK for: whole MCP servers, and nothing about who delegates them (D30).
973
- *
974
- * ⚠️ The absence of `delegatedBy` is the point, and it is why the write shape differs from the read
975
- * shape at all. Intel writes that field from the session it authorized; a caller who could name
976
- * somebody else would be handing an agent a portal connection they do not have, and the agent would
977
- * act on it unattended. Leaving the field out of the input makes that structural instead of a
978
- * runtime overwrite: a body carrying it is a parse error at the boundary, on every surface, and no
979
- * screen ever has to invent a value it has no business knowing.
980
- */
981
- export declare const AgentToolSelection: z.ZodObject<{
982
- servers: z.ZodDefault<z.ZodArray<z.ZodString>>;
983
- }, z.core.$strict>;
984
- export type AgentToolSelection = z.infer<typeof AgentToolSelection>;
985
- /**
986
- * What is STORED and read back: the selection plus whose portal connection it came from (D30).
987
- *
988
- * ⚠️ This is a selection, not a permission. Nothing here grants anything: whether a server is
989
- * reachable is still decided by one live `tools/list` with `delegatedBy`'s own portal token, so a
990
- * delegator who loses the server or the connection takes it away from the agent at the next run
991
- * with no edit to this document.
992
- *
993
- * ⚠️ Read shape only. It appears in `AgentDefinition` and never in an input — see
994
- * `AgentToolSelection` for why the two are deliberately different documents rather than one schema
995
- * with an optional field.
996
- */
997
- export declare const AgentToolDelegation: z.ZodObject<{
998
- delegatedBy: z.ZodString;
999
- servers: z.ZodDefault<z.ZodArray<z.ZodString>>;
1000
- }, z.core.$strict>;
1001
- export type AgentToolDelegation = z.infer<typeof AgentToolDelegation>;
1002
- export declare const AgentDefinition: z.ZodObject<{
1003
- tools: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1004
- delegatedBy: z.ZodString;
1005
- servers: z.ZodDefault<z.ZodArray<z.ZodString>>;
1006
- }, z.core.$strict>>>;
1007
- references: z.ZodDefault<z.ZodArray<z.ZodObject<{
1008
- nodeId: z.ZodString;
1009
- role: z.ZodEnum<{
1010
- "system-message": "system-message";
1011
- "semantic-context": "semantic-context";
1012
- memory: "memory";
1013
- }>;
1014
- }, z.core.$strict>>>;
1015
- schedules: z.ZodDefault<z.ZodArray<z.ZodObject<{
1016
- cron: z.ZodString;
1017
- timezone: z.ZodDefault<z.ZodString>;
1018
- target: z.ZodObject<{
1019
- kind: z.ZodEnum<{
1020
- document: "document";
1021
- flow: "flow";
1022
- }>;
1023
- id: z.ZodString;
1024
- }, z.core.$strict>;
1025
- }, z.core.$strict>>>;
1026
- model: z.ZodObject<{
1027
- provider: z.ZodEnum<{
1028
- "workers-ai": "workers-ai";
1029
- anthropic: "anthropic";
1030
- }>;
1031
- model: z.ZodString;
1032
- }, z.core.$strict>;
1033
- }, z.core.$strict>;
1034
- export type AgentDefinition = z.infer<typeof AgentDefinition>;
1035
- /**
1036
- * The same document as `AgentDefinition`, minus the one field a caller may not write.
1037
- *
1038
- * ⚠️ Two schemas rather than one, and the split is load-bearing (#208, D30). Everything an agent IS
1039
- * comes from whoever edits it; **whose portal connection it acts on** does not, because that is an
1040
- * authority the editor would be granting to themselves. So the write shape simply has no place to
1041
- * put it: `{ tools: { servers: [...] } }` is what a screen or an MCP client sends, Intel adds
1042
- * `delegatedBy` from the session, and a body that tries to name one is refused by the strict object
1043
- * before any of it is read. The reading shape keeps the field because a reader must be able to see
1044
- * whose connection an agent runs on.
1045
- */
1046
- export declare const AgentDefinitionInput: z.ZodObject<{
1047
- tools: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1048
- servers: z.ZodDefault<z.ZodArray<z.ZodString>>;
1049
- }, z.core.$strict>>>;
1050
- references: z.ZodDefault<z.ZodArray<z.ZodObject<{
1051
- nodeId: z.ZodString;
1052
- role: z.ZodEnum<{
1053
- "system-message": "system-message";
1054
- "semantic-context": "semantic-context";
1055
- memory: "memory";
1056
- }>;
1057
- }, z.core.$strict>>>;
1058
- schedules: z.ZodDefault<z.ZodArray<z.ZodObject<{
1059
- cron: z.ZodString;
1060
- timezone: z.ZodDefault<z.ZodString>;
1061
- target: z.ZodObject<{
1062
- kind: z.ZodEnum<{
1063
- document: "document";
1064
- flow: "flow";
1065
- }>;
1066
- id: z.ZodString;
1067
- }, z.core.$strict>;
1068
- }, z.core.$strict>>>;
1069
- model: z.ZodObject<{
1070
- provider: z.ZodEnum<{
1071
- "workers-ai": "workers-ai";
1072
- anthropic: "anthropic";
1073
- }>;
1074
- model: z.ZodString;
1075
- }, z.core.$strict>;
1076
- }, z.core.$strict>;
1077
- export type AgentDefinitionInput = z.infer<typeof AgentDefinitionInput>;
1078
- export declare const SaveAgentDefinitionInput: z.ZodObject<{
1079
- nodeId: z.ZodString;
1080
- baseVersionId: z.ZodNullable<z.ZodString>;
1081
- definition: z.ZodObject<{
1082
- tools: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1083
- servers: z.ZodDefault<z.ZodArray<z.ZodString>>;
1084
- }, z.core.$strict>>>;
1085
- references: z.ZodDefault<z.ZodArray<z.ZodObject<{
1086
- nodeId: z.ZodString;
1087
- role: z.ZodEnum<{
1088
- "system-message": "system-message";
1089
- "semantic-context": "semantic-context";
1090
- memory: "memory";
1091
- }>;
1092
- }, z.core.$strict>>>;
1093
- schedules: z.ZodDefault<z.ZodArray<z.ZodObject<{
1094
- cron: z.ZodString;
1095
- timezone: z.ZodDefault<z.ZodString>;
1096
- target: z.ZodObject<{
1097
- kind: z.ZodEnum<{
1098
- document: "document";
1099
- flow: "flow";
1100
- }>;
1101
- id: z.ZodString;
1102
- }, z.core.$strict>;
1103
- }, z.core.$strict>>>;
1104
- model: z.ZodObject<{
1105
- provider: z.ZodEnum<{
1106
- "workers-ai": "workers-ai";
1107
- anthropic: "anthropic";
1108
- }>;
1109
- model: z.ZodString;
1110
- }, z.core.$strict>;
1111
- }, z.core.$strict>;
1112
- idempotencyKey: z.ZodString;
1113
- }, z.core.$strict>;
1114
- export type SaveAgentDefinitionInput = z.infer<typeof SaveAgentDefinitionInput>;
1115
- export declare const GetAgentInput: z.ZodObject<{
1116
- nodeId: z.ZodString;
1117
- }, z.core.$strict>;
1118
- export type GetAgentInput = z.infer<typeof GetAgentInput>;
1119
- export declare const PauseAgentInput: z.ZodObject<{
1120
- nodeId: z.ZodString;
1121
- }, z.core.$strict>;
1122
- export type PauseAgentInput = z.infer<typeof PauseAgentInput>;
1123
- export declare const RunAgentNowInput: z.ZodObject<{
1124
- nodeId: z.ZodString;
1125
- target: z.ZodObject<{
1126
- kind: z.ZodEnum<{
1127
- document: "document";
1128
- flow: "flow";
1129
- }>;
1130
- id: z.ZodString;
1131
- }, z.core.$strict>;
1132
- }, z.core.$strict>;
1133
- export type RunAgentNowInput = z.infer<typeof RunAgentNowInput>;
1134
- /**
1135
- * What one agent has actually cost, read out of Cloudflare's AI Gateway log (#251).
1136
- *
1137
- * ⚠️ Intel computes none of this from tokens and a price table. The gateway publishes the billed
1138
- * figure per call, and that figure is the debit from the Cloudflare balance 1:1 — Cloudflare takes
1139
- * its 5 % when the balance is loaded and passes inference through unchanged (measured 2026-08-07).
1140
- * A second, self-maintained answer beside it would be wrong on the day the two disagreed, and the
1141
- * wrong one would be the one on screen.
1142
- *
1143
- * ⚠️ `status` travels with the numbers and may never be dropped. `runs: []` means "cost nothing"
1144
- * only when `status` is `read`; under `not_configured` or `unreadable` it means "not known", and a
1145
- * screen that renders the two alike reports an outage as a saving.
1146
- */
1147
- export declare const AgentCostStatus: z.ZodEnum<{
1148
- read: "read";
1149
- not_configured: "not_configured";
1150
- unreadable: "unreadable";
1151
- }>;
1152
- export type AgentCostStatus = z.infer<typeof AgentCostStatus>;
1153
- export declare const AgentRunCost: z.ZodObject<{
1154
- runId: z.ZodString;
1155
- cost: z.ZodNumber;
1156
- calls: z.ZodNumber;
1157
- }, z.core.$strict>;
1158
- export type AgentRunCost = z.infer<typeof AgentRunCost>;
1159
- export declare const AgentCostWindow: z.ZodObject<{
1160
- days: z.ZodNumber;
1161
- cost: z.ZodNumber;
1162
- calls: z.ZodNumber;
1163
- models: z.ZodArray<z.ZodString>;
1164
- }, z.core.$strict>;
1165
- export type AgentCostWindow = z.infer<typeof AgentCostWindow>;
1166
- export declare const AgentCosts: z.ZodObject<{
1167
- status: z.ZodEnum<{
1168
- read: "read";
1169
- not_configured: "not_configured";
1170
- unreadable: "unreadable";
1171
- }>;
1172
- currency: z.ZodLiteral<"USD">;
1173
- runs: z.ZodArray<z.ZodObject<{
1174
- runId: z.ZodString;
1175
- cost: z.ZodNumber;
1176
- calls: z.ZodNumber;
1177
- }, z.core.$strict>>;
1178
- windows: z.ZodArray<z.ZodObject<{
1179
- days: z.ZodNumber;
1180
- cost: z.ZodNumber;
1181
- calls: z.ZodNumber;
1182
- models: z.ZodArray<z.ZodString>;
1183
- }, z.core.$strict>>;
1184
- partial: z.ZodBoolean;
1185
- }, z.core.$strict>;
1186
- export type AgentCosts = z.infer<typeof AgentCosts>;
1187
- /**
1188
- * What the models on offer cost and how much they hold (#257).
1189
- *
1190
- * ⚠️ `source` is per ENTRY and not per response, and that is not over-engineering. Cloudflare
1191
- * publishes figures for the models it serves itself and none at all for the Anthropic models it
1192
- * resells through Unified Billing — so a perfectly healthy read still leaves half the list on a
1193
- * written-out table, and one flag for the whole answer would call either the read stale or the
1194
- * table live.
1195
- */
1196
- export declare const ModelPrice: z.ZodObject<{
1197
- inputPerMillion: z.ZodNumber;
1198
- outputPerMillion: z.ZodNumber;
1199
- }, z.core.$strict>;
1200
- export type ModelPrice = z.infer<typeof ModelPrice>;
1201
- export declare const ModelCatalogEntry: z.ZodObject<{
1202
- provider: z.ZodEnum<{
1203
- "workers-ai": "workers-ai";
1204
- anthropic: "anthropic";
1205
- }>;
1206
- model: z.ZodString;
1207
- name: z.ZodString;
1208
- contextTokens: z.ZodNullable<z.ZodNumber>;
1209
- price: z.ZodNullable<z.ZodObject<{
1210
- inputPerMillion: z.ZodNumber;
1211
- outputPerMillion: z.ZodNumber;
1212
- }, z.core.$strict>>;
1213
- source: z.ZodEnum<{
1214
- cloudflare: "cloudflare";
1215
- builtin: "builtin";
1216
- }>;
1217
- }, z.core.$strict>;
1218
- export type ModelCatalogEntry = z.infer<typeof ModelCatalogEntry>;
1219
- export declare const ModelCatalog: z.ZodObject<{
1220
- entries: z.ZodArray<z.ZodObject<{
1221
- provider: z.ZodEnum<{
1222
- "workers-ai": "workers-ai";
1223
- anthropic: "anthropic";
1224
- }>;
1225
- model: z.ZodString;
1226
- name: z.ZodString;
1227
- contextTokens: z.ZodNullable<z.ZodNumber>;
1228
- price: z.ZodNullable<z.ZodObject<{
1229
- inputPerMillion: z.ZodNumber;
1230
- outputPerMillion: z.ZodNumber;
1231
- }, z.core.$strict>>;
1232
- source: z.ZodEnum<{
1233
- cloudflare: "cloudflare";
1234
- builtin: "builtin";
1235
- }>;
1236
- }, z.core.$strict>>;
1237
- liveStatus: z.ZodEnum<{
1238
- read: "read";
1239
- not_configured: "not_configured";
1240
- unreadable: "unreadable";
1241
- }>;
1242
- }, z.core.$strict>;
1243
- export type ModelCatalog = z.infer<typeof ModelCatalog>;
1244
- export declare const ListAgentsInput: z.ZodObject<{
1245
- parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1246
- includeArchived: z.ZodDefault<z.ZodBoolean>;
1247
- }, z.core.$strict>;
1248
- export type ListAgentsInput = z.infer<typeof ListAgentsInput>;
1249
- export declare const CreateAgentInput: z.ZodObject<{
1250
- parentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1251
- title: z.ZodString;
1252
- description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1253
- definition: z.ZodObject<{
1254
- tools: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1255
- servers: z.ZodDefault<z.ZodArray<z.ZodString>>;
1256
- }, z.core.$strict>>>;
1257
- references: z.ZodDefault<z.ZodArray<z.ZodObject<{
1258
- nodeId: z.ZodString;
1259
- role: z.ZodEnum<{
1260
- "system-message": "system-message";
1261
- "semantic-context": "semantic-context";
1262
- memory: "memory";
1263
- }>;
1264
- }, z.core.$strict>>>;
1265
- schedules: z.ZodDefault<z.ZodArray<z.ZodObject<{
1266
- cron: z.ZodString;
1267
- timezone: z.ZodDefault<z.ZodString>;
1268
- target: z.ZodObject<{
1269
- kind: z.ZodEnum<{
1270
- document: "document";
1271
- flow: "flow";
1272
- }>;
1273
- id: z.ZodString;
1274
- }, z.core.$strict>;
1275
- }, z.core.$strict>>>;
1276
- model: z.ZodObject<{
1277
- provider: z.ZodEnum<{
1278
- "workers-ai": "workers-ai";
1279
- anthropic: "anthropic";
1280
- }>;
1281
- model: z.ZodString;
1282
- }, z.core.$strict>;
1283
- }, z.core.$strict>;
1284
- idempotencyKey: z.ZodString;
1285
- }, z.core.$strict>;
1286
- export type CreateAgentInput = z.infer<typeof CreateAgentInput>;
1287
- export declare const GateApplicationId: z.ZodString;
1288
- export declare const NodeAgent: z.ZodObject<{
1289
- node: z.ZodObject<{
1290
- id: z.ZodString;
1291
- parentId: z.ZodNullable<z.ZodString>;
1292
- kind: z.ZodEnum<{
1293
- folder: "folder";
1294
- document: "document";
1295
- attachment: "attachment";
1296
- table: "table";
1297
- agent: "agent";
1298
- board: "board";
1299
- }>;
1300
- title: z.ZodString;
1301
- description: z.ZodNullable<z.ZodString>;
1302
- ownerId: z.ZodString;
1303
- currentVersionId: z.ZodNullable<z.ZodString>;
1304
- createdAt: z.ZodISODateTime;
1305
- updatedAt: z.ZodISODateTime;
1306
- archivedAt: z.ZodNullable<z.ZodISODateTime>;
1307
- }, z.core.$strict>;
1308
- version: z.ZodNullable<z.ZodObject<{
1309
- id: z.ZodString;
1310
- nodeId: z.ZodString;
1311
- sequence: z.ZodNumber;
1312
- contentKey: z.ZodString;
1313
- mediaType: z.ZodString;
1314
- contentHash: z.ZodString;
1315
- size: z.ZodNumber;
1316
- segment: z.ZodNullable<z.ZodEnum<{
1317
- append: "append";
1318
- snapshot: "snapshot";
1319
- }>>;
1320
- createdBy: z.ZodString;
1321
- createdAt: z.ZodISODateTime;
1322
- }, z.core.$strict>>;
1323
- definition: z.ZodNullable<z.ZodObject<{
1324
- tools: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1325
- delegatedBy: z.ZodString;
1326
- servers: z.ZodDefault<z.ZodArray<z.ZodString>>;
1327
- }, z.core.$strict>>>;
1328
- references: z.ZodDefault<z.ZodArray<z.ZodObject<{
1329
- nodeId: z.ZodString;
1330
- role: z.ZodEnum<{
1331
- "system-message": "system-message";
1332
- "semantic-context": "semantic-context";
1333
- memory: "memory";
1334
- }>;
1335
- }, z.core.$strict>>>;
1336
- schedules: z.ZodDefault<z.ZodArray<z.ZodObject<{
1337
- cron: z.ZodString;
1338
- timezone: z.ZodDefault<z.ZodString>;
1339
- target: z.ZodObject<{
1340
- kind: z.ZodEnum<{
1341
- document: "document";
1342
- flow: "flow";
1343
- }>;
1344
- id: z.ZodString;
1345
- }, z.core.$strict>;
1346
- }, z.core.$strict>>>;
1347
- model: z.ZodObject<{
1348
- provider: z.ZodEnum<{
1349
- "workers-ai": "workers-ai";
1350
- anthropic: "anthropic";
1351
- }>;
1352
- model: z.ZodString;
1353
- }, z.core.$strict>;
1354
- }, z.core.$strict>>;
1355
- applicationId: z.ZodNullable<z.ZodString>;
1356
- }, z.core.$strict>;
1357
- export type NodeAgent = z.infer<typeof NodeAgent>;
1358
- /**
1359
- * ⚠️ There is NO key field in this file, and adding one back would be the regression (D29, #207).
1360
- *
1361
- * Until #207 the create answer carried the Application key in plain text, once, and a person had to
1362
- * carry it into a Worker secret by hand — which is why an agent created through the screen could
1363
- * never run (#200). The key now goes from Gate straight into the agent runtime over Intel's service
1364
- * binding and is encrypted into that agent's Durable Object; it reaches no browser, no MCP tool
1365
- * result and no response body at all. `NodeAgent` is a `z.strictObject`, so a field named `key`
1366
- * added anywhere in this file is a parse error at the boundary rather than a leak somebody has to
1367
- * spot in review.
1368
- *
1369
- * What `POST /nodes/agents` and `agent_create` answer is therefore exactly what every read answers:
1370
- * the node, its first definition, and the `applicationId` that NAMES the principal without
1371
- * authenticating it.
1372
- */
1373
- export declare const CreatedAgent: z.ZodObject<{
1374
- node: z.ZodObject<{
1375
- id: z.ZodString;
1376
- parentId: z.ZodNullable<z.ZodString>;
1377
- kind: z.ZodEnum<{
1378
- folder: "folder";
1379
- document: "document";
1380
- attachment: "attachment";
1381
- table: "table";
1382
- agent: "agent";
1383
- board: "board";
1384
- }>;
1385
- title: z.ZodString;
1386
- description: z.ZodNullable<z.ZodString>;
1387
- ownerId: z.ZodString;
1388
- currentVersionId: z.ZodNullable<z.ZodString>;
1389
- createdAt: z.ZodISODateTime;
1390
- updatedAt: z.ZodISODateTime;
1391
- archivedAt: z.ZodNullable<z.ZodISODateTime>;
1392
- }, z.core.$strict>;
1393
- version: z.ZodNullable<z.ZodObject<{
1394
- id: z.ZodString;
1395
- nodeId: z.ZodString;
1396
- sequence: z.ZodNumber;
1397
- contentKey: z.ZodString;
1398
- mediaType: z.ZodString;
1399
- contentHash: z.ZodString;
1400
- size: z.ZodNumber;
1401
- segment: z.ZodNullable<z.ZodEnum<{
1402
- append: "append";
1403
- snapshot: "snapshot";
1404
- }>>;
1405
- createdBy: z.ZodString;
1406
- createdAt: z.ZodISODateTime;
1407
- }, z.core.$strict>>;
1408
- definition: z.ZodNullable<z.ZodObject<{
1409
- tools: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1410
- delegatedBy: z.ZodString;
1411
- servers: z.ZodDefault<z.ZodArray<z.ZodString>>;
1412
- }, z.core.$strict>>>;
1413
- references: z.ZodDefault<z.ZodArray<z.ZodObject<{
1414
- nodeId: z.ZodString;
1415
- role: z.ZodEnum<{
1416
- "system-message": "system-message";
1417
- "semantic-context": "semantic-context";
1418
- memory: "memory";
1419
- }>;
1420
- }, z.core.$strict>>>;
1421
- schedules: z.ZodDefault<z.ZodArray<z.ZodObject<{
1422
- cron: z.ZodString;
1423
- timezone: z.ZodDefault<z.ZodString>;
1424
- target: z.ZodObject<{
1425
- kind: z.ZodEnum<{
1426
- document: "document";
1427
- flow: "flow";
1428
- }>;
1429
- id: z.ZodString;
1430
- }, z.core.$strict>;
1431
- }, z.core.$strict>>>;
1432
- model: z.ZodObject<{
1433
- provider: z.ZodEnum<{
1434
- "workers-ai": "workers-ai";
1435
- anthropic: "anthropic";
1436
- }>;
1437
- model: z.ZodString;
1438
- }, z.core.$strict>;
1439
- }, z.core.$strict>>;
1440
- applicationId: z.ZodNullable<z.ZodString>;
1441
- }, z.core.$strict>;
1442
- export type CreatedAgent = z.infer<typeof CreatedAgent>;
1443
- export declare const RotateAgentKeyInput: z.ZodObject<{
1444
- nodeId: z.ZodString;
1445
- }, z.core.$strict>;
1446
- export type RotateAgentKeyInput = z.infer<typeof RotateAgentKeyInput>;
1447
- /**
1448
- * What replacing an agent's key answers.
1449
- *
1450
- * ⚠️ No key, and that is the whole shape of D29: Intel asks Gate for a new one, hands it to the
1451
- * runtime over the service binding, and forgets it inside the same call. What the caller gets is
1452
- * the fact that it happened, so a screen can say so — `applicationId` names the principal whose key
1453
- * was replaced, which is a name and not a credential.
1454
- */
1455
- export declare const AgentKeyRotated: z.ZodObject<{
1456
- nodeId: z.ZodString;
1457
- applicationId: z.ZodString;
1458
- rotatedAt: z.ZodISODateTime;
1459
- }, z.core.$strict>;
1460
- export type AgentKeyRotated = z.infer<typeof AgentKeyRotated>;
1461
- export declare const AgentList: z.ZodObject<{
1462
- items: z.ZodArray<z.ZodObject<{
1463
- id: z.ZodString;
1464
- parentId: z.ZodNullable<z.ZodString>;
1465
- kind: z.ZodEnum<{
1466
- folder: "folder";
1467
- document: "document";
1468
- attachment: "attachment";
1469
- table: "table";
1470
- agent: "agent";
1471
- board: "board";
1472
- }>;
1473
- title: z.ZodString;
1474
- description: z.ZodNullable<z.ZodString>;
1475
- ownerId: z.ZodString;
1476
- currentVersionId: z.ZodNullable<z.ZodString>;
1477
- createdAt: z.ZodISODateTime;
1478
- updatedAt: z.ZodISODateTime;
1479
- archivedAt: z.ZodNullable<z.ZodISODateTime>;
1480
- }, z.core.$strict>>;
1481
- }, z.core.$strict>;
1482
- export type AgentList = z.infer<typeof AgentList>;
1483
455
  export declare const NodeLinkRelation: z.ZodEnum<{
1484
456
  references: "references";
1485
457
  related: "related";
@@ -1562,8 +534,6 @@ export declare const NodeGraph: z.ZodObject<{
1562
534
  document: "document";
1563
535
  attachment: "attachment";
1564
536
  table: "table";
1565
- agent: "agent";
1566
- board: "board";
1567
537
  }>;
1568
538
  title: z.ZodString;
1569
539
  description: z.ZodNullable<z.ZodString>;
@@ -2788,8 +1758,6 @@ export declare const RelationNodeKind: z.ZodEnum<{
2788
1758
  document: "document";
2789
1759
  attachment: "attachment";
2790
1760
  table: "table";
2791
- agent: "agent";
2792
- board: "board";
2793
1761
  flow: "flow";
2794
1762
  }>;
2795
1763
  export type RelationNodeKind = z.infer<typeof RelationNodeKind>;
@@ -2800,8 +1768,6 @@ export declare const RelationNode: z.ZodObject<{
2800
1768
  document: "document";
2801
1769
  attachment: "attachment";
2802
1770
  table: "table";
2803
- agent: "agent";
2804
- board: "board";
2805
1771
  flow: "flow";
2806
1772
  }>;
2807
1773
  title: z.ZodString;
@@ -2852,8 +1818,6 @@ export declare const RelationGraph: z.ZodObject<{
2852
1818
  document: "document";
2853
1819
  attachment: "attachment";
2854
1820
  table: "table";
2855
- agent: "agent";
2856
- board: "board";
2857
1821
  flow: "flow";
2858
1822
  }>;
2859
1823
  title: z.ZodString;
@@ -3218,14 +2182,28 @@ export declare const FlowRunHistory: z.ZodObject<{
3218
2182
  }, z.core.$strict>;
3219
2183
  export type FlowRunHistory = z.infer<typeof FlowRunHistory>;
3220
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
+ */
3221
2199
  export declare const BundleEntryKind: z.ZodEnum<{
3222
2200
  folder: "folder";
3223
2201
  document: "document";
3224
2202
  attachment: "attachment";
3225
2203
  table: "table";
2204
+ flow: "flow";
3226
2205
  agent: "agent";
3227
2206
  board: "board";
3228
- flow: "flow";
3229
2207
  }>;
3230
2208
  export type BundleEntryKind = z.infer<typeof BundleEntryKind>;
3231
2209
  export declare const BundleManifestEntry: z.ZodObject<{
@@ -3235,9 +2213,9 @@ export declare const BundleManifestEntry: z.ZodObject<{
3235
2213
  document: "document";
3236
2214
  attachment: "attachment";
3237
2215
  table: "table";
2216
+ flow: "flow";
3238
2217
  agent: "agent";
3239
2218
  board: "board";
3240
- flow: "flow";
3241
2219
  }>;
3242
2220
  title: z.ZodString;
3243
2221
  description: z.ZodNullable<z.ZodString>;
@@ -3263,9 +2241,9 @@ export declare const BundleManifest: z.ZodObject<{
3263
2241
  document: "document";
3264
2242
  attachment: "attachment";
3265
2243
  table: "table";
2244
+ flow: "flow";
3266
2245
  agent: "agent";
3267
2246
  board: "board";
3268
- flow: "flow";
3269
2247
  }>;
3270
2248
  title: z.ZodString;
3271
2249
  description: z.ZodNullable<z.ZodString>;