@koda-sl/baker-cli 0.513.0 → 0.514.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1077) hide show
  1. package/README.md +2 -2
  2. package/dist/account-D6LEVVWT.js +82 -0
  3. package/dist/account-D6LEVVWT.js.map +1 -0
  4. package/dist/account-SGK3IJ6N.js +82 -0
  5. package/dist/account-SGK3IJ6N.js.map +1 -0
  6. package/dist/account-assets-J5Z4URLQ.js +290 -0
  7. package/dist/account-level-4SBYYHRS.js +611 -0
  8. package/dist/account-level-4SBYYHRS.js.map +1 -0
  9. package/dist/account-reads-2MSUVG46.js +219 -0
  10. package/dist/account-users-MHC7AD6K.js +64 -0
  11. package/dist/account-users-MHC7AD6K.js.map +1 -0
  12. package/dist/account-writes-QQQC54WC.js +68 -0
  13. package/dist/account-writes-QQQC54WC.js.map +1 -0
  14. package/dist/accounts-2O6I7YBN.js +80 -0
  15. package/dist/accounts-2O6I7YBN.js.map +1 -0
  16. package/dist/accounts-QNE5QWBG.js +701 -0
  17. package/dist/accounts-QNE5QWBG.js.map +1 -0
  18. package/dist/actions-D7OWCP36.js +55 -0
  19. package/dist/activecampaign-LBS4M4C4.js +938 -0
  20. package/dist/activecampaign-LBS4M4C4.js.map +1 -0
  21. package/dist/ad-group-writes-CJTTUUIT.js +172 -0
  22. package/dist/ad-group-writes-CJTTUUIT.js.map +1 -0
  23. package/dist/ad-groups-HLGSVH74.js +70 -0
  24. package/dist/ad-groups-HLGSVH74.js.map +1 -0
  25. package/dist/ad-writes-3UE3U7VE.js +176 -0
  26. package/dist/ad-writes-3UE3U7VE.js.map +1 -0
  27. package/dist/add-HFQB2NTU.js +107 -0
  28. package/dist/add-HFQB2NTU.js.map +1 -0
  29. package/dist/add-IUYE5H6A.js +305 -0
  30. package/dist/add-IUYE5H6A.js.map +1 -0
  31. package/dist/ads-HLUJB5SQ.js +48 -0
  32. package/dist/ads-MAOI7S6V.js +115 -0
  33. package/dist/ads-PYNDMHUD.js +79 -0
  34. package/dist/ads-PYNDMHUD.js.map +1 -0
  35. package/dist/adsets-QRKICEFD.js +182 -0
  36. package/dist/advertisers-XXM6POO5.js +123 -0
  37. package/dist/advertisers-XXM6POO5.js.map +1 -0
  38. package/dist/analytics-AULKYNNT.js +447 -0
  39. package/dist/analytics-AULKYNNT.js.map +1 -0
  40. package/dist/analytics-DNDTC643.js +2437 -0
  41. package/dist/analytics-DNDTC643.js.map +1 -0
  42. package/dist/asset-writes-JLVUAVUZ.js +50 -0
  43. package/dist/assign-2GQVQKKO.js +80 -0
  44. package/dist/assign-2GQVQKKO.js.map +1 -0
  45. package/dist/audience-size-C3YHQPZB.js +76 -0
  46. package/dist/audience-size-C3YHQPZB.js.map +1 -0
  47. package/dist/audience-writes-CDKQB3SM.js +327 -0
  48. package/dist/audience-writes-CDKQB3SM.js.map +1 -0
  49. package/dist/audiences-CDDI5HR5.js +86 -0
  50. package/dist/audiences-M3A3QK52.js +280 -0
  51. package/dist/audiences-M3A3QK52.js.map +1 -0
  52. package/dist/audit-FLPJ7GTE.js +154 -0
  53. package/dist/audit-FLPJ7GTE.js.map +1 -0
  54. package/dist/autocomplete-ZYMHHV7E.js +114 -0
  55. package/dist/autocomplete-ZYMHHV7E.js.map +1 -0
  56. package/dist/avatars-WZ2JDMHH.js +38 -0
  57. package/dist/bid-pricing-H3M63PTW.js +103 -0
  58. package/dist/bid-pricing-H3M63PTW.js.map +1 -0
  59. package/dist/brand-IZTTBZII.js +22 -0
  60. package/dist/brief-OPQ7ICOY.js +543 -0
  61. package/dist/brief-OPQ7ICOY.js.map +1 -0
  62. package/dist/campaign-groups-IQSDKOVI.js +99 -0
  63. package/dist/campaign-groups-IQSDKOVI.js.map +1 -0
  64. package/dist/campaign-writes-APAAV4ZU.js +168 -0
  65. package/dist/campaign-writes-APAAV4ZU.js.map +1 -0
  66. package/dist/campaign-writes-BN4PZP4Z.js +176 -0
  67. package/dist/campaign-writes-BN4PZP4Z.js.map +1 -0
  68. package/dist/campaigns-4Y3JQC2U.js +111 -0
  69. package/dist/campaigns-GA34MEN2.js +78 -0
  70. package/dist/campaigns-GA34MEN2.js.map +1 -0
  71. package/dist/campaigns-HES5MDUG.js +130 -0
  72. package/dist/campaigns-K2FVD3XW.js +113 -0
  73. package/dist/campaigns-K2FVD3XW.js.map +1 -0
  74. package/dist/canvas-IQ753Q2O.js +46 -0
  75. package/dist/capabilities-ZITW4RF7.js +147 -0
  76. package/dist/capabilities-ZITW4RF7.js.map +1 -0
  77. package/dist/catalogs-TGLSJEK5.js +781 -0
  78. package/dist/catalogs-TGLSJEK5.js.map +1 -0
  79. package/dist/catalogs-ZR7DECMG.js +130 -0
  80. package/dist/catalogs-ZR7DECMG.js.map +1 -0
  81. package/dist/changes-VWKTM27U.js +135 -0
  82. package/dist/chatgpt-OPOD2WHB.js +47 -0
  83. package/dist/chats-AL2SYBJO.js +279 -0
  84. package/dist/chats-AL2SYBJO.js.map +1 -0
  85. package/dist/check-U2YLRD6H.js +107 -0
  86. package/dist/check-U2YLRD6H.js.map +1 -0
  87. package/dist/chunk-2GYCWRF3.js +170 -0
  88. package/dist/chunk-2L7F7KR4.js +61 -0
  89. package/dist/chunk-44ZRCSR7.js +228 -0
  90. package/dist/chunk-46YLDIQG.js +4254 -0
  91. package/dist/chunk-4EDWXZ3I.js +363 -0
  92. package/dist/chunk-4FFBGR5L.js +66 -0
  93. package/dist/chunk-4UQRXKYJ.js +219 -0
  94. package/dist/chunk-4UZUUSVL.js +592 -0
  95. package/dist/chunk-4XHCEYHI.js +831 -0
  96. package/dist/chunk-4Z6PVR3M.js +479 -0
  97. package/dist/chunk-5Y5FZV2W.js +122 -0
  98. package/dist/chunk-6HJXLGDV.js +392 -0
  99. package/dist/chunk-6S5CWGDA.js +429 -0
  100. package/dist/chunk-6VYROVWO.js +494 -0
  101. package/dist/chunk-7BUIOP36.js +287 -0
  102. package/dist/chunk-AQRXXC6E.js +319 -0
  103. package/dist/chunk-ARBXT73X.js +387 -0
  104. package/dist/chunk-BEZHQIEI.js +97 -0
  105. package/dist/chunk-BFURWHVR.js +547 -0
  106. package/dist/chunk-BX6B25KK.js +358 -0
  107. package/dist/chunk-BX6B25KK.js.map +1 -0
  108. package/dist/chunk-DSCEXBDR.js +676 -0
  109. package/dist/chunk-FLWDFPXE.js +23 -0
  110. package/dist/chunk-FRNBRN2C.js +1646 -0
  111. package/dist/chunk-G4FG5EQO.js +110 -0
  112. package/dist/chunk-G4FG5EQO.js.map +1 -0
  113. package/dist/chunk-GE3VT3CA.js +51 -0
  114. package/dist/chunk-GW2WRZZA.js +24026 -0
  115. package/dist/chunk-GW2WRZZA.js.map +1 -0
  116. package/dist/chunk-HGBJQGO5.js +142 -0
  117. package/dist/chunk-I7AYMJZA.js +783 -0
  118. package/dist/chunk-IRM273C7.js +207 -0
  119. package/dist/chunk-IWKD56AY.js +156 -0
  120. package/dist/chunk-JLAQWMVF.js +3868 -0
  121. package/dist/chunk-JOE42ZW6.js +2984 -0
  122. package/dist/chunk-JOE42ZW6.js.map +1 -0
  123. package/dist/chunk-K6NULQN7.js +57 -0
  124. package/dist/chunk-L2BRAC2J.js +19 -0
  125. package/dist/chunk-LGMI4LSY.js +455 -0
  126. package/dist/chunk-NB2FU6EZ.js +179 -0
  127. package/dist/chunk-NKQWDEB7.js +115 -0
  128. package/dist/chunk-NKQWDEB7.js.map +1 -0
  129. package/dist/chunk-NWF2LRKO.js +188 -0
  130. package/dist/chunk-OG47L5GG.js +275 -0
  131. package/dist/chunk-OR6KVLI5.js +169 -0
  132. package/dist/chunk-PC3FJEZH.js +7211 -0
  133. package/dist/chunk-PC3FJEZH.js.map +1 -0
  134. package/dist/chunk-Q3GSVLE5.js +4274 -0
  135. package/dist/chunk-Q3GSVLE5.js.map +1 -0
  136. package/dist/chunk-QDQZ62FL.js +207 -0
  137. package/dist/chunk-QIOFOD4K.js +344 -0
  138. package/dist/chunk-R2SYF5FC.js +249 -0
  139. package/dist/chunk-RTH2I55B.js +942 -0
  140. package/dist/chunk-S6VFDNSQ.js +63 -0
  141. package/dist/chunk-SG2TDQEE.js +150 -0
  142. package/dist/chunk-SOPVIIUW.js +68 -0
  143. package/dist/chunk-SOPVIIUW.js.map +1 -0
  144. package/dist/chunk-T3P6O2VU.js +89 -0
  145. package/dist/chunk-TXDE2QJ3.js +604 -0
  146. package/dist/chunk-UDIEKCIR.js +203 -0
  147. package/dist/chunk-USCADMM3.js +163 -0
  148. package/dist/chunk-UUGISMNE.js +910 -0
  149. package/dist/chunk-VDPOCAQ2.js +197 -0
  150. package/dist/chunk-VEJ3QX6M.js +103 -0
  151. package/dist/chunk-VFJB7OG6.js +91 -0
  152. package/dist/chunk-VRIPVLE7.js +8954 -0
  153. package/dist/chunk-WFY7KSHB.js +274 -0
  154. package/dist/chunk-WLESMH4J.js +45 -0
  155. package/dist/chunk-XHQYFNNK.js +846 -0
  156. package/dist/chunk-XOQNM7I4.js +396 -0
  157. package/dist/chunk-XOQNM7I4.js.map +1 -0
  158. package/dist/chunk-YILZR3XI.js +224 -0
  159. package/dist/chunk-YJFLXOH4.js +191 -0
  160. package/dist/chunk-YWHZYR6S.js +297 -0
  161. package/dist/claim-GOLUTAJ3.js +200 -0
  162. package/dist/claim-GOLUTAJ3.js.map +1 -0
  163. package/dist/cli.js +30 -30
  164. package/dist/companies-4AJJGTMC.js +198 -0
  165. package/dist/companies-4AJJGTMC.js.map +1 -0
  166. package/dist/company-MOSPLRZJ.js +308 -0
  167. package/dist/company-MOSPLRZJ.js.map +1 -0
  168. package/dist/complete-777BDV45.js +84 -0
  169. package/dist/complete-777BDV45.js.map +1 -0
  170. package/dist/connect-3YY7MF3I.js +45 -0
  171. package/dist/conversation-KROMHDHK.js +96 -0
  172. package/dist/conversation-KROMHDHK.js.map +1 -0
  173. package/dist/conversion-report-JZHI2IHY.js +127 -0
  174. package/dist/conversion-report-JZHI2IHY.js.map +1 -0
  175. package/dist/conversion-upload-command-7RSZ5ZQU.js +439 -0
  176. package/dist/conversion-writes-SNCLQDXQ.js +122 -0
  177. package/dist/conversion-writes-SNCLQDXQ.js.map +1 -0
  178. package/dist/conversions-43EYP2W2.js +140 -0
  179. package/dist/conversions-43EYP2W2.js.map +1 -0
  180. package/dist/conversions-EUOWILCQ.js +78 -0
  181. package/dist/conversions-EUOWILCQ.js.map +1 -0
  182. package/dist/copy-writes-CIHIFLY6.js +170 -0
  183. package/dist/copy-writes-CIHIFLY6.js.map +1 -0
  184. package/dist/create-3WOZO2XT.js +239 -0
  185. package/dist/create-3WOZO2XT.js.map +1 -0
  186. package/dist/create-7IFYLX7P.js +210 -0
  187. package/dist/create-7IFYLX7P.js.map +1 -0
  188. package/dist/create-FOHIQC3E.js +62 -0
  189. package/dist/create-FOHIQC3E.js.map +1 -0
  190. package/dist/create-UWQSQTK6.js +135 -0
  191. package/dist/create-UWQSQTK6.js.map +1 -0
  192. package/dist/creatives-2DR3QHJW.js +58 -0
  193. package/dist/creatives-BB6S2OF6.js +89 -0
  194. package/dist/creatives-KUO67WYA.js +223 -0
  195. package/dist/creatives-KUO67WYA.js.map +1 -0
  196. package/dist/credentials-IP4L37XP.js +290 -0
  197. package/dist/credentials-IP4L37XP.js.map +1 -0
  198. package/dist/critique-LGDNMLBL.js +232 -0
  199. package/dist/critique-LGDNMLBL.js.map +1 -0
  200. package/dist/critique-LJMFAURK.js +1451 -0
  201. package/dist/critique-LJMFAURK.js.map +1 -0
  202. package/dist/crm-BNYW7PF7.js +323 -0
  203. package/dist/crm-BNYW7PF7.js.map +1 -0
  204. package/dist/crm-J53V2QTN.js +227 -0
  205. package/dist/crm-J53V2QTN.js.map +1 -0
  206. package/dist/currency-X7Y6TSLF.js +88 -0
  207. package/dist/custom-conversions-HAGG72LF.js +128 -0
  208. package/dist/customers-663K2OCP.js +59 -0
  209. package/dist/delete-5W3YVA4L.js +67 -0
  210. package/dist/delete-5W3YVA4L.js.map +1 -0
  211. package/dist/delete-6U7E6YUW.js +57 -0
  212. package/dist/delete-6U7E6YUW.js.map +1 -0
  213. package/dist/delete-G4NY6ZG6.js +69 -0
  214. package/dist/delete-G4NY6ZG6.js.map +1 -0
  215. package/dist/demographics-4Y5LTCU4.js +141 -0
  216. package/dist/demographics-4Y5LTCU4.js.map +1 -0
  217. package/dist/discard-RKCZNKMN.js +69 -0
  218. package/dist/discard-RKCZNKMN.js.map +1 -0
  219. package/dist/discover-6DORQWXY.js +172 -0
  220. package/dist/domain-PLA2O4FW.js +101 -0
  221. package/dist/domain-PLA2O4FW.js.map +1 -0
  222. package/dist/download-4EFLVSA4.js +172 -0
  223. package/dist/download-4EFLVSA4.js.map +1 -0
  224. package/dist/draft-4V7W5DV2.js +310 -0
  225. package/dist/draft-4V7W5DV2.js.map +1 -0
  226. package/dist/draft-HY3U2GHU.js +283 -0
  227. package/dist/draft-HY3U2GHU.js.map +1 -0
  228. package/dist/draft-JMNAGW7C.js +220 -0
  229. package/dist/draft-JMNAGW7C.js.map +1 -0
  230. package/dist/draft-R6EKORNS.js +308 -0
  231. package/dist/draft-TRPQCJ4B.js +335 -0
  232. package/dist/draft-TRPQCJ4B.js.map +1 -0
  233. package/dist/experiments-4V242DG2.js +236 -0
  234. package/dist/experiments-4V242DG2.js.map +1 -0
  235. package/dist/facets-WXJ2MCU6.js +117 -0
  236. package/dist/facets-WXJ2MCU6.js.map +1 -0
  237. package/dist/feedback-IRSRPXV6.js +111 -0
  238. package/dist/feedback-IRSRPXV6.js.map +1 -0
  239. package/dist/feedback-record-DT3R4NA3.js +265 -0
  240. package/dist/feedback-record-DT3R4NA3.js.map +1 -0
  241. package/dist/fetch-YLQP5VQL.js +179 -0
  242. package/dist/fetch-YLQP5VQL.js.map +1 -0
  243. package/dist/fit-BEFCY2B4.js +65 -0
  244. package/dist/flows-FDMF3F3P.js +250 -0
  245. package/dist/flows-FDMF3F3P.js.map +1 -0
  246. package/dist/fonts-C6XN5667.js +39 -0
  247. package/dist/forecast-BTPIXEQ5.js +169 -0
  248. package/dist/forecast-ZTXZD3HD.js +121 -0
  249. package/dist/forecast-ZTXZD3HD.js.map +1 -0
  250. package/dist/funnel-7KOEX7YM.js +397 -0
  251. package/dist/funnel-7KOEX7YM.js.map +1 -0
  252. package/dist/get-KBSKPTAV.js +59 -0
  253. package/dist/get-KBSKPTAV.js.map +1 -0
  254. package/dist/get-OSVQVMP6.js +82 -0
  255. package/dist/get-OSVQVMP6.js.map +1 -0
  256. package/dist/google-M6BJ22UL.js +3267 -0
  257. package/dist/google-ads-XCJVAXWF.js +198 -0
  258. package/dist/google-ads-XCJVAXWF.js.map +1 -0
  259. package/dist/history-3NTM5SFN.js +69 -0
  260. package/dist/history-3NTM5SFN.js.map +1 -0
  261. package/dist/history-4TN2A6BL.js +136 -0
  262. package/dist/history-4TN2A6BL.js.map +1 -0
  263. package/dist/history-5IWW2X33.js +102 -0
  264. package/dist/history-5IWW2X33.js.map +1 -0
  265. package/dist/hubspot-HMVSRJQZ.js +782 -0
  266. package/dist/hubspot-HMVSRJQZ.js.map +1 -0
  267. package/dist/ideas-M66FU45H.js +45 -0
  268. package/dist/images-MM5OPUKV.js +92 -0
  269. package/dist/ingest-GU3WEBN3.js +110 -0
  270. package/dist/ingest-GU3WEBN3.js.map +1 -0
  271. package/dist/ingest-KMLYCFF4.js +26 -0
  272. package/dist/insights-CQCWOCIT.js +132 -0
  273. package/dist/insights-CQCWOCIT.js.map +1 -0
  274. package/dist/insights-XZL2EM53.js +439 -0
  275. package/dist/insights-XZL2EM53.js.map +1 -0
  276. package/dist/inspect-4JO2J3D6.js +192 -0
  277. package/dist/inspect-4JO2J3D6.js.map +1 -0
  278. package/dist/instant-experiences-RM4MLJTL.js +260 -0
  279. package/dist/instant-experiences-RM4MLJTL.js.map +1 -0
  280. package/dist/intent-YCQCUCV3.js +95 -0
  281. package/dist/keyword-gap-PUSF7EKY.js +130 -0
  282. package/dist/keyword-metrics-JXBM22ZD.js +200 -0
  283. package/dist/keyword-metrics-JXBM22ZD.js.map +1 -0
  284. package/dist/keywords-for-site-OAYA7KP7.js +131 -0
  285. package/dist/keywords-for-site-OAYA7KP7.js.map +1 -0
  286. package/dist/landing-OZU5RRFV.js +28 -0
  287. package/dist/languages-SLFV73GE.js +40 -0
  288. package/dist/leads-Q7APIJRQ.js +115 -0
  289. package/dist/leads-Q7APIJRQ.js.map +1 -0
  290. package/dist/leads-ULYHTG22.js +540 -0
  291. package/dist/leads-ULYHTG22.js.map +1 -0
  292. package/dist/learn-NBBJRMVZ.js +207 -0
  293. package/dist/learn-NBBJRMVZ.js.map +1 -0
  294. package/dist/line-item-writes-X3L5NQEH.js +211 -0
  295. package/dist/line-item-writes-X3L5NQEH.js.map +1 -0
  296. package/dist/line-items-NJMEPEF5.js +107 -0
  297. package/dist/link-WZSNUQQ2.js +67 -0
  298. package/dist/link-WZSNUQQ2.js.map +1 -0
  299. package/dist/linkedin-55PAID62.js +1316 -0
  300. package/dist/linkedin-55PAID62.js.map +1 -0
  301. package/dist/linkedin-person-MVRI7LLC.js +139 -0
  302. package/dist/linkedin-person-MVRI7LLC.js.map +1 -0
  303. package/dist/list-6S54IAUX.js +67 -0
  304. package/dist/list-6S54IAUX.js.map +1 -0
  305. package/dist/list-QRJ4E3SC.js +154 -0
  306. package/dist/list-QRJ4E3SC.js.map +1 -0
  307. package/dist/list-RZUDFLJN.js +306 -0
  308. package/dist/list-RZUDFLJN.js.map +1 -0
  309. package/dist/locations-T2OMP6QN.js +40 -0
  310. package/dist/locations-W3VOYBWL.js +69 -0
  311. package/dist/locations-W3VOYBWL.js.map +1 -0
  312. package/dist/log-53SAPZZ3.js +95 -0
  313. package/dist/log-53SAPZZ3.js.map +1 -0
  314. package/dist/lookup-S5VG7AWH.js +23 -0
  315. package/dist/make-ZF3YIMKW.js +1370 -0
  316. package/dist/make-ZF3YIMKW.js.map +1 -0
  317. package/dist/map-J37QFJSV.js +436 -0
  318. package/dist/map-J37QFJSV.js.map +1 -0
  319. package/dist/mcp-YRIFPYNU.js +717 -0
  320. package/dist/mcp-YRIFPYNU.js.map +1 -0
  321. package/dist/media-P4T4ZBNS.js +18 -0
  322. package/dist/media-sources-EQI3U4TC.js +35 -0
  323. package/dist/members-GYVMSCKL.js +47 -0
  324. package/dist/members-GYVMSCKL.js.map +1 -0
  325. package/dist/meta-IPLWNYC7.js +122 -0
  326. package/dist/metrics-4YVJHYRI.js +152 -0
  327. package/dist/normalize-MFN3WCH5.js +144 -0
  328. package/dist/normalize-MFN3WCH5.js.map +1 -0
  329. package/dist/options-DLHDHO7H.js +125 -0
  330. package/dist/options-DLHDHO7H.js.map +1 -0
  331. package/dist/organization-C2VOA2SD.js +949 -0
  332. package/dist/organization-C2VOA2SD.js.map +1 -0
  333. package/dist/page-photos-OQ5QATQH.js +118 -0
  334. package/dist/page-photos-OQ5QATQH.js.map +1 -0
  335. package/dist/performance-NIF3CESZ.js +27 -0
  336. package/dist/performance-T6TBVHVU.js +5541 -0
  337. package/dist/performance-T6TBVHVU.js.map +1 -0
  338. package/dist/pixels-LQAJOZIM.js +62 -0
  339. package/dist/pixels-LQAJOZIM.js.map +1 -0
  340. package/dist/plan-7UF76Q6U.js +208 -0
  341. package/dist/plan-7UF76Q6U.js.map +1 -0
  342. package/dist/preview-LRJOQ7LM.js +218 -0
  343. package/dist/preview-LRJOQ7LM.js.map +1 -0
  344. package/dist/promoted-tweet-writes-Y6BBOWDL.js +183 -0
  345. package/dist/promoted-tweet-writes-Y6BBOWDL.js.map +1 -0
  346. package/dist/promoted-tweets-RJT53DRM.js +119 -0
  347. package/dist/publish-IOTMJCCY.js +344 -0
  348. package/dist/publish-IOTMJCCY.js.map +1 -0
  349. package/dist/query-XZMDGRO5.js +62 -0
  350. package/dist/questionnaire-DWEH5II4.js +94 -0
  351. package/dist/questionnaire-DWEH5II4.js.map +1 -0
  352. package/dist/reddit-JIHMAKAQ.js +29 -0
  353. package/dist/refresh-OQZ263CS.js +97 -0
  354. package/dist/refresh-OQZ263CS.js.map +1 -0
  355. package/dist/release-4CHFURO3.js +63 -0
  356. package/dist/release-4CHFURO3.js.map +1 -0
  357. package/dist/relevant-pages-FS7GBVXK.js +99 -0
  358. package/dist/remove-IJQPHPDI.js +53 -0
  359. package/dist/remove-IJQPHPDI.js.map +1 -0
  360. package/dist/reopen-YTLPVKUR.js +66 -0
  361. package/dist/reopen-YTLPVKUR.js.map +1 -0
  362. package/dist/rerun-C7NB7B35.js +95 -0
  363. package/dist/rerun-C7NB7B35.js.map +1 -0
  364. package/dist/research-PNBACCCP.js +72 -0
  365. package/dist/research-TLHNPK3O.js +265 -0
  366. package/dist/research-TLHNPK3O.js.map +1 -0
  367. package/dist/reset-JVLW7HA2.js +57 -0
  368. package/dist/reset-JVLW7HA2.js.map +1 -0
  369. package/dist/reset-Y6FXLAQE.js +57 -0
  370. package/dist/reset-Y6FXLAQE.js.map +1 -0
  371. package/dist/resolve-YLRESES5.js +124 -0
  372. package/dist/resolve-YLRESES5.js.map +1 -0
  373. package/dist/retry-3V3IGDRR.js +65 -0
  374. package/dist/retry-3V3IGDRR.js.map +1 -0
  375. package/dist/retry-AEKQLQMP.js +63 -0
  376. package/dist/retry-AEKQLQMP.js.map +1 -0
  377. package/dist/revenue-E4GQIOUY.js +91 -0
  378. package/dist/revenue-E4GQIOUY.js.map +1 -0
  379. package/dist/rule-writes-UAVWT4XS.js +525 -0
  380. package/dist/rule-writes-UAVWT4XS.js.map +1 -0
  381. package/dist/rules-34BQAWU3.js +99 -0
  382. package/dist/rules-34BQAWU3.js.map +1 -0
  383. package/dist/rules-ZVS2MWED.js +217 -0
  384. package/dist/rules-add-CM5XUYNS.js +465 -0
  385. package/dist/rules-add-CM5XUYNS.js.map +1 -0
  386. package/dist/run-MD64RDHZ.js +69 -0
  387. package/dist/run-MD64RDHZ.js.map +1 -0
  388. package/dist/run-QCNRR3CA.js +70 -0
  389. package/dist/scaffold-ad-NADPY3CB.js +1516 -0
  390. package/dist/scaffold-ad-NADPY3CB.js.map +1 -0
  391. package/dist/scaffold-static-ad-5YEYYVYH.js +1015 -0
  392. package/dist/scaffold-static-ad-5YEYYVYH.js.map +1 -0
  393. package/dist/scaffold-video-W7DF2CBJ.js +888 -0
  394. package/dist/scaffold-video-W7DF2CBJ.js.map +1 -0
  395. package/dist/schedule-CTRRF6TS.js +64 -0
  396. package/dist/schedule-CTRRF6TS.js.map +1 -0
  397. package/dist/scheduled-agents-OXYAVSIE.js +55 -0
  398. package/dist/schema-BEUYOGSW.js +135 -0
  399. package/dist/schema-BEUYOGSW.js.map +1 -0
  400. package/dist/search-GFJKWPKN.js +177 -0
  401. package/dist/search-GFJKWPKN.js.map +1 -0
  402. package/dist/select-S72CCL57.js +106 -0
  403. package/dist/select-S72CCL57.js.map +1 -0
  404. package/dist/sends-LAY5C74B.js +349 -0
  405. package/dist/sends-LAY5C74B.js.map +1 -0
  406. package/dist/set-prompt-YYFDRXRI.js +198 -0
  407. package/dist/set-prompt-YYFDRXRI.js.map +1 -0
  408. package/dist/setup-links-D4JJLESN.js +144 -0
  409. package/dist/setup-links-D4JJLESN.js.map +1 -0
  410. package/dist/shopify-T4UWFIQC.js +3958 -0
  411. package/dist/shopify-T4UWFIQC.js.map +1 -0
  412. package/dist/site-BBZAUZA3.js +180 -0
  413. package/dist/site-BBZAUZA3.js.map +1 -0
  414. package/dist/sources-BUPV7H7F.js +457 -0
  415. package/dist/sources-BUPV7H7F.js.map +1 -0
  416. package/dist/sources-FLUGHSVP.js +30 -0
  417. package/dist/stale-HP54JS5X.js +76 -0
  418. package/dist/stale-HP54JS5X.js.map +1 -0
  419. package/dist/status-CLSWQFCQ.js +65 -0
  420. package/dist/status-CLSWQFCQ.js.map +1 -0
  421. package/dist/studies-EPO2AM4M.js +250 -0
  422. package/dist/study-writes-7FP443QQ.js +470 -0
  423. package/dist/study-writes-7FP443QQ.js.map +1 -0
  424. package/dist/sync-4YTVVEVC.js +57 -0
  425. package/dist/sync-4YTVVEVC.js.map +1 -0
  426. package/dist/sync-definition-OGQ5XTQE.js +69 -0
  427. package/dist/tags-CZTRQNXV.js +26 -0
  428. package/dist/tags-FDQXWTCQ.js +23 -0
  429. package/dist/tags-FDQXWTCQ.js.map +1 -0
  430. package/dist/tags-R67DKRZ6.js +23 -0
  431. package/dist/tags-R67DKRZ6.js.map +1 -0
  432. package/dist/tags-SA2LU6AW.js +227 -0
  433. package/dist/tags-SA2LU6AW.js.map +1 -0
  434. package/dist/tags-ZOXX6VRE.js +23 -0
  435. package/dist/tags-ZOXX6VRE.js.map +1 -0
  436. package/dist/targeting-NKZFEZD7.js +762 -0
  437. package/dist/targeting-NKZFEZD7.js.map +1 -0
  438. package/dist/targeting-criteria-AQYXVSGN.js +113 -0
  439. package/dist/targets-UUVCEG3F.js +106 -0
  440. package/dist/targets-UUVCEG3F.js.map +1 -0
  441. package/dist/testimonials-G3OCNPBY.js +32 -0
  442. package/dist/themes-FEVYZZCW.js +95 -0
  443. package/dist/top-companies-BQGWKYUK.js +111 -0
  444. package/dist/top-companies-BQGWKYUK.js.map +1 -0
  445. package/dist/transcript-U46AEOEI.js +165 -0
  446. package/dist/transcript-U46AEOEI.js.map +1 -0
  447. package/dist/translate-AS7JVKYM.js +609 -0
  448. package/dist/translate-AS7JVKYM.js.map +1 -0
  449. package/dist/triggers-ECRBPYYF.js +144 -0
  450. package/dist/triggers-ECRBPYYF.js.map +1 -0
  451. package/dist/unlink-VDNCSRJV.js +70 -0
  452. package/dist/unlink-VDNCSRJV.js.map +1 -0
  453. package/dist/unstage-ATDXUYP2.js +88 -0
  454. package/dist/unstage-ATDXUYP2.js.map +1 -0
  455. package/dist/unstage-ZA3WQBEA.js +96 -0
  456. package/dist/unstage-ZA3WQBEA.js.map +1 -0
  457. package/dist/update-FJ6TBV3E.js +101 -0
  458. package/dist/update-FJ6TBV3E.js.map +1 -0
  459. package/dist/update-HDBJCSTI.js +66 -0
  460. package/dist/update-HDBJCSTI.js.map +1 -0
  461. package/dist/update-U43DJRGV.js +155 -0
  462. package/dist/update-U43DJRGV.js.map +1 -0
  463. package/dist/update-Z7TIUBMJ.js +192 -0
  464. package/dist/update-Z7TIUBMJ.js.map +1 -0
  465. package/dist/upload-LXCFSRIU.js +129 -0
  466. package/dist/upload-LXCFSRIU.js.map +1 -0
  467. package/dist/url-options-Z4BQBEMI.js +131 -0
  468. package/dist/url-options-Z4BQBEMI.js.map +1 -0
  469. package/dist/url-params-J7RKP5RB.js +101 -0
  470. package/dist/url-params-J7RKP5RB.js.map +1 -0
  471. package/dist/validate-VR3HEOMJ.js +122 -0
  472. package/dist/validate-VR3HEOMJ.js.map +1 -0
  473. package/dist/videos-36AXDUGZ.js +41 -0
  474. package/dist/viewer-check-6HL4OUQY.js +83 -0
  475. package/dist/web-7BRJRQX7.js +143 -0
  476. package/dist/web-7BRJRQX7.js.map +1 -0
  477. package/dist/winning-ads-GMM5W2O4.js +86 -0
  478. package/dist/write-commands-IM5DPG3R.js +1502 -0
  479. package/dist/write-commands-IM5DPG3R.js.map +1 -0
  480. package/dist/write-commands-OGVDWWBV.js +1172 -0
  481. package/dist/write-commands-OGVDWWBV.js.map +1 -0
  482. package/dist/x-HGFAL3NY.js +47 -0
  483. package/package.json +1 -1
  484. package/dist/account-UUAEQWO3.js +0 -80
  485. package/dist/account-UUAEQWO3.js.map +0 -1
  486. package/dist/account-WLQBAQMD.js +0 -80
  487. package/dist/account-WLQBAQMD.js.map +0 -1
  488. package/dist/account-assets-O7IA37RE.js +0 -290
  489. package/dist/account-level-EU7BWCO7.js +0 -609
  490. package/dist/account-level-EU7BWCO7.js.map +0 -1
  491. package/dist/account-reads-SNOWDHHF.js +0 -219
  492. package/dist/account-users-NV37Z2XJ.js +0 -62
  493. package/dist/account-users-NV37Z2XJ.js.map +0 -1
  494. package/dist/account-writes-TU3WJRSI.js +0 -66
  495. package/dist/account-writes-TU3WJRSI.js.map +0 -1
  496. package/dist/accounts-MZ6SETJJ.js +0 -78
  497. package/dist/accounts-MZ6SETJJ.js.map +0 -1
  498. package/dist/accounts-U7ZBEAY6.js +0 -699
  499. package/dist/accounts-U7ZBEAY6.js.map +0 -1
  500. package/dist/actions-4JYHXRFH.js +0 -55
  501. package/dist/activecampaign-IDBV26HH.js +0 -936
  502. package/dist/activecampaign-IDBV26HH.js.map +0 -1
  503. package/dist/ad-group-writes-HLBWN4E4.js +0 -170
  504. package/dist/ad-group-writes-HLBWN4E4.js.map +0 -1
  505. package/dist/ad-groups-33NZD6J3.js +0 -68
  506. package/dist/ad-groups-33NZD6J3.js.map +0 -1
  507. package/dist/ad-writes-7ZDNDZ2E.js +0 -174
  508. package/dist/ad-writes-7ZDNDZ2E.js.map +0 -1
  509. package/dist/add-AF42LQQQ.js +0 -105
  510. package/dist/add-AF42LQQQ.js.map +0 -1
  511. package/dist/add-LJRZYJ7I.js +0 -303
  512. package/dist/add-LJRZYJ7I.js.map +0 -1
  513. package/dist/ads-KBE5JXCH.js +0 -115
  514. package/dist/ads-LXWXOQHX.js +0 -48
  515. package/dist/ads-X3AM6M7L.js +0 -77
  516. package/dist/ads-X3AM6M7L.js.map +0 -1
  517. package/dist/adsets-YWBJFPAZ.js +0 -182
  518. package/dist/advertisers-6FOCN2W3.js +0 -121
  519. package/dist/advertisers-6FOCN2W3.js.map +0 -1
  520. package/dist/analytics-64HBRJJE.js +0 -2435
  521. package/dist/analytics-64HBRJJE.js.map +0 -1
  522. package/dist/analytics-VY5NL2GL.js +0 -445
  523. package/dist/analytics-VY5NL2GL.js.map +0 -1
  524. package/dist/asset-writes-72DEVXGO.js +0 -48
  525. package/dist/assign-N2I2BM67.js +0 -78
  526. package/dist/assign-N2I2BM67.js.map +0 -1
  527. package/dist/audience-size-H5DEZXJN.js +0 -74
  528. package/dist/audience-size-H5DEZXJN.js.map +0 -1
  529. package/dist/audience-writes-KCHLNFSI.js +0 -325
  530. package/dist/audience-writes-KCHLNFSI.js.map +0 -1
  531. package/dist/audiences-QAH42HIM.js +0 -86
  532. package/dist/audiences-WCDWN64L.js +0 -268
  533. package/dist/audiences-WCDWN64L.js.map +0 -1
  534. package/dist/audit-2AAF6AOX.js +0 -152
  535. package/dist/audit-2AAF6AOX.js.map +0 -1
  536. package/dist/autocomplete-3GSKRNCZ.js +0 -112
  537. package/dist/autocomplete-3GSKRNCZ.js.map +0 -1
  538. package/dist/avatars-N6W6HUPP.js +0 -38
  539. package/dist/bid-pricing-IMITXHXN.js +0 -101
  540. package/dist/bid-pricing-IMITXHXN.js.map +0 -1
  541. package/dist/brand-ITWQVZD2.js +0 -22
  542. package/dist/brief-JJNEYPYB.js +0 -541
  543. package/dist/brief-JJNEYPYB.js.map +0 -1
  544. package/dist/campaign-groups-TTQLP32Q.js +0 -97
  545. package/dist/campaign-groups-TTQLP32Q.js.map +0 -1
  546. package/dist/campaign-writes-MAKPHQ3V.js +0 -166
  547. package/dist/campaign-writes-MAKPHQ3V.js.map +0 -1
  548. package/dist/campaign-writes-XO74BALZ.js +0 -174
  549. package/dist/campaign-writes-XO74BALZ.js.map +0 -1
  550. package/dist/campaigns-5BIDXYSR.js +0 -111
  551. package/dist/campaigns-LS65QM6W.js +0 -76
  552. package/dist/campaigns-LS65QM6W.js.map +0 -1
  553. package/dist/campaigns-XZOQ2VTK.js +0 -130
  554. package/dist/campaigns-XZPXCS7I.js +0 -111
  555. package/dist/campaigns-XZPXCS7I.js.map +0 -1
  556. package/dist/canvas-SL3RMOY5.js +0 -46
  557. package/dist/capabilities-LSR5GCE6.js +0 -145
  558. package/dist/capabilities-LSR5GCE6.js.map +0 -1
  559. package/dist/catalogs-JLCSFZYC.js +0 -779
  560. package/dist/catalogs-JLCSFZYC.js.map +0 -1
  561. package/dist/catalogs-T23RKYFC.js +0 -128
  562. package/dist/catalogs-T23RKYFC.js.map +0 -1
  563. package/dist/changes-36C754R4.js +0 -135
  564. package/dist/chatgpt-3WFOPURY.js +0 -47
  565. package/dist/chats-GGYTXNJS.js +0 -277
  566. package/dist/chats-GGYTXNJS.js.map +0 -1
  567. package/dist/check-P7UPBBG7.js +0 -105
  568. package/dist/check-P7UPBBG7.js.map +0 -1
  569. package/dist/chunk-2TOIY2WN.js +0 -4254
  570. package/dist/chunk-4D46PS6J.js +0 -344
  571. package/dist/chunk-4GAEB6NK.js +0 -228
  572. package/dist/chunk-5XTGG4PV.js +0 -274
  573. package/dist/chunk-6JCX3YLM.js +0 -249
  574. package/dist/chunk-7J3NZBPV.js +0 -2982
  575. package/dist/chunk-7J3NZBPV.js.map +0 -1
  576. package/dist/chunk-ALMYGH5U.js +0 -479
  577. package/dist/chunk-AQKRSEBQ.js +0 -103
  578. package/dist/chunk-BL6RTOK3.js +0 -297
  579. package/dist/chunk-C6CBBZBO.js +0 -203
  580. package/dist/chunk-CCEDZTP7.js +0 -391
  581. package/dist/chunk-CCEDZTP7.js.map +0 -1
  582. package/dist/chunk-CKQTJ2LV.js +0 -89
  583. package/dist/chunk-D3KLDIPQ.js +0 -45
  584. package/dist/chunk-DL2UJNJ7.js +0 -8954
  585. package/dist/chunk-DQ54POZN.js +0 -363
  586. package/dist/chunk-EDLZGTGN.js +0 -216
  587. package/dist/chunk-EDLZGTGN.js.map +0 -1
  588. package/dist/chunk-EXSHBYNQ.js +0 -349
  589. package/dist/chunk-EXSHBYNQ.js.map +0 -1
  590. package/dist/chunk-FFFJBNHA.js +0 -63
  591. package/dist/chunk-FKQK22IX.js +0 -51
  592. package/dist/chunk-FLK6QHOY.js +0 -142
  593. package/dist/chunk-GACSA5A6.js +0 -1646
  594. package/dist/chunk-HJKYTNAZ.js +0 -61
  595. package/dist/chunk-INUU3752.js +0 -392
  596. package/dist/chunk-IQHO2ABF.js +0 -197
  597. package/dist/chunk-J3UWMBOP.js +0 -547
  598. package/dist/chunk-JDR3HUEL.js +0 -191
  599. package/dist/chunk-JI77AKT6.js +0 -19
  600. package/dist/chunk-JNURZHZJ.js +0 -942
  601. package/dist/chunk-JSNMKTFM.js +0 -592
  602. package/dist/chunk-K4FLWDEX.js +0 -122
  603. package/dist/chunk-KBRJSPIM.js +0 -676
  604. package/dist/chunk-LAC6YHHX.js +0 -97
  605. package/dist/chunk-M7HD42M6.js +0 -24017
  606. package/dist/chunk-M7HD42M6.js.map +0 -1
  607. package/dist/chunk-MGYC2IRC.js +0 -783
  608. package/dist/chunk-MI4HXE7M.js +0 -23
  609. package/dist/chunk-MJ7RNDD4.js +0 -910
  610. package/dist/chunk-OBJCNGZL.js +0 -207
  611. package/dist/chunk-OJGYYH6K.js +0 -179
  612. package/dist/chunk-OLBLXJNI.js +0 -224
  613. package/dist/chunk-PFTYKINE.js +0 -207
  614. package/dist/chunk-PLBITHV6.js +0 -846
  615. package/dist/chunk-Q6JMMBSQ.js +0 -831
  616. package/dist/chunk-RAQHUMKS.js +0 -169
  617. package/dist/chunk-SA22KXWT.js +0 -163
  618. package/dist/chunk-SIXU5PDF.js +0 -66
  619. package/dist/chunk-SXMK5AEJ.js +0 -494
  620. package/dist/chunk-TTLD66NI.js +0 -319
  621. package/dist/chunk-TVAIOC77.js +0 -287
  622. package/dist/chunk-TVTSA4EN.js +0 -188
  623. package/dist/chunk-V5NHJU3M.js +0 -604
  624. package/dist/chunk-VIPKDXGU.js +0 -4229
  625. package/dist/chunk-VIPKDXGU.js.map +0 -1
  626. package/dist/chunk-W4D7C74B.js +0 -387
  627. package/dist/chunk-WF25CCLD.js +0 -170
  628. package/dist/chunk-WQPUX3BA.js +0 -275
  629. package/dist/chunk-WR3FR3K3.js +0 -156
  630. package/dist/chunk-XDNJC62G.js +0 -91
  631. package/dist/chunk-XE6N4SZI.js +0 -429
  632. package/dist/chunk-XGPU2VDU.js +0 -219
  633. package/dist/chunk-XUJZO7MZ.js +0 -57
  634. package/dist/chunk-Y67LUJBE.js +0 -455
  635. package/dist/chunk-Y7XSDJEA.js +0 -3868
  636. package/dist/chunk-ZNNQK366.js +0 -7198
  637. package/dist/chunk-ZNNQK366.js.map +0 -1
  638. package/dist/chunk-ZNRGH4NS.js +0 -150
  639. package/dist/claim-4KUETSW3.js +0 -198
  640. package/dist/claim-4KUETSW3.js.map +0 -1
  641. package/dist/companies-XFO6WPVT.js +0 -196
  642. package/dist/companies-XFO6WPVT.js.map +0 -1
  643. package/dist/company-OJGISG7K.js +0 -306
  644. package/dist/company-OJGISG7K.js.map +0 -1
  645. package/dist/complete-CXOST5J3.js +0 -82
  646. package/dist/complete-CXOST5J3.js.map +0 -1
  647. package/dist/connect-HPQ32KGV.js +0 -43
  648. package/dist/conversation-D5HKCTDA.js +0 -94
  649. package/dist/conversation-D5HKCTDA.js.map +0 -1
  650. package/dist/conversion-report-DKXFHLLX.js +0 -125
  651. package/dist/conversion-report-DKXFHLLX.js.map +0 -1
  652. package/dist/conversion-upload-command-KTYAY7IG.js +0 -439
  653. package/dist/conversion-writes-7ODJDAUP.js +0 -120
  654. package/dist/conversion-writes-7ODJDAUP.js.map +0 -1
  655. package/dist/conversions-BKVGNNC6.js +0 -76
  656. package/dist/conversions-BKVGNNC6.js.map +0 -1
  657. package/dist/conversions-SYNDEB6D.js +0 -138
  658. package/dist/conversions-SYNDEB6D.js.map +0 -1
  659. package/dist/copy-writes-P4WK6OPM.js +0 -168
  660. package/dist/copy-writes-P4WK6OPM.js.map +0 -1
  661. package/dist/create-7D4VD4TC.js +0 -208
  662. package/dist/create-7D4VD4TC.js.map +0 -1
  663. package/dist/create-7QDEAWZS.js +0 -133
  664. package/dist/create-7QDEAWZS.js.map +0 -1
  665. package/dist/create-IQSYEC4M.js +0 -60
  666. package/dist/create-IQSYEC4M.js.map +0 -1
  667. package/dist/create-TQSCM7MG.js +0 -237
  668. package/dist/create-TQSCM7MG.js.map +0 -1
  669. package/dist/creatives-JPKA2RHU.js +0 -89
  670. package/dist/creatives-RNOL4F4E.js +0 -58
  671. package/dist/creatives-RXI27T2D.js +0 -221
  672. package/dist/creatives-RXI27T2D.js.map +0 -1
  673. package/dist/credentials-PYW55B52.js +0 -288
  674. package/dist/credentials-PYW55B52.js.map +0 -1
  675. package/dist/critique-2SYHNAW5.js +0 -1449
  676. package/dist/critique-2SYHNAW5.js.map +0 -1
  677. package/dist/critique-72GFZSHA.js +0 -230
  678. package/dist/critique-72GFZSHA.js.map +0 -1
  679. package/dist/crm-EATDSXXB.js +0 -225
  680. package/dist/crm-EATDSXXB.js.map +0 -1
  681. package/dist/crm-XXP3VBYD.js +0 -321
  682. package/dist/crm-XXP3VBYD.js.map +0 -1
  683. package/dist/currency-R4ORE2U3.js +0 -88
  684. package/dist/custom-conversions-5HJBB5XL.js +0 -128
  685. package/dist/customers-OFZTEXST.js +0 -57
  686. package/dist/delete-FGVZIK4R.js +0 -55
  687. package/dist/delete-FGVZIK4R.js.map +0 -1
  688. package/dist/delete-HBZZL4UA.js +0 -67
  689. package/dist/delete-HBZZL4UA.js.map +0 -1
  690. package/dist/delete-JOUXMRIX.js +0 -65
  691. package/dist/delete-JOUXMRIX.js.map +0 -1
  692. package/dist/demographics-SB7NBYOI.js +0 -139
  693. package/dist/demographics-SB7NBYOI.js.map +0 -1
  694. package/dist/discard-YYGIRDII.js +0 -67
  695. package/dist/discard-YYGIRDII.js.map +0 -1
  696. package/dist/discover-GSJRZUOC.js +0 -172
  697. package/dist/domain-3KRAJAUH.js +0 -99
  698. package/dist/domain-3KRAJAUH.js.map +0 -1
  699. package/dist/download-QCBKJ6OR.js +0 -170
  700. package/dist/download-QCBKJ6OR.js.map +0 -1
  701. package/dist/draft-7CGFFZTH.js +0 -333
  702. package/dist/draft-7CGFFZTH.js.map +0 -1
  703. package/dist/draft-BI4NW6AU.js +0 -308
  704. package/dist/draft-BI4NW6AU.js.map +0 -1
  705. package/dist/draft-LPVK6YHI.js +0 -281
  706. package/dist/draft-LPVK6YHI.js.map +0 -1
  707. package/dist/draft-QF5JEUTH.js +0 -218
  708. package/dist/draft-QF5JEUTH.js.map +0 -1
  709. package/dist/draft-WYDMLNYA.js +0 -308
  710. package/dist/experiments-ZCEYRP3H.js +0 -234
  711. package/dist/experiments-ZCEYRP3H.js.map +0 -1
  712. package/dist/facets-G7ZDPI5Q.js +0 -115
  713. package/dist/facets-G7ZDPI5Q.js.map +0 -1
  714. package/dist/feedback-3U3CL2VB.js +0 -109
  715. package/dist/feedback-3U3CL2VB.js.map +0 -1
  716. package/dist/feedback-record-4ZHPENIP.js +0 -263
  717. package/dist/feedback-record-4ZHPENIP.js.map +0 -1
  718. package/dist/fetch-PNVNNWTP.js +0 -177
  719. package/dist/fetch-PNVNNWTP.js.map +0 -1
  720. package/dist/fit-53DGYRFD.js +0 -63
  721. package/dist/flows-JXLQBP5Q.js +0 -248
  722. package/dist/flows-JXLQBP5Q.js.map +0 -1
  723. package/dist/fonts-LFMBUT4R.js +0 -37
  724. package/dist/forecast-4AG5F7YC.js +0 -169
  725. package/dist/forecast-VZAXI74O.js +0 -119
  726. package/dist/forecast-VZAXI74O.js.map +0 -1
  727. package/dist/funnel-EACC35UD.js +0 -395
  728. package/dist/funnel-EACC35UD.js.map +0 -1
  729. package/dist/get-AXBVYGAC.js +0 -57
  730. package/dist/get-AXBVYGAC.js.map +0 -1
  731. package/dist/get-D6A27Q4E.js +0 -80
  732. package/dist/get-D6A27Q4E.js.map +0 -1
  733. package/dist/google-NAA4BASO.js +0 -3267
  734. package/dist/google-ads-OIYUNDXQ.js +0 -196
  735. package/dist/google-ads-OIYUNDXQ.js.map +0 -1
  736. package/dist/history-5MRLNTCI.js +0 -67
  737. package/dist/history-5MRLNTCI.js.map +0 -1
  738. package/dist/history-IDYNIB6R.js +0 -134
  739. package/dist/history-IDYNIB6R.js.map +0 -1
  740. package/dist/history-IOUKN3WD.js +0 -100
  741. package/dist/history-IOUKN3WD.js.map +0 -1
  742. package/dist/hubspot-HL6WGC4G.js +0 -780
  743. package/dist/hubspot-HL6WGC4G.js.map +0 -1
  744. package/dist/ideas-NK3KQHAK.js +0 -43
  745. package/dist/images-2XS3JT7E.js +0 -92
  746. package/dist/ingest-DHXWZZX4.js +0 -24
  747. package/dist/ingest-FGTJRCWK.js +0 -108
  748. package/dist/ingest-FGTJRCWK.js.map +0 -1
  749. package/dist/insights-M3CYB22P.js +0 -437
  750. package/dist/insights-M3CYB22P.js.map +0 -1
  751. package/dist/insights-XCT3ONC7.js +0 -130
  752. package/dist/insights-XCT3ONC7.js.map +0 -1
  753. package/dist/inspect-53GGYRC4.js +0 -190
  754. package/dist/inspect-53GGYRC4.js.map +0 -1
  755. package/dist/instant-experiences-HT3HB4QZ.js +0 -258
  756. package/dist/instant-experiences-HT3HB4QZ.js.map +0 -1
  757. package/dist/intent-NSHW7EJT.js +0 -95
  758. package/dist/keyword-gap-ITTWKBWZ.js +0 -130
  759. package/dist/keyword-metrics-LWPE3HHW.js +0 -198
  760. package/dist/keyword-metrics-LWPE3HHW.js.map +0 -1
  761. package/dist/keywords-for-site-5K25VJ35.js +0 -129
  762. package/dist/keywords-for-site-5K25VJ35.js.map +0 -1
  763. package/dist/landing-QONUUP3C.js +0 -28
  764. package/dist/languages-MEFQQBJ2.js +0 -40
  765. package/dist/leads-FSSISJGL.js +0 -113
  766. package/dist/leads-FSSISJGL.js.map +0 -1
  767. package/dist/leads-SZOGCQFK.js +0 -538
  768. package/dist/leads-SZOGCQFK.js.map +0 -1
  769. package/dist/learn-FWWJWBDN.js +0 -205
  770. package/dist/learn-FWWJWBDN.js.map +0 -1
  771. package/dist/line-item-writes-A3UQ44NG.js +0 -209
  772. package/dist/line-item-writes-A3UQ44NG.js.map +0 -1
  773. package/dist/line-items-OH426JGT.js +0 -107
  774. package/dist/link-67E4NVEX.js +0 -65
  775. package/dist/link-67E4NVEX.js.map +0 -1
  776. package/dist/linkedin-CT2OSQ2I.js +0 -1314
  777. package/dist/linkedin-CT2OSQ2I.js.map +0 -1
  778. package/dist/linkedin-person-OSNLPLJJ.js +0 -137
  779. package/dist/linkedin-person-OSNLPLJJ.js.map +0 -1
  780. package/dist/list-J4OUXAKN.js +0 -65
  781. package/dist/list-J4OUXAKN.js.map +0 -1
  782. package/dist/list-L2OQK4W3.js +0 -304
  783. package/dist/list-L2OQK4W3.js.map +0 -1
  784. package/dist/list-LHMDAA2D.js +0 -152
  785. package/dist/list-LHMDAA2D.js.map +0 -1
  786. package/dist/locations-RLWAS6AC.js +0 -40
  787. package/dist/locations-UKBOT6SB.js +0 -67
  788. package/dist/locations-UKBOT6SB.js.map +0 -1
  789. package/dist/log-4EIV54V4.js +0 -93
  790. package/dist/log-4EIV54V4.js.map +0 -1
  791. package/dist/lookup-ZJIP2M4X.js +0 -22
  792. package/dist/make-MFU3CSN7.js +0 -1368
  793. package/dist/make-MFU3CSN7.js.map +0 -1
  794. package/dist/map-VWWWMQLK.js +0 -434
  795. package/dist/map-VWWWMQLK.js.map +0 -1
  796. package/dist/mcp-EKLO2VD7.js +0 -715
  797. package/dist/mcp-EKLO2VD7.js.map +0 -1
  798. package/dist/media-ZWN7E777.js +0 -18
  799. package/dist/media-sources-7L622UTF.js +0 -35
  800. package/dist/members-QK5M5NCJ.js +0 -45
  801. package/dist/members-QK5M5NCJ.js.map +0 -1
  802. package/dist/meta-EHKXH257.js +0 -122
  803. package/dist/metrics-K6FDCMK7.js +0 -152
  804. package/dist/normalize-WI4OGKH5.js +0 -142
  805. package/dist/normalize-WI4OGKH5.js.map +0 -1
  806. package/dist/options-FKJ2QXI6.js +0 -123
  807. package/dist/options-FKJ2QXI6.js.map +0 -1
  808. package/dist/organization-7A7MPUDG.js +0 -947
  809. package/dist/organization-7A7MPUDG.js.map +0 -1
  810. package/dist/page-photos-HWKQOSCU.js +0 -116
  811. package/dist/page-photos-HWKQOSCU.js.map +0 -1
  812. package/dist/performance-K4VB6L6Z.js +0 -25
  813. package/dist/performance-LHAL53YO.js +0 -5539
  814. package/dist/performance-LHAL53YO.js.map +0 -1
  815. package/dist/pixels-Z7ZGXAGB.js +0 -60
  816. package/dist/pixels-Z7ZGXAGB.js.map +0 -1
  817. package/dist/plan-TVQSEKYL.js +0 -207
  818. package/dist/plan-TVQSEKYL.js.map +0 -1
  819. package/dist/preview-CWRGDFCP.js +0 -216
  820. package/dist/preview-CWRGDFCP.js.map +0 -1
  821. package/dist/promoted-tweet-writes-V4ZVJOJU.js +0 -181
  822. package/dist/promoted-tweet-writes-V4ZVJOJU.js.map +0 -1
  823. package/dist/promoted-tweets-KPG4IUVD.js +0 -119
  824. package/dist/publish-Y465CVUD.js +0 -342
  825. package/dist/publish-Y465CVUD.js.map +0 -1
  826. package/dist/query-QM7MBQD7.js +0 -62
  827. package/dist/questionnaire-LEZJLMAV.js +0 -93
  828. package/dist/questionnaire-LEZJLMAV.js.map +0 -1
  829. package/dist/reddit-Z7DOVIGR.js +0 -27
  830. package/dist/refresh-A6TW2Z2F.js +0 -95
  831. package/dist/refresh-A6TW2Z2F.js.map +0 -1
  832. package/dist/release-UFESJ4TM.js +0 -61
  833. package/dist/release-UFESJ4TM.js.map +0 -1
  834. package/dist/relevant-pages-VOICMQ7U.js +0 -99
  835. package/dist/remove-YONNYA4G.js +0 -51
  836. package/dist/remove-YONNYA4G.js.map +0 -1
  837. package/dist/reopen-FYJU2IPO.js +0 -64
  838. package/dist/reopen-FYJU2IPO.js.map +0 -1
  839. package/dist/rerun-B5SBG6ZE.js +0 -93
  840. package/dist/rerun-B5SBG6ZE.js.map +0 -1
  841. package/dist/research-HW4EVOZU.js +0 -72
  842. package/dist/research-OV53DIBX.js +0 -263
  843. package/dist/research-OV53DIBX.js.map +0 -1
  844. package/dist/reset-R4SIQXFH.js +0 -55
  845. package/dist/reset-R4SIQXFH.js.map +0 -1
  846. package/dist/reset-X6ODAKYH.js +0 -55
  847. package/dist/reset-X6ODAKYH.js.map +0 -1
  848. package/dist/resolve-DNRJCLCR.js +0 -122
  849. package/dist/resolve-DNRJCLCR.js.map +0 -1
  850. package/dist/retry-D5MKBHUB.js +0 -63
  851. package/dist/retry-D5MKBHUB.js.map +0 -1
  852. package/dist/retry-DVFLE7JY.js +0 -61
  853. package/dist/retry-DVFLE7JY.js.map +0 -1
  854. package/dist/revenue-QGI6XWSK.js +0 -89
  855. package/dist/revenue-QGI6XWSK.js.map +0 -1
  856. package/dist/rule-writes-S3RN47OG.js +0 -523
  857. package/dist/rule-writes-S3RN47OG.js.map +0 -1
  858. package/dist/rules-KTJ2ZZ62.js +0 -217
  859. package/dist/rules-TR6BAC23.js +0 -97
  860. package/dist/rules-TR6BAC23.js.map +0 -1
  861. package/dist/rules-add-T5ZO5RLR.js +0 -463
  862. package/dist/rules-add-T5ZO5RLR.js.map +0 -1
  863. package/dist/run-WZ5IXWA4.js +0 -67
  864. package/dist/run-WZ5IXWA4.js.map +0 -1
  865. package/dist/run-YRR3KOUU.js +0 -68
  866. package/dist/scaffold-ad-DNUCGCIH.js +0 -1514
  867. package/dist/scaffold-ad-DNUCGCIH.js.map +0 -1
  868. package/dist/scaffold-static-ad-VR65EZAG.js +0 -1013
  869. package/dist/scaffold-static-ad-VR65EZAG.js.map +0 -1
  870. package/dist/scaffold-video-JLMKCCWE.js +0 -886
  871. package/dist/scaffold-video-JLMKCCWE.js.map +0 -1
  872. package/dist/schedule-VRHCVBZA.js +0 -62
  873. package/dist/schedule-VRHCVBZA.js.map +0 -1
  874. package/dist/scheduled-agents-DG7FTCUZ.js +0 -55
  875. package/dist/schema-WZKDWF5N.js +0 -133
  876. package/dist/schema-WZKDWF5N.js.map +0 -1
  877. package/dist/search-MN66QIKJ.js +0 -175
  878. package/dist/search-MN66QIKJ.js.map +0 -1
  879. package/dist/select-IPSM2BF2.js +0 -104
  880. package/dist/select-IPSM2BF2.js.map +0 -1
  881. package/dist/sends-6FI7WELX.js +0 -348
  882. package/dist/sends-6FI7WELX.js.map +0 -1
  883. package/dist/set-prompt-N6BD3DME.js +0 -196
  884. package/dist/set-prompt-N6BD3DME.js.map +0 -1
  885. package/dist/setup-links-GTA2AROS.js +0 -142
  886. package/dist/setup-links-GTA2AROS.js.map +0 -1
  887. package/dist/shopify-S4TG6WJH.js +0 -3956
  888. package/dist/shopify-S4TG6WJH.js.map +0 -1
  889. package/dist/site-NY622E3H.js +0 -178
  890. package/dist/site-NY622E3H.js.map +0 -1
  891. package/dist/sources-4F2XO7Z6.js +0 -455
  892. package/dist/sources-4F2XO7Z6.js.map +0 -1
  893. package/dist/sources-562ITR77.js +0 -30
  894. package/dist/stale-JKM6MXJF.js +0 -74
  895. package/dist/stale-JKM6MXJF.js.map +0 -1
  896. package/dist/status-AUWMUDA4.js +0 -63
  897. package/dist/status-AUWMUDA4.js.map +0 -1
  898. package/dist/studies-ZOEUY6YP.js +0 -250
  899. package/dist/study-writes-DTGMCNFP.js +0 -468
  900. package/dist/study-writes-DTGMCNFP.js.map +0 -1
  901. package/dist/sync-76MCGHX4.js +0 -55
  902. package/dist/sync-76MCGHX4.js.map +0 -1
  903. package/dist/sync-definition-NJPT6ABG.js +0 -67
  904. package/dist/tags-5KBOJJ5R.js +0 -26
  905. package/dist/tags-CSMLTHTU.js +0 -21
  906. package/dist/tags-CSMLTHTU.js.map +0 -1
  907. package/dist/tags-IFRZYM3G.js +0 -21
  908. package/dist/tags-IFRZYM3G.js.map +0 -1
  909. package/dist/tags-S44ADJ75.js +0 -21
  910. package/dist/tags-S44ADJ75.js.map +0 -1
  911. package/dist/tags-WR7IY3OT.js +0 -225
  912. package/dist/tags-WR7IY3OT.js.map +0 -1
  913. package/dist/targeting-VBQY3HUN.js +0 -760
  914. package/dist/targeting-VBQY3HUN.js.map +0 -1
  915. package/dist/targeting-criteria-FJWNK53T.js +0 -113
  916. package/dist/targets-2EHMMXD4.js +0 -104
  917. package/dist/targets-2EHMMXD4.js.map +0 -1
  918. package/dist/testimonials-WAPFIGFJ.js +0 -32
  919. package/dist/themes-B4LCQUXB.js +0 -95
  920. package/dist/top-companies-DJ2XQKMW.js +0 -109
  921. package/dist/top-companies-DJ2XQKMW.js.map +0 -1
  922. package/dist/transcript-J3LGOHCM.js +0 -163
  923. package/dist/transcript-J3LGOHCM.js.map +0 -1
  924. package/dist/translate-6RXO4C6Z.js +0 -607
  925. package/dist/translate-6RXO4C6Z.js.map +0 -1
  926. package/dist/triggers-CYXPNHQB.js +0 -142
  927. package/dist/triggers-CYXPNHQB.js.map +0 -1
  928. package/dist/unlink-5FJI7XZB.js +0 -68
  929. package/dist/unlink-5FJI7XZB.js.map +0 -1
  930. package/dist/unstage-54ZE2SZK.js +0 -86
  931. package/dist/unstage-54ZE2SZK.js.map +0 -1
  932. package/dist/unstage-MDSSPUKV.js +0 -95
  933. package/dist/unstage-MDSSPUKV.js.map +0 -1
  934. package/dist/update-BVBFNFMO.js +0 -99
  935. package/dist/update-BVBFNFMO.js.map +0 -1
  936. package/dist/update-GV3T7ZRC.js +0 -190
  937. package/dist/update-GV3T7ZRC.js.map +0 -1
  938. package/dist/update-PUQWUGPJ.js +0 -64
  939. package/dist/update-PUQWUGPJ.js.map +0 -1
  940. package/dist/update-YQBK6C3L.js +0 -153
  941. package/dist/update-YQBK6C3L.js.map +0 -1
  942. package/dist/upload-PXT5JAEV.js +0 -127
  943. package/dist/upload-PXT5JAEV.js.map +0 -1
  944. package/dist/url-options-IHL4OU4C.js +0 -130
  945. package/dist/url-options-IHL4OU4C.js.map +0 -1
  946. package/dist/url-params-IYUI6SFJ.js +0 -99
  947. package/dist/url-params-IYUI6SFJ.js.map +0 -1
  948. package/dist/validate-AD7F7LQ5.js +0 -120
  949. package/dist/validate-AD7F7LQ5.js.map +0 -1
  950. package/dist/videos-ZJCTODEB.js +0 -41
  951. package/dist/viewer-check-GWZNGWCO.js +0 -81
  952. package/dist/web-76CWAZNW.js +0 -141
  953. package/dist/web-76CWAZNW.js.map +0 -1
  954. package/dist/winning-ads-W7GTXTX7.js +0 -86
  955. package/dist/write-commands-K6M3RTVK.js +0 -1170
  956. package/dist/write-commands-K6M3RTVK.js.map +0 -1
  957. package/dist/write-commands-VPU53DLB.js +0 -1498
  958. package/dist/write-commands-VPU53DLB.js.map +0 -1
  959. package/dist/x-V4NNNWRU.js +0 -47
  960. /package/dist/{account-assets-O7IA37RE.js.map → account-assets-J5Z4URLQ.js.map} +0 -0
  961. /package/dist/{account-reads-SNOWDHHF.js.map → account-reads-2MSUVG46.js.map} +0 -0
  962. /package/dist/{actions-4JYHXRFH.js.map → actions-D7OWCP36.js.map} +0 -0
  963. /package/dist/{ads-LXWXOQHX.js.map → ads-HLUJB5SQ.js.map} +0 -0
  964. /package/dist/{ads-KBE5JXCH.js.map → ads-MAOI7S6V.js.map} +0 -0
  965. /package/dist/{adsets-YWBJFPAZ.js.map → adsets-QRKICEFD.js.map} +0 -0
  966. /package/dist/{asset-writes-72DEVXGO.js.map → asset-writes-JLVUAVUZ.js.map} +0 -0
  967. /package/dist/{audiences-QAH42HIM.js.map → audiences-CDDI5HR5.js.map} +0 -0
  968. /package/dist/{avatars-N6W6HUPP.js.map → avatars-WZ2JDMHH.js.map} +0 -0
  969. /package/dist/{brand-ITWQVZD2.js.map → brand-IZTTBZII.js.map} +0 -0
  970. /package/dist/{campaigns-5BIDXYSR.js.map → campaigns-4Y3JQC2U.js.map} +0 -0
  971. /package/dist/{campaigns-XZOQ2VTK.js.map → campaigns-HES5MDUG.js.map} +0 -0
  972. /package/dist/{canvas-SL3RMOY5.js.map → canvas-IQ753Q2O.js.map} +0 -0
  973. /package/dist/{changes-36C754R4.js.map → changes-VWKTM27U.js.map} +0 -0
  974. /package/dist/{chatgpt-3WFOPURY.js.map → chatgpt-OPOD2WHB.js.map} +0 -0
  975. /package/dist/{chunk-WF25CCLD.js.map → chunk-2GYCWRF3.js.map} +0 -0
  976. /package/dist/{chunk-HJKYTNAZ.js.map → chunk-2L7F7KR4.js.map} +0 -0
  977. /package/dist/{chunk-4GAEB6NK.js.map → chunk-44ZRCSR7.js.map} +0 -0
  978. /package/dist/{chunk-2TOIY2WN.js.map → chunk-46YLDIQG.js.map} +0 -0
  979. /package/dist/{chunk-DQ54POZN.js.map → chunk-4EDWXZ3I.js.map} +0 -0
  980. /package/dist/{chunk-SIXU5PDF.js.map → chunk-4FFBGR5L.js.map} +0 -0
  981. /package/dist/{chunk-XGPU2VDU.js.map → chunk-4UQRXKYJ.js.map} +0 -0
  982. /package/dist/{chunk-JSNMKTFM.js.map → chunk-4UZUUSVL.js.map} +0 -0
  983. /package/dist/{chunk-Q6JMMBSQ.js.map → chunk-4XHCEYHI.js.map} +0 -0
  984. /package/dist/{chunk-ALMYGH5U.js.map → chunk-4Z6PVR3M.js.map} +0 -0
  985. /package/dist/{chunk-K4FLWDEX.js.map → chunk-5Y5FZV2W.js.map} +0 -0
  986. /package/dist/{chunk-INUU3752.js.map → chunk-6HJXLGDV.js.map} +0 -0
  987. /package/dist/{chunk-XE6N4SZI.js.map → chunk-6S5CWGDA.js.map} +0 -0
  988. /package/dist/{chunk-SXMK5AEJ.js.map → chunk-6VYROVWO.js.map} +0 -0
  989. /package/dist/{chunk-TVAIOC77.js.map → chunk-7BUIOP36.js.map} +0 -0
  990. /package/dist/{chunk-TTLD66NI.js.map → chunk-AQRXXC6E.js.map} +0 -0
  991. /package/dist/{chunk-W4D7C74B.js.map → chunk-ARBXT73X.js.map} +0 -0
  992. /package/dist/{chunk-LAC6YHHX.js.map → chunk-BEZHQIEI.js.map} +0 -0
  993. /package/dist/{chunk-J3UWMBOP.js.map → chunk-BFURWHVR.js.map} +0 -0
  994. /package/dist/{chunk-KBRJSPIM.js.map → chunk-DSCEXBDR.js.map} +0 -0
  995. /package/dist/{chunk-MI4HXE7M.js.map → chunk-FLWDFPXE.js.map} +0 -0
  996. /package/dist/{chunk-GACSA5A6.js.map → chunk-FRNBRN2C.js.map} +0 -0
  997. /package/dist/{chunk-FKQK22IX.js.map → chunk-GE3VT3CA.js.map} +0 -0
  998. /package/dist/{chunk-FLK6QHOY.js.map → chunk-HGBJQGO5.js.map} +0 -0
  999. /package/dist/{chunk-MGYC2IRC.js.map → chunk-I7AYMJZA.js.map} +0 -0
  1000. /package/dist/{chunk-PFTYKINE.js.map → chunk-IRM273C7.js.map} +0 -0
  1001. /package/dist/{chunk-WR3FR3K3.js.map → chunk-IWKD56AY.js.map} +0 -0
  1002. /package/dist/{chunk-Y7XSDJEA.js.map → chunk-JLAQWMVF.js.map} +0 -0
  1003. /package/dist/{chunk-XUJZO7MZ.js.map → chunk-K6NULQN7.js.map} +0 -0
  1004. /package/dist/{chunk-JI77AKT6.js.map → chunk-L2BRAC2J.js.map} +0 -0
  1005. /package/dist/{chunk-Y67LUJBE.js.map → chunk-LGMI4LSY.js.map} +0 -0
  1006. /package/dist/{chunk-OJGYYH6K.js.map → chunk-NB2FU6EZ.js.map} +0 -0
  1007. /package/dist/{chunk-TVTSA4EN.js.map → chunk-NWF2LRKO.js.map} +0 -0
  1008. /package/dist/{chunk-WQPUX3BA.js.map → chunk-OG47L5GG.js.map} +0 -0
  1009. /package/dist/{chunk-RAQHUMKS.js.map → chunk-OR6KVLI5.js.map} +0 -0
  1010. /package/dist/{chunk-OBJCNGZL.js.map → chunk-QDQZ62FL.js.map} +0 -0
  1011. /package/dist/{chunk-4D46PS6J.js.map → chunk-QIOFOD4K.js.map} +0 -0
  1012. /package/dist/{chunk-6JCX3YLM.js.map → chunk-R2SYF5FC.js.map} +0 -0
  1013. /package/dist/{chunk-JNURZHZJ.js.map → chunk-RTH2I55B.js.map} +0 -0
  1014. /package/dist/{chunk-FFFJBNHA.js.map → chunk-S6VFDNSQ.js.map} +0 -0
  1015. /package/dist/{chunk-ZNRGH4NS.js.map → chunk-SG2TDQEE.js.map} +0 -0
  1016. /package/dist/{chunk-CKQTJ2LV.js.map → chunk-T3P6O2VU.js.map} +0 -0
  1017. /package/dist/{chunk-V5NHJU3M.js.map → chunk-TXDE2QJ3.js.map} +0 -0
  1018. /package/dist/{chunk-C6CBBZBO.js.map → chunk-UDIEKCIR.js.map} +0 -0
  1019. /package/dist/{chunk-SA22KXWT.js.map → chunk-USCADMM3.js.map} +0 -0
  1020. /package/dist/{chunk-MJ7RNDD4.js.map → chunk-UUGISMNE.js.map} +0 -0
  1021. /package/dist/{chunk-IQHO2ABF.js.map → chunk-VDPOCAQ2.js.map} +0 -0
  1022. /package/dist/{chunk-AQKRSEBQ.js.map → chunk-VEJ3QX6M.js.map} +0 -0
  1023. /package/dist/{chunk-XDNJC62G.js.map → chunk-VFJB7OG6.js.map} +0 -0
  1024. /package/dist/{chunk-DL2UJNJ7.js.map → chunk-VRIPVLE7.js.map} +0 -0
  1025. /package/dist/{chunk-5XTGG4PV.js.map → chunk-WFY7KSHB.js.map} +0 -0
  1026. /package/dist/{chunk-D3KLDIPQ.js.map → chunk-WLESMH4J.js.map} +0 -0
  1027. /package/dist/{chunk-PLBITHV6.js.map → chunk-XHQYFNNK.js.map} +0 -0
  1028. /package/dist/{chunk-OLBLXJNI.js.map → chunk-YILZR3XI.js.map} +0 -0
  1029. /package/dist/{chunk-JDR3HUEL.js.map → chunk-YJFLXOH4.js.map} +0 -0
  1030. /package/dist/{chunk-BL6RTOK3.js.map → chunk-YWHZYR6S.js.map} +0 -0
  1031. /package/dist/{connect-HPQ32KGV.js.map → connect-3YY7MF3I.js.map} +0 -0
  1032. /package/dist/{conversion-upload-command-KTYAY7IG.js.map → conversion-upload-command-7RSZ5ZQU.js.map} +0 -0
  1033. /package/dist/{creatives-RNOL4F4E.js.map → creatives-2DR3QHJW.js.map} +0 -0
  1034. /package/dist/{creatives-JPKA2RHU.js.map → creatives-BB6S2OF6.js.map} +0 -0
  1035. /package/dist/{currency-R4ORE2U3.js.map → currency-X7Y6TSLF.js.map} +0 -0
  1036. /package/dist/{custom-conversions-5HJBB5XL.js.map → custom-conversions-HAGG72LF.js.map} +0 -0
  1037. /package/dist/{customers-OFZTEXST.js.map → customers-663K2OCP.js.map} +0 -0
  1038. /package/dist/{discover-GSJRZUOC.js.map → discover-6DORQWXY.js.map} +0 -0
  1039. /package/dist/{draft-WYDMLNYA.js.map → draft-R6EKORNS.js.map} +0 -0
  1040. /package/dist/{fit-53DGYRFD.js.map → fit-BEFCY2B4.js.map} +0 -0
  1041. /package/dist/{fonts-LFMBUT4R.js.map → fonts-C6XN5667.js.map} +0 -0
  1042. /package/dist/{forecast-4AG5F7YC.js.map → forecast-BTPIXEQ5.js.map} +0 -0
  1043. /package/dist/{google-NAA4BASO.js.map → google-M6BJ22UL.js.map} +0 -0
  1044. /package/dist/{ideas-NK3KQHAK.js.map → ideas-M66FU45H.js.map} +0 -0
  1045. /package/dist/{images-2XS3JT7E.js.map → images-MM5OPUKV.js.map} +0 -0
  1046. /package/dist/{ingest-DHXWZZX4.js.map → ingest-KMLYCFF4.js.map} +0 -0
  1047. /package/dist/{intent-NSHW7EJT.js.map → intent-YCQCUCV3.js.map} +0 -0
  1048. /package/dist/{keyword-gap-ITTWKBWZ.js.map → keyword-gap-PUSF7EKY.js.map} +0 -0
  1049. /package/dist/{landing-QONUUP3C.js.map → landing-OZU5RRFV.js.map} +0 -0
  1050. /package/dist/{languages-MEFQQBJ2.js.map → languages-SLFV73GE.js.map} +0 -0
  1051. /package/dist/{line-items-OH426JGT.js.map → line-items-NJMEPEF5.js.map} +0 -0
  1052. /package/dist/{locations-RLWAS6AC.js.map → locations-T2OMP6QN.js.map} +0 -0
  1053. /package/dist/{lookup-ZJIP2M4X.js.map → lookup-S5VG7AWH.js.map} +0 -0
  1054. /package/dist/{media-ZWN7E777.js.map → media-P4T4ZBNS.js.map} +0 -0
  1055. /package/dist/{media-sources-7L622UTF.js.map → media-sources-EQI3U4TC.js.map} +0 -0
  1056. /package/dist/{meta-EHKXH257.js.map → meta-IPLWNYC7.js.map} +0 -0
  1057. /package/dist/{metrics-K6FDCMK7.js.map → metrics-4YVJHYRI.js.map} +0 -0
  1058. /package/dist/{performance-K4VB6L6Z.js.map → performance-NIF3CESZ.js.map} +0 -0
  1059. /package/dist/{promoted-tweets-KPG4IUVD.js.map → promoted-tweets-RJT53DRM.js.map} +0 -0
  1060. /package/dist/{query-QM7MBQD7.js.map → query-XZMDGRO5.js.map} +0 -0
  1061. /package/dist/{reddit-Z7DOVIGR.js.map → reddit-JIHMAKAQ.js.map} +0 -0
  1062. /package/dist/{relevant-pages-VOICMQ7U.js.map → relevant-pages-FS7GBVXK.js.map} +0 -0
  1063. /package/dist/{research-HW4EVOZU.js.map → research-PNBACCCP.js.map} +0 -0
  1064. /package/dist/{rules-KTJ2ZZ62.js.map → rules-ZVS2MWED.js.map} +0 -0
  1065. /package/dist/{run-YRR3KOUU.js.map → run-QCNRR3CA.js.map} +0 -0
  1066. /package/dist/{scheduled-agents-DG7FTCUZ.js.map → scheduled-agents-OXYAVSIE.js.map} +0 -0
  1067. /package/dist/{sources-562ITR77.js.map → sources-FLUGHSVP.js.map} +0 -0
  1068. /package/dist/{studies-ZOEUY6YP.js.map → studies-EPO2AM4M.js.map} +0 -0
  1069. /package/dist/{sync-definition-NJPT6ABG.js.map → sync-definition-OGQ5XTQE.js.map} +0 -0
  1070. /package/dist/{tags-5KBOJJ5R.js.map → tags-CZTRQNXV.js.map} +0 -0
  1071. /package/dist/{targeting-criteria-FJWNK53T.js.map → targeting-criteria-AQYXVSGN.js.map} +0 -0
  1072. /package/dist/{testimonials-WAPFIGFJ.js.map → testimonials-G3OCNPBY.js.map} +0 -0
  1073. /package/dist/{themes-B4LCQUXB.js.map → themes-FEVYZZCW.js.map} +0 -0
  1074. /package/dist/{videos-ZJCTODEB.js.map → videos-36AXDUGZ.js.map} +0 -0
  1075. /package/dist/{viewer-check-GWZNGWCO.js.map → viewer-check-6HL4OUQY.js.map} +0 -0
  1076. /package/dist/{winning-ads-W7GTXTX7.js.map → winning-ads-GMM5W2O4.js.map} +0 -0
  1077. /package/dist/{x-V4NNNWRU.js.map → x-HGFAL3NY.js.map} +0 -0
@@ -0,0 +1,2984 @@
1
+ import {
2
+ INGEST_CLICK_ID_PARAMS,
3
+ templateMentions
4
+ } from "./chunk-NKQWDEB7.js";
5
+ import {
6
+ MATCH_COOKIES,
7
+ isSha256Hex,
8
+ normalizeIdentity
9
+ } from "./chunk-G4FG5EQO.js";
10
+
11
+ // ../api/src/analytics/adParams.ts
12
+ var AD_PARAM_ROLES = [
13
+ "campaign_id",
14
+ "campaign_name",
15
+ "adgroup_id",
16
+ "adgroup_name",
17
+ "ad_id",
18
+ "ad_name",
19
+ "keyword",
20
+ "match_type",
21
+ "search_query",
22
+ "audience",
23
+ "placement",
24
+ "network",
25
+ "site_source",
26
+ "device",
27
+ "product_id",
28
+ "account_name",
29
+ "other",
30
+ "ignore"
31
+ ];
32
+ var AD_PARAM_ROLE_SPECS = {
33
+ campaign_id: { role: "campaign_id", label: "Campaign ID", description: "The top level of this account's structure." },
34
+ campaign_name: { role: "campaign_name", label: "Campaign name", description: "The campaign's name." },
35
+ adgroup_id: { role: "adgroup_id", label: "Ad group ID", description: "The targeting container inside a campaign." },
36
+ adgroup_name: { role: "adgroup_name", label: "Ad group name", description: "The ad group's name." },
37
+ ad_id: { role: "ad_id", label: "Ad ID", description: "The individual ad that was clicked." },
38
+ ad_name: { role: "ad_name", label: "Ad name", description: "The individual ad's name." },
39
+ keyword: {
40
+ role: "keyword",
41
+ label: "Keyword",
42
+ description: "The keyword that matched, as it is written in the account \u2014 not what the visitor typed."
43
+ },
44
+ match_type: {
45
+ role: "match_type",
46
+ label: "Match type",
47
+ description: "How loosely the keyword matched: broad, phrase or exact."
48
+ },
49
+ search_query: { role: "search_query", label: "Search query", description: "What the visitor actually typed." },
50
+ audience: {
51
+ role: "audience",
52
+ label: "Audience",
53
+ description: "The remarketing list or interest segment the visitor was in."
54
+ },
55
+ placement: {
56
+ role: "placement",
57
+ label: "Placement",
58
+ description: "Where the ad appeared \u2014 a feed, a story, a site on the display network."
59
+ },
60
+ network: {
61
+ role: "network",
62
+ label: "Network",
63
+ description: "Which network served it: search, a search partner, display, or a video surface."
64
+ },
65
+ site_source: {
66
+ role: "site_source",
67
+ label: "App",
68
+ description: "Which app the click came from, on platforms that span several."
69
+ },
70
+ device: { role: "device", label: "Device", description: "Mobile, tablet or desktop, as the platform saw it." },
71
+ product_id: { role: "product_id", label: "Product ID", description: "The shopping item that was clicked." },
72
+ account_name: {
73
+ role: "account_name",
74
+ label: "Account name",
75
+ description: "Which ad account paid for the click, where an agency runs several."
76
+ },
77
+ other: {
78
+ role: "other",
79
+ label: "Something else",
80
+ description: "Keep the values and let me filter by this name, without saying what it means."
81
+ },
82
+ ignore: {
83
+ role: "ignore",
84
+ label: "Ignore it",
85
+ description: "Not campaign information. Baker stops storing it and stops asking about it."
86
+ }
87
+ };
88
+ var RESERVED_PARAM_NAMES = [
89
+ "utm_source",
90
+ "utm_medium",
91
+ "utm_campaign",
92
+ "utm_content",
93
+ "utm_term",
94
+ "utm_id"
95
+ ];
96
+ var AD_PLATFORMS = [
97
+ "google",
98
+ "meta",
99
+ "microsoft",
100
+ "linkedin",
101
+ "tiktok",
102
+ "reddit",
103
+ "pinterest",
104
+ "snapchat",
105
+ "chatgpt"
106
+ ];
107
+ function isAdPlatform(value) {
108
+ return AD_PLATFORMS.includes(value);
109
+ }
110
+ var GOOGLE = {
111
+ platform: "google",
112
+ label: "Google Ads",
113
+ docs: "https://developers.google.com/google-ads/api/docs/reporting/valuetrack-mapping",
114
+ dimensions: [
115
+ { role: "campaign_id", macro: "{campaignid}", names: ["campaign_id", "campaignid", "gad_campaignid"] },
116
+ { role: "adgroup_id", macro: "{adgroupid}", names: ["adgroup_id", "adgroupid"] },
117
+ {
118
+ role: "ad_id",
119
+ macro: "{creative}",
120
+ names: ["ad_id", "creative", "adid"],
121
+ note: "ValueTrack calls the ad id {creative}."
122
+ },
123
+ { role: "keyword", macro: "{keyword}", names: ["keyword", "kw"] },
124
+ {
125
+ role: "match_type",
126
+ macro: "{matchtype}",
127
+ names: ["match_type", "matchtype", "mt"],
128
+ note: "b broad, p phrase, e exact, a AI Max."
129
+ },
130
+ {
131
+ role: "network",
132
+ macro: "{network}",
133
+ names: ["network", "gad_source"],
134
+ note: "g search, s partner, d display, ytv YouTube."
135
+ },
136
+ { role: "device", macro: "{device}", names: ["device"] },
137
+ { role: "placement", macro: "{placement}", names: ["placement"] },
138
+ { role: "product_id", macro: "{product_id}", names: ["product_id"], note: "Shopping campaigns only." }
139
+ ]
140
+ };
141
+ var META = {
142
+ platform: "meta",
143
+ label: "Meta Ads",
144
+ docs: "https://www.facebook.com/business/help/2360940870872492",
145
+ dimensions: [
146
+ { role: "campaign_id", macro: "{{campaign.id}}", names: ["campaign_id", "campaignid"] },
147
+ { role: "campaign_name", macro: "{{campaign.name}}", names: ["campaign_name", "campaignname"] },
148
+ {
149
+ role: "adgroup_id",
150
+ macro: "{{adset.id}}",
151
+ names: ["adset_id", "adgroup_id", "adsetid"],
152
+ note: "Meta calls an ad group an ad set."
153
+ },
154
+ { role: "adgroup_name", macro: "{{adset.name}}", names: ["adset_name", "adgroup_name"] },
155
+ { role: "ad_id", macro: "{{ad.id}}", names: ["ad_id", "adid"] },
156
+ { role: "ad_name", macro: "{{ad.name}}", names: ["ad_name", "adname"] },
157
+ {
158
+ role: "placement",
159
+ macro: "{{placement}}",
160
+ names: ["placement", "placement_id"],
161
+ note: "feed, story, reels and the rest."
162
+ },
163
+ {
164
+ role: "site_source",
165
+ macro: "{{site_source_name}}",
166
+ names: ["site_source", "site_source_name"],
167
+ note: "fb, ig, an or msg."
168
+ }
169
+ ]
170
+ };
171
+ var MICROSOFT = {
172
+ platform: "microsoft",
173
+ label: "Microsoft Advertising",
174
+ docs: "https://learn.microsoft.com/en-us/advertising/guides/url-tracking-upgraded-urls",
175
+ dimensions: [
176
+ { role: "campaign_id", macro: "{CampaignId}", names: ["campaign_id", "campaignid"] },
177
+ { role: "campaign_name", macro: "{Campaign}", names: ["campaign_name", "campaignname"] },
178
+ { role: "adgroup_id", macro: "{AdGroupId}", names: ["adgroup_id", "adgroupid"] },
179
+ { role: "adgroup_name", macro: "{AdGroup}", names: ["adgroup_name", "adgroupname"] },
180
+ { role: "ad_id", macro: "{AdId}", names: ["ad_id", "adid"] },
181
+ { role: "keyword", macro: "{Keyword}", names: ["keyword", "kw"] },
182
+ { role: "match_type", macro: "{MatchType}", names: ["match_type", "matchtype", "mt"] },
183
+ {
184
+ role: "search_query",
185
+ macro: "{QueryString}",
186
+ names: ["search_query", "querystring"],
187
+ note: "What the visitor typed. Google has no equivalent."
188
+ },
189
+ { role: "network", macro: "{Network}", names: ["network"] },
190
+ { role: "device", macro: "{Device}", names: ["device"] }
191
+ ]
192
+ };
193
+ var LINKEDIN = {
194
+ platform: "linkedin",
195
+ label: "LinkedIn Ads",
196
+ docs: "https://learn.microsoft.com/en-us/linkedin/marketing/integrations/ads-reporting/dynamic-utm-tracking",
197
+ dimensions: [
198
+ { role: "account_name", macro: "{{ACCOUNT_NAME}}", names: ["account_name"] },
199
+ {
200
+ role: "campaign_id",
201
+ macro: "{{CAMPAIGN_GROUP_ID}}",
202
+ names: ["campaign_group_id", "campaign_id"],
203
+ note: "LinkedIn's campaign group is the level other platforms call a campaign."
204
+ },
205
+ { role: "campaign_name", macro: "{{CAMPAIGN_GROUP_NAME}}", names: ["campaign_group_name", "campaign_name"] },
206
+ {
207
+ role: "adgroup_id",
208
+ macro: "{{CAMPAIGN_ID}}",
209
+ names: ["adgroup_id"],
210
+ note: "LinkedIn's campaign is the level other platforms call an ad group."
211
+ },
212
+ { role: "adgroup_name", macro: "{{CAMPAIGN_NAME}}", names: ["adgroup_name"] },
213
+ { role: "ad_id", macro: "{{CREATIVE_ID}}", names: ["creative_id", "ad_id"] },
214
+ { role: "ad_name", macro: "{{CREATIVE_NAME}}", names: ["creative_name", "ad_name"] }
215
+ ]
216
+ };
217
+ var TIKTOK = {
218
+ platform: "tiktok",
219
+ label: "TikTok Ads",
220
+ docs: "https://ads.tiktok.com/help/article/track-offsite-web-events-with-utm-parameters",
221
+ dimensions: [
222
+ { role: "campaign_id", macro: "__CAMPAIGN_ID__", names: ["campaign_id", "campaignid"] },
223
+ { role: "campaign_name", macro: "__CAMPAIGN_NAME__", names: ["campaign_name", "campaignname"] },
224
+ {
225
+ role: "adgroup_id",
226
+ macro: "__AID__",
227
+ names: ["adgroup_id", "aid"],
228
+ note: "__AID__ is the ad GROUP id, not the ad id."
229
+ },
230
+ { role: "adgroup_name", macro: "__AID_NAME__", names: ["adgroup_name"] },
231
+ {
232
+ role: "ad_id",
233
+ macro: "__CID__",
234
+ names: ["ad_id", "cid"],
235
+ note: "__CID__ is the creative id, not the campaign id."
236
+ },
237
+ { role: "ad_name", macro: "__CID_NAME__", names: ["ad_name"] },
238
+ { role: "placement", macro: "__PLACEMENT__", names: ["placement"], note: "TikTok or TikTok Pangle." }
239
+ ]
240
+ };
241
+ var REDDIT = {
242
+ platform: "reddit",
243
+ label: "Reddit Ads",
244
+ docs: "https://business.reddithelp.com/s/article/URL-Parameters",
245
+ dimensions: [
246
+ { role: "campaign_id", macro: "{{CAMPAIGN_ID}}", names: ["campaign_id", "campaignid"] },
247
+ { role: "campaign_name", macro: "{{CAMPAIGN_NAME}}", names: ["campaign_name"] },
248
+ { role: "adgroup_id", macro: "{{ADGROUP_ID}}", names: ["adgroup_id", "ad_group_id"] },
249
+ { role: "adgroup_name", macro: "{{ADGROUP_NAME}}", names: ["adgroup_name", "ad_group_name"] },
250
+ { role: "ad_id", macro: "{{AD_ID}}", names: ["ad_id", "adid"] },
251
+ { role: "ad_name", macro: "{{AD_NAME}}", names: ["ad_name"] },
252
+ { role: "device", macro: "{{DEVICE_GROUP}}", names: ["device", "device_group"] }
253
+ ]
254
+ };
255
+ var PINTEREST = {
256
+ platform: "pinterest",
257
+ label: "Pinterest Ads",
258
+ docs: "https://help.pinterest.com/en/business/article/third-party-and-dynamic-tracking",
259
+ dimensions: [
260
+ { role: "campaign_id", macro: "{campaignid}", names: ["campaign_id", "campaignid"] },
261
+ { role: "campaign_name", macro: "{campaign_name}", names: ["campaign_name", "campaignname"] },
262
+ { role: "adgroup_id", macro: "{adgroupid}", names: ["adgroup_id", "adgroupid"] },
263
+ { role: "adgroup_name", macro: "{ad_group_name}", names: ["adgroup_name", "adgroupname"] },
264
+ {
265
+ role: "ad_id",
266
+ macro: "{adid}",
267
+ names: ["ad_id", "adid", "creative_id"],
268
+ note: "The promoted Pin, not the Pin itself."
269
+ },
270
+ { role: "device", macro: "{device}", names: ["device"], note: "c computer, m mobile, t tablet." },
271
+ { role: "product_id", macro: "{product_id}", names: ["product_id"], note: "Shopping campaigns only." }
272
+ ]
273
+ };
274
+ var SNAPCHAT = {
275
+ platform: "snapchat",
276
+ label: "Snapchat Ads",
277
+ docs: "https://businesshelp.snapchat.com/s/article/url-parameters",
278
+ dimensions: [
279
+ { role: "campaign_id", macro: "{{campaign.id}}", names: ["campaign_id", "campaignid"] },
280
+ { role: "campaign_name", macro: "{{campaign.name}}", names: ["campaign_name"] },
281
+ {
282
+ role: "adgroup_id",
283
+ macro: "{{adSet.id}}",
284
+ names: ["adset_id", "adgroup_id"],
285
+ note: "Case-sensitive: {{adset.id}} does not resolve."
286
+ },
287
+ { role: "adgroup_name", macro: "{{adSet.name}}", names: ["adset_name", "adgroup_name"] },
288
+ { role: "ad_id", macro: "{{ad.id}}", names: ["ad_id", "adid"] },
289
+ { role: "ad_name", macro: "{{creative.name}}", names: ["ad_name", "creative_name"] }
290
+ ]
291
+ };
292
+ var CHATGPT = {
293
+ platform: "chatgpt",
294
+ label: "ChatGPT Ads",
295
+ docs: "https://help.openai.com/en/articles/20001212-create-ads-for-chatgpt",
296
+ dimensions: [
297
+ { role: "campaign_id", macro: "{campaign_id}", names: ["campaign_id", "campaignid"] },
298
+ { role: "adgroup_id", macro: "{ad_group_id}", names: ["ad_group_id", "adgroup_id"] },
299
+ { role: "ad_id", macro: "{ad_id}", names: ["ad_id", "adid"] }
300
+ ]
301
+ };
302
+ var AD_PLATFORM_DEFINITIONS = {
303
+ google: GOOGLE,
304
+ meta: META,
305
+ microsoft: MICROSOFT,
306
+ linkedin: LINKEDIN,
307
+ tiktok: TIKTOK,
308
+ reddit: REDDIT,
309
+ pinterest: PINTEREST,
310
+ snapchat: SNAPCHAT,
311
+ chatgpt: CHATGPT
312
+ };
313
+ var ESSENTIAL_ROLES = ["campaign_id", "adgroup_id", "ad_id", "keyword", "match_type"];
314
+ function essentialAdDimensions(platform) {
315
+ return AD_PLATFORM_DEFINITIONS[platform].dimensions.filter((entry) => ESSENTIAL_ROLES.includes(entry.role));
316
+ }
317
+ function normalizeAdParamName(raw) {
318
+ return raw.trim().toLowerCase().slice(0, 64);
319
+ }
320
+ function builtinFor(platform) {
321
+ const mapping = {};
322
+ for (const dimension of AD_PLATFORM_DEFINITIONS[platform].dimensions) {
323
+ for (const name of dimension.names) mapping[normalizeAdParamName(name)] = dimension.role;
324
+ }
325
+ return mapping;
326
+ }
327
+ var BUILTIN = Object.fromEntries(
328
+ AD_PLATFORMS.map((platform) => [platform, builtinFor(platform)])
329
+ );
330
+ function builtinAdParamMapping(platform) {
331
+ return BUILTIN[platform];
332
+ }
333
+ var EVERY_BUILTIN_AD_PARAM_NAME = [
334
+ ...new Set(AD_PLATFORMS.flatMap((platform) => Object.keys(BUILTIN[platform])))
335
+ ].sort();
336
+ var CAPTURED_WITHOUT_ROLE = [
337
+ "account_id",
338
+ "audience",
339
+ "device_model",
340
+ "devicemodel",
341
+ "experiment",
342
+ "extensionid",
343
+ "feed_item_id",
344
+ "feeditemid",
345
+ "loc_interest_ms",
346
+ "loc_physical_ms",
347
+ "location_interest",
348
+ "location_physical",
349
+ "target_id",
350
+ "targetid"
351
+ ].sort();
352
+
353
+ // ../api/src/analytics/eventKey.ts
354
+ var SEP = ":";
355
+ function formEventKey(flowSlug, nodeId, triggerId) {
356
+ return ["form", flowSlug, nodeId, triggerId].join(SEP);
357
+ }
358
+ var STORE_PURCHASE_KEY = "page:purchase";
359
+ var CHECKOUT_RECORD_KEY = "page:purchase_observed";
360
+ function isCheckoutRecordKey(key) {
361
+ return key.trim() === CHECKOUT_RECORD_KEY;
362
+ }
363
+ var CHECKOUT_RECORD_REFUSAL = {
364
+ message: `"${CHECKOUT_RECORD_KEY}" is the shopper's browser reporting a store order that "${STORE_PURCHASE_KEY}" already counts from the store itself, so counting it would count every sale twice.`,
365
+ fix: `Count the store's sales with "${STORE_PURCHASE_KEY}" instead (e.g. --event ${STORE_PURCHASE_KEY} --name 'Store purchase'). If it is already counted, nothing more is needed.`
366
+ };
367
+ function isLandingViewKey(key) {
368
+ return parseEventKey(key)?.family === "view";
369
+ }
370
+ function parseEventKey(key) {
371
+ const cut = key.indexOf(SEP);
372
+ if (cut <= 0) return null;
373
+ const family = key.slice(0, cut);
374
+ const rest = key.slice(cut + 1);
375
+ if (rest === "") return null;
376
+ switch (family) {
377
+ case "form": {
378
+ const [flowSlug, nodeId, ...triggerParts] = rest.split(SEP);
379
+ const triggerId = triggerParts.join(SEP);
380
+ if (!flowSlug || !nodeId || triggerId === "") return null;
381
+ return { family: "form", flowSlug, nodeId, triggerId };
382
+ }
383
+ case "submit":
384
+ return { family: "submit", flowSlug: rest };
385
+ case "page":
386
+ return { family: "page", eventName: rest };
387
+ case "exit":
388
+ return { family: "exit", host: rest };
389
+ case "view":
390
+ return { family: "view", landingId: rest };
391
+ default:
392
+ return null;
393
+ }
394
+ }
395
+
396
+ // ../api/src/analytics/sends.ts
397
+ var SEND_PLATFORMS = [
398
+ "meta",
399
+ "chatgptAds",
400
+ "googleAds",
401
+ "linkedinInsightTag",
402
+ "twitterAds",
403
+ "googleAnalytics"
404
+ ];
405
+ function isSendPlatform(value) {
406
+ return SEND_PLATFORMS.includes(value);
407
+ }
408
+ var SEND_PLATFORM_SPECS = {
409
+ meta: {
410
+ title: "Meta",
411
+ eventMeans: "A Meta event name \u2014 Lead, Purchase, Schedule, or one of your own",
412
+ eventKind: "name",
413
+ credentialFields: ["accessToken"],
414
+ setupHint: "Add the Conversions API access token to the Meta pixel in Tracking"
415
+ },
416
+ chatgptAds: {
417
+ title: "ChatGPT Ads",
418
+ eventMeans: "A ChatGPT Ads event \u2014 lead_created, order_created, or a custom name",
419
+ eventKind: "name",
420
+ credentialFields: ["apiKey"],
421
+ setupHint: "Add the Conversions API key to the ChatGPT Ads pixel in Tracking"
422
+ },
423
+ googleAds: {
424
+ title: "Google Ads",
425
+ eventMeans: "One of the account's conversion actions, picked from its list",
426
+ eventKind: "id",
427
+ credentialFields: ["oauthProviderId"],
428
+ setupHint: "Connect the Google Ads conversion tag to a Google Ads account in Tracking"
429
+ },
430
+ linkedinInsightTag: {
431
+ title: "LinkedIn",
432
+ eventMeans: "The id of a conversion rule in LinkedIn Campaign Manager",
433
+ eventKind: "id",
434
+ credentialFields: ["oauthProviderId"],
435
+ setupHint: "Connect the LinkedIn Insight Tag to a LinkedIn account in Tracking"
436
+ },
437
+ twitterAds: {
438
+ title: "X",
439
+ eventMeans: "The event tag id from X Events Manager, like tw-oka17-abc12",
440
+ eventKind: "id",
441
+ credentialFields: ["oauthProviderId"],
442
+ setupHint: "Connect the X pixel to an X Ads account in Tracking"
443
+ },
444
+ googleAnalytics: {
445
+ title: "Google Analytics",
446
+ eventMeans: "A GA4 event name \u2014 generate_lead, purchase, or one of your own",
447
+ eventKind: "name",
448
+ credentialFields: ["apiSecret"],
449
+ setupHint: "Add the Measurement Protocol API secret to the Google Analytics tag in Tracking"
450
+ }
451
+ };
452
+ var SEND_ORIGINS = ["server", "website", "any"];
453
+ var MAX_SEND_ID = 64;
454
+ var MAX_SEND_EVENT_KEY = 320;
455
+ function sendEventIsTemplated(event) {
456
+ return templateMentions(event).length > 0;
457
+ }
458
+ function sendEventProblem(platform, event) {
459
+ if (!isSendPlatform(platform)) return null;
460
+ if (!sendEventIsTemplated(event)) return null;
461
+ const spec = SEND_PLATFORM_SPECS[platform];
462
+ if (spec.eventKind === "name") return null;
463
+ return `${spec.title} identifies a conversion by an id it issued, so it cannot be written from the event. Paste the id; pass what varies as an extra parameter instead.`;
464
+ }
465
+
466
+ // ../api/src/analytics/peopleSearch.ts
467
+ import { z } from "zod";
468
+ var PEOPLE_SEARCH_MAX_TERMS = 50;
469
+ var VERBATIM_KINDS = [
470
+ "browser",
471
+ "gclid",
472
+ "wbraid",
473
+ "gbraid",
474
+ "dclid",
475
+ "fbclid",
476
+ "ttclid",
477
+ "twclid",
478
+ "li_fat_id",
479
+ "msclkid",
480
+ "rdt_cid",
481
+ "epik",
482
+ "sccid",
483
+ "oppref",
484
+ "fbp",
485
+ "fbc"
486
+ ];
487
+ var PREFIXES = {
488
+ email: "email",
489
+ mail: "email",
490
+ phone: "phone",
491
+ tel: "phone",
492
+ external: "external",
493
+ contact: "external",
494
+ hubspot: "external",
495
+ id: "external",
496
+ deal: "deal",
497
+ digest: "digest",
498
+ hash: "digest",
499
+ browser: "browser",
500
+ anon: "browser",
501
+ ...Object.fromEntries(VERBATIM_KINDS.map((kind) => [kind, kind]))
502
+ };
503
+ var TERM_SEPARATORS = /[\n\r\t,;]+/;
504
+ var EMAIL_SHAPE = /^[^\s@]+@[^\s@]+$/;
505
+ var DIGITS = /^\d+$/;
506
+ var INTERNATIONAL_PHONE = /^(\+|00)[\d\s().-]{7,}$/;
507
+ var META_COOKIE = /^fb\.\d\./;
508
+ function kindOf(value) {
509
+ if (EMAIL_SHAPE.test(value)) return "email";
510
+ if (isSha256Hex(value)) return "digest";
511
+ if (INTERNATIONAL_PHONE.test(value)) return "phone";
512
+ if (DIGITS.test(value)) return "number";
513
+ if (META_COOKIE.test(value)) return "fbc";
514
+ return "key";
515
+ }
516
+ function readTerm(input) {
517
+ const colon = input.indexOf(":");
518
+ if (colon > 0) {
519
+ const kind = PREFIXES[input.slice(0, colon).trim().toLowerCase()];
520
+ const value = input.slice(colon + 1).trim();
521
+ if (kind !== void 0 && value !== "") return { input, kind, value };
522
+ }
523
+ return { input, kind: kindOf(input), value: input };
524
+ }
525
+ function sameness(term) {
526
+ switch (term.kind) {
527
+ case "email":
528
+ case "phone":
529
+ return `${term.kind}|${normalizeIdentity({ kind: term.kind, value: term.value }, 1)?.value ?? term.value}`;
530
+ case "external":
531
+ case "digest":
532
+ return `${term.kind}|${term.value.toLowerCase()}`;
533
+ default:
534
+ return `${term.kind}|${term.value}`;
535
+ }
536
+ }
537
+ function parsePeopleQuery(text) {
538
+ const inputs = (typeof text === "string" ? [text] : text).flatMap((part) => part.split(TERM_SEPARATORS));
539
+ const seen = /* @__PURE__ */ new Set();
540
+ const terms = [];
541
+ for (const raw of inputs) {
542
+ const input = raw.trim();
543
+ if (input === "") continue;
544
+ const term = readTerm(input);
545
+ const identity = sameness(term);
546
+ if (seen.has(identity)) continue;
547
+ seen.add(identity);
548
+ terms.push(term);
549
+ }
550
+ return {
551
+ terms: terms.slice(0, PEOPLE_SEARCH_MAX_TERMS),
552
+ dropped: Math.max(0, terms.length - PEOPLE_SEARCH_MAX_TERMS)
553
+ };
554
+ }
555
+ var personTermInputSchema = z.string().trim().min(1).max(320);
556
+ var peopleSearchInputSchema = z.array(personTermInputSchema).min(1).max(PEOPLE_SEARCH_MAX_TERMS * 4);
557
+ var peopleLookupRequestSchema = z.object({ people: peopleSearchInputSchema });
558
+ var peopleSearchTermSchema = z.object({
559
+ /** Position in the search; what `personTerms` on a feed row points at. */
560
+ term: z.number().int(),
561
+ input: z.string(),
562
+ kind: z.string(),
563
+ /**
564
+ * Why this line could not be looked up as asked, in the reader's words — a
565
+ * deal HubSpot does not know, HubSpot not connected. Empty when it was.
566
+ */
567
+ problem: z.string().default(""),
568
+ /** A deal's contacts, as found in the CRM. Empty for every other kind. */
569
+ contacts: z.array(z.string()).default([])
570
+ });
571
+ var peopleLookupRowSchema = peopleSearchTermSchema.extend({
572
+ found: z.boolean(),
573
+ events: z.number(),
574
+ firstSeen: z.string(),
575
+ lastSeen: z.string(),
576
+ pageViews: z.number(),
577
+ landings: z.number(),
578
+ visits: z.number(),
579
+ formSubmits: z.number(),
580
+ /** What the company's own systems reported about them, by event name — CRM stages, orders. */
581
+ systemEvents: z.array(z.string()),
582
+ pageEvents: z.array(z.string()),
583
+ uploads: z.number(),
584
+ uploadedTo: z.array(z.string()),
585
+ googleClick: z.boolean(),
586
+ metaClick: z.boolean(),
587
+ /** `utm_source`, else the referrer, of the first visit Baker saw. Empty when it saw none. */
588
+ firstSource: z.string(),
589
+ /** Every kind of key they are linked by: `email`, `phone`, `external`, `browser`, a click id. */
590
+ knownBy: z.array(z.string())
591
+ });
592
+ var peopleLookupDataSchema = z.object({
593
+ people: z.array(peopleLookupRowSchema),
594
+ /** Lines past the limit, not looked up. */
595
+ dropped: z.number()
596
+ });
597
+
598
+ // ../api/src/analytics/sendsWire.ts
599
+ import { z as z2 } from "zod";
600
+ var conversionSendSchema = z2.object({
601
+ /** Stable within the company. `s1`, `s2` — something a person can type. */
602
+ id: z2.string().min(1).max(MAX_SEND_ID),
603
+ /** The event it sends, by key — `page:<name>`, from `events[]` of a plain read. */
604
+ eventKey: z2.string().min(1).max(MAX_SEND_EVENT_KEY),
605
+ /** `website` for an event Baker's pixel raised on the company's own site; absent (or `server`) for the API and integrations. */
606
+ origin: z2.enum(SEND_ORIGINS).optional(),
607
+ platform: z2.enum(SEND_PLATFORMS),
608
+ /** The tag's id on Tracking. Must be one of this company's tags of the platform's type, with its server credential set. */
609
+ tagId: z2.string().min(1).max(120),
610
+ /** A Meta or GA4 event name; a Google Ads conversion action id; a LinkedIn conversion rule id; an X event tag id. */
611
+ event: z2.string().min(1).max(255),
612
+ /** The LinkedIn ad account the conversion rule belongs to. */
613
+ account: z2.string().max(120).optional(),
614
+ /** Extra platform parameters: name → template over the event. See `SEND_PARAMETERS[platform]`. */
615
+ parameters: z2.record(z2.string().min(1).max(64), z2.string().min(1).max(500)).optional()
616
+ });
617
+ var sendUploadSchema = z2.object({
618
+ sendId: z2.string(),
619
+ eventUid: z2.string(),
620
+ /** The event's own name, as it was counted. Empty for a Form's submit, which has none. */
621
+ eventName: z2.string(),
622
+ /** The event's key, as `conversions` spells it — what names a Form's submit. */
623
+ eventKey: z2.string(),
624
+ /** The Form it happened in, for a `form:` or `submit:` key. */
625
+ flowSlug: z2.string(),
626
+ /** ISO instant of the event itself. */
627
+ eventAt: z2.string(),
628
+ /** ISO instant of the upload. */
629
+ dispatchedAt: z2.string(),
630
+ /** `skipped`: never uploaded, because the event carried nothing the platform can match a person by. */
631
+ outcome: z2.enum(["success", "failed", "pending", "skipped"]),
632
+ /** The platform's refusal in its own words, or why it was skipped. Empty otherwise. */
633
+ error: z2.string(),
634
+ sessionId: z2.string(),
635
+ anonId: z2.string()
636
+ });
637
+ var MAX_SENDS_PER_REQUEST = 40;
638
+ var sendsRequestSchema = z2.object({
639
+ set: z2.array(conversionSendSchema).max(MAX_SENDS_PER_REQUEST).optional(),
640
+ remove: z2.array(z2.string().min(1).max(MAX_SEND_ID)).max(MAX_SENDS_PER_REQUEST).optional(),
641
+ /** How many days the outcomes beside each send cover. Default 30. */
642
+ days: z2.number().int().min(1).max(400).optional(),
643
+ /** List one send's uploads over the window, newest first, by the send's id. */
644
+ uploads: z2.string().min(1).max(MAX_SEND_ID).optional(),
645
+ /** With `uploads`: only the ones the platform refused. */
646
+ failedOnly: z2.boolean().optional(),
647
+ /** With `uploads`: only the events skipped, with what each was missing. */
648
+ skippedOnly: z2.boolean().optional(),
649
+ /** Also say when each live send was set up, and when an integration named after its event was removed. */
650
+ history: z2.boolean().optional()
651
+ });
652
+ var sendOutcomeSchema = z2.object({
653
+ sendId: z2.string(),
654
+ dispatched: z2.number(),
655
+ succeeded: z2.number(),
656
+ failed: z2.number(),
657
+ pending: z2.number(),
658
+ lastError: z2.string(),
659
+ lastAt: z2.string(),
660
+ /** Events not uploaded: they carried nothing this platform can match a person by. */
661
+ skipped: z2.number().optional(),
662
+ lastSkipReason: z2.string().optional()
663
+ });
664
+ var sendsResponseSchema = z2.object({
665
+ ok: z2.literal(true),
666
+ data: z2.object({
667
+ /** The company's sends, as they are live. */
668
+ sends: z2.array(conversionSendSchema.extend({ outcome: sendOutcomeSchema.optional() })),
669
+ /** The ops this chat has staged and not yet published. Absent outside a chat. */
670
+ staged: z2.object({
671
+ set: z2.array(conversionSendSchema),
672
+ remove: z2.array(z2.string())
673
+ }).optional(),
674
+ /** The platforms, what `event` means on each, what a tag needs on Tracking to send, and the tags that can. */
675
+ platforms: z2.array(
676
+ z2.object({
677
+ platform: z2.string(),
678
+ title: z2.string(),
679
+ eventMeans: z2.string(),
680
+ setupHint: z2.string(),
681
+ tags: z2.array(z2.object({ tagId: z2.string(), label: z2.string() })),
682
+ /**
683
+ * The conversions the platform already holds, by the id a send's `event`
684
+ * takes and the name the person gave them. Google Ads only: its `event`
685
+ * is an id Google issued, and an id the account does not hold is
686
+ * accepted and files against nothing. `label` is the conversion label
687
+ * the account's tag setup shows (`AW-…/<label>`) — how the person knows it.
688
+ */
689
+ conversionActions: z2.array(
690
+ z2.object({ id: z2.string(), name: z2.string(), primaryForGoal: z2.boolean(), label: z2.string().optional() })
691
+ ).optional()
692
+ })
693
+ ),
694
+ /** Every field a send forwards. Nothing to map. */
695
+ carries: z2.array(z2.object({ name: z2.string(), label: z2.string(), group: z2.string(), hashed: z2.boolean() })),
696
+ /**
697
+ * The events this company's systems raise, so a send can be pointed at
698
+ * one: every Source by the key it raises, and every named event the store
699
+ * saw arrive from a system.
700
+ */
701
+ events: z2.array(
702
+ z2.object({
703
+ eventKey: z2.string(),
704
+ /** The event's own name. */
705
+ name: z2.string(),
706
+ /** `source` for a Source on Sources, `systems` for a name the API posted, `both` when a page sends it too, `website` for a name Baker's pixel sent — a send on it carries `origin: "website"`. */
707
+ origin: z2.string(),
708
+ /**
709
+ * The last 30 days of it: how many arrived, and how many each platform
710
+ * could match a person on. The rest would be skipped by a send there.
711
+ */
712
+ match: z2.object({ events: z2.number(), platforms: z2.record(z2.string(), z2.number()) }).optional()
713
+ })
714
+ ),
715
+ /** What each platform does with extra parameters, and the names it knows. */
716
+ parameters: z2.array(
717
+ z2.object({
718
+ platform: z2.string(),
719
+ takes: z2.boolean(),
720
+ where: z2.string(),
721
+ known: z2.array(z2.string()),
722
+ max: z2.number()
723
+ })
724
+ ),
725
+ /** The event fields a parameter template may read, beside `properties.<key>`. */
726
+ templateFields: z2.array(z2.object({ name: z2.string(), label: z2.string() })),
727
+ /** One send's uploads, when `uploads` named one. */
728
+ uploads: z2.object({ sendId: z2.string(), rows: z2.array(sendUploadSchema) }).optional(),
729
+ /**
730
+ * When `history` was asked: when each live send was set up (epoch ms), and
731
+ * when an integration named after its event was last removed, if one was —
732
+ * what tells a send left on an event nothing raises apart from a mystery.
733
+ */
734
+ history: z2.array(z2.object({ sendId: z2.string(), createdAt: z2.number(), integrationRemovedAt: z2.number().optional() })).optional()
735
+ }),
736
+ hints: z2.array(z2.string()).optional()
737
+ });
738
+
739
+ // ../api/src/analytics/unstage.ts
740
+ import { z as z3 } from "zod";
741
+ var ANALYTICS_UNSTAGE_KINDS = ["mapping", "conversion", "send", "source"];
742
+ var analyticsUnstageKindSchema = z3.enum(ANALYTICS_UNSTAGE_KINDS);
743
+ var analyticsUnstageRequestSchema = z3.object({
744
+ chatId: z3.string().min(1),
745
+ kind: analyticsUnstageKindSchema.optional(),
746
+ ref: z3.string().min(1).optional(),
747
+ /** Everything staged — of `kind` when given, of every kind otherwise. */
748
+ all: z3.boolean().optional()
749
+ }).refine((body) => body.all === true ? body.ref === void 0 : body.kind !== void 0 && body.ref !== void 0, {
750
+ message: "Pass --kind with --ref to take back one staged change, or --all (optionally with --kind) to take back everything staged."
751
+ });
752
+ var analyticsUnstageResponseSchema = z3.object({
753
+ ok: z3.literal(true),
754
+ data: z3.object({
755
+ /** How many staged changes were taken back, per kind touched. */
756
+ removed: z3.partialRecord(analyticsUnstageKindSchema, z3.number().int().min(0))
757
+ }),
758
+ hints: z3.array(z3.string()).optional()
759
+ });
760
+
761
+ // ../api/src/analytics/wire.ts
762
+ import { z as z4 } from "zod";
763
+
764
+ // ../api/src/analytics/conversions.ts
765
+ var CONVERSION_COUNT_MODES = ["once_per_visit", "every_time"];
766
+ var PRIMARY_CONVERSION_TRIGGER = {
767
+ calendly: "calendlyEvent.eventScheduled",
768
+ customForm: "customForm.onFormSubmitted",
769
+ highlevel: "highlevelEvent.appointmentScheduled",
770
+ highlevelForm: "highlevelFormEvent.formSubmitted",
771
+ hubspot: "hubspotForm.onFormSubmitted",
772
+ hubspotMeeting: "hubspotMeeting.onMeetingScheduled",
773
+ link: "link.onClick",
774
+ savvycal: "savvycalEvent.scheduled",
775
+ text: "text.onButtonClicked"
776
+ };
777
+ var NON_SUBMIT_NODE_TYPES = ["link", "text"];
778
+ var STEP_SUBMIT_TRIGGERS = Object.fromEntries(
779
+ Object.entries(PRIMARY_CONVERSION_TRIGGER).filter(([nodeType]) => !NON_SUBMIT_NODE_TYPES.includes(nodeType))
780
+ );
781
+ var MAX_CONVERSION_NAME = 80;
782
+
783
+ // ../api/src/analytics/submissionAnswers.ts
784
+ var MAX_ANSWER_CHARS = 16384;
785
+ var MAX_ANSWER_NAME_CHARS = 120;
786
+ var TRUNCATED = "\u2026";
787
+ function cutToLength(value, max) {
788
+ if (value.length <= max) return value;
789
+ return `${[...value].slice(0, max - 1).join("")}${TRUNCATED}`;
790
+ }
791
+ function boundSubmissionAnswers(answers) {
792
+ const kept = {};
793
+ for (const [name, value] of Object.entries(answers)) {
794
+ kept[cutToLength(name, MAX_ANSWER_NAME_CHARS)] = cutToLength(value, MAX_ANSWER_CHARS);
795
+ }
796
+ return kept;
797
+ }
798
+
799
+ // ../api/src/analytics/wire.ts
800
+ var SEND_FILTERS = ["any", "failed", "skipped"];
801
+ var adParamRoleSchema = z4.enum(AD_PARAM_ROLES);
802
+ var ANALYTICS_FULL_BREAKDOWN_LIMIT = 100;
803
+ var ANALYTICS_MAX_PAGE_SIZE = 200;
804
+ var ANALYTICS_MAX_PAGE = 500;
805
+ function isResolvableTimeZone(value) {
806
+ try {
807
+ new Intl.DateTimeFormat("en-US", { timeZone: value });
808
+ return true;
809
+ } catch {
810
+ return false;
811
+ }
812
+ }
813
+ var analyticsPresetSchema = z4.enum([
814
+ /** Everything that matters in one call — the default entry point. */
815
+ "overview",
816
+ /** Traffic shape: trend, sources, geo, device. */
817
+ "traffic",
818
+ /** Per-step drop-off for the company's Forms. */
819
+ "funnel",
820
+ /**
821
+ * One Form in depth: its steps, where people went between them, and how many
822
+ * converted at the node that actually produced the conversion.
823
+ *
824
+ * Distinct from `funnel`, which is a per-step table across every Form.
825
+ * A Form with branches is not a table — a visitor who leaves step two for
826
+ * the booking branch and a visitor who leaves it for nothing are the same
827
+ * row there, and they are the whole question. `paths` returns the edges
828
+ * between steps, which is what a Sankey draws.
829
+ */
830
+ "flow",
831
+ /** One page in detail. */
832
+ "page",
833
+ /**
834
+ * Every Form trigger that fired, and how much of it produced a side effect.
835
+ *
836
+ * Separate from `funnel` because it answers a different question: the funnel
837
+ * measures the steps a visitor walked, this measures the things they *did* —
838
+ * clicking the link that redirects them out, an embedded checkout posting
839
+ * back — most of which have nothing configured against them and none of
840
+ * which appear as a step.
841
+ */
842
+ "triggers",
843
+ /** What each published build did, so a change can be attributed to a publish. */
844
+ "releases",
845
+ /**
846
+ * One ad dimension broken down, plus what is actually on the URLs.
847
+ *
848
+ * Answers the question the ad platform cannot: not how many clicks a keyword
849
+ * bought, but whether the people it brought read the page, filled the Form
850
+ * or left immediately. Pair it with `adRole` to choose the dimension; the
851
+ * parameter inventory comes back either way, because on a half-tagged
852
+ * account "there is no keyword on 80% of your paid traffic" is the finding.
853
+ */
854
+ "ads",
855
+ /**
856
+ * Every landing side by side: traffic, entrances, conversion rate, and a
857
+ * sparkline each, joined to the landing's real name and tags.
858
+ *
859
+ * The list view. `page` answers one page in depth and needs to be told which
860
+ * one; this answers "which of my pages is working" without knowing the
861
+ * answer first, and is what a landings screen renders.
862
+ */
863
+ "landings",
864
+ /**
865
+ * The same numbers grouped by the tag a landing is filed under.
866
+ *
867
+ * The unit a campaign is actually run at. Nobody asks how `/pricing-b` did;
868
+ * they ask how the September push did, and September was six landings.
869
+ */
870
+ "tags",
871
+ /**
872
+ * Events a page defined for itself — a section seen, a video played, a
873
+ * pricing toggle flipped.
874
+ *
875
+ * Separate from every other preset because the vocabulary is the page's
876
+ * rather than the product's. Mixing them into `traffic` would produce a list
877
+ * half of which the reader has to already know is bespoke.
878
+ */
879
+ "events",
880
+ /**
881
+ * Browser, OS, engine and viewport of real visitors.
882
+ *
883
+ * `traffic` reports the device family, which is enough to notice that mobile
884
+ * converts worse and not enough to do anything about it. This is narrow
885
+ * enough to reproduce a bug on.
886
+ */
887
+ "devices",
888
+ /**
889
+ * Paid acquisition, grouped the way money is spent.
890
+ *
891
+ * Distinct from `traffic` in two ways that matter. It groups by SESSION, so a
892
+ * visitor counts once for the campaign they arrived on rather than once per
893
+ * page they read. And it reports leads that were actually DELIVERED, not
894
+ * `form_submit` events — a campaign whose forms all submit and whose CRM is
895
+ * rejecting every one of them reads as converting perfectly on every other
896
+ * preset here, and reads as zero delivered on this one.
897
+ */
898
+ "paid",
899
+ /**
900
+ * Where each submission actually went, and what each destination made of it.
901
+ *
902
+ * The preset for "I filled in the form, where is my lead?". One row per
903
+ * submission listing every destination, its outcome, and the id the
904
+ * destination gave the record it created — which is what turns "it says
905
+ * success" into something a client can open and check.
906
+ */
907
+ "delivery",
908
+ /**
909
+ * Every attempt anybody made at a Form, delivered or not.
910
+ *
911
+ * The wider companion to `delivery`, and the one that answers "I filled in
912
+ * my own form, where is it?" honestly. `delivery` starts from the dispatch,
913
+ * so a Form wired to no destination produces no row in it at all — which is
914
+ * correct for "what did we hand to their CRM" and reads as data loss to
915
+ * everybody else. The grain here is the attempt: one visitor, one Form, one
916
+ * visit, whether they finished, gave up halfway, or completed a Form that
917
+ * sends nowhere.
918
+ */
919
+ "submissions",
920
+ /**
921
+ * Where the people who convert actually are, at whatever resolution is asked
922
+ * for.
923
+ *
924
+ * `traffic` breaks acquisition down by country, which is the right grain for
925
+ * "which market is this campaign working in" and the wrong one for every
926
+ * decision a local advertiser makes. A dentist buying a five-mile radius or a
927
+ * franchise choosing where to open is asking about postcodes, which is also
928
+ * how the ad platforms sell that targeting.
929
+ */
930
+ "geo",
931
+ /**
932
+ * Which machines are fetching this site.
933
+ *
934
+ * Every other preset here excludes them, which is correct — a crawler is not
935
+ * an audience — and a verify check now enforces that rather than trusting it. The rows are kept, though, and this is what
936
+ * they are kept for: whether Google is still crawling a page that was
937
+ * republished, whether Meta fetched the link preview before spend went
938
+ * behind the URL, and how much of the traffic is now AI answer engines.
939
+ */
940
+ "bots",
941
+ /**
942
+ * Which companies are visiting — named by the visitor's own network at the
943
+ * edge, never a person, and only for visitors who accepted marketing on a
944
+ * company that switched it on. The website half of an account-based report.
945
+ */
946
+ "companies",
947
+ /**
948
+ * One visit, replayed end to end — and every visit the same person made
949
+ * before it.
950
+ *
951
+ * The only preset that answers about a *person* rather than a population.
952
+ * Every other report here aggregates, which is the right shape for "is the
953
+ * campaign working" and useless for the question a marketer asks the moment
954
+ * a lead arrives: who was this, where did they come from, what did they read,
955
+ * and did their details reach the CRM. Answering that from an aggregate is
956
+ * impossible by construction.
957
+ *
958
+ * Needs `sessionId`. Give `identityHash` as well and it also returns the
959
+ * person's earlier visits, including the anonymous ones from before they ever
960
+ * identified themselves — which is the difference between "converted on the
961
+ * first visit" and "converted on the fourth", two very different businesses.
962
+ */
963
+ "session",
964
+ /**
965
+ * Everybody who visited, one row per person — converted or not.
966
+ *
967
+ * The unit here is a *person*, which no other preset has. `traffic` counts
968
+ * visitors and cannot name one; `delivery` names the ones who became a lead
969
+ * and is silent about the ninety-odd percent who did not; `session` describes
970
+ * one visit and has to be told which. This is the list those are read from.
971
+ *
972
+ * Grouped by browser cookie, so somebody who came back on Wednesday is one
973
+ * row and not two. Pass `onlyConverted` for the converted-only cut, and
974
+ * `landingId` to ask who visited one page.
975
+ *
976
+ * Not offered as a `baker analytics` preset, for the same reason `realtime`
977
+ * is not: it answers about individuals, and an agent writing a client report
978
+ * should be reading the population.
979
+ */
980
+ "people",
981
+ /**
982
+ * Who is on the site right now.
983
+ *
984
+ * The only preset measured from `now()` rather than over a date window, and
985
+ * the only one meant to be polled. Kept out of `overview` for exactly that
986
+ * reason: a live counter has to refresh every few seconds and the rest of the
987
+ * page must not refetch with it.
988
+ *
989
+ * Deliberately not offered as a `baker analytics` preset. The sandbox agent
990
+ * works asynchronously — by the time it reads an answer, "the last five
991
+ * minutes" names a window that has passed — so the only thing listing it
992
+ * would do is add a choice the agent can never usefully pick to the menu it
993
+ * reads before picking one.
994
+ */
995
+ "realtime",
996
+ /**
997
+ * What this company counts as a conversion, and everything it could count.
998
+ *
999
+ * The two halves of one question, which is why they are one preset: the list
1000
+ * of definitions with what each produced, and the catalogue of every event
1001
+ * these pages actually emitted with whether it is already counted. Reading
1002
+ * the first without the second is how the previous design failed — a
1003
+ * marketer could see that nothing was counted and had no way to find out what
1004
+ * was available to count.
1005
+ */
1006
+ "conversions",
1007
+ /**
1008
+ * Every event as it was stored, newest first — the one preset that does not
1009
+ * reduce.
1010
+ *
1011
+ * Deliberately not offered as a `baker analytics` preset. It is the raw feed
1012
+ * a person watches while wiring something up, and an agent asked to describe
1013
+ * an account wants the counts rather than the tape.
1014
+ */
1015
+ "stream"
1016
+ ]);
1017
+ var ANALYTICS_PRESETS = analyticsPresetSchema.options;
1018
+ var ANALYTICS_EVENT_DOORS = ["pages", "website", "server", "integrations"];
1019
+ var analyticsQueryRequestSchema = z4.object({
1020
+ preset: analyticsPresetSchema,
1021
+ /** Lookback in days. Ignored when `startDate` is given. */
1022
+ days: z4.coerce.number().int().positive().max(400).optional(),
1023
+ startDate: z4.iso.date().optional(),
1024
+ endDate: z4.iso.date().optional(),
1025
+ /** Required by the `page` preset; ignored by the others. */
1026
+ path: z4.string().max(1024).optional(),
1027
+ /** Narrows `funnel` to one Form. Omitted means every Form. */
1028
+ flowSlug: z4.string().max(120).optional(),
1029
+ /**
1030
+ * How far down the `geo` preset looks. Ignored by every other preset.
1031
+ *
1032
+ * A closed set rather than a column name, because it names a column and a
1033
+ * column name taken from a request must never reach the SQL.
1034
+ */
1035
+ grain: z4.enum(["country", "region", "city", "postal_code", "metro_code"]).optional(),
1036
+ /**
1037
+ * Narrows `geo` to one country before going finer.
1038
+ *
1039
+ * Not optional decoration below country level: postcodes collide across
1040
+ * markets, so a bare `28001` is a Madrid postcode and a US ZIP at once.
1041
+ */
1042
+ country: z4.string().max(8).optional(),
1043
+ /**
1044
+ * Which ad dimension to break down by, or to narrow every other report to.
1045
+ *
1046
+ * A role from the closed vocabulary — `keyword`, `match_type`,
1047
+ * `campaign_id` — never a raw parameter name. The company's own spellings
1048
+ * are resolved from its mapping server-side, so a caller asking for
1049
+ * "keyword" gets `kw` rows from before a rename as well as `keyword` rows
1050
+ * after it, and no request can name a column.
1051
+ */
1052
+ adRole: adParamRoleSchema.optional(),
1053
+ /**
1054
+ * Narrows to one value of `adRole`. Requires `adRole`.
1055
+ *
1056
+ * An empty string with `adRole` set is a real query — "arrived carrying
1057
+ * none of these" — which is how you size the untagged half of an account.
1058
+ * Omit both to leave the report unnarrowed.
1059
+ */
1060
+ adValue: z4.string().max(255).optional(),
1061
+ /**
1062
+ * Read this report in one ad platform's vocabulary, and from its traffic.
1063
+ *
1064
+ * Two effects, and they belong together. A role resolves against the
1065
+ * mapping in force for that platform — so `cid` is TikTok's ad here and
1066
+ * nobody's campaign — and the report narrows to the sessions that arrived
1067
+ * from it, matched on the click id the platform stamps and, failing that,
1068
+ * on `utm_source`. Asking a platform's question of another platform's
1069
+ * traffic is how a keyword report ends up counting Meta visits that could
1070
+ * not have carried a keyword.
1071
+ *
1072
+ * Omit it for the union across every platform, which is the honest
1073
+ * superset and the right default for "how is paid doing".
1074
+ */
1075
+ adPlatform: z4.enum(AD_PLATFORMS).optional(),
1076
+ /**
1077
+ * Read only what came in by one door. See {@link ANALYTICS_EVENT_DOORS}.
1078
+ *
1079
+ * Omit it for all of it, which is the default and the honest superset.
1080
+ * Only the reads where the split is a question somebody asks honour it —
1081
+ * the totals, the trend, the two page-event reads, the conversion
1082
+ * breakdown and the events catalogue. A session-scoped report cannot: an
1083
+ * ingest row carries no `session_id`, deliberately, so there is no visit
1084
+ * for it to be counted in.
1085
+ */
1086
+ eventOrigin: z4.enum(ANALYTICS_EVENT_DOORS).optional(),
1087
+ /**
1088
+ * `stream` only: keep just one kind of event, named by the key
1089
+ * `conversions` hands back in its catalogue.
1090
+ *
1091
+ * The key rather than `eventName`, because three of the four families have
1092
+ * no name of their own — a Form's trigger, a submit, an outbound click —
1093
+ * and a filter that could only name the fourth would be a filter that hides
1094
+ * most of the feed from itself.
1095
+ */
1096
+ eventKey: z4.string().optional(),
1097
+ /**
1098
+ * `stream` only: keep just what one source sent, by the source's name —
1099
+ * the `baker_source` every event from an address or a HubSpot read
1100
+ * carries. Names come from `baker analytics sources`.
1101
+ */
1102
+ sourceName: z4.string().optional(),
1103
+ /**
1104
+ * `stream` only: keep just the uploads a conversion's sends made —
1105
+ * `any` for every upload, `failed` for the ones the platform refused.
1106
+ */
1107
+ sends: z4.enum(SEND_FILTERS).optional(),
1108
+ /** `stream` only: keep just the uploads one send made, by its id (`s1`). */
1109
+ sendId: z4.string().optional(),
1110
+ /** `stream` only: keep what went to one destination (`meta`, `httpWebhook`) — a Form's deliveries and sends' uploads alike. */
1111
+ sentTo: z4.string().max(64).optional(),
1112
+ /** `stream` only: one event by its uid, and every upload made for it — with the platform's verdict on each. */
1113
+ eventUid: z4.string().optional(),
1114
+ /**
1115
+ * `stream` only: list just the rows taken for machine traffic — a headless
1116
+ * browser, a datacenter — instead of the human feed. How an agent sees its
1117
+ * own test visit, which every report rightly leaves out.
1118
+ */
1119
+ machines: z4.boolean().optional(),
1120
+ /** Return the long breakdowns and the per-day trend. */
1121
+ full: z4.boolean().optional(),
1122
+ /**
1123
+ * IANA zone the day boundaries are drawn in. Defaults to UTC.
1124
+ *
1125
+ * Not cosmetic. Bucketing a Madrid client's traffic by UTC days moves two
1126
+ * hours of every evening into the following day, so "Tuesday" is not
1127
+ * Tuesday and a day-of-week comparison is wrong by however much traffic
1128
+ * arrives after 22:00 — which on a consumer landing is a lot of it.
1129
+ *
1130
+ * Validated against the platform's own zone database rather than an enum,
1131
+ * because the list is the platform's and not ours — but validated it must
1132
+ * be. The zone is substituted into the query as a string literal and
1133
+ * ClickHouse rejects one it cannot resolve, so an unrecognised zone used to
1134
+ * fail the whole report as an INTERNAL_ERROR with nothing naming the cause.
1135
+ *
1136
+ * Rejected rather than quietly defaulted to UTC. A silent fallback returns
1137
+ * a report that looks like the one that was asked for and is bucketed on
1138
+ * different days, which is the exact error this parameter exists to
1139
+ * prevent — better to say the zone is unknown than to answer for the wrong
1140
+ * one.
1141
+ */
1142
+ timezone: z4.string().max(64).refine(isResolvableTimeZone, { message: "Unknown timezone \u2014 pass an IANA zone such as Europe/Madrid" }).optional(),
1143
+ /**
1144
+ * How wide one point of a series is.
1145
+ *
1146
+ * Chosen by the caller rather than derived from the window, because the
1147
+ * caller knows what it is drawing: the same 30 days is 30 points on a
1148
+ * dashboard and 4 on a slide. A 24-hour window at `day` granularity is one
1149
+ * bar, which is the shape this exists to prevent.
1150
+ */
1151
+ granularity: z4.enum(["hour", "day", "week", "month"]).optional(),
1152
+ /**
1153
+ * Narrow to one landing by its `internalId`.
1154
+ *
1155
+ * The reference where `path` is a description: it survives the page being
1156
+ * renamed or moved, which is exactly when a before-and-after comparison
1157
+ * matters most and is exactly when `path` stops matching.
1158
+ */
1159
+ landingId: z4.string().max(120).optional(),
1160
+ /** Narrows `landings` to the landings carrying one tag. */
1161
+ tag: z4.string().max(32).optional(),
1162
+ /**
1163
+ * Which visit the `session` preset replays.
1164
+ *
1165
+ * Ignored by every other preset. Not a filter on the aggregates: narrowing
1166
+ * a population report to one visitor produces numbers that are individually
1167
+ * true and collectively meaningless.
1168
+ */
1169
+ sessionId: z4.string().max(120).optional(),
1170
+ /**
1171
+ * Whose earlier visits to resolve, as a lowercase hex digest.
1172
+ *
1173
+ * A digest and never an address: the identity a page sends is hashed in the
1174
+ * browser, and nothing downstream of that ever holds the original.
1175
+ */
1176
+ identityHash: z4.string().max(128).optional(),
1177
+ /** Which page-defined event the `events` preset breaks down. */
1178
+ eventName: z4.string().max(120).optional(),
1179
+ /** Which of that event's own properties to break it down by. */
1180
+ property: z4.string().max(64).optional(),
1181
+ /**
1182
+ * Narrow the breakdown to the rows carrying one property value.
1183
+ *
1184
+ * Not the same as breaking down by a second key. Video is the case that
1185
+ * demanded it: every milestone carries `autoplay`, and the retention curve
1186
+ * of the videos a visitor chose to play is a different curve from the one a
1187
+ * muted hero produces by playing to nobody. Grouping gives the two totals;
1188
+ * only filtering gives either curve.
1189
+ */
1190
+ where: z4.object({ property: z4.string().max(64), value: z4.string().max(120) }).optional(),
1191
+ /**
1192
+ * An ordered funnel over page-defined event names.
1193
+ *
1194
+ * Data rather than schema, deliberately: defining a new funnel is a
1195
+ * parameter on a request, not a migration and a deploy. The order is the
1196
+ * caller's and is enforced — a session counts at step N only if it produced
1197
+ * step N after step N-1, or "saw pricing then clicked demo" and the reverse
1198
+ * would be the same number.
1199
+ */
1200
+ steps: z4.array(z4.string().max(120)).max(10).optional(),
1201
+ /**
1202
+ * Also return the immediately preceding window of the same length.
1203
+ *
1204
+ * The first question anyone asks of a number is "compared to what". Served
1205
+ * as a second full totals read rather than a delta computed in SQL, so the
1206
+ * comparison window is described in the response and a caller can render
1207
+ * either side of it.
1208
+ */
1209
+ compare: z4.boolean().optional(),
1210
+ /** `devices` only: which facet to group on. */
1211
+ deviceGrain: z4.enum(["browser", "os", "engine", "device", "viewport"]).optional(),
1212
+ /**
1213
+ * One browser, by its cookie id.
1214
+ *
1215
+ * Narrows `people` to a single person, narrows `stream` to everything
1216
+ * that person did, and replays that person's whole history on `session` —
1217
+ * every visit they made, not just the one. Given with `sessionId`, the
1218
+ * session wins and this is ignored.
1219
+ *
1220
+ * On `stream` it is a seed rather than a cookie filter: the browser plus
1221
+ * every address, phone, click id and platform cookie ever seen beside it.
1222
+ * Filtering on the cookie alone would drop exactly the rows the reader
1223
+ * came for — a deal a CRM posted names the person and carries no cookie.
1224
+ */
1225
+ anonId: z4.string().max(120).optional(),
1226
+ /**
1227
+ * `stream` and `session`: one person by any key the store recognises them
1228
+ * by — a contact digest, a CRM id, a click id, a platform cookie — for the
1229
+ * rows a system posted about somebody no browser has named yet. A browser
1230
+ * wins when both are given.
1231
+ */
1232
+ personKind: z4.string().max(40).optional(),
1233
+ personValue: z4.string().max(255).optional(),
1234
+ /**
1235
+ * `stream` only: several people, each by whatever the reader holds about
1236
+ * them — an email, a phone, a CRM contact or deal id, a click id, a browser
1237
+ * id, `kind:value` to say which. Emails and phones are hashed by the
1238
+ * server; the plaintext never reaches the store. Wins over the single
1239
+ * person above, and every row comes back naming which of these it is
1240
+ * (`personTerms`), with how each was read in `peopleSearch`.
1241
+ */
1242
+ people: peopleSearchInputSchema.optional(),
1243
+ /**
1244
+ * `people` only: keep only the visitors who converted.
1245
+ *
1246
+ * A parameter rather than a client-side filter because the list is capped:
1247
+ * filtering the most recent 200 visitors down to the ones who converted
1248
+ * usually leaves two, and reads as "we had two leads".
1249
+ */
1250
+ onlyConverted: z4.boolean().optional(),
1251
+ /**
1252
+ * Which page of a list-shaped report to read, 1-based.
1253
+ *
1254
+ * Only three reports are lists of individual things rather than
1255
+ * breakdowns — `people`, `submissions` and `delivery` — and only those
1256
+ * three take this. A breakdown is a top-N by construction: page two of
1257
+ * "your busiest countries" is not a thing anybody wants.
1258
+ *
1259
+ * It exists because the alternative silently stopped being true. Every one
1260
+ * of those lists was capped, the cap was invisible, and the summary line
1261
+ * above the list counted the rows it had been handed — so an account with
1262
+ * four thousand visitors read "200 people visited in this period" with no
1263
+ * indication that the number was the cap talking. A cap that is reported is
1264
+ * a page; a cap that is not is a wrong answer.
1265
+ */
1266
+ page: z4.coerce.number().int().min(1).max(ANALYTICS_MAX_PAGE).optional(),
1267
+ /**
1268
+ * How many rows one page holds. Bounded, because the reader is a browser.
1269
+ *
1270
+ * Omitted, a list keeps the size it had before pagination existed, which is
1271
+ * what keeps `baker analytics submissions --full` returning the same 800
1272
+ * rows it always did for an agent that reads the whole thing in one go.
1273
+ */
1274
+ pageSize: z4.coerce.number().int().min(1).max(ANALYTICS_MAX_PAGE_SIZE).optional()
1275
+ }).refine((value) => value.preset !== "page" || typeof value.path === "string", {
1276
+ message: "The 'page' preset needs --path",
1277
+ path: ["path"]
1278
+ }).refine(
1279
+ (value) => value.preset !== "session" || typeof value.sessionId === "string" || typeof value.anonId === "string" || typeof value.personValue === "string",
1280
+ {
1281
+ message: "The 'session' preset needs --session, a browser id or a person key",
1282
+ path: ["sessionId"]
1283
+ }
1284
+ ).refine((value) => value.property === void 0 || typeof value.eventName === "string", {
1285
+ message: "Breaking an event down by a property needs --event too",
1286
+ path: ["property"]
1287
+ }).refine((value) => value.where === void 0 || typeof value.property === "string", {
1288
+ message: "Narrowing with --where needs --event and --property too",
1289
+ path: ["where"]
1290
+ });
1291
+ var analyticsWindowSchema = z4.object({
1292
+ startDate: z4.iso.date(),
1293
+ endDate: z4.iso.date(),
1294
+ days: z4.number().int().positive(),
1295
+ /** True when the window reaches past the datasource TTL, so part of it is simply gone. */
1296
+ beyondRetention: z4.boolean()
1297
+ });
1298
+ var analyticsTotalsSchema = z4.object({
1299
+ /** Counted from `visitor_new`. */
1300
+ visitors: z4.number().int().nonnegative(),
1301
+ /** Counted from `session_start`. */
1302
+ sessions: z4.number().int().nonnegative(),
1303
+ pageViews: z4.number().int().nonnegative(),
1304
+ /**
1305
+ * Every conversion, counting a visit twice when it converted twice.
1306
+ *
1307
+ * A Form's author can mark an outcome as counting every time it happens — a
1308
+ * download, a repeatable action — so this legitimately runs ahead of
1309
+ * {@link convertingSessions}, and of `sessions`.
1310
+ */
1311
+ conversions: z4.number().int().nonnegative(),
1312
+ /**
1313
+ * Conversions in the window that no landing earned — by people none of the
1314
+ * company's pages saw. Not in `conversions`, which is a page metric; shown
1315
+ * beside it so a deal a CRM reported is never a silent zero. Zero under any
1316
+ * scope.
1317
+ */
1318
+ unplacedConversions: z4.number().int().nonnegative().default(0),
1319
+ /** Visits that produced at least one conversion. Never above `sessions`. */
1320
+ convertingSessions: z4.number().int().nonnegative(),
1321
+ /**
1322
+ * Converting visits per visit, 0–1. Null when there were no visits.
1323
+ *
1324
+ * Over converting visits rather than over conversions, because the second
1325
+ * ratio passes 1 the moment one visit converts twice — and a headline card
1326
+ * reading "125%" is read as a broken report, not as a visitor who did the
1327
+ * thing twice. The count above still says how often it happened.
1328
+ */
1329
+ conversionRate: z4.number().min(0).max(1).nullable(),
1330
+ avgEngagementMs: z4.number().nonnegative().nullable(),
1331
+ /** Page views per session. At or near 1 means visitors leave from the page they land on. */
1332
+ pagesPerSession: z4.number().nonnegative().nullable()
1333
+ });
1334
+ var analyticsTrendPointSchema = z4.object({
1335
+ /**
1336
+ * The bucket's start, as an ISO instant.
1337
+ *
1338
+ * A full instant rather than a date, because a series is no longer always
1339
+ * daily: at `hour` granularity `2026-08-22` names twenty-four points, and at
1340
+ * `month` it names one that started three weeks earlier. It is also now
1341
+ * timezone-aware, so the same instant is a different calendar day depending
1342
+ * on the zone the caller asked for — which a bare `YYYY-MM-DD` cannot
1343
+ * express without silently choosing one.
1344
+ */
1345
+ bucket: z4.string(),
1346
+ visitors: z4.number().int().nonnegative(),
1347
+ sessions: z4.number().int().nonnegative(),
1348
+ pageViews: z4.number().int().nonnegative(),
1349
+ conversions: z4.number().int().nonnegative()
1350
+ });
1351
+ var analyticsLandingRowSchema = z4.object({
1352
+ /** The landing's `internalId` — the reference every event carries. */
1353
+ landingId: z4.string(),
1354
+ /** The Convex `landings._id`, so a dashboard can link straight to the row. */
1355
+ landingRef: z4.string(),
1356
+ /**
1357
+ * What a person calls it, or `""` when the dimension has not been mirrored
1358
+ * yet.
1359
+ *
1360
+ * Empty is a real and temporary state — a landing published before the
1361
+ * mirror existed, or one whose sync has not run — and it is reported rather
1362
+ * than papered over with the id, so a caller can say "not synced yet"
1363
+ * instead of showing something that looks like a name and is not.
1364
+ */
1365
+ name: z4.string(),
1366
+ slug: z4.string(),
1367
+ tags: z4.array(z4.string()),
1368
+ views: z4.number().int().nonnegative(),
1369
+ sessions: z4.number().int().nonnegative(),
1370
+ /** Sessions that BEGAN here — the page's Visits on screen, summing to the headline, and its rate's denominator. */
1371
+ entrances: z4.number().int().nonnegative(),
1372
+ visitors: z4.number().int().nonnegative(),
1373
+ /**
1374
+ * Conversions that fired ON this landing — rarely the number to show.
1375
+ *
1376
+ * A landing's outcome usually happens somewhere else: the client's checkout,
1377
+ * their shop, a CRM days later. None of those rows carries a landing id, so
1378
+ * this reads 0 for a page whose visits convert reliably.
1379
+ */
1380
+ conversions: z4.number().int().nonnegative(),
1381
+ /** Visits that converted on this page at least once. */
1382
+ convertingSessions: z4.number().int().nonnegative(),
1383
+ /**
1384
+ * Conversions this landing led to — what the page is bought for.
1385
+ *
1386
+ * The landing rule: a conversion on the page, or anywhere else when this was
1387
+ * the last landing its person viewed, up to 90 days before. So it includes
1388
+ * the sale a returning visitor made next week and the deal a CRM posted with
1389
+ * no cookie at all, and the landings add up to the headline.
1390
+ */
1391
+ creditedConversions: z4.number().int().nonnegative(),
1392
+ /** People whose conversions are credited here. */
1393
+ creditedVisitors: z4.number().int().nonnegative(),
1394
+ /** Visits credited at least one conversion here — the rate's numerator. */
1395
+ creditedVisits: z4.number().int().nonnegative(),
1396
+ outboundClicks: z4.number().int().nonnegative(),
1397
+ /**
1398
+ * `creditedVisits` over `entrances`, capped at 1 — the headline's converted
1399
+ * visits over visits, for one page, so the rows add up to the headline.
1400
+ * Null when no visit started here.
1401
+ *
1402
+ * Converting visits, not conversions: see {@link analyticsTotalsSchema}.
1403
+ */
1404
+ conversionRate: z4.number().min(0).max(1).nullable(),
1405
+ avgEngagementMs: z4.number().nonnegative().nullable(),
1406
+ /**
1407
+ * Views per bucket, zero-filled against the same axis every other landing
1408
+ * in the response uses — so the arrays are the same length and can be drawn
1409
+ * side by side without asking what each element means.
1410
+ */
1411
+ sparkline: z4.array(z4.number().int().nonnegative()),
1412
+ /**
1413
+ * The ad platforms actually sending this page traffic — `google`, `meta`,
1414
+ * `linkedin`, `tiktok`, `x`, `microsoft`.
1415
+ *
1416
+ * Derived from the click ids a visit arrived with, never from `utm_source`:
1417
+ * a label is whatever somebody typed into a tracking template, a `gclid` is a
1418
+ * click. Ordered by traffic, busiest first.
1419
+ */
1420
+ channels: z4.array(z4.string()),
1421
+ /**
1422
+ * Visits that started on the page, per entry of {@link channels}, in the
1423
+ * same order — so a page's marks add up to its share of Ads → Audience.
1424
+ *
1425
+ * The half that makes a mark readable. A mark on its own says "advertised
1426
+ * here", which is why it used to be withheld until three visits had arrived —
1427
+ * and withholding it is what made a page whose whole day was five Meta clicks
1428
+ * show nothing at all. The count says how much, so one test click and a live
1429
+ * campaign are distinguishable by reading rather than by absence.
1430
+ */
1431
+ channelSessions: z4.array(z4.number().int().nonnegative())
1432
+ });
1433
+ var analyticsTagRowSchema = z4.object({
1434
+ tag: z4.string(),
1435
+ landings: z4.number().int().nonnegative(),
1436
+ views: z4.number().int().nonnegative(),
1437
+ sessions: z4.number().int().nonnegative(),
1438
+ entrances: z4.number().int().nonnegative(),
1439
+ conversions: z4.number().int().nonnegative(),
1440
+ /** Visits that converted on one of this tag's pages. */
1441
+ convertingSessions: z4.number().int().nonnegative(),
1442
+ /** Converting visits per entrance. */
1443
+ conversionRate: z4.number().min(0).max(1).nullable()
1444
+ });
1445
+ var ANALYTICS_EVENT_ORIGINS = ["site", "systems", "both"];
1446
+ var analyticsCustomEventRowSchema = z4.object({
1447
+ eventName: z4.string(),
1448
+ events: z4.number().int().nonnegative(),
1449
+ sessions: z4.number().int().nonnegative(),
1450
+ visitors: z4.number().int().nonnegative(),
1451
+ /**
1452
+ * The property keys this event carries.
1453
+ *
1454
+ * The keys, not the values: a caller has to know what it can break the event
1455
+ * down BY before it can ask, and the values are unbounded where the keys are
1456
+ * capped. This is what lets a dashboard offer the breakdown without the
1457
+ * reader already knowing what the page chose to record.
1458
+ */
1459
+ propertyKeys: z4.array(z4.string()),
1460
+ /**
1461
+ * What these events were worth, per currency.
1462
+ *
1463
+ * A map and never one number, for the reason the person card's `money` is
1464
+ * one: a name carrying 99,882.50 EUR and 1,000 USD is not worth 100,882.50
1465
+ * of anything, and there is no rate in this product to make it so.
1466
+ *
1467
+ * The `''` key is a value a *page* reported — `value` with no currency,
1468
+ * which is a score on the page's own terms rather than money. Kept rather
1469
+ * than dropped, because for those events it is the only number there is.
1470
+ */
1471
+ money: z4.record(z4.string(), z4.number()).default({}),
1472
+ landings: z4.array(z4.string()),
1473
+ /** Which collector produced this name — and `both` when more than one did. */
1474
+ origin: z4.enum(ANALYTICS_EVENT_ORIGINS)
1475
+ });
1476
+ var analyticsEventBreakdownRowSchema = z4.object({
1477
+ value: z4.string(),
1478
+ events: z4.number().int().nonnegative(),
1479
+ sessions: z4.number().int().nonnegative(),
1480
+ /** Per currency, exactly as {@link analyticsCustomEventRowSchema.money}. */
1481
+ money: z4.record(z4.string(), z4.number()).default({})
1482
+ });
1483
+ var analyticsCustomFunnelStepSchema = z4.object({
1484
+ stepIndex: z4.number().int().positive(),
1485
+ stepName: z4.string(),
1486
+ sessions: z4.number().int().nonnegative(),
1487
+ /** Share of the sessions that reached the previous step. Null on the first. */
1488
+ stepRate: z4.number().min(0).max(1).nullable(),
1489
+ /** Share of the sessions that reached step one. Null on the first. */
1490
+ overallRate: z4.number().min(0).max(1).nullable()
1491
+ });
1492
+ var analyticsDeviceRowSchema = z4.object({
1493
+ /** The bucket label — `Chrome 120.0`, `iOS 17.4`, `380–767`. */
1494
+ bucket: z4.string(),
1495
+ sessions: z4.number().int().nonnegative(),
1496
+ pageViews: z4.number().int().nonnegative(),
1497
+ convertingSessions: z4.number().int().nonnegative(),
1498
+ conversions: z4.number().int().nonnegative(),
1499
+ /**
1500
+ * Converting sessions over sessions.
1501
+ *
1502
+ * Over sessions rather than conversions over sessions, because one session
1503
+ * can submit twice and a rate above 1 in a browser-comparison table reads as
1504
+ * a bug in the report rather than as a visitor who filled two forms.
1505
+ */
1506
+ conversionRate: z4.number().min(0).max(1).nullable(),
1507
+ avgEngagementMs: z4.number().nonnegative().nullable()
1508
+ });
1509
+ var analyticsPageRowSchema = z4.object({
1510
+ path: z4.string(),
1511
+ /**
1512
+ * The landing's own `internalId`, straight out of its `_definition.md`.
1513
+ *
1514
+ * The path says where the page is; this says which page it is, so a number
1515
+ * here lines up with a file the agent can open — and with the same page after
1516
+ * it has been renamed, which the path does not. Empty for a path with no
1517
+ * landing behind it.
1518
+ */
1519
+ landingId: z4.string(),
1520
+ pageViews: z4.number().int().nonnegative(),
1521
+ /** Sessions that began on this page — its value as a landing page. */
1522
+ entrances: z4.number().int().nonnegative(),
1523
+ /**
1524
+ * Conversions that fired ON this page — "which page converts".
1525
+ *
1526
+ * Almost never the number to put beside Entrances. A landing page's job is to
1527
+ * start a visit that converts, and the conversion is usually somewhere else:
1528
+ * the shop, the checkout, a CRM a week later. Read alone this makes every
1529
+ * landing page of a real funnel report zero.
1530
+ */
1531
+ conversions: z4.number().int().nonnegative(),
1532
+ /** Visits that converted on this page at least once. */
1533
+ convertingSessions: z4.number().int().nonnegative(),
1534
+ /**
1535
+ * Conversions credited to this landing page by the landing rule — on it, or
1536
+ * anywhere when it was the last landing page its person viewed, up to 90
1537
+ * days before. The number a landing-page table means by "conversions".
1538
+ */
1539
+ creditedConversions: z4.number().int().nonnegative(),
1540
+ /** People whose conversions are credited here. */
1541
+ creditedVisitors: z4.number().int().nonnegative(),
1542
+ /** Credited people per entrance, 0–1. Null when nobody landed here. */
1543
+ conversionRate: z4.number().min(0).max(1).nullable(),
1544
+ avgEngagementMs: z4.number().nonnegative().nullable()
1545
+ });
1546
+ var analyticsSourceRowSchema = z4.object({
1547
+ source: z4.string(),
1548
+ medium: z4.string(),
1549
+ sessions: z4.number().int().nonnegative(),
1550
+ conversions: z4.number().int().nonnegative(),
1551
+ conversionRate: z4.number().min(0).max(1).nullable()
1552
+ });
1553
+ var analyticsCampaignRowSchema = z4.object({
1554
+ utmSource: z4.string(),
1555
+ utmMedium: z4.string(),
1556
+ utmCampaign: z4.string(),
1557
+ /**
1558
+ * The platform a click id proves, or `""` when the visit carried none.
1559
+ *
1560
+ * What separates a campaign the ad breakdown already reports — with its
1561
+ * platform proven and its ad set and ad underneath — from one nothing else
1562
+ * can show: the newsletter, the partner link, the hand-tagged post. The two
1563
+ * are otherwise identical, because `utm_campaign={campaignid}` is the normal
1564
+ * tagging convention and produces the same ids in both places.
1565
+ *
1566
+ * Kept on the row rather than filtered out here: a CLI hint reads an empty
1567
+ * campaign list as "no campaign tagging on any traffic", and dropping the
1568
+ * paid ones would make that fire on a perfectly tagged account.
1569
+ */
1570
+ clickPlatform: z4.string(),
1571
+ sessions: z4.number().int().nonnegative(),
1572
+ conversions: z4.number().int().nonnegative(),
1573
+ conversionRate: z4.number().min(0).max(1).nullable()
1574
+ });
1575
+ var analyticsRealtimeMinuteSchema = z4.object({
1576
+ /** The minute, as an ISO instant. */
1577
+ minute: z4.string(),
1578
+ visitors: z4.number().int().nonnegative(),
1579
+ pageViews: z4.number().int().nonnegative()
1580
+ });
1581
+ var analyticsRealtimePageSchema = z4.object({
1582
+ path: z4.string(),
1583
+ /** The landing this path belongs to; empty when no landing claims it. */
1584
+ landingId: z4.string(),
1585
+ visitors: z4.number().int().nonnegative()
1586
+ });
1587
+ var analyticsRealtimeSchema = z4.object({
1588
+ /** Distinct visitors with any activity inside the active window. */
1589
+ activeNow: z4.number().int().nonnegative(),
1590
+ /** How recently a visitor must have acted to be counted, in minutes. */
1591
+ activeWithinMinutes: z4.number().int().positive(),
1592
+ minutes: z4.array(analyticsRealtimeMinuteSchema),
1593
+ pages: z4.array(analyticsRealtimePageSchema)
1594
+ });
1595
+ var analyticsDimensionRowSchema = z4.object({
1596
+ key: z4.string(),
1597
+ sessions: z4.number().int().nonnegative(),
1598
+ conversions: z4.number().int().nonnegative(),
1599
+ conversionRate: z4.number().min(0).max(1).nullable()
1600
+ });
1601
+ var analyticsFunnelStepSchema = z4.object({
1602
+ stepId: z4.string(),
1603
+ stepIndex: z4.number().int().nonnegative(),
1604
+ /** Visits that moved forward into this step. Never events — see `visits`. */
1605
+ views: z4.number().int().nonnegative(),
1606
+ /** Visits that finished this step and moved on. */
1607
+ completions: z4.number().int().nonnegative(),
1608
+ /** Share of viewers who did not complete this step, 0–1. */
1609
+ dropRate: z4.number().min(0).max(1).nullable(),
1610
+ /**
1611
+ * Visits that converted AT this step — the node kind's own outcome trigger
1612
+ * fired here, or the Form was submitted here.
1613
+ *
1614
+ * Usually zero on every step but one. That is the point: a Form has one
1615
+ * conversion, and knowing which step owns it is what stops a drop-off chart
1616
+ * treating the booking widget's "profile viewed" as a funnel stage.
1617
+ */
1618
+ convertedSessions: z4.number().int().nonnegative(),
1619
+ /**
1620
+ * This step is where the Form ends — a confirmation screen, not a loss.
1621
+ *
1622
+ * Stated rather than left to be inferred. The dashboard used to read it off
1623
+ * `dropRate === null`, which is also how a step nobody viewed arrives, so a
1624
+ * converting link node in the middle of a Form was labelled its ending.
1625
+ */
1626
+ isEnding: z4.boolean()
1627
+ });
1628
+ var analyticsFunnelSchema = z4.object({
1629
+ flowSlug: z4.string(),
1630
+ /**
1631
+ * Visits that saw the Form at all — the denominator for every share here.
1632
+ *
1633
+ * Read this, not `starts`, whenever the question is "out of how many". A
1634
+ * start is recorded at the visitor's FIRST INTERACTION, so the two differ by
1635
+ * exactly the people who looked at the Form and never touched it — usually
1636
+ * most of them, and always the group a drop-off chart exists to find.
1637
+ *
1638
+ * Every count in this object is distinct visits, including each step's
1639
+ * `views` and `completions`. That is load-bearing rather than incidental:
1640
+ * the screen divides these by each other, and while the steps counted events
1641
+ * a Form four people had opened reported one step reached fifteen times and
1642
+ * fourteen people lost.
1643
+ */
1644
+ visits: z4.number().int().nonnegative(),
1645
+ /** Visits that interacted with the Form at all — typed, picked, or advanced. */
1646
+ starts: z4.number().int().nonnegative(),
1647
+ submits: z4.number().int().nonnegative(),
1648
+ /** Conversions per visit that opened the Form, 0–1. */
1649
+ completionRate: z4.number().min(0).max(1).nullable(),
1650
+ /** The step losing the most people. The single most useful field here. */
1651
+ worstStep: analyticsFunnelStepSchema.nullable(),
1652
+ steps: z4.array(analyticsFunnelStepSchema),
1653
+ /**
1654
+ * Visits that converted, counted once each at whichever node did it.
1655
+ *
1656
+ * Read this rather than `submits` whenever the two disagree. `submits` only
1657
+ * fires when a flow runs out of nodes, so a Form that books a call on a
1658
+ * mid-flow Calendly node reports zero submits and every one of its real
1659
+ * bookings here.
1660
+ */
1661
+ convertedSessions: z4.number().int().nonnegative()
1662
+ });
1663
+ var analyticsPaidRowSchema = z4.object({
1664
+ source: z4.string(),
1665
+ medium: z4.string(),
1666
+ campaign: z4.string(),
1667
+ content: z4.string(),
1668
+ term: z4.string(),
1669
+ /** `google` | `meta` | `tiktok` | `x` | `linkedin` | `microsoft` | `""`. */
1670
+ clickPlatform: z4.string(),
1671
+ sessions: z4.number().int().nonnegative(),
1672
+ convertingSessions: z4.number().int().nonnegative(),
1673
+ conversions: z4.number().int().nonnegative(),
1674
+ /** Leads whose server-side delivery reported success. */
1675
+ delivered: z4.number().int().nonnegative(),
1676
+ /** Leads whose delivery reported failure. Non-zero here is a broken integration. */
1677
+ failedDeliveries: z4.number().int().nonnegative(),
1678
+ /** Distinct people, across devices — only countable where visitors identified themselves. */
1679
+ identifiedPeople: z4.number().int().nonnegative(),
1680
+ /** Converting sessions per session, 0–1. */
1681
+ conversionRate: z4.number().min(0).max(1).nullable(),
1682
+ /** Delivered leads per conversion, 0–1. Below 1 means leads are being lost after submit. */
1683
+ deliveryRate: z4.number().min(0).max(1).nullable()
1684
+ });
1685
+ var analyticsDeliveryRowSchema = z4.object({
1686
+ eventId: z4.string(),
1687
+ submittedAt: z4.string(),
1688
+ /**
1689
+ * The visit the submission was made in, so a lead can be opened as a story.
1690
+ *
1691
+ * The whole reason a delivery row is worth clicking. Without it a submission
1692
+ * is a timestamp and a CRM outcome, and the questions anybody actually has —
1693
+ * which ad brought them, what they read first, how long they took — are all
1694
+ * on the other side of this one join.
1695
+ */
1696
+ sessionId: z4.string(),
1697
+ /** Lowercase hex digest of who submitted, when the page could identify them. */
1698
+ identityHash: z4.string(),
1699
+ flowSlug: z4.string(),
1700
+ stepId: z4.string(),
1701
+ landingId: z4.string(),
1702
+ destinations: z4.array(z4.string()),
1703
+ dispatched: z4.number().int().nonnegative(),
1704
+ succeeded: z4.number().int().nonnegative(),
1705
+ failed: z4.number().int().nonnegative(),
1706
+ /** Dispatched and never settled. Distinguishing this from failed is "wait" vs "act". */
1707
+ pending: z4.number().int().nonnegative(),
1708
+ /**
1709
+ * The ids the destinations gave back.
1710
+ *
1711
+ * A submission that succeeded everywhere and carries none of these is a real
1712
+ * and previously invisible failure: the integration accepted the call and
1713
+ * dropped the record.
1714
+ */
1715
+ providerRefs: z4.array(z4.string()),
1716
+ sampleError: z4.string()
1717
+ });
1718
+ var analyticsTriggerRowSchema = z4.object({
1719
+ flowSlug: z4.string(),
1720
+ /** `link`, `customForm`, `iframe`, `hubspotMeeting`, … */
1721
+ nodeType: z4.string(),
1722
+ /** The trigger, verbatim: `link.onClick`, `iframe.checkout_completed`. */
1723
+ triggerId: z4.string(),
1724
+ fires: z4.number().int().nonnegative(),
1725
+ sessions: z4.number().int().nonnegative(),
1726
+ /** How many of those fires produced a side effect. Often zero, on purpose. */
1727
+ sideEffectsFired: z4.number().int().nonnegative()
1728
+ });
1729
+ var analyticsReleaseRowSchema = z4.object({
1730
+ /** The commit the build came from. */
1731
+ release: z4.string(),
1732
+ firstSeen: z4.string(),
1733
+ lastSeen: z4.string(),
1734
+ sessions: z4.number().int().nonnegative(),
1735
+ pageViews: z4.number().int().nonnegative(),
1736
+ conversions: z4.number().int().nonnegative(),
1737
+ /** Visits that converted on this build at least once. */
1738
+ convertingSessions: z4.number().int().nonnegative(),
1739
+ /** Converting visits per session, 0–1. Null below a usable sample. */
1740
+ conversionRate: z4.number().min(0).max(1).nullable()
1741
+ });
1742
+ var analyticsGeoRowSchema = z4.object({
1743
+ /** The place itself, at whatever grain was asked for. */
1744
+ place: z4.string(),
1745
+ /** Always carried: a postcode without its country is ambiguous, a city twice over. */
1746
+ country: z4.string(),
1747
+ region: z4.string(),
1748
+ sessions: z4.number().int().nonnegative(),
1749
+ conversions: z4.number().int().nonnegative(),
1750
+ /** Conversions per session, 0–1. Null below a usable sample. */
1751
+ conversionRate: z4.number().min(0).max(1).nullable(),
1752
+ /** People rather than browsers, where the visit identified itself. */
1753
+ identifiedPeople: z4.number().int().nonnegative()
1754
+ });
1755
+ var analyticsBotRowSchema = z4.object({
1756
+ /** The crawler's name, or `unidentified` for a machine we could not name. */
1757
+ bot: z4.string(),
1758
+ /** `search` | `ai` | `social` | `seo` | `monitoring` | `tool` | `automation`. */
1759
+ category: z4.string(),
1760
+ hits: z4.number().int().nonnegative(),
1761
+ pages: z4.number().int().nonnegative(),
1762
+ lastSeen: z4.string(),
1763
+ samplePaths: z4.array(z4.string())
1764
+ });
1765
+ var analyticsHiddenMachinesSchema = z4.object({
1766
+ events: z4.number().int().nonnegative(),
1767
+ /** Which signal decided, most first: `ua` is a browser that said it is headless. */
1768
+ reasons: z4.array(
1769
+ z4.object({
1770
+ reason: z4.string(),
1771
+ events: z4.number().int().nonnegative(),
1772
+ lastSeen: z4.string()
1773
+ })
1774
+ )
1775
+ });
1776
+ var analyticsVisitorCompanyRowSchema = z4.object({
1777
+ /** The network's registered name, as Cloudflare reports it. */
1778
+ name: z4.string(),
1779
+ /** Null in v1 — Cloudflare names a network, never its website. */
1780
+ domain: z4.string().nullable(),
1781
+ /** `high`: the name reads as an organisation. `low`: it only cleared the ISP/cloud/VPN deny-list. */
1782
+ confidence: z4.enum(["high", "low"]),
1783
+ visits: z4.number().int().nonnegative(),
1784
+ pageViews: z4.number().int().nonnegative(),
1785
+ /** Distinct pages read. */
1786
+ pages: z4.number().int().nonnegative(),
1787
+ /** Up to ten of them. */
1788
+ topPages: z4.array(z4.string()),
1789
+ firstSeen: z4.string(),
1790
+ lastSeen: z4.string()
1791
+ });
1792
+ var analyticsWarningSchema = z4.object({
1793
+ /**
1794
+ * `AD_ROLE_UNMAPPED` is the one that reports a *question* rather than the
1795
+ * data. A role resolves to the parameter names that carry it, and when a
1796
+ * company has mapped none the list is empty — which the filter reads as
1797
+ * "arrived carrying none of these" and answers with a confident zero across
1798
+ * the whole report. Zero is a far more expensive conclusion than "nobody has
1799
+ * said which parameter that is", so the narrowing is dropped and this says so.
1800
+ */
1801
+ code: z4.enum(["LOW_SAMPLE", "NO_DATA", "BEYOND_RETENTION", "AD_ROLE_UNMAPPED"]),
1802
+ message: z4.string()
1803
+ });
1804
+ var analyticsFlowSummarySchema = z4.object({
1805
+ flowSlug: z4.string(),
1806
+ sessions: z4.number().int().nonnegative(),
1807
+ starts: z4.number().int().nonnegative(),
1808
+ convertedSessions: z4.number().int().nonnegative(),
1809
+ submits: z4.number().int().nonnegative(),
1810
+ stepViews: z4.number().int().nonnegative(),
1811
+ /** Distinct steps anyone reached, across all visits. */
1812
+ stepsSeen: z4.number().int().nonnegative(),
1813
+ deepestStepIndex: z4.number().int().nonnegative(),
1814
+ /** Steps reached per visit, averaged — "how much of this Form do people read". */
1815
+ avgStepsReached: z4.number().nonnegative(),
1816
+ /** Conversions per visit that started, 0–1. */
1817
+ conversionRate: z4.number().min(0).max(1).nullable(),
1818
+ /** Which node ids produced the conversions. Usually one; two means two offers. */
1819
+ conversionSteps: z4.array(z4.string()),
1820
+ /** And by what — `calendlyEvent.eventScheduled`, `customForm.onFormSubmitted`. */
1821
+ conversionTriggers: z4.array(z4.string()),
1822
+ conversionNodeTypes: z4.array(z4.string()),
1823
+ lastSeen: z4.string()
1824
+ });
1825
+ var analyticsFlowEdgeSchema = z4.object({
1826
+ flowSlug: z4.string(),
1827
+ fromStep: z4.string(),
1828
+ toStep: z4.string(),
1829
+ sessions: z4.number().int().nonnegative()
1830
+ });
1831
+ var analyticsConversionRowSchema = z4.object({
1832
+ /** What a person calls this outcome. */
1833
+ name: z4.string(),
1834
+ /** Every event counted under this name. One entry unless the name is shared. */
1835
+ eventKeys: z4.array(z4.string()),
1836
+ /**
1837
+ * `once_per_visit` | `every_time` — how repeats inside one visit are counted.
1838
+ *
1839
+ * `mixed` when a shared name spans both, which is a real state and an editing
1840
+ * accident; saying so is what makes it findable.
1841
+ */
1842
+ countMode: z4.string(),
1843
+ /** Counted the way each definition asked to be counted, and credited to a landing. */
1844
+ conversions: z4.number(),
1845
+ /**
1846
+ * Times it happened that no landing earned: by people none of the company's
1847
+ * pages saw, within 90 days. Zero under a landing or an ad scope, where the
1848
+ * gap would mean something else. Absent on a row built before it existed.
1849
+ */
1850
+ unplaced: z4.number().default(0),
1851
+ /** Distinct visits that produced it, never mode-adjusted. The gap between the two is the repeat behaviour. */
1852
+ convertingVisits: z4.number(),
1853
+ /** Null when it has never fired. */
1854
+ lastSeen: z4.string().nullable(),
1855
+ /**
1856
+ * The doors its events came in by in the window, in
1857
+ * {@link ANALYTICS_EVENT_DOORS} order. Empty when it has not fired.
1858
+ */
1859
+ doors: z4.array(z4.enum(ANALYTICS_EVENT_DOORS)).default([]),
1860
+ /** Proposed in this chat: counted from when it is published, so every report reads it as nothing until then. */
1861
+ staged: z4.boolean().optional()
1862
+ });
1863
+ var analyticsEventCatalogRowSchema = z4.object({
1864
+ /** `form:…` | `submit:…` | `page:…` | `exit:…` — parse with `parseEventKey`. */
1865
+ eventKey: z4.string(),
1866
+ /**
1867
+ * Which collector produced this key — and `both` when more than one did.
1868
+ *
1869
+ * On the row rather than in the key, which is the whole shape of the change
1870
+ * that removed the `server:` family: a picker can say where an event came
1871
+ * from without a filter round-trip, and a report can still separate the two
1872
+ * populations at any grain, but nothing downstream has to learn a second
1873
+ * vocabulary to count one.
1874
+ */
1875
+ origin: z4.enum(ANALYTICS_EVENT_ORIGINS),
1876
+ events: z4.number(),
1877
+ sessions: z4.number(),
1878
+ /** The Form node's kind, for a `form:` key. Empty otherwise. */
1879
+ nodeType: z4.string(),
1880
+ /** The Form this happened in, for a `form:` or `submit:` key. Empty otherwise. */
1881
+ flowSlug: z4.string(),
1882
+ /** Null when it has never fired — only possible for a row we already count. */
1883
+ lastSeen: z4.string().nullable(),
1884
+ /** Already counted as a conversion. Shown, never hidden: a row that vanished on being counted reads as a bug. */
1885
+ isCounted: z4.boolean(),
1886
+ /** The name it is counted under, when it is. */
1887
+ countedAs: z4.string(),
1888
+ /**
1889
+ * The doors on Sources this key's events came through, by name — the
1890
+ * `baker_source` each event carries. Empty for a key nothing on Sources
1891
+ * sent; more than one when two doors used one name.
1892
+ */
1893
+ sources: z4.array(z4.string()),
1894
+ /**
1895
+ * The doors this key's events came in by, in {@link ANALYTICS_EVENT_DOORS}
1896
+ * order, each with its own volume — only the doors it actually used.
1897
+ *
1898
+ * `origin` says site or systems; this says which of the four, which is the
1899
+ * question every picker is read to answer. Defaulted, so a store that
1900
+ * predates the column parses as "no door known" rather than failing.
1901
+ */
1902
+ doors: z4.array(z4.object({ door: z4.enum(ANALYTICS_EVENT_DOORS), events: z4.number(), sessions: z4.number() })).default([])
1903
+ });
1904
+ var analyticsAdDimensionRowSchema = z4.object({
1905
+ /** The dimension's value. Empty means "arrived carrying none of these". */
1906
+ value: z4.string(),
1907
+ /** Which platform stamped the click, from the click id rather than a label. */
1908
+ platform: z4.string(),
1909
+ sessions: z4.number(),
1910
+ convertingSessions: z4.number(),
1911
+ conversions: z4.number(),
1912
+ bouncedSessions: z4.number(),
1913
+ identifiedPeople: z4.number(),
1914
+ pageViews: z4.number(),
1915
+ engagementMs: z4.number(),
1916
+ /** Conversions per session, or null when nothing arrived. */
1917
+ conversionRate: z4.number().nullable(),
1918
+ /** Bounces per session, or null when nothing arrived. */
1919
+ bounceRate: z4.number().nullable()
1920
+ });
1921
+ var analyticsAdParamRowSchema = z4.object({
1922
+ name: z4.string(),
1923
+ /** Whether the value is stored, or only the fact that the name appeared. */
1924
+ captured: z4.boolean(),
1925
+ /** The role in force for the platform asked about, built-in or configured. */
1926
+ role: adParamRoleSchema.optional(),
1927
+ /**
1928
+ * True when this company said what it means, rather than Baker knowing it.
1929
+ *
1930
+ * The difference between a row that can be reset to a sensible default and
1931
+ * one where clearing it means "nobody has said".
1932
+ */
1933
+ configured: z4.boolean(),
1934
+ /**
1935
+ * Visits carrying this parameter **that arrived from the platform asked
1936
+ * about**, not visits carrying it anywhere.
1937
+ *
1938
+ * This used to be the second: one inventory of every parameter on every
1939
+ * visit, shown identically under each platform tab. That is wrong on the
1940
+ * facts, and confidently so. A visit arrives from one platform — it has one
1941
+ * click id — so `gclid` traffic cannot also be Meta traffic, and a Meta tab
1942
+ * listing `gad_campaignid` on 1,204 visits invited somebody to name a Google
1943
+ * parameter in Meta's vocabulary and then wonder why no report ever used it.
1944
+ * The count belongs to the platform or it is not a count of anything.
1945
+ */
1946
+ sessions: z4.number(),
1947
+ events: z4.number(),
1948
+ /** Up to five distinct values. Always empty for an uncaptured parameter. */
1949
+ sampleValues: z4.array(z4.string()),
1950
+ lastSeen: z4.string().optional(),
1951
+ /**
1952
+ * True when this row is here because somebody configured it, not because it
1953
+ * arrived.
1954
+ *
1955
+ * The row a mapping made before its first click. A tracking setup is
1956
+ * routinely written the week before the campaign runs, and a tool that can
1957
+ * only describe traffic it has already seen cannot be used at the one moment
1958
+ * somebody sits down to do this properly. Such a row has no visits and no
1959
+ * values, and says so rather than reading as a parameter that stopped
1960
+ * arriving.
1961
+ */
1962
+ awaitingTraffic: z4.boolean().optional()
1963
+ });
1964
+ var analyticsFlowDestinationsSchema = z4.object({
1965
+ flowSlug: z4.string(),
1966
+ /** Destination types seen — `meta`, `httpWebhook`, `hubspotForm`. */
1967
+ destinations: z4.array(z4.string()),
1968
+ lastSeen: z4.string().optional()
1969
+ });
1970
+ var analyticsAdPlatformTrafficSchema = z4.object({
1971
+ platform: z4.string(),
1972
+ sessions: z4.number(),
1973
+ conversions: z4.number(),
1974
+ /** How many of those visits carried any campaign parameter at all. */
1975
+ taggedSessions: z4.number()
1976
+ });
1977
+ var analyticsPageInfoSchema = z4.object({
1978
+ /** Which field of the response was paged. */
1979
+ block: z4.enum(["visitors", "submissions", "deliveries", "stream"]),
1980
+ page: z4.number().int(),
1981
+ pageSize: z4.number().int(),
1982
+ returned: z4.number().int(),
1983
+ hasMore: z4.boolean()
1984
+ });
1985
+ var analyticsTimelineRowSchema = z4.object({
1986
+ timestamp: z4.string(),
1987
+ /**
1988
+ * The visit this event belongs to, and the browser that made it.
1989
+ *
1990
+ * Empty on anything that belongs to neither — a settlement, and an event a
1991
+ * client's own server posted about somebody who was never on a page. Carried
1992
+ * because the raw feed (`stream`) is a company-wide list rather than one
1993
+ * visit's, so a row has to say who it was about before a reader can get from
1994
+ * it to the person. On a replay both are constant and simply confirm it.
1995
+ */
1996
+ sessionId: z4.string(),
1997
+ anonId: z4.string(),
1998
+ /**
1999
+ * Where the producer put this event in its own order, from 1. `0` means it
2000
+ * did not number this one.
2001
+ *
2002
+ * The tie-break that makes the replay a replay. The timestamp is
2003
+ * milliseconds and the Form engine emits several events in one synchronous
2004
+ * block, so a step completing, the identities it revealed and the next step
2005
+ * coming into view routinely share one — and sorted on the timestamp alone
2006
+ * they came back in an order that matched nothing that happened.
2007
+ */
2008
+ eventSeq: z4.number().int().nonnegative(),
2009
+ /** This event's identity, so two rows can be said to be the same event. */
2010
+ eventUid: z4.string(),
2011
+ /** `page_view`, `form_step_view`, `side_effect_dispatched`, … */
2012
+ eventType: z4.string(),
2013
+ /** `edge`, `beacon`, `server` — where the row was written from. */
2014
+ source: z4.string(),
2015
+ /**
2016
+ * `baker`, `external`, `export` — where the page was, which `source` does
2017
+ * not say. The two together are what decide the row's door; see
2018
+ * `ANALYTICS_EVENT_DOORS`.
2019
+ *
2020
+ * Defaulted rather than required: the column arrived after the corpus did
2021
+ * and carries no default of its own, so a row older than it reads `""`, and
2022
+ * that has to mean "Baker's, as everything was then" rather than fail the
2023
+ * whole row's parse.
2024
+ */
2025
+ deployment: z4.string().default(""),
2026
+ environment: z4.string(),
2027
+ /** The build the page was published from. */
2028
+ release: z4.string(),
2029
+ path: z4.string(),
2030
+ host: z4.string(),
2031
+ landingId: z4.string(),
2032
+ flowSlug: z4.string(),
2033
+ stepId: z4.string(),
2034
+ stepIndex: z4.number().int().nonnegative(),
2035
+ nodeType: z4.string(),
2036
+ triggerId: z4.string(),
2037
+ /** A page-defined event's own name, when this row is one. */
2038
+ eventName: z4.string(),
2039
+ /** Whatever the page attached to a custom event. Strings only, by design. */
2040
+ properties: z4.record(z4.string(), z4.string()),
2041
+ /** Where an outbound click or a link node was going, in full. */
2042
+ targetUrl: z4.string(),
2043
+ /** A number the page reported alongside the event. */
2044
+ value: z4.number(),
2045
+ /**
2046
+ * The currency that number is in, when it has one.
2047
+ *
2048
+ * Only a server-sent event carries it — a page reports a `value` on its own
2049
+ * terms, a CRM reports a deal in euros — and without it the replay prints a
2050
+ * bare `4200.5` beside a closed deal, which is a number nobody can act on.
2051
+ */
2052
+ valueCurrency: z4.string().default(""),
2053
+ /** The visitor's digest, when they had identified themselves by this point. */
2054
+ identityHash: z4.string(),
2055
+ /**
2056
+ * The browser to attribute this row to, once the identity has been resolved.
2057
+ *
2058
+ * `anonId` when the row has one, and otherwise the browser {@link identityHash}
2059
+ * resolves to through `identities`. Empty when neither exists.
2060
+ *
2061
+ * It is a separate field rather than a coalesce into `anonId` because the two
2062
+ * claims are not the same: `anonId` is the cookie the row was written with,
2063
+ * and a server-sent event was written with none and must not start claiming
2064
+ * one. This is the *read's* answer to "who was that", and it is retroactive
2065
+ * and cross-device by construction — a "Deal won" posted in March attaches to
2066
+ * the person the moment they type that address into a Form in April, and to
2067
+ * every browser they have used here.
2068
+ *
2069
+ * Only `event_stream` fills it. Empty everywhere else, which is honest: a
2070
+ * session replay deliberately does not resolve, because an event that
2071
+ * happened during no visit must not be placed inside one.
2072
+ */
2073
+ personAnonId: z4.string().default(""),
2074
+ /**
2075
+ * What this row knows the person by, when it does not know their browser:
2076
+ * `email` | `phone` | `external` | `click` | `cookie`, or empty.
2077
+ *
2078
+ * The feed's Who column reads it. A row naming a person by a means that has
2079
+ * no face here yet — a digest nobody has typed into a Form, an ad click, one
2080
+ * of Meta's cookies — is not a row about nobody, and rendering it as one is
2081
+ * what made the server-sent half of the feed look unattached to the rest.
2082
+ */
2083
+ knownBy: z4.string().default(""),
2084
+ /**
2085
+ * What this row counts as under the company's own conversion definitions, or
2086
+ * empty when it counts as nothing.
2087
+ *
2088
+ * The store's own key, projected rather than rebuilt here, so the feed and
2089
+ * the reports cannot disagree about what one event was. Two rows carrying the
2090
+ * same non-empty key are **one** conversion — the second is stored, listed,
2091
+ * and marked as already counted rather than hidden, because a sender who
2092
+ * posted a deal twice needs to see that the second request arrived.
2093
+ *
2094
+ * Only `event_stream` fills it; empty everywhere else.
2095
+ */
2096
+ conversionKey: z4.string().default(""),
2097
+ /** Which signal took this row for a machine (`ua`, `datacenter`, …). Empty on every human row. */
2098
+ botReason: z4.string().optional(),
2099
+ /**
2100
+ * The browser, OS, device and country the row came from. Only the feed fills
2101
+ * them: how somebody who just tested a page finds their own visit on it
2102
+ * without having typed an email.
2103
+ */
2104
+ browser: z4.string().optional(),
2105
+ os: z4.string().optional(),
2106
+ deviceType: z4.string().optional(),
2107
+ country: z4.string().optional(),
2108
+ /**
2109
+ * Which lines of a people search this row belongs to, by position in
2110
+ * `peopleSearch`. Empty when nobody was searched for.
2111
+ */
2112
+ personTerms: z4.array(z4.number()).optional(),
2113
+ /**
2114
+ * `email` | `phone` — which of the two they gave.
2115
+ *
2116
+ * Load-bearing rather than trivia: a visitor who fills in both fields
2117
+ * produces two `identify` rows in the same millisecond, and without the kind
2118
+ * a replay renders the same sentence twice and reads as a duplicated event.
2119
+ */
2120
+ identityKind: z4.string(),
2121
+ /**
2122
+ * The `user_data` block this event carried, exactly as it arrived.
2123
+ *
2124
+ * The contact digests (`email_sha256`, `phone_sha256`, `external_id_sha256`),
2125
+ * the click ids, Meta's cookies, and the advanced-matching /
2126
+ * enhanced-conversions fields — first name, city, postcode, country. Empty on
2127
+ * everything a page produced, which is most rows.
2128
+ *
2129
+ * **Per event, and deliberately not merged** — unlike the person card, which
2130
+ * merges the same fields newest-wins across everything anyone ever sent. The
2131
+ * question one event answers is "what did *this request* contain", and the
2132
+ * answer has to be allowed to be *worse* than what is known about the person
2133
+ * overall. That is how a sender finds the field they forgot to map: the
2134
+ * person has a postcode, and this event does not.
2135
+ */
2136
+ userData: z4.record(z4.string(), z4.string()).default({}),
2137
+ sideEffectType: z4.string(),
2138
+ sideEffectName: z4.string(),
2139
+ sideEffectId: z4.string(),
2140
+ tagId: z4.string(),
2141
+ messageId: z4.string(),
2142
+ /**
2143
+ * The submission this row belongs to.
2144
+ *
2145
+ * What ties a browser pixel and a server dispatch of the SAME submit
2146
+ * together. Without it they read as two unrelated things that happened to
2147
+ * occur in the same second.
2148
+ */
2149
+ eventId: z4.string(),
2150
+ runId: z4.string(),
2151
+ engagementMs: z4.number().int().nonnegative(),
2152
+ scrollDepth: z4.number().int().nonnegative(),
2153
+ /**
2154
+ * The A/B test this row was stamped into, and which side the edge served —
2155
+ * `a` for the page as it is, `b` for the new variant.
2156
+ *
2157
+ * Set only on rows a page under test produced, which is how a person's story
2158
+ * can say which version they were shown. Empty on a server-sent row: a CRM
2159
+ * knows nothing about the split, and the conversion it posts is attributed
2160
+ * to a side by WHO did it (see `experiment_conversions`), never by a stamp.
2161
+ */
2162
+ experimentId: z4.string().default(""),
2163
+ variant: z4.string().default(""),
2164
+ /** `success` | `failed` | `""` for a dispatch that has not settled yet. */
2165
+ outcome: z4.string(),
2166
+ /** What the destination said when it refused. Empty on success. */
2167
+ error: z4.string(),
2168
+ /** The destination's own id for the record it created, when it gave one. */
2169
+ providerRef: z4.string(),
2170
+ /** When the destination answered, so "it took eleven seconds" is sayable. */
2171
+ settledAt: z4.string()
2172
+ });
2173
+ var analyticsSubmissionRowSchema = z4.object({
2174
+ sessionId: z4.string(),
2175
+ flowSlug: z4.string(),
2176
+ startedAt: z4.string(),
2177
+ lastAt: z4.string(),
2178
+ anonId: z4.string(),
2179
+ identityHash: z4.string(),
2180
+ identityKind: z4.string(),
2181
+ landingId: z4.string(),
2182
+ path: z4.string(),
2183
+ /** Steps they saw. The denominator for "how far did they get". */
2184
+ stepsReached: z4.number().int().nonnegative(),
2185
+ /** Steps they actually handed something over on. Zero means no attempt. */
2186
+ stepsSubmitted: z4.number().int().nonnegative(),
2187
+ submittedStepIds: z4.array(z4.string()),
2188
+ /** The furthest step they reached, for naming where they stopped. */
2189
+ lastStepId: z4.string(),
2190
+ /** Whether the Form reached an ending, by any of its three routes. */
2191
+ finished: z4.boolean(),
2192
+ conversions: z4.number().int().nonnegative(),
2193
+ destinations: z4.array(z4.string()),
2194
+ /** Destinations that fired as a pixel in the page. */
2195
+ browserDestinations: z4.array(z4.string()),
2196
+ /** Destinations Baker dispatched from the server. */
2197
+ serverDestinations: z4.array(z4.string()),
2198
+ /**
2199
+ * Server-side dispatch runs — the counterpart of `serverDestinations`, NOT of
2200
+ * `destinations`.
2201
+ *
2202
+ * Zero is not "this went nowhere", and reading it that way is a mistake
2203
+ * already made once: it is zero for an attempt abandoned before the step that
2204
+ * fires a destination, and zero for a Form whose only destination is a
2205
+ * browser pixel. `destinations` is the union of both sides and is the column
2206
+ * that answers "did this reach anything at all".
2207
+ */
2208
+ dispatched: z4.number().int().nonnegative(),
2209
+ succeeded: z4.number().int().nonnegative(),
2210
+ failed: z4.number().int().nonnegative(),
2211
+ /** Dispatched and never settled — "wait", as against "act". */
2212
+ pending: z4.number().int().nonnegative(),
2213
+ sampleError: z4.string(),
2214
+ providerRefs: z4.array(z4.string()),
2215
+ /** The submission ids, which is how the panel opens the sealed payload. */
2216
+ eventIds: z4.array(z4.string())
2217
+ });
2218
+ var analyticsVisitorSessionSchema = z4.object({
2219
+ sessionId: z4.string(),
2220
+ startedAt: z4.string(),
2221
+ endedAt: z4.string(),
2222
+ entryPath: z4.string(),
2223
+ entryLandingId: z4.string(),
2224
+ utmCampaign: z4.string(),
2225
+ referrerSource: z4.string(),
2226
+ deviceType: z4.string(),
2227
+ pageViews: z4.number().int().nonnegative(),
2228
+ conversions: z4.number().int().nonnegative(),
2229
+ /**
2230
+ * True for the visits made BEFORE we knew who this was.
2231
+ *
2232
+ * Shown rather than smoothed over: a history without it invites the reading
2233
+ * that we recognised them all along, when in fact these visits were only
2234
+ * attributed backwards through the browser after they identified themselves.
2235
+ */
2236
+ wasAnonymous: z4.boolean(),
2237
+ engagementMs: z4.number().int().nonnegative()
2238
+ });
2239
+ var analyticsVisitProfileSchema = z4.object({
2240
+ sessionId: z4.string(),
2241
+ startedAt: z4.string(),
2242
+ endedAt: z4.string(),
2243
+ entryPath: z4.string(),
2244
+ entryLandingId: z4.string(),
2245
+ country: z4.string(),
2246
+ region: z4.string(),
2247
+ city: z4.string(),
2248
+ timezone: z4.string(),
2249
+ /** The network the visit came from. What separates a datacentre from a person. */
2250
+ asOrganization: z4.string(),
2251
+ deviceType: z4.string(),
2252
+ browser: z4.string(),
2253
+ os: z4.string(),
2254
+ referrerSource: z4.string(),
2255
+ referrerDomain: z4.string(),
2256
+ utmSource: z4.string(),
2257
+ utmMedium: z4.string(),
2258
+ utmCampaign: z4.string(),
2259
+ /**
2260
+ * Which platform the click id proves, in the `AD_PLATFORMS` vocabulary —
2261
+ * `google` | `meta` | `tiktok` | `x` | `linkedin` | `microsoft` | `""`.
2262
+ *
2263
+ * The same spelling every mark, mapping and report uses. It briefly said
2264
+ * `google_ads` / `meta_ads` here alone, which meant every logo lookup on the
2265
+ * People screen missed and a paid visit drew a neutral globe.
2266
+ */
2267
+ clickPlatform: z4.string(),
2268
+ /** Every ValueTrack-style parameter the URL carried, unresolved. */
2269
+ campaignParams: z4.record(z4.string(), z4.string()),
2270
+ /** The browser's own cookie id. One person can have several. */
2271
+ anonId: z4.string(),
2272
+ identityHash: z4.string(),
2273
+ /** What the digest was made of — `email`, `phone`. Never the value. */
2274
+ identityKind: z4.string(),
2275
+ pageViews: z4.number().int().nonnegative(),
2276
+ conversions: z4.number().int().nonnegative(),
2277
+ engagementMs: z4.number().int().nonnegative()
2278
+ });
2279
+ var analyticsPersonKeySchema = z4.object({
2280
+ /** `email` | `phone` | `external` | `browser` | a click-id name | `fbp` | `fbc`. */
2281
+ kind: z4.string(),
2282
+ /** A digest for a contact detail, the value itself for a cookie or a click id. */
2283
+ value: z4.string(),
2284
+ firstSeen: z4.string(),
2285
+ lastSeen: z4.string(),
2286
+ /** How many times it was observed beside another key — every submission repeats it. */
2287
+ observations: z4.number().int().nonnegative(),
2288
+ sessions: z4.number().int().nonnegative(),
2289
+ /** `client` | `edge` | `server` | `ingest` — which collector first saw it. */
2290
+ source: z4.string(),
2291
+ /** The Form it was first seen on, where it came from one. */
2292
+ flowSlug: z4.string(),
2293
+ landingId: z4.string()
2294
+ });
2295
+ var analyticsPersonProfileSchema = z4.object({
2296
+ firstSeen: z4.string(),
2297
+ lastSeen: z4.string(),
2298
+ sessions: z4.number().int().nonnegative(),
2299
+ /** How many browsers resolved to this person. More than one is cross-device. */
2300
+ devices: z4.number().int().nonnegative(),
2301
+ pageViews: z4.number().int().nonnegative(),
2302
+ conversions: z4.number().int().nonnegative(),
2303
+ /**
2304
+ * What they are worth, per currency — `{ EUR: 4753 }`.
2305
+ *
2306
+ * A map rather than an amount and a code, because the two-column shape had
2307
+ * no honest answer for somebody with a deal in each of two currencies: it
2308
+ * summed them and labelled the total with whichever code came back first.
2309
+ * Only a server event ever carries money, and a retried post is counted
2310
+ * once, on `event_uid`.
2311
+ */
2312
+ money: z4.record(z4.string(), z4.number()),
2313
+ engagementMs: z4.number().int().nonnegative(),
2314
+ /** How many of their events a client's own server posted. */
2315
+ serverEvents: z4.number().int().nonnegative(),
2316
+ country: z4.string(),
2317
+ region: z4.string(),
2318
+ city: z4.string(),
2319
+ deviceType: z4.string(),
2320
+ browser: z4.string(),
2321
+ os: z4.string(),
2322
+ utmSource: z4.string(),
2323
+ utmMedium: z4.string(),
2324
+ utmCampaign: z4.string(),
2325
+ referrerSource: z4.string(),
2326
+ entryLandingId: z4.string(),
2327
+ entryPath: z4.string(),
2328
+ /**
2329
+ * The customer-matching block, merged newest-wins across everything anyone
2330
+ * has ever told us about them — `city`, `postal_code`, `country`,
2331
+ * `first_name_sha256`, `fbp`. Keyed exactly as the store holds it, so a key
2332
+ * ending `_sha256` says its value is a digest and cannot be shown.
2333
+ */
2334
+ matchKeys: z4.record(z4.string(), z4.string())
2335
+ });
2336
+ var analyticsVisitorRowSchema = z4.object({
2337
+ anonId: z4.string(),
2338
+ firstSeen: z4.string(),
2339
+ lastSeen: z4.string(),
2340
+ sessions: z4.number().int().nonnegative(),
2341
+ pageViews: z4.number().int().nonnegative(),
2342
+ conversions: z4.number().int().nonnegative(),
2343
+ formTriggers: z4.number().int().nonnegative(),
2344
+ outboundClicks: z4.number().int().nonnegative(),
2345
+ engagementMs: z4.number().int().nonnegative(),
2346
+ /** The visit to open by default — the most recent one. */
2347
+ lastSessionId: z4.string(),
2348
+ entryPath: z4.string(),
2349
+ entryLandingId: z4.string(),
2350
+ lastPath: z4.string(),
2351
+ referrerSource: z4.string(),
2352
+ referrerDomain: z4.string(),
2353
+ utmSource: z4.string(),
2354
+ utmMedium: z4.string(),
2355
+ utmCampaign: z4.string(),
2356
+ clickPlatform: z4.string(),
2357
+ campaignParams: z4.record(z4.string(), z4.string()),
2358
+ /**
2359
+ * The click ids this person arrived on, by their own names — `gclid`,
2360
+ * `fbclid`, `msclkid`, `li_fat_id`, `ttclid`, `twclid`, `wbraid`, `gbraid`,
2361
+ * `dclid`, `rdt_cid`, `epik`, `sccid`, `oppref`.
2362
+ *
2363
+ * Only the ones that were present. The endpoint has always returned all eight
2364
+ * columns and nothing above it carried them, so the one screen whose subject
2365
+ * is a person could name the platform that paid for the click and not the
2366
+ * click — which is the value a platform's own reporting is matched on, and
2367
+ * therefore the value somebody is looking for when a conversion did not show
2368
+ * up on the other side.
2369
+ */
2370
+ clickIds: z4.record(z4.string(), z4.string()),
2371
+ country: z4.string(),
2372
+ region: z4.string(),
2373
+ city: z4.string(),
2374
+ timezone: z4.string(),
2375
+ asOrganization: z4.string(),
2376
+ deviceType: z4.string(),
2377
+ browser: z4.string(),
2378
+ os: z4.string(),
2379
+ identityHash: z4.string(),
2380
+ identityKind: z4.string()
2381
+ });
2382
+ var analyticsMeasureScopeSchema = z4.object({
2383
+ scope: z4.enum(["campaigns", "outcomes", "all", "unknown"]),
2384
+ /** Every event the tag on the client's own site sent in this window. */
2385
+ websiteEvents: z4.number(),
2386
+ /** Browser ids it minted off-Baker. Any at all means the tag is on `all`. */
2387
+ websiteNewVisitors: z4.number()
2388
+ });
2389
+ var analyticsQueryDataSchema = z4.object({
2390
+ preset: analyticsPresetSchema,
2391
+ window: analyticsWindowSchema,
2392
+ totals: analyticsTotalsSchema,
2393
+ trend: z4.array(analyticsTrendPointSchema).optional(),
2394
+ topPages: z4.array(analyticsPageRowSchema).optional(),
2395
+ topSources: z4.array(analyticsSourceRowSchema).optional(),
2396
+ topCampaigns: z4.array(analyticsCampaignRowSchema).optional(),
2397
+ countries: z4.array(analyticsDimensionRowSchema).optional(),
2398
+ devices: z4.array(analyticsDimensionRowSchema).optional(),
2399
+ funnels: z4.array(analyticsFunnelSchema).optional(),
2400
+ flowSummary: z4.array(analyticsFlowSummarySchema).optional(),
2401
+ flowPaths: z4.array(analyticsFlowEdgeSchema).optional(),
2402
+ triggers: z4.array(analyticsTriggerRowSchema).optional(),
2403
+ releases: z4.array(analyticsReleaseRowSchema).optional(),
2404
+ paid: z4.array(analyticsPaidRowSchema).optional(),
2405
+ measureScope: analyticsMeasureScopeSchema.optional(),
2406
+ deliveries: z4.array(analyticsDeliveryRowSchema).optional(),
2407
+ submissions: z4.array(analyticsSubmissionRowSchema).optional(),
2408
+ geo: z4.array(analyticsGeoRowSchema).optional(),
2409
+ bots: z4.array(analyticsBotRowSchema).optional(),
2410
+ visitorCompanies: z4.array(analyticsVisitorCompanyRowSchema).optional(),
2411
+ landings: z4.array(analyticsLandingRowSchema).optional(),
2412
+ tags: z4.array(analyticsTagRowSchema).optional(),
2413
+ customEvents: z4.array(analyticsCustomEventRowSchema).optional(),
2414
+ eventBreakdown: z4.array(analyticsEventBreakdownRowSchema).optional(),
2415
+ customFunnel: z4.array(analyticsCustomFunnelStepSchema).optional(),
2416
+ deviceBreakdown: z4.array(analyticsDeviceRowSchema).optional(),
2417
+ realtime: analyticsRealtimeSchema.optional(),
2418
+ adDimensions: z4.array(analyticsAdDimensionRowSchema).optional(),
2419
+ adParams: z4.array(analyticsAdParamRowSchema).optional(),
2420
+ /**
2421
+ * Parameters arriving on visits no platform can be named for.
2422
+ *
2423
+ * Kept apart rather than folded into the platform's own list, and kept rather
2424
+ * than dropped. Folding them in is what made every tab identical; dropping
2425
+ * them would lose a parameter that arrives on hand-tagged links, on an email
2426
+ * campaign, or on paid traffic whose click id an ad blocker removed — and
2427
+ * losing it silently, which is the one outcome worse than showing it in the
2428
+ * wrong place. They are evidence, not a to-do list: there is no platform to
2429
+ * map them under, so a reader who recognises one adds it by name to the
2430
+ * platform they know it belongs to.
2431
+ */
2432
+ adParamsUnattributed: z4.array(analyticsAdParamRowSchema).optional(),
2433
+ adPlatformTraffic: z4.array(analyticsAdPlatformTrafficSchema).optional(),
2434
+ flowDestinations: z4.array(analyticsFlowDestinationsSchema).optional(),
2435
+ /** Present only on a report that was asked for by the page. */
2436
+ pageInfo: analyticsPageInfoSchema.optional(),
2437
+ conversions: z4.array(analyticsConversionRowSchema).optional(),
2438
+ /** Every event these pages produced, counted or not. The "add a conversion" picker. */
2439
+ eventCatalog: z4.array(analyticsEventCatalogRowSchema).optional(),
2440
+ timeline: z4.array(analyticsTimelineRowSchema).optional(),
2441
+ /**
2442
+ * The raw feed. Same row shape as a replay, because it is the same rows —
2443
+ * what changes is that this one is bounded by a window rather than by a visit.
2444
+ */
2445
+ stream: z4.array(analyticsTimelineRowSchema).optional(),
2446
+ /** How each line of a people search on `stream` was read — what `personTerms` points at. */
2447
+ peopleSearch: z4.array(peopleSearchTermSchema).optional(),
2448
+ /** `stream` only: what that list left off as machine traffic. Absent when it is narrowed past what a count can follow. */
2449
+ hiddenMachines: analyticsHiddenMachinesSchema.optional(),
2450
+ visitorSessions: z4.array(analyticsVisitorSessionSchema).optional(),
2451
+ /** Every key this person is known by — contact details, browsers, clicks, cookies. */
2452
+ personKeys: z4.array(analyticsPersonKeySchema).optional(),
2453
+ /** The same person, rolled up: their totals across every device, and what is known about them. */
2454
+ personProfile: analyticsPersonProfileSchema.optional(),
2455
+ visitProfile: analyticsVisitProfileSchema.optional(),
2456
+ visitors: z4.array(analyticsVisitorRowSchema).optional(),
2457
+ /**
2458
+ * The same totals for the window immediately before this one, when asked for.
2459
+ *
2460
+ * The comparison window is returned alongside rather than reduced to a set of
2461
+ * deltas, so a caller can show either side of it and does not have to trust
2462
+ * our arithmetic to render "1,240 vs 980".
2463
+ */
2464
+ previous: z4.object({
2465
+ window: analyticsWindowSchema,
2466
+ totals: analyticsTotalsSchema
2467
+ }).optional()
2468
+ });
2469
+ var analyticsQueryResponseSchema = z4.object({
2470
+ ok: z4.literal(true),
2471
+ data: analyticsQueryDataSchema,
2472
+ warnings: z4.array(analyticsWarningSchema).optional(),
2473
+ hints: z4.array(z4.string()).optional()
2474
+ });
2475
+ var analyticsConversionsRequestSchema = z4.object({
2476
+ set: z4.array(
2477
+ z4.object({
2478
+ /** `form:<flow>:<step>:<trigger>` | `submit:<flow>` | `page:<name>` | `exit:<host>`. */
2479
+ eventKey: z4.string().max(320),
2480
+ name: z4.string().max(MAX_CONVERSION_NAME),
2481
+ countMode: z4.enum(CONVERSION_COUNT_MODES).optional()
2482
+ })
2483
+ ).max(60).optional(),
2484
+ remove: z4.array(z4.string().max(320)).max(60).optional(),
2485
+ /** Every key counted under `from` moves to `to`, and the sends under the name go with it. */
2486
+ rename: z4.object({ from: z4.string().min(1).max(MAX_CONVERSION_NAME), to: z4.string().min(1).max(MAX_CONVERSION_NAME) }).optional()
2487
+ });
2488
+ var analyticsConversionsResponseSchema = z4.object({
2489
+ ok: z4.literal(true),
2490
+ data: z4.object({
2491
+ /**
2492
+ * What the company counts — inside a chat, with this chat's proposal on
2493
+ * top: `staged` marks a definition that applies when the chat is published.
2494
+ */
2495
+ definitions: z4.array(
2496
+ z4.object({
2497
+ eventKey: z4.string(),
2498
+ name: z4.string(),
2499
+ countMode: z4.string(),
2500
+ updatedAt: z4.number(),
2501
+ staged: z4.boolean().optional()
2502
+ })
2503
+ ),
2504
+ /** This chat's proposal, when it has one: counted from Publish, and gone if the chat is discarded. */
2505
+ staged: z4.object({
2506
+ set: z4.array(z4.object({ eventKey: z4.string(), name: z4.string() })),
2507
+ remove: z4.array(z4.string())
2508
+ }).optional()
2509
+ }),
2510
+ hints: z4.array(z4.string()).optional()
2511
+ });
2512
+ var analyticsMappingRequestSchema = z4.object({
2513
+ /**
2514
+ * Which platform these operations are about. Required for a change.
2515
+ *
2516
+ * There is no cross-platform entry to write: the platforms do not describe
2517
+ * the same world, so `cid` is TikTok's ad and half the internet's campaign,
2518
+ * and a keyword on Meta traffic is not a thing that can exist. Omit it only
2519
+ * to read the mapping back.
2520
+ */
2521
+ platform: z4.enum(AD_PLATFORMS).optional(),
2522
+ /** Parameter name → role, on `platform`. Merged over what is stored. */
2523
+ set: z4.record(z4.string().max(64), adParamRoleSchema).optional(),
2524
+ /** Parameter names to stop reading, on `platform`. Applied after `set`. */
2525
+ remove: z4.array(z4.string().max(64)).max(64).optional()
2526
+ });
2527
+ var analyticsMappingResponseSchema = z4.object({
2528
+ ok: z4.literal(true),
2529
+ data: z4.object({
2530
+ /**
2531
+ * This company's own entries after the change, keyed `<platform>/<name>`.
2532
+ *
2533
+ * Every platform's, not only the one the request named: a caller that has
2534
+ * just mapped `cid` on TikTok is usually about to be asked the same
2535
+ * question about Google, and the answer there is different.
2536
+ */
2537
+ params: z4.record(z4.string(), adParamRoleSchema),
2538
+ /**
2539
+ * Names that are understood without being configured.
2540
+ *
2541
+ * Returned so a caller can tell "already handled" from "not mapped" without
2542
+ * shipping a copy of the built-in list, and so an agent does not spend a
2543
+ * turn configuring `keyword` to mean keyword.
2544
+ */
2545
+ builtIn: z4.array(z4.string()),
2546
+ /**
2547
+ * What the client's own ad account says about each parameter just staged.
2548
+ *
2549
+ * Present only when a Session staged a `set` on a platform whose tracking
2550
+ * configuration Baker can read. `contradicted` is the entry worth stopping
2551
+ * for: the account fills that name with a placeholder meaning something
2552
+ * else, so the answer just given would produce a report that is wrong and
2553
+ * looks entirely plausible.
2554
+ */
2555
+ evidence: z4.record(
2556
+ z4.string(),
2557
+ z4.object({
2558
+ status: z4.enum(["confirmed", "contradicted", "unseen", "not_read"]),
2559
+ macro: z4.string().optional(),
2560
+ suggestedRole: adParamRoleSchema.optional(),
2561
+ source: z4.string().optional(),
2562
+ reason: z4.string().optional()
2563
+ })
2564
+ ).optional(),
2565
+ updatedAt: z4.number().nullable()
2566
+ }),
2567
+ hints: z4.array(z4.string()).optional()
2568
+ });
2569
+ var analyticsTrackingRequestSchema = z4.object({
2570
+ platform: z4.enum(AD_PLATFORMS).optional(),
2571
+ days: z4.number().int().min(1).max(365).optional()
2572
+ });
2573
+ var trackingDimensionSchema = z4.object({
2574
+ role: adParamRoleSchema,
2575
+ /** The platform's own macro for it — what goes in the URL. */
2576
+ macro: z4.string(),
2577
+ /** The account's own spelling where it has one, else the canonical name. */
2578
+ name: z4.string(),
2579
+ /**
2580
+ * What has to happen for this dimension to reach a report.
2581
+ *
2582
+ * Four states rather than a boolean, because two of them need opposite fixes
2583
+ * and one of them is not a finding at all. `unmapped` is one
2584
+ * `baker analytics map` call and repairs the history with it; `missing` is a
2585
+ * change to the ad account and everything before it stays unattributable;
2586
+ * `unknown` means no visit arrived and the account could not be read, which
2587
+ * must never be reported as untagged.
2588
+ */
2589
+ state: z4.enum(["covered", "unmapped", "missing", "unknown"]),
2590
+ evidence: z4.string().optional(),
2591
+ note: z4.string().optional()
2592
+ });
2593
+ var analyticsTrackingPlatformSchema = z4.object({
2594
+ platform: z4.enum(AD_PLATFORMS),
2595
+ label: z4.string(),
2596
+ sessions: z4.number(),
2597
+ /** Whether the ad account itself could be read, and why not when it could not. */
2598
+ account: z4.object({ read: z4.boolean(), templates: z4.number(), reason: z4.string().optional() }),
2599
+ dimensions: z4.array(trackingDimensionSchema),
2600
+ /** Names the URLs already carry that Baker does not read yet. */
2601
+ unmapped: z4.record(z4.string(), adParamRoleSchema),
2602
+ mapCommand: z4.string(),
2603
+ unexplained: z4.array(z4.object({ name: z4.string(), value: z4.string() })),
2604
+ /** The pairs to append to the account's tagging, or `""`. */
2605
+ suffix: z4.string(),
2606
+ whereItGoes: z4.string(),
2607
+ /** Which level to put them at, who can write it, and how an existing value is treated. */
2608
+ fix: z4.string()
2609
+ });
2610
+ var analyticsTrackingResponseSchema = z4.object({
2611
+ ok: z4.literal(true),
2612
+ data: z4.object({ days: z4.number(), platforms: z4.array(analyticsTrackingPlatformSchema) }),
2613
+ hints: z4.array(z4.string()).optional()
2614
+ });
2615
+ var boundedReference = (max) => z4.string().transform((value) => cutToLength(value, max));
2616
+ var submissionRecordRequestSchema = z4.object({
2617
+ /**
2618
+ * Injected by the Worker from the host or the site key. Never from the page.
2619
+ *
2620
+ * One of the two fields that is still required, because a copy that cannot
2621
+ * be filed under a company cannot be found again by anybody. Bounding it
2622
+ * would produce a row belonging to a company that does not exist, which is
2623
+ * worse than refusing — this is the case where refusing is right.
2624
+ */
2625
+ companyId: z4.string().min(1),
2626
+ /** Shared with every destination this submit was sent to, and with its event. */
2627
+ submissionId: z4.string().min(1).pipe(boundedReference(128)),
2628
+ /**
2629
+ * The Form execution this step belongs to, or `""` from a page published
2630
+ * before attempts existed.
2631
+ *
2632
+ * `submissionId` is minted per node, so two steps of one filling produce two
2633
+ * copies with nothing joining them. This is that join. It changes nothing
2634
+ * else here: a sealed copy is still per step, and still the only payload
2635
+ * anybody keeps.
2636
+ */
2637
+ attemptId: boundedReference(128).default(""),
2638
+ flowSlug: boundedReference(120).default(""),
2639
+ nodeId: boundedReference(120).default(""),
2640
+ nodeType: boundedReference(40).default(""),
2641
+ landingId: boundedReference(120).default(""),
2642
+ release: boundedReference(64).default(""),
2643
+ pageUrl: boundedReference(2048).default(""),
2644
+ /**
2645
+ * A SHA-256 digest, or absent. Never an address.
2646
+ *
2647
+ * The join from a recovered copy to every session the same person had,
2648
+ * without anybody having to open the copy to get there.
2649
+ */
2650
+ identityHash: boundedReference(128).optional(),
2651
+ /**
2652
+ * Degraded rather than refused, like everything else here: an unrecognised
2653
+ * kind costs the copy one label, and refusing it would cost the copy.
2654
+ */
2655
+ identityKind: z4.enum(["email", "phone"]).optional().catch(void 0),
2656
+ /** Injected by the Worker's edge. Kept exactly here and as a /24 everywhere else. */
2657
+ clientIp: boundedReference(64).nullish(),
2658
+ /**
2659
+ * Every answer on the step, free text included. Sealed on arrival.
2660
+ *
2661
+ * Bounded rather than length-checked, and that is the whole of it: a `max()`
2662
+ * here refused the **entire copy** over one long answer, so a visitor who
2663
+ * pasted a paragraph into a free-text field lost the email and the budget
2664
+ * beside it too. See {@link boundSubmissionAnswers}.
2665
+ */
2666
+ answers: z4.record(z4.string(), z4.string()).transform(boundSubmissionAnswers)
2667
+ });
2668
+
2669
+ // ../api/src/analytics/busy.ts
2670
+ var ANALYTICS_BUSY_MESSAGE = "Analytics is busy right now. The numbers will be there in a moment \u2014 try again shortly.";
2671
+ function isAnalyticsBusy(message) {
2672
+ return typeof message === "string" && message.includes(ANALYTICS_BUSY_MESSAGE);
2673
+ }
2674
+ var ANALYTICS_BUSY_FIX = "Nothing went wrong and nothing was lost \u2014 the analytics store was briefly at capacity. Wait a few seconds and ask for the same report again. If you were in the middle of a larger job, carry on with the rest of it and come back to this read; do not abandon the job.";
2675
+ var ANALYTICS_BUSY_RETRY_MS = 5e3;
2676
+ async function retryOnceIfBusy(read, messageOf, sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms))) {
2677
+ try {
2678
+ return await read();
2679
+ } catch (caught) {
2680
+ if (!isAnalyticsBusy(messageOf(caught))) throw caught;
2681
+ await sleep(ANALYTICS_BUSY_RETRY_MS);
2682
+ return await read();
2683
+ }
2684
+ }
2685
+
2686
+ // ../api/src/analytics/conversionNames.ts
2687
+ function normalizeConversionName(name) {
2688
+ return name.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, " ").trim().split(" ").filter((word) => word !== "").map((word) => word.length > 3 && word.endsWith("s") ? word.slice(0, -1) : word).join(" ");
2689
+ }
2690
+ function findNameCollision(name, existing) {
2691
+ const normalized = normalizeConversionName(name);
2692
+ return existing.find((candidate) => candidate !== name && normalizeConversionName(candidate) === normalized) ?? null;
2693
+ }
2694
+ var STANDARD_CONVERSION_NAMES = [
2695
+ { name: "Lead", meaning: "Somebody handed over contact details" },
2696
+ { name: "Booked a call", meaning: "A meeting or demo was scheduled" },
2697
+ { name: "Quote requested", meaning: "Somebody asked what it would cost" },
2698
+ { name: "Purchase", meaning: "Money changed hands" },
2699
+ { name: "Signed up", meaning: "An account or trial was created" },
2700
+ { name: "Subscribed", meaning: "Somebody opted in to hear from them again" },
2701
+ { name: "Downloaded", meaning: "A guide, price list or asset was taken" },
2702
+ { name: "Contacted us", meaning: "A call, WhatsApp or email started from the page" }
2703
+ ];
2704
+
2705
+ // ../api/src/analytics/destinations.ts
2706
+ var CONVERSION_SEND_PREFIX = "conversionSend:";
2707
+ function isConversionSend(type) {
2708
+ return type.startsWith(CONVERSION_SEND_PREFIX);
2709
+ }
2710
+ var SERVER_SIDE_SENDER_TAG = {
2711
+ metaCapi: "meta",
2712
+ chatgptAdsCapi: "chatgptAds",
2713
+ googleAdsCapi: "googleAds",
2714
+ linkedinCapi: "linkedinInsightTag",
2715
+ twitterAdsCapi: "twitterAds",
2716
+ ga4Mp: "googleAnalytics"
2717
+ };
2718
+ var DESTINATION_NAMES = {
2719
+ email: "Email",
2720
+ httpWebhook: "HTTP Webhook",
2721
+ zapier: "Zapier",
2722
+ tiktok: "TikTok Pixel",
2723
+ pinterest: "Pinterest Tag",
2724
+ googleTagManager: "Google Tag Manager",
2725
+ amplitude: "Amplitude",
2726
+ hotjar: "Hotjar",
2727
+ clarity: "Microsoft Clarity",
2728
+ hubspot: "HubSpot Events",
2729
+ vwo: "VWO",
2730
+ posthog: "PostHog",
2731
+ datafast: "DataFast",
2732
+ code: "Custom Code",
2733
+ pipedrive: "Pipedrive",
2734
+ googleSpreadsheet: "Google Sheets",
2735
+ hubspotForm: "HubSpot Form",
2736
+ goHighlevelContact: "GoHighLevel",
2737
+ shopifyCustomer: "Shopify",
2738
+ crmble: "Crmble",
2739
+ activeCampaignContact: "ActiveCampaign"
2740
+ };
2741
+ function destinationKey(type) {
2742
+ const platform = isConversionSend(type) ? type.slice(CONVERSION_SEND_PREFIX.length) : type;
2743
+ return SERVER_SIDE_SENDER_TAG[platform] ?? platform;
2744
+ }
2745
+ function destinationName(type) {
2746
+ if (type === "") return "";
2747
+ const key = destinationKey(type);
2748
+ if (isSendPlatform(key)) return SEND_PLATFORM_SPECS[key].title;
2749
+ return DESTINATION_NAMES[key] ?? type;
2750
+ }
2751
+
2752
+ // ../api/src/analytics/row.ts
2753
+ var EVENT_ITEMS_MAX = 250;
2754
+
2755
+ // ../api/src/analytics/triggers.ts
2756
+ var TRIGGERS = {
2757
+ "calendlyEvent.eventScheduled": {
2758
+ what: "Call booked",
2759
+ meaning: "Somebody picked a slot and confirmed it. This is the booking."
2760
+ },
2761
+ "calendlyEvent.dateAndTimeSelected": {
2762
+ what: "Time picked",
2763
+ meaning: "Somebody chose a slot but has not confirmed the booking yet."
2764
+ },
2765
+ "calendlyEvent.eventTypeViewed": {
2766
+ what: "Calendar opened",
2767
+ meaning: "The calendar appeared. Nobody has picked a time yet.",
2768
+ lifecycle: true
2769
+ },
2770
+ "calendlyEvent.profilePageViewed": {
2771
+ what: "Booking page shown",
2772
+ meaning: "Calendly's own page appeared. Nobody has picked a time yet.",
2773
+ lifecycle: true
2774
+ },
2775
+ "customForm.onFormSubmitted": {
2776
+ what: "Form submitted",
2777
+ meaning: "Somebody filled this step in and sent it."
2778
+ },
2779
+ "highlevelEvent.appointmentScheduled": {
2780
+ what: "Appointment booked",
2781
+ meaning: "Somebody picked a slot and confirmed it. This is the booking."
2782
+ },
2783
+ "highlevelEvent.calendarLoaded": {
2784
+ what: "Calendar finished loading",
2785
+ meaning: "The calendar appeared. Nobody has picked a time yet.",
2786
+ lifecycle: true
2787
+ },
2788
+ "highlevelFormEvent.formSubmitted": {
2789
+ what: "Form submitted",
2790
+ meaning: "Somebody filled the form in and sent it."
2791
+ },
2792
+ "highlevelFormEvent.formLoaded": {
2793
+ what: "Form finished loading",
2794
+ meaning: "The form appeared. Nobody has typed anything yet.",
2795
+ lifecycle: true
2796
+ },
2797
+ "hubspotForm.onFormSubmitted": {
2798
+ what: "Form submitted",
2799
+ meaning: "Somebody filled the form in and sent it. This is the one that means a lead."
2800
+ },
2801
+ "hubspotForm.onBeforeFormSubmit": {
2802
+ what: "Form about to be sent",
2803
+ meaning: "Fires an instant before the form is sent \u2014 not the same as it arriving.",
2804
+ lifecycle: true
2805
+ },
2806
+ "hubspotForm.onFormReady": {
2807
+ what: "Form finished loading",
2808
+ meaning: "The form appeared. Nobody has typed anything yet.",
2809
+ lifecycle: true
2810
+ },
2811
+ "hubspotForm.onBeforeFormInit": {
2812
+ what: "Form starting to load",
2813
+ meaning: "Fires before the form has even drawn. It only means the page was opened.",
2814
+ lifecycle: true
2815
+ },
2816
+ "hubspotMeeting.onMeetingScheduled": {
2817
+ what: "Meeting booked",
2818
+ meaning: "Somebody picked a slot and confirmed it. This is the booking."
2819
+ },
2820
+ "link.onClick": {
2821
+ what: "Link clicked",
2822
+ meaning: "Somebody clicked the link on this step and left for wherever it points."
2823
+ },
2824
+ "savvycalEvent.scheduled": {
2825
+ what: "Call booked",
2826
+ meaning: "Somebody picked a slot and confirmed it. This is the booking."
2827
+ },
2828
+ "text.onTextDisplayed": {
2829
+ what: "Screen shown",
2830
+ meaning: "This screen appeared. On a thank-you screen that is the outcome; elsewhere it is not."
2831
+ },
2832
+ "text.onButtonClicked": {
2833
+ what: "Button pressed",
2834
+ meaning: "Somebody pressed the button on this screen."
2835
+ }
2836
+ };
2837
+ function triggerDescription(triggerId) {
2838
+ return TRIGGERS[triggerId];
2839
+ }
2840
+
2841
+ // ../api/src/analytics/feedNoise.ts
2842
+ var BOOKKEEPING_TYPES = /* @__PURE__ */ new Set([
2843
+ "visitor_new",
2844
+ "session_start",
2845
+ "identify",
2846
+ "form_step_view",
2847
+ "side_effect_settled"
2848
+ ]);
2849
+ var SUBMIT_TRIGGERS = new Set(Object.values(STEP_SUBMIT_TRIGGERS));
2850
+ function isEmbedLifecycle(row) {
2851
+ return row.eventType === "form_trigger" && triggerDescription(row.triggerId)?.lifecycle === true;
2852
+ }
2853
+ function isBookkeepingRow(row) {
2854
+ if (BOOKKEEPING_TYPES.has(row.eventType)) return true;
2855
+ if (isEmbedLifecycle(row)) return true;
2856
+ return row.eventType === "form_trigger" && SUBMIT_TRIGGERS.has(row.triggerId);
2857
+ }
2858
+
2859
+ // ../api/src/analytics/matchKeys.ts
2860
+ var CONTACT_KEYS = ["email", "phone", "external_id", "baker_id"];
2861
+ var MATCH_KEY_FIELDS = [...CONTACT_KEYS, ...INGEST_CLICK_ID_PARAMS, ...MATCH_COOKIES];
2862
+ var MATCH_KEY_LABELS = {
2863
+ email: "email",
2864
+ phone: "phone",
2865
+ external_id: "external ID",
2866
+ baker_id: "Baker ID",
2867
+ gclid: "Google click",
2868
+ wbraid: "Google click (wbraid)",
2869
+ gbraid: "Google click (gbraid)",
2870
+ dclid: "Google Display click",
2871
+ fbclid: "Meta click",
2872
+ ttclid: "TikTok click",
2873
+ twclid: "X click",
2874
+ li_fat_id: "LinkedIn click",
2875
+ msclkid: "Microsoft click",
2876
+ rdt_cid: "Reddit click",
2877
+ epik: "Pinterest click",
2878
+ sccid: "Snapchat click",
2879
+ oppref: "ChatGPT Ads click",
2880
+ fbp: "Meta browser cookie",
2881
+ fbc: "Meta click cookie"
2882
+ };
2883
+ function carries(userData, field) {
2884
+ for (const key of [field, `${field}_sha256`, `${field}_preview`]) {
2885
+ const value = userData[key];
2886
+ if (typeof value === "string" && value !== "") return true;
2887
+ }
2888
+ return false;
2889
+ }
2890
+ function rowMatchKeys(userData) {
2891
+ if (userData === void 0) return [];
2892
+ return MATCH_KEY_FIELDS.filter((field) => carries(userData, field)).map((field) => ({
2893
+ field,
2894
+ label: MATCH_KEY_LABELS[field] ?? field
2895
+ }));
2896
+ }
2897
+
2898
+ // ../api/src/analytics/trackingTemplate.ts
2899
+ function placeholderKey(raw) {
2900
+ return raw.replace(/[{}]/g, "").replace(/^_+|_+$/g, "").trim().toLowerCase();
2901
+ }
2902
+ var EXTRA_PLACEHOLDER_ROLES = {
2903
+ google: {
2904
+ merchant_id: "product_id",
2905
+ product_partition_id: "product_id"
2906
+ }
2907
+ };
2908
+ function placeholderRoles(platform) {
2909
+ const roles = {};
2910
+ for (const dimension of AD_PLATFORM_DEFINITIONS[platform].dimensions) {
2911
+ roles[placeholderKey(dimension.macro)] = dimension.role;
2912
+ }
2913
+ return { ...roles, ...EXTRA_PLACEHOLDER_ROLES[platform] ?? {} };
2914
+ }
2915
+ function paramsFromTemplate(template) {
2916
+ const start = template.indexOf("?");
2917
+ const query = start === -1 ? template : template.slice(start + 1);
2918
+ const params = [];
2919
+ for (const pair of query.split("&")) {
2920
+ const at = pair.indexOf("=");
2921
+ if (at < 1) continue;
2922
+ const name = pair.slice(0, at).trim();
2923
+ if (name === "") continue;
2924
+ params.push({ name, value: pair.slice(at + 1).trim() });
2925
+ }
2926
+ return params;
2927
+ }
2928
+ function proposeMappingFromTemplate(template, platform) {
2929
+ const builtIn = builtinAdParamMapping(platform);
2930
+ const vocabulary = placeholderRoles(platform);
2931
+ const proposed = {};
2932
+ const unexplained = [];
2933
+ for (const param of paramsFromTemplate(template)) {
2934
+ if (RESERVED_PARAM_NAMES.includes(param.name)) continue;
2935
+ if (param.name in builtIn) continue;
2936
+ const role = vocabulary[placeholderKey(param.value)];
2937
+ if (role) {
2938
+ proposed[param.name] = role;
2939
+ continue;
2940
+ }
2941
+ unexplained.push(param);
2942
+ }
2943
+ return { proposed, unexplained };
2944
+ }
2945
+ function mappingCommandFor(platform, proposed) {
2946
+ const pairs = Object.entries(proposed).map(([name, role]) => `${name}=${role}`);
2947
+ if (pairs.length === 0) return "";
2948
+ return `baker analytics map --platform ${platform} --set ${pairs.join(",")}`;
2949
+ }
2950
+
2951
+ export {
2952
+ AD_PARAM_ROLE_SPECS,
2953
+ isAdPlatform,
2954
+ essentialAdDimensions,
2955
+ isAnalyticsBusy,
2956
+ ANALYTICS_BUSY_FIX,
2957
+ retryOnceIfBusy,
2958
+ findNameCollision,
2959
+ STANDARD_CONVERSION_NAMES,
2960
+ CONVERSION_COUNT_MODES,
2961
+ formEventKey,
2962
+ isCheckoutRecordKey,
2963
+ CHECKOUT_RECORD_REFUSAL,
2964
+ isLandingViewKey,
2965
+ parseEventKey,
2966
+ SEND_PLATFORMS,
2967
+ isSendPlatform,
2968
+ sendEventProblem,
2969
+ destinationName,
2970
+ EVENT_ITEMS_MAX,
2971
+ isBookkeepingRow,
2972
+ rowMatchKeys,
2973
+ PEOPLE_SEARCH_MAX_TERMS,
2974
+ parsePeopleQuery,
2975
+ peopleLookupRequestSchema,
2976
+ sendsRequestSchema,
2977
+ proposeMappingFromTemplate,
2978
+ mappingCommandFor,
2979
+ ANALYTICS_UNSTAGE_KINDS,
2980
+ SEND_FILTERS,
2981
+ ANALYTICS_FULL_BREAKDOWN_LIMIT,
2982
+ ANALYTICS_EVENT_DOORS
2983
+ };
2984
+ //# sourceMappingURL=chunk-JOE42ZW6.js.map