@clipwright/core 0.60.0 → 0.61.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (587) hide show
  1. package/dist/account-actors.d.ts +0 -43
  2. package/dist/account-actors.js +0 -55
  3. package/dist/account.d.ts +0 -6
  4. package/dist/account.js +0 -18
  5. package/dist/actor-bounds.d.ts +0 -5
  6. package/dist/actor-bounds.js +0 -6
  7. package/dist/actor-qualities.d.ts +0 -3
  8. package/dist/actor-qualities.js +0 -4
  9. package/dist/actors.d.ts +0 -16
  10. package/dist/actors.js +0 -21
  11. package/dist/ad-guide.js +0 -2
  12. package/dist/ad-pause-trim.d.ts +0 -5
  13. package/dist/ad-pause-trim.js +0 -8
  14. package/dist/api-failure.d.ts +0 -44
  15. package/dist/api-failure.js +0 -62
  16. package/dist/aspect.d.ts +0 -29
  17. package/dist/aspect.js +1 -34
  18. package/dist/asset-identity.d.ts +0 -2
  19. package/dist/asset-identity.js +0 -3
  20. package/dist/assets.d.ts +0 -34
  21. package/dist/assets.js +0 -42
  22. package/dist/billing-terms.d.ts +0 -3
  23. package/dist/billing-terms.js +0 -4
  24. package/dist/brand-styles.d.ts +0 -6
  25. package/dist/brand-styles.js +0 -13
  26. package/dist/broll-policy.js +0 -1
  27. package/dist/canvas-fit.d.ts +0 -2
  28. package/dist/canvas-fit.js +0 -4
  29. package/dist/caption-funnel.d.ts +0 -2
  30. package/dist/caption-funnel.js +0 -15
  31. package/dist/caption-geometry.d.ts +0 -6
  32. package/dist/caption-geometry.js +0 -10
  33. package/dist/caption-language.d.ts +0 -3
  34. package/dist/caption-language.js +0 -6
  35. package/dist/contract-dispositions.d.ts +0 -61
  36. package/dist/contract-dispositions.js +3 -96
  37. package/dist/contracts/v1/workflow-brief.d.ts +57 -3
  38. package/dist/contracts/v1/workflow-brief.js +0 -13
  39. package/dist/contracts/v1/workflow-catalog.d.ts +114 -0
  40. package/dist/contracts/v1/workflow-catalog.js +0 -3
  41. package/dist/contracts/v1/workflow-client.d.ts +114 -0
  42. package/dist/contracts/v1/workflow-client.js +0 -1
  43. package/dist/contracts/v1/workflow-dto.js +0 -1
  44. package/dist/contracts/v1/workflow-evidence.js +0 -1
  45. package/dist/contracts/v1/workflow-execution.d.ts +0 -1
  46. package/dist/contracts/v1/workflow-execution.js +0 -4
  47. package/dist/contracts/v1/workflow-next.d.ts +0 -2
  48. package/dist/contracts/v1/workflow-next.js +0 -3
  49. package/dist/contracts/v1/workflow-plan.d.ts +171 -0
  50. package/dist/contracts/v1/workflow-plan.js +0 -1
  51. package/dist/contracts/v1/workflow-primitives.d.ts +0 -1
  52. package/dist/contracts/v1/workflow-primitives.js +0 -2
  53. package/dist/contracts/v1/workflow-run-read.d.ts +0 -1
  54. package/dist/contracts/v1/workflow-run-read.js +0 -3
  55. package/dist/creator-profile.d.ts +0 -30
  56. package/dist/creator-profile.js +0 -45
  57. package/dist/default-actor.js +0 -2
  58. package/dist/design.d.ts +0 -17
  59. package/dist/design.js +0 -18
  60. package/dist/edit-billing.d.ts +0 -6
  61. package/dist/edit-billing.js +0 -10
  62. package/dist/edit-candidate.d.ts +0 -6
  63. package/dist/edit-candidate.js +0 -9
  64. package/dist/edit-document.d.ts +0 -12
  65. package/dist/edit-document.js +0 -15
  66. package/dist/edit-faceless.d.ts +0 -3
  67. package/dist/edit-faceless.js +0 -4
  68. package/dist/edit-long-form.d.ts +0 -13
  69. package/dist/edit-long-form.js +0 -17
  70. package/dist/edit-operations.d.ts +0 -1
  71. package/dist/edit-operations.js +0 -2
  72. package/dist/edit-primitives.d.ts +0 -3
  73. package/dist/edit-primitives.js +0 -5
  74. package/dist/edit-revision.d.ts +0 -4
  75. package/dist/edit-revision.js +0 -6
  76. package/dist/edit-rules.d.ts +0 -3
  77. package/dist/edit-rules.js +0 -9
  78. package/dist/edit-shots.d.ts +45 -5
  79. package/dist/edit-shots.js +7 -11
  80. package/dist/edit-validate.d.ts +0 -10
  81. package/dist/edit-validate.js +0 -14
  82. package/dist/edit.js +0 -3
  83. package/dist/endpoint-notes.d.ts +0 -2
  84. package/dist/endpoint-notes.js +0 -3
  85. package/dist/endpoints.d.ts +0 -11
  86. package/dist/endpoints.js +7 -21
  87. package/dist/errors.d.ts +0 -42
  88. package/dist/errors.js +0 -54
  89. package/dist/explainer-fit.d.ts +0 -7
  90. package/dist/explainer-fit.js +0 -10
  91. package/dist/face-billing.d.ts +0 -9
  92. package/dist/face-billing.js +0 -23
  93. package/dist/face-delivery.d.ts +0 -1
  94. package/dist/face-delivery.js +0 -2
  95. package/dist/faceless-action-shots.d.ts +0 -8
  96. package/dist/faceless-action-shots.js +0 -8
  97. package/dist/faceless-customer-anchors.d.ts +0 -1
  98. package/dist/faceless-customer-anchors.js +0 -2
  99. package/dist/faceless-cut-style.js +0 -1
  100. package/dist/faceless-direction-summary.d.ts +0 -2
  101. package/dist/faceless-direction-summary.js +0 -3
  102. package/dist/faceless-image-placement.d.ts +0 -2
  103. package/dist/faceless-image-placement.js +0 -3
  104. package/dist/faceless-image-qualification.js +0 -2
  105. package/dist/faceless-media-record.d.ts +0 -6
  106. package/dist/faceless-media-record.js +0 -11
  107. package/dist/faceless-price.d.ts +0 -45
  108. package/dist/faceless-price.js +0 -64
  109. package/dist/faceless-public-plan.d.ts +0 -13
  110. package/dist/faceless-public-plan.js +0 -11
  111. package/dist/faceless-public.d.ts +0 -26
  112. package/dist/faceless-public.js +0 -59
  113. package/dist/faceless-short-61.js +0 -1
  114. package/dist/faceless-storyboard-timing.js +0 -1
  115. package/dist/faceless-storyboard-v2-plan.js +0 -1
  116. package/dist/faceless-storyboard-v2-timing.d.ts +0 -4
  117. package/dist/faceless-storyboard-v2-timing.js +0 -3
  118. package/dist/faceless-storyboard-v2.js +0 -1
  119. package/dist/faceless-storyboard.js +0 -1
  120. package/dist/faceless-voices.d.ts +0 -16
  121. package/dist/faceless-voices.js +0 -18
  122. package/dist/feedback.d.ts +0 -4
  123. package/dist/feedback.js +0 -5
  124. package/dist/film-directions.d.ts +0 -2
  125. package/dist/film-directions.js +0 -7
  126. package/dist/film-drafts.d.ts +0 -8
  127. package/dist/film-drafts.js +0 -19
  128. package/dist/film-guide.d.ts +0 -3
  129. package/dist/film-guide.js +0 -6
  130. package/dist/film-styles.d.ts +0 -5
  131. package/dist/film-styles.js +0 -8
  132. package/dist/generation-shot.d.ts +0 -5
  133. package/dist/generation-shot.js +0 -8
  134. package/dist/generations-output.d.ts +0 -2
  135. package/dist/generations-output.js +0 -5
  136. package/dist/generations.d.ts +0 -22
  137. package/dist/generations.js +21 -44
  138. package/dist/idempotency.d.ts +1 -21
  139. package/dist/idempotency.js +8 -29
  140. package/dist/index.d.ts +1 -0
  141. package/dist/index.js +1 -28
  142. package/dist/live-shot-kinds.d.ts +16 -25
  143. package/dist/live-shot-kinds.js +12 -28
  144. package/dist/long-form-pricing.d.ts +0 -5
  145. package/dist/long-form-pricing.js +0 -6
  146. package/dist/long-form-profile.d.ts +0 -3
  147. package/dist/long-form-profile.js +0 -4
  148. package/dist/long-form-revision.d.ts +0 -9
  149. package/dist/long-form-revision.js +0 -11
  150. package/dist/markdown-quote.d.ts +0 -2
  151. package/dist/markdown-quote.js +0 -3
  152. package/dist/mascots.d.ts +0 -5
  153. package/dist/mascots.js +0 -10
  154. package/dist/max-credits.d.ts +0 -1
  155. package/dist/max-credits.js +0 -2
  156. package/dist/mcp-ugc-descriptions.d.ts +0 -2
  157. package/dist/mcp-ugc-descriptions.js +1 -6
  158. package/dist/media-timebase.d.ts +0 -2
  159. package/dist/media-timebase.js +0 -6
  160. package/dist/motion-styles.d.ts +0 -8
  161. package/dist/motion-styles.js +0 -11
  162. package/dist/moves.d.ts +0 -7
  163. package/dist/moves.js +0 -9
  164. package/dist/music.d.ts +0 -5
  165. package/dist/music.js +0 -8
  166. package/dist/naming.d.ts +0 -3
  167. package/dist/naming.js +0 -19
  168. package/dist/openapi.d.ts +0 -13
  169. package/dist/openapi.js +6 -11
  170. package/dist/output-provenance.d.ts +0 -4
  171. package/dist/output-provenance.js +0 -5
  172. package/dist/own-agent-price.d.ts +19 -22
  173. package/dist/own-agent-price.js +30 -25
  174. package/dist/own-agent-runs.d.ts +111 -11
  175. package/dist/own-agent-runs.js +89 -24
  176. package/dist/pacing.d.ts +3 -15
  177. package/dist/pacing.js +18 -18
  178. package/dist/parts-pricing.d.ts +0 -28
  179. package/dist/parts-pricing.js +0 -32
  180. package/dist/post-text.d.ts +0 -2
  181. package/dist/post-text.js +0 -4
  182. package/dist/presenter-beats.d.ts +0 -10
  183. package/dist/presenter-beats.js +0 -14
  184. package/dist/presenter-matte.d.ts +0 -7
  185. package/dist/presenter-matte.js +0 -9
  186. package/dist/presenter-takes.d.ts +0 -3
  187. package/dist/presenter-takes.js +0 -8
  188. package/dist/prices.d.ts +2 -8
  189. package/dist/prices.js +13 -23
  190. package/dist/public-endpoints.d.ts +0 -11
  191. package/dist/public-endpoints.js +0 -14
  192. package/dist/public-responses.d.ts +0 -2
  193. package/dist/public-responses.js +0 -3
  194. package/dist/rate-limit.d.ts +0 -24
  195. package/dist/rate-limit.js +0 -29
  196. package/dist/reference-analysis.d.ts +57 -34
  197. package/dist/reference-analysis.js +0 -69
  198. package/dist/reference-bring.d.ts +33 -0
  199. package/dist/reference-bring.js +28 -0
  200. package/dist/reference-display.d.ts +0 -3
  201. package/dist/reference-display.js +37 -4
  202. package/dist/reference-kinds.d.ts +0 -4
  203. package/dist/reference-kinds.js +0 -6
  204. package/dist/reference-lyrics.d.ts +0 -6
  205. package/dist/reference-lyrics.js +0 -6
  206. package/dist/reference-profile.d.ts +270 -39
  207. package/dist/reference-profile.js +64 -50
  208. package/dist/reference-staging.d.ts +0 -10
  209. package/dist/reference-staging.js +0 -14
  210. package/dist/reference-text-spans.d.ts +0 -4
  211. package/dist/reference-text-spans.js +0 -7
  212. package/dist/reference-voice-over.d.ts +0 -6
  213. package/dist/reference-voice-over.js +0 -7
  214. package/dist/reference-voice.d.ts +0 -7
  215. package/dist/reference-voice.js +0 -12
  216. package/dist/render-backend.d.ts +0 -30
  217. package/dist/render-backend.js +0 -5
  218. package/dist/resolved-timeline.d.ts +0 -4
  219. package/dist/resolved-timeline.js +1 -31
  220. package/dist/run-media.d.ts +0 -1
  221. package/dist/run-media.js +0 -2
  222. package/dist/run-preflight.d.ts +0 -4
  223. package/dist/run-preflight.js +0 -11
  224. package/dist/run-static-warnings.d.ts +0 -8
  225. package/dist/run-static-warnings.js +0 -38
  226. package/dist/runs.d.ts +0 -32
  227. package/dist/runs.js +0 -50
  228. package/dist/scene-bible.d.ts +15 -7
  229. package/dist/scene-bible.js +15 -10
  230. package/dist/scene-graph.d.ts +0 -12
  231. package/dist/scene-graph.js +0 -24
  232. package/dist/scene-place.d.ts +0 -25
  233. package/dist/scene-place.js +0 -24
  234. package/dist/scene-proposal.d.ts +0 -3
  235. package/dist/scene-proposal.js +0 -9
  236. package/dist/script-integrity.d.ts +0 -6
  237. package/dist/script-integrity.js +0 -8
  238. package/dist/script-voice.d.ts +0 -7
  239. package/dist/script-voice.js +0 -16
  240. package/dist/semantic-inserts.d.ts +0 -7
  241. package/dist/semantic-inserts.js +0 -10
  242. package/dist/skill-theme-explainer.js +0 -5
  243. package/dist/skill-theme.d.ts +0 -13
  244. package/dist/skill-theme.js +0 -25
  245. package/dist/skills.d.ts +22 -86
  246. package/dist/skills.js +21 -167
  247. package/dist/speech-rhythm-contract.js +0 -1
  248. package/dist/speech-rhythm.d.ts +0 -4
  249. package/dist/speech-rhythm.js +0 -2
  250. package/dist/templates/backdrop.d.ts +0 -3
  251. package/dist/templates/backdrop.js +0 -5
  252. package/dist/templates/callout.d.ts +0 -4
  253. package/dist/templates/callout.js +0 -6
  254. package/dist/templates/chart.d.ts +0 -4
  255. package/dist/templates/chart.js +0 -6
  256. package/dist/templates/chat-window.d.ts +0 -8
  257. package/dist/templates/chat-window.js +0 -10
  258. package/dist/templates/checklist.d.ts +0 -3
  259. package/dist/templates/checklist.js +0 -6
  260. package/dist/templates/comment-cta.d.ts +0 -14
  261. package/dist/templates/comment-cta.js +0 -19
  262. package/dist/templates/compare.d.ts +0 -6
  263. package/dist/templates/compare.js +0 -7
  264. package/dist/templates/cover-story.d.ts +0 -1
  265. package/dist/templates/cover-story.js +0 -3
  266. package/dist/templates/end-card.d.ts +0 -2
  267. package/dist/templates/end-card.js +0 -3
  268. package/dist/templates/hand-title.d.ts +0 -5
  269. package/dist/templates/hand-title.js +0 -9
  270. package/dist/templates/index.d.ts +0 -57
  271. package/dist/templates/index.js +0 -60
  272. package/dist/templates/lower-third.d.ts +0 -4
  273. package/dist/templates/lower-third.js +0 -5
  274. package/dist/templates/notification.d.ts +0 -6
  275. package/dist/templates/notification.js +0 -7
  276. package/dist/templates/phone-call.d.ts +0 -2
  277. package/dist/templates/phone-call.js +0 -6
  278. package/dist/templates/phone-screen.d.ts +0 -5
  279. package/dist/templates/phone-screen.js +0 -7
  280. package/dist/templates/pointer-chips.d.ts +0 -4
  281. package/dist/templates/pointer-chips.js +0 -6
  282. package/dist/templates/progress.d.ts +0 -3
  283. package/dist/templates/progress.js +0 -5
  284. package/dist/templates/quote.d.ts +0 -3
  285. package/dist/templates/quote.js +0 -4
  286. package/dist/templates/race.d.ts +0 -5
  287. package/dist/templates/race.js +0 -7
  288. package/dist/templates/rating.d.ts +0 -3
  289. package/dist/templates/rating.js +0 -5
  290. package/dist/templates/series-frame.d.ts +0 -16
  291. package/dist/templates/series-frame.js +0 -19
  292. package/dist/templates/size.d.ts +0 -7
  293. package/dist/templates/size.js +0 -8
  294. package/dist/templates/slot.d.ts +0 -2
  295. package/dist/templates/slot.js +0 -2
  296. package/dist/templates/sounds.d.ts +0 -12
  297. package/dist/templates/sounds.js +0 -16
  298. package/dist/templates/stat.d.ts +0 -3
  299. package/dist/templates/stat.js +0 -5
  300. package/dist/templates/tag.d.ts +0 -3
  301. package/dist/templates/tag.js +0 -5
  302. package/dist/templates/terminal.d.ts +0 -6
  303. package/dist/templates/terminal.js +0 -8
  304. package/dist/templates/theme.d.ts +0 -7
  305. package/dist/templates/theme.js +0 -9
  306. package/dist/templates/title-card.d.ts +0 -3
  307. package/dist/templates/title-card.js +0 -5
  308. package/dist/templates/video-grid.d.ts +0 -5
  309. package/dist/templates/video-grid.js +0 -8
  310. package/dist/templates/word-fill.d.ts +0 -3
  311. package/dist/templates/word-fill.js +0 -4
  312. package/dist/templates/word-title.d.ts +0 -2
  313. package/dist/templates/word-title.js +0 -4
  314. package/dist/trend-niches.d.ts +0 -11
  315. package/dist/trend-niches.js +0 -16
  316. package/dist/trend-search.d.ts +0 -66
  317. package/dist/trend-search.js +0 -70
  318. package/dist/tts-backend.d.ts +0 -19
  319. package/dist/tts-backend.js +0 -7
  320. package/dist/ugc-call.d.ts +0 -16
  321. package/dist/ugc-call.js +0 -21
  322. package/dist/ugc-delivery.d.ts +0 -2
  323. package/dist/ugc-delivery.js +0 -4
  324. package/dist/ugc-framing.d.ts +0 -4
  325. package/dist/ugc-framing.js +0 -6
  326. package/dist/ugc-interview.d.ts +0 -18
  327. package/dist/ugc-interview.js +0 -24
  328. package/dist/ugc-layers.d.ts +0 -39
  329. package/dist/ugc-layers.js +0 -39
  330. package/dist/ugc-scenes.d.ts +0 -2
  331. package/dist/ugc-scenes.js +0 -5
  332. package/dist/ugc-video-media.d.ts +0 -5
  333. package/dist/ugc-video-media.js +0 -7
  334. package/dist/uploads.d.ts +0 -14
  335. package/dist/uploads.js +0 -17
  336. package/dist/vendor-response.d.ts +0 -19
  337. package/dist/vendor-response.js +0 -22
  338. package/dist/video-size.d.ts +0 -4
  339. package/dist/video-size.js +0 -7
  340. package/dist/voice-admission.d.ts +0 -11
  341. package/dist/voice-admission.js +0 -13
  342. package/dist/voice-catalog-data.d.ts +0 -2
  343. package/dist/voice-catalog-data.js +0 -3
  344. package/dist/voice-catalog.d.ts +0 -6
  345. package/dist/voice-catalog.js +0 -8
  346. package/dist/voice-listing.d.ts +0 -6
  347. package/dist/voice-listing.js +0 -14
  348. package/dist/voice-pace.d.ts +0 -4
  349. package/dist/voice-pace.js +0 -7
  350. package/dist/voice-preview-approval.js +0 -1
  351. package/dist/voices.d.ts +4 -69
  352. package/dist/voices.js +3 -88
  353. package/dist/workflows/catalog.d.ts +0 -2
  354. package/dist/workflows/catalog.js +0 -4
  355. package/dist/workflows/film-directions.d.ts +0 -3
  356. package/dist/workflows/film-directions.js +0 -4
  357. package/dist/workflows/index.js +0 -1
  358. package/dist/workflows/methods/faceless-explainer.d.ts +31 -0
  359. package/dist/workflows/methods/faceless-explainer.js +0 -1
  360. package/dist/workflows/methods/kinetic-launch.d.ts +62 -1
  361. package/dist/workflows/methods/kinetic-launch.js +0 -2
  362. package/dist/workflows/methods/product-image-story.d.ts +31 -0
  363. package/dist/workflows/methods/product-image-story.js +0 -1
  364. package/dist/workflows/methods/reference-remake.d.ts +31 -0
  365. package/dist/workflows/methods/reference-remake.js +0 -1
  366. package/dist/workflows/methods/shared.d.ts +31 -1
  367. package/dist/workflows/methods/shared.js +0 -3
  368. package/dist/workflows/methods/ugc-faq-answer.d.ts +31 -0
  369. package/dist/workflows/methods/ugc-faq-answer.js +0 -1
  370. package/dist/workflows/methods/ugc-product-intro.d.ts +31 -0
  371. package/dist/workflows/methods/ugc-product-intro.js +0 -1
  372. package/dist/workflows/methods/website-proof-demo.d.ts +62 -1
  373. package/dist/workflows/methods/website-proof-demo.js +0 -2
  374. package/dist/workflows/motion-director.d.ts +0 -11
  375. package/dist/workflows/motion-director.js +0 -11
  376. package/dist/workflows/product-references.js +0 -1
  377. package/dist/workflows/reference-remake.d.ts +114 -17
  378. package/dist/workflows/reference-remake.js +0 -167
  379. package/dist/workflows/remake-chooser.d.ts +0 -6
  380. package/dist/workflows/remake-chooser.js +0 -4
  381. package/dist/workflows/remake-motion.d.ts +0 -16
  382. package/dist/workflows/remake-motion.js +0 -19
  383. package/dist/workflows/validate.d.ts +0 -1
  384. package/dist/workflows/validate.js +0 -5
  385. package/dist/workflows.js +0 -1
  386. package/package.json +1 -1
  387. package/dist/account-actors.js.map +0 -1
  388. package/dist/account.js.map +0 -1
  389. package/dist/actor-bounds.js.map +0 -1
  390. package/dist/actor-qualities.js.map +0 -1
  391. package/dist/actors.js.map +0 -1
  392. package/dist/ad-guide.js.map +0 -1
  393. package/dist/ad-pause-trim.js.map +0 -1
  394. package/dist/api-failure.js.map +0 -1
  395. package/dist/aspect.js.map +0 -1
  396. package/dist/asset-identity.js.map +0 -1
  397. package/dist/assets.js.map +0 -1
  398. package/dist/billing-terms.js.map +0 -1
  399. package/dist/brand-styles.js.map +0 -1
  400. package/dist/broll-policy.js.map +0 -1
  401. package/dist/canvas-fit.js.map +0 -1
  402. package/dist/caption-funnel.js.map +0 -1
  403. package/dist/caption-geometry.js.map +0 -1
  404. package/dist/caption-language.js.map +0 -1
  405. package/dist/contract-dispositions.js.map +0 -1
  406. package/dist/contracts/v1/workflow-brief.js.map +0 -1
  407. package/dist/contracts/v1/workflow-catalog.js.map +0 -1
  408. package/dist/contracts/v1/workflow-client.js.map +0 -1
  409. package/dist/contracts/v1/workflow-dto.js.map +0 -1
  410. package/dist/contracts/v1/workflow-evidence.js.map +0 -1
  411. package/dist/contracts/v1/workflow-execution.js.map +0 -1
  412. package/dist/contracts/v1/workflow-next.js.map +0 -1
  413. package/dist/contracts/v1/workflow-plan.js.map +0 -1
  414. package/dist/contracts/v1/workflow-primitives.js.map +0 -1
  415. package/dist/contracts/v1/workflow-run-read.js.map +0 -1
  416. package/dist/creator-profile.js.map +0 -1
  417. package/dist/default-actor.js.map +0 -1
  418. package/dist/design.js.map +0 -1
  419. package/dist/edit-billing.js.map +0 -1
  420. package/dist/edit-candidate.js.map +0 -1
  421. package/dist/edit-document.js.map +0 -1
  422. package/dist/edit-faceless.js.map +0 -1
  423. package/dist/edit-long-form.js.map +0 -1
  424. package/dist/edit-operations.js.map +0 -1
  425. package/dist/edit-primitives.js.map +0 -1
  426. package/dist/edit-revision.js.map +0 -1
  427. package/dist/edit-rules.js.map +0 -1
  428. package/dist/edit-shots.js.map +0 -1
  429. package/dist/edit-validate.js.map +0 -1
  430. package/dist/edit.js.map +0 -1
  431. package/dist/endpoint-notes.js.map +0 -1
  432. package/dist/endpoints.js.map +0 -1
  433. package/dist/errors.js.map +0 -1
  434. package/dist/explainer-fit.js.map +0 -1
  435. package/dist/face-billing.js.map +0 -1
  436. package/dist/face-delivery.js.map +0 -1
  437. package/dist/faceless-action-shots.js.map +0 -1
  438. package/dist/faceless-customer-anchors.js.map +0 -1
  439. package/dist/faceless-cut-style.js.map +0 -1
  440. package/dist/faceless-direction-summary.js.map +0 -1
  441. package/dist/faceless-image-placement.js.map +0 -1
  442. package/dist/faceless-image-qualification.js.map +0 -1
  443. package/dist/faceless-media-record.js.map +0 -1
  444. package/dist/faceless-price.js.map +0 -1
  445. package/dist/faceless-public-plan.js.map +0 -1
  446. package/dist/faceless-public.js.map +0 -1
  447. package/dist/faceless-short-61.js.map +0 -1
  448. package/dist/faceless-storyboard-timing.js.map +0 -1
  449. package/dist/faceless-storyboard-v2-plan.js.map +0 -1
  450. package/dist/faceless-storyboard-v2-timing.js.map +0 -1
  451. package/dist/faceless-storyboard-v2.js.map +0 -1
  452. package/dist/faceless-storyboard.js.map +0 -1
  453. package/dist/faceless-voices.js.map +0 -1
  454. package/dist/feedback.js.map +0 -1
  455. package/dist/film-directions.js.map +0 -1
  456. package/dist/film-drafts.js.map +0 -1
  457. package/dist/film-guide.js.map +0 -1
  458. package/dist/film-styles.js.map +0 -1
  459. package/dist/generation-shot.js.map +0 -1
  460. package/dist/generations-output.js.map +0 -1
  461. package/dist/generations.js.map +0 -1
  462. package/dist/idempotency.js.map +0 -1
  463. package/dist/index.js.map +0 -1
  464. package/dist/live-shot-kinds.js.map +0 -1
  465. package/dist/long-form-pricing.js.map +0 -1
  466. package/dist/long-form-profile.js.map +0 -1
  467. package/dist/long-form-revision.js.map +0 -1
  468. package/dist/markdown-quote.js.map +0 -1
  469. package/dist/mascots.js.map +0 -1
  470. package/dist/max-credits.js.map +0 -1
  471. package/dist/mcp-ugc-descriptions.js.map +0 -1
  472. package/dist/media-timebase.js.map +0 -1
  473. package/dist/motion-styles.js.map +0 -1
  474. package/dist/moves.js.map +0 -1
  475. package/dist/music.js.map +0 -1
  476. package/dist/naming.js.map +0 -1
  477. package/dist/openapi.js.map +0 -1
  478. package/dist/output-provenance.js.map +0 -1
  479. package/dist/own-agent-price.js.map +0 -1
  480. package/dist/own-agent-runs.js.map +0 -1
  481. package/dist/pacing.js.map +0 -1
  482. package/dist/parts-pricing.js.map +0 -1
  483. package/dist/post-text.js.map +0 -1
  484. package/dist/presenter-beats.js.map +0 -1
  485. package/dist/presenter-matte.js.map +0 -1
  486. package/dist/presenter-takes.js.map +0 -1
  487. package/dist/prices.js.map +0 -1
  488. package/dist/public-endpoints.js.map +0 -1
  489. package/dist/public-responses.js.map +0 -1
  490. package/dist/rate-limit.js.map +0 -1
  491. package/dist/reference-analysis.js.map +0 -1
  492. package/dist/reference-display.js.map +0 -1
  493. package/dist/reference-kinds.js.map +0 -1
  494. package/dist/reference-lyrics.js.map +0 -1
  495. package/dist/reference-profile.js.map +0 -1
  496. package/dist/reference-staging.js.map +0 -1
  497. package/dist/reference-text-spans.js.map +0 -1
  498. package/dist/reference-voice-over.js.map +0 -1
  499. package/dist/reference-voice.js.map +0 -1
  500. package/dist/render-backend.js.map +0 -1
  501. package/dist/resolved-timeline.js.map +0 -1
  502. package/dist/run-media.js.map +0 -1
  503. package/dist/run-preflight.js.map +0 -1
  504. package/dist/run-static-warnings.js.map +0 -1
  505. package/dist/runs.js.map +0 -1
  506. package/dist/scene-bible.js.map +0 -1
  507. package/dist/scene-graph.js.map +0 -1
  508. package/dist/scene-place.js.map +0 -1
  509. package/dist/scene-proposal.js.map +0 -1
  510. package/dist/script-integrity.js.map +0 -1
  511. package/dist/script-voice.js.map +0 -1
  512. package/dist/semantic-inserts.js.map +0 -1
  513. package/dist/skill-theme-explainer.js.map +0 -1
  514. package/dist/skill-theme.js.map +0 -1
  515. package/dist/skills.js.map +0 -1
  516. package/dist/speech-rhythm-contract.js.map +0 -1
  517. package/dist/speech-rhythm.js.map +0 -1
  518. package/dist/templates/backdrop.js.map +0 -1
  519. package/dist/templates/callout.js.map +0 -1
  520. package/dist/templates/chart.js.map +0 -1
  521. package/dist/templates/chat-window.js.map +0 -1
  522. package/dist/templates/checklist.js.map +0 -1
  523. package/dist/templates/comment-cta.js.map +0 -1
  524. package/dist/templates/compare.js.map +0 -1
  525. package/dist/templates/cover-story.js.map +0 -1
  526. package/dist/templates/end-card.js.map +0 -1
  527. package/dist/templates/hand-title.js.map +0 -1
  528. package/dist/templates/index.js.map +0 -1
  529. package/dist/templates/lower-third.js.map +0 -1
  530. package/dist/templates/notification.js.map +0 -1
  531. package/dist/templates/phone-call.js.map +0 -1
  532. package/dist/templates/phone-screen.js.map +0 -1
  533. package/dist/templates/pointer-chips.js.map +0 -1
  534. package/dist/templates/progress.js.map +0 -1
  535. package/dist/templates/quote.js.map +0 -1
  536. package/dist/templates/race.js.map +0 -1
  537. package/dist/templates/rating.js.map +0 -1
  538. package/dist/templates/series-frame.js.map +0 -1
  539. package/dist/templates/size.js.map +0 -1
  540. package/dist/templates/slot.js.map +0 -1
  541. package/dist/templates/sounds.js.map +0 -1
  542. package/dist/templates/stat.js.map +0 -1
  543. package/dist/templates/tag.js.map +0 -1
  544. package/dist/templates/terminal.js.map +0 -1
  545. package/dist/templates/theme.js.map +0 -1
  546. package/dist/templates/title-card.js.map +0 -1
  547. package/dist/templates/video-grid.js.map +0 -1
  548. package/dist/templates/word-fill.js.map +0 -1
  549. package/dist/templates/word-title.js.map +0 -1
  550. package/dist/trend-niches.js.map +0 -1
  551. package/dist/trend-search.js.map +0 -1
  552. package/dist/tts-backend.js.map +0 -1
  553. package/dist/ugc-call.js.map +0 -1
  554. package/dist/ugc-delivery.js.map +0 -1
  555. package/dist/ugc-framing.js.map +0 -1
  556. package/dist/ugc-interview.js.map +0 -1
  557. package/dist/ugc-layers.js.map +0 -1
  558. package/dist/ugc-scenes.js.map +0 -1
  559. package/dist/ugc-video-media.js.map +0 -1
  560. package/dist/uploads.js.map +0 -1
  561. package/dist/vendor-response.js.map +0 -1
  562. package/dist/video-size.js.map +0 -1
  563. package/dist/voice-admission.js.map +0 -1
  564. package/dist/voice-catalog-data.js.map +0 -1
  565. package/dist/voice-catalog.js.map +0 -1
  566. package/dist/voice-listing.js.map +0 -1
  567. package/dist/voice-pace.js.map +0 -1
  568. package/dist/voice-preview-approval.js.map +0 -1
  569. package/dist/voices.js.map +0 -1
  570. package/dist/workflows/catalog.js.map +0 -1
  571. package/dist/workflows/film-directions.js.map +0 -1
  572. package/dist/workflows/index.js.map +0 -1
  573. package/dist/workflows/methods/faceless-explainer.js.map +0 -1
  574. package/dist/workflows/methods/kinetic-launch.js.map +0 -1
  575. package/dist/workflows/methods/product-image-story.js.map +0 -1
  576. package/dist/workflows/methods/reference-remake.js.map +0 -1
  577. package/dist/workflows/methods/shared.js.map +0 -1
  578. package/dist/workflows/methods/ugc-faq-answer.js.map +0 -1
  579. package/dist/workflows/methods/ugc-product-intro.js.map +0 -1
  580. package/dist/workflows/methods/website-proof-demo.js.map +0 -1
  581. package/dist/workflows/motion-director.js.map +0 -1
  582. package/dist/workflows/product-references.js.map +0 -1
  583. package/dist/workflows/reference-remake.js.map +0 -1
  584. package/dist/workflows/remake-chooser.js.map +0 -1
  585. package/dist/workflows/remake-motion.js.map +0 -1
  586. package/dist/workflows/validate.js.map +0 -1
  587. package/dist/workflows.js.map +0 -1
package/dist/voices.js CHANGED
@@ -1,14 +1,8 @@
1
1
  import { z } from "zod";
2
- /** Speech models the contract lets callers name. `multilingual_v2` was dropped: */
3
- /** it honored none of the stress-marking methods we measured. */
4
2
  export const TTS_MODELS = ["eleven_v3", "eleven_flash_v2_5", "eleven_turbo_v2_5", "eleven_v4", "gemini-3.8-flash-tts"];
5
- /** All ElevenLabs speech goes to v4 since 2026-10-25: it covers every v3 language at the same price. */
6
3
  export const DEFAULT_TTS_MODEL = "eleven_v4";
7
- /** What Russian speech goes to when the client names no model; `resolveTtsModel` decides what is Russian. */
8
4
  export const RUSSIAN_TTS_MODEL = "eleven_v4";
9
- /** Models the contract still accepts but no longer speaks: a run naming one is served on its successor, named in warnings[]. */
10
5
  export const RETIRED_TTS_MODELS = { eleven_v3: DEFAULT_TTS_MODEL };
11
- /** The model spoken by Google's adapter; contract texts name it through this constant. */
12
6
  export const GOOGLE_TTS_MODEL = "gemini-3.8-flash-tts";
13
7
  export const TTS_MODEL_BACKEND = {
14
8
  eleven_v3: "elevenlabs",
@@ -18,13 +12,10 @@ export const TTS_MODEL_BACKEND = {
18
12
  "gemini-3.8-flash-tts": "google",
19
13
  };
20
14
  export const ELEVENLABS_TTS_MODELS = TTS_MODELS.filter((model) => TTS_MODEL_BACKEND[model] === "elevenlabs");
21
- /** Whose adapter speaks a model named by a string; `undefined` for a model the contract does not have. */
22
15
  export function speechBackendOf(modelId) {
23
16
  const model = TTS_MODELS.find((known) => known === modelId);
24
17
  return model === undefined ? undefined : TTS_MODEL_BACKEND[model];
25
18
  }
26
- /** v3: the vendor's cap. 2.5: the vendor allows 40,000; 10,000 is our run-length cap. */
27
- /** v4: the vendor declares 10,000; 5,000 is ours, above the longest measured call. */
28
19
  export const TTS_MODEL_CHAR_CAP = {
29
20
  eleven_v3: 5_000,
30
21
  eleven_flash_v2_5: 10_000,
@@ -33,25 +24,19 @@ export const TTS_MODEL_CHAR_CAP = {
33
24
  "gemini-3.8-flash-tts": 5_000,
34
25
  };
35
26
  export const TTS_MODEL_TEXT_TRAITS = {
36
- // Retired 2026-10-25. It took speed and ignored it: 0.8 and 1.2 ran within 3%.
37
27
  eleven_v3: { readsStressMarks: true, pausesOnBreakTags: true, hasSpeedSetting: true },
38
28
  eleven_flash_v2_5: { readsStressMarks: false, pausesOnBreakTags: true, hasSpeedSetting: true },
39
29
  eleven_turbo_v2_5: { readsStressMarks: false, pausesOnBreakTags: true, hasSpeedSetting: true },
40
- // No speed on v4 (0.8, 1 and 1.2 ran within take noise on 13 voices), so the voice sets the pace.
41
30
  eleven_v4: { readsStressMarks: true, pausesOnBreakTags: false, hasSpeedSetting: false },
42
31
  "gemini-3.8-flash-tts": { readsStressMarks: true, pausesOnBreakTags: false, hasSpeedSetting: false },
43
32
  };
44
33
  const modelsWhere = (holds) => new Set(TTS_MODELS.filter((model) => holds(TTS_MODEL_TEXT_TRAITS[model])));
45
- /** Models that read the U+0301 stress mark; flash misreads the same mark three times as often. */
46
34
  export const STRESS_MARK = String.fromCharCode(0x0301);
47
35
  export const STRESS_MARK_MODELS = modelsWhere((traits) => traits.readsStressMarks);
48
36
  const listed = (names) => names.join(", ").replace(/, ([^,]+)$/, " and $1");
49
37
  const STRESS_MARK_READERS = listed([...STRESS_MARK_MODELS].filter((model) => RETIRED_TTS_MODELS[model] === undefined));
50
- /** Models that accept a speed setting and ignore it: a request to them carries none. */
51
38
  export const FIXED_PACE_MODELS = modelsWhere((traits) => !traits.hasSpeedSetting);
52
- /** Models that give no pause for a break tag: the tag is cut from the text sent to them. */
53
39
  export const NO_BREAK_TAG_MODELS = modelsWhere((traits) => !traits.pausesOnBreakTags);
54
- /** The one break form the pipeline knows; the cut here and the alignment parser share it. */
55
40
  export const BREAK_TAG_SOURCE = String.raw `<break time="\d+(?:\.\d+)?(?:ms|s)"\s*\/>`;
56
41
  const BREAK_TAG = new RegExp(BREAK_TAG_SOURCE);
57
42
  const BREAK_TAG_ALL = new RegExp(BREAK_TAG_SOURCE, "g");
@@ -61,8 +46,6 @@ const CYRILLIC_STRESS_MARK = new RegExp(`[Ѐ-ӿ]${STRESS_MARK}`);
61
46
  const CYRILLIC_LOWERCASE = /[а-џ]/;
62
47
  const CYRILLIC_UPPERCASE = /[Ѐ-Я]/;
63
48
  const CYRILLIC_UPPER_VOWELS = "АЕЁИОУЫЭЮЯ";
64
- /** Index of the stressed capital: exactly one capital after the first letter, a vowel. */
65
- /** A second capital or a consonant capital is an abbreviation, not stress. */
66
49
  function stressCapitalIndex(word) {
67
50
  if (!CYRILLIC_LOWERCASE.test(word))
68
51
  return -1;
@@ -80,8 +63,6 @@ function stressCapitalIndex(word) {
80
63
  }
81
64
  return found;
82
65
  }
83
- /** Turns an inner capital vowel into a stress mark. A word-initial capital stays a capital; */
84
- /** an existing mark is not doubled. */
85
66
  export function stressMarksFromCapitals(text) {
86
67
  return text.replace(CYRILLIC_WORD, (word) => {
87
68
  const i = stressCapitalIndex(word);
@@ -92,7 +73,6 @@ export function stressMarksFromCapitals(text) {
92
73
  return word.slice(0, i) + vowel.toLowerCase() + mark + word.slice(i + 1);
93
74
  });
94
75
  }
95
- /** One pass, linear in the text: each tag with the blanks around it becomes one space. */
96
76
  function cutBreakTagsOnce(text) {
97
77
  let out = "";
98
78
  let from = 0;
@@ -108,7 +88,6 @@ function cutBreakTagsOnce(text) {
108
88
  }
109
89
  return from === 0 ? text : out + text.slice(from);
110
90
  }
111
- /** Cuts until no tag is left: one pass over a tag written inside a tag leaves a whole tag. */
112
91
  function withoutBreakTags(text) {
113
92
  let current = text;
114
93
  for (;;) {
@@ -118,12 +97,9 @@ function withoutBreakTags(text) {
118
97
  current = cut;
119
98
  }
120
99
  }
121
- /** A break tag still in text bound for a model that gives no pause for it. */
122
100
  export function hasUncutBreakTag(text, modelId) {
123
101
  return NO_BREAK_TAG_MODELS.has(modelId) && BREAK_TAG.test(text);
124
102
  }
125
- /** The text sent to the vendor: stress marking only for a model that reads it, and a break */
126
- /** tag with the spaces around it becomes one space for a model that gives no pause for it. */
127
103
  export function speechTextFor(text, modelId) {
128
104
  const spoken = NO_BREAK_TAG_MODELS.has(modelId) ? withoutBreakTags(text) : text;
129
105
  return STRESS_MARK_MODELS.has(modelId) ? stressMarksFromCapitals(spoken) : spoken;
@@ -142,7 +118,6 @@ export const STRESS_MARKING_DESCRIPTION = "Russian stress: write the stressed vo
142
118
  "read as stress, so write \"Яндекс Еда\", not \"ЯндексЕда\". " +
143
119
  "Tell users writing in Russian that they can mark stress this way. eleven_flash_v2_5 and " +
144
120
  "eleven_turbo_v2_5 cost less but misread stress marks: capitals reach them unchanged.";
145
- /** Length is measured on the text sent to the vendor: stress marks in, cut break tags out. */
146
121
  export function ttsScriptLimitError(text, modelId) {
147
122
  const model = TTS_MODELS.find((model) => model === modelId);
148
123
  if (!model)
@@ -162,16 +137,12 @@ export function ttsScriptLimitError(text, modelId) {
162
137
  }
163
138
  return undefined;
164
139
  }
165
- /** A spoken unit of nothing but break tags leaves a model that cuts them with no text to send. */
166
140
  export function cutToNothingError(text, modelId) {
167
141
  if (text.trim() === "" || speechTextFor(text, modelId).trim() !== "")
168
142
  return undefined;
169
143
  return `script has nothing to say on ${modelId}: break tags are cut from the text sent to it, and no words are left`;
170
144
  }
171
- /** The starter set of presets. Order matters only for presentation; the default is set */
172
- /** separately by `DEFAULT_VOICE_PRESET`. */
173
145
  export const VOICE_PRESETS = {
174
- // A Russian preset speaks `RUSSIAN_TTS_MODEL`, every other one the default; a test holds both.
175
146
  sarah: {
176
147
  language: "en",
177
148
  gender: "female",
@@ -197,18 +168,13 @@ export const VOICE_PRESETS = {
197
168
  model: RUSSIAN_TTS_MODEL,
198
169
  },
199
170
  };
200
- /** Preset name tuple for `z.enum`, derived from `VOICE_PRESETS` keys so names and */
201
- /** metadata cannot drift. */
202
171
  export const VOICE_PRESET_NAMES = Object.keys(VOICE_PRESETS);
203
- /** The shape of a voice name, not a list: the catalog grows on the server without client releases. */
204
172
  export const VOICE_NAME_PATTERN = /^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$/;
205
173
  export function isVoicePresetName(name) {
206
174
  return Object.hasOwn(VOICE_PRESETS, name);
207
175
  }
208
- /** Presets a server adds at start: this package ships none of them, and `listVoices` lists none unless asked. */
209
176
  const servicePresets = new Map();
210
177
  let publishedOnly = false;
211
- /** Adds presets a server keeps to itself; a published name is refused, so a published preset cannot be replaced. */
212
178
  export function addServiceVoicePresets(presets) {
213
179
  for (const [name, preset] of Object.entries(presets)) {
214
180
  if (isVoicePresetName(name) || isModelVoiceName(name))
@@ -216,12 +182,9 @@ export function addServiceVoicePresets(presets) {
216
182
  servicePresets.set(name, preset);
217
183
  }
218
184
  }
219
- /** A preset by name: a published one, then one a server added. Model, gender and warnings read presets through it. */
220
185
  export function voicePresetOf(name) {
221
186
  return isVoicePresetName(name) ? VOICE_PRESETS[name] : publishedOnly ? undefined : servicePresets.get(name);
222
187
  }
223
- /** Runs `read` as a published client sees presets: no server preset exists during it, so no check can tell one */
224
- /** from an unknown name. Synchronous on purpose: nothing else runs while the view holds. */
225
188
  export function withPublishedPresetsOnly(read) {
226
189
  const prior = publishedOnly;
227
190
  publishedOnly = true;
@@ -232,13 +195,9 @@ export function withPublishedPresetsOnly(read) {
232
195
  publishedOnly = prior;
233
196
  }
234
197
  }
235
- /** The `/v1/voices` response as a schema, not a guess on both sides: the server sends a */
236
- /** body parsed by it and the SDK parses with it. `Array.isArray` let any array through. */
237
198
  export const voiceCatalogEntry = z.object({
238
- // Strings, not enums: an unfamiliar name or label does not break `listVoices`.
239
199
  name: z.string().min(1),
240
200
  kind: z.string().optional(),
241
- /** The skill whose `voice` field takes this name; no other skill speaks the voice. */
242
201
  skill: z.string().optional(),
243
202
  language: z.string().min(1).optional(),
244
203
  locale: z.string().optional(),
@@ -252,7 +211,6 @@ export const voiceCatalogEntry = z.object({
252
211
  verified_models: z.array(z.string()).optional(),
253
212
  words_per_second: z.number().positive().optional()
254
213
  .describe("Measured English pace on eleven_v4, which has no speed setting; analyze_reference measures a presenter the same way."),
255
- // The signature is temporary; a missing pair means the voice has no sample.
256
214
  preview_url: z.url().optional(),
257
215
  preview_expires_at: z.iso.datetime().optional(),
258
216
  });
@@ -260,17 +218,13 @@ export const voiceModelEntry = z.object({
260
218
  id: z.string().min(1),
261
219
  char_limit: z.number().int().positive(),
262
220
  languages: z.array(z.string()),
263
- /** Whether the vendor verifies any library voice for this model at all. An empty */
264
- /** `verified_models` on a model where this is `false` says nothing about the voice. */
265
221
  vendor_verifies_voices: z.boolean().optional(),
266
222
  });
267
223
  export const voicesResponse = z.object({
268
224
  voices: z.array(voiceCatalogEntry),
269
225
  models: z.array(voiceModelEntry).optional(),
270
226
  });
271
- /** The voice when the actor's gender is unknown; the resolver fills it in, not the schema. */
272
227
  export const DEFAULT_VOICE_PRESET = "george";
273
- /** The default voice follows the actor's gender. */
274
228
  export const DEFAULT_VOICE_BY_GENDER = {
275
229
  female: "sarah",
276
230
  male: "george",
@@ -278,7 +232,6 @@ export const DEFAULT_VOICE_BY_GENDER = {
278
232
  function defaultVoiceFor(gender) {
279
233
  return gender === undefined ? DEFAULT_VOICE_PRESET : DEFAULT_VOICE_BY_GENDER[gender];
280
234
  }
281
- /** The voices of `MODEL_VOICE_MODEL` by OUR names, in the vendor page's order. */
282
235
  export const MODEL_VOICES = {
283
236
  zephyr: { description: "Bright" },
284
237
  puck: { description: "Upbeat" },
@@ -312,31 +265,26 @@ export const MODEL_VOICES = {
312
265
  sulafat: { description: "Warm" },
313
266
  };
314
267
  export const MODEL_VOICE_NAMES = Object.keys(MODEL_VOICES);
315
- /** The one model that speaks `MODEL_VOICES`: naming one of them selects it. */
316
268
  export const MODEL_VOICE_MODEL = GOOGLE_TTS_MODEL;
317
269
  export function isModelVoiceName(name) {
318
270
  return Object.hasOwn(MODEL_VOICES, name);
319
271
  }
320
- /** The default voice of a model that speaks only its own voices; an unknown gender speaks the male one. */
321
272
  export const MODEL_DEFAULT_VOICE_BY_GENDER = {
322
273
  female: "kore",
323
274
  male: "charon",
324
275
  };
325
- /** The model of `MODEL_VOICES` speaks only those: presets, catalog voices and raw ids do not carry over. */
326
276
  export function speaksOwnVoices(modelId) {
327
277
  return modelId === MODEL_VOICE_MODEL;
328
278
  }
329
- /** The voice a run speaks when it names none, with the gender that voice has. */
330
279
  export function defaultVoiceOf(modelId, gender) {
331
280
  const voiceGender = gender ?? VOICE_PRESETS[DEFAULT_VOICE_PRESET].gender;
332
281
  const name = speaksOwnVoices(modelId) ? MODEL_DEFAULT_VOICE_BY_GENDER[voiceGender] : defaultVoiceFor(gender);
333
282
  return { name, gender: voiceGender };
334
283
  }
335
- /** Shape of a raw vendor `voice_id`, deliberately loose (16–32 alphanumerics): the format is */
336
- /** undocumented. A coarse input filter only; the run's free preflight checks existence. */
284
+ export function pacedVoiceOf(input, modelId, gender) {
285
+ return input.voice ?? (input.voice_id === undefined ? defaultVoiceOf(modelId, gender).name : undefined);
286
+ }
337
287
  export const VOICE_ID_PATTERN = /^[A-Za-z0-9]{16,32}$/;
338
- /** Priority: raw `voice_id` > `voice` > voice by actor gender > `DEFAULT_VOICE_PRESET`. */
339
- /** Gender comes from `voiceGenderFor` (actors.ts); `tts_model` is the run's model, which owns the default voice. */
340
288
  export function resolveVoiceSelection(input, gender) {
341
289
  if (input.voice_id !== undefined) {
342
290
  return { kind: "raw", voiceId: input.voice_id };
@@ -344,7 +292,6 @@ export function resolveVoiceSelection(input, gender) {
344
292
  if (input.voice !== undefined) {
345
293
  if (isModelVoiceName(input.voice))
346
294
  return { kind: "model_voice", voice: input.voice };
347
- // Not a preset, so a catalog slug: the run resolves its id, and a miss refuses.
348
295
  if (voicePresetOf(input.voice) === undefined)
349
296
  return { kind: "catalog", slug: input.voice };
350
297
  return { kind: "preset", preset: input.voice };
@@ -354,10 +301,7 @@ export function resolveVoiceSelection(input, gender) {
354
301
  }
355
302
  return { kind: "preset", preset: defaultVoiceFor(gender) };
356
303
  }
357
- /** A catalog slug is `language_gender_name`: the prefix is the voice's language. */
358
304
  const RUSSIAN_CATALOG_SLUG_PREFIX = "ru_";
359
- /** Model: explicit `tts_model` (a retired one → its successor) → a raw `voice_id` by the script family → the model */
360
- /** of a model's own voice → the preset's model → a catalog voice by its slug language. `script` is the run's whole text. */
361
305
  export function resolveTtsModel(input, gender) {
362
306
  if (input.tts_model !== undefined)
363
307
  return RETIRED_TTS_MODELS[input.tts_model] ?? input.tts_model;
@@ -372,8 +316,6 @@ export function resolveTtsModel(input, gender) {
372
316
  return preset.model;
373
317
  return voice.startsWith(RUSSIAN_CATALOG_SLUG_PREFIX) ? RUSSIAN_TTS_MODEL : DEFAULT_TTS_MODEL;
374
318
  }
375
- /** The model a run admitted before 2026-10-25 spoke: the same order, but a named model as is and eleven_v3 for */
376
- /** everything not Russian. Stored runs without `resolved_tts_model` are described by it, never by today's default. */
377
319
  export function ttsModelBeforeV4Default(input, gender) {
378
320
  if (input.tts_model !== undefined)
379
321
  return input.tts_model;
@@ -386,11 +328,7 @@ export function ttsModelBeforeV4Default(input, gender) {
386
328
  : preset !== undefined ? preset.language === "ru" : voice.startsWith(RUSSIAN_CATALOG_SLUG_PREFIX);
387
329
  return russian ? RUSSIAN_TTS_MODEL : "eleven_v3";
388
330
  }
389
- /** Script family for the language warning: counts only Cyrillic vs Latin letters. Fewer than */
390
- /** 2 letters or no side reaching this 60% dominance gives "neutral". */
391
331
  export const SCRIPT_DOMINANCE_THRESHOLD = 0.6;
392
- /** Letters of each script separately. `detectScriptFamily` sums them; apart they tell */
393
- /** "few" from "none at all". */
394
332
  export function scriptLetterCounts(script) {
395
333
  let cyrillic = 0;
396
334
  let latin = 0;
@@ -407,7 +345,6 @@ export function scriptLetterCounts(script) {
407
345
  export function detectScriptFamily(script) {
408
346
  const { cyrillic, latin } = scriptLetterCounts(script);
409
347
  const total = cyrillic + latin;
410
- // Too few letters: nothing to judge the language by.
411
348
  if (total < 2) {
412
349
  return "neutral";
413
350
  }
@@ -419,47 +356,30 @@ export function detectScriptFamily(script) {
419
356
  }
420
357
  return "neutral";
421
358
  }
422
- /** Maps our short preset language label to a script family. Covers only ru/en on purpose: */
423
- /** any other label means "no data to compare" and silences the warning. */
424
359
  const LANGUAGE_TO_SCRIPT_FAMILY = {
425
360
  ru: "cyrillic",
426
361
  en: "latin",
427
362
  };
428
- /** QUOTE path only: a raw voice id is checked at run start, not at quote time. */
429
363
  export const RAW_VOICE_ID_VALIDATION_WARNING = "raw voice_id is verified against your account at run start, not at quote time";
430
- /** Voice warnings fire only when (i) the client chose explicitly, (ii) the claim rests on data */
431
- /** present, (iii) never on the default happy path. A voice is never substituted, only failed. */
432
364
  export function buildVoiceWarnings(input) {
433
- // A raw id is an explicit choice, but its existence is checked at run start,
434
- // so the quote warns about deferred validation.
435
365
  if (input.voice_id !== undefined) {
436
366
  return [RAW_VOICE_ID_VALIDATION_WARNING];
437
367
  }
438
- // No explicit voice: no language warnings ever. The gender-based voice is
439
- // covered by `buildActorGenderWarnings` (actors.ts).
440
368
  if (input.voice === undefined) {
441
369
  return [];
442
370
  }
443
- // Defensive: zod already narrowed voice, but a pure function does not rely on it.
444
- // An unknown name has no preset and so no data.
445
371
  const preset = voicePresetOf(input.voice);
446
372
  if (preset === undefined) {
447
373
  return [];
448
374
  }
449
- // Compare only against a PRESENT usable label; a language outside ru/en means
450
- // no data, so stay silent instead of guessing.
451
375
  const voiceFamily = LANGUAGE_TO_SCRIPT_FAMILY[preset.language];
452
376
  if (voiceFamily === undefined) {
453
377
  return [];
454
378
  }
455
- // An explicit preset against the detected script family. A neutral or mixed
456
- // script contradicts nothing.
457
379
  const scriptFamily = detectScriptFamily(input.script);
458
380
  if (scriptFamily === "neutral" || scriptFamily === voiceFamily) {
459
381
  return [];
460
382
  }
461
- // "No letters at all" and "wrong language" call for different fixes: the text or
462
- // its delivery versus the voice choice.
463
383
  const counts = scriptLetterCounts(input.script);
464
384
  if (counts[voiceFamily] === 0) {
465
385
  return [
@@ -472,8 +392,6 @@ export function buildVoiceWarnings(input) {
472
392
  `voice "${input.voice}" is labeled ${preset.language}, but the script looks ${scriptFamily}; it will be voiced in a ${preset.language} voice`,
473
393
  ];
474
394
  }
475
- /** A retired model named by the client, and a model that ignores stress marks or break tags on text that */
476
- /** carries them. Silent on a model that reads both. `model` is the one spoken: a stored run passes its own. */
477
395
  export function buildSpeechModelWarnings(input, gender, model = resolveTtsModel(input, gender)) {
478
396
  const retired = input.tts_model !== undefined && input.tts_model !== model && RETIRED_TTS_MODELS[input.tts_model] !== undefined
479
397
  ? [`tts_model ${input.tts_model} is no longer used for speech: this run speaks ${model}`]
@@ -484,12 +402,10 @@ export function buildSpeechModelWarnings(input, gender, model = resolveTtsModel(
484
402
  const first = [...retired, ...breaks];
485
403
  if (STRESS_MARK_MODELS.has(model))
486
404
  return first;
487
- // An explicit voice stays with its vendor: a reader of another vendor would refuse it.
488
405
  const keepsVoice = input.voice !== undefined || input.voice_id !== undefined;
489
406
  const readerModels = [...STRESS_MARK_MODELS].filter((reader) => RETIRED_TTS_MODELS[reader] === undefined &&
490
407
  (!keepsVoice || TTS_MODEL_BACKEND[reader] === TTS_MODEL_BACKEND[model]));
491
408
  const readers = `${listed(readerModels)} ${readerModels.length === 1 ? "reads" : "read"}`;
492
- // A mark after a Latin letter is a French or Spanish accent (NFD), not stress.
493
409
  const marked = CYRILLIC_STRESS_MARK.test(input.script) || stressMarksFromCapitals(input.script) !== input.script;
494
410
  if (marked) {
495
411
  return [
@@ -508,4 +424,3 @@ export function buildSpeechModelWarnings(input, gender, model = resolveTtsModel(
508
424
  }
509
425
  return first;
510
426
  }
511
- //# sourceMappingURL=voices.js.map
@@ -1,8 +1,6 @@
1
1
  import { type CapabilityProfile, type MethodDescriptor, type WorkflowMethodResponse, type WorkflowCatalogResponse } from '../contracts/v1/workflow-catalog.js';
2
2
  export declare const WORKFLOW_METHODS: readonly MethodDescriptor[];
3
- /** Executable versions of planning-only methods (#1461): one replaces its method while an executor of the snapshot names its profile. */
4
3
  export declare const WORKFLOW_FILM_METHODS: readonly MethodDescriptor[];
5
- /** A pinned method version, whichever of its versions the catalog offers now. */
6
4
  export declare function workflowMethodVersion(id: string, version: number): MethodDescriptor | undefined;
7
5
  export declare function queryWorkflowCatalog(capabilities: CapabilityProfile): WorkflowCatalogResponse;
8
6
  export declare function queryWorkflowMethod(id: string, capabilities: CapabilityProfile): WorkflowMethodResponse | null;
@@ -15,14 +15,11 @@ function freeze(value) {
15
15
  return value;
16
16
  }
17
17
  export const WORKFLOW_METHODS = freeze([ugcProductIntro, ugcFaqAnswer, facelessExplainer, productImageStory, websiteProofDemo, kineticLaunch, referenceRemake]);
18
- /** Executable versions of planning-only methods (#1461): one replaces its method while an executor of the snapshot names its profile. */
19
18
  export const WORKFLOW_FILM_METHODS = freeze([kineticLaunchFilm, websiteProofDemoFilm]);
20
- /** The version of a method the snapshot offers: its executable one while some executor qualifies that profile, else the catalog's. */
21
19
  function offered(descriptor, snapshot) {
22
20
  const film = WORKFLOW_FILM_METHODS.find(method => method.id === descriptor.id);
23
21
  return film && snapshot.executors.some(executor => executor.skill === film.binding.skill && executor.profiles.includes(film.binding.profile)) ? film : descriptor;
24
22
  }
25
- /** A pinned method version, whichever of its versions the catalog offers now. */
26
23
  export function workflowMethodVersion(id, version) {
27
24
  return [...WORKFLOW_METHODS, ...WORKFLOW_FILM_METHODS].find(method => method.id === id && method.version === version);
28
25
  }
@@ -66,4 +63,3 @@ export function queryWorkflowMethod(id, capabilities) {
66
63
  const descriptor = WORKFLOW_METHODS.find(method => method.id === id);
67
64
  return descriptor ? methodResponse(offered(descriptor, snapshot), snapshot) : null;
68
65
  }
69
- //# sourceMappingURL=catalog.js.map
@@ -2,9 +2,6 @@ import type { WorkflowPlanDocument } from '../contracts/v1/workflow-plan.js';
2
2
  import type { WorkflowIssue } from '../contracts/v1/workflow-primitives.js';
3
3
  import type { MethodDescriptor } from '../contracts/v1/workflow-catalog.js';
4
4
  import { type FilmDirections } from '../film-directions.js';
5
- /** A method whose executor refuses to deliver a film that misses a required beat's visual (#1461). */
6
5
  export declare const enforcesVisualBeats: (method: MethodDescriptor) => boolean;
7
- /** What the plan's pinned method requires of its film; none for a method that does not enforce its beats. */
8
6
  export declare function workflowFilmDirections(document: WorkflowPlanDocument): FilmDirections | undefined;
9
- /** Why a plan of an enforcing method cannot be launched as planned: anchors, glyphs and captures, before any approval. */
10
7
  export declare function filmDirectionIssues(method: MethodDescriptor, document: WorkflowPlanDocument): WorkflowIssue[];
@@ -2,9 +2,7 @@ import { EXPLAINER_MAX_PRODUCT_PICTURES } from '../faceless-public.js';
2
2
  import { resolveFacelessCustomerAnchors } from '../faceless-customer-anchors.js';
3
3
  import { missingKitGlyphs } from '../film-directions.js';
4
4
  import { workflowMethodVersion } from './catalog.js';
5
- /** A method whose executor refuses to deliver a film that misses a required beat's visual (#1461). */
6
5
  export const enforcesVisualBeats = (method) => method.binding.kind === 'native' && method.binding.visual_beats === 'enforced';
7
- /** What the plan's pinned method requires of its film; none for a method that does not enforce its beats. */
8
6
  export function workflowFilmDirections(document) {
9
7
  const method = workflowMethodVersion(document.method.method_id, document.method.version);
10
8
  if (!method || !enforcesVisualBeats(method))
@@ -15,7 +13,6 @@ export function workflowFilmDirections(document) {
15
13
  ...(beat.anchor.occurrence === undefined ? {} : { occurrence: beat.anchor.occurrence }) }] : []);
16
14
  return { method: method.id, moments, captures };
17
15
  }
18
- /** Why a plan of an enforcing method cannot be launched as planned: anchors, glyphs and captures, before any approval. */
19
16
  export function filmDirectionIssues(method, document) {
20
17
  if (!enforcesVisualBeats(method))
21
18
  return [];
@@ -64,4 +61,3 @@ export function filmDirectionIssues(method, document) {
64
61
  }
65
62
  return issues;
66
63
  }
67
- //# sourceMappingURL=film-directions.js.map
@@ -14,4 +14,3 @@ export * from './product-references.js';
14
14
  export * from './film-directions.js';
15
15
  export * from './reference-remake.js';
16
16
  export { referenceProfileWarnings } from '../reference-profile.js';
17
- //# sourceMappingURL=index.js.map
@@ -3888,6 +3888,7 @@ export declare const facelessExplainer: {
3888
3888
  pacing: {
3889
3889
  layer_change_every_s: number;
3890
3890
  face_share: number;
3891
+ effective_words_per_s?: number | undefined;
3891
3892
  };
3892
3893
  palette: string[];
3893
3894
  music: string;
@@ -4181,6 +4182,36 @@ export declare const facelessExplainer: {
4181
4182
  start_s: number;
4182
4183
  end_s: number;
4183
4184
  }[] | undefined;
4185
+ shots?: {
4186
+ start_s: number;
4187
+ end_s: number;
4188
+ beat_index: number;
4189
+ words: number;
4190
+ silent: boolean;
4191
+ cut_in: "from_insert" | "jump_cut" | "other" | "size_change" | "start" | "to_insert";
4192
+ source?: {
4193
+ kind: "ai_video" | "code_render" | "live" | "real_footage" | "screen_capture";
4194
+ confidence: number;
4195
+ measured: boolean;
4196
+ } | undefined;
4197
+ same_clip_as?: number | null | undefined;
4198
+ }[] | undefined;
4199
+ tempo?: {
4200
+ music_bed: boolean;
4201
+ bpm: number | null;
4202
+ cuts_on_beat: number | null;
4203
+ cuts_on_beat_by_chance: number | null;
4204
+ edit_on_beat: boolean;
4205
+ } | undefined;
4206
+ bring?: {
4207
+ kind: "live_clip" | "product_photo" | "screen_recording" | "screenshot";
4208
+ seconds: number;
4209
+ at_s: number[];
4210
+ }[] | undefined;
4211
+ sound_events?: {
4212
+ t_s: number;
4213
+ kind: "click" | "ding" | "hit" | "impact" | "pop" | "typing" | "whoosh";
4214
+ }[] | undefined;
4184
4215
  analysis: {
4185
4216
  warnings?: string[] | undefined;
4186
4217
  };
@@ -17,4 +17,3 @@ export const facelessExplainer = defineWorkflowMethod({
17
17
  { id: 'moisture', role: 'ordered_points', anchor: { quote: 'First, moisture helps the seed take in water' }, required: false },
18
18
  { id: 'takeaway', role: 'takeaway', anchor: { quote: 'Check the instructions for your seed' }, required: false }] },
19
19
  });
20
- //# sourceMappingURL=faceless-explainer.js.map
@@ -3888,6 +3888,7 @@ export declare const kineticLaunch: {
3888
3888
  pacing: {
3889
3889
  layer_change_every_s: number;
3890
3890
  face_share: number;
3891
+ effective_words_per_s?: number | undefined;
3891
3892
  };
3892
3893
  palette: string[];
3893
3894
  music: string;
@@ -4181,6 +4182,36 @@ export declare const kineticLaunch: {
4181
4182
  start_s: number;
4182
4183
  end_s: number;
4183
4184
  }[] | undefined;
4185
+ shots?: {
4186
+ start_s: number;
4187
+ end_s: number;
4188
+ beat_index: number;
4189
+ words: number;
4190
+ silent: boolean;
4191
+ cut_in: "from_insert" | "jump_cut" | "other" | "size_change" | "start" | "to_insert";
4192
+ source?: {
4193
+ kind: "ai_video" | "code_render" | "live" | "real_footage" | "screen_capture";
4194
+ confidence: number;
4195
+ measured: boolean;
4196
+ } | undefined;
4197
+ same_clip_as?: number | null | undefined;
4198
+ }[] | undefined;
4199
+ tempo?: {
4200
+ music_bed: boolean;
4201
+ bpm: number | null;
4202
+ cuts_on_beat: number | null;
4203
+ cuts_on_beat_by_chance: number | null;
4204
+ edit_on_beat: boolean;
4205
+ } | undefined;
4206
+ bring?: {
4207
+ kind: "live_clip" | "product_photo" | "screen_recording" | "screenshot";
4208
+ seconds: number;
4209
+ at_s: number[];
4210
+ }[] | undefined;
4211
+ sound_events?: {
4212
+ t_s: number;
4213
+ kind: "click" | "ding" | "hit" | "impact" | "pop" | "typing" | "whoosh";
4214
+ }[] | undefined;
4184
4215
  analysis: {
4185
4216
  warnings?: string[] | undefined;
4186
4217
  };
@@ -4206,7 +4237,6 @@ export declare const kineticLaunch: {
4206
4237
  }[];
4207
4238
  };
4208
4239
  };
4209
- /** The method on the explainer film (#1461): offered while the faceless executor qualifies its profile, else the planning-only version 1. */
4210
4240
  export declare const kineticLaunchFilm: {
4211
4241
  id: "faceless-explainer" | "kinetic-launch" | "product-image-story" | "reference-remake" | "ugc-faq-answer" | "ugc-product-intro" | "website-proof-demo";
4212
4242
  version: number;
@@ -8097,6 +8127,7 @@ export declare const kineticLaunchFilm: {
8097
8127
  pacing: {
8098
8128
  layer_change_every_s: number;
8099
8129
  face_share: number;
8130
+ effective_words_per_s?: number | undefined;
8100
8131
  };
8101
8132
  palette: string[];
8102
8133
  music: string;
@@ -8390,6 +8421,36 @@ export declare const kineticLaunchFilm: {
8390
8421
  start_s: number;
8391
8422
  end_s: number;
8392
8423
  }[] | undefined;
8424
+ shots?: {
8425
+ start_s: number;
8426
+ end_s: number;
8427
+ beat_index: number;
8428
+ words: number;
8429
+ silent: boolean;
8430
+ cut_in: "from_insert" | "jump_cut" | "other" | "size_change" | "start" | "to_insert";
8431
+ source?: {
8432
+ kind: "ai_video" | "code_render" | "live" | "real_footage" | "screen_capture";
8433
+ confidence: number;
8434
+ measured: boolean;
8435
+ } | undefined;
8436
+ same_clip_as?: number | null | undefined;
8437
+ }[] | undefined;
8438
+ tempo?: {
8439
+ music_bed: boolean;
8440
+ bpm: number | null;
8441
+ cuts_on_beat: number | null;
8442
+ cuts_on_beat_by_chance: number | null;
8443
+ edit_on_beat: boolean;
8444
+ } | undefined;
8445
+ bring?: {
8446
+ kind: "live_clip" | "product_photo" | "screen_recording" | "screenshot";
8447
+ seconds: number;
8448
+ at_s: number[];
8449
+ }[] | undefined;
8450
+ sound_events?: {
8451
+ t_s: number;
8452
+ kind: "click" | "ding" | "hit" | "impact" | "pop" | "typing" | "whoosh";
8453
+ }[] | undefined;
8393
8454
  analysis: {
8394
8455
  warnings?: string[] | undefined;
8395
8456
  };
@@ -20,7 +20,6 @@ export const kineticLaunch = defineWorkflowMethod({
20
20
  beats: [{ id: 'announce', role: 'announcement', anchor: { quote: 'The next workshop is ready' }, required: true, visual: 'Reveal the exact announcement copy' },
21
21
  { id: 'cta', role: 'end_card', anchor: { quote: 'Read the schedule' }, required: true, visual: 'Hold the accepted CTA after its spoken words' }] },
22
22
  });
23
- /** The method on the explainer film (#1461): offered while the faceless executor qualifies its profile, else the planning-only version 1. */
24
23
  export const kineticLaunchFilm = defineWorkflowMethod({
25
24
  id: 'kinetic-launch', version: 2, content_digest: '617de92b6205c4366c5115ac53a3cb3cfe706c5a6e22457b86fe504ace5048bc', authoring_status: 'ready', title: 'Launch a message with exact moving text',
26
25
  purpose: 'Build a concise launch from accepted copy, selected narration and deliberate text emphasis, with one closing CTA.',
@@ -38,4 +37,3 @@ export const kineticLaunchFilm = defineWorkflowMethod({
38
37
  { id: 'time', role: 'text_emphasis', anchor: { quote: 'Thursday at 6 pm' }, required: true, visual: 'Emphasize the exact day and time' },
39
38
  { id: 'cta', role: 'end_card', anchor: { quote: 'Read the schedule' }, required: true, visual: 'Hold the accepted CTA after its spoken words' }] },
40
39
  });
41
- //# sourceMappingURL=kinetic-launch.js.map
@@ -3888,6 +3888,7 @@ export declare const productImageStory: {
3888
3888
  pacing: {
3889
3889
  layer_change_every_s: number;
3890
3890
  face_share: number;
3891
+ effective_words_per_s?: number | undefined;
3891
3892
  };
3892
3893
  palette: string[];
3893
3894
  music: string;
@@ -4181,6 +4182,36 @@ export declare const productImageStory: {
4181
4182
  start_s: number;
4182
4183
  end_s: number;
4183
4184
  }[] | undefined;
4185
+ shots?: {
4186
+ start_s: number;
4187
+ end_s: number;
4188
+ beat_index: number;
4189
+ words: number;
4190
+ silent: boolean;
4191
+ cut_in: "from_insert" | "jump_cut" | "other" | "size_change" | "start" | "to_insert";
4192
+ source?: {
4193
+ kind: "ai_video" | "code_render" | "live" | "real_footage" | "screen_capture";
4194
+ confidence: number;
4195
+ measured: boolean;
4196
+ } | undefined;
4197
+ same_clip_as?: number | null | undefined;
4198
+ }[] | undefined;
4199
+ tempo?: {
4200
+ music_bed: boolean;
4201
+ bpm: number | null;
4202
+ cuts_on_beat: number | null;
4203
+ cuts_on_beat_by_chance: number | null;
4204
+ edit_on_beat: boolean;
4205
+ } | undefined;
4206
+ bring?: {
4207
+ kind: "live_clip" | "product_photo" | "screen_recording" | "screenshot";
4208
+ seconds: number;
4209
+ at_s: number[];
4210
+ }[] | undefined;
4211
+ sound_events?: {
4212
+ t_s: number;
4213
+ kind: "click" | "ding" | "hit" | "impact" | "pop" | "typing" | "whoosh";
4214
+ }[] | undefined;
4184
4215
  analysis: {
4185
4216
  warnings?: string[] | undefined;
4186
4217
  };
@@ -17,4 +17,3 @@ export const productImageStory = defineWorkflowMethod({
17
17
  beats: [{ id: 'shape', role: 'visible_fact', anchor: { quote: 'ceramic mug' }, required: false },
18
18
  { id: 'handle', role: 'image_evidence', anchor: { quote: 'wide handle' }, required: false }] },
19
19
  });
20
- //# sourceMappingURL=product-image-story.js.map