@tenphi/akno-protocol 0.3.0 → 0.5.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 (43) hide show
  1. package/dist/common.d.ts +301 -20
  2. package/dist/common.d.ts.map +1 -1
  3. package/dist/common.js +45 -1
  4. package/dist/common.js.map +1 -1
  5. package/dist/index.d.ts +1 -0
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +1 -0
  8. package/dist/index.js.map +1 -1
  9. package/dist/ops/answer.d.ts +108 -0
  10. package/dist/ops/answer.d.ts.map +1 -1
  11. package/dist/ops/context.d.ts +121 -11
  12. package/dist/ops/context.d.ts.map +1 -1
  13. package/dist/ops/folder.d.ts +2 -0
  14. package/dist/ops/folder.d.ts.map +1 -1
  15. package/dist/ops/graph.d.ts +5 -3
  16. package/dist/ops/graph.d.ts.map +1 -1
  17. package/dist/ops/list.d.ts +2 -0
  18. package/dist/ops/list.d.ts.map +1 -1
  19. package/dist/ops/mutate.d.ts +16 -3
  20. package/dist/ops/mutate.d.ts.map +1 -1
  21. package/dist/ops/mutate.js +1 -1
  22. package/dist/ops/mutate.js.map +1 -1
  23. package/dist/ops/read.d.ts +108 -0
  24. package/dist/ops/read.d.ts.map +1 -1
  25. package/dist/ops/recall.d.ts +62 -6
  26. package/dist/ops/recall.d.ts.map +1 -1
  27. package/dist/ops/retain.d.ts +253 -37
  28. package/dist/ops/retain.d.ts.map +1 -1
  29. package/dist/ops/retain.js +71 -14
  30. package/dist/ops/retain.js.map +1 -1
  31. package/dist/ops/timeline.d.ts +6 -1
  32. package/dist/ops/timeline.d.ts.map +1 -1
  33. package/dist/ops/write.d.ts +2 -0
  34. package/dist/ops/write.d.ts.map +1 -1
  35. package/dist/platform.d.ts +13 -0
  36. package/dist/platform.d.ts.map +1 -0
  37. package/dist/platform.js +25 -0
  38. package/dist/platform.js.map +1 -0
  39. package/dist/registry.d.ts +425 -35
  40. package/dist/registry.d.ts.map +1 -1
  41. package/dist/registry.js +6 -5
  42. package/dist/registry.js.map +1 -1
  43. package/package.json +1 -1
@@ -81,6 +81,8 @@ export declare const OPS: {
81
81
  embedding_failed: "embedding_failed";
82
82
  rerank_failed: "rerank_failed";
83
83
  derive_failed: "derive_failed";
84
+ retain_verification_failed: "retain_verification_failed";
85
+ retain_apply_failed: "retain_apply_failed";
84
86
  expansion_failed: "expansion_failed";
85
87
  no_vector_index: "no_vector_index";
86
88
  partial_index: "partial_index";
@@ -115,6 +117,59 @@ export declare const OPS: {
115
117
  n: z.ZodNumber;
116
118
  text: z.ZodString;
117
119
  confidence: z.ZodOptional<z.ZodNumber>;
120
+ memory: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
121
+ status: z.ZodLiteral<"qualified">;
122
+ id: z.ZodString;
123
+ level: z.ZodLiteral<1>;
124
+ kind: z.ZodEnum<{
125
+ question: "question";
126
+ claim: "claim";
127
+ decision: "decision";
128
+ preference: "preference";
129
+ plan: "plan";
130
+ event: "event";
131
+ }>;
132
+ subject: z.ZodString;
133
+ source_role: z.ZodEnum<{
134
+ unknown: "unknown";
135
+ user: "user";
136
+ assistant: "assistant";
137
+ external: "external";
138
+ }>;
139
+ source_speaker: z.ZodOptional<z.ZodString>;
140
+ commitment: z.ZodEnum<{
141
+ none: "none";
142
+ asserted: "asserted";
143
+ tentative: "tentative";
144
+ hypothetical: "hypothetical";
145
+ counterfactual: "counterfactual";
146
+ }>;
147
+ disposition: z.ZodEnum<{
148
+ active: "active";
149
+ proposed: "proposed";
150
+ accepted: "accepted";
151
+ rejected: "rejected";
152
+ resolved: "resolved";
153
+ cancelled: "cancelled";
154
+ completed: "completed";
155
+ superseded: "superseded";
156
+ }>;
157
+ polarity: z.ZodEnum<{
158
+ affirmed: "affirmed";
159
+ negated: "negated";
160
+ }>;
161
+ basis: z.ZodEnum<{
162
+ self_attested: "self_attested";
163
+ source_report: "source_report";
164
+ cited_evidence: "cited_evidence";
165
+ system_record: "system_record";
166
+ }>;
167
+ answer_eligible: z.ZodBoolean;
168
+ }, z.core.$strip>, z.ZodObject<{
169
+ status: z.ZodLiteral<"unavailable">;
170
+ id: z.ZodString;
171
+ answer_eligible: z.ZodLiteral<false>;
172
+ }, z.core.$strip>], "status">>;
118
173
  fact: z.ZodOptional<z.ZodString>;
119
174
  }, z.core.$strip>>;
120
175
  superseded: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -158,11 +213,11 @@ export declare const OPS: {
158
213
  seed: z.ZodObject<{
159
214
  id: z.ZodString;
160
215
  kind: z.ZodEnum<{
216
+ event: "event";
161
217
  fact: "fact";
162
218
  entity: "entity";
163
219
  page: "page";
164
220
  document: "document";
165
- event: "event";
166
221
  }>;
167
222
  slug: z.ZodOptional<z.ZodString>;
168
223
  label: z.ZodOptional<z.ZodString>;
@@ -197,11 +252,11 @@ export declare const OPS: {
197
252
  target: z.ZodObject<{
198
253
  id: z.ZodString;
199
254
  kind: z.ZodEnum<{
255
+ event: "event";
200
256
  fact: "fact";
201
257
  entity: "entity";
202
258
  page: "page";
203
259
  document: "document";
204
- event: "event";
205
260
  }>;
206
261
  slug: z.ZodOptional<z.ZodString>;
207
262
  label: z.ZodOptional<z.ZodString>;
@@ -236,11 +291,11 @@ export declare const OPS: {
236
291
  nodes: z.ZodArray<z.ZodObject<{
237
292
  id: z.ZodString;
238
293
  kind: z.ZodEnum<{
294
+ event: "event";
239
295
  fact: "fact";
240
296
  entity: "entity";
241
297
  page: "page";
242
298
  document: "document";
243
- event: "event";
244
299
  }>;
245
300
  slug: z.ZodOptional<z.ZodString>;
246
301
  label: z.ZodOptional<z.ZodString>;
@@ -326,6 +381,7 @@ export declare const OPS: {
326
381
  none: "none";
327
382
  plain: "plain";
328
383
  textutil: "textutil";
384
+ libreoffice: "libreoffice";
329
385
  "text-layer": "text-layer";
330
386
  ocr: "ocr";
331
387
  vision: "vision";
@@ -367,11 +423,11 @@ export declare const OPS: {
367
423
  seed: z.ZodObject<{
368
424
  id: z.ZodString;
369
425
  kind: z.ZodEnum<{
426
+ event: "event";
370
427
  fact: "fact";
371
428
  entity: "entity";
372
429
  page: "page";
373
430
  document: "document";
374
- event: "event";
375
431
  }>;
376
432
  slug: z.ZodOptional<z.ZodString>;
377
433
  label: z.ZodOptional<z.ZodString>;
@@ -406,11 +462,11 @@ export declare const OPS: {
406
462
  target: z.ZodObject<{
407
463
  id: z.ZodString;
408
464
  kind: z.ZodEnum<{
465
+ event: "event";
409
466
  fact: "fact";
410
467
  entity: "entity";
411
468
  page: "page";
412
469
  document: "document";
413
- event: "event";
414
470
  }>;
415
471
  slug: z.ZodOptional<z.ZodString>;
416
472
  label: z.ZodOptional<z.ZodString>;
@@ -445,11 +501,11 @@ export declare const OPS: {
445
501
  nodes: z.ZodArray<z.ZodObject<{
446
502
  id: z.ZodString;
447
503
  kind: z.ZodEnum<{
504
+ event: "event";
448
505
  fact: "fact";
449
506
  entity: "entity";
450
507
  page: "page";
451
508
  document: "document";
452
- event: "event";
453
509
  }>;
454
510
  slug: z.ZodOptional<z.ZodString>;
455
511
  label: z.ZodOptional<z.ZodString>;
@@ -599,6 +655,8 @@ export declare const OPS: {
599
655
  embedding_failed: "embedding_failed";
600
656
  rerank_failed: "rerank_failed";
601
657
  derive_failed: "derive_failed";
658
+ retain_verification_failed: "retain_verification_failed";
659
+ retain_apply_failed: "retain_apply_failed";
602
660
  expansion_failed: "expansion_failed";
603
661
  no_vector_index: "no_vector_index";
604
662
  partial_index: "partial_index";
@@ -644,6 +702,59 @@ export declare const OPS: {
644
702
  n: z.ZodNumber;
645
703
  text: z.ZodString;
646
704
  confidence: z.ZodOptional<z.ZodNumber>;
705
+ memory: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
706
+ status: z.ZodLiteral<"qualified">;
707
+ id: z.ZodString;
708
+ level: z.ZodLiteral<1>;
709
+ kind: z.ZodEnum<{
710
+ question: "question";
711
+ claim: "claim";
712
+ decision: "decision";
713
+ preference: "preference";
714
+ plan: "plan";
715
+ event: "event";
716
+ }>;
717
+ subject: z.ZodString;
718
+ source_role: z.ZodEnum<{
719
+ unknown: "unknown";
720
+ user: "user";
721
+ assistant: "assistant";
722
+ external: "external";
723
+ }>;
724
+ source_speaker: z.ZodOptional<z.ZodString>;
725
+ commitment: z.ZodEnum<{
726
+ none: "none";
727
+ asserted: "asserted";
728
+ tentative: "tentative";
729
+ hypothetical: "hypothetical";
730
+ counterfactual: "counterfactual";
731
+ }>;
732
+ disposition: z.ZodEnum<{
733
+ active: "active";
734
+ proposed: "proposed";
735
+ accepted: "accepted";
736
+ rejected: "rejected";
737
+ resolved: "resolved";
738
+ cancelled: "cancelled";
739
+ completed: "completed";
740
+ superseded: "superseded";
741
+ }>;
742
+ polarity: z.ZodEnum<{
743
+ affirmed: "affirmed";
744
+ negated: "negated";
745
+ }>;
746
+ basis: z.ZodEnum<{
747
+ self_attested: "self_attested";
748
+ source_report: "source_report";
749
+ cited_evidence: "cited_evidence";
750
+ system_record: "system_record";
751
+ }>;
752
+ answer_eligible: z.ZodBoolean;
753
+ }, z.core.$strip>, z.ZodObject<{
754
+ status: z.ZodLiteral<"unavailable">;
755
+ id: z.ZodString;
756
+ answer_eligible: z.ZodLiteral<false>;
757
+ }, z.core.$strip>], "status">>;
647
758
  fact: z.ZodOptional<z.ZodString>;
648
759
  }, z.core.$strip>>;
649
760
  }, z.core.$strip>, z.ZodObject<{
@@ -726,6 +837,8 @@ export declare const OPS: {
726
837
  embedding_failed: "embedding_failed";
727
838
  rerank_failed: "rerank_failed";
728
839
  derive_failed: "derive_failed";
840
+ retain_verification_failed: "retain_verification_failed";
841
+ retain_apply_failed: "retain_apply_failed";
729
842
  expansion_failed: "expansion_failed";
730
843
  no_vector_index: "no_vector_index";
731
844
  partial_index: "partial_index";
@@ -774,6 +887,59 @@ export declare const OPS: {
774
887
  n: z.ZodNumber;
775
888
  text: z.ZodString;
776
889
  confidence: z.ZodOptional<z.ZodNumber>;
890
+ memory: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
891
+ status: z.ZodLiteral<"qualified">;
892
+ id: z.ZodString;
893
+ level: z.ZodLiteral<1>;
894
+ kind: z.ZodEnum<{
895
+ question: "question";
896
+ claim: "claim";
897
+ decision: "decision";
898
+ preference: "preference";
899
+ plan: "plan";
900
+ event: "event";
901
+ }>;
902
+ subject: z.ZodString;
903
+ source_role: z.ZodEnum<{
904
+ unknown: "unknown";
905
+ user: "user";
906
+ assistant: "assistant";
907
+ external: "external";
908
+ }>;
909
+ source_speaker: z.ZodOptional<z.ZodString>;
910
+ commitment: z.ZodEnum<{
911
+ none: "none";
912
+ asserted: "asserted";
913
+ tentative: "tentative";
914
+ hypothetical: "hypothetical";
915
+ counterfactual: "counterfactual";
916
+ }>;
917
+ disposition: z.ZodEnum<{
918
+ active: "active";
919
+ proposed: "proposed";
920
+ accepted: "accepted";
921
+ rejected: "rejected";
922
+ resolved: "resolved";
923
+ cancelled: "cancelled";
924
+ completed: "completed";
925
+ superseded: "superseded";
926
+ }>;
927
+ polarity: z.ZodEnum<{
928
+ affirmed: "affirmed";
929
+ negated: "negated";
930
+ }>;
931
+ basis: z.ZodEnum<{
932
+ self_attested: "self_attested";
933
+ source_report: "source_report";
934
+ cited_evidence: "cited_evidence";
935
+ system_record: "system_record";
936
+ }>;
937
+ answer_eligible: z.ZodBoolean;
938
+ }, z.core.$strip>, z.ZodObject<{
939
+ status: z.ZodLiteral<"unavailable">;
940
+ id: z.ZodString;
941
+ answer_eligible: z.ZodLiteral<false>;
942
+ }, z.core.$strip>], "status">>;
777
943
  fact: z.ZodOptional<z.ZodString>;
778
944
  }, z.core.$strip>>;
779
945
  source_fence_line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -878,6 +1044,8 @@ export declare const OPS: {
878
1044
  embedding_failed: "embedding_failed";
879
1045
  rerank_failed: "rerank_failed";
880
1046
  derive_failed: "derive_failed";
1047
+ retain_verification_failed: "retain_verification_failed";
1048
+ retain_apply_failed: "retain_apply_failed";
881
1049
  expansion_failed: "expansion_failed";
882
1050
  no_vector_index: "no_vector_index";
883
1051
  partial_index: "partial_index";
@@ -939,8 +1107,8 @@ export declare const OPS: {
939
1107
  match: z.ZodOptional<z.ZodString>;
940
1108
  subject: z.ZodOptional<z.ZodString>;
941
1109
  source: z.ZodOptional<z.ZodEnum<{
942
- document: "document";
943
1110
  event: "event";
1111
+ document: "document";
944
1112
  both: "both";
945
1113
  }>>;
946
1114
  limit: z.ZodOptional<z.ZodNumber>;
@@ -963,6 +1131,8 @@ export declare const OPS: {
963
1131
  embedding_failed: "embedding_failed";
964
1132
  rerank_failed: "rerank_failed";
965
1133
  derive_failed: "derive_failed";
1134
+ retain_verification_failed: "retain_verification_failed";
1135
+ retain_apply_failed: "retain_apply_failed";
966
1136
  expansion_failed: "expansion_failed";
967
1137
  no_vector_index: "no_vector_index";
968
1138
  partial_index: "partial_index";
@@ -1013,6 +1183,7 @@ export declare const OPS: {
1013
1183
  none: "none";
1014
1184
  plain: "plain";
1015
1185
  textutil: "textutil";
1186
+ libreoffice: "libreoffice";
1016
1187
  "text-layer": "text-layer";
1017
1188
  ocr: "ocr";
1018
1189
  vision: "vision";
@@ -1111,6 +1282,8 @@ export declare const OPS: {
1111
1282
  embedding_failed: "embedding_failed";
1112
1283
  rerank_failed: "rerank_failed";
1113
1284
  derive_failed: "derive_failed";
1285
+ retain_verification_failed: "retain_verification_failed";
1286
+ retain_apply_failed: "retain_apply_failed";
1114
1287
  expansion_failed: "expansion_failed";
1115
1288
  no_vector_index: "no_vector_index";
1116
1289
  partial_index: "partial_index";
@@ -1135,9 +1308,9 @@ export declare const OPS: {
1135
1308
  activated: z.ZodBoolean;
1136
1309
  basis: z.ZodEnum<{
1137
1310
  none: "none";
1311
+ qualified: "qualified";
1138
1312
  exact: "exact";
1139
1313
  semantic: "semantic";
1140
- qualified: "qualified";
1141
1314
  }>;
1142
1315
  candidates: z.ZodNumber;
1143
1316
  selected: z.ZodNumber;
@@ -1161,6 +1334,59 @@ export declare const OPS: {
1161
1334
  n: z.ZodNumber;
1162
1335
  text: z.ZodString;
1163
1336
  confidence: z.ZodOptional<z.ZodNumber>;
1337
+ memory: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1338
+ status: z.ZodLiteral<"qualified">;
1339
+ id: z.ZodString;
1340
+ level: z.ZodLiteral<1>;
1341
+ kind: z.ZodEnum<{
1342
+ question: "question";
1343
+ claim: "claim";
1344
+ decision: "decision";
1345
+ preference: "preference";
1346
+ plan: "plan";
1347
+ event: "event";
1348
+ }>;
1349
+ subject: z.ZodString;
1350
+ source_role: z.ZodEnum<{
1351
+ unknown: "unknown";
1352
+ user: "user";
1353
+ assistant: "assistant";
1354
+ external: "external";
1355
+ }>;
1356
+ source_speaker: z.ZodOptional<z.ZodString>;
1357
+ commitment: z.ZodEnum<{
1358
+ none: "none";
1359
+ asserted: "asserted";
1360
+ tentative: "tentative";
1361
+ hypothetical: "hypothetical";
1362
+ counterfactual: "counterfactual";
1363
+ }>;
1364
+ disposition: z.ZodEnum<{
1365
+ active: "active";
1366
+ proposed: "proposed";
1367
+ accepted: "accepted";
1368
+ rejected: "rejected";
1369
+ resolved: "resolved";
1370
+ cancelled: "cancelled";
1371
+ completed: "completed";
1372
+ superseded: "superseded";
1373
+ }>;
1374
+ polarity: z.ZodEnum<{
1375
+ affirmed: "affirmed";
1376
+ negated: "negated";
1377
+ }>;
1378
+ basis: z.ZodEnum<{
1379
+ self_attested: "self_attested";
1380
+ source_report: "source_report";
1381
+ cited_evidence: "cited_evidence";
1382
+ system_record: "system_record";
1383
+ }>;
1384
+ answer_eligible: z.ZodBoolean;
1385
+ }, z.core.$strip>, z.ZodObject<{
1386
+ status: z.ZodLiteral<"unavailable">;
1387
+ id: z.ZodString;
1388
+ answer_eligible: z.ZodLiteral<false>;
1389
+ }, z.core.$strip>], "status">>;
1164
1390
  fact: z.ZodOptional<z.ZodString>;
1165
1391
  }, z.core.$strip>>;
1166
1392
  superseded: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1204,11 +1430,11 @@ export declare const OPS: {
1204
1430
  seed: z.ZodObject<{
1205
1431
  id: z.ZodString;
1206
1432
  kind: z.ZodEnum<{
1433
+ event: "event";
1207
1434
  fact: "fact";
1208
1435
  entity: "entity";
1209
1436
  page: "page";
1210
1437
  document: "document";
1211
- event: "event";
1212
1438
  }>;
1213
1439
  slug: z.ZodOptional<z.ZodString>;
1214
1440
  label: z.ZodOptional<z.ZodString>;
@@ -1243,11 +1469,11 @@ export declare const OPS: {
1243
1469
  target: z.ZodObject<{
1244
1470
  id: z.ZodString;
1245
1471
  kind: z.ZodEnum<{
1472
+ event: "event";
1246
1473
  fact: "fact";
1247
1474
  entity: "entity";
1248
1475
  page: "page";
1249
1476
  document: "document";
1250
- event: "event";
1251
1477
  }>;
1252
1478
  slug: z.ZodOptional<z.ZodString>;
1253
1479
  label: z.ZodOptional<z.ZodString>;
@@ -1282,11 +1508,11 @@ export declare const OPS: {
1282
1508
  nodes: z.ZodArray<z.ZodObject<{
1283
1509
  id: z.ZodString;
1284
1510
  kind: z.ZodEnum<{
1511
+ event: "event";
1285
1512
  fact: "fact";
1286
1513
  entity: "entity";
1287
1514
  page: "page";
1288
1515
  document: "document";
1289
- event: "event";
1290
1516
  }>;
1291
1517
  slug: z.ZodOptional<z.ZodString>;
1292
1518
  label: z.ZodOptional<z.ZodString>;
@@ -1365,6 +1591,59 @@ export declare const OPS: {
1365
1591
  n: z.ZodNumber;
1366
1592
  text: z.ZodString;
1367
1593
  confidence: z.ZodOptional<z.ZodNumber>;
1594
+ memory: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1595
+ status: z.ZodLiteral<"qualified">;
1596
+ id: z.ZodString;
1597
+ level: z.ZodLiteral<1>;
1598
+ kind: z.ZodEnum<{
1599
+ question: "question";
1600
+ claim: "claim";
1601
+ decision: "decision";
1602
+ preference: "preference";
1603
+ plan: "plan";
1604
+ event: "event";
1605
+ }>;
1606
+ subject: z.ZodString;
1607
+ source_role: z.ZodEnum<{
1608
+ unknown: "unknown";
1609
+ user: "user";
1610
+ assistant: "assistant";
1611
+ external: "external";
1612
+ }>;
1613
+ source_speaker: z.ZodOptional<z.ZodString>;
1614
+ commitment: z.ZodEnum<{
1615
+ none: "none";
1616
+ asserted: "asserted";
1617
+ tentative: "tentative";
1618
+ hypothetical: "hypothetical";
1619
+ counterfactual: "counterfactual";
1620
+ }>;
1621
+ disposition: z.ZodEnum<{
1622
+ active: "active";
1623
+ proposed: "proposed";
1624
+ accepted: "accepted";
1625
+ rejected: "rejected";
1626
+ resolved: "resolved";
1627
+ cancelled: "cancelled";
1628
+ completed: "completed";
1629
+ superseded: "superseded";
1630
+ }>;
1631
+ polarity: z.ZodEnum<{
1632
+ affirmed: "affirmed";
1633
+ negated: "negated";
1634
+ }>;
1635
+ basis: z.ZodEnum<{
1636
+ self_attested: "self_attested";
1637
+ source_report: "source_report";
1638
+ cited_evidence: "cited_evidence";
1639
+ system_record: "system_record";
1640
+ }>;
1641
+ answer_eligible: z.ZodBoolean;
1642
+ }, z.core.$strip>, z.ZodObject<{
1643
+ status: z.ZodLiteral<"unavailable">;
1644
+ id: z.ZodString;
1645
+ answer_eligible: z.ZodLiteral<false>;
1646
+ }, z.core.$strip>], "status">>;
1368
1647
  fact: z.ZodOptional<z.ZodString>;
1369
1648
  }, z.core.$strip>>;
1370
1649
  superseded: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1408,11 +1687,11 @@ export declare const OPS: {
1408
1687
  seed: z.ZodObject<{
1409
1688
  id: z.ZodString;
1410
1689
  kind: z.ZodEnum<{
1690
+ event: "event";
1411
1691
  fact: "fact";
1412
1692
  entity: "entity";
1413
1693
  page: "page";
1414
1694
  document: "document";
1415
- event: "event";
1416
1695
  }>;
1417
1696
  slug: z.ZodOptional<z.ZodString>;
1418
1697
  label: z.ZodOptional<z.ZodString>;
@@ -1447,11 +1726,11 @@ export declare const OPS: {
1447
1726
  target: z.ZodObject<{
1448
1727
  id: z.ZodString;
1449
1728
  kind: z.ZodEnum<{
1729
+ event: "event";
1450
1730
  fact: "fact";
1451
1731
  entity: "entity";
1452
1732
  page: "page";
1453
1733
  document: "document";
1454
- event: "event";
1455
1734
  }>;
1456
1735
  slug: z.ZodOptional<z.ZodString>;
1457
1736
  label: z.ZodOptional<z.ZodString>;
@@ -1486,11 +1765,11 @@ export declare const OPS: {
1486
1765
  nodes: z.ZodArray<z.ZodObject<{
1487
1766
  id: z.ZodString;
1488
1767
  kind: z.ZodEnum<{
1768
+ event: "event";
1489
1769
  fact: "fact";
1490
1770
  entity: "entity";
1491
1771
  page: "page";
1492
1772
  document: "document";
1493
- event: "event";
1494
1773
  }>;
1495
1774
  slug: z.ZodOptional<z.ZodString>;
1496
1775
  label: z.ZodOptional<z.ZodString>;
@@ -1576,6 +1855,7 @@ export declare const OPS: {
1576
1855
  none: "none";
1577
1856
  plain: "plain";
1578
1857
  textutil: "textutil";
1858
+ libreoffice: "libreoffice";
1579
1859
  "text-layer": "text-layer";
1580
1860
  ocr: "ocr";
1581
1861
  vision: "vision";
@@ -1617,11 +1897,11 @@ export declare const OPS: {
1617
1897
  seed: z.ZodObject<{
1618
1898
  id: z.ZodString;
1619
1899
  kind: z.ZodEnum<{
1900
+ event: "event";
1620
1901
  fact: "fact";
1621
1902
  entity: "entity";
1622
1903
  page: "page";
1623
1904
  document: "document";
1624
- event: "event";
1625
1905
  }>;
1626
1906
  slug: z.ZodOptional<z.ZodString>;
1627
1907
  label: z.ZodOptional<z.ZodString>;
@@ -1656,11 +1936,11 @@ export declare const OPS: {
1656
1936
  target: z.ZodObject<{
1657
1937
  id: z.ZodString;
1658
1938
  kind: z.ZodEnum<{
1939
+ event: "event";
1659
1940
  fact: "fact";
1660
1941
  entity: "entity";
1661
1942
  page: "page";
1662
1943
  document: "document";
1663
- event: "event";
1664
1944
  }>;
1665
1945
  slug: z.ZodOptional<z.ZodString>;
1666
1946
  label: z.ZodOptional<z.ZodString>;
@@ -1695,11 +1975,11 @@ export declare const OPS: {
1695
1975
  nodes: z.ZodArray<z.ZodObject<{
1696
1976
  id: z.ZodString;
1697
1977
  kind: z.ZodEnum<{
1978
+ event: "event";
1698
1979
  fact: "fact";
1699
1980
  entity: "entity";
1700
1981
  page: "page";
1701
1982
  document: "document";
1702
- event: "event";
1703
1983
  }>;
1704
1984
  slug: z.ZodOptional<z.ZodString>;
1705
1985
  label: z.ZodOptional<z.ZodString>;
@@ -1794,6 +2074,7 @@ export declare const OPS: {
1794
2074
  none: "none";
1795
2075
  plain: "plain";
1796
2076
  textutil: "textutil";
2077
+ libreoffice: "libreoffice";
1797
2078
  "text-layer": "text-layer";
1798
2079
  ocr: "ocr";
1799
2080
  vision: "vision";
@@ -1892,6 +2173,8 @@ export declare const OPS: {
1892
2173
  embedding_failed: "embedding_failed";
1893
2174
  rerank_failed: "rerank_failed";
1894
2175
  derive_failed: "derive_failed";
2176
+ retain_verification_failed: "retain_verification_failed";
2177
+ retain_apply_failed: "retain_apply_failed";
1895
2178
  expansion_failed: "expansion_failed";
1896
2179
  no_vector_index: "no_vector_index";
1897
2180
  partial_index: "partial_index";
@@ -1920,11 +2203,11 @@ export declare const OPS: {
1920
2203
  nodes: z.ZodArray<z.ZodObject<{
1921
2204
  id: z.ZodString;
1922
2205
  kind: z.ZodEnum<{
2206
+ event: "event";
1923
2207
  fact: "fact";
1924
2208
  entity: "entity";
1925
2209
  page: "page";
1926
2210
  document: "document";
1927
- event: "event";
1928
2211
  }>;
1929
2212
  slug: z.ZodOptional<z.ZodString>;
1930
2213
  label: z.ZodOptional<z.ZodString>;
@@ -2027,11 +2310,11 @@ export declare const OPS: {
2027
2310
  candidates: z.ZodArray<z.ZodObject<{
2028
2311
  id: z.ZodString;
2029
2312
  kind: z.ZodEnum<{
2313
+ event: "event";
2030
2314
  fact: "fact";
2031
2315
  entity: "entity";
2032
2316
  page: "page";
2033
2317
  document: "document";
2034
- event: "event";
2035
2318
  }>;
2036
2319
  slug: z.ZodOptional<z.ZodString>;
2037
2320
  label: z.ZodOptional<z.ZodString>;
@@ -2112,6 +2395,8 @@ export declare const OPS: {
2112
2395
  embedding_failed: "embedding_failed";
2113
2396
  rerank_failed: "rerank_failed";
2114
2397
  derive_failed: "derive_failed";
2398
+ retain_verification_failed: "retain_verification_failed";
2399
+ retain_apply_failed: "retain_apply_failed";
2115
2400
  expansion_failed: "expansion_failed";
2116
2401
  no_vector_index: "no_vector_index";
2117
2402
  partial_index: "partial_index";
@@ -2221,6 +2506,8 @@ export declare const OPS: {
2221
2506
  embedding_failed: "embedding_failed";
2222
2507
  rerank_failed: "rerank_failed";
2223
2508
  derive_failed: "derive_failed";
2509
+ retain_verification_failed: "retain_verification_failed";
2510
+ retain_apply_failed: "retain_apply_failed";
2224
2511
  expansion_failed: "expansion_failed";
2225
2512
  no_vector_index: "no_vector_index";
2226
2513
  partial_index: "partial_index";
@@ -2269,6 +2556,8 @@ export declare const OPS: {
2269
2556
  embedding_failed: "embedding_failed";
2270
2557
  rerank_failed: "rerank_failed";
2271
2558
  derive_failed: "derive_failed";
2559
+ retain_verification_failed: "retain_verification_failed";
2560
+ retain_apply_failed: "retain_apply_failed";
2272
2561
  expansion_failed: "expansion_failed";
2273
2562
  no_vector_index: "no_vector_index";
2274
2563
  partial_index: "partial_index";
@@ -2381,18 +2670,21 @@ export declare const OPS: {
2381
2670
  mentioned_at: z.ZodOptional<z.ZodString>;
2382
2671
  }, z.core.$strip>>;
2383
2672
  }, z.core.$strip>]>;
2384
- retention: z.ZodObject<{
2673
+ retention: z.ZodUnion<readonly [z.ZodObject<{
2385
2674
  mode: z.ZodLiteral<"provided">;
2386
- placement: z.ZodLiteral<"exact">;
2675
+ placement: z.ZodEnum<{
2676
+ exact: "exact";
2677
+ automatic: "automatic";
2678
+ }>;
2387
2679
  candidates: z.ZodArray<z.ZodObject<{
2388
2680
  candidate_id: z.ZodString;
2389
2681
  kind: z.ZodEnum<{
2390
2682
  question: "question";
2391
2683
  claim: "claim";
2392
- event: "event";
2393
- plan: "plan";
2394
2684
  decision: "decision";
2395
2685
  preference: "preference";
2686
+ plan: "plan";
2687
+ event: "event";
2396
2688
  }>;
2397
2689
  text: z.ZodString;
2398
2690
  subject: z.ZodString;
@@ -2420,20 +2712,20 @@ export declare const OPS: {
2420
2712
  discourse: z.ZodObject<{
2421
2713
  commitment: z.ZodEnum<{
2422
2714
  none: "none";
2423
- tentative: "tentative";
2424
2715
  asserted: "asserted";
2716
+ tentative: "tentative";
2425
2717
  hypothetical: "hypothetical";
2426
2718
  counterfactual: "counterfactual";
2427
2719
  }>;
2428
2720
  disposition: z.ZodEnum<{
2429
- superseded: "superseded";
2430
- rejected: "rejected";
2431
- completed: "completed";
2432
- proposed: "proposed";
2433
2721
  active: "active";
2722
+ proposed: "proposed";
2434
2723
  accepted: "accepted";
2724
+ rejected: "rejected";
2435
2725
  resolved: "resolved";
2436
2726
  cancelled: "cancelled";
2727
+ completed: "completed";
2728
+ superseded: "superseded";
2437
2729
  }>;
2438
2730
  }, z.core.$strip>;
2439
2731
  epistemic: z.ZodObject<{
@@ -2504,10 +2796,10 @@ export declare const OPS: {
2504
2796
  due: "due";
2505
2797
  }>;
2506
2798
  status: z.ZodEnum<{
2799
+ tentative: "tentative";
2507
2800
  planned: "planned";
2508
2801
  scheduled: "scheduled";
2509
2802
  actual: "actual";
2510
- tentative: "tentative";
2511
2803
  }>;
2512
2804
  timezone: z.ZodOptional<z.ZodString>;
2513
2805
  mentioned_at: z.ZodOptional<z.ZodString>;
@@ -2531,12 +2823,15 @@ export declare const OPS: {
2531
2823
  until: z.ZodOptional<z.ZodString>;
2532
2824
  }, z.core.$strip>>;
2533
2825
  }, z.core.$strip>>;
2534
- destination: z.ZodObject<{
2826
+ destination: z.ZodOptional<z.ZodObject<{
2535
2827
  slug: z.ZodString;
2536
2828
  section: z.ZodOptional<z.ZodString>;
2537
- }, z.core.$strip>;
2829
+ }, z.core.$strip>>;
2538
2830
  }, z.core.$strip>>;
2539
- }, z.core.$strip>;
2831
+ }, z.core.$strip>, z.ZodObject<{
2832
+ mode: z.ZodLiteral<"extract">;
2833
+ mission: z.ZodOptional<z.ZodString>;
2834
+ }, z.core.$strip>]>;
2540
2835
  source_id: z.ZodString;
2541
2836
  revision: z.ZodString;
2542
2837
  }, z.core.$strip>, z.ZodObject<{
@@ -2569,6 +2864,8 @@ export declare const OPS: {
2569
2864
  embedding_failed: "embedding_failed";
2570
2865
  rerank_failed: "rerank_failed";
2571
2866
  derive_failed: "derive_failed";
2867
+ retain_verification_failed: "retain_verification_failed";
2868
+ retain_apply_failed: "retain_apply_failed";
2572
2869
  expansion_failed: "expansion_failed";
2573
2870
  no_vector_index: "no_vector_index";
2574
2871
  partial_index: "partial_index";
@@ -2613,8 +2910,90 @@ export declare const OPS: {
2613
2910
  }>;
2614
2911
  memory_id: z.ZodOptional<z.ZodString>;
2615
2912
  slug: z.ZodOptional<z.ZodString>;
2913
+ reason_code: z.ZodOptional<z.ZodEnum<{
2914
+ conflict: "conflict";
2915
+ routing_uncertain: "routing_uncertain";
2916
+ no_writable_destination: "no_writable_destination";
2917
+ source_unavailable: "source_unavailable";
2918
+ discourse_uncertain: "discourse_uncertain";
2919
+ context_too_large: "context_too_large";
2920
+ time_unresolved: "time_unresolved";
2921
+ noncanonical_without_context: "noncanonical_without_context";
2922
+ support_limit: "support_limit";
2923
+ placement_degraded: "placement_degraded";
2924
+ apply_failed: "apply_failed";
2925
+ validation_failed: "validation_failed";
2926
+ }>>;
2616
2927
  reason: z.ZodOptional<z.ZodString>;
2617
2928
  }, z.core.$strip>>;
2929
+ reason_code: z.ZodOptional<z.ZodEnum<{
2930
+ conflict: "conflict";
2931
+ routing_uncertain: "routing_uncertain";
2932
+ no_writable_destination: "no_writable_destination";
2933
+ source_unavailable: "source_unavailable";
2934
+ discourse_uncertain: "discourse_uncertain";
2935
+ context_too_large: "context_too_large";
2936
+ time_unresolved: "time_unresolved";
2937
+ noncanonical_without_context: "noncanonical_without_context";
2938
+ support_limit: "support_limit";
2939
+ placement_degraded: "placement_degraded";
2940
+ apply_failed: "apply_failed";
2941
+ validation_failed: "validation_failed";
2942
+ }>>;
2943
+ status: z.ZodOptional<z.ZodEnum<{
2944
+ ok: "ok";
2945
+ empty: "empty";
2946
+ degraded: "degraded";
2947
+ unavailable: "unavailable";
2948
+ }>>;
2949
+ degraded: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2950
+ no_embedding_model: "no_embedding_model";
2951
+ no_reranker: "no_reranker";
2952
+ no_derive_model: "no_derive_model";
2953
+ no_expansion_model: "no_expansion_model";
2954
+ embedding_failed: "embedding_failed";
2955
+ rerank_failed: "rerank_failed";
2956
+ derive_failed: "derive_failed";
2957
+ retain_verification_failed: "retain_verification_failed";
2958
+ retain_apply_failed: "retain_apply_failed";
2959
+ expansion_failed: "expansion_failed";
2960
+ no_vector_index: "no_vector_index";
2961
+ partial_index: "partial_index";
2962
+ no_document_text: "no_document_text";
2963
+ document_source_missing: "document_source_missing";
2964
+ no_graph_index: "no_graph_index";
2965
+ no_entity_index: "no_entity_index";
2966
+ entity_resolution_failed: "entity_resolution_failed";
2967
+ partial_graph_index: "partial_graph_index";
2968
+ graph_traversal_limited: "graph_traversal_limited";
2969
+ no_answer_model: "no_answer_model";
2970
+ answer_failed: "answer_failed";
2971
+ answer_verification_failed: "answer_verification_failed";
2972
+ answer_truncated: "answer_truncated";
2973
+ }>>>;
2974
+ model_usage: z.ZodOptional<z.ZodObject<{
2975
+ extraction: z.ZodNullable<z.ZodObject<{
2976
+ model: z.ZodString;
2977
+ latency_ms: z.ZodNumber;
2978
+ input_tokens: z.ZodNullable<z.ZodNumber>;
2979
+ output_tokens: z.ZodNullable<z.ZodNumber>;
2980
+ total_tokens: z.ZodNullable<z.ZodNumber>;
2981
+ }, z.core.$strip>>;
2982
+ verification: z.ZodNullable<z.ZodObject<{
2983
+ model: z.ZodString;
2984
+ latency_ms: z.ZodNumber;
2985
+ input_tokens: z.ZodNullable<z.ZodNumber>;
2986
+ output_tokens: z.ZodNullable<z.ZodNumber>;
2987
+ total_tokens: z.ZodNullable<z.ZodNumber>;
2988
+ }, z.core.$strip>>;
2989
+ placement: z.ZodArray<z.ZodObject<{
2990
+ model: z.ZodString;
2991
+ latency_ms: z.ZodNumber;
2992
+ input_tokens: z.ZodNullable<z.ZodNumber>;
2993
+ output_tokens: z.ZodNullable<z.ZodNumber>;
2994
+ total_tokens: z.ZodNullable<z.ZodNumber>;
2995
+ }, z.core.$strip>>;
2996
+ }, z.core.$strip>>;
2618
2997
  note: z.ZodOptional<z.ZodString>;
2619
2998
  }, z.core.$strip>>;
2620
2999
  }, z.core.$strip>>;
@@ -2637,6 +3016,8 @@ export declare const OPS: {
2637
3016
  embedding_failed: "embedding_failed";
2638
3017
  rerank_failed: "rerank_failed";
2639
3018
  derive_failed: "derive_failed";
3019
+ retain_verification_failed: "retain_verification_failed";
3020
+ retain_apply_failed: "retain_apply_failed";
2640
3021
  expansion_failed: "expansion_failed";
2641
3022
  no_vector_index: "no_vector_index";
2642
3023
  partial_index: "partial_index";
@@ -2675,6 +3056,8 @@ export declare const OPS: {
2675
3056
  embedding_failed: "embedding_failed";
2676
3057
  rerank_failed: "rerank_failed";
2677
3058
  derive_failed: "derive_failed";
3059
+ retain_verification_failed: "retain_verification_failed";
3060
+ retain_apply_failed: "retain_apply_failed";
2678
3061
  expansion_failed: "expansion_failed";
2679
3062
  no_vector_index: "no_vector_index";
2680
3063
  partial_index: "partial_index";
@@ -2713,6 +3096,8 @@ export declare const OPS: {
2713
3096
  embedding_failed: "embedding_failed";
2714
3097
  rerank_failed: "rerank_failed";
2715
3098
  derive_failed: "derive_failed";
3099
+ retain_verification_failed: "retain_verification_failed";
3100
+ retain_apply_failed: "retain_apply_failed";
2716
3101
  expansion_failed: "expansion_failed";
2717
3102
  no_vector_index: "no_vector_index";
2718
3103
  partial_index: "partial_index";
@@ -2763,6 +3148,8 @@ export declare const OPS: {
2763
3148
  embedding_failed: "embedding_failed";
2764
3149
  rerank_failed: "rerank_failed";
2765
3150
  derive_failed: "derive_failed";
3151
+ retain_verification_failed: "retain_verification_failed";
3152
+ retain_apply_failed: "retain_apply_failed";
2766
3153
  expansion_failed: "expansion_failed";
2767
3154
  no_vector_index: "no_vector_index";
2768
3155
  partial_index: "partial_index";
@@ -2797,6 +3184,7 @@ export declare const OPS: {
2797
3184
  none: "none";
2798
3185
  plain: "plain";
2799
3186
  textutil: "textutil";
3187
+ libreoffice: "libreoffice";
2800
3188
  "text-layer": "text-layer";
2801
3189
  ocr: "ocr";
2802
3190
  vision: "vision";
@@ -2848,6 +3236,8 @@ export declare const OPS: {
2848
3236
  embedding_failed: "embedding_failed";
2849
3237
  rerank_failed: "rerank_failed";
2850
3238
  derive_failed: "derive_failed";
3239
+ retain_verification_failed: "retain_verification_failed";
3240
+ retain_apply_failed: "retain_apply_failed";
2851
3241
  expansion_failed: "expansion_failed";
2852
3242
  no_vector_index: "no_vector_index";
2853
3243
  partial_index: "partial_index";
@@ -2888,25 +3278,25 @@ export declare const OPS: {
2888
3278
  review: "review";
2889
3279
  }>;
2890
3280
  status: z.ZodEnum<{
3281
+ completed: "completed";
2891
3282
  superseded: "superseded";
2892
3283
  ready: "ready";
2893
3284
  awaiting_review: "awaiting_review";
2894
3285
  deciding: "deciding";
2895
3286
  approved: "approved";
2896
3287
  applying: "applying";
2897
- completed: "completed";
2898
3288
  partially_completed: "partially_completed";
2899
3289
  failed: "failed";
2900
3290
  }>;
2901
3291
  item_id: z.ZodString;
2902
3292
  item_status: z.ZodEnum<{
2903
- applied: "applied";
3293
+ proposed: "proposed";
2904
3294
  rejected: "rejected";
3295
+ applied: "applied";
2905
3296
  verification_pending: "verification_pending";
2906
3297
  blocked: "blocked";
2907
3298
  approved: "approved";
2908
3299
  applying: "applying";
2909
- proposed: "proposed";
2910
3300
  stale: "stale";
2911
3301
  verification_failed: "verification_failed";
2912
3302
  }>;