bereach 0.2.1 → 1.3.2
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/README.md +191 -66
- package/esm/funcs/{linkedin-actions-connect-profile.d.ts → actions-connect-profile.d.ts} +2 -2
- package/esm/funcs/actions-connect-profile.d.ts.map +1 -0
- package/esm/funcs/{linkedin-actions-connect-profile.js → actions-connect-profile.js} +2 -2
- package/esm/funcs/actions-connect-profile.js.map +1 -0
- package/esm/funcs/actions-follow-company.d.ts +18 -0
- package/esm/funcs/{campaigns-sync-actions.d.ts.map → actions-follow-company.d.ts.map} +1 -1
- package/esm/funcs/actions-follow-company.js +95 -0
- package/esm/funcs/actions-follow-company.js.map +1 -0
- package/esm/funcs/{profile-get-linked-in-profile.d.ts → actions-list-sent-invitations.d.ts} +4 -4
- package/esm/funcs/{linkedin-actions-publish-post.d.ts.map → actions-list-sent-invitations.d.ts.map} +1 -1
- package/esm/funcs/actions-list-sent-invitations.js +95 -0
- package/esm/funcs/{linkedin-actions-publish-post.js.map → actions-list-sent-invitations.js.map} +1 -1
- package/esm/funcs/actions-send-message.d.ts +18 -0
- package/esm/funcs/actions-send-message.d.ts.map +1 -0
- package/esm/funcs/{linkedin-actions-send-message.js → actions-send-message.js} +3 -3
- package/esm/funcs/actions-send-message.js.map +1 -0
- package/esm/funcs/campaigns-sync.d.ts +18 -0
- package/esm/funcs/campaigns-sync.d.ts.map +1 -0
- package/esm/funcs/{campaigns-sync-actions.js → campaigns-sync.js} +2 -2
- package/esm/funcs/campaigns-sync.js.map +1 -0
- package/esm/funcs/chat-archive.d.ts +18 -0
- package/esm/funcs/chat-archive.d.ts.map +1 -0
- package/esm/funcs/chat-archive.js +95 -0
- package/esm/funcs/chat-archive.js.map +1 -0
- package/esm/funcs/{linkedin-chat-find-conversation.d.ts → chat-find-conversation.d.ts} +2 -2
- package/esm/funcs/chat-find-conversation.d.ts.map +1 -0
- package/esm/funcs/{linkedin-chat-find-conversation.js → chat-find-conversation.js} +2 -2
- package/esm/funcs/chat-find-conversation.js.map +1 -0
- package/esm/funcs/chat-search-conversations.d.ts +18 -0
- package/esm/funcs/chat-search-conversations.d.ts.map +1 -0
- package/esm/funcs/{linkedin-chat-search-conversations.js → chat-search-conversations.js} +2 -2
- package/esm/funcs/chat-search-conversations.js.map +1 -0
- package/esm/funcs/chat-unreact.d.ts +18 -0
- package/esm/funcs/chat-unreact.d.ts.map +1 -0
- package/esm/funcs/chat-unreact.js +95 -0
- package/esm/funcs/chat-unreact.js.map +1 -0
- package/esm/funcs/company-pages-get-analytics.d.ts +18 -0
- package/esm/funcs/company-pages-get-analytics.d.ts.map +1 -0
- package/esm/funcs/company-pages-get-analytics.js +95 -0
- package/esm/funcs/company-pages-get-analytics.js.map +1 -0
- package/esm/funcs/company-pages-get-permissions.d.ts +18 -0
- package/esm/funcs/{linkedin-actions-send-message.d.ts.map → company-pages-get-permissions.d.ts.map} +1 -1
- package/esm/funcs/company-pages-get-permissions.js +95 -0
- package/esm/funcs/{linkedin-actions-send-message.js.map → company-pages-get-permissions.js.map} +1 -1
- package/esm/funcs/{campaigns-sync-actions.d.ts → company-pages-get-posts.d.ts} +4 -4
- package/esm/funcs/company-pages-get-posts.d.ts.map +1 -0
- package/esm/funcs/company-pages-get-posts.js +95 -0
- package/esm/funcs/company-pages-get-posts.js.map +1 -0
- package/esm/funcs/company-pages-list.d.ts +18 -0
- package/esm/funcs/company-pages-list.d.ts.map +1 -0
- package/esm/funcs/company-pages-list.js +84 -0
- package/esm/funcs/company-pages-list.js.map +1 -0
- package/esm/funcs/contacts-upsert.d.ts +17 -0
- package/esm/funcs/contacts-upsert.d.ts.map +1 -0
- package/esm/funcs/contacts-upsert.js +79 -0
- package/esm/funcs/contacts-upsert.js.map +1 -0
- package/esm/funcs/linked-in-actions-create-comment.d.ts +18 -0
- package/esm/funcs/{linkedin-actions-connect-profile.d.ts.map → linked-in-actions-create-comment.d.ts.map} +1 -1
- package/esm/funcs/linked-in-actions-create-comment.js +95 -0
- package/esm/funcs/{linkedin-actions-connect-profile.js.map → linked-in-actions-create-comment.js.map} +1 -1
- package/esm/funcs/linked-in-actions-decline-invitation.d.ts +18 -0
- package/esm/funcs/linked-in-actions-decline-invitation.d.ts.map +1 -0
- package/esm/funcs/linked-in-actions-decline-invitation.js +95 -0
- package/esm/funcs/linked-in-actions-decline-invitation.js.map +1 -0
- package/esm/funcs/{linkedin-actions-like-comment.d.ts → linked-in-actions-like-comment.d.ts} +2 -2
- package/esm/funcs/linked-in-actions-like-comment.d.ts.map +1 -0
- package/esm/funcs/{linkedin-actions-like-comment.js → linked-in-actions-like-comment.js} +2 -2
- package/esm/funcs/linked-in-actions-like-comment.js.map +1 -0
- package/esm/funcs/{linkedin-actions-publish-post.d.ts → linked-in-actions-publish-post.d.ts} +3 -3
- package/esm/funcs/linked-in-actions-publish-post.d.ts.map +1 -0
- package/esm/funcs/{linkedin-actions-publish-post.js → linked-in-actions-publish-post.js} +3 -3
- package/esm/funcs/linked-in-actions-publish-post.js.map +1 -0
- package/esm/funcs/linked-in-actions-save-post.d.ts +18 -0
- package/esm/funcs/linked-in-actions-save-post.d.ts.map +1 -0
- package/esm/funcs/linked-in-actions-save-post.js +95 -0
- package/esm/funcs/linked-in-actions-save-post.js.map +1 -0
- package/esm/funcs/linked-in-actions-unfollow-profile.d.ts +18 -0
- package/esm/funcs/{linkedin-chat-search-conversations.d.ts.map → linked-in-actions-unfollow-profile.d.ts.map} +1 -1
- package/esm/funcs/linked-in-actions-unfollow-profile.js +95 -0
- package/esm/funcs/{linkedin-chat-search-conversations.js.map → linked-in-actions-unfollow-profile.js.map} +1 -1
- package/esm/funcs/linked-in-chat-list-starred.d.ts +18 -0
- package/esm/funcs/linked-in-chat-list-starred.d.ts.map +1 -0
- package/esm/funcs/linked-in-chat-list-starred.js +97 -0
- package/esm/funcs/linked-in-chat-list-starred.js.map +1 -0
- package/esm/funcs/linked-in-chat-mark-seen.d.ts +18 -0
- package/esm/funcs/linked-in-chat-mark-seen.d.ts.map +1 -0
- package/esm/funcs/linked-in-chat-mark-seen.js +95 -0
- package/esm/funcs/linked-in-chat-mark-seen.js.map +1 -0
- package/esm/funcs/linked-in-chat-star.d.ts +18 -0
- package/esm/funcs/linked-in-chat-star.d.ts.map +1 -0
- package/esm/funcs/linked-in-chat-star.js +95 -0
- package/esm/funcs/linked-in-chat-star.js.map +1 -0
- package/esm/funcs/linked-in-chat-unarchive.d.ts +18 -0
- package/esm/funcs/linked-in-chat-unarchive.d.ts.map +1 -0
- package/esm/funcs/linked-in-chat-unarchive.js +95 -0
- package/esm/funcs/linked-in-chat-unarchive.js.map +1 -0
- package/esm/funcs/linked-in-chat-unstar.d.ts +18 -0
- package/esm/funcs/linked-in-chat-unstar.d.ts.map +1 -0
- package/esm/funcs/linked-in-chat-unstar.js +95 -0
- package/esm/funcs/linked-in-chat-unstar.js.map +1 -0
- package/esm/funcs/{linkedin-scrapers-collect-comment-replies.d.ts → linked-in-scrapers-collect-comment-replies.d.ts} +2 -2
- package/esm/funcs/linked-in-scrapers-collect-comment-replies.d.ts.map +1 -0
- package/esm/funcs/{linkedin-scrapers-collect-comment-replies.js → linked-in-scrapers-collect-comment-replies.js} +2 -2
- package/esm/funcs/{campaigns-sync-actions.js.map → linked-in-scrapers-collect-comment-replies.js.map} +1 -1
- package/esm/funcs/linked-in-scrapers-get-feed.d.ts +18 -0
- package/esm/funcs/linked-in-scrapers-get-feed.d.ts.map +1 -0
- package/esm/funcs/linked-in-scrapers-get-feed.js +97 -0
- package/esm/funcs/linked-in-scrapers-get-feed.js.map +1 -0
- package/esm/funcs/{linkedin-search-resolve-parameters.d.ts → linked-in-search-resolve-parameters.d.ts} +2 -2
- package/esm/funcs/linked-in-search-resolve-parameters.d.ts.map +1 -0
- package/esm/funcs/{linkedin-search-resolve-parameters.js → linked-in-search-resolve-parameters.js} +2 -2
- package/esm/funcs/linked-in-search-resolve-parameters.js.map +1 -0
- package/esm/funcs/{linkedin-search-search-companies.d.ts → linked-in-search-search-companies.d.ts} +2 -2
- package/esm/funcs/linked-in-search-search-companies.d.ts.map +1 -0
- package/esm/funcs/{linkedin-search-search-companies.js → linked-in-search-search-companies.js} +2 -2
- package/esm/funcs/linked-in-search-search-companies.js.map +1 -0
- package/esm/funcs/{linkedin-search-unified-search.d.ts → linked-in-search-search.d.ts} +2 -2
- package/esm/funcs/linked-in-search-search.d.ts.map +1 -0
- package/esm/funcs/{linkedin-search-unified-search.js → linked-in-search-search.js} +2 -2
- package/esm/funcs/linked-in-search-search.js.map +1 -0
- package/esm/funcs/{linkedin-actions-send-message.d.ts → linkedin-actions-edit-comment.d.ts} +4 -4
- package/esm/funcs/{linkedin-actions-like-comment.d.ts.map → linkedin-actions-edit-comment.d.ts.map} +1 -1
- package/esm/funcs/linkedin-actions-edit-comment.js +95 -0
- package/esm/funcs/{linkedin-actions-like-comment.js.map → linkedin-actions-edit-comment.js.map} +1 -1
- package/esm/funcs/linkedin-actions-edit-post.d.ts +18 -0
- package/esm/funcs/linkedin-actions-edit-post.d.ts.map +1 -0
- package/esm/funcs/linkedin-actions-edit-post.js +95 -0
- package/esm/funcs/linkedin-actions-edit-post.js.map +1 -0
- package/esm/funcs/linkedin-actions-follow-profile.d.ts +18 -0
- package/esm/funcs/{linkedin-scrapers-visit-profile.d.ts.map → linkedin-actions-follow-profile.d.ts.map} +1 -1
- package/esm/funcs/linkedin-actions-follow-profile.js +95 -0
- package/esm/funcs/{linkedin-scrapers-visit-profile.js.map → linkedin-actions-follow-profile.js.map} +1 -1
- package/esm/funcs/linkedin-actions-like-post.d.ts +18 -0
- package/esm/funcs/linkedin-actions-like-post.d.ts.map +1 -0
- package/esm/funcs/linkedin-actions-like-post.js +95 -0
- package/esm/funcs/linkedin-actions-like-post.js.map +1 -0
- package/esm/funcs/linkedin-actions-repost-post.d.ts +18 -0
- package/esm/funcs/linkedin-actions-repost-post.d.ts.map +1 -0
- package/esm/funcs/linkedin-actions-repost-post.js +95 -0
- package/esm/funcs/linkedin-actions-repost-post.js.map +1 -0
- package/esm/funcs/linkedin-actions-unfollow-company.d.ts +18 -0
- package/esm/funcs/linkedin-actions-unfollow-company.d.ts.map +1 -0
- package/esm/funcs/linkedin-actions-unfollow-company.js +95 -0
- package/esm/funcs/linkedin-actions-unfollow-company.js.map +1 -0
- package/esm/funcs/linkedin-actions-unlike-comment.d.ts +18 -0
- package/esm/funcs/{linkedin-scrapers-collect-posts.d.ts.map → linkedin-actions-unlike-comment.d.ts.map} +1 -1
- package/esm/funcs/linkedin-actions-unlike-comment.js +95 -0
- package/esm/funcs/{linkedin-scrapers-collect-posts.js.map → linkedin-actions-unlike-comment.js.map} +1 -1
- package/esm/funcs/linkedin-actions-unlike-post.d.ts +18 -0
- package/esm/funcs/linkedin-actions-unlike-post.d.ts.map +1 -0
- package/esm/funcs/linkedin-actions-unlike-post.js +95 -0
- package/esm/funcs/linkedin-actions-unlike-post.js.map +1 -0
- package/esm/funcs/linkedin-actions-unsave-post.d.ts +18 -0
- package/esm/funcs/linkedin-actions-unsave-post.d.ts.map +1 -0
- package/esm/funcs/linkedin-actions-unsave-post.js +95 -0
- package/esm/funcs/linkedin-actions-unsave-post.js.map +1 -0
- package/esm/funcs/linkedin-actions-withdraw-invitation.d.ts +18 -0
- package/esm/funcs/linkedin-actions-withdraw-invitation.d.ts.map +1 -0
- package/esm/funcs/linkedin-actions-withdraw-invitation.js +95 -0
- package/esm/funcs/linkedin-actions-withdraw-invitation.js.map +1 -0
- package/esm/funcs/{linkedin-scrapers-visit-profile.d.ts → linkedin-chat-get-unread-count.d.ts} +4 -4
- package/esm/funcs/linkedin-chat-get-unread-count.d.ts.map +1 -0
- package/esm/funcs/linkedin-chat-get-unread-count.js +85 -0
- package/esm/funcs/linkedin-chat-get-unread-count.js.map +1 -0
- package/esm/funcs/linkedin-chat-list-archived.d.ts +18 -0
- package/esm/funcs/linkedin-chat-list-archived.d.ts.map +1 -0
- package/esm/funcs/linkedin-chat-list-archived.js +97 -0
- package/esm/funcs/linkedin-chat-list-archived.js.map +1 -0
- package/esm/funcs/{linkedin-chat-list-conversations.d.ts → linkedin-chat-list-inbox-conversations.d.ts} +2 -2
- package/esm/funcs/linkedin-chat-list-inbox-conversations.d.ts.map +1 -0
- package/esm/funcs/{linkedin-chat-list-conversations.js → linkedin-chat-list-inbox-conversations.js} +2 -2
- package/esm/funcs/linkedin-chat-list-inbox-conversations.js.map +1 -0
- package/esm/funcs/{linkedin-chat-search-conversations.d.ts → linkedin-chat-mark-all-read.d.ts} +4 -4
- package/esm/funcs/linkedin-chat-mark-all-read.d.ts.map +1 -0
- package/esm/funcs/linkedin-chat-mark-all-read.js +85 -0
- package/esm/funcs/linkedin-chat-mark-all-read.js.map +1 -0
- package/esm/funcs/linkedin-chat-react.d.ts +18 -0
- package/esm/funcs/linkedin-chat-react.d.ts.map +1 -0
- package/esm/funcs/linkedin-chat-react.js +95 -0
- package/esm/funcs/linkedin-chat-react.js.map +1 -0
- package/esm/funcs/linkedin-chat-send-typing-indicator.d.ts +18 -0
- package/esm/funcs/linkedin-chat-send-typing-indicator.d.ts.map +1 -0
- package/esm/funcs/linkedin-chat-send-typing-indicator.js +95 -0
- package/esm/funcs/linkedin-chat-send-typing-indicator.js.map +1 -0
- package/esm/funcs/linkedin-scrapers-collect-hashtag-posts.d.ts +18 -0
- package/esm/funcs/linkedin-scrapers-collect-hashtag-posts.d.ts.map +1 -0
- package/esm/funcs/linkedin-scrapers-collect-hashtag-posts.js +95 -0
- package/esm/funcs/linkedin-scrapers-collect-hashtag-posts.js.map +1 -0
- package/esm/funcs/linkedin-scrapers-collect-likes.d.ts +1 -1
- package/esm/funcs/linkedin-scrapers-collect-likes.js +1 -1
- package/esm/funcs/linkedin-scrapers-list-saved-posts.d.ts +18 -0
- package/esm/funcs/linkedin-scrapers-list-saved-posts.d.ts.map +1 -0
- package/esm/funcs/linkedin-scrapers-list-saved-posts.js +95 -0
- package/esm/funcs/linkedin-scrapers-list-saved-posts.js.map +1 -0
- package/esm/funcs/profile-get-credits.d.ts +1 -1
- package/esm/funcs/profile-get-credits.js +1 -1
- package/esm/funcs/profile-get-follower-analytics.d.ts +18 -0
- package/esm/funcs/profile-get-follower-analytics.d.ts.map +1 -0
- package/esm/funcs/profile-get-follower-analytics.js +85 -0
- package/esm/funcs/profile-get-follower-analytics.js.map +1 -0
- package/esm/funcs/profile-get-post-analytics.d.ts +18 -0
- package/esm/funcs/profile-get-post-analytics.d.ts.map +1 -0
- package/esm/funcs/profile-get-post-analytics.js +95 -0
- package/esm/funcs/profile-get-post-analytics.js.map +1 -0
- package/esm/funcs/profile-get-profile-views.d.ts +18 -0
- package/esm/funcs/profile-get-profile-views.d.ts.map +1 -0
- package/esm/funcs/profile-get-profile-views.js +85 -0
- package/esm/funcs/profile-get-profile-views.js.map +1 -0
- package/esm/funcs/profile-get-search-appearances.d.ts +18 -0
- package/esm/funcs/profile-get-search-appearances.d.ts.map +1 -0
- package/esm/funcs/profile-get-search-appearances.js +85 -0
- package/esm/funcs/profile-get-search-appearances.js.map +1 -0
- package/esm/funcs/profile-get.d.ts +18 -0
- package/esm/funcs/profile-get.d.ts.map +1 -0
- package/esm/funcs/{profile-get-linked-in-profile.js → profile-get.js} +2 -2
- package/esm/funcs/profile-get.js.map +1 -0
- package/esm/funcs/profile-list-accounts.d.ts +18 -0
- package/esm/funcs/profile-list-accounts.d.ts.map +1 -0
- package/esm/funcs/profile-list-accounts.js +84 -0
- package/esm/funcs/profile-list-accounts.js.map +1 -0
- package/esm/funcs/profile-update-account.d.ts +18 -0
- package/esm/funcs/profile-update-account.d.ts.map +1 -0
- package/esm/funcs/profile-update-account.js +95 -0
- package/esm/funcs/profile-update-account.js.map +1 -0
- package/esm/funcs/sales-nav-search-people.d.ts +53 -0
- package/esm/funcs/sales-nav-search-people.d.ts.map +1 -0
- package/esm/funcs/sales-nav-search-people.js +130 -0
- package/esm/funcs/{linkedin-scrapers-collect-comment-replies.js.map → sales-nav-search-people.js.map} +1 -1
- package/esm/funcs/sales-navigator-search-search-companies.d.ts +33 -0
- package/esm/funcs/sales-navigator-search-search-companies.d.ts.map +1 -0
- package/esm/funcs/sales-navigator-search-search-companies.js +110 -0
- package/esm/funcs/sales-navigator-search-search-companies.js.map +1 -0
- package/esm/funcs/sales-navigator-search-search.d.ts +39 -0
- package/esm/funcs/sales-navigator-search-search.d.ts.map +1 -0
- package/esm/funcs/sales-navigator-search-search.js +116 -0
- package/esm/funcs/sales-navigator-search-search.js.map +1 -0
- package/esm/funcs/{linkedin-scrapers-collect-posts.d.ts → scrapers-collect-posts.d.ts} +2 -2
- package/esm/funcs/scrapers-collect-posts.d.ts.map +1 -0
- package/esm/funcs/{linkedin-scrapers-collect-posts.js → scrapers-collect-posts.js} +2 -2
- package/esm/funcs/scrapers-collect-posts.js.map +1 -0
- package/esm/funcs/scrapers-visit-profile.d.ts +18 -0
- package/esm/funcs/scrapers-visit-profile.d.ts.map +1 -0
- package/esm/funcs/{linkedin-scrapers-visit-profile.js → scrapers-visit-profile.js} +2 -2
- package/esm/funcs/scrapers-visit-profile.js.map +1 -0
- package/esm/lib/config.d.ts +4 -4
- package/esm/lib/config.js +4 -4
- package/esm/models/errors/collect-linked-in-likes.d.ts +18 -18
- package/esm/models/errors/collect-linked-in-likes.d.ts.map +1 -1
- package/esm/models/errors/collect-linked-in-likes.js +9 -9
- package/esm/models/errors/collect-linked-in-likes.js.map +1 -1
- package/esm/models/operations/get-campaign-stats-response.d.ts +800 -856
- package/esm/models/operations/get-campaign-stats-response.d.ts.map +1 -1
- package/esm/models/operations/get-campaign-stats-response.js +503 -515
- package/esm/models/operations/get-campaign-stats-response.js.map +1 -1
- package/esm/models/operations/index.d.ts +3 -1
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +3 -1
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/scraping-weekly.d.ts +2946 -0
- package/esm/models/operations/scraping-weekly.d.ts.map +1 -0
- package/esm/models/operations/scraping-weekly.js +1594 -0
- package/esm/models/operations/scraping-weekly.js.map +1 -0
- package/esm/models/operations/{send-linked-in-message-response.d.ts → search-linked-in-by-url-type-post.d.ts} +825 -766
- package/esm/models/operations/search-linked-in-by-url-type-post.d.ts.map +1 -0
- package/esm/models/operations/{send-linked-in-message-response.js → search-linked-in-by-url-type-post.js} +410 -418
- package/esm/models/operations/search-linked-in-by-url-type-post.js.map +1 -0
- package/esm/models/operations/upsert-contacts.d.ts +182 -0
- package/esm/models/operations/upsert-contacts.d.ts.map +1 -0
- package/esm/models/operations/upsert-contacts.js +116 -0
- package/esm/models/operations/upsert-contacts.js.map +1 -0
- package/esm/sdk/actions.d.ts +33 -0
- package/esm/sdk/actions.d.ts.map +1 -0
- package/esm/sdk/actions.js +48 -0
- package/esm/sdk/actions.js.map +1 -0
- package/esm/sdk/campaigns.d.ts +1 -1
- package/esm/sdk/campaigns.d.ts.map +1 -1
- package/esm/sdk/campaigns.js +3 -3
- package/esm/sdk/campaigns.js.map +1 -1
- package/esm/sdk/{linkedin-chat.d.ts → chat.d.ts} +11 -15
- package/esm/sdk/chat.d.ts.map +1 -0
- package/esm/sdk/chat.js +55 -0
- package/esm/sdk/chat.js.map +1 -0
- package/esm/sdk/company-pages.d.ts +33 -0
- package/esm/sdk/company-pages.d.ts.map +1 -0
- package/esm/sdk/company-pages.js +48 -0
- package/esm/sdk/company-pages.js.map +1 -0
- package/esm/sdk/contacts.d.ts +12 -0
- package/esm/sdk/contacts.d.ts.map +1 -0
- package/esm/sdk/contacts.js +18 -0
- package/esm/sdk/contacts.js.map +1 -0
- package/esm/sdk/linked-in-actions-2.d.ts +47 -0
- package/esm/sdk/linked-in-actions-2.d.ts.map +1 -0
- package/esm/sdk/linked-in-actions-2.js +68 -0
- package/esm/sdk/linked-in-actions-2.js.map +1 -0
- package/esm/sdk/linked-in-chat-2.d.ts +40 -0
- package/esm/sdk/linked-in-chat-2.d.ts.map +1 -0
- package/esm/sdk/linked-in-chat-2.js +58 -0
- package/esm/sdk/linked-in-chat-2.js.map +1 -0
- package/esm/sdk/linked-in-scrapers-2.d.ts +19 -0
- package/esm/sdk/linked-in-scrapers-2.d.ts.map +1 -0
- package/esm/sdk/linked-in-scrapers-2.js +28 -0
- package/esm/sdk/linked-in-scrapers-2.js.map +1 -0
- package/esm/sdk/linked-in-search-1.d.ts +149 -0
- package/esm/sdk/linked-in-search-1.d.ts.map +1 -0
- package/esm/sdk/linked-in-search-1.js +161 -0
- package/esm/sdk/linked-in-search-1.js.map +1 -0
- package/esm/sdk/linkedin-actions-1.d.ts +96 -0
- package/esm/sdk/linkedin-actions-1.d.ts.map +1 -0
- package/esm/sdk/linkedin-actions-1.js +138 -0
- package/esm/sdk/linkedin-actions-1.js.map +1 -0
- package/esm/sdk/linkedin-chat-1.d.ts +58 -0
- package/esm/sdk/linkedin-chat-1.d.ts.map +1 -0
- package/esm/sdk/linkedin-chat-1.js +82 -0
- package/esm/sdk/linkedin-chat-1.js.map +1 -0
- package/esm/sdk/{linkedin-scrapers.d.ts → linkedin-scrapers-1.d.ts} +12 -19
- package/esm/sdk/linkedin-scrapers-1.d.ts.map +1 -0
- package/esm/sdk/{linkedin-scrapers.js → linkedin-scrapers-1.js} +17 -27
- package/esm/sdk/linkedin-scrapers-1.js.map +1 -0
- package/esm/sdk/{linkedin-search.d.ts → linkedin-search-2.d.ts} +2 -146
- package/esm/sdk/linkedin-search-2.d.ts.map +1 -0
- package/esm/sdk/{linkedin-search.js → linkedin-search-2.js} +2 -155
- package/esm/sdk/linkedin-search-2.js.map +1 -0
- package/esm/sdk/profile.d.ts +44 -2
- package/esm/sdk/profile.d.ts.map +1 -1
- package/esm/sdk/profile.js +64 -4
- package/esm/sdk/profile.js.map +1 -1
- package/esm/sdk/sales-nav.d.ts +47 -0
- package/esm/sdk/sales-nav.d.ts.map +1 -0
- package/esm/sdk/sales-nav.js +53 -0
- package/esm/sdk/sales-nav.js.map +1 -0
- package/esm/sdk/sales-navigator-search.d.ts +55 -0
- package/esm/sdk/sales-navigator-search.d.ts.map +1 -0
- package/esm/sdk/sales-navigator-search.js +64 -0
- package/esm/sdk/sales-navigator-search.js.map +1 -0
- package/esm/sdk/scrapers.d.ts +19 -0
- package/esm/sdk/scrapers.d.ts.map +1 -0
- package/esm/sdk/scrapers.js +28 -0
- package/esm/sdk/scrapers.js.map +1 -0
- package/esm/sdk/sdk.d.ts +41 -8
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +63 -8
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/types/discriminated-union.d.ts +25 -0
- package/esm/types/discriminated-union.d.ts.map +1 -0
- package/esm/types/discriminated-union.js +61 -0
- package/esm/types/discriminated-union.js.map +1 -0
- package/esm/types/smart-union.d.ts.map +1 -1
- package/esm/types/smart-union.js +2 -1
- package/esm/types/smart-union.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/{linkedin-actions-connect-profile.ts → actions-connect-profile.ts} +1 -1
- package/src/funcs/actions-follow-company.ts +215 -0
- package/src/funcs/actions-list-sent-invitations.ts +218 -0
- package/src/funcs/{linkedin-actions-send-message.ts → actions-send-message.ts} +2 -2
- package/src/funcs/{campaigns-sync-actions.ts → campaigns-sync.ts} +1 -1
- package/src/funcs/chat-archive.ts +215 -0
- package/src/funcs/{linkedin-chat-find-conversation.ts → chat-find-conversation.ts} +1 -1
- package/src/funcs/{linkedin-chat-search-conversations.ts → chat-search-conversations.ts} +1 -1
- package/src/funcs/chat-unreact.ts +215 -0
- package/src/funcs/company-pages-get-analytics.ts +215 -0
- package/src/funcs/company-pages-get-permissions.ts +218 -0
- package/src/funcs/company-pages-get-posts.ts +215 -0
- package/src/funcs/company-pages-list.ts +195 -0
- package/src/funcs/contacts-upsert.ts +161 -0
- package/src/funcs/linked-in-actions-create-comment.ts +215 -0
- package/src/funcs/linked-in-actions-decline-invitation.ts +218 -0
- package/src/funcs/{linkedin-actions-like-comment.ts → linked-in-actions-like-comment.ts} +1 -1
- package/src/funcs/{linkedin-actions-publish-post.ts → linked-in-actions-publish-post.ts} +2 -2
- package/src/funcs/linked-in-actions-save-post.ts +215 -0
- package/src/funcs/linked-in-actions-unfollow-profile.ts +215 -0
- package/src/funcs/linked-in-chat-list-starred.ts +220 -0
- package/src/funcs/linked-in-chat-mark-seen.ts +215 -0
- package/src/funcs/linked-in-chat-star.ts +215 -0
- package/src/funcs/linked-in-chat-unarchive.ts +215 -0
- package/src/funcs/linked-in-chat-unstar.ts +215 -0
- package/src/funcs/{linkedin-scrapers-collect-comment-replies.ts → linked-in-scrapers-collect-comment-replies.ts} +1 -1
- package/src/funcs/linked-in-scrapers-get-feed.ts +220 -0
- package/src/funcs/{linkedin-search-resolve-parameters.ts → linked-in-search-resolve-parameters.ts} +1 -1
- package/src/funcs/{linkedin-search-search-companies.ts → linked-in-search-search-companies.ts} +1 -1
- package/src/funcs/{linkedin-search-unified-search.ts → linked-in-search-search.ts} +1 -1
- package/src/funcs/linkedin-actions-edit-comment.ts +215 -0
- package/src/funcs/linkedin-actions-edit-post.ts +215 -0
- package/src/funcs/linkedin-actions-follow-profile.ts +215 -0
- package/src/funcs/linkedin-actions-like-post.ts +215 -0
- package/src/funcs/linkedin-actions-repost-post.ts +215 -0
- package/src/funcs/linkedin-actions-unfollow-company.ts +215 -0
- package/src/funcs/linkedin-actions-unlike-comment.ts +215 -0
- package/src/funcs/linkedin-actions-unlike-post.ts +215 -0
- package/src/funcs/linkedin-actions-unsave-post.ts +215 -0
- package/src/funcs/linkedin-actions-withdraw-invitation.ts +218 -0
- package/src/funcs/linkedin-chat-get-unread-count.ts +199 -0
- package/src/funcs/linkedin-chat-list-archived.ts +220 -0
- package/src/funcs/{linkedin-chat-list-conversations.ts → linkedin-chat-list-inbox-conversations.ts} +1 -1
- package/src/funcs/linkedin-chat-mark-all-read.ts +199 -0
- package/src/funcs/linkedin-chat-react.ts +214 -0
- package/src/funcs/linkedin-chat-send-typing-indicator.ts +215 -0
- package/src/funcs/linkedin-scrapers-collect-hashtag-posts.ts +218 -0
- package/src/funcs/linkedin-scrapers-collect-likes.ts +1 -1
- package/src/funcs/linkedin-scrapers-list-saved-posts.ts +218 -0
- package/src/funcs/profile-get-credits.ts +1 -1
- package/src/funcs/profile-get-follower-analytics.ts +199 -0
- package/src/funcs/profile-get-post-analytics.ts +215 -0
- package/src/funcs/profile-get-profile-views.ts +199 -0
- package/src/funcs/profile-get-search-appearances.ts +199 -0
- package/src/funcs/{profile-get-linked-in-profile.ts → profile-get.ts} +1 -1
- package/src/funcs/profile-list-accounts.ts +195 -0
- package/src/funcs/profile-update-account.ts +215 -0
- package/src/funcs/sales-nav-search-people.ts +250 -0
- package/src/funcs/sales-navigator-search-search-companies.ts +230 -0
- package/src/funcs/sales-navigator-search-search.ts +235 -0
- package/src/funcs/{linkedin-scrapers-collect-posts.ts → scrapers-collect-posts.ts} +1 -1
- package/src/funcs/{linkedin-scrapers-visit-profile.ts → scrapers-visit-profile.ts} +1 -1
- package/src/lib/config.ts +4 -4
- package/src/models/errors/collect-linked-in-likes.ts +27 -27
- package/src/models/operations/get-campaign-stats-response.ts +1616 -1584
- package/src/models/operations/index.ts +3 -1
- package/src/models/operations/scraping-weekly.ts +5707 -0
- package/src/models/operations/{send-linked-in-message-response.ts → search-linked-in-by-url-type-post.ts} +2086 -2093
- package/src/models/operations/upsert-contacts.ts +305 -0
- package/src/sdk/actions.ts +81 -0
- package/src/sdk/campaigns.ts +3 -3
- package/src/sdk/{linkedin-chat.ts → chat.ts} +29 -33
- package/src/sdk/company-pages.ts +79 -0
- package/src/sdk/contacts.ts +27 -0
- package/src/sdk/linked-in-actions-2.ts +117 -0
- package/src/sdk/linked-in-chat-2.ts +99 -0
- package/src/sdk/linked-in-scrapers-2.ts +45 -0
- package/src/sdk/linked-in-search-1.ts +186 -0
- package/src/sdk/linkedin-actions-1.ts +243 -0
- package/src/sdk/linkedin-chat-1.ts +139 -0
- package/src/sdk/{linkedin-scrapers.ts → linkedin-scrapers-1.ts} +22 -40
- package/src/sdk/{linkedin-search.ts → linkedin-search-2.ts} +1 -178
- package/src/sdk/profile.ts +110 -4
- package/src/sdk/sales-nav.ts +62 -0
- package/src/sdk/sales-navigator-search.ts +81 -0
- package/src/sdk/scrapers.ts +45 -0
- package/src/sdk/sdk.ts +84 -16
- package/src/types/discriminated-union.ts +101 -0
- package/src/types/smart-union.ts +2 -1
- package/esm/funcs/linkedin-chat-find-conversation.d.ts.map +0 -1
- package/esm/funcs/linkedin-chat-find-conversation.js.map +0 -1
- package/esm/funcs/linkedin-chat-list-conversations.d.ts.map +0 -1
- package/esm/funcs/linkedin-chat-list-conversations.js.map +0 -1
- package/esm/funcs/linkedin-scrapers-collect-comment-replies.d.ts.map +0 -1
- package/esm/funcs/linkedin-search-resolve-parameters.d.ts.map +0 -1
- package/esm/funcs/linkedin-search-resolve-parameters.js.map +0 -1
- package/esm/funcs/linkedin-search-search-companies.d.ts.map +0 -1
- package/esm/funcs/linkedin-search-search-companies.js.map +0 -1
- package/esm/funcs/linkedin-search-unified-search.d.ts.map +0 -1
- package/esm/funcs/linkedin-search-unified-search.js.map +0 -1
- package/esm/funcs/profile-get-linked-in-profile.d.ts.map +0 -1
- package/esm/funcs/profile-get-linked-in-profile.js.map +0 -1
- package/esm/models/operations/send-linked-in-message-response.d.ts.map +0 -1
- package/esm/models/operations/send-linked-in-message-response.js.map +0 -1
- package/esm/sdk/linkedin-actions.d.ts +0 -54
- package/esm/sdk/linkedin-actions.d.ts.map +0 -1
- package/esm/sdk/linkedin-actions.js +0 -78
- package/esm/sdk/linkedin-actions.js.map +0 -1
- package/esm/sdk/linkedin-chat.d.ts.map +0 -1
- package/esm/sdk/linkedin-chat.js +0 -59
- package/esm/sdk/linkedin-chat.js.map +0 -1
- package/esm/sdk/linkedin-scrapers.d.ts.map +0 -1
- package/esm/sdk/linkedin-scrapers.js.map +0 -1
- package/esm/sdk/linkedin-search.d.ts.map +0 -1
- package/esm/sdk/linkedin-search.js.map +0 -1
- package/src/sdk/linkedin-actions.ts +0 -135
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* How this contact was found. Optional for organic creation (defaults to manual_import), required for campaign-based addition.
|
|
14
|
+
*/
|
|
15
|
+
export const Source = {
|
|
16
|
+
Likes: "likes",
|
|
17
|
+
Comments: "comments",
|
|
18
|
+
Reposts: "reposts",
|
|
19
|
+
Posts: "posts",
|
|
20
|
+
CompanyFollowers: "company_followers",
|
|
21
|
+
SearchResults: "search_results",
|
|
22
|
+
ManualImport: "manual_import",
|
|
23
|
+
EventAttendees: "event_attendees",
|
|
24
|
+
GroupMembers: "group_members",
|
|
25
|
+
EngagementScraping: "engagement_scraping",
|
|
26
|
+
ContentSearch: "content_search",
|
|
27
|
+
FollowersMining: "followers_mining",
|
|
28
|
+
PeopleSearch: "people_search",
|
|
29
|
+
JobSearch: "job_search",
|
|
30
|
+
CompanySearch: "company_search",
|
|
31
|
+
NetworkExpansion: "network_expansion",
|
|
32
|
+
} as const;
|
|
33
|
+
/**
|
|
34
|
+
* How this contact was found. Optional for organic creation (defaults to manual_import), required for campaign-based addition.
|
|
35
|
+
*/
|
|
36
|
+
export type Source = ClosedEnum<typeof Source>;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Initial lifecycle stage
|
|
40
|
+
*/
|
|
41
|
+
export const LifecycleStage = {
|
|
42
|
+
Contact: "contact",
|
|
43
|
+
Lead: "lead",
|
|
44
|
+
Qualified: "qualified",
|
|
45
|
+
Approved: "approved",
|
|
46
|
+
Rejected: "rejected",
|
|
47
|
+
} as const;
|
|
48
|
+
/**
|
|
49
|
+
* Initial lifecycle stage
|
|
50
|
+
*/
|
|
51
|
+
export type LifecycleStage = ClosedEnum<typeof LifecycleStage>;
|
|
52
|
+
|
|
53
|
+
export type ContactRequest = {
|
|
54
|
+
/**
|
|
55
|
+
* LinkedIn profile URL, URN, or bare vanity name
|
|
56
|
+
*/
|
|
57
|
+
linkedinUrl: string;
|
|
58
|
+
/**
|
|
59
|
+
* LinkedIn profile URN (e.g. urn:li:fsd_profile:ACoAAA...). Improves dedup when provided alongside a vanity URL.
|
|
60
|
+
*/
|
|
61
|
+
profileUrn?: string | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* LinkedIn vanity slug (e.g. joshuaau). Improves dedup when provided alongside a URN.
|
|
64
|
+
*/
|
|
65
|
+
publicIdentifier?: string | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Profile name
|
|
68
|
+
*/
|
|
69
|
+
name: string;
|
|
70
|
+
/**
|
|
71
|
+
* How this contact was found. Optional for organic creation (defaults to manual_import), required for campaign-based addition.
|
|
72
|
+
*/
|
|
73
|
+
source?: Source | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Which lead-gen angle found this (e.g., 'vp-sales-france')
|
|
76
|
+
*/
|
|
77
|
+
sourceAngle?: string | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Initial lifecycle stage
|
|
80
|
+
*/
|
|
81
|
+
lifecycleStage?: LifecycleStage | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Contact quality score (0-100)
|
|
84
|
+
*/
|
|
85
|
+
hotScore?: number | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* Agent reasoning for qualification decision
|
|
88
|
+
*/
|
|
89
|
+
qualificationNotes?: string | undefined;
|
|
90
|
+
notes?: string | undefined;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
export type UpsertContactsRequest = {
|
|
94
|
+
/**
|
|
95
|
+
* Contacts to add (single or bulk)
|
|
96
|
+
*/
|
|
97
|
+
contacts: Array<ContactRequest>;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export type Results = {
|
|
101
|
+
created: number;
|
|
102
|
+
updated: number;
|
|
103
|
+
skipped: number;
|
|
104
|
+
errors: Array<string>;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
export type ContactResponse = {
|
|
108
|
+
id: string;
|
|
109
|
+
linkedinUrl: string;
|
|
110
|
+
/**
|
|
111
|
+
* LinkedIn profile URN (e.g. urn:li:fsd_profile:ACoAAA...)
|
|
112
|
+
*/
|
|
113
|
+
profileUrn: string | null;
|
|
114
|
+
/**
|
|
115
|
+
* LinkedIn vanity slug (e.g. joshuaau)
|
|
116
|
+
*/
|
|
117
|
+
publicIdentifier: string | null;
|
|
118
|
+
name: string;
|
|
119
|
+
lifecycleStage: string;
|
|
120
|
+
hotScore: number;
|
|
121
|
+
qualificationNotes: string | null;
|
|
122
|
+
notes: string | null;
|
|
123
|
+
stageChangedAt: string | null;
|
|
124
|
+
profileData: any | null;
|
|
125
|
+
profileUpdatedAt: string | null;
|
|
126
|
+
conversationData: any | null;
|
|
127
|
+
conversationUpdatedAt: string | null;
|
|
128
|
+
outreachStatus: string;
|
|
129
|
+
lastContactedAt: string | null;
|
|
130
|
+
lastRepliedAt: string | null;
|
|
131
|
+
nextFollowUpAt: string | null;
|
|
132
|
+
draftNextDm: string | null;
|
|
133
|
+
draftNextDmGeneratedAt: string | null;
|
|
134
|
+
doNotContact: boolean;
|
|
135
|
+
tags: Array<string>;
|
|
136
|
+
createdAt: string;
|
|
137
|
+
updatedAt: string;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Contacts created or updated
|
|
142
|
+
*/
|
|
143
|
+
export type UpsertContactsResponse = {
|
|
144
|
+
success: true;
|
|
145
|
+
results: Results;
|
|
146
|
+
/**
|
|
147
|
+
* Full contact objects with IDs for immediate use
|
|
148
|
+
*/
|
|
149
|
+
contacts: Array<ContactResponse>;
|
|
150
|
+
/**
|
|
151
|
+
* Credits consumed by this call (always 0 for contacts queries).
|
|
152
|
+
*/
|
|
153
|
+
creditsUsed: number;
|
|
154
|
+
/**
|
|
155
|
+
* Seconds to wait before next call of the same type (always 0 for contacts queries).
|
|
156
|
+
*/
|
|
157
|
+
retryAfter: number;
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
/** @internal */
|
|
161
|
+
export const Source$outboundSchema: z.ZodMiniEnum<typeof Source> = z.enum(
|
|
162
|
+
Source,
|
|
163
|
+
);
|
|
164
|
+
|
|
165
|
+
/** @internal */
|
|
166
|
+
export const LifecycleStage$outboundSchema: z.ZodMiniEnum<
|
|
167
|
+
typeof LifecycleStage
|
|
168
|
+
> = z.enum(LifecycleStage);
|
|
169
|
+
|
|
170
|
+
/** @internal */
|
|
171
|
+
export type ContactRequest$Outbound = {
|
|
172
|
+
linkedinUrl: string;
|
|
173
|
+
profileUrn?: string | undefined;
|
|
174
|
+
publicIdentifier?: string | undefined;
|
|
175
|
+
name: string;
|
|
176
|
+
source: string;
|
|
177
|
+
sourceAngle?: string | undefined;
|
|
178
|
+
lifecycleStage: string;
|
|
179
|
+
hotScore?: number | undefined;
|
|
180
|
+
qualificationNotes?: string | undefined;
|
|
181
|
+
notes?: string | undefined;
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
/** @internal */
|
|
185
|
+
export const ContactRequest$outboundSchema: z.ZodMiniType<
|
|
186
|
+
ContactRequest$Outbound,
|
|
187
|
+
ContactRequest
|
|
188
|
+
> = z.object({
|
|
189
|
+
linkedinUrl: z.string(),
|
|
190
|
+
profileUrn: z.optional(z.string()),
|
|
191
|
+
publicIdentifier: z.optional(z.string()),
|
|
192
|
+
name: z.string(),
|
|
193
|
+
source: z._default(Source$outboundSchema, "manual_import"),
|
|
194
|
+
sourceAngle: z.optional(z.string()),
|
|
195
|
+
lifecycleStage: z._default(LifecycleStage$outboundSchema, "contact"),
|
|
196
|
+
hotScore: z.optional(z.int()),
|
|
197
|
+
qualificationNotes: z.optional(z.string()),
|
|
198
|
+
notes: z.optional(z.string()),
|
|
199
|
+
});
|
|
200
|
+
|
|
201
|
+
export function contactRequestToJSON(contactRequest: ContactRequest): string {
|
|
202
|
+
return JSON.stringify(ContactRequest$outboundSchema.parse(contactRequest));
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/** @internal */
|
|
206
|
+
export type UpsertContactsRequest$Outbound = {
|
|
207
|
+
contacts: Array<ContactRequest$Outbound>;
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
/** @internal */
|
|
211
|
+
export const UpsertContactsRequest$outboundSchema: z.ZodMiniType<
|
|
212
|
+
UpsertContactsRequest$Outbound,
|
|
213
|
+
UpsertContactsRequest
|
|
214
|
+
> = z.object({
|
|
215
|
+
contacts: z.array(z.lazy(() => ContactRequest$outboundSchema)),
|
|
216
|
+
});
|
|
217
|
+
|
|
218
|
+
export function upsertContactsRequestToJSON(
|
|
219
|
+
upsertContactsRequest: UpsertContactsRequest,
|
|
220
|
+
): string {
|
|
221
|
+
return JSON.stringify(
|
|
222
|
+
UpsertContactsRequest$outboundSchema.parse(upsertContactsRequest),
|
|
223
|
+
);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/** @internal */
|
|
227
|
+
export const Results$inboundSchema: z.ZodMiniType<Results, unknown> = z.object({
|
|
228
|
+
created: types.number(),
|
|
229
|
+
updated: types.number(),
|
|
230
|
+
skipped: types.number(),
|
|
231
|
+
errors: z.array(types.string()),
|
|
232
|
+
});
|
|
233
|
+
|
|
234
|
+
export function resultsFromJSON(
|
|
235
|
+
jsonString: string,
|
|
236
|
+
): SafeParseResult<Results, SDKValidationError> {
|
|
237
|
+
return safeParse(
|
|
238
|
+
jsonString,
|
|
239
|
+
(x) => Results$inboundSchema.parse(JSON.parse(x)),
|
|
240
|
+
`Failed to parse 'Results' from JSON`,
|
|
241
|
+
);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/** @internal */
|
|
245
|
+
export const ContactResponse$inboundSchema: z.ZodMiniType<
|
|
246
|
+
ContactResponse,
|
|
247
|
+
unknown
|
|
248
|
+
> = z.object({
|
|
249
|
+
id: types.string(),
|
|
250
|
+
linkedinUrl: types.string(),
|
|
251
|
+
profileUrn: types.nullable(types.string()),
|
|
252
|
+
publicIdentifier: types.nullable(types.string()),
|
|
253
|
+
name: types.string(),
|
|
254
|
+
lifecycleStage: types.string(),
|
|
255
|
+
hotScore: types.number(),
|
|
256
|
+
qualificationNotes: types.nullable(types.string()),
|
|
257
|
+
notes: types.nullable(types.string()),
|
|
258
|
+
stageChangedAt: types.nullable(types.string()),
|
|
259
|
+
profileData: types.nullable(z.any()),
|
|
260
|
+
profileUpdatedAt: types.nullable(types.string()),
|
|
261
|
+
conversationData: types.nullable(z.any()),
|
|
262
|
+
conversationUpdatedAt: types.nullable(types.string()),
|
|
263
|
+
outreachStatus: types.string(),
|
|
264
|
+
lastContactedAt: types.nullable(types.string()),
|
|
265
|
+
lastRepliedAt: types.nullable(types.string()),
|
|
266
|
+
nextFollowUpAt: types.nullable(types.string()),
|
|
267
|
+
draftNextDm: types.nullable(types.string()),
|
|
268
|
+
draftNextDmGeneratedAt: types.nullable(types.string()),
|
|
269
|
+
doNotContact: types.boolean(),
|
|
270
|
+
tags: z.array(types.string()),
|
|
271
|
+
createdAt: types.string(),
|
|
272
|
+
updatedAt: types.string(),
|
|
273
|
+
});
|
|
274
|
+
|
|
275
|
+
export function contactResponseFromJSON(
|
|
276
|
+
jsonString: string,
|
|
277
|
+
): SafeParseResult<ContactResponse, SDKValidationError> {
|
|
278
|
+
return safeParse(
|
|
279
|
+
jsonString,
|
|
280
|
+
(x) => ContactResponse$inboundSchema.parse(JSON.parse(x)),
|
|
281
|
+
`Failed to parse 'ContactResponse' from JSON`,
|
|
282
|
+
);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/** @internal */
|
|
286
|
+
export const UpsertContactsResponse$inboundSchema: z.ZodMiniType<
|
|
287
|
+
UpsertContactsResponse,
|
|
288
|
+
unknown
|
|
289
|
+
> = z.object({
|
|
290
|
+
success: types.literal(true),
|
|
291
|
+
results: z.lazy(() => Results$inboundSchema),
|
|
292
|
+
contacts: z.array(z.lazy(() => ContactResponse$inboundSchema)),
|
|
293
|
+
creditsUsed: types.number(),
|
|
294
|
+
retryAfter: types.number(),
|
|
295
|
+
});
|
|
296
|
+
|
|
297
|
+
export function upsertContactsResponseFromJSON(
|
|
298
|
+
jsonString: string,
|
|
299
|
+
): SafeParseResult<UpsertContactsResponse, SDKValidationError> {
|
|
300
|
+
return safeParse(
|
|
301
|
+
jsonString,
|
|
302
|
+
(x) => UpsertContactsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
303
|
+
`Failed to parse 'UpsertContactsResponse' from JSON`,
|
|
304
|
+
);
|
|
305
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { actionsConnectProfile } from "../funcs/actions-connect-profile.js";
|
|
6
|
+
import { actionsFollowCompany } from "../funcs/actions-follow-company.js";
|
|
7
|
+
import { actionsListSentInvitations } from "../funcs/actions-list-sent-invitations.js";
|
|
8
|
+
import { actionsSendMessage } from "../funcs/actions-send-message.js";
|
|
9
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import * as operations from "../models/operations/index.js";
|
|
11
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
12
|
+
|
|
13
|
+
export class Actions extends ClientSDK {
|
|
14
|
+
/**
|
|
15
|
+
* Send LinkedIn connection request
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Authenticates the requester, validates LinkedIn credentials, and sends a connection request to the specified LinkedIn profile. Rate limited to 80 requests per day per user.
|
|
19
|
+
*/
|
|
20
|
+
async connectProfile(
|
|
21
|
+
request: operations.ConnectLinkedInProfileRequest,
|
|
22
|
+
options?: RequestOptions,
|
|
23
|
+
): Promise<operations.ConnectLinkedInProfileResponse> {
|
|
24
|
+
return unwrapAsync(actionsConnectProfile(
|
|
25
|
+
this,
|
|
26
|
+
request,
|
|
27
|
+
options,
|
|
28
|
+
));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Send LinkedIn message
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* Authenticates the requester, validates LinkedIn credentials, and sends a message to the specified LinkedIn recipient. Rate limited to 150 messages per day per user.
|
|
36
|
+
*/
|
|
37
|
+
async sendMessage(
|
|
38
|
+
request: operations.SendLinkedInMessageRequest,
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): Promise<operations.SendLinkedInMessageResponse> {
|
|
41
|
+
return unwrapAsync(actionsSendMessage(
|
|
42
|
+
this,
|
|
43
|
+
request,
|
|
44
|
+
options,
|
|
45
|
+
));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* List sent connection invitations
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
52
|
+
* List sent (pending) LinkedIn connection invitations. 1 credit.
|
|
53
|
+
*/
|
|
54
|
+
async listSentInvitations(
|
|
55
|
+
request: operations.ListSentLinkedInInvitationsRequest,
|
|
56
|
+
options?: RequestOptions,
|
|
57
|
+
): Promise<operations.ListSentLinkedInInvitationsResponse> {
|
|
58
|
+
return unwrapAsync(actionsListSentInvitations(
|
|
59
|
+
this,
|
|
60
|
+
request,
|
|
61
|
+
options,
|
|
62
|
+
));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Follow a company
|
|
67
|
+
*
|
|
68
|
+
* @remarks
|
|
69
|
+
* Follow a LinkedIn company page. 0 credits.
|
|
70
|
+
*/
|
|
71
|
+
async followCompany(
|
|
72
|
+
request: operations.FollowLinkedInCompanyRequest,
|
|
73
|
+
options?: RequestOptions,
|
|
74
|
+
): Promise<operations.FollowLinkedInCompanyResponse> {
|
|
75
|
+
return unwrapAsync(actionsFollowCompany(
|
|
76
|
+
this,
|
|
77
|
+
request,
|
|
78
|
+
options,
|
|
79
|
+
));
|
|
80
|
+
}
|
|
81
|
+
}
|
package/src/sdk/campaigns.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { campaignsFilter } from "../funcs/campaigns-filter.js";
|
|
6
6
|
import { campaignsGetStats } from "../funcs/campaigns-get-stats.js";
|
|
7
7
|
import { campaignsGetStatus } from "../funcs/campaigns-get-status.js";
|
|
8
|
-
import {
|
|
8
|
+
import { campaignsSync } from "../funcs/campaigns-sync.js";
|
|
9
9
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
10
10
|
import * as operations from "../models/operations/index.js";
|
|
11
11
|
import { unwrapAsync } from "../types/fp.js";
|
|
@@ -53,11 +53,11 @@ export class Campaigns extends ClientSDK {
|
|
|
53
53
|
* @remarks
|
|
54
54
|
* Manually mark actions as completed for profiles within a campaign. Use when actions were performed outside the API (e.g. manual DMs) and need to be synced. 0 credits, no rate limit.
|
|
55
55
|
*/
|
|
56
|
-
async
|
|
56
|
+
async sync(
|
|
57
57
|
request: operations.SyncCampaignActionsRequest,
|
|
58
58
|
options?: RequestOptions,
|
|
59
59
|
): Promise<operations.SyncCampaignActionsResponse> {
|
|
60
|
-
return unwrapAsync(
|
|
60
|
+
return unwrapAsync(campaignsSync(
|
|
61
61
|
this,
|
|
62
62
|
request,
|
|
63
63
|
options,
|
|
@@ -2,32 +2,15 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { chatArchive } from "../funcs/chat-archive.js";
|
|
6
|
+
import { chatFindConversation } from "../funcs/chat-find-conversation.js";
|
|
7
|
+
import { chatSearchConversations } from "../funcs/chat-search-conversations.js";
|
|
8
|
+
import { chatUnreact } from "../funcs/chat-unreact.js";
|
|
9
9
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
10
10
|
import * as operations from "../models/operations/index.js";
|
|
11
11
|
import { unwrapAsync } from "../types/fp.js";
|
|
12
12
|
|
|
13
|
-
export class
|
|
14
|
-
/**
|
|
15
|
-
* List LinkedIn inbox conversations
|
|
16
|
-
*
|
|
17
|
-
* @remarks
|
|
18
|
-
* List inbox conversations for the authenticated user. Returns conversations with participants, last message, and read status. Paginate via nextCursor.
|
|
19
|
-
*/
|
|
20
|
-
async listConversations(
|
|
21
|
-
request: operations.ListInboxConversationsRequest,
|
|
22
|
-
options?: RequestOptions,
|
|
23
|
-
): Promise<operations.ListInboxConversationsResponse> {
|
|
24
|
-
return unwrapAsync(linkedinChatListConversations(
|
|
25
|
-
this,
|
|
26
|
-
request,
|
|
27
|
-
options,
|
|
28
|
-
));
|
|
29
|
-
}
|
|
30
|
-
|
|
13
|
+
export class Chat extends ClientSDK {
|
|
31
14
|
/**
|
|
32
15
|
* Search LinkedIn conversations
|
|
33
16
|
*
|
|
@@ -38,7 +21,7 @@ export class LinkedinChat extends ClientSDK {
|
|
|
38
21
|
request: operations.SearchLinkedInConversationsRequest,
|
|
39
22
|
options?: RequestOptions,
|
|
40
23
|
): Promise<operations.SearchLinkedInConversationsResponse> {
|
|
41
|
-
return unwrapAsync(
|
|
24
|
+
return unwrapAsync(chatSearchConversations(
|
|
42
25
|
this,
|
|
43
26
|
request,
|
|
44
27
|
options,
|
|
@@ -62,7 +45,7 @@ export class LinkedinChat extends ClientSDK {
|
|
|
62
45
|
request: operations.FindLinkedInConversationRequest,
|
|
63
46
|
options?: RequestOptions,
|
|
64
47
|
): Promise<operations.FindLinkedInConversationResponse> {
|
|
65
|
-
return unwrapAsync(
|
|
48
|
+
return unwrapAsync(chatFindConversation(
|
|
66
49
|
this,
|
|
67
50
|
request,
|
|
68
51
|
options,
|
|
@@ -70,20 +53,33 @@ export class LinkedinChat extends ClientSDK {
|
|
|
70
53
|
}
|
|
71
54
|
|
|
72
55
|
/**
|
|
73
|
-
*
|
|
56
|
+
* Archive a conversation
|
|
74
57
|
*
|
|
75
58
|
* @remarks
|
|
76
|
-
*
|
|
77
|
-
|
|
78
|
-
|
|
59
|
+
* Move a LinkedIn conversation to the archive. 0 credits.
|
|
60
|
+
*/
|
|
61
|
+
async archive(
|
|
62
|
+
request: operations.ArchiveConversationRequest,
|
|
63
|
+
options?: RequestOptions,
|
|
64
|
+
): Promise<operations.ArchiveConversationResponse> {
|
|
65
|
+
return unwrapAsync(chatArchive(
|
|
66
|
+
this,
|
|
67
|
+
request,
|
|
68
|
+
options,
|
|
69
|
+
));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Remove emoji reaction from a message
|
|
79
74
|
*
|
|
80
|
-
*
|
|
75
|
+
* @remarks
|
|
76
|
+
* Remove an emoji reaction from a LinkedIn message. 0 credits.
|
|
81
77
|
*/
|
|
82
|
-
async
|
|
83
|
-
request: operations.
|
|
78
|
+
async unreact(
|
|
79
|
+
request: operations.UnreactToMessageRequest,
|
|
84
80
|
options?: RequestOptions,
|
|
85
|
-
): Promise<operations.
|
|
86
|
-
return unwrapAsync(
|
|
81
|
+
): Promise<operations.UnreactToMessageResponse> {
|
|
82
|
+
return unwrapAsync(chatUnreact(
|
|
87
83
|
this,
|
|
88
84
|
request,
|
|
89
85
|
options,
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { companyPagesGetAnalytics } from "../funcs/company-pages-get-analytics.js";
|
|
6
|
+
import { companyPagesGetPermissions } from "../funcs/company-pages-get-permissions.js";
|
|
7
|
+
import { companyPagesGetPosts } from "../funcs/company-pages-get-posts.js";
|
|
8
|
+
import { companyPagesList } from "../funcs/company-pages-list.js";
|
|
9
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import * as operations from "../models/operations/index.js";
|
|
11
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
12
|
+
|
|
13
|
+
export class CompanyPages extends ClientSDK {
|
|
14
|
+
/**
|
|
15
|
+
* List company pages the user administers
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Returns LinkedIn company pages where the authenticated user has admin access. Uses the Voyager organization admin API. Costs 1 credit.
|
|
19
|
+
*/
|
|
20
|
+
async list(
|
|
21
|
+
options?: RequestOptions,
|
|
22
|
+
): Promise<operations.ListLinkedInCompanyPagesResponse> {
|
|
23
|
+
return unwrapAsync(companyPagesList(
|
|
24
|
+
this,
|
|
25
|
+
options,
|
|
26
|
+
));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Get recent posts from a company page
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Fetch the most recent posts from a LinkedIn company page feed. Requires admin access to the company page. Costs 1 credit.
|
|
34
|
+
*/
|
|
35
|
+
async getPosts(
|
|
36
|
+
request: operations.GetCompanyPagePostsRequest,
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): Promise<operations.GetCompanyPagePostsResponse> {
|
|
39
|
+
return unwrapAsync(companyPagesGetPosts(
|
|
40
|
+
this,
|
|
41
|
+
request,
|
|
42
|
+
options,
|
|
43
|
+
));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Get admin permissions for a company page
|
|
48
|
+
*
|
|
49
|
+
* @remarks
|
|
50
|
+
* Returns the authenticated user's admin permissions on a given LinkedIn company page. Use this to check what actions (post, comment, like, message, analytics) are available before calling write endpoints. Costs 1 credit.
|
|
51
|
+
*/
|
|
52
|
+
async getPermissions(
|
|
53
|
+
request: operations.GetCompanyPagePermissionsRequest,
|
|
54
|
+
options?: RequestOptions,
|
|
55
|
+
): Promise<operations.GetCompanyPagePermissionsResponse> {
|
|
56
|
+
return unwrapAsync(companyPagesGetPermissions(
|
|
57
|
+
this,
|
|
58
|
+
request,
|
|
59
|
+
options,
|
|
60
|
+
));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Get company page overview analytics
|
|
65
|
+
*
|
|
66
|
+
* @remarks
|
|
67
|
+
* Returns overview analytics for a company page including visitor count, employee count, founding date, headquarters, description, and more. Costs 1 credit.
|
|
68
|
+
*/
|
|
69
|
+
async getAnalytics(
|
|
70
|
+
request: operations.GetCompanyPageAnalyticsRequest,
|
|
71
|
+
options?: RequestOptions,
|
|
72
|
+
): Promise<operations.GetCompanyPageAnalyticsResponse> {
|
|
73
|
+
return unwrapAsync(companyPagesGetAnalytics(
|
|
74
|
+
this,
|
|
75
|
+
request,
|
|
76
|
+
options,
|
|
77
|
+
));
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { contactsUpsert } from "../funcs/contacts-upsert.js";
|
|
6
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
|
+
import * as operations from "../models/operations/index.js";
|
|
8
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
9
|
+
|
|
10
|
+
export class Contacts extends ClientSDK {
|
|
11
|
+
/**
|
|
12
|
+
* Create or upsert contacts (no campaign required)
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Save contacts organically without creating a campaign first. Upserts by LinkedIn URL — if the contact already exists for this user, it updates the name and optional fields. Returns full contact objects with IDs so the AI agent can immediately log activities and update lifecycle stages.
|
|
16
|
+
*/
|
|
17
|
+
async upsert(
|
|
18
|
+
request: operations.UpsertContactsRequest,
|
|
19
|
+
options?: RequestOptions,
|
|
20
|
+
): Promise<operations.UpsertContactsResponse> {
|
|
21
|
+
return unwrapAsync(contactsUpsert(
|
|
22
|
+
this,
|
|
23
|
+
request,
|
|
24
|
+
options,
|
|
25
|
+
));
|
|
26
|
+
}
|
|
27
|
+
}
|