bereach 0.1.1
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/FUNCTIONS.md +90 -0
- package/README.md +530 -0
- package/RUNTIMES.md +48 -0
- package/esm/core.d.ts +10 -0
- package/esm/core.d.ts.map +1 -0
- package/esm/core.js +13 -0
- package/esm/core.js.map +1 -0
- package/esm/funcs/campaigns-filter.d.ts +20 -0
- package/esm/funcs/campaigns-filter.d.ts.map +1 -0
- package/esm/funcs/campaigns-filter.js +106 -0
- package/esm/funcs/campaigns-filter.js.map +1 -0
- package/esm/funcs/campaigns-get-stats.d.ts +18 -0
- package/esm/funcs/campaigns-get-stats.d.ts.map +1 -0
- package/esm/funcs/campaigns-get-stats.js +101 -0
- package/esm/funcs/campaigns-get-stats.js.map +1 -0
- package/esm/funcs/campaigns-get-status.d.ts +18 -0
- package/esm/funcs/campaigns-get-status.d.ts.map +1 -0
- package/esm/funcs/campaigns-get-status.js +101 -0
- package/esm/funcs/campaigns-get-status.js.map +1 -0
- package/esm/funcs/campaigns-sync-actions.d.ts +18 -0
- package/esm/funcs/campaigns-sync-actions.d.ts.map +1 -0
- package/esm/funcs/campaigns-sync-actions.js +101 -0
- package/esm/funcs/campaigns-sync-actions.js.map +1 -0
- package/esm/funcs/linkedin-actions-accept-invitation.d.ts +18 -0
- package/esm/funcs/linkedin-actions-accept-invitation.d.ts.map +1 -0
- package/esm/funcs/linkedin-actions-accept-invitation.js +95 -0
- package/esm/funcs/linkedin-actions-accept-invitation.js.map +1 -0
- package/esm/funcs/linkedin-actions-connect-profile.d.ts +18 -0
- package/esm/funcs/linkedin-actions-connect-profile.d.ts.map +1 -0
- package/esm/funcs/linkedin-actions-connect-profile.js +95 -0
- package/esm/funcs/linkedin-actions-connect-profile.js.map +1 -0
- package/esm/funcs/linkedin-actions-like-comment.d.ts +18 -0
- package/esm/funcs/linkedin-actions-like-comment.d.ts.map +1 -0
- package/esm/funcs/linkedin-actions-like-comment.js +95 -0
- package/esm/funcs/linkedin-actions-like-comment.js.map +1 -0
- package/esm/funcs/linkedin-actions-list-invitations.d.ts +18 -0
- package/esm/funcs/linkedin-actions-list-invitations.d.ts.map +1 -0
- package/esm/funcs/linkedin-actions-list-invitations.js +97 -0
- package/esm/funcs/linkedin-actions-list-invitations.js.map +1 -0
- package/esm/funcs/linkedin-actions-publish-post.d.ts +18 -0
- package/esm/funcs/linkedin-actions-publish-post.d.ts.map +1 -0
- package/esm/funcs/linkedin-actions-publish-post.js +95 -0
- package/esm/funcs/linkedin-actions-publish-post.js.map +1 -0
- package/esm/funcs/linkedin-actions-reply-to-comment.d.ts +18 -0
- package/esm/funcs/linkedin-actions-reply-to-comment.d.ts.map +1 -0
- package/esm/funcs/linkedin-actions-reply-to-comment.js +95 -0
- package/esm/funcs/linkedin-actions-reply-to-comment.js.map +1 -0
- package/esm/funcs/linkedin-actions-send-message.d.ts +18 -0
- package/esm/funcs/linkedin-actions-send-message.d.ts.map +1 -0
- package/esm/funcs/linkedin-actions-send-message.js +95 -0
- package/esm/funcs/linkedin-actions-send-message.js.map +1 -0
- package/esm/funcs/linkedin-chat-find-conversation.d.ts +25 -0
- package/esm/funcs/linkedin-chat-find-conversation.d.ts.map +1 -0
- package/esm/funcs/linkedin-chat-find-conversation.js +102 -0
- package/esm/funcs/linkedin-chat-find-conversation.js.map +1 -0
- package/esm/funcs/linkedin-chat-get-messages.d.ts +22 -0
- package/esm/funcs/linkedin-chat-get-messages.d.ts.map +1 -0
- package/esm/funcs/linkedin-chat-get-messages.js +99 -0
- package/esm/funcs/linkedin-chat-get-messages.js.map +1 -0
- package/esm/funcs/linkedin-chat-list-conversations.d.ts +18 -0
- package/esm/funcs/linkedin-chat-list-conversations.d.ts.map +1 -0
- package/esm/funcs/linkedin-chat-list-conversations.js +95 -0
- package/esm/funcs/linkedin-chat-list-conversations.js.map +1 -0
- package/esm/funcs/linkedin-chat-search-conversations.d.ts +18 -0
- package/esm/funcs/linkedin-chat-search-conversations.d.ts.map +1 -0
- package/esm/funcs/linkedin-chat-search-conversations.js +95 -0
- package/esm/funcs/linkedin-chat-search-conversations.js.map +1 -0
- package/esm/funcs/linkedin-scrapers-collect-comment-replies.d.ts +18 -0
- package/esm/funcs/linkedin-scrapers-collect-comment-replies.d.ts.map +1 -0
- package/esm/funcs/linkedin-scrapers-collect-comment-replies.js +95 -0
- package/esm/funcs/linkedin-scrapers-collect-comment-replies.js.map +1 -0
- package/esm/funcs/linkedin-scrapers-collect-comments.d.ts +18 -0
- package/esm/funcs/linkedin-scrapers-collect-comments.d.ts.map +1 -0
- package/esm/funcs/linkedin-scrapers-collect-comments.js +95 -0
- package/esm/funcs/linkedin-scrapers-collect-comments.js.map +1 -0
- package/esm/funcs/linkedin-scrapers-collect-likes.d.ts +18 -0
- package/esm/funcs/linkedin-scrapers-collect-likes.d.ts.map +1 -0
- package/esm/funcs/linkedin-scrapers-collect-likes.js +95 -0
- package/esm/funcs/linkedin-scrapers-collect-likes.js.map +1 -0
- package/esm/funcs/linkedin-scrapers-collect-posts.d.ts +18 -0
- package/esm/funcs/linkedin-scrapers-collect-posts.d.ts.map +1 -0
- package/esm/funcs/linkedin-scrapers-collect-posts.js +95 -0
- package/esm/funcs/linkedin-scrapers-collect-posts.js.map +1 -0
- package/esm/funcs/linkedin-scrapers-visit-company.d.ts +18 -0
- package/esm/funcs/linkedin-scrapers-visit-company.d.ts.map +1 -0
- package/esm/funcs/linkedin-scrapers-visit-company.js +95 -0
- package/esm/funcs/linkedin-scrapers-visit-company.js.map +1 -0
- package/esm/funcs/linkedin-scrapers-visit-profile.d.ts +18 -0
- package/esm/funcs/linkedin-scrapers-visit-profile.d.ts.map +1 -0
- package/esm/funcs/linkedin-scrapers-visit-profile.js +95 -0
- package/esm/funcs/linkedin-scrapers-visit-profile.js.map +1 -0
- package/esm/funcs/linkedin-search-resolve-parameters.d.ts +47 -0
- package/esm/funcs/linkedin-search-resolve-parameters.d.ts.map +1 -0
- package/esm/funcs/linkedin-search-resolve-parameters.js +124 -0
- package/esm/funcs/linkedin-search-resolve-parameters.js.map +1 -0
- package/esm/funcs/linkedin-search-search-by-url.d.ts +69 -0
- package/esm/funcs/linkedin-search-search-by-url.d.ts.map +1 -0
- package/esm/funcs/linkedin-search-search-by-url.js +146 -0
- package/esm/funcs/linkedin-search-search-by-url.js.map +1 -0
- package/esm/funcs/linkedin-search-search-companies.d.ts +75 -0
- package/esm/funcs/linkedin-search-search-companies.d.ts.map +1 -0
- package/esm/funcs/linkedin-search-search-companies.js +152 -0
- package/esm/funcs/linkedin-search-search-companies.js.map +1 -0
- package/esm/funcs/linkedin-search-search-jobs.d.ts +96 -0
- package/esm/funcs/linkedin-search-search-jobs.d.ts.map +1 -0
- package/esm/funcs/linkedin-search-search-jobs.js +173 -0
- package/esm/funcs/linkedin-search-search-jobs.js.map +1 -0
- package/esm/funcs/linkedin-search-search-people.d.ts +83 -0
- package/esm/funcs/linkedin-search-search-people.d.ts.map +1 -0
- package/esm/funcs/linkedin-search-search-people.js +160 -0
- package/esm/funcs/linkedin-search-search-people.js.map +1 -0
- package/esm/funcs/linkedin-search-search-posts.d.ts +71 -0
- package/esm/funcs/linkedin-search-search-posts.d.ts.map +1 -0
- package/esm/funcs/linkedin-search-search-posts.js +148 -0
- package/esm/funcs/linkedin-search-search-posts.js.map +1 -0
- package/esm/funcs/linkedin-search-unified-search.d.ts +55 -0
- package/esm/funcs/linkedin-search-unified-search.d.ts.map +1 -0
- package/esm/funcs/linkedin-search-unified-search.js +132 -0
- package/esm/funcs/linkedin-search-unified-search.js.map +1 -0
- package/esm/funcs/profile-get-credits.d.ts +18 -0
- package/esm/funcs/profile-get-credits.d.ts.map +1 -0
- package/esm/funcs/profile-get-credits.js +84 -0
- package/esm/funcs/profile-get-credits.js.map +1 -0
- package/esm/funcs/profile-get-followers.d.ts +18 -0
- package/esm/funcs/profile-get-followers.d.ts.map +1 -0
- package/esm/funcs/profile-get-followers.js +97 -0
- package/esm/funcs/profile-get-followers.js.map +1 -0
- package/esm/funcs/profile-get-limits.d.ts +18 -0
- package/esm/funcs/profile-get-limits.d.ts.map +1 -0
- package/esm/funcs/profile-get-limits.js +84 -0
- package/esm/funcs/profile-get-limits.js.map +1 -0
- package/esm/funcs/profile-get-linked-in-profile.d.ts +18 -0
- package/esm/funcs/profile-get-linked-in-profile.d.ts.map +1 -0
- package/esm/funcs/profile-get-linked-in-profile.js +84 -0
- package/esm/funcs/profile-get-linked-in-profile.js.map +1 -0
- package/esm/funcs/profile-get-posts.d.ts +18 -0
- package/esm/funcs/profile-get-posts.d.ts.map +1 -0
- package/esm/funcs/profile-get-posts.js +97 -0
- package/esm/funcs/profile-get-posts.js.map +1 -0
- package/esm/funcs/profile-refresh.d.ts +18 -0
- package/esm/funcs/profile-refresh.d.ts.map +1 -0
- package/esm/funcs/profile-refresh.js +84 -0
- package/esm/funcs/profile-refresh.js.map +1 -0
- package/esm/hooks/hooks.d.ts +25 -0
- package/esm/hooks/hooks.d.ts.map +1 -0
- package/esm/hooks/hooks.js +82 -0
- package/esm/hooks/hooks.js.map +1 -0
- package/esm/hooks/index.d.ts +3 -0
- package/esm/hooks/index.d.ts.map +1 -0
- package/esm/hooks/index.js +6 -0
- package/esm/hooks/index.js.map +1 -0
- package/esm/hooks/registration.d.ts +3 -0
- package/esm/hooks/registration.d.ts.map +1 -0
- package/esm/hooks/registration.js +12 -0
- package/esm/hooks/registration.js.map +1 -0
- package/esm/hooks/types.d.ts +76 -0
- package/esm/hooks/types.d.ts.map +1 -0
- package/esm/hooks/types.js +5 -0
- package/esm/hooks/types.js.map +1 -0
- package/esm/index.d.ts +6 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +8 -0
- package/esm/index.js.map +1 -0
- package/esm/lib/base64.d.ts +10 -0
- package/esm/lib/base64.d.ts.map +1 -0
- package/esm/lib/base64.js +31 -0
- package/esm/lib/base64.js.map +1 -0
- package/esm/lib/config.d.ts +38 -0
- package/esm/lib/config.d.ts.map +1 -0
- package/esm/lib/config.js +34 -0
- package/esm/lib/config.js.map +1 -0
- package/esm/lib/dlv.d.ts +14 -0
- package/esm/lib/dlv.d.ts.map +1 -0
- package/esm/lib/dlv.js +46 -0
- package/esm/lib/dlv.js.map +1 -0
- package/esm/lib/encodings.d.ts +53 -0
- package/esm/lib/encodings.d.ts.map +1 -0
- package/esm/lib/encodings.js +370 -0
- package/esm/lib/encodings.js.map +1 -0
- package/esm/lib/env.d.ts +15 -0
- package/esm/lib/env.d.ts.map +1 -0
- package/esm/lib/env.js +44 -0
- package/esm/lib/env.js.map +1 -0
- package/esm/lib/files.d.ts +13 -0
- package/esm/lib/files.d.ts.map +1 -0
- package/esm/lib/files.js +73 -0
- package/esm/lib/files.js.map +1 -0
- package/esm/lib/http.d.ts +67 -0
- package/esm/lib/http.d.ts.map +1 -0
- package/esm/lib/http.js +209 -0
- package/esm/lib/http.js.map +1 -0
- package/esm/lib/is-plain-object.d.ts +2 -0
- package/esm/lib/is-plain-object.d.ts.map +1 -0
- package/esm/lib/is-plain-object.js +38 -0
- package/esm/lib/is-plain-object.js.map +1 -0
- package/esm/lib/logger.d.ts +6 -0
- package/esm/lib/logger.d.ts.map +1 -0
- package/esm/lib/logger.js +5 -0
- package/esm/lib/logger.js.map +1 -0
- package/esm/lib/matchers.d.ts +59 -0
- package/esm/lib/matchers.d.ts.map +1 -0
- package/esm/lib/matchers.js +202 -0
- package/esm/lib/matchers.js.map +1 -0
- package/esm/lib/primitives.d.ts +26 -0
- package/esm/lib/primitives.d.ts.map +1 -0
- package/esm/lib/primitives.js +103 -0
- package/esm/lib/primitives.js.map +1 -0
- package/esm/lib/retries.d.ts +38 -0
- package/esm/lib/retries.d.ts.map +1 -0
- package/esm/lib/retries.js +150 -0
- package/esm/lib/retries.js.map +1 -0
- package/esm/lib/schemas.d.ts +21 -0
- package/esm/lib/schemas.d.ts.map +1 -0
- package/esm/lib/schemas.js +57 -0
- package/esm/lib/schemas.js.map +1 -0
- package/esm/lib/sdks.d.ts +63 -0
- package/esm/lib/sdks.d.ts.map +1 -0
- package/esm/lib/sdks.js +258 -0
- package/esm/lib/sdks.js.map +1 -0
- package/esm/lib/security.d.ts +83 -0
- package/esm/lib/security.d.ts.map +1 -0
- package/esm/lib/security.js +138 -0
- package/esm/lib/security.js.map +1 -0
- package/esm/lib/url.d.ts +5 -0
- package/esm/lib/url.d.ts.map +1 -0
- package/esm/lib/url.js +22 -0
- package/esm/lib/url.js.map +1 -0
- package/esm/models/errors/bereach-default-error.d.ts +10 -0
- package/esm/models/errors/bereach-default-error.d.ts.map +1 -0
- package/esm/models/errors/bereach-default-error.js +30 -0
- package/esm/models/errors/bereach-default-error.js.map +1 -0
- package/esm/models/errors/bereach-error.d.ts +19 -0
- package/esm/models/errors/bereach-error.d.ts.map +1 -0
- package/esm/models/errors/bereach-error.js +26 -0
- package/esm/models/errors/bereach-error.js.map +1 -0
- package/esm/models/errors/collect-linked-in-likes.d.ts +211 -0
- package/esm/models/errors/collect-linked-in-likes.d.ts.map +1 -0
- package/esm/models/errors/collect-linked-in-likes.js +306 -0
- package/esm/models/errors/collect-linked-in-likes.js.map +1 -0
- package/esm/models/errors/http-client-errors.d.ts +44 -0
- package/esm/models/errors/http-client-errors.d.ts.map +1 -0
- package/esm/models/errors/http-client-errors.js +56 -0
- package/esm/models/errors/http-client-errors.js.map +1 -0
- package/esm/models/errors/index.d.ts +7 -0
- package/esm/models/errors/index.d.ts.map +1 -0
- package/esm/models/errors/index.js +10 -0
- package/esm/models/errors/index.js.map +1 -0
- package/esm/models/errors/response-validation-error.d.ts +26 -0
- package/esm/models/errors/response-validation-error.d.ts.map +1 -0
- package/esm/models/errors/response-validation-error.js +37 -0
- package/esm/models/errors/response-validation-error.js.map +1 -0
- package/esm/models/errors/sdk-validation-error.d.ts +21 -0
- package/esm/models/errors/sdk-validation-error.d.ts.map +1 -0
- package/esm/models/errors/sdk-validation-error.js +52 -0
- package/esm/models/errors/sdk-validation-error.js.map +1 -0
- package/esm/models/index.d.ts +2 -0
- package/esm/models/index.d.ts.map +1 -0
- package/esm/models/index.js +5 -0
- package/esm/models/index.js.map +1 -0
- package/esm/models/operations/get-campaign-stats-response.d.ts +1627 -0
- package/esm/models/operations/get-campaign-stats-response.d.ts.map +1 -0
- package/esm/models/operations/get-campaign-stats-response.js +1002 -0
- package/esm/models/operations/get-campaign-stats-response.js.map +1 -0
- package/esm/models/operations/index.d.ts +3 -0
- package/esm/models/operations/index.d.ts.map +1 -0
- package/esm/models/operations/index.js +6 -0
- package/esm/models/operations/index.js.map +1 -0
- package/esm/models/operations/send-linked-in-message-response.d.ts +2350 -0
- package/esm/models/operations/send-linked-in-message-response.d.ts.map +1 -0
- package/esm/models/operations/send-linked-in-message-response.js +1585 -0
- package/esm/models/operations/send-linked-in-message-response.js.map +1 -0
- package/esm/models/security.d.ts +12 -0
- package/esm/models/security.d.ts.map +1 -0
- package/esm/models/security.js +12 -0
- package/esm/models/security.js.map +1 -0
- package/esm/sdk/campaigns.d.ts +35 -0
- package/esm/sdk/campaigns.d.ts.map +1 -0
- package/esm/sdk/campaigns.js +50 -0
- package/esm/sdk/campaigns.js.map +1 -0
- package/esm/sdk/index.d.ts +2 -0
- package/esm/sdk/index.d.ts.map +1 -0
- package/esm/sdk/index.js +5 -0
- package/esm/sdk/index.js.map +1 -0
- package/esm/sdk/linkedin-actions.d.ts +54 -0
- package/esm/sdk/linkedin-actions.d.ts.map +1 -0
- package/esm/sdk/linkedin-actions.js +78 -0
- package/esm/sdk/linkedin-actions.js.map +1 -0
- package/esm/sdk/linkedin-chat.d.ts +44 -0
- package/esm/sdk/linkedin-chat.d.ts.map +1 -0
- package/esm/sdk/linkedin-chat.js +59 -0
- package/esm/sdk/linkedin-chat.js.map +1 -0
- package/esm/sdk/linkedin-scrapers.d.ts +47 -0
- package/esm/sdk/linkedin-scrapers.d.ts.map +1 -0
- package/esm/sdk/linkedin-scrapers.js +68 -0
- package/esm/sdk/linkedin-scrapers.js.map +1 -0
- package/esm/sdk/linkedin-search.d.ts +424 -0
- package/esm/sdk/linkedin-search.d.ts.map +1 -0
- package/esm/sdk/linkedin-search.js +448 -0
- package/esm/sdk/linkedin-search.js.map +1 -0
- package/esm/sdk/profile.d.ts +47 -0
- package/esm/sdk/profile.d.ts.map +1 -0
- package/esm/sdk/profile.js +68 -0
- package/esm/sdk/profile.js.map +1 -0
- package/esm/sdk/sdk.d.ts +22 -0
- package/esm/sdk/sdk.d.ts.map +1 -0
- package/esm/sdk/sdk.js +37 -0
- package/esm/sdk/sdk.js.map +1 -0
- package/esm/types/async.d.ts +23 -0
- package/esm/types/async.d.ts.map +1 -0
- package/esm/types/async.js +28 -0
- package/esm/types/async.js.map +1 -0
- package/esm/types/blobs.d.ts +4 -0
- package/esm/types/blobs.d.ts.map +1 -0
- package/esm/types/blobs.js +25 -0
- package/esm/types/blobs.js.map +1 -0
- package/esm/types/const-date-time.d.ts +3 -0
- package/esm/types/const-date-time.d.ts.map +1 -0
- package/esm/types/const-date-time.js +10 -0
- package/esm/types/const-date-time.js.map +1 -0
- package/esm/types/default-to-zero-value.d.ts +12 -0
- package/esm/types/default-to-zero-value.d.ts.map +1 -0
- package/esm/types/default-to-zero-value.js +31 -0
- package/esm/types/default-to-zero-value.js.map +1 -0
- package/esm/types/enums.d.ts +9 -0
- package/esm/types/enums.d.ts.map +1 -0
- package/esm/types/enums.js +27 -0
- package/esm/types/enums.js.map +1 -0
- package/esm/types/fp.d.ts +31 -0
- package/esm/types/fp.d.ts.map +1 -0
- package/esm/types/fp.js +31 -0
- package/esm/types/fp.js.map +1 -0
- package/esm/types/index.d.ts +10 -0
- package/esm/types/index.d.ts.map +1 -0
- package/esm/types/index.js +10 -0
- package/esm/types/index.js.map +1 -0
- package/esm/types/operations.d.ts +27 -0
- package/esm/types/operations.d.ts.map +1 -0
- package/esm/types/operations.js +77 -0
- package/esm/types/operations.js.map +1 -0
- package/esm/types/primitives.d.ts +11 -0
- package/esm/types/primitives.d.ts.map +1 -0
- package/esm/types/primitives.js +132 -0
- package/esm/types/primitives.js.map +1 -0
- package/esm/types/rfcdate.d.ts +21 -0
- package/esm/types/rfcdate.d.ts.map +1 -0
- package/esm/types/rfcdate.js +43 -0
- package/esm/types/rfcdate.js.map +1 -0
- package/esm/types/smart-union.d.ts +7 -0
- package/esm/types/smart-union.d.ts.map +1 -0
- package/esm/types/smart-union.js +117 -0
- package/esm/types/smart-union.js.map +1 -0
- package/esm/types/streams.d.ts +2 -0
- package/esm/types/streams.d.ts.map +1 -0
- package/esm/types/streams.js +15 -0
- package/esm/types/streams.js.map +1 -0
- package/esm/types/unrecognized.d.ts +16 -0
- package/esm/types/unrecognized.d.ts.map +1 -0
- package/esm/types/unrecognized.js +31 -0
- package/esm/types/unrecognized.js.map +1 -0
- package/examples/linkedinScrapersCollectLikes.example.ts +30 -0
- package/jsr.json +27 -0
- package/package.json +62 -0
- package/src/core.ts +13 -0
- package/src/funcs/campaigns-filter.ts +227 -0
- package/src/funcs/campaigns-get-stats.ts +222 -0
- package/src/funcs/campaigns-get-status.ts +222 -0
- package/src/funcs/campaigns-sync-actions.ts +222 -0
- package/src/funcs/linkedin-actions-accept-invitation.ts +215 -0
- package/src/funcs/linkedin-actions-connect-profile.ts +215 -0
- package/src/funcs/linkedin-actions-like-comment.ts +215 -0
- package/src/funcs/linkedin-actions-list-invitations.ts +220 -0
- package/src/funcs/linkedin-actions-publish-post.ts +215 -0
- package/src/funcs/linkedin-actions-reply-to-comment.ts +215 -0
- package/src/funcs/linkedin-actions-send-message.ts +215 -0
- package/src/funcs/linkedin-chat-find-conversation.ts +222 -0
- package/src/funcs/linkedin-chat-get-messages.ts +219 -0
- package/src/funcs/linkedin-chat-list-conversations.ts +215 -0
- package/src/funcs/linkedin-chat-search-conversations.ts +218 -0
- package/src/funcs/linkedin-scrapers-collect-comment-replies.ts +218 -0
- package/src/funcs/linkedin-scrapers-collect-comments.ts +215 -0
- package/src/funcs/linkedin-scrapers-collect-likes.ts +215 -0
- package/src/funcs/linkedin-scrapers-collect-posts.ts +215 -0
- package/src/funcs/linkedin-scrapers-visit-company.ts +215 -0
- package/src/funcs/linkedin-scrapers-visit-profile.ts +215 -0
- package/src/funcs/linkedin-search-resolve-parameters.ts +250 -0
- package/src/funcs/linkedin-search-search-by-url.ts +266 -0
- package/src/funcs/linkedin-search-search-companies.ts +272 -0
- package/src/funcs/linkedin-search-search-jobs.ts +293 -0
- package/src/funcs/linkedin-search-search-people.ts +280 -0
- package/src/funcs/linkedin-search-search-posts.ts +268 -0
- package/src/funcs/linkedin-search-unified-search.ts +251 -0
- package/src/funcs/profile-get-credits.ts +195 -0
- package/src/funcs/profile-get-followers.ts +220 -0
- package/src/funcs/profile-get-limits.ts +195 -0
- package/src/funcs/profile-get-linked-in-profile.ts +195 -0
- package/src/funcs/profile-get-posts.ts +220 -0
- package/src/funcs/profile-refresh.ts +195 -0
- package/src/hooks/hooks.ts +132 -0
- package/src/hooks/index.ts +6 -0
- package/src/hooks/registration.ts +14 -0
- package/src/hooks/types.ts +107 -0
- package/src/index.ts +9 -0
- package/src/lib/base64.ts +39 -0
- package/src/lib/config.ts +67 -0
- package/src/lib/dlv.ts +53 -0
- package/src/lib/encodings.ts +501 -0
- package/src/lib/env.ts +57 -0
- package/src/lib/files.ts +82 -0
- package/src/lib/http.ts +323 -0
- package/src/lib/is-plain-object.ts +43 -0
- package/src/lib/logger.ts +9 -0
- package/src/lib/matchers.ts +353 -0
- package/src/lib/primitives.ts +150 -0
- package/src/lib/retries.ts +218 -0
- package/src/lib/schemas.ts +94 -0
- package/src/lib/sdks.ts +406 -0
- package/src/lib/security.ts +263 -0
- package/src/lib/url.ts +33 -0
- package/src/models/errors/bereach-default-error.ts +40 -0
- package/src/models/errors/bereach-error.ts +35 -0
- package/src/models/errors/collect-linked-in-likes.ts +494 -0
- package/src/models/errors/http-client-errors.ts +62 -0
- package/src/models/errors/index.ts +10 -0
- package/src/models/errors/response-validation-error.ts +50 -0
- package/src/models/errors/sdk-validation-error.ts +54 -0
- package/src/models/index.ts +5 -0
- package/src/models/operations/get-campaign-stats-response.ts +3409 -0
- package/src/models/operations/index.ts +6 -0
- package/src/models/operations/send-linked-in-message-response.ts +4903 -0
- package/src/models/security.ts +26 -0
- package/src/sdk/campaigns.ts +83 -0
- package/src/sdk/index.ts +5 -0
- package/src/sdk/linkedin-actions.ts +135 -0
- package/src/sdk/linkedin-chat.ts +92 -0
- package/src/sdk/linkedin-scrapers.ts +117 -0
- package/src/sdk/linkedin-search.ts +505 -0
- package/src/sdk/profile.ts +109 -0
- package/src/sdk/sdk.ts +43 -0
- package/src/types/async.ts +68 -0
- package/src/types/blobs.ts +33 -0
- package/src/types/const-date-time.ts +15 -0
- package/src/types/default-to-zero-value.ts +33 -0
- package/src/types/enums.ts +45 -0
- package/src/types/fp.ts +50 -0
- package/src/types/index.ts +13 -0
- package/src/types/operations.ts +105 -0
- package/src/types/primitives.ts +168 -0
- package/src/types/rfcdate.ts +54 -0
- package/src/types/smart-union.ts +153 -0
- package/src/types/streams.ts +21 -0
- package/src/types/unrecognized.ts +35 -0
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
6
|
+
import * as M from "../lib/matchers.js";
|
|
7
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
|
+
import { safeParse } from "../lib/schemas.js";
|
|
9
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
10
|
+
import { pathToFunc } from "../lib/url.js";
|
|
11
|
+
import * as errors from "../models/errors/index.js";
|
|
12
|
+
import * as operations from "../models/operations/index.js";
|
|
13
|
+
import { APIPromise } from "../types/async.js";
|
|
14
|
+
/**
|
|
15
|
+
* Search LinkedIn Jobs
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* # Search LinkedIn Jobs
|
|
19
|
+
*
|
|
20
|
+
* Find job listings on LinkedIn by keywords, location, job type, experience level, and workplace type.
|
|
21
|
+
*
|
|
22
|
+
* ## Parameters
|
|
23
|
+
* - **keywords** (optional): Search terms matched against job title, company name, and description
|
|
24
|
+
*
|
|
25
|
+
* ## Keyword syntax (Boolean operators)
|
|
26
|
+
* Keywords support LinkedIn Boolean search syntax:
|
|
27
|
+
* - **Exact phrase**: `"frontend engineer"` — matches only that exact title
|
|
28
|
+
* - **AND**: `React AND TypeScript` — both terms required (spaces default to AND)
|
|
29
|
+
* - **OR**: `"frontend engineer" OR "front-end developer"` — either term
|
|
30
|
+
* - **NOT**: `engineer NOT intern` — exclude unwanted terms
|
|
31
|
+
* - **Parentheses**: `(React OR Vue) AND "senior engineer"` — group logic
|
|
32
|
+
*
|
|
33
|
+
* Operators must be **UPPERCASE**. Precedence: Quotes > Parentheses > NOT > AND > OR.
|
|
34
|
+
*
|
|
35
|
+
* ## Available filters
|
|
36
|
+
* | Filter | Type | Description | Resolve IDs via |
|
|
37
|
+
* |--------|------|-------------|------------------|
|
|
38
|
+
* | `location` | string[] | Geo IDs | `/search/linkedin/parameters` type=`GEO` |
|
|
39
|
+
* | `datePosted` | string | `"past-24h"` \| `"past-week"` \| `"past-month"` | — |
|
|
40
|
+
* | `sortBy` | string | `"relevance"` \| `"date"` | — |
|
|
41
|
+
* | `jobType` | string[] | Employment type codes (see below) | — |
|
|
42
|
+
* | `experienceLevel` | string[] | Seniority codes (see below) | — |
|
|
43
|
+
* | `workplaceType` | string[] | Work location codes (see below) | — |
|
|
44
|
+
*
|
|
45
|
+
* ### Job type codes
|
|
46
|
+
* | Code | Type |
|
|
47
|
+
* |------|------|
|
|
48
|
+
* | `F` | Full-time |
|
|
49
|
+
* | `P` | Part-time |
|
|
50
|
+
* | `C` | Contract |
|
|
51
|
+
* | `T` | Temporary |
|
|
52
|
+
* | `I` | Internship |
|
|
53
|
+
* | `V` | Volunteer |
|
|
54
|
+
* | `O` | Other |
|
|
55
|
+
*
|
|
56
|
+
* ### Experience level codes
|
|
57
|
+
* | Code | Level |
|
|
58
|
+
* |------|-------|
|
|
59
|
+
* | `1` | Internship |
|
|
60
|
+
* | `2` | Entry level |
|
|
61
|
+
* | `3` | Associate |
|
|
62
|
+
* | `4` | Mid-Senior level |
|
|
63
|
+
* | `5` | Director |
|
|
64
|
+
* | `6` | Executive |
|
|
65
|
+
*
|
|
66
|
+
* ### Workplace type codes
|
|
67
|
+
* | Code | Type |
|
|
68
|
+
* |------|------|
|
|
69
|
+
* | `1` | On-site |
|
|
70
|
+
* | `2` | Remote |
|
|
71
|
+
* | `3` | Hybrid |
|
|
72
|
+
*
|
|
73
|
+
* ## Response fields (per item)
|
|
74
|
+
* | Field | Type | Description |
|
|
75
|
+
* |-------|------|-------------|
|
|
76
|
+
* | `title` | string | Job title |
|
|
77
|
+
* | `company` | string\|null | Hiring company name |
|
|
78
|
+
* | `companyUrl` | string\|null | Company LinkedIn page URL |
|
|
79
|
+
* | `companyLogo` | string\|null | Company logo URL |
|
|
80
|
+
* | `location` | string\|null | Job location |
|
|
81
|
+
* | `workplaceType` | string\|null | On-site / Remote / Hybrid |
|
|
82
|
+
* | `postedAt` | string\|null | Human-readable posting time (e.g. `"2 days ago"`) |
|
|
83
|
+
* | `jobUrl` | string | Direct URL to the job listing |
|
|
84
|
+
* | `listingId` | string | LinkedIn job listing ID |
|
|
85
|
+
*
|
|
86
|
+
* ## Pagination
|
|
87
|
+
* - Default page size: 10, max: 50
|
|
88
|
+
* - Use `start` + `count` to paginate. Check `hasMore` for more pages.
|
|
89
|
+
*
|
|
90
|
+
* ## Example workflows
|
|
91
|
+
* 1. **Job monitoring**: Search by title + location → track new openings in your area
|
|
92
|
+
* 2. **Competitive hiring analysis**: Search by company keywords → see what roles competitors are hiring for
|
|
93
|
+
* 3. **Market demand research**: Search by skills → gauge demand for specific expertise
|
|
94
|
+
*
|
|
95
|
+
* ## Credits
|
|
96
|
+
* 1 credit per 20 items returned (minimum 1 credit if any results, 0 if empty).
|
|
97
|
+
*/
|
|
98
|
+
export function linkedinSearchSearchJobs(client, request, options) {
|
|
99
|
+
return new APIPromise($do(client, request, options));
|
|
100
|
+
}
|
|
101
|
+
async function $do(client, request, options) {
|
|
102
|
+
const parsed = safeParse(request, (value) => z.parse(operations.SearchLinkedInJobsRequest$outboundSchema, value), "Input validation failed");
|
|
103
|
+
if (!parsed.ok) {
|
|
104
|
+
return [parsed, { status: "invalid" }];
|
|
105
|
+
}
|
|
106
|
+
const payload = parsed.value;
|
|
107
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
108
|
+
const path = pathToFunc("/search/linkedin/jobs")();
|
|
109
|
+
const headers = new Headers(compactMap({
|
|
110
|
+
"Content-Type": "application/json",
|
|
111
|
+
Accept: "application/json",
|
|
112
|
+
}));
|
|
113
|
+
const secConfig = await extractSecurity(client._options.token);
|
|
114
|
+
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
115
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
116
|
+
const context = {
|
|
117
|
+
options: client._options,
|
|
118
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
119
|
+
operationID: "searchLinkedInJobs",
|
|
120
|
+
oAuth2Scopes: null,
|
|
121
|
+
resolvedSecurity: requestSecurity,
|
|
122
|
+
securitySource: client._options.token,
|
|
123
|
+
retryConfig: options?.retries
|
|
124
|
+
|| client._options.retryConfig
|
|
125
|
+
|| { strategy: "none" },
|
|
126
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
127
|
+
};
|
|
128
|
+
const requestRes = client._createRequest(context, {
|
|
129
|
+
security: requestSecurity,
|
|
130
|
+
method: "POST",
|
|
131
|
+
baseURL: options?.serverURL,
|
|
132
|
+
path: path,
|
|
133
|
+
headers: headers,
|
|
134
|
+
body: body,
|
|
135
|
+
userAgent: client._options.userAgent,
|
|
136
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
137
|
+
}, options);
|
|
138
|
+
if (!requestRes.ok) {
|
|
139
|
+
return [requestRes, { status: "invalid" }];
|
|
140
|
+
}
|
|
141
|
+
const req = requestRes.value;
|
|
142
|
+
const doResult = await client._do(req, {
|
|
143
|
+
context,
|
|
144
|
+
errorCodes: [
|
|
145
|
+
"400",
|
|
146
|
+
"401",
|
|
147
|
+
"403",
|
|
148
|
+
"404",
|
|
149
|
+
"409",
|
|
150
|
+
"410",
|
|
151
|
+
"422",
|
|
152
|
+
"429",
|
|
153
|
+
"4XX",
|
|
154
|
+
"500",
|
|
155
|
+
"5XX",
|
|
156
|
+
],
|
|
157
|
+
retryConfig: context.retryConfig,
|
|
158
|
+
retryCodes: context.retryCodes,
|
|
159
|
+
});
|
|
160
|
+
if (!doResult.ok) {
|
|
161
|
+
return [doResult, { status: "request-error", request: req }];
|
|
162
|
+
}
|
|
163
|
+
const response = doResult.value;
|
|
164
|
+
const responseFields = {
|
|
165
|
+
HttpMeta: { Response: response, Request: req },
|
|
166
|
+
};
|
|
167
|
+
const [result] = await M.match(M.json(200, operations.SearchLinkedInJobsResponse$inboundSchema), M.jsonErr(400, errors.BadRequestError$inboundSchema), M.jsonErr(401, errors.UnauthorizedError$inboundSchema), M.jsonErr(403, errors.ForbiddenError$inboundSchema), M.jsonErr(404, errors.NotFoundError$inboundSchema), M.jsonErr(409, errors.ConflictError$inboundSchema), M.jsonErr(410, errors.GoneError$inboundSchema), M.jsonErr(422, errors.UnprocessableEntityError$inboundSchema), M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), M.jsonErr(500, errors.InternalServerError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
168
|
+
if (!result.ok) {
|
|
169
|
+
return [result, { status: "complete", request: req, response }];
|
|
170
|
+
}
|
|
171
|
+
return [result, { status: "complete", request: req, response }];
|
|
172
|
+
}
|
|
173
|
+
//# sourceMappingURL=linkedin-search-search-jobs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
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EAChE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,6BAA6B,CAAC,EACpD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,+BAA+B,CAAC,EACtD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,4BAA4B,CAAC,EACnD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,2BAA2B,CAAC,EAClD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,2BAA2B,CAAC,EAClD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,uBAAuB,CAAC,EAC9C,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,sCAAsC,CAAC,EAC7D,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,kCAAkC,CAAC,EACzD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,iCAAiC,CAAC,EACxD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { BereachCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { BereachError } from "../models/errors/bereach-error.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
|
|
5
|
+
import * as errors from "../models/errors/index.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* Search LinkedIn People
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* # Search LinkedIn People
|
|
16
|
+
*
|
|
17
|
+
* Find professionals on LinkedIn by name, title, company, location, industry, and more. Returns structured profile data including name, headline, current positions, and connection degree.
|
|
18
|
+
*
|
|
19
|
+
* ## Parameters
|
|
20
|
+
* - **keywords** (optional): Search terms matched against name, headline, company, skills, and bio
|
|
21
|
+
* - You can search by filters alone (no keywords) — e.g. find all 2nd-degree connections in Paris
|
|
22
|
+
*
|
|
23
|
+
* ## Keyword syntax (Boolean operators)
|
|
24
|
+
* Keywords support LinkedIn Boolean search syntax:
|
|
25
|
+
* - **Exact phrase**: `"product manager"` — matches only that exact title
|
|
26
|
+
* - **AND**: `engineer AND startup` — both terms required (spaces default to AND)
|
|
27
|
+
* - **OR**: `CEO OR founder OR CTO` — any of the terms
|
|
28
|
+
* - **NOT**: `manager NOT assistant` — exclude unwanted terms
|
|
29
|
+
* - **Parentheses**: `(CEO OR CTO) AND SaaS` — group logic
|
|
30
|
+
*
|
|
31
|
+
* Operators must be **UPPERCASE**. Precedence: Quotes > Parentheses > NOT > AND > OR.
|
|
32
|
+
*
|
|
33
|
+
* ## Available filters
|
|
34
|
+
* | Filter | Type | Description | Resolve IDs via |
|
|
35
|
+
* |--------|------|-------------|------------------|
|
|
36
|
+
* | `connectionDegree` | `["F"\|"S"\|"O"]` | Connection level: F=1st, S=2nd, O=3rd+ | — |
|
|
37
|
+
* | `firstName` | string | Exact first name match | — |
|
|
38
|
+
* | `lastName` | string | Exact last name match | — |
|
|
39
|
+
* | `title` | string | Current job title (supports `\|` OR syntax: `"CEO\|CTO"`) | — |
|
|
40
|
+
* | `connectionOf` | string | Profile URN — find their connections | — |
|
|
41
|
+
* | `profileLanguage` | string[] | ISO 639-1 codes: `["en","fr"]` | — |
|
|
42
|
+
* | `location` | string[] | Geo IDs | `/search/linkedin/parameters` type=`GEO` |
|
|
43
|
+
* | `industry` | string[] | Industry IDs | `/search/linkedin/parameters` type=`INDUSTRY` |
|
|
44
|
+
* | `currentCompany` | string[] | Company IDs (current employer) | `/search/linkedin/parameters` type=`COMPANY` |
|
|
45
|
+
* | `pastCompany` | string[] | Company IDs (past employer) | `/search/linkedin/parameters` type=`COMPANY` |
|
|
46
|
+
* | `school` | string[] | School/university IDs | `/search/linkedin/parameters` type=`SCHOOL` |
|
|
47
|
+
*
|
|
48
|
+
* ## Response fields (per item)
|
|
49
|
+
* | Field | Type | Description |
|
|
50
|
+
* |-------|------|-------------|
|
|
51
|
+
* | `name` | string | Full display name |
|
|
52
|
+
* | `profileUrl` | string | LinkedIn profile URL |
|
|
53
|
+
* | `headline` | string\|null | Professional headline |
|
|
54
|
+
* | `location` | string\|null | Geographic location |
|
|
55
|
+
* | `profilePicture` | string\|null | Profile photo URL |
|
|
56
|
+
* | `networkDistance` | string\|null | `DISTANCE_1`, `DISTANCE_2`, `DISTANCE_3`, or `OUT_OF_NETWORK` |
|
|
57
|
+
* | `currentPositions` | array | Current job positions with `company` and `role` |
|
|
58
|
+
*
|
|
59
|
+
* ## Pagination
|
|
60
|
+
* - Default page size: 10, max: 50
|
|
61
|
+
* - Use `start` + `count` to paginate. Check `hasMore` for more pages.
|
|
62
|
+
* - LinkedIn caps total visible results at ~1,000 for most searches.
|
|
63
|
+
*
|
|
64
|
+
* ## Example workflows
|
|
65
|
+
* 1. **Prospect list building**: Search by title + location + industry → build a targeted outreach list
|
|
66
|
+
* 2. **Recruiting**: Search by title + company + school → find qualified candidates
|
|
67
|
+
* 3. **Network mapping**: Search `connectionOf` + filters → explore someone's network
|
|
68
|
+
*
|
|
69
|
+
* ## Multi-step workflow with filter ID resolution
|
|
70
|
+
* ```
|
|
71
|
+
* Step 1: POST /search/linkedin/parameters { type: 'GEO', keywords: 'San Francisco' }
|
|
72
|
+
* → returns [{ id: '102277331', title: 'San Francisco, CA' }]
|
|
73
|
+
* Step 2: POST /search/linkedin/parameters { type: 'COMPANY', keywords: 'Google' }
|
|
74
|
+
* → returns [{ id: '1441', title: 'Google' }]
|
|
75
|
+
* Step 3: POST /search/linkedin/people { keywords: 'product manager', location: ['102277331'], currentCompany: ['1441'] }
|
|
76
|
+
* → returns matching people
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
79
|
+
* ## Credits
|
|
80
|
+
* 1 credit per 20 items returned (minimum 1 credit if any results, 0 if empty).
|
|
81
|
+
*/
|
|
82
|
+
export declare function linkedinSearchSearchPeople(client: BereachCore, request: operations.SearchLinkedInPeopleRequest, options?: RequestOptions): APIPromise<Result<operations.SearchLinkedInPeopleResponse, errors.BadRequestError | errors.UnauthorizedError | errors.ForbiddenError | errors.NotFoundError | errors.ConflictError | errors.GoneError | errors.UnprocessableEntityError | errors.TooManyRequestsError | errors.InternalServerError | BereachError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
83
|
+
//# sourceMappingURL=linkedin-search-search-people.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkedin-search-search-people.d.ts","sourceRoot":"","sources":["../../src/funcs/linkedin-search-search-people.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAKzC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,4BAA4B,EACrC,MAAM,CAAC,eAAe,GACtB,MAAM,CAAC,iBAAiB,GACxB,MAAM,CAAC,cAAc,GACrB,MAAM,CAAC,aAAa,GACpB,MAAM,CAAC,aAAa,GACpB,MAAM,CAAC,SAAS,GAChB,MAAM,CAAC,wBAAwB,GAC/B,MAAM,CAAC,oBAAoB,GAC3B,MAAM,CAAC,mBAAmB,GAC1B,YAAY,GACZ,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
6
|
+
import * as M from "../lib/matchers.js";
|
|
7
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
|
+
import { safeParse } from "../lib/schemas.js";
|
|
9
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
10
|
+
import { pathToFunc } from "../lib/url.js";
|
|
11
|
+
import * as errors from "../models/errors/index.js";
|
|
12
|
+
import * as operations from "../models/operations/index.js";
|
|
13
|
+
import { APIPromise } from "../types/async.js";
|
|
14
|
+
/**
|
|
15
|
+
* Search LinkedIn People
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* # Search LinkedIn People
|
|
19
|
+
*
|
|
20
|
+
* Find professionals on LinkedIn by name, title, company, location, industry, and more. Returns structured profile data including name, headline, current positions, and connection degree.
|
|
21
|
+
*
|
|
22
|
+
* ## Parameters
|
|
23
|
+
* - **keywords** (optional): Search terms matched against name, headline, company, skills, and bio
|
|
24
|
+
* - You can search by filters alone (no keywords) — e.g. find all 2nd-degree connections in Paris
|
|
25
|
+
*
|
|
26
|
+
* ## Keyword syntax (Boolean operators)
|
|
27
|
+
* Keywords support LinkedIn Boolean search syntax:
|
|
28
|
+
* - **Exact phrase**: `"product manager"` — matches only that exact title
|
|
29
|
+
* - **AND**: `engineer AND startup` — both terms required (spaces default to AND)
|
|
30
|
+
* - **OR**: `CEO OR founder OR CTO` — any of the terms
|
|
31
|
+
* - **NOT**: `manager NOT assistant` — exclude unwanted terms
|
|
32
|
+
* - **Parentheses**: `(CEO OR CTO) AND SaaS` — group logic
|
|
33
|
+
*
|
|
34
|
+
* Operators must be **UPPERCASE**. Precedence: Quotes > Parentheses > NOT > AND > OR.
|
|
35
|
+
*
|
|
36
|
+
* ## Available filters
|
|
37
|
+
* | Filter | Type | Description | Resolve IDs via |
|
|
38
|
+
* |--------|------|-------------|------------------|
|
|
39
|
+
* | `connectionDegree` | `["F"\|"S"\|"O"]` | Connection level: F=1st, S=2nd, O=3rd+ | — |
|
|
40
|
+
* | `firstName` | string | Exact first name match | — |
|
|
41
|
+
* | `lastName` | string | Exact last name match | — |
|
|
42
|
+
* | `title` | string | Current job title (supports `\|` OR syntax: `"CEO\|CTO"`) | — |
|
|
43
|
+
* | `connectionOf` | string | Profile URN — find their connections | — |
|
|
44
|
+
* | `profileLanguage` | string[] | ISO 639-1 codes: `["en","fr"]` | — |
|
|
45
|
+
* | `location` | string[] | Geo IDs | `/search/linkedin/parameters` type=`GEO` |
|
|
46
|
+
* | `industry` | string[] | Industry IDs | `/search/linkedin/parameters` type=`INDUSTRY` |
|
|
47
|
+
* | `currentCompany` | string[] | Company IDs (current employer) | `/search/linkedin/parameters` type=`COMPANY` |
|
|
48
|
+
* | `pastCompany` | string[] | Company IDs (past employer) | `/search/linkedin/parameters` type=`COMPANY` |
|
|
49
|
+
* | `school` | string[] | School/university IDs | `/search/linkedin/parameters` type=`SCHOOL` |
|
|
50
|
+
*
|
|
51
|
+
* ## Response fields (per item)
|
|
52
|
+
* | Field | Type | Description |
|
|
53
|
+
* |-------|------|-------------|
|
|
54
|
+
* | `name` | string | Full display name |
|
|
55
|
+
* | `profileUrl` | string | LinkedIn profile URL |
|
|
56
|
+
* | `headline` | string\|null | Professional headline |
|
|
57
|
+
* | `location` | string\|null | Geographic location |
|
|
58
|
+
* | `profilePicture` | string\|null | Profile photo URL |
|
|
59
|
+
* | `networkDistance` | string\|null | `DISTANCE_1`, `DISTANCE_2`, `DISTANCE_3`, or `OUT_OF_NETWORK` |
|
|
60
|
+
* | `currentPositions` | array | Current job positions with `company` and `role` |
|
|
61
|
+
*
|
|
62
|
+
* ## Pagination
|
|
63
|
+
* - Default page size: 10, max: 50
|
|
64
|
+
* - Use `start` + `count` to paginate. Check `hasMore` for more pages.
|
|
65
|
+
* - LinkedIn caps total visible results at ~1,000 for most searches.
|
|
66
|
+
*
|
|
67
|
+
* ## Example workflows
|
|
68
|
+
* 1. **Prospect list building**: Search by title + location + industry → build a targeted outreach list
|
|
69
|
+
* 2. **Recruiting**: Search by title + company + school → find qualified candidates
|
|
70
|
+
* 3. **Network mapping**: Search `connectionOf` + filters → explore someone's network
|
|
71
|
+
*
|
|
72
|
+
* ## Multi-step workflow with filter ID resolution
|
|
73
|
+
* ```
|
|
74
|
+
* Step 1: POST /search/linkedin/parameters { type: 'GEO', keywords: 'San Francisco' }
|
|
75
|
+
* → returns [{ id: '102277331', title: 'San Francisco, CA' }]
|
|
76
|
+
* Step 2: POST /search/linkedin/parameters { type: 'COMPANY', keywords: 'Google' }
|
|
77
|
+
* → returns [{ id: '1441', title: 'Google' }]
|
|
78
|
+
* Step 3: POST /search/linkedin/people { keywords: 'product manager', location: ['102277331'], currentCompany: ['1441'] }
|
|
79
|
+
* → returns matching people
|
|
80
|
+
* ```
|
|
81
|
+
*
|
|
82
|
+
* ## Credits
|
|
83
|
+
* 1 credit per 20 items returned (minimum 1 credit if any results, 0 if empty).
|
|
84
|
+
*/
|
|
85
|
+
export function linkedinSearchSearchPeople(client, request, options) {
|
|
86
|
+
return new APIPromise($do(client, request, options));
|
|
87
|
+
}
|
|
88
|
+
async function $do(client, request, options) {
|
|
89
|
+
const parsed = safeParse(request, (value) => z.parse(operations.SearchLinkedInPeopleRequest$outboundSchema, value), "Input validation failed");
|
|
90
|
+
if (!parsed.ok) {
|
|
91
|
+
return [parsed, { status: "invalid" }];
|
|
92
|
+
}
|
|
93
|
+
const payload = parsed.value;
|
|
94
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
95
|
+
const path = pathToFunc("/search/linkedin/people")();
|
|
96
|
+
const headers = new Headers(compactMap({
|
|
97
|
+
"Content-Type": "application/json",
|
|
98
|
+
Accept: "application/json",
|
|
99
|
+
}));
|
|
100
|
+
const secConfig = await extractSecurity(client._options.token);
|
|
101
|
+
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
102
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
103
|
+
const context = {
|
|
104
|
+
options: client._options,
|
|
105
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
106
|
+
operationID: "searchLinkedInPeople",
|
|
107
|
+
oAuth2Scopes: null,
|
|
108
|
+
resolvedSecurity: requestSecurity,
|
|
109
|
+
securitySource: client._options.token,
|
|
110
|
+
retryConfig: options?.retries
|
|
111
|
+
|| client._options.retryConfig
|
|
112
|
+
|| { strategy: "none" },
|
|
113
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
114
|
+
};
|
|
115
|
+
const requestRes = client._createRequest(context, {
|
|
116
|
+
security: requestSecurity,
|
|
117
|
+
method: "POST",
|
|
118
|
+
baseURL: options?.serverURL,
|
|
119
|
+
path: path,
|
|
120
|
+
headers: headers,
|
|
121
|
+
body: body,
|
|
122
|
+
userAgent: client._options.userAgent,
|
|
123
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
124
|
+
}, options);
|
|
125
|
+
if (!requestRes.ok) {
|
|
126
|
+
return [requestRes, { status: "invalid" }];
|
|
127
|
+
}
|
|
128
|
+
const req = requestRes.value;
|
|
129
|
+
const doResult = await client._do(req, {
|
|
130
|
+
context,
|
|
131
|
+
errorCodes: [
|
|
132
|
+
"400",
|
|
133
|
+
"401",
|
|
134
|
+
"403",
|
|
135
|
+
"404",
|
|
136
|
+
"409",
|
|
137
|
+
"410",
|
|
138
|
+
"422",
|
|
139
|
+
"429",
|
|
140
|
+
"4XX",
|
|
141
|
+
"500",
|
|
142
|
+
"5XX",
|
|
143
|
+
],
|
|
144
|
+
retryConfig: context.retryConfig,
|
|
145
|
+
retryCodes: context.retryCodes,
|
|
146
|
+
});
|
|
147
|
+
if (!doResult.ok) {
|
|
148
|
+
return [doResult, { status: "request-error", request: req }];
|
|
149
|
+
}
|
|
150
|
+
const response = doResult.value;
|
|
151
|
+
const responseFields = {
|
|
152
|
+
HttpMeta: { Response: response, Request: req },
|
|
153
|
+
};
|
|
154
|
+
const [result] = await M.match(M.json(200, operations.SearchLinkedInPeopleResponse$inboundSchema), M.jsonErr(400, errors.BadRequestError$inboundSchema), M.jsonErr(401, errors.UnauthorizedError$inboundSchema), M.jsonErr(403, errors.ForbiddenError$inboundSchema), M.jsonErr(404, errors.NotFoundError$inboundSchema), M.jsonErr(409, errors.ConflictError$inboundSchema), M.jsonErr(410, errors.GoneError$inboundSchema), M.jsonErr(422, errors.UnprocessableEntityError$inboundSchema), M.jsonErr(429, errors.TooManyRequestsError$inboundSchema), M.jsonErr(500, errors.InternalServerError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
155
|
+
if (!result.ok) {
|
|
156
|
+
return [result, { status: "complete", request: req, response }];
|
|
157
|
+
}
|
|
158
|
+
return [result, { status: "complete", request: req, response }];
|
|
159
|
+
}
|
|
160
|
+
//# sourceMappingURL=linkedin-search-search-people.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkedin-search-search-people.js","sourceRoot":"","sources":["../../src/funcs/linkedin-search-search-people.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAS3C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAGpD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AACH,MAAM,UAAU,0BAA0B,CACxC,MAAmB,EACnB,OAA+C,EAC/C,OAA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AClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { BereachCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { BereachError } from "../models/errors/bereach-error.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
|
|
5
|
+
import * as errors from "../models/errors/index.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* Search LinkedIn Posts
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* # Search LinkedIn Posts
|
|
16
|
+
*
|
|
17
|
+
* Search LinkedIn's content index for posts matching your keywords and filters. Returns structured post data including full text, engagement metrics, author info, and URLs.
|
|
18
|
+
*
|
|
19
|
+
* ## Required parameters
|
|
20
|
+
* - **keywords** (string, required): The search terms to match against post content. Examples: `"AI automation"`, `"remote work trends"`, `"SaaS growth strategies"`.
|
|
21
|
+
*
|
|
22
|
+
* ## Keyword syntax (Boolean operators)
|
|
23
|
+
* Keywords support LinkedIn Boolean search syntax:
|
|
24
|
+
* - **Exact phrase**: `"outreach automation"` — matches only that exact phrase
|
|
25
|
+
* - **AND**: `AI AND marketing` — both terms required (spaces default to AND)
|
|
26
|
+
* - **OR**: `"growth hacking" OR "growth marketing"` — either term
|
|
27
|
+
* - **NOT**: `outreach NOT webinar` — exclude unwanted terms
|
|
28
|
+
* - **Parentheses**: `(AI OR ML) AND "case study"` — group logic
|
|
29
|
+
*
|
|
30
|
+
* Operators must be **UPPERCASE**. Precedence: Quotes > Parentheses > NOT > AND > OR.
|
|
31
|
+
*
|
|
32
|
+
* ## Available filters
|
|
33
|
+
* | Filter | Type | Description |
|
|
34
|
+
* |--------|------|-------------|
|
|
35
|
+
* | `sortBy` | `"relevance"` \| `"date"` | Sort by relevance (default) or most recent first |
|
|
36
|
+
* | `datePosted` | `"past-24h"` \| `"past-week"` \| `"past-month"` | Filter by publication recency |
|
|
37
|
+
* | `contentType` | `"images"` \| `"videos"` \| `"documents"` | Filter by media type |
|
|
38
|
+
* | `authorIndustry` | string[] | Author's industry IDs (resolve via `/search/linkedin/parameters` with type=`INDUSTRY`) |
|
|
39
|
+
* | `authorCompany` | string[] | Author's company IDs (resolve via `/search/linkedin/parameters` with type=`COMPANY`) |
|
|
40
|
+
*
|
|
41
|
+
* ## Response fields (per item)
|
|
42
|
+
* | Field | Type | Description |
|
|
43
|
+
* |-------|------|-------------|
|
|
44
|
+
* | `postUrl` | string | Direct URL to the LinkedIn post |
|
|
45
|
+
* | `text` | string | Full post text content |
|
|
46
|
+
* | `date` | number | Publication timestamp (ms since epoch) |
|
|
47
|
+
* | `likesCount` | number | Total reactions |
|
|
48
|
+
* | `commentsCount` | number | Total comments |
|
|
49
|
+
* | `sharesCount` | number | Total shares/reposts |
|
|
50
|
+
* | `author.name` | string | Author's display name |
|
|
51
|
+
* | `author.profileUrl` | string | Author's LinkedIn profile URL |
|
|
52
|
+
* | `author.headline` | string | Author's headline |
|
|
53
|
+
* | `author.isCompany` | boolean | Whether the author is a company page |
|
|
54
|
+
* | `isRepost` | boolean | Whether this is a repost of another post |
|
|
55
|
+
*
|
|
56
|
+
* ## Pagination
|
|
57
|
+
* - Default page size: 10, max: 50
|
|
58
|
+
* - Use `start` + `count` to paginate: `start=0, count=10` → page 1, `start=10, count=10` → page 2
|
|
59
|
+
* - Check `hasMore` in the response to know if more pages exist
|
|
60
|
+
* - `paging.total` gives the estimated total number of results
|
|
61
|
+
*
|
|
62
|
+
* ## Example workflows
|
|
63
|
+
* 1. **Content research**: Search for trending topics → analyze top posts → extract engagement patterns
|
|
64
|
+
* 2. **Lead generation**: Search for posts about problems your product solves → extract author profiles
|
|
65
|
+
* 3. **Competitive intelligence**: Search for competitor mentions → track sentiment and engagement
|
|
66
|
+
*
|
|
67
|
+
* ## Credits
|
|
68
|
+
* 1 credit per 20 items returned (minimum 1 credit if any results, 0 if empty).
|
|
69
|
+
*/
|
|
70
|
+
export declare function linkedinSearchSearchPosts(client: BereachCore, request: operations.SearchLinkedInPostsRequest, options?: RequestOptions): APIPromise<Result<operations.SearchLinkedInPostsResponse, errors.BadRequestError | errors.UnauthorizedError | errors.ForbiddenError | errors.NotFoundError | errors.ConflictError | errors.GoneError | errors.UnprocessableEntityError | errors.TooManyRequestsError | errors.InternalServerError | BereachError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
71
|
+
//# sourceMappingURL=linkedin-search-search-posts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkedin-search-search-posts.d.ts","sourceRoot":"","sources":["../../src/funcs/linkedin-search-search-posts.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAKzC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2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