@neuraloom/contracts 0.0.0-stage → 0.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1141) hide show
  1. package/dist/analytics/community-movie/attribution.schema.d.ts +264 -0
  2. package/dist/analytics/community-movie/attribution.schema.js +57 -0
  3. package/dist/analytics/community-movie/consent.schema.d.ts +15 -0
  4. package/dist/analytics/community-movie/consent.schema.js +16 -0
  5. package/dist/analytics/community-movie/event-names.d.ts +11 -0
  6. package/dist/analytics/community-movie/event-names.js +113 -0
  7. package/dist/analytics/community-movie/event-params.schema.d.ts +622 -0
  8. package/dist/analytics/community-movie/event-params.schema.js +416 -0
  9. package/dist/analytics/community-movie/event-registry.d.ts +11 -0
  10. package/dist/analytics/community-movie/event-registry.js +486 -0
  11. package/dist/analytics/community-movie/index.d.ts +6 -0
  12. package/dist/analytics/community-movie/index.js +22 -0
  13. package/dist/analytics/community-movie/telemetry-record.schema.d.ts +157 -0
  14. package/dist/analytics/community-movie/telemetry-record.schema.js +26 -0
  15. package/dist/analytics/index.d.ts +1 -0
  16. package/dist/analytics/index.js +17 -0
  17. package/dist/community/actor-builder-options.d.ts +43 -0
  18. package/dist/community/actor-builder-options.js +197 -0
  19. package/dist/constants/AGENT_MCP_PERMISSIONS.d.ts +26 -0
  20. package/dist/constants/AGENT_MCP_PERMISSIONS.js +122 -0
  21. package/dist/constants/AGENT_ROLES.d.ts +37 -0
  22. package/dist/constants/AGENT_ROLES.js +199 -0
  23. package/dist/constants/audiobook-embed-placeholder-url.d.ts +5 -0
  24. package/dist/constants/audiobook-embed-placeholder-url.js +8 -0
  25. package/dist/constants/ci-config.d.ts +4 -0
  26. package/dist/constants/ci-config.js +7 -0
  27. package/dist/constants/kg-implement-stable-keys.d.ts +9 -0
  28. package/dist/constants/kg-implement-stable-keys.js +26 -0
  29. package/dist/constants/knowledge-edge-relation.d.ts +49 -0
  30. package/dist/constants/knowledge-edge-relation.js +42 -0
  31. package/dist/constants/knowledge-node.d.ts +21 -0
  32. package/dist/constants/knowledge-node.js +20 -0
  33. package/dist/constants/mission-control-nav.d.ts +13 -0
  34. package/dist/constants/mission-control-nav.js +75 -0
  35. package/dist/constants/model-mode-preset-defaults.d.ts +5 -0
  36. package/dist/constants/model-mode-preset-defaults.js +65 -0
  37. package/dist/constants/model-policies.d.ts +37 -0
  38. package/dist/constants/model-policies.js +656 -0
  39. package/dist/constants/navConfig.d.ts +43 -0
  40. package/dist/constants/navConfig.js +132 -0
  41. package/dist/constants/orchestration-execution.d.ts +5 -0
  42. package/dist/constants/orchestration-execution.js +10 -0
  43. package/dist/constants/payload-schema-map.d.ts +22 -0
  44. package/dist/constants/payload-schema-map.js +375 -0
  45. package/dist/constants/phase-guardian.d.ts +17 -0
  46. package/dist/constants/phase-guardian.js +43 -0
  47. package/dist/constants/pipeline-step-stages.d.ts +73 -0
  48. package/dist/constants/pipeline-step-stages.js +342 -0
  49. package/dist/constants/project-control-nav.d.ts +29 -0
  50. package/dist/constants/project-control-nav.js +65 -0
  51. package/dist/constants/software-index-targets.d.ts +17 -0
  52. package/dist/constants/software-index-targets.js +46 -0
  53. package/dist/constants/step-tools.d.ts +32 -0
  54. package/dist/constants/step-tools.js +53 -0
  55. package/dist/constants/workflow-agent-defaults.d.ts +4 -0
  56. package/dist/constants/workflow-agent-defaults.js +15 -0
  57. package/dist/constants/workflow-api-errors.d.ts +5 -0
  58. package/dist/constants/workflow-api-errors.js +8 -0
  59. package/dist/constants/workflow-phase-groups.d.ts +34 -0
  60. package/dist/constants/workflow-phase-groups.js +46 -0
  61. package/dist/constants/workflow-registry.d.ts +77 -0
  62. package/dist/constants/workflow-registry.js +421 -0
  63. package/dist/constants/workflow-semantics.d.ts +19 -0
  64. package/dist/constants/workflow-semantics.js +432 -0
  65. package/dist/constants/workflow-vocabulary.d.ts +23 -0
  66. package/dist/constants/workflow-vocabulary.js +227 -0
  67. package/dist/constants/workflow.d.ts +7 -0
  68. package/dist/constants/workflow.js +23 -0
  69. package/dist/data/model-registry.d.ts +36 -0
  70. package/dist/data/model-registry.js +59 -0
  71. package/dist/index.d.ts +47 -0
  72. package/dist/index.js +90 -0
  73. package/dist/integration/index.d.ts +8 -0
  74. package/dist/integration/index.js +24 -0
  75. package/dist/integration/schema-hash-manifest.json +26 -0
  76. package/dist/lib/graph-edge-resolve.d.ts +3 -0
  77. package/dist/lib/graph-edge-resolve.js +20 -0
  78. package/dist/lib/graph-id.d.ts +16 -0
  79. package/dist/lib/graph-id.js +169 -0
  80. package/dist/lib/step-navigation.d.ts +35 -0
  81. package/dist/lib/step-navigation.js +218 -0
  82. package/dist/marketing/acquisition-landing-matrix.d.ts +46 -0
  83. package/dist/marketing/acquisition-landing-matrix.js +64 -0
  84. package/dist/marketing/acquisition-recommendation.schema.d.ts +284 -0
  85. package/dist/marketing/acquisition-recommendation.schema.js +84 -0
  86. package/dist/marketing/ads-account.schema.d.ts +46 -0
  87. package/dist/marketing/ads-account.schema.js +15 -0
  88. package/dist/marketing/ads-ad-group.schema.d.ts +52 -0
  89. package/dist/marketing/ads-ad-group.schema.js +17 -0
  90. package/dist/marketing/ads-campaign.schema.d.ts +59 -0
  91. package/dist/marketing/ads-campaign.schema.js +18 -0
  92. package/dist/marketing/ads-conversion-action.schema.d.ts +60 -0
  93. package/dist/marketing/ads-conversion-action.schema.js +27 -0
  94. package/dist/marketing/ads-keyword.schema.d.ts +59 -0
  95. package/dist/marketing/ads-keyword.schema.js +19 -0
  96. package/dist/marketing/ads-metrics-daily.schema.d.ts +95 -0
  97. package/dist/marketing/ads-metrics-daily.schema.js +24 -0
  98. package/dist/marketing/ads-overview.schema.d.ts +479 -0
  99. package/dist/marketing/ads-overview.schema.js +44 -0
  100. package/dist/marketing/ads-query.schema.d.ts +33 -0
  101. package/dist/marketing/ads-query.schema.js +13 -0
  102. package/dist/marketing/ads-search-term.schema.d.ts +70 -0
  103. package/dist/marketing/ads-search-term.schema.js +19 -0
  104. package/dist/marketing/campaign-asset.schema.d.ts +51 -0
  105. package/dist/marketing/campaign-asset.schema.js +39 -0
  106. package/dist/marketing/community-movie-ads-free-signup-campaign.d.ts +23 -0
  107. package/dist/marketing/community-movie-ads-free-signup-campaign.js +29 -0
  108. package/dist/marketing/community-movie-campaign-matrix.d.ts +47 -0
  109. package/dist/marketing/community-movie-campaign-matrix.js +265 -0
  110. package/dist/marketing/community-movie-google-ads.constants.d.ts +49 -0
  111. package/dist/marketing/community-movie-google-ads.constants.js +59 -0
  112. package/dist/marketing/config.schema.d.ts +32 -0
  113. package/dist/marketing/config.schema.js +31 -0
  114. package/dist/marketing/date-range.schema.d.ts +12 -0
  115. package/dist/marketing/date-range.schema.js +10 -0
  116. package/dist/marketing/entities/index.d.ts +6 -0
  117. package/dist/marketing/entities/index.js +11 -0
  118. package/dist/marketing/ga4-conversion.schema.d.ts +87 -0
  119. package/dist/marketing/ga4-conversion.schema.js +22 -0
  120. package/dist/marketing/ga4-event.schema.d.ts +98 -0
  121. package/dist/marketing/ga4-event.schema.js +23 -0
  122. package/dist/marketing/ga4-funnel.schema.d.ts +90 -0
  123. package/dist/marketing/ga4-funnel.schema.js +23 -0
  124. package/dist/marketing/ga4-landing-page.schema.d.ts +131 -0
  125. package/dist/marketing/ga4-landing-page.schema.js +25 -0
  126. package/dist/marketing/ga4-overview.schema.d.ts +478 -0
  127. package/dist/marketing/ga4-overview.schema.js +31 -0
  128. package/dist/marketing/ga4-query.schema.d.ts +19 -0
  129. package/dist/marketing/ga4-query.schema.js +27 -0
  130. package/dist/marketing/ga4-retention.schema.d.ts +79 -0
  131. package/dist/marketing/ga4-retention.schema.js +21 -0
  132. package/dist/marketing/ga4-traffic.schema.d.ts +154 -0
  133. package/dist/marketing/ga4-traffic.schema.js +27 -0
  134. package/dist/marketing/gsc-organic-overview.schema.d.ts +338 -0
  135. package/dist/marketing/gsc-organic-overview.schema.js +28 -0
  136. package/dist/marketing/gsc-organic-query.schema.d.ts +121 -0
  137. package/dist/marketing/gsc-organic-query.schema.js +24 -0
  138. package/dist/marketing/gsc-page-performance.schema.d.ts +121 -0
  139. package/dist/marketing/gsc-page-performance.schema.js +24 -0
  140. package/dist/marketing/gsc-query.schema.d.ts +19 -0
  141. package/dist/marketing/gsc-query.schema.js +27 -0
  142. package/dist/marketing/index.d.ts +47 -0
  143. package/dist/marketing/index.js +63 -0
  144. package/dist/marketing/marketing-attribution-summary.schema.d.ts +165 -0
  145. package/dist/marketing/marketing-attribution-summary.schema.js +26 -0
  146. package/dist/marketing/marketing-challenge-performance.schema.d.ts +139 -0
  147. package/dist/marketing/marketing-challenge-performance.schema.js +28 -0
  148. package/dist/marketing/marketing-conversion-enqueue.schema.d.ts +88 -0
  149. package/dist/marketing/marketing-conversion-enqueue.schema.js +34 -0
  150. package/dist/marketing/marketing-executive-overview.schema.d.ts +1865 -0
  151. package/dist/marketing/marketing-executive-overview.schema.js +39 -0
  152. package/dist/marketing/marketing-health.schema.d.ts +366 -0
  153. package/dist/marketing/marketing-health.schema.js +65 -0
  154. package/dist/marketing/marketing-keyword-opportunity.schema.d.ts +158 -0
  155. package/dist/marketing/marketing-keyword-opportunity.schema.js +34 -0
  156. package/dist/marketing/marketing-landing-page-intelligence.schema.d.ts +159 -0
  157. package/dist/marketing/marketing-landing-page-intelligence.schema.js +30 -0
  158. package/dist/marketing/marketing-readiness.schema.d.ts +506 -0
  159. package/dist/marketing/marketing-readiness.schema.js +83 -0
  160. package/dist/marketing/marketing-test-traffic.d.ts +6 -0
  161. package/dist/marketing/marketing-test-traffic.js +28 -0
  162. package/dist/marketing/marketing-visibility-overview.schema.d.ts +949 -0
  163. package/dist/marketing/marketing-visibility-overview.schema.js +42 -0
  164. package/dist/marketing/marketing-world-catalog.d.ts +10 -0
  165. package/dist/marketing/marketing-world-catalog.js +16 -0
  166. package/dist/marketing/marketing-world-performance.schema.d.ts +179 -0
  167. package/dist/marketing/marketing-world-performance.schema.js +32 -0
  168. package/dist/marketing/routes.d.ts +77 -0
  169. package/dist/marketing/routes.js +79 -0
  170. package/dist/marketing/search-negative-keywords.d.ts +6 -0
  171. package/dist/marketing/search-negative-keywords.js +30 -0
  172. package/dist/registry/schema-registry.d.ts +74 -0
  173. package/dist/registry/schema-registry.js +1148 -0
  174. package/dist/registry/table-ownership-registry.d.ts +57 -0
  175. package/dist/registry/table-ownership-registry.js +932 -0
  176. package/dist/routes/assurance.d.ts +6 -0
  177. package/dist/routes/assurance.js +14 -0
  178. package/dist/routes/community-operator.d.ts +117 -0
  179. package/dist/routes/community-operator.js +119 -0
  180. package/dist/routes/community.d.ts +232 -0
  181. package/dist/routes/community.js +246 -0
  182. package/dist/routes/index.d.ts +2203 -0
  183. package/dist/routes/index.js +1440 -0
  184. package/dist/schemas/ai/ai-generate-inputs.schema.d.ts +2056 -0
  185. package/dist/schemas/ai/ai-generate-inputs.schema.js +167 -0
  186. package/dist/schemas/ai/ai-run-metadata.schema.d.ts +39 -0
  187. package/dist/schemas/ai/ai-run-metadata.schema.js +24 -0
  188. package/dist/schemas/ai/ai-runs-list.schema.d.ts +248 -0
  189. package/dist/schemas/ai/ai-runs-list.schema.js +27 -0
  190. package/dist/schemas/ai/analytics-generate.schema.d.ts +185 -0
  191. package/dist/schemas/ai/analytics-generate.schema.js +59 -0
  192. package/dist/schemas/ai/api-generate.schema.d.ts +49 -0
  193. package/dist/schemas/ai/api-generate.schema.js +16 -0
  194. package/dist/schemas/ai/api.schema.d.ts +80 -0
  195. package/dist/schemas/ai/api.schema.js +22 -0
  196. package/dist/schemas/ai/architecture-generate.schema.d.ts +47 -0
  197. package/dist/schemas/ai/architecture-generate.schema.js +19 -0
  198. package/dist/schemas/ai/argument-map-generate.schema.d.ts +433 -0
  199. package/dist/schemas/ai/argument-map-generate.schema.js +62 -0
  200. package/dist/schemas/ai/audit-existing-output-evidence.schema.d.ts +153 -0
  201. package/dist/schemas/ai/audit-existing-output-evidence.schema.js +46 -0
  202. package/dist/schemas/ai/brief-improve-generate.schema.d.ts +2291 -0
  203. package/dist/schemas/ai/brief-improve-generate.schema.js +293 -0
  204. package/dist/schemas/ai/chapter-revision.schema.d.ts +817 -0
  205. package/dist/schemas/ai/chapter-revision.schema.js +267 -0
  206. package/dist/schemas/ai/code-generate.schema.d.ts +1492 -0
  207. package/dist/schemas/ai/code-generate.schema.js +46 -0
  208. package/dist/schemas/ai/community-pitch-critique-generate.schema.d.ts +31 -0
  209. package/dist/schemas/ai/community-pitch-critique-generate.schema.js +17 -0
  210. package/dist/schemas/ai/community-suggestion-summary-generate.schema.d.ts +34 -0
  211. package/dist/schemas/ai/community-suggestion-summary-generate.schema.js +19 -0
  212. package/dist/schemas/ai/compliance-generate.schema.d.ts +24 -0
  213. package/dist/schemas/ai/compliance-generate.schema.js +11 -0
  214. package/dist/schemas/ai/compliance.schema.d.ts +58 -0
  215. package/dist/schemas/ai/compliance.schema.js +22 -0
  216. package/dist/schemas/ai/constitution-generate.schema.d.ts +221 -0
  217. package/dist/schemas/ai/constitution-generate.schema.js +52 -0
  218. package/dist/schemas/ai/constitution-kg-gate-status.schema.d.ts +33 -0
  219. package/dist/schemas/ai/constitution-kg-gate-status.schema.js +15 -0
  220. package/dist/schemas/ai/constitution-validate-input.schema.d.ts +18 -0
  221. package/dist/schemas/ai/constitution-validate-input.schema.js +10 -0
  222. package/dist/schemas/ai/constitution-writing-generate.schema.d.ts +437 -0
  223. package/dist/schemas/ai/constitution-writing-generate.schema.js +70 -0
  224. package/dist/schemas/ai/constitution.schema.d.ts +19 -0
  225. package/dist/schemas/ai/constitution.schema.js +12 -0
  226. package/dist/schemas/ai/counterclaim-framework-generate.schema.d.ts +479 -0
  227. package/dist/schemas/ai/counterclaim-framework-generate.schema.js +66 -0
  228. package/dist/schemas/ai/coverage-generate.schema.d.ts +61 -0
  229. package/dist/schemas/ai/coverage-generate.schema.js +27 -0
  230. package/dist/schemas/ai/definitions-generate.schema.d.ts +448 -0
  231. package/dist/schemas/ai/definitions-generate.schema.js +62 -0
  232. package/dist/schemas/ai/deployments-generate.schema.d.ts +40 -0
  233. package/dist/schemas/ai/deployments-generate.schema.js +18 -0
  234. package/dist/schemas/ai/docs-generate.schema.d.ts +51 -0
  235. package/dist/schemas/ai/docs-generate.schema.js +18 -0
  236. package/dist/schemas/ai/domain-context.d.ts +58 -0
  237. package/dist/schemas/ai/domain-context.js +185 -0
  238. package/dist/schemas/ai/draft-generate.schema.d.ts +32 -0
  239. package/dist/schemas/ai/draft-generate.schema.js +17 -0
  240. package/dist/schemas/ai/editorial-guardian-generate.schema.d.ts +470 -0
  241. package/dist/schemas/ai/editorial-guardian-generate.schema.js +60 -0
  242. package/dist/schemas/ai/editorial-revise-chapter.schema.d.ts +411 -0
  243. package/dist/schemas/ai/editorial-revise-chapter.schema.js +83 -0
  244. package/dist/schemas/ai/film-clip-review-generate.schema.d.ts +291 -0
  245. package/dist/schemas/ai/film-clip-review-generate.schema.js +35 -0
  246. package/dist/schemas/ai/film-keyframe-generate.schema.d.ts +359 -0
  247. package/dist/schemas/ai/film-keyframe-generate.schema.js +28 -0
  248. package/dist/schemas/ai/film-keyframe-register.schema.d.ts +67 -0
  249. package/dist/schemas/ai/film-keyframe-register.schema.js +16 -0
  250. package/dist/schemas/ai/film-shot-risk-assess.schema.d.ts +12 -0
  251. package/dist/schemas/ai/film-shot-risk-assess.schema.js +10 -0
  252. package/dist/schemas/ai/film-still-review-generate.schema.d.ts +232 -0
  253. package/dist/schemas/ai/film-still-review-generate.schema.js +31 -0
  254. package/dist/schemas/ai/film-workflow-generate.schema.d.ts +117 -0
  255. package/dist/schemas/ai/film-workflow-generate.schema.js +33 -0
  256. package/dist/schemas/ai/generate-response.schema.d.ts +66 -0
  257. package/dist/schemas/ai/generate-response.schema.js +26 -0
  258. package/dist/schemas/ai/guardian-gate-status.schema.d.ts +112 -0
  259. package/dist/schemas/ai/guardian-gate-status.schema.js +17 -0
  260. package/dist/schemas/ai/guardian-kg-gate-status.schema.d.ts +58 -0
  261. package/dist/schemas/ai/guardian-kg-gate-status.schema.js +30 -0
  262. package/dist/schemas/ai/guardian-rule-detail.schema.d.ts +74 -0
  263. package/dist/schemas/ai/guardian-rule-detail.schema.js +19 -0
  264. package/dist/schemas/ai/guardian-score-history.schema.d.ts +75 -0
  265. package/dist/schemas/ai/guardian-score-history.schema.js +16 -0
  266. package/dist/schemas/ai/implement-graph.schema.d.ts +323 -0
  267. package/dist/schemas/ai/implement-graph.schema.js +51 -0
  268. package/dist/schemas/ai/implement-kg-gate-status.schema.d.ts +36 -0
  269. package/dist/schemas/ai/implement-kg-gate-status.schema.js +16 -0
  270. package/dist/schemas/ai/implement.schema.d.ts +73 -0
  271. package/dist/schemas/ai/implement.schema.js +23 -0
  272. package/dist/schemas/ai/index.d.ts +46 -0
  273. package/dist/schemas/ai/index.js +62 -0
  274. package/dist/schemas/ai/knowledge-kg-gate-status.schema.d.ts +73 -0
  275. package/dist/schemas/ai/knowledge-kg-gate-status.schema.js +24 -0
  276. package/dist/schemas/ai/knowledge-search-generate.schema.d.ts +2 -0
  277. package/dist/schemas/ai/knowledge-search-generate.schema.js +6 -0
  278. package/dist/schemas/ai/manuscript-checks.schema.d.ts +6095 -0
  279. package/dist/schemas/ai/manuscript-checks.schema.js +440 -0
  280. package/dist/schemas/ai/model-policy/index.d.ts +9 -0
  281. package/dist/schemas/ai/model-policy/index.js +25 -0
  282. package/dist/schemas/ai/model-policy/model-mode-preset.schema.d.ts +83 -0
  283. package/dist/schemas/ai/model-policy/model-mode-preset.schema.js +20 -0
  284. package/dist/schemas/ai/model-policy/model-modes.schema.d.ts +13 -0
  285. package/dist/schemas/ai/model-policy/model-modes.schema.js +27 -0
  286. package/dist/schemas/ai/model-policy/model-policy-resolved.schema.d.ts +44 -0
  287. package/dist/schemas/ai/model-policy/model-policy-resolved.schema.js +27 -0
  288. package/dist/schemas/ai/model-policy/model-quality-summary.schema.d.ts +133 -0
  289. package/dist/schemas/ai/model-policy/model-quality-summary.schema.js +35 -0
  290. package/dist/schemas/ai/model-policy/model-usage-summary.schema.d.ts +204 -0
  291. package/dist/schemas/ai/model-policy/model-usage-summary.schema.js +38 -0
  292. package/dist/schemas/ai/model-policy/project-model-policy.schema.d.ts +1311 -0
  293. package/dist/schemas/ai/model-policy/project-model-policy.schema.js +33 -0
  294. package/dist/schemas/ai/model-policy/workflow-phase-model-override.schema.d.ts +66 -0
  295. package/dist/schemas/ai/model-policy/workflow-phase-model-override.schema.js +48 -0
  296. package/dist/schemas/ai/model-policy/workflow-step-ids.schema.d.ts +2 -0
  297. package/dist/schemas/ai/model-policy/workflow-step-ids.schema.js +24 -0
  298. package/dist/schemas/ai/model-policy/workflow-step-model-override.schema.d.ts +63 -0
  299. package/dist/schemas/ai/model-policy/workflow-step-model-override.schema.js +43 -0
  300. package/dist/schemas/ai/orchestration-generate-fields.schema.d.ts +9 -0
  301. package/dist/schemas/ai/orchestration-generate-fields.schema.js +8 -0
  302. package/dist/schemas/ai/payload-json-schemas.d.ts +110 -0
  303. package/dist/schemas/ai/payload-json-schemas.js +154 -0
  304. package/dist/schemas/ai/plan.schema.d.ts +137 -0
  305. package/dist/schemas/ai/plan.schema.js +36 -0
  306. package/dist/schemas/ai/refine-fields.schema.d.ts +34 -0
  307. package/dist/schemas/ai/refine-fields.schema.js +27 -0
  308. package/dist/schemas/ai/review-generate.schema.d.ts +35 -0
  309. package/dist/schemas/ai/review-generate.schema.js +15 -0
  310. package/dist/schemas/ai/review.schema.d.ts +77 -0
  311. package/dist/schemas/ai/review.schema.js +29 -0
  312. package/dist/schemas/ai/run-trace.schema.d.ts +105 -0
  313. package/dist/schemas/ai/run-trace.schema.js +43 -0
  314. package/dist/schemas/ai/schema-generate.schema.d.ts +185 -0
  315. package/dist/schemas/ai/schema-generate.schema.js +44 -0
  316. package/dist/schemas/ai/schema.schema.d.ts +205 -0
  317. package/dist/schemas/ai/schema.schema.js +50 -0
  318. package/dist/schemas/ai/screenplay.schema.d.ts +550 -0
  319. package/dist/schemas/ai/screenplay.schema.js +77 -0
  320. package/dist/schemas/ai/source-registry-generate.schema.d.ts +245 -0
  321. package/dist/schemas/ai/source-registry-generate.schema.js +41 -0
  322. package/dist/schemas/ai/spec.schema.d.ts +248 -0
  323. package/dist/schemas/ai/spec.schema.js +78 -0
  324. package/dist/schemas/ai/style-system-generate.schema.d.ts +319 -0
  325. package/dist/schemas/ai/style-system-generate.schema.js +67 -0
  326. package/dist/schemas/ai/tasks-kg-gate-status.schema.d.ts +24 -0
  327. package/dist/schemas/ai/tasks-kg-gate-status.schema.js +12 -0
  328. package/dist/schemas/ai/tasks.schema.d.ts +49 -0
  329. package/dist/schemas/ai/tasks.schema.js +17 -0
  330. package/dist/schemas/ai/ui-generation-standard.schema.d.ts +42 -0
  331. package/dist/schemas/ai/ui-generation-standard.schema.js +40 -0
  332. package/dist/schemas/ai/ui-kg-gate-status.schema.d.ts +42 -0
  333. package/dist/schemas/ai/ui-kg-gate-status.schema.js +18 -0
  334. package/dist/schemas/ai/ui.schema.d.ts +22 -0
  335. package/dist/schemas/ai/ui.schema.js +13 -0
  336. package/dist/schemas/ai/workflow-artifacts.schema.d.ts +36075 -0
  337. package/dist/schemas/ai/workflow-artifacts.schema.js +2829 -0
  338. package/dist/schemas/ai/workflow-execution-mode.schema.d.ts +4 -0
  339. package/dist/schemas/ai/workflow-execution-mode.schema.js +6 -0
  340. package/dist/schemas/ai/writing-draft-all-generate.schema.d.ts +3444 -0
  341. package/dist/schemas/ai/writing-draft-all-generate.schema.js +319 -0
  342. package/dist/schemas/ai/writing-tasks-generate.schema.d.ts +283 -0
  343. package/dist/schemas/ai/writing-tasks-generate.schema.js +52 -0
  344. package/dist/schemas/ai/zod-openai-json-schema.d.ts +2 -0
  345. package/dist/schemas/ai/zod-openai-json-schema.js +67 -0
  346. package/dist/schemas/ai-ci-generate.d.ts +47 -0
  347. package/dist/schemas/ai-ci-generate.js +19 -0
  348. package/dist/schemas/ai-llm-outputs.d.ts +52 -0
  349. package/dist/schemas/ai-llm-outputs.js +26 -0
  350. package/dist/schemas/api/create-orchestration-request.schema.d.ts +13 -0
  351. package/dist/schemas/api/create-orchestration-request.schema.js +10 -0
  352. package/dist/schemas/api/implement-orchestration-session.schema.d.ts +26 -0
  353. package/dist/schemas/api/implement-orchestration-session.schema.js +11 -0
  354. package/dist/schemas/api/orchestration-events-list-response.schema.d.ts +108 -0
  355. package/dist/schemas/api/orchestration-events-list-response.schema.js +27 -0
  356. package/dist/schemas/api/plans-list-response.schema.d.ts +203 -0
  357. package/dist/schemas/api/plans-list-response.schema.js +35 -0
  358. package/dist/schemas/api/project-model-usage-query.schema.d.ts +24 -0
  359. package/dist/schemas/api/project-model-usage-query.schema.js +42 -0
  360. package/dist/schemas/api/specs-list-response.schema.d.ts +78 -0
  361. package/dist/schemas/api/specs-list-response.schema.js +23 -0
  362. package/dist/schemas/api-envelope.schema.d.ts +131 -0
  363. package/dist/schemas/api-envelope.schema.js +60 -0
  364. package/dist/schemas/artifacts/artifact-upload-proxy.schema.d.ts +27 -0
  365. package/dist/schemas/artifacts/artifact-upload-proxy.schema.js +15 -0
  366. package/dist/schemas/assurance/assurance-mode.schema.d.ts +33 -0
  367. package/dist/schemas/assurance/assurance-mode.schema.js +25 -0
  368. package/dist/schemas/assurance/browser-outcome-proof.schema.d.ts +164 -0
  369. package/dist/schemas/assurance/browser-outcome-proof.schema.js +58 -0
  370. package/dist/schemas/assurance/computation-authority-registry.schema.d.ts +108 -0
  371. package/dist/schemas/assurance/computation-authority-registry.schema.js +36 -0
  372. package/dist/schemas/assurance/documentation-evidence.schema.d.ts +131 -0
  373. package/dist/schemas/assurance/documentation-evidence.schema.js +44 -0
  374. package/dist/schemas/assurance/domain-assurance-evidence-pack.schema.d.ts +743 -0
  375. package/dist/schemas/assurance/domain-assurance-evidence-pack.schema.js +28 -0
  376. package/dist/schemas/assurance/domain-assurance-verdict.schema.d.ts +40 -0
  377. package/dist/schemas/assurance/domain-assurance-verdict.schema.js +24 -0
  378. package/dist/schemas/assurance/domain-truth-brief.schema.d.ts +270 -0
  379. package/dist/schemas/assurance/domain-truth-brief.schema.js +73 -0
  380. package/dist/schemas/assurance/enterprise-targeting.schema.d.ts +46 -0
  381. package/dist/schemas/assurance/enterprise-targeting.schema.js +24 -0
  382. package/dist/schemas/assurance/gate-result.schema.d.ts +35 -0
  383. package/dist/schemas/assurance/gate-result.schema.js +35 -0
  384. package/dist/schemas/assurance/index.d.ts +13 -0
  385. package/dist/schemas/assurance/index.js +30 -0
  386. package/dist/schemas/assurance/provider-call-ledger.schema.d.ts +97 -0
  387. package/dist/schemas/assurance/provider-call-ledger.schema.js +36 -0
  388. package/dist/schemas/assurance/provider-ledger-response.schema.d.ts +113 -0
  389. package/dist/schemas/assurance/provider-ledger-response.schema.js +29 -0
  390. package/dist/schemas/assurance/release-verdict.schema.d.ts +87 -0
  391. package/dist/schemas/assurance/release-verdict.schema.js +47 -0
  392. package/dist/schemas/assurance/risk-class.schema.d.ts +30 -0
  393. package/dist/schemas/assurance/risk-class.schema.js +33 -0
  394. package/dist/schemas/audiobook/alice-pronunciation.schema.d.ts +80 -0
  395. package/dist/schemas/audiobook/alice-pronunciation.schema.js +45 -0
  396. package/dist/schemas/audiobook/audiobook-api.schema.d.ts +1937 -0
  397. package/dist/schemas/audiobook/audiobook-api.schema.js +201 -0
  398. package/dist/schemas/audiobook/audiobook-artifacts.schema.d.ts +4069 -0
  399. package/dist/schemas/audiobook/audiobook-artifacts.schema.js +469 -0
  400. package/dist/schemas/audiobook/audiobook-studio.schema.d.ts +670 -0
  401. package/dist/schemas/audiobook/audiobook-studio.schema.js +159 -0
  402. package/dist/schemas/audiobook/audiobook-validation.d.ts +227 -0
  403. package/dist/schemas/audiobook/audiobook-validation.js +23 -0
  404. package/dist/schemas/audiobook/chunk-narration-script.d.ts +17 -0
  405. package/dist/schemas/audiobook/chunk-narration-script.js +96 -0
  406. package/dist/schemas/audiobook/elevenlabs-provider.schema.d.ts +167 -0
  407. package/dist/schemas/audiobook/elevenlabs-provider.schema.js +93 -0
  408. package/dist/schemas/audiobook/index.d.ts +8 -0
  409. package/dist/schemas/audiobook/index.js +24 -0
  410. package/dist/schemas/audiobook/narration-chunk.schema.d.ts +114 -0
  411. package/dist/schemas/audiobook/narration-chunk.schema.js +38 -0
  412. package/dist/schemas/audiobook-embed/audiobook-embed.schema.d.ts +1732 -0
  413. package/dist/schemas/audiobook-embed/audiobook-embed.schema.js +259 -0
  414. package/dist/schemas/auth/session-context.schema.d.ts +177 -0
  415. package/dist/schemas/auth/session-context.schema.js +40 -0
  416. package/dist/schemas/cache/cache-ai-response.schema.d.ts +50 -0
  417. package/dist/schemas/cache/cache-ai-response.schema.js +28 -0
  418. package/dist/schemas/ci/ci-allow-skip-actionlint-patch.schema.d.ts +16 -0
  419. package/dist/schemas/ci/ci-allow-skip-actionlint-patch.schema.js +12 -0
  420. package/dist/schemas/ci/ci-apply-post-success.schema.d.ts +24 -0
  421. package/dist/schemas/ci/ci-apply-post-success.schema.js +15 -0
  422. package/dist/schemas/ci/ci-canonical-readiness.schema.d.ts +155 -0
  423. package/dist/schemas/ci/ci-canonical-readiness.schema.js +47 -0
  424. package/dist/schemas/ci/ci-dispatch-post.schema.d.ts +34 -0
  425. package/dist/schemas/ci/ci-dispatch-post.schema.js +20 -0
  426. package/dist/schemas/ci/ci-ingest-post.schema.d.ts +37 -0
  427. package/dist/schemas/ci/ci-ingest-post.schema.js +22 -0
  428. package/dist/schemas/ci/ci-operator-ready-patch.schema.d.ts +13 -0
  429. package/dist/schemas/ci/ci-operator-ready-patch.schema.js +11 -0
  430. package/dist/schemas/ci/ci-pipeline-status.schema.d.ts +3 -0
  431. package/dist/schemas/ci/ci-pipeline-status.schema.js +13 -0
  432. package/dist/schemas/ci/ci-run.schema.d.ts +44 -0
  433. package/dist/schemas/ci/ci-run.schema.js +27 -0
  434. package/dist/schemas/ci/ci-runs-list-response.schema.d.ts +91 -0
  435. package/dist/schemas/ci/ci-runs-list-response.schema.js +13 -0
  436. package/dist/schemas/ci/ci-status-get.schema.d.ts +155 -0
  437. package/dist/schemas/ci/ci-status-get.schema.js +12 -0
  438. package/dist/schemas/ci/ci-status-response.schema.d.ts +554 -0
  439. package/dist/schemas/ci/ci-status-response.schema.js +151 -0
  440. package/dist/schemas/ci/index.d.ts +12 -0
  441. package/dist/schemas/ci/index.js +28 -0
  442. package/dist/schemas/ci/pr-check-run.schema.d.ts +44 -0
  443. package/dist/schemas/ci/pr-check-run.schema.js +21 -0
  444. package/dist/schemas/ci/project-engine-context.schema.d.ts +70 -0
  445. package/dist/schemas/ci/project-engine-context.schema.js +26 -0
  446. package/dist/schemas/community/community-actor-comment-body.schema.d.ts +9 -0
  447. package/dist/schemas/community/community-actor-comment-body.schema.js +9 -0
  448. package/dist/schemas/community/community-actor-universe-vote.schema.d.ts +10 -0
  449. package/dist/schemas/community/community-actor-universe-vote.schema.js +10 -0
  450. package/dist/schemas/community/community-ad-capi.schema.d.ts +77 -0
  451. package/dist/schemas/community/community-ad-capi.schema.js +42 -0
  452. package/dist/schemas/community/community-billing-checkout.schema.d.ts +31 -0
  453. package/dist/schemas/community/community-billing-checkout.schema.js +43 -0
  454. package/dist/schemas/community/community-challenge.schema.d.ts +43 -0
  455. package/dist/schemas/community/community-challenge.schema.js +21 -0
  456. package/dist/schemas/community/community-content-translation.schema.d.ts +99 -0
  457. package/dist/schemas/community/community-content-translation.schema.js +63 -0
  458. package/dist/schemas/community/community-credit-transaction.schema.d.ts +36 -0
  459. package/dist/schemas/community/community-credit-transaction.schema.js +19 -0
  460. package/dist/schemas/community/community-development-input.schema.d.ts +20 -0
  461. package/dist/schemas/community/community-development-input.schema.js +16 -0
  462. package/dist/schemas/community/community-development-room.schema.d.ts +28 -0
  463. package/dist/schemas/community/community-development-room.schema.js +16 -0
  464. package/dist/schemas/community/community-email.schema.d.ts +96 -0
  465. package/dist/schemas/community/community-email.schema.js +65 -0
  466. package/dist/schemas/community/community-film-playback.schema.d.ts +287 -0
  467. package/dist/schemas/community/community-film-playback.schema.js +52 -0
  468. package/dist/schemas/community/community-film-video-variant.schema.d.ts +94 -0
  469. package/dist/schemas/community/community-film-video-variant.schema.js +53 -0
  470. package/dist/schemas/community/community-film-world-marketing.schema.d.ts +27 -0
  471. package/dist/schemas/community/community-film-world-marketing.schema.js +67 -0
  472. package/dist/schemas/community/community-film.schema.d.ts +183 -0
  473. package/dist/schemas/community/community-film.schema.js +105 -0
  474. package/dist/schemas/community/community-idea-promote.schema.d.ts +4 -0
  475. package/dist/schemas/community/community-idea-promote.schema.js +6 -0
  476. package/dist/schemas/community/community-idea-submission.schema.d.ts +54 -0
  477. package/dist/schemas/community/community-idea-submission.schema.js +22 -0
  478. package/dist/schemas/community/community-idea-version.schema.d.ts +72 -0
  479. package/dist/schemas/community/community-idea-version.schema.js +28 -0
  480. package/dist/schemas/community/community-idea.schema.d.ts +71 -0
  481. package/dist/schemas/community/community-idea.schema.js +36 -0
  482. package/dist/schemas/community/community-locale.schema.d.ts +8 -0
  483. package/dist/schemas/community/community-locale.schema.js +10 -0
  484. package/dist/schemas/community/community-membership-monthly-credits.d.ts +4 -0
  485. package/dist/schemas/community/community-membership-monthly-credits.js +18 -0
  486. package/dist/schemas/community/community-membership.schema.d.ts +34 -0
  487. package/dist/schemas/community/community-membership.schema.js +19 -0
  488. package/dist/schemas/community/community-moderation-flag.schema.d.ts +31 -0
  489. package/dist/schemas/community/community-moderation-flag.schema.js +17 -0
  490. package/dist/schemas/community/community-movie-actor-blueprint.schema.d.ts +196 -0
  491. package/dist/schemas/community/community-movie-actor-blueprint.schema.js +30 -0
  492. package/dist/schemas/community/community-movie-actor-card.schema.d.ts +37 -0
  493. package/dist/schemas/community/community-movie-actor-card.schema.js +20 -0
  494. package/dist/schemas/community/community-movie-actor-create-request.schema.d.ts +102 -0
  495. package/dist/schemas/community/community-movie-actor-create-request.schema.js +24 -0
  496. package/dist/schemas/community/community-movie-actor-create-response.schema.d.ts +35 -0
  497. package/dist/schemas/community/community-movie-actor-create-response.schema.js +12 -0
  498. package/dist/schemas/community/community-movie-actor-gate-result.schema.d.ts +15 -0
  499. package/dist/schemas/community/community-movie-actor-gate-result.schema.js +11 -0
  500. package/dist/schemas/community/community-movie-actor-image-prompt-pack.schema.d.ts +22 -0
  501. package/dist/schemas/community/community-movie-actor-image-prompt-pack.schema.js +14 -0
  502. package/dist/schemas/community/community-movie-actor-kg-seed.schema.d.ts +68 -0
  503. package/dist/schemas/community/community-movie-actor-kg-seed.schema.js +31 -0
  504. package/dist/schemas/community/community-movie-actor-option-selection.schema.d.ts +43 -0
  505. package/dist/schemas/community/community-movie-actor-option-selection.schema.js +22 -0
  506. package/dist/schemas/community/community-movie-actor-portrait-url.schema.d.ts +10 -0
  507. package/dist/schemas/community/community-movie-actor-portrait-url.schema.js +10 -0
  508. package/dist/schemas/community/community-movie-actor-vote-response.schema.d.ts +13 -0
  509. package/dist/schemas/community/community-movie-actor-vote-response.schema.js +9 -0
  510. package/dist/schemas/community/community-movie-canonical-character.schema.d.ts +78 -0
  511. package/dist/schemas/community/community-movie-canonical-character.schema.js +104 -0
  512. package/dist/schemas/community/community-movie-gallery.schema.d.ts +28 -0
  513. package/dist/schemas/community/community-movie-gallery.schema.js +90 -0
  514. package/dist/schemas/community/community-movie-gate-result.schema.d.ts +46 -0
  515. package/dist/schemas/community/community-movie-gate-result.schema.js +23 -0
  516. package/dist/schemas/community/community-movie-idea-card.schema.d.ts +31 -0
  517. package/dist/schemas/community/community-movie-idea-card.schema.js +17 -0
  518. package/dist/schemas/community/community-movie-idea-input.schema.d.ts +22 -0
  519. package/dist/schemas/community/community-movie-idea-input.schema.js +14 -0
  520. package/dist/schemas/community/community-movie-idea-structured.schema.d.ts +34 -0
  521. package/dist/schemas/community/community-movie-idea-structured.schema.js +20 -0
  522. package/dist/schemas/community/community-movie-kg-seed.schema.d.ts +73 -0
  523. package/dist/schemas/community/community-movie-kg-seed.schema.js +84 -0
  524. package/dist/schemas/community/community-movie-stage-transitions.d.ts +15 -0
  525. package/dist/schemas/community/community-movie-stage-transitions.js +35 -0
  526. package/dist/schemas/community/community-movie-world-cta.schema.d.ts +75 -0
  527. package/dist/schemas/community/community-movie-world-cta.schema.js +83 -0
  528. package/dist/schemas/community/community-partner-offers.d.ts +13 -0
  529. package/dist/schemas/community/community-partner-offers.js +22 -0
  530. package/dist/schemas/community/community-partner.schema.d.ts +41 -0
  531. package/dist/schemas/community/community-partner.schema.js +23 -0
  532. package/dist/schemas/community/community-poll.schema.d.ts +54 -0
  533. package/dist/schemas/community/community-poll.schema.js +27 -0
  534. package/dist/schemas/community/community-production-operator.schema.d.ts +320 -0
  535. package/dist/schemas/community/community-production-operator.schema.js +91 -0
  536. package/dist/schemas/community/community-referral.schema.d.ts +155 -0
  537. package/dist/schemas/community/community-referral.schema.js +63 -0
  538. package/dist/schemas/community/community-signup-intake.constants.d.ts +13 -0
  539. package/dist/schemas/community/community-signup-intake.constants.js +134 -0
  540. package/dist/schemas/community/community-signup-intake.schema.d.ts +87 -0
  541. package/dist/schemas/community/community-signup-intake.schema.js +82 -0
  542. package/dist/schemas/community/community-slate.schema.d.ts +60 -0
  543. package/dist/schemas/community/community-slate.schema.js +29 -0
  544. package/dist/schemas/community/community-stage-transition.schema.d.ts +33 -0
  545. package/dist/schemas/community/community-stage-transition.schema.js +18 -0
  546. package/dist/schemas/community/community-suggestion.schema.d.ts +35 -0
  547. package/dist/schemas/community/community-suggestion.schema.js +24 -0
  548. package/dist/schemas/community/community-vote.schema.d.ts +24 -0
  549. package/dist/schemas/community/community-vote.schema.js +14 -0
  550. package/dist/schemas/community/community-waitlist.schema.d.ts +12 -0
  551. package/dist/schemas/community/community-waitlist.schema.js +10 -0
  552. package/dist/schemas/community/community-world-contribution.schema.d.ts +102 -0
  553. package/dist/schemas/community/community-world-contribution.schema.js +86 -0
  554. package/dist/schemas/community/credit-disclosure-variant.schema.d.ts +4 -0
  555. package/dist/schemas/community/credit-disclosure-variant.schema.js +6 -0
  556. package/dist/schemas/community/index.d.ts +56 -0
  557. package/dist/schemas/community/index.js +72 -0
  558. package/dist/schemas/cortex/bridge-envelope.schema.d.ts +70 -0
  559. package/dist/schemas/cortex/bridge-envelope.schema.js +77 -0
  560. package/dist/schemas/cortex/bridge-event-catalogue.d.ts +14 -0
  561. package/dist/schemas/cortex/bridge-event-catalogue.js +138 -0
  562. package/dist/schemas/cortex/bridge-events.schema.d.ts +12554 -0
  563. package/dist/schemas/cortex/bridge-events.schema.js +793 -0
  564. package/dist/schemas/cortex/bridge-readiness.schema.d.ts +27 -0
  565. package/dist/schemas/cortex/bridge-readiness.schema.js +15 -0
  566. package/dist/schemas/cortex/film-bridge-events.schema.d.ts +301 -0
  567. package/dist/schemas/cortex/film-bridge-events.schema.js +116 -0
  568. package/dist/schemas/cortex/index.d.ts +7 -0
  569. package/dist/schemas/cortex/index.js +23 -0
  570. package/dist/schemas/cortex/product-release-package.schema.d.ts +370 -0
  571. package/dist/schemas/cortex/product-release-package.schema.js +123 -0
  572. package/dist/schemas/cortex/proof-run-recorder.schema.d.ts +144 -0
  573. package/dist/schemas/cortex/proof-run-recorder.schema.js +43 -0
  574. package/dist/schemas/deployments/deployment-predict.schema.d.ts +165 -0
  575. package/dist/schemas/deployments/deployment-predict.schema.js +92 -0
  576. package/dist/schemas/deployments/deployment-preflight.schema.d.ts +184 -0
  577. package/dist/schemas/deployments/deployment-preflight.schema.js +80 -0
  578. package/dist/schemas/deployments/deployment-rollback.schema.d.ts +519 -0
  579. package/dist/schemas/deployments/deployment-rollback.schema.js +102 -0
  580. package/dist/schemas/deployments/deployment-status.schema.d.ts +1359 -0
  581. package/dist/schemas/deployments/deployment-status.schema.js +421 -0
  582. package/dist/schemas/film/film-artifact-kind.schema.d.ts +2 -0
  583. package/dist/schemas/film/film-artifact-kind.schema.js +6 -0
  584. package/dist/schemas/film/film-artifact-payloads.schema.d.ts +532 -0
  585. package/dist/schemas/film/film-artifact-payloads.schema.js +174 -0
  586. package/dist/schemas/film/film-asset-review.schema.d.ts +83 -0
  587. package/dist/schemas/film/film-asset-review.schema.js +42 -0
  588. package/dist/schemas/film/film-asset-rights-profile.schema.d.ts +68 -0
  589. package/dist/schemas/film/film-asset-rights-profile.schema.js +33 -0
  590. package/dist/schemas/film/film-character-pack-api.schema.d.ts +216 -0
  591. package/dist/schemas/film/film-character-pack-api.schema.js +51 -0
  592. package/dist/schemas/film/film-character-pack.schema.d.ts +51 -0
  593. package/dist/schemas/film/film-character-pack.schema.js +24 -0
  594. package/dist/schemas/film/film-character-scene-state.schema.d.ts +36 -0
  595. package/dist/schemas/film/film-character-scene-state.schema.js +18 -0
  596. package/dist/schemas/film/film-clip-api.schema.d.ts +379 -0
  597. package/dist/schemas/film/film-clip-api.schema.js +159 -0
  598. package/dist/schemas/film/film-clip-review-orchestration.schema.d.ts +234 -0
  599. package/dist/schemas/film/film-clip-review-orchestration.schema.js +23 -0
  600. package/dist/schemas/film/film-clip-review-scores.schema.d.ts +51 -0
  601. package/dist/schemas/film/film-clip-review-scores.schema.js +49 -0
  602. package/dist/schemas/film/film-clip-structured-review-artifact.schema.d.ts +175 -0
  603. package/dist/schemas/film/film-clip-structured-review-artifact.schema.js +15 -0
  604. package/dist/schemas/film/film-clip-structured-review.schema.d.ts +267 -0
  605. package/dist/schemas/film/film-clip-structured-review.schema.js +54 -0
  606. package/dist/schemas/film/film-clip.schema.d.ts +171 -0
  607. package/dist/schemas/film/film-clip.schema.js +64 -0
  608. package/dist/schemas/film/film-comfyui-workflow-create.schema.d.ts +39 -0
  609. package/dist/schemas/film/film-comfyui-workflow-create.schema.js +20 -0
  610. package/dist/schemas/film/film-comfyui-workflow-update.schema.d.ts +54 -0
  611. package/dist/schemas/film/film-comfyui-workflow-update.schema.js +28 -0
  612. package/dist/schemas/film/film-comfyui-workflow.schema.d.ts +188 -0
  613. package/dist/schemas/film/film-comfyui-workflow.schema.js +65 -0
  614. package/dist/schemas/film/film-creative-read-model.schema.d.ts +675 -0
  615. package/dist/schemas/film/film-creative-read-model.schema.js +66 -0
  616. package/dist/schemas/film/film-deliverable.schema.d.ts +656 -0
  617. package/dist/schemas/film/film-deliverable.schema.js +252 -0
  618. package/dist/schemas/film/film-edit-sequence.schema.d.ts +1112 -0
  619. package/dist/schemas/film/film-edit-sequence.schema.js +106 -0
  620. package/dist/schemas/film/film-elevenlabs-voice.schema.d.ts +126 -0
  621. package/dist/schemas/film/film-elevenlabs-voice.schema.js +56 -0
  622. package/dist/schemas/film/film-enqueue-multi-take.schema.d.ts +57 -0
  623. package/dist/schemas/film/film-enqueue-multi-take.schema.js +24 -0
  624. package/dist/schemas/film/film-export.schema.d.ts +78 -0
  625. package/dist/schemas/film/film-export.schema.js +37 -0
  626. package/dist/schemas/film/film-generation-dashboard.schema.d.ts +1779 -0
  627. package/dist/schemas/film/film-generation-dashboard.schema.js +222 -0
  628. package/dist/schemas/film/film-generation-package.schema.d.ts +1665 -0
  629. package/dist/schemas/film/film-generation-package.schema.js +116 -0
  630. package/dist/schemas/film/film-generation-task.schema.d.ts +1086 -0
  631. package/dist/schemas/film/film-generation-task.schema.js +159 -0
  632. package/dist/schemas/film/film-hydrate.schema.d.ts +46 -0
  633. package/dist/schemas/film/film-hydrate.schema.js +23 -0
  634. package/dist/schemas/film/film-keyframe-brief.schema.d.ts +99 -0
  635. package/dist/schemas/film/film-keyframe-brief.schema.js +29 -0
  636. package/dist/schemas/film/film-keyframe-review.schema.d.ts +186 -0
  637. package/dist/schemas/film/film-keyframe-review.schema.js +25 -0
  638. package/dist/schemas/film/film-keyframe.schema.d.ts +214 -0
  639. package/dist/schemas/film/film-keyframe.schema.js +43 -0
  640. package/dist/schemas/film/film-lessons-manifest.schema.d.ts +589 -0
  641. package/dist/schemas/film/film-lessons-manifest.schema.js +83 -0
  642. package/dist/schemas/film/film-llm-field.d.ts +22 -0
  643. package/dist/schemas/film/film-llm-field.js +78 -0
  644. package/dist/schemas/film/film-location-pack.schema.d.ts +51 -0
  645. package/dist/schemas/film/film-location-pack.schema.js +24 -0
  646. package/dist/schemas/film/film-marketing-creative-api.schema.d.ts +276 -0
  647. package/dist/schemas/film/film-marketing-creative-api.schema.js +47 -0
  648. package/dist/schemas/film/film-marketing-creative.schema.d.ts +74 -0
  649. package/dist/schemas/film/film-marketing-creative.schema.js +58 -0
  650. package/dist/schemas/film/film-marketing-format-preset.schema.d.ts +22 -0
  651. package/dist/schemas/film/film-marketing-format-preset.schema.js +71 -0
  652. package/dist/schemas/film/film-media-asset-file.schema.d.ts +59 -0
  653. package/dist/schemas/film/film-media-asset-file.schema.js +45 -0
  654. package/dist/schemas/film/film-media-asset-promotion-api.schema.d.ts +219 -0
  655. package/dist/schemas/film/film-media-asset-promotion-api.schema.js +29 -0
  656. package/dist/schemas/film/film-media-asset-review-api.schema.d.ts +431 -0
  657. package/dist/schemas/film/film-media-asset-review-api.schema.js +41 -0
  658. package/dist/schemas/film/film-media-asset.schema.d.ts +131 -0
  659. package/dist/schemas/film/film-media-asset.schema.js +94 -0
  660. package/dist/schemas/film/film-media-kg.schema.d.ts +86 -0
  661. package/dist/schemas/film/film-media-kg.schema.js +70 -0
  662. package/dist/schemas/film/film-ofi-report.schema.d.ts +437 -0
  663. package/dist/schemas/film/film-ofi-report.schema.js +65 -0
  664. package/dist/schemas/film/film-otio-sidecar.schema.d.ts +136 -0
  665. package/dist/schemas/film/film-otio-sidecar.schema.js +28 -0
  666. package/dist/schemas/film/film-production-coverage.schema.d.ts +179 -0
  667. package/dist/schemas/film/film-production-coverage.schema.js +123 -0
  668. package/dist/schemas/film/film-production-graph.schema.d.ts +273 -0
  669. package/dist/schemas/film/film-production-graph.schema.js +43 -0
  670. package/dist/schemas/film/film-production-read-model.schema.d.ts +1038 -0
  671. package/dist/schemas/film/film-production-read-model.schema.js +65 -0
  672. package/dist/schemas/film/film-production-style.schema.d.ts +31 -0
  673. package/dist/schemas/film/film-production-style.schema.js +50 -0
  674. package/dist/schemas/film/film-project.schema.d.ts +115 -0
  675. package/dist/schemas/film/film-project.schema.js +50 -0
  676. package/dist/schemas/film/film-prompt-compiler.schema.d.ts +346 -0
  677. package/dist/schemas/film/film-prompt-compiler.schema.js +116 -0
  678. package/dist/schemas/film/film-prompt-performance.schema.d.ts +77 -0
  679. package/dist/schemas/film/film-prompt-performance.schema.js +37 -0
  680. package/dist/schemas/film/film-prompt-repair.schema.d.ts +41 -0
  681. package/dist/schemas/film/film-prompt-repair.schema.js +36 -0
  682. package/dist/schemas/film/film-prompt.schema.d.ts +265 -0
  683. package/dist/schemas/film/film-prompt.schema.js +47 -0
  684. package/dist/schemas/film/film-provider-hints.schema.d.ts +105 -0
  685. package/dist/schemas/film/film-provider-hints.schema.js +50 -0
  686. package/dist/schemas/film/film-provider-job.schema.d.ts +320 -0
  687. package/dist/schemas/film/film-provider-job.schema.js +181 -0
  688. package/dist/schemas/film/film-provider.schema.d.ts +100 -0
  689. package/dist/schemas/film/film-provider.schema.js +51 -0
  690. package/dist/schemas/film/film-queue-enqueue.schema.d.ts +423 -0
  691. package/dist/schemas/film/film-queue-enqueue.schema.js +98 -0
  692. package/dist/schemas/film/film-queue-task-detail.schema.d.ts +981 -0
  693. package/dist/schemas/film/film-queue-task-detail.schema.js +57 -0
  694. package/dist/schemas/film/film-reference-pack.schema.d.ts +48 -0
  695. package/dist/schemas/film/film-reference-pack.schema.js +23 -0
  696. package/dist/schemas/film/film-regeneration-plan.schema.d.ts +124 -0
  697. package/dist/schemas/film/film-regeneration-plan.schema.js +62 -0
  698. package/dist/schemas/film/film-resolve-ingest.schema.d.ts +278 -0
  699. package/dist/schemas/film/film-resolve-ingest.schema.js +35 -0
  700. package/dist/schemas/film/film-resolve-timeline-report.schema.d.ts +323 -0
  701. package/dist/schemas/film/film-resolve-timeline-report.schema.js +43 -0
  702. package/dist/schemas/film/film-review.schema.d.ts +65 -0
  703. package/dist/schemas/film/film-review.schema.js +47 -0
  704. package/dist/schemas/film/film-scene.schema.d.ts +175 -0
  705. package/dist/schemas/film/film-scene.schema.js +38 -0
  706. package/dist/schemas/film/film-screenplay.schema.d.ts +215 -0
  707. package/dist/schemas/film/film-screenplay.schema.js +38 -0
  708. package/dist/schemas/film/film-shot-risk-assessment.schema.d.ts +27 -0
  709. package/dist/schemas/film/film-shot-risk-assessment.schema.js +16 -0
  710. package/dist/schemas/film/film-shot-risk-level.schema.d.ts +5 -0
  711. package/dist/schemas/film/film-shot-risk-level.schema.js +7 -0
  712. package/dist/schemas/film/film-shot.schema.d.ts +564 -0
  713. package/dist/schemas/film/film-shot.schema.js +96 -0
  714. package/dist/schemas/film/film-still-review-artifact.schema.d.ts +154 -0
  715. package/dist/schemas/film/film-still-review-artifact.schema.js +15 -0
  716. package/dist/schemas/film/film-still-review-scores.schema.d.ts +161 -0
  717. package/dist/schemas/film/film-still-review-scores.schema.js +48 -0
  718. package/dist/schemas/film/film-take-comparison.schema.d.ts +437 -0
  719. package/dist/schemas/film/film-take-comparison.schema.js +73 -0
  720. package/dist/schemas/film/film-training-dataset-api.schema.d.ts +641 -0
  721. package/dist/schemas/film/film-training-dataset-api.schema.js +86 -0
  722. package/dist/schemas/film/film-training-dataset.schema.d.ts +171 -0
  723. package/dist/schemas/film/film-training-dataset.schema.js +69 -0
  724. package/dist/schemas/film/film-wardrobe-state.schema.d.ts +42 -0
  725. package/dist/schemas/film/film-wardrobe-state.schema.js +21 -0
  726. package/dist/schemas/film/film-workbench.schema.d.ts +379 -0
  727. package/dist/schemas/film/film-workbench.schema.js +58 -0
  728. package/dist/schemas/film/film-workflow-lineage.schema.d.ts +166 -0
  729. package/dist/schemas/film/film-workflow-lineage.schema.js +83 -0
  730. package/dist/schemas/film/film-world-ontology.schema.d.ts +250 -0
  731. package/dist/schemas/film/film-world-ontology.schema.js +79 -0
  732. package/dist/schemas/film/image-generation-provider.schema.d.ts +392 -0
  733. package/dist/schemas/film/image-generation-provider.schema.js +55 -0
  734. package/dist/schemas/film/index.d.ts +81 -0
  735. package/dist/schemas/film/index.js +97 -0
  736. package/dist/schemas/github/branches.schema.d.ts +61 -0
  737. package/dist/schemas/github/branches.schema.js +17 -0
  738. package/dist/schemas/github/issues.schema.d.ts +145 -0
  739. package/dist/schemas/github/issues.schema.js +27 -0
  740. package/dist/schemas/github/pulls.schema.d.ts +173 -0
  741. package/dist/schemas/github/pulls.schema.js +30 -0
  742. package/dist/schemas/github/repo-create.schema.d.ts +21 -0
  743. package/dist/schemas/github/repo-create.schema.js +11 -0
  744. package/dist/schemas/github/webhook-delivery.schema.d.ts +729 -0
  745. package/dist/schemas/github/webhook-delivery.schema.js +142 -0
  746. package/dist/schemas/github/workflow-runs.schema.d.ts +173 -0
  747. package/dist/schemas/github/workflow-runs.schema.js +52 -0
  748. package/dist/schemas/github-pr-create.schema.d.ts +175 -0
  749. package/dist/schemas/github-pr-create.schema.js +70 -0
  750. package/dist/schemas/github-status.schema.d.ts +418 -0
  751. package/dist/schemas/github-status.schema.js +122 -0
  752. package/dist/schemas/graph/edge-v2.schema.d.ts +85 -0
  753. package/dist/schemas/graph/edge-v2.schema.js +164 -0
  754. package/dist/schemas/graph/graph-query-v2.schema.d.ts +449 -0
  755. package/dist/schemas/graph/graph-query-v2.schema.js +83 -0
  756. package/dist/schemas/graph/index.d.ts +14 -0
  757. package/dist/schemas/graph/index.js +30 -0
  758. package/dist/schemas/graph/node-v2.schema.d.ts +68 -0
  759. package/dist/schemas/graph/node-v2.schema.js +120 -0
  760. package/dist/schemas/graph/sql-security-findings.schema.d.ts +71 -0
  761. package/dist/schemas/graph/sql-security-findings.schema.js +40 -0
  762. package/dist/schemas/guardian/guardian-score.schema.d.ts +13 -0
  763. package/dist/schemas/guardian/guardian-score.schema.js +24 -0
  764. package/dist/schemas/guardian/validate.schema.d.ts +51 -0
  765. package/dist/schemas/guardian/validate.schema.js +36 -0
  766. package/dist/schemas/implement/nextjs-scaffold-manifest.schema.d.ts +44 -0
  767. package/dist/schemas/implement/nextjs-scaffold-manifest.schema.js +25 -0
  768. package/dist/schemas/implement/patch-validation-diagnostic.schema.d.ts +17 -0
  769. package/dist/schemas/implement/patch-validation-diagnostic.schema.js +19 -0
  770. package/dist/schemas/implement-patch-detail.schema.d.ts +344 -0
  771. package/dist/schemas/implement-patch-detail.schema.js +78 -0
  772. package/dist/schemas/implement-patch-lifecycle.schema.d.ts +66 -0
  773. package/dist/schemas/implement-patch-lifecycle.schema.js +317 -0
  774. package/dist/schemas/implement-patch-task.schema.d.ts +29 -0
  775. package/dist/schemas/implement-patch-task.schema.js +26 -0
  776. package/dist/schemas/implement-patch.schema.d.ts +2955 -0
  777. package/dist/schemas/implement-patch.schema.js +573 -0
  778. package/dist/schemas/implement-quarantine.schema.d.ts +215 -0
  779. package/dist/schemas/implement-quarantine.schema.js +71 -0
  780. package/dist/schemas/index.d.ts +5249 -0
  781. package/dist/schemas/index.js +1649 -0
  782. package/dist/schemas/integrations/cursor-execution.schema.d.ts +530 -0
  783. package/dist/schemas/integrations/cursor-execution.schema.js +104 -0
  784. package/dist/schemas/integrations.d.ts +426 -0
  785. package/dist/schemas/integrations.js +149 -0
  786. package/dist/schemas/knowledge/api-retry-kg-persistence.schema.d.ts +130 -0
  787. package/dist/schemas/knowledge/api-retry-kg-persistence.schema.js +28 -0
  788. package/dist/schemas/knowledge/constitution-retry-kg-persistence.schema.d.ts +46 -0
  789. package/dist/schemas/knowledge/constitution-retry-kg-persistence.schema.js +12 -0
  790. package/dist/schemas/knowledge/coverage.schema.d.ts +98 -0
  791. package/dist/schemas/knowledge/coverage.schema.js +27 -0
  792. package/dist/schemas/knowledge/duplicates.schema.d.ts +62 -0
  793. package/dist/schemas/knowledge/duplicates.schema.js +23 -0
  794. package/dist/schemas/knowledge/graph-query.schema.d.ts +9 -0
  795. package/dist/schemas/knowledge/graph-query.schema.js +7 -0
  796. package/dist/schemas/knowledge/guardian-retry-kg-persistence.schema.d.ts +40 -0
  797. package/dist/schemas/knowledge/guardian-retry-kg-persistence.schema.js +12 -0
  798. package/dist/schemas/knowledge/implement-retry-kg-persistence.schema.d.ts +49 -0
  799. package/dist/schemas/knowledge/implement-retry-kg-persistence.schema.js +14 -0
  800. package/dist/schemas/knowledge/kg-generation-writers.schema.d.ts +338 -0
  801. package/dist/schemas/knowledge/kg-generation-writers.schema.js +73 -0
  802. package/dist/schemas/knowledge/kg-relations.schema.d.ts +70 -0
  803. package/dist/schemas/knowledge/kg-relations.schema.js +157 -0
  804. package/dist/schemas/knowledge/knowledge-graph-summary.schema.d.ts +170 -0
  805. package/dist/schemas/knowledge/knowledge-graph-summary.schema.js +43 -0
  806. package/dist/schemas/knowledge/knowledge-node-provenance.schema.d.ts +41 -0
  807. package/dist/schemas/knowledge/knowledge-node-provenance.schema.js +21 -0
  808. package/dist/schemas/knowledge/knowledge-retry-kg-persistence.schema.d.ts +76 -0
  809. package/dist/schemas/knowledge/knowledge-retry-kg-persistence.schema.js +14 -0
  810. package/dist/schemas/knowledge/knowledge-search.schema.d.ts +29 -0
  811. package/dist/schemas/knowledge/knowledge-search.schema.js +17 -0
  812. package/dist/schemas/knowledge/lineage.schema.d.ts +70 -0
  813. package/dist/schemas/knowledge/lineage.schema.js +28 -0
  814. package/dist/schemas/knowledge/project-brief-knowledge-node.schema.d.ts +45 -0
  815. package/dist/schemas/knowledge/project-brief-knowledge-node.schema.js +30 -0
  816. package/dist/schemas/knowledge/review-readiness.schema.d.ts +104 -0
  817. package/dist/schemas/knowledge/review-readiness.schema.js +30 -0
  818. package/dist/schemas/knowledge/sync-prs.schema.d.ts +54 -0
  819. package/dist/schemas/knowledge/sync-prs.schema.js +21 -0
  820. package/dist/schemas/knowledge/tasks-retry-kg-persistence.schema.d.ts +37 -0
  821. package/dist/schemas/knowledge/tasks-retry-kg-persistence.schema.js +14 -0
  822. package/dist/schemas/knowledge/ui-retry-kg-persistence.schema.d.ts +58 -0
  823. package/dist/schemas/knowledge/ui-retry-kg-persistence.schema.js +14 -0
  824. package/dist/schemas/knowledge-graph-response.schema.d.ts +376 -0
  825. package/dist/schemas/knowledge-graph-response.schema.js +56 -0
  826. package/dist/schemas/logging/logger-context.schema.d.ts +21 -0
  827. package/dist/schemas/logging/logger-context.schema.js +11 -0
  828. package/dist/schemas/metrics/project-kpi-summary.schema.d.ts +368 -0
  829. package/dist/schemas/metrics/project-kpi-summary.schema.js +80 -0
  830. package/dist/schemas/orchestration/durable-stage-progress.schema.d.ts +57 -0
  831. package/dist/schemas/orchestration/durable-stage-progress.schema.js +34 -0
  832. package/dist/schemas/orchestration-execution.d.ts +158 -0
  833. package/dist/schemas/orchestration-execution.js +88 -0
  834. package/dist/schemas/project-bmad-settings-patch.schema.d.ts +66 -0
  835. package/dist/schemas/project-bmad-settings-patch.schema.js +29 -0
  836. package/dist/schemas/project-kind.schema.d.ts +70 -0
  837. package/dist/schemas/project-kind.schema.js +38 -0
  838. package/dist/schemas/project-team.d.ts +48 -0
  839. package/dist/schemas/project-team.js +52 -0
  840. package/dist/schemas/projects/nl-kg-v2-enabled.schema.d.ts +10 -0
  841. package/dist/schemas/projects/nl-kg-v2-enabled.schema.js +16 -0
  842. package/dist/schemas/provider-sentinel/cleanup-manifest.schema.d.ts +78 -0
  843. package/dist/schemas/provider-sentinel/cleanup-manifest.schema.js +27 -0
  844. package/dist/schemas/provider-sentinel/execution-evidence.schema.d.ts +228 -0
  845. package/dist/schemas/provider-sentinel/execution-evidence.schema.js +78 -0
  846. package/dist/schemas/provider-sentinel/film-media-sentinel-config.schema.d.ts +55 -0
  847. package/dist/schemas/provider-sentinel/film-media-sentinel-config.schema.js +33 -0
  848. package/dist/schemas/provider-sentinel/index.d.ts +6 -0
  849. package/dist/schemas/provider-sentinel/index.js +22 -0
  850. package/dist/schemas/provider-sentinel/provider-sentinel-common.schema.d.ts +8 -0
  851. package/dist/schemas/provider-sentinel/provider-sentinel-common.schema.js +9 -0
  852. package/dist/schemas/provider-sentinel/provider-sentinel-result.schema.d.ts +743 -0
  853. package/dist/schemas/provider-sentinel/provider-sentinel-result.schema.js +126 -0
  854. package/dist/schemas/provider-sentinel/text-durable-sentinel-config.schema.d.ts +51 -0
  855. package/dist/schemas/provider-sentinel/text-durable-sentinel-config.schema.js +30 -0
  856. package/dist/schemas/publication/manuscript-export.schema.d.ts +249 -0
  857. package/dist/schemas/publication/manuscript-export.schema.js +47 -0
  858. package/dist/schemas/repo/repo-scan-run.schema.d.ts +60 -0
  859. package/dist/schemas/repo/repo-scan-run.schema.js +34 -0
  860. package/dist/schemas/repos/project-repo-link.schema.d.ts +148 -0
  861. package/dist/schemas/repos/project-repo-link.schema.js +28 -0
  862. package/dist/schemas/repos/repo-readiness.schema.d.ts +26 -0
  863. package/dist/schemas/repos/repo-readiness.schema.js +23 -0
  864. package/dist/schemas/repos/repo-scan.schema.d.ts +379 -0
  865. package/dist/schemas/repos/repo-scan.schema.js +98 -0
  866. package/dist/schemas/review/review-coverage.schema.d.ts +2238 -0
  867. package/dist/schemas/review/review-coverage.schema.js +182 -0
  868. package/dist/schemas/review/review-policy.schema.d.ts +87 -0
  869. package/dist/schemas/review/review-policy.schema.js +42 -0
  870. package/dist/schemas/runtime/index.d.ts +6 -0
  871. package/dist/schemas/runtime/index.js +22 -0
  872. package/dist/schemas/runtime/platform-health.schema.d.ts +83 -0
  873. package/dist/schemas/runtime/platform-health.schema.js +31 -0
  874. package/dist/schemas/runtime/probe-harness-gen.schema.d.ts +456 -0
  875. package/dist/schemas/runtime/probe-harness-gen.schema.js +91 -0
  876. package/dist/schemas/runtime/probe.schema.d.ts +1117 -0
  877. package/dist/schemas/runtime/probe.schema.js +278 -0
  878. package/dist/schemas/runtime/runtime-knowledge-node.schema.d.ts +862 -0
  879. package/dist/schemas/runtime/runtime-knowledge-node.schema.js +29 -0
  880. package/dist/schemas/runtime/runtime-loop.schema.d.ts +175 -0
  881. package/dist/schemas/runtime/runtime-loop.schema.js +84 -0
  882. package/dist/schemas/runtime/runtime-run.schema.d.ts +378 -0
  883. package/dist/schemas/runtime/runtime-run.schema.js +30 -0
  884. package/dist/schemas/security/index.d.ts +3 -0
  885. package/dist/schemas/security/index.js +19 -0
  886. package/dist/schemas/security/pre-pr-security-gate.schema.d.ts +486 -0
  887. package/dist/schemas/security/pre-pr-security-gate.schema.js +13 -0
  888. package/dist/schemas/security/security-finding.schema.d.ts +546 -0
  889. package/dist/schemas/security/security-finding.schema.js +138 -0
  890. package/dist/schemas/security/security-knowledge-node.schema.d.ts +285 -0
  891. package/dist/schemas/security/security-knowledge-node.schema.js +21 -0
  892. package/dist/schemas/task-complexity.schema.d.ts +3 -0
  893. package/dist/schemas/task-complexity.schema.js +6 -0
  894. package/dist/schemas/task-evidence-expectations.schema.d.ts +174 -0
  895. package/dist/schemas/task-evidence-expectations.schema.js +35 -0
  896. package/dist/schemas/traceability/index.d.ts +2 -0
  897. package/dist/schemas/traceability/index.js +18 -0
  898. package/dist/schemas/traceability/neuraloom-traceability-file.schema.d.ts +593 -0
  899. package/dist/schemas/traceability/neuraloom-traceability-file.schema.js +93 -0
  900. package/dist/schemas/traceability/traceability-graph.schema.d.ts +712 -0
  901. package/dist/schemas/traceability/traceability-graph.schema.js +112 -0
  902. package/dist/schemas/workflow/build-knowledge.schema.d.ts +672 -0
  903. package/dist/schemas/workflow/build-knowledge.schema.js +92 -0
  904. package/dist/schemas/workflow/build-truth-read-model.schema.d.ts +1218 -0
  905. package/dist/schemas/workflow/build-truth-read-model.schema.js +42 -0
  906. package/dist/schemas/workflow/canonicalization-decision.schema.d.ts +74 -0
  907. package/dist/schemas/workflow/canonicalization-decision.schema.js +22 -0
  908. package/dist/schemas/workflow/code-reality-artifacts.schema.d.ts +914 -0
  909. package/dist/schemas/workflow/code-reality-artifacts.schema.js +150 -0
  910. package/dist/schemas/workflow/code-reality-read-model.schema.d.ts +12708 -0
  911. package/dist/schemas/workflow/code-reality-read-model.schema.js +237 -0
  912. package/dist/schemas/workflow/code-reality-task-traceability.schema.d.ts +124 -0
  913. package/dist/schemas/workflow/code-reality-task-traceability.schema.js +107 -0
  914. package/dist/schemas/workflow/command-center-spine.schema.d.ts +62 -0
  915. package/dist/schemas/workflow/command-center-spine.schema.js +58 -0
  916. package/dist/schemas/workflow/context-bundle.schema.d.ts +111 -0
  917. package/dist/schemas/workflow/context-bundle.schema.js +62 -0
  918. package/dist/schemas/workflow/context-contamination.schema.d.ts +284 -0
  919. package/dist/schemas/workflow/context-contamination.schema.js +65 -0
  920. package/dist/schemas/workflow/deployment-evidence.schema.d.ts +269 -0
  921. package/dist/schemas/workflow/deployment-evidence.schema.js +55 -0
  922. package/dist/schemas/workflow/doc-draft-artifact.schema.d.ts +126 -0
  923. package/dist/schemas/workflow/doc-draft-artifact.schema.js +52 -0
  924. package/dist/schemas/workflow/domain-acceptance.schema.d.ts +206 -0
  925. package/dist/schemas/workflow/domain-acceptance.schema.js +62 -0
  926. package/dist/schemas/workflow/engineering-context.schema.d.ts +2235 -0
  927. package/dist/schemas/workflow/engineering-context.schema.js +566 -0
  928. package/dist/schemas/workflow/existing-capability-classification.schema.d.ts +79 -0
  929. package/dist/schemas/workflow/existing-capability-classification.schema.js +28 -0
  930. package/dist/schemas/workflow/existing-codebase-context.schema.d.ts +865 -0
  931. package/dist/schemas/workflow/existing-codebase-context.schema.js +56 -0
  932. package/dist/schemas/workflow/findings-register.schema.d.ts +148 -0
  933. package/dist/schemas/workflow/findings-register.schema.js +35 -0
  934. package/dist/schemas/workflow/implement-first-batch.schema.d.ts +190 -0
  935. package/dist/schemas/workflow/implement-first-batch.schema.js +49 -0
  936. package/dist/schemas/workflow/implement-gate-status.schema.d.ts +823 -0
  937. package/dist/schemas/workflow/implement-gate-status.schema.js +94 -0
  938. package/dist/schemas/workflow/implement-stale-batch-repair.schema.d.ts +71 -0
  939. package/dist/schemas/workflow/implement-stale-batch-repair.schema.js +28 -0
  940. package/dist/schemas/workflow/implement-task-guard.schema.d.ts +27 -0
  941. package/dist/schemas/workflow/implement-task-guard.schema.js +35 -0
  942. package/dist/schemas/workflow/implementation-packet.schema.d.ts +200 -0
  943. package/dist/schemas/workflow/implementation-packet.schema.js +88 -0
  944. package/dist/schemas/workflow/import-validity.schema.d.ts +177 -0
  945. package/dist/schemas/workflow/import-validity.schema.js +71 -0
  946. package/dist/schemas/workflow/index.d.ts +14 -0
  947. package/dist/schemas/workflow/index.js +30 -0
  948. package/dist/schemas/workflow/ingest-dashboard.schema.d.ts +1094 -0
  949. package/dist/schemas/workflow/ingest-dashboard.schema.js +76 -0
  950. package/dist/schemas/workflow/ingest-gate.schema.d.ts +133 -0
  951. package/dist/schemas/workflow/ingest-gate.schema.js +27 -0
  952. package/dist/schemas/workflow/ingest-inventory.schema.d.ts +203 -0
  953. package/dist/schemas/workflow/ingest-inventory.schema.js +52 -0
  954. package/dist/schemas/workflow/knowledge-graph-result.schema.d.ts +90 -0
  955. package/dist/schemas/workflow/knowledge-graph-result.schema.js +37 -0
  956. package/dist/schemas/workflow/patch-file-scope-policy.schema.d.ts +62 -0
  957. package/dist/schemas/workflow/patch-file-scope-policy.schema.js +38 -0
  958. package/dist/schemas/workflow/patch-review-result.schema.d.ts +139 -0
  959. package/dist/schemas/workflow/patch-review-result.schema.js +58 -0
  960. package/dist/schemas/workflow/plan-approval.schema.d.ts +184 -0
  961. package/dist/schemas/workflow/plan-approval.schema.js +102 -0
  962. package/dist/schemas/workflow/product-readiness-response.schema.d.ts +307 -0
  963. package/dist/schemas/workflow/product-readiness-response.schema.js +81 -0
  964. package/dist/schemas/workflow/product-realization.schema.d.ts +259 -0
  965. package/dist/schemas/workflow/product-realization.schema.js +207 -0
  966. package/dist/schemas/workflow/product-route-manifest.schema.d.ts +785 -0
  967. package/dist/schemas/workflow/product-route-manifest.schema.js +161 -0
  968. package/dist/schemas/workflow/repair-specify-gate.schema.d.ts +33 -0
  969. package/dist/schemas/workflow/repair-specify-gate.schema.js +13 -0
  970. package/dist/schemas/workflow/repo-intel-snapshot.schema.d.ts +471 -0
  971. package/dist/schemas/workflow/repo-intel-snapshot.schema.js +98 -0
  972. package/dist/schemas/workflow/repo-policy-snapshot.schema.d.ts +365 -0
  973. package/dist/schemas/workflow/repo-policy-snapshot.schema.js +83 -0
  974. package/dist/schemas/workflow/review-acceptance.schema.d.ts +182 -0
  975. package/dist/schemas/workflow/review-acceptance.schema.js +66 -0
  976. package/dist/schemas/workflow/review-release-decision-operator.schema.d.ts +220 -0
  977. package/dist/schemas/workflow/review-release-decision-operator.schema.js +65 -0
  978. package/dist/schemas/workflow/route-manifest.schema.d.ts +239 -0
  979. package/dist/schemas/workflow/route-manifest.schema.js +82 -0
  980. package/dist/schemas/workflow/runtime-contract.schema.d.ts +384 -0
  981. package/dist/schemas/workflow/runtime-contract.schema.js +71 -0
  982. package/dist/schemas/workflow/schema-page-read-model.schema.d.ts +185 -0
  983. package/dist/schemas/workflow/schema-page-read-model.schema.js +29 -0
  984. package/dist/schemas/workflow/ship-closure.schema.d.ts +516 -0
  985. package/dist/schemas/workflow/ship-closure.schema.js +96 -0
  986. package/dist/schemas/workflow/software-workflow-lineage.schema.d.ts +384 -0
  987. package/dist/schemas/workflow/software-workflow-lineage.schema.js +54 -0
  988. package/dist/schemas/workflow/specify-mutation-health.schema.d.ts +72 -0
  989. package/dist/schemas/workflow/specify-mutation-health.schema.js +24 -0
  990. package/dist/schemas/workflow/step-evidence-resolution.schema.d.ts +49 -0
  991. package/dist/schemas/workflow/step-evidence-resolution.schema.js +36 -0
  992. package/dist/schemas/workflow/step-gate.schema.d.ts +312 -0
  993. package/dist/schemas/workflow/step-gate.schema.js +90 -0
  994. package/dist/schemas/workflow/task-capsule.schema.d.ts +414 -0
  995. package/dist/schemas/workflow/task-capsule.schema.js +99 -0
  996. package/dist/schemas/workflow/tasks-github-sync.schema.d.ts +60 -0
  997. package/dist/schemas/workflow/tasks-github-sync.schema.js +24 -0
  998. package/dist/schemas/workflow/tasks-repair-stale-implementing.schema.d.ts +86 -0
  999. package/dist/schemas/workflow/tasks-repair-stale-implementing.schema.js +38 -0
  1000. package/dist/schemas/workflow/tasks-truth.schema.d.ts +616 -0
  1001. package/dist/schemas/workflow/tasks-truth.schema.js +76 -0
  1002. package/dist/schemas/workflow/tasks-unblock-implement-handoff.schema.d.ts +210 -0
  1003. package/dist/schemas/workflow/tasks-unblock-implement-handoff.schema.js +17 -0
  1004. package/dist/schemas/workflow/test-obligation-manifest.schema.d.ts +306 -0
  1005. package/dist/schemas/workflow/test-obligation-manifest.schema.js +131 -0
  1006. package/dist/schemas/workflow/workflow-doctor.schema.d.ts +942 -0
  1007. package/dist/schemas/workflow/workflow-doctor.schema.js +141 -0
  1008. package/dist/schemas/workflow/workflow-evidence.schema.d.ts +67 -0
  1009. package/dist/schemas/workflow/workflow-evidence.schema.js +23 -0
  1010. package/dist/schemas/workflow/workflow-intelligence-graph.schema.d.ts +415 -0
  1011. package/dist/schemas/workflow/workflow-intelligence-graph.schema.js +213 -0
  1012. package/dist/schemas/workflow/workflow-run-event.schema.d.ts +41 -0
  1013. package/dist/schemas/workflow/workflow-run-event.schema.js +55 -0
  1014. package/dist/schemas/workflow-ci-step-artifacts.schema.d.ts +60 -0
  1015. package/dist/schemas/workflow-ci-step-artifacts.schema.js +15 -0
  1016. package/dist/schemas/workflow-implement-read-model.schema.d.ts +86 -0
  1017. package/dist/schemas/workflow-implement-read-model.schema.js +22 -0
  1018. package/dist/schemas/workflow-knowledge-step-artifacts.schema.d.ts +60 -0
  1019. package/dist/schemas/workflow-knowledge-step-artifacts.schema.js +15 -0
  1020. package/dist/schemas/workflow-progression.d.ts +1955 -0
  1021. package/dist/schemas/workflow-progression.js +259 -0
  1022. package/dist/telemetry/index.d.ts +194 -0
  1023. package/dist/telemetry/index.js +93 -0
  1024. package/dist/transformation/canonical-semantic-model.d.ts +233 -0
  1025. package/dist/transformation/canonical-semantic-model.js +61 -0
  1026. package/dist/transformation/index.d.ts +6 -0
  1027. package/dist/transformation/index.js +22 -0
  1028. package/dist/transformation/transformation-registry.d.ts +136 -0
  1029. package/dist/transformation/transformation-registry.js +100 -0
  1030. package/dist/types/ai-responses.d.ts +98 -0
  1031. package/dist/types/ai-responses.js +42 -0
  1032. package/dist/types/ai.d.ts +4 -0
  1033. package/dist/types/ai.js +2 -0
  1034. package/dist/types/audiobook-embed.d.ts +22 -0
  1035. package/dist/types/audiobook-embed.js +2 -0
  1036. package/dist/types/audiobook.d.ts +30 -0
  1037. package/dist/types/audiobook.js +2 -0
  1038. package/dist/types/chapter-revision.types.d.ts +6 -0
  1039. package/dist/types/chapter-revision.types.js +6 -0
  1040. package/dist/types/ci.d.ts +14 -0
  1041. package/dist/types/ci.js +2 -0
  1042. package/dist/types/codebase.d.ts +309 -0
  1043. package/dist/types/codebase.js +83 -0
  1044. package/dist/types/community-credit-transaction-type.d.ts +2 -0
  1045. package/dist/types/community-credit-transaction-type.js +9 -0
  1046. package/dist/types/community-membership-tier.d.ts +2 -0
  1047. package/dist/types/community-membership-tier.js +4 -0
  1048. package/dist/types/community-operator-role.d.ts +9 -0
  1049. package/dist/types/community-operator-role.js +13 -0
  1050. package/dist/types/community-stage.d.ts +3 -0
  1051. package/dist/types/community-stage.js +19 -0
  1052. package/dist/types/graph-canvas.d.ts +109 -0
  1053. package/dist/types/graph-canvas.js +25 -0
  1054. package/dist/types/graph-question-mapping.d.ts +33 -0
  1055. package/dist/types/graph-question-mapping.js +36 -0
  1056. package/dist/types/index.d.ts +2187 -0
  1057. package/dist/types/index.js +53 -0
  1058. package/dist/types/manuscript-checks.d.ts +1 -0
  1059. package/dist/types/manuscript-checks.js +2 -0
  1060. package/dist/types/orchestration-execution.d.ts +16 -0
  1061. package/dist/types/orchestration-execution.js +5 -0
  1062. package/dist/types/product-readiness.d.ts +44 -0
  1063. package/dist/types/product-readiness.js +2 -0
  1064. package/dist/types/product-route-manifest.d.ts +5 -0
  1065. package/dist/types/product-route-manifest.js +21 -0
  1066. package/dist/types/project-capabilities.d.ts +20 -0
  1067. package/dist/types/project-capabilities.js +40 -0
  1068. package/dist/types/project-kind.d.ts +68 -0
  1069. package/dist/types/project-kind.js +216 -0
  1070. package/dist/types/pwa.d.ts +29 -0
  1071. package/dist/types/pwa.js +6 -0
  1072. package/dist/types/repo.d.ts +2 -0
  1073. package/dist/types/repo.js +2 -0
  1074. package/dist/types/resolve-model-policy-input.d.ts +37 -0
  1075. package/dist/types/resolve-model-policy-input.js +2 -0
  1076. package/dist/types/settings.d.ts +13 -0
  1077. package/dist/types/settings.js +20 -0
  1078. package/dist/types/supabase-generated.d.ts +1122 -0
  1079. package/dist/types/supabase-generated.js +13 -0
  1080. package/dist/types/workflow-action-panel.d.ts +41 -0
  1081. package/dist/types/workflow-action-panel.js +2 -0
  1082. package/dist/types/workflow-command-center.d.ts +50 -0
  1083. package/dist/types/workflow-command-center.js +6 -0
  1084. package/dist/types/workflow-completion.d.ts +154 -0
  1085. package/dist/types/workflow-completion.js +2 -0
  1086. package/dist/types/workflow-graph.d.ts +786 -0
  1087. package/dist/types/workflow-graph.js +119 -0
  1088. package/dist/ui/domain-templates.d.ts +35 -0
  1089. package/dist/ui/domain-templates.js +242 -0
  1090. package/dist/utils/github-closing-keywords.d.ts +8 -0
  1091. package/dist/utils/github-closing-keywords.js +27 -0
  1092. package/dist/utils/implement-pr-batch-policy.d.ts +17 -0
  1093. package/dist/utils/implement-pr-batch-policy.js +72 -0
  1094. package/dist/utils/implement-pr-batch.d.ts +19 -0
  1095. package/dist/utils/implement-pr-batch.js +95 -0
  1096. package/dist/utils/implement-pr-metadata.d.ts +32 -0
  1097. package/dist/utils/implement-pr-metadata.js +41 -0
  1098. package/dist/workflow/api-route-key-resolver.d.ts +11 -0
  1099. package/dist/workflow/api-route-key-resolver.js +51 -0
  1100. package/dist/workflow/assurance-selector-keys.d.ts +134 -0
  1101. package/dist/workflow/assurance-selector-keys.js +145 -0
  1102. package/dist/workflow/channel-registry.d.ts +959 -0
  1103. package/dist/workflow/channel-registry.js +1475 -0
  1104. package/dist/workflow/evaluate-existing-codebase-readiness.d.ts +28 -0
  1105. package/dist/workflow/evaluate-existing-codebase-readiness.js +329 -0
  1106. package/dist/workflow/evaluate-ingest-gate.d.ts +11 -0
  1107. package/dist/workflow/evaluate-ingest-gate.js +168 -0
  1108. package/dist/workflow/evaluate-repair-specify-gate.d.ts +10 -0
  1109. package/dist/workflow/evaluate-repair-specify-gate.js +93 -0
  1110. package/dist/workflow/existing-codebase-step-area-map.d.ts +4 -0
  1111. package/dist/workflow/existing-codebase-step-area-map.js +22 -0
  1112. package/dist/workflow/film-spine-nav-aliases.d.ts +23 -0
  1113. package/dist/workflow/film-spine-nav-aliases.js +76 -0
  1114. package/dist/workflow/index.d.ts +23 -0
  1115. package/dist/workflow/index.js +39 -0
  1116. package/dist/workflow/is-code-reality-semantically-mapped.d.ts +8 -0
  1117. package/dist/workflow/is-code-reality-semantically-mapped.js +21 -0
  1118. package/dist/workflow/is-repository-scan-complete.d.ts +11 -0
  1119. package/dist/workflow/is-repository-scan-complete.js +28 -0
  1120. package/dist/workflow/normalize-workflow-execution-mode.d.ts +4 -0
  1121. package/dist/workflow/normalize-workflow-execution-mode.js +16 -0
  1122. package/dist/workflow/project-kind-normalizer.d.ts +34 -0
  1123. package/dist/workflow/project-kind-normalizer.js +162 -0
  1124. package/dist/workflow/resolve-workflow-variant.d.ts +42 -0
  1125. package/dist/workflow/resolve-workflow-variant.js +101 -0
  1126. package/dist/workflow/step-id-canonical.d.ts +26 -0
  1127. package/dist/workflow/step-id-canonical.js +58 -0
  1128. package/dist/workflow/test-obligation-policy.d.ts +12 -0
  1129. package/dist/workflow/test-obligation-policy.js +82 -0
  1130. package/dist/workflow/test-policy-registry.d.ts +45 -0
  1131. package/dist/workflow/test-policy-registry.js +190 -0
  1132. package/dist/workflow/workflow-assurance-completion-probe-gates.d.ts +43 -0
  1133. package/dist/workflow/workflow-assurance-completion-probe-gates.js +88 -0
  1134. package/dist/workflow/workflow-assurance-manifest.d.ts +84 -0
  1135. package/dist/workflow/workflow-assurance-manifest.js +309 -0
  1136. package/dist/workflow/workflow-assurance-wiring-tiers.d.ts +13 -0
  1137. package/dist/workflow/workflow-assurance-wiring-tiers.js +32 -0
  1138. package/dist/workflow/workflow-doctor-closure.d.ts +16 -0
  1139. package/dist/workflow/workflow-doctor-closure.js +245 -0
  1140. package/package.json +82 -4
  1141. package/README.md +0 -3
@@ -0,0 +1,4069 @@
1
+ import { z } from "zod";
2
+ /** Default documentary audiobook production profile (SSOT for GET settings). */
3
+ export declare const DEFAULT_AUDIO_PRODUCTION_SETTINGS: {
4
+ readonly mode: "documentary_audiobook";
5
+ readonly narrationProvider: "elevenlabs";
6
+ readonly soundProvider: "elevenlabs";
7
+ readonly voiceName: "Alice - Young British Woman";
8
+ readonly elevenLabsVoiceId: "ZEt85AU1ui8Rr8FxNslW";
9
+ readonly voiceSettingsPreset: "documentary-balanced-v1";
10
+ readonly voiceSettings: {
11
+ style: number;
12
+ stability: number;
13
+ similarity_boost: number;
14
+ use_speaker_boost: boolean;
15
+ };
16
+ readonly soundDesignIntensity: "none";
17
+ readonly maxCuesPerChapter: 0;
18
+ readonly visualStoryboardEnabled: false;
19
+ };
20
+ /** Default voice identity fields for `AudiobookVoiceProfile` artifacts (`generationMeta` added at persist time). */
21
+ export declare const DEFAULT_DOCUMENTARY_AUDIOBOOK_VOICE_PROFILE_IDS: {
22
+ readonly displayName: "Alice - Young British Woman";
23
+ readonly elevenLabsVoiceId: "ZEt85AU1ui8Rr8FxNslW";
24
+ readonly modelId: "eleven_turbo_v2_5";
25
+ readonly outputFormat: "mp3_44100_192";
26
+ };
27
+ export declare const AudioProductionModeSchema: z.ZodLiteral<"documentary_audiobook">;
28
+ export declare const AudioProviderIdSchema: z.ZodLiteral<"elevenlabs">;
29
+ export declare const SoundDesignIntensitySchema: z.ZodEnum<["none", "subtle", "moderate"]>;
30
+ /** Narrator-neutral migration values for legacy saved non-Alice profiles. */
31
+ export declare const LEGACY_NEUTRAL_VOICE_SETTINGS: {
32
+ style: number;
33
+ stability: number;
34
+ similarity_boost: number;
35
+ use_speaker_boost: boolean;
36
+ };
37
+ export declare const AudioProductionSettingsSchema: z.ZodObject<{
38
+ mode: z.ZodLiteral<"documentary_audiobook">;
39
+ narrationProvider: z.ZodLiteral<"elevenlabs">;
40
+ soundProvider: z.ZodLiteral<"elevenlabs">;
41
+ voiceName: z.ZodString;
42
+ elevenLabsVoiceId: z.ZodOptional<z.ZodString>;
43
+ voiceSettingsPreset: z.ZodDefault<z.ZodString>;
44
+ voiceSettings: z.ZodDefault<z.ZodObject<{
45
+ stability: z.ZodNumber;
46
+ similarity_boost: z.ZodNumber;
47
+ style: z.ZodNumber;
48
+ use_speaker_boost: z.ZodBoolean;
49
+ }, "strict", z.ZodTypeAny, {
50
+ style: number;
51
+ stability: number;
52
+ similarity_boost: number;
53
+ use_speaker_boost: boolean;
54
+ }, {
55
+ style: number;
56
+ stability: number;
57
+ similarity_boost: number;
58
+ use_speaker_boost: boolean;
59
+ }>>;
60
+ soundDesignIntensity: z.ZodEnum<["none", "subtle", "moderate"]>;
61
+ maxCuesPerChapter: z.ZodNumber;
62
+ visualStoryboardEnabled: z.ZodBoolean;
63
+ }, "strict", z.ZodTypeAny, {
64
+ mode: "documentary_audiobook";
65
+ voiceSettings: {
66
+ style: number;
67
+ stability: number;
68
+ similarity_boost: number;
69
+ use_speaker_boost: boolean;
70
+ };
71
+ voiceName: string;
72
+ voiceSettingsPreset: string;
73
+ narrationProvider: "elevenlabs";
74
+ soundProvider: "elevenlabs";
75
+ soundDesignIntensity: "none" | "subtle" | "moderate";
76
+ maxCuesPerChapter: number;
77
+ visualStoryboardEnabled: boolean;
78
+ elevenLabsVoiceId?: string | undefined;
79
+ }, {
80
+ mode: "documentary_audiobook";
81
+ voiceName: string;
82
+ narrationProvider: "elevenlabs";
83
+ soundProvider: "elevenlabs";
84
+ soundDesignIntensity: "none" | "subtle" | "moderate";
85
+ maxCuesPerChapter: number;
86
+ visualStoryboardEnabled: boolean;
87
+ voiceSettings?: {
88
+ style: number;
89
+ stability: number;
90
+ similarity_boost: number;
91
+ use_speaker_boost: boolean;
92
+ } | undefined;
93
+ voiceSettingsPreset?: string | undefined;
94
+ elevenLabsVoiceId?: string | undefined;
95
+ }>;
96
+ export declare const AudiobookGenerationMetaSchema: z.ZodObject<{
97
+ sourceTextHash: z.ZodString;
98
+ settingsHash: z.ZodString;
99
+ provider: z.ZodLiteral<"elevenlabs">;
100
+ modelId: z.ZodString;
101
+ voiceId: z.ZodString;
102
+ estimatedCost: z.ZodOptional<z.ZodNumber>;
103
+ createdAt: z.ZodString;
104
+ /** ElevenLabs TTS `output_format` when narration was synthesized. */
105
+ outputFormat: z.ZodOptional<z.ZodString>;
106
+ /** Stage-specific accounting. Never copy one stage's estimate onto another stage. */
107
+ costBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
108
+ provider: z.ZodEnum<["openai", "elevenlabs"]>;
109
+ stage: z.ZodEnum<["adaptation", "guardian", "tts", "sound_effect", "mix", "qa"]>;
110
+ /** Total calls embodied by this artifact, including resumed chunks. */
111
+ callCount: z.ZodNumber;
112
+ incrementalCallCount: z.ZodOptional<z.ZodNumber>;
113
+ reusedCallCount: z.ZodOptional<z.ZodNumber>;
114
+ estimatedCostUsd: z.ZodOptional<z.ZodNumber>;
115
+ billedCharacters: z.ZodOptional<z.ZodNumber>;
116
+ incrementalBilledCharacters: z.ZodOptional<z.ZodNumber>;
117
+ reusedBilledCharacters: z.ZodOptional<z.ZodNumber>;
118
+ }, "strict", z.ZodTypeAny, {
119
+ provider: "elevenlabs" | "openai";
120
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
121
+ callCount: number;
122
+ billedCharacters?: number | undefined;
123
+ incrementalCallCount?: number | undefined;
124
+ reusedCallCount?: number | undefined;
125
+ estimatedCostUsd?: number | undefined;
126
+ incrementalBilledCharacters?: number | undefined;
127
+ reusedBilledCharacters?: number | undefined;
128
+ }, {
129
+ provider: "elevenlabs" | "openai";
130
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
131
+ callCount: number;
132
+ billedCharacters?: number | undefined;
133
+ incrementalCallCount?: number | undefined;
134
+ reusedCallCount?: number | undefined;
135
+ estimatedCostUsd?: number | undefined;
136
+ incrementalBilledCharacters?: number | undefined;
137
+ reusedBilledCharacters?: number | undefined;
138
+ }>, "many">>;
139
+ }, "strict", z.ZodTypeAny, {
140
+ createdAt: string;
141
+ voiceId: string;
142
+ modelId: string;
143
+ provider: "elevenlabs";
144
+ sourceTextHash: string;
145
+ settingsHash: string;
146
+ outputFormat?: string | undefined;
147
+ estimatedCost?: number | undefined;
148
+ costBreakdown?: {
149
+ provider: "elevenlabs" | "openai";
150
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
151
+ callCount: number;
152
+ billedCharacters?: number | undefined;
153
+ incrementalCallCount?: number | undefined;
154
+ reusedCallCount?: number | undefined;
155
+ estimatedCostUsd?: number | undefined;
156
+ incrementalBilledCharacters?: number | undefined;
157
+ reusedBilledCharacters?: number | undefined;
158
+ }[] | undefined;
159
+ }, {
160
+ createdAt: string;
161
+ voiceId: string;
162
+ modelId: string;
163
+ provider: "elevenlabs";
164
+ sourceTextHash: string;
165
+ settingsHash: string;
166
+ outputFormat?: string | undefined;
167
+ estimatedCost?: number | undefined;
168
+ costBreakdown?: {
169
+ provider: "elevenlabs" | "openai";
170
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
171
+ callCount: number;
172
+ billedCharacters?: number | undefined;
173
+ incrementalCallCount?: number | undefined;
174
+ reusedCallCount?: number | undefined;
175
+ estimatedCostUsd?: number | undefined;
176
+ incrementalBilledCharacters?: number | undefined;
177
+ reusedBilledCharacters?: number | undefined;
178
+ }[] | undefined;
179
+ }>;
180
+ export declare const AudiobookVoiceProfileSchema: z.ZodObject<{
181
+ /** Required on current profile rows; historical rows remain readable but are not cacheable. */
182
+ chapterIndex: z.ZodOptional<z.ZodNumber>;
183
+ displayName: z.ZodString;
184
+ elevenLabsVoiceId: z.ZodString;
185
+ previewUrl: z.ZodOptional<z.ZodString>;
186
+ generationMeta: z.ZodObject<{
187
+ sourceTextHash: z.ZodString;
188
+ settingsHash: z.ZodString;
189
+ provider: z.ZodLiteral<"elevenlabs">;
190
+ modelId: z.ZodString;
191
+ voiceId: z.ZodString;
192
+ estimatedCost: z.ZodOptional<z.ZodNumber>;
193
+ createdAt: z.ZodString;
194
+ /** ElevenLabs TTS `output_format` when narration was synthesized. */
195
+ outputFormat: z.ZodOptional<z.ZodString>;
196
+ /** Stage-specific accounting. Never copy one stage's estimate onto another stage. */
197
+ costBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
198
+ provider: z.ZodEnum<["openai", "elevenlabs"]>;
199
+ stage: z.ZodEnum<["adaptation", "guardian", "tts", "sound_effect", "mix", "qa"]>;
200
+ /** Total calls embodied by this artifact, including resumed chunks. */
201
+ callCount: z.ZodNumber;
202
+ incrementalCallCount: z.ZodOptional<z.ZodNumber>;
203
+ reusedCallCount: z.ZodOptional<z.ZodNumber>;
204
+ estimatedCostUsd: z.ZodOptional<z.ZodNumber>;
205
+ billedCharacters: z.ZodOptional<z.ZodNumber>;
206
+ incrementalBilledCharacters: z.ZodOptional<z.ZodNumber>;
207
+ reusedBilledCharacters: z.ZodOptional<z.ZodNumber>;
208
+ }, "strict", z.ZodTypeAny, {
209
+ provider: "elevenlabs" | "openai";
210
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
211
+ callCount: number;
212
+ billedCharacters?: number | undefined;
213
+ incrementalCallCount?: number | undefined;
214
+ reusedCallCount?: number | undefined;
215
+ estimatedCostUsd?: number | undefined;
216
+ incrementalBilledCharacters?: number | undefined;
217
+ reusedBilledCharacters?: number | undefined;
218
+ }, {
219
+ provider: "elevenlabs" | "openai";
220
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
221
+ callCount: number;
222
+ billedCharacters?: number | undefined;
223
+ incrementalCallCount?: number | undefined;
224
+ reusedCallCount?: number | undefined;
225
+ estimatedCostUsd?: number | undefined;
226
+ incrementalBilledCharacters?: number | undefined;
227
+ reusedBilledCharacters?: number | undefined;
228
+ }>, "many">>;
229
+ }, "strict", z.ZodTypeAny, {
230
+ createdAt: string;
231
+ voiceId: string;
232
+ modelId: string;
233
+ provider: "elevenlabs";
234
+ sourceTextHash: string;
235
+ settingsHash: string;
236
+ outputFormat?: string | undefined;
237
+ estimatedCost?: number | undefined;
238
+ costBreakdown?: {
239
+ provider: "elevenlabs" | "openai";
240
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
241
+ callCount: number;
242
+ billedCharacters?: number | undefined;
243
+ incrementalCallCount?: number | undefined;
244
+ reusedCallCount?: number | undefined;
245
+ estimatedCostUsd?: number | undefined;
246
+ incrementalBilledCharacters?: number | undefined;
247
+ reusedBilledCharacters?: number | undefined;
248
+ }[] | undefined;
249
+ }, {
250
+ createdAt: string;
251
+ voiceId: string;
252
+ modelId: string;
253
+ provider: "elevenlabs";
254
+ sourceTextHash: string;
255
+ settingsHash: string;
256
+ outputFormat?: string | undefined;
257
+ estimatedCost?: number | undefined;
258
+ costBreakdown?: {
259
+ provider: "elevenlabs" | "openai";
260
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
261
+ callCount: number;
262
+ billedCharacters?: number | undefined;
263
+ incrementalCallCount?: number | undefined;
264
+ reusedCallCount?: number | undefined;
265
+ estimatedCostUsd?: number | undefined;
266
+ incrementalBilledCharacters?: number | undefined;
267
+ reusedBilledCharacters?: number | undefined;
268
+ }[] | undefined;
269
+ }>;
270
+ }, "strict", z.ZodTypeAny, {
271
+ elevenLabsVoiceId: string;
272
+ displayName: string;
273
+ generationMeta: {
274
+ createdAt: string;
275
+ voiceId: string;
276
+ modelId: string;
277
+ provider: "elevenlabs";
278
+ sourceTextHash: string;
279
+ settingsHash: string;
280
+ outputFormat?: string | undefined;
281
+ estimatedCost?: number | undefined;
282
+ costBreakdown?: {
283
+ provider: "elevenlabs" | "openai";
284
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
285
+ callCount: number;
286
+ billedCharacters?: number | undefined;
287
+ incrementalCallCount?: number | undefined;
288
+ reusedCallCount?: number | undefined;
289
+ estimatedCostUsd?: number | undefined;
290
+ incrementalBilledCharacters?: number | undefined;
291
+ reusedBilledCharacters?: number | undefined;
292
+ }[] | undefined;
293
+ };
294
+ chapterIndex?: number | undefined;
295
+ previewUrl?: string | undefined;
296
+ }, {
297
+ elevenLabsVoiceId: string;
298
+ displayName: string;
299
+ generationMeta: {
300
+ createdAt: string;
301
+ voiceId: string;
302
+ modelId: string;
303
+ provider: "elevenlabs";
304
+ sourceTextHash: string;
305
+ settingsHash: string;
306
+ outputFormat?: string | undefined;
307
+ estimatedCost?: number | undefined;
308
+ costBreakdown?: {
309
+ provider: "elevenlabs" | "openai";
310
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
311
+ callCount: number;
312
+ billedCharacters?: number | undefined;
313
+ incrementalCallCount?: number | undefined;
314
+ reusedCallCount?: number | undefined;
315
+ estimatedCostUsd?: number | undefined;
316
+ incrementalBilledCharacters?: number | undefined;
317
+ reusedBilledCharacters?: number | undefined;
318
+ }[] | undefined;
319
+ };
320
+ chapterIndex?: number | undefined;
321
+ previewUrl?: string | undefined;
322
+ }>;
323
+ export declare const NarrationSemanticDimensionScoresSchema: z.ZodObject<{
324
+ semanticFidelity: z.ZodNumber;
325
+ factualAccuracy: z.ZodNumber;
326
+ directness: z.ZodNumber;
327
+ humanVoiceStorytelling: z.ZodNumber;
328
+ spokenClarity: z.ZodNumber;
329
+ listeningEngagement: z.ZodNumber;
330
+ }, "strict", z.ZodTypeAny, {
331
+ semanticFidelity: number;
332
+ factualAccuracy: number;
333
+ directness: number;
334
+ humanVoiceStorytelling: number;
335
+ spokenClarity: number;
336
+ listeningEngagement: number;
337
+ }, {
338
+ semanticFidelity: number;
339
+ factualAccuracy: number;
340
+ directness: number;
341
+ humanVoiceStorytelling: number;
342
+ spokenClarity: number;
343
+ listeningEngagement: number;
344
+ }>;
345
+ export type NarrationSemanticDimensionScores = z.infer<typeof NarrationSemanticDimensionScoresSchema>;
346
+ /** Every dimension is non-compensating: a high style score cannot hide lost meaning. */
347
+ export declare const NARRATION_SEMANTIC_DIMENSION_FLOORS: NarrationSemanticDimensionScores;
348
+ export declare const NarrationSemanticSourceUnitSchema: z.ZodObject<{
349
+ id: z.ZodString;
350
+ unitKind: z.ZodEnum<["sentence", "paragraph", "fragment"]>;
351
+ scriptSourceStart: z.ZodNumber;
352
+ scriptSourceEnd: z.ZodNumber;
353
+ text: z.ZodString;
354
+ textHash: z.ZodString;
355
+ }, "strict", z.ZodTypeAny, {
356
+ id: string;
357
+ text: string;
358
+ unitKind: "sentence" | "paragraph" | "fragment";
359
+ scriptSourceStart: number;
360
+ scriptSourceEnd: number;
361
+ textHash: string;
362
+ }, {
363
+ id: string;
364
+ text: string;
365
+ unitKind: "sentence" | "paragraph" | "fragment";
366
+ scriptSourceStart: number;
367
+ scriptSourceEnd: number;
368
+ textHash: string;
369
+ }>;
370
+ export type NarrationSemanticSourceUnit = z.infer<typeof NarrationSemanticSourceUnitSchema>;
371
+ export declare const NarrationSemanticSourceUnitProofSchema: z.ZodObject<Omit<{
372
+ id: z.ZodString;
373
+ unitKind: z.ZodEnum<["sentence", "paragraph", "fragment"]>;
374
+ scriptSourceStart: z.ZodNumber;
375
+ scriptSourceEnd: z.ZodNumber;
376
+ text: z.ZodString;
377
+ textHash: z.ZodString;
378
+ }, "text">, "strict", z.ZodTypeAny, {
379
+ id: string;
380
+ unitKind: "sentence" | "paragraph" | "fragment";
381
+ scriptSourceStart: number;
382
+ scriptSourceEnd: number;
383
+ textHash: string;
384
+ }, {
385
+ id: string;
386
+ unitKind: "sentence" | "paragraph" | "fragment";
387
+ scriptSourceStart: number;
388
+ scriptSourceEnd: number;
389
+ textHash: string;
390
+ }>;
391
+ export type NarrationSemanticSourceUnitProof = z.infer<typeof NarrationSemanticSourceUnitProofSchema>;
392
+ export declare const NarrationSemanticContractItemSchema: z.ZodObject<{
393
+ id: z.ZodString;
394
+ kind: z.ZodEnum<["purpose", "reader_question", "direct_answer", "new_contribution", "reader_payoff", "prior_relationship", "exit_criterion", "audio_arc", "paragraph_plan", "required_claim", "required_definition", "required_source", "counterclaim"]>;
395
+ text: z.ZodString;
396
+ textHash: z.ZodString;
397
+ }, "strict", z.ZodTypeAny, {
398
+ id: string;
399
+ kind: "counterclaim" | "purpose" | "reader_question" | "direct_answer" | "new_contribution" | "reader_payoff" | "prior_relationship" | "exit_criterion" | "audio_arc" | "paragraph_plan" | "required_claim" | "required_definition" | "required_source";
400
+ text: string;
401
+ textHash: string;
402
+ }, {
403
+ id: string;
404
+ kind: "counterclaim" | "purpose" | "reader_question" | "direct_answer" | "new_contribution" | "reader_payoff" | "prior_relationship" | "exit_criterion" | "audio_arc" | "paragraph_plan" | "required_claim" | "required_definition" | "required_source";
405
+ text: string;
406
+ textHash: string;
407
+ }>;
408
+ export type NarrationSemanticContractItem = z.infer<typeof NarrationSemanticContractItemSchema>;
409
+ /** Strict model output for one lossless adaptation batch. */
410
+ export declare const NarrationAdaptationBatchResultSchema: z.ZodObject<{
411
+ batchId: z.ZodString;
412
+ scriptText: z.ZodString;
413
+ pronunciationNotes: z.ZodArray<z.ZodString, "many">;
414
+ sourceUnitIds: z.ZodArray<z.ZodString, "many">;
415
+ requiredContractItemIds: z.ZodArray<z.ZodString, "many">;
416
+ }, "strict", z.ZodTypeAny, {
417
+ batchId: string;
418
+ scriptText: string;
419
+ pronunciationNotes: string[];
420
+ sourceUnitIds: string[];
421
+ requiredContractItemIds: string[];
422
+ }, {
423
+ batchId: string;
424
+ scriptText: string;
425
+ pronunciationNotes: string[];
426
+ sourceUnitIds: string[];
427
+ requiredContractItemIds: string[];
428
+ }>;
429
+ export type NarrationAdaptationBatchResult = z.infer<typeof NarrationAdaptationBatchResultSchema>;
430
+ /** Independent Guardian output. Server code owns coverage, floors, and pass/fail. */
431
+ export declare const NarrationGuardianResultSchema: z.ZodObject<{
432
+ batchId: z.ZodString;
433
+ dimensions: z.ZodObject<{
434
+ semanticFidelity: z.ZodNumber;
435
+ factualAccuracy: z.ZodNumber;
436
+ directness: z.ZodNumber;
437
+ humanVoiceStorytelling: z.ZodNumber;
438
+ spokenClarity: z.ZodNumber;
439
+ listeningEngagement: z.ZodNumber;
440
+ }, "strict", z.ZodTypeAny, {
441
+ semanticFidelity: number;
442
+ factualAccuracy: number;
443
+ directness: number;
444
+ humanVoiceStorytelling: number;
445
+ spokenClarity: number;
446
+ listeningEngagement: number;
447
+ }, {
448
+ semanticFidelity: number;
449
+ factualAccuracy: number;
450
+ directness: number;
451
+ humanVoiceStorytelling: number;
452
+ spokenClarity: number;
453
+ listeningEngagement: number;
454
+ }>;
455
+ sourceUnitIds: z.ZodArray<z.ZodString, "many">;
456
+ requiredContractItemIds: z.ZodArray<z.ZodString, "many">;
457
+ unsupportedAdditions: z.ZodArray<z.ZodString, "many">;
458
+ unresolvedContractItemIds: z.ZodArray<z.ZodString, "many">;
459
+ blockers: z.ZodArray<z.ZodString, "many">;
460
+ }, "strict", z.ZodTypeAny, {
461
+ batchId: string;
462
+ sourceUnitIds: string[];
463
+ requiredContractItemIds: string[];
464
+ dimensions: {
465
+ semanticFidelity: number;
466
+ factualAccuracy: number;
467
+ directness: number;
468
+ humanVoiceStorytelling: number;
469
+ spokenClarity: number;
470
+ listeningEngagement: number;
471
+ };
472
+ unsupportedAdditions: string[];
473
+ unresolvedContractItemIds: string[];
474
+ blockers: string[];
475
+ }, {
476
+ batchId: string;
477
+ sourceUnitIds: string[];
478
+ requiredContractItemIds: string[];
479
+ dimensions: {
480
+ semanticFidelity: number;
481
+ factualAccuracy: number;
482
+ directness: number;
483
+ humanVoiceStorytelling: number;
484
+ spokenClarity: number;
485
+ listeningEngagement: number;
486
+ };
487
+ unsupportedAdditions: string[];
488
+ unresolvedContractItemIds: string[];
489
+ blockers: string[];
490
+ }>;
491
+ export type NarrationGuardianResult = z.infer<typeof NarrationGuardianResultSchema>;
492
+ export declare const NarrationSemanticBatchMappingSchema: z.ZodObject<{
493
+ batchId: z.ZodString;
494
+ sourceUnitIds: z.ZodArray<z.ZodString, "many">;
495
+ requiredContractItemIds: z.ZodArray<z.ZodString, "many">;
496
+ scriptStart: z.ZodNumber;
497
+ scriptEnd: z.ZodNumber;
498
+ scriptHash: z.ZodString;
499
+ }, "strict", z.ZodTypeAny, {
500
+ scriptStart: number;
501
+ scriptEnd: number;
502
+ batchId: string;
503
+ sourceUnitIds: string[];
504
+ requiredContractItemIds: string[];
505
+ scriptHash: string;
506
+ }, {
507
+ scriptStart: number;
508
+ scriptEnd: number;
509
+ batchId: string;
510
+ sourceUnitIds: string[];
511
+ requiredContractItemIds: string[];
512
+ scriptHash: string;
513
+ }>;
514
+ export type NarrationSemanticBatchMapping = z.infer<typeof NarrationSemanticBatchMappingSchema>;
515
+ export declare const NarrationSemanticAssessmentSchema: z.ZodObject<{
516
+ version: z.ZodLiteral<"narration-semantic-v1">;
517
+ adaptationPromptVersion: z.ZodLiteral<"narration-adaptation-v1">;
518
+ guardianPromptVersion: z.ZodLiteral<"narration-guardian-v1">;
519
+ chapterArtifactId: z.ZodString;
520
+ sourcePlanArtifactId: z.ZodString;
521
+ chapterAuthorizationHash: z.ZodString;
522
+ sourceTextHash: z.ZodString;
523
+ sourceLength: z.ZodNumber;
524
+ sourceContractHash: z.ZodString;
525
+ scriptHash: z.ZodString;
526
+ scriptLength: z.ZodNumber;
527
+ semanticCacheKey: z.ZodString;
528
+ sourceUnitIds: z.ZodArray<z.ZodString, "many">;
529
+ sourceUnitProofs: z.ZodArray<z.ZodObject<Omit<{
530
+ id: z.ZodString;
531
+ unitKind: z.ZodEnum<["sentence", "paragraph", "fragment"]>;
532
+ scriptSourceStart: z.ZodNumber;
533
+ scriptSourceEnd: z.ZodNumber;
534
+ text: z.ZodString;
535
+ textHash: z.ZodString;
536
+ }, "text">, "strict", z.ZodTypeAny, {
537
+ id: string;
538
+ unitKind: "sentence" | "paragraph" | "fragment";
539
+ scriptSourceStart: number;
540
+ scriptSourceEnd: number;
541
+ textHash: string;
542
+ }, {
543
+ id: string;
544
+ unitKind: "sentence" | "paragraph" | "fragment";
545
+ scriptSourceStart: number;
546
+ scriptSourceEnd: number;
547
+ textHash: string;
548
+ }>, "many">;
549
+ requiredContractItemIds: z.ZodArray<z.ZodString, "many">;
550
+ batchMappings: z.ZodArray<z.ZodObject<{
551
+ batchId: z.ZodString;
552
+ sourceUnitIds: z.ZodArray<z.ZodString, "many">;
553
+ requiredContractItemIds: z.ZodArray<z.ZodString, "many">;
554
+ scriptStart: z.ZodNumber;
555
+ scriptEnd: z.ZodNumber;
556
+ scriptHash: z.ZodString;
557
+ }, "strict", z.ZodTypeAny, {
558
+ scriptStart: number;
559
+ scriptEnd: number;
560
+ batchId: string;
561
+ sourceUnitIds: string[];
562
+ requiredContractItemIds: string[];
563
+ scriptHash: string;
564
+ }, {
565
+ scriptStart: number;
566
+ scriptEnd: number;
567
+ batchId: string;
568
+ sourceUnitIds: string[];
569
+ requiredContractItemIds: string[];
570
+ scriptHash: string;
571
+ }>, "many">;
572
+ dimensions: z.ZodObject<{
573
+ semanticFidelity: z.ZodNumber;
574
+ factualAccuracy: z.ZodNumber;
575
+ directness: z.ZodNumber;
576
+ humanVoiceStorytelling: z.ZodNumber;
577
+ spokenClarity: z.ZodNumber;
578
+ listeningEngagement: z.ZodNumber;
579
+ }, "strict", z.ZodTypeAny, {
580
+ semanticFidelity: number;
581
+ factualAccuracy: number;
582
+ directness: number;
583
+ humanVoiceStorytelling: number;
584
+ spokenClarity: number;
585
+ listeningEngagement: number;
586
+ }, {
587
+ semanticFidelity: number;
588
+ factualAccuracy: number;
589
+ directness: number;
590
+ humanVoiceStorytelling: number;
591
+ spokenClarity: number;
592
+ listeningEngagement: number;
593
+ }>;
594
+ unsupportedAdditions: z.ZodArray<z.ZodString, "many">;
595
+ unresolvedContractItemIds: z.ZodArray<z.ZodString, "many">;
596
+ blockers: z.ZodArray<z.ZodString, "many">;
597
+ assessedAt: z.ZodString;
598
+ passed: z.ZodBoolean;
599
+ }, "strict", z.ZodTypeAny, {
600
+ sourceTextHash: string;
601
+ sourceUnitIds: string[];
602
+ requiredContractItemIds: string[];
603
+ dimensions: {
604
+ semanticFidelity: number;
605
+ factualAccuracy: number;
606
+ directness: number;
607
+ humanVoiceStorytelling: number;
608
+ spokenClarity: number;
609
+ listeningEngagement: number;
610
+ };
611
+ unsupportedAdditions: string[];
612
+ unresolvedContractItemIds: string[];
613
+ blockers: string[];
614
+ scriptHash: string;
615
+ version: "narration-semantic-v1";
616
+ adaptationPromptVersion: "narration-adaptation-v1";
617
+ guardianPromptVersion: "narration-guardian-v1";
618
+ chapterArtifactId: string;
619
+ sourcePlanArtifactId: string;
620
+ chapterAuthorizationHash: string;
621
+ sourceLength: number;
622
+ sourceContractHash: string;
623
+ scriptLength: number;
624
+ semanticCacheKey: string;
625
+ sourceUnitProofs: {
626
+ id: string;
627
+ unitKind: "sentence" | "paragraph" | "fragment";
628
+ scriptSourceStart: number;
629
+ scriptSourceEnd: number;
630
+ textHash: string;
631
+ }[];
632
+ batchMappings: {
633
+ scriptStart: number;
634
+ scriptEnd: number;
635
+ batchId: string;
636
+ sourceUnitIds: string[];
637
+ requiredContractItemIds: string[];
638
+ scriptHash: string;
639
+ }[];
640
+ assessedAt: string;
641
+ passed: boolean;
642
+ }, {
643
+ sourceTextHash: string;
644
+ sourceUnitIds: string[];
645
+ requiredContractItemIds: string[];
646
+ dimensions: {
647
+ semanticFidelity: number;
648
+ factualAccuracy: number;
649
+ directness: number;
650
+ humanVoiceStorytelling: number;
651
+ spokenClarity: number;
652
+ listeningEngagement: number;
653
+ };
654
+ unsupportedAdditions: string[];
655
+ unresolvedContractItemIds: string[];
656
+ blockers: string[];
657
+ scriptHash: string;
658
+ version: "narration-semantic-v1";
659
+ adaptationPromptVersion: "narration-adaptation-v1";
660
+ guardianPromptVersion: "narration-guardian-v1";
661
+ chapterArtifactId: string;
662
+ sourcePlanArtifactId: string;
663
+ chapterAuthorizationHash: string;
664
+ sourceLength: number;
665
+ sourceContractHash: string;
666
+ scriptLength: number;
667
+ semanticCacheKey: string;
668
+ sourceUnitProofs: {
669
+ id: string;
670
+ unitKind: "sentence" | "paragraph" | "fragment";
671
+ scriptSourceStart: number;
672
+ scriptSourceEnd: number;
673
+ textHash: string;
674
+ }[];
675
+ batchMappings: {
676
+ scriptStart: number;
677
+ scriptEnd: number;
678
+ batchId: string;
679
+ sourceUnitIds: string[];
680
+ requiredContractItemIds: string[];
681
+ scriptHash: string;
682
+ }[];
683
+ assessedAt: string;
684
+ passed: boolean;
685
+ }>;
686
+ export type NarrationSemanticAssessment = z.infer<typeof NarrationSemanticAssessmentSchema>;
687
+ export declare const NarrationScriptArtifactPayloadSchema: z.ZodObject<{
688
+ chapterIndex: z.ZodNumber;
689
+ chapterTitle: z.ZodString;
690
+ scriptText: z.ZodString;
691
+ pronunciationNotes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
692
+ /** Missing on historical scripts; such scripts are never reusable or release-ready. */
693
+ semanticAssessment: z.ZodOptional<z.ZodObject<{
694
+ version: z.ZodLiteral<"narration-semantic-v1">;
695
+ adaptationPromptVersion: z.ZodLiteral<"narration-adaptation-v1">;
696
+ guardianPromptVersion: z.ZodLiteral<"narration-guardian-v1">;
697
+ chapterArtifactId: z.ZodString;
698
+ sourcePlanArtifactId: z.ZodString;
699
+ chapterAuthorizationHash: z.ZodString;
700
+ sourceTextHash: z.ZodString;
701
+ sourceLength: z.ZodNumber;
702
+ sourceContractHash: z.ZodString;
703
+ scriptHash: z.ZodString;
704
+ scriptLength: z.ZodNumber;
705
+ semanticCacheKey: z.ZodString;
706
+ sourceUnitIds: z.ZodArray<z.ZodString, "many">;
707
+ sourceUnitProofs: z.ZodArray<z.ZodObject<Omit<{
708
+ id: z.ZodString;
709
+ unitKind: z.ZodEnum<["sentence", "paragraph", "fragment"]>;
710
+ scriptSourceStart: z.ZodNumber;
711
+ scriptSourceEnd: z.ZodNumber;
712
+ text: z.ZodString;
713
+ textHash: z.ZodString;
714
+ }, "text">, "strict", z.ZodTypeAny, {
715
+ id: string;
716
+ unitKind: "sentence" | "paragraph" | "fragment";
717
+ scriptSourceStart: number;
718
+ scriptSourceEnd: number;
719
+ textHash: string;
720
+ }, {
721
+ id: string;
722
+ unitKind: "sentence" | "paragraph" | "fragment";
723
+ scriptSourceStart: number;
724
+ scriptSourceEnd: number;
725
+ textHash: string;
726
+ }>, "many">;
727
+ requiredContractItemIds: z.ZodArray<z.ZodString, "many">;
728
+ batchMappings: z.ZodArray<z.ZodObject<{
729
+ batchId: z.ZodString;
730
+ sourceUnitIds: z.ZodArray<z.ZodString, "many">;
731
+ requiredContractItemIds: z.ZodArray<z.ZodString, "many">;
732
+ scriptStart: z.ZodNumber;
733
+ scriptEnd: z.ZodNumber;
734
+ scriptHash: z.ZodString;
735
+ }, "strict", z.ZodTypeAny, {
736
+ scriptStart: number;
737
+ scriptEnd: number;
738
+ batchId: string;
739
+ sourceUnitIds: string[];
740
+ requiredContractItemIds: string[];
741
+ scriptHash: string;
742
+ }, {
743
+ scriptStart: number;
744
+ scriptEnd: number;
745
+ batchId: string;
746
+ sourceUnitIds: string[];
747
+ requiredContractItemIds: string[];
748
+ scriptHash: string;
749
+ }>, "many">;
750
+ dimensions: z.ZodObject<{
751
+ semanticFidelity: z.ZodNumber;
752
+ factualAccuracy: z.ZodNumber;
753
+ directness: z.ZodNumber;
754
+ humanVoiceStorytelling: z.ZodNumber;
755
+ spokenClarity: z.ZodNumber;
756
+ listeningEngagement: z.ZodNumber;
757
+ }, "strict", z.ZodTypeAny, {
758
+ semanticFidelity: number;
759
+ factualAccuracy: number;
760
+ directness: number;
761
+ humanVoiceStorytelling: number;
762
+ spokenClarity: number;
763
+ listeningEngagement: number;
764
+ }, {
765
+ semanticFidelity: number;
766
+ factualAccuracy: number;
767
+ directness: number;
768
+ humanVoiceStorytelling: number;
769
+ spokenClarity: number;
770
+ listeningEngagement: number;
771
+ }>;
772
+ unsupportedAdditions: z.ZodArray<z.ZodString, "many">;
773
+ unresolvedContractItemIds: z.ZodArray<z.ZodString, "many">;
774
+ blockers: z.ZodArray<z.ZodString, "many">;
775
+ assessedAt: z.ZodString;
776
+ passed: z.ZodBoolean;
777
+ }, "strict", z.ZodTypeAny, {
778
+ sourceTextHash: string;
779
+ sourceUnitIds: string[];
780
+ requiredContractItemIds: string[];
781
+ dimensions: {
782
+ semanticFidelity: number;
783
+ factualAccuracy: number;
784
+ directness: number;
785
+ humanVoiceStorytelling: number;
786
+ spokenClarity: number;
787
+ listeningEngagement: number;
788
+ };
789
+ unsupportedAdditions: string[];
790
+ unresolvedContractItemIds: string[];
791
+ blockers: string[];
792
+ scriptHash: string;
793
+ version: "narration-semantic-v1";
794
+ adaptationPromptVersion: "narration-adaptation-v1";
795
+ guardianPromptVersion: "narration-guardian-v1";
796
+ chapterArtifactId: string;
797
+ sourcePlanArtifactId: string;
798
+ chapterAuthorizationHash: string;
799
+ sourceLength: number;
800
+ sourceContractHash: string;
801
+ scriptLength: number;
802
+ semanticCacheKey: string;
803
+ sourceUnitProofs: {
804
+ id: string;
805
+ unitKind: "sentence" | "paragraph" | "fragment";
806
+ scriptSourceStart: number;
807
+ scriptSourceEnd: number;
808
+ textHash: string;
809
+ }[];
810
+ batchMappings: {
811
+ scriptStart: number;
812
+ scriptEnd: number;
813
+ batchId: string;
814
+ sourceUnitIds: string[];
815
+ requiredContractItemIds: string[];
816
+ scriptHash: string;
817
+ }[];
818
+ assessedAt: string;
819
+ passed: boolean;
820
+ }, {
821
+ sourceTextHash: string;
822
+ sourceUnitIds: string[];
823
+ requiredContractItemIds: string[];
824
+ dimensions: {
825
+ semanticFidelity: number;
826
+ factualAccuracy: number;
827
+ directness: number;
828
+ humanVoiceStorytelling: number;
829
+ spokenClarity: number;
830
+ listeningEngagement: number;
831
+ };
832
+ unsupportedAdditions: string[];
833
+ unresolvedContractItemIds: string[];
834
+ blockers: string[];
835
+ scriptHash: string;
836
+ version: "narration-semantic-v1";
837
+ adaptationPromptVersion: "narration-adaptation-v1";
838
+ guardianPromptVersion: "narration-guardian-v1";
839
+ chapterArtifactId: string;
840
+ sourcePlanArtifactId: string;
841
+ chapterAuthorizationHash: string;
842
+ sourceLength: number;
843
+ sourceContractHash: string;
844
+ scriptLength: number;
845
+ semanticCacheKey: string;
846
+ sourceUnitProofs: {
847
+ id: string;
848
+ unitKind: "sentence" | "paragraph" | "fragment";
849
+ scriptSourceStart: number;
850
+ scriptSourceEnd: number;
851
+ textHash: string;
852
+ }[];
853
+ batchMappings: {
854
+ scriptStart: number;
855
+ scriptEnd: number;
856
+ batchId: string;
857
+ sourceUnitIds: string[];
858
+ requiredContractItemIds: string[];
859
+ scriptHash: string;
860
+ }[];
861
+ assessedAt: string;
862
+ passed: boolean;
863
+ }>>;
864
+ sourceExcerptRatio: z.ZodOptional<z.ZodNumber>;
865
+ generationMeta: z.ZodObject<{
866
+ sourceTextHash: z.ZodString;
867
+ settingsHash: z.ZodString;
868
+ provider: z.ZodLiteral<"elevenlabs">;
869
+ modelId: z.ZodString;
870
+ voiceId: z.ZodString;
871
+ estimatedCost: z.ZodOptional<z.ZodNumber>;
872
+ createdAt: z.ZodString;
873
+ /** ElevenLabs TTS `output_format` when narration was synthesized. */
874
+ outputFormat: z.ZodOptional<z.ZodString>;
875
+ /** Stage-specific accounting. Never copy one stage's estimate onto another stage. */
876
+ costBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
877
+ provider: z.ZodEnum<["openai", "elevenlabs"]>;
878
+ stage: z.ZodEnum<["adaptation", "guardian", "tts", "sound_effect", "mix", "qa"]>;
879
+ /** Total calls embodied by this artifact, including resumed chunks. */
880
+ callCount: z.ZodNumber;
881
+ incrementalCallCount: z.ZodOptional<z.ZodNumber>;
882
+ reusedCallCount: z.ZodOptional<z.ZodNumber>;
883
+ estimatedCostUsd: z.ZodOptional<z.ZodNumber>;
884
+ billedCharacters: z.ZodOptional<z.ZodNumber>;
885
+ incrementalBilledCharacters: z.ZodOptional<z.ZodNumber>;
886
+ reusedBilledCharacters: z.ZodOptional<z.ZodNumber>;
887
+ }, "strict", z.ZodTypeAny, {
888
+ provider: "elevenlabs" | "openai";
889
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
890
+ callCount: number;
891
+ billedCharacters?: number | undefined;
892
+ incrementalCallCount?: number | undefined;
893
+ reusedCallCount?: number | undefined;
894
+ estimatedCostUsd?: number | undefined;
895
+ incrementalBilledCharacters?: number | undefined;
896
+ reusedBilledCharacters?: number | undefined;
897
+ }, {
898
+ provider: "elevenlabs" | "openai";
899
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
900
+ callCount: number;
901
+ billedCharacters?: number | undefined;
902
+ incrementalCallCount?: number | undefined;
903
+ reusedCallCount?: number | undefined;
904
+ estimatedCostUsd?: number | undefined;
905
+ incrementalBilledCharacters?: number | undefined;
906
+ reusedBilledCharacters?: number | undefined;
907
+ }>, "many">>;
908
+ }, "strict", z.ZodTypeAny, {
909
+ createdAt: string;
910
+ voiceId: string;
911
+ modelId: string;
912
+ provider: "elevenlabs";
913
+ sourceTextHash: string;
914
+ settingsHash: string;
915
+ outputFormat?: string | undefined;
916
+ estimatedCost?: number | undefined;
917
+ costBreakdown?: {
918
+ provider: "elevenlabs" | "openai";
919
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
920
+ callCount: number;
921
+ billedCharacters?: number | undefined;
922
+ incrementalCallCount?: number | undefined;
923
+ reusedCallCount?: number | undefined;
924
+ estimatedCostUsd?: number | undefined;
925
+ incrementalBilledCharacters?: number | undefined;
926
+ reusedBilledCharacters?: number | undefined;
927
+ }[] | undefined;
928
+ }, {
929
+ createdAt: string;
930
+ voiceId: string;
931
+ modelId: string;
932
+ provider: "elevenlabs";
933
+ sourceTextHash: string;
934
+ settingsHash: string;
935
+ outputFormat?: string | undefined;
936
+ estimatedCost?: number | undefined;
937
+ costBreakdown?: {
938
+ provider: "elevenlabs" | "openai";
939
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
940
+ callCount: number;
941
+ billedCharacters?: number | undefined;
942
+ incrementalCallCount?: number | undefined;
943
+ reusedCallCount?: number | undefined;
944
+ estimatedCostUsd?: number | undefined;
945
+ incrementalBilledCharacters?: number | undefined;
946
+ reusedBilledCharacters?: number | undefined;
947
+ }[] | undefined;
948
+ }>;
949
+ }, "strict", z.ZodTypeAny, {
950
+ chapterIndex: number;
951
+ generationMeta: {
952
+ createdAt: string;
953
+ voiceId: string;
954
+ modelId: string;
955
+ provider: "elevenlabs";
956
+ sourceTextHash: string;
957
+ settingsHash: string;
958
+ outputFormat?: string | undefined;
959
+ estimatedCost?: number | undefined;
960
+ costBreakdown?: {
961
+ provider: "elevenlabs" | "openai";
962
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
963
+ callCount: number;
964
+ billedCharacters?: number | undefined;
965
+ incrementalCallCount?: number | undefined;
966
+ reusedCallCount?: number | undefined;
967
+ estimatedCostUsd?: number | undefined;
968
+ incrementalBilledCharacters?: number | undefined;
969
+ reusedBilledCharacters?: number | undefined;
970
+ }[] | undefined;
971
+ };
972
+ scriptText: string;
973
+ pronunciationNotes: string[];
974
+ chapterTitle: string;
975
+ semanticAssessment?: {
976
+ sourceTextHash: string;
977
+ sourceUnitIds: string[];
978
+ requiredContractItemIds: string[];
979
+ dimensions: {
980
+ semanticFidelity: number;
981
+ factualAccuracy: number;
982
+ directness: number;
983
+ humanVoiceStorytelling: number;
984
+ spokenClarity: number;
985
+ listeningEngagement: number;
986
+ };
987
+ unsupportedAdditions: string[];
988
+ unresolvedContractItemIds: string[];
989
+ blockers: string[];
990
+ scriptHash: string;
991
+ version: "narration-semantic-v1";
992
+ adaptationPromptVersion: "narration-adaptation-v1";
993
+ guardianPromptVersion: "narration-guardian-v1";
994
+ chapterArtifactId: string;
995
+ sourcePlanArtifactId: string;
996
+ chapterAuthorizationHash: string;
997
+ sourceLength: number;
998
+ sourceContractHash: string;
999
+ scriptLength: number;
1000
+ semanticCacheKey: string;
1001
+ sourceUnitProofs: {
1002
+ id: string;
1003
+ unitKind: "sentence" | "paragraph" | "fragment";
1004
+ scriptSourceStart: number;
1005
+ scriptSourceEnd: number;
1006
+ textHash: string;
1007
+ }[];
1008
+ batchMappings: {
1009
+ scriptStart: number;
1010
+ scriptEnd: number;
1011
+ batchId: string;
1012
+ sourceUnitIds: string[];
1013
+ requiredContractItemIds: string[];
1014
+ scriptHash: string;
1015
+ }[];
1016
+ assessedAt: string;
1017
+ passed: boolean;
1018
+ } | undefined;
1019
+ sourceExcerptRatio?: number | undefined;
1020
+ }, {
1021
+ chapterIndex: number;
1022
+ generationMeta: {
1023
+ createdAt: string;
1024
+ voiceId: string;
1025
+ modelId: string;
1026
+ provider: "elevenlabs";
1027
+ sourceTextHash: string;
1028
+ settingsHash: string;
1029
+ outputFormat?: string | undefined;
1030
+ estimatedCost?: number | undefined;
1031
+ costBreakdown?: {
1032
+ provider: "elevenlabs" | "openai";
1033
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
1034
+ callCount: number;
1035
+ billedCharacters?: number | undefined;
1036
+ incrementalCallCount?: number | undefined;
1037
+ reusedCallCount?: number | undefined;
1038
+ estimatedCostUsd?: number | undefined;
1039
+ incrementalBilledCharacters?: number | undefined;
1040
+ reusedBilledCharacters?: number | undefined;
1041
+ }[] | undefined;
1042
+ };
1043
+ scriptText: string;
1044
+ chapterTitle: string;
1045
+ pronunciationNotes?: string[] | undefined;
1046
+ semanticAssessment?: {
1047
+ sourceTextHash: string;
1048
+ sourceUnitIds: string[];
1049
+ requiredContractItemIds: string[];
1050
+ dimensions: {
1051
+ semanticFidelity: number;
1052
+ factualAccuracy: number;
1053
+ directness: number;
1054
+ humanVoiceStorytelling: number;
1055
+ spokenClarity: number;
1056
+ listeningEngagement: number;
1057
+ };
1058
+ unsupportedAdditions: string[];
1059
+ unresolvedContractItemIds: string[];
1060
+ blockers: string[];
1061
+ scriptHash: string;
1062
+ version: "narration-semantic-v1";
1063
+ adaptationPromptVersion: "narration-adaptation-v1";
1064
+ guardianPromptVersion: "narration-guardian-v1";
1065
+ chapterArtifactId: string;
1066
+ sourcePlanArtifactId: string;
1067
+ chapterAuthorizationHash: string;
1068
+ sourceLength: number;
1069
+ sourceContractHash: string;
1070
+ scriptLength: number;
1071
+ semanticCacheKey: string;
1072
+ sourceUnitProofs: {
1073
+ id: string;
1074
+ unitKind: "sentence" | "paragraph" | "fragment";
1075
+ scriptSourceStart: number;
1076
+ scriptSourceEnd: number;
1077
+ textHash: string;
1078
+ }[];
1079
+ batchMappings: {
1080
+ scriptStart: number;
1081
+ scriptEnd: number;
1082
+ batchId: string;
1083
+ sourceUnitIds: string[];
1084
+ requiredContractItemIds: string[];
1085
+ scriptHash: string;
1086
+ }[];
1087
+ assessedAt: string;
1088
+ passed: boolean;
1089
+ } | undefined;
1090
+ sourceExcerptRatio?: number | undefined;
1091
+ }>;
1092
+ export declare const NarrationTimingSegmentSchema: z.ZodObject<{
1093
+ startSec: z.ZodNumber;
1094
+ endSec: z.ZodNumber;
1095
+ scriptStart: z.ZodOptional<z.ZodNumber>;
1096
+ scriptEnd: z.ZodOptional<z.ZodNumber>;
1097
+ text: z.ZodString;
1098
+ }, "strict", z.ZodTypeAny, {
1099
+ text: string;
1100
+ startSec: number;
1101
+ endSec: number;
1102
+ scriptStart?: number | undefined;
1103
+ scriptEnd?: number | undefined;
1104
+ }, {
1105
+ text: string;
1106
+ startSec: number;
1107
+ endSec: number;
1108
+ scriptStart?: number | undefined;
1109
+ scriptEnd?: number | undefined;
1110
+ }>;
1111
+ export declare const NarrationTimingArtifactPayloadSchema: z.ZodObject<{
1112
+ chapterIndex: z.ZodNumber;
1113
+ segments: z.ZodArray<z.ZodObject<{
1114
+ startSec: z.ZodNumber;
1115
+ endSec: z.ZodNumber;
1116
+ scriptStart: z.ZodOptional<z.ZodNumber>;
1117
+ scriptEnd: z.ZodOptional<z.ZodNumber>;
1118
+ text: z.ZodString;
1119
+ }, "strict", z.ZodTypeAny, {
1120
+ text: string;
1121
+ startSec: number;
1122
+ endSec: number;
1123
+ scriptStart?: number | undefined;
1124
+ scriptEnd?: number | undefined;
1125
+ }, {
1126
+ text: string;
1127
+ startSec: number;
1128
+ endSec: number;
1129
+ scriptStart?: number | undefined;
1130
+ scriptEnd?: number | undefined;
1131
+ }>, "many">;
1132
+ timingKind: z.ZodEnum<["word", "segment_estimate", "character_alignment"]>;
1133
+ durationSeconds: z.ZodOptional<z.ZodNumber>;
1134
+ narrationAudioUrl: z.ZodOptional<z.ZodString>;
1135
+ narrationStoragePath: z.ZodOptional<z.ZodString>;
1136
+ generationMeta: z.ZodObject<{
1137
+ sourceTextHash: z.ZodString;
1138
+ settingsHash: z.ZodString;
1139
+ provider: z.ZodLiteral<"elevenlabs">;
1140
+ modelId: z.ZodString;
1141
+ voiceId: z.ZodString;
1142
+ estimatedCost: z.ZodOptional<z.ZodNumber>;
1143
+ createdAt: z.ZodString;
1144
+ /** ElevenLabs TTS `output_format` when narration was synthesized. */
1145
+ outputFormat: z.ZodOptional<z.ZodString>;
1146
+ /** Stage-specific accounting. Never copy one stage's estimate onto another stage. */
1147
+ costBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
1148
+ provider: z.ZodEnum<["openai", "elevenlabs"]>;
1149
+ stage: z.ZodEnum<["adaptation", "guardian", "tts", "sound_effect", "mix", "qa"]>;
1150
+ /** Total calls embodied by this artifact, including resumed chunks. */
1151
+ callCount: z.ZodNumber;
1152
+ incrementalCallCount: z.ZodOptional<z.ZodNumber>;
1153
+ reusedCallCount: z.ZodOptional<z.ZodNumber>;
1154
+ estimatedCostUsd: z.ZodOptional<z.ZodNumber>;
1155
+ billedCharacters: z.ZodOptional<z.ZodNumber>;
1156
+ incrementalBilledCharacters: z.ZodOptional<z.ZodNumber>;
1157
+ reusedBilledCharacters: z.ZodOptional<z.ZodNumber>;
1158
+ }, "strict", z.ZodTypeAny, {
1159
+ provider: "elevenlabs" | "openai";
1160
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
1161
+ callCount: number;
1162
+ billedCharacters?: number | undefined;
1163
+ incrementalCallCount?: number | undefined;
1164
+ reusedCallCount?: number | undefined;
1165
+ estimatedCostUsd?: number | undefined;
1166
+ incrementalBilledCharacters?: number | undefined;
1167
+ reusedBilledCharacters?: number | undefined;
1168
+ }, {
1169
+ provider: "elevenlabs" | "openai";
1170
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
1171
+ callCount: number;
1172
+ billedCharacters?: number | undefined;
1173
+ incrementalCallCount?: number | undefined;
1174
+ reusedCallCount?: number | undefined;
1175
+ estimatedCostUsd?: number | undefined;
1176
+ incrementalBilledCharacters?: number | undefined;
1177
+ reusedBilledCharacters?: number | undefined;
1178
+ }>, "many">>;
1179
+ }, "strict", z.ZodTypeAny, {
1180
+ createdAt: string;
1181
+ voiceId: string;
1182
+ modelId: string;
1183
+ provider: "elevenlabs";
1184
+ sourceTextHash: string;
1185
+ settingsHash: string;
1186
+ outputFormat?: string | undefined;
1187
+ estimatedCost?: number | undefined;
1188
+ costBreakdown?: {
1189
+ provider: "elevenlabs" | "openai";
1190
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
1191
+ callCount: number;
1192
+ billedCharacters?: number | undefined;
1193
+ incrementalCallCount?: number | undefined;
1194
+ reusedCallCount?: number | undefined;
1195
+ estimatedCostUsd?: number | undefined;
1196
+ incrementalBilledCharacters?: number | undefined;
1197
+ reusedBilledCharacters?: number | undefined;
1198
+ }[] | undefined;
1199
+ }, {
1200
+ createdAt: string;
1201
+ voiceId: string;
1202
+ modelId: string;
1203
+ provider: "elevenlabs";
1204
+ sourceTextHash: string;
1205
+ settingsHash: string;
1206
+ outputFormat?: string | undefined;
1207
+ estimatedCost?: number | undefined;
1208
+ costBreakdown?: {
1209
+ provider: "elevenlabs" | "openai";
1210
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
1211
+ callCount: number;
1212
+ billedCharacters?: number | undefined;
1213
+ incrementalCallCount?: number | undefined;
1214
+ reusedCallCount?: number | undefined;
1215
+ estimatedCostUsd?: number | undefined;
1216
+ incrementalBilledCharacters?: number | undefined;
1217
+ reusedBilledCharacters?: number | undefined;
1218
+ }[] | undefined;
1219
+ }>;
1220
+ /** Per-chapter publication chunks (direct TTS; URLs are Supabase public). */
1221
+ narrationChunks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1222
+ provider: z.ZodLiteral<"elevenlabs">;
1223
+ voiceName: z.ZodString;
1224
+ voiceId: z.ZodString;
1225
+ modelId: z.ZodString;
1226
+ outputFormat: z.ZodString;
1227
+ voiceSettings: z.ZodObject<{
1228
+ stability: z.ZodNumber;
1229
+ similarity_boost: z.ZodNumber;
1230
+ style: z.ZodNumber;
1231
+ use_speaker_boost: z.ZodBoolean;
1232
+ }, "strict", z.ZodTypeAny, {
1233
+ style: number;
1234
+ stability: number;
1235
+ similarity_boost: number;
1236
+ use_speaker_boost: boolean;
1237
+ }, {
1238
+ style: number;
1239
+ stability: number;
1240
+ similarity_boost: number;
1241
+ use_speaker_boost: boolean;
1242
+ }>;
1243
+ sourceTextHash: z.ZodString;
1244
+ settingsHash: z.ZodString;
1245
+ chapterId: z.ZodString;
1246
+ chunkIndex: z.ZodNumber;
1247
+ chunkCount: z.ZodNumber;
1248
+ scriptStart: z.ZodNumber;
1249
+ scriptEnd: z.ZodNumber;
1250
+ chunkTextHash: z.ZodString;
1251
+ fullScriptHash: z.ZodString;
1252
+ voiceSettingsPreset: z.ZodString;
1253
+ voiceSettingsHash: z.ZodString;
1254
+ audioStoragePath: z.ZodString;
1255
+ audioSha256: z.ZodString;
1256
+ audioByteLength: z.ZodNumber;
1257
+ providerCallCount: z.ZodNumber;
1258
+ billedCharacters: z.ZodNumber;
1259
+ audioUrl: z.ZodString;
1260
+ alignment: z.ZodUnknown;
1261
+ alignmentDurationSeconds: z.ZodNumber;
1262
+ durationSeconds: z.ZodNumber;
1263
+ status: z.ZodEnum<["ready", "failed"]>;
1264
+ }, "strict", z.ZodTypeAny, {
1265
+ status: "failed" | "ready";
1266
+ voiceId: string;
1267
+ modelId: string;
1268
+ voiceSettings: {
1269
+ style: number;
1270
+ stability: number;
1271
+ similarity_boost: number;
1272
+ use_speaker_boost: boolean;
1273
+ };
1274
+ outputFormat: string;
1275
+ provider: "elevenlabs";
1276
+ voiceName: string;
1277
+ sourceTextHash: string;
1278
+ settingsHash: string;
1279
+ chapterId: string;
1280
+ chunkIndex: number;
1281
+ chunkCount: number;
1282
+ scriptStart: number;
1283
+ scriptEnd: number;
1284
+ chunkTextHash: string;
1285
+ fullScriptHash: string;
1286
+ voiceSettingsPreset: string;
1287
+ voiceSettingsHash: string;
1288
+ audioStoragePath: string;
1289
+ audioSha256: string;
1290
+ audioByteLength: number;
1291
+ providerCallCount: number;
1292
+ billedCharacters: number;
1293
+ audioUrl: string;
1294
+ alignmentDurationSeconds: number;
1295
+ durationSeconds: number;
1296
+ alignment?: unknown;
1297
+ }, {
1298
+ status: "failed" | "ready";
1299
+ voiceId: string;
1300
+ modelId: string;
1301
+ voiceSettings: {
1302
+ style: number;
1303
+ stability: number;
1304
+ similarity_boost: number;
1305
+ use_speaker_boost: boolean;
1306
+ };
1307
+ outputFormat: string;
1308
+ provider: "elevenlabs";
1309
+ voiceName: string;
1310
+ sourceTextHash: string;
1311
+ settingsHash: string;
1312
+ chapterId: string;
1313
+ chunkIndex: number;
1314
+ chunkCount: number;
1315
+ scriptStart: number;
1316
+ scriptEnd: number;
1317
+ chunkTextHash: string;
1318
+ fullScriptHash: string;
1319
+ voiceSettingsPreset: string;
1320
+ voiceSettingsHash: string;
1321
+ audioStoragePath: string;
1322
+ audioSha256: string;
1323
+ audioByteLength: number;
1324
+ providerCallCount: number;
1325
+ billedCharacters: number;
1326
+ audioUrl: string;
1327
+ alignmentDurationSeconds: number;
1328
+ durationSeconds: number;
1329
+ alignment?: unknown;
1330
+ }>, "many">>;
1331
+ /** Deterministic narration cache discriminator (derived from script + hashes + voice + model + format). */
1332
+ narrationTtsCacheKey: z.ZodOptional<z.ZodString>;
1333
+ narrationScriptArtifactId: z.ZodOptional<z.ZodString>;
1334
+ semanticAssessmentHash: z.ZodOptional<z.ZodString>;
1335
+ fullScriptHash: z.ZodOptional<z.ZodString>;
1336
+ narrationAudioSha256: z.ZodOptional<z.ZodString>;
1337
+ narrationAudioByteLength: z.ZodOptional<z.ZodNumber>;
1338
+ voiceSettingsPreset: z.ZodOptional<z.ZodString>;
1339
+ voiceSettingsHash: z.ZodOptional<z.ZodString>;
1340
+ exactTiming: z.ZodOptional<z.ZodLiteral<true>>;
1341
+ }, "strict", z.ZodTypeAny, {
1342
+ chapterIndex: number;
1343
+ generationMeta: {
1344
+ createdAt: string;
1345
+ voiceId: string;
1346
+ modelId: string;
1347
+ provider: "elevenlabs";
1348
+ sourceTextHash: string;
1349
+ settingsHash: string;
1350
+ outputFormat?: string | undefined;
1351
+ estimatedCost?: number | undefined;
1352
+ costBreakdown?: {
1353
+ provider: "elevenlabs" | "openai";
1354
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
1355
+ callCount: number;
1356
+ billedCharacters?: number | undefined;
1357
+ incrementalCallCount?: number | undefined;
1358
+ reusedCallCount?: number | undefined;
1359
+ estimatedCostUsd?: number | undefined;
1360
+ incrementalBilledCharacters?: number | undefined;
1361
+ reusedBilledCharacters?: number | undefined;
1362
+ }[] | undefined;
1363
+ };
1364
+ segments: {
1365
+ text: string;
1366
+ startSec: number;
1367
+ endSec: number;
1368
+ scriptStart?: number | undefined;
1369
+ scriptEnd?: number | undefined;
1370
+ }[];
1371
+ timingKind: "word" | "segment_estimate" | "character_alignment";
1372
+ fullScriptHash?: string | undefined;
1373
+ voiceSettingsPreset?: string | undefined;
1374
+ voiceSettingsHash?: string | undefined;
1375
+ durationSeconds?: number | undefined;
1376
+ narrationAudioUrl?: string | undefined;
1377
+ narrationStoragePath?: string | undefined;
1378
+ narrationChunks?: {
1379
+ status: "failed" | "ready";
1380
+ voiceId: string;
1381
+ modelId: string;
1382
+ voiceSettings: {
1383
+ style: number;
1384
+ stability: number;
1385
+ similarity_boost: number;
1386
+ use_speaker_boost: boolean;
1387
+ };
1388
+ outputFormat: string;
1389
+ provider: "elevenlabs";
1390
+ voiceName: string;
1391
+ sourceTextHash: string;
1392
+ settingsHash: string;
1393
+ chapterId: string;
1394
+ chunkIndex: number;
1395
+ chunkCount: number;
1396
+ scriptStart: number;
1397
+ scriptEnd: number;
1398
+ chunkTextHash: string;
1399
+ fullScriptHash: string;
1400
+ voiceSettingsPreset: string;
1401
+ voiceSettingsHash: string;
1402
+ audioStoragePath: string;
1403
+ audioSha256: string;
1404
+ audioByteLength: number;
1405
+ providerCallCount: number;
1406
+ billedCharacters: number;
1407
+ audioUrl: string;
1408
+ alignmentDurationSeconds: number;
1409
+ durationSeconds: number;
1410
+ alignment?: unknown;
1411
+ }[] | undefined;
1412
+ narrationTtsCacheKey?: string | undefined;
1413
+ narrationScriptArtifactId?: string | undefined;
1414
+ semanticAssessmentHash?: string | undefined;
1415
+ narrationAudioSha256?: string | undefined;
1416
+ narrationAudioByteLength?: number | undefined;
1417
+ exactTiming?: true | undefined;
1418
+ }, {
1419
+ chapterIndex: number;
1420
+ generationMeta: {
1421
+ createdAt: string;
1422
+ voiceId: string;
1423
+ modelId: string;
1424
+ provider: "elevenlabs";
1425
+ sourceTextHash: string;
1426
+ settingsHash: string;
1427
+ outputFormat?: string | undefined;
1428
+ estimatedCost?: number | undefined;
1429
+ costBreakdown?: {
1430
+ provider: "elevenlabs" | "openai";
1431
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
1432
+ callCount: number;
1433
+ billedCharacters?: number | undefined;
1434
+ incrementalCallCount?: number | undefined;
1435
+ reusedCallCount?: number | undefined;
1436
+ estimatedCostUsd?: number | undefined;
1437
+ incrementalBilledCharacters?: number | undefined;
1438
+ reusedBilledCharacters?: number | undefined;
1439
+ }[] | undefined;
1440
+ };
1441
+ segments: {
1442
+ text: string;
1443
+ startSec: number;
1444
+ endSec: number;
1445
+ scriptStart?: number | undefined;
1446
+ scriptEnd?: number | undefined;
1447
+ }[];
1448
+ timingKind: "word" | "segment_estimate" | "character_alignment";
1449
+ fullScriptHash?: string | undefined;
1450
+ voiceSettingsPreset?: string | undefined;
1451
+ voiceSettingsHash?: string | undefined;
1452
+ durationSeconds?: number | undefined;
1453
+ narrationAudioUrl?: string | undefined;
1454
+ narrationStoragePath?: string | undefined;
1455
+ narrationChunks?: {
1456
+ status: "failed" | "ready";
1457
+ voiceId: string;
1458
+ modelId: string;
1459
+ voiceSettings: {
1460
+ style: number;
1461
+ stability: number;
1462
+ similarity_boost: number;
1463
+ use_speaker_boost: boolean;
1464
+ };
1465
+ outputFormat: string;
1466
+ provider: "elevenlabs";
1467
+ voiceName: string;
1468
+ sourceTextHash: string;
1469
+ settingsHash: string;
1470
+ chapterId: string;
1471
+ chunkIndex: number;
1472
+ chunkCount: number;
1473
+ scriptStart: number;
1474
+ scriptEnd: number;
1475
+ chunkTextHash: string;
1476
+ fullScriptHash: string;
1477
+ voiceSettingsPreset: string;
1478
+ voiceSettingsHash: string;
1479
+ audioStoragePath: string;
1480
+ audioSha256: string;
1481
+ audioByteLength: number;
1482
+ providerCallCount: number;
1483
+ billedCharacters: number;
1484
+ audioUrl: string;
1485
+ alignmentDurationSeconds: number;
1486
+ durationSeconds: number;
1487
+ alignment?: unknown;
1488
+ }[] | undefined;
1489
+ narrationTtsCacheKey?: string | undefined;
1490
+ narrationScriptArtifactId?: string | undefined;
1491
+ semanticAssessmentHash?: string | undefined;
1492
+ narrationAudioSha256?: string | undefined;
1493
+ narrationAudioByteLength?: number | undefined;
1494
+ exactTiming?: true | undefined;
1495
+ }>;
1496
+ export declare const ProductionSegmentSchema: z.ZodObject<{
1497
+ id: z.ZodString;
1498
+ label: z.ZodString;
1499
+ startSec: z.ZodNumber;
1500
+ endSec: z.ZodNumber;
1501
+ narrativeBeat: z.ZodString;
1502
+ }, "strict", z.ZodTypeAny, {
1503
+ id: string;
1504
+ label: string;
1505
+ startSec: number;
1506
+ endSec: number;
1507
+ narrativeBeat: string;
1508
+ }, {
1509
+ id: string;
1510
+ label: string;
1511
+ startSec: number;
1512
+ endSec: number;
1513
+ narrativeBeat: string;
1514
+ }>;
1515
+ export declare const DocumentaryProductionTimelinePayloadSchema: z.ZodObject<{
1516
+ chapterIndex: z.ZodNumber;
1517
+ segments: z.ZodArray<z.ZodObject<{
1518
+ id: z.ZodString;
1519
+ label: z.ZodString;
1520
+ startSec: z.ZodNumber;
1521
+ endSec: z.ZodNumber;
1522
+ narrativeBeat: z.ZodString;
1523
+ }, "strict", z.ZodTypeAny, {
1524
+ id: string;
1525
+ label: string;
1526
+ startSec: number;
1527
+ endSec: number;
1528
+ narrativeBeat: string;
1529
+ }, {
1530
+ id: string;
1531
+ label: string;
1532
+ startSec: number;
1533
+ endSec: number;
1534
+ narrativeBeat: string;
1535
+ }>, "many">;
1536
+ generationMeta: z.ZodObject<{
1537
+ sourceTextHash: z.ZodString;
1538
+ settingsHash: z.ZodString;
1539
+ provider: z.ZodLiteral<"elevenlabs">;
1540
+ modelId: z.ZodString;
1541
+ voiceId: z.ZodString;
1542
+ estimatedCost: z.ZodOptional<z.ZodNumber>;
1543
+ createdAt: z.ZodString;
1544
+ /** ElevenLabs TTS `output_format` when narration was synthesized. */
1545
+ outputFormat: z.ZodOptional<z.ZodString>;
1546
+ /** Stage-specific accounting. Never copy one stage's estimate onto another stage. */
1547
+ costBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
1548
+ provider: z.ZodEnum<["openai", "elevenlabs"]>;
1549
+ stage: z.ZodEnum<["adaptation", "guardian", "tts", "sound_effect", "mix", "qa"]>;
1550
+ /** Total calls embodied by this artifact, including resumed chunks. */
1551
+ callCount: z.ZodNumber;
1552
+ incrementalCallCount: z.ZodOptional<z.ZodNumber>;
1553
+ reusedCallCount: z.ZodOptional<z.ZodNumber>;
1554
+ estimatedCostUsd: z.ZodOptional<z.ZodNumber>;
1555
+ billedCharacters: z.ZodOptional<z.ZodNumber>;
1556
+ incrementalBilledCharacters: z.ZodOptional<z.ZodNumber>;
1557
+ reusedBilledCharacters: z.ZodOptional<z.ZodNumber>;
1558
+ }, "strict", z.ZodTypeAny, {
1559
+ provider: "elevenlabs" | "openai";
1560
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
1561
+ callCount: number;
1562
+ billedCharacters?: number | undefined;
1563
+ incrementalCallCount?: number | undefined;
1564
+ reusedCallCount?: number | undefined;
1565
+ estimatedCostUsd?: number | undefined;
1566
+ incrementalBilledCharacters?: number | undefined;
1567
+ reusedBilledCharacters?: number | undefined;
1568
+ }, {
1569
+ provider: "elevenlabs" | "openai";
1570
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
1571
+ callCount: number;
1572
+ billedCharacters?: number | undefined;
1573
+ incrementalCallCount?: number | undefined;
1574
+ reusedCallCount?: number | undefined;
1575
+ estimatedCostUsd?: number | undefined;
1576
+ incrementalBilledCharacters?: number | undefined;
1577
+ reusedBilledCharacters?: number | undefined;
1578
+ }>, "many">>;
1579
+ }, "strict", z.ZodTypeAny, {
1580
+ createdAt: string;
1581
+ voiceId: string;
1582
+ modelId: string;
1583
+ provider: "elevenlabs";
1584
+ sourceTextHash: string;
1585
+ settingsHash: string;
1586
+ outputFormat?: string | undefined;
1587
+ estimatedCost?: number | undefined;
1588
+ costBreakdown?: {
1589
+ provider: "elevenlabs" | "openai";
1590
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
1591
+ callCount: number;
1592
+ billedCharacters?: number | undefined;
1593
+ incrementalCallCount?: number | undefined;
1594
+ reusedCallCount?: number | undefined;
1595
+ estimatedCostUsd?: number | undefined;
1596
+ incrementalBilledCharacters?: number | undefined;
1597
+ reusedBilledCharacters?: number | undefined;
1598
+ }[] | undefined;
1599
+ }, {
1600
+ createdAt: string;
1601
+ voiceId: string;
1602
+ modelId: string;
1603
+ provider: "elevenlabs";
1604
+ sourceTextHash: string;
1605
+ settingsHash: string;
1606
+ outputFormat?: string | undefined;
1607
+ estimatedCost?: number | undefined;
1608
+ costBreakdown?: {
1609
+ provider: "elevenlabs" | "openai";
1610
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
1611
+ callCount: number;
1612
+ billedCharacters?: number | undefined;
1613
+ incrementalCallCount?: number | undefined;
1614
+ reusedCallCount?: number | undefined;
1615
+ estimatedCostUsd?: number | undefined;
1616
+ incrementalBilledCharacters?: number | undefined;
1617
+ reusedBilledCharacters?: number | undefined;
1618
+ }[] | undefined;
1619
+ }>;
1620
+ }, "strict", z.ZodTypeAny, {
1621
+ chapterIndex: number;
1622
+ generationMeta: {
1623
+ createdAt: string;
1624
+ voiceId: string;
1625
+ modelId: string;
1626
+ provider: "elevenlabs";
1627
+ sourceTextHash: string;
1628
+ settingsHash: string;
1629
+ outputFormat?: string | undefined;
1630
+ estimatedCost?: number | undefined;
1631
+ costBreakdown?: {
1632
+ provider: "elevenlabs" | "openai";
1633
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
1634
+ callCount: number;
1635
+ billedCharacters?: number | undefined;
1636
+ incrementalCallCount?: number | undefined;
1637
+ reusedCallCount?: number | undefined;
1638
+ estimatedCostUsd?: number | undefined;
1639
+ incrementalBilledCharacters?: number | undefined;
1640
+ reusedBilledCharacters?: number | undefined;
1641
+ }[] | undefined;
1642
+ };
1643
+ segments: {
1644
+ id: string;
1645
+ label: string;
1646
+ startSec: number;
1647
+ endSec: number;
1648
+ narrativeBeat: string;
1649
+ }[];
1650
+ }, {
1651
+ chapterIndex: number;
1652
+ generationMeta: {
1653
+ createdAt: string;
1654
+ voiceId: string;
1655
+ modelId: string;
1656
+ provider: "elevenlabs";
1657
+ sourceTextHash: string;
1658
+ settingsHash: string;
1659
+ outputFormat?: string | undefined;
1660
+ estimatedCost?: number | undefined;
1661
+ costBreakdown?: {
1662
+ provider: "elevenlabs" | "openai";
1663
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
1664
+ callCount: number;
1665
+ billedCharacters?: number | undefined;
1666
+ incrementalCallCount?: number | undefined;
1667
+ reusedCallCount?: number | undefined;
1668
+ estimatedCostUsd?: number | undefined;
1669
+ incrementalBilledCharacters?: number | undefined;
1670
+ reusedBilledCharacters?: number | undefined;
1671
+ }[] | undefined;
1672
+ };
1673
+ segments: {
1674
+ id: string;
1675
+ label: string;
1676
+ startSec: number;
1677
+ endSec: number;
1678
+ narrativeBeat: string;
1679
+ }[];
1680
+ }>;
1681
+ export declare const DocumentaryTimelineModelOutputSchema: z.ZodObject<{
1682
+ segments: z.ZodArray<z.ZodObject<{
1683
+ id: z.ZodString;
1684
+ label: z.ZodString;
1685
+ startSec: z.ZodNumber;
1686
+ endSec: z.ZodNumber;
1687
+ narrativeBeat: z.ZodString;
1688
+ }, "strict", z.ZodTypeAny, {
1689
+ id: string;
1690
+ label: string;
1691
+ startSec: number;
1692
+ endSec: number;
1693
+ narrativeBeat: string;
1694
+ }, {
1695
+ id: string;
1696
+ label: string;
1697
+ startSec: number;
1698
+ endSec: number;
1699
+ narrativeBeat: string;
1700
+ }>, "many">;
1701
+ }, "strict", z.ZodTypeAny, {
1702
+ segments: {
1703
+ id: string;
1704
+ label: string;
1705
+ startSec: number;
1706
+ endSec: number;
1707
+ narrativeBeat: string;
1708
+ }[];
1709
+ }, {
1710
+ segments: {
1711
+ id: string;
1712
+ label: string;
1713
+ startSec: number;
1714
+ endSec: number;
1715
+ narrativeBeat: string;
1716
+ }[];
1717
+ }>;
1718
+ export declare const SoundCueSchema: z.ZodObject<{
1719
+ id: z.ZodString;
1720
+ placementSec: z.ZodNumber;
1721
+ semanticJustification: z.ZodString;
1722
+ sfxPrompt: z.ZodString;
1723
+ relativeGainDb: z.ZodNumber;
1724
+ }, "strict", z.ZodTypeAny, {
1725
+ id: string;
1726
+ placementSec: number;
1727
+ semanticJustification: string;
1728
+ sfxPrompt: string;
1729
+ relativeGainDb: number;
1730
+ }, {
1731
+ id: string;
1732
+ placementSec: number;
1733
+ semanticJustification: string;
1734
+ sfxPrompt: string;
1735
+ relativeGainDb: number;
1736
+ }>;
1737
+ export declare const SoundCueSheetPayloadSchema: z.ZodObject<{
1738
+ chapterIndex: z.ZodNumber;
1739
+ cues: z.ZodArray<z.ZodObject<{
1740
+ id: z.ZodString;
1741
+ placementSec: z.ZodNumber;
1742
+ semanticJustification: z.ZodString;
1743
+ sfxPrompt: z.ZodString;
1744
+ relativeGainDb: z.ZodNumber;
1745
+ }, "strict", z.ZodTypeAny, {
1746
+ id: string;
1747
+ placementSec: number;
1748
+ semanticJustification: string;
1749
+ sfxPrompt: string;
1750
+ relativeGainDb: number;
1751
+ }, {
1752
+ id: string;
1753
+ placementSec: number;
1754
+ semanticJustification: string;
1755
+ sfxPrompt: string;
1756
+ relativeGainDb: number;
1757
+ }>, "many">;
1758
+ generationMeta: z.ZodObject<{
1759
+ sourceTextHash: z.ZodString;
1760
+ settingsHash: z.ZodString;
1761
+ provider: z.ZodLiteral<"elevenlabs">;
1762
+ modelId: z.ZodString;
1763
+ voiceId: z.ZodString;
1764
+ estimatedCost: z.ZodOptional<z.ZodNumber>;
1765
+ createdAt: z.ZodString;
1766
+ /** ElevenLabs TTS `output_format` when narration was synthesized. */
1767
+ outputFormat: z.ZodOptional<z.ZodString>;
1768
+ /** Stage-specific accounting. Never copy one stage's estimate onto another stage. */
1769
+ costBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
1770
+ provider: z.ZodEnum<["openai", "elevenlabs"]>;
1771
+ stage: z.ZodEnum<["adaptation", "guardian", "tts", "sound_effect", "mix", "qa"]>;
1772
+ /** Total calls embodied by this artifact, including resumed chunks. */
1773
+ callCount: z.ZodNumber;
1774
+ incrementalCallCount: z.ZodOptional<z.ZodNumber>;
1775
+ reusedCallCount: z.ZodOptional<z.ZodNumber>;
1776
+ estimatedCostUsd: z.ZodOptional<z.ZodNumber>;
1777
+ billedCharacters: z.ZodOptional<z.ZodNumber>;
1778
+ incrementalBilledCharacters: z.ZodOptional<z.ZodNumber>;
1779
+ reusedBilledCharacters: z.ZodOptional<z.ZodNumber>;
1780
+ }, "strict", z.ZodTypeAny, {
1781
+ provider: "elevenlabs" | "openai";
1782
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
1783
+ callCount: number;
1784
+ billedCharacters?: number | undefined;
1785
+ incrementalCallCount?: number | undefined;
1786
+ reusedCallCount?: number | undefined;
1787
+ estimatedCostUsd?: number | undefined;
1788
+ incrementalBilledCharacters?: number | undefined;
1789
+ reusedBilledCharacters?: number | undefined;
1790
+ }, {
1791
+ provider: "elevenlabs" | "openai";
1792
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
1793
+ callCount: number;
1794
+ billedCharacters?: number | undefined;
1795
+ incrementalCallCount?: number | undefined;
1796
+ reusedCallCount?: number | undefined;
1797
+ estimatedCostUsd?: number | undefined;
1798
+ incrementalBilledCharacters?: number | undefined;
1799
+ reusedBilledCharacters?: number | undefined;
1800
+ }>, "many">>;
1801
+ }, "strict", z.ZodTypeAny, {
1802
+ createdAt: string;
1803
+ voiceId: string;
1804
+ modelId: string;
1805
+ provider: "elevenlabs";
1806
+ sourceTextHash: string;
1807
+ settingsHash: string;
1808
+ outputFormat?: string | undefined;
1809
+ estimatedCost?: number | undefined;
1810
+ costBreakdown?: {
1811
+ provider: "elevenlabs" | "openai";
1812
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
1813
+ callCount: number;
1814
+ billedCharacters?: number | undefined;
1815
+ incrementalCallCount?: number | undefined;
1816
+ reusedCallCount?: number | undefined;
1817
+ estimatedCostUsd?: number | undefined;
1818
+ incrementalBilledCharacters?: number | undefined;
1819
+ reusedBilledCharacters?: number | undefined;
1820
+ }[] | undefined;
1821
+ }, {
1822
+ createdAt: string;
1823
+ voiceId: string;
1824
+ modelId: string;
1825
+ provider: "elevenlabs";
1826
+ sourceTextHash: string;
1827
+ settingsHash: string;
1828
+ outputFormat?: string | undefined;
1829
+ estimatedCost?: number | undefined;
1830
+ costBreakdown?: {
1831
+ provider: "elevenlabs" | "openai";
1832
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
1833
+ callCount: number;
1834
+ billedCharacters?: number | undefined;
1835
+ incrementalCallCount?: number | undefined;
1836
+ reusedCallCount?: number | undefined;
1837
+ estimatedCostUsd?: number | undefined;
1838
+ incrementalBilledCharacters?: number | undefined;
1839
+ reusedBilledCharacters?: number | undefined;
1840
+ }[] | undefined;
1841
+ }>;
1842
+ }, "strict", z.ZodTypeAny, {
1843
+ chapterIndex: number;
1844
+ generationMeta: {
1845
+ createdAt: string;
1846
+ voiceId: string;
1847
+ modelId: string;
1848
+ provider: "elevenlabs";
1849
+ sourceTextHash: string;
1850
+ settingsHash: string;
1851
+ outputFormat?: string | undefined;
1852
+ estimatedCost?: number | undefined;
1853
+ costBreakdown?: {
1854
+ provider: "elevenlabs" | "openai";
1855
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
1856
+ callCount: number;
1857
+ billedCharacters?: number | undefined;
1858
+ incrementalCallCount?: number | undefined;
1859
+ reusedCallCount?: number | undefined;
1860
+ estimatedCostUsd?: number | undefined;
1861
+ incrementalBilledCharacters?: number | undefined;
1862
+ reusedBilledCharacters?: number | undefined;
1863
+ }[] | undefined;
1864
+ };
1865
+ cues: {
1866
+ id: string;
1867
+ placementSec: number;
1868
+ semanticJustification: string;
1869
+ sfxPrompt: string;
1870
+ relativeGainDb: number;
1871
+ }[];
1872
+ }, {
1873
+ chapterIndex: number;
1874
+ generationMeta: {
1875
+ createdAt: string;
1876
+ voiceId: string;
1877
+ modelId: string;
1878
+ provider: "elevenlabs";
1879
+ sourceTextHash: string;
1880
+ settingsHash: string;
1881
+ outputFormat?: string | undefined;
1882
+ estimatedCost?: number | undefined;
1883
+ costBreakdown?: {
1884
+ provider: "elevenlabs" | "openai";
1885
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
1886
+ callCount: number;
1887
+ billedCharacters?: number | undefined;
1888
+ incrementalCallCount?: number | undefined;
1889
+ reusedCallCount?: number | undefined;
1890
+ estimatedCostUsd?: number | undefined;
1891
+ incrementalBilledCharacters?: number | undefined;
1892
+ reusedBilledCharacters?: number | undefined;
1893
+ }[] | undefined;
1894
+ };
1895
+ cues: {
1896
+ id: string;
1897
+ placementSec: number;
1898
+ semanticJustification: string;
1899
+ sfxPrompt: string;
1900
+ relativeGainDb: number;
1901
+ }[];
1902
+ }>;
1903
+ export declare const SoundCueModelOutputSchema: z.ZodObject<{
1904
+ cues: z.ZodArray<z.ZodObject<{
1905
+ id: z.ZodString;
1906
+ placementSec: z.ZodNumber;
1907
+ semanticJustification: z.ZodString;
1908
+ sfxPrompt: z.ZodString;
1909
+ relativeGainDb: z.ZodNumber;
1910
+ }, "strict", z.ZodTypeAny, {
1911
+ id: string;
1912
+ placementSec: number;
1913
+ semanticJustification: string;
1914
+ sfxPrompt: string;
1915
+ relativeGainDb: number;
1916
+ }, {
1917
+ id: string;
1918
+ placementSec: number;
1919
+ semanticJustification: string;
1920
+ sfxPrompt: string;
1921
+ relativeGainDb: number;
1922
+ }>, "many">;
1923
+ }, "strict", z.ZodTypeAny, {
1924
+ cues: {
1925
+ id: string;
1926
+ placementSec: number;
1927
+ semanticJustification: string;
1928
+ sfxPrompt: string;
1929
+ relativeGainDb: number;
1930
+ }[];
1931
+ }, {
1932
+ cues: {
1933
+ id: string;
1934
+ placementSec: number;
1935
+ semanticJustification: string;
1936
+ sfxPrompt: string;
1937
+ relativeGainDb: number;
1938
+ }[];
1939
+ }>;
1940
+ export declare const ElevenLabsSoundAssetPayloadSchema: z.ZodObject<{
1941
+ cueId: z.ZodString;
1942
+ storagePath: z.ZodString;
1943
+ publicUrl: z.ZodString;
1944
+ durationSec: z.ZodOptional<z.ZodNumber>;
1945
+ audioSha256: z.ZodOptional<z.ZodString>;
1946
+ audioByteLength: z.ZodOptional<z.ZodNumber>;
1947
+ generationMeta: z.ZodObject<{
1948
+ sourceTextHash: z.ZodString;
1949
+ settingsHash: z.ZodString;
1950
+ provider: z.ZodLiteral<"elevenlabs">;
1951
+ modelId: z.ZodString;
1952
+ voiceId: z.ZodString;
1953
+ estimatedCost: z.ZodOptional<z.ZodNumber>;
1954
+ createdAt: z.ZodString;
1955
+ /** ElevenLabs TTS `output_format` when narration was synthesized. */
1956
+ outputFormat: z.ZodOptional<z.ZodString>;
1957
+ /** Stage-specific accounting. Never copy one stage's estimate onto another stage. */
1958
+ costBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
1959
+ provider: z.ZodEnum<["openai", "elevenlabs"]>;
1960
+ stage: z.ZodEnum<["adaptation", "guardian", "tts", "sound_effect", "mix", "qa"]>;
1961
+ /** Total calls embodied by this artifact, including resumed chunks. */
1962
+ callCount: z.ZodNumber;
1963
+ incrementalCallCount: z.ZodOptional<z.ZodNumber>;
1964
+ reusedCallCount: z.ZodOptional<z.ZodNumber>;
1965
+ estimatedCostUsd: z.ZodOptional<z.ZodNumber>;
1966
+ billedCharacters: z.ZodOptional<z.ZodNumber>;
1967
+ incrementalBilledCharacters: z.ZodOptional<z.ZodNumber>;
1968
+ reusedBilledCharacters: z.ZodOptional<z.ZodNumber>;
1969
+ }, "strict", z.ZodTypeAny, {
1970
+ provider: "elevenlabs" | "openai";
1971
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
1972
+ callCount: number;
1973
+ billedCharacters?: number | undefined;
1974
+ incrementalCallCount?: number | undefined;
1975
+ reusedCallCount?: number | undefined;
1976
+ estimatedCostUsd?: number | undefined;
1977
+ incrementalBilledCharacters?: number | undefined;
1978
+ reusedBilledCharacters?: number | undefined;
1979
+ }, {
1980
+ provider: "elevenlabs" | "openai";
1981
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
1982
+ callCount: number;
1983
+ billedCharacters?: number | undefined;
1984
+ incrementalCallCount?: number | undefined;
1985
+ reusedCallCount?: number | undefined;
1986
+ estimatedCostUsd?: number | undefined;
1987
+ incrementalBilledCharacters?: number | undefined;
1988
+ reusedBilledCharacters?: number | undefined;
1989
+ }>, "many">>;
1990
+ }, "strict", z.ZodTypeAny, {
1991
+ createdAt: string;
1992
+ voiceId: string;
1993
+ modelId: string;
1994
+ provider: "elevenlabs";
1995
+ sourceTextHash: string;
1996
+ settingsHash: string;
1997
+ outputFormat?: string | undefined;
1998
+ estimatedCost?: number | undefined;
1999
+ costBreakdown?: {
2000
+ provider: "elevenlabs" | "openai";
2001
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2002
+ callCount: number;
2003
+ billedCharacters?: number | undefined;
2004
+ incrementalCallCount?: number | undefined;
2005
+ reusedCallCount?: number | undefined;
2006
+ estimatedCostUsd?: number | undefined;
2007
+ incrementalBilledCharacters?: number | undefined;
2008
+ reusedBilledCharacters?: number | undefined;
2009
+ }[] | undefined;
2010
+ }, {
2011
+ createdAt: string;
2012
+ voiceId: string;
2013
+ modelId: string;
2014
+ provider: "elevenlabs";
2015
+ sourceTextHash: string;
2016
+ settingsHash: string;
2017
+ outputFormat?: string | undefined;
2018
+ estimatedCost?: number | undefined;
2019
+ costBreakdown?: {
2020
+ provider: "elevenlabs" | "openai";
2021
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2022
+ callCount: number;
2023
+ billedCharacters?: number | undefined;
2024
+ incrementalCallCount?: number | undefined;
2025
+ reusedCallCount?: number | undefined;
2026
+ estimatedCostUsd?: number | undefined;
2027
+ incrementalBilledCharacters?: number | undefined;
2028
+ reusedBilledCharacters?: number | undefined;
2029
+ }[] | undefined;
2030
+ }>;
2031
+ }, "strict", z.ZodTypeAny, {
2032
+ generationMeta: {
2033
+ createdAt: string;
2034
+ voiceId: string;
2035
+ modelId: string;
2036
+ provider: "elevenlabs";
2037
+ sourceTextHash: string;
2038
+ settingsHash: string;
2039
+ outputFormat?: string | undefined;
2040
+ estimatedCost?: number | undefined;
2041
+ costBreakdown?: {
2042
+ provider: "elevenlabs" | "openai";
2043
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2044
+ callCount: number;
2045
+ billedCharacters?: number | undefined;
2046
+ incrementalCallCount?: number | undefined;
2047
+ reusedCallCount?: number | undefined;
2048
+ estimatedCostUsd?: number | undefined;
2049
+ incrementalBilledCharacters?: number | undefined;
2050
+ reusedBilledCharacters?: number | undefined;
2051
+ }[] | undefined;
2052
+ };
2053
+ cueId: string;
2054
+ storagePath: string;
2055
+ publicUrl: string;
2056
+ durationSec?: number | undefined;
2057
+ audioSha256?: string | undefined;
2058
+ audioByteLength?: number | undefined;
2059
+ }, {
2060
+ generationMeta: {
2061
+ createdAt: string;
2062
+ voiceId: string;
2063
+ modelId: string;
2064
+ provider: "elevenlabs";
2065
+ sourceTextHash: string;
2066
+ settingsHash: string;
2067
+ outputFormat?: string | undefined;
2068
+ estimatedCost?: number | undefined;
2069
+ costBreakdown?: {
2070
+ provider: "elevenlabs" | "openai";
2071
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2072
+ callCount: number;
2073
+ billedCharacters?: number | undefined;
2074
+ incrementalCallCount?: number | undefined;
2075
+ reusedCallCount?: number | undefined;
2076
+ estimatedCostUsd?: number | undefined;
2077
+ incrementalBilledCharacters?: number | undefined;
2078
+ reusedBilledCharacters?: number | undefined;
2079
+ }[] | undefined;
2080
+ };
2081
+ cueId: string;
2082
+ storagePath: string;
2083
+ publicUrl: string;
2084
+ durationSec?: number | undefined;
2085
+ audioSha256?: string | undefined;
2086
+ audioByteLength?: number | undefined;
2087
+ }>;
2088
+ export declare const SoundAssetBundlePayloadSchema: z.ZodObject<{
2089
+ chapterIndex: z.ZodNumber;
2090
+ assets: z.ZodArray<z.ZodObject<{
2091
+ cueId: z.ZodString;
2092
+ storagePath: z.ZodString;
2093
+ publicUrl: z.ZodString;
2094
+ durationSec: z.ZodOptional<z.ZodNumber>;
2095
+ audioSha256: z.ZodOptional<z.ZodString>;
2096
+ audioByteLength: z.ZodOptional<z.ZodNumber>;
2097
+ generationMeta: z.ZodObject<{
2098
+ sourceTextHash: z.ZodString;
2099
+ settingsHash: z.ZodString;
2100
+ provider: z.ZodLiteral<"elevenlabs">;
2101
+ modelId: z.ZodString;
2102
+ voiceId: z.ZodString;
2103
+ estimatedCost: z.ZodOptional<z.ZodNumber>;
2104
+ createdAt: z.ZodString;
2105
+ /** ElevenLabs TTS `output_format` when narration was synthesized. */
2106
+ outputFormat: z.ZodOptional<z.ZodString>;
2107
+ /** Stage-specific accounting. Never copy one stage's estimate onto another stage. */
2108
+ costBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
2109
+ provider: z.ZodEnum<["openai", "elevenlabs"]>;
2110
+ stage: z.ZodEnum<["adaptation", "guardian", "tts", "sound_effect", "mix", "qa"]>;
2111
+ /** Total calls embodied by this artifact, including resumed chunks. */
2112
+ callCount: z.ZodNumber;
2113
+ incrementalCallCount: z.ZodOptional<z.ZodNumber>;
2114
+ reusedCallCount: z.ZodOptional<z.ZodNumber>;
2115
+ estimatedCostUsd: z.ZodOptional<z.ZodNumber>;
2116
+ billedCharacters: z.ZodOptional<z.ZodNumber>;
2117
+ incrementalBilledCharacters: z.ZodOptional<z.ZodNumber>;
2118
+ reusedBilledCharacters: z.ZodOptional<z.ZodNumber>;
2119
+ }, "strict", z.ZodTypeAny, {
2120
+ provider: "elevenlabs" | "openai";
2121
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2122
+ callCount: number;
2123
+ billedCharacters?: number | undefined;
2124
+ incrementalCallCount?: number | undefined;
2125
+ reusedCallCount?: number | undefined;
2126
+ estimatedCostUsd?: number | undefined;
2127
+ incrementalBilledCharacters?: number | undefined;
2128
+ reusedBilledCharacters?: number | undefined;
2129
+ }, {
2130
+ provider: "elevenlabs" | "openai";
2131
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2132
+ callCount: number;
2133
+ billedCharacters?: number | undefined;
2134
+ incrementalCallCount?: number | undefined;
2135
+ reusedCallCount?: number | undefined;
2136
+ estimatedCostUsd?: number | undefined;
2137
+ incrementalBilledCharacters?: number | undefined;
2138
+ reusedBilledCharacters?: number | undefined;
2139
+ }>, "many">>;
2140
+ }, "strict", z.ZodTypeAny, {
2141
+ createdAt: string;
2142
+ voiceId: string;
2143
+ modelId: string;
2144
+ provider: "elevenlabs";
2145
+ sourceTextHash: string;
2146
+ settingsHash: string;
2147
+ outputFormat?: string | undefined;
2148
+ estimatedCost?: number | undefined;
2149
+ costBreakdown?: {
2150
+ provider: "elevenlabs" | "openai";
2151
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2152
+ callCount: number;
2153
+ billedCharacters?: number | undefined;
2154
+ incrementalCallCount?: number | undefined;
2155
+ reusedCallCount?: number | undefined;
2156
+ estimatedCostUsd?: number | undefined;
2157
+ incrementalBilledCharacters?: number | undefined;
2158
+ reusedBilledCharacters?: number | undefined;
2159
+ }[] | undefined;
2160
+ }, {
2161
+ createdAt: string;
2162
+ voiceId: string;
2163
+ modelId: string;
2164
+ provider: "elevenlabs";
2165
+ sourceTextHash: string;
2166
+ settingsHash: string;
2167
+ outputFormat?: string | undefined;
2168
+ estimatedCost?: number | undefined;
2169
+ costBreakdown?: {
2170
+ provider: "elevenlabs" | "openai";
2171
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2172
+ callCount: number;
2173
+ billedCharacters?: number | undefined;
2174
+ incrementalCallCount?: number | undefined;
2175
+ reusedCallCount?: number | undefined;
2176
+ estimatedCostUsd?: number | undefined;
2177
+ incrementalBilledCharacters?: number | undefined;
2178
+ reusedBilledCharacters?: number | undefined;
2179
+ }[] | undefined;
2180
+ }>;
2181
+ }, "strict", z.ZodTypeAny, {
2182
+ generationMeta: {
2183
+ createdAt: string;
2184
+ voiceId: string;
2185
+ modelId: string;
2186
+ provider: "elevenlabs";
2187
+ sourceTextHash: string;
2188
+ settingsHash: string;
2189
+ outputFormat?: string | undefined;
2190
+ estimatedCost?: number | undefined;
2191
+ costBreakdown?: {
2192
+ provider: "elevenlabs" | "openai";
2193
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2194
+ callCount: number;
2195
+ billedCharacters?: number | undefined;
2196
+ incrementalCallCount?: number | undefined;
2197
+ reusedCallCount?: number | undefined;
2198
+ estimatedCostUsd?: number | undefined;
2199
+ incrementalBilledCharacters?: number | undefined;
2200
+ reusedBilledCharacters?: number | undefined;
2201
+ }[] | undefined;
2202
+ };
2203
+ cueId: string;
2204
+ storagePath: string;
2205
+ publicUrl: string;
2206
+ durationSec?: number | undefined;
2207
+ audioSha256?: string | undefined;
2208
+ audioByteLength?: number | undefined;
2209
+ }, {
2210
+ generationMeta: {
2211
+ createdAt: string;
2212
+ voiceId: string;
2213
+ modelId: string;
2214
+ provider: "elevenlabs";
2215
+ sourceTextHash: string;
2216
+ settingsHash: string;
2217
+ outputFormat?: string | undefined;
2218
+ estimatedCost?: number | undefined;
2219
+ costBreakdown?: {
2220
+ provider: "elevenlabs" | "openai";
2221
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2222
+ callCount: number;
2223
+ billedCharacters?: number | undefined;
2224
+ incrementalCallCount?: number | undefined;
2225
+ reusedCallCount?: number | undefined;
2226
+ estimatedCostUsd?: number | undefined;
2227
+ incrementalBilledCharacters?: number | undefined;
2228
+ reusedBilledCharacters?: number | undefined;
2229
+ }[] | undefined;
2230
+ };
2231
+ cueId: string;
2232
+ storagePath: string;
2233
+ publicUrl: string;
2234
+ durationSec?: number | undefined;
2235
+ audioSha256?: string | undefined;
2236
+ audioByteLength?: number | undefined;
2237
+ }>, "many">;
2238
+ generationMeta: z.ZodObject<{
2239
+ sourceTextHash: z.ZodString;
2240
+ settingsHash: z.ZodString;
2241
+ provider: z.ZodLiteral<"elevenlabs">;
2242
+ modelId: z.ZodString;
2243
+ voiceId: z.ZodString;
2244
+ estimatedCost: z.ZodOptional<z.ZodNumber>;
2245
+ createdAt: z.ZodString;
2246
+ /** ElevenLabs TTS `output_format` when narration was synthesized. */
2247
+ outputFormat: z.ZodOptional<z.ZodString>;
2248
+ /** Stage-specific accounting. Never copy one stage's estimate onto another stage. */
2249
+ costBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
2250
+ provider: z.ZodEnum<["openai", "elevenlabs"]>;
2251
+ stage: z.ZodEnum<["adaptation", "guardian", "tts", "sound_effect", "mix", "qa"]>;
2252
+ /** Total calls embodied by this artifact, including resumed chunks. */
2253
+ callCount: z.ZodNumber;
2254
+ incrementalCallCount: z.ZodOptional<z.ZodNumber>;
2255
+ reusedCallCount: z.ZodOptional<z.ZodNumber>;
2256
+ estimatedCostUsd: z.ZodOptional<z.ZodNumber>;
2257
+ billedCharacters: z.ZodOptional<z.ZodNumber>;
2258
+ incrementalBilledCharacters: z.ZodOptional<z.ZodNumber>;
2259
+ reusedBilledCharacters: z.ZodOptional<z.ZodNumber>;
2260
+ }, "strict", z.ZodTypeAny, {
2261
+ provider: "elevenlabs" | "openai";
2262
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2263
+ callCount: number;
2264
+ billedCharacters?: number | undefined;
2265
+ incrementalCallCount?: number | undefined;
2266
+ reusedCallCount?: number | undefined;
2267
+ estimatedCostUsd?: number | undefined;
2268
+ incrementalBilledCharacters?: number | undefined;
2269
+ reusedBilledCharacters?: number | undefined;
2270
+ }, {
2271
+ provider: "elevenlabs" | "openai";
2272
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2273
+ callCount: number;
2274
+ billedCharacters?: number | undefined;
2275
+ incrementalCallCount?: number | undefined;
2276
+ reusedCallCount?: number | undefined;
2277
+ estimatedCostUsd?: number | undefined;
2278
+ incrementalBilledCharacters?: number | undefined;
2279
+ reusedBilledCharacters?: number | undefined;
2280
+ }>, "many">>;
2281
+ }, "strict", z.ZodTypeAny, {
2282
+ createdAt: string;
2283
+ voiceId: string;
2284
+ modelId: string;
2285
+ provider: "elevenlabs";
2286
+ sourceTextHash: string;
2287
+ settingsHash: string;
2288
+ outputFormat?: string | undefined;
2289
+ estimatedCost?: number | undefined;
2290
+ costBreakdown?: {
2291
+ provider: "elevenlabs" | "openai";
2292
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2293
+ callCount: number;
2294
+ billedCharacters?: number | undefined;
2295
+ incrementalCallCount?: number | undefined;
2296
+ reusedCallCount?: number | undefined;
2297
+ estimatedCostUsd?: number | undefined;
2298
+ incrementalBilledCharacters?: number | undefined;
2299
+ reusedBilledCharacters?: number | undefined;
2300
+ }[] | undefined;
2301
+ }, {
2302
+ createdAt: string;
2303
+ voiceId: string;
2304
+ modelId: string;
2305
+ provider: "elevenlabs";
2306
+ sourceTextHash: string;
2307
+ settingsHash: string;
2308
+ outputFormat?: string | undefined;
2309
+ estimatedCost?: number | undefined;
2310
+ costBreakdown?: {
2311
+ provider: "elevenlabs" | "openai";
2312
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2313
+ callCount: number;
2314
+ billedCharacters?: number | undefined;
2315
+ incrementalCallCount?: number | undefined;
2316
+ reusedCallCount?: number | undefined;
2317
+ estimatedCostUsd?: number | undefined;
2318
+ incrementalBilledCharacters?: number | undefined;
2319
+ reusedBilledCharacters?: number | undefined;
2320
+ }[] | undefined;
2321
+ }>;
2322
+ }, "strict", z.ZodTypeAny, {
2323
+ chapterIndex: number;
2324
+ generationMeta: {
2325
+ createdAt: string;
2326
+ voiceId: string;
2327
+ modelId: string;
2328
+ provider: "elevenlabs";
2329
+ sourceTextHash: string;
2330
+ settingsHash: string;
2331
+ outputFormat?: string | undefined;
2332
+ estimatedCost?: number | undefined;
2333
+ costBreakdown?: {
2334
+ provider: "elevenlabs" | "openai";
2335
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2336
+ callCount: number;
2337
+ billedCharacters?: number | undefined;
2338
+ incrementalCallCount?: number | undefined;
2339
+ reusedCallCount?: number | undefined;
2340
+ estimatedCostUsd?: number | undefined;
2341
+ incrementalBilledCharacters?: number | undefined;
2342
+ reusedBilledCharacters?: number | undefined;
2343
+ }[] | undefined;
2344
+ };
2345
+ assets: {
2346
+ generationMeta: {
2347
+ createdAt: string;
2348
+ voiceId: string;
2349
+ modelId: string;
2350
+ provider: "elevenlabs";
2351
+ sourceTextHash: string;
2352
+ settingsHash: string;
2353
+ outputFormat?: string | undefined;
2354
+ estimatedCost?: number | undefined;
2355
+ costBreakdown?: {
2356
+ provider: "elevenlabs" | "openai";
2357
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2358
+ callCount: number;
2359
+ billedCharacters?: number | undefined;
2360
+ incrementalCallCount?: number | undefined;
2361
+ reusedCallCount?: number | undefined;
2362
+ estimatedCostUsd?: number | undefined;
2363
+ incrementalBilledCharacters?: number | undefined;
2364
+ reusedBilledCharacters?: number | undefined;
2365
+ }[] | undefined;
2366
+ };
2367
+ cueId: string;
2368
+ storagePath: string;
2369
+ publicUrl: string;
2370
+ durationSec?: number | undefined;
2371
+ audioSha256?: string | undefined;
2372
+ audioByteLength?: number | undefined;
2373
+ }[];
2374
+ }, {
2375
+ chapterIndex: number;
2376
+ generationMeta: {
2377
+ createdAt: string;
2378
+ voiceId: string;
2379
+ modelId: string;
2380
+ provider: "elevenlabs";
2381
+ sourceTextHash: string;
2382
+ settingsHash: string;
2383
+ outputFormat?: string | undefined;
2384
+ estimatedCost?: number | undefined;
2385
+ costBreakdown?: {
2386
+ provider: "elevenlabs" | "openai";
2387
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2388
+ callCount: number;
2389
+ billedCharacters?: number | undefined;
2390
+ incrementalCallCount?: number | undefined;
2391
+ reusedCallCount?: number | undefined;
2392
+ estimatedCostUsd?: number | undefined;
2393
+ incrementalBilledCharacters?: number | undefined;
2394
+ reusedBilledCharacters?: number | undefined;
2395
+ }[] | undefined;
2396
+ };
2397
+ assets: {
2398
+ generationMeta: {
2399
+ createdAt: string;
2400
+ voiceId: string;
2401
+ modelId: string;
2402
+ provider: "elevenlabs";
2403
+ sourceTextHash: string;
2404
+ settingsHash: string;
2405
+ outputFormat?: string | undefined;
2406
+ estimatedCost?: number | undefined;
2407
+ costBreakdown?: {
2408
+ provider: "elevenlabs" | "openai";
2409
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2410
+ callCount: number;
2411
+ billedCharacters?: number | undefined;
2412
+ incrementalCallCount?: number | undefined;
2413
+ reusedCallCount?: number | undefined;
2414
+ estimatedCostUsd?: number | undefined;
2415
+ incrementalBilledCharacters?: number | undefined;
2416
+ reusedBilledCharacters?: number | undefined;
2417
+ }[] | undefined;
2418
+ };
2419
+ cueId: string;
2420
+ storagePath: string;
2421
+ publicUrl: string;
2422
+ durationSec?: number | undefined;
2423
+ audioSha256?: string | undefined;
2424
+ audioByteLength?: number | undefined;
2425
+ }[];
2426
+ }>;
2427
+ export declare const AudioMixTrackRefSchema: z.ZodObject<{
2428
+ role: z.ZodEnum<["narration", "sfx"]>;
2429
+ storagePath: z.ZodString;
2430
+ publicUrl: z.ZodString;
2431
+ gainDb: z.ZodNumber;
2432
+ }, "strict", z.ZodTypeAny, {
2433
+ storagePath: string;
2434
+ publicUrl: string;
2435
+ role: "narration" | "sfx";
2436
+ gainDb: number;
2437
+ }, {
2438
+ storagePath: string;
2439
+ publicUrl: string;
2440
+ role: "narration" | "sfx";
2441
+ gainDb: number;
2442
+ }>;
2443
+ export declare const AudioMixPlanPayloadSchema: z.ZodObject<{
2444
+ chapterIndex: z.ZodNumber;
2445
+ tracks: z.ZodArray<z.ZodObject<{
2446
+ role: z.ZodEnum<["narration", "sfx"]>;
2447
+ storagePath: z.ZodString;
2448
+ publicUrl: z.ZodString;
2449
+ gainDb: z.ZodNumber;
2450
+ }, "strict", z.ZodTypeAny, {
2451
+ storagePath: string;
2452
+ publicUrl: string;
2453
+ role: "narration" | "sfx";
2454
+ gainDb: number;
2455
+ }, {
2456
+ storagePath: string;
2457
+ publicUrl: string;
2458
+ role: "narration" | "sfx";
2459
+ gainDb: number;
2460
+ }>, "many">;
2461
+ notes: z.ZodString;
2462
+ narrationPrimary: z.ZodLiteral<true>;
2463
+ generationMeta: z.ZodObject<{
2464
+ sourceTextHash: z.ZodString;
2465
+ settingsHash: z.ZodString;
2466
+ provider: z.ZodLiteral<"elevenlabs">;
2467
+ modelId: z.ZodString;
2468
+ voiceId: z.ZodString;
2469
+ estimatedCost: z.ZodOptional<z.ZodNumber>;
2470
+ createdAt: z.ZodString;
2471
+ /** ElevenLabs TTS `output_format` when narration was synthesized. */
2472
+ outputFormat: z.ZodOptional<z.ZodString>;
2473
+ /** Stage-specific accounting. Never copy one stage's estimate onto another stage. */
2474
+ costBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
2475
+ provider: z.ZodEnum<["openai", "elevenlabs"]>;
2476
+ stage: z.ZodEnum<["adaptation", "guardian", "tts", "sound_effect", "mix", "qa"]>;
2477
+ /** Total calls embodied by this artifact, including resumed chunks. */
2478
+ callCount: z.ZodNumber;
2479
+ incrementalCallCount: z.ZodOptional<z.ZodNumber>;
2480
+ reusedCallCount: z.ZodOptional<z.ZodNumber>;
2481
+ estimatedCostUsd: z.ZodOptional<z.ZodNumber>;
2482
+ billedCharacters: z.ZodOptional<z.ZodNumber>;
2483
+ incrementalBilledCharacters: z.ZodOptional<z.ZodNumber>;
2484
+ reusedBilledCharacters: z.ZodOptional<z.ZodNumber>;
2485
+ }, "strict", z.ZodTypeAny, {
2486
+ provider: "elevenlabs" | "openai";
2487
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2488
+ callCount: number;
2489
+ billedCharacters?: number | undefined;
2490
+ incrementalCallCount?: number | undefined;
2491
+ reusedCallCount?: number | undefined;
2492
+ estimatedCostUsd?: number | undefined;
2493
+ incrementalBilledCharacters?: number | undefined;
2494
+ reusedBilledCharacters?: number | undefined;
2495
+ }, {
2496
+ provider: "elevenlabs" | "openai";
2497
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2498
+ callCount: number;
2499
+ billedCharacters?: number | undefined;
2500
+ incrementalCallCount?: number | undefined;
2501
+ reusedCallCount?: number | undefined;
2502
+ estimatedCostUsd?: number | undefined;
2503
+ incrementalBilledCharacters?: number | undefined;
2504
+ reusedBilledCharacters?: number | undefined;
2505
+ }>, "many">>;
2506
+ }, "strict", z.ZodTypeAny, {
2507
+ createdAt: string;
2508
+ voiceId: string;
2509
+ modelId: string;
2510
+ provider: "elevenlabs";
2511
+ sourceTextHash: string;
2512
+ settingsHash: string;
2513
+ outputFormat?: string | undefined;
2514
+ estimatedCost?: number | undefined;
2515
+ costBreakdown?: {
2516
+ provider: "elevenlabs" | "openai";
2517
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2518
+ callCount: number;
2519
+ billedCharacters?: number | undefined;
2520
+ incrementalCallCount?: number | undefined;
2521
+ reusedCallCount?: number | undefined;
2522
+ estimatedCostUsd?: number | undefined;
2523
+ incrementalBilledCharacters?: number | undefined;
2524
+ reusedBilledCharacters?: number | undefined;
2525
+ }[] | undefined;
2526
+ }, {
2527
+ createdAt: string;
2528
+ voiceId: string;
2529
+ modelId: string;
2530
+ provider: "elevenlabs";
2531
+ sourceTextHash: string;
2532
+ settingsHash: string;
2533
+ outputFormat?: string | undefined;
2534
+ estimatedCost?: number | undefined;
2535
+ costBreakdown?: {
2536
+ provider: "elevenlabs" | "openai";
2537
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2538
+ callCount: number;
2539
+ billedCharacters?: number | undefined;
2540
+ incrementalCallCount?: number | undefined;
2541
+ reusedCallCount?: number | undefined;
2542
+ estimatedCostUsd?: number | undefined;
2543
+ incrementalBilledCharacters?: number | undefined;
2544
+ reusedBilledCharacters?: number | undefined;
2545
+ }[] | undefined;
2546
+ }>;
2547
+ }, "strict", z.ZodTypeAny, {
2548
+ chapterIndex: number;
2549
+ generationMeta: {
2550
+ createdAt: string;
2551
+ voiceId: string;
2552
+ modelId: string;
2553
+ provider: "elevenlabs";
2554
+ sourceTextHash: string;
2555
+ settingsHash: string;
2556
+ outputFormat?: string | undefined;
2557
+ estimatedCost?: number | undefined;
2558
+ costBreakdown?: {
2559
+ provider: "elevenlabs" | "openai";
2560
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2561
+ callCount: number;
2562
+ billedCharacters?: number | undefined;
2563
+ incrementalCallCount?: number | undefined;
2564
+ reusedCallCount?: number | undefined;
2565
+ estimatedCostUsd?: number | undefined;
2566
+ incrementalBilledCharacters?: number | undefined;
2567
+ reusedBilledCharacters?: number | undefined;
2568
+ }[] | undefined;
2569
+ };
2570
+ tracks: {
2571
+ storagePath: string;
2572
+ publicUrl: string;
2573
+ role: "narration" | "sfx";
2574
+ gainDb: number;
2575
+ }[];
2576
+ notes: string;
2577
+ narrationPrimary: true;
2578
+ }, {
2579
+ chapterIndex: number;
2580
+ generationMeta: {
2581
+ createdAt: string;
2582
+ voiceId: string;
2583
+ modelId: string;
2584
+ provider: "elevenlabs";
2585
+ sourceTextHash: string;
2586
+ settingsHash: string;
2587
+ outputFormat?: string | undefined;
2588
+ estimatedCost?: number | undefined;
2589
+ costBreakdown?: {
2590
+ provider: "elevenlabs" | "openai";
2591
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2592
+ callCount: number;
2593
+ billedCharacters?: number | undefined;
2594
+ incrementalCallCount?: number | undefined;
2595
+ reusedCallCount?: number | undefined;
2596
+ estimatedCostUsd?: number | undefined;
2597
+ incrementalBilledCharacters?: number | undefined;
2598
+ reusedBilledCharacters?: number | undefined;
2599
+ }[] | undefined;
2600
+ };
2601
+ tracks: {
2602
+ storagePath: string;
2603
+ publicUrl: string;
2604
+ role: "narration" | "sfx";
2605
+ gainDb: number;
2606
+ }[];
2607
+ notes: string;
2608
+ narrationPrimary: true;
2609
+ }>;
2610
+ export declare const MixedChapterAudioPayloadSchema: z.ZodObject<{
2611
+ chapterIndex: z.ZodNumber;
2612
+ storagePath: z.ZodString;
2613
+ publicUrl: z.ZodString;
2614
+ durationSec: z.ZodOptional<z.ZodNumber>;
2615
+ mixStrategy: z.ZodEnum<["narration_only", "narration_only_stub", "concat_stub", "ffmpeg_documentary_spot_sfx"]>;
2616
+ narrationTimingArtifactId: z.ZodOptional<z.ZodString>;
2617
+ mixedInputHash: z.ZodOptional<z.ZodString>;
2618
+ audioSha256: z.ZodOptional<z.ZodString>;
2619
+ audioByteLength: z.ZodOptional<z.ZodNumber>;
2620
+ generationMeta: z.ZodObject<{
2621
+ sourceTextHash: z.ZodString;
2622
+ settingsHash: z.ZodString;
2623
+ provider: z.ZodLiteral<"elevenlabs">;
2624
+ modelId: z.ZodString;
2625
+ voiceId: z.ZodString;
2626
+ estimatedCost: z.ZodOptional<z.ZodNumber>;
2627
+ createdAt: z.ZodString;
2628
+ /** ElevenLabs TTS `output_format` when narration was synthesized. */
2629
+ outputFormat: z.ZodOptional<z.ZodString>;
2630
+ /** Stage-specific accounting. Never copy one stage's estimate onto another stage. */
2631
+ costBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
2632
+ provider: z.ZodEnum<["openai", "elevenlabs"]>;
2633
+ stage: z.ZodEnum<["adaptation", "guardian", "tts", "sound_effect", "mix", "qa"]>;
2634
+ /** Total calls embodied by this artifact, including resumed chunks. */
2635
+ callCount: z.ZodNumber;
2636
+ incrementalCallCount: z.ZodOptional<z.ZodNumber>;
2637
+ reusedCallCount: z.ZodOptional<z.ZodNumber>;
2638
+ estimatedCostUsd: z.ZodOptional<z.ZodNumber>;
2639
+ billedCharacters: z.ZodOptional<z.ZodNumber>;
2640
+ incrementalBilledCharacters: z.ZodOptional<z.ZodNumber>;
2641
+ reusedBilledCharacters: z.ZodOptional<z.ZodNumber>;
2642
+ }, "strict", z.ZodTypeAny, {
2643
+ provider: "elevenlabs" | "openai";
2644
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2645
+ callCount: number;
2646
+ billedCharacters?: number | undefined;
2647
+ incrementalCallCount?: number | undefined;
2648
+ reusedCallCount?: number | undefined;
2649
+ estimatedCostUsd?: number | undefined;
2650
+ incrementalBilledCharacters?: number | undefined;
2651
+ reusedBilledCharacters?: number | undefined;
2652
+ }, {
2653
+ provider: "elevenlabs" | "openai";
2654
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2655
+ callCount: number;
2656
+ billedCharacters?: number | undefined;
2657
+ incrementalCallCount?: number | undefined;
2658
+ reusedCallCount?: number | undefined;
2659
+ estimatedCostUsd?: number | undefined;
2660
+ incrementalBilledCharacters?: number | undefined;
2661
+ reusedBilledCharacters?: number | undefined;
2662
+ }>, "many">>;
2663
+ }, "strict", z.ZodTypeAny, {
2664
+ createdAt: string;
2665
+ voiceId: string;
2666
+ modelId: string;
2667
+ provider: "elevenlabs";
2668
+ sourceTextHash: string;
2669
+ settingsHash: string;
2670
+ outputFormat?: string | undefined;
2671
+ estimatedCost?: number | undefined;
2672
+ costBreakdown?: {
2673
+ provider: "elevenlabs" | "openai";
2674
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2675
+ callCount: number;
2676
+ billedCharacters?: number | undefined;
2677
+ incrementalCallCount?: number | undefined;
2678
+ reusedCallCount?: number | undefined;
2679
+ estimatedCostUsd?: number | undefined;
2680
+ incrementalBilledCharacters?: number | undefined;
2681
+ reusedBilledCharacters?: number | undefined;
2682
+ }[] | undefined;
2683
+ }, {
2684
+ createdAt: string;
2685
+ voiceId: string;
2686
+ modelId: string;
2687
+ provider: "elevenlabs";
2688
+ sourceTextHash: string;
2689
+ settingsHash: string;
2690
+ outputFormat?: string | undefined;
2691
+ estimatedCost?: number | undefined;
2692
+ costBreakdown?: {
2693
+ provider: "elevenlabs" | "openai";
2694
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2695
+ callCount: number;
2696
+ billedCharacters?: number | undefined;
2697
+ incrementalCallCount?: number | undefined;
2698
+ reusedCallCount?: number | undefined;
2699
+ estimatedCostUsd?: number | undefined;
2700
+ incrementalBilledCharacters?: number | undefined;
2701
+ reusedBilledCharacters?: number | undefined;
2702
+ }[] | undefined;
2703
+ }>;
2704
+ }, "strict", z.ZodTypeAny, {
2705
+ chapterIndex: number;
2706
+ generationMeta: {
2707
+ createdAt: string;
2708
+ voiceId: string;
2709
+ modelId: string;
2710
+ provider: "elevenlabs";
2711
+ sourceTextHash: string;
2712
+ settingsHash: string;
2713
+ outputFormat?: string | undefined;
2714
+ estimatedCost?: number | undefined;
2715
+ costBreakdown?: {
2716
+ provider: "elevenlabs" | "openai";
2717
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2718
+ callCount: number;
2719
+ billedCharacters?: number | undefined;
2720
+ incrementalCallCount?: number | undefined;
2721
+ reusedCallCount?: number | undefined;
2722
+ estimatedCostUsd?: number | undefined;
2723
+ incrementalBilledCharacters?: number | undefined;
2724
+ reusedBilledCharacters?: number | undefined;
2725
+ }[] | undefined;
2726
+ };
2727
+ storagePath: string;
2728
+ publicUrl: string;
2729
+ mixStrategy: "narration_only" | "narration_only_stub" | "concat_stub" | "ffmpeg_documentary_spot_sfx";
2730
+ durationSec?: number | undefined;
2731
+ audioSha256?: string | undefined;
2732
+ audioByteLength?: number | undefined;
2733
+ narrationTimingArtifactId?: string | undefined;
2734
+ mixedInputHash?: string | undefined;
2735
+ }, {
2736
+ chapterIndex: number;
2737
+ generationMeta: {
2738
+ createdAt: string;
2739
+ voiceId: string;
2740
+ modelId: string;
2741
+ provider: "elevenlabs";
2742
+ sourceTextHash: string;
2743
+ settingsHash: string;
2744
+ outputFormat?: string | undefined;
2745
+ estimatedCost?: number | undefined;
2746
+ costBreakdown?: {
2747
+ provider: "elevenlabs" | "openai";
2748
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2749
+ callCount: number;
2750
+ billedCharacters?: number | undefined;
2751
+ incrementalCallCount?: number | undefined;
2752
+ reusedCallCount?: number | undefined;
2753
+ estimatedCostUsd?: number | undefined;
2754
+ incrementalBilledCharacters?: number | undefined;
2755
+ reusedBilledCharacters?: number | undefined;
2756
+ }[] | undefined;
2757
+ };
2758
+ storagePath: string;
2759
+ publicUrl: string;
2760
+ mixStrategy: "narration_only" | "narration_only_stub" | "concat_stub" | "ffmpeg_documentary_spot_sfx";
2761
+ durationSec?: number | undefined;
2762
+ audioSha256?: string | undefined;
2763
+ audioByteLength?: number | undefined;
2764
+ narrationTimingArtifactId?: string | undefined;
2765
+ mixedInputHash?: string | undefined;
2766
+ }>;
2767
+ export declare const AudioQAReportPayloadSchema: z.ZodObject<{
2768
+ chapterIndex: z.ZodNumber;
2769
+ passed: z.ZodBoolean;
2770
+ voiceDisplayNameExpected: z.ZodString;
2771
+ voiceIdUsed: z.ZodString;
2772
+ narrationScriptArtifactId: z.ZodOptional<z.ZodString>;
2773
+ narrationTimingArtifactId: z.ZodOptional<z.ZodString>;
2774
+ mixedAudioArtifactId: z.ZodOptional<z.ZodString>;
2775
+ sourceChapterArtifactId: z.ZodOptional<z.ZodString>;
2776
+ sourcePlanArtifactId: z.ZodOptional<z.ZodString>;
2777
+ chapterAuthorizationHash: z.ZodOptional<z.ZodString>;
2778
+ sourceTextHash: z.ZodOptional<z.ZodString>;
2779
+ semanticAssessmentHash: z.ZodOptional<z.ZodString>;
2780
+ fullScriptHash: z.ZodOptional<z.ZodString>;
2781
+ narrationTtsCacheKey: z.ZodOptional<z.ZodString>;
2782
+ mixedInputHash: z.ZodOptional<z.ZodString>;
2783
+ mixedAudioSha256: z.ZodOptional<z.ZodString>;
2784
+ mixedAudioByteLength: z.ZodOptional<z.ZodNumber>;
2785
+ voiceSettingsPreset: z.ZodOptional<z.ZodString>;
2786
+ voiceSettingsHash: z.ZodOptional<z.ZodString>;
2787
+ narrationChunkCount: z.ZodOptional<z.ZodNumber>;
2788
+ chunkCoveragePassed: z.ZodOptional<z.ZodBoolean>;
2789
+ findings: z.ZodArray<z.ZodObject<{
2790
+ code: z.ZodString;
2791
+ severity: z.ZodEnum<["info", "warn", "fail"]>;
2792
+ message: z.ZodString;
2793
+ }, "strict", z.ZodTypeAny, {
2794
+ code: string;
2795
+ message: string;
2796
+ severity: "info" | "warn" | "fail";
2797
+ }, {
2798
+ code: string;
2799
+ message: string;
2800
+ severity: "info" | "warn" | "fail";
2801
+ }>, "many">;
2802
+ generationMeta: z.ZodObject<{
2803
+ sourceTextHash: z.ZodString;
2804
+ settingsHash: z.ZodString;
2805
+ provider: z.ZodLiteral<"elevenlabs">;
2806
+ modelId: z.ZodString;
2807
+ voiceId: z.ZodString;
2808
+ estimatedCost: z.ZodOptional<z.ZodNumber>;
2809
+ createdAt: z.ZodString;
2810
+ /** ElevenLabs TTS `output_format` when narration was synthesized. */
2811
+ outputFormat: z.ZodOptional<z.ZodString>;
2812
+ /** Stage-specific accounting. Never copy one stage's estimate onto another stage. */
2813
+ costBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
2814
+ provider: z.ZodEnum<["openai", "elevenlabs"]>;
2815
+ stage: z.ZodEnum<["adaptation", "guardian", "tts", "sound_effect", "mix", "qa"]>;
2816
+ /** Total calls embodied by this artifact, including resumed chunks. */
2817
+ callCount: z.ZodNumber;
2818
+ incrementalCallCount: z.ZodOptional<z.ZodNumber>;
2819
+ reusedCallCount: z.ZodOptional<z.ZodNumber>;
2820
+ estimatedCostUsd: z.ZodOptional<z.ZodNumber>;
2821
+ billedCharacters: z.ZodOptional<z.ZodNumber>;
2822
+ incrementalBilledCharacters: z.ZodOptional<z.ZodNumber>;
2823
+ reusedBilledCharacters: z.ZodOptional<z.ZodNumber>;
2824
+ }, "strict", z.ZodTypeAny, {
2825
+ provider: "elevenlabs" | "openai";
2826
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2827
+ callCount: number;
2828
+ billedCharacters?: number | undefined;
2829
+ incrementalCallCount?: number | undefined;
2830
+ reusedCallCount?: number | undefined;
2831
+ estimatedCostUsd?: number | undefined;
2832
+ incrementalBilledCharacters?: number | undefined;
2833
+ reusedBilledCharacters?: number | undefined;
2834
+ }, {
2835
+ provider: "elevenlabs" | "openai";
2836
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2837
+ callCount: number;
2838
+ billedCharacters?: number | undefined;
2839
+ incrementalCallCount?: number | undefined;
2840
+ reusedCallCount?: number | undefined;
2841
+ estimatedCostUsd?: number | undefined;
2842
+ incrementalBilledCharacters?: number | undefined;
2843
+ reusedBilledCharacters?: number | undefined;
2844
+ }>, "many">>;
2845
+ }, "strict", z.ZodTypeAny, {
2846
+ createdAt: string;
2847
+ voiceId: string;
2848
+ modelId: string;
2849
+ provider: "elevenlabs";
2850
+ sourceTextHash: string;
2851
+ settingsHash: string;
2852
+ outputFormat?: string | undefined;
2853
+ estimatedCost?: number | undefined;
2854
+ costBreakdown?: {
2855
+ provider: "elevenlabs" | "openai";
2856
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2857
+ callCount: number;
2858
+ billedCharacters?: number | undefined;
2859
+ incrementalCallCount?: number | undefined;
2860
+ reusedCallCount?: number | undefined;
2861
+ estimatedCostUsd?: number | undefined;
2862
+ incrementalBilledCharacters?: number | undefined;
2863
+ reusedBilledCharacters?: number | undefined;
2864
+ }[] | undefined;
2865
+ }, {
2866
+ createdAt: string;
2867
+ voiceId: string;
2868
+ modelId: string;
2869
+ provider: "elevenlabs";
2870
+ sourceTextHash: string;
2871
+ settingsHash: string;
2872
+ outputFormat?: string | undefined;
2873
+ estimatedCost?: number | undefined;
2874
+ costBreakdown?: {
2875
+ provider: "elevenlabs" | "openai";
2876
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2877
+ callCount: number;
2878
+ billedCharacters?: number | undefined;
2879
+ incrementalCallCount?: number | undefined;
2880
+ reusedCallCount?: number | undefined;
2881
+ estimatedCostUsd?: number | undefined;
2882
+ incrementalBilledCharacters?: number | undefined;
2883
+ reusedBilledCharacters?: number | undefined;
2884
+ }[] | undefined;
2885
+ }>;
2886
+ }, "strict", z.ZodTypeAny, {
2887
+ chapterIndex: number;
2888
+ generationMeta: {
2889
+ createdAt: string;
2890
+ voiceId: string;
2891
+ modelId: string;
2892
+ provider: "elevenlabs";
2893
+ sourceTextHash: string;
2894
+ settingsHash: string;
2895
+ outputFormat?: string | undefined;
2896
+ estimatedCost?: number | undefined;
2897
+ costBreakdown?: {
2898
+ provider: "elevenlabs" | "openai";
2899
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2900
+ callCount: number;
2901
+ billedCharacters?: number | undefined;
2902
+ incrementalCallCount?: number | undefined;
2903
+ reusedCallCount?: number | undefined;
2904
+ estimatedCostUsd?: number | undefined;
2905
+ incrementalBilledCharacters?: number | undefined;
2906
+ reusedBilledCharacters?: number | undefined;
2907
+ }[] | undefined;
2908
+ };
2909
+ passed: boolean;
2910
+ voiceDisplayNameExpected: string;
2911
+ voiceIdUsed: string;
2912
+ findings: {
2913
+ code: string;
2914
+ message: string;
2915
+ severity: "info" | "warn" | "fail";
2916
+ }[];
2917
+ sourceTextHash?: string | undefined;
2918
+ fullScriptHash?: string | undefined;
2919
+ voiceSettingsPreset?: string | undefined;
2920
+ voiceSettingsHash?: string | undefined;
2921
+ sourcePlanArtifactId?: string | undefined;
2922
+ chapterAuthorizationHash?: string | undefined;
2923
+ narrationTtsCacheKey?: string | undefined;
2924
+ narrationScriptArtifactId?: string | undefined;
2925
+ semanticAssessmentHash?: string | undefined;
2926
+ narrationTimingArtifactId?: string | undefined;
2927
+ mixedInputHash?: string | undefined;
2928
+ mixedAudioArtifactId?: string | undefined;
2929
+ sourceChapterArtifactId?: string | undefined;
2930
+ mixedAudioSha256?: string | undefined;
2931
+ mixedAudioByteLength?: number | undefined;
2932
+ narrationChunkCount?: number | undefined;
2933
+ chunkCoveragePassed?: boolean | undefined;
2934
+ }, {
2935
+ chapterIndex: number;
2936
+ generationMeta: {
2937
+ createdAt: string;
2938
+ voiceId: string;
2939
+ modelId: string;
2940
+ provider: "elevenlabs";
2941
+ sourceTextHash: string;
2942
+ settingsHash: string;
2943
+ outputFormat?: string | undefined;
2944
+ estimatedCost?: number | undefined;
2945
+ costBreakdown?: {
2946
+ provider: "elevenlabs" | "openai";
2947
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
2948
+ callCount: number;
2949
+ billedCharacters?: number | undefined;
2950
+ incrementalCallCount?: number | undefined;
2951
+ reusedCallCount?: number | undefined;
2952
+ estimatedCostUsd?: number | undefined;
2953
+ incrementalBilledCharacters?: number | undefined;
2954
+ reusedBilledCharacters?: number | undefined;
2955
+ }[] | undefined;
2956
+ };
2957
+ passed: boolean;
2958
+ voiceDisplayNameExpected: string;
2959
+ voiceIdUsed: string;
2960
+ findings: {
2961
+ code: string;
2962
+ message: string;
2963
+ severity: "info" | "warn" | "fail";
2964
+ }[];
2965
+ sourceTextHash?: string | undefined;
2966
+ fullScriptHash?: string | undefined;
2967
+ voiceSettingsPreset?: string | undefined;
2968
+ voiceSettingsHash?: string | undefined;
2969
+ sourcePlanArtifactId?: string | undefined;
2970
+ chapterAuthorizationHash?: string | undefined;
2971
+ narrationTtsCacheKey?: string | undefined;
2972
+ narrationScriptArtifactId?: string | undefined;
2973
+ semanticAssessmentHash?: string | undefined;
2974
+ narrationTimingArtifactId?: string | undefined;
2975
+ mixedInputHash?: string | undefined;
2976
+ mixedAudioArtifactId?: string | undefined;
2977
+ sourceChapterArtifactId?: string | undefined;
2978
+ mixedAudioSha256?: string | undefined;
2979
+ mixedAudioByteLength?: number | undefined;
2980
+ narrationChunkCount?: number | undefined;
2981
+ chunkCoveragePassed?: boolean | undefined;
2982
+ }>;
2983
+ export declare const VisualCueSchema: z.ZodObject<{
2984
+ id: z.ZodString;
2985
+ timecodeHint: z.ZodString;
2986
+ description: z.ZodString;
2987
+ archivalToneNotes: z.ZodString;
2988
+ }, "strict", z.ZodTypeAny, {
2989
+ id: string;
2990
+ description: string;
2991
+ timecodeHint: string;
2992
+ archivalToneNotes: string;
2993
+ }, {
2994
+ id: string;
2995
+ description: string;
2996
+ timecodeHint: string;
2997
+ archivalToneNotes: string;
2998
+ }>;
2999
+ export declare const VisualStoryboardPayloadSchema: z.ZodObject<{
3000
+ chapterIndex: z.ZodNumber;
3001
+ cues: z.ZodArray<z.ZodObject<{
3002
+ id: z.ZodString;
3003
+ timecodeHint: z.ZodString;
3004
+ description: z.ZodString;
3005
+ archivalToneNotes: z.ZodString;
3006
+ }, "strict", z.ZodTypeAny, {
3007
+ id: string;
3008
+ description: string;
3009
+ timecodeHint: string;
3010
+ archivalToneNotes: string;
3011
+ }, {
3012
+ id: string;
3013
+ description: string;
3014
+ timecodeHint: string;
3015
+ archivalToneNotes: string;
3016
+ }>, "many">;
3017
+ generationMeta: z.ZodObject<{
3018
+ sourceTextHash: z.ZodString;
3019
+ settingsHash: z.ZodString;
3020
+ provider: z.ZodLiteral<"elevenlabs">;
3021
+ modelId: z.ZodString;
3022
+ voiceId: z.ZodString;
3023
+ estimatedCost: z.ZodOptional<z.ZodNumber>;
3024
+ createdAt: z.ZodString;
3025
+ /** ElevenLabs TTS `output_format` when narration was synthesized. */
3026
+ outputFormat: z.ZodOptional<z.ZodString>;
3027
+ /** Stage-specific accounting. Never copy one stage's estimate onto another stage. */
3028
+ costBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
3029
+ provider: z.ZodEnum<["openai", "elevenlabs"]>;
3030
+ stage: z.ZodEnum<["adaptation", "guardian", "tts", "sound_effect", "mix", "qa"]>;
3031
+ /** Total calls embodied by this artifact, including resumed chunks. */
3032
+ callCount: z.ZodNumber;
3033
+ incrementalCallCount: z.ZodOptional<z.ZodNumber>;
3034
+ reusedCallCount: z.ZodOptional<z.ZodNumber>;
3035
+ estimatedCostUsd: z.ZodOptional<z.ZodNumber>;
3036
+ billedCharacters: z.ZodOptional<z.ZodNumber>;
3037
+ incrementalBilledCharacters: z.ZodOptional<z.ZodNumber>;
3038
+ reusedBilledCharacters: z.ZodOptional<z.ZodNumber>;
3039
+ }, "strict", z.ZodTypeAny, {
3040
+ provider: "elevenlabs" | "openai";
3041
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
3042
+ callCount: number;
3043
+ billedCharacters?: number | undefined;
3044
+ incrementalCallCount?: number | undefined;
3045
+ reusedCallCount?: number | undefined;
3046
+ estimatedCostUsd?: number | undefined;
3047
+ incrementalBilledCharacters?: number | undefined;
3048
+ reusedBilledCharacters?: number | undefined;
3049
+ }, {
3050
+ provider: "elevenlabs" | "openai";
3051
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
3052
+ callCount: number;
3053
+ billedCharacters?: number | undefined;
3054
+ incrementalCallCount?: number | undefined;
3055
+ reusedCallCount?: number | undefined;
3056
+ estimatedCostUsd?: number | undefined;
3057
+ incrementalBilledCharacters?: number | undefined;
3058
+ reusedBilledCharacters?: number | undefined;
3059
+ }>, "many">>;
3060
+ }, "strict", z.ZodTypeAny, {
3061
+ createdAt: string;
3062
+ voiceId: string;
3063
+ modelId: string;
3064
+ provider: "elevenlabs";
3065
+ sourceTextHash: string;
3066
+ settingsHash: string;
3067
+ outputFormat?: string | undefined;
3068
+ estimatedCost?: number | undefined;
3069
+ costBreakdown?: {
3070
+ provider: "elevenlabs" | "openai";
3071
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
3072
+ callCount: number;
3073
+ billedCharacters?: number | undefined;
3074
+ incrementalCallCount?: number | undefined;
3075
+ reusedCallCount?: number | undefined;
3076
+ estimatedCostUsd?: number | undefined;
3077
+ incrementalBilledCharacters?: number | undefined;
3078
+ reusedBilledCharacters?: number | undefined;
3079
+ }[] | undefined;
3080
+ }, {
3081
+ createdAt: string;
3082
+ voiceId: string;
3083
+ modelId: string;
3084
+ provider: "elevenlabs";
3085
+ sourceTextHash: string;
3086
+ settingsHash: string;
3087
+ outputFormat?: string | undefined;
3088
+ estimatedCost?: number | undefined;
3089
+ costBreakdown?: {
3090
+ provider: "elevenlabs" | "openai";
3091
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
3092
+ callCount: number;
3093
+ billedCharacters?: number | undefined;
3094
+ incrementalCallCount?: number | undefined;
3095
+ reusedCallCount?: number | undefined;
3096
+ estimatedCostUsd?: number | undefined;
3097
+ incrementalBilledCharacters?: number | undefined;
3098
+ reusedBilledCharacters?: number | undefined;
3099
+ }[] | undefined;
3100
+ }>;
3101
+ }, "strict", z.ZodTypeAny, {
3102
+ chapterIndex: number;
3103
+ generationMeta: {
3104
+ createdAt: string;
3105
+ voiceId: string;
3106
+ modelId: string;
3107
+ provider: "elevenlabs";
3108
+ sourceTextHash: string;
3109
+ settingsHash: string;
3110
+ outputFormat?: string | undefined;
3111
+ estimatedCost?: number | undefined;
3112
+ costBreakdown?: {
3113
+ provider: "elevenlabs" | "openai";
3114
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
3115
+ callCount: number;
3116
+ billedCharacters?: number | undefined;
3117
+ incrementalCallCount?: number | undefined;
3118
+ reusedCallCount?: number | undefined;
3119
+ estimatedCostUsd?: number | undefined;
3120
+ incrementalBilledCharacters?: number | undefined;
3121
+ reusedBilledCharacters?: number | undefined;
3122
+ }[] | undefined;
3123
+ };
3124
+ cues: {
3125
+ id: string;
3126
+ description: string;
3127
+ timecodeHint: string;
3128
+ archivalToneNotes: string;
3129
+ }[];
3130
+ }, {
3131
+ chapterIndex: number;
3132
+ generationMeta: {
3133
+ createdAt: string;
3134
+ voiceId: string;
3135
+ modelId: string;
3136
+ provider: "elevenlabs";
3137
+ sourceTextHash: string;
3138
+ settingsHash: string;
3139
+ outputFormat?: string | undefined;
3140
+ estimatedCost?: number | undefined;
3141
+ costBreakdown?: {
3142
+ provider: "elevenlabs" | "openai";
3143
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
3144
+ callCount: number;
3145
+ billedCharacters?: number | undefined;
3146
+ incrementalCallCount?: number | undefined;
3147
+ reusedCallCount?: number | undefined;
3148
+ estimatedCostUsd?: number | undefined;
3149
+ incrementalBilledCharacters?: number | undefined;
3150
+ reusedBilledCharacters?: number | undefined;
3151
+ }[] | undefined;
3152
+ };
3153
+ cues: {
3154
+ id: string;
3155
+ description: string;
3156
+ timecodeHint: string;
3157
+ archivalToneNotes: string;
3158
+ }[];
3159
+ }>;
3160
+ export declare const StillImagePromptSchema: z.ZodObject<{
3161
+ id: z.ZodString;
3162
+ imagePrompt: z.ZodString;
3163
+ negativePrompt: z.ZodString;
3164
+ }, "strict", z.ZodTypeAny, {
3165
+ id: string;
3166
+ imagePrompt: string;
3167
+ negativePrompt: string;
3168
+ }, {
3169
+ id: string;
3170
+ imagePrompt: string;
3171
+ negativePrompt: string;
3172
+ }>;
3173
+ export declare const StillImagePromptSetPayloadSchema: z.ZodObject<{
3174
+ chapterIndex: z.ZodNumber;
3175
+ prompts: z.ZodArray<z.ZodObject<{
3176
+ id: z.ZodString;
3177
+ imagePrompt: z.ZodString;
3178
+ negativePrompt: z.ZodString;
3179
+ }, "strict", z.ZodTypeAny, {
3180
+ id: string;
3181
+ imagePrompt: string;
3182
+ negativePrompt: string;
3183
+ }, {
3184
+ id: string;
3185
+ imagePrompt: string;
3186
+ negativePrompt: string;
3187
+ }>, "many">;
3188
+ imageGenerationDisabled: z.ZodLiteral<true>;
3189
+ generationMeta: z.ZodObject<{
3190
+ sourceTextHash: z.ZodString;
3191
+ settingsHash: z.ZodString;
3192
+ provider: z.ZodLiteral<"elevenlabs">;
3193
+ modelId: z.ZodString;
3194
+ voiceId: z.ZodString;
3195
+ estimatedCost: z.ZodOptional<z.ZodNumber>;
3196
+ createdAt: z.ZodString;
3197
+ /** ElevenLabs TTS `output_format` when narration was synthesized. */
3198
+ outputFormat: z.ZodOptional<z.ZodString>;
3199
+ /** Stage-specific accounting. Never copy one stage's estimate onto another stage. */
3200
+ costBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
3201
+ provider: z.ZodEnum<["openai", "elevenlabs"]>;
3202
+ stage: z.ZodEnum<["adaptation", "guardian", "tts", "sound_effect", "mix", "qa"]>;
3203
+ /** Total calls embodied by this artifact, including resumed chunks. */
3204
+ callCount: z.ZodNumber;
3205
+ incrementalCallCount: z.ZodOptional<z.ZodNumber>;
3206
+ reusedCallCount: z.ZodOptional<z.ZodNumber>;
3207
+ estimatedCostUsd: z.ZodOptional<z.ZodNumber>;
3208
+ billedCharacters: z.ZodOptional<z.ZodNumber>;
3209
+ incrementalBilledCharacters: z.ZodOptional<z.ZodNumber>;
3210
+ reusedBilledCharacters: z.ZodOptional<z.ZodNumber>;
3211
+ }, "strict", z.ZodTypeAny, {
3212
+ provider: "elevenlabs" | "openai";
3213
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
3214
+ callCount: number;
3215
+ billedCharacters?: number | undefined;
3216
+ incrementalCallCount?: number | undefined;
3217
+ reusedCallCount?: number | undefined;
3218
+ estimatedCostUsd?: number | undefined;
3219
+ incrementalBilledCharacters?: number | undefined;
3220
+ reusedBilledCharacters?: number | undefined;
3221
+ }, {
3222
+ provider: "elevenlabs" | "openai";
3223
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
3224
+ callCount: number;
3225
+ billedCharacters?: number | undefined;
3226
+ incrementalCallCount?: number | undefined;
3227
+ reusedCallCount?: number | undefined;
3228
+ estimatedCostUsd?: number | undefined;
3229
+ incrementalBilledCharacters?: number | undefined;
3230
+ reusedBilledCharacters?: number | undefined;
3231
+ }>, "many">>;
3232
+ }, "strict", z.ZodTypeAny, {
3233
+ createdAt: string;
3234
+ voiceId: string;
3235
+ modelId: string;
3236
+ provider: "elevenlabs";
3237
+ sourceTextHash: string;
3238
+ settingsHash: string;
3239
+ outputFormat?: string | undefined;
3240
+ estimatedCost?: number | undefined;
3241
+ costBreakdown?: {
3242
+ provider: "elevenlabs" | "openai";
3243
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
3244
+ callCount: number;
3245
+ billedCharacters?: number | undefined;
3246
+ incrementalCallCount?: number | undefined;
3247
+ reusedCallCount?: number | undefined;
3248
+ estimatedCostUsd?: number | undefined;
3249
+ incrementalBilledCharacters?: number | undefined;
3250
+ reusedBilledCharacters?: number | undefined;
3251
+ }[] | undefined;
3252
+ }, {
3253
+ createdAt: string;
3254
+ voiceId: string;
3255
+ modelId: string;
3256
+ provider: "elevenlabs";
3257
+ sourceTextHash: string;
3258
+ settingsHash: string;
3259
+ outputFormat?: string | undefined;
3260
+ estimatedCost?: number | undefined;
3261
+ costBreakdown?: {
3262
+ provider: "elevenlabs" | "openai";
3263
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
3264
+ callCount: number;
3265
+ billedCharacters?: number | undefined;
3266
+ incrementalCallCount?: number | undefined;
3267
+ reusedCallCount?: number | undefined;
3268
+ estimatedCostUsd?: number | undefined;
3269
+ incrementalBilledCharacters?: number | undefined;
3270
+ reusedBilledCharacters?: number | undefined;
3271
+ }[] | undefined;
3272
+ }>;
3273
+ }, "strict", z.ZodTypeAny, {
3274
+ chapterIndex: number;
3275
+ generationMeta: {
3276
+ createdAt: string;
3277
+ voiceId: string;
3278
+ modelId: string;
3279
+ provider: "elevenlabs";
3280
+ sourceTextHash: string;
3281
+ settingsHash: string;
3282
+ outputFormat?: string | undefined;
3283
+ estimatedCost?: number | undefined;
3284
+ costBreakdown?: {
3285
+ provider: "elevenlabs" | "openai";
3286
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
3287
+ callCount: number;
3288
+ billedCharacters?: number | undefined;
3289
+ incrementalCallCount?: number | undefined;
3290
+ reusedCallCount?: number | undefined;
3291
+ estimatedCostUsd?: number | undefined;
3292
+ incrementalBilledCharacters?: number | undefined;
3293
+ reusedBilledCharacters?: number | undefined;
3294
+ }[] | undefined;
3295
+ };
3296
+ prompts: {
3297
+ id: string;
3298
+ imagePrompt: string;
3299
+ negativePrompt: string;
3300
+ }[];
3301
+ imageGenerationDisabled: true;
3302
+ }, {
3303
+ chapterIndex: number;
3304
+ generationMeta: {
3305
+ createdAt: string;
3306
+ voiceId: string;
3307
+ modelId: string;
3308
+ provider: "elevenlabs";
3309
+ sourceTextHash: string;
3310
+ settingsHash: string;
3311
+ outputFormat?: string | undefined;
3312
+ estimatedCost?: number | undefined;
3313
+ costBreakdown?: {
3314
+ provider: "elevenlabs" | "openai";
3315
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
3316
+ callCount: number;
3317
+ billedCharacters?: number | undefined;
3318
+ incrementalCallCount?: number | undefined;
3319
+ reusedCallCount?: number | undefined;
3320
+ estimatedCostUsd?: number | undefined;
3321
+ incrementalBilledCharacters?: number | undefined;
3322
+ reusedBilledCharacters?: number | undefined;
3323
+ }[] | undefined;
3324
+ };
3325
+ prompts: {
3326
+ id: string;
3327
+ imagePrompt: string;
3328
+ negativePrompt: string;
3329
+ }[];
3330
+ imageGenerationDisabled: true;
3331
+ }>;
3332
+ export declare const VisualStoryboardModelOutputSchema: z.ZodObject<{
3333
+ cues: z.ZodArray<z.ZodObject<{
3334
+ id: z.ZodString;
3335
+ timecodeHint: z.ZodString;
3336
+ description: z.ZodString;
3337
+ archivalToneNotes: z.ZodString;
3338
+ }, "strict", z.ZodTypeAny, {
3339
+ id: string;
3340
+ description: string;
3341
+ timecodeHint: string;
3342
+ archivalToneNotes: string;
3343
+ }, {
3344
+ id: string;
3345
+ description: string;
3346
+ timecodeHint: string;
3347
+ archivalToneNotes: string;
3348
+ }>, "many">;
3349
+ stillPrompts: z.ZodArray<z.ZodObject<{
3350
+ id: z.ZodString;
3351
+ imagePrompt: z.ZodString;
3352
+ negativePrompt: z.ZodString;
3353
+ }, "strict", z.ZodTypeAny, {
3354
+ id: string;
3355
+ imagePrompt: string;
3356
+ negativePrompt: string;
3357
+ }, {
3358
+ id: string;
3359
+ imagePrompt: string;
3360
+ negativePrompt: string;
3361
+ }>, "many">;
3362
+ }, "strict", z.ZodTypeAny, {
3363
+ cues: {
3364
+ id: string;
3365
+ description: string;
3366
+ timecodeHint: string;
3367
+ archivalToneNotes: string;
3368
+ }[];
3369
+ stillPrompts: {
3370
+ id: string;
3371
+ imagePrompt: string;
3372
+ negativePrompt: string;
3373
+ }[];
3374
+ }, {
3375
+ cues: {
3376
+ id: string;
3377
+ description: string;
3378
+ timecodeHint: string;
3379
+ archivalToneNotes: string;
3380
+ }[];
3381
+ stillPrompts: {
3382
+ id: string;
3383
+ imagePrompt: string;
3384
+ negativePrompt: string;
3385
+ }[];
3386
+ }>;
3387
+ export declare const MotionStoryCueSchema: z.ZodObject<{
3388
+ id: z.ZodString;
3389
+ motionBrief: z.ZodString;
3390
+ durationSec: z.ZodNumber;
3391
+ }, "strict", z.ZodTypeAny, {
3392
+ id: string;
3393
+ durationSec: number;
3394
+ motionBrief: string;
3395
+ }, {
3396
+ id: string;
3397
+ durationSec: number;
3398
+ motionBrief: string;
3399
+ }>;
3400
+ export declare const MotionStoryCueSheetPayloadSchema: z.ZodObject<{
3401
+ chapterIndex: z.ZodNumber;
3402
+ cues: z.ZodArray<z.ZodObject<{
3403
+ id: z.ZodString;
3404
+ motionBrief: z.ZodString;
3405
+ durationSec: z.ZodNumber;
3406
+ }, "strict", z.ZodTypeAny, {
3407
+ id: string;
3408
+ durationSec: number;
3409
+ motionBrief: string;
3410
+ }, {
3411
+ id: string;
3412
+ durationSec: number;
3413
+ motionBrief: string;
3414
+ }>, "many">;
3415
+ generationMeta: z.ZodObject<{
3416
+ sourceTextHash: z.ZodString;
3417
+ settingsHash: z.ZodString;
3418
+ provider: z.ZodLiteral<"elevenlabs">;
3419
+ modelId: z.ZodString;
3420
+ voiceId: z.ZodString;
3421
+ estimatedCost: z.ZodOptional<z.ZodNumber>;
3422
+ createdAt: z.ZodString;
3423
+ /** ElevenLabs TTS `output_format` when narration was synthesized. */
3424
+ outputFormat: z.ZodOptional<z.ZodString>;
3425
+ /** Stage-specific accounting. Never copy one stage's estimate onto another stage. */
3426
+ costBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
3427
+ provider: z.ZodEnum<["openai", "elevenlabs"]>;
3428
+ stage: z.ZodEnum<["adaptation", "guardian", "tts", "sound_effect", "mix", "qa"]>;
3429
+ /** Total calls embodied by this artifact, including resumed chunks. */
3430
+ callCount: z.ZodNumber;
3431
+ incrementalCallCount: z.ZodOptional<z.ZodNumber>;
3432
+ reusedCallCount: z.ZodOptional<z.ZodNumber>;
3433
+ estimatedCostUsd: z.ZodOptional<z.ZodNumber>;
3434
+ billedCharacters: z.ZodOptional<z.ZodNumber>;
3435
+ incrementalBilledCharacters: z.ZodOptional<z.ZodNumber>;
3436
+ reusedBilledCharacters: z.ZodOptional<z.ZodNumber>;
3437
+ }, "strict", z.ZodTypeAny, {
3438
+ provider: "elevenlabs" | "openai";
3439
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
3440
+ callCount: number;
3441
+ billedCharacters?: number | undefined;
3442
+ incrementalCallCount?: number | undefined;
3443
+ reusedCallCount?: number | undefined;
3444
+ estimatedCostUsd?: number | undefined;
3445
+ incrementalBilledCharacters?: number | undefined;
3446
+ reusedBilledCharacters?: number | undefined;
3447
+ }, {
3448
+ provider: "elevenlabs" | "openai";
3449
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
3450
+ callCount: number;
3451
+ billedCharacters?: number | undefined;
3452
+ incrementalCallCount?: number | undefined;
3453
+ reusedCallCount?: number | undefined;
3454
+ estimatedCostUsd?: number | undefined;
3455
+ incrementalBilledCharacters?: number | undefined;
3456
+ reusedBilledCharacters?: number | undefined;
3457
+ }>, "many">>;
3458
+ }, "strict", z.ZodTypeAny, {
3459
+ createdAt: string;
3460
+ voiceId: string;
3461
+ modelId: string;
3462
+ provider: "elevenlabs";
3463
+ sourceTextHash: string;
3464
+ settingsHash: string;
3465
+ outputFormat?: string | undefined;
3466
+ estimatedCost?: number | undefined;
3467
+ costBreakdown?: {
3468
+ provider: "elevenlabs" | "openai";
3469
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
3470
+ callCount: number;
3471
+ billedCharacters?: number | undefined;
3472
+ incrementalCallCount?: number | undefined;
3473
+ reusedCallCount?: number | undefined;
3474
+ estimatedCostUsd?: number | undefined;
3475
+ incrementalBilledCharacters?: number | undefined;
3476
+ reusedBilledCharacters?: number | undefined;
3477
+ }[] | undefined;
3478
+ }, {
3479
+ createdAt: string;
3480
+ voiceId: string;
3481
+ modelId: string;
3482
+ provider: "elevenlabs";
3483
+ sourceTextHash: string;
3484
+ settingsHash: string;
3485
+ outputFormat?: string | undefined;
3486
+ estimatedCost?: number | undefined;
3487
+ costBreakdown?: {
3488
+ provider: "elevenlabs" | "openai";
3489
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
3490
+ callCount: number;
3491
+ billedCharacters?: number | undefined;
3492
+ incrementalCallCount?: number | undefined;
3493
+ reusedCallCount?: number | undefined;
3494
+ estimatedCostUsd?: number | undefined;
3495
+ incrementalBilledCharacters?: number | undefined;
3496
+ reusedBilledCharacters?: number | undefined;
3497
+ }[] | undefined;
3498
+ }>;
3499
+ }, "strict", z.ZodTypeAny, {
3500
+ chapterIndex: number;
3501
+ generationMeta: {
3502
+ createdAt: string;
3503
+ voiceId: string;
3504
+ modelId: string;
3505
+ provider: "elevenlabs";
3506
+ sourceTextHash: string;
3507
+ settingsHash: string;
3508
+ outputFormat?: string | undefined;
3509
+ estimatedCost?: number | undefined;
3510
+ costBreakdown?: {
3511
+ provider: "elevenlabs" | "openai";
3512
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
3513
+ callCount: number;
3514
+ billedCharacters?: number | undefined;
3515
+ incrementalCallCount?: number | undefined;
3516
+ reusedCallCount?: number | undefined;
3517
+ estimatedCostUsd?: number | undefined;
3518
+ incrementalBilledCharacters?: number | undefined;
3519
+ reusedBilledCharacters?: number | undefined;
3520
+ }[] | undefined;
3521
+ };
3522
+ cues: {
3523
+ id: string;
3524
+ durationSec: number;
3525
+ motionBrief: string;
3526
+ }[];
3527
+ }, {
3528
+ chapterIndex: number;
3529
+ generationMeta: {
3530
+ createdAt: string;
3531
+ voiceId: string;
3532
+ modelId: string;
3533
+ provider: "elevenlabs";
3534
+ sourceTextHash: string;
3535
+ settingsHash: string;
3536
+ outputFormat?: string | undefined;
3537
+ estimatedCost?: number | undefined;
3538
+ costBreakdown?: {
3539
+ provider: "elevenlabs" | "openai";
3540
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
3541
+ callCount: number;
3542
+ billedCharacters?: number | undefined;
3543
+ incrementalCallCount?: number | undefined;
3544
+ reusedCallCount?: number | undefined;
3545
+ estimatedCostUsd?: number | undefined;
3546
+ incrementalBilledCharacters?: number | undefined;
3547
+ reusedBilledCharacters?: number | undefined;
3548
+ }[] | undefined;
3549
+ };
3550
+ cues: {
3551
+ id: string;
3552
+ durationSec: number;
3553
+ motionBrief: string;
3554
+ }[];
3555
+ }>;
3556
+ export declare const MotionStoryCueModelOutputSchema: z.ZodObject<{
3557
+ cues: z.ZodArray<z.ZodObject<{
3558
+ id: z.ZodString;
3559
+ motionBrief: z.ZodString;
3560
+ durationSec: z.ZodNumber;
3561
+ }, "strict", z.ZodTypeAny, {
3562
+ id: string;
3563
+ durationSec: number;
3564
+ motionBrief: string;
3565
+ }, {
3566
+ id: string;
3567
+ durationSec: number;
3568
+ motionBrief: string;
3569
+ }>, "many">;
3570
+ }, "strict", z.ZodTypeAny, {
3571
+ cues: {
3572
+ id: string;
3573
+ durationSec: number;
3574
+ motionBrief: string;
3575
+ }[];
3576
+ }, {
3577
+ cues: {
3578
+ id: string;
3579
+ durationSec: number;
3580
+ motionBrief: string;
3581
+ }[];
3582
+ }>;
3583
+ export declare const ProductionAssetManifestPayloadSchema: z.ZodObject<{
3584
+ chapterIndex: z.ZodNumber;
3585
+ artifactRowIds: z.ZodObject<{
3586
+ voiceProfile: z.ZodOptional<z.ZodString>;
3587
+ narrationScript: z.ZodOptional<z.ZodString>;
3588
+ narrationTiming: z.ZodOptional<z.ZodString>;
3589
+ timeline: z.ZodOptional<z.ZodString>;
3590
+ soundCueSheet: z.ZodOptional<z.ZodString>;
3591
+ soundAssets: z.ZodOptional<z.ZodString>;
3592
+ mixPlan: z.ZodOptional<z.ZodString>;
3593
+ mixedAudio: z.ZodOptional<z.ZodString>;
3594
+ qaReport: z.ZodOptional<z.ZodString>;
3595
+ visualStoryboard: z.ZodOptional<z.ZodString>;
3596
+ stillImagePrompts: z.ZodOptional<z.ZodString>;
3597
+ motionCues: z.ZodOptional<z.ZodString>;
3598
+ }, "strict", z.ZodTypeAny, {
3599
+ timeline?: string | undefined;
3600
+ voiceProfile?: string | undefined;
3601
+ narrationScript?: string | undefined;
3602
+ narrationTiming?: string | undefined;
3603
+ soundCueSheet?: string | undefined;
3604
+ soundAssets?: string | undefined;
3605
+ mixPlan?: string | undefined;
3606
+ mixedAudio?: string | undefined;
3607
+ qaReport?: string | undefined;
3608
+ visualStoryboard?: string | undefined;
3609
+ stillImagePrompts?: string | undefined;
3610
+ motionCues?: string | undefined;
3611
+ }, {
3612
+ timeline?: string | undefined;
3613
+ voiceProfile?: string | undefined;
3614
+ narrationScript?: string | undefined;
3615
+ narrationTiming?: string | undefined;
3616
+ soundCueSheet?: string | undefined;
3617
+ soundAssets?: string | undefined;
3618
+ mixPlan?: string | undefined;
3619
+ mixedAudio?: string | undefined;
3620
+ qaReport?: string | undefined;
3621
+ visualStoryboard?: string | undefined;
3622
+ stillImagePrompts?: string | undefined;
3623
+ motionCues?: string | undefined;
3624
+ }>;
3625
+ requiredComplete: z.ZodBoolean;
3626
+ /** Exact release proof; absent legacy manifests fail the production guardian. */
3627
+ releaseProof: z.ZodOptional<z.ZodObject<{
3628
+ qaReportArtifactId: z.ZodString;
3629
+ narrationScriptArtifactId: z.ZodString;
3630
+ narrationTimingArtifactId: z.ZodString;
3631
+ mixedAudioArtifactId: z.ZodString;
3632
+ sourceChapterArtifactId: z.ZodString;
3633
+ sourcePlanArtifactId: z.ZodString;
3634
+ chapterAuthorizationHash: z.ZodString;
3635
+ sourceTextHash: z.ZodString;
3636
+ semanticAssessmentHash: z.ZodString;
3637
+ fullScriptHash: z.ZodString;
3638
+ narrationTtsCacheKey: z.ZodString;
3639
+ mixedInputHash: z.ZodOptional<z.ZodString>;
3640
+ mixedAudioSha256: z.ZodOptional<z.ZodString>;
3641
+ mixedAudioByteLength: z.ZodOptional<z.ZodNumber>;
3642
+ voiceSettingsPreset: z.ZodOptional<z.ZodString>;
3643
+ voiceSettingsHash: z.ZodOptional<z.ZodString>;
3644
+ qaPassed: z.ZodLiteral<true>;
3645
+ }, "strict", z.ZodTypeAny, {
3646
+ sourceTextHash: string;
3647
+ fullScriptHash: string;
3648
+ sourcePlanArtifactId: string;
3649
+ chapterAuthorizationHash: string;
3650
+ narrationTtsCacheKey: string;
3651
+ narrationScriptArtifactId: string;
3652
+ semanticAssessmentHash: string;
3653
+ narrationTimingArtifactId: string;
3654
+ mixedAudioArtifactId: string;
3655
+ sourceChapterArtifactId: string;
3656
+ qaReportArtifactId: string;
3657
+ qaPassed: true;
3658
+ voiceSettingsPreset?: string | undefined;
3659
+ voiceSettingsHash?: string | undefined;
3660
+ mixedInputHash?: string | undefined;
3661
+ mixedAudioSha256?: string | undefined;
3662
+ mixedAudioByteLength?: number | undefined;
3663
+ }, {
3664
+ sourceTextHash: string;
3665
+ fullScriptHash: string;
3666
+ sourcePlanArtifactId: string;
3667
+ chapterAuthorizationHash: string;
3668
+ narrationTtsCacheKey: string;
3669
+ narrationScriptArtifactId: string;
3670
+ semanticAssessmentHash: string;
3671
+ narrationTimingArtifactId: string;
3672
+ mixedAudioArtifactId: string;
3673
+ sourceChapterArtifactId: string;
3674
+ qaReportArtifactId: string;
3675
+ qaPassed: true;
3676
+ voiceSettingsPreset?: string | undefined;
3677
+ voiceSettingsHash?: string | undefined;
3678
+ mixedInputHash?: string | undefined;
3679
+ mixedAudioSha256?: string | undefined;
3680
+ mixedAudioByteLength?: number | undefined;
3681
+ }>>;
3682
+ generationMeta: z.ZodObject<{
3683
+ sourceTextHash: z.ZodString;
3684
+ settingsHash: z.ZodString;
3685
+ provider: z.ZodLiteral<"elevenlabs">;
3686
+ modelId: z.ZodString;
3687
+ voiceId: z.ZodString;
3688
+ estimatedCost: z.ZodOptional<z.ZodNumber>;
3689
+ createdAt: z.ZodString;
3690
+ /** ElevenLabs TTS `output_format` when narration was synthesized. */
3691
+ outputFormat: z.ZodOptional<z.ZodString>;
3692
+ /** Stage-specific accounting. Never copy one stage's estimate onto another stage. */
3693
+ costBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
3694
+ provider: z.ZodEnum<["openai", "elevenlabs"]>;
3695
+ stage: z.ZodEnum<["adaptation", "guardian", "tts", "sound_effect", "mix", "qa"]>;
3696
+ /** Total calls embodied by this artifact, including resumed chunks. */
3697
+ callCount: z.ZodNumber;
3698
+ incrementalCallCount: z.ZodOptional<z.ZodNumber>;
3699
+ reusedCallCount: z.ZodOptional<z.ZodNumber>;
3700
+ estimatedCostUsd: z.ZodOptional<z.ZodNumber>;
3701
+ billedCharacters: z.ZodOptional<z.ZodNumber>;
3702
+ incrementalBilledCharacters: z.ZodOptional<z.ZodNumber>;
3703
+ reusedBilledCharacters: z.ZodOptional<z.ZodNumber>;
3704
+ }, "strict", z.ZodTypeAny, {
3705
+ provider: "elevenlabs" | "openai";
3706
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
3707
+ callCount: number;
3708
+ billedCharacters?: number | undefined;
3709
+ incrementalCallCount?: number | undefined;
3710
+ reusedCallCount?: number | undefined;
3711
+ estimatedCostUsd?: number | undefined;
3712
+ incrementalBilledCharacters?: number | undefined;
3713
+ reusedBilledCharacters?: number | undefined;
3714
+ }, {
3715
+ provider: "elevenlabs" | "openai";
3716
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
3717
+ callCount: number;
3718
+ billedCharacters?: number | undefined;
3719
+ incrementalCallCount?: number | undefined;
3720
+ reusedCallCount?: number | undefined;
3721
+ estimatedCostUsd?: number | undefined;
3722
+ incrementalBilledCharacters?: number | undefined;
3723
+ reusedBilledCharacters?: number | undefined;
3724
+ }>, "many">>;
3725
+ }, "strict", z.ZodTypeAny, {
3726
+ createdAt: string;
3727
+ voiceId: string;
3728
+ modelId: string;
3729
+ provider: "elevenlabs";
3730
+ sourceTextHash: string;
3731
+ settingsHash: string;
3732
+ outputFormat?: string | undefined;
3733
+ estimatedCost?: number | undefined;
3734
+ costBreakdown?: {
3735
+ provider: "elevenlabs" | "openai";
3736
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
3737
+ callCount: number;
3738
+ billedCharacters?: number | undefined;
3739
+ incrementalCallCount?: number | undefined;
3740
+ reusedCallCount?: number | undefined;
3741
+ estimatedCostUsd?: number | undefined;
3742
+ incrementalBilledCharacters?: number | undefined;
3743
+ reusedBilledCharacters?: number | undefined;
3744
+ }[] | undefined;
3745
+ }, {
3746
+ createdAt: string;
3747
+ voiceId: string;
3748
+ modelId: string;
3749
+ provider: "elevenlabs";
3750
+ sourceTextHash: string;
3751
+ settingsHash: string;
3752
+ outputFormat?: string | undefined;
3753
+ estimatedCost?: number | undefined;
3754
+ costBreakdown?: {
3755
+ provider: "elevenlabs" | "openai";
3756
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
3757
+ callCount: number;
3758
+ billedCharacters?: number | undefined;
3759
+ incrementalCallCount?: number | undefined;
3760
+ reusedCallCount?: number | undefined;
3761
+ estimatedCostUsd?: number | undefined;
3762
+ incrementalBilledCharacters?: number | undefined;
3763
+ reusedBilledCharacters?: number | undefined;
3764
+ }[] | undefined;
3765
+ }>;
3766
+ }, "strict", z.ZodTypeAny, {
3767
+ chapterIndex: number;
3768
+ generationMeta: {
3769
+ createdAt: string;
3770
+ voiceId: string;
3771
+ modelId: string;
3772
+ provider: "elevenlabs";
3773
+ sourceTextHash: string;
3774
+ settingsHash: string;
3775
+ outputFormat?: string | undefined;
3776
+ estimatedCost?: number | undefined;
3777
+ costBreakdown?: {
3778
+ provider: "elevenlabs" | "openai";
3779
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
3780
+ callCount: number;
3781
+ billedCharacters?: number | undefined;
3782
+ incrementalCallCount?: number | undefined;
3783
+ reusedCallCount?: number | undefined;
3784
+ estimatedCostUsd?: number | undefined;
3785
+ incrementalBilledCharacters?: number | undefined;
3786
+ reusedBilledCharacters?: number | undefined;
3787
+ }[] | undefined;
3788
+ };
3789
+ artifactRowIds: {
3790
+ timeline?: string | undefined;
3791
+ voiceProfile?: string | undefined;
3792
+ narrationScript?: string | undefined;
3793
+ narrationTiming?: string | undefined;
3794
+ soundCueSheet?: string | undefined;
3795
+ soundAssets?: string | undefined;
3796
+ mixPlan?: string | undefined;
3797
+ mixedAudio?: string | undefined;
3798
+ qaReport?: string | undefined;
3799
+ visualStoryboard?: string | undefined;
3800
+ stillImagePrompts?: string | undefined;
3801
+ motionCues?: string | undefined;
3802
+ };
3803
+ requiredComplete: boolean;
3804
+ releaseProof?: {
3805
+ sourceTextHash: string;
3806
+ fullScriptHash: string;
3807
+ sourcePlanArtifactId: string;
3808
+ chapterAuthorizationHash: string;
3809
+ narrationTtsCacheKey: string;
3810
+ narrationScriptArtifactId: string;
3811
+ semanticAssessmentHash: string;
3812
+ narrationTimingArtifactId: string;
3813
+ mixedAudioArtifactId: string;
3814
+ sourceChapterArtifactId: string;
3815
+ qaReportArtifactId: string;
3816
+ qaPassed: true;
3817
+ voiceSettingsPreset?: string | undefined;
3818
+ voiceSettingsHash?: string | undefined;
3819
+ mixedInputHash?: string | undefined;
3820
+ mixedAudioSha256?: string | undefined;
3821
+ mixedAudioByteLength?: number | undefined;
3822
+ } | undefined;
3823
+ }, {
3824
+ chapterIndex: number;
3825
+ generationMeta: {
3826
+ createdAt: string;
3827
+ voiceId: string;
3828
+ modelId: string;
3829
+ provider: "elevenlabs";
3830
+ sourceTextHash: string;
3831
+ settingsHash: string;
3832
+ outputFormat?: string | undefined;
3833
+ estimatedCost?: number | undefined;
3834
+ costBreakdown?: {
3835
+ provider: "elevenlabs" | "openai";
3836
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
3837
+ callCount: number;
3838
+ billedCharacters?: number | undefined;
3839
+ incrementalCallCount?: number | undefined;
3840
+ reusedCallCount?: number | undefined;
3841
+ estimatedCostUsd?: number | undefined;
3842
+ incrementalBilledCharacters?: number | undefined;
3843
+ reusedBilledCharacters?: number | undefined;
3844
+ }[] | undefined;
3845
+ };
3846
+ artifactRowIds: {
3847
+ timeline?: string | undefined;
3848
+ voiceProfile?: string | undefined;
3849
+ narrationScript?: string | undefined;
3850
+ narrationTiming?: string | undefined;
3851
+ soundCueSheet?: string | undefined;
3852
+ soundAssets?: string | undefined;
3853
+ mixPlan?: string | undefined;
3854
+ mixedAudio?: string | undefined;
3855
+ qaReport?: string | undefined;
3856
+ visualStoryboard?: string | undefined;
3857
+ stillImagePrompts?: string | undefined;
3858
+ motionCues?: string | undefined;
3859
+ };
3860
+ requiredComplete: boolean;
3861
+ releaseProof?: {
3862
+ sourceTextHash: string;
3863
+ fullScriptHash: string;
3864
+ sourcePlanArtifactId: string;
3865
+ chapterAuthorizationHash: string;
3866
+ narrationTtsCacheKey: string;
3867
+ narrationScriptArtifactId: string;
3868
+ semanticAssessmentHash: string;
3869
+ narrationTimingArtifactId: string;
3870
+ mixedAudioArtifactId: string;
3871
+ sourceChapterArtifactId: string;
3872
+ qaReportArtifactId: string;
3873
+ qaPassed: true;
3874
+ voiceSettingsPreset?: string | undefined;
3875
+ voiceSettingsHash?: string | undefined;
3876
+ mixedInputHash?: string | undefined;
3877
+ mixedAudioSha256?: string | undefined;
3878
+ mixedAudioByteLength?: number | undefined;
3879
+ } | undefined;
3880
+ }>;
3881
+ export declare const AudioProductionSettingsArtifactPayloadSchema: z.ZodObject<{
3882
+ mode: z.ZodLiteral<"documentary_audiobook">;
3883
+ narrationProvider: z.ZodLiteral<"elevenlabs">;
3884
+ soundProvider: z.ZodLiteral<"elevenlabs">;
3885
+ voiceName: z.ZodString;
3886
+ elevenLabsVoiceId: z.ZodOptional<z.ZodString>;
3887
+ voiceSettingsPreset: z.ZodDefault<z.ZodString>;
3888
+ voiceSettings: z.ZodDefault<z.ZodObject<{
3889
+ stability: z.ZodNumber;
3890
+ similarity_boost: z.ZodNumber;
3891
+ style: z.ZodNumber;
3892
+ use_speaker_boost: z.ZodBoolean;
3893
+ }, "strict", z.ZodTypeAny, {
3894
+ style: number;
3895
+ stability: number;
3896
+ similarity_boost: number;
3897
+ use_speaker_boost: boolean;
3898
+ }, {
3899
+ style: number;
3900
+ stability: number;
3901
+ similarity_boost: number;
3902
+ use_speaker_boost: boolean;
3903
+ }>>;
3904
+ soundDesignIntensity: z.ZodEnum<["none", "subtle", "moderate"]>;
3905
+ maxCuesPerChapter: z.ZodNumber;
3906
+ visualStoryboardEnabled: z.ZodBoolean;
3907
+ } & {
3908
+ chapterIndex: z.ZodOptional<z.ZodNumber>;
3909
+ generationMeta: z.ZodOptional<z.ZodObject<{
3910
+ sourceTextHash: z.ZodString;
3911
+ settingsHash: z.ZodString;
3912
+ provider: z.ZodLiteral<"elevenlabs">;
3913
+ modelId: z.ZodString;
3914
+ voiceId: z.ZodString;
3915
+ estimatedCost: z.ZodOptional<z.ZodNumber>;
3916
+ createdAt: z.ZodString;
3917
+ /** ElevenLabs TTS `output_format` when narration was synthesized. */
3918
+ outputFormat: z.ZodOptional<z.ZodString>;
3919
+ /** Stage-specific accounting. Never copy one stage's estimate onto another stage. */
3920
+ costBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
3921
+ provider: z.ZodEnum<["openai", "elevenlabs"]>;
3922
+ stage: z.ZodEnum<["adaptation", "guardian", "tts", "sound_effect", "mix", "qa"]>;
3923
+ /** Total calls embodied by this artifact, including resumed chunks. */
3924
+ callCount: z.ZodNumber;
3925
+ incrementalCallCount: z.ZodOptional<z.ZodNumber>;
3926
+ reusedCallCount: z.ZodOptional<z.ZodNumber>;
3927
+ estimatedCostUsd: z.ZodOptional<z.ZodNumber>;
3928
+ billedCharacters: z.ZodOptional<z.ZodNumber>;
3929
+ incrementalBilledCharacters: z.ZodOptional<z.ZodNumber>;
3930
+ reusedBilledCharacters: z.ZodOptional<z.ZodNumber>;
3931
+ }, "strict", z.ZodTypeAny, {
3932
+ provider: "elevenlabs" | "openai";
3933
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
3934
+ callCount: number;
3935
+ billedCharacters?: number | undefined;
3936
+ incrementalCallCount?: number | undefined;
3937
+ reusedCallCount?: number | undefined;
3938
+ estimatedCostUsd?: number | undefined;
3939
+ incrementalBilledCharacters?: number | undefined;
3940
+ reusedBilledCharacters?: number | undefined;
3941
+ }, {
3942
+ provider: "elevenlabs" | "openai";
3943
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
3944
+ callCount: number;
3945
+ billedCharacters?: number | undefined;
3946
+ incrementalCallCount?: number | undefined;
3947
+ reusedCallCount?: number | undefined;
3948
+ estimatedCostUsd?: number | undefined;
3949
+ incrementalBilledCharacters?: number | undefined;
3950
+ reusedBilledCharacters?: number | undefined;
3951
+ }>, "many">>;
3952
+ }, "strict", z.ZodTypeAny, {
3953
+ createdAt: string;
3954
+ voiceId: string;
3955
+ modelId: string;
3956
+ provider: "elevenlabs";
3957
+ sourceTextHash: string;
3958
+ settingsHash: string;
3959
+ outputFormat?: string | undefined;
3960
+ estimatedCost?: number | undefined;
3961
+ costBreakdown?: {
3962
+ provider: "elevenlabs" | "openai";
3963
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
3964
+ callCount: number;
3965
+ billedCharacters?: number | undefined;
3966
+ incrementalCallCount?: number | undefined;
3967
+ reusedCallCount?: number | undefined;
3968
+ estimatedCostUsd?: number | undefined;
3969
+ incrementalBilledCharacters?: number | undefined;
3970
+ reusedBilledCharacters?: number | undefined;
3971
+ }[] | undefined;
3972
+ }, {
3973
+ createdAt: string;
3974
+ voiceId: string;
3975
+ modelId: string;
3976
+ provider: "elevenlabs";
3977
+ sourceTextHash: string;
3978
+ settingsHash: string;
3979
+ outputFormat?: string | undefined;
3980
+ estimatedCost?: number | undefined;
3981
+ costBreakdown?: {
3982
+ provider: "elevenlabs" | "openai";
3983
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
3984
+ callCount: number;
3985
+ billedCharacters?: number | undefined;
3986
+ incrementalCallCount?: number | undefined;
3987
+ reusedCallCount?: number | undefined;
3988
+ estimatedCostUsd?: number | undefined;
3989
+ incrementalBilledCharacters?: number | undefined;
3990
+ reusedBilledCharacters?: number | undefined;
3991
+ }[] | undefined;
3992
+ }>>;
3993
+ }, "strict", z.ZodTypeAny, {
3994
+ mode: "documentary_audiobook";
3995
+ voiceSettings: {
3996
+ style: number;
3997
+ stability: number;
3998
+ similarity_boost: number;
3999
+ use_speaker_boost: boolean;
4000
+ };
4001
+ voiceName: string;
4002
+ voiceSettingsPreset: string;
4003
+ narrationProvider: "elevenlabs";
4004
+ soundProvider: "elevenlabs";
4005
+ soundDesignIntensity: "none" | "subtle" | "moderate";
4006
+ maxCuesPerChapter: number;
4007
+ visualStoryboardEnabled: boolean;
4008
+ elevenLabsVoiceId?: string | undefined;
4009
+ chapterIndex?: number | undefined;
4010
+ generationMeta?: {
4011
+ createdAt: string;
4012
+ voiceId: string;
4013
+ modelId: string;
4014
+ provider: "elevenlabs";
4015
+ sourceTextHash: string;
4016
+ settingsHash: string;
4017
+ outputFormat?: string | undefined;
4018
+ estimatedCost?: number | undefined;
4019
+ costBreakdown?: {
4020
+ provider: "elevenlabs" | "openai";
4021
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
4022
+ callCount: number;
4023
+ billedCharacters?: number | undefined;
4024
+ incrementalCallCount?: number | undefined;
4025
+ reusedCallCount?: number | undefined;
4026
+ estimatedCostUsd?: number | undefined;
4027
+ incrementalBilledCharacters?: number | undefined;
4028
+ reusedBilledCharacters?: number | undefined;
4029
+ }[] | undefined;
4030
+ } | undefined;
4031
+ }, {
4032
+ mode: "documentary_audiobook";
4033
+ voiceName: string;
4034
+ narrationProvider: "elevenlabs";
4035
+ soundProvider: "elevenlabs";
4036
+ soundDesignIntensity: "none" | "subtle" | "moderate";
4037
+ maxCuesPerChapter: number;
4038
+ visualStoryboardEnabled: boolean;
4039
+ voiceSettings?: {
4040
+ style: number;
4041
+ stability: number;
4042
+ similarity_boost: number;
4043
+ use_speaker_boost: boolean;
4044
+ } | undefined;
4045
+ voiceSettingsPreset?: string | undefined;
4046
+ elevenLabsVoiceId?: string | undefined;
4047
+ chapterIndex?: number | undefined;
4048
+ generationMeta?: {
4049
+ createdAt: string;
4050
+ voiceId: string;
4051
+ modelId: string;
4052
+ provider: "elevenlabs";
4053
+ sourceTextHash: string;
4054
+ settingsHash: string;
4055
+ outputFormat?: string | undefined;
4056
+ estimatedCost?: number | undefined;
4057
+ costBreakdown?: {
4058
+ provider: "elevenlabs" | "openai";
4059
+ stage: "guardian" | "adaptation" | "tts" | "sound_effect" | "mix" | "qa";
4060
+ callCount: number;
4061
+ billedCharacters?: number | undefined;
4062
+ incrementalCallCount?: number | undefined;
4063
+ reusedCallCount?: number | undefined;
4064
+ estimatedCostUsd?: number | undefined;
4065
+ incrementalBilledCharacters?: number | undefined;
4066
+ reusedBilledCharacters?: number | undefined;
4067
+ }[] | undefined;
4068
+ } | undefined;
4069
+ }>;