@neuraloom/contracts 0.0.0-stage → 0.1.22

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 +12554 -0
  563. package/dist/schemas/cortex/bridge-events.schema.js +793 -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 +158 -0
  833. package/dist/schemas/orchestration-execution.js +88 -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 +82 -4
  1141. package/README.md +0 -3
@@ -0,0 +1,2291 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Characters of `rawBrief` sent to the LLM (longer briefs are clipped server-side).
4
+ * Aligns brief-improve duration with other POST /api/ai routes that call generate.
5
+ */
6
+ export declare const BRIEF_IMPROVE_LLM_INPUT_CHAR_BUDGET = 24000;
7
+ /** Request body for POST /api/ai/brief-improve/generate (SSOT: server + client). */
8
+ export declare const BriefImproveGenerateInputSchema: z.ZodObject<{
9
+ projectId: z.ZodString;
10
+ /** Raw project brief text the user has entered. */
11
+ rawBrief: z.ZodString;
12
+ /**
13
+ * Focus mode:
14
+ * - "summarise" → tighter, focused prose (default; safe for >10k briefs)
15
+ * - "improve" → clarity and completeness pass without length reduction
16
+ * - "structure" → return a structured ProjectBriefJson object
17
+ */
18
+ mode: z.ZodDefault<z.ZodEnum<["summarise", "improve", "structure"]>>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ projectId: string;
21
+ rawBrief: string;
22
+ mode: "structure" | "summarise" | "improve";
23
+ }, {
24
+ projectId: string;
25
+ rawBrief: string;
26
+ mode?: "structure" | "summarise" | "improve" | undefined;
27
+ }>;
28
+ export type BriefImproveGenerateInput = z.infer<typeof BriefImproveGenerateInputSchema>;
29
+ export declare const SoftwareBriefJsonSchema: z.ZodObject<{
30
+ kind: z.ZodLiteral<"software">;
31
+ title: z.ZodString;
32
+ domain: z.ZodString;
33
+ corePurpose: z.ZodString;
34
+ targetUsers: z.ZodArray<z.ZodString, "many">;
35
+ keyFeatures: z.ZodArray<z.ZodString, "many">;
36
+ dataModel: z.ZodOptional<z.ZodString>;
37
+ nonFunctionalRequirements: z.ZodObject<{
38
+ performance: z.ZodOptional<z.ZodString>;
39
+ security: z.ZodOptional<z.ZodString>;
40
+ accessibility: z.ZodOptional<z.ZodString>;
41
+ scalability: z.ZodOptional<z.ZodString>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ performance?: string | undefined;
44
+ security?: string | undefined;
45
+ accessibility?: string | undefined;
46
+ scalability?: string | undefined;
47
+ }, {
48
+ performance?: string | undefined;
49
+ security?: string | undefined;
50
+ accessibility?: string | undefined;
51
+ scalability?: string | undefined;
52
+ }>;
53
+ constraints: z.ZodArray<z.ZodString, "many">;
54
+ successCriteria: z.ZodArray<z.ZodString, "many">;
55
+ /** Injected server-side — not editable by users. */
56
+ techStack: z.ZodObject<{
57
+ frontend: z.ZodLiteral<"Next.js 15 App Router, React 19, TypeScript 5 strict">;
58
+ styling: z.ZodLiteral<"Tailwind v4 with semantic design tokens — no hardcoded values">;
59
+ backend: z.ZodLiteral<"Supabase (Postgres, Auth, RLS, Edge Functions)">;
60
+ hosting: z.ZodLiteral<"Vercel — Fluid Compute, Edge Middleware">;
61
+ ai: z.ZodLiteral<"OpenAI via NeuraLoom enhanced-client">;
62
+ packageManager: z.ZodLiteral<"pnpm + Turborepo monorepo">;
63
+ }, "strip", z.ZodTypeAny, {
64
+ frontend: "Next.js 15 App Router, React 19, TypeScript 5 strict";
65
+ styling: "Tailwind v4 with semantic design tokens — no hardcoded values";
66
+ backend: "Supabase (Postgres, Auth, RLS, Edge Functions)";
67
+ hosting: "Vercel — Fluid Compute, Edge Middleware";
68
+ ai: "OpenAI via NeuraLoom enhanced-client";
69
+ packageManager: "pnpm + Turborepo monorepo";
70
+ }, {
71
+ frontend: "Next.js 15 App Router, React 19, TypeScript 5 strict";
72
+ styling: "Tailwind v4 with semantic design tokens — no hardcoded values";
73
+ backend: "Supabase (Postgres, Auth, RLS, Edge Functions)";
74
+ hosting: "Vercel — Fluid Compute, Edge Middleware";
75
+ ai: "OpenAI via NeuraLoom enhanced-client";
76
+ packageManager: "pnpm + Turborepo monorepo";
77
+ }>;
78
+ /** Injected server-side — constitutional hard limits. */
79
+ constitutionalRules: z.ZodArray<z.ZodString, "many">;
80
+ }, "strip", z.ZodTypeAny, {
81
+ title: string;
82
+ kind: "software";
83
+ domain: string;
84
+ corePurpose: string;
85
+ targetUsers: string[];
86
+ keyFeatures: string[];
87
+ nonFunctionalRequirements: {
88
+ performance?: string | undefined;
89
+ security?: string | undefined;
90
+ accessibility?: string | undefined;
91
+ scalability?: string | undefined;
92
+ };
93
+ constraints: string[];
94
+ successCriteria: string[];
95
+ techStack: {
96
+ frontend: "Next.js 15 App Router, React 19, TypeScript 5 strict";
97
+ styling: "Tailwind v4 with semantic design tokens — no hardcoded values";
98
+ backend: "Supabase (Postgres, Auth, RLS, Edge Functions)";
99
+ hosting: "Vercel — Fluid Compute, Edge Middleware";
100
+ ai: "OpenAI via NeuraLoom enhanced-client";
101
+ packageManager: "pnpm + Turborepo monorepo";
102
+ };
103
+ constitutionalRules: string[];
104
+ dataModel?: string | undefined;
105
+ }, {
106
+ title: string;
107
+ kind: "software";
108
+ domain: string;
109
+ corePurpose: string;
110
+ targetUsers: string[];
111
+ keyFeatures: string[];
112
+ nonFunctionalRequirements: {
113
+ performance?: string | undefined;
114
+ security?: string | undefined;
115
+ accessibility?: string | undefined;
116
+ scalability?: string | undefined;
117
+ };
118
+ constraints: string[];
119
+ successCriteria: string[];
120
+ techStack: {
121
+ frontend: "Next.js 15 App Router, React 19, TypeScript 5 strict";
122
+ styling: "Tailwind v4 with semantic design tokens — no hardcoded values";
123
+ backend: "Supabase (Postgres, Auth, RLS, Edge Functions)";
124
+ hosting: "Vercel — Fluid Compute, Edge Middleware";
125
+ ai: "OpenAI via NeuraLoom enhanced-client";
126
+ packageManager: "pnpm + Turborepo monorepo";
127
+ };
128
+ constitutionalRules: string[];
129
+ dataModel?: string | undefined;
130
+ }>;
131
+ export type SoftwareBriefJson = z.infer<typeof SoftwareBriefJsonSchema>;
132
+ /** BCP-47-ish manuscript output language for writing projects (portal + pipelines). */
133
+ export declare const ContentLanguageSchema: z.ZodEnum<["en", "es"]>;
134
+ export type ContentLanguage = z.infer<typeof ContentLanguageSchema>;
135
+ export declare const ManuscriptComparableWorkSchema: z.ZodObject<{
136
+ title: z.ZodString;
137
+ author: z.ZodOptional<z.ZodString>;
138
+ provenance: z.ZodEnum<["user_supplied", "verified", "inferred", "unknown"]>;
139
+ admiredQualities: z.ZodArray<z.ZodString, "many">;
140
+ readerGap: z.ZodOptional<z.ZodString>;
141
+ avoidImitating: z.ZodArray<z.ZodString, "many">;
142
+ /** Server-derived only: exact URL present in the Responses citation annotations. */
143
+ sourceUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
144
+ /** Server-derived only: exact title paired with sourceUrl in the citation annotation. */
145
+ sourceTitle: z.ZodOptional<z.ZodString>;
146
+ /** Server-derived only: the retrieval response that supplied the matching citation. */
147
+ verificationResponseId: z.ZodOptional<z.ZodString>;
148
+ /** Server-derived only: when the matching citation was compiled. */
149
+ verifiedAt: z.ZodOptional<z.ZodString>;
150
+ }, "strip", z.ZodTypeAny, {
151
+ title: string;
152
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
153
+ admiredQualities: string[];
154
+ avoidImitating: string[];
155
+ author?: string | undefined;
156
+ readerGap?: string | undefined;
157
+ sourceUrl?: string | undefined;
158
+ sourceTitle?: string | undefined;
159
+ verificationResponseId?: string | undefined;
160
+ verifiedAt?: string | undefined;
161
+ }, {
162
+ title: string;
163
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
164
+ admiredQualities: string[];
165
+ avoidImitating: string[];
166
+ author?: string | undefined;
167
+ readerGap?: string | undefined;
168
+ sourceUrl?: string | undefined;
169
+ sourceTitle?: string | undefined;
170
+ verificationResponseId?: string | undefined;
171
+ verifiedAt?: string | undefined;
172
+ }>;
173
+ export declare const ManuscriptCompetitiveCitationSchema: z.ZodObject<{
174
+ url: z.ZodEffects<z.ZodString, string, string>;
175
+ title: z.ZodString;
176
+ responseId: z.ZodString;
177
+ researchedAt: z.ZodString;
178
+ }, "strip", z.ZodTypeAny, {
179
+ title: string;
180
+ url: string;
181
+ responseId: string;
182
+ researchedAt: string;
183
+ }, {
184
+ title: string;
185
+ url: string;
186
+ responseId: string;
187
+ researchedAt: string;
188
+ }>;
189
+ export declare const ManuscriptCompetitivePositioningSchema: z.ZodObject<{
190
+ comparables: z.ZodArray<z.ZodObject<{
191
+ title: z.ZodString;
192
+ author: z.ZodOptional<z.ZodString>;
193
+ provenance: z.ZodEnum<["user_supplied", "verified", "inferred", "unknown"]>;
194
+ admiredQualities: z.ZodArray<z.ZodString, "many">;
195
+ readerGap: z.ZodOptional<z.ZodString>;
196
+ avoidImitating: z.ZodArray<z.ZodString, "many">;
197
+ /** Server-derived only: exact URL present in the Responses citation annotations. */
198
+ sourceUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
199
+ /** Server-derived only: exact title paired with sourceUrl in the citation annotation. */
200
+ sourceTitle: z.ZodOptional<z.ZodString>;
201
+ /** Server-derived only: the retrieval response that supplied the matching citation. */
202
+ verificationResponseId: z.ZodOptional<z.ZodString>;
203
+ /** Server-derived only: when the matching citation was compiled. */
204
+ verifiedAt: z.ZodOptional<z.ZodString>;
205
+ }, "strip", z.ZodTypeAny, {
206
+ title: string;
207
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
208
+ admiredQualities: string[];
209
+ avoidImitating: string[];
210
+ author?: string | undefined;
211
+ readerGap?: string | undefined;
212
+ sourceUrl?: string | undefined;
213
+ sourceTitle?: string | undefined;
214
+ verificationResponseId?: string | undefined;
215
+ verifiedAt?: string | undefined;
216
+ }, {
217
+ title: string;
218
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
219
+ admiredQualities: string[];
220
+ avoidImitating: string[];
221
+ author?: string | undefined;
222
+ readerGap?: string | undefined;
223
+ sourceUrl?: string | undefined;
224
+ sourceTitle?: string | undefined;
225
+ verificationResponseId?: string | undefined;
226
+ verifiedAt?: string | undefined;
227
+ }>, "many">;
228
+ readerGap: z.ZodString;
229
+ differentiation: z.ZodArray<z.ZodString, "many">;
230
+ conventionsToKeep: z.ZodArray<z.ZodString, "many">;
231
+ conventionsToReject: z.ZodArray<z.ZodString, "many">;
232
+ overlapRisks: z.ZodArray<z.ZodString, "many">;
233
+ unknownsRequiringResearch: z.ZodArray<z.ZodString, "many">;
234
+ /** Optional at rest for legacy rows; required before a new nonfiction thesis run. */
235
+ researchStatus: z.ZodOptional<z.ZodEnum<["verified", "partial", "not_required"]>>;
236
+ /** OpenAI Responses identity. Never supplied or inferred by the model. */
237
+ researchResponseId: z.ZodOptional<z.ZodString>;
238
+ researchedAt: z.ZodOptional<z.ZodString>;
239
+ citations: z.ZodOptional<z.ZodArray<z.ZodObject<{
240
+ url: z.ZodEffects<z.ZodString, string, string>;
241
+ title: z.ZodString;
242
+ responseId: z.ZodString;
243
+ researchedAt: z.ZodString;
244
+ }, "strip", z.ZodTypeAny, {
245
+ title: string;
246
+ url: string;
247
+ responseId: string;
248
+ researchedAt: string;
249
+ }, {
250
+ title: string;
251
+ url: string;
252
+ responseId: string;
253
+ researchedAt: string;
254
+ }>, "many">>;
255
+ }, "strip", z.ZodTypeAny, {
256
+ readerGap: string;
257
+ comparables: {
258
+ title: string;
259
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
260
+ admiredQualities: string[];
261
+ avoidImitating: string[];
262
+ author?: string | undefined;
263
+ readerGap?: string | undefined;
264
+ sourceUrl?: string | undefined;
265
+ sourceTitle?: string | undefined;
266
+ verificationResponseId?: string | undefined;
267
+ verifiedAt?: string | undefined;
268
+ }[];
269
+ differentiation: string[];
270
+ conventionsToKeep: string[];
271
+ conventionsToReject: string[];
272
+ overlapRisks: string[];
273
+ unknownsRequiringResearch: string[];
274
+ researchedAt?: string | undefined;
275
+ researchStatus?: "partial" | "verified" | "not_required" | undefined;
276
+ researchResponseId?: string | undefined;
277
+ citations?: {
278
+ title: string;
279
+ url: string;
280
+ responseId: string;
281
+ researchedAt: string;
282
+ }[] | undefined;
283
+ }, {
284
+ readerGap: string;
285
+ comparables: {
286
+ title: string;
287
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
288
+ admiredQualities: string[];
289
+ avoidImitating: string[];
290
+ author?: string | undefined;
291
+ readerGap?: string | undefined;
292
+ sourceUrl?: string | undefined;
293
+ sourceTitle?: string | undefined;
294
+ verificationResponseId?: string | undefined;
295
+ verifiedAt?: string | undefined;
296
+ }[];
297
+ differentiation: string[];
298
+ conventionsToKeep: string[];
299
+ conventionsToReject: string[];
300
+ overlapRisks: string[];
301
+ unknownsRequiringResearch: string[];
302
+ researchedAt?: string | undefined;
303
+ researchStatus?: "partial" | "verified" | "not_required" | undefined;
304
+ researchResponseId?: string | undefined;
305
+ citations?: {
306
+ title: string;
307
+ url: string;
308
+ responseId: string;
309
+ researchedAt: string;
310
+ }[] | undefined;
311
+ }>;
312
+ export type ManuscriptCompetitivePositioning = z.infer<typeof ManuscriptCompetitivePositioningSchema>;
313
+ /**
314
+ * Nonfiction readiness is intentionally stricter than legacy parsing. A saved
315
+ * brief may remain readable without retrieval metadata, but a new thesis run
316
+ * cannot treat model-declared provenance as evidence.
317
+ */
318
+ export declare function getManuscriptCompetitiveResearchBlockers(positioning: ManuscriptCompetitivePositioning | undefined): string[];
319
+ export declare const ManuscriptAudioListeningContractSchema: z.ZodObject<{
320
+ idealListeningContext: z.ZodString;
321
+ spokenStyle: z.ZodString;
322
+ attentionPattern: z.ZodString;
323
+ pacingAndPronunciationNeeds: z.ZodArray<z.ZodString, "many">;
324
+ successTest: z.ZodString;
325
+ }, "strip", z.ZodTypeAny, {
326
+ idealListeningContext: string;
327
+ spokenStyle: string;
328
+ attentionPattern: string;
329
+ pacingAndPronunciationNeeds: string[];
330
+ successTest: string;
331
+ }, {
332
+ idealListeningContext: string;
333
+ spokenStyle: string;
334
+ attentionPattern: string;
335
+ pacingAndPronunciationNeeds: string[];
336
+ successTest: string;
337
+ }>;
338
+ export declare const ManuscriptBriefJsonSchema: z.ZodObject<{
339
+ kind: z.ZodEnum<["book", "technical_report", "scientific_paper", "research_brief", "white_paper", "philosophical_manuscript"]>;
340
+ title: z.ZodString;
341
+ subtitle: z.ZodOptional<z.ZodString>;
342
+ /** Exact human-supplied publication byline. Never inferred from account identity. */
343
+ authorName: z.ZodOptional<z.ZodString>;
344
+ genre: z.ZodOptional<z.ZodString>;
345
+ domain: z.ZodString;
346
+ coreThesis: z.ZodString;
347
+ subject: z.ZodOptional<z.ZodString>;
348
+ scope: z.ZodOptional<z.ZodString>;
349
+ intendedReaders: z.ZodArray<z.ZodString, "many">;
350
+ tone: z.ZodOptional<z.ZodString>;
351
+ style: z.ZodOptional<z.ZodString>;
352
+ centralThemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
353
+ symbolicFramework: z.ZodOptional<z.ZodString>;
354
+ argumentPillars: z.ZodArray<z.ZodString, "many">;
355
+ keyClaims: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
356
+ counterclaims: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
357
+ manuscriptConstraints: z.ZodArray<z.ZodString, "many">;
358
+ sourceRequirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
359
+ successCriteria: z.ZodArray<z.ZodString, "many">;
360
+ readerOutcome: z.ZodOptional<z.ZodString>;
361
+ publicationGoal: z.ZodOptional<z.ZodString>;
362
+ /** The human intent contract. Optional at rest for legacy rows; required by new nonfiction runs. */
363
+ centralQuestion: z.ZodOptional<z.ZodString>;
364
+ directAnswer: z.ZodOptional<z.ZodString>;
365
+ readerPromise: z.ZodOptional<z.ZodString>;
366
+ primaryReader: z.ZodOptional<z.ZodString>;
367
+ readerStartingState: z.ZodOptional<z.ZodString>;
368
+ readerEndingState: z.ZodOptional<z.ZodString>;
369
+ scopeIn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
370
+ exclusions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
371
+ toneDos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
372
+ toneDonts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
373
+ audioListeningContract: z.ZodOptional<z.ZodObject<{
374
+ idealListeningContext: z.ZodString;
375
+ spokenStyle: z.ZodString;
376
+ attentionPattern: z.ZodString;
377
+ pacingAndPronunciationNeeds: z.ZodArray<z.ZodString, "many">;
378
+ successTest: z.ZodString;
379
+ }, "strip", z.ZodTypeAny, {
380
+ idealListeningContext: string;
381
+ spokenStyle: string;
382
+ attentionPattern: string;
383
+ pacingAndPronunciationNeeds: string[];
384
+ successTest: string;
385
+ }, {
386
+ idealListeningContext: string;
387
+ spokenStyle: string;
388
+ attentionPattern: string;
389
+ pacingAndPronunciationNeeds: string[];
390
+ successTest: string;
391
+ }>>;
392
+ competitivePositioning: z.ZodOptional<z.ZodObject<{
393
+ comparables: z.ZodArray<z.ZodObject<{
394
+ title: z.ZodString;
395
+ author: z.ZodOptional<z.ZodString>;
396
+ provenance: z.ZodEnum<["user_supplied", "verified", "inferred", "unknown"]>;
397
+ admiredQualities: z.ZodArray<z.ZodString, "many">;
398
+ readerGap: z.ZodOptional<z.ZodString>;
399
+ avoidImitating: z.ZodArray<z.ZodString, "many">;
400
+ /** Server-derived only: exact URL present in the Responses citation annotations. */
401
+ sourceUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
402
+ /** Server-derived only: exact title paired with sourceUrl in the citation annotation. */
403
+ sourceTitle: z.ZodOptional<z.ZodString>;
404
+ /** Server-derived only: the retrieval response that supplied the matching citation. */
405
+ verificationResponseId: z.ZodOptional<z.ZodString>;
406
+ /** Server-derived only: when the matching citation was compiled. */
407
+ verifiedAt: z.ZodOptional<z.ZodString>;
408
+ }, "strip", z.ZodTypeAny, {
409
+ title: string;
410
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
411
+ admiredQualities: string[];
412
+ avoidImitating: string[];
413
+ author?: string | undefined;
414
+ readerGap?: string | undefined;
415
+ sourceUrl?: string | undefined;
416
+ sourceTitle?: string | undefined;
417
+ verificationResponseId?: string | undefined;
418
+ verifiedAt?: string | undefined;
419
+ }, {
420
+ title: string;
421
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
422
+ admiredQualities: string[];
423
+ avoidImitating: string[];
424
+ author?: string | undefined;
425
+ readerGap?: string | undefined;
426
+ sourceUrl?: string | undefined;
427
+ sourceTitle?: string | undefined;
428
+ verificationResponseId?: string | undefined;
429
+ verifiedAt?: string | undefined;
430
+ }>, "many">;
431
+ readerGap: z.ZodString;
432
+ differentiation: z.ZodArray<z.ZodString, "many">;
433
+ conventionsToKeep: z.ZodArray<z.ZodString, "many">;
434
+ conventionsToReject: z.ZodArray<z.ZodString, "many">;
435
+ overlapRisks: z.ZodArray<z.ZodString, "many">;
436
+ unknownsRequiringResearch: z.ZodArray<z.ZodString, "many">;
437
+ /** Optional at rest for legacy rows; required before a new nonfiction thesis run. */
438
+ researchStatus: z.ZodOptional<z.ZodEnum<["verified", "partial", "not_required"]>>;
439
+ /** OpenAI Responses identity. Never supplied or inferred by the model. */
440
+ researchResponseId: z.ZodOptional<z.ZodString>;
441
+ researchedAt: z.ZodOptional<z.ZodString>;
442
+ citations: z.ZodOptional<z.ZodArray<z.ZodObject<{
443
+ url: z.ZodEffects<z.ZodString, string, string>;
444
+ title: z.ZodString;
445
+ responseId: z.ZodString;
446
+ researchedAt: z.ZodString;
447
+ }, "strip", z.ZodTypeAny, {
448
+ title: string;
449
+ url: string;
450
+ responseId: string;
451
+ researchedAt: string;
452
+ }, {
453
+ title: string;
454
+ url: string;
455
+ responseId: string;
456
+ researchedAt: string;
457
+ }>, "many">>;
458
+ }, "strip", z.ZodTypeAny, {
459
+ readerGap: string;
460
+ comparables: {
461
+ title: string;
462
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
463
+ admiredQualities: string[];
464
+ avoidImitating: string[];
465
+ author?: string | undefined;
466
+ readerGap?: string | undefined;
467
+ sourceUrl?: string | undefined;
468
+ sourceTitle?: string | undefined;
469
+ verificationResponseId?: string | undefined;
470
+ verifiedAt?: string | undefined;
471
+ }[];
472
+ differentiation: string[];
473
+ conventionsToKeep: string[];
474
+ conventionsToReject: string[];
475
+ overlapRisks: string[];
476
+ unknownsRequiringResearch: string[];
477
+ researchedAt?: string | undefined;
478
+ researchStatus?: "partial" | "verified" | "not_required" | undefined;
479
+ researchResponseId?: string | undefined;
480
+ citations?: {
481
+ title: string;
482
+ url: string;
483
+ responseId: string;
484
+ researchedAt: string;
485
+ }[] | undefined;
486
+ }, {
487
+ readerGap: string;
488
+ comparables: {
489
+ title: string;
490
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
491
+ admiredQualities: string[];
492
+ avoidImitating: string[];
493
+ author?: string | undefined;
494
+ readerGap?: string | undefined;
495
+ sourceUrl?: string | undefined;
496
+ sourceTitle?: string | undefined;
497
+ verificationResponseId?: string | undefined;
498
+ verifiedAt?: string | undefined;
499
+ }[];
500
+ differentiation: string[];
501
+ conventionsToKeep: string[];
502
+ conventionsToReject: string[];
503
+ overlapRisks: string[];
504
+ unknownsRequiringResearch: string[];
505
+ researchedAt?: string | undefined;
506
+ researchStatus?: "partial" | "verified" | "not_required" | undefined;
507
+ researchResponseId?: string | undefined;
508
+ citations?: {
509
+ title: string;
510
+ url: string;
511
+ responseId: string;
512
+ researchedAt: string;
513
+ }[] | undefined;
514
+ }>>;
515
+ /** Questions the human must answer before nonfiction orchestration may proceed. */
516
+ clarificationQuestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
517
+ /** Assumptions are disclosed, never silently promoted to user intent. */
518
+ intentAssumptions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
519
+ intentConfidence: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
520
+ /** Preferred language for generated manuscript artifacts (e.g. portal Spanish books). */
521
+ contentLanguage: z.ZodOptional<z.ZodEnum<["en", "es"]>>;
522
+ }, "strip", z.ZodTypeAny, {
523
+ title: string;
524
+ kind: "book" | "technical_report" | "scientific_paper" | "research_brief" | "white_paper" | "philosophical_manuscript";
525
+ domain: string;
526
+ successCriteria: string[];
527
+ coreThesis: string;
528
+ intendedReaders: string[];
529
+ argumentPillars: string[];
530
+ manuscriptConstraints: string[];
531
+ subtitle?: string | undefined;
532
+ authorName?: string | undefined;
533
+ genre?: string | undefined;
534
+ subject?: string | undefined;
535
+ scope?: string | undefined;
536
+ tone?: string | undefined;
537
+ style?: string | undefined;
538
+ centralThemes?: string[] | undefined;
539
+ symbolicFramework?: string | undefined;
540
+ keyClaims?: string[] | undefined;
541
+ counterclaims?: string[] | undefined;
542
+ sourceRequirements?: string[] | undefined;
543
+ readerOutcome?: string | undefined;
544
+ publicationGoal?: string | undefined;
545
+ centralQuestion?: string | undefined;
546
+ directAnswer?: string | undefined;
547
+ readerPromise?: string | undefined;
548
+ primaryReader?: string | undefined;
549
+ readerStartingState?: string | undefined;
550
+ readerEndingState?: string | undefined;
551
+ scopeIn?: string[] | undefined;
552
+ exclusions?: string[] | undefined;
553
+ toneDos?: string[] | undefined;
554
+ toneDonts?: string[] | undefined;
555
+ audioListeningContract?: {
556
+ idealListeningContext: string;
557
+ spokenStyle: string;
558
+ attentionPattern: string;
559
+ pacingAndPronunciationNeeds: string[];
560
+ successTest: string;
561
+ } | undefined;
562
+ competitivePositioning?: {
563
+ readerGap: string;
564
+ comparables: {
565
+ title: string;
566
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
567
+ admiredQualities: string[];
568
+ avoidImitating: string[];
569
+ author?: string | undefined;
570
+ readerGap?: string | undefined;
571
+ sourceUrl?: string | undefined;
572
+ sourceTitle?: string | undefined;
573
+ verificationResponseId?: string | undefined;
574
+ verifiedAt?: string | undefined;
575
+ }[];
576
+ differentiation: string[];
577
+ conventionsToKeep: string[];
578
+ conventionsToReject: string[];
579
+ overlapRisks: string[];
580
+ unknownsRequiringResearch: string[];
581
+ researchedAt?: string | undefined;
582
+ researchStatus?: "partial" | "verified" | "not_required" | undefined;
583
+ researchResponseId?: string | undefined;
584
+ citations?: {
585
+ title: string;
586
+ url: string;
587
+ responseId: string;
588
+ researchedAt: string;
589
+ }[] | undefined;
590
+ } | undefined;
591
+ clarificationQuestions?: string[] | undefined;
592
+ intentAssumptions?: string[] | undefined;
593
+ intentConfidence?: "low" | "medium" | "high" | undefined;
594
+ contentLanguage?: "en" | "es" | undefined;
595
+ }, {
596
+ title: string;
597
+ kind: "book" | "technical_report" | "scientific_paper" | "research_brief" | "white_paper" | "philosophical_manuscript";
598
+ domain: string;
599
+ successCriteria: string[];
600
+ coreThesis: string;
601
+ intendedReaders: string[];
602
+ argumentPillars: string[];
603
+ manuscriptConstraints: string[];
604
+ subtitle?: string | undefined;
605
+ authorName?: string | undefined;
606
+ genre?: string | undefined;
607
+ subject?: string | undefined;
608
+ scope?: string | undefined;
609
+ tone?: string | undefined;
610
+ style?: string | undefined;
611
+ centralThemes?: string[] | undefined;
612
+ symbolicFramework?: string | undefined;
613
+ keyClaims?: string[] | undefined;
614
+ counterclaims?: string[] | undefined;
615
+ sourceRequirements?: string[] | undefined;
616
+ readerOutcome?: string | undefined;
617
+ publicationGoal?: string | undefined;
618
+ centralQuestion?: string | undefined;
619
+ directAnswer?: string | undefined;
620
+ readerPromise?: string | undefined;
621
+ primaryReader?: string | undefined;
622
+ readerStartingState?: string | undefined;
623
+ readerEndingState?: string | undefined;
624
+ scopeIn?: string[] | undefined;
625
+ exclusions?: string[] | undefined;
626
+ toneDos?: string[] | undefined;
627
+ toneDonts?: string[] | undefined;
628
+ audioListeningContract?: {
629
+ idealListeningContext: string;
630
+ spokenStyle: string;
631
+ attentionPattern: string;
632
+ pacingAndPronunciationNeeds: string[];
633
+ successTest: string;
634
+ } | undefined;
635
+ competitivePositioning?: {
636
+ readerGap: string;
637
+ comparables: {
638
+ title: string;
639
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
640
+ admiredQualities: string[];
641
+ avoidImitating: string[];
642
+ author?: string | undefined;
643
+ readerGap?: string | undefined;
644
+ sourceUrl?: string | undefined;
645
+ sourceTitle?: string | undefined;
646
+ verificationResponseId?: string | undefined;
647
+ verifiedAt?: string | undefined;
648
+ }[];
649
+ differentiation: string[];
650
+ conventionsToKeep: string[];
651
+ conventionsToReject: string[];
652
+ overlapRisks: string[];
653
+ unknownsRequiringResearch: string[];
654
+ researchedAt?: string | undefined;
655
+ researchStatus?: "partial" | "verified" | "not_required" | undefined;
656
+ researchResponseId?: string | undefined;
657
+ citations?: {
658
+ title: string;
659
+ url: string;
660
+ responseId: string;
661
+ researchedAt: string;
662
+ }[] | undefined;
663
+ } | undefined;
664
+ clarificationQuestions?: string[] | undefined;
665
+ intentAssumptions?: string[] | undefined;
666
+ intentConfidence?: "low" | "medium" | "high" | undefined;
667
+ contentLanguage?: "en" | "es" | undefined;
668
+ }>;
669
+ export type ManuscriptBriefJson = z.infer<typeof ManuscriptBriefJsonSchema>;
670
+ /**
671
+ * Canonical gate for a new nonfiction thesis run. Legacy briefs remain
672
+ * parseable, but missing or model-assumed human intent never becomes authority.
673
+ * Publication byline is intentionally not a thesis prerequisite.
674
+ */
675
+ export declare function getManuscriptIntentReadinessBlockers(brief: ManuscriptBriefJson): string[];
676
+ export declare const ProjectBriefJsonSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
677
+ kind: z.ZodLiteral<"software">;
678
+ title: z.ZodString;
679
+ domain: z.ZodString;
680
+ corePurpose: z.ZodString;
681
+ targetUsers: z.ZodArray<z.ZodString, "many">;
682
+ keyFeatures: z.ZodArray<z.ZodString, "many">;
683
+ dataModel: z.ZodOptional<z.ZodString>;
684
+ nonFunctionalRequirements: z.ZodObject<{
685
+ performance: z.ZodOptional<z.ZodString>;
686
+ security: z.ZodOptional<z.ZodString>;
687
+ accessibility: z.ZodOptional<z.ZodString>;
688
+ scalability: z.ZodOptional<z.ZodString>;
689
+ }, "strip", z.ZodTypeAny, {
690
+ performance?: string | undefined;
691
+ security?: string | undefined;
692
+ accessibility?: string | undefined;
693
+ scalability?: string | undefined;
694
+ }, {
695
+ performance?: string | undefined;
696
+ security?: string | undefined;
697
+ accessibility?: string | undefined;
698
+ scalability?: string | undefined;
699
+ }>;
700
+ constraints: z.ZodArray<z.ZodString, "many">;
701
+ successCriteria: z.ZodArray<z.ZodString, "many">;
702
+ /** Injected server-side — not editable by users. */
703
+ techStack: z.ZodObject<{
704
+ frontend: z.ZodLiteral<"Next.js 15 App Router, React 19, TypeScript 5 strict">;
705
+ styling: z.ZodLiteral<"Tailwind v4 with semantic design tokens — no hardcoded values">;
706
+ backend: z.ZodLiteral<"Supabase (Postgres, Auth, RLS, Edge Functions)">;
707
+ hosting: z.ZodLiteral<"Vercel — Fluid Compute, Edge Middleware">;
708
+ ai: z.ZodLiteral<"OpenAI via NeuraLoom enhanced-client">;
709
+ packageManager: z.ZodLiteral<"pnpm + Turborepo monorepo">;
710
+ }, "strip", z.ZodTypeAny, {
711
+ frontend: "Next.js 15 App Router, React 19, TypeScript 5 strict";
712
+ styling: "Tailwind v4 with semantic design tokens — no hardcoded values";
713
+ backend: "Supabase (Postgres, Auth, RLS, Edge Functions)";
714
+ hosting: "Vercel — Fluid Compute, Edge Middleware";
715
+ ai: "OpenAI via NeuraLoom enhanced-client";
716
+ packageManager: "pnpm + Turborepo monorepo";
717
+ }, {
718
+ frontend: "Next.js 15 App Router, React 19, TypeScript 5 strict";
719
+ styling: "Tailwind v4 with semantic design tokens — no hardcoded values";
720
+ backend: "Supabase (Postgres, Auth, RLS, Edge Functions)";
721
+ hosting: "Vercel — Fluid Compute, Edge Middleware";
722
+ ai: "OpenAI via NeuraLoom enhanced-client";
723
+ packageManager: "pnpm + Turborepo monorepo";
724
+ }>;
725
+ /** Injected server-side — constitutional hard limits. */
726
+ constitutionalRules: z.ZodArray<z.ZodString, "many">;
727
+ }, "strip", z.ZodTypeAny, {
728
+ title: string;
729
+ kind: "software";
730
+ domain: string;
731
+ corePurpose: string;
732
+ targetUsers: string[];
733
+ keyFeatures: string[];
734
+ nonFunctionalRequirements: {
735
+ performance?: string | undefined;
736
+ security?: string | undefined;
737
+ accessibility?: string | undefined;
738
+ scalability?: string | undefined;
739
+ };
740
+ constraints: string[];
741
+ successCriteria: string[];
742
+ techStack: {
743
+ frontend: "Next.js 15 App Router, React 19, TypeScript 5 strict";
744
+ styling: "Tailwind v4 with semantic design tokens — no hardcoded values";
745
+ backend: "Supabase (Postgres, Auth, RLS, Edge Functions)";
746
+ hosting: "Vercel — Fluid Compute, Edge Middleware";
747
+ ai: "OpenAI via NeuraLoom enhanced-client";
748
+ packageManager: "pnpm + Turborepo monorepo";
749
+ };
750
+ constitutionalRules: string[];
751
+ dataModel?: string | undefined;
752
+ }, {
753
+ title: string;
754
+ kind: "software";
755
+ domain: string;
756
+ corePurpose: string;
757
+ targetUsers: string[];
758
+ keyFeatures: string[];
759
+ nonFunctionalRequirements: {
760
+ performance?: string | undefined;
761
+ security?: string | undefined;
762
+ accessibility?: string | undefined;
763
+ scalability?: string | undefined;
764
+ };
765
+ constraints: string[];
766
+ successCriteria: string[];
767
+ techStack: {
768
+ frontend: "Next.js 15 App Router, React 19, TypeScript 5 strict";
769
+ styling: "Tailwind v4 with semantic design tokens — no hardcoded values";
770
+ backend: "Supabase (Postgres, Auth, RLS, Edge Functions)";
771
+ hosting: "Vercel — Fluid Compute, Edge Middleware";
772
+ ai: "OpenAI via NeuraLoom enhanced-client";
773
+ packageManager: "pnpm + Turborepo monorepo";
774
+ };
775
+ constitutionalRules: string[];
776
+ dataModel?: string | undefined;
777
+ }>, z.ZodObject<{
778
+ kind: z.ZodEnum<["book", "technical_report", "scientific_paper", "research_brief", "white_paper", "philosophical_manuscript"]>;
779
+ title: z.ZodString;
780
+ subtitle: z.ZodOptional<z.ZodString>;
781
+ /** Exact human-supplied publication byline. Never inferred from account identity. */
782
+ authorName: z.ZodOptional<z.ZodString>;
783
+ genre: z.ZodOptional<z.ZodString>;
784
+ domain: z.ZodString;
785
+ coreThesis: z.ZodString;
786
+ subject: z.ZodOptional<z.ZodString>;
787
+ scope: z.ZodOptional<z.ZodString>;
788
+ intendedReaders: z.ZodArray<z.ZodString, "many">;
789
+ tone: z.ZodOptional<z.ZodString>;
790
+ style: z.ZodOptional<z.ZodString>;
791
+ centralThemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
792
+ symbolicFramework: z.ZodOptional<z.ZodString>;
793
+ argumentPillars: z.ZodArray<z.ZodString, "many">;
794
+ keyClaims: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
795
+ counterclaims: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
796
+ manuscriptConstraints: z.ZodArray<z.ZodString, "many">;
797
+ sourceRequirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
798
+ successCriteria: z.ZodArray<z.ZodString, "many">;
799
+ readerOutcome: z.ZodOptional<z.ZodString>;
800
+ publicationGoal: z.ZodOptional<z.ZodString>;
801
+ /** The human intent contract. Optional at rest for legacy rows; required by new nonfiction runs. */
802
+ centralQuestion: z.ZodOptional<z.ZodString>;
803
+ directAnswer: z.ZodOptional<z.ZodString>;
804
+ readerPromise: z.ZodOptional<z.ZodString>;
805
+ primaryReader: z.ZodOptional<z.ZodString>;
806
+ readerStartingState: z.ZodOptional<z.ZodString>;
807
+ readerEndingState: z.ZodOptional<z.ZodString>;
808
+ scopeIn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
809
+ exclusions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
810
+ toneDos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
811
+ toneDonts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
812
+ audioListeningContract: z.ZodOptional<z.ZodObject<{
813
+ idealListeningContext: z.ZodString;
814
+ spokenStyle: z.ZodString;
815
+ attentionPattern: z.ZodString;
816
+ pacingAndPronunciationNeeds: z.ZodArray<z.ZodString, "many">;
817
+ successTest: z.ZodString;
818
+ }, "strip", z.ZodTypeAny, {
819
+ idealListeningContext: string;
820
+ spokenStyle: string;
821
+ attentionPattern: string;
822
+ pacingAndPronunciationNeeds: string[];
823
+ successTest: string;
824
+ }, {
825
+ idealListeningContext: string;
826
+ spokenStyle: string;
827
+ attentionPattern: string;
828
+ pacingAndPronunciationNeeds: string[];
829
+ successTest: string;
830
+ }>>;
831
+ competitivePositioning: z.ZodOptional<z.ZodObject<{
832
+ comparables: z.ZodArray<z.ZodObject<{
833
+ title: z.ZodString;
834
+ author: z.ZodOptional<z.ZodString>;
835
+ provenance: z.ZodEnum<["user_supplied", "verified", "inferred", "unknown"]>;
836
+ admiredQualities: z.ZodArray<z.ZodString, "many">;
837
+ readerGap: z.ZodOptional<z.ZodString>;
838
+ avoidImitating: z.ZodArray<z.ZodString, "many">;
839
+ /** Server-derived only: exact URL present in the Responses citation annotations. */
840
+ sourceUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
841
+ /** Server-derived only: exact title paired with sourceUrl in the citation annotation. */
842
+ sourceTitle: z.ZodOptional<z.ZodString>;
843
+ /** Server-derived only: the retrieval response that supplied the matching citation. */
844
+ verificationResponseId: z.ZodOptional<z.ZodString>;
845
+ /** Server-derived only: when the matching citation was compiled. */
846
+ verifiedAt: z.ZodOptional<z.ZodString>;
847
+ }, "strip", z.ZodTypeAny, {
848
+ title: string;
849
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
850
+ admiredQualities: string[];
851
+ avoidImitating: string[];
852
+ author?: string | undefined;
853
+ readerGap?: string | undefined;
854
+ sourceUrl?: string | undefined;
855
+ sourceTitle?: string | undefined;
856
+ verificationResponseId?: string | undefined;
857
+ verifiedAt?: string | undefined;
858
+ }, {
859
+ title: string;
860
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
861
+ admiredQualities: string[];
862
+ avoidImitating: string[];
863
+ author?: string | undefined;
864
+ readerGap?: string | undefined;
865
+ sourceUrl?: string | undefined;
866
+ sourceTitle?: string | undefined;
867
+ verificationResponseId?: string | undefined;
868
+ verifiedAt?: string | undefined;
869
+ }>, "many">;
870
+ readerGap: z.ZodString;
871
+ differentiation: z.ZodArray<z.ZodString, "many">;
872
+ conventionsToKeep: z.ZodArray<z.ZodString, "many">;
873
+ conventionsToReject: z.ZodArray<z.ZodString, "many">;
874
+ overlapRisks: z.ZodArray<z.ZodString, "many">;
875
+ unknownsRequiringResearch: z.ZodArray<z.ZodString, "many">;
876
+ /** Optional at rest for legacy rows; required before a new nonfiction thesis run. */
877
+ researchStatus: z.ZodOptional<z.ZodEnum<["verified", "partial", "not_required"]>>;
878
+ /** OpenAI Responses identity. Never supplied or inferred by the model. */
879
+ researchResponseId: z.ZodOptional<z.ZodString>;
880
+ researchedAt: z.ZodOptional<z.ZodString>;
881
+ citations: z.ZodOptional<z.ZodArray<z.ZodObject<{
882
+ url: z.ZodEffects<z.ZodString, string, string>;
883
+ title: z.ZodString;
884
+ responseId: z.ZodString;
885
+ researchedAt: z.ZodString;
886
+ }, "strip", z.ZodTypeAny, {
887
+ title: string;
888
+ url: string;
889
+ responseId: string;
890
+ researchedAt: string;
891
+ }, {
892
+ title: string;
893
+ url: string;
894
+ responseId: string;
895
+ researchedAt: string;
896
+ }>, "many">>;
897
+ }, "strip", z.ZodTypeAny, {
898
+ readerGap: string;
899
+ comparables: {
900
+ title: string;
901
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
902
+ admiredQualities: string[];
903
+ avoidImitating: string[];
904
+ author?: string | undefined;
905
+ readerGap?: string | undefined;
906
+ sourceUrl?: string | undefined;
907
+ sourceTitle?: string | undefined;
908
+ verificationResponseId?: string | undefined;
909
+ verifiedAt?: string | undefined;
910
+ }[];
911
+ differentiation: string[];
912
+ conventionsToKeep: string[];
913
+ conventionsToReject: string[];
914
+ overlapRisks: string[];
915
+ unknownsRequiringResearch: string[];
916
+ researchedAt?: string | undefined;
917
+ researchStatus?: "partial" | "verified" | "not_required" | undefined;
918
+ researchResponseId?: string | undefined;
919
+ citations?: {
920
+ title: string;
921
+ url: string;
922
+ responseId: string;
923
+ researchedAt: string;
924
+ }[] | undefined;
925
+ }, {
926
+ readerGap: string;
927
+ comparables: {
928
+ title: string;
929
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
930
+ admiredQualities: string[];
931
+ avoidImitating: string[];
932
+ author?: string | undefined;
933
+ readerGap?: string | undefined;
934
+ sourceUrl?: string | undefined;
935
+ sourceTitle?: string | undefined;
936
+ verificationResponseId?: string | undefined;
937
+ verifiedAt?: string | undefined;
938
+ }[];
939
+ differentiation: string[];
940
+ conventionsToKeep: string[];
941
+ conventionsToReject: string[];
942
+ overlapRisks: string[];
943
+ unknownsRequiringResearch: string[];
944
+ researchedAt?: string | undefined;
945
+ researchStatus?: "partial" | "verified" | "not_required" | undefined;
946
+ researchResponseId?: string | undefined;
947
+ citations?: {
948
+ title: string;
949
+ url: string;
950
+ responseId: string;
951
+ researchedAt: string;
952
+ }[] | undefined;
953
+ }>>;
954
+ /** Questions the human must answer before nonfiction orchestration may proceed. */
955
+ clarificationQuestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
956
+ /** Assumptions are disclosed, never silently promoted to user intent. */
957
+ intentAssumptions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
958
+ intentConfidence: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
959
+ /** Preferred language for generated manuscript artifacts (e.g. portal Spanish books). */
960
+ contentLanguage: z.ZodOptional<z.ZodEnum<["en", "es"]>>;
961
+ }, "strip", z.ZodTypeAny, {
962
+ title: string;
963
+ kind: "book" | "technical_report" | "scientific_paper" | "research_brief" | "white_paper" | "philosophical_manuscript";
964
+ domain: string;
965
+ successCriteria: string[];
966
+ coreThesis: string;
967
+ intendedReaders: string[];
968
+ argumentPillars: string[];
969
+ manuscriptConstraints: string[];
970
+ subtitle?: string | undefined;
971
+ authorName?: string | undefined;
972
+ genre?: string | undefined;
973
+ subject?: string | undefined;
974
+ scope?: string | undefined;
975
+ tone?: string | undefined;
976
+ style?: string | undefined;
977
+ centralThemes?: string[] | undefined;
978
+ symbolicFramework?: string | undefined;
979
+ keyClaims?: string[] | undefined;
980
+ counterclaims?: string[] | undefined;
981
+ sourceRequirements?: string[] | undefined;
982
+ readerOutcome?: string | undefined;
983
+ publicationGoal?: string | undefined;
984
+ centralQuestion?: string | undefined;
985
+ directAnswer?: string | undefined;
986
+ readerPromise?: string | undefined;
987
+ primaryReader?: string | undefined;
988
+ readerStartingState?: string | undefined;
989
+ readerEndingState?: string | undefined;
990
+ scopeIn?: string[] | undefined;
991
+ exclusions?: string[] | undefined;
992
+ toneDos?: string[] | undefined;
993
+ toneDonts?: string[] | undefined;
994
+ audioListeningContract?: {
995
+ idealListeningContext: string;
996
+ spokenStyle: string;
997
+ attentionPattern: string;
998
+ pacingAndPronunciationNeeds: string[];
999
+ successTest: string;
1000
+ } | undefined;
1001
+ competitivePositioning?: {
1002
+ readerGap: string;
1003
+ comparables: {
1004
+ title: string;
1005
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
1006
+ admiredQualities: string[];
1007
+ avoidImitating: string[];
1008
+ author?: string | undefined;
1009
+ readerGap?: string | undefined;
1010
+ sourceUrl?: string | undefined;
1011
+ sourceTitle?: string | undefined;
1012
+ verificationResponseId?: string | undefined;
1013
+ verifiedAt?: string | undefined;
1014
+ }[];
1015
+ differentiation: string[];
1016
+ conventionsToKeep: string[];
1017
+ conventionsToReject: string[];
1018
+ overlapRisks: string[];
1019
+ unknownsRequiringResearch: string[];
1020
+ researchedAt?: string | undefined;
1021
+ researchStatus?: "partial" | "verified" | "not_required" | undefined;
1022
+ researchResponseId?: string | undefined;
1023
+ citations?: {
1024
+ title: string;
1025
+ url: string;
1026
+ responseId: string;
1027
+ researchedAt: string;
1028
+ }[] | undefined;
1029
+ } | undefined;
1030
+ clarificationQuestions?: string[] | undefined;
1031
+ intentAssumptions?: string[] | undefined;
1032
+ intentConfidence?: "low" | "medium" | "high" | undefined;
1033
+ contentLanguage?: "en" | "es" | undefined;
1034
+ }, {
1035
+ title: string;
1036
+ kind: "book" | "technical_report" | "scientific_paper" | "research_brief" | "white_paper" | "philosophical_manuscript";
1037
+ domain: string;
1038
+ successCriteria: string[];
1039
+ coreThesis: string;
1040
+ intendedReaders: string[];
1041
+ argumentPillars: string[];
1042
+ manuscriptConstraints: string[];
1043
+ subtitle?: string | undefined;
1044
+ authorName?: string | undefined;
1045
+ genre?: string | undefined;
1046
+ subject?: string | undefined;
1047
+ scope?: string | undefined;
1048
+ tone?: string | undefined;
1049
+ style?: string | undefined;
1050
+ centralThemes?: string[] | undefined;
1051
+ symbolicFramework?: string | undefined;
1052
+ keyClaims?: string[] | undefined;
1053
+ counterclaims?: string[] | undefined;
1054
+ sourceRequirements?: string[] | undefined;
1055
+ readerOutcome?: string | undefined;
1056
+ publicationGoal?: string | undefined;
1057
+ centralQuestion?: string | undefined;
1058
+ directAnswer?: string | undefined;
1059
+ readerPromise?: string | undefined;
1060
+ primaryReader?: string | undefined;
1061
+ readerStartingState?: string | undefined;
1062
+ readerEndingState?: string | undefined;
1063
+ scopeIn?: string[] | undefined;
1064
+ exclusions?: string[] | undefined;
1065
+ toneDos?: string[] | undefined;
1066
+ toneDonts?: string[] | undefined;
1067
+ audioListeningContract?: {
1068
+ idealListeningContext: string;
1069
+ spokenStyle: string;
1070
+ attentionPattern: string;
1071
+ pacingAndPronunciationNeeds: string[];
1072
+ successTest: string;
1073
+ } | undefined;
1074
+ competitivePositioning?: {
1075
+ readerGap: string;
1076
+ comparables: {
1077
+ title: string;
1078
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
1079
+ admiredQualities: string[];
1080
+ avoidImitating: string[];
1081
+ author?: string | undefined;
1082
+ readerGap?: string | undefined;
1083
+ sourceUrl?: string | undefined;
1084
+ sourceTitle?: string | undefined;
1085
+ verificationResponseId?: string | undefined;
1086
+ verifiedAt?: string | undefined;
1087
+ }[];
1088
+ differentiation: string[];
1089
+ conventionsToKeep: string[];
1090
+ conventionsToReject: string[];
1091
+ overlapRisks: string[];
1092
+ unknownsRequiringResearch: string[];
1093
+ researchedAt?: string | undefined;
1094
+ researchStatus?: "partial" | "verified" | "not_required" | undefined;
1095
+ researchResponseId?: string | undefined;
1096
+ citations?: {
1097
+ title: string;
1098
+ url: string;
1099
+ responseId: string;
1100
+ researchedAt: string;
1101
+ }[] | undefined;
1102
+ } | undefined;
1103
+ clarificationQuestions?: string[] | undefined;
1104
+ intentAssumptions?: string[] | undefined;
1105
+ intentConfidence?: "low" | "medium" | "high" | undefined;
1106
+ contentLanguage?: "en" | "es" | undefined;
1107
+ }>]>;
1108
+ export type ProjectBriefJson = z.infer<typeof ProjectBriefJsonSchema>;
1109
+ /**
1110
+ * Legacy-safe parser: existing brief_json rows lack a `kind` discriminator.
1111
+ * This preprocess adds `kind: 'software'` when absent so old data validates
1112
+ * against the discriminated union without a migration.
1113
+ */
1114
+ export declare const ProjectBriefJsonWithLegacySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1115
+ kind: z.ZodLiteral<"software">;
1116
+ title: z.ZodString;
1117
+ domain: z.ZodString;
1118
+ corePurpose: z.ZodString;
1119
+ targetUsers: z.ZodArray<z.ZodString, "many">;
1120
+ keyFeatures: z.ZodArray<z.ZodString, "many">;
1121
+ dataModel: z.ZodOptional<z.ZodString>;
1122
+ nonFunctionalRequirements: z.ZodObject<{
1123
+ performance: z.ZodOptional<z.ZodString>;
1124
+ security: z.ZodOptional<z.ZodString>;
1125
+ accessibility: z.ZodOptional<z.ZodString>;
1126
+ scalability: z.ZodOptional<z.ZodString>;
1127
+ }, "strip", z.ZodTypeAny, {
1128
+ performance?: string | undefined;
1129
+ security?: string | undefined;
1130
+ accessibility?: string | undefined;
1131
+ scalability?: string | undefined;
1132
+ }, {
1133
+ performance?: string | undefined;
1134
+ security?: string | undefined;
1135
+ accessibility?: string | undefined;
1136
+ scalability?: string | undefined;
1137
+ }>;
1138
+ constraints: z.ZodArray<z.ZodString, "many">;
1139
+ successCriteria: z.ZodArray<z.ZodString, "many">;
1140
+ /** Injected server-side — not editable by users. */
1141
+ techStack: z.ZodObject<{
1142
+ frontend: z.ZodLiteral<"Next.js 15 App Router, React 19, TypeScript 5 strict">;
1143
+ styling: z.ZodLiteral<"Tailwind v4 with semantic design tokens — no hardcoded values">;
1144
+ backend: z.ZodLiteral<"Supabase (Postgres, Auth, RLS, Edge Functions)">;
1145
+ hosting: z.ZodLiteral<"Vercel — Fluid Compute, Edge Middleware">;
1146
+ ai: z.ZodLiteral<"OpenAI via NeuraLoom enhanced-client">;
1147
+ packageManager: z.ZodLiteral<"pnpm + Turborepo monorepo">;
1148
+ }, "strip", z.ZodTypeAny, {
1149
+ frontend: "Next.js 15 App Router, React 19, TypeScript 5 strict";
1150
+ styling: "Tailwind v4 with semantic design tokens — no hardcoded values";
1151
+ backend: "Supabase (Postgres, Auth, RLS, Edge Functions)";
1152
+ hosting: "Vercel — Fluid Compute, Edge Middleware";
1153
+ ai: "OpenAI via NeuraLoom enhanced-client";
1154
+ packageManager: "pnpm + Turborepo monorepo";
1155
+ }, {
1156
+ frontend: "Next.js 15 App Router, React 19, TypeScript 5 strict";
1157
+ styling: "Tailwind v4 with semantic design tokens — no hardcoded values";
1158
+ backend: "Supabase (Postgres, Auth, RLS, Edge Functions)";
1159
+ hosting: "Vercel — Fluid Compute, Edge Middleware";
1160
+ ai: "OpenAI via NeuraLoom enhanced-client";
1161
+ packageManager: "pnpm + Turborepo monorepo";
1162
+ }>;
1163
+ /** Injected server-side — constitutional hard limits. */
1164
+ constitutionalRules: z.ZodArray<z.ZodString, "many">;
1165
+ }, "strip", z.ZodTypeAny, {
1166
+ title: string;
1167
+ kind: "software";
1168
+ domain: string;
1169
+ corePurpose: string;
1170
+ targetUsers: string[];
1171
+ keyFeatures: string[];
1172
+ nonFunctionalRequirements: {
1173
+ performance?: string | undefined;
1174
+ security?: string | undefined;
1175
+ accessibility?: string | undefined;
1176
+ scalability?: string | undefined;
1177
+ };
1178
+ constraints: string[];
1179
+ successCriteria: string[];
1180
+ techStack: {
1181
+ frontend: "Next.js 15 App Router, React 19, TypeScript 5 strict";
1182
+ styling: "Tailwind v4 with semantic design tokens — no hardcoded values";
1183
+ backend: "Supabase (Postgres, Auth, RLS, Edge Functions)";
1184
+ hosting: "Vercel — Fluid Compute, Edge Middleware";
1185
+ ai: "OpenAI via NeuraLoom enhanced-client";
1186
+ packageManager: "pnpm + Turborepo monorepo";
1187
+ };
1188
+ constitutionalRules: string[];
1189
+ dataModel?: string | undefined;
1190
+ }, {
1191
+ title: string;
1192
+ kind: "software";
1193
+ domain: string;
1194
+ corePurpose: string;
1195
+ targetUsers: string[];
1196
+ keyFeatures: string[];
1197
+ nonFunctionalRequirements: {
1198
+ performance?: string | undefined;
1199
+ security?: string | undefined;
1200
+ accessibility?: string | undefined;
1201
+ scalability?: string | undefined;
1202
+ };
1203
+ constraints: string[];
1204
+ successCriteria: string[];
1205
+ techStack: {
1206
+ frontend: "Next.js 15 App Router, React 19, TypeScript 5 strict";
1207
+ styling: "Tailwind v4 with semantic design tokens — no hardcoded values";
1208
+ backend: "Supabase (Postgres, Auth, RLS, Edge Functions)";
1209
+ hosting: "Vercel — Fluid Compute, Edge Middleware";
1210
+ ai: "OpenAI via NeuraLoom enhanced-client";
1211
+ packageManager: "pnpm + Turborepo monorepo";
1212
+ };
1213
+ constitutionalRules: string[];
1214
+ dataModel?: string | undefined;
1215
+ }>, z.ZodObject<{
1216
+ kind: z.ZodEnum<["book", "technical_report", "scientific_paper", "research_brief", "white_paper", "philosophical_manuscript"]>;
1217
+ title: z.ZodString;
1218
+ subtitle: z.ZodOptional<z.ZodString>;
1219
+ /** Exact human-supplied publication byline. Never inferred from account identity. */
1220
+ authorName: z.ZodOptional<z.ZodString>;
1221
+ genre: z.ZodOptional<z.ZodString>;
1222
+ domain: z.ZodString;
1223
+ coreThesis: z.ZodString;
1224
+ subject: z.ZodOptional<z.ZodString>;
1225
+ scope: z.ZodOptional<z.ZodString>;
1226
+ intendedReaders: z.ZodArray<z.ZodString, "many">;
1227
+ tone: z.ZodOptional<z.ZodString>;
1228
+ style: z.ZodOptional<z.ZodString>;
1229
+ centralThemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1230
+ symbolicFramework: z.ZodOptional<z.ZodString>;
1231
+ argumentPillars: z.ZodArray<z.ZodString, "many">;
1232
+ keyClaims: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1233
+ counterclaims: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1234
+ manuscriptConstraints: z.ZodArray<z.ZodString, "many">;
1235
+ sourceRequirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1236
+ successCriteria: z.ZodArray<z.ZodString, "many">;
1237
+ readerOutcome: z.ZodOptional<z.ZodString>;
1238
+ publicationGoal: z.ZodOptional<z.ZodString>;
1239
+ /** The human intent contract. Optional at rest for legacy rows; required by new nonfiction runs. */
1240
+ centralQuestion: z.ZodOptional<z.ZodString>;
1241
+ directAnswer: z.ZodOptional<z.ZodString>;
1242
+ readerPromise: z.ZodOptional<z.ZodString>;
1243
+ primaryReader: z.ZodOptional<z.ZodString>;
1244
+ readerStartingState: z.ZodOptional<z.ZodString>;
1245
+ readerEndingState: z.ZodOptional<z.ZodString>;
1246
+ scopeIn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1247
+ exclusions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1248
+ toneDos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1249
+ toneDonts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1250
+ audioListeningContract: z.ZodOptional<z.ZodObject<{
1251
+ idealListeningContext: z.ZodString;
1252
+ spokenStyle: z.ZodString;
1253
+ attentionPattern: z.ZodString;
1254
+ pacingAndPronunciationNeeds: z.ZodArray<z.ZodString, "many">;
1255
+ successTest: z.ZodString;
1256
+ }, "strip", z.ZodTypeAny, {
1257
+ idealListeningContext: string;
1258
+ spokenStyle: string;
1259
+ attentionPattern: string;
1260
+ pacingAndPronunciationNeeds: string[];
1261
+ successTest: string;
1262
+ }, {
1263
+ idealListeningContext: string;
1264
+ spokenStyle: string;
1265
+ attentionPattern: string;
1266
+ pacingAndPronunciationNeeds: string[];
1267
+ successTest: string;
1268
+ }>>;
1269
+ competitivePositioning: z.ZodOptional<z.ZodObject<{
1270
+ comparables: z.ZodArray<z.ZodObject<{
1271
+ title: z.ZodString;
1272
+ author: z.ZodOptional<z.ZodString>;
1273
+ provenance: z.ZodEnum<["user_supplied", "verified", "inferred", "unknown"]>;
1274
+ admiredQualities: z.ZodArray<z.ZodString, "many">;
1275
+ readerGap: z.ZodOptional<z.ZodString>;
1276
+ avoidImitating: z.ZodArray<z.ZodString, "many">;
1277
+ /** Server-derived only: exact URL present in the Responses citation annotations. */
1278
+ sourceUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1279
+ /** Server-derived only: exact title paired with sourceUrl in the citation annotation. */
1280
+ sourceTitle: z.ZodOptional<z.ZodString>;
1281
+ /** Server-derived only: the retrieval response that supplied the matching citation. */
1282
+ verificationResponseId: z.ZodOptional<z.ZodString>;
1283
+ /** Server-derived only: when the matching citation was compiled. */
1284
+ verifiedAt: z.ZodOptional<z.ZodString>;
1285
+ }, "strip", z.ZodTypeAny, {
1286
+ title: string;
1287
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
1288
+ admiredQualities: string[];
1289
+ avoidImitating: string[];
1290
+ author?: string | undefined;
1291
+ readerGap?: string | undefined;
1292
+ sourceUrl?: string | undefined;
1293
+ sourceTitle?: string | undefined;
1294
+ verificationResponseId?: string | undefined;
1295
+ verifiedAt?: string | undefined;
1296
+ }, {
1297
+ title: string;
1298
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
1299
+ admiredQualities: string[];
1300
+ avoidImitating: string[];
1301
+ author?: string | undefined;
1302
+ readerGap?: string | undefined;
1303
+ sourceUrl?: string | undefined;
1304
+ sourceTitle?: string | undefined;
1305
+ verificationResponseId?: string | undefined;
1306
+ verifiedAt?: string | undefined;
1307
+ }>, "many">;
1308
+ readerGap: z.ZodString;
1309
+ differentiation: z.ZodArray<z.ZodString, "many">;
1310
+ conventionsToKeep: z.ZodArray<z.ZodString, "many">;
1311
+ conventionsToReject: z.ZodArray<z.ZodString, "many">;
1312
+ overlapRisks: z.ZodArray<z.ZodString, "many">;
1313
+ unknownsRequiringResearch: z.ZodArray<z.ZodString, "many">;
1314
+ /** Optional at rest for legacy rows; required before a new nonfiction thesis run. */
1315
+ researchStatus: z.ZodOptional<z.ZodEnum<["verified", "partial", "not_required"]>>;
1316
+ /** OpenAI Responses identity. Never supplied or inferred by the model. */
1317
+ researchResponseId: z.ZodOptional<z.ZodString>;
1318
+ researchedAt: z.ZodOptional<z.ZodString>;
1319
+ citations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1320
+ url: z.ZodEffects<z.ZodString, string, string>;
1321
+ title: z.ZodString;
1322
+ responseId: z.ZodString;
1323
+ researchedAt: z.ZodString;
1324
+ }, "strip", z.ZodTypeAny, {
1325
+ title: string;
1326
+ url: string;
1327
+ responseId: string;
1328
+ researchedAt: string;
1329
+ }, {
1330
+ title: string;
1331
+ url: string;
1332
+ responseId: string;
1333
+ researchedAt: string;
1334
+ }>, "many">>;
1335
+ }, "strip", z.ZodTypeAny, {
1336
+ readerGap: string;
1337
+ comparables: {
1338
+ title: string;
1339
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
1340
+ admiredQualities: string[];
1341
+ avoidImitating: string[];
1342
+ author?: string | undefined;
1343
+ readerGap?: string | undefined;
1344
+ sourceUrl?: string | undefined;
1345
+ sourceTitle?: string | undefined;
1346
+ verificationResponseId?: string | undefined;
1347
+ verifiedAt?: string | undefined;
1348
+ }[];
1349
+ differentiation: string[];
1350
+ conventionsToKeep: string[];
1351
+ conventionsToReject: string[];
1352
+ overlapRisks: string[];
1353
+ unknownsRequiringResearch: string[];
1354
+ researchedAt?: string | undefined;
1355
+ researchStatus?: "partial" | "verified" | "not_required" | undefined;
1356
+ researchResponseId?: string | undefined;
1357
+ citations?: {
1358
+ title: string;
1359
+ url: string;
1360
+ responseId: string;
1361
+ researchedAt: string;
1362
+ }[] | undefined;
1363
+ }, {
1364
+ readerGap: string;
1365
+ comparables: {
1366
+ title: string;
1367
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
1368
+ admiredQualities: string[];
1369
+ avoidImitating: string[];
1370
+ author?: string | undefined;
1371
+ readerGap?: string | undefined;
1372
+ sourceUrl?: string | undefined;
1373
+ sourceTitle?: string | undefined;
1374
+ verificationResponseId?: string | undefined;
1375
+ verifiedAt?: string | undefined;
1376
+ }[];
1377
+ differentiation: string[];
1378
+ conventionsToKeep: string[];
1379
+ conventionsToReject: string[];
1380
+ overlapRisks: string[];
1381
+ unknownsRequiringResearch: string[];
1382
+ researchedAt?: string | undefined;
1383
+ researchStatus?: "partial" | "verified" | "not_required" | undefined;
1384
+ researchResponseId?: string | undefined;
1385
+ citations?: {
1386
+ title: string;
1387
+ url: string;
1388
+ responseId: string;
1389
+ researchedAt: string;
1390
+ }[] | undefined;
1391
+ }>>;
1392
+ /** Questions the human must answer before nonfiction orchestration may proceed. */
1393
+ clarificationQuestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1394
+ /** Assumptions are disclosed, never silently promoted to user intent. */
1395
+ intentAssumptions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1396
+ intentConfidence: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
1397
+ /** Preferred language for generated manuscript artifacts (e.g. portal Spanish books). */
1398
+ contentLanguage: z.ZodOptional<z.ZodEnum<["en", "es"]>>;
1399
+ }, "strip", z.ZodTypeAny, {
1400
+ title: string;
1401
+ kind: "book" | "technical_report" | "scientific_paper" | "research_brief" | "white_paper" | "philosophical_manuscript";
1402
+ domain: string;
1403
+ successCriteria: string[];
1404
+ coreThesis: string;
1405
+ intendedReaders: string[];
1406
+ argumentPillars: string[];
1407
+ manuscriptConstraints: string[];
1408
+ subtitle?: string | undefined;
1409
+ authorName?: string | undefined;
1410
+ genre?: string | undefined;
1411
+ subject?: string | undefined;
1412
+ scope?: string | undefined;
1413
+ tone?: string | undefined;
1414
+ style?: string | undefined;
1415
+ centralThemes?: string[] | undefined;
1416
+ symbolicFramework?: string | undefined;
1417
+ keyClaims?: string[] | undefined;
1418
+ counterclaims?: string[] | undefined;
1419
+ sourceRequirements?: string[] | undefined;
1420
+ readerOutcome?: string | undefined;
1421
+ publicationGoal?: string | undefined;
1422
+ centralQuestion?: string | undefined;
1423
+ directAnswer?: string | undefined;
1424
+ readerPromise?: string | undefined;
1425
+ primaryReader?: string | undefined;
1426
+ readerStartingState?: string | undefined;
1427
+ readerEndingState?: string | undefined;
1428
+ scopeIn?: string[] | undefined;
1429
+ exclusions?: string[] | undefined;
1430
+ toneDos?: string[] | undefined;
1431
+ toneDonts?: string[] | undefined;
1432
+ audioListeningContract?: {
1433
+ idealListeningContext: string;
1434
+ spokenStyle: string;
1435
+ attentionPattern: string;
1436
+ pacingAndPronunciationNeeds: string[];
1437
+ successTest: string;
1438
+ } | undefined;
1439
+ competitivePositioning?: {
1440
+ readerGap: string;
1441
+ comparables: {
1442
+ title: string;
1443
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
1444
+ admiredQualities: string[];
1445
+ avoidImitating: string[];
1446
+ author?: string | undefined;
1447
+ readerGap?: string | undefined;
1448
+ sourceUrl?: string | undefined;
1449
+ sourceTitle?: string | undefined;
1450
+ verificationResponseId?: string | undefined;
1451
+ verifiedAt?: string | undefined;
1452
+ }[];
1453
+ differentiation: string[];
1454
+ conventionsToKeep: string[];
1455
+ conventionsToReject: string[];
1456
+ overlapRisks: string[];
1457
+ unknownsRequiringResearch: string[];
1458
+ researchedAt?: string | undefined;
1459
+ researchStatus?: "partial" | "verified" | "not_required" | undefined;
1460
+ researchResponseId?: string | undefined;
1461
+ citations?: {
1462
+ title: string;
1463
+ url: string;
1464
+ responseId: string;
1465
+ researchedAt: string;
1466
+ }[] | undefined;
1467
+ } | undefined;
1468
+ clarificationQuestions?: string[] | undefined;
1469
+ intentAssumptions?: string[] | undefined;
1470
+ intentConfidence?: "low" | "medium" | "high" | undefined;
1471
+ contentLanguage?: "en" | "es" | undefined;
1472
+ }, {
1473
+ title: string;
1474
+ kind: "book" | "technical_report" | "scientific_paper" | "research_brief" | "white_paper" | "philosophical_manuscript";
1475
+ domain: string;
1476
+ successCriteria: string[];
1477
+ coreThesis: string;
1478
+ intendedReaders: string[];
1479
+ argumentPillars: string[];
1480
+ manuscriptConstraints: string[];
1481
+ subtitle?: string | undefined;
1482
+ authorName?: string | undefined;
1483
+ genre?: string | undefined;
1484
+ subject?: string | undefined;
1485
+ scope?: string | undefined;
1486
+ tone?: string | undefined;
1487
+ style?: string | undefined;
1488
+ centralThemes?: string[] | undefined;
1489
+ symbolicFramework?: string | undefined;
1490
+ keyClaims?: string[] | undefined;
1491
+ counterclaims?: string[] | undefined;
1492
+ sourceRequirements?: string[] | undefined;
1493
+ readerOutcome?: string | undefined;
1494
+ publicationGoal?: string | undefined;
1495
+ centralQuestion?: string | undefined;
1496
+ directAnswer?: string | undefined;
1497
+ readerPromise?: string | undefined;
1498
+ primaryReader?: string | undefined;
1499
+ readerStartingState?: string | undefined;
1500
+ readerEndingState?: string | undefined;
1501
+ scopeIn?: string[] | undefined;
1502
+ exclusions?: string[] | undefined;
1503
+ toneDos?: string[] | undefined;
1504
+ toneDonts?: string[] | undefined;
1505
+ audioListeningContract?: {
1506
+ idealListeningContext: string;
1507
+ spokenStyle: string;
1508
+ attentionPattern: string;
1509
+ pacingAndPronunciationNeeds: string[];
1510
+ successTest: string;
1511
+ } | undefined;
1512
+ competitivePositioning?: {
1513
+ readerGap: string;
1514
+ comparables: {
1515
+ title: string;
1516
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
1517
+ admiredQualities: string[];
1518
+ avoidImitating: string[];
1519
+ author?: string | undefined;
1520
+ readerGap?: string | undefined;
1521
+ sourceUrl?: string | undefined;
1522
+ sourceTitle?: string | undefined;
1523
+ verificationResponseId?: string | undefined;
1524
+ verifiedAt?: string | undefined;
1525
+ }[];
1526
+ differentiation: string[];
1527
+ conventionsToKeep: string[];
1528
+ conventionsToReject: string[];
1529
+ overlapRisks: string[];
1530
+ unknownsRequiringResearch: string[];
1531
+ researchedAt?: string | undefined;
1532
+ researchStatus?: "partial" | "verified" | "not_required" | undefined;
1533
+ researchResponseId?: string | undefined;
1534
+ citations?: {
1535
+ title: string;
1536
+ url: string;
1537
+ responseId: string;
1538
+ researchedAt: string;
1539
+ }[] | undefined;
1540
+ } | undefined;
1541
+ clarificationQuestions?: string[] | undefined;
1542
+ intentAssumptions?: string[] | undefined;
1543
+ intentConfidence?: "low" | "medium" | "high" | undefined;
1544
+ contentLanguage?: "en" | "es" | undefined;
1545
+ }>]>, {
1546
+ title: string;
1547
+ kind: "software";
1548
+ domain: string;
1549
+ corePurpose: string;
1550
+ targetUsers: string[];
1551
+ keyFeatures: string[];
1552
+ nonFunctionalRequirements: {
1553
+ performance?: string | undefined;
1554
+ security?: string | undefined;
1555
+ accessibility?: string | undefined;
1556
+ scalability?: string | undefined;
1557
+ };
1558
+ constraints: string[];
1559
+ successCriteria: string[];
1560
+ techStack: {
1561
+ frontend: "Next.js 15 App Router, React 19, TypeScript 5 strict";
1562
+ styling: "Tailwind v4 with semantic design tokens — no hardcoded values";
1563
+ backend: "Supabase (Postgres, Auth, RLS, Edge Functions)";
1564
+ hosting: "Vercel — Fluid Compute, Edge Middleware";
1565
+ ai: "OpenAI via NeuraLoom enhanced-client";
1566
+ packageManager: "pnpm + Turborepo monorepo";
1567
+ };
1568
+ constitutionalRules: string[];
1569
+ dataModel?: string | undefined;
1570
+ } | {
1571
+ title: string;
1572
+ kind: "book" | "technical_report" | "scientific_paper" | "research_brief" | "white_paper" | "philosophical_manuscript";
1573
+ domain: string;
1574
+ successCriteria: string[];
1575
+ coreThesis: string;
1576
+ intendedReaders: string[];
1577
+ argumentPillars: string[];
1578
+ manuscriptConstraints: string[];
1579
+ subtitle?: string | undefined;
1580
+ authorName?: string | undefined;
1581
+ genre?: string | undefined;
1582
+ subject?: string | undefined;
1583
+ scope?: string | undefined;
1584
+ tone?: string | undefined;
1585
+ style?: string | undefined;
1586
+ centralThemes?: string[] | undefined;
1587
+ symbolicFramework?: string | undefined;
1588
+ keyClaims?: string[] | undefined;
1589
+ counterclaims?: string[] | undefined;
1590
+ sourceRequirements?: string[] | undefined;
1591
+ readerOutcome?: string | undefined;
1592
+ publicationGoal?: string | undefined;
1593
+ centralQuestion?: string | undefined;
1594
+ directAnswer?: string | undefined;
1595
+ readerPromise?: string | undefined;
1596
+ primaryReader?: string | undefined;
1597
+ readerStartingState?: string | undefined;
1598
+ readerEndingState?: string | undefined;
1599
+ scopeIn?: string[] | undefined;
1600
+ exclusions?: string[] | undefined;
1601
+ toneDos?: string[] | undefined;
1602
+ toneDonts?: string[] | undefined;
1603
+ audioListeningContract?: {
1604
+ idealListeningContext: string;
1605
+ spokenStyle: string;
1606
+ attentionPattern: string;
1607
+ pacingAndPronunciationNeeds: string[];
1608
+ successTest: string;
1609
+ } | undefined;
1610
+ competitivePositioning?: {
1611
+ readerGap: string;
1612
+ comparables: {
1613
+ title: string;
1614
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
1615
+ admiredQualities: string[];
1616
+ avoidImitating: string[];
1617
+ author?: string | undefined;
1618
+ readerGap?: string | undefined;
1619
+ sourceUrl?: string | undefined;
1620
+ sourceTitle?: string | undefined;
1621
+ verificationResponseId?: string | undefined;
1622
+ verifiedAt?: string | undefined;
1623
+ }[];
1624
+ differentiation: string[];
1625
+ conventionsToKeep: string[];
1626
+ conventionsToReject: string[];
1627
+ overlapRisks: string[];
1628
+ unknownsRequiringResearch: string[];
1629
+ researchedAt?: string | undefined;
1630
+ researchStatus?: "partial" | "verified" | "not_required" | undefined;
1631
+ researchResponseId?: string | undefined;
1632
+ citations?: {
1633
+ title: string;
1634
+ url: string;
1635
+ responseId: string;
1636
+ researchedAt: string;
1637
+ }[] | undefined;
1638
+ } | undefined;
1639
+ clarificationQuestions?: string[] | undefined;
1640
+ intentAssumptions?: string[] | undefined;
1641
+ intentConfidence?: "low" | "medium" | "high" | undefined;
1642
+ contentLanguage?: "en" | "es" | undefined;
1643
+ }, unknown>;
1644
+ /** Response from POST /api/ai/brief-improve/generate */
1645
+ export declare const BriefImproveGenerateOutputSchema: z.ZodObject<{
1646
+ mode: z.ZodEnum<["summarise", "improve", "structure"]>;
1647
+ /** Improved plain-text brief (always present). */
1648
+ improvedBrief: z.ZodString;
1649
+ /** Structured JSON (only present when mode = "structure"). */
1650
+ structured: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1651
+ kind: z.ZodLiteral<"software">;
1652
+ title: z.ZodString;
1653
+ domain: z.ZodString;
1654
+ corePurpose: z.ZodString;
1655
+ targetUsers: z.ZodArray<z.ZodString, "many">;
1656
+ keyFeatures: z.ZodArray<z.ZodString, "many">;
1657
+ dataModel: z.ZodOptional<z.ZodString>;
1658
+ nonFunctionalRequirements: z.ZodObject<{
1659
+ performance: z.ZodOptional<z.ZodString>;
1660
+ security: z.ZodOptional<z.ZodString>;
1661
+ accessibility: z.ZodOptional<z.ZodString>;
1662
+ scalability: z.ZodOptional<z.ZodString>;
1663
+ }, "strip", z.ZodTypeAny, {
1664
+ performance?: string | undefined;
1665
+ security?: string | undefined;
1666
+ accessibility?: string | undefined;
1667
+ scalability?: string | undefined;
1668
+ }, {
1669
+ performance?: string | undefined;
1670
+ security?: string | undefined;
1671
+ accessibility?: string | undefined;
1672
+ scalability?: string | undefined;
1673
+ }>;
1674
+ constraints: z.ZodArray<z.ZodString, "many">;
1675
+ successCriteria: z.ZodArray<z.ZodString, "many">;
1676
+ /** Injected server-side — not editable by users. */
1677
+ techStack: z.ZodObject<{
1678
+ frontend: z.ZodLiteral<"Next.js 15 App Router, React 19, TypeScript 5 strict">;
1679
+ styling: z.ZodLiteral<"Tailwind v4 with semantic design tokens — no hardcoded values">;
1680
+ backend: z.ZodLiteral<"Supabase (Postgres, Auth, RLS, Edge Functions)">;
1681
+ hosting: z.ZodLiteral<"Vercel — Fluid Compute, Edge Middleware">;
1682
+ ai: z.ZodLiteral<"OpenAI via NeuraLoom enhanced-client">;
1683
+ packageManager: z.ZodLiteral<"pnpm + Turborepo monorepo">;
1684
+ }, "strip", z.ZodTypeAny, {
1685
+ frontend: "Next.js 15 App Router, React 19, TypeScript 5 strict";
1686
+ styling: "Tailwind v4 with semantic design tokens — no hardcoded values";
1687
+ backend: "Supabase (Postgres, Auth, RLS, Edge Functions)";
1688
+ hosting: "Vercel — Fluid Compute, Edge Middleware";
1689
+ ai: "OpenAI via NeuraLoom enhanced-client";
1690
+ packageManager: "pnpm + Turborepo monorepo";
1691
+ }, {
1692
+ frontend: "Next.js 15 App Router, React 19, TypeScript 5 strict";
1693
+ styling: "Tailwind v4 with semantic design tokens — no hardcoded values";
1694
+ backend: "Supabase (Postgres, Auth, RLS, Edge Functions)";
1695
+ hosting: "Vercel — Fluid Compute, Edge Middleware";
1696
+ ai: "OpenAI via NeuraLoom enhanced-client";
1697
+ packageManager: "pnpm + Turborepo monorepo";
1698
+ }>;
1699
+ /** Injected server-side — constitutional hard limits. */
1700
+ constitutionalRules: z.ZodArray<z.ZodString, "many">;
1701
+ }, "strip", z.ZodTypeAny, {
1702
+ title: string;
1703
+ kind: "software";
1704
+ domain: string;
1705
+ corePurpose: string;
1706
+ targetUsers: string[];
1707
+ keyFeatures: string[];
1708
+ nonFunctionalRequirements: {
1709
+ performance?: string | undefined;
1710
+ security?: string | undefined;
1711
+ accessibility?: string | undefined;
1712
+ scalability?: string | undefined;
1713
+ };
1714
+ constraints: string[];
1715
+ successCriteria: string[];
1716
+ techStack: {
1717
+ frontend: "Next.js 15 App Router, React 19, TypeScript 5 strict";
1718
+ styling: "Tailwind v4 with semantic design tokens — no hardcoded values";
1719
+ backend: "Supabase (Postgres, Auth, RLS, Edge Functions)";
1720
+ hosting: "Vercel — Fluid Compute, Edge Middleware";
1721
+ ai: "OpenAI via NeuraLoom enhanced-client";
1722
+ packageManager: "pnpm + Turborepo monorepo";
1723
+ };
1724
+ constitutionalRules: string[];
1725
+ dataModel?: string | undefined;
1726
+ }, {
1727
+ title: string;
1728
+ kind: "software";
1729
+ domain: string;
1730
+ corePurpose: string;
1731
+ targetUsers: string[];
1732
+ keyFeatures: string[];
1733
+ nonFunctionalRequirements: {
1734
+ performance?: string | undefined;
1735
+ security?: string | undefined;
1736
+ accessibility?: string | undefined;
1737
+ scalability?: string | undefined;
1738
+ };
1739
+ constraints: string[];
1740
+ successCriteria: string[];
1741
+ techStack: {
1742
+ frontend: "Next.js 15 App Router, React 19, TypeScript 5 strict";
1743
+ styling: "Tailwind v4 with semantic design tokens — no hardcoded values";
1744
+ backend: "Supabase (Postgres, Auth, RLS, Edge Functions)";
1745
+ hosting: "Vercel — Fluid Compute, Edge Middleware";
1746
+ ai: "OpenAI via NeuraLoom enhanced-client";
1747
+ packageManager: "pnpm + Turborepo monorepo";
1748
+ };
1749
+ constitutionalRules: string[];
1750
+ dataModel?: string | undefined;
1751
+ }>, z.ZodObject<{
1752
+ kind: z.ZodEnum<["book", "technical_report", "scientific_paper", "research_brief", "white_paper", "philosophical_manuscript"]>;
1753
+ title: z.ZodString;
1754
+ subtitle: z.ZodOptional<z.ZodString>;
1755
+ /** Exact human-supplied publication byline. Never inferred from account identity. */
1756
+ authorName: z.ZodOptional<z.ZodString>;
1757
+ genre: z.ZodOptional<z.ZodString>;
1758
+ domain: z.ZodString;
1759
+ coreThesis: z.ZodString;
1760
+ subject: z.ZodOptional<z.ZodString>;
1761
+ scope: z.ZodOptional<z.ZodString>;
1762
+ intendedReaders: z.ZodArray<z.ZodString, "many">;
1763
+ tone: z.ZodOptional<z.ZodString>;
1764
+ style: z.ZodOptional<z.ZodString>;
1765
+ centralThemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1766
+ symbolicFramework: z.ZodOptional<z.ZodString>;
1767
+ argumentPillars: z.ZodArray<z.ZodString, "many">;
1768
+ keyClaims: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1769
+ counterclaims: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1770
+ manuscriptConstraints: z.ZodArray<z.ZodString, "many">;
1771
+ sourceRequirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1772
+ successCriteria: z.ZodArray<z.ZodString, "many">;
1773
+ readerOutcome: z.ZodOptional<z.ZodString>;
1774
+ publicationGoal: z.ZodOptional<z.ZodString>;
1775
+ /** The human intent contract. Optional at rest for legacy rows; required by new nonfiction runs. */
1776
+ centralQuestion: z.ZodOptional<z.ZodString>;
1777
+ directAnswer: z.ZodOptional<z.ZodString>;
1778
+ readerPromise: z.ZodOptional<z.ZodString>;
1779
+ primaryReader: z.ZodOptional<z.ZodString>;
1780
+ readerStartingState: z.ZodOptional<z.ZodString>;
1781
+ readerEndingState: z.ZodOptional<z.ZodString>;
1782
+ scopeIn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1783
+ exclusions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1784
+ toneDos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1785
+ toneDonts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1786
+ audioListeningContract: z.ZodOptional<z.ZodObject<{
1787
+ idealListeningContext: z.ZodString;
1788
+ spokenStyle: z.ZodString;
1789
+ attentionPattern: z.ZodString;
1790
+ pacingAndPronunciationNeeds: z.ZodArray<z.ZodString, "many">;
1791
+ successTest: z.ZodString;
1792
+ }, "strip", z.ZodTypeAny, {
1793
+ idealListeningContext: string;
1794
+ spokenStyle: string;
1795
+ attentionPattern: string;
1796
+ pacingAndPronunciationNeeds: string[];
1797
+ successTest: string;
1798
+ }, {
1799
+ idealListeningContext: string;
1800
+ spokenStyle: string;
1801
+ attentionPattern: string;
1802
+ pacingAndPronunciationNeeds: string[];
1803
+ successTest: string;
1804
+ }>>;
1805
+ competitivePositioning: z.ZodOptional<z.ZodObject<{
1806
+ comparables: z.ZodArray<z.ZodObject<{
1807
+ title: z.ZodString;
1808
+ author: z.ZodOptional<z.ZodString>;
1809
+ provenance: z.ZodEnum<["user_supplied", "verified", "inferred", "unknown"]>;
1810
+ admiredQualities: z.ZodArray<z.ZodString, "many">;
1811
+ readerGap: z.ZodOptional<z.ZodString>;
1812
+ avoidImitating: z.ZodArray<z.ZodString, "many">;
1813
+ /** Server-derived only: exact URL present in the Responses citation annotations. */
1814
+ sourceUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1815
+ /** Server-derived only: exact title paired with sourceUrl in the citation annotation. */
1816
+ sourceTitle: z.ZodOptional<z.ZodString>;
1817
+ /** Server-derived only: the retrieval response that supplied the matching citation. */
1818
+ verificationResponseId: z.ZodOptional<z.ZodString>;
1819
+ /** Server-derived only: when the matching citation was compiled. */
1820
+ verifiedAt: z.ZodOptional<z.ZodString>;
1821
+ }, "strip", z.ZodTypeAny, {
1822
+ title: string;
1823
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
1824
+ admiredQualities: string[];
1825
+ avoidImitating: string[];
1826
+ author?: string | undefined;
1827
+ readerGap?: string | undefined;
1828
+ sourceUrl?: string | undefined;
1829
+ sourceTitle?: string | undefined;
1830
+ verificationResponseId?: string | undefined;
1831
+ verifiedAt?: string | undefined;
1832
+ }, {
1833
+ title: string;
1834
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
1835
+ admiredQualities: string[];
1836
+ avoidImitating: string[];
1837
+ author?: string | undefined;
1838
+ readerGap?: string | undefined;
1839
+ sourceUrl?: string | undefined;
1840
+ sourceTitle?: string | undefined;
1841
+ verificationResponseId?: string | undefined;
1842
+ verifiedAt?: string | undefined;
1843
+ }>, "many">;
1844
+ readerGap: z.ZodString;
1845
+ differentiation: z.ZodArray<z.ZodString, "many">;
1846
+ conventionsToKeep: z.ZodArray<z.ZodString, "many">;
1847
+ conventionsToReject: z.ZodArray<z.ZodString, "many">;
1848
+ overlapRisks: z.ZodArray<z.ZodString, "many">;
1849
+ unknownsRequiringResearch: z.ZodArray<z.ZodString, "many">;
1850
+ /** Optional at rest for legacy rows; required before a new nonfiction thesis run. */
1851
+ researchStatus: z.ZodOptional<z.ZodEnum<["verified", "partial", "not_required"]>>;
1852
+ /** OpenAI Responses identity. Never supplied or inferred by the model. */
1853
+ researchResponseId: z.ZodOptional<z.ZodString>;
1854
+ researchedAt: z.ZodOptional<z.ZodString>;
1855
+ citations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1856
+ url: z.ZodEffects<z.ZodString, string, string>;
1857
+ title: z.ZodString;
1858
+ responseId: z.ZodString;
1859
+ researchedAt: z.ZodString;
1860
+ }, "strip", z.ZodTypeAny, {
1861
+ title: string;
1862
+ url: string;
1863
+ responseId: string;
1864
+ researchedAt: string;
1865
+ }, {
1866
+ title: string;
1867
+ url: string;
1868
+ responseId: string;
1869
+ researchedAt: string;
1870
+ }>, "many">>;
1871
+ }, "strip", z.ZodTypeAny, {
1872
+ readerGap: string;
1873
+ comparables: {
1874
+ title: string;
1875
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
1876
+ admiredQualities: string[];
1877
+ avoidImitating: string[];
1878
+ author?: string | undefined;
1879
+ readerGap?: string | undefined;
1880
+ sourceUrl?: string | undefined;
1881
+ sourceTitle?: string | undefined;
1882
+ verificationResponseId?: string | undefined;
1883
+ verifiedAt?: string | undefined;
1884
+ }[];
1885
+ differentiation: string[];
1886
+ conventionsToKeep: string[];
1887
+ conventionsToReject: string[];
1888
+ overlapRisks: string[];
1889
+ unknownsRequiringResearch: string[];
1890
+ researchedAt?: string | undefined;
1891
+ researchStatus?: "partial" | "verified" | "not_required" | undefined;
1892
+ researchResponseId?: string | undefined;
1893
+ citations?: {
1894
+ title: string;
1895
+ url: string;
1896
+ responseId: string;
1897
+ researchedAt: string;
1898
+ }[] | undefined;
1899
+ }, {
1900
+ readerGap: string;
1901
+ comparables: {
1902
+ title: string;
1903
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
1904
+ admiredQualities: string[];
1905
+ avoidImitating: string[];
1906
+ author?: string | undefined;
1907
+ readerGap?: string | undefined;
1908
+ sourceUrl?: string | undefined;
1909
+ sourceTitle?: string | undefined;
1910
+ verificationResponseId?: string | undefined;
1911
+ verifiedAt?: string | undefined;
1912
+ }[];
1913
+ differentiation: string[];
1914
+ conventionsToKeep: string[];
1915
+ conventionsToReject: string[];
1916
+ overlapRisks: string[];
1917
+ unknownsRequiringResearch: string[];
1918
+ researchedAt?: string | undefined;
1919
+ researchStatus?: "partial" | "verified" | "not_required" | undefined;
1920
+ researchResponseId?: string | undefined;
1921
+ citations?: {
1922
+ title: string;
1923
+ url: string;
1924
+ responseId: string;
1925
+ researchedAt: string;
1926
+ }[] | undefined;
1927
+ }>>;
1928
+ /** Questions the human must answer before nonfiction orchestration may proceed. */
1929
+ clarificationQuestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1930
+ /** Assumptions are disclosed, never silently promoted to user intent. */
1931
+ intentAssumptions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1932
+ intentConfidence: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
1933
+ /** Preferred language for generated manuscript artifacts (e.g. portal Spanish books). */
1934
+ contentLanguage: z.ZodOptional<z.ZodEnum<["en", "es"]>>;
1935
+ }, "strip", z.ZodTypeAny, {
1936
+ title: string;
1937
+ kind: "book" | "technical_report" | "scientific_paper" | "research_brief" | "white_paper" | "philosophical_manuscript";
1938
+ domain: string;
1939
+ successCriteria: string[];
1940
+ coreThesis: string;
1941
+ intendedReaders: string[];
1942
+ argumentPillars: string[];
1943
+ manuscriptConstraints: string[];
1944
+ subtitle?: string | undefined;
1945
+ authorName?: string | undefined;
1946
+ genre?: string | undefined;
1947
+ subject?: string | undefined;
1948
+ scope?: string | undefined;
1949
+ tone?: string | undefined;
1950
+ style?: string | undefined;
1951
+ centralThemes?: string[] | undefined;
1952
+ symbolicFramework?: string | undefined;
1953
+ keyClaims?: string[] | undefined;
1954
+ counterclaims?: string[] | undefined;
1955
+ sourceRequirements?: string[] | undefined;
1956
+ readerOutcome?: string | undefined;
1957
+ publicationGoal?: string | undefined;
1958
+ centralQuestion?: string | undefined;
1959
+ directAnswer?: string | undefined;
1960
+ readerPromise?: string | undefined;
1961
+ primaryReader?: string | undefined;
1962
+ readerStartingState?: string | undefined;
1963
+ readerEndingState?: string | undefined;
1964
+ scopeIn?: string[] | undefined;
1965
+ exclusions?: string[] | undefined;
1966
+ toneDos?: string[] | undefined;
1967
+ toneDonts?: string[] | undefined;
1968
+ audioListeningContract?: {
1969
+ idealListeningContext: string;
1970
+ spokenStyle: string;
1971
+ attentionPattern: string;
1972
+ pacingAndPronunciationNeeds: string[];
1973
+ successTest: string;
1974
+ } | undefined;
1975
+ competitivePositioning?: {
1976
+ readerGap: string;
1977
+ comparables: {
1978
+ title: string;
1979
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
1980
+ admiredQualities: string[];
1981
+ avoidImitating: string[];
1982
+ author?: string | undefined;
1983
+ readerGap?: string | undefined;
1984
+ sourceUrl?: string | undefined;
1985
+ sourceTitle?: string | undefined;
1986
+ verificationResponseId?: string | undefined;
1987
+ verifiedAt?: string | undefined;
1988
+ }[];
1989
+ differentiation: string[];
1990
+ conventionsToKeep: string[];
1991
+ conventionsToReject: string[];
1992
+ overlapRisks: string[];
1993
+ unknownsRequiringResearch: string[];
1994
+ researchedAt?: string | undefined;
1995
+ researchStatus?: "partial" | "verified" | "not_required" | undefined;
1996
+ researchResponseId?: string | undefined;
1997
+ citations?: {
1998
+ title: string;
1999
+ url: string;
2000
+ responseId: string;
2001
+ researchedAt: string;
2002
+ }[] | undefined;
2003
+ } | undefined;
2004
+ clarificationQuestions?: string[] | undefined;
2005
+ intentAssumptions?: string[] | undefined;
2006
+ intentConfidence?: "low" | "medium" | "high" | undefined;
2007
+ contentLanguage?: "en" | "es" | undefined;
2008
+ }, {
2009
+ title: string;
2010
+ kind: "book" | "technical_report" | "scientific_paper" | "research_brief" | "white_paper" | "philosophical_manuscript";
2011
+ domain: string;
2012
+ successCriteria: string[];
2013
+ coreThesis: string;
2014
+ intendedReaders: string[];
2015
+ argumentPillars: string[];
2016
+ manuscriptConstraints: string[];
2017
+ subtitle?: string | undefined;
2018
+ authorName?: string | undefined;
2019
+ genre?: string | undefined;
2020
+ subject?: string | undefined;
2021
+ scope?: string | undefined;
2022
+ tone?: string | undefined;
2023
+ style?: string | undefined;
2024
+ centralThemes?: string[] | undefined;
2025
+ symbolicFramework?: string | undefined;
2026
+ keyClaims?: string[] | undefined;
2027
+ counterclaims?: string[] | undefined;
2028
+ sourceRequirements?: string[] | undefined;
2029
+ readerOutcome?: string | undefined;
2030
+ publicationGoal?: string | undefined;
2031
+ centralQuestion?: string | undefined;
2032
+ directAnswer?: string | undefined;
2033
+ readerPromise?: string | undefined;
2034
+ primaryReader?: string | undefined;
2035
+ readerStartingState?: string | undefined;
2036
+ readerEndingState?: string | undefined;
2037
+ scopeIn?: string[] | undefined;
2038
+ exclusions?: string[] | undefined;
2039
+ toneDos?: string[] | undefined;
2040
+ toneDonts?: string[] | undefined;
2041
+ audioListeningContract?: {
2042
+ idealListeningContext: string;
2043
+ spokenStyle: string;
2044
+ attentionPattern: string;
2045
+ pacingAndPronunciationNeeds: string[];
2046
+ successTest: string;
2047
+ } | undefined;
2048
+ competitivePositioning?: {
2049
+ readerGap: string;
2050
+ comparables: {
2051
+ title: string;
2052
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
2053
+ admiredQualities: string[];
2054
+ avoidImitating: string[];
2055
+ author?: string | undefined;
2056
+ readerGap?: string | undefined;
2057
+ sourceUrl?: string | undefined;
2058
+ sourceTitle?: string | undefined;
2059
+ verificationResponseId?: string | undefined;
2060
+ verifiedAt?: string | undefined;
2061
+ }[];
2062
+ differentiation: string[];
2063
+ conventionsToKeep: string[];
2064
+ conventionsToReject: string[];
2065
+ overlapRisks: string[];
2066
+ unknownsRequiringResearch: string[];
2067
+ researchedAt?: string | undefined;
2068
+ researchStatus?: "partial" | "verified" | "not_required" | undefined;
2069
+ researchResponseId?: string | undefined;
2070
+ citations?: {
2071
+ title: string;
2072
+ url: string;
2073
+ responseId: string;
2074
+ researchedAt: string;
2075
+ }[] | undefined;
2076
+ } | undefined;
2077
+ clarificationQuestions?: string[] | undefined;
2078
+ intentAssumptions?: string[] | undefined;
2079
+ intentConfidence?: "low" | "medium" | "high" | undefined;
2080
+ contentLanguage?: "en" | "es" | undefined;
2081
+ }>]>>;
2082
+ /** Token usage for telemetry. */
2083
+ tokensUsed: z.ZodOptional<z.ZodNumber>;
2084
+ }, "strip", z.ZodTypeAny, {
2085
+ mode: "structure" | "summarise" | "improve";
2086
+ improvedBrief: string;
2087
+ structured?: {
2088
+ title: string;
2089
+ kind: "software";
2090
+ domain: string;
2091
+ corePurpose: string;
2092
+ targetUsers: string[];
2093
+ keyFeatures: string[];
2094
+ nonFunctionalRequirements: {
2095
+ performance?: string | undefined;
2096
+ security?: string | undefined;
2097
+ accessibility?: string | undefined;
2098
+ scalability?: string | undefined;
2099
+ };
2100
+ constraints: string[];
2101
+ successCriteria: string[];
2102
+ techStack: {
2103
+ frontend: "Next.js 15 App Router, React 19, TypeScript 5 strict";
2104
+ styling: "Tailwind v4 with semantic design tokens — no hardcoded values";
2105
+ backend: "Supabase (Postgres, Auth, RLS, Edge Functions)";
2106
+ hosting: "Vercel — Fluid Compute, Edge Middleware";
2107
+ ai: "OpenAI via NeuraLoom enhanced-client";
2108
+ packageManager: "pnpm + Turborepo monorepo";
2109
+ };
2110
+ constitutionalRules: string[];
2111
+ dataModel?: string | undefined;
2112
+ } | {
2113
+ title: string;
2114
+ kind: "book" | "technical_report" | "scientific_paper" | "research_brief" | "white_paper" | "philosophical_manuscript";
2115
+ domain: string;
2116
+ successCriteria: string[];
2117
+ coreThesis: string;
2118
+ intendedReaders: string[];
2119
+ argumentPillars: string[];
2120
+ manuscriptConstraints: string[];
2121
+ subtitle?: string | undefined;
2122
+ authorName?: string | undefined;
2123
+ genre?: string | undefined;
2124
+ subject?: string | undefined;
2125
+ scope?: string | undefined;
2126
+ tone?: string | undefined;
2127
+ style?: string | undefined;
2128
+ centralThemes?: string[] | undefined;
2129
+ symbolicFramework?: string | undefined;
2130
+ keyClaims?: string[] | undefined;
2131
+ counterclaims?: string[] | undefined;
2132
+ sourceRequirements?: string[] | undefined;
2133
+ readerOutcome?: string | undefined;
2134
+ publicationGoal?: string | undefined;
2135
+ centralQuestion?: string | undefined;
2136
+ directAnswer?: string | undefined;
2137
+ readerPromise?: string | undefined;
2138
+ primaryReader?: string | undefined;
2139
+ readerStartingState?: string | undefined;
2140
+ readerEndingState?: string | undefined;
2141
+ scopeIn?: string[] | undefined;
2142
+ exclusions?: string[] | undefined;
2143
+ toneDos?: string[] | undefined;
2144
+ toneDonts?: string[] | undefined;
2145
+ audioListeningContract?: {
2146
+ idealListeningContext: string;
2147
+ spokenStyle: string;
2148
+ attentionPattern: string;
2149
+ pacingAndPronunciationNeeds: string[];
2150
+ successTest: string;
2151
+ } | undefined;
2152
+ competitivePositioning?: {
2153
+ readerGap: string;
2154
+ comparables: {
2155
+ title: string;
2156
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
2157
+ admiredQualities: string[];
2158
+ avoidImitating: string[];
2159
+ author?: string | undefined;
2160
+ readerGap?: string | undefined;
2161
+ sourceUrl?: string | undefined;
2162
+ sourceTitle?: string | undefined;
2163
+ verificationResponseId?: string | undefined;
2164
+ verifiedAt?: string | undefined;
2165
+ }[];
2166
+ differentiation: string[];
2167
+ conventionsToKeep: string[];
2168
+ conventionsToReject: string[];
2169
+ overlapRisks: string[];
2170
+ unknownsRequiringResearch: string[];
2171
+ researchedAt?: string | undefined;
2172
+ researchStatus?: "partial" | "verified" | "not_required" | undefined;
2173
+ researchResponseId?: string | undefined;
2174
+ citations?: {
2175
+ title: string;
2176
+ url: string;
2177
+ responseId: string;
2178
+ researchedAt: string;
2179
+ }[] | undefined;
2180
+ } | undefined;
2181
+ clarificationQuestions?: string[] | undefined;
2182
+ intentAssumptions?: string[] | undefined;
2183
+ intentConfidence?: "low" | "medium" | "high" | undefined;
2184
+ contentLanguage?: "en" | "es" | undefined;
2185
+ } | undefined;
2186
+ tokensUsed?: number | undefined;
2187
+ }, {
2188
+ mode: "structure" | "summarise" | "improve";
2189
+ improvedBrief: string;
2190
+ structured?: {
2191
+ title: string;
2192
+ kind: "software";
2193
+ domain: string;
2194
+ corePurpose: string;
2195
+ targetUsers: string[];
2196
+ keyFeatures: string[];
2197
+ nonFunctionalRequirements: {
2198
+ performance?: string | undefined;
2199
+ security?: string | undefined;
2200
+ accessibility?: string | undefined;
2201
+ scalability?: string | undefined;
2202
+ };
2203
+ constraints: string[];
2204
+ successCriteria: string[];
2205
+ techStack: {
2206
+ frontend: "Next.js 15 App Router, React 19, TypeScript 5 strict";
2207
+ styling: "Tailwind v4 with semantic design tokens — no hardcoded values";
2208
+ backend: "Supabase (Postgres, Auth, RLS, Edge Functions)";
2209
+ hosting: "Vercel — Fluid Compute, Edge Middleware";
2210
+ ai: "OpenAI via NeuraLoom enhanced-client";
2211
+ packageManager: "pnpm + Turborepo monorepo";
2212
+ };
2213
+ constitutionalRules: string[];
2214
+ dataModel?: string | undefined;
2215
+ } | {
2216
+ title: string;
2217
+ kind: "book" | "technical_report" | "scientific_paper" | "research_brief" | "white_paper" | "philosophical_manuscript";
2218
+ domain: string;
2219
+ successCriteria: string[];
2220
+ coreThesis: string;
2221
+ intendedReaders: string[];
2222
+ argumentPillars: string[];
2223
+ manuscriptConstraints: string[];
2224
+ subtitle?: string | undefined;
2225
+ authorName?: string | undefined;
2226
+ genre?: string | undefined;
2227
+ subject?: string | undefined;
2228
+ scope?: string | undefined;
2229
+ tone?: string | undefined;
2230
+ style?: string | undefined;
2231
+ centralThemes?: string[] | undefined;
2232
+ symbolicFramework?: string | undefined;
2233
+ keyClaims?: string[] | undefined;
2234
+ counterclaims?: string[] | undefined;
2235
+ sourceRequirements?: string[] | undefined;
2236
+ readerOutcome?: string | undefined;
2237
+ publicationGoal?: string | undefined;
2238
+ centralQuestion?: string | undefined;
2239
+ directAnswer?: string | undefined;
2240
+ readerPromise?: string | undefined;
2241
+ primaryReader?: string | undefined;
2242
+ readerStartingState?: string | undefined;
2243
+ readerEndingState?: string | undefined;
2244
+ scopeIn?: string[] | undefined;
2245
+ exclusions?: string[] | undefined;
2246
+ toneDos?: string[] | undefined;
2247
+ toneDonts?: string[] | undefined;
2248
+ audioListeningContract?: {
2249
+ idealListeningContext: string;
2250
+ spokenStyle: string;
2251
+ attentionPattern: string;
2252
+ pacingAndPronunciationNeeds: string[];
2253
+ successTest: string;
2254
+ } | undefined;
2255
+ competitivePositioning?: {
2256
+ readerGap: string;
2257
+ comparables: {
2258
+ title: string;
2259
+ provenance: "unknown" | "user_supplied" | "verified" | "inferred";
2260
+ admiredQualities: string[];
2261
+ avoidImitating: string[];
2262
+ author?: string | undefined;
2263
+ readerGap?: string | undefined;
2264
+ sourceUrl?: string | undefined;
2265
+ sourceTitle?: string | undefined;
2266
+ verificationResponseId?: string | undefined;
2267
+ verifiedAt?: string | undefined;
2268
+ }[];
2269
+ differentiation: string[];
2270
+ conventionsToKeep: string[];
2271
+ conventionsToReject: string[];
2272
+ overlapRisks: string[];
2273
+ unknownsRequiringResearch: string[];
2274
+ researchedAt?: string | undefined;
2275
+ researchStatus?: "partial" | "verified" | "not_required" | undefined;
2276
+ researchResponseId?: string | undefined;
2277
+ citations?: {
2278
+ title: string;
2279
+ url: string;
2280
+ responseId: string;
2281
+ researchedAt: string;
2282
+ }[] | undefined;
2283
+ } | undefined;
2284
+ clarificationQuestions?: string[] | undefined;
2285
+ intentAssumptions?: string[] | undefined;
2286
+ intentConfidence?: "low" | "medium" | "high" | undefined;
2287
+ contentLanguage?: "en" | "es" | undefined;
2288
+ } | undefined;
2289
+ tokensUsed?: number | undefined;
2290
+ }>;
2291
+ export type BriefImproveGenerateOutput = z.infer<typeof BriefImproveGenerateOutputSchema>;