@lobu/runtime-server 24.11.1 → 24.12.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/dist/catalogs/connectors.json +1113 -107
- package/dist/catalogs/skills.json +2 -2
- package/dist/component.json +1 -1
- package/dist/connectors/README.md +2 -2
- package/dist/connectors/chat-transport-actions.ts +50 -0
- package/dist/connectors/discord.ts +2 -0
- package/dist/connectors/gchat.ts +2 -0
- package/dist/connectors/github.ts +4 -4
- package/dist/connectors/google_drive.ts +20 -0
- package/dist/connectors/google_gmail.ts +49 -8
- package/dist/connectors/herdr.ts +1 -1
- package/dist/connectors/imessage.ts +1 -0
- package/dist/connectors/linkedin-browser-script.ts +11 -0
- package/dist/connectors/linkedin-draft-page.js +24 -8
- package/dist/connectors/linkedin-inbox-adapter.js +209 -19
- package/dist/connectors/linkedin-inbox.ts +152 -4
- package/dist/connectors/linkedin-network.ts +788 -0
- package/dist/connectors/linkedin-search.ts +1284 -0
- package/dist/connectors/linkedin.ts +892 -27
- package/dist/connectors/microsoft_outlook.ts +57 -19
- package/dist/connectors/rss.ts +179 -33
- package/dist/connectors/slack.ts +2 -0
- package/dist/connectors/source-file-attachment.ts +46 -0
- package/dist/connectors/teams.ts +2 -0
- package/dist/connectors/telegram.ts +2 -0
- package/dist/connectors/tiktok_web.ts +1 -1
- package/dist/connectors/whatsapp.ts +2 -0
- package/dist/connectors/whatsapp_web.ts +3 -3
- package/dist/connectors/x-dm-adapter.js +8 -10
- package/dist/connectors/x.ts +8 -9
- package/dist/db/migrations/20261115040000_account_two_factor.sql +20 -0
- package/dist/db/migrations/20261115130000_entities_retired_type_idx.sql +34 -0
- package/dist/db/migrations/20261115140000_entity_identities_personal_owner_idx.sql +34 -0
- package/dist/db/migrations/20261117090000_write_policy_kind_note.sql +65 -0
- package/dist/db/migrations/20261117120000_app_policy_principal.sql +48 -0
- package/dist/db/migrations/20261117170000_personal_org_connector_auto_policy_backfill.sql +57 -0
- package/dist/db/migrations/20261117190000_org_slug_reserved_paths.sql +29 -0
- package/dist/db/migrations/20261118120000_workspace_view_top_level_paths.sql +69 -0
- package/dist/db/migrations/preconditions/20261117190000_org_slug_reserved_paths.sql +14 -0
- package/dist/db/migrations/preconditions/20261118120000_workspace_view_top_level_paths.sql +21 -0
- package/dist/dependencies.bun.lock +51 -46
- package/dist/guest.bundle.js +11 -2
- package/dist/owletto/dist/assets/_-BC9j6MkU.js +2 -0
- package/dist/owletto/dist/assets/_-Z1u1cIe6.js +3 -0
- package/dist/owletto/dist/assets/_agentId-B-TFq9TP.js +2 -0
- package/dist/owletto/dist/assets/{_agentId-CGScf8z_.js → _agentId-BGatZWsd.js} +2 -2
- package/dist/owletto/dist/assets/_automationId-CMUrWPvr.js +2 -0
- package/dist/owletto/dist/assets/_connectorKey._connectionId-CUoAoP0_.js +2 -0
- package/dist/owletto/dist/assets/_connectorKey.index-Bs49QGGH.js +2 -0
- package/dist/owletto/dist/assets/_conversationId-CszP1den.js +2 -0
- package/dist/owletto/dist/assets/_eventId-C0AZUBnD.js +2 -0
- package/dist/owletto/dist/assets/_owner-B4ydA75k.js +3 -0
- package/dist/owletto/dist/assets/_shape-C4-ikE70.js +2 -0
- package/dist/owletto/dist/assets/_slug-DE5J3KVu.js +2 -0
- package/dist/owletto/dist/assets/_viewKey-Dkcd8JQC.js +2 -0
- package/dist/owletto/dist/assets/{accept-invitation-BKeIzZXE.js → accept-invitation-DmrQQu_W.js} +2 -2
- package/dist/owletto/dist/assets/{activity-route-location-sLvKaSCa.js → activity-route-location-Bec6fW-t.js} +2 -2
- package/dist/owletto/dist/assets/activity-route-view-DCSNBKZU.js +2 -0
- package/dist/owletto/dist/assets/agent-client-connections-xvabPpi6.js +4 -0
- package/dist/owletto/dist/assets/agent-connect-pages-DDPtkcmq.js +6 -0
- package/dist/owletto/dist/assets/{agent-editor-form-DVFyyMyd.js → agent-editor-form-BrhQbHZg.js} +2 -2
- package/dist/owletto/dist/assets/{agent-loading-shells-BLNHIy-r.js → agent-loading-shells-D3y98xuO.js} +2 -2
- package/dist/owletto/dist/assets/{agent-permissions-matrix-UBKRR5vs.js → agent-permissions-matrix-jQJjSa9i.js} +2 -2
- package/dist/owletto/dist/assets/{agent-skill-context-fqedKd0D.js → agent-skill-context-CCcknBYE.js} +2 -2
- package/dist/owletto/dist/assets/{agent-subpage-shell-BUCoY2Nf.js → agent-subpage-shell-6f_53cSf.js} +2 -2
- package/dist/owletto/dist/assets/agent-thread-v_lSSnJi.js +6 -0
- package/dist/owletto/dist/assets/{app._appId-ByIypCL9.js → app._appId-CKWzZ2ic.js} +2 -2
- package/dist/owletto/dist/assets/assist-composer-Q9ZJjAta.js +2 -0
- package/dist/owletto/dist/assets/automation-run-now-Dl0MKx3N.js +2 -0
- package/dist/owletto/dist/assets/{callback-Pz5uS-k7.js → callback-Bentv78L.js} +2 -2
- package/dist/owletto/dist/assets/{card-CAPpY9P5.js → card-C4oPCVh6.js} +2 -2
- package/dist/owletto/dist/assets/{claim-DgWWK0KI.js → claim-B3C4qIi2.js} +2 -2
- package/dist/owletto/dist/assets/client-activity-scopes-DqaFEyir.js +2 -0
- package/dist/owletto/dist/assets/{client-rows-Dd5YV8vn.js → client-rows-rse9thnk.js} +2 -2
- package/dist/owletto/dist/assets/{clients-Bf7ZgGro.js → clients-BhPMbxHi.js} +2 -2
- package/dist/owletto/dist/assets/{code-editor-z1Sy_hiX.js → code-editor-CTdKUDPY.js} +2 -2
- package/dist/owletto/dist/assets/connect-D8o7HBlo.js +2 -0
- package/dist/owletto/dist/assets/connect-menu-D5EZvSHb.js +2 -0
- package/dist/owletto/dist/assets/connect._clientId-Dbagcg9L.js +2 -0
- package/dist/owletto/dist/assets/connected._clientId-DALW9S2K.js +2 -0
- package/dist/owletto/dist/assets/connection-DyxzSqVE.js +2 -0
- package/dist/owletto/dist/assets/connection-feed-detail-LqpxUCdy.js +2 -0
- package/dist/owletto/dist/assets/{connector-page-shell-an3SYLim.js → connector-page-shell-DZjKv9zQ.js} +2 -2
- package/dist/owletto/dist/assets/{connector-provenance-mSZCOud-.js → connector-provenance-DtTJn1Nk.js} +2 -2
- package/dist/owletto/dist/assets/connectors-BVl-AR33.js +2 -0
- package/dist/owletto/dist/assets/{consent-1ulwyJ3k.js → consent-XCqsHLxS.js} +2 -2
- package/dist/owletto/dist/assets/{core.esm-Ctg_pXLe.js → core.esm-B1du4Zwy.js} +3 -3
- package/dist/owletto/dist/assets/create-BYKCtGL4.js +2 -0
- package/dist/owletto/dist/assets/create-D6Mmuxcq.js +2 -0
- package/dist/owletto/dist/assets/{create-CGuoqPh8.js → create-GHTb6wKX.js} +2 -2
- package/dist/owletto/dist/assets/{create-automation-form-CD6jSlWL.js → create-automation-form-CTiy_S9G.js} +3 -3
- package/dist/owletto/dist/assets/create._connectorKey-DMH97KkK.js +2 -0
- package/dist/owletto/dist/assets/custom-guardrail-edits-DZy66ucV.js +2 -0
- package/dist/owletto/dist/assets/definition-comparison-C2mPfIMD.js +2 -0
- package/dist/owletto/dist/assets/detail-page-skeleton-DNBL7nyk.js +2 -0
- package/dist/owletto/dist/assets/device-CwP1PY8q.js +2 -0
- package/dist/owletto/dist/assets/{device-pin-tombstone-Dkj7hrBE.js → device-pin-tombstone-DYTt7kU5.js} +2 -2
- package/dist/owletto/dist/assets/device._deviceId-DZ2kqI4Y.js +2 -0
- package/dist/owletto/dist/assets/{entity-options-D4t-NAcg.js → entity-options-D9K_5Lcs.js} +2 -2
- package/dist/owletto/dist/assets/entity-page-DggKXrcE.js +2 -0
- package/dist/owletto/dist/assets/entity-pages-C6M6yKFf.js +2 -0
- package/dist/owletto/dist/assets/{entity-schema-graph-Cq96SJ3c.js → entity-schema-graph-B255NKjF.js} +2 -2
- package/dist/owletto/dist/assets/entity-type-page-CGBAP2wt.js +2 -0
- package/dist/owletto/dist/assets/event-attachments-D8Z8uwv9.js +2 -0
- package/dist/owletto/dist/assets/event-detail-CgG3pDLA.js +2 -0
- package/dist/owletto/dist/assets/events-feed-ClhEywwV.js +2 -0
- package/dist/owletto/dist/assets/{filter-editors-DGVl9U4D.js → filter-editors-D_Sfn0dv.js} +3 -3
- package/dist/owletto/dist/assets/{full-page-spinner-CtVlF8GQ.js → full-page-spinner-C1clibUY.js} +2 -2
- package/dist/owletto/dist/assets/{index-CK5GDX4B.js → index-04B26s6E.js} +2 -2
- package/dist/owletto/dist/assets/index-2HrEO-nl.js +2 -0
- package/dist/owletto/dist/assets/index-BU3k9wpw.js +2 -0
- package/dist/owletto/dist/assets/{index-DvuJ_S_o.js → index-BXHqp23o.js} +2 -2
- package/dist/owletto/dist/assets/index-BdLRUDIR.js +2 -0
- package/dist/owletto/dist/assets/index-C2FrGwYN.js +2 -0
- package/dist/owletto/dist/assets/index-CB9wGfUm.js +2 -0
- package/dist/owletto/dist/assets/index-Caihaftb.js +2 -0
- package/dist/owletto/dist/assets/index-CwH59DJV.js +2 -0
- package/dist/owletto/dist/assets/index-DB2lVKuV.js +7908 -0
- package/dist/owletto/dist/assets/{index-DbjbHlDe.js → index-DTvJRjrM.js} +2 -2
- package/dist/owletto/dist/assets/index-SF2ni1Rs.css +1 -0
- package/dist/owletto/dist/assets/{index-BifR-LE9.js → index-mSrdbx3C.js} +9 -9
- package/dist/owletto/dist/assets/index-uFn-Ilrx.js +2 -0
- package/dist/owletto/dist/assets/{json-diff-OjtREegr.js → json-diff-Ce6YAXzY.js} +2 -2
- package/dist/owletto/dist/assets/{list-skeleton-CH0qQBYk.js → list-skeleton-DLPBTnbR.js} +2 -2
- package/dist/owletto/dist/assets/login-DeWlvogD.js +2 -0
- package/dist/owletto/dist/assets/{logout-DfdgOLoM.js → logout-CJY0ceN9.js} +2 -2
- package/dist/owletto/dist/assets/{member-scope-gate-Cxg2zGQT.js → member-scope-gate-CBPMprXu.js} +2 -2
- package/dist/owletto/dist/assets/memory-browse-page-D5kj1RaR.js +74 -0
- package/dist/owletto/dist/assets/{model-selector-D2OpDkwH.js → model-selector-CjkBPpjN.js} +2 -2
- package/dist/owletto/dist/assets/new-BKrNkOQD.js +2 -0
- package/dist/owletto/dist/assets/new-BetiMuDq.js +2 -0
- package/dist/owletto/dist/assets/new-dk_-eXqU.js +2 -0
- package/dist/owletto/dist/assets/new-efN--4Wx.js +2 -0
- package/dist/owletto/dist/assets/organization-C3rpwx_d.js +2 -0
- package/dist/owletto/dist/assets/pdf-document--AN-oCKj.css +1 -0
- package/dist/owletto/dist/assets/pdf-document-2W1q0sRA.js +56 -0
- package/dist/owletto/dist/assets/pdf.worker.min-CIqJB0yW.mjs +28 -0
- package/dist/owletto/dist/assets/peek-pane-content-ChsBWO0P.js +3 -0
- package/dist/owletto/dist/assets/{pending-seed-BBACroge.js → pending-seed-CTKYdA4X.js} +2 -2
- package/dist/owletto/dist/assets/proposal-review-shell-EyGWEYwQ.js +2 -0
- package/dist/owletto/dist/assets/public-shell-ready-_KWdfzEM.js +2 -0
- package/dist/owletto/dist/assets/record-session-D27VNxP_.js +2 -0
- package/dist/owletto/dist/assets/{renderer-CTKNMcXP.js → renderer-B8yZ5lql.js} +34 -33
- package/dist/owletto/dist/assets/{reset-password-DKBEneyR.js → reset-password-BGVJIh2I.js} +2 -2
- package/dist/owletto/dist/assets/run-initiator-C0sur8lU.js +2 -0
- package/dist/owletto/dist/assets/runs-list-CJOFMgpk.js +2 -0
- package/dist/owletto/dist/assets/schema-value-DDNHANGs.js +3 -0
- package/dist/owletto/dist/assets/{scoped-feed-bar-DNFL0sYX.js → scoped-feed-bar-BTv9mPcR.js} +2 -2
- package/dist/owletto/dist/assets/settings-Ponr5XbS.js +3 -0
- package/dist/owletto/dist/assets/{status-variants-SzXYYedJ.js → status-variants-mLqVhg5O.js} +2 -2
- package/dist/owletto/dist/assets/subDays-BGA_fkig.js +2 -0
- package/dist/owletto/dist/assets/two-factor-pqoxGSgL.js +2 -0
- package/dist/owletto/dist/assets/{use-automations-DfBtVzGa.js → use-automations-DcdlmVuX.js} +2 -2
- package/dist/owletto/dist/assets/{use-login-redirect-BDiS3eyl.js → use-login-redirect-D7HW5Ed6.js} +2 -2
- package/dist/owletto/dist/assets/{use-mention-search-khySpz_V.js → use-mention-search-BniE-K2d.js} +3 -3
- package/dist/owletto/dist/assets/view-card-Cg6PeEiV.js +2 -0
- package/dist/owletto/dist/assets/view-param-filters-CvrKw0mZ.js +2 -0
- package/dist/owletto/dist/index.html +2 -2
- package/dist/server-main.bundle.mjs +5718 -2991
- package/npm-shrinkwrap.json +195 -172
- package/package.json +2 -1
- package/vendor/connector-sdk/dist/connector-types.d.ts +20 -0
- package/vendor/connector-sdk/dist/define-connector.js +2 -0
- package/vendor/connector-sdk/dist/extension-dom-scrape.d.ts +2 -0
- package/vendor/connector-sdk/dist/extension-dom-scrape.js +5 -0
- package/vendor/connector-sdk/dist/reaction-client-types.d.ts +20 -0
- package/vendor/connector-sdk/package.json +1 -1
- package/vendor/core/dist/contracts/entity-reference.d.ts +2 -0
- package/vendor/core/dist/contracts/entity-reference.js +4 -3
- package/vendor/core/dist/contracts/tools/entity-list-sort.d.ts +18 -0
- package/vendor/core/dist/contracts/tools/entity-list-sort.js +64 -0
- package/vendor/core/dist/contracts/tools/manage-agents.d.ts +1 -1
- package/vendor/core/dist/contracts/tools/manage-agents.js +3 -3
- package/vendor/core/dist/contracts/tools/manage-entity-schema.d.ts +4 -0
- package/vendor/core/dist/contracts/tools/manage-entity-schema.js +4 -0
- package/vendor/core/dist/contracts/tools/manage-entity.d.ts +4 -0
- package/vendor/core/dist/contracts/tools/manage-entity.js +11 -1
- package/vendor/core/dist/contracts/tools/manage-operations.d.ts +29 -3
- package/vendor/core/dist/contracts/tools/manage-operations.js +24 -2
- package/vendor/core/dist/contracts/tools/manage-views.d.ts +36 -0
- package/vendor/core/dist/contracts/tools/manage-views.js +15 -2
- package/vendor/core/dist/contracts/tools/view-definition.js +7 -2
- package/vendor/core/dist/contracts/tools/view-host.js +5 -0
- package/vendor/core/dist/contracts/tools/view-path.d.ts +8 -1
- package/vendor/core/dist/contracts/tools/view-path.js +11 -1
- package/vendor/core/dist/reserved.d.ts +7 -1
- package/vendor/core/dist/reserved.js +17 -0
- package/vendor/core/package.json +6 -1
- package/vendor/views/dist/api.d.ts +19 -3
- package/vendor/views/dist/api.js +53 -5
- package/vendor/views/dist/components.d.ts +7 -0
- package/vendor/views/dist/components.js +223 -2
- package/vendor/views/dist/embed.js +13 -2
- package/vendor/views/dist/live-gate.d.ts +34 -0
- package/vendor/views/dist/live-gate.js +100 -0
- package/vendor/views/dist/native.d.ts +43 -1
- package/vendor/views/dist/native.js +1 -0
- package/vendor/views/package.json +1 -1
- package/dist/owletto/dist/assets/_-BDMUN9XZ.js +0 -2
- package/dist/owletto/dist/assets/_-CF5X4ANe.js +0 -3
- package/dist/owletto/dist/assets/_agentId-EQU2aUP0.js +0 -2
- package/dist/owletto/dist/assets/_automationId-PXZ33jsF.js +0 -2
- package/dist/owletto/dist/assets/_connectorKey._connectionId-DcI29kGy.js +0 -2
- package/dist/owletto/dist/assets/_connectorKey.index-Cr2NDJWX.js +0 -2
- package/dist/owletto/dist/assets/_conversationId-CnmLYlVS.js +0 -2
- package/dist/owletto/dist/assets/_eventId-w5sDz5oa.js +0 -2
- package/dist/owletto/dist/assets/_owner-CkOZR4n0.js +0 -3
- package/dist/owletto/dist/assets/_shape-C_FmSf9G.js +0 -2
- package/dist/owletto/dist/assets/_slug-COPpRXLt.js +0 -2
- package/dist/owletto/dist/assets/_viewKey-BVdJiilV.js +0 -2
- package/dist/owletto/dist/assets/_viewKey-mxxpqjtC.js +0 -2
- package/dist/owletto/dist/assets/activity-route-view-msesKUwn.js +0 -2
- package/dist/owletto/dist/assets/agent-connect-pages-DVq9nAR7.js +0 -4
- package/dist/owletto/dist/assets/agent-thread-Cqf9ITrT.js +0 -6
- package/dist/owletto/dist/assets/assist-composer-kG_heHXo.js +0 -2
- package/dist/owletto/dist/assets/automation-run-now-C5XTS00o.js +0 -2
- package/dist/owletto/dist/assets/client-activity-scopes-Aqdo6Pdr.js +0 -2
- package/dist/owletto/dist/assets/connect-BFNp1y_s.js +0 -2
- package/dist/owletto/dist/assets/connect-menu-BWrAhMqO.js +0 -2
- package/dist/owletto/dist/assets/connect._clientId-CSPfwYIN.js +0 -2
- package/dist/owletto/dist/assets/connected._clientId-CuOeHafK.js +0 -2
- package/dist/owletto/dist/assets/connection-CVeHmDLs.js +0 -2
- package/dist/owletto/dist/assets/connection-feed-detail-BYo7zdVD.js +0 -2
- package/dist/owletto/dist/assets/connectors-DBEM9QQz.js +0 -2
- package/dist/owletto/dist/assets/copy-button-Xhh7ZnjO.js +0 -2
- package/dist/owletto/dist/assets/create-Ccb5R-S4.js +0 -2
- package/dist/owletto/dist/assets/create-DmhbacIa.js +0 -2
- package/dist/owletto/dist/assets/create._connectorKey-CZsAqj1p.js +0 -2
- package/dist/owletto/dist/assets/custom-guardrail-edits-Ce_BwiwD.js +0 -2
- package/dist/owletto/dist/assets/definition-comparison-D_qP25jR.js +0 -2
- package/dist/owletto/dist/assets/detail-page-skeleton-CPAfZLG0.js +0 -2
- package/dist/owletto/dist/assets/device-DDl5XKvt.js +0 -2
- package/dist/owletto/dist/assets/device._deviceId-bNhTcops.js +0 -2
- package/dist/owletto/dist/assets/dynamic-schema-form-CRyUchXo.js +0 -2
- package/dist/owletto/dist/assets/entity-page-BOOL_vy3.js +0 -2
- package/dist/owletto/dist/assets/entity-pages-_nuesgnp.js +0 -2
- package/dist/owletto/dist/assets/entity-type-page-CkCSbkBx.js +0 -2
- package/dist/owletto/dist/assets/event-detail-DUvlqn9b.js +0 -2
- package/dist/owletto/dist/assets/events-feed-DcKTkJVe.js +0 -2
- package/dist/owletto/dist/assets/index-BUlkNJzX.js +0 -2
- package/dist/owletto/dist/assets/index-BoqrvLHQ.js +0 -7906
- package/dist/owletto/dist/assets/index-CA9mW_ZM.js +0 -2
- package/dist/owletto/dist/assets/index-CH0GzG4i.js +0 -2
- package/dist/owletto/dist/assets/index-CtI5Eomq.js +0 -2
- package/dist/owletto/dist/assets/index-DmtQ0bds.js +0 -2
- package/dist/owletto/dist/assets/index-Du_J8hnx.js +0 -2
- package/dist/owletto/dist/assets/index-Pae_f9LM.css +0 -1
- package/dist/owletto/dist/assets/index-XETZnN7L.js +0 -2
- package/dist/owletto/dist/assets/login-DG0b9uSC.js +0 -2
- package/dist/owletto/dist/assets/memory-browse-page-qEDQ9Z18.js +0 -74
- package/dist/owletto/dist/assets/missing-view-xT0B-f5z.js +0 -2
- package/dist/owletto/dist/assets/needs-you-list-3uMsWcDv.js +0 -2
- package/dist/owletto/dist/assets/new-AdGV6a8R.js +0 -2
- package/dist/owletto/dist/assets/new-BdtIhBpo.js +0 -2
- package/dist/owletto/dist/assets/new-BjGwX6s6.js +0 -2
- package/dist/owletto/dist/assets/new-D-iMjV74.js +0 -2
- package/dist/owletto/dist/assets/organization-qaIpEiQg.js +0 -2
- package/dist/owletto/dist/assets/peek-pane-content-CEsDVScl.js +0 -2
- package/dist/owletto/dist/assets/proposal-review-shell-C8ZfIAYn.js +0 -2
- package/dist/owletto/dist/assets/public-shell-ready-K2R8iXSI.js +0 -2
- package/dist/owletto/dist/assets/record-session-BrM9cdXu.js +0 -2
- package/dist/owletto/dist/assets/run-initiator-BKSgI1o0.js +0 -2
- package/dist/owletto/dist/assets/runs-k2NpbZm8.js +0 -2
- package/dist/owletto/dist/assets/runs-list-DUXRMkWN.js +0 -2
- package/dist/owletto/dist/assets/schema-value-wjqGxXhv.js +0 -3
- package/dist/owletto/dist/assets/settings-V0m5Om5j.js +0 -2
- package/dist/owletto/dist/assets/source-record-panels-BMut9YIA.js +0 -2
- package/dist/owletto/dist/assets/subDays-9s9OEl5t.js +0 -2
- package/dist/owletto/dist/assets/table-ZuYMOjVR.js +0 -2
- package/dist/owletto/dist/assets/view-card-DiHWlypr.js +0 -2
- package/dist/owletto/dist/assets/view-param-filters-DGKxSr7r.js +0 -2
- package/dist/owletto/dist/assets/views-access-required-HA-PiOwA.js +0 -2
|
@@ -44,14 +44,41 @@ import {
|
|
|
44
44
|
normalizeLinkedInSlug,
|
|
45
45
|
} from "./linkedin-identity.js";
|
|
46
46
|
import { setLinkedInLike } from "./linkedin-like.js";
|
|
47
|
+
import {
|
|
48
|
+
DAILY_CONNECTION_REQUEST_LIMIT,
|
|
49
|
+
listLinkedInSentInvitations,
|
|
50
|
+
removeLinkedInConnection,
|
|
51
|
+
sendLinkedInConnectionRequest,
|
|
52
|
+
setLinkedInFollow,
|
|
53
|
+
withdrawLinkedInConnectionRequest,
|
|
54
|
+
} from "./linkedin-network.js";
|
|
47
55
|
import {
|
|
48
56
|
observeLinkedInInbox,
|
|
57
|
+
lookupLinkedInConversations,
|
|
49
58
|
readLinkedInInbox,
|
|
50
59
|
sendLinkedInMessage,
|
|
60
|
+
syncLinkedInDirectMessages,
|
|
51
61
|
type LinkedInInboxCheckpoint,
|
|
52
62
|
} from "./linkedin-inbox.js";
|
|
53
63
|
import { prepareLinkedInDraft } from "./linkedin-drafts.js";
|
|
54
|
-
import {
|
|
64
|
+
import {
|
|
65
|
+
decodeLinkedInRedirect,
|
|
66
|
+
LinkedInInputError,
|
|
67
|
+
readLinkedInCompany,
|
|
68
|
+
readLinkedInProfile,
|
|
69
|
+
readSearchPage,
|
|
70
|
+
requiredText as requireLinkedInText,
|
|
71
|
+
runAction as runLinkedInReadAction,
|
|
72
|
+
searchLinkedInCompanies,
|
|
73
|
+
searchLinkedInPeople,
|
|
74
|
+
withLineBreaks,
|
|
75
|
+
} from "./linkedin-search.js";
|
|
76
|
+
import {
|
|
77
|
+
LINKEDIN_ALLOWED_ORIGINS,
|
|
78
|
+
LINKEDIN_HOME_URL,
|
|
79
|
+
LINKEDIN_LOGGED_OUT_ERROR,
|
|
80
|
+
LINKEDIN_LOGGED_OUT_WHEN,
|
|
81
|
+
} from "./linkedin-browser-script.js";
|
|
55
82
|
|
|
56
83
|
// ── Types ──────────────────────────────────────────────────────
|
|
57
84
|
|
|
@@ -184,6 +211,34 @@ const LINKEDIN_POST_AUTHOR_ATTRIBUTIONS: EventAttributionRule[] = [
|
|
|
184
211
|
LINKEDIN_COMPANY_AUTHOR_ATTRIBUTION,
|
|
185
212
|
];
|
|
186
213
|
|
|
214
|
+
/**
|
|
215
|
+
* Link every stored 1:1 message to the member on the other side, whoever sent
|
|
216
|
+
* it, so that person's page holds both sides of the conversation. The member
|
|
217
|
+
* id and slug match equal-weight, like a post author's, so a person known by
|
|
218
|
+
* either one is found and a sighting with both unions them. A real contact, so
|
|
219
|
+
* mint on no match.
|
|
220
|
+
*/
|
|
221
|
+
const LINKEDIN_DIRECT_MESSAGE_ATTRIBUTIONS: EventAttributionRule[] = [
|
|
222
|
+
{
|
|
223
|
+
role: "about",
|
|
224
|
+
autoCreate: true,
|
|
225
|
+
target: {
|
|
226
|
+
entityType: "person",
|
|
227
|
+
titlePath: "metadata.counterpart_name",
|
|
228
|
+
identities: [
|
|
229
|
+
{
|
|
230
|
+
namespace: LINKEDIN_IDENTITY.MEMBER_ID,
|
|
231
|
+
eventPath: "metadata.counterpart_member_id",
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
namespace: LINKEDIN_IDENTITY.SLUG,
|
|
235
|
+
eventPath: "metadata.counterpart_slug",
|
|
236
|
+
},
|
|
237
|
+
],
|
|
238
|
+
},
|
|
239
|
+
},
|
|
240
|
+
];
|
|
241
|
+
|
|
187
242
|
/**
|
|
188
243
|
* Attribute only people whose `linkedin_slug` was resolved from the row's
|
|
189
244
|
* profile links. The engine skips rules with no resolved identity, so a card
|
|
@@ -387,9 +442,6 @@ interface HomeFeedCommentCoverage {
|
|
|
387
442
|
timedOut?: boolean;
|
|
388
443
|
}
|
|
389
444
|
|
|
390
|
-
/** LinkedIn origins the cs_scrape window is allowed to touch. */
|
|
391
|
-
const LINKEDIN_ALLOWED_ORIGINS = ["linkedin.com", "*.linkedin.com"];
|
|
392
|
-
|
|
393
445
|
const HOME_FEED_COMMENT_COUNT_TEXT_SELECTOR =
|
|
394
446
|
':scope:not([id^="replaceableComment_"]) div:has(+ hr + div button[aria-label="Open reactions menu"]):not([id^="replaceableComment_"] *) > div:last-child > div:first-child, .social-details-social-counts__comments, .social-details-social-counts__comments-count';
|
|
395
447
|
const HOME_FEED_COMMENT_COUNT_LABEL_SELECTOR =
|
|
@@ -474,9 +526,7 @@ const HOME_FEED_SCRAPE_DEADLINE_MS = 25_000;
|
|
|
474
526
|
const HOME_FEED_SCRAPE_CONFIG = {
|
|
475
527
|
// Current LinkedIn pages scroll inside <main>, not document/window.
|
|
476
528
|
scroll: { max: 8, stall: 3, waitMs: 1500, deep: true },
|
|
477
|
-
loggedOutWhen:
|
|
478
|
-
pathRegex: "/(login|authwall|uas/login|checkpoint|signup)\\b",
|
|
479
|
-
},
|
|
529
|
+
loggedOutWhen: LINKEDIN_LOGGED_OUT_WHEN,
|
|
480
530
|
rowSelector:
|
|
481
531
|
'div[componentkey^="expanded"][componentkey*="FeedType_MAIN_FEED_RELEVANCE"], [id^="replaceableComment_urn:li:comment:"]',
|
|
482
532
|
expandRows: {
|
|
@@ -609,10 +659,11 @@ const HOME_FEED_SCRAPE_CONFIG = {
|
|
|
609
659
|
},
|
|
610
660
|
},
|
|
611
661
|
post_media: {
|
|
612
|
-
// Profile photos
|
|
662
|
+
// Profile photos (plain, "open to work" framed, backgrounds) and company
|
|
663
|
+
// logos are identities, not post attachments.
|
|
613
664
|
// The final :not keeps media inside a nested visible comment off the post.
|
|
614
665
|
selector:
|
|
615
|
-
':scope:not([id^="replaceableComment_"]) img[src*="media.licdn.com/dms/image/"]:not([src*="profile-
|
|
666
|
+
':scope:not([id^="replaceableComment_"]) img[src*="media.licdn.com/dms/image/"]:not([src*="/profile-"]):not([src*="company-logo"]):not([id^="replaceableComment_"] img)',
|
|
616
667
|
take: "objectAll",
|
|
617
668
|
parts: {
|
|
618
669
|
url: { take: "attr", attr: "src" },
|
|
@@ -621,7 +672,7 @@ const HOME_FEED_SCRAPE_CONFIG = {
|
|
|
621
672
|
},
|
|
622
673
|
comment_media: {
|
|
623
674
|
selector:
|
|
624
|
-
':scope[id^="replaceableComment_"] img[src*="media.licdn.com/dms/image/"]:not([src*="profile-
|
|
675
|
+
':scope[id^="replaceableComment_"] img[src*="media.licdn.com/dms/image/"]:not([src*="/profile-"]):not([src*="company-logo"])',
|
|
625
676
|
take: "objectAll",
|
|
626
677
|
parts: {
|
|
627
678
|
url: { take: "attr", attr: "src" },
|
|
@@ -771,8 +822,7 @@ async function readMyLinkedInActivity(
|
|
|
771
822
|
if (!profile.loggedIn) {
|
|
772
823
|
return {
|
|
773
824
|
success: false,
|
|
774
|
-
error:
|
|
775
|
-
"Not logged into LinkedIn. Sign in to linkedin.com in the paired Chrome profile, then retry.",
|
|
825
|
+
error: LINKEDIN_LOGGED_OUT_ERROR,
|
|
776
826
|
};
|
|
777
827
|
}
|
|
778
828
|
const slug = linkedInProfileSlugFromUrl(profile.landedUrl);
|
|
@@ -807,8 +857,7 @@ async function readMyLinkedInActivity(
|
|
|
807
857
|
if (!loggedIn) {
|
|
808
858
|
return {
|
|
809
859
|
success: false,
|
|
810
|
-
error:
|
|
811
|
-
"Not logged into LinkedIn. Sign in to linkedin.com in the paired Chrome profile, then retry.",
|
|
860
|
+
error: LINKEDIN_LOGGED_OUT_ERROR,
|
|
812
861
|
};
|
|
813
862
|
}
|
|
814
863
|
for (const event of buildHomeFeedEvents(rows, new Date())) {
|
|
@@ -875,8 +924,7 @@ async function readHomeFeed(ctx: ActionContext): Promise<ActionResult> {
|
|
|
875
924
|
if (!loggedIn) {
|
|
876
925
|
return {
|
|
877
926
|
success: false,
|
|
878
|
-
error:
|
|
879
|
-
"Not logged into LinkedIn. Sign in to linkedin.com in the paired Chrome profile, then retry.",
|
|
927
|
+
error: LINKEDIN_LOGGED_OUT_ERROR,
|
|
880
928
|
};
|
|
881
929
|
}
|
|
882
930
|
const items: Array<Record<string, unknown>> = [];
|
|
@@ -904,6 +952,319 @@ async function readHomeFeed(ctx: ActionContext): Promise<ActionResult> {
|
|
|
904
952
|
};
|
|
905
953
|
}
|
|
906
954
|
|
|
955
|
+
const SEARCH_POSTS_PAGE_SIZE = 10;
|
|
956
|
+
const SEARCH_POSTS_FEED_TYPE = "FeedType_FLAGSHIP_SEARCH";
|
|
957
|
+
/** "now", "3m", "2h", "5d", "1w", "3mo", "1yr", optionally "• Edited". */
|
|
958
|
+
const POSTED_TIME_RE = /^(?:now|\d+\s?(?:s|m|h|d|w|mo|y|yr)s?)(?:\s*•.*)?$/i;
|
|
959
|
+
|
|
960
|
+
type SearchPostRow = HomeFeedRow & {
|
|
961
|
+
lines?: Array<{ t?: string }>;
|
|
962
|
+
action_reactions?: string;
|
|
963
|
+
action_comments?: string;
|
|
964
|
+
action_reposts?: string;
|
|
965
|
+
author_badge?: string;
|
|
966
|
+
body_links?: Array<{ h?: string }>;
|
|
967
|
+
mentions?: Array<{ h?: string; t?: string }>;
|
|
968
|
+
body_html?: string;
|
|
969
|
+
video?: string;
|
|
970
|
+
};
|
|
971
|
+
|
|
972
|
+
/** Search cards print counts inside the action buttons ("\u200b" when none). */
|
|
973
|
+
function searchActionCount(raw: string | undefined): number {
|
|
974
|
+
return parseLinkedInCompactCount((raw ?? "").replace(/\u200b/g, ""));
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
* LinkedIn activity, share and ugcPost ids carry their creation time in the
|
|
979
|
+
* top 41 bits (milliseconds since the Unix epoch).
|
|
980
|
+
*/
|
|
981
|
+
export function linkedInPostedAt(postUrl: string): string | null {
|
|
982
|
+
const id = postUrl.match(/urn:li:(?:activity|share|ugcPost):(\d{16,20})/)?.[1];
|
|
983
|
+
if (!id) return null;
|
|
984
|
+
const ms = Number(BigInt(id) >> 22n);
|
|
985
|
+
return ms > Date.UTC(2003, 0, 1) && ms < Date.now() + 86_400_000
|
|
986
|
+
? new Date(ms).toISOString()
|
|
987
|
+
: null;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
// The body paragraph is the card's direct <p> after the "Feed post" heading;
|
|
991
|
+
// the author header's paragraphs live inside nested divs.
|
|
992
|
+
const SEARCH_POST_BODY = "h2 ~ p[componentkey]";
|
|
993
|
+
const SEARCH_POST_DEGREE_RE = /^[·•]\s*(1st|2nd|3rd)\+?$/i;
|
|
994
|
+
|
|
995
|
+
type SearchPostCard = {
|
|
996
|
+
posted: string;
|
|
997
|
+
edited: boolean;
|
|
998
|
+
headline: string | null;
|
|
999
|
+
degree: string | null;
|
|
1000
|
+
verified: boolean;
|
|
1001
|
+
premium: boolean;
|
|
1002
|
+
body?: string;
|
|
1003
|
+
reactions: number;
|
|
1004
|
+
comments: number;
|
|
1005
|
+
reposts: number;
|
|
1006
|
+
links: HomeFeedLink[];
|
|
1007
|
+
body_links: string[];
|
|
1008
|
+
mentions: Array<{ name: string; url: string }>;
|
|
1009
|
+
media: Array<Record<string, unknown>>;
|
|
1010
|
+
};
|
|
1011
|
+
|
|
1012
|
+
function searchPostCard(
|
|
1013
|
+
row: SearchPostRow,
|
|
1014
|
+
lines: string[],
|
|
1015
|
+
timeIndex: number
|
|
1016
|
+
): SearchPostCard {
|
|
1017
|
+
const degreeIndex = lines.findIndex((line) =>
|
|
1018
|
+
SEARCH_POST_DEGREE_RE.test(line)
|
|
1019
|
+
);
|
|
1020
|
+
// Between the name (or degree badge) and the posted time: the headline,
|
|
1021
|
+
// a follower count, or a creator's "Visit my website" link.
|
|
1022
|
+
const header = lines.slice(degreeIndex >= 0 ? degreeIndex + 1 : 1, timeIndex);
|
|
1023
|
+
const headline = header.find(
|
|
1024
|
+
(line) => line !== "Visit my website" && !/\bfollowers?$/i.test(line)
|
|
1025
|
+
);
|
|
1026
|
+
const badge = (row.author_badge ?? "").trim();
|
|
1027
|
+
const mentions = new Map<string, { name: string; url: string }>();
|
|
1028
|
+
for (const mention of row.mentions ?? []) {
|
|
1029
|
+
const url = normalizeLinkedInEntityUrl(mention.h ?? "");
|
|
1030
|
+
const name = (mention.t ?? "").replace(/\s+/g, " ").trim();
|
|
1031
|
+
if (url && name && !mentions.has(url)) mentions.set(url, { name, url });
|
|
1032
|
+
}
|
|
1033
|
+
const bodyLine = lines[timeIndex + 1]?.replace(/\s*…\s*more$/, "");
|
|
1034
|
+
const bodyLinks = [
|
|
1035
|
+
...new Set(
|
|
1036
|
+
(row.body_links ?? [])
|
|
1037
|
+
.map((link) => decodeLinkedInRedirect(link.h ?? ""))
|
|
1038
|
+
.filter((url): url is string => Boolean(url))
|
|
1039
|
+
),
|
|
1040
|
+
];
|
|
1041
|
+
return {
|
|
1042
|
+
posted: lines[timeIndex].replace(/\s*•.*$/, ""),
|
|
1043
|
+
edited: /\bEdited\b/i.test(lines[timeIndex]),
|
|
1044
|
+
headline: headline ?? null,
|
|
1045
|
+
degree:
|
|
1046
|
+
lines[degreeIndex]?.match(SEARCH_POST_DEGREE_RE)?.[1]?.toLowerCase() ??
|
|
1047
|
+
null,
|
|
1048
|
+
verified: /\bVerified\b/.test(badge),
|
|
1049
|
+
premium: /\bPremium\b/.test(badge),
|
|
1050
|
+
body:
|
|
1051
|
+
bodyLine === undefined
|
|
1052
|
+
? undefined
|
|
1053
|
+
: withLineBreaks(bodyLine, row.body_html),
|
|
1054
|
+
reactions: searchActionCount(row.action_reactions),
|
|
1055
|
+
comments: searchActionCount(row.action_comments),
|
|
1056
|
+
reposts: searchActionCount(row.action_reposts),
|
|
1057
|
+
links: row.links ?? [],
|
|
1058
|
+
body_links: bodyLinks,
|
|
1059
|
+
mentions: [...mentions.values()],
|
|
1060
|
+
media: searchPostMedia(row),
|
|
1061
|
+
};
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
/** Images, plus a video entry whose cover frame is its thumbnail. */
|
|
1065
|
+
function searchPostMedia(row: SearchPostRow): Array<Record<string, unknown>> {
|
|
1066
|
+
const images = normalizeHomeFeedMedia(row.post_media);
|
|
1067
|
+
if (!row.video) return images;
|
|
1068
|
+
const cover = images.find((image) =>
|
|
1069
|
+
String(image.url).includes("/videocover-")
|
|
1070
|
+
);
|
|
1071
|
+
return [
|
|
1072
|
+
...images.filter((image) => image !== cover),
|
|
1073
|
+
{ kind: "video", thumbnail_url: cover?.url ?? null },
|
|
1074
|
+
];
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
/** A mention's /in/, /company/ or /showcase/ link, without tracking params. */
|
|
1078
|
+
function normalizeLinkedInEntityUrl(href: string): string | null {
|
|
1079
|
+
let url: URL;
|
|
1080
|
+
try {
|
|
1081
|
+
url = new URL(href, "https://www.linkedin.com");
|
|
1082
|
+
} catch {
|
|
1083
|
+
return null;
|
|
1084
|
+
}
|
|
1085
|
+
const host = url.hostname;
|
|
1086
|
+
const match = url.pathname.match(/^\/(in|company|showcase|school)\/([^/]+)/);
|
|
1087
|
+
return (host === "linkedin.com" || host.endsWith(".linkedin.com")) && match
|
|
1088
|
+
? `https://www.linkedin.com/${match[1]}/${match[2]}/`
|
|
1089
|
+
: null;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
/**
|
|
1093
|
+
* Content search renders the same post cards as the home feed under its own
|
|
1094
|
+
* FeedType. LinkedIn ignores `page` on this surface and loads results by
|
|
1095
|
+
* infinite scroll, so page N scrolls until N pages of posts have rendered.
|
|
1096
|
+
*/
|
|
1097
|
+
async function searchLinkedInPosts(ctx: ActionContext): Promise<ActionResult> {
|
|
1098
|
+
return runLinkedInReadAction(ctx, (input) => {
|
|
1099
|
+
const keywords = requireLinkedInText(input, "keywords");
|
|
1100
|
+
const sort = input.sort ?? "relevant";
|
|
1101
|
+
if (sort !== "relevant" && sort !== "recent")
|
|
1102
|
+
throw new LinkedInInputError('sort must be "relevant" or "recent"');
|
|
1103
|
+
const page = readSearchPage(input);
|
|
1104
|
+
return async (dispatcher) => {
|
|
1105
|
+
const params = new URLSearchParams({
|
|
1106
|
+
keywords,
|
|
1107
|
+
origin: "GLOBAL_SEARCH_HEADER",
|
|
1108
|
+
sortBy: JSON.stringify([
|
|
1109
|
+
sort === "recent" ? "date_posted" : "relevance",
|
|
1110
|
+
]),
|
|
1111
|
+
});
|
|
1112
|
+
const url = `https://www.linkedin.com/search/results/content/?${params}`;
|
|
1113
|
+
// Each scroll loads about three more results; stall ends it early
|
|
1114
|
+
// once LinkedIn has no more.
|
|
1115
|
+
const baseConfig = myActivityScrapeConfig(
|
|
1116
|
+
SEARCH_POSTS_FEED_TYPE,
|
|
1117
|
+
page * 4 + 1
|
|
1118
|
+
);
|
|
1119
|
+
const { items: rows, loggedIn } = await extensionDomScrape<SearchPostRow>(
|
|
1120
|
+
{
|
|
1121
|
+
dispatcher,
|
|
1122
|
+
url,
|
|
1123
|
+
config: {
|
|
1124
|
+
...baseConfig,
|
|
1125
|
+
// Search results carry no inline comment rows worth reading.
|
|
1126
|
+
rowSelector: `div[componentkey^="expanded"][componentkey*="${SEARCH_POSTS_FEED_TYPE}"]`,
|
|
1127
|
+
fields: {
|
|
1128
|
+
...baseConfig.fields,
|
|
1129
|
+
lines: {
|
|
1130
|
+
selector: "p",
|
|
1131
|
+
take: "objectAll",
|
|
1132
|
+
parts: { t: { take: "text" } },
|
|
1133
|
+
},
|
|
1134
|
+
action_reactions: {
|
|
1135
|
+
selector: '[aria-label^="Reaction button state:"]',
|
|
1136
|
+
take: "text",
|
|
1137
|
+
},
|
|
1138
|
+
action_comments: {
|
|
1139
|
+
selector: '[aria-label="Comment"]',
|
|
1140
|
+
take: "text",
|
|
1141
|
+
},
|
|
1142
|
+
action_reposts: {
|
|
1143
|
+
selector: 'button[aria-label="Repost"]',
|
|
1144
|
+
take: "text",
|
|
1145
|
+
},
|
|
1146
|
+
// "Name Verified Profile 3rd+" / "Name Premium Profile 2nd".
|
|
1147
|
+
author_badge: {
|
|
1148
|
+
selector:
|
|
1149
|
+
'a[href*="/in/"] div[aria-label], a[href*="/company/"] div[aria-label]',
|
|
1150
|
+
take: "attr",
|
|
1151
|
+
attr: "aria-label",
|
|
1152
|
+
},
|
|
1153
|
+
body_links: {
|
|
1154
|
+
selector: `${SEARCH_POST_BODY} a[href*="/safety/go"]`,
|
|
1155
|
+
take: "objectAll",
|
|
1156
|
+
parts: { h: { take: "attr", attr: "href" } },
|
|
1157
|
+
},
|
|
1158
|
+
mentions: {
|
|
1159
|
+
selector: `${SEARCH_POST_BODY} a[href*="/in/"], ${SEARCH_POST_BODY} a[href*="/company/"], ${SEARCH_POST_BODY} a[href*="/showcase/"]`,
|
|
1160
|
+
take: "objectAll",
|
|
1161
|
+
parts: {
|
|
1162
|
+
h: { take: "attr", attr: "href" },
|
|
1163
|
+
t: { take: "text" },
|
|
1164
|
+
},
|
|
1165
|
+
},
|
|
1166
|
+
body_html: { selector: SEARCH_POST_BODY, take: "html" },
|
|
1167
|
+
video: {
|
|
1168
|
+
selector: '[aria-label="Video Player"]',
|
|
1169
|
+
take: "attr",
|
|
1170
|
+
attr: "aria-label",
|
|
1171
|
+
},
|
|
1172
|
+
},
|
|
1173
|
+
},
|
|
1174
|
+
parseRows: (raw) =>
|
|
1175
|
+
(raw as SearchPostRow[]).map((row) => ({
|
|
1176
|
+
...row,
|
|
1177
|
+
body: stripMyActivityChrome(row.body ?? ""),
|
|
1178
|
+
post_identity: decodeHomeFeedPostIdentity(row.post_identity),
|
|
1179
|
+
})),
|
|
1180
|
+
allowedOrigins: LINKEDIN_ALLOWED_ORIGINS,
|
|
1181
|
+
persistent: false,
|
|
1182
|
+
// Results load only while Chrome draws the page; a window behind
|
|
1183
|
+
// others stalled at 3 of 10 posts.
|
|
1184
|
+
focus: true,
|
|
1185
|
+
}
|
|
1186
|
+
);
|
|
1187
|
+
if (!loggedIn) return null;
|
|
1188
|
+
// Card paragraphs run author, degree, headline, posted time, then the
|
|
1189
|
+
// commentary; link previews and dialog chrome follow it.
|
|
1190
|
+
const cards = new Map<string, SearchPostCard>();
|
|
1191
|
+
for (const row of rows) {
|
|
1192
|
+
const postUrl = normalizeLinkedInPostUrl(row.post_identity ?? "");
|
|
1193
|
+
const lines = (row.lines ?? []).map((line) =>
|
|
1194
|
+
(line?.t ?? "").replace(/\s+/g, " ").trim()
|
|
1195
|
+
);
|
|
1196
|
+
const timeIndex = lines.findIndex((line) => POSTED_TIME_RE.test(line));
|
|
1197
|
+
if (!postUrl || timeIndex < 0 || cards.has(postUrl)) continue;
|
|
1198
|
+
cards.set(postUrl, searchPostCard(row, lines, timeIndex));
|
|
1199
|
+
}
|
|
1200
|
+
const posts = buildHomeFeedEvents(rows, new Date())
|
|
1201
|
+
.filter((event) => event.origin_type === "post" && event.source_url)
|
|
1202
|
+
.slice(
|
|
1203
|
+
(page - 1) * SEARCH_POSTS_PAGE_SIZE,
|
|
1204
|
+
page * SEARCH_POSTS_PAGE_SIZE
|
|
1205
|
+
)
|
|
1206
|
+
.map((event) => {
|
|
1207
|
+
const postUrl = event.source_url ?? "";
|
|
1208
|
+
const metadata = (event.metadata ?? {}) as Record<string, unknown>;
|
|
1209
|
+
const card = cards.get(postUrl);
|
|
1210
|
+
const counter = (key: "reactions" | "comments" | "reposts") =>
|
|
1211
|
+
Math.max(
|
|
1212
|
+
typeof metadata[key] === "number" ? metadata[key] : 0,
|
|
1213
|
+
card?.[key] ?? 0
|
|
1214
|
+
);
|
|
1215
|
+
const author = event.author_name ?? null;
|
|
1216
|
+
// Search cards label some author links "View <Name>’ profile",
|
|
1217
|
+
// which the feed's name matcher does not pair with the author.
|
|
1218
|
+
const authorSlug =
|
|
1219
|
+
author &&
|
|
1220
|
+
!metadata.author_profile_url &&
|
|
1221
|
+
!metadata.author_company_url
|
|
1222
|
+
? card?.links
|
|
1223
|
+
.filter((link) => link.name?.includes(author))
|
|
1224
|
+
.map((link) => normalizeLinkedInSlug(link.href))
|
|
1225
|
+
.find(Boolean)
|
|
1226
|
+
: undefined;
|
|
1227
|
+
const profileUrl =
|
|
1228
|
+
typeof metadata.author_profile_url === "string"
|
|
1229
|
+
? metadata.author_profile_url
|
|
1230
|
+
: authorSlug
|
|
1231
|
+
? `https://www.linkedin.com/in/${authorSlug}`
|
|
1232
|
+
: null;
|
|
1233
|
+
const body = card?.body ?? event.payload_text ?? "";
|
|
1234
|
+
return {
|
|
1235
|
+
post_url: postUrl,
|
|
1236
|
+
posted_at: linkedInPostedAt(postUrl),
|
|
1237
|
+
posted_time: card?.posted ?? null,
|
|
1238
|
+
edited: card?.edited ?? false,
|
|
1239
|
+
author: {
|
|
1240
|
+
name: author,
|
|
1241
|
+
headline: card?.headline ?? null,
|
|
1242
|
+
profile_url: profileUrl,
|
|
1243
|
+
company_url:
|
|
1244
|
+
typeof metadata.author_company_url === "string"
|
|
1245
|
+
? metadata.author_company_url
|
|
1246
|
+
: null,
|
|
1247
|
+
degree: card?.degree ?? null,
|
|
1248
|
+
verified: card?.verified ?? false,
|
|
1249
|
+
premium: card?.premium ?? false,
|
|
1250
|
+
},
|
|
1251
|
+
body,
|
|
1252
|
+
hashtags: [
|
|
1253
|
+
...new Set(body.match(/#[\p{L}\p{N}_]+/gu) ?? []),
|
|
1254
|
+
],
|
|
1255
|
+
mentions: card?.mentions ?? [],
|
|
1256
|
+
links: card?.body_links ?? [],
|
|
1257
|
+
media: card?.media ?? [],
|
|
1258
|
+
reactions: counter("reactions"),
|
|
1259
|
+
comments: counter("comments"),
|
|
1260
|
+
reposts: counter("reposts"),
|
|
1261
|
+
};
|
|
1262
|
+
});
|
|
1263
|
+
return { page, sort, search_url: url, count: posts.length, posts };
|
|
1264
|
+
};
|
|
1265
|
+
});
|
|
1266
|
+
}
|
|
1267
|
+
|
|
907
1268
|
/**
|
|
908
1269
|
* Best-effort author extraction from a home-feed row's body text. Social
|
|
909
1270
|
* context appears before the post author in two shapes: actor banners name an
|
|
@@ -1409,7 +1770,7 @@ function normalizeHomeFeedMedia(raw: unknown): Array<Record<string, unknown>> {
|
|
|
1409
1770
|
url.hostname === "media.licdn.com" ||
|
|
1410
1771
|
url.hostname.endsWith(".licdn.com")
|
|
1411
1772
|
) ||
|
|
1412
|
-
|
|
1773
|
+
/\/(?:profile-|company-logo)/i.test(url.pathname) ||
|
|
1413
1774
|
seen.has(url.href)
|
|
1414
1775
|
) {
|
|
1415
1776
|
continue;
|
|
@@ -2829,8 +3190,8 @@ export default class LinkedInConnector extends ConnectorRuntime<
|
|
|
2829
3190
|
key: "linkedin",
|
|
2830
3191
|
name: "LinkedIn",
|
|
2831
3192
|
description:
|
|
2832
|
-
"Read LinkedIn feeds, notifications, and recent inbox messages through paired Chrome. Subscribe to source changes, answer direct messages, and prepare message, post, or comment drafts for human submission.",
|
|
2833
|
-
version: "3.
|
|
3193
|
+
"Read LinkedIn feeds, notifications, and recent inbox messages through paired Chrome. Subscribe to source changes, store 1:1 message history on the people you talk to, answer direct messages, manage your network (connection requests, follows), and prepare message, post, or comment drafts for human submission.",
|
|
3194
|
+
version: "3.25.0",
|
|
2834
3195
|
faviconDomain: "linkedin.com",
|
|
2835
3196
|
// Live feeds bind a signed-in Chrome account.
|
|
2836
3197
|
browser: {
|
|
@@ -2906,6 +3267,7 @@ export default class LinkedInConnector extends ConnectorRuntime<
|
|
|
2906
3267
|
description:
|
|
2907
3268
|
"Catch-up reached the end of what LinkedIn exposes, so earlier changes at this conversation or notification position may be missing.",
|
|
2908
3269
|
},
|
|
3270
|
+
{ key: "message", label: "Direct Message" },
|
|
2909
3271
|
{ key: "post", label: "Post" },
|
|
2910
3272
|
{ key: "comment", label: "Comment" },
|
|
2911
3273
|
{ key: "job_posting", label: "Job Posting" },
|
|
@@ -2950,6 +3312,43 @@ export default class LinkedInConnector extends ConnectorRuntime<
|
|
|
2950
3312
|
},
|
|
2951
3313
|
},
|
|
2952
3314
|
},
|
|
3315
|
+
direct_messages: {
|
|
3316
|
+
sync: (ctx) => syncLinkedInDirectMessages(ctx),
|
|
3317
|
+
key: "direct_messages",
|
|
3318
|
+
name: "Direct Messages",
|
|
3319
|
+
description:
|
|
3320
|
+
"Store your 1:1 inbox messages, both sides, on the person you are talking to; group conversations are skipped. Runs only on the feed's schedule or a manual run, never by itself. Each run reads one page of conversations without marking anything seen, from the most recent activity down to what the previous pass stored (at most five pages), and keeps each changed conversation's recent message page, not its full history.",
|
|
3321
|
+
eventKinds: {
|
|
3322
|
+
message: {
|
|
3323
|
+
description: "A message in a 1:1 LinkedIn conversation",
|
|
3324
|
+
attributions: LINKEDIN_DIRECT_MESSAGE_ATTRIBUTIONS,
|
|
3325
|
+
metadataSchema: {
|
|
3326
|
+
type: "object",
|
|
3327
|
+
properties: {
|
|
3328
|
+
conversation_id: { type: "string" },
|
|
3329
|
+
content_kind: {
|
|
3330
|
+
type: "string",
|
|
3331
|
+
description: "text, media (attachments) or revoked (recalled).",
|
|
3332
|
+
},
|
|
3333
|
+
has_attachments: { type: "boolean" },
|
|
3334
|
+
from_me: {
|
|
3335
|
+
type: "boolean",
|
|
3336
|
+
description: "Whether the signed-in member sent the message.",
|
|
3337
|
+
},
|
|
3338
|
+
sender_member_id: { type: "string" },
|
|
3339
|
+
sender_slug: { type: "string" },
|
|
3340
|
+
sender_name: { type: "string" },
|
|
3341
|
+
counterpart_member_id: {
|
|
3342
|
+
type: "string",
|
|
3343
|
+
description: "Member id of the person on the other side.",
|
|
3344
|
+
},
|
|
3345
|
+
counterpart_slug: { type: "string" },
|
|
3346
|
+
counterpart_name: { type: "string" },
|
|
3347
|
+
},
|
|
3348
|
+
},
|
|
3349
|
+
},
|
|
3350
|
+
},
|
|
3351
|
+
},
|
|
2953
3352
|
home_feed: {
|
|
2954
3353
|
sync: (ctx) => this.syncFeed(ctx),
|
|
2955
3354
|
key: "home_feed",
|
|
@@ -3103,12 +3502,230 @@ export default class LinkedInConnector extends ConnectorRuntime<
|
|
|
3103
3502
|
additionalProperties: false,
|
|
3104
3503
|
},
|
|
3105
3504
|
},
|
|
3505
|
+
send_connection_request: {
|
|
3506
|
+
key: "send_connection_request",
|
|
3507
|
+
name: "Send connection request",
|
|
3508
|
+
kind: "write",
|
|
3509
|
+
description:
|
|
3510
|
+
`Send a LinkedIn connection request to one member, with an optional note, and verify it is pending after reload. A member already connected or with a pending request is unchanged. Refuses when LinkedIn offers no Connect option (code not_connectable), asks for the member's email and none was given (email_required), or reports its own invitation limit (invitation_limit_reached), and stops at ${DAILY_CONNECTION_REQUEST_LIMIT} requests per account per UTC day from one browser (daily_limit_reached). Choosing whom to invite belongs to the calling Automation or agent.`,
|
|
3511
|
+
annotations: {
|
|
3512
|
+
openWorldHint: true,
|
|
3513
|
+
destructiveHint: false,
|
|
3514
|
+
idempotentHint: true,
|
|
3515
|
+
},
|
|
3516
|
+
inputSchema: {
|
|
3517
|
+
type: "object",
|
|
3518
|
+
required: ["profile_url"],
|
|
3519
|
+
additionalProperties: false,
|
|
3520
|
+
properties: {
|
|
3521
|
+
profile_url: {
|
|
3522
|
+
type: "string",
|
|
3523
|
+
format: "uri",
|
|
3524
|
+
title: "Profile",
|
|
3525
|
+
description:
|
|
3526
|
+
"The member's LinkedIn profile URL, e.g. https://www.linkedin.com/in/<slug>/.",
|
|
3527
|
+
},
|
|
3528
|
+
note: {
|
|
3529
|
+
type: "string",
|
|
3530
|
+
title: "Note",
|
|
3531
|
+
maxLength: 300,
|
|
3532
|
+
"x-multiline": true,
|
|
3533
|
+
description: "Optional personal note sent with the invitation.",
|
|
3534
|
+
},
|
|
3535
|
+
email: {
|
|
3536
|
+
type: "string",
|
|
3537
|
+
title: "Email",
|
|
3538
|
+
maxLength: 254,
|
|
3539
|
+
description:
|
|
3540
|
+
"The member's email address, only when LinkedIn requires it to connect.",
|
|
3541
|
+
},
|
|
3542
|
+
},
|
|
3543
|
+
},
|
|
3544
|
+
outputSchema: {
|
|
3545
|
+
type: "object",
|
|
3546
|
+
properties: {
|
|
3547
|
+
url: { type: "string" },
|
|
3548
|
+
name: { type: "string" },
|
|
3549
|
+
relation: {
|
|
3550
|
+
type: "string",
|
|
3551
|
+
enum: ["connected", "pending", "none", "unavailable"],
|
|
3552
|
+
},
|
|
3553
|
+
degree: { type: ["string", "null"] },
|
|
3554
|
+
following: { type: ["boolean", "null"] },
|
|
3555
|
+
changed: { type: "boolean" },
|
|
3556
|
+
verified: { type: "boolean" },
|
|
3557
|
+
requests_sent_today: { type: "number" },
|
|
3558
|
+
},
|
|
3559
|
+
},
|
|
3560
|
+
},
|
|
3561
|
+
withdraw_connection_request: {
|
|
3562
|
+
key: "withdraw_connection_request",
|
|
3563
|
+
name: "Withdraw connection request",
|
|
3564
|
+
kind: "write",
|
|
3565
|
+
description:
|
|
3566
|
+
"Withdraw the pending LinkedIn connection request sent to one member and verify it is gone after reload. A member without a pending request is unchanged. LinkedIn may block re-inviting the same member for a few weeks after a withdrawal.",
|
|
3567
|
+
annotations: {
|
|
3568
|
+
openWorldHint: true,
|
|
3569
|
+
destructiveHint: true,
|
|
3570
|
+
idempotentHint: true,
|
|
3571
|
+
},
|
|
3572
|
+
inputSchema: {
|
|
3573
|
+
type: "object",
|
|
3574
|
+
required: ["profile_url"],
|
|
3575
|
+
additionalProperties: false,
|
|
3576
|
+
properties: {
|
|
3577
|
+
profile_url: {
|
|
3578
|
+
type: "string",
|
|
3579
|
+
format: "uri",
|
|
3580
|
+
title: "Profile",
|
|
3581
|
+
description:
|
|
3582
|
+
"The member's LinkedIn profile URL, e.g. https://www.linkedin.com/in/<slug>/.",
|
|
3583
|
+
},
|
|
3584
|
+
},
|
|
3585
|
+
},
|
|
3586
|
+
outputSchema: {
|
|
3587
|
+
type: "object",
|
|
3588
|
+
properties: {
|
|
3589
|
+
url: { type: "string" },
|
|
3590
|
+
name: { type: "string" },
|
|
3591
|
+
relation: {
|
|
3592
|
+
type: "string",
|
|
3593
|
+
enum: ["connected", "pending", "none", "unavailable"],
|
|
3594
|
+
},
|
|
3595
|
+
degree: { type: ["string", "null"] },
|
|
3596
|
+
following: { type: ["boolean", "null"] },
|
|
3597
|
+
changed: { type: "boolean" },
|
|
3598
|
+
verified: { type: "boolean" },
|
|
3599
|
+
},
|
|
3600
|
+
},
|
|
3601
|
+
},
|
|
3602
|
+
remove_connection: {
|
|
3603
|
+
key: "remove_connection",
|
|
3604
|
+
name: "Remove connection",
|
|
3605
|
+
kind: "write",
|
|
3606
|
+
description:
|
|
3607
|
+
"Remove one member from your LinkedIn connections and verify after reload. A member who is not a connection is unchanged. The member is not notified; reconnecting needs a new request they must accept.",
|
|
3608
|
+
annotations: {
|
|
3609
|
+
openWorldHint: true,
|
|
3610
|
+
destructiveHint: true,
|
|
3611
|
+
idempotentHint: true,
|
|
3612
|
+
},
|
|
3613
|
+
inputSchema: {
|
|
3614
|
+
type: "object",
|
|
3615
|
+
required: ["profile_url"],
|
|
3616
|
+
additionalProperties: false,
|
|
3617
|
+
properties: {
|
|
3618
|
+
profile_url: {
|
|
3619
|
+
type: "string",
|
|
3620
|
+
format: "uri",
|
|
3621
|
+
title: "Profile",
|
|
3622
|
+
description:
|
|
3623
|
+
"The member's LinkedIn profile URL, e.g. https://www.linkedin.com/in/<slug>/.",
|
|
3624
|
+
},
|
|
3625
|
+
},
|
|
3626
|
+
},
|
|
3627
|
+
outputSchema: {
|
|
3628
|
+
type: "object",
|
|
3629
|
+
properties: {
|
|
3630
|
+
url: { type: "string" },
|
|
3631
|
+
name: { type: "string" },
|
|
3632
|
+
relation: {
|
|
3633
|
+
type: "string",
|
|
3634
|
+
enum: ["connected", "pending", "none", "unavailable"],
|
|
3635
|
+
},
|
|
3636
|
+
degree: { type: ["string", "null"] },
|
|
3637
|
+
following: { type: ["boolean", "null"] },
|
|
3638
|
+
changed: { type: "boolean" },
|
|
3639
|
+
verified: { type: "boolean" },
|
|
3640
|
+
},
|
|
3641
|
+
},
|
|
3642
|
+
},
|
|
3643
|
+
set_follow: {
|
|
3644
|
+
key: "set_follow",
|
|
3645
|
+
name: "Set follow",
|
|
3646
|
+
kind: "write",
|
|
3647
|
+
description:
|
|
3648
|
+
"Follow or unfollow one LinkedIn member or company page as the connected account and verify it after reload. An already-matching target is unchanged. Following never sends a connection request. Selection and budgets belong to the calling Automation or agent.",
|
|
3649
|
+
annotations: {
|
|
3650
|
+
openWorldHint: true,
|
|
3651
|
+
destructiveHint: false,
|
|
3652
|
+
idempotentHint: true,
|
|
3653
|
+
},
|
|
3654
|
+
inputSchema: {
|
|
3655
|
+
type: "object",
|
|
3656
|
+
required: ["target_url", "following"],
|
|
3657
|
+
additionalProperties: false,
|
|
3658
|
+
properties: {
|
|
3659
|
+
target_url: {
|
|
3660
|
+
type: "string",
|
|
3661
|
+
format: "uri",
|
|
3662
|
+
title: "Member or company",
|
|
3663
|
+
description:
|
|
3664
|
+
"A LinkedIn member profile (https://www.linkedin.com/in/<slug>/) or company page (https://www.linkedin.com/company/<slug>/) URL.",
|
|
3665
|
+
},
|
|
3666
|
+
following: { type: "boolean" },
|
|
3667
|
+
},
|
|
3668
|
+
},
|
|
3669
|
+
outputSchema: {
|
|
3670
|
+
type: "object",
|
|
3671
|
+
properties: {
|
|
3672
|
+
url: { type: "string" },
|
|
3673
|
+
name: { type: "string" },
|
|
3674
|
+
relation: {
|
|
3675
|
+
type: "string",
|
|
3676
|
+
enum: ["connected", "pending", "none", "unavailable"],
|
|
3677
|
+
},
|
|
3678
|
+
degree: { type: ["string", "null"] },
|
|
3679
|
+
following: { type: ["boolean", "null"] },
|
|
3680
|
+
changed: { type: "boolean" },
|
|
3681
|
+
verified: { type: "boolean" },
|
|
3682
|
+
},
|
|
3683
|
+
},
|
|
3684
|
+
},
|
|
3685
|
+
list_sent_invitations: {
|
|
3686
|
+
key: "list_sent_invitations",
|
|
3687
|
+
name: "List sent invitations",
|
|
3688
|
+
kind: "read",
|
|
3689
|
+
description:
|
|
3690
|
+
"List the connection requests you have sent that are still pending, newest first: member name, headline, profile URL and when it was sent, read from LinkedIn's sent-invitations page in the paired Chrome browser. Read-only.",
|
|
3691
|
+
annotations: {
|
|
3692
|
+
openWorldHint: true,
|
|
3693
|
+
destructiveHint: false,
|
|
3694
|
+
idempotentHint: true,
|
|
3695
|
+
},
|
|
3696
|
+
inputSchema: {
|
|
3697
|
+
type: "object",
|
|
3698
|
+
additionalProperties: false,
|
|
3699
|
+
properties: {
|
|
3700
|
+
limit: { type: "integer", minimum: 1, maximum: 200, default: 50 },
|
|
3701
|
+
},
|
|
3702
|
+
},
|
|
3703
|
+
outputSchema: {
|
|
3704
|
+
type: "object",
|
|
3705
|
+
properties: {
|
|
3706
|
+
invitations: {
|
|
3707
|
+
type: "array",
|
|
3708
|
+
items: {
|
|
3709
|
+
type: "object",
|
|
3710
|
+
properties: {
|
|
3711
|
+
name: { type: "string" },
|
|
3712
|
+
headline: { type: ["string", "null"] },
|
|
3713
|
+
profile_url: { type: ["string", "null"] },
|
|
3714
|
+
sent: { type: ["string", "null"] },
|
|
3715
|
+
},
|
|
3716
|
+
},
|
|
3717
|
+
},
|
|
3718
|
+
total: { type: ["number", "null"] },
|
|
3719
|
+
truncated: { type: "boolean" },
|
|
3720
|
+
},
|
|
3721
|
+
},
|
|
3722
|
+
},
|
|
3106
3723
|
send_message: {
|
|
3107
3724
|
key: "send_message",
|
|
3108
3725
|
name: "Send direct message reply",
|
|
3109
3726
|
kind: "write",
|
|
3110
3727
|
description:
|
|
3111
|
-
"Send a text reply into an exact existing LinkedIn direct-message conversation and confirm it appears there. Pass a member-inbox row's thread_id, or a row's full conversation_id to reply from the inbox the message came from (a company page the signed-in member administers). This direct send is approved only for answering direct messages on accounts the owner operates; group conversations are refused, and posts, comments and other messages stay draft-only through prepare_message, prepare_post and prepare_comment.
|
|
3728
|
+
"Send a text reply into an exact existing LinkedIn direct-message conversation and confirm it appears there. Pass a member-inbox row's thread_id, or a row's full conversation_id to reply from the inbox the message came from (a company page the signed-in member administers). This direct send is approved only for answering direct messages on accounts the owner operates; group conversations are refused, and posts, comments and other messages stay draft-only through prepare_message, prepare_post and prepare_comment. Sends at most once per operation run: repeating operations.execute with the same idempotency_key returns that run's result instead of sending again. A run that fails because delivery is uncertain is not retried; check the conversation before starting a new send.",
|
|
3112
3729
|
annotations: {
|
|
3113
3730
|
openWorldHint: true,
|
|
3114
3731
|
destructiveHint: false,
|
|
@@ -3116,7 +3733,7 @@ export default class LinkedInConnector extends ConnectorRuntime<
|
|
|
3116
3733
|
},
|
|
3117
3734
|
inputSchema: {
|
|
3118
3735
|
type: "object",
|
|
3119
|
-
required: ["conversation_id", "text"
|
|
3736
|
+
required: ["conversation_id", "text"],
|
|
3120
3737
|
additionalProperties: false,
|
|
3121
3738
|
properties: {
|
|
3122
3739
|
conversation_id: {
|
|
@@ -3124,15 +3741,61 @@ export default class LinkedInConnector extends ConnectorRuntime<
|
|
|
3124
3741
|
pattern:
|
|
3125
3742
|
"^(?:[A-Za-z0-9_-]+=*|urn:li:msg_conversation:\\((?:urn:li:fsd_profile:[A-Za-z0-9_-]+|urn:li:fsd_pageMailbox:[0-9]+),[A-Za-z0-9_-]+=*\\))$",
|
|
3126
3743
|
maxLength: 500,
|
|
3744
|
+
title: "Conversation",
|
|
3127
3745
|
description:
|
|
3128
3746
|
"The row's thread_id (the member's own inbox) or its full conversation_id (the inbox it names).",
|
|
3747
|
+
"x-lookup": { operation: "lookup_conversations" },
|
|
3129
3748
|
},
|
|
3130
|
-
text: {
|
|
3131
|
-
idempotency_key: {
|
|
3749
|
+
text: {
|
|
3132
3750
|
type: "string",
|
|
3751
|
+
title: "Message",
|
|
3133
3752
|
minLength: 1,
|
|
3134
|
-
maxLength:
|
|
3135
|
-
|
|
3753
|
+
maxLength: 3000,
|
|
3754
|
+
"x-multiline": true,
|
|
3755
|
+
},
|
|
3756
|
+
},
|
|
3757
|
+
},
|
|
3758
|
+
},
|
|
3759
|
+
lookup_conversations: {
|
|
3760
|
+
key: "lookup_conversations",
|
|
3761
|
+
name: "Look up conversations",
|
|
3762
|
+
description:
|
|
3763
|
+
"Show LinkedIn direct-message conversations as the person on the other side: name, headline and profile photo, read from the conversation list in the paired Chrome browser. Pass values (thread_id or full conversation_id, as send_message takes) to resolve those conversations, query to match a person's name among recent member-inbox conversations, or neither for the recent ones. Group conversations and values not found among recent conversations are left out. Read-only.",
|
|
3764
|
+
kind: "read",
|
|
3765
|
+
annotations: {
|
|
3766
|
+
openWorldHint: true,
|
|
3767
|
+
destructiveHint: false,
|
|
3768
|
+
idempotentHint: true,
|
|
3769
|
+
},
|
|
3770
|
+
inputSchema: {
|
|
3771
|
+
type: "object",
|
|
3772
|
+
additionalProperties: false,
|
|
3773
|
+
properties: {
|
|
3774
|
+
values: {
|
|
3775
|
+
type: "array",
|
|
3776
|
+
maxItems: 20,
|
|
3777
|
+
items: { type: "string", maxLength: 500 },
|
|
3778
|
+
},
|
|
3779
|
+
query: { type: "string", maxLength: 200 },
|
|
3780
|
+
},
|
|
3781
|
+
},
|
|
3782
|
+
outputSchema: {
|
|
3783
|
+
type: "object",
|
|
3784
|
+
required: ["items"],
|
|
3785
|
+
properties: {
|
|
3786
|
+
items: {
|
|
3787
|
+
type: "array",
|
|
3788
|
+
maxItems: 20,
|
|
3789
|
+
items: {
|
|
3790
|
+
type: "object",
|
|
3791
|
+
required: ["value", "label"],
|
|
3792
|
+
properties: {
|
|
3793
|
+
value: { type: "string" },
|
|
3794
|
+
label: { type: "string" },
|
|
3795
|
+
description: { type: "string" },
|
|
3796
|
+
image_url: { type: "string", format: "uri" },
|
|
3797
|
+
},
|
|
3798
|
+
},
|
|
3136
3799
|
},
|
|
3137
3800
|
},
|
|
3138
3801
|
},
|
|
@@ -3154,7 +3817,7 @@ export default class LinkedInConnector extends ConnectorRuntime<
|
|
|
3154
3817
|
additionalProperties: false,
|
|
3155
3818
|
properties: {
|
|
3156
3819
|
conversation_url: { type: "string", format: "uri" },
|
|
3157
|
-
body: { type: "string", minLength: 1, maxLength: 3000 },
|
|
3820
|
+
body: { type: "string", minLength: 1, maxLength: 3000, "x-multiline": true },
|
|
3158
3821
|
},
|
|
3159
3822
|
},
|
|
3160
3823
|
},
|
|
@@ -3173,7 +3836,7 @@ export default class LinkedInConnector extends ConnectorRuntime<
|
|
|
3173
3836
|
required: ["body"],
|
|
3174
3837
|
additionalProperties: false,
|
|
3175
3838
|
properties: {
|
|
3176
|
-
body: { type: "string", minLength: 1, maxLength: 3000 },
|
|
3839
|
+
body: { type: "string", minLength: 1, maxLength: 3000, "x-multiline": true },
|
|
3177
3840
|
},
|
|
3178
3841
|
},
|
|
3179
3842
|
},
|
|
@@ -3212,6 +3875,7 @@ export default class LinkedInConnector extends ConnectorRuntime<
|
|
|
3212
3875
|
"Draft comment text. Left in the composer for the user to edit/send.",
|
|
3213
3876
|
minLength: 1,
|
|
3214
3877
|
maxLength: 3000,
|
|
3878
|
+
"x-multiline": true,
|
|
3215
3879
|
},
|
|
3216
3880
|
reason: {
|
|
3217
3881
|
type: "string",
|
|
@@ -3282,6 +3946,7 @@ export default class LinkedInConnector extends ConnectorRuntime<
|
|
|
3282
3946
|
description: "Expected comment text (the staged draft).",
|
|
3283
3947
|
minLength: 1,
|
|
3284
3948
|
maxLength: 3000,
|
|
3949
|
+
"x-multiline": true,
|
|
3285
3950
|
},
|
|
3286
3951
|
author_hint: {
|
|
3287
3952
|
type: "string",
|
|
@@ -3382,6 +4047,173 @@ export default class LinkedInConnector extends ConnectorRuntime<
|
|
|
3382
4047
|
},
|
|
3383
4048
|
},
|
|
3384
4049
|
},
|
|
4050
|
+
search_people: {
|
|
4051
|
+
key: "search_people",
|
|
4052
|
+
name: "Search people",
|
|
4053
|
+
description:
|
|
4054
|
+
"Search LinkedIn members in the paired Chrome browser and return one page of results without storing any events. Each person has name, headline, location, profile URL, connection degree, verified badge, current or past position when LinkedIn shows one (otherwise the matching snippet), and mutual connections (count, the named people with profile URLs, and a search URL for all of them). `location` is resolved to LinkedIn's location filter through its location lookup; when no location matches, it is added to the keywords instead and `location_filter.applied` reports \"keywords\". Read-only.",
|
|
4055
|
+
kind: "read",
|
|
4056
|
+
annotations: {
|
|
4057
|
+
openWorldHint: true,
|
|
4058
|
+
destructiveHint: false,
|
|
4059
|
+
idempotentHint: true,
|
|
4060
|
+
},
|
|
4061
|
+
inputSchema: {
|
|
4062
|
+
type: "object",
|
|
4063
|
+
additionalProperties: false,
|
|
4064
|
+
required: ["keywords"],
|
|
4065
|
+
properties: {
|
|
4066
|
+
keywords: {
|
|
4067
|
+
type: "string",
|
|
4068
|
+
minLength: 1,
|
|
4069
|
+
maxLength: 200,
|
|
4070
|
+
description: "Free-text search terms.",
|
|
4071
|
+
},
|
|
4072
|
+
title: {
|
|
4073
|
+
type: "string",
|
|
4074
|
+
maxLength: 200,
|
|
4075
|
+
description: "Filter by job title text.",
|
|
4076
|
+
},
|
|
4077
|
+
company: {
|
|
4078
|
+
type: "string",
|
|
4079
|
+
maxLength: 200,
|
|
4080
|
+
description: "Filter by company name text.",
|
|
4081
|
+
},
|
|
4082
|
+
location: {
|
|
4083
|
+
type: "string",
|
|
4084
|
+
maxLength: 200,
|
|
4085
|
+
description:
|
|
4086
|
+
'Place name, e.g. "London". Applied as LinkedIn\'s location filter when it resolves, otherwise folded into keywords.',
|
|
4087
|
+
},
|
|
4088
|
+
network: {
|
|
4089
|
+
type: "array",
|
|
4090
|
+
items: { type: "string", enum: ["1st", "2nd", "3rd"] },
|
|
4091
|
+
description: "Restrict to these connection degrees.",
|
|
4092
|
+
},
|
|
4093
|
+
page: {
|
|
4094
|
+
type: "integer",
|
|
4095
|
+
minimum: 1,
|
|
4096
|
+
maximum: 10,
|
|
4097
|
+
description: "1-based results page (default 1).",
|
|
4098
|
+
},
|
|
4099
|
+
},
|
|
4100
|
+
},
|
|
4101
|
+
},
|
|
4102
|
+
read_profile: {
|
|
4103
|
+
key: "read_profile",
|
|
4104
|
+
name: "Read profile",
|
|
4105
|
+
description:
|
|
4106
|
+
"Read one LinkedIn member profile in the paired Chrome browser: name, pronouns, headline, location, about, connection degree, followers, connection count, website, mutual connections, current and past positions (up to 15 each, with company, employment type, dates, duration, location, workplace type, description and company URL), education (up to 10, with degree, field of study, dates, grade, activities and description) and skills (up to 50, with endorsement counts). Contact info (email, phone, websites, birthday, address, connected since) is read only for 1st-degree connections and your own profile, when LinkedIn shows it. Returns without storing any events. Read-only.",
|
|
4107
|
+
kind: "read",
|
|
4108
|
+
annotations: {
|
|
4109
|
+
openWorldHint: true,
|
|
4110
|
+
destructiveHint: false,
|
|
4111
|
+
idempotentHint: true,
|
|
4112
|
+
},
|
|
4113
|
+
inputSchema: {
|
|
4114
|
+
type: "object",
|
|
4115
|
+
additionalProperties: false,
|
|
4116
|
+
required: ["profile_url"],
|
|
4117
|
+
properties: {
|
|
4118
|
+
profile_url: {
|
|
4119
|
+
type: "string",
|
|
4120
|
+
maxLength: 200,
|
|
4121
|
+
description: "Member profile URL, linkedin.com/in/<slug>.",
|
|
4122
|
+
},
|
|
4123
|
+
},
|
|
4124
|
+
},
|
|
4125
|
+
},
|
|
4126
|
+
search_companies: {
|
|
4127
|
+
key: "search_companies",
|
|
4128
|
+
name: "Search companies",
|
|
4129
|
+
description:
|
|
4130
|
+
"Search LinkedIn company pages in the paired Chrome browser and return one page of results without storing any events. Each company has name, industry, location, summary, followers, verified badge, whether you follow it, your connections who work there or follow it (count and search URL), and company URL. Read-only.",
|
|
4131
|
+
kind: "read",
|
|
4132
|
+
annotations: {
|
|
4133
|
+
openWorldHint: true,
|
|
4134
|
+
destructiveHint: false,
|
|
4135
|
+
idempotentHint: true,
|
|
4136
|
+
},
|
|
4137
|
+
inputSchema: {
|
|
4138
|
+
type: "object",
|
|
4139
|
+
additionalProperties: false,
|
|
4140
|
+
required: ["keywords"],
|
|
4141
|
+
properties: {
|
|
4142
|
+
keywords: {
|
|
4143
|
+
type: "string",
|
|
4144
|
+
minLength: 1,
|
|
4145
|
+
maxLength: 200,
|
|
4146
|
+
description: "Free-text search terms.",
|
|
4147
|
+
},
|
|
4148
|
+
page: {
|
|
4149
|
+
type: "integer",
|
|
4150
|
+
minimum: 1,
|
|
4151
|
+
maximum: 10,
|
|
4152
|
+
description: "1-based results page (default 1).",
|
|
4153
|
+
},
|
|
4154
|
+
},
|
|
4155
|
+
},
|
|
4156
|
+
},
|
|
4157
|
+
read_company: {
|
|
4158
|
+
key: "read_company",
|
|
4159
|
+
name: "Read company",
|
|
4160
|
+
description:
|
|
4161
|
+
"Read a LinkedIn company page's About tab in the paired Chrome browser: company ID, name, tagline, about, website, industry, company size, members on LinkedIn, headquarters, founded, type, specialties, phone, followers, verified page date, highlights, whether you follow it, and your connections who work there. Returns without storing any events. Read-only.",
|
|
4162
|
+
kind: "read",
|
|
4163
|
+
annotations: {
|
|
4164
|
+
openWorldHint: true,
|
|
4165
|
+
destructiveHint: false,
|
|
4166
|
+
idempotentHint: true,
|
|
4167
|
+
},
|
|
4168
|
+
inputSchema: {
|
|
4169
|
+
type: "object",
|
|
4170
|
+
additionalProperties: false,
|
|
4171
|
+
required: ["company_url"],
|
|
4172
|
+
properties: {
|
|
4173
|
+
company_url: {
|
|
4174
|
+
type: "string",
|
|
4175
|
+
maxLength: 200,
|
|
4176
|
+
description: "Company page URL, linkedin.com/company/<slug>.",
|
|
4177
|
+
},
|
|
4178
|
+
},
|
|
4179
|
+
},
|
|
4180
|
+
},
|
|
4181
|
+
search_posts: {
|
|
4182
|
+
key: "search_posts",
|
|
4183
|
+
name: "Search posts",
|
|
4184
|
+
description:
|
|
4185
|
+
"Search LinkedIn posts in the paired Chrome browser and return one page of up to 10 posts without storing any events. Each post has its URL, posted timestamp (and the relative time LinkedIn shows), edited flag, author (name, headline, profile or company URL, connection degree, verified and premium badges), body, hashtags, mentioned people and companies, outbound links, media (images, and videos with a thumbnail), and reaction, comment and repost counts. Results load only while Chrome draws the page, so the search window comes to the front for the read: about 15 seconds for page 1, longer for later pages. Read-only.",
|
|
4186
|
+
kind: "read",
|
|
4187
|
+
annotations: {
|
|
4188
|
+
openWorldHint: true,
|
|
4189
|
+
destructiveHint: false,
|
|
4190
|
+
idempotentHint: true,
|
|
4191
|
+
},
|
|
4192
|
+
inputSchema: {
|
|
4193
|
+
type: "object",
|
|
4194
|
+
additionalProperties: false,
|
|
4195
|
+
required: ["keywords"],
|
|
4196
|
+
properties: {
|
|
4197
|
+
keywords: {
|
|
4198
|
+
type: "string",
|
|
4199
|
+
minLength: 1,
|
|
4200
|
+
maxLength: 200,
|
|
4201
|
+
description: "Free-text search terms.",
|
|
4202
|
+
},
|
|
4203
|
+
sort: {
|
|
4204
|
+
type: "string",
|
|
4205
|
+
enum: ["relevant", "recent"],
|
|
4206
|
+
description: 'Result order (default "relevant").',
|
|
4207
|
+
},
|
|
4208
|
+
page: {
|
|
4209
|
+
type: "integer",
|
|
4210
|
+
minimum: 1,
|
|
4211
|
+
maximum: 10,
|
|
4212
|
+
description: "1-based results page (default 1).",
|
|
4213
|
+
},
|
|
4214
|
+
},
|
|
4215
|
+
},
|
|
4216
|
+
},
|
|
3385
4217
|
},
|
|
3386
4218
|
};
|
|
3387
4219
|
|
|
@@ -3412,6 +4244,24 @@ export default class LinkedInConnector extends ConnectorRuntime<
|
|
|
3412
4244
|
if (ctx.actionKey === "send_message") {
|
|
3413
4245
|
return await sendLinkedInMessage(ctx);
|
|
3414
4246
|
}
|
|
4247
|
+
if (ctx.actionKey === "send_connection_request") {
|
|
4248
|
+
return await sendLinkedInConnectionRequest(ctx);
|
|
4249
|
+
}
|
|
4250
|
+
if (ctx.actionKey === "withdraw_connection_request") {
|
|
4251
|
+
return await withdrawLinkedInConnectionRequest(ctx);
|
|
4252
|
+
}
|
|
4253
|
+
if (ctx.actionKey === "remove_connection") {
|
|
4254
|
+
return await removeLinkedInConnection(ctx);
|
|
4255
|
+
}
|
|
4256
|
+
if (ctx.actionKey === "set_follow") {
|
|
4257
|
+
return await setLinkedInFollow(ctx);
|
|
4258
|
+
}
|
|
4259
|
+
if (ctx.actionKey === "list_sent_invitations") {
|
|
4260
|
+
return await listLinkedInSentInvitations(ctx);
|
|
4261
|
+
}
|
|
4262
|
+
if (ctx.actionKey === "lookup_conversations") {
|
|
4263
|
+
return await lookupLinkedInConversations(ctx);
|
|
4264
|
+
}
|
|
3415
4265
|
if (
|
|
3416
4266
|
ctx.actionKey === "prepare_message" ||
|
|
3417
4267
|
ctx.actionKey === "prepare_post"
|
|
@@ -3424,6 +4274,21 @@ export default class LinkedInConnector extends ConnectorRuntime<
|
|
|
3424
4274
|
if (ctx.actionKey === "read_home_feed") {
|
|
3425
4275
|
return await readHomeFeed(ctx);
|
|
3426
4276
|
}
|
|
4277
|
+
if (ctx.actionKey === "search_people") {
|
|
4278
|
+
return await searchLinkedInPeople(ctx);
|
|
4279
|
+
}
|
|
4280
|
+
if (ctx.actionKey === "read_profile") {
|
|
4281
|
+
return await readLinkedInProfile(ctx);
|
|
4282
|
+
}
|
|
4283
|
+
if (ctx.actionKey === "search_companies") {
|
|
4284
|
+
return await searchLinkedInCompanies(ctx);
|
|
4285
|
+
}
|
|
4286
|
+
if (ctx.actionKey === "read_company") {
|
|
4287
|
+
return await readLinkedInCompany(ctx);
|
|
4288
|
+
}
|
|
4289
|
+
if (ctx.actionKey === "search_posts") {
|
|
4290
|
+
return await searchLinkedInPosts(ctx);
|
|
4291
|
+
}
|
|
3427
4292
|
if (
|
|
3428
4293
|
ctx.actionKey !== "prepare_comment" &&
|
|
3429
4294
|
ctx.actionKey !== "verify_staged_comment"
|