@neuraloom/contracts 0.0.0-stage → 0.1.23

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 (1141) hide show
  1. package/dist/analytics/community-movie/attribution.schema.d.ts +264 -0
  2. package/dist/analytics/community-movie/attribution.schema.js +57 -0
  3. package/dist/analytics/community-movie/consent.schema.d.ts +15 -0
  4. package/dist/analytics/community-movie/consent.schema.js +16 -0
  5. package/dist/analytics/community-movie/event-names.d.ts +11 -0
  6. package/dist/analytics/community-movie/event-names.js +113 -0
  7. package/dist/analytics/community-movie/event-params.schema.d.ts +622 -0
  8. package/dist/analytics/community-movie/event-params.schema.js +416 -0
  9. package/dist/analytics/community-movie/event-registry.d.ts +11 -0
  10. package/dist/analytics/community-movie/event-registry.js +486 -0
  11. package/dist/analytics/community-movie/index.d.ts +6 -0
  12. package/dist/analytics/community-movie/index.js +22 -0
  13. package/dist/analytics/community-movie/telemetry-record.schema.d.ts +157 -0
  14. package/dist/analytics/community-movie/telemetry-record.schema.js +26 -0
  15. package/dist/analytics/index.d.ts +1 -0
  16. package/dist/analytics/index.js +17 -0
  17. package/dist/community/actor-builder-options.d.ts +43 -0
  18. package/dist/community/actor-builder-options.js +197 -0
  19. package/dist/constants/AGENT_MCP_PERMISSIONS.d.ts +26 -0
  20. package/dist/constants/AGENT_MCP_PERMISSIONS.js +122 -0
  21. package/dist/constants/AGENT_ROLES.d.ts +37 -0
  22. package/dist/constants/AGENT_ROLES.js +199 -0
  23. package/dist/constants/audiobook-embed-placeholder-url.d.ts +5 -0
  24. package/dist/constants/audiobook-embed-placeholder-url.js +8 -0
  25. package/dist/constants/ci-config.d.ts +4 -0
  26. package/dist/constants/ci-config.js +7 -0
  27. package/dist/constants/kg-implement-stable-keys.d.ts +9 -0
  28. package/dist/constants/kg-implement-stable-keys.js +26 -0
  29. package/dist/constants/knowledge-edge-relation.d.ts +49 -0
  30. package/dist/constants/knowledge-edge-relation.js +42 -0
  31. package/dist/constants/knowledge-node.d.ts +21 -0
  32. package/dist/constants/knowledge-node.js +20 -0
  33. package/dist/constants/mission-control-nav.d.ts +13 -0
  34. package/dist/constants/mission-control-nav.js +75 -0
  35. package/dist/constants/model-mode-preset-defaults.d.ts +5 -0
  36. package/dist/constants/model-mode-preset-defaults.js +65 -0
  37. package/dist/constants/model-policies.d.ts +37 -0
  38. package/dist/constants/model-policies.js +656 -0
  39. package/dist/constants/navConfig.d.ts +43 -0
  40. package/dist/constants/navConfig.js +132 -0
  41. package/dist/constants/orchestration-execution.d.ts +5 -0
  42. package/dist/constants/orchestration-execution.js +10 -0
  43. package/dist/constants/payload-schema-map.d.ts +22 -0
  44. package/dist/constants/payload-schema-map.js +375 -0
  45. package/dist/constants/phase-guardian.d.ts +17 -0
  46. package/dist/constants/phase-guardian.js +43 -0
  47. package/dist/constants/pipeline-step-stages.d.ts +73 -0
  48. package/dist/constants/pipeline-step-stages.js +342 -0
  49. package/dist/constants/project-control-nav.d.ts +29 -0
  50. package/dist/constants/project-control-nav.js +65 -0
  51. package/dist/constants/software-index-targets.d.ts +17 -0
  52. package/dist/constants/software-index-targets.js +46 -0
  53. package/dist/constants/step-tools.d.ts +32 -0
  54. package/dist/constants/step-tools.js +53 -0
  55. package/dist/constants/workflow-agent-defaults.d.ts +4 -0
  56. package/dist/constants/workflow-agent-defaults.js +15 -0
  57. package/dist/constants/workflow-api-errors.d.ts +5 -0
  58. package/dist/constants/workflow-api-errors.js +8 -0
  59. package/dist/constants/workflow-phase-groups.d.ts +34 -0
  60. package/dist/constants/workflow-phase-groups.js +46 -0
  61. package/dist/constants/workflow-registry.d.ts +77 -0
  62. package/dist/constants/workflow-registry.js +421 -0
  63. package/dist/constants/workflow-semantics.d.ts +19 -0
  64. package/dist/constants/workflow-semantics.js +432 -0
  65. package/dist/constants/workflow-vocabulary.d.ts +23 -0
  66. package/dist/constants/workflow-vocabulary.js +227 -0
  67. package/dist/constants/workflow.d.ts +7 -0
  68. package/dist/constants/workflow.js +23 -0
  69. package/dist/data/model-registry.d.ts +36 -0
  70. package/dist/data/model-registry.js +59 -0
  71. package/dist/index.d.ts +47 -0
  72. package/dist/index.js +90 -0
  73. package/dist/integration/index.d.ts +8 -0
  74. package/dist/integration/index.js +24 -0
  75. package/dist/integration/schema-hash-manifest.json +26 -0
  76. package/dist/lib/graph-edge-resolve.d.ts +3 -0
  77. package/dist/lib/graph-edge-resolve.js +20 -0
  78. package/dist/lib/graph-id.d.ts +16 -0
  79. package/dist/lib/graph-id.js +169 -0
  80. package/dist/lib/step-navigation.d.ts +35 -0
  81. package/dist/lib/step-navigation.js +218 -0
  82. package/dist/marketing/acquisition-landing-matrix.d.ts +46 -0
  83. package/dist/marketing/acquisition-landing-matrix.js +64 -0
  84. package/dist/marketing/acquisition-recommendation.schema.d.ts +284 -0
  85. package/dist/marketing/acquisition-recommendation.schema.js +84 -0
  86. package/dist/marketing/ads-account.schema.d.ts +46 -0
  87. package/dist/marketing/ads-account.schema.js +15 -0
  88. package/dist/marketing/ads-ad-group.schema.d.ts +52 -0
  89. package/dist/marketing/ads-ad-group.schema.js +17 -0
  90. package/dist/marketing/ads-campaign.schema.d.ts +59 -0
  91. package/dist/marketing/ads-campaign.schema.js +18 -0
  92. package/dist/marketing/ads-conversion-action.schema.d.ts +60 -0
  93. package/dist/marketing/ads-conversion-action.schema.js +27 -0
  94. package/dist/marketing/ads-keyword.schema.d.ts +59 -0
  95. package/dist/marketing/ads-keyword.schema.js +19 -0
  96. package/dist/marketing/ads-metrics-daily.schema.d.ts +95 -0
  97. package/dist/marketing/ads-metrics-daily.schema.js +24 -0
  98. package/dist/marketing/ads-overview.schema.d.ts +479 -0
  99. package/dist/marketing/ads-overview.schema.js +44 -0
  100. package/dist/marketing/ads-query.schema.d.ts +33 -0
  101. package/dist/marketing/ads-query.schema.js +13 -0
  102. package/dist/marketing/ads-search-term.schema.d.ts +70 -0
  103. package/dist/marketing/ads-search-term.schema.js +19 -0
  104. package/dist/marketing/campaign-asset.schema.d.ts +51 -0
  105. package/dist/marketing/campaign-asset.schema.js +39 -0
  106. package/dist/marketing/community-movie-ads-free-signup-campaign.d.ts +23 -0
  107. package/dist/marketing/community-movie-ads-free-signup-campaign.js +29 -0
  108. package/dist/marketing/community-movie-campaign-matrix.d.ts +47 -0
  109. package/dist/marketing/community-movie-campaign-matrix.js +265 -0
  110. package/dist/marketing/community-movie-google-ads.constants.d.ts +49 -0
  111. package/dist/marketing/community-movie-google-ads.constants.js +59 -0
  112. package/dist/marketing/config.schema.d.ts +32 -0
  113. package/dist/marketing/config.schema.js +31 -0
  114. package/dist/marketing/date-range.schema.d.ts +12 -0
  115. package/dist/marketing/date-range.schema.js +10 -0
  116. package/dist/marketing/entities/index.d.ts +6 -0
  117. package/dist/marketing/entities/index.js +11 -0
  118. package/dist/marketing/ga4-conversion.schema.d.ts +87 -0
  119. package/dist/marketing/ga4-conversion.schema.js +22 -0
  120. package/dist/marketing/ga4-event.schema.d.ts +98 -0
  121. package/dist/marketing/ga4-event.schema.js +23 -0
  122. package/dist/marketing/ga4-funnel.schema.d.ts +90 -0
  123. package/dist/marketing/ga4-funnel.schema.js +23 -0
  124. package/dist/marketing/ga4-landing-page.schema.d.ts +131 -0
  125. package/dist/marketing/ga4-landing-page.schema.js +25 -0
  126. package/dist/marketing/ga4-overview.schema.d.ts +478 -0
  127. package/dist/marketing/ga4-overview.schema.js +31 -0
  128. package/dist/marketing/ga4-query.schema.d.ts +19 -0
  129. package/dist/marketing/ga4-query.schema.js +27 -0
  130. package/dist/marketing/ga4-retention.schema.d.ts +79 -0
  131. package/dist/marketing/ga4-retention.schema.js +21 -0
  132. package/dist/marketing/ga4-traffic.schema.d.ts +154 -0
  133. package/dist/marketing/ga4-traffic.schema.js +27 -0
  134. package/dist/marketing/gsc-organic-overview.schema.d.ts +338 -0
  135. package/dist/marketing/gsc-organic-overview.schema.js +28 -0
  136. package/dist/marketing/gsc-organic-query.schema.d.ts +121 -0
  137. package/dist/marketing/gsc-organic-query.schema.js +24 -0
  138. package/dist/marketing/gsc-page-performance.schema.d.ts +121 -0
  139. package/dist/marketing/gsc-page-performance.schema.js +24 -0
  140. package/dist/marketing/gsc-query.schema.d.ts +19 -0
  141. package/dist/marketing/gsc-query.schema.js +27 -0
  142. package/dist/marketing/index.d.ts +47 -0
  143. package/dist/marketing/index.js +63 -0
  144. package/dist/marketing/marketing-attribution-summary.schema.d.ts +165 -0
  145. package/dist/marketing/marketing-attribution-summary.schema.js +26 -0
  146. package/dist/marketing/marketing-challenge-performance.schema.d.ts +139 -0
  147. package/dist/marketing/marketing-challenge-performance.schema.js +28 -0
  148. package/dist/marketing/marketing-conversion-enqueue.schema.d.ts +88 -0
  149. package/dist/marketing/marketing-conversion-enqueue.schema.js +34 -0
  150. package/dist/marketing/marketing-executive-overview.schema.d.ts +1865 -0
  151. package/dist/marketing/marketing-executive-overview.schema.js +39 -0
  152. package/dist/marketing/marketing-health.schema.d.ts +366 -0
  153. package/dist/marketing/marketing-health.schema.js +65 -0
  154. package/dist/marketing/marketing-keyword-opportunity.schema.d.ts +158 -0
  155. package/dist/marketing/marketing-keyword-opportunity.schema.js +34 -0
  156. package/dist/marketing/marketing-landing-page-intelligence.schema.d.ts +159 -0
  157. package/dist/marketing/marketing-landing-page-intelligence.schema.js +30 -0
  158. package/dist/marketing/marketing-readiness.schema.d.ts +506 -0
  159. package/dist/marketing/marketing-readiness.schema.js +83 -0
  160. package/dist/marketing/marketing-test-traffic.d.ts +6 -0
  161. package/dist/marketing/marketing-test-traffic.js +28 -0
  162. package/dist/marketing/marketing-visibility-overview.schema.d.ts +949 -0
  163. package/dist/marketing/marketing-visibility-overview.schema.js +42 -0
  164. package/dist/marketing/marketing-world-catalog.d.ts +10 -0
  165. package/dist/marketing/marketing-world-catalog.js +16 -0
  166. package/dist/marketing/marketing-world-performance.schema.d.ts +179 -0
  167. package/dist/marketing/marketing-world-performance.schema.js +32 -0
  168. package/dist/marketing/routes.d.ts +77 -0
  169. package/dist/marketing/routes.js +79 -0
  170. package/dist/marketing/search-negative-keywords.d.ts +6 -0
  171. package/dist/marketing/search-negative-keywords.js +30 -0
  172. package/dist/registry/schema-registry.d.ts +74 -0
  173. package/dist/registry/schema-registry.js +1148 -0
  174. package/dist/registry/table-ownership-registry.d.ts +57 -0
  175. package/dist/registry/table-ownership-registry.js +932 -0
  176. package/dist/routes/assurance.d.ts +6 -0
  177. package/dist/routes/assurance.js +14 -0
  178. package/dist/routes/community-operator.d.ts +117 -0
  179. package/dist/routes/community-operator.js +119 -0
  180. package/dist/routes/community.d.ts +232 -0
  181. package/dist/routes/community.js +246 -0
  182. package/dist/routes/index.d.ts +2203 -0
  183. package/dist/routes/index.js +1440 -0
  184. package/dist/schemas/ai/ai-generate-inputs.schema.d.ts +2056 -0
  185. package/dist/schemas/ai/ai-generate-inputs.schema.js +167 -0
  186. package/dist/schemas/ai/ai-run-metadata.schema.d.ts +39 -0
  187. package/dist/schemas/ai/ai-run-metadata.schema.js +24 -0
  188. package/dist/schemas/ai/ai-runs-list.schema.d.ts +248 -0
  189. package/dist/schemas/ai/ai-runs-list.schema.js +27 -0
  190. package/dist/schemas/ai/analytics-generate.schema.d.ts +185 -0
  191. package/dist/schemas/ai/analytics-generate.schema.js +59 -0
  192. package/dist/schemas/ai/api-generate.schema.d.ts +49 -0
  193. package/dist/schemas/ai/api-generate.schema.js +16 -0
  194. package/dist/schemas/ai/api.schema.d.ts +80 -0
  195. package/dist/schemas/ai/api.schema.js +22 -0
  196. package/dist/schemas/ai/architecture-generate.schema.d.ts +47 -0
  197. package/dist/schemas/ai/architecture-generate.schema.js +19 -0
  198. package/dist/schemas/ai/argument-map-generate.schema.d.ts +433 -0
  199. package/dist/schemas/ai/argument-map-generate.schema.js +62 -0
  200. package/dist/schemas/ai/audit-existing-output-evidence.schema.d.ts +153 -0
  201. package/dist/schemas/ai/audit-existing-output-evidence.schema.js +46 -0
  202. package/dist/schemas/ai/brief-improve-generate.schema.d.ts +2291 -0
  203. package/dist/schemas/ai/brief-improve-generate.schema.js +293 -0
  204. package/dist/schemas/ai/chapter-revision.schema.d.ts +817 -0
  205. package/dist/schemas/ai/chapter-revision.schema.js +267 -0
  206. package/dist/schemas/ai/code-generate.schema.d.ts +1492 -0
  207. package/dist/schemas/ai/code-generate.schema.js +46 -0
  208. package/dist/schemas/ai/community-pitch-critique-generate.schema.d.ts +31 -0
  209. package/dist/schemas/ai/community-pitch-critique-generate.schema.js +17 -0
  210. package/dist/schemas/ai/community-suggestion-summary-generate.schema.d.ts +34 -0
  211. package/dist/schemas/ai/community-suggestion-summary-generate.schema.js +19 -0
  212. package/dist/schemas/ai/compliance-generate.schema.d.ts +24 -0
  213. package/dist/schemas/ai/compliance-generate.schema.js +11 -0
  214. package/dist/schemas/ai/compliance.schema.d.ts +58 -0
  215. package/dist/schemas/ai/compliance.schema.js +22 -0
  216. package/dist/schemas/ai/constitution-generate.schema.d.ts +221 -0
  217. package/dist/schemas/ai/constitution-generate.schema.js +52 -0
  218. package/dist/schemas/ai/constitution-kg-gate-status.schema.d.ts +33 -0
  219. package/dist/schemas/ai/constitution-kg-gate-status.schema.js +15 -0
  220. package/dist/schemas/ai/constitution-validate-input.schema.d.ts +18 -0
  221. package/dist/schemas/ai/constitution-validate-input.schema.js +10 -0
  222. package/dist/schemas/ai/constitution-writing-generate.schema.d.ts +437 -0
  223. package/dist/schemas/ai/constitution-writing-generate.schema.js +70 -0
  224. package/dist/schemas/ai/constitution.schema.d.ts +19 -0
  225. package/dist/schemas/ai/constitution.schema.js +12 -0
  226. package/dist/schemas/ai/counterclaim-framework-generate.schema.d.ts +479 -0
  227. package/dist/schemas/ai/counterclaim-framework-generate.schema.js +66 -0
  228. package/dist/schemas/ai/coverage-generate.schema.d.ts +61 -0
  229. package/dist/schemas/ai/coverage-generate.schema.js +27 -0
  230. package/dist/schemas/ai/definitions-generate.schema.d.ts +448 -0
  231. package/dist/schemas/ai/definitions-generate.schema.js +62 -0
  232. package/dist/schemas/ai/deployments-generate.schema.d.ts +40 -0
  233. package/dist/schemas/ai/deployments-generate.schema.js +18 -0
  234. package/dist/schemas/ai/docs-generate.schema.d.ts +51 -0
  235. package/dist/schemas/ai/docs-generate.schema.js +18 -0
  236. package/dist/schemas/ai/domain-context.d.ts +58 -0
  237. package/dist/schemas/ai/domain-context.js +185 -0
  238. package/dist/schemas/ai/draft-generate.schema.d.ts +32 -0
  239. package/dist/schemas/ai/draft-generate.schema.js +17 -0
  240. package/dist/schemas/ai/editorial-guardian-generate.schema.d.ts +470 -0
  241. package/dist/schemas/ai/editorial-guardian-generate.schema.js +60 -0
  242. package/dist/schemas/ai/editorial-revise-chapter.schema.d.ts +411 -0
  243. package/dist/schemas/ai/editorial-revise-chapter.schema.js +83 -0
  244. package/dist/schemas/ai/film-clip-review-generate.schema.d.ts +291 -0
  245. package/dist/schemas/ai/film-clip-review-generate.schema.js +35 -0
  246. package/dist/schemas/ai/film-keyframe-generate.schema.d.ts +359 -0
  247. package/dist/schemas/ai/film-keyframe-generate.schema.js +28 -0
  248. package/dist/schemas/ai/film-keyframe-register.schema.d.ts +67 -0
  249. package/dist/schemas/ai/film-keyframe-register.schema.js +16 -0
  250. package/dist/schemas/ai/film-shot-risk-assess.schema.d.ts +12 -0
  251. package/dist/schemas/ai/film-shot-risk-assess.schema.js +10 -0
  252. package/dist/schemas/ai/film-still-review-generate.schema.d.ts +232 -0
  253. package/dist/schemas/ai/film-still-review-generate.schema.js +31 -0
  254. package/dist/schemas/ai/film-workflow-generate.schema.d.ts +117 -0
  255. package/dist/schemas/ai/film-workflow-generate.schema.js +33 -0
  256. package/dist/schemas/ai/generate-response.schema.d.ts +66 -0
  257. package/dist/schemas/ai/generate-response.schema.js +26 -0
  258. package/dist/schemas/ai/guardian-gate-status.schema.d.ts +112 -0
  259. package/dist/schemas/ai/guardian-gate-status.schema.js +17 -0
  260. package/dist/schemas/ai/guardian-kg-gate-status.schema.d.ts +58 -0
  261. package/dist/schemas/ai/guardian-kg-gate-status.schema.js +30 -0
  262. package/dist/schemas/ai/guardian-rule-detail.schema.d.ts +74 -0
  263. package/dist/schemas/ai/guardian-rule-detail.schema.js +19 -0
  264. package/dist/schemas/ai/guardian-score-history.schema.d.ts +75 -0
  265. package/dist/schemas/ai/guardian-score-history.schema.js +16 -0
  266. package/dist/schemas/ai/implement-graph.schema.d.ts +323 -0
  267. package/dist/schemas/ai/implement-graph.schema.js +51 -0
  268. package/dist/schemas/ai/implement-kg-gate-status.schema.d.ts +36 -0
  269. package/dist/schemas/ai/implement-kg-gate-status.schema.js +16 -0
  270. package/dist/schemas/ai/implement.schema.d.ts +73 -0
  271. package/dist/schemas/ai/implement.schema.js +23 -0
  272. package/dist/schemas/ai/index.d.ts +46 -0
  273. package/dist/schemas/ai/index.js +62 -0
  274. package/dist/schemas/ai/knowledge-kg-gate-status.schema.d.ts +73 -0
  275. package/dist/schemas/ai/knowledge-kg-gate-status.schema.js +24 -0
  276. package/dist/schemas/ai/knowledge-search-generate.schema.d.ts +2 -0
  277. package/dist/schemas/ai/knowledge-search-generate.schema.js +6 -0
  278. package/dist/schemas/ai/manuscript-checks.schema.d.ts +6095 -0
  279. package/dist/schemas/ai/manuscript-checks.schema.js +440 -0
  280. package/dist/schemas/ai/model-policy/index.d.ts +9 -0
  281. package/dist/schemas/ai/model-policy/index.js +25 -0
  282. package/dist/schemas/ai/model-policy/model-mode-preset.schema.d.ts +83 -0
  283. package/dist/schemas/ai/model-policy/model-mode-preset.schema.js +20 -0
  284. package/dist/schemas/ai/model-policy/model-modes.schema.d.ts +13 -0
  285. package/dist/schemas/ai/model-policy/model-modes.schema.js +27 -0
  286. package/dist/schemas/ai/model-policy/model-policy-resolved.schema.d.ts +44 -0
  287. package/dist/schemas/ai/model-policy/model-policy-resolved.schema.js +27 -0
  288. package/dist/schemas/ai/model-policy/model-quality-summary.schema.d.ts +133 -0
  289. package/dist/schemas/ai/model-policy/model-quality-summary.schema.js +35 -0
  290. package/dist/schemas/ai/model-policy/model-usage-summary.schema.d.ts +204 -0
  291. package/dist/schemas/ai/model-policy/model-usage-summary.schema.js +38 -0
  292. package/dist/schemas/ai/model-policy/project-model-policy.schema.d.ts +1311 -0
  293. package/dist/schemas/ai/model-policy/project-model-policy.schema.js +33 -0
  294. package/dist/schemas/ai/model-policy/workflow-phase-model-override.schema.d.ts +66 -0
  295. package/dist/schemas/ai/model-policy/workflow-phase-model-override.schema.js +48 -0
  296. package/dist/schemas/ai/model-policy/workflow-step-ids.schema.d.ts +2 -0
  297. package/dist/schemas/ai/model-policy/workflow-step-ids.schema.js +24 -0
  298. package/dist/schemas/ai/model-policy/workflow-step-model-override.schema.d.ts +63 -0
  299. package/dist/schemas/ai/model-policy/workflow-step-model-override.schema.js +43 -0
  300. package/dist/schemas/ai/orchestration-generate-fields.schema.d.ts +9 -0
  301. package/dist/schemas/ai/orchestration-generate-fields.schema.js +8 -0
  302. package/dist/schemas/ai/payload-json-schemas.d.ts +110 -0
  303. package/dist/schemas/ai/payload-json-schemas.js +154 -0
  304. package/dist/schemas/ai/plan.schema.d.ts +137 -0
  305. package/dist/schemas/ai/plan.schema.js +36 -0
  306. package/dist/schemas/ai/refine-fields.schema.d.ts +34 -0
  307. package/dist/schemas/ai/refine-fields.schema.js +27 -0
  308. package/dist/schemas/ai/review-generate.schema.d.ts +35 -0
  309. package/dist/schemas/ai/review-generate.schema.js +15 -0
  310. package/dist/schemas/ai/review.schema.d.ts +77 -0
  311. package/dist/schemas/ai/review.schema.js +29 -0
  312. package/dist/schemas/ai/run-trace.schema.d.ts +105 -0
  313. package/dist/schemas/ai/run-trace.schema.js +43 -0
  314. package/dist/schemas/ai/schema-generate.schema.d.ts +185 -0
  315. package/dist/schemas/ai/schema-generate.schema.js +44 -0
  316. package/dist/schemas/ai/schema.schema.d.ts +205 -0
  317. package/dist/schemas/ai/schema.schema.js +50 -0
  318. package/dist/schemas/ai/screenplay.schema.d.ts +550 -0
  319. package/dist/schemas/ai/screenplay.schema.js +77 -0
  320. package/dist/schemas/ai/source-registry-generate.schema.d.ts +245 -0
  321. package/dist/schemas/ai/source-registry-generate.schema.js +41 -0
  322. package/dist/schemas/ai/spec.schema.d.ts +248 -0
  323. package/dist/schemas/ai/spec.schema.js +78 -0
  324. package/dist/schemas/ai/style-system-generate.schema.d.ts +319 -0
  325. package/dist/schemas/ai/style-system-generate.schema.js +67 -0
  326. package/dist/schemas/ai/tasks-kg-gate-status.schema.d.ts +24 -0
  327. package/dist/schemas/ai/tasks-kg-gate-status.schema.js +12 -0
  328. package/dist/schemas/ai/tasks.schema.d.ts +49 -0
  329. package/dist/schemas/ai/tasks.schema.js +17 -0
  330. package/dist/schemas/ai/ui-generation-standard.schema.d.ts +42 -0
  331. package/dist/schemas/ai/ui-generation-standard.schema.js +40 -0
  332. package/dist/schemas/ai/ui-kg-gate-status.schema.d.ts +42 -0
  333. package/dist/schemas/ai/ui-kg-gate-status.schema.js +18 -0
  334. package/dist/schemas/ai/ui.schema.d.ts +22 -0
  335. package/dist/schemas/ai/ui.schema.js +13 -0
  336. package/dist/schemas/ai/workflow-artifacts.schema.d.ts +36075 -0
  337. package/dist/schemas/ai/workflow-artifacts.schema.js +2829 -0
  338. package/dist/schemas/ai/workflow-execution-mode.schema.d.ts +4 -0
  339. package/dist/schemas/ai/workflow-execution-mode.schema.js +6 -0
  340. package/dist/schemas/ai/writing-draft-all-generate.schema.d.ts +3444 -0
  341. package/dist/schemas/ai/writing-draft-all-generate.schema.js +319 -0
  342. package/dist/schemas/ai/writing-tasks-generate.schema.d.ts +283 -0
  343. package/dist/schemas/ai/writing-tasks-generate.schema.js +52 -0
  344. package/dist/schemas/ai/zod-openai-json-schema.d.ts +2 -0
  345. package/dist/schemas/ai/zod-openai-json-schema.js +67 -0
  346. package/dist/schemas/ai-ci-generate.d.ts +47 -0
  347. package/dist/schemas/ai-ci-generate.js +19 -0
  348. package/dist/schemas/ai-llm-outputs.d.ts +52 -0
  349. package/dist/schemas/ai-llm-outputs.js +26 -0
  350. package/dist/schemas/api/create-orchestration-request.schema.d.ts +13 -0
  351. package/dist/schemas/api/create-orchestration-request.schema.js +10 -0
  352. package/dist/schemas/api/implement-orchestration-session.schema.d.ts +26 -0
  353. package/dist/schemas/api/implement-orchestration-session.schema.js +11 -0
  354. package/dist/schemas/api/orchestration-events-list-response.schema.d.ts +108 -0
  355. package/dist/schemas/api/orchestration-events-list-response.schema.js +27 -0
  356. package/dist/schemas/api/plans-list-response.schema.d.ts +203 -0
  357. package/dist/schemas/api/plans-list-response.schema.js +35 -0
  358. package/dist/schemas/api/project-model-usage-query.schema.d.ts +24 -0
  359. package/dist/schemas/api/project-model-usage-query.schema.js +42 -0
  360. package/dist/schemas/api/specs-list-response.schema.d.ts +78 -0
  361. package/dist/schemas/api/specs-list-response.schema.js +23 -0
  362. package/dist/schemas/api-envelope.schema.d.ts +131 -0
  363. package/dist/schemas/api-envelope.schema.js +60 -0
  364. package/dist/schemas/artifacts/artifact-upload-proxy.schema.d.ts +27 -0
  365. package/dist/schemas/artifacts/artifact-upload-proxy.schema.js +15 -0
  366. package/dist/schemas/assurance/assurance-mode.schema.d.ts +33 -0
  367. package/dist/schemas/assurance/assurance-mode.schema.js +25 -0
  368. package/dist/schemas/assurance/browser-outcome-proof.schema.d.ts +164 -0
  369. package/dist/schemas/assurance/browser-outcome-proof.schema.js +58 -0
  370. package/dist/schemas/assurance/computation-authority-registry.schema.d.ts +108 -0
  371. package/dist/schemas/assurance/computation-authority-registry.schema.js +36 -0
  372. package/dist/schemas/assurance/documentation-evidence.schema.d.ts +131 -0
  373. package/dist/schemas/assurance/documentation-evidence.schema.js +44 -0
  374. package/dist/schemas/assurance/domain-assurance-evidence-pack.schema.d.ts +743 -0
  375. package/dist/schemas/assurance/domain-assurance-evidence-pack.schema.js +28 -0
  376. package/dist/schemas/assurance/domain-assurance-verdict.schema.d.ts +40 -0
  377. package/dist/schemas/assurance/domain-assurance-verdict.schema.js +24 -0
  378. package/dist/schemas/assurance/domain-truth-brief.schema.d.ts +270 -0
  379. package/dist/schemas/assurance/domain-truth-brief.schema.js +73 -0
  380. package/dist/schemas/assurance/enterprise-targeting.schema.d.ts +46 -0
  381. package/dist/schemas/assurance/enterprise-targeting.schema.js +24 -0
  382. package/dist/schemas/assurance/gate-result.schema.d.ts +35 -0
  383. package/dist/schemas/assurance/gate-result.schema.js +35 -0
  384. package/dist/schemas/assurance/index.d.ts +13 -0
  385. package/dist/schemas/assurance/index.js +30 -0
  386. package/dist/schemas/assurance/provider-call-ledger.schema.d.ts +97 -0
  387. package/dist/schemas/assurance/provider-call-ledger.schema.js +36 -0
  388. package/dist/schemas/assurance/provider-ledger-response.schema.d.ts +113 -0
  389. package/dist/schemas/assurance/provider-ledger-response.schema.js +29 -0
  390. package/dist/schemas/assurance/release-verdict.schema.d.ts +87 -0
  391. package/dist/schemas/assurance/release-verdict.schema.js +47 -0
  392. package/dist/schemas/assurance/risk-class.schema.d.ts +30 -0
  393. package/dist/schemas/assurance/risk-class.schema.js +33 -0
  394. package/dist/schemas/audiobook/alice-pronunciation.schema.d.ts +80 -0
  395. package/dist/schemas/audiobook/alice-pronunciation.schema.js +45 -0
  396. package/dist/schemas/audiobook/audiobook-api.schema.d.ts +1937 -0
  397. package/dist/schemas/audiobook/audiobook-api.schema.js +201 -0
  398. package/dist/schemas/audiobook/audiobook-artifacts.schema.d.ts +4069 -0
  399. package/dist/schemas/audiobook/audiobook-artifacts.schema.js +469 -0
  400. package/dist/schemas/audiobook/audiobook-studio.schema.d.ts +670 -0
  401. package/dist/schemas/audiobook/audiobook-studio.schema.js +159 -0
  402. package/dist/schemas/audiobook/audiobook-validation.d.ts +227 -0
  403. package/dist/schemas/audiobook/audiobook-validation.js +23 -0
  404. package/dist/schemas/audiobook/chunk-narration-script.d.ts +17 -0
  405. package/dist/schemas/audiobook/chunk-narration-script.js +96 -0
  406. package/dist/schemas/audiobook/elevenlabs-provider.schema.d.ts +167 -0
  407. package/dist/schemas/audiobook/elevenlabs-provider.schema.js +93 -0
  408. package/dist/schemas/audiobook/index.d.ts +8 -0
  409. package/dist/schemas/audiobook/index.js +24 -0
  410. package/dist/schemas/audiobook/narration-chunk.schema.d.ts +114 -0
  411. package/dist/schemas/audiobook/narration-chunk.schema.js +38 -0
  412. package/dist/schemas/audiobook-embed/audiobook-embed.schema.d.ts +1732 -0
  413. package/dist/schemas/audiobook-embed/audiobook-embed.schema.js +259 -0
  414. package/dist/schemas/auth/session-context.schema.d.ts +177 -0
  415. package/dist/schemas/auth/session-context.schema.js +40 -0
  416. package/dist/schemas/cache/cache-ai-response.schema.d.ts +50 -0
  417. package/dist/schemas/cache/cache-ai-response.schema.js +28 -0
  418. package/dist/schemas/ci/ci-allow-skip-actionlint-patch.schema.d.ts +16 -0
  419. package/dist/schemas/ci/ci-allow-skip-actionlint-patch.schema.js +12 -0
  420. package/dist/schemas/ci/ci-apply-post-success.schema.d.ts +24 -0
  421. package/dist/schemas/ci/ci-apply-post-success.schema.js +15 -0
  422. package/dist/schemas/ci/ci-canonical-readiness.schema.d.ts +155 -0
  423. package/dist/schemas/ci/ci-canonical-readiness.schema.js +47 -0
  424. package/dist/schemas/ci/ci-dispatch-post.schema.d.ts +34 -0
  425. package/dist/schemas/ci/ci-dispatch-post.schema.js +20 -0
  426. package/dist/schemas/ci/ci-ingest-post.schema.d.ts +37 -0
  427. package/dist/schemas/ci/ci-ingest-post.schema.js +22 -0
  428. package/dist/schemas/ci/ci-operator-ready-patch.schema.d.ts +13 -0
  429. package/dist/schemas/ci/ci-operator-ready-patch.schema.js +11 -0
  430. package/dist/schemas/ci/ci-pipeline-status.schema.d.ts +3 -0
  431. package/dist/schemas/ci/ci-pipeline-status.schema.js +13 -0
  432. package/dist/schemas/ci/ci-run.schema.d.ts +44 -0
  433. package/dist/schemas/ci/ci-run.schema.js +27 -0
  434. package/dist/schemas/ci/ci-runs-list-response.schema.d.ts +91 -0
  435. package/dist/schemas/ci/ci-runs-list-response.schema.js +13 -0
  436. package/dist/schemas/ci/ci-status-get.schema.d.ts +155 -0
  437. package/dist/schemas/ci/ci-status-get.schema.js +12 -0
  438. package/dist/schemas/ci/ci-status-response.schema.d.ts +554 -0
  439. package/dist/schemas/ci/ci-status-response.schema.js +151 -0
  440. package/dist/schemas/ci/index.d.ts +12 -0
  441. package/dist/schemas/ci/index.js +28 -0
  442. package/dist/schemas/ci/pr-check-run.schema.d.ts +44 -0
  443. package/dist/schemas/ci/pr-check-run.schema.js +21 -0
  444. package/dist/schemas/ci/project-engine-context.schema.d.ts +70 -0
  445. package/dist/schemas/ci/project-engine-context.schema.js +26 -0
  446. package/dist/schemas/community/community-actor-comment-body.schema.d.ts +9 -0
  447. package/dist/schemas/community/community-actor-comment-body.schema.js +9 -0
  448. package/dist/schemas/community/community-actor-universe-vote.schema.d.ts +10 -0
  449. package/dist/schemas/community/community-actor-universe-vote.schema.js +10 -0
  450. package/dist/schemas/community/community-ad-capi.schema.d.ts +77 -0
  451. package/dist/schemas/community/community-ad-capi.schema.js +42 -0
  452. package/dist/schemas/community/community-billing-checkout.schema.d.ts +31 -0
  453. package/dist/schemas/community/community-billing-checkout.schema.js +43 -0
  454. package/dist/schemas/community/community-challenge.schema.d.ts +43 -0
  455. package/dist/schemas/community/community-challenge.schema.js +21 -0
  456. package/dist/schemas/community/community-content-translation.schema.d.ts +99 -0
  457. package/dist/schemas/community/community-content-translation.schema.js +63 -0
  458. package/dist/schemas/community/community-credit-transaction.schema.d.ts +36 -0
  459. package/dist/schemas/community/community-credit-transaction.schema.js +19 -0
  460. package/dist/schemas/community/community-development-input.schema.d.ts +20 -0
  461. package/dist/schemas/community/community-development-input.schema.js +16 -0
  462. package/dist/schemas/community/community-development-room.schema.d.ts +28 -0
  463. package/dist/schemas/community/community-development-room.schema.js +16 -0
  464. package/dist/schemas/community/community-email.schema.d.ts +96 -0
  465. package/dist/schemas/community/community-email.schema.js +65 -0
  466. package/dist/schemas/community/community-film-playback.schema.d.ts +287 -0
  467. package/dist/schemas/community/community-film-playback.schema.js +52 -0
  468. package/dist/schemas/community/community-film-video-variant.schema.d.ts +94 -0
  469. package/dist/schemas/community/community-film-video-variant.schema.js +53 -0
  470. package/dist/schemas/community/community-film-world-marketing.schema.d.ts +27 -0
  471. package/dist/schemas/community/community-film-world-marketing.schema.js +67 -0
  472. package/dist/schemas/community/community-film.schema.d.ts +183 -0
  473. package/dist/schemas/community/community-film.schema.js +105 -0
  474. package/dist/schemas/community/community-idea-promote.schema.d.ts +4 -0
  475. package/dist/schemas/community/community-idea-promote.schema.js +6 -0
  476. package/dist/schemas/community/community-idea-submission.schema.d.ts +54 -0
  477. package/dist/schemas/community/community-idea-submission.schema.js +22 -0
  478. package/dist/schemas/community/community-idea-version.schema.d.ts +72 -0
  479. package/dist/schemas/community/community-idea-version.schema.js +28 -0
  480. package/dist/schemas/community/community-idea.schema.d.ts +71 -0
  481. package/dist/schemas/community/community-idea.schema.js +36 -0
  482. package/dist/schemas/community/community-locale.schema.d.ts +8 -0
  483. package/dist/schemas/community/community-locale.schema.js +10 -0
  484. package/dist/schemas/community/community-membership-monthly-credits.d.ts +4 -0
  485. package/dist/schemas/community/community-membership-monthly-credits.js +18 -0
  486. package/dist/schemas/community/community-membership.schema.d.ts +34 -0
  487. package/dist/schemas/community/community-membership.schema.js +19 -0
  488. package/dist/schemas/community/community-moderation-flag.schema.d.ts +31 -0
  489. package/dist/schemas/community/community-moderation-flag.schema.js +17 -0
  490. package/dist/schemas/community/community-movie-actor-blueprint.schema.d.ts +196 -0
  491. package/dist/schemas/community/community-movie-actor-blueprint.schema.js +30 -0
  492. package/dist/schemas/community/community-movie-actor-card.schema.d.ts +37 -0
  493. package/dist/schemas/community/community-movie-actor-card.schema.js +20 -0
  494. package/dist/schemas/community/community-movie-actor-create-request.schema.d.ts +102 -0
  495. package/dist/schemas/community/community-movie-actor-create-request.schema.js +24 -0
  496. package/dist/schemas/community/community-movie-actor-create-response.schema.d.ts +35 -0
  497. package/dist/schemas/community/community-movie-actor-create-response.schema.js +12 -0
  498. package/dist/schemas/community/community-movie-actor-gate-result.schema.d.ts +15 -0
  499. package/dist/schemas/community/community-movie-actor-gate-result.schema.js +11 -0
  500. package/dist/schemas/community/community-movie-actor-image-prompt-pack.schema.d.ts +22 -0
  501. package/dist/schemas/community/community-movie-actor-image-prompt-pack.schema.js +14 -0
  502. package/dist/schemas/community/community-movie-actor-kg-seed.schema.d.ts +68 -0
  503. package/dist/schemas/community/community-movie-actor-kg-seed.schema.js +31 -0
  504. package/dist/schemas/community/community-movie-actor-option-selection.schema.d.ts +43 -0
  505. package/dist/schemas/community/community-movie-actor-option-selection.schema.js +22 -0
  506. package/dist/schemas/community/community-movie-actor-portrait-url.schema.d.ts +10 -0
  507. package/dist/schemas/community/community-movie-actor-portrait-url.schema.js +10 -0
  508. package/dist/schemas/community/community-movie-actor-vote-response.schema.d.ts +13 -0
  509. package/dist/schemas/community/community-movie-actor-vote-response.schema.js +9 -0
  510. package/dist/schemas/community/community-movie-canonical-character.schema.d.ts +78 -0
  511. package/dist/schemas/community/community-movie-canonical-character.schema.js +104 -0
  512. package/dist/schemas/community/community-movie-gallery.schema.d.ts +28 -0
  513. package/dist/schemas/community/community-movie-gallery.schema.js +90 -0
  514. package/dist/schemas/community/community-movie-gate-result.schema.d.ts +46 -0
  515. package/dist/schemas/community/community-movie-gate-result.schema.js +23 -0
  516. package/dist/schemas/community/community-movie-idea-card.schema.d.ts +31 -0
  517. package/dist/schemas/community/community-movie-idea-card.schema.js +17 -0
  518. package/dist/schemas/community/community-movie-idea-input.schema.d.ts +22 -0
  519. package/dist/schemas/community/community-movie-idea-input.schema.js +14 -0
  520. package/dist/schemas/community/community-movie-idea-structured.schema.d.ts +34 -0
  521. package/dist/schemas/community/community-movie-idea-structured.schema.js +20 -0
  522. package/dist/schemas/community/community-movie-kg-seed.schema.d.ts +73 -0
  523. package/dist/schemas/community/community-movie-kg-seed.schema.js +84 -0
  524. package/dist/schemas/community/community-movie-stage-transitions.d.ts +15 -0
  525. package/dist/schemas/community/community-movie-stage-transitions.js +35 -0
  526. package/dist/schemas/community/community-movie-world-cta.schema.d.ts +75 -0
  527. package/dist/schemas/community/community-movie-world-cta.schema.js +83 -0
  528. package/dist/schemas/community/community-partner-offers.d.ts +13 -0
  529. package/dist/schemas/community/community-partner-offers.js +22 -0
  530. package/dist/schemas/community/community-partner.schema.d.ts +41 -0
  531. package/dist/schemas/community/community-partner.schema.js +23 -0
  532. package/dist/schemas/community/community-poll.schema.d.ts +54 -0
  533. package/dist/schemas/community/community-poll.schema.js +27 -0
  534. package/dist/schemas/community/community-production-operator.schema.d.ts +320 -0
  535. package/dist/schemas/community/community-production-operator.schema.js +91 -0
  536. package/dist/schemas/community/community-referral.schema.d.ts +155 -0
  537. package/dist/schemas/community/community-referral.schema.js +63 -0
  538. package/dist/schemas/community/community-signup-intake.constants.d.ts +13 -0
  539. package/dist/schemas/community/community-signup-intake.constants.js +134 -0
  540. package/dist/schemas/community/community-signup-intake.schema.d.ts +87 -0
  541. package/dist/schemas/community/community-signup-intake.schema.js +82 -0
  542. package/dist/schemas/community/community-slate.schema.d.ts +60 -0
  543. package/dist/schemas/community/community-slate.schema.js +29 -0
  544. package/dist/schemas/community/community-stage-transition.schema.d.ts +33 -0
  545. package/dist/schemas/community/community-stage-transition.schema.js +18 -0
  546. package/dist/schemas/community/community-suggestion.schema.d.ts +35 -0
  547. package/dist/schemas/community/community-suggestion.schema.js +24 -0
  548. package/dist/schemas/community/community-vote.schema.d.ts +24 -0
  549. package/dist/schemas/community/community-vote.schema.js +14 -0
  550. package/dist/schemas/community/community-waitlist.schema.d.ts +12 -0
  551. package/dist/schemas/community/community-waitlist.schema.js +10 -0
  552. package/dist/schemas/community/community-world-contribution.schema.d.ts +102 -0
  553. package/dist/schemas/community/community-world-contribution.schema.js +86 -0
  554. package/dist/schemas/community/credit-disclosure-variant.schema.d.ts +4 -0
  555. package/dist/schemas/community/credit-disclosure-variant.schema.js +6 -0
  556. package/dist/schemas/community/index.d.ts +56 -0
  557. package/dist/schemas/community/index.js +72 -0
  558. package/dist/schemas/cortex/bridge-envelope.schema.d.ts +70 -0
  559. package/dist/schemas/cortex/bridge-envelope.schema.js +77 -0
  560. package/dist/schemas/cortex/bridge-event-catalogue.d.ts +14 -0
  561. package/dist/schemas/cortex/bridge-event-catalogue.js +138 -0
  562. package/dist/schemas/cortex/bridge-events.schema.d.ts +14645 -0
  563. package/dist/schemas/cortex/bridge-events.schema.js +828 -0
  564. package/dist/schemas/cortex/bridge-readiness.schema.d.ts +27 -0
  565. package/dist/schemas/cortex/bridge-readiness.schema.js +15 -0
  566. package/dist/schemas/cortex/film-bridge-events.schema.d.ts +301 -0
  567. package/dist/schemas/cortex/film-bridge-events.schema.js +116 -0
  568. package/dist/schemas/cortex/index.d.ts +7 -0
  569. package/dist/schemas/cortex/index.js +23 -0
  570. package/dist/schemas/cortex/product-release-package.schema.d.ts +370 -0
  571. package/dist/schemas/cortex/product-release-package.schema.js +123 -0
  572. package/dist/schemas/cortex/proof-run-recorder.schema.d.ts +144 -0
  573. package/dist/schemas/cortex/proof-run-recorder.schema.js +43 -0
  574. package/dist/schemas/deployments/deployment-predict.schema.d.ts +165 -0
  575. package/dist/schemas/deployments/deployment-predict.schema.js +92 -0
  576. package/dist/schemas/deployments/deployment-preflight.schema.d.ts +184 -0
  577. package/dist/schemas/deployments/deployment-preflight.schema.js +80 -0
  578. package/dist/schemas/deployments/deployment-rollback.schema.d.ts +519 -0
  579. package/dist/schemas/deployments/deployment-rollback.schema.js +102 -0
  580. package/dist/schemas/deployments/deployment-status.schema.d.ts +1359 -0
  581. package/dist/schemas/deployments/deployment-status.schema.js +421 -0
  582. package/dist/schemas/film/film-artifact-kind.schema.d.ts +2 -0
  583. package/dist/schemas/film/film-artifact-kind.schema.js +6 -0
  584. package/dist/schemas/film/film-artifact-payloads.schema.d.ts +532 -0
  585. package/dist/schemas/film/film-artifact-payloads.schema.js +174 -0
  586. package/dist/schemas/film/film-asset-review.schema.d.ts +83 -0
  587. package/dist/schemas/film/film-asset-review.schema.js +42 -0
  588. package/dist/schemas/film/film-asset-rights-profile.schema.d.ts +68 -0
  589. package/dist/schemas/film/film-asset-rights-profile.schema.js +33 -0
  590. package/dist/schemas/film/film-character-pack-api.schema.d.ts +216 -0
  591. package/dist/schemas/film/film-character-pack-api.schema.js +51 -0
  592. package/dist/schemas/film/film-character-pack.schema.d.ts +51 -0
  593. package/dist/schemas/film/film-character-pack.schema.js +24 -0
  594. package/dist/schemas/film/film-character-scene-state.schema.d.ts +36 -0
  595. package/dist/schemas/film/film-character-scene-state.schema.js +18 -0
  596. package/dist/schemas/film/film-clip-api.schema.d.ts +379 -0
  597. package/dist/schemas/film/film-clip-api.schema.js +159 -0
  598. package/dist/schemas/film/film-clip-review-orchestration.schema.d.ts +234 -0
  599. package/dist/schemas/film/film-clip-review-orchestration.schema.js +23 -0
  600. package/dist/schemas/film/film-clip-review-scores.schema.d.ts +51 -0
  601. package/dist/schemas/film/film-clip-review-scores.schema.js +49 -0
  602. package/dist/schemas/film/film-clip-structured-review-artifact.schema.d.ts +175 -0
  603. package/dist/schemas/film/film-clip-structured-review-artifact.schema.js +15 -0
  604. package/dist/schemas/film/film-clip-structured-review.schema.d.ts +267 -0
  605. package/dist/schemas/film/film-clip-structured-review.schema.js +54 -0
  606. package/dist/schemas/film/film-clip.schema.d.ts +171 -0
  607. package/dist/schemas/film/film-clip.schema.js +64 -0
  608. package/dist/schemas/film/film-comfyui-workflow-create.schema.d.ts +39 -0
  609. package/dist/schemas/film/film-comfyui-workflow-create.schema.js +20 -0
  610. package/dist/schemas/film/film-comfyui-workflow-update.schema.d.ts +54 -0
  611. package/dist/schemas/film/film-comfyui-workflow-update.schema.js +28 -0
  612. package/dist/schemas/film/film-comfyui-workflow.schema.d.ts +188 -0
  613. package/dist/schemas/film/film-comfyui-workflow.schema.js +65 -0
  614. package/dist/schemas/film/film-creative-read-model.schema.d.ts +675 -0
  615. package/dist/schemas/film/film-creative-read-model.schema.js +66 -0
  616. package/dist/schemas/film/film-deliverable.schema.d.ts +656 -0
  617. package/dist/schemas/film/film-deliverable.schema.js +252 -0
  618. package/dist/schemas/film/film-edit-sequence.schema.d.ts +1112 -0
  619. package/dist/schemas/film/film-edit-sequence.schema.js +106 -0
  620. package/dist/schemas/film/film-elevenlabs-voice.schema.d.ts +126 -0
  621. package/dist/schemas/film/film-elevenlabs-voice.schema.js +56 -0
  622. package/dist/schemas/film/film-enqueue-multi-take.schema.d.ts +57 -0
  623. package/dist/schemas/film/film-enqueue-multi-take.schema.js +24 -0
  624. package/dist/schemas/film/film-export.schema.d.ts +78 -0
  625. package/dist/schemas/film/film-export.schema.js +37 -0
  626. package/dist/schemas/film/film-generation-dashboard.schema.d.ts +1779 -0
  627. package/dist/schemas/film/film-generation-dashboard.schema.js +222 -0
  628. package/dist/schemas/film/film-generation-package.schema.d.ts +1665 -0
  629. package/dist/schemas/film/film-generation-package.schema.js +116 -0
  630. package/dist/schemas/film/film-generation-task.schema.d.ts +1086 -0
  631. package/dist/schemas/film/film-generation-task.schema.js +159 -0
  632. package/dist/schemas/film/film-hydrate.schema.d.ts +46 -0
  633. package/dist/schemas/film/film-hydrate.schema.js +23 -0
  634. package/dist/schemas/film/film-keyframe-brief.schema.d.ts +99 -0
  635. package/dist/schemas/film/film-keyframe-brief.schema.js +29 -0
  636. package/dist/schemas/film/film-keyframe-review.schema.d.ts +186 -0
  637. package/dist/schemas/film/film-keyframe-review.schema.js +25 -0
  638. package/dist/schemas/film/film-keyframe.schema.d.ts +214 -0
  639. package/dist/schemas/film/film-keyframe.schema.js +43 -0
  640. package/dist/schemas/film/film-lessons-manifest.schema.d.ts +589 -0
  641. package/dist/schemas/film/film-lessons-manifest.schema.js +83 -0
  642. package/dist/schemas/film/film-llm-field.d.ts +22 -0
  643. package/dist/schemas/film/film-llm-field.js +78 -0
  644. package/dist/schemas/film/film-location-pack.schema.d.ts +51 -0
  645. package/dist/schemas/film/film-location-pack.schema.js +24 -0
  646. package/dist/schemas/film/film-marketing-creative-api.schema.d.ts +276 -0
  647. package/dist/schemas/film/film-marketing-creative-api.schema.js +47 -0
  648. package/dist/schemas/film/film-marketing-creative.schema.d.ts +74 -0
  649. package/dist/schemas/film/film-marketing-creative.schema.js +58 -0
  650. package/dist/schemas/film/film-marketing-format-preset.schema.d.ts +22 -0
  651. package/dist/schemas/film/film-marketing-format-preset.schema.js +71 -0
  652. package/dist/schemas/film/film-media-asset-file.schema.d.ts +59 -0
  653. package/dist/schemas/film/film-media-asset-file.schema.js +45 -0
  654. package/dist/schemas/film/film-media-asset-promotion-api.schema.d.ts +219 -0
  655. package/dist/schemas/film/film-media-asset-promotion-api.schema.js +29 -0
  656. package/dist/schemas/film/film-media-asset-review-api.schema.d.ts +431 -0
  657. package/dist/schemas/film/film-media-asset-review-api.schema.js +41 -0
  658. package/dist/schemas/film/film-media-asset.schema.d.ts +131 -0
  659. package/dist/schemas/film/film-media-asset.schema.js +94 -0
  660. package/dist/schemas/film/film-media-kg.schema.d.ts +86 -0
  661. package/dist/schemas/film/film-media-kg.schema.js +70 -0
  662. package/dist/schemas/film/film-ofi-report.schema.d.ts +437 -0
  663. package/dist/schemas/film/film-ofi-report.schema.js +65 -0
  664. package/dist/schemas/film/film-otio-sidecar.schema.d.ts +136 -0
  665. package/dist/schemas/film/film-otio-sidecar.schema.js +28 -0
  666. package/dist/schemas/film/film-production-coverage.schema.d.ts +179 -0
  667. package/dist/schemas/film/film-production-coverage.schema.js +123 -0
  668. package/dist/schemas/film/film-production-graph.schema.d.ts +273 -0
  669. package/dist/schemas/film/film-production-graph.schema.js +43 -0
  670. package/dist/schemas/film/film-production-read-model.schema.d.ts +1038 -0
  671. package/dist/schemas/film/film-production-read-model.schema.js +65 -0
  672. package/dist/schemas/film/film-production-style.schema.d.ts +31 -0
  673. package/dist/schemas/film/film-production-style.schema.js +50 -0
  674. package/dist/schemas/film/film-project.schema.d.ts +115 -0
  675. package/dist/schemas/film/film-project.schema.js +50 -0
  676. package/dist/schemas/film/film-prompt-compiler.schema.d.ts +346 -0
  677. package/dist/schemas/film/film-prompt-compiler.schema.js +116 -0
  678. package/dist/schemas/film/film-prompt-performance.schema.d.ts +77 -0
  679. package/dist/schemas/film/film-prompt-performance.schema.js +37 -0
  680. package/dist/schemas/film/film-prompt-repair.schema.d.ts +41 -0
  681. package/dist/schemas/film/film-prompt-repair.schema.js +36 -0
  682. package/dist/schemas/film/film-prompt.schema.d.ts +265 -0
  683. package/dist/schemas/film/film-prompt.schema.js +47 -0
  684. package/dist/schemas/film/film-provider-hints.schema.d.ts +105 -0
  685. package/dist/schemas/film/film-provider-hints.schema.js +50 -0
  686. package/dist/schemas/film/film-provider-job.schema.d.ts +320 -0
  687. package/dist/schemas/film/film-provider-job.schema.js +181 -0
  688. package/dist/schemas/film/film-provider.schema.d.ts +100 -0
  689. package/dist/schemas/film/film-provider.schema.js +51 -0
  690. package/dist/schemas/film/film-queue-enqueue.schema.d.ts +423 -0
  691. package/dist/schemas/film/film-queue-enqueue.schema.js +98 -0
  692. package/dist/schemas/film/film-queue-task-detail.schema.d.ts +981 -0
  693. package/dist/schemas/film/film-queue-task-detail.schema.js +57 -0
  694. package/dist/schemas/film/film-reference-pack.schema.d.ts +48 -0
  695. package/dist/schemas/film/film-reference-pack.schema.js +23 -0
  696. package/dist/schemas/film/film-regeneration-plan.schema.d.ts +124 -0
  697. package/dist/schemas/film/film-regeneration-plan.schema.js +62 -0
  698. package/dist/schemas/film/film-resolve-ingest.schema.d.ts +278 -0
  699. package/dist/schemas/film/film-resolve-ingest.schema.js +35 -0
  700. package/dist/schemas/film/film-resolve-timeline-report.schema.d.ts +323 -0
  701. package/dist/schemas/film/film-resolve-timeline-report.schema.js +43 -0
  702. package/dist/schemas/film/film-review.schema.d.ts +65 -0
  703. package/dist/schemas/film/film-review.schema.js +47 -0
  704. package/dist/schemas/film/film-scene.schema.d.ts +175 -0
  705. package/dist/schemas/film/film-scene.schema.js +38 -0
  706. package/dist/schemas/film/film-screenplay.schema.d.ts +215 -0
  707. package/dist/schemas/film/film-screenplay.schema.js +38 -0
  708. package/dist/schemas/film/film-shot-risk-assessment.schema.d.ts +27 -0
  709. package/dist/schemas/film/film-shot-risk-assessment.schema.js +16 -0
  710. package/dist/schemas/film/film-shot-risk-level.schema.d.ts +5 -0
  711. package/dist/schemas/film/film-shot-risk-level.schema.js +7 -0
  712. package/dist/schemas/film/film-shot.schema.d.ts +564 -0
  713. package/dist/schemas/film/film-shot.schema.js +96 -0
  714. package/dist/schemas/film/film-still-review-artifact.schema.d.ts +154 -0
  715. package/dist/schemas/film/film-still-review-artifact.schema.js +15 -0
  716. package/dist/schemas/film/film-still-review-scores.schema.d.ts +161 -0
  717. package/dist/schemas/film/film-still-review-scores.schema.js +48 -0
  718. package/dist/schemas/film/film-take-comparison.schema.d.ts +437 -0
  719. package/dist/schemas/film/film-take-comparison.schema.js +73 -0
  720. package/dist/schemas/film/film-training-dataset-api.schema.d.ts +641 -0
  721. package/dist/schemas/film/film-training-dataset-api.schema.js +86 -0
  722. package/dist/schemas/film/film-training-dataset.schema.d.ts +171 -0
  723. package/dist/schemas/film/film-training-dataset.schema.js +69 -0
  724. package/dist/schemas/film/film-wardrobe-state.schema.d.ts +42 -0
  725. package/dist/schemas/film/film-wardrobe-state.schema.js +21 -0
  726. package/dist/schemas/film/film-workbench.schema.d.ts +379 -0
  727. package/dist/schemas/film/film-workbench.schema.js +58 -0
  728. package/dist/schemas/film/film-workflow-lineage.schema.d.ts +166 -0
  729. package/dist/schemas/film/film-workflow-lineage.schema.js +83 -0
  730. package/dist/schemas/film/film-world-ontology.schema.d.ts +250 -0
  731. package/dist/schemas/film/film-world-ontology.schema.js +79 -0
  732. package/dist/schemas/film/image-generation-provider.schema.d.ts +392 -0
  733. package/dist/schemas/film/image-generation-provider.schema.js +55 -0
  734. package/dist/schemas/film/index.d.ts +81 -0
  735. package/dist/schemas/film/index.js +97 -0
  736. package/dist/schemas/github/branches.schema.d.ts +61 -0
  737. package/dist/schemas/github/branches.schema.js +17 -0
  738. package/dist/schemas/github/issues.schema.d.ts +145 -0
  739. package/dist/schemas/github/issues.schema.js +27 -0
  740. package/dist/schemas/github/pulls.schema.d.ts +173 -0
  741. package/dist/schemas/github/pulls.schema.js +30 -0
  742. package/dist/schemas/github/repo-create.schema.d.ts +21 -0
  743. package/dist/schemas/github/repo-create.schema.js +11 -0
  744. package/dist/schemas/github/webhook-delivery.schema.d.ts +729 -0
  745. package/dist/schemas/github/webhook-delivery.schema.js +142 -0
  746. package/dist/schemas/github/workflow-runs.schema.d.ts +173 -0
  747. package/dist/schemas/github/workflow-runs.schema.js +52 -0
  748. package/dist/schemas/github-pr-create.schema.d.ts +175 -0
  749. package/dist/schemas/github-pr-create.schema.js +70 -0
  750. package/dist/schemas/github-status.schema.d.ts +418 -0
  751. package/dist/schemas/github-status.schema.js +122 -0
  752. package/dist/schemas/graph/edge-v2.schema.d.ts +85 -0
  753. package/dist/schemas/graph/edge-v2.schema.js +164 -0
  754. package/dist/schemas/graph/graph-query-v2.schema.d.ts +449 -0
  755. package/dist/schemas/graph/graph-query-v2.schema.js +83 -0
  756. package/dist/schemas/graph/index.d.ts +14 -0
  757. package/dist/schemas/graph/index.js +30 -0
  758. package/dist/schemas/graph/node-v2.schema.d.ts +68 -0
  759. package/dist/schemas/graph/node-v2.schema.js +120 -0
  760. package/dist/schemas/graph/sql-security-findings.schema.d.ts +71 -0
  761. package/dist/schemas/graph/sql-security-findings.schema.js +40 -0
  762. package/dist/schemas/guardian/guardian-score.schema.d.ts +13 -0
  763. package/dist/schemas/guardian/guardian-score.schema.js +24 -0
  764. package/dist/schemas/guardian/validate.schema.d.ts +51 -0
  765. package/dist/schemas/guardian/validate.schema.js +36 -0
  766. package/dist/schemas/implement/nextjs-scaffold-manifest.schema.d.ts +44 -0
  767. package/dist/schemas/implement/nextjs-scaffold-manifest.schema.js +25 -0
  768. package/dist/schemas/implement/patch-validation-diagnostic.schema.d.ts +17 -0
  769. package/dist/schemas/implement/patch-validation-diagnostic.schema.js +19 -0
  770. package/dist/schemas/implement-patch-detail.schema.d.ts +344 -0
  771. package/dist/schemas/implement-patch-detail.schema.js +78 -0
  772. package/dist/schemas/implement-patch-lifecycle.schema.d.ts +66 -0
  773. package/dist/schemas/implement-patch-lifecycle.schema.js +317 -0
  774. package/dist/schemas/implement-patch-task.schema.d.ts +29 -0
  775. package/dist/schemas/implement-patch-task.schema.js +26 -0
  776. package/dist/schemas/implement-patch.schema.d.ts +2955 -0
  777. package/dist/schemas/implement-patch.schema.js +573 -0
  778. package/dist/schemas/implement-quarantine.schema.d.ts +215 -0
  779. package/dist/schemas/implement-quarantine.schema.js +71 -0
  780. package/dist/schemas/index.d.ts +5249 -0
  781. package/dist/schemas/index.js +1649 -0
  782. package/dist/schemas/integrations/cursor-execution.schema.d.ts +530 -0
  783. package/dist/schemas/integrations/cursor-execution.schema.js +104 -0
  784. package/dist/schemas/integrations.d.ts +426 -0
  785. package/dist/schemas/integrations.js +149 -0
  786. package/dist/schemas/knowledge/api-retry-kg-persistence.schema.d.ts +130 -0
  787. package/dist/schemas/knowledge/api-retry-kg-persistence.schema.js +28 -0
  788. package/dist/schemas/knowledge/constitution-retry-kg-persistence.schema.d.ts +46 -0
  789. package/dist/schemas/knowledge/constitution-retry-kg-persistence.schema.js +12 -0
  790. package/dist/schemas/knowledge/coverage.schema.d.ts +98 -0
  791. package/dist/schemas/knowledge/coverage.schema.js +27 -0
  792. package/dist/schemas/knowledge/duplicates.schema.d.ts +62 -0
  793. package/dist/schemas/knowledge/duplicates.schema.js +23 -0
  794. package/dist/schemas/knowledge/graph-query.schema.d.ts +9 -0
  795. package/dist/schemas/knowledge/graph-query.schema.js +7 -0
  796. package/dist/schemas/knowledge/guardian-retry-kg-persistence.schema.d.ts +40 -0
  797. package/dist/schemas/knowledge/guardian-retry-kg-persistence.schema.js +12 -0
  798. package/dist/schemas/knowledge/implement-retry-kg-persistence.schema.d.ts +49 -0
  799. package/dist/schemas/knowledge/implement-retry-kg-persistence.schema.js +14 -0
  800. package/dist/schemas/knowledge/kg-generation-writers.schema.d.ts +338 -0
  801. package/dist/schemas/knowledge/kg-generation-writers.schema.js +73 -0
  802. package/dist/schemas/knowledge/kg-relations.schema.d.ts +70 -0
  803. package/dist/schemas/knowledge/kg-relations.schema.js +157 -0
  804. package/dist/schemas/knowledge/knowledge-graph-summary.schema.d.ts +170 -0
  805. package/dist/schemas/knowledge/knowledge-graph-summary.schema.js +43 -0
  806. package/dist/schemas/knowledge/knowledge-node-provenance.schema.d.ts +41 -0
  807. package/dist/schemas/knowledge/knowledge-node-provenance.schema.js +21 -0
  808. package/dist/schemas/knowledge/knowledge-retry-kg-persistence.schema.d.ts +76 -0
  809. package/dist/schemas/knowledge/knowledge-retry-kg-persistence.schema.js +14 -0
  810. package/dist/schemas/knowledge/knowledge-search.schema.d.ts +29 -0
  811. package/dist/schemas/knowledge/knowledge-search.schema.js +17 -0
  812. package/dist/schemas/knowledge/lineage.schema.d.ts +70 -0
  813. package/dist/schemas/knowledge/lineage.schema.js +28 -0
  814. package/dist/schemas/knowledge/project-brief-knowledge-node.schema.d.ts +45 -0
  815. package/dist/schemas/knowledge/project-brief-knowledge-node.schema.js +30 -0
  816. package/dist/schemas/knowledge/review-readiness.schema.d.ts +104 -0
  817. package/dist/schemas/knowledge/review-readiness.schema.js +30 -0
  818. package/dist/schemas/knowledge/sync-prs.schema.d.ts +54 -0
  819. package/dist/schemas/knowledge/sync-prs.schema.js +21 -0
  820. package/dist/schemas/knowledge/tasks-retry-kg-persistence.schema.d.ts +37 -0
  821. package/dist/schemas/knowledge/tasks-retry-kg-persistence.schema.js +14 -0
  822. package/dist/schemas/knowledge/ui-retry-kg-persistence.schema.d.ts +58 -0
  823. package/dist/schemas/knowledge/ui-retry-kg-persistence.schema.js +14 -0
  824. package/dist/schemas/knowledge-graph-response.schema.d.ts +376 -0
  825. package/dist/schemas/knowledge-graph-response.schema.js +56 -0
  826. package/dist/schemas/logging/logger-context.schema.d.ts +21 -0
  827. package/dist/schemas/logging/logger-context.schema.js +11 -0
  828. package/dist/schemas/metrics/project-kpi-summary.schema.d.ts +368 -0
  829. package/dist/schemas/metrics/project-kpi-summary.schema.js +80 -0
  830. package/dist/schemas/orchestration/durable-stage-progress.schema.d.ts +57 -0
  831. package/dist/schemas/orchestration/durable-stage-progress.schema.js +34 -0
  832. package/dist/schemas/orchestration-execution.d.ts +163 -0
  833. package/dist/schemas/orchestration-execution.js +89 -0
  834. package/dist/schemas/project-bmad-settings-patch.schema.d.ts +66 -0
  835. package/dist/schemas/project-bmad-settings-patch.schema.js +29 -0
  836. package/dist/schemas/project-kind.schema.d.ts +70 -0
  837. package/dist/schemas/project-kind.schema.js +38 -0
  838. package/dist/schemas/project-team.d.ts +48 -0
  839. package/dist/schemas/project-team.js +52 -0
  840. package/dist/schemas/projects/nl-kg-v2-enabled.schema.d.ts +10 -0
  841. package/dist/schemas/projects/nl-kg-v2-enabled.schema.js +16 -0
  842. package/dist/schemas/provider-sentinel/cleanup-manifest.schema.d.ts +78 -0
  843. package/dist/schemas/provider-sentinel/cleanup-manifest.schema.js +27 -0
  844. package/dist/schemas/provider-sentinel/execution-evidence.schema.d.ts +228 -0
  845. package/dist/schemas/provider-sentinel/execution-evidence.schema.js +78 -0
  846. package/dist/schemas/provider-sentinel/film-media-sentinel-config.schema.d.ts +55 -0
  847. package/dist/schemas/provider-sentinel/film-media-sentinel-config.schema.js +33 -0
  848. package/dist/schemas/provider-sentinel/index.d.ts +6 -0
  849. package/dist/schemas/provider-sentinel/index.js +22 -0
  850. package/dist/schemas/provider-sentinel/provider-sentinel-common.schema.d.ts +8 -0
  851. package/dist/schemas/provider-sentinel/provider-sentinel-common.schema.js +9 -0
  852. package/dist/schemas/provider-sentinel/provider-sentinel-result.schema.d.ts +743 -0
  853. package/dist/schemas/provider-sentinel/provider-sentinel-result.schema.js +126 -0
  854. package/dist/schemas/provider-sentinel/text-durable-sentinel-config.schema.d.ts +51 -0
  855. package/dist/schemas/provider-sentinel/text-durable-sentinel-config.schema.js +30 -0
  856. package/dist/schemas/publication/manuscript-export.schema.d.ts +249 -0
  857. package/dist/schemas/publication/manuscript-export.schema.js +47 -0
  858. package/dist/schemas/repo/repo-scan-run.schema.d.ts +60 -0
  859. package/dist/schemas/repo/repo-scan-run.schema.js +34 -0
  860. package/dist/schemas/repos/project-repo-link.schema.d.ts +148 -0
  861. package/dist/schemas/repos/project-repo-link.schema.js +28 -0
  862. package/dist/schemas/repos/repo-readiness.schema.d.ts +26 -0
  863. package/dist/schemas/repos/repo-readiness.schema.js +23 -0
  864. package/dist/schemas/repos/repo-scan.schema.d.ts +379 -0
  865. package/dist/schemas/repos/repo-scan.schema.js +98 -0
  866. package/dist/schemas/review/review-coverage.schema.d.ts +2238 -0
  867. package/dist/schemas/review/review-coverage.schema.js +182 -0
  868. package/dist/schemas/review/review-policy.schema.d.ts +87 -0
  869. package/dist/schemas/review/review-policy.schema.js +42 -0
  870. package/dist/schemas/runtime/index.d.ts +6 -0
  871. package/dist/schemas/runtime/index.js +22 -0
  872. package/dist/schemas/runtime/platform-health.schema.d.ts +83 -0
  873. package/dist/schemas/runtime/platform-health.schema.js +31 -0
  874. package/dist/schemas/runtime/probe-harness-gen.schema.d.ts +456 -0
  875. package/dist/schemas/runtime/probe-harness-gen.schema.js +91 -0
  876. package/dist/schemas/runtime/probe.schema.d.ts +1117 -0
  877. package/dist/schemas/runtime/probe.schema.js +278 -0
  878. package/dist/schemas/runtime/runtime-knowledge-node.schema.d.ts +862 -0
  879. package/dist/schemas/runtime/runtime-knowledge-node.schema.js +29 -0
  880. package/dist/schemas/runtime/runtime-loop.schema.d.ts +175 -0
  881. package/dist/schemas/runtime/runtime-loop.schema.js +84 -0
  882. package/dist/schemas/runtime/runtime-run.schema.d.ts +378 -0
  883. package/dist/schemas/runtime/runtime-run.schema.js +30 -0
  884. package/dist/schemas/security/index.d.ts +3 -0
  885. package/dist/schemas/security/index.js +19 -0
  886. package/dist/schemas/security/pre-pr-security-gate.schema.d.ts +486 -0
  887. package/dist/schemas/security/pre-pr-security-gate.schema.js +13 -0
  888. package/dist/schemas/security/security-finding.schema.d.ts +546 -0
  889. package/dist/schemas/security/security-finding.schema.js +138 -0
  890. package/dist/schemas/security/security-knowledge-node.schema.d.ts +285 -0
  891. package/dist/schemas/security/security-knowledge-node.schema.js +21 -0
  892. package/dist/schemas/task-complexity.schema.d.ts +3 -0
  893. package/dist/schemas/task-complexity.schema.js +6 -0
  894. package/dist/schemas/task-evidence-expectations.schema.d.ts +174 -0
  895. package/dist/schemas/task-evidence-expectations.schema.js +35 -0
  896. package/dist/schemas/traceability/index.d.ts +2 -0
  897. package/dist/schemas/traceability/index.js +18 -0
  898. package/dist/schemas/traceability/neuraloom-traceability-file.schema.d.ts +593 -0
  899. package/dist/schemas/traceability/neuraloom-traceability-file.schema.js +93 -0
  900. package/dist/schemas/traceability/traceability-graph.schema.d.ts +712 -0
  901. package/dist/schemas/traceability/traceability-graph.schema.js +112 -0
  902. package/dist/schemas/workflow/build-knowledge.schema.d.ts +672 -0
  903. package/dist/schemas/workflow/build-knowledge.schema.js +92 -0
  904. package/dist/schemas/workflow/build-truth-read-model.schema.d.ts +1218 -0
  905. package/dist/schemas/workflow/build-truth-read-model.schema.js +42 -0
  906. package/dist/schemas/workflow/canonicalization-decision.schema.d.ts +74 -0
  907. package/dist/schemas/workflow/canonicalization-decision.schema.js +22 -0
  908. package/dist/schemas/workflow/code-reality-artifacts.schema.d.ts +914 -0
  909. package/dist/schemas/workflow/code-reality-artifacts.schema.js +150 -0
  910. package/dist/schemas/workflow/code-reality-read-model.schema.d.ts +12708 -0
  911. package/dist/schemas/workflow/code-reality-read-model.schema.js +237 -0
  912. package/dist/schemas/workflow/code-reality-task-traceability.schema.d.ts +124 -0
  913. package/dist/schemas/workflow/code-reality-task-traceability.schema.js +107 -0
  914. package/dist/schemas/workflow/command-center-spine.schema.d.ts +62 -0
  915. package/dist/schemas/workflow/command-center-spine.schema.js +58 -0
  916. package/dist/schemas/workflow/context-bundle.schema.d.ts +111 -0
  917. package/dist/schemas/workflow/context-bundle.schema.js +62 -0
  918. package/dist/schemas/workflow/context-contamination.schema.d.ts +284 -0
  919. package/dist/schemas/workflow/context-contamination.schema.js +65 -0
  920. package/dist/schemas/workflow/deployment-evidence.schema.d.ts +269 -0
  921. package/dist/schemas/workflow/deployment-evidence.schema.js +55 -0
  922. package/dist/schemas/workflow/doc-draft-artifact.schema.d.ts +126 -0
  923. package/dist/schemas/workflow/doc-draft-artifact.schema.js +52 -0
  924. package/dist/schemas/workflow/domain-acceptance.schema.d.ts +206 -0
  925. package/dist/schemas/workflow/domain-acceptance.schema.js +62 -0
  926. package/dist/schemas/workflow/engineering-context.schema.d.ts +2235 -0
  927. package/dist/schemas/workflow/engineering-context.schema.js +566 -0
  928. package/dist/schemas/workflow/existing-capability-classification.schema.d.ts +79 -0
  929. package/dist/schemas/workflow/existing-capability-classification.schema.js +28 -0
  930. package/dist/schemas/workflow/existing-codebase-context.schema.d.ts +865 -0
  931. package/dist/schemas/workflow/existing-codebase-context.schema.js +56 -0
  932. package/dist/schemas/workflow/findings-register.schema.d.ts +148 -0
  933. package/dist/schemas/workflow/findings-register.schema.js +35 -0
  934. package/dist/schemas/workflow/implement-first-batch.schema.d.ts +190 -0
  935. package/dist/schemas/workflow/implement-first-batch.schema.js +49 -0
  936. package/dist/schemas/workflow/implement-gate-status.schema.d.ts +823 -0
  937. package/dist/schemas/workflow/implement-gate-status.schema.js +94 -0
  938. package/dist/schemas/workflow/implement-stale-batch-repair.schema.d.ts +71 -0
  939. package/dist/schemas/workflow/implement-stale-batch-repair.schema.js +28 -0
  940. package/dist/schemas/workflow/implement-task-guard.schema.d.ts +27 -0
  941. package/dist/schemas/workflow/implement-task-guard.schema.js +35 -0
  942. package/dist/schemas/workflow/implementation-packet.schema.d.ts +200 -0
  943. package/dist/schemas/workflow/implementation-packet.schema.js +88 -0
  944. package/dist/schemas/workflow/import-validity.schema.d.ts +177 -0
  945. package/dist/schemas/workflow/import-validity.schema.js +71 -0
  946. package/dist/schemas/workflow/index.d.ts +14 -0
  947. package/dist/schemas/workflow/index.js +30 -0
  948. package/dist/schemas/workflow/ingest-dashboard.schema.d.ts +1094 -0
  949. package/dist/schemas/workflow/ingest-dashboard.schema.js +76 -0
  950. package/dist/schemas/workflow/ingest-gate.schema.d.ts +133 -0
  951. package/dist/schemas/workflow/ingest-gate.schema.js +27 -0
  952. package/dist/schemas/workflow/ingest-inventory.schema.d.ts +203 -0
  953. package/dist/schemas/workflow/ingest-inventory.schema.js +52 -0
  954. package/dist/schemas/workflow/knowledge-graph-result.schema.d.ts +90 -0
  955. package/dist/schemas/workflow/knowledge-graph-result.schema.js +37 -0
  956. package/dist/schemas/workflow/patch-file-scope-policy.schema.d.ts +62 -0
  957. package/dist/schemas/workflow/patch-file-scope-policy.schema.js +38 -0
  958. package/dist/schemas/workflow/patch-review-result.schema.d.ts +139 -0
  959. package/dist/schemas/workflow/patch-review-result.schema.js +58 -0
  960. package/dist/schemas/workflow/plan-approval.schema.d.ts +184 -0
  961. package/dist/schemas/workflow/plan-approval.schema.js +102 -0
  962. package/dist/schemas/workflow/product-readiness-response.schema.d.ts +307 -0
  963. package/dist/schemas/workflow/product-readiness-response.schema.js +81 -0
  964. package/dist/schemas/workflow/product-realization.schema.d.ts +259 -0
  965. package/dist/schemas/workflow/product-realization.schema.js +207 -0
  966. package/dist/schemas/workflow/product-route-manifest.schema.d.ts +785 -0
  967. package/dist/schemas/workflow/product-route-manifest.schema.js +161 -0
  968. package/dist/schemas/workflow/repair-specify-gate.schema.d.ts +33 -0
  969. package/dist/schemas/workflow/repair-specify-gate.schema.js +13 -0
  970. package/dist/schemas/workflow/repo-intel-snapshot.schema.d.ts +471 -0
  971. package/dist/schemas/workflow/repo-intel-snapshot.schema.js +98 -0
  972. package/dist/schemas/workflow/repo-policy-snapshot.schema.d.ts +365 -0
  973. package/dist/schemas/workflow/repo-policy-snapshot.schema.js +83 -0
  974. package/dist/schemas/workflow/review-acceptance.schema.d.ts +182 -0
  975. package/dist/schemas/workflow/review-acceptance.schema.js +66 -0
  976. package/dist/schemas/workflow/review-release-decision-operator.schema.d.ts +220 -0
  977. package/dist/schemas/workflow/review-release-decision-operator.schema.js +65 -0
  978. package/dist/schemas/workflow/route-manifest.schema.d.ts +239 -0
  979. package/dist/schemas/workflow/route-manifest.schema.js +82 -0
  980. package/dist/schemas/workflow/runtime-contract.schema.d.ts +384 -0
  981. package/dist/schemas/workflow/runtime-contract.schema.js +71 -0
  982. package/dist/schemas/workflow/schema-page-read-model.schema.d.ts +185 -0
  983. package/dist/schemas/workflow/schema-page-read-model.schema.js +29 -0
  984. package/dist/schemas/workflow/ship-closure.schema.d.ts +516 -0
  985. package/dist/schemas/workflow/ship-closure.schema.js +96 -0
  986. package/dist/schemas/workflow/software-workflow-lineage.schema.d.ts +384 -0
  987. package/dist/schemas/workflow/software-workflow-lineage.schema.js +54 -0
  988. package/dist/schemas/workflow/specify-mutation-health.schema.d.ts +72 -0
  989. package/dist/schemas/workflow/specify-mutation-health.schema.js +24 -0
  990. package/dist/schemas/workflow/step-evidence-resolution.schema.d.ts +49 -0
  991. package/dist/schemas/workflow/step-evidence-resolution.schema.js +36 -0
  992. package/dist/schemas/workflow/step-gate.schema.d.ts +312 -0
  993. package/dist/schemas/workflow/step-gate.schema.js +90 -0
  994. package/dist/schemas/workflow/task-capsule.schema.d.ts +414 -0
  995. package/dist/schemas/workflow/task-capsule.schema.js +99 -0
  996. package/dist/schemas/workflow/tasks-github-sync.schema.d.ts +60 -0
  997. package/dist/schemas/workflow/tasks-github-sync.schema.js +24 -0
  998. package/dist/schemas/workflow/tasks-repair-stale-implementing.schema.d.ts +86 -0
  999. package/dist/schemas/workflow/tasks-repair-stale-implementing.schema.js +38 -0
  1000. package/dist/schemas/workflow/tasks-truth.schema.d.ts +616 -0
  1001. package/dist/schemas/workflow/tasks-truth.schema.js +76 -0
  1002. package/dist/schemas/workflow/tasks-unblock-implement-handoff.schema.d.ts +210 -0
  1003. package/dist/schemas/workflow/tasks-unblock-implement-handoff.schema.js +17 -0
  1004. package/dist/schemas/workflow/test-obligation-manifest.schema.d.ts +306 -0
  1005. package/dist/schemas/workflow/test-obligation-manifest.schema.js +131 -0
  1006. package/dist/schemas/workflow/workflow-doctor.schema.d.ts +942 -0
  1007. package/dist/schemas/workflow/workflow-doctor.schema.js +141 -0
  1008. package/dist/schemas/workflow/workflow-evidence.schema.d.ts +67 -0
  1009. package/dist/schemas/workflow/workflow-evidence.schema.js +23 -0
  1010. package/dist/schemas/workflow/workflow-intelligence-graph.schema.d.ts +415 -0
  1011. package/dist/schemas/workflow/workflow-intelligence-graph.schema.js +213 -0
  1012. package/dist/schemas/workflow/workflow-run-event.schema.d.ts +41 -0
  1013. package/dist/schemas/workflow/workflow-run-event.schema.js +55 -0
  1014. package/dist/schemas/workflow-ci-step-artifacts.schema.d.ts +60 -0
  1015. package/dist/schemas/workflow-ci-step-artifacts.schema.js +15 -0
  1016. package/dist/schemas/workflow-implement-read-model.schema.d.ts +86 -0
  1017. package/dist/schemas/workflow-implement-read-model.schema.js +22 -0
  1018. package/dist/schemas/workflow-knowledge-step-artifacts.schema.d.ts +60 -0
  1019. package/dist/schemas/workflow-knowledge-step-artifacts.schema.js +15 -0
  1020. package/dist/schemas/workflow-progression.d.ts +1955 -0
  1021. package/dist/schemas/workflow-progression.js +259 -0
  1022. package/dist/telemetry/index.d.ts +194 -0
  1023. package/dist/telemetry/index.js +93 -0
  1024. package/dist/transformation/canonical-semantic-model.d.ts +233 -0
  1025. package/dist/transformation/canonical-semantic-model.js +61 -0
  1026. package/dist/transformation/index.d.ts +6 -0
  1027. package/dist/transformation/index.js +22 -0
  1028. package/dist/transformation/transformation-registry.d.ts +136 -0
  1029. package/dist/transformation/transformation-registry.js +100 -0
  1030. package/dist/types/ai-responses.d.ts +98 -0
  1031. package/dist/types/ai-responses.js +42 -0
  1032. package/dist/types/ai.d.ts +4 -0
  1033. package/dist/types/ai.js +2 -0
  1034. package/dist/types/audiobook-embed.d.ts +22 -0
  1035. package/dist/types/audiobook-embed.js +2 -0
  1036. package/dist/types/audiobook.d.ts +30 -0
  1037. package/dist/types/audiobook.js +2 -0
  1038. package/dist/types/chapter-revision.types.d.ts +6 -0
  1039. package/dist/types/chapter-revision.types.js +6 -0
  1040. package/dist/types/ci.d.ts +14 -0
  1041. package/dist/types/ci.js +2 -0
  1042. package/dist/types/codebase.d.ts +309 -0
  1043. package/dist/types/codebase.js +83 -0
  1044. package/dist/types/community-credit-transaction-type.d.ts +2 -0
  1045. package/dist/types/community-credit-transaction-type.js +9 -0
  1046. package/dist/types/community-membership-tier.d.ts +2 -0
  1047. package/dist/types/community-membership-tier.js +4 -0
  1048. package/dist/types/community-operator-role.d.ts +9 -0
  1049. package/dist/types/community-operator-role.js +13 -0
  1050. package/dist/types/community-stage.d.ts +3 -0
  1051. package/dist/types/community-stage.js +19 -0
  1052. package/dist/types/graph-canvas.d.ts +109 -0
  1053. package/dist/types/graph-canvas.js +25 -0
  1054. package/dist/types/graph-question-mapping.d.ts +33 -0
  1055. package/dist/types/graph-question-mapping.js +36 -0
  1056. package/dist/types/index.d.ts +2187 -0
  1057. package/dist/types/index.js +53 -0
  1058. package/dist/types/manuscript-checks.d.ts +1 -0
  1059. package/dist/types/manuscript-checks.js +2 -0
  1060. package/dist/types/orchestration-execution.d.ts +16 -0
  1061. package/dist/types/orchestration-execution.js +5 -0
  1062. package/dist/types/product-readiness.d.ts +44 -0
  1063. package/dist/types/product-readiness.js +2 -0
  1064. package/dist/types/product-route-manifest.d.ts +5 -0
  1065. package/dist/types/product-route-manifest.js +21 -0
  1066. package/dist/types/project-capabilities.d.ts +20 -0
  1067. package/dist/types/project-capabilities.js +40 -0
  1068. package/dist/types/project-kind.d.ts +68 -0
  1069. package/dist/types/project-kind.js +216 -0
  1070. package/dist/types/pwa.d.ts +29 -0
  1071. package/dist/types/pwa.js +6 -0
  1072. package/dist/types/repo.d.ts +2 -0
  1073. package/dist/types/repo.js +2 -0
  1074. package/dist/types/resolve-model-policy-input.d.ts +37 -0
  1075. package/dist/types/resolve-model-policy-input.js +2 -0
  1076. package/dist/types/settings.d.ts +13 -0
  1077. package/dist/types/settings.js +20 -0
  1078. package/dist/types/supabase-generated.d.ts +1122 -0
  1079. package/dist/types/supabase-generated.js +13 -0
  1080. package/dist/types/workflow-action-panel.d.ts +41 -0
  1081. package/dist/types/workflow-action-panel.js +2 -0
  1082. package/dist/types/workflow-command-center.d.ts +50 -0
  1083. package/dist/types/workflow-command-center.js +6 -0
  1084. package/dist/types/workflow-completion.d.ts +154 -0
  1085. package/dist/types/workflow-completion.js +2 -0
  1086. package/dist/types/workflow-graph.d.ts +786 -0
  1087. package/dist/types/workflow-graph.js +119 -0
  1088. package/dist/ui/domain-templates.d.ts +35 -0
  1089. package/dist/ui/domain-templates.js +242 -0
  1090. package/dist/utils/github-closing-keywords.d.ts +8 -0
  1091. package/dist/utils/github-closing-keywords.js +27 -0
  1092. package/dist/utils/implement-pr-batch-policy.d.ts +17 -0
  1093. package/dist/utils/implement-pr-batch-policy.js +72 -0
  1094. package/dist/utils/implement-pr-batch.d.ts +19 -0
  1095. package/dist/utils/implement-pr-batch.js +95 -0
  1096. package/dist/utils/implement-pr-metadata.d.ts +32 -0
  1097. package/dist/utils/implement-pr-metadata.js +41 -0
  1098. package/dist/workflow/api-route-key-resolver.d.ts +11 -0
  1099. package/dist/workflow/api-route-key-resolver.js +51 -0
  1100. package/dist/workflow/assurance-selector-keys.d.ts +134 -0
  1101. package/dist/workflow/assurance-selector-keys.js +145 -0
  1102. package/dist/workflow/channel-registry.d.ts +959 -0
  1103. package/dist/workflow/channel-registry.js +1475 -0
  1104. package/dist/workflow/evaluate-existing-codebase-readiness.d.ts +28 -0
  1105. package/dist/workflow/evaluate-existing-codebase-readiness.js +329 -0
  1106. package/dist/workflow/evaluate-ingest-gate.d.ts +11 -0
  1107. package/dist/workflow/evaluate-ingest-gate.js +168 -0
  1108. package/dist/workflow/evaluate-repair-specify-gate.d.ts +10 -0
  1109. package/dist/workflow/evaluate-repair-specify-gate.js +93 -0
  1110. package/dist/workflow/existing-codebase-step-area-map.d.ts +4 -0
  1111. package/dist/workflow/existing-codebase-step-area-map.js +22 -0
  1112. package/dist/workflow/film-spine-nav-aliases.d.ts +23 -0
  1113. package/dist/workflow/film-spine-nav-aliases.js +76 -0
  1114. package/dist/workflow/index.d.ts +23 -0
  1115. package/dist/workflow/index.js +39 -0
  1116. package/dist/workflow/is-code-reality-semantically-mapped.d.ts +8 -0
  1117. package/dist/workflow/is-code-reality-semantically-mapped.js +21 -0
  1118. package/dist/workflow/is-repository-scan-complete.d.ts +11 -0
  1119. package/dist/workflow/is-repository-scan-complete.js +28 -0
  1120. package/dist/workflow/normalize-workflow-execution-mode.d.ts +4 -0
  1121. package/dist/workflow/normalize-workflow-execution-mode.js +16 -0
  1122. package/dist/workflow/project-kind-normalizer.d.ts +34 -0
  1123. package/dist/workflow/project-kind-normalizer.js +162 -0
  1124. package/dist/workflow/resolve-workflow-variant.d.ts +42 -0
  1125. package/dist/workflow/resolve-workflow-variant.js +101 -0
  1126. package/dist/workflow/step-id-canonical.d.ts +26 -0
  1127. package/dist/workflow/step-id-canonical.js +58 -0
  1128. package/dist/workflow/test-obligation-policy.d.ts +12 -0
  1129. package/dist/workflow/test-obligation-policy.js +82 -0
  1130. package/dist/workflow/test-policy-registry.d.ts +45 -0
  1131. package/dist/workflow/test-policy-registry.js +190 -0
  1132. package/dist/workflow/workflow-assurance-completion-probe-gates.d.ts +43 -0
  1133. package/dist/workflow/workflow-assurance-completion-probe-gates.js +88 -0
  1134. package/dist/workflow/workflow-assurance-manifest.d.ts +84 -0
  1135. package/dist/workflow/workflow-assurance-manifest.js +309 -0
  1136. package/dist/workflow/workflow-assurance-wiring-tiers.d.ts +13 -0
  1137. package/dist/workflow/workflow-assurance-wiring-tiers.js +32 -0
  1138. package/dist/workflow/workflow-doctor-closure.d.ts +16 -0
  1139. package/dist/workflow/workflow-doctor-closure.js +245 -0
  1140. package/package.json +83 -4
  1141. package/README.md +0 -3
@@ -0,0 +1,2056 @@
1
+ import { z } from "zod";
2
+ /** POST /api/ai/architecture/generate */
3
+ export declare const ArchitectureGenerateInputSchema: z.ZodEffects<z.ZodObject<{
4
+ projectId: z.ZodString;
5
+ roleId: z.ZodOptional<z.ZodString>;
6
+ /** Human project intent captured before Plan (#826). Overrides project.description when present. */
7
+ userBrief: z.ZodOptional<z.ZodString>;
8
+ } & {
9
+ orchestrationId: z.ZodOptional<z.ZodString>;
10
+ } & {
11
+ mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["generate", "refine"]>>>;
12
+ instructions: z.ZodOptional<z.ZodString>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ projectId: string;
15
+ mode: "generate" | "refine";
16
+ orchestrationId?: string | undefined;
17
+ roleId?: string | undefined;
18
+ instructions?: string | undefined;
19
+ userBrief?: string | undefined;
20
+ }, {
21
+ projectId: string;
22
+ mode?: "generate" | "refine" | undefined;
23
+ orchestrationId?: string | undefined;
24
+ roleId?: string | undefined;
25
+ instructions?: string | undefined;
26
+ userBrief?: string | undefined;
27
+ }>, {
28
+ projectId: string;
29
+ mode: "generate" | "refine";
30
+ orchestrationId?: string | undefined;
31
+ roleId?: string | undefined;
32
+ instructions?: string | undefined;
33
+ userBrief?: string | undefined;
34
+ }, {
35
+ projectId: string;
36
+ mode?: "generate" | "refine" | undefined;
37
+ orchestrationId?: string | undefined;
38
+ roleId?: string | undefined;
39
+ instructions?: string | undefined;
40
+ userBrief?: string | undefined;
41
+ }>;
42
+ export type ArchitectureGenerateInput = z.infer<typeof ArchitectureGenerateInputSchema>;
43
+ /** POST /api/ai/api/generate */
44
+ export declare const ApiGenerateInputSchema: z.ZodEffects<z.ZodObject<{
45
+ projectId: z.ZodString;
46
+ specIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
47
+ includeValidation: z.ZodDefault<z.ZodBoolean>;
48
+ includeMiddleware: z.ZodDefault<z.ZodBoolean>;
49
+ includeRateLimit: z.ZodDefault<z.ZodBoolean>;
50
+ roleId: z.ZodOptional<z.ZodString>;
51
+ } & {
52
+ orchestrationId: z.ZodOptional<z.ZodString>;
53
+ } & {
54
+ mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["generate", "refine"]>>>;
55
+ instructions: z.ZodOptional<z.ZodString>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ projectId: string;
58
+ mode: "generate" | "refine";
59
+ includeValidation: boolean;
60
+ includeMiddleware: boolean;
61
+ includeRateLimit: boolean;
62
+ orchestrationId?: string | undefined;
63
+ roleId?: string | undefined;
64
+ instructions?: string | undefined;
65
+ specIds?: string[] | undefined;
66
+ }, {
67
+ projectId: string;
68
+ mode?: "generate" | "refine" | undefined;
69
+ orchestrationId?: string | undefined;
70
+ roleId?: string | undefined;
71
+ instructions?: string | undefined;
72
+ specIds?: string[] | undefined;
73
+ includeValidation?: boolean | undefined;
74
+ includeMiddleware?: boolean | undefined;
75
+ includeRateLimit?: boolean | undefined;
76
+ }>, {
77
+ projectId: string;
78
+ mode: "generate" | "refine";
79
+ includeValidation: boolean;
80
+ includeMiddleware: boolean;
81
+ includeRateLimit: boolean;
82
+ orchestrationId?: string | undefined;
83
+ roleId?: string | undefined;
84
+ instructions?: string | undefined;
85
+ specIds?: string[] | undefined;
86
+ }, {
87
+ projectId: string;
88
+ mode?: "generate" | "refine" | undefined;
89
+ orchestrationId?: string | undefined;
90
+ roleId?: string | undefined;
91
+ instructions?: string | undefined;
92
+ specIds?: string[] | undefined;
93
+ includeValidation?: boolean | undefined;
94
+ includeMiddleware?: boolean | undefined;
95
+ includeRateLimit?: boolean | undefined;
96
+ }>;
97
+ export type ApiGenerateInput = z.infer<typeof ApiGenerateInputSchema>;
98
+ export declare const PersistedApiEndpointMethodSchema: z.ZodEnum<["GET", "POST", "PATCH", "DELETE", "PUT"]>;
99
+ export declare const PersistedApiDefinitionEndpointSchema: z.ZodObject<{
100
+ id: z.ZodString;
101
+ method: z.ZodEnum<["GET", "POST", "PATCH", "DELETE", "PUT"]>;
102
+ path: z.ZodString;
103
+ summary: z.ZodString;
104
+ tablesUsed: z.ZodArray<z.ZodString, "many">;
105
+ requestSchemaName: z.ZodOptional<z.ZodString>;
106
+ responseSchemaName: z.ZodOptional<z.ZodString>;
107
+ errorCodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
108
+ }, "strip", z.ZodTypeAny, {
109
+ id: string;
110
+ path: string;
111
+ summary: string;
112
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
113
+ tablesUsed: string[];
114
+ requestSchemaName?: string | undefined;
115
+ responseSchemaName?: string | undefined;
116
+ errorCodes?: string[] | undefined;
117
+ }, {
118
+ id: string;
119
+ path: string;
120
+ summary: string;
121
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
122
+ tablesUsed: string[];
123
+ requestSchemaName?: string | undefined;
124
+ responseSchemaName?: string | undefined;
125
+ errorCodes?: string[] | undefined;
126
+ }>;
127
+ export type PersistedApiDefinitionEndpoint = z.infer<typeof PersistedApiDefinitionEndpointSchema>;
128
+ export declare const GeneratedApiDefinitionRowSchema: z.ZodObject<{
129
+ id: z.ZodString;
130
+ project_id: z.ZodString;
131
+ name: z.ZodString;
132
+ endpoints: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
133
+ id: z.ZodString;
134
+ method: z.ZodEnum<["GET", "POST", "PATCH", "DELETE", "PUT"]>;
135
+ path: z.ZodString;
136
+ summary: z.ZodString;
137
+ tablesUsed: z.ZodArray<z.ZodString, "many">;
138
+ requestSchemaName: z.ZodOptional<z.ZodString>;
139
+ responseSchemaName: z.ZodOptional<z.ZodString>;
140
+ errorCodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
141
+ }, "strip", z.ZodTypeAny, {
142
+ id: string;
143
+ path: string;
144
+ summary: string;
145
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
146
+ tablesUsed: string[];
147
+ requestSchemaName?: string | undefined;
148
+ responseSchemaName?: string | undefined;
149
+ errorCodes?: string[] | undefined;
150
+ }, {
151
+ id: string;
152
+ path: string;
153
+ summary: string;
154
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
155
+ tablesUsed: string[];
156
+ requestSchemaName?: string | undefined;
157
+ responseSchemaName?: string | undefined;
158
+ errorCodes?: string[] | undefined;
159
+ }>, "many">>>;
160
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
161
+ created_at: z.ZodString;
162
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
163
+ }, "strip", z.ZodTypeAny, {
164
+ id: string;
165
+ name: string;
166
+ created_at: string;
167
+ project_id: string;
168
+ data?: unknown;
169
+ updated_at?: string | null | undefined;
170
+ endpoints?: {
171
+ id: string;
172
+ path: string;
173
+ summary: string;
174
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
175
+ tablesUsed: string[];
176
+ requestSchemaName?: string | undefined;
177
+ responseSchemaName?: string | undefined;
178
+ errorCodes?: string[] | undefined;
179
+ }[] | null | undefined;
180
+ }, {
181
+ id: string;
182
+ name: string;
183
+ created_at: string;
184
+ project_id: string;
185
+ data?: unknown;
186
+ updated_at?: string | null | undefined;
187
+ endpoints?: {
188
+ id: string;
189
+ path: string;
190
+ summary: string;
191
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
192
+ tablesUsed: string[];
193
+ requestSchemaName?: string | undefined;
194
+ responseSchemaName?: string | undefined;
195
+ errorCodes?: string[] | undefined;
196
+ }[] | null | undefined;
197
+ }>;
198
+ export type GeneratedApiDefinitionRow = z.infer<typeof GeneratedApiDefinitionRowSchema>;
199
+ /** GET /api/projects/[id]/api-definitions — list generated API definition rows for API step UI. */
200
+ export declare const ProjectGeneratedApiDefinitionsListResponseSchema: z.ZodObject<{
201
+ success: z.ZodLiteral<true>;
202
+ data: z.ZodArray<z.ZodObject<{
203
+ id: z.ZodString;
204
+ project_id: z.ZodString;
205
+ name: z.ZodString;
206
+ endpoints: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
207
+ id: z.ZodString;
208
+ method: z.ZodEnum<["GET", "POST", "PATCH", "DELETE", "PUT"]>;
209
+ path: z.ZodString;
210
+ summary: z.ZodString;
211
+ tablesUsed: z.ZodArray<z.ZodString, "many">;
212
+ requestSchemaName: z.ZodOptional<z.ZodString>;
213
+ responseSchemaName: z.ZodOptional<z.ZodString>;
214
+ errorCodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
215
+ }, "strip", z.ZodTypeAny, {
216
+ id: string;
217
+ path: string;
218
+ summary: string;
219
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
220
+ tablesUsed: string[];
221
+ requestSchemaName?: string | undefined;
222
+ responseSchemaName?: string | undefined;
223
+ errorCodes?: string[] | undefined;
224
+ }, {
225
+ id: string;
226
+ path: string;
227
+ summary: string;
228
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
229
+ tablesUsed: string[];
230
+ requestSchemaName?: string | undefined;
231
+ responseSchemaName?: string | undefined;
232
+ errorCodes?: string[] | undefined;
233
+ }>, "many">>>;
234
+ data: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
235
+ created_at: z.ZodString;
236
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
237
+ }, "strip", z.ZodTypeAny, {
238
+ id: string;
239
+ name: string;
240
+ created_at: string;
241
+ project_id: string;
242
+ data?: unknown;
243
+ updated_at?: string | null | undefined;
244
+ endpoints?: {
245
+ id: string;
246
+ path: string;
247
+ summary: string;
248
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
249
+ tablesUsed: string[];
250
+ requestSchemaName?: string | undefined;
251
+ responseSchemaName?: string | undefined;
252
+ errorCodes?: string[] | undefined;
253
+ }[] | null | undefined;
254
+ }, {
255
+ id: string;
256
+ name: string;
257
+ created_at: string;
258
+ project_id: string;
259
+ data?: unknown;
260
+ updated_at?: string | null | undefined;
261
+ endpoints?: {
262
+ id: string;
263
+ path: string;
264
+ summary: string;
265
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
266
+ tablesUsed: string[];
267
+ requestSchemaName?: string | undefined;
268
+ responseSchemaName?: string | undefined;
269
+ errorCodes?: string[] | undefined;
270
+ }[] | null | undefined;
271
+ }>, "many">;
272
+ }, "strip", z.ZodTypeAny, {
273
+ success: true;
274
+ data: {
275
+ id: string;
276
+ name: string;
277
+ created_at: string;
278
+ project_id: string;
279
+ data?: unknown;
280
+ updated_at?: string | null | undefined;
281
+ endpoints?: {
282
+ id: string;
283
+ path: string;
284
+ summary: string;
285
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
286
+ tablesUsed: string[];
287
+ requestSchemaName?: string | undefined;
288
+ responseSchemaName?: string | undefined;
289
+ errorCodes?: string[] | undefined;
290
+ }[] | null | undefined;
291
+ }[];
292
+ }, {
293
+ success: true;
294
+ data: {
295
+ id: string;
296
+ name: string;
297
+ created_at: string;
298
+ project_id: string;
299
+ data?: unknown;
300
+ updated_at?: string | null | undefined;
301
+ endpoints?: {
302
+ id: string;
303
+ path: string;
304
+ summary: string;
305
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
306
+ tablesUsed: string[];
307
+ requestSchemaName?: string | undefined;
308
+ responseSchemaName?: string | undefined;
309
+ errorCodes?: string[] | undefined;
310
+ }[] | null | undefined;
311
+ }[];
312
+ }>;
313
+ export type ProjectGeneratedApiDefinitionsListResponse = z.infer<typeof ProjectGeneratedApiDefinitionsListResponseSchema>;
314
+ /** POST /api/ai/components/generate (UI) */
315
+ export declare const ComponentsGenerateInputSchema: z.ZodEffects<z.ZodObject<{
316
+ projectId: z.ZodString;
317
+ roleId: z.ZodOptional<z.ZodString>;
318
+ } & {
319
+ orchestrationId: z.ZodOptional<z.ZodString>;
320
+ } & {
321
+ mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["generate", "refine"]>>>;
322
+ instructions: z.ZodOptional<z.ZodString>;
323
+ }, "strip", z.ZodTypeAny, {
324
+ projectId: string;
325
+ mode: "generate" | "refine";
326
+ orchestrationId?: string | undefined;
327
+ roleId?: string | undefined;
328
+ instructions?: string | undefined;
329
+ }, {
330
+ projectId: string;
331
+ mode?: "generate" | "refine" | undefined;
332
+ orchestrationId?: string | undefined;
333
+ roleId?: string | undefined;
334
+ instructions?: string | undefined;
335
+ }>, {
336
+ projectId: string;
337
+ mode: "generate" | "refine";
338
+ orchestrationId?: string | undefined;
339
+ roleId?: string | undefined;
340
+ instructions?: string | undefined;
341
+ }, {
342
+ projectId: string;
343
+ mode?: "generate" | "refine" | undefined;
344
+ orchestrationId?: string | undefined;
345
+ roleId?: string | undefined;
346
+ instructions?: string | undefined;
347
+ }>;
348
+ export type ComponentsGenerateInput = z.infer<typeof ComponentsGenerateInputSchema>;
349
+ /** POST /api/ai/code/generate */
350
+ export declare const CodeGenerateInputSchema: z.ZodEffects<z.ZodObject<{
351
+ projectId: z.ZodString;
352
+ roleId: z.ZodOptional<z.ZodString>;
353
+ /** Optional implement execution engine; cursor_cloud routes codegen to Cursor adapter when enabled. */
354
+ engine: z.ZodOptional<z.ZodEnum<["openai", "cursor_cloud"]>>;
355
+ /** Writing kind only: zero-based chapter index from the outline */
356
+ chapterIndex: z.ZodOptional<z.ZodNumber>;
357
+ /** Writing kind only: chapter title from the outline */
358
+ chapterTitle: z.ZodOptional<z.ZodString>;
359
+ /** Writing kind only: chapter summary from the outline */
360
+ chapterSummary: z.ZodOptional<z.ZodString>;
361
+ /** Writing kind only: key arguments for this chapter */
362
+ keyArguments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
363
+ /** Writing kind only: thesis statement from thesisFinal artifact */
364
+ thesisStatement: z.ZodOptional<z.ZodString>;
365
+ /** Writing kind only: narrative arc from outlineFinal artifact */
366
+ narrativeArc: z.ZodOptional<z.ZodString>;
367
+ /** Writing kind only: draft all chapters mode */
368
+ draftAll: z.ZodOptional<z.ZodBoolean>;
369
+ /** Writing kind only: draft mode for draft-all orchestration */
370
+ draftMode: z.ZodOptional<z.ZodEnum<["fast", "checkpoint", "editorial", "guardian_gated"]>>;
371
+ /** Writing kind only: length profile for draft-all orchestration */
372
+ lengthProfile: z.ZodOptional<z.ZodEnum<["short", "standard", "deep", "technical", "custom"]>>;
373
+ /** Writing kind only: guardian threshold for draft-all (0-100) */
374
+ guardianThreshold: z.ZodOptional<z.ZodNumber>;
375
+ /** Writing kind only: per-chapter orchestration action (prepare / chapter / rollup) */
376
+ draftAllAction: z.ZodOptional<z.ZodEnum<["prepare", "chapter", "chapter_prose", "chapter_finalize", "rollup"]>>;
377
+ /** Writing kind only: chapter task for 'chapter' action */
378
+ draftAllTask: z.ZodOptional<z.ZodObject<{
379
+ chapterId: z.ZodString;
380
+ chapterNumber: z.ZodNumber;
381
+ partId: z.ZodOptional<z.ZodString>;
382
+ partNumber: z.ZodOptional<z.ZodNumber>;
383
+ title: z.ZodString;
384
+ purpose: z.ZodString;
385
+ readerQuestion: z.ZodDefault<z.ZodString>;
386
+ directAnswer: z.ZodDefault<z.ZodString>;
387
+ newContribution: z.ZodDefault<z.ZodString>;
388
+ readerPayoff: z.ZodDefault<z.ZodString>;
389
+ relationshipToPriorChapters: z.ZodDefault<z.ZodString>;
390
+ exitCriteria: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
391
+ audioArc: z.ZodDefault<z.ZodString>;
392
+ paragraphPlan: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
393
+ sourcePlanChapterHash: z.ZodDefault<z.ZodString>;
394
+ targetWordCount: z.ZodNumber;
395
+ requiredClaimIds: z.ZodArray<z.ZodString, "many">;
396
+ requiredDefinitionIds: z.ZodArray<z.ZodString, "many">;
397
+ requiredSourceIds: z.ZodArray<z.ZodString, "many">;
398
+ counterclaimsToAddress: z.ZodArray<z.ZodString, "many">;
399
+ previousChapterSummary: z.ZodOptional<z.ZodString>;
400
+ }, "strip", z.ZodTypeAny, {
401
+ title: string;
402
+ directAnswer: string;
403
+ chapterId: string;
404
+ purpose: string;
405
+ counterclaimsToAddress: string[];
406
+ chapterNumber: number;
407
+ readerQuestion: string;
408
+ newContribution: string;
409
+ readerPayoff: string;
410
+ relationshipToPriorChapters: string;
411
+ exitCriteria: string[];
412
+ audioArc: string;
413
+ paragraphPlan: Record<string, unknown>[];
414
+ sourcePlanChapterHash: string;
415
+ targetWordCount: number;
416
+ requiredClaimIds: string[];
417
+ requiredDefinitionIds: string[];
418
+ requiredSourceIds: string[];
419
+ partId?: string | undefined;
420
+ partNumber?: number | undefined;
421
+ previousChapterSummary?: string | undefined;
422
+ }, {
423
+ title: string;
424
+ chapterId: string;
425
+ purpose: string;
426
+ counterclaimsToAddress: string[];
427
+ chapterNumber: number;
428
+ targetWordCount: number;
429
+ requiredClaimIds: string[];
430
+ requiredDefinitionIds: string[];
431
+ requiredSourceIds: string[];
432
+ directAnswer?: string | undefined;
433
+ partId?: string | undefined;
434
+ partNumber?: number | undefined;
435
+ readerQuestion?: string | undefined;
436
+ newContribution?: string | undefined;
437
+ readerPayoff?: string | undefined;
438
+ relationshipToPriorChapters?: string | undefined;
439
+ exitCriteria?: string[] | undefined;
440
+ audioArc?: string | undefined;
441
+ paragraphPlan?: Record<string, unknown>[] | undefined;
442
+ sourcePlanChapterHash?: string | undefined;
443
+ previousChapterSummary?: string | undefined;
444
+ }>>;
445
+ /** Writing kind only: manuscript context bundle for 'chapter' action */
446
+ draftAllContext: z.ZodOptional<z.ZodObject<{
447
+ bookTitle: z.ZodString;
448
+ thesis: z.ZodString;
449
+ allClaims: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
450
+ allDefs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
451
+ allSources: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
452
+ allCounterclaims: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
453
+ constitutionPrinciples: z.ZodString;
454
+ styleRules: z.ZodString;
455
+ humanIntentContract: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
456
+ narrativeVoiceContract: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
457
+ semanticWritingContract: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
458
+ sourcePlanArtifactId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
459
+ targetWordCount: z.ZodNumber;
460
+ outlineParts: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
461
+ nonfictionEvidence: z.ZodOptional<z.ZodObject<{
462
+ claimRiskPolicy: z.ZodString;
463
+ validationRules: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
464
+ researchTasks: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
465
+ chapterScheduleEntries: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
466
+ }, "strip", z.ZodTypeAny, {
467
+ researchTasks: Record<string, unknown>[];
468
+ claimRiskPolicy: string;
469
+ validationRules: Record<string, unknown>[];
470
+ chapterScheduleEntries: Record<string, unknown>[];
471
+ }, {
472
+ researchTasks: Record<string, unknown>[];
473
+ claimRiskPolicy: string;
474
+ validationRules: Record<string, unknown>[];
475
+ chapterScheduleEntries: Record<string, unknown>[];
476
+ }>>;
477
+ }, "strip", z.ZodTypeAny, {
478
+ thesis: string;
479
+ sourcePlanArtifactId: string | null;
480
+ targetWordCount: number;
481
+ bookTitle: string;
482
+ allClaims: Record<string, unknown>[];
483
+ allDefs: Record<string, unknown>[];
484
+ allSources: Record<string, unknown>[];
485
+ allCounterclaims: Record<string, unknown>[];
486
+ constitutionPrinciples: string;
487
+ styleRules: string;
488
+ humanIntentContract: Record<string, unknown> | null;
489
+ narrativeVoiceContract: Record<string, unknown> | null;
490
+ semanticWritingContract: Record<string, unknown> | null;
491
+ outlineParts: Record<string, unknown> | null;
492
+ nonfictionEvidence?: {
493
+ researchTasks: Record<string, unknown>[];
494
+ claimRiskPolicy: string;
495
+ validationRules: Record<string, unknown>[];
496
+ chapterScheduleEntries: Record<string, unknown>[];
497
+ } | undefined;
498
+ }, {
499
+ thesis: string;
500
+ targetWordCount: number;
501
+ bookTitle: string;
502
+ allClaims: Record<string, unknown>[];
503
+ allDefs: Record<string, unknown>[];
504
+ allSources: Record<string, unknown>[];
505
+ allCounterclaims: Record<string, unknown>[];
506
+ constitutionPrinciples: string;
507
+ styleRules: string;
508
+ outlineParts: Record<string, unknown> | null;
509
+ sourcePlanArtifactId?: string | null | undefined;
510
+ humanIntentContract?: Record<string, unknown> | null | undefined;
511
+ narrativeVoiceContract?: Record<string, unknown> | null | undefined;
512
+ semanticWritingContract?: Record<string, unknown> | null | undefined;
513
+ nonfictionEvidence?: {
514
+ researchTasks: Record<string, unknown>[];
515
+ claimRiskPolicy: string;
516
+ validationRules: Record<string, unknown>[];
517
+ chapterScheduleEntries: Record<string, unknown>[];
518
+ } | undefined;
519
+ }>>;
520
+ /** Writing kind only: rolling argument ledger for 'chapter' action */
521
+ draftAllCurrentLedger: z.ZodOptional<z.ZodObject<{
522
+ establishedClaims: z.ZodArray<z.ZodString, "many">;
523
+ introducedDefinitions: z.ZodArray<z.ZodString, "many">;
524
+ recurringTerms: z.ZodArray<z.ZodString, "many">;
525
+ unresolvedQuestions: z.ZodArray<z.ZodString, "many">;
526
+ openLoops: z.ZodArray<z.ZodString, "many">;
527
+ evidenceAlreadyUsed: z.ZodArray<z.ZodString, "many">;
528
+ examplesAlreadyUsed: z.ZodArray<z.ZodString, "many">;
529
+ metaphorsAlreadyUsed: z.ZodArray<z.ZodString, "many">;
530
+ prohibitedRepetition: z.ZodArray<z.ZodString, "many">;
531
+ nextChapterPromises: z.ZodArray<z.ZodString, "many">;
532
+ toneContinuityNotes: z.ZodArray<z.ZodString, "many">;
533
+ }, "strip", z.ZodTypeAny, {
534
+ establishedClaims: string[];
535
+ introducedDefinitions: string[];
536
+ recurringTerms: string[];
537
+ unresolvedQuestions: string[];
538
+ openLoops: string[];
539
+ evidenceAlreadyUsed: string[];
540
+ examplesAlreadyUsed: string[];
541
+ metaphorsAlreadyUsed: string[];
542
+ prohibitedRepetition: string[];
543
+ nextChapterPromises: string[];
544
+ toneContinuityNotes: string[];
545
+ }, {
546
+ establishedClaims: string[];
547
+ introducedDefinitions: string[];
548
+ recurringTerms: string[];
549
+ unresolvedQuestions: string[];
550
+ openLoops: string[];
551
+ evidenceAlreadyUsed: string[];
552
+ examplesAlreadyUsed: string[];
553
+ metaphorsAlreadyUsed: string[];
554
+ prohibitedRepetition: string[];
555
+ nextChapterPromises: string[];
556
+ toneContinuityNotes: string[];
557
+ }>>;
558
+ /** Writing kind only: per-chapter guardian/repair options */
559
+ draftAllOptions: z.ZodOptional<z.ZodObject<{
560
+ guardianThreshold: z.ZodNumber;
561
+ autoRepairOnFail: z.ZodBoolean;
562
+ }, "strip", z.ZodTypeAny, {
563
+ guardianThreshold: number;
564
+ autoRepairOnFail: boolean;
565
+ }, {
566
+ guardianThreshold: number;
567
+ autoRepairOnFail: boolean;
568
+ }>>;
569
+ /** Writing kind only: scaffold payload for 'chapter_finalize' action */
570
+ draftAllScaffoldPayload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
571
+ /** Writing kind only: prose payload for 'chapter_finalize' action */
572
+ draftAllProsePayload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
573
+ /** Writing kind only: completed chapters for 'rollup' action */
574
+ draftAllCompletedChapters: z.ZodOptional<z.ZodArray<z.ZodObject<{
575
+ chapterId: z.ZodString;
576
+ chapterNumber: z.ZodNumber;
577
+ title: z.ZodString;
578
+ version: z.ZodNumber;
579
+ targetWordCount: z.ZodNumber;
580
+ actualWordCount: z.ZodNumber;
581
+ proseMarkdown: z.ZodString;
582
+ sectionStructure: z.ZodArray<z.ZodObject<{
583
+ heading: z.ZodString;
584
+ content: z.ZodString;
585
+ wordCount: z.ZodNumber;
586
+ claimsUsed: z.ZodArray<z.ZodString, "many">;
587
+ definitionsUsed: z.ZodArray<z.ZodString, "many">;
588
+ sourcesUsed: z.ZodArray<z.ZodString, "many">;
589
+ }, "strip", z.ZodTypeAny, {
590
+ content: string;
591
+ heading: string;
592
+ wordCount: number;
593
+ claimsUsed: string[];
594
+ definitionsUsed: string[];
595
+ sourcesUsed: string[];
596
+ }, {
597
+ content: string;
598
+ heading: string;
599
+ wordCount: number;
600
+ claimsUsed: string[];
601
+ definitionsUsed: string[];
602
+ sourcesUsed: string[];
603
+ }>, "many">;
604
+ claimsUsed: z.ZodArray<z.ZodString, "many">;
605
+ definitionsUsed: z.ZodArray<z.ZodString, "many">;
606
+ sourcesSuggested: z.ZodArray<z.ZodString, "many">;
607
+ unresolvedEvidenceNeeds: z.ZodArray<z.ZodString, "many">;
608
+ evidenceIntegrationPoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
609
+ location: z.ZodString;
610
+ claimText: z.ZodString;
611
+ evidenceStrength: z.ZodEnum<["strong", "moderate", "weak", "speculative"]>;
612
+ sourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
613
+ needsSourceAssignment: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
614
+ }, "strip", z.ZodTypeAny, {
615
+ location: string;
616
+ claimText: string;
617
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
618
+ sourceId?: string | null | undefined;
619
+ needsSourceAssignment?: boolean | null | undefined;
620
+ }, {
621
+ location: string;
622
+ claimText: string;
623
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
624
+ sourceId?: string | null | undefined;
625
+ needsSourceAssignment?: boolean | null | undefined;
626
+ }>, "many">>;
627
+ continuitySummary: z.ZodString;
628
+ ledgerUpdate: z.ZodObject<{
629
+ establishedClaims: z.ZodArray<z.ZodString, "many">;
630
+ introducedDefinitions: z.ZodArray<z.ZodString, "many">;
631
+ recurringTerms: z.ZodArray<z.ZodString, "many">;
632
+ unresolvedQuestions: z.ZodArray<z.ZodString, "many">;
633
+ openLoops: z.ZodArray<z.ZodString, "many">;
634
+ evidenceAlreadyUsed: z.ZodArray<z.ZodString, "many">;
635
+ examplesAlreadyUsed: z.ZodArray<z.ZodString, "many">;
636
+ metaphorsAlreadyUsed: z.ZodArray<z.ZodString, "many">;
637
+ prohibitedRepetition: z.ZodArray<z.ZodString, "many">;
638
+ nextChapterPromises: z.ZodArray<z.ZodString, "many">;
639
+ toneContinuityNotes: z.ZodArray<z.ZodString, "many">;
640
+ }, "strip", z.ZodTypeAny, {
641
+ establishedClaims: string[];
642
+ introducedDefinitions: string[];
643
+ recurringTerms: string[];
644
+ unresolvedQuestions: string[];
645
+ openLoops: string[];
646
+ evidenceAlreadyUsed: string[];
647
+ examplesAlreadyUsed: string[];
648
+ metaphorsAlreadyUsed: string[];
649
+ prohibitedRepetition: string[];
650
+ nextChapterPromises: string[];
651
+ toneContinuityNotes: string[];
652
+ }, {
653
+ establishedClaims: string[];
654
+ introducedDefinitions: string[];
655
+ recurringTerms: string[];
656
+ unresolvedQuestions: string[];
657
+ openLoops: string[];
658
+ evidenceAlreadyUsed: string[];
659
+ examplesAlreadyUsed: string[];
660
+ metaphorsAlreadyUsed: string[];
661
+ prohibitedRepetition: string[];
662
+ nextChapterPromises: string[];
663
+ toneContinuityNotes: string[];
664
+ }>;
665
+ guardianScore: z.ZodNumber;
666
+ guardianFindings: z.ZodArray<z.ZodString, "many">;
667
+ guardianPassed: z.ZodBoolean;
668
+ sourcePlanChapterHash: z.ZodOptional<z.ZodString>;
669
+ sourcePlanArtifactId: z.ZodOptional<z.ZodString>;
670
+ qualityAssessment: z.ZodOptional<z.ZodObject<{
671
+ version: z.ZodLiteral<"semantic-v1">;
672
+ proseHash: z.ZodString;
673
+ contractHash: z.ZodString;
674
+ evaluatedAt: z.ZodString;
675
+ dimensions: z.ZodObject<{
676
+ purpose: z.ZodNumber;
677
+ accuracy: z.ZodNumber;
678
+ directness: z.ZodNumber;
679
+ density: z.ZodNumber;
680
+ novelty: z.ZodNumber;
681
+ intrigue: z.ZodNumber;
682
+ humanismStorytelling: z.ZodNumber;
683
+ voiceStyleFidelity: z.ZodNumber;
684
+ printClarity: z.ZodNumber;
685
+ audioListenability: z.ZodNumber;
686
+ }, "strip", z.ZodTypeAny, {
687
+ directness: number;
688
+ purpose: number;
689
+ accuracy: number;
690
+ density: number;
691
+ novelty: number;
692
+ intrigue: number;
693
+ humanismStorytelling: number;
694
+ voiceStyleFidelity: number;
695
+ printClarity: number;
696
+ audioListenability: number;
697
+ }, {
698
+ directness: number;
699
+ purpose: number;
700
+ accuracy: number;
701
+ density: number;
702
+ novelty: number;
703
+ intrigue: number;
704
+ humanismStorytelling: number;
705
+ voiceStyleFidelity: number;
706
+ printClarity: number;
707
+ audioListenability: number;
708
+ }>;
709
+ paragraphAudits: z.ZodArray<z.ZodObject<{
710
+ id: z.ZodString;
711
+ primaryFunction: z.ZodString;
712
+ contractReferences: z.ZodArray<z.ZodString, "many">;
713
+ uniqueContribution: z.ZodString;
714
+ removableWithoutLoss: z.ZodBoolean;
715
+ action: z.ZodEnum<["keep", "merge", "rewrite", "cut"]>;
716
+ printPass: z.ZodBoolean;
717
+ audioPass: z.ZodBoolean;
718
+ issues: z.ZodArray<z.ZodString, "many">;
719
+ }, "strip", z.ZodTypeAny, {
720
+ id: string;
721
+ issues: string[];
722
+ printPass: boolean;
723
+ audioPass: boolean;
724
+ primaryFunction: string;
725
+ contractReferences: string[];
726
+ uniqueContribution: string;
727
+ removableWithoutLoss: boolean;
728
+ action: "merge" | "keep" | "rewrite" | "cut";
729
+ }, {
730
+ id: string;
731
+ issues: string[];
732
+ printPass: boolean;
733
+ audioPass: boolean;
734
+ primaryFunction: string;
735
+ contractReferences: string[];
736
+ uniqueContribution: string;
737
+ removableWithoutLoss: boolean;
738
+ action: "merge" | "keep" | "rewrite" | "cut";
739
+ }>, "many">;
740
+ sentenceAudits: z.ZodArray<z.ZodObject<{
741
+ id: z.ZodString;
742
+ paragraphId: z.ZodString;
743
+ contribution: z.ZodString;
744
+ contractReference: z.ZodString;
745
+ action: z.ZodEnum<["keep", "merge", "rewrite", "cut"]>;
746
+ issues: z.ZodArray<z.ZodString, "many">;
747
+ }, "strip", z.ZodTypeAny, {
748
+ id: string;
749
+ issues: string[];
750
+ action: "merge" | "keep" | "rewrite" | "cut";
751
+ paragraphId: string;
752
+ contribution: string;
753
+ contractReference: string;
754
+ }, {
755
+ id: string;
756
+ issues: string[];
757
+ action: "merge" | "keep" | "rewrite" | "cut";
758
+ paragraphId: string;
759
+ contribution: string;
760
+ contractReference: string;
761
+ }>, "many">;
762
+ deterministicFindings: z.ZodArray<z.ZodString, "many">;
763
+ modelFindings: z.ZodArray<z.ZodString, "many">;
764
+ repairSuggestions: z.ZodArray<z.ZodString, "many">;
765
+ unresolvedContractItems: z.ZodArray<z.ZodString, "many">;
766
+ semanticStopSatisfied: z.ZodBoolean;
767
+ passed: z.ZodBoolean;
768
+ }, "strip", z.ZodTypeAny, {
769
+ dimensions: {
770
+ directness: number;
771
+ purpose: number;
772
+ accuracy: number;
773
+ density: number;
774
+ novelty: number;
775
+ intrigue: number;
776
+ humanismStorytelling: number;
777
+ voiceStyleFidelity: number;
778
+ printClarity: number;
779
+ audioListenability: number;
780
+ };
781
+ version: "semantic-v1";
782
+ passed: boolean;
783
+ evaluatedAt: string;
784
+ proseHash: string;
785
+ contractHash: string;
786
+ semanticStopSatisfied: boolean;
787
+ repairSuggestions: string[];
788
+ paragraphAudits: {
789
+ id: string;
790
+ issues: string[];
791
+ printPass: boolean;
792
+ audioPass: boolean;
793
+ primaryFunction: string;
794
+ contractReferences: string[];
795
+ uniqueContribution: string;
796
+ removableWithoutLoss: boolean;
797
+ action: "merge" | "keep" | "rewrite" | "cut";
798
+ }[];
799
+ sentenceAudits: {
800
+ id: string;
801
+ issues: string[];
802
+ action: "merge" | "keep" | "rewrite" | "cut";
803
+ paragraphId: string;
804
+ contribution: string;
805
+ contractReference: string;
806
+ }[];
807
+ unresolvedContractItems: string[];
808
+ deterministicFindings: string[];
809
+ modelFindings: string[];
810
+ }, {
811
+ dimensions: {
812
+ directness: number;
813
+ purpose: number;
814
+ accuracy: number;
815
+ density: number;
816
+ novelty: number;
817
+ intrigue: number;
818
+ humanismStorytelling: number;
819
+ voiceStyleFidelity: number;
820
+ printClarity: number;
821
+ audioListenability: number;
822
+ };
823
+ version: "semantic-v1";
824
+ passed: boolean;
825
+ evaluatedAt: string;
826
+ proseHash: string;
827
+ contractHash: string;
828
+ semanticStopSatisfied: boolean;
829
+ repairSuggestions: string[];
830
+ paragraphAudits: {
831
+ id: string;
832
+ issues: string[];
833
+ printPass: boolean;
834
+ audioPass: boolean;
835
+ primaryFunction: string;
836
+ contractReferences: string[];
837
+ uniqueContribution: string;
838
+ removableWithoutLoss: boolean;
839
+ action: "merge" | "keep" | "rewrite" | "cut";
840
+ }[];
841
+ sentenceAudits: {
842
+ id: string;
843
+ issues: string[];
844
+ action: "merge" | "keep" | "rewrite" | "cut";
845
+ paragraphId: string;
846
+ contribution: string;
847
+ contractReference: string;
848
+ }[];
849
+ unresolvedContractItems: string[];
850
+ deterministicFindings: string[];
851
+ modelFindings: string[];
852
+ }>>;
853
+ revision: z.ZodOptional<z.ZodString>;
854
+ revisedFromArtifactId: z.ZodOptional<z.ZodString>;
855
+ revisionBriefArtifactId: z.ZodOptional<z.ZodString>;
856
+ sourceDraftHash: z.ZodOptional<z.ZodString>;
857
+ editorialRevisionBrief: z.ZodOptional<z.ZodString>;
858
+ }, "strip", z.ZodTypeAny, {
859
+ title: string;
860
+ guardianScore: number;
861
+ chapterId: string;
862
+ version: number;
863
+ chapterNumber: number;
864
+ targetWordCount: number;
865
+ claimsUsed: string[];
866
+ definitionsUsed: string[];
867
+ ledgerUpdate: {
868
+ establishedClaims: string[];
869
+ introducedDefinitions: string[];
870
+ recurringTerms: string[];
871
+ unresolvedQuestions: string[];
872
+ openLoops: string[];
873
+ evidenceAlreadyUsed: string[];
874
+ examplesAlreadyUsed: string[];
875
+ metaphorsAlreadyUsed: string[];
876
+ prohibitedRepetition: string[];
877
+ nextChapterPromises: string[];
878
+ toneContinuityNotes: string[];
879
+ };
880
+ actualWordCount: number;
881
+ proseMarkdown: string;
882
+ sectionStructure: {
883
+ content: string;
884
+ heading: string;
885
+ wordCount: number;
886
+ claimsUsed: string[];
887
+ definitionsUsed: string[];
888
+ sourcesUsed: string[];
889
+ }[];
890
+ sourcesSuggested: string[];
891
+ unresolvedEvidenceNeeds: string[];
892
+ evidenceIntegrationPoints: {
893
+ location: string;
894
+ claimText: string;
895
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
896
+ sourceId?: string | null | undefined;
897
+ needsSourceAssignment?: boolean | null | undefined;
898
+ }[];
899
+ continuitySummary: string;
900
+ guardianFindings: string[];
901
+ guardianPassed: boolean;
902
+ sourcePlanArtifactId?: string | undefined;
903
+ sourceDraftHash?: string | undefined;
904
+ revisionBriefArtifactId?: string | undefined;
905
+ sourcePlanChapterHash?: string | undefined;
906
+ qualityAssessment?: {
907
+ dimensions: {
908
+ directness: number;
909
+ purpose: number;
910
+ accuracy: number;
911
+ density: number;
912
+ novelty: number;
913
+ intrigue: number;
914
+ humanismStorytelling: number;
915
+ voiceStyleFidelity: number;
916
+ printClarity: number;
917
+ audioListenability: number;
918
+ };
919
+ version: "semantic-v1";
920
+ passed: boolean;
921
+ evaluatedAt: string;
922
+ proseHash: string;
923
+ contractHash: string;
924
+ semanticStopSatisfied: boolean;
925
+ repairSuggestions: string[];
926
+ paragraphAudits: {
927
+ id: string;
928
+ issues: string[];
929
+ printPass: boolean;
930
+ audioPass: boolean;
931
+ primaryFunction: string;
932
+ contractReferences: string[];
933
+ uniqueContribution: string;
934
+ removableWithoutLoss: boolean;
935
+ action: "merge" | "keep" | "rewrite" | "cut";
936
+ }[];
937
+ sentenceAudits: {
938
+ id: string;
939
+ issues: string[];
940
+ action: "merge" | "keep" | "rewrite" | "cut";
941
+ paragraphId: string;
942
+ contribution: string;
943
+ contractReference: string;
944
+ }[];
945
+ unresolvedContractItems: string[];
946
+ deterministicFindings: string[];
947
+ modelFindings: string[];
948
+ } | undefined;
949
+ revision?: string | undefined;
950
+ revisedFromArtifactId?: string | undefined;
951
+ editorialRevisionBrief?: string | undefined;
952
+ }, {
953
+ title: string;
954
+ guardianScore: number;
955
+ chapterId: string;
956
+ version: number;
957
+ chapterNumber: number;
958
+ targetWordCount: number;
959
+ claimsUsed: string[];
960
+ definitionsUsed: string[];
961
+ ledgerUpdate: {
962
+ establishedClaims: string[];
963
+ introducedDefinitions: string[];
964
+ recurringTerms: string[];
965
+ unresolvedQuestions: string[];
966
+ openLoops: string[];
967
+ evidenceAlreadyUsed: string[];
968
+ examplesAlreadyUsed: string[];
969
+ metaphorsAlreadyUsed: string[];
970
+ prohibitedRepetition: string[];
971
+ nextChapterPromises: string[];
972
+ toneContinuityNotes: string[];
973
+ };
974
+ actualWordCount: number;
975
+ proseMarkdown: string;
976
+ sectionStructure: {
977
+ content: string;
978
+ heading: string;
979
+ wordCount: number;
980
+ claimsUsed: string[];
981
+ definitionsUsed: string[];
982
+ sourcesUsed: string[];
983
+ }[];
984
+ sourcesSuggested: string[];
985
+ unresolvedEvidenceNeeds: string[];
986
+ continuitySummary: string;
987
+ guardianFindings: string[];
988
+ guardianPassed: boolean;
989
+ sourcePlanArtifactId?: string | undefined;
990
+ sourceDraftHash?: string | undefined;
991
+ revisionBriefArtifactId?: string | undefined;
992
+ sourcePlanChapterHash?: string | undefined;
993
+ evidenceIntegrationPoints?: {
994
+ location: string;
995
+ claimText: string;
996
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
997
+ sourceId?: string | null | undefined;
998
+ needsSourceAssignment?: boolean | null | undefined;
999
+ }[] | undefined;
1000
+ qualityAssessment?: {
1001
+ dimensions: {
1002
+ directness: number;
1003
+ purpose: number;
1004
+ accuracy: number;
1005
+ density: number;
1006
+ novelty: number;
1007
+ intrigue: number;
1008
+ humanismStorytelling: number;
1009
+ voiceStyleFidelity: number;
1010
+ printClarity: number;
1011
+ audioListenability: number;
1012
+ };
1013
+ version: "semantic-v1";
1014
+ passed: boolean;
1015
+ evaluatedAt: string;
1016
+ proseHash: string;
1017
+ contractHash: string;
1018
+ semanticStopSatisfied: boolean;
1019
+ repairSuggestions: string[];
1020
+ paragraphAudits: {
1021
+ id: string;
1022
+ issues: string[];
1023
+ printPass: boolean;
1024
+ audioPass: boolean;
1025
+ primaryFunction: string;
1026
+ contractReferences: string[];
1027
+ uniqueContribution: string;
1028
+ removableWithoutLoss: boolean;
1029
+ action: "merge" | "keep" | "rewrite" | "cut";
1030
+ }[];
1031
+ sentenceAudits: {
1032
+ id: string;
1033
+ issues: string[];
1034
+ action: "merge" | "keep" | "rewrite" | "cut";
1035
+ paragraphId: string;
1036
+ contribution: string;
1037
+ contractReference: string;
1038
+ }[];
1039
+ unresolvedContractItems: string[];
1040
+ deterministicFindings: string[];
1041
+ modelFindings: string[];
1042
+ } | undefined;
1043
+ revision?: string | undefined;
1044
+ revisedFromArtifactId?: string | undefined;
1045
+ editorialRevisionBrief?: string | undefined;
1046
+ }>, "many">>;
1047
+ /** Writing kind only: final ledger for 'rollup' action */
1048
+ draftAllFinalLedger: z.ZodOptional<z.ZodObject<{
1049
+ establishedClaims: z.ZodArray<z.ZodString, "many">;
1050
+ introducedDefinitions: z.ZodArray<z.ZodString, "many">;
1051
+ recurringTerms: z.ZodArray<z.ZodString, "many">;
1052
+ unresolvedQuestions: z.ZodArray<z.ZodString, "many">;
1053
+ openLoops: z.ZodArray<z.ZodString, "many">;
1054
+ evidenceAlreadyUsed: z.ZodArray<z.ZodString, "many">;
1055
+ examplesAlreadyUsed: z.ZodArray<z.ZodString, "many">;
1056
+ metaphorsAlreadyUsed: z.ZodArray<z.ZodString, "many">;
1057
+ prohibitedRepetition: z.ZodArray<z.ZodString, "many">;
1058
+ nextChapterPromises: z.ZodArray<z.ZodString, "many">;
1059
+ toneContinuityNotes: z.ZodArray<z.ZodString, "many">;
1060
+ }, "strip", z.ZodTypeAny, {
1061
+ establishedClaims: string[];
1062
+ introducedDefinitions: string[];
1063
+ recurringTerms: string[];
1064
+ unresolvedQuestions: string[];
1065
+ openLoops: string[];
1066
+ evidenceAlreadyUsed: string[];
1067
+ examplesAlreadyUsed: string[];
1068
+ metaphorsAlreadyUsed: string[];
1069
+ prohibitedRepetition: string[];
1070
+ nextChapterPromises: string[];
1071
+ toneContinuityNotes: string[];
1072
+ }, {
1073
+ establishedClaims: string[];
1074
+ introducedDefinitions: string[];
1075
+ recurringTerms: string[];
1076
+ unresolvedQuestions: string[];
1077
+ openLoops: string[];
1078
+ evidenceAlreadyUsed: string[];
1079
+ examplesAlreadyUsed: string[];
1080
+ metaphorsAlreadyUsed: string[];
1081
+ prohibitedRepetition: string[];
1082
+ nextChapterPromises: string[];
1083
+ toneContinuityNotes: string[];
1084
+ }>>;
1085
+ } & {
1086
+ orchestrationId: z.ZodOptional<z.ZodString>;
1087
+ } & {
1088
+ mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["generate", "refine"]>>>;
1089
+ instructions: z.ZodOptional<z.ZodString>;
1090
+ }, "strip", z.ZodTypeAny, {
1091
+ projectId: string;
1092
+ mode: "generate" | "refine";
1093
+ guardianThreshold?: number | undefined;
1094
+ chapterIndex?: number | undefined;
1095
+ chapterTitle?: string | undefined;
1096
+ orchestrationId?: string | undefined;
1097
+ roleId?: string | undefined;
1098
+ instructions?: string | undefined;
1099
+ lengthProfile?: "custom" | "short" | "standard" | "deep" | "technical" | undefined;
1100
+ draftMode?: "fast" | "checkpoint" | "editorial" | "guardian_gated" | undefined;
1101
+ engine?: "openai" | "cursor_cloud" | undefined;
1102
+ chapterSummary?: string | undefined;
1103
+ keyArguments?: string[] | undefined;
1104
+ thesisStatement?: string | undefined;
1105
+ narrativeArc?: string | undefined;
1106
+ draftAll?: boolean | undefined;
1107
+ draftAllAction?: "chapter" | "prepare" | "chapter_prose" | "chapter_finalize" | "rollup" | undefined;
1108
+ draftAllTask?: {
1109
+ title: string;
1110
+ directAnswer: string;
1111
+ chapterId: string;
1112
+ purpose: string;
1113
+ counterclaimsToAddress: string[];
1114
+ chapterNumber: number;
1115
+ readerQuestion: string;
1116
+ newContribution: string;
1117
+ readerPayoff: string;
1118
+ relationshipToPriorChapters: string;
1119
+ exitCriteria: string[];
1120
+ audioArc: string;
1121
+ paragraphPlan: Record<string, unknown>[];
1122
+ sourcePlanChapterHash: string;
1123
+ targetWordCount: number;
1124
+ requiredClaimIds: string[];
1125
+ requiredDefinitionIds: string[];
1126
+ requiredSourceIds: string[];
1127
+ partId?: string | undefined;
1128
+ partNumber?: number | undefined;
1129
+ previousChapterSummary?: string | undefined;
1130
+ } | undefined;
1131
+ draftAllContext?: {
1132
+ thesis: string;
1133
+ sourcePlanArtifactId: string | null;
1134
+ targetWordCount: number;
1135
+ bookTitle: string;
1136
+ allClaims: Record<string, unknown>[];
1137
+ allDefs: Record<string, unknown>[];
1138
+ allSources: Record<string, unknown>[];
1139
+ allCounterclaims: Record<string, unknown>[];
1140
+ constitutionPrinciples: string;
1141
+ styleRules: string;
1142
+ humanIntentContract: Record<string, unknown> | null;
1143
+ narrativeVoiceContract: Record<string, unknown> | null;
1144
+ semanticWritingContract: Record<string, unknown> | null;
1145
+ outlineParts: Record<string, unknown> | null;
1146
+ nonfictionEvidence?: {
1147
+ researchTasks: Record<string, unknown>[];
1148
+ claimRiskPolicy: string;
1149
+ validationRules: Record<string, unknown>[];
1150
+ chapterScheduleEntries: Record<string, unknown>[];
1151
+ } | undefined;
1152
+ } | undefined;
1153
+ draftAllCurrentLedger?: {
1154
+ establishedClaims: string[];
1155
+ introducedDefinitions: string[];
1156
+ recurringTerms: string[];
1157
+ unresolvedQuestions: string[];
1158
+ openLoops: string[];
1159
+ evidenceAlreadyUsed: string[];
1160
+ examplesAlreadyUsed: string[];
1161
+ metaphorsAlreadyUsed: string[];
1162
+ prohibitedRepetition: string[];
1163
+ nextChapterPromises: string[];
1164
+ toneContinuityNotes: string[];
1165
+ } | undefined;
1166
+ draftAllOptions?: {
1167
+ guardianThreshold: number;
1168
+ autoRepairOnFail: boolean;
1169
+ } | undefined;
1170
+ draftAllScaffoldPayload?: Record<string, unknown> | undefined;
1171
+ draftAllProsePayload?: Record<string, unknown> | undefined;
1172
+ draftAllCompletedChapters?: {
1173
+ title: string;
1174
+ guardianScore: number;
1175
+ chapterId: string;
1176
+ version: number;
1177
+ chapterNumber: number;
1178
+ targetWordCount: number;
1179
+ claimsUsed: string[];
1180
+ definitionsUsed: string[];
1181
+ ledgerUpdate: {
1182
+ establishedClaims: string[];
1183
+ introducedDefinitions: string[];
1184
+ recurringTerms: string[];
1185
+ unresolvedQuestions: string[];
1186
+ openLoops: string[];
1187
+ evidenceAlreadyUsed: string[];
1188
+ examplesAlreadyUsed: string[];
1189
+ metaphorsAlreadyUsed: string[];
1190
+ prohibitedRepetition: string[];
1191
+ nextChapterPromises: string[];
1192
+ toneContinuityNotes: string[];
1193
+ };
1194
+ actualWordCount: number;
1195
+ proseMarkdown: string;
1196
+ sectionStructure: {
1197
+ content: string;
1198
+ heading: string;
1199
+ wordCount: number;
1200
+ claimsUsed: string[];
1201
+ definitionsUsed: string[];
1202
+ sourcesUsed: string[];
1203
+ }[];
1204
+ sourcesSuggested: string[];
1205
+ unresolvedEvidenceNeeds: string[];
1206
+ evidenceIntegrationPoints: {
1207
+ location: string;
1208
+ claimText: string;
1209
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
1210
+ sourceId?: string | null | undefined;
1211
+ needsSourceAssignment?: boolean | null | undefined;
1212
+ }[];
1213
+ continuitySummary: string;
1214
+ guardianFindings: string[];
1215
+ guardianPassed: boolean;
1216
+ sourcePlanArtifactId?: string | undefined;
1217
+ sourceDraftHash?: string | undefined;
1218
+ revisionBriefArtifactId?: string | undefined;
1219
+ sourcePlanChapterHash?: string | undefined;
1220
+ qualityAssessment?: {
1221
+ dimensions: {
1222
+ directness: number;
1223
+ purpose: number;
1224
+ accuracy: number;
1225
+ density: number;
1226
+ novelty: number;
1227
+ intrigue: number;
1228
+ humanismStorytelling: number;
1229
+ voiceStyleFidelity: number;
1230
+ printClarity: number;
1231
+ audioListenability: number;
1232
+ };
1233
+ version: "semantic-v1";
1234
+ passed: boolean;
1235
+ evaluatedAt: string;
1236
+ proseHash: string;
1237
+ contractHash: string;
1238
+ semanticStopSatisfied: boolean;
1239
+ repairSuggestions: string[];
1240
+ paragraphAudits: {
1241
+ id: string;
1242
+ issues: string[];
1243
+ printPass: boolean;
1244
+ audioPass: boolean;
1245
+ primaryFunction: string;
1246
+ contractReferences: string[];
1247
+ uniqueContribution: string;
1248
+ removableWithoutLoss: boolean;
1249
+ action: "merge" | "keep" | "rewrite" | "cut";
1250
+ }[];
1251
+ sentenceAudits: {
1252
+ id: string;
1253
+ issues: string[];
1254
+ action: "merge" | "keep" | "rewrite" | "cut";
1255
+ paragraphId: string;
1256
+ contribution: string;
1257
+ contractReference: string;
1258
+ }[];
1259
+ unresolvedContractItems: string[];
1260
+ deterministicFindings: string[];
1261
+ modelFindings: string[];
1262
+ } | undefined;
1263
+ revision?: string | undefined;
1264
+ revisedFromArtifactId?: string | undefined;
1265
+ editorialRevisionBrief?: string | undefined;
1266
+ }[] | undefined;
1267
+ draftAllFinalLedger?: {
1268
+ establishedClaims: string[];
1269
+ introducedDefinitions: string[];
1270
+ recurringTerms: string[];
1271
+ unresolvedQuestions: string[];
1272
+ openLoops: string[];
1273
+ evidenceAlreadyUsed: string[];
1274
+ examplesAlreadyUsed: string[];
1275
+ metaphorsAlreadyUsed: string[];
1276
+ prohibitedRepetition: string[];
1277
+ nextChapterPromises: string[];
1278
+ toneContinuityNotes: string[];
1279
+ } | undefined;
1280
+ }, {
1281
+ projectId: string;
1282
+ mode?: "generate" | "refine" | undefined;
1283
+ guardianThreshold?: number | undefined;
1284
+ chapterIndex?: number | undefined;
1285
+ chapterTitle?: string | undefined;
1286
+ orchestrationId?: string | undefined;
1287
+ roleId?: string | undefined;
1288
+ instructions?: string | undefined;
1289
+ lengthProfile?: "custom" | "short" | "standard" | "deep" | "technical" | undefined;
1290
+ draftMode?: "fast" | "checkpoint" | "editorial" | "guardian_gated" | undefined;
1291
+ engine?: "openai" | "cursor_cloud" | undefined;
1292
+ chapterSummary?: string | undefined;
1293
+ keyArguments?: string[] | undefined;
1294
+ thesisStatement?: string | undefined;
1295
+ narrativeArc?: string | undefined;
1296
+ draftAll?: boolean | undefined;
1297
+ draftAllAction?: "chapter" | "prepare" | "chapter_prose" | "chapter_finalize" | "rollup" | undefined;
1298
+ draftAllTask?: {
1299
+ title: string;
1300
+ chapterId: string;
1301
+ purpose: string;
1302
+ counterclaimsToAddress: string[];
1303
+ chapterNumber: number;
1304
+ targetWordCount: number;
1305
+ requiredClaimIds: string[];
1306
+ requiredDefinitionIds: string[];
1307
+ requiredSourceIds: string[];
1308
+ directAnswer?: string | undefined;
1309
+ partId?: string | undefined;
1310
+ partNumber?: number | undefined;
1311
+ readerQuestion?: string | undefined;
1312
+ newContribution?: string | undefined;
1313
+ readerPayoff?: string | undefined;
1314
+ relationshipToPriorChapters?: string | undefined;
1315
+ exitCriteria?: string[] | undefined;
1316
+ audioArc?: string | undefined;
1317
+ paragraphPlan?: Record<string, unknown>[] | undefined;
1318
+ sourcePlanChapterHash?: string | undefined;
1319
+ previousChapterSummary?: string | undefined;
1320
+ } | undefined;
1321
+ draftAllContext?: {
1322
+ thesis: string;
1323
+ targetWordCount: number;
1324
+ bookTitle: string;
1325
+ allClaims: Record<string, unknown>[];
1326
+ allDefs: Record<string, unknown>[];
1327
+ allSources: Record<string, unknown>[];
1328
+ allCounterclaims: Record<string, unknown>[];
1329
+ constitutionPrinciples: string;
1330
+ styleRules: string;
1331
+ outlineParts: Record<string, unknown> | null;
1332
+ sourcePlanArtifactId?: string | null | undefined;
1333
+ humanIntentContract?: Record<string, unknown> | null | undefined;
1334
+ narrativeVoiceContract?: Record<string, unknown> | null | undefined;
1335
+ semanticWritingContract?: Record<string, unknown> | null | undefined;
1336
+ nonfictionEvidence?: {
1337
+ researchTasks: Record<string, unknown>[];
1338
+ claimRiskPolicy: string;
1339
+ validationRules: Record<string, unknown>[];
1340
+ chapterScheduleEntries: Record<string, unknown>[];
1341
+ } | undefined;
1342
+ } | undefined;
1343
+ draftAllCurrentLedger?: {
1344
+ establishedClaims: string[];
1345
+ introducedDefinitions: string[];
1346
+ recurringTerms: string[];
1347
+ unresolvedQuestions: string[];
1348
+ openLoops: string[];
1349
+ evidenceAlreadyUsed: string[];
1350
+ examplesAlreadyUsed: string[];
1351
+ metaphorsAlreadyUsed: string[];
1352
+ prohibitedRepetition: string[];
1353
+ nextChapterPromises: string[];
1354
+ toneContinuityNotes: string[];
1355
+ } | undefined;
1356
+ draftAllOptions?: {
1357
+ guardianThreshold: number;
1358
+ autoRepairOnFail: boolean;
1359
+ } | undefined;
1360
+ draftAllScaffoldPayload?: Record<string, unknown> | undefined;
1361
+ draftAllProsePayload?: Record<string, unknown> | undefined;
1362
+ draftAllCompletedChapters?: {
1363
+ title: string;
1364
+ guardianScore: number;
1365
+ chapterId: string;
1366
+ version: number;
1367
+ chapterNumber: number;
1368
+ targetWordCount: number;
1369
+ claimsUsed: string[];
1370
+ definitionsUsed: string[];
1371
+ ledgerUpdate: {
1372
+ establishedClaims: string[];
1373
+ introducedDefinitions: string[];
1374
+ recurringTerms: string[];
1375
+ unresolvedQuestions: string[];
1376
+ openLoops: string[];
1377
+ evidenceAlreadyUsed: string[];
1378
+ examplesAlreadyUsed: string[];
1379
+ metaphorsAlreadyUsed: string[];
1380
+ prohibitedRepetition: string[];
1381
+ nextChapterPromises: string[];
1382
+ toneContinuityNotes: string[];
1383
+ };
1384
+ actualWordCount: number;
1385
+ proseMarkdown: string;
1386
+ sectionStructure: {
1387
+ content: string;
1388
+ heading: string;
1389
+ wordCount: number;
1390
+ claimsUsed: string[];
1391
+ definitionsUsed: string[];
1392
+ sourcesUsed: string[];
1393
+ }[];
1394
+ sourcesSuggested: string[];
1395
+ unresolvedEvidenceNeeds: string[];
1396
+ continuitySummary: string;
1397
+ guardianFindings: string[];
1398
+ guardianPassed: boolean;
1399
+ sourcePlanArtifactId?: string | undefined;
1400
+ sourceDraftHash?: string | undefined;
1401
+ revisionBriefArtifactId?: string | undefined;
1402
+ sourcePlanChapterHash?: string | undefined;
1403
+ evidenceIntegrationPoints?: {
1404
+ location: string;
1405
+ claimText: string;
1406
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
1407
+ sourceId?: string | null | undefined;
1408
+ needsSourceAssignment?: boolean | null | undefined;
1409
+ }[] | undefined;
1410
+ qualityAssessment?: {
1411
+ dimensions: {
1412
+ directness: number;
1413
+ purpose: number;
1414
+ accuracy: number;
1415
+ density: number;
1416
+ novelty: number;
1417
+ intrigue: number;
1418
+ humanismStorytelling: number;
1419
+ voiceStyleFidelity: number;
1420
+ printClarity: number;
1421
+ audioListenability: number;
1422
+ };
1423
+ version: "semantic-v1";
1424
+ passed: boolean;
1425
+ evaluatedAt: string;
1426
+ proseHash: string;
1427
+ contractHash: string;
1428
+ semanticStopSatisfied: boolean;
1429
+ repairSuggestions: string[];
1430
+ paragraphAudits: {
1431
+ id: string;
1432
+ issues: string[];
1433
+ printPass: boolean;
1434
+ audioPass: boolean;
1435
+ primaryFunction: string;
1436
+ contractReferences: string[];
1437
+ uniqueContribution: string;
1438
+ removableWithoutLoss: boolean;
1439
+ action: "merge" | "keep" | "rewrite" | "cut";
1440
+ }[];
1441
+ sentenceAudits: {
1442
+ id: string;
1443
+ issues: string[];
1444
+ action: "merge" | "keep" | "rewrite" | "cut";
1445
+ paragraphId: string;
1446
+ contribution: string;
1447
+ contractReference: string;
1448
+ }[];
1449
+ unresolvedContractItems: string[];
1450
+ deterministicFindings: string[];
1451
+ modelFindings: string[];
1452
+ } | undefined;
1453
+ revision?: string | undefined;
1454
+ revisedFromArtifactId?: string | undefined;
1455
+ editorialRevisionBrief?: string | undefined;
1456
+ }[] | undefined;
1457
+ draftAllFinalLedger?: {
1458
+ establishedClaims: string[];
1459
+ introducedDefinitions: string[];
1460
+ recurringTerms: string[];
1461
+ unresolvedQuestions: string[];
1462
+ openLoops: string[];
1463
+ evidenceAlreadyUsed: string[];
1464
+ examplesAlreadyUsed: string[];
1465
+ metaphorsAlreadyUsed: string[];
1466
+ prohibitedRepetition: string[];
1467
+ nextChapterPromises: string[];
1468
+ toneContinuityNotes: string[];
1469
+ } | undefined;
1470
+ }>, {
1471
+ projectId: string;
1472
+ mode: "generate" | "refine";
1473
+ guardianThreshold?: number | undefined;
1474
+ chapterIndex?: number | undefined;
1475
+ chapterTitle?: string | undefined;
1476
+ orchestrationId?: string | undefined;
1477
+ roleId?: string | undefined;
1478
+ instructions?: string | undefined;
1479
+ lengthProfile?: "custom" | "short" | "standard" | "deep" | "technical" | undefined;
1480
+ draftMode?: "fast" | "checkpoint" | "editorial" | "guardian_gated" | undefined;
1481
+ engine?: "openai" | "cursor_cloud" | undefined;
1482
+ chapterSummary?: string | undefined;
1483
+ keyArguments?: string[] | undefined;
1484
+ thesisStatement?: string | undefined;
1485
+ narrativeArc?: string | undefined;
1486
+ draftAll?: boolean | undefined;
1487
+ draftAllAction?: "chapter" | "prepare" | "chapter_prose" | "chapter_finalize" | "rollup" | undefined;
1488
+ draftAllTask?: {
1489
+ title: string;
1490
+ directAnswer: string;
1491
+ chapterId: string;
1492
+ purpose: string;
1493
+ counterclaimsToAddress: string[];
1494
+ chapterNumber: number;
1495
+ readerQuestion: string;
1496
+ newContribution: string;
1497
+ readerPayoff: string;
1498
+ relationshipToPriorChapters: string;
1499
+ exitCriteria: string[];
1500
+ audioArc: string;
1501
+ paragraphPlan: Record<string, unknown>[];
1502
+ sourcePlanChapterHash: string;
1503
+ targetWordCount: number;
1504
+ requiredClaimIds: string[];
1505
+ requiredDefinitionIds: string[];
1506
+ requiredSourceIds: string[];
1507
+ partId?: string | undefined;
1508
+ partNumber?: number | undefined;
1509
+ previousChapterSummary?: string | undefined;
1510
+ } | undefined;
1511
+ draftAllContext?: {
1512
+ thesis: string;
1513
+ sourcePlanArtifactId: string | null;
1514
+ targetWordCount: number;
1515
+ bookTitle: string;
1516
+ allClaims: Record<string, unknown>[];
1517
+ allDefs: Record<string, unknown>[];
1518
+ allSources: Record<string, unknown>[];
1519
+ allCounterclaims: Record<string, unknown>[];
1520
+ constitutionPrinciples: string;
1521
+ styleRules: string;
1522
+ humanIntentContract: Record<string, unknown> | null;
1523
+ narrativeVoiceContract: Record<string, unknown> | null;
1524
+ semanticWritingContract: Record<string, unknown> | null;
1525
+ outlineParts: Record<string, unknown> | null;
1526
+ nonfictionEvidence?: {
1527
+ researchTasks: Record<string, unknown>[];
1528
+ claimRiskPolicy: string;
1529
+ validationRules: Record<string, unknown>[];
1530
+ chapterScheduleEntries: Record<string, unknown>[];
1531
+ } | undefined;
1532
+ } | undefined;
1533
+ draftAllCurrentLedger?: {
1534
+ establishedClaims: string[];
1535
+ introducedDefinitions: string[];
1536
+ recurringTerms: string[];
1537
+ unresolvedQuestions: string[];
1538
+ openLoops: string[];
1539
+ evidenceAlreadyUsed: string[];
1540
+ examplesAlreadyUsed: string[];
1541
+ metaphorsAlreadyUsed: string[];
1542
+ prohibitedRepetition: string[];
1543
+ nextChapterPromises: string[];
1544
+ toneContinuityNotes: string[];
1545
+ } | undefined;
1546
+ draftAllOptions?: {
1547
+ guardianThreshold: number;
1548
+ autoRepairOnFail: boolean;
1549
+ } | undefined;
1550
+ draftAllScaffoldPayload?: Record<string, unknown> | undefined;
1551
+ draftAllProsePayload?: Record<string, unknown> | undefined;
1552
+ draftAllCompletedChapters?: {
1553
+ title: string;
1554
+ guardianScore: number;
1555
+ chapterId: string;
1556
+ version: number;
1557
+ chapterNumber: number;
1558
+ targetWordCount: number;
1559
+ claimsUsed: string[];
1560
+ definitionsUsed: string[];
1561
+ ledgerUpdate: {
1562
+ establishedClaims: string[];
1563
+ introducedDefinitions: string[];
1564
+ recurringTerms: string[];
1565
+ unresolvedQuestions: string[];
1566
+ openLoops: string[];
1567
+ evidenceAlreadyUsed: string[];
1568
+ examplesAlreadyUsed: string[];
1569
+ metaphorsAlreadyUsed: string[];
1570
+ prohibitedRepetition: string[];
1571
+ nextChapterPromises: string[];
1572
+ toneContinuityNotes: string[];
1573
+ };
1574
+ actualWordCount: number;
1575
+ proseMarkdown: string;
1576
+ sectionStructure: {
1577
+ content: string;
1578
+ heading: string;
1579
+ wordCount: number;
1580
+ claimsUsed: string[];
1581
+ definitionsUsed: string[];
1582
+ sourcesUsed: string[];
1583
+ }[];
1584
+ sourcesSuggested: string[];
1585
+ unresolvedEvidenceNeeds: string[];
1586
+ evidenceIntegrationPoints: {
1587
+ location: string;
1588
+ claimText: string;
1589
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
1590
+ sourceId?: string | null | undefined;
1591
+ needsSourceAssignment?: boolean | null | undefined;
1592
+ }[];
1593
+ continuitySummary: string;
1594
+ guardianFindings: string[];
1595
+ guardianPassed: boolean;
1596
+ sourcePlanArtifactId?: string | undefined;
1597
+ sourceDraftHash?: string | undefined;
1598
+ revisionBriefArtifactId?: string | undefined;
1599
+ sourcePlanChapterHash?: string | undefined;
1600
+ qualityAssessment?: {
1601
+ dimensions: {
1602
+ directness: number;
1603
+ purpose: number;
1604
+ accuracy: number;
1605
+ density: number;
1606
+ novelty: number;
1607
+ intrigue: number;
1608
+ humanismStorytelling: number;
1609
+ voiceStyleFidelity: number;
1610
+ printClarity: number;
1611
+ audioListenability: number;
1612
+ };
1613
+ version: "semantic-v1";
1614
+ passed: boolean;
1615
+ evaluatedAt: string;
1616
+ proseHash: string;
1617
+ contractHash: string;
1618
+ semanticStopSatisfied: boolean;
1619
+ repairSuggestions: string[];
1620
+ paragraphAudits: {
1621
+ id: string;
1622
+ issues: string[];
1623
+ printPass: boolean;
1624
+ audioPass: boolean;
1625
+ primaryFunction: string;
1626
+ contractReferences: string[];
1627
+ uniqueContribution: string;
1628
+ removableWithoutLoss: boolean;
1629
+ action: "merge" | "keep" | "rewrite" | "cut";
1630
+ }[];
1631
+ sentenceAudits: {
1632
+ id: string;
1633
+ issues: string[];
1634
+ action: "merge" | "keep" | "rewrite" | "cut";
1635
+ paragraphId: string;
1636
+ contribution: string;
1637
+ contractReference: string;
1638
+ }[];
1639
+ unresolvedContractItems: string[];
1640
+ deterministicFindings: string[];
1641
+ modelFindings: string[];
1642
+ } | undefined;
1643
+ revision?: string | undefined;
1644
+ revisedFromArtifactId?: string | undefined;
1645
+ editorialRevisionBrief?: string | undefined;
1646
+ }[] | undefined;
1647
+ draftAllFinalLedger?: {
1648
+ establishedClaims: string[];
1649
+ introducedDefinitions: string[];
1650
+ recurringTerms: string[];
1651
+ unresolvedQuestions: string[];
1652
+ openLoops: string[];
1653
+ evidenceAlreadyUsed: string[];
1654
+ examplesAlreadyUsed: string[];
1655
+ metaphorsAlreadyUsed: string[];
1656
+ prohibitedRepetition: string[];
1657
+ nextChapterPromises: string[];
1658
+ toneContinuityNotes: string[];
1659
+ } | undefined;
1660
+ }, {
1661
+ projectId: string;
1662
+ mode?: "generate" | "refine" | undefined;
1663
+ guardianThreshold?: number | undefined;
1664
+ chapterIndex?: number | undefined;
1665
+ chapterTitle?: string | undefined;
1666
+ orchestrationId?: string | undefined;
1667
+ roleId?: string | undefined;
1668
+ instructions?: string | undefined;
1669
+ lengthProfile?: "custom" | "short" | "standard" | "deep" | "technical" | undefined;
1670
+ draftMode?: "fast" | "checkpoint" | "editorial" | "guardian_gated" | undefined;
1671
+ engine?: "openai" | "cursor_cloud" | undefined;
1672
+ chapterSummary?: string | undefined;
1673
+ keyArguments?: string[] | undefined;
1674
+ thesisStatement?: string | undefined;
1675
+ narrativeArc?: string | undefined;
1676
+ draftAll?: boolean | undefined;
1677
+ draftAllAction?: "chapter" | "prepare" | "chapter_prose" | "chapter_finalize" | "rollup" | undefined;
1678
+ draftAllTask?: {
1679
+ title: string;
1680
+ chapterId: string;
1681
+ purpose: string;
1682
+ counterclaimsToAddress: string[];
1683
+ chapterNumber: number;
1684
+ targetWordCount: number;
1685
+ requiredClaimIds: string[];
1686
+ requiredDefinitionIds: string[];
1687
+ requiredSourceIds: string[];
1688
+ directAnswer?: string | undefined;
1689
+ partId?: string | undefined;
1690
+ partNumber?: number | undefined;
1691
+ readerQuestion?: string | undefined;
1692
+ newContribution?: string | undefined;
1693
+ readerPayoff?: string | undefined;
1694
+ relationshipToPriorChapters?: string | undefined;
1695
+ exitCriteria?: string[] | undefined;
1696
+ audioArc?: string | undefined;
1697
+ paragraphPlan?: Record<string, unknown>[] | undefined;
1698
+ sourcePlanChapterHash?: string | undefined;
1699
+ previousChapterSummary?: string | undefined;
1700
+ } | undefined;
1701
+ draftAllContext?: {
1702
+ thesis: string;
1703
+ targetWordCount: number;
1704
+ bookTitle: string;
1705
+ allClaims: Record<string, unknown>[];
1706
+ allDefs: Record<string, unknown>[];
1707
+ allSources: Record<string, unknown>[];
1708
+ allCounterclaims: Record<string, unknown>[];
1709
+ constitutionPrinciples: string;
1710
+ styleRules: string;
1711
+ outlineParts: Record<string, unknown> | null;
1712
+ sourcePlanArtifactId?: string | null | undefined;
1713
+ humanIntentContract?: Record<string, unknown> | null | undefined;
1714
+ narrativeVoiceContract?: Record<string, unknown> | null | undefined;
1715
+ semanticWritingContract?: Record<string, unknown> | null | undefined;
1716
+ nonfictionEvidence?: {
1717
+ researchTasks: Record<string, unknown>[];
1718
+ claimRiskPolicy: string;
1719
+ validationRules: Record<string, unknown>[];
1720
+ chapterScheduleEntries: Record<string, unknown>[];
1721
+ } | undefined;
1722
+ } | undefined;
1723
+ draftAllCurrentLedger?: {
1724
+ establishedClaims: string[];
1725
+ introducedDefinitions: string[];
1726
+ recurringTerms: string[];
1727
+ unresolvedQuestions: string[];
1728
+ openLoops: string[];
1729
+ evidenceAlreadyUsed: string[];
1730
+ examplesAlreadyUsed: string[];
1731
+ metaphorsAlreadyUsed: string[];
1732
+ prohibitedRepetition: string[];
1733
+ nextChapterPromises: string[];
1734
+ toneContinuityNotes: string[];
1735
+ } | undefined;
1736
+ draftAllOptions?: {
1737
+ guardianThreshold: number;
1738
+ autoRepairOnFail: boolean;
1739
+ } | undefined;
1740
+ draftAllScaffoldPayload?: Record<string, unknown> | undefined;
1741
+ draftAllProsePayload?: Record<string, unknown> | undefined;
1742
+ draftAllCompletedChapters?: {
1743
+ title: string;
1744
+ guardianScore: number;
1745
+ chapterId: string;
1746
+ version: number;
1747
+ chapterNumber: number;
1748
+ targetWordCount: number;
1749
+ claimsUsed: string[];
1750
+ definitionsUsed: string[];
1751
+ ledgerUpdate: {
1752
+ establishedClaims: string[];
1753
+ introducedDefinitions: string[];
1754
+ recurringTerms: string[];
1755
+ unresolvedQuestions: string[];
1756
+ openLoops: string[];
1757
+ evidenceAlreadyUsed: string[];
1758
+ examplesAlreadyUsed: string[];
1759
+ metaphorsAlreadyUsed: string[];
1760
+ prohibitedRepetition: string[];
1761
+ nextChapterPromises: string[];
1762
+ toneContinuityNotes: string[];
1763
+ };
1764
+ actualWordCount: number;
1765
+ proseMarkdown: string;
1766
+ sectionStructure: {
1767
+ content: string;
1768
+ heading: string;
1769
+ wordCount: number;
1770
+ claimsUsed: string[];
1771
+ definitionsUsed: string[];
1772
+ sourcesUsed: string[];
1773
+ }[];
1774
+ sourcesSuggested: string[];
1775
+ unresolvedEvidenceNeeds: string[];
1776
+ continuitySummary: string;
1777
+ guardianFindings: string[];
1778
+ guardianPassed: boolean;
1779
+ sourcePlanArtifactId?: string | undefined;
1780
+ sourceDraftHash?: string | undefined;
1781
+ revisionBriefArtifactId?: string | undefined;
1782
+ sourcePlanChapterHash?: string | undefined;
1783
+ evidenceIntegrationPoints?: {
1784
+ location: string;
1785
+ claimText: string;
1786
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
1787
+ sourceId?: string | null | undefined;
1788
+ needsSourceAssignment?: boolean | null | undefined;
1789
+ }[] | undefined;
1790
+ qualityAssessment?: {
1791
+ dimensions: {
1792
+ directness: number;
1793
+ purpose: number;
1794
+ accuracy: number;
1795
+ density: number;
1796
+ novelty: number;
1797
+ intrigue: number;
1798
+ humanismStorytelling: number;
1799
+ voiceStyleFidelity: number;
1800
+ printClarity: number;
1801
+ audioListenability: number;
1802
+ };
1803
+ version: "semantic-v1";
1804
+ passed: boolean;
1805
+ evaluatedAt: string;
1806
+ proseHash: string;
1807
+ contractHash: string;
1808
+ semanticStopSatisfied: boolean;
1809
+ repairSuggestions: string[];
1810
+ paragraphAudits: {
1811
+ id: string;
1812
+ issues: string[];
1813
+ printPass: boolean;
1814
+ audioPass: boolean;
1815
+ primaryFunction: string;
1816
+ contractReferences: string[];
1817
+ uniqueContribution: string;
1818
+ removableWithoutLoss: boolean;
1819
+ action: "merge" | "keep" | "rewrite" | "cut";
1820
+ }[];
1821
+ sentenceAudits: {
1822
+ id: string;
1823
+ issues: string[];
1824
+ action: "merge" | "keep" | "rewrite" | "cut";
1825
+ paragraphId: string;
1826
+ contribution: string;
1827
+ contractReference: string;
1828
+ }[];
1829
+ unresolvedContractItems: string[];
1830
+ deterministicFindings: string[];
1831
+ modelFindings: string[];
1832
+ } | undefined;
1833
+ revision?: string | undefined;
1834
+ revisedFromArtifactId?: string | undefined;
1835
+ editorialRevisionBrief?: string | undefined;
1836
+ }[] | undefined;
1837
+ draftAllFinalLedger?: {
1838
+ establishedClaims: string[];
1839
+ introducedDefinitions: string[];
1840
+ recurringTerms: string[];
1841
+ unresolvedQuestions: string[];
1842
+ openLoops: string[];
1843
+ evidenceAlreadyUsed: string[];
1844
+ examplesAlreadyUsed: string[];
1845
+ metaphorsAlreadyUsed: string[];
1846
+ prohibitedRepetition: string[];
1847
+ nextChapterPromises: string[];
1848
+ toneContinuityNotes: string[];
1849
+ } | undefined;
1850
+ }>;
1851
+ export type CodeGenerateInput = z.infer<typeof CodeGenerateInputSchema>;
1852
+ /** POST /api/ai/tasks/generate */
1853
+ export declare const TasksGenerateInputSchema: z.ZodEffects<z.ZodObject<{
1854
+ projectId: z.ZodString;
1855
+ includeDependencies: z.ZodDefault<z.ZodBoolean>;
1856
+ includeEstimates: z.ZodDefault<z.ZodBoolean>;
1857
+ roleId: z.ZodDefault<z.ZodString>;
1858
+ } & {
1859
+ orchestrationId: z.ZodOptional<z.ZodString>;
1860
+ } & {
1861
+ mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["generate", "refine"]>>>;
1862
+ instructions: z.ZodOptional<z.ZodString>;
1863
+ }, "strip", z.ZodTypeAny, {
1864
+ projectId: string;
1865
+ mode: "generate" | "refine";
1866
+ roleId: string;
1867
+ includeDependencies: boolean;
1868
+ includeEstimates: boolean;
1869
+ orchestrationId?: string | undefined;
1870
+ instructions?: string | undefined;
1871
+ }, {
1872
+ projectId: string;
1873
+ mode?: "generate" | "refine" | undefined;
1874
+ orchestrationId?: string | undefined;
1875
+ roleId?: string | undefined;
1876
+ instructions?: string | undefined;
1877
+ includeDependencies?: boolean | undefined;
1878
+ includeEstimates?: boolean | undefined;
1879
+ }>, {
1880
+ projectId: string;
1881
+ mode: "generate" | "refine";
1882
+ roleId: string;
1883
+ includeDependencies: boolean;
1884
+ includeEstimates: boolean;
1885
+ orchestrationId?: string | undefined;
1886
+ instructions?: string | undefined;
1887
+ }, {
1888
+ projectId: string;
1889
+ mode?: "generate" | "refine" | undefined;
1890
+ orchestrationId?: string | undefined;
1891
+ roleId?: string | undefined;
1892
+ instructions?: string | undefined;
1893
+ includeDependencies?: boolean | undefined;
1894
+ includeEstimates?: boolean | undefined;
1895
+ }>;
1896
+ export type TasksGenerateInput = z.infer<typeof TasksGenerateInputSchema>;
1897
+ /** POST /api/ai/review/generate */
1898
+ export declare const ReviewGenerateInputSchema: z.ZodEffects<z.ZodObject<{
1899
+ projectId: z.ZodString;
1900
+ roleId: z.ZodOptional<z.ZodString>;
1901
+ } & {
1902
+ orchestrationId: z.ZodOptional<z.ZodString>;
1903
+ } & {
1904
+ mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["generate", "refine"]>>>;
1905
+ instructions: z.ZodOptional<z.ZodString>;
1906
+ }, "strip", z.ZodTypeAny, {
1907
+ projectId: string;
1908
+ mode: "generate" | "refine";
1909
+ orchestrationId?: string | undefined;
1910
+ roleId?: string | undefined;
1911
+ instructions?: string | undefined;
1912
+ }, {
1913
+ projectId: string;
1914
+ mode?: "generate" | "refine" | undefined;
1915
+ orchestrationId?: string | undefined;
1916
+ roleId?: string | undefined;
1917
+ instructions?: string | undefined;
1918
+ }>, {
1919
+ projectId: string;
1920
+ mode: "generate" | "refine";
1921
+ orchestrationId?: string | undefined;
1922
+ roleId?: string | undefined;
1923
+ instructions?: string | undefined;
1924
+ }, {
1925
+ projectId: string;
1926
+ mode?: "generate" | "refine" | undefined;
1927
+ orchestrationId?: string | undefined;
1928
+ roleId?: string | undefined;
1929
+ instructions?: string | undefined;
1930
+ }>;
1931
+ export type ReviewGenerateInput = z.infer<typeof ReviewGenerateInputSchema>;
1932
+ /** POST /api/ai/constitution/generate */
1933
+ export declare const ConstitutionGenerateInputSchema: z.ZodEffects<z.ZodObject<{
1934
+ projectId: z.ZodString;
1935
+ includeRules: z.ZodDefault<z.ZodBoolean>;
1936
+ includeStandards: z.ZodDefault<z.ZodBoolean>;
1937
+ includePatterns: z.ZodDefault<z.ZodBoolean>;
1938
+ basedOnSpecs: z.ZodDefault<z.ZodBoolean>;
1939
+ roleId: z.ZodOptional<z.ZodString>;
1940
+ } & {
1941
+ orchestrationId: z.ZodOptional<z.ZodString>;
1942
+ } & {
1943
+ mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["generate", "refine"]>>>;
1944
+ instructions: z.ZodOptional<z.ZodString>;
1945
+ }, "strip", z.ZodTypeAny, {
1946
+ projectId: string;
1947
+ mode: "generate" | "refine";
1948
+ includeRules: boolean;
1949
+ includeStandards: boolean;
1950
+ includePatterns: boolean;
1951
+ basedOnSpecs: boolean;
1952
+ orchestrationId?: string | undefined;
1953
+ roleId?: string | undefined;
1954
+ instructions?: string | undefined;
1955
+ }, {
1956
+ projectId: string;
1957
+ mode?: "generate" | "refine" | undefined;
1958
+ orchestrationId?: string | undefined;
1959
+ roleId?: string | undefined;
1960
+ instructions?: string | undefined;
1961
+ includeRules?: boolean | undefined;
1962
+ includeStandards?: boolean | undefined;
1963
+ includePatterns?: boolean | undefined;
1964
+ basedOnSpecs?: boolean | undefined;
1965
+ }>, {
1966
+ projectId: string;
1967
+ mode: "generate" | "refine";
1968
+ includeRules: boolean;
1969
+ includeStandards: boolean;
1970
+ includePatterns: boolean;
1971
+ basedOnSpecs: boolean;
1972
+ orchestrationId?: string | undefined;
1973
+ roleId?: string | undefined;
1974
+ instructions?: string | undefined;
1975
+ }, {
1976
+ projectId: string;
1977
+ mode?: "generate" | "refine" | undefined;
1978
+ orchestrationId?: string | undefined;
1979
+ roleId?: string | undefined;
1980
+ instructions?: string | undefined;
1981
+ includeRules?: boolean | undefined;
1982
+ includeStandards?: boolean | undefined;
1983
+ includePatterns?: boolean | undefined;
1984
+ basedOnSpecs?: boolean | undefined;
1985
+ }>;
1986
+ export type ConstitutionGenerateInput = z.infer<typeof ConstitutionGenerateInputSchema>;
1987
+ /** POST /api/ai/compliance/generate */
1988
+ export declare const ComplianceGenerateInputSchema: z.ZodEffects<z.ZodObject<{
1989
+ projectId: z.ZodString;
1990
+ } & {
1991
+ orchestrationId: z.ZodOptional<z.ZodString>;
1992
+ } & {
1993
+ mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["generate", "refine"]>>>;
1994
+ instructions: z.ZodOptional<z.ZodString>;
1995
+ }, "strip", z.ZodTypeAny, {
1996
+ projectId: string;
1997
+ mode: "generate" | "refine";
1998
+ orchestrationId?: string | undefined;
1999
+ instructions?: string | undefined;
2000
+ }, {
2001
+ projectId: string;
2002
+ mode?: "generate" | "refine" | undefined;
2003
+ orchestrationId?: string | undefined;
2004
+ instructions?: string | undefined;
2005
+ }>, {
2006
+ projectId: string;
2007
+ mode: "generate" | "refine";
2008
+ orchestrationId?: string | undefined;
2009
+ instructions?: string | undefined;
2010
+ }, {
2011
+ projectId: string;
2012
+ mode?: "generate" | "refine" | undefined;
2013
+ orchestrationId?: string | undefined;
2014
+ instructions?: string | undefined;
2015
+ }>;
2016
+ export type ComplianceGenerateInput = z.infer<typeof ComplianceGenerateInputSchema>;
2017
+ /** POST /api/ai/deployments/generate */
2018
+ export declare const DeploymentsGenerateInputSchema: z.ZodEffects<z.ZodObject<{
2019
+ projectId: z.ZodString;
2020
+ environment: z.ZodDefault<z.ZodEnum<["development", "preview", "staging", "production"]>>;
2021
+ platform: z.ZodDefault<z.ZodEnum<["vercel", "docker", "both"]>>;
2022
+ } & {
2023
+ orchestrationId: z.ZodOptional<z.ZodString>;
2024
+ } & {
2025
+ mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["generate", "refine"]>>>;
2026
+ instructions: z.ZodOptional<z.ZodString>;
2027
+ }, "strip", z.ZodTypeAny, {
2028
+ projectId: string;
2029
+ mode: "generate" | "refine";
2030
+ platform: "vercel" | "docker" | "both";
2031
+ environment: "development" | "production" | "preview" | "staging";
2032
+ orchestrationId?: string | undefined;
2033
+ instructions?: string | undefined;
2034
+ }, {
2035
+ projectId: string;
2036
+ mode?: "generate" | "refine" | undefined;
2037
+ orchestrationId?: string | undefined;
2038
+ platform?: "vercel" | "docker" | "both" | undefined;
2039
+ environment?: "development" | "production" | "preview" | "staging" | undefined;
2040
+ instructions?: string | undefined;
2041
+ }>, {
2042
+ projectId: string;
2043
+ mode: "generate" | "refine";
2044
+ platform: "vercel" | "docker" | "both";
2045
+ environment: "development" | "production" | "preview" | "staging";
2046
+ orchestrationId?: string | undefined;
2047
+ instructions?: string | undefined;
2048
+ }, {
2049
+ projectId: string;
2050
+ mode?: "generate" | "refine" | undefined;
2051
+ orchestrationId?: string | undefined;
2052
+ platform?: "vercel" | "docker" | "both" | undefined;
2053
+ environment?: "development" | "production" | "preview" | "staging" | undefined;
2054
+ instructions?: string | undefined;
2055
+ }>;
2056
+ export type DeploymentsGenerateInput = z.infer<typeof DeploymentsGenerateInputSchema>;