@tenphi/akno-protocol 0.1.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.
Files changed (67) hide show
  1. package/LICENSE +83 -0
  2. package/README.md +26 -0
  3. package/dist/common.d.ts +1553 -0
  4. package/dist/common.d.ts.map +1 -0
  5. package/dist/common.js +309 -0
  6. package/dist/common.js.map +1 -0
  7. package/dist/errors.d.ts +24 -0
  8. package/dist/errors.d.ts.map +1 -0
  9. package/dist/errors.js +69 -0
  10. package/dist/errors.js.map +1 -0
  11. package/dist/index.d.ts +16 -0
  12. package/dist/index.d.ts.map +1 -0
  13. package/dist/index.js +16 -0
  14. package/dist/index.js.map +1 -0
  15. package/dist/ops/answer.d.ts +207 -0
  16. package/dist/ops/answer.d.ts.map +1 -0
  17. package/dist/ops/answer.js +90 -0
  18. package/dist/ops/answer.js.map +1 -0
  19. package/dist/ops/context.d.ts +845 -0
  20. package/dist/ops/context.d.ts.map +1 -0
  21. package/dist/ops/context.js +82 -0
  22. package/dist/ops/context.js.map +1 -0
  23. package/dist/ops/folder.d.ts +85 -0
  24. package/dist/ops/folder.d.ts.map +1 -0
  25. package/dist/ops/folder.js +56 -0
  26. package/dist/ops/folder.js.map +1 -0
  27. package/dist/ops/graph.d.ts +352 -0
  28. package/dist/ops/graph.d.ts.map +1 -0
  29. package/dist/ops/graph.js +63 -0
  30. package/dist/ops/graph.js.map +1 -0
  31. package/dist/ops/list.d.ts +136 -0
  32. package/dist/ops/list.d.ts.map +1 -0
  33. package/dist/ops/list.js +57 -0
  34. package/dist/ops/list.js.map +1 -0
  35. package/dist/ops/mutate.d.ts +432 -0
  36. package/dist/ops/mutate.d.ts.map +1 -0
  37. package/dist/ops/mutate.js +234 -0
  38. package/dist/ops/mutate.js.map +1 -0
  39. package/dist/ops/read.d.ts +242 -0
  40. package/dist/ops/read.d.ts.map +1 -0
  41. package/dist/ops/read.js +65 -0
  42. package/dist/ops/read.js.map +1 -0
  43. package/dist/ops/recall.d.ts +531 -0
  44. package/dist/ops/recall.d.ts.map +1 -0
  45. package/dist/ops/recall.js +59 -0
  46. package/dist/ops/recall.js.map +1 -0
  47. package/dist/ops/timeline.d.ts +264 -0
  48. package/dist/ops/timeline.d.ts.map +1 -0
  49. package/dist/ops/timeline.js +68 -0
  50. package/dist/ops/timeline.js.map +1 -0
  51. package/dist/ops/write.d.ts +182 -0
  52. package/dist/ops/write.d.ts.map +1 -0
  53. package/dist/ops/write.js +114 -0
  54. package/dist/ops/write.js.map +1 -0
  55. package/dist/registry.d.ts +2657 -0
  56. package/dist/registry.d.ts.map +1 -0
  57. package/dist/registry.js +191 -0
  58. package/dist/registry.js.map +1 -0
  59. package/dist/version.d.ts +14 -0
  60. package/dist/version.d.ts.map +1 -0
  61. package/dist/version.js +14 -0
  62. package/dist/version.js.map +1 -0
  63. package/dist/wire.d.ts +112 -0
  64. package/dist/wire.d.ts.map +1 -0
  65. package/dist/wire.js +102 -0
  66. package/dist/wire.js.map +1 -0
  67. package/package.json +38 -0
@@ -0,0 +1,2657 @@
1
+ import type { z } from 'zod';
2
+ /**
3
+ * The library is the product: one op registry, one schema per op, three
4
+ * transports over it — so the doors cannot drift into different behaviour.
5
+ * Everything a door needs to exist is in this table and nowhere else.
6
+ */
7
+ export type OpKind = 'read' | 'write' | 'admin';
8
+ export interface OpDefinition<I extends z.ZodType = z.ZodType, O extends z.ZodType = z.ZodType> {
9
+ name: string;
10
+ kind: OpKind;
11
+ input: I;
12
+ output: O;
13
+ /** Surfaced verbatim as the MCP tool description. Written for an agent to read. */
14
+ description: string;
15
+ /**
16
+ * False while the schema is final and the body is not. The op is still
17
+ * advertised and still validates its input; calling it returns
18
+ * `not_implemented`. Better than an op that quietly does half the job.
19
+ */
20
+ implemented: boolean;
21
+ }
22
+ export declare const OPS: {
23
+ readonly recall: OpDefinition<z.ZodObject<{
24
+ query: z.ZodString;
25
+ mode: z.ZodOptional<z.ZodEnum<{
26
+ lookup: "lookup";
27
+ question: "question";
28
+ explore: "explore";
29
+ }>>;
30
+ depth: z.ZodOptional<z.ZodEnum<{
31
+ summary: "summary";
32
+ lines: "lines";
33
+ full: "full";
34
+ }>>;
35
+ limit: z.ZodOptional<z.ZodNumber>;
36
+ budget: z.ZodOptional<z.ZodNumber>;
37
+ include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
38
+ knowledge: "knowledge";
39
+ source: "source";
40
+ inference: "inference";
41
+ ignored: "ignored";
42
+ }>>>;
43
+ expand: z.ZodOptional<z.ZodBoolean>;
44
+ graph: z.ZodOptional<z.ZodBoolean>;
45
+ rerank: z.ZodOptional<z.ZodBoolean>;
46
+ filter: z.ZodOptional<z.ZodObject<{
47
+ folder: z.ZodOptional<z.ZodString>;
48
+ type: z.ZodOptional<z.ZodString>;
49
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
50
+ role: z.ZodOptional<z.ZodEnum<{
51
+ knowledge: "knowledge";
52
+ source: "source";
53
+ inference: "inference";
54
+ ignored: "ignored";
55
+ }>>;
56
+ source: z.ZodOptional<z.ZodEnum<{
57
+ page: "page";
58
+ document: "document";
59
+ both: "both";
60
+ }>>;
61
+ ownership: z.ZodOptional<z.ZodEnum<{
62
+ any: "any";
63
+ orphan: "orphan";
64
+ owned: "owned";
65
+ }>>;
66
+ }, z.core.$strip>>;
67
+ since: z.ZodOptional<z.ZodString>;
68
+ until: z.ZodOptional<z.ZodString>;
69
+ }, z.core.$strip>, z.ZodObject<{
70
+ status: z.ZodEnum<{
71
+ ok: "ok";
72
+ empty: "empty";
73
+ degraded: "degraded";
74
+ unavailable: "unavailable";
75
+ }>;
76
+ degraded: z.ZodOptional<z.ZodArray<z.ZodEnum<{
77
+ no_embedding_model: "no_embedding_model";
78
+ no_reranker: "no_reranker";
79
+ no_derive_model: "no_derive_model";
80
+ no_expansion_model: "no_expansion_model";
81
+ embedding_failed: "embedding_failed";
82
+ rerank_failed: "rerank_failed";
83
+ derive_failed: "derive_failed";
84
+ expansion_failed: "expansion_failed";
85
+ no_vector_index: "no_vector_index";
86
+ partial_index: "partial_index";
87
+ no_document_text: "no_document_text";
88
+ document_source_missing: "document_source_missing";
89
+ no_graph_index: "no_graph_index";
90
+ no_entity_index: "no_entity_index";
91
+ entity_resolution_failed: "entity_resolution_failed";
92
+ partial_graph_index: "partial_graph_index";
93
+ graph_traversal_limited: "graph_traversal_limited";
94
+ no_answer_model: "no_answer_model";
95
+ answer_failed: "answer_failed";
96
+ answer_verification_failed: "answer_verification_failed";
97
+ answer_truncated: "answer_truncated";
98
+ }>>>;
99
+ note: z.ZodOptional<z.ZodString>;
100
+ results: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
101
+ slug: z.ZodString;
102
+ title: z.ZodString;
103
+ role: z.ZodEnum<{
104
+ knowledge: "knowledge";
105
+ source: "source";
106
+ inference: "inference";
107
+ ignored: "ignored";
108
+ }>;
109
+ summary: z.ZodNullable<z.ZodString>;
110
+ breadcrumb: z.ZodOptional<z.ZodString>;
111
+ updated: z.ZodOptional<z.ZodString>;
112
+ score: z.ZodNumber;
113
+ relevance: z.ZodOptional<z.ZodNumber>;
114
+ lines: z.ZodArray<z.ZodObject<{
115
+ n: z.ZodNumber;
116
+ text: z.ZodString;
117
+ confidence: z.ZodOptional<z.ZodNumber>;
118
+ fact: z.ZodOptional<z.ZodString>;
119
+ }, z.core.$strip>>;
120
+ superseded: z.ZodOptional<z.ZodArray<z.ZodObject<{
121
+ claim: z.ZodString;
122
+ valid_to: z.ZodString;
123
+ }, z.core.$strip>>>;
124
+ links: z.ZodOptional<z.ZodArray<z.ZodString>>;
125
+ documents: z.ZodOptional<z.ZodArray<z.ZodObject<{
126
+ id: z.ZodString;
127
+ rel_path: z.ZodOptional<z.ZodString>;
128
+ mime: z.ZodOptional<z.ZodString>;
129
+ label: z.ZodOptional<z.ZodString>;
130
+ pages: z.ZodOptional<z.ZodNumber>;
131
+ parts: z.ZodOptional<z.ZodNumber>;
132
+ matched_page: z.ZodOptional<z.ZodNumber>;
133
+ summary: z.ZodOptional<z.ZodString>;
134
+ quote: z.ZodOptional<z.ZodString>;
135
+ availability: z.ZodOptional<z.ZodObject<{
136
+ status: z.ZodEnum<{
137
+ degraded: "degraded";
138
+ unavailable: "unavailable";
139
+ available: "available";
140
+ }>;
141
+ available_from: z.ZodArray<z.ZodEnum<{
142
+ original: "original";
143
+ indexed_text: "indexed_text";
144
+ rendition: "rendition";
145
+ }>>;
146
+ missing_originals: z.ZodArray<z.ZodString>;
147
+ available_renditions: z.ZodArray<z.ZodString>;
148
+ missing_since: z.ZodOptional<z.ZodString>;
149
+ }, z.core.$strip>>;
150
+ }, z.core.$strip>>>;
151
+ truncated: z.ZodOptional<z.ZodBoolean>;
152
+ matched_by: z.ZodOptional<z.ZodArray<z.ZodEnum<{
153
+ lexical: "lexical";
154
+ vector: "vector";
155
+ graph: "graph";
156
+ }>>>;
157
+ graph_paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
158
+ seed: z.ZodObject<{
159
+ id: z.ZodString;
160
+ kind: z.ZodEnum<{
161
+ fact: "fact";
162
+ entity: "entity";
163
+ page: "page";
164
+ document: "document";
165
+ event: "event";
166
+ }>;
167
+ slug: z.ZodOptional<z.ZodString>;
168
+ label: z.ZodOptional<z.ZodString>;
169
+ role: z.ZodOptional<z.ZodEnum<{
170
+ knowledge: "knowledge";
171
+ source: "source";
172
+ inference: "inference";
173
+ ignored: "ignored";
174
+ }>>;
175
+ entity: z.ZodOptional<z.ZodString>;
176
+ entity_type: z.ZodOptional<z.ZodEnum<{
177
+ event: "event";
178
+ person: "person";
179
+ organization: "organization";
180
+ place: "place";
181
+ product: "product";
182
+ concept: "concept";
183
+ other: "other";
184
+ }>>;
185
+ document: z.ZodOptional<z.ZodString>;
186
+ fact: z.ZodOptional<z.ZodString>;
187
+ event: z.ZodOptional<z.ZodString>;
188
+ date: z.ZodOptional<z.ZodString>;
189
+ line_start: z.ZodOptional<z.ZodNumber>;
190
+ line_end: z.ZodOptional<z.ZodNumber>;
191
+ availability: z.ZodOptional<z.ZodEnum<{
192
+ degraded: "degraded";
193
+ unavailable: "unavailable";
194
+ available: "available";
195
+ }>>;
196
+ }, z.core.$strip>;
197
+ target: z.ZodObject<{
198
+ id: z.ZodString;
199
+ kind: z.ZodEnum<{
200
+ fact: "fact";
201
+ entity: "entity";
202
+ page: "page";
203
+ document: "document";
204
+ event: "event";
205
+ }>;
206
+ slug: z.ZodOptional<z.ZodString>;
207
+ label: z.ZodOptional<z.ZodString>;
208
+ role: z.ZodOptional<z.ZodEnum<{
209
+ knowledge: "knowledge";
210
+ source: "source";
211
+ inference: "inference";
212
+ ignored: "ignored";
213
+ }>>;
214
+ entity: z.ZodOptional<z.ZodString>;
215
+ entity_type: z.ZodOptional<z.ZodEnum<{
216
+ event: "event";
217
+ person: "person";
218
+ organization: "organization";
219
+ place: "place";
220
+ product: "product";
221
+ concept: "concept";
222
+ other: "other";
223
+ }>>;
224
+ document: z.ZodOptional<z.ZodString>;
225
+ fact: z.ZodOptional<z.ZodString>;
226
+ event: z.ZodOptional<z.ZodString>;
227
+ date: z.ZodOptional<z.ZodString>;
228
+ line_start: z.ZodOptional<z.ZodNumber>;
229
+ line_end: z.ZodOptional<z.ZodNumber>;
230
+ availability: z.ZodOptional<z.ZodEnum<{
231
+ degraded: "degraded";
232
+ unavailable: "unavailable";
233
+ available: "available";
234
+ }>>;
235
+ }, z.core.$strip>;
236
+ nodes: z.ZodArray<z.ZodObject<{
237
+ id: z.ZodString;
238
+ kind: z.ZodEnum<{
239
+ fact: "fact";
240
+ entity: "entity";
241
+ page: "page";
242
+ document: "document";
243
+ event: "event";
244
+ }>;
245
+ slug: z.ZodOptional<z.ZodString>;
246
+ label: z.ZodOptional<z.ZodString>;
247
+ role: z.ZodOptional<z.ZodEnum<{
248
+ knowledge: "knowledge";
249
+ source: "source";
250
+ inference: "inference";
251
+ ignored: "ignored";
252
+ }>>;
253
+ entity: z.ZodOptional<z.ZodString>;
254
+ entity_type: z.ZodOptional<z.ZodEnum<{
255
+ event: "event";
256
+ person: "person";
257
+ organization: "organization";
258
+ place: "place";
259
+ product: "product";
260
+ concept: "concept";
261
+ other: "other";
262
+ }>>;
263
+ document: z.ZodOptional<z.ZodString>;
264
+ fact: z.ZodOptional<z.ZodString>;
265
+ event: z.ZodOptional<z.ZodString>;
266
+ date: z.ZodOptional<z.ZodString>;
267
+ line_start: z.ZodOptional<z.ZodNumber>;
268
+ line_end: z.ZodOptional<z.ZodNumber>;
269
+ availability: z.ZodOptional<z.ZodEnum<{
270
+ degraded: "degraded";
271
+ unavailable: "unavailable";
272
+ available: "available";
273
+ }>>;
274
+ }, z.core.$strip>>;
275
+ relations: z.ZodArray<z.ZodEnum<{
276
+ canonical_record: "canonical_record";
277
+ links_to: "links_to";
278
+ mentions: "mentions";
279
+ about: "about";
280
+ has_attribute: "has_attribute";
281
+ related_entity: "related_entity";
282
+ owns_document: "owns_document";
283
+ participates_in: "participates_in";
284
+ }>>;
285
+ hops: z.ZodNumber;
286
+ confidence: z.ZodNumber;
287
+ evidence: z.ZodArray<z.ZodObject<{
288
+ kind: z.ZodEnum<{
289
+ document: "document";
290
+ page_line: "page_line";
291
+ fact_line: "fact_line";
292
+ frontmatter: "frontmatter";
293
+ }>;
294
+ slug: z.ZodOptional<z.ZodString>;
295
+ document: z.ZodOptional<z.ZodString>;
296
+ event: z.ZodOptional<z.ZodString>;
297
+ fact: z.ZodOptional<z.ZodString>;
298
+ line_start: z.ZodOptional<z.ZodNumber>;
299
+ line_end: z.ZodOptional<z.ZodNumber>;
300
+ field: z.ZodOptional<z.ZodString>;
301
+ }, z.core.$strip>>;
302
+ }, z.core.$strip>>>;
303
+ type: z.ZodLiteral<"page">;
304
+ }, z.core.$strip>, z.ZodObject<{
305
+ type: z.ZodLiteral<"document">;
306
+ id: z.ZodString;
307
+ path: z.ZodString;
308
+ label: z.ZodString;
309
+ mime: z.ZodNullable<z.ZodString>;
310
+ summary: z.ZodOptional<z.ZodString>;
311
+ quote: z.ZodOptional<z.ZodString>;
312
+ matched_page: z.ZodOptional<z.ZodNumber>;
313
+ parts: z.ZodOptional<z.ZodArray<z.ZodObject<{
314
+ id: z.ZodString;
315
+ path: z.ZodString;
316
+ pages: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
317
+ }, z.core.$strip>>>;
318
+ source: z.ZodObject<{
319
+ kind: z.ZodEnum<{
320
+ none: "none";
321
+ original_text: "original_text";
322
+ ocr_text: "ocr_text";
323
+ model_description: "model_description";
324
+ }>;
325
+ via: z.ZodEnum<{
326
+ none: "none";
327
+ plain: "plain";
328
+ textutil: "textutil";
329
+ "text-layer": "text-layer";
330
+ ocr: "ocr";
331
+ vision: "vision";
332
+ }>;
333
+ confidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
334
+ }, z.core.$strip>;
335
+ availability: z.ZodOptional<z.ZodObject<{
336
+ status: z.ZodEnum<{
337
+ degraded: "degraded";
338
+ unavailable: "unavailable";
339
+ available: "available";
340
+ }>;
341
+ available_from: z.ZodArray<z.ZodEnum<{
342
+ original: "original";
343
+ indexed_text: "indexed_text";
344
+ rendition: "rendition";
345
+ }>>;
346
+ missing_originals: z.ZodArray<z.ZodString>;
347
+ available_renditions: z.ZodArray<z.ZodString>;
348
+ missing_since: z.ZodOptional<z.ZodString>;
349
+ }, z.core.$strip>>;
350
+ ownership: z.ZodObject<{
351
+ status: z.ZodLiteral<"orphan">;
352
+ }, z.core.$strip>;
353
+ suggested_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
354
+ op: z.ZodLiteral<"adopt">;
355
+ args: z.ZodObject<{
356
+ documentId: z.ZodString;
357
+ }, z.core.$strip>;
358
+ }, z.core.$strip>>>;
359
+ score: z.ZodNumber;
360
+ relevance: z.ZodOptional<z.ZodNumber>;
361
+ matched_by: z.ZodOptional<z.ZodArray<z.ZodEnum<{
362
+ lexical: "lexical";
363
+ vector: "vector";
364
+ graph: "graph";
365
+ }>>>;
366
+ graph_paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
367
+ seed: z.ZodObject<{
368
+ id: z.ZodString;
369
+ kind: z.ZodEnum<{
370
+ fact: "fact";
371
+ entity: "entity";
372
+ page: "page";
373
+ document: "document";
374
+ event: "event";
375
+ }>;
376
+ slug: z.ZodOptional<z.ZodString>;
377
+ label: z.ZodOptional<z.ZodString>;
378
+ role: z.ZodOptional<z.ZodEnum<{
379
+ knowledge: "knowledge";
380
+ source: "source";
381
+ inference: "inference";
382
+ ignored: "ignored";
383
+ }>>;
384
+ entity: z.ZodOptional<z.ZodString>;
385
+ entity_type: z.ZodOptional<z.ZodEnum<{
386
+ event: "event";
387
+ person: "person";
388
+ organization: "organization";
389
+ place: "place";
390
+ product: "product";
391
+ concept: "concept";
392
+ other: "other";
393
+ }>>;
394
+ document: z.ZodOptional<z.ZodString>;
395
+ fact: z.ZodOptional<z.ZodString>;
396
+ event: z.ZodOptional<z.ZodString>;
397
+ date: z.ZodOptional<z.ZodString>;
398
+ line_start: z.ZodOptional<z.ZodNumber>;
399
+ line_end: z.ZodOptional<z.ZodNumber>;
400
+ availability: z.ZodOptional<z.ZodEnum<{
401
+ degraded: "degraded";
402
+ unavailable: "unavailable";
403
+ available: "available";
404
+ }>>;
405
+ }, z.core.$strip>;
406
+ target: z.ZodObject<{
407
+ id: z.ZodString;
408
+ kind: z.ZodEnum<{
409
+ fact: "fact";
410
+ entity: "entity";
411
+ page: "page";
412
+ document: "document";
413
+ event: "event";
414
+ }>;
415
+ slug: z.ZodOptional<z.ZodString>;
416
+ label: z.ZodOptional<z.ZodString>;
417
+ role: z.ZodOptional<z.ZodEnum<{
418
+ knowledge: "knowledge";
419
+ source: "source";
420
+ inference: "inference";
421
+ ignored: "ignored";
422
+ }>>;
423
+ entity: z.ZodOptional<z.ZodString>;
424
+ entity_type: z.ZodOptional<z.ZodEnum<{
425
+ event: "event";
426
+ person: "person";
427
+ organization: "organization";
428
+ place: "place";
429
+ product: "product";
430
+ concept: "concept";
431
+ other: "other";
432
+ }>>;
433
+ document: z.ZodOptional<z.ZodString>;
434
+ fact: z.ZodOptional<z.ZodString>;
435
+ event: z.ZodOptional<z.ZodString>;
436
+ date: z.ZodOptional<z.ZodString>;
437
+ line_start: z.ZodOptional<z.ZodNumber>;
438
+ line_end: z.ZodOptional<z.ZodNumber>;
439
+ availability: z.ZodOptional<z.ZodEnum<{
440
+ degraded: "degraded";
441
+ unavailable: "unavailable";
442
+ available: "available";
443
+ }>>;
444
+ }, z.core.$strip>;
445
+ nodes: z.ZodArray<z.ZodObject<{
446
+ id: z.ZodString;
447
+ kind: z.ZodEnum<{
448
+ fact: "fact";
449
+ entity: "entity";
450
+ page: "page";
451
+ document: "document";
452
+ event: "event";
453
+ }>;
454
+ slug: z.ZodOptional<z.ZodString>;
455
+ label: z.ZodOptional<z.ZodString>;
456
+ role: z.ZodOptional<z.ZodEnum<{
457
+ knowledge: "knowledge";
458
+ source: "source";
459
+ inference: "inference";
460
+ ignored: "ignored";
461
+ }>>;
462
+ entity: z.ZodOptional<z.ZodString>;
463
+ entity_type: z.ZodOptional<z.ZodEnum<{
464
+ event: "event";
465
+ person: "person";
466
+ organization: "organization";
467
+ place: "place";
468
+ product: "product";
469
+ concept: "concept";
470
+ other: "other";
471
+ }>>;
472
+ document: z.ZodOptional<z.ZodString>;
473
+ fact: z.ZodOptional<z.ZodString>;
474
+ event: z.ZodOptional<z.ZodString>;
475
+ date: z.ZodOptional<z.ZodString>;
476
+ line_start: z.ZodOptional<z.ZodNumber>;
477
+ line_end: z.ZodOptional<z.ZodNumber>;
478
+ availability: z.ZodOptional<z.ZodEnum<{
479
+ degraded: "degraded";
480
+ unavailable: "unavailable";
481
+ available: "available";
482
+ }>>;
483
+ }, z.core.$strip>>;
484
+ relations: z.ZodArray<z.ZodEnum<{
485
+ canonical_record: "canonical_record";
486
+ links_to: "links_to";
487
+ mentions: "mentions";
488
+ about: "about";
489
+ has_attribute: "has_attribute";
490
+ related_entity: "related_entity";
491
+ owns_document: "owns_document";
492
+ participates_in: "participates_in";
493
+ }>>;
494
+ hops: z.ZodNumber;
495
+ confidence: z.ZodNumber;
496
+ evidence: z.ZodArray<z.ZodObject<{
497
+ kind: z.ZodEnum<{
498
+ document: "document";
499
+ page_line: "page_line";
500
+ fact_line: "fact_line";
501
+ frontmatter: "frontmatter";
502
+ }>;
503
+ slug: z.ZodOptional<z.ZodString>;
504
+ document: z.ZodOptional<z.ZodString>;
505
+ event: z.ZodOptional<z.ZodString>;
506
+ fact: z.ZodOptional<z.ZodString>;
507
+ line_start: z.ZodOptional<z.ZodNumber>;
508
+ line_end: z.ZodOptional<z.ZodNumber>;
509
+ field: z.ZodOptional<z.ZodString>;
510
+ }, z.core.$strip>>;
511
+ }, z.core.$strip>>>;
512
+ }, z.core.$strip>], "type">>;
513
+ searched: z.ZodArray<z.ZodString>;
514
+ budget_used: z.ZodNumber;
515
+ scores: z.ZodEnum<{
516
+ absolute: "absolute";
517
+ relative: "relative";
518
+ }>;
519
+ qualification: z.ZodOptional<z.ZodObject<{
520
+ model: z.ZodEnum<{
521
+ llm: "llm";
522
+ native: "native";
523
+ }>;
524
+ model_id: z.ZodOptional<z.ZodString>;
525
+ latency_ms: z.ZodOptional<z.ZodNumber>;
526
+ input_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
527
+ output_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
528
+ total_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
529
+ applied: z.ZodBoolean;
530
+ judged: z.ZodNumber;
531
+ rejected: z.ZodNumber;
532
+ unjudged: z.ZodNumber;
533
+ basis: z.ZodEnum<{
534
+ llm_grade: "llm_grade";
535
+ native_auto: "native_auto";
536
+ native_manual: "native_manual";
537
+ disabled: "disabled";
538
+ calibration_failed: "calibration_failed";
539
+ }>;
540
+ threshold: z.ZodNullable<z.ZodNumber>;
541
+ }, z.core.$strip>>;
542
+ coverage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
543
+ mode: z.ZodEnum<{
544
+ lookup: "lookup";
545
+ question: "question";
546
+ explore: "explore";
547
+ }>;
548
+ }, z.core.$strip>>;
549
+ readonly answer: OpDefinition<z.ZodObject<{
550
+ question: z.ZodString;
551
+ limit: z.ZodOptional<z.ZodNumber>;
552
+ retrieval_budget: z.ZodOptional<z.ZodNumber>;
553
+ include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
554
+ knowledge: "knowledge";
555
+ source: "source";
556
+ inference: "inference";
557
+ ignored: "ignored";
558
+ }>>>;
559
+ filter: z.ZodOptional<z.ZodObject<{
560
+ folder: z.ZodOptional<z.ZodString>;
561
+ type: z.ZodOptional<z.ZodString>;
562
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
563
+ role: z.ZodOptional<z.ZodEnum<{
564
+ knowledge: "knowledge";
565
+ source: "source";
566
+ inference: "inference";
567
+ ignored: "ignored";
568
+ }>>;
569
+ source: z.ZodOptional<z.ZodEnum<{
570
+ page: "page";
571
+ document: "document";
572
+ both: "both";
573
+ }>>;
574
+ ownership: z.ZodOptional<z.ZodEnum<{
575
+ any: "any";
576
+ orphan: "orphan";
577
+ owned: "owned";
578
+ }>>;
579
+ }, z.core.$strip>>;
580
+ since: z.ZodOptional<z.ZodString>;
581
+ until: z.ZodOptional<z.ZodString>;
582
+ expand: z.ZodOptional<z.ZodBoolean>;
583
+ graph: z.ZodOptional<z.ZodBoolean>;
584
+ rerank: z.ZodOptional<z.ZodBoolean>;
585
+ include_context: z.ZodOptional<z.ZodBoolean>;
586
+ max_answer_tokens: z.ZodOptional<z.ZodNumber>;
587
+ }, z.core.$strip>, z.ZodObject<{
588
+ status: z.ZodEnum<{
589
+ ok: "ok";
590
+ empty: "empty";
591
+ degraded: "degraded";
592
+ unavailable: "unavailable";
593
+ }>;
594
+ degraded: z.ZodOptional<z.ZodArray<z.ZodEnum<{
595
+ no_embedding_model: "no_embedding_model";
596
+ no_reranker: "no_reranker";
597
+ no_derive_model: "no_derive_model";
598
+ no_expansion_model: "no_expansion_model";
599
+ embedding_failed: "embedding_failed";
600
+ rerank_failed: "rerank_failed";
601
+ derive_failed: "derive_failed";
602
+ expansion_failed: "expansion_failed";
603
+ no_vector_index: "no_vector_index";
604
+ partial_index: "partial_index";
605
+ no_document_text: "no_document_text";
606
+ document_source_missing: "document_source_missing";
607
+ no_graph_index: "no_graph_index";
608
+ no_entity_index: "no_entity_index";
609
+ entity_resolution_failed: "entity_resolution_failed";
610
+ partial_graph_index: "partial_graph_index";
611
+ graph_traversal_limited: "graph_traversal_limited";
612
+ no_answer_model: "no_answer_model";
613
+ answer_failed: "answer_failed";
614
+ answer_verification_failed: "answer_verification_failed";
615
+ answer_truncated: "answer_truncated";
616
+ }>>>;
617
+ note: z.ZodOptional<z.ZodString>;
618
+ outcome: z.ZodEnum<{
619
+ not_found: "not_found";
620
+ complete: "complete";
621
+ partial: "partial";
622
+ not_answered: "not_answered";
623
+ }>;
624
+ answer: z.ZodNullable<z.ZodString>;
625
+ coverage: z.ZodRecord<z.ZodString, z.ZodBoolean>;
626
+ citations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
627
+ id: z.ZodString;
628
+ type: z.ZodLiteral<"page">;
629
+ slug: z.ZodString;
630
+ lines: z.ZodArray<z.ZodNumber>;
631
+ }, z.core.$strip>, z.ZodObject<{
632
+ id: z.ZodString;
633
+ type: z.ZodLiteral<"document">;
634
+ document_id: z.ZodString;
635
+ owner_slug: z.ZodOptional<z.ZodString>;
636
+ pages: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
637
+ }, z.core.$strip>], "type">>;
638
+ context: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
639
+ evidence_id: z.ZodString;
640
+ type: z.ZodLiteral<"page">;
641
+ slug: z.ZodString;
642
+ title: z.ZodString;
643
+ lines: z.ZodArray<z.ZodObject<{
644
+ n: z.ZodNumber;
645
+ text: z.ZodString;
646
+ confidence: z.ZodOptional<z.ZodNumber>;
647
+ fact: z.ZodOptional<z.ZodString>;
648
+ }, z.core.$strip>>;
649
+ }, z.core.$strip>, z.ZodObject<{
650
+ evidence_id: z.ZodString;
651
+ type: z.ZodLiteral<"document">;
652
+ document_id: z.ZodString;
653
+ owner_slug: z.ZodOptional<z.ZodString>;
654
+ pages: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
655
+ quote: z.ZodString;
656
+ }, z.core.$strip>], "type">>>;
657
+ related_page_slugs: z.ZodArray<z.ZodString>;
658
+ related_documents: z.ZodArray<z.ZodObject<{
659
+ id: z.ZodString;
660
+ owner_slug: z.ZodOptional<z.ZodString>;
661
+ }, z.core.$strip>>;
662
+ searched: z.ZodArray<z.ZodString>;
663
+ qualification: z.ZodOptional<z.ZodObject<{
664
+ model: z.ZodEnum<{
665
+ llm: "llm";
666
+ native: "native";
667
+ }>;
668
+ model_id: z.ZodOptional<z.ZodString>;
669
+ latency_ms: z.ZodOptional<z.ZodNumber>;
670
+ input_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
671
+ output_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
672
+ total_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
673
+ applied: z.ZodBoolean;
674
+ judged: z.ZodNumber;
675
+ rejected: z.ZodNumber;
676
+ unjudged: z.ZodNumber;
677
+ basis: z.ZodEnum<{
678
+ llm_grade: "llm_grade";
679
+ native_auto: "native_auto";
680
+ native_manual: "native_manual";
681
+ disabled: "disabled";
682
+ calibration_failed: "calibration_failed";
683
+ }>;
684
+ threshold: z.ZodNullable<z.ZodNumber>;
685
+ }, z.core.$strip>>;
686
+ budget_used: z.ZodObject<{
687
+ retrieval_tokens: z.ZodNumber;
688
+ evidence_tokens: z.ZodNumber;
689
+ answer_tokens: z.ZodNumber;
690
+ }, z.core.$strip>;
691
+ model_usage: z.ZodObject<{
692
+ generation: z.ZodNullable<z.ZodObject<{
693
+ model: z.ZodString;
694
+ latency_ms: z.ZodNumber;
695
+ input_tokens: z.ZodNullable<z.ZodNumber>;
696
+ output_tokens: z.ZodNullable<z.ZodNumber>;
697
+ total_tokens: z.ZodNullable<z.ZodNumber>;
698
+ }, z.core.$strip>>;
699
+ verification: z.ZodNullable<z.ZodObject<{
700
+ model: z.ZodString;
701
+ latency_ms: z.ZodNumber;
702
+ input_tokens: z.ZodNullable<z.ZodNumber>;
703
+ output_tokens: z.ZodNullable<z.ZodNumber>;
704
+ total_tokens: z.ZodNullable<z.ZodNumber>;
705
+ }, z.core.$strip>>;
706
+ }, z.core.$strip>;
707
+ }, z.core.$strip>>;
708
+ readonly read: OpDefinition<z.ZodObject<{
709
+ slug: z.ZodOptional<z.ZodString>;
710
+ id: z.ZodOptional<z.ZodString>;
711
+ document: z.ZodOptional<z.ZodString>;
712
+ from_line: z.ZodOptional<z.ZodNumber>;
713
+ to_line: z.ZodOptional<z.ZodNumber>;
714
+ }, z.core.$strip>, z.ZodObject<{
715
+ status: z.ZodEnum<{
716
+ ok: "ok";
717
+ empty: "empty";
718
+ degraded: "degraded";
719
+ unavailable: "unavailable";
720
+ }>;
721
+ degraded: z.ZodOptional<z.ZodArray<z.ZodEnum<{
722
+ no_embedding_model: "no_embedding_model";
723
+ no_reranker: "no_reranker";
724
+ no_derive_model: "no_derive_model";
725
+ no_expansion_model: "no_expansion_model";
726
+ embedding_failed: "embedding_failed";
727
+ rerank_failed: "rerank_failed";
728
+ derive_failed: "derive_failed";
729
+ expansion_failed: "expansion_failed";
730
+ no_vector_index: "no_vector_index";
731
+ partial_index: "partial_index";
732
+ no_document_text: "no_document_text";
733
+ document_source_missing: "document_source_missing";
734
+ no_graph_index: "no_graph_index";
735
+ no_entity_index: "no_entity_index";
736
+ entity_resolution_failed: "entity_resolution_failed";
737
+ partial_graph_index: "partial_graph_index";
738
+ graph_traversal_limited: "graph_traversal_limited";
739
+ no_answer_model: "no_answer_model";
740
+ answer_failed: "answer_failed";
741
+ answer_verification_failed: "answer_verification_failed";
742
+ answer_truncated: "answer_truncated";
743
+ }>>>;
744
+ note: z.ZodOptional<z.ZodString>;
745
+ page: z.ZodOptional<z.ZodObject<{
746
+ id: z.ZodString;
747
+ slug: z.ZodString;
748
+ title: z.ZodString;
749
+ type: z.ZodNullable<z.ZodString>;
750
+ tags: z.ZodArray<z.ZodString>;
751
+ role: z.ZodEnum<{
752
+ knowledge: "knowledge";
753
+ source: "source";
754
+ inference: "inference";
755
+ ignored: "ignored";
756
+ }>;
757
+ management: z.ZodOptional<z.ZodObject<{
758
+ remember: z.ZodOptional<z.ZodEnum<{
759
+ deny: "deny";
760
+ integrate: "integrate";
761
+ }>>;
762
+ dream: z.ZodOptional<z.ZodEnum<{
763
+ none: "none";
764
+ hygiene: "hygiene";
765
+ synthesize: "synthesize";
766
+ }>>;
767
+ }, z.core.$strip>>;
768
+ about: z.ZodOptional<z.ZodArray<z.ZodString>>;
769
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
770
+ frontmatter: z.ZodRecord<z.ZodString, z.ZodUnknown>;
771
+ summary: z.ZodNullable<z.ZodString>;
772
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
773
+ lines: z.ZodArray<z.ZodObject<{
774
+ n: z.ZodNumber;
775
+ text: z.ZodString;
776
+ confidence: z.ZodOptional<z.ZodNumber>;
777
+ fact: z.ZodOptional<z.ZodString>;
778
+ }, z.core.$strip>>;
779
+ source_fence_line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
780
+ links: z.ZodArray<z.ZodString>;
781
+ backlinks: z.ZodArray<z.ZodString>;
782
+ broken_links: z.ZodOptional<z.ZodArray<z.ZodString>>;
783
+ superseded: z.ZodOptional<z.ZodArray<z.ZodObject<{
784
+ claim: z.ZodString;
785
+ valid_to: z.ZodString;
786
+ }, z.core.$strip>>>;
787
+ documents: z.ZodOptional<z.ZodArray<z.ZodObject<{
788
+ id: z.ZodString;
789
+ rel_path: z.ZodOptional<z.ZodString>;
790
+ mime: z.ZodOptional<z.ZodString>;
791
+ label: z.ZodOptional<z.ZodString>;
792
+ pages: z.ZodOptional<z.ZodNumber>;
793
+ parts: z.ZodOptional<z.ZodNumber>;
794
+ matched_page: z.ZodOptional<z.ZodNumber>;
795
+ summary: z.ZodOptional<z.ZodString>;
796
+ quote: z.ZodOptional<z.ZodString>;
797
+ availability: z.ZodOptional<z.ZodObject<{
798
+ status: z.ZodEnum<{
799
+ degraded: "degraded";
800
+ unavailable: "unavailable";
801
+ available: "available";
802
+ }>;
803
+ available_from: z.ZodArray<z.ZodEnum<{
804
+ original: "original";
805
+ indexed_text: "indexed_text";
806
+ rendition: "rendition";
807
+ }>>;
808
+ missing_originals: z.ZodArray<z.ZodString>;
809
+ available_renditions: z.ZodArray<z.ZodString>;
810
+ missing_since: z.ZodOptional<z.ZodString>;
811
+ }, z.core.$strip>>;
812
+ }, z.core.$strip>>>;
813
+ updated: z.ZodOptional<z.ZodString>;
814
+ bytes: z.ZodOptional<z.ZodNumber>;
815
+ }, z.core.$strip>>;
816
+ document: z.ZodOptional<z.ZodObject<{
817
+ id: z.ZodString;
818
+ page: z.ZodNullable<z.ZodString>;
819
+ rel_path: z.ZodString;
820
+ mime: z.ZodNullable<z.ZodString>;
821
+ sha256: z.ZodString;
822
+ label: z.ZodNullable<z.ZodString>;
823
+ page_count: z.ZodNullable<z.ZodNumber>;
824
+ ocr: z.ZodBoolean;
825
+ text: z.ZodNullable<z.ZodString>;
826
+ bytes: z.ZodOptional<z.ZodNumber>;
827
+ availability: z.ZodOptional<z.ZodObject<{
828
+ status: z.ZodEnum<{
829
+ degraded: "degraded";
830
+ unavailable: "unavailable";
831
+ available: "available";
832
+ }>;
833
+ available_from: z.ZodArray<z.ZodEnum<{
834
+ original: "original";
835
+ indexed_text: "indexed_text";
836
+ rendition: "rendition";
837
+ }>>;
838
+ missing_originals: z.ZodArray<z.ZodString>;
839
+ available_renditions: z.ZodArray<z.ZodString>;
840
+ missing_since: z.ZodOptional<z.ZodString>;
841
+ }, z.core.$strip>>;
842
+ }, z.core.$strip>>;
843
+ }, z.core.$strip>>;
844
+ readonly list: OpDefinition<z.ZodObject<{
845
+ folder: z.ZodOptional<z.ZodString>;
846
+ type: z.ZodOptional<z.ZodString>;
847
+ tag: z.ZodOptional<z.ZodString>;
848
+ role: z.ZodOptional<z.ZodEnum<{
849
+ knowledge: "knowledge";
850
+ source: "source";
851
+ inference: "inference";
852
+ ignored: "ignored";
853
+ }>>;
854
+ kind: z.ZodOptional<z.ZodEnum<{
855
+ pages: "pages";
856
+ folders: "folders";
857
+ tree: "tree";
858
+ }>>;
859
+ order: z.ZodOptional<z.ZodEnum<{
860
+ slug: "slug";
861
+ recent: "recent";
862
+ size: "size";
863
+ }>>;
864
+ limit: z.ZodOptional<z.ZodNumber>;
865
+ depth: z.ZodOptional<z.ZodNumber>;
866
+ }, z.core.$strip>, z.ZodObject<{
867
+ status: z.ZodEnum<{
868
+ ok: "ok";
869
+ empty: "empty";
870
+ degraded: "degraded";
871
+ unavailable: "unavailable";
872
+ }>;
873
+ degraded: z.ZodOptional<z.ZodArray<z.ZodEnum<{
874
+ no_embedding_model: "no_embedding_model";
875
+ no_reranker: "no_reranker";
876
+ no_derive_model: "no_derive_model";
877
+ no_expansion_model: "no_expansion_model";
878
+ embedding_failed: "embedding_failed";
879
+ rerank_failed: "rerank_failed";
880
+ derive_failed: "derive_failed";
881
+ expansion_failed: "expansion_failed";
882
+ no_vector_index: "no_vector_index";
883
+ partial_index: "partial_index";
884
+ no_document_text: "no_document_text";
885
+ document_source_missing: "document_source_missing";
886
+ no_graph_index: "no_graph_index";
887
+ no_entity_index: "no_entity_index";
888
+ entity_resolution_failed: "entity_resolution_failed";
889
+ partial_graph_index: "partial_graph_index";
890
+ graph_traversal_limited: "graph_traversal_limited";
891
+ no_answer_model: "no_answer_model";
892
+ answer_failed: "answer_failed";
893
+ answer_verification_failed: "answer_verification_failed";
894
+ answer_truncated: "answer_truncated";
895
+ }>>>;
896
+ note: z.ZodOptional<z.ZodString>;
897
+ folders: z.ZodOptional<z.ZodArray<z.ZodObject<{
898
+ path: z.ZodString;
899
+ pages: z.ZodNumber;
900
+ pages_deep: z.ZodNumber;
901
+ folders: z.ZodNumber;
902
+ rule: z.ZodOptional<z.ZodObject<{
903
+ role: z.ZodOptional<z.ZodEnum<{
904
+ knowledge: "knowledge";
905
+ source: "source";
906
+ inference: "inference";
907
+ ignored: "ignored";
908
+ }>>;
909
+ remember: z.ZodOptional<z.ZodEnum<{
910
+ deny: "deny";
911
+ integrate: "integrate";
912
+ }>>;
913
+ description: z.ZodOptional<z.ZodString>;
914
+ source: z.ZodString;
915
+ }, z.core.$strip>>;
916
+ declared: z.ZodOptional<z.ZodBoolean>;
917
+ }, z.core.$strip>>>;
918
+ pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
919
+ slug: z.ZodString;
920
+ title: z.ZodString;
921
+ type: z.ZodNullable<z.ZodString>;
922
+ role: z.ZodEnum<{
923
+ knowledge: "knowledge";
924
+ source: "source";
925
+ inference: "inference";
926
+ ignored: "ignored";
927
+ }>;
928
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
929
+ summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
930
+ updated: z.ZodOptional<z.ZodString>;
931
+ bytes: z.ZodOptional<z.ZodNumber>;
932
+ }, z.core.$strip>>>;
933
+ tree: z.ZodOptional<z.ZodString>;
934
+ total: z.ZodNumber;
935
+ }, z.core.$strip>>;
936
+ readonly timeline: OpDefinition<z.ZodObject<{
937
+ since: z.ZodOptional<z.ZodString>;
938
+ until: z.ZodOptional<z.ZodString>;
939
+ match: z.ZodOptional<z.ZodString>;
940
+ subject: z.ZodOptional<z.ZodString>;
941
+ source: z.ZodOptional<z.ZodEnum<{
942
+ document: "document";
943
+ event: "event";
944
+ both: "both";
945
+ }>>;
946
+ limit: z.ZodOptional<z.ZodNumber>;
947
+ order: z.ZodOptional<z.ZodEnum<{
948
+ newest: "newest";
949
+ oldest: "oldest";
950
+ }>>;
951
+ }, z.core.$strip>, z.ZodObject<{
952
+ status: z.ZodEnum<{
953
+ ok: "ok";
954
+ empty: "empty";
955
+ degraded: "degraded";
956
+ unavailable: "unavailable";
957
+ }>;
958
+ degraded: z.ZodOptional<z.ZodArray<z.ZodEnum<{
959
+ no_embedding_model: "no_embedding_model";
960
+ no_reranker: "no_reranker";
961
+ no_derive_model: "no_derive_model";
962
+ no_expansion_model: "no_expansion_model";
963
+ embedding_failed: "embedding_failed";
964
+ rerank_failed: "rerank_failed";
965
+ derive_failed: "derive_failed";
966
+ expansion_failed: "expansion_failed";
967
+ no_vector_index: "no_vector_index";
968
+ partial_index: "partial_index";
969
+ no_document_text: "no_document_text";
970
+ document_source_missing: "document_source_missing";
971
+ no_graph_index: "no_graph_index";
972
+ no_entity_index: "no_entity_index";
973
+ entity_resolution_failed: "entity_resolution_failed";
974
+ partial_graph_index: "partial_graph_index";
975
+ graph_traversal_limited: "graph_traversal_limited";
976
+ no_answer_model: "no_answer_model";
977
+ answer_failed: "answer_failed";
978
+ answer_verification_failed: "answer_verification_failed";
979
+ answer_truncated: "answer_truncated";
980
+ }>>>;
981
+ note: z.ZodOptional<z.ZodString>;
982
+ results: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
983
+ id: z.ZodString;
984
+ date: z.ZodString;
985
+ summary: z.ZodString;
986
+ slug: z.ZodNullable<z.ZodString>;
987
+ source: z.ZodString;
988
+ line: z.ZodNullable<z.ZodNumber>;
989
+ type: z.ZodLiteral<"event">;
990
+ }, z.core.$strip>, z.ZodObject<{
991
+ type: z.ZodLiteral<"document_evidence">;
992
+ id: z.ZodString;
993
+ date: z.ZodString;
994
+ date_basis: z.ZodEnum<{
995
+ extracted: "extracted";
996
+ file_created: "file_created";
997
+ file_modified: "file_modified";
998
+ }>;
999
+ document_id: z.ZodString;
1000
+ path: z.ZodString;
1001
+ label: z.ZodString;
1002
+ mime: z.ZodNullable<z.ZodString>;
1003
+ matched_page: z.ZodOptional<z.ZodNumber>;
1004
+ quote: z.ZodOptional<z.ZodString>;
1005
+ text_source: z.ZodOptional<z.ZodObject<{
1006
+ kind: z.ZodEnum<{
1007
+ none: "none";
1008
+ original_text: "original_text";
1009
+ ocr_text: "ocr_text";
1010
+ model_description: "model_description";
1011
+ }>;
1012
+ via: z.ZodEnum<{
1013
+ none: "none";
1014
+ plain: "plain";
1015
+ textutil: "textutil";
1016
+ "text-layer": "text-layer";
1017
+ ocr: "ocr";
1018
+ vision: "vision";
1019
+ }>;
1020
+ confidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1021
+ }, z.core.$strip>>;
1022
+ availability: z.ZodObject<{
1023
+ status: z.ZodEnum<{
1024
+ degraded: "degraded";
1025
+ unavailable: "unavailable";
1026
+ available: "available";
1027
+ }>;
1028
+ available_from: z.ZodArray<z.ZodEnum<{
1029
+ original: "original";
1030
+ indexed_text: "indexed_text";
1031
+ rendition: "rendition";
1032
+ }>>;
1033
+ missing_originals: z.ZodArray<z.ZodString>;
1034
+ available_renditions: z.ZodArray<z.ZodString>;
1035
+ missing_since: z.ZodOptional<z.ZodString>;
1036
+ }, z.core.$strip>;
1037
+ suggested_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1038
+ op: z.ZodLiteral<"adopt">;
1039
+ args: z.ZodObject<{
1040
+ documentId: z.ZodString;
1041
+ }, z.core.$strip>;
1042
+ }, z.core.$strip>>>;
1043
+ }, z.core.$strip>], "type">>;
1044
+ total: z.ZodNumber;
1045
+ range: z.ZodObject<{
1046
+ since: z.ZodNullable<z.ZodString>;
1047
+ until: z.ZodNullable<z.ZodString>;
1048
+ }, z.core.$strip>;
1049
+ }, z.core.$strip>>;
1050
+ readonly context: OpDefinition<z.ZodObject<{
1051
+ query: z.ZodOptional<z.ZodString>;
1052
+ profile: z.ZodOptional<z.ZodEnum<{
1053
+ default: "default";
1054
+ auto_recall: "auto_recall";
1055
+ }>>;
1056
+ conversation_context: z.ZodOptional<z.ZodArray<z.ZodObject<{
1057
+ role: z.ZodEnum<{
1058
+ user: "user";
1059
+ assistant: "assistant";
1060
+ }>;
1061
+ content: z.ZodString;
1062
+ }, z.core.$strip>>>;
1063
+ budget: z.ZodOptional<z.ZodNumber>;
1064
+ pinned: z.ZodOptional<z.ZodArray<z.ZodString>>;
1065
+ timeline_days: z.ZodOptional<z.ZodNumber>;
1066
+ structure: z.ZodOptional<z.ZodBoolean>;
1067
+ mode: z.ZodOptional<z.ZodEnum<{
1068
+ lookup: "lookup";
1069
+ question: "question";
1070
+ explore: "explore";
1071
+ }>>;
1072
+ include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1073
+ knowledge: "knowledge";
1074
+ source: "source";
1075
+ inference: "inference";
1076
+ ignored: "ignored";
1077
+ }>>>;
1078
+ filter: z.ZodOptional<z.ZodObject<{
1079
+ folder: z.ZodOptional<z.ZodString>;
1080
+ type: z.ZodOptional<z.ZodString>;
1081
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1082
+ role: z.ZodOptional<z.ZodEnum<{
1083
+ knowledge: "knowledge";
1084
+ source: "source";
1085
+ inference: "inference";
1086
+ ignored: "ignored";
1087
+ }>>;
1088
+ source: z.ZodOptional<z.ZodEnum<{
1089
+ page: "page";
1090
+ document: "document";
1091
+ both: "both";
1092
+ }>>;
1093
+ ownership: z.ZodOptional<z.ZodEnum<{
1094
+ any: "any";
1095
+ orphan: "orphan";
1096
+ owned: "owned";
1097
+ }>>;
1098
+ }, z.core.$strip>>;
1099
+ }, z.core.$strip>, z.ZodObject<{
1100
+ status: z.ZodEnum<{
1101
+ ok: "ok";
1102
+ empty: "empty";
1103
+ degraded: "degraded";
1104
+ unavailable: "unavailable";
1105
+ }>;
1106
+ degraded: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1107
+ no_embedding_model: "no_embedding_model";
1108
+ no_reranker: "no_reranker";
1109
+ no_derive_model: "no_derive_model";
1110
+ no_expansion_model: "no_expansion_model";
1111
+ embedding_failed: "embedding_failed";
1112
+ rerank_failed: "rerank_failed";
1113
+ derive_failed: "derive_failed";
1114
+ expansion_failed: "expansion_failed";
1115
+ no_vector_index: "no_vector_index";
1116
+ partial_index: "partial_index";
1117
+ no_document_text: "no_document_text";
1118
+ document_source_missing: "document_source_missing";
1119
+ no_graph_index: "no_graph_index";
1120
+ no_entity_index: "no_entity_index";
1121
+ entity_resolution_failed: "entity_resolution_failed";
1122
+ partial_graph_index: "partial_graph_index";
1123
+ graph_traversal_limited: "graph_traversal_limited";
1124
+ no_answer_model: "no_answer_model";
1125
+ answer_failed: "answer_failed";
1126
+ answer_verification_failed: "answer_verification_failed";
1127
+ answer_truncated: "answer_truncated";
1128
+ }>>>;
1129
+ note: z.ZodOptional<z.ZodString>;
1130
+ profile: z.ZodOptional<z.ZodEnum<{
1131
+ default: "default";
1132
+ auto_recall: "auto_recall";
1133
+ }>>;
1134
+ activation: z.ZodOptional<z.ZodObject<{
1135
+ activated: z.ZodBoolean;
1136
+ basis: z.ZodEnum<{
1137
+ none: "none";
1138
+ exact: "exact";
1139
+ semantic: "semantic";
1140
+ qualified: "qualified";
1141
+ }>;
1142
+ candidates: z.ZodNumber;
1143
+ selected: z.ZodNumber;
1144
+ qualification_run: z.ZodBoolean;
1145
+ }, z.core.$strip>>;
1146
+ pinned: z.ZodArray<z.ZodObject<{
1147
+ slug: z.ZodString;
1148
+ title: z.ZodString;
1149
+ role: z.ZodEnum<{
1150
+ knowledge: "knowledge";
1151
+ source: "source";
1152
+ inference: "inference";
1153
+ ignored: "ignored";
1154
+ }>;
1155
+ summary: z.ZodNullable<z.ZodString>;
1156
+ breadcrumb: z.ZodOptional<z.ZodString>;
1157
+ updated: z.ZodOptional<z.ZodString>;
1158
+ score: z.ZodNumber;
1159
+ relevance: z.ZodOptional<z.ZodNumber>;
1160
+ lines: z.ZodArray<z.ZodObject<{
1161
+ n: z.ZodNumber;
1162
+ text: z.ZodString;
1163
+ confidence: z.ZodOptional<z.ZodNumber>;
1164
+ fact: z.ZodOptional<z.ZodString>;
1165
+ }, z.core.$strip>>;
1166
+ superseded: z.ZodOptional<z.ZodArray<z.ZodObject<{
1167
+ claim: z.ZodString;
1168
+ valid_to: z.ZodString;
1169
+ }, z.core.$strip>>>;
1170
+ links: z.ZodOptional<z.ZodArray<z.ZodString>>;
1171
+ documents: z.ZodOptional<z.ZodArray<z.ZodObject<{
1172
+ id: z.ZodString;
1173
+ rel_path: z.ZodOptional<z.ZodString>;
1174
+ mime: z.ZodOptional<z.ZodString>;
1175
+ label: z.ZodOptional<z.ZodString>;
1176
+ pages: z.ZodOptional<z.ZodNumber>;
1177
+ parts: z.ZodOptional<z.ZodNumber>;
1178
+ matched_page: z.ZodOptional<z.ZodNumber>;
1179
+ summary: z.ZodOptional<z.ZodString>;
1180
+ quote: z.ZodOptional<z.ZodString>;
1181
+ availability: z.ZodOptional<z.ZodObject<{
1182
+ status: z.ZodEnum<{
1183
+ degraded: "degraded";
1184
+ unavailable: "unavailable";
1185
+ available: "available";
1186
+ }>;
1187
+ available_from: z.ZodArray<z.ZodEnum<{
1188
+ original: "original";
1189
+ indexed_text: "indexed_text";
1190
+ rendition: "rendition";
1191
+ }>>;
1192
+ missing_originals: z.ZodArray<z.ZodString>;
1193
+ available_renditions: z.ZodArray<z.ZodString>;
1194
+ missing_since: z.ZodOptional<z.ZodString>;
1195
+ }, z.core.$strip>>;
1196
+ }, z.core.$strip>>>;
1197
+ truncated: z.ZodOptional<z.ZodBoolean>;
1198
+ matched_by: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1199
+ lexical: "lexical";
1200
+ vector: "vector";
1201
+ graph: "graph";
1202
+ }>>>;
1203
+ graph_paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
1204
+ seed: z.ZodObject<{
1205
+ id: z.ZodString;
1206
+ kind: z.ZodEnum<{
1207
+ fact: "fact";
1208
+ entity: "entity";
1209
+ page: "page";
1210
+ document: "document";
1211
+ event: "event";
1212
+ }>;
1213
+ slug: z.ZodOptional<z.ZodString>;
1214
+ label: z.ZodOptional<z.ZodString>;
1215
+ role: z.ZodOptional<z.ZodEnum<{
1216
+ knowledge: "knowledge";
1217
+ source: "source";
1218
+ inference: "inference";
1219
+ ignored: "ignored";
1220
+ }>>;
1221
+ entity: z.ZodOptional<z.ZodString>;
1222
+ entity_type: z.ZodOptional<z.ZodEnum<{
1223
+ event: "event";
1224
+ person: "person";
1225
+ organization: "organization";
1226
+ place: "place";
1227
+ product: "product";
1228
+ concept: "concept";
1229
+ other: "other";
1230
+ }>>;
1231
+ document: z.ZodOptional<z.ZodString>;
1232
+ fact: z.ZodOptional<z.ZodString>;
1233
+ event: z.ZodOptional<z.ZodString>;
1234
+ date: z.ZodOptional<z.ZodString>;
1235
+ line_start: z.ZodOptional<z.ZodNumber>;
1236
+ line_end: z.ZodOptional<z.ZodNumber>;
1237
+ availability: z.ZodOptional<z.ZodEnum<{
1238
+ degraded: "degraded";
1239
+ unavailable: "unavailable";
1240
+ available: "available";
1241
+ }>>;
1242
+ }, z.core.$strip>;
1243
+ target: z.ZodObject<{
1244
+ id: z.ZodString;
1245
+ kind: z.ZodEnum<{
1246
+ fact: "fact";
1247
+ entity: "entity";
1248
+ page: "page";
1249
+ document: "document";
1250
+ event: "event";
1251
+ }>;
1252
+ slug: z.ZodOptional<z.ZodString>;
1253
+ label: z.ZodOptional<z.ZodString>;
1254
+ role: z.ZodOptional<z.ZodEnum<{
1255
+ knowledge: "knowledge";
1256
+ source: "source";
1257
+ inference: "inference";
1258
+ ignored: "ignored";
1259
+ }>>;
1260
+ entity: z.ZodOptional<z.ZodString>;
1261
+ entity_type: z.ZodOptional<z.ZodEnum<{
1262
+ event: "event";
1263
+ person: "person";
1264
+ organization: "organization";
1265
+ place: "place";
1266
+ product: "product";
1267
+ concept: "concept";
1268
+ other: "other";
1269
+ }>>;
1270
+ document: z.ZodOptional<z.ZodString>;
1271
+ fact: z.ZodOptional<z.ZodString>;
1272
+ event: z.ZodOptional<z.ZodString>;
1273
+ date: z.ZodOptional<z.ZodString>;
1274
+ line_start: z.ZodOptional<z.ZodNumber>;
1275
+ line_end: z.ZodOptional<z.ZodNumber>;
1276
+ availability: z.ZodOptional<z.ZodEnum<{
1277
+ degraded: "degraded";
1278
+ unavailable: "unavailable";
1279
+ available: "available";
1280
+ }>>;
1281
+ }, z.core.$strip>;
1282
+ nodes: z.ZodArray<z.ZodObject<{
1283
+ id: z.ZodString;
1284
+ kind: z.ZodEnum<{
1285
+ fact: "fact";
1286
+ entity: "entity";
1287
+ page: "page";
1288
+ document: "document";
1289
+ event: "event";
1290
+ }>;
1291
+ slug: z.ZodOptional<z.ZodString>;
1292
+ label: z.ZodOptional<z.ZodString>;
1293
+ role: z.ZodOptional<z.ZodEnum<{
1294
+ knowledge: "knowledge";
1295
+ source: "source";
1296
+ inference: "inference";
1297
+ ignored: "ignored";
1298
+ }>>;
1299
+ entity: z.ZodOptional<z.ZodString>;
1300
+ entity_type: z.ZodOptional<z.ZodEnum<{
1301
+ event: "event";
1302
+ person: "person";
1303
+ organization: "organization";
1304
+ place: "place";
1305
+ product: "product";
1306
+ concept: "concept";
1307
+ other: "other";
1308
+ }>>;
1309
+ document: z.ZodOptional<z.ZodString>;
1310
+ fact: z.ZodOptional<z.ZodString>;
1311
+ event: z.ZodOptional<z.ZodString>;
1312
+ date: z.ZodOptional<z.ZodString>;
1313
+ line_start: z.ZodOptional<z.ZodNumber>;
1314
+ line_end: z.ZodOptional<z.ZodNumber>;
1315
+ availability: z.ZodOptional<z.ZodEnum<{
1316
+ degraded: "degraded";
1317
+ unavailable: "unavailable";
1318
+ available: "available";
1319
+ }>>;
1320
+ }, z.core.$strip>>;
1321
+ relations: z.ZodArray<z.ZodEnum<{
1322
+ canonical_record: "canonical_record";
1323
+ links_to: "links_to";
1324
+ mentions: "mentions";
1325
+ about: "about";
1326
+ has_attribute: "has_attribute";
1327
+ related_entity: "related_entity";
1328
+ owns_document: "owns_document";
1329
+ participates_in: "participates_in";
1330
+ }>>;
1331
+ hops: z.ZodNumber;
1332
+ confidence: z.ZodNumber;
1333
+ evidence: z.ZodArray<z.ZodObject<{
1334
+ kind: z.ZodEnum<{
1335
+ document: "document";
1336
+ page_line: "page_line";
1337
+ fact_line: "fact_line";
1338
+ frontmatter: "frontmatter";
1339
+ }>;
1340
+ slug: z.ZodOptional<z.ZodString>;
1341
+ document: z.ZodOptional<z.ZodString>;
1342
+ event: z.ZodOptional<z.ZodString>;
1343
+ fact: z.ZodOptional<z.ZodString>;
1344
+ line_start: z.ZodOptional<z.ZodNumber>;
1345
+ line_end: z.ZodOptional<z.ZodNumber>;
1346
+ field: z.ZodOptional<z.ZodString>;
1347
+ }, z.core.$strip>>;
1348
+ }, z.core.$strip>>>;
1349
+ }, z.core.$strip>>;
1350
+ results: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1351
+ slug: z.ZodString;
1352
+ title: z.ZodString;
1353
+ role: z.ZodEnum<{
1354
+ knowledge: "knowledge";
1355
+ source: "source";
1356
+ inference: "inference";
1357
+ ignored: "ignored";
1358
+ }>;
1359
+ summary: z.ZodNullable<z.ZodString>;
1360
+ breadcrumb: z.ZodOptional<z.ZodString>;
1361
+ updated: z.ZodOptional<z.ZodString>;
1362
+ score: z.ZodNumber;
1363
+ relevance: z.ZodOptional<z.ZodNumber>;
1364
+ lines: z.ZodArray<z.ZodObject<{
1365
+ n: z.ZodNumber;
1366
+ text: z.ZodString;
1367
+ confidence: z.ZodOptional<z.ZodNumber>;
1368
+ fact: z.ZodOptional<z.ZodString>;
1369
+ }, z.core.$strip>>;
1370
+ superseded: z.ZodOptional<z.ZodArray<z.ZodObject<{
1371
+ claim: z.ZodString;
1372
+ valid_to: z.ZodString;
1373
+ }, z.core.$strip>>>;
1374
+ links: z.ZodOptional<z.ZodArray<z.ZodString>>;
1375
+ documents: z.ZodOptional<z.ZodArray<z.ZodObject<{
1376
+ id: z.ZodString;
1377
+ rel_path: z.ZodOptional<z.ZodString>;
1378
+ mime: z.ZodOptional<z.ZodString>;
1379
+ label: z.ZodOptional<z.ZodString>;
1380
+ pages: z.ZodOptional<z.ZodNumber>;
1381
+ parts: z.ZodOptional<z.ZodNumber>;
1382
+ matched_page: z.ZodOptional<z.ZodNumber>;
1383
+ summary: z.ZodOptional<z.ZodString>;
1384
+ quote: z.ZodOptional<z.ZodString>;
1385
+ availability: z.ZodOptional<z.ZodObject<{
1386
+ status: z.ZodEnum<{
1387
+ degraded: "degraded";
1388
+ unavailable: "unavailable";
1389
+ available: "available";
1390
+ }>;
1391
+ available_from: z.ZodArray<z.ZodEnum<{
1392
+ original: "original";
1393
+ indexed_text: "indexed_text";
1394
+ rendition: "rendition";
1395
+ }>>;
1396
+ missing_originals: z.ZodArray<z.ZodString>;
1397
+ available_renditions: z.ZodArray<z.ZodString>;
1398
+ missing_since: z.ZodOptional<z.ZodString>;
1399
+ }, z.core.$strip>>;
1400
+ }, z.core.$strip>>>;
1401
+ truncated: z.ZodOptional<z.ZodBoolean>;
1402
+ matched_by: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1403
+ lexical: "lexical";
1404
+ vector: "vector";
1405
+ graph: "graph";
1406
+ }>>>;
1407
+ graph_paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
1408
+ seed: z.ZodObject<{
1409
+ id: z.ZodString;
1410
+ kind: z.ZodEnum<{
1411
+ fact: "fact";
1412
+ entity: "entity";
1413
+ page: "page";
1414
+ document: "document";
1415
+ event: "event";
1416
+ }>;
1417
+ slug: z.ZodOptional<z.ZodString>;
1418
+ label: z.ZodOptional<z.ZodString>;
1419
+ role: z.ZodOptional<z.ZodEnum<{
1420
+ knowledge: "knowledge";
1421
+ source: "source";
1422
+ inference: "inference";
1423
+ ignored: "ignored";
1424
+ }>>;
1425
+ entity: z.ZodOptional<z.ZodString>;
1426
+ entity_type: z.ZodOptional<z.ZodEnum<{
1427
+ event: "event";
1428
+ person: "person";
1429
+ organization: "organization";
1430
+ place: "place";
1431
+ product: "product";
1432
+ concept: "concept";
1433
+ other: "other";
1434
+ }>>;
1435
+ document: z.ZodOptional<z.ZodString>;
1436
+ fact: z.ZodOptional<z.ZodString>;
1437
+ event: z.ZodOptional<z.ZodString>;
1438
+ date: z.ZodOptional<z.ZodString>;
1439
+ line_start: z.ZodOptional<z.ZodNumber>;
1440
+ line_end: z.ZodOptional<z.ZodNumber>;
1441
+ availability: z.ZodOptional<z.ZodEnum<{
1442
+ degraded: "degraded";
1443
+ unavailable: "unavailable";
1444
+ available: "available";
1445
+ }>>;
1446
+ }, z.core.$strip>;
1447
+ target: z.ZodObject<{
1448
+ id: z.ZodString;
1449
+ kind: z.ZodEnum<{
1450
+ fact: "fact";
1451
+ entity: "entity";
1452
+ page: "page";
1453
+ document: "document";
1454
+ event: "event";
1455
+ }>;
1456
+ slug: z.ZodOptional<z.ZodString>;
1457
+ label: z.ZodOptional<z.ZodString>;
1458
+ role: z.ZodOptional<z.ZodEnum<{
1459
+ knowledge: "knowledge";
1460
+ source: "source";
1461
+ inference: "inference";
1462
+ ignored: "ignored";
1463
+ }>>;
1464
+ entity: z.ZodOptional<z.ZodString>;
1465
+ entity_type: z.ZodOptional<z.ZodEnum<{
1466
+ event: "event";
1467
+ person: "person";
1468
+ organization: "organization";
1469
+ place: "place";
1470
+ product: "product";
1471
+ concept: "concept";
1472
+ other: "other";
1473
+ }>>;
1474
+ document: z.ZodOptional<z.ZodString>;
1475
+ fact: z.ZodOptional<z.ZodString>;
1476
+ event: z.ZodOptional<z.ZodString>;
1477
+ date: z.ZodOptional<z.ZodString>;
1478
+ line_start: z.ZodOptional<z.ZodNumber>;
1479
+ line_end: z.ZodOptional<z.ZodNumber>;
1480
+ availability: z.ZodOptional<z.ZodEnum<{
1481
+ degraded: "degraded";
1482
+ unavailable: "unavailable";
1483
+ available: "available";
1484
+ }>>;
1485
+ }, z.core.$strip>;
1486
+ nodes: z.ZodArray<z.ZodObject<{
1487
+ id: z.ZodString;
1488
+ kind: z.ZodEnum<{
1489
+ fact: "fact";
1490
+ entity: "entity";
1491
+ page: "page";
1492
+ document: "document";
1493
+ event: "event";
1494
+ }>;
1495
+ slug: z.ZodOptional<z.ZodString>;
1496
+ label: z.ZodOptional<z.ZodString>;
1497
+ role: z.ZodOptional<z.ZodEnum<{
1498
+ knowledge: "knowledge";
1499
+ source: "source";
1500
+ inference: "inference";
1501
+ ignored: "ignored";
1502
+ }>>;
1503
+ entity: z.ZodOptional<z.ZodString>;
1504
+ entity_type: z.ZodOptional<z.ZodEnum<{
1505
+ event: "event";
1506
+ person: "person";
1507
+ organization: "organization";
1508
+ place: "place";
1509
+ product: "product";
1510
+ concept: "concept";
1511
+ other: "other";
1512
+ }>>;
1513
+ document: z.ZodOptional<z.ZodString>;
1514
+ fact: z.ZodOptional<z.ZodString>;
1515
+ event: z.ZodOptional<z.ZodString>;
1516
+ date: z.ZodOptional<z.ZodString>;
1517
+ line_start: z.ZodOptional<z.ZodNumber>;
1518
+ line_end: z.ZodOptional<z.ZodNumber>;
1519
+ availability: z.ZodOptional<z.ZodEnum<{
1520
+ degraded: "degraded";
1521
+ unavailable: "unavailable";
1522
+ available: "available";
1523
+ }>>;
1524
+ }, z.core.$strip>>;
1525
+ relations: z.ZodArray<z.ZodEnum<{
1526
+ canonical_record: "canonical_record";
1527
+ links_to: "links_to";
1528
+ mentions: "mentions";
1529
+ about: "about";
1530
+ has_attribute: "has_attribute";
1531
+ related_entity: "related_entity";
1532
+ owns_document: "owns_document";
1533
+ participates_in: "participates_in";
1534
+ }>>;
1535
+ hops: z.ZodNumber;
1536
+ confidence: z.ZodNumber;
1537
+ evidence: z.ZodArray<z.ZodObject<{
1538
+ kind: z.ZodEnum<{
1539
+ document: "document";
1540
+ page_line: "page_line";
1541
+ fact_line: "fact_line";
1542
+ frontmatter: "frontmatter";
1543
+ }>;
1544
+ slug: z.ZodOptional<z.ZodString>;
1545
+ document: z.ZodOptional<z.ZodString>;
1546
+ event: z.ZodOptional<z.ZodString>;
1547
+ fact: z.ZodOptional<z.ZodString>;
1548
+ line_start: z.ZodOptional<z.ZodNumber>;
1549
+ line_end: z.ZodOptional<z.ZodNumber>;
1550
+ field: z.ZodOptional<z.ZodString>;
1551
+ }, z.core.$strip>>;
1552
+ }, z.core.$strip>>>;
1553
+ type: z.ZodLiteral<"page">;
1554
+ }, z.core.$strip>, z.ZodObject<{
1555
+ type: z.ZodLiteral<"document">;
1556
+ id: z.ZodString;
1557
+ path: z.ZodString;
1558
+ label: z.ZodString;
1559
+ mime: z.ZodNullable<z.ZodString>;
1560
+ summary: z.ZodOptional<z.ZodString>;
1561
+ quote: z.ZodOptional<z.ZodString>;
1562
+ matched_page: z.ZodOptional<z.ZodNumber>;
1563
+ parts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1564
+ id: z.ZodString;
1565
+ path: z.ZodString;
1566
+ pages: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1567
+ }, z.core.$strip>>>;
1568
+ source: z.ZodObject<{
1569
+ kind: z.ZodEnum<{
1570
+ none: "none";
1571
+ original_text: "original_text";
1572
+ ocr_text: "ocr_text";
1573
+ model_description: "model_description";
1574
+ }>;
1575
+ via: z.ZodEnum<{
1576
+ none: "none";
1577
+ plain: "plain";
1578
+ textutil: "textutil";
1579
+ "text-layer": "text-layer";
1580
+ ocr: "ocr";
1581
+ vision: "vision";
1582
+ }>;
1583
+ confidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1584
+ }, z.core.$strip>;
1585
+ availability: z.ZodOptional<z.ZodObject<{
1586
+ status: z.ZodEnum<{
1587
+ degraded: "degraded";
1588
+ unavailable: "unavailable";
1589
+ available: "available";
1590
+ }>;
1591
+ available_from: z.ZodArray<z.ZodEnum<{
1592
+ original: "original";
1593
+ indexed_text: "indexed_text";
1594
+ rendition: "rendition";
1595
+ }>>;
1596
+ missing_originals: z.ZodArray<z.ZodString>;
1597
+ available_renditions: z.ZodArray<z.ZodString>;
1598
+ missing_since: z.ZodOptional<z.ZodString>;
1599
+ }, z.core.$strip>>;
1600
+ ownership: z.ZodObject<{
1601
+ status: z.ZodLiteral<"orphan">;
1602
+ }, z.core.$strip>;
1603
+ suggested_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1604
+ op: z.ZodLiteral<"adopt">;
1605
+ args: z.ZodObject<{
1606
+ documentId: z.ZodString;
1607
+ }, z.core.$strip>;
1608
+ }, z.core.$strip>>>;
1609
+ score: z.ZodNumber;
1610
+ relevance: z.ZodOptional<z.ZodNumber>;
1611
+ matched_by: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1612
+ lexical: "lexical";
1613
+ vector: "vector";
1614
+ graph: "graph";
1615
+ }>>>;
1616
+ graph_paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
1617
+ seed: z.ZodObject<{
1618
+ id: z.ZodString;
1619
+ kind: z.ZodEnum<{
1620
+ fact: "fact";
1621
+ entity: "entity";
1622
+ page: "page";
1623
+ document: "document";
1624
+ event: "event";
1625
+ }>;
1626
+ slug: z.ZodOptional<z.ZodString>;
1627
+ label: z.ZodOptional<z.ZodString>;
1628
+ role: z.ZodOptional<z.ZodEnum<{
1629
+ knowledge: "knowledge";
1630
+ source: "source";
1631
+ inference: "inference";
1632
+ ignored: "ignored";
1633
+ }>>;
1634
+ entity: z.ZodOptional<z.ZodString>;
1635
+ entity_type: z.ZodOptional<z.ZodEnum<{
1636
+ event: "event";
1637
+ person: "person";
1638
+ organization: "organization";
1639
+ place: "place";
1640
+ product: "product";
1641
+ concept: "concept";
1642
+ other: "other";
1643
+ }>>;
1644
+ document: z.ZodOptional<z.ZodString>;
1645
+ fact: z.ZodOptional<z.ZodString>;
1646
+ event: z.ZodOptional<z.ZodString>;
1647
+ date: z.ZodOptional<z.ZodString>;
1648
+ line_start: z.ZodOptional<z.ZodNumber>;
1649
+ line_end: z.ZodOptional<z.ZodNumber>;
1650
+ availability: z.ZodOptional<z.ZodEnum<{
1651
+ degraded: "degraded";
1652
+ unavailable: "unavailable";
1653
+ available: "available";
1654
+ }>>;
1655
+ }, z.core.$strip>;
1656
+ target: z.ZodObject<{
1657
+ id: z.ZodString;
1658
+ kind: z.ZodEnum<{
1659
+ fact: "fact";
1660
+ entity: "entity";
1661
+ page: "page";
1662
+ document: "document";
1663
+ event: "event";
1664
+ }>;
1665
+ slug: z.ZodOptional<z.ZodString>;
1666
+ label: z.ZodOptional<z.ZodString>;
1667
+ role: z.ZodOptional<z.ZodEnum<{
1668
+ knowledge: "knowledge";
1669
+ source: "source";
1670
+ inference: "inference";
1671
+ ignored: "ignored";
1672
+ }>>;
1673
+ entity: z.ZodOptional<z.ZodString>;
1674
+ entity_type: z.ZodOptional<z.ZodEnum<{
1675
+ event: "event";
1676
+ person: "person";
1677
+ organization: "organization";
1678
+ place: "place";
1679
+ product: "product";
1680
+ concept: "concept";
1681
+ other: "other";
1682
+ }>>;
1683
+ document: z.ZodOptional<z.ZodString>;
1684
+ fact: z.ZodOptional<z.ZodString>;
1685
+ event: z.ZodOptional<z.ZodString>;
1686
+ date: z.ZodOptional<z.ZodString>;
1687
+ line_start: z.ZodOptional<z.ZodNumber>;
1688
+ line_end: z.ZodOptional<z.ZodNumber>;
1689
+ availability: z.ZodOptional<z.ZodEnum<{
1690
+ degraded: "degraded";
1691
+ unavailable: "unavailable";
1692
+ available: "available";
1693
+ }>>;
1694
+ }, z.core.$strip>;
1695
+ nodes: z.ZodArray<z.ZodObject<{
1696
+ id: z.ZodString;
1697
+ kind: z.ZodEnum<{
1698
+ fact: "fact";
1699
+ entity: "entity";
1700
+ page: "page";
1701
+ document: "document";
1702
+ event: "event";
1703
+ }>;
1704
+ slug: z.ZodOptional<z.ZodString>;
1705
+ label: z.ZodOptional<z.ZodString>;
1706
+ role: z.ZodOptional<z.ZodEnum<{
1707
+ knowledge: "knowledge";
1708
+ source: "source";
1709
+ inference: "inference";
1710
+ ignored: "ignored";
1711
+ }>>;
1712
+ entity: z.ZodOptional<z.ZodString>;
1713
+ entity_type: z.ZodOptional<z.ZodEnum<{
1714
+ event: "event";
1715
+ person: "person";
1716
+ organization: "organization";
1717
+ place: "place";
1718
+ product: "product";
1719
+ concept: "concept";
1720
+ other: "other";
1721
+ }>>;
1722
+ document: z.ZodOptional<z.ZodString>;
1723
+ fact: z.ZodOptional<z.ZodString>;
1724
+ event: z.ZodOptional<z.ZodString>;
1725
+ date: z.ZodOptional<z.ZodString>;
1726
+ line_start: z.ZodOptional<z.ZodNumber>;
1727
+ line_end: z.ZodOptional<z.ZodNumber>;
1728
+ availability: z.ZodOptional<z.ZodEnum<{
1729
+ degraded: "degraded";
1730
+ unavailable: "unavailable";
1731
+ available: "available";
1732
+ }>>;
1733
+ }, z.core.$strip>>;
1734
+ relations: z.ZodArray<z.ZodEnum<{
1735
+ canonical_record: "canonical_record";
1736
+ links_to: "links_to";
1737
+ mentions: "mentions";
1738
+ about: "about";
1739
+ has_attribute: "has_attribute";
1740
+ related_entity: "related_entity";
1741
+ owns_document: "owns_document";
1742
+ participates_in: "participates_in";
1743
+ }>>;
1744
+ hops: z.ZodNumber;
1745
+ confidence: z.ZodNumber;
1746
+ evidence: z.ZodArray<z.ZodObject<{
1747
+ kind: z.ZodEnum<{
1748
+ document: "document";
1749
+ page_line: "page_line";
1750
+ fact_line: "fact_line";
1751
+ frontmatter: "frontmatter";
1752
+ }>;
1753
+ slug: z.ZodOptional<z.ZodString>;
1754
+ document: z.ZodOptional<z.ZodString>;
1755
+ event: z.ZodOptional<z.ZodString>;
1756
+ fact: z.ZodOptional<z.ZodString>;
1757
+ line_start: z.ZodOptional<z.ZodNumber>;
1758
+ line_end: z.ZodOptional<z.ZodNumber>;
1759
+ field: z.ZodOptional<z.ZodString>;
1760
+ }, z.core.$strip>>;
1761
+ }, z.core.$strip>>>;
1762
+ }, z.core.$strip>], "type">>;
1763
+ timeline: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1764
+ id: z.ZodString;
1765
+ date: z.ZodString;
1766
+ summary: z.ZodString;
1767
+ slug: z.ZodNullable<z.ZodString>;
1768
+ source: z.ZodString;
1769
+ line: z.ZodNullable<z.ZodNumber>;
1770
+ type: z.ZodLiteral<"event">;
1771
+ }, z.core.$strip>, z.ZodObject<{
1772
+ type: z.ZodLiteral<"document_evidence">;
1773
+ id: z.ZodString;
1774
+ date: z.ZodString;
1775
+ date_basis: z.ZodEnum<{
1776
+ extracted: "extracted";
1777
+ file_created: "file_created";
1778
+ file_modified: "file_modified";
1779
+ }>;
1780
+ document_id: z.ZodString;
1781
+ path: z.ZodString;
1782
+ label: z.ZodString;
1783
+ mime: z.ZodNullable<z.ZodString>;
1784
+ matched_page: z.ZodOptional<z.ZodNumber>;
1785
+ quote: z.ZodOptional<z.ZodString>;
1786
+ text_source: z.ZodOptional<z.ZodObject<{
1787
+ kind: z.ZodEnum<{
1788
+ none: "none";
1789
+ original_text: "original_text";
1790
+ ocr_text: "ocr_text";
1791
+ model_description: "model_description";
1792
+ }>;
1793
+ via: z.ZodEnum<{
1794
+ none: "none";
1795
+ plain: "plain";
1796
+ textutil: "textutil";
1797
+ "text-layer": "text-layer";
1798
+ ocr: "ocr";
1799
+ vision: "vision";
1800
+ }>;
1801
+ confidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1802
+ }, z.core.$strip>>;
1803
+ availability: z.ZodObject<{
1804
+ status: z.ZodEnum<{
1805
+ degraded: "degraded";
1806
+ unavailable: "unavailable";
1807
+ available: "available";
1808
+ }>;
1809
+ available_from: z.ZodArray<z.ZodEnum<{
1810
+ original: "original";
1811
+ indexed_text: "indexed_text";
1812
+ rendition: "rendition";
1813
+ }>>;
1814
+ missing_originals: z.ZodArray<z.ZodString>;
1815
+ available_renditions: z.ZodArray<z.ZodString>;
1816
+ missing_since: z.ZodOptional<z.ZodString>;
1817
+ }, z.core.$strip>;
1818
+ suggested_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1819
+ op: z.ZodLiteral<"adopt">;
1820
+ args: z.ZodObject<{
1821
+ documentId: z.ZodString;
1822
+ }, z.core.$strip>;
1823
+ }, z.core.$strip>>>;
1824
+ }, z.core.$strip>], "type">>;
1825
+ structure: z.ZodOptional<z.ZodString>;
1826
+ searched: z.ZodArray<z.ZodString>;
1827
+ coverage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
1828
+ qualification: z.ZodOptional<z.ZodObject<{
1829
+ model: z.ZodEnum<{
1830
+ llm: "llm";
1831
+ native: "native";
1832
+ }>;
1833
+ model_id: z.ZodOptional<z.ZodString>;
1834
+ latency_ms: z.ZodOptional<z.ZodNumber>;
1835
+ input_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1836
+ output_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1837
+ total_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1838
+ applied: z.ZodBoolean;
1839
+ judged: z.ZodNumber;
1840
+ rejected: z.ZodNumber;
1841
+ unjudged: z.ZodNumber;
1842
+ basis: z.ZodEnum<{
1843
+ llm_grade: "llm_grade";
1844
+ native_auto: "native_auto";
1845
+ native_manual: "native_manual";
1846
+ disabled: "disabled";
1847
+ calibration_failed: "calibration_failed";
1848
+ }>;
1849
+ threshold: z.ZodNullable<z.ZodNumber>;
1850
+ }, z.core.$strip>>;
1851
+ budget_used: z.ZodNumber;
1852
+ dropped: z.ZodOptional<z.ZodObject<{
1853
+ pinned: z.ZodNumber;
1854
+ results: z.ZodNumber;
1855
+ timeline: z.ZodNumber;
1856
+ }, z.core.$strip>>;
1857
+ }, z.core.$strip>>;
1858
+ readonly graph: OpDefinition<z.ZodObject<{
1859
+ slug: z.ZodOptional<z.ZodString>;
1860
+ entity: z.ZodOptional<z.ZodString>;
1861
+ query: z.ZodOptional<z.ZodString>;
1862
+ direction: z.ZodOptional<z.ZodEnum<{
1863
+ out: "out";
1864
+ in: "in";
1865
+ both: "both";
1866
+ }>>;
1867
+ relations: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1868
+ canonical_record: "canonical_record";
1869
+ links_to: "links_to";
1870
+ mentions: "mentions";
1871
+ about: "about";
1872
+ has_attribute: "has_attribute";
1873
+ related_entity: "related_entity";
1874
+ owns_document: "owns_document";
1875
+ participates_in: "participates_in";
1876
+ }>>>;
1877
+ max_hops: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
1878
+ limit: z.ZodOptional<z.ZodNumber>;
1879
+ include_history: z.ZodOptional<z.ZodBoolean>;
1880
+ }, z.core.$strip>, z.ZodObject<{
1881
+ status: z.ZodEnum<{
1882
+ ok: "ok";
1883
+ empty: "empty";
1884
+ degraded: "degraded";
1885
+ unavailable: "unavailable";
1886
+ }>;
1887
+ degraded: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1888
+ no_embedding_model: "no_embedding_model";
1889
+ no_reranker: "no_reranker";
1890
+ no_derive_model: "no_derive_model";
1891
+ no_expansion_model: "no_expansion_model";
1892
+ embedding_failed: "embedding_failed";
1893
+ rerank_failed: "rerank_failed";
1894
+ derive_failed: "derive_failed";
1895
+ expansion_failed: "expansion_failed";
1896
+ no_vector_index: "no_vector_index";
1897
+ partial_index: "partial_index";
1898
+ no_document_text: "no_document_text";
1899
+ document_source_missing: "document_source_missing";
1900
+ no_graph_index: "no_graph_index";
1901
+ no_entity_index: "no_entity_index";
1902
+ entity_resolution_failed: "entity_resolution_failed";
1903
+ partial_graph_index: "partial_graph_index";
1904
+ graph_traversal_limited: "graph_traversal_limited";
1905
+ no_answer_model: "no_answer_model";
1906
+ answer_failed: "answer_failed";
1907
+ answer_verification_failed: "answer_verification_failed";
1908
+ answer_truncated: "answer_truncated";
1909
+ }>>>;
1910
+ note: z.ZodOptional<z.ZodString>;
1911
+ seeds: z.ZodArray<z.ZodObject<{
1912
+ form: z.ZodEnum<{
1913
+ entity: "entity";
1914
+ slug: "slug";
1915
+ query: "query";
1916
+ }>;
1917
+ value: z.ZodString;
1918
+ node: z.ZodString;
1919
+ }, z.core.$strip>>;
1920
+ nodes: z.ZodArray<z.ZodObject<{
1921
+ id: z.ZodString;
1922
+ kind: z.ZodEnum<{
1923
+ fact: "fact";
1924
+ entity: "entity";
1925
+ page: "page";
1926
+ document: "document";
1927
+ event: "event";
1928
+ }>;
1929
+ slug: z.ZodOptional<z.ZodString>;
1930
+ label: z.ZodOptional<z.ZodString>;
1931
+ role: z.ZodOptional<z.ZodEnum<{
1932
+ knowledge: "knowledge";
1933
+ source: "source";
1934
+ inference: "inference";
1935
+ ignored: "ignored";
1936
+ }>>;
1937
+ entity: z.ZodOptional<z.ZodString>;
1938
+ entity_type: z.ZodOptional<z.ZodEnum<{
1939
+ event: "event";
1940
+ person: "person";
1941
+ organization: "organization";
1942
+ place: "place";
1943
+ product: "product";
1944
+ concept: "concept";
1945
+ other: "other";
1946
+ }>>;
1947
+ document: z.ZodOptional<z.ZodString>;
1948
+ fact: z.ZodOptional<z.ZodString>;
1949
+ event: z.ZodOptional<z.ZodString>;
1950
+ date: z.ZodOptional<z.ZodString>;
1951
+ line_start: z.ZodOptional<z.ZodNumber>;
1952
+ line_end: z.ZodOptional<z.ZodNumber>;
1953
+ availability: z.ZodOptional<z.ZodEnum<{
1954
+ degraded: "degraded";
1955
+ unavailable: "unavailable";
1956
+ available: "available";
1957
+ }>>;
1958
+ }, z.core.$strip>>;
1959
+ edges: z.ZodArray<z.ZodObject<{
1960
+ id: z.ZodString;
1961
+ from: z.ZodString;
1962
+ to: z.ZodString;
1963
+ relation: z.ZodEnum<{
1964
+ canonical_record: "canonical_record";
1965
+ links_to: "links_to";
1966
+ mentions: "mentions";
1967
+ about: "about";
1968
+ has_attribute: "has_attribute";
1969
+ related_entity: "related_entity";
1970
+ owns_document: "owns_document";
1971
+ participates_in: "participates_in";
1972
+ }>;
1973
+ predicate: z.ZodOptional<z.ZodString>;
1974
+ confidence: z.ZodNumber;
1975
+ derivation: z.ZodEnum<{
1976
+ fact: "fact";
1977
+ structural: "structural";
1978
+ }>;
1979
+ resolution: z.ZodEnum<{
1980
+ exact: "exact";
1981
+ contextual: "contextual";
1982
+ }>;
1983
+ evidence: z.ZodObject<{
1984
+ kind: z.ZodEnum<{
1985
+ document: "document";
1986
+ page_line: "page_line";
1987
+ fact_line: "fact_line";
1988
+ frontmatter: "frontmatter";
1989
+ }>;
1990
+ slug: z.ZodOptional<z.ZodString>;
1991
+ document: z.ZodOptional<z.ZodString>;
1992
+ event: z.ZodOptional<z.ZodString>;
1993
+ fact: z.ZodOptional<z.ZodString>;
1994
+ line_start: z.ZodOptional<z.ZodNumber>;
1995
+ line_end: z.ZodOptional<z.ZodNumber>;
1996
+ field: z.ZodOptional<z.ZodString>;
1997
+ }, z.core.$strip>;
1998
+ valid_from: z.ZodOptional<z.ZodString>;
1999
+ valid_to: z.ZodOptional<z.ZodString>;
2000
+ historical: z.ZodBoolean;
2001
+ }, z.core.$strip>>;
2002
+ paths: z.ZodArray<z.ZodObject<{
2003
+ seed: z.ZodString;
2004
+ nodes: z.ZodArray<z.ZodString>;
2005
+ edges: z.ZodArray<z.ZodString>;
2006
+ hops: z.ZodNumber;
2007
+ confidence: z.ZodNumber;
2008
+ evidence: z.ZodArray<z.ZodObject<{
2009
+ kind: z.ZodEnum<{
2010
+ document: "document";
2011
+ page_line: "page_line";
2012
+ fact_line: "fact_line";
2013
+ frontmatter: "frontmatter";
2014
+ }>;
2015
+ slug: z.ZodOptional<z.ZodString>;
2016
+ document: z.ZodOptional<z.ZodString>;
2017
+ event: z.ZodOptional<z.ZodString>;
2018
+ fact: z.ZodOptional<z.ZodString>;
2019
+ line_start: z.ZodOptional<z.ZodNumber>;
2020
+ line_end: z.ZodOptional<z.ZodNumber>;
2021
+ field: z.ZodOptional<z.ZodString>;
2022
+ }, z.core.$strip>>;
2023
+ }, z.core.$strip>>;
2024
+ ambiguities: z.ZodArray<z.ZodObject<{
2025
+ mention: z.ZodString;
2026
+ normalized: z.ZodString;
2027
+ candidates: z.ZodArray<z.ZodObject<{
2028
+ id: z.ZodString;
2029
+ kind: z.ZodEnum<{
2030
+ fact: "fact";
2031
+ entity: "entity";
2032
+ page: "page";
2033
+ document: "document";
2034
+ event: "event";
2035
+ }>;
2036
+ slug: z.ZodOptional<z.ZodString>;
2037
+ label: z.ZodOptional<z.ZodString>;
2038
+ role: z.ZodOptional<z.ZodEnum<{
2039
+ knowledge: "knowledge";
2040
+ source: "source";
2041
+ inference: "inference";
2042
+ ignored: "ignored";
2043
+ }>>;
2044
+ entity: z.ZodOptional<z.ZodString>;
2045
+ entity_type: z.ZodOptional<z.ZodEnum<{
2046
+ event: "event";
2047
+ person: "person";
2048
+ organization: "organization";
2049
+ place: "place";
2050
+ product: "product";
2051
+ concept: "concept";
2052
+ other: "other";
2053
+ }>>;
2054
+ document: z.ZodOptional<z.ZodString>;
2055
+ fact: z.ZodOptional<z.ZodString>;
2056
+ event: z.ZodOptional<z.ZodString>;
2057
+ date: z.ZodOptional<z.ZodString>;
2058
+ line_start: z.ZodOptional<z.ZodNumber>;
2059
+ line_end: z.ZodOptional<z.ZodNumber>;
2060
+ availability: z.ZodOptional<z.ZodEnum<{
2061
+ degraded: "degraded";
2062
+ unavailable: "unavailable";
2063
+ available: "available";
2064
+ }>>;
2065
+ }, z.core.$strip>>;
2066
+ }, z.core.$strip>>;
2067
+ total: z.ZodNumber;
2068
+ truncated: z.ZodBoolean;
2069
+ reason: z.ZodOptional<z.ZodEnum<{
2070
+ seed_not_found: "seed_not_found";
2071
+ no_paths: "no_paths";
2072
+ graph_index_unreadable: "graph_index_unreadable";
2073
+ }>>;
2074
+ }, z.core.$strip>>;
2075
+ readonly write: OpDefinition<z.ZodObject<{
2076
+ slug: z.ZodOptional<z.ZodString>;
2077
+ propose_slug: z.ZodOptional<z.ZodString>;
2078
+ title: z.ZodOptional<z.ZodString>;
2079
+ type: z.ZodOptional<z.ZodString>;
2080
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2081
+ content: z.ZodOptional<z.ZodString>;
2082
+ append: z.ZodOptional<z.ZodString>;
2083
+ patch: z.ZodOptional<z.ZodString>;
2084
+ replace: z.ZodOptional<z.ZodObject<{
2085
+ find: z.ZodString;
2086
+ with: z.ZodString;
2087
+ }, z.core.$strip>>;
2088
+ section: z.ZodOptional<z.ZodString>;
2089
+ event: z.ZodOptional<z.ZodObject<{
2090
+ date: z.ZodString;
2091
+ summary: z.ZodString;
2092
+ }, z.core.$strip>>;
2093
+ documents: z.ZodOptional<z.ZodArray<z.ZodObject<{
2094
+ path: z.ZodString;
2095
+ label: z.ZodOptional<z.ZodString>;
2096
+ }, z.core.$strip>>>;
2097
+ links: z.ZodOptional<z.ZodArray<z.ZodString>>;
2098
+ dry_run: z.ZodOptional<z.ZodBoolean>;
2099
+ resolve_conflict: z.ZodOptional<z.ZodString>;
2100
+ }, z.core.$strip>, z.ZodObject<{
2101
+ status: z.ZodEnum<{
2102
+ ok: "ok";
2103
+ empty: "empty";
2104
+ degraded: "degraded";
2105
+ unavailable: "unavailable";
2106
+ }>;
2107
+ degraded: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2108
+ no_embedding_model: "no_embedding_model";
2109
+ no_reranker: "no_reranker";
2110
+ no_derive_model: "no_derive_model";
2111
+ no_expansion_model: "no_expansion_model";
2112
+ embedding_failed: "embedding_failed";
2113
+ rerank_failed: "rerank_failed";
2114
+ derive_failed: "derive_failed";
2115
+ expansion_failed: "expansion_failed";
2116
+ no_vector_index: "no_vector_index";
2117
+ partial_index: "partial_index";
2118
+ no_document_text: "no_document_text";
2119
+ document_source_missing: "document_source_missing";
2120
+ no_graph_index: "no_graph_index";
2121
+ no_entity_index: "no_entity_index";
2122
+ entity_resolution_failed: "entity_resolution_failed";
2123
+ partial_graph_index: "partial_graph_index";
2124
+ graph_traversal_limited: "graph_traversal_limited";
2125
+ no_answer_model: "no_answer_model";
2126
+ answer_failed: "answer_failed";
2127
+ answer_verification_failed: "answer_verification_failed";
2128
+ answer_truncated: "answer_truncated";
2129
+ }>>>;
2130
+ note: z.ZodOptional<z.ZodString>;
2131
+ outcome: z.ZodEnum<{
2132
+ ok: "ok";
2133
+ requires_approval: "requires_approval";
2134
+ conflict: "conflict";
2135
+ requires_folder: "requires_folder";
2136
+ noop: "noop";
2137
+ }>;
2138
+ change_id: z.ZodOptional<z.ZodString>;
2139
+ wrote: z.ZodOptional<z.ZodArray<z.ZodObject<{
2140
+ slug: z.ZodString;
2141
+ line: z.ZodOptional<z.ZodNumber>;
2142
+ action: z.ZodEnum<{
2143
+ event: "event";
2144
+ superseded: "superseded";
2145
+ created: "created";
2146
+ appended: "appended";
2147
+ patched: "patched";
2148
+ replaced: "replaced";
2149
+ attached: "attached";
2150
+ }>;
2151
+ }, z.core.$strip>>>;
2152
+ facts: z.ZodOptional<z.ZodObject<{
2153
+ retired: z.ZodNumber;
2154
+ added: z.ZodNumber;
2155
+ }, z.core.$strip>>;
2156
+ documents: z.ZodOptional<z.ZodArray<z.ZodObject<{
2157
+ id: z.ZodString;
2158
+ rel_path: z.ZodString;
2159
+ text_from: z.ZodOptional<z.ZodString>;
2160
+ }, z.core.$strip>>>;
2161
+ conflict: z.ZodOptional<z.ZodObject<{
2162
+ slug: z.ZodString;
2163
+ line: z.ZodNumber;
2164
+ existing: z.ZodString;
2165
+ incoming: z.ZodString;
2166
+ subject: z.ZodOptional<z.ZodString>;
2167
+ token: z.ZodString;
2168
+ }, z.core.$strip>>;
2169
+ approval: z.ZodOptional<z.ZodObject<{
2170
+ proposal_id: z.ZodString;
2171
+ reason: z.ZodString;
2172
+ reason_code: z.ZodOptional<z.ZodEnum<{
2173
+ conflict: "conflict";
2174
+ routing_uncertain: "routing_uncertain";
2175
+ no_writable_destination: "no_writable_destination";
2176
+ }>>;
2177
+ nearest: z.ZodArray<z.ZodString>;
2178
+ }, z.core.$strip>>;
2179
+ requires_folder: z.ZodOptional<z.ZodObject<{
2180
+ folder: z.ZodString;
2181
+ nearest: z.ZodArray<z.ZodString>;
2182
+ }, z.core.$strip>>;
2183
+ }, z.core.$strip>>;
2184
+ readonly folder: OpDefinition<z.ZodObject<{
2185
+ path: z.ZodString;
2186
+ description: z.ZodString;
2187
+ role: z.ZodOptional<z.ZodEnum<{
2188
+ knowledge: "knowledge";
2189
+ source: "source";
2190
+ inference: "inference";
2191
+ ignored: "ignored";
2192
+ }>>;
2193
+ remember: z.ZodOptional<z.ZodEnum<{
2194
+ deny: "deny";
2195
+ integrate: "integrate";
2196
+ }>>;
2197
+ about: z.ZodOptional<z.ZodArray<z.ZodString>>;
2198
+ type: z.ZodOptional<z.ZodString>;
2199
+ ingest: z.ZodOptional<z.ZodEnum<{
2200
+ file: "file";
2201
+ page: "page";
2202
+ document: "document";
2203
+ auto: "auto";
2204
+ ignore: "ignore";
2205
+ }>>;
2206
+ rank: z.ZodOptional<z.ZodNumber>;
2207
+ route: z.ZodOptional<z.ZodBoolean>;
2208
+ dry_run: z.ZodOptional<z.ZodBoolean>;
2209
+ }, z.core.$strip>, z.ZodObject<{
2210
+ status: z.ZodEnum<{
2211
+ ok: "ok";
2212
+ empty: "empty";
2213
+ degraded: "degraded";
2214
+ unavailable: "unavailable";
2215
+ }>;
2216
+ degraded: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2217
+ no_embedding_model: "no_embedding_model";
2218
+ no_reranker: "no_reranker";
2219
+ no_derive_model: "no_derive_model";
2220
+ no_expansion_model: "no_expansion_model";
2221
+ embedding_failed: "embedding_failed";
2222
+ rerank_failed: "rerank_failed";
2223
+ derive_failed: "derive_failed";
2224
+ expansion_failed: "expansion_failed";
2225
+ no_vector_index: "no_vector_index";
2226
+ partial_index: "partial_index";
2227
+ no_document_text: "no_document_text";
2228
+ document_source_missing: "document_source_missing";
2229
+ no_graph_index: "no_graph_index";
2230
+ no_entity_index: "no_entity_index";
2231
+ entity_resolution_failed: "entity_resolution_failed";
2232
+ partial_graph_index: "partial_graph_index";
2233
+ graph_traversal_limited: "graph_traversal_limited";
2234
+ no_answer_model: "no_answer_model";
2235
+ answer_failed: "answer_failed";
2236
+ answer_verification_failed: "answer_verification_failed";
2237
+ answer_truncated: "answer_truncated";
2238
+ }>>>;
2239
+ note: z.ZodOptional<z.ZodString>;
2240
+ outcome: z.ZodEnum<{
2241
+ ok: "ok";
2242
+ noop: "noop";
2243
+ }>;
2244
+ glob: z.ZodOptional<z.ZodString>;
2245
+ path: z.ZodOptional<z.ZodString>;
2246
+ rule: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2247
+ rules_file: z.ZodOptional<z.ZodString>;
2248
+ change_id: z.ZodOptional<z.ZodString>;
2249
+ }, z.core.$strip>>;
2250
+ readonly remember: OpDefinition<z.ZodObject<{
2251
+ text: z.ZodString;
2252
+ source: z.ZodOptional<z.ZodString>;
2253
+ mission: z.ZodOptional<z.ZodString>;
2254
+ dry_run: z.ZodOptional<z.ZodBoolean>;
2255
+ }, z.core.$strip>, z.ZodObject<{
2256
+ status: z.ZodEnum<{
2257
+ ok: "ok";
2258
+ empty: "empty";
2259
+ degraded: "degraded";
2260
+ unavailable: "unavailable";
2261
+ }>;
2262
+ degraded: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2263
+ no_embedding_model: "no_embedding_model";
2264
+ no_reranker: "no_reranker";
2265
+ no_derive_model: "no_derive_model";
2266
+ no_expansion_model: "no_expansion_model";
2267
+ embedding_failed: "embedding_failed";
2268
+ rerank_failed: "rerank_failed";
2269
+ derive_failed: "derive_failed";
2270
+ expansion_failed: "expansion_failed";
2271
+ no_vector_index: "no_vector_index";
2272
+ partial_index: "partial_index";
2273
+ no_document_text: "no_document_text";
2274
+ document_source_missing: "document_source_missing";
2275
+ no_graph_index: "no_graph_index";
2276
+ no_entity_index: "no_entity_index";
2277
+ entity_resolution_failed: "entity_resolution_failed";
2278
+ partial_graph_index: "partial_graph_index";
2279
+ graph_traversal_limited: "graph_traversal_limited";
2280
+ no_answer_model: "no_answer_model";
2281
+ answer_failed: "answer_failed";
2282
+ answer_verification_failed: "answer_verification_failed";
2283
+ answer_truncated: "answer_truncated";
2284
+ }>>>;
2285
+ note: z.ZodOptional<z.ZodString>;
2286
+ outcome: z.ZodEnum<{
2287
+ ok: "ok";
2288
+ requires_approval: "requires_approval";
2289
+ no_writable_destination: "no_writable_destination";
2290
+ requires_folder: "requires_folder";
2291
+ noop: "noop";
2292
+ }>;
2293
+ change_id: z.ZodOptional<z.ZodString>;
2294
+ wrote: z.ZodOptional<z.ZodArray<z.ZodObject<{
2295
+ slug: z.ZodString;
2296
+ line: z.ZodOptional<z.ZodNumber>;
2297
+ action: z.ZodEnum<{
2298
+ event: "event";
2299
+ superseded: "superseded";
2300
+ created: "created";
2301
+ appended: "appended";
2302
+ patched: "patched";
2303
+ replaced: "replaced";
2304
+ attached: "attached";
2305
+ }>;
2306
+ }, z.core.$strip>>>;
2307
+ facts: z.ZodOptional<z.ZodObject<{
2308
+ retired: z.ZodNumber;
2309
+ added: z.ZodNumber;
2310
+ }, z.core.$strip>>;
2311
+ approvals: z.ZodOptional<z.ZodArray<z.ZodObject<{
2312
+ proposal_id: z.ZodString;
2313
+ reason: z.ZodString;
2314
+ reason_code: z.ZodOptional<z.ZodEnum<{
2315
+ conflict: "conflict";
2316
+ routing_uncertain: "routing_uncertain";
2317
+ no_writable_destination: "no_writable_destination";
2318
+ }>>;
2319
+ nearest: z.ZodArray<z.ZodString>;
2320
+ }, z.core.$strip>>>;
2321
+ requires_folder: z.ZodOptional<z.ZodArray<z.ZodObject<{
2322
+ folder: z.ZodString;
2323
+ nearest: z.ZodArray<z.ZodString>;
2324
+ }, z.core.$strip>>>;
2325
+ fallback: z.ZodOptional<z.ZodObject<{
2326
+ slug: z.ZodString;
2327
+ status: z.ZodEnum<{
2328
+ unavailable: "unavailable";
2329
+ used: "used";
2330
+ }>;
2331
+ reason: z.ZodOptional<z.ZodEnum<{
2332
+ reserved_path: "reserved_path";
2333
+ existing_page_not_admitted: "existing_page_not_admitted";
2334
+ unindexed_page_exists: "unindexed_page_exists";
2335
+ folder_not_admitted: "folder_not_admitted";
2336
+ }>>;
2337
+ }, z.core.$strip>>;
2338
+ considered: z.ZodOptional<z.ZodArray<z.ZodObject<{
2339
+ claim: z.ZodString;
2340
+ kept: z.ZodBoolean;
2341
+ slug: z.ZodNullable<z.ZodString>;
2342
+ score: z.ZodNumber;
2343
+ destination: z.ZodOptional<z.ZodEnum<{
2344
+ no_writable_destination: "no_writable_destination";
2345
+ existing_admitted_page: "existing_admitted_page";
2346
+ new_managed_page: "new_managed_page";
2347
+ configured_fallback: "configured_fallback";
2348
+ }>>;
2349
+ written: z.ZodBoolean;
2350
+ }, z.core.$strip>>>;
2351
+ }, z.core.$strip>>;
2352
+ readonly forget: OpDefinition<z.ZodObject<{
2353
+ fact: z.ZodOptional<z.ZodString>;
2354
+ slug: z.ZodOptional<z.ZodString>;
2355
+ document: z.ZodOptional<z.ZodString>;
2356
+ }, z.core.$strip>, z.ZodObject<{
2357
+ status: z.ZodEnum<{
2358
+ ok: "ok";
2359
+ empty: "empty";
2360
+ degraded: "degraded";
2361
+ unavailable: "unavailable";
2362
+ }>;
2363
+ degraded: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2364
+ no_embedding_model: "no_embedding_model";
2365
+ no_reranker: "no_reranker";
2366
+ no_derive_model: "no_derive_model";
2367
+ no_expansion_model: "no_expansion_model";
2368
+ embedding_failed: "embedding_failed";
2369
+ rerank_failed: "rerank_failed";
2370
+ derive_failed: "derive_failed";
2371
+ expansion_failed: "expansion_failed";
2372
+ no_vector_index: "no_vector_index";
2373
+ partial_index: "partial_index";
2374
+ no_document_text: "no_document_text";
2375
+ document_source_missing: "document_source_missing";
2376
+ no_graph_index: "no_graph_index";
2377
+ no_entity_index: "no_entity_index";
2378
+ entity_resolution_failed: "entity_resolution_failed";
2379
+ partial_graph_index: "partial_graph_index";
2380
+ graph_traversal_limited: "graph_traversal_limited";
2381
+ no_answer_model: "no_answer_model";
2382
+ answer_failed: "answer_failed";
2383
+ answer_verification_failed: "answer_verification_failed";
2384
+ answer_truncated: "answer_truncated";
2385
+ }>>>;
2386
+ note: z.ZodOptional<z.ZodString>;
2387
+ change_id: z.ZodOptional<z.ZodString>;
2388
+ removed_from: z.ZodOptional<z.ZodString>;
2389
+ removed: z.ZodOptional<z.ZodString>;
2390
+ trashed: z.ZodOptional<z.ZodString>;
2391
+ }, z.core.$strip>>;
2392
+ readonly undo: OpDefinition<z.ZodObject<{
2393
+ change_id: z.ZodString;
2394
+ }, z.core.$strip>, z.ZodObject<{
2395
+ status: z.ZodEnum<{
2396
+ ok: "ok";
2397
+ empty: "empty";
2398
+ degraded: "degraded";
2399
+ unavailable: "unavailable";
2400
+ }>;
2401
+ degraded: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2402
+ no_embedding_model: "no_embedding_model";
2403
+ no_reranker: "no_reranker";
2404
+ no_derive_model: "no_derive_model";
2405
+ no_expansion_model: "no_expansion_model";
2406
+ embedding_failed: "embedding_failed";
2407
+ rerank_failed: "rerank_failed";
2408
+ derive_failed: "derive_failed";
2409
+ expansion_failed: "expansion_failed";
2410
+ no_vector_index: "no_vector_index";
2411
+ partial_index: "partial_index";
2412
+ no_document_text: "no_document_text";
2413
+ document_source_missing: "document_source_missing";
2414
+ no_graph_index: "no_graph_index";
2415
+ no_entity_index: "no_entity_index";
2416
+ entity_resolution_failed: "entity_resolution_failed";
2417
+ partial_graph_index: "partial_graph_index";
2418
+ graph_traversal_limited: "graph_traversal_limited";
2419
+ no_answer_model: "no_answer_model";
2420
+ answer_failed: "answer_failed";
2421
+ answer_verification_failed: "answer_verification_failed";
2422
+ answer_truncated: "answer_truncated";
2423
+ }>>>;
2424
+ note: z.ZodOptional<z.ZodString>;
2425
+ reversed: z.ZodOptional<z.ZodString>;
2426
+ restored: z.ZodOptional<z.ZodArray<z.ZodString>>;
2427
+ removed: z.ZodOptional<z.ZodArray<z.ZodString>>;
2428
+ }, z.core.$strip>>;
2429
+ readonly move: OpDefinition<z.ZodObject<{
2430
+ from: z.ZodString;
2431
+ to: z.ZodString;
2432
+ }, z.core.$strip>, z.ZodObject<{
2433
+ status: z.ZodEnum<{
2434
+ ok: "ok";
2435
+ empty: "empty";
2436
+ degraded: "degraded";
2437
+ unavailable: "unavailable";
2438
+ }>;
2439
+ degraded: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2440
+ no_embedding_model: "no_embedding_model";
2441
+ no_reranker: "no_reranker";
2442
+ no_derive_model: "no_derive_model";
2443
+ no_expansion_model: "no_expansion_model";
2444
+ embedding_failed: "embedding_failed";
2445
+ rerank_failed: "rerank_failed";
2446
+ derive_failed: "derive_failed";
2447
+ expansion_failed: "expansion_failed";
2448
+ no_vector_index: "no_vector_index";
2449
+ partial_index: "partial_index";
2450
+ no_document_text: "no_document_text";
2451
+ document_source_missing: "document_source_missing";
2452
+ no_graph_index: "no_graph_index";
2453
+ no_entity_index: "no_entity_index";
2454
+ entity_resolution_failed: "entity_resolution_failed";
2455
+ partial_graph_index: "partial_graph_index";
2456
+ graph_traversal_limited: "graph_traversal_limited";
2457
+ no_answer_model: "no_answer_model";
2458
+ answer_failed: "answer_failed";
2459
+ answer_verification_failed: "answer_verification_failed";
2460
+ answer_truncated: "answer_truncated";
2461
+ }>>>;
2462
+ note: z.ZodOptional<z.ZodString>;
2463
+ outcome: z.ZodEnum<{
2464
+ ok: "ok";
2465
+ requires_folder: "requires_folder";
2466
+ }>;
2467
+ change_id: z.ZodOptional<z.ZodString>;
2468
+ moved: z.ZodOptional<z.ZodArray<z.ZodString>>;
2469
+ broken_inbound: z.ZodOptional<z.ZodArray<z.ZodString>>;
2470
+ requires_folder: z.ZodOptional<z.ZodObject<{
2471
+ folder: z.ZodString;
2472
+ nearest: z.ZodArray<z.ZodString>;
2473
+ }, z.core.$strip>>;
2474
+ }, z.core.$strip>>;
2475
+ readonly ingest: OpDefinition<z.ZodObject<{
2476
+ path: z.ZodOptional<z.ZodString>;
2477
+ url: z.ZodOptional<z.ZodString>;
2478
+ folder: z.ZodOptional<z.ZodString>;
2479
+ route: z.ZodOptional<z.ZodBoolean>;
2480
+ label: z.ZodOptional<z.ZodString>;
2481
+ limit: z.ZodOptional<z.ZodNumber>;
2482
+ }, z.core.$strip>, z.ZodObject<{
2483
+ status: z.ZodEnum<{
2484
+ ok: "ok";
2485
+ empty: "empty";
2486
+ degraded: "degraded";
2487
+ unavailable: "unavailable";
2488
+ }>;
2489
+ degraded: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2490
+ no_embedding_model: "no_embedding_model";
2491
+ no_reranker: "no_reranker";
2492
+ no_derive_model: "no_derive_model";
2493
+ no_expansion_model: "no_expansion_model";
2494
+ embedding_failed: "embedding_failed";
2495
+ rerank_failed: "rerank_failed";
2496
+ derive_failed: "derive_failed";
2497
+ expansion_failed: "expansion_failed";
2498
+ no_vector_index: "no_vector_index";
2499
+ partial_index: "partial_index";
2500
+ no_document_text: "no_document_text";
2501
+ document_source_missing: "document_source_missing";
2502
+ no_graph_index: "no_graph_index";
2503
+ no_entity_index: "no_entity_index";
2504
+ entity_resolution_failed: "entity_resolution_failed";
2505
+ partial_graph_index: "partial_graph_index";
2506
+ graph_traversal_limited: "graph_traversal_limited";
2507
+ no_answer_model: "no_answer_model";
2508
+ answer_failed: "answer_failed";
2509
+ answer_verification_failed: "answer_verification_failed";
2510
+ answer_truncated: "answer_truncated";
2511
+ }>>>;
2512
+ note: z.ZodOptional<z.ZodString>;
2513
+ outcome: z.ZodEnum<{
2514
+ ok: "ok";
2515
+ requires_approval: "requires_approval";
2516
+ requires_folder: "requires_folder";
2517
+ duplicate: "duplicate";
2518
+ skipped: "skipped";
2519
+ }>;
2520
+ change_id: z.ZodOptional<z.ZodString>;
2521
+ document: z.ZodOptional<z.ZodString>;
2522
+ slug: z.ZodOptional<z.ZodString>;
2523
+ rel_path: z.ZodOptional<z.ZodString>;
2524
+ summary: z.ZodOptional<z.ZodString>;
2525
+ page_count: z.ZodOptional<z.ZodNumber>;
2526
+ ocr: z.ZodOptional<z.ZodBoolean>;
2527
+ text_from: z.ZodOptional<z.ZodEnum<{
2528
+ none: "none";
2529
+ plain: "plain";
2530
+ textutil: "textutil";
2531
+ "text-layer": "text-layer";
2532
+ ocr: "ocr";
2533
+ vision: "vision";
2534
+ }>>;
2535
+ renamed_from: z.ZodOptional<z.ZodString>;
2536
+ related: z.ZodOptional<z.ZodArray<z.ZodString>>;
2537
+ approval: z.ZodOptional<z.ZodObject<{
2538
+ proposal_id: z.ZodString;
2539
+ reason: z.ZodString;
2540
+ reason_code: z.ZodOptional<z.ZodEnum<{
2541
+ conflict: "conflict";
2542
+ routing_uncertain: "routing_uncertain";
2543
+ no_writable_destination: "no_writable_destination";
2544
+ }>>;
2545
+ nearest: z.ZodArray<z.ZodString>;
2546
+ }, z.core.$strip>>;
2547
+ requires_folder: z.ZodOptional<z.ZodObject<{
2548
+ folder: z.ZodString;
2549
+ nearest: z.ZodArray<z.ZodString>;
2550
+ }, z.core.$strip>>;
2551
+ batch: z.ZodOptional<z.ZodArray<z.ZodObject<{
2552
+ source: z.ZodString;
2553
+ outcome: z.ZodEnum<{
2554
+ ok: "ok";
2555
+ error: "error";
2556
+ requires_approval: "requires_approval";
2557
+ requires_folder: "requires_folder";
2558
+ duplicate: "duplicate";
2559
+ skipped: "skipped";
2560
+ }>;
2561
+ slug: z.ZodOptional<z.ZodString>;
2562
+ note: z.ZodOptional<z.ZodString>;
2563
+ }, z.core.$strip>>>;
2564
+ }, z.core.$strip>>;
2565
+ readonly adopt: OpDefinition<z.ZodObject<{
2566
+ documentId: z.ZodString;
2567
+ }, z.core.$strip>, z.ZodObject<{
2568
+ status: z.ZodEnum<{
2569
+ ok: "ok";
2570
+ empty: "empty";
2571
+ degraded: "degraded";
2572
+ unavailable: "unavailable";
2573
+ }>;
2574
+ degraded: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2575
+ no_embedding_model: "no_embedding_model";
2576
+ no_reranker: "no_reranker";
2577
+ no_derive_model: "no_derive_model";
2578
+ no_expansion_model: "no_expansion_model";
2579
+ embedding_failed: "embedding_failed";
2580
+ rerank_failed: "rerank_failed";
2581
+ derive_failed: "derive_failed";
2582
+ expansion_failed: "expansion_failed";
2583
+ no_vector_index: "no_vector_index";
2584
+ partial_index: "partial_index";
2585
+ no_document_text: "no_document_text";
2586
+ document_source_missing: "document_source_missing";
2587
+ no_graph_index: "no_graph_index";
2588
+ no_entity_index: "no_entity_index";
2589
+ entity_resolution_failed: "entity_resolution_failed";
2590
+ partial_graph_index: "partial_graph_index";
2591
+ graph_traversal_limited: "graph_traversal_limited";
2592
+ no_answer_model: "no_answer_model";
2593
+ answer_failed: "answer_failed";
2594
+ answer_verification_failed: "answer_verification_failed";
2595
+ answer_truncated: "answer_truncated";
2596
+ }>>>;
2597
+ note: z.ZodOptional<z.ZodString>;
2598
+ outcome: z.ZodEnum<{
2599
+ rejected: "rejected";
2600
+ disabled: "disabled";
2601
+ created: "created";
2602
+ noop: "noop";
2603
+ planned: "planned";
2604
+ requires_review: "requires_review";
2605
+ verification_pending: "verification_pending";
2606
+ blocked: "blocked";
2607
+ }>;
2608
+ document_id: z.ZodString;
2609
+ document_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
2610
+ slug: z.ZodOptional<z.ZodString>;
2611
+ rel_path: z.ZodOptional<z.ZodString>;
2612
+ change_id: z.ZodOptional<z.ZodString>;
2613
+ reason: z.ZodOptional<z.ZodString>;
2614
+ plan: z.ZodOptional<z.ZodObject<{
2615
+ id: z.ZodString;
2616
+ mode: z.ZodEnum<{
2617
+ auto: "auto";
2618
+ audit: "audit";
2619
+ review: "review";
2620
+ }>;
2621
+ status: z.ZodEnum<{
2622
+ superseded: "superseded";
2623
+ ready: "ready";
2624
+ awaiting_review: "awaiting_review";
2625
+ deciding: "deciding";
2626
+ approved: "approved";
2627
+ applying: "applying";
2628
+ completed: "completed";
2629
+ partially_completed: "partially_completed";
2630
+ failed: "failed";
2631
+ }>;
2632
+ item_id: z.ZodString;
2633
+ item_status: z.ZodEnum<{
2634
+ applied: "applied";
2635
+ rejected: "rejected";
2636
+ verification_pending: "verification_pending";
2637
+ blocked: "blocked";
2638
+ approved: "approved";
2639
+ applying: "applying";
2640
+ proposed: "proposed";
2641
+ stale: "stale";
2642
+ verification_failed: "verification_failed";
2643
+ }>;
2644
+ }, z.core.$strip>>;
2645
+ }, z.core.$strip>>;
2646
+ };
2647
+ export type OpName = keyof typeof OPS;
2648
+ export declare const OP_NAMES: OpName[];
2649
+ export type OpInput<N extends OpName> = z.input<(typeof OPS)[N]['input']>;
2650
+ export type OpResult<N extends OpName> = z.output<(typeof OPS)[N]['output']>;
2651
+ /** The surface both `open()` and `connect()` implement, generated from the table. */
2652
+ export type AknoOps = {
2653
+ [N in OpName]: (input: OpInput<N>) => Promise<OpResult<N>>;
2654
+ };
2655
+ export declare function isOpName(value: string): value is OpName;
2656
+ export declare function opsByKind(kind: OpKind): OpName[];
2657
+ //# sourceMappingURL=registry.d.ts.map