@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
@@ -41,28 +41,23 @@ export const facelessCustomerSceneImage = z.object({
41
41
  anchor: facelessSceneAnchor,
42
42
  }).strict();
43
43
  const customIssue = "custom";
44
- /** Cut transitions of a new run: every scene change, or the one nearest each anchor's first word. */
45
44
  const transitionLook = z.enum(FACELESS_TRANSITION_LOOKS);
46
45
  const scriptTransitions = z.strictObject({
47
46
  look: transitionLook,
48
47
  at: z.union([z.literal("scene_changes"), z.array(z.strictObject({ anchor: facelessSceneAnchor })).min(1).max(100)]).default("scene_changes"),
49
48
  });
50
- // A brief's narration is written by the run, so no word of it can be named in advance.
51
49
  const briefTransitions = z.strictObject({
52
50
  look: transitionLook,
53
51
  at: z.literal("scene_changes", { error: "transitions.at word anchors need input_mode script; a brief takes \"scene_changes\"" })
54
52
  .default("scene_changes"),
55
53
  });
56
- /** A brief that names no transitions gets a flash on every scene change at admission (#1067); `false` keeps plain cuts. */
57
54
  export const FACELESS_BRIEF_DEFAULT_TRANSITIONS = Object.freeze({ look: "flash", at: "scene_changes" });
58
- /** `false` or the object; a union names no branch on its own, so the refusal carries the object's first issue with its path. */
59
55
  const orPlainCuts = (schema) => z.union([z.literal(false), schema], { error: issue => {
60
56
  if (issue.input === null || typeof issue.input !== "object" || Array.isArray(issue.input))
61
57
  return "transitions is false (plain cuts) or { look, at }";
62
58
  const inner = schema.safeParse(issue.input).error?.issues[0];
63
59
  return inner && `${["transitions", ...inner.path.map(String)].join(".")}: ${inner.message}`;
64
60
  } });
65
- /** Sound refusals against the look the run draws: a brief without the field draws the default flash. */
66
61
  function refuseSounds(input, context) {
67
62
  const look = input.transitions === undefined && input.input_mode === "brief" ? FACELESS_BRIEF_DEFAULT_TRANSITIONS.look
68
63
  : input.transitions ? input.transitions.look : undefined;
@@ -75,51 +70,39 @@ export const FACELESS_EXPLAINER_BRIEF_REFUSAL = "format explainer needs input_mo
75
70
  const common = {
76
71
  duration_seconds: z.number().min(FACELESS_MIN_SELECTED_SECONDS).max(FACELESS_MAX_SELECTED_SECONDS).refine((seconds) => Number.isInteger(seconds * 25), "duration_seconds must align to a 25 fps frame boundary"),
77
72
  style_reference: qualifiedImageUrl.optional(),
78
- // Described here once: the MCP shape and OpenAPI both read this schema (#1359).
79
73
  character_reference: qualifiedImageUrl.optional()
80
74
  .describe("A picture of a person or figure: a public https image, or a picture you uploaded or saved in your assets. Standard format: the figure is in every picture we generate and in the opening clip; " +
81
75
  "your own scene_images are shown as they are. Format explainer: the figure is the hero, a person's photo drawn as a cartoon unless " +
82
76
  "character_details ask for a photoreal look."),
83
77
  character_details: z.string().trim().min(1).max(2000).optional(),
84
- /** A saved mascot of this account (#1257) the explainer's hero is drawn from: its poses are not made again, and the quote shows none. */
85
78
  mascot_id: assetId.optional(),
86
79
  scene_images: z.array(facelessCustomerSceneImage).max(60).optional(),
87
80
  captions: z.boolean().default(true),
88
- // A name form only: the server checks the name, so the list grows without a client release.
89
81
  voice: z.string({ error: "voice must be a voice name from list_voices, as a string" })
90
82
  .regex(VOICE_NAME_PATTERN, "voice is not a voice name: take one from list_voices with skill=make_faceless")
91
83
  .optional(),
92
84
  voice_id: z.never({ error: FACELESS_REJECTED_FIELDS.voice_id.message }).optional(),
93
- // Opt-in, so a run that never asked keeps its silent scene changes (rule 3).
94
85
  edit_sounds: z.boolean().optional(),
95
86
  template_sounds: facelessTemplateSounds.optional(),
96
87
  music: musicRequest.optional(),
97
- // A style dresses the captions, templates and scenes over the pictures (#1123); its spans sit on a script's words.
98
88
  motion_style: motionStyle.optional(),
99
89
  format: z.enum(FACELESS_FORMATS).optional(),
100
90
  tier: z.enum(EXPLAINER_TIERS).optional(),
101
- // No .default(): admission pins it, and a stored run without it is read as the 1080p it was rendered at (#911).
102
91
  resolution: offeredResolution.optional().describe("Output resolution: 720p (720x1280) or 1080p (1080x1920). Omitted means 720p. " +
103
92
  "The price does not depend on it."),
104
93
  max_credits: maxCreditsField,
105
- // make_ugc's scene (#1491); its posture is the main character's.
106
94
  scene: sceneBible.optional(),
107
- // quote_faceless's scene proposal (#1491), as on make_ugc: admission expands an accepted one into the fields above.
108
95
  proposal: facelessSceneProposalAccept.optional(),
109
96
  propose: facelessProposeField,
110
97
  };
111
- /** 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. */
112
98
  export function facelessRunFrame(storedInput) {
113
99
  const resolution = storedInput !== null && typeof storedInput === "object" ? storedInput.resolution : undefined;
114
100
  return resolution === "720p" ? { width: 720, height: 1280 } : { width: 1080, height: 1920 };
115
101
  }
116
- /** The explainer (#1216) draws its own scene on every phrase, so the fields that place pictures, clips or graphics have no room in it. */
117
102
  export const EXPLAINER_OWN_FIELDS = ["style_reference", "transitions", "templates", "shots", "scenes", "moves", "motion_style", "music"];
118
103
  export const explainerOwnFieldMessage = (field) => `format explainer draws its own scenes; omit ${field}`;
119
- /** An explainer places at most this many of the customer's product pictures, each on its own words (#1322). */
120
104
  export const EXPLAINER_MAX_PRODUCT_PICTURES = 3;
121
105
  export const EXPLAINER_PRODUCT_PICTURES_REFUSAL = `format explainer places at most ${EXPLAINER_MAX_PRODUCT_PICTURES} of your pictures`;
122
- /** Why an explainer's pictures cannot be placed: too many, or words of the script none or more than one of them names alone. */
123
106
  export function explainerPictureRefusals(script, images) {
124
107
  if (!Array.isArray(images) || typeof script !== "string")
125
108
  return [];
@@ -143,7 +126,6 @@ export function explainerPictureRefusals(script, images) {
143
126
  }
144
127
  return [];
145
128
  }
146
- /** What an explainer request may not carry: a brief, a field the explainer draws itself, or pictures it cannot place. */
147
129
  export function explainerFieldRefusals(input) {
148
130
  if (input.format !== "explainer")
149
131
  return [];
@@ -151,7 +133,6 @@ export function explainerFieldRefusals(input) {
151
133
  ...EXPLAINER_OWN_FIELDS.filter(field => input[field] !== undefined).map(field => ({ path: [field], message: explainerOwnFieldMessage(field) })),
152
134
  ...explainerPictureRefusals(input.script, input.scene_images)];
153
135
  }
154
- /** A mascot is the explainer's hero already made: it needs the format, and it replaces a character the run would draw. */
155
136
  export function mascotFieldRefusals(input) {
156
137
  if (input.mascot_id === undefined)
157
138
  return [];
@@ -161,37 +142,28 @@ export function mascotFieldRefusals(input) {
161
142
  .map(field => ({ path: [field], message: `mascot_id is the hero already made; omit ${field}` })),
162
143
  ];
163
144
  }
164
- /** A tier picks the explainer's level, or a directed video's (#1573), so it means nothing on another run. */
165
145
  export const EXPLAINER_TIER_REFUSAL = "tier needs format explainer: it picks the explainer's level";
166
146
  function refuseExplainerFields(input, context) {
167
147
  for (const { path, message } of [...explainerFieldRefusals(input), ...mascotFieldRefusals(input)])
168
148
  context.addIssue({ code: customIssue, path, message });
169
149
  }
170
- /** The schema takes `tier` on any format; admission refuses it before any reserve unless the run is an explainer or directed. */
171
150
  export function facelessTierRefusal(input, directed) {
172
151
  return input.tier !== undefined && input.format !== "explainer" && !directed ? EXPLAINER_TIER_REFUSAL : null;
173
152
  }
174
- /** A directed run's level: `standard` unless asked, so the cheaper level is never a surprise. */
175
153
  export function directedFacelessTier(input) {
176
154
  return input.tier ?? "standard";
177
155
  }
178
- /** Server-only: admission freezes a directed video's level and how the caller's pictures may be placed (#1573): `none` without pictures,
179
- * `keep` on their anchors, `by_meaning` where one plainly shows another sentence. A public body naming it is refused as an unknown field. */
180
156
  export const facelessDirectedMark = z.strictObject({ version: z.literal(1), tier: z.enum(EXPLAINER_TIERS),
181
157
  pairing: z.enum(["none", "keep", "by_meaning"]) });
182
- /** The line a faceless quote and run name when a style has nothing to dress: captions off and no templates or scenes (#1123). */
183
158
  export function facelessMotionStyleWarnings(input) {
184
159
  return motionStyleAsked(input) && !motionStyleHasCanvas({ ...input, captions: input.captions !== false }) ? [MOTION_STYLE_UNUSED_WARNING] : [];
185
160
  }
186
- /** Templates over the pictures (#1113): kinds on the script's words; a slot may show the account's own picture or clip (asset_id), as on make_ugc.
187
- * A cover or a backdrop stands the subject of the picture under its words in front (#1438); a series item without a clip shows that picture. */
188
161
  function refuseTemplates(input, context) {
189
162
  if (!input.templates)
190
163
  return;
191
164
  for (const { path, message } of templateRefusals({ script: input.script, templates: input.templates, aspect_ratio: "9:16" })) {
192
165
  context.addIssue({ code: customIssue, path, message });
193
166
  }
194
- // A cover or a backdrop is behind the cut-out switch here too, refused by value before any reserve (#1438).
195
167
  if (isPresenterMatteEnabled())
196
168
  return;
197
169
  input.templates.forEach((item, index) => {
@@ -199,13 +171,11 @@ function refuseTemplates(input, context) {
199
171
  context.addIssue({ code: customIssue, path: ["templates", index, "kind"], message: PRESENTER_MATTE_DISABLED_MESSAGE });
200
172
  });
201
173
  }
202
- /** Action shots (#1113): a moving clip from the picture under the named words, on those words, instead of the still. */
203
174
  export const facelessActionShot = z.strictObject({
204
175
  id: z.string().trim().min(1).max(64),
205
176
  anchor: facelessSceneAnchor,
206
177
  action: z.string().trim().min(1).max(1500),
207
178
  transition: z.enum(FACELESS_SHOT_TRANSITIONS).optional(),
208
- /** An image asset of this account (rights_confirmed) the clip starts from, in place of a picture the run draws; that picture is not charged. */
209
179
  asset_id: assetId.optional(),
210
180
  });
211
181
  export const FACELESS_SHOTS_BRIEF_REFUSAL = "shots need input_mode script: they sit on the narration's words";
@@ -219,9 +189,7 @@ const scriptShape = { ...common,
219
189
  shots: z.array(facelessActionShot).min(1).max(FACELESS_MAX_SHOTS, `at most ${FACELESS_MAX_SHOTS} shots a video`).optional(),
220
190
  scenes: z.array(ugcScene).min(1).max(MAX_SCENES).optional(),
221
191
  moves: z.array(ugcMove).min(1).max(MAX_MOVES).optional(),
222
- // make_ugc's field (#1228): the narration's pauses are cut before its words are timed, so everything drawn on them follows the cut.
223
192
  pause_trim: z.union([z.literal(false), pauseTrim]).optional(),
224
- // #1573: true pins every scene image to its anchor; otherwise a picture that plainly shows another sentence may move there, named in warnings[].
225
193
  keep_anchors: z.boolean().optional(),
226
194
  };
227
195
  const scriptBase = z.object(scriptShape).strict();
@@ -231,7 +199,6 @@ function refineScript(input, context) {
231
199
  refuseTemplates(input, context);
232
200
  for (const { path, message } of moveRefusals({ script: input.script, moves: input.moves }))
233
201
  context.addIssue({ code: customIssue, path, message });
234
- // Scenes sit on the script's words as on make_ugc and share the templates' ids (#1113).
235
202
  for (const { path, message } of sceneRefusals({ script: input.script, scenes: input.scenes, templates: input.templates }, { presenter: false })) {
236
203
  context.addIssue({ code: customIssue, path, message });
237
204
  }
@@ -256,14 +223,10 @@ function refineScript(input, context) {
256
223
  }
257
224
  }
258
225
  const scriptInput = scriptBase.superRefine(refineScript);
259
- /** What a run stores for a script: the request plus the assets admission pinned for it, which a public body never carries. */
260
226
  const storedScriptInput = z.object({ ...scriptShape,
261
227
  insert_assets: z.array(pinnedInsertAsset).min(1).max(MAX_TEMPLATE_MEDIA + FACELESS_MAX_SHOTS).optional(),
262
- /** The mascot a run reuses, as admission read it (#1257). */
263
228
  mascot: pinnedMascot.optional(),
264
- /** What the workflow method the run was launched from requires of its film (#1461). */
265
229
  workflow_directions: filmDirections.optional(),
266
- /** Set when admission froze the scene director for the run (#1491). */
267
230
  scene_direction: sceneDirectionMark.optional(),
268
231
  directed: facelessDirectedMark.optional(),
269
232
  }).strict().superRefine(refineScript);
@@ -271,7 +234,6 @@ const briefShape = { ...common,
271
234
  input_mode: z.literal("brief"),
272
235
  brief: z.string().trim().min(1).max(10_000),
273
236
  transitions: orPlainCuts(briefTransitions).optional(),
274
- // A brief's narration is written by the run, so no template can name its words.
275
237
  templates: z.never({ error: "templates need input_mode script: they sit on the narration's words" }).optional(),
276
238
  shots: z.never({ error: FACELESS_SHOTS_BRIEF_REFUSAL }).optional(),
277
239
  scenes: z.never({ error: "scenes need input_mode script: they sit on the narration's words" }).optional(),
@@ -290,16 +252,12 @@ const briefInput = z.object(briefShape).strict().superRefine(refineBrief);
290
252
  const storedBriefInput = z.object({ ...briefShape, scene_direction: sceneDirectionMark.optional(), directed: facelessDirectedMark.optional() })
291
253
  .strict().superRefine(refineBrief);
292
254
  export const makeFacelessInput = z.discriminatedUnion("input_mode", [scriptInput, briefInput]);
293
- /** The stored input of a revision: the request as resolved, and what admission froze about it. */
294
255
  export const facelessRevisionInput = z.strictObject({
295
256
  input_mode: z.literal("revision"),
296
257
  revision: z.strictObject({ source_run_id: runId, document: editDocument }),
297
258
  resolved_revision: z.strictObject({ root_run_id: runId, own_images: z.boolean(), summary: editSummaryWire, billing: revisionBilling }),
298
259
  });
299
- /** What a `make_faceless` run stores as its input: a generate request or a revision. */
300
260
  export const facelessStoredInput = z.discriminatedUnion("input_mode", [storedScriptInput, storedBriefInput, facelessRevisionInput]);
301
- /** Admission and the run validate accepted input without canonicalizing its narration again. */
302
- /** A brief's default flash is frozen here, so the stored input names what the video draws; a stored input is read as stored. */
303
261
  export function parseFacelessInputPreservingScript(input) {
304
262
  const parsed = makeFacelessInput.parse(input);
305
263
  if (parsed.input_mode === "script")
@@ -310,29 +268,22 @@ export function parseFacelessStoredInputPreservingScript(input) {
310
268
  const parsed = facelessStoredInput.parse(input);
311
269
  return parsed.input_mode === "script" ? { ...parsed, script: input.script } : parsed;
312
270
  }
313
- /** A request's quote: what the quote shows and admission reserves, read from the same fields by the same call. */
314
- /** `explainerBeats`: an explainer's drawn scenes are on, so the quote holds them. `explainerFilm`: the explainer is priced as one drawn film. */
315
271
  export function quoteFacelessInput(input, options = {}) {
316
272
  const character = !!(input.character_reference || input.character_details);
317
- // A drawn film with no character and no mascot draws a hero that fits its script, priced as a named character's poses.
318
273
  const filmHero = character || !(input.input_mode === "script" && input.mascot_id);
319
274
  return quoteFaceless({ outputFrames: input.duration_seconds * 25, captions: input.captions, music: input.music,
320
275
  shots: input.input_mode === "script" ? input.shots?.length ?? 0 : 0, scenes: input.input_mode === "script" ? input.scenes?.length ?? 0 : 0,
321
276
  ...(input.format !== "explainer" ? {} : options.explainerFilm ? { explainer: { character: filmHero, film: options.explainerFilm } } : { explainer: { character,
322
277
  ...(options.explainerBeats ? { beats: true } : {}), ...(input.input_mode === "script" ? { objects: explainerObjectCeiling(input.script) } : {}) } }) });
323
278
  }
324
- /** Both levels' totals for one explainer request (#1291 F4), each as admission would reserve it on that level; the quote names the chosen one. */
325
279
  export function explainerTierTotals(input) {
326
280
  const total = (tier) => quoteFacelessInput(input, { explainerFilm: EXPLAINER_TIER_TARIFFS[tier] }).totalCredits;
327
281
  return { tier: input.tier ?? "standard", standard: total("standard"), pro: total("pro") };
328
282
  }
329
283
  const tierFilm = (tier) => SKILL_FILM_TARIFFS[EXPLAINER_TIER_TARIFFS[tier]];
330
284
  const tierPrice = (tier) => `${tierFilm(tier).filmCredits} credits for a film up to ${EXPLAINER_FILM_INCLUDED_SECONDS} s plus ${tierFilm(tier).perExtraSecond} each second over`;
331
- /** The API routes repeat these paths as literals, and a test keeps them equal. */
332
285
  export const FACELESS_QUOTE_PATH = "/v1/skills/make_faceless/quote";
333
286
  export const FACELESS_RUN_PATH = "/v1/skills/make_faceless/run";
334
- /** Flat form of `makeFacelessInput` for MCP, which needs an object shape, not a union. */
335
- /** Clients still parse with `makeFacelessInput` before sending, so the union stays the contract. */
336
287
  export const offeredFacelessInputShape = {
337
288
  input_mode: z.enum(["script", "brief"])
338
289
  .describe("'script' narrates your exact text; 'brief' writes the narration from a short description. Send exactly one of script or brief, matching this mode."),
@@ -358,10 +309,8 @@ export const offeredFacelessInputShape = {
358
309
  .describe("Flash or light leak on the cuts, with its sound: every scene change, or the one nearest each anchor (script only). " +
359
310
  "Omitted on a brief: a flash on every scene change; false for plain cuts. No extra charge."),
360
311
  edit_sounds: common.edit_sounds.describe("A low sound on every scene change, its peak on the cut; template_sounds.edit picks it. Price unchanged."),
361
- // The slim form keeps tools/list small; the client parses with makeFacelessInput, which checks beats and names.
362
312
  template_sounds: mcpTemplateSounds.optional().describe("false for no sounds, or { flash, whoosh (light leak), edit: name } from list_template_sounds."),
363
313
  music: common.music.describe(MUSIC_DESCRIPTION),
364
- // No shape here keeps tools/list small: the items are make_ugc's, which the client and the server check strictly.
365
314
  templates: z.unknown().optional().describe("Script only: as make_ugc, a slot may show your image or video asset (asset_id, rights_confirmed). Free."),
366
315
  shots: z.unknown().optional().describe(`Script only: 1-${FACELESS_MAX_SHOTS} {id, anchor, action, asset_id?}, 5 s max each.`),
367
316
  scenes: z.unknown().optional().describe("Script only: as make_ugc scenes."),
@@ -379,7 +328,6 @@ export const offeredFacelessInputShape = {
379
328
  "Other formats, where your account has the two levels: 'standard' (default) is your story in pictures that move, with captions and " +
380
329
  "sound and about a third of it live; 'pro' plays every shot as live footage. quote_faceless names both totals in tiers. " +
381
330
  "Elsewhere tier is refused."),
382
- // No shape here keeps tools/list small, as for templates: the field is make_ugc's, which the client and the server check strictly.
383
331
  pause_trim: z.unknown().optional().describe("Script only: as make_ugc pause_trim, same default with templates, scenes, shots or format explainer."),
384
332
  keep_anchors: scriptInput.shape.keep_anchors.describe("Script only, with scene_images. true keeps each picture on the words you anchored it to. " +
385
333
  "Omitted or false: a picture that plainly shows another sentence of the script may be shown on that sentence instead; warnings[] names " +
@@ -398,8 +346,6 @@ export const offeredFacelessInputShape = {
398
346
  const rejectedFacelessField = (key) => Object.hasOwn(FACELESS_REJECTED_FIELDS, key)
399
347
  ? FACELESS_REJECTED_FIELDS[key].message
400
348
  : undefined;
401
- /** The flat form as a tool input: an undeclared key is refused at the tool boundary, */
402
- /** a field refused by name with its registry reason. */
403
349
  export const offeredFacelessInput = z.strictObject(offeredFacelessInputShape, {
404
350
  error: (issue) => issue.code === "unrecognized_keys"
405
351
  ? issue.keys.map((key) => rejectedFacelessField(key) ?? `"${key}" is not a field of this tool`).join("; ")
@@ -418,15 +364,10 @@ export const facelessPlannerInput = z.object({
418
364
  }).strict();
419
365
  export const facelessQuoteResponse = facelessQuote.extend({
420
366
  skill: z.literal("make_faceless"),
421
- /** Whether the script suits the explainer format, with the reason, and a rewrite into actions when it does not. */
422
367
  explainer_fit: z.strictObject({ fits: z.boolean(), reason: z.string(), rewrite: z.string().optional() }).optional(),
423
- /** An explainer's two levels on the same request: each one's total, and the level `totalCredits` is for. */
424
368
  explainer_tiers: z.strictObject({ tier: z.enum(EXPLAINER_TIERS), standard: z.number().int().positive(), pro: z.number().int().positive() }).optional(),
425
- /** The two levels of a video that has them, on the same request and `max_credits`: each one's total, and the level `totalCredits` is for. */
426
369
  tiers: z.strictObject({ tier: z.enum(EXPLAINER_TIERS), standard: z.number().int().positive(), pro: z.number().int().positive() }).optional(),
427
- /** The scene the quote proposes and its options with their prices (#1491); absent where the quote proposes none. */
428
370
  scene_proposal: sceneProposal.optional(),
429
371
  warnings: z.array(z.string()).default([]),
430
372
  contract_version: z.string().min(1),
431
373
  }).strict();
432
- //# sourceMappingURL=faceless-public.js.map
@@ -149,4 +149,3 @@ export function reportShort61(input) {
149
149
  maxUsdSpend: 0,
150
150
  };
151
151
  }
152
- //# sourceMappingURL=faceless-short-61.js.map
@@ -94,4 +94,3 @@ export function planStoryboardFrames(input, words, narrationStartFrame) {
94
94
  reason: candidate.rejection ?? `unselected ${candidate.reason} boundary under timing and image budget constraints`,
95
95
  }]), imageBudget: storyboardImageBudget(imageCount, 2) };
96
96
  }
97
- //# sourceMappingURL=faceless-storyboard-timing.js.map
@@ -109,4 +109,3 @@ export function parseStoryboardV2Plan(input, words) {
109
109
  }
110
110
  return raw;
111
111
  }
112
- //# sourceMappingURL=faceless-storyboard-v2-plan.js.map
@@ -28,8 +28,6 @@ export type StoryboardV2FramePlan = {
28
28
  cutReason?: string;
29
29
  score: Score;
30
30
  }>;
31
- /** Rejected scores are local incoming-edge estimates, not alternate complete-path scores.
32
- * Null pacePenalty/net means no feasible incoming edge was reachable. */
33
31
  rejectedCandidates: Array<{
34
32
  afterWord: number;
35
33
  frame: number;
@@ -54,8 +52,6 @@ declare const semantic: {
54
52
  readonly action: 3;
55
53
  readonly emphasis: 1;
56
54
  };
57
- /** Shared semantic objective; duration feasibility belongs to each profile. */
58
- /** `overPenalty` prices a second above the pace band; a second below it always costs the base penalty. */
59
55
  export declare function facelessCutScore(reason: keyof typeof semantic | null, duration: number, range: {
60
56
  p25: number | null;
61
57
  p75: number | null;
@@ -5,8 +5,6 @@ const CUT_COST = 2;
5
5
  const PACE_PENALTY = 0.25;
6
6
  const OUTPUT_FRAMES = 1522;
7
7
  const FPS = 25;
8
- /** Shared semantic objective; duration feasibility belongs to each profile. */
9
- /** `overPenalty` prices a second above the pace band; a second below it always costs the base penalty. */
10
8
  export function facelessCutScore(reason, duration, range, overPenalty = PACE_PENALTY) {
11
9
  const value = reason === null ? 0 : semantic[reason];
12
10
  const cost = reason === null ? 0 : CUT_COST;
@@ -142,4 +140,3 @@ export function planStoryboardV2(input, words, narrationStartFrame, style) {
142
140
  scoreBreakdown: { semanticValue: best.semantic, cutCost: best.cutCost,
143
141
  pacePenalty: best.pacePenalty, total: best.total, cuts: best.cuts } };
144
142
  }
145
- //# sourceMappingURL=faceless-storyboard-v2-timing.js.map
@@ -40,4 +40,3 @@ export function parseStoryboardV2(input) {
40
40
  }
41
41
  return parsed;
42
42
  }
43
- //# sourceMappingURL=faceless-storyboard-v2.js.map
@@ -102,4 +102,3 @@ export function storyboardImageBudget(sceneCount, replacementCount) {
102
102
  throw new Error("storyboard image allowance exceeded");
103
103
  return { allowance: 24, remaining };
104
104
  }
105
- //# sourceMappingURL=faceless-storyboard.js.map
@@ -1,15 +1,11 @@
1
1
  import type { Gender } from "./default-actor.js";
2
2
  import type { CatalogLanguage } from "./voice-catalog.js";
3
- /** Our label for the speech model that reads `make_faceless` narration. Not a `tts_model`: `make_ugc` does not speak it. */
4
3
  export declare const FACELESS_SPEECH_MODEL = "narrator-v1";
5
- /** A narration voice of `make_faceless` by OUR name; our service holds its measured pace. */
6
4
  export interface FacelessVoice {
7
5
  language: CatalogLanguage;
8
6
  gender: Gender;
9
7
  description: string;
10
8
  }
11
- /** The voices `make_faceless` speaks, each measured live. Every name starts */
12
- /** with `narrator_`, which no preset, model voice or catalog slug does. */
13
9
  export declare const FACELESS_VOICES: {
14
10
  readonly narrator_en_wise_lady: {
15
11
  readonly language: "en";
@@ -114,36 +110,24 @@ export declare const FACELESS_VOICES: {
114
110
  };
115
111
  export type FacelessVoiceName = keyof typeof FACELESS_VOICES;
116
112
  export declare const FACELESS_VOICE_NAMES: [FacelessVoiceName, ...FacelessVoiceName[]];
117
- /** The voice a run speaks when it names none; an explainer speaks the fastest voice of its script's language instead (#1216). */
118
113
  export declare const DEFAULT_FACELESS_VOICE = "narrator_en_wise_lady";
119
114
  export declare function isFacelessVoiceName(name: string): name is FacelessVoiceName;
120
- /** Whole-take words per second of the voices measured live. A voice absent here is unmeasured. */
121
115
  export declare const FACELESS_MEASURED_WORDS_PER_SECOND: Partial<Record<FacelessVoiceName, number>>;
122
- /** Whole-take characters per second, spaces included, of the same voices. Words vary in length, so a script's length is */
123
- /** estimated on its characters where the voice has this measure. */
124
116
  export declare const FACELESS_MEASURED_CHARACTERS_PER_SECOND: Partial<Record<FacelessVoiceName, number>>;
125
- /** The voice a run speaks when it names none: an explainer's script is read by the fastest measured voice of its language,
126
- * every other format and a language without a measured voice by the default. */
127
117
  export declare function facelessDefaultVoiceName(input: {
128
118
  format?: string | undefined;
129
119
  script?: string | undefined;
130
120
  } | undefined): FacelessVoiceName;
131
- /** The words per second a script's length is estimated at: the measured pace of the voice that will speak it (the named one, else the default for
132
- * the format and the script's language), the flat estimate when that voice is unmeasured or reads another alphabet than the script. */
133
121
  export declare function facelessSpeechWordsPerSecond(input: {
134
122
  voice?: string | undefined;
135
123
  format?: string | undefined;
136
124
  script: string;
137
125
  }): number;
138
- /** A faceless script's estimated narration length in seconds: its characters at the voice's measured rate, else its words at the */
139
- /** voice's pace; an estimate, as `estimateDurationSec` is. */
140
126
  export declare function facelessEstimatedSeconds(input: {
141
127
  voice?: string | undefined;
142
128
  format?: string | undefined;
143
129
  script: string;
144
130
  }): number;
145
- /** Fires only for a voice the client named. A script is judged by the alphabet most of its letters say; a brief */
146
- /** only when it holds no letter of the voice's alphabet, since it may ask for another language. */
147
131
  export declare function buildFacelessVoiceWarnings(input: {
148
132
  voice?: string | undefined;
149
133
  script?: string | undefined;
@@ -1,10 +1,7 @@
1
1
  import { scriptLanguageOf } from "./caption-language.js";
2
2
  import { countWords, estimateWordsPerSecond } from "./pacing.js";
3
3
  import { detectScriptFamily, scriptLetterCounts } from "./voices.js";
4
- /** Our label for the speech model that reads `make_faceless` narration. Not a `tts_model`: `make_ugc` does not speak it. */
5
4
  export const FACELESS_SPEECH_MODEL = "narrator-v1";
6
- /** The voices `make_faceless` speaks, each measured live. Every name starts */
7
- /** with `narrator_`, which no preset, model voice or catalog slug does. */
8
5
  export const FACELESS_VOICES = {
9
6
  narrator_en_wise_lady: { language: "en", gender: "female", description: "Wise, genial middle-aged woman with a British accent" },
10
7
  narrator_en_kind_girl: { language: "en", gender: "female", description: "Kind, calm young woman with an American accent" },
@@ -28,26 +25,20 @@ export const FACELESS_VOICES = {
28
25
  narrator_tr_mature_man: { language: "tr", gender: "male", description: "Deep, mature, soft-spoken man for social video (Turkish)" },
29
26
  };
30
27
  export const FACELESS_VOICE_NAMES = Object.keys(FACELESS_VOICES);
31
- /** The voice a run speaks when it names none; an explainer speaks the fastest voice of its script's language instead (#1216). */
32
28
  export const DEFAULT_FACELESS_VOICE = "narrator_en_wise_lady";
33
29
  export function isFacelessVoiceName(name) {
34
30
  return Object.hasOwn(FACELESS_VOICES, name);
35
31
  }
36
- /** Whole-take words per second of the voices measured live. A voice absent here is unmeasured. */
37
32
  export const FACELESS_MEASURED_WORDS_PER_SECOND = {
38
33
  narrator_en_wise_lady: 3.095, narrator_en_kind_girl: 3.125, narrator_en_firm_lady: 3.074, narrator_en_gentle_man: 3.324,
39
34
  narrator_en_deep_gentleman: 3.119, narrator_en_storyteller: 2.848, narrator_en_brisk_man: 3.606,
40
35
  narrator_tr_confident_woman: 2.418, narrator_tr_mature_man: 2.277,
41
36
  };
42
- /** Whole-take characters per second, spaces included, of the same voices. Words vary in length, so a script's length is */
43
- /** estimated on its characters where the voice has this measure. */
44
37
  export const FACELESS_MEASURED_CHARACTERS_PER_SECOND = {
45
38
  narrator_en_wise_lady: 15.115, narrator_en_kind_girl: 15.262, narrator_en_firm_lady: 15.011, narrator_en_gentle_man: 16.232,
46
39
  narrator_en_deep_gentleman: 15.229, narrator_en_storyteller: 13.908, narrator_en_brisk_man: 17.608,
47
40
  narrator_tr_confident_woman: 16.05, narrator_tr_mature_man: 15.118,
48
41
  };
49
- /** The voice a run speaks when it names none: an explainer's script is read by the fastest measured voice of its language,
50
- * every other format and a language without a measured voice by the default. */
51
42
  export function facelessDefaultVoiceName(input) {
52
43
  if (input?.format !== "explainer" || input.script === undefined)
53
44
  return DEFAULT_FACELESS_VOICE;
@@ -62,26 +53,20 @@ export function facelessDefaultVoiceName(input) {
62
53
  }
63
54
  return fastest ?? DEFAULT_FACELESS_VOICE;
64
55
  }
65
- /** The words per second a script's length is estimated at: the measured pace of the voice that will speak it (the named one, else the default for
66
- * the format and the script's language), the flat estimate when that voice is unmeasured or reads another alphabet than the script. */
67
56
  export function facelessSpeechWordsPerSecond(input) {
68
57
  const voice = measuredSpeaker(input);
69
58
  return (voice ? FACELESS_MEASURED_WORDS_PER_SECOND[voice] : undefined) ?? estimateWordsPerSecond(input.script);
70
59
  }
71
- /** The voice that will speak `input`, when its measures apply: none when it reads another alphabet than the script. */
72
60
  function measuredSpeaker(input) {
73
61
  const voice = input.voice !== undefined && isFacelessVoiceName(input.voice) ? input.voice : facelessDefaultVoiceName(input);
74
62
  const alphabet = detectScriptFamily(input.script);
75
63
  return alphabet === "neutral" || alphabet === VOICE_LANGUAGE[FACELESS_VOICES[voice].language].alphabet ? voice : undefined;
76
64
  }
77
- /** A faceless script's estimated narration length in seconds: its characters at the voice's measured rate, else its words at the */
78
- /** voice's pace; an estimate, as `estimateDurationSec` is. */
79
65
  export function facelessEstimatedSeconds(input) {
80
66
  const voice = measuredSpeaker(input), perSecond = voice ? FACELESS_MEASURED_CHARACTERS_PER_SECOND[voice] : undefined;
81
67
  const seconds = perSecond ? Array.from(input.script.trim()).length / perSecond : countWords(input.script) / facelessSpeechWordsPerSecond(input);
82
68
  return Math.max(1, Math.round(seconds));
83
69
  }
84
- /** How a warning names each offered language, and its alphabet; a language without a row does not compile. */
85
70
  const VOICE_LANGUAGE = {
86
71
  en: { voice: "an English voice", alphabet: "latin" },
87
72
  ru: { voice: "a Russian voice", alphabet: "cyrillic" },
@@ -93,8 +78,6 @@ const VOICE_LANGUAGE = {
93
78
  };
94
79
  const ALPHABET_LETTERS = { cyrillic: "Cyrillic letters", latin: "Latin letters" };
95
80
  const LIST_HINT = "list_voices with skill=make_faceless names the voices of each language";
96
- /** Fires only for a voice the client named. A script is judged by the alphabet most of its letters say; a brief */
97
- /** only when it holds no letter of the voice's alphabet, since it may ask for another language. */
98
81
  export function buildFacelessVoiceWarnings(input) {
99
82
  if (input.voice === undefined || !isFacelessVoiceName(input.voice))
100
83
  return [];
@@ -121,4 +104,3 @@ export function buildFacelessVoiceWarnings(input) {
121
104
  `a brief may ask for the narration's language in words; ${LIST_HINT}`,
122
105
  ];
123
106
  }
124
- //# sourceMappingURL=faceless-voices.js.map
@@ -1,14 +1,10 @@
1
1
  import { z } from "zod";
2
- /** Feedback from an agent (#941): a missing capability or a confusing answer, filed instead of rephrasing and giving up. */
3
- /** Free; it lands in the same queue a person's support request does, under the key's account. */
4
2
  export declare const FEEDBACK_PATH = "/v1/feedback";
5
3
  export declare const FEEDBACK_KINDS: readonly ["missing_capability", "confusing", "wrong_result", "slow"];
6
4
  export type FeedbackKind = (typeof FEEDBACK_KINDS)[number];
7
5
  export declare const FEEDBACK_TEXT_MAX_CHARS = 2000;
8
- /** New feedback per account per hour; a resend of the same feedback answers the first one and is not counted. */
9
6
  export declare const FEEDBACK_PER_HOUR = 20;
10
7
  export declare const FEEDBACK_WINDOW_SECONDS = 3600;
11
- /** How long the same kind, text and run answer the feedback already filed instead of filing it again. */
12
8
  export declare const FEEDBACK_REPLAY_WINDOW_SECONDS: number;
13
9
  export declare const feedbackRequest: z.ZodObject<{
14
10
  kind: z.ZodEnum<{
package/dist/feedback.js CHANGED
@@ -1,14 +1,10 @@
1
1
  import { z } from "zod";
2
2
  import { runId } from "./runs.js";
3
- /** Feedback from an agent (#941): a missing capability or a confusing answer, filed instead of rephrasing and giving up. */
4
- /** Free; it lands in the same queue a person's support request does, under the key's account. */
5
3
  export const FEEDBACK_PATH = "/v1/feedback";
6
4
  export const FEEDBACK_KINDS = ["missing_capability", "confusing", "wrong_result", "slow"];
7
5
  export const FEEDBACK_TEXT_MAX_CHARS = 2000;
8
- /** New feedback per account per hour; a resend of the same feedback answers the first one and is not counted. */
9
6
  export const FEEDBACK_PER_HOUR = 20;
10
7
  export const FEEDBACK_WINDOW_SECONDS = 3600;
11
- /** How long the same kind, text and run answer the feedback already filed instead of filing it again. */
12
8
  export const FEEDBACK_REPLAY_WINDOW_SECONDS = 24 * 3600;
13
9
  export const feedbackRequest = z.strictObject({
14
10
  kind: z.enum(FEEDBACK_KINDS).describe("missing_capability: no tool does what the user asked; confusing: an answer or description was unclear; " +
@@ -27,4 +23,3 @@ export const SEND_FEEDBACK_DESCRIPTION = "Tell Clipwright what is missing or wro
27
23
  "We read every one; when we reply, get_account lists the reply under support_replies with this feedback_id. " +
28
24
  "Free, spends nothing. Sending the same kind, text and run again within 24 hours answers the same " +
29
25
  `feedback_id. ${FEEDBACK_PER_HOUR} per hour per account.`;
30
- //# sourceMappingURL=feedback.js.map
@@ -1,7 +1,6 @@
1
1
  import { z } from "zod";
2
2
  export declare const FILM_DIRECTION_METHODS: readonly ["kinetic-launch", "website-proof-demo"];
3
3
  export type FilmDirectionMethod = (typeof FILM_DIRECTION_METHODS)[number];
4
- /** text: the phrase is on screen from the end of its words; hold: from the end of its words to the end of the film. */
5
4
  export declare const filmMoment: z.ZodObject<{
6
5
  id: z.ZodString;
7
6
  kind: z.ZodEnum<{
@@ -29,5 +28,4 @@ export declare const filmDirections: z.ZodObject<{
29
28
  captures: z.ZodBoolean;
30
29
  }, z.core.$strict>;
31
30
  export type FilmDirections = z.infer<typeof filmDirections>;
32
- /** The characters of `text` the film's scene fonts cannot draw, each once, in order. */
33
31
  export declare function missingKitGlyphs(text: string): string[];
@@ -1,8 +1,5 @@
1
1
  import { z } from "zod";
2
- // What a workflow method requires of an explainer film (#1461): exact phrases on screen at their words, and whether the run's pictures are
3
- // captures to show as supplied. A run stores it beside its request; a public body never carries it.
4
2
  export const FILM_DIRECTION_METHODS = ["kinetic-launch", "website-proof-demo"];
5
- /** text: the phrase is on screen from the end of its words; hold: from the end of its words to the end of the film. */
6
3
  export const filmMoment = z.strictObject({
7
4
  id: z.string().trim().min(1).max(64),
8
5
  kind: z.enum(["text", "hold"]),
@@ -12,16 +9,12 @@ export const filmMoment = z.strictObject({
12
9
  export const filmDirections = z.strictObject({
13
10
  method: z.enum(FILM_DIRECTION_METHODS),
14
11
  moments: z.array(filmMoment).max(100),
15
- /** The run's pictures are captures of a known product state: shown as supplied, never redrawn. */
16
12
  captures: z.boolean(),
17
13
  });
18
- /** Code points the film's scene fonts draw (latin, latin-ext and cyrillic subsets the kit loads; Vietnamese letters are another subset). */
19
14
  const KIT_GLYPHS = /^[ -~ -ɏЀ-џҐґҰұḀ-ẟỲ-ỿ -₠-⃏№™−]*$/u;
20
- /** The characters of `text` the film's scene fonts cannot draw, each once, in order. */
21
15
  export function missingKitGlyphs(text) {
22
16
  const normalized = text.normalize("NFC");
23
17
  if (KIT_GLYPHS.test(normalized))
24
18
  return [];
25
19
  return [...new Set([...normalized].filter(char => !KIT_GLYPHS.test(char)))];
26
20
  }
27
- //# sourceMappingURL=film-directions.js.map
@@ -4,16 +4,13 @@ export declare const FILM_DRAFT_PATH = "/v1/film-drafts/:id";
4
4
  export declare const FILM_DRAFT_FILES_PATH = "/v1/film-drafts/:id/files";
5
5
  export declare const filmDraftId: z.ZodString;
6
6
  export declare const FILM_SKILLS: readonly ["explainer"];
7
- /** The scene gate's bounds and its words for them (#1370): one source for the gate, the free check and a draft's save. */
8
7
  export declare const FILM_MAX_FILES = 12, FILM_FILE_MAX_BYTES = 40000, FILM_FILE_MAX_NODES = 8000;
9
8
  export declare const filmFilesRefusal: (count: number) => string;
10
9
  export declare const filmFileBytesRefusal: (name: string) => string;
11
10
  export declare const filmFileNodesRefusal: (name: string) => string;
12
11
  export declare const FILM_FILE_NAME: RegExp;
13
- /** A draft lives this long after its last change, and an account keeps at most this many. */
14
12
  export declare const FILM_DRAFT_TTL_DAYS = 7, FILM_DRAFTS_PER_ACCOUNT = 20;
15
13
  export declare const FILM_MAX_CUES = 200, FILM_MAX_SFX = 400, FILM_SFX_MAX_REPEATS = 40, FILM_CAPTIONS_MAX_CHARS = 4000;
16
- /** One sound event: one sound, a series (`n` × `step`), or key strokes on every word between `from` and `to`. */
17
14
  export declare const filmSfxEvent: z.ZodObject<{
18
15
  s: z.ZodString;
19
16
  at: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
@@ -25,16 +22,13 @@ export declare const filmSfxEvent: z.ZodObject<{
25
22
  to: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
26
23
  }, z.core.$strict>;
27
24
  export type FilmSfxEvent = z.infer<typeof filmSfxEvent>;
28
- /** The storyboard's bounds: phrases a film may hold, events a phrase may hold. */
29
25
  export declare const FILM_STORYBOARD_MAX_ROWS = 120, FILM_STORYBOARD_MAX_EVENTS = 24;
30
- /** One thing that happens on screen in a phrase: on a spoken word (offset seconds after it starts), or on an anchor of cues. */
31
26
  export declare const filmStoryboardEvent: z.ZodObject<{
32
27
  word: z.ZodString;
33
28
  anchor: z.ZodOptional<z.ZodString>;
34
29
  offset: z.ZodOptional<z.ZodNumber>;
35
30
  what: z.ZodString;
36
31
  }, z.core.$strict>;
37
- /** One phrase of the voice: its words, when the voice speaks it, and the events on its words. */
38
32
  export declare const filmStoryboardRow: z.ZodObject<{
39
33
  phrase: z.ZodString;
40
34
  start: z.ZodNumber;
@@ -357,7 +351,6 @@ export declare const filmDraft: z.ZodObject<{
357
351
  }, z.core.$strict>;
358
352
  export type FilmDraft = z.infer<typeof filmDraft>;
359
353
  export declare const FILM_DRAFT_CHECK_PATH = "/v1/film-drafts/:id/check";
360
- /** The free check (#1356): a draft revision, or the same changes put_film_files takes laid over it unsaved, read on a delivered voice. */
361
354
  export declare const checkFilmInput: z.ZodObject<{
362
355
  revision: z.ZodNumber;
363
356
  voice_run_id: z.ZodString;
@@ -464,7 +457,6 @@ export declare const filmCheck: z.ZodObject<{
464
457
  }, z.core.$strict>;
465
458
  }, z.core.$strict>;
466
459
  export type FilmCheck = z.infer<typeof filmCheck>;
467
- /** The draft's files after a patch, or the sentences saying why the patch is refused. Bytes are UTF-8, as the gate counts them. */
468
460
  export declare function patchFilmFiles(current: Readonly<Record<string, string>>, patch: Readonly<Record<string, string | null>>): {
469
461
  files: Record<string, string>;
470
462
  } | {