@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.
- package/LICENSE +661 -0
- package/README.md +124 -0
- package/dist/cdp/app-discovery.d.ts +22 -0
- package/dist/cdp/app-discovery.d.ts.map +1 -0
- package/dist/cdp/app-discovery.js +60 -0
- package/dist/cdp/app-discovery.js.map +1 -0
- package/dist/cdp/app-discovery.test.d.ts +2 -0
- package/dist/cdp/app-discovery.test.d.ts.map +1 -0
- package/dist/cdp/app-discovery.test.js +124 -0
- package/dist/cdp/app-discovery.test.js.map +1 -0
- package/dist/cdp/client.d.ts +114 -0
- package/dist/cdp/client.d.ts.map +1 -0
- package/dist/cdp/client.integration.test.d.ts +2 -0
- package/dist/cdp/client.integration.test.d.ts.map +1 -0
- package/dist/cdp/client.integration.test.js +77 -0
- package/dist/cdp/client.integration.test.js.map +1 -0
- package/dist/cdp/client.js +319 -0
- package/dist/cdp/client.js.map +1 -0
- package/dist/cdp/client.test.d.ts +2 -0
- package/dist/cdp/client.test.d.ts.map +1 -0
- package/dist/cdp/client.test.js +533 -0
- package/dist/cdp/client.test.js.map +1 -0
- package/dist/cdp/discovery.d.ts +14 -0
- package/dist/cdp/discovery.d.ts.map +1 -0
- package/dist/cdp/discovery.integration.test.d.ts +2 -0
- package/dist/cdp/discovery.integration.test.d.ts.map +1 -0
- package/dist/cdp/discovery.integration.test.js +27 -0
- package/dist/cdp/discovery.integration.test.js.map +1 -0
- package/dist/cdp/discovery.js +33 -0
- package/dist/cdp/discovery.js.map +1 -0
- package/dist/cdp/discovery.test.d.ts +2 -0
- package/dist/cdp/discovery.test.d.ts.map +1 -0
- package/dist/cdp/discovery.test.js +56 -0
- package/dist/cdp/discovery.test.js.map +1 -0
- package/dist/cdp/errors.d.ts +28 -0
- package/dist/cdp/errors.d.ts.map +1 -0
- package/dist/cdp/errors.js +42 -0
- package/dist/cdp/errors.js.map +1 -0
- package/dist/cdp/errors.test.d.ts +2 -0
- package/dist/cdp/errors.test.d.ts.map +1 -0
- package/dist/cdp/errors.test.js +37 -0
- package/dist/cdp/errors.test.js.map +1 -0
- package/dist/cdp/index.d.ts +6 -0
- package/dist/cdp/index.d.ts.map +1 -0
- package/dist/cdp/index.js +8 -0
- package/dist/cdp/index.js.map +1 -0
- package/dist/cdp/instance-discovery.d.ts +30 -0
- package/dist/cdp/instance-discovery.d.ts.map +1 -0
- package/dist/cdp/instance-discovery.integration.test.d.ts +2 -0
- package/dist/cdp/instance-discovery.integration.test.d.ts.map +1 -0
- package/dist/cdp/instance-discovery.integration.test.js +36 -0
- package/dist/cdp/instance-discovery.integration.test.js.map +1 -0
- package/dist/cdp/instance-discovery.js +118 -0
- package/dist/cdp/instance-discovery.js.map +1 -0
- package/dist/cdp/instance-discovery.test.d.ts +2 -0
- package/dist/cdp/instance-discovery.test.d.ts.map +1 -0
- package/dist/cdp/instance-discovery.test.js +112 -0
- package/dist/cdp/instance-discovery.test.js.map +1 -0
- package/dist/cdp/testing/launch-chromium.d.ts +24 -0
- package/dist/cdp/testing/launch-chromium.d.ts.map +1 -0
- package/dist/cdp/testing/launch-chromium.js +93 -0
- package/dist/cdp/testing/launch-chromium.js.map +1 -0
- package/dist/constants.d.ts +5 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +7 -0
- package/dist/constants.js.map +1 -0
- package/dist/data/action-types.d.ts +39 -0
- package/dist/data/action-types.d.ts.map +1 -0
- package/dist/data/action-types.js +497 -0
- package/dist/data/action-types.js.map +1 -0
- package/dist/data/action-types.test.d.ts +2 -0
- package/dist/data/action-types.test.d.ts.map +1 -0
- package/dist/data/action-types.test.js +544 -0
- package/dist/data/action-types.test.js.map +1 -0
- package/dist/data/index.d.ts +3 -0
- package/dist/data/index.d.ts.map +1 -0
- package/dist/data/index.js +4 -0
- package/dist/data/index.js.map +1 -0
- package/dist/db/client.d.ts +27 -0
- package/dist/db/client.d.ts.map +1 -0
- package/dist/db/client.integration.test.d.ts +2 -0
- package/dist/db/client.integration.test.d.ts.map +1 -0
- package/dist/db/client.integration.test.js +63 -0
- package/dist/db/client.integration.test.js.map +1 -0
- package/dist/db/client.js +23 -0
- package/dist/db/client.js.map +1 -0
- package/dist/db/client.test.d.ts +2 -0
- package/dist/db/client.test.d.ts.map +1 -0
- package/dist/db/client.test.js +48 -0
- package/dist/db/client.test.js.map +1 -0
- package/dist/db/discovery.d.ts +14 -0
- package/dist/db/discovery.d.ts.map +1 -0
- package/dist/db/discovery.integration.test.d.ts +2 -0
- package/dist/db/discovery.integration.test.d.ts.map +1 -0
- package/dist/db/discovery.integration.test.js +101 -0
- package/dist/db/discovery.integration.test.js.map +1 -0
- package/dist/db/discovery.js +76 -0
- package/dist/db/discovery.js.map +1 -0
- package/dist/db/discovery.test.d.ts +2 -0
- package/dist/db/discovery.test.d.ts.map +1 -0
- package/dist/db/discovery.test.js +125 -0
- package/dist/db/discovery.test.js.map +1 -0
- package/dist/db/errors.d.ts +52 -0
- package/dist/db/errors.d.ts.map +1 -0
- package/dist/db/errors.js +82 -0
- package/dist/db/errors.js.map +1 -0
- package/dist/db/errors.test.d.ts +2 -0
- package/dist/db/errors.test.d.ts.map +1 -0
- package/dist/db/errors.test.js +34 -0
- package/dist/db/errors.test.js.map +1 -0
- package/dist/db/escape-like.d.ts +8 -0
- package/dist/db/escape-like.d.ts.map +1 -0
- package/dist/db/escape-like.js +12 -0
- package/dist/db/escape-like.js.map +1 -0
- package/dist/db/escape-like.test.d.ts +2 -0
- package/dist/db/escape-like.test.d.ts.map +1 -0
- package/dist/db/escape-like.test.js +25 -0
- package/dist/db/escape-like.test.js.map +1 -0
- package/dist/db/index.d.ts +5 -0
- package/dist/db/index.d.ts.map +1 -0
- package/dist/db/index.js +7 -0
- package/dist/db/index.js.map +1 -0
- package/dist/db/repositories/campaign-exclude-list.d.ts +89 -0
- package/dist/db/repositories/campaign-exclude-list.d.ts.map +1 -0
- package/dist/db/repositories/campaign-exclude-list.js +204 -0
- package/dist/db/repositories/campaign-exclude-list.js.map +1 -0
- package/dist/db/repositories/campaign-exclude-list.test.d.ts +2 -0
- package/dist/db/repositories/campaign-exclude-list.test.d.ts.map +1 -0
- package/dist/db/repositories/campaign-exclude-list.test.js +132 -0
- package/dist/db/repositories/campaign-exclude-list.test.js.map +1 -0
- package/dist/db/repositories/campaign-statistics.d.ts +58 -0
- package/dist/db/repositories/campaign-statistics.d.ts.map +1 -0
- package/dist/db/repositories/campaign-statistics.js +278 -0
- package/dist/db/repositories/campaign-statistics.js.map +1 -0
- package/dist/db/repositories/campaign-statistics.test.d.ts +2 -0
- package/dist/db/repositories/campaign-statistics.test.d.ts.map +1 -0
- package/dist/db/repositories/campaign-statistics.test.js +266 -0
- package/dist/db/repositories/campaign-statistics.test.js.map +1 -0
- package/dist/db/repositories/campaign.d.ts +103 -0
- package/dist/db/repositories/campaign.d.ts.map +1 -0
- package/dist/db/repositories/campaign.js +388 -0
- package/dist/db/repositories/campaign.js.map +1 -0
- package/dist/db/repositories/campaign.test.d.ts +2 -0
- package/dist/db/repositories/campaign.test.d.ts.map +1 -0
- package/dist/db/repositories/campaign.test.js +392 -0
- package/dist/db/repositories/campaign.test.js.map +1 -0
- package/dist/db/repositories/index.d.ts +6 -0
- package/dist/db/repositories/index.d.ts.map +1 -0
- package/dist/db/repositories/index.js +8 -0
- package/dist/db/repositories/index.js.map +1 -0
- package/dist/db/repositories/message.d.ts +57 -0
- package/dist/db/repositories/message.d.ts.map +1 -0
- package/dist/db/repositories/message.integration.test.d.ts +2 -0
- package/dist/db/repositories/message.integration.test.d.ts.map +1 -0
- package/dist/db/repositories/message.integration.test.js +137 -0
- package/dist/db/repositories/message.integration.test.js.map +1 -0
- package/dist/db/repositories/message.js +308 -0
- package/dist/db/repositories/message.js.map +1 -0
- package/dist/db/repositories/message.test.d.ts +2 -0
- package/dist/db/repositories/message.test.d.ts.map +1 -0
- package/dist/db/repositories/message.test.js +179 -0
- package/dist/db/repositories/message.test.js.map +1 -0
- package/dist/db/repositories/profile.d.ts +42 -0
- package/dist/db/repositories/profile.d.ts.map +1 -0
- package/dist/db/repositories/profile.integration.test.d.ts +2 -0
- package/dist/db/repositories/profile.integration.test.d.ts.map +1 -0
- package/dist/db/repositories/profile.integration.test.js +222 -0
- package/dist/db/repositories/profile.integration.test.js.map +1 -0
- package/dist/db/repositories/profile.js +163 -0
- package/dist/db/repositories/profile.js.map +1 -0
- package/dist/db/repositories/profile.test.d.ts +2 -0
- package/dist/db/repositories/profile.test.d.ts.map +1 -0
- package/dist/db/repositories/profile.test.js +216 -0
- package/dist/db/repositories/profile.test.js.map +1 -0
- package/dist/db/testing/create-fixture.d.ts +2 -0
- package/dist/db/testing/create-fixture.d.ts.map +1 -0
- package/dist/db/testing/create-fixture.js +745 -0
- package/dist/db/testing/create-fixture.js.map +1 -0
- package/dist/db/testing/open-fixture.d.ts +15 -0
- package/dist/db/testing/open-fixture.d.ts.map +1 -0
- package/dist/db/testing/open-fixture.js +39 -0
- package/dist/db/testing/open-fixture.js.map +1 -0
- package/dist/formats/campaign-format.d.ts +31 -0
- package/dist/formats/campaign-format.d.ts.map +1 -0
- package/dist/formats/campaign-format.js +225 -0
- package/dist/formats/campaign-format.js.map +1 -0
- package/dist/formats/campaign-format.test.d.ts +2 -0
- package/dist/formats/campaign-format.test.d.ts.map +1 -0
- package/dist/formats/campaign-format.test.js +442 -0
- package/dist/formats/campaign-format.test.js.map +1 -0
- package/dist/formats/errors.d.ts +7 -0
- package/dist/formats/errors.d.ts.map +1 -0
- package/dist/formats/errors.js +12 -0
- package/dist/formats/errors.js.map +1 -0
- package/dist/formats/index.d.ts +3 -0
- package/dist/formats/index.d.ts.map +1 -0
- package/dist/formats/index.js +5 -0
- package/dist/formats/index.js.map +1 -0
- package/dist/index.d.ts +10 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +29 -1
- package/dist/index.js.map +1 -1
- package/dist/operations/campaign-add-action.d.ts +14 -0
- package/dist/operations/campaign-add-action.d.ts.map +1 -0
- package/dist/operations/campaign-add-action.js +33 -0
- package/dist/operations/campaign-add-action.js.map +1 -0
- package/dist/operations/campaign-add-action.test.d.ts +2 -0
- package/dist/operations/campaign-add-action.test.d.ts.map +1 -0
- package/dist/operations/campaign-add-action.test.js +122 -0
- package/dist/operations/campaign-add-action.test.js.map +1 -0
- package/dist/operations/campaign-create.d.ts +17 -0
- package/dist/operations/campaign-create.d.ts.map +1 -0
- package/dist/operations/campaign-create.js +21 -0
- package/dist/operations/campaign-create.js.map +1 -0
- package/dist/operations/campaign-create.test.d.ts +2 -0
- package/dist/operations/campaign-create.test.d.ts.map +1 -0
- package/dist/operations/campaign-create.test.js +113 -0
- package/dist/operations/campaign-create.test.js.map +1 -0
- package/dist/operations/campaign-delete.d.ts +20 -0
- package/dist/operations/campaign-delete.d.ts.map +1 -0
- package/dist/operations/campaign-delete.js +22 -0
- package/dist/operations/campaign-delete.js.map +1 -0
- package/dist/operations/campaign-delete.test.d.ts +2 -0
- package/dist/operations/campaign-delete.test.d.ts.map +1 -0
- package/dist/operations/campaign-delete.test.js +92 -0
- package/dist/operations/campaign-delete.test.js.map +1 -0
- package/dist/operations/campaign-exclude-add.d.ts +16 -0
- package/dist/operations/campaign-exclude-add.d.ts.map +1 -0
- package/dist/operations/campaign-exclude-add.js +27 -0
- package/dist/operations/campaign-exclude-add.js.map +1 -0
- package/dist/operations/campaign-exclude-add.test.d.ts +2 -0
- package/dist/operations/campaign-exclude-add.test.d.ts.map +1 -0
- package/dist/operations/campaign-exclude-add.test.js +114 -0
- package/dist/operations/campaign-exclude-add.test.js.map +1 -0
- package/dist/operations/campaign-exclude-list.d.ts +14 -0
- package/dist/operations/campaign-exclude-list.d.ts.map +1 -0
- package/dist/operations/campaign-exclude-list.js +26 -0
- package/dist/operations/campaign-exclude-list.js.map +1 -0
- package/dist/operations/campaign-exclude-list.test.d.ts +2 -0
- package/dist/operations/campaign-exclude-list.test.d.ts.map +1 -0
- package/dist/operations/campaign-exclude-list.test.js +113 -0
- package/dist/operations/campaign-exclude-list.test.js.map +1 -0
- package/dist/operations/campaign-exclude-remove.d.ts +16 -0
- package/dist/operations/campaign-exclude-remove.d.ts.map +1 -0
- package/dist/operations/campaign-exclude-remove.js +27 -0
- package/dist/operations/campaign-exclude-remove.js.map +1 -0
- package/dist/operations/campaign-exclude-remove.test.d.ts +2 -0
- package/dist/operations/campaign-exclude-remove.test.d.ts.map +1 -0
- package/dist/operations/campaign-exclude-remove.test.js +114 -0
- package/dist/operations/campaign-exclude-remove.test.js.map +1 -0
- package/dist/operations/campaign-export.d.ts +12 -0
- package/dist/operations/campaign-export.d.ts.map +1 -0
- package/dist/operations/campaign-export.js +24 -0
- package/dist/operations/campaign-export.js.map +1 -0
- package/dist/operations/campaign-export.test.d.ts +2 -0
- package/dist/operations/campaign-export.test.d.ts.map +1 -0
- package/dist/operations/campaign-export.test.js +134 -0
- package/dist/operations/campaign-export.test.js.map +1 -0
- package/dist/operations/campaign-get.d.ts +19 -0
- package/dist/operations/campaign-get.d.ts.map +1 -0
- package/dist/operations/campaign-get.js +23 -0
- package/dist/operations/campaign-get.js.map +1 -0
- package/dist/operations/campaign-get.test.d.ts +2 -0
- package/dist/operations/campaign-get.test.d.ts.map +1 -0
- package/dist/operations/campaign-get.test.js +99 -0
- package/dist/operations/campaign-get.test.js.map +1 -0
- package/dist/operations/campaign-list.d.ts +20 -0
- package/dist/operations/campaign-list.d.ts.map +1 -0
- package/dist/operations/campaign-list.js +23 -0
- package/dist/operations/campaign-list.js.map +1 -0
- package/dist/operations/campaign-list.test.d.ts +2 -0
- package/dist/operations/campaign-list.test.d.ts.map +1 -0
- package/dist/operations/campaign-list.test.js +106 -0
- package/dist/operations/campaign-list.test.js.map +1 -0
- package/dist/operations/campaign-move-next.d.ts +15 -0
- package/dist/operations/campaign-move-next.d.ts.map +1 -0
- package/dist/operations/campaign-move-next.js +25 -0
- package/dist/operations/campaign-move-next.js.map +1 -0
- package/dist/operations/campaign-move-next.test.d.ts +2 -0
- package/dist/operations/campaign-move-next.test.d.ts.map +1 -0
- package/dist/operations/campaign-move-next.test.js +105 -0
- package/dist/operations/campaign-move-next.test.js.map +1 -0
- package/dist/operations/campaign-remove-action.d.ts +12 -0
- package/dist/operations/campaign-remove-action.d.ts.map +1 -0
- package/dist/operations/campaign-remove-action.js +23 -0
- package/dist/operations/campaign-remove-action.js.map +1 -0
- package/dist/operations/campaign-remove-action.test.d.ts +2 -0
- package/dist/operations/campaign-remove-action.test.d.ts.map +1 -0
- package/dist/operations/campaign-remove-action.test.js +95 -0
- package/dist/operations/campaign-remove-action.test.js.map +1 -0
- package/dist/operations/campaign-reorder-actions.d.ts +13 -0
- package/dist/operations/campaign-reorder-actions.d.ts.map +1 -0
- package/dist/operations/campaign-reorder-actions.js +19 -0
- package/dist/operations/campaign-reorder-actions.js.map +1 -0
- package/dist/operations/campaign-reorder-actions.test.d.ts +2 -0
- package/dist/operations/campaign-reorder-actions.test.d.ts.map +1 -0
- package/dist/operations/campaign-reorder-actions.test.js +103 -0
- package/dist/operations/campaign-reorder-actions.test.js.map +1 -0
- package/dist/operations/campaign-retry.d.ts +13 -0
- package/dist/operations/campaign-retry.d.ts.map +1 -0
- package/dist/operations/campaign-retry.js +24 -0
- package/dist/operations/campaign-retry.js.map +1 -0
- package/dist/operations/campaign-retry.test.d.ts +2 -0
- package/dist/operations/campaign-retry.test.d.ts.map +1 -0
- package/dist/operations/campaign-retry.test.js +100 -0
- package/dist/operations/campaign-retry.test.js.map +1 -0
- package/dist/operations/campaign-start.d.ts +13 -0
- package/dist/operations/campaign-start.d.ts.map +1 -0
- package/dist/operations/campaign-start.js +24 -0
- package/dist/operations/campaign-start.js.map +1 -0
- package/dist/operations/campaign-start.test.d.ts +2 -0
- package/dist/operations/campaign-start.test.d.ts.map +1 -0
- package/dist/operations/campaign-start.test.js +96 -0
- package/dist/operations/campaign-start.test.js.map +1 -0
- package/dist/operations/campaign-statistics.d.ts +10 -0
- package/dist/operations/campaign-statistics.d.ts.map +1 -0
- package/dist/operations/campaign-statistics.js +23 -0
- package/dist/operations/campaign-statistics.js.map +1 -0
- package/dist/operations/campaign-statistics.test.d.ts +2 -0
- package/dist/operations/campaign-statistics.test.d.ts.map +1 -0
- package/dist/operations/campaign-statistics.test.js +120 -0
- package/dist/operations/campaign-statistics.test.js.map +1 -0
- package/dist/operations/campaign-status.d.ts +26 -0
- package/dist/operations/campaign-status.d.ts.map +1 -0
- package/dist/operations/campaign-status.js +32 -0
- package/dist/operations/campaign-status.js.map +1 -0
- package/dist/operations/campaign-status.test.d.ts +2 -0
- package/dist/operations/campaign-status.test.d.ts.map +1 -0
- package/dist/operations/campaign-status.test.js +142 -0
- package/dist/operations/campaign-status.test.js.map +1 -0
- package/dist/operations/campaign-stop.d.ts +11 -0
- package/dist/operations/campaign-stop.d.ts.map +1 -0
- package/dist/operations/campaign-stop.js +23 -0
- package/dist/operations/campaign-stop.js.map +1 -0
- package/dist/operations/campaign-stop.test.d.ts +2 -0
- package/dist/operations/campaign-stop.test.d.ts.map +1 -0
- package/dist/operations/campaign-stop.test.js +92 -0
- package/dist/operations/campaign-stop.test.js.map +1 -0
- package/dist/operations/campaign-update.d.ts +18 -0
- package/dist/operations/campaign-update.d.ts.map +1 -0
- package/dist/operations/campaign-update.js +21 -0
- package/dist/operations/campaign-update.js.map +1 -0
- package/dist/operations/campaign-update.test.d.ts +2 -0
- package/dist/operations/campaign-update.test.d.ts.map +1 -0
- package/dist/operations/campaign-update.test.js +105 -0
- package/dist/operations/campaign-update.test.js.map +1 -0
- package/dist/operations/check-replies.d.ts +12 -0
- package/dist/operations/check-replies.d.ts.map +1 -0
- package/dist/operations/check-replies.js +26 -0
- package/dist/operations/check-replies.js.map +1 -0
- package/dist/operations/check-replies.test.d.ts +2 -0
- package/dist/operations/check-replies.test.d.ts.map +1 -0
- package/dist/operations/check-replies.test.js +118 -0
- package/dist/operations/check-replies.test.js.map +1 -0
- package/dist/operations/import-people-from-urls.d.ts +16 -0
- package/dist/operations/import-people-from-urls.d.ts.map +1 -0
- package/dist/operations/import-people-from-urls.js +27 -0
- package/dist/operations/import-people-from-urls.js.map +1 -0
- package/dist/operations/import-people-from-urls.test.d.ts +2 -0
- package/dist/operations/import-people-from-urls.test.d.ts.map +1 -0
- package/dist/operations/import-people-from-urls.test.js +118 -0
- package/dist/operations/import-people-from-urls.test.js.map +1 -0
- package/dist/operations/index.d.ts +24 -0
- package/dist/operations/index.d.ts.map +1 -0
- package/dist/operations/index.js +30 -0
- package/dist/operations/index.js.map +1 -0
- package/dist/operations/query-messages.d.ts +23 -0
- package/dist/operations/query-messages.d.ts.map +1 -0
- package/dist/operations/query-messages.js +33 -0
- package/dist/operations/query-messages.js.map +1 -0
- package/dist/operations/query-messages.test.d.ts +2 -0
- package/dist/operations/query-messages.test.d.ts.map +1 -0
- package/dist/operations/query-messages.test.js +134 -0
- package/dist/operations/query-messages.test.js.map +1 -0
- package/dist/operations/scrape-messaging-history.d.ts +10 -0
- package/dist/operations/scrape-messaging-history.d.ts.map +1 -0
- package/dist/operations/scrape-messaging-history.js +24 -0
- package/dist/operations/scrape-messaging-history.js.map +1 -0
- package/dist/operations/scrape-messaging-history.test.d.ts +2 -0
- package/dist/operations/scrape-messaging-history.test.d.ts.map +1 -0
- package/dist/operations/scrape-messaging-history.test.js +112 -0
- package/dist/operations/scrape-messaging-history.test.js.map +1 -0
- package/dist/operations/types.d.ts +10 -0
- package/dist/operations/types.d.ts.map +1 -0
- package/dist/operations/types.js +4 -0
- package/dist/operations/types.js.map +1 -0
- package/dist/services/account-resolution.d.ts +22 -0
- package/dist/services/account-resolution.d.ts.map +1 -0
- package/dist/services/account-resolution.js +45 -0
- package/dist/services/account-resolution.js.map +1 -0
- package/dist/services/account-resolution.test.d.ts +2 -0
- package/dist/services/account-resolution.test.d.ts.map +1 -0
- package/dist/services/account-resolution.test.js +91 -0
- package/dist/services/account-resolution.test.js.map +1 -0
- package/dist/services/app.d.ts +62 -0
- package/dist/services/app.d.ts.map +1 -0
- package/dist/services/app.js +200 -0
- package/dist/services/app.js.map +1 -0
- package/dist/services/app.test.d.ts +2 -0
- package/dist/services/app.test.d.ts.map +1 -0
- package/dist/services/app.test.js +267 -0
- package/dist/services/app.test.js.map +1 -0
- package/dist/services/campaign.d.ts +143 -0
- package/dist/services/campaign.d.ts.map +1 -0
- package/dist/services/campaign.js +409 -0
- package/dist/services/campaign.js.map +1 -0
- package/dist/services/campaign.test.d.ts +2 -0
- package/dist/services/campaign.test.d.ts.map +1 -0
- package/dist/services/campaign.test.js +481 -0
- package/dist/services/campaign.test.js.map +1 -0
- package/dist/services/errors.d.ts +83 -0
- package/dist/services/errors.d.ts.map +1 -0
- package/dist/services/errors.js +126 -0
- package/dist/services/errors.js.map +1 -0
- package/dist/services/errors.test.d.ts +2 -0
- package/dist/services/errors.test.d.ts.map +1 -0
- package/dist/services/errors.test.js +123 -0
- package/dist/services/errors.test.js.map +1 -0
- package/dist/services/index.d.ts +10 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +12 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/instance-context.d.ts +37 -0
- package/dist/services/instance-context.d.ts.map +1 -0
- package/dist/services/instance-context.js +49 -0
- package/dist/services/instance-context.js.map +1 -0
- package/dist/services/instance-context.test.d.ts +2 -0
- package/dist/services/instance-context.test.d.ts.map +1 -0
- package/dist/services/instance-context.test.js +203 -0
- package/dist/services/instance-context.test.js.map +1 -0
- package/dist/services/instance-lifecycle.d.ts +38 -0
- package/dist/services/instance-lifecycle.d.ts.map +1 -0
- package/dist/services/instance-lifecycle.js +87 -0
- package/dist/services/instance-lifecycle.js.map +1 -0
- package/dist/services/instance-lifecycle.test.d.ts +2 -0
- package/dist/services/instance-lifecycle.test.d.ts.map +1 -0
- package/dist/services/instance-lifecycle.test.js +158 -0
- package/dist/services/instance-lifecycle.test.js.map +1 -0
- package/dist/services/instance.d.ts +90 -0
- package/dist/services/instance.d.ts.map +1 -0
- package/dist/services/instance.js +178 -0
- package/dist/services/instance.js.map +1 -0
- package/dist/services/instance.test.d.ts +2 -0
- package/dist/services/instance.test.d.ts.map +1 -0
- package/dist/services/instance.test.js +291 -0
- package/dist/services/instance.test.js.map +1 -0
- package/dist/services/launcher.d.ts +54 -0
- package/dist/services/launcher.d.ts.map +1 -0
- package/dist/services/launcher.js +162 -0
- package/dist/services/launcher.js.map +1 -0
- package/dist/services/launcher.test.d.ts +2 -0
- package/dist/services/launcher.test.d.ts.map +1 -0
- package/dist/services/launcher.test.js +163 -0
- package/dist/services/launcher.test.js.map +1 -0
- package/dist/services/status.d.ts +37 -0
- package/dist/services/status.d.ts.map +1 -0
- package/dist/services/status.js +85 -0
- package/dist/services/status.js.map +1 -0
- package/dist/services/status.test.d.ts +2 -0
- package/dist/services/status.test.d.ts.map +1 -0
- package/dist/services/status.test.js +248 -0
- package/dist/services/status.test.js.map +1 -0
- package/dist/testing/e2e-helpers.d.ts +41 -0
- package/dist/testing/e2e-helpers.d.ts.map +1 -0
- package/dist/testing/e2e-helpers.js +114 -0
- package/dist/testing/e2e-helpers.js.map +1 -0
- package/dist/testing/index.d.ts +2 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +4 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/types/account.d.ts +13 -0
- package/dist/types/account.d.ts.map +1 -0
- package/dist/types/account.js +4 -0
- package/dist/types/account.js.map +1 -0
- package/dist/types/account.test.d.ts +2 -0
- package/dist/types/account.test.d.ts.map +1 -0
- package/dist/types/account.test.js +26 -0
- package/dist/types/account.test.js.map +1 -0
- package/dist/types/campaign.d.ts +267 -0
- package/dist/types/campaign.d.ts.map +1 -0
- package/dist/types/campaign.js +4 -0
- package/dist/types/campaign.js.map +1 -0
- package/dist/types/cdp.d.ts +18 -0
- package/dist/types/cdp.d.ts.map +1 -0
- package/dist/types/cdp.js +4 -0
- package/dist/types/cdp.js.map +1 -0
- package/dist/types/cdp.test.d.ts +2 -0
- package/dist/types/cdp.test.d.ts.map +1 -0
- package/dist/types/cdp.test.js +30 -0
- package/dist/types/cdp.test.js.map +1 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +4 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/instance.d.ts +36 -0
- package/dist/types/instance.d.ts.map +1 -0
- package/dist/types/instance.js +4 -0
- package/dist/types/instance.js.map +1 -0
- package/dist/types/instance.test.d.ts +2 -0
- package/dist/types/instance.test.d.ts.map +1 -0
- package/dist/types/instance.test.js +59 -0
- package/dist/types/instance.test.js.map +1 -0
- package/dist/types/messaging.d.ts +51 -0
- package/dist/types/messaging.d.ts.map +1 -0
- package/dist/types/messaging.js +4 -0
- package/dist/types/messaging.js.map +1 -0
- package/dist/types/profile.d.ts +81 -0
- package/dist/types/profile.d.ts.map +1 -0
- package/dist/types/profile.js +4 -0
- package/dist/types/profile.js.map +1 -0
- package/dist/types/profile.test.d.ts +2 -0
- package/dist/types/profile.test.d.ts.map +1 -0
- package/dist/types/profile.test.js +105 -0
- package/dist/types/profile.test.js.map +1 -0
- package/dist/utils/cdp-port.d.ts +5 -0
- package/dist/utils/cdp-port.d.ts.map +1 -0
- package/dist/utils/cdp-port.js +15 -0
- package/dist/utils/cdp-port.js.map +1 -0
- package/dist/utils/cdp-port.test.d.ts +2 -0
- package/dist/utils/cdp-port.test.d.ts.map +1 -0
- package/dist/utils/cdp-port.test.js +23 -0
- package/dist/utils/cdp-port.test.js.map +1 -0
- package/dist/utils/delay.d.ts +5 -0
- package/dist/utils/delay.d.ts.map +1 -0
- package/dist/utils/delay.js +9 -0
- package/dist/utils/delay.js.map +1 -0
- package/dist/utils/delay.test.d.ts +2 -0
- package/dist/utils/delay.test.d.ts.map +1 -0
- package/dist/utils/delay.test.js +17 -0
- package/dist/utils/delay.test.js.map +1 -0
- package/dist/utils/error-message.d.ts +5 -0
- package/dist/utils/error-message.d.ts.map +1 -0
- package/dist/utils/error-message.js +9 -0
- package/dist/utils/error-message.js.map +1 -0
- package/dist/utils/error-message.test.d.ts +2 -0
- package/dist/utils/error-message.test.d.ts.map +1 -0
- package/dist/utils/error-message.test.js +28 -0
- package/dist/utils/error-message.test.js.map +1 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +7 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/loopback.d.ts +10 -0
- package/dist/utils/loopback.d.ts.map +1 -0
- package/dist/utils/loopback.js +28 -0
- package/dist/utils/loopback.js.map +1 -0
- package/dist/utils/loopback.test.d.ts +2 -0
- package/dist/utils/loopback.test.d.ts.map +1 -0
- package/dist/utils/loopback.test.js +34 -0
- package/dist/utils/loopback.test.js.map +1 -0
- 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":"AAAA,yCAAyC;AACzC,oCAAoC;AAEpC,OAAO,EAAqB,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAY7C;;GAEG;AACH,KAAK,UAAU,YAAY;IACzB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,MAAM,GAAG,YAAY,EAAE,CAAC;QAC9B,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,WAAW,EAAE,GAAG,EAAE;YACjC,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,EAAE,CAAC;YAC9B,IAAI,IAAI,KAAK,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;gBAC9C,MAAM,CAAC,KAAK,EAAE,CAAC;gBACf,MAAM,CAAC,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC,CAAC;gBAC5D,OAAO;YACT,CAAC;YACD,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;YACtB,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE;gBAChB,OAAO,CAAC,IAAI,CAAC,CAAC;YAChB,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QACH,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC7B,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,OAEpC;IACC,MAAM,OAAO,GAAG,OAAO,EAAE,OAAO,IAAI,MAAM,CAAC;IAC3C,MAAM,IAAI,GAAG,MAAM,YAAY,EAAE,CAAC;IAClC,MAAM,WAAW,GAAG,IAAI,CACtB,MAAM,EAAE,EACR,qBAAqB,IAAI,CAAC,QAAQ,EAAE,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,CAClE,CAAC;IAEF,MAAM,cAAc,GAAG,QAAQ,CAAC,cAAc,EAAE,CAAC;IACjD,MAAM,KAAK,GAAG,KAAK,CACjB,cAAc,EACd;QACE,2BAA2B,IAAI,CAAC,QAAQ,EAAE,EAAE;QAC5C,mBAAmB,WAAW,EAAE;QAChC,YAAY;QACZ,cAAc;QACd,eAAe;QACf,sBAAsB;QACtB,qBAAqB;KACtB,EACD,EAAE,KAAK,EAAE,QAAQ,EAAE,CACpB,CAAC;IAEF,4CAA4C;IAC5C,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,OAAO,CAAC;IACtC,IAAI,KAAK,GAAG,KAAK,CAAC;IAClB,OAAO,IAAI,CAAC,GAAG,EAAE,GAAG,QAAQ,EAAE,CAAC;QAC7B,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,MAAM,eAAe,CAAC,IAAI,CAAC,CAAC;YAC5C,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACvB,KAAK,GAAG,IAAI,CAAC;gBACb,MAAM;YACR,CAAC;QACH,CAAC;QAAC,MAAM,CAAC;YACP,gBAAgB;QAClB,CAAC;QACD,MAAM,KAAK,CAAC,GAAG,CAAC,CAAC;IACnB,CAAC;IAED,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACtB,MAAM,IAAI,KAAK,CACb,0DAA0D,IAAI,CAAC,QAAQ,EAAE,WAAW,OAAO,CAAC,QAAQ,EAAE,IAAI,CAC3G,CAAC;IACJ,CAAC;IAED,MAAM,KAAK,GAAG,KAAK,IAAmB,EAAE;QACtC,IAAI,KAAK,CAAC,QAAQ,KAAK,IAAI,EAAE,CAAC;YAC5B,OAAO;QACT,CAAC;QACD,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACtB,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE;YAClC,MAAM,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE;gBAC5B,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;gBACtB,OAAO,EAAE,CAAC;YACZ,CAAC,EAAE,KAAK,CAAC,CAAC;YACV,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE;gBACpB,YAAY,CAAC,KAAK,CAAC,CAAC;gBACpB,OAAO,EAAE,CAAC;YACZ,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;AACzC,CAAC"}
|
|
@@ -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 @@
|
|
|
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
|