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,215 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { BereachCore } from "../core.js";
|
|
7
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import { BereachError } from "../models/errors/bereach-error.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/http-client-errors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Mark a conversation as read
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Mark a LinkedIn conversation as read/seen. 0 credits.
|
|
34
|
+
*/
|
|
35
|
+
export function linkedInChatMarkSeen(
|
|
36
|
+
client: BereachCore,
|
|
37
|
+
request: operations.MarkConversationSeenRequest,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<
|
|
40
|
+
Result<
|
|
41
|
+
operations.MarkConversationSeenResponse,
|
|
42
|
+
| errors.BadRequestError
|
|
43
|
+
| errors.UnauthorizedError
|
|
44
|
+
| errors.ForbiddenError
|
|
45
|
+
| errors.NotFoundError
|
|
46
|
+
| errors.ConflictError
|
|
47
|
+
| errors.GoneError
|
|
48
|
+
| errors.UnprocessableEntityError
|
|
49
|
+
| errors.TooManyRequestsError
|
|
50
|
+
| errors.InternalServerError
|
|
51
|
+
| BereachError
|
|
52
|
+
| ResponseValidationError
|
|
53
|
+
| ConnectionError
|
|
54
|
+
| RequestAbortedError
|
|
55
|
+
| RequestTimeoutError
|
|
56
|
+
| InvalidRequestError
|
|
57
|
+
| UnexpectedClientError
|
|
58
|
+
| SDKValidationError
|
|
59
|
+
>
|
|
60
|
+
> {
|
|
61
|
+
return new APIPromise($do(
|
|
62
|
+
client,
|
|
63
|
+
request,
|
|
64
|
+
options,
|
|
65
|
+
));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
async function $do(
|
|
69
|
+
client: BereachCore,
|
|
70
|
+
request: operations.MarkConversationSeenRequest,
|
|
71
|
+
options?: RequestOptions,
|
|
72
|
+
): Promise<
|
|
73
|
+
[
|
|
74
|
+
Result<
|
|
75
|
+
operations.MarkConversationSeenResponse,
|
|
76
|
+
| errors.BadRequestError
|
|
77
|
+
| errors.UnauthorizedError
|
|
78
|
+
| errors.ForbiddenError
|
|
79
|
+
| errors.NotFoundError
|
|
80
|
+
| errors.ConflictError
|
|
81
|
+
| errors.GoneError
|
|
82
|
+
| errors.UnprocessableEntityError
|
|
83
|
+
| errors.TooManyRequestsError
|
|
84
|
+
| errors.InternalServerError
|
|
85
|
+
| BereachError
|
|
86
|
+
| ResponseValidationError
|
|
87
|
+
| ConnectionError
|
|
88
|
+
| RequestAbortedError
|
|
89
|
+
| RequestTimeoutError
|
|
90
|
+
| InvalidRequestError
|
|
91
|
+
| UnexpectedClientError
|
|
92
|
+
| SDKValidationError
|
|
93
|
+
>,
|
|
94
|
+
APICall,
|
|
95
|
+
]
|
|
96
|
+
> {
|
|
97
|
+
const parsed = safeParse(
|
|
98
|
+
request,
|
|
99
|
+
(value) =>
|
|
100
|
+
z.parse(operations.MarkConversationSeenRequest$outboundSchema, value),
|
|
101
|
+
"Input validation failed",
|
|
102
|
+
);
|
|
103
|
+
if (!parsed.ok) {
|
|
104
|
+
return [parsed, { status: "invalid" }];
|
|
105
|
+
}
|
|
106
|
+
const payload = parsed.value;
|
|
107
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
108
|
+
|
|
109
|
+
const path = pathToFunc("/chats/linkedin/mark-seen")();
|
|
110
|
+
|
|
111
|
+
const headers = new Headers(compactMap({
|
|
112
|
+
"Content-Type": "application/json",
|
|
113
|
+
Accept: "application/json",
|
|
114
|
+
}));
|
|
115
|
+
|
|
116
|
+
const secConfig = await extractSecurity(client._options.token);
|
|
117
|
+
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
118
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
119
|
+
|
|
120
|
+
const context = {
|
|
121
|
+
options: client._options,
|
|
122
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
123
|
+
operationID: "markConversationSeen",
|
|
124
|
+
oAuth2Scopes: null,
|
|
125
|
+
|
|
126
|
+
resolvedSecurity: requestSecurity,
|
|
127
|
+
|
|
128
|
+
securitySource: client._options.token,
|
|
129
|
+
retryConfig: options?.retries
|
|
130
|
+
|| client._options.retryConfig
|
|
131
|
+
|| { strategy: "none" },
|
|
132
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
const requestRes = client._createRequest(context, {
|
|
136
|
+
security: requestSecurity,
|
|
137
|
+
method: "POST",
|
|
138
|
+
baseURL: options?.serverURL,
|
|
139
|
+
path: path,
|
|
140
|
+
headers: headers,
|
|
141
|
+
body: body,
|
|
142
|
+
userAgent: client._options.userAgent,
|
|
143
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
144
|
+
}, options);
|
|
145
|
+
if (!requestRes.ok) {
|
|
146
|
+
return [requestRes, { status: "invalid" }];
|
|
147
|
+
}
|
|
148
|
+
const req = requestRes.value;
|
|
149
|
+
|
|
150
|
+
const doResult = await client._do(req, {
|
|
151
|
+
context,
|
|
152
|
+
errorCodes: [
|
|
153
|
+
"400",
|
|
154
|
+
"401",
|
|
155
|
+
"403",
|
|
156
|
+
"404",
|
|
157
|
+
"409",
|
|
158
|
+
"410",
|
|
159
|
+
"422",
|
|
160
|
+
"429",
|
|
161
|
+
"4XX",
|
|
162
|
+
"500",
|
|
163
|
+
"5XX",
|
|
164
|
+
],
|
|
165
|
+
retryConfig: context.retryConfig,
|
|
166
|
+
retryCodes: context.retryCodes,
|
|
167
|
+
});
|
|
168
|
+
if (!doResult.ok) {
|
|
169
|
+
return [doResult, { status: "request-error", request: req }];
|
|
170
|
+
}
|
|
171
|
+
const response = doResult.value;
|
|
172
|
+
|
|
173
|
+
const responseFields = {
|
|
174
|
+
HttpMeta: { Response: response, Request: req },
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
const [result] = await M.match<
|
|
178
|
+
operations.MarkConversationSeenResponse,
|
|
179
|
+
| errors.BadRequestError
|
|
180
|
+
| errors.UnauthorizedError
|
|
181
|
+
| errors.ForbiddenError
|
|
182
|
+
| errors.NotFoundError
|
|
183
|
+
| errors.ConflictError
|
|
184
|
+
| errors.GoneError
|
|
185
|
+
| errors.UnprocessableEntityError
|
|
186
|
+
| errors.TooManyRequestsError
|
|
187
|
+
| errors.InternalServerError
|
|
188
|
+
| BereachError
|
|
189
|
+
| ResponseValidationError
|
|
190
|
+
| ConnectionError
|
|
191
|
+
| RequestAbortedError
|
|
192
|
+
| RequestTimeoutError
|
|
193
|
+
| InvalidRequestError
|
|
194
|
+
| UnexpectedClientError
|
|
195
|
+
| SDKValidationError
|
|
196
|
+
>(
|
|
197
|
+
M.json(200, operations.MarkConversationSeenResponse$inboundSchema),
|
|
198
|
+
M.jsonErr(400, errors.BadRequestError$inboundSchema),
|
|
199
|
+
M.jsonErr(401, errors.UnauthorizedError$inboundSchema),
|
|
200
|
+
M.jsonErr(403, errors.ForbiddenError$inboundSchema),
|
|
201
|
+
M.jsonErr(404, errors.NotFoundError$inboundSchema),
|
|
202
|
+
M.jsonErr(409, errors.ConflictError$inboundSchema),
|
|
203
|
+
M.jsonErr(410, errors.GoneError$inboundSchema),
|
|
204
|
+
M.jsonErr(422, errors.UnprocessableEntityError$inboundSchema),
|
|
205
|
+
M.jsonErr(429, errors.TooManyRequestsError$inboundSchema),
|
|
206
|
+
M.jsonErr(500, errors.InternalServerError$inboundSchema),
|
|
207
|
+
M.fail("4XX"),
|
|
208
|
+
M.fail("5XX"),
|
|
209
|
+
)(response, req, { extraFields: responseFields });
|
|
210
|
+
if (!result.ok) {
|
|
211
|
+
return [result, { status: "complete", request: req, response }];
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
return [result, { status: "complete", request: req, response }];
|
|
215
|
+
}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { BereachCore } from "../core.js";
|
|
7
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import { BereachError } from "../models/errors/bereach-error.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/http-client-errors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Star a conversation
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Star/favorite a LinkedIn conversation. 0 credits.
|
|
34
|
+
*/
|
|
35
|
+
export function linkedInChatStar(
|
|
36
|
+
client: BereachCore,
|
|
37
|
+
request: operations.StarConversationRequest,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<
|
|
40
|
+
Result<
|
|
41
|
+
operations.StarConversationResponse,
|
|
42
|
+
| errors.BadRequestError
|
|
43
|
+
| errors.UnauthorizedError
|
|
44
|
+
| errors.ForbiddenError
|
|
45
|
+
| errors.NotFoundError
|
|
46
|
+
| errors.ConflictError
|
|
47
|
+
| errors.GoneError
|
|
48
|
+
| errors.UnprocessableEntityError
|
|
49
|
+
| errors.TooManyRequestsError
|
|
50
|
+
| errors.InternalServerError
|
|
51
|
+
| BereachError
|
|
52
|
+
| ResponseValidationError
|
|
53
|
+
| ConnectionError
|
|
54
|
+
| RequestAbortedError
|
|
55
|
+
| RequestTimeoutError
|
|
56
|
+
| InvalidRequestError
|
|
57
|
+
| UnexpectedClientError
|
|
58
|
+
| SDKValidationError
|
|
59
|
+
>
|
|
60
|
+
> {
|
|
61
|
+
return new APIPromise($do(
|
|
62
|
+
client,
|
|
63
|
+
request,
|
|
64
|
+
options,
|
|
65
|
+
));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
async function $do(
|
|
69
|
+
client: BereachCore,
|
|
70
|
+
request: operations.StarConversationRequest,
|
|
71
|
+
options?: RequestOptions,
|
|
72
|
+
): Promise<
|
|
73
|
+
[
|
|
74
|
+
Result<
|
|
75
|
+
operations.StarConversationResponse,
|
|
76
|
+
| errors.BadRequestError
|
|
77
|
+
| errors.UnauthorizedError
|
|
78
|
+
| errors.ForbiddenError
|
|
79
|
+
| errors.NotFoundError
|
|
80
|
+
| errors.ConflictError
|
|
81
|
+
| errors.GoneError
|
|
82
|
+
| errors.UnprocessableEntityError
|
|
83
|
+
| errors.TooManyRequestsError
|
|
84
|
+
| errors.InternalServerError
|
|
85
|
+
| BereachError
|
|
86
|
+
| ResponseValidationError
|
|
87
|
+
| ConnectionError
|
|
88
|
+
| RequestAbortedError
|
|
89
|
+
| RequestTimeoutError
|
|
90
|
+
| InvalidRequestError
|
|
91
|
+
| UnexpectedClientError
|
|
92
|
+
| SDKValidationError
|
|
93
|
+
>,
|
|
94
|
+
APICall,
|
|
95
|
+
]
|
|
96
|
+
> {
|
|
97
|
+
const parsed = safeParse(
|
|
98
|
+
request,
|
|
99
|
+
(value) =>
|
|
100
|
+
z.parse(operations.StarConversationRequest$outboundSchema, value),
|
|
101
|
+
"Input validation failed",
|
|
102
|
+
);
|
|
103
|
+
if (!parsed.ok) {
|
|
104
|
+
return [parsed, { status: "invalid" }];
|
|
105
|
+
}
|
|
106
|
+
const payload = parsed.value;
|
|
107
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
108
|
+
|
|
109
|
+
const path = pathToFunc("/chats/linkedin/star")();
|
|
110
|
+
|
|
111
|
+
const headers = new Headers(compactMap({
|
|
112
|
+
"Content-Type": "application/json",
|
|
113
|
+
Accept: "application/json",
|
|
114
|
+
}));
|
|
115
|
+
|
|
116
|
+
const secConfig = await extractSecurity(client._options.token);
|
|
117
|
+
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
118
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
119
|
+
|
|
120
|
+
const context = {
|
|
121
|
+
options: client._options,
|
|
122
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
123
|
+
operationID: "starConversation",
|
|
124
|
+
oAuth2Scopes: null,
|
|
125
|
+
|
|
126
|
+
resolvedSecurity: requestSecurity,
|
|
127
|
+
|
|
128
|
+
securitySource: client._options.token,
|
|
129
|
+
retryConfig: options?.retries
|
|
130
|
+
|| client._options.retryConfig
|
|
131
|
+
|| { strategy: "none" },
|
|
132
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
const requestRes = client._createRequest(context, {
|
|
136
|
+
security: requestSecurity,
|
|
137
|
+
method: "POST",
|
|
138
|
+
baseURL: options?.serverURL,
|
|
139
|
+
path: path,
|
|
140
|
+
headers: headers,
|
|
141
|
+
body: body,
|
|
142
|
+
userAgent: client._options.userAgent,
|
|
143
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
144
|
+
}, options);
|
|
145
|
+
if (!requestRes.ok) {
|
|
146
|
+
return [requestRes, { status: "invalid" }];
|
|
147
|
+
}
|
|
148
|
+
const req = requestRes.value;
|
|
149
|
+
|
|
150
|
+
const doResult = await client._do(req, {
|
|
151
|
+
context,
|
|
152
|
+
errorCodes: [
|
|
153
|
+
"400",
|
|
154
|
+
"401",
|
|
155
|
+
"403",
|
|
156
|
+
"404",
|
|
157
|
+
"409",
|
|
158
|
+
"410",
|
|
159
|
+
"422",
|
|
160
|
+
"429",
|
|
161
|
+
"4XX",
|
|
162
|
+
"500",
|
|
163
|
+
"5XX",
|
|
164
|
+
],
|
|
165
|
+
retryConfig: context.retryConfig,
|
|
166
|
+
retryCodes: context.retryCodes,
|
|
167
|
+
});
|
|
168
|
+
if (!doResult.ok) {
|
|
169
|
+
return [doResult, { status: "request-error", request: req }];
|
|
170
|
+
}
|
|
171
|
+
const response = doResult.value;
|
|
172
|
+
|
|
173
|
+
const responseFields = {
|
|
174
|
+
HttpMeta: { Response: response, Request: req },
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
const [result] = await M.match<
|
|
178
|
+
operations.StarConversationResponse,
|
|
179
|
+
| errors.BadRequestError
|
|
180
|
+
| errors.UnauthorizedError
|
|
181
|
+
| errors.ForbiddenError
|
|
182
|
+
| errors.NotFoundError
|
|
183
|
+
| errors.ConflictError
|
|
184
|
+
| errors.GoneError
|
|
185
|
+
| errors.UnprocessableEntityError
|
|
186
|
+
| errors.TooManyRequestsError
|
|
187
|
+
| errors.InternalServerError
|
|
188
|
+
| BereachError
|
|
189
|
+
| ResponseValidationError
|
|
190
|
+
| ConnectionError
|
|
191
|
+
| RequestAbortedError
|
|
192
|
+
| RequestTimeoutError
|
|
193
|
+
| InvalidRequestError
|
|
194
|
+
| UnexpectedClientError
|
|
195
|
+
| SDKValidationError
|
|
196
|
+
>(
|
|
197
|
+
M.json(200, operations.StarConversationResponse$inboundSchema),
|
|
198
|
+
M.jsonErr(400, errors.BadRequestError$inboundSchema),
|
|
199
|
+
M.jsonErr(401, errors.UnauthorizedError$inboundSchema),
|
|
200
|
+
M.jsonErr(403, errors.ForbiddenError$inboundSchema),
|
|
201
|
+
M.jsonErr(404, errors.NotFoundError$inboundSchema),
|
|
202
|
+
M.jsonErr(409, errors.ConflictError$inboundSchema),
|
|
203
|
+
M.jsonErr(410, errors.GoneError$inboundSchema),
|
|
204
|
+
M.jsonErr(422, errors.UnprocessableEntityError$inboundSchema),
|
|
205
|
+
M.jsonErr(429, errors.TooManyRequestsError$inboundSchema),
|
|
206
|
+
M.jsonErr(500, errors.InternalServerError$inboundSchema),
|
|
207
|
+
M.fail("4XX"),
|
|
208
|
+
M.fail("5XX"),
|
|
209
|
+
)(response, req, { extraFields: responseFields });
|
|
210
|
+
if (!result.ok) {
|
|
211
|
+
return [result, { status: "complete", request: req, response }];
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
return [result, { status: "complete", request: req, response }];
|
|
215
|
+
}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { BereachCore } from "../core.js";
|
|
7
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import { BereachError } from "../models/errors/bereach-error.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/http-client-errors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Unarchive a conversation
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Move a LinkedIn conversation back from archive to inbox. 0 credits.
|
|
34
|
+
*/
|
|
35
|
+
export function linkedInChatUnarchive(
|
|
36
|
+
client: BereachCore,
|
|
37
|
+
request: operations.UnarchiveConversationRequest,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<
|
|
40
|
+
Result<
|
|
41
|
+
operations.UnarchiveConversationResponse,
|
|
42
|
+
| errors.BadRequestError
|
|
43
|
+
| errors.UnauthorizedError
|
|
44
|
+
| errors.ForbiddenError
|
|
45
|
+
| errors.NotFoundError
|
|
46
|
+
| errors.ConflictError
|
|
47
|
+
| errors.GoneError
|
|
48
|
+
| errors.UnprocessableEntityError
|
|
49
|
+
| errors.TooManyRequestsError
|
|
50
|
+
| errors.InternalServerError
|
|
51
|
+
| BereachError
|
|
52
|
+
| ResponseValidationError
|
|
53
|
+
| ConnectionError
|
|
54
|
+
| RequestAbortedError
|
|
55
|
+
| RequestTimeoutError
|
|
56
|
+
| InvalidRequestError
|
|
57
|
+
| UnexpectedClientError
|
|
58
|
+
| SDKValidationError
|
|
59
|
+
>
|
|
60
|
+
> {
|
|
61
|
+
return new APIPromise($do(
|
|
62
|
+
client,
|
|
63
|
+
request,
|
|
64
|
+
options,
|
|
65
|
+
));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
async function $do(
|
|
69
|
+
client: BereachCore,
|
|
70
|
+
request: operations.UnarchiveConversationRequest,
|
|
71
|
+
options?: RequestOptions,
|
|
72
|
+
): Promise<
|
|
73
|
+
[
|
|
74
|
+
Result<
|
|
75
|
+
operations.UnarchiveConversationResponse,
|
|
76
|
+
| errors.BadRequestError
|
|
77
|
+
| errors.UnauthorizedError
|
|
78
|
+
| errors.ForbiddenError
|
|
79
|
+
| errors.NotFoundError
|
|
80
|
+
| errors.ConflictError
|
|
81
|
+
| errors.GoneError
|
|
82
|
+
| errors.UnprocessableEntityError
|
|
83
|
+
| errors.TooManyRequestsError
|
|
84
|
+
| errors.InternalServerError
|
|
85
|
+
| BereachError
|
|
86
|
+
| ResponseValidationError
|
|
87
|
+
| ConnectionError
|
|
88
|
+
| RequestAbortedError
|
|
89
|
+
| RequestTimeoutError
|
|
90
|
+
| InvalidRequestError
|
|
91
|
+
| UnexpectedClientError
|
|
92
|
+
| SDKValidationError
|
|
93
|
+
>,
|
|
94
|
+
APICall,
|
|
95
|
+
]
|
|
96
|
+
> {
|
|
97
|
+
const parsed = safeParse(
|
|
98
|
+
request,
|
|
99
|
+
(value) =>
|
|
100
|
+
z.parse(operations.UnarchiveConversationRequest$outboundSchema, value),
|
|
101
|
+
"Input validation failed",
|
|
102
|
+
);
|
|
103
|
+
if (!parsed.ok) {
|
|
104
|
+
return [parsed, { status: "invalid" }];
|
|
105
|
+
}
|
|
106
|
+
const payload = parsed.value;
|
|
107
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
108
|
+
|
|
109
|
+
const path = pathToFunc("/chats/linkedin/unarchive")();
|
|
110
|
+
|
|
111
|
+
const headers = new Headers(compactMap({
|
|
112
|
+
"Content-Type": "application/json",
|
|
113
|
+
Accept: "application/json",
|
|
114
|
+
}));
|
|
115
|
+
|
|
116
|
+
const secConfig = await extractSecurity(client._options.token);
|
|
117
|
+
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
118
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
119
|
+
|
|
120
|
+
const context = {
|
|
121
|
+
options: client._options,
|
|
122
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
123
|
+
operationID: "unarchiveConversation",
|
|
124
|
+
oAuth2Scopes: null,
|
|
125
|
+
|
|
126
|
+
resolvedSecurity: requestSecurity,
|
|
127
|
+
|
|
128
|
+
securitySource: client._options.token,
|
|
129
|
+
retryConfig: options?.retries
|
|
130
|
+
|| client._options.retryConfig
|
|
131
|
+
|| { strategy: "none" },
|
|
132
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
const requestRes = client._createRequest(context, {
|
|
136
|
+
security: requestSecurity,
|
|
137
|
+
method: "POST",
|
|
138
|
+
baseURL: options?.serverURL,
|
|
139
|
+
path: path,
|
|
140
|
+
headers: headers,
|
|
141
|
+
body: body,
|
|
142
|
+
userAgent: client._options.userAgent,
|
|
143
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
144
|
+
}, options);
|
|
145
|
+
if (!requestRes.ok) {
|
|
146
|
+
return [requestRes, { status: "invalid" }];
|
|
147
|
+
}
|
|
148
|
+
const req = requestRes.value;
|
|
149
|
+
|
|
150
|
+
const doResult = await client._do(req, {
|
|
151
|
+
context,
|
|
152
|
+
errorCodes: [
|
|
153
|
+
"400",
|
|
154
|
+
"401",
|
|
155
|
+
"403",
|
|
156
|
+
"404",
|
|
157
|
+
"409",
|
|
158
|
+
"410",
|
|
159
|
+
"422",
|
|
160
|
+
"429",
|
|
161
|
+
"4XX",
|
|
162
|
+
"500",
|
|
163
|
+
"5XX",
|
|
164
|
+
],
|
|
165
|
+
retryConfig: context.retryConfig,
|
|
166
|
+
retryCodes: context.retryCodes,
|
|
167
|
+
});
|
|
168
|
+
if (!doResult.ok) {
|
|
169
|
+
return [doResult, { status: "request-error", request: req }];
|
|
170
|
+
}
|
|
171
|
+
const response = doResult.value;
|
|
172
|
+
|
|
173
|
+
const responseFields = {
|
|
174
|
+
HttpMeta: { Response: response, Request: req },
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
const [result] = await M.match<
|
|
178
|
+
operations.UnarchiveConversationResponse,
|
|
179
|
+
| errors.BadRequestError
|
|
180
|
+
| errors.UnauthorizedError
|
|
181
|
+
| errors.ForbiddenError
|
|
182
|
+
| errors.NotFoundError
|
|
183
|
+
| errors.ConflictError
|
|
184
|
+
| errors.GoneError
|
|
185
|
+
| errors.UnprocessableEntityError
|
|
186
|
+
| errors.TooManyRequestsError
|
|
187
|
+
| errors.InternalServerError
|
|
188
|
+
| BereachError
|
|
189
|
+
| ResponseValidationError
|
|
190
|
+
| ConnectionError
|
|
191
|
+
| RequestAbortedError
|
|
192
|
+
| RequestTimeoutError
|
|
193
|
+
| InvalidRequestError
|
|
194
|
+
| UnexpectedClientError
|
|
195
|
+
| SDKValidationError
|
|
196
|
+
>(
|
|
197
|
+
M.json(200, operations.UnarchiveConversationResponse$inboundSchema),
|
|
198
|
+
M.jsonErr(400, errors.BadRequestError$inboundSchema),
|
|
199
|
+
M.jsonErr(401, errors.UnauthorizedError$inboundSchema),
|
|
200
|
+
M.jsonErr(403, errors.ForbiddenError$inboundSchema),
|
|
201
|
+
M.jsonErr(404, errors.NotFoundError$inboundSchema),
|
|
202
|
+
M.jsonErr(409, errors.ConflictError$inboundSchema),
|
|
203
|
+
M.jsonErr(410, errors.GoneError$inboundSchema),
|
|
204
|
+
M.jsonErr(422, errors.UnprocessableEntityError$inboundSchema),
|
|
205
|
+
M.jsonErr(429, errors.TooManyRequestsError$inboundSchema),
|
|
206
|
+
M.jsonErr(500, errors.InternalServerError$inboundSchema),
|
|
207
|
+
M.fail("4XX"),
|
|
208
|
+
M.fail("5XX"),
|
|
209
|
+
)(response, req, { extraFields: responseFields });
|
|
210
|
+
if (!result.ok) {
|
|
211
|
+
return [result, { status: "complete", request: req, response }];
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
return [result, { status: "complete", request: req, response }];
|
|
215
|
+
}
|