@neuraloom/contracts 0.0.0-stage → 0.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1141) hide show
  1. package/dist/analytics/community-movie/attribution.schema.d.ts +264 -0
  2. package/dist/analytics/community-movie/attribution.schema.js +57 -0
  3. package/dist/analytics/community-movie/consent.schema.d.ts +15 -0
  4. package/dist/analytics/community-movie/consent.schema.js +16 -0
  5. package/dist/analytics/community-movie/event-names.d.ts +11 -0
  6. package/dist/analytics/community-movie/event-names.js +113 -0
  7. package/dist/analytics/community-movie/event-params.schema.d.ts +622 -0
  8. package/dist/analytics/community-movie/event-params.schema.js +416 -0
  9. package/dist/analytics/community-movie/event-registry.d.ts +11 -0
  10. package/dist/analytics/community-movie/event-registry.js +486 -0
  11. package/dist/analytics/community-movie/index.d.ts +6 -0
  12. package/dist/analytics/community-movie/index.js +22 -0
  13. package/dist/analytics/community-movie/telemetry-record.schema.d.ts +157 -0
  14. package/dist/analytics/community-movie/telemetry-record.schema.js +26 -0
  15. package/dist/analytics/index.d.ts +1 -0
  16. package/dist/analytics/index.js +17 -0
  17. package/dist/community/actor-builder-options.d.ts +43 -0
  18. package/dist/community/actor-builder-options.js +197 -0
  19. package/dist/constants/AGENT_MCP_PERMISSIONS.d.ts +26 -0
  20. package/dist/constants/AGENT_MCP_PERMISSIONS.js +122 -0
  21. package/dist/constants/AGENT_ROLES.d.ts +37 -0
  22. package/dist/constants/AGENT_ROLES.js +199 -0
  23. package/dist/constants/audiobook-embed-placeholder-url.d.ts +5 -0
  24. package/dist/constants/audiobook-embed-placeholder-url.js +8 -0
  25. package/dist/constants/ci-config.d.ts +4 -0
  26. package/dist/constants/ci-config.js +7 -0
  27. package/dist/constants/kg-implement-stable-keys.d.ts +9 -0
  28. package/dist/constants/kg-implement-stable-keys.js +26 -0
  29. package/dist/constants/knowledge-edge-relation.d.ts +49 -0
  30. package/dist/constants/knowledge-edge-relation.js +42 -0
  31. package/dist/constants/knowledge-node.d.ts +21 -0
  32. package/dist/constants/knowledge-node.js +20 -0
  33. package/dist/constants/mission-control-nav.d.ts +13 -0
  34. package/dist/constants/mission-control-nav.js +75 -0
  35. package/dist/constants/model-mode-preset-defaults.d.ts +5 -0
  36. package/dist/constants/model-mode-preset-defaults.js +65 -0
  37. package/dist/constants/model-policies.d.ts +37 -0
  38. package/dist/constants/model-policies.js +656 -0
  39. package/dist/constants/navConfig.d.ts +43 -0
  40. package/dist/constants/navConfig.js +132 -0
  41. package/dist/constants/orchestration-execution.d.ts +5 -0
  42. package/dist/constants/orchestration-execution.js +10 -0
  43. package/dist/constants/payload-schema-map.d.ts +22 -0
  44. package/dist/constants/payload-schema-map.js +375 -0
  45. package/dist/constants/phase-guardian.d.ts +17 -0
  46. package/dist/constants/phase-guardian.js +43 -0
  47. package/dist/constants/pipeline-step-stages.d.ts +73 -0
  48. package/dist/constants/pipeline-step-stages.js +342 -0
  49. package/dist/constants/project-control-nav.d.ts +29 -0
  50. package/dist/constants/project-control-nav.js +65 -0
  51. package/dist/constants/software-index-targets.d.ts +17 -0
  52. package/dist/constants/software-index-targets.js +46 -0
  53. package/dist/constants/step-tools.d.ts +32 -0
  54. package/dist/constants/step-tools.js +53 -0
  55. package/dist/constants/workflow-agent-defaults.d.ts +4 -0
  56. package/dist/constants/workflow-agent-defaults.js +15 -0
  57. package/dist/constants/workflow-api-errors.d.ts +5 -0
  58. package/dist/constants/workflow-api-errors.js +8 -0
  59. package/dist/constants/workflow-phase-groups.d.ts +34 -0
  60. package/dist/constants/workflow-phase-groups.js +46 -0
  61. package/dist/constants/workflow-registry.d.ts +77 -0
  62. package/dist/constants/workflow-registry.js +421 -0
  63. package/dist/constants/workflow-semantics.d.ts +19 -0
  64. package/dist/constants/workflow-semantics.js +432 -0
  65. package/dist/constants/workflow-vocabulary.d.ts +23 -0
  66. package/dist/constants/workflow-vocabulary.js +227 -0
  67. package/dist/constants/workflow.d.ts +7 -0
  68. package/dist/constants/workflow.js +23 -0
  69. package/dist/data/model-registry.d.ts +36 -0
  70. package/dist/data/model-registry.js +59 -0
  71. package/dist/index.d.ts +47 -0
  72. package/dist/index.js +90 -0
  73. package/dist/integration/index.d.ts +8 -0
  74. package/dist/integration/index.js +24 -0
  75. package/dist/integration/schema-hash-manifest.json +26 -0
  76. package/dist/lib/graph-edge-resolve.d.ts +3 -0
  77. package/dist/lib/graph-edge-resolve.js +20 -0
  78. package/dist/lib/graph-id.d.ts +16 -0
  79. package/dist/lib/graph-id.js +169 -0
  80. package/dist/lib/step-navigation.d.ts +35 -0
  81. package/dist/lib/step-navigation.js +218 -0
  82. package/dist/marketing/acquisition-landing-matrix.d.ts +46 -0
  83. package/dist/marketing/acquisition-landing-matrix.js +64 -0
  84. package/dist/marketing/acquisition-recommendation.schema.d.ts +284 -0
  85. package/dist/marketing/acquisition-recommendation.schema.js +84 -0
  86. package/dist/marketing/ads-account.schema.d.ts +46 -0
  87. package/dist/marketing/ads-account.schema.js +15 -0
  88. package/dist/marketing/ads-ad-group.schema.d.ts +52 -0
  89. package/dist/marketing/ads-ad-group.schema.js +17 -0
  90. package/dist/marketing/ads-campaign.schema.d.ts +59 -0
  91. package/dist/marketing/ads-campaign.schema.js +18 -0
  92. package/dist/marketing/ads-conversion-action.schema.d.ts +60 -0
  93. package/dist/marketing/ads-conversion-action.schema.js +27 -0
  94. package/dist/marketing/ads-keyword.schema.d.ts +59 -0
  95. package/dist/marketing/ads-keyword.schema.js +19 -0
  96. package/dist/marketing/ads-metrics-daily.schema.d.ts +95 -0
  97. package/dist/marketing/ads-metrics-daily.schema.js +24 -0
  98. package/dist/marketing/ads-overview.schema.d.ts +479 -0
  99. package/dist/marketing/ads-overview.schema.js +44 -0
  100. package/dist/marketing/ads-query.schema.d.ts +33 -0
  101. package/dist/marketing/ads-query.schema.js +13 -0
  102. package/dist/marketing/ads-search-term.schema.d.ts +70 -0
  103. package/dist/marketing/ads-search-term.schema.js +19 -0
  104. package/dist/marketing/campaign-asset.schema.d.ts +51 -0
  105. package/dist/marketing/campaign-asset.schema.js +39 -0
  106. package/dist/marketing/community-movie-ads-free-signup-campaign.d.ts +23 -0
  107. package/dist/marketing/community-movie-ads-free-signup-campaign.js +29 -0
  108. package/dist/marketing/community-movie-campaign-matrix.d.ts +47 -0
  109. package/dist/marketing/community-movie-campaign-matrix.js +265 -0
  110. package/dist/marketing/community-movie-google-ads.constants.d.ts +49 -0
  111. package/dist/marketing/community-movie-google-ads.constants.js +59 -0
  112. package/dist/marketing/config.schema.d.ts +32 -0
  113. package/dist/marketing/config.schema.js +31 -0
  114. package/dist/marketing/date-range.schema.d.ts +12 -0
  115. package/dist/marketing/date-range.schema.js +10 -0
  116. package/dist/marketing/entities/index.d.ts +6 -0
  117. package/dist/marketing/entities/index.js +11 -0
  118. package/dist/marketing/ga4-conversion.schema.d.ts +87 -0
  119. package/dist/marketing/ga4-conversion.schema.js +22 -0
  120. package/dist/marketing/ga4-event.schema.d.ts +98 -0
  121. package/dist/marketing/ga4-event.schema.js +23 -0
  122. package/dist/marketing/ga4-funnel.schema.d.ts +90 -0
  123. package/dist/marketing/ga4-funnel.schema.js +23 -0
  124. package/dist/marketing/ga4-landing-page.schema.d.ts +131 -0
  125. package/dist/marketing/ga4-landing-page.schema.js +25 -0
  126. package/dist/marketing/ga4-overview.schema.d.ts +478 -0
  127. package/dist/marketing/ga4-overview.schema.js +31 -0
  128. package/dist/marketing/ga4-query.schema.d.ts +19 -0
  129. package/dist/marketing/ga4-query.schema.js +27 -0
  130. package/dist/marketing/ga4-retention.schema.d.ts +79 -0
  131. package/dist/marketing/ga4-retention.schema.js +21 -0
  132. package/dist/marketing/ga4-traffic.schema.d.ts +154 -0
  133. package/dist/marketing/ga4-traffic.schema.js +27 -0
  134. package/dist/marketing/gsc-organic-overview.schema.d.ts +338 -0
  135. package/dist/marketing/gsc-organic-overview.schema.js +28 -0
  136. package/dist/marketing/gsc-organic-query.schema.d.ts +121 -0
  137. package/dist/marketing/gsc-organic-query.schema.js +24 -0
  138. package/dist/marketing/gsc-page-performance.schema.d.ts +121 -0
  139. package/dist/marketing/gsc-page-performance.schema.js +24 -0
  140. package/dist/marketing/gsc-query.schema.d.ts +19 -0
  141. package/dist/marketing/gsc-query.schema.js +27 -0
  142. package/dist/marketing/index.d.ts +47 -0
  143. package/dist/marketing/index.js +63 -0
  144. package/dist/marketing/marketing-attribution-summary.schema.d.ts +165 -0
  145. package/dist/marketing/marketing-attribution-summary.schema.js +26 -0
  146. package/dist/marketing/marketing-challenge-performance.schema.d.ts +139 -0
  147. package/dist/marketing/marketing-challenge-performance.schema.js +28 -0
  148. package/dist/marketing/marketing-conversion-enqueue.schema.d.ts +88 -0
  149. package/dist/marketing/marketing-conversion-enqueue.schema.js +34 -0
  150. package/dist/marketing/marketing-executive-overview.schema.d.ts +1865 -0
  151. package/dist/marketing/marketing-executive-overview.schema.js +39 -0
  152. package/dist/marketing/marketing-health.schema.d.ts +366 -0
  153. package/dist/marketing/marketing-health.schema.js +65 -0
  154. package/dist/marketing/marketing-keyword-opportunity.schema.d.ts +158 -0
  155. package/dist/marketing/marketing-keyword-opportunity.schema.js +34 -0
  156. package/dist/marketing/marketing-landing-page-intelligence.schema.d.ts +159 -0
  157. package/dist/marketing/marketing-landing-page-intelligence.schema.js +30 -0
  158. package/dist/marketing/marketing-readiness.schema.d.ts +506 -0
  159. package/dist/marketing/marketing-readiness.schema.js +83 -0
  160. package/dist/marketing/marketing-test-traffic.d.ts +6 -0
  161. package/dist/marketing/marketing-test-traffic.js +28 -0
  162. package/dist/marketing/marketing-visibility-overview.schema.d.ts +949 -0
  163. package/dist/marketing/marketing-visibility-overview.schema.js +42 -0
  164. package/dist/marketing/marketing-world-catalog.d.ts +10 -0
  165. package/dist/marketing/marketing-world-catalog.js +16 -0
  166. package/dist/marketing/marketing-world-performance.schema.d.ts +179 -0
  167. package/dist/marketing/marketing-world-performance.schema.js +32 -0
  168. package/dist/marketing/routes.d.ts +77 -0
  169. package/dist/marketing/routes.js +79 -0
  170. package/dist/marketing/search-negative-keywords.d.ts +6 -0
  171. package/dist/marketing/search-negative-keywords.js +30 -0
  172. package/dist/registry/schema-registry.d.ts +74 -0
  173. package/dist/registry/schema-registry.js +1148 -0
  174. package/dist/registry/table-ownership-registry.d.ts +57 -0
  175. package/dist/registry/table-ownership-registry.js +932 -0
  176. package/dist/routes/assurance.d.ts +6 -0
  177. package/dist/routes/assurance.js +14 -0
  178. package/dist/routes/community-operator.d.ts +117 -0
  179. package/dist/routes/community-operator.js +119 -0
  180. package/dist/routes/community.d.ts +232 -0
  181. package/dist/routes/community.js +246 -0
  182. package/dist/routes/index.d.ts +2203 -0
  183. package/dist/routes/index.js +1440 -0
  184. package/dist/schemas/ai/ai-generate-inputs.schema.d.ts +2056 -0
  185. package/dist/schemas/ai/ai-generate-inputs.schema.js +167 -0
  186. package/dist/schemas/ai/ai-run-metadata.schema.d.ts +39 -0
  187. package/dist/schemas/ai/ai-run-metadata.schema.js +24 -0
  188. package/dist/schemas/ai/ai-runs-list.schema.d.ts +248 -0
  189. package/dist/schemas/ai/ai-runs-list.schema.js +27 -0
  190. package/dist/schemas/ai/analytics-generate.schema.d.ts +185 -0
  191. package/dist/schemas/ai/analytics-generate.schema.js +59 -0
  192. package/dist/schemas/ai/api-generate.schema.d.ts +49 -0
  193. package/dist/schemas/ai/api-generate.schema.js +16 -0
  194. package/dist/schemas/ai/api.schema.d.ts +80 -0
  195. package/dist/schemas/ai/api.schema.js +22 -0
  196. package/dist/schemas/ai/architecture-generate.schema.d.ts +47 -0
  197. package/dist/schemas/ai/architecture-generate.schema.js +19 -0
  198. package/dist/schemas/ai/argument-map-generate.schema.d.ts +433 -0
  199. package/dist/schemas/ai/argument-map-generate.schema.js +62 -0
  200. package/dist/schemas/ai/audit-existing-output-evidence.schema.d.ts +153 -0
  201. package/dist/schemas/ai/audit-existing-output-evidence.schema.js +46 -0
  202. package/dist/schemas/ai/brief-improve-generate.schema.d.ts +2291 -0
  203. package/dist/schemas/ai/brief-improve-generate.schema.js +293 -0
  204. package/dist/schemas/ai/chapter-revision.schema.d.ts +817 -0
  205. package/dist/schemas/ai/chapter-revision.schema.js +267 -0
  206. package/dist/schemas/ai/code-generate.schema.d.ts +1492 -0
  207. package/dist/schemas/ai/code-generate.schema.js +46 -0
  208. package/dist/schemas/ai/community-pitch-critique-generate.schema.d.ts +31 -0
  209. package/dist/schemas/ai/community-pitch-critique-generate.schema.js +17 -0
  210. package/dist/schemas/ai/community-suggestion-summary-generate.schema.d.ts +34 -0
  211. package/dist/schemas/ai/community-suggestion-summary-generate.schema.js +19 -0
  212. package/dist/schemas/ai/compliance-generate.schema.d.ts +24 -0
  213. package/dist/schemas/ai/compliance-generate.schema.js +11 -0
  214. package/dist/schemas/ai/compliance.schema.d.ts +58 -0
  215. package/dist/schemas/ai/compliance.schema.js +22 -0
  216. package/dist/schemas/ai/constitution-generate.schema.d.ts +221 -0
  217. package/dist/schemas/ai/constitution-generate.schema.js +52 -0
  218. package/dist/schemas/ai/constitution-kg-gate-status.schema.d.ts +33 -0
  219. package/dist/schemas/ai/constitution-kg-gate-status.schema.js +15 -0
  220. package/dist/schemas/ai/constitution-validate-input.schema.d.ts +18 -0
  221. package/dist/schemas/ai/constitution-validate-input.schema.js +10 -0
  222. package/dist/schemas/ai/constitution-writing-generate.schema.d.ts +437 -0
  223. package/dist/schemas/ai/constitution-writing-generate.schema.js +70 -0
  224. package/dist/schemas/ai/constitution.schema.d.ts +19 -0
  225. package/dist/schemas/ai/constitution.schema.js +12 -0
  226. package/dist/schemas/ai/counterclaim-framework-generate.schema.d.ts +479 -0
  227. package/dist/schemas/ai/counterclaim-framework-generate.schema.js +66 -0
  228. package/dist/schemas/ai/coverage-generate.schema.d.ts +61 -0
  229. package/dist/schemas/ai/coverage-generate.schema.js +27 -0
  230. package/dist/schemas/ai/definitions-generate.schema.d.ts +448 -0
  231. package/dist/schemas/ai/definitions-generate.schema.js +62 -0
  232. package/dist/schemas/ai/deployments-generate.schema.d.ts +40 -0
  233. package/dist/schemas/ai/deployments-generate.schema.js +18 -0
  234. package/dist/schemas/ai/docs-generate.schema.d.ts +51 -0
  235. package/dist/schemas/ai/docs-generate.schema.js +18 -0
  236. package/dist/schemas/ai/domain-context.d.ts +58 -0
  237. package/dist/schemas/ai/domain-context.js +185 -0
  238. package/dist/schemas/ai/draft-generate.schema.d.ts +32 -0
  239. package/dist/schemas/ai/draft-generate.schema.js +17 -0
  240. package/dist/schemas/ai/editorial-guardian-generate.schema.d.ts +470 -0
  241. package/dist/schemas/ai/editorial-guardian-generate.schema.js +60 -0
  242. package/dist/schemas/ai/editorial-revise-chapter.schema.d.ts +411 -0
  243. package/dist/schemas/ai/editorial-revise-chapter.schema.js +83 -0
  244. package/dist/schemas/ai/film-clip-review-generate.schema.d.ts +291 -0
  245. package/dist/schemas/ai/film-clip-review-generate.schema.js +35 -0
  246. package/dist/schemas/ai/film-keyframe-generate.schema.d.ts +359 -0
  247. package/dist/schemas/ai/film-keyframe-generate.schema.js +28 -0
  248. package/dist/schemas/ai/film-keyframe-register.schema.d.ts +67 -0
  249. package/dist/schemas/ai/film-keyframe-register.schema.js +16 -0
  250. package/dist/schemas/ai/film-shot-risk-assess.schema.d.ts +12 -0
  251. package/dist/schemas/ai/film-shot-risk-assess.schema.js +10 -0
  252. package/dist/schemas/ai/film-still-review-generate.schema.d.ts +232 -0
  253. package/dist/schemas/ai/film-still-review-generate.schema.js +31 -0
  254. package/dist/schemas/ai/film-workflow-generate.schema.d.ts +117 -0
  255. package/dist/schemas/ai/film-workflow-generate.schema.js +33 -0
  256. package/dist/schemas/ai/generate-response.schema.d.ts +66 -0
  257. package/dist/schemas/ai/generate-response.schema.js +26 -0
  258. package/dist/schemas/ai/guardian-gate-status.schema.d.ts +112 -0
  259. package/dist/schemas/ai/guardian-gate-status.schema.js +17 -0
  260. package/dist/schemas/ai/guardian-kg-gate-status.schema.d.ts +58 -0
  261. package/dist/schemas/ai/guardian-kg-gate-status.schema.js +30 -0
  262. package/dist/schemas/ai/guardian-rule-detail.schema.d.ts +74 -0
  263. package/dist/schemas/ai/guardian-rule-detail.schema.js +19 -0
  264. package/dist/schemas/ai/guardian-score-history.schema.d.ts +75 -0
  265. package/dist/schemas/ai/guardian-score-history.schema.js +16 -0
  266. package/dist/schemas/ai/implement-graph.schema.d.ts +323 -0
  267. package/dist/schemas/ai/implement-graph.schema.js +51 -0
  268. package/dist/schemas/ai/implement-kg-gate-status.schema.d.ts +36 -0
  269. package/dist/schemas/ai/implement-kg-gate-status.schema.js +16 -0
  270. package/dist/schemas/ai/implement.schema.d.ts +73 -0
  271. package/dist/schemas/ai/implement.schema.js +23 -0
  272. package/dist/schemas/ai/index.d.ts +46 -0
  273. package/dist/schemas/ai/index.js +62 -0
  274. package/dist/schemas/ai/knowledge-kg-gate-status.schema.d.ts +73 -0
  275. package/dist/schemas/ai/knowledge-kg-gate-status.schema.js +24 -0
  276. package/dist/schemas/ai/knowledge-search-generate.schema.d.ts +2 -0
  277. package/dist/schemas/ai/knowledge-search-generate.schema.js +6 -0
  278. package/dist/schemas/ai/manuscript-checks.schema.d.ts +6095 -0
  279. package/dist/schemas/ai/manuscript-checks.schema.js +440 -0
  280. package/dist/schemas/ai/model-policy/index.d.ts +9 -0
  281. package/dist/schemas/ai/model-policy/index.js +25 -0
  282. package/dist/schemas/ai/model-policy/model-mode-preset.schema.d.ts +83 -0
  283. package/dist/schemas/ai/model-policy/model-mode-preset.schema.js +20 -0
  284. package/dist/schemas/ai/model-policy/model-modes.schema.d.ts +13 -0
  285. package/dist/schemas/ai/model-policy/model-modes.schema.js +27 -0
  286. package/dist/schemas/ai/model-policy/model-policy-resolved.schema.d.ts +44 -0
  287. package/dist/schemas/ai/model-policy/model-policy-resolved.schema.js +27 -0
  288. package/dist/schemas/ai/model-policy/model-quality-summary.schema.d.ts +133 -0
  289. package/dist/schemas/ai/model-policy/model-quality-summary.schema.js +35 -0
  290. package/dist/schemas/ai/model-policy/model-usage-summary.schema.d.ts +204 -0
  291. package/dist/schemas/ai/model-policy/model-usage-summary.schema.js +38 -0
  292. package/dist/schemas/ai/model-policy/project-model-policy.schema.d.ts +1311 -0
  293. package/dist/schemas/ai/model-policy/project-model-policy.schema.js +33 -0
  294. package/dist/schemas/ai/model-policy/workflow-phase-model-override.schema.d.ts +66 -0
  295. package/dist/schemas/ai/model-policy/workflow-phase-model-override.schema.js +48 -0
  296. package/dist/schemas/ai/model-policy/workflow-step-ids.schema.d.ts +2 -0
  297. package/dist/schemas/ai/model-policy/workflow-step-ids.schema.js +24 -0
  298. package/dist/schemas/ai/model-policy/workflow-step-model-override.schema.d.ts +63 -0
  299. package/dist/schemas/ai/model-policy/workflow-step-model-override.schema.js +43 -0
  300. package/dist/schemas/ai/orchestration-generate-fields.schema.d.ts +9 -0
  301. package/dist/schemas/ai/orchestration-generate-fields.schema.js +8 -0
  302. package/dist/schemas/ai/payload-json-schemas.d.ts +110 -0
  303. package/dist/schemas/ai/payload-json-schemas.js +154 -0
  304. package/dist/schemas/ai/plan.schema.d.ts +137 -0
  305. package/dist/schemas/ai/plan.schema.js +36 -0
  306. package/dist/schemas/ai/refine-fields.schema.d.ts +34 -0
  307. package/dist/schemas/ai/refine-fields.schema.js +27 -0
  308. package/dist/schemas/ai/review-generate.schema.d.ts +35 -0
  309. package/dist/schemas/ai/review-generate.schema.js +15 -0
  310. package/dist/schemas/ai/review.schema.d.ts +77 -0
  311. package/dist/schemas/ai/review.schema.js +29 -0
  312. package/dist/schemas/ai/run-trace.schema.d.ts +105 -0
  313. package/dist/schemas/ai/run-trace.schema.js +43 -0
  314. package/dist/schemas/ai/schema-generate.schema.d.ts +185 -0
  315. package/dist/schemas/ai/schema-generate.schema.js +44 -0
  316. package/dist/schemas/ai/schema.schema.d.ts +205 -0
  317. package/dist/schemas/ai/schema.schema.js +50 -0
  318. package/dist/schemas/ai/screenplay.schema.d.ts +550 -0
  319. package/dist/schemas/ai/screenplay.schema.js +77 -0
  320. package/dist/schemas/ai/source-registry-generate.schema.d.ts +245 -0
  321. package/dist/schemas/ai/source-registry-generate.schema.js +41 -0
  322. package/dist/schemas/ai/spec.schema.d.ts +248 -0
  323. package/dist/schemas/ai/spec.schema.js +78 -0
  324. package/dist/schemas/ai/style-system-generate.schema.d.ts +319 -0
  325. package/dist/schemas/ai/style-system-generate.schema.js +67 -0
  326. package/dist/schemas/ai/tasks-kg-gate-status.schema.d.ts +24 -0
  327. package/dist/schemas/ai/tasks-kg-gate-status.schema.js +12 -0
  328. package/dist/schemas/ai/tasks.schema.d.ts +49 -0
  329. package/dist/schemas/ai/tasks.schema.js +17 -0
  330. package/dist/schemas/ai/ui-generation-standard.schema.d.ts +42 -0
  331. package/dist/schemas/ai/ui-generation-standard.schema.js +40 -0
  332. package/dist/schemas/ai/ui-kg-gate-status.schema.d.ts +42 -0
  333. package/dist/schemas/ai/ui-kg-gate-status.schema.js +18 -0
  334. package/dist/schemas/ai/ui.schema.d.ts +22 -0
  335. package/dist/schemas/ai/ui.schema.js +13 -0
  336. package/dist/schemas/ai/workflow-artifacts.schema.d.ts +36075 -0
  337. package/dist/schemas/ai/workflow-artifacts.schema.js +2829 -0
  338. package/dist/schemas/ai/workflow-execution-mode.schema.d.ts +4 -0
  339. package/dist/schemas/ai/workflow-execution-mode.schema.js +6 -0
  340. package/dist/schemas/ai/writing-draft-all-generate.schema.d.ts +3444 -0
  341. package/dist/schemas/ai/writing-draft-all-generate.schema.js +319 -0
  342. package/dist/schemas/ai/writing-tasks-generate.schema.d.ts +283 -0
  343. package/dist/schemas/ai/writing-tasks-generate.schema.js +52 -0
  344. package/dist/schemas/ai/zod-openai-json-schema.d.ts +2 -0
  345. package/dist/schemas/ai/zod-openai-json-schema.js +67 -0
  346. package/dist/schemas/ai-ci-generate.d.ts +47 -0
  347. package/dist/schemas/ai-ci-generate.js +19 -0
  348. package/dist/schemas/ai-llm-outputs.d.ts +52 -0
  349. package/dist/schemas/ai-llm-outputs.js +26 -0
  350. package/dist/schemas/api/create-orchestration-request.schema.d.ts +13 -0
  351. package/dist/schemas/api/create-orchestration-request.schema.js +10 -0
  352. package/dist/schemas/api/implement-orchestration-session.schema.d.ts +26 -0
  353. package/dist/schemas/api/implement-orchestration-session.schema.js +11 -0
  354. package/dist/schemas/api/orchestration-events-list-response.schema.d.ts +108 -0
  355. package/dist/schemas/api/orchestration-events-list-response.schema.js +27 -0
  356. package/dist/schemas/api/plans-list-response.schema.d.ts +203 -0
  357. package/dist/schemas/api/plans-list-response.schema.js +35 -0
  358. package/dist/schemas/api/project-model-usage-query.schema.d.ts +24 -0
  359. package/dist/schemas/api/project-model-usage-query.schema.js +42 -0
  360. package/dist/schemas/api/specs-list-response.schema.d.ts +78 -0
  361. package/dist/schemas/api/specs-list-response.schema.js +23 -0
  362. package/dist/schemas/api-envelope.schema.d.ts +131 -0
  363. package/dist/schemas/api-envelope.schema.js +60 -0
  364. package/dist/schemas/artifacts/artifact-upload-proxy.schema.d.ts +27 -0
  365. package/dist/schemas/artifacts/artifact-upload-proxy.schema.js +15 -0
  366. package/dist/schemas/assurance/assurance-mode.schema.d.ts +33 -0
  367. package/dist/schemas/assurance/assurance-mode.schema.js +25 -0
  368. package/dist/schemas/assurance/browser-outcome-proof.schema.d.ts +164 -0
  369. package/dist/schemas/assurance/browser-outcome-proof.schema.js +58 -0
  370. package/dist/schemas/assurance/computation-authority-registry.schema.d.ts +108 -0
  371. package/dist/schemas/assurance/computation-authority-registry.schema.js +36 -0
  372. package/dist/schemas/assurance/documentation-evidence.schema.d.ts +131 -0
  373. package/dist/schemas/assurance/documentation-evidence.schema.js +44 -0
  374. package/dist/schemas/assurance/domain-assurance-evidence-pack.schema.d.ts +743 -0
  375. package/dist/schemas/assurance/domain-assurance-evidence-pack.schema.js +28 -0
  376. package/dist/schemas/assurance/domain-assurance-verdict.schema.d.ts +40 -0
  377. package/dist/schemas/assurance/domain-assurance-verdict.schema.js +24 -0
  378. package/dist/schemas/assurance/domain-truth-brief.schema.d.ts +270 -0
  379. package/dist/schemas/assurance/domain-truth-brief.schema.js +73 -0
  380. package/dist/schemas/assurance/enterprise-targeting.schema.d.ts +46 -0
  381. package/dist/schemas/assurance/enterprise-targeting.schema.js +24 -0
  382. package/dist/schemas/assurance/gate-result.schema.d.ts +35 -0
  383. package/dist/schemas/assurance/gate-result.schema.js +35 -0
  384. package/dist/schemas/assurance/index.d.ts +13 -0
  385. package/dist/schemas/assurance/index.js +30 -0
  386. package/dist/schemas/assurance/provider-call-ledger.schema.d.ts +97 -0
  387. package/dist/schemas/assurance/provider-call-ledger.schema.js +36 -0
  388. package/dist/schemas/assurance/provider-ledger-response.schema.d.ts +113 -0
  389. package/dist/schemas/assurance/provider-ledger-response.schema.js +29 -0
  390. package/dist/schemas/assurance/release-verdict.schema.d.ts +87 -0
  391. package/dist/schemas/assurance/release-verdict.schema.js +47 -0
  392. package/dist/schemas/assurance/risk-class.schema.d.ts +30 -0
  393. package/dist/schemas/assurance/risk-class.schema.js +33 -0
  394. package/dist/schemas/audiobook/alice-pronunciation.schema.d.ts +80 -0
  395. package/dist/schemas/audiobook/alice-pronunciation.schema.js +45 -0
  396. package/dist/schemas/audiobook/audiobook-api.schema.d.ts +1937 -0
  397. package/dist/schemas/audiobook/audiobook-api.schema.js +201 -0
  398. package/dist/schemas/audiobook/audiobook-artifacts.schema.d.ts +4069 -0
  399. package/dist/schemas/audiobook/audiobook-artifacts.schema.js +469 -0
  400. package/dist/schemas/audiobook/audiobook-studio.schema.d.ts +670 -0
  401. package/dist/schemas/audiobook/audiobook-studio.schema.js +159 -0
  402. package/dist/schemas/audiobook/audiobook-validation.d.ts +227 -0
  403. package/dist/schemas/audiobook/audiobook-validation.js +23 -0
  404. package/dist/schemas/audiobook/chunk-narration-script.d.ts +17 -0
  405. package/dist/schemas/audiobook/chunk-narration-script.js +96 -0
  406. package/dist/schemas/audiobook/elevenlabs-provider.schema.d.ts +167 -0
  407. package/dist/schemas/audiobook/elevenlabs-provider.schema.js +93 -0
  408. package/dist/schemas/audiobook/index.d.ts +8 -0
  409. package/dist/schemas/audiobook/index.js +24 -0
  410. package/dist/schemas/audiobook/narration-chunk.schema.d.ts +114 -0
  411. package/dist/schemas/audiobook/narration-chunk.schema.js +38 -0
  412. package/dist/schemas/audiobook-embed/audiobook-embed.schema.d.ts +1732 -0
  413. package/dist/schemas/audiobook-embed/audiobook-embed.schema.js +259 -0
  414. package/dist/schemas/auth/session-context.schema.d.ts +177 -0
  415. package/dist/schemas/auth/session-context.schema.js +40 -0
  416. package/dist/schemas/cache/cache-ai-response.schema.d.ts +50 -0
  417. package/dist/schemas/cache/cache-ai-response.schema.js +28 -0
  418. package/dist/schemas/ci/ci-allow-skip-actionlint-patch.schema.d.ts +16 -0
  419. package/dist/schemas/ci/ci-allow-skip-actionlint-patch.schema.js +12 -0
  420. package/dist/schemas/ci/ci-apply-post-success.schema.d.ts +24 -0
  421. package/dist/schemas/ci/ci-apply-post-success.schema.js +15 -0
  422. package/dist/schemas/ci/ci-canonical-readiness.schema.d.ts +155 -0
  423. package/dist/schemas/ci/ci-canonical-readiness.schema.js +47 -0
  424. package/dist/schemas/ci/ci-dispatch-post.schema.d.ts +34 -0
  425. package/dist/schemas/ci/ci-dispatch-post.schema.js +20 -0
  426. package/dist/schemas/ci/ci-ingest-post.schema.d.ts +37 -0
  427. package/dist/schemas/ci/ci-ingest-post.schema.js +22 -0
  428. package/dist/schemas/ci/ci-operator-ready-patch.schema.d.ts +13 -0
  429. package/dist/schemas/ci/ci-operator-ready-patch.schema.js +11 -0
  430. package/dist/schemas/ci/ci-pipeline-status.schema.d.ts +3 -0
  431. package/dist/schemas/ci/ci-pipeline-status.schema.js +13 -0
  432. package/dist/schemas/ci/ci-run.schema.d.ts +44 -0
  433. package/dist/schemas/ci/ci-run.schema.js +27 -0
  434. package/dist/schemas/ci/ci-runs-list-response.schema.d.ts +91 -0
  435. package/dist/schemas/ci/ci-runs-list-response.schema.js +13 -0
  436. package/dist/schemas/ci/ci-status-get.schema.d.ts +155 -0
  437. package/dist/schemas/ci/ci-status-get.schema.js +12 -0
  438. package/dist/schemas/ci/ci-status-response.schema.d.ts +554 -0
  439. package/dist/schemas/ci/ci-status-response.schema.js +151 -0
  440. package/dist/schemas/ci/index.d.ts +12 -0
  441. package/dist/schemas/ci/index.js +28 -0
  442. package/dist/schemas/ci/pr-check-run.schema.d.ts +44 -0
  443. package/dist/schemas/ci/pr-check-run.schema.js +21 -0
  444. package/dist/schemas/ci/project-engine-context.schema.d.ts +70 -0
  445. package/dist/schemas/ci/project-engine-context.schema.js +26 -0
  446. package/dist/schemas/community/community-actor-comment-body.schema.d.ts +9 -0
  447. package/dist/schemas/community/community-actor-comment-body.schema.js +9 -0
  448. package/dist/schemas/community/community-actor-universe-vote.schema.d.ts +10 -0
  449. package/dist/schemas/community/community-actor-universe-vote.schema.js +10 -0
  450. package/dist/schemas/community/community-ad-capi.schema.d.ts +77 -0
  451. package/dist/schemas/community/community-ad-capi.schema.js +42 -0
  452. package/dist/schemas/community/community-billing-checkout.schema.d.ts +31 -0
  453. package/dist/schemas/community/community-billing-checkout.schema.js +43 -0
  454. package/dist/schemas/community/community-challenge.schema.d.ts +43 -0
  455. package/dist/schemas/community/community-challenge.schema.js +21 -0
  456. package/dist/schemas/community/community-content-translation.schema.d.ts +99 -0
  457. package/dist/schemas/community/community-content-translation.schema.js +63 -0
  458. package/dist/schemas/community/community-credit-transaction.schema.d.ts +36 -0
  459. package/dist/schemas/community/community-credit-transaction.schema.js +19 -0
  460. package/dist/schemas/community/community-development-input.schema.d.ts +20 -0
  461. package/dist/schemas/community/community-development-input.schema.js +16 -0
  462. package/dist/schemas/community/community-development-room.schema.d.ts +28 -0
  463. package/dist/schemas/community/community-development-room.schema.js +16 -0
  464. package/dist/schemas/community/community-email.schema.d.ts +96 -0
  465. package/dist/schemas/community/community-email.schema.js +65 -0
  466. package/dist/schemas/community/community-film-playback.schema.d.ts +287 -0
  467. package/dist/schemas/community/community-film-playback.schema.js +52 -0
  468. package/dist/schemas/community/community-film-video-variant.schema.d.ts +94 -0
  469. package/dist/schemas/community/community-film-video-variant.schema.js +53 -0
  470. package/dist/schemas/community/community-film-world-marketing.schema.d.ts +27 -0
  471. package/dist/schemas/community/community-film-world-marketing.schema.js +67 -0
  472. package/dist/schemas/community/community-film.schema.d.ts +183 -0
  473. package/dist/schemas/community/community-film.schema.js +105 -0
  474. package/dist/schemas/community/community-idea-promote.schema.d.ts +4 -0
  475. package/dist/schemas/community/community-idea-promote.schema.js +6 -0
  476. package/dist/schemas/community/community-idea-submission.schema.d.ts +54 -0
  477. package/dist/schemas/community/community-idea-submission.schema.js +22 -0
  478. package/dist/schemas/community/community-idea-version.schema.d.ts +72 -0
  479. package/dist/schemas/community/community-idea-version.schema.js +28 -0
  480. package/dist/schemas/community/community-idea.schema.d.ts +71 -0
  481. package/dist/schemas/community/community-idea.schema.js +36 -0
  482. package/dist/schemas/community/community-locale.schema.d.ts +8 -0
  483. package/dist/schemas/community/community-locale.schema.js +10 -0
  484. package/dist/schemas/community/community-membership-monthly-credits.d.ts +4 -0
  485. package/dist/schemas/community/community-membership-monthly-credits.js +18 -0
  486. package/dist/schemas/community/community-membership.schema.d.ts +34 -0
  487. package/dist/schemas/community/community-membership.schema.js +19 -0
  488. package/dist/schemas/community/community-moderation-flag.schema.d.ts +31 -0
  489. package/dist/schemas/community/community-moderation-flag.schema.js +17 -0
  490. package/dist/schemas/community/community-movie-actor-blueprint.schema.d.ts +196 -0
  491. package/dist/schemas/community/community-movie-actor-blueprint.schema.js +30 -0
  492. package/dist/schemas/community/community-movie-actor-card.schema.d.ts +37 -0
  493. package/dist/schemas/community/community-movie-actor-card.schema.js +20 -0
  494. package/dist/schemas/community/community-movie-actor-create-request.schema.d.ts +102 -0
  495. package/dist/schemas/community/community-movie-actor-create-request.schema.js +24 -0
  496. package/dist/schemas/community/community-movie-actor-create-response.schema.d.ts +35 -0
  497. package/dist/schemas/community/community-movie-actor-create-response.schema.js +12 -0
  498. package/dist/schemas/community/community-movie-actor-gate-result.schema.d.ts +15 -0
  499. package/dist/schemas/community/community-movie-actor-gate-result.schema.js +11 -0
  500. package/dist/schemas/community/community-movie-actor-image-prompt-pack.schema.d.ts +22 -0
  501. package/dist/schemas/community/community-movie-actor-image-prompt-pack.schema.js +14 -0
  502. package/dist/schemas/community/community-movie-actor-kg-seed.schema.d.ts +68 -0
  503. package/dist/schemas/community/community-movie-actor-kg-seed.schema.js +31 -0
  504. package/dist/schemas/community/community-movie-actor-option-selection.schema.d.ts +43 -0
  505. package/dist/schemas/community/community-movie-actor-option-selection.schema.js +22 -0
  506. package/dist/schemas/community/community-movie-actor-portrait-url.schema.d.ts +10 -0
  507. package/dist/schemas/community/community-movie-actor-portrait-url.schema.js +10 -0
  508. package/dist/schemas/community/community-movie-actor-vote-response.schema.d.ts +13 -0
  509. package/dist/schemas/community/community-movie-actor-vote-response.schema.js +9 -0
  510. package/dist/schemas/community/community-movie-canonical-character.schema.d.ts +78 -0
  511. package/dist/schemas/community/community-movie-canonical-character.schema.js +104 -0
  512. package/dist/schemas/community/community-movie-gallery.schema.d.ts +28 -0
  513. package/dist/schemas/community/community-movie-gallery.schema.js +90 -0
  514. package/dist/schemas/community/community-movie-gate-result.schema.d.ts +46 -0
  515. package/dist/schemas/community/community-movie-gate-result.schema.js +23 -0
  516. package/dist/schemas/community/community-movie-idea-card.schema.d.ts +31 -0
  517. package/dist/schemas/community/community-movie-idea-card.schema.js +17 -0
  518. package/dist/schemas/community/community-movie-idea-input.schema.d.ts +22 -0
  519. package/dist/schemas/community/community-movie-idea-input.schema.js +14 -0
  520. package/dist/schemas/community/community-movie-idea-structured.schema.d.ts +34 -0
  521. package/dist/schemas/community/community-movie-idea-structured.schema.js +20 -0
  522. package/dist/schemas/community/community-movie-kg-seed.schema.d.ts +73 -0
  523. package/dist/schemas/community/community-movie-kg-seed.schema.js +84 -0
  524. package/dist/schemas/community/community-movie-stage-transitions.d.ts +15 -0
  525. package/dist/schemas/community/community-movie-stage-transitions.js +35 -0
  526. package/dist/schemas/community/community-movie-world-cta.schema.d.ts +75 -0
  527. package/dist/schemas/community/community-movie-world-cta.schema.js +83 -0
  528. package/dist/schemas/community/community-partner-offers.d.ts +13 -0
  529. package/dist/schemas/community/community-partner-offers.js +22 -0
  530. package/dist/schemas/community/community-partner.schema.d.ts +41 -0
  531. package/dist/schemas/community/community-partner.schema.js +23 -0
  532. package/dist/schemas/community/community-poll.schema.d.ts +54 -0
  533. package/dist/schemas/community/community-poll.schema.js +27 -0
  534. package/dist/schemas/community/community-production-operator.schema.d.ts +320 -0
  535. package/dist/schemas/community/community-production-operator.schema.js +91 -0
  536. package/dist/schemas/community/community-referral.schema.d.ts +155 -0
  537. package/dist/schemas/community/community-referral.schema.js +63 -0
  538. package/dist/schemas/community/community-signup-intake.constants.d.ts +13 -0
  539. package/dist/schemas/community/community-signup-intake.constants.js +134 -0
  540. package/dist/schemas/community/community-signup-intake.schema.d.ts +87 -0
  541. package/dist/schemas/community/community-signup-intake.schema.js +82 -0
  542. package/dist/schemas/community/community-slate.schema.d.ts +60 -0
  543. package/dist/schemas/community/community-slate.schema.js +29 -0
  544. package/dist/schemas/community/community-stage-transition.schema.d.ts +33 -0
  545. package/dist/schemas/community/community-stage-transition.schema.js +18 -0
  546. package/dist/schemas/community/community-suggestion.schema.d.ts +35 -0
  547. package/dist/schemas/community/community-suggestion.schema.js +24 -0
  548. package/dist/schemas/community/community-vote.schema.d.ts +24 -0
  549. package/dist/schemas/community/community-vote.schema.js +14 -0
  550. package/dist/schemas/community/community-waitlist.schema.d.ts +12 -0
  551. package/dist/schemas/community/community-waitlist.schema.js +10 -0
  552. package/dist/schemas/community/community-world-contribution.schema.d.ts +102 -0
  553. package/dist/schemas/community/community-world-contribution.schema.js +86 -0
  554. package/dist/schemas/community/credit-disclosure-variant.schema.d.ts +4 -0
  555. package/dist/schemas/community/credit-disclosure-variant.schema.js +6 -0
  556. package/dist/schemas/community/index.d.ts +56 -0
  557. package/dist/schemas/community/index.js +72 -0
  558. package/dist/schemas/cortex/bridge-envelope.schema.d.ts +70 -0
  559. package/dist/schemas/cortex/bridge-envelope.schema.js +77 -0
  560. package/dist/schemas/cortex/bridge-event-catalogue.d.ts +14 -0
  561. package/dist/schemas/cortex/bridge-event-catalogue.js +138 -0
  562. package/dist/schemas/cortex/bridge-events.schema.d.ts +14645 -0
  563. package/dist/schemas/cortex/bridge-events.schema.js +828 -0
  564. package/dist/schemas/cortex/bridge-readiness.schema.d.ts +27 -0
  565. package/dist/schemas/cortex/bridge-readiness.schema.js +15 -0
  566. package/dist/schemas/cortex/film-bridge-events.schema.d.ts +301 -0
  567. package/dist/schemas/cortex/film-bridge-events.schema.js +116 -0
  568. package/dist/schemas/cortex/index.d.ts +7 -0
  569. package/dist/schemas/cortex/index.js +23 -0
  570. package/dist/schemas/cortex/product-release-package.schema.d.ts +370 -0
  571. package/dist/schemas/cortex/product-release-package.schema.js +123 -0
  572. package/dist/schemas/cortex/proof-run-recorder.schema.d.ts +144 -0
  573. package/dist/schemas/cortex/proof-run-recorder.schema.js +43 -0
  574. package/dist/schemas/deployments/deployment-predict.schema.d.ts +165 -0
  575. package/dist/schemas/deployments/deployment-predict.schema.js +92 -0
  576. package/dist/schemas/deployments/deployment-preflight.schema.d.ts +184 -0
  577. package/dist/schemas/deployments/deployment-preflight.schema.js +80 -0
  578. package/dist/schemas/deployments/deployment-rollback.schema.d.ts +519 -0
  579. package/dist/schemas/deployments/deployment-rollback.schema.js +102 -0
  580. package/dist/schemas/deployments/deployment-status.schema.d.ts +1359 -0
  581. package/dist/schemas/deployments/deployment-status.schema.js +421 -0
  582. package/dist/schemas/film/film-artifact-kind.schema.d.ts +2 -0
  583. package/dist/schemas/film/film-artifact-kind.schema.js +6 -0
  584. package/dist/schemas/film/film-artifact-payloads.schema.d.ts +532 -0
  585. package/dist/schemas/film/film-artifact-payloads.schema.js +174 -0
  586. package/dist/schemas/film/film-asset-review.schema.d.ts +83 -0
  587. package/dist/schemas/film/film-asset-review.schema.js +42 -0
  588. package/dist/schemas/film/film-asset-rights-profile.schema.d.ts +68 -0
  589. package/dist/schemas/film/film-asset-rights-profile.schema.js +33 -0
  590. package/dist/schemas/film/film-character-pack-api.schema.d.ts +216 -0
  591. package/dist/schemas/film/film-character-pack-api.schema.js +51 -0
  592. package/dist/schemas/film/film-character-pack.schema.d.ts +51 -0
  593. package/dist/schemas/film/film-character-pack.schema.js +24 -0
  594. package/dist/schemas/film/film-character-scene-state.schema.d.ts +36 -0
  595. package/dist/schemas/film/film-character-scene-state.schema.js +18 -0
  596. package/dist/schemas/film/film-clip-api.schema.d.ts +379 -0
  597. package/dist/schemas/film/film-clip-api.schema.js +159 -0
  598. package/dist/schemas/film/film-clip-review-orchestration.schema.d.ts +234 -0
  599. package/dist/schemas/film/film-clip-review-orchestration.schema.js +23 -0
  600. package/dist/schemas/film/film-clip-review-scores.schema.d.ts +51 -0
  601. package/dist/schemas/film/film-clip-review-scores.schema.js +49 -0
  602. package/dist/schemas/film/film-clip-structured-review-artifact.schema.d.ts +175 -0
  603. package/dist/schemas/film/film-clip-structured-review-artifact.schema.js +15 -0
  604. package/dist/schemas/film/film-clip-structured-review.schema.d.ts +267 -0
  605. package/dist/schemas/film/film-clip-structured-review.schema.js +54 -0
  606. package/dist/schemas/film/film-clip.schema.d.ts +171 -0
  607. package/dist/schemas/film/film-clip.schema.js +64 -0
  608. package/dist/schemas/film/film-comfyui-workflow-create.schema.d.ts +39 -0
  609. package/dist/schemas/film/film-comfyui-workflow-create.schema.js +20 -0
  610. package/dist/schemas/film/film-comfyui-workflow-update.schema.d.ts +54 -0
  611. package/dist/schemas/film/film-comfyui-workflow-update.schema.js +28 -0
  612. package/dist/schemas/film/film-comfyui-workflow.schema.d.ts +188 -0
  613. package/dist/schemas/film/film-comfyui-workflow.schema.js +65 -0
  614. package/dist/schemas/film/film-creative-read-model.schema.d.ts +675 -0
  615. package/dist/schemas/film/film-creative-read-model.schema.js +66 -0
  616. package/dist/schemas/film/film-deliverable.schema.d.ts +656 -0
  617. package/dist/schemas/film/film-deliverable.schema.js +252 -0
  618. package/dist/schemas/film/film-edit-sequence.schema.d.ts +1112 -0
  619. package/dist/schemas/film/film-edit-sequence.schema.js +106 -0
  620. package/dist/schemas/film/film-elevenlabs-voice.schema.d.ts +126 -0
  621. package/dist/schemas/film/film-elevenlabs-voice.schema.js +56 -0
  622. package/dist/schemas/film/film-enqueue-multi-take.schema.d.ts +57 -0
  623. package/dist/schemas/film/film-enqueue-multi-take.schema.js +24 -0
  624. package/dist/schemas/film/film-export.schema.d.ts +78 -0
  625. package/dist/schemas/film/film-export.schema.js +37 -0
  626. package/dist/schemas/film/film-generation-dashboard.schema.d.ts +1779 -0
  627. package/dist/schemas/film/film-generation-dashboard.schema.js +222 -0
  628. package/dist/schemas/film/film-generation-package.schema.d.ts +1665 -0
  629. package/dist/schemas/film/film-generation-package.schema.js +116 -0
  630. package/dist/schemas/film/film-generation-task.schema.d.ts +1086 -0
  631. package/dist/schemas/film/film-generation-task.schema.js +159 -0
  632. package/dist/schemas/film/film-hydrate.schema.d.ts +46 -0
  633. package/dist/schemas/film/film-hydrate.schema.js +23 -0
  634. package/dist/schemas/film/film-keyframe-brief.schema.d.ts +99 -0
  635. package/dist/schemas/film/film-keyframe-brief.schema.js +29 -0
  636. package/dist/schemas/film/film-keyframe-review.schema.d.ts +186 -0
  637. package/dist/schemas/film/film-keyframe-review.schema.js +25 -0
  638. package/dist/schemas/film/film-keyframe.schema.d.ts +214 -0
  639. package/dist/schemas/film/film-keyframe.schema.js +43 -0
  640. package/dist/schemas/film/film-lessons-manifest.schema.d.ts +589 -0
  641. package/dist/schemas/film/film-lessons-manifest.schema.js +83 -0
  642. package/dist/schemas/film/film-llm-field.d.ts +22 -0
  643. package/dist/schemas/film/film-llm-field.js +78 -0
  644. package/dist/schemas/film/film-location-pack.schema.d.ts +51 -0
  645. package/dist/schemas/film/film-location-pack.schema.js +24 -0
  646. package/dist/schemas/film/film-marketing-creative-api.schema.d.ts +276 -0
  647. package/dist/schemas/film/film-marketing-creative-api.schema.js +47 -0
  648. package/dist/schemas/film/film-marketing-creative.schema.d.ts +74 -0
  649. package/dist/schemas/film/film-marketing-creative.schema.js +58 -0
  650. package/dist/schemas/film/film-marketing-format-preset.schema.d.ts +22 -0
  651. package/dist/schemas/film/film-marketing-format-preset.schema.js +71 -0
  652. package/dist/schemas/film/film-media-asset-file.schema.d.ts +59 -0
  653. package/dist/schemas/film/film-media-asset-file.schema.js +45 -0
  654. package/dist/schemas/film/film-media-asset-promotion-api.schema.d.ts +219 -0
  655. package/dist/schemas/film/film-media-asset-promotion-api.schema.js +29 -0
  656. package/dist/schemas/film/film-media-asset-review-api.schema.d.ts +431 -0
  657. package/dist/schemas/film/film-media-asset-review-api.schema.js +41 -0
  658. package/dist/schemas/film/film-media-asset.schema.d.ts +131 -0
  659. package/dist/schemas/film/film-media-asset.schema.js +94 -0
  660. package/dist/schemas/film/film-media-kg.schema.d.ts +86 -0
  661. package/dist/schemas/film/film-media-kg.schema.js +70 -0
  662. package/dist/schemas/film/film-ofi-report.schema.d.ts +437 -0
  663. package/dist/schemas/film/film-ofi-report.schema.js +65 -0
  664. package/dist/schemas/film/film-otio-sidecar.schema.d.ts +136 -0
  665. package/dist/schemas/film/film-otio-sidecar.schema.js +28 -0
  666. package/dist/schemas/film/film-production-coverage.schema.d.ts +179 -0
  667. package/dist/schemas/film/film-production-coverage.schema.js +123 -0
  668. package/dist/schemas/film/film-production-graph.schema.d.ts +273 -0
  669. package/dist/schemas/film/film-production-graph.schema.js +43 -0
  670. package/dist/schemas/film/film-production-read-model.schema.d.ts +1038 -0
  671. package/dist/schemas/film/film-production-read-model.schema.js +65 -0
  672. package/dist/schemas/film/film-production-style.schema.d.ts +31 -0
  673. package/dist/schemas/film/film-production-style.schema.js +50 -0
  674. package/dist/schemas/film/film-project.schema.d.ts +115 -0
  675. package/dist/schemas/film/film-project.schema.js +50 -0
  676. package/dist/schemas/film/film-prompt-compiler.schema.d.ts +346 -0
  677. package/dist/schemas/film/film-prompt-compiler.schema.js +116 -0
  678. package/dist/schemas/film/film-prompt-performance.schema.d.ts +77 -0
  679. package/dist/schemas/film/film-prompt-performance.schema.js +37 -0
  680. package/dist/schemas/film/film-prompt-repair.schema.d.ts +41 -0
  681. package/dist/schemas/film/film-prompt-repair.schema.js +36 -0
  682. package/dist/schemas/film/film-prompt.schema.d.ts +265 -0
  683. package/dist/schemas/film/film-prompt.schema.js +47 -0
  684. package/dist/schemas/film/film-provider-hints.schema.d.ts +105 -0
  685. package/dist/schemas/film/film-provider-hints.schema.js +50 -0
  686. package/dist/schemas/film/film-provider-job.schema.d.ts +320 -0
  687. package/dist/schemas/film/film-provider-job.schema.js +181 -0
  688. package/dist/schemas/film/film-provider.schema.d.ts +100 -0
  689. package/dist/schemas/film/film-provider.schema.js +51 -0
  690. package/dist/schemas/film/film-queue-enqueue.schema.d.ts +423 -0
  691. package/dist/schemas/film/film-queue-enqueue.schema.js +98 -0
  692. package/dist/schemas/film/film-queue-task-detail.schema.d.ts +981 -0
  693. package/dist/schemas/film/film-queue-task-detail.schema.js +57 -0
  694. package/dist/schemas/film/film-reference-pack.schema.d.ts +48 -0
  695. package/dist/schemas/film/film-reference-pack.schema.js +23 -0
  696. package/dist/schemas/film/film-regeneration-plan.schema.d.ts +124 -0
  697. package/dist/schemas/film/film-regeneration-plan.schema.js +62 -0
  698. package/dist/schemas/film/film-resolve-ingest.schema.d.ts +278 -0
  699. package/dist/schemas/film/film-resolve-ingest.schema.js +35 -0
  700. package/dist/schemas/film/film-resolve-timeline-report.schema.d.ts +323 -0
  701. package/dist/schemas/film/film-resolve-timeline-report.schema.js +43 -0
  702. package/dist/schemas/film/film-review.schema.d.ts +65 -0
  703. package/dist/schemas/film/film-review.schema.js +47 -0
  704. package/dist/schemas/film/film-scene.schema.d.ts +175 -0
  705. package/dist/schemas/film/film-scene.schema.js +38 -0
  706. package/dist/schemas/film/film-screenplay.schema.d.ts +215 -0
  707. package/dist/schemas/film/film-screenplay.schema.js +38 -0
  708. package/dist/schemas/film/film-shot-risk-assessment.schema.d.ts +27 -0
  709. package/dist/schemas/film/film-shot-risk-assessment.schema.js +16 -0
  710. package/dist/schemas/film/film-shot-risk-level.schema.d.ts +5 -0
  711. package/dist/schemas/film/film-shot-risk-level.schema.js +7 -0
  712. package/dist/schemas/film/film-shot.schema.d.ts +564 -0
  713. package/dist/schemas/film/film-shot.schema.js +96 -0
  714. package/dist/schemas/film/film-still-review-artifact.schema.d.ts +154 -0
  715. package/dist/schemas/film/film-still-review-artifact.schema.js +15 -0
  716. package/dist/schemas/film/film-still-review-scores.schema.d.ts +161 -0
  717. package/dist/schemas/film/film-still-review-scores.schema.js +48 -0
  718. package/dist/schemas/film/film-take-comparison.schema.d.ts +437 -0
  719. package/dist/schemas/film/film-take-comparison.schema.js +73 -0
  720. package/dist/schemas/film/film-training-dataset-api.schema.d.ts +641 -0
  721. package/dist/schemas/film/film-training-dataset-api.schema.js +86 -0
  722. package/dist/schemas/film/film-training-dataset.schema.d.ts +171 -0
  723. package/dist/schemas/film/film-training-dataset.schema.js +69 -0
  724. package/dist/schemas/film/film-wardrobe-state.schema.d.ts +42 -0
  725. package/dist/schemas/film/film-wardrobe-state.schema.js +21 -0
  726. package/dist/schemas/film/film-workbench.schema.d.ts +379 -0
  727. package/dist/schemas/film/film-workbench.schema.js +58 -0
  728. package/dist/schemas/film/film-workflow-lineage.schema.d.ts +166 -0
  729. package/dist/schemas/film/film-workflow-lineage.schema.js +83 -0
  730. package/dist/schemas/film/film-world-ontology.schema.d.ts +250 -0
  731. package/dist/schemas/film/film-world-ontology.schema.js +79 -0
  732. package/dist/schemas/film/image-generation-provider.schema.d.ts +392 -0
  733. package/dist/schemas/film/image-generation-provider.schema.js +55 -0
  734. package/dist/schemas/film/index.d.ts +81 -0
  735. package/dist/schemas/film/index.js +97 -0
  736. package/dist/schemas/github/branches.schema.d.ts +61 -0
  737. package/dist/schemas/github/branches.schema.js +17 -0
  738. package/dist/schemas/github/issues.schema.d.ts +145 -0
  739. package/dist/schemas/github/issues.schema.js +27 -0
  740. package/dist/schemas/github/pulls.schema.d.ts +173 -0
  741. package/dist/schemas/github/pulls.schema.js +30 -0
  742. package/dist/schemas/github/repo-create.schema.d.ts +21 -0
  743. package/dist/schemas/github/repo-create.schema.js +11 -0
  744. package/dist/schemas/github/webhook-delivery.schema.d.ts +729 -0
  745. package/dist/schemas/github/webhook-delivery.schema.js +142 -0
  746. package/dist/schemas/github/workflow-runs.schema.d.ts +173 -0
  747. package/dist/schemas/github/workflow-runs.schema.js +52 -0
  748. package/dist/schemas/github-pr-create.schema.d.ts +175 -0
  749. package/dist/schemas/github-pr-create.schema.js +70 -0
  750. package/dist/schemas/github-status.schema.d.ts +418 -0
  751. package/dist/schemas/github-status.schema.js +122 -0
  752. package/dist/schemas/graph/edge-v2.schema.d.ts +85 -0
  753. package/dist/schemas/graph/edge-v2.schema.js +164 -0
  754. package/dist/schemas/graph/graph-query-v2.schema.d.ts +449 -0
  755. package/dist/schemas/graph/graph-query-v2.schema.js +83 -0
  756. package/dist/schemas/graph/index.d.ts +14 -0
  757. package/dist/schemas/graph/index.js +30 -0
  758. package/dist/schemas/graph/node-v2.schema.d.ts +68 -0
  759. package/dist/schemas/graph/node-v2.schema.js +120 -0
  760. package/dist/schemas/graph/sql-security-findings.schema.d.ts +71 -0
  761. package/dist/schemas/graph/sql-security-findings.schema.js +40 -0
  762. package/dist/schemas/guardian/guardian-score.schema.d.ts +13 -0
  763. package/dist/schemas/guardian/guardian-score.schema.js +24 -0
  764. package/dist/schemas/guardian/validate.schema.d.ts +51 -0
  765. package/dist/schemas/guardian/validate.schema.js +36 -0
  766. package/dist/schemas/implement/nextjs-scaffold-manifest.schema.d.ts +44 -0
  767. package/dist/schemas/implement/nextjs-scaffold-manifest.schema.js +25 -0
  768. package/dist/schemas/implement/patch-validation-diagnostic.schema.d.ts +17 -0
  769. package/dist/schemas/implement/patch-validation-diagnostic.schema.js +19 -0
  770. package/dist/schemas/implement-patch-detail.schema.d.ts +344 -0
  771. package/dist/schemas/implement-patch-detail.schema.js +78 -0
  772. package/dist/schemas/implement-patch-lifecycle.schema.d.ts +66 -0
  773. package/dist/schemas/implement-patch-lifecycle.schema.js +317 -0
  774. package/dist/schemas/implement-patch-task.schema.d.ts +29 -0
  775. package/dist/schemas/implement-patch-task.schema.js +26 -0
  776. package/dist/schemas/implement-patch.schema.d.ts +2955 -0
  777. package/dist/schemas/implement-patch.schema.js +573 -0
  778. package/dist/schemas/implement-quarantine.schema.d.ts +215 -0
  779. package/dist/schemas/implement-quarantine.schema.js +71 -0
  780. package/dist/schemas/index.d.ts +5249 -0
  781. package/dist/schemas/index.js +1649 -0
  782. package/dist/schemas/integrations/cursor-execution.schema.d.ts +530 -0
  783. package/dist/schemas/integrations/cursor-execution.schema.js +104 -0
  784. package/dist/schemas/integrations.d.ts +426 -0
  785. package/dist/schemas/integrations.js +149 -0
  786. package/dist/schemas/knowledge/api-retry-kg-persistence.schema.d.ts +130 -0
  787. package/dist/schemas/knowledge/api-retry-kg-persistence.schema.js +28 -0
  788. package/dist/schemas/knowledge/constitution-retry-kg-persistence.schema.d.ts +46 -0
  789. package/dist/schemas/knowledge/constitution-retry-kg-persistence.schema.js +12 -0
  790. package/dist/schemas/knowledge/coverage.schema.d.ts +98 -0
  791. package/dist/schemas/knowledge/coverage.schema.js +27 -0
  792. package/dist/schemas/knowledge/duplicates.schema.d.ts +62 -0
  793. package/dist/schemas/knowledge/duplicates.schema.js +23 -0
  794. package/dist/schemas/knowledge/graph-query.schema.d.ts +9 -0
  795. package/dist/schemas/knowledge/graph-query.schema.js +7 -0
  796. package/dist/schemas/knowledge/guardian-retry-kg-persistence.schema.d.ts +40 -0
  797. package/dist/schemas/knowledge/guardian-retry-kg-persistence.schema.js +12 -0
  798. package/dist/schemas/knowledge/implement-retry-kg-persistence.schema.d.ts +49 -0
  799. package/dist/schemas/knowledge/implement-retry-kg-persistence.schema.js +14 -0
  800. package/dist/schemas/knowledge/kg-generation-writers.schema.d.ts +338 -0
  801. package/dist/schemas/knowledge/kg-generation-writers.schema.js +73 -0
  802. package/dist/schemas/knowledge/kg-relations.schema.d.ts +70 -0
  803. package/dist/schemas/knowledge/kg-relations.schema.js +157 -0
  804. package/dist/schemas/knowledge/knowledge-graph-summary.schema.d.ts +170 -0
  805. package/dist/schemas/knowledge/knowledge-graph-summary.schema.js +43 -0
  806. package/dist/schemas/knowledge/knowledge-node-provenance.schema.d.ts +41 -0
  807. package/dist/schemas/knowledge/knowledge-node-provenance.schema.js +21 -0
  808. package/dist/schemas/knowledge/knowledge-retry-kg-persistence.schema.d.ts +76 -0
  809. package/dist/schemas/knowledge/knowledge-retry-kg-persistence.schema.js +14 -0
  810. package/dist/schemas/knowledge/knowledge-search.schema.d.ts +29 -0
  811. package/dist/schemas/knowledge/knowledge-search.schema.js +17 -0
  812. package/dist/schemas/knowledge/lineage.schema.d.ts +70 -0
  813. package/dist/schemas/knowledge/lineage.schema.js +28 -0
  814. package/dist/schemas/knowledge/project-brief-knowledge-node.schema.d.ts +45 -0
  815. package/dist/schemas/knowledge/project-brief-knowledge-node.schema.js +30 -0
  816. package/dist/schemas/knowledge/review-readiness.schema.d.ts +104 -0
  817. package/dist/schemas/knowledge/review-readiness.schema.js +30 -0
  818. package/dist/schemas/knowledge/sync-prs.schema.d.ts +54 -0
  819. package/dist/schemas/knowledge/sync-prs.schema.js +21 -0
  820. package/dist/schemas/knowledge/tasks-retry-kg-persistence.schema.d.ts +37 -0
  821. package/dist/schemas/knowledge/tasks-retry-kg-persistence.schema.js +14 -0
  822. package/dist/schemas/knowledge/ui-retry-kg-persistence.schema.d.ts +58 -0
  823. package/dist/schemas/knowledge/ui-retry-kg-persistence.schema.js +14 -0
  824. package/dist/schemas/knowledge-graph-response.schema.d.ts +376 -0
  825. package/dist/schemas/knowledge-graph-response.schema.js +56 -0
  826. package/dist/schemas/logging/logger-context.schema.d.ts +21 -0
  827. package/dist/schemas/logging/logger-context.schema.js +11 -0
  828. package/dist/schemas/metrics/project-kpi-summary.schema.d.ts +368 -0
  829. package/dist/schemas/metrics/project-kpi-summary.schema.js +80 -0
  830. package/dist/schemas/orchestration/durable-stage-progress.schema.d.ts +57 -0
  831. package/dist/schemas/orchestration/durable-stage-progress.schema.js +34 -0
  832. package/dist/schemas/orchestration-execution.d.ts +163 -0
  833. package/dist/schemas/orchestration-execution.js +89 -0
  834. package/dist/schemas/project-bmad-settings-patch.schema.d.ts +66 -0
  835. package/dist/schemas/project-bmad-settings-patch.schema.js +29 -0
  836. package/dist/schemas/project-kind.schema.d.ts +70 -0
  837. package/dist/schemas/project-kind.schema.js +38 -0
  838. package/dist/schemas/project-team.d.ts +48 -0
  839. package/dist/schemas/project-team.js +52 -0
  840. package/dist/schemas/projects/nl-kg-v2-enabled.schema.d.ts +10 -0
  841. package/dist/schemas/projects/nl-kg-v2-enabled.schema.js +16 -0
  842. package/dist/schemas/provider-sentinel/cleanup-manifest.schema.d.ts +78 -0
  843. package/dist/schemas/provider-sentinel/cleanup-manifest.schema.js +27 -0
  844. package/dist/schemas/provider-sentinel/execution-evidence.schema.d.ts +228 -0
  845. package/dist/schemas/provider-sentinel/execution-evidence.schema.js +78 -0
  846. package/dist/schemas/provider-sentinel/film-media-sentinel-config.schema.d.ts +55 -0
  847. package/dist/schemas/provider-sentinel/film-media-sentinel-config.schema.js +33 -0
  848. package/dist/schemas/provider-sentinel/index.d.ts +6 -0
  849. package/dist/schemas/provider-sentinel/index.js +22 -0
  850. package/dist/schemas/provider-sentinel/provider-sentinel-common.schema.d.ts +8 -0
  851. package/dist/schemas/provider-sentinel/provider-sentinel-common.schema.js +9 -0
  852. package/dist/schemas/provider-sentinel/provider-sentinel-result.schema.d.ts +743 -0
  853. package/dist/schemas/provider-sentinel/provider-sentinel-result.schema.js +126 -0
  854. package/dist/schemas/provider-sentinel/text-durable-sentinel-config.schema.d.ts +51 -0
  855. package/dist/schemas/provider-sentinel/text-durable-sentinel-config.schema.js +30 -0
  856. package/dist/schemas/publication/manuscript-export.schema.d.ts +249 -0
  857. package/dist/schemas/publication/manuscript-export.schema.js +47 -0
  858. package/dist/schemas/repo/repo-scan-run.schema.d.ts +60 -0
  859. package/dist/schemas/repo/repo-scan-run.schema.js +34 -0
  860. package/dist/schemas/repos/project-repo-link.schema.d.ts +148 -0
  861. package/dist/schemas/repos/project-repo-link.schema.js +28 -0
  862. package/dist/schemas/repos/repo-readiness.schema.d.ts +26 -0
  863. package/dist/schemas/repos/repo-readiness.schema.js +23 -0
  864. package/dist/schemas/repos/repo-scan.schema.d.ts +379 -0
  865. package/dist/schemas/repos/repo-scan.schema.js +98 -0
  866. package/dist/schemas/review/review-coverage.schema.d.ts +2238 -0
  867. package/dist/schemas/review/review-coverage.schema.js +182 -0
  868. package/dist/schemas/review/review-policy.schema.d.ts +87 -0
  869. package/dist/schemas/review/review-policy.schema.js +42 -0
  870. package/dist/schemas/runtime/index.d.ts +6 -0
  871. package/dist/schemas/runtime/index.js +22 -0
  872. package/dist/schemas/runtime/platform-health.schema.d.ts +83 -0
  873. package/dist/schemas/runtime/platform-health.schema.js +31 -0
  874. package/dist/schemas/runtime/probe-harness-gen.schema.d.ts +456 -0
  875. package/dist/schemas/runtime/probe-harness-gen.schema.js +91 -0
  876. package/dist/schemas/runtime/probe.schema.d.ts +1117 -0
  877. package/dist/schemas/runtime/probe.schema.js +278 -0
  878. package/dist/schemas/runtime/runtime-knowledge-node.schema.d.ts +862 -0
  879. package/dist/schemas/runtime/runtime-knowledge-node.schema.js +29 -0
  880. package/dist/schemas/runtime/runtime-loop.schema.d.ts +175 -0
  881. package/dist/schemas/runtime/runtime-loop.schema.js +84 -0
  882. package/dist/schemas/runtime/runtime-run.schema.d.ts +378 -0
  883. package/dist/schemas/runtime/runtime-run.schema.js +30 -0
  884. package/dist/schemas/security/index.d.ts +3 -0
  885. package/dist/schemas/security/index.js +19 -0
  886. package/dist/schemas/security/pre-pr-security-gate.schema.d.ts +486 -0
  887. package/dist/schemas/security/pre-pr-security-gate.schema.js +13 -0
  888. package/dist/schemas/security/security-finding.schema.d.ts +546 -0
  889. package/dist/schemas/security/security-finding.schema.js +138 -0
  890. package/dist/schemas/security/security-knowledge-node.schema.d.ts +285 -0
  891. package/dist/schemas/security/security-knowledge-node.schema.js +21 -0
  892. package/dist/schemas/task-complexity.schema.d.ts +3 -0
  893. package/dist/schemas/task-complexity.schema.js +6 -0
  894. package/dist/schemas/task-evidence-expectations.schema.d.ts +174 -0
  895. package/dist/schemas/task-evidence-expectations.schema.js +35 -0
  896. package/dist/schemas/traceability/index.d.ts +2 -0
  897. package/dist/schemas/traceability/index.js +18 -0
  898. package/dist/schemas/traceability/neuraloom-traceability-file.schema.d.ts +593 -0
  899. package/dist/schemas/traceability/neuraloom-traceability-file.schema.js +93 -0
  900. package/dist/schemas/traceability/traceability-graph.schema.d.ts +712 -0
  901. package/dist/schemas/traceability/traceability-graph.schema.js +112 -0
  902. package/dist/schemas/workflow/build-knowledge.schema.d.ts +672 -0
  903. package/dist/schemas/workflow/build-knowledge.schema.js +92 -0
  904. package/dist/schemas/workflow/build-truth-read-model.schema.d.ts +1218 -0
  905. package/dist/schemas/workflow/build-truth-read-model.schema.js +42 -0
  906. package/dist/schemas/workflow/canonicalization-decision.schema.d.ts +74 -0
  907. package/dist/schemas/workflow/canonicalization-decision.schema.js +22 -0
  908. package/dist/schemas/workflow/code-reality-artifacts.schema.d.ts +914 -0
  909. package/dist/schemas/workflow/code-reality-artifacts.schema.js +150 -0
  910. package/dist/schemas/workflow/code-reality-read-model.schema.d.ts +12708 -0
  911. package/dist/schemas/workflow/code-reality-read-model.schema.js +237 -0
  912. package/dist/schemas/workflow/code-reality-task-traceability.schema.d.ts +124 -0
  913. package/dist/schemas/workflow/code-reality-task-traceability.schema.js +107 -0
  914. package/dist/schemas/workflow/command-center-spine.schema.d.ts +62 -0
  915. package/dist/schemas/workflow/command-center-spine.schema.js +58 -0
  916. package/dist/schemas/workflow/context-bundle.schema.d.ts +111 -0
  917. package/dist/schemas/workflow/context-bundle.schema.js +62 -0
  918. package/dist/schemas/workflow/context-contamination.schema.d.ts +284 -0
  919. package/dist/schemas/workflow/context-contamination.schema.js +65 -0
  920. package/dist/schemas/workflow/deployment-evidence.schema.d.ts +269 -0
  921. package/dist/schemas/workflow/deployment-evidence.schema.js +55 -0
  922. package/dist/schemas/workflow/doc-draft-artifact.schema.d.ts +126 -0
  923. package/dist/schemas/workflow/doc-draft-artifact.schema.js +52 -0
  924. package/dist/schemas/workflow/domain-acceptance.schema.d.ts +206 -0
  925. package/dist/schemas/workflow/domain-acceptance.schema.js +62 -0
  926. package/dist/schemas/workflow/engineering-context.schema.d.ts +2235 -0
  927. package/dist/schemas/workflow/engineering-context.schema.js +566 -0
  928. package/dist/schemas/workflow/existing-capability-classification.schema.d.ts +79 -0
  929. package/dist/schemas/workflow/existing-capability-classification.schema.js +28 -0
  930. package/dist/schemas/workflow/existing-codebase-context.schema.d.ts +865 -0
  931. package/dist/schemas/workflow/existing-codebase-context.schema.js +56 -0
  932. package/dist/schemas/workflow/findings-register.schema.d.ts +148 -0
  933. package/dist/schemas/workflow/findings-register.schema.js +35 -0
  934. package/dist/schemas/workflow/implement-first-batch.schema.d.ts +190 -0
  935. package/dist/schemas/workflow/implement-first-batch.schema.js +49 -0
  936. package/dist/schemas/workflow/implement-gate-status.schema.d.ts +823 -0
  937. package/dist/schemas/workflow/implement-gate-status.schema.js +94 -0
  938. package/dist/schemas/workflow/implement-stale-batch-repair.schema.d.ts +71 -0
  939. package/dist/schemas/workflow/implement-stale-batch-repair.schema.js +28 -0
  940. package/dist/schemas/workflow/implement-task-guard.schema.d.ts +27 -0
  941. package/dist/schemas/workflow/implement-task-guard.schema.js +35 -0
  942. package/dist/schemas/workflow/implementation-packet.schema.d.ts +200 -0
  943. package/dist/schemas/workflow/implementation-packet.schema.js +88 -0
  944. package/dist/schemas/workflow/import-validity.schema.d.ts +177 -0
  945. package/dist/schemas/workflow/import-validity.schema.js +71 -0
  946. package/dist/schemas/workflow/index.d.ts +14 -0
  947. package/dist/schemas/workflow/index.js +30 -0
  948. package/dist/schemas/workflow/ingest-dashboard.schema.d.ts +1094 -0
  949. package/dist/schemas/workflow/ingest-dashboard.schema.js +76 -0
  950. package/dist/schemas/workflow/ingest-gate.schema.d.ts +133 -0
  951. package/dist/schemas/workflow/ingest-gate.schema.js +27 -0
  952. package/dist/schemas/workflow/ingest-inventory.schema.d.ts +203 -0
  953. package/dist/schemas/workflow/ingest-inventory.schema.js +52 -0
  954. package/dist/schemas/workflow/knowledge-graph-result.schema.d.ts +90 -0
  955. package/dist/schemas/workflow/knowledge-graph-result.schema.js +37 -0
  956. package/dist/schemas/workflow/patch-file-scope-policy.schema.d.ts +62 -0
  957. package/dist/schemas/workflow/patch-file-scope-policy.schema.js +38 -0
  958. package/dist/schemas/workflow/patch-review-result.schema.d.ts +139 -0
  959. package/dist/schemas/workflow/patch-review-result.schema.js +58 -0
  960. package/dist/schemas/workflow/plan-approval.schema.d.ts +184 -0
  961. package/dist/schemas/workflow/plan-approval.schema.js +102 -0
  962. package/dist/schemas/workflow/product-readiness-response.schema.d.ts +307 -0
  963. package/dist/schemas/workflow/product-readiness-response.schema.js +81 -0
  964. package/dist/schemas/workflow/product-realization.schema.d.ts +259 -0
  965. package/dist/schemas/workflow/product-realization.schema.js +207 -0
  966. package/dist/schemas/workflow/product-route-manifest.schema.d.ts +785 -0
  967. package/dist/schemas/workflow/product-route-manifest.schema.js +161 -0
  968. package/dist/schemas/workflow/repair-specify-gate.schema.d.ts +33 -0
  969. package/dist/schemas/workflow/repair-specify-gate.schema.js +13 -0
  970. package/dist/schemas/workflow/repo-intel-snapshot.schema.d.ts +471 -0
  971. package/dist/schemas/workflow/repo-intel-snapshot.schema.js +98 -0
  972. package/dist/schemas/workflow/repo-policy-snapshot.schema.d.ts +365 -0
  973. package/dist/schemas/workflow/repo-policy-snapshot.schema.js +83 -0
  974. package/dist/schemas/workflow/review-acceptance.schema.d.ts +182 -0
  975. package/dist/schemas/workflow/review-acceptance.schema.js +66 -0
  976. package/dist/schemas/workflow/review-release-decision-operator.schema.d.ts +220 -0
  977. package/dist/schemas/workflow/review-release-decision-operator.schema.js +65 -0
  978. package/dist/schemas/workflow/route-manifest.schema.d.ts +239 -0
  979. package/dist/schemas/workflow/route-manifest.schema.js +82 -0
  980. package/dist/schemas/workflow/runtime-contract.schema.d.ts +384 -0
  981. package/dist/schemas/workflow/runtime-contract.schema.js +71 -0
  982. package/dist/schemas/workflow/schema-page-read-model.schema.d.ts +185 -0
  983. package/dist/schemas/workflow/schema-page-read-model.schema.js +29 -0
  984. package/dist/schemas/workflow/ship-closure.schema.d.ts +516 -0
  985. package/dist/schemas/workflow/ship-closure.schema.js +96 -0
  986. package/dist/schemas/workflow/software-workflow-lineage.schema.d.ts +384 -0
  987. package/dist/schemas/workflow/software-workflow-lineage.schema.js +54 -0
  988. package/dist/schemas/workflow/specify-mutation-health.schema.d.ts +72 -0
  989. package/dist/schemas/workflow/specify-mutation-health.schema.js +24 -0
  990. package/dist/schemas/workflow/step-evidence-resolution.schema.d.ts +49 -0
  991. package/dist/schemas/workflow/step-evidence-resolution.schema.js +36 -0
  992. package/dist/schemas/workflow/step-gate.schema.d.ts +312 -0
  993. package/dist/schemas/workflow/step-gate.schema.js +90 -0
  994. package/dist/schemas/workflow/task-capsule.schema.d.ts +414 -0
  995. package/dist/schemas/workflow/task-capsule.schema.js +99 -0
  996. package/dist/schemas/workflow/tasks-github-sync.schema.d.ts +60 -0
  997. package/dist/schemas/workflow/tasks-github-sync.schema.js +24 -0
  998. package/dist/schemas/workflow/tasks-repair-stale-implementing.schema.d.ts +86 -0
  999. package/dist/schemas/workflow/tasks-repair-stale-implementing.schema.js +38 -0
  1000. package/dist/schemas/workflow/tasks-truth.schema.d.ts +616 -0
  1001. package/dist/schemas/workflow/tasks-truth.schema.js +76 -0
  1002. package/dist/schemas/workflow/tasks-unblock-implement-handoff.schema.d.ts +210 -0
  1003. package/dist/schemas/workflow/tasks-unblock-implement-handoff.schema.js +17 -0
  1004. package/dist/schemas/workflow/test-obligation-manifest.schema.d.ts +306 -0
  1005. package/dist/schemas/workflow/test-obligation-manifest.schema.js +131 -0
  1006. package/dist/schemas/workflow/workflow-doctor.schema.d.ts +942 -0
  1007. package/dist/schemas/workflow/workflow-doctor.schema.js +141 -0
  1008. package/dist/schemas/workflow/workflow-evidence.schema.d.ts +67 -0
  1009. package/dist/schemas/workflow/workflow-evidence.schema.js +23 -0
  1010. package/dist/schemas/workflow/workflow-intelligence-graph.schema.d.ts +415 -0
  1011. package/dist/schemas/workflow/workflow-intelligence-graph.schema.js +213 -0
  1012. package/dist/schemas/workflow/workflow-run-event.schema.d.ts +41 -0
  1013. package/dist/schemas/workflow/workflow-run-event.schema.js +55 -0
  1014. package/dist/schemas/workflow-ci-step-artifacts.schema.d.ts +60 -0
  1015. package/dist/schemas/workflow-ci-step-artifacts.schema.js +15 -0
  1016. package/dist/schemas/workflow-implement-read-model.schema.d.ts +86 -0
  1017. package/dist/schemas/workflow-implement-read-model.schema.js +22 -0
  1018. package/dist/schemas/workflow-knowledge-step-artifacts.schema.d.ts +60 -0
  1019. package/dist/schemas/workflow-knowledge-step-artifacts.schema.js +15 -0
  1020. package/dist/schemas/workflow-progression.d.ts +1955 -0
  1021. package/dist/schemas/workflow-progression.js +259 -0
  1022. package/dist/telemetry/index.d.ts +194 -0
  1023. package/dist/telemetry/index.js +93 -0
  1024. package/dist/transformation/canonical-semantic-model.d.ts +233 -0
  1025. package/dist/transformation/canonical-semantic-model.js +61 -0
  1026. package/dist/transformation/index.d.ts +6 -0
  1027. package/dist/transformation/index.js +22 -0
  1028. package/dist/transformation/transformation-registry.d.ts +136 -0
  1029. package/dist/transformation/transformation-registry.js +100 -0
  1030. package/dist/types/ai-responses.d.ts +98 -0
  1031. package/dist/types/ai-responses.js +42 -0
  1032. package/dist/types/ai.d.ts +4 -0
  1033. package/dist/types/ai.js +2 -0
  1034. package/dist/types/audiobook-embed.d.ts +22 -0
  1035. package/dist/types/audiobook-embed.js +2 -0
  1036. package/dist/types/audiobook.d.ts +30 -0
  1037. package/dist/types/audiobook.js +2 -0
  1038. package/dist/types/chapter-revision.types.d.ts +6 -0
  1039. package/dist/types/chapter-revision.types.js +6 -0
  1040. package/dist/types/ci.d.ts +14 -0
  1041. package/dist/types/ci.js +2 -0
  1042. package/dist/types/codebase.d.ts +309 -0
  1043. package/dist/types/codebase.js +83 -0
  1044. package/dist/types/community-credit-transaction-type.d.ts +2 -0
  1045. package/dist/types/community-credit-transaction-type.js +9 -0
  1046. package/dist/types/community-membership-tier.d.ts +2 -0
  1047. package/dist/types/community-membership-tier.js +4 -0
  1048. package/dist/types/community-operator-role.d.ts +9 -0
  1049. package/dist/types/community-operator-role.js +13 -0
  1050. package/dist/types/community-stage.d.ts +3 -0
  1051. package/dist/types/community-stage.js +19 -0
  1052. package/dist/types/graph-canvas.d.ts +109 -0
  1053. package/dist/types/graph-canvas.js +25 -0
  1054. package/dist/types/graph-question-mapping.d.ts +33 -0
  1055. package/dist/types/graph-question-mapping.js +36 -0
  1056. package/dist/types/index.d.ts +2187 -0
  1057. package/dist/types/index.js +53 -0
  1058. package/dist/types/manuscript-checks.d.ts +1 -0
  1059. package/dist/types/manuscript-checks.js +2 -0
  1060. package/dist/types/orchestration-execution.d.ts +16 -0
  1061. package/dist/types/orchestration-execution.js +5 -0
  1062. package/dist/types/product-readiness.d.ts +44 -0
  1063. package/dist/types/product-readiness.js +2 -0
  1064. package/dist/types/product-route-manifest.d.ts +5 -0
  1065. package/dist/types/product-route-manifest.js +21 -0
  1066. package/dist/types/project-capabilities.d.ts +20 -0
  1067. package/dist/types/project-capabilities.js +40 -0
  1068. package/dist/types/project-kind.d.ts +68 -0
  1069. package/dist/types/project-kind.js +216 -0
  1070. package/dist/types/pwa.d.ts +29 -0
  1071. package/dist/types/pwa.js +6 -0
  1072. package/dist/types/repo.d.ts +2 -0
  1073. package/dist/types/repo.js +2 -0
  1074. package/dist/types/resolve-model-policy-input.d.ts +37 -0
  1075. package/dist/types/resolve-model-policy-input.js +2 -0
  1076. package/dist/types/settings.d.ts +13 -0
  1077. package/dist/types/settings.js +20 -0
  1078. package/dist/types/supabase-generated.d.ts +1122 -0
  1079. package/dist/types/supabase-generated.js +13 -0
  1080. package/dist/types/workflow-action-panel.d.ts +41 -0
  1081. package/dist/types/workflow-action-panel.js +2 -0
  1082. package/dist/types/workflow-command-center.d.ts +50 -0
  1083. package/dist/types/workflow-command-center.js +6 -0
  1084. package/dist/types/workflow-completion.d.ts +154 -0
  1085. package/dist/types/workflow-completion.js +2 -0
  1086. package/dist/types/workflow-graph.d.ts +786 -0
  1087. package/dist/types/workflow-graph.js +119 -0
  1088. package/dist/ui/domain-templates.d.ts +35 -0
  1089. package/dist/ui/domain-templates.js +242 -0
  1090. package/dist/utils/github-closing-keywords.d.ts +8 -0
  1091. package/dist/utils/github-closing-keywords.js +27 -0
  1092. package/dist/utils/implement-pr-batch-policy.d.ts +17 -0
  1093. package/dist/utils/implement-pr-batch-policy.js +72 -0
  1094. package/dist/utils/implement-pr-batch.d.ts +19 -0
  1095. package/dist/utils/implement-pr-batch.js +95 -0
  1096. package/dist/utils/implement-pr-metadata.d.ts +32 -0
  1097. package/dist/utils/implement-pr-metadata.js +41 -0
  1098. package/dist/workflow/api-route-key-resolver.d.ts +11 -0
  1099. package/dist/workflow/api-route-key-resolver.js +51 -0
  1100. package/dist/workflow/assurance-selector-keys.d.ts +134 -0
  1101. package/dist/workflow/assurance-selector-keys.js +145 -0
  1102. package/dist/workflow/channel-registry.d.ts +959 -0
  1103. package/dist/workflow/channel-registry.js +1475 -0
  1104. package/dist/workflow/evaluate-existing-codebase-readiness.d.ts +28 -0
  1105. package/dist/workflow/evaluate-existing-codebase-readiness.js +329 -0
  1106. package/dist/workflow/evaluate-ingest-gate.d.ts +11 -0
  1107. package/dist/workflow/evaluate-ingest-gate.js +168 -0
  1108. package/dist/workflow/evaluate-repair-specify-gate.d.ts +10 -0
  1109. package/dist/workflow/evaluate-repair-specify-gate.js +93 -0
  1110. package/dist/workflow/existing-codebase-step-area-map.d.ts +4 -0
  1111. package/dist/workflow/existing-codebase-step-area-map.js +22 -0
  1112. package/dist/workflow/film-spine-nav-aliases.d.ts +23 -0
  1113. package/dist/workflow/film-spine-nav-aliases.js +76 -0
  1114. package/dist/workflow/index.d.ts +23 -0
  1115. package/dist/workflow/index.js +39 -0
  1116. package/dist/workflow/is-code-reality-semantically-mapped.d.ts +8 -0
  1117. package/dist/workflow/is-code-reality-semantically-mapped.js +21 -0
  1118. package/dist/workflow/is-repository-scan-complete.d.ts +11 -0
  1119. package/dist/workflow/is-repository-scan-complete.js +28 -0
  1120. package/dist/workflow/normalize-workflow-execution-mode.d.ts +4 -0
  1121. package/dist/workflow/normalize-workflow-execution-mode.js +16 -0
  1122. package/dist/workflow/project-kind-normalizer.d.ts +34 -0
  1123. package/dist/workflow/project-kind-normalizer.js +162 -0
  1124. package/dist/workflow/resolve-workflow-variant.d.ts +42 -0
  1125. package/dist/workflow/resolve-workflow-variant.js +101 -0
  1126. package/dist/workflow/step-id-canonical.d.ts +26 -0
  1127. package/dist/workflow/step-id-canonical.js +58 -0
  1128. package/dist/workflow/test-obligation-policy.d.ts +12 -0
  1129. package/dist/workflow/test-obligation-policy.js +82 -0
  1130. package/dist/workflow/test-policy-registry.d.ts +45 -0
  1131. package/dist/workflow/test-policy-registry.js +190 -0
  1132. package/dist/workflow/workflow-assurance-completion-probe-gates.d.ts +43 -0
  1133. package/dist/workflow/workflow-assurance-completion-probe-gates.js +88 -0
  1134. package/dist/workflow/workflow-assurance-manifest.d.ts +84 -0
  1135. package/dist/workflow/workflow-assurance-manifest.js +309 -0
  1136. package/dist/workflow/workflow-assurance-wiring-tiers.d.ts +13 -0
  1137. package/dist/workflow/workflow-assurance-wiring-tiers.js +32 -0
  1138. package/dist/workflow/workflow-doctor-closure.d.ts +16 -0
  1139. package/dist/workflow/workflow-doctor-closure.js +245 -0
  1140. package/package.json +83 -4
  1141. package/README.md +0 -3
@@ -0,0 +1,2187 @@
1
+ /**
2
+ * NeuraLoom Core Types - Single Source of Truth
3
+ * All types must be imported from this package across the entire monorepo
4
+ */
5
+ import { WORKFLOW_STEPS } from '../constants/workflow';
6
+ import type { AgentRole } from '../constants/AGENT_ROLES';
7
+ import type { ReactNode } from 'react';
8
+ export type UserRole = "owner" | "client" | "admin";
9
+ export type Json = string | number | boolean | null | {
10
+ [key: string]: Json | undefined;
11
+ } | Json[];
12
+ export interface User {
13
+ id: string;
14
+ email: string;
15
+ role: "owner" | "client" | "admin";
16
+ createdAt: string;
17
+ updatedAt: string;
18
+ profile?: UserProfile;
19
+ }
20
+ export interface UserProfile {
21
+ firstName?: string;
22
+ lastName?: string;
23
+ avatar?: string;
24
+ timezone?: string;
25
+ preferences: UserPreferences;
26
+ }
27
+ export interface UserPreferences {
28
+ theme: "light" | "dark" | "system";
29
+ notifications: NotificationSettings;
30
+ language: string;
31
+ }
32
+ export interface NotificationSettings {
33
+ email: boolean;
34
+ push: boolean;
35
+ inApp: boolean;
36
+ }
37
+ export interface Notification {
38
+ id: string;
39
+ message: string;
40
+ type: 'info' | 'success' | 'warning' | 'error';
41
+ projectId?: string;
42
+ readAt?: string;
43
+ createdAt: string;
44
+ }
45
+ export interface NotificationDisplay {
46
+ id: string;
47
+ title: string;
48
+ message: string;
49
+ type: 'info' | 'success' | 'warning' | 'error';
50
+ read: boolean;
51
+ createdAt: string;
52
+ projectId: string;
53
+ projectTitle: string;
54
+ url: string;
55
+ }
56
+ export interface NotificationsData {
57
+ notifications: NotificationDisplay[];
58
+ unreadCount: number;
59
+ }
60
+ export interface UserSettingsResponse {
61
+ profile: {
62
+ firstName?: string;
63
+ lastName?: string;
64
+ fullName?: string;
65
+ avatar?: string;
66
+ timezone?: string;
67
+ } | null;
68
+ settings: {
69
+ theme: 'light' | 'dark' | 'system';
70
+ language: string;
71
+ notifications: NotificationSettings;
72
+ };
73
+ }
74
+ export interface SimpleSettingsData {
75
+ settingsLastUpdated: string | null;
76
+ hasCustomSettings: boolean;
77
+ }
78
+ export interface TestResult {
79
+ provider: IntegrationProvider;
80
+ status: 'connected' | 'disconnected' | 'error' | 'timeout';
81
+ responseTime: number;
82
+ details?: Record<string, any>;
83
+ error?: string;
84
+ timestamp: string;
85
+ }
86
+ export interface GitHubAPICommit {
87
+ sha: string;
88
+ commit: {
89
+ author: {
90
+ name: string;
91
+ email: string;
92
+ date: string;
93
+ };
94
+ message: string;
95
+ };
96
+ stats?: {
97
+ additions: number;
98
+ deletions: number;
99
+ total: number;
100
+ };
101
+ files?: Array<{
102
+ filename: string;
103
+ status: string;
104
+ additions?: number;
105
+ deletions?: number;
106
+ changes?: number;
107
+ }>;
108
+ }
109
+ export interface GitHubAPIPR {
110
+ id: number;
111
+ number: number;
112
+ title: string;
113
+ body: string | null;
114
+ state: string;
115
+ user: {
116
+ login: string;
117
+ avatar_url: string;
118
+ };
119
+ head: {
120
+ ref: string;
121
+ sha: string;
122
+ };
123
+ base: {
124
+ ref: string;
125
+ };
126
+ createdAt: string;
127
+ updatedAt: string;
128
+ closedAt: string | null;
129
+ mergedAt: string | null;
130
+ url: string;
131
+ htmlUrl: string;
132
+ }
133
+ export interface GitHubAPIIssue {
134
+ id: number;
135
+ number: number;
136
+ title: string;
137
+ body: string | null;
138
+ state: string;
139
+ user: {
140
+ login: string;
141
+ avatarUrl: string;
142
+ };
143
+ labels: Array<{
144
+ name: string;
145
+ color: string;
146
+ }>;
147
+ createdAt: string;
148
+ updatedAt: string;
149
+ closedAt: string | null;
150
+ url: string;
151
+ htmlUrl: string;
152
+ pullRequest?: any;
153
+ }
154
+ export interface GitHubRepoAPI {
155
+ id: number;
156
+ name: string;
157
+ fullName: string;
158
+ description: string | null;
159
+ private: boolean;
160
+ htmlUrl: string;
161
+ cloneUrl: string;
162
+ sshUrl: string;
163
+ defaultBranch: string;
164
+ language: string | null;
165
+ stargazersCount: number;
166
+ forksCount: number;
167
+ openIssuesCount: number;
168
+ createdAt: string;
169
+ updatedAt: string;
170
+ pushedAt: string | null;
171
+ size: number;
172
+ archived: boolean;
173
+ disabled: boolean;
174
+ visibility: string;
175
+ topics: string[];
176
+ hasIssues: boolean;
177
+ hasProjects: boolean;
178
+ hasWiki: boolean;
179
+ hasPages: boolean;
180
+ hasDownloads: boolean;
181
+ permissions?: {
182
+ admin: boolean;
183
+ maintain: boolean;
184
+ push: boolean;
185
+ triage: boolean;
186
+ pull: boolean;
187
+ };
188
+ owner: {
189
+ login: string;
190
+ avatarUrl: string;
191
+ };
192
+ }
193
+ export interface SelectOption {
194
+ value: string;
195
+ label: string;
196
+ disabled?: boolean;
197
+ }
198
+ export interface GitHubRepoSelector {
199
+ id: number;
200
+ name: string;
201
+ fullName: string;
202
+ private: boolean;
203
+ description: string | null;
204
+ owner: {
205
+ login: string;
206
+ type: 'User' | 'Organization';
207
+ };
208
+ url: string;
209
+ }
210
+ /** GET /integrations/github/repos normalized row (NeuraLoom `mapRepo` / link dialog). */
211
+ export type GitHubIntegrationRepoOption = {
212
+ id: number;
213
+ name: string;
214
+ full_name: string;
215
+ fullName?: string;
216
+ private: boolean;
217
+ html_url: string;
218
+ owner: {
219
+ login: string;
220
+ type?: string;
221
+ };
222
+ default_branch?: string;
223
+ };
224
+ export interface SettingsData {
225
+ profile: {
226
+ id: string;
227
+ email: string;
228
+ firstName: string;
229
+ lastName: string;
230
+ fullName: string;
231
+ username: string;
232
+ avatar: string;
233
+ website: string;
234
+ bio: string;
235
+ location: string;
236
+ company: string;
237
+ timezone: string;
238
+ preferences: {
239
+ theme: 'light' | 'dark' | 'system';
240
+ language: string;
241
+ emailNotifications: boolean;
242
+ pushNotifications: boolean;
243
+ marketingEmails: boolean;
244
+ weeklyDigest: boolean;
245
+ };
246
+ };
247
+ integrations: Array<{
248
+ id: string;
249
+ provider: string;
250
+ status: string;
251
+ lastSync?: string;
252
+ }>;
253
+ security: {
254
+ twoFactorEnabled: boolean;
255
+ lastLoginAt: string;
256
+ loginCount: number;
257
+ suspiciousActivity: Array<{
258
+ id: string;
259
+ type: string;
260
+ timestamp: string;
261
+ ipAddress: string;
262
+ }>;
263
+ };
264
+ }
265
+ export interface SidebarItem {
266
+ id: string;
267
+ label: string;
268
+ href: string;
269
+ icon?: string;
270
+ badge?: string;
271
+ disabled?: boolean;
272
+ children?: SidebarItem[];
273
+ }
274
+ export interface ErrorBoundaryState {
275
+ hasError: boolean;
276
+ error?: Error;
277
+ }
278
+ export interface ErrorBoundaryProps {
279
+ children: any;
280
+ fallback?: any;
281
+ }
282
+ export type Theme = 'light' | 'dark' | 'system';
283
+ export interface ThemeContextType {
284
+ theme: Theme;
285
+ setTheme: (theme: Theme) => Promise<void>;
286
+ resolvedTheme: 'light' | 'dark';
287
+ isLoading: boolean;
288
+ }
289
+ export interface GeneratedConstitution {
290
+ id: string;
291
+ title: string;
292
+ content: string;
293
+ version: string;
294
+ principles: string[];
295
+ rules: string[];
296
+ createdAt: string;
297
+ }
298
+ export interface GeneratedSpec {
299
+ id: string;
300
+ title: string;
301
+ description: string;
302
+ requirements: string[];
303
+ acceptanceCriteria: string[];
304
+ priority: 'low' | 'medium' | 'high' | 'critical';
305
+ status: 'draft' | 'validated' | 'approved' | 'rejected';
306
+ createdAt: string;
307
+ }
308
+ export interface GeneratedTaskList {
309
+ tasks: GeneratedTask[];
310
+ totalTasks: number;
311
+ estimatedHours: number;
312
+ }
313
+ export interface GeneratedTask {
314
+ id: string;
315
+ title: string;
316
+ description: string;
317
+ type: 'feature' | 'bug' | 'enhancement' | 'documentation' | 'testing';
318
+ priority: 'low' | 'medium' | 'high' | 'critical';
319
+ estimatedHours: number;
320
+ dependencies: string[];
321
+ ownerRole?: string;
322
+ complexity?: 'low' | 'medium' | 'high' | 'very_high';
323
+ sourceArtifacts?: Array<{
324
+ type: string;
325
+ id: string;
326
+ }>;
327
+ }
328
+ export interface GeneratedCode {
329
+ id: string;
330
+ files: CodeFile[];
331
+ snippets: CodeSnippet[];
332
+ documentation: string;
333
+ dependencies: string[];
334
+ instructions: string;
335
+ createdAt: string;
336
+ }
337
+ /** Result of opening an implementation PR on a linked repo (ai_runs + git_pull_requests). */
338
+ export type ImplementationPrWriteResult = {
339
+ prUrl: string;
340
+ prNumber: number;
341
+ prBranch: string;
342
+ baseBranch: string;
343
+ commitSha: string;
344
+ /** Present when GitHub writes succeeded but Supabase ai_runs / git_pull_requests updates failed (non-throwing path). */
345
+ dbSync?: {
346
+ ok: boolean;
347
+ error?: string;
348
+ };
349
+ };
350
+ export interface GeneratedArchitecture {
351
+ id: string;
352
+ title: string;
353
+ description: string;
354
+ components: ArchitectureComponent[];
355
+ dataFlow: DataFlowDiagram[];
356
+ technologies: string[];
357
+ createdAt: string;
358
+ }
359
+ export interface ArchitectureComponent {
360
+ name: string;
361
+ type: 'frontend' | 'backend' | 'database' | 'service' | 'integration';
362
+ description: string;
363
+ responsibilities: string[];
364
+ interfaces: string[];
365
+ }
366
+ export interface DataFlowDiagram {
367
+ from: string;
368
+ to: string;
369
+ data: string;
370
+ protocol: string;
371
+ }
372
+ export interface CodeFile {
373
+ path: string;
374
+ content: string;
375
+ language: string;
376
+ description?: string;
377
+ }
378
+ export interface LlmResponse<T> {
379
+ data: T;
380
+ metadata: Record<string, any>;
381
+ }
382
+ export interface Project {
383
+ id: string;
384
+ title: string;
385
+ description: string;
386
+ /** AI-structured brief (populated by "Structure Brief" feature). When present,
387
+ * spec/plan/architecture generation uses this instead of the raw description. */
388
+ briefJson?: import('./ai').ProjectBriefJson | null;
389
+ status: ProjectStatus;
390
+ kind: import('../constants/workflow-registry').WorkflowKind;
391
+ /**
392
+ * Universal Cognitive Workflow semantic category.
393
+ * Broader than `kind` — governs gate rubric, artifact taxonomy, and prompt context.
394
+ * Optional for backward compatibility; defaults to 'software' when absent.
395
+ */
396
+ projectKind?: import('./project-kind').ProjectKind;
397
+ /**
398
+ * Registry-driven workflow channel selector. Precise execution variant
399
+ * (e.g. 'fiction_book', 'software_app'). When present takes precedence
400
+ * over `kind` for orchestrator, display, and completion rule selection.
401
+ * Backfilled from project_kind by the 20260514200000 migration.
402
+ * @deprecated Use workflowVariant (camelCase) — case-mapping normalises this on all API responses.
403
+ */
404
+ workflow_variant?: string | null;
405
+ /** Camelcase canonical form of workflow_variant after API case mapping. */
406
+ workflowVariant?: string | null;
407
+ ownerId: string;
408
+ clientId?: string;
409
+ createdAt: string;
410
+ updatedAt: string;
411
+ specs: Spec[];
412
+ plans: Plan[];
413
+ }
414
+ export interface ProjectSummary {
415
+ id: string;
416
+ title: string;
417
+ description: string;
418
+ status: ProjectStatus;
419
+ kind: import('../constants/workflow-registry').WorkflowKind;
420
+ /** Universal Cognitive Workflow semantic category (optional). */
421
+ projectKind?: import('./project-kind').ProjectKind;
422
+ /** Registry-driven workflow execution variant (e.g. 'film_production', 'software_app'). */
423
+ workflowVariant?: string | null;
424
+ ownerId: string;
425
+ clientId?: string;
426
+ createdAt: string;
427
+ updatedAt: string;
428
+ }
429
+ export interface ProjectReport {
430
+ projectId: string;
431
+ title: string;
432
+ description: string;
433
+ status: ProjectStatus;
434
+ specs: {
435
+ title: string;
436
+ description: string;
437
+ status: string;
438
+ priority: string;
439
+ }[];
440
+ tasks: {
441
+ title: string;
442
+ description: string;
443
+ status: string;
444
+ priority: string;
445
+ estimatedHours: number;
446
+ }[];
447
+ summary: {
448
+ totalSpecs: number;
449
+ totalTasks: number;
450
+ completedTasks: number;
451
+ };
452
+ generatedAt: string;
453
+ }
454
+ export type ProjectStatus = "draft" | "active" | "completed" | "archived";
455
+ export interface Spec {
456
+ id: string;
457
+ projectId: string;
458
+ title: string;
459
+ description: string;
460
+ requirements: string[];
461
+ acceptanceCriteria: string[];
462
+ priority: SpecPriority;
463
+ status: SpecStatus;
464
+ createdAt: string;
465
+ updatedAt: string;
466
+ createdBy: string;
467
+ reviewedBy?: string;
468
+ reviewedAt?: string;
469
+ }
470
+ export type SpecPriority = "low" | "medium" | "high" | "critical";
471
+ export type SpecStatus = "draft" | "validated" | "approved" | "rejected";
472
+ export interface Plan {
473
+ id: string;
474
+ projectId: string;
475
+ specId: string;
476
+ title: string;
477
+ description: string;
478
+ estimatedHours: number;
479
+ actualHours?: number;
480
+ status: PlanStatus;
481
+ tasks: Task[];
482
+ dependencies: string[];
483
+ createdAt: string;
484
+ updatedAt: string;
485
+ assignedTo?: string;
486
+ }
487
+ export type PlanStatus = "draft" | "approved" | "in_progress" | "completed" | "blocked";
488
+ export interface Task {
489
+ id: string;
490
+ planId: string;
491
+ title: string;
492
+ description: string;
493
+ type: TaskType;
494
+ status: TaskStatus;
495
+ priority: TaskPriority;
496
+ estimatedHours: number;
497
+ actualHours?: number;
498
+ assignedTo?: string;
499
+ dependencies: string[];
500
+ /** Repository-scoped GitHub issue numbers for repair/trace (#417). */
501
+ linkedGithubIssueNumbers?: number[];
502
+ createdAt: string;
503
+ updatedAt: string;
504
+ completedAt?: string;
505
+ }
506
+ export type TaskType = "feature" | "bug" | "enhancement" | "documentation" | "testing";
507
+ export type TaskStatus = "todo" | "in_progress" | "implementing" | "implemented" | "in_review" | "review_failed" | "completed" | "blocked" | "approved" | "ready" | "failed" | "done" | "not_started";
508
+ export type TaskPriority = "low" | "medium" | "high" | "critical";
509
+ export interface ProjectSettings {
510
+ id: string;
511
+ projectId: string;
512
+ githubRepo: string;
513
+ vercelUrl?: string;
514
+ dopplerEnv: string;
515
+ deploymentStatus: "pending" | "deploying" | "deployed" | "failed" | "maintenance";
516
+ settings: Record<string, unknown>;
517
+ createdAt: string;
518
+ updatedAt: string;
519
+ }
520
+ /** BMAD-oriented JSONB slice for `project_settings.settings` (GET/PATCH payloads may include additional keys). */
521
+ export type ProjectBmadDeveloperSettingsBlob = {
522
+ story_artifacts?: {
523
+ enabled?: boolean;
524
+ auto_export?: boolean;
525
+ formats?: string[];
526
+ store_in_bucket?: boolean;
527
+ };
528
+ export_limits?: {
529
+ max_per_hour?: number;
530
+ max_size_mb?: number;
531
+ count_last_hour?: number;
532
+ total_exports?: number;
533
+ last_export?: string | null;
534
+ };
535
+ nl_kg_v2_enabled?: boolean;
536
+ storage_usage_mb?: number;
537
+ workflowExecutionMode?: string;
538
+ /** When true, cron auto-merges merge-eligible implement PRs for this project. */
539
+ implementAutoMergeEnabled?: boolean;
540
+ };
541
+ /** Unwrapped `data` from GET /api/projects/[id]/settings (BMAD developer tools slice). */
542
+ export type ProjectBmadSettingsGetResultData = {
543
+ projectId: string;
544
+ settings: ProjectBmadDeveloperSettingsBlob;
545
+ storageUsageMb: number;
546
+ storageQuotaMb: number;
547
+ };
548
+ /** Unwrapped `data` from PATCH /api/projects/[id]/settings (BMAD + nl_kg_v2_enabled, etc.). */
549
+ export type ProjectBmadSettingsPatchResultData = {
550
+ settings: ProjectBmadDeveloperSettingsBlob;
551
+ storageUsageMb: number;
552
+ };
553
+ /** Typed client shape for PATCH /api/projects/[id]/settings success payload. */
554
+ export type ProjectBmadSettingsPatchApiResponse = {
555
+ success: true;
556
+ data: ProjectBmadSettingsPatchResultData;
557
+ };
558
+ export type KnowledgeNodeType = "spec" | "task" | "report" | "architecture" | "code" | "constitution" | "plan" | "other" | "patch" | "pr" | "file" | "film_scene" | "film_shot" | "film_prompt" | "film_clip" | "film_export";
559
+ export interface KnowledgeNode {
560
+ id: string;
561
+ projectId: string;
562
+ type: KnowledgeNodeType;
563
+ content?: string;
564
+ data?: Record<string, any>;
565
+ embedding?: number[];
566
+ createdAt: string;
567
+ }
568
+ export type KnowledgeEdgeRelation = "references" | "fulfills" | "relates" | "SCENE_DERIVED_FROM_SCREENPLAY" | "SHOT_REALIZES_SCENE" | "PROMPT_GENERATED_FROM_SHOT" | "CLIP_REPRESENTS_PROMPT" | "EXPORT_CONTAINS_CLIP" | "ARTIFACT_DERIVED_FROM";
569
+ /** Row shape for `public.knowledge_edges` (see migrations + `KnowledgeEdgeSchema`); `KnowledgeEdgeRelation` is the narrowed relation union for API/join views, not a substitute for this row. */
570
+ export interface KnowledgeEdge {
571
+ id: string;
572
+ project_id: string;
573
+ source_id: string;
574
+ target_id: string;
575
+ relation: string;
576
+ weight?: number | null;
577
+ metadata?: Record<string, unknown> | null;
578
+ created_at: string;
579
+ /** Set by DB after audit migration; absent when inferred only from `KnowledgeEdgeSchema`. */
580
+ updated_at?: string;
581
+ }
582
+ export interface AuditLog {
583
+ id: string;
584
+ projectId?: string;
585
+ actor: string;
586
+ action: string;
587
+ resourceType?: "project" | "spec" | "plan" | "task" | "repo" | "deployment" | "workflow" | "validation" | "user" | "settings";
588
+ resourceId?: string;
589
+ details: Record<string, unknown>;
590
+ ipAddress?: string;
591
+ userAgent?: string;
592
+ success: boolean;
593
+ errorMessage?: string;
594
+ createdAt: string;
595
+ }
596
+ export interface SystemHealth {
597
+ status: "healthy" | "degraded" | "down";
598
+ services: ServiceHealth[];
599
+ lastChecked: string;
600
+ }
601
+ export interface ServiceHealth {
602
+ name: string;
603
+ status: "healthy" | "degraded" | "down";
604
+ responseTime?: number;
605
+ lastChecked: string;
606
+ error?: string;
607
+ }
608
+ export interface HealthStatus {
609
+ status: 'healthy' | 'degraded' | 'unhealthy';
610
+ timestamp: string;
611
+ version: string;
612
+ services: {
613
+ database: 'up' | 'down' | 'degraded';
614
+ auth: 'up' | 'down' | 'degraded';
615
+ api: 'up' | 'down' | 'degraded';
616
+ };
617
+ uptime: number;
618
+ environment: string;
619
+ }
620
+ export type ApiResponse<T = unknown> = {
621
+ success: true;
622
+ data: T;
623
+ timestamp: string;
624
+ } | {
625
+ success: false;
626
+ error: ApiError;
627
+ timestamp: string;
628
+ };
629
+ export interface ApiError {
630
+ code: string;
631
+ message: string;
632
+ details?: Record<string, unknown>;
633
+ }
634
+ export interface PaginationParams {
635
+ page: number;
636
+ limit: number;
637
+ sortBy?: string;
638
+ sortOrder?: "asc" | "desc";
639
+ }
640
+ export interface PaginatedResponse<T> {
641
+ items: T[];
642
+ pagination: {
643
+ page: number;
644
+ limit: number;
645
+ total: number;
646
+ totalPages: number;
647
+ hasNext: boolean;
648
+ hasPrev: boolean;
649
+ };
650
+ }
651
+ export interface ConstitutionalViolation {
652
+ id: string;
653
+ type: ViolationType;
654
+ severity: "low" | "medium" | "high" | "critical";
655
+ message: string;
656
+ file: string;
657
+ line?: number;
658
+ rule: string;
659
+ detectedAt: string;
660
+ resolvedAt?: string;
661
+ }
662
+ export interface AuthTestConfig {
663
+ githubUser: string;
664
+ githubPass: string;
665
+ githubTotpSecret?: string;
666
+ baseUrl: string;
667
+ supabaseUrl: string;
668
+ supabasePublishableKey: string;
669
+ }
670
+ export interface TestUser {
671
+ email: string;
672
+ password: string;
673
+ fullName: string;
674
+ accessToken?: string;
675
+ refreshToken?: string;
676
+ }
677
+ export type ViolationType = "inline_interface" | "hardcoded_css" | "env_fallback" | "missing_validation" | "performance_budget" | "security_violation";
678
+ export interface ComplianceReport {
679
+ id: string;
680
+ projectId: string;
681
+ reportType: "constitutional" | "security" | "performance" | "quality" | "deployment";
682
+ score: number;
683
+ passed: boolean;
684
+ violations: ConstitutionalViolation[];
685
+ recommendations: string[];
686
+ metadata: Record<string, unknown>;
687
+ generatedBy: "github-actions" | "manual" | "scheduled";
688
+ generatedAt: string;
689
+ createdAt: string;
690
+ }
691
+ export interface Permission {
692
+ resource: string;
693
+ action: 'read' | 'write' | 'delete' | 'admin';
694
+ }
695
+ export interface TeamMember extends User {
696
+ joinedAt: string;
697
+ }
698
+ export interface TeamMemberSummary {
699
+ userId: string;
700
+ role: string;
701
+ createdAt: string;
702
+ profile?: {
703
+ fullName?: string;
704
+ avatar?: string;
705
+ } | null;
706
+ }
707
+ export type WorkflowPhaseType = 'governance' | 'design' | 'implementation' | 'delivery';
708
+ export type WorkflowStep = 'constitution' | 'workspace' | 'integrations' | 'specify' | 'plan' | 'schema' | 'api' | 'ui' | 'tasks' | 'implement' | 'repository' | 'ci_cd' | 'deployments' | 'analytics' | 'review' | 'knowledge';
709
+ export interface WorkflowPhase {
710
+ id: string;
711
+ title: string;
712
+ subtitle: string;
713
+ icon: ReactNode;
714
+ color: string;
715
+ bgColor: string;
716
+ borderColor: string;
717
+ accentColor: string;
718
+ steps: Array<{
719
+ id: string;
720
+ title: string;
721
+ description: string;
722
+ icon: ReactNode;
723
+ href: string;
724
+ progress: number;
725
+ isNew?: boolean;
726
+ }>;
727
+ }
728
+ export type TeamSpecialization = 'frontend' | 'backend' | 'infra' | 'qa' | 'pm' | 'design' | 'ml';
729
+ export type TeamRole = 'lead' | 'developer' | 'reviewer' | 'agent';
730
+ export type MemberType = 'human' | 'ai';
731
+ export type AIModelProvider = 'openai' | 'anthropic' | 'google' | 'meta' | 'custom';
732
+ export type AIModelRole = 'planner' | 'reviewer' | 'generator' | 'tester' | 'architect' | 'general';
733
+ export interface Team {
734
+ id: string;
735
+ projectId: string;
736
+ name: string;
737
+ specialization: TeamSpecialization;
738
+ description?: string;
739
+ assignedPhases: WorkflowPhaseType[];
740
+ active: boolean;
741
+ createdAt: string;
742
+ updatedAt: string;
743
+ }
744
+ export interface AITeamMember {
745
+ id: string;
746
+ teamId: string;
747
+ userId?: string;
748
+ memberType: MemberType;
749
+ role: TeamRole;
750
+ agentName?: string;
751
+ agentModel?: string;
752
+ agentSpecialization?: string;
753
+ active: boolean;
754
+ addedBy: string;
755
+ createdAt: string;
756
+ updatedAt: string;
757
+ }
758
+ export interface TeamIntegration {
759
+ id: string;
760
+ teamId: string;
761
+ provider: 'github' | 'vercel' | 'supabase' | 'doppler' | 'mcp' | 'playwright';
762
+ config: Record<string, unknown>;
763
+ status: 'active' | 'disabled' | 'error';
764
+ lastSyncedAt?: string;
765
+ errorMessage?: string;
766
+ createdAt: string;
767
+ updatedAt: string;
768
+ }
769
+ export interface TeamPhaseAssignment {
770
+ id: string;
771
+ projectId: string;
772
+ teamId: string;
773
+ phase: WorkflowPhaseType;
774
+ steps: WorkflowStep[];
775
+ status: 'active' | 'completed' | 'blocked';
776
+ progressPercentage: number;
777
+ assignedBy: string;
778
+ createdAt: string;
779
+ updatedAt: string;
780
+ }
781
+ export interface LinkedModel {
782
+ id: string;
783
+ teamId: string;
784
+ modelName: string;
785
+ provider: AIModelProvider;
786
+ role: AIModelRole;
787
+ specialization?: string;
788
+ specializationContext?: string;
789
+ temperature: number;
790
+ maxTokens: number;
791
+ alwaysInjectFiles: string[];
792
+ active: boolean;
793
+ createdAt: string;
794
+ updatedAt: string;
795
+ }
796
+ export interface AgentAction {
797
+ id: string;
798
+ projectId: string;
799
+ teamId?: string;
800
+ agentName: string;
801
+ actionType: 'code_suggestion' | 'pr_opened' | 'test_generated' | 'spec_reviewed' | 'deployment_monitored' | 'guardian_audit' | 'architecture_generated';
802
+ description: string;
803
+ artifacts: AgentArtifact[];
804
+ approvalStatus: 'pending' | 'approved' | 'rejected' | 'superseded';
805
+ approvedBy?: string;
806
+ approvedAt?: string;
807
+ constitutionalCompliant?: boolean;
808
+ guardianScore?: number;
809
+ violations: string[];
810
+ taskId?: string;
811
+ specId?: string;
812
+ prUrl?: string;
813
+ deploymentId?: string;
814
+ createdAt: string;
815
+ updatedAt: string;
816
+ }
817
+ export interface AgentActionDisplay {
818
+ id: string;
819
+ agentName: string;
820
+ actionType: string;
821
+ description: string;
822
+ guardianScore?: number;
823
+ violations: string[];
824
+ approvalStatus: string;
825
+ createdAt: string;
826
+ }
827
+ export interface AIAgentDisplay {
828
+ id: string;
829
+ projectId: string;
830
+ roleId: string;
831
+ roleName: string;
832
+ roleDescription?: string;
833
+ displayName: string;
834
+ isActive: boolean;
835
+ guardianScore: number | null;
836
+ lastActivity: string | null;
837
+ config: any;
838
+ statusMessage?: string;
839
+ avatar?: string;
840
+ model?: string;
841
+ createdAt: string;
842
+ updatedAt: string;
843
+ }
844
+ export interface AgentArtifact {
845
+ type: 'file' | 'url' | 'content';
846
+ name: string;
847
+ url?: string;
848
+ content?: string;
849
+ }
850
+ export interface AgentFeedback {
851
+ id: string;
852
+ agentId: string;
853
+ projectId: string;
854
+ phase?: WorkflowPhaseType;
855
+ feedback: string;
856
+ rating?: number;
857
+ metadata: Record<string, unknown>;
858
+ createdAt: string;
859
+ }
860
+ export interface OrchestrationStep {
861
+ id: string;
862
+ agentId: string;
863
+ agentRole: string;
864
+ inputJson: any;
865
+ order: number;
866
+ }
867
+ export interface Orchestration {
868
+ id: string;
869
+ projectId: string;
870
+ title: string;
871
+ description?: string;
872
+ steps: OrchestrationStep[];
873
+ status: 'draft' | 'queued' | 'running' | 'completed' | 'failed';
874
+ createdAt: string;
875
+ updatedAt: string;
876
+ stepCount?: number;
877
+ }
878
+ export interface OrchestrationExecutionStep {
879
+ id: string;
880
+ orchestrationId: string;
881
+ agentId: string;
882
+ agentRole: string;
883
+ status: 'pending' | 'running' | 'completed' | 'failed';
884
+ inputJson: any;
885
+ outputJson?: any;
886
+ errorMessage?: string;
887
+ startedAt?: string;
888
+ completedAt?: string;
889
+ order: number;
890
+ }
891
+ export interface OrchestrationEvent {
892
+ id: string;
893
+ orchestrationId: string;
894
+ stepId: string | null;
895
+ eventType: 'info' | 'warn' | 'error' | 'success';
896
+ message: string;
897
+ data?: any;
898
+ createdAt: string;
899
+ }
900
+ export interface OrchestrationRun {
901
+ id: string;
902
+ projectId: string;
903
+ title: string;
904
+ status: 'running' | 'completed' | 'failed' | 'cancelled';
905
+ steps: OrchestrationExecutionStep[];
906
+ events: OrchestrationEvent[];
907
+ startedAt: string;
908
+ completedAt?: string;
909
+ }
910
+ export interface DashboardStats {
911
+ totalProjects: number;
912
+ activeSpecs: number;
913
+ completedTasks: number;
914
+ complianceScore: number;
915
+ recentActivity: ActivityItem[];
916
+ }
917
+ export interface ActivityItem {
918
+ id: string;
919
+ type: 'spec_created' | 'plan_approved' | 'task_completed' | 'compliance_check' | 'constitution_created' | 'plan_generated';
920
+ title: string;
921
+ description: string;
922
+ timestamp: string;
923
+ user: string;
924
+ projectId?: string;
925
+ }
926
+ export interface TasksPageState {
927
+ tasks: Task[];
928
+ loading: boolean;
929
+ searchQuery: string;
930
+ statusFilter: TaskStatus | 'all';
931
+ priorityFilter: TaskPriority | 'all';
932
+ typeFilter: TaskType | 'all';
933
+ }
934
+ export interface SpecsPageState {
935
+ specs: Spec[];
936
+ loading: boolean;
937
+ searchQuery: string;
938
+ statusFilter: SpecStatus | 'all';
939
+ priorityFilter: SpecPriority | 'all';
940
+ }
941
+ export interface SearchResult {
942
+ id: string;
943
+ title: string;
944
+ description: string;
945
+ type: 'project' | 'spec' | 'task' | 'plan';
946
+ projectId: string;
947
+ projectTitle: string;
948
+ url: string;
949
+ lastUpdated: string;
950
+ }
951
+ export interface CommandAction {
952
+ id: string;
953
+ title: string;
954
+ description?: string;
955
+ shortcut?: string;
956
+ icon?: string | any;
957
+ action: () => void | Promise<void>;
958
+ group: 'workflow' | 'governance' | 'navigation' | 'system';
959
+ permissions?: string[];
960
+ hidden?: boolean;
961
+ }
962
+ export interface InfraProject {
963
+ id: string;
964
+ name: string;
965
+ brand: string;
966
+ environment: 'dev' | 'preview' | 'prd';
967
+ provider: string;
968
+ status: 'pending' | 'planning' | 'applying' | 'deployed' | 'failed' | 'destroying';
969
+ created_at: string;
970
+ updated_at: string;
971
+ config: Record<string, any>;
972
+ outputs?: Record<string, any>;
973
+ last_run_id?: string;
974
+ created_by?: string;
975
+ }
976
+ export interface InfraRun {
977
+ id: string;
978
+ project_id: string;
979
+ command: 'plan' | 'apply' | 'destroy';
980
+ status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled';
981
+ created_at: string;
982
+ started_at?: string;
983
+ completed_at?: string;
984
+ stdout?: string;
985
+ stderr?: string;
986
+ exit_code?: number;
987
+ plan_output?: string;
988
+ apply_output?: string;
989
+ guardian_validated?: boolean;
990
+ guardian_score?: number | null;
991
+ guardian_violations?: string[];
992
+ guardian_warnings?: string[];
993
+ triggered_by?: string;
994
+ }
995
+ export interface InfraGuardianResult {
996
+ valid: boolean;
997
+ violations: GuardianViolation[];
998
+ warnings: GuardianWarning[];
999
+ score: number;
1000
+ checked_at: string;
1001
+ }
1002
+ export interface GuardianViolation {
1003
+ rule: string;
1004
+ severity: 'critical' | 'high' | 'medium' | 'low';
1005
+ message: string;
1006
+ resource?: string;
1007
+ suggestion?: string;
1008
+ }
1009
+ export interface GuardianWarning {
1010
+ rule: string;
1011
+ message: string;
1012
+ resource?: string;
1013
+ suggestion?: string;
1014
+ }
1015
+ export interface Constitution {
1016
+ id?: string;
1017
+ projectId: string;
1018
+ title: string;
1019
+ content: string;
1020
+ version: string;
1021
+ status: string;
1022
+ principles: string[];
1023
+ rules: string[];
1024
+ validationScore?: number;
1025
+ lastValidatedAt?: string;
1026
+ createdBy?: string;
1027
+ createdAt?: string;
1028
+ updatedAt?: string;
1029
+ }
1030
+ export interface SpecFormData {
1031
+ title: string;
1032
+ description: string;
1033
+ requirements: string[];
1034
+ acceptanceCriteria: string[];
1035
+ priority: SpecPriority;
1036
+ status: SpecStatus;
1037
+ }
1038
+ export interface AnalyticsMetric {
1039
+ label: string;
1040
+ value: string | number;
1041
+ change?: string;
1042
+ trend?: 'up' | 'down' | 'neutral';
1043
+ icon: (props: {
1044
+ className?: string;
1045
+ }) => any;
1046
+ }
1047
+ export interface TaskStatusData {
1048
+ status: string;
1049
+ count: number;
1050
+ percentage: number;
1051
+ color: string;
1052
+ }
1053
+ export interface PlanFormData {
1054
+ title: string;
1055
+ description: string;
1056
+ specId: string;
1057
+ estimatedHours: number;
1058
+ actualHours?: number;
1059
+ status: PlanStatus;
1060
+ dependencies: string[];
1061
+ assignedTo?: string;
1062
+ }
1063
+ export interface GlobalSearchProps {
1064
+ isOpen: boolean;
1065
+ onClose: () => void;
1066
+ /** Pre-fills the search input when the modal opens (e.g. from the Topbar search box). */
1067
+ initialQuery?: string;
1068
+ }
1069
+ export interface MobileMenuStore {
1070
+ /** Whether the mobile menu is currently open */
1071
+ isOpen: boolean;
1072
+ /** Open the mobile menu */
1073
+ open: () => void;
1074
+ /** Close the mobile menu */
1075
+ close: () => void;
1076
+ /** Toggle the mobile menu open/closed */
1077
+ toggle: () => void;
1078
+ }
1079
+ export interface WorkflowNavigation {
1080
+ current: typeof WORKFLOW_STEPS[number] | null;
1081
+ prev: typeof WORKFLOW_STEPS[number] | null;
1082
+ next: typeof WORKFLOW_STEPS[number] | null;
1083
+ }
1084
+ export interface ProjectProgressData {
1085
+ hasConstitution: boolean;
1086
+ specsCount: number;
1087
+ hasArchitecture: boolean;
1088
+ totalTasks: number;
1089
+ completedTasks: number;
1090
+ hasGeneratedCode: boolean;
1091
+ hasComplianceReport: boolean;
1092
+ isArchived: boolean;
1093
+ }
1094
+ export interface StepProgress {
1095
+ step: number;
1096
+ name: string;
1097
+ percentage: number;
1098
+ isComplete: boolean;
1099
+ description: string;
1100
+ }
1101
+ export interface ToolResult {
1102
+ success: boolean;
1103
+ output?: string;
1104
+ error?: string;
1105
+ artifacts?: Array<{
1106
+ type: string;
1107
+ name: string;
1108
+ content: string;
1109
+ }>;
1110
+ }
1111
+ export interface ArchitectureGenerationInput {
1112
+ projectId: string;
1113
+ projectTitle: string;
1114
+ projectDescription: string;
1115
+ specifications: Array<{
1116
+ id: string;
1117
+ title: string;
1118
+ description: string;
1119
+ requirements: string[];
1120
+ acceptanceCriteria: string[];
1121
+ }>;
1122
+ agentRole?: AgentRole;
1123
+ }
1124
+ export interface DashboardTopbarLink {
1125
+ id: string;
1126
+ label: string;
1127
+ href: string;
1128
+ icon: string;
1129
+ roles?: UserRole[];
1130
+ }
1131
+ export interface DashboardQuickAction {
1132
+ id: string;
1133
+ label: string;
1134
+ href: string;
1135
+ icon: string;
1136
+ badge?: string;
1137
+ roles?: UserRole[];
1138
+ }
1139
+ export interface DashboardLayoutConfig {
1140
+ sidebarItems: SidebarItem[];
1141
+ topbarLinks: DashboardTopbarLink[];
1142
+ quickActions: DashboardQuickAction[];
1143
+ showAnalytics: boolean;
1144
+ showAdmin: boolean;
1145
+ topbarTitle: string;
1146
+ showSearch: boolean;
1147
+ showNotifications: boolean;
1148
+ notificationCount: number;
1149
+ }
1150
+ export interface AuthUser {
1151
+ id: string;
1152
+ email: string;
1153
+ role: string;
1154
+ }
1155
+ export interface BaseHandlerConfig<TInput = any, TOutput = any> {
1156
+ method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
1157
+ requireAuth?: boolean | undefined;
1158
+ inputSchema?: any;
1159
+ outputSchema?: any;
1160
+ auditAction?: string | undefined;
1161
+ handler: (context: {
1162
+ supabase: any;
1163
+ user: AuthUser | null;
1164
+ input: TInput | undefined;
1165
+ request: any;
1166
+ params: Record<string, string> | undefined;
1167
+ searchParams: URLSearchParams;
1168
+ body?: unknown | undefined;
1169
+ }) => Promise<TOutput>;
1170
+ }
1171
+ export interface IntegrationWebhookPayload {
1172
+ [key: string]: unknown;
1173
+ }
1174
+ export interface IntegrationResponse {
1175
+ success: boolean;
1176
+ data?: unknown;
1177
+ error?: string;
1178
+ }
1179
+ export type IntegrationProvider = "github" | "vercel" | "supabase" | "doppler" | "stripe" | "resend";
1180
+ export type IntegrationStatus = "connected" | "disconnected" | "error" | "testing";
1181
+ export type IntegrationTier = "tier1" | "tier2" | "tier3";
1182
+ export interface IntegrationMetrics {
1183
+ responseTime: number;
1184
+ uptime: number;
1185
+ errorRate: number;
1186
+ requestCount24h: number;
1187
+ avgResponseTime24h: number;
1188
+ lastIncident?: string;
1189
+ }
1190
+ export interface IntegrationAIInsights {
1191
+ healthScore: number;
1192
+ recommendations: string[];
1193
+ predictedIssues: string[];
1194
+ confidenceLevel: number;
1195
+ lastAnalyzed: string;
1196
+ }
1197
+ export interface IntegrationHealth {
1198
+ provider: IntegrationProvider;
1199
+ status: IntegrationStatus;
1200
+ lastChecked: string;
1201
+ metrics: IntegrationMetrics;
1202
+ aiInsights?: IntegrationAIInsights;
1203
+ }
1204
+ export interface IntegrationData {
1205
+ provider: IntegrationProvider;
1206
+ status: IntegrationStatus;
1207
+ displayName: string;
1208
+ description: string;
1209
+ lastChecked: string;
1210
+ metrics?: IntegrationMetrics;
1211
+ aiInsights?: IntegrationAIInsights;
1212
+ }
1213
+ export interface IntegrationRecord {
1214
+ provider: IntegrationProvider;
1215
+ aiInsights?: IntegrationAIInsights;
1216
+ }
1217
+ export interface GlobalIntegration {
1218
+ provider: 'github' | 'vercel' | 'supabase' | 'doppler';
1219
+ status: 'connected' | 'disconnected' | 'error' | 'testing';
1220
+ displayName: string;
1221
+ description: string;
1222
+ lastChecked: string;
1223
+ metrics?: {
1224
+ responseTime: number;
1225
+ uptime: number;
1226
+ errorRate: number;
1227
+ requestCount24h: number;
1228
+ avgResponseTime24h: number;
1229
+ };
1230
+ }
1231
+ export interface GitHubRepo {
1232
+ id: string;
1233
+ projectId: string;
1234
+ userId: string;
1235
+ provider: 'github' | 'gitlab' | 'bitbucket';
1236
+ repoId: string;
1237
+ repoName: string;
1238
+ repoUrl: string;
1239
+ defaultBranch: string;
1240
+ isPrivate: boolean;
1241
+ config: Record<string, unknown>;
1242
+ syncStatus: 'active' | 'paused' | 'error';
1243
+ lastSyncedAt?: string;
1244
+ createdAt: string;
1245
+ updatedAt: string;
1246
+ }
1247
+ export interface GitHubCommit {
1248
+ id: string;
1249
+ repositoryId: string;
1250
+ taskId?: string;
1251
+ commitSha: string;
1252
+ commitMessage: string;
1253
+ authorName: string;
1254
+ authorEmail: string;
1255
+ authorAvatarUrl?: string;
1256
+ committedAt: string;
1257
+ additions: number;
1258
+ deletions: number;
1259
+ filesChanged: number;
1260
+ branch?: string;
1261
+ url: string;
1262
+ createdAt: string;
1263
+ }
1264
+ export interface GitHubPullRequest {
1265
+ id: string;
1266
+ repositoryId: string;
1267
+ taskId?: string;
1268
+ prNumber: number;
1269
+ prId: string;
1270
+ title: string;
1271
+ body?: string;
1272
+ state: 'open' | 'closed' | 'merged';
1273
+ authorLogin: string;
1274
+ authorAvatarUrl?: string;
1275
+ headBranch: string;
1276
+ baseBranch: string;
1277
+ headSha?: string;
1278
+ createdAtGithub: string;
1279
+ updatedAtGithub: string;
1280
+ closedAtGithub?: string;
1281
+ mergedAtGithub?: string;
1282
+ url: string;
1283
+ htmlUrl: string;
1284
+ createdAt: string;
1285
+ updatedAt: string;
1286
+ }
1287
+ export interface GitHubIssue {
1288
+ id: string;
1289
+ repositoryId: string;
1290
+ taskId?: string;
1291
+ issueNumber: number;
1292
+ issueId: string;
1293
+ title: string;
1294
+ body?: string;
1295
+ state: 'open' | 'closed';
1296
+ authorLogin: string;
1297
+ authorAvatarUrl?: string;
1298
+ labels: string[];
1299
+ createdAtGithub: string;
1300
+ updatedAtGithub: string;
1301
+ closedAtGithub?: string;
1302
+ url: string;
1303
+ htmlUrl: string;
1304
+ createdAt: string;
1305
+ updatedAt: string;
1306
+ }
1307
+ export interface Deployment {
1308
+ id: string;
1309
+ projectId: string;
1310
+ repositoryId?: string;
1311
+ provider: 'vercel' | 'netlify' | 'aws' | 'gcp' | 'azure' | 'heroku' | 'github-pages';
1312
+ deploymentId: string;
1313
+ deploymentUrl: string;
1314
+ status: 'queued' | 'building' | 'ready' | 'error' | 'cancelled';
1315
+ environment: 'production' | 'preview' | 'development';
1316
+ commitSha?: string;
1317
+ branch?: string;
1318
+ deployedAt: string;
1319
+ readyAt?: string;
1320
+ buildDurationMs?: number;
1321
+ config: Record<string, unknown>;
1322
+ createdAt: string;
1323
+ updatedAt: string;
1324
+ }
1325
+ export interface DeploymentLog {
1326
+ id: string;
1327
+ deploymentId: string;
1328
+ logLevel: 'debug' | 'info' | 'warn' | 'error';
1329
+ message: string;
1330
+ source?: 'build' | 'deploy' | 'runtime' | 'system';
1331
+ timestamp: string;
1332
+ }
1333
+ export type AppTemplateType = 'saas-dashboard' | 'api-backend' | 'e-commerce' | 'ai-chatbot' | 'mobile-pwa' | 'monorepo-fullstack' | 'landing-page' | 'admin-panel';
1334
+ export interface AppTemplate {
1335
+ id: string;
1336
+ type: AppTemplateType;
1337
+ name: string;
1338
+ description: string;
1339
+ techStack: TechStackItem[];
1340
+ requiredEnvVars: string[];
1341
+ optionalFeatures: TemplateFeature[];
1342
+ estimatedSetupTime: number;
1343
+ complexity: 'simple' | 'moderate' | 'complex' | 'enterprise';
1344
+ category?: 'web' | 'mobile' | 'backend' | 'fullstack' | 'ai';
1345
+ tags: string[];
1346
+ active: boolean;
1347
+ usageCount: number;
1348
+ successRate?: number;
1349
+ createdAt: string;
1350
+ updatedAt: string;
1351
+ }
1352
+ export interface TechStackItem {
1353
+ name: string;
1354
+ version: string;
1355
+ category: 'frontend' | 'backend' | 'database' | 'infra' | 'tool';
1356
+ required: boolean;
1357
+ }
1358
+ export interface TemplateFeature {
1359
+ id: string;
1360
+ name: string;
1361
+ description: string;
1362
+ enabled: boolean;
1363
+ configOptions?: Record<string, unknown>;
1364
+ }
1365
+ export interface BoilerplateConfig {
1366
+ templateType: AppTemplateType;
1367
+ projectName: string;
1368
+ projectDescription: string;
1369
+ features: string[];
1370
+ githubOrg?: string;
1371
+ vercelTeam?: string;
1372
+ dopplerProject?: string;
1373
+ customizations?: Record<string, unknown>;
1374
+ }
1375
+ export interface BoilerplateArtifact {
1376
+ id: string;
1377
+ projectId: string;
1378
+ templateId: string;
1379
+ config: Record<string, unknown>;
1380
+ files: BoilerplateFile[];
1381
+ migrations: string[];
1382
+ workflows: WorkflowFile[];
1383
+ envVars: EnvVarSpec[];
1384
+ generationMethod: 'llm' | 'template' | 'hybrid';
1385
+ ragSources: string[];
1386
+ validationResults?: ValidationResult;
1387
+ status: 'generating' | 'validating' | 'ready' | 'pushed' | 'failed';
1388
+ errorMessage?: string;
1389
+ createdAt: string;
1390
+ updatedAt: string;
1391
+ }
1392
+ export interface BoilerplateFile {
1393
+ path: string;
1394
+ content: string;
1395
+ language: string;
1396
+ description?: string;
1397
+ executable?: boolean;
1398
+ }
1399
+ export interface WorkflowFile {
1400
+ name: string;
1401
+ path: string;
1402
+ content: string;
1403
+ triggers: string[];
1404
+ }
1405
+ export interface EnvVarSpec {
1406
+ key: string;
1407
+ description: string;
1408
+ required: boolean;
1409
+ defaultValue?: string;
1410
+ secret: boolean;
1411
+ }
1412
+ export interface ValidationResult {
1413
+ valid: boolean;
1414
+ errors: string[];
1415
+ warnings: string[];
1416
+ }
1417
+ export type LifecycleStage = 'design' | 'template' | 'generate' | 'validate' | 'repo' | 'push' | 'secrets' | 'deploy' | 'test' | 'complete';
1418
+ export interface FactoryLifecycle {
1419
+ id: string;
1420
+ projectId: string;
1421
+ boilerplateId?: string;
1422
+ currentStage: LifecycleStage;
1423
+ completedStages: LifecycleStage[];
1424
+ failedStages: LifecycleStage[];
1425
+ artifacts: LifecycleArtifact[];
1426
+ githubRepoUrl?: string;
1427
+ vercelDeploymentUrl?: string;
1428
+ dopplerProjectName?: string;
1429
+ startedAt: string;
1430
+ completedAt?: string;
1431
+ estimatedCompletion?: string;
1432
+ metadata: Record<string, unknown>;
1433
+ }
1434
+ export interface LifecycleArtifact {
1435
+ stage: LifecycleStage;
1436
+ type: 'file' | 'url' | 'log' | 'evidence';
1437
+ name: string;
1438
+ content?: string;
1439
+ url?: string;
1440
+ timestamp: string;
1441
+ }
1442
+ export interface APIRoute {
1443
+ id: string;
1444
+ projectId: string;
1445
+ taskId?: string;
1446
+ specId?: string;
1447
+ method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS';
1448
+ path: string;
1449
+ handlerFilePath?: string;
1450
+ inputSchemaName?: string;
1451
+ outputSchemaName?: string;
1452
+ contractsSchema?: string;
1453
+ handlerCode?: string;
1454
+ deployed: boolean;
1455
+ deploymentId?: string;
1456
+ githubFilePath?: string;
1457
+ createdAt: string;
1458
+ updatedAt: string;
1459
+ }
1460
+ export interface CodeSnippet {
1461
+ id: string;
1462
+ projectId: string;
1463
+ taskId?: string;
1464
+ language: 'typescript' | 'javascript' | 'tsx' | 'jsx' | 'python' | 'sql' | 'yaml' | 'json' | 'markdown' | 'shell';
1465
+ filePath: string;
1466
+ content: string;
1467
+ description?: string;
1468
+ generatedBy: 'ai' | 'user' | 'template' | 'llm';
1469
+ ragContextUsed: boolean;
1470
+ validationPassed?: boolean;
1471
+ validationErrors: string[];
1472
+ constitutionalCompliant?: boolean;
1473
+ guardianScore?: number;
1474
+ createdAt: string;
1475
+ }
1476
+ export interface ArchitectureGraph {
1477
+ id: string;
1478
+ projectId: string;
1479
+ specIds: string[];
1480
+ graphData: {
1481
+ nodes: ArchitectureNode[];
1482
+ edges: ArchitectureEdge[];
1483
+ };
1484
+ techStack: string[];
1485
+ estimatedWeeks?: number;
1486
+ complexityScore?: number;
1487
+ createdAt: string;
1488
+ updatedAt: string;
1489
+ }
1490
+ export interface ArchitectureNode {
1491
+ id: string;
1492
+ label: string;
1493
+ type: 'api' | 'database' | 'service' | 'integration' | 'frontend' | 'backend';
1494
+ description?: string;
1495
+ position?: {
1496
+ x: number;
1497
+ y: number;
1498
+ };
1499
+ }
1500
+ export interface ArchitectureEdge {
1501
+ id: string;
1502
+ source: string;
1503
+ target: string;
1504
+ label?: string;
1505
+ type: 'dependency' | 'dataflow' | 'api_call' | 'subscription';
1506
+ }
1507
+ export interface ProjectRetrospective {
1508
+ id: string;
1509
+ projectId: string;
1510
+ summary: string;
1511
+ achievements: string[];
1512
+ challenges: string[];
1513
+ lessons: string[];
1514
+ metrics: {
1515
+ taskVelocity?: number;
1516
+ specApprovalRate?: number;
1517
+ complianceScore?: number;
1518
+ deploymentSuccessRate?: number;
1519
+ avgBuildTime?: number;
1520
+ totalCommits?: number;
1521
+ totalPRs?: number;
1522
+ totalDeployments?: number;
1523
+ };
1524
+ createdBy?: string;
1525
+ createdAt: string;
1526
+ }
1527
+ export interface SpecTemplate {
1528
+ id: string;
1529
+ name: string;
1530
+ category: 'api' | 'ui' | 'database' | 'compliance' | 'feature';
1531
+ templateContent: string;
1532
+ fields: Record<string, TemplateField>;
1533
+ usageCount: number;
1534
+ isPublic: boolean;
1535
+ createdAt: string;
1536
+ }
1537
+ export interface TemplateField {
1538
+ type: 'text' | 'textarea' | 'select' | 'code';
1539
+ required: boolean;
1540
+ placeholder?: string;
1541
+ options?: string[];
1542
+ language?: string;
1543
+ }
1544
+ export type ComponentCategory = 'data-display' | 'navigation' | 'feedback' | 'data-entry' | 'layout' | 'custom';
1545
+ export interface ComponentProp {
1546
+ name: string;
1547
+ type: string;
1548
+ required: boolean;
1549
+ default?: unknown;
1550
+ description?: string;
1551
+ }
1552
+ export interface UIComponent {
1553
+ id: string;
1554
+ projectId?: string;
1555
+ name: string;
1556
+ displayName: string;
1557
+ category: ComponentCategory;
1558
+ props: ComponentProp[];
1559
+ filePath: string;
1560
+ sourceCode: string;
1561
+ dependencies: string[];
1562
+ tags: string[];
1563
+ description?: string;
1564
+ isPublic: boolean;
1565
+ downloads: number;
1566
+ rating?: number;
1567
+ version: string;
1568
+ createdBy?: string;
1569
+ createdAt: string;
1570
+ updatedAt: string;
1571
+ }
1572
+ export interface ComponentVersion {
1573
+ id: string;
1574
+ componentId: string;
1575
+ version: string;
1576
+ sourceCode: string;
1577
+ props: ComponentProp[];
1578
+ changelog?: string;
1579
+ createdBy?: string;
1580
+ createdAt: string;
1581
+ }
1582
+ export interface ComponentAnalytic {
1583
+ id: string;
1584
+ componentId: string;
1585
+ pageId?: string;
1586
+ metricType: 'render_time' | 'usage_count' | 'error_count' | 'accessibility_score';
1587
+ value: number;
1588
+ metadata?: Record<string, unknown>;
1589
+ recordedAt: string;
1590
+ }
1591
+ export interface ComponentRating {
1592
+ id: string;
1593
+ componentId: string;
1594
+ userId: string;
1595
+ rating: number;
1596
+ review?: string;
1597
+ createdAt: string;
1598
+ }
1599
+ export interface UIPage {
1600
+ id: string;
1601
+ projectId: string;
1602
+ name: string;
1603
+ slug: string;
1604
+ layout: PageLayout;
1605
+ components: PageComponent[];
1606
+ menuConfig?: MenuConfig;
1607
+ meta?: PageMeta;
1608
+ isProtected: boolean;
1609
+ requiredRoles: string[];
1610
+ filePath: string;
1611
+ createdBy?: string;
1612
+ createdAt: string;
1613
+ updatedAt: string;
1614
+ }
1615
+ export interface PageLayout {
1616
+ type: 'grid' | 'flex' | 'custom';
1617
+ columns?: number;
1618
+ rows: PageRow[];
1619
+ }
1620
+ export interface PageRow {
1621
+ id: string;
1622
+ height?: string;
1623
+ columns: PageColumn[];
1624
+ }
1625
+ export interface PageColumn {
1626
+ id: string;
1627
+ span: number;
1628
+ components: PageComponent[];
1629
+ }
1630
+ export interface PageComponent {
1631
+ id: string;
1632
+ componentId: string;
1633
+ props: Record<string, unknown>;
1634
+ position: {
1635
+ row: number;
1636
+ col: number;
1637
+ };
1638
+ }
1639
+ export interface PageVersion {
1640
+ id: string;
1641
+ pageId: string;
1642
+ version: string;
1643
+ layout: PageLayout;
1644
+ components: PageComponent[];
1645
+ changelog?: string;
1646
+ createdBy?: string;
1647
+ createdAt: string;
1648
+ }
1649
+ export interface MenuConfig {
1650
+ position: number;
1651
+ icon: string;
1652
+ label: string;
1653
+ badge?: string;
1654
+ children?: MenuConfig[];
1655
+ }
1656
+ export interface PageMeta {
1657
+ title: string;
1658
+ description?: string;
1659
+ openGraph?: {
1660
+ title: string;
1661
+ description: string;
1662
+ image?: string;
1663
+ };
1664
+ }
1665
+ export interface UITheme {
1666
+ id: string;
1667
+ projectId: string;
1668
+ name: string;
1669
+ tokens: ThemeTokens;
1670
+ isActive: boolean;
1671
+ createdAt: string;
1672
+ updatedAt: string;
1673
+ }
1674
+ export interface ThemeTokens {
1675
+ colors: Record<string, string>;
1676
+ spacing: Record<string, string>;
1677
+ typography: Record<string, string>;
1678
+ borderRadius: Record<string, string>;
1679
+ shadows: Record<string, string>;
1680
+ }
1681
+ export * from './project-kind';
1682
+ export * from './project-capabilities';
1683
+ export * from './pwa';
1684
+ export * from './ai-responses';
1685
+ export * from './codebase';
1686
+ export * from './ai';
1687
+ /** Canonical git_repositories linkage + readiness */
1688
+ export * from './repo';
1689
+ export * from './workflow-graph';
1690
+ export * from './graph-canvas';
1691
+ export * from './graph-question-mapping';
1692
+ export * from './workflow-action-panel';
1693
+ export * from './orchestration-execution';
1694
+ export * from './resolve-model-policy-input';
1695
+ export * from './audiobook';
1696
+ export * from './chapter-revision.types';
1697
+ export * from './product-readiness';
1698
+ export * from './audiobook-embed';
1699
+ export interface AuditLogData {
1700
+ projectId?: string;
1701
+ actor: string;
1702
+ action: string;
1703
+ resourceType?: 'project' | 'spec' | 'plan' | 'task' | 'repo' | 'deployment' | 'workflow' | 'validation' | 'user' | 'settings';
1704
+ resourceId?: string;
1705
+ details: Record<string, unknown>;
1706
+ ipAddress?: string;
1707
+ userAgent?: string;
1708
+ success: boolean;
1709
+ errorMessage?: string;
1710
+ }
1711
+ export interface AuthState {
1712
+ user: User | null;
1713
+ supabaseUser: any | null;
1714
+ loading: boolean;
1715
+ authReady: boolean;
1716
+ error: string | null;
1717
+ }
1718
+ export interface AuthActions {
1719
+ signInWithGitHub: () => Promise<void>;
1720
+ signInWithPassword: (email: string, password: string) => Promise<void>;
1721
+ signOut: () => Promise<void>;
1722
+ refreshSession: () => Promise<void>;
1723
+ refreshProfile: () => Promise<void>;
1724
+ }
1725
+ export interface NavigationValidationError extends Error {
1726
+ code: 'CONSTITUTIONAL_VIOLATION';
1727
+ violationType: 'forbidden_route' | 'missing_project_context' | 'ambiguous_scope';
1728
+ currentPath: string;
1729
+ expectedPath?: string;
1730
+ }
1731
+ export interface ProjectStats {
1732
+ totalProjects: number;
1733
+ activeSpecs: number;
1734
+ completedTasks: number;
1735
+ complianceScore: number;
1736
+ recentActivity: ActivityItem[];
1737
+ }
1738
+ export interface ProjectReviewMetrics {
1739
+ projectId: string;
1740
+ finalComplianceScore: number;
1741
+ metrics: {
1742
+ plannedHours: number;
1743
+ actualHours: number;
1744
+ tasksCompleted: number;
1745
+ totalTasks: number;
1746
+ specsCreated: number;
1747
+ constitutionsCreated: number;
1748
+ complianceViolations: number;
1749
+ efficiency: number;
1750
+ };
1751
+ completedAt: string;
1752
+ qualityScore: number;
1753
+ teamFeedback: string[];
1754
+ constitutionalCompliance: {
1755
+ score: number;
1756
+ violations: string[];
1757
+ recommendations: string[];
1758
+ };
1759
+ }
1760
+ export interface ProjectMetrics {
1761
+ id: string;
1762
+ projectId: string;
1763
+ taskVelocity: {
1764
+ completed: number;
1765
+ inProgress: number;
1766
+ avgCompletionTime: number;
1767
+ velocity: number;
1768
+ };
1769
+ specApprovalRate: number;
1770
+ complianceScore: number;
1771
+ codeQuality: {
1772
+ coverage: number;
1773
+ complexity: number;
1774
+ maintainability: number;
1775
+ };
1776
+ createdAt: string;
1777
+ updatedAt: string;
1778
+ }
1779
+ export interface AnalyticsMetric {
1780
+ label: string;
1781
+ value: string | number;
1782
+ change?: string;
1783
+ trend?: 'up' | 'down' | 'neutral';
1784
+ icon: (props: {
1785
+ className?: string;
1786
+ }) => any;
1787
+ }
1788
+ export interface ProjectStatusData {
1789
+ status: string;
1790
+ count: number;
1791
+ percentage: number;
1792
+ color: string;
1793
+ }
1794
+ export interface TaskStatusData {
1795
+ status: string;
1796
+ count: number;
1797
+ percentage: number;
1798
+ color: string;
1799
+ }
1800
+ export interface TeamInsights {
1801
+ id: string;
1802
+ projectId: string;
1803
+ userId: string;
1804
+ activityScore: number;
1805
+ tasksCompleted: number;
1806
+ avgResponseTime: number;
1807
+ contributionHistory: ContributionPoint[];
1808
+ workloadBalance: number;
1809
+ createdAt: string;
1810
+ updatedAt: string;
1811
+ }
1812
+ export interface ContributionPoint {
1813
+ date: string;
1814
+ commits: number;
1815
+ tasksCompleted: number;
1816
+ specsCreated: number;
1817
+ reviewsCompleted: number;
1818
+ }
1819
+ export interface AnalyticsComplianceReport {
1820
+ id: string;
1821
+ projectId: string;
1822
+ overallScore: number;
1823
+ ssotCompliance: boolean;
1824
+ typeSafety: boolean;
1825
+ performance: boolean;
1826
+ security: boolean;
1827
+ violations: AnalyticsComplianceViolation[];
1828
+ trends: ComplianceTrend[];
1829
+ timestamp: string;
1830
+ generatedBy: string;
1831
+ }
1832
+ export interface AnalyticsComplianceViolation {
1833
+ id: string;
1834
+ type: 'ssot' | 'type-safety' | 'performance' | 'security' | 'constitutional';
1835
+ severity: 'low' | 'medium' | 'high' | 'critical';
1836
+ message: string;
1837
+ file?: string;
1838
+ line?: number;
1839
+ rule: string;
1840
+ suggestion?: string;
1841
+ }
1842
+ export interface ComplianceData {
1843
+ overallScore: number;
1844
+ totalProjects: number;
1845
+ compliantProjects: number;
1846
+ violationsCount: number;
1847
+ lastScan: string;
1848
+ projects: Array<{
1849
+ id: string;
1850
+ name: string;
1851
+ score: number;
1852
+ status: 'compliant' | 'warning' | 'critical';
1853
+ violations: Array<{
1854
+ type: string;
1855
+ severity: 'low' | 'medium' | 'high';
1856
+ description: string;
1857
+ file?: string;
1858
+ resolved: boolean;
1859
+ }>;
1860
+ lastScan: string;
1861
+ scanFrequency: string;
1862
+ }>;
1863
+ violations: Array<{
1864
+ id: string;
1865
+ projectId: string;
1866
+ projectName: string;
1867
+ type: string;
1868
+ severity: 'low' | 'medium' | 'high';
1869
+ description: string;
1870
+ file?: string;
1871
+ status: 'open' | 'resolved' | 'acknowledged';
1872
+ createdAt: string;
1873
+ resolvedAt?: string;
1874
+ }>;
1875
+ }
1876
+ export interface ComplianceTrend {
1877
+ date: string;
1878
+ score: number;
1879
+ violationCount: number;
1880
+ resolved: number;
1881
+ introduced: number;
1882
+ }
1883
+ export interface NotificationFeed {
1884
+ notifications: Notification[];
1885
+ unreadCount: number;
1886
+ filters: NotificationFilter[];
1887
+ hasMore: boolean;
1888
+ totalCount: number;
1889
+ }
1890
+ export interface NotificationFilter {
1891
+ id: string;
1892
+ label: string;
1893
+ type: Notification['type'] | 'all';
1894
+ active: boolean;
1895
+ }
1896
+ export interface AnalyticsDashboardStats {
1897
+ totalProjects: number;
1898
+ activeSpecs: number;
1899
+ completedTasks: number;
1900
+ complianceScore: number;
1901
+ teamMembers: number;
1902
+ recentActivity: DashboardActivityItem[];
1903
+ }
1904
+ export interface DashboardActivityItem {
1905
+ id: string;
1906
+ type: 'project_created' | 'spec_updated' | 'task_completed' | 'constitution_generated' | 'compliance_check';
1907
+ message: string;
1908
+ userId: string;
1909
+ projectId?: string;
1910
+ timestamp: string;
1911
+ metadata?: Record<string, any>;
1912
+ }
1913
+ export interface UserSummary {
1914
+ id: string;
1915
+ email: string;
1916
+ role: "owner" | "admin" | "client";
1917
+ }
1918
+ export interface GuardianViolation {
1919
+ id: string;
1920
+ type: string;
1921
+ severity: 'low' | 'medium' | 'high' | 'critical';
1922
+ message: string;
1923
+ filePath?: string;
1924
+ lineNumber?: number;
1925
+ ruleName?: string;
1926
+ suggestion?: string;
1927
+ category?: 'auth' | 'rls' | 'ssot' | 'performance' | 'security' | 'dependencies';
1928
+ resolved?: boolean;
1929
+ resolvedAt?: string;
1930
+ resolvedBy?: string;
1931
+ }
1932
+ export interface GuardianComplianceScore {
1933
+ score: number;
1934
+ timestamp: string;
1935
+ breakdown: {
1936
+ ssot: number;
1937
+ typeSafety: number;
1938
+ performance: number;
1939
+ security: number;
1940
+ };
1941
+ }
1942
+ export type GuardianPhase = 'discover' | 'design' | 'develop' | 'validate' | 'ship' | 'monitor';
1943
+ export interface GuardianReport {
1944
+ id: string;
1945
+ projectId: string;
1946
+ phase: GuardianPhase;
1947
+ constitutionVersion: number;
1948
+ score: number;
1949
+ violationsCount: number;
1950
+ passedChecks: string[];
1951
+ failedChecks: string[];
1952
+ validated: boolean;
1953
+ generatedAt: string;
1954
+ metadata?: Record<string, unknown>;
1955
+ }
1956
+ export interface GuardianValidationRequest {
1957
+ projectId: string;
1958
+ phase?: GuardianPhase;
1959
+ constitutionVersion?: number;
1960
+ autoResolve?: boolean;
1961
+ }
1962
+ export interface GuardianValidationResult {
1963
+ reportId: string;
1964
+ score: number;
1965
+ severity: 'info' | 'warning' | 'error' | 'critical';
1966
+ phase: GuardianPhase;
1967
+ violationsCount: number;
1968
+ passedChecks: number;
1969
+ violations: GuardianViolation[];
1970
+ validated: boolean;
1971
+ timestamp: string;
1972
+ }
1973
+ export interface AnalyticsUpdate {
1974
+ type: 'compliance_score' | 'violation_detected' | 'violation_resolved' | 'team_activity' | 'git_commit';
1975
+ projectId: string;
1976
+ data: unknown;
1977
+ timestamp: string;
1978
+ }
1979
+ export interface AIRecommendation {
1980
+ id: string;
1981
+ type: 'spec' | 'task' | 'architecture' | 'component' | 'schema' | 'api_route';
1982
+ confidence: number;
1983
+ suggestion: string;
1984
+ rationale: string;
1985
+ agentName: string;
1986
+ metadata?: Record<string, any>;
1987
+ createdAt: string;
1988
+ }
1989
+ export interface AIGenerationResult {
1990
+ success: boolean;
1991
+ data?: any;
1992
+ error?: string;
1993
+ agentName?: string;
1994
+ processingTime?: number;
1995
+ guardianScore?: number;
1996
+ violations?: string[];
1997
+ }
1998
+ export interface ProjectPageLayoutProps {
1999
+ children: ReactNode;
2000
+ title: string;
2001
+ description?: string;
2002
+ icon?: ReactNode;
2003
+ projectId: string;
2004
+ backHref?: string;
2005
+ backLabel?: string;
2006
+ nextHref?: string;
2007
+ nextLabel?: string;
2008
+ showDashboardLink?: boolean;
2009
+ topActions?: ReactNode;
2010
+ bottomActions?: ReactNode;
2011
+ className?: string;
2012
+ contentClassName?: string;
2013
+ maxWidth?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full';
2014
+ }
2015
+ export interface ProjectProgressNavProps {
2016
+ projectId: string;
2017
+ currentStepId?: string;
2018
+ }
2019
+ export interface TeamDetailPanelProps {
2020
+ teamId: string;
2021
+ projectId: string;
2022
+ }
2023
+ export interface UseProjectProgressResult {
2024
+ progressData: ProjectProgressData | null;
2025
+ /** N-007 step id → complete (from resolveStepCompletionMap) */
2026
+ stepCompletion: Record<string, boolean> | null;
2027
+ steps: StepProgress[];
2028
+ overallProgress: number;
2029
+ currentStep: number;
2030
+ getStep: (stepNumber: number) => StepProgress;
2031
+ isLoading: boolean;
2032
+ error: string | null;
2033
+ refetch: () => Promise<void>;
2034
+ }
2035
+ export interface InfraSpec {
2036
+ provider: string;
2037
+ resources: any[];
2038
+ }
2039
+ export interface GitHubProfile {
2040
+ full_name?: string;
2041
+ username?: string;
2042
+ avatar_url?: string;
2043
+ }
2044
+ export interface AILayoutProps {
2045
+ children: ReactNode;
2046
+ currentRole?: AgentRole;
2047
+ }
2048
+ export interface AuthGuardProps {
2049
+ children: ReactNode;
2050
+ requiredPermissions?: Permission[];
2051
+ fallback?: ReactNode;
2052
+ allowOpenMode?: boolean;
2053
+ }
2054
+ export interface IntegrationHealth {
2055
+ github: {
2056
+ status: 'healthy' | 'degraded' | 'down';
2057
+ responseTime: number;
2058
+ lastCheck: string;
2059
+ connectedRepos: number;
2060
+ totalRepos: number;
2061
+ webhookStatus: 'active' | 'inactive' | 'error';
2062
+ };
2063
+ vercel: {
2064
+ status: 'healthy' | 'degraded' | 'down';
2065
+ responseTime: number;
2066
+ lastCheck: string;
2067
+ deployments: number;
2068
+ projects: number;
2069
+ latestDeployment?: {
2070
+ id: string;
2071
+ status: string;
2072
+ createdAt: string;
2073
+ };
2074
+ };
2075
+ supabase: {
2076
+ status: 'healthy' | 'degraded' | 'down';
2077
+ responseTime: number;
2078
+ lastCheck: string;
2079
+ databaseSize: string;
2080
+ activeConnections: number;
2081
+ queryPerformance: number;
2082
+ };
2083
+ overall: {
2084
+ uptime: number;
2085
+ avgResponseTime: number;
2086
+ totalIncidents: number;
2087
+ lastIncident?: string;
2088
+ };
2089
+ }
2090
+ export interface AnalyticsData {
2091
+ aiUsage: {
2092
+ totalRequests: number;
2093
+ successRate: number;
2094
+ avgResponseTime: number;
2095
+ topEndpoints: Array<{
2096
+ endpoint: string;
2097
+ requests: number;
2098
+ avgTime: number;
2099
+ }>;
2100
+ dailyUsage: Array<{
2101
+ date: string;
2102
+ requests: number;
2103
+ errors: number;
2104
+ }>;
2105
+ };
2106
+ guardianScores: {
2107
+ averageScore: number;
2108
+ totalScans: number;
2109
+ violations: number;
2110
+ complianceRate: number;
2111
+ projectScores: Array<{
2112
+ projectId: string;
2113
+ projectName: string;
2114
+ score: number;
2115
+ lastScan: string;
2116
+ }>;
2117
+ };
2118
+ buildHealth: {
2119
+ totalBuilds: number;
2120
+ successRate: number;
2121
+ avgBuildTime: number;
2122
+ recentBuilds: Array<{
2123
+ id: string;
2124
+ status: string;
2125
+ duration: number;
2126
+ timestamp: string;
2127
+ }>;
2128
+ };
2129
+ systemHealth: {
2130
+ uptime: number;
2131
+ memoryUsage: number;
2132
+ cpuUsage: number;
2133
+ activeUsers: number;
2134
+ };
2135
+ }
2136
+ export interface AgentContext {
2137
+ projectId: string;
2138
+ spec?: any;
2139
+ task?: any;
2140
+ constitution?: string;
2141
+ previousActions?: any[];
2142
+ linkedModels?: any[];
2143
+ }
2144
+ export interface AgentOutput {
2145
+ result: string;
2146
+ artifacts?: Array<{
2147
+ type: string;
2148
+ name: string;
2149
+ content: string;
2150
+ }>;
2151
+ tokensUsed?: number;
2152
+ modelUsed?: string;
2153
+ attemptCount?: number;
2154
+ }
2155
+ export interface TabsContextValue {
2156
+ value: string;
2157
+ onValueChange: (value: string) => void;
2158
+ }
2159
+ export interface TabsProps {
2160
+ value?: string;
2161
+ defaultValue?: string;
2162
+ onValueChange?: (value: string) => void;
2163
+ className?: string;
2164
+ children: ReactNode;
2165
+ }
2166
+ export interface TabsListProps {
2167
+ className?: string;
2168
+ children: ReactNode;
2169
+ }
2170
+ export interface TabsTriggerProps {
2171
+ value: string;
2172
+ className?: string;
2173
+ children: ReactNode;
2174
+ disabled?: boolean;
2175
+ }
2176
+ export interface TabsContentProps {
2177
+ value: string;
2178
+ className?: string;
2179
+ children: ReactNode;
2180
+ }
2181
+ export type { ConsoleEntryLevel, ConsoleEntry, WorkflowSidebarNavProps, WorkflowFooterNavProps, ProjectWorkflowHubUiPhase, ProjectWorkflowHubPageContract, ProjectCommandCenterHeaderProps, WorkflowNextStepBarProps, } from './workflow-command-center';
2182
+ export type { StageCompletionResult, StageRegistryCompletionBlocker, StageRegistryCompletionBlockerCode, StepCompletionResult, WorkflowStepCompletionReason, } from './workflow-completion';
2183
+ export type { CiApplyPostSuccess, CiIngestPostSuccess, CiCdStatus, CiPrClassification, CiPrSupersededEvidence, CiRun, CiRunsListResponse, CiStatusGet, CiStatusPerPrEntry, CiStatusResponse, CiStatusState, PrCheckRun, } from './ci';
2184
+ export type { AIManuscriptChecksInput, ManuscriptChecksCheckType, ManuscriptChecksIssue, ManuscriptChecksPostResponse, ManuscriptChecksReport, ManuscriptChecksSliceResult, } from './manuscript-checks';
2185
+ export * from './community-stage';
2186
+ export * from './community-operator-role';
2187
+ export * from './community-membership-tier';