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,1459 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
6
|
+
import * as openEnums from "../../types/enums.js";
|
|
7
|
+
import * as types from "../../types/primitives.js";
|
|
8
|
+
import { smartUnion } from "../../types/smart-union.js";
|
|
9
|
+
import { SearchContactsContact$inboundSchema, } from "./search-contacts-contact.js";
|
|
10
|
+
/**
|
|
11
|
+
* Promote to new stage (forward-only, except rejected)
|
|
12
|
+
*/
|
|
13
|
+
export const UpdateLifecycleStage = {
|
|
14
|
+
Contact: "contact",
|
|
15
|
+
Lead: "lead",
|
|
16
|
+
Qualified: "qualified",
|
|
17
|
+
Approved: "approved",
|
|
18
|
+
Rejected: "rejected",
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Manual outreach status override
|
|
22
|
+
*/
|
|
23
|
+
export const UpdateOutreachStatus = {
|
|
24
|
+
None: "none",
|
|
25
|
+
ConnectionSent: "connection_sent",
|
|
26
|
+
Connected: "connected",
|
|
27
|
+
DmSent: "dm_sent",
|
|
28
|
+
FollowedUp: "followed_up",
|
|
29
|
+
Replied: "replied",
|
|
30
|
+
InConversation: "in_conversation",
|
|
31
|
+
MeetingBooked: "meeting_booked",
|
|
32
|
+
Converted: "converted",
|
|
33
|
+
NotInterested: "not_interested",
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Activity type
|
|
37
|
+
*/
|
|
38
|
+
export const AddActivitiesType = {
|
|
39
|
+
ConnectionRequest: "connection_request",
|
|
40
|
+
Message: "message",
|
|
41
|
+
FollowUp: "follow_up",
|
|
42
|
+
ReplyReceived: "reply_received",
|
|
43
|
+
ConnectionAccepted: "connection_accepted",
|
|
44
|
+
ProfileView: "profile_view",
|
|
45
|
+
EngagementObserved: "engagement_observed",
|
|
46
|
+
PostInteraction: "post_interaction",
|
|
47
|
+
SearchFound: "search_found",
|
|
48
|
+
Qualification: "qualification",
|
|
49
|
+
StageChange: "stage_change",
|
|
50
|
+
MessageReceived: "message_received",
|
|
51
|
+
UserInterest: "user_interest",
|
|
52
|
+
MeetingBooked: "meeting_booked",
|
|
53
|
+
MeetingCompleted: "meeting_completed",
|
|
54
|
+
MeetingCancelled: "meeting_cancelled",
|
|
55
|
+
DoNotContact: "do_not_contact",
|
|
56
|
+
};
|
|
57
|
+
export const BulkUpdateLifecycleStage = {
|
|
58
|
+
Contact: "contact",
|
|
59
|
+
Lead: "lead",
|
|
60
|
+
Qualified: "qualified",
|
|
61
|
+
Approved: "approved",
|
|
62
|
+
Rejected: "rejected",
|
|
63
|
+
};
|
|
64
|
+
export const BulkUpdateOutreachStatus = {
|
|
65
|
+
None: "none",
|
|
66
|
+
ConnectionSent: "connection_sent",
|
|
67
|
+
Connected: "connected",
|
|
68
|
+
DmSent: "dm_sent",
|
|
69
|
+
FollowedUp: "followed_up",
|
|
70
|
+
Replied: "replied",
|
|
71
|
+
InConversation: "in_conversation",
|
|
72
|
+
MeetingBooked: "meeting_booked",
|
|
73
|
+
Converted: "converted",
|
|
74
|
+
NotInterested: "not_interested",
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* When 'true', omits the data payload and returns only keys + timestamps. Useful for state overview without transferring large payloads.
|
|
78
|
+
*/
|
|
79
|
+
export const KeysOnly = {
|
|
80
|
+
True: "true",
|
|
81
|
+
False: "false",
|
|
82
|
+
};
|
|
83
|
+
export const ListCampaignsType = {
|
|
84
|
+
Outreach: "outreach",
|
|
85
|
+
LeadGen: "lead_gen",
|
|
86
|
+
LeadMagnet: "lead_magnet",
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* Campaign type
|
|
90
|
+
*/
|
|
91
|
+
export const CreateCampaignType = {
|
|
92
|
+
Outreach: "outreach",
|
|
93
|
+
LeadGen: "lead_gen",
|
|
94
|
+
LeadMagnet: "lead_magnet",
|
|
95
|
+
};
|
|
96
|
+
export const UpdateCampaignStatus = {
|
|
97
|
+
Draft: "draft",
|
|
98
|
+
Scheduled: "scheduled",
|
|
99
|
+
Running: "running",
|
|
100
|
+
Paused: "paused",
|
|
101
|
+
Completed: "completed",
|
|
102
|
+
Failed: "failed",
|
|
103
|
+
};
|
|
104
|
+
export const CampaignStatusTransitionAction = {
|
|
105
|
+
Activate: "activate",
|
|
106
|
+
Start: "start",
|
|
107
|
+
Pause: "pause",
|
|
108
|
+
Resume: "resume",
|
|
109
|
+
Complete: "complete",
|
|
110
|
+
Reset: "reset",
|
|
111
|
+
};
|
|
112
|
+
export const ListCampaignContactsLifecycleStage = {
|
|
113
|
+
Contact: "contact",
|
|
114
|
+
Lead: "lead",
|
|
115
|
+
Qualified: "qualified",
|
|
116
|
+
Approved: "approved",
|
|
117
|
+
Rejected: "rejected",
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* How this contact was found. Optional for organic creation (defaults to manual_import), required for campaign-based addition. Unknown values default to manual_import.
|
|
121
|
+
*/
|
|
122
|
+
export const AddCampaignContactsSource = {
|
|
123
|
+
Likes: "likes",
|
|
124
|
+
Comments: "comments",
|
|
125
|
+
Reposts: "reposts",
|
|
126
|
+
Posts: "posts",
|
|
127
|
+
CompanyFollowers: "company_followers",
|
|
128
|
+
SearchResults: "search_results",
|
|
129
|
+
ManualImport: "manual_import",
|
|
130
|
+
EventAttendees: "event_attendees",
|
|
131
|
+
GroupMembers: "group_members",
|
|
132
|
+
EngagementScraping: "engagement_scraping",
|
|
133
|
+
ContentSearch: "content_search",
|
|
134
|
+
FollowersMining: "followers_mining",
|
|
135
|
+
PeopleSearch: "people_search",
|
|
136
|
+
JobSearch: "job_search",
|
|
137
|
+
CompanySearch: "company_search",
|
|
138
|
+
NetworkExpansion: "network_expansion",
|
|
139
|
+
BulkVisit: "bulk_visit",
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* Lifecycle stage. Defaults to 'contact' on creation. Omit when adding existing contacts to avoid downgrading their stage.
|
|
143
|
+
*/
|
|
144
|
+
export const AddCampaignContactsLifecycleStage = {
|
|
145
|
+
Contact: "contact",
|
|
146
|
+
Lead: "lead",
|
|
147
|
+
Qualified: "qualified",
|
|
148
|
+
Approved: "approved",
|
|
149
|
+
Rejected: "rejected",
|
|
150
|
+
};
|
|
151
|
+
export const QueryParamStatus = {
|
|
152
|
+
Draft: "draft",
|
|
153
|
+
Scheduled: "scheduled",
|
|
154
|
+
Sending: "sending",
|
|
155
|
+
Sent: "sent",
|
|
156
|
+
Failed: "failed",
|
|
157
|
+
Cancelled: "cancelled",
|
|
158
|
+
};
|
|
159
|
+
export const MessageStatus = {
|
|
160
|
+
Draft: "draft",
|
|
161
|
+
Scheduled: "scheduled",
|
|
162
|
+
Sending: "sending",
|
|
163
|
+
Sent: "sent",
|
|
164
|
+
Failed: "failed",
|
|
165
|
+
Cancelled: "cancelled",
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* Default 'draft'
|
|
169
|
+
*/
|
|
170
|
+
export const CreateStatusRequest = {
|
|
171
|
+
Draft: "draft",
|
|
172
|
+
Scheduled: "scheduled",
|
|
173
|
+
};
|
|
174
|
+
export const ScheduledMessageStatus = {
|
|
175
|
+
Draft: "draft",
|
|
176
|
+
Scheduled: "scheduled",
|
|
177
|
+
Sending: "sending",
|
|
178
|
+
Sent: "sent",
|
|
179
|
+
Failed: "failed",
|
|
180
|
+
Cancelled: "cancelled",
|
|
181
|
+
};
|
|
182
|
+
/**
|
|
183
|
+
* Action to perform
|
|
184
|
+
*/
|
|
185
|
+
export const UpdateScheduleAction = {
|
|
186
|
+
Pause: "pause",
|
|
187
|
+
Resume: "resume",
|
|
188
|
+
Delete: "delete",
|
|
189
|
+
};
|
|
190
|
+
/** @internal */
|
|
191
|
+
export const SearchContactsPagination$inboundSchema = z.object({
|
|
192
|
+
limit: types.number(),
|
|
193
|
+
offset: types.number(),
|
|
194
|
+
total: types.number(),
|
|
195
|
+
});
|
|
196
|
+
export function searchContactsPaginationFromJSON(jsonString) {
|
|
197
|
+
return safeParse(jsonString, (x) => SearchContactsPagination$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchContactsPagination' from JSON`);
|
|
198
|
+
}
|
|
199
|
+
/** @internal */
|
|
200
|
+
export const SearchContactsResponse$inboundSchema = z.object({
|
|
201
|
+
success: types.literal(true),
|
|
202
|
+
contacts: z.array(SearchContactsContact$inboundSchema),
|
|
203
|
+
pagination: z.lazy(() => SearchContactsPagination$inboundSchema),
|
|
204
|
+
creditsUsed: types.number(),
|
|
205
|
+
retryAfter: types.number(),
|
|
206
|
+
});
|
|
207
|
+
export function searchContactsResponseFromJSON(jsonString) {
|
|
208
|
+
return safeParse(jsonString, (x) => SearchContactsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchContactsResponse' from JSON`);
|
|
209
|
+
}
|
|
210
|
+
/** @internal */
|
|
211
|
+
export const GetContactRequest$outboundSchema = z.object({
|
|
212
|
+
id: z.string(),
|
|
213
|
+
});
|
|
214
|
+
export function getContactRequestToJSON(getContactRequest) {
|
|
215
|
+
return JSON.stringify(GetContactRequest$outboundSchema.parse(getContactRequest));
|
|
216
|
+
}
|
|
217
|
+
/** @internal */
|
|
218
|
+
export const GetContactActivity$inboundSchema = z.object({
|
|
219
|
+
id: types.string(),
|
|
220
|
+
type: types.string(),
|
|
221
|
+
content: types.nullable(types.string()),
|
|
222
|
+
metadata: types.nullable(z.any()),
|
|
223
|
+
createdAt: types.string(),
|
|
224
|
+
});
|
|
225
|
+
export function getContactActivityFromJSON(jsonString) {
|
|
226
|
+
return safeParse(jsonString, (x) => GetContactActivity$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetContactActivity' from JSON`);
|
|
227
|
+
}
|
|
228
|
+
/** @internal */
|
|
229
|
+
export const GetContactCampaign$inboundSchema = z.object({
|
|
230
|
+
campaignId: types.string(),
|
|
231
|
+
campaignName: types.string(),
|
|
232
|
+
campaignStatus: types.string(),
|
|
233
|
+
source: types.string(),
|
|
234
|
+
sourceAngle: types.nullable(types.string()),
|
|
235
|
+
addedAt: types.string(),
|
|
236
|
+
});
|
|
237
|
+
export function getContactCampaignFromJSON(jsonString) {
|
|
238
|
+
return safeParse(jsonString, (x) => GetContactCampaign$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetContactCampaign' from JSON`);
|
|
239
|
+
}
|
|
240
|
+
/** @internal */
|
|
241
|
+
export const GetContactContact$inboundSchema = z.object({
|
|
242
|
+
id: types.string(),
|
|
243
|
+
linkedinUrl: types.string(),
|
|
244
|
+
profileUrn: types.nullable(types.string()),
|
|
245
|
+
publicIdentifier: types.nullable(types.string()),
|
|
246
|
+
name: types.string(),
|
|
247
|
+
lifecycleStage: types.string(),
|
|
248
|
+
hotScore: types.number(),
|
|
249
|
+
qualificationNotes: types.nullable(types.string()),
|
|
250
|
+
notes: types.nullable(types.string()),
|
|
251
|
+
stageChangedAt: types.nullable(types.string()),
|
|
252
|
+
profileData: types.nullable(z.any()),
|
|
253
|
+
profileUpdatedAt: types.nullable(types.string()),
|
|
254
|
+
conversationData: types.nullable(z.any()),
|
|
255
|
+
conversationUpdatedAt: types.nullable(types.string()),
|
|
256
|
+
outreachStatus: types.string(),
|
|
257
|
+
lastContactedAt: types.nullable(types.string()),
|
|
258
|
+
lastRepliedAt: types.nullable(types.string()),
|
|
259
|
+
nextFollowUpAt: types.nullable(types.string()),
|
|
260
|
+
doNotContact: types.boolean(),
|
|
261
|
+
tags: z.array(types.string()),
|
|
262
|
+
createdAt: types.string(),
|
|
263
|
+
updatedAt: types.string(),
|
|
264
|
+
activities: z.array(z.lazy(() => GetContactActivity$inboundSchema)),
|
|
265
|
+
campaigns: z.array(z.lazy(() => GetContactCampaign$inboundSchema)),
|
|
266
|
+
});
|
|
267
|
+
export function getContactContactFromJSON(jsonString) {
|
|
268
|
+
return safeParse(jsonString, (x) => GetContactContact$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetContactContact' from JSON`);
|
|
269
|
+
}
|
|
270
|
+
/** @internal */
|
|
271
|
+
export const GetContactResponse$inboundSchema = z.object({
|
|
272
|
+
success: types.literal(true),
|
|
273
|
+
contact: z.lazy(() => GetContactContact$inboundSchema),
|
|
274
|
+
creditsUsed: types.number(),
|
|
275
|
+
retryAfter: types.number(),
|
|
276
|
+
});
|
|
277
|
+
export function getContactResponseFromJSON(jsonString) {
|
|
278
|
+
return safeParse(jsonString, (x) => GetContactResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetContactResponse' from JSON`);
|
|
279
|
+
}
|
|
280
|
+
/** @internal */
|
|
281
|
+
export const UpdateLifecycleStage$outboundSchema = z.enum(UpdateLifecycleStage);
|
|
282
|
+
/** @internal */
|
|
283
|
+
export const UpdateOutreachStatus$outboundSchema = z.enum(UpdateOutreachStatus);
|
|
284
|
+
/** @internal */
|
|
285
|
+
export const Tags3$outboundSchema = z
|
|
286
|
+
.object({
|
|
287
|
+
set: z.array(z.string()),
|
|
288
|
+
});
|
|
289
|
+
export function tags3ToJSON(tags3) {
|
|
290
|
+
return JSON.stringify(Tags3$outboundSchema.parse(tags3));
|
|
291
|
+
}
|
|
292
|
+
/** @internal */
|
|
293
|
+
export const Tags2$outboundSchema = z
|
|
294
|
+
.object({
|
|
295
|
+
add: z.optional(z.array(z.string())),
|
|
296
|
+
remove: z.array(z.string()),
|
|
297
|
+
});
|
|
298
|
+
export function tags2ToJSON(tags2) {
|
|
299
|
+
return JSON.stringify(Tags2$outboundSchema.parse(tags2));
|
|
300
|
+
}
|
|
301
|
+
/** @internal */
|
|
302
|
+
export const Tags1$outboundSchema = z
|
|
303
|
+
.object({
|
|
304
|
+
add: z.array(z.string()),
|
|
305
|
+
remove: z.optional(z.array(z.string())),
|
|
306
|
+
});
|
|
307
|
+
export function tags1ToJSON(tags1) {
|
|
308
|
+
return JSON.stringify(Tags1$outboundSchema.parse(tags1));
|
|
309
|
+
}
|
|
310
|
+
/** @internal */
|
|
311
|
+
export const TagsUnion$outboundSchema = smartUnion([
|
|
312
|
+
z.lazy(() => Tags1$outboundSchema),
|
|
313
|
+
z.lazy(() => Tags2$outboundSchema),
|
|
314
|
+
z.lazy(() => Tags3$outboundSchema),
|
|
315
|
+
]);
|
|
316
|
+
export function tagsUnionToJSON(tagsUnion) {
|
|
317
|
+
return JSON.stringify(TagsUnion$outboundSchema.parse(tagsUnion));
|
|
318
|
+
}
|
|
319
|
+
/** @internal */
|
|
320
|
+
export const UpdateRequestBody$outboundSchema = z.object({
|
|
321
|
+
lifecycleStage: z.optional(UpdateLifecycleStage$outboundSchema),
|
|
322
|
+
hotScore: z.optional(z.int()),
|
|
323
|
+
qualificationNotes: z.optional(z.string()),
|
|
324
|
+
notes: z.optional(z.string()),
|
|
325
|
+
name: z.optional(z.string()),
|
|
326
|
+
profileData: z.optional(z.any()),
|
|
327
|
+
profileUpdatedAt: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
328
|
+
conversationData: z.optional(z.any()),
|
|
329
|
+
conversationUpdatedAt: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
330
|
+
outreachStatus: z.optional(UpdateOutreachStatus$outboundSchema),
|
|
331
|
+
nextFollowUpAt: z.optional(z.nullable(z.pipe(z.date(), z.transform(v => v.toISOString())))),
|
|
332
|
+
doNotContact: z.optional(z.boolean()),
|
|
333
|
+
tags: z.optional(smartUnion([
|
|
334
|
+
z.lazy(() => Tags1$outboundSchema),
|
|
335
|
+
z.lazy(() => Tags2$outboundSchema),
|
|
336
|
+
z.lazy(() => Tags3$outboundSchema),
|
|
337
|
+
])),
|
|
338
|
+
});
|
|
339
|
+
export function updateRequestBodyToJSON(updateRequestBody) {
|
|
340
|
+
return JSON.stringify(UpdateRequestBody$outboundSchema.parse(updateRequestBody));
|
|
341
|
+
}
|
|
342
|
+
/** @internal */
|
|
343
|
+
export const UpdateRequest$outboundSchema = z.object({
|
|
344
|
+
id: z.string(),
|
|
345
|
+
body: z.lazy(() => UpdateRequestBody$outboundSchema),
|
|
346
|
+
});
|
|
347
|
+
export function updateRequestToJSON(updateRequest) {
|
|
348
|
+
return JSON.stringify(UpdateRequest$outboundSchema.parse(updateRequest));
|
|
349
|
+
}
|
|
350
|
+
/** @internal */
|
|
351
|
+
export const UpdateContact$inboundSchema = z.object({
|
|
352
|
+
id: types.string(),
|
|
353
|
+
linkedinUrl: types.string(),
|
|
354
|
+
profileUrn: types.nullable(types.string()),
|
|
355
|
+
publicIdentifier: types.nullable(types.string()),
|
|
356
|
+
name: types.string(),
|
|
357
|
+
lifecycleStage: types.string(),
|
|
358
|
+
hotScore: types.number(),
|
|
359
|
+
qualificationNotes: types.nullable(types.string()),
|
|
360
|
+
notes: types.nullable(types.string()),
|
|
361
|
+
stageChangedAt: types.nullable(types.string()),
|
|
362
|
+
profileData: types.nullable(z.any()),
|
|
363
|
+
profileUpdatedAt: types.nullable(types.string()),
|
|
364
|
+
conversationData: types.nullable(z.any()),
|
|
365
|
+
conversationUpdatedAt: types.nullable(types.string()),
|
|
366
|
+
outreachStatus: types.string(),
|
|
367
|
+
lastContactedAt: types.nullable(types.string()),
|
|
368
|
+
lastRepliedAt: types.nullable(types.string()),
|
|
369
|
+
nextFollowUpAt: types.nullable(types.string()),
|
|
370
|
+
doNotContact: types.boolean(),
|
|
371
|
+
tags: z.array(types.string()),
|
|
372
|
+
createdAt: types.string(),
|
|
373
|
+
updatedAt: types.string(),
|
|
374
|
+
});
|
|
375
|
+
export function updateContactFromJSON(jsonString) {
|
|
376
|
+
return safeParse(jsonString, (x) => UpdateContact$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateContact' from JSON`);
|
|
377
|
+
}
|
|
378
|
+
/** @internal */
|
|
379
|
+
export const UpdateResponse$inboundSchema = z.object({
|
|
380
|
+
success: types.literal(true),
|
|
381
|
+
contact: z.lazy(() => UpdateContact$inboundSchema),
|
|
382
|
+
creditsUsed: types.number(),
|
|
383
|
+
retryAfter: types.number(),
|
|
384
|
+
});
|
|
385
|
+
export function updateResponseFromJSON(jsonString) {
|
|
386
|
+
return safeParse(jsonString, (x) => UpdateResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateResponse' from JSON`);
|
|
387
|
+
}
|
|
388
|
+
/** @internal */
|
|
389
|
+
export const ListActivitiesRequest$outboundSchema = z.object({
|
|
390
|
+
type: z.optional(z.string()),
|
|
391
|
+
limit: z._default(z.int(), 50),
|
|
392
|
+
offset: z._default(z.int(), 0),
|
|
393
|
+
id: z.string(),
|
|
394
|
+
});
|
|
395
|
+
export function listActivitiesRequestToJSON(listActivitiesRequest) {
|
|
396
|
+
return JSON.stringify(ListActivitiesRequest$outboundSchema.parse(listActivitiesRequest));
|
|
397
|
+
}
|
|
398
|
+
/** @internal */
|
|
399
|
+
export const ListActivitiesActivity$inboundSchema = z.object({
|
|
400
|
+
id: types.string(),
|
|
401
|
+
type: types.string(),
|
|
402
|
+
content: types.nullable(types.string()),
|
|
403
|
+
metadata: types.nullable(z.any()),
|
|
404
|
+
createdAt: types.string(),
|
|
405
|
+
});
|
|
406
|
+
export function listActivitiesActivityFromJSON(jsonString) {
|
|
407
|
+
return safeParse(jsonString, (x) => ListActivitiesActivity$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListActivitiesActivity' from JSON`);
|
|
408
|
+
}
|
|
409
|
+
/** @internal */
|
|
410
|
+
export const ListActivitiesPagination$inboundSchema = z.object({
|
|
411
|
+
limit: types.number(),
|
|
412
|
+
offset: types.number(),
|
|
413
|
+
total: types.number(),
|
|
414
|
+
});
|
|
415
|
+
export function listActivitiesPaginationFromJSON(jsonString) {
|
|
416
|
+
return safeParse(jsonString, (x) => ListActivitiesPagination$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListActivitiesPagination' from JSON`);
|
|
417
|
+
}
|
|
418
|
+
/** @internal */
|
|
419
|
+
export const ListActivitiesResponse$inboundSchema = z.object({
|
|
420
|
+
success: types.literal(true),
|
|
421
|
+
activities: z.array(z.lazy(() => ListActivitiesActivity$inboundSchema)),
|
|
422
|
+
pagination: z.lazy(() => ListActivitiesPagination$inboundSchema),
|
|
423
|
+
creditsUsed: types.number(),
|
|
424
|
+
retryAfter: types.number(),
|
|
425
|
+
});
|
|
426
|
+
export function listActivitiesResponseFromJSON(jsonString) {
|
|
427
|
+
return safeParse(jsonString, (x) => ListActivitiesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListActivitiesResponse' from JSON`);
|
|
428
|
+
}
|
|
429
|
+
/** @internal */
|
|
430
|
+
export const AddActivitiesType$outboundSchema = z.enum(AddActivitiesType);
|
|
431
|
+
/** @internal */
|
|
432
|
+
export const AddActivitiesActivity$outboundSchema = z.object({
|
|
433
|
+
type: AddActivitiesType$outboundSchema,
|
|
434
|
+
content: z.optional(z.string()),
|
|
435
|
+
metadata: z.optional(z.any()),
|
|
436
|
+
});
|
|
437
|
+
export function addActivitiesActivityToJSON(addActivitiesActivity) {
|
|
438
|
+
return JSON.stringify(AddActivitiesActivity$outboundSchema.parse(addActivitiesActivity));
|
|
439
|
+
}
|
|
440
|
+
/** @internal */
|
|
441
|
+
export const AddActivitiesRequestBody$outboundSchema = z.object({
|
|
442
|
+
activities: z.array(z.lazy(() => AddActivitiesActivity$outboundSchema)),
|
|
443
|
+
});
|
|
444
|
+
export function addActivitiesRequestBodyToJSON(addActivitiesRequestBody) {
|
|
445
|
+
return JSON.stringify(AddActivitiesRequestBody$outboundSchema.parse(addActivitiesRequestBody));
|
|
446
|
+
}
|
|
447
|
+
/** @internal */
|
|
448
|
+
export const AddActivitiesRequest$outboundSchema = z.object({
|
|
449
|
+
id: z.string(),
|
|
450
|
+
body: z.lazy(() => AddActivitiesRequestBody$outboundSchema),
|
|
451
|
+
});
|
|
452
|
+
export function addActivitiesRequestToJSON(addActivitiesRequest) {
|
|
453
|
+
return JSON.stringify(AddActivitiesRequest$outboundSchema.parse(addActivitiesRequest));
|
|
454
|
+
}
|
|
455
|
+
/** @internal */
|
|
456
|
+
export const AddActivitiesResponse$inboundSchema = z.object({
|
|
457
|
+
success: types.literal(true),
|
|
458
|
+
created: types.number(),
|
|
459
|
+
creditsUsed: types.number(),
|
|
460
|
+
retryAfter: types.number(),
|
|
461
|
+
});
|
|
462
|
+
export function addActivitiesResponseFromJSON(jsonString) {
|
|
463
|
+
return safeParse(jsonString, (x) => AddActivitiesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AddActivitiesResponse' from JSON`);
|
|
464
|
+
}
|
|
465
|
+
/** @internal */
|
|
466
|
+
export const BulkUpdateLifecycleStage$outboundSchema = z.enum(BulkUpdateLifecycleStage);
|
|
467
|
+
/** @internal */
|
|
468
|
+
export const BulkUpdateOutreachStatus$outboundSchema = z.enum(BulkUpdateOutreachStatus);
|
|
469
|
+
/** @internal */
|
|
470
|
+
export const BulkUpdateTags3$outboundSchema = z.object({
|
|
471
|
+
set: z.array(z.string()),
|
|
472
|
+
});
|
|
473
|
+
export function bulkUpdateTags3ToJSON(bulkUpdateTags3) {
|
|
474
|
+
return JSON.stringify(BulkUpdateTags3$outboundSchema.parse(bulkUpdateTags3));
|
|
475
|
+
}
|
|
476
|
+
/** @internal */
|
|
477
|
+
export const BulkUpdateTags2$outboundSchema = z.object({
|
|
478
|
+
add: z.optional(z.array(z.string())),
|
|
479
|
+
remove: z.array(z.string()),
|
|
480
|
+
});
|
|
481
|
+
export function bulkUpdateTags2ToJSON(bulkUpdateTags2) {
|
|
482
|
+
return JSON.stringify(BulkUpdateTags2$outboundSchema.parse(bulkUpdateTags2));
|
|
483
|
+
}
|
|
484
|
+
/** @internal */
|
|
485
|
+
export const BulkUpdateTags1$outboundSchema = z.object({
|
|
486
|
+
add: z.array(z.string()),
|
|
487
|
+
remove: z.optional(z.array(z.string())),
|
|
488
|
+
});
|
|
489
|
+
export function bulkUpdateTags1ToJSON(bulkUpdateTags1) {
|
|
490
|
+
return JSON.stringify(BulkUpdateTags1$outboundSchema.parse(bulkUpdateTags1));
|
|
491
|
+
}
|
|
492
|
+
/** @internal */
|
|
493
|
+
export const BulkUpdateTagsUnion$outboundSchema = smartUnion([
|
|
494
|
+
z.lazy(() => BulkUpdateTags1$outboundSchema),
|
|
495
|
+
z.lazy(() => BulkUpdateTags2$outboundSchema),
|
|
496
|
+
z.lazy(() => BulkUpdateTags3$outboundSchema),
|
|
497
|
+
]);
|
|
498
|
+
export function bulkUpdateTagsUnionToJSON(bulkUpdateTagsUnion) {
|
|
499
|
+
return JSON.stringify(BulkUpdateTagsUnion$outboundSchema.parse(bulkUpdateTagsUnion));
|
|
500
|
+
}
|
|
501
|
+
/** @internal */
|
|
502
|
+
export const Update$outboundSchema = z
|
|
503
|
+
.object({
|
|
504
|
+
lifecycleStage: z.optional(BulkUpdateLifecycleStage$outboundSchema),
|
|
505
|
+
hotScore: z.optional(z.int()),
|
|
506
|
+
qualificationNotes: z.optional(z.string()),
|
|
507
|
+
notes: z.optional(z.string()),
|
|
508
|
+
outreachStatus: z.optional(BulkUpdateOutreachStatus$outboundSchema),
|
|
509
|
+
nextFollowUpAt: z.optional(z.nullable(z.pipe(z.date(), z.transform(v => v.toISOString())))),
|
|
510
|
+
doNotContact: z.optional(z.boolean()),
|
|
511
|
+
tags: z.optional(smartUnion([
|
|
512
|
+
z.lazy(() => BulkUpdateTags1$outboundSchema),
|
|
513
|
+
z.lazy(() => BulkUpdateTags2$outboundSchema),
|
|
514
|
+
z.lazy(() => BulkUpdateTags3$outboundSchema),
|
|
515
|
+
])),
|
|
516
|
+
});
|
|
517
|
+
export function updateToJSON(update) {
|
|
518
|
+
return JSON.stringify(Update$outboundSchema.parse(update));
|
|
519
|
+
}
|
|
520
|
+
/** @internal */
|
|
521
|
+
export const BulkUpdateRequest$outboundSchema = z.object({
|
|
522
|
+
contactIds: z.array(z.string()),
|
|
523
|
+
update: z.lazy(() => Update$outboundSchema),
|
|
524
|
+
});
|
|
525
|
+
export function bulkUpdateRequestToJSON(bulkUpdateRequest) {
|
|
526
|
+
return JSON.stringify(BulkUpdateRequest$outboundSchema.parse(bulkUpdateRequest));
|
|
527
|
+
}
|
|
528
|
+
/** @internal */
|
|
529
|
+
export const BulkUpdateResponse$inboundSchema = z.object({
|
|
530
|
+
success: types.literal(true),
|
|
531
|
+
updated: types.number(),
|
|
532
|
+
skipped: types.number(),
|
|
533
|
+
errors: z.array(types.string()),
|
|
534
|
+
creditsUsed: types.number(),
|
|
535
|
+
retryAfter: types.number(),
|
|
536
|
+
});
|
|
537
|
+
export function bulkUpdateResponseFromJSON(jsonString) {
|
|
538
|
+
return safeParse(jsonString, (x) => BulkUpdateResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BulkUpdateResponse' from JSON`);
|
|
539
|
+
}
|
|
540
|
+
/** @internal */
|
|
541
|
+
export const GetContactStatsRequest$outboundSchema = z.object({
|
|
542
|
+
campaignId: z.optional(z.string()),
|
|
543
|
+
});
|
|
544
|
+
export function getContactStatsRequestToJSON(getContactStatsRequest) {
|
|
545
|
+
return JSON.stringify(GetContactStatsRequest$outboundSchema.parse(getContactStatsRequest));
|
|
546
|
+
}
|
|
547
|
+
/** @internal */
|
|
548
|
+
export const Funnel$inboundSchema = z.object({
|
|
549
|
+
contact: types.number(),
|
|
550
|
+
lead: types.number(),
|
|
551
|
+
qualified: types.number(),
|
|
552
|
+
approved: types.number(),
|
|
553
|
+
rejected: types.number(),
|
|
554
|
+
});
|
|
555
|
+
export function funnelFromJSON(jsonString) {
|
|
556
|
+
return safeParse(jsonString, (x) => Funnel$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Funnel' from JSON`);
|
|
557
|
+
}
|
|
558
|
+
/** @internal */
|
|
559
|
+
export const BySourceAngle$inboundSchema = z.object({
|
|
560
|
+
total: types.number(),
|
|
561
|
+
contact: types.number(),
|
|
562
|
+
lead: types.number(),
|
|
563
|
+
qualified: types.number(),
|
|
564
|
+
approved: types.number(),
|
|
565
|
+
rejected: types.number(),
|
|
566
|
+
});
|
|
567
|
+
export function bySourceAngleFromJSON(jsonString) {
|
|
568
|
+
return safeParse(jsonString, (x) => BySourceAngle$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BySourceAngle' from JSON`);
|
|
569
|
+
}
|
|
570
|
+
/** @internal */
|
|
571
|
+
export const ByCampaign$inboundSchema = z
|
|
572
|
+
.object({
|
|
573
|
+
name: types.string(),
|
|
574
|
+
total: types.number(),
|
|
575
|
+
contact: types.number(),
|
|
576
|
+
lead: types.number(),
|
|
577
|
+
qualified: types.number(),
|
|
578
|
+
approved: types.number(),
|
|
579
|
+
rejected: types.number(),
|
|
580
|
+
});
|
|
581
|
+
export function byCampaignFromJSON(jsonString) {
|
|
582
|
+
return safeParse(jsonString, (x) => ByCampaign$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ByCampaign' from JSON`);
|
|
583
|
+
}
|
|
584
|
+
/** @internal */
|
|
585
|
+
export const GetContactStatsDaily$inboundSchema = z.object({
|
|
586
|
+
date: types.string(),
|
|
587
|
+
created: types.number(),
|
|
588
|
+
});
|
|
589
|
+
export function getContactStatsDailyFromJSON(jsonString) {
|
|
590
|
+
return safeParse(jsonString, (x) => GetContactStatsDaily$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetContactStatsDaily' from JSON`);
|
|
591
|
+
}
|
|
592
|
+
/** @internal */
|
|
593
|
+
export const GetContactStatsResponse$inboundSchema = z.object({
|
|
594
|
+
success: types.literal(true),
|
|
595
|
+
funnel: z.lazy(() => Funnel$inboundSchema),
|
|
596
|
+
bySource: z.record(z.string(), types.number()),
|
|
597
|
+
bySourceAngle: z.record(z.string(), z.lazy(() => BySourceAngle$inboundSchema)),
|
|
598
|
+
byCampaign: z.record(z.string(), z.lazy(() => ByCampaign$inboundSchema)),
|
|
599
|
+
daily: z.array(z.lazy(() => GetContactStatsDaily$inboundSchema)),
|
|
600
|
+
creditsUsed: types.number(),
|
|
601
|
+
retryAfter: types.number(),
|
|
602
|
+
});
|
|
603
|
+
export function getContactStatsResponseFromJSON(jsonString) {
|
|
604
|
+
return safeParse(jsonString, (x) => GetContactStatsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetContactStatsResponse' from JSON`);
|
|
605
|
+
}
|
|
606
|
+
/** @internal */
|
|
607
|
+
export const KeysOnly$outboundSchema = z.enum(KeysOnly);
|
|
608
|
+
/** @internal */
|
|
609
|
+
export const ListAgentStatesRequest$outboundSchema = z.object({
|
|
610
|
+
keysOnly: z.optional(KeysOnly$outboundSchema),
|
|
611
|
+
});
|
|
612
|
+
export function listAgentStatesRequestToJSON(listAgentStatesRequest) {
|
|
613
|
+
return JSON.stringify(ListAgentStatesRequest$outboundSchema.parse(listAgentStatesRequest));
|
|
614
|
+
}
|
|
615
|
+
/** @internal */
|
|
616
|
+
export const State$inboundSchema = z.object({
|
|
617
|
+
key: types.string(),
|
|
618
|
+
data: z.any(),
|
|
619
|
+
updatedAt: types.nullable(types.string()),
|
|
620
|
+
});
|
|
621
|
+
export function stateFromJSON(jsonString) {
|
|
622
|
+
return safeParse(jsonString, (x) => State$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'State' from JSON`);
|
|
623
|
+
}
|
|
624
|
+
/** @internal */
|
|
625
|
+
export const ListAgentStatesResponse$inboundSchema = z.object({
|
|
626
|
+
success: types.literal(true),
|
|
627
|
+
states: z.array(z.lazy(() => State$inboundSchema)),
|
|
628
|
+
creditsUsed: types.number(),
|
|
629
|
+
retryAfter: types.number(),
|
|
630
|
+
});
|
|
631
|
+
export function listAgentStatesResponseFromJSON(jsonString) {
|
|
632
|
+
return safeParse(jsonString, (x) => ListAgentStatesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentStatesResponse' from JSON`);
|
|
633
|
+
}
|
|
634
|
+
/** @internal */
|
|
635
|
+
export const GetAgentStateRequest$outboundSchema = z.object({
|
|
636
|
+
key: z.string(),
|
|
637
|
+
});
|
|
638
|
+
export function getAgentStateRequestToJSON(getAgentStateRequest) {
|
|
639
|
+
return JSON.stringify(GetAgentStateRequest$outboundSchema.parse(getAgentStateRequest));
|
|
640
|
+
}
|
|
641
|
+
/** @internal */
|
|
642
|
+
export const GetAgentStateResponse$inboundSchema = z.object({
|
|
643
|
+
success: types.literal(true),
|
|
644
|
+
key: types.string(),
|
|
645
|
+
data: z.any(),
|
|
646
|
+
updatedAt: types.nullable(types.string()),
|
|
647
|
+
creditsUsed: types.number(),
|
|
648
|
+
retryAfter: types.number(),
|
|
649
|
+
});
|
|
650
|
+
export function getAgentStateResponseFromJSON(jsonString) {
|
|
651
|
+
return safeParse(jsonString, (x) => GetAgentStateResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentStateResponse' from JSON`);
|
|
652
|
+
}
|
|
653
|
+
/** @internal */
|
|
654
|
+
export const SetAgentStateRequestBody$outboundSchema = z.object({
|
|
655
|
+
data: z.any(),
|
|
656
|
+
});
|
|
657
|
+
export function setAgentStateRequestBodyToJSON(setAgentStateRequestBody) {
|
|
658
|
+
return JSON.stringify(SetAgentStateRequestBody$outboundSchema.parse(setAgentStateRequestBody));
|
|
659
|
+
}
|
|
660
|
+
/** @internal */
|
|
661
|
+
export const SetAgentStateRequest$outboundSchema = z.object({
|
|
662
|
+
key: z.string(),
|
|
663
|
+
body: z.lazy(() => SetAgentStateRequestBody$outboundSchema),
|
|
664
|
+
});
|
|
665
|
+
export function setAgentStateRequestToJSON(setAgentStateRequest) {
|
|
666
|
+
return JSON.stringify(SetAgentStateRequest$outboundSchema.parse(setAgentStateRequest));
|
|
667
|
+
}
|
|
668
|
+
/** @internal */
|
|
669
|
+
export const SetAgentStateResponse$inboundSchema = z.object({
|
|
670
|
+
success: types.literal(true),
|
|
671
|
+
key: types.string(),
|
|
672
|
+
data: z.any(),
|
|
673
|
+
updatedAt: types.nullable(types.string()),
|
|
674
|
+
creditsUsed: types.number(),
|
|
675
|
+
retryAfter: types.number(),
|
|
676
|
+
});
|
|
677
|
+
export function setAgentStateResponseFromJSON(jsonString) {
|
|
678
|
+
return safeParse(jsonString, (x) => SetAgentStateResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SetAgentStateResponse' from JSON`);
|
|
679
|
+
}
|
|
680
|
+
/** @internal */
|
|
681
|
+
export const DeleteAgentStateRequest$outboundSchema = z.object({
|
|
682
|
+
key: z.string(),
|
|
683
|
+
});
|
|
684
|
+
export function deleteAgentStateRequestToJSON(deleteAgentStateRequest) {
|
|
685
|
+
return JSON.stringify(DeleteAgentStateRequest$outboundSchema.parse(deleteAgentStateRequest));
|
|
686
|
+
}
|
|
687
|
+
/** @internal */
|
|
688
|
+
export const DeleteAgentStateResponse$inboundSchema = z.object({
|
|
689
|
+
success: types.literal(true),
|
|
690
|
+
creditsUsed: types.number(),
|
|
691
|
+
retryAfter: types.number(),
|
|
692
|
+
});
|
|
693
|
+
export function deleteAgentStateResponseFromJSON(jsonString) {
|
|
694
|
+
return safeParse(jsonString, (x) => DeleteAgentStateResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteAgentStateResponse' from JSON`);
|
|
695
|
+
}
|
|
696
|
+
/** @internal */
|
|
697
|
+
export const PatchAgentStateRequestBody$outboundSchema = z.object({
|
|
698
|
+
data: z.record(z.string(), z.any()),
|
|
699
|
+
});
|
|
700
|
+
export function patchAgentStateRequestBodyToJSON(patchAgentStateRequestBody) {
|
|
701
|
+
return JSON.stringify(PatchAgentStateRequestBody$outboundSchema.parse(patchAgentStateRequestBody));
|
|
702
|
+
}
|
|
703
|
+
/** @internal */
|
|
704
|
+
export const PatchAgentStateRequest$outboundSchema = z.object({
|
|
705
|
+
key: z.string(),
|
|
706
|
+
body: z.lazy(() => PatchAgentStateRequestBody$outboundSchema),
|
|
707
|
+
});
|
|
708
|
+
export function patchAgentStateRequestToJSON(patchAgentStateRequest) {
|
|
709
|
+
return JSON.stringify(PatchAgentStateRequest$outboundSchema.parse(patchAgentStateRequest));
|
|
710
|
+
}
|
|
711
|
+
/** @internal */
|
|
712
|
+
export const PatchAgentStateResponse$inboundSchema = z.object({
|
|
713
|
+
success: types.literal(true),
|
|
714
|
+
key: types.string(),
|
|
715
|
+
data: z.any(),
|
|
716
|
+
updatedAt: types.nullable(types.string()),
|
|
717
|
+
creditsUsed: types.number(),
|
|
718
|
+
retryAfter: types.number(),
|
|
719
|
+
});
|
|
720
|
+
export function patchAgentStateResponseFromJSON(jsonString) {
|
|
721
|
+
return safeParse(jsonString, (x) => PatchAgentStateResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchAgentStateResponse' from JSON`);
|
|
722
|
+
}
|
|
723
|
+
/** @internal */
|
|
724
|
+
export const ListCampaignsType$outboundSchema = z.enum(ListCampaignsType);
|
|
725
|
+
/** @internal */
|
|
726
|
+
export const ListCampaignsRequest$outboundSchema = z.object({
|
|
727
|
+
type: z.optional(ListCampaignsType$outboundSchema),
|
|
728
|
+
status: z.optional(z.string()),
|
|
729
|
+
limit: z._default(z.int(), 50),
|
|
730
|
+
offset: z._default(z.int(), 0),
|
|
731
|
+
});
|
|
732
|
+
export function listCampaignsRequestToJSON(listCampaignsRequest) {
|
|
733
|
+
return JSON.stringify(ListCampaignsRequest$outboundSchema.parse(listCampaignsRequest));
|
|
734
|
+
}
|
|
735
|
+
/** @internal */
|
|
736
|
+
export const ListCampaignsStageCounts$inboundSchema = z.object({
|
|
737
|
+
contact: types.number(),
|
|
738
|
+
lead: types.number(),
|
|
739
|
+
qualified: types.number(),
|
|
740
|
+
approved: types.number(),
|
|
741
|
+
rejected: types.number(),
|
|
742
|
+
});
|
|
743
|
+
export function listCampaignsStageCountsFromJSON(jsonString) {
|
|
744
|
+
return safeParse(jsonString, (x) => ListCampaignsStageCounts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListCampaignsStageCounts' from JSON`);
|
|
745
|
+
}
|
|
746
|
+
/** @internal */
|
|
747
|
+
export const ListCampaignsCampaign$inboundSchema = z.object({
|
|
748
|
+
id: types.string(),
|
|
749
|
+
name: types.string(),
|
|
750
|
+
description: types.nullable(types.string()),
|
|
751
|
+
context: types.nullable(types.string()),
|
|
752
|
+
type: types.string(),
|
|
753
|
+
status: types.string(),
|
|
754
|
+
totalContacts: types.number(),
|
|
755
|
+
stageCounts: types.optional(z.lazy(() => ListCampaignsStageCounts$inboundSchema)),
|
|
756
|
+
createdAt: types.string(),
|
|
757
|
+
updatedAt: types.string(),
|
|
758
|
+
});
|
|
759
|
+
export function listCampaignsCampaignFromJSON(jsonString) {
|
|
760
|
+
return safeParse(jsonString, (x) => ListCampaignsCampaign$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListCampaignsCampaign' from JSON`);
|
|
761
|
+
}
|
|
762
|
+
/** @internal */
|
|
763
|
+
export const ListCampaignsPagination$inboundSchema = z.object({
|
|
764
|
+
limit: types.number(),
|
|
765
|
+
offset: types.number(),
|
|
766
|
+
total: types.number(),
|
|
767
|
+
});
|
|
768
|
+
export function listCampaignsPaginationFromJSON(jsonString) {
|
|
769
|
+
return safeParse(jsonString, (x) => ListCampaignsPagination$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListCampaignsPagination' from JSON`);
|
|
770
|
+
}
|
|
771
|
+
/** @internal */
|
|
772
|
+
export const ListCampaignsResponse$inboundSchema = z.object({
|
|
773
|
+
success: types.literal(true),
|
|
774
|
+
campaigns: z.array(z.lazy(() => ListCampaignsCampaign$inboundSchema)),
|
|
775
|
+
pagination: z.lazy(() => ListCampaignsPagination$inboundSchema),
|
|
776
|
+
creditsUsed: types.number(),
|
|
777
|
+
retryAfter: types.number(),
|
|
778
|
+
});
|
|
779
|
+
export function listCampaignsResponseFromJSON(jsonString) {
|
|
780
|
+
return safeParse(jsonString, (x) => ListCampaignsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListCampaignsResponse' from JSON`);
|
|
781
|
+
}
|
|
782
|
+
/** @internal */
|
|
783
|
+
export const CreateCampaignType$outboundSchema = z.enum(CreateCampaignType);
|
|
784
|
+
/** @internal */
|
|
785
|
+
export const CreateCampaignRequest$outboundSchema = z.object({
|
|
786
|
+
name: z.string(),
|
|
787
|
+
description: z.optional(z.string()),
|
|
788
|
+
context: z.optional(z.string()),
|
|
789
|
+
type: z._default(CreateCampaignType$outboundSchema, "lead_gen"),
|
|
790
|
+
});
|
|
791
|
+
export function createCampaignRequestToJSON(createCampaignRequest) {
|
|
792
|
+
return JSON.stringify(CreateCampaignRequest$outboundSchema.parse(createCampaignRequest));
|
|
793
|
+
}
|
|
794
|
+
/** @internal */
|
|
795
|
+
export const CreateCampaignStageCounts$inboundSchema = z.object({
|
|
796
|
+
contact: types.number(),
|
|
797
|
+
lead: types.number(),
|
|
798
|
+
qualified: types.number(),
|
|
799
|
+
approved: types.number(),
|
|
800
|
+
rejected: types.number(),
|
|
801
|
+
});
|
|
802
|
+
export function createCampaignStageCountsFromJSON(jsonString) {
|
|
803
|
+
return safeParse(jsonString, (x) => CreateCampaignStageCounts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateCampaignStageCounts' from JSON`);
|
|
804
|
+
}
|
|
805
|
+
/** @internal */
|
|
806
|
+
export const CreateCampaignCampaign$inboundSchema = z.object({
|
|
807
|
+
id: types.string(),
|
|
808
|
+
name: types.string(),
|
|
809
|
+
description: types.nullable(types.string()),
|
|
810
|
+
context: types.nullable(types.string()),
|
|
811
|
+
type: types.string(),
|
|
812
|
+
status: types.string(),
|
|
813
|
+
totalContacts: types.number(),
|
|
814
|
+
stageCounts: types.optional(z.lazy(() => CreateCampaignStageCounts$inboundSchema)),
|
|
815
|
+
createdAt: types.string(),
|
|
816
|
+
updatedAt: types.string(),
|
|
817
|
+
});
|
|
818
|
+
export function createCampaignCampaignFromJSON(jsonString) {
|
|
819
|
+
return safeParse(jsonString, (x) => CreateCampaignCampaign$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateCampaignCampaign' from JSON`);
|
|
820
|
+
}
|
|
821
|
+
/** @internal */
|
|
822
|
+
export const CreateCampaignResponse$inboundSchema = z.object({
|
|
823
|
+
success: types.literal(true),
|
|
824
|
+
campaign: z.lazy(() => CreateCampaignCampaign$inboundSchema),
|
|
825
|
+
creditsUsed: types.number(),
|
|
826
|
+
retryAfter: types.number(),
|
|
827
|
+
});
|
|
828
|
+
export function createCampaignResponseFromJSON(jsonString) {
|
|
829
|
+
return safeParse(jsonString, (x) => CreateCampaignResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateCampaignResponse' from JSON`);
|
|
830
|
+
}
|
|
831
|
+
/** @internal */
|
|
832
|
+
export const GetCampaignRequest$outboundSchema = z.object({
|
|
833
|
+
campaignId: z.string(),
|
|
834
|
+
});
|
|
835
|
+
export function getCampaignRequestToJSON(getCampaignRequest) {
|
|
836
|
+
return JSON.stringify(GetCampaignRequest$outboundSchema.parse(getCampaignRequest));
|
|
837
|
+
}
|
|
838
|
+
/** @internal */
|
|
839
|
+
export const GetCampaignStageCounts$inboundSchema = z.object({
|
|
840
|
+
contact: types.number(),
|
|
841
|
+
lead: types.number(),
|
|
842
|
+
qualified: types.number(),
|
|
843
|
+
approved: types.number(),
|
|
844
|
+
rejected: types.number(),
|
|
845
|
+
});
|
|
846
|
+
export function getCampaignStageCountsFromJSON(jsonString) {
|
|
847
|
+
return safeParse(jsonString, (x) => GetCampaignStageCounts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCampaignStageCounts' from JSON`);
|
|
848
|
+
}
|
|
849
|
+
/** @internal */
|
|
850
|
+
export const GetCampaignCampaign$inboundSchema = z.object({
|
|
851
|
+
id: types.string(),
|
|
852
|
+
name: types.string(),
|
|
853
|
+
description: types.nullable(types.string()),
|
|
854
|
+
context: types.nullable(types.string()),
|
|
855
|
+
type: types.string(),
|
|
856
|
+
status: types.string(),
|
|
857
|
+
totalContacts: types.number(),
|
|
858
|
+
stageCounts: types.optional(z.lazy(() => GetCampaignStageCounts$inboundSchema)),
|
|
859
|
+
createdAt: types.string(),
|
|
860
|
+
updatedAt: types.string(),
|
|
861
|
+
});
|
|
862
|
+
export function getCampaignCampaignFromJSON(jsonString) {
|
|
863
|
+
return safeParse(jsonString, (x) => GetCampaignCampaign$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCampaignCampaign' from JSON`);
|
|
864
|
+
}
|
|
865
|
+
/** @internal */
|
|
866
|
+
export const GetCampaignResponse$inboundSchema = z.object({
|
|
867
|
+
success: types.literal(true),
|
|
868
|
+
campaign: z.lazy(() => GetCampaignCampaign$inboundSchema),
|
|
869
|
+
creditsUsed: types.number(),
|
|
870
|
+
retryAfter: types.number(),
|
|
871
|
+
});
|
|
872
|
+
export function getCampaignResponseFromJSON(jsonString) {
|
|
873
|
+
return safeParse(jsonString, (x) => GetCampaignResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCampaignResponse' from JSON`);
|
|
874
|
+
}
|
|
875
|
+
/** @internal */
|
|
876
|
+
export const DeleteCampaignRequest$outboundSchema = z.object({
|
|
877
|
+
campaignId: z.string(),
|
|
878
|
+
});
|
|
879
|
+
export function deleteCampaignRequestToJSON(deleteCampaignRequest) {
|
|
880
|
+
return JSON.stringify(DeleteCampaignRequest$outboundSchema.parse(deleteCampaignRequest));
|
|
881
|
+
}
|
|
882
|
+
/** @internal */
|
|
883
|
+
export const DeleteCampaignResponse$inboundSchema = z.object({
|
|
884
|
+
success: types.literal(true),
|
|
885
|
+
creditsUsed: types.number(),
|
|
886
|
+
retryAfter: types.number(),
|
|
887
|
+
});
|
|
888
|
+
export function deleteCampaignResponseFromJSON(jsonString) {
|
|
889
|
+
return safeParse(jsonString, (x) => DeleteCampaignResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteCampaignResponse' from JSON`);
|
|
890
|
+
}
|
|
891
|
+
/** @internal */
|
|
892
|
+
export const UpdateCampaignStatus$outboundSchema = z.enum(UpdateCampaignStatus);
|
|
893
|
+
/** @internal */
|
|
894
|
+
export const UpdateCampaignRequestBody$outboundSchema = z.object({
|
|
895
|
+
name: z.optional(z.string()),
|
|
896
|
+
description: z.optional(z.string()),
|
|
897
|
+
context: z.optional(z.string()),
|
|
898
|
+
status: z.optional(UpdateCampaignStatus$outboundSchema),
|
|
899
|
+
scheduledStartTime: z.optional(z.string()),
|
|
900
|
+
scheduledStopTime: z.optional(z.string()),
|
|
901
|
+
timezone: z.optional(z.string()),
|
|
902
|
+
runDays: z.optional(z.array(z.string())),
|
|
903
|
+
dailyActionLimit: z.optional(z.nullable(z.int())),
|
|
904
|
+
});
|
|
905
|
+
export function updateCampaignRequestBodyToJSON(updateCampaignRequestBody) {
|
|
906
|
+
return JSON.stringify(UpdateCampaignRequestBody$outboundSchema.parse(updateCampaignRequestBody));
|
|
907
|
+
}
|
|
908
|
+
/** @internal */
|
|
909
|
+
export const UpdateCampaignRequest$outboundSchema = z.object({
|
|
910
|
+
campaignId: z.string(),
|
|
911
|
+
body: z.lazy(() => UpdateCampaignRequestBody$outboundSchema),
|
|
912
|
+
});
|
|
913
|
+
export function updateCampaignRequestToJSON(updateCampaignRequest) {
|
|
914
|
+
return JSON.stringify(UpdateCampaignRequest$outboundSchema.parse(updateCampaignRequest));
|
|
915
|
+
}
|
|
916
|
+
/** @internal */
|
|
917
|
+
export const UpdateCampaignStageCounts$inboundSchema = z.object({
|
|
918
|
+
contact: types.number(),
|
|
919
|
+
lead: types.number(),
|
|
920
|
+
qualified: types.number(),
|
|
921
|
+
approved: types.number(),
|
|
922
|
+
rejected: types.number(),
|
|
923
|
+
});
|
|
924
|
+
export function updateCampaignStageCountsFromJSON(jsonString) {
|
|
925
|
+
return safeParse(jsonString, (x) => UpdateCampaignStageCounts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateCampaignStageCounts' from JSON`);
|
|
926
|
+
}
|
|
927
|
+
/** @internal */
|
|
928
|
+
export const UpdateCampaignCampaign$inboundSchema = z.object({
|
|
929
|
+
id: types.string(),
|
|
930
|
+
name: types.string(),
|
|
931
|
+
description: types.nullable(types.string()),
|
|
932
|
+
context: types.nullable(types.string()),
|
|
933
|
+
type: types.string(),
|
|
934
|
+
status: types.string(),
|
|
935
|
+
totalContacts: types.number(),
|
|
936
|
+
stageCounts: types.optional(z.lazy(() => UpdateCampaignStageCounts$inboundSchema)),
|
|
937
|
+
createdAt: types.string(),
|
|
938
|
+
updatedAt: types.string(),
|
|
939
|
+
});
|
|
940
|
+
export function updateCampaignCampaignFromJSON(jsonString) {
|
|
941
|
+
return safeParse(jsonString, (x) => UpdateCampaignCampaign$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateCampaignCampaign' from JSON`);
|
|
942
|
+
}
|
|
943
|
+
/** @internal */
|
|
944
|
+
export const UpdateCampaignResponse$inboundSchema = z.object({
|
|
945
|
+
success: types.literal(true),
|
|
946
|
+
campaign: z.lazy(() => UpdateCampaignCampaign$inboundSchema),
|
|
947
|
+
creditsUsed: types.number(),
|
|
948
|
+
retryAfter: types.number(),
|
|
949
|
+
});
|
|
950
|
+
export function updateCampaignResponseFromJSON(jsonString) {
|
|
951
|
+
return safeParse(jsonString, (x) => UpdateCampaignResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateCampaignResponse' from JSON`);
|
|
952
|
+
}
|
|
953
|
+
/** @internal */
|
|
954
|
+
export const CampaignStatusTransitionAction$outboundSchema = z.enum(CampaignStatusTransitionAction);
|
|
955
|
+
/** @internal */
|
|
956
|
+
export const CampaignStatusTransitionRequestBody$outboundSchema = z.object({
|
|
957
|
+
action: CampaignStatusTransitionAction$outboundSchema,
|
|
958
|
+
scheduledStartTime: z.optional(z.string()),
|
|
959
|
+
scheduledStopTime: z.optional(z.string()),
|
|
960
|
+
timezone: z.optional(z.string()),
|
|
961
|
+
runDays: z.optional(z.array(z.string())),
|
|
962
|
+
dailyActionLimit: z.optional(z.int()),
|
|
963
|
+
});
|
|
964
|
+
export function campaignStatusTransitionRequestBodyToJSON(campaignStatusTransitionRequestBody) {
|
|
965
|
+
return JSON.stringify(CampaignStatusTransitionRequestBody$outboundSchema.parse(campaignStatusTransitionRequestBody));
|
|
966
|
+
}
|
|
967
|
+
/** @internal */
|
|
968
|
+
export const CampaignStatusTransitionRequest$outboundSchema = z.object({
|
|
969
|
+
campaignId: z.string(),
|
|
970
|
+
body: z.lazy(() => CampaignStatusTransitionRequestBody$outboundSchema),
|
|
971
|
+
});
|
|
972
|
+
export function campaignStatusTransitionRequestToJSON(campaignStatusTransitionRequest) {
|
|
973
|
+
return JSON.stringify(CampaignStatusTransitionRequest$outboundSchema.parse(campaignStatusTransitionRequest));
|
|
974
|
+
}
|
|
975
|
+
/** @internal */
|
|
976
|
+
export const CampaignStatusTransitionStageCounts$inboundSchema = z.object({
|
|
977
|
+
contact: types.number(),
|
|
978
|
+
lead: types.number(),
|
|
979
|
+
qualified: types.number(),
|
|
980
|
+
approved: types.number(),
|
|
981
|
+
rejected: types.number(),
|
|
982
|
+
});
|
|
983
|
+
export function campaignStatusTransitionStageCountsFromJSON(jsonString) {
|
|
984
|
+
return safeParse(jsonString, (x) => CampaignStatusTransitionStageCounts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CampaignStatusTransitionStageCounts' from JSON`);
|
|
985
|
+
}
|
|
986
|
+
/** @internal */
|
|
987
|
+
export const CampaignStatusTransitionCampaign$inboundSchema = z.object({
|
|
988
|
+
id: types.string(),
|
|
989
|
+
name: types.string(),
|
|
990
|
+
description: types.nullable(types.string()),
|
|
991
|
+
context: types.nullable(types.string()),
|
|
992
|
+
type: types.string(),
|
|
993
|
+
status: types.string(),
|
|
994
|
+
totalContacts: types.number(),
|
|
995
|
+
stageCounts: types.optional(z.lazy(() => CampaignStatusTransitionStageCounts$inboundSchema)),
|
|
996
|
+
createdAt: types.string(),
|
|
997
|
+
updatedAt: types.string(),
|
|
998
|
+
});
|
|
999
|
+
export function campaignStatusTransitionCampaignFromJSON(jsonString) {
|
|
1000
|
+
return safeParse(jsonString, (x) => CampaignStatusTransitionCampaign$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CampaignStatusTransitionCampaign' from JSON`);
|
|
1001
|
+
}
|
|
1002
|
+
/** @internal */
|
|
1003
|
+
export const CampaignStatusTransitionResponse$inboundSchema = z.object({
|
|
1004
|
+
success: types.literal(true),
|
|
1005
|
+
campaign: z.lazy(() => CampaignStatusTransitionCampaign$inboundSchema),
|
|
1006
|
+
creditsUsed: types.number(),
|
|
1007
|
+
retryAfter: types.number(),
|
|
1008
|
+
});
|
|
1009
|
+
export function campaignStatusTransitionResponseFromJSON(jsonString) {
|
|
1010
|
+
return safeParse(jsonString, (x) => CampaignStatusTransitionResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CampaignStatusTransitionResponse' from JSON`);
|
|
1011
|
+
}
|
|
1012
|
+
/** @internal */
|
|
1013
|
+
export const ListCampaignContactsLifecycleStage$outboundSchema = z.enum(ListCampaignContactsLifecycleStage);
|
|
1014
|
+
/** @internal */
|
|
1015
|
+
export const ListCampaignContactsRequest$outboundSchema = z.object({
|
|
1016
|
+
lifecycleStage: z.optional(ListCampaignContactsLifecycleStage$outboundSchema),
|
|
1017
|
+
source: z.optional(z.string()),
|
|
1018
|
+
sourceAngle: z.optional(z.string()),
|
|
1019
|
+
minHotScore: z.optional(z.int()),
|
|
1020
|
+
limit: z._default(z.int(), 50),
|
|
1021
|
+
offset: z._default(z.int(), 0),
|
|
1022
|
+
campaignId: z.string(),
|
|
1023
|
+
});
|
|
1024
|
+
export function listCampaignContactsRequestToJSON(listCampaignContactsRequest) {
|
|
1025
|
+
return JSON.stringify(ListCampaignContactsRequest$outboundSchema.parse(listCampaignContactsRequest));
|
|
1026
|
+
}
|
|
1027
|
+
/** @internal */
|
|
1028
|
+
export const ListCampaignContactsContact$inboundSchema = z.object({
|
|
1029
|
+
id: types.string(),
|
|
1030
|
+
linkedinUrl: types.string(),
|
|
1031
|
+
profileUrn: types.nullable(types.string()),
|
|
1032
|
+
publicIdentifier: types.nullable(types.string()),
|
|
1033
|
+
name: types.string(),
|
|
1034
|
+
lifecycleStage: types.string(),
|
|
1035
|
+
hotScore: types.number(),
|
|
1036
|
+
qualificationNotes: types.nullable(types.string()),
|
|
1037
|
+
notes: types.nullable(types.string()),
|
|
1038
|
+
stageChangedAt: types.nullable(types.string()),
|
|
1039
|
+
profileData: types.nullable(z.any()),
|
|
1040
|
+
profileUpdatedAt: types.nullable(types.string()),
|
|
1041
|
+
conversationData: types.nullable(z.any()),
|
|
1042
|
+
conversationUpdatedAt: types.nullable(types.string()),
|
|
1043
|
+
outreachStatus: types.string(),
|
|
1044
|
+
lastContactedAt: types.nullable(types.string()),
|
|
1045
|
+
lastRepliedAt: types.nullable(types.string()),
|
|
1046
|
+
nextFollowUpAt: types.nullable(types.string()),
|
|
1047
|
+
doNotContact: types.boolean(),
|
|
1048
|
+
tags: z.array(types.string()),
|
|
1049
|
+
createdAt: types.string(),
|
|
1050
|
+
updatedAt: types.string(),
|
|
1051
|
+
source: types.string(),
|
|
1052
|
+
sourceAngle: types.nullable(types.string()),
|
|
1053
|
+
addedAt: types.string(),
|
|
1054
|
+
});
|
|
1055
|
+
export function listCampaignContactsContactFromJSON(jsonString) {
|
|
1056
|
+
return safeParse(jsonString, (x) => ListCampaignContactsContact$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListCampaignContactsContact' from JSON`);
|
|
1057
|
+
}
|
|
1058
|
+
/** @internal */
|
|
1059
|
+
export const ListCampaignContactsPagination$inboundSchema = z.object({
|
|
1060
|
+
limit: types.number(),
|
|
1061
|
+
offset: types.number(),
|
|
1062
|
+
total: types.number(),
|
|
1063
|
+
});
|
|
1064
|
+
export function listCampaignContactsPaginationFromJSON(jsonString) {
|
|
1065
|
+
return safeParse(jsonString, (x) => ListCampaignContactsPagination$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListCampaignContactsPagination' from JSON`);
|
|
1066
|
+
}
|
|
1067
|
+
/** @internal */
|
|
1068
|
+
export const ListCampaignContactsResponse$inboundSchema = z.object({
|
|
1069
|
+
success: types.literal(true),
|
|
1070
|
+
contacts: z.array(z.lazy(() => ListCampaignContactsContact$inboundSchema)),
|
|
1071
|
+
pagination: z.lazy(() => ListCampaignContactsPagination$inboundSchema),
|
|
1072
|
+
creditsUsed: types.number(),
|
|
1073
|
+
retryAfter: types.number(),
|
|
1074
|
+
});
|
|
1075
|
+
export function listCampaignContactsResponseFromJSON(jsonString) {
|
|
1076
|
+
return safeParse(jsonString, (x) => ListCampaignContactsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListCampaignContactsResponse' from JSON`);
|
|
1077
|
+
}
|
|
1078
|
+
/** @internal */
|
|
1079
|
+
export const AddCampaignContactsSource$outboundSchema = z.enum(AddCampaignContactsSource);
|
|
1080
|
+
/** @internal */
|
|
1081
|
+
export const AddCampaignContactsLifecycleStage$outboundSchema = z.enum(AddCampaignContactsLifecycleStage);
|
|
1082
|
+
/** @internal */
|
|
1083
|
+
export const AddCampaignContactsContact$outboundSchema = z.object({
|
|
1084
|
+
linkedinUrl: z.string(),
|
|
1085
|
+
profileUrn: z.optional(z.nullable(z.string())),
|
|
1086
|
+
publicIdentifier: z.optional(z.nullable(z.string())),
|
|
1087
|
+
name: z.string(),
|
|
1088
|
+
source: z._default(AddCampaignContactsSource$outboundSchema, "manual_import"),
|
|
1089
|
+
sourceAngle: z.optional(z.string()),
|
|
1090
|
+
lifecycleStage: z.optional(AddCampaignContactsLifecycleStage$outboundSchema),
|
|
1091
|
+
hotScore: z.optional(z.int()),
|
|
1092
|
+
qualificationNotes: z.optional(z.string()),
|
|
1093
|
+
notes: z.optional(z.string()),
|
|
1094
|
+
});
|
|
1095
|
+
export function addCampaignContactsContactToJSON(addCampaignContactsContact) {
|
|
1096
|
+
return JSON.stringify(AddCampaignContactsContact$outboundSchema.parse(addCampaignContactsContact));
|
|
1097
|
+
}
|
|
1098
|
+
/** @internal */
|
|
1099
|
+
export const AddCampaignContactsRequestBody$outboundSchema = z.object({
|
|
1100
|
+
contacts: z.array(z.lazy(() => AddCampaignContactsContact$outboundSchema)),
|
|
1101
|
+
});
|
|
1102
|
+
export function addCampaignContactsRequestBodyToJSON(addCampaignContactsRequestBody) {
|
|
1103
|
+
return JSON.stringify(AddCampaignContactsRequestBody$outboundSchema.parse(addCampaignContactsRequestBody));
|
|
1104
|
+
}
|
|
1105
|
+
/** @internal */
|
|
1106
|
+
export const AddCampaignContactsRequest$outboundSchema = z.object({
|
|
1107
|
+
campaignId: z.string(),
|
|
1108
|
+
body: z.lazy(() => AddCampaignContactsRequestBody$outboundSchema),
|
|
1109
|
+
});
|
|
1110
|
+
export function addCampaignContactsRequestToJSON(addCampaignContactsRequest) {
|
|
1111
|
+
return JSON.stringify(AddCampaignContactsRequest$outboundSchema.parse(addCampaignContactsRequest));
|
|
1112
|
+
}
|
|
1113
|
+
/** @internal */
|
|
1114
|
+
export const AddCampaignContactsResults$inboundSchema = z.object({
|
|
1115
|
+
created: types.number(),
|
|
1116
|
+
skipped: types.number(),
|
|
1117
|
+
errors: z.array(types.string()),
|
|
1118
|
+
});
|
|
1119
|
+
export function addCampaignContactsResultsFromJSON(jsonString) {
|
|
1120
|
+
return safeParse(jsonString, (x) => AddCampaignContactsResults$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AddCampaignContactsResults' from JSON`);
|
|
1121
|
+
}
|
|
1122
|
+
/** @internal */
|
|
1123
|
+
export const AddCampaignContactsResponse$inboundSchema = z.object({
|
|
1124
|
+
success: types.literal(true),
|
|
1125
|
+
results: z.lazy(() => AddCampaignContactsResults$inboundSchema),
|
|
1126
|
+
creditsUsed: types.number(),
|
|
1127
|
+
retryAfter: types.number(),
|
|
1128
|
+
});
|
|
1129
|
+
export function addCampaignContactsResponseFromJSON(jsonString) {
|
|
1130
|
+
return safeParse(jsonString, (x) => AddCampaignContactsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AddCampaignContactsResponse' from JSON`);
|
|
1131
|
+
}
|
|
1132
|
+
/** @internal */
|
|
1133
|
+
export const GetByUrlRequest$outboundSchema = z.object({
|
|
1134
|
+
linkedinUrl: z.string(),
|
|
1135
|
+
});
|
|
1136
|
+
export function getByUrlRequestToJSON(getByUrlRequest) {
|
|
1137
|
+
return JSON.stringify(GetByUrlRequest$outboundSchema.parse(getByUrlRequest));
|
|
1138
|
+
}
|
|
1139
|
+
/** @internal */
|
|
1140
|
+
export const GetByUrlActivity$inboundSchema = z.object({
|
|
1141
|
+
id: types.string(),
|
|
1142
|
+
type: types.string(),
|
|
1143
|
+
content: types.nullable(types.string()),
|
|
1144
|
+
metadata: types.nullable(z.any()),
|
|
1145
|
+
createdAt: types.string(),
|
|
1146
|
+
});
|
|
1147
|
+
export function getByUrlActivityFromJSON(jsonString) {
|
|
1148
|
+
return safeParse(jsonString, (x) => GetByUrlActivity$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetByUrlActivity' from JSON`);
|
|
1149
|
+
}
|
|
1150
|
+
/** @internal */
|
|
1151
|
+
export const GetByUrlCampaign$inboundSchema = z.object({
|
|
1152
|
+
campaignId: types.string(),
|
|
1153
|
+
campaignName: types.string(),
|
|
1154
|
+
campaignStatus: types.string(),
|
|
1155
|
+
source: types.string(),
|
|
1156
|
+
sourceAngle: types.nullable(types.string()),
|
|
1157
|
+
addedAt: types.string(),
|
|
1158
|
+
});
|
|
1159
|
+
export function getByUrlCampaignFromJSON(jsonString) {
|
|
1160
|
+
return safeParse(jsonString, (x) => GetByUrlCampaign$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetByUrlCampaign' from JSON`);
|
|
1161
|
+
}
|
|
1162
|
+
/** @internal */
|
|
1163
|
+
export const GetByUrlContact$inboundSchema = z.object({
|
|
1164
|
+
id: types.string(),
|
|
1165
|
+
linkedinUrl: types.string(),
|
|
1166
|
+
profileUrn: types.nullable(types.string()),
|
|
1167
|
+
publicIdentifier: types.nullable(types.string()),
|
|
1168
|
+
name: types.string(),
|
|
1169
|
+
lifecycleStage: types.string(),
|
|
1170
|
+
hotScore: types.number(),
|
|
1171
|
+
qualificationNotes: types.nullable(types.string()),
|
|
1172
|
+
notes: types.nullable(types.string()),
|
|
1173
|
+
stageChangedAt: types.nullable(types.string()),
|
|
1174
|
+
profileData: types.nullable(z.any()),
|
|
1175
|
+
profileUpdatedAt: types.nullable(types.string()),
|
|
1176
|
+
conversationData: types.nullable(z.any()),
|
|
1177
|
+
conversationUpdatedAt: types.nullable(types.string()),
|
|
1178
|
+
outreachStatus: types.string(),
|
|
1179
|
+
lastContactedAt: types.nullable(types.string()),
|
|
1180
|
+
lastRepliedAt: types.nullable(types.string()),
|
|
1181
|
+
nextFollowUpAt: types.nullable(types.string()),
|
|
1182
|
+
doNotContact: types.boolean(),
|
|
1183
|
+
tags: z.array(types.string()),
|
|
1184
|
+
createdAt: types.string(),
|
|
1185
|
+
updatedAt: types.string(),
|
|
1186
|
+
activities: z.array(z.lazy(() => GetByUrlActivity$inboundSchema)),
|
|
1187
|
+
campaigns: z.array(z.lazy(() => GetByUrlCampaign$inboundSchema)),
|
|
1188
|
+
});
|
|
1189
|
+
export function getByUrlContactFromJSON(jsonString) {
|
|
1190
|
+
return safeParse(jsonString, (x) => GetByUrlContact$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetByUrlContact' from JSON`);
|
|
1191
|
+
}
|
|
1192
|
+
/** @internal */
|
|
1193
|
+
export const GetByUrlResponse$inboundSchema = z.object({
|
|
1194
|
+
success: types.literal(true),
|
|
1195
|
+
contact: z.lazy(() => GetByUrlContact$inboundSchema),
|
|
1196
|
+
creditsUsed: types.number(),
|
|
1197
|
+
retryAfter: types.number(),
|
|
1198
|
+
});
|
|
1199
|
+
export function getByUrlResponseFromJSON(jsonString) {
|
|
1200
|
+
return safeParse(jsonString, (x) => GetByUrlResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetByUrlResponse' from JSON`);
|
|
1201
|
+
}
|
|
1202
|
+
/** @internal */
|
|
1203
|
+
export const QueryParamStatus$outboundSchema = z.enum(QueryParamStatus);
|
|
1204
|
+
/** @internal */
|
|
1205
|
+
export const ListMessagesRequest$outboundSchema = z.object({
|
|
1206
|
+
status: z.optional(QueryParamStatus$outboundSchema),
|
|
1207
|
+
contactId: z.optional(z.string()),
|
|
1208
|
+
campaignSlug: z.optional(z.string()),
|
|
1209
|
+
limit: z._default(z.int(), 50),
|
|
1210
|
+
offset: z._default(z.int(), 0),
|
|
1211
|
+
});
|
|
1212
|
+
export function listMessagesRequestToJSON(listMessagesRequest) {
|
|
1213
|
+
return JSON.stringify(ListMessagesRequest$outboundSchema.parse(listMessagesRequest));
|
|
1214
|
+
}
|
|
1215
|
+
/** @internal */
|
|
1216
|
+
export const MessageStatus$inboundSchema = openEnums.inboundSchema(MessageStatus);
|
|
1217
|
+
/** @internal */
|
|
1218
|
+
export const ListMessagesMessage$inboundSchema = z.object({
|
|
1219
|
+
id: types.string(),
|
|
1220
|
+
contactId: types.string(),
|
|
1221
|
+
contactName: z.optional(z.nullable(types.string())),
|
|
1222
|
+
contactLinkedinUrl: z.optional(z.nullable(types.string())),
|
|
1223
|
+
message: types.string(),
|
|
1224
|
+
status: MessageStatus$inboundSchema,
|
|
1225
|
+
scheduledSendAt: types.nullable(types.string()),
|
|
1226
|
+
sentAt: types.nullable(types.string()),
|
|
1227
|
+
campaignSlug: types.nullable(types.string()),
|
|
1228
|
+
errorMessage: z.optional(z.nullable(types.string())),
|
|
1229
|
+
createdAt: types.string(),
|
|
1230
|
+
});
|
|
1231
|
+
export function listMessagesMessageFromJSON(jsonString) {
|
|
1232
|
+
return safeParse(jsonString, (x) => ListMessagesMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListMessagesMessage' from JSON`);
|
|
1233
|
+
}
|
|
1234
|
+
/** @internal */
|
|
1235
|
+
export const ListMessagesResponse$inboundSchema = z.object({
|
|
1236
|
+
success: types.literal(true),
|
|
1237
|
+
messages: z.array(z.lazy(() => ListMessagesMessage$inboundSchema)),
|
|
1238
|
+
total: types.number(),
|
|
1239
|
+
limit: types.number(),
|
|
1240
|
+
offset: types.number(),
|
|
1241
|
+
creditsUsed: types.number(),
|
|
1242
|
+
retryAfter: types.number(),
|
|
1243
|
+
});
|
|
1244
|
+
export function listMessagesResponseFromJSON(jsonString) {
|
|
1245
|
+
return safeParse(jsonString, (x) => ListMessagesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListMessagesResponse' from JSON`);
|
|
1246
|
+
}
|
|
1247
|
+
/** @internal */
|
|
1248
|
+
export const CreateStatusRequest$outboundSchema = z.enum(CreateStatusRequest);
|
|
1249
|
+
/** @internal */
|
|
1250
|
+
export const CreateRequest$outboundSchema = z.object({
|
|
1251
|
+
contactId: z.string(),
|
|
1252
|
+
message: z.string(),
|
|
1253
|
+
status: z.optional(CreateStatusRequest$outboundSchema),
|
|
1254
|
+
scheduledSendAt: z.optional(z.string()),
|
|
1255
|
+
campaignSlug: z.optional(z.string()),
|
|
1256
|
+
});
|
|
1257
|
+
export function createRequestToJSON(createRequest) {
|
|
1258
|
+
return JSON.stringify(CreateRequest$outboundSchema.parse(createRequest));
|
|
1259
|
+
}
|
|
1260
|
+
/** @internal */
|
|
1261
|
+
export const ScheduledMessageStatus$inboundSchema = openEnums.inboundSchema(ScheduledMessageStatus);
|
|
1262
|
+
/** @internal */
|
|
1263
|
+
export const ScheduledMessage$inboundSchema = z.object({
|
|
1264
|
+
id: types.string(),
|
|
1265
|
+
contactId: types.string(),
|
|
1266
|
+
contactName: z.optional(z.nullable(types.string())),
|
|
1267
|
+
contactLinkedinUrl: z.optional(z.nullable(types.string())),
|
|
1268
|
+
message: types.string(),
|
|
1269
|
+
status: ScheduledMessageStatus$inboundSchema,
|
|
1270
|
+
scheduledSendAt: types.nullable(types.string()),
|
|
1271
|
+
sentAt: types.nullable(types.string()),
|
|
1272
|
+
campaignSlug: types.nullable(types.string()),
|
|
1273
|
+
errorMessage: z.optional(z.nullable(types.string())),
|
|
1274
|
+
createdAt: types.string(),
|
|
1275
|
+
});
|
|
1276
|
+
export function scheduledMessageFromJSON(jsonString) {
|
|
1277
|
+
return safeParse(jsonString, (x) => ScheduledMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ScheduledMessage' from JSON`);
|
|
1278
|
+
}
|
|
1279
|
+
/** @internal */
|
|
1280
|
+
export const CreateResponse$inboundSchema = z.object({
|
|
1281
|
+
success: types.literal(true),
|
|
1282
|
+
scheduledMessage: z.lazy(() => ScheduledMessage$inboundSchema),
|
|
1283
|
+
creditsUsed: types.number(),
|
|
1284
|
+
retryAfter: types.number(),
|
|
1285
|
+
});
|
|
1286
|
+
export function createResponseFromJSON(jsonString) {
|
|
1287
|
+
return safeParse(jsonString, (x) => CreateResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateResponse' from JSON`);
|
|
1288
|
+
}
|
|
1289
|
+
/** @internal */
|
|
1290
|
+
export const BatchScheduleRequest$outboundSchema = z.object({
|
|
1291
|
+
contactIds: z.optional(z.array(z.string())),
|
|
1292
|
+
messageIds: z.optional(z.array(z.string())),
|
|
1293
|
+
scheduledSendAt: z.string(),
|
|
1294
|
+
});
|
|
1295
|
+
export function batchScheduleRequestToJSON(batchScheduleRequest) {
|
|
1296
|
+
return JSON.stringify(BatchScheduleRequest$outboundSchema.parse(batchScheduleRequest));
|
|
1297
|
+
}
|
|
1298
|
+
/** @internal */
|
|
1299
|
+
export const BatchScheduleResponse$inboundSchema = z.object({
|
|
1300
|
+
success: types.literal(true),
|
|
1301
|
+
scheduled: types.number(),
|
|
1302
|
+
scheduledSendAt: types.string(),
|
|
1303
|
+
creditsUsed: types.number(),
|
|
1304
|
+
retryAfter: types.number(),
|
|
1305
|
+
});
|
|
1306
|
+
export function batchScheduleResponseFromJSON(jsonString) {
|
|
1307
|
+
return safeParse(jsonString, (x) => BatchScheduleResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BatchScheduleResponse' from JSON`);
|
|
1308
|
+
}
|
|
1309
|
+
/** @internal */
|
|
1310
|
+
export const CancelRequest$outboundSchema = z.object({
|
|
1311
|
+
messageIds: z.optional(z.array(z.string())),
|
|
1312
|
+
contactIds: z.optional(z.array(z.string())),
|
|
1313
|
+
});
|
|
1314
|
+
export function cancelRequestToJSON(cancelRequest) {
|
|
1315
|
+
return JSON.stringify(CancelRequest$outboundSchema.parse(cancelRequest));
|
|
1316
|
+
}
|
|
1317
|
+
/** @internal */
|
|
1318
|
+
export const CancelResponse$inboundSchema = z.object({
|
|
1319
|
+
success: types.literal(true),
|
|
1320
|
+
cancelled: types.number(),
|
|
1321
|
+
creditsUsed: types.number(),
|
|
1322
|
+
retryAfter: types.number(),
|
|
1323
|
+
});
|
|
1324
|
+
export function cancelResponseFromJSON(jsonString) {
|
|
1325
|
+
return safeParse(jsonString, (x) => CancelResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CancelResponse' from JSON`);
|
|
1326
|
+
}
|
|
1327
|
+
/** @internal */
|
|
1328
|
+
export const ListEntriesRequest$outboundSchema = z.object({
|
|
1329
|
+
scope: z.optional(z.string()),
|
|
1330
|
+
type: z.optional(z.string()),
|
|
1331
|
+
});
|
|
1332
|
+
export function listEntriesRequestToJSON(listEntriesRequest) {
|
|
1333
|
+
return JSON.stringify(ListEntriesRequest$outboundSchema.parse(listEntriesRequest));
|
|
1334
|
+
}
|
|
1335
|
+
/** @internal */
|
|
1336
|
+
export const ListEntriesEntry$inboundSchema = z.object({
|
|
1337
|
+
id: types.string(),
|
|
1338
|
+
type: types.string(),
|
|
1339
|
+
label: types.nullable(types.string()),
|
|
1340
|
+
content: types.string(),
|
|
1341
|
+
scope: types.string(),
|
|
1342
|
+
updatedAt: types.string(),
|
|
1343
|
+
});
|
|
1344
|
+
export function listEntriesEntryFromJSON(jsonString) {
|
|
1345
|
+
return safeParse(jsonString, (x) => ListEntriesEntry$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListEntriesEntry' from JSON`);
|
|
1346
|
+
}
|
|
1347
|
+
/** @internal */
|
|
1348
|
+
export const ListEntriesResponse$inboundSchema = z.object({
|
|
1349
|
+
success: types.literal(true),
|
|
1350
|
+
entries: z.array(z.lazy(() => ListEntriesEntry$inboundSchema)),
|
|
1351
|
+
creditsUsed: types.number(),
|
|
1352
|
+
retryAfter: types.number(),
|
|
1353
|
+
});
|
|
1354
|
+
export function listEntriesResponseFromJSON(jsonString) {
|
|
1355
|
+
return safeParse(jsonString, (x) => ListEntriesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListEntriesResponse' from JSON`);
|
|
1356
|
+
}
|
|
1357
|
+
/** @internal */
|
|
1358
|
+
export const SetRequest$outboundSchema = z.object({
|
|
1359
|
+
type: z.string(),
|
|
1360
|
+
content: z.string(),
|
|
1361
|
+
scope: z.optional(z.string()),
|
|
1362
|
+
label: z.optional(z.string()),
|
|
1363
|
+
});
|
|
1364
|
+
export function setRequestToJSON(setRequest) {
|
|
1365
|
+
return JSON.stringify(SetRequest$outboundSchema.parse(setRequest));
|
|
1366
|
+
}
|
|
1367
|
+
/** @internal */
|
|
1368
|
+
export const SetEntry$inboundSchema = z
|
|
1369
|
+
.object({
|
|
1370
|
+
id: types.string(),
|
|
1371
|
+
type: types.string(),
|
|
1372
|
+
label: types.nullable(types.string()),
|
|
1373
|
+
content: types.string(),
|
|
1374
|
+
scope: types.string(),
|
|
1375
|
+
updatedAt: types.string(),
|
|
1376
|
+
});
|
|
1377
|
+
export function setEntryFromJSON(jsonString) {
|
|
1378
|
+
return safeParse(jsonString, (x) => SetEntry$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SetEntry' from JSON`);
|
|
1379
|
+
}
|
|
1380
|
+
/** @internal */
|
|
1381
|
+
export const SetResponse$inboundSchema = z
|
|
1382
|
+
.object({
|
|
1383
|
+
success: types.literal(true),
|
|
1384
|
+
entry: z.lazy(() => SetEntry$inboundSchema),
|
|
1385
|
+
creditsUsed: types.number(),
|
|
1386
|
+
retryAfter: types.number(),
|
|
1387
|
+
});
|
|
1388
|
+
export function setResponseFromJSON(jsonString) {
|
|
1389
|
+
return safeParse(jsonString, (x) => SetResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SetResponse' from JSON`);
|
|
1390
|
+
}
|
|
1391
|
+
/** @internal */
|
|
1392
|
+
export const DeleteRequest$outboundSchema = z.object({
|
|
1393
|
+
type: z.string(),
|
|
1394
|
+
scope: z.optional(z.string()),
|
|
1395
|
+
});
|
|
1396
|
+
export function deleteRequestToJSON(deleteRequest) {
|
|
1397
|
+
return JSON.stringify(DeleteRequest$outboundSchema.parse(deleteRequest));
|
|
1398
|
+
}
|
|
1399
|
+
/** @internal */
|
|
1400
|
+
export const DeleteResponse$inboundSchema = z.object({
|
|
1401
|
+
success: types.literal(true),
|
|
1402
|
+
creditsUsed: types.number(),
|
|
1403
|
+
retryAfter: types.number(),
|
|
1404
|
+
});
|
|
1405
|
+
export function deleteResponseFromJSON(jsonString) {
|
|
1406
|
+
return safeParse(jsonString, (x) => DeleteResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteResponse' from JSON`);
|
|
1407
|
+
}
|
|
1408
|
+
/** @internal */
|
|
1409
|
+
export const Schedule$inboundSchema = z
|
|
1410
|
+
.object({
|
|
1411
|
+
scheduleId: types.string(),
|
|
1412
|
+
name: types.string(),
|
|
1413
|
+
cron: types.nullable(types.string()),
|
|
1414
|
+
isPaused: types.boolean(),
|
|
1415
|
+
lastRun: types.nullable(types.string()),
|
|
1416
|
+
nextRun: types.nullable(types.string()),
|
|
1417
|
+
lastStatus: types.nullable(z.any()),
|
|
1418
|
+
destination: types.string(),
|
|
1419
|
+
});
|
|
1420
|
+
export function scheduleFromJSON(jsonString) {
|
|
1421
|
+
return safeParse(jsonString, (x) => Schedule$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Schedule' from JSON`);
|
|
1422
|
+
}
|
|
1423
|
+
/** @internal */
|
|
1424
|
+
export const ListSchedulesResponse$inboundSchema = z.object({
|
|
1425
|
+
success: types.literal(true),
|
|
1426
|
+
schedules: z.array(z.lazy(() => Schedule$inboundSchema)),
|
|
1427
|
+
creditsUsed: types.number(),
|
|
1428
|
+
retryAfter: types.number(),
|
|
1429
|
+
});
|
|
1430
|
+
export function listSchedulesResponseFromJSON(jsonString) {
|
|
1431
|
+
return safeParse(jsonString, (x) => ListSchedulesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListSchedulesResponse' from JSON`);
|
|
1432
|
+
}
|
|
1433
|
+
/** @internal */
|
|
1434
|
+
export const UpdateScheduleAction$outboundSchema = z.enum(UpdateScheduleAction);
|
|
1435
|
+
/** @internal */
|
|
1436
|
+
export const UpdateScheduleRequestBody$outboundSchema = z.object({
|
|
1437
|
+
action: UpdateScheduleAction$outboundSchema,
|
|
1438
|
+
});
|
|
1439
|
+
export function updateScheduleRequestBodyToJSON(updateScheduleRequestBody) {
|
|
1440
|
+
return JSON.stringify(UpdateScheduleRequestBody$outboundSchema.parse(updateScheduleRequestBody));
|
|
1441
|
+
}
|
|
1442
|
+
/** @internal */
|
|
1443
|
+
export const UpdateScheduleRequest$outboundSchema = z.object({
|
|
1444
|
+
scheduleId: z.string(),
|
|
1445
|
+
body: z.lazy(() => UpdateScheduleRequestBody$outboundSchema),
|
|
1446
|
+
});
|
|
1447
|
+
export function updateScheduleRequestToJSON(updateScheduleRequest) {
|
|
1448
|
+
return JSON.stringify(UpdateScheduleRequest$outboundSchema.parse(updateScheduleRequest));
|
|
1449
|
+
}
|
|
1450
|
+
/** @internal */
|
|
1451
|
+
export const UpdateScheduleResponse$inboundSchema = z.object({
|
|
1452
|
+
success: types.literal(true),
|
|
1453
|
+
creditsUsed: types.number(),
|
|
1454
|
+
retryAfter: types.number(),
|
|
1455
|
+
});
|
|
1456
|
+
export function updateScheduleResponseFromJSON(jsonString) {
|
|
1457
|
+
return safeParse(jsonString, (x) => UpdateScheduleResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateScheduleResponse' from JSON`);
|
|
1458
|
+
}
|
|
1459
|
+
//# sourceMappingURL=update-schedule-response.js.map
|