@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
@@ -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
@@ -37,7 +37,6 @@ declare const scriptTransitions: z.ZodObject<{
37
37
  }, z.core.$strict>>]>>;
38
38
  }, z.core.$strict>;
39
39
  export type FacelessTransitionsInput = z.infer<typeof scriptTransitions>;
40
- /** A brief that names no transitions gets a flash on every scene change at admission (#1067); `false` keeps plain cuts. */
41
40
  export declare const FACELESS_BRIEF_DEFAULT_TRANSITIONS: Readonly<{
42
41
  readonly look: "flash";
43
42
  readonly at: "scene_changes";
@@ -45,45 +44,34 @@ export declare const FACELESS_BRIEF_DEFAULT_TRANSITIONS: Readonly<{
45
44
  export declare const FACELESS_FORMATS: readonly ["standard", "explainer"];
46
45
  export declare const FACELESS_EXPLAINER_DISABLED_MESSAGE = "format explainer is not available on make_faceless right now; omit format";
47
46
  export declare const FACELESS_EXPLAINER_BRIEF_REFUSAL = "format explainer needs input_mode script: write it as a hook, three to five steps and a result";
48
- /** The frame a faceless run delivers: 720 by 1280 when admission pinned 720p (#911), else the 1080 by 1920 of every earlier run and every revision. */
49
47
  export declare function facelessRunFrame(storedInput: unknown): {
50
48
  width: number;
51
49
  height: number;
52
50
  };
53
- /** The explainer (#1216) draws its own scene on every phrase, so the fields that place pictures, clips or graphics have no room in it. */
54
51
  export declare const EXPLAINER_OWN_FIELDS: readonly ["style_reference", "transitions", "templates", "shots", "scenes", "moves", "motion_style", "music"];
55
52
  export declare const explainerOwnFieldMessage: (field: string) => string;
56
- /** An explainer places at most this many of the customer's product pictures, each on its own words (#1322). */
57
53
  export declare const EXPLAINER_MAX_PRODUCT_PICTURES = 3;
58
54
  export declare const EXPLAINER_PRODUCT_PICTURES_REFUSAL = "format explainer places at most 3 of your pictures";
59
- /** Why an explainer's pictures cannot be placed: too many, or words of the script none or more than one of them names alone. */
60
55
  export declare function explainerPictureRefusals(script: unknown, images: unknown): {
61
56
  path: (string | number)[];
62
57
  message: string;
63
58
  }[];
64
- /** What an explainer request may not carry: a brief, a field the explainer draws itself, or pictures it cannot place. */
65
59
  export declare function explainerFieldRefusals(input: Record<string, unknown>): {
66
60
  path: (string | number)[];
67
61
  message: string;
68
62
  }[];
69
- /** A mascot is the explainer's hero already made: it needs the format, and it replaces a character the run would draw. */
70
63
  export declare function mascotFieldRefusals(input: Record<string, unknown>): {
71
64
  path: string[];
72
65
  message: string;
73
66
  }[];
74
- /** A tier picks the explainer's level, or a directed video's (#1573), so it means nothing on another run. */
75
67
  export declare const EXPLAINER_TIER_REFUSAL = "tier needs format explainer: it picks the explainer's level";
76
- /** The schema takes `tier` on any format; admission refuses it before any reserve unless the run is an explainer or directed. */
77
68
  export declare function facelessTierRefusal(input: {
78
69
  tier?: unknown;
79
70
  format?: unknown;
80
71
  }, directed: boolean): string | null;
81
- /** A directed run's level: `standard` unless asked, so the cheaper level is never a surprise. */
82
72
  export declare function directedFacelessTier(input: {
83
73
  tier?: (typeof EXPLAINER_TIERS)[number] | undefined;
84
74
  }): (typeof EXPLAINER_TIERS)[number];
85
- /** Server-only: admission freezes a directed video's level and how the caller's pictures may be placed (#1573): `none` without pictures,
86
- * `keep` on their anchors, `by_meaning` where one plainly shows another sentence. A public body naming it is refused as an unknown field. */
87
75
  export declare const facelessDirectedMark: z.ZodObject<{
88
76
  version: z.ZodLiteral<1>;
89
77
  tier: z.ZodEnum<{
@@ -97,14 +85,12 @@ export declare const facelessDirectedMark: z.ZodObject<{
97
85
  }>;
98
86
  }, z.core.$strict>;
99
87
  export type FacelessDirectedMark = z.infer<typeof facelessDirectedMark>;
100
- /** The line a faceless quote and run name when a style has nothing to dress: captions off and no templates or scenes (#1123). */
101
88
  export declare function facelessMotionStyleWarnings(input: {
102
89
  motion_style?: Parameters<typeof motionStyleAsked>[0]["motion_style"];
103
90
  captions?: boolean | undefined;
104
91
  templates?: readonly unknown[] | undefined;
105
92
  scenes?: readonly unknown[] | undefined;
106
93
  }): string[];
107
- /** Action shots (#1113): a moving clip from the picture under the named words, on those words, instead of the still. */
108
94
  export declare const facelessActionShot: z.ZodObject<{
109
95
  id: z.ZodString;
110
96
  anchor: z.ZodUnion<readonly [z.ZodObject<{
@@ -3472,7 +3458,6 @@ export declare const makeFacelessInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
3472
3458
  }, z.core.$strict>], "input_mode">;
3473
3459
  export type MakeFacelessInput = z.infer<typeof makeFacelessInput>;
3474
3460
  export type MakeFacelessInputArgs = z.input<typeof makeFacelessInput>;
3475
- /** The stored input of a revision: the request as resolved, and what admission froze about it. */
3476
3461
  export declare const facelessRevisionInput: z.ZodObject<{
3477
3462
  input_mode: z.ZodLiteral<"revision">;
3478
3463
  revision: z.ZodObject<{
@@ -3588,7 +3573,6 @@ export declare const facelessRevisionInput: z.ZodObject<{
3588
3573
  }, z.core.$strict>;
3589
3574
  }, z.core.$strict>;
3590
3575
  export type FacelessRevisionInput = z.infer<typeof facelessRevisionInput>;
3591
- /** What a `make_faceless` run stores as its input: a generate request or a revision. */
3592
3576
  export declare const facelessStoredInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
3593
3577
  duration_seconds: z.ZodNumber;
3594
3578
  style_reference: z.ZodOptional<z.ZodString>;
@@ -7165,27 +7149,19 @@ export declare const facelessStoredInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
7165
7149
  }, z.core.$strict>;
7166
7150
  }, z.core.$strict>], "input_mode">;
7167
7151
  export type FacelessStoredInput = z.infer<typeof facelessStoredInput>;
7168
- /** Admission and the run validate accepted input without canonicalizing its narration again. */
7169
- /** A brief's default flash is frozen here, so the stored input names what the video draws; a stored input is read as stored. */
7170
7152
  export declare function parseFacelessInputPreservingScript(input: unknown): MakeFacelessInput;
7171
7153
  export declare function parseFacelessStoredInputPreservingScript(input: unknown): FacelessStoredInput;
7172
- /** A request's quote: what the quote shows and admission reserves, read from the same fields by the same call. */
7173
- /** `explainerBeats`: an explainer's drawn scenes are on, so the quote holds them. `explainerFilm`: the explainer is priced as one drawn film. */
7174
7154
  export declare function quoteFacelessInput(input: MakeFacelessInput, options?: {
7175
7155
  explainerBeats?: boolean;
7176
7156
  explainerFilm?: SkillFilmTariff;
7177
7157
  }): FacelessQuote;
7178
- /** Both levels' totals for one explainer request (#1291 F4), each as admission would reserve it on that level; the quote names the chosen one. */
7179
7158
  export declare function explainerTierTotals(input: MakeFacelessInput): {
7180
7159
  tier: (typeof EXPLAINER_TIERS)[number];
7181
7160
  standard: number;
7182
7161
  pro: number;
7183
7162
  };
7184
- /** The API routes repeat these paths as literals, and a test keeps them equal. */
7185
7163
  export declare const FACELESS_QUOTE_PATH = "/v1/skills/make_faceless/quote";
7186
7164
  export declare const FACELESS_RUN_PATH = "/v1/skills/make_faceless/run";
7187
- /** Flat form of `makeFacelessInput` for MCP, which needs an object shape, not a union. */
7188
- /** Clients still parse with `makeFacelessInput` before sending, so the union stays the contract. */
7189
7165
  export declare const offeredFacelessInputShape: {
7190
7166
  input_mode: z.ZodEnum<{
7191
7167
  brief: "brief";
@@ -7267,8 +7243,6 @@ export declare const offeredFacelessInputShape: {
7267
7243
  }, z.core.$strict>>;
7268
7244
  propose: z.ZodOptional<z.ZodLiteral<false>>;
7269
7245
  };
7270
- /** The flat form as a tool input: an undeclared key is refused at the tool boundary, */
7271
- /** a field refused by name with its registry reason. */
7272
7246
  export declare const offeredFacelessInput: z.ZodObject<{
7273
7247
  input_mode: z.ZodEnum<{
7274
7248
  brief: "brief";