@ftai/dsh-plugin-acn 0.0.0-stage → 0.1.1

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 (276) hide show
  1. package/CHANGELOG.md +90 -0
  2. package/LICENSE-APACHE +201 -0
  3. package/LICENSE-MIT +19 -0
  4. package/README.md +82 -2
  5. package/README_EN.md +83 -0
  6. package/cordis.patch.yml +29 -0
  7. package/docs/acn-compat.md +33 -0
  8. package/docs/architecture.md +130 -0
  9. package/docs/assets/acn-claim-reuse.png +0 -0
  10. package/docs/assets/activity-view.png +0 -0
  11. package/docs/assets/install-package.png +0 -0
  12. package/docs/assets/knowledge-model.png +0 -0
  13. package/docs/assets/knowledge-view.png +0 -0
  14. package/docs/assets/personal-configuration.png +0 -0
  15. package/docs/assets/session-upstream.png +0 -0
  16. package/docs/assets/upstream-settings.png +0 -0
  17. package/docs/assets/upstream-team.png +0 -0
  18. package/docs/command-reference.md +201 -0
  19. package/docs/config.md +253 -0
  20. package/docs/development.md +197 -0
  21. package/docs/dsh-compat.md +59 -0
  22. package/docs/index.md +16 -0
  23. package/docs/outstanding-issues.md +61 -0
  24. package/docs/user_guide.md +185 -0
  25. package/icon.svg +8 -0
  26. package/lib/activities-B8U-iW4-.js +407 -0
  27. package/lib/alignment-CwH0nBf-.js +80 -0
  28. package/lib/auth-DFI9yowX.js +71 -0
  29. package/lib/checkpoint-CPFPOxBM.js +188 -0
  30. package/lib/checkpoint-c7aI4D-X.js +318 -0
  31. package/lib/claim-DOAGe8ZK.js +168 -0
  32. package/lib/client.js +18417 -0
  33. package/lib/deliver-C-dmhkfm.js +168 -0
  34. package/lib/delivery-status-M7-Rwoyj.js +89 -0
  35. package/lib/dispute-CtrInHzf.js +20 -0
  36. package/lib/disputes-ByEmi43j.js +51 -0
  37. package/lib/dream-agent-BVqxbKFc.js +249 -0
  38. package/lib/dream.js +4 -0
  39. package/lib/effects-DX1iy6FM.js +268 -0
  40. package/lib/errors-Bp_2WXBr.js +19 -0
  41. package/lib/errors-pPumDOGD.js +18 -0
  42. package/lib/evidence-store-DW7kj20i.js +1030 -0
  43. package/lib/formation-D4LO31WW.js +187 -0
  44. package/lib/formation-replay-Bf4TSBiz.js +87 -0
  45. package/lib/formation.js +9 -0
  46. package/lib/history-DPMHX3ZE.js +214 -0
  47. package/lib/inbox-2CugZZQm.js +188 -0
  48. package/lib/inbox-DFtE2fOp.js +71 -0
  49. package/lib/inbox.js +3 -0
  50. package/lib/index.js +1373 -0
  51. package/lib/lock-DbmlKOoX.js +332 -0
  52. package/lib/pages-BEWC3kmZ.js +51 -0
  53. package/lib/paths-B7NI9Ano.js +157 -0
  54. package/lib/plugins/commands.js +590 -0
  55. package/lib/plugins/dream.js +66 -0
  56. package/lib/plugins/formation.js +66 -0
  57. package/lib/plugins/inbox.js +53 -0
  58. package/lib/plugins/knowledge.js +1109 -0
  59. package/lib/plugins/prompt.js +102 -0
  60. package/lib/plugins/tools.js +280 -0
  61. package/lib/policy-DnyHh7Bl.js +16 -0
  62. package/lib/prepare-CGXwBEcu.js +134 -0
  63. package/lib/protocol.js +8 -0
  64. package/lib/queue-M917xHPS.js +153 -0
  65. package/lib/regular-file-BFpqMoub.js +136 -0
  66. package/lib/render-CJaVcKKC.js +48 -0
  67. package/lib/reported-sets-DdEKdeVb.js +122 -0
  68. package/lib/revision-DeoL_IUN.js +11 -0
  69. package/lib/scheduler-BfJSY1eq.js +64 -0
  70. package/lib/service-BPwaZzFF.js +1106 -0
  71. package/lib/service-BQaszW_v.js +344 -0
  72. package/lib/service-BhniAHLo.js +305 -0
  73. package/lib/service-C2lXoygJ.js +505 -0
  74. package/lib/session-binding-zCSuizHs.js +342 -0
  75. package/lib/session-state-CYqUhC95.js +38 -0
  76. package/lib/sessions-C2xuPFQv.js +218 -0
  77. package/lib/store.js +16 -0
  78. package/lib/structured-C9byFuzm.js +453 -0
  79. package/lib/subagent-yJsFxHmH.js +9 -0
  80. package/lib/team.js +3 -0
  81. package/lib/tool-schema-3b4gH1zf.js +28 -0
  82. package/lib/trace-Da0RnL5R.js +14 -0
  83. package/lib/traces-CHBo8y1z.js +11 -0
  84. package/lib/types/activities.d.ts +73 -0
  85. package/lib/types/advanced-configuration.d.ts +11 -0
  86. package/lib/types/client/ActivityCard.d.ts +14 -0
  87. package/lib/types/client/ActivityDetails.d.ts +18 -0
  88. package/lib/types/client/AdvancedPreferences.d.ts +8 -0
  89. package/lib/types/client/BlankCommandFeedback.d.ts +10 -0
  90. package/lib/types/client/ComposerMenu.d.ts +24 -0
  91. package/lib/types/client/ConfigurationPage.d.ts +11 -0
  92. package/lib/types/client/ConnectionCheckDialog.d.ts +12 -0
  93. package/lib/types/client/KnowledgeDetail.d.ts +6 -0
  94. package/lib/types/client/KnowledgeDirectoryField.d.ts +11 -0
  95. package/lib/types/client/KnowledgePanel.d.ts +12 -0
  96. package/lib/types/client/KnowledgeReference.d.ts +13 -0
  97. package/lib/types/client/SessionToolbar.d.ts +16 -0
  98. package/lib/types/client/SettingsToast.d.ts +3 -0
  99. package/lib/types/client/SourceSessionLink.d.ts +16 -0
  100. package/lib/types/client/TeamCredentialField.d.ts +16 -0
  101. package/lib/types/client/TeamSettingsPage.d.ts +28 -0
  102. package/lib/types/client/configuration-errors.d.ts +2 -0
  103. package/lib/types/client/interaction-styles.d.ts +1 -0
  104. package/lib/types/client/interaction-ui.d.ts +30 -0
  105. package/lib/types/client/knowledge-labels.d.ts +5 -0
  106. package/lib/types/client/locales.d.ts +51 -0
  107. package/lib/types/commands/claim.d.ts +4 -0
  108. package/lib/types/commands/import.d.ts +10 -0
  109. package/lib/types/commands/status.d.ts +5 -0
  110. package/lib/types/config.d.ts +111 -0
  111. package/lib/types/configuration.d.ts +235 -0
  112. package/lib/types/credentials.d.ts +59 -0
  113. package/lib/types/dream/audit.d.ts +4 -0
  114. package/lib/types/dream/autonomous.d.ts +185 -0
  115. package/lib/types/dream/candidates.d.ts +34 -0
  116. package/lib/types/dream/checkpoint.d.ts +35 -0
  117. package/lib/types/dream/evidence-files.d.ts +10 -0
  118. package/lib/types/dream/evidence-store.d.ts +103 -0
  119. package/lib/types/dream/evidence.d.ts +30 -0
  120. package/lib/types/dream/index.d.ts +10 -0
  121. package/lib/types/dream/plan.d.ts +18 -0
  122. package/lib/types/dream/preservation.d.ts +6 -0
  123. package/lib/types/dream/review.d.ts +10 -0
  124. package/lib/types/dream/schema.d.ts +1475 -0
  125. package/lib/types/dream/service.d.ts +56 -0
  126. package/lib/types/dream/sync.d.ts +147 -0
  127. package/lib/types/dsh-adapter/configuration-remote.d.ts +1 -0
  128. package/lib/types/dsh-adapter/configuration-service.d.ts +28 -0
  129. package/lib/types/dsh-adapter/dream-agent.d.ts +4 -0
  130. package/lib/types/dsh-adapter/dream-evidence.d.ts +3 -0
  131. package/lib/types/dsh-adapter/formation-archive.d.ts +3 -0
  132. package/lib/types/dsh-adapter/formation-replay.d.ts +5 -0
  133. package/lib/types/dsh-adapter/formation.d.ts +4 -0
  134. package/lib/types/dsh-adapter/interaction-service.d.ts +13 -0
  135. package/lib/types/dsh-adapter/knowledge-paths.d.ts +3 -0
  136. package/lib/types/dsh-adapter/llm.d.ts +10 -0
  137. package/lib/types/dsh-adapter/project-upstream.d.ts +4 -0
  138. package/lib/types/dsh-adapter/runtime-pool.d.ts +110 -0
  139. package/lib/types/dsh-adapter/session-binding.d.ts +43 -0
  140. package/lib/types/dsh-adapter/source-sessions.d.ts +3 -0
  141. package/lib/types/dsh-adapter/team-credentials.d.ts +5 -0
  142. package/lib/types/dsh-adapter/tool-schema.d.ts +4 -0
  143. package/lib/types/dsh-adapter/tools.d.ts +5 -0
  144. package/lib/types/formation/capture.d.ts +19 -0
  145. package/lib/types/formation/checkpoint.d.ts +136 -0
  146. package/lib/types/formation/index.d.ts +10 -0
  147. package/lib/types/formation/prepare.d.ts +16 -0
  148. package/lib/types/formation/schema.d.ts +45 -0
  149. package/lib/types/formation/service.d.ts +58 -0
  150. package/lib/types/formation/transcript.d.ts +75 -0
  151. package/lib/types/formation/triggers.d.ts +3 -0
  152. package/lib/types/inbox/cascade.d.ts +3 -0
  153. package/lib/types/inbox/effects.d.ts +275 -0
  154. package/lib/types/inbox/index.d.ts +5 -0
  155. package/lib/types/inbox/prepare.d.ts +380 -0
  156. package/lib/types/inbox/service.d.ts +26 -0
  157. package/lib/types/inbox/sync.d.ts +9 -0
  158. package/lib/types/index.d.ts +1 -0
  159. package/lib/types/interaction-messages.d.ts +69 -0
  160. package/lib/types/interaction.d.ts +541 -0
  161. package/lib/types/knowledge/alignment.d.ts +49 -0
  162. package/lib/types/knowledge/catalog.d.ts +5 -0
  163. package/lib/types/knowledge/changes.d.ts +32 -0
  164. package/lib/types/knowledge/disputes.d.ts +3 -0
  165. package/lib/types/knowledge/errors.d.ts +9 -0
  166. package/lib/types/knowledge/ordering.d.ts +7 -0
  167. package/lib/types/knowledge/pages.d.ts +7 -0
  168. package/lib/types/knowledge/safety.d.ts +2 -0
  169. package/lib/types/knowledge/service.d.ts +52 -0
  170. package/lib/types/knowledge/sessions.d.ts +59 -0
  171. package/lib/types/knowledge/sources.d.ts +2 -0
  172. package/lib/types/knowledge/timestamps.d.ts +1 -0
  173. package/lib/types/knowledge/types.d.ts +84 -0
  174. package/lib/types/llm/response.d.ts +1 -0
  175. package/lib/types/llm/structured.d.ts +27 -0
  176. package/lib/types/local-name.d.ts +1 -0
  177. package/lib/types/plugins/client.d.ts +9 -0
  178. package/lib/types/plugins/commands.d.ts +11 -0
  179. package/lib/types/plugins/configuration.d.ts +8 -0
  180. package/lib/types/plugins/dream.d.ts +16 -0
  181. package/lib/types/plugins/formation.d.ts +16 -0
  182. package/lib/types/plugins/inbox.d.ts +16 -0
  183. package/lib/types/plugins/knowledge.d.ts +19 -0
  184. package/lib/types/plugins/prompt.d.ts +17 -0
  185. package/lib/types/plugins/tools.d.ts +10 -0
  186. package/lib/types/prompt/render.d.ts +2 -0
  187. package/lib/types/protocol/arbitration.d.ts +154 -0
  188. package/lib/types/protocol/auth.d.ts +31 -0
  189. package/lib/types/protocol/claim.d.ts +36 -0
  190. package/lib/types/protocol/dispute.d.ts +17 -0
  191. package/lib/types/protocol/ids.d.ts +20 -0
  192. package/lib/types/protocol/inbox.d.ts +141 -0
  193. package/lib/types/protocol/index.d.ts +11 -0
  194. package/lib/types/protocol/policy.d.ts +21 -0
  195. package/lib/types/protocol/revision.d.ts +2 -0
  196. package/lib/types/protocol/router.d.ts +114 -0
  197. package/lib/types/protocol/schema.d.ts +4 -0
  198. package/lib/types/protocol/time.d.ts +5 -0
  199. package/lib/types/protocol/trace.d.ts +11 -0
  200. package/lib/types/store/atomic.d.ts +8 -0
  201. package/lib/types/store/claim-edits.d.ts +33 -0
  202. package/lib/types/store/claims.d.ts +7 -0
  203. package/lib/types/store/context.d.ts +13 -0
  204. package/lib/types/store/delivery-status.d.ts +48 -0
  205. package/lib/types/store/disputes.d.ts +6 -0
  206. package/lib/types/store/entities.d.ts +16 -0
  207. package/lib/types/store/errors.d.ts +8 -0
  208. package/lib/types/store/history.d.ts +65 -0
  209. package/lib/types/store/inbox.d.ts +27 -0
  210. package/lib/types/store/index.d.ts +16 -0
  211. package/lib/types/store/jobs.d.ts +5 -0
  212. package/lib/types/store/library-directory.d.ts +4 -0
  213. package/lib/types/store/lock.d.ts +11 -0
  214. package/lib/types/store/path-names.d.ts +2 -0
  215. package/lib/types/store/paths.d.ts +45 -0
  216. package/lib/types/store/presentation.d.ts +13 -0
  217. package/lib/types/store/regular-file.d.ts +2 -0
  218. package/lib/types/store/rejected-disputes.d.ts +18 -0
  219. package/lib/types/store/rename.d.ts +1 -0
  220. package/lib/types/store/reported-sets.d.ts +24 -0
  221. package/lib/types/store/session-state.d.ts +17 -0
  222. package/lib/types/store/traces.d.ts +6 -0
  223. package/lib/types/store/uploads.d.ts +312 -0
  224. package/lib/types/store/yaml.d.ts +8 -0
  225. package/lib/types/team/errors.d.ts +10 -0
  226. package/lib/types/team/http.d.ts +20 -0
  227. package/lib/types/team/index.d.ts +5 -0
  228. package/lib/types/team/maintainer-client.d.ts +18 -0
  229. package/lib/types/team/router-client.d.ts +14 -0
  230. package/lib/types/team/service.d.ts +28 -0
  231. package/lib/types/team/system-proxy.d.ts +9 -0
  232. package/lib/types/tools/claim.d.ts +63 -0
  233. package/lib/types/tools/consult-router.d.ts +11 -0
  234. package/lib/types/tools/subagent.d.ts +8 -0
  235. package/lib/types/tools/validation.d.ts +2 -0
  236. package/lib/types/upload/consolidation.d.ts +63 -0
  237. package/lib/types/upload/deliver.d.ts +15 -0
  238. package/lib/types/upload/index.d.ts +2 -0
  239. package/lib/types/upload/scheduler.d.ts +19 -0
  240. package/lib/types/upstreams.d.ts +5 -0
  241. package/lib/types/worker/queue.d.ts +17 -0
  242. package/lib/types/worker/types.d.ts +51 -0
  243. package/lib/types/worker/worker.d.ts +39 -0
  244. package/lib/types-C2ST2Zdg.js +17 -0
  245. package/lib/upload.js +3 -0
  246. package/lib/uploads-BCA2p92b.js +210 -0
  247. package/lib/upstreams-DEi-56tD.js +495 -0
  248. package/lib/worker-HMGzJFWd.js +185 -0
  249. package/locale/commands/en.json +1 -0
  250. package/locale/commands/zh.json +1 -0
  251. package/locale/dream/en.json +1 -0
  252. package/locale/dream/zh.json +1 -0
  253. package/locale/en.json +7 -0
  254. package/locale/formation/en.json +1 -0
  255. package/locale/formation/zh.json +1 -0
  256. package/locale/inbox/en.json +1 -0
  257. package/locale/inbox/zh.json +1 -0
  258. package/locale/knowledge/en.json +1 -0
  259. package/locale/knowledge/zh.json +1 -0
  260. package/locale/prompt/en.json +1 -0
  261. package/locale/prompt/zh.json +1 -0
  262. package/locale/tools/en.json +1 -0
  263. package/locale/tools/zh.json +1 -0
  264. package/locale/zh.json +7 -0
  265. package/package.json +262 -3
  266. package/prompts/claim_dream.j2 +77 -0
  267. package/prompts/claim_dream_legacy.j2 +63 -0
  268. package/prompts/dream_compaction.j2 +11 -0
  269. package/prompts/dream_evidence.j2 +5 -0
  270. package/prompts/inbox_claim_attribute_update_internalize.j2 +112 -0
  271. package/prompts/inbox_policy_update_internalize.j2 +87 -0
  272. package/prompts/knowledge.j2 +38 -0
  273. package/prompts/session_recap.j2 +113 -0
  274. package/prompts/what_is_claim.j2 +51 -0
  275. package/prompts/what_is_dispute.j2 +21 -0
  276. package/prompts/what_is_policy.j2 +22 -0
@@ -0,0 +1,1475 @@
1
+ import { z } from 'zod';
2
+ import { FormationValidationError } from '../formation/schema.js';
3
+ export declare class DreamValidationError extends FormationValidationError {
4
+ }
5
+ export declare const text: z.ZodString;
6
+ export declare const KeySchema: z.ZodString;
7
+ export declare const HashSchema: z.ZodString;
8
+ export declare const KindSchema: z.ZodEnum<{
9
+ quality: "quality";
10
+ evidence: "evidence";
11
+ consolidation: "consolidation";
12
+ }>;
13
+ export declare const ReviewSummarySchema: z.ZodObject<{
14
+ quality: z.ZodString;
15
+ evidence: z.ZodString;
16
+ consolidation: z.ZodString;
17
+ }, z.core.$strict>;
18
+ export declare const BasisSchema: z.ZodObject<{
19
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
20
+ removed_or_changed: z.ZodString;
21
+ added: z.ZodString;
22
+ justification: z.ZodString;
23
+ evidence_ids: z.ZodArray<z.ZodString>;
24
+ }, z.core.$strict>;
25
+ export declare const CoverageSchema: z.ZodObject<{
26
+ input_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
27
+ output_ids: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ClaimId", "out">>;
28
+ note: z.ZodString;
29
+ }, z.core.$strict>;
30
+ export declare const UpdateSchema: z.ZodObject<{
31
+ name: z.ZodString;
32
+ id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
33
+ statement: z.ZodString;
34
+ scope: z.ZodString;
35
+ confidence: z.ZodEnum<{
36
+ high: "high";
37
+ medium: "medium";
38
+ low: "low";
39
+ }>;
40
+ status: z.ZodEnum<{
41
+ active: "active";
42
+ stale: "stale";
43
+ deprecated: "deprecated";
44
+ }>;
45
+ evidence_summary: z.ZodString;
46
+ source_claim_ids: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.core.$ZodBranded<z.ZodString, "PolicyId", "out">]>>>;
47
+ }, z.core.$strict>;
48
+ export declare const GroupSchema: z.ZodObject<{
49
+ kind: z.ZodEnum<{
50
+ quality: "quality";
51
+ evidence: "evidence";
52
+ consolidation: "consolidation";
53
+ }>;
54
+ reason: z.ZodString;
55
+ evidence_ids: z.ZodArray<z.ZodString>;
56
+ coverage: z.ZodArray<z.ZodObject<{
57
+ input_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
58
+ output_ids: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ClaimId", "out">>;
59
+ note: z.ZodString;
60
+ }, z.core.$strict>>;
61
+ change_basis: z.ZodDefault<z.ZodArray<z.ZodObject<{
62
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
63
+ removed_or_changed: z.ZodString;
64
+ added: z.ZodString;
65
+ justification: z.ZodString;
66
+ evidence_ids: z.ZodArray<z.ZodString>;
67
+ }, z.core.$strict>>>;
68
+ updates: z.ZodArray<z.ZodObject<{
69
+ name: z.ZodString;
70
+ id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
71
+ statement: z.ZodString;
72
+ scope: z.ZodString;
73
+ confidence: z.ZodEnum<{
74
+ high: "high";
75
+ medium: "medium";
76
+ low: "low";
77
+ }>;
78
+ status: z.ZodEnum<{
79
+ active: "active";
80
+ stale: "stale";
81
+ deprecated: "deprecated";
82
+ }>;
83
+ evidence_summary: z.ZodString;
84
+ source_claim_ids: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.core.$ZodBranded<z.ZodString, "PolicyId", "out">]>>>;
85
+ }, z.core.$strict>>;
86
+ }, z.core.$strict>;
87
+ export declare const PlanSchema: z.ZodObject<{
88
+ review: z.ZodObject<{
89
+ quality: z.ZodString;
90
+ evidence: z.ZodString;
91
+ consolidation: z.ZodString;
92
+ }, z.core.$strict>;
93
+ groups: z.ZodArray<z.ZodObject<{
94
+ kind: z.ZodEnum<{
95
+ quality: "quality";
96
+ evidence: "evidence";
97
+ consolidation: "consolidation";
98
+ }>;
99
+ reason: z.ZodString;
100
+ evidence_ids: z.ZodArray<z.ZodString>;
101
+ coverage: z.ZodArray<z.ZodObject<{
102
+ input_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
103
+ output_ids: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ClaimId", "out">>;
104
+ note: z.ZodString;
105
+ }, z.core.$strict>>;
106
+ change_basis: z.ZodDefault<z.ZodArray<z.ZodObject<{
107
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
108
+ removed_or_changed: z.ZodString;
109
+ added: z.ZodString;
110
+ justification: z.ZodString;
111
+ evidence_ids: z.ZodArray<z.ZodString>;
112
+ }, z.core.$strict>>>;
113
+ updates: z.ZodArray<z.ZodObject<{
114
+ name: z.ZodString;
115
+ id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
116
+ statement: z.ZodString;
117
+ scope: z.ZodString;
118
+ confidence: z.ZodEnum<{
119
+ high: "high";
120
+ medium: "medium";
121
+ low: "low";
122
+ }>;
123
+ status: z.ZodEnum<{
124
+ active: "active";
125
+ stale: "stale";
126
+ deprecated: "deprecated";
127
+ }>;
128
+ evidence_summary: z.ZodString;
129
+ source_claim_ids: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.core.$ZodBranded<z.ZodString, "PolicyId", "out">]>>>;
130
+ }, z.core.$strict>>;
131
+ }, z.core.$strict>>;
132
+ }, z.core.$strip>;
133
+ export declare const OperationSchema: z.ZodObject<{
134
+ id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
135
+ action: z.ZodEnum<{
136
+ keep: "keep";
137
+ update: "update";
138
+ deprecate: "deprecate";
139
+ }>;
140
+ changes: z.ZodDefault<z.ZodObject<{
141
+ name: z.ZodOptional<z.ZodString>;
142
+ statement: z.ZodOptional<z.ZodString>;
143
+ scope: z.ZodOptional<z.ZodString>;
144
+ confidence: z.ZodOptional<z.ZodEnum<{
145
+ high: "high";
146
+ medium: "medium";
147
+ low: "low";
148
+ }>>;
149
+ status: z.ZodOptional<z.ZodEnum<{
150
+ active: "active";
151
+ stale: "stale";
152
+ deprecated: "deprecated";
153
+ }>>;
154
+ source_claim_ids: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.core.$ZodBranded<z.ZodString, "PolicyId", "out">]>>>;
155
+ evidence_summary: z.ZodOptional<z.ZodString>;
156
+ }, z.core.$strict>>;
157
+ reason: z.ZodOptional<z.ZodString>;
158
+ }, z.core.$strict>;
159
+ export declare const DraftGroupSchema: z.ZodObject<{
160
+ kind: z.ZodEnum<{
161
+ quality: "quality";
162
+ evidence: "evidence";
163
+ consolidation: "consolidation";
164
+ }>;
165
+ reason: z.ZodString;
166
+ evidence_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
167
+ coverage: z.ZodDefault<z.ZodArray<z.ZodObject<{
168
+ input_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
169
+ output_ids: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ClaimId", "out">>;
170
+ note: z.ZodString;
171
+ }, z.core.$strict>>>;
172
+ change_basis: z.ZodDefault<z.ZodArray<z.ZodObject<{
173
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
174
+ removed_or_changed: z.ZodString;
175
+ added: z.ZodString;
176
+ justification: z.ZodString;
177
+ evidence_ids: z.ZodArray<z.ZodString>;
178
+ }, z.core.$strict>>>;
179
+ operations: z.ZodArray<z.ZodObject<{
180
+ id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
181
+ action: z.ZodEnum<{
182
+ keep: "keep";
183
+ update: "update";
184
+ deprecate: "deprecate";
185
+ }>;
186
+ changes: z.ZodDefault<z.ZodObject<{
187
+ name: z.ZodOptional<z.ZodString>;
188
+ statement: z.ZodOptional<z.ZodString>;
189
+ scope: z.ZodOptional<z.ZodString>;
190
+ confidence: z.ZodOptional<z.ZodEnum<{
191
+ high: "high";
192
+ medium: "medium";
193
+ low: "low";
194
+ }>>;
195
+ status: z.ZodOptional<z.ZodEnum<{
196
+ active: "active";
197
+ stale: "stale";
198
+ deprecated: "deprecated";
199
+ }>>;
200
+ source_claim_ids: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.core.$ZodBranded<z.ZodString, "PolicyId", "out">]>>>;
201
+ evidence_summary: z.ZodOptional<z.ZodString>;
202
+ }, z.core.$strict>>;
203
+ reason: z.ZodOptional<z.ZodString>;
204
+ }, z.core.$strict>>;
205
+ }, z.core.$strict>;
206
+ export declare const CandidateSchema: z.ZodObject<{
207
+ group_id: z.ZodString;
208
+ claim_ids: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ClaimId", "out">>;
209
+ kind: z.ZodEnum<{
210
+ quality: "quality";
211
+ evidence: "evidence";
212
+ consolidation: "consolidation";
213
+ }>;
214
+ reason: z.ZodString;
215
+ }, z.core.$strict>;
216
+ export declare const KeepReasonSchema: z.ZodEnum<{
217
+ insufficient_evidence: "insufficient_evidence";
218
+ useful_knowledge: "useful_knowledge";
219
+ uncertain_preservation: "uncertain_preservation";
220
+ no_consolidation_benefit: "no_consolidation_benefit";
221
+ external_change: "external_change";
222
+ }>;
223
+ export declare const DraftResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
224
+ action: z.ZodLiteral<"stage">;
225
+ group: z.ZodObject<{
226
+ kind: z.ZodEnum<{
227
+ quality: "quality";
228
+ evidence: "evidence";
229
+ consolidation: "consolidation";
230
+ }>;
231
+ reason: z.ZodString;
232
+ evidence_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
233
+ coverage: z.ZodDefault<z.ZodArray<z.ZodObject<{
234
+ input_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
235
+ output_ids: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ClaimId", "out">>;
236
+ note: z.ZodString;
237
+ }, z.core.$strict>>>;
238
+ change_basis: z.ZodDefault<z.ZodArray<z.ZodObject<{
239
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
240
+ removed_or_changed: z.ZodString;
241
+ added: z.ZodString;
242
+ justification: z.ZodString;
243
+ evidence_ids: z.ZodArray<z.ZodString>;
244
+ }, z.core.$strict>>>;
245
+ operations: z.ZodArray<z.ZodObject<{
246
+ id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
247
+ action: z.ZodEnum<{
248
+ keep: "keep";
249
+ update: "update";
250
+ deprecate: "deprecate";
251
+ }>;
252
+ changes: z.ZodDefault<z.ZodObject<{
253
+ name: z.ZodOptional<z.ZodString>;
254
+ statement: z.ZodOptional<z.ZodString>;
255
+ scope: z.ZodOptional<z.ZodString>;
256
+ confidence: z.ZodOptional<z.ZodEnum<{
257
+ high: "high";
258
+ medium: "medium";
259
+ low: "low";
260
+ }>>;
261
+ status: z.ZodOptional<z.ZodEnum<{
262
+ active: "active";
263
+ stale: "stale";
264
+ deprecated: "deprecated";
265
+ }>>;
266
+ source_claim_ids: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.core.$ZodBranded<z.ZodString, "PolicyId", "out">]>>>;
267
+ evidence_summary: z.ZodOptional<z.ZodString>;
268
+ }, z.core.$strict>>;
269
+ reason: z.ZodOptional<z.ZodString>;
270
+ }, z.core.$strict>>;
271
+ }, z.core.$strict>;
272
+ }, z.core.$strict>, z.ZodObject<{
273
+ action: z.ZodLiteral<"keep">;
274
+ reason_kind: z.ZodEnum<{
275
+ insufficient_evidence: "insufficient_evidence";
276
+ useful_knowledge: "useful_knowledge";
277
+ uncertain_preservation: "uncertain_preservation";
278
+ no_consolidation_benefit: "no_consolidation_benefit";
279
+ external_change: "external_change";
280
+ }>;
281
+ reason: z.ZodString;
282
+ }, z.core.$strict>], "action">;
283
+ export declare const DiscoverySchema: z.ZodObject<{
284
+ review: z.ZodObject<{
285
+ quality: z.ZodString;
286
+ evidence: z.ZodString;
287
+ consolidation: z.ZodString;
288
+ }, z.core.$strict>;
289
+ candidates: z.ZodArray<z.ZodObject<{
290
+ group_id: z.ZodString;
291
+ claim_ids: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ClaimId", "out">>;
292
+ kind: z.ZodEnum<{
293
+ quality: "quality";
294
+ evidence: "evidence";
295
+ consolidation: "consolidation";
296
+ }>;
297
+ reason: z.ZodString;
298
+ }, z.core.$strict>>;
299
+ sync_candidates: z.ZodArray<z.ZodObject<{
300
+ source_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
301
+ carrier_ids: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ClaimId", "out">>;
302
+ reason: z.ZodString;
303
+ }, z.core.$strict>>;
304
+ }, z.core.$strict>;
305
+ export declare const QuoteSchema: z.ZodObject<{
306
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
307
+ field: z.ZodEnum<{
308
+ name: "name";
309
+ statement: "statement";
310
+ scope: "scope";
311
+ evidence_summary: "evidence_summary";
312
+ }>;
313
+ quote: z.ZodString;
314
+ }, z.core.$strict>;
315
+ export declare const SelfReviewSchema: z.ZodObject<{
316
+ group_id: z.ZodString;
317
+ validation_id: z.ZodString;
318
+ preservation: z.ZodArray<z.ZodObject<{
319
+ before: z.ZodObject<{
320
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
321
+ field: z.ZodEnum<{
322
+ name: "name";
323
+ statement: "statement";
324
+ scope: "scope";
325
+ evidence_summary: "evidence_summary";
326
+ }>;
327
+ quote: z.ZodString;
328
+ }, z.core.$strict>;
329
+ after: z.ZodArray<z.ZodObject<{
330
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
331
+ field: z.ZodEnum<{
332
+ name: "name";
333
+ statement: "statement";
334
+ scope: "scope";
335
+ evidence_summary: "evidence_summary";
336
+ }>;
337
+ quote: z.ZodString;
338
+ }, z.core.$strict>>;
339
+ disposition: z.ZodEnum<{
340
+ preserved: "preserved";
341
+ episodic: "episodic";
342
+ corrected: "corrected";
343
+ }>;
344
+ reason: z.ZodString;
345
+ evidence: z.ZodArray<z.ZodObject<{
346
+ evidence_id: z.ZodString;
347
+ quote: z.ZodString;
348
+ }, z.core.$strict>>;
349
+ }, z.core.$strict>>;
350
+ support: z.ZodArray<z.ZodObject<{
351
+ after: z.ZodObject<{
352
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
353
+ field: z.ZodEnum<{
354
+ name: "name";
355
+ statement: "statement";
356
+ scope: "scope";
357
+ evidence_summary: "evidence_summary";
358
+ }>;
359
+ quote: z.ZodString;
360
+ }, z.core.$strict>;
361
+ before: z.ZodArray<z.ZodObject<{
362
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
363
+ field: z.ZodEnum<{
364
+ name: "name";
365
+ statement: "statement";
366
+ scope: "scope";
367
+ evidence_summary: "evidence_summary";
368
+ }>;
369
+ quote: z.ZodString;
370
+ }, z.core.$strict>>;
371
+ evidence: z.ZodArray<z.ZodObject<{
372
+ evidence_id: z.ZodString;
373
+ quote: z.ZodString;
374
+ }, z.core.$strict>>;
375
+ reason: z.ZodString;
376
+ }, z.core.$strict>>;
377
+ scope_and_certainty: z.ZodString;
378
+ }, z.core.$strict>;
379
+ export declare const SemanticReviewSchema: z.ZodObject<{
380
+ claims: z.ZodArray<z.ZodObject<{
381
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
382
+ final_name: z.ZodDefault<z.ZodString>;
383
+ name_reason: z.ZodDefault<z.ZodString>;
384
+ information_preserved: z.ZodString;
385
+ removal_or_correction: z.ZodString;
386
+ factual_correction: z.ZodBoolean;
387
+ output_ids: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ClaimId", "out">>;
388
+ evidence_ids: z.ZodArray<z.ZodString>;
389
+ }, z.core.$strict>>;
390
+ scope_and_certainty: z.ZodString;
391
+ }, z.core.$strict>;
392
+ export declare const ReviewInputSchema: z.ZodObject<{
393
+ group_id: z.ZodString;
394
+ kind: z.ZodEnum<{
395
+ quality: "quality";
396
+ evidence: "evidence";
397
+ consolidation: "consolidation";
398
+ }>;
399
+ reason: z.ZodString;
400
+ before: z.ZodArray<z.ZodObject<{
401
+ id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
402
+ name: z.ZodString;
403
+ statement: z.ZodString;
404
+ scope: z.ZodString;
405
+ holder: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
406
+ confidence: z.ZodEnum<{
407
+ high: "high";
408
+ medium: "medium";
409
+ low: "low";
410
+ }>;
411
+ status: z.ZodEnum<{
412
+ active: "active";
413
+ stale: "stale";
414
+ deprecated: "deprecated";
415
+ }>;
416
+ created_at: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
417
+ updated_at: z.ZodPreprocess<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
418
+ source_claim_ids: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.core.$ZodBranded<z.ZodString, "PolicyId", "out">]>>>;
419
+ evidence_summary: z.ZodString;
420
+ }, z.core.$strip>>;
421
+ after: z.ZodArray<z.ZodObject<{
422
+ name: z.ZodString;
423
+ id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
424
+ statement: z.ZodString;
425
+ scope: z.ZodString;
426
+ confidence: z.ZodEnum<{
427
+ high: "high";
428
+ medium: "medium";
429
+ low: "low";
430
+ }>;
431
+ status: z.ZodEnum<{
432
+ active: "active";
433
+ stale: "stale";
434
+ deprecated: "deprecated";
435
+ }>;
436
+ evidence_summary: z.ZodString;
437
+ source_claim_ids: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.core.$ZodBranded<z.ZodString, "PolicyId", "out">]>>>;
438
+ }, z.core.$strict>>;
439
+ changes: z.ZodArray<z.ZodObject<{
440
+ id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
441
+ action: z.ZodEnum<{
442
+ keep: "keep";
443
+ update: "update";
444
+ deprecate: "deprecate";
445
+ }>;
446
+ changes: z.ZodDefault<z.ZodObject<{
447
+ name: z.ZodOptional<z.ZodString>;
448
+ statement: z.ZodOptional<z.ZodString>;
449
+ scope: z.ZodOptional<z.ZodString>;
450
+ confidence: z.ZodOptional<z.ZodEnum<{
451
+ high: "high";
452
+ medium: "medium";
453
+ low: "low";
454
+ }>>;
455
+ status: z.ZodOptional<z.ZodEnum<{
456
+ active: "active";
457
+ stale: "stale";
458
+ deprecated: "deprecated";
459
+ }>>;
460
+ source_claim_ids: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.core.$ZodBranded<z.ZodString, "PolicyId", "out">]>>>;
461
+ evidence_summary: z.ZodOptional<z.ZodString>;
462
+ }, z.core.$strict>>;
463
+ reason: z.ZodOptional<z.ZodString>;
464
+ }, z.core.$strict>>;
465
+ coverage: z.ZodArray<z.ZodObject<{
466
+ input_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
467
+ output_ids: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ClaimId", "out">>;
468
+ note: z.ZodString;
469
+ }, z.core.$strict>>;
470
+ change_basis: z.ZodArray<z.ZodObject<{
471
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
472
+ removed_or_changed: z.ZodString;
473
+ added: z.ZodString;
474
+ justification: z.ZodString;
475
+ evidence_ids: z.ZodArray<z.ZodString>;
476
+ }, z.core.$strict>>;
477
+ unversioned_evidence_omitted: z.ZodDefault<z.ZodArray<z.ZodString>>;
478
+ evidence: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
479
+ }, z.core.$strict>;
480
+ export declare const ValidationSchema: z.ZodObject<{
481
+ validation_id: z.ZodString;
482
+ input: z.ZodObject<{
483
+ group_id: z.ZodString;
484
+ kind: z.ZodEnum<{
485
+ quality: "quality";
486
+ evidence: "evidence";
487
+ consolidation: "consolidation";
488
+ }>;
489
+ reason: z.ZodString;
490
+ before: z.ZodArray<z.ZodObject<{
491
+ id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
492
+ name: z.ZodString;
493
+ statement: z.ZodString;
494
+ scope: z.ZodString;
495
+ holder: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
496
+ confidence: z.ZodEnum<{
497
+ high: "high";
498
+ medium: "medium";
499
+ low: "low";
500
+ }>;
501
+ status: z.ZodEnum<{
502
+ active: "active";
503
+ stale: "stale";
504
+ deprecated: "deprecated";
505
+ }>;
506
+ created_at: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
507
+ updated_at: z.ZodPreprocess<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
508
+ source_claim_ids: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.core.$ZodBranded<z.ZodString, "PolicyId", "out">]>>>;
509
+ evidence_summary: z.ZodString;
510
+ }, z.core.$strip>>;
511
+ after: z.ZodArray<z.ZodObject<{
512
+ name: z.ZodString;
513
+ id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
514
+ statement: z.ZodString;
515
+ scope: z.ZodString;
516
+ confidence: z.ZodEnum<{
517
+ high: "high";
518
+ medium: "medium";
519
+ low: "low";
520
+ }>;
521
+ status: z.ZodEnum<{
522
+ active: "active";
523
+ stale: "stale";
524
+ deprecated: "deprecated";
525
+ }>;
526
+ evidence_summary: z.ZodString;
527
+ source_claim_ids: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.core.$ZodBranded<z.ZodString, "PolicyId", "out">]>>>;
528
+ }, z.core.$strict>>;
529
+ changes: z.ZodArray<z.ZodObject<{
530
+ id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
531
+ action: z.ZodEnum<{
532
+ keep: "keep";
533
+ update: "update";
534
+ deprecate: "deprecate";
535
+ }>;
536
+ changes: z.ZodDefault<z.ZodObject<{
537
+ name: z.ZodOptional<z.ZodString>;
538
+ statement: z.ZodOptional<z.ZodString>;
539
+ scope: z.ZodOptional<z.ZodString>;
540
+ confidence: z.ZodOptional<z.ZodEnum<{
541
+ high: "high";
542
+ medium: "medium";
543
+ low: "low";
544
+ }>>;
545
+ status: z.ZodOptional<z.ZodEnum<{
546
+ active: "active";
547
+ stale: "stale";
548
+ deprecated: "deprecated";
549
+ }>>;
550
+ source_claim_ids: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.core.$ZodBranded<z.ZodString, "PolicyId", "out">]>>>;
551
+ evidence_summary: z.ZodOptional<z.ZodString>;
552
+ }, z.core.$strict>>;
553
+ reason: z.ZodOptional<z.ZodString>;
554
+ }, z.core.$strict>>;
555
+ coverage: z.ZodArray<z.ZodObject<{
556
+ input_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
557
+ output_ids: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ClaimId", "out">>;
558
+ note: z.ZodString;
559
+ }, z.core.$strict>>;
560
+ change_basis: z.ZodArray<z.ZodObject<{
561
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
562
+ removed_or_changed: z.ZodString;
563
+ added: z.ZodString;
564
+ justification: z.ZodString;
565
+ evidence_ids: z.ZodArray<z.ZodString>;
566
+ }, z.core.$strict>>;
567
+ unversioned_evidence_omitted: z.ZodDefault<z.ZodArray<z.ZodString>>;
568
+ evidence: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
569
+ }, z.core.$strict>;
570
+ }, z.core.$strict>;
571
+ export declare const ReviewRecordSchema: z.ZodObject<{
572
+ validation: z.ZodObject<{
573
+ validation_id: z.ZodString;
574
+ input: z.ZodObject<{
575
+ group_id: z.ZodString;
576
+ kind: z.ZodEnum<{
577
+ quality: "quality";
578
+ evidence: "evidence";
579
+ consolidation: "consolidation";
580
+ }>;
581
+ reason: z.ZodString;
582
+ before: z.ZodArray<z.ZodObject<{
583
+ id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
584
+ name: z.ZodString;
585
+ statement: z.ZodString;
586
+ scope: z.ZodString;
587
+ holder: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
588
+ confidence: z.ZodEnum<{
589
+ high: "high";
590
+ medium: "medium";
591
+ low: "low";
592
+ }>;
593
+ status: z.ZodEnum<{
594
+ active: "active";
595
+ stale: "stale";
596
+ deprecated: "deprecated";
597
+ }>;
598
+ created_at: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
599
+ updated_at: z.ZodPreprocess<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
600
+ source_claim_ids: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.core.$ZodBranded<z.ZodString, "PolicyId", "out">]>>>;
601
+ evidence_summary: z.ZodString;
602
+ }, z.core.$strip>>;
603
+ after: z.ZodArray<z.ZodObject<{
604
+ name: z.ZodString;
605
+ id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
606
+ statement: z.ZodString;
607
+ scope: z.ZodString;
608
+ confidence: z.ZodEnum<{
609
+ high: "high";
610
+ medium: "medium";
611
+ low: "low";
612
+ }>;
613
+ status: z.ZodEnum<{
614
+ active: "active";
615
+ stale: "stale";
616
+ deprecated: "deprecated";
617
+ }>;
618
+ evidence_summary: z.ZodString;
619
+ source_claim_ids: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.core.$ZodBranded<z.ZodString, "PolicyId", "out">]>>>;
620
+ }, z.core.$strict>>;
621
+ changes: z.ZodArray<z.ZodObject<{
622
+ id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
623
+ action: z.ZodEnum<{
624
+ keep: "keep";
625
+ update: "update";
626
+ deprecate: "deprecate";
627
+ }>;
628
+ changes: z.ZodDefault<z.ZodObject<{
629
+ name: z.ZodOptional<z.ZodString>;
630
+ statement: z.ZodOptional<z.ZodString>;
631
+ scope: z.ZodOptional<z.ZodString>;
632
+ confidence: z.ZodOptional<z.ZodEnum<{
633
+ high: "high";
634
+ medium: "medium";
635
+ low: "low";
636
+ }>>;
637
+ status: z.ZodOptional<z.ZodEnum<{
638
+ active: "active";
639
+ stale: "stale";
640
+ deprecated: "deprecated";
641
+ }>>;
642
+ source_claim_ids: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.core.$ZodBranded<z.ZodString, "PolicyId", "out">]>>>;
643
+ evidence_summary: z.ZodOptional<z.ZodString>;
644
+ }, z.core.$strict>>;
645
+ reason: z.ZodOptional<z.ZodString>;
646
+ }, z.core.$strict>>;
647
+ coverage: z.ZodArray<z.ZodObject<{
648
+ input_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
649
+ output_ids: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ClaimId", "out">>;
650
+ note: z.ZodString;
651
+ }, z.core.$strict>>;
652
+ change_basis: z.ZodArray<z.ZodObject<{
653
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
654
+ removed_or_changed: z.ZodString;
655
+ added: z.ZodString;
656
+ justification: z.ZodString;
657
+ evidence_ids: z.ZodArray<z.ZodString>;
658
+ }, z.core.$strict>>;
659
+ unversioned_evidence_omitted: z.ZodDefault<z.ZodArray<z.ZodString>>;
660
+ evidence: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
661
+ }, z.core.$strict>;
662
+ }, z.core.$strict>;
663
+ review: z.ZodObject<{
664
+ group_id: z.ZodString;
665
+ validation_id: z.ZodString;
666
+ preservation: z.ZodArray<z.ZodObject<{
667
+ before: z.ZodObject<{
668
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
669
+ field: z.ZodEnum<{
670
+ name: "name";
671
+ statement: "statement";
672
+ scope: "scope";
673
+ evidence_summary: "evidence_summary";
674
+ }>;
675
+ quote: z.ZodString;
676
+ }, z.core.$strict>;
677
+ after: z.ZodArray<z.ZodObject<{
678
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
679
+ field: z.ZodEnum<{
680
+ name: "name";
681
+ statement: "statement";
682
+ scope: "scope";
683
+ evidence_summary: "evidence_summary";
684
+ }>;
685
+ quote: z.ZodString;
686
+ }, z.core.$strict>>;
687
+ disposition: z.ZodEnum<{
688
+ preserved: "preserved";
689
+ episodic: "episodic";
690
+ corrected: "corrected";
691
+ }>;
692
+ reason: z.ZodString;
693
+ evidence: z.ZodArray<z.ZodObject<{
694
+ evidence_id: z.ZodString;
695
+ quote: z.ZodString;
696
+ }, z.core.$strict>>;
697
+ }, z.core.$strict>>;
698
+ support: z.ZodArray<z.ZodObject<{
699
+ after: z.ZodObject<{
700
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
701
+ field: z.ZodEnum<{
702
+ name: "name";
703
+ statement: "statement";
704
+ scope: "scope";
705
+ evidence_summary: "evidence_summary";
706
+ }>;
707
+ quote: z.ZodString;
708
+ }, z.core.$strict>;
709
+ before: z.ZodArray<z.ZodObject<{
710
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
711
+ field: z.ZodEnum<{
712
+ name: "name";
713
+ statement: "statement";
714
+ scope: "scope";
715
+ evidence_summary: "evidence_summary";
716
+ }>;
717
+ quote: z.ZodString;
718
+ }, z.core.$strict>>;
719
+ evidence: z.ZodArray<z.ZodObject<{
720
+ evidence_id: z.ZodString;
721
+ quote: z.ZodString;
722
+ }, z.core.$strict>>;
723
+ reason: z.ZodString;
724
+ }, z.core.$strict>>;
725
+ scope_and_certainty: z.ZodString;
726
+ }, z.core.$strict>;
727
+ }, z.core.$strict>;
728
+ export declare const ReviewResponseSchema: z.ZodObject<{
729
+ decision: z.ZodEnum<{
730
+ keep: "keep";
731
+ apply: "apply";
732
+ repair: "repair";
733
+ }>;
734
+ reason: z.ZodString;
735
+ reason_kind: z.ZodEnum<{
736
+ insufficient_evidence: "insufficient_evidence";
737
+ useful_knowledge: "useful_knowledge";
738
+ uncertain_preservation: "uncertain_preservation";
739
+ no_consolidation_benefit: "no_consolidation_benefit";
740
+ external_change: "external_change";
741
+ }>;
742
+ semantic: z.ZodNullable<z.ZodObject<{
743
+ claims: z.ZodArray<z.ZodObject<{
744
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
745
+ final_name: z.ZodDefault<z.ZodString>;
746
+ name_reason: z.ZodDefault<z.ZodString>;
747
+ information_preserved: z.ZodString;
748
+ removal_or_correction: z.ZodString;
749
+ factual_correction: z.ZodBoolean;
750
+ output_ids: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ClaimId", "out">>;
751
+ evidence_ids: z.ZodArray<z.ZodString>;
752
+ }, z.core.$strict>>;
753
+ scope_and_certainty: z.ZodString;
754
+ }, z.core.$strict>>;
755
+ self_review: z.ZodNullable<z.ZodObject<{
756
+ group_id: z.ZodString;
757
+ validation_id: z.ZodString;
758
+ preservation: z.ZodArray<z.ZodObject<{
759
+ before: z.ZodObject<{
760
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
761
+ field: z.ZodEnum<{
762
+ name: "name";
763
+ statement: "statement";
764
+ scope: "scope";
765
+ evidence_summary: "evidence_summary";
766
+ }>;
767
+ quote: z.ZodString;
768
+ }, z.core.$strict>;
769
+ after: z.ZodArray<z.ZodObject<{
770
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
771
+ field: z.ZodEnum<{
772
+ name: "name";
773
+ statement: "statement";
774
+ scope: "scope";
775
+ evidence_summary: "evidence_summary";
776
+ }>;
777
+ quote: z.ZodString;
778
+ }, z.core.$strict>>;
779
+ disposition: z.ZodEnum<{
780
+ preserved: "preserved";
781
+ episodic: "episodic";
782
+ corrected: "corrected";
783
+ }>;
784
+ reason: z.ZodString;
785
+ evidence: z.ZodArray<z.ZodObject<{
786
+ evidence_id: z.ZodString;
787
+ quote: z.ZodString;
788
+ }, z.core.$strict>>;
789
+ }, z.core.$strict>>;
790
+ support: z.ZodArray<z.ZodObject<{
791
+ after: z.ZodObject<{
792
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
793
+ field: z.ZodEnum<{
794
+ name: "name";
795
+ statement: "statement";
796
+ scope: "scope";
797
+ evidence_summary: "evidence_summary";
798
+ }>;
799
+ quote: z.ZodString;
800
+ }, z.core.$strict>;
801
+ before: z.ZodArray<z.ZodObject<{
802
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
803
+ field: z.ZodEnum<{
804
+ name: "name";
805
+ statement: "statement";
806
+ scope: "scope";
807
+ evidence_summary: "evidence_summary";
808
+ }>;
809
+ quote: z.ZodString;
810
+ }, z.core.$strict>>;
811
+ evidence: z.ZodArray<z.ZodObject<{
812
+ evidence_id: z.ZodString;
813
+ quote: z.ZodString;
814
+ }, z.core.$strict>>;
815
+ reason: z.ZodString;
816
+ }, z.core.$strict>>;
817
+ scope_and_certainty: z.ZodString;
818
+ }, z.core.$strict>>;
819
+ }, z.core.$strict>;
820
+ export declare const PreparedGroupSchema: z.ZodObject<{
821
+ before: z.ZodArray<z.ZodObject<{
822
+ id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
823
+ name: z.ZodString;
824
+ statement: z.ZodString;
825
+ scope: z.ZodString;
826
+ holder: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
827
+ confidence: z.ZodEnum<{
828
+ high: "high";
829
+ medium: "medium";
830
+ low: "low";
831
+ }>;
832
+ status: z.ZodEnum<{
833
+ active: "active";
834
+ stale: "stale";
835
+ deprecated: "deprecated";
836
+ }>;
837
+ created_at: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
838
+ updated_at: z.ZodPreprocess<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
839
+ source_claim_ids: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.core.$ZodBranded<z.ZodString, "PolicyId", "out">]>>>;
840
+ evidence_summary: z.ZodString;
841
+ }, z.core.$strip>>;
842
+ after: z.ZodArray<z.ZodObject<{
843
+ id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
844
+ name: z.ZodString;
845
+ statement: z.ZodString;
846
+ scope: z.ZodString;
847
+ holder: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
848
+ confidence: z.ZodEnum<{
849
+ high: "high";
850
+ medium: "medium";
851
+ low: "low";
852
+ }>;
853
+ status: z.ZodEnum<{
854
+ active: "active";
855
+ stale: "stale";
856
+ deprecated: "deprecated";
857
+ }>;
858
+ created_at: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
859
+ updated_at: z.ZodPreprocess<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
860
+ source_claim_ids: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.core.$ZodBranded<z.ZodString, "PolicyId", "out">]>>>;
861
+ evidence_summary: z.ZodString;
862
+ }, z.core.$strip>>;
863
+ completed: z.ZodDefault<z.ZodBoolean>;
864
+ skipped: z.ZodDefault<z.ZodBoolean>;
865
+ }, z.core.$strip>;
866
+ export declare const CheckpointSchema: z.ZodObject<{
867
+ team_authorized: z.ZodOptional<z.ZodBoolean>;
868
+ snapshot_at: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
869
+ input_versions: z.ZodRecord<z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.ZodString>;
870
+ coverage: z.ZodJSONSchema;
871
+ plan: z.ZodObject<{
872
+ review: z.ZodObject<{
873
+ quality: z.ZodString;
874
+ evidence: z.ZodString;
875
+ consolidation: z.ZodString;
876
+ }, z.core.$strict>;
877
+ groups: z.ZodArray<z.ZodObject<{
878
+ kind: z.ZodEnum<{
879
+ quality: "quality";
880
+ evidence: "evidence";
881
+ consolidation: "consolidation";
882
+ }>;
883
+ reason: z.ZodString;
884
+ evidence_ids: z.ZodArray<z.ZodString>;
885
+ coverage: z.ZodArray<z.ZodObject<{
886
+ input_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
887
+ output_ids: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ClaimId", "out">>;
888
+ note: z.ZodString;
889
+ }, z.core.$strict>>;
890
+ change_basis: z.ZodDefault<z.ZodArray<z.ZodObject<{
891
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
892
+ removed_or_changed: z.ZodString;
893
+ added: z.ZodString;
894
+ justification: z.ZodString;
895
+ evidence_ids: z.ZodArray<z.ZodString>;
896
+ }, z.core.$strict>>>;
897
+ updates: z.ZodArray<z.ZodObject<{
898
+ name: z.ZodString;
899
+ id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
900
+ statement: z.ZodString;
901
+ scope: z.ZodString;
902
+ confidence: z.ZodEnum<{
903
+ high: "high";
904
+ medium: "medium";
905
+ low: "low";
906
+ }>;
907
+ status: z.ZodEnum<{
908
+ active: "active";
909
+ stale: "stale";
910
+ deprecated: "deprecated";
911
+ }>;
912
+ evidence_summary: z.ZodString;
913
+ source_claim_ids: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.core.$ZodBranded<z.ZodString, "PolicyId", "out">]>>>;
914
+ }, z.core.$strict>>;
915
+ }, z.core.$strict>>;
916
+ }, z.core.$strip>;
917
+ receipts: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
918
+ exploration_receipts: z.ZodOptional<z.ZodNumber>;
919
+ groups: z.ZodArray<z.ZodObject<{
920
+ before: z.ZodArray<z.ZodObject<{
921
+ id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
922
+ name: z.ZodString;
923
+ statement: z.ZodString;
924
+ scope: z.ZodString;
925
+ holder: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
926
+ confidence: z.ZodEnum<{
927
+ high: "high";
928
+ medium: "medium";
929
+ low: "low";
930
+ }>;
931
+ status: z.ZodEnum<{
932
+ active: "active";
933
+ stale: "stale";
934
+ deprecated: "deprecated";
935
+ }>;
936
+ created_at: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
937
+ updated_at: z.ZodPreprocess<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
938
+ source_claim_ids: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.core.$ZodBranded<z.ZodString, "PolicyId", "out">]>>>;
939
+ evidence_summary: z.ZodString;
940
+ }, z.core.$strip>>;
941
+ after: z.ZodArray<z.ZodObject<{
942
+ id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
943
+ name: z.ZodString;
944
+ statement: z.ZodString;
945
+ scope: z.ZodString;
946
+ holder: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
947
+ confidence: z.ZodEnum<{
948
+ high: "high";
949
+ medium: "medium";
950
+ low: "low";
951
+ }>;
952
+ status: z.ZodEnum<{
953
+ active: "active";
954
+ stale: "stale";
955
+ deprecated: "deprecated";
956
+ }>;
957
+ created_at: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
958
+ updated_at: z.ZodPreprocess<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
959
+ source_claim_ids: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.core.$ZodBranded<z.ZodString, "PolicyId", "out">]>>>;
960
+ evidence_summary: z.ZodString;
961
+ }, z.core.$strip>>;
962
+ completed: z.ZodDefault<z.ZodBoolean>;
963
+ skipped: z.ZodDefault<z.ZodBoolean>;
964
+ }, z.core.$strip>>;
965
+ safety_reviews: z.ZodDefault<z.ZodArray<z.ZodJSONSchema>>;
966
+ self_reviews: z.ZodDefault<z.ZodArray<z.ZodObject<{
967
+ validation: z.ZodObject<{
968
+ validation_id: z.ZodString;
969
+ input: z.ZodObject<{
970
+ group_id: z.ZodString;
971
+ kind: z.ZodEnum<{
972
+ quality: "quality";
973
+ evidence: "evidence";
974
+ consolidation: "consolidation";
975
+ }>;
976
+ reason: z.ZodString;
977
+ before: z.ZodArray<z.ZodObject<{
978
+ id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
979
+ name: z.ZodString;
980
+ statement: z.ZodString;
981
+ scope: z.ZodString;
982
+ holder: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
983
+ confidence: z.ZodEnum<{
984
+ high: "high";
985
+ medium: "medium";
986
+ low: "low";
987
+ }>;
988
+ status: z.ZodEnum<{
989
+ active: "active";
990
+ stale: "stale";
991
+ deprecated: "deprecated";
992
+ }>;
993
+ created_at: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
994
+ updated_at: z.ZodPreprocess<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
995
+ source_claim_ids: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.core.$ZodBranded<z.ZodString, "PolicyId", "out">]>>>;
996
+ evidence_summary: z.ZodString;
997
+ }, z.core.$strip>>;
998
+ after: z.ZodArray<z.ZodObject<{
999
+ name: z.ZodString;
1000
+ id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
1001
+ statement: z.ZodString;
1002
+ scope: z.ZodString;
1003
+ confidence: z.ZodEnum<{
1004
+ high: "high";
1005
+ medium: "medium";
1006
+ low: "low";
1007
+ }>;
1008
+ status: z.ZodEnum<{
1009
+ active: "active";
1010
+ stale: "stale";
1011
+ deprecated: "deprecated";
1012
+ }>;
1013
+ evidence_summary: z.ZodString;
1014
+ source_claim_ids: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.core.$ZodBranded<z.ZodString, "PolicyId", "out">]>>>;
1015
+ }, z.core.$strict>>;
1016
+ changes: z.ZodArray<z.ZodObject<{
1017
+ id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
1018
+ action: z.ZodEnum<{
1019
+ keep: "keep";
1020
+ update: "update";
1021
+ deprecate: "deprecate";
1022
+ }>;
1023
+ changes: z.ZodDefault<z.ZodObject<{
1024
+ name: z.ZodOptional<z.ZodString>;
1025
+ statement: z.ZodOptional<z.ZodString>;
1026
+ scope: z.ZodOptional<z.ZodString>;
1027
+ confidence: z.ZodOptional<z.ZodEnum<{
1028
+ high: "high";
1029
+ medium: "medium";
1030
+ low: "low";
1031
+ }>>;
1032
+ status: z.ZodOptional<z.ZodEnum<{
1033
+ active: "active";
1034
+ stale: "stale";
1035
+ deprecated: "deprecated";
1036
+ }>>;
1037
+ source_claim_ids: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.core.$ZodBranded<z.ZodString, "PolicyId", "out">]>>>;
1038
+ evidence_summary: z.ZodOptional<z.ZodString>;
1039
+ }, z.core.$strict>>;
1040
+ reason: z.ZodOptional<z.ZodString>;
1041
+ }, z.core.$strict>>;
1042
+ coverage: z.ZodArray<z.ZodObject<{
1043
+ input_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
1044
+ output_ids: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ClaimId", "out">>;
1045
+ note: z.ZodString;
1046
+ }, z.core.$strict>>;
1047
+ change_basis: z.ZodArray<z.ZodObject<{
1048
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
1049
+ removed_or_changed: z.ZodString;
1050
+ added: z.ZodString;
1051
+ justification: z.ZodString;
1052
+ evidence_ids: z.ZodArray<z.ZodString>;
1053
+ }, z.core.$strict>>;
1054
+ unversioned_evidence_omitted: z.ZodDefault<z.ZodArray<z.ZodString>>;
1055
+ evidence: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1056
+ }, z.core.$strict>;
1057
+ }, z.core.$strict>;
1058
+ review: z.ZodObject<{
1059
+ group_id: z.ZodString;
1060
+ validation_id: z.ZodString;
1061
+ preservation: z.ZodArray<z.ZodObject<{
1062
+ before: z.ZodObject<{
1063
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
1064
+ field: z.ZodEnum<{
1065
+ name: "name";
1066
+ statement: "statement";
1067
+ scope: "scope";
1068
+ evidence_summary: "evidence_summary";
1069
+ }>;
1070
+ quote: z.ZodString;
1071
+ }, z.core.$strict>;
1072
+ after: z.ZodArray<z.ZodObject<{
1073
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
1074
+ field: z.ZodEnum<{
1075
+ name: "name";
1076
+ statement: "statement";
1077
+ scope: "scope";
1078
+ evidence_summary: "evidence_summary";
1079
+ }>;
1080
+ quote: z.ZodString;
1081
+ }, z.core.$strict>>;
1082
+ disposition: z.ZodEnum<{
1083
+ preserved: "preserved";
1084
+ episodic: "episodic";
1085
+ corrected: "corrected";
1086
+ }>;
1087
+ reason: z.ZodString;
1088
+ evidence: z.ZodArray<z.ZodObject<{
1089
+ evidence_id: z.ZodString;
1090
+ quote: z.ZodString;
1091
+ }, z.core.$strict>>;
1092
+ }, z.core.$strict>>;
1093
+ support: z.ZodArray<z.ZodObject<{
1094
+ after: z.ZodObject<{
1095
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
1096
+ field: z.ZodEnum<{
1097
+ name: "name";
1098
+ statement: "statement";
1099
+ scope: "scope";
1100
+ evidence_summary: "evidence_summary";
1101
+ }>;
1102
+ quote: z.ZodString;
1103
+ }, z.core.$strict>;
1104
+ before: z.ZodArray<z.ZodObject<{
1105
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
1106
+ field: z.ZodEnum<{
1107
+ name: "name";
1108
+ statement: "statement";
1109
+ scope: "scope";
1110
+ evidence_summary: "evidence_summary";
1111
+ }>;
1112
+ quote: z.ZodString;
1113
+ }, z.core.$strict>>;
1114
+ evidence: z.ZodArray<z.ZodObject<{
1115
+ evidence_id: z.ZodString;
1116
+ quote: z.ZodString;
1117
+ }, z.core.$strict>>;
1118
+ reason: z.ZodString;
1119
+ }, z.core.$strict>>;
1120
+ scope_and_certainty: z.ZodString;
1121
+ }, z.core.$strict>;
1122
+ }, z.core.$strict>>>;
1123
+ trace_id: z.core.$ZodBranded<z.ZodString, "TraceId", "out">;
1124
+ applied: z.ZodDefault<z.ZodBoolean>;
1125
+ success_at: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
1126
+ self_versions: z.ZodDefault<z.ZodRecord<z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.ZodString>>;
1127
+ operation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1128
+ job_id: z.ZodString;
1129
+ group_id: z.ZodString;
1130
+ validation_id: z.ZodString;
1131
+ review: z.ZodObject<{
1132
+ claims: z.ZodArray<z.ZodObject<{
1133
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
1134
+ final_name: z.ZodDefault<z.ZodString>;
1135
+ name_reason: z.ZodDefault<z.ZodString>;
1136
+ information_preserved: z.ZodString;
1137
+ removal_or_correction: z.ZodString;
1138
+ factual_correction: z.ZodBoolean;
1139
+ output_ids: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ClaimId", "out">>;
1140
+ evidence_ids: z.ZodArray<z.ZodString>;
1141
+ }, z.core.$strict>>;
1142
+ scope_and_certainty: z.ZodString;
1143
+ }, z.core.$strict>;
1144
+ hard_validation_passed: z.ZodBoolean;
1145
+ }, z.core.$strip>>>;
1146
+ }, z.core.$strip>;
1147
+ export declare const DreamStateSchema: z.ZodObject<{
1148
+ last_success_at: z.ZodDefault<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
1149
+ last_input_snapshot_at: z.ZodDefault<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
1150
+ known_versions: z.ZodDefault<z.ZodRecord<z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.ZodString>>;
1151
+ }, z.core.$strip>;
1152
+ export declare const OriginSchema: z.ZodObject<{
1153
+ snapshot_at: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1154
+ claims: z.ZodArray<z.ZodObject<{
1155
+ id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
1156
+ name: z.ZodString;
1157
+ statement: z.ZodString;
1158
+ scope: z.ZodString;
1159
+ holder: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
1160
+ confidence: z.ZodEnum<{
1161
+ high: "high";
1162
+ medium: "medium";
1163
+ low: "low";
1164
+ }>;
1165
+ status: z.ZodEnum<{
1166
+ active: "active";
1167
+ stale: "stale";
1168
+ deprecated: "deprecated";
1169
+ }>;
1170
+ created_at: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1171
+ updated_at: z.ZodPreprocess<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
1172
+ source_claim_ids: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.core.$ZodBranded<z.ZodString, "PolicyId", "out">]>>>;
1173
+ evidence_summary: z.ZodString;
1174
+ }, z.core.$strip>>;
1175
+ coverage: z.ZodJSONSchema;
1176
+ workspace_root: z.ZodOptional<z.ZodString>;
1177
+ }, z.core.$strict>;
1178
+ export declare const ProgressSchema: z.ZodObject<{
1179
+ schemaVersion: z.ZodLiteral<1>;
1180
+ discovery: z.ZodObject<{
1181
+ review: z.ZodObject<{
1182
+ quality: z.ZodString;
1183
+ evidence: z.ZodString;
1184
+ consolidation: z.ZodString;
1185
+ }, z.core.$strict>;
1186
+ candidates: z.ZodArray<z.ZodObject<{
1187
+ group_id: z.ZodString;
1188
+ claim_ids: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ClaimId", "out">>;
1189
+ kind: z.ZodEnum<{
1190
+ quality: "quality";
1191
+ evidence: "evidence";
1192
+ consolidation: "consolidation";
1193
+ }>;
1194
+ reason: z.ZodString;
1195
+ }, z.core.$strict>>;
1196
+ sync_candidates: z.ZodArray<z.ZodObject<{
1197
+ source_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
1198
+ carrier_ids: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ClaimId", "out">>;
1199
+ reason: z.ZodString;
1200
+ }, z.core.$strict>>;
1201
+ }, z.core.$strict>;
1202
+ entries: z.ZodArray<z.ZodObject<{
1203
+ candidate: z.ZodObject<{
1204
+ group_id: z.ZodString;
1205
+ claim_ids: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ClaimId", "out">>;
1206
+ kind: z.ZodEnum<{
1207
+ quality: "quality";
1208
+ evidence: "evidence";
1209
+ consolidation: "consolidation";
1210
+ }>;
1211
+ reason: z.ZodString;
1212
+ }, z.core.$strict>;
1213
+ status: z.ZodEnum<{
1214
+ skipped: "skipped";
1215
+ pending: "pending";
1216
+ executed: "executed";
1217
+ kept: "kept";
1218
+ }>;
1219
+ reason: z.ZodString;
1220
+ draft: z.ZodNullable<z.ZodObject<{
1221
+ kind: z.ZodEnum<{
1222
+ quality: "quality";
1223
+ evidence: "evidence";
1224
+ consolidation: "consolidation";
1225
+ }>;
1226
+ reason: z.ZodString;
1227
+ evidence_ids: z.ZodArray<z.ZodString>;
1228
+ coverage: z.ZodArray<z.ZodObject<{
1229
+ input_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
1230
+ output_ids: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ClaimId", "out">>;
1231
+ note: z.ZodString;
1232
+ }, z.core.$strict>>;
1233
+ change_basis: z.ZodDefault<z.ZodArray<z.ZodObject<{
1234
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
1235
+ removed_or_changed: z.ZodString;
1236
+ added: z.ZodString;
1237
+ justification: z.ZodString;
1238
+ evidence_ids: z.ZodArray<z.ZodString>;
1239
+ }, z.core.$strict>>>;
1240
+ updates: z.ZodArray<z.ZodObject<{
1241
+ name: z.ZodString;
1242
+ id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
1243
+ statement: z.ZodString;
1244
+ scope: z.ZodString;
1245
+ confidence: z.ZodEnum<{
1246
+ high: "high";
1247
+ medium: "medium";
1248
+ low: "low";
1249
+ }>;
1250
+ status: z.ZodEnum<{
1251
+ active: "active";
1252
+ stale: "stale";
1253
+ deprecated: "deprecated";
1254
+ }>;
1255
+ evidence_summary: z.ZodString;
1256
+ source_claim_ids: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.core.$ZodBranded<z.ZodString, "PolicyId", "out">]>>>;
1257
+ }, z.core.$strict>>;
1258
+ }, z.core.$strict>>;
1259
+ validation: z.ZodNullable<z.ZodObject<{
1260
+ validation_id: z.ZodString;
1261
+ input: z.ZodObject<{
1262
+ group_id: z.ZodString;
1263
+ kind: z.ZodEnum<{
1264
+ quality: "quality";
1265
+ evidence: "evidence";
1266
+ consolidation: "consolidation";
1267
+ }>;
1268
+ reason: z.ZodString;
1269
+ before: z.ZodArray<z.ZodObject<{
1270
+ id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
1271
+ name: z.ZodString;
1272
+ statement: z.ZodString;
1273
+ scope: z.ZodString;
1274
+ holder: z.core.$ZodBranded<z.ZodString, "AgentId", "out">;
1275
+ confidence: z.ZodEnum<{
1276
+ high: "high";
1277
+ medium: "medium";
1278
+ low: "low";
1279
+ }>;
1280
+ status: z.ZodEnum<{
1281
+ active: "active";
1282
+ stale: "stale";
1283
+ deprecated: "deprecated";
1284
+ }>;
1285
+ created_at: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1286
+ updated_at: z.ZodPreprocess<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
1287
+ source_claim_ids: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.core.$ZodBranded<z.ZodString, "PolicyId", "out">]>>>;
1288
+ evidence_summary: z.ZodString;
1289
+ }, z.core.$strip>>;
1290
+ after: z.ZodArray<z.ZodObject<{
1291
+ name: z.ZodString;
1292
+ id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
1293
+ statement: z.ZodString;
1294
+ scope: z.ZodString;
1295
+ confidence: z.ZodEnum<{
1296
+ high: "high";
1297
+ medium: "medium";
1298
+ low: "low";
1299
+ }>;
1300
+ status: z.ZodEnum<{
1301
+ active: "active";
1302
+ stale: "stale";
1303
+ deprecated: "deprecated";
1304
+ }>;
1305
+ evidence_summary: z.ZodString;
1306
+ source_claim_ids: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.core.$ZodBranded<z.ZodString, "PolicyId", "out">]>>>;
1307
+ }, z.core.$strict>>;
1308
+ changes: z.ZodArray<z.ZodObject<{
1309
+ id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
1310
+ action: z.ZodEnum<{
1311
+ keep: "keep";
1312
+ update: "update";
1313
+ deprecate: "deprecate";
1314
+ }>;
1315
+ changes: z.ZodDefault<z.ZodObject<{
1316
+ name: z.ZodOptional<z.ZodString>;
1317
+ statement: z.ZodOptional<z.ZodString>;
1318
+ scope: z.ZodOptional<z.ZodString>;
1319
+ confidence: z.ZodOptional<z.ZodEnum<{
1320
+ high: "high";
1321
+ medium: "medium";
1322
+ low: "low";
1323
+ }>>;
1324
+ status: z.ZodOptional<z.ZodEnum<{
1325
+ active: "active";
1326
+ stale: "stale";
1327
+ deprecated: "deprecated";
1328
+ }>>;
1329
+ source_claim_ids: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "ClaimId", "out">, z.core.$ZodBranded<z.ZodString, "PolicyId", "out">]>>>;
1330
+ evidence_summary: z.ZodOptional<z.ZodString>;
1331
+ }, z.core.$strict>>;
1332
+ reason: z.ZodOptional<z.ZodString>;
1333
+ }, z.core.$strict>>;
1334
+ coverage: z.ZodArray<z.ZodObject<{
1335
+ input_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
1336
+ output_ids: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ClaimId", "out">>;
1337
+ note: z.ZodString;
1338
+ }, z.core.$strict>>;
1339
+ change_basis: z.ZodArray<z.ZodObject<{
1340
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
1341
+ removed_or_changed: z.ZodString;
1342
+ added: z.ZodString;
1343
+ justification: z.ZodString;
1344
+ evidence_ids: z.ZodArray<z.ZodString>;
1345
+ }, z.core.$strict>>;
1346
+ unversioned_evidence_omitted: z.ZodDefault<z.ZodArray<z.ZodString>>;
1347
+ evidence: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1348
+ }, z.core.$strict>;
1349
+ }, z.core.$strict>>;
1350
+ review: z.ZodNullable<z.ZodObject<{
1351
+ decision: z.ZodEnum<{
1352
+ keep: "keep";
1353
+ apply: "apply";
1354
+ repair: "repair";
1355
+ }>;
1356
+ reason: z.ZodString;
1357
+ reason_kind: z.ZodEnum<{
1358
+ insufficient_evidence: "insufficient_evidence";
1359
+ useful_knowledge: "useful_knowledge";
1360
+ uncertain_preservation: "uncertain_preservation";
1361
+ no_consolidation_benefit: "no_consolidation_benefit";
1362
+ external_change: "external_change";
1363
+ }>;
1364
+ semantic: z.ZodNullable<z.ZodObject<{
1365
+ claims: z.ZodArray<z.ZodObject<{
1366
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
1367
+ final_name: z.ZodDefault<z.ZodString>;
1368
+ name_reason: z.ZodDefault<z.ZodString>;
1369
+ information_preserved: z.ZodString;
1370
+ removal_or_correction: z.ZodString;
1371
+ factual_correction: z.ZodBoolean;
1372
+ output_ids: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ClaimId", "out">>;
1373
+ evidence_ids: z.ZodArray<z.ZodString>;
1374
+ }, z.core.$strict>>;
1375
+ scope_and_certainty: z.ZodString;
1376
+ }, z.core.$strict>>;
1377
+ self_review: z.ZodNullable<z.ZodObject<{
1378
+ group_id: z.ZodString;
1379
+ validation_id: z.ZodString;
1380
+ preservation: z.ZodArray<z.ZodObject<{
1381
+ before: z.ZodObject<{
1382
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
1383
+ field: z.ZodEnum<{
1384
+ name: "name";
1385
+ statement: "statement";
1386
+ scope: "scope";
1387
+ evidence_summary: "evidence_summary";
1388
+ }>;
1389
+ quote: z.ZodString;
1390
+ }, z.core.$strict>;
1391
+ after: z.ZodArray<z.ZodObject<{
1392
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
1393
+ field: z.ZodEnum<{
1394
+ name: "name";
1395
+ statement: "statement";
1396
+ scope: "scope";
1397
+ evidence_summary: "evidence_summary";
1398
+ }>;
1399
+ quote: z.ZodString;
1400
+ }, z.core.$strict>>;
1401
+ disposition: z.ZodEnum<{
1402
+ preserved: "preserved";
1403
+ episodic: "episodic";
1404
+ corrected: "corrected";
1405
+ }>;
1406
+ reason: z.ZodString;
1407
+ evidence: z.ZodArray<z.ZodObject<{
1408
+ evidence_id: z.ZodString;
1409
+ quote: z.ZodString;
1410
+ }, z.core.$strict>>;
1411
+ }, z.core.$strict>>;
1412
+ support: z.ZodArray<z.ZodObject<{
1413
+ after: z.ZodObject<{
1414
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
1415
+ field: z.ZodEnum<{
1416
+ name: "name";
1417
+ statement: "statement";
1418
+ scope: "scope";
1419
+ evidence_summary: "evidence_summary";
1420
+ }>;
1421
+ quote: z.ZodString;
1422
+ }, z.core.$strict>;
1423
+ before: z.ZodArray<z.ZodObject<{
1424
+ claim_id: z.core.$ZodBranded<z.ZodString, "ClaimId", "out">;
1425
+ field: z.ZodEnum<{
1426
+ name: "name";
1427
+ statement: "statement";
1428
+ scope: "scope";
1429
+ evidence_summary: "evidence_summary";
1430
+ }>;
1431
+ quote: z.ZodString;
1432
+ }, z.core.$strict>>;
1433
+ evidence: z.ZodArray<z.ZodObject<{
1434
+ evidence_id: z.ZodString;
1435
+ quote: z.ZodString;
1436
+ }, z.core.$strict>>;
1437
+ reason: z.ZodString;
1438
+ }, z.core.$strict>>;
1439
+ scope_and_certainty: z.ZodString;
1440
+ }, z.core.$strict>>;
1441
+ }, z.core.$strict>>;
1442
+ }, z.core.$strict>>;
1443
+ syncCompleted: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ClaimId", "out">>;
1444
+ finished: z.ZodBoolean;
1445
+ finish_reminder_sent: z.ZodDefault<z.ZodBoolean>;
1446
+ proposal_attempted: z.ZodDefault<z.ZodBoolean>;
1447
+ exploration_receipts: z.ZodDefault<z.ZodNumber>;
1448
+ summary: z.ZodNullable<z.ZodObject<{
1449
+ checked: z.ZodString;
1450
+ findings: z.ZodString;
1451
+ uncertainties: z.ZodString;
1452
+ next_steps: z.ZodString;
1453
+ }, z.core.$strict>>;
1454
+ compactedThrough: z.ZodDefault<z.ZodNumber>;
1455
+ autonomy: z.ZodOptional<z.ZodObject<{
1456
+ steps: z.ZodNumber;
1457
+ epoch: z.ZodNumber;
1458
+ limit: z.ZodNumber;
1459
+ read_ids: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ClaimId", "out">>;
1460
+ wrap_up: z.ZodOptional<z.ZodObject<{
1461
+ steps: z.ZodNumber;
1462
+ limit: z.ZodNumber;
1463
+ }, z.core.$strict>>;
1464
+ }, z.core.$strict>>;
1465
+ }, z.core.$strict>;
1466
+ export type Group = z.infer<typeof GroupSchema>;
1467
+ export type DraftGroup = z.infer<typeof DraftGroupSchema>;
1468
+ export type Candidate = z.infer<typeof CandidateSchema>;
1469
+ export type Validation = z.infer<typeof ValidationSchema>;
1470
+ export type SemanticReview = z.infer<typeof SemanticReviewSchema>;
1471
+ export type SelfReview = z.infer<typeof SelfReviewSchema>;
1472
+ export type Checkpoint = z.infer<typeof CheckpointSchema>;
1473
+ export type Progress = z.infer<typeof ProgressSchema>;
1474
+ export type PreparedGroup = z.infer<typeof PreparedGroupSchema>;
1475
+ export declare function requireDream(condition: boolean, message: string): asserts condition;