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,4456 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import * as openEnums from "../../types/enums.js";
|
|
8
|
+
import { ClosedEnum, OpenEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import * as types from "../../types/primitives.js";
|
|
11
|
+
import { smartUnion } from "../../types/smart-union.js";
|
|
12
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
13
|
+
import {
|
|
14
|
+
SearchContactsContact,
|
|
15
|
+
SearchContactsContact$inboundSchema,
|
|
16
|
+
} from "./search-contacts-contact.js";
|
|
17
|
+
|
|
18
|
+
export type SearchContactsPagination = {
|
|
19
|
+
limit: number;
|
|
20
|
+
offset: number;
|
|
21
|
+
total: number;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Matching contacts
|
|
26
|
+
*/
|
|
27
|
+
export type SearchContactsResponse = {
|
|
28
|
+
success: true;
|
|
29
|
+
contacts: Array<SearchContactsContact>;
|
|
30
|
+
pagination: SearchContactsPagination;
|
|
31
|
+
/**
|
|
32
|
+
* Credits consumed by this call (always 0 for contacts queries).
|
|
33
|
+
*/
|
|
34
|
+
creditsUsed: number;
|
|
35
|
+
/**
|
|
36
|
+
* Seconds to wait before next call of the same type (always 0 for contacts queries).
|
|
37
|
+
*/
|
|
38
|
+
retryAfter: number;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export type GetContactRequest = {
|
|
42
|
+
/**
|
|
43
|
+
* Contact ID
|
|
44
|
+
*/
|
|
45
|
+
id: string;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export type GetContactActivity = {
|
|
49
|
+
id: string;
|
|
50
|
+
type: string;
|
|
51
|
+
content: string | null;
|
|
52
|
+
metadata: any | null;
|
|
53
|
+
createdAt: string;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export type GetContactCampaign = {
|
|
57
|
+
campaignId: string;
|
|
58
|
+
campaignName: string;
|
|
59
|
+
campaignStatus: string;
|
|
60
|
+
source: string;
|
|
61
|
+
sourceAngle: string | null;
|
|
62
|
+
addedAt: string;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export type GetContactContact = {
|
|
66
|
+
id: string;
|
|
67
|
+
linkedinUrl: string;
|
|
68
|
+
/**
|
|
69
|
+
* LinkedIn profile URN (e.g. urn:li:fsd_profile:ACoAAA...)
|
|
70
|
+
*/
|
|
71
|
+
profileUrn: string | null;
|
|
72
|
+
/**
|
|
73
|
+
* LinkedIn vanity slug (e.g. joshuaau)
|
|
74
|
+
*/
|
|
75
|
+
publicIdentifier: string | null;
|
|
76
|
+
name: string;
|
|
77
|
+
lifecycleStage: string;
|
|
78
|
+
hotScore: number;
|
|
79
|
+
qualificationNotes: string | null;
|
|
80
|
+
notes: string | null;
|
|
81
|
+
stageChangedAt: string | null;
|
|
82
|
+
profileData: any | null;
|
|
83
|
+
profileUpdatedAt: string | null;
|
|
84
|
+
conversationData: any | null;
|
|
85
|
+
conversationUpdatedAt: string | null;
|
|
86
|
+
outreachStatus: string;
|
|
87
|
+
lastContactedAt: string | null;
|
|
88
|
+
lastRepliedAt: string | null;
|
|
89
|
+
nextFollowUpAt: string | null;
|
|
90
|
+
doNotContact: boolean;
|
|
91
|
+
tags: Array<string>;
|
|
92
|
+
createdAt: string;
|
|
93
|
+
updatedAt: string;
|
|
94
|
+
activities: Array<GetContactActivity>;
|
|
95
|
+
campaigns: Array<GetContactCampaign>;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Contact details
|
|
100
|
+
*/
|
|
101
|
+
export type GetContactResponse = {
|
|
102
|
+
success: true;
|
|
103
|
+
contact: GetContactContact;
|
|
104
|
+
/**
|
|
105
|
+
* Credits consumed by this call (always 0 for contacts queries).
|
|
106
|
+
*/
|
|
107
|
+
creditsUsed: number;
|
|
108
|
+
/**
|
|
109
|
+
* Seconds to wait before next call of the same type (always 0 for contacts queries).
|
|
110
|
+
*/
|
|
111
|
+
retryAfter: number;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Promote to new stage (forward-only, except rejected)
|
|
116
|
+
*/
|
|
117
|
+
export const UpdateLifecycleStage = {
|
|
118
|
+
Contact: "contact",
|
|
119
|
+
Lead: "lead",
|
|
120
|
+
Qualified: "qualified",
|
|
121
|
+
Approved: "approved",
|
|
122
|
+
Rejected: "rejected",
|
|
123
|
+
} as const;
|
|
124
|
+
/**
|
|
125
|
+
* Promote to new stage (forward-only, except rejected)
|
|
126
|
+
*/
|
|
127
|
+
export type UpdateLifecycleStage = ClosedEnum<typeof UpdateLifecycleStage>;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Manual outreach status override
|
|
131
|
+
*/
|
|
132
|
+
export const UpdateOutreachStatus = {
|
|
133
|
+
None: "none",
|
|
134
|
+
ConnectionSent: "connection_sent",
|
|
135
|
+
Connected: "connected",
|
|
136
|
+
DmSent: "dm_sent",
|
|
137
|
+
FollowedUp: "followed_up",
|
|
138
|
+
Replied: "replied",
|
|
139
|
+
InConversation: "in_conversation",
|
|
140
|
+
MeetingBooked: "meeting_booked",
|
|
141
|
+
Converted: "converted",
|
|
142
|
+
NotInterested: "not_interested",
|
|
143
|
+
} as const;
|
|
144
|
+
/**
|
|
145
|
+
* Manual outreach status override
|
|
146
|
+
*/
|
|
147
|
+
export type UpdateOutreachStatus = ClosedEnum<typeof UpdateOutreachStatus>;
|
|
148
|
+
|
|
149
|
+
export type Tags3 = {
|
|
150
|
+
set: Array<string>;
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
export type Tags2 = {
|
|
154
|
+
add?: Array<string> | undefined;
|
|
155
|
+
remove: Array<string>;
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
export type Tags1 = {
|
|
159
|
+
add: Array<string>;
|
|
160
|
+
remove?: Array<string> | undefined;
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Add/remove/set tags
|
|
165
|
+
*/
|
|
166
|
+
export type TagsUnion = Tags1 | Tags2 | Tags3;
|
|
167
|
+
|
|
168
|
+
export type UpdateRequestBody = {
|
|
169
|
+
/**
|
|
170
|
+
* Promote to new stage (forward-only, except rejected)
|
|
171
|
+
*/
|
|
172
|
+
lifecycleStage?: UpdateLifecycleStage | undefined;
|
|
173
|
+
hotScore?: number | undefined;
|
|
174
|
+
qualificationNotes?: string | undefined;
|
|
175
|
+
notes?: string | undefined;
|
|
176
|
+
/**
|
|
177
|
+
* Update contact name
|
|
178
|
+
*/
|
|
179
|
+
name?: string | undefined;
|
|
180
|
+
/**
|
|
181
|
+
* Full LinkedIn profile snapshot (JSON)
|
|
182
|
+
*/
|
|
183
|
+
profileData?: any | undefined;
|
|
184
|
+
/**
|
|
185
|
+
* When profileData was last refreshed
|
|
186
|
+
*/
|
|
187
|
+
profileUpdatedAt?: Date | undefined;
|
|
188
|
+
/**
|
|
189
|
+
* DM history (JSON: historySummary + recentMessages)
|
|
190
|
+
*/
|
|
191
|
+
conversationData?: any | undefined;
|
|
192
|
+
/**
|
|
193
|
+
* When conversationData was last synced
|
|
194
|
+
*/
|
|
195
|
+
conversationUpdatedAt?: Date | undefined;
|
|
196
|
+
/**
|
|
197
|
+
* Manual outreach status override
|
|
198
|
+
*/
|
|
199
|
+
outreachStatus?: UpdateOutreachStatus | undefined;
|
|
200
|
+
/**
|
|
201
|
+
* When agent should follow up (null to clear)
|
|
202
|
+
*/
|
|
203
|
+
nextFollowUpAt?: Date | null | undefined;
|
|
204
|
+
/**
|
|
205
|
+
* Flag contact as do-not-contact
|
|
206
|
+
*/
|
|
207
|
+
doNotContact?: boolean | undefined;
|
|
208
|
+
/**
|
|
209
|
+
* Add/remove/set tags
|
|
210
|
+
*/
|
|
211
|
+
tags?: Tags1 | Tags2 | Tags3 | undefined;
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
export type UpdateRequest = {
|
|
215
|
+
/**
|
|
216
|
+
* Contact ID
|
|
217
|
+
*/
|
|
218
|
+
id: string;
|
|
219
|
+
body: UpdateRequestBody;
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
export type UpdateContact = {
|
|
223
|
+
id: string;
|
|
224
|
+
linkedinUrl: string;
|
|
225
|
+
/**
|
|
226
|
+
* LinkedIn profile URN (e.g. urn:li:fsd_profile:ACoAAA...)
|
|
227
|
+
*/
|
|
228
|
+
profileUrn: string | null;
|
|
229
|
+
/**
|
|
230
|
+
* LinkedIn vanity slug (e.g. joshuaau)
|
|
231
|
+
*/
|
|
232
|
+
publicIdentifier: string | null;
|
|
233
|
+
name: string;
|
|
234
|
+
lifecycleStage: string;
|
|
235
|
+
hotScore: number;
|
|
236
|
+
qualificationNotes: string | null;
|
|
237
|
+
notes: string | null;
|
|
238
|
+
stageChangedAt: string | null;
|
|
239
|
+
profileData: any | null;
|
|
240
|
+
profileUpdatedAt: string | null;
|
|
241
|
+
conversationData: any | null;
|
|
242
|
+
conversationUpdatedAt: string | null;
|
|
243
|
+
outreachStatus: string;
|
|
244
|
+
lastContactedAt: string | null;
|
|
245
|
+
lastRepliedAt: string | null;
|
|
246
|
+
nextFollowUpAt: string | null;
|
|
247
|
+
doNotContact: boolean;
|
|
248
|
+
tags: Array<string>;
|
|
249
|
+
createdAt: string;
|
|
250
|
+
updatedAt: string;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Updated contact
|
|
255
|
+
*/
|
|
256
|
+
export type UpdateResponse = {
|
|
257
|
+
success: true;
|
|
258
|
+
contact: UpdateContact;
|
|
259
|
+
/**
|
|
260
|
+
* Credits consumed by this call (always 0 for contacts queries).
|
|
261
|
+
*/
|
|
262
|
+
creditsUsed: number;
|
|
263
|
+
/**
|
|
264
|
+
* Seconds to wait before next call of the same type (always 0 for contacts queries).
|
|
265
|
+
*/
|
|
266
|
+
retryAfter: number;
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
export type ListActivitiesRequest = {
|
|
270
|
+
/**
|
|
271
|
+
* Filter by activity type
|
|
272
|
+
*/
|
|
273
|
+
type?: string | undefined;
|
|
274
|
+
limit?: number | undefined;
|
|
275
|
+
offset?: number | undefined;
|
|
276
|
+
/**
|
|
277
|
+
* Contact ID
|
|
278
|
+
*/
|
|
279
|
+
id: string;
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
export type ListActivitiesActivity = {
|
|
283
|
+
id: string;
|
|
284
|
+
type: string;
|
|
285
|
+
content: string | null;
|
|
286
|
+
metadata: any | null;
|
|
287
|
+
createdAt: string;
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
export type ListActivitiesPagination = {
|
|
291
|
+
limit: number;
|
|
292
|
+
offset: number;
|
|
293
|
+
total: number;
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Contact activities
|
|
298
|
+
*/
|
|
299
|
+
export type ListActivitiesResponse = {
|
|
300
|
+
success: true;
|
|
301
|
+
activities: Array<ListActivitiesActivity>;
|
|
302
|
+
pagination: ListActivitiesPagination;
|
|
303
|
+
/**
|
|
304
|
+
* Credits consumed by this call (always 0 for contacts queries).
|
|
305
|
+
*/
|
|
306
|
+
creditsUsed: number;
|
|
307
|
+
/**
|
|
308
|
+
* Seconds to wait before next call of the same type (always 0 for contacts queries).
|
|
309
|
+
*/
|
|
310
|
+
retryAfter: number;
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Activity type
|
|
315
|
+
*/
|
|
316
|
+
export const AddActivitiesType = {
|
|
317
|
+
ConnectionRequest: "connection_request",
|
|
318
|
+
Message: "message",
|
|
319
|
+
FollowUp: "follow_up",
|
|
320
|
+
ReplyReceived: "reply_received",
|
|
321
|
+
ConnectionAccepted: "connection_accepted",
|
|
322
|
+
ProfileView: "profile_view",
|
|
323
|
+
EngagementObserved: "engagement_observed",
|
|
324
|
+
PostInteraction: "post_interaction",
|
|
325
|
+
SearchFound: "search_found",
|
|
326
|
+
Qualification: "qualification",
|
|
327
|
+
StageChange: "stage_change",
|
|
328
|
+
MessageReceived: "message_received",
|
|
329
|
+
UserInterest: "user_interest",
|
|
330
|
+
MeetingBooked: "meeting_booked",
|
|
331
|
+
MeetingCompleted: "meeting_completed",
|
|
332
|
+
MeetingCancelled: "meeting_cancelled",
|
|
333
|
+
DoNotContact: "do_not_contact",
|
|
334
|
+
} as const;
|
|
335
|
+
/**
|
|
336
|
+
* Activity type
|
|
337
|
+
*/
|
|
338
|
+
export type AddActivitiesType = ClosedEnum<typeof AddActivitiesType>;
|
|
339
|
+
|
|
340
|
+
export type AddActivitiesActivity = {
|
|
341
|
+
/**
|
|
342
|
+
* Activity type
|
|
343
|
+
*/
|
|
344
|
+
type: AddActivitiesType;
|
|
345
|
+
/**
|
|
346
|
+
* Human-readable description of what happened
|
|
347
|
+
*/
|
|
348
|
+
content?: string | undefined;
|
|
349
|
+
/**
|
|
350
|
+
* Structured data: postUrl, postAuthor, angle, distance, etc.
|
|
351
|
+
*/
|
|
352
|
+
metadata?: any | undefined;
|
|
353
|
+
};
|
|
354
|
+
|
|
355
|
+
export type AddActivitiesRequestBody = {
|
|
356
|
+
/**
|
|
357
|
+
* Activities to log
|
|
358
|
+
*/
|
|
359
|
+
activities: Array<AddActivitiesActivity>;
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
export type AddActivitiesRequest = {
|
|
363
|
+
/**
|
|
364
|
+
* Contact ID
|
|
365
|
+
*/
|
|
366
|
+
id: string;
|
|
367
|
+
body: AddActivitiesRequestBody;
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Activities logged
|
|
372
|
+
*/
|
|
373
|
+
export type AddActivitiesResponse = {
|
|
374
|
+
success: true;
|
|
375
|
+
created: number;
|
|
376
|
+
/**
|
|
377
|
+
* Credits consumed by this call (always 0 for contacts queries).
|
|
378
|
+
*/
|
|
379
|
+
creditsUsed: number;
|
|
380
|
+
/**
|
|
381
|
+
* Seconds to wait before next call of the same type (always 0 for contacts queries).
|
|
382
|
+
*/
|
|
383
|
+
retryAfter: number;
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
export const BulkUpdateLifecycleStage = {
|
|
387
|
+
Contact: "contact",
|
|
388
|
+
Lead: "lead",
|
|
389
|
+
Qualified: "qualified",
|
|
390
|
+
Approved: "approved",
|
|
391
|
+
Rejected: "rejected",
|
|
392
|
+
} as const;
|
|
393
|
+
export type BulkUpdateLifecycleStage = ClosedEnum<
|
|
394
|
+
typeof BulkUpdateLifecycleStage
|
|
395
|
+
>;
|
|
396
|
+
|
|
397
|
+
export const BulkUpdateOutreachStatus = {
|
|
398
|
+
None: "none",
|
|
399
|
+
ConnectionSent: "connection_sent",
|
|
400
|
+
Connected: "connected",
|
|
401
|
+
DmSent: "dm_sent",
|
|
402
|
+
FollowedUp: "followed_up",
|
|
403
|
+
Replied: "replied",
|
|
404
|
+
InConversation: "in_conversation",
|
|
405
|
+
MeetingBooked: "meeting_booked",
|
|
406
|
+
Converted: "converted",
|
|
407
|
+
NotInterested: "not_interested",
|
|
408
|
+
} as const;
|
|
409
|
+
export type BulkUpdateOutreachStatus = ClosedEnum<
|
|
410
|
+
typeof BulkUpdateOutreachStatus
|
|
411
|
+
>;
|
|
412
|
+
|
|
413
|
+
export type BulkUpdateTags3 = {
|
|
414
|
+
set: Array<string>;
|
|
415
|
+
};
|
|
416
|
+
|
|
417
|
+
export type BulkUpdateTags2 = {
|
|
418
|
+
add?: Array<string> | undefined;
|
|
419
|
+
remove: Array<string>;
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
export type BulkUpdateTags1 = {
|
|
423
|
+
add: Array<string>;
|
|
424
|
+
remove?: Array<string> | undefined;
|
|
425
|
+
};
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* Tag operations: { add, remove } or { set }
|
|
429
|
+
*/
|
|
430
|
+
export type BulkUpdateTagsUnion =
|
|
431
|
+
| BulkUpdateTags1
|
|
432
|
+
| BulkUpdateTags2
|
|
433
|
+
| BulkUpdateTags3;
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* Fields to update on all matching contacts
|
|
437
|
+
*/
|
|
438
|
+
export type Update = {
|
|
439
|
+
lifecycleStage?: BulkUpdateLifecycleStage | undefined;
|
|
440
|
+
hotScore?: number | undefined;
|
|
441
|
+
qualificationNotes?: string | undefined;
|
|
442
|
+
notes?: string | undefined;
|
|
443
|
+
outreachStatus?: BulkUpdateOutreachStatus | undefined;
|
|
444
|
+
nextFollowUpAt?: Date | null | undefined;
|
|
445
|
+
doNotContact?: boolean | undefined;
|
|
446
|
+
/**
|
|
447
|
+
* Tag operations: { add, remove } or { set }
|
|
448
|
+
*/
|
|
449
|
+
tags?: BulkUpdateTags1 | BulkUpdateTags2 | BulkUpdateTags3 | undefined;
|
|
450
|
+
};
|
|
451
|
+
|
|
452
|
+
export type BulkUpdateRequest = {
|
|
453
|
+
/**
|
|
454
|
+
* Contact IDs to update
|
|
455
|
+
*/
|
|
456
|
+
contactIds: Array<string>;
|
|
457
|
+
/**
|
|
458
|
+
* Fields to update on all matching contacts
|
|
459
|
+
*/
|
|
460
|
+
update: Update;
|
|
461
|
+
};
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* Bulk update results
|
|
465
|
+
*/
|
|
466
|
+
export type BulkUpdateResponse = {
|
|
467
|
+
success: true;
|
|
468
|
+
updated: number;
|
|
469
|
+
skipped: number;
|
|
470
|
+
errors: Array<string>;
|
|
471
|
+
/**
|
|
472
|
+
* Credits consumed by this call (always 0 for contacts queries).
|
|
473
|
+
*/
|
|
474
|
+
creditsUsed: number;
|
|
475
|
+
/**
|
|
476
|
+
* Seconds to wait before next call of the same type (always 0 for contacts queries).
|
|
477
|
+
*/
|
|
478
|
+
retryAfter: number;
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
export type GetContactStatsRequest = {
|
|
482
|
+
/**
|
|
483
|
+
* Filter stats by campaign
|
|
484
|
+
*/
|
|
485
|
+
campaignId?: string | undefined;
|
|
486
|
+
};
|
|
487
|
+
|
|
488
|
+
export type Funnel = {
|
|
489
|
+
contact: number;
|
|
490
|
+
lead: number;
|
|
491
|
+
qualified: number;
|
|
492
|
+
approved: number;
|
|
493
|
+
rejected: number;
|
|
494
|
+
};
|
|
495
|
+
|
|
496
|
+
export type BySourceAngle = {
|
|
497
|
+
total: number;
|
|
498
|
+
contact: number;
|
|
499
|
+
lead: number;
|
|
500
|
+
qualified: number;
|
|
501
|
+
approved: number;
|
|
502
|
+
rejected: number;
|
|
503
|
+
};
|
|
504
|
+
|
|
505
|
+
export type ByCampaign = {
|
|
506
|
+
name: string;
|
|
507
|
+
total: number;
|
|
508
|
+
contact: number;
|
|
509
|
+
lead: number;
|
|
510
|
+
qualified: number;
|
|
511
|
+
approved: number;
|
|
512
|
+
rejected: number;
|
|
513
|
+
};
|
|
514
|
+
|
|
515
|
+
export type GetContactStatsDaily = {
|
|
516
|
+
date: string;
|
|
517
|
+
created: number;
|
|
518
|
+
};
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* Contact statistics
|
|
522
|
+
*/
|
|
523
|
+
export type GetContactStatsResponse = {
|
|
524
|
+
success: true;
|
|
525
|
+
funnel: Funnel;
|
|
526
|
+
bySource: { [k: string]: number };
|
|
527
|
+
bySourceAngle: { [k: string]: BySourceAngle };
|
|
528
|
+
byCampaign: { [k: string]: ByCampaign };
|
|
529
|
+
daily: Array<GetContactStatsDaily>;
|
|
530
|
+
/**
|
|
531
|
+
* Credits consumed by this call (always 0 for contacts queries).
|
|
532
|
+
*/
|
|
533
|
+
creditsUsed: number;
|
|
534
|
+
/**
|
|
535
|
+
* Seconds to wait before next call of the same type (always 0 for contacts queries).
|
|
536
|
+
*/
|
|
537
|
+
retryAfter: number;
|
|
538
|
+
};
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* When 'true', omits the data payload and returns only keys + timestamps. Useful for state overview without transferring large payloads.
|
|
542
|
+
*/
|
|
543
|
+
export const KeysOnly = {
|
|
544
|
+
True: "true",
|
|
545
|
+
False: "false",
|
|
546
|
+
} as const;
|
|
547
|
+
/**
|
|
548
|
+
* When 'true', omits the data payload and returns only keys + timestamps. Useful for state overview without transferring large payloads.
|
|
549
|
+
*/
|
|
550
|
+
export type KeysOnly = ClosedEnum<typeof KeysOnly>;
|
|
551
|
+
|
|
552
|
+
export type ListAgentStatesRequest = {
|
|
553
|
+
/**
|
|
554
|
+
* When 'true', omits the data payload and returns only keys + timestamps. Useful for state overview without transferring large payloads.
|
|
555
|
+
*/
|
|
556
|
+
keysOnly?: KeysOnly | undefined;
|
|
557
|
+
};
|
|
558
|
+
|
|
559
|
+
export type State = {
|
|
560
|
+
key: string;
|
|
561
|
+
/**
|
|
562
|
+
* Full state object
|
|
563
|
+
*/
|
|
564
|
+
data: any;
|
|
565
|
+
updatedAt: string | null;
|
|
566
|
+
};
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* All state entries
|
|
570
|
+
*/
|
|
571
|
+
export type ListAgentStatesResponse = {
|
|
572
|
+
success: true;
|
|
573
|
+
states: Array<State>;
|
|
574
|
+
/**
|
|
575
|
+
* Credits consumed by this call (always 0 for contacts queries).
|
|
576
|
+
*/
|
|
577
|
+
creditsUsed: number;
|
|
578
|
+
/**
|
|
579
|
+
* Seconds to wait before next call of the same type (always 0 for contacts queries).
|
|
580
|
+
*/
|
|
581
|
+
retryAfter: number;
|
|
582
|
+
};
|
|
583
|
+
|
|
584
|
+
export type GetAgentStateRequest = {
|
|
585
|
+
/**
|
|
586
|
+
* State key
|
|
587
|
+
*/
|
|
588
|
+
key: string;
|
|
589
|
+
};
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* State entry
|
|
593
|
+
*/
|
|
594
|
+
export type GetAgentStateResponse = {
|
|
595
|
+
success: true;
|
|
596
|
+
key: string;
|
|
597
|
+
/**
|
|
598
|
+
* Full state object
|
|
599
|
+
*/
|
|
600
|
+
data: any;
|
|
601
|
+
updatedAt: string | null;
|
|
602
|
+
/**
|
|
603
|
+
* Credits consumed by this call (always 0 for contacts queries).
|
|
604
|
+
*/
|
|
605
|
+
creditsUsed: number;
|
|
606
|
+
/**
|
|
607
|
+
* Seconds to wait before next call of the same type (always 0 for contacts queries).
|
|
608
|
+
*/
|
|
609
|
+
retryAfter: number;
|
|
610
|
+
};
|
|
611
|
+
|
|
612
|
+
export type SetAgentStateRequestBody = {
|
|
613
|
+
/**
|
|
614
|
+
* Full state object to store
|
|
615
|
+
*/
|
|
616
|
+
data: any;
|
|
617
|
+
};
|
|
618
|
+
|
|
619
|
+
export type SetAgentStateRequest = {
|
|
620
|
+
/**
|
|
621
|
+
* State key
|
|
622
|
+
*/
|
|
623
|
+
key: string;
|
|
624
|
+
body: SetAgentStateRequestBody;
|
|
625
|
+
};
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* State saved
|
|
629
|
+
*/
|
|
630
|
+
export type SetAgentStateResponse = {
|
|
631
|
+
success: true;
|
|
632
|
+
key: string;
|
|
633
|
+
/**
|
|
634
|
+
* Full state object
|
|
635
|
+
*/
|
|
636
|
+
data: any;
|
|
637
|
+
updatedAt: string | null;
|
|
638
|
+
/**
|
|
639
|
+
* Credits consumed by this call (always 0 for contacts queries).
|
|
640
|
+
*/
|
|
641
|
+
creditsUsed: number;
|
|
642
|
+
/**
|
|
643
|
+
* Seconds to wait before next call of the same type (always 0 for contacts queries).
|
|
644
|
+
*/
|
|
645
|
+
retryAfter: number;
|
|
646
|
+
};
|
|
647
|
+
|
|
648
|
+
export type DeleteAgentStateRequest = {
|
|
649
|
+
/**
|
|
650
|
+
* State key
|
|
651
|
+
*/
|
|
652
|
+
key: string;
|
|
653
|
+
};
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* State deleted
|
|
657
|
+
*/
|
|
658
|
+
export type DeleteAgentStateResponse = {
|
|
659
|
+
success: true;
|
|
660
|
+
/**
|
|
661
|
+
* Credits consumed by this call (always 0 for contacts queries).
|
|
662
|
+
*/
|
|
663
|
+
creditsUsed: number;
|
|
664
|
+
/**
|
|
665
|
+
* Seconds to wait before next call of the same type (always 0 for contacts queries).
|
|
666
|
+
*/
|
|
667
|
+
retryAfter: number;
|
|
668
|
+
};
|
|
669
|
+
|
|
670
|
+
export type PatchAgentStateRequestBody = {
|
|
671
|
+
/**
|
|
672
|
+
* Partial state fields to merge
|
|
673
|
+
*/
|
|
674
|
+
data: { [k: string]: any };
|
|
675
|
+
};
|
|
676
|
+
|
|
677
|
+
export type PatchAgentStateRequest = {
|
|
678
|
+
/**
|
|
679
|
+
* State key
|
|
680
|
+
*/
|
|
681
|
+
key: string;
|
|
682
|
+
body: PatchAgentStateRequestBody;
|
|
683
|
+
};
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* State merged
|
|
687
|
+
*/
|
|
688
|
+
export type PatchAgentStateResponse = {
|
|
689
|
+
success: true;
|
|
690
|
+
key: string;
|
|
691
|
+
/**
|
|
692
|
+
* Full state object
|
|
693
|
+
*/
|
|
694
|
+
data: any;
|
|
695
|
+
updatedAt: string | null;
|
|
696
|
+
/**
|
|
697
|
+
* Credits consumed by this call (always 0 for contacts queries).
|
|
698
|
+
*/
|
|
699
|
+
creditsUsed: number;
|
|
700
|
+
/**
|
|
701
|
+
* Seconds to wait before next call of the same type (always 0 for contacts queries).
|
|
702
|
+
*/
|
|
703
|
+
retryAfter: number;
|
|
704
|
+
};
|
|
705
|
+
|
|
706
|
+
export const ListCampaignsType = {
|
|
707
|
+
Outreach: "outreach",
|
|
708
|
+
LeadGen: "lead_gen",
|
|
709
|
+
LeadMagnet: "lead_magnet",
|
|
710
|
+
} as const;
|
|
711
|
+
export type ListCampaignsType = ClosedEnum<typeof ListCampaignsType>;
|
|
712
|
+
|
|
713
|
+
export type ListCampaignsRequest = {
|
|
714
|
+
type?: ListCampaignsType | undefined;
|
|
715
|
+
status?: string | undefined;
|
|
716
|
+
limit?: number | undefined;
|
|
717
|
+
offset?: number | undefined;
|
|
718
|
+
};
|
|
719
|
+
|
|
720
|
+
export type ListCampaignsStageCounts = {
|
|
721
|
+
contact: number;
|
|
722
|
+
lead: number;
|
|
723
|
+
qualified: number;
|
|
724
|
+
approved: number;
|
|
725
|
+
rejected: number;
|
|
726
|
+
};
|
|
727
|
+
|
|
728
|
+
export type ListCampaignsCampaign = {
|
|
729
|
+
id: string;
|
|
730
|
+
name: string;
|
|
731
|
+
description: string | null;
|
|
732
|
+
context: string | null;
|
|
733
|
+
type: string;
|
|
734
|
+
status: string;
|
|
735
|
+
totalContacts: number;
|
|
736
|
+
stageCounts?: ListCampaignsStageCounts | undefined;
|
|
737
|
+
createdAt: string;
|
|
738
|
+
updatedAt: string;
|
|
739
|
+
};
|
|
740
|
+
|
|
741
|
+
export type ListCampaignsPagination = {
|
|
742
|
+
limit: number;
|
|
743
|
+
offset: number;
|
|
744
|
+
total: number;
|
|
745
|
+
};
|
|
746
|
+
|
|
747
|
+
/**
|
|
748
|
+
* Campaigns list
|
|
749
|
+
*/
|
|
750
|
+
export type ListCampaignsResponse = {
|
|
751
|
+
success: true;
|
|
752
|
+
campaigns: Array<ListCampaignsCampaign>;
|
|
753
|
+
pagination: ListCampaignsPagination;
|
|
754
|
+
/**
|
|
755
|
+
* Credits consumed by this call (always 0 for contacts queries).
|
|
756
|
+
*/
|
|
757
|
+
creditsUsed: number;
|
|
758
|
+
/**
|
|
759
|
+
* Seconds to wait before next call of the same type (always 0 for contacts queries).
|
|
760
|
+
*/
|
|
761
|
+
retryAfter: number;
|
|
762
|
+
};
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
* Campaign type
|
|
766
|
+
*/
|
|
767
|
+
export const CreateCampaignType = {
|
|
768
|
+
Outreach: "outreach",
|
|
769
|
+
LeadGen: "lead_gen",
|
|
770
|
+
LeadMagnet: "lead_magnet",
|
|
771
|
+
} as const;
|
|
772
|
+
/**
|
|
773
|
+
* Campaign type
|
|
774
|
+
*/
|
|
775
|
+
export type CreateCampaignType = ClosedEnum<typeof CreateCampaignType>;
|
|
776
|
+
|
|
777
|
+
export type CreateCampaignRequest = {
|
|
778
|
+
/**
|
|
779
|
+
* Campaign name (e.g., 'lg-engagement-competitor-openai')
|
|
780
|
+
*/
|
|
781
|
+
name: string;
|
|
782
|
+
/**
|
|
783
|
+
* Optional campaign description
|
|
784
|
+
*/
|
|
785
|
+
description?: string | undefined;
|
|
786
|
+
/**
|
|
787
|
+
* Full agent instructions in markdown
|
|
788
|
+
*/
|
|
789
|
+
context?: string | undefined;
|
|
790
|
+
/**
|
|
791
|
+
* Campaign type
|
|
792
|
+
*/
|
|
793
|
+
type?: CreateCampaignType | undefined;
|
|
794
|
+
};
|
|
795
|
+
|
|
796
|
+
export type CreateCampaignStageCounts = {
|
|
797
|
+
contact: number;
|
|
798
|
+
lead: number;
|
|
799
|
+
qualified: number;
|
|
800
|
+
approved: number;
|
|
801
|
+
rejected: number;
|
|
802
|
+
};
|
|
803
|
+
|
|
804
|
+
export type CreateCampaignCampaign = {
|
|
805
|
+
id: string;
|
|
806
|
+
name: string;
|
|
807
|
+
description: string | null;
|
|
808
|
+
context: string | null;
|
|
809
|
+
type: string;
|
|
810
|
+
status: string;
|
|
811
|
+
totalContacts: number;
|
|
812
|
+
stageCounts?: CreateCampaignStageCounts | undefined;
|
|
813
|
+
createdAt: string;
|
|
814
|
+
updatedAt: string;
|
|
815
|
+
};
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
* Campaign created
|
|
819
|
+
*/
|
|
820
|
+
export type CreateCampaignResponse = {
|
|
821
|
+
success: true;
|
|
822
|
+
campaign: CreateCampaignCampaign;
|
|
823
|
+
/**
|
|
824
|
+
* Credits consumed by this call (always 0 for contacts queries).
|
|
825
|
+
*/
|
|
826
|
+
creditsUsed: number;
|
|
827
|
+
/**
|
|
828
|
+
* Seconds to wait before next call of the same type (always 0 for contacts queries).
|
|
829
|
+
*/
|
|
830
|
+
retryAfter: number;
|
|
831
|
+
};
|
|
832
|
+
|
|
833
|
+
export type GetCampaignRequest = {
|
|
834
|
+
/**
|
|
835
|
+
* Campaign ID
|
|
836
|
+
*/
|
|
837
|
+
campaignId: string;
|
|
838
|
+
};
|
|
839
|
+
|
|
840
|
+
export type GetCampaignStageCounts = {
|
|
841
|
+
contact: number;
|
|
842
|
+
lead: number;
|
|
843
|
+
qualified: number;
|
|
844
|
+
approved: number;
|
|
845
|
+
rejected: number;
|
|
846
|
+
};
|
|
847
|
+
|
|
848
|
+
export type GetCampaignCampaign = {
|
|
849
|
+
id: string;
|
|
850
|
+
name: string;
|
|
851
|
+
description: string | null;
|
|
852
|
+
context: string | null;
|
|
853
|
+
type: string;
|
|
854
|
+
status: string;
|
|
855
|
+
totalContacts: number;
|
|
856
|
+
stageCounts?: GetCampaignStageCounts | undefined;
|
|
857
|
+
createdAt: string;
|
|
858
|
+
updatedAt: string;
|
|
859
|
+
};
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* Campaign details
|
|
863
|
+
*/
|
|
864
|
+
export type GetCampaignResponse = {
|
|
865
|
+
success: true;
|
|
866
|
+
campaign: GetCampaignCampaign;
|
|
867
|
+
/**
|
|
868
|
+
* Credits consumed by this call (always 0 for contacts queries).
|
|
869
|
+
*/
|
|
870
|
+
creditsUsed: number;
|
|
871
|
+
/**
|
|
872
|
+
* Seconds to wait before next call of the same type (always 0 for contacts queries).
|
|
873
|
+
*/
|
|
874
|
+
retryAfter: number;
|
|
875
|
+
};
|
|
876
|
+
|
|
877
|
+
export type DeleteCampaignRequest = {
|
|
878
|
+
/**
|
|
879
|
+
* Campaign ID
|
|
880
|
+
*/
|
|
881
|
+
campaignId: string;
|
|
882
|
+
};
|
|
883
|
+
|
|
884
|
+
/**
|
|
885
|
+
* Campaign deleted
|
|
886
|
+
*/
|
|
887
|
+
export type DeleteCampaignResponse = {
|
|
888
|
+
success: true;
|
|
889
|
+
/**
|
|
890
|
+
* Credits consumed by this call (always 0 for contacts queries).
|
|
891
|
+
*/
|
|
892
|
+
creditsUsed: number;
|
|
893
|
+
/**
|
|
894
|
+
* Seconds to wait before next call of the same type (always 0 for contacts queries).
|
|
895
|
+
*/
|
|
896
|
+
retryAfter: number;
|
|
897
|
+
};
|
|
898
|
+
|
|
899
|
+
export const UpdateCampaignStatus = {
|
|
900
|
+
Draft: "draft",
|
|
901
|
+
Scheduled: "scheduled",
|
|
902
|
+
Running: "running",
|
|
903
|
+
Paused: "paused",
|
|
904
|
+
Completed: "completed",
|
|
905
|
+
Failed: "failed",
|
|
906
|
+
} as const;
|
|
907
|
+
export type UpdateCampaignStatus = ClosedEnum<typeof UpdateCampaignStatus>;
|
|
908
|
+
|
|
909
|
+
export type UpdateCampaignRequestBody = {
|
|
910
|
+
name?: string | undefined;
|
|
911
|
+
description?: string | undefined;
|
|
912
|
+
context?: string | undefined;
|
|
913
|
+
status?: UpdateCampaignStatus | undefined;
|
|
914
|
+
scheduledStartTime?: string | undefined;
|
|
915
|
+
scheduledStopTime?: string | undefined;
|
|
916
|
+
timezone?: string | undefined;
|
|
917
|
+
runDays?: Array<string> | undefined;
|
|
918
|
+
dailyActionLimit?: number | null | undefined;
|
|
919
|
+
};
|
|
920
|
+
|
|
921
|
+
export type UpdateCampaignRequest = {
|
|
922
|
+
/**
|
|
923
|
+
* Campaign ID
|
|
924
|
+
*/
|
|
925
|
+
campaignId: string;
|
|
926
|
+
body: UpdateCampaignRequestBody;
|
|
927
|
+
};
|
|
928
|
+
|
|
929
|
+
export type UpdateCampaignStageCounts = {
|
|
930
|
+
contact: number;
|
|
931
|
+
lead: number;
|
|
932
|
+
qualified: number;
|
|
933
|
+
approved: number;
|
|
934
|
+
rejected: number;
|
|
935
|
+
};
|
|
936
|
+
|
|
937
|
+
export type UpdateCampaignCampaign = {
|
|
938
|
+
id: string;
|
|
939
|
+
name: string;
|
|
940
|
+
description: string | null;
|
|
941
|
+
context: string | null;
|
|
942
|
+
type: string;
|
|
943
|
+
status: string;
|
|
944
|
+
totalContacts: number;
|
|
945
|
+
stageCounts?: UpdateCampaignStageCounts | undefined;
|
|
946
|
+
createdAt: string;
|
|
947
|
+
updatedAt: string;
|
|
948
|
+
};
|
|
949
|
+
|
|
950
|
+
/**
|
|
951
|
+
* Campaign updated
|
|
952
|
+
*/
|
|
953
|
+
export type UpdateCampaignResponse = {
|
|
954
|
+
success: true;
|
|
955
|
+
campaign: UpdateCampaignCampaign;
|
|
956
|
+
/**
|
|
957
|
+
* Credits consumed by this call (always 0 for contacts queries).
|
|
958
|
+
*/
|
|
959
|
+
creditsUsed: number;
|
|
960
|
+
/**
|
|
961
|
+
* Seconds to wait before next call of the same type (always 0 for contacts queries).
|
|
962
|
+
*/
|
|
963
|
+
retryAfter: number;
|
|
964
|
+
};
|
|
965
|
+
|
|
966
|
+
export const CampaignStatusTransitionAction = {
|
|
967
|
+
Activate: "activate",
|
|
968
|
+
Start: "start",
|
|
969
|
+
Pause: "pause",
|
|
970
|
+
Resume: "resume",
|
|
971
|
+
Complete: "complete",
|
|
972
|
+
Reset: "reset",
|
|
973
|
+
} as const;
|
|
974
|
+
export type CampaignStatusTransitionAction = ClosedEnum<
|
|
975
|
+
typeof CampaignStatusTransitionAction
|
|
976
|
+
>;
|
|
977
|
+
|
|
978
|
+
export type CampaignStatusTransitionRequestBody = {
|
|
979
|
+
action: CampaignStatusTransitionAction;
|
|
980
|
+
scheduledStartTime?: string | undefined;
|
|
981
|
+
scheduledStopTime?: string | undefined;
|
|
982
|
+
timezone?: string | undefined;
|
|
983
|
+
runDays?: Array<string> | undefined;
|
|
984
|
+
dailyActionLimit?: number | undefined;
|
|
985
|
+
};
|
|
986
|
+
|
|
987
|
+
export type CampaignStatusTransitionRequest = {
|
|
988
|
+
/**
|
|
989
|
+
* Campaign ID
|
|
990
|
+
*/
|
|
991
|
+
campaignId: string;
|
|
992
|
+
body: CampaignStatusTransitionRequestBody;
|
|
993
|
+
};
|
|
994
|
+
|
|
995
|
+
export type CampaignStatusTransitionStageCounts = {
|
|
996
|
+
contact: number;
|
|
997
|
+
lead: number;
|
|
998
|
+
qualified: number;
|
|
999
|
+
approved: number;
|
|
1000
|
+
rejected: number;
|
|
1001
|
+
};
|
|
1002
|
+
|
|
1003
|
+
export type CampaignStatusTransitionCampaign = {
|
|
1004
|
+
id: string;
|
|
1005
|
+
name: string;
|
|
1006
|
+
description: string | null;
|
|
1007
|
+
context: string | null;
|
|
1008
|
+
type: string;
|
|
1009
|
+
status: string;
|
|
1010
|
+
totalContacts: number;
|
|
1011
|
+
stageCounts?: CampaignStatusTransitionStageCounts | undefined;
|
|
1012
|
+
createdAt: string;
|
|
1013
|
+
updatedAt: string;
|
|
1014
|
+
};
|
|
1015
|
+
|
|
1016
|
+
/**
|
|
1017
|
+
* Status updated
|
|
1018
|
+
*/
|
|
1019
|
+
export type CampaignStatusTransitionResponse = {
|
|
1020
|
+
success: true;
|
|
1021
|
+
campaign: CampaignStatusTransitionCampaign;
|
|
1022
|
+
/**
|
|
1023
|
+
* Credits consumed by this call (always 0 for contacts queries).
|
|
1024
|
+
*/
|
|
1025
|
+
creditsUsed: number;
|
|
1026
|
+
/**
|
|
1027
|
+
* Seconds to wait before next call of the same type (always 0 for contacts queries).
|
|
1028
|
+
*/
|
|
1029
|
+
retryAfter: number;
|
|
1030
|
+
};
|
|
1031
|
+
|
|
1032
|
+
export const ListCampaignContactsLifecycleStage = {
|
|
1033
|
+
Contact: "contact",
|
|
1034
|
+
Lead: "lead",
|
|
1035
|
+
Qualified: "qualified",
|
|
1036
|
+
Approved: "approved",
|
|
1037
|
+
Rejected: "rejected",
|
|
1038
|
+
} as const;
|
|
1039
|
+
export type ListCampaignContactsLifecycleStage = ClosedEnum<
|
|
1040
|
+
typeof ListCampaignContactsLifecycleStage
|
|
1041
|
+
>;
|
|
1042
|
+
|
|
1043
|
+
export type ListCampaignContactsRequest = {
|
|
1044
|
+
lifecycleStage?: ListCampaignContactsLifecycleStage | undefined;
|
|
1045
|
+
source?: string | undefined;
|
|
1046
|
+
sourceAngle?: string | undefined;
|
|
1047
|
+
minHotScore?: number | undefined;
|
|
1048
|
+
limit?: number | undefined;
|
|
1049
|
+
offset?: number | undefined;
|
|
1050
|
+
/**
|
|
1051
|
+
* Campaign ID
|
|
1052
|
+
*/
|
|
1053
|
+
campaignId: string;
|
|
1054
|
+
};
|
|
1055
|
+
|
|
1056
|
+
export type ListCampaignContactsContact = {
|
|
1057
|
+
id: string;
|
|
1058
|
+
linkedinUrl: string;
|
|
1059
|
+
/**
|
|
1060
|
+
* LinkedIn profile URN (e.g. urn:li:fsd_profile:ACoAAA...)
|
|
1061
|
+
*/
|
|
1062
|
+
profileUrn: string | null;
|
|
1063
|
+
/**
|
|
1064
|
+
* LinkedIn vanity slug (e.g. joshuaau)
|
|
1065
|
+
*/
|
|
1066
|
+
publicIdentifier: string | null;
|
|
1067
|
+
name: string;
|
|
1068
|
+
lifecycleStage: string;
|
|
1069
|
+
hotScore: number;
|
|
1070
|
+
qualificationNotes: string | null;
|
|
1071
|
+
notes: string | null;
|
|
1072
|
+
stageChangedAt: string | null;
|
|
1073
|
+
profileData: any | null;
|
|
1074
|
+
profileUpdatedAt: string | null;
|
|
1075
|
+
conversationData: any | null;
|
|
1076
|
+
conversationUpdatedAt: string | null;
|
|
1077
|
+
outreachStatus: string;
|
|
1078
|
+
lastContactedAt: string | null;
|
|
1079
|
+
lastRepliedAt: string | null;
|
|
1080
|
+
nextFollowUpAt: string | null;
|
|
1081
|
+
doNotContact: boolean;
|
|
1082
|
+
tags: Array<string>;
|
|
1083
|
+
createdAt: string;
|
|
1084
|
+
updatedAt: string;
|
|
1085
|
+
source: string;
|
|
1086
|
+
sourceAngle: string | null;
|
|
1087
|
+
addedAt: string;
|
|
1088
|
+
};
|
|
1089
|
+
|
|
1090
|
+
export type ListCampaignContactsPagination = {
|
|
1091
|
+
limit: number;
|
|
1092
|
+
offset: number;
|
|
1093
|
+
total: number;
|
|
1094
|
+
};
|
|
1095
|
+
|
|
1096
|
+
/**
|
|
1097
|
+
* Campaign contacts
|
|
1098
|
+
*/
|
|
1099
|
+
export type ListCampaignContactsResponse = {
|
|
1100
|
+
success: true;
|
|
1101
|
+
contacts: Array<ListCampaignContactsContact>;
|
|
1102
|
+
pagination: ListCampaignContactsPagination;
|
|
1103
|
+
/**
|
|
1104
|
+
* Credits consumed by this call (always 0 for contacts queries).
|
|
1105
|
+
*/
|
|
1106
|
+
creditsUsed: number;
|
|
1107
|
+
/**
|
|
1108
|
+
* Seconds to wait before next call of the same type (always 0 for contacts queries).
|
|
1109
|
+
*/
|
|
1110
|
+
retryAfter: number;
|
|
1111
|
+
};
|
|
1112
|
+
|
|
1113
|
+
/**
|
|
1114
|
+
* How this contact was found. Optional for organic creation (defaults to manual_import), required for campaign-based addition. Unknown values default to manual_import.
|
|
1115
|
+
*/
|
|
1116
|
+
export const AddCampaignContactsSource = {
|
|
1117
|
+
Likes: "likes",
|
|
1118
|
+
Comments: "comments",
|
|
1119
|
+
Reposts: "reposts",
|
|
1120
|
+
Posts: "posts",
|
|
1121
|
+
CompanyFollowers: "company_followers",
|
|
1122
|
+
SearchResults: "search_results",
|
|
1123
|
+
ManualImport: "manual_import",
|
|
1124
|
+
EventAttendees: "event_attendees",
|
|
1125
|
+
GroupMembers: "group_members",
|
|
1126
|
+
EngagementScraping: "engagement_scraping",
|
|
1127
|
+
ContentSearch: "content_search",
|
|
1128
|
+
FollowersMining: "followers_mining",
|
|
1129
|
+
PeopleSearch: "people_search",
|
|
1130
|
+
JobSearch: "job_search",
|
|
1131
|
+
CompanySearch: "company_search",
|
|
1132
|
+
NetworkExpansion: "network_expansion",
|
|
1133
|
+
BulkVisit: "bulk_visit",
|
|
1134
|
+
} as const;
|
|
1135
|
+
/**
|
|
1136
|
+
* How this contact was found. Optional for organic creation (defaults to manual_import), required for campaign-based addition. Unknown values default to manual_import.
|
|
1137
|
+
*/
|
|
1138
|
+
export type AddCampaignContactsSource = ClosedEnum<
|
|
1139
|
+
typeof AddCampaignContactsSource
|
|
1140
|
+
>;
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
* Lifecycle stage. Defaults to 'contact' on creation. Omit when adding existing contacts to avoid downgrading their stage.
|
|
1144
|
+
*/
|
|
1145
|
+
export const AddCampaignContactsLifecycleStage = {
|
|
1146
|
+
Contact: "contact",
|
|
1147
|
+
Lead: "lead",
|
|
1148
|
+
Qualified: "qualified",
|
|
1149
|
+
Approved: "approved",
|
|
1150
|
+
Rejected: "rejected",
|
|
1151
|
+
} as const;
|
|
1152
|
+
/**
|
|
1153
|
+
* Lifecycle stage. Defaults to 'contact' on creation. Omit when adding existing contacts to avoid downgrading their stage.
|
|
1154
|
+
*/
|
|
1155
|
+
export type AddCampaignContactsLifecycleStage = ClosedEnum<
|
|
1156
|
+
typeof AddCampaignContactsLifecycleStage
|
|
1157
|
+
>;
|
|
1158
|
+
|
|
1159
|
+
export type AddCampaignContactsContact = {
|
|
1160
|
+
/**
|
|
1161
|
+
* LinkedIn profile URL, URN, or bare vanity name
|
|
1162
|
+
*/
|
|
1163
|
+
linkedinUrl: string;
|
|
1164
|
+
/**
|
|
1165
|
+
* LinkedIn profile URN (e.g. urn:li:fsd_profile:ACoAAA...). Improves dedup when provided alongside a vanity URL.
|
|
1166
|
+
*/
|
|
1167
|
+
profileUrn?: string | null | undefined;
|
|
1168
|
+
/**
|
|
1169
|
+
* LinkedIn vanity slug (e.g. joshuaau). Improves dedup when provided alongside a URN.
|
|
1170
|
+
*/
|
|
1171
|
+
publicIdentifier?: string | null | undefined;
|
|
1172
|
+
/**
|
|
1173
|
+
* Profile name
|
|
1174
|
+
*/
|
|
1175
|
+
name: string;
|
|
1176
|
+
/**
|
|
1177
|
+
* How this contact was found. Optional for organic creation (defaults to manual_import), required for campaign-based addition. Unknown values default to manual_import.
|
|
1178
|
+
*/
|
|
1179
|
+
source?: AddCampaignContactsSource | undefined;
|
|
1180
|
+
/**
|
|
1181
|
+
* Which lead-gen angle found this (e.g., 'vp-sales-france')
|
|
1182
|
+
*/
|
|
1183
|
+
sourceAngle?: string | undefined;
|
|
1184
|
+
/**
|
|
1185
|
+
* Lifecycle stage. Defaults to 'contact' on creation. Omit when adding existing contacts to avoid downgrading their stage.
|
|
1186
|
+
*/
|
|
1187
|
+
lifecycleStage?: AddCampaignContactsLifecycleStage | undefined;
|
|
1188
|
+
/**
|
|
1189
|
+
* Contact quality score (0-100)
|
|
1190
|
+
*/
|
|
1191
|
+
hotScore?: number | undefined;
|
|
1192
|
+
/**
|
|
1193
|
+
* Agent reasoning for qualification decision
|
|
1194
|
+
*/
|
|
1195
|
+
qualificationNotes?: string | undefined;
|
|
1196
|
+
notes?: string | undefined;
|
|
1197
|
+
};
|
|
1198
|
+
|
|
1199
|
+
export type AddCampaignContactsRequestBody = {
|
|
1200
|
+
/**
|
|
1201
|
+
* Contacts to add (single or bulk)
|
|
1202
|
+
*/
|
|
1203
|
+
contacts: Array<AddCampaignContactsContact>;
|
|
1204
|
+
};
|
|
1205
|
+
|
|
1206
|
+
export type AddCampaignContactsRequest = {
|
|
1207
|
+
/**
|
|
1208
|
+
* Campaign ID
|
|
1209
|
+
*/
|
|
1210
|
+
campaignId: string;
|
|
1211
|
+
body: AddCampaignContactsRequestBody;
|
|
1212
|
+
};
|
|
1213
|
+
|
|
1214
|
+
export type AddCampaignContactsResults = {
|
|
1215
|
+
created: number;
|
|
1216
|
+
skipped: number;
|
|
1217
|
+
errors: Array<string>;
|
|
1218
|
+
};
|
|
1219
|
+
|
|
1220
|
+
/**
|
|
1221
|
+
* Contacts added
|
|
1222
|
+
*/
|
|
1223
|
+
export type AddCampaignContactsResponse = {
|
|
1224
|
+
success: true;
|
|
1225
|
+
results: AddCampaignContactsResults;
|
|
1226
|
+
/**
|
|
1227
|
+
* Credits consumed by this call (always 0 for contacts queries).
|
|
1228
|
+
*/
|
|
1229
|
+
creditsUsed: number;
|
|
1230
|
+
/**
|
|
1231
|
+
* Seconds to wait before next call of the same type (always 0 for contacts queries).
|
|
1232
|
+
*/
|
|
1233
|
+
retryAfter: number;
|
|
1234
|
+
};
|
|
1235
|
+
|
|
1236
|
+
export type GetByUrlRequest = {
|
|
1237
|
+
/**
|
|
1238
|
+
* LinkedIn profile URL to look up
|
|
1239
|
+
*/
|
|
1240
|
+
linkedinUrl: string;
|
|
1241
|
+
};
|
|
1242
|
+
|
|
1243
|
+
export type GetByUrlActivity = {
|
|
1244
|
+
id: string;
|
|
1245
|
+
type: string;
|
|
1246
|
+
content: string | null;
|
|
1247
|
+
metadata: any | null;
|
|
1248
|
+
createdAt: string;
|
|
1249
|
+
};
|
|
1250
|
+
|
|
1251
|
+
export type GetByUrlCampaign = {
|
|
1252
|
+
campaignId: string;
|
|
1253
|
+
campaignName: string;
|
|
1254
|
+
campaignStatus: string;
|
|
1255
|
+
source: string;
|
|
1256
|
+
sourceAngle: string | null;
|
|
1257
|
+
addedAt: string;
|
|
1258
|
+
};
|
|
1259
|
+
|
|
1260
|
+
export type GetByUrlContact = {
|
|
1261
|
+
id: string;
|
|
1262
|
+
linkedinUrl: string;
|
|
1263
|
+
/**
|
|
1264
|
+
* LinkedIn profile URN (e.g. urn:li:fsd_profile:ACoAAA...)
|
|
1265
|
+
*/
|
|
1266
|
+
profileUrn: string | null;
|
|
1267
|
+
/**
|
|
1268
|
+
* LinkedIn vanity slug (e.g. joshuaau)
|
|
1269
|
+
*/
|
|
1270
|
+
publicIdentifier: string | null;
|
|
1271
|
+
name: string;
|
|
1272
|
+
lifecycleStage: string;
|
|
1273
|
+
hotScore: number;
|
|
1274
|
+
qualificationNotes: string | null;
|
|
1275
|
+
notes: string | null;
|
|
1276
|
+
stageChangedAt: string | null;
|
|
1277
|
+
profileData: any | null;
|
|
1278
|
+
profileUpdatedAt: string | null;
|
|
1279
|
+
conversationData: any | null;
|
|
1280
|
+
conversationUpdatedAt: string | null;
|
|
1281
|
+
outreachStatus: string;
|
|
1282
|
+
lastContactedAt: string | null;
|
|
1283
|
+
lastRepliedAt: string | null;
|
|
1284
|
+
nextFollowUpAt: string | null;
|
|
1285
|
+
doNotContact: boolean;
|
|
1286
|
+
tags: Array<string>;
|
|
1287
|
+
createdAt: string;
|
|
1288
|
+
updatedAt: string;
|
|
1289
|
+
activities: Array<GetByUrlActivity>;
|
|
1290
|
+
campaigns: Array<GetByUrlCampaign>;
|
|
1291
|
+
};
|
|
1292
|
+
|
|
1293
|
+
/**
|
|
1294
|
+
* Contact found
|
|
1295
|
+
*/
|
|
1296
|
+
export type GetByUrlResponse = {
|
|
1297
|
+
success: true;
|
|
1298
|
+
contact: GetByUrlContact;
|
|
1299
|
+
/**
|
|
1300
|
+
* Credits consumed by this call (always 0 for contacts queries).
|
|
1301
|
+
*/
|
|
1302
|
+
creditsUsed: number;
|
|
1303
|
+
/**
|
|
1304
|
+
* Seconds to wait before next call of the same type (always 0 for contacts queries).
|
|
1305
|
+
*/
|
|
1306
|
+
retryAfter: number;
|
|
1307
|
+
};
|
|
1308
|
+
|
|
1309
|
+
export const QueryParamStatus = {
|
|
1310
|
+
Draft: "draft",
|
|
1311
|
+
Scheduled: "scheduled",
|
|
1312
|
+
Sending: "sending",
|
|
1313
|
+
Sent: "sent",
|
|
1314
|
+
Failed: "failed",
|
|
1315
|
+
Cancelled: "cancelled",
|
|
1316
|
+
} as const;
|
|
1317
|
+
export type QueryParamStatus = ClosedEnum<typeof QueryParamStatus>;
|
|
1318
|
+
|
|
1319
|
+
export type ListMessagesRequest = {
|
|
1320
|
+
status?: QueryParamStatus | undefined;
|
|
1321
|
+
contactId?: string | undefined;
|
|
1322
|
+
campaignSlug?: string | undefined;
|
|
1323
|
+
limit?: number | undefined;
|
|
1324
|
+
offset?: number | undefined;
|
|
1325
|
+
};
|
|
1326
|
+
|
|
1327
|
+
export const MessageStatus = {
|
|
1328
|
+
Draft: "draft",
|
|
1329
|
+
Scheduled: "scheduled",
|
|
1330
|
+
Sending: "sending",
|
|
1331
|
+
Sent: "sent",
|
|
1332
|
+
Failed: "failed",
|
|
1333
|
+
Cancelled: "cancelled",
|
|
1334
|
+
} as const;
|
|
1335
|
+
export type MessageStatus = OpenEnum<typeof MessageStatus>;
|
|
1336
|
+
|
|
1337
|
+
export type ListMessagesMessage = {
|
|
1338
|
+
id: string;
|
|
1339
|
+
contactId: string;
|
|
1340
|
+
/**
|
|
1341
|
+
* Contact name (included in list, absent in create)
|
|
1342
|
+
*/
|
|
1343
|
+
contactName?: string | null | undefined;
|
|
1344
|
+
/**
|
|
1345
|
+
* Contact LinkedIn URL (included in list, absent in create)
|
|
1346
|
+
*/
|
|
1347
|
+
contactLinkedinUrl?: string | null | undefined;
|
|
1348
|
+
message: string;
|
|
1349
|
+
status: MessageStatus;
|
|
1350
|
+
scheduledSendAt: string | null;
|
|
1351
|
+
sentAt: string | null;
|
|
1352
|
+
campaignSlug: string | null;
|
|
1353
|
+
/**
|
|
1354
|
+
* Error message if status is 'failed'
|
|
1355
|
+
*/
|
|
1356
|
+
errorMessage?: string | null | undefined;
|
|
1357
|
+
createdAt: string;
|
|
1358
|
+
};
|
|
1359
|
+
|
|
1360
|
+
/**
|
|
1361
|
+
* Messages list
|
|
1362
|
+
*/
|
|
1363
|
+
export type ListMessagesResponse = {
|
|
1364
|
+
success: true;
|
|
1365
|
+
messages: Array<ListMessagesMessage>;
|
|
1366
|
+
total: number;
|
|
1367
|
+
limit: number;
|
|
1368
|
+
offset: number;
|
|
1369
|
+
/**
|
|
1370
|
+
* Credits consumed (always 0 for workspace operations).
|
|
1371
|
+
*/
|
|
1372
|
+
creditsUsed: number;
|
|
1373
|
+
/**
|
|
1374
|
+
* Seconds to wait (always 0 for workspace operations).
|
|
1375
|
+
*/
|
|
1376
|
+
retryAfter: number;
|
|
1377
|
+
};
|
|
1378
|
+
|
|
1379
|
+
/**
|
|
1380
|
+
* Default 'draft'
|
|
1381
|
+
*/
|
|
1382
|
+
export const CreateStatusRequest = {
|
|
1383
|
+
Draft: "draft",
|
|
1384
|
+
Scheduled: "scheduled",
|
|
1385
|
+
} as const;
|
|
1386
|
+
/**
|
|
1387
|
+
* Default 'draft'
|
|
1388
|
+
*/
|
|
1389
|
+
export type CreateStatusRequest = ClosedEnum<typeof CreateStatusRequest>;
|
|
1390
|
+
|
|
1391
|
+
export type CreateRequest = {
|
|
1392
|
+
/**
|
|
1393
|
+
* Internal contact ID
|
|
1394
|
+
*/
|
|
1395
|
+
contactId: string;
|
|
1396
|
+
/**
|
|
1397
|
+
* DM text
|
|
1398
|
+
*/
|
|
1399
|
+
message: string;
|
|
1400
|
+
/**
|
|
1401
|
+
* Default 'draft'
|
|
1402
|
+
*/
|
|
1403
|
+
status?: CreateStatusRequest | undefined;
|
|
1404
|
+
/**
|
|
1405
|
+
* ISO datetime for auto-send
|
|
1406
|
+
*/
|
|
1407
|
+
scheduledSendAt?: string | undefined;
|
|
1408
|
+
campaignSlug?: string | undefined;
|
|
1409
|
+
};
|
|
1410
|
+
|
|
1411
|
+
export const ScheduledMessageStatus = {
|
|
1412
|
+
Draft: "draft",
|
|
1413
|
+
Scheduled: "scheduled",
|
|
1414
|
+
Sending: "sending",
|
|
1415
|
+
Sent: "sent",
|
|
1416
|
+
Failed: "failed",
|
|
1417
|
+
Cancelled: "cancelled",
|
|
1418
|
+
} as const;
|
|
1419
|
+
export type ScheduledMessageStatus = OpenEnum<typeof ScheduledMessageStatus>;
|
|
1420
|
+
|
|
1421
|
+
export type ScheduledMessage = {
|
|
1422
|
+
id: string;
|
|
1423
|
+
contactId: string;
|
|
1424
|
+
/**
|
|
1425
|
+
* Contact name (included in list, absent in create)
|
|
1426
|
+
*/
|
|
1427
|
+
contactName?: string | null | undefined;
|
|
1428
|
+
/**
|
|
1429
|
+
* Contact LinkedIn URL (included in list, absent in create)
|
|
1430
|
+
*/
|
|
1431
|
+
contactLinkedinUrl?: string | null | undefined;
|
|
1432
|
+
message: string;
|
|
1433
|
+
status: ScheduledMessageStatus;
|
|
1434
|
+
scheduledSendAt: string | null;
|
|
1435
|
+
sentAt: string | null;
|
|
1436
|
+
campaignSlug: string | null;
|
|
1437
|
+
/**
|
|
1438
|
+
* Error message if status is 'failed'
|
|
1439
|
+
*/
|
|
1440
|
+
errorMessage?: string | null | undefined;
|
|
1441
|
+
createdAt: string;
|
|
1442
|
+
};
|
|
1443
|
+
|
|
1444
|
+
/**
|
|
1445
|
+
* Message created
|
|
1446
|
+
*/
|
|
1447
|
+
export type CreateResponse = {
|
|
1448
|
+
success: true;
|
|
1449
|
+
scheduledMessage: ScheduledMessage;
|
|
1450
|
+
/**
|
|
1451
|
+
* Credits consumed (always 0 for workspace operations).
|
|
1452
|
+
*/
|
|
1453
|
+
creditsUsed: number;
|
|
1454
|
+
/**
|
|
1455
|
+
* Seconds to wait (always 0 for workspace operations).
|
|
1456
|
+
*/
|
|
1457
|
+
retryAfter: number;
|
|
1458
|
+
};
|
|
1459
|
+
|
|
1460
|
+
export type BatchScheduleRequest = {
|
|
1461
|
+
/**
|
|
1462
|
+
* Schedule all drafts for these contacts
|
|
1463
|
+
*/
|
|
1464
|
+
contactIds?: Array<string> | undefined;
|
|
1465
|
+
/**
|
|
1466
|
+
* Schedule specific messages
|
|
1467
|
+
*/
|
|
1468
|
+
messageIds?: Array<string> | undefined;
|
|
1469
|
+
/**
|
|
1470
|
+
* ISO datetime for sending
|
|
1471
|
+
*/
|
|
1472
|
+
scheduledSendAt: string;
|
|
1473
|
+
};
|
|
1474
|
+
|
|
1475
|
+
/**
|
|
1476
|
+
* Messages scheduled
|
|
1477
|
+
*/
|
|
1478
|
+
export type BatchScheduleResponse = {
|
|
1479
|
+
success: true;
|
|
1480
|
+
/**
|
|
1481
|
+
* Number of messages scheduled
|
|
1482
|
+
*/
|
|
1483
|
+
scheduled: number;
|
|
1484
|
+
/**
|
|
1485
|
+
* ISO datetime for sending
|
|
1486
|
+
*/
|
|
1487
|
+
scheduledSendAt: string;
|
|
1488
|
+
/**
|
|
1489
|
+
* Credits consumed (always 0 for workspace operations).
|
|
1490
|
+
*/
|
|
1491
|
+
creditsUsed: number;
|
|
1492
|
+
/**
|
|
1493
|
+
* Seconds to wait (always 0 for workspace operations).
|
|
1494
|
+
*/
|
|
1495
|
+
retryAfter: number;
|
|
1496
|
+
};
|
|
1497
|
+
|
|
1498
|
+
export type CancelRequest = {
|
|
1499
|
+
/**
|
|
1500
|
+
* Cancel specific messages
|
|
1501
|
+
*/
|
|
1502
|
+
messageIds?: Array<string> | undefined;
|
|
1503
|
+
/**
|
|
1504
|
+
* Cancel all pending for these contacts
|
|
1505
|
+
*/
|
|
1506
|
+
contactIds?: Array<string> | undefined;
|
|
1507
|
+
};
|
|
1508
|
+
|
|
1509
|
+
/**
|
|
1510
|
+
* Messages cancelled
|
|
1511
|
+
*/
|
|
1512
|
+
export type CancelResponse = {
|
|
1513
|
+
success: true;
|
|
1514
|
+
cancelled: number;
|
|
1515
|
+
/**
|
|
1516
|
+
* Credits consumed (always 0 for workspace operations).
|
|
1517
|
+
*/
|
|
1518
|
+
creditsUsed: number;
|
|
1519
|
+
/**
|
|
1520
|
+
* Seconds to wait (always 0 for workspace operations).
|
|
1521
|
+
*/
|
|
1522
|
+
retryAfter: number;
|
|
1523
|
+
};
|
|
1524
|
+
|
|
1525
|
+
export type ListEntriesRequest = {
|
|
1526
|
+
/**
|
|
1527
|
+
* Filter by scope (e.g. "campaign:abc", "user")
|
|
1528
|
+
*/
|
|
1529
|
+
scope?: string | undefined;
|
|
1530
|
+
/**
|
|
1531
|
+
* Filter by type (e.g. "icp", "tone-voice")
|
|
1532
|
+
*/
|
|
1533
|
+
type?: string | undefined;
|
|
1534
|
+
};
|
|
1535
|
+
|
|
1536
|
+
export type ListEntriesEntry = {
|
|
1537
|
+
/**
|
|
1538
|
+
* Unique entry ID
|
|
1539
|
+
*/
|
|
1540
|
+
id: string;
|
|
1541
|
+
type: string;
|
|
1542
|
+
label: string | null;
|
|
1543
|
+
content: string;
|
|
1544
|
+
scope: string;
|
|
1545
|
+
updatedAt: string;
|
|
1546
|
+
};
|
|
1547
|
+
|
|
1548
|
+
/**
|
|
1549
|
+
* Context entries
|
|
1550
|
+
*/
|
|
1551
|
+
export type ListEntriesResponse = {
|
|
1552
|
+
success: true;
|
|
1553
|
+
entries: Array<ListEntriesEntry>;
|
|
1554
|
+
/**
|
|
1555
|
+
* Credits consumed (always 0 for workspace operations).
|
|
1556
|
+
*/
|
|
1557
|
+
creditsUsed: number;
|
|
1558
|
+
/**
|
|
1559
|
+
* Seconds to wait (always 0 for workspace operations).
|
|
1560
|
+
*/
|
|
1561
|
+
retryAfter: number;
|
|
1562
|
+
};
|
|
1563
|
+
|
|
1564
|
+
export type SetRequest = {
|
|
1565
|
+
/**
|
|
1566
|
+
* Context type: "user-profile", "product-pitch", "icp", "tone-voice", "playbook", or "custom:{slug}"
|
|
1567
|
+
*/
|
|
1568
|
+
type: string;
|
|
1569
|
+
/**
|
|
1570
|
+
* Markdown content
|
|
1571
|
+
*/
|
|
1572
|
+
content: string;
|
|
1573
|
+
/**
|
|
1574
|
+
* Defaults to "user"
|
|
1575
|
+
*/
|
|
1576
|
+
scope?: string | undefined;
|
|
1577
|
+
/**
|
|
1578
|
+
* Display label
|
|
1579
|
+
*/
|
|
1580
|
+
label?: string | undefined;
|
|
1581
|
+
};
|
|
1582
|
+
|
|
1583
|
+
export type SetEntry = {
|
|
1584
|
+
/**
|
|
1585
|
+
* Unique entry ID
|
|
1586
|
+
*/
|
|
1587
|
+
id: string;
|
|
1588
|
+
type: string;
|
|
1589
|
+
label: string | null;
|
|
1590
|
+
content: string;
|
|
1591
|
+
scope: string;
|
|
1592
|
+
updatedAt: string;
|
|
1593
|
+
};
|
|
1594
|
+
|
|
1595
|
+
/**
|
|
1596
|
+
* Context saved
|
|
1597
|
+
*/
|
|
1598
|
+
export type SetResponse = {
|
|
1599
|
+
success: true;
|
|
1600
|
+
entry: SetEntry;
|
|
1601
|
+
/**
|
|
1602
|
+
* Credits consumed (always 0 for workspace operations).
|
|
1603
|
+
*/
|
|
1604
|
+
creditsUsed: number;
|
|
1605
|
+
/**
|
|
1606
|
+
* Seconds to wait (always 0 for workspace operations).
|
|
1607
|
+
*/
|
|
1608
|
+
retryAfter: number;
|
|
1609
|
+
};
|
|
1610
|
+
|
|
1611
|
+
export type DeleteRequest = {
|
|
1612
|
+
/**
|
|
1613
|
+
* Context type to delete
|
|
1614
|
+
*/
|
|
1615
|
+
type: string;
|
|
1616
|
+
/**
|
|
1617
|
+
* Scope (defaults to "user")
|
|
1618
|
+
*/
|
|
1619
|
+
scope?: string | undefined;
|
|
1620
|
+
};
|
|
1621
|
+
|
|
1622
|
+
/**
|
|
1623
|
+
* Context deleted
|
|
1624
|
+
*/
|
|
1625
|
+
export type DeleteResponse = {
|
|
1626
|
+
success: true;
|
|
1627
|
+
/**
|
|
1628
|
+
* Credits consumed (always 0 for workspace operations).
|
|
1629
|
+
*/
|
|
1630
|
+
creditsUsed: number;
|
|
1631
|
+
/**
|
|
1632
|
+
* Seconds to wait (always 0 for workspace operations).
|
|
1633
|
+
*/
|
|
1634
|
+
retryAfter: number;
|
|
1635
|
+
};
|
|
1636
|
+
|
|
1637
|
+
export type Schedule = {
|
|
1638
|
+
scheduleId: string;
|
|
1639
|
+
/**
|
|
1640
|
+
* Human-readable schedule name (e.g. 'DM Polling', 'Draft Send')
|
|
1641
|
+
*/
|
|
1642
|
+
name: string;
|
|
1643
|
+
cron: string | null;
|
|
1644
|
+
isPaused: boolean;
|
|
1645
|
+
/**
|
|
1646
|
+
* ISO 8601 timestamp of last execution
|
|
1647
|
+
*/
|
|
1648
|
+
lastRun: string | null;
|
|
1649
|
+
/**
|
|
1650
|
+
* ISO 8601 timestamp of next scheduled execution
|
|
1651
|
+
*/
|
|
1652
|
+
nextRun: string | null;
|
|
1653
|
+
/**
|
|
1654
|
+
* Status of the last execution
|
|
1655
|
+
*/
|
|
1656
|
+
lastStatus: any | null;
|
|
1657
|
+
/**
|
|
1658
|
+
* The endpoint URL this schedule invokes
|
|
1659
|
+
*/
|
|
1660
|
+
destination: string;
|
|
1661
|
+
};
|
|
1662
|
+
|
|
1663
|
+
/**
|
|
1664
|
+
* Cron schedules
|
|
1665
|
+
*/
|
|
1666
|
+
export type ListSchedulesResponse = {
|
|
1667
|
+
success: true;
|
|
1668
|
+
schedules: Array<Schedule>;
|
|
1669
|
+
/**
|
|
1670
|
+
* Credits consumed (always 0 for workspace operations).
|
|
1671
|
+
*/
|
|
1672
|
+
creditsUsed: number;
|
|
1673
|
+
/**
|
|
1674
|
+
* Seconds to wait (always 0 for workspace operations).
|
|
1675
|
+
*/
|
|
1676
|
+
retryAfter: number;
|
|
1677
|
+
};
|
|
1678
|
+
|
|
1679
|
+
/**
|
|
1680
|
+
* Action to perform
|
|
1681
|
+
*/
|
|
1682
|
+
export const UpdateScheduleAction = {
|
|
1683
|
+
Pause: "pause",
|
|
1684
|
+
Resume: "resume",
|
|
1685
|
+
Delete: "delete",
|
|
1686
|
+
} as const;
|
|
1687
|
+
/**
|
|
1688
|
+
* Action to perform
|
|
1689
|
+
*/
|
|
1690
|
+
export type UpdateScheduleAction = ClosedEnum<typeof UpdateScheduleAction>;
|
|
1691
|
+
|
|
1692
|
+
export type UpdateScheduleRequestBody = {
|
|
1693
|
+
/**
|
|
1694
|
+
* Action to perform
|
|
1695
|
+
*/
|
|
1696
|
+
action: UpdateScheduleAction;
|
|
1697
|
+
};
|
|
1698
|
+
|
|
1699
|
+
export type UpdateScheduleRequest = {
|
|
1700
|
+
/**
|
|
1701
|
+
* Schedule ID
|
|
1702
|
+
*/
|
|
1703
|
+
scheduleId: string;
|
|
1704
|
+
body: UpdateScheduleRequestBody;
|
|
1705
|
+
};
|
|
1706
|
+
|
|
1707
|
+
/**
|
|
1708
|
+
* Schedule updated
|
|
1709
|
+
*/
|
|
1710
|
+
export type UpdateScheduleResponse = {
|
|
1711
|
+
success: true;
|
|
1712
|
+
/**
|
|
1713
|
+
* Credits consumed (always 0 for workspace operations).
|
|
1714
|
+
*/
|
|
1715
|
+
creditsUsed: number;
|
|
1716
|
+
/**
|
|
1717
|
+
* Seconds to wait (always 0 for workspace operations).
|
|
1718
|
+
*/
|
|
1719
|
+
retryAfter: number;
|
|
1720
|
+
};
|
|
1721
|
+
|
|
1722
|
+
/** @internal */
|
|
1723
|
+
export const SearchContactsPagination$inboundSchema: z.ZodMiniType<
|
|
1724
|
+
SearchContactsPagination,
|
|
1725
|
+
unknown
|
|
1726
|
+
> = z.object({
|
|
1727
|
+
limit: types.number(),
|
|
1728
|
+
offset: types.number(),
|
|
1729
|
+
total: types.number(),
|
|
1730
|
+
});
|
|
1731
|
+
|
|
1732
|
+
export function searchContactsPaginationFromJSON(
|
|
1733
|
+
jsonString: string,
|
|
1734
|
+
): SafeParseResult<SearchContactsPagination, SDKValidationError> {
|
|
1735
|
+
return safeParse(
|
|
1736
|
+
jsonString,
|
|
1737
|
+
(x) => SearchContactsPagination$inboundSchema.parse(JSON.parse(x)),
|
|
1738
|
+
`Failed to parse 'SearchContactsPagination' from JSON`,
|
|
1739
|
+
);
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
/** @internal */
|
|
1743
|
+
export const SearchContactsResponse$inboundSchema: z.ZodMiniType<
|
|
1744
|
+
SearchContactsResponse,
|
|
1745
|
+
unknown
|
|
1746
|
+
> = z.object({
|
|
1747
|
+
success: types.literal(true),
|
|
1748
|
+
contacts: z.array(SearchContactsContact$inboundSchema),
|
|
1749
|
+
pagination: z.lazy(() => SearchContactsPagination$inboundSchema),
|
|
1750
|
+
creditsUsed: types.number(),
|
|
1751
|
+
retryAfter: types.number(),
|
|
1752
|
+
});
|
|
1753
|
+
|
|
1754
|
+
export function searchContactsResponseFromJSON(
|
|
1755
|
+
jsonString: string,
|
|
1756
|
+
): SafeParseResult<SearchContactsResponse, SDKValidationError> {
|
|
1757
|
+
return safeParse(
|
|
1758
|
+
jsonString,
|
|
1759
|
+
(x) => SearchContactsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
1760
|
+
`Failed to parse 'SearchContactsResponse' from JSON`,
|
|
1761
|
+
);
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1764
|
+
/** @internal */
|
|
1765
|
+
export type GetContactRequest$Outbound = {
|
|
1766
|
+
id: string;
|
|
1767
|
+
};
|
|
1768
|
+
|
|
1769
|
+
/** @internal */
|
|
1770
|
+
export const GetContactRequest$outboundSchema: z.ZodMiniType<
|
|
1771
|
+
GetContactRequest$Outbound,
|
|
1772
|
+
GetContactRequest
|
|
1773
|
+
> = z.object({
|
|
1774
|
+
id: z.string(),
|
|
1775
|
+
});
|
|
1776
|
+
|
|
1777
|
+
export function getContactRequestToJSON(
|
|
1778
|
+
getContactRequest: GetContactRequest,
|
|
1779
|
+
): string {
|
|
1780
|
+
return JSON.stringify(
|
|
1781
|
+
GetContactRequest$outboundSchema.parse(getContactRequest),
|
|
1782
|
+
);
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
/** @internal */
|
|
1786
|
+
export const GetContactActivity$inboundSchema: z.ZodMiniType<
|
|
1787
|
+
GetContactActivity,
|
|
1788
|
+
unknown
|
|
1789
|
+
> = z.object({
|
|
1790
|
+
id: types.string(),
|
|
1791
|
+
type: types.string(),
|
|
1792
|
+
content: types.nullable(types.string()),
|
|
1793
|
+
metadata: types.nullable(z.any()),
|
|
1794
|
+
createdAt: types.string(),
|
|
1795
|
+
});
|
|
1796
|
+
|
|
1797
|
+
export function getContactActivityFromJSON(
|
|
1798
|
+
jsonString: string,
|
|
1799
|
+
): SafeParseResult<GetContactActivity, SDKValidationError> {
|
|
1800
|
+
return safeParse(
|
|
1801
|
+
jsonString,
|
|
1802
|
+
(x) => GetContactActivity$inboundSchema.parse(JSON.parse(x)),
|
|
1803
|
+
`Failed to parse 'GetContactActivity' from JSON`,
|
|
1804
|
+
);
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
/** @internal */
|
|
1808
|
+
export const GetContactCampaign$inboundSchema: z.ZodMiniType<
|
|
1809
|
+
GetContactCampaign,
|
|
1810
|
+
unknown
|
|
1811
|
+
> = z.object({
|
|
1812
|
+
campaignId: types.string(),
|
|
1813
|
+
campaignName: types.string(),
|
|
1814
|
+
campaignStatus: types.string(),
|
|
1815
|
+
source: types.string(),
|
|
1816
|
+
sourceAngle: types.nullable(types.string()),
|
|
1817
|
+
addedAt: types.string(),
|
|
1818
|
+
});
|
|
1819
|
+
|
|
1820
|
+
export function getContactCampaignFromJSON(
|
|
1821
|
+
jsonString: string,
|
|
1822
|
+
): SafeParseResult<GetContactCampaign, SDKValidationError> {
|
|
1823
|
+
return safeParse(
|
|
1824
|
+
jsonString,
|
|
1825
|
+
(x) => GetContactCampaign$inboundSchema.parse(JSON.parse(x)),
|
|
1826
|
+
`Failed to parse 'GetContactCampaign' from JSON`,
|
|
1827
|
+
);
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
/** @internal */
|
|
1831
|
+
export const GetContactContact$inboundSchema: z.ZodMiniType<
|
|
1832
|
+
GetContactContact,
|
|
1833
|
+
unknown
|
|
1834
|
+
> = z.object({
|
|
1835
|
+
id: types.string(),
|
|
1836
|
+
linkedinUrl: types.string(),
|
|
1837
|
+
profileUrn: types.nullable(types.string()),
|
|
1838
|
+
publicIdentifier: types.nullable(types.string()),
|
|
1839
|
+
name: types.string(),
|
|
1840
|
+
lifecycleStage: types.string(),
|
|
1841
|
+
hotScore: types.number(),
|
|
1842
|
+
qualificationNotes: types.nullable(types.string()),
|
|
1843
|
+
notes: types.nullable(types.string()),
|
|
1844
|
+
stageChangedAt: types.nullable(types.string()),
|
|
1845
|
+
profileData: types.nullable(z.any()),
|
|
1846
|
+
profileUpdatedAt: types.nullable(types.string()),
|
|
1847
|
+
conversationData: types.nullable(z.any()),
|
|
1848
|
+
conversationUpdatedAt: types.nullable(types.string()),
|
|
1849
|
+
outreachStatus: types.string(),
|
|
1850
|
+
lastContactedAt: types.nullable(types.string()),
|
|
1851
|
+
lastRepliedAt: types.nullable(types.string()),
|
|
1852
|
+
nextFollowUpAt: types.nullable(types.string()),
|
|
1853
|
+
doNotContact: types.boolean(),
|
|
1854
|
+
tags: z.array(types.string()),
|
|
1855
|
+
createdAt: types.string(),
|
|
1856
|
+
updatedAt: types.string(),
|
|
1857
|
+
activities: z.array(z.lazy(() => GetContactActivity$inboundSchema)),
|
|
1858
|
+
campaigns: z.array(z.lazy(() => GetContactCampaign$inboundSchema)),
|
|
1859
|
+
});
|
|
1860
|
+
|
|
1861
|
+
export function getContactContactFromJSON(
|
|
1862
|
+
jsonString: string,
|
|
1863
|
+
): SafeParseResult<GetContactContact, SDKValidationError> {
|
|
1864
|
+
return safeParse(
|
|
1865
|
+
jsonString,
|
|
1866
|
+
(x) => GetContactContact$inboundSchema.parse(JSON.parse(x)),
|
|
1867
|
+
`Failed to parse 'GetContactContact' from JSON`,
|
|
1868
|
+
);
|
|
1869
|
+
}
|
|
1870
|
+
|
|
1871
|
+
/** @internal */
|
|
1872
|
+
export const GetContactResponse$inboundSchema: z.ZodMiniType<
|
|
1873
|
+
GetContactResponse,
|
|
1874
|
+
unknown
|
|
1875
|
+
> = z.object({
|
|
1876
|
+
success: types.literal(true),
|
|
1877
|
+
contact: z.lazy(() => GetContactContact$inboundSchema),
|
|
1878
|
+
creditsUsed: types.number(),
|
|
1879
|
+
retryAfter: types.number(),
|
|
1880
|
+
});
|
|
1881
|
+
|
|
1882
|
+
export function getContactResponseFromJSON(
|
|
1883
|
+
jsonString: string,
|
|
1884
|
+
): SafeParseResult<GetContactResponse, SDKValidationError> {
|
|
1885
|
+
return safeParse(
|
|
1886
|
+
jsonString,
|
|
1887
|
+
(x) => GetContactResponse$inboundSchema.parse(JSON.parse(x)),
|
|
1888
|
+
`Failed to parse 'GetContactResponse' from JSON`,
|
|
1889
|
+
);
|
|
1890
|
+
}
|
|
1891
|
+
|
|
1892
|
+
/** @internal */
|
|
1893
|
+
export const UpdateLifecycleStage$outboundSchema: z.ZodMiniEnum<
|
|
1894
|
+
typeof UpdateLifecycleStage
|
|
1895
|
+
> = z.enum(UpdateLifecycleStage);
|
|
1896
|
+
|
|
1897
|
+
/** @internal */
|
|
1898
|
+
export const UpdateOutreachStatus$outboundSchema: z.ZodMiniEnum<
|
|
1899
|
+
typeof UpdateOutreachStatus
|
|
1900
|
+
> = z.enum(UpdateOutreachStatus);
|
|
1901
|
+
|
|
1902
|
+
/** @internal */
|
|
1903
|
+
export type Tags3$Outbound = {
|
|
1904
|
+
set: Array<string>;
|
|
1905
|
+
};
|
|
1906
|
+
|
|
1907
|
+
/** @internal */
|
|
1908
|
+
export const Tags3$outboundSchema: z.ZodMiniType<Tags3$Outbound, Tags3> = z
|
|
1909
|
+
.object({
|
|
1910
|
+
set: z.array(z.string()),
|
|
1911
|
+
});
|
|
1912
|
+
|
|
1913
|
+
export function tags3ToJSON(tags3: Tags3): string {
|
|
1914
|
+
return JSON.stringify(Tags3$outboundSchema.parse(tags3));
|
|
1915
|
+
}
|
|
1916
|
+
|
|
1917
|
+
/** @internal */
|
|
1918
|
+
export type Tags2$Outbound = {
|
|
1919
|
+
add?: Array<string> | undefined;
|
|
1920
|
+
remove: Array<string>;
|
|
1921
|
+
};
|
|
1922
|
+
|
|
1923
|
+
/** @internal */
|
|
1924
|
+
export const Tags2$outboundSchema: z.ZodMiniType<Tags2$Outbound, Tags2> = z
|
|
1925
|
+
.object({
|
|
1926
|
+
add: z.optional(z.array(z.string())),
|
|
1927
|
+
remove: z.array(z.string()),
|
|
1928
|
+
});
|
|
1929
|
+
|
|
1930
|
+
export function tags2ToJSON(tags2: Tags2): string {
|
|
1931
|
+
return JSON.stringify(Tags2$outboundSchema.parse(tags2));
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
/** @internal */
|
|
1935
|
+
export type Tags1$Outbound = {
|
|
1936
|
+
add: Array<string>;
|
|
1937
|
+
remove?: Array<string> | undefined;
|
|
1938
|
+
};
|
|
1939
|
+
|
|
1940
|
+
/** @internal */
|
|
1941
|
+
export const Tags1$outboundSchema: z.ZodMiniType<Tags1$Outbound, Tags1> = z
|
|
1942
|
+
.object({
|
|
1943
|
+
add: z.array(z.string()),
|
|
1944
|
+
remove: z.optional(z.array(z.string())),
|
|
1945
|
+
});
|
|
1946
|
+
|
|
1947
|
+
export function tags1ToJSON(tags1: Tags1): string {
|
|
1948
|
+
return JSON.stringify(Tags1$outboundSchema.parse(tags1));
|
|
1949
|
+
}
|
|
1950
|
+
|
|
1951
|
+
/** @internal */
|
|
1952
|
+
export type TagsUnion$Outbound =
|
|
1953
|
+
| Tags1$Outbound
|
|
1954
|
+
| Tags2$Outbound
|
|
1955
|
+
| Tags3$Outbound;
|
|
1956
|
+
|
|
1957
|
+
/** @internal */
|
|
1958
|
+
export const TagsUnion$outboundSchema: z.ZodMiniType<
|
|
1959
|
+
TagsUnion$Outbound,
|
|
1960
|
+
TagsUnion
|
|
1961
|
+
> = smartUnion([
|
|
1962
|
+
z.lazy(() => Tags1$outboundSchema),
|
|
1963
|
+
z.lazy(() => Tags2$outboundSchema),
|
|
1964
|
+
z.lazy(() => Tags3$outboundSchema),
|
|
1965
|
+
]);
|
|
1966
|
+
|
|
1967
|
+
export function tagsUnionToJSON(tagsUnion: TagsUnion): string {
|
|
1968
|
+
return JSON.stringify(TagsUnion$outboundSchema.parse(tagsUnion));
|
|
1969
|
+
}
|
|
1970
|
+
|
|
1971
|
+
/** @internal */
|
|
1972
|
+
export type UpdateRequestBody$Outbound = {
|
|
1973
|
+
lifecycleStage?: string | undefined;
|
|
1974
|
+
hotScore?: number | undefined;
|
|
1975
|
+
qualificationNotes?: string | undefined;
|
|
1976
|
+
notes?: string | undefined;
|
|
1977
|
+
name?: string | undefined;
|
|
1978
|
+
profileData?: any | undefined;
|
|
1979
|
+
profileUpdatedAt?: string | undefined;
|
|
1980
|
+
conversationData?: any | undefined;
|
|
1981
|
+
conversationUpdatedAt?: string | undefined;
|
|
1982
|
+
outreachStatus?: string | undefined;
|
|
1983
|
+
nextFollowUpAt?: string | null | undefined;
|
|
1984
|
+
doNotContact?: boolean | undefined;
|
|
1985
|
+
tags?: Tags1$Outbound | Tags2$Outbound | Tags3$Outbound | undefined;
|
|
1986
|
+
};
|
|
1987
|
+
|
|
1988
|
+
/** @internal */
|
|
1989
|
+
export const UpdateRequestBody$outboundSchema: z.ZodMiniType<
|
|
1990
|
+
UpdateRequestBody$Outbound,
|
|
1991
|
+
UpdateRequestBody
|
|
1992
|
+
> = z.object({
|
|
1993
|
+
lifecycleStage: z.optional(UpdateLifecycleStage$outboundSchema),
|
|
1994
|
+
hotScore: z.optional(z.int()),
|
|
1995
|
+
qualificationNotes: z.optional(z.string()),
|
|
1996
|
+
notes: z.optional(z.string()),
|
|
1997
|
+
name: z.optional(z.string()),
|
|
1998
|
+
profileData: z.optional(z.any()),
|
|
1999
|
+
profileUpdatedAt: z.optional(
|
|
2000
|
+
z.pipe(z.date(), z.transform(v => v.toISOString())),
|
|
2001
|
+
),
|
|
2002
|
+
conversationData: z.optional(z.any()),
|
|
2003
|
+
conversationUpdatedAt: z.optional(
|
|
2004
|
+
z.pipe(z.date(), z.transform(v => v.toISOString())),
|
|
2005
|
+
),
|
|
2006
|
+
outreachStatus: z.optional(UpdateOutreachStatus$outboundSchema),
|
|
2007
|
+
nextFollowUpAt: z.optional(
|
|
2008
|
+
z.nullable(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
2009
|
+
),
|
|
2010
|
+
doNotContact: z.optional(z.boolean()),
|
|
2011
|
+
tags: z.optional(
|
|
2012
|
+
smartUnion([
|
|
2013
|
+
z.lazy(() => Tags1$outboundSchema),
|
|
2014
|
+
z.lazy(() => Tags2$outboundSchema),
|
|
2015
|
+
z.lazy(() => Tags3$outboundSchema),
|
|
2016
|
+
]),
|
|
2017
|
+
),
|
|
2018
|
+
});
|
|
2019
|
+
|
|
2020
|
+
export function updateRequestBodyToJSON(
|
|
2021
|
+
updateRequestBody: UpdateRequestBody,
|
|
2022
|
+
): string {
|
|
2023
|
+
return JSON.stringify(
|
|
2024
|
+
UpdateRequestBody$outboundSchema.parse(updateRequestBody),
|
|
2025
|
+
);
|
|
2026
|
+
}
|
|
2027
|
+
|
|
2028
|
+
/** @internal */
|
|
2029
|
+
export type UpdateRequest$Outbound = {
|
|
2030
|
+
id: string;
|
|
2031
|
+
body: UpdateRequestBody$Outbound;
|
|
2032
|
+
};
|
|
2033
|
+
|
|
2034
|
+
/** @internal */
|
|
2035
|
+
export const UpdateRequest$outboundSchema: z.ZodMiniType<
|
|
2036
|
+
UpdateRequest$Outbound,
|
|
2037
|
+
UpdateRequest
|
|
2038
|
+
> = z.object({
|
|
2039
|
+
id: z.string(),
|
|
2040
|
+
body: z.lazy(() => UpdateRequestBody$outboundSchema),
|
|
2041
|
+
});
|
|
2042
|
+
|
|
2043
|
+
export function updateRequestToJSON(updateRequest: UpdateRequest): string {
|
|
2044
|
+
return JSON.stringify(UpdateRequest$outboundSchema.parse(updateRequest));
|
|
2045
|
+
}
|
|
2046
|
+
|
|
2047
|
+
/** @internal */
|
|
2048
|
+
export const UpdateContact$inboundSchema: z.ZodMiniType<
|
|
2049
|
+
UpdateContact,
|
|
2050
|
+
unknown
|
|
2051
|
+
> = z.object({
|
|
2052
|
+
id: types.string(),
|
|
2053
|
+
linkedinUrl: types.string(),
|
|
2054
|
+
profileUrn: types.nullable(types.string()),
|
|
2055
|
+
publicIdentifier: types.nullable(types.string()),
|
|
2056
|
+
name: types.string(),
|
|
2057
|
+
lifecycleStage: types.string(),
|
|
2058
|
+
hotScore: types.number(),
|
|
2059
|
+
qualificationNotes: types.nullable(types.string()),
|
|
2060
|
+
notes: types.nullable(types.string()),
|
|
2061
|
+
stageChangedAt: types.nullable(types.string()),
|
|
2062
|
+
profileData: types.nullable(z.any()),
|
|
2063
|
+
profileUpdatedAt: types.nullable(types.string()),
|
|
2064
|
+
conversationData: types.nullable(z.any()),
|
|
2065
|
+
conversationUpdatedAt: types.nullable(types.string()),
|
|
2066
|
+
outreachStatus: types.string(),
|
|
2067
|
+
lastContactedAt: types.nullable(types.string()),
|
|
2068
|
+
lastRepliedAt: types.nullable(types.string()),
|
|
2069
|
+
nextFollowUpAt: types.nullable(types.string()),
|
|
2070
|
+
doNotContact: types.boolean(),
|
|
2071
|
+
tags: z.array(types.string()),
|
|
2072
|
+
createdAt: types.string(),
|
|
2073
|
+
updatedAt: types.string(),
|
|
2074
|
+
});
|
|
2075
|
+
|
|
2076
|
+
export function updateContactFromJSON(
|
|
2077
|
+
jsonString: string,
|
|
2078
|
+
): SafeParseResult<UpdateContact, SDKValidationError> {
|
|
2079
|
+
return safeParse(
|
|
2080
|
+
jsonString,
|
|
2081
|
+
(x) => UpdateContact$inboundSchema.parse(JSON.parse(x)),
|
|
2082
|
+
`Failed to parse 'UpdateContact' from JSON`,
|
|
2083
|
+
);
|
|
2084
|
+
}
|
|
2085
|
+
|
|
2086
|
+
/** @internal */
|
|
2087
|
+
export const UpdateResponse$inboundSchema: z.ZodMiniType<
|
|
2088
|
+
UpdateResponse,
|
|
2089
|
+
unknown
|
|
2090
|
+
> = z.object({
|
|
2091
|
+
success: types.literal(true),
|
|
2092
|
+
contact: z.lazy(() => UpdateContact$inboundSchema),
|
|
2093
|
+
creditsUsed: types.number(),
|
|
2094
|
+
retryAfter: types.number(),
|
|
2095
|
+
});
|
|
2096
|
+
|
|
2097
|
+
export function updateResponseFromJSON(
|
|
2098
|
+
jsonString: string,
|
|
2099
|
+
): SafeParseResult<UpdateResponse, SDKValidationError> {
|
|
2100
|
+
return safeParse(
|
|
2101
|
+
jsonString,
|
|
2102
|
+
(x) => UpdateResponse$inboundSchema.parse(JSON.parse(x)),
|
|
2103
|
+
`Failed to parse 'UpdateResponse' from JSON`,
|
|
2104
|
+
);
|
|
2105
|
+
}
|
|
2106
|
+
|
|
2107
|
+
/** @internal */
|
|
2108
|
+
export type ListActivitiesRequest$Outbound = {
|
|
2109
|
+
type?: string | undefined;
|
|
2110
|
+
limit: number;
|
|
2111
|
+
offset: number;
|
|
2112
|
+
id: string;
|
|
2113
|
+
};
|
|
2114
|
+
|
|
2115
|
+
/** @internal */
|
|
2116
|
+
export const ListActivitiesRequest$outboundSchema: z.ZodMiniType<
|
|
2117
|
+
ListActivitiesRequest$Outbound,
|
|
2118
|
+
ListActivitiesRequest
|
|
2119
|
+
> = z.object({
|
|
2120
|
+
type: z.optional(z.string()),
|
|
2121
|
+
limit: z._default(z.int(), 50),
|
|
2122
|
+
offset: z._default(z.int(), 0),
|
|
2123
|
+
id: z.string(),
|
|
2124
|
+
});
|
|
2125
|
+
|
|
2126
|
+
export function listActivitiesRequestToJSON(
|
|
2127
|
+
listActivitiesRequest: ListActivitiesRequest,
|
|
2128
|
+
): string {
|
|
2129
|
+
return JSON.stringify(
|
|
2130
|
+
ListActivitiesRequest$outboundSchema.parse(listActivitiesRequest),
|
|
2131
|
+
);
|
|
2132
|
+
}
|
|
2133
|
+
|
|
2134
|
+
/** @internal */
|
|
2135
|
+
export const ListActivitiesActivity$inboundSchema: z.ZodMiniType<
|
|
2136
|
+
ListActivitiesActivity,
|
|
2137
|
+
unknown
|
|
2138
|
+
> = z.object({
|
|
2139
|
+
id: types.string(),
|
|
2140
|
+
type: types.string(),
|
|
2141
|
+
content: types.nullable(types.string()),
|
|
2142
|
+
metadata: types.nullable(z.any()),
|
|
2143
|
+
createdAt: types.string(),
|
|
2144
|
+
});
|
|
2145
|
+
|
|
2146
|
+
export function listActivitiesActivityFromJSON(
|
|
2147
|
+
jsonString: string,
|
|
2148
|
+
): SafeParseResult<ListActivitiesActivity, SDKValidationError> {
|
|
2149
|
+
return safeParse(
|
|
2150
|
+
jsonString,
|
|
2151
|
+
(x) => ListActivitiesActivity$inboundSchema.parse(JSON.parse(x)),
|
|
2152
|
+
`Failed to parse 'ListActivitiesActivity' from JSON`,
|
|
2153
|
+
);
|
|
2154
|
+
}
|
|
2155
|
+
|
|
2156
|
+
/** @internal */
|
|
2157
|
+
export const ListActivitiesPagination$inboundSchema: z.ZodMiniType<
|
|
2158
|
+
ListActivitiesPagination,
|
|
2159
|
+
unknown
|
|
2160
|
+
> = z.object({
|
|
2161
|
+
limit: types.number(),
|
|
2162
|
+
offset: types.number(),
|
|
2163
|
+
total: types.number(),
|
|
2164
|
+
});
|
|
2165
|
+
|
|
2166
|
+
export function listActivitiesPaginationFromJSON(
|
|
2167
|
+
jsonString: string,
|
|
2168
|
+
): SafeParseResult<ListActivitiesPagination, SDKValidationError> {
|
|
2169
|
+
return safeParse(
|
|
2170
|
+
jsonString,
|
|
2171
|
+
(x) => ListActivitiesPagination$inboundSchema.parse(JSON.parse(x)),
|
|
2172
|
+
`Failed to parse 'ListActivitiesPagination' from JSON`,
|
|
2173
|
+
);
|
|
2174
|
+
}
|
|
2175
|
+
|
|
2176
|
+
/** @internal */
|
|
2177
|
+
export const ListActivitiesResponse$inboundSchema: z.ZodMiniType<
|
|
2178
|
+
ListActivitiesResponse,
|
|
2179
|
+
unknown
|
|
2180
|
+
> = z.object({
|
|
2181
|
+
success: types.literal(true),
|
|
2182
|
+
activities: z.array(z.lazy(() => ListActivitiesActivity$inboundSchema)),
|
|
2183
|
+
pagination: z.lazy(() => ListActivitiesPagination$inboundSchema),
|
|
2184
|
+
creditsUsed: types.number(),
|
|
2185
|
+
retryAfter: types.number(),
|
|
2186
|
+
});
|
|
2187
|
+
|
|
2188
|
+
export function listActivitiesResponseFromJSON(
|
|
2189
|
+
jsonString: string,
|
|
2190
|
+
): SafeParseResult<ListActivitiesResponse, SDKValidationError> {
|
|
2191
|
+
return safeParse(
|
|
2192
|
+
jsonString,
|
|
2193
|
+
(x) => ListActivitiesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
2194
|
+
`Failed to parse 'ListActivitiesResponse' from JSON`,
|
|
2195
|
+
);
|
|
2196
|
+
}
|
|
2197
|
+
|
|
2198
|
+
/** @internal */
|
|
2199
|
+
export const AddActivitiesType$outboundSchema: z.ZodMiniEnum<
|
|
2200
|
+
typeof AddActivitiesType
|
|
2201
|
+
> = z.enum(AddActivitiesType);
|
|
2202
|
+
|
|
2203
|
+
/** @internal */
|
|
2204
|
+
export type AddActivitiesActivity$Outbound = {
|
|
2205
|
+
type: string;
|
|
2206
|
+
content?: string | undefined;
|
|
2207
|
+
metadata?: any | undefined;
|
|
2208
|
+
};
|
|
2209
|
+
|
|
2210
|
+
/** @internal */
|
|
2211
|
+
export const AddActivitiesActivity$outboundSchema: z.ZodMiniType<
|
|
2212
|
+
AddActivitiesActivity$Outbound,
|
|
2213
|
+
AddActivitiesActivity
|
|
2214
|
+
> = z.object({
|
|
2215
|
+
type: AddActivitiesType$outboundSchema,
|
|
2216
|
+
content: z.optional(z.string()),
|
|
2217
|
+
metadata: z.optional(z.any()),
|
|
2218
|
+
});
|
|
2219
|
+
|
|
2220
|
+
export function addActivitiesActivityToJSON(
|
|
2221
|
+
addActivitiesActivity: AddActivitiesActivity,
|
|
2222
|
+
): string {
|
|
2223
|
+
return JSON.stringify(
|
|
2224
|
+
AddActivitiesActivity$outboundSchema.parse(addActivitiesActivity),
|
|
2225
|
+
);
|
|
2226
|
+
}
|
|
2227
|
+
|
|
2228
|
+
/** @internal */
|
|
2229
|
+
export type AddActivitiesRequestBody$Outbound = {
|
|
2230
|
+
activities: Array<AddActivitiesActivity$Outbound>;
|
|
2231
|
+
};
|
|
2232
|
+
|
|
2233
|
+
/** @internal */
|
|
2234
|
+
export const AddActivitiesRequestBody$outboundSchema: z.ZodMiniType<
|
|
2235
|
+
AddActivitiesRequestBody$Outbound,
|
|
2236
|
+
AddActivitiesRequestBody
|
|
2237
|
+
> = z.object({
|
|
2238
|
+
activities: z.array(z.lazy(() => AddActivitiesActivity$outboundSchema)),
|
|
2239
|
+
});
|
|
2240
|
+
|
|
2241
|
+
export function addActivitiesRequestBodyToJSON(
|
|
2242
|
+
addActivitiesRequestBody: AddActivitiesRequestBody,
|
|
2243
|
+
): string {
|
|
2244
|
+
return JSON.stringify(
|
|
2245
|
+
AddActivitiesRequestBody$outboundSchema.parse(addActivitiesRequestBody),
|
|
2246
|
+
);
|
|
2247
|
+
}
|
|
2248
|
+
|
|
2249
|
+
/** @internal */
|
|
2250
|
+
export type AddActivitiesRequest$Outbound = {
|
|
2251
|
+
id: string;
|
|
2252
|
+
body: AddActivitiesRequestBody$Outbound;
|
|
2253
|
+
};
|
|
2254
|
+
|
|
2255
|
+
/** @internal */
|
|
2256
|
+
export const AddActivitiesRequest$outboundSchema: z.ZodMiniType<
|
|
2257
|
+
AddActivitiesRequest$Outbound,
|
|
2258
|
+
AddActivitiesRequest
|
|
2259
|
+
> = z.object({
|
|
2260
|
+
id: z.string(),
|
|
2261
|
+
body: z.lazy(() => AddActivitiesRequestBody$outboundSchema),
|
|
2262
|
+
});
|
|
2263
|
+
|
|
2264
|
+
export function addActivitiesRequestToJSON(
|
|
2265
|
+
addActivitiesRequest: AddActivitiesRequest,
|
|
2266
|
+
): string {
|
|
2267
|
+
return JSON.stringify(
|
|
2268
|
+
AddActivitiesRequest$outboundSchema.parse(addActivitiesRequest),
|
|
2269
|
+
);
|
|
2270
|
+
}
|
|
2271
|
+
|
|
2272
|
+
/** @internal */
|
|
2273
|
+
export const AddActivitiesResponse$inboundSchema: z.ZodMiniType<
|
|
2274
|
+
AddActivitiesResponse,
|
|
2275
|
+
unknown
|
|
2276
|
+
> = z.object({
|
|
2277
|
+
success: types.literal(true),
|
|
2278
|
+
created: types.number(),
|
|
2279
|
+
creditsUsed: types.number(),
|
|
2280
|
+
retryAfter: types.number(),
|
|
2281
|
+
});
|
|
2282
|
+
|
|
2283
|
+
export function addActivitiesResponseFromJSON(
|
|
2284
|
+
jsonString: string,
|
|
2285
|
+
): SafeParseResult<AddActivitiesResponse, SDKValidationError> {
|
|
2286
|
+
return safeParse(
|
|
2287
|
+
jsonString,
|
|
2288
|
+
(x) => AddActivitiesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
2289
|
+
`Failed to parse 'AddActivitiesResponse' from JSON`,
|
|
2290
|
+
);
|
|
2291
|
+
}
|
|
2292
|
+
|
|
2293
|
+
/** @internal */
|
|
2294
|
+
export const BulkUpdateLifecycleStage$outboundSchema: z.ZodMiniEnum<
|
|
2295
|
+
typeof BulkUpdateLifecycleStage
|
|
2296
|
+
> = z.enum(BulkUpdateLifecycleStage);
|
|
2297
|
+
|
|
2298
|
+
/** @internal */
|
|
2299
|
+
export const BulkUpdateOutreachStatus$outboundSchema: z.ZodMiniEnum<
|
|
2300
|
+
typeof BulkUpdateOutreachStatus
|
|
2301
|
+
> = z.enum(BulkUpdateOutreachStatus);
|
|
2302
|
+
|
|
2303
|
+
/** @internal */
|
|
2304
|
+
export type BulkUpdateTags3$Outbound = {
|
|
2305
|
+
set: Array<string>;
|
|
2306
|
+
};
|
|
2307
|
+
|
|
2308
|
+
/** @internal */
|
|
2309
|
+
export const BulkUpdateTags3$outboundSchema: z.ZodMiniType<
|
|
2310
|
+
BulkUpdateTags3$Outbound,
|
|
2311
|
+
BulkUpdateTags3
|
|
2312
|
+
> = z.object({
|
|
2313
|
+
set: z.array(z.string()),
|
|
2314
|
+
});
|
|
2315
|
+
|
|
2316
|
+
export function bulkUpdateTags3ToJSON(
|
|
2317
|
+
bulkUpdateTags3: BulkUpdateTags3,
|
|
2318
|
+
): string {
|
|
2319
|
+
return JSON.stringify(BulkUpdateTags3$outboundSchema.parse(bulkUpdateTags3));
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2322
|
+
/** @internal */
|
|
2323
|
+
export type BulkUpdateTags2$Outbound = {
|
|
2324
|
+
add?: Array<string> | undefined;
|
|
2325
|
+
remove: Array<string>;
|
|
2326
|
+
};
|
|
2327
|
+
|
|
2328
|
+
/** @internal */
|
|
2329
|
+
export const BulkUpdateTags2$outboundSchema: z.ZodMiniType<
|
|
2330
|
+
BulkUpdateTags2$Outbound,
|
|
2331
|
+
BulkUpdateTags2
|
|
2332
|
+
> = z.object({
|
|
2333
|
+
add: z.optional(z.array(z.string())),
|
|
2334
|
+
remove: z.array(z.string()),
|
|
2335
|
+
});
|
|
2336
|
+
|
|
2337
|
+
export function bulkUpdateTags2ToJSON(
|
|
2338
|
+
bulkUpdateTags2: BulkUpdateTags2,
|
|
2339
|
+
): string {
|
|
2340
|
+
return JSON.stringify(BulkUpdateTags2$outboundSchema.parse(bulkUpdateTags2));
|
|
2341
|
+
}
|
|
2342
|
+
|
|
2343
|
+
/** @internal */
|
|
2344
|
+
export type BulkUpdateTags1$Outbound = {
|
|
2345
|
+
add: Array<string>;
|
|
2346
|
+
remove?: Array<string> | undefined;
|
|
2347
|
+
};
|
|
2348
|
+
|
|
2349
|
+
/** @internal */
|
|
2350
|
+
export const BulkUpdateTags1$outboundSchema: z.ZodMiniType<
|
|
2351
|
+
BulkUpdateTags1$Outbound,
|
|
2352
|
+
BulkUpdateTags1
|
|
2353
|
+
> = z.object({
|
|
2354
|
+
add: z.array(z.string()),
|
|
2355
|
+
remove: z.optional(z.array(z.string())),
|
|
2356
|
+
});
|
|
2357
|
+
|
|
2358
|
+
export function bulkUpdateTags1ToJSON(
|
|
2359
|
+
bulkUpdateTags1: BulkUpdateTags1,
|
|
2360
|
+
): string {
|
|
2361
|
+
return JSON.stringify(BulkUpdateTags1$outboundSchema.parse(bulkUpdateTags1));
|
|
2362
|
+
}
|
|
2363
|
+
|
|
2364
|
+
/** @internal */
|
|
2365
|
+
export type BulkUpdateTagsUnion$Outbound =
|
|
2366
|
+
| BulkUpdateTags1$Outbound
|
|
2367
|
+
| BulkUpdateTags2$Outbound
|
|
2368
|
+
| BulkUpdateTags3$Outbound;
|
|
2369
|
+
|
|
2370
|
+
/** @internal */
|
|
2371
|
+
export const BulkUpdateTagsUnion$outboundSchema: z.ZodMiniType<
|
|
2372
|
+
BulkUpdateTagsUnion$Outbound,
|
|
2373
|
+
BulkUpdateTagsUnion
|
|
2374
|
+
> = smartUnion([
|
|
2375
|
+
z.lazy(() => BulkUpdateTags1$outboundSchema),
|
|
2376
|
+
z.lazy(() => BulkUpdateTags2$outboundSchema),
|
|
2377
|
+
z.lazy(() => BulkUpdateTags3$outboundSchema),
|
|
2378
|
+
]);
|
|
2379
|
+
|
|
2380
|
+
export function bulkUpdateTagsUnionToJSON(
|
|
2381
|
+
bulkUpdateTagsUnion: BulkUpdateTagsUnion,
|
|
2382
|
+
): string {
|
|
2383
|
+
return JSON.stringify(
|
|
2384
|
+
BulkUpdateTagsUnion$outboundSchema.parse(bulkUpdateTagsUnion),
|
|
2385
|
+
);
|
|
2386
|
+
}
|
|
2387
|
+
|
|
2388
|
+
/** @internal */
|
|
2389
|
+
export type Update$Outbound = {
|
|
2390
|
+
lifecycleStage?: string | undefined;
|
|
2391
|
+
hotScore?: number | undefined;
|
|
2392
|
+
qualificationNotes?: string | undefined;
|
|
2393
|
+
notes?: string | undefined;
|
|
2394
|
+
outreachStatus?: string | undefined;
|
|
2395
|
+
nextFollowUpAt?: string | null | undefined;
|
|
2396
|
+
doNotContact?: boolean | undefined;
|
|
2397
|
+
tags?:
|
|
2398
|
+
| BulkUpdateTags1$Outbound
|
|
2399
|
+
| BulkUpdateTags2$Outbound
|
|
2400
|
+
| BulkUpdateTags3$Outbound
|
|
2401
|
+
| undefined;
|
|
2402
|
+
};
|
|
2403
|
+
|
|
2404
|
+
/** @internal */
|
|
2405
|
+
export const Update$outboundSchema: z.ZodMiniType<Update$Outbound, Update> = z
|
|
2406
|
+
.object({
|
|
2407
|
+
lifecycleStage: z.optional(BulkUpdateLifecycleStage$outboundSchema),
|
|
2408
|
+
hotScore: z.optional(z.int()),
|
|
2409
|
+
qualificationNotes: z.optional(z.string()),
|
|
2410
|
+
notes: z.optional(z.string()),
|
|
2411
|
+
outreachStatus: z.optional(BulkUpdateOutreachStatus$outboundSchema),
|
|
2412
|
+
nextFollowUpAt: z.optional(
|
|
2413
|
+
z.nullable(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
2414
|
+
),
|
|
2415
|
+
doNotContact: z.optional(z.boolean()),
|
|
2416
|
+
tags: z.optional(
|
|
2417
|
+
smartUnion([
|
|
2418
|
+
z.lazy(() => BulkUpdateTags1$outboundSchema),
|
|
2419
|
+
z.lazy(() => BulkUpdateTags2$outboundSchema),
|
|
2420
|
+
z.lazy(() => BulkUpdateTags3$outboundSchema),
|
|
2421
|
+
]),
|
|
2422
|
+
),
|
|
2423
|
+
});
|
|
2424
|
+
|
|
2425
|
+
export function updateToJSON(update: Update): string {
|
|
2426
|
+
return JSON.stringify(Update$outboundSchema.parse(update));
|
|
2427
|
+
}
|
|
2428
|
+
|
|
2429
|
+
/** @internal */
|
|
2430
|
+
export type BulkUpdateRequest$Outbound = {
|
|
2431
|
+
contactIds: Array<string>;
|
|
2432
|
+
update: Update$Outbound;
|
|
2433
|
+
};
|
|
2434
|
+
|
|
2435
|
+
/** @internal */
|
|
2436
|
+
export const BulkUpdateRequest$outboundSchema: z.ZodMiniType<
|
|
2437
|
+
BulkUpdateRequest$Outbound,
|
|
2438
|
+
BulkUpdateRequest
|
|
2439
|
+
> = z.object({
|
|
2440
|
+
contactIds: z.array(z.string()),
|
|
2441
|
+
update: z.lazy(() => Update$outboundSchema),
|
|
2442
|
+
});
|
|
2443
|
+
|
|
2444
|
+
export function bulkUpdateRequestToJSON(
|
|
2445
|
+
bulkUpdateRequest: BulkUpdateRequest,
|
|
2446
|
+
): string {
|
|
2447
|
+
return JSON.stringify(
|
|
2448
|
+
BulkUpdateRequest$outboundSchema.parse(bulkUpdateRequest),
|
|
2449
|
+
);
|
|
2450
|
+
}
|
|
2451
|
+
|
|
2452
|
+
/** @internal */
|
|
2453
|
+
export const BulkUpdateResponse$inboundSchema: z.ZodMiniType<
|
|
2454
|
+
BulkUpdateResponse,
|
|
2455
|
+
unknown
|
|
2456
|
+
> = z.object({
|
|
2457
|
+
success: types.literal(true),
|
|
2458
|
+
updated: types.number(),
|
|
2459
|
+
skipped: types.number(),
|
|
2460
|
+
errors: z.array(types.string()),
|
|
2461
|
+
creditsUsed: types.number(),
|
|
2462
|
+
retryAfter: types.number(),
|
|
2463
|
+
});
|
|
2464
|
+
|
|
2465
|
+
export function bulkUpdateResponseFromJSON(
|
|
2466
|
+
jsonString: string,
|
|
2467
|
+
): SafeParseResult<BulkUpdateResponse, SDKValidationError> {
|
|
2468
|
+
return safeParse(
|
|
2469
|
+
jsonString,
|
|
2470
|
+
(x) => BulkUpdateResponse$inboundSchema.parse(JSON.parse(x)),
|
|
2471
|
+
`Failed to parse 'BulkUpdateResponse' from JSON`,
|
|
2472
|
+
);
|
|
2473
|
+
}
|
|
2474
|
+
|
|
2475
|
+
/** @internal */
|
|
2476
|
+
export type GetContactStatsRequest$Outbound = {
|
|
2477
|
+
campaignId?: string | undefined;
|
|
2478
|
+
};
|
|
2479
|
+
|
|
2480
|
+
/** @internal */
|
|
2481
|
+
export const GetContactStatsRequest$outboundSchema: z.ZodMiniType<
|
|
2482
|
+
GetContactStatsRequest$Outbound,
|
|
2483
|
+
GetContactStatsRequest
|
|
2484
|
+
> = z.object({
|
|
2485
|
+
campaignId: z.optional(z.string()),
|
|
2486
|
+
});
|
|
2487
|
+
|
|
2488
|
+
export function getContactStatsRequestToJSON(
|
|
2489
|
+
getContactStatsRequest: GetContactStatsRequest,
|
|
2490
|
+
): string {
|
|
2491
|
+
return JSON.stringify(
|
|
2492
|
+
GetContactStatsRequest$outboundSchema.parse(getContactStatsRequest),
|
|
2493
|
+
);
|
|
2494
|
+
}
|
|
2495
|
+
|
|
2496
|
+
/** @internal */
|
|
2497
|
+
export const Funnel$inboundSchema: z.ZodMiniType<Funnel, unknown> = z.object({
|
|
2498
|
+
contact: types.number(),
|
|
2499
|
+
lead: types.number(),
|
|
2500
|
+
qualified: types.number(),
|
|
2501
|
+
approved: types.number(),
|
|
2502
|
+
rejected: types.number(),
|
|
2503
|
+
});
|
|
2504
|
+
|
|
2505
|
+
export function funnelFromJSON(
|
|
2506
|
+
jsonString: string,
|
|
2507
|
+
): SafeParseResult<Funnel, SDKValidationError> {
|
|
2508
|
+
return safeParse(
|
|
2509
|
+
jsonString,
|
|
2510
|
+
(x) => Funnel$inboundSchema.parse(JSON.parse(x)),
|
|
2511
|
+
`Failed to parse 'Funnel' from JSON`,
|
|
2512
|
+
);
|
|
2513
|
+
}
|
|
2514
|
+
|
|
2515
|
+
/** @internal */
|
|
2516
|
+
export const BySourceAngle$inboundSchema: z.ZodMiniType<
|
|
2517
|
+
BySourceAngle,
|
|
2518
|
+
unknown
|
|
2519
|
+
> = z.object({
|
|
2520
|
+
total: types.number(),
|
|
2521
|
+
contact: types.number(),
|
|
2522
|
+
lead: types.number(),
|
|
2523
|
+
qualified: types.number(),
|
|
2524
|
+
approved: types.number(),
|
|
2525
|
+
rejected: types.number(),
|
|
2526
|
+
});
|
|
2527
|
+
|
|
2528
|
+
export function bySourceAngleFromJSON(
|
|
2529
|
+
jsonString: string,
|
|
2530
|
+
): SafeParseResult<BySourceAngle, SDKValidationError> {
|
|
2531
|
+
return safeParse(
|
|
2532
|
+
jsonString,
|
|
2533
|
+
(x) => BySourceAngle$inboundSchema.parse(JSON.parse(x)),
|
|
2534
|
+
`Failed to parse 'BySourceAngle' from JSON`,
|
|
2535
|
+
);
|
|
2536
|
+
}
|
|
2537
|
+
|
|
2538
|
+
/** @internal */
|
|
2539
|
+
export const ByCampaign$inboundSchema: z.ZodMiniType<ByCampaign, unknown> = z
|
|
2540
|
+
.object({
|
|
2541
|
+
name: types.string(),
|
|
2542
|
+
total: types.number(),
|
|
2543
|
+
contact: types.number(),
|
|
2544
|
+
lead: types.number(),
|
|
2545
|
+
qualified: types.number(),
|
|
2546
|
+
approved: types.number(),
|
|
2547
|
+
rejected: types.number(),
|
|
2548
|
+
});
|
|
2549
|
+
|
|
2550
|
+
export function byCampaignFromJSON(
|
|
2551
|
+
jsonString: string,
|
|
2552
|
+
): SafeParseResult<ByCampaign, SDKValidationError> {
|
|
2553
|
+
return safeParse(
|
|
2554
|
+
jsonString,
|
|
2555
|
+
(x) => ByCampaign$inboundSchema.parse(JSON.parse(x)),
|
|
2556
|
+
`Failed to parse 'ByCampaign' from JSON`,
|
|
2557
|
+
);
|
|
2558
|
+
}
|
|
2559
|
+
|
|
2560
|
+
/** @internal */
|
|
2561
|
+
export const GetContactStatsDaily$inboundSchema: z.ZodMiniType<
|
|
2562
|
+
GetContactStatsDaily,
|
|
2563
|
+
unknown
|
|
2564
|
+
> = z.object({
|
|
2565
|
+
date: types.string(),
|
|
2566
|
+
created: types.number(),
|
|
2567
|
+
});
|
|
2568
|
+
|
|
2569
|
+
export function getContactStatsDailyFromJSON(
|
|
2570
|
+
jsonString: string,
|
|
2571
|
+
): SafeParseResult<GetContactStatsDaily, SDKValidationError> {
|
|
2572
|
+
return safeParse(
|
|
2573
|
+
jsonString,
|
|
2574
|
+
(x) => GetContactStatsDaily$inboundSchema.parse(JSON.parse(x)),
|
|
2575
|
+
`Failed to parse 'GetContactStatsDaily' from JSON`,
|
|
2576
|
+
);
|
|
2577
|
+
}
|
|
2578
|
+
|
|
2579
|
+
/** @internal */
|
|
2580
|
+
export const GetContactStatsResponse$inboundSchema: z.ZodMiniType<
|
|
2581
|
+
GetContactStatsResponse,
|
|
2582
|
+
unknown
|
|
2583
|
+
> = z.object({
|
|
2584
|
+
success: types.literal(true),
|
|
2585
|
+
funnel: z.lazy(() => Funnel$inboundSchema),
|
|
2586
|
+
bySource: z.record(z.string(), types.number()),
|
|
2587
|
+
bySourceAngle: z.record(
|
|
2588
|
+
z.string(),
|
|
2589
|
+
z.lazy(() => BySourceAngle$inboundSchema),
|
|
2590
|
+
),
|
|
2591
|
+
byCampaign: z.record(z.string(), z.lazy(() => ByCampaign$inboundSchema)),
|
|
2592
|
+
daily: z.array(z.lazy(() => GetContactStatsDaily$inboundSchema)),
|
|
2593
|
+
creditsUsed: types.number(),
|
|
2594
|
+
retryAfter: types.number(),
|
|
2595
|
+
});
|
|
2596
|
+
|
|
2597
|
+
export function getContactStatsResponseFromJSON(
|
|
2598
|
+
jsonString: string,
|
|
2599
|
+
): SafeParseResult<GetContactStatsResponse, SDKValidationError> {
|
|
2600
|
+
return safeParse(
|
|
2601
|
+
jsonString,
|
|
2602
|
+
(x) => GetContactStatsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
2603
|
+
`Failed to parse 'GetContactStatsResponse' from JSON`,
|
|
2604
|
+
);
|
|
2605
|
+
}
|
|
2606
|
+
|
|
2607
|
+
/** @internal */
|
|
2608
|
+
export const KeysOnly$outboundSchema: z.ZodMiniEnum<typeof KeysOnly> = z.enum(
|
|
2609
|
+
KeysOnly,
|
|
2610
|
+
);
|
|
2611
|
+
|
|
2612
|
+
/** @internal */
|
|
2613
|
+
export type ListAgentStatesRequest$Outbound = {
|
|
2614
|
+
keysOnly?: string | undefined;
|
|
2615
|
+
};
|
|
2616
|
+
|
|
2617
|
+
/** @internal */
|
|
2618
|
+
export const ListAgentStatesRequest$outboundSchema: z.ZodMiniType<
|
|
2619
|
+
ListAgentStatesRequest$Outbound,
|
|
2620
|
+
ListAgentStatesRequest
|
|
2621
|
+
> = z.object({
|
|
2622
|
+
keysOnly: z.optional(KeysOnly$outboundSchema),
|
|
2623
|
+
});
|
|
2624
|
+
|
|
2625
|
+
export function listAgentStatesRequestToJSON(
|
|
2626
|
+
listAgentStatesRequest: ListAgentStatesRequest,
|
|
2627
|
+
): string {
|
|
2628
|
+
return JSON.stringify(
|
|
2629
|
+
ListAgentStatesRequest$outboundSchema.parse(listAgentStatesRequest),
|
|
2630
|
+
);
|
|
2631
|
+
}
|
|
2632
|
+
|
|
2633
|
+
/** @internal */
|
|
2634
|
+
export const State$inboundSchema: z.ZodMiniType<State, unknown> = z.object({
|
|
2635
|
+
key: types.string(),
|
|
2636
|
+
data: z.any(),
|
|
2637
|
+
updatedAt: types.nullable(types.string()),
|
|
2638
|
+
});
|
|
2639
|
+
|
|
2640
|
+
export function stateFromJSON(
|
|
2641
|
+
jsonString: string,
|
|
2642
|
+
): SafeParseResult<State, SDKValidationError> {
|
|
2643
|
+
return safeParse(
|
|
2644
|
+
jsonString,
|
|
2645
|
+
(x) => State$inboundSchema.parse(JSON.parse(x)),
|
|
2646
|
+
`Failed to parse 'State' from JSON`,
|
|
2647
|
+
);
|
|
2648
|
+
}
|
|
2649
|
+
|
|
2650
|
+
/** @internal */
|
|
2651
|
+
export const ListAgentStatesResponse$inboundSchema: z.ZodMiniType<
|
|
2652
|
+
ListAgentStatesResponse,
|
|
2653
|
+
unknown
|
|
2654
|
+
> = z.object({
|
|
2655
|
+
success: types.literal(true),
|
|
2656
|
+
states: z.array(z.lazy(() => State$inboundSchema)),
|
|
2657
|
+
creditsUsed: types.number(),
|
|
2658
|
+
retryAfter: types.number(),
|
|
2659
|
+
});
|
|
2660
|
+
|
|
2661
|
+
export function listAgentStatesResponseFromJSON(
|
|
2662
|
+
jsonString: string,
|
|
2663
|
+
): SafeParseResult<ListAgentStatesResponse, SDKValidationError> {
|
|
2664
|
+
return safeParse(
|
|
2665
|
+
jsonString,
|
|
2666
|
+
(x) => ListAgentStatesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
2667
|
+
`Failed to parse 'ListAgentStatesResponse' from JSON`,
|
|
2668
|
+
);
|
|
2669
|
+
}
|
|
2670
|
+
|
|
2671
|
+
/** @internal */
|
|
2672
|
+
export type GetAgentStateRequest$Outbound = {
|
|
2673
|
+
key: string;
|
|
2674
|
+
};
|
|
2675
|
+
|
|
2676
|
+
/** @internal */
|
|
2677
|
+
export const GetAgentStateRequest$outboundSchema: z.ZodMiniType<
|
|
2678
|
+
GetAgentStateRequest$Outbound,
|
|
2679
|
+
GetAgentStateRequest
|
|
2680
|
+
> = z.object({
|
|
2681
|
+
key: z.string(),
|
|
2682
|
+
});
|
|
2683
|
+
|
|
2684
|
+
export function getAgentStateRequestToJSON(
|
|
2685
|
+
getAgentStateRequest: GetAgentStateRequest,
|
|
2686
|
+
): string {
|
|
2687
|
+
return JSON.stringify(
|
|
2688
|
+
GetAgentStateRequest$outboundSchema.parse(getAgentStateRequest),
|
|
2689
|
+
);
|
|
2690
|
+
}
|
|
2691
|
+
|
|
2692
|
+
/** @internal */
|
|
2693
|
+
export const GetAgentStateResponse$inboundSchema: z.ZodMiniType<
|
|
2694
|
+
GetAgentStateResponse,
|
|
2695
|
+
unknown
|
|
2696
|
+
> = z.object({
|
|
2697
|
+
success: types.literal(true),
|
|
2698
|
+
key: types.string(),
|
|
2699
|
+
data: z.any(),
|
|
2700
|
+
updatedAt: types.nullable(types.string()),
|
|
2701
|
+
creditsUsed: types.number(),
|
|
2702
|
+
retryAfter: types.number(),
|
|
2703
|
+
});
|
|
2704
|
+
|
|
2705
|
+
export function getAgentStateResponseFromJSON(
|
|
2706
|
+
jsonString: string,
|
|
2707
|
+
): SafeParseResult<GetAgentStateResponse, SDKValidationError> {
|
|
2708
|
+
return safeParse(
|
|
2709
|
+
jsonString,
|
|
2710
|
+
(x) => GetAgentStateResponse$inboundSchema.parse(JSON.parse(x)),
|
|
2711
|
+
`Failed to parse 'GetAgentStateResponse' from JSON`,
|
|
2712
|
+
);
|
|
2713
|
+
}
|
|
2714
|
+
|
|
2715
|
+
/** @internal */
|
|
2716
|
+
export type SetAgentStateRequestBody$Outbound = {
|
|
2717
|
+
data: any;
|
|
2718
|
+
};
|
|
2719
|
+
|
|
2720
|
+
/** @internal */
|
|
2721
|
+
export const SetAgentStateRequestBody$outboundSchema: z.ZodMiniType<
|
|
2722
|
+
SetAgentStateRequestBody$Outbound,
|
|
2723
|
+
SetAgentStateRequestBody
|
|
2724
|
+
> = z.object({
|
|
2725
|
+
data: z.any(),
|
|
2726
|
+
});
|
|
2727
|
+
|
|
2728
|
+
export function setAgentStateRequestBodyToJSON(
|
|
2729
|
+
setAgentStateRequestBody: SetAgentStateRequestBody,
|
|
2730
|
+
): string {
|
|
2731
|
+
return JSON.stringify(
|
|
2732
|
+
SetAgentStateRequestBody$outboundSchema.parse(setAgentStateRequestBody),
|
|
2733
|
+
);
|
|
2734
|
+
}
|
|
2735
|
+
|
|
2736
|
+
/** @internal */
|
|
2737
|
+
export type SetAgentStateRequest$Outbound = {
|
|
2738
|
+
key: string;
|
|
2739
|
+
body: SetAgentStateRequestBody$Outbound;
|
|
2740
|
+
};
|
|
2741
|
+
|
|
2742
|
+
/** @internal */
|
|
2743
|
+
export const SetAgentStateRequest$outboundSchema: z.ZodMiniType<
|
|
2744
|
+
SetAgentStateRequest$Outbound,
|
|
2745
|
+
SetAgentStateRequest
|
|
2746
|
+
> = z.object({
|
|
2747
|
+
key: z.string(),
|
|
2748
|
+
body: z.lazy(() => SetAgentStateRequestBody$outboundSchema),
|
|
2749
|
+
});
|
|
2750
|
+
|
|
2751
|
+
export function setAgentStateRequestToJSON(
|
|
2752
|
+
setAgentStateRequest: SetAgentStateRequest,
|
|
2753
|
+
): string {
|
|
2754
|
+
return JSON.stringify(
|
|
2755
|
+
SetAgentStateRequest$outboundSchema.parse(setAgentStateRequest),
|
|
2756
|
+
);
|
|
2757
|
+
}
|
|
2758
|
+
|
|
2759
|
+
/** @internal */
|
|
2760
|
+
export const SetAgentStateResponse$inboundSchema: z.ZodMiniType<
|
|
2761
|
+
SetAgentStateResponse,
|
|
2762
|
+
unknown
|
|
2763
|
+
> = z.object({
|
|
2764
|
+
success: types.literal(true),
|
|
2765
|
+
key: types.string(),
|
|
2766
|
+
data: z.any(),
|
|
2767
|
+
updatedAt: types.nullable(types.string()),
|
|
2768
|
+
creditsUsed: types.number(),
|
|
2769
|
+
retryAfter: types.number(),
|
|
2770
|
+
});
|
|
2771
|
+
|
|
2772
|
+
export function setAgentStateResponseFromJSON(
|
|
2773
|
+
jsonString: string,
|
|
2774
|
+
): SafeParseResult<SetAgentStateResponse, SDKValidationError> {
|
|
2775
|
+
return safeParse(
|
|
2776
|
+
jsonString,
|
|
2777
|
+
(x) => SetAgentStateResponse$inboundSchema.parse(JSON.parse(x)),
|
|
2778
|
+
`Failed to parse 'SetAgentStateResponse' from JSON`,
|
|
2779
|
+
);
|
|
2780
|
+
}
|
|
2781
|
+
|
|
2782
|
+
/** @internal */
|
|
2783
|
+
export type DeleteAgentStateRequest$Outbound = {
|
|
2784
|
+
key: string;
|
|
2785
|
+
};
|
|
2786
|
+
|
|
2787
|
+
/** @internal */
|
|
2788
|
+
export const DeleteAgentStateRequest$outboundSchema: z.ZodMiniType<
|
|
2789
|
+
DeleteAgentStateRequest$Outbound,
|
|
2790
|
+
DeleteAgentStateRequest
|
|
2791
|
+
> = z.object({
|
|
2792
|
+
key: z.string(),
|
|
2793
|
+
});
|
|
2794
|
+
|
|
2795
|
+
export function deleteAgentStateRequestToJSON(
|
|
2796
|
+
deleteAgentStateRequest: DeleteAgentStateRequest,
|
|
2797
|
+
): string {
|
|
2798
|
+
return JSON.stringify(
|
|
2799
|
+
DeleteAgentStateRequest$outboundSchema.parse(deleteAgentStateRequest),
|
|
2800
|
+
);
|
|
2801
|
+
}
|
|
2802
|
+
|
|
2803
|
+
/** @internal */
|
|
2804
|
+
export const DeleteAgentStateResponse$inboundSchema: z.ZodMiniType<
|
|
2805
|
+
DeleteAgentStateResponse,
|
|
2806
|
+
unknown
|
|
2807
|
+
> = z.object({
|
|
2808
|
+
success: types.literal(true),
|
|
2809
|
+
creditsUsed: types.number(),
|
|
2810
|
+
retryAfter: types.number(),
|
|
2811
|
+
});
|
|
2812
|
+
|
|
2813
|
+
export function deleteAgentStateResponseFromJSON(
|
|
2814
|
+
jsonString: string,
|
|
2815
|
+
): SafeParseResult<DeleteAgentStateResponse, SDKValidationError> {
|
|
2816
|
+
return safeParse(
|
|
2817
|
+
jsonString,
|
|
2818
|
+
(x) => DeleteAgentStateResponse$inboundSchema.parse(JSON.parse(x)),
|
|
2819
|
+
`Failed to parse 'DeleteAgentStateResponse' from JSON`,
|
|
2820
|
+
);
|
|
2821
|
+
}
|
|
2822
|
+
|
|
2823
|
+
/** @internal */
|
|
2824
|
+
export type PatchAgentStateRequestBody$Outbound = {
|
|
2825
|
+
data: { [k: string]: any };
|
|
2826
|
+
};
|
|
2827
|
+
|
|
2828
|
+
/** @internal */
|
|
2829
|
+
export const PatchAgentStateRequestBody$outboundSchema: z.ZodMiniType<
|
|
2830
|
+
PatchAgentStateRequestBody$Outbound,
|
|
2831
|
+
PatchAgentStateRequestBody
|
|
2832
|
+
> = z.object({
|
|
2833
|
+
data: z.record(z.string(), z.any()),
|
|
2834
|
+
});
|
|
2835
|
+
|
|
2836
|
+
export function patchAgentStateRequestBodyToJSON(
|
|
2837
|
+
patchAgentStateRequestBody: PatchAgentStateRequestBody,
|
|
2838
|
+
): string {
|
|
2839
|
+
return JSON.stringify(
|
|
2840
|
+
PatchAgentStateRequestBody$outboundSchema.parse(patchAgentStateRequestBody),
|
|
2841
|
+
);
|
|
2842
|
+
}
|
|
2843
|
+
|
|
2844
|
+
/** @internal */
|
|
2845
|
+
export type PatchAgentStateRequest$Outbound = {
|
|
2846
|
+
key: string;
|
|
2847
|
+
body: PatchAgentStateRequestBody$Outbound;
|
|
2848
|
+
};
|
|
2849
|
+
|
|
2850
|
+
/** @internal */
|
|
2851
|
+
export const PatchAgentStateRequest$outboundSchema: z.ZodMiniType<
|
|
2852
|
+
PatchAgentStateRequest$Outbound,
|
|
2853
|
+
PatchAgentStateRequest
|
|
2854
|
+
> = z.object({
|
|
2855
|
+
key: z.string(),
|
|
2856
|
+
body: z.lazy(() => PatchAgentStateRequestBody$outboundSchema),
|
|
2857
|
+
});
|
|
2858
|
+
|
|
2859
|
+
export function patchAgentStateRequestToJSON(
|
|
2860
|
+
patchAgentStateRequest: PatchAgentStateRequest,
|
|
2861
|
+
): string {
|
|
2862
|
+
return JSON.stringify(
|
|
2863
|
+
PatchAgentStateRequest$outboundSchema.parse(patchAgentStateRequest),
|
|
2864
|
+
);
|
|
2865
|
+
}
|
|
2866
|
+
|
|
2867
|
+
/** @internal */
|
|
2868
|
+
export const PatchAgentStateResponse$inboundSchema: z.ZodMiniType<
|
|
2869
|
+
PatchAgentStateResponse,
|
|
2870
|
+
unknown
|
|
2871
|
+
> = z.object({
|
|
2872
|
+
success: types.literal(true),
|
|
2873
|
+
key: types.string(),
|
|
2874
|
+
data: z.any(),
|
|
2875
|
+
updatedAt: types.nullable(types.string()),
|
|
2876
|
+
creditsUsed: types.number(),
|
|
2877
|
+
retryAfter: types.number(),
|
|
2878
|
+
});
|
|
2879
|
+
|
|
2880
|
+
export function patchAgentStateResponseFromJSON(
|
|
2881
|
+
jsonString: string,
|
|
2882
|
+
): SafeParseResult<PatchAgentStateResponse, SDKValidationError> {
|
|
2883
|
+
return safeParse(
|
|
2884
|
+
jsonString,
|
|
2885
|
+
(x) => PatchAgentStateResponse$inboundSchema.parse(JSON.parse(x)),
|
|
2886
|
+
`Failed to parse 'PatchAgentStateResponse' from JSON`,
|
|
2887
|
+
);
|
|
2888
|
+
}
|
|
2889
|
+
|
|
2890
|
+
/** @internal */
|
|
2891
|
+
export const ListCampaignsType$outboundSchema: z.ZodMiniEnum<
|
|
2892
|
+
typeof ListCampaignsType
|
|
2893
|
+
> = z.enum(ListCampaignsType);
|
|
2894
|
+
|
|
2895
|
+
/** @internal */
|
|
2896
|
+
export type ListCampaignsRequest$Outbound = {
|
|
2897
|
+
type?: string | undefined;
|
|
2898
|
+
status?: string | undefined;
|
|
2899
|
+
limit: number;
|
|
2900
|
+
offset: number;
|
|
2901
|
+
};
|
|
2902
|
+
|
|
2903
|
+
/** @internal */
|
|
2904
|
+
export const ListCampaignsRequest$outboundSchema: z.ZodMiniType<
|
|
2905
|
+
ListCampaignsRequest$Outbound,
|
|
2906
|
+
ListCampaignsRequest
|
|
2907
|
+
> = z.object({
|
|
2908
|
+
type: z.optional(ListCampaignsType$outboundSchema),
|
|
2909
|
+
status: z.optional(z.string()),
|
|
2910
|
+
limit: z._default(z.int(), 50),
|
|
2911
|
+
offset: z._default(z.int(), 0),
|
|
2912
|
+
});
|
|
2913
|
+
|
|
2914
|
+
export function listCampaignsRequestToJSON(
|
|
2915
|
+
listCampaignsRequest: ListCampaignsRequest,
|
|
2916
|
+
): string {
|
|
2917
|
+
return JSON.stringify(
|
|
2918
|
+
ListCampaignsRequest$outboundSchema.parse(listCampaignsRequest),
|
|
2919
|
+
);
|
|
2920
|
+
}
|
|
2921
|
+
|
|
2922
|
+
/** @internal */
|
|
2923
|
+
export const ListCampaignsStageCounts$inboundSchema: z.ZodMiniType<
|
|
2924
|
+
ListCampaignsStageCounts,
|
|
2925
|
+
unknown
|
|
2926
|
+
> = z.object({
|
|
2927
|
+
contact: types.number(),
|
|
2928
|
+
lead: types.number(),
|
|
2929
|
+
qualified: types.number(),
|
|
2930
|
+
approved: types.number(),
|
|
2931
|
+
rejected: types.number(),
|
|
2932
|
+
});
|
|
2933
|
+
|
|
2934
|
+
export function listCampaignsStageCountsFromJSON(
|
|
2935
|
+
jsonString: string,
|
|
2936
|
+
): SafeParseResult<ListCampaignsStageCounts, SDKValidationError> {
|
|
2937
|
+
return safeParse(
|
|
2938
|
+
jsonString,
|
|
2939
|
+
(x) => ListCampaignsStageCounts$inboundSchema.parse(JSON.parse(x)),
|
|
2940
|
+
`Failed to parse 'ListCampaignsStageCounts' from JSON`,
|
|
2941
|
+
);
|
|
2942
|
+
}
|
|
2943
|
+
|
|
2944
|
+
/** @internal */
|
|
2945
|
+
export const ListCampaignsCampaign$inboundSchema: z.ZodMiniType<
|
|
2946
|
+
ListCampaignsCampaign,
|
|
2947
|
+
unknown
|
|
2948
|
+
> = z.object({
|
|
2949
|
+
id: types.string(),
|
|
2950
|
+
name: types.string(),
|
|
2951
|
+
description: types.nullable(types.string()),
|
|
2952
|
+
context: types.nullable(types.string()),
|
|
2953
|
+
type: types.string(),
|
|
2954
|
+
status: types.string(),
|
|
2955
|
+
totalContacts: types.number(),
|
|
2956
|
+
stageCounts: types.optional(
|
|
2957
|
+
z.lazy(() => ListCampaignsStageCounts$inboundSchema),
|
|
2958
|
+
),
|
|
2959
|
+
createdAt: types.string(),
|
|
2960
|
+
updatedAt: types.string(),
|
|
2961
|
+
});
|
|
2962
|
+
|
|
2963
|
+
export function listCampaignsCampaignFromJSON(
|
|
2964
|
+
jsonString: string,
|
|
2965
|
+
): SafeParseResult<ListCampaignsCampaign, SDKValidationError> {
|
|
2966
|
+
return safeParse(
|
|
2967
|
+
jsonString,
|
|
2968
|
+
(x) => ListCampaignsCampaign$inboundSchema.parse(JSON.parse(x)),
|
|
2969
|
+
`Failed to parse 'ListCampaignsCampaign' from JSON`,
|
|
2970
|
+
);
|
|
2971
|
+
}
|
|
2972
|
+
|
|
2973
|
+
/** @internal */
|
|
2974
|
+
export const ListCampaignsPagination$inboundSchema: z.ZodMiniType<
|
|
2975
|
+
ListCampaignsPagination,
|
|
2976
|
+
unknown
|
|
2977
|
+
> = z.object({
|
|
2978
|
+
limit: types.number(),
|
|
2979
|
+
offset: types.number(),
|
|
2980
|
+
total: types.number(),
|
|
2981
|
+
});
|
|
2982
|
+
|
|
2983
|
+
export function listCampaignsPaginationFromJSON(
|
|
2984
|
+
jsonString: string,
|
|
2985
|
+
): SafeParseResult<ListCampaignsPagination, SDKValidationError> {
|
|
2986
|
+
return safeParse(
|
|
2987
|
+
jsonString,
|
|
2988
|
+
(x) => ListCampaignsPagination$inboundSchema.parse(JSON.parse(x)),
|
|
2989
|
+
`Failed to parse 'ListCampaignsPagination' from JSON`,
|
|
2990
|
+
);
|
|
2991
|
+
}
|
|
2992
|
+
|
|
2993
|
+
/** @internal */
|
|
2994
|
+
export const ListCampaignsResponse$inboundSchema: z.ZodMiniType<
|
|
2995
|
+
ListCampaignsResponse,
|
|
2996
|
+
unknown
|
|
2997
|
+
> = z.object({
|
|
2998
|
+
success: types.literal(true),
|
|
2999
|
+
campaigns: z.array(z.lazy(() => ListCampaignsCampaign$inboundSchema)),
|
|
3000
|
+
pagination: z.lazy(() => ListCampaignsPagination$inboundSchema),
|
|
3001
|
+
creditsUsed: types.number(),
|
|
3002
|
+
retryAfter: types.number(),
|
|
3003
|
+
});
|
|
3004
|
+
|
|
3005
|
+
export function listCampaignsResponseFromJSON(
|
|
3006
|
+
jsonString: string,
|
|
3007
|
+
): SafeParseResult<ListCampaignsResponse, SDKValidationError> {
|
|
3008
|
+
return safeParse(
|
|
3009
|
+
jsonString,
|
|
3010
|
+
(x) => ListCampaignsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
3011
|
+
`Failed to parse 'ListCampaignsResponse' from JSON`,
|
|
3012
|
+
);
|
|
3013
|
+
}
|
|
3014
|
+
|
|
3015
|
+
/** @internal */
|
|
3016
|
+
export const CreateCampaignType$outboundSchema: z.ZodMiniEnum<
|
|
3017
|
+
typeof CreateCampaignType
|
|
3018
|
+
> = z.enum(CreateCampaignType);
|
|
3019
|
+
|
|
3020
|
+
/** @internal */
|
|
3021
|
+
export type CreateCampaignRequest$Outbound = {
|
|
3022
|
+
name: string;
|
|
3023
|
+
description?: string | undefined;
|
|
3024
|
+
context?: string | undefined;
|
|
3025
|
+
type: string;
|
|
3026
|
+
};
|
|
3027
|
+
|
|
3028
|
+
/** @internal */
|
|
3029
|
+
export const CreateCampaignRequest$outboundSchema: z.ZodMiniType<
|
|
3030
|
+
CreateCampaignRequest$Outbound,
|
|
3031
|
+
CreateCampaignRequest
|
|
3032
|
+
> = z.object({
|
|
3033
|
+
name: z.string(),
|
|
3034
|
+
description: z.optional(z.string()),
|
|
3035
|
+
context: z.optional(z.string()),
|
|
3036
|
+
type: z._default(CreateCampaignType$outboundSchema, "lead_gen"),
|
|
3037
|
+
});
|
|
3038
|
+
|
|
3039
|
+
export function createCampaignRequestToJSON(
|
|
3040
|
+
createCampaignRequest: CreateCampaignRequest,
|
|
3041
|
+
): string {
|
|
3042
|
+
return JSON.stringify(
|
|
3043
|
+
CreateCampaignRequest$outboundSchema.parse(createCampaignRequest),
|
|
3044
|
+
);
|
|
3045
|
+
}
|
|
3046
|
+
|
|
3047
|
+
/** @internal */
|
|
3048
|
+
export const CreateCampaignStageCounts$inboundSchema: z.ZodMiniType<
|
|
3049
|
+
CreateCampaignStageCounts,
|
|
3050
|
+
unknown
|
|
3051
|
+
> = z.object({
|
|
3052
|
+
contact: types.number(),
|
|
3053
|
+
lead: types.number(),
|
|
3054
|
+
qualified: types.number(),
|
|
3055
|
+
approved: types.number(),
|
|
3056
|
+
rejected: types.number(),
|
|
3057
|
+
});
|
|
3058
|
+
|
|
3059
|
+
export function createCampaignStageCountsFromJSON(
|
|
3060
|
+
jsonString: string,
|
|
3061
|
+
): SafeParseResult<CreateCampaignStageCounts, SDKValidationError> {
|
|
3062
|
+
return safeParse(
|
|
3063
|
+
jsonString,
|
|
3064
|
+
(x) => CreateCampaignStageCounts$inboundSchema.parse(JSON.parse(x)),
|
|
3065
|
+
`Failed to parse 'CreateCampaignStageCounts' from JSON`,
|
|
3066
|
+
);
|
|
3067
|
+
}
|
|
3068
|
+
|
|
3069
|
+
/** @internal */
|
|
3070
|
+
export const CreateCampaignCampaign$inboundSchema: z.ZodMiniType<
|
|
3071
|
+
CreateCampaignCampaign,
|
|
3072
|
+
unknown
|
|
3073
|
+
> = z.object({
|
|
3074
|
+
id: types.string(),
|
|
3075
|
+
name: types.string(),
|
|
3076
|
+
description: types.nullable(types.string()),
|
|
3077
|
+
context: types.nullable(types.string()),
|
|
3078
|
+
type: types.string(),
|
|
3079
|
+
status: types.string(),
|
|
3080
|
+
totalContacts: types.number(),
|
|
3081
|
+
stageCounts: types.optional(
|
|
3082
|
+
z.lazy(() => CreateCampaignStageCounts$inboundSchema),
|
|
3083
|
+
),
|
|
3084
|
+
createdAt: types.string(),
|
|
3085
|
+
updatedAt: types.string(),
|
|
3086
|
+
});
|
|
3087
|
+
|
|
3088
|
+
export function createCampaignCampaignFromJSON(
|
|
3089
|
+
jsonString: string,
|
|
3090
|
+
): SafeParseResult<CreateCampaignCampaign, SDKValidationError> {
|
|
3091
|
+
return safeParse(
|
|
3092
|
+
jsonString,
|
|
3093
|
+
(x) => CreateCampaignCampaign$inboundSchema.parse(JSON.parse(x)),
|
|
3094
|
+
`Failed to parse 'CreateCampaignCampaign' from JSON`,
|
|
3095
|
+
);
|
|
3096
|
+
}
|
|
3097
|
+
|
|
3098
|
+
/** @internal */
|
|
3099
|
+
export const CreateCampaignResponse$inboundSchema: z.ZodMiniType<
|
|
3100
|
+
CreateCampaignResponse,
|
|
3101
|
+
unknown
|
|
3102
|
+
> = z.object({
|
|
3103
|
+
success: types.literal(true),
|
|
3104
|
+
campaign: z.lazy(() => CreateCampaignCampaign$inboundSchema),
|
|
3105
|
+
creditsUsed: types.number(),
|
|
3106
|
+
retryAfter: types.number(),
|
|
3107
|
+
});
|
|
3108
|
+
|
|
3109
|
+
export function createCampaignResponseFromJSON(
|
|
3110
|
+
jsonString: string,
|
|
3111
|
+
): SafeParseResult<CreateCampaignResponse, SDKValidationError> {
|
|
3112
|
+
return safeParse(
|
|
3113
|
+
jsonString,
|
|
3114
|
+
(x) => CreateCampaignResponse$inboundSchema.parse(JSON.parse(x)),
|
|
3115
|
+
`Failed to parse 'CreateCampaignResponse' from JSON`,
|
|
3116
|
+
);
|
|
3117
|
+
}
|
|
3118
|
+
|
|
3119
|
+
/** @internal */
|
|
3120
|
+
export type GetCampaignRequest$Outbound = {
|
|
3121
|
+
campaignId: string;
|
|
3122
|
+
};
|
|
3123
|
+
|
|
3124
|
+
/** @internal */
|
|
3125
|
+
export const GetCampaignRequest$outboundSchema: z.ZodMiniType<
|
|
3126
|
+
GetCampaignRequest$Outbound,
|
|
3127
|
+
GetCampaignRequest
|
|
3128
|
+
> = z.object({
|
|
3129
|
+
campaignId: z.string(),
|
|
3130
|
+
});
|
|
3131
|
+
|
|
3132
|
+
export function getCampaignRequestToJSON(
|
|
3133
|
+
getCampaignRequest: GetCampaignRequest,
|
|
3134
|
+
): string {
|
|
3135
|
+
return JSON.stringify(
|
|
3136
|
+
GetCampaignRequest$outboundSchema.parse(getCampaignRequest),
|
|
3137
|
+
);
|
|
3138
|
+
}
|
|
3139
|
+
|
|
3140
|
+
/** @internal */
|
|
3141
|
+
export const GetCampaignStageCounts$inboundSchema: z.ZodMiniType<
|
|
3142
|
+
GetCampaignStageCounts,
|
|
3143
|
+
unknown
|
|
3144
|
+
> = z.object({
|
|
3145
|
+
contact: types.number(),
|
|
3146
|
+
lead: types.number(),
|
|
3147
|
+
qualified: types.number(),
|
|
3148
|
+
approved: types.number(),
|
|
3149
|
+
rejected: types.number(),
|
|
3150
|
+
});
|
|
3151
|
+
|
|
3152
|
+
export function getCampaignStageCountsFromJSON(
|
|
3153
|
+
jsonString: string,
|
|
3154
|
+
): SafeParseResult<GetCampaignStageCounts, SDKValidationError> {
|
|
3155
|
+
return safeParse(
|
|
3156
|
+
jsonString,
|
|
3157
|
+
(x) => GetCampaignStageCounts$inboundSchema.parse(JSON.parse(x)),
|
|
3158
|
+
`Failed to parse 'GetCampaignStageCounts' from JSON`,
|
|
3159
|
+
);
|
|
3160
|
+
}
|
|
3161
|
+
|
|
3162
|
+
/** @internal */
|
|
3163
|
+
export const GetCampaignCampaign$inboundSchema: z.ZodMiniType<
|
|
3164
|
+
GetCampaignCampaign,
|
|
3165
|
+
unknown
|
|
3166
|
+
> = z.object({
|
|
3167
|
+
id: types.string(),
|
|
3168
|
+
name: types.string(),
|
|
3169
|
+
description: types.nullable(types.string()),
|
|
3170
|
+
context: types.nullable(types.string()),
|
|
3171
|
+
type: types.string(),
|
|
3172
|
+
status: types.string(),
|
|
3173
|
+
totalContacts: types.number(),
|
|
3174
|
+
stageCounts: types.optional(
|
|
3175
|
+
z.lazy(() => GetCampaignStageCounts$inboundSchema),
|
|
3176
|
+
),
|
|
3177
|
+
createdAt: types.string(),
|
|
3178
|
+
updatedAt: types.string(),
|
|
3179
|
+
});
|
|
3180
|
+
|
|
3181
|
+
export function getCampaignCampaignFromJSON(
|
|
3182
|
+
jsonString: string,
|
|
3183
|
+
): SafeParseResult<GetCampaignCampaign, SDKValidationError> {
|
|
3184
|
+
return safeParse(
|
|
3185
|
+
jsonString,
|
|
3186
|
+
(x) => GetCampaignCampaign$inboundSchema.parse(JSON.parse(x)),
|
|
3187
|
+
`Failed to parse 'GetCampaignCampaign' from JSON`,
|
|
3188
|
+
);
|
|
3189
|
+
}
|
|
3190
|
+
|
|
3191
|
+
/** @internal */
|
|
3192
|
+
export const GetCampaignResponse$inboundSchema: z.ZodMiniType<
|
|
3193
|
+
GetCampaignResponse,
|
|
3194
|
+
unknown
|
|
3195
|
+
> = z.object({
|
|
3196
|
+
success: types.literal(true),
|
|
3197
|
+
campaign: z.lazy(() => GetCampaignCampaign$inboundSchema),
|
|
3198
|
+
creditsUsed: types.number(),
|
|
3199
|
+
retryAfter: types.number(),
|
|
3200
|
+
});
|
|
3201
|
+
|
|
3202
|
+
export function getCampaignResponseFromJSON(
|
|
3203
|
+
jsonString: string,
|
|
3204
|
+
): SafeParseResult<GetCampaignResponse, SDKValidationError> {
|
|
3205
|
+
return safeParse(
|
|
3206
|
+
jsonString,
|
|
3207
|
+
(x) => GetCampaignResponse$inboundSchema.parse(JSON.parse(x)),
|
|
3208
|
+
`Failed to parse 'GetCampaignResponse' from JSON`,
|
|
3209
|
+
);
|
|
3210
|
+
}
|
|
3211
|
+
|
|
3212
|
+
/** @internal */
|
|
3213
|
+
export type DeleteCampaignRequest$Outbound = {
|
|
3214
|
+
campaignId: string;
|
|
3215
|
+
};
|
|
3216
|
+
|
|
3217
|
+
/** @internal */
|
|
3218
|
+
export const DeleteCampaignRequest$outboundSchema: z.ZodMiniType<
|
|
3219
|
+
DeleteCampaignRequest$Outbound,
|
|
3220
|
+
DeleteCampaignRequest
|
|
3221
|
+
> = z.object({
|
|
3222
|
+
campaignId: z.string(),
|
|
3223
|
+
});
|
|
3224
|
+
|
|
3225
|
+
export function deleteCampaignRequestToJSON(
|
|
3226
|
+
deleteCampaignRequest: DeleteCampaignRequest,
|
|
3227
|
+
): string {
|
|
3228
|
+
return JSON.stringify(
|
|
3229
|
+
DeleteCampaignRequest$outboundSchema.parse(deleteCampaignRequest),
|
|
3230
|
+
);
|
|
3231
|
+
}
|
|
3232
|
+
|
|
3233
|
+
/** @internal */
|
|
3234
|
+
export const DeleteCampaignResponse$inboundSchema: z.ZodMiniType<
|
|
3235
|
+
DeleteCampaignResponse,
|
|
3236
|
+
unknown
|
|
3237
|
+
> = z.object({
|
|
3238
|
+
success: types.literal(true),
|
|
3239
|
+
creditsUsed: types.number(),
|
|
3240
|
+
retryAfter: types.number(),
|
|
3241
|
+
});
|
|
3242
|
+
|
|
3243
|
+
export function deleteCampaignResponseFromJSON(
|
|
3244
|
+
jsonString: string,
|
|
3245
|
+
): SafeParseResult<DeleteCampaignResponse, SDKValidationError> {
|
|
3246
|
+
return safeParse(
|
|
3247
|
+
jsonString,
|
|
3248
|
+
(x) => DeleteCampaignResponse$inboundSchema.parse(JSON.parse(x)),
|
|
3249
|
+
`Failed to parse 'DeleteCampaignResponse' from JSON`,
|
|
3250
|
+
);
|
|
3251
|
+
}
|
|
3252
|
+
|
|
3253
|
+
/** @internal */
|
|
3254
|
+
export const UpdateCampaignStatus$outboundSchema: z.ZodMiniEnum<
|
|
3255
|
+
typeof UpdateCampaignStatus
|
|
3256
|
+
> = z.enum(UpdateCampaignStatus);
|
|
3257
|
+
|
|
3258
|
+
/** @internal */
|
|
3259
|
+
export type UpdateCampaignRequestBody$Outbound = {
|
|
3260
|
+
name?: string | undefined;
|
|
3261
|
+
description?: string | undefined;
|
|
3262
|
+
context?: string | undefined;
|
|
3263
|
+
status?: string | undefined;
|
|
3264
|
+
scheduledStartTime?: string | undefined;
|
|
3265
|
+
scheduledStopTime?: string | undefined;
|
|
3266
|
+
timezone?: string | undefined;
|
|
3267
|
+
runDays?: Array<string> | undefined;
|
|
3268
|
+
dailyActionLimit?: number | null | undefined;
|
|
3269
|
+
};
|
|
3270
|
+
|
|
3271
|
+
/** @internal */
|
|
3272
|
+
export const UpdateCampaignRequestBody$outboundSchema: z.ZodMiniType<
|
|
3273
|
+
UpdateCampaignRequestBody$Outbound,
|
|
3274
|
+
UpdateCampaignRequestBody
|
|
3275
|
+
> = z.object({
|
|
3276
|
+
name: z.optional(z.string()),
|
|
3277
|
+
description: z.optional(z.string()),
|
|
3278
|
+
context: z.optional(z.string()),
|
|
3279
|
+
status: z.optional(UpdateCampaignStatus$outboundSchema),
|
|
3280
|
+
scheduledStartTime: z.optional(z.string()),
|
|
3281
|
+
scheduledStopTime: z.optional(z.string()),
|
|
3282
|
+
timezone: z.optional(z.string()),
|
|
3283
|
+
runDays: z.optional(z.array(z.string())),
|
|
3284
|
+
dailyActionLimit: z.optional(z.nullable(z.int())),
|
|
3285
|
+
});
|
|
3286
|
+
|
|
3287
|
+
export function updateCampaignRequestBodyToJSON(
|
|
3288
|
+
updateCampaignRequestBody: UpdateCampaignRequestBody,
|
|
3289
|
+
): string {
|
|
3290
|
+
return JSON.stringify(
|
|
3291
|
+
UpdateCampaignRequestBody$outboundSchema.parse(updateCampaignRequestBody),
|
|
3292
|
+
);
|
|
3293
|
+
}
|
|
3294
|
+
|
|
3295
|
+
/** @internal */
|
|
3296
|
+
export type UpdateCampaignRequest$Outbound = {
|
|
3297
|
+
campaignId: string;
|
|
3298
|
+
body: UpdateCampaignRequestBody$Outbound;
|
|
3299
|
+
};
|
|
3300
|
+
|
|
3301
|
+
/** @internal */
|
|
3302
|
+
export const UpdateCampaignRequest$outboundSchema: z.ZodMiniType<
|
|
3303
|
+
UpdateCampaignRequest$Outbound,
|
|
3304
|
+
UpdateCampaignRequest
|
|
3305
|
+
> = z.object({
|
|
3306
|
+
campaignId: z.string(),
|
|
3307
|
+
body: z.lazy(() => UpdateCampaignRequestBody$outboundSchema),
|
|
3308
|
+
});
|
|
3309
|
+
|
|
3310
|
+
export function updateCampaignRequestToJSON(
|
|
3311
|
+
updateCampaignRequest: UpdateCampaignRequest,
|
|
3312
|
+
): string {
|
|
3313
|
+
return JSON.stringify(
|
|
3314
|
+
UpdateCampaignRequest$outboundSchema.parse(updateCampaignRequest),
|
|
3315
|
+
);
|
|
3316
|
+
}
|
|
3317
|
+
|
|
3318
|
+
/** @internal */
|
|
3319
|
+
export const UpdateCampaignStageCounts$inboundSchema: z.ZodMiniType<
|
|
3320
|
+
UpdateCampaignStageCounts,
|
|
3321
|
+
unknown
|
|
3322
|
+
> = z.object({
|
|
3323
|
+
contact: types.number(),
|
|
3324
|
+
lead: types.number(),
|
|
3325
|
+
qualified: types.number(),
|
|
3326
|
+
approved: types.number(),
|
|
3327
|
+
rejected: types.number(),
|
|
3328
|
+
});
|
|
3329
|
+
|
|
3330
|
+
export function updateCampaignStageCountsFromJSON(
|
|
3331
|
+
jsonString: string,
|
|
3332
|
+
): SafeParseResult<UpdateCampaignStageCounts, SDKValidationError> {
|
|
3333
|
+
return safeParse(
|
|
3334
|
+
jsonString,
|
|
3335
|
+
(x) => UpdateCampaignStageCounts$inboundSchema.parse(JSON.parse(x)),
|
|
3336
|
+
`Failed to parse 'UpdateCampaignStageCounts' from JSON`,
|
|
3337
|
+
);
|
|
3338
|
+
}
|
|
3339
|
+
|
|
3340
|
+
/** @internal */
|
|
3341
|
+
export const UpdateCampaignCampaign$inboundSchema: z.ZodMiniType<
|
|
3342
|
+
UpdateCampaignCampaign,
|
|
3343
|
+
unknown
|
|
3344
|
+
> = z.object({
|
|
3345
|
+
id: types.string(),
|
|
3346
|
+
name: types.string(),
|
|
3347
|
+
description: types.nullable(types.string()),
|
|
3348
|
+
context: types.nullable(types.string()),
|
|
3349
|
+
type: types.string(),
|
|
3350
|
+
status: types.string(),
|
|
3351
|
+
totalContacts: types.number(),
|
|
3352
|
+
stageCounts: types.optional(
|
|
3353
|
+
z.lazy(() => UpdateCampaignStageCounts$inboundSchema),
|
|
3354
|
+
),
|
|
3355
|
+
createdAt: types.string(),
|
|
3356
|
+
updatedAt: types.string(),
|
|
3357
|
+
});
|
|
3358
|
+
|
|
3359
|
+
export function updateCampaignCampaignFromJSON(
|
|
3360
|
+
jsonString: string,
|
|
3361
|
+
): SafeParseResult<UpdateCampaignCampaign, SDKValidationError> {
|
|
3362
|
+
return safeParse(
|
|
3363
|
+
jsonString,
|
|
3364
|
+
(x) => UpdateCampaignCampaign$inboundSchema.parse(JSON.parse(x)),
|
|
3365
|
+
`Failed to parse 'UpdateCampaignCampaign' from JSON`,
|
|
3366
|
+
);
|
|
3367
|
+
}
|
|
3368
|
+
|
|
3369
|
+
/** @internal */
|
|
3370
|
+
export const UpdateCampaignResponse$inboundSchema: z.ZodMiniType<
|
|
3371
|
+
UpdateCampaignResponse,
|
|
3372
|
+
unknown
|
|
3373
|
+
> = z.object({
|
|
3374
|
+
success: types.literal(true),
|
|
3375
|
+
campaign: z.lazy(() => UpdateCampaignCampaign$inboundSchema),
|
|
3376
|
+
creditsUsed: types.number(),
|
|
3377
|
+
retryAfter: types.number(),
|
|
3378
|
+
});
|
|
3379
|
+
|
|
3380
|
+
export function updateCampaignResponseFromJSON(
|
|
3381
|
+
jsonString: string,
|
|
3382
|
+
): SafeParseResult<UpdateCampaignResponse, SDKValidationError> {
|
|
3383
|
+
return safeParse(
|
|
3384
|
+
jsonString,
|
|
3385
|
+
(x) => UpdateCampaignResponse$inboundSchema.parse(JSON.parse(x)),
|
|
3386
|
+
`Failed to parse 'UpdateCampaignResponse' from JSON`,
|
|
3387
|
+
);
|
|
3388
|
+
}
|
|
3389
|
+
|
|
3390
|
+
/** @internal */
|
|
3391
|
+
export const CampaignStatusTransitionAction$outboundSchema: z.ZodMiniEnum<
|
|
3392
|
+
typeof CampaignStatusTransitionAction
|
|
3393
|
+
> = z.enum(CampaignStatusTransitionAction);
|
|
3394
|
+
|
|
3395
|
+
/** @internal */
|
|
3396
|
+
export type CampaignStatusTransitionRequestBody$Outbound = {
|
|
3397
|
+
action: string;
|
|
3398
|
+
scheduledStartTime?: string | undefined;
|
|
3399
|
+
scheduledStopTime?: string | undefined;
|
|
3400
|
+
timezone?: string | undefined;
|
|
3401
|
+
runDays?: Array<string> | undefined;
|
|
3402
|
+
dailyActionLimit?: number | undefined;
|
|
3403
|
+
};
|
|
3404
|
+
|
|
3405
|
+
/** @internal */
|
|
3406
|
+
export const CampaignStatusTransitionRequestBody$outboundSchema: z.ZodMiniType<
|
|
3407
|
+
CampaignStatusTransitionRequestBody$Outbound,
|
|
3408
|
+
CampaignStatusTransitionRequestBody
|
|
3409
|
+
> = z.object({
|
|
3410
|
+
action: CampaignStatusTransitionAction$outboundSchema,
|
|
3411
|
+
scheduledStartTime: z.optional(z.string()),
|
|
3412
|
+
scheduledStopTime: z.optional(z.string()),
|
|
3413
|
+
timezone: z.optional(z.string()),
|
|
3414
|
+
runDays: z.optional(z.array(z.string())),
|
|
3415
|
+
dailyActionLimit: z.optional(z.int()),
|
|
3416
|
+
});
|
|
3417
|
+
|
|
3418
|
+
export function campaignStatusTransitionRequestBodyToJSON(
|
|
3419
|
+
campaignStatusTransitionRequestBody: CampaignStatusTransitionRequestBody,
|
|
3420
|
+
): string {
|
|
3421
|
+
return JSON.stringify(
|
|
3422
|
+
CampaignStatusTransitionRequestBody$outboundSchema.parse(
|
|
3423
|
+
campaignStatusTransitionRequestBody,
|
|
3424
|
+
),
|
|
3425
|
+
);
|
|
3426
|
+
}
|
|
3427
|
+
|
|
3428
|
+
/** @internal */
|
|
3429
|
+
export type CampaignStatusTransitionRequest$Outbound = {
|
|
3430
|
+
campaignId: string;
|
|
3431
|
+
body: CampaignStatusTransitionRequestBody$Outbound;
|
|
3432
|
+
};
|
|
3433
|
+
|
|
3434
|
+
/** @internal */
|
|
3435
|
+
export const CampaignStatusTransitionRequest$outboundSchema: z.ZodMiniType<
|
|
3436
|
+
CampaignStatusTransitionRequest$Outbound,
|
|
3437
|
+
CampaignStatusTransitionRequest
|
|
3438
|
+
> = z.object({
|
|
3439
|
+
campaignId: z.string(),
|
|
3440
|
+
body: z.lazy(() => CampaignStatusTransitionRequestBody$outboundSchema),
|
|
3441
|
+
});
|
|
3442
|
+
|
|
3443
|
+
export function campaignStatusTransitionRequestToJSON(
|
|
3444
|
+
campaignStatusTransitionRequest: CampaignStatusTransitionRequest,
|
|
3445
|
+
): string {
|
|
3446
|
+
return JSON.stringify(
|
|
3447
|
+
CampaignStatusTransitionRequest$outboundSchema.parse(
|
|
3448
|
+
campaignStatusTransitionRequest,
|
|
3449
|
+
),
|
|
3450
|
+
);
|
|
3451
|
+
}
|
|
3452
|
+
|
|
3453
|
+
/** @internal */
|
|
3454
|
+
export const CampaignStatusTransitionStageCounts$inboundSchema: z.ZodMiniType<
|
|
3455
|
+
CampaignStatusTransitionStageCounts,
|
|
3456
|
+
unknown
|
|
3457
|
+
> = z.object({
|
|
3458
|
+
contact: types.number(),
|
|
3459
|
+
lead: types.number(),
|
|
3460
|
+
qualified: types.number(),
|
|
3461
|
+
approved: types.number(),
|
|
3462
|
+
rejected: types.number(),
|
|
3463
|
+
});
|
|
3464
|
+
|
|
3465
|
+
export function campaignStatusTransitionStageCountsFromJSON(
|
|
3466
|
+
jsonString: string,
|
|
3467
|
+
): SafeParseResult<CampaignStatusTransitionStageCounts, SDKValidationError> {
|
|
3468
|
+
return safeParse(
|
|
3469
|
+
jsonString,
|
|
3470
|
+
(x) =>
|
|
3471
|
+
CampaignStatusTransitionStageCounts$inboundSchema.parse(JSON.parse(x)),
|
|
3472
|
+
`Failed to parse 'CampaignStatusTransitionStageCounts' from JSON`,
|
|
3473
|
+
);
|
|
3474
|
+
}
|
|
3475
|
+
|
|
3476
|
+
/** @internal */
|
|
3477
|
+
export const CampaignStatusTransitionCampaign$inboundSchema: z.ZodMiniType<
|
|
3478
|
+
CampaignStatusTransitionCampaign,
|
|
3479
|
+
unknown
|
|
3480
|
+
> = z.object({
|
|
3481
|
+
id: types.string(),
|
|
3482
|
+
name: types.string(),
|
|
3483
|
+
description: types.nullable(types.string()),
|
|
3484
|
+
context: types.nullable(types.string()),
|
|
3485
|
+
type: types.string(),
|
|
3486
|
+
status: types.string(),
|
|
3487
|
+
totalContacts: types.number(),
|
|
3488
|
+
stageCounts: types.optional(
|
|
3489
|
+
z.lazy(() => CampaignStatusTransitionStageCounts$inboundSchema),
|
|
3490
|
+
),
|
|
3491
|
+
createdAt: types.string(),
|
|
3492
|
+
updatedAt: types.string(),
|
|
3493
|
+
});
|
|
3494
|
+
|
|
3495
|
+
export function campaignStatusTransitionCampaignFromJSON(
|
|
3496
|
+
jsonString: string,
|
|
3497
|
+
): SafeParseResult<CampaignStatusTransitionCampaign, SDKValidationError> {
|
|
3498
|
+
return safeParse(
|
|
3499
|
+
jsonString,
|
|
3500
|
+
(x) => CampaignStatusTransitionCampaign$inboundSchema.parse(JSON.parse(x)),
|
|
3501
|
+
`Failed to parse 'CampaignStatusTransitionCampaign' from JSON`,
|
|
3502
|
+
);
|
|
3503
|
+
}
|
|
3504
|
+
|
|
3505
|
+
/** @internal */
|
|
3506
|
+
export const CampaignStatusTransitionResponse$inboundSchema: z.ZodMiniType<
|
|
3507
|
+
CampaignStatusTransitionResponse,
|
|
3508
|
+
unknown
|
|
3509
|
+
> = z.object({
|
|
3510
|
+
success: types.literal(true),
|
|
3511
|
+
campaign: z.lazy(() => CampaignStatusTransitionCampaign$inboundSchema),
|
|
3512
|
+
creditsUsed: types.number(),
|
|
3513
|
+
retryAfter: types.number(),
|
|
3514
|
+
});
|
|
3515
|
+
|
|
3516
|
+
export function campaignStatusTransitionResponseFromJSON(
|
|
3517
|
+
jsonString: string,
|
|
3518
|
+
): SafeParseResult<CampaignStatusTransitionResponse, SDKValidationError> {
|
|
3519
|
+
return safeParse(
|
|
3520
|
+
jsonString,
|
|
3521
|
+
(x) => CampaignStatusTransitionResponse$inboundSchema.parse(JSON.parse(x)),
|
|
3522
|
+
`Failed to parse 'CampaignStatusTransitionResponse' from JSON`,
|
|
3523
|
+
);
|
|
3524
|
+
}
|
|
3525
|
+
|
|
3526
|
+
/** @internal */
|
|
3527
|
+
export const ListCampaignContactsLifecycleStage$outboundSchema: z.ZodMiniEnum<
|
|
3528
|
+
typeof ListCampaignContactsLifecycleStage
|
|
3529
|
+
> = z.enum(ListCampaignContactsLifecycleStage);
|
|
3530
|
+
|
|
3531
|
+
/** @internal */
|
|
3532
|
+
export type ListCampaignContactsRequest$Outbound = {
|
|
3533
|
+
lifecycleStage?: string | undefined;
|
|
3534
|
+
source?: string | undefined;
|
|
3535
|
+
sourceAngle?: string | undefined;
|
|
3536
|
+
minHotScore?: number | undefined;
|
|
3537
|
+
limit: number;
|
|
3538
|
+
offset: number;
|
|
3539
|
+
campaignId: string;
|
|
3540
|
+
};
|
|
3541
|
+
|
|
3542
|
+
/** @internal */
|
|
3543
|
+
export const ListCampaignContactsRequest$outboundSchema: z.ZodMiniType<
|
|
3544
|
+
ListCampaignContactsRequest$Outbound,
|
|
3545
|
+
ListCampaignContactsRequest
|
|
3546
|
+
> = z.object({
|
|
3547
|
+
lifecycleStage: z.optional(ListCampaignContactsLifecycleStage$outboundSchema),
|
|
3548
|
+
source: z.optional(z.string()),
|
|
3549
|
+
sourceAngle: z.optional(z.string()),
|
|
3550
|
+
minHotScore: z.optional(z.int()),
|
|
3551
|
+
limit: z._default(z.int(), 50),
|
|
3552
|
+
offset: z._default(z.int(), 0),
|
|
3553
|
+
campaignId: z.string(),
|
|
3554
|
+
});
|
|
3555
|
+
|
|
3556
|
+
export function listCampaignContactsRequestToJSON(
|
|
3557
|
+
listCampaignContactsRequest: ListCampaignContactsRequest,
|
|
3558
|
+
): string {
|
|
3559
|
+
return JSON.stringify(
|
|
3560
|
+
ListCampaignContactsRequest$outboundSchema.parse(
|
|
3561
|
+
listCampaignContactsRequest,
|
|
3562
|
+
),
|
|
3563
|
+
);
|
|
3564
|
+
}
|
|
3565
|
+
|
|
3566
|
+
/** @internal */
|
|
3567
|
+
export const ListCampaignContactsContact$inboundSchema: z.ZodMiniType<
|
|
3568
|
+
ListCampaignContactsContact,
|
|
3569
|
+
unknown
|
|
3570
|
+
> = z.object({
|
|
3571
|
+
id: types.string(),
|
|
3572
|
+
linkedinUrl: types.string(),
|
|
3573
|
+
profileUrn: types.nullable(types.string()),
|
|
3574
|
+
publicIdentifier: types.nullable(types.string()),
|
|
3575
|
+
name: types.string(),
|
|
3576
|
+
lifecycleStage: types.string(),
|
|
3577
|
+
hotScore: types.number(),
|
|
3578
|
+
qualificationNotes: types.nullable(types.string()),
|
|
3579
|
+
notes: types.nullable(types.string()),
|
|
3580
|
+
stageChangedAt: types.nullable(types.string()),
|
|
3581
|
+
profileData: types.nullable(z.any()),
|
|
3582
|
+
profileUpdatedAt: types.nullable(types.string()),
|
|
3583
|
+
conversationData: types.nullable(z.any()),
|
|
3584
|
+
conversationUpdatedAt: types.nullable(types.string()),
|
|
3585
|
+
outreachStatus: types.string(),
|
|
3586
|
+
lastContactedAt: types.nullable(types.string()),
|
|
3587
|
+
lastRepliedAt: types.nullable(types.string()),
|
|
3588
|
+
nextFollowUpAt: types.nullable(types.string()),
|
|
3589
|
+
doNotContact: types.boolean(),
|
|
3590
|
+
tags: z.array(types.string()),
|
|
3591
|
+
createdAt: types.string(),
|
|
3592
|
+
updatedAt: types.string(),
|
|
3593
|
+
source: types.string(),
|
|
3594
|
+
sourceAngle: types.nullable(types.string()),
|
|
3595
|
+
addedAt: types.string(),
|
|
3596
|
+
});
|
|
3597
|
+
|
|
3598
|
+
export function listCampaignContactsContactFromJSON(
|
|
3599
|
+
jsonString: string,
|
|
3600
|
+
): SafeParseResult<ListCampaignContactsContact, SDKValidationError> {
|
|
3601
|
+
return safeParse(
|
|
3602
|
+
jsonString,
|
|
3603
|
+
(x) => ListCampaignContactsContact$inboundSchema.parse(JSON.parse(x)),
|
|
3604
|
+
`Failed to parse 'ListCampaignContactsContact' from JSON`,
|
|
3605
|
+
);
|
|
3606
|
+
}
|
|
3607
|
+
|
|
3608
|
+
/** @internal */
|
|
3609
|
+
export const ListCampaignContactsPagination$inboundSchema: z.ZodMiniType<
|
|
3610
|
+
ListCampaignContactsPagination,
|
|
3611
|
+
unknown
|
|
3612
|
+
> = z.object({
|
|
3613
|
+
limit: types.number(),
|
|
3614
|
+
offset: types.number(),
|
|
3615
|
+
total: types.number(),
|
|
3616
|
+
});
|
|
3617
|
+
|
|
3618
|
+
export function listCampaignContactsPaginationFromJSON(
|
|
3619
|
+
jsonString: string,
|
|
3620
|
+
): SafeParseResult<ListCampaignContactsPagination, SDKValidationError> {
|
|
3621
|
+
return safeParse(
|
|
3622
|
+
jsonString,
|
|
3623
|
+
(x) => ListCampaignContactsPagination$inboundSchema.parse(JSON.parse(x)),
|
|
3624
|
+
`Failed to parse 'ListCampaignContactsPagination' from JSON`,
|
|
3625
|
+
);
|
|
3626
|
+
}
|
|
3627
|
+
|
|
3628
|
+
/** @internal */
|
|
3629
|
+
export const ListCampaignContactsResponse$inboundSchema: z.ZodMiniType<
|
|
3630
|
+
ListCampaignContactsResponse,
|
|
3631
|
+
unknown
|
|
3632
|
+
> = z.object({
|
|
3633
|
+
success: types.literal(true),
|
|
3634
|
+
contacts: z.array(z.lazy(() => ListCampaignContactsContact$inboundSchema)),
|
|
3635
|
+
pagination: z.lazy(() => ListCampaignContactsPagination$inboundSchema),
|
|
3636
|
+
creditsUsed: types.number(),
|
|
3637
|
+
retryAfter: types.number(),
|
|
3638
|
+
});
|
|
3639
|
+
|
|
3640
|
+
export function listCampaignContactsResponseFromJSON(
|
|
3641
|
+
jsonString: string,
|
|
3642
|
+
): SafeParseResult<ListCampaignContactsResponse, SDKValidationError> {
|
|
3643
|
+
return safeParse(
|
|
3644
|
+
jsonString,
|
|
3645
|
+
(x) => ListCampaignContactsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
3646
|
+
`Failed to parse 'ListCampaignContactsResponse' from JSON`,
|
|
3647
|
+
);
|
|
3648
|
+
}
|
|
3649
|
+
|
|
3650
|
+
/** @internal */
|
|
3651
|
+
export const AddCampaignContactsSource$outboundSchema: z.ZodMiniEnum<
|
|
3652
|
+
typeof AddCampaignContactsSource
|
|
3653
|
+
> = z.enum(AddCampaignContactsSource);
|
|
3654
|
+
|
|
3655
|
+
/** @internal */
|
|
3656
|
+
export const AddCampaignContactsLifecycleStage$outboundSchema: z.ZodMiniEnum<
|
|
3657
|
+
typeof AddCampaignContactsLifecycleStage
|
|
3658
|
+
> = z.enum(AddCampaignContactsLifecycleStage);
|
|
3659
|
+
|
|
3660
|
+
/** @internal */
|
|
3661
|
+
export type AddCampaignContactsContact$Outbound = {
|
|
3662
|
+
linkedinUrl: string;
|
|
3663
|
+
profileUrn?: string | null | undefined;
|
|
3664
|
+
publicIdentifier?: string | null | undefined;
|
|
3665
|
+
name: string;
|
|
3666
|
+
source: string;
|
|
3667
|
+
sourceAngle?: string | undefined;
|
|
3668
|
+
lifecycleStage?: string | undefined;
|
|
3669
|
+
hotScore?: number | undefined;
|
|
3670
|
+
qualificationNotes?: string | undefined;
|
|
3671
|
+
notes?: string | undefined;
|
|
3672
|
+
};
|
|
3673
|
+
|
|
3674
|
+
/** @internal */
|
|
3675
|
+
export const AddCampaignContactsContact$outboundSchema: z.ZodMiniType<
|
|
3676
|
+
AddCampaignContactsContact$Outbound,
|
|
3677
|
+
AddCampaignContactsContact
|
|
3678
|
+
> = z.object({
|
|
3679
|
+
linkedinUrl: z.string(),
|
|
3680
|
+
profileUrn: z.optional(z.nullable(z.string())),
|
|
3681
|
+
publicIdentifier: z.optional(z.nullable(z.string())),
|
|
3682
|
+
name: z.string(),
|
|
3683
|
+
source: z._default(AddCampaignContactsSource$outboundSchema, "manual_import"),
|
|
3684
|
+
sourceAngle: z.optional(z.string()),
|
|
3685
|
+
lifecycleStage: z.optional(AddCampaignContactsLifecycleStage$outboundSchema),
|
|
3686
|
+
hotScore: z.optional(z.int()),
|
|
3687
|
+
qualificationNotes: z.optional(z.string()),
|
|
3688
|
+
notes: z.optional(z.string()),
|
|
3689
|
+
});
|
|
3690
|
+
|
|
3691
|
+
export function addCampaignContactsContactToJSON(
|
|
3692
|
+
addCampaignContactsContact: AddCampaignContactsContact,
|
|
3693
|
+
): string {
|
|
3694
|
+
return JSON.stringify(
|
|
3695
|
+
AddCampaignContactsContact$outboundSchema.parse(addCampaignContactsContact),
|
|
3696
|
+
);
|
|
3697
|
+
}
|
|
3698
|
+
|
|
3699
|
+
/** @internal */
|
|
3700
|
+
export type AddCampaignContactsRequestBody$Outbound = {
|
|
3701
|
+
contacts: Array<AddCampaignContactsContact$Outbound>;
|
|
3702
|
+
};
|
|
3703
|
+
|
|
3704
|
+
/** @internal */
|
|
3705
|
+
export const AddCampaignContactsRequestBody$outboundSchema: z.ZodMiniType<
|
|
3706
|
+
AddCampaignContactsRequestBody$Outbound,
|
|
3707
|
+
AddCampaignContactsRequestBody
|
|
3708
|
+
> = z.object({
|
|
3709
|
+
contacts: z.array(z.lazy(() => AddCampaignContactsContact$outboundSchema)),
|
|
3710
|
+
});
|
|
3711
|
+
|
|
3712
|
+
export function addCampaignContactsRequestBodyToJSON(
|
|
3713
|
+
addCampaignContactsRequestBody: AddCampaignContactsRequestBody,
|
|
3714
|
+
): string {
|
|
3715
|
+
return JSON.stringify(
|
|
3716
|
+
AddCampaignContactsRequestBody$outboundSchema.parse(
|
|
3717
|
+
addCampaignContactsRequestBody,
|
|
3718
|
+
),
|
|
3719
|
+
);
|
|
3720
|
+
}
|
|
3721
|
+
|
|
3722
|
+
/** @internal */
|
|
3723
|
+
export type AddCampaignContactsRequest$Outbound = {
|
|
3724
|
+
campaignId: string;
|
|
3725
|
+
body: AddCampaignContactsRequestBody$Outbound;
|
|
3726
|
+
};
|
|
3727
|
+
|
|
3728
|
+
/** @internal */
|
|
3729
|
+
export const AddCampaignContactsRequest$outboundSchema: z.ZodMiniType<
|
|
3730
|
+
AddCampaignContactsRequest$Outbound,
|
|
3731
|
+
AddCampaignContactsRequest
|
|
3732
|
+
> = z.object({
|
|
3733
|
+
campaignId: z.string(),
|
|
3734
|
+
body: z.lazy(() => AddCampaignContactsRequestBody$outboundSchema),
|
|
3735
|
+
});
|
|
3736
|
+
|
|
3737
|
+
export function addCampaignContactsRequestToJSON(
|
|
3738
|
+
addCampaignContactsRequest: AddCampaignContactsRequest,
|
|
3739
|
+
): string {
|
|
3740
|
+
return JSON.stringify(
|
|
3741
|
+
AddCampaignContactsRequest$outboundSchema.parse(addCampaignContactsRequest),
|
|
3742
|
+
);
|
|
3743
|
+
}
|
|
3744
|
+
|
|
3745
|
+
/** @internal */
|
|
3746
|
+
export const AddCampaignContactsResults$inboundSchema: z.ZodMiniType<
|
|
3747
|
+
AddCampaignContactsResults,
|
|
3748
|
+
unknown
|
|
3749
|
+
> = z.object({
|
|
3750
|
+
created: types.number(),
|
|
3751
|
+
skipped: types.number(),
|
|
3752
|
+
errors: z.array(types.string()),
|
|
3753
|
+
});
|
|
3754
|
+
|
|
3755
|
+
export function addCampaignContactsResultsFromJSON(
|
|
3756
|
+
jsonString: string,
|
|
3757
|
+
): SafeParseResult<AddCampaignContactsResults, SDKValidationError> {
|
|
3758
|
+
return safeParse(
|
|
3759
|
+
jsonString,
|
|
3760
|
+
(x) => AddCampaignContactsResults$inboundSchema.parse(JSON.parse(x)),
|
|
3761
|
+
`Failed to parse 'AddCampaignContactsResults' from JSON`,
|
|
3762
|
+
);
|
|
3763
|
+
}
|
|
3764
|
+
|
|
3765
|
+
/** @internal */
|
|
3766
|
+
export const AddCampaignContactsResponse$inboundSchema: z.ZodMiniType<
|
|
3767
|
+
AddCampaignContactsResponse,
|
|
3768
|
+
unknown
|
|
3769
|
+
> = z.object({
|
|
3770
|
+
success: types.literal(true),
|
|
3771
|
+
results: z.lazy(() => AddCampaignContactsResults$inboundSchema),
|
|
3772
|
+
creditsUsed: types.number(),
|
|
3773
|
+
retryAfter: types.number(),
|
|
3774
|
+
});
|
|
3775
|
+
|
|
3776
|
+
export function addCampaignContactsResponseFromJSON(
|
|
3777
|
+
jsonString: string,
|
|
3778
|
+
): SafeParseResult<AddCampaignContactsResponse, SDKValidationError> {
|
|
3779
|
+
return safeParse(
|
|
3780
|
+
jsonString,
|
|
3781
|
+
(x) => AddCampaignContactsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
3782
|
+
`Failed to parse 'AddCampaignContactsResponse' from JSON`,
|
|
3783
|
+
);
|
|
3784
|
+
}
|
|
3785
|
+
|
|
3786
|
+
/** @internal */
|
|
3787
|
+
export type GetByUrlRequest$Outbound = {
|
|
3788
|
+
linkedinUrl: string;
|
|
3789
|
+
};
|
|
3790
|
+
|
|
3791
|
+
/** @internal */
|
|
3792
|
+
export const GetByUrlRequest$outboundSchema: z.ZodMiniType<
|
|
3793
|
+
GetByUrlRequest$Outbound,
|
|
3794
|
+
GetByUrlRequest
|
|
3795
|
+
> = z.object({
|
|
3796
|
+
linkedinUrl: z.string(),
|
|
3797
|
+
});
|
|
3798
|
+
|
|
3799
|
+
export function getByUrlRequestToJSON(
|
|
3800
|
+
getByUrlRequest: GetByUrlRequest,
|
|
3801
|
+
): string {
|
|
3802
|
+
return JSON.stringify(GetByUrlRequest$outboundSchema.parse(getByUrlRequest));
|
|
3803
|
+
}
|
|
3804
|
+
|
|
3805
|
+
/** @internal */
|
|
3806
|
+
export const GetByUrlActivity$inboundSchema: z.ZodMiniType<
|
|
3807
|
+
GetByUrlActivity,
|
|
3808
|
+
unknown
|
|
3809
|
+
> = z.object({
|
|
3810
|
+
id: types.string(),
|
|
3811
|
+
type: types.string(),
|
|
3812
|
+
content: types.nullable(types.string()),
|
|
3813
|
+
metadata: types.nullable(z.any()),
|
|
3814
|
+
createdAt: types.string(),
|
|
3815
|
+
});
|
|
3816
|
+
|
|
3817
|
+
export function getByUrlActivityFromJSON(
|
|
3818
|
+
jsonString: string,
|
|
3819
|
+
): SafeParseResult<GetByUrlActivity, SDKValidationError> {
|
|
3820
|
+
return safeParse(
|
|
3821
|
+
jsonString,
|
|
3822
|
+
(x) => GetByUrlActivity$inboundSchema.parse(JSON.parse(x)),
|
|
3823
|
+
`Failed to parse 'GetByUrlActivity' from JSON`,
|
|
3824
|
+
);
|
|
3825
|
+
}
|
|
3826
|
+
|
|
3827
|
+
/** @internal */
|
|
3828
|
+
export const GetByUrlCampaign$inboundSchema: z.ZodMiniType<
|
|
3829
|
+
GetByUrlCampaign,
|
|
3830
|
+
unknown
|
|
3831
|
+
> = z.object({
|
|
3832
|
+
campaignId: types.string(),
|
|
3833
|
+
campaignName: types.string(),
|
|
3834
|
+
campaignStatus: types.string(),
|
|
3835
|
+
source: types.string(),
|
|
3836
|
+
sourceAngle: types.nullable(types.string()),
|
|
3837
|
+
addedAt: types.string(),
|
|
3838
|
+
});
|
|
3839
|
+
|
|
3840
|
+
export function getByUrlCampaignFromJSON(
|
|
3841
|
+
jsonString: string,
|
|
3842
|
+
): SafeParseResult<GetByUrlCampaign, SDKValidationError> {
|
|
3843
|
+
return safeParse(
|
|
3844
|
+
jsonString,
|
|
3845
|
+
(x) => GetByUrlCampaign$inboundSchema.parse(JSON.parse(x)),
|
|
3846
|
+
`Failed to parse 'GetByUrlCampaign' from JSON`,
|
|
3847
|
+
);
|
|
3848
|
+
}
|
|
3849
|
+
|
|
3850
|
+
/** @internal */
|
|
3851
|
+
export const GetByUrlContact$inboundSchema: z.ZodMiniType<
|
|
3852
|
+
GetByUrlContact,
|
|
3853
|
+
unknown
|
|
3854
|
+
> = z.object({
|
|
3855
|
+
id: types.string(),
|
|
3856
|
+
linkedinUrl: types.string(),
|
|
3857
|
+
profileUrn: types.nullable(types.string()),
|
|
3858
|
+
publicIdentifier: types.nullable(types.string()),
|
|
3859
|
+
name: types.string(),
|
|
3860
|
+
lifecycleStage: types.string(),
|
|
3861
|
+
hotScore: types.number(),
|
|
3862
|
+
qualificationNotes: types.nullable(types.string()),
|
|
3863
|
+
notes: types.nullable(types.string()),
|
|
3864
|
+
stageChangedAt: types.nullable(types.string()),
|
|
3865
|
+
profileData: types.nullable(z.any()),
|
|
3866
|
+
profileUpdatedAt: types.nullable(types.string()),
|
|
3867
|
+
conversationData: types.nullable(z.any()),
|
|
3868
|
+
conversationUpdatedAt: types.nullable(types.string()),
|
|
3869
|
+
outreachStatus: types.string(),
|
|
3870
|
+
lastContactedAt: types.nullable(types.string()),
|
|
3871
|
+
lastRepliedAt: types.nullable(types.string()),
|
|
3872
|
+
nextFollowUpAt: types.nullable(types.string()),
|
|
3873
|
+
doNotContact: types.boolean(),
|
|
3874
|
+
tags: z.array(types.string()),
|
|
3875
|
+
createdAt: types.string(),
|
|
3876
|
+
updatedAt: types.string(),
|
|
3877
|
+
activities: z.array(z.lazy(() => GetByUrlActivity$inboundSchema)),
|
|
3878
|
+
campaigns: z.array(z.lazy(() => GetByUrlCampaign$inboundSchema)),
|
|
3879
|
+
});
|
|
3880
|
+
|
|
3881
|
+
export function getByUrlContactFromJSON(
|
|
3882
|
+
jsonString: string,
|
|
3883
|
+
): SafeParseResult<GetByUrlContact, SDKValidationError> {
|
|
3884
|
+
return safeParse(
|
|
3885
|
+
jsonString,
|
|
3886
|
+
(x) => GetByUrlContact$inboundSchema.parse(JSON.parse(x)),
|
|
3887
|
+
`Failed to parse 'GetByUrlContact' from JSON`,
|
|
3888
|
+
);
|
|
3889
|
+
}
|
|
3890
|
+
|
|
3891
|
+
/** @internal */
|
|
3892
|
+
export const GetByUrlResponse$inboundSchema: z.ZodMiniType<
|
|
3893
|
+
GetByUrlResponse,
|
|
3894
|
+
unknown
|
|
3895
|
+
> = z.object({
|
|
3896
|
+
success: types.literal(true),
|
|
3897
|
+
contact: z.lazy(() => GetByUrlContact$inboundSchema),
|
|
3898
|
+
creditsUsed: types.number(),
|
|
3899
|
+
retryAfter: types.number(),
|
|
3900
|
+
});
|
|
3901
|
+
|
|
3902
|
+
export function getByUrlResponseFromJSON(
|
|
3903
|
+
jsonString: string,
|
|
3904
|
+
): SafeParseResult<GetByUrlResponse, SDKValidationError> {
|
|
3905
|
+
return safeParse(
|
|
3906
|
+
jsonString,
|
|
3907
|
+
(x) => GetByUrlResponse$inboundSchema.parse(JSON.parse(x)),
|
|
3908
|
+
`Failed to parse 'GetByUrlResponse' from JSON`,
|
|
3909
|
+
);
|
|
3910
|
+
}
|
|
3911
|
+
|
|
3912
|
+
/** @internal */
|
|
3913
|
+
export const QueryParamStatus$outboundSchema: z.ZodMiniEnum<
|
|
3914
|
+
typeof QueryParamStatus
|
|
3915
|
+
> = z.enum(QueryParamStatus);
|
|
3916
|
+
|
|
3917
|
+
/** @internal */
|
|
3918
|
+
export type ListMessagesRequest$Outbound = {
|
|
3919
|
+
status?: string | undefined;
|
|
3920
|
+
contactId?: string | undefined;
|
|
3921
|
+
campaignSlug?: string | undefined;
|
|
3922
|
+
limit: number;
|
|
3923
|
+
offset: number;
|
|
3924
|
+
};
|
|
3925
|
+
|
|
3926
|
+
/** @internal */
|
|
3927
|
+
export const ListMessagesRequest$outboundSchema: z.ZodMiniType<
|
|
3928
|
+
ListMessagesRequest$Outbound,
|
|
3929
|
+
ListMessagesRequest
|
|
3930
|
+
> = z.object({
|
|
3931
|
+
status: z.optional(QueryParamStatus$outboundSchema),
|
|
3932
|
+
contactId: z.optional(z.string()),
|
|
3933
|
+
campaignSlug: z.optional(z.string()),
|
|
3934
|
+
limit: z._default(z.int(), 50),
|
|
3935
|
+
offset: z._default(z.int(), 0),
|
|
3936
|
+
});
|
|
3937
|
+
|
|
3938
|
+
export function listMessagesRequestToJSON(
|
|
3939
|
+
listMessagesRequest: ListMessagesRequest,
|
|
3940
|
+
): string {
|
|
3941
|
+
return JSON.stringify(
|
|
3942
|
+
ListMessagesRequest$outboundSchema.parse(listMessagesRequest),
|
|
3943
|
+
);
|
|
3944
|
+
}
|
|
3945
|
+
|
|
3946
|
+
/** @internal */
|
|
3947
|
+
export const MessageStatus$inboundSchema: z.ZodMiniType<
|
|
3948
|
+
MessageStatus,
|
|
3949
|
+
unknown
|
|
3950
|
+
> = openEnums.inboundSchema(MessageStatus);
|
|
3951
|
+
|
|
3952
|
+
/** @internal */
|
|
3953
|
+
export const ListMessagesMessage$inboundSchema: z.ZodMiniType<
|
|
3954
|
+
ListMessagesMessage,
|
|
3955
|
+
unknown
|
|
3956
|
+
> = z.object({
|
|
3957
|
+
id: types.string(),
|
|
3958
|
+
contactId: types.string(),
|
|
3959
|
+
contactName: z.optional(z.nullable(types.string())),
|
|
3960
|
+
contactLinkedinUrl: z.optional(z.nullable(types.string())),
|
|
3961
|
+
message: types.string(),
|
|
3962
|
+
status: MessageStatus$inboundSchema,
|
|
3963
|
+
scheduledSendAt: types.nullable(types.string()),
|
|
3964
|
+
sentAt: types.nullable(types.string()),
|
|
3965
|
+
campaignSlug: types.nullable(types.string()),
|
|
3966
|
+
errorMessage: z.optional(z.nullable(types.string())),
|
|
3967
|
+
createdAt: types.string(),
|
|
3968
|
+
});
|
|
3969
|
+
|
|
3970
|
+
export function listMessagesMessageFromJSON(
|
|
3971
|
+
jsonString: string,
|
|
3972
|
+
): SafeParseResult<ListMessagesMessage, SDKValidationError> {
|
|
3973
|
+
return safeParse(
|
|
3974
|
+
jsonString,
|
|
3975
|
+
(x) => ListMessagesMessage$inboundSchema.parse(JSON.parse(x)),
|
|
3976
|
+
`Failed to parse 'ListMessagesMessage' from JSON`,
|
|
3977
|
+
);
|
|
3978
|
+
}
|
|
3979
|
+
|
|
3980
|
+
/** @internal */
|
|
3981
|
+
export const ListMessagesResponse$inboundSchema: z.ZodMiniType<
|
|
3982
|
+
ListMessagesResponse,
|
|
3983
|
+
unknown
|
|
3984
|
+
> = z.object({
|
|
3985
|
+
success: types.literal(true),
|
|
3986
|
+
messages: z.array(z.lazy(() => ListMessagesMessage$inboundSchema)),
|
|
3987
|
+
total: types.number(),
|
|
3988
|
+
limit: types.number(),
|
|
3989
|
+
offset: types.number(),
|
|
3990
|
+
creditsUsed: types.number(),
|
|
3991
|
+
retryAfter: types.number(),
|
|
3992
|
+
});
|
|
3993
|
+
|
|
3994
|
+
export function listMessagesResponseFromJSON(
|
|
3995
|
+
jsonString: string,
|
|
3996
|
+
): SafeParseResult<ListMessagesResponse, SDKValidationError> {
|
|
3997
|
+
return safeParse(
|
|
3998
|
+
jsonString,
|
|
3999
|
+
(x) => ListMessagesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
4000
|
+
`Failed to parse 'ListMessagesResponse' from JSON`,
|
|
4001
|
+
);
|
|
4002
|
+
}
|
|
4003
|
+
|
|
4004
|
+
/** @internal */
|
|
4005
|
+
export const CreateStatusRequest$outboundSchema: z.ZodMiniEnum<
|
|
4006
|
+
typeof CreateStatusRequest
|
|
4007
|
+
> = z.enum(CreateStatusRequest);
|
|
4008
|
+
|
|
4009
|
+
/** @internal */
|
|
4010
|
+
export type CreateRequest$Outbound = {
|
|
4011
|
+
contactId: string;
|
|
4012
|
+
message: string;
|
|
4013
|
+
status?: string | undefined;
|
|
4014
|
+
scheduledSendAt?: string | undefined;
|
|
4015
|
+
campaignSlug?: string | undefined;
|
|
4016
|
+
};
|
|
4017
|
+
|
|
4018
|
+
/** @internal */
|
|
4019
|
+
export const CreateRequest$outboundSchema: z.ZodMiniType<
|
|
4020
|
+
CreateRequest$Outbound,
|
|
4021
|
+
CreateRequest
|
|
4022
|
+
> = z.object({
|
|
4023
|
+
contactId: z.string(),
|
|
4024
|
+
message: z.string(),
|
|
4025
|
+
status: z.optional(CreateStatusRequest$outboundSchema),
|
|
4026
|
+
scheduledSendAt: z.optional(z.string()),
|
|
4027
|
+
campaignSlug: z.optional(z.string()),
|
|
4028
|
+
});
|
|
4029
|
+
|
|
4030
|
+
export function createRequestToJSON(createRequest: CreateRequest): string {
|
|
4031
|
+
return JSON.stringify(CreateRequest$outboundSchema.parse(createRequest));
|
|
4032
|
+
}
|
|
4033
|
+
|
|
4034
|
+
/** @internal */
|
|
4035
|
+
export const ScheduledMessageStatus$inboundSchema: z.ZodMiniType<
|
|
4036
|
+
ScheduledMessageStatus,
|
|
4037
|
+
unknown
|
|
4038
|
+
> = openEnums.inboundSchema(ScheduledMessageStatus);
|
|
4039
|
+
|
|
4040
|
+
/** @internal */
|
|
4041
|
+
export const ScheduledMessage$inboundSchema: z.ZodMiniType<
|
|
4042
|
+
ScheduledMessage,
|
|
4043
|
+
unknown
|
|
4044
|
+
> = z.object({
|
|
4045
|
+
id: types.string(),
|
|
4046
|
+
contactId: types.string(),
|
|
4047
|
+
contactName: z.optional(z.nullable(types.string())),
|
|
4048
|
+
contactLinkedinUrl: z.optional(z.nullable(types.string())),
|
|
4049
|
+
message: types.string(),
|
|
4050
|
+
status: ScheduledMessageStatus$inboundSchema,
|
|
4051
|
+
scheduledSendAt: types.nullable(types.string()),
|
|
4052
|
+
sentAt: types.nullable(types.string()),
|
|
4053
|
+
campaignSlug: types.nullable(types.string()),
|
|
4054
|
+
errorMessage: z.optional(z.nullable(types.string())),
|
|
4055
|
+
createdAt: types.string(),
|
|
4056
|
+
});
|
|
4057
|
+
|
|
4058
|
+
export function scheduledMessageFromJSON(
|
|
4059
|
+
jsonString: string,
|
|
4060
|
+
): SafeParseResult<ScheduledMessage, SDKValidationError> {
|
|
4061
|
+
return safeParse(
|
|
4062
|
+
jsonString,
|
|
4063
|
+
(x) => ScheduledMessage$inboundSchema.parse(JSON.parse(x)),
|
|
4064
|
+
`Failed to parse 'ScheduledMessage' from JSON`,
|
|
4065
|
+
);
|
|
4066
|
+
}
|
|
4067
|
+
|
|
4068
|
+
/** @internal */
|
|
4069
|
+
export const CreateResponse$inboundSchema: z.ZodMiniType<
|
|
4070
|
+
CreateResponse,
|
|
4071
|
+
unknown
|
|
4072
|
+
> = z.object({
|
|
4073
|
+
success: types.literal(true),
|
|
4074
|
+
scheduledMessage: z.lazy(() => ScheduledMessage$inboundSchema),
|
|
4075
|
+
creditsUsed: types.number(),
|
|
4076
|
+
retryAfter: types.number(),
|
|
4077
|
+
});
|
|
4078
|
+
|
|
4079
|
+
export function createResponseFromJSON(
|
|
4080
|
+
jsonString: string,
|
|
4081
|
+
): SafeParseResult<CreateResponse, SDKValidationError> {
|
|
4082
|
+
return safeParse(
|
|
4083
|
+
jsonString,
|
|
4084
|
+
(x) => CreateResponse$inboundSchema.parse(JSON.parse(x)),
|
|
4085
|
+
`Failed to parse 'CreateResponse' from JSON`,
|
|
4086
|
+
);
|
|
4087
|
+
}
|
|
4088
|
+
|
|
4089
|
+
/** @internal */
|
|
4090
|
+
export type BatchScheduleRequest$Outbound = {
|
|
4091
|
+
contactIds?: Array<string> | undefined;
|
|
4092
|
+
messageIds?: Array<string> | undefined;
|
|
4093
|
+
scheduledSendAt: string;
|
|
4094
|
+
};
|
|
4095
|
+
|
|
4096
|
+
/** @internal */
|
|
4097
|
+
export const BatchScheduleRequest$outboundSchema: z.ZodMiniType<
|
|
4098
|
+
BatchScheduleRequest$Outbound,
|
|
4099
|
+
BatchScheduleRequest
|
|
4100
|
+
> = z.object({
|
|
4101
|
+
contactIds: z.optional(z.array(z.string())),
|
|
4102
|
+
messageIds: z.optional(z.array(z.string())),
|
|
4103
|
+
scheduledSendAt: z.string(),
|
|
4104
|
+
});
|
|
4105
|
+
|
|
4106
|
+
export function batchScheduleRequestToJSON(
|
|
4107
|
+
batchScheduleRequest: BatchScheduleRequest,
|
|
4108
|
+
): string {
|
|
4109
|
+
return JSON.stringify(
|
|
4110
|
+
BatchScheduleRequest$outboundSchema.parse(batchScheduleRequest),
|
|
4111
|
+
);
|
|
4112
|
+
}
|
|
4113
|
+
|
|
4114
|
+
/** @internal */
|
|
4115
|
+
export const BatchScheduleResponse$inboundSchema: z.ZodMiniType<
|
|
4116
|
+
BatchScheduleResponse,
|
|
4117
|
+
unknown
|
|
4118
|
+
> = z.object({
|
|
4119
|
+
success: types.literal(true),
|
|
4120
|
+
scheduled: types.number(),
|
|
4121
|
+
scheduledSendAt: types.string(),
|
|
4122
|
+
creditsUsed: types.number(),
|
|
4123
|
+
retryAfter: types.number(),
|
|
4124
|
+
});
|
|
4125
|
+
|
|
4126
|
+
export function batchScheduleResponseFromJSON(
|
|
4127
|
+
jsonString: string,
|
|
4128
|
+
): SafeParseResult<BatchScheduleResponse, SDKValidationError> {
|
|
4129
|
+
return safeParse(
|
|
4130
|
+
jsonString,
|
|
4131
|
+
(x) => BatchScheduleResponse$inboundSchema.parse(JSON.parse(x)),
|
|
4132
|
+
`Failed to parse 'BatchScheduleResponse' from JSON`,
|
|
4133
|
+
);
|
|
4134
|
+
}
|
|
4135
|
+
|
|
4136
|
+
/** @internal */
|
|
4137
|
+
export type CancelRequest$Outbound = {
|
|
4138
|
+
messageIds?: Array<string> | undefined;
|
|
4139
|
+
contactIds?: Array<string> | undefined;
|
|
4140
|
+
};
|
|
4141
|
+
|
|
4142
|
+
/** @internal */
|
|
4143
|
+
export const CancelRequest$outboundSchema: z.ZodMiniType<
|
|
4144
|
+
CancelRequest$Outbound,
|
|
4145
|
+
CancelRequest
|
|
4146
|
+
> = z.object({
|
|
4147
|
+
messageIds: z.optional(z.array(z.string())),
|
|
4148
|
+
contactIds: z.optional(z.array(z.string())),
|
|
4149
|
+
});
|
|
4150
|
+
|
|
4151
|
+
export function cancelRequestToJSON(cancelRequest: CancelRequest): string {
|
|
4152
|
+
return JSON.stringify(CancelRequest$outboundSchema.parse(cancelRequest));
|
|
4153
|
+
}
|
|
4154
|
+
|
|
4155
|
+
/** @internal */
|
|
4156
|
+
export const CancelResponse$inboundSchema: z.ZodMiniType<
|
|
4157
|
+
CancelResponse,
|
|
4158
|
+
unknown
|
|
4159
|
+
> = z.object({
|
|
4160
|
+
success: types.literal(true),
|
|
4161
|
+
cancelled: types.number(),
|
|
4162
|
+
creditsUsed: types.number(),
|
|
4163
|
+
retryAfter: types.number(),
|
|
4164
|
+
});
|
|
4165
|
+
|
|
4166
|
+
export function cancelResponseFromJSON(
|
|
4167
|
+
jsonString: string,
|
|
4168
|
+
): SafeParseResult<CancelResponse, SDKValidationError> {
|
|
4169
|
+
return safeParse(
|
|
4170
|
+
jsonString,
|
|
4171
|
+
(x) => CancelResponse$inboundSchema.parse(JSON.parse(x)),
|
|
4172
|
+
`Failed to parse 'CancelResponse' from JSON`,
|
|
4173
|
+
);
|
|
4174
|
+
}
|
|
4175
|
+
|
|
4176
|
+
/** @internal */
|
|
4177
|
+
export type ListEntriesRequest$Outbound = {
|
|
4178
|
+
scope?: string | undefined;
|
|
4179
|
+
type?: string | undefined;
|
|
4180
|
+
};
|
|
4181
|
+
|
|
4182
|
+
/** @internal */
|
|
4183
|
+
export const ListEntriesRequest$outboundSchema: z.ZodMiniType<
|
|
4184
|
+
ListEntriesRequest$Outbound,
|
|
4185
|
+
ListEntriesRequest
|
|
4186
|
+
> = z.object({
|
|
4187
|
+
scope: z.optional(z.string()),
|
|
4188
|
+
type: z.optional(z.string()),
|
|
4189
|
+
});
|
|
4190
|
+
|
|
4191
|
+
export function listEntriesRequestToJSON(
|
|
4192
|
+
listEntriesRequest: ListEntriesRequest,
|
|
4193
|
+
): string {
|
|
4194
|
+
return JSON.stringify(
|
|
4195
|
+
ListEntriesRequest$outboundSchema.parse(listEntriesRequest),
|
|
4196
|
+
);
|
|
4197
|
+
}
|
|
4198
|
+
|
|
4199
|
+
/** @internal */
|
|
4200
|
+
export const ListEntriesEntry$inboundSchema: z.ZodMiniType<
|
|
4201
|
+
ListEntriesEntry,
|
|
4202
|
+
unknown
|
|
4203
|
+
> = z.object({
|
|
4204
|
+
id: types.string(),
|
|
4205
|
+
type: types.string(),
|
|
4206
|
+
label: types.nullable(types.string()),
|
|
4207
|
+
content: types.string(),
|
|
4208
|
+
scope: types.string(),
|
|
4209
|
+
updatedAt: types.string(),
|
|
4210
|
+
});
|
|
4211
|
+
|
|
4212
|
+
export function listEntriesEntryFromJSON(
|
|
4213
|
+
jsonString: string,
|
|
4214
|
+
): SafeParseResult<ListEntriesEntry, SDKValidationError> {
|
|
4215
|
+
return safeParse(
|
|
4216
|
+
jsonString,
|
|
4217
|
+
(x) => ListEntriesEntry$inboundSchema.parse(JSON.parse(x)),
|
|
4218
|
+
`Failed to parse 'ListEntriesEntry' from JSON`,
|
|
4219
|
+
);
|
|
4220
|
+
}
|
|
4221
|
+
|
|
4222
|
+
/** @internal */
|
|
4223
|
+
export const ListEntriesResponse$inboundSchema: z.ZodMiniType<
|
|
4224
|
+
ListEntriesResponse,
|
|
4225
|
+
unknown
|
|
4226
|
+
> = z.object({
|
|
4227
|
+
success: types.literal(true),
|
|
4228
|
+
entries: z.array(z.lazy(() => ListEntriesEntry$inboundSchema)),
|
|
4229
|
+
creditsUsed: types.number(),
|
|
4230
|
+
retryAfter: types.number(),
|
|
4231
|
+
});
|
|
4232
|
+
|
|
4233
|
+
export function listEntriesResponseFromJSON(
|
|
4234
|
+
jsonString: string,
|
|
4235
|
+
): SafeParseResult<ListEntriesResponse, SDKValidationError> {
|
|
4236
|
+
return safeParse(
|
|
4237
|
+
jsonString,
|
|
4238
|
+
(x) => ListEntriesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
4239
|
+
`Failed to parse 'ListEntriesResponse' from JSON`,
|
|
4240
|
+
);
|
|
4241
|
+
}
|
|
4242
|
+
|
|
4243
|
+
/** @internal */
|
|
4244
|
+
export type SetRequest$Outbound = {
|
|
4245
|
+
type: string;
|
|
4246
|
+
content: string;
|
|
4247
|
+
scope?: string | undefined;
|
|
4248
|
+
label?: string | undefined;
|
|
4249
|
+
};
|
|
4250
|
+
|
|
4251
|
+
/** @internal */
|
|
4252
|
+
export const SetRequest$outboundSchema: z.ZodMiniType<
|
|
4253
|
+
SetRequest$Outbound,
|
|
4254
|
+
SetRequest
|
|
4255
|
+
> = z.object({
|
|
4256
|
+
type: z.string(),
|
|
4257
|
+
content: z.string(),
|
|
4258
|
+
scope: z.optional(z.string()),
|
|
4259
|
+
label: z.optional(z.string()),
|
|
4260
|
+
});
|
|
4261
|
+
|
|
4262
|
+
export function setRequestToJSON(setRequest: SetRequest): string {
|
|
4263
|
+
return JSON.stringify(SetRequest$outboundSchema.parse(setRequest));
|
|
4264
|
+
}
|
|
4265
|
+
|
|
4266
|
+
/** @internal */
|
|
4267
|
+
export const SetEntry$inboundSchema: z.ZodMiniType<SetEntry, unknown> = z
|
|
4268
|
+
.object({
|
|
4269
|
+
id: types.string(),
|
|
4270
|
+
type: types.string(),
|
|
4271
|
+
label: types.nullable(types.string()),
|
|
4272
|
+
content: types.string(),
|
|
4273
|
+
scope: types.string(),
|
|
4274
|
+
updatedAt: types.string(),
|
|
4275
|
+
});
|
|
4276
|
+
|
|
4277
|
+
export function setEntryFromJSON(
|
|
4278
|
+
jsonString: string,
|
|
4279
|
+
): SafeParseResult<SetEntry, SDKValidationError> {
|
|
4280
|
+
return safeParse(
|
|
4281
|
+
jsonString,
|
|
4282
|
+
(x) => SetEntry$inboundSchema.parse(JSON.parse(x)),
|
|
4283
|
+
`Failed to parse 'SetEntry' from JSON`,
|
|
4284
|
+
);
|
|
4285
|
+
}
|
|
4286
|
+
|
|
4287
|
+
/** @internal */
|
|
4288
|
+
export const SetResponse$inboundSchema: z.ZodMiniType<SetResponse, unknown> = z
|
|
4289
|
+
.object({
|
|
4290
|
+
success: types.literal(true),
|
|
4291
|
+
entry: z.lazy(() => SetEntry$inboundSchema),
|
|
4292
|
+
creditsUsed: types.number(),
|
|
4293
|
+
retryAfter: types.number(),
|
|
4294
|
+
});
|
|
4295
|
+
|
|
4296
|
+
export function setResponseFromJSON(
|
|
4297
|
+
jsonString: string,
|
|
4298
|
+
): SafeParseResult<SetResponse, SDKValidationError> {
|
|
4299
|
+
return safeParse(
|
|
4300
|
+
jsonString,
|
|
4301
|
+
(x) => SetResponse$inboundSchema.parse(JSON.parse(x)),
|
|
4302
|
+
`Failed to parse 'SetResponse' from JSON`,
|
|
4303
|
+
);
|
|
4304
|
+
}
|
|
4305
|
+
|
|
4306
|
+
/** @internal */
|
|
4307
|
+
export type DeleteRequest$Outbound = {
|
|
4308
|
+
type: string;
|
|
4309
|
+
scope?: string | undefined;
|
|
4310
|
+
};
|
|
4311
|
+
|
|
4312
|
+
/** @internal */
|
|
4313
|
+
export const DeleteRequest$outboundSchema: z.ZodMiniType<
|
|
4314
|
+
DeleteRequest$Outbound,
|
|
4315
|
+
DeleteRequest
|
|
4316
|
+
> = z.object({
|
|
4317
|
+
type: z.string(),
|
|
4318
|
+
scope: z.optional(z.string()),
|
|
4319
|
+
});
|
|
4320
|
+
|
|
4321
|
+
export function deleteRequestToJSON(deleteRequest: DeleteRequest): string {
|
|
4322
|
+
return JSON.stringify(DeleteRequest$outboundSchema.parse(deleteRequest));
|
|
4323
|
+
}
|
|
4324
|
+
|
|
4325
|
+
/** @internal */
|
|
4326
|
+
export const DeleteResponse$inboundSchema: z.ZodMiniType<
|
|
4327
|
+
DeleteResponse,
|
|
4328
|
+
unknown
|
|
4329
|
+
> = z.object({
|
|
4330
|
+
success: types.literal(true),
|
|
4331
|
+
creditsUsed: types.number(),
|
|
4332
|
+
retryAfter: types.number(),
|
|
4333
|
+
});
|
|
4334
|
+
|
|
4335
|
+
export function deleteResponseFromJSON(
|
|
4336
|
+
jsonString: string,
|
|
4337
|
+
): SafeParseResult<DeleteResponse, SDKValidationError> {
|
|
4338
|
+
return safeParse(
|
|
4339
|
+
jsonString,
|
|
4340
|
+
(x) => DeleteResponse$inboundSchema.parse(JSON.parse(x)),
|
|
4341
|
+
`Failed to parse 'DeleteResponse' from JSON`,
|
|
4342
|
+
);
|
|
4343
|
+
}
|
|
4344
|
+
|
|
4345
|
+
/** @internal */
|
|
4346
|
+
export const Schedule$inboundSchema: z.ZodMiniType<Schedule, unknown> = z
|
|
4347
|
+
.object({
|
|
4348
|
+
scheduleId: types.string(),
|
|
4349
|
+
name: types.string(),
|
|
4350
|
+
cron: types.nullable(types.string()),
|
|
4351
|
+
isPaused: types.boolean(),
|
|
4352
|
+
lastRun: types.nullable(types.string()),
|
|
4353
|
+
nextRun: types.nullable(types.string()),
|
|
4354
|
+
lastStatus: types.nullable(z.any()),
|
|
4355
|
+
destination: types.string(),
|
|
4356
|
+
});
|
|
4357
|
+
|
|
4358
|
+
export function scheduleFromJSON(
|
|
4359
|
+
jsonString: string,
|
|
4360
|
+
): SafeParseResult<Schedule, SDKValidationError> {
|
|
4361
|
+
return safeParse(
|
|
4362
|
+
jsonString,
|
|
4363
|
+
(x) => Schedule$inboundSchema.parse(JSON.parse(x)),
|
|
4364
|
+
`Failed to parse 'Schedule' from JSON`,
|
|
4365
|
+
);
|
|
4366
|
+
}
|
|
4367
|
+
|
|
4368
|
+
/** @internal */
|
|
4369
|
+
export const ListSchedulesResponse$inboundSchema: z.ZodMiniType<
|
|
4370
|
+
ListSchedulesResponse,
|
|
4371
|
+
unknown
|
|
4372
|
+
> = z.object({
|
|
4373
|
+
success: types.literal(true),
|
|
4374
|
+
schedules: z.array(z.lazy(() => Schedule$inboundSchema)),
|
|
4375
|
+
creditsUsed: types.number(),
|
|
4376
|
+
retryAfter: types.number(),
|
|
4377
|
+
});
|
|
4378
|
+
|
|
4379
|
+
export function listSchedulesResponseFromJSON(
|
|
4380
|
+
jsonString: string,
|
|
4381
|
+
): SafeParseResult<ListSchedulesResponse, SDKValidationError> {
|
|
4382
|
+
return safeParse(
|
|
4383
|
+
jsonString,
|
|
4384
|
+
(x) => ListSchedulesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
4385
|
+
`Failed to parse 'ListSchedulesResponse' from JSON`,
|
|
4386
|
+
);
|
|
4387
|
+
}
|
|
4388
|
+
|
|
4389
|
+
/** @internal */
|
|
4390
|
+
export const UpdateScheduleAction$outboundSchema: z.ZodMiniEnum<
|
|
4391
|
+
typeof UpdateScheduleAction
|
|
4392
|
+
> = z.enum(UpdateScheduleAction);
|
|
4393
|
+
|
|
4394
|
+
/** @internal */
|
|
4395
|
+
export type UpdateScheduleRequestBody$Outbound = {
|
|
4396
|
+
action: string;
|
|
4397
|
+
};
|
|
4398
|
+
|
|
4399
|
+
/** @internal */
|
|
4400
|
+
export const UpdateScheduleRequestBody$outboundSchema: z.ZodMiniType<
|
|
4401
|
+
UpdateScheduleRequestBody$Outbound,
|
|
4402
|
+
UpdateScheduleRequestBody
|
|
4403
|
+
> = z.object({
|
|
4404
|
+
action: UpdateScheduleAction$outboundSchema,
|
|
4405
|
+
});
|
|
4406
|
+
|
|
4407
|
+
export function updateScheduleRequestBodyToJSON(
|
|
4408
|
+
updateScheduleRequestBody: UpdateScheduleRequestBody,
|
|
4409
|
+
): string {
|
|
4410
|
+
return JSON.stringify(
|
|
4411
|
+
UpdateScheduleRequestBody$outboundSchema.parse(updateScheduleRequestBody),
|
|
4412
|
+
);
|
|
4413
|
+
}
|
|
4414
|
+
|
|
4415
|
+
/** @internal */
|
|
4416
|
+
export type UpdateScheduleRequest$Outbound = {
|
|
4417
|
+
scheduleId: string;
|
|
4418
|
+
body: UpdateScheduleRequestBody$Outbound;
|
|
4419
|
+
};
|
|
4420
|
+
|
|
4421
|
+
/** @internal */
|
|
4422
|
+
export const UpdateScheduleRequest$outboundSchema: z.ZodMiniType<
|
|
4423
|
+
UpdateScheduleRequest$Outbound,
|
|
4424
|
+
UpdateScheduleRequest
|
|
4425
|
+
> = z.object({
|
|
4426
|
+
scheduleId: z.string(),
|
|
4427
|
+
body: z.lazy(() => UpdateScheduleRequestBody$outboundSchema),
|
|
4428
|
+
});
|
|
4429
|
+
|
|
4430
|
+
export function updateScheduleRequestToJSON(
|
|
4431
|
+
updateScheduleRequest: UpdateScheduleRequest,
|
|
4432
|
+
): string {
|
|
4433
|
+
return JSON.stringify(
|
|
4434
|
+
UpdateScheduleRequest$outboundSchema.parse(updateScheduleRequest),
|
|
4435
|
+
);
|
|
4436
|
+
}
|
|
4437
|
+
|
|
4438
|
+
/** @internal */
|
|
4439
|
+
export const UpdateScheduleResponse$inboundSchema: z.ZodMiniType<
|
|
4440
|
+
UpdateScheduleResponse,
|
|
4441
|
+
unknown
|
|
4442
|
+
> = z.object({
|
|
4443
|
+
success: types.literal(true),
|
|
4444
|
+
creditsUsed: types.number(),
|
|
4445
|
+
retryAfter: types.number(),
|
|
4446
|
+
});
|
|
4447
|
+
|
|
4448
|
+
export function updateScheduleResponseFromJSON(
|
|
4449
|
+
jsonString: string,
|
|
4450
|
+
): SafeParseResult<UpdateScheduleResponse, SDKValidationError> {
|
|
4451
|
+
return safeParse(
|
|
4452
|
+
jsonString,
|
|
4453
|
+
(x) => UpdateScheduleResponse$inboundSchema.parse(JSON.parse(x)),
|
|
4454
|
+
`Failed to parse 'UpdateScheduleResponse' from JSON`,
|
|
4455
|
+
);
|
|
4456
|
+
}
|