bereach 1.3.2 → 1.4.0-beta.10
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 +3 -3
- package/README.md +235 -149
- package/esm/funcs/actions-accept-invitation.d.ts +18 -0
- package/esm/funcs/actions-accept-invitation.d.ts.map +1 -0
- package/esm/funcs/actions-accept-invitation.js +97 -0
- package/esm/funcs/actions-accept-invitation.js.map +1 -0
- package/esm/funcs/actions-connect-profile.d.ts +2 -2
- package/esm/funcs/actions-connect-profile.d.ts.map +1 -1
- package/esm/funcs/actions-connect-profile.js +6 -4
- package/esm/funcs/actions-connect-profile.js.map +1 -1
- package/esm/funcs/actions-create-comment.d.ts +18 -0
- package/esm/funcs/actions-create-comment.d.ts.map +1 -0
- package/esm/funcs/actions-create-comment.js +97 -0
- package/esm/funcs/actions-create-comment.js.map +1 -0
- package/esm/funcs/actions-decline-invitation.d.ts +18 -0
- package/esm/funcs/actions-decline-invitation.d.ts.map +1 -0
- package/esm/funcs/actions-decline-invitation.js +97 -0
- package/esm/funcs/actions-decline-invitation.js.map +1 -0
- package/esm/funcs/actions-edit-comment.d.ts +18 -0
- package/esm/funcs/actions-edit-comment.d.ts.map +1 -0
- package/esm/funcs/actions-edit-comment.js +97 -0
- package/esm/funcs/actions-edit-comment.js.map +1 -0
- package/esm/funcs/actions-edit-post.d.ts +18 -0
- package/esm/funcs/actions-edit-post.d.ts.map +1 -0
- package/esm/funcs/actions-edit-post.js +97 -0
- package/esm/funcs/actions-edit-post.js.map +1 -0
- package/esm/funcs/actions-follow-company.d.ts +1 -1
- package/esm/funcs/actions-follow-company.d.ts.map +1 -1
- package/esm/funcs/actions-follow-company.js +5 -3
- package/esm/funcs/actions-follow-company.js.map +1 -1
- package/esm/funcs/actions-follow-profile.d.ts +18 -0
- package/esm/funcs/actions-follow-profile.d.ts.map +1 -0
- package/esm/funcs/actions-follow-profile.js +97 -0
- package/esm/funcs/actions-follow-profile.js.map +1 -0
- package/esm/funcs/actions-like-comment.d.ts +18 -0
- package/esm/funcs/actions-like-comment.d.ts.map +1 -0
- package/esm/funcs/actions-like-comment.js +97 -0
- package/esm/funcs/actions-like-comment.js.map +1 -0
- package/esm/funcs/actions-like-post.d.ts +18 -0
- package/esm/funcs/actions-like-post.d.ts.map +1 -0
- package/esm/funcs/actions-like-post.js +97 -0
- package/esm/funcs/actions-like-post.js.map +1 -0
- package/esm/funcs/actions-list-invitations.d.ts +18 -0
- package/esm/funcs/actions-list-invitations.d.ts.map +1 -0
- package/esm/funcs/actions-list-invitations.js +99 -0
- package/esm/funcs/actions-list-invitations.js.map +1 -0
- package/esm/funcs/actions-list-sent-invitations.d.ts +1 -1
- package/esm/funcs/actions-list-sent-invitations.d.ts.map +1 -1
- package/esm/funcs/actions-list-sent-invitations.js +5 -3
- package/esm/funcs/actions-list-sent-invitations.js.map +1 -1
- package/esm/funcs/actions-publish-post.d.ts +18 -0
- package/esm/funcs/actions-publish-post.d.ts.map +1 -0
- package/esm/funcs/actions-publish-post.js +97 -0
- package/esm/funcs/actions-publish-post.js.map +1 -0
- package/esm/funcs/actions-reply-to-comment.d.ts +18 -0
- package/esm/funcs/actions-reply-to-comment.d.ts.map +1 -0
- package/esm/funcs/actions-reply-to-comment.js +97 -0
- package/esm/funcs/actions-reply-to-comment.js.map +1 -0
- package/esm/funcs/actions-repost-post.d.ts +18 -0
- package/esm/funcs/actions-repost-post.d.ts.map +1 -0
- package/esm/funcs/actions-repost-post.js +97 -0
- package/esm/funcs/actions-repost-post.js.map +1 -0
- package/esm/funcs/actions-save-post.d.ts +18 -0
- package/esm/funcs/actions-save-post.d.ts.map +1 -0
- package/esm/funcs/actions-save-post.js +97 -0
- package/esm/funcs/actions-save-post.js.map +1 -0
- package/esm/funcs/actions-send-message.d.ts +2 -2
- package/esm/funcs/actions-send-message.d.ts.map +1 -1
- package/esm/funcs/actions-send-message.js +6 -4
- package/esm/funcs/actions-send-message.js.map +1 -1
- package/esm/funcs/actions-unfollow-company.d.ts +18 -0
- package/esm/funcs/actions-unfollow-company.d.ts.map +1 -0
- package/esm/funcs/actions-unfollow-company.js +97 -0
- package/esm/funcs/actions-unfollow-company.js.map +1 -0
- package/esm/funcs/actions-unfollow-profile.d.ts +18 -0
- package/esm/funcs/actions-unfollow-profile.d.ts.map +1 -0
- package/esm/funcs/actions-unfollow-profile.js +97 -0
- package/esm/funcs/actions-unfollow-profile.js.map +1 -0
- package/esm/funcs/actions-unlike-comment.d.ts +18 -0
- package/esm/funcs/actions-unlike-comment.d.ts.map +1 -0
- package/esm/funcs/actions-unlike-comment.js +97 -0
- package/esm/funcs/actions-unlike-comment.js.map +1 -0
- package/esm/funcs/actions-unlike-post.d.ts +18 -0
- package/esm/funcs/actions-unlike-post.d.ts.map +1 -0
- package/esm/funcs/actions-unlike-post.js +97 -0
- package/esm/funcs/actions-unlike-post.js.map +1 -0
- package/esm/funcs/actions-unsave-post.d.ts +18 -0
- package/esm/funcs/actions-unsave-post.d.ts.map +1 -0
- package/esm/funcs/actions-unsave-post.js +97 -0
- package/esm/funcs/actions-unsave-post.js.map +1 -0
- package/esm/funcs/actions-withdraw-invitation.d.ts +18 -0
- package/esm/funcs/actions-withdraw-invitation.d.ts.map +1 -0
- package/esm/funcs/actions-withdraw-invitation.js +97 -0
- package/esm/funcs/actions-withdraw-invitation.js.map +1 -0
- package/esm/funcs/campaigns-filter.d.ts +1 -1
- package/esm/funcs/campaigns-filter.d.ts.map +1 -1
- package/esm/funcs/campaigns-filter.js +5 -3
- package/esm/funcs/campaigns-filter.js.map +1 -1
- package/esm/funcs/campaigns-get-status.d.ts +1 -1
- package/esm/funcs/campaigns-get-status.d.ts.map +1 -1
- package/esm/funcs/campaigns-get-status.js +5 -3
- package/esm/funcs/campaigns-get-status.js.map +1 -1
- package/esm/funcs/campaigns-stats.d.ts +18 -0
- package/esm/funcs/campaigns-stats.d.ts.map +1 -0
- package/esm/funcs/campaigns-stats.js +102 -0
- package/esm/funcs/campaigns-stats.js.map +1 -0
- package/esm/funcs/campaigns-sync.d.ts +1 -1
- package/esm/funcs/campaigns-sync.d.ts.map +1 -1
- package/esm/funcs/campaigns-sync.js +5 -3
- package/esm/funcs/campaigns-sync.js.map +1 -1
- package/esm/funcs/chat-archive.d.ts +1 -1
- package/esm/funcs/chat-archive.d.ts.map +1 -1
- package/esm/funcs/chat-archive.js +5 -3
- package/esm/funcs/chat-archive.js.map +1 -1
- package/esm/funcs/chat-find-conversation.d.ts +2 -9
- package/esm/funcs/chat-find-conversation.d.ts.map +1 -1
- package/esm/funcs/chat-find-conversation.js +6 -11
- package/esm/funcs/chat-find-conversation.js.map +1 -1
- package/esm/funcs/chat-get-messages.d.ts +22 -0
- package/esm/funcs/chat-get-messages.d.ts.map +1 -0
- package/esm/funcs/chat-get-messages.js +105 -0
- package/esm/funcs/chat-get-messages.js.map +1 -0
- package/esm/funcs/chat-get-unread-count.d.ts +18 -0
- package/esm/funcs/chat-get-unread-count.d.ts.map +1 -0
- package/esm/funcs/chat-get-unread-count.js +86 -0
- package/esm/funcs/chat-get-unread-count.js.map +1 -0
- package/esm/funcs/chat-list-archived.d.ts +18 -0
- package/esm/funcs/chat-list-archived.d.ts.map +1 -0
- package/esm/funcs/chat-list-archived.js +100 -0
- package/esm/funcs/chat-list-archived.js.map +1 -0
- package/esm/funcs/chat-list-inbox.d.ts +18 -0
- package/esm/funcs/chat-list-inbox.d.ts.map +1 -0
- package/esm/funcs/chat-list-inbox.js +99 -0
- package/esm/funcs/chat-list-inbox.js.map +1 -0
- package/esm/funcs/chat-list-starred.d.ts +18 -0
- package/esm/funcs/chat-list-starred.d.ts.map +1 -0
- package/esm/funcs/chat-list-starred.js +100 -0
- package/esm/funcs/chat-list-starred.js.map +1 -0
- package/esm/funcs/chat-mark-all-read.d.ts +18 -0
- package/esm/funcs/chat-mark-all-read.d.ts.map +1 -0
- package/esm/funcs/chat-mark-all-read.js +87 -0
- package/esm/funcs/chat-mark-all-read.js.map +1 -0
- package/esm/funcs/chat-mark-seen.d.ts +18 -0
- package/esm/funcs/chat-mark-seen.d.ts.map +1 -0
- package/esm/funcs/chat-mark-seen.js +97 -0
- package/esm/funcs/chat-mark-seen.js.map +1 -0
- package/esm/funcs/chat-react.d.ts +18 -0
- package/esm/funcs/chat-react.d.ts.map +1 -0
- package/esm/funcs/chat-react.js +97 -0
- package/esm/funcs/chat-react.js.map +1 -0
- package/esm/funcs/chat-search-conversations.d.ts +2 -2
- package/esm/funcs/chat-search-conversations.d.ts.map +1 -1
- package/esm/funcs/chat-search-conversations.js +14 -8
- package/esm/funcs/chat-search-conversations.js.map +1 -1
- package/esm/funcs/chat-send-typing-indicator.d.ts +18 -0
- package/esm/funcs/chat-send-typing-indicator.d.ts.map +1 -0
- package/esm/funcs/chat-send-typing-indicator.js +97 -0
- package/esm/funcs/chat-send-typing-indicator.js.map +1 -0
- package/esm/funcs/chat-star.d.ts +18 -0
- package/esm/funcs/chat-star.d.ts.map +1 -0
- package/esm/funcs/chat-star.js +97 -0
- package/esm/funcs/chat-star.js.map +1 -0
- package/esm/funcs/chat-unarchive.d.ts +18 -0
- package/esm/funcs/chat-unarchive.d.ts.map +1 -0
- package/esm/funcs/chat-unarchive.js +97 -0
- package/esm/funcs/chat-unarchive.js.map +1 -0
- package/esm/funcs/chat-unreact.d.ts +1 -1
- package/esm/funcs/chat-unreact.d.ts.map +1 -1
- package/esm/funcs/chat-unreact.js +5 -3
- package/esm/funcs/chat-unreact.js.map +1 -1
- package/esm/funcs/chat-unstar.d.ts +18 -0
- package/esm/funcs/chat-unstar.d.ts.map +1 -0
- package/esm/funcs/chat-unstar.js +97 -0
- package/esm/funcs/chat-unstar.js.map +1 -0
- package/esm/funcs/company-pages-get-analytics.d.ts +1 -1
- package/esm/funcs/company-pages-get-analytics.d.ts.map +1 -1
- package/esm/funcs/company-pages-get-analytics.js +5 -3
- package/esm/funcs/company-pages-get-analytics.js.map +1 -1
- package/esm/funcs/company-pages-get-permissions.d.ts +1 -1
- package/esm/funcs/company-pages-get-permissions.d.ts.map +1 -1
- package/esm/funcs/company-pages-get-permissions.js +5 -3
- package/esm/funcs/company-pages-get-permissions.js.map +1 -1
- package/esm/funcs/company-pages-list.d.ts +1 -1
- package/esm/funcs/company-pages-list.d.ts.map +1 -1
- package/esm/funcs/company-pages-list.js +4 -2
- package/esm/funcs/company-pages-list.js.map +1 -1
- package/esm/funcs/company-pages-posts.d.ts +18 -0
- package/esm/funcs/company-pages-posts.d.ts.map +1 -0
- package/esm/funcs/company-pages-posts.js +97 -0
- package/esm/funcs/company-pages-posts.js.map +1 -0
- package/esm/funcs/contacts-add-activities.d.ts +18 -0
- package/esm/funcs/contacts-add-activities.d.ts.map +1 -0
- package/esm/funcs/contacts-add-activities.js +103 -0
- package/esm/funcs/contacts-add-activities.js.map +1 -0
- package/esm/funcs/contacts-add-to-campaign.d.ts +18 -0
- package/esm/funcs/contacts-add-to-campaign.d.ts.map +1 -0
- package/esm/funcs/contacts-add-to-campaign.js +103 -0
- package/esm/funcs/contacts-add-to-campaign.js.map +1 -0
- package/esm/funcs/contacts-bulk-update.d.ts +18 -0
- package/esm/funcs/contacts-bulk-update.d.ts.map +1 -0
- package/esm/funcs/contacts-bulk-update.js +97 -0
- package/esm/funcs/contacts-bulk-update.js.map +1 -0
- package/esm/funcs/contacts-campaign-status-transition.d.ts +18 -0
- package/esm/funcs/contacts-campaign-status-transition.d.ts.map +1 -0
- package/esm/funcs/contacts-campaign-status-transition.js +103 -0
- package/esm/funcs/contacts-campaign-status-transition.js.map +1 -0
- package/esm/funcs/contacts-create-campaign.d.ts +18 -0
- package/esm/funcs/contacts-create-campaign.d.ts.map +1 -0
- package/esm/funcs/contacts-create-campaign.js +97 -0
- package/esm/funcs/contacts-create-campaign.js.map +1 -0
- package/esm/funcs/contacts-delete-agent-state.d.ts +18 -0
- package/esm/funcs/contacts-delete-agent-state.d.ts.map +1 -0
- package/esm/funcs/contacts-delete-agent-state.js +102 -0
- package/esm/funcs/contacts-delete-agent-state.js.map +1 -0
- package/esm/funcs/contacts-delete-campaign.d.ts +18 -0
- package/esm/funcs/contacts-delete-campaign.d.ts.map +1 -0
- package/esm/funcs/contacts-delete-campaign.js +102 -0
- package/esm/funcs/contacts-delete-campaign.js.map +1 -0
- package/esm/funcs/contacts-get-agent-state.d.ts +18 -0
- package/esm/funcs/contacts-get-agent-state.d.ts.map +1 -0
- package/esm/funcs/contacts-get-agent-state.js +102 -0
- package/esm/funcs/contacts-get-agent-state.js.map +1 -0
- package/esm/funcs/contacts-get-by-url.d.ts +18 -0
- package/esm/funcs/contacts-get-by-url.d.ts.map +1 -0
- package/esm/funcs/contacts-get-by-url.js +100 -0
- package/esm/funcs/contacts-get-by-url.js.map +1 -0
- package/esm/funcs/contacts-get-campaign.d.ts +18 -0
- package/esm/funcs/contacts-get-campaign.d.ts.map +1 -0
- package/esm/funcs/contacts-get-campaign.js +102 -0
- package/esm/funcs/contacts-get-campaign.js.map +1 -0
- package/esm/funcs/contacts-get.d.ts +18 -0
- package/esm/funcs/contacts-get.d.ts.map +1 -0
- package/esm/funcs/contacts-get.js +102 -0
- package/esm/funcs/contacts-get.js.map +1 -0
- package/esm/funcs/contacts-list-activities.d.ts +18 -0
- package/esm/funcs/contacts-list-activities.d.ts.map +1 -0
- package/esm/funcs/contacts-list-activities.js +108 -0
- package/esm/funcs/contacts-list-activities.js.map +1 -0
- package/esm/funcs/contacts-list-agent-states.d.ts +18 -0
- package/esm/funcs/contacts-list-agent-states.d.ts.map +1 -0
- package/esm/funcs/contacts-list-agent-states.js +100 -0
- package/esm/funcs/contacts-list-agent-states.js.map +1 -0
- package/esm/funcs/contacts-list-by-campaign.d.ts +18 -0
- package/esm/funcs/contacts-list-by-campaign.d.ts.map +1 -0
- package/esm/funcs/contacts-list-by-campaign.js +111 -0
- package/esm/funcs/contacts-list-by-campaign.js.map +1 -0
- package/esm/funcs/contacts-list-campaigns.d.ts +18 -0
- package/esm/funcs/contacts-list-campaigns.d.ts.map +1 -0
- package/esm/funcs/contacts-list-campaigns.js +103 -0
- package/esm/funcs/contacts-list-campaigns.js.map +1 -0
- package/esm/funcs/contacts-patch-agent-state.d.ts +18 -0
- package/esm/funcs/contacts-patch-agent-state.d.ts.map +1 -0
- package/esm/funcs/contacts-patch-agent-state.js +103 -0
- package/esm/funcs/contacts-patch-agent-state.js.map +1 -0
- package/esm/funcs/contacts-search.d.ts +18 -0
- package/esm/funcs/contacts-search.d.ts.map +1 -0
- package/esm/funcs/contacts-search.js +112 -0
- package/esm/funcs/contacts-search.js.map +1 -0
- package/esm/funcs/contacts-set-agent-state.d.ts +18 -0
- package/esm/funcs/contacts-set-agent-state.d.ts.map +1 -0
- package/esm/funcs/contacts-set-agent-state.js +103 -0
- package/esm/funcs/contacts-set-agent-state.js.map +1 -0
- package/esm/funcs/contacts-stats.d.ts +18 -0
- package/esm/funcs/contacts-stats.d.ts.map +1 -0
- package/esm/funcs/contacts-stats.js +100 -0
- package/esm/funcs/contacts-stats.js.map +1 -0
- package/esm/funcs/contacts-update-campaign.d.ts +18 -0
- package/esm/funcs/contacts-update-campaign.d.ts.map +1 -0
- package/esm/funcs/contacts-update-campaign.js +103 -0
- package/esm/funcs/contacts-update-campaign.js.map +1 -0
- package/esm/funcs/contacts-update.d.ts +18 -0
- package/esm/funcs/contacts-update.d.ts.map +1 -0
- package/esm/funcs/contacts-update.js +103 -0
- package/esm/funcs/contacts-update.js.map +1 -0
- package/esm/funcs/contacts-upsert.d.ts +3 -2
- package/esm/funcs/contacts-upsert.d.ts.map +1 -1
- package/esm/funcs/contacts-upsert.js +23 -5
- package/esm/funcs/contacts-upsert.js.map +1 -1
- package/esm/funcs/context-delete.d.ts +18 -0
- package/esm/funcs/context-delete.d.ts.map +1 -0
- package/esm/funcs/context-delete.js +101 -0
- package/esm/funcs/context-delete.js.map +1 -0
- package/esm/funcs/context-list-entries.d.ts +18 -0
- package/esm/funcs/context-list-entries.d.ts.map +1 -0
- package/esm/funcs/context-list-entries.js +101 -0
- package/esm/funcs/context-list-entries.js.map +1 -0
- package/esm/funcs/context-set.d.ts +18 -0
- package/esm/funcs/context-set.d.ts.map +1 -0
- package/esm/funcs/context-set.js +97 -0
- package/esm/funcs/context-set.js.map +1 -0
- package/esm/funcs/cron-list-schedules.d.ts +18 -0
- package/esm/funcs/cron-list-schedules.d.ts.map +1 -0
- package/esm/funcs/cron-list-schedules.js +86 -0
- package/esm/funcs/cron-list-schedules.js.map +1 -0
- package/esm/funcs/cron-update-schedule.d.ts +18 -0
- package/esm/funcs/cron-update-schedule.d.ts.map +1 -0
- package/esm/funcs/cron-update-schedule.js +103 -0
- package/esm/funcs/cron-update-schedule.js.map +1 -0
- package/esm/funcs/profile-get-credits.d.ts +1 -1
- package/esm/funcs/profile-get-credits.d.ts.map +1 -1
- package/esm/funcs/profile-get-credits.js +5 -3
- package/esm/funcs/profile-get-credits.js.map +1 -1
- package/esm/funcs/profile-get-follower-analytics.d.ts +1 -1
- package/esm/funcs/profile-get-follower-analytics.d.ts.map +1 -1
- package/esm/funcs/profile-get-follower-analytics.js +4 -2
- package/esm/funcs/profile-get-follower-analytics.js.map +1 -1
- package/esm/funcs/profile-get-followers.d.ts +1 -1
- package/esm/funcs/profile-get-followers.d.ts.map +1 -1
- package/esm/funcs/profile-get-followers.js +5 -3
- package/esm/funcs/profile-get-followers.js.map +1 -1
- package/esm/funcs/profile-get-limits.d.ts +1 -1
- package/esm/funcs/profile-get-limits.d.ts.map +1 -1
- package/esm/funcs/profile-get-limits.js +5 -3
- package/esm/funcs/profile-get-limits.js.map +1 -1
- package/esm/funcs/profile-get-post-analytics.d.ts +2 -2
- package/esm/funcs/profile-get-post-analytics.d.ts.map +1 -1
- package/esm/funcs/profile-get-post-analytics.js +6 -4
- package/esm/funcs/profile-get-post-analytics.js.map +1 -1
- package/esm/funcs/profile-get-search-appearances.d.ts +1 -1
- package/esm/funcs/profile-get-search-appearances.d.ts.map +1 -1
- package/esm/funcs/profile-get-search-appearances.js +4 -2
- package/esm/funcs/profile-get-search-appearances.js.map +1 -1
- package/esm/funcs/profile-get.d.ts +1 -1
- package/esm/funcs/profile-get.d.ts.map +1 -1
- package/esm/funcs/profile-get.js +5 -3
- package/esm/funcs/profile-get.js.map +1 -1
- package/esm/funcs/profile-list-accounts.d.ts +1 -1
- package/esm/funcs/profile-list-accounts.d.ts.map +1 -1
- package/esm/funcs/profile-list-accounts.js +5 -3
- package/esm/funcs/profile-list-accounts.js.map +1 -1
- package/esm/funcs/profile-list-connections.d.ts +18 -0
- package/esm/funcs/profile-list-connections.d.ts.map +1 -0
- package/esm/funcs/profile-list-connections.js +103 -0
- package/esm/funcs/profile-list-connections.js.map +1 -0
- package/esm/funcs/profile-posts.d.ts +18 -0
- package/esm/funcs/profile-posts.d.ts.map +1 -0
- package/esm/funcs/profile-posts.js +99 -0
- package/esm/funcs/profile-posts.js.map +1 -0
- package/esm/funcs/profile-refresh.d.ts +1 -1
- package/esm/funcs/profile-refresh.d.ts.map +1 -1
- package/esm/funcs/profile-refresh.js +4 -2
- package/esm/funcs/profile-refresh.js.map +1 -1
- package/esm/funcs/profile-switch-account.d.ts +18 -0
- package/esm/funcs/profile-switch-account.d.ts.map +1 -0
- package/esm/funcs/profile-switch-account.js +97 -0
- package/esm/funcs/profile-switch-account.js.map +1 -0
- package/esm/funcs/profile-update-account.d.ts +1 -1
- package/esm/funcs/profile-update-account.d.ts.map +1 -1
- package/esm/funcs/profile-update-account.js +5 -3
- package/esm/funcs/profile-update-account.js.map +1 -1
- package/esm/funcs/profile-views.d.ts +18 -0
- package/esm/funcs/profile-views.d.ts.map +1 -0
- package/esm/funcs/profile-views.js +87 -0
- package/esm/funcs/profile-views.js.map +1 -0
- package/esm/funcs/sales-nav-companies.d.ts +33 -0
- package/esm/funcs/sales-nav-companies.d.ts.map +1 -0
- package/esm/funcs/sales-nav-companies.js +112 -0
- package/esm/funcs/sales-nav-companies.js.map +1 -0
- package/esm/funcs/sales-nav-people.d.ts +53 -0
- package/esm/funcs/sales-nav-people.d.ts.map +1 -0
- package/esm/funcs/sales-nav-people.js +132 -0
- package/esm/funcs/sales-nav-people.js.map +1 -0
- package/esm/funcs/sales-nav-search.d.ts +39 -0
- package/esm/funcs/sales-nav-search.d.ts.map +1 -0
- package/esm/funcs/sales-nav-search.js +118 -0
- package/esm/funcs/sales-nav-search.js.map +1 -0
- package/esm/funcs/scheduled-messages-batch-schedule.d.ts +18 -0
- package/esm/funcs/scheduled-messages-batch-schedule.d.ts.map +1 -0
- package/esm/funcs/scheduled-messages-batch-schedule.js +97 -0
- package/esm/funcs/scheduled-messages-batch-schedule.js.map +1 -0
- package/esm/funcs/scheduled-messages-cancel.d.ts +18 -0
- package/esm/funcs/scheduled-messages-cancel.d.ts.map +1 -0
- package/esm/funcs/scheduled-messages-cancel.js +97 -0
- package/esm/funcs/scheduled-messages-cancel.js.map +1 -0
- package/esm/funcs/scheduled-messages-create.d.ts +18 -0
- package/esm/funcs/scheduled-messages-create.d.ts.map +1 -0
- package/esm/funcs/scheduled-messages-create.js +97 -0
- package/esm/funcs/scheduled-messages-create.js.map +1 -0
- package/esm/funcs/scheduled-messages-list.d.ts +18 -0
- package/esm/funcs/scheduled-messages-list.d.ts.map +1 -0
- package/esm/funcs/scheduled-messages-list.js +104 -0
- package/esm/funcs/scheduled-messages-list.js.map +1 -0
- package/esm/funcs/scrapers-bulk-visit-batch-status.d.ts +18 -0
- package/esm/funcs/scrapers-bulk-visit-batch-status.d.ts.map +1 -0
- package/esm/funcs/scrapers-bulk-visit-batch-status.js +102 -0
- package/esm/funcs/scrapers-bulk-visit-batch-status.js.map +1 -0
- package/esm/funcs/scrapers-bulk-visit-profile.d.ts +18 -0
- package/esm/funcs/scrapers-bulk-visit-profile.d.ts.map +1 -0
- package/esm/funcs/scrapers-bulk-visit-profile.js +97 -0
- package/esm/funcs/scrapers-bulk-visit-profile.js.map +1 -0
- package/esm/funcs/scrapers-collect-comment-replies.d.ts +18 -0
- package/esm/funcs/scrapers-collect-comment-replies.d.ts.map +1 -0
- package/esm/funcs/scrapers-collect-comment-replies.js +97 -0
- package/esm/funcs/scrapers-collect-comment-replies.js.map +1 -0
- package/esm/funcs/scrapers-collect-comments.d.ts +18 -0
- package/esm/funcs/scrapers-collect-comments.d.ts.map +1 -0
- package/esm/funcs/scrapers-collect-comments.js +97 -0
- package/esm/funcs/scrapers-collect-comments.js.map +1 -0
- package/esm/funcs/scrapers-collect-hashtag-posts.d.ts +18 -0
- package/esm/funcs/scrapers-collect-hashtag-posts.d.ts.map +1 -0
- package/esm/funcs/scrapers-collect-hashtag-posts.js +97 -0
- package/esm/funcs/scrapers-collect-hashtag-posts.js.map +1 -0
- package/esm/funcs/scrapers-collect-likes.d.ts +18 -0
- package/esm/funcs/scrapers-collect-likes.d.ts.map +1 -0
- package/esm/funcs/scrapers-collect-likes.js +97 -0
- package/esm/funcs/scrapers-collect-likes.js.map +1 -0
- package/esm/funcs/scrapers-collect-posts.d.ts +2 -2
- package/esm/funcs/scrapers-collect-posts.d.ts.map +1 -1
- package/esm/funcs/scrapers-collect-posts.js +6 -4
- package/esm/funcs/scrapers-collect-posts.js.map +1 -1
- package/esm/funcs/scrapers-get-feed.d.ts +18 -0
- package/esm/funcs/scrapers-get-feed.d.ts.map +1 -0
- package/esm/funcs/scrapers-get-feed.js +99 -0
- package/esm/funcs/scrapers-get-feed.js.map +1 -0
- package/esm/funcs/scrapers-list-saved-posts.d.ts +18 -0
- package/esm/funcs/scrapers-list-saved-posts.d.ts.map +1 -0
- package/esm/funcs/scrapers-list-saved-posts.js +97 -0
- package/esm/funcs/scrapers-list-saved-posts.js.map +1 -0
- package/esm/funcs/scrapers-visit-company.d.ts +18 -0
- package/esm/funcs/scrapers-visit-company.d.ts.map +1 -0
- package/esm/funcs/scrapers-visit-company.js +97 -0
- package/esm/funcs/scrapers-visit-company.js.map +1 -0
- package/esm/funcs/scrapers-visit-profile.d.ts +4 -2
- package/esm/funcs/scrapers-visit-profile.d.ts.map +1 -1
- package/esm/funcs/scrapers-visit-profile.js +8 -4
- package/esm/funcs/scrapers-visit-profile.js.map +1 -1
- package/esm/funcs/search-by-url.d.ts +69 -0
- package/esm/funcs/search-by-url.d.ts.map +1 -0
- package/esm/funcs/search-by-url.js +148 -0
- package/esm/funcs/search-by-url.js.map +1 -0
- package/esm/funcs/search-companies.d.ts +75 -0
- package/esm/funcs/search-companies.d.ts.map +1 -0
- package/esm/funcs/search-companies.js +154 -0
- package/esm/funcs/search-companies.js.map +1 -0
- package/esm/funcs/search-jobs.d.ts +96 -0
- package/esm/funcs/search-jobs.d.ts.map +1 -0
- package/esm/funcs/search-jobs.js +175 -0
- package/esm/funcs/search-jobs.js.map +1 -0
- package/esm/funcs/search-people.d.ts +83 -0
- package/esm/funcs/search-people.d.ts.map +1 -0
- package/esm/funcs/search-people.js +162 -0
- package/esm/funcs/search-people.js.map +1 -0
- package/esm/funcs/search-posts.d.ts +71 -0
- package/esm/funcs/search-posts.d.ts.map +1 -0
- package/esm/funcs/search-posts.js +150 -0
- package/esm/funcs/search-posts.js.map +1 -0
- package/esm/funcs/search-resolve-parameters.d.ts +50 -0
- package/esm/funcs/search-resolve-parameters.d.ts.map +1 -0
- package/esm/funcs/search-resolve-parameters.js +134 -0
- package/esm/funcs/search-resolve-parameters.js.map +1 -0
- package/esm/funcs/search-search.d.ts +55 -0
- package/esm/funcs/search-search.d.ts.map +1 -0
- package/esm/funcs/search-search.js +134 -0
- package/esm/funcs/search-search.js.map +1 -0
- package/esm/lib/config.d.ts +5 -5
- package/esm/lib/config.d.ts.map +1 -1
- package/esm/lib/config.js +8 -4
- package/esm/lib/config.js.map +1 -1
- package/esm/lib/files.d.ts +13 -0
- package/esm/lib/files.d.ts.map +1 -1
- package/esm/lib/files.js +18 -0
- package/esm/lib/files.js.map +1 -1
- package/esm/lib/sdks.d.ts.map +1 -1
- package/esm/lib/sdks.js +8 -4
- package/esm/lib/sdks.js.map +1 -1
- package/esm/lib/url.d.ts.map +1 -1
- package/esm/lib/url.js +4 -2
- package/esm/lib/url.js.map +1 -1
- package/esm/models/errors/collect-likes.d.ts +257 -0
- package/esm/models/errors/collect-likes.d.ts.map +1 -0
- package/esm/models/errors/collect-likes.js +372 -0
- package/esm/models/errors/collect-likes.js.map +1 -0
- package/esm/models/errors/index.d.ts +1 -1
- package/esm/models/errors/index.d.ts.map +1 -1
- package/esm/models/errors/index.js +1 -1
- package/esm/models/errors/index.js.map +1 -1
- package/esm/models/operations/index.d.ts +4 -4
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +4 -4
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/search-companies-response.d.ts +2499 -0
- package/esm/models/operations/search-companies-response.d.ts.map +1 -0
- package/esm/models/operations/search-companies-response.js +1626 -0
- package/esm/models/operations/search-companies-response.js.map +1 -0
- package/esm/models/operations/search-contacts-contact.d.ts +2635 -0
- package/esm/models/operations/search-contacts-contact.d.ts.map +1 -0
- package/esm/models/operations/search-contacts-contact.js +1605 -0
- package/esm/models/operations/search-contacts-contact.js.map +1 -0
- package/esm/models/operations/update-account-response.d.ts +2800 -0
- package/esm/models/operations/update-account-response.d.ts.map +1 -0
- package/esm/models/operations/update-account-response.js +1575 -0
- package/esm/models/operations/update-account-response.js.map +1 -0
- package/esm/models/operations/update-schedule-response.d.ts +2216 -0
- package/esm/models/operations/update-schedule-response.d.ts.map +1 -0
- package/esm/models/operations/update-schedule-response.js +1459 -0
- package/esm/models/operations/update-schedule-response.js.map +1 -0
- package/esm/sdk/actions.d.ts +139 -6
- package/esm/sdk/actions.d.ts.map +1 -1
- package/esm/sdk/actions.js +192 -2
- package/esm/sdk/actions.js.map +1 -1
- package/esm/sdk/campaigns.d.ts +4 -4
- 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/chat.d.ts +91 -10
- package/esm/sdk/chat.d.ts.map +1 -1
- package/esm/sdk/chat.js +125 -8
- package/esm/sdk/chat.js.map +1 -1
- package/esm/sdk/company-pages.d.ts +4 -4
- package/esm/sdk/company-pages.d.ts.map +1 -1
- package/esm/sdk/company-pages.js +3 -3
- package/esm/sdk/company-pages.js.map +1 -1
- package/esm/sdk/contacts.d.ts +149 -2
- package/esm/sdk/contacts.d.ts.map +1 -1
- package/esm/sdk/contacts.js +211 -1
- package/esm/sdk/contacts.js.map +1 -1
- package/esm/sdk/context.d.ts +26 -0
- package/esm/sdk/context.d.ts.map +1 -0
- package/esm/sdk/context.js +38 -0
- package/esm/sdk/context.js.map +1 -0
- package/esm/sdk/cron.d.ts +19 -0
- package/esm/sdk/cron.d.ts.map +1 -0
- package/esm/sdk/cron.js +28 -0
- package/esm/sdk/cron.js.map +1 -0
- package/esm/sdk/profile.d.ts +27 -13
- package/esm/sdk/profile.d.ts.map +1 -1
- package/esm/sdk/profile.js +27 -7
- package/esm/sdk/profile.js.map +1 -1
- package/esm/sdk/sales-nav.d.ts +51 -1
- package/esm/sdk/sales-nav.d.ts.map +1 -1
- package/esm/sdk/sales-nav.js +59 -3
- package/esm/sdk/sales-nav.js.map +1 -1
- package/esm/sdk/scheduled-messages.d.ts +33 -0
- package/esm/sdk/scheduled-messages.d.ts.map +1 -0
- package/esm/sdk/scheduled-messages.js +48 -0
- package/esm/sdk/scheduled-messages.js.map +1 -0
- package/esm/sdk/scrapers.d.ts +69 -4
- package/esm/sdk/scrapers.d.ts.map +1 -1
- package/esm/sdk/scrapers.js +94 -2
- package/esm/sdk/scrapers.js.map +1 -1
- package/esm/sdk/sdk.d.ts +12 -27
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +19 -44
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/search.d.ts +427 -0
- package/esm/sdk/search.d.ts.map +1 -0
- package/esm/sdk/search.js +451 -0
- package/esm/sdk/search.js.map +1 -0
- package/examples/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/examples/node_modules/@types/node/assert.d.ts +1062 -0
- package/examples/node_modules/@types/node/async_hooks.d.ts +605 -0
- package/examples/node_modules/@types/node/buffer.buffer.d.ts +471 -0
- package/examples/node_modules/@types/node/buffer.d.ts +1936 -0
- package/examples/node_modules/@types/node/child_process.d.ts +1475 -0
- package/examples/node_modules/@types/node/cluster.d.ts +577 -0
- package/examples/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
- package/examples/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/examples/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
- package/examples/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/examples/node_modules/@types/node/console.d.ts +452 -0
- package/examples/node_modules/@types/node/constants.d.ts +21 -0
- package/examples/node_modules/@types/node/crypto.d.ts +4590 -0
- package/examples/node_modules/@types/node/dgram.d.ts +597 -0
- package/examples/node_modules/@types/node/diagnostics_channel.d.ts +578 -0
- package/examples/node_modules/@types/node/dns/promises.d.ts +479 -0
- package/examples/node_modules/@types/node/dns.d.ts +871 -0
- package/examples/node_modules/@types/node/domain.d.ts +170 -0
- package/examples/node_modules/@types/node/events.d.ts +977 -0
- package/examples/node_modules/@types/node/fs/promises.d.ts +1270 -0
- package/examples/node_modules/@types/node/fs.d.ts +4375 -0
- package/examples/node_modules/@types/node/globals.d.ts +172 -0
- package/examples/node_modules/@types/node/globals.typedarray.d.ts +38 -0
- package/examples/node_modules/@types/node/http.d.ts +2049 -0
- package/examples/node_modules/@types/node/http2.d.ts +2631 -0
- package/examples/node_modules/@types/node/https.d.ts +578 -0
- package/examples/node_modules/@types/node/index.d.ts +93 -0
- package/examples/node_modules/@types/node/inspector.generated.d.ts +3966 -0
- package/examples/node_modules/@types/node/module.d.ts +539 -0
- package/examples/node_modules/@types/node/net.d.ts +1012 -0
- package/examples/node_modules/@types/node/os.d.ts +506 -0
- package/examples/node_modules/@types/node/path.d.ts +200 -0
- package/examples/node_modules/@types/node/perf_hooks.d.ts +961 -0
- package/examples/node_modules/@types/node/process.d.ts +1961 -0
- package/examples/node_modules/@types/node/punycode.d.ts +117 -0
- package/examples/node_modules/@types/node/querystring.d.ts +152 -0
- package/examples/node_modules/@types/node/readline/promises.d.ts +162 -0
- package/examples/node_modules/@types/node/readline.d.ts +589 -0
- package/examples/node_modules/@types/node/repl.d.ts +430 -0
- package/examples/node_modules/@types/node/sea.d.ts +153 -0
- package/examples/node_modules/@types/node/stream/consumers.d.ts +38 -0
- package/examples/node_modules/@types/node/stream/promises.d.ts +90 -0
- package/examples/node_modules/@types/node/stream/web.d.ts +533 -0
- package/examples/node_modules/@types/node/stream.d.ts +1675 -0
- package/examples/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/examples/node_modules/@types/node/test.d.ts +1787 -0
- package/examples/node_modules/@types/node/timers/promises.d.ts +108 -0
- package/examples/node_modules/@types/node/timers.d.ts +286 -0
- package/examples/node_modules/@types/node/tls.d.ts +1259 -0
- package/examples/node_modules/@types/node/trace_events.d.ts +197 -0
- package/examples/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
- package/examples/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +34 -0
- package/examples/node_modules/@types/node/ts5.6/index.d.ts +93 -0
- package/examples/node_modules/@types/node/tty.d.ts +208 -0
- package/examples/node_modules/@types/node/url.d.ts +964 -0
- package/examples/node_modules/@types/node/util.d.ts +2331 -0
- package/examples/node_modules/@types/node/v8.d.ts +809 -0
- package/examples/node_modules/@types/node/vm.d.ts +1001 -0
- package/examples/node_modules/@types/node/wasi.d.ts +181 -0
- package/examples/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/examples/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/examples/node_modules/@types/node/web-globals/events.d.ts +97 -0
- package/examples/node_modules/@types/node/web-globals/fetch.d.ts +55 -0
- package/examples/node_modules/@types/node/worker_threads.d.ts +715 -0
- package/examples/node_modules/@types/node/zlib.d.ts +598 -0
- package/examples/node_modules/dotenv/config.d.ts +1 -0
- package/examples/node_modules/dotenv/config.js +9 -0
- package/examples/node_modules/dotenv/lib/cli-options.js +17 -0
- package/examples/node_modules/dotenv/lib/env-options.js +28 -0
- package/examples/node_modules/dotenv/lib/main.d.ts +162 -0
- package/examples/node_modules/dotenv/lib/main.js +386 -0
- package/examples/node_modules/esbuild/install.js +289 -0
- package/examples/node_modules/esbuild/lib/main.d.ts +716 -0
- package/examples/node_modules/esbuild/lib/main.js +2242 -0
- package/examples/node_modules/get-tsconfig/dist/index.mjs +7 -0
- package/examples/node_modules/resolve-pkg-maps/dist/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/cjs/api/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/cjs/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/cli.mjs +55 -0
- package/examples/node_modules/tsx/dist/client-BQVF1NaW.mjs +1 -0
- package/examples/node_modules/tsx/dist/esm/api/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/esm/index.mjs +2 -0
- package/examples/node_modules/tsx/dist/get-pipe-path-BHW2eJdv.mjs +1 -0
- package/examples/node_modules/tsx/dist/index-7AaEi15b.mjs +14 -0
- package/examples/node_modules/tsx/dist/index-gbaejti9.mjs +1 -0
- package/examples/node_modules/tsx/dist/lexer-DQCqS3nf.mjs +3 -0
- package/examples/node_modules/tsx/dist/loader.mjs +1 -0
- package/examples/node_modules/tsx/dist/node-features-_8ZFwP_x.mjs +1 -0
- package/examples/node_modules/tsx/dist/package-CeBgXWuR.mjs +1 -0
- package/examples/node_modules/tsx/dist/patch-repl.mjs +1 -0
- package/examples/node_modules/tsx/dist/preflight.mjs +1 -0
- package/examples/node_modules/tsx/dist/register-B7jrtLTO.mjs +1 -0
- package/examples/node_modules/tsx/dist/register-CFH5oNdT.mjs +4 -0
- package/examples/node_modules/tsx/dist/repl.mjs +3 -0
- package/examples/node_modules/tsx/dist/require-DQxpCAr4.mjs +1 -0
- package/examples/node_modules/tsx/dist/suppress-warnings.mjs +1 -0
- package/examples/node_modules/tsx/dist/temporary-directory-CwHp0_NW.mjs +1 -0
- package/examples/node_modules/tsx/dist/types-Cxp8y2TL.d.ts +5 -0
- package/examples/node_modules/undici-types/agent.d.ts +31 -0
- package/examples/node_modules/undici-types/api.d.ts +43 -0
- package/examples/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/examples/node_modules/undici-types/cache.d.ts +36 -0
- package/examples/node_modules/undici-types/client.d.ts +108 -0
- package/examples/node_modules/undici-types/connector.d.ts +34 -0
- package/examples/node_modules/undici-types/content-type.d.ts +21 -0
- package/examples/node_modules/undici-types/cookies.d.ts +28 -0
- package/examples/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- package/examples/node_modules/undici-types/dispatcher.d.ts +256 -0
- package/examples/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/examples/node_modules/undici-types/errors.d.ts +149 -0
- package/examples/node_modules/undici-types/eventsource.d.ts +61 -0
- package/examples/node_modules/undici-types/fetch.d.ts +209 -0
- package/examples/node_modules/undici-types/file.d.ts +39 -0
- package/examples/node_modules/undici-types/filereader.d.ts +54 -0
- package/examples/node_modules/undici-types/formdata.d.ts +108 -0
- package/examples/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/examples/node_modules/undici-types/global-origin.d.ts +7 -0
- package/examples/node_modules/undici-types/handlers.d.ts +15 -0
- package/examples/node_modules/undici-types/header.d.ts +4 -0
- package/examples/node_modules/undici-types/index.d.ts +71 -0
- package/examples/node_modules/undici-types/interceptors.d.ts +17 -0
- package/examples/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/examples/node_modules/undici-types/mock-client.d.ts +25 -0
- package/examples/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/examples/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/examples/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/examples/node_modules/undici-types/patch.d.ts +33 -0
- package/examples/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/examples/node_modules/undici-types/pool.d.ts +39 -0
- package/examples/node_modules/undici-types/proxy-agent.d.ts +28 -0
- package/examples/node_modules/undici-types/readable.d.ts +65 -0
- package/examples/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/examples/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/examples/node_modules/undici-types/util.d.ts +18 -0
- package/examples/node_modules/undici-types/webidl.d.ts +228 -0
- package/examples/node_modules/undici-types/websocket.d.ts +150 -0
- package/examples/scrapersCollectLikes.example.ts +30 -0
- package/jsr.json +1 -1
- package/package.json +2 -4
- package/src/funcs/actions-accept-invitation.ts +225 -0
- package/src/funcs/actions-connect-profile.ts +19 -10
- package/src/funcs/actions-create-comment.ts +224 -0
- package/src/funcs/actions-decline-invitation.ts +225 -0
- package/src/funcs/actions-edit-comment.ts +224 -0
- package/src/funcs/actions-edit-post.ts +224 -0
- package/src/funcs/actions-follow-company.ts +18 -9
- package/src/funcs/actions-follow-profile.ts +224 -0
- package/src/funcs/actions-like-comment.ts +224 -0
- package/src/funcs/actions-like-post.ts +224 -0
- package/src/funcs/actions-list-invitations.ts +230 -0
- package/src/funcs/actions-list-sent-invitations.ts +18 -11
- package/src/funcs/actions-publish-post.ts +224 -0
- package/src/funcs/actions-reply-to-comment.ts +224 -0
- package/src/funcs/actions-repost-post.ts +224 -0
- package/src/funcs/actions-save-post.ts +224 -0
- package/src/funcs/actions-send-message.ts +19 -10
- package/src/funcs/actions-unfollow-company.ts +224 -0
- package/src/funcs/actions-unfollow-profile.ts +224 -0
- package/src/funcs/actions-unlike-comment.ts +224 -0
- package/src/funcs/actions-unlike-post.ts +224 -0
- package/src/funcs/actions-unsave-post.ts +224 -0
- package/src/funcs/actions-withdraw-invitation.ts +225 -0
- package/src/funcs/campaigns-filter.ts +18 -9
- package/src/funcs/campaigns-get-status.ts +18 -10
- package/src/funcs/campaigns-stats.ts +230 -0
- package/src/funcs/campaigns-sync.ts +18 -10
- package/src/funcs/chat-archive.ts +18 -9
- package/src/funcs/chat-find-conversation.ts +19 -16
- package/src/funcs/chat-get-messages.ts +233 -0
- package/src/funcs/chat-get-unread-count.ts +205 -0
- package/src/funcs/chat-list-archived.ts +229 -0
- package/src/funcs/chat-list-inbox.ts +227 -0
- package/src/funcs/chat-list-starred.ts +229 -0
- package/src/funcs/chat-mark-all-read.ts +209 -0
- package/src/funcs/chat-mark-seen.ts +224 -0
- package/src/funcs/chat-react.ts +224 -0
- package/src/funcs/chat-search-conversations.ts +28 -16
- package/src/funcs/chat-send-typing-indicator.ts +225 -0
- package/src/funcs/chat-star.ts +224 -0
- package/src/funcs/chat-unarchive.ts +224 -0
- package/src/funcs/chat-unreact.ts +18 -9
- package/src/funcs/chat-unstar.ts +224 -0
- package/src/funcs/company-pages-get-analytics.ts +18 -9
- package/src/funcs/company-pages-get-permissions.ts +18 -12
- package/src/funcs/company-pages-list.ts +15 -5
- package/src/funcs/company-pages-posts.ts +224 -0
- package/src/funcs/contacts-add-activities.ts +230 -0
- package/src/funcs/contacts-add-to-campaign.ts +233 -0
- package/src/funcs/contacts-bulk-update.ts +224 -0
- package/src/funcs/contacts-campaign-status-transition.ts +233 -0
- package/src/funcs/contacts-create-campaign.ts +224 -0
- package/src/funcs/contacts-delete-agent-state.ts +230 -0
- package/src/funcs/contacts-delete-campaign.ts +229 -0
- package/src/funcs/contacts-get-agent-state.ts +229 -0
- package/src/funcs/contacts-get-by-url.ts +228 -0
- package/src/funcs/contacts-get-campaign.ts +229 -0
- package/src/funcs/contacts-get.ts +229 -0
- package/src/funcs/contacts-list-activities.ts +236 -0
- package/src/funcs/contacts-list-agent-states.ts +232 -0
- package/src/funcs/contacts-list-by-campaign.ts +242 -0
- package/src/funcs/contacts-list-campaigns.ts +235 -0
- package/src/funcs/contacts-patch-agent-state.ts +230 -0
- package/src/funcs/contacts-search.ts +244 -0
- package/src/funcs/contacts-set-agent-state.ts +230 -0
- package/src/funcs/contacts-stats.ts +232 -0
- package/src/funcs/contacts-update-campaign.ts +230 -0
- package/src/funcs/contacts-update.ts +230 -0
- package/src/funcs/contacts-upsert.ts +74 -11
- package/src/funcs/context-delete.ts +229 -0
- package/src/funcs/context-list-entries.ts +230 -0
- package/src/funcs/context-set.ts +224 -0
- package/src/funcs/cron-list-schedules.ts +205 -0
- package/src/funcs/cron-update-schedule.ts +230 -0
- package/src/funcs/profile-get-credits.ts +16 -6
- package/src/funcs/profile-get-follower-analytics.ts +17 -7
- package/src/funcs/profile-get-followers.ts +18 -11
- package/src/funcs/profile-get-limits.ts +16 -6
- package/src/funcs/profile-get-post-analytics.ts +19 -9
- package/src/funcs/profile-get-search-appearances.ts +17 -7
- package/src/funcs/profile-get.ts +16 -6
- package/src/funcs/profile-list-accounts.ts +16 -6
- package/src/funcs/profile-list-connections.ts +235 -0
- package/src/funcs/profile-posts.ts +227 -0
- package/src/funcs/profile-refresh.ts +15 -5
- package/src/funcs/profile-switch-account.ts +224 -0
- package/src/funcs/profile-update-account.ts +18 -9
- package/src/funcs/profile-views.ts +209 -0
- package/src/funcs/sales-nav-companies.ts +240 -0
- package/src/funcs/sales-nav-people.ts +260 -0
- package/src/funcs/sales-nav-search.ts +245 -0
- package/src/funcs/scheduled-messages-batch-schedule.ts +224 -0
- package/src/funcs/scheduled-messages-cancel.ts +224 -0
- package/src/funcs/scheduled-messages-create.ts +224 -0
- package/src/funcs/scheduled-messages-list.ts +233 -0
- package/src/funcs/scrapers-bulk-visit-batch-status.ts +230 -0
- package/src/funcs/scrapers-bulk-visit-profile.ts +225 -0
- package/src/funcs/scrapers-collect-comment-replies.ts +225 -0
- package/src/funcs/scrapers-collect-comments.ts +224 -0
- package/src/funcs/scrapers-collect-hashtag-posts.ts +225 -0
- package/src/funcs/scrapers-collect-likes.ts +224 -0
- package/src/funcs/scrapers-collect-posts.ts +19 -10
- package/src/funcs/scrapers-get-feed.ts +227 -0
- package/src/funcs/scrapers-list-saved-posts.ts +224 -0
- package/src/funcs/scrapers-visit-company.ts +224 -0
- package/src/funcs/scrapers-visit-profile.ts +21 -10
- package/src/funcs/search-by-url.ts +275 -0
- package/src/funcs/search-companies.ts +281 -0
- package/src/funcs/search-jobs.ts +302 -0
- package/src/funcs/search-people.ts +289 -0
- package/src/funcs/search-posts.ts +277 -0
- package/src/funcs/search-resolve-parameters.ts +263 -0
- package/src/funcs/search-search.ts +261 -0
- package/src/lib/config.ts +8 -4
- package/src/lib/files.ts +22 -0
- package/src/lib/sdks.ts +7 -5
- package/src/lib/url.ts +16 -14
- package/src/models/errors/collect-likes.ts +600 -0
- package/src/models/errors/index.ts +1 -1
- package/src/models/operations/index.ts +4 -4
- package/src/models/operations/search-companies-response.ts +4888 -0
- package/src/models/operations/search-contacts-contact.ts +5287 -0
- package/src/models/operations/update-account-response.ts +5354 -0
- package/src/models/operations/update-schedule-response.ts +4456 -0
- package/src/sdk/actions.ts +352 -10
- package/src/sdk/campaigns.ts +9 -9
- package/src/sdk/chat.ts +227 -16
- package/src/sdk/company-pages.ts +10 -10
- package/src/sdk/contacts.ts +381 -3
- package/src/sdk/context.ts +63 -0
- package/src/sdk/cron.ts +43 -0
- package/src/sdk/profile.ts +62 -26
- package/src/sdk/sales-nav.ts +75 -3
- package/src/sdk/scheduled-messages.ts +81 -0
- package/src/sdk/scrapers.ts +170 -6
- package/src/sdk/sdk.ts +22 -54
- package/src/sdk/search.ts +508 -0
- package/esm/funcs/campaigns-get-stats.d.ts +0 -18
- package/esm/funcs/campaigns-get-stats.d.ts.map +0 -1
- package/esm/funcs/campaigns-get-stats.js +0 -101
- package/esm/funcs/campaigns-get-stats.js.map +0 -1
- package/esm/funcs/company-pages-get-posts.d.ts +0 -18
- package/esm/funcs/company-pages-get-posts.d.ts.map +0 -1
- package/esm/funcs/company-pages-get-posts.js +0 -95
- package/esm/funcs/company-pages-get-posts.js.map +0 -1
- package/esm/funcs/linked-in-actions-create-comment.d.ts +0 -18
- package/esm/funcs/linked-in-actions-create-comment.d.ts.map +0 -1
- package/esm/funcs/linked-in-actions-create-comment.js +0 -95
- package/esm/funcs/linked-in-actions-create-comment.js.map +0 -1
- package/esm/funcs/linked-in-actions-decline-invitation.d.ts +0 -18
- package/esm/funcs/linked-in-actions-decline-invitation.d.ts.map +0 -1
- package/esm/funcs/linked-in-actions-decline-invitation.js +0 -95
- package/esm/funcs/linked-in-actions-decline-invitation.js.map +0 -1
- package/esm/funcs/linked-in-actions-like-comment.d.ts +0 -18
- package/esm/funcs/linked-in-actions-like-comment.d.ts.map +0 -1
- package/esm/funcs/linked-in-actions-like-comment.js +0 -95
- package/esm/funcs/linked-in-actions-like-comment.js.map +0 -1
- package/esm/funcs/linked-in-actions-publish-post.d.ts +0 -18
- package/esm/funcs/linked-in-actions-publish-post.d.ts.map +0 -1
- package/esm/funcs/linked-in-actions-publish-post.js +0 -95
- package/esm/funcs/linked-in-actions-publish-post.js.map +0 -1
- package/esm/funcs/linked-in-actions-save-post.d.ts +0 -18
- package/esm/funcs/linked-in-actions-save-post.d.ts.map +0 -1
- package/esm/funcs/linked-in-actions-save-post.js +0 -95
- package/esm/funcs/linked-in-actions-save-post.js.map +0 -1
- package/esm/funcs/linked-in-actions-unfollow-profile.d.ts +0 -18
- package/esm/funcs/linked-in-actions-unfollow-profile.d.ts.map +0 -1
- package/esm/funcs/linked-in-actions-unfollow-profile.js +0 -95
- package/esm/funcs/linked-in-actions-unfollow-profile.js.map +0 -1
- package/esm/funcs/linked-in-chat-list-starred.d.ts +0 -18
- package/esm/funcs/linked-in-chat-list-starred.d.ts.map +0 -1
- package/esm/funcs/linked-in-chat-list-starred.js +0 -97
- package/esm/funcs/linked-in-chat-list-starred.js.map +0 -1
- package/esm/funcs/linked-in-chat-mark-seen.d.ts +0 -18
- package/esm/funcs/linked-in-chat-mark-seen.d.ts.map +0 -1
- package/esm/funcs/linked-in-chat-mark-seen.js +0 -95
- package/esm/funcs/linked-in-chat-mark-seen.js.map +0 -1
- package/esm/funcs/linked-in-chat-star.d.ts +0 -18
- package/esm/funcs/linked-in-chat-star.d.ts.map +0 -1
- package/esm/funcs/linked-in-chat-star.js +0 -95
- package/esm/funcs/linked-in-chat-star.js.map +0 -1
- package/esm/funcs/linked-in-chat-unarchive.d.ts +0 -18
- package/esm/funcs/linked-in-chat-unarchive.d.ts.map +0 -1
- package/esm/funcs/linked-in-chat-unarchive.js +0 -95
- package/esm/funcs/linked-in-chat-unarchive.js.map +0 -1
- package/esm/funcs/linked-in-chat-unstar.d.ts +0 -18
- package/esm/funcs/linked-in-chat-unstar.d.ts.map +0 -1
- package/esm/funcs/linked-in-chat-unstar.js +0 -95
- package/esm/funcs/linked-in-chat-unstar.js.map +0 -1
- package/esm/funcs/linked-in-scrapers-collect-comment-replies.d.ts +0 -18
- package/esm/funcs/linked-in-scrapers-collect-comment-replies.d.ts.map +0 -1
- package/esm/funcs/linked-in-scrapers-collect-comment-replies.js +0 -95
- package/esm/funcs/linked-in-scrapers-collect-comment-replies.js.map +0 -1
- package/esm/funcs/linked-in-scrapers-get-feed.d.ts +0 -18
- package/esm/funcs/linked-in-scrapers-get-feed.d.ts.map +0 -1
- package/esm/funcs/linked-in-scrapers-get-feed.js +0 -97
- package/esm/funcs/linked-in-scrapers-get-feed.js.map +0 -1
- package/esm/funcs/linked-in-search-resolve-parameters.d.ts +0 -47
- package/esm/funcs/linked-in-search-resolve-parameters.d.ts.map +0 -1
- package/esm/funcs/linked-in-search-resolve-parameters.js +0 -124
- package/esm/funcs/linked-in-search-resolve-parameters.js.map +0 -1
- package/esm/funcs/linked-in-search-search-companies.d.ts +0 -75
- package/esm/funcs/linked-in-search-search-companies.d.ts.map +0 -1
- package/esm/funcs/linked-in-search-search-companies.js +0 -152
- package/esm/funcs/linked-in-search-search-companies.js.map +0 -1
- package/esm/funcs/linked-in-search-search.d.ts +0 -55
- package/esm/funcs/linked-in-search-search.d.ts.map +0 -1
- package/esm/funcs/linked-in-search-search.js +0 -132
- package/esm/funcs/linked-in-search-search.js.map +0 -1
- package/esm/funcs/linkedin-actions-accept-invitation.d.ts +0 -18
- package/esm/funcs/linkedin-actions-accept-invitation.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-accept-invitation.js +0 -95
- package/esm/funcs/linkedin-actions-accept-invitation.js.map +0 -1
- package/esm/funcs/linkedin-actions-edit-comment.d.ts +0 -18
- package/esm/funcs/linkedin-actions-edit-comment.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-edit-comment.js +0 -95
- package/esm/funcs/linkedin-actions-edit-comment.js.map +0 -1
- package/esm/funcs/linkedin-actions-edit-post.d.ts +0 -18
- package/esm/funcs/linkedin-actions-edit-post.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-edit-post.js +0 -95
- package/esm/funcs/linkedin-actions-edit-post.js.map +0 -1
- package/esm/funcs/linkedin-actions-follow-profile.d.ts +0 -18
- package/esm/funcs/linkedin-actions-follow-profile.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-follow-profile.js +0 -95
- package/esm/funcs/linkedin-actions-follow-profile.js.map +0 -1
- package/esm/funcs/linkedin-actions-like-post.d.ts +0 -18
- package/esm/funcs/linkedin-actions-like-post.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-like-post.js +0 -95
- package/esm/funcs/linkedin-actions-like-post.js.map +0 -1
- package/esm/funcs/linkedin-actions-list-invitations.d.ts +0 -18
- package/esm/funcs/linkedin-actions-list-invitations.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-list-invitations.js +0 -97
- package/esm/funcs/linkedin-actions-list-invitations.js.map +0 -1
- package/esm/funcs/linkedin-actions-reply-to-comment.d.ts +0 -18
- package/esm/funcs/linkedin-actions-reply-to-comment.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-reply-to-comment.js +0 -95
- package/esm/funcs/linkedin-actions-reply-to-comment.js.map +0 -1
- package/esm/funcs/linkedin-actions-repost-post.d.ts +0 -18
- package/esm/funcs/linkedin-actions-repost-post.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-repost-post.js +0 -95
- package/esm/funcs/linkedin-actions-repost-post.js.map +0 -1
- package/esm/funcs/linkedin-actions-unfollow-company.d.ts +0 -18
- package/esm/funcs/linkedin-actions-unfollow-company.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-unfollow-company.js +0 -95
- package/esm/funcs/linkedin-actions-unfollow-company.js.map +0 -1
- package/esm/funcs/linkedin-actions-unlike-comment.d.ts +0 -18
- package/esm/funcs/linkedin-actions-unlike-comment.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-unlike-comment.js +0 -95
- package/esm/funcs/linkedin-actions-unlike-comment.js.map +0 -1
- package/esm/funcs/linkedin-actions-unlike-post.d.ts +0 -18
- package/esm/funcs/linkedin-actions-unlike-post.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-unlike-post.js +0 -95
- package/esm/funcs/linkedin-actions-unlike-post.js.map +0 -1
- package/esm/funcs/linkedin-actions-unsave-post.d.ts +0 -18
- package/esm/funcs/linkedin-actions-unsave-post.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-unsave-post.js +0 -95
- package/esm/funcs/linkedin-actions-unsave-post.js.map +0 -1
- package/esm/funcs/linkedin-actions-withdraw-invitation.d.ts +0 -18
- package/esm/funcs/linkedin-actions-withdraw-invitation.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-withdraw-invitation.js +0 -95
- package/esm/funcs/linkedin-actions-withdraw-invitation.js.map +0 -1
- package/esm/funcs/linkedin-chat-get-messages.d.ts +0 -22
- package/esm/funcs/linkedin-chat-get-messages.d.ts.map +0 -1
- package/esm/funcs/linkedin-chat-get-messages.js +0 -99
- package/esm/funcs/linkedin-chat-get-messages.js.map +0 -1
- package/esm/funcs/linkedin-chat-get-unread-count.d.ts +0 -18
- package/esm/funcs/linkedin-chat-get-unread-count.d.ts.map +0 -1
- package/esm/funcs/linkedin-chat-get-unread-count.js +0 -85
- package/esm/funcs/linkedin-chat-get-unread-count.js.map +0 -1
- package/esm/funcs/linkedin-chat-list-archived.d.ts +0 -18
- package/esm/funcs/linkedin-chat-list-archived.d.ts.map +0 -1
- package/esm/funcs/linkedin-chat-list-archived.js +0 -97
- package/esm/funcs/linkedin-chat-list-archived.js.map +0 -1
- package/esm/funcs/linkedin-chat-list-inbox-conversations.d.ts +0 -18
- package/esm/funcs/linkedin-chat-list-inbox-conversations.d.ts.map +0 -1
- package/esm/funcs/linkedin-chat-list-inbox-conversations.js +0 -95
- package/esm/funcs/linkedin-chat-list-inbox-conversations.js.map +0 -1
- package/esm/funcs/linkedin-chat-mark-all-read.d.ts +0 -18
- package/esm/funcs/linkedin-chat-mark-all-read.d.ts.map +0 -1
- package/esm/funcs/linkedin-chat-mark-all-read.js +0 -85
- package/esm/funcs/linkedin-chat-mark-all-read.js.map +0 -1
- package/esm/funcs/linkedin-chat-react.d.ts +0 -18
- package/esm/funcs/linkedin-chat-react.d.ts.map +0 -1
- package/esm/funcs/linkedin-chat-react.js +0 -95
- package/esm/funcs/linkedin-chat-react.js.map +0 -1
- package/esm/funcs/linkedin-chat-send-typing-indicator.d.ts +0 -18
- package/esm/funcs/linkedin-chat-send-typing-indicator.d.ts.map +0 -1
- package/esm/funcs/linkedin-chat-send-typing-indicator.js +0 -95
- package/esm/funcs/linkedin-chat-send-typing-indicator.js.map +0 -1
- package/esm/funcs/linkedin-scrapers-collect-comments.d.ts +0 -18
- package/esm/funcs/linkedin-scrapers-collect-comments.d.ts.map +0 -1
- package/esm/funcs/linkedin-scrapers-collect-comments.js +0 -95
- package/esm/funcs/linkedin-scrapers-collect-comments.js.map +0 -1
- package/esm/funcs/linkedin-scrapers-collect-hashtag-posts.d.ts +0 -18
- package/esm/funcs/linkedin-scrapers-collect-hashtag-posts.d.ts.map +0 -1
- package/esm/funcs/linkedin-scrapers-collect-hashtag-posts.js +0 -95
- package/esm/funcs/linkedin-scrapers-collect-hashtag-posts.js.map +0 -1
- package/esm/funcs/linkedin-scrapers-collect-likes.d.ts +0 -18
- package/esm/funcs/linkedin-scrapers-collect-likes.d.ts.map +0 -1
- package/esm/funcs/linkedin-scrapers-collect-likes.js +0 -95
- package/esm/funcs/linkedin-scrapers-collect-likes.js.map +0 -1
- package/esm/funcs/linkedin-scrapers-list-saved-posts.d.ts +0 -18
- package/esm/funcs/linkedin-scrapers-list-saved-posts.d.ts.map +0 -1
- package/esm/funcs/linkedin-scrapers-list-saved-posts.js +0 -95
- package/esm/funcs/linkedin-scrapers-list-saved-posts.js.map +0 -1
- package/esm/funcs/linkedin-scrapers-visit-company.d.ts +0 -18
- package/esm/funcs/linkedin-scrapers-visit-company.d.ts.map +0 -1
- package/esm/funcs/linkedin-scrapers-visit-company.js +0 -95
- package/esm/funcs/linkedin-scrapers-visit-company.js.map +0 -1
- package/esm/funcs/linkedin-search-search-by-url.d.ts +0 -69
- package/esm/funcs/linkedin-search-search-by-url.d.ts.map +0 -1
- package/esm/funcs/linkedin-search-search-by-url.js +0 -146
- package/esm/funcs/linkedin-search-search-by-url.js.map +0 -1
- package/esm/funcs/linkedin-search-search-jobs.d.ts +0 -96
- package/esm/funcs/linkedin-search-search-jobs.d.ts.map +0 -1
- package/esm/funcs/linkedin-search-search-jobs.js +0 -173
- package/esm/funcs/linkedin-search-search-jobs.js.map +0 -1
- package/esm/funcs/linkedin-search-search-people.d.ts +0 -83
- package/esm/funcs/linkedin-search-search-people.d.ts.map +0 -1
- package/esm/funcs/linkedin-search-search-people.js +0 -160
- package/esm/funcs/linkedin-search-search-people.js.map +0 -1
- package/esm/funcs/linkedin-search-search-posts.d.ts +0 -71
- package/esm/funcs/linkedin-search-search-posts.d.ts.map +0 -1
- package/esm/funcs/linkedin-search-search-posts.js +0 -148
- package/esm/funcs/linkedin-search-search-posts.js.map +0 -1
- package/esm/funcs/profile-get-posts.d.ts +0 -18
- package/esm/funcs/profile-get-posts.d.ts.map +0 -1
- package/esm/funcs/profile-get-posts.js +0 -97
- package/esm/funcs/profile-get-posts.js.map +0 -1
- package/esm/funcs/profile-get-profile-views.d.ts +0 -18
- package/esm/funcs/profile-get-profile-views.d.ts.map +0 -1
- package/esm/funcs/profile-get-profile-views.js +0 -85
- package/esm/funcs/profile-get-profile-views.js.map +0 -1
- package/esm/funcs/sales-nav-search-people.d.ts +0 -53
- package/esm/funcs/sales-nav-search-people.d.ts.map +0 -1
- package/esm/funcs/sales-nav-search-people.js +0 -130
- package/esm/funcs/sales-nav-search-people.js.map +0 -1
- package/esm/funcs/sales-navigator-search-search-companies.d.ts +0 -33
- package/esm/funcs/sales-navigator-search-search-companies.d.ts.map +0 -1
- package/esm/funcs/sales-navigator-search-search-companies.js +0 -110
- package/esm/funcs/sales-navigator-search-search-companies.js.map +0 -1
- package/esm/funcs/sales-navigator-search-search.d.ts +0 -39
- package/esm/funcs/sales-navigator-search-search.d.ts.map +0 -1
- package/esm/funcs/sales-navigator-search-search.js +0 -116
- package/esm/funcs/sales-navigator-search-search.js.map +0 -1
- package/esm/models/errors/collect-linked-in-likes.d.ts +0 -211
- package/esm/models/errors/collect-linked-in-likes.d.ts.map +0 -1
- package/esm/models/errors/collect-linked-in-likes.js +0 -306
- package/esm/models/errors/collect-linked-in-likes.js.map +0 -1
- package/esm/models/operations/get-campaign-stats-response.d.ts +0 -1550
- package/esm/models/operations/get-campaign-stats-response.d.ts.map +0 -1
- package/esm/models/operations/get-campaign-stats-response.js +0 -961
- package/esm/models/operations/get-campaign-stats-response.js.map +0 -1
- package/esm/models/operations/scraping-weekly.d.ts +0 -2946
- package/esm/models/operations/scraping-weekly.d.ts.map +0 -1
- package/esm/models/operations/scraping-weekly.js +0 -1594
- package/esm/models/operations/scraping-weekly.js.map +0 -1
- package/esm/models/operations/search-linked-in-by-url-type-post.d.ts +0 -2412
- package/esm/models/operations/search-linked-in-by-url-type-post.d.ts.map +0 -1
- package/esm/models/operations/search-linked-in-by-url-type-post.js +0 -1577
- package/esm/models/operations/search-linked-in-by-url-type-post.js.map +0 -1
- package/esm/models/operations/upsert-contacts.d.ts +0 -182
- package/esm/models/operations/upsert-contacts.d.ts.map +0 -1
- package/esm/models/operations/upsert-contacts.js +0 -116
- package/esm/models/operations/upsert-contacts.js.map +0 -1
- package/esm/sdk/linked-in-actions-2.d.ts +0 -47
- package/esm/sdk/linked-in-actions-2.d.ts.map +0 -1
- package/esm/sdk/linked-in-actions-2.js +0 -68
- package/esm/sdk/linked-in-actions-2.js.map +0 -1
- package/esm/sdk/linked-in-chat-2.d.ts +0 -40
- package/esm/sdk/linked-in-chat-2.d.ts.map +0 -1
- package/esm/sdk/linked-in-chat-2.js +0 -58
- package/esm/sdk/linked-in-chat-2.js.map +0 -1
- package/esm/sdk/linked-in-scrapers-2.d.ts +0 -19
- package/esm/sdk/linked-in-scrapers-2.d.ts.map +0 -1
- package/esm/sdk/linked-in-scrapers-2.js +0 -28
- package/esm/sdk/linked-in-scrapers-2.js.map +0 -1
- package/esm/sdk/linked-in-search-1.d.ts +0 -149
- package/esm/sdk/linked-in-search-1.d.ts.map +0 -1
- package/esm/sdk/linked-in-search-1.js +0 -161
- package/esm/sdk/linked-in-search-1.js.map +0 -1
- package/esm/sdk/linkedin-actions-1.d.ts +0 -96
- package/esm/sdk/linkedin-actions-1.d.ts.map +0 -1
- package/esm/sdk/linkedin-actions-1.js +0 -138
- package/esm/sdk/linkedin-actions-1.js.map +0 -1
- package/esm/sdk/linkedin-chat-1.d.ts +0 -58
- package/esm/sdk/linkedin-chat-1.d.ts.map +0 -1
- package/esm/sdk/linkedin-chat-1.js +0 -82
- package/esm/sdk/linkedin-chat-1.js.map +0 -1
- package/esm/sdk/linkedin-scrapers-1.d.ts +0 -40
- package/esm/sdk/linkedin-scrapers-1.d.ts.map +0 -1
- package/esm/sdk/linkedin-scrapers-1.js +0 -58
- package/esm/sdk/linkedin-scrapers-1.js.map +0 -1
- package/esm/sdk/linkedin-search-2.d.ts +0 -280
- package/esm/sdk/linkedin-search-2.d.ts.map +0 -1
- package/esm/sdk/linkedin-search-2.js +0 -295
- package/esm/sdk/linkedin-search-2.js.map +0 -1
- package/esm/sdk/sales-navigator-search.d.ts +0 -55
- package/esm/sdk/sales-navigator-search.d.ts.map +0 -1
- package/esm/sdk/sales-navigator-search.js +0 -64
- package/esm/sdk/sales-navigator-search.js.map +0 -1
- package/examples/linkedinScrapersCollectLikes.example.ts +0 -30
- package/src/funcs/campaigns-get-stats.ts +0 -222
- package/src/funcs/company-pages-get-posts.ts +0 -215
- package/src/funcs/linked-in-actions-create-comment.ts +0 -215
- package/src/funcs/linked-in-actions-decline-invitation.ts +0 -218
- package/src/funcs/linked-in-actions-like-comment.ts +0 -215
- package/src/funcs/linked-in-actions-publish-post.ts +0 -215
- package/src/funcs/linked-in-actions-save-post.ts +0 -215
- package/src/funcs/linked-in-actions-unfollow-profile.ts +0 -215
- package/src/funcs/linked-in-chat-list-starred.ts +0 -220
- package/src/funcs/linked-in-chat-mark-seen.ts +0 -215
- package/src/funcs/linked-in-chat-star.ts +0 -215
- package/src/funcs/linked-in-chat-unarchive.ts +0 -215
- package/src/funcs/linked-in-chat-unstar.ts +0 -215
- package/src/funcs/linked-in-scrapers-collect-comment-replies.ts +0 -218
- package/src/funcs/linked-in-scrapers-get-feed.ts +0 -220
- package/src/funcs/linked-in-search-resolve-parameters.ts +0 -250
- package/src/funcs/linked-in-search-search-companies.ts +0 -272
- package/src/funcs/linked-in-search-search.ts +0 -251
- package/src/funcs/linkedin-actions-accept-invitation.ts +0 -215
- package/src/funcs/linkedin-actions-edit-comment.ts +0 -215
- package/src/funcs/linkedin-actions-edit-post.ts +0 -215
- package/src/funcs/linkedin-actions-follow-profile.ts +0 -215
- package/src/funcs/linkedin-actions-like-post.ts +0 -215
- package/src/funcs/linkedin-actions-list-invitations.ts +0 -220
- package/src/funcs/linkedin-actions-reply-to-comment.ts +0 -215
- package/src/funcs/linkedin-actions-repost-post.ts +0 -215
- package/src/funcs/linkedin-actions-unfollow-company.ts +0 -215
- package/src/funcs/linkedin-actions-unlike-comment.ts +0 -215
- package/src/funcs/linkedin-actions-unlike-post.ts +0 -215
- package/src/funcs/linkedin-actions-unsave-post.ts +0 -215
- package/src/funcs/linkedin-actions-withdraw-invitation.ts +0 -218
- package/src/funcs/linkedin-chat-get-messages.ts +0 -219
- package/src/funcs/linkedin-chat-get-unread-count.ts +0 -199
- package/src/funcs/linkedin-chat-list-archived.ts +0 -220
- package/src/funcs/linkedin-chat-list-inbox-conversations.ts +0 -215
- package/src/funcs/linkedin-chat-mark-all-read.ts +0 -199
- package/src/funcs/linkedin-chat-react.ts +0 -214
- package/src/funcs/linkedin-chat-send-typing-indicator.ts +0 -215
- package/src/funcs/linkedin-scrapers-collect-comments.ts +0 -215
- package/src/funcs/linkedin-scrapers-collect-hashtag-posts.ts +0 -218
- package/src/funcs/linkedin-scrapers-collect-likes.ts +0 -215
- package/src/funcs/linkedin-scrapers-list-saved-posts.ts +0 -218
- package/src/funcs/linkedin-scrapers-visit-company.ts +0 -215
- package/src/funcs/linkedin-search-search-by-url.ts +0 -266
- package/src/funcs/linkedin-search-search-jobs.ts +0 -293
- package/src/funcs/linkedin-search-search-people.ts +0 -280
- package/src/funcs/linkedin-search-search-posts.ts +0 -268
- package/src/funcs/profile-get-posts.ts +0 -220
- package/src/funcs/profile-get-profile-views.ts +0 -199
- package/src/funcs/sales-nav-search-people.ts +0 -250
- package/src/funcs/sales-navigator-search-search-companies.ts +0 -230
- package/src/funcs/sales-navigator-search-search.ts +0 -235
- package/src/models/errors/collect-linked-in-likes.ts +0 -494
- package/src/models/operations/get-campaign-stats-response.ts +0 -3367
- package/src/models/operations/scraping-weekly.ts +0 -5707
- package/src/models/operations/search-linked-in-by-url-type-post.ts +0 -4897
- package/src/models/operations/upsert-contacts.ts +0 -305
- package/src/sdk/linked-in-actions-2.ts +0 -117
- package/src/sdk/linked-in-chat-2.ts +0 -99
- package/src/sdk/linked-in-scrapers-2.ts +0 -45
- package/src/sdk/linked-in-search-1.ts +0 -186
- package/src/sdk/linkedin-actions-1.ts +0 -243
- package/src/sdk/linkedin-chat-1.ts +0 -139
- package/src/sdk/linkedin-scrapers-1.ts +0 -99
- package/src/sdk/linkedin-search-2.ts +0 -328
- package/src/sdk/sales-navigator-search.ts +0 -81
|
@@ -0,0 +1,4888 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import * as openEnums from "../../types/enums.js";
|
|
8
|
+
import { ClosedEnum, OpenEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import * as types from "../../types/primitives.js";
|
|
11
|
+
import { smartUnion } from "../../types/smart-union.js";
|
|
12
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
13
|
+
|
|
14
|
+
export type CollectLikesRequest = {
|
|
15
|
+
/**
|
|
16
|
+
* LinkedIn post URL to inspect for reactions.
|
|
17
|
+
*/
|
|
18
|
+
postUrl: string;
|
|
19
|
+
/**
|
|
20
|
+
* Pagination offset (multiples of 100).
|
|
21
|
+
*/
|
|
22
|
+
start?: number | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Number of likes to fetch per page (0-100, default 100). LinkedIn caps at 100 per request. Use count=0 for a free total-only check (0 credits, no rate-limit slot consumed).
|
|
25
|
+
*/
|
|
26
|
+
count?: number | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export type CollectLikesServiceUnavailableDetails = string | Array<string>;
|
|
30
|
+
|
|
31
|
+
export type CollectLikesServiceUnavailableError = {
|
|
32
|
+
code: string;
|
|
33
|
+
message: string;
|
|
34
|
+
docs?: string | undefined;
|
|
35
|
+
details?: string | Array<string> | undefined;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export type CollectLikesBadGatewayDetails = string | Array<string>;
|
|
39
|
+
|
|
40
|
+
export type CollectLikesBadGatewayError = {
|
|
41
|
+
code: string;
|
|
42
|
+
message: string;
|
|
43
|
+
docs?: string | undefined;
|
|
44
|
+
details?: string | Array<string> | undefined;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export type CollectLikesInternalServerErrorDetails = string | Array<string>;
|
|
48
|
+
|
|
49
|
+
export type CollectLikesInternalServerErrorError = {
|
|
50
|
+
code: string;
|
|
51
|
+
message: string;
|
|
52
|
+
docs?: string | undefined;
|
|
53
|
+
details?: string | Array<string> | undefined;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export const CollectLikesCode = {
|
|
57
|
+
RateLimitExceeded: "rate_limit_exceeded",
|
|
58
|
+
} as const;
|
|
59
|
+
export type CollectLikesCode = ClosedEnum<typeof CollectLikesCode>;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Current and max daily usage (null if no daily cap).
|
|
63
|
+
*/
|
|
64
|
+
export type CollectLikesDaily = {
|
|
65
|
+
current: number;
|
|
66
|
+
limit: number;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Current and max weekly usage (null if no weekly cap).
|
|
71
|
+
*/
|
|
72
|
+
export type CollectLikesWeekly = {
|
|
73
|
+
current: number;
|
|
74
|
+
limit: number;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export type CollectLikesTooManyRequestsError = {
|
|
78
|
+
code: CollectLikesCode;
|
|
79
|
+
message: string;
|
|
80
|
+
docs?: string | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Seconds to wait before retrying.
|
|
83
|
+
*/
|
|
84
|
+
retryAfter: number;
|
|
85
|
+
/**
|
|
86
|
+
* Current and max daily usage (null if no daily cap).
|
|
87
|
+
*/
|
|
88
|
+
daily: CollectLikesDaily | null;
|
|
89
|
+
/**
|
|
90
|
+
* Current and max weekly usage (null if no weekly cap).
|
|
91
|
+
*/
|
|
92
|
+
weekly: CollectLikesWeekly | null;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
export type CollectLikesUnprocessableEntityDetails = string | Array<string>;
|
|
96
|
+
|
|
97
|
+
export type CollectLikesUnprocessableEntityError = {
|
|
98
|
+
code: string;
|
|
99
|
+
message: string;
|
|
100
|
+
docs?: string | undefined;
|
|
101
|
+
details?: string | Array<string> | undefined;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export type CollectLikesGoneDetails = string | Array<string>;
|
|
105
|
+
|
|
106
|
+
export type CollectLikesGoneError = {
|
|
107
|
+
code: string;
|
|
108
|
+
message: string;
|
|
109
|
+
docs?: string | undefined;
|
|
110
|
+
details?: string | Array<string> | undefined;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
export type CollectLikesConflictDetails = string | Array<string>;
|
|
114
|
+
|
|
115
|
+
export type CollectLikesConflictError = {
|
|
116
|
+
code: string;
|
|
117
|
+
message: string;
|
|
118
|
+
docs?: string | undefined;
|
|
119
|
+
details?: string | Array<string> | undefined;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
export type CollectLikesNotFoundDetails = string | Array<string>;
|
|
123
|
+
|
|
124
|
+
export type CollectLikesNotFoundError = {
|
|
125
|
+
code: string;
|
|
126
|
+
message: string;
|
|
127
|
+
docs?: string | undefined;
|
|
128
|
+
details?: string | Array<string> | undefined;
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
export type CollectLikesForbiddenDetails = string | Array<string>;
|
|
132
|
+
|
|
133
|
+
export type CollectLikesForbiddenError = {
|
|
134
|
+
code: string;
|
|
135
|
+
message: string;
|
|
136
|
+
docs?: string | undefined;
|
|
137
|
+
details?: string | Array<string> | undefined;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
export type CollectLikesUnauthorizedDetails = string | Array<string>;
|
|
141
|
+
|
|
142
|
+
export type CollectLikesUnauthorizedError = {
|
|
143
|
+
code: string;
|
|
144
|
+
message: string;
|
|
145
|
+
docs?: string | undefined;
|
|
146
|
+
details?: string | Array<string> | undefined;
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
export type CollectLikesBadRequestDetails = string | Array<string>;
|
|
150
|
+
|
|
151
|
+
export type CollectLikesBadRequestError = {
|
|
152
|
+
code: string;
|
|
153
|
+
message: string;
|
|
154
|
+
docs?: string | undefined;
|
|
155
|
+
details?: string | Array<string> | undefined;
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
export const CollectLikesType = {
|
|
159
|
+
Like: "like",
|
|
160
|
+
} as const;
|
|
161
|
+
export type CollectLikesType = ClosedEnum<typeof CollectLikesType>;
|
|
162
|
+
|
|
163
|
+
export type CollectLikesProfile = {
|
|
164
|
+
name: string;
|
|
165
|
+
headline: string | null;
|
|
166
|
+
profileUrl: string | null;
|
|
167
|
+
imageUrl: string | null;
|
|
168
|
+
/**
|
|
169
|
+
* Vanity slug from profile URL (e.g. john-doe) when not URN-based
|
|
170
|
+
*/
|
|
171
|
+
publicIdentifier: string | null;
|
|
172
|
+
/**
|
|
173
|
+
* LinkedIn profile URN (e.g. urn:li:fsd_profile:ACoAAA...) when available
|
|
174
|
+
*/
|
|
175
|
+
profileUrn: string | null;
|
|
176
|
+
type: CollectLikesType;
|
|
177
|
+
/**
|
|
178
|
+
* Reaction type (e.g. 'LIKE', 'CELEBRATE', 'EMPATHY', 'INTEREST', 'PRAISE', 'APPRECIATION').
|
|
179
|
+
*/
|
|
180
|
+
reactionType?: string | undefined;
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* List of profiles who liked the post
|
|
185
|
+
*/
|
|
186
|
+
export type CollectLikesResponse = {
|
|
187
|
+
success: true;
|
|
188
|
+
profiles: Array<CollectLikesProfile>;
|
|
189
|
+
count: number;
|
|
190
|
+
total: number;
|
|
191
|
+
start: number;
|
|
192
|
+
hasMore: boolean;
|
|
193
|
+
/**
|
|
194
|
+
* The total from your last call to this endpoint for the same post (null on first call). Compare with total to detect new likes without client-side tracking.
|
|
195
|
+
*/
|
|
196
|
+
previousTotal: number | null;
|
|
197
|
+
/**
|
|
198
|
+
* Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
|
|
199
|
+
*/
|
|
200
|
+
creditsUsed: number;
|
|
201
|
+
/**
|
|
202
|
+
* Seconds to wait before making another call of the same type. 0 means no wait needed.
|
|
203
|
+
*/
|
|
204
|
+
retryAfter: number;
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
export type CollectCommentsRequest = {
|
|
208
|
+
/**
|
|
209
|
+
* LinkedIn post URL to inspect for comments.
|
|
210
|
+
*/
|
|
211
|
+
postUrl: string;
|
|
212
|
+
/**
|
|
213
|
+
* Pagination offset (multiples of 100).
|
|
214
|
+
*/
|
|
215
|
+
start?: number | undefined;
|
|
216
|
+
/**
|
|
217
|
+
* Number of comments to fetch per page (0-100, default 100). Use count=0 for a free total-only check (0 credits, no rate-limit slot consumed — can call count=100 immediately after).
|
|
218
|
+
*/
|
|
219
|
+
count?: number | undefined;
|
|
220
|
+
/**
|
|
221
|
+
* When provided, each profile in the response includes actionsCompleted (message/reply/like/visit/connect booleans) and knownDistance (cached memberDistance from recent visits, null if not cached). Enables campaign-aware scraping without manual cross-referencing.
|
|
222
|
+
*/
|
|
223
|
+
campaignSlug?: string | undefined;
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
export const CollectCommentsType = {
|
|
227
|
+
Comment: "comment",
|
|
228
|
+
} as const;
|
|
229
|
+
export type CollectCommentsType = ClosedEnum<typeof CollectCommentsType>;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Per-profile action completion status within the campaign. Only present when campaignSlug is provided in the request.
|
|
233
|
+
*/
|
|
234
|
+
export type CollectCommentsActionsCompleted = {
|
|
235
|
+
message: boolean;
|
|
236
|
+
reply: boolean;
|
|
237
|
+
like: boolean;
|
|
238
|
+
visit: boolean;
|
|
239
|
+
connect: boolean;
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
export type CollectCommentsProfile = {
|
|
243
|
+
name: string;
|
|
244
|
+
headline: string | null;
|
|
245
|
+
profileUrl: string | null;
|
|
246
|
+
imageUrl: string | null;
|
|
247
|
+
/**
|
|
248
|
+
* Vanity slug from profile URL (e.g. john-doe) when not URN-based
|
|
249
|
+
*/
|
|
250
|
+
publicIdentifier: string | null;
|
|
251
|
+
/**
|
|
252
|
+
* LinkedIn profile URN (e.g. urn:li:fsd_profile:ACoAAA...) when available
|
|
253
|
+
*/
|
|
254
|
+
profileUrn: string | null;
|
|
255
|
+
type: CollectCommentsType;
|
|
256
|
+
commentText?: string | undefined;
|
|
257
|
+
timestamp: number | null;
|
|
258
|
+
isEdited?: boolean | undefined;
|
|
259
|
+
/**
|
|
260
|
+
* Full comment URN — use directly for /reply and /like endpoints. Do NOT reconstruct from hash fields.
|
|
261
|
+
*/
|
|
262
|
+
commentUrn?: string | undefined;
|
|
263
|
+
/**
|
|
264
|
+
* SHA256 hash of commentUrn — use for dedup slugs only, not for building URNs.
|
|
265
|
+
*/
|
|
266
|
+
commentHash?: string | undefined;
|
|
267
|
+
/**
|
|
268
|
+
* True if the commenter is the post author.
|
|
269
|
+
*/
|
|
270
|
+
isPostAuthor?: boolean | undefined;
|
|
271
|
+
/**
|
|
272
|
+
* Number of replies to this comment.
|
|
273
|
+
*/
|
|
274
|
+
repliesCount?: number | undefined;
|
|
275
|
+
/**
|
|
276
|
+
* True if the post author already replied to this comment. Null when unknown (e.g. LinkedIn only preloaded partial replies).
|
|
277
|
+
*/
|
|
278
|
+
hasReplyFromPostAuthor?: boolean | null | undefined;
|
|
279
|
+
/**
|
|
280
|
+
* URN of the parent comment, present on replies only.
|
|
281
|
+
*/
|
|
282
|
+
parentCommentUrn?: string | undefined;
|
|
283
|
+
postUrn?: string | undefined;
|
|
284
|
+
/**
|
|
285
|
+
* SHA256 hash of postUrn — use for dedup slugs only.
|
|
286
|
+
*/
|
|
287
|
+
postHash?: string | undefined;
|
|
288
|
+
/**
|
|
289
|
+
* Per-profile action completion status within the campaign. Only present when campaignSlug is provided in the request.
|
|
290
|
+
*/
|
|
291
|
+
actionsCompleted?: CollectCommentsActionsCompleted | undefined;
|
|
292
|
+
/**
|
|
293
|
+
* Cached memberDistance from a recent profile visit (1 = connected, 2 = 2nd degree, etc.). null if campaignSlug not provided or profile not visited recently.
|
|
294
|
+
*/
|
|
295
|
+
knownDistance: number | null;
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* List of profiles who commented on the post
|
|
300
|
+
*/
|
|
301
|
+
export type CollectCommentsResponse = {
|
|
302
|
+
success: true;
|
|
303
|
+
profiles: Array<CollectCommentsProfile>;
|
|
304
|
+
count: number;
|
|
305
|
+
total: number;
|
|
306
|
+
start: number;
|
|
307
|
+
hasMore: boolean;
|
|
308
|
+
/**
|
|
309
|
+
* The total from your last call to this endpoint for the same post (null on first call). Compare with total to detect new comments without client-side tracking.
|
|
310
|
+
*/
|
|
311
|
+
previousTotal: number | null;
|
|
312
|
+
/**
|
|
313
|
+
* Number of returned profiles that already have a completed 'message' action in this campaign. Only present when campaignSlug is provided.
|
|
314
|
+
*/
|
|
315
|
+
processedCount?: number | undefined;
|
|
316
|
+
/**
|
|
317
|
+
* Number of returned profiles that have NOT yet been messaged in this campaign. Only present when campaignSlug is provided.
|
|
318
|
+
*/
|
|
319
|
+
newCount?: number | undefined;
|
|
320
|
+
/**
|
|
321
|
+
* Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
|
|
322
|
+
*/
|
|
323
|
+
creditsUsed: number;
|
|
324
|
+
/**
|
|
325
|
+
* Seconds to wait before making another call of the same type. 0 means no wait needed.
|
|
326
|
+
*/
|
|
327
|
+
retryAfter: number;
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
export type CollectCommentRepliesRequest = {
|
|
331
|
+
/**
|
|
332
|
+
* Comment URN returned by the comments endpoint (e.g., 'urn:li:comment:(activity:123456,789)').
|
|
333
|
+
*/
|
|
334
|
+
commentUrn: string;
|
|
335
|
+
/**
|
|
336
|
+
* Pagination offset (default 0).
|
|
337
|
+
*/
|
|
338
|
+
start?: number | undefined;
|
|
339
|
+
/**
|
|
340
|
+
* Number of replies to fetch per page (0-100, default 100). Use count=0 for a free total-only check (0 credits, no rate-limit slot consumed).
|
|
341
|
+
*/
|
|
342
|
+
count?: number | undefined;
|
|
343
|
+
};
|
|
344
|
+
|
|
345
|
+
export const CollectCommentRepliesType = {
|
|
346
|
+
Comment: "comment",
|
|
347
|
+
} as const;
|
|
348
|
+
export type CollectCommentRepliesType = ClosedEnum<
|
|
349
|
+
typeof CollectCommentRepliesType
|
|
350
|
+
>;
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* Per-profile action completion status within the campaign. Only present when campaignSlug is provided in the request.
|
|
354
|
+
*/
|
|
355
|
+
export type CollectCommentRepliesActionsCompleted = {
|
|
356
|
+
message: boolean;
|
|
357
|
+
reply: boolean;
|
|
358
|
+
like: boolean;
|
|
359
|
+
visit: boolean;
|
|
360
|
+
connect: boolean;
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
export type Reply = {
|
|
364
|
+
name: string;
|
|
365
|
+
headline: string | null;
|
|
366
|
+
profileUrl: string | null;
|
|
367
|
+
imageUrl: string | null;
|
|
368
|
+
/**
|
|
369
|
+
* Vanity slug from profile URL (e.g. john-doe) when not URN-based
|
|
370
|
+
*/
|
|
371
|
+
publicIdentifier: string | null;
|
|
372
|
+
/**
|
|
373
|
+
* LinkedIn profile URN (e.g. urn:li:fsd_profile:ACoAAA...) when available
|
|
374
|
+
*/
|
|
375
|
+
profileUrn: string | null;
|
|
376
|
+
type: CollectCommentRepliesType;
|
|
377
|
+
commentText?: string | undefined;
|
|
378
|
+
timestamp: number | null;
|
|
379
|
+
isEdited?: boolean | undefined;
|
|
380
|
+
/**
|
|
381
|
+
* Full comment URN — use directly for /reply and /like endpoints. Do NOT reconstruct from hash fields.
|
|
382
|
+
*/
|
|
383
|
+
commentUrn?: string | undefined;
|
|
384
|
+
/**
|
|
385
|
+
* SHA256 hash of commentUrn — use for dedup slugs only, not for building URNs.
|
|
386
|
+
*/
|
|
387
|
+
commentHash?: string | undefined;
|
|
388
|
+
/**
|
|
389
|
+
* True if the commenter is the post author.
|
|
390
|
+
*/
|
|
391
|
+
isPostAuthor?: boolean | undefined;
|
|
392
|
+
/**
|
|
393
|
+
* Number of replies to this comment.
|
|
394
|
+
*/
|
|
395
|
+
repliesCount?: number | undefined;
|
|
396
|
+
/**
|
|
397
|
+
* True if the post author already replied to this comment. Null when unknown (e.g. LinkedIn only preloaded partial replies).
|
|
398
|
+
*/
|
|
399
|
+
hasReplyFromPostAuthor?: boolean | null | undefined;
|
|
400
|
+
/**
|
|
401
|
+
* URN of the parent comment, present on replies only.
|
|
402
|
+
*/
|
|
403
|
+
parentCommentUrn?: string | undefined;
|
|
404
|
+
postUrn?: string | undefined;
|
|
405
|
+
/**
|
|
406
|
+
* SHA256 hash of postUrn — use for dedup slugs only.
|
|
407
|
+
*/
|
|
408
|
+
postHash?: string | undefined;
|
|
409
|
+
/**
|
|
410
|
+
* Per-profile action completion status within the campaign. Only present when campaignSlug is provided in the request.
|
|
411
|
+
*/
|
|
412
|
+
actionsCompleted?: CollectCommentRepliesActionsCompleted | undefined;
|
|
413
|
+
/**
|
|
414
|
+
* Cached memberDistance from a recent profile visit (1 = connected, 2 = 2nd degree, etc.). null if campaignSlug not provided or profile not visited recently.
|
|
415
|
+
*/
|
|
416
|
+
knownDistance: number | null;
|
|
417
|
+
};
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* List of replies to the comment
|
|
421
|
+
*/
|
|
422
|
+
export type CollectCommentRepliesResponse = {
|
|
423
|
+
success: true;
|
|
424
|
+
replies: Array<Reply>;
|
|
425
|
+
count: number;
|
|
426
|
+
total: number;
|
|
427
|
+
start: number;
|
|
428
|
+
hasMore: boolean;
|
|
429
|
+
parentCommentUrn: string;
|
|
430
|
+
/**
|
|
431
|
+
* The total from your last call to this endpoint for the same comment (null on first call). Compare with total to detect new replies without client-side tracking.
|
|
432
|
+
*/
|
|
433
|
+
previousTotal: number | null;
|
|
434
|
+
/**
|
|
435
|
+
* Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
|
|
436
|
+
*/
|
|
437
|
+
creditsUsed: number;
|
|
438
|
+
/**
|
|
439
|
+
* Seconds to wait before making another call of the same type. 0 means no wait needed.
|
|
440
|
+
*/
|
|
441
|
+
retryAfter: number;
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
export type CollectPostsRequest = {
|
|
445
|
+
/**
|
|
446
|
+
* LinkedIn profile identifier. Accepts full URLs (e.g. https://www.linkedin.com/in/username), vanity names (e.g. john-doe), or profile URNs (e.g. urn:li:fsd_profile:ACoAAA...).
|
|
447
|
+
*/
|
|
448
|
+
profileUrl: string;
|
|
449
|
+
/**
|
|
450
|
+
* Number of posts to fetch (0-100, default 20). Use count=0 for a free total-only check (0 credits, no rate-limit slot consumed).
|
|
451
|
+
*/
|
|
452
|
+
count?: number | undefined;
|
|
453
|
+
/**
|
|
454
|
+
* Pagination offset (default 0).
|
|
455
|
+
*/
|
|
456
|
+
start?: number | undefined;
|
|
457
|
+
/**
|
|
458
|
+
* Pagination token from a previous response to fetch the next page.
|
|
459
|
+
*/
|
|
460
|
+
paginationToken?: string | undefined;
|
|
461
|
+
};
|
|
462
|
+
|
|
463
|
+
export const CollectPostsType = {
|
|
464
|
+
Activity: "activity",
|
|
465
|
+
UgcPost: "ugcPost",
|
|
466
|
+
Share: "share",
|
|
467
|
+
} as const;
|
|
468
|
+
export type CollectPostsType = OpenEnum<typeof CollectPostsType>;
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* Type of media attached to the post.
|
|
472
|
+
*/
|
|
473
|
+
export const CollectPostsMediaType = {
|
|
474
|
+
Image: "image",
|
|
475
|
+
Video: "video",
|
|
476
|
+
Document: "document",
|
|
477
|
+
Article: "article",
|
|
478
|
+
} as const;
|
|
479
|
+
/**
|
|
480
|
+
* Type of media attached to the post.
|
|
481
|
+
*/
|
|
482
|
+
export type CollectPostsMediaType = OpenEnum<typeof CollectPostsMediaType>;
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* Media attached to the post (image, video, document, or article). Absent when the post is text-only.
|
|
486
|
+
*/
|
|
487
|
+
export type CollectPostsMedia = {
|
|
488
|
+
/**
|
|
489
|
+
* Type of media attached to the post.
|
|
490
|
+
*/
|
|
491
|
+
type: CollectPostsMediaType;
|
|
492
|
+
/**
|
|
493
|
+
* Media URLs (image URLs for carousels, video streaming URL, article link, etc.).
|
|
494
|
+
*/
|
|
495
|
+
urls: Array<string>;
|
|
496
|
+
/**
|
|
497
|
+
* Title of the article or document, when available.
|
|
498
|
+
*/
|
|
499
|
+
title?: string | undefined;
|
|
500
|
+
/**
|
|
501
|
+
* Thumbnail URL for videos, articles, or document covers.
|
|
502
|
+
*/
|
|
503
|
+
thumbnailUrl?: string | undefined;
|
|
504
|
+
};
|
|
505
|
+
|
|
506
|
+
export type CollectPostsPost = {
|
|
507
|
+
postUrl: string;
|
|
508
|
+
text: string;
|
|
509
|
+
date: number;
|
|
510
|
+
likesCount: number;
|
|
511
|
+
commentsCount: number;
|
|
512
|
+
sharesCount: number;
|
|
513
|
+
postUrn: string;
|
|
514
|
+
postId: string;
|
|
515
|
+
type: CollectPostsType;
|
|
516
|
+
/**
|
|
517
|
+
* Media attached to the post (image, video, document, or article). Absent when the post is text-only.
|
|
518
|
+
*/
|
|
519
|
+
media?: CollectPostsMedia | undefined;
|
|
520
|
+
};
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Paginated list of posts from the profile
|
|
524
|
+
*/
|
|
525
|
+
export type CollectPostsResponse = {
|
|
526
|
+
success: true;
|
|
527
|
+
posts: Array<CollectPostsPost>;
|
|
528
|
+
count: number;
|
|
529
|
+
total: number;
|
|
530
|
+
start: number;
|
|
531
|
+
hasMore: boolean;
|
|
532
|
+
paginationToken: string | null;
|
|
533
|
+
/**
|
|
534
|
+
* The total from your last call to this endpoint for the same profile (null on first call). Compare with total to detect new posts without client-side tracking.
|
|
535
|
+
*/
|
|
536
|
+
previousTotal: number | null;
|
|
537
|
+
/**
|
|
538
|
+
* Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
|
|
539
|
+
*/
|
|
540
|
+
creditsUsed: number;
|
|
541
|
+
/**
|
|
542
|
+
* Seconds to wait before making another call of the same type. 0 means no wait needed.
|
|
543
|
+
*/
|
|
544
|
+
retryAfter: number;
|
|
545
|
+
};
|
|
546
|
+
|
|
547
|
+
export type VisitProfileRequest = {
|
|
548
|
+
/**
|
|
549
|
+
* LinkedIn profile identifier. Accepts full URLs (e.g. https://www.linkedin.com/in/username), vanity names (e.g. john-doe), or profile URNs (e.g. urn:li:fsd_profile:ACoAAA...).
|
|
550
|
+
*/
|
|
551
|
+
profile: string;
|
|
552
|
+
/**
|
|
553
|
+
* Optional campaign identifier for tracking only. No dedup — visit always executes.
|
|
554
|
+
*/
|
|
555
|
+
campaignSlug?: string | undefined;
|
|
556
|
+
/**
|
|
557
|
+
* Deprecated. Use campaignSlug only.
|
|
558
|
+
*
|
|
559
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
560
|
+
*/
|
|
561
|
+
actionSlug?: string | undefined;
|
|
562
|
+
/**
|
|
563
|
+
* When true, fetches the last 5 posts from the profile (fetched in parallel with other enrichments). Defaults to false.
|
|
564
|
+
*/
|
|
565
|
+
includePosts?: boolean | undefined;
|
|
566
|
+
/**
|
|
567
|
+
* When true, fetches the last 5 posts the profile recently engaged with via comments. Returns engagement context (target post text, author) but not the comment text itself. Fetched in parallel with includePosts. Defaults to false.
|
|
568
|
+
*/
|
|
569
|
+
includeComments?: boolean | undefined;
|
|
570
|
+
/**
|
|
571
|
+
* When true, fetches the profile's About section and detailed position descriptions via a supplementary API call (fetched in parallel). Defaults to false.
|
|
572
|
+
*/
|
|
573
|
+
includeAbout?: boolean | undefined;
|
|
574
|
+
};
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* Connection request status: 'pending' if request was sent successfully, 'failed' if request failed today, 'none' if not tracked
|
|
578
|
+
*/
|
|
579
|
+
export const PendingConnection = {
|
|
580
|
+
Pending: "pending",
|
|
581
|
+
Failed: "failed",
|
|
582
|
+
None: "none",
|
|
583
|
+
} as const;
|
|
584
|
+
/**
|
|
585
|
+
* Connection request status: 'pending' if request was sent successfully, 'failed' if request failed today, 'none' if not tracked
|
|
586
|
+
*/
|
|
587
|
+
export type PendingConnection = OpenEnum<typeof PendingConnection>;
|
|
588
|
+
|
|
589
|
+
export type VisitProfilePositionStartDate = {
|
|
590
|
+
month: number | null;
|
|
591
|
+
year: number;
|
|
592
|
+
};
|
|
593
|
+
|
|
594
|
+
export type VisitProfilePositionEndDate = {
|
|
595
|
+
month: number | null;
|
|
596
|
+
year: number;
|
|
597
|
+
};
|
|
598
|
+
|
|
599
|
+
export type VisitProfilePosition = {
|
|
600
|
+
companyName: string | null;
|
|
601
|
+
title: string | null;
|
|
602
|
+
/**
|
|
603
|
+
* Position description / responsibilities text
|
|
604
|
+
*/
|
|
605
|
+
description: string | null;
|
|
606
|
+
companyUrl: string | null;
|
|
607
|
+
companyLogo: string | null;
|
|
608
|
+
/**
|
|
609
|
+
* Short description of the company (from LinkedIn company page)
|
|
610
|
+
*/
|
|
611
|
+
companyDescription: string | null;
|
|
612
|
+
startDate: VisitProfilePositionStartDate | null;
|
|
613
|
+
endDate: VisitProfilePositionEndDate | null;
|
|
614
|
+
isCurrent: boolean;
|
|
615
|
+
};
|
|
616
|
+
|
|
617
|
+
export type VisitProfileEducationStartDate = {
|
|
618
|
+
month: number | null;
|
|
619
|
+
year: number;
|
|
620
|
+
};
|
|
621
|
+
|
|
622
|
+
export type VisitProfileEducationEndDate = {
|
|
623
|
+
month: number | null;
|
|
624
|
+
year: number;
|
|
625
|
+
};
|
|
626
|
+
|
|
627
|
+
export type VisitProfileEducation = {
|
|
628
|
+
schoolName: string | null;
|
|
629
|
+
degreeName: string | null;
|
|
630
|
+
fieldOfStudy: string | null;
|
|
631
|
+
schoolUrl: string | null;
|
|
632
|
+
schoolLogo: string | null;
|
|
633
|
+
startDate: VisitProfileEducationStartDate | null;
|
|
634
|
+
endDate: VisitProfileEducationEndDate | null;
|
|
635
|
+
};
|
|
636
|
+
|
|
637
|
+
export const VisitProfileLastPostType = {
|
|
638
|
+
Activity: "activity",
|
|
639
|
+
UgcPost: "ugcPost",
|
|
640
|
+
Share: "share",
|
|
641
|
+
} as const;
|
|
642
|
+
export type VisitProfileLastPostType = OpenEnum<
|
|
643
|
+
typeof VisitProfileLastPostType
|
|
644
|
+
>;
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* Type of media attached to the post.
|
|
648
|
+
*/
|
|
649
|
+
export const VisitProfileMediaType = {
|
|
650
|
+
Image: "image",
|
|
651
|
+
Video: "video",
|
|
652
|
+
Document: "document",
|
|
653
|
+
Article: "article",
|
|
654
|
+
} as const;
|
|
655
|
+
/**
|
|
656
|
+
* Type of media attached to the post.
|
|
657
|
+
*/
|
|
658
|
+
export type VisitProfileMediaType = OpenEnum<typeof VisitProfileMediaType>;
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* Media attached to the post (image, video, document, or article). Absent when the post is text-only.
|
|
662
|
+
*/
|
|
663
|
+
export type VisitProfileMedia = {
|
|
664
|
+
/**
|
|
665
|
+
* Type of media attached to the post.
|
|
666
|
+
*/
|
|
667
|
+
type: VisitProfileMediaType;
|
|
668
|
+
/**
|
|
669
|
+
* Media URLs (image URLs for carousels, video streaming URL, article link, etc.).
|
|
670
|
+
*/
|
|
671
|
+
urls: Array<string>;
|
|
672
|
+
/**
|
|
673
|
+
* Title of the article or document, when available.
|
|
674
|
+
*/
|
|
675
|
+
title?: string | undefined;
|
|
676
|
+
/**
|
|
677
|
+
* Thumbnail URL for videos, articles, or document covers.
|
|
678
|
+
*/
|
|
679
|
+
thumbnailUrl?: string | undefined;
|
|
680
|
+
};
|
|
681
|
+
|
|
682
|
+
export type VisitProfileLastPost = {
|
|
683
|
+
postUrl: string;
|
|
684
|
+
text: string;
|
|
685
|
+
date: number;
|
|
686
|
+
likesCount: number;
|
|
687
|
+
commentsCount: number;
|
|
688
|
+
sharesCount: number;
|
|
689
|
+
postUrn: string;
|
|
690
|
+
postId: string;
|
|
691
|
+
type: VisitProfileLastPostType;
|
|
692
|
+
/**
|
|
693
|
+
* Media attached to the post (image, video, document, or article). Absent when the post is text-only.
|
|
694
|
+
*/
|
|
695
|
+
media?: VisitProfileMedia | undefined;
|
|
696
|
+
};
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* Activity type: 'comment' for posts the user commented on
|
|
700
|
+
*/
|
|
701
|
+
export const LastCommentType = {
|
|
702
|
+
Comment: "comment",
|
|
703
|
+
Reaction: "reaction",
|
|
704
|
+
} as const;
|
|
705
|
+
/**
|
|
706
|
+
* Activity type: 'comment' for posts the user commented on
|
|
707
|
+
*/
|
|
708
|
+
export type LastCommentType = OpenEnum<typeof LastCommentType>;
|
|
709
|
+
|
|
710
|
+
export type LastComment = {
|
|
711
|
+
/**
|
|
712
|
+
* Activity type: 'comment' for posts the user commented on
|
|
713
|
+
*/
|
|
714
|
+
type: LastCommentType;
|
|
715
|
+
/**
|
|
716
|
+
* URN of the feed update (post) the user engaged with
|
|
717
|
+
*/
|
|
718
|
+
activityUrn: string;
|
|
719
|
+
/**
|
|
720
|
+
* The user's comment text (null when not available from the API — this is a LinkedIn limitation)
|
|
721
|
+
*/
|
|
722
|
+
text: string | null;
|
|
723
|
+
/**
|
|
724
|
+
* Reaction type (e.g. 'LIKE', 'CELEBRATE'). Only set for reaction-type activities
|
|
725
|
+
*/
|
|
726
|
+
reactionType: string | null;
|
|
727
|
+
/**
|
|
728
|
+
* URN of the post the user commented on (e.g. 'urn:li:activity:1234567890')
|
|
729
|
+
*/
|
|
730
|
+
targetPostUrn: string | null;
|
|
731
|
+
/**
|
|
732
|
+
* First ~200 chars of the post the user commented on. Use this to understand what topics they engage with
|
|
733
|
+
*/
|
|
734
|
+
targetPostText: string | null;
|
|
735
|
+
/**
|
|
736
|
+
* Name of the post author (the person whose post was commented on)
|
|
737
|
+
*/
|
|
738
|
+
targetPostAuthor: string | null;
|
|
739
|
+
/**
|
|
740
|
+
* Unix timestamp in milliseconds when the activity occurred
|
|
741
|
+
*/
|
|
742
|
+
timestamp: number | null;
|
|
743
|
+
/**
|
|
744
|
+
* Name of the post author (same as targetPostAuthor when available)
|
|
745
|
+
*/
|
|
746
|
+
actorName: string | null;
|
|
747
|
+
/**
|
|
748
|
+
* Profile URN of the post author
|
|
749
|
+
*/
|
|
750
|
+
actorUrn: string | null;
|
|
751
|
+
};
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* Profile contact data
|
|
755
|
+
*/
|
|
756
|
+
export type VisitProfileResponse = {
|
|
757
|
+
success: true;
|
|
758
|
+
firstName: string;
|
|
759
|
+
lastName: string;
|
|
760
|
+
headline: string | null;
|
|
761
|
+
/**
|
|
762
|
+
* The profile's 'About' section text. Only populated when includeAbout is true. Null when not requested or not filled in.
|
|
763
|
+
*/
|
|
764
|
+
summary: string | null;
|
|
765
|
+
publicIdentifier: string;
|
|
766
|
+
/**
|
|
767
|
+
* LinkedIn profile URL. Null when publicIdentifier is unavailable (restricted profiles).
|
|
768
|
+
*/
|
|
769
|
+
profileUrl: string | null;
|
|
770
|
+
/**
|
|
771
|
+
* LinkedIn profile URN (e.g. 'urn:li:fsd_profile:ACoAAA...'). Use this for matching against inbox participants.
|
|
772
|
+
*/
|
|
773
|
+
profileUrn: string | null;
|
|
774
|
+
imageUrl: string | null;
|
|
775
|
+
email: string | null;
|
|
776
|
+
location: string | null;
|
|
777
|
+
/**
|
|
778
|
+
* Current company name (from most recent position)
|
|
779
|
+
*/
|
|
780
|
+
company: string | null;
|
|
781
|
+
/**
|
|
782
|
+
* Current job title (from most recent position)
|
|
783
|
+
*/
|
|
784
|
+
position: string | null;
|
|
785
|
+
/**
|
|
786
|
+
* Connection degree: 0 (self), 1 (direct connection), 2+ (2nd degree, 3rd degree, etc.), or null if unknown
|
|
787
|
+
*/
|
|
788
|
+
memberDistance: number | null;
|
|
789
|
+
/**
|
|
790
|
+
* Total number of connections. May be null for non-connected profiles or restricted visibility.
|
|
791
|
+
*/
|
|
792
|
+
connectionsCount: number | null;
|
|
793
|
+
/**
|
|
794
|
+
* Whether the profile has a LinkedIn verification badge.
|
|
795
|
+
*/
|
|
796
|
+
isVerified: boolean;
|
|
797
|
+
/**
|
|
798
|
+
* Connection request status: 'pending' if request was sent successfully, 'failed' if request failed today, 'none' if not tracked
|
|
799
|
+
*/
|
|
800
|
+
pendingConnection: PendingConnection;
|
|
801
|
+
/**
|
|
802
|
+
* Work experience positions
|
|
803
|
+
*/
|
|
804
|
+
positions?: Array<VisitProfilePosition> | undefined;
|
|
805
|
+
/**
|
|
806
|
+
* Education entries
|
|
807
|
+
*/
|
|
808
|
+
educations?: Array<VisitProfileEducation> | undefined;
|
|
809
|
+
/**
|
|
810
|
+
* Last 5 posts from the profile (only present when includePosts is true)
|
|
811
|
+
*/
|
|
812
|
+
lastPosts?: Array<VisitProfileLastPost> | undefined;
|
|
813
|
+
/**
|
|
814
|
+
* Last 5 posts the profile recently commented on (only present when includeComments is true). Contains targetPostText and targetPostAuthor for engagement context.
|
|
815
|
+
*/
|
|
816
|
+
lastComments?: Array<LastComment> | undefined;
|
|
817
|
+
/**
|
|
818
|
+
* true if this result was served from cache (0 credits). Distance-1 profiles are cached for 24h.
|
|
819
|
+
*/
|
|
820
|
+
cached: boolean;
|
|
821
|
+
/**
|
|
822
|
+
* Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
|
|
823
|
+
*/
|
|
824
|
+
creditsUsed: number;
|
|
825
|
+
/**
|
|
826
|
+
* Seconds to wait before making another call of the same type. 0 means no wait needed.
|
|
827
|
+
*/
|
|
828
|
+
retryAfter: number;
|
|
829
|
+
};
|
|
830
|
+
|
|
831
|
+
export type BulkVisitProfileRequest = {
|
|
832
|
+
/**
|
|
833
|
+
* LinkedIn profile URLs, vanity names, or URNs (max 50). Duplicates are auto-removed.
|
|
834
|
+
*/
|
|
835
|
+
profiles: Array<string>;
|
|
836
|
+
/**
|
|
837
|
+
* Auto-add each successfully visited contact to this campaign.
|
|
838
|
+
*/
|
|
839
|
+
campaignSlug?: string | undefined;
|
|
840
|
+
/**
|
|
841
|
+
* Fetch last 5 posts per profile. Increases processing time.
|
|
842
|
+
*/
|
|
843
|
+
includePosts?: boolean | undefined;
|
|
844
|
+
/**
|
|
845
|
+
* Fetch recent comments per profile. Increases processing time.
|
|
846
|
+
*/
|
|
847
|
+
includeComments?: boolean | undefined;
|
|
848
|
+
/**
|
|
849
|
+
* Fetch About section and detailed position descriptions per profile. Increases processing time.
|
|
850
|
+
*/
|
|
851
|
+
includeAbout?: boolean | undefined;
|
|
852
|
+
};
|
|
853
|
+
|
|
854
|
+
/**
|
|
855
|
+
* Batch accepted and queued for processing
|
|
856
|
+
*/
|
|
857
|
+
export type BulkVisitProfileResponse = {
|
|
858
|
+
accepted: true;
|
|
859
|
+
/**
|
|
860
|
+
* Unique batch identifier for status polling.
|
|
861
|
+
*/
|
|
862
|
+
batchId: string;
|
|
863
|
+
/**
|
|
864
|
+
* Total unique profiles in the batch (after dedup).
|
|
865
|
+
*/
|
|
866
|
+
profileCount: number;
|
|
867
|
+
/**
|
|
868
|
+
* Profiles resolved from cache (0 credits, instant).
|
|
869
|
+
*/
|
|
870
|
+
alreadyCached: number;
|
|
871
|
+
/**
|
|
872
|
+
* Profiles queued for LinkedIn API visit.
|
|
873
|
+
*/
|
|
874
|
+
willVisit: number;
|
|
875
|
+
/**
|
|
876
|
+
* Estimated processing time in minutes for uncached profiles.
|
|
877
|
+
*/
|
|
878
|
+
estimatedMinutes: number;
|
|
879
|
+
};
|
|
880
|
+
|
|
881
|
+
export type BulkVisitBatchStatusRequest = {
|
|
882
|
+
/**
|
|
883
|
+
* Batch identifier returned by the bulk visit endpoint.
|
|
884
|
+
*/
|
|
885
|
+
batchId: string;
|
|
886
|
+
};
|
|
887
|
+
|
|
888
|
+
export const BulkVisitBatchStatusStatus = {
|
|
889
|
+
Queued: "queued",
|
|
890
|
+
Processing: "processing",
|
|
891
|
+
Completed: "completed",
|
|
892
|
+
Partial: "partial",
|
|
893
|
+
Failed: "failed",
|
|
894
|
+
} as const;
|
|
895
|
+
export type BulkVisitBatchStatusStatus = OpenEnum<
|
|
896
|
+
typeof BulkVisitBatchStatusStatus
|
|
897
|
+
>;
|
|
898
|
+
|
|
899
|
+
export type Progress = {
|
|
900
|
+
total: number;
|
|
901
|
+
visited: number;
|
|
902
|
+
cached: number;
|
|
903
|
+
failed: number;
|
|
904
|
+
skipped: number;
|
|
905
|
+
pending: number;
|
|
906
|
+
};
|
|
907
|
+
|
|
908
|
+
export const ResultStatus = {
|
|
909
|
+
Visited: "visited",
|
|
910
|
+
Cached: "cached",
|
|
911
|
+
Failed: "failed",
|
|
912
|
+
Skipped: "skipped",
|
|
913
|
+
Pending: "pending",
|
|
914
|
+
} as const;
|
|
915
|
+
export type ResultStatus = OpenEnum<typeof ResultStatus>;
|
|
916
|
+
|
|
917
|
+
export type Result = {
|
|
918
|
+
profile: string;
|
|
919
|
+
status: ResultStatus;
|
|
920
|
+
contactId?: string | null | undefined;
|
|
921
|
+
error?: string | null | undefined;
|
|
922
|
+
};
|
|
923
|
+
|
|
924
|
+
/**
|
|
925
|
+
* Batch status
|
|
926
|
+
*/
|
|
927
|
+
export type BulkVisitBatchStatusResponse = {
|
|
928
|
+
batchId: string;
|
|
929
|
+
status: BulkVisitBatchStatusStatus;
|
|
930
|
+
progress: Progress;
|
|
931
|
+
creditsUsed: number;
|
|
932
|
+
failureReason?: string | null | undefined;
|
|
933
|
+
results?: Array<Result> | undefined;
|
|
934
|
+
};
|
|
935
|
+
|
|
936
|
+
export type VisitCompanyRequest = {
|
|
937
|
+
/**
|
|
938
|
+
* LinkedIn company URL (e.g., 'https://www.linkedin.com/company/openai') or universal name (e.g., 'openai')
|
|
939
|
+
*/
|
|
940
|
+
companyUrl: string;
|
|
941
|
+
/**
|
|
942
|
+
* Include workplace policy data such as hybrid/remote status and benefits. Costs 1 extra credit (extra API call).
|
|
943
|
+
*/
|
|
944
|
+
includeWorkplacePolicy?: boolean | undefined;
|
|
945
|
+
};
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* Employee count range
|
|
949
|
+
*/
|
|
950
|
+
export type EmployeeCountRange = {
|
|
951
|
+
start: number;
|
|
952
|
+
end: number | null;
|
|
953
|
+
};
|
|
954
|
+
|
|
955
|
+
export type VisitCompanyHeadquarter = {
|
|
956
|
+
country: string | null;
|
|
957
|
+
geographicArea: string | null;
|
|
958
|
+
city: string | null;
|
|
959
|
+
postalCode: string | null;
|
|
960
|
+
line1: string | null;
|
|
961
|
+
line2: string | null;
|
|
962
|
+
};
|
|
963
|
+
|
|
964
|
+
export type VisitCompanyFoundedOn = {
|
|
965
|
+
year: number;
|
|
966
|
+
};
|
|
967
|
+
|
|
968
|
+
export type CallToAction = {
|
|
969
|
+
type: string;
|
|
970
|
+
url: string;
|
|
971
|
+
};
|
|
972
|
+
|
|
973
|
+
export type AffiliatedCompany = {
|
|
974
|
+
id: string;
|
|
975
|
+
universalName: string;
|
|
976
|
+
name: string;
|
|
977
|
+
url: string | null;
|
|
978
|
+
logoUrl: string | null;
|
|
979
|
+
followerCount: number | null;
|
|
980
|
+
industry: string | null;
|
|
981
|
+
};
|
|
982
|
+
|
|
983
|
+
export type SimilarCompany = {
|
|
984
|
+
id: string;
|
|
985
|
+
universalName: string;
|
|
986
|
+
name: string;
|
|
987
|
+
url: string | null;
|
|
988
|
+
logoUrl: string | null;
|
|
989
|
+
followerCount: number | null;
|
|
990
|
+
industry: string | null;
|
|
991
|
+
};
|
|
992
|
+
|
|
993
|
+
/**
|
|
994
|
+
* Workplace policy (null when includeWorkplacePolicy is false or data unavailable)
|
|
995
|
+
*/
|
|
996
|
+
export type WorkplacePolicy = {
|
|
997
|
+
title: string | null;
|
|
998
|
+
description: string | null;
|
|
999
|
+
timeAtOnsite: string | null;
|
|
1000
|
+
benefits: Array<string>;
|
|
1001
|
+
};
|
|
1002
|
+
|
|
1003
|
+
/**
|
|
1004
|
+
* Company profile data
|
|
1005
|
+
*/
|
|
1006
|
+
export type VisitCompanyResponse = {
|
|
1007
|
+
success: true;
|
|
1008
|
+
/**
|
|
1009
|
+
* LinkedIn numeric company ID
|
|
1010
|
+
*/
|
|
1011
|
+
id: string;
|
|
1012
|
+
/**
|
|
1013
|
+
* Company URL slug
|
|
1014
|
+
*/
|
|
1015
|
+
universalName: string;
|
|
1016
|
+
name: string;
|
|
1017
|
+
description: string | null;
|
|
1018
|
+
/**
|
|
1019
|
+
* LinkedIn company page URL
|
|
1020
|
+
*/
|
|
1021
|
+
url: string;
|
|
1022
|
+
/**
|
|
1023
|
+
* External website URL
|
|
1024
|
+
*/
|
|
1025
|
+
websiteUrl: string | null;
|
|
1026
|
+
industry: string | null;
|
|
1027
|
+
/**
|
|
1028
|
+
* Exact employee count on LinkedIn
|
|
1029
|
+
*/
|
|
1030
|
+
employeeCount: number | null;
|
|
1031
|
+
/**
|
|
1032
|
+
* Employee count range
|
|
1033
|
+
*/
|
|
1034
|
+
employeeCountRange: EmployeeCountRange | null;
|
|
1035
|
+
headquarter: VisitCompanyHeadquarter | null;
|
|
1036
|
+
logoUrl: string | null;
|
|
1037
|
+
coverImageUrl: string | null;
|
|
1038
|
+
followerCount: number | null;
|
|
1039
|
+
specialities: Array<string>;
|
|
1040
|
+
tagline: string | null;
|
|
1041
|
+
isVerified: boolean;
|
|
1042
|
+
foundedOn: VisitCompanyFoundedOn | null;
|
|
1043
|
+
phone: string | null;
|
|
1044
|
+
callToAction: CallToAction | null;
|
|
1045
|
+
hashtags: Array<string>;
|
|
1046
|
+
/**
|
|
1047
|
+
* Showcase / affiliated pages
|
|
1048
|
+
*/
|
|
1049
|
+
affiliatedCompanies: Array<AffiliatedCompany>;
|
|
1050
|
+
/**
|
|
1051
|
+
* Similar companies suggested by LinkedIn
|
|
1052
|
+
*/
|
|
1053
|
+
similarCompanies: Array<SimilarCompany>;
|
|
1054
|
+
/**
|
|
1055
|
+
* Workplace policy (null when includeWorkplacePolicy is false or data unavailable)
|
|
1056
|
+
*/
|
|
1057
|
+
workplacePolicy: WorkplacePolicy | null;
|
|
1058
|
+
/**
|
|
1059
|
+
* Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
|
|
1060
|
+
*/
|
|
1061
|
+
creditsUsed: number;
|
|
1062
|
+
/**
|
|
1063
|
+
* Seconds to wait before making another call of the same type. 0 means no wait needed.
|
|
1064
|
+
*/
|
|
1065
|
+
retryAfter: number;
|
|
1066
|
+
};
|
|
1067
|
+
|
|
1068
|
+
export type ListSavedPostsRequest = {
|
|
1069
|
+
/**
|
|
1070
|
+
* Pagination offset
|
|
1071
|
+
*/
|
|
1072
|
+
start?: number | undefined;
|
|
1073
|
+
/**
|
|
1074
|
+
* Number of posts to return
|
|
1075
|
+
*/
|
|
1076
|
+
count?: number | undefined;
|
|
1077
|
+
};
|
|
1078
|
+
|
|
1079
|
+
export type ListSavedPostsAuthor = {
|
|
1080
|
+
name: string;
|
|
1081
|
+
profileUrl: string | null;
|
|
1082
|
+
publicIdentifier: string | null;
|
|
1083
|
+
profileUrn: string | null;
|
|
1084
|
+
};
|
|
1085
|
+
|
|
1086
|
+
/**
|
|
1087
|
+
* Type of media attached to the post.
|
|
1088
|
+
*/
|
|
1089
|
+
export const ListSavedPostsType = {
|
|
1090
|
+
Image: "image",
|
|
1091
|
+
Video: "video",
|
|
1092
|
+
Document: "document",
|
|
1093
|
+
Article: "article",
|
|
1094
|
+
} as const;
|
|
1095
|
+
/**
|
|
1096
|
+
* Type of media attached to the post.
|
|
1097
|
+
*/
|
|
1098
|
+
export type ListSavedPostsType = OpenEnum<typeof ListSavedPostsType>;
|
|
1099
|
+
|
|
1100
|
+
export type ListSavedPostsMedia = {
|
|
1101
|
+
/**
|
|
1102
|
+
* Type of media attached to the post.
|
|
1103
|
+
*/
|
|
1104
|
+
type: ListSavedPostsType;
|
|
1105
|
+
/**
|
|
1106
|
+
* Media URLs (image URLs for carousels, video streaming URL, article link, etc.).
|
|
1107
|
+
*/
|
|
1108
|
+
urls: Array<string>;
|
|
1109
|
+
/**
|
|
1110
|
+
* Title of the article or document, when available.
|
|
1111
|
+
*/
|
|
1112
|
+
title?: string | undefined;
|
|
1113
|
+
/**
|
|
1114
|
+
* Thumbnail URL for videos, articles, or document covers.
|
|
1115
|
+
*/
|
|
1116
|
+
thumbnailUrl?: string | undefined;
|
|
1117
|
+
};
|
|
1118
|
+
|
|
1119
|
+
export type ListSavedPostsPost = {
|
|
1120
|
+
postUrl: string;
|
|
1121
|
+
postUrn: string;
|
|
1122
|
+
postId: string;
|
|
1123
|
+
text: string;
|
|
1124
|
+
date: number;
|
|
1125
|
+
likesCount: number;
|
|
1126
|
+
commentsCount: number;
|
|
1127
|
+
sharesCount: number;
|
|
1128
|
+
author: ListSavedPostsAuthor;
|
|
1129
|
+
media?: ListSavedPostsMedia | undefined;
|
|
1130
|
+
};
|
|
1131
|
+
|
|
1132
|
+
/**
|
|
1133
|
+
* Saved posts
|
|
1134
|
+
*/
|
|
1135
|
+
export type ListSavedPostsResponse = {
|
|
1136
|
+
success: true;
|
|
1137
|
+
posts: Array<ListSavedPostsPost>;
|
|
1138
|
+
total: number | null;
|
|
1139
|
+
hasMore: boolean;
|
|
1140
|
+
/**
|
|
1141
|
+
* Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
|
|
1142
|
+
*/
|
|
1143
|
+
creditsUsed: number;
|
|
1144
|
+
/**
|
|
1145
|
+
* Seconds to wait before making another call of the same type. 0 means no wait needed.
|
|
1146
|
+
*/
|
|
1147
|
+
retryAfter: number;
|
|
1148
|
+
};
|
|
1149
|
+
|
|
1150
|
+
/**
|
|
1151
|
+
* Sort order: RELEVANCE (default, algorithmic) or REV_CHRON (most recent first)
|
|
1152
|
+
*/
|
|
1153
|
+
export const SortOrder = {
|
|
1154
|
+
Relevance: "RELEVANCE",
|
|
1155
|
+
RevChron: "REV_CHRON",
|
|
1156
|
+
} as const;
|
|
1157
|
+
/**
|
|
1158
|
+
* Sort order: RELEVANCE (default, algorithmic) or REV_CHRON (most recent first)
|
|
1159
|
+
*/
|
|
1160
|
+
export type SortOrder = ClosedEnum<typeof SortOrder>;
|
|
1161
|
+
|
|
1162
|
+
export type GetFeedRequest = {
|
|
1163
|
+
/**
|
|
1164
|
+
* Number of feed items to return (1-50, default 20)
|
|
1165
|
+
*/
|
|
1166
|
+
count?: number | undefined;
|
|
1167
|
+
/**
|
|
1168
|
+
* Sort order: RELEVANCE (default, algorithmic) or REV_CHRON (most recent first)
|
|
1169
|
+
*/
|
|
1170
|
+
sortOrder?: SortOrder | undefined;
|
|
1171
|
+
};
|
|
1172
|
+
|
|
1173
|
+
export const GetFeedType = {
|
|
1174
|
+
Activity: "activity",
|
|
1175
|
+
UgcPost: "ugcPost",
|
|
1176
|
+
Share: "share",
|
|
1177
|
+
} as const;
|
|
1178
|
+
export type GetFeedType = OpenEnum<typeof GetFeedType>;
|
|
1179
|
+
|
|
1180
|
+
/**
|
|
1181
|
+
* Type of media attached to the post.
|
|
1182
|
+
*/
|
|
1183
|
+
export const GetFeedMediaType = {
|
|
1184
|
+
Image: "image",
|
|
1185
|
+
Video: "video",
|
|
1186
|
+
Document: "document",
|
|
1187
|
+
Article: "article",
|
|
1188
|
+
} as const;
|
|
1189
|
+
/**
|
|
1190
|
+
* Type of media attached to the post.
|
|
1191
|
+
*/
|
|
1192
|
+
export type GetFeedMediaType = OpenEnum<typeof GetFeedMediaType>;
|
|
1193
|
+
|
|
1194
|
+
/**
|
|
1195
|
+
* Media attached to the post (image, video, document, or article). Absent when the post is text-only.
|
|
1196
|
+
*/
|
|
1197
|
+
export type GetFeedMedia = {
|
|
1198
|
+
/**
|
|
1199
|
+
* Type of media attached to the post.
|
|
1200
|
+
*/
|
|
1201
|
+
type: GetFeedMediaType;
|
|
1202
|
+
/**
|
|
1203
|
+
* Media URLs (image URLs for carousels, video streaming URL, article link, etc.).
|
|
1204
|
+
*/
|
|
1205
|
+
urls: Array<string>;
|
|
1206
|
+
/**
|
|
1207
|
+
* Title of the article or document, when available.
|
|
1208
|
+
*/
|
|
1209
|
+
title?: string | undefined;
|
|
1210
|
+
/**
|
|
1211
|
+
* Thumbnail URL for videos, articles, or document covers.
|
|
1212
|
+
*/
|
|
1213
|
+
thumbnailUrl?: string | undefined;
|
|
1214
|
+
};
|
|
1215
|
+
|
|
1216
|
+
export type GetFeedPost = {
|
|
1217
|
+
postUrl: string;
|
|
1218
|
+
text: string;
|
|
1219
|
+
date: number;
|
|
1220
|
+
likesCount: number;
|
|
1221
|
+
commentsCount: number;
|
|
1222
|
+
sharesCount: number;
|
|
1223
|
+
postUrn: string;
|
|
1224
|
+
postId: string;
|
|
1225
|
+
type: GetFeedType;
|
|
1226
|
+
/**
|
|
1227
|
+
* Media attached to the post (image, video, document, or article). Absent when the post is text-only.
|
|
1228
|
+
*/
|
|
1229
|
+
media?: GetFeedMedia | undefined;
|
|
1230
|
+
};
|
|
1231
|
+
|
|
1232
|
+
/**
|
|
1233
|
+
* Feed posts
|
|
1234
|
+
*/
|
|
1235
|
+
export type GetFeedResponse = {
|
|
1236
|
+
success: true;
|
|
1237
|
+
posts: Array<GetFeedPost>;
|
|
1238
|
+
/**
|
|
1239
|
+
* Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
|
|
1240
|
+
*/
|
|
1241
|
+
creditsUsed: number;
|
|
1242
|
+
/**
|
|
1243
|
+
* Seconds to wait before making another call of the same type. 0 means no wait needed.
|
|
1244
|
+
*/
|
|
1245
|
+
retryAfter: number;
|
|
1246
|
+
};
|
|
1247
|
+
|
|
1248
|
+
export type CollectHashtagPostsRequest = {
|
|
1249
|
+
/**
|
|
1250
|
+
* Hashtag to collect posts from (without #)
|
|
1251
|
+
*/
|
|
1252
|
+
hashtag: string;
|
|
1253
|
+
/**
|
|
1254
|
+
* Pagination offset
|
|
1255
|
+
*/
|
|
1256
|
+
start?: number | undefined;
|
|
1257
|
+
/**
|
|
1258
|
+
* Number of posts
|
|
1259
|
+
*/
|
|
1260
|
+
count?: number | undefined;
|
|
1261
|
+
};
|
|
1262
|
+
|
|
1263
|
+
export type CollectHashtagPostsAuthor = {
|
|
1264
|
+
name: string;
|
|
1265
|
+
profileUrl: string | null;
|
|
1266
|
+
publicIdentifier: string | null;
|
|
1267
|
+
profileUrn: string | null;
|
|
1268
|
+
};
|
|
1269
|
+
|
|
1270
|
+
/**
|
|
1271
|
+
* Type of media attached to the post.
|
|
1272
|
+
*/
|
|
1273
|
+
export const CollectHashtagPostsType = {
|
|
1274
|
+
Image: "image",
|
|
1275
|
+
Video: "video",
|
|
1276
|
+
Document: "document",
|
|
1277
|
+
Article: "article",
|
|
1278
|
+
} as const;
|
|
1279
|
+
/**
|
|
1280
|
+
* Type of media attached to the post.
|
|
1281
|
+
*/
|
|
1282
|
+
export type CollectHashtagPostsType = OpenEnum<typeof CollectHashtagPostsType>;
|
|
1283
|
+
|
|
1284
|
+
export type CollectHashtagPostsMedia = {
|
|
1285
|
+
/**
|
|
1286
|
+
* Type of media attached to the post.
|
|
1287
|
+
*/
|
|
1288
|
+
type: CollectHashtagPostsType;
|
|
1289
|
+
/**
|
|
1290
|
+
* Media URLs (image URLs for carousels, video streaming URL, article link, etc.).
|
|
1291
|
+
*/
|
|
1292
|
+
urls: Array<string>;
|
|
1293
|
+
/**
|
|
1294
|
+
* Title of the article or document, when available.
|
|
1295
|
+
*/
|
|
1296
|
+
title?: string | undefined;
|
|
1297
|
+
/**
|
|
1298
|
+
* Thumbnail URL for videos, articles, or document covers.
|
|
1299
|
+
*/
|
|
1300
|
+
thumbnailUrl?: string | undefined;
|
|
1301
|
+
};
|
|
1302
|
+
|
|
1303
|
+
export type CollectHashtagPostsPost = {
|
|
1304
|
+
postUrl: string;
|
|
1305
|
+
postUrn: string;
|
|
1306
|
+
text: string;
|
|
1307
|
+
date: number;
|
|
1308
|
+
likesCount: number;
|
|
1309
|
+
commentsCount: number;
|
|
1310
|
+
sharesCount: number;
|
|
1311
|
+
author: CollectHashtagPostsAuthor;
|
|
1312
|
+
media?: CollectHashtagPostsMedia | undefined;
|
|
1313
|
+
};
|
|
1314
|
+
|
|
1315
|
+
/**
|
|
1316
|
+
* Hashtag posts
|
|
1317
|
+
*/
|
|
1318
|
+
export type CollectHashtagPostsResponse = {
|
|
1319
|
+
success: true;
|
|
1320
|
+
posts: Array<CollectHashtagPostsPost>;
|
|
1321
|
+
total: number;
|
|
1322
|
+
hasMore: boolean;
|
|
1323
|
+
/**
|
|
1324
|
+
* Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
|
|
1325
|
+
*/
|
|
1326
|
+
creditsUsed: number;
|
|
1327
|
+
/**
|
|
1328
|
+
* Seconds to wait before making another call of the same type. 0 means no wait needed.
|
|
1329
|
+
*/
|
|
1330
|
+
retryAfter: number;
|
|
1331
|
+
};
|
|
1332
|
+
|
|
1333
|
+
/**
|
|
1334
|
+
* Type of search to perform (required unless url is provided)
|
|
1335
|
+
*/
|
|
1336
|
+
export const SearchCategoryRequest = {
|
|
1337
|
+
Posts: "posts",
|
|
1338
|
+
People: "people",
|
|
1339
|
+
Companies: "companies",
|
|
1340
|
+
Jobs: "jobs",
|
|
1341
|
+
} as const;
|
|
1342
|
+
/**
|
|
1343
|
+
* Type of search to perform (required unless url is provided)
|
|
1344
|
+
*/
|
|
1345
|
+
export type SearchCategoryRequest = ClosedEnum<typeof SearchCategoryRequest>;
|
|
1346
|
+
|
|
1347
|
+
/**
|
|
1348
|
+
* Sort order (posts & jobs)
|
|
1349
|
+
*/
|
|
1350
|
+
export const SortBy = {
|
|
1351
|
+
Relevance: "relevance",
|
|
1352
|
+
Date: "date",
|
|
1353
|
+
} as const;
|
|
1354
|
+
/**
|
|
1355
|
+
* Sort order (posts & jobs)
|
|
1356
|
+
*/
|
|
1357
|
+
export type SortBy = ClosedEnum<typeof SortBy>;
|
|
1358
|
+
|
|
1359
|
+
/**
|
|
1360
|
+
* Time filter (posts & jobs)
|
|
1361
|
+
*/
|
|
1362
|
+
export const DatePosted = {
|
|
1363
|
+
Past24h: "past-24h",
|
|
1364
|
+
PastWeek: "past-week",
|
|
1365
|
+
PastMonth: "past-month",
|
|
1366
|
+
} as const;
|
|
1367
|
+
/**
|
|
1368
|
+
* Time filter (posts & jobs)
|
|
1369
|
+
*/
|
|
1370
|
+
export type DatePosted = ClosedEnum<typeof DatePosted>;
|
|
1371
|
+
|
|
1372
|
+
/**
|
|
1373
|
+
* Media type filter (posts only)
|
|
1374
|
+
*/
|
|
1375
|
+
export const ContentType = {
|
|
1376
|
+
Images: "images",
|
|
1377
|
+
Videos: "videos",
|
|
1378
|
+
Documents: "documents",
|
|
1379
|
+
} as const;
|
|
1380
|
+
/**
|
|
1381
|
+
* Media type filter (posts only)
|
|
1382
|
+
*/
|
|
1383
|
+
export type ContentType = ClosedEnum<typeof ContentType>;
|
|
1384
|
+
|
|
1385
|
+
export const ConnectionDegree = {
|
|
1386
|
+
F: "F",
|
|
1387
|
+
S: "S",
|
|
1388
|
+
O: "O",
|
|
1389
|
+
} as const;
|
|
1390
|
+
export type ConnectionDegree = ClosedEnum<typeof ConnectionDegree>;
|
|
1391
|
+
|
|
1392
|
+
export const CompanySize = {
|
|
1393
|
+
A: "A",
|
|
1394
|
+
B: "B",
|
|
1395
|
+
C: "C",
|
|
1396
|
+
D: "D",
|
|
1397
|
+
E: "E",
|
|
1398
|
+
F: "F",
|
|
1399
|
+
G: "G",
|
|
1400
|
+
H: "H",
|
|
1401
|
+
I: "I",
|
|
1402
|
+
} as const;
|
|
1403
|
+
export type CompanySize = ClosedEnum<typeof CompanySize>;
|
|
1404
|
+
|
|
1405
|
+
export const JobType = {
|
|
1406
|
+
F: "F",
|
|
1407
|
+
P: "P",
|
|
1408
|
+
C: "C",
|
|
1409
|
+
T: "T",
|
|
1410
|
+
I: "I",
|
|
1411
|
+
V: "V",
|
|
1412
|
+
O: "O",
|
|
1413
|
+
} as const;
|
|
1414
|
+
export type JobType = ClosedEnum<typeof JobType>;
|
|
1415
|
+
|
|
1416
|
+
export const ExperienceLevel = {
|
|
1417
|
+
One: "1",
|
|
1418
|
+
Two: "2",
|
|
1419
|
+
Three: "3",
|
|
1420
|
+
Four: "4",
|
|
1421
|
+
Five: "5",
|
|
1422
|
+
Six: "6",
|
|
1423
|
+
} as const;
|
|
1424
|
+
export type ExperienceLevel = ClosedEnum<typeof ExperienceLevel>;
|
|
1425
|
+
|
|
1426
|
+
export const WorkplaceType = {
|
|
1427
|
+
One: "1",
|
|
1428
|
+
Two: "2",
|
|
1429
|
+
Three: "3",
|
|
1430
|
+
} as const;
|
|
1431
|
+
export type WorkplaceType = ClosedEnum<typeof WorkplaceType>;
|
|
1432
|
+
|
|
1433
|
+
export type SearchRequest = {
|
|
1434
|
+
/**
|
|
1435
|
+
* Type of search to perform (required unless url is provided)
|
|
1436
|
+
*/
|
|
1437
|
+
category?: SearchCategoryRequest | undefined;
|
|
1438
|
+
/**
|
|
1439
|
+
* LinkedIn search URL — category and filters are extracted automatically. Explicit params override URL-derived ones.
|
|
1440
|
+
*/
|
|
1441
|
+
url?: string | undefined;
|
|
1442
|
+
/**
|
|
1443
|
+
* Search keywords. Supports LinkedIn Boolean syntax: use double quotes for exact phrases (e.g. "outreach automation"), AND to require both terms, OR for alternatives (e.g. CEO OR founder), NOT to exclude (e.g. manager NOT assistant), and parentheses to group (e.g. (CEO OR CTO) AND SaaS). Operators must be UPPERCASE. Without quotes, multi-word queries are treated as AND by default which may return overly broad results — use exact phrases with quotes for precise matching.
|
|
1444
|
+
*/
|
|
1445
|
+
keywords?: string | undefined;
|
|
1446
|
+
/**
|
|
1447
|
+
* Sort order (posts & jobs)
|
|
1448
|
+
*/
|
|
1449
|
+
sortBy?: SortBy | undefined;
|
|
1450
|
+
/**
|
|
1451
|
+
* Time filter (posts & jobs)
|
|
1452
|
+
*/
|
|
1453
|
+
datePosted?: DatePosted | undefined;
|
|
1454
|
+
/**
|
|
1455
|
+
* Media type filter (posts only)
|
|
1456
|
+
*/
|
|
1457
|
+
contentType?: ContentType | undefined;
|
|
1458
|
+
/**
|
|
1459
|
+
* Author industry IDs (posts only, resolve via /search/parameters)
|
|
1460
|
+
*/
|
|
1461
|
+
authorIndustry?: Array<string> | undefined;
|
|
1462
|
+
/**
|
|
1463
|
+
* Author company IDs (posts only, resolve via /search/parameters)
|
|
1464
|
+
*/
|
|
1465
|
+
authorCompany?: Array<string> | undefined;
|
|
1466
|
+
/**
|
|
1467
|
+
* Connection degree: F=1st, S=2nd, O=3rd+ (people only)
|
|
1468
|
+
*/
|
|
1469
|
+
connectionDegree?: Array<ConnectionDegree> | undefined;
|
|
1470
|
+
/**
|
|
1471
|
+
* First name filter (people only)
|
|
1472
|
+
*/
|
|
1473
|
+
firstName?: string | undefined;
|
|
1474
|
+
/**
|
|
1475
|
+
* Last name filter (people only)
|
|
1476
|
+
*/
|
|
1477
|
+
lastName?: string | undefined;
|
|
1478
|
+
/**
|
|
1479
|
+
* Job title filter (people only). Supports LinkedIn Boolean OR syntax: 'CEO OR CTO OR CMO'. Pipe separators are auto-converted: 'CEO|CTO|CMO' becomes 'CEO OR CTO OR CMO'. Use quotes for exact multi-word titles: '"Head of Marketing"'.
|
|
1480
|
+
*/
|
|
1481
|
+
title?: string | undefined;
|
|
1482
|
+
/**
|
|
1483
|
+
* Profile URN to find connections of (people only)
|
|
1484
|
+
*/
|
|
1485
|
+
connectionOf?: string | undefined;
|
|
1486
|
+
/**
|
|
1487
|
+
* Profile language codes e.g. ['en','fr'] (people only)
|
|
1488
|
+
*/
|
|
1489
|
+
profileLanguage?: Array<string> | undefined;
|
|
1490
|
+
/**
|
|
1491
|
+
* School IDs (people only, resolve via /search/parameters)
|
|
1492
|
+
*/
|
|
1493
|
+
school?: Array<string> | undefined;
|
|
1494
|
+
/**
|
|
1495
|
+
* Geo IDs (people, companies, jobs -- resolve via /search/parameters)
|
|
1496
|
+
*/
|
|
1497
|
+
location?: Array<string> | undefined;
|
|
1498
|
+
/**
|
|
1499
|
+
* Industry IDs (people, companies -- resolve via /search/parameters)
|
|
1500
|
+
*/
|
|
1501
|
+
industry?: Array<string> | undefined;
|
|
1502
|
+
/**
|
|
1503
|
+
* Current company IDs (people only, resolve via /search/parameters)
|
|
1504
|
+
*/
|
|
1505
|
+
currentCompany?: Array<string> | undefined;
|
|
1506
|
+
/**
|
|
1507
|
+
* Past company IDs (people only, resolve via /search/parameters)
|
|
1508
|
+
*/
|
|
1509
|
+
pastCompany?: Array<string> | undefined;
|
|
1510
|
+
/**
|
|
1511
|
+
* Company size: A=1-10, B=11-50, C=51-200, D=201-500, E=501-1K, F=1K-5K, G=5K-10K, H=10K+, I=self (companies only)
|
|
1512
|
+
*/
|
|
1513
|
+
companySize?: Array<CompanySize> | undefined;
|
|
1514
|
+
/**
|
|
1515
|
+
* Job type: F=Full-time, P=Part-time, C=Contract, T=Temporary, I=Internship, V=Volunteer, O=Other (jobs only)
|
|
1516
|
+
*/
|
|
1517
|
+
jobType?: Array<JobType> | undefined;
|
|
1518
|
+
/**
|
|
1519
|
+
* Experience level: 1=Internship, 2=Entry, 3=Associate, 4=Mid-Senior, 5=Director, 6=Executive (jobs only)
|
|
1520
|
+
*/
|
|
1521
|
+
experienceLevel?: Array<ExperienceLevel> | undefined;
|
|
1522
|
+
/**
|
|
1523
|
+
* Workplace type: 1=On-site, 2=Remote, 3=Hybrid (jobs only)
|
|
1524
|
+
*/
|
|
1525
|
+
workplaceType?: Array<WorkplaceType> | undefined;
|
|
1526
|
+
/**
|
|
1527
|
+
* Pagination offset (default 0)
|
|
1528
|
+
*/
|
|
1529
|
+
start?: number | undefined;
|
|
1530
|
+
/**
|
|
1531
|
+
* Results per page (default 10, max 50)
|
|
1532
|
+
*/
|
|
1533
|
+
count?: number | undefined;
|
|
1534
|
+
};
|
|
1535
|
+
|
|
1536
|
+
export const SearchCategoryResponseBody = {
|
|
1537
|
+
Posts: "posts",
|
|
1538
|
+
People: "people",
|
|
1539
|
+
Companies: "companies",
|
|
1540
|
+
Jobs: "jobs",
|
|
1541
|
+
} as const;
|
|
1542
|
+
export type SearchCategoryResponseBody = OpenEnum<
|
|
1543
|
+
typeof SearchCategoryResponseBody
|
|
1544
|
+
>;
|
|
1545
|
+
|
|
1546
|
+
export const ItemsTypeJob = {
|
|
1547
|
+
Job: "JOB",
|
|
1548
|
+
} as const;
|
|
1549
|
+
export type ItemsTypeJob = ClosedEnum<typeof ItemsTypeJob>;
|
|
1550
|
+
|
|
1551
|
+
export type ItemsJob = {
|
|
1552
|
+
type: ItemsTypeJob;
|
|
1553
|
+
title: string;
|
|
1554
|
+
company: string | null;
|
|
1555
|
+
companyUrl: string | null;
|
|
1556
|
+
companyLogo: string | null;
|
|
1557
|
+
location: string | null;
|
|
1558
|
+
workplaceType: string | null;
|
|
1559
|
+
postedAt: string | null;
|
|
1560
|
+
jobUrl: string;
|
|
1561
|
+
listingId: string;
|
|
1562
|
+
};
|
|
1563
|
+
|
|
1564
|
+
export const ItemsTypeCompany = {
|
|
1565
|
+
Company: "COMPANY",
|
|
1566
|
+
} as const;
|
|
1567
|
+
export type ItemsTypeCompany = ClosedEnum<typeof ItemsTypeCompany>;
|
|
1568
|
+
|
|
1569
|
+
export type ItemsCompany = {
|
|
1570
|
+
type: ItemsTypeCompany;
|
|
1571
|
+
name: string;
|
|
1572
|
+
profileUrl: string | null;
|
|
1573
|
+
summary: string | null;
|
|
1574
|
+
industry: string | null;
|
|
1575
|
+
location: string | null;
|
|
1576
|
+
followersCount: number | null;
|
|
1577
|
+
};
|
|
1578
|
+
|
|
1579
|
+
export const ItemsTypePeople = {
|
|
1580
|
+
People: "PEOPLE",
|
|
1581
|
+
} as const;
|
|
1582
|
+
export type ItemsTypePeople = ClosedEnum<typeof ItemsTypePeople>;
|
|
1583
|
+
|
|
1584
|
+
export const ItemsNetworkDistance = {
|
|
1585
|
+
Distance1: "DISTANCE_1",
|
|
1586
|
+
Distance2: "DISTANCE_2",
|
|
1587
|
+
Distance3: "DISTANCE_3",
|
|
1588
|
+
OutOfNetwork: "OUT_OF_NETWORK",
|
|
1589
|
+
} as const;
|
|
1590
|
+
export type ItemsNetworkDistance = OpenEnum<typeof ItemsNetworkDistance>;
|
|
1591
|
+
|
|
1592
|
+
export type ItemsCurrentPosition = {
|
|
1593
|
+
company: string | null;
|
|
1594
|
+
role: string | null;
|
|
1595
|
+
};
|
|
1596
|
+
|
|
1597
|
+
export type ItemsPeople = {
|
|
1598
|
+
type: ItemsTypePeople;
|
|
1599
|
+
name: string;
|
|
1600
|
+
profileUrl: string | null;
|
|
1601
|
+
headline: string | null;
|
|
1602
|
+
location: string | null;
|
|
1603
|
+
profilePicture: string | null;
|
|
1604
|
+
networkDistance: ItemsNetworkDistance | null;
|
|
1605
|
+
currentPositions: Array<ItemsCurrentPosition>;
|
|
1606
|
+
/**
|
|
1607
|
+
* LinkedIn profile URN (e.g. urn:li:fsd_profile:ACoAAA...) when available
|
|
1608
|
+
*/
|
|
1609
|
+
profileUrn: string | null;
|
|
1610
|
+
/**
|
|
1611
|
+
* Vanity slug from profile URL (e.g. john-doe) when not URN-based
|
|
1612
|
+
*/
|
|
1613
|
+
publicIdentifier: string | null;
|
|
1614
|
+
};
|
|
1615
|
+
|
|
1616
|
+
export const ItemsTypePost = {
|
|
1617
|
+
Post: "POST",
|
|
1618
|
+
} as const;
|
|
1619
|
+
export type ItemsTypePost = ClosedEnum<typeof ItemsTypePost>;
|
|
1620
|
+
|
|
1621
|
+
export type ItemsAuthor = {
|
|
1622
|
+
name: string;
|
|
1623
|
+
profileUrl: string | null;
|
|
1624
|
+
headline: string | null;
|
|
1625
|
+
profilePicture: string | null;
|
|
1626
|
+
isCompany: boolean;
|
|
1627
|
+
/**
|
|
1628
|
+
* Vanity slug when not URN-based
|
|
1629
|
+
*/
|
|
1630
|
+
publicIdentifier: string | null;
|
|
1631
|
+
/**
|
|
1632
|
+
* LinkedIn profile URN when available
|
|
1633
|
+
*/
|
|
1634
|
+
profileUrn: string | null;
|
|
1635
|
+
};
|
|
1636
|
+
|
|
1637
|
+
/**
|
|
1638
|
+
* Type of media attached to the post.
|
|
1639
|
+
*/
|
|
1640
|
+
export const ItemsMediaType = {
|
|
1641
|
+
Image: "image",
|
|
1642
|
+
Video: "video",
|
|
1643
|
+
Document: "document",
|
|
1644
|
+
Article: "article",
|
|
1645
|
+
} as const;
|
|
1646
|
+
/**
|
|
1647
|
+
* Type of media attached to the post.
|
|
1648
|
+
*/
|
|
1649
|
+
export type ItemsMediaType = OpenEnum<typeof ItemsMediaType>;
|
|
1650
|
+
|
|
1651
|
+
/**
|
|
1652
|
+
* Media attached to the post (image, video, document, or article). Absent when the post is text-only.
|
|
1653
|
+
*/
|
|
1654
|
+
export type ItemsMedia = {
|
|
1655
|
+
/**
|
|
1656
|
+
* Type of media attached to the post.
|
|
1657
|
+
*/
|
|
1658
|
+
type: ItemsMediaType;
|
|
1659
|
+
/**
|
|
1660
|
+
* Media URLs (image URLs for carousels, video streaming URL, article link, etc.).
|
|
1661
|
+
*/
|
|
1662
|
+
urls: Array<string>;
|
|
1663
|
+
/**
|
|
1664
|
+
* Title of the article or document, when available.
|
|
1665
|
+
*/
|
|
1666
|
+
title?: string | undefined;
|
|
1667
|
+
/**
|
|
1668
|
+
* Thumbnail URL for videos, articles, or document covers.
|
|
1669
|
+
*/
|
|
1670
|
+
thumbnailUrl?: string | undefined;
|
|
1671
|
+
};
|
|
1672
|
+
|
|
1673
|
+
export type ItemsPost = {
|
|
1674
|
+
type: ItemsTypePost;
|
|
1675
|
+
postUrl: string;
|
|
1676
|
+
text: string;
|
|
1677
|
+
date: number;
|
|
1678
|
+
likesCount: number;
|
|
1679
|
+
commentsCount: number;
|
|
1680
|
+
sharesCount: number;
|
|
1681
|
+
postUrn: string;
|
|
1682
|
+
postId: string;
|
|
1683
|
+
author: ItemsAuthor;
|
|
1684
|
+
isRepost: boolean;
|
|
1685
|
+
/**
|
|
1686
|
+
* Media attached to the post (image, video, document, or article). Absent when the post is text-only.
|
|
1687
|
+
*/
|
|
1688
|
+
media?: ItemsMedia | undefined;
|
|
1689
|
+
};
|
|
1690
|
+
|
|
1691
|
+
export type Items =
|
|
1692
|
+
| Array<ItemsPost>
|
|
1693
|
+
| Array<ItemsPeople>
|
|
1694
|
+
| Array<ItemsCompany>
|
|
1695
|
+
| Array<ItemsJob>;
|
|
1696
|
+
|
|
1697
|
+
export type SearchPagingResponseBody = {
|
|
1698
|
+
start: number;
|
|
1699
|
+
count: number;
|
|
1700
|
+
total: number;
|
|
1701
|
+
};
|
|
1702
|
+
|
|
1703
|
+
/**
|
|
1704
|
+
* Search results for the specified category
|
|
1705
|
+
*/
|
|
1706
|
+
export type SearchResponse = {
|
|
1707
|
+
success: true;
|
|
1708
|
+
category: SearchCategoryResponseBody;
|
|
1709
|
+
items:
|
|
1710
|
+
| Array<ItemsPost>
|
|
1711
|
+
| Array<ItemsPeople>
|
|
1712
|
+
| Array<ItemsCompany>
|
|
1713
|
+
| Array<ItemsJob>;
|
|
1714
|
+
paging: SearchPagingResponseBody;
|
|
1715
|
+
hasMore: boolean;
|
|
1716
|
+
/**
|
|
1717
|
+
* Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
|
|
1718
|
+
*/
|
|
1719
|
+
creditsUsed: number;
|
|
1720
|
+
/**
|
|
1721
|
+
* Seconds to wait before making another call of the same type. 0 means no wait needed.
|
|
1722
|
+
*/
|
|
1723
|
+
retryAfter: number;
|
|
1724
|
+
};
|
|
1725
|
+
|
|
1726
|
+
/**
|
|
1727
|
+
* Sort order. 'relevance' (default) returns the most relevant posts. 'date' returns the most recent posts first.
|
|
1728
|
+
*/
|
|
1729
|
+
export const SearchPostsSortBy = {
|
|
1730
|
+
Relevance: "relevance",
|
|
1731
|
+
Date: "date",
|
|
1732
|
+
} as const;
|
|
1733
|
+
/**
|
|
1734
|
+
* Sort order. 'relevance' (default) returns the most relevant posts. 'date' returns the most recent posts first.
|
|
1735
|
+
*/
|
|
1736
|
+
export type SearchPostsSortBy = ClosedEnum<typeof SearchPostsSortBy>;
|
|
1737
|
+
|
|
1738
|
+
/**
|
|
1739
|
+
* Filter by publication date. Useful for finding recent discussions or trending topics.
|
|
1740
|
+
*/
|
|
1741
|
+
export const SearchPostsDatePosted = {
|
|
1742
|
+
Past24h: "past-24h",
|
|
1743
|
+
PastWeek: "past-week",
|
|
1744
|
+
PastMonth: "past-month",
|
|
1745
|
+
} as const;
|
|
1746
|
+
/**
|
|
1747
|
+
* Filter by publication date. Useful for finding recent discussions or trending topics.
|
|
1748
|
+
*/
|
|
1749
|
+
export type SearchPostsDatePosted = ClosedEnum<typeof SearchPostsDatePosted>;
|
|
1750
|
+
|
|
1751
|
+
/**
|
|
1752
|
+
* Filter by media type. Only return posts that contain the specified media. 'images' = photo posts, 'videos' = video posts, 'documents' = carousel/PDF posts.
|
|
1753
|
+
*/
|
|
1754
|
+
export const SearchPostsContentType = {
|
|
1755
|
+
Images: "images",
|
|
1756
|
+
Videos: "videos",
|
|
1757
|
+
Documents: "documents",
|
|
1758
|
+
} as const;
|
|
1759
|
+
/**
|
|
1760
|
+
* Filter by media type. Only return posts that contain the specified media. 'images' = photo posts, 'videos' = video posts, 'documents' = carousel/PDF posts.
|
|
1761
|
+
*/
|
|
1762
|
+
export type SearchPostsContentType = ClosedEnum<typeof SearchPostsContentType>;
|
|
1763
|
+
|
|
1764
|
+
export type SearchPostsRequest = {
|
|
1765
|
+
/**
|
|
1766
|
+
* Search keywords (required). Searches across post text content. Supports LinkedIn Boolean syntax: use double quotes for exact phrases (e.g. "AI automation"), AND to require both terms, OR for alternatives (e.g. "growth hacking" OR "growth marketing"), NOT to exclude (e.g. outreach NOT webinar), and parentheses to group (e.g. (AI OR ML) AND "case study"). Operators must be UPPERCASE. Without quotes, multi-word queries are treated as AND by default which may return broad results.
|
|
1767
|
+
*/
|
|
1768
|
+
keywords: string;
|
|
1769
|
+
/**
|
|
1770
|
+
* Optional LinkedIn search URL. If provided, keywords and filters are extracted from the URL. Explicit params override URL-derived values.
|
|
1771
|
+
*/
|
|
1772
|
+
url?: string | undefined;
|
|
1773
|
+
/**
|
|
1774
|
+
* Sort order. 'relevance' (default) returns the most relevant posts. 'date' returns the most recent posts first.
|
|
1775
|
+
*/
|
|
1776
|
+
sortBy?: SearchPostsSortBy | undefined;
|
|
1777
|
+
/**
|
|
1778
|
+
* Filter by publication date. Useful for finding recent discussions or trending topics.
|
|
1779
|
+
*/
|
|
1780
|
+
datePosted?: SearchPostsDatePosted | undefined;
|
|
1781
|
+
/**
|
|
1782
|
+
* Filter by media type. Only return posts that contain the specified media. 'images' = photo posts, 'videos' = video posts, 'documents' = carousel/PDF posts.
|
|
1783
|
+
*/
|
|
1784
|
+
contentType?: SearchPostsContentType | undefined;
|
|
1785
|
+
/**
|
|
1786
|
+
* Filter by the post author's industry. Array of LinkedIn industry IDs. Resolve text to IDs via POST /search/linkedin/parameters with type='INDUSTRY'. Example: resolve 'Technology' to get industry IDs.
|
|
1787
|
+
*/
|
|
1788
|
+
authorIndustry?: Array<string> | undefined;
|
|
1789
|
+
/**
|
|
1790
|
+
* Filter by the post author's company. Array of LinkedIn company IDs. Resolve text to IDs via POST /search/linkedin/parameters with type='COMPANY'. Example: resolve 'Google' to get company ID '1441'.
|
|
1791
|
+
*/
|
|
1792
|
+
authorCompany?: Array<string> | undefined;
|
|
1793
|
+
/**
|
|
1794
|
+
* Pagination offset (default 0). Use multiples of `count` to page through results. Example: start=0 for page 1, start=10 for page 2 (with count=10).
|
|
1795
|
+
*/
|
|
1796
|
+
start?: number | undefined;
|
|
1797
|
+
/**
|
|
1798
|
+
* Results per page (default 10, max 50). Controls how many posts are returned per request.
|
|
1799
|
+
*/
|
|
1800
|
+
count?: number | undefined;
|
|
1801
|
+
};
|
|
1802
|
+
|
|
1803
|
+
export const SearchPostsCategory = {
|
|
1804
|
+
Posts: "posts",
|
|
1805
|
+
} as const;
|
|
1806
|
+
export type SearchPostsCategory = ClosedEnum<typeof SearchPostsCategory>;
|
|
1807
|
+
|
|
1808
|
+
export const SearchPostsType = {
|
|
1809
|
+
Post: "POST",
|
|
1810
|
+
} as const;
|
|
1811
|
+
export type SearchPostsType = ClosedEnum<typeof SearchPostsType>;
|
|
1812
|
+
|
|
1813
|
+
export type SearchPostsAuthor = {
|
|
1814
|
+
name: string;
|
|
1815
|
+
profileUrl: string | null;
|
|
1816
|
+
headline: string | null;
|
|
1817
|
+
profilePicture: string | null;
|
|
1818
|
+
isCompany: boolean;
|
|
1819
|
+
/**
|
|
1820
|
+
* Vanity slug when not URN-based
|
|
1821
|
+
*/
|
|
1822
|
+
publicIdentifier: string | null;
|
|
1823
|
+
/**
|
|
1824
|
+
* LinkedIn profile URN when available
|
|
1825
|
+
*/
|
|
1826
|
+
profileUrn: string | null;
|
|
1827
|
+
};
|
|
1828
|
+
|
|
1829
|
+
/**
|
|
1830
|
+
* Type of media attached to the post.
|
|
1831
|
+
*/
|
|
1832
|
+
export const SearchPostsMediaType = {
|
|
1833
|
+
Image: "image",
|
|
1834
|
+
Video: "video",
|
|
1835
|
+
Document: "document",
|
|
1836
|
+
Article: "article",
|
|
1837
|
+
} as const;
|
|
1838
|
+
/**
|
|
1839
|
+
* Type of media attached to the post.
|
|
1840
|
+
*/
|
|
1841
|
+
export type SearchPostsMediaType = OpenEnum<typeof SearchPostsMediaType>;
|
|
1842
|
+
|
|
1843
|
+
/**
|
|
1844
|
+
* Media attached to the post (image, video, document, or article). Absent when the post is text-only.
|
|
1845
|
+
*/
|
|
1846
|
+
export type SearchPostsMedia = {
|
|
1847
|
+
/**
|
|
1848
|
+
* Type of media attached to the post.
|
|
1849
|
+
*/
|
|
1850
|
+
type: SearchPostsMediaType;
|
|
1851
|
+
/**
|
|
1852
|
+
* Media URLs (image URLs for carousels, video streaming URL, article link, etc.).
|
|
1853
|
+
*/
|
|
1854
|
+
urls: Array<string>;
|
|
1855
|
+
/**
|
|
1856
|
+
* Title of the article or document, when available.
|
|
1857
|
+
*/
|
|
1858
|
+
title?: string | undefined;
|
|
1859
|
+
/**
|
|
1860
|
+
* Thumbnail URL for videos, articles, or document covers.
|
|
1861
|
+
*/
|
|
1862
|
+
thumbnailUrl?: string | undefined;
|
|
1863
|
+
};
|
|
1864
|
+
|
|
1865
|
+
export type SearchPostsItem = {
|
|
1866
|
+
type: SearchPostsType;
|
|
1867
|
+
postUrl: string;
|
|
1868
|
+
text: string;
|
|
1869
|
+
date: number;
|
|
1870
|
+
likesCount: number;
|
|
1871
|
+
commentsCount: number;
|
|
1872
|
+
sharesCount: number;
|
|
1873
|
+
postUrn: string;
|
|
1874
|
+
postId: string;
|
|
1875
|
+
author: SearchPostsAuthor;
|
|
1876
|
+
isRepost: boolean;
|
|
1877
|
+
/**
|
|
1878
|
+
* Media attached to the post (image, video, document, or article). Absent when the post is text-only.
|
|
1879
|
+
*/
|
|
1880
|
+
media?: SearchPostsMedia | undefined;
|
|
1881
|
+
};
|
|
1882
|
+
|
|
1883
|
+
export type SearchPostsPaging = {
|
|
1884
|
+
start: number;
|
|
1885
|
+
count: number;
|
|
1886
|
+
total: number;
|
|
1887
|
+
};
|
|
1888
|
+
|
|
1889
|
+
/**
|
|
1890
|
+
* List of LinkedIn posts matching the search criteria
|
|
1891
|
+
*/
|
|
1892
|
+
export type SearchPostsResponse = {
|
|
1893
|
+
success: true;
|
|
1894
|
+
category: SearchPostsCategory;
|
|
1895
|
+
items: Array<SearchPostsItem>;
|
|
1896
|
+
paging: SearchPostsPaging;
|
|
1897
|
+
hasMore: boolean;
|
|
1898
|
+
/**
|
|
1899
|
+
* Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
|
|
1900
|
+
*/
|
|
1901
|
+
creditsUsed: number;
|
|
1902
|
+
/**
|
|
1903
|
+
* Seconds to wait before making another call of the same type. 0 means no wait needed.
|
|
1904
|
+
*/
|
|
1905
|
+
retryAfter: number;
|
|
1906
|
+
};
|
|
1907
|
+
|
|
1908
|
+
export const SearchPeopleConnectionDegree = {
|
|
1909
|
+
F: "F",
|
|
1910
|
+
S: "S",
|
|
1911
|
+
O: "O",
|
|
1912
|
+
} as const;
|
|
1913
|
+
export type SearchPeopleConnectionDegree = ClosedEnum<
|
|
1914
|
+
typeof SearchPeopleConnectionDegree
|
|
1915
|
+
>;
|
|
1916
|
+
|
|
1917
|
+
export type SearchPeopleRequest = {
|
|
1918
|
+
/**
|
|
1919
|
+
* Search keywords. Matches against name, headline, company, skills, and bio. Optional — you can search by filters alone (e.g. all 2nd-degree connections in Paris). Supports LinkedIn Boolean syntax: use double quotes for exact phrases (e.g. "product manager"), AND to require both terms, OR for alternatives (e.g. CEO OR founder OR CTO), NOT to exclude (e.g. manager NOT assistant), and parentheses to group (e.g. (CEO OR CTO) AND SaaS). Operators must be UPPERCASE.
|
|
1920
|
+
*/
|
|
1921
|
+
keywords?: string | undefined;
|
|
1922
|
+
/**
|
|
1923
|
+
* Optional LinkedIn search URL. If provided, keywords and filters are extracted from the URL. Explicit params override URL-derived values.
|
|
1924
|
+
*/
|
|
1925
|
+
url?: string | undefined;
|
|
1926
|
+
/**
|
|
1927
|
+
* Filter by connection degree. 'F' = 1st degree (your direct connections), 'S' = 2nd degree (connections of connections), 'O' = 3rd+ degree and out of network. Accepts multiple values, e.g. ['F','S'] for 1st and 2nd degree.
|
|
1928
|
+
*/
|
|
1929
|
+
connectionDegree?: Array<SearchPeopleConnectionDegree> | undefined;
|
|
1930
|
+
/**
|
|
1931
|
+
* Filter by first name. Exact match (case-insensitive).
|
|
1932
|
+
*/
|
|
1933
|
+
firstName?: string | undefined;
|
|
1934
|
+
/**
|
|
1935
|
+
* Filter by last name. Exact match (case-insensitive).
|
|
1936
|
+
*/
|
|
1937
|
+
lastName?: string | undefined;
|
|
1938
|
+
/**
|
|
1939
|
+
* Filter by current job title. Matches against the person's current position title. Supports LinkedIn Boolean OR: 'CEO OR CTO OR Founder'. Pipe separators are auto-converted: 'CEO|CTO|Founder' becomes 'CEO OR CTO OR Founder'. Use double quotes for exact multi-word titles: '"Head of Marketing" OR "VP Sales"'.
|
|
1940
|
+
*/
|
|
1941
|
+
title?: string | undefined;
|
|
1942
|
+
/**
|
|
1943
|
+
* Find connections of a specific person. Pass the person's LinkedIn profile URN (e.g. 'urn:li:fsd_profile:ACoAABZ0Qo4B...'). Returns people who are connected to this person.
|
|
1944
|
+
*/
|
|
1945
|
+
connectionOf?: string | undefined;
|
|
1946
|
+
/**
|
|
1947
|
+
* Filter by LinkedIn profile language. Array of ISO 639-1 codes. Example: ['en'] for English profiles, ['en','fr'] for English or French profiles.
|
|
1948
|
+
*/
|
|
1949
|
+
profileLanguage?: Array<string> | undefined;
|
|
1950
|
+
/**
|
|
1951
|
+
* Filter by school/university. Array of LinkedIn school IDs. Resolve text to IDs via POST /search/linkedin/parameters with type='SCHOOL'. Example: resolve 'Harvard' to get school IDs.
|
|
1952
|
+
*/
|
|
1953
|
+
school?: Array<string> | undefined;
|
|
1954
|
+
/**
|
|
1955
|
+
* Filter by geographic location. Array of LinkedIn geo IDs. Resolve text to IDs via POST /search/linkedin/parameters with type='GEO'. Example: resolve 'San Francisco' → '102277331'.
|
|
1956
|
+
*/
|
|
1957
|
+
location?: Array<string> | undefined;
|
|
1958
|
+
/**
|
|
1959
|
+
* Filter by industry. Array of LinkedIn industry IDs. Resolve text to IDs via POST /search/linkedin/parameters with type='INDUSTRY'.
|
|
1960
|
+
*/
|
|
1961
|
+
industry?: Array<string> | undefined;
|
|
1962
|
+
/**
|
|
1963
|
+
* Filter by current employer. Array of LinkedIn company IDs. Resolve text to IDs via POST /search/linkedin/parameters with type='COMPANY'. Example: resolve 'Google' → '1441'.
|
|
1964
|
+
*/
|
|
1965
|
+
currentCompany?: Array<string> | undefined;
|
|
1966
|
+
/**
|
|
1967
|
+
* Filter by past employer. Array of LinkedIn company IDs. Finds people who previously worked at these companies.
|
|
1968
|
+
*/
|
|
1969
|
+
pastCompany?: Array<string> | undefined;
|
|
1970
|
+
/**
|
|
1971
|
+
* Pagination offset (default 0). Use multiples of `count` to page through results.
|
|
1972
|
+
*/
|
|
1973
|
+
start?: number | undefined;
|
|
1974
|
+
/**
|
|
1975
|
+
* Results per page (default 10, max 50).
|
|
1976
|
+
*/
|
|
1977
|
+
count?: number | undefined;
|
|
1978
|
+
};
|
|
1979
|
+
|
|
1980
|
+
export const SearchPeopleCategory = {
|
|
1981
|
+
People: "people",
|
|
1982
|
+
} as const;
|
|
1983
|
+
export type SearchPeopleCategory = ClosedEnum<typeof SearchPeopleCategory>;
|
|
1984
|
+
|
|
1985
|
+
export const SearchPeopleType = {
|
|
1986
|
+
People: "PEOPLE",
|
|
1987
|
+
} as const;
|
|
1988
|
+
export type SearchPeopleType = ClosedEnum<typeof SearchPeopleType>;
|
|
1989
|
+
|
|
1990
|
+
export const SearchPeopleNetworkDistance = {
|
|
1991
|
+
Distance1: "DISTANCE_1",
|
|
1992
|
+
Distance2: "DISTANCE_2",
|
|
1993
|
+
Distance3: "DISTANCE_3",
|
|
1994
|
+
OutOfNetwork: "OUT_OF_NETWORK",
|
|
1995
|
+
} as const;
|
|
1996
|
+
export type SearchPeopleNetworkDistance = OpenEnum<
|
|
1997
|
+
typeof SearchPeopleNetworkDistance
|
|
1998
|
+
>;
|
|
1999
|
+
|
|
2000
|
+
export type SearchPeopleCurrentPosition = {
|
|
2001
|
+
company: string | null;
|
|
2002
|
+
role: string | null;
|
|
2003
|
+
};
|
|
2004
|
+
|
|
2005
|
+
export type SearchPeopleItem = {
|
|
2006
|
+
type: SearchPeopleType;
|
|
2007
|
+
name: string;
|
|
2008
|
+
profileUrl: string | null;
|
|
2009
|
+
headline: string | null;
|
|
2010
|
+
location: string | null;
|
|
2011
|
+
profilePicture: string | null;
|
|
2012
|
+
networkDistance: SearchPeopleNetworkDistance | null;
|
|
2013
|
+
currentPositions: Array<SearchPeopleCurrentPosition>;
|
|
2014
|
+
/**
|
|
2015
|
+
* LinkedIn profile URN (e.g. urn:li:fsd_profile:ACoAAA...) when available
|
|
2016
|
+
*/
|
|
2017
|
+
profileUrn: string | null;
|
|
2018
|
+
/**
|
|
2019
|
+
* Vanity slug from profile URL (e.g. john-doe) when not URN-based
|
|
2020
|
+
*/
|
|
2021
|
+
publicIdentifier: string | null;
|
|
2022
|
+
};
|
|
2023
|
+
|
|
2024
|
+
export type SearchPeoplePaging = {
|
|
2025
|
+
start: number;
|
|
2026
|
+
count: number;
|
|
2027
|
+
total: number;
|
|
2028
|
+
};
|
|
2029
|
+
|
|
2030
|
+
/**
|
|
2031
|
+
* List of LinkedIn people matching the search criteria
|
|
2032
|
+
*/
|
|
2033
|
+
export type SearchPeopleResponse = {
|
|
2034
|
+
success: true;
|
|
2035
|
+
category: SearchPeopleCategory;
|
|
2036
|
+
items: Array<SearchPeopleItem>;
|
|
2037
|
+
paging: SearchPeoplePaging;
|
|
2038
|
+
hasMore: boolean;
|
|
2039
|
+
/**
|
|
2040
|
+
* Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
|
|
2041
|
+
*/
|
|
2042
|
+
creditsUsed: number;
|
|
2043
|
+
/**
|
|
2044
|
+
* Seconds to wait before making another call of the same type. 0 means no wait needed.
|
|
2045
|
+
*/
|
|
2046
|
+
retryAfter: number;
|
|
2047
|
+
};
|
|
2048
|
+
|
|
2049
|
+
export const SearchCompaniesCompanySize = {
|
|
2050
|
+
A: "A",
|
|
2051
|
+
B: "B",
|
|
2052
|
+
C: "C",
|
|
2053
|
+
D: "D",
|
|
2054
|
+
E: "E",
|
|
2055
|
+
F: "F",
|
|
2056
|
+
G: "G",
|
|
2057
|
+
H: "H",
|
|
2058
|
+
I: "I",
|
|
2059
|
+
} as const;
|
|
2060
|
+
export type SearchCompaniesCompanySize = ClosedEnum<
|
|
2061
|
+
typeof SearchCompaniesCompanySize
|
|
2062
|
+
>;
|
|
2063
|
+
|
|
2064
|
+
export type SearchCompaniesRequest = {
|
|
2065
|
+
/**
|
|
2066
|
+
* Search keywords. Matches against company name, description, and specialties. Optional — you can search by filters alone. Supports LinkedIn Boolean syntax: use double quotes for exact phrases (e.g. "artificial intelligence"), AND to require both terms, OR for alternatives (e.g. SaaS OR "cloud computing"), NOT to exclude (e.g. consulting NOT staffing), and parentheses to group (e.g. (AI OR ML) AND healthcare). Operators must be UPPERCASE.
|
|
2067
|
+
*/
|
|
2068
|
+
keywords?: string | undefined;
|
|
2069
|
+
/**
|
|
2070
|
+
* Optional LinkedIn search URL. If provided, keywords and filters are extracted from the URL. Explicit params override URL-derived values.
|
|
2071
|
+
*/
|
|
2072
|
+
url?: string | undefined;
|
|
2073
|
+
/**
|
|
2074
|
+
* Filter by company HQ location. Array of LinkedIn geo IDs. Resolve text to IDs via POST /search/linkedin/parameters with type='GEO'.
|
|
2075
|
+
*/
|
|
2076
|
+
location?: Array<string> | undefined;
|
|
2077
|
+
/**
|
|
2078
|
+
* Filter by company industry. Array of LinkedIn industry IDs. Resolve text to IDs via POST /search/linkedin/parameters with type='INDUSTRY'.
|
|
2079
|
+
*/
|
|
2080
|
+
industry?: Array<string> | undefined;
|
|
2081
|
+
/**
|
|
2082
|
+
* Filter by employee count. Multiple values accepted (OR logic). Codes: A=1-10 employees, B=11-50, C=51-200, D=201-500, E=501-1,000, F=1,001-5,000, G=5,001-10,000, H=10,001+, I=Self-employed.
|
|
2083
|
+
*/
|
|
2084
|
+
companySize?: Array<SearchCompaniesCompanySize> | undefined;
|
|
2085
|
+
/**
|
|
2086
|
+
* Pagination offset (default 0). Use multiples of `count` to page through results.
|
|
2087
|
+
*/
|
|
2088
|
+
start?: number | undefined;
|
|
2089
|
+
/**
|
|
2090
|
+
* Results per page (default 10, max 50).
|
|
2091
|
+
*/
|
|
2092
|
+
count?: number | undefined;
|
|
2093
|
+
};
|
|
2094
|
+
|
|
2095
|
+
export const SearchCompaniesCategory = {
|
|
2096
|
+
Companies: "companies",
|
|
2097
|
+
} as const;
|
|
2098
|
+
export type SearchCompaniesCategory = ClosedEnum<
|
|
2099
|
+
typeof SearchCompaniesCategory
|
|
2100
|
+
>;
|
|
2101
|
+
|
|
2102
|
+
export const SearchCompaniesType = {
|
|
2103
|
+
Company: "COMPANY",
|
|
2104
|
+
} as const;
|
|
2105
|
+
export type SearchCompaniesType = ClosedEnum<typeof SearchCompaniesType>;
|
|
2106
|
+
|
|
2107
|
+
export type SearchCompaniesItem = {
|
|
2108
|
+
type: SearchCompaniesType;
|
|
2109
|
+
name: string;
|
|
2110
|
+
profileUrl: string | null;
|
|
2111
|
+
summary: string | null;
|
|
2112
|
+
industry: string | null;
|
|
2113
|
+
location: string | null;
|
|
2114
|
+
followersCount: number | null;
|
|
2115
|
+
};
|
|
2116
|
+
|
|
2117
|
+
export type SearchCompaniesPaging = {
|
|
2118
|
+
start: number;
|
|
2119
|
+
count: number;
|
|
2120
|
+
total: number;
|
|
2121
|
+
};
|
|
2122
|
+
|
|
2123
|
+
/**
|
|
2124
|
+
* List of LinkedIn companies matching the search criteria
|
|
2125
|
+
*/
|
|
2126
|
+
export type SearchCompaniesResponse = {
|
|
2127
|
+
success: true;
|
|
2128
|
+
category: SearchCompaniesCategory;
|
|
2129
|
+
items: Array<SearchCompaniesItem>;
|
|
2130
|
+
paging: SearchCompaniesPaging;
|
|
2131
|
+
hasMore: boolean;
|
|
2132
|
+
/**
|
|
2133
|
+
* Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
|
|
2134
|
+
*/
|
|
2135
|
+
creditsUsed: number;
|
|
2136
|
+
/**
|
|
2137
|
+
* Seconds to wait before making another call of the same type. 0 means no wait needed.
|
|
2138
|
+
*/
|
|
2139
|
+
retryAfter: number;
|
|
2140
|
+
};
|
|
2141
|
+
|
|
2142
|
+
/** @internal */
|
|
2143
|
+
export type CollectLikesRequest$Outbound = {
|
|
2144
|
+
postUrl: string;
|
|
2145
|
+
start?: number | undefined;
|
|
2146
|
+
count?: number | undefined;
|
|
2147
|
+
};
|
|
2148
|
+
|
|
2149
|
+
/** @internal */
|
|
2150
|
+
export const CollectLikesRequest$outboundSchema: z.ZodMiniType<
|
|
2151
|
+
CollectLikesRequest$Outbound,
|
|
2152
|
+
CollectLikesRequest
|
|
2153
|
+
> = z.object({
|
|
2154
|
+
postUrl: z.string(),
|
|
2155
|
+
start: z.optional(z.int()),
|
|
2156
|
+
count: z.optional(z.int()),
|
|
2157
|
+
});
|
|
2158
|
+
|
|
2159
|
+
export function collectLikesRequestToJSON(
|
|
2160
|
+
collectLikesRequest: CollectLikesRequest,
|
|
2161
|
+
): string {
|
|
2162
|
+
return JSON.stringify(
|
|
2163
|
+
CollectLikesRequest$outboundSchema.parse(collectLikesRequest),
|
|
2164
|
+
);
|
|
2165
|
+
}
|
|
2166
|
+
|
|
2167
|
+
/** @internal */
|
|
2168
|
+
export const CollectLikesServiceUnavailableDetails$inboundSchema: z.ZodMiniType<
|
|
2169
|
+
CollectLikesServiceUnavailableDetails,
|
|
2170
|
+
unknown
|
|
2171
|
+
> = smartUnion([types.string(), z.array(types.string())]);
|
|
2172
|
+
|
|
2173
|
+
export function collectLikesServiceUnavailableDetailsFromJSON(
|
|
2174
|
+
jsonString: string,
|
|
2175
|
+
): SafeParseResult<CollectLikesServiceUnavailableDetails, SDKValidationError> {
|
|
2176
|
+
return safeParse(
|
|
2177
|
+
jsonString,
|
|
2178
|
+
(x) =>
|
|
2179
|
+
CollectLikesServiceUnavailableDetails$inboundSchema.parse(JSON.parse(x)),
|
|
2180
|
+
`Failed to parse 'CollectLikesServiceUnavailableDetails' from JSON`,
|
|
2181
|
+
);
|
|
2182
|
+
}
|
|
2183
|
+
|
|
2184
|
+
/** @internal */
|
|
2185
|
+
export const CollectLikesServiceUnavailableError$inboundSchema: z.ZodMiniType<
|
|
2186
|
+
CollectLikesServiceUnavailableError,
|
|
2187
|
+
unknown
|
|
2188
|
+
> = z.object({
|
|
2189
|
+
code: types.string(),
|
|
2190
|
+
message: types.string(),
|
|
2191
|
+
docs: types.optional(types.string()),
|
|
2192
|
+
details: types.optional(
|
|
2193
|
+
smartUnion([types.string(), z.array(types.string())]),
|
|
2194
|
+
),
|
|
2195
|
+
});
|
|
2196
|
+
|
|
2197
|
+
export function collectLikesServiceUnavailableErrorFromJSON(
|
|
2198
|
+
jsonString: string,
|
|
2199
|
+
): SafeParseResult<CollectLikesServiceUnavailableError, SDKValidationError> {
|
|
2200
|
+
return safeParse(
|
|
2201
|
+
jsonString,
|
|
2202
|
+
(x) =>
|
|
2203
|
+
CollectLikesServiceUnavailableError$inboundSchema.parse(JSON.parse(x)),
|
|
2204
|
+
`Failed to parse 'CollectLikesServiceUnavailableError' from JSON`,
|
|
2205
|
+
);
|
|
2206
|
+
}
|
|
2207
|
+
|
|
2208
|
+
/** @internal */
|
|
2209
|
+
export const CollectLikesBadGatewayDetails$inboundSchema: z.ZodMiniType<
|
|
2210
|
+
CollectLikesBadGatewayDetails,
|
|
2211
|
+
unknown
|
|
2212
|
+
> = smartUnion([types.string(), z.array(types.string())]);
|
|
2213
|
+
|
|
2214
|
+
export function collectLikesBadGatewayDetailsFromJSON(
|
|
2215
|
+
jsonString: string,
|
|
2216
|
+
): SafeParseResult<CollectLikesBadGatewayDetails, SDKValidationError> {
|
|
2217
|
+
return safeParse(
|
|
2218
|
+
jsonString,
|
|
2219
|
+
(x) => CollectLikesBadGatewayDetails$inboundSchema.parse(JSON.parse(x)),
|
|
2220
|
+
`Failed to parse 'CollectLikesBadGatewayDetails' from JSON`,
|
|
2221
|
+
);
|
|
2222
|
+
}
|
|
2223
|
+
|
|
2224
|
+
/** @internal */
|
|
2225
|
+
export const CollectLikesBadGatewayError$inboundSchema: z.ZodMiniType<
|
|
2226
|
+
CollectLikesBadGatewayError,
|
|
2227
|
+
unknown
|
|
2228
|
+
> = z.object({
|
|
2229
|
+
code: types.string(),
|
|
2230
|
+
message: types.string(),
|
|
2231
|
+
docs: types.optional(types.string()),
|
|
2232
|
+
details: types.optional(
|
|
2233
|
+
smartUnion([types.string(), z.array(types.string())]),
|
|
2234
|
+
),
|
|
2235
|
+
});
|
|
2236
|
+
|
|
2237
|
+
export function collectLikesBadGatewayErrorFromJSON(
|
|
2238
|
+
jsonString: string,
|
|
2239
|
+
): SafeParseResult<CollectLikesBadGatewayError, SDKValidationError> {
|
|
2240
|
+
return safeParse(
|
|
2241
|
+
jsonString,
|
|
2242
|
+
(x) => CollectLikesBadGatewayError$inboundSchema.parse(JSON.parse(x)),
|
|
2243
|
+
`Failed to parse 'CollectLikesBadGatewayError' from JSON`,
|
|
2244
|
+
);
|
|
2245
|
+
}
|
|
2246
|
+
|
|
2247
|
+
/** @internal */
|
|
2248
|
+
export const CollectLikesInternalServerErrorDetails$inboundSchema:
|
|
2249
|
+
z.ZodMiniType<CollectLikesInternalServerErrorDetails, unknown> = smartUnion([
|
|
2250
|
+
types.string(),
|
|
2251
|
+
z.array(types.string()),
|
|
2252
|
+
]);
|
|
2253
|
+
|
|
2254
|
+
export function collectLikesInternalServerErrorDetailsFromJSON(
|
|
2255
|
+
jsonString: string,
|
|
2256
|
+
): SafeParseResult<CollectLikesInternalServerErrorDetails, SDKValidationError> {
|
|
2257
|
+
return safeParse(
|
|
2258
|
+
jsonString,
|
|
2259
|
+
(x) =>
|
|
2260
|
+
CollectLikesInternalServerErrorDetails$inboundSchema.parse(JSON.parse(x)),
|
|
2261
|
+
`Failed to parse 'CollectLikesInternalServerErrorDetails' from JSON`,
|
|
2262
|
+
);
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2265
|
+
/** @internal */
|
|
2266
|
+
export const CollectLikesInternalServerErrorError$inboundSchema: z.ZodMiniType<
|
|
2267
|
+
CollectLikesInternalServerErrorError,
|
|
2268
|
+
unknown
|
|
2269
|
+
> = z.object({
|
|
2270
|
+
code: types.string(),
|
|
2271
|
+
message: types.string(),
|
|
2272
|
+
docs: types.optional(types.string()),
|
|
2273
|
+
details: types.optional(
|
|
2274
|
+
smartUnion([types.string(), z.array(types.string())]),
|
|
2275
|
+
),
|
|
2276
|
+
});
|
|
2277
|
+
|
|
2278
|
+
export function collectLikesInternalServerErrorErrorFromJSON(
|
|
2279
|
+
jsonString: string,
|
|
2280
|
+
): SafeParseResult<CollectLikesInternalServerErrorError, SDKValidationError> {
|
|
2281
|
+
return safeParse(
|
|
2282
|
+
jsonString,
|
|
2283
|
+
(x) =>
|
|
2284
|
+
CollectLikesInternalServerErrorError$inboundSchema.parse(JSON.parse(x)),
|
|
2285
|
+
`Failed to parse 'CollectLikesInternalServerErrorError' from JSON`,
|
|
2286
|
+
);
|
|
2287
|
+
}
|
|
2288
|
+
|
|
2289
|
+
/** @internal */
|
|
2290
|
+
export const CollectLikesCode$inboundSchema: z.ZodMiniEnum<
|
|
2291
|
+
typeof CollectLikesCode
|
|
2292
|
+
> = z.enum(CollectLikesCode);
|
|
2293
|
+
|
|
2294
|
+
/** @internal */
|
|
2295
|
+
export const CollectLikesDaily$inboundSchema: z.ZodMiniType<
|
|
2296
|
+
CollectLikesDaily,
|
|
2297
|
+
unknown
|
|
2298
|
+
> = z.object({
|
|
2299
|
+
current: types.number(),
|
|
2300
|
+
limit: types.number(),
|
|
2301
|
+
});
|
|
2302
|
+
|
|
2303
|
+
export function collectLikesDailyFromJSON(
|
|
2304
|
+
jsonString: string,
|
|
2305
|
+
): SafeParseResult<CollectLikesDaily, SDKValidationError> {
|
|
2306
|
+
return safeParse(
|
|
2307
|
+
jsonString,
|
|
2308
|
+
(x) => CollectLikesDaily$inboundSchema.parse(JSON.parse(x)),
|
|
2309
|
+
`Failed to parse 'CollectLikesDaily' from JSON`,
|
|
2310
|
+
);
|
|
2311
|
+
}
|
|
2312
|
+
|
|
2313
|
+
/** @internal */
|
|
2314
|
+
export const CollectLikesWeekly$inboundSchema: z.ZodMiniType<
|
|
2315
|
+
CollectLikesWeekly,
|
|
2316
|
+
unknown
|
|
2317
|
+
> = z.object({
|
|
2318
|
+
current: types.number(),
|
|
2319
|
+
limit: types.number(),
|
|
2320
|
+
});
|
|
2321
|
+
|
|
2322
|
+
export function collectLikesWeeklyFromJSON(
|
|
2323
|
+
jsonString: string,
|
|
2324
|
+
): SafeParseResult<CollectLikesWeekly, SDKValidationError> {
|
|
2325
|
+
return safeParse(
|
|
2326
|
+
jsonString,
|
|
2327
|
+
(x) => CollectLikesWeekly$inboundSchema.parse(JSON.parse(x)),
|
|
2328
|
+
`Failed to parse 'CollectLikesWeekly' from JSON`,
|
|
2329
|
+
);
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2332
|
+
/** @internal */
|
|
2333
|
+
export const CollectLikesTooManyRequestsError$inboundSchema: z.ZodMiniType<
|
|
2334
|
+
CollectLikesTooManyRequestsError,
|
|
2335
|
+
unknown
|
|
2336
|
+
> = z.object({
|
|
2337
|
+
code: CollectLikesCode$inboundSchema,
|
|
2338
|
+
message: types.string(),
|
|
2339
|
+
docs: types.optional(types.string()),
|
|
2340
|
+
retryAfter: types.number(),
|
|
2341
|
+
daily: types.nullable(z.lazy(() => CollectLikesDaily$inboundSchema)),
|
|
2342
|
+
weekly: types.nullable(z.lazy(() => CollectLikesWeekly$inboundSchema)),
|
|
2343
|
+
});
|
|
2344
|
+
|
|
2345
|
+
export function collectLikesTooManyRequestsErrorFromJSON(
|
|
2346
|
+
jsonString: string,
|
|
2347
|
+
): SafeParseResult<CollectLikesTooManyRequestsError, SDKValidationError> {
|
|
2348
|
+
return safeParse(
|
|
2349
|
+
jsonString,
|
|
2350
|
+
(x) => CollectLikesTooManyRequestsError$inboundSchema.parse(JSON.parse(x)),
|
|
2351
|
+
`Failed to parse 'CollectLikesTooManyRequestsError' from JSON`,
|
|
2352
|
+
);
|
|
2353
|
+
}
|
|
2354
|
+
|
|
2355
|
+
/** @internal */
|
|
2356
|
+
export const CollectLikesUnprocessableEntityDetails$inboundSchema:
|
|
2357
|
+
z.ZodMiniType<CollectLikesUnprocessableEntityDetails, unknown> = smartUnion([
|
|
2358
|
+
types.string(),
|
|
2359
|
+
z.array(types.string()),
|
|
2360
|
+
]);
|
|
2361
|
+
|
|
2362
|
+
export function collectLikesUnprocessableEntityDetailsFromJSON(
|
|
2363
|
+
jsonString: string,
|
|
2364
|
+
): SafeParseResult<CollectLikesUnprocessableEntityDetails, SDKValidationError> {
|
|
2365
|
+
return safeParse(
|
|
2366
|
+
jsonString,
|
|
2367
|
+
(x) =>
|
|
2368
|
+
CollectLikesUnprocessableEntityDetails$inboundSchema.parse(JSON.parse(x)),
|
|
2369
|
+
`Failed to parse 'CollectLikesUnprocessableEntityDetails' from JSON`,
|
|
2370
|
+
);
|
|
2371
|
+
}
|
|
2372
|
+
|
|
2373
|
+
/** @internal */
|
|
2374
|
+
export const CollectLikesUnprocessableEntityError$inboundSchema: z.ZodMiniType<
|
|
2375
|
+
CollectLikesUnprocessableEntityError,
|
|
2376
|
+
unknown
|
|
2377
|
+
> = z.object({
|
|
2378
|
+
code: types.string(),
|
|
2379
|
+
message: types.string(),
|
|
2380
|
+
docs: types.optional(types.string()),
|
|
2381
|
+
details: types.optional(
|
|
2382
|
+
smartUnion([types.string(), z.array(types.string())]),
|
|
2383
|
+
),
|
|
2384
|
+
});
|
|
2385
|
+
|
|
2386
|
+
export function collectLikesUnprocessableEntityErrorFromJSON(
|
|
2387
|
+
jsonString: string,
|
|
2388
|
+
): SafeParseResult<CollectLikesUnprocessableEntityError, SDKValidationError> {
|
|
2389
|
+
return safeParse(
|
|
2390
|
+
jsonString,
|
|
2391
|
+
(x) =>
|
|
2392
|
+
CollectLikesUnprocessableEntityError$inboundSchema.parse(JSON.parse(x)),
|
|
2393
|
+
`Failed to parse 'CollectLikesUnprocessableEntityError' from JSON`,
|
|
2394
|
+
);
|
|
2395
|
+
}
|
|
2396
|
+
|
|
2397
|
+
/** @internal */
|
|
2398
|
+
export const CollectLikesGoneDetails$inboundSchema: z.ZodMiniType<
|
|
2399
|
+
CollectLikesGoneDetails,
|
|
2400
|
+
unknown
|
|
2401
|
+
> = smartUnion([types.string(), z.array(types.string())]);
|
|
2402
|
+
|
|
2403
|
+
export function collectLikesGoneDetailsFromJSON(
|
|
2404
|
+
jsonString: string,
|
|
2405
|
+
): SafeParseResult<CollectLikesGoneDetails, SDKValidationError> {
|
|
2406
|
+
return safeParse(
|
|
2407
|
+
jsonString,
|
|
2408
|
+
(x) => CollectLikesGoneDetails$inboundSchema.parse(JSON.parse(x)),
|
|
2409
|
+
`Failed to parse 'CollectLikesGoneDetails' from JSON`,
|
|
2410
|
+
);
|
|
2411
|
+
}
|
|
2412
|
+
|
|
2413
|
+
/** @internal */
|
|
2414
|
+
export const CollectLikesGoneError$inboundSchema: z.ZodMiniType<
|
|
2415
|
+
CollectLikesGoneError,
|
|
2416
|
+
unknown
|
|
2417
|
+
> = z.object({
|
|
2418
|
+
code: types.string(),
|
|
2419
|
+
message: types.string(),
|
|
2420
|
+
docs: types.optional(types.string()),
|
|
2421
|
+
details: types.optional(
|
|
2422
|
+
smartUnion([types.string(), z.array(types.string())]),
|
|
2423
|
+
),
|
|
2424
|
+
});
|
|
2425
|
+
|
|
2426
|
+
export function collectLikesGoneErrorFromJSON(
|
|
2427
|
+
jsonString: string,
|
|
2428
|
+
): SafeParseResult<CollectLikesGoneError, SDKValidationError> {
|
|
2429
|
+
return safeParse(
|
|
2430
|
+
jsonString,
|
|
2431
|
+
(x) => CollectLikesGoneError$inboundSchema.parse(JSON.parse(x)),
|
|
2432
|
+
`Failed to parse 'CollectLikesGoneError' from JSON`,
|
|
2433
|
+
);
|
|
2434
|
+
}
|
|
2435
|
+
|
|
2436
|
+
/** @internal */
|
|
2437
|
+
export const CollectLikesConflictDetails$inboundSchema: z.ZodMiniType<
|
|
2438
|
+
CollectLikesConflictDetails,
|
|
2439
|
+
unknown
|
|
2440
|
+
> = smartUnion([types.string(), z.array(types.string())]);
|
|
2441
|
+
|
|
2442
|
+
export function collectLikesConflictDetailsFromJSON(
|
|
2443
|
+
jsonString: string,
|
|
2444
|
+
): SafeParseResult<CollectLikesConflictDetails, SDKValidationError> {
|
|
2445
|
+
return safeParse(
|
|
2446
|
+
jsonString,
|
|
2447
|
+
(x) => CollectLikesConflictDetails$inboundSchema.parse(JSON.parse(x)),
|
|
2448
|
+
`Failed to parse 'CollectLikesConflictDetails' from JSON`,
|
|
2449
|
+
);
|
|
2450
|
+
}
|
|
2451
|
+
|
|
2452
|
+
/** @internal */
|
|
2453
|
+
export const CollectLikesConflictError$inboundSchema: z.ZodMiniType<
|
|
2454
|
+
CollectLikesConflictError,
|
|
2455
|
+
unknown
|
|
2456
|
+
> = z.object({
|
|
2457
|
+
code: types.string(),
|
|
2458
|
+
message: types.string(),
|
|
2459
|
+
docs: types.optional(types.string()),
|
|
2460
|
+
details: types.optional(
|
|
2461
|
+
smartUnion([types.string(), z.array(types.string())]),
|
|
2462
|
+
),
|
|
2463
|
+
});
|
|
2464
|
+
|
|
2465
|
+
export function collectLikesConflictErrorFromJSON(
|
|
2466
|
+
jsonString: string,
|
|
2467
|
+
): SafeParseResult<CollectLikesConflictError, SDKValidationError> {
|
|
2468
|
+
return safeParse(
|
|
2469
|
+
jsonString,
|
|
2470
|
+
(x) => CollectLikesConflictError$inboundSchema.parse(JSON.parse(x)),
|
|
2471
|
+
`Failed to parse 'CollectLikesConflictError' from JSON`,
|
|
2472
|
+
);
|
|
2473
|
+
}
|
|
2474
|
+
|
|
2475
|
+
/** @internal */
|
|
2476
|
+
export const CollectLikesNotFoundDetails$inboundSchema: z.ZodMiniType<
|
|
2477
|
+
CollectLikesNotFoundDetails,
|
|
2478
|
+
unknown
|
|
2479
|
+
> = smartUnion([types.string(), z.array(types.string())]);
|
|
2480
|
+
|
|
2481
|
+
export function collectLikesNotFoundDetailsFromJSON(
|
|
2482
|
+
jsonString: string,
|
|
2483
|
+
): SafeParseResult<CollectLikesNotFoundDetails, SDKValidationError> {
|
|
2484
|
+
return safeParse(
|
|
2485
|
+
jsonString,
|
|
2486
|
+
(x) => CollectLikesNotFoundDetails$inboundSchema.parse(JSON.parse(x)),
|
|
2487
|
+
`Failed to parse 'CollectLikesNotFoundDetails' from JSON`,
|
|
2488
|
+
);
|
|
2489
|
+
}
|
|
2490
|
+
|
|
2491
|
+
/** @internal */
|
|
2492
|
+
export const CollectLikesNotFoundError$inboundSchema: z.ZodMiniType<
|
|
2493
|
+
CollectLikesNotFoundError,
|
|
2494
|
+
unknown
|
|
2495
|
+
> = z.object({
|
|
2496
|
+
code: types.string(),
|
|
2497
|
+
message: types.string(),
|
|
2498
|
+
docs: types.optional(types.string()),
|
|
2499
|
+
details: types.optional(
|
|
2500
|
+
smartUnion([types.string(), z.array(types.string())]),
|
|
2501
|
+
),
|
|
2502
|
+
});
|
|
2503
|
+
|
|
2504
|
+
export function collectLikesNotFoundErrorFromJSON(
|
|
2505
|
+
jsonString: string,
|
|
2506
|
+
): SafeParseResult<CollectLikesNotFoundError, SDKValidationError> {
|
|
2507
|
+
return safeParse(
|
|
2508
|
+
jsonString,
|
|
2509
|
+
(x) => CollectLikesNotFoundError$inboundSchema.parse(JSON.parse(x)),
|
|
2510
|
+
`Failed to parse 'CollectLikesNotFoundError' from JSON`,
|
|
2511
|
+
);
|
|
2512
|
+
}
|
|
2513
|
+
|
|
2514
|
+
/** @internal */
|
|
2515
|
+
export const CollectLikesForbiddenDetails$inboundSchema: z.ZodMiniType<
|
|
2516
|
+
CollectLikesForbiddenDetails,
|
|
2517
|
+
unknown
|
|
2518
|
+
> = smartUnion([types.string(), z.array(types.string())]);
|
|
2519
|
+
|
|
2520
|
+
export function collectLikesForbiddenDetailsFromJSON(
|
|
2521
|
+
jsonString: string,
|
|
2522
|
+
): SafeParseResult<CollectLikesForbiddenDetails, SDKValidationError> {
|
|
2523
|
+
return safeParse(
|
|
2524
|
+
jsonString,
|
|
2525
|
+
(x) => CollectLikesForbiddenDetails$inboundSchema.parse(JSON.parse(x)),
|
|
2526
|
+
`Failed to parse 'CollectLikesForbiddenDetails' from JSON`,
|
|
2527
|
+
);
|
|
2528
|
+
}
|
|
2529
|
+
|
|
2530
|
+
/** @internal */
|
|
2531
|
+
export const CollectLikesForbiddenError$inboundSchema: z.ZodMiniType<
|
|
2532
|
+
CollectLikesForbiddenError,
|
|
2533
|
+
unknown
|
|
2534
|
+
> = z.object({
|
|
2535
|
+
code: types.string(),
|
|
2536
|
+
message: types.string(),
|
|
2537
|
+
docs: types.optional(types.string()),
|
|
2538
|
+
details: types.optional(
|
|
2539
|
+
smartUnion([types.string(), z.array(types.string())]),
|
|
2540
|
+
),
|
|
2541
|
+
});
|
|
2542
|
+
|
|
2543
|
+
export function collectLikesForbiddenErrorFromJSON(
|
|
2544
|
+
jsonString: string,
|
|
2545
|
+
): SafeParseResult<CollectLikesForbiddenError, SDKValidationError> {
|
|
2546
|
+
return safeParse(
|
|
2547
|
+
jsonString,
|
|
2548
|
+
(x) => CollectLikesForbiddenError$inboundSchema.parse(JSON.parse(x)),
|
|
2549
|
+
`Failed to parse 'CollectLikesForbiddenError' from JSON`,
|
|
2550
|
+
);
|
|
2551
|
+
}
|
|
2552
|
+
|
|
2553
|
+
/** @internal */
|
|
2554
|
+
export const CollectLikesUnauthorizedDetails$inboundSchema: z.ZodMiniType<
|
|
2555
|
+
CollectLikesUnauthorizedDetails,
|
|
2556
|
+
unknown
|
|
2557
|
+
> = smartUnion([types.string(), z.array(types.string())]);
|
|
2558
|
+
|
|
2559
|
+
export function collectLikesUnauthorizedDetailsFromJSON(
|
|
2560
|
+
jsonString: string,
|
|
2561
|
+
): SafeParseResult<CollectLikesUnauthorizedDetails, SDKValidationError> {
|
|
2562
|
+
return safeParse(
|
|
2563
|
+
jsonString,
|
|
2564
|
+
(x) => CollectLikesUnauthorizedDetails$inboundSchema.parse(JSON.parse(x)),
|
|
2565
|
+
`Failed to parse 'CollectLikesUnauthorizedDetails' from JSON`,
|
|
2566
|
+
);
|
|
2567
|
+
}
|
|
2568
|
+
|
|
2569
|
+
/** @internal */
|
|
2570
|
+
export const CollectLikesUnauthorizedError$inboundSchema: z.ZodMiniType<
|
|
2571
|
+
CollectLikesUnauthorizedError,
|
|
2572
|
+
unknown
|
|
2573
|
+
> = z.object({
|
|
2574
|
+
code: types.string(),
|
|
2575
|
+
message: types.string(),
|
|
2576
|
+
docs: types.optional(types.string()),
|
|
2577
|
+
details: types.optional(
|
|
2578
|
+
smartUnion([types.string(), z.array(types.string())]),
|
|
2579
|
+
),
|
|
2580
|
+
});
|
|
2581
|
+
|
|
2582
|
+
export function collectLikesUnauthorizedErrorFromJSON(
|
|
2583
|
+
jsonString: string,
|
|
2584
|
+
): SafeParseResult<CollectLikesUnauthorizedError, SDKValidationError> {
|
|
2585
|
+
return safeParse(
|
|
2586
|
+
jsonString,
|
|
2587
|
+
(x) => CollectLikesUnauthorizedError$inboundSchema.parse(JSON.parse(x)),
|
|
2588
|
+
`Failed to parse 'CollectLikesUnauthorizedError' from JSON`,
|
|
2589
|
+
);
|
|
2590
|
+
}
|
|
2591
|
+
|
|
2592
|
+
/** @internal */
|
|
2593
|
+
export const CollectLikesBadRequestDetails$inboundSchema: z.ZodMiniType<
|
|
2594
|
+
CollectLikesBadRequestDetails,
|
|
2595
|
+
unknown
|
|
2596
|
+
> = smartUnion([types.string(), z.array(types.string())]);
|
|
2597
|
+
|
|
2598
|
+
export function collectLikesBadRequestDetailsFromJSON(
|
|
2599
|
+
jsonString: string,
|
|
2600
|
+
): SafeParseResult<CollectLikesBadRequestDetails, SDKValidationError> {
|
|
2601
|
+
return safeParse(
|
|
2602
|
+
jsonString,
|
|
2603
|
+
(x) => CollectLikesBadRequestDetails$inboundSchema.parse(JSON.parse(x)),
|
|
2604
|
+
`Failed to parse 'CollectLikesBadRequestDetails' from JSON`,
|
|
2605
|
+
);
|
|
2606
|
+
}
|
|
2607
|
+
|
|
2608
|
+
/** @internal */
|
|
2609
|
+
export const CollectLikesBadRequestError$inboundSchema: z.ZodMiniType<
|
|
2610
|
+
CollectLikesBadRequestError,
|
|
2611
|
+
unknown
|
|
2612
|
+
> = z.object({
|
|
2613
|
+
code: types.string(),
|
|
2614
|
+
message: types.string(),
|
|
2615
|
+
docs: types.optional(types.string()),
|
|
2616
|
+
details: types.optional(
|
|
2617
|
+
smartUnion([types.string(), z.array(types.string())]),
|
|
2618
|
+
),
|
|
2619
|
+
});
|
|
2620
|
+
|
|
2621
|
+
export function collectLikesBadRequestErrorFromJSON(
|
|
2622
|
+
jsonString: string,
|
|
2623
|
+
): SafeParseResult<CollectLikesBadRequestError, SDKValidationError> {
|
|
2624
|
+
return safeParse(
|
|
2625
|
+
jsonString,
|
|
2626
|
+
(x) => CollectLikesBadRequestError$inboundSchema.parse(JSON.parse(x)),
|
|
2627
|
+
`Failed to parse 'CollectLikesBadRequestError' from JSON`,
|
|
2628
|
+
);
|
|
2629
|
+
}
|
|
2630
|
+
|
|
2631
|
+
/** @internal */
|
|
2632
|
+
export const CollectLikesType$inboundSchema: z.ZodMiniEnum<
|
|
2633
|
+
typeof CollectLikesType
|
|
2634
|
+
> = z.enum(CollectLikesType);
|
|
2635
|
+
|
|
2636
|
+
/** @internal */
|
|
2637
|
+
export const CollectLikesProfile$inboundSchema: z.ZodMiniType<
|
|
2638
|
+
CollectLikesProfile,
|
|
2639
|
+
unknown
|
|
2640
|
+
> = z.object({
|
|
2641
|
+
name: types.string(),
|
|
2642
|
+
headline: types.nullable(types.string()),
|
|
2643
|
+
profileUrl: types.nullable(types.string()),
|
|
2644
|
+
imageUrl: types.nullable(types.string()),
|
|
2645
|
+
publicIdentifier: types.nullable(types.string()),
|
|
2646
|
+
profileUrn: types.nullable(types.string()),
|
|
2647
|
+
type: CollectLikesType$inboundSchema,
|
|
2648
|
+
reactionType: types.optional(types.string()),
|
|
2649
|
+
});
|
|
2650
|
+
|
|
2651
|
+
export function collectLikesProfileFromJSON(
|
|
2652
|
+
jsonString: string,
|
|
2653
|
+
): SafeParseResult<CollectLikesProfile, SDKValidationError> {
|
|
2654
|
+
return safeParse(
|
|
2655
|
+
jsonString,
|
|
2656
|
+
(x) => CollectLikesProfile$inboundSchema.parse(JSON.parse(x)),
|
|
2657
|
+
`Failed to parse 'CollectLikesProfile' from JSON`,
|
|
2658
|
+
);
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2661
|
+
/** @internal */
|
|
2662
|
+
export const CollectLikesResponse$inboundSchema: z.ZodMiniType<
|
|
2663
|
+
CollectLikesResponse,
|
|
2664
|
+
unknown
|
|
2665
|
+
> = z.object({
|
|
2666
|
+
success: types.literal(true),
|
|
2667
|
+
profiles: z.array(z.lazy(() => CollectLikesProfile$inboundSchema)),
|
|
2668
|
+
count: types.number(),
|
|
2669
|
+
total: types.number(),
|
|
2670
|
+
start: types.number(),
|
|
2671
|
+
hasMore: types.boolean(),
|
|
2672
|
+
previousTotal: types.nullable(types.number()),
|
|
2673
|
+
creditsUsed: types.number(),
|
|
2674
|
+
retryAfter: types.number(),
|
|
2675
|
+
});
|
|
2676
|
+
|
|
2677
|
+
export function collectLikesResponseFromJSON(
|
|
2678
|
+
jsonString: string,
|
|
2679
|
+
): SafeParseResult<CollectLikesResponse, SDKValidationError> {
|
|
2680
|
+
return safeParse(
|
|
2681
|
+
jsonString,
|
|
2682
|
+
(x) => CollectLikesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
2683
|
+
`Failed to parse 'CollectLikesResponse' from JSON`,
|
|
2684
|
+
);
|
|
2685
|
+
}
|
|
2686
|
+
|
|
2687
|
+
/** @internal */
|
|
2688
|
+
export type CollectCommentsRequest$Outbound = {
|
|
2689
|
+
postUrl: string;
|
|
2690
|
+
start?: number | undefined;
|
|
2691
|
+
count?: number | undefined;
|
|
2692
|
+
campaignSlug?: string | undefined;
|
|
2693
|
+
};
|
|
2694
|
+
|
|
2695
|
+
/** @internal */
|
|
2696
|
+
export const CollectCommentsRequest$outboundSchema: z.ZodMiniType<
|
|
2697
|
+
CollectCommentsRequest$Outbound,
|
|
2698
|
+
CollectCommentsRequest
|
|
2699
|
+
> = z.object({
|
|
2700
|
+
postUrl: z.string(),
|
|
2701
|
+
start: z.optional(z.int()),
|
|
2702
|
+
count: z.optional(z.int()),
|
|
2703
|
+
campaignSlug: z.optional(z.string()),
|
|
2704
|
+
});
|
|
2705
|
+
|
|
2706
|
+
export function collectCommentsRequestToJSON(
|
|
2707
|
+
collectCommentsRequest: CollectCommentsRequest,
|
|
2708
|
+
): string {
|
|
2709
|
+
return JSON.stringify(
|
|
2710
|
+
CollectCommentsRequest$outboundSchema.parse(collectCommentsRequest),
|
|
2711
|
+
);
|
|
2712
|
+
}
|
|
2713
|
+
|
|
2714
|
+
/** @internal */
|
|
2715
|
+
export const CollectCommentsType$inboundSchema: z.ZodMiniEnum<
|
|
2716
|
+
typeof CollectCommentsType
|
|
2717
|
+
> = z.enum(CollectCommentsType);
|
|
2718
|
+
|
|
2719
|
+
/** @internal */
|
|
2720
|
+
export const CollectCommentsActionsCompleted$inboundSchema: z.ZodMiniType<
|
|
2721
|
+
CollectCommentsActionsCompleted,
|
|
2722
|
+
unknown
|
|
2723
|
+
> = z.object({
|
|
2724
|
+
message: types.boolean(),
|
|
2725
|
+
reply: types.boolean(),
|
|
2726
|
+
like: types.boolean(),
|
|
2727
|
+
visit: types.boolean(),
|
|
2728
|
+
connect: types.boolean(),
|
|
2729
|
+
});
|
|
2730
|
+
|
|
2731
|
+
export function collectCommentsActionsCompletedFromJSON(
|
|
2732
|
+
jsonString: string,
|
|
2733
|
+
): SafeParseResult<CollectCommentsActionsCompleted, SDKValidationError> {
|
|
2734
|
+
return safeParse(
|
|
2735
|
+
jsonString,
|
|
2736
|
+
(x) => CollectCommentsActionsCompleted$inboundSchema.parse(JSON.parse(x)),
|
|
2737
|
+
`Failed to parse 'CollectCommentsActionsCompleted' from JSON`,
|
|
2738
|
+
);
|
|
2739
|
+
}
|
|
2740
|
+
|
|
2741
|
+
/** @internal */
|
|
2742
|
+
export const CollectCommentsProfile$inboundSchema: z.ZodMiniType<
|
|
2743
|
+
CollectCommentsProfile,
|
|
2744
|
+
unknown
|
|
2745
|
+
> = z.object({
|
|
2746
|
+
name: types.string(),
|
|
2747
|
+
headline: types.nullable(types.string()),
|
|
2748
|
+
profileUrl: types.nullable(types.string()),
|
|
2749
|
+
imageUrl: types.nullable(types.string()),
|
|
2750
|
+
publicIdentifier: types.nullable(types.string()),
|
|
2751
|
+
profileUrn: types.nullable(types.string()),
|
|
2752
|
+
type: CollectCommentsType$inboundSchema,
|
|
2753
|
+
commentText: types.optional(types.string()),
|
|
2754
|
+
timestamp: types.nullable(types.number()),
|
|
2755
|
+
isEdited: types.optional(types.boolean()),
|
|
2756
|
+
commentUrn: types.optional(types.string()),
|
|
2757
|
+
commentHash: types.optional(types.string()),
|
|
2758
|
+
isPostAuthor: types.optional(types.boolean()),
|
|
2759
|
+
repliesCount: types.optional(types.number()),
|
|
2760
|
+
hasReplyFromPostAuthor: z.optional(z.nullable(types.boolean())),
|
|
2761
|
+
parentCommentUrn: types.optional(types.string()),
|
|
2762
|
+
postUrn: types.optional(types.string()),
|
|
2763
|
+
postHash: types.optional(types.string()),
|
|
2764
|
+
actionsCompleted: types.optional(
|
|
2765
|
+
z.lazy(() => CollectCommentsActionsCompleted$inboundSchema),
|
|
2766
|
+
),
|
|
2767
|
+
knownDistance: types.nullable(types.number()),
|
|
2768
|
+
});
|
|
2769
|
+
|
|
2770
|
+
export function collectCommentsProfileFromJSON(
|
|
2771
|
+
jsonString: string,
|
|
2772
|
+
): SafeParseResult<CollectCommentsProfile, SDKValidationError> {
|
|
2773
|
+
return safeParse(
|
|
2774
|
+
jsonString,
|
|
2775
|
+
(x) => CollectCommentsProfile$inboundSchema.parse(JSON.parse(x)),
|
|
2776
|
+
`Failed to parse 'CollectCommentsProfile' from JSON`,
|
|
2777
|
+
);
|
|
2778
|
+
}
|
|
2779
|
+
|
|
2780
|
+
/** @internal */
|
|
2781
|
+
export const CollectCommentsResponse$inboundSchema: z.ZodMiniType<
|
|
2782
|
+
CollectCommentsResponse,
|
|
2783
|
+
unknown
|
|
2784
|
+
> = z.object({
|
|
2785
|
+
success: types.literal(true),
|
|
2786
|
+
profiles: z.array(z.lazy(() => CollectCommentsProfile$inboundSchema)),
|
|
2787
|
+
count: types.number(),
|
|
2788
|
+
total: types.number(),
|
|
2789
|
+
start: types.number(),
|
|
2790
|
+
hasMore: types.boolean(),
|
|
2791
|
+
previousTotal: types.nullable(types.number()),
|
|
2792
|
+
processedCount: types.optional(types.number()),
|
|
2793
|
+
newCount: types.optional(types.number()),
|
|
2794
|
+
creditsUsed: types.number(),
|
|
2795
|
+
retryAfter: types.number(),
|
|
2796
|
+
});
|
|
2797
|
+
|
|
2798
|
+
export function collectCommentsResponseFromJSON(
|
|
2799
|
+
jsonString: string,
|
|
2800
|
+
): SafeParseResult<CollectCommentsResponse, SDKValidationError> {
|
|
2801
|
+
return safeParse(
|
|
2802
|
+
jsonString,
|
|
2803
|
+
(x) => CollectCommentsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
2804
|
+
`Failed to parse 'CollectCommentsResponse' from JSON`,
|
|
2805
|
+
);
|
|
2806
|
+
}
|
|
2807
|
+
|
|
2808
|
+
/** @internal */
|
|
2809
|
+
export type CollectCommentRepliesRequest$Outbound = {
|
|
2810
|
+
commentUrn: string;
|
|
2811
|
+
start?: number | undefined;
|
|
2812
|
+
count?: number | undefined;
|
|
2813
|
+
};
|
|
2814
|
+
|
|
2815
|
+
/** @internal */
|
|
2816
|
+
export const CollectCommentRepliesRequest$outboundSchema: z.ZodMiniType<
|
|
2817
|
+
CollectCommentRepliesRequest$Outbound,
|
|
2818
|
+
CollectCommentRepliesRequest
|
|
2819
|
+
> = z.object({
|
|
2820
|
+
commentUrn: z.string(),
|
|
2821
|
+
start: z.optional(z.int()),
|
|
2822
|
+
count: z.optional(z.int()),
|
|
2823
|
+
});
|
|
2824
|
+
|
|
2825
|
+
export function collectCommentRepliesRequestToJSON(
|
|
2826
|
+
collectCommentRepliesRequest: CollectCommentRepliesRequest,
|
|
2827
|
+
): string {
|
|
2828
|
+
return JSON.stringify(
|
|
2829
|
+
CollectCommentRepliesRequest$outboundSchema.parse(
|
|
2830
|
+
collectCommentRepliesRequest,
|
|
2831
|
+
),
|
|
2832
|
+
);
|
|
2833
|
+
}
|
|
2834
|
+
|
|
2835
|
+
/** @internal */
|
|
2836
|
+
export const CollectCommentRepliesType$inboundSchema: z.ZodMiniEnum<
|
|
2837
|
+
typeof CollectCommentRepliesType
|
|
2838
|
+
> = z.enum(CollectCommentRepliesType);
|
|
2839
|
+
|
|
2840
|
+
/** @internal */
|
|
2841
|
+
export const CollectCommentRepliesActionsCompleted$inboundSchema: z.ZodMiniType<
|
|
2842
|
+
CollectCommentRepliesActionsCompleted,
|
|
2843
|
+
unknown
|
|
2844
|
+
> = z.object({
|
|
2845
|
+
message: types.boolean(),
|
|
2846
|
+
reply: types.boolean(),
|
|
2847
|
+
like: types.boolean(),
|
|
2848
|
+
visit: types.boolean(),
|
|
2849
|
+
connect: types.boolean(),
|
|
2850
|
+
});
|
|
2851
|
+
|
|
2852
|
+
export function collectCommentRepliesActionsCompletedFromJSON(
|
|
2853
|
+
jsonString: string,
|
|
2854
|
+
): SafeParseResult<CollectCommentRepliesActionsCompleted, SDKValidationError> {
|
|
2855
|
+
return safeParse(
|
|
2856
|
+
jsonString,
|
|
2857
|
+
(x) =>
|
|
2858
|
+
CollectCommentRepliesActionsCompleted$inboundSchema.parse(JSON.parse(x)),
|
|
2859
|
+
`Failed to parse 'CollectCommentRepliesActionsCompleted' from JSON`,
|
|
2860
|
+
);
|
|
2861
|
+
}
|
|
2862
|
+
|
|
2863
|
+
/** @internal */
|
|
2864
|
+
export const Reply$inboundSchema: z.ZodMiniType<Reply, unknown> = z.object({
|
|
2865
|
+
name: types.string(),
|
|
2866
|
+
headline: types.nullable(types.string()),
|
|
2867
|
+
profileUrl: types.nullable(types.string()),
|
|
2868
|
+
imageUrl: types.nullable(types.string()),
|
|
2869
|
+
publicIdentifier: types.nullable(types.string()),
|
|
2870
|
+
profileUrn: types.nullable(types.string()),
|
|
2871
|
+
type: CollectCommentRepliesType$inboundSchema,
|
|
2872
|
+
commentText: types.optional(types.string()),
|
|
2873
|
+
timestamp: types.nullable(types.number()),
|
|
2874
|
+
isEdited: types.optional(types.boolean()),
|
|
2875
|
+
commentUrn: types.optional(types.string()),
|
|
2876
|
+
commentHash: types.optional(types.string()),
|
|
2877
|
+
isPostAuthor: types.optional(types.boolean()),
|
|
2878
|
+
repliesCount: types.optional(types.number()),
|
|
2879
|
+
hasReplyFromPostAuthor: z.optional(z.nullable(types.boolean())),
|
|
2880
|
+
parentCommentUrn: types.optional(types.string()),
|
|
2881
|
+
postUrn: types.optional(types.string()),
|
|
2882
|
+
postHash: types.optional(types.string()),
|
|
2883
|
+
actionsCompleted: types.optional(
|
|
2884
|
+
z.lazy(() => CollectCommentRepliesActionsCompleted$inboundSchema),
|
|
2885
|
+
),
|
|
2886
|
+
knownDistance: types.nullable(types.number()),
|
|
2887
|
+
});
|
|
2888
|
+
|
|
2889
|
+
export function replyFromJSON(
|
|
2890
|
+
jsonString: string,
|
|
2891
|
+
): SafeParseResult<Reply, SDKValidationError> {
|
|
2892
|
+
return safeParse(
|
|
2893
|
+
jsonString,
|
|
2894
|
+
(x) => Reply$inboundSchema.parse(JSON.parse(x)),
|
|
2895
|
+
`Failed to parse 'Reply' from JSON`,
|
|
2896
|
+
);
|
|
2897
|
+
}
|
|
2898
|
+
|
|
2899
|
+
/** @internal */
|
|
2900
|
+
export const CollectCommentRepliesResponse$inboundSchema: z.ZodMiniType<
|
|
2901
|
+
CollectCommentRepliesResponse,
|
|
2902
|
+
unknown
|
|
2903
|
+
> = z.object({
|
|
2904
|
+
success: types.literal(true),
|
|
2905
|
+
replies: z.array(z.lazy(() => Reply$inboundSchema)),
|
|
2906
|
+
count: types.number(),
|
|
2907
|
+
total: types.number(),
|
|
2908
|
+
start: types.number(),
|
|
2909
|
+
hasMore: types.boolean(),
|
|
2910
|
+
parentCommentUrn: types.string(),
|
|
2911
|
+
previousTotal: types.nullable(types.number()),
|
|
2912
|
+
creditsUsed: types.number(),
|
|
2913
|
+
retryAfter: types.number(),
|
|
2914
|
+
});
|
|
2915
|
+
|
|
2916
|
+
export function collectCommentRepliesResponseFromJSON(
|
|
2917
|
+
jsonString: string,
|
|
2918
|
+
): SafeParseResult<CollectCommentRepliesResponse, SDKValidationError> {
|
|
2919
|
+
return safeParse(
|
|
2920
|
+
jsonString,
|
|
2921
|
+
(x) => CollectCommentRepliesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
2922
|
+
`Failed to parse 'CollectCommentRepliesResponse' from JSON`,
|
|
2923
|
+
);
|
|
2924
|
+
}
|
|
2925
|
+
|
|
2926
|
+
/** @internal */
|
|
2927
|
+
export type CollectPostsRequest$Outbound = {
|
|
2928
|
+
profileUrl: string;
|
|
2929
|
+
count?: number | undefined;
|
|
2930
|
+
start?: number | undefined;
|
|
2931
|
+
paginationToken?: string | undefined;
|
|
2932
|
+
};
|
|
2933
|
+
|
|
2934
|
+
/** @internal */
|
|
2935
|
+
export const CollectPostsRequest$outboundSchema: z.ZodMiniType<
|
|
2936
|
+
CollectPostsRequest$Outbound,
|
|
2937
|
+
CollectPostsRequest
|
|
2938
|
+
> = z.object({
|
|
2939
|
+
profileUrl: z.string(),
|
|
2940
|
+
count: z.optional(z.int()),
|
|
2941
|
+
start: z.optional(z.int()),
|
|
2942
|
+
paginationToken: z.optional(z.string()),
|
|
2943
|
+
});
|
|
2944
|
+
|
|
2945
|
+
export function collectPostsRequestToJSON(
|
|
2946
|
+
collectPostsRequest: CollectPostsRequest,
|
|
2947
|
+
): string {
|
|
2948
|
+
return JSON.stringify(
|
|
2949
|
+
CollectPostsRequest$outboundSchema.parse(collectPostsRequest),
|
|
2950
|
+
);
|
|
2951
|
+
}
|
|
2952
|
+
|
|
2953
|
+
/** @internal */
|
|
2954
|
+
export const CollectPostsType$inboundSchema: z.ZodMiniType<
|
|
2955
|
+
CollectPostsType,
|
|
2956
|
+
unknown
|
|
2957
|
+
> = openEnums.inboundSchema(CollectPostsType);
|
|
2958
|
+
|
|
2959
|
+
/** @internal */
|
|
2960
|
+
export const CollectPostsMediaType$inboundSchema: z.ZodMiniType<
|
|
2961
|
+
CollectPostsMediaType,
|
|
2962
|
+
unknown
|
|
2963
|
+
> = openEnums.inboundSchema(CollectPostsMediaType);
|
|
2964
|
+
|
|
2965
|
+
/** @internal */
|
|
2966
|
+
export const CollectPostsMedia$inboundSchema: z.ZodMiniType<
|
|
2967
|
+
CollectPostsMedia,
|
|
2968
|
+
unknown
|
|
2969
|
+
> = z.object({
|
|
2970
|
+
type: CollectPostsMediaType$inboundSchema,
|
|
2971
|
+
urls: z.array(types.string()),
|
|
2972
|
+
title: types.optional(types.string()),
|
|
2973
|
+
thumbnailUrl: types.optional(types.string()),
|
|
2974
|
+
});
|
|
2975
|
+
|
|
2976
|
+
export function collectPostsMediaFromJSON(
|
|
2977
|
+
jsonString: string,
|
|
2978
|
+
): SafeParseResult<CollectPostsMedia, SDKValidationError> {
|
|
2979
|
+
return safeParse(
|
|
2980
|
+
jsonString,
|
|
2981
|
+
(x) => CollectPostsMedia$inboundSchema.parse(JSON.parse(x)),
|
|
2982
|
+
`Failed to parse 'CollectPostsMedia' from JSON`,
|
|
2983
|
+
);
|
|
2984
|
+
}
|
|
2985
|
+
|
|
2986
|
+
/** @internal */
|
|
2987
|
+
export const CollectPostsPost$inboundSchema: z.ZodMiniType<
|
|
2988
|
+
CollectPostsPost,
|
|
2989
|
+
unknown
|
|
2990
|
+
> = z.object({
|
|
2991
|
+
postUrl: types.string(),
|
|
2992
|
+
text: types.string(),
|
|
2993
|
+
date: types.number(),
|
|
2994
|
+
likesCount: types.number(),
|
|
2995
|
+
commentsCount: types.number(),
|
|
2996
|
+
sharesCount: types.number(),
|
|
2997
|
+
postUrn: types.string(),
|
|
2998
|
+
postId: types.string(),
|
|
2999
|
+
type: CollectPostsType$inboundSchema,
|
|
3000
|
+
media: types.optional(z.lazy(() => CollectPostsMedia$inboundSchema)),
|
|
3001
|
+
});
|
|
3002
|
+
|
|
3003
|
+
export function collectPostsPostFromJSON(
|
|
3004
|
+
jsonString: string,
|
|
3005
|
+
): SafeParseResult<CollectPostsPost, SDKValidationError> {
|
|
3006
|
+
return safeParse(
|
|
3007
|
+
jsonString,
|
|
3008
|
+
(x) => CollectPostsPost$inboundSchema.parse(JSON.parse(x)),
|
|
3009
|
+
`Failed to parse 'CollectPostsPost' from JSON`,
|
|
3010
|
+
);
|
|
3011
|
+
}
|
|
3012
|
+
|
|
3013
|
+
/** @internal */
|
|
3014
|
+
export const CollectPostsResponse$inboundSchema: z.ZodMiniType<
|
|
3015
|
+
CollectPostsResponse,
|
|
3016
|
+
unknown
|
|
3017
|
+
> = z.object({
|
|
3018
|
+
success: types.literal(true),
|
|
3019
|
+
posts: z.array(z.lazy(() => CollectPostsPost$inboundSchema)),
|
|
3020
|
+
count: types.number(),
|
|
3021
|
+
total: types.number(),
|
|
3022
|
+
start: types.number(),
|
|
3023
|
+
hasMore: types.boolean(),
|
|
3024
|
+
paginationToken: types.nullable(types.string()),
|
|
3025
|
+
previousTotal: types.nullable(types.number()),
|
|
3026
|
+
creditsUsed: types.number(),
|
|
3027
|
+
retryAfter: types.number(),
|
|
3028
|
+
});
|
|
3029
|
+
|
|
3030
|
+
export function collectPostsResponseFromJSON(
|
|
3031
|
+
jsonString: string,
|
|
3032
|
+
): SafeParseResult<CollectPostsResponse, SDKValidationError> {
|
|
3033
|
+
return safeParse(
|
|
3034
|
+
jsonString,
|
|
3035
|
+
(x) => CollectPostsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
3036
|
+
`Failed to parse 'CollectPostsResponse' from JSON`,
|
|
3037
|
+
);
|
|
3038
|
+
}
|
|
3039
|
+
|
|
3040
|
+
/** @internal */
|
|
3041
|
+
export type VisitProfileRequest$Outbound = {
|
|
3042
|
+
profile: string;
|
|
3043
|
+
campaignSlug?: string | undefined;
|
|
3044
|
+
actionSlug?: string | undefined;
|
|
3045
|
+
includePosts?: boolean | undefined;
|
|
3046
|
+
includeComments?: boolean | undefined;
|
|
3047
|
+
includeAbout?: boolean | undefined;
|
|
3048
|
+
};
|
|
3049
|
+
|
|
3050
|
+
/** @internal */
|
|
3051
|
+
export const VisitProfileRequest$outboundSchema: z.ZodMiniType<
|
|
3052
|
+
VisitProfileRequest$Outbound,
|
|
3053
|
+
VisitProfileRequest
|
|
3054
|
+
> = z.object({
|
|
3055
|
+
profile: z.string(),
|
|
3056
|
+
campaignSlug: z.optional(z.string()),
|
|
3057
|
+
actionSlug: z.optional(z.string()),
|
|
3058
|
+
includePosts: z.optional(z.boolean()),
|
|
3059
|
+
includeComments: z.optional(z.boolean()),
|
|
3060
|
+
includeAbout: z.optional(z.boolean()),
|
|
3061
|
+
});
|
|
3062
|
+
|
|
3063
|
+
export function visitProfileRequestToJSON(
|
|
3064
|
+
visitProfileRequest: VisitProfileRequest,
|
|
3065
|
+
): string {
|
|
3066
|
+
return JSON.stringify(
|
|
3067
|
+
VisitProfileRequest$outboundSchema.parse(visitProfileRequest),
|
|
3068
|
+
);
|
|
3069
|
+
}
|
|
3070
|
+
|
|
3071
|
+
/** @internal */
|
|
3072
|
+
export const PendingConnection$inboundSchema: z.ZodMiniType<
|
|
3073
|
+
PendingConnection,
|
|
3074
|
+
unknown
|
|
3075
|
+
> = openEnums.inboundSchema(PendingConnection);
|
|
3076
|
+
|
|
3077
|
+
/** @internal */
|
|
3078
|
+
export const VisitProfilePositionStartDate$inboundSchema: z.ZodMiniType<
|
|
3079
|
+
VisitProfilePositionStartDate,
|
|
3080
|
+
unknown
|
|
3081
|
+
> = z.object({
|
|
3082
|
+
month: types.nullable(types.number()),
|
|
3083
|
+
year: types.number(),
|
|
3084
|
+
});
|
|
3085
|
+
|
|
3086
|
+
export function visitProfilePositionStartDateFromJSON(
|
|
3087
|
+
jsonString: string,
|
|
3088
|
+
): SafeParseResult<VisitProfilePositionStartDate, SDKValidationError> {
|
|
3089
|
+
return safeParse(
|
|
3090
|
+
jsonString,
|
|
3091
|
+
(x) => VisitProfilePositionStartDate$inboundSchema.parse(JSON.parse(x)),
|
|
3092
|
+
`Failed to parse 'VisitProfilePositionStartDate' from JSON`,
|
|
3093
|
+
);
|
|
3094
|
+
}
|
|
3095
|
+
|
|
3096
|
+
/** @internal */
|
|
3097
|
+
export const VisitProfilePositionEndDate$inboundSchema: z.ZodMiniType<
|
|
3098
|
+
VisitProfilePositionEndDate,
|
|
3099
|
+
unknown
|
|
3100
|
+
> = z.object({
|
|
3101
|
+
month: types.nullable(types.number()),
|
|
3102
|
+
year: types.number(),
|
|
3103
|
+
});
|
|
3104
|
+
|
|
3105
|
+
export function visitProfilePositionEndDateFromJSON(
|
|
3106
|
+
jsonString: string,
|
|
3107
|
+
): SafeParseResult<VisitProfilePositionEndDate, SDKValidationError> {
|
|
3108
|
+
return safeParse(
|
|
3109
|
+
jsonString,
|
|
3110
|
+
(x) => VisitProfilePositionEndDate$inboundSchema.parse(JSON.parse(x)),
|
|
3111
|
+
`Failed to parse 'VisitProfilePositionEndDate' from JSON`,
|
|
3112
|
+
);
|
|
3113
|
+
}
|
|
3114
|
+
|
|
3115
|
+
/** @internal */
|
|
3116
|
+
export const VisitProfilePosition$inboundSchema: z.ZodMiniType<
|
|
3117
|
+
VisitProfilePosition,
|
|
3118
|
+
unknown
|
|
3119
|
+
> = z.object({
|
|
3120
|
+
companyName: types.nullable(types.string()),
|
|
3121
|
+
title: types.nullable(types.string()),
|
|
3122
|
+
description: types.nullable(types.string()),
|
|
3123
|
+
companyUrl: types.nullable(types.string()),
|
|
3124
|
+
companyLogo: types.nullable(types.string()),
|
|
3125
|
+
companyDescription: types.nullable(types.string()),
|
|
3126
|
+
startDate: types.nullable(
|
|
3127
|
+
z.lazy(() => VisitProfilePositionStartDate$inboundSchema),
|
|
3128
|
+
),
|
|
3129
|
+
endDate: types.nullable(
|
|
3130
|
+
z.lazy(() => VisitProfilePositionEndDate$inboundSchema),
|
|
3131
|
+
),
|
|
3132
|
+
isCurrent: types.boolean(),
|
|
3133
|
+
});
|
|
3134
|
+
|
|
3135
|
+
export function visitProfilePositionFromJSON(
|
|
3136
|
+
jsonString: string,
|
|
3137
|
+
): SafeParseResult<VisitProfilePosition, SDKValidationError> {
|
|
3138
|
+
return safeParse(
|
|
3139
|
+
jsonString,
|
|
3140
|
+
(x) => VisitProfilePosition$inboundSchema.parse(JSON.parse(x)),
|
|
3141
|
+
`Failed to parse 'VisitProfilePosition' from JSON`,
|
|
3142
|
+
);
|
|
3143
|
+
}
|
|
3144
|
+
|
|
3145
|
+
/** @internal */
|
|
3146
|
+
export const VisitProfileEducationStartDate$inboundSchema: z.ZodMiniType<
|
|
3147
|
+
VisitProfileEducationStartDate,
|
|
3148
|
+
unknown
|
|
3149
|
+
> = z.object({
|
|
3150
|
+
month: types.nullable(types.number()),
|
|
3151
|
+
year: types.number(),
|
|
3152
|
+
});
|
|
3153
|
+
|
|
3154
|
+
export function visitProfileEducationStartDateFromJSON(
|
|
3155
|
+
jsonString: string,
|
|
3156
|
+
): SafeParseResult<VisitProfileEducationStartDate, SDKValidationError> {
|
|
3157
|
+
return safeParse(
|
|
3158
|
+
jsonString,
|
|
3159
|
+
(x) => VisitProfileEducationStartDate$inboundSchema.parse(JSON.parse(x)),
|
|
3160
|
+
`Failed to parse 'VisitProfileEducationStartDate' from JSON`,
|
|
3161
|
+
);
|
|
3162
|
+
}
|
|
3163
|
+
|
|
3164
|
+
/** @internal */
|
|
3165
|
+
export const VisitProfileEducationEndDate$inboundSchema: z.ZodMiniType<
|
|
3166
|
+
VisitProfileEducationEndDate,
|
|
3167
|
+
unknown
|
|
3168
|
+
> = z.object({
|
|
3169
|
+
month: types.nullable(types.number()),
|
|
3170
|
+
year: types.number(),
|
|
3171
|
+
});
|
|
3172
|
+
|
|
3173
|
+
export function visitProfileEducationEndDateFromJSON(
|
|
3174
|
+
jsonString: string,
|
|
3175
|
+
): SafeParseResult<VisitProfileEducationEndDate, SDKValidationError> {
|
|
3176
|
+
return safeParse(
|
|
3177
|
+
jsonString,
|
|
3178
|
+
(x) => VisitProfileEducationEndDate$inboundSchema.parse(JSON.parse(x)),
|
|
3179
|
+
`Failed to parse 'VisitProfileEducationEndDate' from JSON`,
|
|
3180
|
+
);
|
|
3181
|
+
}
|
|
3182
|
+
|
|
3183
|
+
/** @internal */
|
|
3184
|
+
export const VisitProfileEducation$inboundSchema: z.ZodMiniType<
|
|
3185
|
+
VisitProfileEducation,
|
|
3186
|
+
unknown
|
|
3187
|
+
> = z.object({
|
|
3188
|
+
schoolName: types.nullable(types.string()),
|
|
3189
|
+
degreeName: types.nullable(types.string()),
|
|
3190
|
+
fieldOfStudy: types.nullable(types.string()),
|
|
3191
|
+
schoolUrl: types.nullable(types.string()),
|
|
3192
|
+
schoolLogo: types.nullable(types.string()),
|
|
3193
|
+
startDate: types.nullable(
|
|
3194
|
+
z.lazy(() => VisitProfileEducationStartDate$inboundSchema),
|
|
3195
|
+
),
|
|
3196
|
+
endDate: types.nullable(
|
|
3197
|
+
z.lazy(() => VisitProfileEducationEndDate$inboundSchema),
|
|
3198
|
+
),
|
|
3199
|
+
});
|
|
3200
|
+
|
|
3201
|
+
export function visitProfileEducationFromJSON(
|
|
3202
|
+
jsonString: string,
|
|
3203
|
+
): SafeParseResult<VisitProfileEducation, SDKValidationError> {
|
|
3204
|
+
return safeParse(
|
|
3205
|
+
jsonString,
|
|
3206
|
+
(x) => VisitProfileEducation$inboundSchema.parse(JSON.parse(x)),
|
|
3207
|
+
`Failed to parse 'VisitProfileEducation' from JSON`,
|
|
3208
|
+
);
|
|
3209
|
+
}
|
|
3210
|
+
|
|
3211
|
+
/** @internal */
|
|
3212
|
+
export const VisitProfileLastPostType$inboundSchema: z.ZodMiniType<
|
|
3213
|
+
VisitProfileLastPostType,
|
|
3214
|
+
unknown
|
|
3215
|
+
> = openEnums.inboundSchema(VisitProfileLastPostType);
|
|
3216
|
+
|
|
3217
|
+
/** @internal */
|
|
3218
|
+
export const VisitProfileMediaType$inboundSchema: z.ZodMiniType<
|
|
3219
|
+
VisitProfileMediaType,
|
|
3220
|
+
unknown
|
|
3221
|
+
> = openEnums.inboundSchema(VisitProfileMediaType);
|
|
3222
|
+
|
|
3223
|
+
/** @internal */
|
|
3224
|
+
export const VisitProfileMedia$inboundSchema: z.ZodMiniType<
|
|
3225
|
+
VisitProfileMedia,
|
|
3226
|
+
unknown
|
|
3227
|
+
> = z.object({
|
|
3228
|
+
type: VisitProfileMediaType$inboundSchema,
|
|
3229
|
+
urls: z.array(types.string()),
|
|
3230
|
+
title: types.optional(types.string()),
|
|
3231
|
+
thumbnailUrl: types.optional(types.string()),
|
|
3232
|
+
});
|
|
3233
|
+
|
|
3234
|
+
export function visitProfileMediaFromJSON(
|
|
3235
|
+
jsonString: string,
|
|
3236
|
+
): SafeParseResult<VisitProfileMedia, SDKValidationError> {
|
|
3237
|
+
return safeParse(
|
|
3238
|
+
jsonString,
|
|
3239
|
+
(x) => VisitProfileMedia$inboundSchema.parse(JSON.parse(x)),
|
|
3240
|
+
`Failed to parse 'VisitProfileMedia' from JSON`,
|
|
3241
|
+
);
|
|
3242
|
+
}
|
|
3243
|
+
|
|
3244
|
+
/** @internal */
|
|
3245
|
+
export const VisitProfileLastPost$inboundSchema: z.ZodMiniType<
|
|
3246
|
+
VisitProfileLastPost,
|
|
3247
|
+
unknown
|
|
3248
|
+
> = z.object({
|
|
3249
|
+
postUrl: types.string(),
|
|
3250
|
+
text: types.string(),
|
|
3251
|
+
date: types.number(),
|
|
3252
|
+
likesCount: types.number(),
|
|
3253
|
+
commentsCount: types.number(),
|
|
3254
|
+
sharesCount: types.number(),
|
|
3255
|
+
postUrn: types.string(),
|
|
3256
|
+
postId: types.string(),
|
|
3257
|
+
type: VisitProfileLastPostType$inboundSchema,
|
|
3258
|
+
media: types.optional(z.lazy(() => VisitProfileMedia$inboundSchema)),
|
|
3259
|
+
});
|
|
3260
|
+
|
|
3261
|
+
export function visitProfileLastPostFromJSON(
|
|
3262
|
+
jsonString: string,
|
|
3263
|
+
): SafeParseResult<VisitProfileLastPost, SDKValidationError> {
|
|
3264
|
+
return safeParse(
|
|
3265
|
+
jsonString,
|
|
3266
|
+
(x) => VisitProfileLastPost$inboundSchema.parse(JSON.parse(x)),
|
|
3267
|
+
`Failed to parse 'VisitProfileLastPost' from JSON`,
|
|
3268
|
+
);
|
|
3269
|
+
}
|
|
3270
|
+
|
|
3271
|
+
/** @internal */
|
|
3272
|
+
export const LastCommentType$inboundSchema: z.ZodMiniType<
|
|
3273
|
+
LastCommentType,
|
|
3274
|
+
unknown
|
|
3275
|
+
> = openEnums.inboundSchema(LastCommentType);
|
|
3276
|
+
|
|
3277
|
+
/** @internal */
|
|
3278
|
+
export const LastComment$inboundSchema: z.ZodMiniType<LastComment, unknown> = z
|
|
3279
|
+
.object({
|
|
3280
|
+
type: LastCommentType$inboundSchema,
|
|
3281
|
+
activityUrn: types.string(),
|
|
3282
|
+
text: types.nullable(types.string()),
|
|
3283
|
+
reactionType: types.nullable(types.string()),
|
|
3284
|
+
targetPostUrn: types.nullable(types.string()),
|
|
3285
|
+
targetPostText: types.nullable(types.string()),
|
|
3286
|
+
targetPostAuthor: types.nullable(types.string()),
|
|
3287
|
+
timestamp: types.nullable(types.number()),
|
|
3288
|
+
actorName: types.nullable(types.string()),
|
|
3289
|
+
actorUrn: types.nullable(types.string()),
|
|
3290
|
+
});
|
|
3291
|
+
|
|
3292
|
+
export function lastCommentFromJSON(
|
|
3293
|
+
jsonString: string,
|
|
3294
|
+
): SafeParseResult<LastComment, SDKValidationError> {
|
|
3295
|
+
return safeParse(
|
|
3296
|
+
jsonString,
|
|
3297
|
+
(x) => LastComment$inboundSchema.parse(JSON.parse(x)),
|
|
3298
|
+
`Failed to parse 'LastComment' from JSON`,
|
|
3299
|
+
);
|
|
3300
|
+
}
|
|
3301
|
+
|
|
3302
|
+
/** @internal */
|
|
3303
|
+
export const VisitProfileResponse$inboundSchema: z.ZodMiniType<
|
|
3304
|
+
VisitProfileResponse,
|
|
3305
|
+
unknown
|
|
3306
|
+
> = z.object({
|
|
3307
|
+
success: types.literal(true),
|
|
3308
|
+
firstName: types.string(),
|
|
3309
|
+
lastName: types.string(),
|
|
3310
|
+
headline: types.nullable(types.string()),
|
|
3311
|
+
summary: types.nullable(types.string()),
|
|
3312
|
+
publicIdentifier: types.string(),
|
|
3313
|
+
profileUrl: types.nullable(types.string()),
|
|
3314
|
+
profileUrn: types.nullable(types.string()),
|
|
3315
|
+
imageUrl: types.nullable(types.string()),
|
|
3316
|
+
email: types.nullable(types.string()),
|
|
3317
|
+
location: types.nullable(types.string()),
|
|
3318
|
+
company: types.nullable(types.string()),
|
|
3319
|
+
position: types.nullable(types.string()),
|
|
3320
|
+
memberDistance: types.nullable(types.number()),
|
|
3321
|
+
connectionsCount: types.nullable(types.number()),
|
|
3322
|
+
isVerified: types.boolean(),
|
|
3323
|
+
pendingConnection: PendingConnection$inboundSchema,
|
|
3324
|
+
positions: types.optional(
|
|
3325
|
+
z.array(z.lazy(() => VisitProfilePosition$inboundSchema)),
|
|
3326
|
+
),
|
|
3327
|
+
educations: types.optional(
|
|
3328
|
+
z.array(z.lazy(() => VisitProfileEducation$inboundSchema)),
|
|
3329
|
+
),
|
|
3330
|
+
lastPosts: types.optional(
|
|
3331
|
+
z.array(z.lazy(() => VisitProfileLastPost$inboundSchema)),
|
|
3332
|
+
),
|
|
3333
|
+
lastComments: types.optional(
|
|
3334
|
+
z.array(z.lazy(() => LastComment$inboundSchema)),
|
|
3335
|
+
),
|
|
3336
|
+
cached: types.boolean(),
|
|
3337
|
+
creditsUsed: types.number(),
|
|
3338
|
+
retryAfter: types.number(),
|
|
3339
|
+
});
|
|
3340
|
+
|
|
3341
|
+
export function visitProfileResponseFromJSON(
|
|
3342
|
+
jsonString: string,
|
|
3343
|
+
): SafeParseResult<VisitProfileResponse, SDKValidationError> {
|
|
3344
|
+
return safeParse(
|
|
3345
|
+
jsonString,
|
|
3346
|
+
(x) => VisitProfileResponse$inboundSchema.parse(JSON.parse(x)),
|
|
3347
|
+
`Failed to parse 'VisitProfileResponse' from JSON`,
|
|
3348
|
+
);
|
|
3349
|
+
}
|
|
3350
|
+
|
|
3351
|
+
/** @internal */
|
|
3352
|
+
export type BulkVisitProfileRequest$Outbound = {
|
|
3353
|
+
profiles: Array<string>;
|
|
3354
|
+
campaignSlug?: string | undefined;
|
|
3355
|
+
includePosts?: boolean | undefined;
|
|
3356
|
+
includeComments?: boolean | undefined;
|
|
3357
|
+
includeAbout?: boolean | undefined;
|
|
3358
|
+
};
|
|
3359
|
+
|
|
3360
|
+
/** @internal */
|
|
3361
|
+
export const BulkVisitProfileRequest$outboundSchema: z.ZodMiniType<
|
|
3362
|
+
BulkVisitProfileRequest$Outbound,
|
|
3363
|
+
BulkVisitProfileRequest
|
|
3364
|
+
> = z.object({
|
|
3365
|
+
profiles: z.array(z.string()),
|
|
3366
|
+
campaignSlug: z.optional(z.string()),
|
|
3367
|
+
includePosts: z.optional(z.boolean()),
|
|
3368
|
+
includeComments: z.optional(z.boolean()),
|
|
3369
|
+
includeAbout: z.optional(z.boolean()),
|
|
3370
|
+
});
|
|
3371
|
+
|
|
3372
|
+
export function bulkVisitProfileRequestToJSON(
|
|
3373
|
+
bulkVisitProfileRequest: BulkVisitProfileRequest,
|
|
3374
|
+
): string {
|
|
3375
|
+
return JSON.stringify(
|
|
3376
|
+
BulkVisitProfileRequest$outboundSchema.parse(bulkVisitProfileRequest),
|
|
3377
|
+
);
|
|
3378
|
+
}
|
|
3379
|
+
|
|
3380
|
+
/** @internal */
|
|
3381
|
+
export const BulkVisitProfileResponse$inboundSchema: z.ZodMiniType<
|
|
3382
|
+
BulkVisitProfileResponse,
|
|
3383
|
+
unknown
|
|
3384
|
+
> = z.object({
|
|
3385
|
+
accepted: types.literal(true),
|
|
3386
|
+
batchId: types.string(),
|
|
3387
|
+
profileCount: types.number(),
|
|
3388
|
+
alreadyCached: types.number(),
|
|
3389
|
+
willVisit: types.number(),
|
|
3390
|
+
estimatedMinutes: types.number(),
|
|
3391
|
+
});
|
|
3392
|
+
|
|
3393
|
+
export function bulkVisitProfileResponseFromJSON(
|
|
3394
|
+
jsonString: string,
|
|
3395
|
+
): SafeParseResult<BulkVisitProfileResponse, SDKValidationError> {
|
|
3396
|
+
return safeParse(
|
|
3397
|
+
jsonString,
|
|
3398
|
+
(x) => BulkVisitProfileResponse$inboundSchema.parse(JSON.parse(x)),
|
|
3399
|
+
`Failed to parse 'BulkVisitProfileResponse' from JSON`,
|
|
3400
|
+
);
|
|
3401
|
+
}
|
|
3402
|
+
|
|
3403
|
+
/** @internal */
|
|
3404
|
+
export type BulkVisitBatchStatusRequest$Outbound = {
|
|
3405
|
+
batchId: string;
|
|
3406
|
+
};
|
|
3407
|
+
|
|
3408
|
+
/** @internal */
|
|
3409
|
+
export const BulkVisitBatchStatusRequest$outboundSchema: z.ZodMiniType<
|
|
3410
|
+
BulkVisitBatchStatusRequest$Outbound,
|
|
3411
|
+
BulkVisitBatchStatusRequest
|
|
3412
|
+
> = z.object({
|
|
3413
|
+
batchId: z.string(),
|
|
3414
|
+
});
|
|
3415
|
+
|
|
3416
|
+
export function bulkVisitBatchStatusRequestToJSON(
|
|
3417
|
+
bulkVisitBatchStatusRequest: BulkVisitBatchStatusRequest,
|
|
3418
|
+
): string {
|
|
3419
|
+
return JSON.stringify(
|
|
3420
|
+
BulkVisitBatchStatusRequest$outboundSchema.parse(
|
|
3421
|
+
bulkVisitBatchStatusRequest,
|
|
3422
|
+
),
|
|
3423
|
+
);
|
|
3424
|
+
}
|
|
3425
|
+
|
|
3426
|
+
/** @internal */
|
|
3427
|
+
export const BulkVisitBatchStatusStatus$inboundSchema: z.ZodMiniType<
|
|
3428
|
+
BulkVisitBatchStatusStatus,
|
|
3429
|
+
unknown
|
|
3430
|
+
> = openEnums.inboundSchema(BulkVisitBatchStatusStatus);
|
|
3431
|
+
|
|
3432
|
+
/** @internal */
|
|
3433
|
+
export const Progress$inboundSchema: z.ZodMiniType<Progress, unknown> = z
|
|
3434
|
+
.object({
|
|
3435
|
+
total: types.number(),
|
|
3436
|
+
visited: types.number(),
|
|
3437
|
+
cached: types.number(),
|
|
3438
|
+
failed: types.number(),
|
|
3439
|
+
skipped: types.number(),
|
|
3440
|
+
pending: types.number(),
|
|
3441
|
+
});
|
|
3442
|
+
|
|
3443
|
+
export function progressFromJSON(
|
|
3444
|
+
jsonString: string,
|
|
3445
|
+
): SafeParseResult<Progress, SDKValidationError> {
|
|
3446
|
+
return safeParse(
|
|
3447
|
+
jsonString,
|
|
3448
|
+
(x) => Progress$inboundSchema.parse(JSON.parse(x)),
|
|
3449
|
+
`Failed to parse 'Progress' from JSON`,
|
|
3450
|
+
);
|
|
3451
|
+
}
|
|
3452
|
+
|
|
3453
|
+
/** @internal */
|
|
3454
|
+
export const ResultStatus$inboundSchema: z.ZodMiniType<ResultStatus, unknown> =
|
|
3455
|
+
openEnums.inboundSchema(ResultStatus);
|
|
3456
|
+
|
|
3457
|
+
/** @internal */
|
|
3458
|
+
export const Result$inboundSchema: z.ZodMiniType<Result, unknown> = z.object({
|
|
3459
|
+
profile: types.string(),
|
|
3460
|
+
status: ResultStatus$inboundSchema,
|
|
3461
|
+
contactId: z.optional(z.nullable(types.string())),
|
|
3462
|
+
error: z.optional(z.nullable(types.string())),
|
|
3463
|
+
});
|
|
3464
|
+
|
|
3465
|
+
export function resultFromJSON(
|
|
3466
|
+
jsonString: string,
|
|
3467
|
+
): SafeParseResult<Result, SDKValidationError> {
|
|
3468
|
+
return safeParse(
|
|
3469
|
+
jsonString,
|
|
3470
|
+
(x) => Result$inboundSchema.parse(JSON.parse(x)),
|
|
3471
|
+
`Failed to parse 'Result' from JSON`,
|
|
3472
|
+
);
|
|
3473
|
+
}
|
|
3474
|
+
|
|
3475
|
+
/** @internal */
|
|
3476
|
+
export const BulkVisitBatchStatusResponse$inboundSchema: z.ZodMiniType<
|
|
3477
|
+
BulkVisitBatchStatusResponse,
|
|
3478
|
+
unknown
|
|
3479
|
+
> = z.object({
|
|
3480
|
+
batchId: types.string(),
|
|
3481
|
+
status: BulkVisitBatchStatusStatus$inboundSchema,
|
|
3482
|
+
progress: z.lazy(() => Progress$inboundSchema),
|
|
3483
|
+
creditsUsed: types.number(),
|
|
3484
|
+
failureReason: z.optional(z.nullable(types.string())),
|
|
3485
|
+
results: types.optional(z.array(z.lazy(() => Result$inboundSchema))),
|
|
3486
|
+
});
|
|
3487
|
+
|
|
3488
|
+
export function bulkVisitBatchStatusResponseFromJSON(
|
|
3489
|
+
jsonString: string,
|
|
3490
|
+
): SafeParseResult<BulkVisitBatchStatusResponse, SDKValidationError> {
|
|
3491
|
+
return safeParse(
|
|
3492
|
+
jsonString,
|
|
3493
|
+
(x) => BulkVisitBatchStatusResponse$inboundSchema.parse(JSON.parse(x)),
|
|
3494
|
+
`Failed to parse 'BulkVisitBatchStatusResponse' from JSON`,
|
|
3495
|
+
);
|
|
3496
|
+
}
|
|
3497
|
+
|
|
3498
|
+
/** @internal */
|
|
3499
|
+
export type VisitCompanyRequest$Outbound = {
|
|
3500
|
+
companyUrl: string;
|
|
3501
|
+
includeWorkplacePolicy?: boolean | undefined;
|
|
3502
|
+
};
|
|
3503
|
+
|
|
3504
|
+
/** @internal */
|
|
3505
|
+
export const VisitCompanyRequest$outboundSchema: z.ZodMiniType<
|
|
3506
|
+
VisitCompanyRequest$Outbound,
|
|
3507
|
+
VisitCompanyRequest
|
|
3508
|
+
> = z.object({
|
|
3509
|
+
companyUrl: z.string(),
|
|
3510
|
+
includeWorkplacePolicy: z.optional(z.boolean()),
|
|
3511
|
+
});
|
|
3512
|
+
|
|
3513
|
+
export function visitCompanyRequestToJSON(
|
|
3514
|
+
visitCompanyRequest: VisitCompanyRequest,
|
|
3515
|
+
): string {
|
|
3516
|
+
return JSON.stringify(
|
|
3517
|
+
VisitCompanyRequest$outboundSchema.parse(visitCompanyRequest),
|
|
3518
|
+
);
|
|
3519
|
+
}
|
|
3520
|
+
|
|
3521
|
+
/** @internal */
|
|
3522
|
+
export const EmployeeCountRange$inboundSchema: z.ZodMiniType<
|
|
3523
|
+
EmployeeCountRange,
|
|
3524
|
+
unknown
|
|
3525
|
+
> = z.object({
|
|
3526
|
+
start: types.number(),
|
|
3527
|
+
end: types.nullable(types.number()),
|
|
3528
|
+
});
|
|
3529
|
+
|
|
3530
|
+
export function employeeCountRangeFromJSON(
|
|
3531
|
+
jsonString: string,
|
|
3532
|
+
): SafeParseResult<EmployeeCountRange, SDKValidationError> {
|
|
3533
|
+
return safeParse(
|
|
3534
|
+
jsonString,
|
|
3535
|
+
(x) => EmployeeCountRange$inboundSchema.parse(JSON.parse(x)),
|
|
3536
|
+
`Failed to parse 'EmployeeCountRange' from JSON`,
|
|
3537
|
+
);
|
|
3538
|
+
}
|
|
3539
|
+
|
|
3540
|
+
/** @internal */
|
|
3541
|
+
export const VisitCompanyHeadquarter$inboundSchema: z.ZodMiniType<
|
|
3542
|
+
VisitCompanyHeadquarter,
|
|
3543
|
+
unknown
|
|
3544
|
+
> = z.object({
|
|
3545
|
+
country: types.nullable(types.string()),
|
|
3546
|
+
geographicArea: types.nullable(types.string()),
|
|
3547
|
+
city: types.nullable(types.string()),
|
|
3548
|
+
postalCode: types.nullable(types.string()),
|
|
3549
|
+
line1: types.nullable(types.string()),
|
|
3550
|
+
line2: types.nullable(types.string()),
|
|
3551
|
+
});
|
|
3552
|
+
|
|
3553
|
+
export function visitCompanyHeadquarterFromJSON(
|
|
3554
|
+
jsonString: string,
|
|
3555
|
+
): SafeParseResult<VisitCompanyHeadquarter, SDKValidationError> {
|
|
3556
|
+
return safeParse(
|
|
3557
|
+
jsonString,
|
|
3558
|
+
(x) => VisitCompanyHeadquarter$inboundSchema.parse(JSON.parse(x)),
|
|
3559
|
+
`Failed to parse 'VisitCompanyHeadquarter' from JSON`,
|
|
3560
|
+
);
|
|
3561
|
+
}
|
|
3562
|
+
|
|
3563
|
+
/** @internal */
|
|
3564
|
+
export const VisitCompanyFoundedOn$inboundSchema: z.ZodMiniType<
|
|
3565
|
+
VisitCompanyFoundedOn,
|
|
3566
|
+
unknown
|
|
3567
|
+
> = z.object({
|
|
3568
|
+
year: types.number(),
|
|
3569
|
+
});
|
|
3570
|
+
|
|
3571
|
+
export function visitCompanyFoundedOnFromJSON(
|
|
3572
|
+
jsonString: string,
|
|
3573
|
+
): SafeParseResult<VisitCompanyFoundedOn, SDKValidationError> {
|
|
3574
|
+
return safeParse(
|
|
3575
|
+
jsonString,
|
|
3576
|
+
(x) => VisitCompanyFoundedOn$inboundSchema.parse(JSON.parse(x)),
|
|
3577
|
+
`Failed to parse 'VisitCompanyFoundedOn' from JSON`,
|
|
3578
|
+
);
|
|
3579
|
+
}
|
|
3580
|
+
|
|
3581
|
+
/** @internal */
|
|
3582
|
+
export const CallToAction$inboundSchema: z.ZodMiniType<CallToAction, unknown> =
|
|
3583
|
+
z.object({
|
|
3584
|
+
type: types.string(),
|
|
3585
|
+
url: types.string(),
|
|
3586
|
+
});
|
|
3587
|
+
|
|
3588
|
+
export function callToActionFromJSON(
|
|
3589
|
+
jsonString: string,
|
|
3590
|
+
): SafeParseResult<CallToAction, SDKValidationError> {
|
|
3591
|
+
return safeParse(
|
|
3592
|
+
jsonString,
|
|
3593
|
+
(x) => CallToAction$inboundSchema.parse(JSON.parse(x)),
|
|
3594
|
+
`Failed to parse 'CallToAction' from JSON`,
|
|
3595
|
+
);
|
|
3596
|
+
}
|
|
3597
|
+
|
|
3598
|
+
/** @internal */
|
|
3599
|
+
export const AffiliatedCompany$inboundSchema: z.ZodMiniType<
|
|
3600
|
+
AffiliatedCompany,
|
|
3601
|
+
unknown
|
|
3602
|
+
> = z.object({
|
|
3603
|
+
id: types.string(),
|
|
3604
|
+
universalName: types.string(),
|
|
3605
|
+
name: types.string(),
|
|
3606
|
+
url: types.nullable(types.string()),
|
|
3607
|
+
logoUrl: types.nullable(types.string()),
|
|
3608
|
+
followerCount: types.nullable(types.number()),
|
|
3609
|
+
industry: types.nullable(types.string()),
|
|
3610
|
+
});
|
|
3611
|
+
|
|
3612
|
+
export function affiliatedCompanyFromJSON(
|
|
3613
|
+
jsonString: string,
|
|
3614
|
+
): SafeParseResult<AffiliatedCompany, SDKValidationError> {
|
|
3615
|
+
return safeParse(
|
|
3616
|
+
jsonString,
|
|
3617
|
+
(x) => AffiliatedCompany$inboundSchema.parse(JSON.parse(x)),
|
|
3618
|
+
`Failed to parse 'AffiliatedCompany' from JSON`,
|
|
3619
|
+
);
|
|
3620
|
+
}
|
|
3621
|
+
|
|
3622
|
+
/** @internal */
|
|
3623
|
+
export const SimilarCompany$inboundSchema: z.ZodMiniType<
|
|
3624
|
+
SimilarCompany,
|
|
3625
|
+
unknown
|
|
3626
|
+
> = z.object({
|
|
3627
|
+
id: types.string(),
|
|
3628
|
+
universalName: types.string(),
|
|
3629
|
+
name: types.string(),
|
|
3630
|
+
url: types.nullable(types.string()),
|
|
3631
|
+
logoUrl: types.nullable(types.string()),
|
|
3632
|
+
followerCount: types.nullable(types.number()),
|
|
3633
|
+
industry: types.nullable(types.string()),
|
|
3634
|
+
});
|
|
3635
|
+
|
|
3636
|
+
export function similarCompanyFromJSON(
|
|
3637
|
+
jsonString: string,
|
|
3638
|
+
): SafeParseResult<SimilarCompany, SDKValidationError> {
|
|
3639
|
+
return safeParse(
|
|
3640
|
+
jsonString,
|
|
3641
|
+
(x) => SimilarCompany$inboundSchema.parse(JSON.parse(x)),
|
|
3642
|
+
`Failed to parse 'SimilarCompany' from JSON`,
|
|
3643
|
+
);
|
|
3644
|
+
}
|
|
3645
|
+
|
|
3646
|
+
/** @internal */
|
|
3647
|
+
export const WorkplacePolicy$inboundSchema: z.ZodMiniType<
|
|
3648
|
+
WorkplacePolicy,
|
|
3649
|
+
unknown
|
|
3650
|
+
> = z.object({
|
|
3651
|
+
title: types.nullable(types.string()),
|
|
3652
|
+
description: types.nullable(types.string()),
|
|
3653
|
+
timeAtOnsite: types.nullable(types.string()),
|
|
3654
|
+
benefits: z.array(types.string()),
|
|
3655
|
+
});
|
|
3656
|
+
|
|
3657
|
+
export function workplacePolicyFromJSON(
|
|
3658
|
+
jsonString: string,
|
|
3659
|
+
): SafeParseResult<WorkplacePolicy, SDKValidationError> {
|
|
3660
|
+
return safeParse(
|
|
3661
|
+
jsonString,
|
|
3662
|
+
(x) => WorkplacePolicy$inboundSchema.parse(JSON.parse(x)),
|
|
3663
|
+
`Failed to parse 'WorkplacePolicy' from JSON`,
|
|
3664
|
+
);
|
|
3665
|
+
}
|
|
3666
|
+
|
|
3667
|
+
/** @internal */
|
|
3668
|
+
export const VisitCompanyResponse$inboundSchema: z.ZodMiniType<
|
|
3669
|
+
VisitCompanyResponse,
|
|
3670
|
+
unknown
|
|
3671
|
+
> = z.object({
|
|
3672
|
+
success: types.literal(true),
|
|
3673
|
+
id: types.string(),
|
|
3674
|
+
universalName: types.string(),
|
|
3675
|
+
name: types.string(),
|
|
3676
|
+
description: types.nullable(types.string()),
|
|
3677
|
+
url: types.string(),
|
|
3678
|
+
websiteUrl: types.nullable(types.string()),
|
|
3679
|
+
industry: types.nullable(types.string()),
|
|
3680
|
+
employeeCount: types.nullable(types.number()),
|
|
3681
|
+
employeeCountRange: types.nullable(
|
|
3682
|
+
z.lazy(() => EmployeeCountRange$inboundSchema),
|
|
3683
|
+
),
|
|
3684
|
+
headquarter: types.nullable(
|
|
3685
|
+
z.lazy(() => VisitCompanyHeadquarter$inboundSchema),
|
|
3686
|
+
),
|
|
3687
|
+
logoUrl: types.nullable(types.string()),
|
|
3688
|
+
coverImageUrl: types.nullable(types.string()),
|
|
3689
|
+
followerCount: types.nullable(types.number()),
|
|
3690
|
+
specialities: z.array(types.string()),
|
|
3691
|
+
tagline: types.nullable(types.string()),
|
|
3692
|
+
isVerified: types.boolean(),
|
|
3693
|
+
foundedOn: types.nullable(z.lazy(() => VisitCompanyFoundedOn$inboundSchema)),
|
|
3694
|
+
phone: types.nullable(types.string()),
|
|
3695
|
+
callToAction: types.nullable(z.lazy(() => CallToAction$inboundSchema)),
|
|
3696
|
+
hashtags: z.array(types.string()),
|
|
3697
|
+
affiliatedCompanies: z.array(z.lazy(() => AffiliatedCompany$inboundSchema)),
|
|
3698
|
+
similarCompanies: z.array(z.lazy(() => SimilarCompany$inboundSchema)),
|
|
3699
|
+
workplacePolicy: types.nullable(z.lazy(() => WorkplacePolicy$inboundSchema)),
|
|
3700
|
+
creditsUsed: types.number(),
|
|
3701
|
+
retryAfter: types.number(),
|
|
3702
|
+
});
|
|
3703
|
+
|
|
3704
|
+
export function visitCompanyResponseFromJSON(
|
|
3705
|
+
jsonString: string,
|
|
3706
|
+
): SafeParseResult<VisitCompanyResponse, SDKValidationError> {
|
|
3707
|
+
return safeParse(
|
|
3708
|
+
jsonString,
|
|
3709
|
+
(x) => VisitCompanyResponse$inboundSchema.parse(JSON.parse(x)),
|
|
3710
|
+
`Failed to parse 'VisitCompanyResponse' from JSON`,
|
|
3711
|
+
);
|
|
3712
|
+
}
|
|
3713
|
+
|
|
3714
|
+
/** @internal */
|
|
3715
|
+
export type ListSavedPostsRequest$Outbound = {
|
|
3716
|
+
start: number;
|
|
3717
|
+
count: number;
|
|
3718
|
+
};
|
|
3719
|
+
|
|
3720
|
+
/** @internal */
|
|
3721
|
+
export const ListSavedPostsRequest$outboundSchema: z.ZodMiniType<
|
|
3722
|
+
ListSavedPostsRequest$Outbound,
|
|
3723
|
+
ListSavedPostsRequest
|
|
3724
|
+
> = z.object({
|
|
3725
|
+
start: z._default(z.int(), 0),
|
|
3726
|
+
count: z._default(z.int(), 20),
|
|
3727
|
+
});
|
|
3728
|
+
|
|
3729
|
+
export function listSavedPostsRequestToJSON(
|
|
3730
|
+
listSavedPostsRequest: ListSavedPostsRequest,
|
|
3731
|
+
): string {
|
|
3732
|
+
return JSON.stringify(
|
|
3733
|
+
ListSavedPostsRequest$outboundSchema.parse(listSavedPostsRequest),
|
|
3734
|
+
);
|
|
3735
|
+
}
|
|
3736
|
+
|
|
3737
|
+
/** @internal */
|
|
3738
|
+
export const ListSavedPostsAuthor$inboundSchema: z.ZodMiniType<
|
|
3739
|
+
ListSavedPostsAuthor,
|
|
3740
|
+
unknown
|
|
3741
|
+
> = z.object({
|
|
3742
|
+
name: types.string(),
|
|
3743
|
+
profileUrl: types.nullable(types.string()),
|
|
3744
|
+
publicIdentifier: types.nullable(types.string()),
|
|
3745
|
+
profileUrn: types.nullable(types.string()),
|
|
3746
|
+
});
|
|
3747
|
+
|
|
3748
|
+
export function listSavedPostsAuthorFromJSON(
|
|
3749
|
+
jsonString: string,
|
|
3750
|
+
): SafeParseResult<ListSavedPostsAuthor, SDKValidationError> {
|
|
3751
|
+
return safeParse(
|
|
3752
|
+
jsonString,
|
|
3753
|
+
(x) => ListSavedPostsAuthor$inboundSchema.parse(JSON.parse(x)),
|
|
3754
|
+
`Failed to parse 'ListSavedPostsAuthor' from JSON`,
|
|
3755
|
+
);
|
|
3756
|
+
}
|
|
3757
|
+
|
|
3758
|
+
/** @internal */
|
|
3759
|
+
export const ListSavedPostsType$inboundSchema: z.ZodMiniType<
|
|
3760
|
+
ListSavedPostsType,
|
|
3761
|
+
unknown
|
|
3762
|
+
> = openEnums.inboundSchema(ListSavedPostsType);
|
|
3763
|
+
|
|
3764
|
+
/** @internal */
|
|
3765
|
+
export const ListSavedPostsMedia$inboundSchema: z.ZodMiniType<
|
|
3766
|
+
ListSavedPostsMedia,
|
|
3767
|
+
unknown
|
|
3768
|
+
> = z.object({
|
|
3769
|
+
type: ListSavedPostsType$inboundSchema,
|
|
3770
|
+
urls: z.array(types.string()),
|
|
3771
|
+
title: types.optional(types.string()),
|
|
3772
|
+
thumbnailUrl: types.optional(types.string()),
|
|
3773
|
+
});
|
|
3774
|
+
|
|
3775
|
+
export function listSavedPostsMediaFromJSON(
|
|
3776
|
+
jsonString: string,
|
|
3777
|
+
): SafeParseResult<ListSavedPostsMedia, SDKValidationError> {
|
|
3778
|
+
return safeParse(
|
|
3779
|
+
jsonString,
|
|
3780
|
+
(x) => ListSavedPostsMedia$inboundSchema.parse(JSON.parse(x)),
|
|
3781
|
+
`Failed to parse 'ListSavedPostsMedia' from JSON`,
|
|
3782
|
+
);
|
|
3783
|
+
}
|
|
3784
|
+
|
|
3785
|
+
/** @internal */
|
|
3786
|
+
export const ListSavedPostsPost$inboundSchema: z.ZodMiniType<
|
|
3787
|
+
ListSavedPostsPost,
|
|
3788
|
+
unknown
|
|
3789
|
+
> = z.object({
|
|
3790
|
+
postUrl: types.string(),
|
|
3791
|
+
postUrn: types.string(),
|
|
3792
|
+
postId: types.string(),
|
|
3793
|
+
text: types.string(),
|
|
3794
|
+
date: types.number(),
|
|
3795
|
+
likesCount: types.number(),
|
|
3796
|
+
commentsCount: types.number(),
|
|
3797
|
+
sharesCount: types.number(),
|
|
3798
|
+
author: z.lazy(() => ListSavedPostsAuthor$inboundSchema),
|
|
3799
|
+
media: types.optional(z.lazy(() => ListSavedPostsMedia$inboundSchema)),
|
|
3800
|
+
});
|
|
3801
|
+
|
|
3802
|
+
export function listSavedPostsPostFromJSON(
|
|
3803
|
+
jsonString: string,
|
|
3804
|
+
): SafeParseResult<ListSavedPostsPost, SDKValidationError> {
|
|
3805
|
+
return safeParse(
|
|
3806
|
+
jsonString,
|
|
3807
|
+
(x) => ListSavedPostsPost$inboundSchema.parse(JSON.parse(x)),
|
|
3808
|
+
`Failed to parse 'ListSavedPostsPost' from JSON`,
|
|
3809
|
+
);
|
|
3810
|
+
}
|
|
3811
|
+
|
|
3812
|
+
/** @internal */
|
|
3813
|
+
export const ListSavedPostsResponse$inboundSchema: z.ZodMiniType<
|
|
3814
|
+
ListSavedPostsResponse,
|
|
3815
|
+
unknown
|
|
3816
|
+
> = z.object({
|
|
3817
|
+
success: types.literal(true),
|
|
3818
|
+
posts: z.array(z.lazy(() => ListSavedPostsPost$inboundSchema)),
|
|
3819
|
+
total: types.nullable(types.number()),
|
|
3820
|
+
hasMore: types.boolean(),
|
|
3821
|
+
creditsUsed: types.number(),
|
|
3822
|
+
retryAfter: types.number(),
|
|
3823
|
+
});
|
|
3824
|
+
|
|
3825
|
+
export function listSavedPostsResponseFromJSON(
|
|
3826
|
+
jsonString: string,
|
|
3827
|
+
): SafeParseResult<ListSavedPostsResponse, SDKValidationError> {
|
|
3828
|
+
return safeParse(
|
|
3829
|
+
jsonString,
|
|
3830
|
+
(x) => ListSavedPostsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
3831
|
+
`Failed to parse 'ListSavedPostsResponse' from JSON`,
|
|
3832
|
+
);
|
|
3833
|
+
}
|
|
3834
|
+
|
|
3835
|
+
/** @internal */
|
|
3836
|
+
export const SortOrder$outboundSchema: z.ZodMiniEnum<typeof SortOrder> = z.enum(
|
|
3837
|
+
SortOrder,
|
|
3838
|
+
);
|
|
3839
|
+
|
|
3840
|
+
/** @internal */
|
|
3841
|
+
export type GetFeedRequest$Outbound = {
|
|
3842
|
+
count: number;
|
|
3843
|
+
sortOrder: string;
|
|
3844
|
+
};
|
|
3845
|
+
|
|
3846
|
+
/** @internal */
|
|
3847
|
+
export const GetFeedRequest$outboundSchema: z.ZodMiniType<
|
|
3848
|
+
GetFeedRequest$Outbound,
|
|
3849
|
+
GetFeedRequest
|
|
3850
|
+
> = z.object({
|
|
3851
|
+
count: z._default(z.int(), 20),
|
|
3852
|
+
sortOrder: z._default(SortOrder$outboundSchema, "RELEVANCE"),
|
|
3853
|
+
});
|
|
3854
|
+
|
|
3855
|
+
export function getFeedRequestToJSON(getFeedRequest: GetFeedRequest): string {
|
|
3856
|
+
return JSON.stringify(GetFeedRequest$outboundSchema.parse(getFeedRequest));
|
|
3857
|
+
}
|
|
3858
|
+
|
|
3859
|
+
/** @internal */
|
|
3860
|
+
export const GetFeedType$inboundSchema: z.ZodMiniType<GetFeedType, unknown> =
|
|
3861
|
+
openEnums.inboundSchema(GetFeedType);
|
|
3862
|
+
|
|
3863
|
+
/** @internal */
|
|
3864
|
+
export const GetFeedMediaType$inboundSchema: z.ZodMiniType<
|
|
3865
|
+
GetFeedMediaType,
|
|
3866
|
+
unknown
|
|
3867
|
+
> = openEnums.inboundSchema(GetFeedMediaType);
|
|
3868
|
+
|
|
3869
|
+
/** @internal */
|
|
3870
|
+
export const GetFeedMedia$inboundSchema: z.ZodMiniType<GetFeedMedia, unknown> =
|
|
3871
|
+
z.object({
|
|
3872
|
+
type: GetFeedMediaType$inboundSchema,
|
|
3873
|
+
urls: z.array(types.string()),
|
|
3874
|
+
title: types.optional(types.string()),
|
|
3875
|
+
thumbnailUrl: types.optional(types.string()),
|
|
3876
|
+
});
|
|
3877
|
+
|
|
3878
|
+
export function getFeedMediaFromJSON(
|
|
3879
|
+
jsonString: string,
|
|
3880
|
+
): SafeParseResult<GetFeedMedia, SDKValidationError> {
|
|
3881
|
+
return safeParse(
|
|
3882
|
+
jsonString,
|
|
3883
|
+
(x) => GetFeedMedia$inboundSchema.parse(JSON.parse(x)),
|
|
3884
|
+
`Failed to parse 'GetFeedMedia' from JSON`,
|
|
3885
|
+
);
|
|
3886
|
+
}
|
|
3887
|
+
|
|
3888
|
+
/** @internal */
|
|
3889
|
+
export const GetFeedPost$inboundSchema: z.ZodMiniType<GetFeedPost, unknown> = z
|
|
3890
|
+
.object({
|
|
3891
|
+
postUrl: types.string(),
|
|
3892
|
+
text: types.string(),
|
|
3893
|
+
date: types.number(),
|
|
3894
|
+
likesCount: types.number(),
|
|
3895
|
+
commentsCount: types.number(),
|
|
3896
|
+
sharesCount: types.number(),
|
|
3897
|
+
postUrn: types.string(),
|
|
3898
|
+
postId: types.string(),
|
|
3899
|
+
type: GetFeedType$inboundSchema,
|
|
3900
|
+
media: types.optional(z.lazy(() => GetFeedMedia$inboundSchema)),
|
|
3901
|
+
});
|
|
3902
|
+
|
|
3903
|
+
export function getFeedPostFromJSON(
|
|
3904
|
+
jsonString: string,
|
|
3905
|
+
): SafeParseResult<GetFeedPost, SDKValidationError> {
|
|
3906
|
+
return safeParse(
|
|
3907
|
+
jsonString,
|
|
3908
|
+
(x) => GetFeedPost$inboundSchema.parse(JSON.parse(x)),
|
|
3909
|
+
`Failed to parse 'GetFeedPost' from JSON`,
|
|
3910
|
+
);
|
|
3911
|
+
}
|
|
3912
|
+
|
|
3913
|
+
/** @internal */
|
|
3914
|
+
export const GetFeedResponse$inboundSchema: z.ZodMiniType<
|
|
3915
|
+
GetFeedResponse,
|
|
3916
|
+
unknown
|
|
3917
|
+
> = z.object({
|
|
3918
|
+
success: types.literal(true),
|
|
3919
|
+
posts: z.array(z.lazy(() => GetFeedPost$inboundSchema)),
|
|
3920
|
+
creditsUsed: types.number(),
|
|
3921
|
+
retryAfter: types.number(),
|
|
3922
|
+
});
|
|
3923
|
+
|
|
3924
|
+
export function getFeedResponseFromJSON(
|
|
3925
|
+
jsonString: string,
|
|
3926
|
+
): SafeParseResult<GetFeedResponse, SDKValidationError> {
|
|
3927
|
+
return safeParse(
|
|
3928
|
+
jsonString,
|
|
3929
|
+
(x) => GetFeedResponse$inboundSchema.parse(JSON.parse(x)),
|
|
3930
|
+
`Failed to parse 'GetFeedResponse' from JSON`,
|
|
3931
|
+
);
|
|
3932
|
+
}
|
|
3933
|
+
|
|
3934
|
+
/** @internal */
|
|
3935
|
+
export type CollectHashtagPostsRequest$Outbound = {
|
|
3936
|
+
hashtag: string;
|
|
3937
|
+
start: number;
|
|
3938
|
+
count: number;
|
|
3939
|
+
};
|
|
3940
|
+
|
|
3941
|
+
/** @internal */
|
|
3942
|
+
export const CollectHashtagPostsRequest$outboundSchema: z.ZodMiniType<
|
|
3943
|
+
CollectHashtagPostsRequest$Outbound,
|
|
3944
|
+
CollectHashtagPostsRequest
|
|
3945
|
+
> = z.object({
|
|
3946
|
+
hashtag: z.string(),
|
|
3947
|
+
start: z._default(z.int(), 0),
|
|
3948
|
+
count: z._default(z.int(), 20),
|
|
3949
|
+
});
|
|
3950
|
+
|
|
3951
|
+
export function collectHashtagPostsRequestToJSON(
|
|
3952
|
+
collectHashtagPostsRequest: CollectHashtagPostsRequest,
|
|
3953
|
+
): string {
|
|
3954
|
+
return JSON.stringify(
|
|
3955
|
+
CollectHashtagPostsRequest$outboundSchema.parse(collectHashtagPostsRequest),
|
|
3956
|
+
);
|
|
3957
|
+
}
|
|
3958
|
+
|
|
3959
|
+
/** @internal */
|
|
3960
|
+
export const CollectHashtagPostsAuthor$inboundSchema: z.ZodMiniType<
|
|
3961
|
+
CollectHashtagPostsAuthor,
|
|
3962
|
+
unknown
|
|
3963
|
+
> = z.object({
|
|
3964
|
+
name: types.string(),
|
|
3965
|
+
profileUrl: types.nullable(types.string()),
|
|
3966
|
+
publicIdentifier: types.nullable(types.string()),
|
|
3967
|
+
profileUrn: types.nullable(types.string()),
|
|
3968
|
+
});
|
|
3969
|
+
|
|
3970
|
+
export function collectHashtagPostsAuthorFromJSON(
|
|
3971
|
+
jsonString: string,
|
|
3972
|
+
): SafeParseResult<CollectHashtagPostsAuthor, SDKValidationError> {
|
|
3973
|
+
return safeParse(
|
|
3974
|
+
jsonString,
|
|
3975
|
+
(x) => CollectHashtagPostsAuthor$inboundSchema.parse(JSON.parse(x)),
|
|
3976
|
+
`Failed to parse 'CollectHashtagPostsAuthor' from JSON`,
|
|
3977
|
+
);
|
|
3978
|
+
}
|
|
3979
|
+
|
|
3980
|
+
/** @internal */
|
|
3981
|
+
export const CollectHashtagPostsType$inboundSchema: z.ZodMiniType<
|
|
3982
|
+
CollectHashtagPostsType,
|
|
3983
|
+
unknown
|
|
3984
|
+
> = openEnums.inboundSchema(CollectHashtagPostsType);
|
|
3985
|
+
|
|
3986
|
+
/** @internal */
|
|
3987
|
+
export const CollectHashtagPostsMedia$inboundSchema: z.ZodMiniType<
|
|
3988
|
+
CollectHashtagPostsMedia,
|
|
3989
|
+
unknown
|
|
3990
|
+
> = z.object({
|
|
3991
|
+
type: CollectHashtagPostsType$inboundSchema,
|
|
3992
|
+
urls: z.array(types.string()),
|
|
3993
|
+
title: types.optional(types.string()),
|
|
3994
|
+
thumbnailUrl: types.optional(types.string()),
|
|
3995
|
+
});
|
|
3996
|
+
|
|
3997
|
+
export function collectHashtagPostsMediaFromJSON(
|
|
3998
|
+
jsonString: string,
|
|
3999
|
+
): SafeParseResult<CollectHashtagPostsMedia, SDKValidationError> {
|
|
4000
|
+
return safeParse(
|
|
4001
|
+
jsonString,
|
|
4002
|
+
(x) => CollectHashtagPostsMedia$inboundSchema.parse(JSON.parse(x)),
|
|
4003
|
+
`Failed to parse 'CollectHashtagPostsMedia' from JSON`,
|
|
4004
|
+
);
|
|
4005
|
+
}
|
|
4006
|
+
|
|
4007
|
+
/** @internal */
|
|
4008
|
+
export const CollectHashtagPostsPost$inboundSchema: z.ZodMiniType<
|
|
4009
|
+
CollectHashtagPostsPost,
|
|
4010
|
+
unknown
|
|
4011
|
+
> = z.object({
|
|
4012
|
+
postUrl: types.string(),
|
|
4013
|
+
postUrn: types.string(),
|
|
4014
|
+
text: types.string(),
|
|
4015
|
+
date: types.number(),
|
|
4016
|
+
likesCount: types.number(),
|
|
4017
|
+
commentsCount: types.number(),
|
|
4018
|
+
sharesCount: types.number(),
|
|
4019
|
+
author: z.lazy(() => CollectHashtagPostsAuthor$inboundSchema),
|
|
4020
|
+
media: types.optional(z.lazy(() => CollectHashtagPostsMedia$inboundSchema)),
|
|
4021
|
+
});
|
|
4022
|
+
|
|
4023
|
+
export function collectHashtagPostsPostFromJSON(
|
|
4024
|
+
jsonString: string,
|
|
4025
|
+
): SafeParseResult<CollectHashtagPostsPost, SDKValidationError> {
|
|
4026
|
+
return safeParse(
|
|
4027
|
+
jsonString,
|
|
4028
|
+
(x) => CollectHashtagPostsPost$inboundSchema.parse(JSON.parse(x)),
|
|
4029
|
+
`Failed to parse 'CollectHashtagPostsPost' from JSON`,
|
|
4030
|
+
);
|
|
4031
|
+
}
|
|
4032
|
+
|
|
4033
|
+
/** @internal */
|
|
4034
|
+
export const CollectHashtagPostsResponse$inboundSchema: z.ZodMiniType<
|
|
4035
|
+
CollectHashtagPostsResponse,
|
|
4036
|
+
unknown
|
|
4037
|
+
> = z.object({
|
|
4038
|
+
success: types.literal(true),
|
|
4039
|
+
posts: z.array(z.lazy(() => CollectHashtagPostsPost$inboundSchema)),
|
|
4040
|
+
total: types.number(),
|
|
4041
|
+
hasMore: types.boolean(),
|
|
4042
|
+
creditsUsed: types.number(),
|
|
4043
|
+
retryAfter: types.number(),
|
|
4044
|
+
});
|
|
4045
|
+
|
|
4046
|
+
export function collectHashtagPostsResponseFromJSON(
|
|
4047
|
+
jsonString: string,
|
|
4048
|
+
): SafeParseResult<CollectHashtagPostsResponse, SDKValidationError> {
|
|
4049
|
+
return safeParse(
|
|
4050
|
+
jsonString,
|
|
4051
|
+
(x) => CollectHashtagPostsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
4052
|
+
`Failed to parse 'CollectHashtagPostsResponse' from JSON`,
|
|
4053
|
+
);
|
|
4054
|
+
}
|
|
4055
|
+
|
|
4056
|
+
/** @internal */
|
|
4057
|
+
export const SearchCategoryRequest$outboundSchema: z.ZodMiniEnum<
|
|
4058
|
+
typeof SearchCategoryRequest
|
|
4059
|
+
> = z.enum(SearchCategoryRequest);
|
|
4060
|
+
|
|
4061
|
+
/** @internal */
|
|
4062
|
+
export const SortBy$outboundSchema: z.ZodMiniEnum<typeof SortBy> = z.enum(
|
|
4063
|
+
SortBy,
|
|
4064
|
+
);
|
|
4065
|
+
|
|
4066
|
+
/** @internal */
|
|
4067
|
+
export const DatePosted$outboundSchema: z.ZodMiniEnum<typeof DatePosted> = z
|
|
4068
|
+
.enum(DatePosted);
|
|
4069
|
+
|
|
4070
|
+
/** @internal */
|
|
4071
|
+
export const ContentType$outboundSchema: z.ZodMiniEnum<typeof ContentType> = z
|
|
4072
|
+
.enum(ContentType);
|
|
4073
|
+
|
|
4074
|
+
/** @internal */
|
|
4075
|
+
export const ConnectionDegree$outboundSchema: z.ZodMiniEnum<
|
|
4076
|
+
typeof ConnectionDegree
|
|
4077
|
+
> = z.enum(ConnectionDegree);
|
|
4078
|
+
|
|
4079
|
+
/** @internal */
|
|
4080
|
+
export const CompanySize$outboundSchema: z.ZodMiniEnum<typeof CompanySize> = z
|
|
4081
|
+
.enum(CompanySize);
|
|
4082
|
+
|
|
4083
|
+
/** @internal */
|
|
4084
|
+
export const JobType$outboundSchema: z.ZodMiniEnum<typeof JobType> = z.enum(
|
|
4085
|
+
JobType,
|
|
4086
|
+
);
|
|
4087
|
+
|
|
4088
|
+
/** @internal */
|
|
4089
|
+
export const ExperienceLevel$outboundSchema: z.ZodMiniEnum<
|
|
4090
|
+
typeof ExperienceLevel
|
|
4091
|
+
> = z.enum(ExperienceLevel);
|
|
4092
|
+
|
|
4093
|
+
/** @internal */
|
|
4094
|
+
export const WorkplaceType$outboundSchema: z.ZodMiniEnum<typeof WorkplaceType> =
|
|
4095
|
+
z.enum(WorkplaceType);
|
|
4096
|
+
|
|
4097
|
+
/** @internal */
|
|
4098
|
+
export type SearchRequest$Outbound = {
|
|
4099
|
+
category?: string | undefined;
|
|
4100
|
+
url?: string | undefined;
|
|
4101
|
+
keywords?: string | undefined;
|
|
4102
|
+
sortBy?: string | undefined;
|
|
4103
|
+
datePosted?: string | undefined;
|
|
4104
|
+
contentType?: string | undefined;
|
|
4105
|
+
authorIndustry?: Array<string> | undefined;
|
|
4106
|
+
authorCompany?: Array<string> | undefined;
|
|
4107
|
+
connectionDegree?: Array<string> | undefined;
|
|
4108
|
+
firstName?: string | undefined;
|
|
4109
|
+
lastName?: string | undefined;
|
|
4110
|
+
title?: string | undefined;
|
|
4111
|
+
connectionOf?: string | undefined;
|
|
4112
|
+
profileLanguage?: Array<string> | undefined;
|
|
4113
|
+
school?: Array<string> | undefined;
|
|
4114
|
+
location?: Array<string> | undefined;
|
|
4115
|
+
industry?: Array<string> | undefined;
|
|
4116
|
+
currentCompany?: Array<string> | undefined;
|
|
4117
|
+
pastCompany?: Array<string> | undefined;
|
|
4118
|
+
companySize?: Array<string> | undefined;
|
|
4119
|
+
jobType?: Array<string> | undefined;
|
|
4120
|
+
experienceLevel?: Array<string> | undefined;
|
|
4121
|
+
workplaceType?: Array<string> | undefined;
|
|
4122
|
+
start?: number | undefined;
|
|
4123
|
+
count?: number | undefined;
|
|
4124
|
+
};
|
|
4125
|
+
|
|
4126
|
+
/** @internal */
|
|
4127
|
+
export const SearchRequest$outboundSchema: z.ZodMiniType<
|
|
4128
|
+
SearchRequest$Outbound,
|
|
4129
|
+
SearchRequest
|
|
4130
|
+
> = z.object({
|
|
4131
|
+
category: z.optional(SearchCategoryRequest$outboundSchema),
|
|
4132
|
+
url: z.optional(z.string()),
|
|
4133
|
+
keywords: z.optional(z.string()),
|
|
4134
|
+
sortBy: z.optional(SortBy$outboundSchema),
|
|
4135
|
+
datePosted: z.optional(DatePosted$outboundSchema),
|
|
4136
|
+
contentType: z.optional(ContentType$outboundSchema),
|
|
4137
|
+
authorIndustry: z.optional(z.array(z.string())),
|
|
4138
|
+
authorCompany: z.optional(z.array(z.string())),
|
|
4139
|
+
connectionDegree: z.optional(z.array(ConnectionDegree$outboundSchema)),
|
|
4140
|
+
firstName: z.optional(z.string()),
|
|
4141
|
+
lastName: z.optional(z.string()),
|
|
4142
|
+
title: z.optional(z.string()),
|
|
4143
|
+
connectionOf: z.optional(z.string()),
|
|
4144
|
+
profileLanguage: z.optional(z.array(z.string())),
|
|
4145
|
+
school: z.optional(z.array(z.string())),
|
|
4146
|
+
location: z.optional(z.array(z.string())),
|
|
4147
|
+
industry: z.optional(z.array(z.string())),
|
|
4148
|
+
currentCompany: z.optional(z.array(z.string())),
|
|
4149
|
+
pastCompany: z.optional(z.array(z.string())),
|
|
4150
|
+
companySize: z.optional(z.array(CompanySize$outboundSchema)),
|
|
4151
|
+
jobType: z.optional(z.array(JobType$outboundSchema)),
|
|
4152
|
+
experienceLevel: z.optional(z.array(ExperienceLevel$outboundSchema)),
|
|
4153
|
+
workplaceType: z.optional(z.array(WorkplaceType$outboundSchema)),
|
|
4154
|
+
start: z.optional(z.int()),
|
|
4155
|
+
count: z.optional(z.int()),
|
|
4156
|
+
});
|
|
4157
|
+
|
|
4158
|
+
export function searchRequestToJSON(searchRequest: SearchRequest): string {
|
|
4159
|
+
return JSON.stringify(SearchRequest$outboundSchema.parse(searchRequest));
|
|
4160
|
+
}
|
|
4161
|
+
|
|
4162
|
+
/** @internal */
|
|
4163
|
+
export const SearchCategoryResponseBody$inboundSchema: z.ZodMiniType<
|
|
4164
|
+
SearchCategoryResponseBody,
|
|
4165
|
+
unknown
|
|
4166
|
+
> = openEnums.inboundSchema(SearchCategoryResponseBody);
|
|
4167
|
+
|
|
4168
|
+
/** @internal */
|
|
4169
|
+
export const ItemsTypeJob$inboundSchema: z.ZodMiniEnum<typeof ItemsTypeJob> = z
|
|
4170
|
+
.enum(ItemsTypeJob);
|
|
4171
|
+
|
|
4172
|
+
/** @internal */
|
|
4173
|
+
export const ItemsJob$inboundSchema: z.ZodMiniType<ItemsJob, unknown> = z
|
|
4174
|
+
.object({
|
|
4175
|
+
type: ItemsTypeJob$inboundSchema,
|
|
4176
|
+
title: types.string(),
|
|
4177
|
+
company: types.nullable(types.string()),
|
|
4178
|
+
companyUrl: types.nullable(types.string()),
|
|
4179
|
+
companyLogo: types.nullable(types.string()),
|
|
4180
|
+
location: types.nullable(types.string()),
|
|
4181
|
+
workplaceType: types.nullable(types.string()),
|
|
4182
|
+
postedAt: types.nullable(types.string()),
|
|
4183
|
+
jobUrl: types.string(),
|
|
4184
|
+
listingId: types.string(),
|
|
4185
|
+
});
|
|
4186
|
+
|
|
4187
|
+
export function itemsJobFromJSON(
|
|
4188
|
+
jsonString: string,
|
|
4189
|
+
): SafeParseResult<ItemsJob, SDKValidationError> {
|
|
4190
|
+
return safeParse(
|
|
4191
|
+
jsonString,
|
|
4192
|
+
(x) => ItemsJob$inboundSchema.parse(JSON.parse(x)),
|
|
4193
|
+
`Failed to parse 'ItemsJob' from JSON`,
|
|
4194
|
+
);
|
|
4195
|
+
}
|
|
4196
|
+
|
|
4197
|
+
/** @internal */
|
|
4198
|
+
export const ItemsTypeCompany$inboundSchema: z.ZodMiniEnum<
|
|
4199
|
+
typeof ItemsTypeCompany
|
|
4200
|
+
> = z.enum(ItemsTypeCompany);
|
|
4201
|
+
|
|
4202
|
+
/** @internal */
|
|
4203
|
+
export const ItemsCompany$inboundSchema: z.ZodMiniType<ItemsCompany, unknown> =
|
|
4204
|
+
z.object({
|
|
4205
|
+
type: ItemsTypeCompany$inboundSchema,
|
|
4206
|
+
name: types.string(),
|
|
4207
|
+
profileUrl: types.nullable(types.string()),
|
|
4208
|
+
summary: types.nullable(types.string()),
|
|
4209
|
+
industry: types.nullable(types.string()),
|
|
4210
|
+
location: types.nullable(types.string()),
|
|
4211
|
+
followersCount: types.nullable(types.number()),
|
|
4212
|
+
});
|
|
4213
|
+
|
|
4214
|
+
export function itemsCompanyFromJSON(
|
|
4215
|
+
jsonString: string,
|
|
4216
|
+
): SafeParseResult<ItemsCompany, SDKValidationError> {
|
|
4217
|
+
return safeParse(
|
|
4218
|
+
jsonString,
|
|
4219
|
+
(x) => ItemsCompany$inboundSchema.parse(JSON.parse(x)),
|
|
4220
|
+
`Failed to parse 'ItemsCompany' from JSON`,
|
|
4221
|
+
);
|
|
4222
|
+
}
|
|
4223
|
+
|
|
4224
|
+
/** @internal */
|
|
4225
|
+
export const ItemsTypePeople$inboundSchema: z.ZodMiniEnum<
|
|
4226
|
+
typeof ItemsTypePeople
|
|
4227
|
+
> = z.enum(ItemsTypePeople);
|
|
4228
|
+
|
|
4229
|
+
/** @internal */
|
|
4230
|
+
export const ItemsNetworkDistance$inboundSchema: z.ZodMiniType<
|
|
4231
|
+
ItemsNetworkDistance,
|
|
4232
|
+
unknown
|
|
4233
|
+
> = openEnums.inboundSchema(ItemsNetworkDistance);
|
|
4234
|
+
|
|
4235
|
+
/** @internal */
|
|
4236
|
+
export const ItemsCurrentPosition$inboundSchema: z.ZodMiniType<
|
|
4237
|
+
ItemsCurrentPosition,
|
|
4238
|
+
unknown
|
|
4239
|
+
> = z.object({
|
|
4240
|
+
company: types.nullable(types.string()),
|
|
4241
|
+
role: types.nullable(types.string()),
|
|
4242
|
+
});
|
|
4243
|
+
|
|
4244
|
+
export function itemsCurrentPositionFromJSON(
|
|
4245
|
+
jsonString: string,
|
|
4246
|
+
): SafeParseResult<ItemsCurrentPosition, SDKValidationError> {
|
|
4247
|
+
return safeParse(
|
|
4248
|
+
jsonString,
|
|
4249
|
+
(x) => ItemsCurrentPosition$inboundSchema.parse(JSON.parse(x)),
|
|
4250
|
+
`Failed to parse 'ItemsCurrentPosition' from JSON`,
|
|
4251
|
+
);
|
|
4252
|
+
}
|
|
4253
|
+
|
|
4254
|
+
/** @internal */
|
|
4255
|
+
export const ItemsPeople$inboundSchema: z.ZodMiniType<ItemsPeople, unknown> = z
|
|
4256
|
+
.object({
|
|
4257
|
+
type: ItemsTypePeople$inboundSchema,
|
|
4258
|
+
name: types.string(),
|
|
4259
|
+
profileUrl: types.nullable(types.string()),
|
|
4260
|
+
headline: types.nullable(types.string()),
|
|
4261
|
+
location: types.nullable(types.string()),
|
|
4262
|
+
profilePicture: types.nullable(types.string()),
|
|
4263
|
+
networkDistance: types.nullable(ItemsNetworkDistance$inboundSchema),
|
|
4264
|
+
currentPositions: z.array(z.lazy(() => ItemsCurrentPosition$inboundSchema)),
|
|
4265
|
+
profileUrn: types.nullable(types.string()),
|
|
4266
|
+
publicIdentifier: types.nullable(types.string()),
|
|
4267
|
+
});
|
|
4268
|
+
|
|
4269
|
+
export function itemsPeopleFromJSON(
|
|
4270
|
+
jsonString: string,
|
|
4271
|
+
): SafeParseResult<ItemsPeople, SDKValidationError> {
|
|
4272
|
+
return safeParse(
|
|
4273
|
+
jsonString,
|
|
4274
|
+
(x) => ItemsPeople$inboundSchema.parse(JSON.parse(x)),
|
|
4275
|
+
`Failed to parse 'ItemsPeople' from JSON`,
|
|
4276
|
+
);
|
|
4277
|
+
}
|
|
4278
|
+
|
|
4279
|
+
/** @internal */
|
|
4280
|
+
export const ItemsTypePost$inboundSchema: z.ZodMiniEnum<typeof ItemsTypePost> =
|
|
4281
|
+
z.enum(ItemsTypePost);
|
|
4282
|
+
|
|
4283
|
+
/** @internal */
|
|
4284
|
+
export const ItemsAuthor$inboundSchema: z.ZodMiniType<ItemsAuthor, unknown> = z
|
|
4285
|
+
.object({
|
|
4286
|
+
name: types.string(),
|
|
4287
|
+
profileUrl: types.nullable(types.string()),
|
|
4288
|
+
headline: types.nullable(types.string()),
|
|
4289
|
+
profilePicture: types.nullable(types.string()),
|
|
4290
|
+
isCompany: types.boolean(),
|
|
4291
|
+
publicIdentifier: types.nullable(types.string()),
|
|
4292
|
+
profileUrn: types.nullable(types.string()),
|
|
4293
|
+
});
|
|
4294
|
+
|
|
4295
|
+
export function itemsAuthorFromJSON(
|
|
4296
|
+
jsonString: string,
|
|
4297
|
+
): SafeParseResult<ItemsAuthor, SDKValidationError> {
|
|
4298
|
+
return safeParse(
|
|
4299
|
+
jsonString,
|
|
4300
|
+
(x) => ItemsAuthor$inboundSchema.parse(JSON.parse(x)),
|
|
4301
|
+
`Failed to parse 'ItemsAuthor' from JSON`,
|
|
4302
|
+
);
|
|
4303
|
+
}
|
|
4304
|
+
|
|
4305
|
+
/** @internal */
|
|
4306
|
+
export const ItemsMediaType$inboundSchema: z.ZodMiniType<
|
|
4307
|
+
ItemsMediaType,
|
|
4308
|
+
unknown
|
|
4309
|
+
> = openEnums.inboundSchema(ItemsMediaType);
|
|
4310
|
+
|
|
4311
|
+
/** @internal */
|
|
4312
|
+
export const ItemsMedia$inboundSchema: z.ZodMiniType<ItemsMedia, unknown> = z
|
|
4313
|
+
.object({
|
|
4314
|
+
type: ItemsMediaType$inboundSchema,
|
|
4315
|
+
urls: z.array(types.string()),
|
|
4316
|
+
title: types.optional(types.string()),
|
|
4317
|
+
thumbnailUrl: types.optional(types.string()),
|
|
4318
|
+
});
|
|
4319
|
+
|
|
4320
|
+
export function itemsMediaFromJSON(
|
|
4321
|
+
jsonString: string,
|
|
4322
|
+
): SafeParseResult<ItemsMedia, SDKValidationError> {
|
|
4323
|
+
return safeParse(
|
|
4324
|
+
jsonString,
|
|
4325
|
+
(x) => ItemsMedia$inboundSchema.parse(JSON.parse(x)),
|
|
4326
|
+
`Failed to parse 'ItemsMedia' from JSON`,
|
|
4327
|
+
);
|
|
4328
|
+
}
|
|
4329
|
+
|
|
4330
|
+
/** @internal */
|
|
4331
|
+
export const ItemsPost$inboundSchema: z.ZodMiniType<ItemsPost, unknown> = z
|
|
4332
|
+
.object({
|
|
4333
|
+
type: ItemsTypePost$inboundSchema,
|
|
4334
|
+
postUrl: types.string(),
|
|
4335
|
+
text: types.string(),
|
|
4336
|
+
date: types.number(),
|
|
4337
|
+
likesCount: types.number(),
|
|
4338
|
+
commentsCount: types.number(),
|
|
4339
|
+
sharesCount: types.number(),
|
|
4340
|
+
postUrn: types.string(),
|
|
4341
|
+
postId: types.string(),
|
|
4342
|
+
author: z.lazy(() => ItemsAuthor$inboundSchema),
|
|
4343
|
+
isRepost: types.boolean(),
|
|
4344
|
+
media: types.optional(z.lazy(() => ItemsMedia$inboundSchema)),
|
|
4345
|
+
});
|
|
4346
|
+
|
|
4347
|
+
export function itemsPostFromJSON(
|
|
4348
|
+
jsonString: string,
|
|
4349
|
+
): SafeParseResult<ItemsPost, SDKValidationError> {
|
|
4350
|
+
return safeParse(
|
|
4351
|
+
jsonString,
|
|
4352
|
+
(x) => ItemsPost$inboundSchema.parse(JSON.parse(x)),
|
|
4353
|
+
`Failed to parse 'ItemsPost' from JSON`,
|
|
4354
|
+
);
|
|
4355
|
+
}
|
|
4356
|
+
|
|
4357
|
+
/** @internal */
|
|
4358
|
+
export const Items$inboundSchema: z.ZodMiniType<Items, unknown> = smartUnion([
|
|
4359
|
+
z.array(z.lazy(() => ItemsPost$inboundSchema)),
|
|
4360
|
+
z.array(z.lazy(() => ItemsPeople$inboundSchema)),
|
|
4361
|
+
z.array(z.lazy(() => ItemsCompany$inboundSchema)),
|
|
4362
|
+
z.array(z.lazy(() => ItemsJob$inboundSchema)),
|
|
4363
|
+
]);
|
|
4364
|
+
|
|
4365
|
+
export function itemsFromJSON(
|
|
4366
|
+
jsonString: string,
|
|
4367
|
+
): SafeParseResult<Items, SDKValidationError> {
|
|
4368
|
+
return safeParse(
|
|
4369
|
+
jsonString,
|
|
4370
|
+
(x) => Items$inboundSchema.parse(JSON.parse(x)),
|
|
4371
|
+
`Failed to parse 'Items' from JSON`,
|
|
4372
|
+
);
|
|
4373
|
+
}
|
|
4374
|
+
|
|
4375
|
+
/** @internal */
|
|
4376
|
+
export const SearchPagingResponseBody$inboundSchema: z.ZodMiniType<
|
|
4377
|
+
SearchPagingResponseBody,
|
|
4378
|
+
unknown
|
|
4379
|
+
> = z.object({
|
|
4380
|
+
start: types.number(),
|
|
4381
|
+
count: types.number(),
|
|
4382
|
+
total: types.number(),
|
|
4383
|
+
});
|
|
4384
|
+
|
|
4385
|
+
export function searchPagingResponseBodyFromJSON(
|
|
4386
|
+
jsonString: string,
|
|
4387
|
+
): SafeParseResult<SearchPagingResponseBody, SDKValidationError> {
|
|
4388
|
+
return safeParse(
|
|
4389
|
+
jsonString,
|
|
4390
|
+
(x) => SearchPagingResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
4391
|
+
`Failed to parse 'SearchPagingResponseBody' from JSON`,
|
|
4392
|
+
);
|
|
4393
|
+
}
|
|
4394
|
+
|
|
4395
|
+
/** @internal */
|
|
4396
|
+
export const SearchResponse$inboundSchema: z.ZodMiniType<
|
|
4397
|
+
SearchResponse,
|
|
4398
|
+
unknown
|
|
4399
|
+
> = z.object({
|
|
4400
|
+
success: types.literal(true),
|
|
4401
|
+
category: SearchCategoryResponseBody$inboundSchema,
|
|
4402
|
+
items: smartUnion([
|
|
4403
|
+
z.array(z.lazy(() => ItemsPost$inboundSchema)),
|
|
4404
|
+
z.array(z.lazy(() => ItemsPeople$inboundSchema)),
|
|
4405
|
+
z.array(z.lazy(() => ItemsCompany$inboundSchema)),
|
|
4406
|
+
z.array(z.lazy(() => ItemsJob$inboundSchema)),
|
|
4407
|
+
]),
|
|
4408
|
+
paging: z.lazy(() => SearchPagingResponseBody$inboundSchema),
|
|
4409
|
+
hasMore: types.boolean(),
|
|
4410
|
+
creditsUsed: types.number(),
|
|
4411
|
+
retryAfter: types.number(),
|
|
4412
|
+
});
|
|
4413
|
+
|
|
4414
|
+
export function searchResponseFromJSON(
|
|
4415
|
+
jsonString: string,
|
|
4416
|
+
): SafeParseResult<SearchResponse, SDKValidationError> {
|
|
4417
|
+
return safeParse(
|
|
4418
|
+
jsonString,
|
|
4419
|
+
(x) => SearchResponse$inboundSchema.parse(JSON.parse(x)),
|
|
4420
|
+
`Failed to parse 'SearchResponse' from JSON`,
|
|
4421
|
+
);
|
|
4422
|
+
}
|
|
4423
|
+
|
|
4424
|
+
/** @internal */
|
|
4425
|
+
export const SearchPostsSortBy$outboundSchema: z.ZodMiniEnum<
|
|
4426
|
+
typeof SearchPostsSortBy
|
|
4427
|
+
> = z.enum(SearchPostsSortBy);
|
|
4428
|
+
|
|
4429
|
+
/** @internal */
|
|
4430
|
+
export const SearchPostsDatePosted$outboundSchema: z.ZodMiniEnum<
|
|
4431
|
+
typeof SearchPostsDatePosted
|
|
4432
|
+
> = z.enum(SearchPostsDatePosted);
|
|
4433
|
+
|
|
4434
|
+
/** @internal */
|
|
4435
|
+
export const SearchPostsContentType$outboundSchema: z.ZodMiniEnum<
|
|
4436
|
+
typeof SearchPostsContentType
|
|
4437
|
+
> = z.enum(SearchPostsContentType);
|
|
4438
|
+
|
|
4439
|
+
/** @internal */
|
|
4440
|
+
export type SearchPostsRequest$Outbound = {
|
|
4441
|
+
keywords: string;
|
|
4442
|
+
url?: string | undefined;
|
|
4443
|
+
sortBy?: string | undefined;
|
|
4444
|
+
datePosted?: string | undefined;
|
|
4445
|
+
contentType?: string | undefined;
|
|
4446
|
+
authorIndustry?: Array<string> | undefined;
|
|
4447
|
+
authorCompany?: Array<string> | undefined;
|
|
4448
|
+
start?: number | undefined;
|
|
4449
|
+
count?: number | undefined;
|
|
4450
|
+
};
|
|
4451
|
+
|
|
4452
|
+
/** @internal */
|
|
4453
|
+
export const SearchPostsRequest$outboundSchema: z.ZodMiniType<
|
|
4454
|
+
SearchPostsRequest$Outbound,
|
|
4455
|
+
SearchPostsRequest
|
|
4456
|
+
> = z.object({
|
|
4457
|
+
keywords: z.string(),
|
|
4458
|
+
url: z.optional(z.string()),
|
|
4459
|
+
sortBy: z.optional(SearchPostsSortBy$outboundSchema),
|
|
4460
|
+
datePosted: z.optional(SearchPostsDatePosted$outboundSchema),
|
|
4461
|
+
contentType: z.optional(SearchPostsContentType$outboundSchema),
|
|
4462
|
+
authorIndustry: z.optional(z.array(z.string())),
|
|
4463
|
+
authorCompany: z.optional(z.array(z.string())),
|
|
4464
|
+
start: z.optional(z.int()),
|
|
4465
|
+
count: z.optional(z.int()),
|
|
4466
|
+
});
|
|
4467
|
+
|
|
4468
|
+
export function searchPostsRequestToJSON(
|
|
4469
|
+
searchPostsRequest: SearchPostsRequest,
|
|
4470
|
+
): string {
|
|
4471
|
+
return JSON.stringify(
|
|
4472
|
+
SearchPostsRequest$outboundSchema.parse(searchPostsRequest),
|
|
4473
|
+
);
|
|
4474
|
+
}
|
|
4475
|
+
|
|
4476
|
+
/** @internal */
|
|
4477
|
+
export const SearchPostsCategory$inboundSchema: z.ZodMiniEnum<
|
|
4478
|
+
typeof SearchPostsCategory
|
|
4479
|
+
> = z.enum(SearchPostsCategory);
|
|
4480
|
+
|
|
4481
|
+
/** @internal */
|
|
4482
|
+
export const SearchPostsType$inboundSchema: z.ZodMiniEnum<
|
|
4483
|
+
typeof SearchPostsType
|
|
4484
|
+
> = z.enum(SearchPostsType);
|
|
4485
|
+
|
|
4486
|
+
/** @internal */
|
|
4487
|
+
export const SearchPostsAuthor$inboundSchema: z.ZodMiniType<
|
|
4488
|
+
SearchPostsAuthor,
|
|
4489
|
+
unknown
|
|
4490
|
+
> = z.object({
|
|
4491
|
+
name: types.string(),
|
|
4492
|
+
profileUrl: types.nullable(types.string()),
|
|
4493
|
+
headline: types.nullable(types.string()),
|
|
4494
|
+
profilePicture: types.nullable(types.string()),
|
|
4495
|
+
isCompany: types.boolean(),
|
|
4496
|
+
publicIdentifier: types.nullable(types.string()),
|
|
4497
|
+
profileUrn: types.nullable(types.string()),
|
|
4498
|
+
});
|
|
4499
|
+
|
|
4500
|
+
export function searchPostsAuthorFromJSON(
|
|
4501
|
+
jsonString: string,
|
|
4502
|
+
): SafeParseResult<SearchPostsAuthor, SDKValidationError> {
|
|
4503
|
+
return safeParse(
|
|
4504
|
+
jsonString,
|
|
4505
|
+
(x) => SearchPostsAuthor$inboundSchema.parse(JSON.parse(x)),
|
|
4506
|
+
`Failed to parse 'SearchPostsAuthor' from JSON`,
|
|
4507
|
+
);
|
|
4508
|
+
}
|
|
4509
|
+
|
|
4510
|
+
/** @internal */
|
|
4511
|
+
export const SearchPostsMediaType$inboundSchema: z.ZodMiniType<
|
|
4512
|
+
SearchPostsMediaType,
|
|
4513
|
+
unknown
|
|
4514
|
+
> = openEnums.inboundSchema(SearchPostsMediaType);
|
|
4515
|
+
|
|
4516
|
+
/** @internal */
|
|
4517
|
+
export const SearchPostsMedia$inboundSchema: z.ZodMiniType<
|
|
4518
|
+
SearchPostsMedia,
|
|
4519
|
+
unknown
|
|
4520
|
+
> = z.object({
|
|
4521
|
+
type: SearchPostsMediaType$inboundSchema,
|
|
4522
|
+
urls: z.array(types.string()),
|
|
4523
|
+
title: types.optional(types.string()),
|
|
4524
|
+
thumbnailUrl: types.optional(types.string()),
|
|
4525
|
+
});
|
|
4526
|
+
|
|
4527
|
+
export function searchPostsMediaFromJSON(
|
|
4528
|
+
jsonString: string,
|
|
4529
|
+
): SafeParseResult<SearchPostsMedia, SDKValidationError> {
|
|
4530
|
+
return safeParse(
|
|
4531
|
+
jsonString,
|
|
4532
|
+
(x) => SearchPostsMedia$inboundSchema.parse(JSON.parse(x)),
|
|
4533
|
+
`Failed to parse 'SearchPostsMedia' from JSON`,
|
|
4534
|
+
);
|
|
4535
|
+
}
|
|
4536
|
+
|
|
4537
|
+
/** @internal */
|
|
4538
|
+
export const SearchPostsItem$inboundSchema: z.ZodMiniType<
|
|
4539
|
+
SearchPostsItem,
|
|
4540
|
+
unknown
|
|
4541
|
+
> = z.object({
|
|
4542
|
+
type: SearchPostsType$inboundSchema,
|
|
4543
|
+
postUrl: types.string(),
|
|
4544
|
+
text: types.string(),
|
|
4545
|
+
date: types.number(),
|
|
4546
|
+
likesCount: types.number(),
|
|
4547
|
+
commentsCount: types.number(),
|
|
4548
|
+
sharesCount: types.number(),
|
|
4549
|
+
postUrn: types.string(),
|
|
4550
|
+
postId: types.string(),
|
|
4551
|
+
author: z.lazy(() => SearchPostsAuthor$inboundSchema),
|
|
4552
|
+
isRepost: types.boolean(),
|
|
4553
|
+
media: types.optional(z.lazy(() => SearchPostsMedia$inboundSchema)),
|
|
4554
|
+
});
|
|
4555
|
+
|
|
4556
|
+
export function searchPostsItemFromJSON(
|
|
4557
|
+
jsonString: string,
|
|
4558
|
+
): SafeParseResult<SearchPostsItem, SDKValidationError> {
|
|
4559
|
+
return safeParse(
|
|
4560
|
+
jsonString,
|
|
4561
|
+
(x) => SearchPostsItem$inboundSchema.parse(JSON.parse(x)),
|
|
4562
|
+
`Failed to parse 'SearchPostsItem' from JSON`,
|
|
4563
|
+
);
|
|
4564
|
+
}
|
|
4565
|
+
|
|
4566
|
+
/** @internal */
|
|
4567
|
+
export const SearchPostsPaging$inboundSchema: z.ZodMiniType<
|
|
4568
|
+
SearchPostsPaging,
|
|
4569
|
+
unknown
|
|
4570
|
+
> = z.object({
|
|
4571
|
+
start: types.number(),
|
|
4572
|
+
count: types.number(),
|
|
4573
|
+
total: types.number(),
|
|
4574
|
+
});
|
|
4575
|
+
|
|
4576
|
+
export function searchPostsPagingFromJSON(
|
|
4577
|
+
jsonString: string,
|
|
4578
|
+
): SafeParseResult<SearchPostsPaging, SDKValidationError> {
|
|
4579
|
+
return safeParse(
|
|
4580
|
+
jsonString,
|
|
4581
|
+
(x) => SearchPostsPaging$inboundSchema.parse(JSON.parse(x)),
|
|
4582
|
+
`Failed to parse 'SearchPostsPaging' from JSON`,
|
|
4583
|
+
);
|
|
4584
|
+
}
|
|
4585
|
+
|
|
4586
|
+
/** @internal */
|
|
4587
|
+
export const SearchPostsResponse$inboundSchema: z.ZodMiniType<
|
|
4588
|
+
SearchPostsResponse,
|
|
4589
|
+
unknown
|
|
4590
|
+
> = z.object({
|
|
4591
|
+
success: types.literal(true),
|
|
4592
|
+
category: SearchPostsCategory$inboundSchema,
|
|
4593
|
+
items: z.array(z.lazy(() => SearchPostsItem$inboundSchema)),
|
|
4594
|
+
paging: z.lazy(() => SearchPostsPaging$inboundSchema),
|
|
4595
|
+
hasMore: types.boolean(),
|
|
4596
|
+
creditsUsed: types.number(),
|
|
4597
|
+
retryAfter: types.number(),
|
|
4598
|
+
});
|
|
4599
|
+
|
|
4600
|
+
export function searchPostsResponseFromJSON(
|
|
4601
|
+
jsonString: string,
|
|
4602
|
+
): SafeParseResult<SearchPostsResponse, SDKValidationError> {
|
|
4603
|
+
return safeParse(
|
|
4604
|
+
jsonString,
|
|
4605
|
+
(x) => SearchPostsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
4606
|
+
`Failed to parse 'SearchPostsResponse' from JSON`,
|
|
4607
|
+
);
|
|
4608
|
+
}
|
|
4609
|
+
|
|
4610
|
+
/** @internal */
|
|
4611
|
+
export const SearchPeopleConnectionDegree$outboundSchema: z.ZodMiniEnum<
|
|
4612
|
+
typeof SearchPeopleConnectionDegree
|
|
4613
|
+
> = z.enum(SearchPeopleConnectionDegree);
|
|
4614
|
+
|
|
4615
|
+
/** @internal */
|
|
4616
|
+
export type SearchPeopleRequest$Outbound = {
|
|
4617
|
+
keywords?: string | undefined;
|
|
4618
|
+
url?: string | undefined;
|
|
4619
|
+
connectionDegree?: Array<string> | undefined;
|
|
4620
|
+
firstName?: string | undefined;
|
|
4621
|
+
lastName?: string | undefined;
|
|
4622
|
+
title?: string | undefined;
|
|
4623
|
+
connectionOf?: string | undefined;
|
|
4624
|
+
profileLanguage?: Array<string> | undefined;
|
|
4625
|
+
school?: Array<string> | undefined;
|
|
4626
|
+
location?: Array<string> | undefined;
|
|
4627
|
+
industry?: Array<string> | undefined;
|
|
4628
|
+
currentCompany?: Array<string> | undefined;
|
|
4629
|
+
pastCompany?: Array<string> | undefined;
|
|
4630
|
+
start?: number | undefined;
|
|
4631
|
+
count?: number | undefined;
|
|
4632
|
+
};
|
|
4633
|
+
|
|
4634
|
+
/** @internal */
|
|
4635
|
+
export const SearchPeopleRequest$outboundSchema: z.ZodMiniType<
|
|
4636
|
+
SearchPeopleRequest$Outbound,
|
|
4637
|
+
SearchPeopleRequest
|
|
4638
|
+
> = z.object({
|
|
4639
|
+
keywords: z.optional(z.string()),
|
|
4640
|
+
url: z.optional(z.string()),
|
|
4641
|
+
connectionDegree: z.optional(
|
|
4642
|
+
z.array(SearchPeopleConnectionDegree$outboundSchema),
|
|
4643
|
+
),
|
|
4644
|
+
firstName: z.optional(z.string()),
|
|
4645
|
+
lastName: z.optional(z.string()),
|
|
4646
|
+
title: z.optional(z.string()),
|
|
4647
|
+
connectionOf: z.optional(z.string()),
|
|
4648
|
+
profileLanguage: z.optional(z.array(z.string())),
|
|
4649
|
+
school: z.optional(z.array(z.string())),
|
|
4650
|
+
location: z.optional(z.array(z.string())),
|
|
4651
|
+
industry: z.optional(z.array(z.string())),
|
|
4652
|
+
currentCompany: z.optional(z.array(z.string())),
|
|
4653
|
+
pastCompany: z.optional(z.array(z.string())),
|
|
4654
|
+
start: z.optional(z.int()),
|
|
4655
|
+
count: z.optional(z.int()),
|
|
4656
|
+
});
|
|
4657
|
+
|
|
4658
|
+
export function searchPeopleRequestToJSON(
|
|
4659
|
+
searchPeopleRequest: SearchPeopleRequest,
|
|
4660
|
+
): string {
|
|
4661
|
+
return JSON.stringify(
|
|
4662
|
+
SearchPeopleRequest$outboundSchema.parse(searchPeopleRequest),
|
|
4663
|
+
);
|
|
4664
|
+
}
|
|
4665
|
+
|
|
4666
|
+
/** @internal */
|
|
4667
|
+
export const SearchPeopleCategory$inboundSchema: z.ZodMiniEnum<
|
|
4668
|
+
typeof SearchPeopleCategory
|
|
4669
|
+
> = z.enum(SearchPeopleCategory);
|
|
4670
|
+
|
|
4671
|
+
/** @internal */
|
|
4672
|
+
export const SearchPeopleType$inboundSchema: z.ZodMiniEnum<
|
|
4673
|
+
typeof SearchPeopleType
|
|
4674
|
+
> = z.enum(SearchPeopleType);
|
|
4675
|
+
|
|
4676
|
+
/** @internal */
|
|
4677
|
+
export const SearchPeopleNetworkDistance$inboundSchema: z.ZodMiniType<
|
|
4678
|
+
SearchPeopleNetworkDistance,
|
|
4679
|
+
unknown
|
|
4680
|
+
> = openEnums.inboundSchema(SearchPeopleNetworkDistance);
|
|
4681
|
+
|
|
4682
|
+
/** @internal */
|
|
4683
|
+
export const SearchPeopleCurrentPosition$inboundSchema: z.ZodMiniType<
|
|
4684
|
+
SearchPeopleCurrentPosition,
|
|
4685
|
+
unknown
|
|
4686
|
+
> = z.object({
|
|
4687
|
+
company: types.nullable(types.string()),
|
|
4688
|
+
role: types.nullable(types.string()),
|
|
4689
|
+
});
|
|
4690
|
+
|
|
4691
|
+
export function searchPeopleCurrentPositionFromJSON(
|
|
4692
|
+
jsonString: string,
|
|
4693
|
+
): SafeParseResult<SearchPeopleCurrentPosition, SDKValidationError> {
|
|
4694
|
+
return safeParse(
|
|
4695
|
+
jsonString,
|
|
4696
|
+
(x) => SearchPeopleCurrentPosition$inboundSchema.parse(JSON.parse(x)),
|
|
4697
|
+
`Failed to parse 'SearchPeopleCurrentPosition' from JSON`,
|
|
4698
|
+
);
|
|
4699
|
+
}
|
|
4700
|
+
|
|
4701
|
+
/** @internal */
|
|
4702
|
+
export const SearchPeopleItem$inboundSchema: z.ZodMiniType<
|
|
4703
|
+
SearchPeopleItem,
|
|
4704
|
+
unknown
|
|
4705
|
+
> = z.object({
|
|
4706
|
+
type: SearchPeopleType$inboundSchema,
|
|
4707
|
+
name: types.string(),
|
|
4708
|
+
profileUrl: types.nullable(types.string()),
|
|
4709
|
+
headline: types.nullable(types.string()),
|
|
4710
|
+
location: types.nullable(types.string()),
|
|
4711
|
+
profilePicture: types.nullable(types.string()),
|
|
4712
|
+
networkDistance: types.nullable(SearchPeopleNetworkDistance$inboundSchema),
|
|
4713
|
+
currentPositions: z.array(
|
|
4714
|
+
z.lazy(() => SearchPeopleCurrentPosition$inboundSchema),
|
|
4715
|
+
),
|
|
4716
|
+
profileUrn: types.nullable(types.string()),
|
|
4717
|
+
publicIdentifier: types.nullable(types.string()),
|
|
4718
|
+
});
|
|
4719
|
+
|
|
4720
|
+
export function searchPeopleItemFromJSON(
|
|
4721
|
+
jsonString: string,
|
|
4722
|
+
): SafeParseResult<SearchPeopleItem, SDKValidationError> {
|
|
4723
|
+
return safeParse(
|
|
4724
|
+
jsonString,
|
|
4725
|
+
(x) => SearchPeopleItem$inboundSchema.parse(JSON.parse(x)),
|
|
4726
|
+
`Failed to parse 'SearchPeopleItem' from JSON`,
|
|
4727
|
+
);
|
|
4728
|
+
}
|
|
4729
|
+
|
|
4730
|
+
/** @internal */
|
|
4731
|
+
export const SearchPeoplePaging$inboundSchema: z.ZodMiniType<
|
|
4732
|
+
SearchPeoplePaging,
|
|
4733
|
+
unknown
|
|
4734
|
+
> = z.object({
|
|
4735
|
+
start: types.number(),
|
|
4736
|
+
count: types.number(),
|
|
4737
|
+
total: types.number(),
|
|
4738
|
+
});
|
|
4739
|
+
|
|
4740
|
+
export function searchPeoplePagingFromJSON(
|
|
4741
|
+
jsonString: string,
|
|
4742
|
+
): SafeParseResult<SearchPeoplePaging, SDKValidationError> {
|
|
4743
|
+
return safeParse(
|
|
4744
|
+
jsonString,
|
|
4745
|
+
(x) => SearchPeoplePaging$inboundSchema.parse(JSON.parse(x)),
|
|
4746
|
+
`Failed to parse 'SearchPeoplePaging' from JSON`,
|
|
4747
|
+
);
|
|
4748
|
+
}
|
|
4749
|
+
|
|
4750
|
+
/** @internal */
|
|
4751
|
+
export const SearchPeopleResponse$inboundSchema: z.ZodMiniType<
|
|
4752
|
+
SearchPeopleResponse,
|
|
4753
|
+
unknown
|
|
4754
|
+
> = z.object({
|
|
4755
|
+
success: types.literal(true),
|
|
4756
|
+
category: SearchPeopleCategory$inboundSchema,
|
|
4757
|
+
items: z.array(z.lazy(() => SearchPeopleItem$inboundSchema)),
|
|
4758
|
+
paging: z.lazy(() => SearchPeoplePaging$inboundSchema),
|
|
4759
|
+
hasMore: types.boolean(),
|
|
4760
|
+
creditsUsed: types.number(),
|
|
4761
|
+
retryAfter: types.number(),
|
|
4762
|
+
});
|
|
4763
|
+
|
|
4764
|
+
export function searchPeopleResponseFromJSON(
|
|
4765
|
+
jsonString: string,
|
|
4766
|
+
): SafeParseResult<SearchPeopleResponse, SDKValidationError> {
|
|
4767
|
+
return safeParse(
|
|
4768
|
+
jsonString,
|
|
4769
|
+
(x) => SearchPeopleResponse$inboundSchema.parse(JSON.parse(x)),
|
|
4770
|
+
`Failed to parse 'SearchPeopleResponse' from JSON`,
|
|
4771
|
+
);
|
|
4772
|
+
}
|
|
4773
|
+
|
|
4774
|
+
/** @internal */
|
|
4775
|
+
export const SearchCompaniesCompanySize$outboundSchema: z.ZodMiniEnum<
|
|
4776
|
+
typeof SearchCompaniesCompanySize
|
|
4777
|
+
> = z.enum(SearchCompaniesCompanySize);
|
|
4778
|
+
|
|
4779
|
+
/** @internal */
|
|
4780
|
+
export type SearchCompaniesRequest$Outbound = {
|
|
4781
|
+
keywords?: string | undefined;
|
|
4782
|
+
url?: string | undefined;
|
|
4783
|
+
location?: Array<string> | undefined;
|
|
4784
|
+
industry?: Array<string> | undefined;
|
|
4785
|
+
companySize?: Array<string> | undefined;
|
|
4786
|
+
start?: number | undefined;
|
|
4787
|
+
count?: number | undefined;
|
|
4788
|
+
};
|
|
4789
|
+
|
|
4790
|
+
/** @internal */
|
|
4791
|
+
export const SearchCompaniesRequest$outboundSchema: z.ZodMiniType<
|
|
4792
|
+
SearchCompaniesRequest$Outbound,
|
|
4793
|
+
SearchCompaniesRequest
|
|
4794
|
+
> = z.object({
|
|
4795
|
+
keywords: z.optional(z.string()),
|
|
4796
|
+
url: z.optional(z.string()),
|
|
4797
|
+
location: z.optional(z.array(z.string())),
|
|
4798
|
+
industry: z.optional(z.array(z.string())),
|
|
4799
|
+
companySize: z.optional(z.array(SearchCompaniesCompanySize$outboundSchema)),
|
|
4800
|
+
start: z.optional(z.int()),
|
|
4801
|
+
count: z.optional(z.int()),
|
|
4802
|
+
});
|
|
4803
|
+
|
|
4804
|
+
export function searchCompaniesRequestToJSON(
|
|
4805
|
+
searchCompaniesRequest: SearchCompaniesRequest,
|
|
4806
|
+
): string {
|
|
4807
|
+
return JSON.stringify(
|
|
4808
|
+
SearchCompaniesRequest$outboundSchema.parse(searchCompaniesRequest),
|
|
4809
|
+
);
|
|
4810
|
+
}
|
|
4811
|
+
|
|
4812
|
+
/** @internal */
|
|
4813
|
+
export const SearchCompaniesCategory$inboundSchema: z.ZodMiniEnum<
|
|
4814
|
+
typeof SearchCompaniesCategory
|
|
4815
|
+
> = z.enum(SearchCompaniesCategory);
|
|
4816
|
+
|
|
4817
|
+
/** @internal */
|
|
4818
|
+
export const SearchCompaniesType$inboundSchema: z.ZodMiniEnum<
|
|
4819
|
+
typeof SearchCompaniesType
|
|
4820
|
+
> = z.enum(SearchCompaniesType);
|
|
4821
|
+
|
|
4822
|
+
/** @internal */
|
|
4823
|
+
export const SearchCompaniesItem$inboundSchema: z.ZodMiniType<
|
|
4824
|
+
SearchCompaniesItem,
|
|
4825
|
+
unknown
|
|
4826
|
+
> = z.object({
|
|
4827
|
+
type: SearchCompaniesType$inboundSchema,
|
|
4828
|
+
name: types.string(),
|
|
4829
|
+
profileUrl: types.nullable(types.string()),
|
|
4830
|
+
summary: types.nullable(types.string()),
|
|
4831
|
+
industry: types.nullable(types.string()),
|
|
4832
|
+
location: types.nullable(types.string()),
|
|
4833
|
+
followersCount: types.nullable(types.number()),
|
|
4834
|
+
});
|
|
4835
|
+
|
|
4836
|
+
export function searchCompaniesItemFromJSON(
|
|
4837
|
+
jsonString: string,
|
|
4838
|
+
): SafeParseResult<SearchCompaniesItem, SDKValidationError> {
|
|
4839
|
+
return safeParse(
|
|
4840
|
+
jsonString,
|
|
4841
|
+
(x) => SearchCompaniesItem$inboundSchema.parse(JSON.parse(x)),
|
|
4842
|
+
`Failed to parse 'SearchCompaniesItem' from JSON`,
|
|
4843
|
+
);
|
|
4844
|
+
}
|
|
4845
|
+
|
|
4846
|
+
/** @internal */
|
|
4847
|
+
export const SearchCompaniesPaging$inboundSchema: z.ZodMiniType<
|
|
4848
|
+
SearchCompaniesPaging,
|
|
4849
|
+
unknown
|
|
4850
|
+
> = z.object({
|
|
4851
|
+
start: types.number(),
|
|
4852
|
+
count: types.number(),
|
|
4853
|
+
total: types.number(),
|
|
4854
|
+
});
|
|
4855
|
+
|
|
4856
|
+
export function searchCompaniesPagingFromJSON(
|
|
4857
|
+
jsonString: string,
|
|
4858
|
+
): SafeParseResult<SearchCompaniesPaging, SDKValidationError> {
|
|
4859
|
+
return safeParse(
|
|
4860
|
+
jsonString,
|
|
4861
|
+
(x) => SearchCompaniesPaging$inboundSchema.parse(JSON.parse(x)),
|
|
4862
|
+
`Failed to parse 'SearchCompaniesPaging' from JSON`,
|
|
4863
|
+
);
|
|
4864
|
+
}
|
|
4865
|
+
|
|
4866
|
+
/** @internal */
|
|
4867
|
+
export const SearchCompaniesResponse$inboundSchema: z.ZodMiniType<
|
|
4868
|
+
SearchCompaniesResponse,
|
|
4869
|
+
unknown
|
|
4870
|
+
> = z.object({
|
|
4871
|
+
success: types.literal(true),
|
|
4872
|
+
category: SearchCompaniesCategory$inboundSchema,
|
|
4873
|
+
items: z.array(z.lazy(() => SearchCompaniesItem$inboundSchema)),
|
|
4874
|
+
paging: z.lazy(() => SearchCompaniesPaging$inboundSchema),
|
|
4875
|
+
hasMore: types.boolean(),
|
|
4876
|
+
creditsUsed: types.number(),
|
|
4877
|
+
retryAfter: types.number(),
|
|
4878
|
+
});
|
|
4879
|
+
|
|
4880
|
+
export function searchCompaniesResponseFromJSON(
|
|
4881
|
+
jsonString: string,
|
|
4882
|
+
): SafeParseResult<SearchCompaniesResponse, SDKValidationError> {
|
|
4883
|
+
return safeParse(
|
|
4884
|
+
jsonString,
|
|
4885
|
+
(x) => SearchCompaniesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
4886
|
+
`Failed to parse 'SearchCompaniesResponse' from JSON`,
|
|
4887
|
+
);
|
|
4888
|
+
}
|