@clipwright/core 0.60.0 → 0.62.0

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 (596) hide show
  1. package/dist/account-actors.d.ts +0 -43
  2. package/dist/account-actors.js +0 -55
  3. package/dist/account.d.ts +0 -6
  4. package/dist/account.js +0 -18
  5. package/dist/actor-bounds.d.ts +0 -5
  6. package/dist/actor-bounds.js +0 -6
  7. package/dist/actor-qualities.d.ts +0 -3
  8. package/dist/actor-qualities.js +0 -4
  9. package/dist/actors.d.ts +0 -16
  10. package/dist/actors.js +0 -21
  11. package/dist/ad-guide.d.ts +27 -0
  12. package/dist/ad-guide.js +7 -2
  13. package/dist/ad-ids.d.ts +3 -0
  14. package/dist/ad-ids.js +4 -0
  15. package/dist/ad-pause-trim.d.ts +0 -5
  16. package/dist/ad-pause-trim.js +0 -8
  17. package/dist/ads.d.ts +145 -0
  18. package/dist/ads.js +56 -0
  19. package/dist/api-failure.d.ts +6 -44
  20. package/dist/api-failure.js +16 -67
  21. package/dist/aspect.d.ts +0 -29
  22. package/dist/aspect.js +1 -34
  23. package/dist/asset-identity.d.ts +0 -2
  24. package/dist/asset-identity.js +0 -3
  25. package/dist/assets.d.ts +0 -34
  26. package/dist/assets.js +0 -42
  27. package/dist/billing-terms.d.ts +0 -3
  28. package/dist/billing-terms.js +0 -4
  29. package/dist/brand-styles.d.ts +0 -6
  30. package/dist/brand-styles.js +0 -13
  31. package/dist/broll-policy.js +0 -1
  32. package/dist/canvas-fit.d.ts +0 -2
  33. package/dist/canvas-fit.js +0 -4
  34. package/dist/caption-funnel.d.ts +0 -2
  35. package/dist/caption-funnel.js +0 -15
  36. package/dist/caption-geometry.d.ts +0 -6
  37. package/dist/caption-geometry.js +0 -10
  38. package/dist/caption-language.d.ts +0 -3
  39. package/dist/caption-language.js +0 -6
  40. package/dist/contract-dispositions.d.ts +0 -61
  41. package/dist/contract-dispositions.js +3 -96
  42. package/dist/contracts/v1/workflow-brief.d.ts +57 -3
  43. package/dist/contracts/v1/workflow-brief.js +0 -13
  44. package/dist/contracts/v1/workflow-catalog.d.ts +114 -0
  45. package/dist/contracts/v1/workflow-catalog.js +0 -3
  46. package/dist/contracts/v1/workflow-client.d.ts +114 -0
  47. package/dist/contracts/v1/workflow-client.js +0 -1
  48. package/dist/contracts/v1/workflow-dto.js +0 -1
  49. package/dist/contracts/v1/workflow-evidence.js +0 -1
  50. package/dist/contracts/v1/workflow-execution.d.ts +0 -1
  51. package/dist/contracts/v1/workflow-execution.js +0 -4
  52. package/dist/contracts/v1/workflow-next.d.ts +0 -2
  53. package/dist/contracts/v1/workflow-next.js +0 -3
  54. package/dist/contracts/v1/workflow-plan.d.ts +171 -0
  55. package/dist/contracts/v1/workflow-plan.js +0 -1
  56. package/dist/contracts/v1/workflow-primitives.d.ts +0 -1
  57. package/dist/contracts/v1/workflow-primitives.js +0 -2
  58. package/dist/contracts/v1/workflow-run-read.d.ts +0 -1
  59. package/dist/contracts/v1/workflow-run-read.js +0 -3
  60. package/dist/creator-profile.d.ts +0 -30
  61. package/dist/creator-profile.js +0 -45
  62. package/dist/default-actor.js +0 -2
  63. package/dist/design.d.ts +0 -17
  64. package/dist/design.js +0 -18
  65. package/dist/diy-next.d.ts +18 -0
  66. package/dist/diy-next.js +13 -0
  67. package/dist/edit-billing.d.ts +0 -6
  68. package/dist/edit-billing.js +0 -10
  69. package/dist/edit-candidate.d.ts +0 -6
  70. package/dist/edit-candidate.js +0 -9
  71. package/dist/edit-document.d.ts +0 -12
  72. package/dist/edit-document.js +0 -15
  73. package/dist/edit-faceless.d.ts +0 -3
  74. package/dist/edit-faceless.js +0 -4
  75. package/dist/edit-long-form.d.ts +0 -13
  76. package/dist/edit-long-form.js +0 -17
  77. package/dist/edit-music.d.ts +397 -0
  78. package/dist/edit-music.js +77 -0
  79. package/dist/edit-operations.d.ts +0 -1
  80. package/dist/edit-operations.js +0 -2
  81. package/dist/edit-primitives.d.ts +0 -3
  82. package/dist/edit-primitives.js +0 -5
  83. package/dist/edit-revision.d.ts +0 -4
  84. package/dist/edit-revision.js +0 -6
  85. package/dist/edit-rules.d.ts +0 -3
  86. package/dist/edit-rules.js +0 -9
  87. package/dist/edit-shots.d.ts +45 -5
  88. package/dist/edit-shots.js +7 -11
  89. package/dist/edit-validate.d.ts +0 -10
  90. package/dist/edit-validate.js +0 -14
  91. package/dist/edit.js +0 -3
  92. package/dist/endpoint-notes.d.ts +0 -2
  93. package/dist/endpoint-notes.js +0 -3
  94. package/dist/endpoints.d.ts +0 -11
  95. package/dist/endpoints.js +11 -21
  96. package/dist/errors.d.ts +29 -43
  97. package/dist/errors.js +18 -54
  98. package/dist/explainer-fit.d.ts +0 -7
  99. package/dist/explainer-fit.js +0 -10
  100. package/dist/face-billing.d.ts +0 -9
  101. package/dist/face-billing.js +0 -23
  102. package/dist/face-delivery.d.ts +0 -1
  103. package/dist/face-delivery.js +0 -2
  104. package/dist/faceless-action-shots.d.ts +0 -8
  105. package/dist/faceless-action-shots.js +0 -8
  106. package/dist/faceless-customer-anchors.d.ts +0 -1
  107. package/dist/faceless-customer-anchors.js +0 -2
  108. package/dist/faceless-cut-style.js +0 -1
  109. package/dist/faceless-direction-summary.d.ts +0 -2
  110. package/dist/faceless-direction-summary.js +0 -3
  111. package/dist/faceless-image-placement.d.ts +0 -2
  112. package/dist/faceless-image-placement.js +0 -3
  113. package/dist/faceless-image-qualification.js +0 -2
  114. package/dist/faceless-media-record.d.ts +0 -6
  115. package/dist/faceless-media-record.js +0 -11
  116. package/dist/faceless-price.d.ts +0 -45
  117. package/dist/faceless-price.js +0 -64
  118. package/dist/faceless-public-plan.d.ts +0 -13
  119. package/dist/faceless-public-plan.js +0 -11
  120. package/dist/faceless-public.d.ts +0 -26
  121. package/dist/faceless-public.js +0 -59
  122. package/dist/faceless-short-61.js +0 -1
  123. package/dist/faceless-storyboard-timing.js +0 -1
  124. package/dist/faceless-storyboard-v2-plan.js +0 -1
  125. package/dist/faceless-storyboard-v2-timing.d.ts +0 -4
  126. package/dist/faceless-storyboard-v2-timing.js +0 -3
  127. package/dist/faceless-storyboard-v2.js +0 -1
  128. package/dist/faceless-storyboard.js +0 -1
  129. package/dist/faceless-voices.d.ts +0 -16
  130. package/dist/faceless-voices.js +0 -18
  131. package/dist/feedback.d.ts +0 -4
  132. package/dist/feedback.js +0 -5
  133. package/dist/film-directions.d.ts +0 -2
  134. package/dist/film-directions.js +0 -7
  135. package/dist/film-drafts.d.ts +0 -8
  136. package/dist/film-drafts.js +0 -19
  137. package/dist/film-guide.d.ts +0 -3
  138. package/dist/film-guide.js +0 -6
  139. package/dist/film-styles.d.ts +0 -5
  140. package/dist/film-styles.js +0 -8
  141. package/dist/generation-shot.d.ts +0 -5
  142. package/dist/generation-shot.js +0 -8
  143. package/dist/generations-output.d.ts +0 -2
  144. package/dist/generations-output.js +0 -5
  145. package/dist/generations.d.ts +0 -22
  146. package/dist/generations.js +21 -44
  147. package/dist/idempotency.d.ts +1 -21
  148. package/dist/idempotency.js +8 -29
  149. package/dist/index.d.ts +4 -0
  150. package/dist/index.js +4 -28
  151. package/dist/live-shot-kinds.d.ts +16 -25
  152. package/dist/live-shot-kinds.js +12 -28
  153. package/dist/long-form-pricing.d.ts +0 -5
  154. package/dist/long-form-pricing.js +0 -6
  155. package/dist/long-form-profile.d.ts +0 -3
  156. package/dist/long-form-profile.js +0 -4
  157. package/dist/long-form-revision.d.ts +0 -9
  158. package/dist/long-form-revision.js +0 -11
  159. package/dist/markdown-quote.d.ts +0 -2
  160. package/dist/markdown-quote.js +0 -3
  161. package/dist/mascots.d.ts +0 -5
  162. package/dist/mascots.js +0 -10
  163. package/dist/max-credits.d.ts +0 -1
  164. package/dist/max-credits.js +0 -2
  165. package/dist/mcp-ugc-descriptions.d.ts +0 -2
  166. package/dist/mcp-ugc-descriptions.js +1 -6
  167. package/dist/media-timebase.d.ts +0 -2
  168. package/dist/media-timebase.js +0 -6
  169. package/dist/motion-styles.d.ts +0 -8
  170. package/dist/motion-styles.js +0 -11
  171. package/dist/moves.d.ts +0 -7
  172. package/dist/moves.js +0 -9
  173. package/dist/music.d.ts +0 -5
  174. package/dist/music.js +0 -8
  175. package/dist/naming.d.ts +0 -3
  176. package/dist/naming.js +0 -19
  177. package/dist/openapi.d.ts +0 -13
  178. package/dist/openapi.js +9 -11
  179. package/dist/output-provenance.d.ts +0 -4
  180. package/dist/output-provenance.js +0 -5
  181. package/dist/own-agent-price.d.ts +21 -22
  182. package/dist/own-agent-price.js +34 -25
  183. package/dist/own-agent-runs.d.ts +351 -11
  184. package/dist/own-agent-runs.js +144 -24
  185. package/dist/pacing.d.ts +3 -15
  186. package/dist/pacing.js +18 -18
  187. package/dist/parts-pricing.d.ts +0 -28
  188. package/dist/parts-pricing.js +0 -32
  189. package/dist/post-text.d.ts +0 -2
  190. package/dist/post-text.js +0 -4
  191. package/dist/presenter-beats.d.ts +0 -10
  192. package/dist/presenter-beats.js +0 -14
  193. package/dist/presenter-matte.d.ts +0 -7
  194. package/dist/presenter-matte.js +0 -9
  195. package/dist/presenter-takes.d.ts +0 -3
  196. package/dist/presenter-takes.js +0 -8
  197. package/dist/prices.d.ts +2 -8
  198. package/dist/prices.js +13 -23
  199. package/dist/public-endpoints.d.ts +0 -11
  200. package/dist/public-endpoints.js +0 -14
  201. package/dist/public-responses.d.ts +0 -2
  202. package/dist/public-responses.js +0 -3
  203. package/dist/rate-limit.d.ts +0 -24
  204. package/dist/rate-limit.js +0 -29
  205. package/dist/reference-analysis.d.ts +57 -34
  206. package/dist/reference-analysis.js +0 -69
  207. package/dist/reference-bring.d.ts +33 -0
  208. package/dist/reference-bring.js +28 -0
  209. package/dist/reference-display.d.ts +0 -3
  210. package/dist/reference-display.js +37 -4
  211. package/dist/reference-kinds.d.ts +0 -4
  212. package/dist/reference-kinds.js +0 -6
  213. package/dist/reference-lyrics.d.ts +0 -6
  214. package/dist/reference-lyrics.js +0 -6
  215. package/dist/reference-profile.d.ts +270 -39
  216. package/dist/reference-profile.js +64 -50
  217. package/dist/reference-staging.d.ts +0 -10
  218. package/dist/reference-staging.js +0 -14
  219. package/dist/reference-text-spans.d.ts +0 -4
  220. package/dist/reference-text-spans.js +0 -7
  221. package/dist/reference-voice-over.d.ts +0 -6
  222. package/dist/reference-voice-over.js +0 -7
  223. package/dist/reference-voice.d.ts +0 -7
  224. package/dist/reference-voice.js +0 -12
  225. package/dist/render-backend.d.ts +0 -30
  226. package/dist/render-backend.js +0 -5
  227. package/dist/resolved-timeline.d.ts +0 -4
  228. package/dist/resolved-timeline.js +1 -31
  229. package/dist/run-media.d.ts +0 -1
  230. package/dist/run-media.js +0 -2
  231. package/dist/run-preflight.d.ts +0 -4
  232. package/dist/run-preflight.js +0 -11
  233. package/dist/run-static-warnings.d.ts +0 -8
  234. package/dist/run-static-warnings.js +0 -38
  235. package/dist/runs.d.ts +0 -32
  236. package/dist/runs.js +0 -50
  237. package/dist/scene-bible.d.ts +15 -7
  238. package/dist/scene-bible.js +15 -10
  239. package/dist/scene-graph.d.ts +0 -12
  240. package/dist/scene-graph.js +0 -24
  241. package/dist/scene-place.d.ts +0 -25
  242. package/dist/scene-place.js +0 -24
  243. package/dist/scene-proposal.d.ts +0 -3
  244. package/dist/scene-proposal.js +0 -9
  245. package/dist/script-integrity.d.ts +0 -6
  246. package/dist/script-integrity.js +0 -8
  247. package/dist/script-voice.d.ts +0 -7
  248. package/dist/script-voice.js +0 -16
  249. package/dist/semantic-inserts.d.ts +0 -7
  250. package/dist/semantic-inserts.js +0 -10
  251. package/dist/skill-theme-explainer.js +0 -5
  252. package/dist/skill-theme.d.ts +0 -13
  253. package/dist/skill-theme.js +0 -25
  254. package/dist/skills.d.ts +22 -86
  255. package/dist/skills.js +21 -167
  256. package/dist/speech-rhythm-contract.js +0 -1
  257. package/dist/speech-rhythm.d.ts +0 -4
  258. package/dist/speech-rhythm.js +0 -2
  259. package/dist/templates/backdrop.d.ts +0 -3
  260. package/dist/templates/backdrop.js +0 -5
  261. package/dist/templates/callout.d.ts +0 -4
  262. package/dist/templates/callout.js +0 -6
  263. package/dist/templates/chart.d.ts +0 -4
  264. package/dist/templates/chart.js +0 -6
  265. package/dist/templates/chat-window.d.ts +0 -8
  266. package/dist/templates/chat-window.js +0 -10
  267. package/dist/templates/checklist.d.ts +0 -3
  268. package/dist/templates/checklist.js +0 -6
  269. package/dist/templates/comment-cta.d.ts +0 -14
  270. package/dist/templates/comment-cta.js +0 -19
  271. package/dist/templates/compare.d.ts +0 -6
  272. package/dist/templates/compare.js +0 -7
  273. package/dist/templates/cover-story.d.ts +0 -1
  274. package/dist/templates/cover-story.js +0 -3
  275. package/dist/templates/end-card.d.ts +0 -2
  276. package/dist/templates/end-card.js +0 -3
  277. package/dist/templates/hand-title.d.ts +0 -5
  278. package/dist/templates/hand-title.js +0 -9
  279. package/dist/templates/index.d.ts +0 -57
  280. package/dist/templates/index.js +0 -60
  281. package/dist/templates/lower-third.d.ts +0 -4
  282. package/dist/templates/lower-third.js +0 -5
  283. package/dist/templates/notification.d.ts +0 -6
  284. package/dist/templates/notification.js +0 -7
  285. package/dist/templates/phone-call.d.ts +0 -2
  286. package/dist/templates/phone-call.js +0 -6
  287. package/dist/templates/phone-screen.d.ts +0 -5
  288. package/dist/templates/phone-screen.js +0 -7
  289. package/dist/templates/pointer-chips.d.ts +0 -4
  290. package/dist/templates/pointer-chips.js +0 -6
  291. package/dist/templates/progress.d.ts +0 -3
  292. package/dist/templates/progress.js +0 -5
  293. package/dist/templates/quote.d.ts +0 -3
  294. package/dist/templates/quote.js +0 -4
  295. package/dist/templates/race.d.ts +0 -5
  296. package/dist/templates/race.js +0 -7
  297. package/dist/templates/rating.d.ts +0 -3
  298. package/dist/templates/rating.js +0 -5
  299. package/dist/templates/series-frame.d.ts +0 -16
  300. package/dist/templates/series-frame.js +0 -19
  301. package/dist/templates/size.d.ts +0 -7
  302. package/dist/templates/size.js +0 -8
  303. package/dist/templates/slot.d.ts +0 -2
  304. package/dist/templates/slot.js +0 -2
  305. package/dist/templates/sounds.d.ts +24 -12
  306. package/dist/templates/sounds.js +2 -16
  307. package/dist/templates/stat.d.ts +0 -3
  308. package/dist/templates/stat.js +0 -5
  309. package/dist/templates/tag.d.ts +0 -3
  310. package/dist/templates/tag.js +0 -5
  311. package/dist/templates/terminal.d.ts +0 -6
  312. package/dist/templates/terminal.js +0 -8
  313. package/dist/templates/theme.d.ts +0 -7
  314. package/dist/templates/theme.js +0 -9
  315. package/dist/templates/title-card.d.ts +0 -3
  316. package/dist/templates/title-card.js +0 -5
  317. package/dist/templates/video-grid.d.ts +0 -5
  318. package/dist/templates/video-grid.js +0 -8
  319. package/dist/templates/word-fill.d.ts +0 -3
  320. package/dist/templates/word-fill.js +0 -4
  321. package/dist/templates/word-title.d.ts +0 -2
  322. package/dist/templates/word-title.js +0 -4
  323. package/dist/trend-niches.d.ts +0 -11
  324. package/dist/trend-niches.js +0 -16
  325. package/dist/trend-search.d.ts +0 -66
  326. package/dist/trend-search.js +0 -70
  327. package/dist/tts-backend.d.ts +0 -19
  328. package/dist/tts-backend.js +0 -7
  329. package/dist/ugc-call.d.ts +0 -16
  330. package/dist/ugc-call.js +0 -21
  331. package/dist/ugc-delivery.d.ts +0 -2
  332. package/dist/ugc-delivery.js +0 -4
  333. package/dist/ugc-framing.d.ts +0 -4
  334. package/dist/ugc-framing.js +0 -6
  335. package/dist/ugc-interview.d.ts +0 -18
  336. package/dist/ugc-interview.js +0 -24
  337. package/dist/ugc-layers.d.ts +0 -39
  338. package/dist/ugc-layers.js +0 -39
  339. package/dist/ugc-scenes.d.ts +0 -2
  340. package/dist/ugc-scenes.js +0 -5
  341. package/dist/ugc-video-media.d.ts +0 -5
  342. package/dist/ugc-video-media.js +0 -7
  343. package/dist/uploads.d.ts +0 -14
  344. package/dist/uploads.js +0 -17
  345. package/dist/vendor-response.d.ts +0 -19
  346. package/dist/vendor-response.js +0 -22
  347. package/dist/video-size.d.ts +0 -4
  348. package/dist/video-size.js +0 -7
  349. package/dist/voice-admission.d.ts +0 -11
  350. package/dist/voice-admission.js +0 -13
  351. package/dist/voice-catalog-data.d.ts +0 -2
  352. package/dist/voice-catalog-data.js +0 -3
  353. package/dist/voice-catalog.d.ts +0 -6
  354. package/dist/voice-catalog.js +0 -8
  355. package/dist/voice-listing.d.ts +0 -6
  356. package/dist/voice-listing.js +0 -14
  357. package/dist/voice-pace.d.ts +0 -4
  358. package/dist/voice-pace.js +0 -7
  359. package/dist/voice-preview-approval.js +0 -1
  360. package/dist/voices.d.ts +4 -69
  361. package/dist/voices.js +3 -88
  362. package/dist/workflows/catalog.d.ts +0 -2
  363. package/dist/workflows/catalog.js +0 -4
  364. package/dist/workflows/film-directions.d.ts +0 -3
  365. package/dist/workflows/film-directions.js +0 -4
  366. package/dist/workflows/index.js +0 -1
  367. package/dist/workflows/methods/faceless-explainer.d.ts +31 -0
  368. package/dist/workflows/methods/faceless-explainer.js +0 -1
  369. package/dist/workflows/methods/kinetic-launch.d.ts +62 -1
  370. package/dist/workflows/methods/kinetic-launch.js +0 -2
  371. package/dist/workflows/methods/product-image-story.d.ts +31 -0
  372. package/dist/workflows/methods/product-image-story.js +0 -1
  373. package/dist/workflows/methods/reference-remake.d.ts +31 -0
  374. package/dist/workflows/methods/reference-remake.js +0 -1
  375. package/dist/workflows/methods/shared.d.ts +31 -1
  376. package/dist/workflows/methods/shared.js +0 -3
  377. package/dist/workflows/methods/ugc-faq-answer.d.ts +31 -0
  378. package/dist/workflows/methods/ugc-faq-answer.js +0 -1
  379. package/dist/workflows/methods/ugc-product-intro.d.ts +31 -0
  380. package/dist/workflows/methods/ugc-product-intro.js +0 -1
  381. package/dist/workflows/methods/website-proof-demo.d.ts +62 -1
  382. package/dist/workflows/methods/website-proof-demo.js +0 -2
  383. package/dist/workflows/motion-director.d.ts +0 -11
  384. package/dist/workflows/motion-director.js +0 -11
  385. package/dist/workflows/product-references.js +0 -1
  386. package/dist/workflows/reference-remake.d.ts +114 -17
  387. package/dist/workflows/reference-remake.js +0 -167
  388. package/dist/workflows/remake-chooser.d.ts +0 -6
  389. package/dist/workflows/remake-chooser.js +0 -4
  390. package/dist/workflows/remake-motion.d.ts +0 -16
  391. package/dist/workflows/remake-motion.js +0 -19
  392. package/dist/workflows/validate.d.ts +0 -1
  393. package/dist/workflows/validate.js +0 -5
  394. package/dist/workflows.js +0 -1
  395. package/package.json +1 -1
  396. package/dist/account-actors.js.map +0 -1
  397. package/dist/account.js.map +0 -1
  398. package/dist/actor-bounds.js.map +0 -1
  399. package/dist/actor-qualities.js.map +0 -1
  400. package/dist/actors.js.map +0 -1
  401. package/dist/ad-guide.js.map +0 -1
  402. package/dist/ad-pause-trim.js.map +0 -1
  403. package/dist/api-failure.js.map +0 -1
  404. package/dist/aspect.js.map +0 -1
  405. package/dist/asset-identity.js.map +0 -1
  406. package/dist/assets.js.map +0 -1
  407. package/dist/billing-terms.js.map +0 -1
  408. package/dist/brand-styles.js.map +0 -1
  409. package/dist/broll-policy.js.map +0 -1
  410. package/dist/canvas-fit.js.map +0 -1
  411. package/dist/caption-funnel.js.map +0 -1
  412. package/dist/caption-geometry.js.map +0 -1
  413. package/dist/caption-language.js.map +0 -1
  414. package/dist/contract-dispositions.js.map +0 -1
  415. package/dist/contracts/v1/workflow-brief.js.map +0 -1
  416. package/dist/contracts/v1/workflow-catalog.js.map +0 -1
  417. package/dist/contracts/v1/workflow-client.js.map +0 -1
  418. package/dist/contracts/v1/workflow-dto.js.map +0 -1
  419. package/dist/contracts/v1/workflow-evidence.js.map +0 -1
  420. package/dist/contracts/v1/workflow-execution.js.map +0 -1
  421. package/dist/contracts/v1/workflow-next.js.map +0 -1
  422. package/dist/contracts/v1/workflow-plan.js.map +0 -1
  423. package/dist/contracts/v1/workflow-primitives.js.map +0 -1
  424. package/dist/contracts/v1/workflow-run-read.js.map +0 -1
  425. package/dist/creator-profile.js.map +0 -1
  426. package/dist/default-actor.js.map +0 -1
  427. package/dist/design.js.map +0 -1
  428. package/dist/edit-billing.js.map +0 -1
  429. package/dist/edit-candidate.js.map +0 -1
  430. package/dist/edit-document.js.map +0 -1
  431. package/dist/edit-faceless.js.map +0 -1
  432. package/dist/edit-long-form.js.map +0 -1
  433. package/dist/edit-operations.js.map +0 -1
  434. package/dist/edit-primitives.js.map +0 -1
  435. package/dist/edit-revision.js.map +0 -1
  436. package/dist/edit-rules.js.map +0 -1
  437. package/dist/edit-shots.js.map +0 -1
  438. package/dist/edit-validate.js.map +0 -1
  439. package/dist/edit.js.map +0 -1
  440. package/dist/endpoint-notes.js.map +0 -1
  441. package/dist/endpoints.js.map +0 -1
  442. package/dist/errors.js.map +0 -1
  443. package/dist/explainer-fit.js.map +0 -1
  444. package/dist/face-billing.js.map +0 -1
  445. package/dist/face-delivery.js.map +0 -1
  446. package/dist/faceless-action-shots.js.map +0 -1
  447. package/dist/faceless-customer-anchors.js.map +0 -1
  448. package/dist/faceless-cut-style.js.map +0 -1
  449. package/dist/faceless-direction-summary.js.map +0 -1
  450. package/dist/faceless-image-placement.js.map +0 -1
  451. package/dist/faceless-image-qualification.js.map +0 -1
  452. package/dist/faceless-media-record.js.map +0 -1
  453. package/dist/faceless-price.js.map +0 -1
  454. package/dist/faceless-public-plan.js.map +0 -1
  455. package/dist/faceless-public.js.map +0 -1
  456. package/dist/faceless-short-61.js.map +0 -1
  457. package/dist/faceless-storyboard-timing.js.map +0 -1
  458. package/dist/faceless-storyboard-v2-plan.js.map +0 -1
  459. package/dist/faceless-storyboard-v2-timing.js.map +0 -1
  460. package/dist/faceless-storyboard-v2.js.map +0 -1
  461. package/dist/faceless-storyboard.js.map +0 -1
  462. package/dist/faceless-voices.js.map +0 -1
  463. package/dist/feedback.js.map +0 -1
  464. package/dist/film-directions.js.map +0 -1
  465. package/dist/film-drafts.js.map +0 -1
  466. package/dist/film-guide.js.map +0 -1
  467. package/dist/film-styles.js.map +0 -1
  468. package/dist/generation-shot.js.map +0 -1
  469. package/dist/generations-output.js.map +0 -1
  470. package/dist/generations.js.map +0 -1
  471. package/dist/idempotency.js.map +0 -1
  472. package/dist/index.js.map +0 -1
  473. package/dist/live-shot-kinds.js.map +0 -1
  474. package/dist/long-form-pricing.js.map +0 -1
  475. package/dist/long-form-profile.js.map +0 -1
  476. package/dist/long-form-revision.js.map +0 -1
  477. package/dist/markdown-quote.js.map +0 -1
  478. package/dist/mascots.js.map +0 -1
  479. package/dist/max-credits.js.map +0 -1
  480. package/dist/mcp-ugc-descriptions.js.map +0 -1
  481. package/dist/media-timebase.js.map +0 -1
  482. package/dist/motion-styles.js.map +0 -1
  483. package/dist/moves.js.map +0 -1
  484. package/dist/music.js.map +0 -1
  485. package/dist/naming.js.map +0 -1
  486. package/dist/openapi.js.map +0 -1
  487. package/dist/output-provenance.js.map +0 -1
  488. package/dist/own-agent-price.js.map +0 -1
  489. package/dist/own-agent-runs.js.map +0 -1
  490. package/dist/pacing.js.map +0 -1
  491. package/dist/parts-pricing.js.map +0 -1
  492. package/dist/post-text.js.map +0 -1
  493. package/dist/presenter-beats.js.map +0 -1
  494. package/dist/presenter-matte.js.map +0 -1
  495. package/dist/presenter-takes.js.map +0 -1
  496. package/dist/prices.js.map +0 -1
  497. package/dist/public-endpoints.js.map +0 -1
  498. package/dist/public-responses.js.map +0 -1
  499. package/dist/rate-limit.js.map +0 -1
  500. package/dist/reference-analysis.js.map +0 -1
  501. package/dist/reference-display.js.map +0 -1
  502. package/dist/reference-kinds.js.map +0 -1
  503. package/dist/reference-lyrics.js.map +0 -1
  504. package/dist/reference-profile.js.map +0 -1
  505. package/dist/reference-staging.js.map +0 -1
  506. package/dist/reference-text-spans.js.map +0 -1
  507. package/dist/reference-voice-over.js.map +0 -1
  508. package/dist/reference-voice.js.map +0 -1
  509. package/dist/render-backend.js.map +0 -1
  510. package/dist/resolved-timeline.js.map +0 -1
  511. package/dist/run-media.js.map +0 -1
  512. package/dist/run-preflight.js.map +0 -1
  513. package/dist/run-static-warnings.js.map +0 -1
  514. package/dist/runs.js.map +0 -1
  515. package/dist/scene-bible.js.map +0 -1
  516. package/dist/scene-graph.js.map +0 -1
  517. package/dist/scene-place.js.map +0 -1
  518. package/dist/scene-proposal.js.map +0 -1
  519. package/dist/script-integrity.js.map +0 -1
  520. package/dist/script-voice.js.map +0 -1
  521. package/dist/semantic-inserts.js.map +0 -1
  522. package/dist/skill-theme-explainer.js.map +0 -1
  523. package/dist/skill-theme.js.map +0 -1
  524. package/dist/skills.js.map +0 -1
  525. package/dist/speech-rhythm-contract.js.map +0 -1
  526. package/dist/speech-rhythm.js.map +0 -1
  527. package/dist/templates/backdrop.js.map +0 -1
  528. package/dist/templates/callout.js.map +0 -1
  529. package/dist/templates/chart.js.map +0 -1
  530. package/dist/templates/chat-window.js.map +0 -1
  531. package/dist/templates/checklist.js.map +0 -1
  532. package/dist/templates/comment-cta.js.map +0 -1
  533. package/dist/templates/compare.js.map +0 -1
  534. package/dist/templates/cover-story.js.map +0 -1
  535. package/dist/templates/end-card.js.map +0 -1
  536. package/dist/templates/hand-title.js.map +0 -1
  537. package/dist/templates/index.js.map +0 -1
  538. package/dist/templates/lower-third.js.map +0 -1
  539. package/dist/templates/notification.js.map +0 -1
  540. package/dist/templates/phone-call.js.map +0 -1
  541. package/dist/templates/phone-screen.js.map +0 -1
  542. package/dist/templates/pointer-chips.js.map +0 -1
  543. package/dist/templates/progress.js.map +0 -1
  544. package/dist/templates/quote.js.map +0 -1
  545. package/dist/templates/race.js.map +0 -1
  546. package/dist/templates/rating.js.map +0 -1
  547. package/dist/templates/series-frame.js.map +0 -1
  548. package/dist/templates/size.js.map +0 -1
  549. package/dist/templates/slot.js.map +0 -1
  550. package/dist/templates/sounds.js.map +0 -1
  551. package/dist/templates/stat.js.map +0 -1
  552. package/dist/templates/tag.js.map +0 -1
  553. package/dist/templates/terminal.js.map +0 -1
  554. package/dist/templates/theme.js.map +0 -1
  555. package/dist/templates/title-card.js.map +0 -1
  556. package/dist/templates/video-grid.js.map +0 -1
  557. package/dist/templates/word-fill.js.map +0 -1
  558. package/dist/templates/word-title.js.map +0 -1
  559. package/dist/trend-niches.js.map +0 -1
  560. package/dist/trend-search.js.map +0 -1
  561. package/dist/tts-backend.js.map +0 -1
  562. package/dist/ugc-call.js.map +0 -1
  563. package/dist/ugc-delivery.js.map +0 -1
  564. package/dist/ugc-framing.js.map +0 -1
  565. package/dist/ugc-interview.js.map +0 -1
  566. package/dist/ugc-layers.js.map +0 -1
  567. package/dist/ugc-scenes.js.map +0 -1
  568. package/dist/ugc-video-media.js.map +0 -1
  569. package/dist/uploads.js.map +0 -1
  570. package/dist/vendor-response.js.map +0 -1
  571. package/dist/video-size.js.map +0 -1
  572. package/dist/voice-admission.js.map +0 -1
  573. package/dist/voice-catalog-data.js.map +0 -1
  574. package/dist/voice-catalog.js.map +0 -1
  575. package/dist/voice-listing.js.map +0 -1
  576. package/dist/voice-pace.js.map +0 -1
  577. package/dist/voice-preview-approval.js.map +0 -1
  578. package/dist/voices.js.map +0 -1
  579. package/dist/workflows/catalog.js.map +0 -1
  580. package/dist/workflows/film-directions.js.map +0 -1
  581. package/dist/workflows/index.js.map +0 -1
  582. package/dist/workflows/methods/faceless-explainer.js.map +0 -1
  583. package/dist/workflows/methods/kinetic-launch.js.map +0 -1
  584. package/dist/workflows/methods/product-image-story.js.map +0 -1
  585. package/dist/workflows/methods/reference-remake.js.map +0 -1
  586. package/dist/workflows/methods/shared.js.map +0 -1
  587. package/dist/workflows/methods/ugc-faq-answer.js.map +0 -1
  588. package/dist/workflows/methods/ugc-product-intro.js.map +0 -1
  589. package/dist/workflows/methods/website-proof-demo.js.map +0 -1
  590. package/dist/workflows/motion-director.js.map +0 -1
  591. package/dist/workflows/product-references.js.map +0 -1
  592. package/dist/workflows/reference-remake.js.map +0 -1
  593. package/dist/workflows/remake-chooser.js.map +0 -1
  594. package/dist/workflows/remake-motion.js.map +0 -1
  595. package/dist/workflows/validate.js.map +0 -1
  596. package/dist/workflows.js.map +0 -1
@@ -1,14 +1,10 @@
1
1
  import { z } from "zod";
2
2
  import { frameCanvasOf } from "../ugc-layers.js";
3
3
  import { centredArea, fullWidth, sizedScale, templateSize } from "./size.js";
4
- /** The title's handwriting at medium on a 1080 short side; on a full frame it draws this much larger. */
5
4
  export const HAND_TITLE_FONT_PX = 110;
6
5
  const FULL_SCALE = 1.3;
7
- /** Text sizes: two lines of the title with the marker's room around them; the width is the full frame's. */
8
6
  export const HAND_TITLE_EMS = { height: 2.9 };
9
- /** The marker's strokes: a broad swipe behind the words, a wavy line under them, or a loop around them. */
10
7
  export const HAND_MARKS = ["highlight", "underline", "circle"];
11
- /** The marked words by position, so they are always words the title holds: the first's index from 0 and how many (absent: one). */
12
8
  const mark = z.object({ word: z.number().int().min(0).max(9), words: z.number().int().min(1).max(4).optional(), style: z.enum(HAND_MARKS),
13
9
  at: z.string().min(1).max(200).optional() }).strict();
14
10
  const data = z.object({ text: z.string().min(1).max(40), mark: mark.optional(), size: templateSize }).strict().superRefine((value, context) => {
@@ -17,8 +13,6 @@ const data = z.object({ text: z.string().min(1).max(40), mark: mark.optional(),
17
13
  context.addIssue({ code: z.ZodIssueCode.custom, path: ["mark", "word"], message: `the marked words run past the title's ${count} words` });
18
14
  }
19
15
  });
20
- /** A title written out letter by letter in a hand-drawn face, then a marker stroke drawn on chosen words on their beat (#1120). Over the presenter
21
- * it sits in the caption spot and hides captions. */
22
16
  export const handTitle = {
23
17
  kind: "hand_title",
24
18
  kindVersion: 1,
@@ -28,7 +22,6 @@ export const handTitle = {
28
22
  data,
29
23
  text: { text: 40 },
30
24
  quotes: ["mark.at"],
31
- // The title writes for at least the first 12 frames.
32
25
  beatsFrom: 14,
33
26
  slots: {},
34
27
  hidesCaptions: () => true,
@@ -39,9 +32,7 @@ export const handTitle = {
39
32
  if (placement === "full")
40
33
  return centredArea(canvas, fullWidth(value.size, canvas), Math.min(0.92 * h, height));
41
34
  const width = Math.round(fullWidth(value.size, canvas)), tall = Math.round(Math.min(0.3 * h, height));
42
- // Over the presenter it sits in the caption spot, low enough to keep off a wide presenter's face at every size.
43
35
  return { left: Math.round((w - width) / 2) / w, top: Math.round(0.7 * h - tall / 2) / h, width: width / w, height: tall / h };
44
36
  },
45
37
  sample: { text: "Posted daily for 30 days", mark: { word: 3, words: 2, style: "underline", at: "results" } },
46
38
  };
47
- //# sourceMappingURL=hand-title.js.map
@@ -7,42 +7,27 @@ export declare const TEMPLATE_PLACEMENTS: readonly ["over", "full"];
7
7
  export type TemplatePlacement = (typeof TEMPLATE_PLACEMENTS)[number];
8
8
  export declare const MAX_TEMPLATES = 40;
9
9
  export { contrastRatio, DEFAULT_TEMPLATE_PRESET, TEMPLATE_MIN_CONTRAST, TEMPLATE_PRESET_SURFACES, TEMPLATE_PRESETS, templateAccentRefusal, templateTheme, type TemplatePreset, type TemplateTheme } from "./theme.js";
10
- /** One kind: a strict data schema with no defaults or transforms; `kindVersion` moves only when that shape changes (A8). */
11
10
  export interface TemplateKind<D extends z.ZodObject = z.ZodObject> {
12
11
  kind: string;
13
12
  kindVersion: number;
14
13
  description: string;
15
- /** The placements it takes; the first is used when an item names none. */
16
14
  placements: readonly TemplatePlacement[];
17
15
  data: D;
18
- /** Text fields and the most units each takes; a dotted path reaches into objects and every element of a list. */
19
16
  text: Readonly<Record<string, number>>;
20
- /** Inner quotes, as dotted paths: each value is one beat, in order, landing on its words inside the item's own; absent is spread evenly (D6). */
21
17
  quotes?: readonly string[];
22
- /** A list whose elements each take a beat when the item quotes none, spread evenly; absent is one beat per quote value. */
23
18
  spreads?: string;
24
- /** The first frame a beat may land on: the kind has entered and, for a checklist, its cursor has reached the rows; absent is the frame after the enter. */
25
19
  beatsFrom?: number;
26
- /** Its first beat plays on its first frame whatever its quote: the first beat draws its first element, and a full frame is never bare (#1129). */
27
20
  firstBeatAtStart?: true;
28
- /** It fills the frame at medium, so large draws as medium, and says so (#1128). */
29
21
  fillsFrame?: true;
30
- /** A full frame the presenter stands in front of, cut out of the take, instead of one that hides them (#1428). */
31
22
  cutout?: true;
32
- /** Media fields, each `{ asset_id }`, and what each takes; they pin as `<id>.<slot>` (A1). */
33
23
  slots: Readonly<Record<string, TemplateSlot>>;
34
- /** The most media it pins, where a slot sits in each element of a list; absent is one per slot. */
35
24
  maxMedia?: number;
36
- /** The formats it is drawn in; absent is every format. */
37
25
  aspects?: readonly string[];
38
- /** Its own beat frames from each beat's spoken frame (none for a beat without a quote) and its span, with what they move; `frames` when it
39
- * runs on past its span, never past `most` (#1425). */
40
26
  timing?(data: z.infer<D>, beats: readonly (number | undefined)[], duration: number, fps: number, id: string, most: number): {
41
27
  moments: number[];
42
28
  warnings: string[];
43
29
  frames?: number;
44
30
  };
45
- /** Refusals its data earns in this run beyond its schema: the script's language, whether it covers the script's last words. */
46
31
  check?(data: z.infer<D>, context: {
47
32
  language: string;
48
33
  endsScript: boolean;
@@ -50,28 +35,17 @@ export interface TemplateKind<D extends z.ZodObject = z.ZodObject> {
50
35
  path: (string | number)[];
51
36
  message: string;
52
37
  }[];
53
- /** Whether captions are hidden while it shows: it sits in the caption spot. */
54
38
  hidesCaptions(data: z.infer<D>): boolean;
55
- /** Drawn on full-frame insert frames too; other over-presenter kinds step aside there. */
56
39
  onInserts: boolean;
57
- /** Where it draws, in shares of the frame: over the presenter its footprint, on a full frame the area its content takes. */
58
- /** `framing` is the presenter's as rendered, close when absent (#884 S5d). */
59
40
  rect(data: z.infer<D>, aspectRatio: string, placement?: TemplatePlacement, framing?: PresenterFraming): LayerRect;
60
- /** Named parts the composition draws in, in shares of the frame; they may reach past it, where the footprint crops them (A7). */
61
41
  parts?(data: z.infer<D>, aspectRatio: string, framing?: PresenterFraming): Record<string, LayerRect>;
62
- /** The part the face rule applies to, or none; absent is the whole footprint. */
63
42
  faceRect?(data: z.infer<D>, aspectRatio: string, framing?: PresenterFraming): LayerRect | undefined;
64
43
  sample: z.infer<D>;
65
44
  }
66
45
  export declare const TEMPLATE_KINDS: readonly TemplateKind[];
67
46
  export declare const TEMPLATE_KIND_IDS: readonly ["tag", "lower_third", "end_card", "title_card", "quote", "stat", "callout", "checklist", "phone_call", "compare", "notification", "progress", "rating", "chat_window", "video_grid", "word_title", "phone_screen", "terminal", "pointer_chips", "chart", "race", "hand_title", "word_fill", "cover_story", "series_frame", "comment_cta", "backdrop"];
68
- /** The kinds a request may name today: every kind whose switch is on, and a kind that cuts the presenter out only while that is on (#1428).
69
- * The catalog, the tool's kind list and admission read it. */
70
47
  export declare function offeredTemplateKinds(env?: Record<string, string | undefined>, kinds?: readonly TemplateKind[]): readonly TemplateKind[];
71
- /** Earlier versions of kinds a frozen timeline may still name, each with its own footprint (A8, #819). The phone's version 2 (#857 S5) and the
72
- * five kinds' version 2 (#1119) only add optional fields, and compare's version 3 (#1159) one reveal, so earlier versions keep their geometry. */
73
48
  export declare const TEMPLATE_KIND_HISTORY: readonly TemplateKind[];
74
- /** A kind as it was at `version`: the current entry or one from its history; a version neither holds has no footprint to draw. */
75
49
  export declare function templateKindAt(kind: string, version: number | undefined, kinds?: readonly TemplateKind[], history?: readonly TemplateKind[]): TemplateKind;
76
50
  export { TEMPLATE_SIZES } from "./size.js";
77
51
  export { DEFAULT_TEMPLATE_SOUNDS, editSoundRefusals, editSounds, FACELESS_LOOK_SOUND, FACELESS_SOUND_BEATS, facelessSoundMap, facelessSoundRefusals, facelessTemplateSounds, type FacelessSoundMap, type FacelessTemplateSounds, listTemplateSounds, mcpTemplateSounds, TEMPLATE_KIND_SOUNDS, TEMPLATE_SOUND_BEATS, TEMPLATE_SOUNDS, TEMPLATE_SOUNDS_PATH, templateSoundBeats, templateSoundMap, templateSounds, templateSoundsList, type TemplateSoundBeat, type TemplateSoundMap, type TemplateSounds, type TemplateSoundsList } from "./sounds.js";
@@ -101,36 +75,24 @@ export { BACKDROP_NOTES_STYLES, BACKDROP_PICTURE_STYLES, BACKDROP_STYLES, type B
101
75
  export { isSeriesFrameEnabled, SERIES_ASPECT, SERIES_FRAME_DISABLED_MESSAGE, SERIES_ITEM_FLOOR_SEC, SERIES_ITEM_LOOKS, SERIES_ITEMS, SERIES_LOOP_FRAMES, SERIES_MAX_FRAMES, SERIES_ONE_COLUMN_MAX, seriesFitWarnings, seriesFrameMoments, seriesLeastFrames } from "./series-frame.js";
102
76
  export { COMMENT_CTA_DISABLED_MESSAGE, commentCtaActLines, commentCtaMoments, commentCtaSchedule, CTA_ASPECT, CTA_FUNNEL, CTA_ITEMS, CTA_LABELS, CTA_LINE_GAP, CTA_LINES, CTA_LOOP_FRAMES, isCommentCtaEnabled } from "./comment-cta.js";
103
77
  export { templateMedia, type TemplateSlot } from "./slot.js";
104
- /** Every value at a dotted path of a kind's data, one per element where the path crosses or ends in a list, with its own path; an absent last
105
- * field is listed, a path through an absent object or list lists nothing. */
106
78
  export declare function templateFieldValues(data: unknown, field: string): {
107
79
  path: (string | number)[];
108
80
  value: unknown;
109
81
  }[];
110
- /** The data with every value at a dotted path set to `value`, through lists and in each element of a list it ends in; a missing object on the
111
- * way is created. */
112
82
  export declare function withTemplateField(data: Record<string, unknown>, field: string, value: unknown): Record<string, unknown>;
113
- /** Frames a template takes to enter; a beat without a quote is spread evenly from there to 80% of its span (D6). */
114
83
  export declare const TEMPLATE_ENTER_FRAMES = 8;
115
- /** The word each beat of a template lands on: its quote's first word inside the item's words, after the beat before; none for a beat without
116
- * a quote; or why it cannot land (D6, D10). */
117
84
  export declare function templateMomentWords(kind: TemplateKind, data: unknown, tokens: readonly string[], range: WordRange): {
118
85
  path: (string | number)[];
119
86
  word?: number;
120
87
  refusal?: string;
121
88
  }[];
122
- /** Frames an over-the-presenter template starts before its words, so its first quoted beat lands on its word once it is on screen (#1198 item 3):
123
- * at most `beatsFrom`, never before the video's first frame. */
124
89
  export declare function templateLeadFrames(kind: TemplateKind, data: unknown, tokens: readonly string[], range: WordRange, words: readonly {
125
90
  word: string;
126
91
  startSec: number;
127
92
  }[], fps: number, span: {
128
93
  startFrame: number;
129
94
  }): number;
130
- /** Frames between a moved beat and the next, so a checklist's cursor still travels between two clicks. */
131
95
  export declare const TEMPLATE_BEAT_GAP = 6;
132
- /** Each beat's frame from the template's start, frozen in the timeline; the renderer reads frames only (D11). A beat spoken before the kind's
133
- * `beatsFrom` moves there, the beats after it keep `TEMPLATE_BEAT_GAP`, and each move is a warning. */
134
96
  export declare function templateMoments(kind: TemplateKind, data: unknown, tokens: readonly string[], range: WordRange, words: readonly {
135
97
  word: string;
136
98
  startSec: number;
@@ -142,33 +104,25 @@ export declare function templateMoments(kind: TemplateKind, data: unknown, token
142
104
  warnings: string[];
143
105
  frames?: number;
144
106
  };
145
- /** Kinds that run on past their words and, at the video's end, hold its last frame until they have played (#1452, #1457). */
146
107
  export declare const HOLDING_TEMPLATE_KINDS: readonly string[];
147
- /** What the video's held frame lets a template finish, as the line naming the video's new length says it. */
148
108
  export declare function heldTemplateReason(template: {
149
109
  id: string;
150
110
  kind: string;
151
111
  data: unknown;
152
112
  }): string;
153
- /** Before payment (#1457): a call to action whose acts take longer than its sentence, by the script's pace, is named with the time it runs on. */
154
113
  export declare function commentCtaFitWarnings(input: {
155
114
  script?: unknown;
156
115
  templates?: unknown;
157
116
  pause_trim?: unknown;
158
117
  }): string[];
159
- /** The most moments and pins one frozen template holds: the largest any kind, current or in a frozen timeline's history, admits (#1425 T6). */
160
118
  export declare const MAX_MOMENTS_PER_TEMPLATE: number;
161
119
  export declare const MAX_MEDIA_PER_TEMPLATE: number;
162
- /** The most pins a run's templates take: each template's slots. */
163
120
  export declare const MAX_TEMPLATE_MEDIA: number;
164
- /** Every way a kind draws: each placement with its sample, then each value of each enum field over the sample at its first placement;
165
- * the composition declares motion phases for each, and the media test checks them. */
166
121
  export declare function templateVariants(kind: TemplateKind): {
167
122
  key: string;
168
123
  placement: TemplatePlacement;
169
124
  data: Record<string, unknown>;
170
125
  }[];
171
- /** Every media slot the templates fill, in item then slot order: what admission pins and every source walker reads (#778 S3a(ii)). */
172
126
  export declare function templateMediaOf(templates: readonly {
173
127
  id: string;
174
128
  kind: string;
@@ -182,11 +136,8 @@ export declare function templateMediaOf(templates: readonly {
182
136
  media_type: "image" | "video";
183
137
  cover?: number | undefined;
184
138
  }[];
185
- /** Code points template text may use besides the run script's letters, for a caption language; the glyph test reads this list. */
186
139
  export declare function templateCharRanges(language: string): [number, number][];
187
- /** Units of a text: a wide CJK character takes the room of two. */
188
140
  export declare const textUnits: (text: string) => number;
189
- /** Why a template text cannot be drawn, or nothing; the language is the run's, as the caption fonts read it. */
190
141
  export declare function templateTextRefusal(text: string, limit: number, language: string): string | undefined;
191
142
  export interface TemplateItem extends AnchoredItem {
192
143
  kind: string;
@@ -195,12 +146,10 @@ export interface TemplateItem extends AnchoredItem {
195
146
  data: Record<string, unknown>;
196
147
  place?: Place | undefined;
197
148
  }
198
- /** The run's over-presenter templates as scene items for one framing (#973 S4): each with its kind's own rect and its place, if any. */
199
149
  export declare function templateSceneItems(input: {
200
150
  templates?: readonly TemplateItem[] | undefined;
201
151
  aspect_ratio?: string | undefined;
202
152
  }, framing: PresenterFraming, kinds?: readonly TemplateKind[]): PlaceableOverlay[];
203
- /** Where a template draws and what it does to captions, at a format; a frozen `kindVersion` reads that version's geometry (#819). */
204
153
  export declare function templateFootprint(item: {
205
154
  kind: string;
206
155
  kindVersion?: number | undefined;
@@ -213,21 +162,16 @@ export declare function templateFootprint(item: {
213
162
  content?: LayerRect;
214
163
  parts?: Record<string, LayerRect>;
215
164
  };
216
- /** Templates asked at size large whose kind already fills the frame at medium: drawn at medium, and named (rule 3, #1128). */
217
165
  export declare function templateSizeWarnings(input: {
218
166
  templates?: unknown;
219
167
  }): string[];
220
- /** Whether a template takes the whole frame: its entry and exit are cuts edit_sounds sounds. */
221
168
  export declare function hasFullFrameTemplate(templates: unknown): boolean;
222
- /** Over-presenter templates whose footprint meets the face: drawn as asked, and named (rule 3); every kind's default stays off it. */
223
169
  export declare function templateFaceWarnings(input: {
224
170
  templates?: unknown;
225
171
  aspect_ratio?: unknown;
226
172
  presenter_framing?: unknown;
227
173
  }): string[];
228
- /** A kind's data fields as its catalog line names them: types, text limits, media slots and inner quotes. */
229
174
  export declare function templateDataText(kind: TemplateKind): string;
230
- /** The `templates` description: the gate, the text rules and one catalog line per kind, all from the registry. */
231
175
  export declare function templateCatalogText(kinds?: readonly TemplateKind[]): string;
232
176
  export interface TemplateCheckInput {
233
177
  script?: string | undefined;
@@ -262,5 +206,4 @@ export interface TemplateCheckInput {
262
206
  presenter_gaze?: unknown;
263
207
  end_hold_s?: unknown;
264
208
  }
265
- /** Every refusal of `templates`, `template_theme` and `template_sounds` against the run, named by path; empty when they render (D4, D5, D6, D8, D10, A5, A6). */
266
209
  export declare function templateRefusals(input: TemplateCheckInput, kinds?: readonly TemplateKind[]): LayerRefusal[];
@@ -34,7 +34,6 @@ import { titleCard } from "./title-card.js";
34
34
  import { videoGrid } from "./video-grid.js";
35
35
  import { wordFill } from "./word-fill.js";
36
36
  import { wordTitle } from "./word-title.js";
37
- // The graphic template catalog of any `make_ugc` script run (#778 S3, #840): one entry per kind, from which both schemas and every refusal come.
38
37
  export const TEMPLATE_PLACEMENTS = ["over", "full"];
39
38
  export const MAX_TEMPLATES = 40;
40
39
  export { contrastRatio, DEFAULT_TEMPLATE_PRESET, TEMPLATE_MIN_CONTRAST, TEMPLATE_PRESET_SURFACES, TEMPLATE_PRESETS, templateAccentRefusal, templateTheme } from "./theme.js";
@@ -44,21 +43,15 @@ export const TEMPLATE_KINDS = [tag, lowerThird, endCard, titleCard, quote, stat,
44
43
  export const TEMPLATE_KIND_IDS = ["tag", "lower_third", "end_card", "title_card", "quote", "stat", "callout", "checklist", "phone_call", "compare",
45
44
  "notification", "progress", "rating", "chat_window", "video_grid", "word_title", "phone_screen", "terminal", "pointer_chips", "chart", "race",
46
45
  "hand_title", "word_fill", "cover_story", "series_frame", "comment_cta", "backdrop"];
47
- /** Kinds behind a switch, each with the reason it is refused while off. */
48
46
  const SWITCHED_KINDS = {
49
47
  series_frame: { on: isSeriesFrameEnabled, off: SERIES_FRAME_DISABLED_MESSAGE },
50
48
  comment_cta: { on: isCommentCtaEnabled, off: COMMENT_CTA_DISABLED_MESSAGE },
51
49
  };
52
- /** The kinds a request may name today: every kind whose switch is on, and a kind that cuts the presenter out only while that is on (#1428).
53
- * The catalog, the tool's kind list and admission read it. */
54
50
  export function offeredTemplateKinds(env, kinds = TEMPLATE_KINDS) {
55
51
  return kinds.filter(kind => (SWITCHED_KINDS[kind.kind]?.on(env) ?? true) && (!kind.cutout || isPresenterMatteEnabled(env)));
56
52
  }
57
- /** Earlier versions of kinds a frozen timeline may still name, each with its own footprint (A8, #819). The phone's version 2 (#857 S5) and the
58
- * five kinds' version 2 (#1119) only add optional fields, and compare's version 3 (#1159) one reveal, so earlier versions keep their geometry. */
59
53
  export const TEMPLATE_KIND_HISTORY = [{ ...phoneCall, kindVersion: 1 },
60
54
  ...[chatWindowV1, notificationV1, terminalV1, lowerThirdV1, compareV1, compareV2]];
61
- /** A kind as it was at `version`: the current entry or one from its history; a version neither holds has no footprint to draw. */
62
55
  export function templateKindAt(kind, version, kinds = TEMPLATE_KINDS, history = TEMPLATE_KIND_HISTORY) {
63
56
  const current = kinds.find(entry => entry.kind === kind);
64
57
  if (!current)
@@ -98,8 +91,6 @@ export { BACKDROP_NOTES_STYLES, BACKDROP_PICTURE_STYLES, BACKDROP_STYLES } from
98
91
  export { isSeriesFrameEnabled, SERIES_ASPECT, SERIES_FRAME_DISABLED_MESSAGE, SERIES_ITEM_FLOOR_SEC, SERIES_ITEM_LOOKS, SERIES_ITEMS, SERIES_LOOP_FRAMES, SERIES_MAX_FRAMES, SERIES_ONE_COLUMN_MAX, seriesFitWarnings, seriesFrameMoments, seriesLeastFrames } from "./series-frame.js";
99
92
  export { COMMENT_CTA_DISABLED_MESSAGE, commentCtaActLines, commentCtaMoments, commentCtaSchedule, CTA_ASPECT, CTA_FUNNEL, CTA_ITEMS, CTA_LABELS, CTA_LINE_GAP, CTA_LINES, CTA_LOOP_FRAMES, isCommentCtaEnabled } from "./comment-cta.js";
100
93
  export { templateMedia } from "./slot.js";
101
- /** Every value at a dotted path of a kind's data, one per element where the path crosses or ends in a list, with its own path; an absent last
102
- * field is listed, a path through an absent object or list lists nothing. */
103
94
  export function templateFieldValues(data, field) {
104
95
  const walk = (value, keys, path) => {
105
96
  if (Array.isArray(value))
@@ -113,8 +104,6 @@ export function templateFieldValues(data, field) {
113
104
  };
114
105
  return walk(data, field.split("."), []);
115
106
  }
116
- /** The data with every value at a dotted path set to `value`, through lists and in each element of a list it ends in; a missing object on the
117
- * way is created. */
118
107
  export function withTemplateField(data, field, value) {
119
108
  const set = (target, keys) => {
120
109
  if (Array.isArray(target))
@@ -127,10 +116,7 @@ export function withTemplateField(data, field, value) {
127
116
  };
128
117
  return set(data, field.split("."));
129
118
  }
130
- /** Frames a template takes to enter; a beat without a quote is spread evenly from there to 80% of its span (D6). */
131
119
  export const TEMPLATE_ENTER_FRAMES = 8;
132
- /** The word each beat of a template lands on: its quote's first word inside the item's words, after the beat before; none for a beat without
133
- * a quote; or why it cannot land (D6, D10). */
134
120
  export function templateMomentWords(kind, data, tokens, range) {
135
121
  let after = range.startWord;
136
122
  const quoted = (kind.quotes ?? []).flatMap(field => templateFieldValues(data, field));
@@ -150,8 +136,6 @@ export function templateMomentWords(kind, data, tokens, range) {
150
136
  return { path, word: next.startWord };
151
137
  });
152
138
  }
153
- /** Frames an over-the-presenter template starts before its words, so its first quoted beat lands on its word once it is on screen (#1198 item 3):
154
- * at most `beatsFrom`, never before the video's first frame. */
155
139
  export function templateLeadFrames(kind, data, tokens, range, words, fps, span) {
156
140
  const first = kind.firstBeatAtStart ? undefined : templateMomentWords(kind, data, tokens, range)[0];
157
141
  if (first?.word === undefined)
@@ -160,15 +144,10 @@ export function templateLeadFrames(kind, data, tokens, range, words, fps, span)
160
144
  const at = Math.round(lexical[first.word].startSec * fps) - span.startFrame;
161
145
  return Math.max(0, Math.min(from - at, from, span.startFrame));
162
146
  }
163
- /** Frames between a moved beat and the next, so a checklist's cursor still travels between two clicks. */
164
147
  export const TEMPLATE_BEAT_GAP = 6;
165
- /** Each beat's frame from the template's start, frozen in the timeline; the renderer reads frames only (D11). A beat spoken before the kind's
166
- * `beatsFrom` moves there, the beats after it keep `TEMPLATE_BEAT_GAP`, and each move is a warning. */
167
148
  export function templateMoments(kind, data, tokens, range, words, fps, span, id = "template", most = span.endFrame) {
168
149
  const lexical = words.filter(word => !/^\p{P}+$/u.test(word.word)), duration = span.endFrame - span.startFrame;
169
150
  const beats = templateMomentWords(kind, data, tokens, range), from = kind.beatsFrom ?? TEMPLATE_ENTER_FRAMES + 1, warnings = [];
170
- // The composition refuses a beat outside its template, and with it every template (#1425): such a template is refused here, at the freeze.
171
- // A kind that runs on past its span (`frames`) stays within `most`, the last frame the freeze lets it reach.
172
151
  const inside = (result) => {
173
152
  const length = result.frames ?? duration;
174
153
  if (!Number.isSafeInteger(length) || length < duration || span.startFrame + length > Math.max(most, span.endFrame) ||
@@ -207,14 +186,11 @@ export function templateMoments(kind, data, tokens, range, words, fps, span, id
207
186
  });
208
187
  return inside({ moments, warnings });
209
188
  }
210
- /** Kinds that run on past their words and, at the video's end, hold its last frame until they have played (#1452, #1457). */
211
189
  export const HOLDING_TEMPLATE_KINDS = ["series_frame", "comment_cta"];
212
- /** What the video's held frame lets a template finish, as the line naming the video's new length says it. */
213
190
  export function heldTemplateReason(template) {
214
191
  return template.kind === "comment_cta" ? `every act of template "${template.id}" plays, the follow button tapped`
215
192
  : `all ${template.data.items.length} items of template "${template.id}" show`;
216
193
  }
217
- /** Before payment (#1457): a call to action whose acts take longer than its sentence, by the script's pace, is named with the time it runs on. */
218
194
  export function commentCtaFitWarnings(input) {
219
195
  if (typeof input.script !== "string" || !Array.isArray(input.templates))
220
196
  return [];
@@ -237,14 +213,12 @@ export function commentCtaFitWarnings(input) {
237
213
  if (frames === undefined)
238
214
  return [];
239
215
  const spoken = (span.endFrame - span.startFrame) / CANVAS_FPS, more = ((frames - span.endFrame + span.startFrame) / CANVAS_FPS).toFixed(1);
240
- // One whose run-on passes the script's last word holds the video's end as well (#1462).
241
216
  const past = span.startFrame + frames - Math.round((tokens.length / pace) * CANVAS_FPS);
242
217
  return [`template "${id}": its sentence gives about ${spoken.toFixed(1)} s and its comment, message and follow need about ${more} s more; ` +
243
218
  `${past > 0 ? `the video runs ${(past / CANVAS_FPS).toFixed(1)} s past its last word so ${heldTemplateReason({ id, kind: "comment_cta", data })}`
244
219
  : "the call to action will run on past it and the next template starts later"}; lengthen the sentence to keep the call to action on it`];
245
220
  });
246
221
  }
247
- /** The most values a dotted path of a kind's data holds: each list it crosses or ends in multiplies by its most elements. */
248
222
  function mostValuesAt(schema, keys) {
249
223
  const def = schema._zod.def;
250
224
  if (def.type === "optional")
@@ -262,19 +236,14 @@ function mostValuesAt(schema, keys) {
262
236
  throw new Error(`a template quote names no field ${keys.join(".")}`);
263
237
  return mostValuesAt(inner, rest);
264
238
  }
265
- /** The most beats a kind freezes, as `templateMomentWords` lists them: every value of its quotes, or each element of its spread list. */
266
239
  function mostBeatsOf(kind) {
267
240
  const at = (field) => mostValuesAt(kind.data, field.split("."));
268
241
  return Math.max(kind.spreads ? at(kind.spreads) : 0, (kind.quotes ?? []).reduce((sum, field) => sum + at(field), 0));
269
242
  }
270
243
  const FROZEN_KINDS = [...TEMPLATE_KINDS, ...TEMPLATE_KIND_HISTORY];
271
- /** The most moments and pins one frozen template holds: the largest any kind, current or in a frozen timeline's history, admits (#1425 T6). */
272
244
  export const MAX_MOMENTS_PER_TEMPLATE = Math.max(1, ...FROZEN_KINDS.map(mostBeatsOf));
273
245
  export const MAX_MEDIA_PER_TEMPLATE = Math.max(1, ...FROZEN_KINDS.map(kind => kind.maxMedia ?? Object.keys(kind.slots).length));
274
- /** The most pins a run's templates take: each template's slots. */
275
246
  export const MAX_TEMPLATE_MEDIA = MAX_TEMPLATES * MAX_MEDIA_PER_TEMPLATE;
276
- /** Every way a kind draws: each placement with its sample, then each value of each enum field over the sample at its first placement;
277
- * the composition declares motion phases for each, and the media test checks them. */
278
247
  export function templateVariants(kind) {
279
248
  const sample = kind.sample;
280
249
  return [...kind.placements.map(placement => ({ key: `placement:${placement}`, placement, data: sample })),
@@ -284,9 +253,7 @@ export function templateVariants(kind) {
284
253
  .map(option => ({ key: `${field}:${option}`, placement: kind.placements[0], data: { ...sample, [field]: option } }));
285
254
  })];
286
255
  }
287
- /** Every media slot the templates fill, in item then slot order: what admission pins and every source walker reads (#778 S3a(ii)). */
288
256
  export function templateMediaOf(templates) {
289
- // A slot inside each element of a list (`items.clip`) pins once per element, as `items_0_clip`: a slot name has no dots (A1).
290
257
  return (templates ?? []).flatMap((item, index) => Object.entries(TEMPLATE_KINDS.find(kind => kind.kind === item.kind)?.slots ?? {}).flatMap(([slot, takes]) => templateFieldValues(item.data, slot).flatMap(({ path, value }) => {
291
258
  const media = value;
292
259
  return typeof media?.asset_id === "string" ? [{ index, id: item.id, slot: path.join("_"), ...(path.length > 1 ? { path: path.join(".") } : {}),
@@ -294,7 +261,6 @@ export function templateMediaOf(templates) {
294
261
  })));
295
262
  }
296
263
  const RANGES = (pairs) => pairs.flatMap((value, index) => (index % 2 ? [] : [[value, pairs[index + 1]]]));
297
- /** Latin letters every face draws: ASCII, Latin-1 and Latin Extended-A/B; Vietnamese adds its own block. */
298
264
  const LATIN = RANGES([0x41, 0x5a, 0x61, 0x7a, 0xc0, 0xd6, 0xd8, 0xf6, 0xf8, 0x24f]);
299
265
  const COMMON = RANGES([0x20, 0x40, 0x5b, 0x60, 0x7b, 0x7e, 0xa0, 0xbf, 0xd7, 0xd7, 0xf7, 0xf7, 0x2010, 0x2027, 0x2030, 0x203a, 0x20ac, 0x20ac]);
300
266
  const EXTRA = {
@@ -307,14 +273,11 @@ const SCRIPTS = {
307
273
  zh: ["Chinese", /\p{Script=Han}/u], ko: ["Hangul", /\p{Script=Hangul}/u], ar: ["Arabic", /\p{Script=Arabic}/u],
308
274
  hi: ["Devanagari", /\p{Script=Devanagari}/u], ta: ["Tamil", /\p{Script=Tamil}/u],
309
275
  };
310
- /** Code points template text may use besides the run script's letters, for a caption language; the glyph test reads this list. */
311
276
  export function templateCharRanges(language) {
312
277
  return [...LATIN, ...COMMON, ...(EXTRA[language] ?? [])];
313
278
  }
314
279
  const WIDE = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\u{3000}-\u{303f}\u{ff01}-\u{ff60}\u{ffe0}-\u{ffe6}]/u;
315
- /** Units of a text: a wide CJK character takes the room of two. */
316
280
  export const textUnits = (text) => Array.from(text).reduce((sum, char) => sum + (WIDE.test(char) ? 2 : 1), 0);
317
- /** Why a template text cannot be drawn, or nothing; the language is the run's, as the caption fonts read it. */
318
281
  export function templateTextRefusal(text, limit, language) {
319
282
  if (!text.trim())
320
283
  return "is blank";
@@ -333,7 +296,6 @@ export function templateTextRefusal(text, limit, language) {
333
296
  return `has "${odd}", which the run's fonts cannot draw: use Latin${name ? ` or ${name}` : ""} letters, digits and common punctuation`;
334
297
  return undefined;
335
298
  }
336
- /** The run's over-presenter templates as scene items for one framing (#973 S4): each with its kind's own rect and its place, if any. */
337
299
  export function templateSceneItems(input, framing, kinds = TEMPLATE_KINDS) {
338
300
  return (input.templates ?? []).flatMap(item => {
339
301
  const kind = kinds.find(entry => entry.kind === item.kind), parsed = kind?.data.safeParse(item.data);
@@ -343,7 +305,6 @@ export function templateSceneItems(input, framing, kinds = TEMPLATE_KINDS) {
343
305
  own: kind.rect(parsed.data, input.aspect_ratio ?? "9:16", undefined, framing) }];
344
306
  });
345
307
  }
346
- /** Where a template draws and what it does to captions, at a format; a frozen `kindVersion` reads that version's geometry (#819). */
347
308
  export function templateFootprint(item, aspectRatio, kinds = TEMPLATE_KINDS, history = TEMPLATE_KIND_HISTORY, framing = "close") {
348
309
  const kind = templateKindAt(item.kind, item.kindVersion, kinds, history);
349
310
  if (item.placement === "full") {
@@ -352,18 +313,15 @@ export function templateFootprint(item, aspectRatio, kinds = TEMPLATE_KINDS, his
352
313
  return { rect: kind.rect(item.data, aspectRatio, undefined, framing), hidesCaptions: kind.hidesCaptions(item.data), onInserts: kind.onInserts,
353
314
  ...(kind.parts ? { parts: kind.parts(item.data, aspectRatio, framing) } : {}) };
354
315
  }
355
- /** Templates asked at size large whose kind already fills the frame at medium: drawn at medium, and named (rule 3, #1128). */
356
316
  export function templateSizeWarnings(input) {
357
317
  if (!Array.isArray(input.templates))
358
318
  return [];
359
319
  return input.templates.flatMap(item => item.data?.size === "large" && TEMPLATE_KINDS.find(entry => entry.kind === item.kind)?.fillsFrame
360
320
  ? [`template "${String(item.id)}" is drawn at medium: a ${String(item.kind)} already fills the frame there, so size large draws no larger`] : []);
361
321
  }
362
- /** Whether a template takes the whole frame: its entry and exit are cuts edit_sounds sounds. */
363
322
  export function hasFullFrameTemplate(templates) {
364
323
  return Array.isArray(templates) && templates.some(item => (item.placement ?? TEMPLATE_KINDS.find(kind => kind.kind === item.kind)?.placements[0]) === "full");
365
324
  }
366
- /** Over-presenter templates whose footprint meets the face: drawn as asked, and named (rule 3); every kind's default stays off it. */
367
325
  export function templateFaceWarnings(input) {
368
326
  if (!Array.isArray(input.templates))
369
327
  return [];
@@ -372,7 +330,6 @@ export function templateFaceWarnings(input) {
372
330
  return input.templates.flatMap(item => {
373
331
  const kind = TEMPLATE_KINDS.find(entry => entry.kind === item.kind);
374
332
  const placement = item.placement ?? kind?.placements[0];
375
- // A placed template is judged by its box, with the placed overlays (#973 S4).
376
333
  if (!kind || placement !== "over" || item.place !== undefined || !kind.data.safeParse(item.data).success)
377
334
  return [];
378
335
  const guarded = kind.faceRect ? kind.faceRect(item.data, aspect, framing) : kind.rect(item.data, aspect, "over", framing);
@@ -394,13 +351,11 @@ function catalogField(kind, key, schema, path = key) {
394
351
  if (def.type === "boolean")
395
352
  return `${key} true|false`;
396
353
  if (def.type === "array") {
397
- // zod 4.6 fills `_zod.bag` lazily, so the bounds come from the public JSON Schema export.
398
354
  const { minItems, maxItems } = z.toJSONSchema(schema, { unrepresentable: "any" });
399
355
  return `${key} ${minItems ?? 0}–${maxItems} of ${catalogField(kind, "", def.element, path).trim()}`;
400
356
  }
401
357
  if (def.type === "object") {
402
358
  const shape = Object.entries(schema.shape);
403
- // An object holding text or a quote lists its fields; a plain one, such as a target, its keys.
404
359
  const deep = [...Object.keys(kind.text), ...(kind.quotes ?? [])].some(name => name.startsWith(`${path}.`));
405
360
  return `${key} {${deep ? shape.map(([name, inner]) => catalogField(kind, name, inner, `${path}.${name}`)).join(", ") : shape.map(([name]) => name).join(",")}}`;
406
361
  }
@@ -408,11 +363,9 @@ function catalogField(kind, key, schema, path = key) {
408
363
  return `${key} inner quote`;
409
364
  return options ? `${key} ${options.join("|")}` : `${key} ≤ ${kind.text[path]}`;
410
365
  }
411
- /** A kind's data fields as its catalog line names them: types, text limits, media slots and inner quotes. */
412
366
  export function templateDataText(kind) {
413
367
  return Object.entries(kind.data.shape).map(([key, schema]) => catalogField(kind, key, schema)).join(", ");
414
368
  }
415
- /** The `templates` description: the gate, the text rules and one catalog line per kind, all from the registry. */
416
369
  export function templateCatalogText(kinds = offeredTemplateKinds()) {
417
370
  return "Graphic templates, each { id, kind, anchor, cover_words?, placement?, transition?, data }. On any script run. Templates never " +
418
371
  "change the price: every run is billed by its parts as list_prices states them, and a presenter a template covers is still " +
@@ -433,19 +386,14 @@ const overlaps = (a, b) => a.startWord < b.coverWord && b.startWord < a.coverWor
433
386
  const meets = (a, b) => a.coverWord === b.startWord || b.coverWord === a.startWord;
434
387
  const coveredBy = (range, cover) => Array.from({ length: range.coverWord - range.startWord }, (_, offset) => range.startWord + offset).every(word => cover.some(other => word >= other.startWord && word < other.coverWord));
435
388
  const MOVING = new Set(["wipe", "zoom"]);
436
- /** The fields that make a run more than one plain take: a kind that cuts the presenter out of the take draws on a plain take only (#1428). */
437
389
  const MORE_THAN_A_TAKE = ["inserts", "overlays", "layout_windows", "framing", "call", "interview", "presenter_gaze", "end_hold_s", "shots"];
438
- /** Every refusal of `templates`, `template_theme` and `template_sounds` against the run, named by path; empty when they render (D4, D5, D6, D8, D10, A5, A6). */
439
390
  export function templateRefusals(input, kinds = TEMPLATE_KINDS) {
440
391
  if (input.templates === undefined) {
441
- // The edit sound alone needs no templates; it and `false` beside edit_sounds are judged by `editSoundRefusals`.
442
392
  const sounds = input.template_sounds;
443
393
  const named = typeof sounds === "object" && sounds !== null ? Object.keys(sounds) : [];
444
394
  const editOnly = (sounds === false && input.edit_sounds === true) || (named.length > 0 && named.every(beat => beat === "edit"));
445
- // A live shot's flash, light leak or whoosh plays the flash or whoosh sound, which template_sounds names or mutes (#1129).
446
395
  const shotSounds = (input.shots ?? []).some(shot => shot.transition !== undefined && shot.transition !== "cut") &&
447
396
  (sounds === false || named.every(beat => beat === "flash" || beat === "whoosh" || beat === "edit"));
448
- // A call brings its own phone (#857 S5), which the run's theme and sounds style as any template.
449
397
  if (input.call !== undefined)
450
398
  return [];
451
399
  return [...(input.template_theme === undefined ? [] : [{ path: ["template_theme"], message: "template_theme styles templates: add templates or drop it" }]),
@@ -465,10 +413,7 @@ export function templateRefusals(input, kinds = TEMPLATE_KINDS) {
465
413
  const used = new Map(["inserts", "overlays", "layout_windows"].flatMap(field => (input[field] ?? []).map(item => [item.id, field])));
466
414
  const ranged = (items) => (items ?? []).flatMap(item => { const range = layerWordRange(tokens, item); return typeof range === "string" ? [] : [{ item, range }]; });
467
415
  const inserts = ranged(input.inserts), windows = ranged(input.layout_windows);
468
- // A wider request may render narrower when the actor has no such view, so footprints are checked in every framing it may render.
469
416
  const framings = admissionFramings({ ...input, aspect_ratio: aspect });
470
- // An overlay's footprint is its preset's, or the box its place resolves to (#973 S1); a place on a broken chain is refused with the overlays.
471
- // A template's is its kind's rect, or that rect scaled whole into its place (S4); overlays and templates may stand by one another.
472
417
  const scenes = framings.map(framing => {
473
418
  const scene = admissionScene(input, aspect, framing), items = [...input.overlays ?? [], ...templateSceneItems(input, framing, kinds)];
474
419
  return { items, boxes: overlayFootprints(items, aspect, framing, scene), face: scene.face };
@@ -478,7 +423,6 @@ export function templateRefusals(input, kinds = TEMPLATE_KINDS) {
478
423
  return rects.every(rect => rect !== undefined) ? [{ ...entry, rects: rects }] : [];
479
424
  });
480
425
  const items = scenes[0].items, canvas = frameCanvasOf(aspect);
481
- // A place over its anchor is drawn on it by asking, so the pair is no clash.
482
426
  const over = (a, b) => {
483
427
  const place = items.find(item => item.id === a)?.place;
484
428
  return place !== undefined && "side" in place && place.side === "over" && placeAnchorOf(place) === b;
@@ -500,7 +444,6 @@ export function templateRefusals(input, kinds = TEMPLATE_KINDS) {
500
444
  refusals.push({ path: at("kind"), message: switched.off });
501
445
  continue;
502
446
  }
503
- // A kind drawn in one format is refused in any other before money, never moved to it (rule 4); with an image the format follows the image.
504
447
  if (kind.aspects && (input.aspect_ratio === undefined ? input.image !== undefined : !kind.aspects.includes(input.aspect_ratio))) {
505
448
  refusals.push({ path: input.aspect_ratio === undefined ? at("kind") : ["aspect_ratio"], message: `${kind.kind} is drawn in ${kind.aspects.join(" or ")} only: ` +
506
449
  `pass aspect_ratio ${kind.aspects[0]}${input.aspect_ratio === undefined ? " with image" : ""}, or use another template kind` });
@@ -540,7 +483,6 @@ export function templateRefusals(input, kinds = TEMPLATE_KINDS) {
540
483
  const footprints = framings.map(framing => templateFootprint({ kind: item.kind, placement, data: parsed.data }, aspect, kinds, undefined, framing));
541
484
  let rects = footprints.map(footprint => footprint.rect);
542
485
  if (item.place) {
543
- // A placed template is its own drawing scaled whole into the box (#973 S4): over the presenter, never cut to fit, never moved by the captions.
544
486
  const place = item.place, why = placement !== "over" ? "a template takes place over the presenter only (placement over)"
545
487
  : placeByCaptions(place) ? "a template does not stand by the captions: place it by the frame, the face, an overlay or a template"
546
488
  : place.fit === "cover" ? "a template is scaled whole into its box: drop fit cover" : undefined;
@@ -563,7 +505,6 @@ export function templateRefusals(input, kinds = TEMPLATE_KINDS) {
563
505
  const window = windows.find(other => overlaps(other.range, entry.range));
564
506
  if (window)
565
507
  refuse(`overlaps layout window "${window.item.id}": a window reframes the presenter, and a template does not share the frame with it`);
566
- // A beat under an insert or another full frame would play unseen (D6).
567
508
  const hiding = [...inserts.map(other => ({ id: other.item.id, range: other.range })), ...fulls.filter(other => other.index !== entry.index)];
568
509
  for (const beat of entry.beats) {
569
510
  const cover = hiding.find(other => beat.word >= other.range.startWord && beat.word < other.range.coverWord);
@@ -611,4 +552,3 @@ export function templateRefusals(input, kinds = TEMPLATE_KINDS) {
611
552
  }
612
553
  return refusals;
613
554
  }
614
- //# sourceMappingURL=index.js.map
@@ -1,7 +1,5 @@
1
1
  import { z } from "zod";
2
2
  import type { TemplateKind } from "./index.js";
3
- /** How the bar draws and enters (#1119): a card wiped in with a tab, a rule beside the text, a rounded pill with a dot, or the name revealed
4
- * behind a sweeping bar. */
5
3
  export declare const LOWER_THIRD_STYLES: readonly ["clean_bar", "side_rule", "soft_pill", "mask_reveal"];
6
4
  declare const data: z.ZodObject<{
7
5
  name: z.ZodString;
@@ -22,8 +20,6 @@ declare const data: z.ZodObject<{
22
20
  small: "small";
23
21
  }>>;
24
22
  }, z.core.$strict>;
25
- /** A name bar low in the frame, in the caption spot: captions step aside while it shows. */
26
23
  export declare const lowerThird: TemplateKind<typeof data>;
27
- /** Version 1: no style; its footprint is version 2's. */
28
24
  export declare const lowerThirdV1: TemplateKind<typeof data>;
29
25
  export {};
@@ -1,12 +1,9 @@
1
1
  import { z } from "zod";
2
2
  import { frameCanvasOf } from "../ugc-layers.js";
3
3
  import { sizedScale, templateSize } from "./size.js";
4
- /** How the bar draws and enters (#1119): a card wiped in with a tab, a rule beside the text, a rounded pill with a dot, or the name revealed
5
- * behind a sweeping bar. */
6
4
  export const LOWER_THIRD_STYLES = ["clean_bar", "side_rule", "soft_pill", "mask_reveal"];
7
5
  const data = z.object({ name: z.string().min(1).max(28), role: z.string().min(1).max(36).optional(), side: z.enum(["left", "right"]),
8
6
  style: z.enum(LOWER_THIRD_STYLES).optional(), size: templateSize }).strict();
9
- /** A name bar low in the frame, in the caption spot: captions step aside while it shows. */
10
7
  export const lowerThird = {
11
8
  kind: "lower_third",
12
9
  kindVersion: 2,
@@ -26,6 +23,4 @@ export const lowerThird = {
26
23
  },
27
24
  sample: { name: "Maya Chen", role: "Founder, Northwind Dental", side: "left" },
28
25
  };
29
- /** Version 1: no style; its footprint is version 2's. */
30
26
  export const lowerThirdV1 = { ...lowerThird, kindVersion: 1 };
31
- //# sourceMappingURL=lower-third.js.map
@@ -1,9 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import type { TemplateKind } from "./index.js";
3
- /** The title's line at medium on a 1080 short side; the band above the face shrinks it in square and wide frames. */
4
3
  export declare const NOTIFICATION_FONT_PX = 38;
5
- /** Font sizes: the card's height (app, title and body lines with padding), its widest, and how far each card pushed back peeks below the
6
- * one in front (#1119). */
7
4
  export declare const NOTIFICATION_EMS: {
8
5
  readonly height: 3.6;
9
6
  readonly width: 26;
@@ -41,12 +38,9 @@ declare const data: z.ZodObject<{
41
38
  small: "small";
42
39
  }>>;
43
40
  }, z.core.$strict>;
44
- /** The stack's height in font sizes: the front card and the edges of the cards behind it. */
45
41
  export declare const notificationEms: (value: {
46
42
  stack?: readonly unknown[] | undefined;
47
43
  }) => number;
48
- /** A phone notification in the band above the face, centred at the top of every format; more of them stack on top on their beats. */
49
44
  export declare const notification: TemplateKind<typeof data>;
50
- /** Version 1: one card; its footprint is version 2's without a stack. */
51
45
  export declare const notificationV1: TemplateKind<typeof data>;
52
46
  export {};
@@ -2,18 +2,13 @@ import { z } from "zod";
2
2
  import { faceZone, frameCanvasOf } from "../ugc-layers.js";
3
3
  import { CHECKLIST_ICONS } from "./checklist.js";
4
4
  import { sizedScale, templateSize } from "./size.js";
5
- /** The title's line at medium on a 1080 short side; the band above the face shrinks it in square and wide frames. */
6
5
  export const NOTIFICATION_FONT_PX = 38;
7
- /** Font sizes: the card's height (app, title and body lines with padding), its widest, and how far each card pushed back peeks below the
8
- * one in front (#1119). */
9
6
  export const NOTIFICATION_EMS = { height: 3.6, width: 26, peek: 0.45 };
10
7
  const card = z.object({ app: z.string().min(1).max(20).optional(), title: z.string().min(1).max(32), body: z.string().min(1).max(80),
11
8
  icon: z.enum(CHECKLIST_ICONS).optional(), at: z.string().min(1).max(200).optional() }).strict();
12
9
  const data = z.object({ app: z.string().min(1).max(20), title: z.string().min(1).max(32), body: z.string().min(1).max(80),
13
10
  icon: z.enum(CHECKLIST_ICONS).optional(), stack: z.array(card).min(1).max(2).optional(), size: templateSize }).strict();
14
- /** The stack's height in font sizes: the front card and the edges of the cards behind it. */
15
11
  export const notificationEms = (value) => NOTIFICATION_EMS.height + (value.stack?.length ?? 0) * NOTIFICATION_EMS.peek;
16
- /** A phone notification in the band above the face, centred at the top of every format; more of them stack on top on their beats. */
17
12
  export const notification = {
18
13
  kind: "notification",
19
14
  kindVersion: 2,
@@ -36,6 +31,4 @@ export const notification = {
36
31
  sample: { app: "Front Desk", title: "New booking: Maya Chen", body: "Tomorrow at 10:30, teeth cleaning. Booked while you slept.", icon: "chat",
37
32
  stack: [{ app: "Front Desk", title: "New booking: Sam Ortiz", body: "Friday at 9:00, whitening.", icon: "chat", at: "Sam" }] },
38
33
  };
39
- /** Version 1: one card; its footprint is version 2's without a stack. */
40
34
  export const notificationV1 = { ...notification, kindVersion: 1 };
41
- //# sourceMappingURL=notification.js.map