@clipwright/core 0.59.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 (586) 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 +6 -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 +61 -3
  38. package/dist/contracts/v1/workflow-brief.js +0 -13
  39. package/dist/contracts/v1/workflow-catalog.d.ts +118 -0
  40. package/dist/contracts/v1/workflow-catalog.js +0 -3
  41. package/dist/contracts/v1/workflow-client.d.ts +116 -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 +47 -1
  46. package/dist/contracts/v1/workflow-execution.js +0 -4
  47. package/dist/contracts/v1/workflow-next.d.ts +13 -2
  48. package/dist/contracts/v1/workflow-next.js +0 -3
  49. package/dist/contracts/v1/workflow-plan.d.ts +177 -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 +15 -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 +29 -11
  92. package/dist/face-billing.js +6 -25
  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 +27 -0
  101. package/dist/faceless-direction-summary.js +8 -0
  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 +40 -35
  108. package/dist/faceless-price.js +35 -49
  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 +63 -22
  112. package/dist/faceless-public.js +23 -58
  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 +3 -0
  141. package/dist/index.js +3 -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 +2 -9
  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 +8 -24
  179. package/dist/parts-pricing.js +19 -30
  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 +4 -5
  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 +16 -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 +1 -15
  335. package/dist/uploads.js +3 -20
  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 +2 -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 +33 -0
  359. package/dist/workflows/methods/faceless-explainer.js +0 -1
  360. package/dist/workflows/methods/kinetic-launch.d.ts +66 -1
  361. package/dist/workflows/methods/kinetic-launch.js +0 -2
  362. package/dist/workflows/methods/product-image-story.d.ts +33 -0
  363. package/dist/workflows/methods/product-image-story.js +0 -1
  364. package/dist/workflows/methods/reference-remake.d.ts +33 -0
  365. package/dist/workflows/methods/reference-remake.js +0 -1
  366. package/dist/workflows/methods/shared.d.ts +33 -1
  367. package/dist/workflows/methods/shared.js +0 -3
  368. package/dist/workflows/methods/ugc-faq-answer.d.ts +33 -0
  369. package/dist/workflows/methods/ugc-faq-answer.js +0 -1
  370. package/dist/workflows/methods/ugc-product-intro.d.ts +33 -0
  371. package/dist/workflows/methods/ugc-product-intro.js +0 -1
  372. package/dist/workflows/methods/website-proof-demo.d.ts +66 -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-image-placement.js.map +0 -1
  441. package/dist/faceless-image-qualification.js.map +0 -1
  442. package/dist/faceless-media-record.js.map +0 -1
  443. package/dist/faceless-price.js.map +0 -1
  444. package/dist/faceless-public-plan.js.map +0 -1
  445. package/dist/faceless-public.js.map +0 -1
  446. package/dist/faceless-short-61.js.map +0 -1
  447. package/dist/faceless-storyboard-timing.js.map +0 -1
  448. package/dist/faceless-storyboard-v2-plan.js.map +0 -1
  449. package/dist/faceless-storyboard-v2-timing.js.map +0 -1
  450. package/dist/faceless-storyboard-v2.js.map +0 -1
  451. package/dist/faceless-storyboard.js.map +0 -1
  452. package/dist/faceless-voices.js.map +0 -1
  453. package/dist/feedback.js.map +0 -1
  454. package/dist/film-directions.js.map +0 -1
  455. package/dist/film-drafts.js.map +0 -1
  456. package/dist/film-guide.js.map +0 -1
  457. package/dist/film-styles.js.map +0 -1
  458. package/dist/generation-shot.js.map +0 -1
  459. package/dist/generations-output.js.map +0 -1
  460. package/dist/generations.js.map +0 -1
  461. package/dist/idempotency.js.map +0 -1
  462. package/dist/index.js.map +0 -1
  463. package/dist/live-shot-kinds.js.map +0 -1
  464. package/dist/long-form-pricing.js.map +0 -1
  465. package/dist/long-form-profile.js.map +0 -1
  466. package/dist/long-form-revision.js.map +0 -1
  467. package/dist/markdown-quote.js.map +0 -1
  468. package/dist/mascots.js.map +0 -1
  469. package/dist/max-credits.js.map +0 -1
  470. package/dist/mcp-ugc-descriptions.js.map +0 -1
  471. package/dist/media-timebase.js.map +0 -1
  472. package/dist/motion-styles.js.map +0 -1
  473. package/dist/moves.js.map +0 -1
  474. package/dist/music.js.map +0 -1
  475. package/dist/naming.js.map +0 -1
  476. package/dist/openapi.js.map +0 -1
  477. package/dist/output-provenance.js.map +0 -1
  478. package/dist/own-agent-price.js.map +0 -1
  479. package/dist/own-agent-runs.js.map +0 -1
  480. package/dist/pacing.js.map +0 -1
  481. package/dist/parts-pricing.js.map +0 -1
  482. package/dist/post-text.js.map +0 -1
  483. package/dist/presenter-beats.js.map +0 -1
  484. package/dist/presenter-matte.js.map +0 -1
  485. package/dist/presenter-takes.js.map +0 -1
  486. package/dist/prices.js.map +0 -1
  487. package/dist/public-endpoints.js.map +0 -1
  488. package/dist/public-responses.js.map +0 -1
  489. package/dist/rate-limit.js.map +0 -1
  490. package/dist/reference-analysis.js.map +0 -1
  491. package/dist/reference-display.js.map +0 -1
  492. package/dist/reference-kinds.js.map +0 -1
  493. package/dist/reference-lyrics.js.map +0 -1
  494. package/dist/reference-profile.js.map +0 -1
  495. package/dist/reference-staging.js.map +0 -1
  496. package/dist/reference-text-spans.js.map +0 -1
  497. package/dist/reference-voice-over.js.map +0 -1
  498. package/dist/reference-voice.js.map +0 -1
  499. package/dist/render-backend.js.map +0 -1
  500. package/dist/resolved-timeline.js.map +0 -1
  501. package/dist/run-media.js.map +0 -1
  502. package/dist/run-preflight.js.map +0 -1
  503. package/dist/run-static-warnings.js.map +0 -1
  504. package/dist/runs.js.map +0 -1
  505. package/dist/scene-bible.js.map +0 -1
  506. package/dist/scene-graph.js.map +0 -1
  507. package/dist/scene-place.js.map +0 -1
  508. package/dist/scene-proposal.js.map +0 -1
  509. package/dist/script-integrity.js.map +0 -1
  510. package/dist/script-voice.js.map +0 -1
  511. package/dist/semantic-inserts.js.map +0 -1
  512. package/dist/skill-theme-explainer.js.map +0 -1
  513. package/dist/skill-theme.js.map +0 -1
  514. package/dist/skills.js.map +0 -1
  515. package/dist/speech-rhythm-contract.js.map +0 -1
  516. package/dist/speech-rhythm.js.map +0 -1
  517. package/dist/templates/backdrop.js.map +0 -1
  518. package/dist/templates/callout.js.map +0 -1
  519. package/dist/templates/chart.js.map +0 -1
  520. package/dist/templates/chat-window.js.map +0 -1
  521. package/dist/templates/checklist.js.map +0 -1
  522. package/dist/templates/comment-cta.js.map +0 -1
  523. package/dist/templates/compare.js.map +0 -1
  524. package/dist/templates/cover-story.js.map +0 -1
  525. package/dist/templates/end-card.js.map +0 -1
  526. package/dist/templates/hand-title.js.map +0 -1
  527. package/dist/templates/index.js.map +0 -1
  528. package/dist/templates/lower-third.js.map +0 -1
  529. package/dist/templates/notification.js.map +0 -1
  530. package/dist/templates/phone-call.js.map +0 -1
  531. package/dist/templates/phone-screen.js.map +0 -1
  532. package/dist/templates/pointer-chips.js.map +0 -1
  533. package/dist/templates/progress.js.map +0 -1
  534. package/dist/templates/quote.js.map +0 -1
  535. package/dist/templates/race.js.map +0 -1
  536. package/dist/templates/rating.js.map +0 -1
  537. package/dist/templates/series-frame.js.map +0 -1
  538. package/dist/templates/size.js.map +0 -1
  539. package/dist/templates/slot.js.map +0 -1
  540. package/dist/templates/sounds.js.map +0 -1
  541. package/dist/templates/stat.js.map +0 -1
  542. package/dist/templates/tag.js.map +0 -1
  543. package/dist/templates/terminal.js.map +0 -1
  544. package/dist/templates/theme.js.map +0 -1
  545. package/dist/templates/title-card.js.map +0 -1
  546. package/dist/templates/video-grid.js.map +0 -1
  547. package/dist/templates/word-fill.js.map +0 -1
  548. package/dist/templates/word-title.js.map +0 -1
  549. package/dist/trend-niches.js.map +0 -1
  550. package/dist/trend-search.js.map +0 -1
  551. package/dist/tts-backend.js.map +0 -1
  552. package/dist/ugc-call.js.map +0 -1
  553. package/dist/ugc-delivery.js.map +0 -1
  554. package/dist/ugc-framing.js.map +0 -1
  555. package/dist/ugc-interview.js.map +0 -1
  556. package/dist/ugc-layers.js.map +0 -1
  557. package/dist/ugc-scenes.js.map +0 -1
  558. package/dist/ugc-video-media.js.map +0 -1
  559. package/dist/uploads.js.map +0 -1
  560. package/dist/vendor-response.js.map +0 -1
  561. package/dist/video-size.js.map +0 -1
  562. package/dist/voice-admission.js.map +0 -1
  563. package/dist/voice-catalog-data.js.map +0 -1
  564. package/dist/voice-catalog.js.map +0 -1
  565. package/dist/voice-listing.js.map +0 -1
  566. package/dist/voice-pace.js.map +0 -1
  567. package/dist/voice-preview-approval.js.map +0 -1
  568. package/dist/voices.js.map +0 -1
  569. package/dist/workflows/catalog.js.map +0 -1
  570. package/dist/workflows/film-directions.js.map +0 -1
  571. package/dist/workflows/index.js.map +0 -1
  572. package/dist/workflows/methods/faceless-explainer.js.map +0 -1
  573. package/dist/workflows/methods/kinetic-launch.js.map +0 -1
  574. package/dist/workflows/methods/product-image-story.js.map +0 -1
  575. package/dist/workflows/methods/reference-remake.js.map +0 -1
  576. package/dist/workflows/methods/shared.js.map +0 -1
  577. package/dist/workflows/methods/ugc-faq-answer.js.map +0 -1
  578. package/dist/workflows/methods/ugc-product-intro.js.map +0 -1
  579. package/dist/workflows/methods/website-proof-demo.js.map +0 -1
  580. package/dist/workflows/motion-director.js.map +0 -1
  581. package/dist/workflows/product-references.js.map +0 -1
  582. package/dist/workflows/reference-remake.js.map +0 -1
  583. package/dist/workflows/remake-chooser.js.map +0 -1
  584. package/dist/workflows/remake-motion.js.map +0 -1
  585. package/dist/workflows/validate.js.map +0 -1
  586. package/dist/workflows.js.map +0 -1
@@ -1,7 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { type ShotChange } from "./edit-operations.js";
3
3
  import type { PlannedRunShots } from "./edit-shots.js";
4
- /** Where a shot's media comes from: the source run, a kept candidate, an upload, or a generation to pay for. */
5
4
  export declare const editAsset: z.ZodDiscriminatedUnion<[z.ZodObject<{
6
5
  from: z.ZodLiteral<"source">;
7
6
  shot_id: z.ZodString;
@@ -67,7 +66,6 @@ export declare const editShot: z.ZodObject<{
67
66
  }, z.core.$strict>], "from">;
68
67
  }, z.core.$strict>;
69
68
  export type EditShot = z.infer<typeof editShot>;
70
- /** The whole timeline a revision asks for, written against one source run. */
71
69
  export declare const editDocument: z.ZodObject<{
72
70
  v: z.ZodLiteral<1>;
73
71
  source_run_id: z.ZodString;
@@ -124,14 +122,11 @@ export declare const editDocument: z.ZodObject<{
124
122
  }, z.core.$strict>>>;
125
123
  }, z.core.$strict>;
126
124
  export type EditDocument = z.infer<typeof editDocument>;
127
- /** The most a stored draft's document weighs, in bytes of its JSON; the table's check states the same number. */
128
125
  export declare const EDIT_DOCUMENT_MAX_BYTES = 256000;
129
- /** The JSON a document is stored as and its length in bytes: the one place either is computed. */
130
126
  export declare function serializeEditDocument(document: EditDocument): {
131
127
  json: string;
132
128
  bytes: number;
133
129
  };
134
- /** A save of the draft: the whole document and the version it was written against, 0 when no draft was read. */
135
130
  export declare const saveRunEdit: z.ZodObject<{
136
131
  base_version: z.ZodNumber;
137
132
  document: z.ZodObject<{
@@ -191,7 +186,6 @@ export declare const saveRunEdit: z.ZodObject<{
191
186
  }, z.core.$strict>;
192
187
  }, z.core.$strict>;
193
188
  export type SaveRunEdit = z.infer<typeof saveRunEdit>;
194
- /** The draft of a run's edit. Version 0 is a run with nothing stored: its document changes nothing. */
195
189
  export declare const runEdit: z.ZodObject<{
196
190
  run_id: z.ZodString;
197
191
  version: z.ZodNumber;
@@ -288,7 +282,6 @@ export declare const runEdit: z.ZodObject<{
288
282
  updated_at: z.ZodNullable<z.ZodString>;
289
283
  }, z.core.$strip>;
290
284
  export type RunEdit = z.infer<typeof runEdit>;
291
- /** The document as a client reads it: kind, track, asset source and operation are open, and no limit of a save applies. */
292
285
  export declare const editDocumentRead: z.ZodObject<{
293
286
  v: z.ZodLiteral<1>;
294
287
  source_run_id: z.ZodString;
@@ -310,7 +303,6 @@ export declare const editDocumentRead: z.ZodObject<{
310
303
  discarded: z.ZodDefault<z.ZodArray<z.ZodString>>;
311
304
  }, z.core.$loose>;
312
305
  export type EditDocumentRead = z.infer<typeof editDocumentRead>;
313
- /** The draft as a client reads it: the code of an issue is an open string. */
314
306
  export declare const runEditRead: z.ZodObject<{
315
307
  run_id: z.ZodString;
316
308
  version: z.ZodNumber;
@@ -344,14 +336,10 @@ export declare const runEditRead: z.ZodObject<{
344
336
  }, z.core.$strip>>;
345
337
  }, z.core.$strip>;
346
338
  export type RunEditRead = z.infer<typeof runEditRead>;
347
- /** What a client passes to a save: the version it read and the document, as read or as written. */
348
339
  export type SaveRunEditArgs = {
349
340
  base_version: number;
350
341
  document: z.input<typeof editDocumentRead>;
351
342
  };
352
- /** The path of a run's draft. The id is encoded, since it comes from the caller. */
353
343
  export declare const runEditPath: (id: string) => string;
354
- /** The document that changes nothing: every shot of the view on its own source asset. */
355
344
  export declare function identityEditDocument(shots: PlannedRunShots): EditDocument;
356
- /** Replaces only the asset of each named shot with a generation; spans and every other shot stay. */
357
345
  export declare function applyShotChanges(document: EditDocument, changes: ShotChange[]): EditDocument;
@@ -6,7 +6,6 @@ import { EDIT_ISSUE_CODES } from "./edit-validate.js";
6
6
  import { facelessShotTransitions } from "./faceless-media-record.js";
7
7
  import { runId } from "./runs.js";
8
8
  import { uploadId } from "./uploads.js";
9
- /** Where a shot's media comes from: the source run, a kept candidate, an upload, or a generation to pay for. */
10
9
  export const editAsset = z.discriminatedUnion("from", [
11
10
  z.strictObject({ from: z.literal("source"), shot_id: shotId }),
12
11
  z.strictObject({ from: z.literal("candidate"), run_id: runId }),
@@ -19,25 +18,20 @@ export const editShot = z.strictObject({
19
18
  media_offset_frames: frame.optional(),
20
19
  asset: editAsset,
21
20
  });
22
- /** The whole timeline a revision asks for, written against one source run. */
23
21
  export const editDocument = z.strictObject({
24
22
  v: z.literal(1), source_run_id: runId,
25
23
  timebase: z.strictObject({ fps: z.number().int().positive() }),
26
24
  duration_frames: z.number().int().positive().safe(),
27
25
  shots: z.array(editShot).min(1).max(EDIT_MAX_SHOTS),
28
26
  discarded: z.array(runId).max(EDIT_MAX_DISCARDED).default([]),
29
- /** Faceless only: the cut transitions to draw, `null` for none; absent keeps the source run's. */
30
27
  transitions: facelessShotTransitions.nullable().optional(),
31
28
  });
32
- /** The most a stored draft's document weighs, in bytes of its JSON; the table's check states the same number. */
33
29
  export const EDIT_DOCUMENT_MAX_BYTES = 256_000;
34
- /** The JSON a document is stored as and its length in bytes: the one place either is computed. */
35
30
  export function serializeEditDocument(document) {
36
31
  const json = JSON.stringify(document);
37
32
  return { json, bytes: new TextEncoder().encode(json).length };
38
33
  }
39
34
  const customIssue = "custom";
40
- /** A save of the draft: the whole document and the version it was written against, 0 when no draft was read. */
41
35
  export const saveRunEdit = z.strictObject({
42
36
  base_version: z.number().int().nonnegative(),
43
37
  document: editDocument,
@@ -52,23 +46,19 @@ const editIssue = z.object({
52
46
  code: z.enum(EDIT_ISSUE_CODES), shot_id: z.string().optional(), from_frame: frame.optional(), to_frame: frame.optional(),
53
47
  message: z.string().min(1),
54
48
  });
55
- /** The draft of a run's edit. Version 0 is a run with nothing stored: its document changes nothing. */
56
49
  export const runEdit = z.object({
57
50
  run_id: runId,
58
51
  version: z.number().int().nonnegative(),
59
52
  document: editDocument,
60
- /** What the rules of the run refuse in the document; a draft is stored with them. */
61
53
  issues: z.array(editIssue),
62
54
  updated_at: z.string().datetime().nullable(),
63
55
  });
64
- // What installed clients parse. A save sends the document back, so a key the client does not know is kept at every level.
65
56
  const editShotRead = z.looseObject({
66
57
  id: shotId, track: z.string(), kind: z.string(),
67
58
  start_frame: frame, end_frame: frame.positive(),
68
59
  media_offset_frames: frame.optional(),
69
60
  asset: z.looseObject({ from: z.string() }),
70
61
  });
71
- /** The document as a client reads it: kind, track, asset source and operation are open, and no limit of a save applies. */
72
62
  export const editDocumentRead = z.looseObject({
73
63
  v: z.literal(1), source_run_id: runId,
74
64
  timebase: z.looseObject({ fps: z.number().int().positive() }),
@@ -76,14 +66,11 @@ export const editDocumentRead = z.looseObject({
76
66
  shots: z.array(editShotRead),
77
67
  discarded: z.array(runId).default([]),
78
68
  });
79
- /** The draft as a client reads it: the code of an issue is an open string. */
80
69
  export const runEditRead = runEdit.extend({
81
70
  document: editDocumentRead,
82
71
  issues: z.array(editIssue.extend({ code: z.string() })),
83
72
  });
84
- /** The path of a run's draft. The id is encoded, since it comes from the caller. */
85
73
  export const runEditPath = (id) => `/v1/runs/${encodeURIComponent(id)}/edit`;
86
- /** The document that changes nothing: every shot of the view on its own source asset. */
87
74
  export function identityEditDocument(shots) {
88
75
  return {
89
76
  v: 1, source_run_id: shots.run_id, timebase: { fps: shots.timebase.fps }, duration_frames: shots.duration_frames,
@@ -95,7 +82,6 @@ export function identityEditDocument(shots) {
95
82
  discarded: [],
96
83
  };
97
84
  }
98
- /** Replaces only the asset of each named shot with a generation; spans and every other shot stay. */
99
85
  export function applyShotChanges(document, changes) {
100
86
  const operations = new Map();
101
87
  for (const change of changes) {
@@ -110,4 +96,3 @@ export function applyShotChanges(document, changes) {
110
96
  return operation ? { ...shot, asset: { from: "generate", operation } } : shot;
111
97
  }) };
112
98
  }
113
- //# sourceMappingURL=edit-document.js.map
@@ -8,17 +8,14 @@ export interface FacelessShotsContext {
8
8
  pricing: PlannedRunShots["pricing"];
9
9
  captions: boolean | null;
10
10
  contractVersion: string;
11
- /** What this reader may see: a closed side is nulled in the view and named in `withheld`. */
12
11
  exposure: {
13
12
  descriptions: boolean;
14
13
  source_media: boolean;
15
14
  };
16
- /** By shot id; `null` when the run's media record is gone. */
17
15
  media: ReadonlyMap<string, {
18
16
  source: "generated" | "customer";
19
17
  previewUrl: string | null;
20
18
  mediaFrames: number | null;
21
19
  }> | null;
22
20
  }
23
- /** The shots view of a faceless run, read from its stored plan. The line's frame and timebase are stated here, once. */
24
21
  export declare function facelessRunShots(plan: FacelessPublicPlan, context: FacelessShotsContext): PlannedRunShots;
@@ -1,5 +1,4 @@
1
1
  import { FACELESS_EDIT_RULES, facelessShotActions } from "./edit-rules.js";
2
- /** The shots view of a faceless run, read from its stored plan. The line's frame and timebase are stated here, once. */
3
2
  export function facelessRunShots(plan, context) {
4
3
  const { exposure, media } = context;
5
4
  const editable = context.editable.state === "editable";
@@ -12,7 +11,6 @@ export function facelessRunShots(plan, context) {
12
11
  index, text: word.word, start_ms: Math.round(word.startSec * 1000), end_ms: Math.round(word.endSec * 1000)
13
12
  })) },
14
13
  tracks: [{ id: "visual", shots: plan.shots.map((shot, index) => {
15
- // The word each neighbouring cut falls after; a plan that records no cut gives the shot no word range.
16
14
  const cutBefore = index === 0 ? -1 : plan.shots[index - 1].cutAfterWord;
17
15
  const cutAfter = index === plan.shots.length - 1 ? plan.words.length - 1 : shot.cutAfterWord;
18
16
  const ranged = cutBefore !== undefined && cutAfter !== undefined;
@@ -26,7 +24,6 @@ export function facelessRunShots(plan, context) {
26
24
  preview_url: exposure.source_media ? asset?.previewUrl ?? null : null,
27
25
  source,
28
26
  media_frames: shot.mediaType === "video" ? asset?.mediaFrames ?? null : null, media_offset_frames: null,
29
- // An action shot's clip (#1113) is kept as delivered: a revision refuses any change to it, so none is offered.
30
27
  operations: editable && !(index > 0 && shot.mediaType === "video") ? facelessShotActions({ index, source }) : [],
31
28
  };
32
29
  }) }],
@@ -37,4 +34,3 @@ export function facelessRunShots(plan, context) {
37
34
  contract_version: context.contractVersion,
38
35
  };
39
36
  }
40
- //# sourceMappingURL=edit-faceless.js.map
@@ -4,24 +4,17 @@ import type { PlannedRunShots } from "./edit-shots.js";
4
4
  import type { LongFormBackground, LongFormOverlay, LongFormRevisionRecord } from "./long-form-revision.js";
5
5
  import type { ResolvedTimeline } from "./resolved-timeline.js";
6
6
  import type { AspectRatio } from "./skills.js";
7
- /** The shortest picture over presenter time: one second. */
8
7
  export declare const LONG_FORM_COVER_MIN_FRAMES = 25;
9
- /** What a long-form timeline allows. Without a background nothing paints the bars, so an upload must fill the canvas (rule 4). */
10
8
  export declare function longFormEditRules(background: LongFormBackground | null): EditRules;
11
- /** A word as a long-form run stores it, in seconds from the start of its own audio. */
12
9
  export declare const longFormWordTimings: z.ZodArray<z.ZodObject<{
13
10
  word: z.ZodString;
14
11
  startSec: z.ZodNumber;
15
12
  endSec: z.ZodNumber;
16
13
  }, z.core.$strict>>;
17
14
  export type LongFormWordTimings = z.infer<typeof longFormWordTimings>;
18
- /** Where the presenter's recording of an actor slot is stored: one take per slot, in both modes. */
19
15
  export declare const longFormTakeKey: (runId: string, position: number) => string;
20
- /** The word timings a view needs, by key: each actor slot's own in `segments`, the one narration's in `script_inserts`. */
21
16
  export declare function longFormTimingKeys(timeline: ResolvedTimeline): string[];
22
- /** The canvas of a long-form run: the short side is 1080 at every aspect ratio. */
23
17
  export declare function longFormFrame(aspect: AspectRatio): PlannedRunShots["frame"];
24
- /** The run's words on the output's clock: a segment's words shifted to its slot, or the narration's as they are. */
25
18
  export declare function longFormWords(timeline: ResolvedTimeline, timings: ReadonlyMap<string, LongFormWordTimings>): PlannedRunShots["narration"]["words"];
26
19
  export interface LongFormShotsContext {
27
20
  runId: string;
@@ -34,15 +27,9 @@ export interface LongFormShotsContext {
34
27
  descriptions: boolean;
35
28
  source_media: boolean;
36
29
  };
37
- /** Signed links by storage key; a key with no link is shown without a picture. */
38
30
  previews: ReadonlyMap<string, string>;
39
- /** The source's `background`, `null` when it named none. */
40
31
  background: LongFormBackground | null;
41
32
  }
42
- /** The shot id of a timeline slot: a take, an insert, a listening take or a hold by its position. */
43
33
  export declare const longFormSlotShotId: (slot: ResolvedTimeline["slots"][number]) => string;
44
- /** The planned view of a long-form run: each actor slot a presenter take, each media slot an insert, together tiling the output. */
45
- /** An overlay named after an insert replaces it on the visual track; any other overlay is a cover added by a revision. */
46
34
  export declare function longFormRunShots(timeline: ResolvedTimeline, words: PlannedRunShots["narration"]["words"], context: LongFormShotsContext, overlays?: readonly LongFormOverlay[]): PlannedRunShots;
47
- /** The view of a delivered long-form revision: its source tiling with its overlays, one shot per id. */
48
35
  export declare function longFormRevisionShots(record: LongFormRevisionRecord, words: PlannedRunShots["narration"]["words"], context: LongFormShotsContext): PlannedRunShots;
@@ -1,11 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import { EXACT_FIT_EPSILON } from "./canvas-fit.js";
3
3
  import { completeFrames } from "./media-timebase.js";
4
- // The shots view of a long-form run (#604 S7), read from its resolved timeline and its word timings, or from a revision's record.
5
- // A shot lists operations only while the run states `editable`.
6
- /** The shortest picture over presenter time: one second. */
7
4
  export const LONG_FORM_COVER_MIN_FRAMES = 25;
8
- /** What a long-form timeline allows. Without a background nothing paints the bars, so an upload must fill the canvas (rule 4). */
9
5
  export function longFormEditRules(background) {
10
6
  return {
11
7
  kinds: {
@@ -19,17 +15,13 @@ export function longFormEditRules(background) {
19
15
  max_generated_per_revision: 0, cover_min_frames: LONG_FORM_COVER_MIN_FRAMES, cut_transitions: false,
20
16
  };
21
17
  }
22
- /** A word as a long-form run stores it, in seconds from the start of its own audio. */
23
18
  export const longFormWordTimings = z.array(z.object({ word: z.string().min(1), startSec: z.number().finite().nonnegative(),
24
19
  endSec: z.number().finite().nonnegative() }).strict()).min(1).max(10000);
25
- /** Where the presenter's recording of an actor slot is stored: one take per slot, in both modes. */
26
20
  export const longFormTakeKey = (runId, position) => `runs/${runId}/seg${position}/avatar.source.mp4`;
27
- /** The word timings a view needs, by key: each actor slot's own in `segments`, the one narration's in `script_inserts`. */
28
21
  export function longFormTimingKeys(timeline) {
29
22
  return timeline.mode === "script_inserts" ? [`runs/${timeline.runId}/timings.json`]
30
23
  : timeline.slots.flatMap((slot) => (slot.kind === "actor" ? [`runs/${timeline.runId}/seg${slot.position}/timings.json`] : []));
31
24
  }
32
- /** The canvas of a long-form run: the short side is 1080 at every aspect ratio. */
33
25
  export function longFormFrame(aspect) {
34
26
  if (aspect === "16:9")
35
27
  return { width: 1920, height: 1080, aspect_ratio: aspect };
@@ -37,7 +29,6 @@ export function longFormFrame(aspect) {
37
29
  return { width: 1080, height: 1080, aspect_ratio: aspect };
38
30
  return { width: 1080, height: 1920, aspect_ratio: aspect };
39
31
  }
40
- /** The run's words on the output's clock: a segment's words shifted to its slot, or the narration's as they are. */
41
32
  export function longFormWords(timeline, timings) {
42
33
  const keys = longFormTimingKeys(timeline);
43
34
  const actors = timeline.slots.filter((slot) => slot.kind === "actor");
@@ -51,15 +42,11 @@ export function longFormWords(timeline, timings) {
51
42
  });
52
43
  return shifted.map((word, index) => ({ index, ...word }));
53
44
  }
54
- /** The words a slot shows: those that start inside its frames. */
55
45
  function wordRange(words, fps, start, end) {
56
46
  const inside = words.filter((word) => word.start_ms * fps >= start * 1000 && word.start_ms * fps < end * 1000);
57
47
  return inside.length === 0 ? [null, null] : [inside[0].index, inside.at(-1).index + 1];
58
48
  }
59
- /** The shot id of a timeline slot: a take, an insert, a listening take or a hold by its position. */
60
49
  export const longFormSlotShotId = (slot) => `${slot.kind === "actor" ? "take" : slot.kind === "media" ? "insert" : slot.kind}-${slot.position}`;
61
- /** The planned view of a long-form run: each actor slot a presenter take, each media slot an insert, together tiling the output. */
62
- /** An overlay named after an insert replaces it on the visual track; any other overlay is a cover added by a revision. */
63
50
  export function longFormRunShots(timeline, words, context, overlays = []) {
64
51
  const preview = (key) => (context.exposure.source_media ? context.previews.get(key) ?? null : null);
65
52
  const offered = (operations) => (context.editable.state === "editable" ? operations : []);
@@ -76,12 +63,10 @@ export function longFormRunShots(timeline, words, context, overlays = []) {
76
63
  preview_url: preview(longFormTakeKey(timeline.runId, slot.position)), source: "generated",
77
64
  media_frames: slot.endFrame - slot.startFrame, media_offset_frames: 0, operations: offered(["cover"]) }];
78
65
  }
79
- // A hold is a still of the take before it (reference-elements S3): a picture, not face time, and the editor offers nothing on it yet.
80
66
  if (slot.kind === "hold") {
81
67
  return [{ ...placed(slot.startFrame, slot.endFrame), id, track: "visual", kind: "picture", preview_url: null, source: "generated",
82
68
  media_frames: null, media_offset_frames: null, operations: [] }];
83
69
  }
84
- // The listening take (S4d) is face time the run is billed for, and the editor offers nothing on it yet.
85
70
  if (slot.kind === "live") {
86
71
  return [{ ...placed(slot.startFrame, slot.endFrame), id, track: "presenter", kind: "presenter", preview_url: null, source: "generated",
87
72
  media_frames: slot.endFrame - slot.startFrame, media_offset_frames: 0, operations: [] }];
@@ -117,8 +102,6 @@ export function longFormRunShots(timeline, words, context, overlays = []) {
117
102
  contract_version: context.contractVersion,
118
103
  };
119
104
  }
120
- /** The view of a delivered long-form revision: its source tiling with its overlays, one shot per id. */
121
105
  export function longFormRevisionShots(record, words, context) {
122
106
  return longFormRunShots(record.base, words, context, record.visual);
123
107
  }
124
- //# sourceMappingURL=edit-long-form.js.map
@@ -2,7 +2,6 @@ import { z } from "zod";
2
2
  export { shotId } from "./edit-primitives.js";
3
3
  export declare const SHOT_OPERATION_MODES: readonly ["retake", "new_picture", "edit_picture", "animate"];
4
4
  export type ShotOperationMode = (typeof SHOT_OPERATION_MODES)[number];
5
- /** What to generate for one shot. */
6
5
  export declare const shotOperation: z.ZodDiscriminatedUnion<[z.ZodObject<{
7
6
  mode: z.ZodLiteral<"retake">;
8
7
  }, z.core.$strict>, z.ZodObject<{
@@ -2,7 +2,6 @@ import { z } from "zod";
2
2
  import { shotId, text } from "./edit-primitives.js";
3
3
  export { shotId } from "./edit-primitives.js";
4
4
  export const SHOT_OPERATION_MODES = ["retake", "new_picture", "edit_picture", "animate"];
5
- /** What to generate for one shot. */
6
5
  export const shotOperation = z.discriminatedUnion("mode", [
7
6
  z.strictObject({ mode: z.literal("retake") }),
8
7
  z.strictObject({ mode: z.literal("new_picture"), description: text(600) }),
@@ -10,4 +9,3 @@ export const shotOperation = z.discriminatedUnion("mode", [
10
9
  z.strictObject({ mode: z.literal("animate"), motion: text(300).optional() }),
11
10
  ]);
12
11
  export const shotChange = z.strictObject({ shot_id: shotId, operation: shotOperation });
13
- //# sourceMappingURL=edit-operations.js.map
@@ -1,8 +1,5 @@
1
1
  import { z } from "zod";
2
- /** A frame index, a word index, a millisecond count. */
3
2
  export declare const frame: z.ZodNumber;
4
- /** A length in frames, a pixel size. */
5
3
  export declare const frameCount: z.ZodNumber;
6
- /** A JSON column refuses U+0000 and half of a surrogate pair, so the schema does first. */
7
4
  export declare const text: (max: number) => z.ZodString;
8
5
  export declare const shotId: z.ZodString;
@@ -1,12 +1,7 @@
1
1
  import { z } from "zod";
2
- // Shared by the edit modules only: these generic names stay out of the public barrel.
3
- /** A frame index, a word index, a millisecond count. */
4
2
  export const frame = z.number().int().nonnegative().safe();
5
- /** A length in frames, a pixel size. */
6
3
  export const frameCount = z.number().int().positive().safe();
7
4
  const HALF_PAIR = /[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?<![\uD800-\uDBFF])[\uDC00-\uDFFF]/;
8
- /** A JSON column refuses U+0000 and half of a surrogate pair, so the schema does first. */
9
5
  export const text = (max) => z.string().trim().min(1).max(max)
10
6
  .refine(value => !value.includes("\u0000") && !HALF_PAIR.test(value), { error: "holds U+0000 or half of a surrogate pair, which cannot be stored" });
11
7
  export const shotId = z.string().regex(/^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$/);
12
- //# sourceMappingURL=edit-primitives.js.map
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- /** A revision asks for exactly one of: the whole document, or a list of shot changes over the run as it is. */
3
2
  export declare const revisionRequest: z.ZodUnion<readonly [z.ZodObject<{
4
3
  document: z.ZodObject<{
5
4
  v: z.ZodLiteral<1>;
@@ -76,7 +75,6 @@ export declare const revisionRequest: z.ZodUnion<readonly [z.ZodObject<{
76
75
  max_credits: z.ZodOptional<z.ZodNumber>;
77
76
  }, z.core.$strict>]>;
78
77
  export type RevisionRequest = z.infer<typeof revisionRequest>;
79
- /** What a revision would change and cost. The run route refuses what the quote refuses. */
80
78
  export declare const revisionQuote: z.ZodObject<{
81
79
  source_run_id: z.ZodString;
82
80
  root_run_id: z.ZodString;
@@ -167,8 +165,6 @@ export declare const revisionQuoteRead: z.ZodObject<{
167
165
  }, z.core.$loose>;
168
166
  }, z.core.$loose>;
169
167
  export type RevisionQuoteRead = z.infer<typeof revisionQuoteRead>;
170
- /** The one sentence every client and the docs page state a revision's charge by. */
171
168
  export declare const REVISION_CHARGE_TEXT = "A revision that delivers is charged its quoted total; one that fails is charged nothing.";
172
- /** The paths of a run's revision quote and start. The id is encoded, since it comes from the caller. */
173
169
  export declare const runRevisionsQuotePath: (id: string) => string;
174
170
  export declare const runRevisionsPath: (id: string) => string;
@@ -5,12 +5,10 @@ import { shotChange } from "./edit-operations.js";
5
5
  import { EDIT_MAX_SHOTS } from "./edit-rules.js";
6
6
  import { maxCreditsField } from "./max-credits.js";
7
7
  import { runId } from "./runs.js";
8
- /** A revision asks for exactly one of: the whole document, or a list of shot changes over the run as it is. */
9
8
  export const revisionRequest = z.union([
10
9
  z.strictObject({ document: editDocument, max_credits: maxCreditsField }),
11
10
  z.strictObject({ changes: z.array(shotChange).min(1).max(EDIT_MAX_SHOTS), max_credits: maxCreditsField }),
12
11
  ]);
13
- /** What a revision would change and cost. The run route refuses what the quote refuses. */
14
12
  export const revisionQuote = z.strictObject({
15
13
  source_run_id: runId,
16
14
  root_run_id: runId,
@@ -19,7 +17,6 @@ export const revisionQuote = z.strictObject({
19
17
  warnings: z.array(z.string()),
20
18
  contract_version: z.string().min(1),
21
19
  });
22
- // What installed clients parse: units, zero rules, kinds, modes and origins are open strings, and unknown keys are kept.
23
20
  const priceLineRead = revisionPriceLine.extend({ unit: z.string().min(1) }).loose();
24
21
  const summaryRead = editSummaryWire.extend({
25
22
  replaced: z.array(editSummaryWire.shape.replaced.element.extend({ from: z.string().min(1) }).loose()),
@@ -29,9 +26,6 @@ export const revisionQuoteRead = revisionQuote.extend({
29
26
  summary: summaryRead,
30
27
  billing: revisionBilling.extend({ lines: z.array(priceLineRead), zero_unit: z.string().min(1).nullable() }).loose(),
31
28
  }).loose();
32
- /** The one sentence every client and the docs page state a revision's charge by. */
33
29
  export const REVISION_CHARGE_TEXT = "A revision that delivers is charged its quoted total; one that fails is charged nothing.";
34
- /** The paths of a run's revision quote and start. The id is encoded, since it comes from the caller. */
35
30
  export const runRevisionsQuotePath = (id) => `/v1/runs/${encodeURIComponent(id)}/revisions/quote`;
36
31
  export const runRevisionsPath = (id) => `/v1/runs/${encodeURIComponent(id)}/revisions`;
37
- //# sourceMappingURL=edit-revision.js.map
@@ -9,7 +9,6 @@ export declare const SHOT_SOURCES: readonly ["generated", "customer", "candidate
9
9
  export type ShotSource = (typeof SHOT_SOURCES)[number];
10
10
  export declare const SHOT_ACTIONS: readonly ["retake", "new_picture", "edit_picture", "animate", "upload", "retime", "delete", "cover"];
11
11
  export type ShotAction = (typeof SHOT_ACTIONS)[number];
12
- /** Above today's 100 slots and the 420 of clipwright#275. */
13
12
  export declare const EDIT_MAX_SHOTS = 500;
14
13
  export declare const EDIT_MAX_DISCARDED = 500;
15
14
  export declare const kindRule: z.ZodObject<{
@@ -18,7 +17,6 @@ export declare const kindRule: z.ZodObject<{
18
17
  movable: z.ZodBoolean;
19
18
  resizable: z.ZodBoolean;
20
19
  }, z.core.$strict>;
21
- /** What a line allows on its timeline. The validator reads these and never the line's name. */
22
20
  export declare const editRules: z.ZodObject<{
23
21
  kinds: z.ZodRecord<z.ZodEnum<{
24
22
  clip: "clip";
@@ -58,7 +56,6 @@ export declare const editRules: z.ZodObject<{
58
56
  }, z.core.$strict>;
59
57
  export type EditRules = z.infer<typeof editRules>;
60
58
  export declare const FACELESS_EDIT_RULES: EditRules;
61
- /** The actions a faceless shot offers: the opener by its place, a picture by where its image came from. */
62
59
  export declare function facelessShotActions(shot: {
63
60
  index: number;
64
61
  source: ShotSource;
@@ -6,13 +6,10 @@ export const SHOT_KINDS = ["picture", "clip", "presenter"];
6
6
  export const SHOT_TRACKS = ["visual", "presenter"];
7
7
  export const SHOT_SOURCES = ["generated", "customer", "candidate", "upload", "unknown"];
8
8
  export const SHOT_ACTIONS = ["retake", "new_picture", "edit_picture", "animate", "upload", "retime", "delete", "cover"];
9
- /** Above today's 100 slots and the 420 of clipwright#275. */
10
9
  export const EDIT_MAX_SHOTS = 500;
11
10
  export const EDIT_MAX_DISCARDED = 500;
12
11
  export const kindRule = z.strictObject({ min_frames: frameCount, max_frames: frameCount, movable: z.boolean(), resizable: z.boolean() });
13
- /** What a line allows on its timeline. The validator reads these and never the line's name. */
14
12
  export const editRules = z.strictObject({
15
- // A kind without an entry is not allowed on this timeline.
16
13
  kinds: z.partialRecord(z.enum(SHOT_KINDS), kindRule),
17
14
  output_coverage: z.enum(["visual", "union"]),
18
15
  first_visual_kind: z.enum(SHOT_KINDS).nullable(),
@@ -20,14 +17,10 @@ export const editRules = z.strictObject({
20
17
  visual_covers_presenter: z.boolean(),
21
18
  add_visual: z.enum(["never", "over_presenter"]),
22
19
  reuse_source_asset: z.boolean(),
23
- // `max_distance` is relative (`aspectDistance`); `exact` is the composition's absolute ratio test (`isExactFit`).
24
20
  upload_aspect: z.union([z.strictObject({ max_distance: z.number().positive() }),
25
21
  z.strictObject({ mode: z.literal("exact"), epsilon: z.number().positive() })]).nullable(),
26
22
  max_generated_per_revision: z.number().int().nonnegative(),
27
- // The shortest added or retimed visual shot over presenter time; an unchanged source shot is exempt.
28
- // Absent reads as null, so a view from a server without the field still parses.
29
23
  cover_min_frames: frameCount.nullable().default(null),
30
- // Whether a revision may set its cut transitions; absent reads as false, as from a server without the field.
31
24
  cut_transitions: z.boolean().default(false),
32
25
  });
33
26
  export const FACELESS_EDIT_RULES = {
@@ -39,7 +32,6 @@ export const FACELESS_EDIT_RULES = {
39
32
  add_visual: "never", reuse_source_asset: false, upload_aspect: null, max_generated_per_revision: 8, cover_min_frames: null,
40
33
  cut_transitions: true,
41
34
  };
42
- /** The actions a faceless shot offers: the opener by its place, a picture by where its image came from. */
43
35
  export function facelessShotActions(shot) {
44
36
  if (shot.index === 0)
45
37
  return ["retake", "animate", "new_picture", "retime"];
@@ -49,4 +41,3 @@ export function facelessShotActions(shot) {
49
41
  return ["upload", "retime", "delete"];
50
42
  return [];
51
43
  }
52
- //# sourceMappingURL=edit-rules.js.map
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- /** The tariff a paid edit is priced by; the prices join it later, so further keys pass through. */
3
2
  export declare const editPricing: z.ZodObject<{
4
3
  tariff_id: z.ZodString;
5
4
  }, z.core.$loose>;
@@ -42,7 +41,6 @@ export declare const viewShot: z.ZodObject<{
42
41
  }>>;
43
42
  }, z.core.$strip>;
44
43
  export type ViewShot = z.infer<typeof viewShot>;
45
- /** A run whose plan is recorded: its timeline, its words and the rules an edit of it must keep. */
46
44
  export declare const plannedRunShots: z.ZodObject<{
47
45
  planned: z.ZodLiteral<true>;
48
46
  run_id: z.ZodString;
@@ -186,7 +184,6 @@ export declare const plannedRunShots: z.ZodObject<{
186
184
  }, z.core.$strip>;
187
185
  contract_version: z.ZodString;
188
186
  }, z.core.$strip>;
189
- /** The takes of one live shot of an ad (#1560): each clip made for it, what our check said of it, and which one the video uses. */
190
187
  export declare const LIVE_SHOT_TAKES: readonly ["first", "retake", "fallback", "head", "card"];
191
188
  export declare const LIVE_TAKE_VERDICTS: readonly ["accepted", "refused", "unjudged"];
192
189
  export declare const liveShot: z.ZodObject<{
@@ -209,7 +206,17 @@ export declare const liveShot: z.ZodObject<{
209
206
  preview_url: z.ZodNullable<z.ZodString>;
210
207
  }, z.core.$strip>>;
211
208
  }, z.core.$strip>;
212
- /** A run with no plan to show: it carries no frame, duration, words or rules, and none are invented. */
209
+ export declare const FINISHED_CHECK_VERDICTS: readonly ["clean", "defects"];
210
+ export declare const finishedCheck: z.ZodObject<{
211
+ verdict: z.ZodEnum<{
212
+ clean: "clean";
213
+ defects: "defects";
214
+ }>;
215
+ findings: z.ZodArray<z.ZodObject<{
216
+ code: z.ZodString;
217
+ at_s: z.ZodNullable<z.ZodNumber>;
218
+ }, z.core.$strip>>;
219
+ }, z.core.$strip>;
213
220
  export declare const unplannedRunShots: z.ZodObject<{
214
221
  planned: z.ZodLiteral<false>;
215
222
  run_id: z.ZodString;
@@ -255,6 +262,16 @@ export declare const unplannedRunShots: z.ZodObject<{
255
262
  preview_url: z.ZodNullable<z.ZodString>;
256
263
  }, z.core.$strip>>;
257
264
  }, z.core.$strip>>>;
265
+ finished_check: z.ZodOptional<z.ZodObject<{
266
+ verdict: z.ZodEnum<{
267
+ clean: "clean";
268
+ defects: "defects";
269
+ }>;
270
+ findings: z.ZodArray<z.ZodObject<{
271
+ code: z.ZodString;
272
+ at_s: z.ZodNullable<z.ZodNumber>;
273
+ }, z.core.$strip>>;
274
+ }, z.core.$strip>>;
258
275
  contract_version: z.ZodString;
259
276
  }, z.core.$strip>;
260
277
  export declare const runShots: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -444,6 +461,16 @@ export declare const runShots: z.ZodDiscriminatedUnion<[z.ZodObject<{
444
461
  preview_url: z.ZodNullable<z.ZodString>;
445
462
  }, z.core.$strip>>;
446
463
  }, z.core.$strip>>>;
464
+ finished_check: z.ZodOptional<z.ZodObject<{
465
+ verdict: z.ZodEnum<{
466
+ clean: "clean";
467
+ defects: "defects";
468
+ }>;
469
+ findings: z.ZodArray<z.ZodObject<{
470
+ code: z.ZodString;
471
+ at_s: z.ZodNullable<z.ZodNumber>;
472
+ }, z.core.$strip>>;
473
+ }, z.core.$strip>>;
447
474
  contract_version: z.ZodString;
448
475
  }, z.core.$strip>], "planned">;
449
476
  export type PlannedRunShots = z.infer<typeof plannedRunShots>;
@@ -543,6 +570,13 @@ export declare const unplannedRunShotsRead: z.ZodObject<{
543
570
  verdict: z.ZodString;
544
571
  }, z.core.$strip>>;
545
572
  }, z.core.$strip>>>;
573
+ finished_check: z.ZodOptional<z.ZodObject<{
574
+ findings: z.ZodArray<z.ZodObject<{
575
+ code: z.ZodString;
576
+ at_s: z.ZodNullable<z.ZodNumber>;
577
+ }, z.core.$strip>>;
578
+ verdict: z.ZodString;
579
+ }, z.core.$strip>>;
546
580
  }, z.core.$strip>;
547
581
  export declare const runShotsRead: z.ZodDiscriminatedUnion<[z.ZodObject<{
548
582
  planned: z.ZodLiteral<true>;
@@ -637,7 +671,13 @@ export declare const runShotsRead: z.ZodDiscriminatedUnion<[z.ZodObject<{
637
671
  verdict: z.ZodString;
638
672
  }, z.core.$strip>>;
639
673
  }, z.core.$strip>>>;
674
+ finished_check: z.ZodOptional<z.ZodObject<{
675
+ findings: z.ZodArray<z.ZodObject<{
676
+ code: z.ZodString;
677
+ at_s: z.ZodNullable<z.ZodNumber>;
678
+ }, z.core.$strip>>;
679
+ verdict: z.ZodString;
680
+ }, z.core.$strip>>;
640
681
  }, z.core.$strip>], "planned">;
641
682
  export type RunShotsRead = z.infer<typeof runShotsRead>;
642
- /** The path of a run's shots. The id is encoded, since it comes from the caller. */
643
683
  export declare const runShotsPath: (id: string) => string;