@koda-sl/baker-cli 0.887.0 → 0.889.0-dev.c63d3597d

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 (971) hide show
  1. package/README.md +6 -1
  2. package/dist/account-RLE73GWJ.js +82 -0
  3. package/dist/account-ZFVU7HUJ.js +84 -0
  4. package/dist/account-assets-QEIXW7GA.js +298 -0
  5. package/dist/account-level-25RKXCY4.js +615 -0
  6. package/dist/account-reads-YWE43J72.js +231 -0
  7. package/dist/account-users-WJACFDIO.js +70 -0
  8. package/dist/account-writes-VQG2DIL2.js +68 -0
  9. package/dist/accounts-C4TGANEM.js +82 -0
  10. package/dist/accounts-CBUR4HHR.js +571 -0
  11. package/dist/accounts-P6LTLXVK.js +122 -0
  12. package/dist/actions-P3J7B4UP.js +55 -0
  13. package/dist/activecampaign-E7V5ZV2B.js +936 -0
  14. package/dist/ad-group-writes-6NSPVPO2.js +172 -0
  15. package/dist/ad-groups-XPFBEDTX.js +70 -0
  16. package/dist/ad-writes-ZFT6N6L4.js +176 -0
  17. package/dist/add-6CVZINC7.js +663 -0
  18. package/dist/add-GOJRYHKQ.js +109 -0
  19. package/dist/add-NYLSISGS.js +662 -0
  20. package/dist/ads-GT2IXUZB.js +147 -0
  21. package/dist/ads-HMAJV2UN.js +48 -0
  22. package/dist/ads-MF3RBGLM.js +79 -0
  23. package/dist/adsets-ZEQBO3XB.js +216 -0
  24. package/dist/advertisers-NJVSXQSR.js +155 -0
  25. package/dist/alerts-EDLS5VAU.js +154 -0
  26. package/dist/analytics-57WA66NO.js +2805 -0
  27. package/dist/analytics-HA35G6NL.js +462 -0
  28. package/dist/animate-ELVOWQD4.js +482 -0
  29. package/dist/asset-writes-DMI7XKF2.js +54 -0
  30. package/dist/assign-VDR2DA4U.js +84 -0
  31. package/dist/audience-size-RH3547ZB.js +138 -0
  32. package/dist/audience-writes-SV7UWLRK.js +345 -0
  33. package/dist/audiences-AQO2MXT4.js +129 -0
  34. package/dist/audiences-H54RA555.js +280 -0
  35. package/dist/audit-3PVSCSEG.js +156 -0
  36. package/dist/autocomplete-2T77F4RY.js +118 -0
  37. package/dist/avatars-SP774CYD.js +38 -0
  38. package/dist/bid-pricing-VBYSDSEP.js +105 -0
  39. package/dist/brief-Y2XB2R2U.js +512 -0
  40. package/dist/campaign-groups-2NKPOYGS.js +119 -0
  41. package/dist/campaign-writes-5CEFKZV5.js +176 -0
  42. package/dist/campaign-writes-MYPDHTMJ.js +170 -0
  43. package/dist/campaigns-3YN2T46Q.js +111 -0
  44. package/dist/campaigns-444D7YJ7.js +78 -0
  45. package/dist/campaigns-OPRLK7AW.js +194 -0
  46. package/dist/campaigns-TUWJBWTV.js +150 -0
  47. package/dist/canvas-VGSK3RJU.js +48 -0
  48. package/dist/capabilities-WBJ3XSM4.js +185 -0
  49. package/dist/catalog-QL3SAL67.js +90 -0
  50. package/dist/catalogs-F33HX4RG.js +130 -0
  51. package/dist/catalogs-VT6CK7U3.js +786 -0
  52. package/dist/changes-RVAJE4O7.js +288 -0
  53. package/dist/chatgpt-GEBWPTMO.js +47 -0
  54. package/dist/chats-GEGKSN2Z.js +730 -0
  55. package/dist/chats-GEGKSN2Z.js.map +1 -0
  56. package/dist/check-XAA3SAZM.js +55 -0
  57. package/dist/chunk-26PCRPMS.js +142 -0
  58. package/dist/chunk-2GAD2YFD.js +86 -0
  59. package/dist/chunk-2VZQG4XE.js +884 -0
  60. package/dist/chunk-36EP3NUV.js +915 -0
  61. package/dist/chunk-37ZFOL3T.js +285 -0
  62. package/dist/chunk-3CSDJ42F.js +374 -0
  63. package/dist/chunk-3OOZHWBQ.js +9127 -0
  64. package/dist/chunk-46T7QB4V.js +547 -0
  65. package/dist/chunk-5FE2YQHG.js +147 -0
  66. package/dist/chunk-5PU6S4HD.js +170 -0
  67. package/dist/chunk-5ZFH74JL.js +89 -0
  68. package/dist/chunk-66FLBIGF.js +405 -0
  69. package/dist/chunk-7FKNMOLI.js +6340 -0
  70. package/dist/chunk-7J2OSQPE.js +411 -0
  71. package/dist/chunk-7YYB62Q6.js +46 -0
  72. package/dist/chunk-ABSCXA3F.js +505 -0
  73. package/dist/chunk-AQGK3JDK.js +3252 -0
  74. package/dist/chunk-AQGK3JDK.js.map +1 -0
  75. package/dist/chunk-B7NURSEQ.js +98 -0
  76. package/dist/chunk-CLDJNSMW.js +423 -0
  77. package/dist/chunk-CLS5IYAM.js +91 -0
  78. package/dist/chunk-CQGA6W4H.js +26 -0
  79. package/dist/chunk-DMH2KAVE.js +749 -0
  80. package/dist/chunk-E2HXOZS7.js +51 -0
  81. package/dist/chunk-FCLELV6X.js +252 -0
  82. package/dist/chunk-FDJBCRJR.js +3378 -0
  83. package/dist/chunk-FJWR6S7B.js +685 -0
  84. package/dist/chunk-GUU4LC7J.js +4650 -0
  85. package/dist/chunk-GUU4LC7J.js.map +1 -0
  86. package/dist/chunk-HNCWQ6AC.js +329 -0
  87. package/dist/chunk-HO4OU5GT.js +152 -0
  88. package/dist/chunk-IHASMZN7.js +604 -0
  89. package/dist/chunk-IN4F63GP.js +163 -0
  90. package/dist/chunk-J25723H5.js +260 -0
  91. package/dist/chunk-J6LXNKSX.js +63 -0
  92. package/dist/chunk-J6LXNKSX.js.map +1 -0
  93. package/dist/chunk-JC2FE6LU.js +175 -0
  94. package/dist/chunk-K6YOVSDM.js +644 -0
  95. package/dist/chunk-K6YOVSDM.js.map +1 -0
  96. package/dist/chunk-KAZNPGB5.js +7856 -0
  97. package/dist/chunk-KAZNPGB5.js.map +1 -0
  98. package/dist/chunk-KK6JTXF7.js +723 -0
  99. package/dist/chunk-LBI25Z6J.js +78 -0
  100. package/dist/chunk-LO7ZELHR.js +398 -0
  101. package/dist/chunk-M7B3NIRG.js +550 -0
  102. package/dist/chunk-M7B3NIRG.js.map +1 -0
  103. package/dist/chunk-MMPSEHVM.js +313 -0
  104. package/dist/chunk-MQ7RLOYT.js +303 -0
  105. package/dist/chunk-NNNASQGG.js +262 -0
  106. package/dist/chunk-NPPE7K7H.js +341 -0
  107. package/dist/chunk-NRDQ4OBD.js +197 -0
  108. package/dist/chunk-NRKMVBXE.js +23 -0
  109. package/dist/chunk-O4HYOXFA.js +863 -0
  110. package/dist/chunk-ODZ6UGC6.js +76 -0
  111. package/dist/chunk-OXC5TCEK.js +1577 -0
  112. package/dist/chunk-PJ6E6KNJ.js +1124 -0
  113. package/dist/chunk-PMYE6WGA.js +262 -0
  114. package/dist/chunk-PW4ZDUCA.js +337 -0
  115. package/dist/chunk-PZ6KNUAF.js +287 -0
  116. package/dist/chunk-R2UE6S4P.js +127 -0
  117. package/dist/chunk-R6OOOA57.js +202 -0
  118. package/dist/chunk-RDOTHEEQ.js +155 -0
  119. package/dist/chunk-RGZ2M2WO.js +509 -0
  120. package/dist/chunk-SPOEU6C6.js +103 -0
  121. package/dist/chunk-T3XWTNBE.js +10430 -0
  122. package/dist/chunk-T6QQAQ27.js +231 -0
  123. package/dist/chunk-TDWIAG56.js +170 -0
  124. package/dist/chunk-TW5NVMPZ.js +64 -0
  125. package/dist/chunk-TWE44ERO.js +24026 -0
  126. package/dist/chunk-TWE44ERO.js.map +1 -0
  127. package/dist/chunk-UDQ2DIVY.js +479 -0
  128. package/dist/chunk-UKETWBTK.js +430 -0
  129. package/dist/chunk-UTOVJPFC.js +746 -0
  130. package/dist/chunk-V2F4K63W.js +91 -0
  131. package/dist/chunk-V4LQLLV7.js +1862 -0
  132. package/dist/chunk-V52PW3C3.js +732 -0
  133. package/dist/chunk-VBNDU6MU.js +349 -0
  134. package/dist/chunk-VBNDU6MU.js.map +1 -0
  135. package/dist/chunk-VDYAVAVS.js +660 -0
  136. package/dist/chunk-W3RIXRXK.js +219 -0
  137. package/dist/chunk-XKNKIZ5R.js +1883 -0
  138. package/dist/chunk-Y42IKJUR.js +274 -0
  139. package/dist/chunk-ZG567LXM.js +375 -0
  140. package/dist/chunk-ZKKAPN3K.js +224 -0
  141. package/dist/claim-UN2J6WIO.js +219 -0
  142. package/dist/cli.js +36 -36
  143. package/dist/companies-DBURSUOC.js +37 -0
  144. package/dist/company-SR7U47X4.js +312 -0
  145. package/dist/complete-Z2D6D6IN.js +88 -0
  146. package/dist/connect-VM5MRQFR.js +47 -0
  147. package/dist/conversation-FU6E5YUO.js +101 -0
  148. package/dist/conversion-report-6DLSLJC5.js +130 -0
  149. package/dist/conversion-upload-command-YFMPFAXF.js +459 -0
  150. package/dist/conversion-writes-4H2LTWBX.js +194 -0
  151. package/dist/conversions-5QVJQE2C.js +142 -0
  152. package/dist/conversions-L37NR2WG.js +78 -0
  153. package/dist/copy-writes-YVZMTTLV.js +174 -0
  154. package/dist/create-DB5EHYOM.js +357 -0
  155. package/dist/create-EZC4XAKH.js +220 -0
  156. package/dist/create-FXZG2ZI3.js +191 -0
  157. package/dist/create-FYMLEBHF.js +66 -0
  158. package/dist/creatives-2DO5TDDB.js +132 -0
  159. package/dist/creatives-GCQTDOSR.js +236 -0
  160. package/dist/creatives-R4RCETJG.js +48 -0
  161. package/dist/credentials-U7V2CTFO.js +292 -0
  162. package/dist/critique-Q3PS4PEU.js +231 -0
  163. package/dist/crm-D7IVP2KI.js +419 -0
  164. package/dist/crm-GARQADYL.js +328 -0
  165. package/dist/currency-AZLCACYY.js +91 -0
  166. package/dist/custom-conversions-A2ROWOH6.js +140 -0
  167. package/dist/customers-EUZBHVYZ.js +70 -0
  168. package/dist/data-JRLTQ2ZL.js +665 -0
  169. package/dist/delete-CR7E46YF.js +61 -0
  170. package/dist/delete-HYRRPAXX.js +72 -0
  171. package/dist/delete-M6HCS4OQ.js +71 -0
  172. package/dist/demographics-CBL4AQWV.js +146 -0
  173. package/dist/discard-JQRZNY3R.js +73 -0
  174. package/dist/discover-KBGB2T4P.js +191 -0
  175. package/dist/domain-4EO4COCL.js +105 -0
  176. package/dist/download-ZNGNRIIX.js +175 -0
  177. package/dist/draft-6MDRVJFE.js +584 -0
  178. package/dist/draft-AWJAXOSR.js +428 -0
  179. package/dist/draft-JMMX67IN.js +340 -0
  180. package/dist/draft-N6DTG4HM.js +643 -0
  181. package/dist/draft-OGECS4GX.js +390 -0
  182. package/dist/draft-OHVPBP4V.js +228 -0
  183. package/dist/engine/index.js +11 -11
  184. package/dist/experiment-FMMX57VR.js +2123 -0
  185. package/dist/experiments-FGIEJZPV.js +242 -0
  186. package/dist/extract-3JRZ7YLD.js +178 -0
  187. package/dist/facets-WMBQMAMN.js +161 -0
  188. package/dist/feedback-P553UQFJ.js +154 -0
  189. package/dist/fetch-TLH7VG4F.js +488 -0
  190. package/dist/fit-7A3GZNZL.js +70 -0
  191. package/dist/flows-SAMB5BZM.js +406 -0
  192. package/dist/forecast-6M43TIGT.js +123 -0
  193. package/dist/forecast-QSYP6Q5B.js +190 -0
  194. package/dist/funnel-BBGXGVSG.js +702 -0
  195. package/dist/generate-JMB22RBM.js +265 -0
  196. package/dist/get-FP7S3HD2.js +115 -0
  197. package/dist/get-W7MYNRX2.js +78 -0
  198. package/dist/google-3FVRLOUG.js +165 -0
  199. package/dist/google-WDW4LTQZ.js +3809 -0
  200. package/dist/google-WDW4LTQZ.js.map +1 -0
  201. package/dist/google-ads-RSEBUPMP.js +231 -0
  202. package/dist/history-7VIUDUWI.js +204 -0
  203. package/dist/history-VRY2O64B.js +156 -0
  204. package/dist/history-YMFYXCOA.js +109 -0
  205. package/dist/hubspot-V42TIKKP.js +1047 -0
  206. package/dist/ideas-Q6ESJXI2.js +50 -0
  207. package/dist/images-2DWUQNLR.js +92 -0
  208. package/dist/ingest-ST2VZGCW.js +163 -0
  209. package/dist/ingest-YICQAS7O.js +32 -0
  210. package/dist/insights-E3VPRDIZ.js +151 -0
  211. package/dist/inspect-7KMQJF2H.js +39 -0
  212. package/dist/instant-experiences-CN4HND7L.js +268 -0
  213. package/dist/intent-EVNPBRG5.js +97 -0
  214. package/dist/keyword-gap-ANMM2DBE.js +173 -0
  215. package/dist/keyword-metrics-BG7QTPLV.js +235 -0
  216. package/dist/keywords-for-site-ZPI3O7KF.js +135 -0
  217. package/dist/languages-P2SFZMKV.js +41 -0
  218. package/dist/leads-WU4FCHHD.js +138 -0
  219. package/dist/leads-YVNMTGWX.js +575 -0
  220. package/dist/learn-DH7FWTTD.js +214 -0
  221. package/dist/line-item-writes-22LY7PTP.js +213 -0
  222. package/dist/line-items-M3OH3BEA.js +107 -0
  223. package/dist/link-F4JRMM2V.js +71 -0
  224. package/dist/linkedin-OPCIYMY4.js +1517 -0
  225. package/dist/linkedin-person-LZ2J5PUM.js +143 -0
  226. package/dist/list-2BOGETGJ.js +90 -0
  227. package/dist/list-FWJ5PROQ.js +227 -0
  228. package/dist/list-QDNMJ4N2.js +321 -0
  229. package/dist/locations-L2UPXDZF.js +41 -0
  230. package/dist/locations-ZV6EK2BK.js +69 -0
  231. package/dist/log-5HBYAPWG.js +99 -0
  232. package/dist/make-TIEWBNED.js +1392 -0
  233. package/dist/map-LCBLGR6H.js +520 -0
  234. package/dist/mcp-ECZDK7PR.js +1028 -0
  235. package/dist/media-BKRKJBNX.js +18 -0
  236. package/dist/media-sources-WHP6DDVS.js +35 -0
  237. package/dist/members-4QJ4NFN5.js +51 -0
  238. package/dist/meta-7XENEZST.js +152 -0
  239. package/dist/metrics-KU5HKZTO.js +193 -0
  240. package/dist/models-TVAUSO3P.js +155 -0
  241. package/dist/normalize-7MQY7OFU.js +146 -0
  242. package/dist/options-GVI7MGCY.js +127 -0
  243. package/dist/organization-LIWWTLDN.js +950 -0
  244. package/dist/page-photos-MNK3A56N.js +122 -0
  245. package/dist/people-53RA2YV2.js +162 -0
  246. package/dist/people-T5MCOHLG.js +172 -0
  247. package/dist/performance-CSEBHDAH.js +6361 -0
  248. package/dist/performance-YFJOEFIQ.js +29 -0
  249. package/dist/pipedrive-XISQ2EDT.js +534 -0
  250. package/dist/pixels-NGCNKAV5.js +62 -0
  251. package/dist/preview-6GOFEE53.js +151 -0
  252. package/dist/promoted-tweet-writes-QU2QY2LD.js +185 -0
  253. package/dist/promoted-tweets-DS3M3EZP.js +119 -0
  254. package/dist/publish-CA2H6ZFM.js +431 -0
  255. package/dist/query-B6PJNOJR.js +68 -0
  256. package/dist/reddit-E4XVRGY3.js +31 -0
  257. package/dist/refresh-Q4X32QZ5.js +101 -0
  258. package/dist/release-IOKAJJAG.js +67 -0
  259. package/dist/relevant-pages-PWVMSEEY.js +101 -0
  260. package/dist/remove-VWUW3G2H.js +55 -0
  261. package/dist/reopen-35JFBIJH.js +70 -0
  262. package/dist/rerun-6BMX5OGY.js +102 -0
  263. package/dist/research-5LQIXWT5.js +78 -0
  264. package/dist/research-C7MLB4GD.js +267 -0
  265. package/dist/reset-7OVJE4VP.js +59 -0
  266. package/dist/reset-JIG6DVMC.js +59 -0
  267. package/dist/resolve-53VNKAIE.js +126 -0
  268. package/dist/retry-AJQA4NS6.js +67 -0
  269. package/dist/retry-C2KA32FO.js +67 -0
  270. package/dist/revenue-YHHS334Q.js +100 -0
  271. package/dist/rule-writes-NHGM2QAL.js +534 -0
  272. package/dist/rules-G4BNN3K7.js +234 -0
  273. package/dist/rules-O4AFVB5T.js +164 -0
  274. package/dist/run-CJV4IMUK.js +79 -0
  275. package/dist/run-YBR5DEXL.js +74 -0
  276. package/dist/scaffold-ad-S77BNZNO.js +1604 -0
  277. package/dist/scaffold-static-ad-RKIPMT3C.js +999 -0
  278. package/dist/scaffold-video-Z6KVVMRZ.js +890 -0
  279. package/dist/schedule-LQ3MGDUB.js +66 -0
  280. package/dist/scheduled-agents-Y74VUWHM.js +59 -0
  281. package/dist/schema-QY7GVP64.js +241 -0
  282. package/dist/schema-VFA7XDIJ.js +137 -0
  283. package/dist/search-K2UGFDNL.js +230 -0
  284. package/dist/search-terms-GSPUCEUQ.js +413 -0
  285. package/dist/select-Q75CYXUD.js +135 -0
  286. package/dist/set-VHE7IBC5.js +287 -0
  287. package/dist/set-prompt-RDHWHIIA.js +205 -0
  288. package/dist/setup-links-UK76TGP7.js +146 -0
  289. package/dist/shopify-N22Z2LH7.js +4034 -0
  290. package/dist/site-PX2UP6WJ.js +182 -0
  291. package/dist/sources-W3DYPF7P.js +491 -0
  292. package/dist/sources-XWQMCQKM.js +30 -0
  293. package/dist/stale-LUUDQKHB.js +93 -0
  294. package/dist/status-JKVA6RFG.js +69 -0
  295. package/dist/stock-K24GSGUX.js +214 -0
  296. package/dist/studies-LVEZW6OX.js +267 -0
  297. package/dist/studio-EPR755MN.js +49 -0
  298. package/dist/study-writes-YT57VAGI.js +475 -0
  299. package/dist/sync-FA6XW6QW.js +59 -0
  300. package/dist/sync-definition-3ZO3IMHB.js +75 -0
  301. package/dist/tags-IH4JQLOQ.js +194 -0
  302. package/dist/tags-MZI4AUFX.js +25 -0
  303. package/dist/tags-NNQ7ZIFO.js +26 -0
  304. package/dist/tags-QLTH4QXC.js +25 -0
  305. package/dist/tags-XSADREK2.js +25 -0
  306. package/dist/targeting-U25ZHNG5.js +777 -0
  307. package/dist/targeting-criteria-INSCNLEY.js +113 -0
  308. package/dist/targets-NEHSCYCW.js +111 -0
  309. package/dist/testimonials-A6GO4I6X.js +32 -0
  310. package/dist/themes-BGOWQB5V.js +103 -0
  311. package/dist/top-companies-XE4VQ4AO.js +251 -0
  312. package/dist/transcript-3L3FCPQG.js +169 -0
  313. package/dist/translate-OONH3P2L.js +608 -0
  314. package/dist/triggers-KZBMLFNY.js +149 -0
  315. package/dist/unlink-Z276IDVH.js +74 -0
  316. package/dist/unstage-V2DWN66K.js +93 -0
  317. package/dist/update-F3FGXY2K.js +70 -0
  318. package/dist/update-O5BW3QS5.js +176 -0
  319. package/dist/update-RJD5NYZL.js +238 -0
  320. package/dist/update-WJ5O7ZIC.js +194 -0
  321. package/dist/upload-VPHUD4TJ.js +186 -0
  322. package/dist/url-options-JAXYCQV6.js +137 -0
  323. package/dist/url-params-5DRKMYKX.js +103 -0
  324. package/dist/validate-FCNVFPBX.js +181 -0
  325. package/dist/videos-FW63565A.js +41 -0
  326. package/dist/viewer-check-THQ5IOLQ.js +90 -0
  327. package/dist/visuals-J2I74TLG.js +130 -0
  328. package/dist/web-PEXBI7YS.js +234 -0
  329. package/dist/winning-ads-6FRQSECL.js +88 -0
  330. package/dist/write-commands-FK4NX7Q7.js +1556 -0
  331. package/dist/write-commands-KYJPZGGS.js +1261 -0
  332. package/dist/x-57FGNEPO.js +47 -0
  333. package/package.json +1 -1
  334. package/dist/account-GBIEQDAR.js +0 -84
  335. package/dist/account-YLJRCKJD.js +0 -82
  336. package/dist/account-assets-Q2O3FRUE.js +0 -298
  337. package/dist/account-level-NBEQ6R7X.js +0 -615
  338. package/dist/account-reads-7DPRPWBK.js +0 -231
  339. package/dist/account-users-7KCX6RRF.js +0 -70
  340. package/dist/account-writes-WKG326GF.js +0 -68
  341. package/dist/accounts-AE2HVWJI.js +0 -122
  342. package/dist/accounts-CWNHOU2D.js +0 -82
  343. package/dist/accounts-T7DFD2HR.js +0 -571
  344. package/dist/actions-XA2BNQ2M.js +0 -55
  345. package/dist/activecampaign-WGVHI5KJ.js +0 -936
  346. package/dist/ad-group-writes-7D72YSZ3.js +0 -172
  347. package/dist/ad-groups-RKWIK443.js +0 -70
  348. package/dist/ad-writes-MVXTFP3G.js +0 -176
  349. package/dist/add-H5DS3QGP.js +0 -662
  350. package/dist/add-MTWYV5IF.js +0 -663
  351. package/dist/add-TEHN66ZU.js +0 -109
  352. package/dist/ads-EPFWBJ5V.js +0 -48
  353. package/dist/ads-HKPBNXWT.js +0 -147
  354. package/dist/ads-OXSPFP7L.js +0 -79
  355. package/dist/adsets-IBLZP6EM.js +0 -216
  356. package/dist/advertisers-XE5ZIMXU.js +0 -155
  357. package/dist/alerts-QQWPHG3N.js +0 -154
  358. package/dist/analytics-3CGPEWNX.js +0 -462
  359. package/dist/analytics-HFJESHLA.js +0 -2805
  360. package/dist/animate-M3NETBDU.js +0 -482
  361. package/dist/asset-writes-NTEJDVVM.js +0 -54
  362. package/dist/assign-HJJIUFU2.js +0 -84
  363. package/dist/audience-size-3PL7RCFE.js +0 -138
  364. package/dist/audience-writes-DJHKIJP7.js +0 -345
  365. package/dist/audiences-7TGXZS3M.js +0 -129
  366. package/dist/audiences-GQ3GFJGU.js +0 -280
  367. package/dist/audit-55NP5NSG.js +0 -156
  368. package/dist/autocomplete-XXJOQG3B.js +0 -118
  369. package/dist/avatars-C6ZLJ2JS.js +0 -38
  370. package/dist/bid-pricing-DMGB55M2.js +0 -105
  371. package/dist/brief-XXC3J7NB.js +0 -512
  372. package/dist/campaign-groups-DXLJMXO6.js +0 -119
  373. package/dist/campaign-writes-IYMSDPNS.js +0 -176
  374. package/dist/campaign-writes-W7RGAJJM.js +0 -170
  375. package/dist/campaigns-HZDIO72G.js +0 -194
  376. package/dist/campaigns-MRQ6WXG7.js +0 -78
  377. package/dist/campaigns-RITTRJBX.js +0 -111
  378. package/dist/campaigns-VD7UOTRV.js +0 -150
  379. package/dist/canvas-JU6QNTGE.js +0 -48
  380. package/dist/capabilities-5W5GCNPZ.js +0 -185
  381. package/dist/catalog-DEZPDMOD.js +0 -90
  382. package/dist/catalogs-H2T4Z6AS.js +0 -786
  383. package/dist/catalogs-HW3VY4KU.js +0 -130
  384. package/dist/changes-ZUPBYRVW.js +0 -288
  385. package/dist/chatgpt-2UCND7NY.js +0 -47
  386. package/dist/chats-IMZLY4Z5.js +0 -660
  387. package/dist/chats-IMZLY4Z5.js.map +0 -1
  388. package/dist/check-GEF6GXE2.js +0 -55
  389. package/dist/chunk-24DS3ELG.js +0 -660
  390. package/dist/chunk-2I3WYGAE.js +0 -6340
  391. package/dist/chunk-2MTY4FXQ.js +0 -10430
  392. package/dist/chunk-3NOL2JV6.js +0 -155
  393. package/dist/chunk-3Z3DQD3S.js +0 -604
  394. package/dist/chunk-4SYBNYE2.js +0 -170
  395. package/dist/chunk-62GKNMKZ.js +0 -746
  396. package/dist/chunk-6FXEUO2G.js +0 -26
  397. package/dist/chunk-7Z2VGNPU.js +0 -103
  398. package/dist/chunk-A2BOPFBE.js +0 -548
  399. package/dist/chunk-A2BOPFBE.js.map +0 -1
  400. package/dist/chunk-B55CVNVK.js +0 -98
  401. package/dist/chunk-BU2ETMFB.js +0 -479
  402. package/dist/chunk-C6HUH6FG.js +0 -430
  403. package/dist/chunk-CS4VA3GQ.js +0 -349
  404. package/dist/chunk-CS4VA3GQ.js.map +0 -1
  405. package/dist/chunk-CUW3CNOE.js +0 -337
  406. package/dist/chunk-CXVNM264.js +0 -46
  407. package/dist/chunk-D5VJDPVW.js +0 -915
  408. package/dist/chunk-E4XRSTAS.js +0 -1124
  409. package/dist/chunk-EJRVEUZW.js +0 -274
  410. package/dist/chunk-FRWCTFTP.js +0 -884
  411. package/dist/chunk-G7Q43JEZ.js +0 -231
  412. package/dist/chunk-GWMIDTCA.js +0 -723
  413. package/dist/chunk-H2FLV4R7.js +0 -24026
  414. package/dist/chunk-H2FLV4R7.js.map +0 -1
  415. package/dist/chunk-H3JCQYRE.js +0 -7876
  416. package/dist/chunk-H3JCQYRE.js.map +0 -1
  417. package/dist/chunk-HPCP3RIC.js +0 -89
  418. package/dist/chunk-I336DK3M.js +0 -341
  419. package/dist/chunk-IHWF5UAL.js +0 -375
  420. package/dist/chunk-J5PHVZPK.js +0 -197
  421. package/dist/chunk-LLHYNE4C.js +0 -9127
  422. package/dist/chunk-LM663MUK.js +0 -262
  423. package/dist/chunk-LUF2VYOK.js +0 -287
  424. package/dist/chunk-LZ2E3LYO.js +0 -547
  425. package/dist/chunk-LZYJJWRQ.js +0 -1883
  426. package/dist/chunk-MHOM2DGG.js +0 -411
  427. package/dist/chunk-MMIHJYZF.js +0 -51
  428. package/dist/chunk-NCS4E4YX.js +0 -3252
  429. package/dist/chunk-NCS4E4YX.js.map +0 -1
  430. package/dist/chunk-NESWSXLV.js +0 -505
  431. package/dist/chunk-NG4IIZ4K.js +0 -224
  432. package/dist/chunk-NGYRPA7Y.js +0 -76
  433. package/dist/chunk-NM65SWYX.js +0 -175
  434. package/dist/chunk-O2SBMFUX.js +0 -170
  435. package/dist/chunk-OAU7QZC7.js +0 -91
  436. package/dist/chunk-OGG7DKN5.js +0 -1577
  437. package/dist/chunk-OIYSYI5Q.js +0 -303
  438. package/dist/chunk-OXYSXFF3.js +0 -285
  439. package/dist/chunk-PLRRKSPY.js +0 -260
  440. package/dist/chunk-PMI2IYXS.js +0 -4535
  441. package/dist/chunk-PMI2IYXS.js.map +0 -1
  442. package/dist/chunk-PNGXJPM5.js +0 -604
  443. package/dist/chunk-PNGXJPM5.js.map +0 -1
  444. package/dist/chunk-QYGKGAVD.js +0 -749
  445. package/dist/chunk-RUSUYWRU.js +0 -23
  446. package/dist/chunk-S7J2JP3U.js +0 -262
  447. package/dist/chunk-SERZDHRI.js +0 -163
  448. package/dist/chunk-SHWLKMZE.js +0 -91
  449. package/dist/chunk-SJGOHC63.js +0 -147
  450. package/dist/chunk-SNWSES6T.js +0 -61
  451. package/dist/chunk-SNWSES6T.js.map +0 -1
  452. package/dist/chunk-SOTAOT6K.js +0 -863
  453. package/dist/chunk-SZH2WEZK.js +0 -202
  454. package/dist/chunk-TGEE6G6J.js +0 -142
  455. package/dist/chunk-UKTLIIEF.js +0 -685
  456. package/dist/chunk-UMBHBIJM.js +0 -374
  457. package/dist/chunk-UOWPRJIX.js +0 -732
  458. package/dist/chunk-UU7VBU24.js +0 -3378
  459. package/dist/chunk-VHM3GBST.js +0 -423
  460. package/dist/chunk-VPZIWF64.js +0 -86
  461. package/dist/chunk-VVMZ6YT5.js +0 -78
  462. package/dist/chunk-WDC5L2T6.js +0 -1862
  463. package/dist/chunk-WIZU7LR6.js +0 -329
  464. package/dist/chunk-WLTPXRHG.js +0 -398
  465. package/dist/chunk-WVEZYDPS.js +0 -509
  466. package/dist/chunk-WX674RVF.js +0 -252
  467. package/dist/chunk-XBGU4TLF.js +0 -405
  468. package/dist/chunk-YGJI27CJ.js +0 -64
  469. package/dist/chunk-ZAIDSFM6.js +0 -313
  470. package/dist/chunk-ZIJFBEFI.js +0 -127
  471. package/dist/chunk-ZJUUAZKY.js +0 -219
  472. package/dist/chunk-ZRYKGLSY.js +0 -152
  473. package/dist/claim-4EAC6OC4.js +0 -219
  474. package/dist/companies-WMYLPLXH.js +0 -37
  475. package/dist/company-2P5QATU7.js +0 -312
  476. package/dist/complete-XJXZ7U3J.js +0 -88
  477. package/dist/connect-7LAHO3GY.js +0 -47
  478. package/dist/conversation-IJG5T7DZ.js +0 -101
  479. package/dist/conversion-report-RJ5Z6JDW.js +0 -130
  480. package/dist/conversion-upload-command-ZZ5JYMBL.js +0 -459
  481. package/dist/conversion-writes-LYZFMH5I.js +0 -194
  482. package/dist/conversions-GNJQVSY4.js +0 -142
  483. package/dist/conversions-ZLBWAXLT.js +0 -78
  484. package/dist/copy-writes-FGMJ7N75.js +0 -174
  485. package/dist/create-2K7V2ANJ.js +0 -220
  486. package/dist/create-5D2LQU3V.js +0 -66
  487. package/dist/create-QXC34GLK.js +0 -191
  488. package/dist/create-RRUUHOUQ.js +0 -357
  489. package/dist/creatives-67CDPYL7.js +0 -132
  490. package/dist/creatives-ERHP7A7K.js +0 -236
  491. package/dist/creatives-JMKNKRRM.js +0 -48
  492. package/dist/credentials-FOVHUVCM.js +0 -292
  493. package/dist/critique-K2IBVCSM.js +0 -231
  494. package/dist/crm-R7CGIKHO.js +0 -419
  495. package/dist/crm-YFNIOO5E.js +0 -328
  496. package/dist/currency-QUQPGTN5.js +0 -91
  497. package/dist/custom-conversions-RZB2622Q.js +0 -140
  498. package/dist/customers-CH63IGZN.js +0 -70
  499. package/dist/data-CIPG3EOP.js +0 -665
  500. package/dist/delete-D5BNUJNO.js +0 -71
  501. package/dist/delete-JVYS4DKK.js +0 -72
  502. package/dist/delete-KN73PEH7.js +0 -61
  503. package/dist/demographics-QP55Q7QK.js +0 -146
  504. package/dist/discard-JYZGLDE6.js +0 -73
  505. package/dist/discover-Z6XJT3B4.js +0 -191
  506. package/dist/domain-YRFIHEHA.js +0 -105
  507. package/dist/download-EEEUPZN4.js +0 -175
  508. package/dist/draft-3L5UZ3JP.js +0 -643
  509. package/dist/draft-5Q7O4I3S.js +0 -228
  510. package/dist/draft-7QREAYBZ.js +0 -340
  511. package/dist/draft-EJ3THHCM.js +0 -428
  512. package/dist/draft-JPWMFZNZ.js +0 -584
  513. package/dist/draft-TPSWCE72.js +0 -390
  514. package/dist/experiment-YV7TWSRP.js +0 -2123
  515. package/dist/experiments-GQ3OI6P6.js +0 -242
  516. package/dist/extract-WWAZWGPH.js +0 -178
  517. package/dist/facets-QP66Q3NZ.js +0 -161
  518. package/dist/feedback-7QRUJAPJ.js +0 -154
  519. package/dist/fetch-QXFNBREE.js +0 -488
  520. package/dist/fit-FN4NZOAR.js +0 -70
  521. package/dist/flows-HW57AGUR.js +0 -406
  522. package/dist/forecast-5J3UOBEU.js +0 -123
  523. package/dist/forecast-SXZBIHFB.js +0 -190
  524. package/dist/funnel-ZGSOQZ7O.js +0 -702
  525. package/dist/generate-DWAKBRQJ.js +0 -265
  526. package/dist/get-2JKOCCVG.js +0 -115
  527. package/dist/get-GWOL7ZNS.js +0 -78
  528. package/dist/google-F77XV4ZC.js +0 -3809
  529. package/dist/google-F77XV4ZC.js.map +0 -1
  530. package/dist/google-LGNXPWOT.js +0 -165
  531. package/dist/google-ads-GEMKQXBP.js +0 -231
  532. package/dist/history-22WOREYD.js +0 -109
  533. package/dist/history-MUT62IIJ.js +0 -156
  534. package/dist/history-XRSQD2R7.js +0 -204
  535. package/dist/hubspot-2UXMXAXU.js +0 -1047
  536. package/dist/ideas-RXFJ6GPG.js +0 -50
  537. package/dist/images-X6DBJQI6.js +0 -92
  538. package/dist/ingest-2WLUOIHY.js +0 -163
  539. package/dist/ingest-WMVNUXCQ.js +0 -32
  540. package/dist/insights-53JGBSF7.js +0 -151
  541. package/dist/inspect-NN67LFED.js +0 -39
  542. package/dist/instant-experiences-MF2X374W.js +0 -268
  543. package/dist/intent-LJWAVCN6.js +0 -97
  544. package/dist/keyword-gap-YQL7MF3C.js +0 -173
  545. package/dist/keyword-metrics-7TJNVGIA.js +0 -235
  546. package/dist/keywords-for-site-SBGZROQZ.js +0 -135
  547. package/dist/languages-YX6RL4NF.js +0 -41
  548. package/dist/leads-7C6RRGQR.js +0 -138
  549. package/dist/leads-IBXGNXTX.js +0 -575
  550. package/dist/learn-JY33N4NQ.js +0 -214
  551. package/dist/line-item-writes-2H26WMPE.js +0 -213
  552. package/dist/line-items-M3V36TKY.js +0 -107
  553. package/dist/link-TGLEJWPV.js +0 -71
  554. package/dist/linkedin-FWD4I2FS.js +0 -1517
  555. package/dist/linkedin-person-WWHXBBBG.js +0 -143
  556. package/dist/list-5MGA2MWW.js +0 -321
  557. package/dist/list-PULAZQF7.js +0 -227
  558. package/dist/list-QTFLMWXX.js +0 -90
  559. package/dist/locations-RHTUYWMC.js +0 -69
  560. package/dist/locations-SW66CTZU.js +0 -41
  561. package/dist/log-MOJYCEBX.js +0 -99
  562. package/dist/make-6GKWMTPH.js +0 -1392
  563. package/dist/map-AURU4BXW.js +0 -520
  564. package/dist/mcp-M3PAMWYI.js +0 -1028
  565. package/dist/media-YPVGQ535.js +0 -18
  566. package/dist/media-sources-YHJIYD5X.js +0 -35
  567. package/dist/members-NNLATE23.js +0 -51
  568. package/dist/meta-6QC6KAPS.js +0 -152
  569. package/dist/metrics-6BXMR27J.js +0 -193
  570. package/dist/models-DV4G4A2W.js +0 -155
  571. package/dist/normalize-WTHZ66XA.js +0 -146
  572. package/dist/options-MTARVW42.js +0 -127
  573. package/dist/organization-HDS3GG5V.js +0 -950
  574. package/dist/page-photos-BEAMTVP5.js +0 -122
  575. package/dist/people-JZZA6Z36.js +0 -172
  576. package/dist/people-W5UBLCMB.js +0 -162
  577. package/dist/performance-62JPWFKG.js +0 -6361
  578. package/dist/performance-VFDKSSLS.js +0 -29
  579. package/dist/pipedrive-W5CH6RMG.js +0 -534
  580. package/dist/pixels-T73SVZ4G.js +0 -62
  581. package/dist/preview-NAAOUG36.js +0 -151
  582. package/dist/promoted-tweet-writes-BZRKVCYA.js +0 -185
  583. package/dist/promoted-tweets-OKDN6RLV.js +0 -119
  584. package/dist/publish-QSVCGLSG.js +0 -431
  585. package/dist/query-5ADP77DV.js +0 -68
  586. package/dist/reddit-UXLVSY4K.js +0 -31
  587. package/dist/refresh-AVLT5MVM.js +0 -101
  588. package/dist/release-DSRKE2RQ.js +0 -67
  589. package/dist/relevant-pages-MY3LFTDE.js +0 -101
  590. package/dist/remove-UKIA5UFX.js +0 -55
  591. package/dist/reopen-I7KSRGVX.js +0 -70
  592. package/dist/rerun-ZBRGGZ4F.js +0 -102
  593. package/dist/research-I6EUWUU5.js +0 -267
  594. package/dist/research-WYX6VMYS.js +0 -78
  595. package/dist/reset-IFM6VSJZ.js +0 -59
  596. package/dist/reset-LDIXYUZB.js +0 -59
  597. package/dist/resolve-SL4ZPMXN.js +0 -126
  598. package/dist/retry-4MVNBKJ5.js +0 -67
  599. package/dist/retry-O3RJ6GQM.js +0 -67
  600. package/dist/revenue-BNT2JYED.js +0 -100
  601. package/dist/rule-writes-CVP6CH2R.js +0 -534
  602. package/dist/rules-4FDMN3OI.js +0 -164
  603. package/dist/rules-LZ36YNG3.js +0 -234
  604. package/dist/run-IMBVCTRK.js +0 -79
  605. package/dist/run-LFRSK7UI.js +0 -74
  606. package/dist/scaffold-ad-YABEHRY5.js +0 -1604
  607. package/dist/scaffold-static-ad-HNRVTOLV.js +0 -999
  608. package/dist/scaffold-video-7TZQMQGD.js +0 -890
  609. package/dist/schedule-VZWOMF7M.js +0 -66
  610. package/dist/scheduled-agents-IHJERGZW.js +0 -59
  611. package/dist/schema-ACGJJGVM.js +0 -241
  612. package/dist/schema-GFGZ4I4V.js +0 -137
  613. package/dist/search-HY7CZ5LA.js +0 -230
  614. package/dist/search-terms-SWRRTKBV.js +0 -413
  615. package/dist/select-Z4PAJMWG.js +0 -135
  616. package/dist/set-ANZSYUQP.js +0 -287
  617. package/dist/set-prompt-4JTS7PMD.js +0 -205
  618. package/dist/setup-links-AGPYPQXO.js +0 -146
  619. package/dist/shopify-6JBE3LCH.js +0 -4034
  620. package/dist/site-AKJRZEWW.js +0 -182
  621. package/dist/sources-EJKW4LKC.js +0 -491
  622. package/dist/sources-OE4SJKET.js +0 -30
  623. package/dist/stale-VAUJB5M3.js +0 -93
  624. package/dist/status-ELU6Z2NI.js +0 -69
  625. package/dist/stock-7TUIU3J5.js +0 -214
  626. package/dist/studies-Y6PGWT66.js +0 -267
  627. package/dist/studio-PD4VOHWX.js +0 -49
  628. package/dist/study-writes-6F6O6N4E.js +0 -475
  629. package/dist/sync-DTPIOPWD.js +0 -59
  630. package/dist/sync-definition-JDFOLZ3E.js +0 -75
  631. package/dist/tags-CF7ANLPE.js +0 -25
  632. package/dist/tags-ELIVF3ZC.js +0 -25
  633. package/dist/tags-JV644EHH.js +0 -194
  634. package/dist/tags-MNL6DZYK.js +0 -25
  635. package/dist/tags-QCAQH6MA.js +0 -26
  636. package/dist/targeting-FRMVSXXL.js +0 -777
  637. package/dist/targeting-criteria-CNADJCNO.js +0 -113
  638. package/dist/targets-6B7P5OTX.js +0 -111
  639. package/dist/testimonials-O6APSOYR.js +0 -32
  640. package/dist/themes-GMZOWC3X.js +0 -103
  641. package/dist/top-companies-DDJPGBOB.js +0 -251
  642. package/dist/transcript-ZPPQOGN7.js +0 -169
  643. package/dist/translate-OTCGS6MM.js +0 -608
  644. package/dist/triggers-UVNVE2SG.js +0 -149
  645. package/dist/unlink-5RDFYULY.js +0 -74
  646. package/dist/unstage-ZNO7QUM2.js +0 -93
  647. package/dist/update-66CPGD32.js +0 -194
  648. package/dist/update-7EQTWSTE.js +0 -70
  649. package/dist/update-JRKRJX2F.js +0 -238
  650. package/dist/update-SNU6MAJG.js +0 -176
  651. package/dist/upload-DFHVCNVZ.js +0 -186
  652. package/dist/url-options-ZDCGO7VH.js +0 -137
  653. package/dist/url-params-3JUFOS5M.js +0 -103
  654. package/dist/validate-CA3PSA6J.js +0 -181
  655. package/dist/videos-PVQZMLXV.js +0 -41
  656. package/dist/viewer-check-65PWU46D.js +0 -90
  657. package/dist/visuals-YOIO5ET4.js +0 -130
  658. package/dist/web-QVPHHXHU.js +0 -234
  659. package/dist/winning-ads-JYCQNSK3.js +0 -88
  660. package/dist/write-commands-2DBNSTGT.js +0 -1556
  661. package/dist/write-commands-3BMPDY3K.js +0 -1261
  662. package/dist/x-TLVCXW5Y.js +0 -47
  663. /package/dist/{account-YLJRCKJD.js.map → account-RLE73GWJ.js.map} +0 -0
  664. /package/dist/{account-GBIEQDAR.js.map → account-ZFVU7HUJ.js.map} +0 -0
  665. /package/dist/{account-assets-Q2O3FRUE.js.map → account-assets-QEIXW7GA.js.map} +0 -0
  666. /package/dist/{account-level-NBEQ6R7X.js.map → account-level-25RKXCY4.js.map} +0 -0
  667. /package/dist/{account-reads-7DPRPWBK.js.map → account-reads-YWE43J72.js.map} +0 -0
  668. /package/dist/{account-users-7KCX6RRF.js.map → account-users-WJACFDIO.js.map} +0 -0
  669. /package/dist/{account-writes-WKG326GF.js.map → account-writes-VQG2DIL2.js.map} +0 -0
  670. /package/dist/{accounts-CWNHOU2D.js.map → accounts-C4TGANEM.js.map} +0 -0
  671. /package/dist/{accounts-T7DFD2HR.js.map → accounts-CBUR4HHR.js.map} +0 -0
  672. /package/dist/{accounts-AE2HVWJI.js.map → accounts-P6LTLXVK.js.map} +0 -0
  673. /package/dist/{actions-XA2BNQ2M.js.map → actions-P3J7B4UP.js.map} +0 -0
  674. /package/dist/{activecampaign-WGVHI5KJ.js.map → activecampaign-E7V5ZV2B.js.map} +0 -0
  675. /package/dist/{ad-group-writes-7D72YSZ3.js.map → ad-group-writes-6NSPVPO2.js.map} +0 -0
  676. /package/dist/{ad-groups-RKWIK443.js.map → ad-groups-XPFBEDTX.js.map} +0 -0
  677. /package/dist/{ad-writes-MVXTFP3G.js.map → ad-writes-ZFT6N6L4.js.map} +0 -0
  678. /package/dist/{add-MTWYV5IF.js.map → add-6CVZINC7.js.map} +0 -0
  679. /package/dist/{add-TEHN66ZU.js.map → add-GOJRYHKQ.js.map} +0 -0
  680. /package/dist/{add-H5DS3QGP.js.map → add-NYLSISGS.js.map} +0 -0
  681. /package/dist/{ads-HKPBNXWT.js.map → ads-GT2IXUZB.js.map} +0 -0
  682. /package/dist/{ads-EPFWBJ5V.js.map → ads-HMAJV2UN.js.map} +0 -0
  683. /package/dist/{ads-OXSPFP7L.js.map → ads-MF3RBGLM.js.map} +0 -0
  684. /package/dist/{adsets-IBLZP6EM.js.map → adsets-ZEQBO3XB.js.map} +0 -0
  685. /package/dist/{advertisers-XE5ZIMXU.js.map → advertisers-NJVSXQSR.js.map} +0 -0
  686. /package/dist/{alerts-QQWPHG3N.js.map → alerts-EDLS5VAU.js.map} +0 -0
  687. /package/dist/{analytics-HFJESHLA.js.map → analytics-57WA66NO.js.map} +0 -0
  688. /package/dist/{analytics-3CGPEWNX.js.map → analytics-HA35G6NL.js.map} +0 -0
  689. /package/dist/{animate-M3NETBDU.js.map → animate-ELVOWQD4.js.map} +0 -0
  690. /package/dist/{asset-writes-NTEJDVVM.js.map → asset-writes-DMI7XKF2.js.map} +0 -0
  691. /package/dist/{assign-HJJIUFU2.js.map → assign-VDR2DA4U.js.map} +0 -0
  692. /package/dist/{audience-size-3PL7RCFE.js.map → audience-size-RH3547ZB.js.map} +0 -0
  693. /package/dist/{audience-writes-DJHKIJP7.js.map → audience-writes-SV7UWLRK.js.map} +0 -0
  694. /package/dist/{audiences-7TGXZS3M.js.map → audiences-AQO2MXT4.js.map} +0 -0
  695. /package/dist/{audiences-GQ3GFJGU.js.map → audiences-H54RA555.js.map} +0 -0
  696. /package/dist/{audit-55NP5NSG.js.map → audit-3PVSCSEG.js.map} +0 -0
  697. /package/dist/{autocomplete-XXJOQG3B.js.map → autocomplete-2T77F4RY.js.map} +0 -0
  698. /package/dist/{avatars-C6ZLJ2JS.js.map → avatars-SP774CYD.js.map} +0 -0
  699. /package/dist/{bid-pricing-DMGB55M2.js.map → bid-pricing-VBYSDSEP.js.map} +0 -0
  700. /package/dist/{brief-XXC3J7NB.js.map → brief-Y2XB2R2U.js.map} +0 -0
  701. /package/dist/{campaign-groups-DXLJMXO6.js.map → campaign-groups-2NKPOYGS.js.map} +0 -0
  702. /package/dist/{campaign-writes-IYMSDPNS.js.map → campaign-writes-5CEFKZV5.js.map} +0 -0
  703. /package/dist/{campaign-writes-W7RGAJJM.js.map → campaign-writes-MYPDHTMJ.js.map} +0 -0
  704. /package/dist/{campaigns-RITTRJBX.js.map → campaigns-3YN2T46Q.js.map} +0 -0
  705. /package/dist/{campaigns-MRQ6WXG7.js.map → campaigns-444D7YJ7.js.map} +0 -0
  706. /package/dist/{campaigns-HZDIO72G.js.map → campaigns-OPRLK7AW.js.map} +0 -0
  707. /package/dist/{campaigns-VD7UOTRV.js.map → campaigns-TUWJBWTV.js.map} +0 -0
  708. /package/dist/{canvas-JU6QNTGE.js.map → canvas-VGSK3RJU.js.map} +0 -0
  709. /package/dist/{capabilities-5W5GCNPZ.js.map → capabilities-WBJ3XSM4.js.map} +0 -0
  710. /package/dist/{catalog-DEZPDMOD.js.map → catalog-QL3SAL67.js.map} +0 -0
  711. /package/dist/{catalogs-HW3VY4KU.js.map → catalogs-F33HX4RG.js.map} +0 -0
  712. /package/dist/{catalogs-H2T4Z6AS.js.map → catalogs-VT6CK7U3.js.map} +0 -0
  713. /package/dist/{changes-ZUPBYRVW.js.map → changes-RVAJE4O7.js.map} +0 -0
  714. /package/dist/{chatgpt-2UCND7NY.js.map → chatgpt-GEBWPTMO.js.map} +0 -0
  715. /package/dist/{check-GEF6GXE2.js.map → check-XAA3SAZM.js.map} +0 -0
  716. /package/dist/{chunk-TGEE6G6J.js.map → chunk-26PCRPMS.js.map} +0 -0
  717. /package/dist/{chunk-VPZIWF64.js.map → chunk-2GAD2YFD.js.map} +0 -0
  718. /package/dist/{chunk-FRWCTFTP.js.map → chunk-2VZQG4XE.js.map} +0 -0
  719. /package/dist/{chunk-D5VJDPVW.js.map → chunk-36EP3NUV.js.map} +0 -0
  720. /package/dist/{chunk-OXYSXFF3.js.map → chunk-37ZFOL3T.js.map} +0 -0
  721. /package/dist/{chunk-UMBHBIJM.js.map → chunk-3CSDJ42F.js.map} +0 -0
  722. /package/dist/{chunk-LLHYNE4C.js.map → chunk-3OOZHWBQ.js.map} +0 -0
  723. /package/dist/{chunk-LZ2E3LYO.js.map → chunk-46T7QB4V.js.map} +0 -0
  724. /package/dist/{chunk-SJGOHC63.js.map → chunk-5FE2YQHG.js.map} +0 -0
  725. /package/dist/{chunk-O2SBMFUX.js.map → chunk-5PU6S4HD.js.map} +0 -0
  726. /package/dist/{chunk-HPCP3RIC.js.map → chunk-5ZFH74JL.js.map} +0 -0
  727. /package/dist/{chunk-XBGU4TLF.js.map → chunk-66FLBIGF.js.map} +0 -0
  728. /package/dist/{chunk-2I3WYGAE.js.map → chunk-7FKNMOLI.js.map} +0 -0
  729. /package/dist/{chunk-MHOM2DGG.js.map → chunk-7J2OSQPE.js.map} +0 -0
  730. /package/dist/{chunk-CXVNM264.js.map → chunk-7YYB62Q6.js.map} +0 -0
  731. /package/dist/{chunk-NESWSXLV.js.map → chunk-ABSCXA3F.js.map} +0 -0
  732. /package/dist/{chunk-B55CVNVK.js.map → chunk-B7NURSEQ.js.map} +0 -0
  733. /package/dist/{chunk-VHM3GBST.js.map → chunk-CLDJNSMW.js.map} +0 -0
  734. /package/dist/{chunk-SHWLKMZE.js.map → chunk-CLS5IYAM.js.map} +0 -0
  735. /package/dist/{chunk-6FXEUO2G.js.map → chunk-CQGA6W4H.js.map} +0 -0
  736. /package/dist/{chunk-QYGKGAVD.js.map → chunk-DMH2KAVE.js.map} +0 -0
  737. /package/dist/{chunk-MMIHJYZF.js.map → chunk-E2HXOZS7.js.map} +0 -0
  738. /package/dist/{chunk-WX674RVF.js.map → chunk-FCLELV6X.js.map} +0 -0
  739. /package/dist/{chunk-UU7VBU24.js.map → chunk-FDJBCRJR.js.map} +0 -0
  740. /package/dist/{chunk-UKTLIIEF.js.map → chunk-FJWR6S7B.js.map} +0 -0
  741. /package/dist/{chunk-WIZU7LR6.js.map → chunk-HNCWQ6AC.js.map} +0 -0
  742. /package/dist/{chunk-ZRYKGLSY.js.map → chunk-HO4OU5GT.js.map} +0 -0
  743. /package/dist/{chunk-3Z3DQD3S.js.map → chunk-IHASMZN7.js.map} +0 -0
  744. /package/dist/{chunk-SERZDHRI.js.map → chunk-IN4F63GP.js.map} +0 -0
  745. /package/dist/{chunk-PLRRKSPY.js.map → chunk-J25723H5.js.map} +0 -0
  746. /package/dist/{chunk-NM65SWYX.js.map → chunk-JC2FE6LU.js.map} +0 -0
  747. /package/dist/{chunk-GWMIDTCA.js.map → chunk-KK6JTXF7.js.map} +0 -0
  748. /package/dist/{chunk-VVMZ6YT5.js.map → chunk-LBI25Z6J.js.map} +0 -0
  749. /package/dist/{chunk-WLTPXRHG.js.map → chunk-LO7ZELHR.js.map} +0 -0
  750. /package/dist/{chunk-ZAIDSFM6.js.map → chunk-MMPSEHVM.js.map} +0 -0
  751. /package/dist/{chunk-OIYSYI5Q.js.map → chunk-MQ7RLOYT.js.map} +0 -0
  752. /package/dist/{chunk-LM663MUK.js.map → chunk-NNNASQGG.js.map} +0 -0
  753. /package/dist/{chunk-I336DK3M.js.map → chunk-NPPE7K7H.js.map} +0 -0
  754. /package/dist/{chunk-J5PHVZPK.js.map → chunk-NRDQ4OBD.js.map} +0 -0
  755. /package/dist/{chunk-RUSUYWRU.js.map → chunk-NRKMVBXE.js.map} +0 -0
  756. /package/dist/{chunk-SOTAOT6K.js.map → chunk-O4HYOXFA.js.map} +0 -0
  757. /package/dist/{chunk-NGYRPA7Y.js.map → chunk-ODZ6UGC6.js.map} +0 -0
  758. /package/dist/{chunk-OGG7DKN5.js.map → chunk-OXC5TCEK.js.map} +0 -0
  759. /package/dist/{chunk-E4XRSTAS.js.map → chunk-PJ6E6KNJ.js.map} +0 -0
  760. /package/dist/{chunk-S7J2JP3U.js.map → chunk-PMYE6WGA.js.map} +0 -0
  761. /package/dist/{chunk-CUW3CNOE.js.map → chunk-PW4ZDUCA.js.map} +0 -0
  762. /package/dist/{chunk-LUF2VYOK.js.map → chunk-PZ6KNUAF.js.map} +0 -0
  763. /package/dist/{chunk-ZIJFBEFI.js.map → chunk-R2UE6S4P.js.map} +0 -0
  764. /package/dist/{chunk-SZH2WEZK.js.map → chunk-R6OOOA57.js.map} +0 -0
  765. /package/dist/{chunk-3NOL2JV6.js.map → chunk-RDOTHEEQ.js.map} +0 -0
  766. /package/dist/{chunk-WVEZYDPS.js.map → chunk-RGZ2M2WO.js.map} +0 -0
  767. /package/dist/{chunk-7Z2VGNPU.js.map → chunk-SPOEU6C6.js.map} +0 -0
  768. /package/dist/{chunk-2MTY4FXQ.js.map → chunk-T3XWTNBE.js.map} +0 -0
  769. /package/dist/{chunk-G7Q43JEZ.js.map → chunk-T6QQAQ27.js.map} +0 -0
  770. /package/dist/{chunk-4SYBNYE2.js.map → chunk-TDWIAG56.js.map} +0 -0
  771. /package/dist/{chunk-YGJI27CJ.js.map → chunk-TW5NVMPZ.js.map} +0 -0
  772. /package/dist/{chunk-BU2ETMFB.js.map → chunk-UDQ2DIVY.js.map} +0 -0
  773. /package/dist/{chunk-C6HUH6FG.js.map → chunk-UKETWBTK.js.map} +0 -0
  774. /package/dist/{chunk-62GKNMKZ.js.map → chunk-UTOVJPFC.js.map} +0 -0
  775. /package/dist/{chunk-OAU7QZC7.js.map → chunk-V2F4K63W.js.map} +0 -0
  776. /package/dist/{chunk-WDC5L2T6.js.map → chunk-V4LQLLV7.js.map} +0 -0
  777. /package/dist/{chunk-UOWPRJIX.js.map → chunk-V52PW3C3.js.map} +0 -0
  778. /package/dist/{chunk-24DS3ELG.js.map → chunk-VDYAVAVS.js.map} +0 -0
  779. /package/dist/{chunk-ZJUUAZKY.js.map → chunk-W3RIXRXK.js.map} +0 -0
  780. /package/dist/{chunk-LZYJJWRQ.js.map → chunk-XKNKIZ5R.js.map} +0 -0
  781. /package/dist/{chunk-EJRVEUZW.js.map → chunk-Y42IKJUR.js.map} +0 -0
  782. /package/dist/{chunk-IHWF5UAL.js.map → chunk-ZG567LXM.js.map} +0 -0
  783. /package/dist/{chunk-NG4IIZ4K.js.map → chunk-ZKKAPN3K.js.map} +0 -0
  784. /package/dist/{claim-4EAC6OC4.js.map → claim-UN2J6WIO.js.map} +0 -0
  785. /package/dist/{companies-WMYLPLXH.js.map → companies-DBURSUOC.js.map} +0 -0
  786. /package/dist/{company-2P5QATU7.js.map → company-SR7U47X4.js.map} +0 -0
  787. /package/dist/{complete-XJXZ7U3J.js.map → complete-Z2D6D6IN.js.map} +0 -0
  788. /package/dist/{connect-7LAHO3GY.js.map → connect-VM5MRQFR.js.map} +0 -0
  789. /package/dist/{conversation-IJG5T7DZ.js.map → conversation-FU6E5YUO.js.map} +0 -0
  790. /package/dist/{conversion-report-RJ5Z6JDW.js.map → conversion-report-6DLSLJC5.js.map} +0 -0
  791. /package/dist/{conversion-upload-command-ZZ5JYMBL.js.map → conversion-upload-command-YFMPFAXF.js.map} +0 -0
  792. /package/dist/{conversion-writes-LYZFMH5I.js.map → conversion-writes-4H2LTWBX.js.map} +0 -0
  793. /package/dist/{conversions-GNJQVSY4.js.map → conversions-5QVJQE2C.js.map} +0 -0
  794. /package/dist/{conversions-ZLBWAXLT.js.map → conversions-L37NR2WG.js.map} +0 -0
  795. /package/dist/{copy-writes-FGMJ7N75.js.map → copy-writes-YVZMTTLV.js.map} +0 -0
  796. /package/dist/{create-RRUUHOUQ.js.map → create-DB5EHYOM.js.map} +0 -0
  797. /package/dist/{create-2K7V2ANJ.js.map → create-EZC4XAKH.js.map} +0 -0
  798. /package/dist/{create-QXC34GLK.js.map → create-FXZG2ZI3.js.map} +0 -0
  799. /package/dist/{create-5D2LQU3V.js.map → create-FYMLEBHF.js.map} +0 -0
  800. /package/dist/{creatives-67CDPYL7.js.map → creatives-2DO5TDDB.js.map} +0 -0
  801. /package/dist/{creatives-ERHP7A7K.js.map → creatives-GCQTDOSR.js.map} +0 -0
  802. /package/dist/{creatives-JMKNKRRM.js.map → creatives-R4RCETJG.js.map} +0 -0
  803. /package/dist/{credentials-FOVHUVCM.js.map → credentials-U7V2CTFO.js.map} +0 -0
  804. /package/dist/{critique-K2IBVCSM.js.map → critique-Q3PS4PEU.js.map} +0 -0
  805. /package/dist/{crm-R7CGIKHO.js.map → crm-D7IVP2KI.js.map} +0 -0
  806. /package/dist/{crm-YFNIOO5E.js.map → crm-GARQADYL.js.map} +0 -0
  807. /package/dist/{currency-QUQPGTN5.js.map → currency-AZLCACYY.js.map} +0 -0
  808. /package/dist/{custom-conversions-RZB2622Q.js.map → custom-conversions-A2ROWOH6.js.map} +0 -0
  809. /package/dist/{customers-CH63IGZN.js.map → customers-EUZBHVYZ.js.map} +0 -0
  810. /package/dist/{data-CIPG3EOP.js.map → data-JRLTQ2ZL.js.map} +0 -0
  811. /package/dist/{delete-KN73PEH7.js.map → delete-CR7E46YF.js.map} +0 -0
  812. /package/dist/{delete-JVYS4DKK.js.map → delete-HYRRPAXX.js.map} +0 -0
  813. /package/dist/{delete-D5BNUJNO.js.map → delete-M6HCS4OQ.js.map} +0 -0
  814. /package/dist/{demographics-QP55Q7QK.js.map → demographics-CBL4AQWV.js.map} +0 -0
  815. /package/dist/{discard-JYZGLDE6.js.map → discard-JQRZNY3R.js.map} +0 -0
  816. /package/dist/{discover-Z6XJT3B4.js.map → discover-KBGB2T4P.js.map} +0 -0
  817. /package/dist/{domain-YRFIHEHA.js.map → domain-4EO4COCL.js.map} +0 -0
  818. /package/dist/{download-EEEUPZN4.js.map → download-ZNGNRIIX.js.map} +0 -0
  819. /package/dist/{draft-JPWMFZNZ.js.map → draft-6MDRVJFE.js.map} +0 -0
  820. /package/dist/{draft-EJ3THHCM.js.map → draft-AWJAXOSR.js.map} +0 -0
  821. /package/dist/{draft-7QREAYBZ.js.map → draft-JMMX67IN.js.map} +0 -0
  822. /package/dist/{draft-3L5UZ3JP.js.map → draft-N6DTG4HM.js.map} +0 -0
  823. /package/dist/{draft-TPSWCE72.js.map → draft-OGECS4GX.js.map} +0 -0
  824. /package/dist/{draft-5Q7O4I3S.js.map → draft-OHVPBP4V.js.map} +0 -0
  825. /package/dist/{experiment-YV7TWSRP.js.map → experiment-FMMX57VR.js.map} +0 -0
  826. /package/dist/{experiments-GQ3OI6P6.js.map → experiments-FGIEJZPV.js.map} +0 -0
  827. /package/dist/{extract-WWAZWGPH.js.map → extract-3JRZ7YLD.js.map} +0 -0
  828. /package/dist/{facets-QP66Q3NZ.js.map → facets-WMBQMAMN.js.map} +0 -0
  829. /package/dist/{feedback-7QRUJAPJ.js.map → feedback-P553UQFJ.js.map} +0 -0
  830. /package/dist/{fetch-QXFNBREE.js.map → fetch-TLH7VG4F.js.map} +0 -0
  831. /package/dist/{fit-FN4NZOAR.js.map → fit-7A3GZNZL.js.map} +0 -0
  832. /package/dist/{flows-HW57AGUR.js.map → flows-SAMB5BZM.js.map} +0 -0
  833. /package/dist/{forecast-5J3UOBEU.js.map → forecast-6M43TIGT.js.map} +0 -0
  834. /package/dist/{forecast-SXZBIHFB.js.map → forecast-QSYP6Q5B.js.map} +0 -0
  835. /package/dist/{funnel-ZGSOQZ7O.js.map → funnel-BBGXGVSG.js.map} +0 -0
  836. /package/dist/{generate-DWAKBRQJ.js.map → generate-JMB22RBM.js.map} +0 -0
  837. /package/dist/{get-2JKOCCVG.js.map → get-FP7S3HD2.js.map} +0 -0
  838. /package/dist/{get-GWOL7ZNS.js.map → get-W7MYNRX2.js.map} +0 -0
  839. /package/dist/{google-LGNXPWOT.js.map → google-3FVRLOUG.js.map} +0 -0
  840. /package/dist/{google-ads-GEMKQXBP.js.map → google-ads-RSEBUPMP.js.map} +0 -0
  841. /package/dist/{history-XRSQD2R7.js.map → history-7VIUDUWI.js.map} +0 -0
  842. /package/dist/{history-MUT62IIJ.js.map → history-VRY2O64B.js.map} +0 -0
  843. /package/dist/{history-22WOREYD.js.map → history-YMFYXCOA.js.map} +0 -0
  844. /package/dist/{hubspot-2UXMXAXU.js.map → hubspot-V42TIKKP.js.map} +0 -0
  845. /package/dist/{ideas-RXFJ6GPG.js.map → ideas-Q6ESJXI2.js.map} +0 -0
  846. /package/dist/{images-X6DBJQI6.js.map → images-2DWUQNLR.js.map} +0 -0
  847. /package/dist/{ingest-2WLUOIHY.js.map → ingest-ST2VZGCW.js.map} +0 -0
  848. /package/dist/{ingest-WMVNUXCQ.js.map → ingest-YICQAS7O.js.map} +0 -0
  849. /package/dist/{insights-53JGBSF7.js.map → insights-E3VPRDIZ.js.map} +0 -0
  850. /package/dist/{inspect-NN67LFED.js.map → inspect-7KMQJF2H.js.map} +0 -0
  851. /package/dist/{instant-experiences-MF2X374W.js.map → instant-experiences-CN4HND7L.js.map} +0 -0
  852. /package/dist/{intent-LJWAVCN6.js.map → intent-EVNPBRG5.js.map} +0 -0
  853. /package/dist/{keyword-gap-YQL7MF3C.js.map → keyword-gap-ANMM2DBE.js.map} +0 -0
  854. /package/dist/{keyword-metrics-7TJNVGIA.js.map → keyword-metrics-BG7QTPLV.js.map} +0 -0
  855. /package/dist/{keywords-for-site-SBGZROQZ.js.map → keywords-for-site-ZPI3O7KF.js.map} +0 -0
  856. /package/dist/{languages-YX6RL4NF.js.map → languages-P2SFZMKV.js.map} +0 -0
  857. /package/dist/{leads-7C6RRGQR.js.map → leads-WU4FCHHD.js.map} +0 -0
  858. /package/dist/{leads-IBXGNXTX.js.map → leads-YVNMTGWX.js.map} +0 -0
  859. /package/dist/{learn-JY33N4NQ.js.map → learn-DH7FWTTD.js.map} +0 -0
  860. /package/dist/{line-item-writes-2H26WMPE.js.map → line-item-writes-22LY7PTP.js.map} +0 -0
  861. /package/dist/{line-items-M3V36TKY.js.map → line-items-M3OH3BEA.js.map} +0 -0
  862. /package/dist/{link-TGLEJWPV.js.map → link-F4JRMM2V.js.map} +0 -0
  863. /package/dist/{linkedin-FWD4I2FS.js.map → linkedin-OPCIYMY4.js.map} +0 -0
  864. /package/dist/{linkedin-person-WWHXBBBG.js.map → linkedin-person-LZ2J5PUM.js.map} +0 -0
  865. /package/dist/{list-QTFLMWXX.js.map → list-2BOGETGJ.js.map} +0 -0
  866. /package/dist/{list-PULAZQF7.js.map → list-FWJ5PROQ.js.map} +0 -0
  867. /package/dist/{list-5MGA2MWW.js.map → list-QDNMJ4N2.js.map} +0 -0
  868. /package/dist/{locations-SW66CTZU.js.map → locations-L2UPXDZF.js.map} +0 -0
  869. /package/dist/{locations-RHTUYWMC.js.map → locations-ZV6EK2BK.js.map} +0 -0
  870. /package/dist/{log-MOJYCEBX.js.map → log-5HBYAPWG.js.map} +0 -0
  871. /package/dist/{make-6GKWMTPH.js.map → make-TIEWBNED.js.map} +0 -0
  872. /package/dist/{map-AURU4BXW.js.map → map-LCBLGR6H.js.map} +0 -0
  873. /package/dist/{mcp-M3PAMWYI.js.map → mcp-ECZDK7PR.js.map} +0 -0
  874. /package/dist/{media-YPVGQ535.js.map → media-BKRKJBNX.js.map} +0 -0
  875. /package/dist/{media-sources-YHJIYD5X.js.map → media-sources-WHP6DDVS.js.map} +0 -0
  876. /package/dist/{members-NNLATE23.js.map → members-4QJ4NFN5.js.map} +0 -0
  877. /package/dist/{meta-6QC6KAPS.js.map → meta-7XENEZST.js.map} +0 -0
  878. /package/dist/{metrics-6BXMR27J.js.map → metrics-KU5HKZTO.js.map} +0 -0
  879. /package/dist/{models-DV4G4A2W.js.map → models-TVAUSO3P.js.map} +0 -0
  880. /package/dist/{normalize-WTHZ66XA.js.map → normalize-7MQY7OFU.js.map} +0 -0
  881. /package/dist/{options-MTARVW42.js.map → options-GVI7MGCY.js.map} +0 -0
  882. /package/dist/{organization-HDS3GG5V.js.map → organization-LIWWTLDN.js.map} +0 -0
  883. /package/dist/{page-photos-BEAMTVP5.js.map → page-photos-MNK3A56N.js.map} +0 -0
  884. /package/dist/{people-W5UBLCMB.js.map → people-53RA2YV2.js.map} +0 -0
  885. /package/dist/{people-JZZA6Z36.js.map → people-T5MCOHLG.js.map} +0 -0
  886. /package/dist/{performance-62JPWFKG.js.map → performance-CSEBHDAH.js.map} +0 -0
  887. /package/dist/{performance-VFDKSSLS.js.map → performance-YFJOEFIQ.js.map} +0 -0
  888. /package/dist/{pipedrive-W5CH6RMG.js.map → pipedrive-XISQ2EDT.js.map} +0 -0
  889. /package/dist/{pixels-T73SVZ4G.js.map → pixels-NGCNKAV5.js.map} +0 -0
  890. /package/dist/{preview-NAAOUG36.js.map → preview-6GOFEE53.js.map} +0 -0
  891. /package/dist/{promoted-tweet-writes-BZRKVCYA.js.map → promoted-tweet-writes-QU2QY2LD.js.map} +0 -0
  892. /package/dist/{promoted-tweets-OKDN6RLV.js.map → promoted-tweets-DS3M3EZP.js.map} +0 -0
  893. /package/dist/{publish-QSVCGLSG.js.map → publish-CA2H6ZFM.js.map} +0 -0
  894. /package/dist/{query-5ADP77DV.js.map → query-B6PJNOJR.js.map} +0 -0
  895. /package/dist/{reddit-UXLVSY4K.js.map → reddit-E4XVRGY3.js.map} +0 -0
  896. /package/dist/{refresh-AVLT5MVM.js.map → refresh-Q4X32QZ5.js.map} +0 -0
  897. /package/dist/{release-DSRKE2RQ.js.map → release-IOKAJJAG.js.map} +0 -0
  898. /package/dist/{relevant-pages-MY3LFTDE.js.map → relevant-pages-PWVMSEEY.js.map} +0 -0
  899. /package/dist/{remove-UKIA5UFX.js.map → remove-VWUW3G2H.js.map} +0 -0
  900. /package/dist/{reopen-I7KSRGVX.js.map → reopen-35JFBIJH.js.map} +0 -0
  901. /package/dist/{rerun-ZBRGGZ4F.js.map → rerun-6BMX5OGY.js.map} +0 -0
  902. /package/dist/{research-WYX6VMYS.js.map → research-5LQIXWT5.js.map} +0 -0
  903. /package/dist/{research-I6EUWUU5.js.map → research-C7MLB4GD.js.map} +0 -0
  904. /package/dist/{reset-IFM6VSJZ.js.map → reset-7OVJE4VP.js.map} +0 -0
  905. /package/dist/{reset-LDIXYUZB.js.map → reset-JIG6DVMC.js.map} +0 -0
  906. /package/dist/{resolve-SL4ZPMXN.js.map → resolve-53VNKAIE.js.map} +0 -0
  907. /package/dist/{retry-4MVNBKJ5.js.map → retry-AJQA4NS6.js.map} +0 -0
  908. /package/dist/{retry-O3RJ6GQM.js.map → retry-C2KA32FO.js.map} +0 -0
  909. /package/dist/{revenue-BNT2JYED.js.map → revenue-YHHS334Q.js.map} +0 -0
  910. /package/dist/{rule-writes-CVP6CH2R.js.map → rule-writes-NHGM2QAL.js.map} +0 -0
  911. /package/dist/{rules-LZ36YNG3.js.map → rules-G4BNN3K7.js.map} +0 -0
  912. /package/dist/{rules-4FDMN3OI.js.map → rules-O4AFVB5T.js.map} +0 -0
  913. /package/dist/{run-IMBVCTRK.js.map → run-CJV4IMUK.js.map} +0 -0
  914. /package/dist/{run-LFRSK7UI.js.map → run-YBR5DEXL.js.map} +0 -0
  915. /package/dist/{scaffold-ad-YABEHRY5.js.map → scaffold-ad-S77BNZNO.js.map} +0 -0
  916. /package/dist/{scaffold-static-ad-HNRVTOLV.js.map → scaffold-static-ad-RKIPMT3C.js.map} +0 -0
  917. /package/dist/{scaffold-video-7TZQMQGD.js.map → scaffold-video-Z6KVVMRZ.js.map} +0 -0
  918. /package/dist/{schedule-VZWOMF7M.js.map → schedule-LQ3MGDUB.js.map} +0 -0
  919. /package/dist/{scheduled-agents-IHJERGZW.js.map → scheduled-agents-Y74VUWHM.js.map} +0 -0
  920. /package/dist/{schema-ACGJJGVM.js.map → schema-QY7GVP64.js.map} +0 -0
  921. /package/dist/{schema-GFGZ4I4V.js.map → schema-VFA7XDIJ.js.map} +0 -0
  922. /package/dist/{search-HY7CZ5LA.js.map → search-K2UGFDNL.js.map} +0 -0
  923. /package/dist/{search-terms-SWRRTKBV.js.map → search-terms-GSPUCEUQ.js.map} +0 -0
  924. /package/dist/{select-Z4PAJMWG.js.map → select-Q75CYXUD.js.map} +0 -0
  925. /package/dist/{set-ANZSYUQP.js.map → set-VHE7IBC5.js.map} +0 -0
  926. /package/dist/{set-prompt-4JTS7PMD.js.map → set-prompt-RDHWHIIA.js.map} +0 -0
  927. /package/dist/{setup-links-AGPYPQXO.js.map → setup-links-UK76TGP7.js.map} +0 -0
  928. /package/dist/{shopify-6JBE3LCH.js.map → shopify-N22Z2LH7.js.map} +0 -0
  929. /package/dist/{site-AKJRZEWW.js.map → site-PX2UP6WJ.js.map} +0 -0
  930. /package/dist/{sources-EJKW4LKC.js.map → sources-W3DYPF7P.js.map} +0 -0
  931. /package/dist/{sources-OE4SJKET.js.map → sources-XWQMCQKM.js.map} +0 -0
  932. /package/dist/{stale-VAUJB5M3.js.map → stale-LUUDQKHB.js.map} +0 -0
  933. /package/dist/{status-ELU6Z2NI.js.map → status-JKVA6RFG.js.map} +0 -0
  934. /package/dist/{stock-7TUIU3J5.js.map → stock-K24GSGUX.js.map} +0 -0
  935. /package/dist/{studies-Y6PGWT66.js.map → studies-LVEZW6OX.js.map} +0 -0
  936. /package/dist/{studio-PD4VOHWX.js.map → studio-EPR755MN.js.map} +0 -0
  937. /package/dist/{study-writes-6F6O6N4E.js.map → study-writes-YT57VAGI.js.map} +0 -0
  938. /package/dist/{sync-DTPIOPWD.js.map → sync-FA6XW6QW.js.map} +0 -0
  939. /package/dist/{sync-definition-JDFOLZ3E.js.map → sync-definition-3ZO3IMHB.js.map} +0 -0
  940. /package/dist/{tags-JV644EHH.js.map → tags-IH4JQLOQ.js.map} +0 -0
  941. /package/dist/{tags-MNL6DZYK.js.map → tags-MZI4AUFX.js.map} +0 -0
  942. /package/dist/{tags-QCAQH6MA.js.map → tags-NNQ7ZIFO.js.map} +0 -0
  943. /package/dist/{tags-ELIVF3ZC.js.map → tags-QLTH4QXC.js.map} +0 -0
  944. /package/dist/{tags-CF7ANLPE.js.map → tags-XSADREK2.js.map} +0 -0
  945. /package/dist/{targeting-FRMVSXXL.js.map → targeting-U25ZHNG5.js.map} +0 -0
  946. /package/dist/{targeting-criteria-CNADJCNO.js.map → targeting-criteria-INSCNLEY.js.map} +0 -0
  947. /package/dist/{targets-6B7P5OTX.js.map → targets-NEHSCYCW.js.map} +0 -0
  948. /package/dist/{testimonials-O6APSOYR.js.map → testimonials-A6GO4I6X.js.map} +0 -0
  949. /package/dist/{themes-GMZOWC3X.js.map → themes-BGOWQB5V.js.map} +0 -0
  950. /package/dist/{top-companies-DDJPGBOB.js.map → top-companies-XE4VQ4AO.js.map} +0 -0
  951. /package/dist/{transcript-ZPPQOGN7.js.map → transcript-3L3FCPQG.js.map} +0 -0
  952. /package/dist/{translate-OTCGS6MM.js.map → translate-OONH3P2L.js.map} +0 -0
  953. /package/dist/{triggers-UVNVE2SG.js.map → triggers-KZBMLFNY.js.map} +0 -0
  954. /package/dist/{unlink-5RDFYULY.js.map → unlink-Z276IDVH.js.map} +0 -0
  955. /package/dist/{unstage-ZNO7QUM2.js.map → unstage-V2DWN66K.js.map} +0 -0
  956. /package/dist/{update-7EQTWSTE.js.map → update-F3FGXY2K.js.map} +0 -0
  957. /package/dist/{update-SNU6MAJG.js.map → update-O5BW3QS5.js.map} +0 -0
  958. /package/dist/{update-JRKRJX2F.js.map → update-RJD5NYZL.js.map} +0 -0
  959. /package/dist/{update-66CPGD32.js.map → update-WJ5O7ZIC.js.map} +0 -0
  960. /package/dist/{upload-DFHVCNVZ.js.map → upload-VPHUD4TJ.js.map} +0 -0
  961. /package/dist/{url-options-ZDCGO7VH.js.map → url-options-JAXYCQV6.js.map} +0 -0
  962. /package/dist/{url-params-3JUFOS5M.js.map → url-params-5DRKMYKX.js.map} +0 -0
  963. /package/dist/{validate-CA3PSA6J.js.map → validate-FCNVFPBX.js.map} +0 -0
  964. /package/dist/{videos-PVQZMLXV.js.map → videos-FW63565A.js.map} +0 -0
  965. /package/dist/{viewer-check-65PWU46D.js.map → viewer-check-THQ5IOLQ.js.map} +0 -0
  966. /package/dist/{visuals-YOIO5ET4.js.map → visuals-J2I74TLG.js.map} +0 -0
  967. /package/dist/{web-QVPHHXHU.js.map → web-PEXBI7YS.js.map} +0 -0
  968. /package/dist/{winning-ads-JYCQNSK3.js.map → winning-ads-6FRQSECL.js.map} +0 -0
  969. /package/dist/{write-commands-2DBNSTGT.js.map → write-commands-FK4NX7Q7.js.map} +0 -0
  970. /package/dist/{write-commands-3BMPDY3K.js.map → write-commands-KYJPZGGS.js.map} +0 -0
  971. /package/dist/{x-TLVCXW5Y.js.map → x-57FGNEPO.js.map} +0 -0
@@ -1,3252 +0,0 @@
1
- import {
2
- __commonJS,
3
- __toESM
4
- } from "./chunk-YQSBHWOI.js";
5
-
6
- // ../../node_modules/.pnpm/safe-stable-stringify@2.5.0/node_modules/safe-stable-stringify/index.js
7
- var require_safe_stable_stringify = __commonJS({
8
- "../../node_modules/.pnpm/safe-stable-stringify@2.5.0/node_modules/safe-stable-stringify/index.js"(exports, module) {
9
- "use strict";
10
- var { hasOwnProperty } = Object.prototype;
11
- var stringify = configure2();
12
- stringify.configure = configure2;
13
- stringify.stringify = stringify;
14
- stringify.default = stringify;
15
- exports.stringify = stringify;
16
- exports.configure = configure2;
17
- module.exports = stringify;
18
- var strEscapeSequencesRegExp = /[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;
19
- function strEscape(str) {
20
- if (str.length < 5e3 && !strEscapeSequencesRegExp.test(str)) {
21
- return `"${str}"`;
22
- }
23
- return JSON.stringify(str);
24
- }
25
- function sort(array, comparator) {
26
- if (array.length > 200 || comparator) {
27
- return array.sort(comparator);
28
- }
29
- for (let i = 1; i < array.length; i++) {
30
- const currentValue = array[i];
31
- let position = i;
32
- while (position !== 0 && array[position - 1] > currentValue) {
33
- array[position] = array[position - 1];
34
- position--;
35
- }
36
- array[position] = currentValue;
37
- }
38
- return array;
39
- }
40
- var typedArrayPrototypeGetSymbolToStringTag = Object.getOwnPropertyDescriptor(
41
- Object.getPrototypeOf(
42
- Object.getPrototypeOf(
43
- new Int8Array()
44
- )
45
- ),
46
- Symbol.toStringTag
47
- ).get;
48
- function isTypedArrayWithEntries(value) {
49
- return typedArrayPrototypeGetSymbolToStringTag.call(value) !== void 0 && value.length !== 0;
50
- }
51
- function stringifyTypedArray(array, separator, maximumBreadth) {
52
- if (array.length < maximumBreadth) {
53
- maximumBreadth = array.length;
54
- }
55
- const whitespace = separator === "," ? "" : " ";
56
- let res = `"0":${whitespace}${array[0]}`;
57
- for (let i = 1; i < maximumBreadth; i++) {
58
- res += `${separator}"${i}":${whitespace}${array[i]}`;
59
- }
60
- return res;
61
- }
62
- function getCircularValueOption(options) {
63
- if (hasOwnProperty.call(options, "circularValue")) {
64
- const circularValue = options.circularValue;
65
- if (typeof circularValue === "string") {
66
- return `"${circularValue}"`;
67
- }
68
- if (circularValue == null) {
69
- return circularValue;
70
- }
71
- if (circularValue === Error || circularValue === TypeError) {
72
- return {
73
- toString() {
74
- throw new TypeError("Converting circular structure to JSON");
75
- }
76
- };
77
- }
78
- throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined');
79
- }
80
- return '"[Circular]"';
81
- }
82
- function getDeterministicOption(options) {
83
- let value;
84
- if (hasOwnProperty.call(options, "deterministic")) {
85
- value = options.deterministic;
86
- if (typeof value !== "boolean" && typeof value !== "function") {
87
- throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');
88
- }
89
- }
90
- return value === void 0 ? true : value;
91
- }
92
- function getBooleanOption(options, key) {
93
- let value;
94
- if (hasOwnProperty.call(options, key)) {
95
- value = options[key];
96
- if (typeof value !== "boolean") {
97
- throw new TypeError(`The "${key}" argument must be of type boolean`);
98
- }
99
- }
100
- return value === void 0 ? true : value;
101
- }
102
- function getPositiveIntegerOption(options, key) {
103
- let value;
104
- if (hasOwnProperty.call(options, key)) {
105
- value = options[key];
106
- if (typeof value !== "number") {
107
- throw new TypeError(`The "${key}" argument must be of type number`);
108
- }
109
- if (!Number.isInteger(value)) {
110
- throw new TypeError(`The "${key}" argument must be an integer`);
111
- }
112
- if (value < 1) {
113
- throw new RangeError(`The "${key}" argument must be >= 1`);
114
- }
115
- }
116
- return value === void 0 ? Infinity : value;
117
- }
118
- function getItemCount(number) {
119
- if (number === 1) {
120
- return "1 item";
121
- }
122
- return `${number} items`;
123
- }
124
- function getUniqueReplacerSet(replacerArray) {
125
- const replacerSet = /* @__PURE__ */ new Set();
126
- for (const value of replacerArray) {
127
- if (typeof value === "string" || typeof value === "number") {
128
- replacerSet.add(String(value));
129
- }
130
- }
131
- return replacerSet;
132
- }
133
- function getStrictOption(options) {
134
- if (hasOwnProperty.call(options, "strict")) {
135
- const value = options.strict;
136
- if (typeof value !== "boolean") {
137
- throw new TypeError('The "strict" argument must be of type boolean');
138
- }
139
- if (value) {
140
- return (value2) => {
141
- let message = `Object can not safely be stringified. Received type ${typeof value2}`;
142
- if (typeof value2 !== "function") message += ` (${value2.toString()})`;
143
- throw new Error(message);
144
- };
145
- }
146
- }
147
- }
148
- function configure2(options) {
149
- options = { ...options };
150
- const fail = getStrictOption(options);
151
- if (fail) {
152
- if (options.bigint === void 0) {
153
- options.bigint = false;
154
- }
155
- if (!("circularValue" in options)) {
156
- options.circularValue = Error;
157
- }
158
- }
159
- const circularValue = getCircularValueOption(options);
160
- const bigint = getBooleanOption(options, "bigint");
161
- const deterministic = getDeterministicOption(options);
162
- const comparator = typeof deterministic === "function" ? deterministic : void 0;
163
- const maximumDepth = getPositiveIntegerOption(options, "maximumDepth");
164
- const maximumBreadth = getPositiveIntegerOption(options, "maximumBreadth");
165
- function stringifyFnReplacer(key, parent, stack, replacer, spacer, indentation) {
166
- let value = parent[key];
167
- if (typeof value === "object" && value !== null && typeof value.toJSON === "function") {
168
- value = value.toJSON(key);
169
- }
170
- value = replacer.call(parent, key, value);
171
- switch (typeof value) {
172
- case "string":
173
- return strEscape(value);
174
- case "object": {
175
- if (value === null) {
176
- return "null";
177
- }
178
- if (stack.indexOf(value) !== -1) {
179
- return circularValue;
180
- }
181
- let res = "";
182
- let join = ",";
183
- const originalIndentation = indentation;
184
- if (Array.isArray(value)) {
185
- if (value.length === 0) {
186
- return "[]";
187
- }
188
- if (maximumDepth < stack.length + 1) {
189
- return '"[Array]"';
190
- }
191
- stack.push(value);
192
- if (spacer !== "") {
193
- indentation += spacer;
194
- res += `
195
- ${indentation}`;
196
- join = `,
197
- ${indentation}`;
198
- }
199
- const maximumValuesToStringify = Math.min(value.length, maximumBreadth);
200
- let i = 0;
201
- for (; i < maximumValuesToStringify - 1; i++) {
202
- const tmp2 = stringifyFnReplacer(String(i), value, stack, replacer, spacer, indentation);
203
- res += tmp2 !== void 0 ? tmp2 : "null";
204
- res += join;
205
- }
206
- const tmp = stringifyFnReplacer(String(i), value, stack, replacer, spacer, indentation);
207
- res += tmp !== void 0 ? tmp : "null";
208
- if (value.length - 1 > maximumBreadth) {
209
- const removedKeys = value.length - maximumBreadth - 1;
210
- res += `${join}"... ${getItemCount(removedKeys)} not stringified"`;
211
- }
212
- if (spacer !== "") {
213
- res += `
214
- ${originalIndentation}`;
215
- }
216
- stack.pop();
217
- return `[${res}]`;
218
- }
219
- let keys = Object.keys(value);
220
- const keyLength = keys.length;
221
- if (keyLength === 0) {
222
- return "{}";
223
- }
224
- if (maximumDepth < stack.length + 1) {
225
- return '"[Object]"';
226
- }
227
- let whitespace = "";
228
- let separator = "";
229
- if (spacer !== "") {
230
- indentation += spacer;
231
- join = `,
232
- ${indentation}`;
233
- whitespace = " ";
234
- }
235
- const maximumPropertiesToStringify = Math.min(keyLength, maximumBreadth);
236
- if (deterministic && !isTypedArrayWithEntries(value)) {
237
- keys = sort(keys, comparator);
238
- }
239
- stack.push(value);
240
- for (let i = 0; i < maximumPropertiesToStringify; i++) {
241
- const key2 = keys[i];
242
- const tmp = stringifyFnReplacer(key2, value, stack, replacer, spacer, indentation);
243
- if (tmp !== void 0) {
244
- res += `${separator}${strEscape(key2)}:${whitespace}${tmp}`;
245
- separator = join;
246
- }
247
- }
248
- if (keyLength > maximumBreadth) {
249
- const removedKeys = keyLength - maximumBreadth;
250
- res += `${separator}"...":${whitespace}"${getItemCount(removedKeys)} not stringified"`;
251
- separator = join;
252
- }
253
- if (spacer !== "" && separator.length > 1) {
254
- res = `
255
- ${indentation}${res}
256
- ${originalIndentation}`;
257
- }
258
- stack.pop();
259
- return `{${res}}`;
260
- }
261
- case "number":
262
- return isFinite(value) ? String(value) : fail ? fail(value) : "null";
263
- case "boolean":
264
- return value === true ? "true" : "false";
265
- case "undefined":
266
- return void 0;
267
- case "bigint":
268
- if (bigint) {
269
- return String(value);
270
- }
271
- // fallthrough
272
- default:
273
- return fail ? fail(value) : void 0;
274
- }
275
- }
276
- function stringifyArrayReplacer(key, value, stack, replacer, spacer, indentation) {
277
- if (typeof value === "object" && value !== null && typeof value.toJSON === "function") {
278
- value = value.toJSON(key);
279
- }
280
- switch (typeof value) {
281
- case "string":
282
- return strEscape(value);
283
- case "object": {
284
- if (value === null) {
285
- return "null";
286
- }
287
- if (stack.indexOf(value) !== -1) {
288
- return circularValue;
289
- }
290
- const originalIndentation = indentation;
291
- let res = "";
292
- let join = ",";
293
- if (Array.isArray(value)) {
294
- if (value.length === 0) {
295
- return "[]";
296
- }
297
- if (maximumDepth < stack.length + 1) {
298
- return '"[Array]"';
299
- }
300
- stack.push(value);
301
- if (spacer !== "") {
302
- indentation += spacer;
303
- res += `
304
- ${indentation}`;
305
- join = `,
306
- ${indentation}`;
307
- }
308
- const maximumValuesToStringify = Math.min(value.length, maximumBreadth);
309
- let i = 0;
310
- for (; i < maximumValuesToStringify - 1; i++) {
311
- const tmp2 = stringifyArrayReplacer(String(i), value[i], stack, replacer, spacer, indentation);
312
- res += tmp2 !== void 0 ? tmp2 : "null";
313
- res += join;
314
- }
315
- const tmp = stringifyArrayReplacer(String(i), value[i], stack, replacer, spacer, indentation);
316
- res += tmp !== void 0 ? tmp : "null";
317
- if (value.length - 1 > maximumBreadth) {
318
- const removedKeys = value.length - maximumBreadth - 1;
319
- res += `${join}"... ${getItemCount(removedKeys)} not stringified"`;
320
- }
321
- if (spacer !== "") {
322
- res += `
323
- ${originalIndentation}`;
324
- }
325
- stack.pop();
326
- return `[${res}]`;
327
- }
328
- stack.push(value);
329
- let whitespace = "";
330
- if (spacer !== "") {
331
- indentation += spacer;
332
- join = `,
333
- ${indentation}`;
334
- whitespace = " ";
335
- }
336
- let separator = "";
337
- for (const key2 of replacer) {
338
- const tmp = stringifyArrayReplacer(key2, value[key2], stack, replacer, spacer, indentation);
339
- if (tmp !== void 0) {
340
- res += `${separator}${strEscape(key2)}:${whitespace}${tmp}`;
341
- separator = join;
342
- }
343
- }
344
- if (spacer !== "" && separator.length > 1) {
345
- res = `
346
- ${indentation}${res}
347
- ${originalIndentation}`;
348
- }
349
- stack.pop();
350
- return `{${res}}`;
351
- }
352
- case "number":
353
- return isFinite(value) ? String(value) : fail ? fail(value) : "null";
354
- case "boolean":
355
- return value === true ? "true" : "false";
356
- case "undefined":
357
- return void 0;
358
- case "bigint":
359
- if (bigint) {
360
- return String(value);
361
- }
362
- // fallthrough
363
- default:
364
- return fail ? fail(value) : void 0;
365
- }
366
- }
367
- function stringifyIndent(key, value, stack, spacer, indentation) {
368
- switch (typeof value) {
369
- case "string":
370
- return strEscape(value);
371
- case "object": {
372
- if (value === null) {
373
- return "null";
374
- }
375
- if (typeof value.toJSON === "function") {
376
- value = value.toJSON(key);
377
- if (typeof value !== "object") {
378
- return stringifyIndent(key, value, stack, spacer, indentation);
379
- }
380
- if (value === null) {
381
- return "null";
382
- }
383
- }
384
- if (stack.indexOf(value) !== -1) {
385
- return circularValue;
386
- }
387
- const originalIndentation = indentation;
388
- if (Array.isArray(value)) {
389
- if (value.length === 0) {
390
- return "[]";
391
- }
392
- if (maximumDepth < stack.length + 1) {
393
- return '"[Array]"';
394
- }
395
- stack.push(value);
396
- indentation += spacer;
397
- let res2 = `
398
- ${indentation}`;
399
- const join2 = `,
400
- ${indentation}`;
401
- const maximumValuesToStringify = Math.min(value.length, maximumBreadth);
402
- let i = 0;
403
- for (; i < maximumValuesToStringify - 1; i++) {
404
- const tmp2 = stringifyIndent(String(i), value[i], stack, spacer, indentation);
405
- res2 += tmp2 !== void 0 ? tmp2 : "null";
406
- res2 += join2;
407
- }
408
- const tmp = stringifyIndent(String(i), value[i], stack, spacer, indentation);
409
- res2 += tmp !== void 0 ? tmp : "null";
410
- if (value.length - 1 > maximumBreadth) {
411
- const removedKeys = value.length - maximumBreadth - 1;
412
- res2 += `${join2}"... ${getItemCount(removedKeys)} not stringified"`;
413
- }
414
- res2 += `
415
- ${originalIndentation}`;
416
- stack.pop();
417
- return `[${res2}]`;
418
- }
419
- let keys = Object.keys(value);
420
- const keyLength = keys.length;
421
- if (keyLength === 0) {
422
- return "{}";
423
- }
424
- if (maximumDepth < stack.length + 1) {
425
- return '"[Object]"';
426
- }
427
- indentation += spacer;
428
- const join = `,
429
- ${indentation}`;
430
- let res = "";
431
- let separator = "";
432
- let maximumPropertiesToStringify = Math.min(keyLength, maximumBreadth);
433
- if (isTypedArrayWithEntries(value)) {
434
- res += stringifyTypedArray(value, join, maximumBreadth);
435
- keys = keys.slice(value.length);
436
- maximumPropertiesToStringify -= value.length;
437
- separator = join;
438
- }
439
- if (deterministic) {
440
- keys = sort(keys, comparator);
441
- }
442
- stack.push(value);
443
- for (let i = 0; i < maximumPropertiesToStringify; i++) {
444
- const key2 = keys[i];
445
- const tmp = stringifyIndent(key2, value[key2], stack, spacer, indentation);
446
- if (tmp !== void 0) {
447
- res += `${separator}${strEscape(key2)}: ${tmp}`;
448
- separator = join;
449
- }
450
- }
451
- if (keyLength > maximumBreadth) {
452
- const removedKeys = keyLength - maximumBreadth;
453
- res += `${separator}"...": "${getItemCount(removedKeys)} not stringified"`;
454
- separator = join;
455
- }
456
- if (separator !== "") {
457
- res = `
458
- ${indentation}${res}
459
- ${originalIndentation}`;
460
- }
461
- stack.pop();
462
- return `{${res}}`;
463
- }
464
- case "number":
465
- return isFinite(value) ? String(value) : fail ? fail(value) : "null";
466
- case "boolean":
467
- return value === true ? "true" : "false";
468
- case "undefined":
469
- return void 0;
470
- case "bigint":
471
- if (bigint) {
472
- return String(value);
473
- }
474
- // fallthrough
475
- default:
476
- return fail ? fail(value) : void 0;
477
- }
478
- }
479
- function stringifySimple(key, value, stack) {
480
- switch (typeof value) {
481
- case "string":
482
- return strEscape(value);
483
- case "object": {
484
- if (value === null) {
485
- return "null";
486
- }
487
- if (typeof value.toJSON === "function") {
488
- value = value.toJSON(key);
489
- if (typeof value !== "object") {
490
- return stringifySimple(key, value, stack);
491
- }
492
- if (value === null) {
493
- return "null";
494
- }
495
- }
496
- if (stack.indexOf(value) !== -1) {
497
- return circularValue;
498
- }
499
- let res = "";
500
- const hasLength = value.length !== void 0;
501
- if (hasLength && Array.isArray(value)) {
502
- if (value.length === 0) {
503
- return "[]";
504
- }
505
- if (maximumDepth < stack.length + 1) {
506
- return '"[Array]"';
507
- }
508
- stack.push(value);
509
- const maximumValuesToStringify = Math.min(value.length, maximumBreadth);
510
- let i = 0;
511
- for (; i < maximumValuesToStringify - 1; i++) {
512
- const tmp2 = stringifySimple(String(i), value[i], stack);
513
- res += tmp2 !== void 0 ? tmp2 : "null";
514
- res += ",";
515
- }
516
- const tmp = stringifySimple(String(i), value[i], stack);
517
- res += tmp !== void 0 ? tmp : "null";
518
- if (value.length - 1 > maximumBreadth) {
519
- const removedKeys = value.length - maximumBreadth - 1;
520
- res += `,"... ${getItemCount(removedKeys)} not stringified"`;
521
- }
522
- stack.pop();
523
- return `[${res}]`;
524
- }
525
- let keys = Object.keys(value);
526
- const keyLength = keys.length;
527
- if (keyLength === 0) {
528
- return "{}";
529
- }
530
- if (maximumDepth < stack.length + 1) {
531
- return '"[Object]"';
532
- }
533
- let separator = "";
534
- let maximumPropertiesToStringify = Math.min(keyLength, maximumBreadth);
535
- if (hasLength && isTypedArrayWithEntries(value)) {
536
- res += stringifyTypedArray(value, ",", maximumBreadth);
537
- keys = keys.slice(value.length);
538
- maximumPropertiesToStringify -= value.length;
539
- separator = ",";
540
- }
541
- if (deterministic) {
542
- keys = sort(keys, comparator);
543
- }
544
- stack.push(value);
545
- for (let i = 0; i < maximumPropertiesToStringify; i++) {
546
- const key2 = keys[i];
547
- const tmp = stringifySimple(key2, value[key2], stack);
548
- if (tmp !== void 0) {
549
- res += `${separator}${strEscape(key2)}:${tmp}`;
550
- separator = ",";
551
- }
552
- }
553
- if (keyLength > maximumBreadth) {
554
- const removedKeys = keyLength - maximumBreadth;
555
- res += `${separator}"...":"${getItemCount(removedKeys)} not stringified"`;
556
- }
557
- stack.pop();
558
- return `{${res}}`;
559
- }
560
- case "number":
561
- return isFinite(value) ? String(value) : fail ? fail(value) : "null";
562
- case "boolean":
563
- return value === true ? "true" : "false";
564
- case "undefined":
565
- return void 0;
566
- case "bigint":
567
- if (bigint) {
568
- return String(value);
569
- }
570
- // fallthrough
571
- default:
572
- return fail ? fail(value) : void 0;
573
- }
574
- }
575
- function stringify2(value, replacer, space) {
576
- if (arguments.length > 1) {
577
- let spacer = "";
578
- if (typeof space === "number") {
579
- spacer = " ".repeat(Math.min(space, 10));
580
- } else if (typeof space === "string") {
581
- spacer = space.slice(0, 10);
582
- }
583
- if (replacer != null) {
584
- if (typeof replacer === "function") {
585
- return stringifyFnReplacer("", { "": value }, [], replacer, spacer, "");
586
- }
587
- if (Array.isArray(replacer)) {
588
- return stringifyArrayReplacer("", value, [], getUniqueReplacerSet(replacer), spacer, "");
589
- }
590
- }
591
- if (spacer.length !== 0) {
592
- return stringifyIndent("", value, [], spacer, "");
593
- }
594
- }
595
- return stringifySimple("", value, []);
596
- }
597
- return stringify2;
598
- }
599
- }
600
- });
601
-
602
- // ../canvas-contract/src/adPlacements.ts
603
- var AD_PLATFORMS = [
604
- "meta",
605
- "google_display",
606
- "google_pmax",
607
- "google_demandgen",
608
- "google_search",
609
- "youtube",
610
- "linkedin",
611
- "tiktok",
612
- "x",
613
- "reddit",
614
- "pinterest",
615
- "snapchat",
616
- "chatgpt"
617
- ];
618
- var AD_PLATFORM_LEAD = {
619
- meta: "4:5",
620
- google_display: "1:1",
621
- google_pmax: "1:1",
622
- google_demandgen: "1:1",
623
- google_search: "1:1",
624
- youtube: "1.91:1",
625
- linkedin: "1:1",
626
- tiktok: "9:16",
627
- x: "1.91:1",
628
- reddit: "1:1",
629
- pinterest: "2:3",
630
- snapchat: "9:16",
631
- chatgpt: "1:1"
632
- };
633
- var AD_PLATFORM_NAMES = {
634
- meta: "Meta",
635
- google_display: "Google Display",
636
- google_pmax: "Performance Max",
637
- google_demandgen: "Demand Gen",
638
- google_search: "Google Search",
639
- youtube: "YouTube",
640
- linkedin: "LinkedIn",
641
- tiktok: "TikTok",
642
- x: "X",
643
- reddit: "Reddit",
644
- pinterest: "Pinterest",
645
- snapchat: "Snapchat",
646
- chatgpt: "ChatGPT"
647
- };
648
- var FEED_MARGIN = { top: 0.04, bottom: 0.04, left: 0.04, right: 0.04 };
649
- var size = (width, height, required = true) => ({ width, height, required });
650
- var AD_PLACEMENTS = [
651
- {
652
- id: "meta_feed",
653
- platform: "meta",
654
- name: "Facebook and Instagram feeds",
655
- sizes: [size(1080, 1350), size(1080, 1080, false)],
656
- safe: FEED_MARGIN,
657
- source: "https://www.facebook.com/business/ads-guide/update/image/instagram-feed"
658
- },
659
- {
660
- id: "meta_stories",
661
- platform: "meta",
662
- name: "Facebook and Instagram Stories",
663
- sizes: [size(1080, 1920)],
664
- safe: { top: 0.16, bottom: 0.22, left: 0.04, right: 0.04 },
665
- cover: { top: 0.09, bottom: 0.15 },
666
- source: "https://www.facebook.com/business/ads-guide/update/image/instagram-story"
667
- },
668
- {
669
- id: "meta_reels",
670
- platform: "meta",
671
- name: "Facebook and Instagram Reels",
672
- sizes: [size(1080, 1920)],
673
- safe: { top: 0.16, bottom: 0.37, left: 0.04, right: 0.04 },
674
- cover: { top: 0.09, bottom: 0.32, rail: { width: 0.08, from: 0.6 } },
675
- railMargin: { width: 0.1, from: 0.55 },
676
- source: "https://www.facebook.com/business/ads-guide/update/image/instagram-reels"
677
- },
678
- {
679
- id: "meta_right_column",
680
- platform: "meta",
681
- name: "Facebook right column, Marketplace and search results",
682
- sizes: [size(1080, 1080), size(1200, 628, false)],
683
- safe: FEED_MARGIN,
684
- optIn: true,
685
- source: "https://www.facebook.com/business/ads-guide/update/image/facebook-right-column"
686
- },
687
- {
688
- id: "google_display_responsive",
689
- platform: "google_display",
690
- name: "Responsive display ads (Google Display Network)",
691
- sizes: [size(1200, 628), size(1200, 1200), size(900, 1600, false)],
692
- safe: FEED_MARGIN,
693
- rule: "Text may cover at most 20% of the image; Google crops up to 5% from each side.",
694
- source: "https://support.google.com/google-ads/answer/9823397"
695
- },
696
- {
697
- id: "google_display_banners",
698
- platform: "google_display",
699
- name: "Uploaded display banners",
700
- sizes: [
701
- size(300, 250),
702
- size(728, 90),
703
- size(320, 50),
704
- size(336, 280, false),
705
- size(300, 600, false),
706
- size(160, 600, false),
707
- size(320, 100, false),
708
- size(970, 250, false)
709
- ],
710
- safe: FEED_MARGIN,
711
- rule: "Each banner is exactly its pixel size, 150 KB at most.",
712
- source: "https://support.google.com/google-ads/answer/7031480"
713
- },
714
- {
715
- id: "google_pmax",
716
- platform: "google_pmax",
717
- name: "Performance Max asset group",
718
- sizes: [size(1200, 628), size(1200, 1200), size(960, 1200, false)],
719
- safe: FEED_MARGIN,
720
- rule: "Google crops up to 5% from each side; keep text and logos off the edges.",
721
- source: "https://support.google.com/google-ads/answer/13676244"
722
- },
723
- {
724
- id: "google_demandgen",
725
- platform: "google_demandgen",
726
- name: "Demand Gen (YouTube, Discover, Gmail)",
727
- sizes: [size(1200, 628), size(1200, 1200), size(960, 1200, false)],
728
- safe: FEED_MARGIN,
729
- source: "https://support.google.com/google-ads/answer/13547298"
730
- },
731
- {
732
- id: "google_search_images",
733
- platform: "google_search",
734
- name: "Image assets on Search ads",
735
- sizes: [size(1200, 1200), size(1200, 628, false)],
736
- safe: FEED_MARGIN,
737
- rule: "No overlaid text, logos or buttons on the image.",
738
- source: "https://support.google.com/google-ads/answer/12118270"
739
- },
740
- {
741
- id: "youtube_feed",
742
- platform: "youtube",
743
- name: "YouTube home and watch-next feeds",
744
- sizes: [size(1200, 628), size(1200, 1200, false)],
745
- safe: FEED_MARGIN,
746
- source: "https://support.google.com/google-ads/answer/13547298"
747
- },
748
- {
749
- id: "youtube_shorts",
750
- platform: "youtube",
751
- name: "YouTube Shorts",
752
- sizes: [size(1080, 1920)],
753
- safe: { top: 0.12, bottom: 0.35, left: 0.05, right: 0.05 },
754
- cover: { top: 0.08, bottom: 0.3, rail: { width: 0.14, from: 0.45 } },
755
- railMargin: { width: 0.16, from: 0.4 },
756
- source: "https://support.google.com/youtube/answer/10059070"
757
- },
758
- {
759
- id: "linkedin_feed",
760
- platform: "linkedin",
761
- name: "LinkedIn feed (single image)",
762
- sizes: [size(1200, 1200), size(1200, 627, false), size(720, 900, false)],
763
- safe: FEED_MARGIN,
764
- source: "https://www.linkedin.com/help/lms/answer/a426534"
765
- },
766
- {
767
- id: "tiktok_feed",
768
- platform: "tiktok",
769
- name: "TikTok For You feed",
770
- sizes: [size(1080, 1920)],
771
- safe: { top: 0.1, bottom: 0.3, left: 0.06, right: 0.06 },
772
- cover: { top: 0.07, bottom: 0.25, rail: { width: 0.13, from: 0.45 } },
773
- railMargin: { width: 0.15, from: 0.4 },
774
- source: "https://ads.tiktok.com/help/article/tiktok-ads-safe-zone"
775
- },
776
- {
777
- id: "x_timeline",
778
- platform: "x",
779
- name: "X timeline (image and website card)",
780
- sizes: [size(1200, 628), size(1200, 1200, false)],
781
- safe: FEED_MARGIN,
782
- source: "https://business.x.com/en/help/campaign-setup/creative-ad-specifications"
783
- },
784
- {
785
- id: "reddit_feed",
786
- platform: "reddit",
787
- name: "Reddit feed and conversation pages",
788
- sizes: [size(1080, 1080), size(1080, 1350, false), size(1200, 628, false)],
789
- safe: FEED_MARGIN,
790
- source: "https://business.reddithelp.com/s/article/image-ad-specs"
791
- },
792
- {
793
- id: "pinterest_feed",
794
- platform: "pinterest",
795
- name: "Pinterest home feed and search (standard pin)",
796
- sizes: [size(1e3, 1500), size(1e3, 1e3, false)],
797
- safe: FEED_MARGIN,
798
- source: "https://help.pinterest.com/en/business/article/pinterest-product-specs"
799
- },
800
- {
801
- id: "snapchat_snap_ads",
802
- platform: "snapchat",
803
- name: "Snapchat Snap Ads",
804
- sizes: [size(1080, 1920)],
805
- safe: { top: 0.11, bottom: 0.21, left: 0.04, right: 0.04 },
806
- cover: { top: 0.08, bottom: 0.18 },
807
- source: "https://businesshelp.snapchat.com/s/article/single-image-video-specs"
808
- },
809
- {
810
- id: "chatgpt_card",
811
- platform: "chatgpt",
812
- name: "ChatGPT sponsored card",
813
- sizes: [size(1200, 1200)],
814
- safe: FEED_MARGIN,
815
- rule: "The card shows a square of the image; keep everything that matters inside it.",
816
- source: "https://help.openai.com/en/articles/chatgpt-ads"
817
- }
818
- ];
819
- var RATIOS = [
820
- ["1:1", 1],
821
- ["4:5", 4 / 5],
822
- ["9:16", 9 / 16],
823
- ["16:9", 16 / 9],
824
- ["1.91:1", 1.91],
825
- ["2:3", 2 / 3],
826
- ["3:4", 3 / 4],
827
- ["4:3", 4 / 3]
828
- ];
829
- function ratioLabel(width, height) {
830
- const r = width / height;
831
- const known = RATIOS.find(([, value]) => Math.abs(Math.log(r / value)) < 0.01);
832
- return known ? known[0] : `${width}x${height}`;
833
- }
834
- function placementsFor(names) {
835
- const placements = [];
836
- const unknown = [];
837
- for (const raw of names) {
838
- const name = raw.trim().toLowerCase();
839
- if (!name) continue;
840
- const found = AD_PLACEMENTS.filter((p) => p.id === name || p.platform === name && !p.optIn);
841
- if (found.length === 0) unknown.push(raw.trim());
842
- for (const p of found) if (!placements.includes(p)) placements.push(p);
843
- }
844
- return { placements, unknown };
845
- }
846
- function addSize(into, format, size2, placement) {
847
- const existing = into.find((f) => f.format === format);
848
- if (!existing) {
849
- into.push({ format, width: size2.width, height: size2.height, placements: [placement] });
850
- return;
851
- }
852
- if (!existing.placements.includes(placement)) existing.placements.push(placement);
853
- if (size2.width > existing.width) Object.assign(existing, { width: size2.width, height: size2.height });
854
- }
855
- function leadOf(names) {
856
- for (const raw of names) {
857
- const name = raw.trim().toLowerCase();
858
- if (name in AD_PLATFORM_LEAD) return AD_PLATFORM_LEAD[name];
859
- const placement = AD_PLACEMENTS.find((p) => p.id === name);
860
- const first = placement?.sizes.find((s) => s.required);
861
- if (first) return ratioLabel(first.width, first.height);
862
- }
863
- return void 0;
864
- }
865
- function leadFirst(formats, lead) {
866
- const at = formats.findIndex((f) => f.format === lead);
867
- return at <= 0 ? formats : [formats[at], ...formats.filter((_, i) => i !== at)];
868
- }
869
- function deliveryPlan(names, asked) {
870
- const { placements, unknown } = placementsFor(names);
871
- const { required, shown, banners } = sizesOf(placements);
872
- const { formats, refused } = asked && asked.length > 0 ? askedSizes(asked, shown, placements) : { formats: required, refused: [] };
873
- const platformLead = leadOf(names);
874
- const lead = formats.some((f) => f.format === platformLead) ? platformLead : formats[0]?.format;
875
- const delivered = leadFirst(formats, lead);
876
- const served = new Set(delivered.flatMap((f) => f.placements));
877
- return {
878
- lead: lead ?? "",
879
- formats: delivered,
880
- banners,
881
- placements: placements.map((p) => p.id).filter((id) => served.has(id)),
882
- unknown,
883
- refused,
884
- cropped: placements.filter((p) => ratioSized(p) && !served.has(p.id)).map((p) => p.id)
885
- };
886
- }
887
- function sizesOf(placements) {
888
- const required = [];
889
- const shown = [];
890
- const banners = [];
891
- for (const placement of placements) {
892
- for (const s of placement.sizes) {
893
- const format = ratioLabel(s.width, s.height);
894
- if (isBanner(format)) {
895
- if (s.required) addSize(banners, format, s, placement.id);
896
- continue;
897
- }
898
- addSize(shown, format, s, placement.id);
899
- if (s.required) addSize(required, format, s, placement.id);
900
- }
901
- }
902
- return { required, shown, banners };
903
- }
904
- function askedSizes(asked, shown, placements) {
905
- const where = [...new Set(placements.map((p) => AD_PLATFORM_NAMES[p.platform]))].join(" or ") || "No placement named";
906
- const formats = [];
907
- const refused = [];
908
- for (const format of new Set(asked.map((f) => f.trim()))) {
909
- const found = shown.find((f) => f.format === format);
910
- if (found) formats.push(found);
911
- else refused.push({ format, why: `${where} shows no ${format} picture` });
912
- }
913
- return { formats, refused };
914
- }
915
- var isBanner = (format) => format.includes("x");
916
- var ratioSized = (p) => p.sizes.some((s) => s.required && !isBanner(ratioLabel(s.width, s.height)));
917
- function verticalCover(placementIds) {
918
- const covering = AD_PLACEMENTS.filter((p) => placementIds.includes(p.id) && p.cover);
919
- if (covering.length === 0) return null;
920
- const max = (pick) => Math.max(...covering.map((p) => pick(p) ?? 0));
921
- const rails = covering.filter((p) => p.cover?.rail);
922
- const margins = covering.filter((p) => p.railMargin);
923
- return {
924
- top: max((p) => p.cover?.top),
925
- bottom: max((p) => p.cover?.bottom),
926
- ...rails.length > 0 ? {
927
- rail: {
928
- width: max((p) => p.cover?.rail?.width),
929
- from: Math.min(...rails.map((p) => p.cover?.rail?.from ?? 1))
930
- }
931
- } : {},
932
- ...margins.length > 0 ? {
933
- railMargin: {
934
- width: max((p) => p.railMargin?.width),
935
- from: Math.min(...margins.map((p) => p.railMargin?.from ?? 1))
936
- }
937
- } : {},
938
- safe: {
939
- top: max((p) => p.safe.top),
940
- bottom: max((p) => p.safe.bottom),
941
- left: max((p) => p.safe.left),
942
- right: max((p) => p.safe.right)
943
- }
944
- };
945
- }
946
-
947
- // ../canvas-contract/src/adRead.ts
948
- var AD_DESCRIBE_FOCUS = "FIRST, WHY THIS AD WINS, in layers, in `why_it_wins` { disguise (what it pretends to be: a note, a tweet, a newspaper, a chat, a plain ad), voice (who speaks, and how), trigger (the emotion or need it pulls: a free gift, a hidden loss, status, curiosity), attention (what stops the scroll), logic (why it convinces: reciprocity, social proof, a comparison, a price anchor) }, one short phrase each; and in `load_bearing` the 1-4 elements it stops working without (never decoration), each { element, needs: what it takes to carry it } (a free gift, a real peer's face, priced tiers, a native disguise). THEN the LAYOUT: the column/row grid, which region holds what (describe each by what fills it and where it sits, never by percentages or pixel figures), any panel splits, and for EVERY text block its string verbatim, its size relative to the other text (x_large | large | medium | small), weight, case, colour in words, and placement, including small bottom-corner fine print, and whether it is lettered on something in the scene (`surface`). Also: the EXPRESSION and emotion of every person/animal (capture exaggerated or AI-edited faces), the ad_intent, logos by brand, and all visible text verbatim. The TYPOGRAPHY as a first-class identity signal: for EVERY distinct typeface record a `fonts` entry (which text blocks use it, its classification, a best-guess family or close lookalike, its weight/case/styling), and whether the advertiser's LOGO appears in more than one lockup (a square/icon MARK and a horizontal WORDMARK are two assets: capture BOTH). Capture as a photographer would describe it in words (phone or studio, the height and angle, the light and its direction), never as lens or exposure figures. CRITICAL: name the MECHANISM, the one device that makes THIS ad work on a stranger rather than a generic ad (VERBAL: a rhyme, pun, repetition, antithesis; VISUAL: an unexpected crop or scale, a visual gag, a before/after or comparison, bold negative space; STRUCTURAL: an unusual hook, order or reveal). Record every device in `winning_mechanisms` as { kind: verbal|visual|structural, device, why_it_works } and the strongest one in `mechanism`. And read WHO the ad is for, in `audience`: the viewer it speaks to, their awareness stage, how warm they must already be, and whether the copy only works if they already know this brand or offer (`presumes_brand_knowledge`), so a rebuild for a different audience knows what to change";
949
- var AD_SELECT_SYSTEM = 'You identify the MAIN, identity-critical visual elements of an advertisement from its JSON blueprint \u2014 the things a faithful reproduction must supply as REAL reference images instead of letting a model invent them. Output ONLY a JSON object of the form { "elements": [ ... ] }, no prose.';
950
- var AD_SELECT_PROMPT = `AD BLUEPRINT (from image_describe):
951
- {{blueprint}}
952
-
953
- From this blueprint, list ONLY the elements that are prominent, important, and identity-bearing \u2014 the ones a reproduction must ground in a real asset:
954
- - the brand logo/wordmark (from brands_logos with function_in_image = advertiser_brand) -> type "logo". A brand often ships its logo in TWO lockups \u2014 a square/icon MARK and a horizontal WORDMARK \u2014 and an ad may use both (e.g. an icon in a product mock plus the wordmark in the sign-off). When more than one distinct lockup of the SAME advertiser appears, emit a SEPARATE logo element for each (label them by lockup, e.g. LOGO_MARK and LOGO_WORDMARK) so the reproduction can drop the right file in each slot instead of stretching one logo to cover both.
955
- - trust/rating/certification/app-store/review badges (brands_logos with function_in_image = trust_badge | review_platform | certification_or_seal | app_store_badge | payment_method) -> type "badge"
956
- - a showcased/hero product or package (a foreground entry in subjects that the ad is selling) -> type "product"
957
- - a foreground person (from people) \u2014 keep it when its identity matters OR it is the emotional/hero focal point of the ad, even a generic one with no brand identity -> type "person". Describe them as a castable, invented everyday person (age band, look, wardrobe, expression) \u2014 never the source person's identity: unless a company avatar is cast, the render draws this person from your words alone
958
- - a foreground animal/character (from subjects) \u2014 keep it when it carries a specific expression OR it is the emotional/hero focal point, even a generic one -> type "animal"
959
- (For an animal: a free-generated muzzle or teeth reads as AI and grows artifacts \u2014 malformed mouths, foam \u2014 so the emotional hero needs the STRONGEST real grounding, not the weakest; "it's just a generic dog/person" is never a reason to drop either.)
960
-
961
- DROP background extras, decorative props, generic scenery, and anything small or incidental. Keep at most ~6. If there are none, return an empty list.
962
-
963
- For each kept element return: { "type": one of logo|product|person|animal|badge, "label": a short UPPER_SNAKE_CASE name (e.g. LOGO, PRODUCT, HERO_DOG, TRUSTPILOT), "description": a concrete reusable description to source/shoot the real asset (include the exact expression for a living subject, and its castable attributes \u2014 breed/species for an animal, apparent age band, apparent origin/ethnicity, and wardrobe/setting for a person \u2014 so it can be recast to fit OUR audience/market), "expression": the facial expression for a living subject or null, "reason": why it is identity-critical, "locator": the blueprint entry this element came from as { "collection": one of "subjects" | "people" | "brands_logos", "index": its 0-based position in that array } (people -> people; logos/badges -> brands_logos; products/animals/objects -> subjects). Output ONLY the JSON object.`;
964
-
965
- // ../canvas-contract/src/castName.ts
966
- function withoutCastName(text, names) {
967
- let out = text;
968
- for (const name of names) {
969
- const token = name.trim();
970
- if (token.length < 3) continue;
971
- const pattern = new RegExp(`(?<![\\p{L}\\p{N}])${escapeForPattern(token)}(?![\\p{L}\\p{N}])`, "giu");
972
- out = out.replace(pattern, "the person in the reference");
973
- }
974
- return out;
975
- }
976
- function escapeForPattern(value) {
977
- return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
978
- }
979
-
980
- // ../canvas-contract/src/adPlatformFormats.ts
981
- var AD_FORMAT_PLATFORMS = [
982
- "meta_feed",
983
- "meta_feed_stories",
984
- "meta_all",
985
- "linkedin",
986
- "google_search",
987
- "google_demandgen",
988
- "tiktok",
989
- "youtube"
990
- ];
991
- var AD_PLATFORM_FORMAT_PRESETS = {
992
- meta_feed: { formats: ["4:5"], note: "Meta/Instagram feed static." },
993
- meta_feed_stories: { formats: ["4:5", "9:16"], note: "Meta feed + Stories/Reels." },
994
- meta_all: { formats: ["4:5", "9:16", "1:1"], note: "Meta feed + Stories/Reels + square." },
995
- linkedin: { formats: ["1:1"], note: "LinkedIn single-image feed (square)." },
996
- google_search: {
997
- // Search image assets: 1:1 is the required one, 1.91:1 the optional landscape.
998
- // 16:9 is rendered only as the crop source for that landscape — Search never serves 16:9 itself.
999
- formats: ["1:1", "16:9"],
1000
- offGrid: ["1.91:1"],
1001
- note: "Google Search image assets (the image extension on a text ad); 1:1 required, 1.91:1 landscape \u2014 crop that from the rendered 16:9. Stage 3+ per campaign."
1002
- },
1003
- google_demandgen: {
1004
- // Renders 16:9 too so the off-grid 1.91:1 landscape has a native source to crop from.
1005
- formats: ["1:1", "4:5", "16:9"],
1006
- offGrid: ["1.91:1"],
1007
- note: "Google Demand Gen; also wants 1.91:1 landscape \u2014 crop that from the rendered 16:9."
1008
- },
1009
- tiktok: { formats: ["9:16"], note: "TikTok full-screen vertical." },
1010
- youtube: { formats: ["16:9"], note: "YouTube in-stream / companion display." }
1011
- };
1012
- function platformFormats(platform) {
1013
- return AD_PLATFORM_FORMAT_PRESETS[platform].formats;
1014
- }
1015
- function resolveAdaptFormats(params) {
1016
- if (params.platform) return platformFormats(params.platform);
1017
- return params.formats ?? [];
1018
- }
1019
-
1020
- // ../canvas-contract/src/registry.ts
1021
- var OPENROUTER_ROUTE = { provider: "openrouter" };
1022
- var USAGE_BILLED = { kind: "usage" };
1023
- var MIN_BILLED_SECONDS = 5;
1024
- var SEEDANCE_FACE_RECOVERY_ROUTE = {
1025
- provider: "fal",
1026
- wireModel: "bytedance/seedance-2.5/reference-to-video"
1027
- };
1028
- var OPENROUTER_IMAGE_AR = ["1:1", "2:3", "3:2", "3:4", "4:3", "4:5", "5:4", "9:16", "16:9", "21:9"];
1029
- var OPENROUTER_IMAGE_AR_EXTREME = [...OPENROUTER_IMAGE_AR, "1:4", "4:1", "1:8", "8:1"];
1030
- var OPENROUTER_IMAGE_AR_GPT = ["1:1", "2:3", "3:2", "3:4", "4:3", "9:16", "16:9", "21:9"];
1031
- var GPT_IMAGE_PROMPT_MAX = 32e3;
1032
- var RECRAFT_PROMPT_MAX = 1e4;
1033
- var SEEDANCE_PROMPT_MAX = 4e3;
1034
- var KLING_PROMPT_MAX = 2500;
1035
- var UINT32_MAX = 4294967295;
1036
- var VEO_SEED_MAX = UINT32_MAX;
1037
- var GPT_IMAGE_MAX_REFERENCES = 16;
1038
- var GEMINI_IMAGE_MAX_REFERENCES = 14;
1039
- var RECRAFT_MAX_REFERENCES = 1;
1040
- var SEEDANCE_MAX_REFERENCES = 9;
1041
- var OPENROUTER_IMAGE_SIZE = ["1K", "2K", "4K"];
1042
- var OPENROUTER_IMAGE_SIZES = ["0.5K", ...OPENROUTER_IMAGE_SIZE];
1043
- var OPENROUTER_IMAGE_SIZE_EXTENDED = OPENROUTER_IMAGE_SIZES;
1044
- var GEMINI_LITE_IMAGE_SIZE = ["1K"];
1045
- var OPENROUTER_IMAGE_QUALITY = ["auto", "low", "medium", "high"];
1046
- var OPENROUTER_IMAGE_QUALITY_25 = ["auto", "low", "medium", "high", "xhigh", "max"];
1047
- var OPENROUTER_IMAGE_N = { kind: "number", integer: true, min: 1, max: 10 };
1048
- var RECRAFT_IMAGE_AR = ["1:1", "4:3", "3:4", "16:9", "9:16"];
1049
- var SEEDANCE_DURATIONS = [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15];
1050
- var SEEDANCE_25_DURATIONS = [
1051
- 4,
1052
- 5,
1053
- 6,
1054
- 7,
1055
- 8,
1056
- 9,
1057
- 10,
1058
- 11,
1059
- 12,
1060
- 13,
1061
- 14,
1062
- 15,
1063
- 16,
1064
- 17,
1065
- 18,
1066
- 19,
1067
- 20,
1068
- 21,
1069
- 22,
1070
- 23,
1071
- 24,
1072
- 25,
1073
- 26,
1074
- 27,
1075
- 28,
1076
- 29,
1077
- 30
1078
- ];
1079
- var SEEDANCE_25_ASPECT_RATIOS = ["1:1", "3:4", "9:16", "4:3", "16:9", "21:9"];
1080
- var SEEDANCE_25_RESOLUTIONS = ["480p", "720p"];
1081
- var SEEDANCE_25_MAX_IMAGE_REFERENCES = 30;
1082
- var SEEDANCE_25_MAX_VIDEO_REFERENCES = 10;
1083
- var SEEDANCE_25_MAX_AUDIO_REFERENCES = 10;
1084
- var KLING_DURATIONS = [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15];
1085
- var GEMINI_OMNI_DURATIONS = [3, 4, 5, 6, 7, 8, 9, 10];
1086
- var GEMINI_OMNI_ASPECT_RATIOS = ["16:9", "9:16"];
1087
- var GEMINI_OMNI_RESOLUTIONS = ["360p", "720p", "1080p", "4k"];
1088
- var GEMINI_OMNI_IMAGE_MIMES = ["image/png", "image/jpeg", "image/webp"];
1089
- var GROK_IMAGINE_DURATIONS = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
1090
- var WAN_27_DURATIONS = [2, 3, 4, 5, 6, 7, 8, 9, 10];
1091
- var HAPPYHORSE_DURATIONS = [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15];
1092
- var WAN_30_DURATIONS = [
1093
- 2,
1094
- 3,
1095
- 4,
1096
- 5,
1097
- 6,
1098
- 7,
1099
- 8,
1100
- 9,
1101
- 10,
1102
- 11,
1103
- 12,
1104
- 13,
1105
- 14,
1106
- 15,
1107
- 16,
1108
- 17,
1109
- 18,
1110
- 19,
1111
- 20,
1112
- 21,
1113
- 22,
1114
- 23,
1115
- 24,
1116
- 25,
1117
- 26,
1118
- 27,
1119
- 28,
1120
- 29,
1121
- 30
1122
- ];
1123
- var GROK_IMAGINE_15_DURATIONS = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15];
1124
- var RUNWAY_45_DURATIONS = [2, 3, 4, 5, 6, 7, 8, 9, 10];
1125
- var ELEVENLABS_OUTPUT_FORMATS = [
1126
- "mp3_22050_32",
1127
- "mp3_44100_32",
1128
- "mp3_44100_64",
1129
- "mp3_44100_96",
1130
- "mp3_44100_128",
1131
- "mp3_44100_192"
1132
- ];
1133
- var ELEVENLABS_MAX_TEXT_CHARS = 45454;
1134
- var ELEVENLABS_MAX_MUSIC_LENGTH_MS = 454545;
1135
- var ELEVENLABS_MUSIC_ENGINE = "music_v2";
1136
- var OPENROUTER_IMAGE_MIMES = ["image/png", "image/jpeg", "image/webp", "image/gif"];
1137
- var OPENROUTER_VIDEO_REFERENCE_MIMES = ["video/mp4", "video/quicktime", "video/webm"];
1138
- var OPENROUTER_AUDIO_REFERENCE_MIMES = ["audio/mpeg", "audio/mp3", "audio/wav"];
1139
- var REPLICATE_IMAGE_MIMES = ["image/png", "image/jpeg", "image/webp"];
1140
- var REPLICATE_VIDEO_MIMES = ["video/mp4", "video/webm", "video/quicktime"];
1141
- var DECONSTRUCT_VIDEO_MIMES = ["video/mp4", "video/webm", "video/quicktime"];
1142
- var REPLICATE_AUDIO_MIMES = ["audio/wav", "audio/mpeg", "audio/mp3"];
1143
- var IMAGE_GENERATE_MODELS = [
1144
- "openai/gpt-image-2.5-sunburst",
1145
- "openai/gpt-image-2.5-flare",
1146
- "openai/gpt-image-2",
1147
- "google/gemini-3.1-flash-image",
1148
- "google/gemini-3.1-flash-lite-image",
1149
- "google/gemini-3-pro-image",
1150
- "recraft/recraft-v4.1-pro-vector"
1151
- ];
1152
- var DEFAULT_IMAGE_GENERATE_MODEL = "google/gemini-3.1-flash-image";
1153
- var IMAGE_PRICE_TIER = {
1154
- "openai/gpt-image-2.5-sunburst": "standard",
1155
- "openai/gpt-image-2.5-flare": "standard",
1156
- "openai/gpt-image-2": "standard",
1157
- "google/gemini-3.1-flash-image": "standard",
1158
- "google/gemini-3.1-flash-lite-image": "standard",
1159
- "google/gemini-3-pro-image": "pro",
1160
- "recraft/recraft-v4.1-pro-vector": "standard"
1161
- };
1162
- var IMAGE_TIER_CREDITS = { pro: 20, standard: 5 };
1163
- var GPT_IMAGE_FRAMES = ["1:1", "3:4", "2:3", "9:16", "9:21"];
1164
- var GPT_IMAGE_OUTPUT_CREDITS = {
1165
- low: { "1:1": 1, "3:4": 1, "2:3": 1, "9:16": 1, "9:21": 1 },
1166
- medium: { "1:1": 2, "3:4": 2, "2:3": 2, "9:16": 1, "9:21": 1 },
1167
- high: { "1:1": 6, "3:4": 5, "2:3": 5, "9:16": 4, "9:21": 3 },
1168
- xhigh: { "1:1": 10, "3:4": 9, "2:3": 8, "9:16": 6, "9:21": 4 },
1169
- max: { "1:1": 22, "3:4": 20, "2:3": 17, "9:16": 13, "9:21": 9 }
1170
- };
1171
- var GPT_IMAGE_REFERENCE_CREDITS = 1;
1172
- var GPT_IMAGE_PROMPT_CHARS_PER_CREDIT = 8e3;
1173
- function outputFrame(model, aspectRatio) {
1174
- if (typeof aspectRatio !== "string") return "1:1";
1175
- const sides = nearestSupportedAspectRatio("image_generate", model, aspectRatio).split(":").map(Number);
1176
- const frame = `${Math.min(...sides)}:${Math.max(...sides)}`;
1177
- return GPT_IMAGE_FRAMES.find((f) => f === frame) ?? "1:1";
1178
- }
1179
- function imagePictureCredits(model, call = {}) {
1180
- const step = typeof call.quality === "string" ? bestSupportedQuality("image_generate", model, call.quality) : void 0;
1181
- const output = step === void 0 ? void 0 : GPT_IMAGE_OUTPUT_CREDITS[step];
1182
- if (output) {
1183
- const promptChars = typeof call.prompt === "string" ? call.prompt.length : 0;
1184
- return output[outputFrame(model, call.aspect_ratio)] + (call.references ?? 0) * GPT_IMAGE_REFERENCE_CREDITS + Math.ceil(promptChars / GPT_IMAGE_PROMPT_CHARS_PER_CREDIT);
1185
- }
1186
- const tier = IMAGE_PRICE_TIER[canonicalModelId(model)] ?? "standard";
1187
- return IMAGE_TIER_CREDITS[tier];
1188
- }
1189
- var VIDEO_GENERATE_MODELS = [
1190
- "bytedance/seedance-2.0",
1191
- "bytedance/seedance-2.5",
1192
- "google/gemini-omni-1.1-flash",
1193
- "google/gemini-omni-flash",
1194
- "google/veo-3.1",
1195
- "google/veo-3.1-fast",
1196
- "google/veo-3.1-lite",
1197
- "kwaivgi/kling-v3.0-pro",
1198
- "x-ai/grok-imagine-video",
1199
- "x-ai/grok-imagine-video-1.5",
1200
- "alibaba/wan-2.7",
1201
- "alibaba/wan-3.0",
1202
- "runway/gen-4.5",
1203
- "alibaba/happyhorse-1.1"
1204
- ];
1205
- var DEFAULT_VIDEO_GENERATE_MODEL = "google/gemini-omni-1.1-flash";
1206
- var REFERENCE_TO_VIDEO_MODELS = [
1207
- "bytedance/seedance-2.0",
1208
- "bytedance/seedance-2.5",
1209
- "google/gemini-omni-1.1-flash",
1210
- "google/gemini-omni-flash",
1211
- "x-ai/grok-imagine-video",
1212
- "alibaba/wan-2.7",
1213
- "alibaba/happyhorse-1.1"
1214
- ];
1215
- function supportsReferenceToVideo(model) {
1216
- return REFERENCE_TO_VIDEO_MODELS.includes(model);
1217
- }
1218
- var DEFAULT_AVATAR_VIDEO_MODEL = "x-ai/grok-imagine-video";
1219
- function isGeminiOmniModel(model) {
1220
- return model.startsWith("google/gemini-omni");
1221
- }
1222
- var GEMINI_OMNI_PREVIEW_MODEL = "google/gemini-omni-flash";
1223
- function isGeminiOmniPreviewModel(model) {
1224
- return model === GEMINI_OMNI_PREVIEW_MODEL;
1225
- }
1226
- function isSeedance25Model(model) {
1227
- return model === "bytedance/seedance-2.5";
1228
- }
1229
- var LAST_FRAME_TO_VIDEO_MODELS = [
1230
- "bytedance/seedance-2.0",
1231
- "bytedance/seedance-2.5",
1232
- "google/veo-3.1",
1233
- "google/veo-3.1-fast",
1234
- "kwaivgi/kling-v3.0-pro"
1235
- ];
1236
- function supportsLastFrame(model) {
1237
- return LAST_FRAME_TO_VIDEO_MODELS.includes(model);
1238
- }
1239
- var MODEL_REGISTRY = {
1240
- text_generate: {
1241
- "google/gemini-3.8-flash": {
1242
- label: "Google Gemini 3.8 Flash",
1243
- route: OPENROUTER_ROUTE,
1244
- billing: USAGE_BILLED,
1245
- inputs: [],
1246
- required: ["prompt"],
1247
- params: {
1248
- prompt: { kind: "string" },
1249
- system: { kind: "string" },
1250
- response_format: { kind: "string", enum: ["text", "json_object"] },
1251
- web_search: { kind: "boolean" },
1252
- temperature: { kind: "number", min: 0, max: 2 },
1253
- max_tokens: { kind: "number", min: 1 }
1254
- }
1255
- },
1256
- "google/gemini-4-carbon": {
1257
- label: "Google Gemini 4 Carbon",
1258
- route: OPENROUTER_ROUTE,
1259
- billing: USAGE_BILLED,
1260
- inputs: [],
1261
- required: ["prompt"],
1262
- params: {
1263
- prompt: { kind: "string" },
1264
- system: { kind: "string" },
1265
- response_format: { kind: "string", enum: ["text", "json_object"] },
1266
- web_search: { kind: "boolean" },
1267
- temperature: { kind: "number", min: 0, max: 2 },
1268
- max_tokens: { kind: "number", min: 1 }
1269
- }
1270
- }
1271
- },
1272
- image_describe: {
1273
- // Vision extraction — the Visual Architect system prompt lives on the
1274
- // backend, so there is no `prompt` param; `focus` appends emphasis only.
1275
- "google/gemini-4-carbon": {
1276
- label: "Google Gemini 4 Carbon (Vision)",
1277
- route: OPENROUTER_ROUTE,
1278
- billing: USAGE_BILLED,
1279
- inputs: [{ kind: "image", mimes: OPENROUTER_IMAGE_MIMES }],
1280
- required: [],
1281
- params: {
1282
- focus: { kind: "string" },
1283
- context: { kind: "string" },
1284
- temperature: { kind: "number", min: 0, max: 2 },
1285
- max_tokens: { kind: "number", min: 1 }
1286
- }
1287
- },
1288
- "google/gemini-3.8-flash": {
1289
- label: "Google Gemini 3.8 Flash (Vision)",
1290
- route: OPENROUTER_ROUTE,
1291
- billing: USAGE_BILLED,
1292
- inputs: [{ kind: "image", mimes: OPENROUTER_IMAGE_MIMES }],
1293
- required: [],
1294
- params: {
1295
- focus: { kind: "string" },
1296
- context: { kind: "string" },
1297
- temperature: { kind: "number", min: 0, max: 2 },
1298
- max_tokens: { kind: "number", min: 1 }
1299
- }
1300
- }
1301
- },
1302
- image_select: {
1303
- // Vision judgement — the selection contract (numbered images, JSON
1304
- // response) is baked into the backend prompt; `prompt` carries only the
1305
- // selection criteria. `count` has an engine-side default of 1, so it is
1306
- // not registry-required.
1307
- "google/gemini-3.8-flash": {
1308
- label: "Google Gemini 3.8 Flash (Vision)",
1309
- route: OPENROUTER_ROUTE,
1310
- billing: USAGE_BILLED,
1311
- inputs: [{ kind: "image", mimes: OPENROUTER_IMAGE_MIMES }],
1312
- required: ["prompt"],
1313
- params: {
1314
- prompt: { kind: "string" },
1315
- count: { kind: "number", min: 1 },
1316
- temperature: { kind: "number", min: 0, max: 2 },
1317
- max_tokens: { kind: "number", min: 1 }
1318
- }
1319
- },
1320
- "google/gemini-4-carbon": {
1321
- label: "Google Gemini 4 Carbon (Vision)",
1322
- route: OPENROUTER_ROUTE,
1323
- billing: USAGE_BILLED,
1324
- inputs: [{ kind: "image", mimes: OPENROUTER_IMAGE_MIMES }],
1325
- required: ["prompt"],
1326
- params: {
1327
- prompt: { kind: "string" },
1328
- count: { kind: "number", min: 1 },
1329
- temperature: { kind: "number", min: 0, max: 2 },
1330
- max_tokens: { kind: "number", min: 1 }
1331
- }
1332
- }
1333
- },
1334
- image_generate: {
1335
- // `seed` is omitted on every entry — OpenRouter's `image_config` schema
1336
- // has no `seed` slot for image-gen (different from video-gen), so passing
1337
- // it would be a silent no-op.
1338
- // The direct image model, not the `gpt-5.4-image-2` chat model that emitted
1339
- // images as a side effect. Notable capability gaps vs the Gemini entries:
1340
- // no `image_size` (OpenAI picks the pixel dimensions from the ratio, and a
1341
- // `resolution` is silently ignored) and the narrower `..._AR_GPT` ratio set.
1342
- "openai/gpt-image-2.5-sunburst": {
1343
- // Identical to the gpt-image-2 entry below except for the quality ladder and `n`
1344
- // (several images from one call) — the ratio set, the 16-reference ceiling, the missing `image_size` and the reasons
1345
- // `background` / `output_compression` stay undeclared all carry over unchanged.
1346
- label: "OpenAI GPT Image 2.5",
1347
- route: OPENROUTER_ROUTE,
1348
- billing: USAGE_BILLED,
1349
- inputs: [],
1350
- optional_inputs: [{ kind: "image", mimes: OPENROUTER_IMAGE_MIMES, max: GPT_IMAGE_MAX_REFERENCES }],
1351
- required: ["prompt"],
1352
- params: {
1353
- prompt: { kind: "string", maxLength: GPT_IMAGE_PROMPT_MAX },
1354
- aspect_ratio: { kind: "string", enum: OPENROUTER_IMAGE_AR_GPT },
1355
- quality: { kind: "string", enum: OPENROUTER_IMAGE_QUALITY_25 },
1356
- n: OPENROUTER_IMAGE_N
1357
- }
1358
- },
1359
- "openai/gpt-image-2.5-flare": {
1360
- // The same surface and per-token price as sunburst (GET /api/v1/images/models/
1361
- // openai/gpt-image-2.5-flare/endpoints, 2026-10-28: the gpt-image ratio set, the six-step
1362
- // quality ladder, n up to 10, 16 references; $0.000008 input image, $0.000005 input text,
1363
- // $0.00003 output image per token). It is the model that lays a finished ad out again for a
1364
- // 9:16 when the layout is spelled out in labelled sections: $0.02-0.05 a picture on dev.
1365
- label: "OpenAI GPT Image 2.5 Flare",
1366
- route: OPENROUTER_ROUTE,
1367
- billing: USAGE_BILLED,
1368
- inputs: [],
1369
- optional_inputs: [{ kind: "image", mimes: OPENROUTER_IMAGE_MIMES, max: GPT_IMAGE_MAX_REFERENCES }],
1370
- required: ["prompt"],
1371
- params: {
1372
- prompt: { kind: "string", maxLength: GPT_IMAGE_PROMPT_MAX },
1373
- aspect_ratio: { kind: "string", enum: OPENROUTER_IMAGE_AR_GPT },
1374
- quality: { kind: "string", enum: OPENROUTER_IMAGE_QUALITY_25 },
1375
- n: OPENROUTER_IMAGE_N
1376
- }
1377
- },
1378
- "openai/gpt-image-2": {
1379
- // Its live endpoint also advertises `background` (auto|opaque) and
1380
- // `output_compression` (0-100), which we deliberately do not declare. Not an
1381
- // oversight: a registry param is a promise the whole system keeps — the
1382
- // canvas node schema, the dashboard control, the CLI flag and the cost model
1383
- // all have to carry it — and neither knob changes what the picture IS.
1384
- // Declaring them would widen four surfaces to expose a file-size dial.
1385
- label: "OpenAI GPT Image 2",
1386
- route: OPENROUTER_ROUTE,
1387
- billing: USAGE_BILLED,
1388
- inputs: [],
1389
- optional_inputs: [{ kind: "image", mimes: OPENROUTER_IMAGE_MIMES, max: GPT_IMAGE_MAX_REFERENCES }],
1390
- required: ["prompt"],
1391
- params: {
1392
- prompt: { kind: "string", maxLength: GPT_IMAGE_PROMPT_MAX },
1393
- aspect_ratio: { kind: "string", enum: OPENROUTER_IMAGE_AR_GPT },
1394
- quality: { kind: "string", enum: OPENROUTER_IMAGE_QUALITY }
1395
- }
1396
- },
1397
- // The GA Nano Banana ids (2026-06-18). Same surface as the preview ids they replace
1398
- // — read off GET /api/v1/images/models/google/gemini-3.1-flash-image/endpoints and
1399
- // .../gemini-3-pro-image/endpoints — which is why those ids are plain aliases of
1400
- // these (`MODEL_ALIASES`): a canvas moves between them unchanged.
1401
- "google/gemini-3.1-flash-image": {
1402
- label: "Google Gemini 3.1 Flash Image (Nano Banana 2)",
1403
- route: OPENROUTER_ROUTE,
1404
- billing: USAGE_BILLED,
1405
- inputs: [],
1406
- optional_inputs: [{ kind: "image", mimes: OPENROUTER_IMAGE_MIMES, max: GEMINI_IMAGE_MAX_REFERENCES }],
1407
- required: ["prompt"],
1408
- params: {
1409
- prompt: { kind: "string" },
1410
- aspect_ratio: { kind: "string", enum: OPENROUTER_IMAGE_AR_EXTREME },
1411
- image_size: { kind: "string", enum: OPENROUTER_IMAGE_SIZE_EXTENDED }
1412
- }
1413
- },
1414
- "google/gemini-3-pro-image": {
1415
- label: "Google Gemini 3 Pro Image (Nano Banana Pro)",
1416
- route: OPENROUTER_ROUTE,
1417
- billing: USAGE_BILLED,
1418
- inputs: [],
1419
- optional_inputs: [{ kind: "image", mimes: OPENROUTER_IMAGE_MIMES, max: GEMINI_IMAGE_MAX_REFERENCES }],
1420
- required: ["prompt"],
1421
- params: {
1422
- prompt: { kind: "string" },
1423
- aspect_ratio: { kind: "string", enum: OPENROUTER_IMAGE_AR },
1424
- image_size: { kind: "string", enum: OPENROUTER_IMAGE_SIZE }
1425
- // No `quality`: OpenRouter's per-endpoint schema lists it for gpt-image and for
1426
- // NO Gemini image model, pro included. It is accepted-then-dropped, so declaring
1427
- // it invites the scaffolder to emit a param that does nothing.
1428
- }
1429
- },
1430
- "google/gemini-3.1-flash-lite-image": {
1431
- // Nano Banana 2 Lite. Same Gemini image family as the flash tier — same
1432
- // extreme aspect-ratio set, same reference editing — at HALF the output-token
1433
- // price ($0.00003 vs $0.00006 per output image token), which makes it the
1434
- // cheap-iteration tier for image work the way `veo-3.1-fast` is for video.
1435
- //
1436
- // The one thing it gives up is resolution: it renders 1K and nothing else.
1437
- // That is a hard provider 400, not a soft clamp, so it is gated here rather
1438
- // than discovered at dispatch. A 2K/4K hero frame belongs on the flash or pro
1439
- // tier. Unlike gpt-image it keeps 4:5 and 5:4, so Meta/Instagram portrait
1440
- // formats still come straight out of it.
1441
- //
1442
- // Reached through the normal OpenRouter image gateway (Google Vertex and
1443
- // Google AI Studio both serve it) — no direct-provider exception needed.
1444
- // Source: GET /api/v1/images/models/google/gemini-3.1-flash-lite-image/endpoints.
1445
- label: "Google Gemini 3.1 Flash Lite Image",
1446
- route: OPENROUTER_ROUTE,
1447
- billing: USAGE_BILLED,
1448
- inputs: [],
1449
- optional_inputs: [{ kind: "image", mimes: OPENROUTER_IMAGE_MIMES, max: GEMINI_IMAGE_MAX_REFERENCES }],
1450
- required: ["prompt"],
1451
- params: {
1452
- prompt: { kind: "string" },
1453
- aspect_ratio: { kind: "string", enum: OPENROUTER_IMAGE_AR_EXTREME },
1454
- image_size: { kind: "string", enum: GEMINI_LITE_IMAGE_SIZE }
1455
- }
1456
- },
1457
- "recraft/recraft-v4.1-pro-vector": {
1458
- // The vector/logo tier, and the odd one out of this roster in three ways.
1459
- // All three are read off its live endpoint schema, and all three are the
1460
- // kind of fact that only shows up as a billed 400 if it is guessed:
1461
- // - it renders FIVE ratios (no 4:5 / 5:4 / 2:3 / 3:2 / 21:9), so portrait
1462
- // ad shapes snap to 3:4 rather than being sent as-is;
1463
- // - it has NO resolution knob (`supported_parameters` lists none), so
1464
- // `image_size` is refused here instead of accepted and ignored;
1465
- // - it takes exactly ONE reference image, against 14-16 everywhere else.
1466
- // Its palette levers are real but arrive as provider passthrough
1467
- // (`controls`), which is why they are `json` rather than typed enums; the
1468
- // backend adapter builds that block in `buildImageGenBody`.
1469
- label: "Recraft v4.1 Pro Vector",
1470
- route: OPENROUTER_ROUTE,
1471
- billing: USAGE_BILLED,
1472
- inputs: [],
1473
- optional_inputs: [{ kind: "image", mimes: OPENROUTER_IMAGE_MIMES, max: RECRAFT_MAX_REFERENCES }],
1474
- required: ["prompt"],
1475
- params: {
1476
- prompt: { kind: "string", maxLength: RECRAFT_PROMPT_MAX },
1477
- aspect_ratio: { kind: "string", enum: RECRAFT_IMAGE_AR },
1478
- strength: { kind: "number", min: 0, max: 1 },
1479
- rgb_colors: { kind: "json" },
1480
- background_rgb_color: { kind: "json" }
1481
- }
1482
- }
1483
- },
1484
- image_reference_sheet: {
1485
- // Multi-view subject reference sheets (turnaround grids). The sheet prompt
1486
- // is baked into the backend handler — params here are semantic levers
1487
- // only. Both models consume MULTIPLE reference images via the `references`
1488
- // input slot (required: a sheet without source images is just image_generate).
1489
- "google/gemini-3-pro-image": {
1490
- label: "Google Gemini 3 Pro Image (Nano Banana Pro)",
1491
- route: OPENROUTER_ROUTE,
1492
- billing: USAGE_BILLED,
1493
- inputs: [{ kind: "image", mimes: OPENROUTER_IMAGE_MIMES }],
1494
- required: ["subject_description", "subject_type"],
1495
- params: {
1496
- subject_description: { kind: "string" },
1497
- subject_type: { kind: "string", enum: ["character", "person", "product", "location"] },
1498
- views: { kind: "json" },
1499
- style: { kind: "string" },
1500
- prompt_override: { kind: "string" },
1501
- aspect_ratio: { kind: "string", enum: OPENROUTER_IMAGE_AR },
1502
- image_size: { kind: "string", enum: OPENROUTER_IMAGE_SIZE }
1503
- }
1504
- },
1505
- "google/gemini-3.1-flash-image": {
1506
- label: "Google Gemini 3.1 Flash Image (Nano Banana 2)",
1507
- route: OPENROUTER_ROUTE,
1508
- billing: USAGE_BILLED,
1509
- inputs: [{ kind: "image", mimes: OPENROUTER_IMAGE_MIMES }],
1510
- required: ["subject_description", "subject_type"],
1511
- params: {
1512
- subject_description: { kind: "string" },
1513
- subject_type: { kind: "string", enum: ["character", "person", "product", "location"] },
1514
- views: { kind: "json" },
1515
- style: { kind: "string" },
1516
- prompt_override: { kind: "string" },
1517
- aspect_ratio: { kind: "string", enum: OPENROUTER_IMAGE_AR_EXTREME },
1518
- image_size: { kind: "string", enum: OPENROUTER_IMAGE_SIZE_EXTENDED }
1519
- }
1520
- }
1521
- },
1522
- image_aspect_adapt: {
1523
- // Multi-format adaptation of one creative. The recomposition prompt is
1524
- // baked into the backend handler. The target ratios come from EITHER an
1525
- // explicit `formats` list OR a `platform` preset that expands to the
1526
- // canonical set; exactly one of the two is required — that "one of" gate,
1527
- // and per-element ratio validation, live in the node's Zod schema (the
1528
- // registry can't express "one of" or gate array elements), so `formats`
1529
- // is not listed as registry-required. The source creative is a required
1530
- // input slot. `copy` (the exact lines the ad carries) and `safe_areas` (per
1531
- // format, the fractions each edge's interface covers) are set by the static
1532
- // scaffold so the reframe keeps every word, once, where the platform shows it.
1533
- "google/gemini-3-pro-image": {
1534
- label: "Google Gemini 3 Pro Image (Nano Banana Pro)",
1535
- route: OPENROUTER_ROUTE,
1536
- billing: USAGE_BILLED,
1537
- inputs: [{ kind: "image", mimes: OPENROUTER_IMAGE_MIMES }],
1538
- required: [],
1539
- params: {
1540
- formats: { kind: "json" },
1541
- platform: { kind: "string", enum: AD_FORMAT_PLATFORMS },
1542
- guidance: { kind: "string" },
1543
- copy: { kind: "json" },
1544
- safe_areas: { kind: "json" },
1545
- image_size: { kind: "string", enum: OPENROUTER_IMAGE_SIZE }
1546
- }
1547
- },
1548
- "google/gemini-3.1-flash-image": {
1549
- label: "Google Gemini 3.1 Flash Image (Nano Banana 2)",
1550
- route: OPENROUTER_ROUTE,
1551
- billing: USAGE_BILLED,
1552
- inputs: [{ kind: "image", mimes: OPENROUTER_IMAGE_MIMES }],
1553
- required: [],
1554
- params: {
1555
- formats: { kind: "json" },
1556
- platform: { kind: "string", enum: AD_FORMAT_PLATFORMS },
1557
- guidance: { kind: "string" },
1558
- copy: { kind: "json" },
1559
- safe_areas: { kind: "json" },
1560
- image_size: { kind: "string", enum: OPENROUTER_IMAGE_SIZE_EXTENDED }
1561
- }
1562
- }
1563
- },
1564
- video_generate: {
1565
- "bytedance/seedance-2.0": {
1566
- // Routed via Replicate's official `bytedance/seedance-2.0` model. NOTE:
1567
- // ByteDance's upstream likeness filter blocks photoreal human faces on ANY
1568
- // reseller, and it does NOT care whether the person is real: it classifies
1569
- // pixels, so an AI-generated face that looks photographic is refused
1570
- // exactly like a photograph (E005 / content_policy_blocked). Confirmed in
1571
- // production against faces we generated ourselves. The only escape is Veo
1572
- // — NOT a synthetic presenter, which an earlier version of this note
1573
- // wrongly recommended and which sends you round the same loop.
1574
- label: "ByteDance Seedance 2.0",
1575
- route: { provider: "replicate" },
1576
- billing: { kind: "formula", formula: "seedance-2.0" },
1577
- inputs: [],
1578
- optional_inputs: [{ kind: "image", mimes: REPLICATE_IMAGE_MIMES, max: SEEDANCE_MAX_REFERENCES }],
1579
- required: ["prompt"],
1580
- params: {
1581
- // Replicate's Seedance wrapper hard-caps the prompt at 4000 chars; gate
1582
- // it here so an over-length prompt fails validate (free) not the billed call.
1583
- prompt: { kind: "string", maxLength: SEEDANCE_PROMPT_MAX },
1584
- aspect_ratio: {
1585
- kind: "string",
1586
- enum: ["1:1", "3:4", "9:16", "4:3", "16:9", "21:9", "9:21"]
1587
- },
1588
- resolution: { kind: "string", enum: ["480p", "720p", "1080p", "4k"] },
1589
- duration: { kind: "number", enum: SEEDANCE_DURATIONS },
1590
- // Replicate types this `integer`, and a fractional seed is a schema
1591
- // rejection rather than a rounded one. No range is advertised, so none is
1592
- // invented — see `InputSpec.max` on why absent must stay ungated.
1593
- seed: { kind: "number", integer: true },
1594
- generate_audio: { kind: "boolean" }
1595
- }
1596
- },
1597
- "bytedance/seedance-2.5": {
1598
- // Seedance 2.5 — the LONG-FORM, MULTIMODAL tier, and the only curated video
1599
- // model reached through OpenRouter that is not frame-only.
1600
- //
1601
- // Routed through OpenRouter's video gateway (provider `seed`), NOT through
1602
- // Replicate like 2.0 — the gateway carries the multimodal reference surface
1603
- // 2.5 exists for, and Replicate's 2.0 wrapper only has `reference_images`.
1604
- // The backend branches on the exact 2.0 id for the Replicate path, so this
1605
- // model must never be folded into a `startsWith("bytedance/seedance")`
1606
- // routing test: that is one character away from sending 2.5 to a wrapper
1607
- // that cannot express half of what it is being asked to do.
1608
- //
1609
- // Same upstream likeness filter as 2.0 — ByteDance classifies PIXELS, so an
1610
- // AI-generated face that reads photographic is refused exactly like a
1611
- // photograph (content_policy_blocked). A reference-guided clip refused that
1612
- // way is re-rendered on fal, which serves the same model under a licence that
1613
- // takes faces; a frame-started one is reported, never moved to another model.
1614
- //
1615
- // No published prompt cap on this route, so none is invented: OpenRouter's
1616
- // request schema declares no `maxLength` and the model is sold on long,
1617
- // multi-shot briefs. A ceiling we made up would refuse the exact prompts
1618
- // this tier exists to render.
1619
- label: "ByteDance Seedance 2.5",
1620
- route: OPENROUTER_ROUTE,
1621
- billing: { kind: "formula", formula: "seedance-2.5" },
1622
- recoveryRoute: SEEDANCE_FACE_RECOVERY_ROUTE,
1623
- inputs: [],
1624
- optional_inputs: [
1625
- { kind: "image", mimes: OPENROUTER_IMAGE_MIMES, max: SEEDANCE_25_MAX_IMAGE_REFERENCES },
1626
- { kind: "video", mimes: OPENROUTER_VIDEO_REFERENCE_MIMES, max: SEEDANCE_25_MAX_VIDEO_REFERENCES },
1627
- { kind: "audio", mimes: OPENROUTER_AUDIO_REFERENCE_MIMES, max: SEEDANCE_25_MAX_AUDIO_REFERENCES }
1628
- ],
1629
- required: ["prompt"],
1630
- params: {
1631
- prompt: { kind: "string" },
1632
- aspect_ratio: { kind: "string", enum: SEEDANCE_25_ASPECT_RATIOS },
1633
- resolution: { kind: "string", enum: SEEDANCE_25_RESOLUTIONS },
1634
- duration: { kind: "number", enum: SEEDANCE_25_DURATIONS },
1635
- seed: { kind: "number", integer: true, min: 0, max: UINT32_MAX },
1636
- generate_audio: { kind: "boolean" },
1637
- // A visible AI watermark on an ad creative is a defect, and this is the
1638
- // only curated model that lets us turn one off: `watermark` is named in
1639
- // the model's own `allowed_passthrough_parameters`, so it rides as a
1640
- // top-level body field exactly like Kling's `cfg_scale` does.
1641
- watermark: { kind: "boolean" }
1642
- }
1643
- },
1644
- "google/gemini-omni-1.1-flash": {
1645
- // Google Gemini Omni 1.1 Flash — the DEFAULT video model. Natively
1646
- // multimodal: it reasons over text + images and renders video WITH
1647
- // synchronized audio in one call, and it is the only curated model that
1648
- // takes reference images through its own first-party API (task
1649
- // `reference_to_video`).
1650
- //
1651
- // It is a SEPARATE entry from `google/gemini-omni-flash` (the preview),
1652
- // not a rolling upgrade of it, because the two do not render the same
1653
- // things: 1.1 takes a `resolution` and the preview does not, and 1.1 bills
1654
- // the seconds it renders where the preview bills its whole 10s window. One
1655
- // shared key would have to promise the union of those, which means a canvas
1656
- // could ask the preview for 360p and be quoted a third of what it charges.
1657
- //
1658
- // NOT on OpenRouter. `GET /api/v1/videos/models` lists 17 video models and
1659
- // no Gemini Omni at either version, so this is the sanctioned direct-provider
1660
- // exception (see `convex/lib/geminiOmni.ts`): Google's Interactions API,
1661
- // `POST /v1beta/interactions`. Its own `generateContent` endpoint refuses it
1662
- // ("This model only supports Interactions API"), so the Veo `predictLongRunning`
1663
- // shape does not apply either.
1664
- //
1665
- // The param set below is deliberately short and was read off the live API,
1666
- // not off the docs — the knobs absent here are rejected with a pre-dispatch
1667
- // 400 (`Unknown parameter '<name>'`): no `seed`, no `negative_prompt`, no
1668
- // `generate_audio`, no `person_generation` / `enhance_prompt` /
1669
- // `conditioning_scale`. Audio is always on and cannot be turned off.
1670
- // Widening this list does not widen the model; it just moves a free
1671
- // validation error into a billed one.
1672
- //
1673
- // `duration` is the odd one out: Omni has no duration FIELD at any nesting
1674
- // level, but it honours a length named in the prompt (3-10s), so the adapter
1675
- // turns this param into a prompt directive. It is a real, billable knob.
1676
- //
1677
- // NO VIDEO INPUT SLOT, and that is a gate on our project rather than a gap
1678
- // in the model or a mistake in how we ask. 1.1 advertises video references,
1679
- // `edit` and `extend`, and every request carrying a video comes back 400
1680
- // `content_blocked`.
1681
- //
1682
- // The controlled version, run through the shape Google's own docs use
1683
- // (`{"type":"document","uri":<Files API uri>}`, no generation_config),
1684
- // changing only the uploaded file: an IMAGE returns 200 and renders a clip;
1685
- // a VIDEO returns `content_blocked`. Same route, same structure. So the
1686
- // request shape is right and video input specifically is refused. Also
1687
- // measured across inline base64, all three tasks, video AND text output,
1688
- // synthetic clips, Omni's own output, real camera footage, and both our
1689
- // keys. Full probe log: `.context/omni-1.1-measurements.md`.
1690
- //
1691
- // Adding `{ kind: "video", mimes: … }` below is the ONE line that turns the
1692
- // whole feature on — the "Build on" control, the reference picker taking an
1693
- // MP4, the drop target and the source-clip cost premium are all driven off
1694
- // this slot. Add it the day the 400 stops, not before: until then it offers
1695
- // a control whose every use is refused.
1696
- label: "Google Gemini Omni 1.1 Flash",
1697
- route: { provider: "google-interactions", wireModel: "gemini-omni-1.1-flash" },
1698
- billing: { kind: "formula", formula: "gemini-omni" },
1699
- inputs: [],
1700
- optional_inputs: [{ kind: "image", mimes: GEMINI_OMNI_IMAGE_MIMES }],
1701
- required: ["prompt"],
1702
- params: {
1703
- prompt: { kind: "string" },
1704
- aspect_ratio: { kind: "string", enum: GEMINI_OMNI_ASPECT_RATIOS },
1705
- resolution: { kind: "string", enum: GEMINI_OMNI_RESOLUTIONS },
1706
- duration: { kind: "number", enum: GEMINI_OMNI_DURATIONS }
1707
- }
1708
- },
1709
- "google/gemini-omni-flash": {
1710
- // LEGACY — the Omni PREVIEW (`gemini-omni-flash-preview`), superseded by
1711
- // `google/gemini-omni-1.1-flash` above. Kept so canvases authored before 1.1
1712
- // still validate and re-run unchanged (`baker canvas run --slug` restores a
1713
- // recorded canvas verbatim, so dropping this model would break every stored
1714
- // creative that used it). Don't reach for it in new work.
1715
- //
1716
- // Its param surface is the ORIGINAL one on purpose, and the omission that
1717
- // matters is `resolution`. This model renders 720p / 24fps and nothing else.
1718
- //
1719
- // It does NOT reject the field, which is the trap and the reason this is
1720
- // enforced here rather than left to the provider: asked for `360p` it
1721
- // returns HTTP 200, a 1280x720 clip, and a bill of 17,376 video tokens —
1722
- // the 720p rate, three times the 5,793 that tier costs on 1.1. Accepted,
1723
- // ignored, and charged for. Copying 1.1's enum across to make the two
1724
- // entries match would hand a canvas a quality dial that does nothing and a
1725
- // quote a third of the real charge.
1726
- label: "Google Gemini Omni Flash (legacy preview)",
1727
- route: { provider: "google-interactions", wireModel: "gemini-omni-flash-preview" },
1728
- billing: { kind: "formula", formula: "gemini-omni" },
1729
- inputs: [],
1730
- optional_inputs: [{ kind: "image", mimes: GEMINI_OMNI_IMAGE_MIMES }],
1731
- required: ["prompt"],
1732
- params: {
1733
- prompt: { kind: "string" },
1734
- aspect_ratio: { kind: "string", enum: GEMINI_OMNI_ASPECT_RATIOS },
1735
- duration: { kind: "number", enum: GEMINI_OMNI_DURATIONS }
1736
- }
1737
- },
1738
- "google/veo-3.1": {
1739
- // Photoreal CINE CEILING + the real-face fallback (Veo generates adult
1740
- // humans from a keyframe, dodging ByteDance's real-person filter). Same
1741
- // OpenRouter google-vertex routing as the fast tier; the quality dial is
1742
- // `resolution: 1080p` + `generate_audio` + a real `negative_prompt`, not a
1743
- // separate provider knob. Reach for this for hero beats and any clip that
1744
- // must carry a real human likeness.
1745
- label: "Google Veo 3.1",
1746
- route: OPENROUTER_ROUTE,
1747
- billing: {
1748
- kind: "per_second",
1749
- // Veo prices 4K far above the base tier, and 4K is a selectable resolution,
1750
- // so folding it into the base rate under-quotes the dearest clip we can make.
1751
- // A QUOTE only: the charge is the usage OpenRouter reports for the call.
1752
- usd: { silent: 0.2, audio: 0.4, byResolution: { "4K": { silent: 0.4, audio: 0.6 } } }
1753
- },
1754
- inputs: [],
1755
- optional_inputs: [{ kind: "image", mimes: OPENROUTER_IMAGE_MIMES }],
1756
- required: ["prompt"],
1757
- params: {
1758
- prompt: { kind: "string" },
1759
- negative_prompt: { kind: "string" },
1760
- aspect_ratio: { kind: "string", enum: ["16:9", "9:16"] },
1761
- resolution: { kind: "string", enum: ["720p", "1080p", "4K"] },
1762
- duration: { kind: "number", enum: [4, 6, 8] },
1763
- // Vertex declares `seed` a uint32: "accepted range 0-4294967295".
1764
- seed: { kind: "number", integer: true, min: 0, max: VEO_SEED_MAX },
1765
- generate_audio: { kind: "boolean" },
1766
- person_generation: { kind: "string", enum: ["allow_all", "allow_adult"] },
1767
- enhance_prompt: { kind: "boolean" },
1768
- conditioning_scale: { kind: "number" }
1769
- }
1770
- },
1771
- "kwaivgi/kling-v3.0-pro": {
1772
- // Motion-transfer / dynamic multi-shot beats. Reachable through the default
1773
- // OpenRouter gateway (generic video body — no google-vertex block), so it
1774
- // needs no direct-provider exception. `cfg_scale` trades prompt adherence
1775
- // vs motion freedom; higher = closer to prompt.
1776
- //
1777
- // Params below are the ones OpenRouter actually advertises for this model
1778
- // (GET /api/v1/videos/models). Three were wrong before and each was a free
1779
- // 400 or a silently unsupported knob: it renders 720p ONLY (1080p was
1780
- // offered and rejected), it takes ANY duration from 3-15s (we allowed just
1781
- // 5 and 10), and it does not support `seed` at all.
1782
- label: "Kling 3.0",
1783
- route: OPENROUTER_ROUTE,
1784
- billing: {
1785
- kind: "per_second",
1786
- // One flat rate across every resolution and mode.
1787
- usd: { silent: 0.112, audio: 0.168 }
1788
- },
1789
- inputs: [],
1790
- optional_inputs: [{ kind: "image", mimes: OPENROUTER_IMAGE_MIMES }],
1791
- required: ["prompt"],
1792
- params: {
1793
- // Kling caps the prompt shorter than Seedance; gate it here so an
1794
- // over-length prompt fails validate (free) not the billed call. Its
1795
- // negative prompt is a SEPARATE 2,500 budget, not a shared one.
1796
- prompt: { kind: "string", maxLength: KLING_PROMPT_MAX },
1797
- negative_prompt: { kind: "string", maxLength: KLING_PROMPT_MAX },
1798
- aspect_ratio: { kind: "string", enum: ["16:9", "9:16", "1:1"] },
1799
- resolution: { kind: "string", enum: ["720p"] },
1800
- duration: { kind: "number", enum: KLING_DURATIONS },
1801
- generate_audio: { kind: "boolean" },
1802
- cfg_scale: { kind: "number", min: 0, max: 1 }
1803
- }
1804
- },
1805
- "x-ai/grok-imagine-video": {
1806
- // The avatar workhorse. Measured best of the reference-capable models on
1807
- // identity retention AND aspect-ratio obedience, at the lowest rate of any
1808
- // video model we carry ($0.05/s at 480p). No audio at all — `generate_audio`
1809
- // is absent from its OpenRouter listing, so a talking head goes to Wan 2.7.
1810
- // NOTE: `x-ai/grok-imagine-video-1.5` is NOT a drop-in upgrade — it is
1811
- // described as plain image-to-video and drops the reference conditioning
1812
- // this entry exists for.
1813
- label: "Grok Imagine Video",
1814
- route: OPENROUTER_ROUTE,
1815
- billing: {
1816
- kind: "per_second",
1817
- usd: {
1818
- silent: 0.07,
1819
- audio: 0.07,
1820
- byResolution: { "480p": { silent: 0.05, audio: 0.05 }, "720p": { silent: 0.07, audio: 0.07 } }
1821
- }
1822
- },
1823
- inputs: [],
1824
- optional_inputs: [{ kind: "image", mimes: OPENROUTER_IMAGE_MIMES }],
1825
- required: ["prompt"],
1826
- params: {
1827
- prompt: { kind: "string" },
1828
- aspect_ratio: { kind: "string", enum: ["16:9", "9:16", "1:1", "4:3", "3:4", "3:2", "2:3"] },
1829
- resolution: { kind: "string", enum: ["480p", "720p"] },
1830
- duration: { kind: "number", enum: GROK_IMAGINE_DURATIONS }
1831
- }
1832
- },
1833
- "alibaba/wan-2.7": {
1834
- // Reference-to-video AND native audio — the only model we carry with both,
1835
- // which makes it the landscape talking-head option.
1836
- //
1837
- // LANDSCAPE ONLY, measured. It advertises 9:16, 1:1, 4:3 and 3:4, and
1838
- // delivers 16:9 regardless: asked for vertical via `aspect_ratio: "9:16"`
1839
- // it returned 1280x720, and asked again via an explicit
1840
- // `size: "720x1280"` from its own `supported_sizes` it returned 1280x720
1841
- // again. The enum below is therefore what it DOES, not what it claims, so
1842
- // nobody pays for a vertical clip that comes back landscape. For a vertical
1843
- // avatar clip use `x-ai/grok-imagine-video` (silent) or animate a generated
1844
- // still with `google/veo-3.1-lite` (native audio, honours 9:16).
1845
- label: "Alibaba Wan 2.7",
1846
- route: OPENROUTER_ROUTE,
1847
- billing: {
1848
- kind: "per_second",
1849
- // Flat $0.10/s across resolutions and modes, audio included.
1850
- usd: { silent: 0.1, audio: 0.1 },
1851
- minBilledSeconds: MIN_BILLED_SECONDS
1852
- },
1853
- inputs: [],
1854
- optional_inputs: [{ kind: "image", mimes: OPENROUTER_IMAGE_MIMES }],
1855
- required: ["prompt"],
1856
- params: {
1857
- prompt: { kind: "string" },
1858
- negative_prompt: { kind: "string" },
1859
- aspect_ratio: { kind: "string", enum: ["16:9"] },
1860
- resolution: { kind: "string", enum: ["720p", "1080p"] },
1861
- duration: { kind: "number", enum: WAN_27_DURATIONS },
1862
- seed: { kind: "number" },
1863
- generate_audio: { kind: "boolean" }
1864
- }
1865
- },
1866
- "x-ai/grok-imagine-video-1.5": {
1867
- // NOT a replacement for the entry above, and deliberately absent from
1868
- // `AVATAR_VIDEO_MODELS` and `REFERENCE_TO_VIDEO_MODELS`: OpenRouter describes the
1869
- // older Grok as "text-, image-, and reference-conditioned" and 1.5 as taking "an
1870
- // optional starting image". Reference conditioning is the whole reason Grok carries
1871
- // avatars — it is what holds a face from the identity sheet — so swapping them
1872
- // would quietly cost every avatar clip its likeness.
1873
- //
1874
- // What it adds over the older one: 1080p, and 15s rather than 10.
1875
- label: "Grok Imagine Video 1.5",
1876
- route: OPENROUTER_ROUTE,
1877
- billing: {
1878
- kind: "per_second",
1879
- // `cents_per_video_output_second_*`: 8c, 14c and 25c. No audio, so both
1880
- // columns are the same rate rather than one being wrong.
1881
- usd: {
1882
- silent: 0.14,
1883
- audio: 0.14,
1884
- byResolution: {
1885
- "480p": { silent: 0.08, audio: 0.08 },
1886
- "720p": { silent: 0.14, audio: 0.14 },
1887
- "1080p": { silent: 0.25, audio: 0.25 }
1888
- }
1889
- }
1890
- },
1891
- inputs: [],
1892
- optional_inputs: [{ kind: "image", mimes: OPENROUTER_IMAGE_MIMES }],
1893
- required: ["prompt"],
1894
- params: {
1895
- prompt: { kind: "string" },
1896
- aspect_ratio: { kind: "string", enum: ["16:9", "9:16", "1:1", "4:3", "3:4", "3:2", "2:3"] },
1897
- resolution: { kind: "string", enum: ["480p", "720p", "1080p"] },
1898
- duration: { kind: "number", enum: GROK_IMAGINE_15_DURATIONS }
1899
- }
1900
- },
1901
- "alibaba/wan-3.0": {
1902
- // 2.7's successor on every axis that matters: 2–30s against 2–10, 1080p and 480p
1903
- // as well as 720p, and it keeps the native audio that made 2.7 the landscape
1904
- // talking-head option.
1905
- //
1906
- // The ratios are what it ADVERTISES. 2.7 advertised five and delivered 16:9 for
1907
- // all of them — measured, twice, which is why its enum here is a single value. That
1908
- // was a different model and this one is not gated on its predecessor's lie, but
1909
- // the first vertical clip anyone renders here is worth looking at before a campaign
1910
- // is built on it.
1911
- //
1912
- // No `last_frame`: 2.7 takes one and 3.0 does not, so a canvas that ends a shot on
1913
- // a chosen frame stays on 2.7.
1914
- label: "Alibaba Wan 3.0",
1915
- route: OPENROUTER_ROUTE,
1916
- billing: {
1917
- kind: "per_second",
1918
- // Priced per resolution where 2.7 was flat, and the rate still includes
1919
- // audio: there is no separate audio SKU. `duration_seconds_480p|720p|1080p`.
1920
- usd: {
1921
- silent: 0.1,
1922
- audio: 0.1,
1923
- byResolution: {
1924
- "480p": { silent: 0.05, audio: 0.05 },
1925
- "720p": { silent: 0.1, audio: 0.1 },
1926
- "1080p": { silent: 0.2, audio: 0.2 }
1927
- }
1928
- }
1929
- },
1930
- inputs: [],
1931
- optional_inputs: [{ kind: "image", mimes: OPENROUTER_IMAGE_MIMES }],
1932
- required: ["prompt"],
1933
- params: {
1934
- prompt: { kind: "string" },
1935
- aspect_ratio: { kind: "string", enum: ["16:9", "9:16", "1:1", "4:3", "3:4"] },
1936
- resolution: { kind: "string", enum: ["480p", "720p", "1080p"] },
1937
- duration: { kind: "number", enum: WAN_30_DURATIONS },
1938
- seed: { kind: "number" },
1939
- generate_audio: { kind: "boolean" }
1940
- }
1941
- },
1942
- "runway/gen-4.5": {
1943
- // One resolution, two shapes, and silent — `generate_audio: false` in its listing,
1944
- // so a talking head belongs on Wan or Omni. First frame only, no reference.
1945
- label: "Runway Gen-4.5",
1946
- route: OPENROUTER_ROUTE,
1947
- billing: {
1948
- kind: "per_second",
1949
- // One flat rate, one resolution: `cents_per_second_output: 12`. Silent.
1950
- usd: { silent: 0.12, audio: 0.12 }
1951
- },
1952
- inputs: [],
1953
- optional_inputs: [{ kind: "image", mimes: OPENROUTER_IMAGE_MIMES }],
1954
- required: ["prompt"],
1955
- params: {
1956
- prompt: { kind: "string" },
1957
- aspect_ratio: { kind: "string", enum: ["16:9", "9:16"] },
1958
- resolution: { kind: "string", enum: ["720p"] },
1959
- duration: { kind: "number", enum: RUNWAY_45_DURATIONS },
1960
- seed: { kind: "number" }
1961
- }
1962
- },
1963
- "alibaba/happyhorse-1.1": {
1964
- // Third reference-capable option: strong identity, correct ratios, no audio.
1965
- // First-frame only (no `last_frame`), so it cannot close a beat on a
1966
- // specified end pose the way Wan and Veo can.
1967
- label: "Alibaba HappyHorse 1.1",
1968
- route: OPENROUTER_ROUTE,
1969
- billing: {
1970
- kind: "per_second",
1971
- usd: { silent: 0.1278, audio: 0.1278, byResolution: { "720p": { silent: 0.0988, audio: 0.0988 } } },
1972
- minBilledSeconds: MIN_BILLED_SECONDS
1973
- },
1974
- inputs: [],
1975
- optional_inputs: [{ kind: "image", mimes: OPENROUTER_IMAGE_MIMES }],
1976
- required: ["prompt"],
1977
- params: {
1978
- prompt: { kind: "string" },
1979
- aspect_ratio: { kind: "string", enum: ["16:9", "9:16", "1:1", "4:3", "3:4", "21:9", "9:21"] },
1980
- resolution: { kind: "string", enum: ["720p", "1080p"] },
1981
- duration: { kind: "number", enum: HAPPYHORSE_DURATIONS },
1982
- seed: { kind: "number" }
1983
- }
1984
- },
1985
- "google/veo-3.1-lite": {
1986
- // The cheapest way to animate a still that carries a real face: same Veo
1987
- // family and the same escape from ByteDance's filter, at $0.05/s with audio
1988
- // at 720p against Veo 3.1's $0.40. That 8x is the difference between an
1989
- // avatar clip you iterate on and one you think twice about.
1990
- label: "Google Veo 3.1 Lite",
1991
- route: OPENROUTER_ROUTE,
1992
- billing: {
1993
- kind: "per_second",
1994
- usd: { silent: 0.05, audio: 0.08, byResolution: { "720p": { silent: 0.03, audio: 0.05 } } }
1995
- },
1996
- inputs: [],
1997
- optional_inputs: [{ kind: "image", mimes: OPENROUTER_IMAGE_MIMES }],
1998
- required: ["prompt"],
1999
- params: {
2000
- prompt: { kind: "string" },
2001
- negative_prompt: { kind: "string" },
2002
- aspect_ratio: { kind: "string", enum: ["16:9", "9:16"] },
2003
- resolution: { kind: "string", enum: ["720p", "1080p"] },
2004
- duration: { kind: "number", enum: [4, 6, 8] },
2005
- seed: { kind: "number" },
2006
- generate_audio: { kind: "boolean" },
2007
- person_generation: { kind: "string", enum: ["allow_all", "allow_adult"] },
2008
- enhance_prompt: { kind: "boolean" },
2009
- conditioning_scale: { kind: "number" }
2010
- }
2011
- },
2012
- "google/veo-3.1-fast": {
2013
- // Cheap test/iteration model. Forwarded by the backend via
2014
- // `provider.options.google-vertex.parameters` (camelCased on the wire).
2015
- label: "Google Veo 3.1 Fast",
2016
- route: OPENROUTER_ROUTE,
2017
- billing: {
2018
- kind: "per_second",
2019
- usd: {
2020
- silent: 0.1,
2021
- audio: 0.12,
2022
- byResolution: { "720p": { silent: 0.08, audio: 0.1 }, "4K": { silent: 0.25, audio: 0.3 } }
2023
- }
2024
- },
2025
- inputs: [],
2026
- optional_inputs: [{ kind: "image", mimes: OPENROUTER_IMAGE_MIMES }],
2027
- required: ["prompt"],
2028
- params: {
2029
- prompt: { kind: "string" },
2030
- negative_prompt: { kind: "string" },
2031
- aspect_ratio: { kind: "string", enum: ["16:9", "9:16"] },
2032
- resolution: { kind: "string", enum: ["720p", "1080p", "4K"] },
2033
- duration: { kind: "number", enum: [4, 6, 8] },
2034
- seed: { kind: "number", integer: true, min: 0, max: VEO_SEED_MAX },
2035
- generate_audio: { kind: "boolean" },
2036
- // Image-to-video and EU/UK/CH/MENA regions cap this at `allow_adult`;
2037
- // `allow_all` is text-to-video only. Allow both so an image-conditioned
2038
- // Veo clip (the real-face fallback) validates.
2039
- person_generation: { kind: "string", enum: ["allow_all", "allow_adult"] },
2040
- enhance_prompt: { kind: "boolean" },
2041
- conditioning_scale: { kind: "number" }
2042
- }
2043
- }
2044
- },
2045
- video_deconstruct: {
2046
- // Replication-grade video extraction — the forensic system prompts live on
2047
- // the backend; `focus` appends emphasis only. Frames ride on a throwaway
2048
- // Mux asset; analysis runs on Gemini with the video as a file part.
2049
- "google/gemini-3.8-flash": {
2050
- label: "Google Gemini 3.8 Flash (Video)",
2051
- route: OPENROUTER_ROUTE,
2052
- billing: USAGE_BILLED,
2053
- inputs: [{ kind: "video", mimes: DECONSTRUCT_VIDEO_MIMES }],
2054
- required: [],
2055
- params: {
2056
- mode: { kind: "string", enum: ["full", "index"] },
2057
- language: { kind: "string" },
2058
- max_scenes: { kind: "number", min: 1, max: 60 },
2059
- focus: { kind: "string" },
2060
- start_s: { kind: "number", min: 0 },
2061
- end_s: { kind: "number", min: 0 },
2062
- max_clip_s: { kind: "number", min: 1, max: 60 },
2063
- // "deepgram" is retired: still accepted so a saved canvas runs, on Groq.
2064
- transcriber: { kind: "string", enum: ["groq", "deepgram"] },
2065
- // Real visual shot-cut timestamps (seconds) from local PySceneDetect;
2066
- // scene boundaries snap onto them so frames never straddle a hard cut.
2067
- // Shape (number[]) is enforced by the node + backend Zod schemas.
2068
- shot_cuts: { kind: "json" }
2069
- }
2070
- },
2071
- "google/gemini-4-carbon": {
2072
- label: "Google Gemini 4 Carbon (Video)",
2073
- route: OPENROUTER_ROUTE,
2074
- billing: USAGE_BILLED,
2075
- inputs: [{ kind: "video", mimes: DECONSTRUCT_VIDEO_MIMES }],
2076
- required: [],
2077
- params: {
2078
- mode: { kind: "string", enum: ["full", "index"] },
2079
- language: { kind: "string" },
2080
- max_scenes: { kind: "number", min: 1, max: 60 },
2081
- focus: { kind: "string" },
2082
- start_s: { kind: "number", min: 0 },
2083
- end_s: { kind: "number", min: 0 },
2084
- max_clip_s: { kind: "number", min: 1, max: 60 },
2085
- // "deepgram" is retired: still accepted so a saved canvas runs, on Groq.
2086
- transcriber: { kind: "string", enum: ["groq", "deepgram"] },
2087
- // See gemini-3.8-flash above — local PySceneDetect shot-cut timestamps.
2088
- shot_cuts: { kind: "json" }
2089
- }
2090
- }
2091
- },
2092
- video_lipsync: {
2093
- // Formerly `fal/veed-lipsync`, which named a provider and a model it had stopped
2094
- // running on; that id stays accepted through `MODEL_ALIASES`.
2095
- "replicate/sync-lipsync-2": {
2096
- label: "Sync Labs Lipsync 2 (Replicate)",
2097
- route: { provider: "replicate", wireModel: "sync/lipsync-2" },
2098
- billing: { kind: "formula", formula: "lipsync-minutes" },
2099
- inputs: [
2100
- { kind: "video", mimes: REPLICATE_VIDEO_MIMES },
2101
- { kind: "audio", mimes: REPLICATE_AUDIO_MIMES }
2102
- ],
2103
- required: [],
2104
- params: {}
2105
- }
2106
- },
2107
- tts: {
2108
- "elevenlabs/eleven_v3": {
2109
- // eleven_v3 does NOT yet support context stitching
2110
- // (previous_text/next_text/*_request_ids). ElevenLabs returns a clean
2111
- // `unsupported_model` 400 if you pass them.
2112
- label: "ElevenLabs Eleven v3",
2113
- route: { provider: "elevenlabs", wireModel: "eleven_v3" },
2114
- billing: { kind: "formula", formula: "elevenlabs-characters" },
2115
- inputs: [],
2116
- required: ["text", "voice"],
2117
- params: {
2118
- text: { kind: "string", maxLength: ELEVENLABS_MAX_TEXT_CHARS },
2119
- voice: { kind: "string" },
2120
- language_code: { kind: "string" },
2121
- stability: { kind: "number", min: 0, max: 1 },
2122
- similarity_boost: { kind: "number", min: 0, max: 1 },
2123
- voice_settings: { kind: "json" },
2124
- seed: { kind: "number", min: 0, max: 4294967295 },
2125
- pronunciation_dictionary_locators: { kind: "json" },
2126
- apply_text_normalization: { kind: "string", enum: ["auto", "on", "off"] },
2127
- apply_language_text_normalization: { kind: "boolean" },
2128
- with_timestamps: { kind: "boolean" },
2129
- output_format: { kind: "string", enum: ELEVENLABS_OUTPUT_FORMATS }
2130
- }
2131
- }
2132
- },
2133
- audio_voice_convert: {
2134
- "elevenlabs/eleven_multilingual_sts_v2": {
2135
- // Speech-to-speech / Voice Changer: re-voice an existing audio clip in the
2136
- // TARGET voice, preserving timing/prosody. Used to normalize a talking-head
2137
- // clip's native (generator-chosen) voice into ONE consistent brand voice.
2138
- label: "ElevenLabs Voice Changer (multilingual STS v2)",
2139
- route: { provider: "elevenlabs", wireModel: "eleven_multilingual_sts_v2" },
2140
- billing: { kind: "formula", formula: "elevenlabs-voice-convert-minutes" },
2141
- inputs: [{ kind: "audio", mimes: REPLICATE_AUDIO_MIMES }],
2142
- required: ["voice"],
2143
- params: {
2144
- voice: { kind: "string" },
2145
- output_format: { kind: "string", enum: ELEVENLABS_OUTPUT_FORMATS },
2146
- remove_background_noise: { kind: "boolean" }
2147
- }
2148
- }
2149
- },
2150
- music: {
2151
- "elevenlabs/music-v1": {
2152
- label: "ElevenLabs Music v1 (Compose)",
2153
- route: { provider: "elevenlabs", wireModel: ELEVENLABS_MUSIC_ENGINE },
2154
- billing: { kind: "formula", formula: "elevenlabs-music-seconds" },
2155
- inputs: [],
2156
- required: [],
2157
- params: {
2158
- prompt: { kind: "string" },
2159
- composition_plan: { kind: "json" },
2160
- music_length_ms: { kind: "number", min: 3e3, max: ELEVENLABS_MAX_MUSIC_LENGTH_MS },
2161
- seed: { kind: "number" },
2162
- force_instrumental: { kind: "boolean" },
2163
- respect_sections_durations: { kind: "boolean" },
2164
- with_timestamps: { kind: "boolean" },
2165
- output_format: { kind: "string", enum: ELEVENLABS_OUTPUT_FORMATS }
2166
- }
2167
- },
2168
- "elevenlabs/video-background-music-v1": {
2169
- label: "ElevenLabs Video Background Music v1",
2170
- route: { provider: "elevenlabs", wireModel: ELEVENLABS_MUSIC_ENGINE },
2171
- billing: { kind: "formula", formula: "elevenlabs-music-seconds" },
2172
- inputs: [{ kind: "video", mimes: REPLICATE_VIDEO_MIMES }],
2173
- required: [],
2174
- params: {
2175
- description: { kind: "string" },
2176
- tags: { kind: "json" },
2177
- output_format: { kind: "string", enum: ELEVENLABS_OUTPUT_FORMATS }
2178
- }
2179
- }
2180
- },
2181
- dialogue: {
2182
- "elevenlabs/eleven_v3": {
2183
- label: "ElevenLabs Eleven v3 (Dialogue)",
2184
- route: { provider: "elevenlabs", wireModel: "eleven_v3" },
2185
- billing: { kind: "formula", formula: "elevenlabs-characters" },
2186
- inputs: [],
2187
- required: ["inputs"],
2188
- params: {
2189
- inputs: { kind: "json" },
2190
- language_code: { kind: "string" },
2191
- settings: { kind: "json" },
2192
- seed: { kind: "number", min: 0, max: 4294967295 },
2193
- apply_text_normalization: { kind: "string", enum: ["auto", "on", "off"] },
2194
- with_timestamps: { kind: "boolean" },
2195
- output_format: { kind: "string", enum: ELEVENLABS_OUTPUT_FORMATS }
2196
- }
2197
- }
2198
- },
2199
- sound_effect: {
2200
- "elevenlabs/eleven_text_to_sound_v2": {
2201
- label: "ElevenLabs Text-to-Sound v2",
2202
- route: { provider: "elevenlabs", wireModel: "eleven_text_to_sound_v2" },
2203
- billing: { kind: "formula", formula: "elevenlabs-sound-effect-seconds" },
2204
- inputs: [],
2205
- required: ["text"],
2206
- params: {
2207
- text: { kind: "string" },
2208
- duration_seconds: { kind: "number", min: 0.5, max: 30 },
2209
- prompt_influence: { kind: "number", min: 0, max: 1 },
2210
- loop: { kind: "boolean" },
2211
- output_format: { kind: "string", enum: ELEVENLABS_OUTPUT_FORMATS }
2212
- }
2213
- }
2214
- }
2215
- };
2216
- var MODEL_ALIASES = {
2217
- "fal/veed-lipsync": "replicate/sync-lipsync-2",
2218
- "fal/veed-video-background-removal": "replicate/birefnet-video",
2219
- "fal/birefnet-v2": "replicate/birefnet",
2220
- "google/gemini-3.1-flash-image-preview": "google/gemini-3.1-flash-image",
2221
- "google/gemini-3-pro-image-preview": "google/gemini-3-pro-image",
2222
- "openai/gpt-5.4-image-2": "openai/gpt-image-2.5-sunburst",
2223
- // OpenRouter's floating Gemini aliases, pinned 2026-11-17: `flash-latest` moved to
2224
- // Gemini 4 Hydrogen on 2026-11-12 at nearly twice 3.8 Flash's price, unannounced.
2225
- "~google/gemini-flash-latest": "google/gemini-3.8-flash",
2226
- "~google/gemini-pro-latest": "google/gemini-4-carbon"
2227
- };
2228
- function canonicalModelId(model) {
2229
- return Object.keys(MODEL_ALIASES).includes(model) ? MODEL_ALIASES[model] : model;
2230
- }
2231
- function modelIdsAccepted(canonical) {
2232
- return [canonical, ...Object.keys(MODEL_ALIASES).filter((legacy) => MODEL_ALIASES[legacy] === canonical)];
2233
- }
2234
- function modelSpec(kind, model) {
2235
- return MODEL_REGISTRY[kind]?.[canonicalModelId(model)];
2236
- }
2237
- var NARROWED_ALIASES = ["openai/gpt-5.4-image-2"];
2238
- function canonicalModelParams(kind, params) {
2239
- const model = params.model;
2240
- if (typeof model !== "string" || canonicalModelId(model) === model) return params;
2241
- const successor = canonicalModelId(model);
2242
- if (!NARROWED_ALIASES.includes(model)) return { ...params, model: successor };
2243
- const fitted = { ...params, model: successor };
2244
- if (typeof fitted.aspect_ratio === "string") {
2245
- fitted.aspect_ratio = nearestSupportedAspectRatio(kind, successor, fitted.aspect_ratio);
2246
- }
2247
- if (typeof fitted.image_size === "string") {
2248
- fitted.image_size = supportsParam(kind, successor, "image_size") ? nearestSupportedImageSize(kind, successor, fitted.image_size) : void 0;
2249
- }
2250
- if (typeof fitted.quality === "string") {
2251
- fitted.quality = bestSupportedQuality(kind, successor, fitted.quality);
2252
- }
2253
- return Object.fromEntries(Object.entries(fitted).filter(([, value]) => value !== void 0));
2254
- }
2255
- function perSecondBilling(model) {
2256
- const billing = MODEL_REGISTRY.video_generate[model]?.billing;
2257
- return billing?.kind === "per_second" ? billing : void 0;
2258
- }
2259
- var MODEL_ROLES = {
2260
- /** Ad frames and static-ad plates: the most faithful text and identity reproduction. */
2261
- adImage: { kind: "image_generate", model: "openai/gpt-image-2.5-sunburst" },
2262
- /**
2263
- * The multi-view reference sheet a recurring element is fused on. Gemini 3 Pro makes
2264
- * the cleanest, best-labelled turnaround, worth it for the ONE reference every frame
2265
- * of an ad grounds on.
2266
- */
2267
- referenceSheet: { kind: "image_reference_sheet", model: "google/gemini-3-pro-image" },
2268
- /**
2269
- * A finished ad (its words and logo in the picture) laid out again for a 9:16, from a planner's
2270
- * sectioned layout prompt, the ad as the reference (`static_vertical_relayout`). BAKER-962, dev
2271
- * Oct 2026: with the planner it cleared the Stories and Reels band on both test ads, where the
2272
- * adapt below failed on both.
2273
- */
2274
- verticalRelayout: { kind: "image_generate", model: "openai/gpt-image-2.5-flare" },
2275
- /** Re-framing a static ad whose copy is baked into the pixels. */
2276
- aspectAdapt: { kind: "image_aspect_adapt", model: "google/gemini-3-pro-image" },
2277
- /**
2278
- * The judge comparing candidate plates. Flash, not Pro: Pro measured 5 credits for
2279
- * one pick, a tenth of the render it judges.
2280
- */
2281
- plateJudge: { kind: "image_select", model: "google/gemini-3.8-flash" },
2282
- /**
2283
- * The static-ad blueprint extraction, and the fit of a reference to a company (`winning-ads fit`).
2284
- * Flash, not Pro: measured on 16 proven ads (dev, Oct 2026), Flash read as well, answered 11 describes
2285
- * of 12 (Pro 8: its preview model stopped answers part-way) and 16 fits of 16 (Pro 15), at under half
2286
- * the describe's cost and a fifth of the fit's; the fit kept or rejected the same ads 14 times of 15.
2287
- * A describe takes ~10 s longer (40 s), a fit ~12 s less (10 s).
2288
- */
2289
- adDescribe: { kind: "image_describe", model: "google/gemini-3.8-flash" },
2290
- /** The element-selection and layout passes over a blueprint. */
2291
- blueprintAnalysis: { kind: "text_generate", model: "google/gemini-3.8-flash" },
2292
- /**
2293
- * The viewer an ad reaches, played before a static ad renders (`baker canvas viewer-check`):
2294
- * says from the copy and the scene what is offered, to whom, and what to do next. Text
2295
- * only and asked once per ad and viewer, so Flash; the calibration set (E8) decides.
2296
- */
2297
- viewerCheck: { kind: "text_generate", model: "google/gemini-3.8-flash" },
2298
- /**
2299
- * Picks the customer truths out of reviews, testimonials and threads (`baker research
2300
- * customers`): returns exact spans the code then checks against the source. Text only and
2301
- * one call per batch, so Flash.
2302
- */
2303
- customerInsights: { kind: "text_generate", model: "google/gemini-3.8-flash" },
2304
- /**
2305
- * The same viewer shown the FINISHED static ad at phone size for about three seconds, with no
2306
- * brand and no brief: what is sold, whether it is for them, what to do next, what stopped them
2307
- * (`glance-check.ts`). One small picture per run, so Flash.
2308
- */
2309
- glanceCheck: { kind: "image_describe", model: "google/gemini-3.8-flash" },
2310
- /**
2311
- * Reads every line of text and the logo of a finished static ad WITH its box, for the
2312
- * copy and safe-area checks. Bench E10 (2026-09-30): word F1 0.994, box IoU 0.937, 4.3 s,
2313
- * about $0.005 an image on `google/gemini-3.8-flash`;
2314
- * tesseract and PaddleOCR missed the 0.95 F1 gate.
2315
- */
2316
- textBoxReader: { kind: "image_describe", model: "google/gemini-3.8-flash" },
2317
- /**
2318
- * Reads where every person, face, animal and product sits in a static ad's picture, WITH its
2319
- * box, so each size is cut around them and its words kept off faces. The same reader and grid
2320
- * as `textBoxReader` (Gemini's `box_2d`), asked once per chosen picture.
2321
- */
2322
- subjectBoxReader: { kind: "image_describe", model: "google/gemini-3.8-flash" },
2323
- /**
2324
- * Compares one size of a finished static ad with its main size for what boxes cannot say: the
2325
- * same product and people, nothing shown twice, nobody stretched, never the main picture boxed in
2326
- * a bigger frame (`size-consistency.ts`). Flash: one small pair per drawn size; on 29 production
2327
- * pairs asked twice it flagged none and named 4 of 4 planted defects (Oct 2026).
2328
- */
2329
- sizeMatch: { kind: "image_describe", model: "google/gemini-3.8-flash" },
2330
- /**
2331
- * Scene-by-scene video extraction. Flash: ~2-3x faster per call than Pro, which keeps
2332
- * each per-scene step inside the action time budget.
2333
- */
2334
- videoDeconstruct: { kind: "video_deconstruct", model: "google/gemini-3.8-flash" },
2335
- /** The backend `image_search` agent loop that picks search tools and queries. */
2336
- imageSearch: { kind: "text_generate", model: "google/gemini-3.8-flash" },
2337
- voiceover: { kind: "tts", model: "elevenlabs/eleven_v3" },
2338
- soundEffect: { kind: "sound_effect", model: "elevenlabs/eleven_text_to_sound_v2" },
2339
- musicBed: { kind: "music", model: "elevenlabs/music-v1" },
2340
- /** Re-voices a talking clip's native audio into one consistent brand voice. */
2341
- voiceConvert: { kind: "audio_voice_convert", model: "elevenlabs/eleven_multilingual_sts_v2" },
2342
- /** The scored video router's candidates, one per job it can route to. */
2343
- videoRouterWorkhorse: { kind: "video_generate", model: "bytedance/seedance-2.0" },
2344
- videoRouterRealFace: { kind: "video_generate", model: "google/veo-3.1" },
2345
- videoRouterRealFaceEconomy: { kind: "video_generate", model: "google/veo-3.1-fast" },
2346
- videoRouterMotion: { kind: "video_generate", model: "kwaivgi/kling-v3.0-pro" },
2347
- imageDefault: { kind: "image_generate", model: DEFAULT_IMAGE_GENERATE_MODEL },
2348
- videoDefault: { kind: "video_generate", model: DEFAULT_VIDEO_GENERATE_MODEL },
2349
- avatarVideo: { kind: "video_generate", model: DEFAULT_AVATAR_VIDEO_MODEL }
2350
- };
2351
- var AD_IMAGE_MODEL = MODEL_ROLES.adImage.model;
2352
- var REFERENCE_SHEET_MODEL = MODEL_ROLES.referenceSheet.model;
2353
- var ASPECT_ADAPT_MODEL = MODEL_ROLES.aspectAdapt.model;
2354
- var VERTICAL_RELAYOUT_MODEL = MODEL_ROLES.verticalRelayout.model;
2355
- var PLATE_JUDGE_MODEL = MODEL_ROLES.plateJudge.model;
2356
- var AD_DESCRIBE_MODEL = MODEL_ROLES.adDescribe.model;
2357
- var BLUEPRINT_ANALYSIS_MODEL = MODEL_ROLES.blueprintAnalysis.model;
2358
- var VIEWER_CHECK_MODEL = MODEL_ROLES.viewerCheck.model;
2359
- var CUSTOMER_INSIGHTS_MODEL = MODEL_ROLES.customerInsights.model;
2360
- var GLANCE_CHECK_MODEL = MODEL_ROLES.glanceCheck.model;
2361
- var TEXT_BOX_READER_MODEL = MODEL_ROLES.textBoxReader.model;
2362
- var SUBJECT_BOX_READER_MODEL = MODEL_ROLES.subjectBoxReader.model;
2363
- var SIZE_MATCH_MODEL = MODEL_ROLES.sizeMatch.model;
2364
- var VIDEO_DECONSTRUCT_MODEL = MODEL_ROLES.videoDeconstruct.model;
2365
- var IMAGE_SEARCH_MODEL = MODEL_ROLES.imageSearch.model;
2366
- var VOICEOVER_MODEL = MODEL_ROLES.voiceover.model;
2367
- var SOUND_EFFECT_MODEL = MODEL_ROLES.soundEffect.model;
2368
- var MUSIC_BED_MODEL = MODEL_ROLES.musicBed.model;
2369
- var VOICE_CONVERT_MODEL = MODEL_ROLES.voiceConvert.model;
2370
- function isRegisteredModel(kind, model) {
2371
- return MODEL_REGISTRY[kind]?.[canonicalModelId(model)] !== void 0;
2372
- }
2373
- function imageGenerateAspectRatios() {
2374
- const seen = /* @__PURE__ */ new Set();
2375
- for (const model of IMAGE_GENERATE_MODELS) {
2376
- for (const ratio of supportedAspectRatios("image_generate", model) ?? []) seen.add(ratio);
2377
- }
2378
- return [...seen];
2379
- }
2380
- function supportsParam(kind, model, param) {
2381
- return modelSpec(kind, model)?.params[param] !== void 0;
2382
- }
2383
- var DEFAULT_CLIP_DURATION_S = 5;
2384
- var SPOKEN_WORDS_PER_SECOND = 2.5;
2385
- var SPOKEN_LINE = new RegExp(`(?<![\\p{L}\\p{N}])['"\\u201c\\u201d\\u2018\\u2019]((?:[^'"\\u201c\\u201d\\u2018\\u2019]|(?<=\\p{L})['\\u2019](?=\\p{L})){8,})['"\\u201c\\u201d\\u2018\\u2019](?![\\p{L}\\p{N}])`, "gu");
2386
- function spokenWordsIn(prompt) {
2387
- if (!prompt) return 0;
2388
- const quoted = [...prompt.matchAll(SPOKEN_LINE)].map((m) => m[1] ?? "");
2389
- const text = quoted.join(" ").trim();
2390
- return text ? text.split(/\s+/).filter(Boolean).length : 0;
2391
- }
2392
- var SPOKEN_CLIP_DURATION_S = 8;
2393
- function nearestClipDuration(model, preferred) {
2394
- const schema = MODEL_REGISTRY.video_generate[model]?.params.duration;
2395
- const allowed = schema?.kind === "number" ? schema.enum : void 0;
2396
- if (!allowed?.length || allowed.includes(preferred)) return preferred;
2397
- return [...allowed].sort((a, b) => Math.abs(a - preferred) - Math.abs(b - preferred) || a - b)[0];
2398
- }
2399
- var SILENT_VIDEO_MODELS = /* @__PURE__ */ new Set([
2400
- "runway/gen-4.5",
2401
- "x-ai/grok-imagine-video",
2402
- "x-ai/grok-imagine-video-1.5",
2403
- "alibaba/happyhorse-1.1"
2404
- ]);
2405
- function clipAudioMode(model) {
2406
- if (supportsParam("video_generate", model, "generate_audio")) return "toggle";
2407
- return SILENT_VIDEO_MODELS.has(model) ? "never" : "always";
2408
- }
2409
- function clipDurationsFor(model) {
2410
- const schema = MODEL_REGISTRY.video_generate[model]?.params.duration;
2411
- const allowed = schema?.kind === "number" ? schema.enum : void 0;
2412
- return allowed?.length ? [...allowed].sort((a, b) => a - b) : void 0;
2413
- }
2414
- function maxClipSeconds(model) {
2415
- const allowed = clipDurationsFor(model);
2416
- return allowed ? allowed[allowed.length - 1] : void 0;
2417
- }
2418
- function splitScriptFor(words, model) {
2419
- const maxSeconds = maxClipSeconds(model);
2420
- if (!maxSeconds) return null;
2421
- const perClip = Math.floor(maxSeconds * SPOKEN_WORDS_PER_SECOND);
2422
- if (words <= perClip) return null;
2423
- const clips = Math.ceil(words / perClip);
2424
- return { clips, wordsPerClip: Math.ceil(words / clips), maxSeconds };
2425
- }
2426
- function promptMaxLength(kind, model) {
2427
- const schema = modelSpec(kind, model)?.params.prompt;
2428
- return schema?.kind === "string" ? schema.maxLength : void 0;
2429
- }
2430
- function inputSlot(kind, model, inputKind) {
2431
- const spec = modelSpec(kind, model);
2432
- return spec?.optional_inputs?.find((input) => input.kind === inputKind) ?? spec?.inputs.find((input) => input.kind === inputKind);
2433
- }
2434
- function maxInputSlot(kind, model, inputKind) {
2435
- return inputSlot(kind, model, inputKind)?.max;
2436
- }
2437
- function maxInputReferences(kind, model) {
2438
- return maxInputSlot(kind, model, "image");
2439
- }
2440
- function supportedQualities(kind, model) {
2441
- const schema = modelSpec(kind, model)?.params.quality;
2442
- return schema?.kind === "string" ? schema.enum : void 0;
2443
- }
2444
- function bestSupportedQuality(kind, model, want) {
2445
- const supported = supportedQualities(kind, model);
2446
- if (!supported) return void 0;
2447
- if (supported.includes(want)) return want;
2448
- const ladder = supported.filter((step) => step !== "auto");
2449
- const ceiling = ladder.indexOf(want);
2450
- const reachable = ceiling === -1 ? ladder : ladder.slice(0, ceiling);
2451
- return reachable[reachable.length - 1];
2452
- }
2453
- function supportedAspectRatios(kind, model) {
2454
- const schema = modelSpec(kind, model)?.params.aspect_ratio;
2455
- return schema?.kind === "string" ? schema.enum : void 0;
2456
- }
2457
- function ratioValue(ratio) {
2458
- const [w, h] = ratio.split(":").map(Number);
2459
- if (!w || !h || !Number.isFinite(w) || !Number.isFinite(h)) return null;
2460
- return w / h;
2461
- }
2462
- function nearestSupportedAspectRatio(kind, model, target) {
2463
- const supported = supportedAspectRatios(kind, model);
2464
- if (!supported || supported.includes(target)) return target;
2465
- const wanted = ratioValue(target);
2466
- if (wanted === null) return target;
2467
- let best = target;
2468
- let bestDistance = Number.POSITIVE_INFINITY;
2469
- for (const candidate of supported) {
2470
- const value = ratioValue(candidate);
2471
- if (value === null) continue;
2472
- const distance = Math.abs(Math.log(value / wanted));
2473
- if (distance < bestDistance) {
2474
- bestDistance = distance;
2475
- best = candidate;
2476
- }
2477
- }
2478
- return best;
2479
- }
2480
- function supportedImageSizes(kind, model) {
2481
- const schema = modelSpec(kind, model)?.params.image_size;
2482
- return schema?.kind === "string" ? schema.enum : void 0;
2483
- }
2484
- var IMAGE_SIZE_ORDER = ["0.5K", "1K", "2K", "4K"];
2485
- function nearestSupportedImageSize(kind, model, target) {
2486
- const supported = supportedImageSizes(kind, model);
2487
- if (!supported || supported.includes(target)) return target;
2488
- const wanted = IMAGE_SIZE_ORDER.indexOf(target);
2489
- if (wanted < 0) return target;
2490
- const ranked = supported.filter((s) => IMAGE_SIZE_ORDER.includes(s)).sort((a, b) => IMAGE_SIZE_ORDER.indexOf(a) - IMAGE_SIZE_ORDER.indexOf(b));
2491
- if (ranked.length === 0) return target;
2492
- const belowOrEqual = ranked.filter((s) => IMAGE_SIZE_ORDER.indexOf(s) <= wanted);
2493
- return belowOrEqual.length > 0 ? belowOrEqual[belowOrEqual.length - 1] : ranked[0];
2494
- }
2495
-
2496
- // ../canvas-contract/src/credits.ts
2497
- var CREDITS_PER_USD = 100;
2498
- function usdToCredits(usd) {
2499
- if (!(usd > 0)) return 0;
2500
- return Math.ceil(Number((usd * CREDITS_PER_USD).toFixed(6)));
2501
- }
2502
-
2503
- // ../canvas-contract/src/videoCost.ts
2504
- var OPENING_FRAME_CREDITS = usdToCredits(0.03);
2505
- var SEEDANCE_20_USD_PER_SECOND = {
2506
- "480p": { videoIn: 0.1, noVideoIn: 0.08 },
2507
- "720p": { videoIn: 0.22, noVideoIn: 0.18 },
2508
- "1080p": { videoIn: 0.55, noVideoIn: 0.45 },
2509
- "4k": { videoIn: 1.25, noVideoIn: 1 }
2510
- };
2511
- var DEFAULT_VIDEO_RESOLUTION = "720p";
2512
- var DEFAULT_VIDEO_DURATION_S = 5;
2513
- function isSeedanceModel(model) {
2514
- return model.startsWith("bytedance/seedance");
2515
- }
2516
- var SEEDANCE_25_USD_PER_SECOND = {
2517
- "480p": 0.1075,
2518
- "720p": 0.2326
2519
- };
2520
- var SEEDANCE_25_FALLBACK_USD_PER_SECOND = 0.2326;
2521
- function seedance25UsdPerSecond(resolution) {
2522
- return SEEDANCE_25_USD_PER_SECOND[resolution ?? DEFAULT_VIDEO_RESOLUTION] ?? SEEDANCE_25_FALLBACK_USD_PER_SECOND;
2523
- }
2524
- var FALLBACK_USD_PER_SECOND = 0.55;
2525
- function billedSeconds(model, duration) {
2526
- const floor = perSecondBilling(model)?.minBilledSeconds;
2527
- return floor === void 0 ? duration : Math.max(duration, floor);
2528
- }
2529
- function seedanceUsdPerSecond(resolution, videoIn = false) {
2530
- const tier = SEEDANCE_20_USD_PER_SECOND[resolution ?? DEFAULT_VIDEO_RESOLUTION];
2531
- if (!tier) return FALLBACK_USD_PER_SECOND;
2532
- return videoIn ? tier.videoIn : tier.noVideoIn;
2533
- }
2534
- var GEMINI_OMNI_USD_PER_1M_VIDEO_TOKENS = 17.5;
2535
- var GEMINI_OMNI_VIDEO_TOKENS_PER_SECOND = 5792;
2536
- var GEMINI_OMNI_RESOLUTION_MULTIPLIER = {
2537
- "360p": 1 / 3,
2538
- "720p": 1,
2539
- "1080p": 1.5,
2540
- "4k": 3
2541
- };
2542
- var GEMINI_OMNI_DEFAULT_RESOLUTION = "720p";
2543
- var GEMINI_OMNI_OVERHEAD_TOKENS = 600;
2544
- var GEMINI_OMNI_WINDOW_SECONDS = 10;
2545
- var GEMINI_OMNI_USD_PER_SECOND = GEMINI_OMNI_VIDEO_TOKENS_PER_SECOND * GEMINI_OMNI_USD_PER_1M_VIDEO_TOKENS / 1e6;
2546
- function geminiOmniUsdPerSecond(resolution) {
2547
- const multiplier = GEMINI_OMNI_RESOLUTION_MULTIPLIER[resolution ?? GEMINI_OMNI_DEFAULT_RESOLUTION] ?? 1;
2548
- return GEMINI_OMNI_USD_PER_SECOND * multiplier;
2549
- }
2550
- var VIDEO_SOURCE_COST_MULTIPLIER = 2.5;
2551
- var FAL_SEEDANCE_USD_PER_1K_TOKENS = 0.0214;
2552
- var SEEDANCE_SOURCE_CLIP_DISCOUNT = 0.6;
2553
- var SEEDANCE_DEAREST_FRAME = {
2554
- "480p": { width: 992, height: 432 },
2555
- "720p": { width: 1112, height: 834 }
2556
- };
2557
- function falSeedanceUsdPerSecond(resolution, buildsOnSourceClip = false) {
2558
- const frame = SEEDANCE_DEAREST_FRAME[resolution ?? DEFAULT_VIDEO_RESOLUTION] ?? SEEDANCE_DEAREST_FRAME["720p"];
2559
- const tokensPerSecond = (frame?.width ?? 1112) * (frame?.height ?? 834) * 24 / 1024;
2560
- const rate = tokensPerSecond * FAL_SEEDANCE_USD_PER_1K_TOKENS / 1e3;
2561
- return buildsOnSourceClip ? rate * SEEDANCE_SOURCE_CLIP_DISCOUNT : rate;
2562
- }
2563
- function geminiOmniCostUsd(model, duration, resolution) {
2564
- const tier = isGeminiOmniPreviewModel(model) ? GEMINI_OMNI_DEFAULT_RESOLUTION : resolution;
2565
- const footage = geminiOmniUsdPerSecond(tier) * (duration ?? GEMINI_OMNI_WINDOW_SECONDS);
2566
- return footage + GEMINI_OMNI_OVERHEAD_TOKENS * GEMINI_OMNI_USD_PER_1M_VIDEO_TOKENS / 1e6;
2567
- }
2568
- function seedance20CostUsd(resolution, seconds, mayRouteToFal, buildsOnSourceClip) {
2569
- const viaReplicate = seedanceUsdPerSecond(resolution, buildsOnSourceClip) * seconds;
2570
- if (!mayRouteToFal) return viaReplicate;
2571
- const falTier = resolution === "480p" || resolution === "720p" ? resolution : void 0;
2572
- return Math.max(viaReplicate, falSeedanceUsdPerSecond(falTier) * seconds);
2573
- }
2574
- function estimateVideoCostUsd(input) {
2575
- const { model, duration, resolution, generateAudio, buildsOnSourceClip } = input;
2576
- const seconds = billedSeconds(model, duration ?? DEFAULT_VIDEO_DURATION_S);
2577
- const sourceClipPremium = buildsOnSourceClip ? VIDEO_SOURCE_COST_MULTIPLIER : 1;
2578
- if (isGeminiOmniModel(model)) return geminiOmniCostUsd(model, duration, resolution);
2579
- if (isSeedance25Model(model)) {
2580
- const viaOpenRouter = seedance25UsdPerSecond(resolution) * seconds * sourceClipPremium;
2581
- if (!input.mayRouteToFal) return viaOpenRouter;
2582
- return Math.max(viaOpenRouter, falSeedanceUsdPerSecond(resolution, buildsOnSourceClip) * seconds);
2583
- }
2584
- if (isSeedanceModel(model)) {
2585
- return seedance20CostUsd(resolution, seconds, input.mayRouteToFal === true, buildsOnSourceClip === true);
2586
- }
2587
- const published = perSecondBilling(model)?.usd;
2588
- if (published) {
2589
- const rate = (resolution ? published.byResolution?.[resolution] : void 0) ?? published;
2590
- return (generateAudio ? rate.audio : rate.silent) * seconds;
2591
- }
2592
- const dearestKnownRate = Math.max(...Object.values(SEEDANCE_20_USD_PER_SECOND).map((tier) => tier.videoIn));
2593
- return dearestKnownRate * seconds;
2594
- }
2595
- function estimateVideoCredits(input) {
2596
- return usdToCredits(estimateVideoCostUsd(input));
2597
- }
2598
-
2599
- // ../../node_modules/.pnpm/safe-stable-stringify@2.5.0/node_modules/safe-stable-stringify/esm/wrapper.js
2600
- var import__ = __toESM(require_safe_stable_stringify(), 1);
2601
- var configure = import__.default.configure;
2602
- var wrapper_default = import__.default;
2603
-
2604
- // ../canvas-contract/src/canonical.ts
2605
- function canonicalize(value) {
2606
- const normalized = normalizeForCanonical(value);
2607
- const out = wrapper_default(normalized);
2608
- if (out === void 0) {
2609
- throw new Error("canonicalize: value serialized to undefined (top-level undefined?)");
2610
- }
2611
- return out;
2612
- }
2613
- function normalizeForCanonical(value) {
2614
- if (value === null) return null;
2615
- if (typeof value === "string") return value.normalize("NFC");
2616
- if (typeof value === "number") {
2617
- if (!Number.isFinite(value)) {
2618
- throw new Error(`canonicalize: non-finite number ${value}`);
2619
- }
2620
- return value;
2621
- }
2622
- if (typeof value === "boolean") return value;
2623
- if (typeof value === "bigint") {
2624
- throw new Error("canonicalize: bigint not supported");
2625
- }
2626
- if (Array.isArray(value)) {
2627
- return value.map(normalizeForCanonical);
2628
- }
2629
- if (typeof value === "object") {
2630
- const out = {};
2631
- for (const [k, v] of Object.entries(value)) {
2632
- if (v === void 0) continue;
2633
- out[k.normalize("NFC")] = normalizeForCanonical(v);
2634
- }
2635
- return out;
2636
- }
2637
- return void 0;
2638
- }
2639
-
2640
- // ../canvas-contract/src/clipWeight.ts
2641
- var MB_PER_SECOND_720P = 2.13;
2642
- var RESOLUTION_WEIGHT = {
2643
- "360p": 0.25,
2644
- "480p": 0.44,
2645
- "720p": 1,
2646
- "1080p": 2.25,
2647
- "4k": 9,
2648
- "4K": 9
2649
- };
2650
- var MAX_CLIP_INGEST_MB = 120;
2651
- function estimateClipMb(durationSeconds, resolution) {
2652
- const weight = RESOLUTION_WEIGHT[resolution ?? "720p"] ?? 1;
2653
- return durationSeconds * MB_PER_SECOND_720P * weight;
2654
- }
2655
- function clipTooHeavyToIngest(durationSeconds, resolution) {
2656
- if (!durationSeconds) return null;
2657
- const mb = estimateClipMb(durationSeconds, resolution);
2658
- if (mb <= MAX_CLIP_INGEST_MB) return null;
2659
- const fits = Math.floor(MAX_CLIP_INGEST_MB / (estimateClipMb(1, resolution) || 1));
2660
- return `A ${durationSeconds}s clip at ${resolution ?? "720p"} comes to roughly ${Math.round(mb)} MB, more than the ${MAX_CLIP_INGEST_MB} MB we can take in \u2014 it would render, bill, and then fail on the way into the library. Shorten it to about ${fits}s at this resolution, or drop the resolution and keep the length.`;
2661
- }
2662
-
2663
- // ../canvas-contract/src/frameRealism.ts
2664
- function frameRealismDirection(opts = {}) {
2665
- return " Everything obeys real-world physics: paper, card and screens are OPAQUE with nothing showing through from behind, every object is at believable real-world scale next to the people handling it, and every object has its real-world form and construction \u2014 a phone has ONE screen and it is on the front." + // The worst of the three failures behind this, because the viewer reads the number: a
2666
- // model invents one whenever a screen or a document is in shot, and it contradicts the
2667
- // script it sits under. Frames simply do not get legible text; the captions carry the
2668
- // numbers.
2669
- //
2670
- // Default ON, and asked for explicitly rather than inferred: an ad frame with no
2671
- // person in it still sits under a script for an invented number to argue with. Only a
2672
- // plain Studio picture opts out — it has no script, and it may BE the poster somebody
2673
- // asked for, which the model picker sells GPT Image 2.5 on being able to render.
2674
- (opts.readableText === "allowed" ? "" : " NO readable text or numbers anywhere in frame \u2014 phone screens, documents and signage stay illegible or out of focus, because any figure the model invents will contradict the script.") + // Measured: one finished ad reported malformed hands or limbs in 8 of 12 sampled frames;
2675
- // another, a woman with an extra right arm and an unattached hand gripping a panel.
2676
- // Fiddly work at close range is where a video model breaks, every time.
2677
- " Hands are kept simple: no close-up of fingers manipulating small parts, no hand gripping the edge of an object, and each person has exactly TWO arms and TWO legs, all attached and all visible or all out of frame. Anyone working does so the way the trade actually does it: nobody stands or kneels on the equipment being installed, nothing is fitted overhanging an edge or floating unsupported, and every part rests on the structure that would really carry it." + // The newest clause, and the one no route had. A testimonial came back with the customer
2678
- // repairing the panel herself: nothing said she was not the installer, so the model cast
2679
- // her as one. Who someone IS in the picture has to be stated, or it is guessed.
2680
- (opts.role ? ` The person on camera is ${opts.role} \u2014 they are shown as that and never doing somebody else's job.` : "") + (opts.currency ? ` If a currency is unavoidably visible it is ${opts.currency}.` : "");
2681
- }
2682
-
2683
- // ../canvas-contract/src/nodeCost.ts
2684
- var ELEVENLABS_USD_PER_CHARACTER = 0.08 / 1e3;
2685
- var ELEVENLABS_MUSIC_USD_PER_SECOND = 0.15 / 60;
2686
- var ELEVENLABS_SOUND_EFFECT_USD_PER_SECOND = 0.12 / 60;
2687
- var ELEVENLABS_STS_USD_PER_MINUTE = 0.12;
2688
- var LIPSYNC_USD_PER_OUTPUT_SECOND = 0.05;
2689
- var LIPSYNC_USD_PER_MIN = LIPSYNC_USD_PER_OUTPUT_SECOND * 60;
2690
- var VIDEO_BG_REMOVE_REFINED_QUOTE_USD_PER_30_FRAMES = 0.012;
2691
- var VIDEO_BG_REMOVE_FAST_QUOTE_USD_PER_30_FRAMES = 8e-3;
2692
- var IMAGE_BG_REMOVE_QUOTE_USD = 2e-3;
2693
- var GROQ_WHISPER_COST_PER_HOUR = 0.04;
2694
- var GROQ_WHISPER_MINIMUM_SECONDS = 10;
2695
- var FIRECRAWL_COST_PER_SCRAPE = 1e-3;
2696
- var DEFAULT_MUSIC_SECONDS = 30;
2697
- var DEFAULT_SOUND_EFFECT_SECONDS = 5;
2698
- var DEFAULT_BACKGROUND_REMOVE_SECONDS = 30;
2699
- var DEFAULT_MEDIA_SECONDS = 60;
2700
- function ttsCharactersUsd(characters) {
2701
- return characters * ELEVENLABS_USD_PER_CHARACTER;
2702
- }
2703
- function musicSecondsUsd(seconds) {
2704
- return seconds * ELEVENLABS_MUSIC_USD_PER_SECOND;
2705
- }
2706
- function soundEffectSecondsUsd(seconds) {
2707
- return seconds * ELEVENLABS_SOUND_EFFECT_USD_PER_SECOND;
2708
- }
2709
- function voiceConvertMinutes(durationMs) {
2710
- return Math.max(durationMs / 6e4, 0.1);
2711
- }
2712
- function voiceConvertUsd(minutes) {
2713
- return minutes * ELEVENLABS_STS_USD_PER_MINUTE;
2714
- }
2715
- function lipsyncMinutes(audioMs, videoMs) {
2716
- const durationMs = Math.max(audioMs ?? 0, videoMs ?? 0);
2717
- return durationMs > 0 ? durationMs / 6e4 : 1;
2718
- }
2719
- function lipsyncUsd(minutes) {
2720
- return minutes * LIPSYNC_USD_PER_MIN;
2721
- }
2722
- function backgroundRemoveFrames(durationSeconds) {
2723
- return Math.max(30, Math.ceil((durationSeconds ?? DEFAULT_BACKGROUND_REMOVE_SECONDS) * 30));
2724
- }
2725
- function videoBackgroundRemoveUsd(durationSeconds, edgeRefinement) {
2726
- const unit = edgeRefinement ? VIDEO_BG_REMOVE_REFINED_QUOTE_USD_PER_30_FRAMES : VIDEO_BG_REMOVE_FAST_QUOTE_USD_PER_30_FRAMES;
2727
- return backgroundRemoveFrames(durationSeconds) / 30 * unit;
2728
- }
2729
- function transcriptionUsd(seconds) {
2730
- if (seconds <= 0) return 0;
2731
- return Math.max(seconds, GROQ_WHISPER_MINIMUM_SECONDS) / 3600 * GROQ_WHISPER_COST_PER_HOUR;
2732
- }
2733
- function asBag(value) {
2734
- return value && typeof value === "object" && !Array.isArray(value) ? value : {};
2735
- }
2736
- function num(value) {
2737
- return typeof value === "number" && Number.isFinite(value) ? value : void 0;
2738
- }
2739
- function inputDurationMs(inputs, slot) {
2740
- const ref = asBag(inputs[slot]);
2741
- return num(ref.duration_ms) ?? num(asBag(ref.metadata).duration_ms);
2742
- }
2743
- function slotCount(inputs, slot) {
2744
- const value = inputs[slot];
2745
- if (Array.isArray(value)) return value.length;
2746
- return value ? 1 : 0;
2747
- }
2748
- function textLength(value) {
2749
- return typeof value === "string" ? value.length : 0;
2750
- }
2751
- function estimateVideoGenerateUsd(params, inputs, preferFal) {
2752
- const model = params.model;
2753
- if (typeof model !== "string") return null;
2754
- const referenceOnly = slotCount(inputs, "references") > 0 && !inputs.first_frame;
2755
- return estimateVideoCostUsd({
2756
- model,
2757
- duration: num(params.duration),
2758
- resolution: typeof params.resolution === "string" ? params.resolution : void 0,
2759
- generateAudio: typeof params.generate_audio === "boolean" ? params.generate_audio : void 0,
2760
- buildsOnSourceClip: slotCount(inputs, "video_references") > 0,
2761
- mayRouteToFal: isSeedanceModel(model) && (preferFal || referenceOnly)
2762
- });
2763
- }
2764
- function estimateMusicUsd(params, inputs) {
2765
- const pinnedMs = num(params.music_length_ms);
2766
- const scoredMs = params.model === "elevenlabs/video-background-music-v1" ? inputDurationMs(inputs, "video") : void 0;
2767
- const seconds = (pinnedMs ?? scoredMs ?? DEFAULT_MUSIC_SECONDS * 1e3) / 1e3;
2768
- return musicSecondsUsd(seconds);
2769
- }
2770
- function estimateDialogueUsd(params) {
2771
- if (!Array.isArray(params.inputs)) return null;
2772
- const characters = params.inputs.reduce((sum, line) => sum + textLength(asBag(line).text), 0);
2773
- return ttsCharactersUsd(characters);
2774
- }
2775
- function estimateNodeCostUsd(input) {
2776
- const params = asBag(input.params);
2777
- const inputs = asBag(input.inputs);
2778
- switch (input.nodeType) {
2779
- case "video_generate":
2780
- return estimateVideoGenerateUsd(params, inputs, input.preferFal === true);
2781
- case "tts":
2782
- return typeof params.text === "string" ? ttsCharactersUsd(params.text.length) : null;
2783
- case "dialogue":
2784
- return estimateDialogueUsd(params);
2785
- case "music":
2786
- return estimateMusicUsd(params, inputs);
2787
- case "sound_effect":
2788
- return soundEffectSecondsUsd(num(params.duration_seconds) ?? DEFAULT_SOUND_EFFECT_SECONDS);
2789
- case "audio_voice_convert": {
2790
- const ms = inputDurationMs(inputs, "audio") ?? DEFAULT_MEDIA_SECONDS * 1e3;
2791
- return voiceConvertUsd(voiceConvertMinutes(ms));
2792
- }
2793
- case "video_lipsync":
2794
- return lipsyncUsd(lipsyncMinutes(inputDurationMs(inputs, "audio"), inputDurationMs(inputs, "video")));
2795
- case "video_background_remove": {
2796
- const ms = inputDurationMs(inputs, "video");
2797
- return videoBackgroundRemoveUsd(ms === void 0 ? void 0 : ms / 1e3, params.edge_refinement !== false);
2798
- }
2799
- case "image_background_remove":
2800
- return IMAGE_BG_REMOVE_QUOTE_USD;
2801
- case "video_transcribe": {
2802
- const ms = inputDurationMs(inputs, "video") ?? DEFAULT_MEDIA_SECONDS * 1e3;
2803
- return transcriptionUsd(ms / 1e3);
2804
- }
2805
- case "ingest":
2806
- return params.strategy === "firecrawl" ? FIRECRAWL_COST_PER_SCRAPE : 0;
2807
- case "voice_select":
2808
- case "load_artifact":
2809
- case "save_artifact":
2810
- case "resize":
2811
- case "crop":
2812
- return 0;
2813
- default:
2814
- return null;
2815
- }
2816
- }
2817
- function estimateNodeCredits(input) {
2818
- const usd = estimateNodeCostUsd(input);
2819
- return usd === null ? null : usdToCredits(usd);
2820
- }
2821
-
2822
- // ../canvas-contract/src/personRealism.ts
2823
- var PHONE_CAMERA = "Shot on a phone, an iPhone or a Samsung Galaxy, with the main camera in the default photo mode (not portrait mode): slightly wide angle, held by a friend about a metre away or at arm's length, the background mostly in focus the way phone photos are, the phone's own processing \u2014 HDR evening out a bright window, a touch of over-sharpening, smoothed noise in the shadows, punchy everyday colour. Slightly imperfect framing. Not a professional camera: no bokeh or creamy background blur, no lens compression, no studio or flash lighting, no colour grade.";
2824
- var REAL_SKIN = "Real skin and a real face: visible pores, fine lines, uneven tone, small marks, stray hairs, slight asymmetry. Clothes with real creases.";
2825
- var NOT_A_MODEL = "Not stock photography, not a model or an influencer: no beauty retouching, no glowing or plastic skin, no perfectly symmetrical features.";
2826
- function candidPersonPortraitPrompt(p) {
2827
- return [
2828
- `An unretouched candid phone photo of one ordinary, real person: ${p.subject}`,
2829
- p.wardrobe?.trim() ? `Wearing: ${p.wardrobe.trim()}` : null,
2830
- `Where: ${p.setting?.trim() || "an everyday place that fits who they are, in daylight"}, available light only. They look toward the lens mid-conversation with a relaxed, unposed expression. Framed from the head to mid-torso, face clearly visible.`,
2831
- PHONE_CAMERA,
2832
- REAL_SKIN,
2833
- NOT_A_MODEL,
2834
- "No text, logos or watermarks. One person only."
2835
- ].filter((line) => line !== null).join("\n");
2836
- }
2837
-
2838
- // ../canvas-contract/src/validateParams.ts
2839
- function isManagedNodeKind(nodeType) {
2840
- return Object.keys(MODEL_REGISTRY).includes(nodeType);
2841
- }
2842
- function checkRequiredParams(spec, params, model) {
2843
- const errors = [];
2844
- for (const req of spec.required) {
2845
- if (params[req] === void 0 || params[req] === null) {
2846
- errors.push({
2847
- code: "missing_required_param",
2848
- param: req,
2849
- message: `missing required param "${req}" for model "${model}"`
2850
- });
2851
- }
2852
- }
2853
- return errors;
2854
- }
2855
- function checkParamValues(spec, params, model) {
2856
- const errors = [];
2857
- for (const [key, value] of Object.entries(params)) {
2858
- if (key === "model") continue;
2859
- if (value === void 0) continue;
2860
- const schema = spec.params[key];
2861
- if (!schema) {
2862
- errors.push({
2863
- code: "unknown_param",
2864
- param: key,
2865
- message: `param "${key}" is not supported by model "${model}"`
2866
- });
2867
- continue;
2868
- }
2869
- const valueErr = validateValue(key, value, schema, model);
2870
- if (valueErr) errors.push(valueErr);
2871
- }
2872
- return errors;
2873
- }
2874
- function validateModelParams(nodeType, model, params) {
2875
- const spec = MODEL_REGISTRY[nodeType][canonicalModelId(model)];
2876
- if (!spec) {
2877
- return {
2878
- ok: false,
2879
- errors: [{ code: "unknown_model", message: `unknown model "${model}" for node "${nodeType}"` }]
2880
- };
2881
- }
2882
- const fitted = canonicalModelParams(nodeType, { ...params, model });
2883
- const errors = [...checkRequiredParams(spec, fitted, model), ...checkParamValues(spec, fitted, model)];
2884
- if (errors.length > 0) return { ok: false, errors };
2885
- if (nodeType === "video_generate") {
2886
- const tooHeavy = clipTooHeavyToIngest(
2887
- typeof params.duration === "number" ? params.duration : void 0,
2888
- typeof params.resolution === "string" ? params.resolution : void 0
2889
- );
2890
- if (tooHeavy) return { ok: false, errors: [{ code: "clip_too_heavy", message: tooHeavy }] };
2891
- }
2892
- return { ok: true };
2893
- }
2894
- function validateModelInputs(nodeType, model, providedKinds) {
2895
- const spec = MODEL_REGISTRY[nodeType][canonicalModelId(model)];
2896
- if (!spec) {
2897
- return {
2898
- ok: false,
2899
- errors: [{ code: "unknown_model", message: `unknown model "${model}" for node "${nodeType}"` }]
2900
- };
2901
- }
2902
- const have = new Set(providedKinds);
2903
- const errors = [];
2904
- for (const inputSpec of spec.inputs) {
2905
- if (!have.has(inputSpec.kind)) {
2906
- errors.push({
2907
- code: "missing_input",
2908
- input: inputSpec.kind,
2909
- message: `model "${model}" requires input of kind "${inputSpec.kind}"`
2910
- });
2911
- }
2912
- }
2913
- if (errors.length > 0) return { ok: false, errors };
2914
- return { ok: true };
2915
- }
2916
- function validateStringValue(key, value, schema, model) {
2917
- if (typeof value !== "string") {
2918
- return { code: "invalid_value", param: key, message: `${key}: expected string, got ${typeof value}` };
2919
- }
2920
- if (schema.enum && !schema.enum.includes(value)) {
2921
- return {
2922
- code: "invalid_value",
2923
- param: key,
2924
- message: `${key}: "${value}" not allowed by "${model}" (allowed: ${schema.enum.join(", ")})`
2925
- };
2926
- }
2927
- if (schema.maxLength !== void 0 && value.length > schema.maxLength) {
2928
- return {
2929
- code: "invalid_value",
2930
- param: key,
2931
- message: `${key}: ${value.length} characters exceeds max ${schema.maxLength} for "${model}"`
2932
- };
2933
- }
2934
- return null;
2935
- }
2936
- function validateNumberValue(key, value, schema, model) {
2937
- if (typeof value !== "number" || Number.isNaN(value)) {
2938
- return { code: "invalid_value", param: key, message: `${key}: expected number, got ${typeof value}` };
2939
- }
2940
- if (schema.enum && !schema.enum.includes(value)) {
2941
- return {
2942
- code: "invalid_value",
2943
- param: key,
2944
- message: `${key}: ${value} not allowed by "${model}" (allowed: ${schema.enum.join(", ")})`
2945
- };
2946
- }
2947
- if (schema.integer && !Number.isInteger(value)) {
2948
- return { code: "invalid_value", param: key, message: `${key}: ${value} must be a whole number` };
2949
- }
2950
- if (schema.min !== void 0 && value < schema.min) {
2951
- return { code: "invalid_value", param: key, message: `${key}: ${value} below min ${schema.min}` };
2952
- }
2953
- if (schema.max !== void 0 && value > schema.max) {
2954
- return { code: "invalid_value", param: key, message: `${key}: ${value} above max ${schema.max}` };
2955
- }
2956
- return null;
2957
- }
2958
- function validateValue(key, value, schema, model) {
2959
- switch (schema.kind) {
2960
- case "string":
2961
- return validateStringValue(key, value, schema, model);
2962
- case "number":
2963
- return validateNumberValue(key, value, schema, model);
2964
- case "boolean":
2965
- if (typeof value !== "boolean") {
2966
- return { code: "invalid_value", param: key, message: `${key}: expected boolean, got ${typeof value}` };
2967
- }
2968
- return null;
2969
- case "json":
2970
- return null;
2971
- default: {
2972
- const _exhaustive = schema;
2973
- return _exhaustive;
2974
- }
2975
- }
2976
- }
2977
-
2978
- // ../canvas-contract/src/videoBlueprint.ts
2979
- import { z } from "zod";
2980
- var FrameAssetSchema = z.object({ url: z.string().optional() }).loose().optional();
2981
- var BlueprintDialogueLineSchema = z.object({
2982
- speaker: z.string().optional(),
2983
- line: z.string().optional(),
2984
- // Absolute seconds on the source timeline (the deconstruct emits both).
2985
- start_s: z.number().optional(),
2986
- end_s: z.number().optional(),
2987
- delivery: z.string().optional(),
2988
- voice_description: z.string().optional(),
2989
- // DECON-supplied: is this speaker's FACE visibly speaking in THIS scene? Element
2990
- // presence alone can't answer that — a founder pictured in a polaroid close-up is
2991
- // "present" yet the line is voiceover, and treating it as on-camera produced a
2992
- // native Seedance lip-sync clip of a still photograph. `false` pins the line to
2993
- // the VO path; absent keeps the presence-based decision (old blueprints).
2994
- on_camera: z.boolean().optional()
2995
- }).loose();
2996
- var SfxSchema = z.object({
2997
- at_s: z.number().optional(),
2998
- duration_s: z.number().optional(),
2999
- sound_effect_prompt: z.string().optional(),
3000
- description: z.string().optional()
3001
- }).loose();
3002
- var CompositionRegionSchema = z.object({
3003
- // full | top | bottom | left | right | inset
3004
- panel: z.string().optional(),
3005
- // 9-grid anchor for an `inset` presenter box.
3006
- position: z.string().optional(),
3007
- is_presenter: z.boolean().optional(),
3008
- // The cast id shown/speaking in this region (routes lip-sync + element refs).
3009
- cast_ref: z.string().optional(),
3010
- // What the region's content IS: camera | screen_capture | static_graphic |
3011
- // generated. Authoritative for routing when present (regex-over-prose fallback
3012
- // otherwise): screen_capture/static_graphic are rebuilt from REAL surfaces on the
3013
- // overlay layer, never AI-generated.
3014
- kind: z.string().optional(),
3015
- // Opaque id naming the SPECIFIC on-screen document/note/app-state this
3016
- // screen_capture region shows. Two scenes share it only when they show the SAME
3017
- // recording continuing (scrolling/typing/waiting within it) — a genuinely
3018
- // DIFFERENT document/note/recording (a source video splicing two screen captures)
3019
- // gets a different id. Breaks a persistent-layout run into separate surface stubs
3020
- // instead of asking the operator for one screenshot that can't cover both.
3021
- surface_id: z.string().optional(),
3022
- // Camera bubble(s)/inset(s) embedded INSIDE this region's surface (a Loom-style
3023
- // presenter bubble inside a screen recording) — video-in-video the reproduction
3024
- // must re-composite, not paint into the surface.
3025
- nested: z.array(z.object({}).loose()).optional(),
3026
- summary: z.string().optional(),
3027
- frame_prompt: z.string().optional(),
3028
- motion_prompt: z.string().optional()
3029
- }).loose();
3030
- var SceneCompositionSchema = z.object({
3031
- // full_frame (default) | split_screen | pip | keyed_overlay
3032
- layout: z.string().optional(),
3033
- // split_screen only: vertical (top/bottom) | horizontal (left/right).
3034
- split_axis: z.string().optional(),
3035
- regions: z.array(CompositionRegionSchema).optional()
3036
- }).loose();
3037
- var CameraMotionSchema = z.object({ movement: z.string().optional(), detail: z.string().optional() }).loose();
3038
- var TranscriptWordSchema = z.object({ text: z.string().optional() }).loose();
3039
- var SCENE_ROUTE_HINTS = ["brand_card"];
3040
- var VideoSceneSchema = z.object({
3041
- start_s: z.number().optional(),
3042
- end_s: z.number().optional(),
3043
- duration_s: z.number().optional(),
3044
- summary: z.string().optional(),
3045
- action_detail: z.string().optional(),
3046
- // The scene's spatial layout. Absent/full_frame ⇒ one uncut shot (default path).
3047
- // A layered layout (split_screen/pip/keyed_overlay) with regions ⇒ the scaffold
3048
- // builds one clip per region and stacks/overlays them into the scene picture.
3049
- composition: SceneCompositionSchema.optional(),
3050
- // The capture "look" for this scene — selected from the ad-native shoot-mode
3051
- // grammar (the CLI's scaffold/lib/shoot-modes.ts). When absent the scaffold
3052
- // auto-derives a UGC/product mode; a human can override per scene by setting this.
3053
- shoot_mode: z.string().optional(),
3054
- // Diegetic ambient the clip's native audio should carry (no music). When
3055
- // absent the scene falls back to its shoot mode's default ambience.
3056
- ambient: z.string().optional(),
3057
- camera_motion: CameraMotionSchema.optional(),
3058
- start_frame_prompt: z.string().optional(),
3059
- end_frame_prompt: z.string().optional(),
3060
- motion_prompt: z.string().optional(),
3061
- // The scene's role in the ad's persuasion arc (DECON-supplied); drives the
3062
- // script re-craft checklist. Inferred from position when absent.
3063
- narrative_role: z.string().optional(),
3064
- // See `SceneRouteHint`.
3065
- route_hint: z.enum(SCENE_ROUTE_HINTS).optional(),
3066
- // DECON-supplied on the HOOK scene: the engineered physical/emotional state that
3067
- // makes the first frame stop the scroll (sweaty/breathless/urgent …). Injected
3068
- // into the hook's start-frame description so the generator renders that state,
3069
- // not a calm influencer (CCA-11).
3070
- hook_mechanic: z.object({ mechanic: z.string().optional(), why_it_stops_scroll: z.string().optional() }).loose().optional(),
3071
- // DECON-supplied per-scene location (so a gym hook isn't flattened to "home").
3072
- scene_setting: z.string().optional(),
3073
- // How this scene cuts to the next (DECON-supplied). A recognized non-cut type
3074
- // (fade/whip/zoom/dissolve/swipe) is reproduced as an ffmpeg xfade at the
3075
- // boundary; cut/match_cut/none/other stay hard cuts. The last scene's value is
3076
- // ignored (nothing follows it).
3077
- transition_out: z.object({ type: z.string().optional(), description: z.string().optional() }).loose().optional(),
3078
- dialogue: z.array(BlueprintDialogueLineSchema).optional(),
3079
- sfx: z.array(SfxSchema).optional(),
3080
- // Parsed element by element where they are read (`BlueprintOverlaySchema`,
3081
- // `BlueprintFloatingElementSchema`), so one malformed graphic never rejects the scene.
3082
- overlays: z.array(z.unknown()).optional(),
3083
- floating_elements: z.array(z.unknown()).optional(),
3084
- // DECON-supplied: how much the picture itself moves within the shot. Gates the
3085
- // flash-hold optimization — a sub-2s b-roll flash with REAL subject motion
3086
- // (pouring, spreading, hands working) must stay a real clip; freezing it turns
3087
- // a montage into a slideshow. Absent (old blueprints) keeps the cheap still.
3088
- motion_level: z.enum(["static", "subtle", "dynamic"]).optional(),
3089
- transcript_slice: z.array(TranscriptWordSchema).optional(),
3090
- start_frame_asset: FrameAssetSchema,
3091
- end_frame_asset: FrameAssetSchema,
3092
- // `scaffold-ad`-supplied: the scene's picture IS this item of the company's library — a
3093
- // clip played from `offset_s`, or a photo held for the scene — so nothing is generated
3094
- // for it. A deconstructed scene never carries it.
3095
- library_asset: z.object({ kind: z.enum(["image", "video"]), id: z.string().min(1), offset_s: z.number().min(0).optional() }).optional(),
3096
- // DECON-supplied: true when this scene is a length-split CONTINUATION of the
3097
- // previous one (the SAME physical shot, broken up only because it exceeded the
3098
- // clip ceiling). The scaffold then shares the splice keyframe — this scene's
3099
- // start frame IS the previous scene's end frame — so the join is seamless.
3100
- continues_previous: z.boolean().optional()
3101
- }).loose();
3102
- var VideoBlueprintSchema = z.object({
3103
- source: z.object({ aspect_ratio: z.string().optional(), duration_s: z.number().optional() }).loose().optional(),
3104
- global: z.object({
3105
- music: z.object({
3106
- present: z.boolean().optional(),
3107
- music_prompt: z.string().optional(),
3108
- // Absolute second the music enters in the reference (the bed often
3109
- // kicks in mid-ad, after the hook). We start the regenerated track here
3110
- // instead of at 0 so the timing matches.
3111
- starts_at_s: z.number().optional(),
3112
- // Populated by the deconstruct when AudD (Shazam-style) recognizes the
3113
- // reference track. We never reuse it — only style the regenerated bed.
3114
- identified_track: z.object({ title: z.string().optional(), artist: z.string().optional() }).loose().nullish()
3115
- }).loose().optional(),
3116
- cast: z.array(
3117
- z.object({
3118
- id: z.string().optional(),
3119
- description: z.string().optional(),
3120
- // The deconstruct's note on the target-market localization (e.g. "native
3121
- // French speaker") — read to derive the spoken-track language code.
3122
- market_localization_note: z.string().optional()
3123
- }).loose()
3124
- ).optional(),
3125
- voiceover: z.object({
3126
- // on_camera | mixed → mouths are on screen (lip-sync candidates);
3127
- // voiceover | none → narration over the picture (no lip-sync).
3128
- mode: z.string().optional(),
3129
- // Which variety of the language the speech is in. Stated because the model
3130
- // picks one otherwise: ads set in Spain came back in Latin American Spanish,
3131
- // and the pinned peninsular voice could not undo it — the re-voicing is
3132
- // speech-to-speech, so it carries the accent across and swaps only the timbre.
3133
- accent: z.string().optional(),
3134
- voice_description: z.string().optional(),
3135
- persona: z.string().optional()
3136
- }).loose().optional(),
3137
- // Visual palette — read only to colour a clean brand-card/CTA plate (the
3138
- // first hex is the dominant brand colour); never to drive frame generation.
3139
- style: z.object({ palette: z.array(z.object({ hex: z.string().optional() }).loose()).optional() }).loose().optional(),
3140
- // Written by `scaffold-ad` (the deconstruct names its own fields, e.g. `branding.brand_name`):
3141
- // the whole script as one string, where the ad is set, and the brand it closes on.
3142
- transcript: z.string().optional(),
3143
- market: z.string().optional(),
3144
- branding: z.object({ name: z.string().optional(), logo_path: z.string().optional() }).loose().optional()
3145
- }).loose().optional(),
3146
- // Written by `scaffold-ad`: what the beats add up to, so a short ad is caught before it renders.
3147
- estimated_duration_s: z.number().optional(),
3148
- scenes: z.array(VideoSceneSchema).min(1)
3149
- }).loose();
3150
- var OverlayStyleSchema = z.object({ color_hex: z.string().optional(), background: z.string().optional(), size: z.string().optional() }).loose();
3151
- var BlueprintOverlaySchema = z.object({
3152
- text: z.string().optional(),
3153
- appears_at_s: z.number().optional(),
3154
- duration_s: z.number().optional(),
3155
- position: z.string().optional(),
3156
- role: z.string().optional(),
3157
- animation: z.string().optional(),
3158
- animation_detail: z.string().optional(),
3159
- style: OverlayStyleSchema.optional()
3160
- }).loose();
3161
- var BlueprintFloatingElementSchema = z.object({
3162
- kind: z.string().optional(),
3163
- description: z.string().optional(),
3164
- brand_name: z.string().nullish(),
3165
- what_it_represents: z.string().optional(),
3166
- appears_at_s: z.number().optional(),
3167
- duration_s: z.number().optional(),
3168
- position: z.string().optional()
3169
- }).loose();
3170
-
3171
- export {
3172
- AD_PLATFORMS,
3173
- AD_PLATFORM_LEAD,
3174
- AD_PLACEMENTS,
3175
- deliveryPlan,
3176
- verticalCover,
3177
- AD_FORMAT_PLATFORMS,
3178
- platformFormats,
3179
- resolveAdaptFormats,
3180
- AD_DESCRIBE_FOCUS,
3181
- AD_SELECT_SYSTEM,
3182
- AD_SELECT_PROMPT,
3183
- canonicalize,
3184
- withoutCastName,
3185
- frameRealismDirection,
3186
- CREDITS_PER_USD,
3187
- OPENROUTER_IMAGE_SIZES,
3188
- SEEDANCE_DURATIONS,
3189
- ELEVENLABS_OUTPUT_FORMATS,
3190
- ELEVENLABS_MAX_TEXT_CHARS,
3191
- ELEVENLABS_MAX_MUSIC_LENGTH_MS,
3192
- IMAGE_GENERATE_MODELS,
3193
- DEFAULT_IMAGE_GENERATE_MODEL,
3194
- imagePictureCredits,
3195
- VIDEO_GENERATE_MODELS,
3196
- DEFAULT_VIDEO_GENERATE_MODEL,
3197
- supportsReferenceToVideo,
3198
- supportsLastFrame,
3199
- MODEL_REGISTRY,
3200
- canonicalModelId,
3201
- modelIdsAccepted,
3202
- MODEL_ROLES,
3203
- AD_IMAGE_MODEL,
3204
- REFERENCE_SHEET_MODEL,
3205
- ASPECT_ADAPT_MODEL,
3206
- VERTICAL_RELAYOUT_MODEL,
3207
- PLATE_JUDGE_MODEL,
3208
- AD_DESCRIBE_MODEL,
3209
- BLUEPRINT_ANALYSIS_MODEL,
3210
- VIEWER_CHECK_MODEL,
3211
- CUSTOMER_INSIGHTS_MODEL,
3212
- GLANCE_CHECK_MODEL,
3213
- TEXT_BOX_READER_MODEL,
3214
- SUBJECT_BOX_READER_MODEL,
3215
- SIZE_MATCH_MODEL,
3216
- VIDEO_DECONSTRUCT_MODEL,
3217
- VOICEOVER_MODEL,
3218
- SOUND_EFFECT_MODEL,
3219
- MUSIC_BED_MODEL,
3220
- VOICE_CONVERT_MODEL,
3221
- isRegisteredModel,
3222
- imageGenerateAspectRatios,
3223
- supportsParam,
3224
- DEFAULT_CLIP_DURATION_S,
3225
- SPOKEN_WORDS_PER_SECOND,
3226
- spokenWordsIn,
3227
- SPOKEN_CLIP_DURATION_S,
3228
- nearestClipDuration,
3229
- clipAudioMode,
3230
- clipDurationsFor,
3231
- maxClipSeconds,
3232
- splitScriptFor,
3233
- promptMaxLength,
3234
- maxInputSlot,
3235
- maxInputReferences,
3236
- bestSupportedQuality,
3237
- supportedAspectRatios,
3238
- nearestSupportedAspectRatio,
3239
- nearestSupportedImageSize,
3240
- estimateVideoCredits,
3241
- DEFAULT_MUSIC_SECONDS,
3242
- DEFAULT_SOUND_EFFECT_SECONDS,
3243
- estimateNodeCredits,
3244
- candidPersonPortraitPrompt,
3245
- isManagedNodeKind,
3246
- validateModelParams,
3247
- validateModelInputs,
3248
- VideoBlueprintSchema,
3249
- BlueprintOverlaySchema,
3250
- BlueprintFloatingElementSchema
3251
- };
3252
- //# sourceMappingURL=chunk-NCS4E4YX.js.map