@koda-sl/baker-cli 0.852.0-dev.0fbe16456 → 0.852.0-dev.4f443e346

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 (841) hide show
  1. package/README.md +0 -3
  2. package/dist/account-KRF7EIGP.js +84 -0
  3. package/dist/account-KRF7EIGP.js.map +1 -0
  4. package/dist/account-users-4I2AAEAO.js +70 -0
  5. package/dist/account-users-4I2AAEAO.js.map +1 -0
  6. package/dist/accounts-A37M7HW3.js +506 -0
  7. package/dist/accounts-A37M7HW3.js.map +1 -0
  8. package/dist/accounts-DXLJFGM6.js +82 -0
  9. package/dist/accounts-DXLJFGM6.js.map +1 -0
  10. package/dist/actions-KWHMTMLD.js +55 -0
  11. package/dist/activecampaign-AJURU2SD.js +936 -0
  12. package/dist/activecampaign-AJURU2SD.js.map +1 -0
  13. package/dist/activities-NWXWO7T2.js +84 -0
  14. package/dist/add-2CN64JRZ.js +109 -0
  15. package/dist/add-2CN64JRZ.js.map +1 -0
  16. package/dist/add-INCMGBM2.js +662 -0
  17. package/dist/add-INCMGBM2.js.map +1 -0
  18. package/dist/add-M6LS32QO.js +663 -0
  19. package/dist/add-M6LS32QO.js.map +1 -0
  20. package/dist/ads-7Q7PRFJ4.js +48 -0
  21. package/dist/ads-EUQYHCBO.js +132 -0
  22. package/dist/ads-EUQYHCBO.js.map +1 -0
  23. package/dist/adsets-CZFTSQQC.js +198 -0
  24. package/dist/advertisers-A3YGDOLM.js +127 -0
  25. package/dist/advertisers-A3YGDOLM.js.map +1 -0
  26. package/dist/alerts-DEP2DXBN.js +154 -0
  27. package/dist/alerts-DEP2DXBN.js.map +1 -0
  28. package/dist/analytics-7UCEXUVF.js +2792 -0
  29. package/dist/analytics-7UCEXUVF.js.map +1 -0
  30. package/dist/analytics-XHWSVXYX.js +462 -0
  31. package/dist/analytics-XHWSVXYX.js.map +1 -0
  32. package/dist/assign-JUXS2HIS.js +84 -0
  33. package/dist/assign-JUXS2HIS.js.map +1 -0
  34. package/dist/audience-size-ZWHF4BMF.js +78 -0
  35. package/dist/audience-size-ZWHF4BMF.js.map +1 -0
  36. package/dist/audiences-SDFCRXHD.js +117 -0
  37. package/dist/audit-G5SNO6AP.js +156 -0
  38. package/dist/audit-G5SNO6AP.js.map +1 -0
  39. package/dist/autocomplete-RQPSDMYX.js +118 -0
  40. package/dist/autocomplete-RQPSDMYX.js.map +1 -0
  41. package/dist/avatars-PILXCCPG.js +38 -0
  42. package/dist/bid-pricing-7ZNHIIJI.js +105 -0
  43. package/dist/bid-pricing-7ZNHIIJI.js.map +1 -0
  44. package/dist/brief-RBOKX3HZ.js +512 -0
  45. package/dist/brief-RBOKX3HZ.js.map +1 -0
  46. package/dist/campaign-groups-VFVDSZVA.js +119 -0
  47. package/dist/campaign-groups-VFVDSZVA.js.map +1 -0
  48. package/dist/campaign-writes-NYSYVJC6.js +170 -0
  49. package/dist/campaign-writes-NYSYVJC6.js.map +1 -0
  50. package/dist/campaigns-4JY3JKPY.js +139 -0
  51. package/dist/campaigns-I55PNY55.js +194 -0
  52. package/dist/campaigns-I55PNY55.js.map +1 -0
  53. package/dist/campaigns-XS52PZQL.js +111 -0
  54. package/dist/canvas-3AHETASK.js +48 -0
  55. package/dist/capabilities-KIPCD5SQ.js +185 -0
  56. package/dist/capabilities-KIPCD5SQ.js.map +1 -0
  57. package/dist/catalog-3OIBTMBV.js +90 -0
  58. package/dist/catalog-3OIBTMBV.js.map +1 -0
  59. package/dist/chats-JWH4BIWL.js +660 -0
  60. package/dist/chats-JWH4BIWL.js.map +1 -0
  61. package/dist/check-3SVCK3V3.js +55 -0
  62. package/dist/chunk-2CV2LEJN.js +685 -0
  63. package/dist/chunk-2PNBK7KZ.js +1124 -0
  64. package/dist/chunk-3B7GRVIM.js +392 -0
  65. package/dist/chunk-3MJTL763.js +103 -0
  66. package/dist/chunk-4GM3TBGL.js +320 -0
  67. package/dist/chunk-5UG7AJB5.js +65 -0
  68. package/dist/chunk-AOXHDVWS.js +260 -0
  69. package/dist/chunk-AYW4VFTH.js +547 -0
  70. package/dist/chunk-BMUAE5IR.js +411 -0
  71. package/dist/chunk-BPQY4KIM.js +251 -0
  72. package/dist/chunk-BYYIJMLP.js +197 -0
  73. package/dist/chunk-CDU64GKK.js +61 -0
  74. package/dist/chunk-DA634ZIV.js +175 -0
  75. package/dist/chunk-DJLTDVRD.js +479 -0
  76. package/dist/chunk-DKRPMGEN.js +89 -0
  77. package/dist/chunk-DKRPMGEN.js.map +1 -0
  78. package/dist/chunk-GHEURTBN.js +224 -0
  79. package/dist/chunk-H2IG6MOX.js +78 -0
  80. package/dist/chunk-HVVE3GT6.js +91 -0
  81. package/dist/chunk-IAOXI7MJ.js +9127 -0
  82. package/dist/chunk-M6RQJCDW.js +746 -0
  83. package/dist/chunk-N5IR2T2B.js +509 -0
  84. package/dist/chunk-NZ3PQBRV.js +51 -0
  85. package/dist/chunk-NZFVC7RP.js +548 -0
  86. package/dist/chunk-PNGXJPM5.js +604 -0
  87. package/dist/chunk-PNGXJPM5.js.map +1 -0
  88. package/dist/chunk-QLSNKH5D.js +91 -0
  89. package/dist/chunk-RN3IVT3B.js +3378 -0
  90. package/dist/chunk-RZOHIOPP.js +262 -0
  91. package/dist/chunk-S2WUFUSW.js +399 -0
  92. package/dist/chunk-S2WUFUSW.js.map +1 -0
  93. package/dist/chunk-SELCZP76.js +6340 -0
  94. package/dist/chunk-T55DY36I.js +163 -0
  95. package/dist/chunk-T5FACY43.js +170 -0
  96. package/dist/chunk-TR72BZ4D.js +660 -0
  97. package/dist/chunk-UTOVP53O.js +313 -0
  98. package/dist/chunk-VDHPAQUM.js +23 -0
  99. package/dist/chunk-VPWLH6VS.js +202 -0
  100. package/dist/chunk-VXLFFMW6.js +155 -0
  101. package/dist/chunk-VZQHMRYM.js +303 -0
  102. package/dist/chunk-X4NF7IMQ.js +423 -0
  103. package/dist/chunk-X6CSCKXX.js +341 -0
  104. package/dist/chunk-Y4XW2LW3.js +10361 -0
  105. package/dist/chunk-YAMDF3DT.js +374 -0
  106. package/dist/chunk-YCCTIFI7.js +396 -0
  107. package/dist/chunk-YWHOPJG5.js +64 -0
  108. package/dist/chunk-Z7WMTBGD.js +329 -0
  109. package/dist/chunk-ZJY3ACX3.js +7782 -0
  110. package/dist/chunk-ZJY3ACX3.js.map +1 -0
  111. package/dist/claim-H5HZFRPG.js +219 -0
  112. package/dist/claim-H5HZFRPG.js.map +1 -0
  113. package/dist/cli.js +34 -34
  114. package/dist/companies-6FM3CALY.js +37 -0
  115. package/dist/company-U67GZ652.js +312 -0
  116. package/dist/company-U67GZ652.js.map +1 -0
  117. package/dist/complete-7PB5RC47.js +88 -0
  118. package/dist/complete-7PB5RC47.js.map +1 -0
  119. package/dist/connect-J6M3W7WW.js +47 -0
  120. package/dist/conversation-6FGVSJQV.js +101 -0
  121. package/dist/conversation-6FGVSJQV.js.map +1 -0
  122. package/dist/conversions-T3WPLUNU.js +142 -0
  123. package/dist/conversions-T3WPLUNU.js.map +1 -0
  124. package/dist/create-3UEEKKBJ.js +66 -0
  125. package/dist/create-3UEEKKBJ.js.map +1 -0
  126. package/dist/create-BQFV23KE.js +220 -0
  127. package/dist/create-BQFV23KE.js.map +1 -0
  128. package/dist/create-PYNZG2I7.js +191 -0
  129. package/dist/create-PYNZG2I7.js.map +1 -0
  130. package/dist/create-WGQKASYJ.js +357 -0
  131. package/dist/create-WGQKASYJ.js.map +1 -0
  132. package/dist/creatives-PW2P7VMU.js +48 -0
  133. package/dist/creatives-Q3DWV55N.js +119 -0
  134. package/dist/creatives-X4ZDII4J.js +236 -0
  135. package/dist/creatives-X4ZDII4J.js.map +1 -0
  136. package/dist/credentials-IGLXTK56.js +292 -0
  137. package/dist/credentials-IGLXTK56.js.map +1 -0
  138. package/dist/critique-HF4ZNSFG.js +231 -0
  139. package/dist/critique-HF4ZNSFG.js.map +1 -0
  140. package/dist/crm-EOXLQJTJ.js +419 -0
  141. package/dist/crm-EOXLQJTJ.js.map +1 -0
  142. package/dist/crm-J7YGM36V.js +328 -0
  143. package/dist/crm-J7YGM36V.js.map +1 -0
  144. package/dist/customers-OHB5EY7Z.js +70 -0
  145. package/dist/delete-I24TSU35.js +61 -0
  146. package/dist/delete-I24TSU35.js.map +1 -0
  147. package/dist/delete-O6GJAIDU.js +72 -0
  148. package/dist/delete-O6GJAIDU.js.map +1 -0
  149. package/dist/delete-UM6ENIDW.js +71 -0
  150. package/dist/delete-UM6ENIDW.js.map +1 -0
  151. package/dist/demographics-BGSWNDRQ.js +146 -0
  152. package/dist/demographics-BGSWNDRQ.js.map +1 -0
  153. package/dist/discard-3S5LU3GF.js +73 -0
  154. package/dist/discard-3S5LU3GF.js.map +1 -0
  155. package/dist/domain-DJ4Y72PN.js +105 -0
  156. package/dist/domain-DJ4Y72PN.js.map +1 -0
  157. package/dist/download-FR7XSZWV.js +175 -0
  158. package/dist/download-FR7XSZWV.js.map +1 -0
  159. package/dist/draft-MUMANPJ7.js +228 -0
  160. package/dist/draft-MUMANPJ7.js.map +1 -0
  161. package/dist/draft-Z6YHU3AR.js +390 -0
  162. package/dist/draft-Z6YHU3AR.js.map +1 -0
  163. package/dist/draft-ZJ4VSYKB.js +428 -0
  164. package/dist/draft-ZJ4VSYKB.js.map +1 -0
  165. package/dist/engine/index.js +4 -3
  166. package/dist/experiment-QSABRTUR.js +2123 -0
  167. package/dist/experiment-QSABRTUR.js.map +1 -0
  168. package/dist/experiments-SJ2ODFHA.js +242 -0
  169. package/dist/experiments-SJ2ODFHA.js.map +1 -0
  170. package/dist/extract-X7H37JJT.js +145 -0
  171. package/dist/extract-X7H37JJT.js.map +1 -0
  172. package/dist/facets-BXRB3I6Q.js +119 -0
  173. package/dist/facets-BXRB3I6Q.js.map +1 -0
  174. package/dist/feedback-YWJUV7LV.js +116 -0
  175. package/dist/feedback-YWJUV7LV.js.map +1 -0
  176. package/dist/fetch-SZORBUY6.js +488 -0
  177. package/dist/fetch-SZORBUY6.js.map +1 -0
  178. package/dist/fit-BNMTWIDZ.js +70 -0
  179. package/dist/flows-CXLGJZX3.js +343 -0
  180. package/dist/flows-CXLGJZX3.js.map +1 -0
  181. package/dist/forecast-4GMD2VLH.js +123 -0
  182. package/dist/forecast-4GMD2VLH.js.map +1 -0
  183. package/dist/funnel-6T744PW5.js +702 -0
  184. package/dist/funnel-6T744PW5.js.map +1 -0
  185. package/dist/get-AV7SAPWM.js +115 -0
  186. package/dist/get-AV7SAPWM.js.map +1 -0
  187. package/dist/get-XGNDE6U5.js +78 -0
  188. package/dist/get-XGNDE6U5.js.map +1 -0
  189. package/dist/google-5PTZYW6Q.js +165 -0
  190. package/dist/google-5PTZYW6Q.js.map +1 -0
  191. package/dist/google-ads-LL4VNYPD.js +202 -0
  192. package/dist/google-ads-LL4VNYPD.js.map +1 -0
  193. package/dist/history-CFVA6FMG.js +109 -0
  194. package/dist/history-CFVA6FMG.js.map +1 -0
  195. package/dist/history-DSRIBYK6.js +156 -0
  196. package/dist/history-DSRIBYK6.js.map +1 -0
  197. package/dist/hubspot-QEDQFEME.js +854 -0
  198. package/dist/hubspot-QEDQFEME.js.map +1 -0
  199. package/dist/ideas-UK74GJGE.js +50 -0
  200. package/dist/images-OH7KDUR5.js +92 -0
  201. package/dist/ingest-2BC3W4WC.js +32 -0
  202. package/dist/ingest-U46BUNPL.js +163 -0
  203. package/dist/ingest-U46BUNPL.js.map +1 -0
  204. package/dist/inspect-ZMCRHR2P.js +39 -0
  205. package/dist/keyword-metrics-RHQHOBBD.js +235 -0
  206. package/dist/keyword-metrics-RHQHOBBD.js.map +1 -0
  207. package/dist/keywords-for-site-SXM5GYNK.js +135 -0
  208. package/dist/keywords-for-site-SXM5GYNK.js.map +1 -0
  209. package/dist/leads-SXKIKE33.js +138 -0
  210. package/dist/leads-SXKIKE33.js.map +1 -0
  211. package/dist/leads-UTBT62TH.js +574 -0
  212. package/dist/leads-UTBT62TH.js.map +1 -0
  213. package/dist/learn-IUTTKGIM.js +214 -0
  214. package/dist/learn-IUTTKGIM.js.map +1 -0
  215. package/dist/line-item-writes-4UCLAFCM.js +213 -0
  216. package/dist/line-item-writes-4UCLAFCM.js.map +1 -0
  217. package/dist/line-items-RUC54PIV.js +107 -0
  218. package/dist/link-DVOBJDBN.js +71 -0
  219. package/dist/link-DVOBJDBN.js.map +1 -0
  220. package/dist/linkedin-2Y7TU4US.js +1499 -0
  221. package/dist/linkedin-2Y7TU4US.js.map +1 -0
  222. package/dist/linkedin-person-MTXQCPG5.js +143 -0
  223. package/dist/linkedin-person-MTXQCPG5.js.map +1 -0
  224. package/dist/list-KYEFILOK.js +170 -0
  225. package/dist/list-KYEFILOK.js.map +1 -0
  226. package/dist/list-V5XCBLJ7.js +321 -0
  227. package/dist/list-V5XCBLJ7.js.map +1 -0
  228. package/dist/list-VXWXN54Z.js +90 -0
  229. package/dist/list-VXWXN54Z.js.map +1 -0
  230. package/dist/log-STIZ76SH.js +99 -0
  231. package/dist/log-STIZ76SH.js.map +1 -0
  232. package/dist/make-HDEKIJC6.js +1392 -0
  233. package/dist/make-HDEKIJC6.js.map +1 -0
  234. package/dist/map-2SS3BULX.js +520 -0
  235. package/dist/map-2SS3BULX.js.map +1 -0
  236. package/dist/mcp-I5ASSVSH.js +1018 -0
  237. package/dist/mcp-I5ASSVSH.js.map +1 -0
  238. package/dist/media-sources-KUEQ45V5.js +35 -0
  239. package/dist/members-65P2J63J.js +51 -0
  240. package/dist/members-65P2J63J.js.map +1 -0
  241. package/dist/meta-2ZQ3CWLF.js +152 -0
  242. package/dist/normalize-WNJDY66N.js +146 -0
  243. package/dist/normalize-WNJDY66N.js.map +1 -0
  244. package/dist/options-G4KR2KM7.js +127 -0
  245. package/dist/options-G4KR2KM7.js.map +1 -0
  246. package/dist/organization-FVZ6EIQB.js +950 -0
  247. package/dist/organization-FVZ6EIQB.js.map +1 -0
  248. package/dist/people-654OH5SE.js +162 -0
  249. package/dist/people-654OH5SE.js.map +1 -0
  250. package/dist/people-G3X6XVSH.js +172 -0
  251. package/dist/people-G3X6XVSH.js.map +1 -0
  252. package/dist/performance-BIH653SL.js +29 -0
  253. package/dist/performance-IU4CAW5U.js +6295 -0
  254. package/dist/performance-IU4CAW5U.js.map +1 -0
  255. package/dist/pipedrive-7AHNEUZI.js +534 -0
  256. package/dist/pipedrive-7AHNEUZI.js.map +1 -0
  257. package/dist/preview-ZOTNLVQF.js +104 -0
  258. package/dist/preview-ZOTNLVQF.js.map +1 -0
  259. package/dist/promoted-tweet-writes-7OXSBCSP.js +185 -0
  260. package/dist/promoted-tweet-writes-7OXSBCSP.js.map +1 -0
  261. package/dist/promoted-tweets-6YCNFVJK.js +119 -0
  262. package/dist/publish-W6YO4KXM.js +431 -0
  263. package/dist/publish-W6YO4KXM.js.map +1 -0
  264. package/dist/reddit-Z4REP3DB.js +31 -0
  265. package/dist/refresh-J4EVW5NK.js +101 -0
  266. package/dist/refresh-J4EVW5NK.js.map +1 -0
  267. package/dist/release-J7PM3S26.js +67 -0
  268. package/dist/release-J7PM3S26.js.map +1 -0
  269. package/dist/remove-47SNXAN4.js +55 -0
  270. package/dist/remove-47SNXAN4.js.map +1 -0
  271. package/dist/reopen-QZ5H7BM4.js +70 -0
  272. package/dist/reopen-QZ5H7BM4.js.map +1 -0
  273. package/dist/rerun-NXCWZO6J.js +102 -0
  274. package/dist/rerun-NXCWZO6J.js.map +1 -0
  275. package/dist/research-FYPPBDZD.js +267 -0
  276. package/dist/research-FYPPBDZD.js.map +1 -0
  277. package/dist/research-M6YZMTCC.js +78 -0
  278. package/dist/reset-HOZN4FOM.js +59 -0
  279. package/dist/reset-HOZN4FOM.js.map +1 -0
  280. package/dist/reset-YSI4KD65.js +59 -0
  281. package/dist/reset-YSI4KD65.js.map +1 -0
  282. package/dist/resolve-4LGAMITK.js +126 -0
  283. package/dist/resolve-4LGAMITK.js.map +1 -0
  284. package/dist/retry-JE7MVPCY.js +67 -0
  285. package/dist/retry-JE7MVPCY.js.map +1 -0
  286. package/dist/retry-NF5WFRK3.js +67 -0
  287. package/dist/retry-NF5WFRK3.js.map +1 -0
  288. package/dist/revenue-UNKQMFEP.js +100 -0
  289. package/dist/revenue-UNKQMFEP.js.map +1 -0
  290. package/dist/rules-ZQVMBEGF.js +164 -0
  291. package/dist/rules-ZQVMBEGF.js.map +1 -0
  292. package/dist/run-3AFY2WEP.js +74 -0
  293. package/dist/run-3AFY2WEP.js.map +1 -0
  294. package/dist/run-MBVV64FY.js +79 -0
  295. package/dist/scaffold-ad-5BDDIBIE.js +1601 -0
  296. package/dist/scaffold-ad-5BDDIBIE.js.map +1 -0
  297. package/dist/scaffold-static-ad-VI4HHQXS.js +999 -0
  298. package/dist/scaffold-static-ad-VI4HHQXS.js.map +1 -0
  299. package/dist/scaffold-video-EPMMQHUN.js +889 -0
  300. package/dist/scaffold-video-EPMMQHUN.js.map +1 -0
  301. package/dist/schedule-MYNSAWBJ.js +66 -0
  302. package/dist/schedule-MYNSAWBJ.js.map +1 -0
  303. package/dist/scheduled-agents-T7CITLJL.js +59 -0
  304. package/dist/schema-4WMUT43Q.js +137 -0
  305. package/dist/schema-4WMUT43Q.js.map +1 -0
  306. package/dist/schema-6WONG4NR.js +241 -0
  307. package/dist/search-AF7G5TRI.js +193 -0
  308. package/dist/search-AF7G5TRI.js.map +1 -0
  309. package/dist/select-LUFSBEFK.js +135 -0
  310. package/dist/select-LUFSBEFK.js.map +1 -0
  311. package/dist/set-Z754PYIP.js +275 -0
  312. package/dist/set-Z754PYIP.js.map +1 -0
  313. package/dist/set-prompt-WDCKB4GU.js +205 -0
  314. package/dist/set-prompt-WDCKB4GU.js.map +1 -0
  315. package/dist/setup-links-3FCP4CMO.js +146 -0
  316. package/dist/setup-links-3FCP4CMO.js.map +1 -0
  317. package/dist/shopify-OMTDOM6H.js +4033 -0
  318. package/dist/shopify-OMTDOM6H.js.map +1 -0
  319. package/dist/site-E6VDWABB.js +182 -0
  320. package/dist/site-E6VDWABB.js.map +1 -0
  321. package/dist/sources-3RQZ3AR2.js +30 -0
  322. package/dist/sources-IB2WBJLU.js +464 -0
  323. package/dist/sources-IB2WBJLU.js.map +1 -0
  324. package/dist/stale-V4NS3MDH.js +93 -0
  325. package/dist/stale-V4NS3MDH.js.map +1 -0
  326. package/dist/status-T67ZC4E3.js +69 -0
  327. package/dist/status-T67ZC4E3.js.map +1 -0
  328. package/dist/stock-V2ITAW3L.js +214 -0
  329. package/dist/stock-V2ITAW3L.js.map +1 -0
  330. package/dist/sync-O5OC466B.js +59 -0
  331. package/dist/sync-O5OC466B.js.map +1 -0
  332. package/dist/sync-definition-MR7XESTS.js +75 -0
  333. package/dist/tags-ACDAA5T6.js +25 -0
  334. package/dist/tags-ACDAA5T6.js.map +1 -0
  335. package/dist/tags-I3AJEMKF.js +26 -0
  336. package/dist/tags-IMTMMKH3.js +25 -0
  337. package/dist/tags-IMTMMKH3.js.map +1 -0
  338. package/dist/tags-Q32N3AGN.js +25 -0
  339. package/dist/tags-Q32N3AGN.js.map +1 -0
  340. package/dist/tags-YWZLXCDK.js +183 -0
  341. package/dist/tags-YWZLXCDK.js.map +1 -0
  342. package/dist/targeting-T2HTV2OD.js +777 -0
  343. package/dist/targeting-criteria-QFFAYBGE.js +113 -0
  344. package/dist/targets-VJ7FDIRY.js +111 -0
  345. package/dist/targets-VJ7FDIRY.js.map +1 -0
  346. package/dist/testimonials-67Q3OTBU.js +32 -0
  347. package/dist/top-companies-6XTBQ26K.js +251 -0
  348. package/dist/top-companies-6XTBQ26K.js.map +1 -0
  349. package/dist/transcript-VJ3SAEUV.js +169 -0
  350. package/dist/transcript-VJ3SAEUV.js.map +1 -0
  351. package/dist/translate-ET2MK3H2.js +608 -0
  352. package/dist/translate-ET2MK3H2.js.map +1 -0
  353. package/dist/triggers-JP6VF7BW.js +149 -0
  354. package/dist/triggers-JP6VF7BW.js.map +1 -0
  355. package/dist/unlink-KMFC3LDG.js +74 -0
  356. package/dist/unlink-KMFC3LDG.js.map +1 -0
  357. package/dist/unstage-GPI2NIBV.js +93 -0
  358. package/dist/unstage-GPI2NIBV.js.map +1 -0
  359. package/dist/update-2FH5MZVD.js +238 -0
  360. package/dist/update-2FH5MZVD.js.map +1 -0
  361. package/dist/update-ACOQHC7J.js +194 -0
  362. package/dist/update-ACOQHC7J.js.map +1 -0
  363. package/dist/update-CUQLNEAD.js +176 -0
  364. package/dist/update-CUQLNEAD.js.map +1 -0
  365. package/dist/update-RZXG7Z62.js +70 -0
  366. package/dist/update-RZXG7Z62.js.map +1 -0
  367. package/dist/upload-HVE7JHOF.js +186 -0
  368. package/dist/upload-HVE7JHOF.js.map +1 -0
  369. package/dist/url-params-EHRE7RFC.js +103 -0
  370. package/dist/url-params-EHRE7RFC.js.map +1 -0
  371. package/dist/validate-2SL473DR.js +181 -0
  372. package/dist/validate-2SL473DR.js.map +1 -0
  373. package/dist/videos-URSOTIHU.js +41 -0
  374. package/dist/viewer-check-N3SEOOMX.js +90 -0
  375. package/dist/visuals-2Q643EXW.js +130 -0
  376. package/dist/visuals-2Q643EXW.js.map +1 -0
  377. package/dist/web-SEZ7DJLY.js +181 -0
  378. package/dist/web-SEZ7DJLY.js.map +1 -0
  379. package/dist/winning-ads-TCRRYKCR.js +88 -0
  380. package/dist/write-commands-DSQDZBN7.js +1556 -0
  381. package/dist/write-commands-DSQDZBN7.js.map +1 -0
  382. package/dist/x-K6IWYLK3.js +47 -0
  383. package/package.json +1 -1
  384. package/dist/account-Z62BVYAI.js +0 -83
  385. package/dist/account-Z62BVYAI.js.map +0 -1
  386. package/dist/account-users-ZDZ7B4BX.js +0 -69
  387. package/dist/account-users-ZDZ7B4BX.js.map +0 -1
  388. package/dist/accounts-FGWJDM52.js +0 -505
  389. package/dist/accounts-FGWJDM52.js.map +0 -1
  390. package/dist/accounts-SUIMNTTA.js +0 -81
  391. package/dist/accounts-SUIMNTTA.js.map +0 -1
  392. package/dist/actions-Q7DDN427.js +0 -55
  393. package/dist/activecampaign-BAWTDTSA.js +0 -935
  394. package/dist/activecampaign-BAWTDTSA.js.map +0 -1
  395. package/dist/activities-SUUW5KH7.js +0 -84
  396. package/dist/add-3WUVL3MN.js +0 -662
  397. package/dist/add-3WUVL3MN.js.map +0 -1
  398. package/dist/add-HBRY2SF6.js +0 -108
  399. package/dist/add-HBRY2SF6.js.map +0 -1
  400. package/dist/add-I4DL3DN5.js +0 -661
  401. package/dist/add-I4DL3DN5.js.map +0 -1
  402. package/dist/ads-2O3DC7ZM.js +0 -139
  403. package/dist/ads-2O3DC7ZM.js.map +0 -1
  404. package/dist/ads-DJHUXK2O.js +0 -48
  405. package/dist/adsets-PMEPGGAI.js +0 -198
  406. package/dist/advertisers-AJQEQ3VF.js +0 -126
  407. package/dist/advertisers-AJQEQ3VF.js.map +0 -1
  408. package/dist/alerts-RJBTQ2OX.js +0 -153
  409. package/dist/alerts-RJBTQ2OX.js.map +0 -1
  410. package/dist/analytics-SVV7JZ2J.js +0 -2791
  411. package/dist/analytics-SVV7JZ2J.js.map +0 -1
  412. package/dist/analytics-WLFBQOO4.js +0 -461
  413. package/dist/analytics-WLFBQOO4.js.map +0 -1
  414. package/dist/assign-MAXWMYQ2.js +0 -83
  415. package/dist/assign-MAXWMYQ2.js.map +0 -1
  416. package/dist/audience-size-ISJSPSRW.js +0 -77
  417. package/dist/audience-size-ISJSPSRW.js.map +0 -1
  418. package/dist/audiences-Y6UFKHZ5.js +0 -117
  419. package/dist/audit-EHKSN2WS.js +0 -155
  420. package/dist/audit-EHKSN2WS.js.map +0 -1
  421. package/dist/autocomplete-I6V2CKI4.js +0 -117
  422. package/dist/autocomplete-I6V2CKI4.js.map +0 -1
  423. package/dist/avatars-775WMIZF.js +0 -38
  424. package/dist/bid-pricing-HFBQ23DD.js +0 -104
  425. package/dist/bid-pricing-HFBQ23DD.js.map +0 -1
  426. package/dist/brief-LR5YTTVQ.js +0 -511
  427. package/dist/brief-LR5YTTVQ.js.map +0 -1
  428. package/dist/campaign-groups-DKB3K7L4.js +0 -118
  429. package/dist/campaign-groups-DKB3K7L4.js.map +0 -1
  430. package/dist/campaign-writes-DXV2HPB2.js +0 -169
  431. package/dist/campaign-writes-DXV2HPB2.js.map +0 -1
  432. package/dist/campaigns-6OYAQVIE.js +0 -193
  433. package/dist/campaigns-6OYAQVIE.js.map +0 -1
  434. package/dist/campaigns-RNPLAVXM.js +0 -139
  435. package/dist/campaigns-UEPNMAIN.js +0 -111
  436. package/dist/canvas-6CWER4CP.js +0 -48
  437. package/dist/capabilities-U53QPNBQ.js +0 -184
  438. package/dist/capabilities-U53QPNBQ.js.map +0 -1
  439. package/dist/catalog-KTAYEWYO.js +0 -89
  440. package/dist/catalog-KTAYEWYO.js.map +0 -1
  441. package/dist/chats-QVGXEYT6.js +0 -659
  442. package/dist/chats-QVGXEYT6.js.map +0 -1
  443. package/dist/check-3YGJFXU2.js +0 -54
  444. package/dist/chunk-2DGJKIHF.js +0 -78
  445. package/dist/chunk-33KRW6HE.js +0 -374
  446. package/dist/chunk-34CJ5QXO.js +0 -91
  447. package/dist/chunk-3HAKK5FO.js +0 -660
  448. package/dist/chunk-4MIETRE4.js +0 -103
  449. package/dist/chunk-4X6QBNIB.js +0 -320
  450. package/dist/chunk-52V5324M.js +0 -224
  451. package/dist/chunk-5OXVEKML.js +0 -548
  452. package/dist/chunk-5WQ3UHJ2.js +0 -341
  453. package/dist/chunk-624DWMDW.js +0 -8382
  454. package/dist/chunk-624DWMDW.js.map +0 -1
  455. package/dist/chunk-63XEBJIX.js +0 -262
  456. package/dist/chunk-CG6BJIHU.js +0 -175
  457. package/dist/chunk-CHPHAPPP.js +0 -547
  458. package/dist/chunk-CPBXSDXS.js +0 -9127
  459. package/dist/chunk-CSOESLNA.js +0 -61
  460. package/dist/chunk-CWYONUBS.js +0 -163
  461. package/dist/chunk-DSZ3OLQU.js +0 -65
  462. package/dist/chunk-ECUN7W2Y.js +0 -91
  463. package/dist/chunk-EHDZONE6.js +0 -746
  464. package/dist/chunk-GN6X5C57.js +0 -400
  465. package/dist/chunk-GN6X5C57.js.map +0 -1
  466. package/dist/chunk-HQISXBEX.js +0 -685
  467. package/dist/chunk-J5LG2M5T.js +0 -155
  468. package/dist/chunk-JY5OIBMR.js +0 -3378
  469. package/dist/chunk-KDCPM6W2.js +0 -6340
  470. package/dist/chunk-KUNNKG4S.js +0 -202
  471. package/dist/chunk-MQIO7WLM.js +0 -396
  472. package/dist/chunk-MQZHJAH3.js +0 -197
  473. package/dist/chunk-NOJC3PUZ.js +0 -479
  474. package/dist/chunk-NR5EJ6TC.js +0 -10361
  475. package/dist/chunk-OBT55DQA.js +0 -260
  476. package/dist/chunk-PA5OJXQ3.js +0 -313
  477. package/dist/chunk-PMK2WXS5.js +0 -411
  478. package/dist/chunk-PRPSV4VB.js +0 -105
  479. package/dist/chunk-PRPSV4VB.js.map +0 -1
  480. package/dist/chunk-QYOLOU5G.js +0 -329
  481. package/dist/chunk-RS4BSY3E.js +0 -509
  482. package/dist/chunk-S2V54TOS.js +0 -170
  483. package/dist/chunk-TDNOPJXB.js +0 -1124
  484. package/dist/chunk-TWSIY2FS.js +0 -392
  485. package/dist/chunk-WVXJYBWA.js +0 -251
  486. package/dist/chunk-XNTV3QKG.js +0 -64
  487. package/dist/chunk-Y62YTEPM.js +0 -23
  488. package/dist/chunk-YBSRIW5S.js +0 -51
  489. package/dist/chunk-YXYUHTQM.js +0 -423
  490. package/dist/chunk-ZDDJTA3H.js +0 -303
  491. package/dist/claim-XHSTFNS3.js +0 -218
  492. package/dist/claim-XHSTFNS3.js.map +0 -1
  493. package/dist/companies-ITNWR5Q4.js +0 -36
  494. package/dist/company-ANL7K7CY.js +0 -311
  495. package/dist/company-ANL7K7CY.js.map +0 -1
  496. package/dist/complete-7L3ILPCT.js +0 -87
  497. package/dist/complete-7L3ILPCT.js.map +0 -1
  498. package/dist/connect-SD7PFKPI.js +0 -46
  499. package/dist/conversation-SKZMGVA5.js +0 -100
  500. package/dist/conversation-SKZMGVA5.js.map +0 -1
  501. package/dist/conversions-IMST22UQ.js +0 -141
  502. package/dist/conversions-IMST22UQ.js.map +0 -1
  503. package/dist/create-5KE4XHS3.js +0 -65
  504. package/dist/create-5KE4XHS3.js.map +0 -1
  505. package/dist/create-KGRQQ7WA.js +0 -190
  506. package/dist/create-KGRQQ7WA.js.map +0 -1
  507. package/dist/create-QBA7VZSZ.js +0 -356
  508. package/dist/create-QBA7VZSZ.js.map +0 -1
  509. package/dist/create-SPNJBN6K.js +0 -219
  510. package/dist/create-SPNJBN6K.js.map +0 -1
  511. package/dist/creatives-3E5BEATB.js +0 -48
  512. package/dist/creatives-42PW2C24.js +0 -235
  513. package/dist/creatives-42PW2C24.js.map +0 -1
  514. package/dist/creatives-OTKJRMBJ.js +0 -119
  515. package/dist/credentials-T7F2PFNY.js +0 -291
  516. package/dist/credentials-T7F2PFNY.js.map +0 -1
  517. package/dist/critique-I2HAOTTX.js +0 -230
  518. package/dist/critique-I2HAOTTX.js.map +0 -1
  519. package/dist/crm-EVN7PDQE.js +0 -418
  520. package/dist/crm-EVN7PDQE.js.map +0 -1
  521. package/dist/crm-OO2WO6OG.js +0 -327
  522. package/dist/crm-OO2WO6OG.js.map +0 -1
  523. package/dist/customers-V7WKKZI2.js +0 -69
  524. package/dist/delete-7VLK5I4V.js +0 -60
  525. package/dist/delete-7VLK5I4V.js.map +0 -1
  526. package/dist/delete-TRJMPMN5.js +0 -70
  527. package/dist/delete-TRJMPMN5.js.map +0 -1
  528. package/dist/delete-XAVEVESN.js +0 -71
  529. package/dist/delete-XAVEVESN.js.map +0 -1
  530. package/dist/demographics-K5WTHZCW.js +0 -145
  531. package/dist/demographics-K5WTHZCW.js.map +0 -1
  532. package/dist/discard-ANRGHE2Z.js +0 -72
  533. package/dist/discard-ANRGHE2Z.js.map +0 -1
  534. package/dist/domain-LQ4VCYC4.js +0 -104
  535. package/dist/domain-LQ4VCYC4.js.map +0 -1
  536. package/dist/download-HVNPTNFN.js +0 -174
  537. package/dist/download-HVNPTNFN.js.map +0 -1
  538. package/dist/draft-572T3UNG.js +0 -427
  539. package/dist/draft-572T3UNG.js.map +0 -1
  540. package/dist/draft-JGEZVDAS.js +0 -389
  541. package/dist/draft-JGEZVDAS.js.map +0 -1
  542. package/dist/draft-KZKNUQ2I.js +0 -227
  543. package/dist/draft-KZKNUQ2I.js.map +0 -1
  544. package/dist/experiment-WEWASTVO.js +0 -2094
  545. package/dist/experiment-WEWASTVO.js.map +0 -1
  546. package/dist/experiments-C4R65GA6.js +0 -241
  547. package/dist/experiments-C4R65GA6.js.map +0 -1
  548. package/dist/extract-J7Q6DYE7.js +0 -144
  549. package/dist/extract-J7Q6DYE7.js.map +0 -1
  550. package/dist/facets-GXBTQCAW.js +0 -118
  551. package/dist/facets-GXBTQCAW.js.map +0 -1
  552. package/dist/feedback-FZTJATY7.js +0 -115
  553. package/dist/feedback-FZTJATY7.js.map +0 -1
  554. package/dist/fetch-GSMAAL7N.js +0 -487
  555. package/dist/fetch-GSMAAL7N.js.map +0 -1
  556. package/dist/fit-K63JPI3A.js +0 -69
  557. package/dist/flows-C45HCGGB.js +0 -342
  558. package/dist/flows-C45HCGGB.js.map +0 -1
  559. package/dist/forecast-NOQNCFTX.js +0 -122
  560. package/dist/forecast-NOQNCFTX.js.map +0 -1
  561. package/dist/funnel-U47RAS7K.js +0 -701
  562. package/dist/funnel-U47RAS7K.js.map +0 -1
  563. package/dist/get-H5CUQP7G.js +0 -114
  564. package/dist/get-H5CUQP7G.js.map +0 -1
  565. package/dist/get-J2QFYRHW.js +0 -77
  566. package/dist/get-J2QFYRHW.js.map +0 -1
  567. package/dist/google-OYP3AU3I.js +0 -164
  568. package/dist/google-OYP3AU3I.js.map +0 -1
  569. package/dist/google-ads-74CPXLIA.js +0 -201
  570. package/dist/google-ads-74CPXLIA.js.map +0 -1
  571. package/dist/history-AGCS2TKY.js +0 -108
  572. package/dist/history-AGCS2TKY.js.map +0 -1
  573. package/dist/history-M6VLA7TD.js +0 -155
  574. package/dist/history-M6VLA7TD.js.map +0 -1
  575. package/dist/hubspot-W5LYFWTH.js +0 -853
  576. package/dist/hubspot-W5LYFWTH.js.map +0 -1
  577. package/dist/ideas-6LZ6VINW.js +0 -49
  578. package/dist/images-TUQEYLFE.js +0 -92
  579. package/dist/ingest-S7I6E2GE.js +0 -31
  580. package/dist/ingest-XJNSFWBC.js +0 -162
  581. package/dist/ingest-XJNSFWBC.js.map +0 -1
  582. package/dist/inspect-AQBNRV5E.js +0 -38
  583. package/dist/keyword-metrics-DSEJ2KDM.js +0 -234
  584. package/dist/keyword-metrics-DSEJ2KDM.js.map +0 -1
  585. package/dist/keywords-for-site-CYVRXIF5.js +0 -134
  586. package/dist/keywords-for-site-CYVRXIF5.js.map +0 -1
  587. package/dist/leads-DAXPX7V5.js +0 -575
  588. package/dist/leads-DAXPX7V5.js.map +0 -1
  589. package/dist/leads-ZRHPHJRE.js +0 -137
  590. package/dist/leads-ZRHPHJRE.js.map +0 -1
  591. package/dist/learn-ZR35TBVQ.js +0 -213
  592. package/dist/learn-ZR35TBVQ.js.map +0 -1
  593. package/dist/line-item-writes-L73P5MN7.js +0 -212
  594. package/dist/line-item-writes-L73P5MN7.js.map +0 -1
  595. package/dist/line-items-KC5PKV2T.js +0 -107
  596. package/dist/link-64FQKM6S.js +0 -70
  597. package/dist/link-64FQKM6S.js.map +0 -1
  598. package/dist/linkedin-BD63QPGK.js +0 -1498
  599. package/dist/linkedin-BD63QPGK.js.map +0 -1
  600. package/dist/linkedin-person-6XXLSFDE.js +0 -142
  601. package/dist/linkedin-person-6XXLSFDE.js.map +0 -1
  602. package/dist/list-DBZ3AGW2.js +0 -89
  603. package/dist/list-DBZ3AGW2.js.map +0 -1
  604. package/dist/list-KYTLJVHG.js +0 -169
  605. package/dist/list-KYTLJVHG.js.map +0 -1
  606. package/dist/list-WOCSNSYO.js +0 -320
  607. package/dist/list-WOCSNSYO.js.map +0 -1
  608. package/dist/log-LLJ3M63R.js +0 -98
  609. package/dist/log-LLJ3M63R.js.map +0 -1
  610. package/dist/make-UM6P6RD3.js +0 -1391
  611. package/dist/make-UM6P6RD3.js.map +0 -1
  612. package/dist/map-SKH3NVSQ.js +0 -519
  613. package/dist/map-SKH3NVSQ.js.map +0 -1
  614. package/dist/mcp-FIBT4HAH.js +0 -1017
  615. package/dist/mcp-FIBT4HAH.js.map +0 -1
  616. package/dist/media-sources-NI6U2YWV.js +0 -35
  617. package/dist/members-PK3Q7AZX.js +0 -50
  618. package/dist/members-PK3Q7AZX.js.map +0 -1
  619. package/dist/meta-GSTM6EBD.js +0 -152
  620. package/dist/normalize-KEDHUMAB.js +0 -145
  621. package/dist/normalize-KEDHUMAB.js.map +0 -1
  622. package/dist/options-VYRUYL4N.js +0 -126
  623. package/dist/options-VYRUYL4N.js.map +0 -1
  624. package/dist/organization-RTJDOJEV.js +0 -949
  625. package/dist/organization-RTJDOJEV.js.map +0 -1
  626. package/dist/people-3VU3QSRN.js +0 -161
  627. package/dist/people-3VU3QSRN.js.map +0 -1
  628. package/dist/people-A3YXUYUR.js +0 -171
  629. package/dist/people-A3YXUYUR.js.map +0 -1
  630. package/dist/performance-6I57ZQTD.js +0 -6294
  631. package/dist/performance-6I57ZQTD.js.map +0 -1
  632. package/dist/performance-OBAWMTVU.js +0 -28
  633. package/dist/pipedrive-7AA7ZD7M.js +0 -533
  634. package/dist/pipedrive-7AA7ZD7M.js.map +0 -1
  635. package/dist/preview-66BGLU5H.js +0 -103
  636. package/dist/preview-66BGLU5H.js.map +0 -1
  637. package/dist/promoted-tweet-writes-ZUFVAVGA.js +0 -184
  638. package/dist/promoted-tweet-writes-ZUFVAVGA.js.map +0 -1
  639. package/dist/promoted-tweets-3AKHKOI4.js +0 -119
  640. package/dist/publish-JPIOQKB4.js +0 -430
  641. package/dist/publish-JPIOQKB4.js.map +0 -1
  642. package/dist/reddit-TKE3IXST.js +0 -30
  643. package/dist/refresh-BE7KEADW.js +0 -100
  644. package/dist/refresh-BE7KEADW.js.map +0 -1
  645. package/dist/release-EUXHZEO7.js +0 -66
  646. package/dist/release-EUXHZEO7.js.map +0 -1
  647. package/dist/remove-6HAN547O.js +0 -54
  648. package/dist/remove-6HAN547O.js.map +0 -1
  649. package/dist/reopen-HBEWR4CF.js +0 -69
  650. package/dist/reopen-HBEWR4CF.js.map +0 -1
  651. package/dist/rerun-PLS5XYTW.js +0 -101
  652. package/dist/rerun-PLS5XYTW.js.map +0 -1
  653. package/dist/research-B5VHPALW.js +0 -78
  654. package/dist/research-RCD54TCL.js +0 -266
  655. package/dist/research-RCD54TCL.js.map +0 -1
  656. package/dist/reset-DQXYM75W.js +0 -58
  657. package/dist/reset-DQXYM75W.js.map +0 -1
  658. package/dist/reset-Y7UWO233.js +0 -58
  659. package/dist/reset-Y7UWO233.js.map +0 -1
  660. package/dist/resolve-NVL3FTQU.js +0 -125
  661. package/dist/resolve-NVL3FTQU.js.map +0 -1
  662. package/dist/retry-MMY5H6O6.js +0 -66
  663. package/dist/retry-MMY5H6O6.js.map +0 -1
  664. package/dist/retry-YCYZPMXM.js +0 -66
  665. package/dist/retry-YCYZPMXM.js.map +0 -1
  666. package/dist/revenue-C24BDD5A.js +0 -99
  667. package/dist/revenue-C24BDD5A.js.map +0 -1
  668. package/dist/rules-MGEJJJ4O.js +0 -163
  669. package/dist/rules-MGEJJJ4O.js.map +0 -1
  670. package/dist/run-2RGSNKFH.js +0 -78
  671. package/dist/run-HCYK5ZAX.js +0 -73
  672. package/dist/run-HCYK5ZAX.js.map +0 -1
  673. package/dist/scaffold-ad-UOXDJIVB.js +0 -1600
  674. package/dist/scaffold-ad-UOXDJIVB.js.map +0 -1
  675. package/dist/scaffold-static-ad-ZM3LOIFK.js +0 -998
  676. package/dist/scaffold-static-ad-ZM3LOIFK.js.map +0 -1
  677. package/dist/scaffold-video-EBQOBQXI.js +0 -888
  678. package/dist/scaffold-video-EBQOBQXI.js.map +0 -1
  679. package/dist/schedule-IVNAF7NB.js +0 -65
  680. package/dist/schedule-IVNAF7NB.js.map +0 -1
  681. package/dist/scheduled-agents-YHZUPS2I.js +0 -59
  682. package/dist/schema-F6QTDMJW.js +0 -136
  683. package/dist/schema-F6QTDMJW.js.map +0 -1
  684. package/dist/schema-NIYT4JHM.js +0 -241
  685. package/dist/search-A4GTDVIE.js +0 -192
  686. package/dist/search-A4GTDVIE.js.map +0 -1
  687. package/dist/select-HER2THTU.js +0 -134
  688. package/dist/select-HER2THTU.js.map +0 -1
  689. package/dist/set-MXHNM4NH.js +0 -274
  690. package/dist/set-MXHNM4NH.js.map +0 -1
  691. package/dist/set-prompt-G27JMELE.js +0 -204
  692. package/dist/set-prompt-G27JMELE.js.map +0 -1
  693. package/dist/setup-links-LVJU7KHP.js +0 -145
  694. package/dist/setup-links-LVJU7KHP.js.map +0 -1
  695. package/dist/shopify-ZQFONX3R.js +0 -4032
  696. package/dist/shopify-ZQFONX3R.js.map +0 -1
  697. package/dist/site-X43NFWHL.js +0 -181
  698. package/dist/site-X43NFWHL.js.map +0 -1
  699. package/dist/sources-3KYI7TSD.js +0 -30
  700. package/dist/sources-G7QWYL2J.js +0 -463
  701. package/dist/sources-G7QWYL2J.js.map +0 -1
  702. package/dist/stale-F7UXOYYY.js +0 -92
  703. package/dist/stale-F7UXOYYY.js.map +0 -1
  704. package/dist/status-7RLJ7ZND.js +0 -68
  705. package/dist/status-7RLJ7ZND.js.map +0 -1
  706. package/dist/stock-BSMF4FH4.js +0 -213
  707. package/dist/stock-BSMF4FH4.js.map +0 -1
  708. package/dist/sync-XAWDIOTT.js +0 -58
  709. package/dist/sync-XAWDIOTT.js.map +0 -1
  710. package/dist/sync-definition-73CCAEDP.js +0 -74
  711. package/dist/tags-5V3NCHKE.js +0 -26
  712. package/dist/tags-HSLB3YPN.js +0 -24
  713. package/dist/tags-HSLB3YPN.js.map +0 -1
  714. package/dist/tags-M57YBWGW.js +0 -182
  715. package/dist/tags-M57YBWGW.js.map +0 -1
  716. package/dist/tags-MWMY3GRG.js +0 -24
  717. package/dist/tags-MWMY3GRG.js.map +0 -1
  718. package/dist/tags-QHEJUOHL.js +0 -24
  719. package/dist/tags-QHEJUOHL.js.map +0 -1
  720. package/dist/targeting-HIXQGQ7A.js +0 -777
  721. package/dist/targeting-criteria-FIXPSX2K.js +0 -113
  722. package/dist/targets-5A5SOQJM.js +0 -110
  723. package/dist/targets-5A5SOQJM.js.map +0 -1
  724. package/dist/testimonials-RIL2ARX7.js +0 -32
  725. package/dist/top-companies-KEV55RME.js +0 -250
  726. package/dist/top-companies-KEV55RME.js.map +0 -1
  727. package/dist/transcript-ZOJWRPZD.js +0 -168
  728. package/dist/transcript-ZOJWRPZD.js.map +0 -1
  729. package/dist/translate-WL6KD2X4.js +0 -607
  730. package/dist/translate-WL6KD2X4.js.map +0 -1
  731. package/dist/triggers-PH33IQLK.js +0 -148
  732. package/dist/triggers-PH33IQLK.js.map +0 -1
  733. package/dist/unlink-WD5D3XBG.js +0 -73
  734. package/dist/unlink-WD5D3XBG.js.map +0 -1
  735. package/dist/unstage-52VGCJWF.js +0 -92
  736. package/dist/unstage-52VGCJWF.js.map +0 -1
  737. package/dist/update-3YQGAFEX.js +0 -69
  738. package/dist/update-3YQGAFEX.js.map +0 -1
  739. package/dist/update-6355E7VP.js +0 -193
  740. package/dist/update-6355E7VP.js.map +0 -1
  741. package/dist/update-RD27CPMN.js +0 -237
  742. package/dist/update-RD27CPMN.js.map +0 -1
  743. package/dist/update-TZLOKZ22.js +0 -175
  744. package/dist/update-TZLOKZ22.js.map +0 -1
  745. package/dist/upload-PMKPLLAA.js +0 -185
  746. package/dist/upload-PMKPLLAA.js.map +0 -1
  747. package/dist/url-params-CXUAYJBD.js +0 -102
  748. package/dist/url-params-CXUAYJBD.js.map +0 -1
  749. package/dist/validate-YRTGO4UN.js +0 -180
  750. package/dist/validate-YRTGO4UN.js.map +0 -1
  751. package/dist/videos-KGPDOMSN.js +0 -41
  752. package/dist/viewer-check-PRUOWSNM.js +0 -89
  753. package/dist/visuals-L73TEVWN.js +0 -129
  754. package/dist/visuals-L73TEVWN.js.map +0 -1
  755. package/dist/web-IVYO7PY6.js +0 -180
  756. package/dist/web-IVYO7PY6.js.map +0 -1
  757. package/dist/winning-ads-274QKPKB.js +0 -88
  758. package/dist/write-commands-FUXBKDN7.js +0 -1555
  759. package/dist/write-commands-FUXBKDN7.js.map +0 -1
  760. package/dist/x-WVWMOUAQ.js +0 -47
  761. /package/dist/{actions-Q7DDN427.js.map → actions-KWHMTMLD.js.map} +0 -0
  762. /package/dist/{activities-SUUW5KH7.js.map → activities-NWXWO7T2.js.map} +0 -0
  763. /package/dist/{ads-DJHUXK2O.js.map → ads-7Q7PRFJ4.js.map} +0 -0
  764. /package/dist/{adsets-PMEPGGAI.js.map → adsets-CZFTSQQC.js.map} +0 -0
  765. /package/dist/{audiences-Y6UFKHZ5.js.map → audiences-SDFCRXHD.js.map} +0 -0
  766. /package/dist/{avatars-775WMIZF.js.map → avatars-PILXCCPG.js.map} +0 -0
  767. /package/dist/{campaigns-RNPLAVXM.js.map → campaigns-4JY3JKPY.js.map} +0 -0
  768. /package/dist/{campaigns-UEPNMAIN.js.map → campaigns-XS52PZQL.js.map} +0 -0
  769. /package/dist/{canvas-6CWER4CP.js.map → canvas-3AHETASK.js.map} +0 -0
  770. /package/dist/{check-3YGJFXU2.js.map → check-3SVCK3V3.js.map} +0 -0
  771. /package/dist/{chunk-HQISXBEX.js.map → chunk-2CV2LEJN.js.map} +0 -0
  772. /package/dist/{chunk-TDNOPJXB.js.map → chunk-2PNBK7KZ.js.map} +0 -0
  773. /package/dist/{chunk-TWSIY2FS.js.map → chunk-3B7GRVIM.js.map} +0 -0
  774. /package/dist/{chunk-4MIETRE4.js.map → chunk-3MJTL763.js.map} +0 -0
  775. /package/dist/{chunk-4X6QBNIB.js.map → chunk-4GM3TBGL.js.map} +0 -0
  776. /package/dist/{chunk-DSZ3OLQU.js.map → chunk-5UG7AJB5.js.map} +0 -0
  777. /package/dist/{chunk-OBT55DQA.js.map → chunk-AOXHDVWS.js.map} +0 -0
  778. /package/dist/{chunk-CHPHAPPP.js.map → chunk-AYW4VFTH.js.map} +0 -0
  779. /package/dist/{chunk-PMK2WXS5.js.map → chunk-BMUAE5IR.js.map} +0 -0
  780. /package/dist/{chunk-WVXJYBWA.js.map → chunk-BPQY4KIM.js.map} +0 -0
  781. /package/dist/{chunk-MQZHJAH3.js.map → chunk-BYYIJMLP.js.map} +0 -0
  782. /package/dist/{chunk-CSOESLNA.js.map → chunk-CDU64GKK.js.map} +0 -0
  783. /package/dist/{chunk-CG6BJIHU.js.map → chunk-DA634ZIV.js.map} +0 -0
  784. /package/dist/{chunk-NOJC3PUZ.js.map → chunk-DJLTDVRD.js.map} +0 -0
  785. /package/dist/{chunk-52V5324M.js.map → chunk-GHEURTBN.js.map} +0 -0
  786. /package/dist/{chunk-2DGJKIHF.js.map → chunk-H2IG6MOX.js.map} +0 -0
  787. /package/dist/{chunk-ECUN7W2Y.js.map → chunk-HVVE3GT6.js.map} +0 -0
  788. /package/dist/{chunk-CPBXSDXS.js.map → chunk-IAOXI7MJ.js.map} +0 -0
  789. /package/dist/{chunk-EHDZONE6.js.map → chunk-M6RQJCDW.js.map} +0 -0
  790. /package/dist/{chunk-RS4BSY3E.js.map → chunk-N5IR2T2B.js.map} +0 -0
  791. /package/dist/{chunk-YBSRIW5S.js.map → chunk-NZ3PQBRV.js.map} +0 -0
  792. /package/dist/{chunk-5OXVEKML.js.map → chunk-NZFVC7RP.js.map} +0 -0
  793. /package/dist/{chunk-34CJ5QXO.js.map → chunk-QLSNKH5D.js.map} +0 -0
  794. /package/dist/{chunk-JY5OIBMR.js.map → chunk-RN3IVT3B.js.map} +0 -0
  795. /package/dist/{chunk-63XEBJIX.js.map → chunk-RZOHIOPP.js.map} +0 -0
  796. /package/dist/{chunk-KDCPM6W2.js.map → chunk-SELCZP76.js.map} +0 -0
  797. /package/dist/{chunk-CWYONUBS.js.map → chunk-T55DY36I.js.map} +0 -0
  798. /package/dist/{chunk-S2V54TOS.js.map → chunk-T5FACY43.js.map} +0 -0
  799. /package/dist/{chunk-3HAKK5FO.js.map → chunk-TR72BZ4D.js.map} +0 -0
  800. /package/dist/{chunk-PA5OJXQ3.js.map → chunk-UTOVP53O.js.map} +0 -0
  801. /package/dist/{chunk-Y62YTEPM.js.map → chunk-VDHPAQUM.js.map} +0 -0
  802. /package/dist/{chunk-KUNNKG4S.js.map → chunk-VPWLH6VS.js.map} +0 -0
  803. /package/dist/{chunk-J5LG2M5T.js.map → chunk-VXLFFMW6.js.map} +0 -0
  804. /package/dist/{chunk-ZDDJTA3H.js.map → chunk-VZQHMRYM.js.map} +0 -0
  805. /package/dist/{chunk-YXYUHTQM.js.map → chunk-X4NF7IMQ.js.map} +0 -0
  806. /package/dist/{chunk-5WQ3UHJ2.js.map → chunk-X6CSCKXX.js.map} +0 -0
  807. /package/dist/{chunk-NR5EJ6TC.js.map → chunk-Y4XW2LW3.js.map} +0 -0
  808. /package/dist/{chunk-33KRW6HE.js.map → chunk-YAMDF3DT.js.map} +0 -0
  809. /package/dist/{chunk-MQIO7WLM.js.map → chunk-YCCTIFI7.js.map} +0 -0
  810. /package/dist/{chunk-XNTV3QKG.js.map → chunk-YWHOPJG5.js.map} +0 -0
  811. /package/dist/{chunk-QYOLOU5G.js.map → chunk-Z7WMTBGD.js.map} +0 -0
  812. /package/dist/{companies-ITNWR5Q4.js.map → companies-6FM3CALY.js.map} +0 -0
  813. /package/dist/{connect-SD7PFKPI.js.map → connect-J6M3W7WW.js.map} +0 -0
  814. /package/dist/{creatives-3E5BEATB.js.map → creatives-PW2P7VMU.js.map} +0 -0
  815. /package/dist/{creatives-OTKJRMBJ.js.map → creatives-Q3DWV55N.js.map} +0 -0
  816. /package/dist/{customers-V7WKKZI2.js.map → customers-OHB5EY7Z.js.map} +0 -0
  817. /package/dist/{fit-K63JPI3A.js.map → fit-BNMTWIDZ.js.map} +0 -0
  818. /package/dist/{ideas-6LZ6VINW.js.map → ideas-UK74GJGE.js.map} +0 -0
  819. /package/dist/{images-TUQEYLFE.js.map → images-OH7KDUR5.js.map} +0 -0
  820. /package/dist/{ingest-S7I6E2GE.js.map → ingest-2BC3W4WC.js.map} +0 -0
  821. /package/dist/{inspect-AQBNRV5E.js.map → inspect-ZMCRHR2P.js.map} +0 -0
  822. /package/dist/{line-items-KC5PKV2T.js.map → line-items-RUC54PIV.js.map} +0 -0
  823. /package/dist/{media-sources-NI6U2YWV.js.map → media-sources-KUEQ45V5.js.map} +0 -0
  824. /package/dist/{meta-GSTM6EBD.js.map → meta-2ZQ3CWLF.js.map} +0 -0
  825. /package/dist/{performance-OBAWMTVU.js.map → performance-BIH653SL.js.map} +0 -0
  826. /package/dist/{promoted-tweets-3AKHKOI4.js.map → promoted-tweets-6YCNFVJK.js.map} +0 -0
  827. /package/dist/{reddit-TKE3IXST.js.map → reddit-Z4REP3DB.js.map} +0 -0
  828. /package/dist/{research-B5VHPALW.js.map → research-M6YZMTCC.js.map} +0 -0
  829. /package/dist/{run-2RGSNKFH.js.map → run-MBVV64FY.js.map} +0 -0
  830. /package/dist/{scheduled-agents-YHZUPS2I.js.map → scheduled-agents-T7CITLJL.js.map} +0 -0
  831. /package/dist/{schema-NIYT4JHM.js.map → schema-6WONG4NR.js.map} +0 -0
  832. /package/dist/{sources-3KYI7TSD.js.map → sources-3RQZ3AR2.js.map} +0 -0
  833. /package/dist/{sync-definition-73CCAEDP.js.map → sync-definition-MR7XESTS.js.map} +0 -0
  834. /package/dist/{tags-5V3NCHKE.js.map → tags-I3AJEMKF.js.map} +0 -0
  835. /package/dist/{targeting-HIXQGQ7A.js.map → targeting-T2HTV2OD.js.map} +0 -0
  836. /package/dist/{targeting-criteria-FIXPSX2K.js.map → targeting-criteria-QFFAYBGE.js.map} +0 -0
  837. /package/dist/{testimonials-RIL2ARX7.js.map → testimonials-67Q3OTBU.js.map} +0 -0
  838. /package/dist/{videos-KGPDOMSN.js.map → videos-URSOTIHU.js.map} +0 -0
  839. /package/dist/{viewer-check-PRUOWSNM.js.map → viewer-check-N3SEOOMX.js.map} +0 -0
  840. /package/dist/{winning-ads-274QKPKB.js.map → winning-ads-TCRRYKCR.js.map} +0 -0
  841. /package/dist/{x-WVWMOUAQ.js.map → x-K6IWYLK3.js.map} +0 -0
@@ -0,0 +1,534 @@
1
+ import {
2
+ failApi
3
+ } from "./chunk-AOXHDVWS.js";
4
+ import "./chunk-ZJY3ACX3.js";
5
+ import "./chunk-RJHGIRU2.js";
6
+ import "./chunk-WCU362Z6.js";
7
+ import "./chunk-AFA4TY5Q.js";
8
+ import "./chunk-GIWHHCD6.js";
9
+ import "./chunk-PNGXJPM5.js";
10
+ import "./chunk-SOPVIIUW.js";
11
+ import "./chunk-G4FG5EQO.js";
12
+ import "./chunk-CS4VA3GQ.js";
13
+ import "./chunk-433NCHRS.js";
14
+ import {
15
+ ApiError,
16
+ apiPost
17
+ } from "./chunk-SZCEKDLE.js";
18
+ import "./chunk-2UFHCU7A.js";
19
+ import "./chunk-XQIAWIO5.js";
20
+ import {
21
+ registerSchema,
22
+ writeJson
23
+ } from "./chunk-2TEZDAAR.js";
24
+ import "./chunk-YQSBHWOI.js";
25
+
26
+ // src/commands/pipedrive/index.ts
27
+ import { defineCommand } from "citty";
28
+
29
+ // ../api/src/pipedrive.ts
30
+ import { z } from "zod";
31
+ var PIPEDRIVE_NOT_CONNECTED_MESSAGE = "No Pipedrive account is connected for this company.";
32
+ var PIPEDRIVE_MISSING_GRANT_MARKER = "has not granted access to";
33
+ var attributionParameterSchema = z.enum([
34
+ "gclid",
35
+ "fbclid",
36
+ "msclkid",
37
+ "ttclid",
38
+ "li_fat_id",
39
+ "utm_source",
40
+ "utm_medium",
41
+ "utm_campaign",
42
+ "utm_term",
43
+ "utm_content"
44
+ ]);
45
+ var pipedriveEntitySchema = z.enum(["person", "organization", "deal", "lead"]);
46
+ var pipedriveFieldSchema = z.object({
47
+ key: z.string(),
48
+ name: z.string(),
49
+ /** Pipedrive's own type name (`varchar`, `monetary`, `enum`, `set`, `date`…). */
50
+ fieldType: z.string(),
51
+ /** False for a field Pipedrive ships with. */
52
+ custom: z.boolean(),
53
+ /** Present for `enum` and `set` fields only. */
54
+ options: z.array(z.object({ id: z.union([z.number(), z.string()]), label: z.string() })).optional()
55
+ });
56
+ var pipedriveFieldsRequestSchema = z.object({
57
+ /** Which catalogue to read. Omitted reads all four. */
58
+ entity: pipedriveEntitySchema.optional(),
59
+ /** Include the fields Pipedrive ships with, not just the client's own. */
60
+ full: z.boolean().optional()
61
+ });
62
+ var pipedriveFieldsResponseSchema = z.object({
63
+ ok: z.literal(true),
64
+ data: z.object({
65
+ /** Only the catalogues that were read: `--entity person` returns that one. */
66
+ fields: z.partialRecord(pipedriveEntitySchema, z.array(pipedriveFieldSchema)),
67
+ /**
68
+ * The custom fields that hold an ad parameter, across every catalogue read.
69
+ * Empty is the finding a tracking audit is after: nowhere to put a `gclid`
70
+ * means no lead can carry one, whatever the Form sends.
71
+ */
72
+ attribution: z.array(
73
+ z.object({
74
+ entity: pipedriveEntitySchema,
75
+ key: z.string(),
76
+ name: z.string(),
77
+ carries: attributionParameterSchema
78
+ })
79
+ )
80
+ })
81
+ });
82
+ var pipedrivePipelinesRequestSchema = z.object({});
83
+ var pipedrivePipelinesResponseSchema = z.object({
84
+ ok: z.literal(true),
85
+ data: z.object({
86
+ pipelines: z.array(
87
+ z.object({
88
+ id: z.number(),
89
+ name: z.string(),
90
+ stages: z.array(z.object({ id: z.number(), name: z.string(), order: z.number() }))
91
+ })
92
+ )
93
+ })
94
+ });
95
+ var pipedriveDealStatusSchema = z.enum(["open", "won", "lost"]);
96
+ var pipedriveDealsRequestSchema = z.object({
97
+ pipelineId: z.number().int().positive().optional(),
98
+ stageId: z.number().int().positive().optional(),
99
+ status: pipedriveDealStatusSchema.optional(),
100
+ /** Only deals updated on or after this day (YYYY-MM-DD). */
101
+ since: z.string().regex(/^\d{4}-\d{2}-\d{2}$/).optional(),
102
+ /** Return each deal as a row instead of only the per-stage counts. */
103
+ full: z.boolean().optional()
104
+ });
105
+ var pipedriveDealsResponseSchema = z.object({
106
+ ok: z.literal(true),
107
+ data: z.object({
108
+ summary: z.object({
109
+ total: z.number().int(),
110
+ open: z.number().int(),
111
+ won: z.number().int(),
112
+ lost: z.number().int(),
113
+ withOwner: z.number().int(),
114
+ withoutOwner: z.number().int(),
115
+ byStage: z.array(
116
+ z.object({
117
+ stageId: z.number(),
118
+ stage: z.string(),
119
+ count: z.number().int(),
120
+ value: z.number(),
121
+ medianDaysInStage: z.number().nullable()
122
+ })
123
+ )
124
+ }),
125
+ /**
126
+ * Only with `full`. A deal is not a person, so a row may carry a title and
127
+ * a value — never the contact behind it, which `persons lookup` answers one
128
+ * at a time and on purpose.
129
+ */
130
+ deals: z.array(
131
+ z.object({
132
+ id: z.number(),
133
+ title: z.string(),
134
+ value: z.number().nullable(),
135
+ currency: z.string().nullable(),
136
+ status: z.string(),
137
+ stage: z.string().nullable(),
138
+ daysInStage: z.number().nullable(),
139
+ hasOwner: z.boolean()
140
+ })
141
+ ).optional(),
142
+ /**
143
+ * How far back the pace reading can see. `stage_change_time` says when a
144
+ * deal entered its current stage and nothing about the ones before it;
145
+ * saying so stops a report reading this as the full history.
146
+ */
147
+ paceNote: z.string()
148
+ })
149
+ });
150
+ var pipedriveLeadsRequestSchema = z.object({
151
+ /** Only leads updated on or after this day (YYYY-MM-DD). */
152
+ since: z.string().regex(/^\d{4}-\d{2}-\d{2}$/).optional(),
153
+ /** A row per lead, with the attribution field values it carries — needs the fields to exist. */
154
+ full: z.boolean().optional()
155
+ });
156
+ var pipedriveLeadsResponseSchema = z.object({
157
+ ok: z.literal(true),
158
+ data: z.object({
159
+ total: z.number().int(),
160
+ /** Leads whose owner is set — a lead nobody owns is in nobody's queue. */
161
+ withOwner: z.number().int(),
162
+ /** Only with `full`: counts are the default, so a whole inbox never lands in a Session. */
163
+ leads: z.array(
164
+ z.object({
165
+ id: z.string(),
166
+ title: z.string(),
167
+ value: z.number().nullable(),
168
+ currency: z.string().nullable(),
169
+ addTime: z.string().nullable(),
170
+ hasOwner: z.boolean(),
171
+ /** Pipedrive's own word for where the lead came from, when it set one. */
172
+ sourceName: z.string().nullable(),
173
+ /** The attribution fields this lead actually carries, by parameter name. */
174
+ attribution: z.record(z.string(), z.string())
175
+ })
176
+ ).optional()
177
+ })
178
+ });
179
+ var pipedrivePersonsLookupRequestSchema = z.object({
180
+ email: z.string().min(3).max(320)
181
+ });
182
+ var pipedrivePersonsLookupResponseSchema = z.object({
183
+ ok: z.literal(true),
184
+ data: z.object({
185
+ /** False is a finding, not an error: the lead never reached Pipedrive. */
186
+ found: z.boolean(),
187
+ person: z.object({
188
+ id: z.number(),
189
+ name: z.string(),
190
+ organization: z.string().nullable(),
191
+ hasOwner: z.boolean(),
192
+ addTime: z.string().nullable()
193
+ }).nullable(),
194
+ /**
195
+ * The deals that person is attached to. `dealsReadable: false` means the
196
+ * connection could not read them, so an empty list is unknown rather than
197
+ * absent — the same distinction `hubspot contacts lookup` draws.
198
+ */
199
+ deals: z.array(z.object({ id: z.number(), title: z.string(), status: z.string(), stage: z.string().nullable() })),
200
+ dealsReadable: z.boolean(),
201
+ /**
202
+ * Pipedrive hides a record the connected login may not see rather than
203
+ * refusing the search, so `found: false` with this true means "not visible
204
+ * to this connection", never "the lead never arrived".
205
+ */
206
+ someResultsHidden: z.boolean()
207
+ })
208
+ });
209
+
210
+ // src/commands/pipedrive/refusal.ts
211
+ var CONTINUE = "Keep going with the wider task: say which part you could not read, skip it, and finish everything else. If the `request_connection` call fails, say so plainly and give the exact route: dashboard \u2192 Brain \u2192 Integrations \u2192 Platforms \u2192 Pipedrive.";
212
+ function pipedriveRefusal(code, message, reason = "so I can check whether the leads from your ads are reaching your CRM") {
213
+ if (code === "NOT_FOUND" && message.includes(PIPEDRIVE_NOT_CONNECTED_MESSAGE)) {
214
+ return {
215
+ code: "NO_PIPEDRIVE_CONNECTION",
216
+ fix: {
217
+ action: "request_connection",
218
+ explanation: `AGENT INSTRUCTION: Pipedrive is not connected, and only the user can connect it. Call the \`request_connection\` tool with { platform: "pipedrive", reason } \u2014 reason in their words, e.g. "${reason}" \u2014 and they connect it inside the chat; then run this command again. ` + CONTINUE
219
+ }
220
+ };
221
+ }
222
+ if (code === "FORBIDDEN" && message.includes(PIPEDRIVE_MISSING_GRANT_MARKER)) {
223
+ return {
224
+ code: "PIPEDRIVE_RECONNECT_REQUIRED",
225
+ fix: {
226
+ action: "request_connection",
227
+ explanation: 'AGENT INSTRUCTION: Pipedrive IS connected \u2014 do not tell the user it is missing, and do not retry. Its access does not cover this read (it was connected before Baker asked for it), and only the user can widen it. Call the `request_connection` tool with { platform: "pipedrive", reason } naming what you need to read; the card offers them a Reconnect button. Run this command again once they have. ' + CONTINUE
228
+ }
229
+ };
230
+ }
231
+ return null;
232
+ }
233
+ function failNotConnected(err, reason) {
234
+ const refusal = err instanceof ApiError ? pipedriveRefusal(err.code, err.message, reason) : null;
235
+ if (err instanceof ApiError && refusal !== null) {
236
+ writeJson({ ok: false, error: { code: refusal.code, message: err.message, fix: refusal.fix } });
237
+ process.exit(1);
238
+ }
239
+ failApi(err);
240
+ }
241
+
242
+ // src/commands/pipedrive/index.ts
243
+ var ENTITIES = ["person", "organization", "deal", "lead"];
244
+ function assertEntity(value) {
245
+ if (value === void 0) {
246
+ return void 0;
247
+ }
248
+ if (!ENTITIES.includes(value)) {
249
+ throw new Error(`--entity must be one of: ${ENTITIES.join("|")}`);
250
+ }
251
+ return value;
252
+ }
253
+ var DAY = /^\d{4}-\d{2}-\d{2}$/;
254
+ function assertDay(value, flag) {
255
+ if (value === void 0) {
256
+ return void 0;
257
+ }
258
+ if (!DAY.test(value)) {
259
+ throw new Error(`${flag} must be a day, as YYYY-MM-DD`);
260
+ }
261
+ return value;
262
+ }
263
+ registerSchema({
264
+ command: "pipedrive.fields",
265
+ routes: ["POST /api/pipedrive/fields"],
266
+ effect: "read_live",
267
+ description: "Start here for a tracking audit on Pipedrive: every custom field the account keeps, per entity, and \u2014 the part that matters \u2014 which of them carry where a lead came from (gclid, fbclid, utm_*). An empty `attribution` list is the finding: there is nowhere in this CRM to put a click id, so no lead can carry one however the Form is wired, and the fix is to create the field, not to re-check the Form. Field keys are opaque 40-character hashes; use them exactly as printed. Only the client's own fields by default \u2014 `--full` adds the ones Pipedrive ships with.",
268
+ args: {
269
+ entity: {
270
+ type: "string",
271
+ description: "Read one catalogue: person|organization|deal|lead (leads carry the deal fields)",
272
+ required: false,
273
+ enum: [...ENTITIES]
274
+ },
275
+ full: { type: "boolean", description: "Include the fields Pipedrive ships with", required: false, default: false }
276
+ }
277
+ });
278
+ registerSchema({
279
+ command: "pipedrive.pipelines",
280
+ routes: ["POST /api/pipedrive/pipelines"],
281
+ effect: "read_live",
282
+ description: "The account's pipelines and the stages inside each, in the order they run. This is what a lead travels through after it is captured, read from the CRM rather than asked of the client \u2014 use it to answer 'what are your stages called?' yourself, and to get the pipeline and stage ids for `pipedrive deals`.",
283
+ args: {}
284
+ });
285
+ registerSchema({
286
+ command: "pipedrive.deals",
287
+ routes: ["POST /api/pipedrive/deals"],
288
+ effect: "read_live",
289
+ description: "Whether the leads reaching the CRM are actually being worked, and how fast: counts and value per stage, the open/won/lost split, how many have nobody assigned, and the median days the deals in each stage have sat there. A stage with zero deals is listed rather than dropped \u2014 'nothing ever reaches Propuesta' is the finding. Compact by default; `--full` adds a row per deal (never the person behind it \u2014 that is `pipedrive persons lookup`). Note the pace only covers the stage each deal is in NOW, not the ones it already left.",
290
+ args: {
291
+ "pipeline-id": { type: "string", description: "Pipeline id (from `baker pipedrive pipelines`)", required: false },
292
+ "stage-id": { type: "string", description: "Stage id (from `baker pipedrive pipelines`)", required: false },
293
+ status: { type: "string", description: "open|won|lost", required: false, enum: ["open", "won", "lost"] },
294
+ since: { type: "string", description: "Only deals updated on or after this day (YYYY-MM-DD)", required: false },
295
+ full: { type: "boolean", description: "A row per deal, not just the per-stage counts", required: false }
296
+ }
297
+ });
298
+ registerSchema({
299
+ command: "pipedrive.leads",
300
+ routes: ["POST /api/pipedrive/leads"],
301
+ effect: "read_live",
302
+ description: "The leads sitting in Pipedrive's Leads Inbox \u2014 what Baker's Forms create \u2014 counted, with how many have nobody assigned. Compact by default; `--full` adds a row per lead (title, source, when it arrived) with its attribution field values, so you can prove a specific lead arrived carrying its gclid rather than assume it. Use `--since` to narrow to a test you just ran. For one named person rather than a list, use `pipedrive persons lookup`.",
303
+ args: {
304
+ since: { type: "string", description: "Only leads updated on or after this day (YYYY-MM-DD)", required: false },
305
+ full: { type: "boolean", description: "A row per lead, with its attribution values", required: false }
306
+ }
307
+ });
308
+ registerSchema({
309
+ command: "pipedrive.persons.lookup",
310
+ routes: ["POST /api/pipedrive/persons/lookup"],
311
+ effect: "read_live",
312
+ description: "One contact by email: whether they exist in Pipedrive at all, which company they were filed under, whether anyone owns them, and the deals attached to them with their stage. This is how you settle 'my test lead never arrived' without paging the CRM. `found: false` means the lead never reached Pipedrive \u2014 that is a finding, not an error. `dealsReadable: false` means deals were not readable on this connection, so an empty deals list is unknown rather than absent.",
313
+ args: {
314
+ email: { type: "positional", description: "The contact's email address", required: true }
315
+ }
316
+ });
317
+ var fieldsCommand = defineCommand({
318
+ meta: {
319
+ name: "fields",
320
+ description: "Start here: the account's custom fields, and which carry gclid/fbclid/UTM. Example: baker pipedrive fields --entity deal"
321
+ },
322
+ args: {
323
+ entity: { type: "string", description: "person|organization|deal|lead", required: false },
324
+ full: { type: "boolean", description: "Include built-in fields", required: false }
325
+ },
326
+ run: async ({ args }) => {
327
+ try {
328
+ const body = {};
329
+ const entity = assertEntity(args.entity);
330
+ if (entity) body.entity = entity;
331
+ if (args.full) body.full = true;
332
+ const response = await apiPost("/api/pipedrive/fields", body, { read: true });
333
+ const { attribution } = response.data;
334
+ const hints = [];
335
+ if (attribution.length === 0) {
336
+ hints.push(
337
+ "NO ATTRIBUTION FIELDS. This account has nowhere to store a gclid, fbclid or utm_*, so no lead can carry one however the Form is wired. Do not report the tracking as broken on the Form's side before saying this: the client (or Baker, once it may create fields) has to add the field in Pipedrive first."
338
+ );
339
+ } else {
340
+ hints.push(
341
+ `Attribution lives in: ${attribution.map((f) => `${f.carries} \u2192 "${f.name}"`).join(", ")}. Use \`baker pipedrive leads --full\` to check a real lead actually arrived carrying them.`
342
+ );
343
+ }
344
+ writeJson({ ...response, meta: { count: attribution.length }, hints });
345
+ } catch (err) {
346
+ failNotConnected(err, "so I can check whether your leads arrive with their campaign tracking");
347
+ }
348
+ }
349
+ });
350
+ var pipelinesCommand = defineCommand({
351
+ meta: {
352
+ name: "pipelines",
353
+ description: "The account's pipelines and their stages, in order. Example: baker pipedrive pipelines"
354
+ },
355
+ args: {},
356
+ run: async () => {
357
+ try {
358
+ const response = await apiPost("/api/pipedrive/pipelines", {}, { read: true });
359
+ const { pipelines } = response.data;
360
+ writeJson({
361
+ ...response,
362
+ meta: { count: pipelines.length },
363
+ hints: [
364
+ "These are the client's real stage names \u2014 use them in the funnel instead of asking the client to list them.",
365
+ "Next: `baker pipedrive deals --pipeline-id <id>` for how many deals sit in each stage and how long they have been there."
366
+ ]
367
+ });
368
+ } catch (err) {
369
+ failNotConnected(err, "so I can see the stages your leads go through");
370
+ }
371
+ }
372
+ });
373
+ var dealsCommand = defineCommand({
374
+ meta: {
375
+ name: "deals",
376
+ description: "Counts, value and pace per stage. Example: baker pipedrive deals --pipeline-id 7 --status open"
377
+ },
378
+ args: {
379
+ "pipeline-id": { type: "string", description: "Pipeline id", required: false },
380
+ "stage-id": { type: "string", description: "Stage id", required: false },
381
+ status: { type: "string", description: "open|won|lost", required: false },
382
+ since: { type: "string", description: "Updated on or after (YYYY-MM-DD)", required: false },
383
+ full: { type: "boolean", description: "A row per deal", required: false }
384
+ },
385
+ run: async ({ args }) => {
386
+ try {
387
+ const body = {};
388
+ if (args["pipeline-id"]) body.pipelineId = Number(args["pipeline-id"]);
389
+ if (args["stage-id"]) body.stageId = Number(args["stage-id"]);
390
+ if (args.status) body.status = args.status;
391
+ const since = assertDay(args.since, "--since");
392
+ if (since) body.since = since;
393
+ if (args.full) body.full = true;
394
+ const response = await apiPost("/api/pipedrive/deals", body, { read: true });
395
+ const { summary } = response.data;
396
+ const hints = [];
397
+ const empty = summary.byStage.filter((stage) => stage.count === 0);
398
+ if (summary.total === 0) {
399
+ hints.push(
400
+ "No deals matched. Leads Baker creates land in Pipedrive's Leads Inbox and are NOT deals until someone converts them \u2014 check `baker pipedrive leads` before concluding nothing arrived."
401
+ );
402
+ } else if (empty.length > 0) {
403
+ hints.push(
404
+ `${empty.length} stage(s) hold no deals at all: ${empty.map((stage) => stage.stage).join(", ")}. If one of those is where qualified leads should land, that is where the funnel stops.`
405
+ );
406
+ }
407
+ if (summary.withoutOwner > 0) {
408
+ hints.push(
409
+ `${summary.withoutOwner} deal(s) have nobody assigned \u2014 they are in no one's queue. Say so before blaming the ads for a low close rate.`
410
+ );
411
+ }
412
+ writeJson({ ...response, meta: { count: summary.total }, ...hints.length > 0 ? { hints } : {} });
413
+ } catch (err) {
414
+ failNotConnected(err, "so I can see whether the leads I send are being worked");
415
+ }
416
+ }
417
+ });
418
+ var leadsCommand = defineCommand({
419
+ meta: {
420
+ name: "leads",
421
+ description: "The Leads Inbox \u2014 what Baker's Forms create. Example: baker pipedrive leads --since 2026-11-01 --full"
422
+ },
423
+ args: {
424
+ since: { type: "string", description: "Updated on or after (YYYY-MM-DD)", required: false },
425
+ full: { type: "boolean", description: "A row per lead, with its attribution values", required: false }
426
+ },
427
+ run: async ({ args }) => {
428
+ try {
429
+ const body = {};
430
+ const since = assertDay(args.since, "--since");
431
+ if (since) body.since = since;
432
+ if (args.full) body.full = true;
433
+ const response = await apiPost("/api/pipedrive/leads", body, { read: true });
434
+ const { total, withOwner, leads } = response.data;
435
+ const hints = [];
436
+ if (total === 0) {
437
+ hints.push(
438
+ "No leads matched. Widen or drop --since before concluding delivery is broken, then check one named person with `baker pipedrive persons lookup <email>`."
439
+ );
440
+ }
441
+ if (args.full && total > 0) {
442
+ const carrying = (leads ?? []).filter((lead) => Object.keys(lead.attribution).length > 0).length;
443
+ hints.push(
444
+ carrying === 0 ? "NOT ONE lead carries an attribution value. Check `baker pipedrive fields` first: if the account has no gclid/utm field, that is the cause and the Form is not at fault." : `${carrying} of ${total} lead(s) carry attribution values. The rest arrived without one \u2014 direct traffic looks identical to a broken tag, so do not report either as certain.`
445
+ );
446
+ } else if (total > 0) {
447
+ hints.push("Add --full for a row per lead and whether each one carries its gclid / utm values.");
448
+ }
449
+ if (total > 0 && withOwner === 0) {
450
+ hints.push("No lead has an owner, so none of them is in anybody's queue in Pipedrive.");
451
+ }
452
+ writeJson({ ...response, meta: { count: total }, ...hints.length > 0 ? { hints } : {} });
453
+ } catch (err) {
454
+ failNotConnected(err, "so I can confirm the leads from your ads reach your CRM");
455
+ }
456
+ }
457
+ });
458
+ var personsLookupCommand = defineCommand({
459
+ meta: {
460
+ name: "lookup",
461
+ description: "One contact by email, with their deals. Example: baker pipedrive persons lookup a@b.com"
462
+ },
463
+ args: { email: { type: "positional", description: "Email address", required: true } },
464
+ run: async ({ args }) => {
465
+ try {
466
+ const response = await apiPost(
467
+ "/api/pipedrive/persons/lookup",
468
+ { email: args.email },
469
+ { read: true }
470
+ );
471
+ const { found, deals, dealsReadable, someResultsHidden } = response.data;
472
+ const hints = [];
473
+ if (!found && someResultsHidden) {
474
+ hints.push(
475
+ "NOT FOUND, BUT Pipedrive hid at least one result from this connection \u2014 the person may exist and simply not be visible to the account Baker is signed in with. Do NOT report that the lead never arrived; say the CRM could not be read for that address and ask the user to check it in Pipedrive."
476
+ );
477
+ } else if (!found) {
478
+ hints.push(
479
+ "This person is not in Pipedrive. That is a finding, not an error \u2014 the lead never reached the CRM. Check `baker pipedrive leads` too: a lead in the Leads Inbox may not yet have a person record."
480
+ );
481
+ } else if (!dealsReadable) {
482
+ hints.push(
483
+ "The person is there, but this connection cannot read deals, so the empty deals list means unknown, not none. Do not report that nobody worked them."
484
+ );
485
+ } else if (deals.length === 0) {
486
+ hints.push(
487
+ "The person exists but is attached to no deal: they reached the CRM and nobody opened an opportunity."
488
+ );
489
+ }
490
+ writeJson({ ...response, ...hints.length > 0 ? { hints } : {} });
491
+ } catch (err) {
492
+ failNotConnected(err, "so I can check whether a specific lead reached your CRM");
493
+ }
494
+ }
495
+ });
496
+ var personsCommand = defineCommand({
497
+ meta: { name: "persons", description: "Contacts in Pipedrive" },
498
+ subCommands: { lookup: personsLookupCommand }
499
+ });
500
+ var pipedriveCommand = defineCommand({
501
+ meta: {
502
+ name: "pipedrive",
503
+ description: `Read the connected Pipedrive account \u2014 custom fields and which carry campaign tracking, pipelines and
504
+ stages, deals by stage with their pace, the Leads Inbox, and one contact by email.
505
+
506
+ Examples:
507
+ baker pipedrive fields # custom fields + which carry gclid/fbclid/UTM
508
+ baker pipedrive pipelines # the real stage names, so you need not ask the client
509
+ baker pipedrive deals --pipeline-id 7 # how many deals per stage, and how long they have sat there
510
+ baker pipedrive deals --status open --full # a row per open deal
511
+ baker pipedrive leads --since 2026-11-01 --full # did today's leads arrive, carrying their tracking?
512
+ baker pipedrive persons lookup a@b.com # did this one lead reach the CRM at all?
513
+
514
+ A lead Baker's Form creates lands in Pipedrive's LEADS INBOX, not in a pipeline: it is not a deal until
515
+ somebody converts it. So "no deals" never means "no leads arrived" \u2014 check \`leads\` before saying so.
516
+
517
+ An account connected before Baker asked for a permission cannot serve the read that needs it: you get
518
+ PIPEDRIVE_RECONNECT_REQUIRED, which means Pipedrive IS connected and the user has to reconnect to widen it.
519
+ Report that and carry on with the rest; never call it broken and never retry.
520
+
521
+ Full guide: __tooling__/docs/tools/baker/pipedrive.md`
522
+ },
523
+ subCommands: {
524
+ fields: fieldsCommand,
525
+ pipelines: pipelinesCommand,
526
+ deals: dealsCommand,
527
+ leads: leadsCommand,
528
+ persons: personsCommand
529
+ }
530
+ });
531
+ export {
532
+ pipedriveCommand
533
+ };
534
+ //# sourceMappingURL=pipedrive-7AHNEUZI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/commands/pipedrive/index.ts","../../api/src/pipedrive.ts","../src/commands/pipedrive/refusal.ts"],"sourcesContent":["import type {\n PipedriveDealsResponse,\n PipedriveFieldsResponse,\n PipedriveLeadsResponse,\n PipedrivePersonsLookupResponse,\n PipedrivePipelinesResponse,\n} from \"@baker/api/pipedrive\";\nimport { defineCommand } from \"citty\";\nimport { apiPost } from \"../../client.ts\";\nimport { writeJson } from \"../../output.ts\";\nimport { registerSchema } from \"../../schemas.ts\";\nimport { failNotConnected } from \"./refusal.ts\";\n\nconst ENTITIES = [\"person\", \"organization\", \"deal\", \"lead\"] as const;\n\nfunction assertEntity(value: string | undefined): (typeof ENTITIES)[number] | undefined {\n if (value === undefined) {\n return undefined;\n }\n if (!(ENTITIES as readonly string[]).includes(value)) {\n throw new Error(`--entity must be one of: ${ENTITIES.join(\"|\")}`);\n }\n return value as (typeof ENTITIES)[number];\n}\n\nconst DAY = /^\\d{4}-\\d{2}-\\d{2}$/;\n\nfunction assertDay(value: string | undefined, flag: string): string | undefined {\n if (value === undefined) {\n return undefined;\n }\n if (!DAY.test(value)) {\n throw new Error(`${flag} must be a day, as YYYY-MM-DD`);\n }\n return value;\n}\n\nregisterSchema({\n command: \"pipedrive.fields\",\n routes: [\"POST /api/pipedrive/fields\"],\n effect: \"read_live\",\n description:\n \"Start here for a tracking audit on Pipedrive: every custom field the account keeps, per entity, and — the part that matters — which of them carry where a lead came from (gclid, fbclid, utm_*). An empty `attribution` list is the finding: there is nowhere in this CRM to put a click id, so no lead can carry one however the Form is wired, and the fix is to create the field, not to re-check the Form. Field keys are opaque 40-character hashes; use them exactly as printed. Only the client's own fields by default — `--full` adds the ones Pipedrive ships with.\",\n args: {\n entity: {\n type: \"string\",\n description: \"Read one catalogue: person|organization|deal|lead (leads carry the deal fields)\",\n required: false,\n enum: [...ENTITIES],\n },\n full: { type: \"boolean\", description: \"Include the fields Pipedrive ships with\", required: false, default: false },\n },\n});\n\nregisterSchema({\n command: \"pipedrive.pipelines\",\n routes: [\"POST /api/pipedrive/pipelines\"],\n effect: \"read_live\",\n description:\n \"The account's pipelines and the stages inside each, in the order they run. This is what a lead travels through after it is captured, read from the CRM rather than asked of the client — use it to answer 'what are your stages called?' yourself, and to get the pipeline and stage ids for `pipedrive deals`.\",\n args: {},\n});\n\nregisterSchema({\n command: \"pipedrive.deals\",\n routes: [\"POST /api/pipedrive/deals\"],\n effect: \"read_live\",\n description:\n \"Whether the leads reaching the CRM are actually being worked, and how fast: counts and value per stage, the open/won/lost split, how many have nobody assigned, and the median days the deals in each stage have sat there. A stage with zero deals is listed rather than dropped — 'nothing ever reaches Propuesta' is the finding. Compact by default; `--full` adds a row per deal (never the person behind it — that is `pipedrive persons lookup`). Note the pace only covers the stage each deal is in NOW, not the ones it already left.\",\n args: {\n \"pipeline-id\": { type: \"string\", description: \"Pipeline id (from `baker pipedrive pipelines`)\", required: false },\n \"stage-id\": { type: \"string\", description: \"Stage id (from `baker pipedrive pipelines`)\", required: false },\n status: { type: \"string\", description: \"open|won|lost\", required: false, enum: [\"open\", \"won\", \"lost\"] },\n since: { type: \"string\", description: \"Only deals updated on or after this day (YYYY-MM-DD)\", required: false },\n full: { type: \"boolean\", description: \"A row per deal, not just the per-stage counts\", required: false },\n },\n});\n\nregisterSchema({\n command: \"pipedrive.leads\",\n routes: [\"POST /api/pipedrive/leads\"],\n effect: \"read_live\",\n description:\n \"The leads sitting in Pipedrive's Leads Inbox — what Baker's Forms create — counted, with how many have nobody assigned. Compact by default; `--full` adds a row per lead (title, source, when it arrived) with its attribution field values, so you can prove a specific lead arrived carrying its gclid rather than assume it. Use `--since` to narrow to a test you just ran. For one named person rather than a list, use `pipedrive persons lookup`.\",\n args: {\n since: { type: \"string\", description: \"Only leads updated on or after this day (YYYY-MM-DD)\", required: false },\n full: { type: \"boolean\", description: \"A row per lead, with its attribution values\", required: false },\n },\n});\n\nregisterSchema({\n command: \"pipedrive.persons.lookup\",\n routes: [\"POST /api/pipedrive/persons/lookup\"],\n effect: \"read_live\",\n description:\n \"One contact by email: whether they exist in Pipedrive at all, which company they were filed under, whether anyone owns them, and the deals attached to them with their stage. This is how you settle 'my test lead never arrived' without paging the CRM. `found: false` means the lead never reached Pipedrive — that is a finding, not an error. `dealsReadable: false` means deals were not readable on this connection, so an empty deals list is unknown rather than absent.\",\n args: {\n email: { type: \"positional\", description: \"The contact's email address\", required: true },\n },\n});\n\nconst fieldsCommand = defineCommand({\n meta: {\n name: \"fields\",\n description:\n \"Start here: the account's custom fields, and which carry gclid/fbclid/UTM. Example: baker pipedrive fields --entity deal\",\n },\n args: {\n entity: { type: \"string\", description: \"person|organization|deal|lead\", required: false },\n full: { type: \"boolean\", description: \"Include built-in fields\", required: false },\n },\n run: async ({ args }) => {\n try {\n const body: Record<string, unknown> = {};\n const entity = assertEntity(args.entity);\n if (entity) body.entity = entity;\n if (args.full) body.full = true;\n\n const response = await apiPost<PipedriveFieldsResponse>(\"/api/pipedrive/fields\", body, { read: true });\n const { attribution } = response.data;\n const hints: string[] = [];\n\n if (attribution.length === 0) {\n hints.push(\n \"NO ATTRIBUTION FIELDS. This account has nowhere to store a gclid, fbclid or utm_*, so no lead can carry one however the Form is wired. Do not report the tracking as broken on the Form's side before saying this: the client (or Baker, once it may create fields) has to add the field in Pipedrive first.\",\n );\n } else {\n hints.push(\n `Attribution lives in: ${attribution.map((f) => `${f.carries} → \"${f.name}\"`).join(\", \")}. Use \\`baker pipedrive leads --full\\` to check a real lead actually arrived carrying them.`,\n );\n }\n\n writeJson({ ...response, meta: { count: attribution.length }, hints });\n } catch (err) {\n failNotConnected(err, \"so I can check whether your leads arrive with their campaign tracking\");\n }\n },\n});\n\nconst pipelinesCommand = defineCommand({\n meta: {\n name: \"pipelines\",\n description: \"The account's pipelines and their stages, in order. Example: baker pipedrive pipelines\",\n },\n args: {},\n run: async () => {\n try {\n const response = await apiPost<PipedrivePipelinesResponse>(\"/api/pipedrive/pipelines\", {}, { read: true });\n const { pipelines } = response.data;\n writeJson({\n ...response,\n meta: { count: pipelines.length },\n hints: [\n \"These are the client's real stage names — use them in the funnel instead of asking the client to list them.\",\n \"Next: `baker pipedrive deals --pipeline-id <id>` for how many deals sit in each stage and how long they have been there.\",\n ],\n });\n } catch (err) {\n failNotConnected(err, \"so I can see the stages your leads go through\");\n }\n },\n});\n\nconst dealsCommand = defineCommand({\n meta: {\n name: \"deals\",\n description: \"Counts, value and pace per stage. Example: baker pipedrive deals --pipeline-id 7 --status open\",\n },\n args: {\n \"pipeline-id\": { type: \"string\", description: \"Pipeline id\", required: false },\n \"stage-id\": { type: \"string\", description: \"Stage id\", required: false },\n status: { type: \"string\", description: \"open|won|lost\", required: false },\n since: { type: \"string\", description: \"Updated on or after (YYYY-MM-DD)\", required: false },\n full: { type: \"boolean\", description: \"A row per deal\", required: false },\n },\n run: async ({ args }) => {\n try {\n const body: Record<string, unknown> = {};\n if (args[\"pipeline-id\"]) body.pipelineId = Number(args[\"pipeline-id\"]);\n if (args[\"stage-id\"]) body.stageId = Number(args[\"stage-id\"]);\n if (args.status) body.status = args.status;\n const since = assertDay(args.since, \"--since\");\n if (since) body.since = since;\n if (args.full) body.full = true;\n\n const response = await apiPost<PipedriveDealsResponse>(\"/api/pipedrive/deals\", body, { read: true });\n const { summary } = response.data;\n const hints: string[] = [];\n\n const empty = summary.byStage.filter((stage) => stage.count === 0);\n if (summary.total === 0) {\n hints.push(\n \"No deals matched. Leads Baker creates land in Pipedrive's Leads Inbox and are NOT deals until someone converts them — check `baker pipedrive leads` before concluding nothing arrived.\",\n );\n } else if (empty.length > 0) {\n hints.push(\n `${empty.length} stage(s) hold no deals at all: ${empty.map((stage) => stage.stage).join(\", \")}. If one of those is where qualified leads should land, that is where the funnel stops.`,\n );\n }\n if (summary.withoutOwner > 0) {\n hints.push(\n `${summary.withoutOwner} deal(s) have nobody assigned — they are in no one's queue. Say so before blaming the ads for a low close rate.`,\n );\n }\n\n writeJson({ ...response, meta: { count: summary.total }, ...(hints.length > 0 ? { hints } : {}) });\n } catch (err) {\n failNotConnected(err, \"so I can see whether the leads I send are being worked\");\n }\n },\n});\n\nconst leadsCommand = defineCommand({\n meta: {\n name: \"leads\",\n description:\n \"The Leads Inbox — what Baker's Forms create. Example: baker pipedrive leads --since 2026-11-01 --full\",\n },\n args: {\n since: { type: \"string\", description: \"Updated on or after (YYYY-MM-DD)\", required: false },\n full: { type: \"boolean\", description: \"A row per lead, with its attribution values\", required: false },\n },\n run: async ({ args }) => {\n try {\n const body: Record<string, unknown> = {};\n const since = assertDay(args.since, \"--since\");\n if (since) body.since = since;\n if (args.full) body.full = true;\n\n const response = await apiPost<PipedriveLeadsResponse>(\"/api/pipedrive/leads\", body, { read: true });\n const { total, withOwner, leads } = response.data;\n const hints: string[] = [];\n\n if (total === 0) {\n hints.push(\n \"No leads matched. Widen or drop --since before concluding delivery is broken, then check one named person with `baker pipedrive persons lookup <email>`.\",\n );\n }\n if (args.full && total > 0) {\n const carrying = (leads ?? []).filter((lead) => Object.keys(lead.attribution).length > 0).length;\n hints.push(\n carrying === 0\n ? \"NOT ONE lead carries an attribution value. Check `baker pipedrive fields` first: if the account has no gclid/utm field, that is the cause and the Form is not at fault.\"\n : `${carrying} of ${total} lead(s) carry attribution values. The rest arrived without one — direct traffic looks identical to a broken tag, so do not report either as certain.`,\n );\n } else if (total > 0) {\n hints.push(\"Add --full for a row per lead and whether each one carries its gclid / utm values.\");\n }\n if (total > 0 && withOwner === 0) {\n hints.push(\"No lead has an owner, so none of them is in anybody's queue in Pipedrive.\");\n }\n\n writeJson({ ...response, meta: { count: total }, ...(hints.length > 0 ? { hints } : {}) });\n } catch (err) {\n failNotConnected(err, \"so I can confirm the leads from your ads reach your CRM\");\n }\n },\n});\n\nconst personsLookupCommand = defineCommand({\n meta: {\n name: \"lookup\",\n description: \"One contact by email, with their deals. Example: baker pipedrive persons lookup a@b.com\",\n },\n args: { email: { type: \"positional\", description: \"Email address\", required: true } },\n run: async ({ args }) => {\n try {\n const response = await apiPost<PipedrivePersonsLookupResponse>(\n \"/api/pipedrive/persons/lookup\",\n { email: args.email },\n { read: true },\n );\n const { found, deals, dealsReadable, someResultsHidden } = response.data;\n const hints: string[] = [];\n\n if (!found && someResultsHidden) {\n hints.push(\n \"NOT FOUND, BUT Pipedrive hid at least one result from this connection — the person may exist and simply not be visible to the account Baker is signed in with. Do NOT report that the lead never arrived; say the CRM could not be read for that address and ask the user to check it in Pipedrive.\",\n );\n } else if (!found) {\n hints.push(\n \"This person is not in Pipedrive. That is a finding, not an error — the lead never reached the CRM. Check `baker pipedrive leads` too: a lead in the Leads Inbox may not yet have a person record.\",\n );\n } else if (!dealsReadable) {\n hints.push(\n \"The person is there, but this connection cannot read deals, so the empty deals list means unknown, not none. Do not report that nobody worked them.\",\n );\n } else if (deals.length === 0) {\n hints.push(\n \"The person exists but is attached to no deal: they reached the CRM and nobody opened an opportunity.\",\n );\n }\n\n writeJson({ ...response, ...(hints.length > 0 ? { hints } : {}) });\n } catch (err) {\n failNotConnected(err, \"so I can check whether a specific lead reached your CRM\");\n }\n },\n});\n\nconst personsCommand = defineCommand({\n meta: { name: \"persons\", description: \"Contacts in Pipedrive\" },\n subCommands: { lookup: personsLookupCommand },\n});\n\nexport const pipedriveCommand = defineCommand({\n meta: {\n name: \"pipedrive\",\n description: `Read the connected Pipedrive account — custom fields and which carry campaign tracking, pipelines and\nstages, deals by stage with their pace, the Leads Inbox, and one contact by email.\n\nExamples:\n baker pipedrive fields # custom fields + which carry gclid/fbclid/UTM\n baker pipedrive pipelines # the real stage names, so you need not ask the client\n baker pipedrive deals --pipeline-id 7 # how many deals per stage, and how long they have sat there\n baker pipedrive deals --status open --full # a row per open deal\n baker pipedrive leads --since 2026-11-01 --full # did today's leads arrive, carrying their tracking?\n baker pipedrive persons lookup a@b.com # did this one lead reach the CRM at all?\n\nA lead Baker's Form creates lands in Pipedrive's LEADS INBOX, not in a pipeline: it is not a deal until\nsomebody converts it. So \"no deals\" never means \"no leads arrived\" — check \\`leads\\` before saying so.\n\nAn account connected before Baker asked for a permission cannot serve the read that needs it: you get\nPIPEDRIVE_RECONNECT_REQUIRED, which means Pipedrive IS connected and the user has to reconnect to widen it.\nReport that and carry on with the rest; never call it broken and never retry.\n\nFull guide: __tooling__/docs/tools/baker/pipedrive.md`,\n },\n subCommands: {\n fields: fieldsCommand,\n pipelines: pipelinesCommand,\n deals: dealsCommand,\n leads: leadsCommand,\n persons: personsCommand,\n },\n});\n","/**\n * Contract for `/api/pipedrive/...` — the agent/CLI-facing read API over the\n * company's connected Pipedrive account (`baker pipedrive`).\n *\n * Read-only. Everything comes from Pipedrive's own API at request time;\n * nothing is stored in Convex, so there is no staging or publish step to\n * honor. The writes Baker makes to Pipedrive (a Form's organisation, person\n * and lead) stay in `sideEffects/pipedrive`.\n *\n * Two API versions appear on purpose. Organisations, persons, deals, pipelines\n * and stages are `/api/v2/...`: their v1 forms went out of support on\n * 2026-08-01. Leads and the `*Fields` catalogues are `/v1/...` because\n * Pipedrive has never shipped a v2 of either. \"Unify the prefixes\" breaks one\n * half or the other.\n *\n * Convex `Id<T>` values are modeled as plain `z.string()` — this package must\n * not depend on `convex`.\n */\nimport { z } from \"zod\";\n\n/**\n * Matched by the CLI to turn a refusal into the in-chat connect card. Sentences,\n * not status codes: a 404 is also \"no such deal\", and a 403 also \"you cannot\n * read this company\".\n */\nexport const PIPEDRIVE_NOT_CONNECTED_MESSAGE = \"No Pipedrive account is connected for this company.\";\nexport const PIPEDRIVE_MISSING_GRANT_MARKER = \"has not granted access to\";\n\n/** The ad parameter a custom field carries, as the parameter is spelled on the web. */\nexport const attributionParameterSchema = z.enum([\n \"gclid\",\n \"fbclid\",\n \"msclkid\",\n \"ttclid\",\n \"li_fat_id\",\n \"utm_source\",\n \"utm_medium\",\n \"utm_campaign\",\n \"utm_term\",\n \"utm_content\",\n]);\nexport type AttributionParameter = z.infer<typeof attributionParameterSchema>;\n\nexport const pipedriveEntitySchema = z.enum([\"person\", \"organization\", \"deal\", \"lead\"]);\nexport type PipedriveEntity = z.infer<typeof pipedriveEntitySchema>;\n\n// ---------------------------------------------------------------------------\n// fields — the custom-field catalogue, and which fields carry attribution\n// ---------------------------------------------------------------------------\n\nexport const pipedriveFieldSchema = z.object({\n key: z.string(),\n name: z.string(),\n /** Pipedrive's own type name (`varchar`, `monetary`, `enum`, `set`, `date`…). */\n fieldType: z.string(),\n /** False for a field Pipedrive ships with. */\n custom: z.boolean(),\n /** Present for `enum` and `set` fields only. */\n options: z.array(z.object({ id: z.union([z.number(), z.string()]), label: z.string() })).optional(),\n});\nexport type PipedriveField = z.infer<typeof pipedriveFieldSchema>;\n\nexport const pipedriveFieldsRequestSchema = z.object({\n /** Which catalogue to read. Omitted reads all four. */\n entity: pipedriveEntitySchema.optional(),\n /** Include the fields Pipedrive ships with, not just the client's own. */\n full: z.boolean().optional(),\n});\nexport type PipedriveFieldsRequest = z.infer<typeof pipedriveFieldsRequestSchema>;\n\nexport const pipedriveFieldsResponseSchema = z.object({\n ok: z.literal(true),\n data: z.object({\n /** Only the catalogues that were read: `--entity person` returns that one. */\n fields: z.partialRecord(pipedriveEntitySchema, z.array(pipedriveFieldSchema)),\n /**\n * The custom fields that hold an ad parameter, across every catalogue read.\n * Empty is the finding a tracking audit is after: nowhere to put a `gclid`\n * means no lead can carry one, whatever the Form sends.\n */\n attribution: z.array(\n z.object({\n entity: pipedriveEntitySchema,\n key: z.string(),\n name: z.string(),\n carries: attributionParameterSchema,\n }),\n ),\n }),\n});\nexport type PipedriveFieldsResponse = z.infer<typeof pipedriveFieldsResponseSchema>;\n\n// ---------------------------------------------------------------------------\n// pipelines — the stages a lead travels, in order\n// ---------------------------------------------------------------------------\n\nexport const pipedrivePipelinesRequestSchema = z.object({});\nexport type PipedrivePipelinesRequest = z.infer<typeof pipedrivePipelinesRequestSchema>;\n\nexport const pipedrivePipelinesResponseSchema = z.object({\n ok: z.literal(true),\n data: z.object({\n pipelines: z.array(\n z.object({\n id: z.number(),\n name: z.string(),\n stages: z.array(z.object({ id: z.number(), name: z.string(), order: z.number() })),\n }),\n ),\n }),\n});\nexport type PipedrivePipelinesResponse = z.infer<typeof pipedrivePipelinesResponseSchema>;\n\n// ---------------------------------------------------------------------------\n// deals — are the leads being worked, and how fast\n// ---------------------------------------------------------------------------\n\nexport const pipedriveDealStatusSchema = z.enum([\"open\", \"won\", \"lost\"]);\n\nexport const pipedriveDealsRequestSchema = z.object({\n pipelineId: z.number().int().positive().optional(),\n stageId: z.number().int().positive().optional(),\n status: pipedriveDealStatusSchema.optional(),\n /** Only deals updated on or after this day (YYYY-MM-DD). */\n since: z\n .string()\n .regex(/^\\d{4}-\\d{2}-\\d{2}$/)\n .optional(),\n /** Return each deal as a row instead of only the per-stage counts. */\n full: z.boolean().optional(),\n});\nexport type PipedriveDealsRequest = z.infer<typeof pipedriveDealsRequestSchema>;\n\nexport const pipedriveDealsResponseSchema = z.object({\n ok: z.literal(true),\n data: z.object({\n summary: z.object({\n total: z.number().int(),\n open: z.number().int(),\n won: z.number().int(),\n lost: z.number().int(),\n withOwner: z.number().int(),\n withoutOwner: z.number().int(),\n byStage: z.array(\n z.object({\n stageId: z.number(),\n stage: z.string(),\n count: z.number().int(),\n value: z.number(),\n medianDaysInStage: z.number().nullable(),\n }),\n ),\n }),\n /**\n * Only with `full`. A deal is not a person, so a row may carry a title and\n * a value — never the contact behind it, which `persons lookup` answers one\n * at a time and on purpose.\n */\n deals: z\n .array(\n z.object({\n id: z.number(),\n title: z.string(),\n value: z.number().nullable(),\n currency: z.string().nullable(),\n status: z.string(),\n stage: z.string().nullable(),\n daysInStage: z.number().nullable(),\n hasOwner: z.boolean(),\n }),\n )\n .optional(),\n /**\n * How far back the pace reading can see. `stage_change_time` says when a\n * deal entered its current stage and nothing about the ones before it;\n * saying so stops a report reading this as the full history.\n */\n paceNote: z.string(),\n }),\n});\nexport type PipedriveDealsResponse = z.infer<typeof pipedriveDealsResponseSchema>;\n\n// ---------------------------------------------------------------------------\n// leads — did what Baker sent actually land\n// ---------------------------------------------------------------------------\n\nexport const pipedriveLeadsRequestSchema = z.object({\n /** Only leads updated on or after this day (YYYY-MM-DD). */\n since: z\n .string()\n .regex(/^\\d{4}-\\d{2}-\\d{2}$/)\n .optional(),\n /** A row per lead, with the attribution field values it carries — needs the fields to exist. */\n full: z.boolean().optional(),\n});\nexport type PipedriveLeadsRequest = z.infer<typeof pipedriveLeadsRequestSchema>;\n\nexport const pipedriveLeadsResponseSchema = z.object({\n ok: z.literal(true),\n data: z.object({\n total: z.number().int(),\n /** Leads whose owner is set — a lead nobody owns is in nobody's queue. */\n withOwner: z.number().int(),\n /** Only with `full`: counts are the default, so a whole inbox never lands in a Session. */\n leads: z\n .array(\n z.object({\n id: z.string(),\n title: z.string(),\n value: z.number().nullable(),\n currency: z.string().nullable(),\n addTime: z.string().nullable(),\n hasOwner: z.boolean(),\n /** Pipedrive's own word for where the lead came from, when it set one. */\n sourceName: z.string().nullable(),\n /** The attribution fields this lead actually carries, by parameter name. */\n attribution: z.record(z.string(), z.string()),\n }),\n )\n .optional(),\n }),\n});\nexport type PipedriveLeadsResponse = z.infer<typeof pipedriveLeadsResponseSchema>;\n\n// ---------------------------------------------------------------------------\n// persons lookup — settle whether one specific lead reached the CRM\n// ---------------------------------------------------------------------------\n\nexport const pipedrivePersonsLookupRequestSchema = z.object({\n email: z.string().min(3).max(320),\n});\nexport type PipedrivePersonsLookupRequest = z.infer<typeof pipedrivePersonsLookupRequestSchema>;\n\nexport const pipedrivePersonsLookupResponseSchema = z.object({\n ok: z.literal(true),\n data: z.object({\n /** False is a finding, not an error: the lead never reached Pipedrive. */\n found: z.boolean(),\n person: z\n .object({\n id: z.number(),\n name: z.string(),\n organization: z.string().nullable(),\n hasOwner: z.boolean(),\n addTime: z.string().nullable(),\n })\n .nullable(),\n /**\n * The deals that person is attached to. `dealsReadable: false` means the\n * connection could not read them, so an empty list is unknown rather than\n * absent — the same distinction `hubspot contacts lookup` draws.\n */\n deals: z.array(z.object({ id: z.number(), title: z.string(), status: z.string(), stage: z.string().nullable() })),\n dealsReadable: z.boolean(),\n /**\n * Pipedrive hides a record the connected login may not see rather than\n * refusing the search, so `found: false` with this true means \"not visible\n * to this connection\", never \"the lead never arrived\".\n */\n someResultsHidden: z.boolean(),\n }),\n});\nexport type PipedrivePersonsLookupResponse = z.infer<typeof pipedrivePersonsLookupResponseSchema>;\n","import { PIPEDRIVE_MISSING_GRANT_MARKER, PIPEDRIVE_NOT_CONNECTED_MESSAGE } from \"@baker/api/pipedrive\";\nimport { ApiError } from \"../../client.ts\";\nimport { writeJson } from \"../../output.ts\";\nimport { failApi } from \"../actions/shared.ts\";\n\nexport interface PipedriveRefusal {\n code: \"NO_PIPEDRIVE_CONNECTION\" | \"PIPEDRIVE_RECONNECT_REQUIRED\";\n fix: { action: \"request_connection\"; explanation: string };\n}\n\nconst CONTINUE =\n \"Keep going with the wider task: say which part you could not read, skip it, and finish everything else. If the \" +\n \"`request_connection` call fails, say so plainly and give the exact route: dashboard → Brain → Integrations → \" +\n \"Platforms → Pipedrive.\";\n\n/**\n * The two Pipedrive refusals only the user can clear, as the fix the agent\n * relays. Matched on the backend's own sentences (shared from `@baker/api`),\n * because the status alone does not tell them apart.\n *\n * The reconnect case is commoner here than on HubSpot and worth understanding:\n * Baker never asks Pipedrive for scopes — Pipedrive takes them from the app's\n * own settings — so every account connected before a permission was added to\n * those settings keeps a grant without it, and its connection card still reads\n * \"all granted\" because nothing asked for more. The refusal is the only place\n * that gap ever surfaces.\n */\nexport function pipedriveRefusal(\n code: string,\n message: string,\n reason = \"so I can check whether the leads from your ads are reaching your CRM\",\n): PipedriveRefusal | null {\n if (code === \"NOT_FOUND\" && message.includes(PIPEDRIVE_NOT_CONNECTED_MESSAGE)) {\n return {\n code: \"NO_PIPEDRIVE_CONNECTION\",\n fix: {\n action: \"request_connection\",\n explanation:\n \"AGENT INSTRUCTION: Pipedrive is not connected, and only the user can connect it. Call the \" +\n `\\`request_connection\\` tool with { platform: \"pipedrive\", reason } — reason in their words, e.g. \"${reason}\" ` +\n \"— and they connect it inside the chat; then run this command again. \" +\n CONTINUE,\n },\n };\n }\n if (code === \"FORBIDDEN\" && message.includes(PIPEDRIVE_MISSING_GRANT_MARKER)) {\n return {\n code: \"PIPEDRIVE_RECONNECT_REQUIRED\",\n fix: {\n action: \"request_connection\",\n explanation:\n \"AGENT INSTRUCTION: Pipedrive IS connected — do not tell the user it is missing, and do not retry. Its \" +\n \"access does not cover this read (it was connected before Baker asked for it), and only the user can widen \" +\n 'it. Call the `request_connection` tool with { platform: \"pipedrive\", reason } naming what you need to ' +\n \"read; the card offers them a Reconnect button. Run this command again once they have. \" +\n CONTINUE,\n },\n };\n }\n return null;\n}\n\n/**\n * \"No Pipedrive connected\" and \"connected, but not for this\" are the most\n * common reasons these commands cannot answer, and the agent can fix neither.\n * Turn them into the in-chat connect card instead of a bare error.\n */\nexport function failNotConnected(err: unknown, reason?: string): never {\n const refusal = err instanceof ApiError ? pipedriveRefusal(err.code, err.message, reason) : null;\n if (err instanceof ApiError && refusal !== null) {\n writeJson({ ok: false, error: { code: refusal.code, message: err.message, fix: refusal.fix } });\n process.exit(1);\n }\n failApi(err);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,SAAS,qBAAqB;;;ACW9B,SAAS,SAAS;AAOX,IAAM,kCAAkC;AACxC,IAAM,iCAAiC;AAGvC,IAAM,6BAA6B,EAAE,KAAK;AAAA,EAC/C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;AAGM,IAAM,wBAAwB,EAAE,KAAK,CAAC,UAAU,gBAAgB,QAAQ,MAAM,CAAC;AAO/E,IAAM,uBAAuB,EAAE,OAAO;AAAA,EAC3C,KAAK,EAAE,OAAO;AAAA,EACd,MAAM,EAAE,OAAO;AAAA;AAAA,EAEf,WAAW,EAAE,OAAO;AAAA;AAAA,EAEpB,QAAQ,EAAE,QAAQ;AAAA;AAAA,EAElB,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,C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