@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,23 +1,17 @@
1
1
  import { z } from "zod";
2
2
  import { type ActorQuality, type ActorQualityAccepted } from "./actor-qualities.js";
3
3
  import { type AspectRatio } from "./skills.js";
4
- /** Personal actors of an account. */
5
4
  export { ACTOR_DEFAULT_QUALITY, ACTOR_QUALITIES_ACCEPTED, ACTOR_QUALITIES_KNOWN } from "./actor-qualities.js";
6
5
  export type { ActorQuality, ActorQualityAccepted } from "./actor-qualities.js";
7
6
  export { ACTOR_AGE_FLOOR, ACTOR_ASPECTS_KNOWN, ACTOR_DESCRIPTION_MAX_CHARS, ACTOR_GENDERS_ACCEPTED, ACTOR_GENDERS_KNOWN, ACTOR_HOLDING_DESCRIPTION_MAX_CHARS, ACTOR_HOLDING_MAX_ITEMS, ACTOR_MAX_AGE, ACTOR_MIN_AGE, ACTOR_NAME_MAX_CHARS, ACTOR_SETTING_MAX_CHARS, } from "./actor-bounds.js";
8
7
  export type { ActorAspectKnown, ActorGender } from "./actor-bounds.js";
9
8
  export declare const PERSONAL_ACTOR_ID_PREFIX = "actor_u_";
10
- /** `actor_u_` plus 26 base32 characters (RFC 4648, lowercase): 128 random bits. */
11
9
  export declare const personalActorId: z.ZodString;
12
10
  export declare const ACTOR_SCOPES: readonly ["clipwright", "account"];
13
11
  export type ActorScope = (typeof ACTOR_SCOPES)[number];
14
- /** Whose actor, by id shape. The Clipwright catalog never uses the `actor_u_` prefix; a test checks it. */
15
12
  export declare function actorIdScope(actorId: string): ActorScope;
16
- /** Randomness comes from outside: core does not depend on the runtime's crypto. */
17
13
  export declare function newPersonalActorId(random: Uint8Array): string;
18
- /** The portrait is always 9:16; the other formats are edited from it. */
19
14
  export declare const ACTOR_PORTRAIT_ASPECT: "9:16";
20
- /** Compact generation sizes, measured. */
21
15
  export declare const ACTOR_SIZE_SET: {
22
16
  readonly "9:16": {
23
17
  readonly width: 1024;
@@ -32,33 +26,24 @@ export declare const ACTOR_SIZE_SET: {
32
26
  readonly height: 1024;
33
27
  };
34
28
  };
35
- /** An imported portrait's shape: within 2% of 9:16 is a match (rule 4); further off is refused, never cropped. */
36
29
  export declare function isActorPortraitShape(width: number, height: number): boolean;
37
- /** The smallest face a portrait may show, as a share of its height. */
38
30
  export declare const ACTOR_PORTRAIT_MIN_FACE_HEIGHT = 0.055;
39
- /** A portrait's one face, in shares of the image: inside the frame and within the size bounds; null when it frames. */
40
31
  export declare function actorPortraitFramingRefusal(box: {
41
32
  left: number;
42
33
  top: number;
43
34
  width: number;
44
35
  height: number;
45
36
  }): string | null;
46
- /** A portrait whose face is below this share of its height is wider than chest-up. */
47
37
  export declare const ACTOR_WIDE_PORTRAIT_FACE_HEIGHT = 0.24;
48
- /** Below this share of the height a portrait's face makes it full height, head to feet (#1175 S7). */
49
38
  export declare const ACTOR_FULL_PORTRAIT_FACE_HEIGHT = 0.12;
50
- /** A portrait with a smaller face than a chest-up one is a wide shot (waist-up) or a full one (head to feet): make_ugc renders that view. */
51
39
  export declare const actorPortraitFraming: (box: {
52
40
  height: number;
53
41
  }) => "close" | "wide" | "full";
54
42
  export declare const ACTOR_VIEW_FRAMINGS: readonly ["wide", "full"];
55
- /** What create_actor from words may ask for: close keeps the measured batch-001 portrait (#1175 S7). */
56
43
  export declare const ACTOR_PORTRAIT_FRAMINGS: readonly ["close", "wide", "full"];
57
44
  export declare const ACTOR_HANDS: readonly ["left", "right"];
58
- /** The fields of a view derived from an actor (#898). */
59
45
  export declare const ACTOR_VIEW_FIELDS: readonly ["from_actor_id", "framing", "holding", "setting"];
60
46
  type AcceptedQualities = readonly [ActorQuality, ...ActorQuality[]];
61
- /** The input for a given set of accepted qualities. */
62
47
  export declare function createActorInputWith<const Q extends AcceptedQualities>(accepted: Q, defaultQuality: Q[number]): z.ZodObject<{
63
48
  description: z.ZodOptional<z.ZodString>;
64
49
  gender: z.ZodOptional<z.ZodEnum<{
@@ -141,10 +126,7 @@ export declare const createActorInput: z.ZodObject<{
141
126
  }>>;
142
127
  }, z.core.$strict>;
143
128
  export type CreateActorInput = z.infer<typeof createActorInput>;
144
- /** The input BEFORE defaults, as the caller writes it: `quality` and `aspect_ratios` are optional, */
145
- /** as with `MakeUgcInputArgs`, so callers are not forced to fill defaulted fields. */
146
129
  export type CreateActorInputArgs = z.input<typeof createActorInput>;
147
- /** Flat shape for MCP: the tool publishes the same schema the server checks. */
148
130
  export declare const createActorInputShape: {
149
131
  description: z.ZodOptional<z.ZodString>;
150
132
  gender: z.ZodOptional<z.ZodEnum<{
@@ -187,19 +169,13 @@ export declare const createActorInputShape: {
187
169
  medium: "medium";
188
170
  }>>;
189
171
  };
190
- /** An imported portrait (#1095) is not generated: its snapshot prices the portrait at 0. */
191
172
  export declare const actorUnitCredits: z.ZodObject<{
192
173
  portrait: z.ZodNumber;
193
174
  variant: z.ZodNumber;
194
175
  }, z.core.$strip>;
195
- /** The words an imported actor (#1095) stores and `list_actors` shows: the look comes from the image, not from text. */
196
176
  export declare const ACTOR_PORTRAIT_IMPORT_DESCRIPTION = "An actor from your own portrait image";
197
- /** Unit prices of a personal actor. */
198
- /** Admission copies them into the run's snapshot and settlement reads the snapshot, so a change here leaves old runs alone. */
199
177
  export declare const ACTOR_UNIT_CREDITS: Readonly<Record<ActorQualityAccepted, z.infer<typeof actorUnitCredits>>>;
200
- /** A view of an existing actor (`from_actor_id`) is an edit of its portrait and keeps the edit's price (#1101). */
201
178
  export declare const ACTOR_VIEW_PORTRAIT_CREDITS: Readonly<Record<ActorQualityAccepted, number>>;
202
- /** Unit prices and requested formats fixed at admission; settlement uses these, not the price table. */
203
179
  export declare const actorPricingSnapshot: z.ZodObject<{
204
180
  quality: z.ZodEnum<{
205
181
  high: "high";
@@ -216,7 +192,6 @@ export declare const actorPricingSnapshot: z.ZodObject<{
216
192
  }>>;
217
193
  }, z.core.$strip>;
218
194
  export type ActorPricingSnapshot = z.infer<typeof actorPricingSnapshot>;
219
- /** The snapshot admission creates: accepted formats, portrait required, no repeats. */
220
195
  export declare const admittedActorPricingSnapshot: z.ZodObject<{
221
196
  quality: z.ZodEnum<{
222
197
  high: "high";
@@ -232,7 +207,6 @@ export declare const admittedActorPricingSnapshot: z.ZodObject<{
232
207
  "9:16": "9:16";
233
208
  }>>;
234
209
  }, z.core.$strip>;
235
- /** The source image admission resolved for `from_actor_id`: the run reads these bytes, not a payload. */
236
210
  export declare const storedActorSource: z.ZodObject<{
237
211
  actor_id: z.ZodString;
238
212
  scope: z.ZodEnum<{
@@ -250,7 +224,6 @@ export declare const storedActorSource: z.ZodObject<{
250
224
  }>;
251
225
  }, z.core.$strip>;
252
226
  export type StoredActorSource = z.infer<typeof storedActorSource>;
253
- /** A held object as admitted: a `reference` carries the asset row admission found. */
254
227
  export declare const storedHoldingItem: z.ZodObject<{
255
228
  description: z.ZodString;
256
229
  hand: z.ZodOptional<z.ZodEnum<{
@@ -270,7 +243,6 @@ export declare const storedHoldingItem: z.ZodObject<{
270
243
  }, z.core.$strip>>;
271
244
  }, z.core.$strip>;
272
245
  export type StoredHoldingItem = z.infer<typeof storedHoldingItem>;
273
- /** The style reference as admitted (#975): the image asset the run reads. */
274
246
  export declare const storedStyleReference: z.ZodObject<{
275
247
  asset_id: z.ZodString;
276
248
  key: z.ZodString;
@@ -280,8 +252,6 @@ export declare const storedStyleReference: z.ZodObject<{
280
252
  }>;
281
253
  }, z.core.$strip>;
282
254
  export type StoredStyleReference = z.infer<typeof storedStyleReference>;
283
- /** A stored run input. Quality and formats must match the snapshot, or generation would diverge */
284
- /** from the charge, so such a run does not read (`run_input_unreadable`, zero credits). */
285
255
  export declare const storedCreateActorInput: z.ZodObject<{
286
256
  description: z.ZodString;
287
257
  gender: z.ZodEnum<{
@@ -396,8 +366,6 @@ export declare const createActorQuote: z.ZodObject<{
396
366
  contract_version: z.ZodString;
397
367
  }, z.core.$strip>;
398
368
  export type CreateActorQuote = z.infer<typeof createActorQuote>;
399
- /** The actor a run created, as read. Deleting an actor erases the name and unpublishes formats, */
400
- /** yet `get_run` on an old run must answer, so an empty name and formats read. */
401
369
  export declare const createdActor: z.ZodObject<{
402
370
  actor_id: z.ZodString;
403
371
  name: z.ZodString;
@@ -418,7 +386,6 @@ export declare const createdActor: z.ZodObject<{
418
386
  }>>;
419
387
  }, z.core.$strip>;
420
388
  export type CreatedActor = z.infer<typeof createdActor>;
421
- /** The result a successful run writes: a name and published formats, the 9:16 portrait among them. */
422
389
  export declare const producedCreatedActor: z.ZodObject<{
423
390
  actor_id: z.ZodString;
424
391
  gender: z.ZodEnum<{
@@ -438,7 +405,6 @@ export declare const producedCreatedActor: z.ZodObject<{
438
405
  "9:16": "9:16";
439
406
  }>>;
440
407
  }, z.core.$strip>;
441
- /** Decision for a `create_actor` input field; kinds mean what they do in the `make_ugc` registry. */
442
408
  export type CreateActorDisposition = {
443
409
  kind: "implemented";
444
410
  provenBy: "egress" | "listing" | "admission";
@@ -506,16 +472,12 @@ export declare const CREATE_ACTOR_FIELD_DISPOSITIONS: {
506
472
  };
507
473
  };
508
474
  export declare const ACTOR_VIEWS_DISABLED_MESSAGE = "is not available right now: deriving an actor from an actor is off; create an actor from a description instead";
509
- /** The registry with `CLIPWRIGHT_ACTOR_VIEWS` applied: switched off, the view fields are refused, not ignored. */
510
475
  export declare function createActorDispositions(viewsEnabled: boolean): Record<CreateActorField, CreateActorDisposition>;
511
- /** Present fields whose disposition is `rejected`, in registry order, for `rejectedFieldBody`. */
512
476
  export declare function createActorRejectedFields(input: Readonly<Record<string, unknown>>, dispositions: Readonly<Record<string, CreateActorDisposition>>): {
513
477
  field: string;
514
478
  message: string;
515
479
  }[];
516
- /** Admission warnings come only from the registry; written to `runs.warnings`, not recomputed on read. */
517
480
  export declare function createActorAdmissionWarnings(input: Readonly<Record<string, unknown>>, dispositions?: Readonly<Record<string, CreateActorDisposition>>): string[];
518
- /** `create_actor` run failure codes, each charging zero credits. The `error` column reads `code: text`. */
519
481
  export declare const CREATE_ACTOR_RUN_ERRORS: {
520
482
  readonly actor_portrait_unusable: "the generated portrait did not show exactly one face; no actor was created and nothing was charged";
521
483
  readonly actor_prompt_refused: string;
@@ -536,14 +498,9 @@ export declare const CREATE_ACTOR_RUN_ERRORS: {
536
498
  export type CreateActorRunErrorCode = keyof typeof CREATE_ACTOR_RUN_ERRORS;
537
499
  export declare const CREATE_ACTOR_RUN_ERROR_CODES: CreateActorRunErrorCode[];
538
500
  export declare function createActorRunError(code: CreateActorRunErrorCode): string;
539
- /** The `runs.error` format for a code with a detail: alerts read the code up to the colon. */
540
501
  export declare function createActorRunErrorWith(code: CreateActorRunErrorCode, detail: string): string;
541
502
  export declare const ACTOR_VARIANT_ASPECTS: ("16:9" | "1:1")[];
542
- /** A variant not created for a reason of ours: the successful run carries this line in `warnings`. */
543
503
  export declare function actorVariantWarning(aspect: AspectRatio, reason: string): string;
544
- /** A face check that failed at the variant stage: the run SUCCEEDS, with no failure code. One */
545
- /** definition for the writer (task) and the counter (alert), compared as whole lines. */
546
504
  export declare const ACTOR_VARIANT_FACE_CHECK_REASON = "the face check was unavailable";
547
505
  export declare const ACTOR_VARIANT_FACE_CHECK_WARNINGS: readonly string[];
548
- /** What `create_actor` does: one text for the public skill catalog and clients. */
549
506
  export declare const CREATE_ACTOR_DESCRIPTION: string;
@@ -6,20 +6,16 @@ import { assetId } from "./asset-identity.js";
6
6
  import { maxCreditsField } from "./max-credits.js";
7
7
  import { presenterPlace } from "./scene-place.js";
8
8
  import { actorId, ASPECT_RATIOS } from "./skills.js";
9
- /** Personal actors of an account. */
10
9
  export { ACTOR_DEFAULT_QUALITY, ACTOR_QUALITIES_ACCEPTED, ACTOR_QUALITIES_KNOWN } from "./actor-qualities.js";
11
10
  export { ACTOR_AGE_FLOOR, ACTOR_ASPECTS_KNOWN, ACTOR_DESCRIPTION_MAX_CHARS, ACTOR_GENDERS_ACCEPTED, ACTOR_GENDERS_KNOWN, ACTOR_HOLDING_DESCRIPTION_MAX_CHARS, ACTOR_HOLDING_MAX_ITEMS, ACTOR_MAX_AGE, ACTOR_MIN_AGE, ACTOR_NAME_MAX_CHARS, ACTOR_SETTING_MAX_CHARS, } from "./actor-bounds.js";
12
11
  export const PERSONAL_ACTOR_ID_PREFIX = "actor_u_";
13
12
  const PERSONAL_ACTOR_ID_BYTES = 16;
14
13
  const BASE32_ALPHABET = "abcdefghijklmnopqrstuvwxyz234567";
15
- /** `actor_u_` plus 26 base32 characters (RFC 4648, lowercase): 128 random bits. */
16
14
  export const personalActorId = z.string().regex(/^actor_u_[a-z2-7]{26}$/);
17
15
  export const ACTOR_SCOPES = ["clipwright", "account"];
18
- /** Whose actor, by id shape. The Clipwright catalog never uses the `actor_u_` prefix; a test checks it. */
19
16
  export function actorIdScope(actorId) {
20
17
  return personalActorId.safeParse(actorId).success ? "account" : "clipwright";
21
18
  }
22
- /** Randomness comes from outside: core does not depend on the runtime's crypto. */
23
19
  export function newPersonalActorId(random) {
24
20
  if (random.length !== PERSONAL_ACTOR_ID_BYTES) {
25
21
  throw new Error(`personal actor id needs ${PERSONAL_ACTOR_ID_BYTES} random bytes, got ${random.length}`);
@@ -40,21 +36,16 @@ export function newPersonalActorId(random) {
40
36
  encoded += BASE32_ALPHABET.charAt((buffer << (5 - bits)) & 31);
41
37
  return PERSONAL_ACTOR_ID_PREFIX + encoded;
42
38
  }
43
- /** The portrait is always 9:16; the other formats are edited from it. */
44
39
  export const ACTOR_PORTRAIT_ASPECT = "9:16";
45
- /** Compact generation sizes, measured. */
46
40
  export const ACTOR_SIZE_SET = {
47
41
  "9:16": { width: 1024, height: 1824 },
48
42
  "1:1": { width: 1024, height: 1024 },
49
43
  "16:9": { width: 1824, height: 1024 },
50
44
  };
51
- /** An imported portrait's shape: within 2% of 9:16 is a match (rule 4); further off is refused, never cropped. */
52
45
  export function isActorPortraitShape(width, height) {
53
46
  return aspectDistance(ASPECT_RATIO_VALUES[ACTOR_PORTRAIT_ASPECT], width / height) <= ASPECT_MATCH_THRESHOLD;
54
47
  }
55
- /** The smallest face a portrait may show, as a share of its height. */
56
48
  export const ACTOR_PORTRAIT_MIN_FACE_HEIGHT = 0.055;
57
- /** A portrait's one face, in shares of the image: inside the frame and within the size bounds; null when it frames. */
58
49
  export function actorPortraitFramingRefusal(box) {
59
50
  if (box.left < 0 || box.top < 0 || box.left + box.width > 1 || box.top + box.height > 1)
60
51
  return "the face is cut off by the frame";
@@ -65,19 +56,14 @@ export function actorPortraitFramingRefusal(box) {
65
56
  return `the face is too large: ${box.height.toFixed(2)} of the height, at most ${max}`;
66
57
  return null;
67
58
  }
68
- /** A portrait whose face is below this share of its height is wider than chest-up. */
69
59
  export const ACTOR_WIDE_PORTRAIT_FACE_HEIGHT = 0.24;
70
- /** Below this share of the height a portrait's face makes it full height, head to feet (#1175 S7). */
71
60
  export const ACTOR_FULL_PORTRAIT_FACE_HEIGHT = 0.12;
72
- /** A portrait with a smaller face than a chest-up one is a wide shot (waist-up) or a full one (head to feet): make_ugc renders that view. */
73
61
  export const actorPortraitFraming = (box) => box.height < ACTOR_FULL_PORTRAIT_FACE_HEIGHT ? "full" : box.height < ACTOR_WIDE_PORTRAIT_FACE_HEIGHT ? "wide" : "close";
74
62
  const includesPortrait = (ratios) => ratios.includes(ACTOR_PORTRAIT_ASPECT);
75
63
  const hasNoRepeats = (ratios) => new Set(ratios).size === ratios.length;
76
64
  export const ACTOR_VIEW_FRAMINGS = ["wide", "full"];
77
- /** What create_actor from words may ask for: close keeps the measured batch-001 portrait (#1175 S7). */
78
65
  export const ACTOR_PORTRAIT_FRAMINGS = ["close", ...ACTOR_VIEW_FRAMINGS];
79
66
  export const ACTOR_HANDS = ["left", "right"];
80
- /** One held object: words, and optionally a picture of the object itself. */
81
67
  const holdingItem = z.strictObject({
82
68
  description: z.string().min(1).max(ACTOR_HOLDING_DESCRIPTION_MAX_CHARS).describe("The object, e.g. \"a white coffee mug\"."),
83
69
  reference: z
@@ -86,8 +72,6 @@ const holdingItem = z.strictObject({
86
72
  .describe("A PNG or JPEG picture of the object: an image asset of this account (upload, URL import or a found picture, rights_confirmed)."),
87
73
  hand: z.enum(ACTOR_HANDS).optional().describe("left | right; omitted lets the edit choose."),
88
74
  });
89
- /** Strict input fields without quality. Bounds come from actor-bounds.ts; read schemas do not use them. */
90
- /** Words, gender and age are required without `from_actor_id`; with it gender and age are refused and words describe the view (`checkActorSource`). */
91
75
  const actorFieldShape = {
92
76
  description: z
93
77
  .string()
@@ -159,19 +143,14 @@ const actorFieldShape = {
159
143
  "With gender and approximate_age; not with description, style_reference or from_actor_id."),
160
144
  max_credits: maxCreditsField,
161
145
  };
162
- /** The fields of a view derived from an actor (#898). */
163
146
  export const ACTOR_VIEW_FIELDS = ["from_actor_id", "framing", "holding", "setting"];
164
- /** What a derived view may change (#1192): words of look, clothing and pose, and a style reference's scene, beside framing, holding and setting. */
165
147
  const ACTOR_VIEW_CHANGES = ["framing", "holding", "setting", "description", "style_reference"];
166
148
  const ACTOR_SOURCE_FIELDS = ["description", "gender", "approximate_age"];
167
- /** What the source actor alone gives a derived view: who the person is. */
168
149
  const ACTOR_IDENTITY_FIELDS = ["gender", "approximate_age"];
169
150
  const PORTRAIT_REQUIRES = {
170
151
  gender: "gender is required with portrait: it fixes the actor's gender and default voice",
171
152
  approximate_age: "approximate_age is required with portrait: the actor's approximate age in years",
172
153
  };
173
- /** A described actor needs its words, a derived one takes them from the source, an imported one from its image (#1095): */
174
- /** none is silently dropped (rule 3). */
175
154
  function checkActorSource(input, ctx) {
176
155
  const refuse = (field, message) => ctx.addIssue({ code: z.ZodIssueCode.custom, path: [field], message });
177
156
  if (input.from_actor_id === undefined && input.portrait !== undefined) {
@@ -185,7 +164,6 @@ function checkActorSource(input, ctx) {
185
164
  if (input[field] === undefined)
186
165
  refuse(field, message);
187
166
  }
188
- // The imported image is the portrait as it is: nothing redraws its room or puts an object in its hands.
189
167
  for (const field of ["holding", "setting"]) {
190
168
  if (input[field] !== undefined) {
191
169
  refuse(field, `${field} does not combine with portrait: the image is used as it is; create the actor, then derive a view of it with from_actor_id`);
@@ -199,7 +177,6 @@ function checkActorSource(input, ctx) {
199
177
  }
200
178
  }
201
179
  }
202
- // From words the shot size frames the portrait (#1175 S7); an image source sets its own. Beside from_actor_id a portrait is refused itself.
203
180
  const shotFrom = input.portrait !== undefined && input.from_actor_id === undefined ? "portrait"
204
181
  : input.style_reference !== undefined ? "style_reference" : undefined;
205
182
  if (input.framing !== undefined && shotFrom !== undefined) {
@@ -232,7 +209,6 @@ function unknownFieldsRefusal(keys) {
232
209
  return `unknown field(s) ${keys.join(", ")}: create_actor accepts description, gender, approximate_age, name, quality, ` +
233
210
  "aspect_ratios, from_actor_id, framing, holding, setting, style_reference, portrait, max_credits";
234
211
  }
235
- /** The input for a given set of accepted qualities. */
236
212
  export function createActorInputWith(accepted, defaultQuality) {
237
213
  return z.strictObject({
238
214
  ...actorFieldShape,
@@ -248,33 +224,23 @@ export function createActorInputWith(accepted, defaultQuality) {
248
224
  }).superRefine(checkActorSource);
249
225
  }
250
226
  export const createActorInput = createActorInputWith(ACTOR_QUALITIES_ACCEPTED, ACTOR_DEFAULT_QUALITY);
251
- /** Flat shape for MCP: the tool publishes the same schema the server checks. */
252
227
  export const createActorInputShape = createActorInput.shape;
253
- /** An imported portrait (#1095) is not generated: its snapshot prices the portrait at 0. */
254
228
  export const actorUnitCredits = z.object({
255
229
  portrait: z.number().int().nonnegative(),
256
230
  variant: z.number().int().positive(),
257
231
  });
258
- /** The words an imported actor (#1095) stores and `list_actors` shows: the look comes from the image, not from text. */
259
232
  export const ACTOR_PORTRAIT_IMPORT_DESCRIPTION = "An actor from your own portrait image";
260
- /** Unit prices of a personal actor. */
261
- /** Admission copies them into the run's snapshot and settlement reads the snapshot, so a change here leaves old runs alone. */
262
233
  export const ACTOR_UNIT_CREDITS = {
263
234
  medium: { portrait: 4, variant: 8 },
264
235
  high: { portrait: 45, variant: 18 },
265
236
  };
266
- /** A view of an existing actor (`from_actor_id`) is an edit of its portrait and keeps the edit's price (#1101). */
267
237
  export const ACTOR_VIEW_PORTRAIT_CREDITS = { medium: 4, high: 12 };
268
- /** Read schemas depend only on what could have been written: the known sets and the DB check. */
269
- /** Intake bounds stay out, so narrowing intake never breaks old runs. */
270
238
  const storedAspects = z.array(z.enum(ACTOR_ASPECTS_KNOWN)).min(1);
271
- /** Unit prices and requested formats fixed at admission; settlement uses these, not the price table. */
272
239
  export const actorPricingSnapshot = z.object({
273
240
  quality: z.enum(ACTOR_QUALITIES_KNOWN),
274
241
  unit_credits: actorUnitCredits,
275
242
  requested_aspects: storedAspects,
276
243
  });
277
- /** The snapshot admission creates: accepted formats, portrait required, no repeats. */
278
244
  export const admittedActorPricingSnapshot = actorPricingSnapshot.extend({
279
245
  requested_aspects: z
280
246
  .array(z.enum(ASPECT_RATIOS))
@@ -288,7 +254,6 @@ function sameFormats(left, right) {
288
254
  return a.size === b.size && [...a].every((ratio) => b.has(ratio));
289
255
  }
290
256
  const sha256Hex = z.string().regex(/^[a-f0-9]{64}$/);
291
- /** The source image admission resolved for `from_actor_id`: the run reads these bytes, not a payload. */
292
257
  export const storedActorSource = z.object({
293
258
  actor_id: z.string().min(1),
294
259
  scope: z.enum(ACTOR_SCOPES),
@@ -298,21 +263,17 @@ export const storedActorSource = z.object({
298
263
  height: z.number().int().positive(),
299
264
  framing: z.enum(ACTOR_PORTRAIT_FRAMINGS),
300
265
  });
301
- /** A held object as admitted: a `reference` carries the asset row admission found. */
302
266
  export const storedHoldingItem = z.object({
303
267
  description: z.string().min(1),
304
268
  hand: z.enum(ACTOR_HANDS).optional(),
305
269
  reference: z.object({ asset_id: z.string().min(1) }).optional(),
306
270
  picture: z.object({ asset_id: z.string().min(1), key: z.string().min(1), mime: z.enum(["image/png", "image/jpeg"]) }).optional(),
307
271
  });
308
- /** The style reference as admitted (#975): the image asset the run reads. */
309
272
  export const storedStyleReference = z.object({
310
273
  asset_id: z.string().min(1),
311
274
  key: z.string().min(1),
312
275
  mime: z.enum(["image/png", "image/jpeg"]),
313
276
  });
314
- /** A stored run input. Quality and formats must match the snapshot, or generation would diverge */
315
- /** from the charge, so such a run does not read (`run_input_unreadable`, zero credits). */
316
277
  export const storedCreateActorInput = z
317
278
  .object({
318
279
  description: z.string().min(1),
@@ -327,10 +288,8 @@ export const storedCreateActorInput = z
327
288
  framing: z.enum(ACTOR_PORTRAIT_FRAMINGS).optional(),
328
289
  holding: z.array(storedHoldingItem).optional(),
329
290
  setting: z.string().min(1).optional(),
330
- /** #1192: a derived view's own words of look, clothing and pose; `description` stays the source's. */
331
291
  look: z.string().min(1).optional(),
332
292
  style_reference: storedStyleReference.optional(),
333
- /** #1095: the image asset admission found, the same shape as a style reference. */
334
293
  portrait: storedStyleReference.optional(),
335
294
  })
336
295
  .refine((input) => input.look === undefined || input.source_actor !== undefined, {
@@ -341,7 +300,6 @@ export const storedCreateActorInput = z
341
300
  error: "a stored portrait comes with another source",
342
301
  path: ["portrait"],
343
302
  })
344
- // One way only: an input whose portrait was erased still reads; a free portrait unit never generates one.
345
303
  .refine((input) => input.portrait === undefined || input.pricing_snapshot.unit_credits.portrait === 0, {
346
304
  error: "a stored portrait is priced above zero",
347
305
  path: ["portrait"],
@@ -371,8 +329,6 @@ export const createActorQuote = z.object({
371
329
  warnings: z.array(z.string()).default([]),
372
330
  contract_version: z.string(),
373
331
  });
374
- /** The actor a run created, as read. Deleting an actor erases the name and unpublishes formats, */
375
- /** yet `get_run` on an old run must answer, so an empty name and formats read. */
376
332
  export const createdActor = z.object({
377
333
  actor_id: personalActorId,
378
334
  name: z.string(),
@@ -382,7 +338,6 @@ export const createdActor = z.object({
382
338
  quality: z.enum(ACTOR_QUALITIES_KNOWN),
383
339
  aspect_ratios: z.array(z.enum(ACTOR_ASPECTS_KNOWN)),
384
340
  });
385
- /** The result a successful run writes: a name and published formats, the 9:16 portrait among them. */
386
341
  export const producedCreatedActor = createdActor.extend({
387
342
  name: z.string().min(1),
388
343
  aspect_ratios: storedAspects.refine(includesPortrait, {
@@ -405,22 +360,18 @@ export const CREATE_ACTOR_FIELD_DISPOSITIONS = {
405
360
  max_credits: { kind: "implemented", provenBy: "admission" },
406
361
  };
407
362
  export const ACTOR_VIEWS_DISABLED_MESSAGE = "is not available right now: deriving an actor from an actor is off; create an actor from a description instead";
408
- /** The registry with `CLIPWRIGHT_ACTOR_VIEWS` applied: switched off, the view fields are refused, not ignored. */
409
363
  export function createActorDispositions(viewsEnabled) {
410
364
  if (viewsEnabled)
411
365
  return CREATE_ACTOR_FIELD_DISPOSITIONS;
412
366
  const rejected = (field) => ({ kind: "rejected", message: `${field} ${ACTOR_VIEWS_DISABLED_MESSAGE}` });
413
367
  return { ...CREATE_ACTOR_FIELD_DISPOSITIONS, ...Object.fromEntries(ACTOR_VIEW_FIELDS.map((field) => [field, rejected(field)])) };
414
368
  }
415
- /** Present fields whose disposition is `rejected`, in registry order, for `rejectedFieldBody`. */
416
369
  export function createActorRejectedFields(input, dispositions) {
417
370
  return Object.entries(dispositions).flatMap(([field, disposition]) => disposition.kind === "rejected" && input[field] !== undefined ? [{ field, message: disposition.message }] : []);
418
371
  }
419
- /** Admission warnings come only from the registry; written to `runs.warnings`, not recomputed on read. */
420
372
  export function createActorAdmissionWarnings(input, dispositions = CREATE_ACTOR_FIELD_DISPOSITIONS) {
421
373
  return Object.entries(dispositions).flatMap(([field, disposition]) => disposition.kind === "warned" && input[field] !== undefined ? [disposition.warning] : []);
422
374
  }
423
- /** `create_actor` run failure codes, each charging zero credits. The `error` column reads `code: text`. */
424
375
  export const CREATE_ACTOR_RUN_ERRORS = {
425
376
  actor_portrait_unusable: "the generated portrait did not show exactly one face; no actor was created and nothing was charged",
426
377
  actor_prompt_refused: "the description names or resembles a real person, or moderation refused the portrait; describe a fictional adult. " +
@@ -447,20 +398,15 @@ export const CREATE_ACTOR_RUN_ERROR_CODES = Object.keys(CREATE_ACTOR_RUN_ERRORS)
447
398
  export function createActorRunError(code) {
448
399
  return `${code}: ${CREATE_ACTOR_RUN_ERRORS[code]}`;
449
400
  }
450
- /** The `runs.error` format for a code with a detail: alerts read the code up to the colon. */
451
401
  export function createActorRunErrorWith(code, detail) {
452
402
  return `${createActorRunError(code)} (${detail})`;
453
403
  }
454
404
  export const ACTOR_VARIANT_ASPECTS = ASPECT_RATIOS.filter((aspect) => aspect !== ACTOR_PORTRAIT_ASPECT);
455
- /** A variant not created for a reason of ours: the successful run carries this line in `warnings`. */
456
405
  export function actorVariantWarning(aspect, reason) {
457
406
  return `${aspect} was not created: ${reason}; it was not charged`;
458
407
  }
459
- /** A face check that failed at the variant stage: the run SUCCEEDS, with no failure code. One */
460
- /** definition for the writer (task) and the counter (alert), compared as whole lines. */
461
408
  export const ACTOR_VARIANT_FACE_CHECK_REASON = "the face check was unavailable";
462
409
  export const ACTOR_VARIANT_FACE_CHECK_WARNINGS = ACTOR_VARIANT_ASPECTS.map((aspect) => actorVariantWarning(aspect, ACTOR_VARIANT_FACE_CHECK_REASON));
463
- /** What `create_actor` does: one text for the public skill catalog and clients. */
464
410
  export const CREATE_ACTOR_DESCRIPTION = "Create a personal actor for this account from words describing a fictional adult: a 9:16 portrait with exactly " +
465
411
  "one face, plus the other requested formats edited from it. Returns a run_id immediately; poll get_run until " +
466
412
  "'succeeded' (created_actor.actor_id, then pass it as actor_id to make_ugc) or 'failed'. Each published image is " +
@@ -471,4 +417,3 @@ export const CREATE_ACTOR_DESCRIPTION = "Create a personal actor for this accoun
471
417
  "other formats are charged; an image without exactly one face, or with the face cut off, too small or too large, is " +
472
418
  "refused at no charge. A brand mascot drawn with generate_image can be that portrait when its face reads as a human " +
473
419
  "face (a cartoon person); an animal or object mascot is refused, so show it in inserts instead.";
474
- //# sourceMappingURL=account-actors.js.map
package/dist/account.d.ts CHANGED
@@ -1,8 +1,4 @@
1
1
  import { z } from "zod";
2
- /** The `GET /v1/account` body. Three numbers (balance, debt, holds), all about the */
3
- /** client's money. */
4
- /** A credit grant. `source` is a string, not an enum: sources live in the database and grow, */
5
- /** and the read contract must survive a new value in an installed client, like run stages. */
6
2
  export declare const creditGrant: z.ZodObject<{
7
3
  amount: z.ZodNumber;
8
4
  source: z.ZodString;
@@ -10,8 +6,6 @@ export declare const creditGrant: z.ZodObject<{
10
6
  created_at: z.ZodString;
11
7
  }, z.core.$strip>;
12
8
  export type CreditGrant = z.infer<typeof creditGrant>;
13
- /** Our reply to a support request or a send_feedback of this account. Only our text and ids: the request's own text */
14
- /** is not repeated. `kind` is a string for the reason `source` is: kinds may grow. */
15
9
  export declare const supportReply: z.ZodObject<{
16
10
  request_id: z.ZodString;
17
11
  run_id: z.ZodNullable<z.ZodString>;
package/dist/account.js CHANGED
@@ -1,22 +1,13 @@
1
1
  import { z } from "zod";
2
- /** The `GET /v1/account` body. Three numbers (balance, debt, holds), all about the */
3
- /** client's money. */
4
- /** A credit grant. `source` is a string, not an enum: sources live in the database and grow, */
5
- /** and the read contract must survive a new value in an installed client, like run stages. */
6
2
  export const creditGrant = z.object({
7
3
  amount: z.number().int(),
8
4
  source: z.string(),
9
- /** `null` means the grant never expires. */
10
5
  expires_at: z.string().datetime().nullable(),
11
6
  created_at: z.string().datetime(),
12
7
  });
13
- /** Our reply to a support request or a send_feedback of this account. Only our text and ids: the request's own text */
14
- /** is not repeated. `kind` is a string for the reason `source` is: kinds may grow. */
15
8
  export const supportReply = z.object({
16
- /** The `feedback_id` send_feedback returned, or the id of a request sent from the dashboard. */
17
9
  request_id: z.string(),
18
10
  run_id: z.string().nullable(),
19
- /** The feedback kind; `null` for a request sent from the dashboard. */
20
11
  kind: z.string().nullable(),
21
12
  reply: z.string(),
22
13
  replied_at: z.string().datetime(),
@@ -24,28 +15,19 @@ export const supportReply = z.object({
24
15
  export const accountPlan = z.object({
25
16
  id: z.string(),
26
17
  interval: z.enum(["month", "year"]),
27
- /** The end of the paid billing period: the plan renews then, unless `cancel_at_period_end`. */
28
18
  renews_at: z.string().datetime().nullable(),
29
19
  cancel_at_period_end: z.boolean(),
30
20
  });
31
21
  export const account = z.object({
32
22
  account_id: z.string(),
33
- /** Everything a new run can spend: the monthly plan credits plus the credits that never expire. */
34
23
  balance_credits: z.number().int().nonnegative(),
35
- /** The monthly part of `balance_credits`, spent first; what is left when the month ends does not roll over. */
36
24
  plan_credits: z.number().int().nonnegative().optional(),
37
- /** The part of `balance_credits` that never expires: packs, the trial and gifts. */
38
25
  pack_credits: z.number().int().nonnegative().optional(),
39
- /** The monthly plan, or null without one; absent from a server older than plans. */
40
26
  plan: accountPlan.nullable().optional(),
41
27
  debt_credits: z.number().int().nonnegative(),
42
28
  holds_credits: z.number().int().nonnegative(),
43
- /** UNEXPIRED only: an expired grant is not in the balance and does not mislead in the list. */
44
29
  grants: z.array(creditGrant).default([]),
45
- /** Up to 10 replies, newest first. Defaults to empty, so a client older than the server reads the body unchanged. */
46
30
  support_replies: z.array(supportReply).default([]),
47
- /** Free trend searches left this month (#1398) and when they renew; absent from a server older than them. */
48
31
  free_trend_searches_left: z.number().int().nonnegative().optional(),
49
32
  free_trend_searches_reset_at: z.string().datetime().optional(),
50
33
  });
51
- //# sourceMappingURL=account.js.map
@@ -1,18 +1,13 @@
1
- /** Known values only grow and match the DB check: stored runs and responses are read by them. */
2
1
  export declare const ACTOR_GENDERS_KNOWN: readonly ["female", "male"];
3
2
  export type ActorGender = (typeof ACTOR_GENDERS_KNOWN)[number];
4
3
  export declare const ACTOR_ASPECTS_KNOWN: readonly ["9:16", "1:1", "16:9"];
5
4
  export type ActorAspectKnown = (typeof ACTOR_ASPECTS_KNOWN)[number];
6
- /** The `account_actors_adult` floor: nothing younger has ever been written. */
7
5
  export declare const ACTOR_AGE_FLOOR = 18;
8
- /** Intake bounds are a product decision and may narrow. A separate module, so a test can */
9
- /** narrow each by mocking and check that no read schema depends on them. */
10
6
  export declare const ACTOR_DESCRIPTION_MAX_CHARS = 2000;
11
7
  export declare const ACTOR_NAME_MAX_CHARS = 100;
12
8
  export declare const ACTOR_MIN_AGE = 18;
13
9
  export declare const ACTOR_MAX_AGE = 90;
14
10
  export declare const ACTOR_GENDERS_ACCEPTED: readonly ["female", "male"];
15
- /** An actor derived from an actor (#898): two hands, so at most two held objects. */
16
11
  export declare const ACTOR_HOLDING_MAX_ITEMS = 2;
17
12
  export declare const ACTOR_HOLDING_DESCRIPTION_MAX_CHARS = 1000;
18
13
  export declare const ACTOR_SETTING_MAX_CHARS = 2000;
@@ -1,17 +1,11 @@
1
- /** Known values only grow and match the DB check: stored runs and responses are read by them. */
2
1
  export const ACTOR_GENDERS_KNOWN = ["female", "male"];
3
2
  export const ACTOR_ASPECTS_KNOWN = ["9:16", "1:1", "16:9"];
4
- /** The `account_actors_adult` floor: nothing younger has ever been written. */
5
3
  export const ACTOR_AGE_FLOOR = 18;
6
- /** Intake bounds are a product decision and may narrow. A separate module, so a test can */
7
- /** narrow each by mocking and check that no read schema depends on them. */
8
4
  export const ACTOR_DESCRIPTION_MAX_CHARS = 2000;
9
5
  export const ACTOR_NAME_MAX_CHARS = 100;
10
6
  export const ACTOR_MIN_AGE = 18;
11
7
  export const ACTOR_MAX_AGE = 90;
12
8
  export const ACTOR_GENDERS_ACCEPTED = ["female", "male"];
13
- /** An actor derived from an actor (#898): two hands, so at most two held objects. */
14
9
  export const ACTOR_HOLDING_MAX_ITEMS = 2;
15
10
  export const ACTOR_HOLDING_DESCRIPTION_MAX_CHARS = 1000;
16
11
  export const ACTOR_SETTING_MAX_CHARS = 2000;
17
- //# sourceMappingURL=actor-bounds.js.map
@@ -1,8 +1,5 @@
1
- /** Known qualities only grow: stored runs and responses are read by them. */
2
1
  export declare const ACTOR_QUALITIES_KNOWN: readonly ["medium", "high"];
3
2
  export type ActorQuality = (typeof ACTOR_QUALITIES_KNOWN)[number];
4
- /** Qualities accepted on input, a subset of the known ones. A separate module, so a test can */
5
- /** narrow it by mocking and check that no read schema depends on it. */
6
3
  export declare const ACTOR_QUALITIES_ACCEPTED: readonly ["medium", "high"];
7
4
  export type ActorQualityAccepted = (typeof ACTOR_QUALITIES_ACCEPTED)[number];
8
5
  export declare const ACTOR_DEFAULT_QUALITY: ActorQualityAccepted;
@@ -1,7 +1,3 @@
1
- /** Known qualities only grow: stored runs and responses are read by them. */
2
1
  export const ACTOR_QUALITIES_KNOWN = ["medium", "high"];
3
- /** Qualities accepted on input, a subset of the known ones. A separate module, so a test can */
4
- /** narrow it by mocking and check that no read schema depends on it. */
5
2
  export const ACTOR_QUALITIES_ACCEPTED = ["medium", "high"];
6
3
  export const ACTOR_DEFAULT_QUALITY = "medium";
7
- //# sourceMappingURL=actor-qualities.js.map
package/dist/actors.d.ts CHANGED
@@ -1,11 +1,8 @@
1
1
  import { z } from "zod";
2
2
  import { type AspectRatio } from "./skills.js";
3
3
  export declare const ACTORS_PATH = "/v1/actors";
4
- /** An account's personal actor: the quote is free, the run is paid. The API routes repeat */
5
- /** these paths as literals, and a test keeps them equal. */
6
4
  export declare const CREATE_ACTOR_QUOTE_PATH = "/v1/skills/create_actor/quote";
7
5
  export declare const CREATE_ACTOR_RUN_PATH = "/v1/skills/create_actor/run";
8
- /** A catalog actor's picture on the API's own host (#1125): short, stable and unsigned, so chat clients show it inline. */
9
6
  export declare const ACTOR_PREVIEW_PATH = "/v1/public/actor-previews/:actor_id/:version/:file";
10
7
  export interface ActorPreviewView {
11
8
  aspect_ratio: AspectRatio;
@@ -13,13 +10,11 @@ export interface ActorPreviewView {
13
10
  gaze?: "left" | "right" | undefined;
14
11
  prop?: "mic" | undefined;
15
12
  }
16
- /** One file name per view of a version: `9x16`, `9x16-wide-mic`, `16x9-left`. */
17
13
  export declare function actorPreviewFile(view: ActorPreviewView): string;
18
14
  export declare function actorPreviewUrl(origin: string, actor: {
19
15
  actor_id: string;
20
16
  version: number;
21
17
  }, view: ActorPreviewView): string;
22
- /** The path of one actor. The id is encoded, since it comes from the caller. */
23
18
  export declare function actorItemPath(id: string): string;
24
19
  export type Gender = "female" | "male";
25
20
  export interface AspectSource {
@@ -35,7 +30,6 @@ export declare const DEFAULT_ACTOR_GENDER: Gender;
35
30
  export type DefaultActor = {
36
31
  gender: Gender;
37
32
  };
38
- /** actor_gender without image or actor_id becomes that gender's catalogue actor, named in warnings[] (rule 3): quote and run read the same input. */
39
33
  export declare function settleActorGender<T extends {
40
34
  actor_gender?: Gender | undefined;
41
35
  actor_id?: string | undefined;
@@ -46,7 +40,6 @@ export declare function settleActorGender<T extends {
46
40
  warnings: string[];
47
41
  };
48
42
  export declare const DEFAULT_PRESENTER_WARNING = "no presenter was chosen: the default presenter is a man; pass actor_gender, or actor_id from list_actors, to pick another";
49
- /** With no presenter named the default actor, a man, presents: said in warnings[] with how to pick another. */
50
43
  export declare function defaultPresenterWarnings(input: {
51
44
  image?: string | undefined;
52
45
  actor_id?: string | undefined;
@@ -73,30 +66,21 @@ export interface VoiceGenderInput {
73
66
  voice_id?: string | undefined;
74
67
  tts_model?: string | undefined;
75
68
  }
76
- /** Gender for the default voice: `actor_id` → pin; `image` → `actor_gender`; else the default actor. */
77
- /** Only from the same actor's pin, not the catalog: personal actors are not in it. */
78
69
  export declare function voiceGenderFor(input: VoiceGenderInput, pin?: {
79
70
  actor_id: string;
80
71
  gender: Gender;
81
72
  } | undefined): Gender | undefined;
82
73
  export declare const IMAGE_DEFAULT_VOICE_WARNING: string;
83
- /** The same warning for the run's model: a model with its own voices names its default and where its voices are listed. */
84
74
  export declare function imageDefaultVoiceWarning(ttsModel: string | undefined): string;
85
75
  export declare function actorGenderIgnoredWarning(field: "voice" | "voice_id"): string;
86
76
  export declare function voiceActorGenderWarning(voice: string, voiceGender: Gender, actorGender: Gender): string;
87
- /** An explicit voice is used as requested, but a mismatch with the actor's gender is */
88
- /** NAMED in warnings, never left silent. */
89
77
  export declare function buildVoiceActorMatchWarnings(input: VoiceGenderInput, voiceGenderOf: (voice: string) => Gender | undefined, pinGender?: Gender | undefined): string[];
90
- /** Reads input fields only, without the pin: the run path calls it on the stored input. */
91
78
  export declare function buildActorGenderWarnings(input: VoiceGenderInput): string[];
92
- /** The presenter's framing as rendered: the view admission pinned, close without one (#884 S5d). */
93
79
  export declare function renderedPresenterFraming(pin?: {
94
80
  asset?: {
95
81
  framing?: string | undefined;
96
82
  } | undefined;
97
83
  } | undefined): "close" | "wide" | "full";
98
- /** What a wide, full or mic request did not get, one line each, read from the pin admission made: a view is pinned only when drawn (#884 S5d, */
99
- /** rule 3). A take is never widened or cropped to match: a full framing[] size on a narrower take names it (#1175 S7). */
100
84
  export declare function presenterViewWarnings(input: {
101
85
  presenter_framing?: string | undefined;
102
86
  presenter_mic?: boolean | undefined;