@anchrd/colab-sdk 0.1.31 → 0.1.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/README.md +3 -1
  2. package/dist/actions/actions.d.ts +46 -17
  3. package/dist/actions/actions.js +10 -0
  4. package/dist/archive/archive.d.ts +10 -0
  5. package/dist/archive/archive.js +9 -0
  6. package/dist/boards/boards.d.ts +29 -25
  7. package/dist/boards/boards.js +3 -2
  8. package/dist/card-kinds/card-kinds.d.ts +5 -5
  9. package/dist/columns/columns.d.ts +2 -2
  10. package/dist/connectors/connectors.d.ts +37 -3
  11. package/dist/connectors/connectors.js +6 -2
  12. package/dist/crawls/crawls.d.ts +3 -3
  13. package/dist/documents/documents.d.ts +4 -0
  14. package/dist/documents/documents.js +3 -2
  15. package/dist/error/error.d.ts +1 -0
  16. package/dist/error/error.js +8 -1
  17. package/dist/files/files.d.ts +4 -0
  18. package/dist/files/files.js +3 -2
  19. package/dist/gadgets/gadgets.d.ts +44 -0
  20. package/dist/gadgets/gadgets.js +35 -5
  21. package/dist/goals/goals.d.ts +7 -0
  22. package/dist/goals/goals.js +7 -5
  23. package/dist/grammar/grammar.d.ts +2 -1
  24. package/dist/grammar/grammar.js +9 -3
  25. package/dist/mcps/mcps.d.ts +41 -3
  26. package/dist/mcps/mcps.js +53 -3
  27. package/dist/nodes/nodes.d.ts +21 -9
  28. package/dist/nodes/nodes.js +16 -2
  29. package/dist/operators/operators.js +1 -1
  30. package/dist/organisation/organisation.d.ts +45 -0
  31. package/dist/organisation/organisation.js +45 -0
  32. package/dist/profile/profile.d.ts +3 -3
  33. package/dist/profile/profile.js +3 -2
  34. package/dist/providers/providers.d.ts +128 -0
  35. package/dist/providers/providers.js +118 -0
  36. package/dist/runs/runs.d.ts +3 -3
  37. package/dist/runtime-config.d.ts +12 -0
  38. package/dist/runtime-config.js +10 -0
  39. package/dist/sdk.d.ts +5 -4
  40. package/dist/sdk.js +5 -4
  41. package/dist/skills/skills.d.ts +4 -0
  42. package/dist/skills/skills.js +3 -2
  43. package/dist/sources/sources.d.ts +19 -4
  44. package/dist/sources/sources.js +9 -3
  45. package/dist/tables/tables.d.ts +4 -0
  46. package/dist/tables/tables.js +3 -2
  47. package/dist/versions/versions.d.ts +13 -13
  48. package/dist/written/written.d.ts +5 -2
  49. package/dist/written/written.js +2 -2
  50. package/package.json +1 -1
  51. package/dist/sso/sso.d.ts +0 -71
  52. package/dist/sso/sso.js +0 -59
@@ -12,18 +12,22 @@ export declare const BoardKind: z.ZodEnum<{
12
12
  export type BoardKind = z.infer<typeof BoardKind>;
13
13
  export declare const BoardCreateInput: z.ZodObject<{
14
14
  parentId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
15
+ section: z.ZodOptional<z.ZodEnum<{
16
+ own: "own";
17
+ shared: "shared";
18
+ }>>;
15
19
  name: z.ZodString;
16
20
  columns: z.ZodOptional<z.ZodArray<z.ZodObject<{
17
21
  columnId: z.ZodOptional<z.ZodTemplateLiteral<`column_${string}`>>;
18
22
  name: z.ZodString;
19
23
  type: z.ZodEnum<{
24
+ archive: "archive";
20
25
  backlog: "backlog";
21
26
  open: "open";
22
27
  progress: "progress";
23
28
  done: "done";
24
29
  discarded: "discarded";
25
30
  blocked: "blocked";
26
- archive: "archive";
27
31
  }>;
28
32
  visible: z.ZodOptional<z.ZodBoolean>;
29
33
  description: z.ZodOptional<z.ZodString>;
@@ -35,8 +39,8 @@ export declare const BoardCreateInput: z.ZodObject<{
35
39
  message: "message";
36
40
  user: "user";
37
41
  package: "package";
38
- target: "target";
39
42
  search: "search";
43
+ target: "target";
40
44
  calendar: "calendar";
41
45
  flag: "flag";
42
46
  route: "route";
@@ -90,13 +94,13 @@ export declare const BoardUpdateInput: z.ZodObject<{
90
94
  columnId: z.ZodOptional<z.ZodTemplateLiteral<`column_${string}`>>;
91
95
  name: z.ZodString;
92
96
  type: z.ZodEnum<{
97
+ archive: "archive";
93
98
  backlog: "backlog";
94
99
  open: "open";
95
100
  progress: "progress";
96
101
  done: "done";
97
102
  discarded: "discarded";
98
103
  blocked: "blocked";
99
- archive: "archive";
100
104
  }>;
101
105
  visible: z.ZodOptional<z.ZodBoolean>;
102
106
  description: z.ZodOptional<z.ZodString>;
@@ -108,8 +112,8 @@ export declare const BoardUpdateInput: z.ZodObject<{
108
112
  message: "message";
109
113
  user: "user";
110
114
  package: "package";
111
- target: "target";
112
115
  search: "search";
116
+ target: "target";
113
117
  calendar: "calendar";
114
118
  flag: "flag";
115
119
  route: "route";
@@ -155,13 +159,13 @@ export declare const BoardColumn: z.ZodObject<{
155
159
  columnId: z.ZodTemplateLiteral<`column_${string}`>;
156
160
  name: z.ZodString;
157
161
  type: z.ZodEnum<{
162
+ archive: "archive";
158
163
  backlog: "backlog";
159
164
  open: "open";
160
165
  progress: "progress";
161
166
  done: "done";
162
167
  discarded: "discarded";
163
168
  blocked: "blocked";
164
- archive: "archive";
165
169
  }>;
166
170
  visible: z.ZodBoolean;
167
171
  description: z.ZodString;
@@ -197,13 +201,13 @@ export declare const BoardDetail: z.ZodObject<{
197
201
  columnId: z.ZodTemplateLiteral<`column_${string}`>;
198
202
  name: z.ZodString;
199
203
  type: z.ZodEnum<{
204
+ archive: "archive";
200
205
  backlog: "backlog";
201
206
  open: "open";
202
207
  progress: "progress";
203
208
  done: "done";
204
209
  discarded: "discarded";
205
210
  blocked: "blocked";
206
- archive: "archive";
207
211
  }>;
208
212
  visible: z.ZodBoolean;
209
213
  description: z.ZodString;
@@ -216,8 +220,8 @@ export declare const BoardDetail: z.ZodObject<{
216
220
  message: "message";
217
221
  user: "user";
218
222
  package: "package";
219
- target: "target";
220
223
  search: "search";
224
+ target: "target";
221
225
  calendar: "calendar";
222
226
  flag: "flag";
223
227
  route: "route";
@@ -271,13 +275,13 @@ export declare const BoardTaskListInput: z.ZodObject<{
271
275
  runId: z.ZodOptional<z.ZodTemplateLiteral<`run_${string}`>>;
272
276
  columnId: z.ZodOptional<z.ZodTemplateLiteral<`column_${string}`>>;
273
277
  type: z.ZodOptional<z.ZodEnum<{
278
+ archive: "archive";
274
279
  backlog: "backlog";
275
280
  open: "open";
276
281
  progress: "progress";
277
282
  done: "done";
278
283
  discarded: "discarded";
279
284
  blocked: "blocked";
280
- archive: "archive";
281
285
  }>>;
282
286
  assigneeId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
283
287
  labelId: z.ZodOptional<z.ZodTemplateLiteral<`label_${string}`>>;
@@ -402,13 +406,13 @@ export declare const BoardTaskItem: z.ZodObject<{
402
406
  columnId: z.ZodTemplateLiteral<`column_${string}`>;
403
407
  name: z.ZodString;
404
408
  type: z.ZodEnum<{
409
+ archive: "archive";
405
410
  backlog: "backlog";
406
411
  open: "open";
407
412
  progress: "progress";
408
413
  done: "done";
409
414
  discarded: "discarded";
410
415
  blocked: "blocked";
411
- archive: "archive";
412
416
  }>;
413
417
  }, z.core.$strip>;
414
418
  assignee: z.ZodObject<{
@@ -442,8 +446,8 @@ export declare const BoardTaskItem: z.ZodObject<{
442
446
  message: "message";
443
447
  user: "user";
444
448
  package: "package";
445
- target: "target";
446
449
  search: "search";
450
+ target: "target";
447
451
  calendar: "calendar";
448
452
  flag: "flag";
449
453
  route: "route";
@@ -505,13 +509,13 @@ export declare const BoardTaskList: z.ZodObject<{
505
509
  columnId: z.ZodTemplateLiteral<`column_${string}`>;
506
510
  name: z.ZodString;
507
511
  type: z.ZodEnum<{
512
+ archive: "archive";
508
513
  backlog: "backlog";
509
514
  open: "open";
510
515
  progress: "progress";
511
516
  done: "done";
512
517
  discarded: "discarded";
513
518
  blocked: "blocked";
514
- archive: "archive";
515
519
  }>;
516
520
  }, z.core.$strip>;
517
521
  assignee: z.ZodObject<{
@@ -545,8 +549,8 @@ export declare const BoardTaskList: z.ZodObject<{
545
549
  message: "message";
546
550
  user: "user";
547
551
  package: "package";
548
- target: "target";
549
552
  search: "search";
553
+ target: "target";
550
554
  calendar: "calendar";
551
555
  flag: "flag";
552
556
  route: "route";
@@ -610,13 +614,13 @@ export declare const BoardTaskList: z.ZodObject<{
610
614
  columnId: z.ZodTemplateLiteral<`column_${string}`>;
611
615
  name: z.ZodString;
612
616
  type: z.ZodEnum<{
617
+ archive: "archive";
613
618
  backlog: "backlog";
614
619
  open: "open";
615
620
  progress: "progress";
616
621
  done: "done";
617
622
  discarded: "discarded";
618
623
  blocked: "blocked";
619
- archive: "archive";
620
624
  }>;
621
625
  visible: z.ZodBoolean;
622
626
  description: z.ZodString;
@@ -629,13 +633,13 @@ export declare const BoardTaskBrief: z.ZodObject<{
629
633
  columnId: z.ZodTemplateLiteral<`column_${string}`>;
630
634
  name: z.ZodString;
631
635
  type: z.ZodEnum<{
636
+ archive: "archive";
632
637
  backlog: "backlog";
633
638
  open: "open";
634
639
  progress: "progress";
635
640
  done: "done";
636
641
  discarded: "discarded";
637
642
  blocked: "blocked";
638
- archive: "archive";
639
643
  }>;
640
644
  }, z.core.$strip>;
641
645
  taskId: z.ZodTemplateLiteral<`node_${string}`>;
@@ -664,13 +668,13 @@ export declare const BoardTaskBriefList: z.ZodObject<{
664
668
  columnId: z.ZodTemplateLiteral<`column_${string}`>;
665
669
  name: z.ZodString;
666
670
  type: z.ZodEnum<{
671
+ archive: "archive";
667
672
  backlog: "backlog";
668
673
  open: "open";
669
674
  progress: "progress";
670
675
  done: "done";
671
676
  discarded: "discarded";
672
677
  blocked: "blocked";
673
- archive: "archive";
674
678
  }>;
675
679
  visible: z.ZodBoolean;
676
680
  description: z.ZodString;
@@ -681,13 +685,13 @@ export declare const BoardTaskBriefList: z.ZodObject<{
681
685
  columnId: z.ZodTemplateLiteral<`column_${string}`>;
682
686
  name: z.ZodString;
683
687
  type: z.ZodEnum<{
688
+ archive: "archive";
684
689
  backlog: "backlog";
685
690
  open: "open";
686
691
  progress: "progress";
687
692
  done: "done";
688
693
  discarded: "discarded";
689
694
  blocked: "blocked";
690
- archive: "archive";
691
695
  }>;
692
696
  }, z.core.$strip>;
693
697
  taskId: z.ZodTemplateLiteral<`node_${string}`>;
@@ -714,13 +718,13 @@ export declare const TaskDetail: z.ZodObject<{
714
718
  columnId: z.ZodTemplateLiteral<`column_${string}`>;
715
719
  name: z.ZodString;
716
720
  type: z.ZodEnum<{
721
+ archive: "archive";
717
722
  backlog: "backlog";
718
723
  open: "open";
719
724
  progress: "progress";
720
725
  done: "done";
721
726
  discarded: "discarded";
722
727
  blocked: "blocked";
723
- archive: "archive";
724
728
  }>;
725
729
  }, z.core.$strip>;
726
730
  columnAt: z.ZodISODateTime;
@@ -771,13 +775,13 @@ export declare const TaskDetail: z.ZodObject<{
771
775
  columnId: z.ZodTemplateLiteral<`column_${string}`>;
772
776
  name: z.ZodString;
773
777
  type: z.ZodEnum<{
778
+ archive: "archive";
774
779
  backlog: "backlog";
775
780
  open: "open";
776
781
  progress: "progress";
777
782
  done: "done";
778
783
  discarded: "discarded";
779
784
  blocked: "blocked";
780
- archive: "archive";
781
785
  }>;
782
786
  }, z.core.$strip>;
783
787
  kind: z.ZodNullable<z.ZodObject<{
@@ -787,8 +791,8 @@ export declare const TaskDetail: z.ZodObject<{
787
791
  message: "message";
788
792
  user: "user";
789
793
  package: "package";
790
- target: "target";
791
794
  search: "search";
795
+ target: "target";
792
796
  calendar: "calendar";
793
797
  flag: "flag";
794
798
  route: "route";
@@ -813,13 +817,13 @@ export declare const TaskDetail: z.ZodObject<{
813
817
  columnId: z.ZodTemplateLiteral<`column_${string}`>;
814
818
  name: z.ZodString;
815
819
  type: z.ZodEnum<{
820
+ archive: "archive";
816
821
  backlog: "backlog";
817
822
  open: "open";
818
823
  progress: "progress";
819
824
  done: "done";
820
825
  discarded: "discarded";
821
826
  blocked: "blocked";
822
- archive: "archive";
823
827
  }>;
824
828
  }, z.core.$strip>;
825
829
  kind: z.ZodNullable<z.ZodObject<{
@@ -829,8 +833,8 @@ export declare const TaskDetail: z.ZodObject<{
829
833
  message: "message";
830
834
  user: "user";
831
835
  package: "package";
832
- target: "target";
833
836
  search: "search";
837
+ target: "target";
834
838
  calendar: "calendar";
835
839
  flag: "flag";
836
840
  route: "route";
@@ -860,8 +864,8 @@ export declare const TaskDetail: z.ZodObject<{
860
864
  message: "message";
861
865
  user: "user";
862
866
  package: "package";
863
- target: "target";
864
867
  search: "search";
868
+ target: "target";
865
869
  calendar: "calendar";
866
870
  flag: "flag";
867
871
  route: "route";
@@ -925,26 +929,26 @@ export declare const TaskDetail: z.ZodObject<{
925
929
  columnId: z.ZodTemplateLiteral<`column_${string}`>;
926
930
  name: z.ZodNullable<z.ZodString>;
927
931
  type: z.ZodNullable<z.ZodEnum<{
932
+ archive: "archive";
928
933
  backlog: "backlog";
929
934
  open: "open";
930
935
  progress: "progress";
931
936
  done: "done";
932
937
  discarded: "discarded";
933
938
  blocked: "blocked";
934
- archive: "archive";
935
939
  }>>;
936
940
  }, z.core.$strip>>;
937
941
  to: z.ZodObject<{
938
942
  columnId: z.ZodTemplateLiteral<`column_${string}`>;
939
943
  name: z.ZodNullable<z.ZodString>;
940
944
  type: z.ZodNullable<z.ZodEnum<{
945
+ archive: "archive";
941
946
  backlog: "backlog";
942
947
  open: "open";
943
948
  progress: "progress";
944
949
  done: "done";
945
950
  discarded: "discarded";
946
951
  blocked: "blocked";
947
- archive: "archive";
948
952
  }>>;
949
953
  }, z.core.$strip>;
950
954
  comment: z.ZodNullable<z.ZodString>;
@@ -981,13 +985,13 @@ export declare const TaskDetail: z.ZodObject<{
981
985
  columnId: z.ZodTemplateLiteral<`column_${string}`>;
982
986
  name: z.ZodString;
983
987
  type: z.ZodEnum<{
988
+ archive: "archive";
984
989
  backlog: "backlog";
985
990
  open: "open";
986
991
  progress: "progress";
987
992
  done: "done";
988
993
  discarded: "discarded";
989
994
  blocked: "blocked";
990
- archive: "archive";
991
995
  }>;
992
996
  visible: z.ZodBoolean;
993
997
  description: z.ZodString;
@@ -4,7 +4,7 @@ import { ColumnId, ColumnType, TaskColumn } from "../columns/columns.js";
4
4
  import { idSchema } from "../ids/ids.js";
5
5
  import { InstructionRead, Known } from "../instructions/instructions.js";
6
6
  import { Flag } from "../list-input.js";
7
- import { BoardShownKind, BoardSystem, NodeId, NodePerson } from "../nodes/nodes.js";
7
+ import { BoardShownKind, BoardSystem, CreateSection, NodeId, NodePerson } from "../nodes/nodes.js";
8
8
  import { IdempotencyKey, Rev } from "../primitives/primitives.js";
9
9
  import { TicketSubject, TicketSubjectRef } from "../validation/validation.js";
10
10
  import { TaskMove } from "../versions/versions.js";
@@ -51,7 +51,8 @@ const Columns = z
51
51
  .describe("The board's columns, all of them, in their order: a column with columnId is kept, one without is made, and a column left out is removed. Exactly one column of type archive, always last; it cannot be removed. A column that still holds tasks cannot be removed: move them first.");
52
52
  export const BoardCreateInput = z.strictObject({
53
53
  // ⚠️ Required and nullable (trap C015): null is the top level of Shared.
54
- parentId: NodeId.nullable().describe("The folder to create the board in, one you can write to; null creates it on the top level of Shared, visible to you until you share it."),
54
+ parentId: NodeId.nullable().describe("The folder to create the board in, one you can write to; null creates it in your own root folder (Own), or on the top level of Shared with section shared, where only you see it until you share it."),
55
+ section: CreateSection,
55
56
  name: Name.describe("The board's name as people read it."),
56
57
  columns: Columns.optional().describe("The board's columns in their order, without columnId, each with its description if it has one. Exactly one of type archive, last. Leaving it out gives Backlog, Open, In progress, Done and Archive, named in your language."),
57
58
  // #675: a copied template has its kinds with the create, not with a second call.
@@ -21,8 +21,8 @@ export declare const CardKindIcon: z.ZodEnum<{
21
21
  message: "message";
22
22
  user: "user";
23
23
  package: "package";
24
- target: "target";
25
24
  search: "search";
25
+ target: "target";
26
26
  calendar: "calendar";
27
27
  flag: "flag";
28
28
  route: "route";
@@ -68,8 +68,8 @@ export declare const CardKindInput: z.ZodObject<{
68
68
  message: "message";
69
69
  user: "user";
70
70
  package: "package";
71
- target: "target";
72
71
  search: "search";
72
+ target: "target";
73
73
  calendar: "calendar";
74
74
  flag: "flag";
75
75
  route: "route";
@@ -113,8 +113,8 @@ export declare const CardKindsInput: z.ZodArray<z.ZodObject<{
113
113
  message: "message";
114
114
  user: "user";
115
115
  package: "package";
116
- target: "target";
117
116
  search: "search";
117
+ target: "target";
118
118
  calendar: "calendar";
119
119
  flag: "flag";
120
120
  route: "route";
@@ -183,8 +183,8 @@ export declare const CardKind: z.ZodObject<{
183
183
  message: "message";
184
184
  user: "user";
185
185
  package: "package";
186
- target: "target";
187
186
  search: "search";
187
+ target: "target";
188
188
  calendar: "calendar";
189
189
  flag: "flag";
190
190
  route: "route";
@@ -228,8 +228,8 @@ export declare const TaskKind: z.ZodObject<{
228
228
  message: "message";
229
229
  user: "user";
230
230
  package: "package";
231
- target: "target";
232
231
  search: "search";
232
+ target: "target";
233
233
  calendar: "calendar";
234
234
  flag: "flag";
235
235
  route: "route";
@@ -3,26 +3,26 @@ export declare const ColumnId: z.ZodTemplateLiteral<`column_${string}`>;
3
3
  export type ColumnId = z.infer<typeof ColumnId>;
4
4
  export declare const columnTypes: readonly ["backlog", "open", "progress", "done", "discarded", "blocked", "archive"];
5
5
  export declare const ColumnType: z.ZodEnum<{
6
+ archive: "archive";
6
7
  backlog: "backlog";
7
8
  open: "open";
8
9
  progress: "progress";
9
10
  done: "done";
10
11
  discarded: "discarded";
11
12
  blocked: "blocked";
12
- archive: "archive";
13
13
  }>;
14
14
  export type ColumnType = z.infer<typeof ColumnType>;
15
15
  export declare const TaskColumn: z.ZodObject<{
16
16
  columnId: z.ZodTemplateLiteral<`column_${string}`>;
17
17
  name: z.ZodString;
18
18
  type: z.ZodEnum<{
19
+ archive: "archive";
19
20
  backlog: "backlog";
20
21
  open: "open";
21
22
  progress: "progress";
22
23
  done: "done";
23
24
  discarded: "discarded";
24
25
  blocked: "blocked";
25
- archive: "archive";
26
26
  }>;
27
27
  }, z.core.$strip>;
28
28
  export type TaskColumn = z.infer<typeof TaskColumn>;
@@ -67,7 +67,7 @@ export type ConnectorManifestTool = z.infer<typeof ConnectorManifestTool>;
67
67
  export declare const ConnectorManifest: z.ZodObject<{
68
68
  id: z.ZodString;
69
69
  name: z.ZodString;
70
- category: z.ZodString;
70
+ category: z.ZodOptional<z.ZodString>;
71
71
  description: z.ZodString;
72
72
  base: z.ZodString;
73
73
  hosts: z.ZodArray<z.ZodString>;
@@ -123,7 +123,7 @@ export declare const ConnectorCreateInput: z.ZodObject<{
123
123
  connectorId: z.ZodString;
124
124
  name: z.ZodString;
125
125
  description: z.ZodString;
126
- category: z.ZodString;
126
+ category: z.ZodOptional<z.ZodString>;
127
127
  base: z.ZodString;
128
128
  access: z.ZodEnum<{
129
129
  query: "query";
@@ -220,6 +220,16 @@ export declare const ConnectorTestRun: z.ZodObject<{
220
220
  column: z.ZodNumber;
221
221
  }, z.core.$strip>>;
222
222
  }, z.core.$strip>>;
223
+ note: z.ZodOptional<z.ZodString>;
224
+ limits: z.ZodObject<{
225
+ testMs: z.ZodNumber;
226
+ testTools: z.ZodNumber;
227
+ fileMs: z.ZodNumber;
228
+ fileCpuMs: z.ZodNumber;
229
+ fileMemoryMb: z.ZodNumber;
230
+ filesAtOnce: z.ZodNumber;
231
+ runMs: z.ZodNumber;
232
+ }, z.core.$strip>;
223
233
  }, z.core.$strip>;
224
234
  export type ConnectorTestRun = z.infer<typeof ConnectorTestRun>;
225
235
  export declare const ConnectorField: z.ZodObject<{
@@ -228,6 +238,7 @@ export declare const ConnectorField: z.ZodObject<{
228
238
  help: z.ZodOptional<z.ZodString>;
229
239
  placeholder: z.ZodOptional<z.ZodString>;
230
240
  optional: z.ZodBoolean;
241
+ default: z.ZodOptional<z.ZodString>;
231
242
  kind: z.ZodEnum<{
232
243
  secret: "secret";
233
244
  setting: "setting";
@@ -258,6 +269,7 @@ export declare const Connector: z.ZodObject<{
258
269
  help: z.ZodOptional<z.ZodString>;
259
270
  placeholder: z.ZodOptional<z.ZodString>;
260
271
  optional: z.ZodBoolean;
272
+ default: z.ZodOptional<z.ZodString>;
261
273
  kind: z.ZodEnum<{
262
274
  secret: "secret";
263
275
  setting: "setting";
@@ -326,6 +338,7 @@ export declare const ConnectorDetail: z.ZodObject<{
326
338
  help: z.ZodOptional<z.ZodString>;
327
339
  placeholder: z.ZodOptional<z.ZodString>;
328
340
  optional: z.ZodBoolean;
341
+ default: z.ZodOptional<z.ZodString>;
329
342
  kind: z.ZodEnum<{
330
343
  secret: "secret";
331
344
  setting: "setting";
@@ -378,7 +391,7 @@ export declare const ConnectorDetail: z.ZodObject<{
378
391
  manifest: z.ZodNullable<z.ZodObject<{
379
392
  id: z.ZodString;
380
393
  name: z.ZodString;
381
- category: z.ZodString;
394
+ category: z.ZodOptional<z.ZodString>;
382
395
  description: z.ZodString;
383
396
  base: z.ZodString;
384
397
  hosts: z.ZodArray<z.ZodString>;
@@ -472,6 +485,16 @@ export declare const ConnectorDetail: z.ZodObject<{
472
485
  column: z.ZodNumber;
473
486
  }, z.core.$strip>>;
474
487
  }, z.core.$strip>>;
488
+ note: z.ZodOptional<z.ZodString>;
489
+ limits: z.ZodObject<{
490
+ testMs: z.ZodNumber;
491
+ testTools: z.ZodNumber;
492
+ fileMs: z.ZodNumber;
493
+ fileCpuMs: z.ZodNumber;
494
+ fileMemoryMb: z.ZodNumber;
495
+ filesAtOnce: z.ZodNumber;
496
+ runMs: z.ZodNumber;
497
+ }, z.core.$strip>;
475
498
  }, z.core.$strip>>;
476
499
  versions: z.ZodArray<z.ZodObject<{
477
500
  version: z.ZodNumber;
@@ -534,6 +557,16 @@ export declare const ConnectorTestAnswer: z.ZodUnion<readonly [z.ZodObject<{
534
557
  column: z.ZodNumber;
535
558
  }, z.core.$strip>>;
536
559
  }, z.core.$strip>>;
560
+ note: z.ZodOptional<z.ZodString>;
561
+ limits: z.ZodObject<{
562
+ testMs: z.ZodNumber;
563
+ testTools: z.ZodNumber;
564
+ fileMs: z.ZodNumber;
565
+ fileCpuMs: z.ZodNumber;
566
+ fileMemoryMb: z.ZodNumber;
567
+ filesAtOnce: z.ZodNumber;
568
+ runMs: z.ZodNumber;
569
+ }, z.core.$strip>;
537
570
  }, z.core.$strip>;
538
571
  }, z.core.$strip>, z.ZodObject<{
539
572
  connection: z.ZodObject<{
@@ -564,6 +597,7 @@ export declare const ConnectorList: z.ZodObject<{
564
597
  help: z.ZodOptional<z.ZodString>;
565
598
  placeholder: z.ZodOptional<z.ZodString>;
566
599
  optional: z.ZodBoolean;
600
+ default: z.ZodOptional<z.ZodString>;
567
601
  kind: z.ZodEnum<{
568
602
  secret: "secret";
569
603
  setting: "setting";
@@ -87,7 +87,8 @@ export const ConnectorManifestTool = z.strictObject({
87
87
  export const ConnectorManifest = z.strictObject({
88
88
  id: ConnectorId,
89
89
  name: z.string().min(1).max(100),
90
- category: z.string().min(1).max(50),
90
+ // Optional since #924: no longer asked for and not shown; a connector that carries one stays valid.
91
+ category: z.string().min(1).max(50).optional(),
91
92
  description: z.string().max(500),
92
93
  // Every request's address starts here; `{{settings.NAME}}` puts in a setting.
93
94
  base: z.string().min(1).max(500),
@@ -111,7 +112,8 @@ export const ConnectorCreateInput = z.strictObject({
111
112
  connectorId: ConnectorId.describe("One lowercase word, the first word of every tool, such as lexoffice. It cannot change later."),
112
113
  name: z.string().trim().min(1).max(100),
113
114
  description: z.string().trim().max(500),
114
- category: z.string().trim().min(1).max(50),
115
+ // Optional since #924: the form no longer sends one.
116
+ category: z.string().trim().min(1).max(50).optional(),
115
117
  base: z
116
118
  .string()
117
119
  .trim()
@@ -185,6 +187,8 @@ export const ConnectorField = z.object({
185
187
  help: z.string().optional(),
186
188
  placeholder: z.string().optional(),
187
189
  optional: z.boolean(),
190
+ // The value a setting takes when it is left empty (#924), for the hosts the page shows.
191
+ default: z.string().optional(),
188
192
  kind: z.enum(["setting", "secret"]),
189
193
  });
190
194
  export const ConnectorTool = z.object({
@@ -34,8 +34,8 @@ export declare const CrawlGetInput: z.ZodObject<{
34
34
  }, z.core.$strict>;
35
35
  export type CrawlGetInput = z.infer<typeof CrawlGetInput>;
36
36
  export declare const CrawlStatus: z.ZodEnum<{
37
- done: "done";
38
37
  expired: "expired";
38
+ done: "done";
39
39
  running: "running";
40
40
  failed: "failed";
41
41
  starting: "starting";
@@ -46,8 +46,8 @@ export declare const Crawl: z.ZodObject<{
46
46
  crawlId: z.ZodTemplateLiteral<`crawl_${string}`>;
47
47
  url: z.ZodString;
48
48
  status: z.ZodEnum<{
49
- done: "done";
50
49
  expired: "expired";
50
+ done: "done";
51
51
  running: "running";
52
52
  failed: "failed";
53
53
  starting: "starting";
@@ -91,8 +91,8 @@ export declare const CrawlDetail: z.ZodObject<{
91
91
  crawlId: z.ZodTemplateLiteral<`crawl_${string}`>;
92
92
  url: z.ZodString;
93
93
  status: z.ZodEnum<{
94
- done: "done";
95
94
  expired: "expired";
95
+ done: "done";
96
96
  running: "running";
97
97
  failed: "failed";
98
98
  starting: "starting";
@@ -1,6 +1,10 @@
1
1
  import { z } from "zod";
2
2
  export declare const DocumentCreateInput: z.ZodObject<{
3
3
  parentId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
4
+ section: z.ZodOptional<z.ZodEnum<{
5
+ own: "own";
6
+ shared: "shared";
7
+ }>>;
4
8
  name: z.ZodString;
5
9
  content: z.ZodString;
6
10
  idempotencyKey: z.ZodString;
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import { ExcerptCursor, TextExcerpt } from "../excerpt/excerpt.js";
3
3
  import { InstructionsRead, Known } from "../instructions/instructions.js";
4
- import { NodeId, NodePath, NodePerson, SecretFields } from "../nodes/nodes.js";
4
+ import { CreateSection, NodeId, NodePath, NodePerson, SecretFields } from "../nodes/nodes.js";
5
5
  import { IdempotencyKey, Rev } from "../primitives/primitives.js";
6
6
  // Documents (#39, Nodes › Dokument, E36, E59): the inputs of `intelligence_document_create`, `_get`
7
7
  // and `_update`, and their answer. A document is Markdown and is stored as Markdown, never as editor
@@ -14,7 +14,8 @@ const Content = z
14
14
  .describe("The whole document as Markdown, at most 1 MB in UTF-8. A front matter at the top stays as written. Images only by URL, links to other nodes in the text (`[Name](/n/node_…)`).");
15
15
  export const DocumentCreateInput = z.strictObject({
16
16
  // ⚠️ Required and nullable (trap C015): null is the top level of Shared.
17
- parentId: NodeId.nullable().describe("The folder to create the document in, one you can write to; null creates it on the top level of Shared, visible to you until you share it. An INSTRUCTIONS document needs a folder."),
17
+ parentId: NodeId.nullable().describe("The folder to create the document in, one you can write to; null creates it in your own root folder (Own), or on the top level of Shared with section shared, where only you see it until you share it. An INSTRUCTIONS document needs a folder."),
18
+ section: CreateSection,
18
19
  name: z
19
20
  .string()
20
21
  .max(200)
@@ -86,6 +86,7 @@ export declare const Warning: z.ZodObject<{
86
86
  mail_failed: "mail_failed";
87
87
  unused: "unused";
88
88
  too_long: "too_long";
89
+ goal_link: "goal_link";
89
90
  }>;
90
91
  message: z.ZodString;
91
92
  }, z.core.$strip>;
@@ -171,6 +171,13 @@ export function invalidInput(schema, error) {
171
171
  // - `unused`: a credential that no Operator uses yet (#676).
172
172
  // - `too_long`: an INSTRUCTIONS was saved with more words than an AI follows reliably (E67, #675).
173
173
  export const Warning = z.object({
174
- code: z.enum(["followup_failed", "test_failed", "mail_failed", "unused", "too_long"]),
174
+ code: z.enum([
175
+ "followup_failed",
176
+ "test_failed",
177
+ "mail_failed",
178
+ "unused",
179
+ "too_long",
180
+ "goal_link",
181
+ ]),
175
182
  message: z.string(),
176
183
  });
@@ -10,6 +10,10 @@ export declare const uploadTicketLifetimeMs: number;
10
10
  export declare const SourceUrl: z.ZodString;
11
11
  export declare const FileCreateInput: z.ZodObject<{
12
12
  parentId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
13
+ section: z.ZodOptional<z.ZodEnum<{
14
+ own: "own";
15
+ shared: "shared";
16
+ }>>;
13
17
  name: z.ZodOptional<z.ZodString>;
14
18
  mediaType: z.ZodOptional<z.ZodString>;
15
19
  size: z.ZodOptional<z.ZodNumber>;