@clipwright/core 0.60.0 → 0.61.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 (587) 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.js +0 -2
  12. package/dist/ad-pause-trim.d.ts +0 -5
  13. package/dist/ad-pause-trim.js +0 -8
  14. package/dist/api-failure.d.ts +0 -44
  15. package/dist/api-failure.js +0 -62
  16. package/dist/aspect.d.ts +0 -29
  17. package/dist/aspect.js +1 -34
  18. package/dist/asset-identity.d.ts +0 -2
  19. package/dist/asset-identity.js +0 -3
  20. package/dist/assets.d.ts +0 -34
  21. package/dist/assets.js +0 -42
  22. package/dist/billing-terms.d.ts +0 -3
  23. package/dist/billing-terms.js +0 -4
  24. package/dist/brand-styles.d.ts +0 -6
  25. package/dist/brand-styles.js +0 -13
  26. package/dist/broll-policy.js +0 -1
  27. package/dist/canvas-fit.d.ts +0 -2
  28. package/dist/canvas-fit.js +0 -4
  29. package/dist/caption-funnel.d.ts +0 -2
  30. package/dist/caption-funnel.js +0 -15
  31. package/dist/caption-geometry.d.ts +0 -6
  32. package/dist/caption-geometry.js +0 -10
  33. package/dist/caption-language.d.ts +0 -3
  34. package/dist/caption-language.js +0 -6
  35. package/dist/contract-dispositions.d.ts +0 -61
  36. package/dist/contract-dispositions.js +3 -96
  37. package/dist/contracts/v1/workflow-brief.d.ts +57 -3
  38. package/dist/contracts/v1/workflow-brief.js +0 -13
  39. package/dist/contracts/v1/workflow-catalog.d.ts +114 -0
  40. package/dist/contracts/v1/workflow-catalog.js +0 -3
  41. package/dist/contracts/v1/workflow-client.d.ts +114 -0
  42. package/dist/contracts/v1/workflow-client.js +0 -1
  43. package/dist/contracts/v1/workflow-dto.js +0 -1
  44. package/dist/contracts/v1/workflow-evidence.js +0 -1
  45. package/dist/contracts/v1/workflow-execution.d.ts +0 -1
  46. package/dist/contracts/v1/workflow-execution.js +0 -4
  47. package/dist/contracts/v1/workflow-next.d.ts +0 -2
  48. package/dist/contracts/v1/workflow-next.js +0 -3
  49. package/dist/contracts/v1/workflow-plan.d.ts +171 -0
  50. package/dist/contracts/v1/workflow-plan.js +0 -1
  51. package/dist/contracts/v1/workflow-primitives.d.ts +0 -1
  52. package/dist/contracts/v1/workflow-primitives.js +0 -2
  53. package/dist/contracts/v1/workflow-run-read.d.ts +0 -1
  54. package/dist/contracts/v1/workflow-run-read.js +0 -3
  55. package/dist/creator-profile.d.ts +0 -30
  56. package/dist/creator-profile.js +0 -45
  57. package/dist/default-actor.js +0 -2
  58. package/dist/design.d.ts +0 -17
  59. package/dist/design.js +0 -18
  60. package/dist/edit-billing.d.ts +0 -6
  61. package/dist/edit-billing.js +0 -10
  62. package/dist/edit-candidate.d.ts +0 -6
  63. package/dist/edit-candidate.js +0 -9
  64. package/dist/edit-document.d.ts +0 -12
  65. package/dist/edit-document.js +0 -15
  66. package/dist/edit-faceless.d.ts +0 -3
  67. package/dist/edit-faceless.js +0 -4
  68. package/dist/edit-long-form.d.ts +0 -13
  69. package/dist/edit-long-form.js +0 -17
  70. package/dist/edit-operations.d.ts +0 -1
  71. package/dist/edit-operations.js +0 -2
  72. package/dist/edit-primitives.d.ts +0 -3
  73. package/dist/edit-primitives.js +0 -5
  74. package/dist/edit-revision.d.ts +0 -4
  75. package/dist/edit-revision.js +0 -6
  76. package/dist/edit-rules.d.ts +0 -3
  77. package/dist/edit-rules.js +0 -9
  78. package/dist/edit-shots.d.ts +45 -5
  79. package/dist/edit-shots.js +7 -11
  80. package/dist/edit-validate.d.ts +0 -10
  81. package/dist/edit-validate.js +0 -14
  82. package/dist/edit.js +0 -3
  83. package/dist/endpoint-notes.d.ts +0 -2
  84. package/dist/endpoint-notes.js +0 -3
  85. package/dist/endpoints.d.ts +0 -11
  86. package/dist/endpoints.js +7 -21
  87. package/dist/errors.d.ts +0 -42
  88. package/dist/errors.js +0 -54
  89. package/dist/explainer-fit.d.ts +0 -7
  90. package/dist/explainer-fit.js +0 -10
  91. package/dist/face-billing.d.ts +0 -9
  92. package/dist/face-billing.js +0 -23
  93. package/dist/face-delivery.d.ts +0 -1
  94. package/dist/face-delivery.js +0 -2
  95. package/dist/faceless-action-shots.d.ts +0 -8
  96. package/dist/faceless-action-shots.js +0 -8
  97. package/dist/faceless-customer-anchors.d.ts +0 -1
  98. package/dist/faceless-customer-anchors.js +0 -2
  99. package/dist/faceless-cut-style.js +0 -1
  100. package/dist/faceless-direction-summary.d.ts +0 -2
  101. package/dist/faceless-direction-summary.js +0 -3
  102. package/dist/faceless-image-placement.d.ts +0 -2
  103. package/dist/faceless-image-placement.js +0 -3
  104. package/dist/faceless-image-qualification.js +0 -2
  105. package/dist/faceless-media-record.d.ts +0 -6
  106. package/dist/faceless-media-record.js +0 -11
  107. package/dist/faceless-price.d.ts +0 -45
  108. package/dist/faceless-price.js +0 -64
  109. package/dist/faceless-public-plan.d.ts +0 -13
  110. package/dist/faceless-public-plan.js +0 -11
  111. package/dist/faceless-public.d.ts +0 -26
  112. package/dist/faceless-public.js +0 -59
  113. package/dist/faceless-short-61.js +0 -1
  114. package/dist/faceless-storyboard-timing.js +0 -1
  115. package/dist/faceless-storyboard-v2-plan.js +0 -1
  116. package/dist/faceless-storyboard-v2-timing.d.ts +0 -4
  117. package/dist/faceless-storyboard-v2-timing.js +0 -3
  118. package/dist/faceless-storyboard-v2.js +0 -1
  119. package/dist/faceless-storyboard.js +0 -1
  120. package/dist/faceless-voices.d.ts +0 -16
  121. package/dist/faceless-voices.js +0 -18
  122. package/dist/feedback.d.ts +0 -4
  123. package/dist/feedback.js +0 -5
  124. package/dist/film-directions.d.ts +0 -2
  125. package/dist/film-directions.js +0 -7
  126. package/dist/film-drafts.d.ts +0 -8
  127. package/dist/film-drafts.js +0 -19
  128. package/dist/film-guide.d.ts +0 -3
  129. package/dist/film-guide.js +0 -6
  130. package/dist/film-styles.d.ts +0 -5
  131. package/dist/film-styles.js +0 -8
  132. package/dist/generation-shot.d.ts +0 -5
  133. package/dist/generation-shot.js +0 -8
  134. package/dist/generations-output.d.ts +0 -2
  135. package/dist/generations-output.js +0 -5
  136. package/dist/generations.d.ts +0 -22
  137. package/dist/generations.js +21 -44
  138. package/dist/idempotency.d.ts +1 -21
  139. package/dist/idempotency.js +8 -29
  140. package/dist/index.d.ts +1 -0
  141. package/dist/index.js +1 -28
  142. package/dist/live-shot-kinds.d.ts +16 -25
  143. package/dist/live-shot-kinds.js +12 -28
  144. package/dist/long-form-pricing.d.ts +0 -5
  145. package/dist/long-form-pricing.js +0 -6
  146. package/dist/long-form-profile.d.ts +0 -3
  147. package/dist/long-form-profile.js +0 -4
  148. package/dist/long-form-revision.d.ts +0 -9
  149. package/dist/long-form-revision.js +0 -11
  150. package/dist/markdown-quote.d.ts +0 -2
  151. package/dist/markdown-quote.js +0 -3
  152. package/dist/mascots.d.ts +0 -5
  153. package/dist/mascots.js +0 -10
  154. package/dist/max-credits.d.ts +0 -1
  155. package/dist/max-credits.js +0 -2
  156. package/dist/mcp-ugc-descriptions.d.ts +0 -2
  157. package/dist/mcp-ugc-descriptions.js +1 -6
  158. package/dist/media-timebase.d.ts +0 -2
  159. package/dist/media-timebase.js +0 -6
  160. package/dist/motion-styles.d.ts +0 -8
  161. package/dist/motion-styles.js +0 -11
  162. package/dist/moves.d.ts +0 -7
  163. package/dist/moves.js +0 -9
  164. package/dist/music.d.ts +0 -5
  165. package/dist/music.js +0 -8
  166. package/dist/naming.d.ts +0 -3
  167. package/dist/naming.js +0 -19
  168. package/dist/openapi.d.ts +0 -13
  169. package/dist/openapi.js +6 -11
  170. package/dist/output-provenance.d.ts +0 -4
  171. package/dist/output-provenance.js +0 -5
  172. package/dist/own-agent-price.d.ts +19 -22
  173. package/dist/own-agent-price.js +30 -25
  174. package/dist/own-agent-runs.d.ts +111 -11
  175. package/dist/own-agent-runs.js +89 -24
  176. package/dist/pacing.d.ts +3 -15
  177. package/dist/pacing.js +18 -18
  178. package/dist/parts-pricing.d.ts +0 -28
  179. package/dist/parts-pricing.js +0 -32
  180. package/dist/post-text.d.ts +0 -2
  181. package/dist/post-text.js +0 -4
  182. package/dist/presenter-beats.d.ts +0 -10
  183. package/dist/presenter-beats.js +0 -14
  184. package/dist/presenter-matte.d.ts +0 -7
  185. package/dist/presenter-matte.js +0 -9
  186. package/dist/presenter-takes.d.ts +0 -3
  187. package/dist/presenter-takes.js +0 -8
  188. package/dist/prices.d.ts +2 -8
  189. package/dist/prices.js +13 -23
  190. package/dist/public-endpoints.d.ts +0 -11
  191. package/dist/public-endpoints.js +0 -14
  192. package/dist/public-responses.d.ts +0 -2
  193. package/dist/public-responses.js +0 -3
  194. package/dist/rate-limit.d.ts +0 -24
  195. package/dist/rate-limit.js +0 -29
  196. package/dist/reference-analysis.d.ts +57 -34
  197. package/dist/reference-analysis.js +0 -69
  198. package/dist/reference-bring.d.ts +33 -0
  199. package/dist/reference-bring.js +28 -0
  200. package/dist/reference-display.d.ts +0 -3
  201. package/dist/reference-display.js +37 -4
  202. package/dist/reference-kinds.d.ts +0 -4
  203. package/dist/reference-kinds.js +0 -6
  204. package/dist/reference-lyrics.d.ts +0 -6
  205. package/dist/reference-lyrics.js +0 -6
  206. package/dist/reference-profile.d.ts +270 -39
  207. package/dist/reference-profile.js +64 -50
  208. package/dist/reference-staging.d.ts +0 -10
  209. package/dist/reference-staging.js +0 -14
  210. package/dist/reference-text-spans.d.ts +0 -4
  211. package/dist/reference-text-spans.js +0 -7
  212. package/dist/reference-voice-over.d.ts +0 -6
  213. package/dist/reference-voice-over.js +0 -7
  214. package/dist/reference-voice.d.ts +0 -7
  215. package/dist/reference-voice.js +0 -12
  216. package/dist/render-backend.d.ts +0 -30
  217. package/dist/render-backend.js +0 -5
  218. package/dist/resolved-timeline.d.ts +0 -4
  219. package/dist/resolved-timeline.js +1 -31
  220. package/dist/run-media.d.ts +0 -1
  221. package/dist/run-media.js +0 -2
  222. package/dist/run-preflight.d.ts +0 -4
  223. package/dist/run-preflight.js +0 -11
  224. package/dist/run-static-warnings.d.ts +0 -8
  225. package/dist/run-static-warnings.js +0 -38
  226. package/dist/runs.d.ts +0 -32
  227. package/dist/runs.js +0 -50
  228. package/dist/scene-bible.d.ts +15 -7
  229. package/dist/scene-bible.js +15 -10
  230. package/dist/scene-graph.d.ts +0 -12
  231. package/dist/scene-graph.js +0 -24
  232. package/dist/scene-place.d.ts +0 -25
  233. package/dist/scene-place.js +0 -24
  234. package/dist/scene-proposal.d.ts +0 -3
  235. package/dist/scene-proposal.js +0 -9
  236. package/dist/script-integrity.d.ts +0 -6
  237. package/dist/script-integrity.js +0 -8
  238. package/dist/script-voice.d.ts +0 -7
  239. package/dist/script-voice.js +0 -16
  240. package/dist/semantic-inserts.d.ts +0 -7
  241. package/dist/semantic-inserts.js +0 -10
  242. package/dist/skill-theme-explainer.js +0 -5
  243. package/dist/skill-theme.d.ts +0 -13
  244. package/dist/skill-theme.js +0 -25
  245. package/dist/skills.d.ts +22 -86
  246. package/dist/skills.js +21 -167
  247. package/dist/speech-rhythm-contract.js +0 -1
  248. package/dist/speech-rhythm.d.ts +0 -4
  249. package/dist/speech-rhythm.js +0 -2
  250. package/dist/templates/backdrop.d.ts +0 -3
  251. package/dist/templates/backdrop.js +0 -5
  252. package/dist/templates/callout.d.ts +0 -4
  253. package/dist/templates/callout.js +0 -6
  254. package/dist/templates/chart.d.ts +0 -4
  255. package/dist/templates/chart.js +0 -6
  256. package/dist/templates/chat-window.d.ts +0 -8
  257. package/dist/templates/chat-window.js +0 -10
  258. package/dist/templates/checklist.d.ts +0 -3
  259. package/dist/templates/checklist.js +0 -6
  260. package/dist/templates/comment-cta.d.ts +0 -14
  261. package/dist/templates/comment-cta.js +0 -19
  262. package/dist/templates/compare.d.ts +0 -6
  263. package/dist/templates/compare.js +0 -7
  264. package/dist/templates/cover-story.d.ts +0 -1
  265. package/dist/templates/cover-story.js +0 -3
  266. package/dist/templates/end-card.d.ts +0 -2
  267. package/dist/templates/end-card.js +0 -3
  268. package/dist/templates/hand-title.d.ts +0 -5
  269. package/dist/templates/hand-title.js +0 -9
  270. package/dist/templates/index.d.ts +0 -57
  271. package/dist/templates/index.js +0 -60
  272. package/dist/templates/lower-third.d.ts +0 -4
  273. package/dist/templates/lower-third.js +0 -5
  274. package/dist/templates/notification.d.ts +0 -6
  275. package/dist/templates/notification.js +0 -7
  276. package/dist/templates/phone-call.d.ts +0 -2
  277. package/dist/templates/phone-call.js +0 -6
  278. package/dist/templates/phone-screen.d.ts +0 -5
  279. package/dist/templates/phone-screen.js +0 -7
  280. package/dist/templates/pointer-chips.d.ts +0 -4
  281. package/dist/templates/pointer-chips.js +0 -6
  282. package/dist/templates/progress.d.ts +0 -3
  283. package/dist/templates/progress.js +0 -5
  284. package/dist/templates/quote.d.ts +0 -3
  285. package/dist/templates/quote.js +0 -4
  286. package/dist/templates/race.d.ts +0 -5
  287. package/dist/templates/race.js +0 -7
  288. package/dist/templates/rating.d.ts +0 -3
  289. package/dist/templates/rating.js +0 -5
  290. package/dist/templates/series-frame.d.ts +0 -16
  291. package/dist/templates/series-frame.js +0 -19
  292. package/dist/templates/size.d.ts +0 -7
  293. package/dist/templates/size.js +0 -8
  294. package/dist/templates/slot.d.ts +0 -2
  295. package/dist/templates/slot.js +0 -2
  296. package/dist/templates/sounds.d.ts +0 -12
  297. package/dist/templates/sounds.js +0 -16
  298. package/dist/templates/stat.d.ts +0 -3
  299. package/dist/templates/stat.js +0 -5
  300. package/dist/templates/tag.d.ts +0 -3
  301. package/dist/templates/tag.js +0 -5
  302. package/dist/templates/terminal.d.ts +0 -6
  303. package/dist/templates/terminal.js +0 -8
  304. package/dist/templates/theme.d.ts +0 -7
  305. package/dist/templates/theme.js +0 -9
  306. package/dist/templates/title-card.d.ts +0 -3
  307. package/dist/templates/title-card.js +0 -5
  308. package/dist/templates/video-grid.d.ts +0 -5
  309. package/dist/templates/video-grid.js +0 -8
  310. package/dist/templates/word-fill.d.ts +0 -3
  311. package/dist/templates/word-fill.js +0 -4
  312. package/dist/templates/word-title.d.ts +0 -2
  313. package/dist/templates/word-title.js +0 -4
  314. package/dist/trend-niches.d.ts +0 -11
  315. package/dist/trend-niches.js +0 -16
  316. package/dist/trend-search.d.ts +0 -66
  317. package/dist/trend-search.js +0 -70
  318. package/dist/tts-backend.d.ts +0 -19
  319. package/dist/tts-backend.js +0 -7
  320. package/dist/ugc-call.d.ts +0 -16
  321. package/dist/ugc-call.js +0 -21
  322. package/dist/ugc-delivery.d.ts +0 -2
  323. package/dist/ugc-delivery.js +0 -4
  324. package/dist/ugc-framing.d.ts +0 -4
  325. package/dist/ugc-framing.js +0 -6
  326. package/dist/ugc-interview.d.ts +0 -18
  327. package/dist/ugc-interview.js +0 -24
  328. package/dist/ugc-layers.d.ts +0 -39
  329. package/dist/ugc-layers.js +0 -39
  330. package/dist/ugc-scenes.d.ts +0 -2
  331. package/dist/ugc-scenes.js +0 -5
  332. package/dist/ugc-video-media.d.ts +0 -5
  333. package/dist/ugc-video-media.js +0 -7
  334. package/dist/uploads.d.ts +0 -14
  335. package/dist/uploads.js +0 -17
  336. package/dist/vendor-response.d.ts +0 -19
  337. package/dist/vendor-response.js +0 -22
  338. package/dist/video-size.d.ts +0 -4
  339. package/dist/video-size.js +0 -7
  340. package/dist/voice-admission.d.ts +0 -11
  341. package/dist/voice-admission.js +0 -13
  342. package/dist/voice-catalog-data.d.ts +0 -2
  343. package/dist/voice-catalog-data.js +0 -3
  344. package/dist/voice-catalog.d.ts +0 -6
  345. package/dist/voice-catalog.js +0 -8
  346. package/dist/voice-listing.d.ts +0 -6
  347. package/dist/voice-listing.js +0 -14
  348. package/dist/voice-pace.d.ts +0 -4
  349. package/dist/voice-pace.js +0 -7
  350. package/dist/voice-preview-approval.js +0 -1
  351. package/dist/voices.d.ts +4 -69
  352. package/dist/voices.js +3 -88
  353. package/dist/workflows/catalog.d.ts +0 -2
  354. package/dist/workflows/catalog.js +0 -4
  355. package/dist/workflows/film-directions.d.ts +0 -3
  356. package/dist/workflows/film-directions.js +0 -4
  357. package/dist/workflows/index.js +0 -1
  358. package/dist/workflows/methods/faceless-explainer.d.ts +31 -0
  359. package/dist/workflows/methods/faceless-explainer.js +0 -1
  360. package/dist/workflows/methods/kinetic-launch.d.ts +62 -1
  361. package/dist/workflows/methods/kinetic-launch.js +0 -2
  362. package/dist/workflows/methods/product-image-story.d.ts +31 -0
  363. package/dist/workflows/methods/product-image-story.js +0 -1
  364. package/dist/workflows/methods/reference-remake.d.ts +31 -0
  365. package/dist/workflows/methods/reference-remake.js +0 -1
  366. package/dist/workflows/methods/shared.d.ts +31 -1
  367. package/dist/workflows/methods/shared.js +0 -3
  368. package/dist/workflows/methods/ugc-faq-answer.d.ts +31 -0
  369. package/dist/workflows/methods/ugc-faq-answer.js +0 -1
  370. package/dist/workflows/methods/ugc-product-intro.d.ts +31 -0
  371. package/dist/workflows/methods/ugc-product-intro.js +0 -1
  372. package/dist/workflows/methods/website-proof-demo.d.ts +62 -1
  373. package/dist/workflows/methods/website-proof-demo.js +0 -2
  374. package/dist/workflows/motion-director.d.ts +0 -11
  375. package/dist/workflows/motion-director.js +0 -11
  376. package/dist/workflows/product-references.js +0 -1
  377. package/dist/workflows/reference-remake.d.ts +114 -17
  378. package/dist/workflows/reference-remake.js +0 -167
  379. package/dist/workflows/remake-chooser.d.ts +0 -6
  380. package/dist/workflows/remake-chooser.js +0 -4
  381. package/dist/workflows/remake-motion.d.ts +0 -16
  382. package/dist/workflows/remake-motion.js +0 -19
  383. package/dist/workflows/validate.d.ts +0 -1
  384. package/dist/workflows/validate.js +0 -5
  385. package/dist/workflows.js +0 -1
  386. package/package.json +1 -1
  387. package/dist/account-actors.js.map +0 -1
  388. package/dist/account.js.map +0 -1
  389. package/dist/actor-bounds.js.map +0 -1
  390. package/dist/actor-qualities.js.map +0 -1
  391. package/dist/actors.js.map +0 -1
  392. package/dist/ad-guide.js.map +0 -1
  393. package/dist/ad-pause-trim.js.map +0 -1
  394. package/dist/api-failure.js.map +0 -1
  395. package/dist/aspect.js.map +0 -1
  396. package/dist/asset-identity.js.map +0 -1
  397. package/dist/assets.js.map +0 -1
  398. package/dist/billing-terms.js.map +0 -1
  399. package/dist/brand-styles.js.map +0 -1
  400. package/dist/broll-policy.js.map +0 -1
  401. package/dist/canvas-fit.js.map +0 -1
  402. package/dist/caption-funnel.js.map +0 -1
  403. package/dist/caption-geometry.js.map +0 -1
  404. package/dist/caption-language.js.map +0 -1
  405. package/dist/contract-dispositions.js.map +0 -1
  406. package/dist/contracts/v1/workflow-brief.js.map +0 -1
  407. package/dist/contracts/v1/workflow-catalog.js.map +0 -1
  408. package/dist/contracts/v1/workflow-client.js.map +0 -1
  409. package/dist/contracts/v1/workflow-dto.js.map +0 -1
  410. package/dist/contracts/v1/workflow-evidence.js.map +0 -1
  411. package/dist/contracts/v1/workflow-execution.js.map +0 -1
  412. package/dist/contracts/v1/workflow-next.js.map +0 -1
  413. package/dist/contracts/v1/workflow-plan.js.map +0 -1
  414. package/dist/contracts/v1/workflow-primitives.js.map +0 -1
  415. package/dist/contracts/v1/workflow-run-read.js.map +0 -1
  416. package/dist/creator-profile.js.map +0 -1
  417. package/dist/default-actor.js.map +0 -1
  418. package/dist/design.js.map +0 -1
  419. package/dist/edit-billing.js.map +0 -1
  420. package/dist/edit-candidate.js.map +0 -1
  421. package/dist/edit-document.js.map +0 -1
  422. package/dist/edit-faceless.js.map +0 -1
  423. package/dist/edit-long-form.js.map +0 -1
  424. package/dist/edit-operations.js.map +0 -1
  425. package/dist/edit-primitives.js.map +0 -1
  426. package/dist/edit-revision.js.map +0 -1
  427. package/dist/edit-rules.js.map +0 -1
  428. package/dist/edit-shots.js.map +0 -1
  429. package/dist/edit-validate.js.map +0 -1
  430. package/dist/edit.js.map +0 -1
  431. package/dist/endpoint-notes.js.map +0 -1
  432. package/dist/endpoints.js.map +0 -1
  433. package/dist/errors.js.map +0 -1
  434. package/dist/explainer-fit.js.map +0 -1
  435. package/dist/face-billing.js.map +0 -1
  436. package/dist/face-delivery.js.map +0 -1
  437. package/dist/faceless-action-shots.js.map +0 -1
  438. package/dist/faceless-customer-anchors.js.map +0 -1
  439. package/dist/faceless-cut-style.js.map +0 -1
  440. package/dist/faceless-direction-summary.js.map +0 -1
  441. package/dist/faceless-image-placement.js.map +0 -1
  442. package/dist/faceless-image-qualification.js.map +0 -1
  443. package/dist/faceless-media-record.js.map +0 -1
  444. package/dist/faceless-price.js.map +0 -1
  445. package/dist/faceless-public-plan.js.map +0 -1
  446. package/dist/faceless-public.js.map +0 -1
  447. package/dist/faceless-short-61.js.map +0 -1
  448. package/dist/faceless-storyboard-timing.js.map +0 -1
  449. package/dist/faceless-storyboard-v2-plan.js.map +0 -1
  450. package/dist/faceless-storyboard-v2-timing.js.map +0 -1
  451. package/dist/faceless-storyboard-v2.js.map +0 -1
  452. package/dist/faceless-storyboard.js.map +0 -1
  453. package/dist/faceless-voices.js.map +0 -1
  454. package/dist/feedback.js.map +0 -1
  455. package/dist/film-directions.js.map +0 -1
  456. package/dist/film-drafts.js.map +0 -1
  457. package/dist/film-guide.js.map +0 -1
  458. package/dist/film-styles.js.map +0 -1
  459. package/dist/generation-shot.js.map +0 -1
  460. package/dist/generations-output.js.map +0 -1
  461. package/dist/generations.js.map +0 -1
  462. package/dist/idempotency.js.map +0 -1
  463. package/dist/index.js.map +0 -1
  464. package/dist/live-shot-kinds.js.map +0 -1
  465. package/dist/long-form-pricing.js.map +0 -1
  466. package/dist/long-form-profile.js.map +0 -1
  467. package/dist/long-form-revision.js.map +0 -1
  468. package/dist/markdown-quote.js.map +0 -1
  469. package/dist/mascots.js.map +0 -1
  470. package/dist/max-credits.js.map +0 -1
  471. package/dist/mcp-ugc-descriptions.js.map +0 -1
  472. package/dist/media-timebase.js.map +0 -1
  473. package/dist/motion-styles.js.map +0 -1
  474. package/dist/moves.js.map +0 -1
  475. package/dist/music.js.map +0 -1
  476. package/dist/naming.js.map +0 -1
  477. package/dist/openapi.js.map +0 -1
  478. package/dist/output-provenance.js.map +0 -1
  479. package/dist/own-agent-price.js.map +0 -1
  480. package/dist/own-agent-runs.js.map +0 -1
  481. package/dist/pacing.js.map +0 -1
  482. package/dist/parts-pricing.js.map +0 -1
  483. package/dist/post-text.js.map +0 -1
  484. package/dist/presenter-beats.js.map +0 -1
  485. package/dist/presenter-matte.js.map +0 -1
  486. package/dist/presenter-takes.js.map +0 -1
  487. package/dist/prices.js.map +0 -1
  488. package/dist/public-endpoints.js.map +0 -1
  489. package/dist/public-responses.js.map +0 -1
  490. package/dist/rate-limit.js.map +0 -1
  491. package/dist/reference-analysis.js.map +0 -1
  492. package/dist/reference-display.js.map +0 -1
  493. package/dist/reference-kinds.js.map +0 -1
  494. package/dist/reference-lyrics.js.map +0 -1
  495. package/dist/reference-profile.js.map +0 -1
  496. package/dist/reference-staging.js.map +0 -1
  497. package/dist/reference-text-spans.js.map +0 -1
  498. package/dist/reference-voice-over.js.map +0 -1
  499. package/dist/reference-voice.js.map +0 -1
  500. package/dist/render-backend.js.map +0 -1
  501. package/dist/resolved-timeline.js.map +0 -1
  502. package/dist/run-media.js.map +0 -1
  503. package/dist/run-preflight.js.map +0 -1
  504. package/dist/run-static-warnings.js.map +0 -1
  505. package/dist/runs.js.map +0 -1
  506. package/dist/scene-bible.js.map +0 -1
  507. package/dist/scene-graph.js.map +0 -1
  508. package/dist/scene-place.js.map +0 -1
  509. package/dist/scene-proposal.js.map +0 -1
  510. package/dist/script-integrity.js.map +0 -1
  511. package/dist/script-voice.js.map +0 -1
  512. package/dist/semantic-inserts.js.map +0 -1
  513. package/dist/skill-theme-explainer.js.map +0 -1
  514. package/dist/skill-theme.js.map +0 -1
  515. package/dist/skills.js.map +0 -1
  516. package/dist/speech-rhythm-contract.js.map +0 -1
  517. package/dist/speech-rhythm.js.map +0 -1
  518. package/dist/templates/backdrop.js.map +0 -1
  519. package/dist/templates/callout.js.map +0 -1
  520. package/dist/templates/chart.js.map +0 -1
  521. package/dist/templates/chat-window.js.map +0 -1
  522. package/dist/templates/checklist.js.map +0 -1
  523. package/dist/templates/comment-cta.js.map +0 -1
  524. package/dist/templates/compare.js.map +0 -1
  525. package/dist/templates/cover-story.js.map +0 -1
  526. package/dist/templates/end-card.js.map +0 -1
  527. package/dist/templates/hand-title.js.map +0 -1
  528. package/dist/templates/index.js.map +0 -1
  529. package/dist/templates/lower-third.js.map +0 -1
  530. package/dist/templates/notification.js.map +0 -1
  531. package/dist/templates/phone-call.js.map +0 -1
  532. package/dist/templates/phone-screen.js.map +0 -1
  533. package/dist/templates/pointer-chips.js.map +0 -1
  534. package/dist/templates/progress.js.map +0 -1
  535. package/dist/templates/quote.js.map +0 -1
  536. package/dist/templates/race.js.map +0 -1
  537. package/dist/templates/rating.js.map +0 -1
  538. package/dist/templates/series-frame.js.map +0 -1
  539. package/dist/templates/size.js.map +0 -1
  540. package/dist/templates/slot.js.map +0 -1
  541. package/dist/templates/sounds.js.map +0 -1
  542. package/dist/templates/stat.js.map +0 -1
  543. package/dist/templates/tag.js.map +0 -1
  544. package/dist/templates/terminal.js.map +0 -1
  545. package/dist/templates/theme.js.map +0 -1
  546. package/dist/templates/title-card.js.map +0 -1
  547. package/dist/templates/video-grid.js.map +0 -1
  548. package/dist/templates/word-fill.js.map +0 -1
  549. package/dist/templates/word-title.js.map +0 -1
  550. package/dist/trend-niches.js.map +0 -1
  551. package/dist/trend-search.js.map +0 -1
  552. package/dist/tts-backend.js.map +0 -1
  553. package/dist/ugc-call.js.map +0 -1
  554. package/dist/ugc-delivery.js.map +0 -1
  555. package/dist/ugc-framing.js.map +0 -1
  556. package/dist/ugc-interview.js.map +0 -1
  557. package/dist/ugc-layers.js.map +0 -1
  558. package/dist/ugc-scenes.js.map +0 -1
  559. package/dist/ugc-video-media.js.map +0 -1
  560. package/dist/uploads.js.map +0 -1
  561. package/dist/vendor-response.js.map +0 -1
  562. package/dist/video-size.js.map +0 -1
  563. package/dist/voice-admission.js.map +0 -1
  564. package/dist/voice-catalog-data.js.map +0 -1
  565. package/dist/voice-catalog.js.map +0 -1
  566. package/dist/voice-listing.js.map +0 -1
  567. package/dist/voice-pace.js.map +0 -1
  568. package/dist/voice-preview-approval.js.map +0 -1
  569. package/dist/voices.js.map +0 -1
  570. package/dist/workflows/catalog.js.map +0 -1
  571. package/dist/workflows/film-directions.js.map +0 -1
  572. package/dist/workflows/index.js.map +0 -1
  573. package/dist/workflows/methods/faceless-explainer.js.map +0 -1
  574. package/dist/workflows/methods/kinetic-launch.js.map +0 -1
  575. package/dist/workflows/methods/product-image-story.js.map +0 -1
  576. package/dist/workflows/methods/reference-remake.js.map +0 -1
  577. package/dist/workflows/methods/shared.js.map +0 -1
  578. package/dist/workflows/methods/ugc-faq-answer.js.map +0 -1
  579. package/dist/workflows/methods/ugc-product-intro.js.map +0 -1
  580. package/dist/workflows/methods/website-proof-demo.js.map +0 -1
  581. package/dist/workflows/motion-director.js.map +0 -1
  582. package/dist/workflows/product-references.js.map +0 -1
  583. package/dist/workflows/reference-remake.js.map +0 -1
  584. package/dist/workflows/remake-chooser.js.map +0 -1
  585. package/dist/workflows/remake-motion.js.map +0 -1
  586. package/dist/workflows/validate.js.map +0 -1
  587. package/dist/workflows.js.map +0 -1
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- /** What outlives a signed URL: where the object is and what it measures. No URL and no expiry. */
3
2
  export declare const storedObject: z.ZodObject<{
4
3
  kind: z.ZodEnum<{
5
4
  audio: "audio";
@@ -15,9 +14,7 @@ export declare const storedObject: z.ZodObject<{
15
14
  duration_sec: z.ZodNullable<z.ZodNumber>;
16
15
  }, z.core.$strict>;
17
16
  export type StoredObject = z.infer<typeof storedObject>;
18
- /** The looks a faceless cut can take. */
19
17
  export declare const FACELESS_TRANSITION_LOOKS: readonly ["flash", "light_leak"];
20
- /** The cut transitions a run drew: the look, and the shots whose cut in it falls on. */
21
18
  export declare const facelessRecordTransitions: z.ZodObject<{
22
19
  look: z.ZodEnum<{
23
20
  flash: "flash";
@@ -26,7 +23,6 @@ export declare const facelessRecordTransitions: z.ZodObject<{
26
23
  at: z.ZodArray<z.ZodString>;
27
24
  }, z.core.$strict>;
28
25
  export type FacelessRecordTransitions = z.infer<typeof facelessRecordTransitions>;
29
- /** Cut transitions as a revision asks for them: every scene change, or the cuts into the named shots. */
30
26
  export declare const facelessShotTransitions: z.ZodObject<{
31
27
  look: z.ZodEnum<{
32
28
  flash: "flash";
@@ -35,7 +31,6 @@ export declare const facelessShotTransitions: z.ZodObject<{
35
31
  at: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"scene_changes">, z.ZodArray<z.ZodString>]>>;
36
32
  }, z.core.$strict>;
37
33
  export type FacelessShotTransitions = z.infer<typeof facelessShotTransitions>;
38
- /** The sounds a run chose by beat (#1067), `{}` when muted; a run that chose nothing records none and plays the looks' defaults. */
39
34
  export declare const facelessRecordSounds: z.ZodObject<{
40
35
  flash: z.ZodOptional<z.ZodEnum<{
41
36
  glitch: "glitch";
@@ -71,7 +66,6 @@ export declare const facelessRecordSounds: z.ZodObject<{
71
66
  }>>;
72
67
  }, z.core.$strict>;
73
68
  export type FacelessRecordSounds = z.infer<typeof facelessRecordSounds>;
74
- /** The media a faceless run was made from, written by the run beside the plan. */
75
69
  export declare const facelessMediaRecord: z.ZodObject<{
76
70
  v: z.ZodLiteral<1>;
77
71
  shots: z.ZodArray<z.ZodObject<{
@@ -4,46 +4,35 @@ import { EDIT_MAX_SHOTS } from "./edit-rules.js";
4
4
  import { MAX_TEMPLATE_MEDIA } from "./templates/index.js";
5
5
  import { TEMPLATE_SOUNDS } from "./templates/sounds.js";
6
6
  const size = z.number().int().positive().safe();
7
- /** What outlives a signed URL: where the object is and what it measures. No URL and no expiry. */
8
7
  export const storedObject = z.strictObject({
9
8
  kind: z.enum(["image", "video", "audio"]),
10
9
  key: z.string().min(1).max(1024),
11
10
  sha256: z.string().regex(/^[a-f0-9]{64}$/),
12
- /** New marked bytes keep their retained pre-marking identity; historical records omit it. */
13
11
  content_sha256: z.string().regex(/^[a-f0-9]{64}$/).optional(),
14
12
  bytes: size,
15
13
  width: size.nullable(), height: size.nullable(),
16
14
  duration_sec: z.number().positive().nullable(),
17
15
  });
18
- /** The looks a faceless cut can take. */
19
16
  export const FACELESS_TRANSITION_LOOKS = ["flash", "light_leak"];
20
- /** The cut transitions a run drew: the look, and the shots whose cut in it falls on. */
21
17
  export const facelessRecordTransitions = z.strictObject({
22
18
  look: z.enum(FACELESS_TRANSITION_LOOKS),
23
19
  at: z.array(shotId).min(1).max(EDIT_MAX_SHOTS),
24
20
  });
25
- /** Cut transitions as a revision asks for them: every scene change, or the cuts into the named shots. */
26
21
  export const facelessShotTransitions = facelessRecordTransitions.extend({
27
22
  at: z.union([z.literal("scene_changes"), facelessRecordTransitions.shape.at]).default("scene_changes"),
28
23
  });
29
- /** The sounds a run chose by beat (#1067), `{}` when muted; a run that chose nothing records none and plays the looks' defaults. */
30
24
  export const facelessRecordSounds = z.strictObject({ flash: z.enum(TEMPLATE_SOUNDS.flash.names).optional(),
31
25
  whoosh: z.enum(TEMPLATE_SOUNDS.whoosh.names).optional(), edit: z.enum(TEMPLATE_SOUNDS.edit.names).optional() });
32
- /** The media a faceless run was made from, written by the run beside the plan. */
33
26
  export const facelessMediaRecord = z.strictObject({
34
27
  v: z.literal(1),
35
28
  shots: z.array(z.strictObject({ id: shotId, source: z.enum(["generated", "customer"]),
36
29
  motion: z.enum(["PAN_UP", "PAN_DOWN", "ZOOM_IN", "ZOOM_OUT"]).nullable(), media: storedObject })),
37
- /** The picture under shot 0, whose own media is the clip made from it. */
38
30
  opener_still: storedObject,
39
31
  references: z.array(storedObject.extend({ role: z.enum(["style", "character", "product"]), from: z.enum(["customer", "lead_picture"]) })),
40
32
  narration: storedObject,
41
- /** The customer's pictures and clips a template slot showed, staged for the render; absent on a run with none. As many as admission pins. */
42
33
  template_media: z.array(z.strictObject({ template_id: z.string().min(1).max(64), slot: z.string().min(1).max(32), media: storedObject }))
43
34
  .max(MAX_TEMPLATE_MEDIA).optional(),
44
35
  settings: z.strictObject({ captions: z.boolean(), character_reference: z.boolean(), character_details: z.string().nullable(),
45
36
  image_model: z.string(), voice: z.string().nullable(), lambda_site_sha256: z.string(),
46
- /** Present only on a run drawn with transitions: a revision keeps them unless its document says otherwise. */
47
37
  transitions: facelessRecordTransitions.optional(), sounds: facelessRecordSounds.optional() }),
48
38
  });
49
- //# sourceMappingURL=faceless-media-record.js.map
@@ -1,32 +1,20 @@
1
1
  import { z } from "zod";
2
2
  import { type MusicRequest } from "./music.js";
3
- /** The tariff new faceless runs are admitted on (#800); runs admitted on `faceless-image-i2v-v1` keep it. */
4
3
  export declare const FACELESS_TARIFF_ID: "faceless-parts-v1";
5
4
  export declare const FACELESS_LEGACY_TARIFF_ID: "faceless-image-i2v-v1";
6
- /** A directed video's tariff (#1573): its level, live seconds and direction line, frozen at admission. */
7
5
  export declare const FACELESS_DIRECTED_TARIFF_ID: "faceless-parts-v2";
8
6
  export declare const FACELESS_TARIFF_IDS: readonly ["faceless-parts-v1", "faceless-image-i2v-v1", "faceless-parts-v2"];
9
- /** A picture video ends with its speech and runs at least 25 s. */
10
7
  export declare const FACELESS_MIN_OUTPUT_FRAMES = 625;
11
- /** An explainer runs to its last word and 0.8 s past it, however short; one second is the shortest its composition draws (#1216). */
12
8
  export declare const FACELESS_EXPLAINER_MIN_OUTPUT_FRAMES = 25;
13
- /** The length a caller selects, in seconds. */
14
9
  export declare const FACELESS_MIN_SELECTED_SECONDS = 30;
15
10
  export declare const FACELESS_MAX_SELECTED_SECONDS = 90;
16
- /** The pre-speech estimate floor keeps the 4 s offset the 26 s floor had from the former 30 s minimum. */
17
11
  export declare const FACELESS_MIN_ESTIMATE_SEC = 21;
18
- /** A script is admitted when its estimate fits the selection plus 5 s; a video longer than that is named in `warnings[]`. */
19
12
  export declare const facelessMaxEstimateFrames: (selectedFrames: number) => number;
20
- /** A video is planned within a quarter past its selection, at most 90 s; the charge stays within the selection's quote. */
21
13
  export declare const facelessMaxOutputFrames: (selectedFrames: number) => number;
22
- /** The most characters one narration speaks, and a pace below every voice's: the slowest measured one reads 13.87 a second. */
23
14
  export declare const FACELESS_SPEECH_MAX_CHARACTERS = 2500;
24
15
  export declare const FACELESS_SLOWEST_CHARACTERS_PER_SECOND = 13;
25
- /** A narration longer than its plan is delivered at its length: the longest one at that pace, a 5 s lead, whole seconds. */
26
16
  export declare const FACELESS_MAX_OUTPUT_FRAMES: number;
27
- /** Pictures a public run may generate, the opener's first frame included. */
28
17
  export declare const FACELESS_PUBLIC_MAX_GENERATED_IMAGES = 31;
29
- /** One picture per two selected seconds plus four, never past the runtime's ceiling: the run's beat limit and the admission cap read it. */
30
18
  export declare const facelessMaxGeneratedImages: (selectedFrames: number, imageCeiling?: number) => number;
31
19
  export declare const facelessQuote: z.ZodObject<{
32
20
  outputFrames: z.ZodNumber;
@@ -58,7 +46,6 @@ export declare const facelessQuote: z.ZodObject<{
58
46
  directionCredits: z.ZodOptional<z.ZodNumber>;
59
47
  }, z.core.$strict>;
60
48
  export type FacelessQuote = z.infer<typeof facelessQuote>;
61
- /** A run's bill names the delivered frames, which may pass the selection or, on an explainer, fall short of 25 s; its total stays within the quote. */
62
49
  export declare const facelessRunBilling: z.ZodObject<{
63
50
  baseCredits: z.ZodNumber;
64
51
  openerCredits: z.ZodNumber;
@@ -88,46 +75,30 @@ export declare const facelessRunBilling: z.ZodObject<{
88
75
  directionCredits: z.ZodOptional<z.ZodNumber>;
89
76
  outputFrames: z.ZodNumber;
90
77
  }, z.core.$strict>;
91
- /** The legacy tariff's numbers: base credits per 1500 frames (a minute at 25 fps), the base's floor, and the opening clip. */
92
78
  export declare const FACELESS_LEGACY_CREDITS_PER_1500_FRAMES = 180;
93
79
  export declare const FACELESS_LEGACY_MIN_BASE_CREDITS = 200;
94
80
  export declare const FACELESS_LEGACY_OPENER_CREDITS = 150;
95
- /** The parts tariff: a generated picture, the opening clip, */
96
- /** and every second of the video for story, voice, checks and render, at least 50 for a delivered video. */
97
81
  export declare const FACELESS_IMAGE_CREDITS = 7;
98
82
  export declare const FACELESS_OPENER_CREDITS = 49;
99
83
  export declare const FACELESS_CREDITS_PER_1500_FRAMES: number;
100
84
  export declare const FACELESS_MIN_BASE_CREDITS = 50;
101
- /** An action shot (#1113): its seconds at make_ugc's shot rate, at most ten a run (#1192) and five seconds each. */
102
85
  export declare const FACELESS_SHOT_CREDITS_PER_SECOND = 30;
103
86
  export declare const FACELESS_MAX_SHOTS = 10;
104
87
  export declare const FACELESS_SHOT_MAX_SEC = 5;
105
- /** The largest dollar cap a faceless run may be configured with; a larger env value turns faceless off. Ten 5 s shots on a 90 s run need $8.47. */
106
88
  export declare const FACELESS_MAX_CAP_USD_MICROS = 10000000;
107
- /** The seconds a run with `shots` action shots may be charged for, every shot at its longest. */
108
- /** Faceless scenes have their own switch beside make_ugc's (#1113): their model calls join the faceless cost journal first. */
109
89
  export declare const facelessScenesEnabled: (env: Record<string, string | undefined>) => boolean;
110
90
  export declare const facelessShotSecondsCeiling: (shots: number) => number;
111
- /** The parts price of `images` generated pictures in `outputFrames` frames: the production seconds rounded up once. */
112
91
  export declare function facelessPartsBase(images: number, outputFrames: number): number;
113
- /** The explainer format (#1216) is off unless switched on: it draws its scenes and makes no opening clip. */
114
92
  export declare const facelessExplainerEnabled: (env: Record<string, string | undefined>) => boolean;
115
- /** The explainer hero's pose set: one generated picture a pose, made when the run names a character. */
116
93
  export declare const FACELESS_EXPLAINER_POSE_PICTURES = 9;
117
- /** An explainer scene drawn for its video: its price, the most a video draws, and their switch; charged only when the delivered video draws it. */
118
94
  export declare const EXPLAINER_BEAT_CREDITS = 65;
119
95
  export declare const EXPLAINER_MAX_AUTHORED_BEATS = 8;
120
96
  export declare const explainerBeatsEnabled: (env: Record<string, string | undefined>) => boolean;
121
- /** An explainer's pictures of the things its script names (#1277): one for each sentence naming a thing in a list of things, at most 12, none
122
- * for steps through software; each a generated picture once shown. */
123
97
  export declare const EXPLAINER_MAX_OBJECT_PICTURES = 12;
124
98
  export declare const explainerObjectCeiling: (script: string) => number;
125
- /** A drawn explainer film (#1291): one price for a film up to 60 s, and each second past it; its hero's poses are priced as pictures. */
126
99
  export declare const EXPLAINER_FILM_CREDITS = 500;
127
100
  export declare const EXPLAINER_FILM_INCLUDED_SECONDS = 60;
128
101
  export declare const EXPLAINER_FILM_CREDITS_PER_EXTRA_SECOND = 8;
129
- /** The drawn-film tariffs and their film price: up to the included seconds, then each second past them. A snapshot names its tariff, so a
130
- * price change is a new tariff: a run admitted at the old price settles at it. */
131
102
  export declare const SKILL_FILM_TARIFFS: {
132
103
  readonly "skill-explainer-v1": {
133
104
  readonly filmCredits: 500;
@@ -150,7 +121,6 @@ export type SkillFilmTariff = keyof typeof SKILL_FILM_TARIFFS;
150
121
  export declare const isSkillFilmTariff: (value: unknown) => value is SkillFilmTariff;
151
122
  export declare const skillFilmCredits: (tariff: SkillFilmTariff, outputFrames: number) => number;
152
123
  export declare const explainerFilmCredits: (outputFrames: number) => number;
153
- /** The explainer's two levels a customer picks by name (#1291 F4): each freezes its film tariff at admission; omitted is `standard`. */
154
124
  export declare const EXPLAINER_TIERS: readonly ["standard", "pro"];
155
125
  export type ExplainerTier = (typeof EXPLAINER_TIERS)[number];
156
126
  export declare const EXPLAINER_TIER_TARIFFS: {
@@ -158,13 +128,8 @@ export declare const EXPLAINER_TIER_TARIFFS: {
158
128
  readonly pro: "skill-agent-opus-v1";
159
129
  };
160
130
  export declare const explainerTierTariff: (tier: ExplainerTier | undefined) => SkillFilmTariff;
161
- /** The explainer's film switch on `api` (#1291 F4): off, every explainer is refused before any reserve. */
162
131
  export declare const skillAgentEnabled: (env: Record<string, string | undefined>) => boolean;
163
- /** The picture counts a parts snapshot's base may hold for `selectedFrames`: a picture video's ceiling, or an explainer's poses with or without a
164
- * named character. */
165
132
  export declare const facelessImageCeilings: (selectedFrames: number) => number[];
166
- /** The most a selection is charged: every picture the run may generate, every selected second, the opening clip. */
167
- /** An explainer makes no opening clip; its pictures are the hero's poses, charged as generated pictures when delivered. */
168
133
  export declare function quoteFaceless(input: {
169
134
  outputFrames: number;
170
135
  captions: boolean;
@@ -178,17 +143,12 @@ export declare function quoteFaceless(input: {
178
143
  film?: SkillFilmTariff;
179
144
  } | undefined;
180
145
  }): FacelessQuote;
181
- /** A directed video's prices (#1573): a live second, the direction line, and a picture made for the video; production and the minimum are
182
- * the parts tariff's, with no opening clip. A video mostly on the caller's own pictures pays the smaller direction line. */
183
146
  export declare const FACELESS_DIRECTED_PLAIN_LIVE_CREDITS_PER_SECOND = 12;
184
147
  export declare const FACELESS_DIRECTED_TEXT_LIVE_CREDITS_PER_SECOND = 20;
185
148
  export declare const FACELESS_DIRECTED_DIRECTION_CREDITS = 120;
186
149
  export declare const FACELESS_DIRECTED_OWN_PICTURES_DIRECTION_CREDITS = 60;
187
150
  export declare const FACELESS_DIRECTED_IMAGE_CREDITS = 9;
188
- /** The pictures a directed video may make: one per 2.5 selected seconds, at most 24, less the caller's own pictures. */
189
151
  export declare const facelessDirectedPictures: (selectedSeconds: number) => number;
190
- /** The share of the selected seconds each level plays live: standard about a third, pro every second. Live shots are made at 720p only,
191
- * so a 1080p video has none. */
192
152
  export declare const FACELESS_DIRECTED_LIVE_SHARE: {
193
153
  readonly standard: number;
194
154
  readonly pro: 1;
@@ -202,8 +162,6 @@ export interface DirectedFacelessAsk {
202
162
  resolution: "720p" | "1080p";
203
163
  maxCredits?: number | undefined;
204
164
  }
205
- /** A directed quote and the terms admission freezes from it: the level's live seconds, those `max_credits` leaves held at the text rate, and
206
- * the live seconds that hold pays when none shows text. */
207
165
  export interface DirectedFacelessTerms {
208
166
  quote: FacelessQuote;
209
167
  liveSecondsCeiling: number;
@@ -211,8 +169,5 @@ export interface DirectedFacelessTerms {
211
169
  stillsCeiling: number;
212
170
  ownPicturesRun: boolean;
213
171
  }
214
- /** The most a directed video is charged on its level, which is also the budget it is planned within: every picture it may
215
- * make, every selected second, the direction, and the level's live seconds held at the text rate, whole seconds that fit `maxCredits`. */
216
172
  export declare function quoteDirectedFaceless(ask: DirectedFacelessAsk): DirectedFacelessTerms;
217
- /** The parts base at a picture price: `images` pictures and every second of `outputFrames`, the seconds rounded up once. */
218
173
  export declare function facelessPartsBaseAt(images: number, imageCredits: number, outputFrames: number): number;
@@ -3,33 +3,21 @@ import { DELIVERED_VIDEO_MINIMUM_CREDITS, PRODUCTION_CREDITS_PER_SECOND, SCENE_C
3
3
  import { MUSIC_BED_CREDITS } from "./music.js";
4
4
  import { MAX_SCENES } from "./ugc-scenes.js";
5
5
  import { namedThings } from "./explainer-fit.js";
6
- /** The tariff new faceless runs are admitted on (#800); runs admitted on `faceless-image-i2v-v1` keep it. */
7
6
  export const FACELESS_TARIFF_ID = "faceless-parts-v1";
8
7
  export const FACELESS_LEGACY_TARIFF_ID = "faceless-image-i2v-v1";
9
- /** A directed video's tariff (#1573): its level, live seconds and direction line, frozen at admission. */
10
8
  export const FACELESS_DIRECTED_TARIFF_ID = "faceless-parts-v2";
11
9
  export const FACELESS_TARIFF_IDS = [FACELESS_TARIFF_ID, FACELESS_LEGACY_TARIFF_ID, FACELESS_DIRECTED_TARIFF_ID];
12
- /** A picture video ends with its speech and runs at least 25 s. */
13
10
  export const FACELESS_MIN_OUTPUT_FRAMES = 625;
14
- /** An explainer runs to its last word and 0.8 s past it, however short; one second is the shortest its composition draws (#1216). */
15
11
  export const FACELESS_EXPLAINER_MIN_OUTPUT_FRAMES = 25;
16
- /** The length a caller selects, in seconds. */
17
12
  export const FACELESS_MIN_SELECTED_SECONDS = 30;
18
13
  export const FACELESS_MAX_SELECTED_SECONDS = 90;
19
- /** The pre-speech estimate floor keeps the 4 s offset the 26 s floor had from the former 30 s minimum. */
20
14
  export const FACELESS_MIN_ESTIMATE_SEC = 21;
21
- /** A script is admitted when its estimate fits the selection plus 5 s; a video longer than that is named in `warnings[]`. */
22
15
  export const facelessMaxEstimateFrames = (selectedFrames) => Math.min(selectedFrames + 125, 2250);
23
- /** A video is planned within a quarter past its selection, at most 90 s; the charge stays within the selection's quote. */
24
16
  export const facelessMaxOutputFrames = (selectedFrames) => Math.min(Math.floor(selectedFrames * 1.25), 2250);
25
- /** The most characters one narration speaks, and a pace below every voice's: the slowest measured one reads 13.87 a second. */
26
17
  export const FACELESS_SPEECH_MAX_CHARACTERS = 2500;
27
18
  export const FACELESS_SLOWEST_CHARACTERS_PER_SECOND = 13;
28
- /** A narration longer than its plan is delivered at its length: the longest one at that pace, a 5 s lead, whole seconds. */
29
19
  export const FACELESS_MAX_OUTPUT_FRAMES = Math.ceil(FACELESS_SPEECH_MAX_CHARACTERS / FACELESS_SLOWEST_CHARACTERS_PER_SECOND + 5) * 25;
30
- /** Pictures a public run may generate, the opener's first frame included. */
31
20
  export const FACELESS_PUBLIC_MAX_GENERATED_IMAGES = 31;
32
- /** One picture per two selected seconds plus four, never past the runtime's ceiling: the run's beat limit and the admission cap read it. */
33
21
  export const facelessMaxGeneratedImages = (selectedFrames, imageCeiling = Infinity) => Math.min(imageCeiling, Math.floor(selectedFrames / 50) + 4);
34
22
  export const facelessQuote = z.object({
35
23
  outputFrames: z.number().int().min(FACELESS_MIN_OUTPUT_FRAMES).max(2250),
@@ -38,81 +26,52 @@ export const facelessQuote = z.object({
38
26
  totalCredits: z.number().int().nonnegative(),
39
27
  tariffId: z.enum(FACELESS_TARIFF_IDS),
40
28
  captions: z.boolean(),
41
- /** On the parts tariff: the generated pictures priced (at most, on a quote; delivered, on a run) and each one's price. */
42
29
  images: z.number().int().nonnegative().optional(),
43
30
  imageCredits: z.number().int().nonnegative().optional(),
44
- /** Asked-for music, inside `totalCredits` (#1063); absent when not asked. */
45
31
  musicCredits: z.number().int().positive().optional(),
46
- /** Action shots (#1113) inside `totalCredits`: on a quote the ceiling, on a run the drawn seconds; absent when none was asked. A directed
47
- * video's live seconds: on its quote all of them at the text-in-frame rate, the most it charges; on its run those with no text in frame. */
48
32
  shotSeconds: z.number().int().nonnegative().optional(),
49
33
  shotCredits: z.number().int().nonnegative().optional(),
50
- /** A directed video's run: its live seconds whose frame shows readable text, a logo or a sign, inside `totalCredits`; absent elsewhere. */
51
34
  textShotSeconds: z.number().int().nonnegative().optional(),
52
35
  textShotCredits: z.number().int().nonnegative().optional(),
53
- /** A directed video's quote: what it is charged when no live second shows readable text, at most `totalCredits`; absent elsewhere. */
54
36
  totalCreditsWithoutText: z.number().int().nonnegative().optional(),
55
- /** Scenes made for the video (#1107 on faceless, #1113), inside `totalCredits`: asked on a quote, drawn on a run; absent when none was asked. */
56
37
  scenes: z.number().int().nonnegative().optional(),
57
38
  sceneCredits: z.number().int().nonnegative().optional(),
58
- /** The explainer format: the hero's pose pictures it makes, each a generated picture inside `images`; absent on other runs. */
59
39
  posePictures: z.number().int().nonnegative().optional(),
60
- /** The explainer's scenes drawn for this video, inside `totalCredits`: on a quote the most, on a run the drawn; absent when none are made. */
61
40
  authoredScenes: z.number().int().nonnegative().optional(),
62
41
  authoredSceneCredits: z.number().int().nonnegative().optional(),
63
- /** An explainer's pictures of named things (#1277), outside `images`: on a quote the most, on a run the shown; absent when none. */
64
42
  objectPictures: z.number().int().nonnegative().optional(),
65
43
  objectPictureCredits: z.number().int().nonnegative().optional(),
66
- /** A drawn explainer film's price, inside `baseCredits` beside its hero's poses: on a quote at the selection, on a run at the delivered length. */
67
44
  filmCredits: z.number().int().positive().optional(),
68
- /** A directed video's direction (its storyboard, look and sound), inside `totalCredits`; absent on other videos. */
69
45
  directionCredits: z.number().int().positive().optional(),
70
46
  }).strict();
71
- /** A run's bill names the delivered frames, which may pass the selection or, on an explainer, fall short of 25 s; its total stays within the quote. */
72
47
  export const facelessRunBilling = facelessQuote.extend({ outputFrames: z.number().int().min(FACELESS_EXPLAINER_MIN_OUTPUT_FRAMES)
73
48
  .max(FACELESS_MAX_OUTPUT_FRAMES) }).strict();
74
- /** The legacy tariff's numbers: base credits per 1500 frames (a minute at 25 fps), the base's floor, and the opening clip. */
75
49
  export const FACELESS_LEGACY_CREDITS_PER_1500_FRAMES = 180;
76
50
  export const FACELESS_LEGACY_MIN_BASE_CREDITS = 200;
77
51
  export const FACELESS_LEGACY_OPENER_CREDITS = 150;
78
- /** The parts tariff: a generated picture, the opening clip, */
79
- /** and every second of the video for story, voice, checks and render, at least 50 for a delivered video. */
80
52
  export const FACELESS_IMAGE_CREDITS = 7;
81
53
  export const FACELESS_OPENER_CREDITS = 49;
82
54
  export const FACELESS_CREDITS_PER_1500_FRAMES = PRODUCTION_CREDITS_PER_SECOND * 60;
83
55
  export const FACELESS_MIN_BASE_CREDITS = DELIVERED_VIDEO_MINIMUM_CREDITS;
84
- /** An action shot (#1113): its seconds at make_ugc's shot rate, at most ten a run (#1192) and five seconds each. */
85
56
  export const FACELESS_SHOT_CREDITS_PER_SECOND = 30;
86
57
  export const FACELESS_MAX_SHOTS = 10;
87
58
  export const FACELESS_SHOT_MAX_SEC = 5;
88
- /** The largest dollar cap a faceless run may be configured with; a larger env value turns faceless off. Ten 5 s shots on a 90 s run need $8.47. */
89
59
  export const FACELESS_MAX_CAP_USD_MICROS = 10_000_000;
90
- /** The seconds a run with `shots` action shots may be charged for, every shot at its longest. */
91
- /** Faceless scenes have their own switch beside make_ugc's (#1113): their model calls join the faceless cost journal first. */
92
60
  export const facelessScenesEnabled = (env) => env.CLIPWRIGHT_FACELESS_SCENES === "1";
93
61
  export const facelessShotSecondsCeiling = (shots) => shots * FACELESS_SHOT_MAX_SEC;
94
- /** The parts price of `images` generated pictures in `outputFrames` frames: the production seconds rounded up once. */
95
62
  export function facelessPartsBase(images, outputFrames) {
96
63
  return images * FACELESS_IMAGE_CREDITS + Math.ceil(FACELESS_CREDITS_PER_1500_FRAMES * outputFrames / 1500);
97
64
  }
98
- /** The explainer format (#1216) is off unless switched on: it draws its scenes and makes no opening clip. */
99
65
  export const facelessExplainerEnabled = (env) => env.CLIPWRIGHT_FACELESS_EXPLAINER === "1";
100
- /** The explainer hero's pose set: one generated picture a pose, made when the run names a character. */
101
66
  export const FACELESS_EXPLAINER_POSE_PICTURES = 9;
102
- /** An explainer scene drawn for its video: its price, the most a video draws, and their switch; charged only when the delivered video draws it. */
103
67
  export const EXPLAINER_BEAT_CREDITS = 65;
104
68
  export const EXPLAINER_MAX_AUTHORED_BEATS = 8;
105
69
  export const explainerBeatsEnabled = (env) => env.CLIPWRIGHT_EXPLAINER_BEATS === "1";
106
- /** An explainer's pictures of the things its script names (#1277): one for each sentence naming a thing in a list of things, at most 12, none
107
- * for steps through software; each a generated picture once shown. */
108
70
  export const EXPLAINER_MAX_OBJECT_PICTURES = 12;
109
71
  export const explainerObjectCeiling = (script) => Math.min(EXPLAINER_MAX_OBJECT_PICTURES, namedThings(script));
110
- /** A drawn explainer film (#1291): one price for a film up to 60 s, and each second past it; its hero's poses are priced as pictures. */
111
72
  export const EXPLAINER_FILM_CREDITS = 500;
112
73
  export const EXPLAINER_FILM_INCLUDED_SECONDS = 60;
113
74
  export const EXPLAINER_FILM_CREDITS_PER_EXTRA_SECOND = 8;
114
- /** The drawn-film tariffs and their film price: up to the included seconds, then each second past them. A snapshot names its tariff, so a
115
- * price change is a new tariff: a run admitted at the old price settles at it. */
116
75
  export const SKILL_FILM_TARIFFS = {
117
76
  "skill-explainer-v1": { filmCredits: EXPLAINER_FILM_CREDITS, perExtraSecond: EXPLAINER_FILM_CREDITS_PER_EXTRA_SECOND },
118
77
  "skill-agent-opus-v1": { filmCredits: 1200, perExtraSecond: 20 },
@@ -123,25 +82,17 @@ export const isSkillFilmTariff = (value) => typeof value === "string" && Object.
123
82
  export const skillFilmCredits = (tariff, outputFrames) => SKILL_FILM_TARIFFS[tariff].filmCredits +
124
83
  SKILL_FILM_TARIFFS[tariff].perExtraSecond * Math.max(0, Math.ceil(outputFrames / 25) - EXPLAINER_FILM_INCLUDED_SECONDS);
125
84
  export const explainerFilmCredits = (outputFrames) => skillFilmCredits("skill-explainer-v1", outputFrames);
126
- /** The explainer's two levels a customer picks by name (#1291 F4): each freezes its film tariff at admission; omitted is `standard`. */
127
85
  export const EXPLAINER_TIERS = ["standard", "pro"];
128
86
  export const EXPLAINER_TIER_TARIFFS = { standard: "skill-agent-sonnet-v2", pro: "skill-agent-opus-v1" };
129
87
  export const explainerTierTariff = (tier) => EXPLAINER_TIER_TARIFFS[tier ?? "standard"];
130
- /** The explainer's film switch on `api` (#1291 F4): off, every explainer is refused before any reserve. */
131
88
  export const skillAgentEnabled = (env) => env.CLIPWRIGHT_SKILL_AGENT === "1";
132
- /** The picture counts a parts snapshot's base may hold for `selectedFrames`: a picture video's ceiling, or an explainer's poses with or without a
133
- * named character. */
134
89
  export const facelessImageCeilings = (selectedFrames) => [facelessMaxGeneratedImages(selectedFrames, FACELESS_PUBLIC_MAX_GENERATED_IMAGES), FACELESS_EXPLAINER_POSE_PICTURES, 0];
135
- /** The most a selection is charged: every picture the run may generate, every selected second, the opening clip. */
136
- /** An explainer makes no opening clip; its pictures are the hero's poses, charged as generated pictures when delivered. */
137
90
  export function quoteFaceless(input) {
138
91
  const outputFrames = z.number().int().min(FACELESS_MIN_OUTPUT_FRAMES).max(2250).parse(input.outputFrames);
139
92
  const captions = z.boolean().parse(input.captions);
140
93
  const openerCredits = input.explainer ? 0 : FACELESS_OPENER_CREDITS;
141
94
  const posePictures = input.explainer ? (input.explainer.character ? FACELESS_EXPLAINER_POSE_PICTURES : 0) : undefined;
142
- // An explainer generates only its hero's poses; a picture video, one picture per two selected seconds plus four.
143
95
  const images = posePictures ?? facelessMaxGeneratedImages(outputFrames, FACELESS_PUBLIC_MAX_GENERATED_IMAGES);
144
- // A drawn film (#1291) is priced whole: its poses and the film, with no line of the scenes and pictures the film draws itself.
145
96
  if (input.explainer?.film) {
146
97
  const filmCredits = skillFilmCredits(input.explainer.film, outputFrames), baseCredits = images * FACELESS_IMAGE_CREDITS + filmCredits;
147
98
  return { outputFrames, baseCredits, openerCredits, totalCredits: Math.max(FACELESS_MIN_BASE_CREDITS, baseCredits), tariffId: FACELESS_TARIFF_ID,
@@ -151,13 +102,10 @@ export function quoteFaceless(input) {
151
102
  const musicCredits = input.music === undefined ? 0 : MUSIC_BED_CREDITS;
152
103
  const shots = z.number().int().min(0).max(FACELESS_MAX_SHOTS).parse(input.shots ?? 0);
153
104
  const shotSeconds = facelessShotSecondsCeiling(shots), shotCredits = shotSeconds * FACELESS_SHOT_CREDITS_PER_SECOND;
154
- // A scene costs what it costs on make_ugc: one price per scene drawn.
155
105
  const scenes = z.number().int().min(0).max(MAX_SCENES).parse(input.scenes ?? 0), sceneCredits = scenes * SCENE_CREDITS;
156
106
  const authoredScenes = input.explainer?.beats ? EXPLAINER_MAX_AUTHORED_BEATS : 0, authoredSceneCredits = authoredScenes * EXPLAINER_BEAT_CREDITS;
157
107
  const objectPictures = z.number().int().min(0).max(EXPLAINER_MAX_OBJECT_PICTURES).parse(input.explainer?.objects ?? 0);
158
108
  const objectPictureCredits = objectPictures * FACELESS_IMAGE_CREDITS;
159
- // A delivered video costs at least the minimum, and the quote is the most it costs: an explainer with our drawn hero holds the minimum,
160
- // since its seconds alone may fall under it (a picture video's ceiling is always past it).
161
109
  return { outputFrames, baseCredits, openerCredits,
162
110
  totalCredits: Math.max(FACELESS_MIN_BASE_CREDITS, baseCredits + openerCredits) + musicCredits + shotCredits + sceneCredits + authoredSceneCredits +
163
111
  objectPictureCredits,
@@ -165,23 +113,14 @@ export function quoteFaceless(input) {
165
113
  ...(shots ? { shotSeconds, shotCredits } : {}), ...(scenes ? { scenes, sceneCredits } : {}), ...(posePictures === undefined ? {} : { posePictures }),
166
114
  ...(authoredScenes ? { authoredScenes, authoredSceneCredits } : {}), ...(objectPictures ? { objectPictures, objectPictureCredits } : {}) };
167
115
  }
168
- /** A directed video's prices (#1573): a live second, the direction line, and a picture made for the video; production and the minimum are
169
- * the parts tariff's, with no opening clip. A video mostly on the caller's own pictures pays the smaller direction line. */
170
116
  export const FACELESS_DIRECTED_PLAIN_LIVE_CREDITS_PER_SECOND = 12;
171
- // A live second whose frame shows readable text, a logo or a sign costs the text rate; the hold counts every live second at it.
172
117
  export const FACELESS_DIRECTED_TEXT_LIVE_CREDITS_PER_SECOND = 20;
173
118
  export const FACELESS_DIRECTED_DIRECTION_CREDITS = 120;
174
119
  export const FACELESS_DIRECTED_OWN_PICTURES_DIRECTION_CREDITS = 60;
175
120
  export const FACELESS_DIRECTED_IMAGE_CREDITS = 9;
176
- /** The pictures a directed video may make: one per 2.5 selected seconds, at most 24, less the caller's own pictures. */
177
121
  export const facelessDirectedPictures = (selectedSeconds) => Math.min(24, Math.ceil(selectedSeconds / 2.5));
178
- /** The share of the selected seconds each level plays live: standard about a third, pro every second. Live shots are made at 720p only,
179
- * so a 1080p video has none. */
180
122
  export const FACELESS_DIRECTED_LIVE_SHARE = { standard: 1 / 3, pro: 1 };
181
- /** The most a directed video is charged on its level, which is also the budget it is planned within: every picture it may
182
- * make, every selected second, the direction, and the level's live seconds held at the text rate, whole seconds that fit `maxCredits`. */
183
123
  export function quoteDirectedFaceless(ask) {
184
- // The run is charged what it shows, text seconds at 20 and the rest at 12: `totalCreditsWithoutText` is the charge when none shows text.
185
124
  const outputFrames = z.number().int().min(FACELESS_MIN_OUTPUT_FRAMES).max(2250).multipleOf(25).parse(ask.outputFrames);
186
125
  const seconds = outputFrames / 25, pictures = facelessDirectedPictures(seconds);
187
126
  const own = z.number().int().nonnegative().parse(ask.ownPictures), stillsCeiling = Math.max(0, pictures - own);
@@ -194,15 +133,12 @@ export function quoteDirectedFaceless(ask) {
194
133
  const text = FACELESS_DIRECTED_TEXT_LIVE_CREDITS_PER_SECOND, plain = FACELESS_DIRECTED_PLAIN_LIVE_CREDITS_PER_SECOND;
195
134
  const fits = ask.maxCredits === undefined ? liveSecondsCeiling : Math.floor((ask.maxCredits - fixed) / text);
196
135
  const shotSeconds = Math.max(0, Math.min(liveSecondsCeiling, fits)), shotCredits = shotSeconds * text;
197
- // A level plays at most its held seconds with or without text: the hold covers them at the text rate.
198
136
  const plainLiveSeconds = shotSeconds;
199
137
  return { liveSecondsCeiling, plainLiveSeconds, stillsCeiling, ownPicturesRun, quote: { outputFrames, baseCredits, openerCredits: 0,
200
138
  totalCredits: fixed + shotCredits, totalCreditsWithoutText: fixed + plainLiveSeconds * plain, tariffId: FACELESS_DIRECTED_TARIFF_ID,
201
139
  captions: z.boolean().parse(ask.captions), images: stillsCeiling, imageCredits: FACELESS_DIRECTED_IMAGE_CREDITS, directionCredits, shotSeconds,
202
140
  shotCredits, ...(musicCredits ? { musicCredits } : {}) } };
203
141
  }
204
- /** The parts base at a picture price: `images` pictures and every second of `outputFrames`, the seconds rounded up once. */
205
142
  export function facelessPartsBaseAt(images, imageCredits, outputFrames) {
206
143
  return images * imageCredits + Math.ceil(FACELESS_CREDITS_PER_1500_FRAMES * outputFrames / 1500);
207
144
  }
208
- //# sourceMappingURL=faceless-price.js.map
@@ -47,7 +47,6 @@ export declare function facelessSpeechWordSpans(script: string): Array<{
47
47
  export declare function facelessSpeechLexicalWords(script: string): string[];
48
48
  export declare function parseFacelessPublicStory(input: unknown, expectedScript?: string): FacelessPublicStory;
49
49
  type Score = ReturnType<typeof facelessCutScore>;
50
- /** The opening VIDEO lasts 3–5 s at 25 fps. */
51
50
  export declare const FACELESS_OPENER_MIN_FRAMES = 75, FACELESS_OPENER_MAX_FRAMES = 125;
52
51
  export declare const FACELESS_IMAGE_MIN_FRAMES = 25, FACELESS_IMAGE_MAX_FRAMES = 150;
53
52
  export declare const FACELESS_OPENER_BOUNDS_ERROR = "mandatory opening VIDEO requires 75\u2013125 frames";
@@ -58,9 +57,7 @@ export type FacelessPublicPlan = {
58
57
  words: WordTiming[];
59
58
  narrationStartFrame: number;
60
59
  captionPhrases: z.infer<typeof phrase>[];
61
- /** Present only past `FACELESS_IMAGE_MAX_FRAMES`: the longest IMAGE shot this plan was made under. */
62
60
  imageMaxFrames?: number;
63
- /** Present only when positive: frames the last picture holds past the narration's tail, so a template plays out (#1462). */
64
61
  endHoldFrames?: number;
65
62
  shots: Array<{
66
63
  id: string;
@@ -70,38 +67,28 @@ export type FacelessPublicPlan = {
70
67
  beatIds: string[];
71
68
  visualPrompts: string[];
72
69
  phase: FacelessPublicStory["beats"][number]["phase"];
73
- /** The planner pans; the closing picture may zoom out instead (#1067). */
74
70
  motion?: "PAN_UP" | "PAN_DOWN" | "ZOOM_IN" | "ZOOM_OUT";
75
71
  cutAfterWord?: number;
76
72
  score: Score;
77
- /** An action shot (#1113): a VIDEO after the opener, the clip made from its picture. */
78
73
  action?: true;
79
74
  }>;
80
75
  };
81
- /** `keepBeats`: beat indices (1 and up) the opener may not absorb, such as beats a customer image is anchored to. */
82
76
  export type FacelessPublicPlanOptions = {
83
77
  keepBeats?: ReadonlySet<number>;
84
- /** With no beat boundary inside the opener bounds, end the opener at a word gap inside beat 1. */
85
78
  openerWordGap?: boolean;
86
- /** Word ranges [first, end) no cut may fall inside, such as the words a customer image is anchored to. */
87
79
  keepTogether?: ReadonlyArray<{
88
80
  first: number;
89
81
  end: number;
90
82
  }>;
91
- /** Lets the word gap fall after words of a kept range, which the opener then covers; the caller warns about them. */
92
83
  openerGapPastKept?: boolean;
93
- /** Word ranges whose shot may last at most `maxFrames` (an action shot's clip, #1113); a shot over them that runs longer is not planned. */
94
84
  capFrames?: ReadonlyArray<{
95
85
  first: number;
96
86
  end: number;
97
87
  maxFrames: number;
98
88
  }>;
99
- /** The longest IMAGE shot, from `FACELESS_IMAGE_MAX_FRAMES` up: a narration longer than its plan keeps its pictures and holds each longer. */
100
89
  imageMaxFrames?: number;
101
- /** Frames the video runs past its narration's tail, the last picture held, so a series or call to action plays out (#1462). */
102
90
  endHoldFrames?: number;
103
91
  };
104
- /** Speech boundaries and planner cuts share the native nearest-frame clock. */
105
92
  export declare const facelessSpeechFrame: (seconds: number) => number;
106
93
  export declare function planPublicFacelessStory(input: FacelessPublicStory, words: readonly WordTiming[], inputStyle: CutStyleProfile, outputFrames: number, options?: FacelessPublicPlanOptions): FacelessPublicPlan;
107
94
  export {};
@@ -77,13 +77,10 @@ export function parseFacelessPublicStory(input, expectedScript) {
77
77
  }
78
78
  return story;
79
79
  }
80
- /** Per second above the pace band: an emphasis cut is dropped only while the merged shot stays within 0.5 s of the band's top. */
81
80
  const PACE_OVER_PENALTY = 2;
82
- /** The opening VIDEO lasts 3–5 s at 25 fps. */
83
81
  export const FACELESS_OPENER_MIN_FRAMES = 75, FACELESS_OPENER_MAX_FRAMES = 125;
84
82
  export const FACELESS_IMAGE_MIN_FRAMES = 25, FACELESS_IMAGE_MAX_FRAMES = 150;
85
83
  export const FACELESS_OPENER_BOUNDS_ERROR = `mandatory opening VIDEO requires ${FACELESS_OPENER_MIN_FRAMES}–${FACELESS_OPENER_MAX_FRAMES} frames`;
86
- /** Speech boundaries and planner cuts share the native nearest-frame clock. */
87
84
  export const facelessSpeechFrame = (seconds) => Math.round(seconds * 25);
88
85
  export function planPublicFacelessStory(input, words, inputStyle, outputFrames, options = {}) {
89
86
  if (!Number.isSafeInteger(outputFrames) || outputFrames < FACELESS_MIN_OUTPUT_FRAMES || outputFrames > FACELESS_MAX_OUTPUT_FRAMES) {
@@ -136,7 +133,6 @@ export function planPublicFacelessStory(input, words, inputStyle, outputFrames,
136
133
  const openerScore = facelessCutScore(story.beats[nodes[k].beatIndex].reason, 0, { p25: 0, p75: 0 });
137
134
  states[k] = { total: openerScore.net, path: [k], scores: [openerScore] };
138
135
  };
139
- // The opener may end at any beat boundary inside its bounds, absorbing the beats before it.
140
136
  for (const [k, node] of nodes.entries()) {
141
137
  if (k > 0 && options.keepBeats?.has(k))
142
138
  break;
@@ -144,9 +140,7 @@ export function planPublicFacelessStory(input, words, inputStyle, outputFrames,
144
140
  seedOpener(k);
145
141
  }
146
142
  if (!states.some(Boolean)) {
147
- // Word-gap opener: beat 0 alone, cut at beat 1's first in-bounds gap that leaves beat 1 an IMAGE shot's minimum.
148
143
  const next = story.beats[1], nextEndFrame = nodes[1]?.frame ?? outputFrames;
149
- // A kept range reaching into beat 1 belongs to that beat's picture, so the gap falls before its first word.
150
144
  const pastKept = (cut) => options.keepTogether?.some(range => range.end > next.wordStart && range.first <= cut.afterWord) ?? false;
151
145
  const gap = options.openerWordGap ? Array.from({ length: next.wordEnd - next.wordStart - 1 }, (_, i) => cutAfter(next.wordStart + i))
152
146
  .find(cut => inOpenerBounds(cut.frame) && (options.openerGapPastKept || !pastKept(cut))) : undefined;
@@ -163,10 +157,8 @@ export function planPublicFacelessStory(input, words, inputStyle, outputFrames,
163
157
  for (let start = 0; start < end; start++) {
164
158
  const prior = states[start];
165
159
  const duration = nodes[end].frame - nodes[start].frame;
166
- // The last picture also holds the end; its own words keep to the usual bound.
167
160
  if (!prior || duration < FACELESS_IMAGE_MIN_FRAMES || duration > imageMaxFrames + (end === final ? endHoldFrames : 0))
168
161
  continue;
169
- // The shot speaks words (nodes[start].afterWord, nodes[end].afterWord]; one holding a capped range keeps to its cap.
170
162
  if (options.capFrames?.some(range => duration > range.maxFrames && range.first <= nodes[end].afterWord &&
171
163
  range.end > nodes[start].afterWord + 1))
172
164
  continue;
@@ -193,12 +185,10 @@ export function planPublicFacelessStory(input, words, inputStyle, outputFrames,
193
185
  const node = nodes[nodeIndex];
194
186
  const included = story.beats.slice(beatStart, node.beatIndex);
195
187
  const hold = style.motion.pan_transition_n > 0 && style.motion.pan_flip_probability !== null && style.motion.pan_flip_probability < .5;
196
- // One picture shows one scene: a shot of several beats takes the prompt of the beat on screen longest, the earlier on a tie.
197
188
  const onScreen = included.map((_, k) => Math.min(node.frame, beatFrame(beatStart + k + 1)) - Math.max(startFrame, beatFrame(beatStart + k)));
198
189
  const lead = onScreen.indexOf(Math.max(...onScreen));
199
190
  const shot = {
200
191
  id: included[0].id, mediaType: i ? "image" : "video", startFrame, endFrame: node.frame,
201
- // Absorbed beats carry IMAGE prompts, so the opener keeps only its own beat's prompt.
202
192
  beatIds: included.map(b => b.id), visualPrompts: [included[i ? lead : 0].visualPrompt], phase: included[0].phase,
203
193
  ...(i ? { motion: hold || i % 2 === 1 ? "PAN_UP" : "PAN_DOWN" } : {}),
204
194
  ...(nodeIndex < final ? { cutAfterWord: node.afterWord } : {}), score: selected.scores[i],
@@ -211,4 +201,3 @@ export function planPublicFacelessStory(input, words, inputStyle, outputFrames,
211
201
  narrationStartFrame: story.narrationStartFrame, captionPhrases,
212
202
  ...(imageMaxFrames > FACELESS_IMAGE_MAX_FRAMES ? { imageMaxFrames } : {}), ...(endHoldFrames > 0 ? { endHoldFrames } : {}), shots };
213
203
  }
214
- //# sourceMappingURL=faceless-public-plan.js.map