@lhremote/core 0.0.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (551) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +124 -0
  3. package/dist/cdp/app-discovery.d.ts +22 -0
  4. package/dist/cdp/app-discovery.d.ts.map +1 -0
  5. package/dist/cdp/app-discovery.js +60 -0
  6. package/dist/cdp/app-discovery.js.map +1 -0
  7. package/dist/cdp/app-discovery.test.d.ts +2 -0
  8. package/dist/cdp/app-discovery.test.d.ts.map +1 -0
  9. package/dist/cdp/app-discovery.test.js +124 -0
  10. package/dist/cdp/app-discovery.test.js.map +1 -0
  11. package/dist/cdp/client.d.ts +114 -0
  12. package/dist/cdp/client.d.ts.map +1 -0
  13. package/dist/cdp/client.integration.test.d.ts +2 -0
  14. package/dist/cdp/client.integration.test.d.ts.map +1 -0
  15. package/dist/cdp/client.integration.test.js +77 -0
  16. package/dist/cdp/client.integration.test.js.map +1 -0
  17. package/dist/cdp/client.js +319 -0
  18. package/dist/cdp/client.js.map +1 -0
  19. package/dist/cdp/client.test.d.ts +2 -0
  20. package/dist/cdp/client.test.d.ts.map +1 -0
  21. package/dist/cdp/client.test.js +533 -0
  22. package/dist/cdp/client.test.js.map +1 -0
  23. package/dist/cdp/discovery.d.ts +14 -0
  24. package/dist/cdp/discovery.d.ts.map +1 -0
  25. package/dist/cdp/discovery.integration.test.d.ts +2 -0
  26. package/dist/cdp/discovery.integration.test.d.ts.map +1 -0
  27. package/dist/cdp/discovery.integration.test.js +27 -0
  28. package/dist/cdp/discovery.integration.test.js.map +1 -0
  29. package/dist/cdp/discovery.js +33 -0
  30. package/dist/cdp/discovery.js.map +1 -0
  31. package/dist/cdp/discovery.test.d.ts +2 -0
  32. package/dist/cdp/discovery.test.d.ts.map +1 -0
  33. package/dist/cdp/discovery.test.js +56 -0
  34. package/dist/cdp/discovery.test.js.map +1 -0
  35. package/dist/cdp/errors.d.ts +28 -0
  36. package/dist/cdp/errors.d.ts.map +1 -0
  37. package/dist/cdp/errors.js +42 -0
  38. package/dist/cdp/errors.js.map +1 -0
  39. package/dist/cdp/errors.test.d.ts +2 -0
  40. package/dist/cdp/errors.test.d.ts.map +1 -0
  41. package/dist/cdp/errors.test.js +37 -0
  42. package/dist/cdp/errors.test.js.map +1 -0
  43. package/dist/cdp/index.d.ts +6 -0
  44. package/dist/cdp/index.d.ts.map +1 -0
  45. package/dist/cdp/index.js +8 -0
  46. package/dist/cdp/index.js.map +1 -0
  47. package/dist/cdp/instance-discovery.d.ts +30 -0
  48. package/dist/cdp/instance-discovery.d.ts.map +1 -0
  49. package/dist/cdp/instance-discovery.integration.test.d.ts +2 -0
  50. package/dist/cdp/instance-discovery.integration.test.d.ts.map +1 -0
  51. package/dist/cdp/instance-discovery.integration.test.js +36 -0
  52. package/dist/cdp/instance-discovery.integration.test.js.map +1 -0
  53. package/dist/cdp/instance-discovery.js +118 -0
  54. package/dist/cdp/instance-discovery.js.map +1 -0
  55. package/dist/cdp/instance-discovery.test.d.ts +2 -0
  56. package/dist/cdp/instance-discovery.test.d.ts.map +1 -0
  57. package/dist/cdp/instance-discovery.test.js +112 -0
  58. package/dist/cdp/instance-discovery.test.js.map +1 -0
  59. package/dist/cdp/testing/launch-chromium.d.ts +24 -0
  60. package/dist/cdp/testing/launch-chromium.d.ts.map +1 -0
  61. package/dist/cdp/testing/launch-chromium.js +93 -0
  62. package/dist/cdp/testing/launch-chromium.js.map +1 -0
  63. package/dist/constants.d.ts +5 -0
  64. package/dist/constants.d.ts.map +1 -0
  65. package/dist/constants.js +7 -0
  66. package/dist/constants.js.map +1 -0
  67. package/dist/data/action-types.d.ts +39 -0
  68. package/dist/data/action-types.d.ts.map +1 -0
  69. package/dist/data/action-types.js +497 -0
  70. package/dist/data/action-types.js.map +1 -0
  71. package/dist/data/action-types.test.d.ts +2 -0
  72. package/dist/data/action-types.test.d.ts.map +1 -0
  73. package/dist/data/action-types.test.js +544 -0
  74. package/dist/data/action-types.test.js.map +1 -0
  75. package/dist/data/index.d.ts +3 -0
  76. package/dist/data/index.d.ts.map +1 -0
  77. package/dist/data/index.js +4 -0
  78. package/dist/data/index.js.map +1 -0
  79. package/dist/db/client.d.ts +27 -0
  80. package/dist/db/client.d.ts.map +1 -0
  81. package/dist/db/client.integration.test.d.ts +2 -0
  82. package/dist/db/client.integration.test.d.ts.map +1 -0
  83. package/dist/db/client.integration.test.js +63 -0
  84. package/dist/db/client.integration.test.js.map +1 -0
  85. package/dist/db/client.js +23 -0
  86. package/dist/db/client.js.map +1 -0
  87. package/dist/db/client.test.d.ts +2 -0
  88. package/dist/db/client.test.d.ts.map +1 -0
  89. package/dist/db/client.test.js +48 -0
  90. package/dist/db/client.test.js.map +1 -0
  91. package/dist/db/discovery.d.ts +14 -0
  92. package/dist/db/discovery.d.ts.map +1 -0
  93. package/dist/db/discovery.integration.test.d.ts +2 -0
  94. package/dist/db/discovery.integration.test.d.ts.map +1 -0
  95. package/dist/db/discovery.integration.test.js +101 -0
  96. package/dist/db/discovery.integration.test.js.map +1 -0
  97. package/dist/db/discovery.js +76 -0
  98. package/dist/db/discovery.js.map +1 -0
  99. package/dist/db/discovery.test.d.ts +2 -0
  100. package/dist/db/discovery.test.d.ts.map +1 -0
  101. package/dist/db/discovery.test.js +125 -0
  102. package/dist/db/discovery.test.js.map +1 -0
  103. package/dist/db/errors.d.ts +52 -0
  104. package/dist/db/errors.d.ts.map +1 -0
  105. package/dist/db/errors.js +82 -0
  106. package/dist/db/errors.js.map +1 -0
  107. package/dist/db/errors.test.d.ts +2 -0
  108. package/dist/db/errors.test.d.ts.map +1 -0
  109. package/dist/db/errors.test.js +34 -0
  110. package/dist/db/errors.test.js.map +1 -0
  111. package/dist/db/escape-like.d.ts +8 -0
  112. package/dist/db/escape-like.d.ts.map +1 -0
  113. package/dist/db/escape-like.js +12 -0
  114. package/dist/db/escape-like.js.map +1 -0
  115. package/dist/db/escape-like.test.d.ts +2 -0
  116. package/dist/db/escape-like.test.d.ts.map +1 -0
  117. package/dist/db/escape-like.test.js +25 -0
  118. package/dist/db/escape-like.test.js.map +1 -0
  119. package/dist/db/index.d.ts +5 -0
  120. package/dist/db/index.d.ts.map +1 -0
  121. package/dist/db/index.js +7 -0
  122. package/dist/db/index.js.map +1 -0
  123. package/dist/db/repositories/campaign-exclude-list.d.ts +89 -0
  124. package/dist/db/repositories/campaign-exclude-list.d.ts.map +1 -0
  125. package/dist/db/repositories/campaign-exclude-list.js +204 -0
  126. package/dist/db/repositories/campaign-exclude-list.js.map +1 -0
  127. package/dist/db/repositories/campaign-exclude-list.test.d.ts +2 -0
  128. package/dist/db/repositories/campaign-exclude-list.test.d.ts.map +1 -0
  129. package/dist/db/repositories/campaign-exclude-list.test.js +132 -0
  130. package/dist/db/repositories/campaign-exclude-list.test.js.map +1 -0
  131. package/dist/db/repositories/campaign-statistics.d.ts +58 -0
  132. package/dist/db/repositories/campaign-statistics.d.ts.map +1 -0
  133. package/dist/db/repositories/campaign-statistics.js +278 -0
  134. package/dist/db/repositories/campaign-statistics.js.map +1 -0
  135. package/dist/db/repositories/campaign-statistics.test.d.ts +2 -0
  136. package/dist/db/repositories/campaign-statistics.test.d.ts.map +1 -0
  137. package/dist/db/repositories/campaign-statistics.test.js +266 -0
  138. package/dist/db/repositories/campaign-statistics.test.js.map +1 -0
  139. package/dist/db/repositories/campaign.d.ts +103 -0
  140. package/dist/db/repositories/campaign.d.ts.map +1 -0
  141. package/dist/db/repositories/campaign.js +388 -0
  142. package/dist/db/repositories/campaign.js.map +1 -0
  143. package/dist/db/repositories/campaign.test.d.ts +2 -0
  144. package/dist/db/repositories/campaign.test.d.ts.map +1 -0
  145. package/dist/db/repositories/campaign.test.js +392 -0
  146. package/dist/db/repositories/campaign.test.js.map +1 -0
  147. package/dist/db/repositories/index.d.ts +6 -0
  148. package/dist/db/repositories/index.d.ts.map +1 -0
  149. package/dist/db/repositories/index.js +8 -0
  150. package/dist/db/repositories/index.js.map +1 -0
  151. package/dist/db/repositories/message.d.ts +57 -0
  152. package/dist/db/repositories/message.d.ts.map +1 -0
  153. package/dist/db/repositories/message.integration.test.d.ts +2 -0
  154. package/dist/db/repositories/message.integration.test.d.ts.map +1 -0
  155. package/dist/db/repositories/message.integration.test.js +137 -0
  156. package/dist/db/repositories/message.integration.test.js.map +1 -0
  157. package/dist/db/repositories/message.js +308 -0
  158. package/dist/db/repositories/message.js.map +1 -0
  159. package/dist/db/repositories/message.test.d.ts +2 -0
  160. package/dist/db/repositories/message.test.d.ts.map +1 -0
  161. package/dist/db/repositories/message.test.js +179 -0
  162. package/dist/db/repositories/message.test.js.map +1 -0
  163. package/dist/db/repositories/profile.d.ts +42 -0
  164. package/dist/db/repositories/profile.d.ts.map +1 -0
  165. package/dist/db/repositories/profile.integration.test.d.ts +2 -0
  166. package/dist/db/repositories/profile.integration.test.d.ts.map +1 -0
  167. package/dist/db/repositories/profile.integration.test.js +222 -0
  168. package/dist/db/repositories/profile.integration.test.js.map +1 -0
  169. package/dist/db/repositories/profile.js +163 -0
  170. package/dist/db/repositories/profile.js.map +1 -0
  171. package/dist/db/repositories/profile.test.d.ts +2 -0
  172. package/dist/db/repositories/profile.test.d.ts.map +1 -0
  173. package/dist/db/repositories/profile.test.js +216 -0
  174. package/dist/db/repositories/profile.test.js.map +1 -0
  175. package/dist/db/testing/create-fixture.d.ts +2 -0
  176. package/dist/db/testing/create-fixture.d.ts.map +1 -0
  177. package/dist/db/testing/create-fixture.js +745 -0
  178. package/dist/db/testing/create-fixture.js.map +1 -0
  179. package/dist/db/testing/open-fixture.d.ts +15 -0
  180. package/dist/db/testing/open-fixture.d.ts.map +1 -0
  181. package/dist/db/testing/open-fixture.js +39 -0
  182. package/dist/db/testing/open-fixture.js.map +1 -0
  183. package/dist/formats/campaign-format.d.ts +31 -0
  184. package/dist/formats/campaign-format.d.ts.map +1 -0
  185. package/dist/formats/campaign-format.js +225 -0
  186. package/dist/formats/campaign-format.js.map +1 -0
  187. package/dist/formats/campaign-format.test.d.ts +2 -0
  188. package/dist/formats/campaign-format.test.d.ts.map +1 -0
  189. package/dist/formats/campaign-format.test.js +442 -0
  190. package/dist/formats/campaign-format.test.js.map +1 -0
  191. package/dist/formats/errors.d.ts +7 -0
  192. package/dist/formats/errors.d.ts.map +1 -0
  193. package/dist/formats/errors.js +12 -0
  194. package/dist/formats/errors.js.map +1 -0
  195. package/dist/formats/index.d.ts +3 -0
  196. package/dist/formats/index.d.ts.map +1 -0
  197. package/dist/formats/index.js +5 -0
  198. package/dist/formats/index.js.map +1 -0
  199. package/dist/index.d.ts +10 -1
  200. package/dist/index.d.ts.map +1 -1
  201. package/dist/index.js +29 -1
  202. package/dist/index.js.map +1 -1
  203. package/dist/operations/campaign-add-action.d.ts +14 -0
  204. package/dist/operations/campaign-add-action.d.ts.map +1 -0
  205. package/dist/operations/campaign-add-action.js +33 -0
  206. package/dist/operations/campaign-add-action.js.map +1 -0
  207. package/dist/operations/campaign-add-action.test.d.ts +2 -0
  208. package/dist/operations/campaign-add-action.test.d.ts.map +1 -0
  209. package/dist/operations/campaign-add-action.test.js +122 -0
  210. package/dist/operations/campaign-add-action.test.js.map +1 -0
  211. package/dist/operations/campaign-create.d.ts +17 -0
  212. package/dist/operations/campaign-create.d.ts.map +1 -0
  213. package/dist/operations/campaign-create.js +21 -0
  214. package/dist/operations/campaign-create.js.map +1 -0
  215. package/dist/operations/campaign-create.test.d.ts +2 -0
  216. package/dist/operations/campaign-create.test.d.ts.map +1 -0
  217. package/dist/operations/campaign-create.test.js +113 -0
  218. package/dist/operations/campaign-create.test.js.map +1 -0
  219. package/dist/operations/campaign-delete.d.ts +20 -0
  220. package/dist/operations/campaign-delete.d.ts.map +1 -0
  221. package/dist/operations/campaign-delete.js +22 -0
  222. package/dist/operations/campaign-delete.js.map +1 -0
  223. package/dist/operations/campaign-delete.test.d.ts +2 -0
  224. package/dist/operations/campaign-delete.test.d.ts.map +1 -0
  225. package/dist/operations/campaign-delete.test.js +92 -0
  226. package/dist/operations/campaign-delete.test.js.map +1 -0
  227. package/dist/operations/campaign-exclude-add.d.ts +16 -0
  228. package/dist/operations/campaign-exclude-add.d.ts.map +1 -0
  229. package/dist/operations/campaign-exclude-add.js +27 -0
  230. package/dist/operations/campaign-exclude-add.js.map +1 -0
  231. package/dist/operations/campaign-exclude-add.test.d.ts +2 -0
  232. package/dist/operations/campaign-exclude-add.test.d.ts.map +1 -0
  233. package/dist/operations/campaign-exclude-add.test.js +114 -0
  234. package/dist/operations/campaign-exclude-add.test.js.map +1 -0
  235. package/dist/operations/campaign-exclude-list.d.ts +14 -0
  236. package/dist/operations/campaign-exclude-list.d.ts.map +1 -0
  237. package/dist/operations/campaign-exclude-list.js +26 -0
  238. package/dist/operations/campaign-exclude-list.js.map +1 -0
  239. package/dist/operations/campaign-exclude-list.test.d.ts +2 -0
  240. package/dist/operations/campaign-exclude-list.test.d.ts.map +1 -0
  241. package/dist/operations/campaign-exclude-list.test.js +113 -0
  242. package/dist/operations/campaign-exclude-list.test.js.map +1 -0
  243. package/dist/operations/campaign-exclude-remove.d.ts +16 -0
  244. package/dist/operations/campaign-exclude-remove.d.ts.map +1 -0
  245. package/dist/operations/campaign-exclude-remove.js +27 -0
  246. package/dist/operations/campaign-exclude-remove.js.map +1 -0
  247. package/dist/operations/campaign-exclude-remove.test.d.ts +2 -0
  248. package/dist/operations/campaign-exclude-remove.test.d.ts.map +1 -0
  249. package/dist/operations/campaign-exclude-remove.test.js +114 -0
  250. package/dist/operations/campaign-exclude-remove.test.js.map +1 -0
  251. package/dist/operations/campaign-export.d.ts +12 -0
  252. package/dist/operations/campaign-export.d.ts.map +1 -0
  253. package/dist/operations/campaign-export.js +24 -0
  254. package/dist/operations/campaign-export.js.map +1 -0
  255. package/dist/operations/campaign-export.test.d.ts +2 -0
  256. package/dist/operations/campaign-export.test.d.ts.map +1 -0
  257. package/dist/operations/campaign-export.test.js +134 -0
  258. package/dist/operations/campaign-export.test.js.map +1 -0
  259. package/dist/operations/campaign-get.d.ts +19 -0
  260. package/dist/operations/campaign-get.d.ts.map +1 -0
  261. package/dist/operations/campaign-get.js +23 -0
  262. package/dist/operations/campaign-get.js.map +1 -0
  263. package/dist/operations/campaign-get.test.d.ts +2 -0
  264. package/dist/operations/campaign-get.test.d.ts.map +1 -0
  265. package/dist/operations/campaign-get.test.js +99 -0
  266. package/dist/operations/campaign-get.test.js.map +1 -0
  267. package/dist/operations/campaign-list.d.ts +20 -0
  268. package/dist/operations/campaign-list.d.ts.map +1 -0
  269. package/dist/operations/campaign-list.js +23 -0
  270. package/dist/operations/campaign-list.js.map +1 -0
  271. package/dist/operations/campaign-list.test.d.ts +2 -0
  272. package/dist/operations/campaign-list.test.d.ts.map +1 -0
  273. package/dist/operations/campaign-list.test.js +106 -0
  274. package/dist/operations/campaign-list.test.js.map +1 -0
  275. package/dist/operations/campaign-move-next.d.ts +15 -0
  276. package/dist/operations/campaign-move-next.d.ts.map +1 -0
  277. package/dist/operations/campaign-move-next.js +25 -0
  278. package/dist/operations/campaign-move-next.js.map +1 -0
  279. package/dist/operations/campaign-move-next.test.d.ts +2 -0
  280. package/dist/operations/campaign-move-next.test.d.ts.map +1 -0
  281. package/dist/operations/campaign-move-next.test.js +105 -0
  282. package/dist/operations/campaign-move-next.test.js.map +1 -0
  283. package/dist/operations/campaign-remove-action.d.ts +12 -0
  284. package/dist/operations/campaign-remove-action.d.ts.map +1 -0
  285. package/dist/operations/campaign-remove-action.js +23 -0
  286. package/dist/operations/campaign-remove-action.js.map +1 -0
  287. package/dist/operations/campaign-remove-action.test.d.ts +2 -0
  288. package/dist/operations/campaign-remove-action.test.d.ts.map +1 -0
  289. package/dist/operations/campaign-remove-action.test.js +95 -0
  290. package/dist/operations/campaign-remove-action.test.js.map +1 -0
  291. package/dist/operations/campaign-reorder-actions.d.ts +13 -0
  292. package/dist/operations/campaign-reorder-actions.d.ts.map +1 -0
  293. package/dist/operations/campaign-reorder-actions.js +19 -0
  294. package/dist/operations/campaign-reorder-actions.js.map +1 -0
  295. package/dist/operations/campaign-reorder-actions.test.d.ts +2 -0
  296. package/dist/operations/campaign-reorder-actions.test.d.ts.map +1 -0
  297. package/dist/operations/campaign-reorder-actions.test.js +103 -0
  298. package/dist/operations/campaign-reorder-actions.test.js.map +1 -0
  299. package/dist/operations/campaign-retry.d.ts +13 -0
  300. package/dist/operations/campaign-retry.d.ts.map +1 -0
  301. package/dist/operations/campaign-retry.js +24 -0
  302. package/dist/operations/campaign-retry.js.map +1 -0
  303. package/dist/operations/campaign-retry.test.d.ts +2 -0
  304. package/dist/operations/campaign-retry.test.d.ts.map +1 -0
  305. package/dist/operations/campaign-retry.test.js +100 -0
  306. package/dist/operations/campaign-retry.test.js.map +1 -0
  307. package/dist/operations/campaign-start.d.ts +13 -0
  308. package/dist/operations/campaign-start.d.ts.map +1 -0
  309. package/dist/operations/campaign-start.js +24 -0
  310. package/dist/operations/campaign-start.js.map +1 -0
  311. package/dist/operations/campaign-start.test.d.ts +2 -0
  312. package/dist/operations/campaign-start.test.d.ts.map +1 -0
  313. package/dist/operations/campaign-start.test.js +96 -0
  314. package/dist/operations/campaign-start.test.js.map +1 -0
  315. package/dist/operations/campaign-statistics.d.ts +10 -0
  316. package/dist/operations/campaign-statistics.d.ts.map +1 -0
  317. package/dist/operations/campaign-statistics.js +23 -0
  318. package/dist/operations/campaign-statistics.js.map +1 -0
  319. package/dist/operations/campaign-statistics.test.d.ts +2 -0
  320. package/dist/operations/campaign-statistics.test.d.ts.map +1 -0
  321. package/dist/operations/campaign-statistics.test.js +120 -0
  322. package/dist/operations/campaign-statistics.test.js.map +1 -0
  323. package/dist/operations/campaign-status.d.ts +26 -0
  324. package/dist/operations/campaign-status.d.ts.map +1 -0
  325. package/dist/operations/campaign-status.js +32 -0
  326. package/dist/operations/campaign-status.js.map +1 -0
  327. package/dist/operations/campaign-status.test.d.ts +2 -0
  328. package/dist/operations/campaign-status.test.d.ts.map +1 -0
  329. package/dist/operations/campaign-status.test.js +142 -0
  330. package/dist/operations/campaign-status.test.js.map +1 -0
  331. package/dist/operations/campaign-stop.d.ts +11 -0
  332. package/dist/operations/campaign-stop.d.ts.map +1 -0
  333. package/dist/operations/campaign-stop.js +23 -0
  334. package/dist/operations/campaign-stop.js.map +1 -0
  335. package/dist/operations/campaign-stop.test.d.ts +2 -0
  336. package/dist/operations/campaign-stop.test.d.ts.map +1 -0
  337. package/dist/operations/campaign-stop.test.js +92 -0
  338. package/dist/operations/campaign-stop.test.js.map +1 -0
  339. package/dist/operations/campaign-update.d.ts +18 -0
  340. package/dist/operations/campaign-update.d.ts.map +1 -0
  341. package/dist/operations/campaign-update.js +21 -0
  342. package/dist/operations/campaign-update.js.map +1 -0
  343. package/dist/operations/campaign-update.test.d.ts +2 -0
  344. package/dist/operations/campaign-update.test.d.ts.map +1 -0
  345. package/dist/operations/campaign-update.test.js +105 -0
  346. package/dist/operations/campaign-update.test.js.map +1 -0
  347. package/dist/operations/check-replies.d.ts +12 -0
  348. package/dist/operations/check-replies.d.ts.map +1 -0
  349. package/dist/operations/check-replies.js +26 -0
  350. package/dist/operations/check-replies.js.map +1 -0
  351. package/dist/operations/check-replies.test.d.ts +2 -0
  352. package/dist/operations/check-replies.test.d.ts.map +1 -0
  353. package/dist/operations/check-replies.test.js +118 -0
  354. package/dist/operations/check-replies.test.js.map +1 -0
  355. package/dist/operations/import-people-from-urls.d.ts +16 -0
  356. package/dist/operations/import-people-from-urls.d.ts.map +1 -0
  357. package/dist/operations/import-people-from-urls.js +27 -0
  358. package/dist/operations/import-people-from-urls.js.map +1 -0
  359. package/dist/operations/import-people-from-urls.test.d.ts +2 -0
  360. package/dist/operations/import-people-from-urls.test.d.ts.map +1 -0
  361. package/dist/operations/import-people-from-urls.test.js +118 -0
  362. package/dist/operations/import-people-from-urls.test.js.map +1 -0
  363. package/dist/operations/index.d.ts +24 -0
  364. package/dist/operations/index.d.ts.map +1 -0
  365. package/dist/operations/index.js +30 -0
  366. package/dist/operations/index.js.map +1 -0
  367. package/dist/operations/query-messages.d.ts +23 -0
  368. package/dist/operations/query-messages.d.ts.map +1 -0
  369. package/dist/operations/query-messages.js +33 -0
  370. package/dist/operations/query-messages.js.map +1 -0
  371. package/dist/operations/query-messages.test.d.ts +2 -0
  372. package/dist/operations/query-messages.test.d.ts.map +1 -0
  373. package/dist/operations/query-messages.test.js +134 -0
  374. package/dist/operations/query-messages.test.js.map +1 -0
  375. package/dist/operations/scrape-messaging-history.d.ts +10 -0
  376. package/dist/operations/scrape-messaging-history.d.ts.map +1 -0
  377. package/dist/operations/scrape-messaging-history.js +24 -0
  378. package/dist/operations/scrape-messaging-history.js.map +1 -0
  379. package/dist/operations/scrape-messaging-history.test.d.ts +2 -0
  380. package/dist/operations/scrape-messaging-history.test.d.ts.map +1 -0
  381. package/dist/operations/scrape-messaging-history.test.js +112 -0
  382. package/dist/operations/scrape-messaging-history.test.js.map +1 -0
  383. package/dist/operations/types.d.ts +10 -0
  384. package/dist/operations/types.d.ts.map +1 -0
  385. package/dist/operations/types.js +4 -0
  386. package/dist/operations/types.js.map +1 -0
  387. package/dist/services/account-resolution.d.ts +22 -0
  388. package/dist/services/account-resolution.d.ts.map +1 -0
  389. package/dist/services/account-resolution.js +45 -0
  390. package/dist/services/account-resolution.js.map +1 -0
  391. package/dist/services/account-resolution.test.d.ts +2 -0
  392. package/dist/services/account-resolution.test.d.ts.map +1 -0
  393. package/dist/services/account-resolution.test.js +91 -0
  394. package/dist/services/account-resolution.test.js.map +1 -0
  395. package/dist/services/app.d.ts +62 -0
  396. package/dist/services/app.d.ts.map +1 -0
  397. package/dist/services/app.js +200 -0
  398. package/dist/services/app.js.map +1 -0
  399. package/dist/services/app.test.d.ts +2 -0
  400. package/dist/services/app.test.d.ts.map +1 -0
  401. package/dist/services/app.test.js +267 -0
  402. package/dist/services/app.test.js.map +1 -0
  403. package/dist/services/campaign.d.ts +143 -0
  404. package/dist/services/campaign.d.ts.map +1 -0
  405. package/dist/services/campaign.js +409 -0
  406. package/dist/services/campaign.js.map +1 -0
  407. package/dist/services/campaign.test.d.ts +2 -0
  408. package/dist/services/campaign.test.d.ts.map +1 -0
  409. package/dist/services/campaign.test.js +481 -0
  410. package/dist/services/campaign.test.js.map +1 -0
  411. package/dist/services/errors.d.ts +83 -0
  412. package/dist/services/errors.d.ts.map +1 -0
  413. package/dist/services/errors.js +126 -0
  414. package/dist/services/errors.js.map +1 -0
  415. package/dist/services/errors.test.d.ts +2 -0
  416. package/dist/services/errors.test.d.ts.map +1 -0
  417. package/dist/services/errors.test.js +123 -0
  418. package/dist/services/errors.test.js.map +1 -0
  419. package/dist/services/index.d.ts +10 -0
  420. package/dist/services/index.d.ts.map +1 -0
  421. package/dist/services/index.js +12 -0
  422. package/dist/services/index.js.map +1 -0
  423. package/dist/services/instance-context.d.ts +37 -0
  424. package/dist/services/instance-context.d.ts.map +1 -0
  425. package/dist/services/instance-context.js +49 -0
  426. package/dist/services/instance-context.js.map +1 -0
  427. package/dist/services/instance-context.test.d.ts +2 -0
  428. package/dist/services/instance-context.test.d.ts.map +1 -0
  429. package/dist/services/instance-context.test.js +203 -0
  430. package/dist/services/instance-context.test.js.map +1 -0
  431. package/dist/services/instance-lifecycle.d.ts +38 -0
  432. package/dist/services/instance-lifecycle.d.ts.map +1 -0
  433. package/dist/services/instance-lifecycle.js +87 -0
  434. package/dist/services/instance-lifecycle.js.map +1 -0
  435. package/dist/services/instance-lifecycle.test.d.ts +2 -0
  436. package/dist/services/instance-lifecycle.test.d.ts.map +1 -0
  437. package/dist/services/instance-lifecycle.test.js +158 -0
  438. package/dist/services/instance-lifecycle.test.js.map +1 -0
  439. package/dist/services/instance.d.ts +90 -0
  440. package/dist/services/instance.d.ts.map +1 -0
  441. package/dist/services/instance.js +178 -0
  442. package/dist/services/instance.js.map +1 -0
  443. package/dist/services/instance.test.d.ts +2 -0
  444. package/dist/services/instance.test.d.ts.map +1 -0
  445. package/dist/services/instance.test.js +291 -0
  446. package/dist/services/instance.test.js.map +1 -0
  447. package/dist/services/launcher.d.ts +54 -0
  448. package/dist/services/launcher.d.ts.map +1 -0
  449. package/dist/services/launcher.js +162 -0
  450. package/dist/services/launcher.js.map +1 -0
  451. package/dist/services/launcher.test.d.ts +2 -0
  452. package/dist/services/launcher.test.d.ts.map +1 -0
  453. package/dist/services/launcher.test.js +163 -0
  454. package/dist/services/launcher.test.js.map +1 -0
  455. package/dist/services/status.d.ts +37 -0
  456. package/dist/services/status.d.ts.map +1 -0
  457. package/dist/services/status.js +85 -0
  458. package/dist/services/status.js.map +1 -0
  459. package/dist/services/status.test.d.ts +2 -0
  460. package/dist/services/status.test.d.ts.map +1 -0
  461. package/dist/services/status.test.js +248 -0
  462. package/dist/services/status.test.js.map +1 -0
  463. package/dist/testing/e2e-helpers.d.ts +41 -0
  464. package/dist/testing/e2e-helpers.d.ts.map +1 -0
  465. package/dist/testing/e2e-helpers.js +114 -0
  466. package/dist/testing/e2e-helpers.js.map +1 -0
  467. package/dist/testing/index.d.ts +2 -0
  468. package/dist/testing/index.d.ts.map +1 -0
  469. package/dist/testing/index.js +4 -0
  470. package/dist/testing/index.js.map +1 -0
  471. package/dist/types/account.d.ts +13 -0
  472. package/dist/types/account.d.ts.map +1 -0
  473. package/dist/types/account.js +4 -0
  474. package/dist/types/account.js.map +1 -0
  475. package/dist/types/account.test.d.ts +2 -0
  476. package/dist/types/account.test.d.ts.map +1 -0
  477. package/dist/types/account.test.js +26 -0
  478. package/dist/types/account.test.js.map +1 -0
  479. package/dist/types/campaign.d.ts +267 -0
  480. package/dist/types/campaign.d.ts.map +1 -0
  481. package/dist/types/campaign.js +4 -0
  482. package/dist/types/campaign.js.map +1 -0
  483. package/dist/types/cdp.d.ts +18 -0
  484. package/dist/types/cdp.d.ts.map +1 -0
  485. package/dist/types/cdp.js +4 -0
  486. package/dist/types/cdp.js.map +1 -0
  487. package/dist/types/cdp.test.d.ts +2 -0
  488. package/dist/types/cdp.test.d.ts.map +1 -0
  489. package/dist/types/cdp.test.js +30 -0
  490. package/dist/types/cdp.test.js.map +1 -0
  491. package/dist/types/index.d.ts +6 -0
  492. package/dist/types/index.d.ts.map +1 -0
  493. package/dist/types/index.js +4 -0
  494. package/dist/types/index.js.map +1 -0
  495. package/dist/types/instance.d.ts +36 -0
  496. package/dist/types/instance.d.ts.map +1 -0
  497. package/dist/types/instance.js +4 -0
  498. package/dist/types/instance.js.map +1 -0
  499. package/dist/types/instance.test.d.ts +2 -0
  500. package/dist/types/instance.test.d.ts.map +1 -0
  501. package/dist/types/instance.test.js +59 -0
  502. package/dist/types/instance.test.js.map +1 -0
  503. package/dist/types/messaging.d.ts +51 -0
  504. package/dist/types/messaging.d.ts.map +1 -0
  505. package/dist/types/messaging.js +4 -0
  506. package/dist/types/messaging.js.map +1 -0
  507. package/dist/types/profile.d.ts +81 -0
  508. package/dist/types/profile.d.ts.map +1 -0
  509. package/dist/types/profile.js +4 -0
  510. package/dist/types/profile.js.map +1 -0
  511. package/dist/types/profile.test.d.ts +2 -0
  512. package/dist/types/profile.test.d.ts.map +1 -0
  513. package/dist/types/profile.test.js +105 -0
  514. package/dist/types/profile.test.js.map +1 -0
  515. package/dist/utils/cdp-port.d.ts +5 -0
  516. package/dist/utils/cdp-port.d.ts.map +1 -0
  517. package/dist/utils/cdp-port.js +15 -0
  518. package/dist/utils/cdp-port.js.map +1 -0
  519. package/dist/utils/cdp-port.test.d.ts +2 -0
  520. package/dist/utils/cdp-port.test.d.ts.map +1 -0
  521. package/dist/utils/cdp-port.test.js +23 -0
  522. package/dist/utils/cdp-port.test.js.map +1 -0
  523. package/dist/utils/delay.d.ts +5 -0
  524. package/dist/utils/delay.d.ts.map +1 -0
  525. package/dist/utils/delay.js +9 -0
  526. package/dist/utils/delay.js.map +1 -0
  527. package/dist/utils/delay.test.d.ts +2 -0
  528. package/dist/utils/delay.test.d.ts.map +1 -0
  529. package/dist/utils/delay.test.js +17 -0
  530. package/dist/utils/delay.test.js.map +1 -0
  531. package/dist/utils/error-message.d.ts +5 -0
  532. package/dist/utils/error-message.d.ts.map +1 -0
  533. package/dist/utils/error-message.js +9 -0
  534. package/dist/utils/error-message.js.map +1 -0
  535. package/dist/utils/error-message.test.d.ts +2 -0
  536. package/dist/utils/error-message.test.d.ts.map +1 -0
  537. package/dist/utils/error-message.test.js +28 -0
  538. package/dist/utils/error-message.test.js.map +1 -0
  539. package/dist/utils/index.d.ts +5 -0
  540. package/dist/utils/index.d.ts.map +1 -0
  541. package/dist/utils/index.js +7 -0
  542. package/dist/utils/index.js.map +1 -0
  543. package/dist/utils/loopback.d.ts +10 -0
  544. package/dist/utils/loopback.d.ts.map +1 -0
  545. package/dist/utils/loopback.js +28 -0
  546. package/dist/utils/loopback.js.map +1 -0
  547. package/dist/utils/loopback.test.d.ts +2 -0
  548. package/dist/utils/loopback.test.d.ts.map +1 -0
  549. package/dist/utils/loopback.test.js +34 -0
  550. package/dist/utils/loopback.test.js.map +1 -0
  551. package/package.json +26 -9
@@ -0,0 +1,93 @@
1
+ // SPDX-License-Identifier: AGPL-3.0-only
2
+ // Copyright (C) 2026 Oleksii PELYKH
3
+ import { spawn } from "node:child_process";
4
+ import { createServer } from "node:net";
5
+ import { tmpdir } from "node:os";
6
+ import { join } from "node:path";
7
+ import { chromium } from "playwright-core";
8
+ import { discoverTargets } from "../discovery.js";
9
+ import { delay } from "../../utils/delay.js";
10
+ /**
11
+ * Find a free TCP port by briefly binding to port 0.
12
+ */
13
+ async function findFreePort() {
14
+ return new Promise((resolve, reject) => {
15
+ const server = createServer();
16
+ server.listen(0, "127.0.0.1", () => {
17
+ const addr = server.address();
18
+ if (addr === null || typeof addr === "string") {
19
+ server.close();
20
+ reject(new Error("Failed to get port from server address"));
21
+ return;
22
+ }
23
+ const { port } = addr;
24
+ server.close(() => {
25
+ resolve(port);
26
+ });
27
+ });
28
+ server.on("error", reject);
29
+ });
30
+ }
31
+ /**
32
+ * Launch a headless Chromium instance with CDP enabled on a random free port.
33
+ *
34
+ * Uses the Chromium binary installed by `playwright-core`. The instance
35
+ * is configured for test isolation (temp profile, no sandbox).
36
+ *
37
+ * @param options.timeout - Maximum time (ms) to wait for CDP to become
38
+ * available (default 10 000).
39
+ * @returns A {@link ChromiumInstance} handle.
40
+ */
41
+ export async function launchChromium(options) {
42
+ const timeout = options?.timeout ?? 10_000;
43
+ const port = await findFreePort();
44
+ const userDataDir = join(tmpdir(), `lhremote-cdp-test-${port.toString()}-${Date.now().toString(36)}`);
45
+ const executablePath = chromium.executablePath();
46
+ const child = spawn(executablePath, [
47
+ `--remote-debugging-port=${port.toString()}`,
48
+ `--user-data-dir=${userDataDir}`,
49
+ "--headless",
50
+ "--no-sandbox",
51
+ "--disable-gpu",
52
+ "--disable-extensions",
53
+ "--use-mock-keychain",
54
+ ], { stdio: "ignore" });
55
+ // Wait for CDP endpoint to become available
56
+ const deadline = Date.now() + timeout;
57
+ let ready = false;
58
+ while (Date.now() < deadline) {
59
+ try {
60
+ const targets = await discoverTargets(port);
61
+ if (targets.length > 0) {
62
+ ready = true;
63
+ break;
64
+ }
65
+ }
66
+ catch {
67
+ // Not ready yet
68
+ }
69
+ await delay(100);
70
+ }
71
+ if (!ready) {
72
+ child.kill("SIGKILL");
73
+ throw new Error(`Chromium CDP endpoint did not become available on port ${port.toString()} within ${timeout.toString()}ms`);
74
+ }
75
+ const close = async () => {
76
+ if (child.exitCode !== null) {
77
+ return;
78
+ }
79
+ child.kill("SIGTERM");
80
+ await new Promise((resolve) => {
81
+ const timer = setTimeout(() => {
82
+ child.kill("SIGKILL");
83
+ resolve();
84
+ }, 5_000);
85
+ child.on("exit", () => {
86
+ clearTimeout(timer);
87
+ resolve();
88
+ });
89
+ });
90
+ };
91
+ return { port, process: child, close };
92
+ }
93
+ //# sourceMappingURL=launch-chromium.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"launch-chromium.js","sourceRoot":"","sources":["../../../src/cdp/testing/launch-chromium.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Default CDP port used by the LinkedHelper launcher process.
3
+ */
4
+ export declare const DEFAULT_CDP_PORT = 9222;
5
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,gBAAgB,OAAO,CAAC"}
@@ -0,0 +1,7 @@
1
+ // SPDX-License-Identifier: AGPL-3.0-only
2
+ // Copyright (C) 2026 Oleksii PELYKH
3
+ /**
4
+ * Default CDP port used by the LinkedHelper launcher process.
5
+ */
6
+ export const DEFAULT_CDP_PORT = 9222;
7
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,oCAAoC;AAEpC;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * LinkedHelper action type identifiers.
3
+ *
4
+ * These correspond to the `actionType` column in the `action_configs` table.
5
+ */
6
+ export type ActionType = "CheckForReplies" | "DataEnrichment" | "EndorseSkills" | "FilterContactsOutOfMyNetwork" | "Follow" | "InMail" | "InvitePerson" | "MessageToPerson" | "PersonPostsLiker" | "RemoveFromFirstConnection" | "ScrapeMessagingHistory" | "VisitAndExtract" | "Waiter";
7
+ /** Action category grouping. */
8
+ export type ActionCategory = "people" | "messaging" | "engagement" | "crm" | "workflow";
9
+ /** Schema for a single configuration field. */
10
+ export interface ConfigFieldSchema {
11
+ type: "string" | "number" | "boolean" | "array" | "object";
12
+ required: boolean;
13
+ description: string;
14
+ default?: unknown;
15
+ }
16
+ /** Metadata about a single action type. */
17
+ export interface ActionTypeInfo {
18
+ name: ActionType;
19
+ description: string;
20
+ category: ActionCategory;
21
+ configSchema: Record<string, ConfigFieldSchema>;
22
+ example?: Record<string, unknown>;
23
+ }
24
+ /** Return type for catalog queries. */
25
+ export interface ActionTypeCatalog {
26
+ actionTypes: ActionTypeInfo[];
27
+ }
28
+ /**
29
+ * Get the action types catalog, optionally filtered by category.
30
+ */
31
+ export declare function getActionTypeCatalog(category?: ActionCategory): ActionTypeCatalog;
32
+ /**
33
+ * Get metadata for a single action type.
34
+ *
35
+ * @returns The action type info, or `undefined` if the type is unknown.
36
+ */
37
+ export declare function getActionTypeInfo(actionType: ActionType): Readonly<ActionTypeInfo>;
38
+ export declare function getActionTypeInfo(actionType: string): Readonly<ActionTypeInfo> | undefined;
39
+ //# sourceMappingURL=action-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action-types.d.ts","sourceRoot":"","sources":["../../src/data/action-types.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAClB,iBAAiB,GACjB,gBAAgB,GAChB,eAAe,GACf,8BAA8B,GAC9B,QAAQ,GACR,QAAQ,GACR,cAAc,GACd,iBAAiB,GACjB,kBAAkB,GAClB,2BAA2B,GAC3B,wBAAwB,GACxB,iBAAiB,GACjB,QAAQ,CAAC;AAEb,gCAAgC;AAChC,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,WAAW,GAAG,YAAY,GAAG,KAAK,GAAG,UAAU,CAAC;AAExF,+CAA+C;AAC/C,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;IAC3D,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,2CAA2C;AAC3C,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,UAAU,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,cAAc,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED,uCAAuC;AACvC,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,cAAc,EAAE,CAAC;CAC/B;AA0gBD;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,CAAC,EAAE,cAAc,GAAG,iBAAiB,CAQjF;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,UAAU,GACrB,QAAQ,CAAC,cAAc,CAAC,CAAC;AAC5B,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,MAAM,GACjB,QAAQ,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC"}
@@ -0,0 +1,497 @@
1
+ // SPDX-License-Identifier: AGPL-3.0-only
2
+ // Copyright (C) 2026 Oleksii PELYKH
3
+ const ACTION_TYPE_INFOS = [
4
+ {
5
+ name: "VisitAndExtract",
6
+ description: "Visit a LinkedIn profile and extract data (name, positions, education, skills).",
7
+ category: "people",
8
+ configSchema: {
9
+ extractCurrentOrganizations: {
10
+ type: "boolean",
11
+ required: false,
12
+ description: "Extract current company info during profile visit.",
13
+ },
14
+ },
15
+ example: { extractCurrentOrganizations: true },
16
+ },
17
+ {
18
+ name: "MessageToPerson",
19
+ description: "Send a direct message to a 1st-degree connection.",
20
+ category: "messaging",
21
+ configSchema: {
22
+ messageTemplate: {
23
+ type: "object",
24
+ required: true,
25
+ description: "Message template with variable substitution support (e.g., {firstName}).",
26
+ },
27
+ subjectTemplate: {
28
+ type: "object",
29
+ required: false,
30
+ description: "Optional subject line template for the message.",
31
+ },
32
+ rejectIfReplied: {
33
+ type: "boolean",
34
+ required: false,
35
+ description: "Skip person if they already replied in this campaign.",
36
+ default: false,
37
+ },
38
+ rejectIfMessaged: {
39
+ type: "boolean",
40
+ required: false,
41
+ description: "Skip person if a message was already sent to them.",
42
+ default: false,
43
+ },
44
+ rejectIfRepliedWithinCampaign: {
45
+ type: "boolean",
46
+ required: false,
47
+ description: "Skip person if they replied within the current campaign.",
48
+ default: false,
49
+ },
50
+ rejectIfMessagedAfterPreviousCampaignMessage: {
51
+ type: "boolean",
52
+ required: false,
53
+ description: "Skip person if they were messaged after a previous campaign message.",
54
+ default: false,
55
+ },
56
+ textInputMethod: {
57
+ type: "string",
58
+ required: false,
59
+ description: 'How to input text — "insert", "type", or "random".',
60
+ },
61
+ },
62
+ example: {
63
+ messageTemplate: {
64
+ type: "variants",
65
+ variants: [
66
+ {
67
+ type: "variant",
68
+ child: {
69
+ type: "group",
70
+ children: [
71
+ { type: "text", value: "Hello " },
72
+ { type: "var", name: "firstName" },
73
+ ],
74
+ },
75
+ },
76
+ ],
77
+ },
78
+ rejectIfReplied: false,
79
+ },
80
+ },
81
+ {
82
+ name: "InMail",
83
+ description: "Send an InMail message to a LinkedIn member (does not require a connection).",
84
+ category: "messaging",
85
+ configSchema: {
86
+ messageTemplate: {
87
+ type: "object",
88
+ required: true,
89
+ description: "InMail body template with variable substitution support.",
90
+ },
91
+ subjectTemplate: {
92
+ type: "object",
93
+ required: false,
94
+ description: "InMail subject line template.",
95
+ },
96
+ rejectIfReplied: {
97
+ type: "boolean",
98
+ required: false,
99
+ description: "Skip person if they already replied.",
100
+ default: false,
101
+ },
102
+ rejectIfRepliedWithinCampaign: {
103
+ type: "boolean",
104
+ required: false,
105
+ description: "Skip if person replied within this campaign.",
106
+ },
107
+ proceedOnOutOfCredits: {
108
+ type: "boolean",
109
+ required: false,
110
+ description: "Continue processing even when InMail credits are exhausted.",
111
+ },
112
+ textInputMethod: {
113
+ type: "string",
114
+ required: false,
115
+ description: 'How to input text — "insert", "type", or "random".',
116
+ },
117
+ },
118
+ example: {
119
+ messageTemplate: {
120
+ type: "variants",
121
+ variants: [
122
+ {
123
+ type: "variant",
124
+ child: {
125
+ type: "group",
126
+ children: [
127
+ { type: "text", value: "Hi " },
128
+ { type: "var", name: "firstName" },
129
+ { type: "text", value: ", message body here" },
130
+ ],
131
+ },
132
+ },
133
+ ],
134
+ },
135
+ subjectTemplate: {
136
+ type: "group",
137
+ children: [
138
+ { type: "text", value: "Subject line here" },
139
+ ],
140
+ },
141
+ rejectIfRepliedWithinCampaign: false,
142
+ },
143
+ },
144
+ {
145
+ name: "InvitePerson",
146
+ description: "Send a connection request to a LinkedIn member.",
147
+ category: "people",
148
+ configSchema: {
149
+ messageTemplate: {
150
+ type: "object",
151
+ required: true,
152
+ description: "Invitation message template with variable substitution (can be empty for no message).",
153
+ },
154
+ saveAsLeadSN: {
155
+ type: "boolean",
156
+ required: true,
157
+ description: "Save as lead in Sales Navigator.",
158
+ },
159
+ emailCustomFieldName: {
160
+ type: "string",
161
+ required: false,
162
+ description: "Custom field name for email (null if not used).",
163
+ },
164
+ textInputMethod: {
165
+ type: "string",
166
+ required: false,
167
+ description: 'How to input text — "insert", "type", or "random".',
168
+ },
169
+ goOverWeeklyInvitationLimit: {
170
+ type: "boolean",
171
+ required: false,
172
+ description: "Continue sending invitations even if the weekly invite limit is reached.",
173
+ },
174
+ extractEmailFromPAS: {
175
+ type: "boolean",
176
+ required: false,
177
+ description: "Extract email from the People Also Searched section.",
178
+ },
179
+ invitePersonByEmail: {
180
+ type: "boolean",
181
+ required: false,
182
+ description: "Invite by email instead of LinkedIn.",
183
+ },
184
+ },
185
+ example: {
186
+ messageTemplate: {
187
+ type: "variants",
188
+ variants: [
189
+ {
190
+ type: "variant",
191
+ child: {
192
+ type: "group",
193
+ children: [
194
+ { type: "text", value: "Hi " },
195
+ { type: "var", name: "firstName" },
196
+ {
197
+ type: "text",
198
+ value: ", I'd like to add you to my network.",
199
+ },
200
+ ],
201
+ },
202
+ },
203
+ ],
204
+ },
205
+ saveAsLeadSN: false,
206
+ extractEmailFromPAS: true,
207
+ emailCustomFieldName: null,
208
+ },
209
+ },
210
+ {
211
+ name: "Follow",
212
+ description: "Follow or unfollow a LinkedIn profile.",
213
+ category: "engagement",
214
+ configSchema: {
215
+ mode: {
216
+ type: "string",
217
+ required: false,
218
+ description: 'Follow or unfollow the person. Must be "follow" or "unfollow" (default: follow).',
219
+ default: "follow",
220
+ },
221
+ skipIfUnfollowable: {
222
+ type: "boolean",
223
+ required: true,
224
+ description: "Skip if person can't be unfollowed.",
225
+ },
226
+ },
227
+ example: { mode: "follow", skipIfUnfollowable: true },
228
+ },
229
+ {
230
+ name: "EndorseSkills",
231
+ description: "Endorse skills listed on a LinkedIn profile.",
232
+ category: "engagement",
233
+ configSchema: {
234
+ skillNames: {
235
+ type: "array",
236
+ required: false,
237
+ description: "Specific skill names to endorse (mutually exclusive with limit).",
238
+ },
239
+ limit: {
240
+ type: "number",
241
+ required: false,
242
+ description: "Max number of skills to endorse (mutually exclusive with skillNames).",
243
+ },
244
+ skipIfNotEndorsable: {
245
+ type: "boolean",
246
+ required: true,
247
+ description: "Skip if person has no endorsable skills.",
248
+ },
249
+ },
250
+ example: { limit: 3, skipIfNotEndorsable: true },
251
+ },
252
+ {
253
+ name: "CheckForReplies",
254
+ description: "Check for new message replies from contacts in the campaign.",
255
+ category: "messaging",
256
+ configSchema: {
257
+ moveToSuccessfulAfterMs: {
258
+ type: "number",
259
+ required: true,
260
+ description: "Auto-mark as successful after N milliseconds without a reply (null = never).",
261
+ },
262
+ treatMessageAcceptedAsReply: {
263
+ type: "boolean",
264
+ required: false,
265
+ description: "Count message acceptance as a reply.",
266
+ },
267
+ keepInQueueIfRequestIsNotAccepted: {
268
+ type: "boolean",
269
+ required: false,
270
+ description: "Keep checking if the connection request has not yet been accepted.",
271
+ },
272
+ },
273
+ example: {
274
+ moveToSuccessfulAfterMs: 86400000,
275
+ treatMessageAcceptedAsReply: false,
276
+ keepInQueueIfRequestIsNotAccepted: true,
277
+ },
278
+ },
279
+ {
280
+ name: "ScrapeMessagingHistory",
281
+ description: "Scrape all messaging history for the LinkedIn account.",
282
+ category: "messaging",
283
+ configSchema: {
284
+ delays: {
285
+ type: "object",
286
+ required: false,
287
+ description: "Per-step delay overrides (typePersonFullName, selectFoundPerson, sleepAfterScrollChatHistory, navigateToMessagingPage, navigateToProfile).",
288
+ },
289
+ },
290
+ example: {},
291
+ },
292
+ {
293
+ name: "Waiter",
294
+ description: "Pause the campaign pipeline for a configured delay before proceeding to the next action.",
295
+ category: "workflow",
296
+ configSchema: {
297
+ delay: {
298
+ type: "number",
299
+ required: true,
300
+ description: "Delay in hours before proceeding to the next action (min 0).",
301
+ },
302
+ },
303
+ example: { delay: 24 },
304
+ },
305
+ {
306
+ name: "DataEnrichment",
307
+ description: "Enrich profile data by extracting additional information from LinkedIn.",
308
+ category: "crm",
309
+ configSchema: {
310
+ profileInfo: {
311
+ type: "object",
312
+ required: true,
313
+ description: "Enrich profile info ({shouldEnrich: boolean, actualDate?: number}).",
314
+ },
315
+ phones: {
316
+ type: "object",
317
+ required: true,
318
+ description: "Enrich phone numbers ({shouldEnrich: boolean, actualDate?: number}).",
319
+ },
320
+ emails: {
321
+ type: "object",
322
+ required: true,
323
+ description: 'Enrich email addresses ({shouldEnrich: boolean, actualDate?: number, types: ["personal","business"]}).',
324
+ },
325
+ socials: {
326
+ type: "object",
327
+ required: true,
328
+ description: "Enrich social profiles ({shouldEnrich: boolean, actualDate?: number}).",
329
+ },
330
+ companies: {
331
+ type: "object",
332
+ required: true,
333
+ description: "Enrich company data ({shouldEnrich: boolean, actualDate?: number}).",
334
+ },
335
+ actualDate: {
336
+ type: "number",
337
+ required: false,
338
+ description: "Only enrich data newer than this timestamp (min 0).",
339
+ },
340
+ },
341
+ example: {
342
+ profileInfo: { shouldEnrich: false },
343
+ phones: { shouldEnrich: false },
344
+ emails: { shouldEnrich: false, types: ["personal", "business"] },
345
+ socials: { shouldEnrich: false },
346
+ companies: { shouldEnrich: true },
347
+ },
348
+ },
349
+ {
350
+ name: "PersonPostsLiker",
351
+ description: "Like and comment on posts and articles by a LinkedIn profile.",
352
+ category: "engagement",
353
+ configSchema: {
354
+ numberOfArticles: {
355
+ type: "number",
356
+ required: false,
357
+ description: "Number of articles to like. At least one of numberOfArticles or numberOfPosts must be > 0.",
358
+ },
359
+ numberOfPosts: {
360
+ type: "number",
361
+ required: false,
362
+ description: "Number of posts to like. At least one of numberOfArticles or numberOfPosts must be > 0.",
363
+ },
364
+ maxAgeOfArticles: {
365
+ type: "number",
366
+ required: false,
367
+ description: "Maximum age of articles in days (min 0).",
368
+ },
369
+ maxAgeOfPosts: {
370
+ type: "number",
371
+ required: false,
372
+ description: "Maximum age of posts in days (min 0).",
373
+ },
374
+ textInputMethod: {
375
+ type: "string",
376
+ required: false,
377
+ description: 'How to input comment text — "insert", "type", or "random".',
378
+ },
379
+ skipIfNotLiked: {
380
+ type: "boolean",
381
+ required: true,
382
+ description: "Skip if nothing was liked.",
383
+ },
384
+ shouldAddComment: {
385
+ type: "boolean",
386
+ required: false,
387
+ description: "Also add a comment to liked posts/articles.",
388
+ },
389
+ messageTemplate: {
390
+ type: "object",
391
+ required: false,
392
+ description: "Comment text template (required when shouldAddComment is true). Uses variable substitution.",
393
+ },
394
+ },
395
+ example: {
396
+ numberOfArticles: 2,
397
+ numberOfPosts: 2,
398
+ messageTemplate: {
399
+ type: "variants",
400
+ variants: [
401
+ {
402
+ type: "variant",
403
+ child: {
404
+ type: "group",
405
+ children: [
406
+ { type: "var", name: "firstName" },
407
+ { type: "text", value: ", thanks for sharing!" },
408
+ ],
409
+ },
410
+ },
411
+ ],
412
+ },
413
+ skipIfNotLiked: true,
414
+ },
415
+ },
416
+ {
417
+ name: "RemoveFromFirstConnection",
418
+ description: "Remove a person from 1st-degree connections (unfriend).",
419
+ category: "people",
420
+ configSchema: {
421
+ delays: {
422
+ type: "object",
423
+ required: false,
424
+ description: "Per-step delay overrides (navigateToProfile, clickOnMoreButton, clickOnRemoveConnectionButton).",
425
+ },
426
+ },
427
+ },
428
+ {
429
+ name: "FilterContactsOutOfMyNetwork",
430
+ description: "Filter out contacts who are no longer in your network (e.g., withdrawn invitations, removed connections).",
431
+ category: "crm",
432
+ configSchema: {
433
+ maxScrollDepth: {
434
+ type: "number",
435
+ required: false,
436
+ description: "Maximum scroll depth when browsing connections (min 0).",
437
+ },
438
+ checkUntil: {
439
+ type: "string",
440
+ required: false,
441
+ description: 'When to stop checking — "PreviouslyFound" or "FirstInviteDate".',
442
+ },
443
+ launchAutoAcceptInvites: {
444
+ type: "boolean",
445
+ required: false,
446
+ description: "Auto-accept pending invitations.",
447
+ },
448
+ launchAutoCancelInvites: {
449
+ type: "boolean",
450
+ required: false,
451
+ description: "Auto-cancel old pending invitations.",
452
+ },
453
+ cancelInvitesOlderThan: {
454
+ type: "number",
455
+ required: false,
456
+ description: "Cancel invites older than N milliseconds (required when launchAutoCancelInvites is true, min 1).",
457
+ },
458
+ },
459
+ example: {
460
+ maxScrollDepth: 200,
461
+ checkUntil: "PreviouslyFound",
462
+ cancelInvitesOlderThan: 2592000000,
463
+ launchAutoAcceptInvites: false,
464
+ launchAutoCancelInvites: true,
465
+ },
466
+ },
467
+ ];
468
+ /** Deep-freeze an object and all nested objects. */
469
+ function deepFreeze(obj) {
470
+ for (const value of Object.values(obj)) {
471
+ if (value !== null && typeof value === "object" && !Object.isFrozen(value)) {
472
+ deepFreeze(value);
473
+ }
474
+ }
475
+ return Object.freeze(obj);
476
+ }
477
+ // Freeze all catalog entries so consumers cannot mutate the shared static data.
478
+ for (const info of ACTION_TYPE_INFOS) {
479
+ deepFreeze(info);
480
+ }
481
+ /** Map for O(1) lookup by action type name. */
482
+ const ACTION_TYPE_MAP = new Map(ACTION_TYPE_INFOS.map((info) => [info.name, info]));
483
+ /**
484
+ * Get the action types catalog, optionally filtered by category.
485
+ */
486
+ export function getActionTypeCatalog(category) {
487
+ if (category === undefined) {
488
+ return { actionTypes: [...ACTION_TYPE_INFOS] };
489
+ }
490
+ return {
491
+ actionTypes: ACTION_TYPE_INFOS.filter((info) => info.category === category),
492
+ };
493
+ }
494
+ export function getActionTypeInfo(actionType) {
495
+ return ACTION_TYPE_MAP.get(actionType);
496
+ }
497
+ //# sourceMappingURL=action-types.js.map