@clipwright/core 0.60.0 → 0.62.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (596) hide show
  1. package/dist/account-actors.d.ts +0 -43
  2. package/dist/account-actors.js +0 -55
  3. package/dist/account.d.ts +0 -6
  4. package/dist/account.js +0 -18
  5. package/dist/actor-bounds.d.ts +0 -5
  6. package/dist/actor-bounds.js +0 -6
  7. package/dist/actor-qualities.d.ts +0 -3
  8. package/dist/actor-qualities.js +0 -4
  9. package/dist/actors.d.ts +0 -16
  10. package/dist/actors.js +0 -21
  11. package/dist/ad-guide.d.ts +27 -0
  12. package/dist/ad-guide.js +7 -2
  13. package/dist/ad-ids.d.ts +3 -0
  14. package/dist/ad-ids.js +4 -0
  15. package/dist/ad-pause-trim.d.ts +0 -5
  16. package/dist/ad-pause-trim.js +0 -8
  17. package/dist/ads.d.ts +145 -0
  18. package/dist/ads.js +56 -0
  19. package/dist/api-failure.d.ts +6 -44
  20. package/dist/api-failure.js +16 -67
  21. package/dist/aspect.d.ts +0 -29
  22. package/dist/aspect.js +1 -34
  23. package/dist/asset-identity.d.ts +0 -2
  24. package/dist/asset-identity.js +0 -3
  25. package/dist/assets.d.ts +0 -34
  26. package/dist/assets.js +0 -42
  27. package/dist/billing-terms.d.ts +0 -3
  28. package/dist/billing-terms.js +0 -4
  29. package/dist/brand-styles.d.ts +0 -6
  30. package/dist/brand-styles.js +0 -13
  31. package/dist/broll-policy.js +0 -1
  32. package/dist/canvas-fit.d.ts +0 -2
  33. package/dist/canvas-fit.js +0 -4
  34. package/dist/caption-funnel.d.ts +0 -2
  35. package/dist/caption-funnel.js +0 -15
  36. package/dist/caption-geometry.d.ts +0 -6
  37. package/dist/caption-geometry.js +0 -10
  38. package/dist/caption-language.d.ts +0 -3
  39. package/dist/caption-language.js +0 -6
  40. package/dist/contract-dispositions.d.ts +0 -61
  41. package/dist/contract-dispositions.js +3 -96
  42. package/dist/contracts/v1/workflow-brief.d.ts +57 -3
  43. package/dist/contracts/v1/workflow-brief.js +0 -13
  44. package/dist/contracts/v1/workflow-catalog.d.ts +114 -0
  45. package/dist/contracts/v1/workflow-catalog.js +0 -3
  46. package/dist/contracts/v1/workflow-client.d.ts +114 -0
  47. package/dist/contracts/v1/workflow-client.js +0 -1
  48. package/dist/contracts/v1/workflow-dto.js +0 -1
  49. package/dist/contracts/v1/workflow-evidence.js +0 -1
  50. package/dist/contracts/v1/workflow-execution.d.ts +0 -1
  51. package/dist/contracts/v1/workflow-execution.js +0 -4
  52. package/dist/contracts/v1/workflow-next.d.ts +0 -2
  53. package/dist/contracts/v1/workflow-next.js +0 -3
  54. package/dist/contracts/v1/workflow-plan.d.ts +171 -0
  55. package/dist/contracts/v1/workflow-plan.js +0 -1
  56. package/dist/contracts/v1/workflow-primitives.d.ts +0 -1
  57. package/dist/contracts/v1/workflow-primitives.js +0 -2
  58. package/dist/contracts/v1/workflow-run-read.d.ts +0 -1
  59. package/dist/contracts/v1/workflow-run-read.js +0 -3
  60. package/dist/creator-profile.d.ts +0 -30
  61. package/dist/creator-profile.js +0 -45
  62. package/dist/default-actor.js +0 -2
  63. package/dist/design.d.ts +0 -17
  64. package/dist/design.js +0 -18
  65. package/dist/diy-next.d.ts +18 -0
  66. package/dist/diy-next.js +13 -0
  67. package/dist/edit-billing.d.ts +0 -6
  68. package/dist/edit-billing.js +0 -10
  69. package/dist/edit-candidate.d.ts +0 -6
  70. package/dist/edit-candidate.js +0 -9
  71. package/dist/edit-document.d.ts +0 -12
  72. package/dist/edit-document.js +0 -15
  73. package/dist/edit-faceless.d.ts +0 -3
  74. package/dist/edit-faceless.js +0 -4
  75. package/dist/edit-long-form.d.ts +0 -13
  76. package/dist/edit-long-form.js +0 -17
  77. package/dist/edit-music.d.ts +397 -0
  78. package/dist/edit-music.js +77 -0
  79. package/dist/edit-operations.d.ts +0 -1
  80. package/dist/edit-operations.js +0 -2
  81. package/dist/edit-primitives.d.ts +0 -3
  82. package/dist/edit-primitives.js +0 -5
  83. package/dist/edit-revision.d.ts +0 -4
  84. package/dist/edit-revision.js +0 -6
  85. package/dist/edit-rules.d.ts +0 -3
  86. package/dist/edit-rules.js +0 -9
  87. package/dist/edit-shots.d.ts +45 -5
  88. package/dist/edit-shots.js +7 -11
  89. package/dist/edit-validate.d.ts +0 -10
  90. package/dist/edit-validate.js +0 -14
  91. package/dist/edit.js +0 -3
  92. package/dist/endpoint-notes.d.ts +0 -2
  93. package/dist/endpoint-notes.js +0 -3
  94. package/dist/endpoints.d.ts +0 -11
  95. package/dist/endpoints.js +11 -21
  96. package/dist/errors.d.ts +29 -43
  97. package/dist/errors.js +18 -54
  98. package/dist/explainer-fit.d.ts +0 -7
  99. package/dist/explainer-fit.js +0 -10
  100. package/dist/face-billing.d.ts +0 -9
  101. package/dist/face-billing.js +0 -23
  102. package/dist/face-delivery.d.ts +0 -1
  103. package/dist/face-delivery.js +0 -2
  104. package/dist/faceless-action-shots.d.ts +0 -8
  105. package/dist/faceless-action-shots.js +0 -8
  106. package/dist/faceless-customer-anchors.d.ts +0 -1
  107. package/dist/faceless-customer-anchors.js +0 -2
  108. package/dist/faceless-cut-style.js +0 -1
  109. package/dist/faceless-direction-summary.d.ts +0 -2
  110. package/dist/faceless-direction-summary.js +0 -3
  111. package/dist/faceless-image-placement.d.ts +0 -2
  112. package/dist/faceless-image-placement.js +0 -3
  113. package/dist/faceless-image-qualification.js +0 -2
  114. package/dist/faceless-media-record.d.ts +0 -6
  115. package/dist/faceless-media-record.js +0 -11
  116. package/dist/faceless-price.d.ts +0 -45
  117. package/dist/faceless-price.js +0 -64
  118. package/dist/faceless-public-plan.d.ts +0 -13
  119. package/dist/faceless-public-plan.js +0 -11
  120. package/dist/faceless-public.d.ts +0 -26
  121. package/dist/faceless-public.js +0 -59
  122. package/dist/faceless-short-61.js +0 -1
  123. package/dist/faceless-storyboard-timing.js +0 -1
  124. package/dist/faceless-storyboard-v2-plan.js +0 -1
  125. package/dist/faceless-storyboard-v2-timing.d.ts +0 -4
  126. package/dist/faceless-storyboard-v2-timing.js +0 -3
  127. package/dist/faceless-storyboard-v2.js +0 -1
  128. package/dist/faceless-storyboard.js +0 -1
  129. package/dist/faceless-voices.d.ts +0 -16
  130. package/dist/faceless-voices.js +0 -18
  131. package/dist/feedback.d.ts +0 -4
  132. package/dist/feedback.js +0 -5
  133. package/dist/film-directions.d.ts +0 -2
  134. package/dist/film-directions.js +0 -7
  135. package/dist/film-drafts.d.ts +0 -8
  136. package/dist/film-drafts.js +0 -19
  137. package/dist/film-guide.d.ts +0 -3
  138. package/dist/film-guide.js +0 -6
  139. package/dist/film-styles.d.ts +0 -5
  140. package/dist/film-styles.js +0 -8
  141. package/dist/generation-shot.d.ts +0 -5
  142. package/dist/generation-shot.js +0 -8
  143. package/dist/generations-output.d.ts +0 -2
  144. package/dist/generations-output.js +0 -5
  145. package/dist/generations.d.ts +0 -22
  146. package/dist/generations.js +21 -44
  147. package/dist/idempotency.d.ts +1 -21
  148. package/dist/idempotency.js +8 -29
  149. package/dist/index.d.ts +4 -0
  150. package/dist/index.js +4 -28
  151. package/dist/live-shot-kinds.d.ts +16 -25
  152. package/dist/live-shot-kinds.js +12 -28
  153. package/dist/long-form-pricing.d.ts +0 -5
  154. package/dist/long-form-pricing.js +0 -6
  155. package/dist/long-form-profile.d.ts +0 -3
  156. package/dist/long-form-profile.js +0 -4
  157. package/dist/long-form-revision.d.ts +0 -9
  158. package/dist/long-form-revision.js +0 -11
  159. package/dist/markdown-quote.d.ts +0 -2
  160. package/dist/markdown-quote.js +0 -3
  161. package/dist/mascots.d.ts +0 -5
  162. package/dist/mascots.js +0 -10
  163. package/dist/max-credits.d.ts +0 -1
  164. package/dist/max-credits.js +0 -2
  165. package/dist/mcp-ugc-descriptions.d.ts +0 -2
  166. package/dist/mcp-ugc-descriptions.js +1 -6
  167. package/dist/media-timebase.d.ts +0 -2
  168. package/dist/media-timebase.js +0 -6
  169. package/dist/motion-styles.d.ts +0 -8
  170. package/dist/motion-styles.js +0 -11
  171. package/dist/moves.d.ts +0 -7
  172. package/dist/moves.js +0 -9
  173. package/dist/music.d.ts +0 -5
  174. package/dist/music.js +0 -8
  175. package/dist/naming.d.ts +0 -3
  176. package/dist/naming.js +0 -19
  177. package/dist/openapi.d.ts +0 -13
  178. package/dist/openapi.js +9 -11
  179. package/dist/output-provenance.d.ts +0 -4
  180. package/dist/output-provenance.js +0 -5
  181. package/dist/own-agent-price.d.ts +21 -22
  182. package/dist/own-agent-price.js +34 -25
  183. package/dist/own-agent-runs.d.ts +351 -11
  184. package/dist/own-agent-runs.js +144 -24
  185. package/dist/pacing.d.ts +3 -15
  186. package/dist/pacing.js +18 -18
  187. package/dist/parts-pricing.d.ts +0 -28
  188. package/dist/parts-pricing.js +0 -32
  189. package/dist/post-text.d.ts +0 -2
  190. package/dist/post-text.js +0 -4
  191. package/dist/presenter-beats.d.ts +0 -10
  192. package/dist/presenter-beats.js +0 -14
  193. package/dist/presenter-matte.d.ts +0 -7
  194. package/dist/presenter-matte.js +0 -9
  195. package/dist/presenter-takes.d.ts +0 -3
  196. package/dist/presenter-takes.js +0 -8
  197. package/dist/prices.d.ts +2 -8
  198. package/dist/prices.js +13 -23
  199. package/dist/public-endpoints.d.ts +0 -11
  200. package/dist/public-endpoints.js +0 -14
  201. package/dist/public-responses.d.ts +0 -2
  202. package/dist/public-responses.js +0 -3
  203. package/dist/rate-limit.d.ts +0 -24
  204. package/dist/rate-limit.js +0 -29
  205. package/dist/reference-analysis.d.ts +57 -34
  206. package/dist/reference-analysis.js +0 -69
  207. package/dist/reference-bring.d.ts +33 -0
  208. package/dist/reference-bring.js +28 -0
  209. package/dist/reference-display.d.ts +0 -3
  210. package/dist/reference-display.js +37 -4
  211. package/dist/reference-kinds.d.ts +0 -4
  212. package/dist/reference-kinds.js +0 -6
  213. package/dist/reference-lyrics.d.ts +0 -6
  214. package/dist/reference-lyrics.js +0 -6
  215. package/dist/reference-profile.d.ts +270 -39
  216. package/dist/reference-profile.js +64 -50
  217. package/dist/reference-staging.d.ts +0 -10
  218. package/dist/reference-staging.js +0 -14
  219. package/dist/reference-text-spans.d.ts +0 -4
  220. package/dist/reference-text-spans.js +0 -7
  221. package/dist/reference-voice-over.d.ts +0 -6
  222. package/dist/reference-voice-over.js +0 -7
  223. package/dist/reference-voice.d.ts +0 -7
  224. package/dist/reference-voice.js +0 -12
  225. package/dist/render-backend.d.ts +0 -30
  226. package/dist/render-backend.js +0 -5
  227. package/dist/resolved-timeline.d.ts +0 -4
  228. package/dist/resolved-timeline.js +1 -31
  229. package/dist/run-media.d.ts +0 -1
  230. package/dist/run-media.js +0 -2
  231. package/dist/run-preflight.d.ts +0 -4
  232. package/dist/run-preflight.js +0 -11
  233. package/dist/run-static-warnings.d.ts +0 -8
  234. package/dist/run-static-warnings.js +0 -38
  235. package/dist/runs.d.ts +0 -32
  236. package/dist/runs.js +0 -50
  237. package/dist/scene-bible.d.ts +15 -7
  238. package/dist/scene-bible.js +15 -10
  239. package/dist/scene-graph.d.ts +0 -12
  240. package/dist/scene-graph.js +0 -24
  241. package/dist/scene-place.d.ts +0 -25
  242. package/dist/scene-place.js +0 -24
  243. package/dist/scene-proposal.d.ts +0 -3
  244. package/dist/scene-proposal.js +0 -9
  245. package/dist/script-integrity.d.ts +0 -6
  246. package/dist/script-integrity.js +0 -8
  247. package/dist/script-voice.d.ts +0 -7
  248. package/dist/script-voice.js +0 -16
  249. package/dist/semantic-inserts.d.ts +0 -7
  250. package/dist/semantic-inserts.js +0 -10
  251. package/dist/skill-theme-explainer.js +0 -5
  252. package/dist/skill-theme.d.ts +0 -13
  253. package/dist/skill-theme.js +0 -25
  254. package/dist/skills.d.ts +22 -86
  255. package/dist/skills.js +21 -167
  256. package/dist/speech-rhythm-contract.js +0 -1
  257. package/dist/speech-rhythm.d.ts +0 -4
  258. package/dist/speech-rhythm.js +0 -2
  259. package/dist/templates/backdrop.d.ts +0 -3
  260. package/dist/templates/backdrop.js +0 -5
  261. package/dist/templates/callout.d.ts +0 -4
  262. package/dist/templates/callout.js +0 -6
  263. package/dist/templates/chart.d.ts +0 -4
  264. package/dist/templates/chart.js +0 -6
  265. package/dist/templates/chat-window.d.ts +0 -8
  266. package/dist/templates/chat-window.js +0 -10
  267. package/dist/templates/checklist.d.ts +0 -3
  268. package/dist/templates/checklist.js +0 -6
  269. package/dist/templates/comment-cta.d.ts +0 -14
  270. package/dist/templates/comment-cta.js +0 -19
  271. package/dist/templates/compare.d.ts +0 -6
  272. package/dist/templates/compare.js +0 -7
  273. package/dist/templates/cover-story.d.ts +0 -1
  274. package/dist/templates/cover-story.js +0 -3
  275. package/dist/templates/end-card.d.ts +0 -2
  276. package/dist/templates/end-card.js +0 -3
  277. package/dist/templates/hand-title.d.ts +0 -5
  278. package/dist/templates/hand-title.js +0 -9
  279. package/dist/templates/index.d.ts +0 -57
  280. package/dist/templates/index.js +0 -60
  281. package/dist/templates/lower-third.d.ts +0 -4
  282. package/dist/templates/lower-third.js +0 -5
  283. package/dist/templates/notification.d.ts +0 -6
  284. package/dist/templates/notification.js +0 -7
  285. package/dist/templates/phone-call.d.ts +0 -2
  286. package/dist/templates/phone-call.js +0 -6
  287. package/dist/templates/phone-screen.d.ts +0 -5
  288. package/dist/templates/phone-screen.js +0 -7
  289. package/dist/templates/pointer-chips.d.ts +0 -4
  290. package/dist/templates/pointer-chips.js +0 -6
  291. package/dist/templates/progress.d.ts +0 -3
  292. package/dist/templates/progress.js +0 -5
  293. package/dist/templates/quote.d.ts +0 -3
  294. package/dist/templates/quote.js +0 -4
  295. package/dist/templates/race.d.ts +0 -5
  296. package/dist/templates/race.js +0 -7
  297. package/dist/templates/rating.d.ts +0 -3
  298. package/dist/templates/rating.js +0 -5
  299. package/dist/templates/series-frame.d.ts +0 -16
  300. package/dist/templates/series-frame.js +0 -19
  301. package/dist/templates/size.d.ts +0 -7
  302. package/dist/templates/size.js +0 -8
  303. package/dist/templates/slot.d.ts +0 -2
  304. package/dist/templates/slot.js +0 -2
  305. package/dist/templates/sounds.d.ts +24 -12
  306. package/dist/templates/sounds.js +2 -16
  307. package/dist/templates/stat.d.ts +0 -3
  308. package/dist/templates/stat.js +0 -5
  309. package/dist/templates/tag.d.ts +0 -3
  310. package/dist/templates/tag.js +0 -5
  311. package/dist/templates/terminal.d.ts +0 -6
  312. package/dist/templates/terminal.js +0 -8
  313. package/dist/templates/theme.d.ts +0 -7
  314. package/dist/templates/theme.js +0 -9
  315. package/dist/templates/title-card.d.ts +0 -3
  316. package/dist/templates/title-card.js +0 -5
  317. package/dist/templates/video-grid.d.ts +0 -5
  318. package/dist/templates/video-grid.js +0 -8
  319. package/dist/templates/word-fill.d.ts +0 -3
  320. package/dist/templates/word-fill.js +0 -4
  321. package/dist/templates/word-title.d.ts +0 -2
  322. package/dist/templates/word-title.js +0 -4
  323. package/dist/trend-niches.d.ts +0 -11
  324. package/dist/trend-niches.js +0 -16
  325. package/dist/trend-search.d.ts +0 -66
  326. package/dist/trend-search.js +0 -70
  327. package/dist/tts-backend.d.ts +0 -19
  328. package/dist/tts-backend.js +0 -7
  329. package/dist/ugc-call.d.ts +0 -16
  330. package/dist/ugc-call.js +0 -21
  331. package/dist/ugc-delivery.d.ts +0 -2
  332. package/dist/ugc-delivery.js +0 -4
  333. package/dist/ugc-framing.d.ts +0 -4
  334. package/dist/ugc-framing.js +0 -6
  335. package/dist/ugc-interview.d.ts +0 -18
  336. package/dist/ugc-interview.js +0 -24
  337. package/dist/ugc-layers.d.ts +0 -39
  338. package/dist/ugc-layers.js +0 -39
  339. package/dist/ugc-scenes.d.ts +0 -2
  340. package/dist/ugc-scenes.js +0 -5
  341. package/dist/ugc-video-media.d.ts +0 -5
  342. package/dist/ugc-video-media.js +0 -7
  343. package/dist/uploads.d.ts +0 -14
  344. package/dist/uploads.js +0 -17
  345. package/dist/vendor-response.d.ts +0 -19
  346. package/dist/vendor-response.js +0 -22
  347. package/dist/video-size.d.ts +0 -4
  348. package/dist/video-size.js +0 -7
  349. package/dist/voice-admission.d.ts +0 -11
  350. package/dist/voice-admission.js +0 -13
  351. package/dist/voice-catalog-data.d.ts +0 -2
  352. package/dist/voice-catalog-data.js +0 -3
  353. package/dist/voice-catalog.d.ts +0 -6
  354. package/dist/voice-catalog.js +0 -8
  355. package/dist/voice-listing.d.ts +0 -6
  356. package/dist/voice-listing.js +0 -14
  357. package/dist/voice-pace.d.ts +0 -4
  358. package/dist/voice-pace.js +0 -7
  359. package/dist/voice-preview-approval.js +0 -1
  360. package/dist/voices.d.ts +4 -69
  361. package/dist/voices.js +3 -88
  362. package/dist/workflows/catalog.d.ts +0 -2
  363. package/dist/workflows/catalog.js +0 -4
  364. package/dist/workflows/film-directions.d.ts +0 -3
  365. package/dist/workflows/film-directions.js +0 -4
  366. package/dist/workflows/index.js +0 -1
  367. package/dist/workflows/methods/faceless-explainer.d.ts +31 -0
  368. package/dist/workflows/methods/faceless-explainer.js +0 -1
  369. package/dist/workflows/methods/kinetic-launch.d.ts +62 -1
  370. package/dist/workflows/methods/kinetic-launch.js +0 -2
  371. package/dist/workflows/methods/product-image-story.d.ts +31 -0
  372. package/dist/workflows/methods/product-image-story.js +0 -1
  373. package/dist/workflows/methods/reference-remake.d.ts +31 -0
  374. package/dist/workflows/methods/reference-remake.js +0 -1
  375. package/dist/workflows/methods/shared.d.ts +31 -1
  376. package/dist/workflows/methods/shared.js +0 -3
  377. package/dist/workflows/methods/ugc-faq-answer.d.ts +31 -0
  378. package/dist/workflows/methods/ugc-faq-answer.js +0 -1
  379. package/dist/workflows/methods/ugc-product-intro.d.ts +31 -0
  380. package/dist/workflows/methods/ugc-product-intro.js +0 -1
  381. package/dist/workflows/methods/website-proof-demo.d.ts +62 -1
  382. package/dist/workflows/methods/website-proof-demo.js +0 -2
  383. package/dist/workflows/motion-director.d.ts +0 -11
  384. package/dist/workflows/motion-director.js +0 -11
  385. package/dist/workflows/product-references.js +0 -1
  386. package/dist/workflows/reference-remake.d.ts +114 -17
  387. package/dist/workflows/reference-remake.js +0 -167
  388. package/dist/workflows/remake-chooser.d.ts +0 -6
  389. package/dist/workflows/remake-chooser.js +0 -4
  390. package/dist/workflows/remake-motion.d.ts +0 -16
  391. package/dist/workflows/remake-motion.js +0 -19
  392. package/dist/workflows/validate.d.ts +0 -1
  393. package/dist/workflows/validate.js +0 -5
  394. package/dist/workflows.js +0 -1
  395. package/package.json +1 -1
  396. package/dist/account-actors.js.map +0 -1
  397. package/dist/account.js.map +0 -1
  398. package/dist/actor-bounds.js.map +0 -1
  399. package/dist/actor-qualities.js.map +0 -1
  400. package/dist/actors.js.map +0 -1
  401. package/dist/ad-guide.js.map +0 -1
  402. package/dist/ad-pause-trim.js.map +0 -1
  403. package/dist/api-failure.js.map +0 -1
  404. package/dist/aspect.js.map +0 -1
  405. package/dist/asset-identity.js.map +0 -1
  406. package/dist/assets.js.map +0 -1
  407. package/dist/billing-terms.js.map +0 -1
  408. package/dist/brand-styles.js.map +0 -1
  409. package/dist/broll-policy.js.map +0 -1
  410. package/dist/canvas-fit.js.map +0 -1
  411. package/dist/caption-funnel.js.map +0 -1
  412. package/dist/caption-geometry.js.map +0 -1
  413. package/dist/caption-language.js.map +0 -1
  414. package/dist/contract-dispositions.js.map +0 -1
  415. package/dist/contracts/v1/workflow-brief.js.map +0 -1
  416. package/dist/contracts/v1/workflow-catalog.js.map +0 -1
  417. package/dist/contracts/v1/workflow-client.js.map +0 -1
  418. package/dist/contracts/v1/workflow-dto.js.map +0 -1
  419. package/dist/contracts/v1/workflow-evidence.js.map +0 -1
  420. package/dist/contracts/v1/workflow-execution.js.map +0 -1
  421. package/dist/contracts/v1/workflow-next.js.map +0 -1
  422. package/dist/contracts/v1/workflow-plan.js.map +0 -1
  423. package/dist/contracts/v1/workflow-primitives.js.map +0 -1
  424. package/dist/contracts/v1/workflow-run-read.js.map +0 -1
  425. package/dist/creator-profile.js.map +0 -1
  426. package/dist/default-actor.js.map +0 -1
  427. package/dist/design.js.map +0 -1
  428. package/dist/edit-billing.js.map +0 -1
  429. package/dist/edit-candidate.js.map +0 -1
  430. package/dist/edit-document.js.map +0 -1
  431. package/dist/edit-faceless.js.map +0 -1
  432. package/dist/edit-long-form.js.map +0 -1
  433. package/dist/edit-operations.js.map +0 -1
  434. package/dist/edit-primitives.js.map +0 -1
  435. package/dist/edit-revision.js.map +0 -1
  436. package/dist/edit-rules.js.map +0 -1
  437. package/dist/edit-shots.js.map +0 -1
  438. package/dist/edit-validate.js.map +0 -1
  439. package/dist/edit.js.map +0 -1
  440. package/dist/endpoint-notes.js.map +0 -1
  441. package/dist/endpoints.js.map +0 -1
  442. package/dist/errors.js.map +0 -1
  443. package/dist/explainer-fit.js.map +0 -1
  444. package/dist/face-billing.js.map +0 -1
  445. package/dist/face-delivery.js.map +0 -1
  446. package/dist/faceless-action-shots.js.map +0 -1
  447. package/dist/faceless-customer-anchors.js.map +0 -1
  448. package/dist/faceless-cut-style.js.map +0 -1
  449. package/dist/faceless-direction-summary.js.map +0 -1
  450. package/dist/faceless-image-placement.js.map +0 -1
  451. package/dist/faceless-image-qualification.js.map +0 -1
  452. package/dist/faceless-media-record.js.map +0 -1
  453. package/dist/faceless-price.js.map +0 -1
  454. package/dist/faceless-public-plan.js.map +0 -1
  455. package/dist/faceless-public.js.map +0 -1
  456. package/dist/faceless-short-61.js.map +0 -1
  457. package/dist/faceless-storyboard-timing.js.map +0 -1
  458. package/dist/faceless-storyboard-v2-plan.js.map +0 -1
  459. package/dist/faceless-storyboard-v2-timing.js.map +0 -1
  460. package/dist/faceless-storyboard-v2.js.map +0 -1
  461. package/dist/faceless-storyboard.js.map +0 -1
  462. package/dist/faceless-voices.js.map +0 -1
  463. package/dist/feedback.js.map +0 -1
  464. package/dist/film-directions.js.map +0 -1
  465. package/dist/film-drafts.js.map +0 -1
  466. package/dist/film-guide.js.map +0 -1
  467. package/dist/film-styles.js.map +0 -1
  468. package/dist/generation-shot.js.map +0 -1
  469. package/dist/generations-output.js.map +0 -1
  470. package/dist/generations.js.map +0 -1
  471. package/dist/idempotency.js.map +0 -1
  472. package/dist/index.js.map +0 -1
  473. package/dist/live-shot-kinds.js.map +0 -1
  474. package/dist/long-form-pricing.js.map +0 -1
  475. package/dist/long-form-profile.js.map +0 -1
  476. package/dist/long-form-revision.js.map +0 -1
  477. package/dist/markdown-quote.js.map +0 -1
  478. package/dist/mascots.js.map +0 -1
  479. package/dist/max-credits.js.map +0 -1
  480. package/dist/mcp-ugc-descriptions.js.map +0 -1
  481. package/dist/media-timebase.js.map +0 -1
  482. package/dist/motion-styles.js.map +0 -1
  483. package/dist/moves.js.map +0 -1
  484. package/dist/music.js.map +0 -1
  485. package/dist/naming.js.map +0 -1
  486. package/dist/openapi.js.map +0 -1
  487. package/dist/output-provenance.js.map +0 -1
  488. package/dist/own-agent-price.js.map +0 -1
  489. package/dist/own-agent-runs.js.map +0 -1
  490. package/dist/pacing.js.map +0 -1
  491. package/dist/parts-pricing.js.map +0 -1
  492. package/dist/post-text.js.map +0 -1
  493. package/dist/presenter-beats.js.map +0 -1
  494. package/dist/presenter-matte.js.map +0 -1
  495. package/dist/presenter-takes.js.map +0 -1
  496. package/dist/prices.js.map +0 -1
  497. package/dist/public-endpoints.js.map +0 -1
  498. package/dist/public-responses.js.map +0 -1
  499. package/dist/rate-limit.js.map +0 -1
  500. package/dist/reference-analysis.js.map +0 -1
  501. package/dist/reference-display.js.map +0 -1
  502. package/dist/reference-kinds.js.map +0 -1
  503. package/dist/reference-lyrics.js.map +0 -1
  504. package/dist/reference-profile.js.map +0 -1
  505. package/dist/reference-staging.js.map +0 -1
  506. package/dist/reference-text-spans.js.map +0 -1
  507. package/dist/reference-voice-over.js.map +0 -1
  508. package/dist/reference-voice.js.map +0 -1
  509. package/dist/render-backend.js.map +0 -1
  510. package/dist/resolved-timeline.js.map +0 -1
  511. package/dist/run-media.js.map +0 -1
  512. package/dist/run-preflight.js.map +0 -1
  513. package/dist/run-static-warnings.js.map +0 -1
  514. package/dist/runs.js.map +0 -1
  515. package/dist/scene-bible.js.map +0 -1
  516. package/dist/scene-graph.js.map +0 -1
  517. package/dist/scene-place.js.map +0 -1
  518. package/dist/scene-proposal.js.map +0 -1
  519. package/dist/script-integrity.js.map +0 -1
  520. package/dist/script-voice.js.map +0 -1
  521. package/dist/semantic-inserts.js.map +0 -1
  522. package/dist/skill-theme-explainer.js.map +0 -1
  523. package/dist/skill-theme.js.map +0 -1
  524. package/dist/skills.js.map +0 -1
  525. package/dist/speech-rhythm-contract.js.map +0 -1
  526. package/dist/speech-rhythm.js.map +0 -1
  527. package/dist/templates/backdrop.js.map +0 -1
  528. package/dist/templates/callout.js.map +0 -1
  529. package/dist/templates/chart.js.map +0 -1
  530. package/dist/templates/chat-window.js.map +0 -1
  531. package/dist/templates/checklist.js.map +0 -1
  532. package/dist/templates/comment-cta.js.map +0 -1
  533. package/dist/templates/compare.js.map +0 -1
  534. package/dist/templates/cover-story.js.map +0 -1
  535. package/dist/templates/end-card.js.map +0 -1
  536. package/dist/templates/hand-title.js.map +0 -1
  537. package/dist/templates/index.js.map +0 -1
  538. package/dist/templates/lower-third.js.map +0 -1
  539. package/dist/templates/notification.js.map +0 -1
  540. package/dist/templates/phone-call.js.map +0 -1
  541. package/dist/templates/phone-screen.js.map +0 -1
  542. package/dist/templates/pointer-chips.js.map +0 -1
  543. package/dist/templates/progress.js.map +0 -1
  544. package/dist/templates/quote.js.map +0 -1
  545. package/dist/templates/race.js.map +0 -1
  546. package/dist/templates/rating.js.map +0 -1
  547. package/dist/templates/series-frame.js.map +0 -1
  548. package/dist/templates/size.js.map +0 -1
  549. package/dist/templates/slot.js.map +0 -1
  550. package/dist/templates/sounds.js.map +0 -1
  551. package/dist/templates/stat.js.map +0 -1
  552. package/dist/templates/tag.js.map +0 -1
  553. package/dist/templates/terminal.js.map +0 -1
  554. package/dist/templates/theme.js.map +0 -1
  555. package/dist/templates/title-card.js.map +0 -1
  556. package/dist/templates/video-grid.js.map +0 -1
  557. package/dist/templates/word-fill.js.map +0 -1
  558. package/dist/templates/word-title.js.map +0 -1
  559. package/dist/trend-niches.js.map +0 -1
  560. package/dist/trend-search.js.map +0 -1
  561. package/dist/tts-backend.js.map +0 -1
  562. package/dist/ugc-call.js.map +0 -1
  563. package/dist/ugc-delivery.js.map +0 -1
  564. package/dist/ugc-framing.js.map +0 -1
  565. package/dist/ugc-interview.js.map +0 -1
  566. package/dist/ugc-layers.js.map +0 -1
  567. package/dist/ugc-scenes.js.map +0 -1
  568. package/dist/ugc-video-media.js.map +0 -1
  569. package/dist/uploads.js.map +0 -1
  570. package/dist/vendor-response.js.map +0 -1
  571. package/dist/video-size.js.map +0 -1
  572. package/dist/voice-admission.js.map +0 -1
  573. package/dist/voice-catalog-data.js.map +0 -1
  574. package/dist/voice-catalog.js.map +0 -1
  575. package/dist/voice-listing.js.map +0 -1
  576. package/dist/voice-pace.js.map +0 -1
  577. package/dist/voice-preview-approval.js.map +0 -1
  578. package/dist/voices.js.map +0 -1
  579. package/dist/workflows/catalog.js.map +0 -1
  580. package/dist/workflows/film-directions.js.map +0 -1
  581. package/dist/workflows/index.js.map +0 -1
  582. package/dist/workflows/methods/faceless-explainer.js.map +0 -1
  583. package/dist/workflows/methods/kinetic-launch.js.map +0 -1
  584. package/dist/workflows/methods/product-image-story.js.map +0 -1
  585. package/dist/workflows/methods/reference-remake.js.map +0 -1
  586. package/dist/workflows/methods/shared.js.map +0 -1
  587. package/dist/workflows/methods/ugc-faq-answer.js.map +0 -1
  588. package/dist/workflows/methods/ugc-product-intro.js.map +0 -1
  589. package/dist/workflows/methods/website-proof-demo.js.map +0 -1
  590. package/dist/workflows/motion-director.js.map +0 -1
  591. package/dist/workflows/product-references.js.map +0 -1
  592. package/dist/workflows/reference-remake.js.map +0 -1
  593. package/dist/workflows/remake-chooser.js.map +0 -1
  594. package/dist/workflows/remake-motion.js.map +0 -1
  595. package/dist/workflows/validate.js.map +0 -1
  596. package/dist/workflows.js.map +0 -1
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- /** Credits of each unit a revision or a shot candidate generates; a kept candidate is already paid. */
3
2
  export declare const EDIT_UNIT_PRICES: Readonly<{
4
3
  picture: 7;
5
4
  clip: 49;
@@ -7,11 +6,8 @@ export declare const EDIT_UNIT_PRICES: Readonly<{
7
6
  kept_picture: 0;
8
7
  kept_clip: 0;
9
8
  }>;
10
- /** The re-render fee of a revision that generates at least one unit. */
11
9
  export declare const EDIT_RENDER_PRICE = 13;
12
- /** The price of a revision that generates nothing. */
13
10
  export declare const EDIT_ZERO_UNIT_PRICE = 13;
14
- /** One priced line of a revision: a generated unit, or a kept candidate entering the video. */
15
11
  export declare const revisionPriceLine: z.ZodObject<{
16
12
  shot_id: z.ZodString;
17
13
  unit: z.ZodEnum<{
@@ -24,7 +20,6 @@ export declare const revisionPriceLine: z.ZodObject<{
24
20
  credits: z.ZodNumber;
25
21
  }, z.core.$strict>;
26
22
  export type RevisionPriceLine = z.infer<typeof revisionPriceLine>;
27
- /** The price of a revision, frozen at admission. `zero_unit` names the rule a revision without generation took. */
28
23
  export declare const revisionBilling: z.ZodObject<{
29
24
  tariff_id: z.ZodString;
30
25
  lines: z.ZodArray<z.ZodObject<{
@@ -46,7 +41,6 @@ export declare const revisionBilling: z.ZodObject<{
46
41
  total_credits: z.ZodNumber;
47
42
  }, z.core.$strict>;
48
43
  export type RevisionBilling = z.infer<typeof revisionBilling>;
49
- /** What a revision changes, as the server states it. */
50
44
  export declare const editSummaryWire: z.ZodObject<{
51
45
  retimed: z.ZodArray<z.ZodString>;
52
46
  deleted: z.ZodArray<z.ZodString>;
@@ -1,23 +1,16 @@
1
1
  import { z } from "zod";
2
2
  import { SHOT_OPERATION_MODES } from "./edit-operations.js";
3
3
  import { shotId } from "./edit-primitives.js";
4
- // A leaf: `runs.ts` imports it, so it reaches neither `edit-document.ts` nor `runs.ts`.
5
4
  const credits = z.number().int().nonnegative().safe();
6
- // Admission freezes these prices for the run.
7
- /** Credits of each unit a revision or a shot candidate generates; a kept candidate is already paid. */
8
5
  export const EDIT_UNIT_PRICES = Object.freeze({ picture: 7, clip: 49, clip_with_new_picture: 56, kept_picture: 0, kept_clip: 0 });
9
- /** The re-render fee of a revision that generates at least one unit. */
10
6
  export const EDIT_RENDER_PRICE = 13;
11
- /** The price of a revision that generates nothing. */
12
7
  export const EDIT_ZERO_UNIT_PRICE = 13;
13
8
  const shotKind = z.enum(["picture", "clip", "presenter"]);
14
- /** One priced line of a revision: a generated unit, or a kept candidate entering the video. */
15
9
  export const revisionPriceLine = z.strictObject({
16
10
  shot_id: shotId,
17
11
  unit: z.enum(["picture", "clip", "clip_with_new_picture", "kept_picture", "kept_clip"]),
18
12
  credits,
19
13
  });
20
- /** The price of a revision, frozen at admission. `zero_unit` names the rule a revision without generation took. */
21
14
  export const revisionBilling = z.strictObject({
22
15
  tariff_id: z.string().min(1),
23
16
  lines: z.array(revisionPriceLine),
@@ -25,15 +18,12 @@ export const revisionBilling = z.strictObject({
25
18
  zero_unit: z.enum(["priced", "free"]).nullable(),
26
19
  total_credits: credits,
27
20
  });
28
- /** What a revision changes, as the server states it. */
29
21
  export const editSummaryWire = z.strictObject({
30
22
  retimed: z.array(shotId),
31
23
  deleted: z.array(shotId),
32
24
  added: z.array(shotId),
33
25
  replaced: z.array(z.strictObject({ shot_id: shotId, from: z.enum(["candidate", "upload", "source"]) })),
34
26
  generated: z.array(z.strictObject({ shot_id: shotId, kind: shotKind, mode: z.enum(SHOT_OPERATION_MODES) })),
35
- /** Present when the revision sets or removes the cut transitions. */
36
27
  transitions: z.literal(true).optional(),
37
28
  changed: z.boolean(),
38
29
  });
39
- //# sourceMappingURL=edit-billing.js.map
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- /** One generated picture or clip for one shot. `take` makes a deliberate retry a new run; the same take replays the first. */
3
2
  export declare const candidateRequest: z.ZodObject<{
4
3
  shot_id: z.ZodString;
5
4
  operation: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -18,7 +17,6 @@ export declare const candidateRequest: z.ZodObject<{
18
17
  max_credits: z.ZodOptional<z.ZodNumber>;
19
18
  }, z.core.$strict>;
20
19
  export type CandidateRequest = z.infer<typeof candidateRequest>;
21
- /** What a candidate would cost: one unit, charged once it is published, kept or discarded. */
22
20
  export declare const candidateQuote: z.ZodObject<{
23
21
  source_run_id: z.ZodString;
24
22
  root_run_id: z.ZodString;
@@ -44,7 +42,6 @@ export declare const candidateQuote: z.ZodObject<{
44
42
  contract_version: z.ZodString;
45
43
  }, z.core.$strict>;
46
44
  export type CandidateQuote = z.infer<typeof candidateQuote>;
47
- /** The input a candidate run stores: the request, and what admission resolved for the run. */
48
45
  export declare const storedCandidateInput: z.ZodObject<{
49
46
  shot_id: z.ZodString;
50
47
  operation: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -77,7 +74,6 @@ export declare const storedCandidateInput: z.ZodObject<{
77
74
  }, z.core.$strict>;
78
75
  }, z.core.$strict>;
79
76
  export type StoredCandidateInput = z.infer<typeof storedCandidateInput>;
80
- /** The candidates of one family, oldest first, each with its run's state and money. */
81
77
  export declare const runCandidates: z.ZodObject<{
82
78
  run_id: z.ZodString;
83
79
  root_run_id: z.ZodString;
@@ -155,8 +151,6 @@ export declare const runCandidatesRead: z.ZodObject<{
155
151
  warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
156
152
  }, z.core.$loose>;
157
153
  export type RunCandidatesRead = z.infer<typeof runCandidatesRead>;
158
- /** The one sentence every client and the docs page state a shot candidate's charge by. */
159
154
  export declare const CANDIDATE_CHARGE_TEXT = "A delivered candidate is charged its one unit whether it is kept or discarded; one that fails is charged nothing.";
160
- /** The paths of a run's candidate quote, start and list. The id is encoded, since it comes from the caller. */
161
155
  export declare const runCandidatesQuotePath: (id: string) => string;
162
156
  export declare const runCandidatesPath: (id: string) => string;
@@ -2,7 +2,6 @@ import { z } from "zod";
2
2
  import { SHOT_OPERATION_MODES, shotId, shotOperation } from "./edit-operations.js";
3
3
  import { maxCreditsField } from "./max-credits.js";
4
4
  import { runCandidate, runId, runState } from "./runs.js";
5
- /** One generated picture or clip for one shot. `take` makes a deliberate retry a new run; the same take replays the first. */
6
5
  export const candidateRequest = z.strictObject({
7
6
  shot_id: shotId,
8
7
  operation: shotOperation,
@@ -10,7 +9,6 @@ export const candidateRequest = z.strictObject({
10
9
  max_credits: maxCreditsField,
11
10
  });
12
11
  const credits = z.number().int().positive().safe();
13
- /** What a candidate would cost: one unit, charged once it is published, kept or discarded. */
14
12
  export const candidateQuote = z.strictObject({
15
13
  source_run_id: runId,
16
14
  root_run_id: runId,
@@ -23,7 +21,6 @@ export const candidateQuote = z.strictObject({
23
21
  warnings: z.array(z.string()),
24
22
  contract_version: z.string().min(1),
25
23
  });
26
- /** The input a candidate run stores: the request, and what admission resolved for the run. */
27
24
  export const storedCandidateInput = z.strictObject({
28
25
  source_run_id: runId,
29
26
  ...candidateRequest.shape,
@@ -34,7 +31,6 @@ export const storedCandidateInput = z.strictObject({
34
31
  credits,
35
32
  }),
36
33
  });
37
- /** The candidates of one family, oldest first, each with its run's state and money. */
38
34
  export const runCandidates = z.strictObject({
39
35
  run_id: runId,
40
36
  root_run_id: runId,
@@ -46,11 +42,9 @@ export const runCandidates = z.strictObject({
46
42
  created_at: z.string().datetime(),
47
43
  finished_at: z.string().datetime().nullable(),
48
44
  })),
49
- /** One line per candidate whose files the customer deleted: its preview is gone, not pending. */
50
45
  warnings: z.array(z.string()),
51
46
  contract_version: z.string().min(1),
52
47
  });
53
- // What installed clients parse: kinds, modes, units and states are open strings, and unknown keys are kept.
54
48
  export const candidateQuoteRead = candidateQuote.extend({
55
49
  kind: z.string().min(1), operation_mode: z.string().min(1), unit: z.string().min(1),
56
50
  }).loose();
@@ -61,9 +55,6 @@ export const runCandidatesRead = runCandidates.extend({
61
55
  }).loose()),
62
56
  warnings: z.array(z.string()).optional(),
63
57
  }).loose();
64
- /** The one sentence every client and the docs page state a shot candidate's charge by. */
65
58
  export const CANDIDATE_CHARGE_TEXT = "A delivered candidate is charged its one unit whether it is kept or discarded; one that fails is charged nothing.";
66
- /** The paths of a run's candidate quote, start and list. The id is encoded, since it comes from the caller. */
67
59
  export const runCandidatesQuotePath = (id) => `/v1/runs/${encodeURIComponent(id)}/candidates/quote`;
68
60
  export const runCandidatesPath = (id) => `/v1/runs/${encodeURIComponent(id)}/candidates`;
69
- //# sourceMappingURL=edit-candidate.js.map
@@ -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