@clipwright/core 0.60.0 → 0.61.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (587) hide show
  1. package/dist/account-actors.d.ts +0 -43
  2. package/dist/account-actors.js +0 -55
  3. package/dist/account.d.ts +0 -6
  4. package/dist/account.js +0 -18
  5. package/dist/actor-bounds.d.ts +0 -5
  6. package/dist/actor-bounds.js +0 -6
  7. package/dist/actor-qualities.d.ts +0 -3
  8. package/dist/actor-qualities.js +0 -4
  9. package/dist/actors.d.ts +0 -16
  10. package/dist/actors.js +0 -21
  11. package/dist/ad-guide.js +0 -2
  12. package/dist/ad-pause-trim.d.ts +0 -5
  13. package/dist/ad-pause-trim.js +0 -8
  14. package/dist/api-failure.d.ts +0 -44
  15. package/dist/api-failure.js +0 -62
  16. package/dist/aspect.d.ts +0 -29
  17. package/dist/aspect.js +1 -34
  18. package/dist/asset-identity.d.ts +0 -2
  19. package/dist/asset-identity.js +0 -3
  20. package/dist/assets.d.ts +0 -34
  21. package/dist/assets.js +0 -42
  22. package/dist/billing-terms.d.ts +0 -3
  23. package/dist/billing-terms.js +0 -4
  24. package/dist/brand-styles.d.ts +0 -6
  25. package/dist/brand-styles.js +0 -13
  26. package/dist/broll-policy.js +0 -1
  27. package/dist/canvas-fit.d.ts +0 -2
  28. package/dist/canvas-fit.js +0 -4
  29. package/dist/caption-funnel.d.ts +0 -2
  30. package/dist/caption-funnel.js +0 -15
  31. package/dist/caption-geometry.d.ts +0 -6
  32. package/dist/caption-geometry.js +0 -10
  33. package/dist/caption-language.d.ts +0 -3
  34. package/dist/caption-language.js +0 -6
  35. package/dist/contract-dispositions.d.ts +0 -61
  36. package/dist/contract-dispositions.js +3 -96
  37. package/dist/contracts/v1/workflow-brief.d.ts +57 -3
  38. package/dist/contracts/v1/workflow-brief.js +0 -13
  39. package/dist/contracts/v1/workflow-catalog.d.ts +114 -0
  40. package/dist/contracts/v1/workflow-catalog.js +0 -3
  41. package/dist/contracts/v1/workflow-client.d.ts +114 -0
  42. package/dist/contracts/v1/workflow-client.js +0 -1
  43. package/dist/contracts/v1/workflow-dto.js +0 -1
  44. package/dist/contracts/v1/workflow-evidence.js +0 -1
  45. package/dist/contracts/v1/workflow-execution.d.ts +0 -1
  46. package/dist/contracts/v1/workflow-execution.js +0 -4
  47. package/dist/contracts/v1/workflow-next.d.ts +0 -2
  48. package/dist/contracts/v1/workflow-next.js +0 -3
  49. package/dist/contracts/v1/workflow-plan.d.ts +171 -0
  50. package/dist/contracts/v1/workflow-plan.js +0 -1
  51. package/dist/contracts/v1/workflow-primitives.d.ts +0 -1
  52. package/dist/contracts/v1/workflow-primitives.js +0 -2
  53. package/dist/contracts/v1/workflow-run-read.d.ts +0 -1
  54. package/dist/contracts/v1/workflow-run-read.js +0 -3
  55. package/dist/creator-profile.d.ts +0 -30
  56. package/dist/creator-profile.js +0 -45
  57. package/dist/default-actor.js +0 -2
  58. package/dist/design.d.ts +0 -17
  59. package/dist/design.js +0 -18
  60. package/dist/edit-billing.d.ts +0 -6
  61. package/dist/edit-billing.js +0 -10
  62. package/dist/edit-candidate.d.ts +0 -6
  63. package/dist/edit-candidate.js +0 -9
  64. package/dist/edit-document.d.ts +0 -12
  65. package/dist/edit-document.js +0 -15
  66. package/dist/edit-faceless.d.ts +0 -3
  67. package/dist/edit-faceless.js +0 -4
  68. package/dist/edit-long-form.d.ts +0 -13
  69. package/dist/edit-long-form.js +0 -17
  70. package/dist/edit-operations.d.ts +0 -1
  71. package/dist/edit-operations.js +0 -2
  72. package/dist/edit-primitives.d.ts +0 -3
  73. package/dist/edit-primitives.js +0 -5
  74. package/dist/edit-revision.d.ts +0 -4
  75. package/dist/edit-revision.js +0 -6
  76. package/dist/edit-rules.d.ts +0 -3
  77. package/dist/edit-rules.js +0 -9
  78. package/dist/edit-shots.d.ts +45 -5
  79. package/dist/edit-shots.js +7 -11
  80. package/dist/edit-validate.d.ts +0 -10
  81. package/dist/edit-validate.js +0 -14
  82. package/dist/edit.js +0 -3
  83. package/dist/endpoint-notes.d.ts +0 -2
  84. package/dist/endpoint-notes.js +0 -3
  85. package/dist/endpoints.d.ts +0 -11
  86. package/dist/endpoints.js +7 -21
  87. package/dist/errors.d.ts +0 -42
  88. package/dist/errors.js +0 -54
  89. package/dist/explainer-fit.d.ts +0 -7
  90. package/dist/explainer-fit.js +0 -10
  91. package/dist/face-billing.d.ts +0 -9
  92. package/dist/face-billing.js +0 -23
  93. package/dist/face-delivery.d.ts +0 -1
  94. package/dist/face-delivery.js +0 -2
  95. package/dist/faceless-action-shots.d.ts +0 -8
  96. package/dist/faceless-action-shots.js +0 -8
  97. package/dist/faceless-customer-anchors.d.ts +0 -1
  98. package/dist/faceless-customer-anchors.js +0 -2
  99. package/dist/faceless-cut-style.js +0 -1
  100. package/dist/faceless-direction-summary.d.ts +0 -2
  101. package/dist/faceless-direction-summary.js +0 -3
  102. package/dist/faceless-image-placement.d.ts +0 -2
  103. package/dist/faceless-image-placement.js +0 -3
  104. package/dist/faceless-image-qualification.js +0 -2
  105. package/dist/faceless-media-record.d.ts +0 -6
  106. package/dist/faceless-media-record.js +0 -11
  107. package/dist/faceless-price.d.ts +0 -45
  108. package/dist/faceless-price.js +0 -64
  109. package/dist/faceless-public-plan.d.ts +0 -13
  110. package/dist/faceless-public-plan.js +0 -11
  111. package/dist/faceless-public.d.ts +0 -26
  112. package/dist/faceless-public.js +0 -59
  113. package/dist/faceless-short-61.js +0 -1
  114. package/dist/faceless-storyboard-timing.js +0 -1
  115. package/dist/faceless-storyboard-v2-plan.js +0 -1
  116. package/dist/faceless-storyboard-v2-timing.d.ts +0 -4
  117. package/dist/faceless-storyboard-v2-timing.js +0 -3
  118. package/dist/faceless-storyboard-v2.js +0 -1
  119. package/dist/faceless-storyboard.js +0 -1
  120. package/dist/faceless-voices.d.ts +0 -16
  121. package/dist/faceless-voices.js +0 -18
  122. package/dist/feedback.d.ts +0 -4
  123. package/dist/feedback.js +0 -5
  124. package/dist/film-directions.d.ts +0 -2
  125. package/dist/film-directions.js +0 -7
  126. package/dist/film-drafts.d.ts +0 -8
  127. package/dist/film-drafts.js +0 -19
  128. package/dist/film-guide.d.ts +0 -3
  129. package/dist/film-guide.js +0 -6
  130. package/dist/film-styles.d.ts +0 -5
  131. package/dist/film-styles.js +0 -8
  132. package/dist/generation-shot.d.ts +0 -5
  133. package/dist/generation-shot.js +0 -8
  134. package/dist/generations-output.d.ts +0 -2
  135. package/dist/generations-output.js +0 -5
  136. package/dist/generations.d.ts +0 -22
  137. package/dist/generations.js +21 -44
  138. package/dist/idempotency.d.ts +1 -21
  139. package/dist/idempotency.js +8 -29
  140. package/dist/index.d.ts +1 -0
  141. package/dist/index.js +1 -28
  142. package/dist/live-shot-kinds.d.ts +16 -25
  143. package/dist/live-shot-kinds.js +12 -28
  144. package/dist/long-form-pricing.d.ts +0 -5
  145. package/dist/long-form-pricing.js +0 -6
  146. package/dist/long-form-profile.d.ts +0 -3
  147. package/dist/long-form-profile.js +0 -4
  148. package/dist/long-form-revision.d.ts +0 -9
  149. package/dist/long-form-revision.js +0 -11
  150. package/dist/markdown-quote.d.ts +0 -2
  151. package/dist/markdown-quote.js +0 -3
  152. package/dist/mascots.d.ts +0 -5
  153. package/dist/mascots.js +0 -10
  154. package/dist/max-credits.d.ts +0 -1
  155. package/dist/max-credits.js +0 -2
  156. package/dist/mcp-ugc-descriptions.d.ts +0 -2
  157. package/dist/mcp-ugc-descriptions.js +1 -6
  158. package/dist/media-timebase.d.ts +0 -2
  159. package/dist/media-timebase.js +0 -6
  160. package/dist/motion-styles.d.ts +0 -8
  161. package/dist/motion-styles.js +0 -11
  162. package/dist/moves.d.ts +0 -7
  163. package/dist/moves.js +0 -9
  164. package/dist/music.d.ts +0 -5
  165. package/dist/music.js +0 -8
  166. package/dist/naming.d.ts +0 -3
  167. package/dist/naming.js +0 -19
  168. package/dist/openapi.d.ts +0 -13
  169. package/dist/openapi.js +6 -11
  170. package/dist/output-provenance.d.ts +0 -4
  171. package/dist/output-provenance.js +0 -5
  172. package/dist/own-agent-price.d.ts +19 -22
  173. package/dist/own-agent-price.js +30 -25
  174. package/dist/own-agent-runs.d.ts +111 -11
  175. package/dist/own-agent-runs.js +89 -24
  176. package/dist/pacing.d.ts +3 -15
  177. package/dist/pacing.js +18 -18
  178. package/dist/parts-pricing.d.ts +0 -28
  179. package/dist/parts-pricing.js +0 -32
  180. package/dist/post-text.d.ts +0 -2
  181. package/dist/post-text.js +0 -4
  182. package/dist/presenter-beats.d.ts +0 -10
  183. package/dist/presenter-beats.js +0 -14
  184. package/dist/presenter-matte.d.ts +0 -7
  185. package/dist/presenter-matte.js +0 -9
  186. package/dist/presenter-takes.d.ts +0 -3
  187. package/dist/presenter-takes.js +0 -8
  188. package/dist/prices.d.ts +2 -8
  189. package/dist/prices.js +13 -23
  190. package/dist/public-endpoints.d.ts +0 -11
  191. package/dist/public-endpoints.js +0 -14
  192. package/dist/public-responses.d.ts +0 -2
  193. package/dist/public-responses.js +0 -3
  194. package/dist/rate-limit.d.ts +0 -24
  195. package/dist/rate-limit.js +0 -29
  196. package/dist/reference-analysis.d.ts +57 -34
  197. package/dist/reference-analysis.js +0 -69
  198. package/dist/reference-bring.d.ts +33 -0
  199. package/dist/reference-bring.js +28 -0
  200. package/dist/reference-display.d.ts +0 -3
  201. package/dist/reference-display.js +37 -4
  202. package/dist/reference-kinds.d.ts +0 -4
  203. package/dist/reference-kinds.js +0 -6
  204. package/dist/reference-lyrics.d.ts +0 -6
  205. package/dist/reference-lyrics.js +0 -6
  206. package/dist/reference-profile.d.ts +270 -39
  207. package/dist/reference-profile.js +64 -50
  208. package/dist/reference-staging.d.ts +0 -10
  209. package/dist/reference-staging.js +0 -14
  210. package/dist/reference-text-spans.d.ts +0 -4
  211. package/dist/reference-text-spans.js +0 -7
  212. package/dist/reference-voice-over.d.ts +0 -6
  213. package/dist/reference-voice-over.js +0 -7
  214. package/dist/reference-voice.d.ts +0 -7
  215. package/dist/reference-voice.js +0 -12
  216. package/dist/render-backend.d.ts +0 -30
  217. package/dist/render-backend.js +0 -5
  218. package/dist/resolved-timeline.d.ts +0 -4
  219. package/dist/resolved-timeline.js +1 -31
  220. package/dist/run-media.d.ts +0 -1
  221. package/dist/run-media.js +0 -2
  222. package/dist/run-preflight.d.ts +0 -4
  223. package/dist/run-preflight.js +0 -11
  224. package/dist/run-static-warnings.d.ts +0 -8
  225. package/dist/run-static-warnings.js +0 -38
  226. package/dist/runs.d.ts +0 -32
  227. package/dist/runs.js +0 -50
  228. package/dist/scene-bible.d.ts +15 -7
  229. package/dist/scene-bible.js +15 -10
  230. package/dist/scene-graph.d.ts +0 -12
  231. package/dist/scene-graph.js +0 -24
  232. package/dist/scene-place.d.ts +0 -25
  233. package/dist/scene-place.js +0 -24
  234. package/dist/scene-proposal.d.ts +0 -3
  235. package/dist/scene-proposal.js +0 -9
  236. package/dist/script-integrity.d.ts +0 -6
  237. package/dist/script-integrity.js +0 -8
  238. package/dist/script-voice.d.ts +0 -7
  239. package/dist/script-voice.js +0 -16
  240. package/dist/semantic-inserts.d.ts +0 -7
  241. package/dist/semantic-inserts.js +0 -10
  242. package/dist/skill-theme-explainer.js +0 -5
  243. package/dist/skill-theme.d.ts +0 -13
  244. package/dist/skill-theme.js +0 -25
  245. package/dist/skills.d.ts +22 -86
  246. package/dist/skills.js +21 -167
  247. package/dist/speech-rhythm-contract.js +0 -1
  248. package/dist/speech-rhythm.d.ts +0 -4
  249. package/dist/speech-rhythm.js +0 -2
  250. package/dist/templates/backdrop.d.ts +0 -3
  251. package/dist/templates/backdrop.js +0 -5
  252. package/dist/templates/callout.d.ts +0 -4
  253. package/dist/templates/callout.js +0 -6
  254. package/dist/templates/chart.d.ts +0 -4
  255. package/dist/templates/chart.js +0 -6
  256. package/dist/templates/chat-window.d.ts +0 -8
  257. package/dist/templates/chat-window.js +0 -10
  258. package/dist/templates/checklist.d.ts +0 -3
  259. package/dist/templates/checklist.js +0 -6
  260. package/dist/templates/comment-cta.d.ts +0 -14
  261. package/dist/templates/comment-cta.js +0 -19
  262. package/dist/templates/compare.d.ts +0 -6
  263. package/dist/templates/compare.js +0 -7
  264. package/dist/templates/cover-story.d.ts +0 -1
  265. package/dist/templates/cover-story.js +0 -3
  266. package/dist/templates/end-card.d.ts +0 -2
  267. package/dist/templates/end-card.js +0 -3
  268. package/dist/templates/hand-title.d.ts +0 -5
  269. package/dist/templates/hand-title.js +0 -9
  270. package/dist/templates/index.d.ts +0 -57
  271. package/dist/templates/index.js +0 -60
  272. package/dist/templates/lower-third.d.ts +0 -4
  273. package/dist/templates/lower-third.js +0 -5
  274. package/dist/templates/notification.d.ts +0 -6
  275. package/dist/templates/notification.js +0 -7
  276. package/dist/templates/phone-call.d.ts +0 -2
  277. package/dist/templates/phone-call.js +0 -6
  278. package/dist/templates/phone-screen.d.ts +0 -5
  279. package/dist/templates/phone-screen.js +0 -7
  280. package/dist/templates/pointer-chips.d.ts +0 -4
  281. package/dist/templates/pointer-chips.js +0 -6
  282. package/dist/templates/progress.d.ts +0 -3
  283. package/dist/templates/progress.js +0 -5
  284. package/dist/templates/quote.d.ts +0 -3
  285. package/dist/templates/quote.js +0 -4
  286. package/dist/templates/race.d.ts +0 -5
  287. package/dist/templates/race.js +0 -7
  288. package/dist/templates/rating.d.ts +0 -3
  289. package/dist/templates/rating.js +0 -5
  290. package/dist/templates/series-frame.d.ts +0 -16
  291. package/dist/templates/series-frame.js +0 -19
  292. package/dist/templates/size.d.ts +0 -7
  293. package/dist/templates/size.js +0 -8
  294. package/dist/templates/slot.d.ts +0 -2
  295. package/dist/templates/slot.js +0 -2
  296. package/dist/templates/sounds.d.ts +0 -12
  297. package/dist/templates/sounds.js +0 -16
  298. package/dist/templates/stat.d.ts +0 -3
  299. package/dist/templates/stat.js +0 -5
  300. package/dist/templates/tag.d.ts +0 -3
  301. package/dist/templates/tag.js +0 -5
  302. package/dist/templates/terminal.d.ts +0 -6
  303. package/dist/templates/terminal.js +0 -8
  304. package/dist/templates/theme.d.ts +0 -7
  305. package/dist/templates/theme.js +0 -9
  306. package/dist/templates/title-card.d.ts +0 -3
  307. package/dist/templates/title-card.js +0 -5
  308. package/dist/templates/video-grid.d.ts +0 -5
  309. package/dist/templates/video-grid.js +0 -8
  310. package/dist/templates/word-fill.d.ts +0 -3
  311. package/dist/templates/word-fill.js +0 -4
  312. package/dist/templates/word-title.d.ts +0 -2
  313. package/dist/templates/word-title.js +0 -4
  314. package/dist/trend-niches.d.ts +0 -11
  315. package/dist/trend-niches.js +0 -16
  316. package/dist/trend-search.d.ts +0 -66
  317. package/dist/trend-search.js +0 -70
  318. package/dist/tts-backend.d.ts +0 -19
  319. package/dist/tts-backend.js +0 -7
  320. package/dist/ugc-call.d.ts +0 -16
  321. package/dist/ugc-call.js +0 -21
  322. package/dist/ugc-delivery.d.ts +0 -2
  323. package/dist/ugc-delivery.js +0 -4
  324. package/dist/ugc-framing.d.ts +0 -4
  325. package/dist/ugc-framing.js +0 -6
  326. package/dist/ugc-interview.d.ts +0 -18
  327. package/dist/ugc-interview.js +0 -24
  328. package/dist/ugc-layers.d.ts +0 -39
  329. package/dist/ugc-layers.js +0 -39
  330. package/dist/ugc-scenes.d.ts +0 -2
  331. package/dist/ugc-scenes.js +0 -5
  332. package/dist/ugc-video-media.d.ts +0 -5
  333. package/dist/ugc-video-media.js +0 -7
  334. package/dist/uploads.d.ts +0 -14
  335. package/dist/uploads.js +0 -17
  336. package/dist/vendor-response.d.ts +0 -19
  337. package/dist/vendor-response.js +0 -22
  338. package/dist/video-size.d.ts +0 -4
  339. package/dist/video-size.js +0 -7
  340. package/dist/voice-admission.d.ts +0 -11
  341. package/dist/voice-admission.js +0 -13
  342. package/dist/voice-catalog-data.d.ts +0 -2
  343. package/dist/voice-catalog-data.js +0 -3
  344. package/dist/voice-catalog.d.ts +0 -6
  345. package/dist/voice-catalog.js +0 -8
  346. package/dist/voice-listing.d.ts +0 -6
  347. package/dist/voice-listing.js +0 -14
  348. package/dist/voice-pace.d.ts +0 -4
  349. package/dist/voice-pace.js +0 -7
  350. package/dist/voice-preview-approval.js +0 -1
  351. package/dist/voices.d.ts +4 -69
  352. package/dist/voices.js +3 -88
  353. package/dist/workflows/catalog.d.ts +0 -2
  354. package/dist/workflows/catalog.js +0 -4
  355. package/dist/workflows/film-directions.d.ts +0 -3
  356. package/dist/workflows/film-directions.js +0 -4
  357. package/dist/workflows/index.js +0 -1
  358. package/dist/workflows/methods/faceless-explainer.d.ts +31 -0
  359. package/dist/workflows/methods/faceless-explainer.js +0 -1
  360. package/dist/workflows/methods/kinetic-launch.d.ts +62 -1
  361. package/dist/workflows/methods/kinetic-launch.js +0 -2
  362. package/dist/workflows/methods/product-image-story.d.ts +31 -0
  363. package/dist/workflows/methods/product-image-story.js +0 -1
  364. package/dist/workflows/methods/reference-remake.d.ts +31 -0
  365. package/dist/workflows/methods/reference-remake.js +0 -1
  366. package/dist/workflows/methods/shared.d.ts +31 -1
  367. package/dist/workflows/methods/shared.js +0 -3
  368. package/dist/workflows/methods/ugc-faq-answer.d.ts +31 -0
  369. package/dist/workflows/methods/ugc-faq-answer.js +0 -1
  370. package/dist/workflows/methods/ugc-product-intro.d.ts +31 -0
  371. package/dist/workflows/methods/ugc-product-intro.js +0 -1
  372. package/dist/workflows/methods/website-proof-demo.d.ts +62 -1
  373. package/dist/workflows/methods/website-proof-demo.js +0 -2
  374. package/dist/workflows/motion-director.d.ts +0 -11
  375. package/dist/workflows/motion-director.js +0 -11
  376. package/dist/workflows/product-references.js +0 -1
  377. package/dist/workflows/reference-remake.d.ts +114 -17
  378. package/dist/workflows/reference-remake.js +0 -167
  379. package/dist/workflows/remake-chooser.d.ts +0 -6
  380. package/dist/workflows/remake-chooser.js +0 -4
  381. package/dist/workflows/remake-motion.d.ts +0 -16
  382. package/dist/workflows/remake-motion.js +0 -19
  383. package/dist/workflows/validate.d.ts +0 -1
  384. package/dist/workflows/validate.js +0 -5
  385. package/dist/workflows.js +0 -1
  386. package/package.json +1 -1
  387. package/dist/account-actors.js.map +0 -1
  388. package/dist/account.js.map +0 -1
  389. package/dist/actor-bounds.js.map +0 -1
  390. package/dist/actor-qualities.js.map +0 -1
  391. package/dist/actors.js.map +0 -1
  392. package/dist/ad-guide.js.map +0 -1
  393. package/dist/ad-pause-trim.js.map +0 -1
  394. package/dist/api-failure.js.map +0 -1
  395. package/dist/aspect.js.map +0 -1
  396. package/dist/asset-identity.js.map +0 -1
  397. package/dist/assets.js.map +0 -1
  398. package/dist/billing-terms.js.map +0 -1
  399. package/dist/brand-styles.js.map +0 -1
  400. package/dist/broll-policy.js.map +0 -1
  401. package/dist/canvas-fit.js.map +0 -1
  402. package/dist/caption-funnel.js.map +0 -1
  403. package/dist/caption-geometry.js.map +0 -1
  404. package/dist/caption-language.js.map +0 -1
  405. package/dist/contract-dispositions.js.map +0 -1
  406. package/dist/contracts/v1/workflow-brief.js.map +0 -1
  407. package/dist/contracts/v1/workflow-catalog.js.map +0 -1
  408. package/dist/contracts/v1/workflow-client.js.map +0 -1
  409. package/dist/contracts/v1/workflow-dto.js.map +0 -1
  410. package/dist/contracts/v1/workflow-evidence.js.map +0 -1
  411. package/dist/contracts/v1/workflow-execution.js.map +0 -1
  412. package/dist/contracts/v1/workflow-next.js.map +0 -1
  413. package/dist/contracts/v1/workflow-plan.js.map +0 -1
  414. package/dist/contracts/v1/workflow-primitives.js.map +0 -1
  415. package/dist/contracts/v1/workflow-run-read.js.map +0 -1
  416. package/dist/creator-profile.js.map +0 -1
  417. package/dist/default-actor.js.map +0 -1
  418. package/dist/design.js.map +0 -1
  419. package/dist/edit-billing.js.map +0 -1
  420. package/dist/edit-candidate.js.map +0 -1
  421. package/dist/edit-document.js.map +0 -1
  422. package/dist/edit-faceless.js.map +0 -1
  423. package/dist/edit-long-form.js.map +0 -1
  424. package/dist/edit-operations.js.map +0 -1
  425. package/dist/edit-primitives.js.map +0 -1
  426. package/dist/edit-revision.js.map +0 -1
  427. package/dist/edit-rules.js.map +0 -1
  428. package/dist/edit-shots.js.map +0 -1
  429. package/dist/edit-validate.js.map +0 -1
  430. package/dist/edit.js.map +0 -1
  431. package/dist/endpoint-notes.js.map +0 -1
  432. package/dist/endpoints.js.map +0 -1
  433. package/dist/errors.js.map +0 -1
  434. package/dist/explainer-fit.js.map +0 -1
  435. package/dist/face-billing.js.map +0 -1
  436. package/dist/face-delivery.js.map +0 -1
  437. package/dist/faceless-action-shots.js.map +0 -1
  438. package/dist/faceless-customer-anchors.js.map +0 -1
  439. package/dist/faceless-cut-style.js.map +0 -1
  440. package/dist/faceless-direction-summary.js.map +0 -1
  441. package/dist/faceless-image-placement.js.map +0 -1
  442. package/dist/faceless-image-qualification.js.map +0 -1
  443. package/dist/faceless-media-record.js.map +0 -1
  444. package/dist/faceless-price.js.map +0 -1
  445. package/dist/faceless-public-plan.js.map +0 -1
  446. package/dist/faceless-public.js.map +0 -1
  447. package/dist/faceless-short-61.js.map +0 -1
  448. package/dist/faceless-storyboard-timing.js.map +0 -1
  449. package/dist/faceless-storyboard-v2-plan.js.map +0 -1
  450. package/dist/faceless-storyboard-v2-timing.js.map +0 -1
  451. package/dist/faceless-storyboard-v2.js.map +0 -1
  452. package/dist/faceless-storyboard.js.map +0 -1
  453. package/dist/faceless-voices.js.map +0 -1
  454. package/dist/feedback.js.map +0 -1
  455. package/dist/film-directions.js.map +0 -1
  456. package/dist/film-drafts.js.map +0 -1
  457. package/dist/film-guide.js.map +0 -1
  458. package/dist/film-styles.js.map +0 -1
  459. package/dist/generation-shot.js.map +0 -1
  460. package/dist/generations-output.js.map +0 -1
  461. package/dist/generations.js.map +0 -1
  462. package/dist/idempotency.js.map +0 -1
  463. package/dist/index.js.map +0 -1
  464. package/dist/live-shot-kinds.js.map +0 -1
  465. package/dist/long-form-pricing.js.map +0 -1
  466. package/dist/long-form-profile.js.map +0 -1
  467. package/dist/long-form-revision.js.map +0 -1
  468. package/dist/markdown-quote.js.map +0 -1
  469. package/dist/mascots.js.map +0 -1
  470. package/dist/max-credits.js.map +0 -1
  471. package/dist/mcp-ugc-descriptions.js.map +0 -1
  472. package/dist/media-timebase.js.map +0 -1
  473. package/dist/motion-styles.js.map +0 -1
  474. package/dist/moves.js.map +0 -1
  475. package/dist/music.js.map +0 -1
  476. package/dist/naming.js.map +0 -1
  477. package/dist/openapi.js.map +0 -1
  478. package/dist/output-provenance.js.map +0 -1
  479. package/dist/own-agent-price.js.map +0 -1
  480. package/dist/own-agent-runs.js.map +0 -1
  481. package/dist/pacing.js.map +0 -1
  482. package/dist/parts-pricing.js.map +0 -1
  483. package/dist/post-text.js.map +0 -1
  484. package/dist/presenter-beats.js.map +0 -1
  485. package/dist/presenter-matte.js.map +0 -1
  486. package/dist/presenter-takes.js.map +0 -1
  487. package/dist/prices.js.map +0 -1
  488. package/dist/public-endpoints.js.map +0 -1
  489. package/dist/public-responses.js.map +0 -1
  490. package/dist/rate-limit.js.map +0 -1
  491. package/dist/reference-analysis.js.map +0 -1
  492. package/dist/reference-display.js.map +0 -1
  493. package/dist/reference-kinds.js.map +0 -1
  494. package/dist/reference-lyrics.js.map +0 -1
  495. package/dist/reference-profile.js.map +0 -1
  496. package/dist/reference-staging.js.map +0 -1
  497. package/dist/reference-text-spans.js.map +0 -1
  498. package/dist/reference-voice-over.js.map +0 -1
  499. package/dist/reference-voice.js.map +0 -1
  500. package/dist/render-backend.js.map +0 -1
  501. package/dist/resolved-timeline.js.map +0 -1
  502. package/dist/run-media.js.map +0 -1
  503. package/dist/run-preflight.js.map +0 -1
  504. package/dist/run-static-warnings.js.map +0 -1
  505. package/dist/runs.js.map +0 -1
  506. package/dist/scene-bible.js.map +0 -1
  507. package/dist/scene-graph.js.map +0 -1
  508. package/dist/scene-place.js.map +0 -1
  509. package/dist/scene-proposal.js.map +0 -1
  510. package/dist/script-integrity.js.map +0 -1
  511. package/dist/script-voice.js.map +0 -1
  512. package/dist/semantic-inserts.js.map +0 -1
  513. package/dist/skill-theme-explainer.js.map +0 -1
  514. package/dist/skill-theme.js.map +0 -1
  515. package/dist/skills.js.map +0 -1
  516. package/dist/speech-rhythm-contract.js.map +0 -1
  517. package/dist/speech-rhythm.js.map +0 -1
  518. package/dist/templates/backdrop.js.map +0 -1
  519. package/dist/templates/callout.js.map +0 -1
  520. package/dist/templates/chart.js.map +0 -1
  521. package/dist/templates/chat-window.js.map +0 -1
  522. package/dist/templates/checklist.js.map +0 -1
  523. package/dist/templates/comment-cta.js.map +0 -1
  524. package/dist/templates/compare.js.map +0 -1
  525. package/dist/templates/cover-story.js.map +0 -1
  526. package/dist/templates/end-card.js.map +0 -1
  527. package/dist/templates/hand-title.js.map +0 -1
  528. package/dist/templates/index.js.map +0 -1
  529. package/dist/templates/lower-third.js.map +0 -1
  530. package/dist/templates/notification.js.map +0 -1
  531. package/dist/templates/phone-call.js.map +0 -1
  532. package/dist/templates/phone-screen.js.map +0 -1
  533. package/dist/templates/pointer-chips.js.map +0 -1
  534. package/dist/templates/progress.js.map +0 -1
  535. package/dist/templates/quote.js.map +0 -1
  536. package/dist/templates/race.js.map +0 -1
  537. package/dist/templates/rating.js.map +0 -1
  538. package/dist/templates/series-frame.js.map +0 -1
  539. package/dist/templates/size.js.map +0 -1
  540. package/dist/templates/slot.js.map +0 -1
  541. package/dist/templates/sounds.js.map +0 -1
  542. package/dist/templates/stat.js.map +0 -1
  543. package/dist/templates/tag.js.map +0 -1
  544. package/dist/templates/terminal.js.map +0 -1
  545. package/dist/templates/theme.js.map +0 -1
  546. package/dist/templates/title-card.js.map +0 -1
  547. package/dist/templates/video-grid.js.map +0 -1
  548. package/dist/templates/word-fill.js.map +0 -1
  549. package/dist/templates/word-title.js.map +0 -1
  550. package/dist/trend-niches.js.map +0 -1
  551. package/dist/trend-search.js.map +0 -1
  552. package/dist/tts-backend.js.map +0 -1
  553. package/dist/ugc-call.js.map +0 -1
  554. package/dist/ugc-delivery.js.map +0 -1
  555. package/dist/ugc-framing.js.map +0 -1
  556. package/dist/ugc-interview.js.map +0 -1
  557. package/dist/ugc-layers.js.map +0 -1
  558. package/dist/ugc-scenes.js.map +0 -1
  559. package/dist/ugc-video-media.js.map +0 -1
  560. package/dist/uploads.js.map +0 -1
  561. package/dist/vendor-response.js.map +0 -1
  562. package/dist/video-size.js.map +0 -1
  563. package/dist/voice-admission.js.map +0 -1
  564. package/dist/voice-catalog-data.js.map +0 -1
  565. package/dist/voice-catalog.js.map +0 -1
  566. package/dist/voice-listing.js.map +0 -1
  567. package/dist/voice-pace.js.map +0 -1
  568. package/dist/voice-preview-approval.js.map +0 -1
  569. package/dist/voices.js.map +0 -1
  570. package/dist/workflows/catalog.js.map +0 -1
  571. package/dist/workflows/film-directions.js.map +0 -1
  572. package/dist/workflows/index.js.map +0 -1
  573. package/dist/workflows/methods/faceless-explainer.js.map +0 -1
  574. package/dist/workflows/methods/kinetic-launch.js.map +0 -1
  575. package/dist/workflows/methods/product-image-story.js.map +0 -1
  576. package/dist/workflows/methods/reference-remake.js.map +0 -1
  577. package/dist/workflows/methods/shared.js.map +0 -1
  578. package/dist/workflows/methods/ugc-faq-answer.js.map +0 -1
  579. package/dist/workflows/methods/ugc-product-intro.js.map +0 -1
  580. package/dist/workflows/methods/website-proof-demo.js.map +0 -1
  581. package/dist/workflows/motion-director.js.map +0 -1
  582. package/dist/workflows/product-references.js.map +0 -1
  583. package/dist/workflows/reference-remake.js.map +0 -1
  584. package/dist/workflows/remake-chooser.js.map +0 -1
  585. package/dist/workflows/remake-motion.js.map +0 -1
  586. package/dist/workflows/validate.js.map +0 -1
  587. package/dist/workflows.js.map +0 -1
@@ -3,7 +3,6 @@ import { frame, frameCount, shotId } from "./edit-primitives.js";
3
3
  import { EDIT_LINES, SHOT_ACTIONS, SHOT_KINDS, SHOT_SOURCES, SHOT_TRACKS, editRules } from "./edit-rules.js";
4
4
  import { runId } from "./runs.js";
5
5
  import { ASPECT_RATIOS } from "./skills.js";
6
- /** The tariff a paid edit is priced by; the prices join it later, so further keys pass through. */
7
6
  export const editPricing = z.object({ tariff_id: z.string().min(1) }).passthrough();
8
7
  const word = z.object({ index: frame, text: z.string().min(1), start_ms: frame, end_ms: frame.positive() });
9
8
  export const viewShot = z.object({
@@ -17,7 +16,6 @@ export const viewShot = z.object({
17
16
  });
18
17
  const lineage = z.object({ source_run_id: runId.nullable(), root_run_id: runId, revisions: z.array(z.object({ run_id: runId, state: z.string() })) });
19
18
  const until = z.string().datetime().nullable();
20
- /** A run whose plan is recorded: its timeline, its words and the rules an edit of it must keep. */
21
19
  export const plannedRunShots = z.object({
22
20
  planned: z.literal(true),
23
21
  run_id: runId, line: z.enum(EDIT_LINES),
@@ -27,7 +25,6 @@ export const plannedRunShots = z.object({
27
25
  narration: z.object({ offset_frames: frame, words: z.array(word) }),
28
26
  tracks: z.array(z.object({ id: z.enum(SHOT_TRACKS), shots: z.array(viewShot) })),
29
27
  rules: editRules,
30
- // `view_only`: the run's shots are shown, and no draft of them is kept yet (long form, #604 S7a).
31
28
  editable: z.object({ state: z.enum(["editable", "view_only", "expired", "not_recorded"]), media_available_until: until, reason: z.string().nullable() }),
32
29
  lineage,
33
30
  withheld: z.array(z.enum(["description", "source_media"])),
@@ -35,27 +32,28 @@ export const plannedRunShots = z.object({
35
32
  paid_edits: z.object({ enabled: z.boolean(), reason: z.string().nullable() }),
36
33
  contract_version: z.string().min(1),
37
34
  });
38
- /** 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. */
39
35
  export const LIVE_SHOT_TAKES = ["first", "retake", "fallback", "head", "card"];
40
36
  export const LIVE_TAKE_VERDICTS = ["accepted", "refused", "unjudged"];
41
37
  const liveTake = z.object({
42
38
  take: z.enum(LIVE_SHOT_TAKES), verdict: z.enum(LIVE_TAKE_VERDICTS),
43
- /** The check's codes as it stored them (STRAY_TEXT, FACE_DRIFT, ...); empty when it named none. */
44
39
  codes: z.array(z.string().min(1)), chosen: z.boolean(), preview_url: z.string().url().nullable(),
45
40
  });
46
41
  export const liveShot = z.object({ shot_id: z.string().min(1).max(64), takes: z.array(liveTake) });
47
- /** A run with no plan to show: it carries no frame, duration, words or rules, and none are invented. */
42
+ export const FINISHED_CHECK_VERDICTS = ["clean", "defects"];
43
+ export const finishedCheck = z.object({
44
+ verdict: z.enum(FINISHED_CHECK_VERDICTS),
45
+ findings: z.array(z.object({ code: z.string().min(1), at_s: z.number().nonnegative().nullable() })),
46
+ });
48
47
  export const unplannedRunShots = z.object({
49
48
  planned: z.literal(false),
50
49
  run_id: runId, line: z.enum(EDIT_LINES),
51
50
  editable: z.object({ state: z.enum(["not_succeeded", "unsupported_line", "not_recorded"]), media_available_until: until, reason: z.string().min(1) }),
52
51
  lineage,
53
- /** An ad run's live shots, for the accounts that have the ad parts; absent otherwise. */
54
52
  live_shots: z.array(liveShot).optional(),
53
+ finished_check: finishedCheck.optional(),
55
54
  contract_version: z.string().min(1),
56
55
  });
57
56
  export const runShots = z.discriminatedUnion("planned", [plannedRunShots, unplannedRunShots]);
58
- // What installed clients parse: every closed vocabulary is an open string, and `rules` is opaque.
59
57
  const editableRead = z.object({ state: z.string(), media_available_until: until, reason: z.string().nullable() });
60
58
  const viewShotRead = viewShot.extend({ track: z.string(), kind: z.string(), source: z.string(), operations: z.array(z.string()) });
61
59
  export const plannedRunShotsRead = plannedRunShots.extend({
@@ -68,8 +66,6 @@ export const plannedRunShotsRead = plannedRunShots.extend({
68
66
  });
69
67
  const liveShotRead = liveShot.extend({ takes: z.array(liveShot.shape.takes.element.extend({ take: z.string(), verdict: z.string() })) });
70
68
  export const unplannedRunShotsRead = unplannedRunShots.extend({ line: z.string(), editable: editableRead,
71
- live_shots: z.array(liveShotRead).optional() });
69
+ live_shots: z.array(liveShotRead).optional(), finished_check: finishedCheck.extend({ verdict: z.string() }).optional() });
72
70
  export const runShotsRead = z.discriminatedUnion("planned", [plannedRunShotsRead, unplannedRunShotsRead]);
73
- /** The path of a run's shots. The id is encoded, since it comes from the caller. */
74
71
  export const runShotsPath = (id) => `/v1/runs/${encodeURIComponent(id)}/shots`;
75
- //# sourceMappingURL=edit-shots.js.map
@@ -2,10 +2,8 @@ import type { EditDocument } from "./edit-document.js";
2
2
  import { type ShotOperationMode } from "./edit-operations.js";
3
3
  import type { ShotKind } from "./edit-rules.js";
4
4
  import type { PlannedRunShots } from "./edit-shots.js";
5
- /** In the order issues are reported. */
6
5
  export declare const EDIT_ISSUE_CODES: readonly ["source_mismatch", "timebase_mismatch", "duration_mismatch", "duplicate_shot_id", "span_out_of_range", "kind_changed", "shot_added_not_allowed", "too_short", "too_long", "action_not_allowed", "not_movable", "not_resizable", "overlap", "tracks_overlap", "uncovered", "first_shot_fixed", "foreign_source_asset", "kind_asset_mismatch", "candidate_for_other_shot", "unknown_asset", "upload_shape_refused", "duplicate_picture_asset", "too_many_generated", "footage_exceeded", "presenter_out_of_sync", "presenter_outside_recording", "transition_invalid"];
7
6
  export type EditIssueCode = (typeof EDIT_ISSUE_CODES)[number];
8
- /** What the caller measured about the assets a document names: kept candidates by run id, uploads by upload id. */
9
7
  export type EditFacts = {
10
8
  candidates: Record<string, {
11
9
  shot_id: string;
@@ -25,31 +23,23 @@ export type EditIssue = {
25
23
  message: string;
26
24
  };
27
25
  export type EditSummary = {
28
- /** Source shots whose start_frame, end_frame or media_offset_frames changed. */
29
26
  retimed: string[];
30
- /** Source shot ids absent from the document. */
31
27
  deleted: string[];
32
- /** Document shot ids that are not source shot ids. */
33
28
  added: string[];
34
29
  replaced: {
35
30
  shot_id: string;
36
31
  from: "candidate" | "upload" | "source";
37
32
  }[];
38
- /** Facts only: pricing decides what each entry costs. */
39
33
  generated: {
40
34
  shot_id: string;
41
35
  kind: ShotKind;
42
36
  mode: ShotOperationMode;
43
37
  }[];
44
- /** The document sets or removes the cut transitions. */
45
38
  transitions?: true;
46
- /** Any list above is non-empty, or transitions are set. */
47
39
  changed: boolean;
48
40
  };
49
- /** Presenter frames no visual shot covers. */
50
41
  export declare function presenterVisibleFrames(shots: Pick<PlannedRunShots, "tracks">): number;
51
42
  export declare function diffEditDocument(document: EditDocument, shots: PlannedRunShots): EditSummary;
52
- /** Checks a document against the view it edits. Every issue is collected; the rules come from the view. */
53
43
  export declare function validateEditDocument(document: EditDocument, shots: PlannedRunShots, facts: EditFacts): {
54
44
  ok: true;
55
45
  summary: EditSummary;
@@ -2,7 +2,6 @@ import { aspectDistance } from "./aspect.js";
2
2
  import { isExactFit } from "./canvas-fit.js";
3
3
  import { SHOT_OPERATION_MODES } from "./edit-operations.js";
4
4
  import { MAX_INSERTS } from "./skills.js";
5
- /** In the order issues are reported. */
6
5
  export const EDIT_ISSUE_CODES = [
7
6
  "source_mismatch", "timebase_mismatch", "duration_mismatch", "duplicate_shot_id", "span_out_of_range", "kind_changed",
8
7
  "shot_added_not_allowed", "too_short", "too_long", "action_not_allowed", "not_movable", "not_resizable", "overlap",
@@ -14,7 +13,6 @@ const spanOf = (shot) => ({ start: shot.start_frame, end: shot.end_frame });
14
13
  const framesOf = (shot) => shot.end_frame - shot.start_frame;
15
14
  const overlapOf = (a, b) => ({ start: Math.max(a.start_frame, b.start_frame), end: Math.min(a.end_frame, b.end_frame) });
16
15
  const overlaps = (a, b) => a.start_frame < b.end_frame && b.start_frame < a.end_frame;
17
- /** Sorted, merged union; empty and inverted spans drop out. */
18
16
  function union(spans) {
19
17
  const merged = [];
20
18
  for (const span of spans.filter(s => s.end > s.start).sort((a, b) => a.start - b.start)) {
@@ -26,7 +24,6 @@ function union(spans) {
26
24
  }
27
25
  return merged;
28
26
  }
29
- /** Frames two unions share. */
30
27
  function sharedFrames(a, b) {
31
28
  let frames = 0;
32
29
  for (const x of a)
@@ -39,13 +36,11 @@ const own = (record, key) => Object.hasOwn(record, key) ? record[key] : undefine
39
36
  const offsetOf = (shot, source) => shot.media_offset_frames ?? source?.media_offset_frames ?? 0;
40
37
  const retimed = (shot, source) => shot.start_frame !== source.start_frame ||
41
38
  shot.end_frame !== source.end_frame || offsetOf(shot, source) !== (source.media_offset_frames ?? 0);
42
- /** Whether a visual shot reaches presenter frames its source span did not; `was` is the presenter shot's source. */
43
39
  function newlyCovers(shot, from, presenter, was) {
44
40
  if (!overlaps(shot, presenter))
45
41
  return false;
46
42
  if (!from)
47
43
  return true;
48
- // A presenter shot the source lacks, or holds on another track, is refused on its own.
49
44
  if (!was || was.track !== "presenter")
50
45
  return false;
51
46
  if (!overlaps(from, was))
@@ -53,7 +48,6 @@ function newlyCovers(shot, from, presenter, was) {
53
48
  const now = overlapOf(shot, presenter), before = overlapOf(from, was);
54
49
  return now.start < before.start || now.end > before.end;
55
50
  }
56
- /** The stretches of each presenter shot that no visual shot covers. */
57
51
  function visiblePieces(presenter, visual) {
58
52
  const covered = union(visual.map(spanOf));
59
53
  return presenter.flatMap(shot => {
@@ -71,7 +65,6 @@ function visiblePieces(presenter, visual) {
71
65
  return pieces;
72
66
  });
73
67
  }
74
- /** The one check that reads the output's shape, and only its ratio. */
75
68
  function uploadShapeIssue(frame, upload, rule) {
76
69
  if ("mode" in rule) {
77
70
  return isExactFit(upload, frame, rule.epsilon) ? null
@@ -82,7 +75,6 @@ function uploadShapeIssue(frame, upload, rule) {
82
75
  : `the upload is ${upload.width}×${upload.height}, ${Math.round(distance * 100)}% away from the output's shape; ` +
83
76
  `at most ${Math.round(rule.max_distance * 100)}% is accepted`;
84
77
  }
85
- /** Presenter frames no visual shot covers. */
86
78
  export function presenterVisibleFrames(shots) {
87
79
  const all = shots.tracks.flatMap(track => track.shots);
88
80
  const presenter = union(all.filter(shot => shot.track === "presenter").map(spanOf));
@@ -113,7 +105,6 @@ export function diffEditDocument(document, shots) {
113
105
  summary.transitions === true;
114
106
  return summary;
115
107
  }
116
- /** Checks a document against the view it edits. Every issue is collected; the rules come from the view. */
117
108
  export function validateEditDocument(document, shots, facts) {
118
109
  const issues = [];
119
110
  const add = (code, message, where = {}) => {
@@ -139,9 +130,7 @@ export function validateEditDocument(document, shots, facts) {
139
130
  const sourcePresenter = [...source.values()].filter(shot => shot.track === "presenter");
140
131
  const overSource = (shot) => shot.track === "visual" && sourcePresenter.some(presenter => overlaps(presenter, shot));
141
132
  const overNow = (shot) => shot.track === "visual" && presenterShots.some(presenter => overlaps(presenter, shot));
142
- // Shots the source already shows over the presenter count first, so a chain of revisions keeps the cap.
143
133
  let overPresenter = document.shots.filter(shot => { const from = source.get(shot.id); return from && overSource(from) && overNow(shot); }).length;
144
- // Id stems of the source's own tiling: a new shot named like one would read as that shot in a later record.
145
134
  const stem = (id) => id.replace(/\d+$/, "");
146
135
  const tiling = new Set([...source.values()].filter(shot => shot.track === "presenter" || !overSource(shot)).map(shot => stem(shot.id)));
147
136
  const pictureAssets = new Set();
@@ -277,7 +266,6 @@ export function validateEditDocument(document, shots, facts) {
277
266
  reach = shot;
278
267
  }
279
268
  }
280
- // The presenter shows for at least the cover minimum or not at all (Q23); a stretch the source already shows stays.
281
269
  if (rules.cover_min_frames !== null) {
282
270
  const all = [...source.values()];
283
271
  const shown = new Set(visiblePieces(all.filter(shot => shot.track === "presenter"), all.filter(shot => shot.track === "visual"))
@@ -315,7 +303,6 @@ export function validateEditDocument(document, shots, facts) {
315
303
  if (generated > rules.max_generated_per_revision) {
316
304
  add("too_many_generated", `a revision generates at most ${rules.max_generated_per_revision} shots, this one asks for ${generated}`);
317
305
  }
318
- // A transition falls on a cut into a shot, so the named shot is in the document and is not the opening one.
319
306
  const transitions = document.transitions;
320
307
  if (transitions !== undefined && !rules.cut_transitions)
321
308
  add("transition_invalid", "this timeline draws no cut transitions");
@@ -335,4 +322,3 @@ export function validateEditDocument(document, shots, facts) {
335
322
  issues.sort((a, b) => order(a) - order(b) || (idOf(a) < idOf(b) ? -1 : idOf(a) > idOf(b) ? 1 : 0));
336
323
  return { ok: false, issues };
337
324
  }
338
- //# sourceMappingURL=edit-validate.js.map
package/dist/edit.js CHANGED
@@ -1,5 +1,3 @@
1
- // The editor contract in one subpath: rules, operations, the edit document, the shots view, validation, the faceless projection, the revision and its price, the shot candidate,
2
- // the composition's exact-fit test and the long-form revision.
3
1
  export * from "./edit-rules.js";
4
2
  export * from "./edit-operations.js";
5
3
  export * from "./edit-document.js";
@@ -12,4 +10,3 @@ export * from "./edit-revision.js";
12
10
  export * from "./edit-candidate.js";
13
11
  export * from "./canvas-fit.js";
14
12
  export * from "./long-form-revision.js";
15
- //# sourceMappingURL=edit.js.map
@@ -1,3 +1 @@
1
- /** What each route does, keyed by `endpointLabel`. `/docs` and `/openapi.json` print the same sentence; */
2
- /** the web docs test proves every shown route has one and nothing else does. */
3
1
  export declare const ENDPOINT_NOTES: Readonly<Record<string, string>>;
@@ -5,8 +5,6 @@ import { CREATOR_PROFILE_CREDITS, CREATOR_PROFILE_PER_HOUR, CREATOR_PROFILE_VIDE
5
5
  import { TREND_FREE_PAGES_PER_DAY, TREND_FREE_SEARCHES_PER_MONTH, TREND_PAGE_PAID_CREDITS, TREND_PAGE_WINDOW_SECONDS, TREND_SEARCH_CREDITS, TREND_SEARCH_MAX_PAGES, TREND_SEARCH_PER_HOUR, TREND_SEARCH_REELS, } from "./trend-search.js";
6
6
  import { FEEDBACK_PER_HOUR } from "./feedback.js";
7
7
  import { REFERENCE_ANALYSIS_CREDITS, REFERENCE_ANALYSIS_PER_HOUR, REFERENCE_DATA_CREDITS, REFERENCE_DATA_PER_HOUR } from "./reference-analysis.js";
8
- /** What each route does, keyed by `endpointLabel`. `/docs` and `/openapi.json` print the same sentence; */
9
- /** the web docs test proves every shown route has one and nothing else does. */
10
8
  export const ENDPOINT_NOTES = {
11
9
  "GET /v1/public/workflows": "Lists public workflow methods and whether each is available now, without account plans or an account admission claim.",
12
10
  "GET /v1/public/workflows/{id}": "Reads a method's guidance, limitations and what it can do right now.",
@@ -111,4 +109,3 @@ export const ENDPOINT_NOTES = {
111
109
  "POST /v1/skills/generate_video/quote": "Prices one silent clip with this request: credits per second times its duration, width, height and warnings. Charges nothing.",
112
110
  "POST /v1/skills/generate_video/run": "Starts one clip generation and answers at once with a run_id; the run's generation block holds the clip once delivered. A failed generation is charged nothing. While generations are closed it answers generations_disabled and charges nothing.",
113
111
  };
114
- //# sourceMappingURL=endpoint-notes.js.map
@@ -2,33 +2,22 @@ export declare const PUBLIC_WORKFLOWS_PATH = "/v1/public/workflows";
2
2
  export declare const PUBLIC_WORKFLOW_PATH = "/v1/public/workflows/:id";
3
3
  export declare const WORKFLOW_PLANS_PATH = "/v1/workflow-plans";
4
4
  export declare const WORKFLOW_PLAN_PATH = "/v1/workflow-plans/:id";
5
- /** A reference remake compiled into a new plan (#857): free, it starts nothing. */
6
5
  export declare const WORKFLOW_REFERENCE_REMAKE_PATH = "/v1/workflow-plans/reference-remake";
7
6
  export declare const WORKFLOW_REVISIONS_PATH = "/v1/workflow-plans/:id/revisions";
8
7
  export declare const WORKFLOW_APPROVE_PATH = "/v1/workflow-plans/:id/approve";
9
8
  export declare const WORKFLOW_QUOTE_PATH = "/v1/workflow-plans/:id/quote";
10
9
  export declare const WORKFLOW_RUN_PATH = "/v1/workflow-plans/:id/run";
11
- /** The OpenAPI 3.1 document, built from this registry and served without a key. */
12
10
  export declare const OPENAPI_PATH = "/openapi.json";
13
11
  export interface ApiEndpoint {
14
12
  method: "GET" | "POST" | "DELETE";
15
- /** The path in Hono notation: a parameter is `:id`. */
16
13
  path: string;
17
- /** Whether the call may charge credits. */
18
14
  billed: boolean;
19
- /** Whether the quickstart names it. */
20
15
  onQuickstart: boolean;
21
- /** Whether the route parses the body as JSON. `POST /v1/uploads` takes bytes. */
22
16
  jsonBody: boolean;
23
- /** Whether the cabinet may call it on a user's behalf. */
24
17
  cabinet: boolean;
25
- /** Whether the remote MCP server may call it with its `cwm_` assertion: a route a remote tool reaches. */
26
18
  mcp: boolean;
27
19
  }
28
20
  export declare const API_ENDPOINTS: readonly ApiEndpoint[];
29
- /** `GET /v1/runs/{id}`: the human notation, with the parameter in curly braces. */
30
21
  export declare function endpointLabel(endpoint: ApiEndpoint): string;
31
- /** The row a request falls on, or `null`. Exact on purpose: the method as HTTP spells it (upper case) and the pathname alone,
32
- * so a path with a query string matches no row; a caller that binds the query (the cabinet assertion) splits it off first. */
33
22
  export declare function matchEndpoint(method: string, path: string): ApiEndpoint | null;
34
23
  export declare const QUICKSTART_ENDPOINTS: readonly ApiEndpoint[];
package/dist/endpoints.js CHANGED
@@ -1,5 +1,3 @@
1
- /** API routes: the API contract test checks them against `app.routes`, and the quickstart */
2
- /** prints the "what costs money" list from here. */
3
1
  import { ACTOR_PREVIEW_PATH } from "./actors.js";
4
2
  import { ASSET_BYTES_PATH, ASSET_ITEM_PATH, ASSETS_PATH } from "./assets.js";
5
3
  import { ACTOR_DEFAULTS_PATH } from "./broll-policy.js";
@@ -12,7 +10,7 @@ import { FEEDBACK_PATH } from "./feedback.js";
12
10
  import { FILM_DRAFT_CHECK_PATH, FILM_DRAFT_FILES_PATH, FILM_DRAFT_PATH, FILM_DRAFTS_PATH } from "./film-drafts.js";
13
11
  import { FILM_GUIDE_PATH, FILM_KIT_PATH } from "./film-guide.js";
14
12
  import { AD_GUIDE_PATH } from "./ad-guide.js";
15
- import { FILM_HEROES_PATH, FILM_HEROES_QUOTE_PATH, FILM_RENDERS_PATH, FILM_RENDERS_QUOTE_PATH, FILM_RUN_PATH, FILM_STILLS_PATH, FILM_STILLS_QUOTE_PATH, FILM_VOICES_PATH, FILM_VOICES_QUOTE_PATH } from "./own-agent-runs.js";
13
+ import { FILM_EDITS_PATH, FILM_EDITS_QUOTE_PATH, FILM_HEROES_PATH, FILM_HEROES_QUOTE_PATH, FILM_RENDERS_PATH, FILM_RENDERS_QUOTE_PATH, FILM_RUN_PATH, FILM_STILLS_PATH, FILM_STILLS_QUOTE_PATH, FILM_VOICES_PATH, FILM_VOICES_QUOTE_PATH, TAKE_CHECKS_PATH, TAKE_CHECKS_QUOTE_PATH, TAKE_FRAMES_PATH, TAKE_FRAMES_QUOTE_PATH } from "./own-agent-runs.js";
16
14
  import { GENERATION_MODELS_PATH } from "./generations.js";
17
15
  import { PRICES_PATH } from "./prices.js";
18
16
  import { REFERENCE_ANALYSES_PATH, REFERENCE_ANALYSIS_PATH, REFERENCE_ANALYSIS_QUOTE_PATH } from "./reference-analysis.js";
@@ -23,13 +21,11 @@ export const PUBLIC_WORKFLOWS_PATH = "/v1/public/workflows";
23
21
  export const PUBLIC_WORKFLOW_PATH = "/v1/public/workflows/:id";
24
22
  export const WORKFLOW_PLANS_PATH = "/v1/workflow-plans";
25
23
  export const WORKFLOW_PLAN_PATH = "/v1/workflow-plans/:id";
26
- /** A reference remake compiled into a new plan (#857): free, it starts nothing. */
27
24
  export const WORKFLOW_REFERENCE_REMAKE_PATH = "/v1/workflow-plans/reference-remake";
28
25
  export const WORKFLOW_REVISIONS_PATH = "/v1/workflow-plans/:id/revisions";
29
26
  export const WORKFLOW_APPROVE_PATH = "/v1/workflow-plans/:id/approve";
30
27
  export const WORKFLOW_QUOTE_PATH = "/v1/workflow-plans/:id/quote";
31
28
  export const WORKFLOW_RUN_PATH = "/v1/workflow-plans/:id/run";
32
- /** The OpenAPI 3.1 document, built from this registry and served without a key. */
33
29
  export const OPENAPI_PATH = "/openapi.json";
34
30
  export const API_ENDPOINTS = [
35
31
  { method: "POST", path: "/v1/skills/make_faceless/quote", billed: false, onQuickstart: true, jsonBody: true, cabinet: false, mcp: true },
@@ -74,7 +70,6 @@ export const API_ENDPOINTS = [
74
70
  { method: "POST", path: "/v1/uploads/intents", billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
75
71
  { method: "GET", path: "/v1/uploads/:id", billed: false, onQuickstart: false, jsonBody: false, cabinet: true, mcp: true },
76
72
  { method: "DELETE", path: "/v1/uploads/:id", billed: false, onQuickstart: false, jsonBody: false, cabinet: false, mcp: true },
77
- // Account assets (clipwright#724 F2). The bytes row stands before `:id`: `matchEndpoint` takes the first row that fits.
78
73
  { method: "POST", path: ASSETS_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: true, mcp: true },
79
74
  { method: "POST", path: ASSET_BYTES_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: true, mcp: false },
80
75
  { method: "GET", path: ASSETS_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: true, mcp: true },
@@ -96,60 +91,51 @@ export const API_ENDPOINTS = [
96
91
  { method: "POST", path: "/v1/skills/generate_image/run", billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
97
92
  { method: "POST", path: "/v1/skills/generate_video/quote", billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
98
93
  { method: "POST", path: "/v1/skills/generate_video/run", billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
99
- // Reference analysis (reference-to-video S1c): paid since #927; its own hourly cap stands in the handler too. The Trends page uses it (#917).
100
94
  { method: "POST", path: REFERENCE_ANALYSIS_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: true, mcp: true },
101
95
  { method: "POST", path: REFERENCE_ANALYSES_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: true, mcp: true },
102
96
  { method: "GET", path: REFERENCE_ANALYSIS_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: true, mcp: true },
103
- // Creator profile (#999): paid, with its own hourly cap in the handler; the quote row stands before `:id`.
104
97
  { method: "POST", path: CREATOR_PROFILE_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
105
98
  { method: "POST", path: CREATOR_PROFILES_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
106
99
  { method: "GET", path: CREATOR_PROFILE_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: false, mcp: true },
107
100
  { method: "DELETE", path: CREATOR_PROFILE_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: false, mcp: true },
108
- // Topic search (#921): paid, with its own hourly cap in the handler; the quote row stands before `:id`. The Trends page quotes and starts (#917).
109
101
  { method: "POST", path: TREND_SEARCH_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: true, mcp: true },
110
102
  { method: "POST", path: TREND_SEARCHES_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: true, mcp: true },
111
103
  { method: "GET", path: TREND_SEARCH_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: false, mcp: true },
112
- // Saved niches (#1201): free; the Trends page saves them.
113
104
  { method: "GET", path: TREND_NICHES_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: false, mcp: true },
114
105
  { method: "POST", path: TREND_NICHES_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: true, mcp: true },
115
- // Feedback from an agent (#941): free, with its own hourly cap in the handler.
116
106
  { method: "POST", path: FEEDBACK_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
117
- // Film drafts of the «own agent» mode (#1291 F2): free, behind CLIPWRIGHT_OWN_AGENT; the files row stands before `:id`'s own.
118
107
  { method: "POST", path: FILM_DRAFTS_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
119
108
  { method: "POST", path: FILM_DRAFT_FILES_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
120
109
  { method: "POST", path: FILM_DRAFT_CHECK_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
121
110
  { method: "GET", path: FILM_DRAFT_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: false, mcp: true },
122
- // Its paid runs (#1337): stills, voice and render, each quoted first; one read of what a run delivered.
123
111
  { method: "POST", path: FILM_STILLS_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
124
112
  { method: "POST", path: FILM_STILLS_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
125
113
  { method: "POST", path: FILM_VOICES_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
126
114
  { method: "POST", path: FILM_VOICES_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
127
115
  { method: "POST", path: FILM_RENDERS_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
128
116
  { method: "POST", path: FILM_RENDERS_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
129
- // A hero saved as a mascot (#1356), quoted first like the rest.
130
117
  { method: "POST", path: FILM_HEROES_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
131
118
  { method: "POST", path: FILM_HEROES_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
119
+ { method: "POST", path: FILM_EDITS_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
120
+ { method: "POST", path: FILM_EDITS_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
121
+ { method: "POST", path: TAKE_FRAMES_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
122
+ { method: "POST", path: TAKE_FRAMES_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
123
+ { method: "POST", path: TAKE_CHECKS_QUOTE_PATH, billed: false, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
124
+ { method: "POST", path: TAKE_CHECKS_PATH, billed: true, onQuickstart: false, jsonBody: true, cabinet: false, mcp: true },
132
125
  { method: "GET", path: FILM_RUN_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: false, mcp: true },
133
- // The mode's guide and scene kit, read-only (#1356).
134
126
  { method: "GET", path: FILM_GUIDE_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: false, mcp: true },
135
127
  { method: "GET", path: FILM_KIT_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: false, mcp: true },
136
- // The ad guide for make_ugc (#1539 P3), read-only and free.
137
128
  { method: "GET", path: AD_GUIDE_PATH, billed: false, onQuickstart: false, jsonBody: false, cabinet: false, mcp: true },
138
129
  ];
139
- /** `GET /v1/runs/{id}`: the human notation, with the parameter in curly braces. */
140
130
  export function endpointLabel(endpoint) {
141
131
  return `${endpoint.method} ${endpoint.path.replace(/:(\w+)/g, "{$1}")}`;
142
132
  }
143
- /** The row a request falls on, or `null`. Exact on purpose: the method as HTTP spells it (upper case) and the pathname alone,
144
- * so a path with a query string matches no row; a caller that binds the query (the cabinet assertion) splits it off first. */
145
133
  export function matchEndpoint(method, path) {
146
134
  const segments = path.split("/");
147
135
  return API_ENDPOINTS.find((endpoint) => {
148
136
  const pattern = endpoint.path.split("/");
149
137
  return endpoint.method === method && pattern.length === segments.length &&
150
- // A parameter is one plain identifier: a dot segment or a percent escape would name another path to a router.
151
138
  pattern.every((part, index) => (part.startsWith(":") ? /^[A-Za-z0-9_-]+$/.test(segments[index]) : part === segments[index]));
152
139
  }) ?? null;
153
140
  }
154
141
  export const QUICKSTART_ENDPOINTS = API_ENDPOINTS.filter((endpoint) => endpoint.onQuickstart);
155
- //# sourceMappingURL=endpoints.js.map
package/dist/errors.d.ts CHANGED
@@ -1,7 +1,5 @@
1
1
  import { z } from "zod";
2
2
  import { workflowCommandError } from "./contracts/v1/workflow-execution.js";
3
- /** The generic error envelope. Tolerates extra fields inside `error`: the typed refusals */
4
- /** below extend it, and generic parsing must not break when a code brings numbers. */
5
3
  export declare const apiError: z.ZodObject<{
6
4
  error: z.ZodObject<{
7
5
  code: z.ZodString;
@@ -21,7 +19,6 @@ export declare function workflowCommandErrorBody(args: z.input<typeof workflowCo
21
19
  warnings: string[];
22
20
  };
23
21
  };
24
- /** Fewer credits on the balance than the run weighs: "top up". */
25
22
  export declare const insufficientCreditsError: z.ZodObject<{
26
23
  error: z.ZodObject<{
27
24
  code: z.ZodLiteral<"insufficient_credits">;
@@ -31,7 +28,6 @@ export declare const insufficientCreditsError: z.ZodObject<{
31
28
  }, z.core.$strip>;
32
29
  }, z.core.$strip>;
33
30
  export type InsufficientCreditsError = z.infer<typeof insufficientCreditsError>;
34
- /** The call's reserve is above the `max_credits` it was sent with (#942): nothing was reserved or started. */
35
31
  export declare const maxCreditsExceededError: z.ZodObject<{
36
32
  error: z.ZodObject<{
37
33
  code: z.ZodLiteral<"max_credits_exceeded">;
@@ -45,8 +41,6 @@ export declare function maxCreditsExceededBody(args: {
45
41
  holdCredits: number;
46
42
  maxCredits: number;
47
43
  }): MaxCreditsExceededError;
48
- /** The account carries an unpaid debt. A separate code because an indebted account may */
49
- /** still hold a balance, so "insufficient credits" would be false. Buying credits clears it. */
50
44
  export declare const debtOutstandingError: z.ZodObject<{
51
45
  error: z.ZodObject<{
52
46
  code: z.ZodLiteral<"debt_outstanding">;
@@ -55,8 +49,6 @@ export declare const debtOutstandingError: z.ZodObject<{
55
49
  }, z.core.$strip>;
56
50
  }, z.core.$strip>;
57
51
  export type DebtOutstandingError = z.infer<typeof debtOutstandingError>;
58
- /** Account not admitted to the beta; money does not change that, so it has its own code. */
59
- /** Terminal; the body names no timeline, since a revoked account answers the same way. */
60
52
  export declare const accountNotAdmittedError: z.ZodObject<{
61
53
  error: z.ZodObject<{
62
54
  code: z.ZodLiteral<"account_not_admitted">;
@@ -64,18 +56,14 @@ export declare const accountNotAdmittedError: z.ZodObject<{
64
56
  }, z.core.$strip>;
65
57
  }, z.core.$strip>;
66
58
  export type AccountNotAdmittedError = z.infer<typeof accountNotAdmittedError>;
67
- /** Builds the "not enough credits" body. The wording lives here so every place that */
68
- /** answers 402 explains the refusal the same way. */
69
59
  export declare function insufficientCreditsBody(args: {
70
60
  balanceCredits: number;
71
61
  requiredCredits: number;
72
62
  }): InsufficientCreditsError;
73
- /** One "needs / has / short" sentence for the 402 refusal and the `quote` warning. */
74
63
  export declare function creditsNeededSentence(args: {
75
64
  balanceCredits: number;
76
65
  requiredCredits: number;
77
66
  }): string;
78
- /** `quote` warning: `make_ugc` with the same input will get this refusal. */
79
67
  export declare function insufficientCreditsWarning(args: {
80
68
  balanceCredits: number;
81
69
  requiredCredits: number;
@@ -84,14 +72,10 @@ export declare function debtOutstandingWarning(args: {
84
72
  debtCredits: number;
85
73
  }): string;
86
74
  export declare function accountNotAdmittedWarning(): string;
87
- /** Builds the "not admitted to the beta" body; see the wording rule above. */
88
75
  export declare function accountNotAdmittedBody(): AccountNotAdmittedError;
89
- /** Builds the "outstanding debt" body; see the wording rule above. */
90
76
  export declare function debtOutstandingBody(args: {
91
77
  debtCredits: number;
92
78
  }): DebtOutstandingError;
93
- /** The input holds a field the product rejects. `fields` names them: the agent cannot */
94
- /** fix anything until it knows which one to drop. */
95
79
  export declare const rejectedFieldError: z.ZodObject<{
96
80
  error: z.ZodObject<{
97
81
  code: z.ZodLiteral<"rejected_field">;
@@ -100,13 +84,10 @@ export declare const rejectedFieldError: z.ZodObject<{
100
84
  }, z.core.$strip>;
101
85
  }, z.core.$strip>;
102
86
  export type RejectedFieldError = z.infer<typeof rejectedFieldError>;
103
- /** Builds the "field rejected" body. The reason comes from the disposition registry. */
104
87
  export declare function rejectedFieldBody(hits: readonly {
105
88
  field: string;
106
89
  message: string;
107
90
  }[]): RejectedFieldError;
108
- /** A key outside the contract. The schema strips such keys silently, so a misspelled */
109
- /** `aspectRatio` became the 9:16 default without a trace; hence a refusal. */
110
91
  export declare const unknownFieldError: z.ZodObject<{
111
92
  error: z.ZodObject<{
112
93
  code: z.ZodLiteral<"unknown_field">;
@@ -115,12 +96,10 @@ export declare const unknownFieldError: z.ZodObject<{
115
96
  }, z.core.$strip>;
116
97
  }, z.core.$strip>;
117
98
  export type UnknownFieldError = z.infer<typeof unknownFieldError>;
118
- /** Builds the "unknown key" body: each name, a suggestion and the accepted fields. */
119
99
  export declare function unknownFieldBody(hits: readonly {
120
100
  field: string;
121
101
  suggestion?: string | undefined;
122
102
  }[], acceptedFields: readonly string[]): UnknownFieldError;
123
- /** Text arrived with lost bytes: a replacement character in a string leaf of the input. */
124
103
  export declare const scriptEncodingLostError: z.ZodObject<{
125
104
  error: z.ZodObject<{
126
105
  code: z.ZodLiteral<"script_encoding_lost">;
@@ -129,13 +108,10 @@ export declare const scriptEncodingLostError: z.ZodObject<{
129
108
  }, z.core.$strip>;
130
109
  }, z.core.$strip>;
131
110
  export type ScriptEncodingLostError = z.infer<typeof scriptEncodingLostError>;
132
- /** Builds the "encoding lost" body. Takes BOTH numbers of the predicate, so the caller */
133
- /** does not choose where the character count comes from. */
134
111
  export declare function scriptEncodingLostBody(args: {
135
112
  paths: readonly string[];
136
113
  charCount: number;
137
114
  }): ScriptEncodingLostError;
138
- /** A save of a draft lost to a newer one: `version` is what is stored now, 0 when nothing is. */
139
115
  export declare const editConflictError: z.ZodObject<{
140
116
  error: z.ZodObject<{
141
117
  code: z.ZodLiteral<"edit_conflict">;
@@ -144,12 +120,10 @@ export declare const editConflictError: z.ZodObject<{
144
120
  }, z.core.$strip>;
145
121
  }, z.core.$strip>;
146
122
  export type EditConflictError = z.infer<typeof editConflictError>;
147
- /** Builds the "the draft moved on" body. Nothing was stored. */
148
123
  export declare function editConflictBody(args: {
149
124
  baseVersion: number;
150
125
  version: number;
151
126
  }): EditConflictError;
152
- /** The run has no draft to read or to save: `state` and `reason` are the ones its shots state. */
153
127
  export declare const runNotEditableError: z.ZodObject<{
154
128
  error: z.ZodObject<{
155
129
  code: z.ZodLiteral<"run_not_editable">;
@@ -159,13 +133,11 @@ export declare const runNotEditableError: z.ZodObject<{
159
133
  }, z.core.$strip>;
160
134
  }, z.core.$strip>;
161
135
  export type RunNotEditableError = z.infer<typeof runNotEditableError>;
162
- /** Builds the "this run cannot be edited" body. Nothing was stored. */
163
136
  export declare function runNotEditableBody(args: {
164
137
  runId: string;
165
138
  state: string;
166
139
  reason: string | null;
167
140
  }): RunNotEditableError;
168
- /** Paid edits are closed: the flag is off, or a ceiling is not set yet. */
169
141
  export declare const editingDisabledError: z.ZodObject<{
170
142
  error: z.ZodObject<{
171
143
  code: z.ZodLiteral<"editing_disabled">;
@@ -180,7 +152,6 @@ export type EditingDisabledError = z.infer<typeof editingDisabledError>;
180
152
  export declare function editingDisabledBody(args: {
181
153
  reason: EditingDisabledError["error"]["reason"];
182
154
  }): EditingDisabledError;
183
- /** A paid edit has no price: each seam still unset is named, and an empty list is a revision total of zero no rule allows. */
184
155
  export declare const editingNotPricedError: z.ZodObject<{
185
156
  error: z.ZodObject<{
186
157
  code: z.ZodLiteral<"editing_not_priced">;
@@ -197,7 +168,6 @@ export type EditingNotPricedError = z.infer<typeof editingNotPricedError>;
197
168
  export declare function editingNotPricedBody(args: {
198
169
  seams: EditingNotPricedError["error"]["seams"];
199
170
  }): EditingNotPricedError;
200
- /** The document breaks the rules of the run it edits; `issues` are the validator's, in its order. */
201
171
  export declare const editInvalidError: z.ZodObject<{
202
172
  error: z.ZodObject<{
203
173
  code: z.ZodLiteral<"edit_invalid">;
@@ -243,7 +213,6 @@ export type EditInvalidError = z.infer<typeof editInvalidError>;
243
213
  export declare function editInvalidBody(args: {
244
214
  issues: EditInvalidError["error"]["issues"];
245
215
  }): EditInvalidError;
246
- /** A root has as many revisions (or candidates) running, or failed and unfinished, as it may have; `run_ids` are the ones counted. */
247
216
  export declare const editCeilingReachedError: z.ZodObject<{
248
217
  error: z.ZodObject<{
249
218
  code: z.ZodLiteral<"edit_ceiling_reached">;
@@ -261,22 +230,11 @@ export declare const editCeilingReachedError: z.ZodObject<{
261
230
  }, z.core.$strip>;
262
231
  export type EditCeilingReachedError = z.infer<typeof editCeilingReachedError>;
263
232
  export declare function editCeilingReachedBody(args: Omit<EditCeilingReachedError["error"], "code" | "message">, counting?: "revision" | "candidate"): EditCeilingReachedError;
264
- /** Keeps the tool description's promise ("refused before any charge"): an unusable */
265
- /** source is refused, not estimated. */
266
233
  export declare function unusableSourceMessage(errorClass: string, detail: string): string;
267
- /** Says both "fix the input" and "a retry will not help": on a 500 agents re-sent bytes */
268
- /** that would never parse. */
269
234
  export declare const MALFORMED_BODY_MESSAGE: string;
270
- /** Codes with a bare envelope, in one registry: the published list of error codes is */
271
- /** declared exhaustive. */
272
235
  declare const BARE_ERROR_CODES: readonly ["analysis_enqueue_failed", "aspect_conflict", "actor_unavailable", "actor_format_unavailable", "actor_storage_unavailable", "actor_generation_disabled", "actor_in_use", "asset_cap_exceeded", "asset_ingest_cap_exceeded", "asset_not_found", "asset_not_ready", "assets_disabled", "creator_profile_limited", "creator_profile_not_found", "creator_url_unsupported", "deletion_held", "editing_window_not_set", "explainer_busy", "feedback_limited", "film_draft_limited", "film_draft_not_found", "film_draft_stale", "film_run_not_found", "film_voice_not_ready", "generations_disabled", "generations_marking_pending", "idempotency_key_required", "idempotency_key_reused", "ingest_enqueue_failed", "insufficient_scope", "internal_error", "invalid_image", "invalid_request", "malformed_body", "no_changes", "not_found", "own_agent_disabled", "own_agent_marking_pending", "paid_render_disabled", "proposal_expired", "proposal_not_found", "proposal_not_ready", "proposal_stale", "payload_too_large", "reference_analysis_disabled", "reference_analysis_limited", "reference_analysis_not_found", "reference_not_analyzable", "reference_not_usable", "reference_url_unsupported", "revision_needs_generated_unit", "rights_not_confirmed", "run_media_in_use", "run_not_finished", "run_not_found", "source_aspect_mismatch", "source_not_usable", "trend_page_unavailable", "trend_search_limited", "trend_search_not_found", "trends_unavailable", "unauthorized", "unsupported_combination", "unsupported_media_type", "unusable_source", "upload_cap_exceeded", "upload_digest_mismatch", "upload_expired", "upload_in_use", "upload_not_finished", "upload_size_mismatch", "upstream_error", "url_fetch_busy", "url_fetch_failed", "url_fetch_rate_limited", "url_fetch_refused", "url_import_disabled"];
273
- /** A refusal code whose body carries only `code` and `message`. */
274
236
  export type BareApiErrorCode = (typeof BARE_ERROR_CODES)[number];
275
- /** EVERY code the API can return: bare plus typed. Typed values come from their schemas, */
276
- /** so a rename reaches here on its own. */
277
237
  export declare const API_ERROR_CODES: readonly string[];
278
- /** A bare refusal body. The only path to one: a code outside the registry does not */
279
- /** compile, and an envelope built around this function fails the envelope guard test. */
280
238
  export declare function apiErrorBody(args: {
281
239
  code: BareApiErrorCode;
282
240
  message: string;