@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
package/dist/assets.js CHANGED
@@ -3,73 +3,50 @@ import { ASSET_KINDS, ASSET_MEDIA_TYPES, assetId } from "./asset-identity.js";
3
3
  import { mascotSummary } from "./mascots.js";
4
4
  import { runId } from "./runs.js";
5
5
  import { UPLOAD_MAX_BYTES, UPLOAD_MEDIA_TYPES, uploadId } from "./uploads.js";
6
- /** Account assets (clipwright#724 F2): pictures and clips kept until the customer deletes them, under a cap per account. */
7
6
  export const ASSETS_PATH = "/v1/assets";
8
- /** Raw bytes of one picture or clip, for the cabinet; role, name and the rights confirmation travel in the query. */
9
7
  export const ASSET_BYTES_PATH = "/v1/assets/bytes";
10
8
  export const ASSET_ITEM_PATH = "/v1/assets/:id";
11
9
  export const ASSET_ACCOUNT_MAX_COUNT = 2000;
12
- /** Storage per account: 1 GB until its first credit purchase, then 20 GB. */
13
10
  export const ASSET_TRIAL_MAX_BYTES = 1_000_000_000;
14
11
  export const ASSET_ACCOUNT_MAX_BYTES = 20_000_000_000;
15
- /** New assets per account over a sliding day, deleted ones included: a delete does not give the slot back. */
16
12
  export const ASSET_INGEST_DAILY_CAP = 100;
17
13
  export const ASSET_INGEST_WINDOW_SECONDS = 86_400;
18
- /** Raw bytes of a picture passed inline; its base64 still fits the 1 MiB JSON body of the API and of MCP. */
19
14
  export const ASSET_BASE64_MAX_BYTES = 700_000;
20
15
  export const ASSET_BASE64_MAX_CHARS = Math.ceil(ASSET_BASE64_MAX_BYTES / 3) * 4;
21
16
  export const ASSET_URL_TTL_SECONDS = 3600;
22
- /** A deleted asset's object, and a run's files after its media delete (#1093), stay this long, so a generation admitted just */
23
- /** before the delete still reads it. The one number for both; the cleanups read it here. */
24
17
  export const ASSET_DELETE_GRACE_DAYS = 7;
25
18
  export const ASSET_NAME_MAX_CHARS = 80;
26
19
  export const ASSET_LIST_MAX_LIMIT = 100;
27
- /** The page `list_assets` asks when the agent names no limit (#1372): the API's 50 overflowed an agent's tool output. */
28
20
  export const ASSET_TOOL_PAGE = 8;
29
- /** The most characters one `list_assets` answer carries (#1376): a page of 20 assets with their signed links runs past an agent's tool output,
30
- * so a page longer than this is asked again at the count that fits. */
31
21
  export const ASSET_TOOL_ANSWER_CHARS = 12_000;
32
- /** A customer clip: up to 100 MiB and 120 s, a non-fragmented MP4 in h264 or hevc. */
33
22
  export const ASSET_VIDEO_MAX_BYTES = 100 * 1024 * 1024;
34
23
  export const ASSET_VIDEO_MAX_SECONDS = 120;
35
24
  export const ASSET_VIDEO_CODECS = ["h264", "hevc"];
36
- /** A clip sent as the body of `POST /v1/assets/bytes`: the API holds the body in memory before staging it. */
37
25
  export const ASSET_BYTES_ROUTE_VIDEO_MAX_BYTES = 32 * 1024 * 1024;
38
- /** How long a clip in processing may take before reads call it failed: a 90 s download inside a 5 minute task. */
39
26
  export const ASSET_PROCESSING_SECONDS = 600;
40
27
  export const ASSET_VIDEO_DOWNLOAD_DEADLINE_MS = 90_000;
41
28
  export const ASSET_INGEST_TASK_MAX_DURATION_SECONDS = 300;
42
29
  export const ASSET_PUT_MEDIA_TYPES = ["image/png", "image/jpeg", "video/mp4"];
43
- /** The task that downloads or reads a staged file, checks it and publishes the asset. */
44
30
  export const INGEST_ASSET_MEDIA_TASK = "ingest-asset-media";
45
- /** The cabinet's preview of an asset (S4a): a WebP at `assets/<account>/<id>/preview.webp`, long side at most 512, no upscale. */
46
31
  export const ASSET_PREVIEW_TASK = "make-asset-preview";
47
32
  export const ASSET_PREVIEW_MAX_SIDE = 512;
48
33
  export const ASSET_PREVIEW_QUALITY = 75;
49
34
  export const ASSET_PREVIEW_SWEEP_BATCH = 200;
50
- /** Past this many attempts a row leaves the queue as `gave_up`: an OOM or a hung R2 never loops for ever. */
51
35
  export const ASSET_PREVIEW_MAX_ATTEMPTS = 6;
52
- /** How long creating an asset waits to queue its preview; past it the hourly sweep picks the row up. */
53
36
  export const ASSET_PREVIEW_ENQUEUE_TIMEOUT_MS = 2000;
54
- /** Terminal codes only; a passing failure throws, and the next attempt or the sweep repeats it. */
55
37
  export const ASSET_PREVIEW_ERRORS = ["decode_failed", "size_mismatch", "empty_output", "gave_up"];
56
38
  export const ASSET_ROLES = ["character", "location", "style", "prop", "other"];
57
39
  export { ASSET_KINDS, ASSET_MEDIA_TYPES, assetId };
58
- /** `post`: a reel resolved from its link by analyze_reference (#930 S3), always analysis-only. */
59
40
  export const ASSET_SOURCE_TYPES = ["generation", "upload", "url", "base64", "bytes", "put", "post"];
60
- // biome-ignore lint/suspicious/noControlCharactersInRegex: the class names exactly the characters a name may not hold.
61
41
  const CONTROL_CHARACTERS = /[\u0000-\u001f\u007f-\u009f]/;
62
42
  export const assetName = z.string().trim().min(1).max(ASSET_NAME_MAX_CHARS)
63
43
  .refine((name) => !CONTROL_CHARACTERS.test(name), "a name holds no control characters");
64
44
  const sha256Hex = z.string().regex(/^[a-f0-9]{64}$/);
65
- /** A file the client PUTs itself: its type, exact size and sha256, checked against the bytes before the asset exists. */
66
45
  export const assetPutSource = z.strictObject({
67
46
  media_type: z.enum(ASSET_PUT_MEDIA_TYPES),
68
47
  bytes: z.number().int().positive().max(ASSET_VIDEO_MAX_BYTES),
69
48
  sha256: sha256Hex,
70
49
  }).refine((put) => put.media_type === "video/mp4" || put.bytes <= UPLOAD_MAX_BYTES, `a picture is at most ${UPLOAD_MAX_BYTES} bytes`);
71
- /** Where the asset's bytes come from: an own generation, an own upload, a public https url (`kind: "video"` for a clip), */
72
- /** inline base64, or a presigned PUT. */
73
50
  export const assetSource = z.union([
74
51
  z.strictObject({ run_id: runId }),
75
52
  z.strictObject({ upload_id: uploadId }),
@@ -78,10 +55,8 @@ export const assetSource = z.union([
78
55
  media_type: z.enum(UPLOAD_MEDIA_TYPES) }),
79
56
  z.strictObject({ put: assetPutSource }),
80
57
  ]);
81
- /** Why a render or generation refuses an analysis-only asset (#884); the caller prefixes the field and the id. */
82
58
  export const ANALYSIS_ONLY_ASSET_REFUSAL = "is an analysis-only asset: analyze_reference reads it, but it never reaches a render or a " +
83
59
  "generation; to use the material, create it again with rights_confirmed: true";
84
- /** The customer's own material needs `rights_confirmed` (stated once, at creation) or `analysis_only`, which keeps it out of every render. */
85
60
  export const createAssetRequest = z.strictObject({
86
61
  source: assetSource,
87
62
  role: z.enum(ASSET_ROLES),
@@ -94,7 +69,6 @@ export const createAssetRequest = z.strictObject({
94
69
  }).refine((request) => !(request.analysis_only && "run_id" in request.source), {
95
70
  path: ["analysis_only"], message: "a generation of this account is already yours to use; analysis_only is for your own material",
96
71
  });
97
- /** The query of `POST /v1/assets/bytes`. */
98
72
  export const assetBytesQuery = z.strictObject({
99
73
  role: z.enum(ASSET_ROLES),
100
74
  name: assetName,
@@ -108,7 +82,6 @@ export const updateAssetRequest = z.strictObject({
108
82
  export const assetListQuery = z.strictObject({
109
83
  role: z.enum(ASSET_ROLES).optional(),
110
84
  kind: z.enum(ASSET_KINDS).optional(),
111
- /** `true` lists only the mascots of this account (#1257): the cover of each, with the poses it holds. */
112
85
  mascot: z.literal("true").optional(),
113
86
  limit: z.coerce.number().int().min(1).max(ASSET_LIST_MAX_LIMIT).optional(),
114
87
  cursor: z.string().regex(/^[A-Za-z0-9_-]{1,200}$/).optional(),
@@ -129,25 +102,20 @@ export const asset = z.strictObject({
129
102
  pix_fmt: z.string().min(1).nullable(),
130
103
  content_digest: sha256Hex,
131
104
  source_type: z.enum(ASSET_SOURCE_TYPES),
132
- /** Kept for analysis only (#884): no render or generation takes it. */
133
105
  analysis_only: z.boolean(),
134
- /** Present when the asset is the cover of a saved mascot (#1257): pass its id as mascot_id to make_faceless. */
135
106
  mascot: mascotSummary.optional(),
136
107
  url: z.string().url().startsWith("https://"),
137
- /** The one-asset read only (#1372): a small WebP of the picture, long side at most 512, signed like `url`; absent until it is made. */
138
108
  preview_url: z.string().url().startsWith("https://").optional(),
139
109
  expires_at: z.string().datetime(),
140
110
  created_at: z.string().datetime(),
141
111
  updated_at: z.string().datetime(),
142
112
  });
143
- /** Where a PUT goes: signed for 15 minutes with exactly these two headers, and finished within a day. */
144
113
  export const assetPutUpload = z.strictObject({
145
114
  put_url: z.string().url().startsWith("https://"),
146
115
  put_headers: z.strictObject({ "content-type": z.enum(ASSET_PUT_MEDIA_TYPES), "content-length": z.string().regex(/^\d+$/) }),
147
116
  expires_at: z.string().datetime(),
148
117
  finish_by: z.string().datetime(),
149
118
  });
150
- /** An asset before it exists: waiting for its PUT, being checked, or refused with the reason. */
151
119
  export const ASSET_PENDING_STATES = ["awaiting_upload", "processing", "failed"];
152
120
  export const pendingAsset = z.strictObject({
153
121
  asset_id: assetId,
@@ -160,25 +128,20 @@ export const pendingAsset = z.strictObject({
160
128
  error: z.strictObject({ code: z.string().min(1), message: z.string().min(1) }).nullable(),
161
129
  processing_deadline: z.string().datetime().nullable(),
162
130
  created_at: z.string().datetime(),
163
- /** Only in the answer that created the asset, or its repeat. */
164
131
  upload: assetPutUpload.optional(),
165
132
  });
166
133
  export const assetItem = z.union([asset, pendingAsset]);
167
- /** Why a pending asset failed, as `error.code`; these never come as an HTTP error of their own. */
168
134
  export const ASSET_INGEST_FAILURE_CODES = [
169
135
  "upload_expired", "upload_size_mismatch", "upload_digest_mismatch", "unsupported_media_type", "invalid_image", "invalid_video",
170
136
  "payload_too_large", "url_fetch_refused", "url_fetch_failed", "asset_cap_exceeded", "asset_ingest_cap_exceeded",
171
137
  "url_import_disabled", "ingest_timed_out", "ingest_enqueue_failed", "ingest_failed",
172
138
  ];
173
- /** What starts an asset check: which pending asset, and whether its bytes are at a url or already staged. */
174
139
  export const ingestAssetMediaPayload = z.strictObject({
175
140
  assetId,
176
141
  accountId: z.string().regex(/^[A-Za-z0-9_-]{1,64}$/),
177
142
  source: z.enum(["url", "staging", "post"]),
178
143
  });
179
- /** The preview task takes the id only; it reads the account from the row. */
180
144
  export const assetPreviewPayload = z.strictObject({ assetId });
181
- /** One run per asset across every caller: created with `scope: "global"`, since a raw string inside a task is per run. */
182
145
  export const assetPreviewIdempotencyKey = (id) => `asset-preview:${id}`;
183
146
  export const assetPreviewKey = (accountId, id) => `assets/${accountId}/${id}/preview.webp`;
184
147
  export const assetUsage = z.strictObject({
@@ -187,7 +150,6 @@ export const assetUsage = z.strictObject({
187
150
  max_count: z.number().int().positive(),
188
151
  max_bytes: z.number().int().positive(),
189
152
  });
190
- /** `pending` holds the account's assets still in progress and those refused within the day; the first page only. */
191
153
  export const assetList = z.strictObject({
192
154
  assets: z.array(asset),
193
155
  pending: z.array(pendingAsset),
@@ -195,7 +157,6 @@ export const assetList = z.strictObject({
195
157
  usage: assetUsage,
196
158
  contract_version: z.string().min(1),
197
159
  });
198
- // What installed clients parse: open strings for the enums, and unknown keys are kept.
199
160
  export const assetRead = asset.extend({
200
161
  state: z.literal("ready"), kind: z.string().min(1), role: z.string().min(1), media_type: z.string().min(1), source_type: z.string().min(1),
201
162
  analysis_only: z.boolean().optional(),
@@ -210,14 +171,12 @@ export const assetItemRead = z.union([assetRead, pendingAssetRead]);
210
171
  export const assetListRead = assetList.extend({
211
172
  assets: z.array(assetRead), pending: z.array(pendingAssetRead).optional(), usage: assetUsage.loose(),
212
173
  }).loose();
213
- /** The asset's own object: a new id per asset, so a copy never overwrites another asset. */
214
174
  export function assetKey(accountId, id, sha256, mediaType) {
215
175
  const extension = { "image/png": "png", "image/jpeg": "jpg", "image/webp": "webp", "video/mp4": "mp4" }[mediaType];
216
176
  return `assets/${accountId}/${id}/${sha256}.${extension}`;
217
177
  }
218
178
  const gigabytes = (bytes) => `${bytes / 1e9} GB`;
219
179
  const STORAGE_TERMS = `${gigabytes(ASSET_TRIAL_MAX_BYTES)}, or ${gigabytes(ASSET_ACCOUNT_MAX_BYTES)} once it has bought credits, as a pack or a plan`;
220
- /** The asset_cap_exceeded text: the account's own ceilings, and on a bytes refusal below 20 GB what raises it. */
221
180
  export function assetCapMessage(cap, usage, maxBytes) {
222
181
  const raise = cap === "bytes" && maxBytes < ASSET_ACCOUNT_MAX_BYTES
223
182
  ? ` Buying credits once, as a pack or a plan, raises this account's storage ceiling to ${gigabytes(ASSET_ACCOUNT_MAX_BYTES)}.` : "";
@@ -254,4 +213,3 @@ export const UPDATE_ASSET_DESCRIPTION = "Rename an asset or change its role; the
254
213
  export const DELETE_ASSET_DESCRIPTION = "Delete an asset by asset_id. It leaves the list at once and a new generation can no longer use it; its file is " +
255
214
  `removed from our storage by a daily cleanup once ${ASSET_DELETE_GRACE_DAYS} days have passed. Runs already made with it ` +
256
215
  "stay as they are. Free.";
257
- //# sourceMappingURL=assets.js.map
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- /** Server-authored terms, exposed read-only on runs; never accepted as skill input. */
3
2
  export declare const faceBillingAdmissionTermsSchema: z.ZodReadonly<z.ZodObject<{
4
3
  mode: z.ZodLiteral<"face_seconds">;
5
4
  tariffSnapshot: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
@@ -37,7 +36,6 @@ export declare const faceBillingAdmissionTermsSchema: z.ZodReadonly<z.ZodObject<
37
36
  }, z.core.$strict>>]>;
38
37
  }, z.core.$strict>>;
39
38
  export type FaceBillingAdmissionTerms = z.infer<typeof faceBillingAdmissionTermsSchema>;
40
- /** A short run's parts tariff (#800): billed by its measured duration on the short run's settlement path. */
41
39
  export declare const durationPartsAdmissionTermsSchema: z.ZodReadonly<z.ZodObject<{
42
40
  mode: z.ZodLiteral<"duration_parts">;
43
41
  tariffSnapshot: z.ZodReadonly<z.ZodObject<{
@@ -52,7 +50,6 @@ export declare const durationPartsAdmissionTermsSchema: z.ZodReadonly<z.ZodObjec
52
50
  }, z.core.$strict>>;
53
51
  }, z.core.$strict>>;
54
52
  export type DurationPartsAdmissionTerms = z.infer<typeof durationPartsAdmissionTermsSchema>;
55
- /** Every mode a run's billing terms, frozen at admission, may hold. */
56
53
  export declare const runBillingAdmissionTermsSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
57
54
  mode: z.ZodLiteral<"face_seconds">;
58
55
  tariffSnapshot: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
@@ -1,16 +1,12 @@
1
1
  import { z } from "zod";
2
2
  import { faceBillingTariffSchema } from "./face-billing.js";
3
3
  import { durationPartsTariffSchema } from "./parts-pricing.js";
4
- /** Server-authored terms, exposed read-only on runs; never accepted as skill input. */
5
4
  export const faceBillingAdmissionTermsSchema = z.object({
6
5
  mode: z.literal("face_seconds"),
7
6
  tariffSnapshot: faceBillingTariffSchema,
8
7
  }).strict().readonly();
9
- /** A short run's parts tariff (#800): billed by its measured duration on the short run's settlement path. */
10
8
  export const durationPartsAdmissionTermsSchema = z.object({
11
9
  mode: z.literal("duration_parts"),
12
10
  tariffSnapshot: durationPartsTariffSchema,
13
11
  }).strict().readonly();
14
- /** Every mode a run's billing terms, frozen at admission, may hold. */
15
12
  export const runBillingAdmissionTermsSchema = z.union([faceBillingAdmissionTermsSchema, durationPartsAdmissionTermsSchema]);
16
- //# sourceMappingURL=billing-terms.js.map
@@ -3,10 +3,8 @@ import { type DesignPalette } from "./design.js";
3
3
  import { type ReferenceProfileAnswer } from "./reference-profile.js";
4
4
  export declare const BRAND_STYLES_PATH = "/v1/brand-styles";
5
5
  export declare const BRAND_STYLE_PROPOSE_PATH = "/v1/brand-styles/propose";
6
- /** An account keeps at most this many styles. */
7
6
  export declare const BRAND_STYLES_PER_ACCOUNT = 12;
8
7
  export declare const brandStyleName: z.ZodString;
9
- /** A style's design: any brand design but a logo, which a style taken from someone else's video never carries. */
10
8
  export declare const brandStyleDesign: z.ZodObject<{
11
9
  look: z.ZodOptional<z.ZodEnum<{
12
10
  electric_lime: "electric_lime";
@@ -82,7 +80,6 @@ export declare const brandStyleDesign: z.ZodObject<{
82
80
  zine: "zine";
83
81
  }>>;
84
82
  }, z.core.$strict>;
85
- /** How the reference moves and captions: kept with the style and shown; the drawing reads its design. */
86
83
  export declare const brandStyleHabits: z.ZodObject<{
87
84
  transition: z.ZodEnum<{
88
85
  cut: "cut";
@@ -372,7 +369,6 @@ export declare const brandStyle: z.ZodObject<{
372
369
  updated_at: z.ZodString;
373
370
  }, z.core.$strict>;
374
371
  export type BrandStyle = z.infer<typeof brandStyle>;
375
- /** The kit as read and saved: its parts, our looks and faces, and the account's saved styles. */
376
372
  export declare const brandKitWithStyles: z.ZodObject<{
377
373
  design: z.ZodNullable<z.ZodObject<{
378
374
  look: z.ZodOptional<z.ZodEnum<{
@@ -850,12 +846,10 @@ export declare const brandStyleProposal: z.ZodObject<{
850
846
  warnings: z.ZodArray<z.ZodString>;
851
847
  }, z.core.$strict>;
852
848
  export type BrandStyleProposal = z.infer<typeof brandStyleProposal>;
853
- /** The reference's palette as five brand roles, every text pair readable; a purple is moved to teal and named, as our own looks never hold one. */
854
849
  export declare function paletteFromReference(colours: readonly string[]): {
855
850
  palette: DesignPalette;
856
851
  warnings: string[];
857
852
  };
858
- /** A style read from one analysis's profile, free and repeatable: the same profile always proposes the same style. */
859
853
  export declare function proposeStyleFromProfile(profile: Pick<ReferenceProfileAnswer, "palette" | "captions" | "beats" | "pacing">, input: {
860
854
  analysisId: string;
861
855
  name?: string;
@@ -6,17 +6,12 @@ import { isScenePurple, SCENE_BRAND_TEAL } from "./scene-graph.js";
6
6
  import { CAPTION_EMPHASIS_LOOKS } from "./skills.js";
7
7
  import { skillThemeOverrides } from "./skill-theme.js";
8
8
  import { contrastRatio } from "./templates/theme.js";
9
- // A style built from a reference video (#1364): a named design saved beside the brand kit, with the reference's habits. The proposal is a free
10
- // reading of an analysis already paid for; the donor gives colours, faces and habits, never its logo, characters or frames.
11
9
  export const BRAND_STYLES_PATH = "/v1/brand-styles";
12
10
  export const BRAND_STYLE_PROPOSE_PATH = "/v1/brand-styles/propose";
13
- /** An account keeps at most this many styles. */
14
11
  export const BRAND_STYLES_PER_ACCOUNT = 12;
15
12
  export const brandStyleName = z.string().regex(/^[a-z0-9][a-z0-9_-]{0,39}$/, "a style name is 1–40 of a-z, 0-9, _ and -, starting with a letter or digit");
16
- /** A style's design: any brand design but a logo, which a style taken from someone else's video never carries. */
17
13
  export const brandStyleDesign = design.refine(value => value.logo_asset_id === undefined, { path: ["logo_asset_id"], message: "a style carries no logo; the brand kit's design holds yours" });
18
14
  const EMPHASIS = [...CAPTION_EMPHASIS_LOOKS, "none"];
19
- /** How the reference moves and captions: kept with the style and shown; the drawing reads its design. */
20
15
  export const brandStyleHabits = z.strictObject({
21
16
  transition: z.enum(REFERENCE_TRANSITIONS).describe("The reference's most frequent transition between beats"),
22
17
  transition_device: z.enum(REFERENCE_TRANSITION_DEVICES).optional().describe("The transition by name when transition is other"),
@@ -37,7 +32,6 @@ export const brandStyle = z.strictObject({
37
32
  created_at: z.string(),
38
33
  updated_at: z.string(),
39
34
  });
40
- /** The kit as read and saved: its parts, our looks and faces, and the account's saved styles. */
41
35
  export const brandKitWithStyles = brandKit.extend({ styles: z.array(brandStyle).default([]) });
42
36
  export const proposeBrandStyleInput = z.strictObject({
43
37
  analysis_id: referenceAnalysisId.describe("A finished full analyze_reference of this account"),
@@ -46,16 +40,13 @@ export const proposeBrandStyleInput = z.strictObject({
46
40
  const HEX = z.string().regex(/^#[0-9A-F]{6}$/);
47
41
  export const brandStyleProposal = z.strictObject({
48
42
  style: z.strictObject({ name: brandStyleName, design: brandStyleDesign, habits: brandStyleHabits, source_analysis_id: referenceAnalysisId }),
49
- /** What the proposal was read from. */
50
43
  evidence: z.strictObject({
51
44
  palette: z.array(HEX).max(8),
52
45
  transitions: z.array(z.strictObject({ transition: z.enum(REFERENCE_TRANSITIONS), beats: z.number().int().positive() })),
53
46
  }),
54
- /** Pass to create_film_draft as theme_overrides to draw sample stills in the proposal before saving it. */
55
47
  theme_overrides: skillThemeOverrides,
56
48
  warnings: z.array(z.string()),
57
49
  });
58
- /** Faces by the reference's caption look, else by its pace: the typeface itself is not read, so the proposal names its pick. */
59
50
  const FACES_BY_EMPHASIS = {
60
51
  box: { display: "Oswald", body: "Roboto" },
61
52
  pill: { display: "Plus Jakarta Sans", body: "Inter" },
@@ -70,14 +61,12 @@ const FACES_BY_MOTION = {
70
61
  };
71
62
  const RADIUS_BY_EMPHASIS = { box: "square", pill: "pill", punch: "soft", color: "round", none: "soft" };
72
63
  const motionOf = (cutEvery) => cutEvery < 1.5 ? "punchy" : cutEvery < 2.5 ? "playful" : cutEvery < 4 ? "premium" : "calm";
73
- /** Low saturation, or near white or black: a colour that grounds rather than accents. */
74
64
  const neutral = (hex) => { const { s, l } = hexToHsl(hex); return s < 0.2 || l > 0.92 || l < 0.12; };
75
65
  const mix = (from, to, t) => {
76
66
  const [a, b] = [from, to].map(hex => [1, 3, 5].map(at => Number.parseInt(hex.slice(at, at + 2), 16)));
77
67
  return `#${a.map((v, i) => Math.round(v + (b[i] - v) * t).toString(16).padStart(2, "0")).join("").toUpperCase()}`;
78
68
  };
79
69
  const TEAL_HUE = hexToHsl(SCENE_BRAND_TEAL).h;
80
- /** The reference's palette as five brand roles, every text pair readable; a purple is moved to teal and named, as our own looks never hold one. */
81
70
  export function paletteFromReference(colours) {
82
71
  const warnings = [];
83
72
  const repaired = colours.map(hex => {
@@ -103,7 +92,6 @@ export function paletteFromReference(colours) {
103
92
  const accentInk = readableShade(contrastRatio(ink, accent) >= contrastRatio(background, accent) ? ink : background, accent);
104
93
  return { palette: designPalette.parse({ background, surface, ink, accent, accent_ink: accentInk }), warnings };
105
94
  }
106
- /** A style read from one analysis's profile, free and repeatable: the same profile always proposes the same style. */
107
95
  export function proposeStyleFromProfile(profile, input) {
108
96
  const { palette, warnings } = paletteFromReference(profile.palette);
109
97
  const emphasis = profile.captions.present ? profile.captions.emphasis_style : "none";
@@ -128,4 +116,3 @@ export function proposeStyleFromProfile(profile, input) {
128
116
  warnings,
129
117
  });
130
118
  }
131
- //# sourceMappingURL=brand-styles.js.map
@@ -20,4 +20,3 @@ export function storedBrollPolicy(input) {
20
20
  ? input.resolved_broll_policy : undefined;
21
21
  return resolveBrollPolicy(undefined, value);
22
22
  }
23
- //# sourceMappingURL=broll-policy.js.map
@@ -1,6 +1,4 @@
1
- /** Ratios this close, in absolute difference, fill the canvas with no bars. */
2
1
  export declare const EXACT_FIT_EPSILON = 0.002;
3
- /** Whether a picture fills the canvas exactly, as `fitClipToCanvas` decides `exact` at `EXACT_FIT_EPSILON`. */
4
2
  export declare function isExactFit(picture: {
5
3
  width: number;
6
4
  height: number;
@@ -1,8 +1,4 @@
1
- // The composition keeps its own copy of these, since it cannot import this package; a parity test holds them equal.
2
- /** Ratios this close, in absolute difference, fill the canvas with no bars. */
3
1
  export const EXACT_FIT_EPSILON = 0.002;
4
- /** Whether a picture fills the canvas exactly, as `fitClipToCanvas` decides `exact` at `EXACT_FIT_EPSILON`. */
5
2
  export function isExactFit(picture, canvas, epsilon) {
6
3
  return Math.abs(picture.width / picture.height - canvas.width / canvas.height) <= epsilon;
7
4
  }
8
- //# sourceMappingURL=canvas-fit.js.map
@@ -3,8 +3,6 @@ type Found = {
3
3
  word: string;
4
4
  end: number;
5
5
  };
6
- /** The word a text asks viewers to comment or send (a caption, the spoken words or one screen text), upper case, with the offset its own last */
7
- /** letter ends at, so a cut caption can tell a word it may have shortened; "any" for any word; else `null`. */
8
6
  export declare function captionFunnel(text: string | null | undefined): Found | null;
9
7
  export declare const captionFunnelWord: (text: string | null | undefined) => string | null;
10
8
  export {};
@@ -1,7 +1,4 @@
1
- // The code word a text asks viewers to comment or send (#917, #1422), read by trend cards, creator profiles and reference analyses alike:
2
- // "Comment LIST", a Russian "write «ESTIMATE»", a Japanese "「LIST」 then comment". Verb-first languages name it after the verb, verb-last ones before.
3
1
  export const CAPTION_FUNNEL_MAX_CHARS = 24;
4
- /** Imperatives that ask for a comment or a message, the word after them. */
5
2
  const VERBS_FIRST = [
6
3
  "comment", "type", "drop", "dm", "message", "send", "reply", "write",
7
4
  "напиши", "напишите", "пиши", "пишите", "оставь", "оставьте", "отправь", "отправьте", "комментируй", "комментируйте",
@@ -16,9 +13,7 @@ const VERBS_FIRST = [
16
13
  "comentează", "scrie", "írd", "kommenteld", "komentiraj", "napiši", "σχολίασε", "γράψε", "напишете", "коментирай",
17
14
  "komentari", "ketik", "tulis", "kirim", "bình luận", "comment mo", "i-comment", "評論", "评论", "留言", "私信",
18
15
  ];
19
- /** Verbs that close the ask in languages that put the verb last: the quoted or capital word comes just before. */
20
16
  const VERBS_LAST = ["コメント", "書いて", "送って", "댓글", "남겨", "적어", "보내", "yaz", "yorum", "gönder", "कमेंट", "लिखें", "लिखो", "लिखिए", "எழுது", "கமெண்ட்"];
21
- /** Words between the verb and the code word: "DM me", "the word", "in the comments", in each language. */
22
17
  const FILLER = new Set([
23
18
  "me", "us", "the", "a", "word", "below", "down", "in", "comments", "comment", "dms", "section", "here",
24
19
  "мне", "слово", "в", "комментариях", "комментарии", "комменты", "комментах", "директ", "личку", "ниже", "у", "коментарях", "мені",
@@ -26,7 +21,6 @@ const FILLER = new Set([
26
21
  "le", "mot", "commentaire", "commentaires", "moi", "dessous", "ci-dessous", "mir", "das", "wort", "die", "kommentare", "unten",
27
22
  "parola", "nei", "commenti", "qui", "sotto", "mi", "słowo", "w", "komentarzu", "komentarzach", "poniżej", "het", "woord", "de", "reacties", "hieronder",
28
23
  ]);
29
- /** Words that are not a code word when nothing marks one: "comment your thoughts", and the same in each language. */
30
24
  const NOT_A_CODE_WORD = new Set([
31
25
  "what", "your", "yours", "my", "if", "this", "that", "it", "them", "how", "why", "and", "or", "to", "for", "something", "which", "who", "where", "when",
32
26
  "follow", "like", "share", "save", "subscribe", "please", "now", "us", "me", "back", "you", "him", "her",
@@ -34,23 +28,19 @@ const NOT_A_CODE_WORD = new Set([
34
28
  "lo", "que", "tu", "tus", "si", "qué", "o", "y", "e", "seu", "sua", "ce", "tes", "ton", "ta", "et", "ou", "dein", "deine", "was", "und", "oder",
35
29
  "il", "tuo", "tua", "che", "co", "czy", "i", "wat", "je", "jouw",
36
30
  ]);
37
- /** What a viewer gets for the word, right after it: the mark of a code word in plain speech ("comment list and I'll send you…"). */
38
31
  const AFTER_WORD = /^[\s,.!:;—–-]*(?:and i\b|and i'll|and i will|and we|and get|and you'll|and you will|to get|to receive|for the|for my|for a|for free|and receive|и я|и мы|и получи|и пришлю|и отправлю|чтобы получить|і я|щоб отримати|y te|y yo|y recibe|para recibir|e eu|e te|e receba|para receber|et je|et on|pour recevoir|und ich|und du|und erhalte|e ti|e io|per ricevere|a ja|i wyślę|żeby dostać|en ik|en ontvang)(?![\p{L}\p{N}])/u;
39
32
  const QUOTES = "\"'“”‘’«»„「」『』";
40
- /** A quoted word, with the space French puts inside « »; bold or italic marks quote it as well: `Comment **EDITOR**`. */
41
33
  const MARK = `(?:[${QUOTES}] ?|\\*{1,2})`, UNMARK = `(?: ?[${QUOTES}]|\\*{1,2})`;
42
34
  const QUOTED = new RegExp(`^${MARK}([\\p{L}\\p{N}][\\p{L}\\p{N}-]{0,22})${UNMARK}`, "u");
43
35
  const CAPS = /^(\p{Lu}[\p{Lu}\p{N}]{1,22})(?![\p{L}\p{N}])/u;
44
36
  const PLAIN = /^([\p{L}\p{N}][\p{L}\p{N}-]{1,22})(?![\p{L}\p{N}])/u;
45
37
  const ANY = /^(?:anything|any word|any emoji|что угодно|любое слово|cualquier cosa|qualquer coisa|n'importe quoi)(?![\p{L}\p{N}])/u;
46
38
  const literal = (word) => word.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
47
- /** A Latin, Cyrillic or Greek verb stands on word boundaries; a CJK, Hangul or Indic one has none to stand on. */
48
39
  const bounded = (verb) => (/^[\p{Script=Latin}\p{Script=Cyrillic}\p{Script=Greek}\s'-]+$/u.test(verb)
49
40
  ? `(?<![\\p{L}\\p{N}])${literal(verb)}(?![\\p{L}\\p{N}])` : literal(verb));
50
41
  const VERB_FIRST = new RegExp(VERBS_FIRST.map(bounded).join("|"), "gu");
51
42
  const VERB_LAST = new RegExp(`(?:${MARK}([\\p{L}\\p{N}][\\p{L}\\p{N}-]{0,22})${UNMARK}|(?<![\\p{L}\\p{N}])(\\p{Lu}[\\p{Lu}\\p{N}]{1,22})(?![\\p{Lu}\\p{Ll}\\p{N}]))`
52
43
  + `[^\\n]{0,12}?(?:${VERBS_LAST.map(literal).join("|")})`, "gu");
53
- /** The word after a verb at `from`: past the filler, then quoted, in capitals (unless the verb shouts too), or plain with what the viewer gets. */
54
44
  function wordAfter(text, lower, from, shouting) {
55
45
  let at = from;
56
46
  for (;;) {
@@ -74,18 +64,14 @@ function wordAfter(text, lower, from, shouting) {
74
64
  return null;
75
65
  return AFTER_WORD.test(lower.slice(at + plain.length, at + plain.length + 40)) ? { word: plain, end: at + plain.length } : null;
76
66
  }
77
- /** The word a text asks viewers to comment or send (a caption, the spoken words or one screen text), upper case, with the offset its own last */
78
- /** letter ends at, so a cut caption can tell a word it may have shortened; "any" for any word; else `null`. */
79
67
  export function captionFunnel(text) {
80
68
  if (typeof text !== "string")
81
69
  return null;
82
70
  const lower = text.toLowerCase();
83
- // Lower case keeps every offset of these scripts; a text it would reshape is read no further.
84
71
  if (lower.length !== text.length)
85
72
  return null;
86
73
  for (const verb of lower.matchAll(VERB_FIRST)) {
87
74
  const said = text.slice(verb.index, verb.index + verb[0].length);
88
- // "DM" is written in capitals anyway; a longer verb in capitals means the whole line shouts.
89
75
  const found = wordAfter(text, lower, verb.index + verb[0].length, said.length > 2 && said === said.toUpperCase() && said !== said.toLowerCase());
90
76
  if (found)
91
77
  return { word: found.word === "any" ? "any" : found.word.toUpperCase(), end: found.end };
@@ -98,4 +84,3 @@ export function captionFunnel(text) {
98
84
  return { word: word.toUpperCase(), end: last.index + last[0].indexOf(word) + word.length };
99
85
  }
100
86
  export const captionFunnelWord = (text) => captionFunnel(text)?.word ?? null;
101
- //# sourceMappingURL=caption-funnel.js.map
@@ -1,5 +1,4 @@
1
1
  import type { LayerRect } from "./ugc-layers.js";
2
- /** Where captions sit, as a percentage of the height: above the middle the top edge, below it the bottom edge (#884). */
3
2
  export declare const CAPTION_POSITION_VERTICAL: {
4
3
  readonly top: 20;
5
4
  readonly middle: 50;
@@ -15,11 +14,8 @@ interface PresetGeometry {
15
14
  padding: number;
16
15
  background: boolean;
17
16
  }
18
- /** Font size at a 1080 short side, default height, words per page and background padding of each preset. */
19
17
  export declare const CAPTION_GEOMETRY: Record<string, PresetGeometry>;
20
- /** Style names kept valid for an earlier preset name, as the skill's aliases. */
21
18
  export declare const CAPTION_GEOMETRY_ALIASES: Record<string, string>;
22
- /** A caption style's sizes in px on a canvas: the drawn font size, words per page and vertical padding, as the composition lays a page out. */
23
19
  export declare function captionGeometryOf(style: string | undefined, aspectRatio: string, canvas: {
24
20
  width: number;
25
21
  height: number;
@@ -29,9 +25,7 @@ export declare function captionGeometryOf(style: string | undefined, aspectRatio
29
25
  wordsPerLine: number;
30
26
  paddingV: number;
31
27
  };
32
- /** The edge a page anchors by at a height: the one asked for, else the top edge up to the middle and the bottom edge below it. */
33
28
  export declare const captionEdgeAt: (vertical: number, edge?: CaptionEdge) => CaptionEdge;
34
- /** The tallest page's box at a height, in shares of the frame: as many lines as words per page, no more than fit; the width the block may take. */
35
29
  export declare function captionBandBox(style: string | undefined, aspectRatio: string, canvas: {
36
30
  width: number;
37
31
  height: number;
@@ -1,10 +1,6 @@
1
- // The caption page's geometry as the composition draws it, for the layout rails before money (#973 S2). The numbers repeat
2
- // the composition's presets; a parity test holds the two equal.
3
- /** Where captions sit, as a percentage of the height: above the middle the top edge, below it the bottom edge (#884). */
4
1
  export const CAPTION_POSITION_VERTICAL = { top: 20, middle: 50, lower: 70, bottom: 80 };
5
2
  export const CAPTION_EDGES = ["top", "center", "bottom"];
6
3
  const row = (size, vertical, wordsPerLine, padding = 0) => ({ size, vertical, wordsPerLine, padding, background: padding > 0 });
7
- /** Font size at a 1080 short side, default height, words per page and background padding of each preset. */
8
4
  export const CAPTION_GEOMETRY = {
9
5
  hormozi: row(100, 65, 3), accent: row(88, 66, 3), tiktok: row(64, 75, 1), youtube: row(70, 85, 4, 17), instagram: row(56, 70, 2),
10
6
  minimalist: row(70, 80, 4, 14), neon: row(56, 70, 2), genz: row(72, 65, 1), campfire: row(60, 72, 3), midnight: row(66, 62, 2),
@@ -12,15 +8,12 @@ export const CAPTION_GEOMETRY = {
12
8
  studio: row(71, 84, 4, 19), broadcast: row(74, 88, 4), arcade: row(54, 70, 2), clutch: row(66, 66, 1), bubblegum: row(64, 72, 2),
13
9
  crayon: row(58, 72, 2), lyrics: row(90, 76, 4), bassdrop: row(62, 66, 1), punch: row(116, 62, 3),
14
10
  };
15
- /** Style names kept valid for an earlier preset name, as the skill's aliases. */
16
11
  export const CAPTION_GEOMETRY_ALIASES = { minimal: "minimalist" };
17
12
  const TIKTOK_WORDS_PER_LINE = { "9:16": 2, "16:9": 4, "1:1": 1 };
18
13
  const LINE_HEIGHT = 1.3, SIDE_PADDING = 20, EDGE_MARGIN = 0.04, PUNCH_LEAD_SCALE = 0.4;
19
- /** A caption style's sizes in px on a canvas: the drawn font size, words per page and vertical padding, as the composition lays a page out. */
20
14
  export function captionGeometryOf(style, aspectRatio, canvas) {
21
15
  const id = CAPTION_GEOMETRY_ALIASES[style ?? ""] ?? style ?? "hormozi", preset = CAPTION_GEOMETRY[id] ?? CAPTION_GEOMETRY.hormozi;
22
16
  const scale = Math.min(canvas.width, canvas.height) / 1080;
23
- // YouTube Pro on 16:9 keeps its own size and the five words and box it had before #1111.
24
17
  const wide = id === "youtube" && aspectRatio === "16:9";
25
18
  const keyword = Math.round((wide ? 90 : preset.size) * scale);
26
19
  const padding = Math.round((wide ? 12 : preset.padding) * scale);
@@ -28,9 +21,7 @@ export function captionGeometryOf(style, aspectRatio, canvas) {
28
21
  wordsPerLine: id === "tiktok" ? TIKTOK_WORDS_PER_LINE[aspectRatio] ?? preset.wordsPerLine : wide ? 5 : preset.wordsPerLine,
29
22
  paddingV: preset.background ? Math.round(padding * 1.5) : 0 };
30
23
  }
31
- /** The edge a page anchors by at a height: the one asked for, else the top edge up to the middle and the bottom edge below it. */
32
24
  export const captionEdgeAt = (vertical, edge) => edge ?? (vertical <= 50 ? "top" : "bottom");
33
- /** The tallest page's box at a height, in shares of the frame: as many lines as words per page, no more than fit; the width the block may take. */
34
25
  export function captionBandBox(style, aspectRatio, canvas, at = {}) {
35
26
  const { fontSize, wordsPerLine, paddingV, vertical: preset } = captionGeometryOf(style, aspectRatio, canvas);
36
27
  const vertical = at.vertical ?? preset, edge = captionEdgeAt(vertical, at.edge), anchor = (vertical / 100) * canvas.height;
@@ -40,4 +31,3 @@ export function captionBandBox(style, aspectRatio, canvas, at = {}) {
40
31
  const width = at.maxWidth ?? (0.9 * (canvas.width - 2 * SIDE_PADDING)) / canvas.width;
41
32
  return { left: (1 - width) / 2, top: edge === "top" ? y : edge === "bottom" ? y - height : y - height / 2, width, height };
42
33
  }
43
- //# sourceMappingURL=caption-geometry.js.map
@@ -1,5 +1,2 @@
1
- /** The language of a script for choosing a narrator: Turkish by its letters (ğ ı İ, or ş with no Polish or Romanian letter), else the font table's.
2
- * Captions keep `captionLanguageOf`; ASCII-only Turkish stays English. */
3
1
  export declare function scriptLanguageOf(script: string): string;
4
- /** The caption language as the font table reads it, from the letters the script is written in (in core for template text, #778 S3). */
5
2
  export declare function captionLanguageOf(script: string): string;
@@ -1,8 +1,5 @@
1
- /** The language of a script for choosing a narrator: Turkish by its letters (ğ ı İ, or ş with no Polish or Romanian letter), else the font table's.
2
- * Captions keep `captionLanguageOf`; ASCII-only Turkish stays English. */
3
1
  export function scriptLanguageOf(script) {
4
2
  const language = captionLanguageOf(script);
5
- // Turkish circumflex vowels (kâr, hâlâ) make the font table read Vietnamese, so that answer is checked for Turkish letters too.
6
3
  if (language !== "pl" && language !== "vi")
7
4
  return language;
8
5
  if (/[ăĂđĐơƠưƯạ-ỹẠ-Ỹ]/u.test(script))
@@ -11,7 +8,6 @@ export function scriptLanguageOf(script) {
11
8
  return "tr";
12
9
  return /[şŞ]/u.test(script) && !/[ąćęłńśźżĄĆĘŁŃŚŹŻșțȘȚĂ]/u.test(script) ? "tr" : language;
13
10
  }
14
- /** The caption language as the font table reads it, from the letters the script is written in (in core for template text, #778 S3). */
15
11
  export function captionLanguageOf(script) {
16
12
  const count = (pattern) => script.match(pattern)?.length ?? 0;
17
13
  const scripts = [
@@ -24,7 +20,5 @@ export function captionLanguageOf(script) {
24
20
  return top[0];
25
21
  if (/[ăâđêôơưạ-ỹ]/iu.test(script))
26
22
  return "vi";
27
- // A Latin letter outside ASCII needs latin-ext; Polish stands for every such language in the table.
28
23
  return /[^a-z]/iu.test(script.replace(/[^\p{Script=Latin}]/gu, "")) ? "pl" : "en";
29
24
  }
30
- //# sourceMappingURL=caption-language.js.map