bereach 1.3.3 → 2.1.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +142 -42
- 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 +4 -2
- package/esm/funcs/actions-connect-profile.js.map +1 -1
- 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 +3 -1
- package/esm/funcs/actions-follow-company.js.map +1 -1
- 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 +3 -1
- package/esm/funcs/actions-list-sent-invitations.js.map +1 -1
- 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 +4 -2
- package/esm/funcs/actions-send-message.js.map +1 -1
- 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 +3 -1
- package/esm/funcs/campaigns-filter.js.map +1 -1
- package/esm/funcs/{campaigns-get-stats.d.ts → campaigns-get-campaign-stats.d.ts} +2 -2
- package/esm/funcs/campaigns-get-campaign-stats.d.ts.map +1 -0
- package/esm/funcs/{campaigns-get-stats.js → campaigns-get-campaign-stats.js} +8 -7
- package/esm/funcs/campaigns-get-campaign-stats.js.map +1 -0
- 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 +3 -1
- package/esm/funcs/campaigns-get-status.js.map +1 -1
- 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 +3 -1
- 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 +3 -1
- 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 +4 -9
- package/esm/funcs/chat-find-conversation.js.map +1 -1
- 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 +3 -1
- package/esm/funcs/chat-unreact.js.map +1 -1
- 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 +3 -1
- 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 +3 -1
- package/esm/funcs/company-pages-get-permissions.js.map +1 -1
- package/esm/funcs/company-pages-get-posts.d.ts +1 -1
- package/esm/funcs/company-pages-get-posts.d.ts.map +1 -1
- package/esm/funcs/company-pages-get-posts.js +3 -1
- package/esm/funcs/company-pages-get-posts.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 +3 -1
- package/esm/funcs/company-pages-list.js.map +1 -1
- package/esm/funcs/contacts-add-campaign-contacts.d.ts +18 -0
- package/esm/funcs/contacts-add-campaign-contacts.d.ts.map +1 -0
- package/esm/funcs/contacts-add-campaign-contacts.js +103 -0
- package/esm/funcs/contacts-add-campaign-contacts.js.map +1 -0
- package/esm/funcs/contacts-add-contact-activities.d.ts +18 -0
- package/esm/funcs/contacts-add-contact-activities.d.ts.map +1 -0
- package/esm/funcs/contacts-add-contact-activities.js +103 -0
- package/esm/funcs/contacts-add-contact-activities.js.map +1 -0
- package/esm/funcs/contacts-bulk-update-contacts.d.ts +18 -0
- package/esm/funcs/contacts-bulk-update-contacts.d.ts.map +1 -0
- package/esm/funcs/contacts-bulk-update-contacts.js +97 -0
- package/esm/funcs/contacts-bulk-update-contacts.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-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-contact-by-url.d.ts +18 -0
- package/esm/funcs/contacts-get-contact-by-url.d.ts.map +1 -0
- package/esm/funcs/contacts-get-contact-by-url.js +100 -0
- package/esm/funcs/contacts-get-contact-by-url.js.map +1 -0
- package/esm/funcs/contacts-get-contact-stats.d.ts +18 -0
- package/esm/funcs/contacts-get-contact-stats.d.ts.map +1 -0
- package/esm/funcs/contacts-get-contact-stats.js +100 -0
- package/esm/funcs/contacts-get-contact-stats.js.map +1 -0
- package/esm/funcs/contacts-get-contact.d.ts +18 -0
- package/esm/funcs/contacts-get-contact.d.ts.map +1 -0
- package/esm/funcs/contacts-get-contact.js +102 -0
- package/esm/funcs/contacts-get-contact.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 +86 -0
- package/esm/funcs/contacts-list-agent-states.js.map +1 -0
- package/esm/funcs/contacts-list-campaign-contacts.d.ts +18 -0
- package/esm/funcs/contacts-list-campaign-contacts.d.ts.map +1 -0
- package/esm/funcs/contacts-list-campaign-contacts.js +111 -0
- package/esm/funcs/contacts-list-campaign-contacts.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-list-contact-activities.d.ts +18 -0
- package/esm/funcs/contacts-list-contact-activities.d.ts.map +1 -0
- package/esm/funcs/contacts-list-contact-activities.js +108 -0
- package/esm/funcs/contacts-list-contact-activities.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-contacts.d.ts +18 -0
- package/esm/funcs/contacts-search-contacts.d.ts.map +1 -0
- package/esm/funcs/contacts-search-contacts.js +112 -0
- package/esm/funcs/contacts-search-contacts.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-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-contact.d.ts +18 -0
- package/esm/funcs/contacts-update-contact.d.ts.map +1 -0
- package/esm/funcs/contacts-update-contact.js +103 -0
- package/esm/funcs/contacts-update-contact.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 +21 -3
- package/esm/funcs/contacts-upsert.js.map +1 -1
- package/esm/funcs/context-delete-context.d.ts +18 -0
- package/esm/funcs/context-delete-context.d.ts.map +1 -0
- package/esm/funcs/context-delete-context.js +101 -0
- package/esm/funcs/context-delete-context.js.map +1 -0
- package/esm/funcs/context-list-context.d.ts +18 -0
- package/esm/funcs/context-list-context.d.ts.map +1 -0
- package/esm/funcs/context-list-context.js +101 -0
- package/esm/funcs/context-list-context.js.map +1 -0
- package/esm/funcs/context-set-context.d.ts +18 -0
- package/esm/funcs/{campaigns-get-stats.d.ts.map → context-set-context.d.ts.map} +1 -1
- package/esm/funcs/context-set-context.js +97 -0
- package/esm/funcs/context-set-context.js.map +1 -0
- package/esm/funcs/cron-list-cron-schedules.d.ts +18 -0
- package/esm/funcs/cron-list-cron-schedules.d.ts.map +1 -0
- package/esm/funcs/cron-list-cron-schedules.js +86 -0
- package/esm/funcs/cron-list-cron-schedules.js.map +1 -0
- package/esm/funcs/cron-update-cron-schedule.d.ts +18 -0
- package/esm/funcs/{chat-search-conversations.d.ts.map → cron-update-cron-schedule.d.ts.map} +1 -1
- package/esm/funcs/cron-update-cron-schedule.js +103 -0
- package/esm/funcs/cron-update-cron-schedule.js.map +1 -0
- package/esm/funcs/linked-in-actions-create-comment.d.ts +1 -1
- package/esm/funcs/linked-in-actions-create-comment.d.ts.map +1 -1
- package/esm/funcs/linked-in-actions-create-comment.js +3 -1
- package/esm/funcs/linked-in-actions-create-comment.js.map +1 -1
- package/esm/funcs/linked-in-actions-decline-invitation.d.ts +1 -1
- package/esm/funcs/linked-in-actions-decline-invitation.d.ts.map +1 -1
- package/esm/funcs/linked-in-actions-decline-invitation.js +3 -1
- package/esm/funcs/linked-in-actions-decline-invitation.js.map +1 -1
- package/esm/funcs/linked-in-actions-like-comment.d.ts +1 -1
- package/esm/funcs/linked-in-actions-like-comment.d.ts.map +1 -1
- package/esm/funcs/linked-in-actions-like-comment.js +3 -1
- package/esm/funcs/linked-in-actions-like-comment.js.map +1 -1
- package/esm/funcs/linked-in-actions-publish-post.d.ts +1 -1
- package/esm/funcs/linked-in-actions-publish-post.d.ts.map +1 -1
- package/esm/funcs/linked-in-actions-publish-post.js +3 -1
- package/esm/funcs/linked-in-actions-publish-post.js.map +1 -1
- package/esm/funcs/linked-in-actions-save-post.d.ts +1 -1
- package/esm/funcs/linked-in-actions-save-post.d.ts.map +1 -1
- package/esm/funcs/linked-in-actions-save-post.js +3 -1
- package/esm/funcs/linked-in-actions-save-post.js.map +1 -1
- package/esm/funcs/linked-in-actions-unfollow-profile.d.ts +1 -1
- package/esm/funcs/linked-in-actions-unfollow-profile.d.ts.map +1 -1
- package/esm/funcs/linked-in-actions-unfollow-profile.js +3 -1
- package/esm/funcs/linked-in-actions-unfollow-profile.js.map +1 -1
- package/esm/funcs/linked-in-chat-get-conversation-messages.d.ts +22 -0
- package/esm/funcs/linked-in-chat-get-conversation-messages.d.ts.map +1 -0
- package/esm/funcs/{linkedin-chat-get-messages.js → linked-in-chat-get-conversation-messages.js} +15 -9
- package/esm/funcs/linked-in-chat-get-conversation-messages.js.map +1 -0
- package/esm/funcs/{linkedin-chat-get-unread-count.d.ts → linked-in-chat-get-unread-count.d.ts} +2 -2
- package/esm/funcs/linked-in-chat-get-unread-count.d.ts.map +1 -0
- package/esm/funcs/{linkedin-chat-get-unread-count.js → linked-in-chat-get-unread-count.js} +8 -7
- package/esm/funcs/linked-in-chat-get-unread-count.js.map +1 -0
- package/esm/funcs/linked-in-chat-list-archived-conversations.d.ts +18 -0
- package/esm/funcs/linked-in-chat-list-archived-conversations.d.ts.map +1 -0
- package/esm/funcs/{linkedin-chat-list-archived.js → linked-in-chat-list-archived-conversations.js} +13 -10
- package/esm/funcs/linked-in-chat-list-archived-conversations.js.map +1 -0
- package/esm/funcs/linked-in-chat-list-starred-conversations.d.ts +18 -0
- package/esm/funcs/linked-in-chat-list-starred-conversations.d.ts.map +1 -0
- package/esm/funcs/{linked-in-chat-list-starred.js → linked-in-chat-list-starred-conversations.js} +13 -10
- package/esm/funcs/linked-in-chat-list-starred-conversations.js.map +1 -0
- package/esm/funcs/linked-in-chat-mark-seen.d.ts +1 -1
- package/esm/funcs/linked-in-chat-mark-seen.d.ts.map +1 -1
- package/esm/funcs/linked-in-chat-mark-seen.js +3 -1
- package/esm/funcs/linked-in-chat-mark-seen.js.map +1 -1
- package/esm/funcs/linked-in-chat-search-linked-in-conversations.d.ts +18 -0
- package/esm/funcs/linked-in-chat-search-linked-in-conversations.d.ts.map +1 -0
- package/esm/funcs/{chat-search-conversations.js → linked-in-chat-search-linked-in-conversations.js} +14 -8
- package/esm/funcs/linked-in-chat-search-linked-in-conversations.js.map +1 -0
- package/esm/funcs/linked-in-chat-star.d.ts +1 -1
- package/esm/funcs/linked-in-chat-star.d.ts.map +1 -1
- package/esm/funcs/linked-in-chat-star.js +3 -1
- package/esm/funcs/linked-in-chat-star.js.map +1 -1
- package/esm/funcs/linked-in-chat-unarchive.d.ts +1 -1
- package/esm/funcs/linked-in-chat-unarchive.d.ts.map +1 -1
- package/esm/funcs/linked-in-chat-unarchive.js +3 -1
- package/esm/funcs/linked-in-chat-unarchive.js.map +1 -1
- package/esm/funcs/linked-in-chat-unstar.d.ts +1 -1
- package/esm/funcs/linked-in-chat-unstar.d.ts.map +1 -1
- package/esm/funcs/linked-in-chat-unstar.js +3 -1
- package/esm/funcs/linked-in-chat-unstar.js.map +1 -1
- package/esm/funcs/linked-in-scrapers-collect-comment-replies.d.ts +2 -2
- package/esm/funcs/linked-in-scrapers-collect-comment-replies.d.ts.map +1 -1
- package/esm/funcs/linked-in-scrapers-collect-comment-replies.js +4 -2
- package/esm/funcs/linked-in-scrapers-collect-comment-replies.js.map +1 -1
- package/esm/funcs/linked-in-scrapers-get-feed.d.ts +1 -1
- package/esm/funcs/linked-in-scrapers-get-feed.d.ts.map +1 -1
- package/esm/funcs/linked-in-scrapers-get-feed.js +3 -1
- package/esm/funcs/linked-in-scrapers-get-feed.js.map +1 -1
- package/esm/funcs/{linked-in-search-resolve-parameters.d.ts → linked-in-search-resolve-linked-in-search-parameters.d.ts} +6 -3
- package/esm/funcs/linked-in-search-resolve-linked-in-search-parameters.d.ts.map +1 -0
- package/esm/funcs/{linked-in-search-resolve-parameters.js → linked-in-search-resolve-linked-in-search-parameters.js} +18 -8
- package/esm/funcs/linked-in-search-resolve-linked-in-search-parameters.js.map +1 -0
- package/esm/funcs/linked-in-search-search-companies.d.ts +1 -1
- package/esm/funcs/linked-in-search-search-companies.d.ts.map +1 -1
- package/esm/funcs/linked-in-search-search-companies.js +3 -1
- package/esm/funcs/linked-in-search-search-companies.js.map +1 -1
- package/esm/funcs/linked-in-search-search.d.ts +1 -1
- package/esm/funcs/linked-in-search-search.d.ts.map +1 -1
- package/esm/funcs/linked-in-search-search.js +3 -1
- package/esm/funcs/linked-in-search-search.js.map +1 -1
- package/esm/funcs/linkedin-actions-accept-invitation.d.ts +1 -1
- package/esm/funcs/linkedin-actions-accept-invitation.d.ts.map +1 -1
- package/esm/funcs/linkedin-actions-accept-invitation.js +3 -1
- package/esm/funcs/linkedin-actions-accept-invitation.js.map +1 -1
- package/esm/funcs/linkedin-actions-edit-comment.d.ts +1 -1
- package/esm/funcs/linkedin-actions-edit-comment.d.ts.map +1 -1
- package/esm/funcs/linkedin-actions-edit-comment.js +3 -1
- package/esm/funcs/linkedin-actions-edit-comment.js.map +1 -1
- package/esm/funcs/linkedin-actions-edit-post.d.ts +1 -1
- package/esm/funcs/linkedin-actions-edit-post.d.ts.map +1 -1
- package/esm/funcs/linkedin-actions-edit-post.js +3 -1
- package/esm/funcs/linkedin-actions-edit-post.js.map +1 -1
- package/esm/funcs/linkedin-actions-follow-profile.d.ts +1 -1
- package/esm/funcs/linkedin-actions-follow-profile.d.ts.map +1 -1
- package/esm/funcs/linkedin-actions-follow-profile.js +3 -1
- package/esm/funcs/linkedin-actions-follow-profile.js.map +1 -1
- package/esm/funcs/linkedin-actions-like-post.d.ts +1 -1
- package/esm/funcs/linkedin-actions-like-post.d.ts.map +1 -1
- package/esm/funcs/linkedin-actions-like-post.js +3 -1
- package/esm/funcs/linkedin-actions-like-post.js.map +1 -1
- package/esm/funcs/linkedin-actions-list-invitations.d.ts +1 -1
- package/esm/funcs/linkedin-actions-list-invitations.d.ts.map +1 -1
- package/esm/funcs/linkedin-actions-list-invitations.js +3 -1
- package/esm/funcs/linkedin-actions-list-invitations.js.map +1 -1
- package/esm/funcs/linkedin-actions-reply-to-comment.d.ts +1 -1
- package/esm/funcs/linkedin-actions-reply-to-comment.d.ts.map +1 -1
- package/esm/funcs/linkedin-actions-reply-to-comment.js +3 -1
- package/esm/funcs/linkedin-actions-reply-to-comment.js.map +1 -1
- package/esm/funcs/linkedin-actions-repost-post.d.ts +2 -2
- package/esm/funcs/linkedin-actions-repost-post.d.ts.map +1 -1
- package/esm/funcs/linkedin-actions-repost-post.js +4 -2
- package/esm/funcs/linkedin-actions-repost-post.js.map +1 -1
- package/esm/funcs/linkedin-actions-unfollow-company.d.ts +1 -1
- package/esm/funcs/linkedin-actions-unfollow-company.d.ts.map +1 -1
- package/esm/funcs/linkedin-actions-unfollow-company.js +3 -1
- package/esm/funcs/linkedin-actions-unfollow-company.js.map +1 -1
- package/esm/funcs/linkedin-actions-unlike-comment.d.ts +1 -1
- package/esm/funcs/linkedin-actions-unlike-comment.d.ts.map +1 -1
- package/esm/funcs/linkedin-actions-unlike-comment.js +3 -1
- package/esm/funcs/linkedin-actions-unlike-comment.js.map +1 -1
- package/esm/funcs/linkedin-actions-unlike-post.d.ts +1 -1
- package/esm/funcs/linkedin-actions-unlike-post.d.ts.map +1 -1
- package/esm/funcs/linkedin-actions-unlike-post.js +3 -1
- package/esm/funcs/linkedin-actions-unlike-post.js.map +1 -1
- package/esm/funcs/linkedin-actions-unsave-post.d.ts +1 -1
- package/esm/funcs/linkedin-actions-unsave-post.d.ts.map +1 -1
- package/esm/funcs/linkedin-actions-unsave-post.js +3 -1
- package/esm/funcs/linkedin-actions-unsave-post.js.map +1 -1
- package/esm/funcs/linkedin-actions-withdraw-invitation.d.ts +1 -1
- package/esm/funcs/linkedin-actions-withdraw-invitation.d.ts.map +1 -1
- package/esm/funcs/linkedin-actions-withdraw-invitation.js +3 -1
- package/esm/funcs/linkedin-actions-withdraw-invitation.js.map +1 -1
- package/esm/funcs/linkedin-chat-list-inbox-conversations.d.ts +2 -2
- package/esm/funcs/linkedin-chat-list-inbox-conversations.d.ts.map +1 -1
- package/esm/funcs/linkedin-chat-list-inbox-conversations.js +8 -4
- package/esm/funcs/linkedin-chat-list-inbox-conversations.js.map +1 -1
- package/esm/funcs/linkedin-chat-mark-all-read.d.ts +1 -1
- package/esm/funcs/linkedin-chat-mark-all-read.d.ts.map +1 -1
- package/esm/funcs/linkedin-chat-mark-all-read.js +3 -1
- package/esm/funcs/linkedin-chat-mark-all-read.js.map +1 -1
- package/esm/funcs/linkedin-chat-react.d.ts +1 -1
- package/esm/funcs/linkedin-chat-react.d.ts.map +1 -1
- package/esm/funcs/linkedin-chat-react.js +3 -1
- package/esm/funcs/linkedin-chat-react.js.map +1 -1
- package/esm/funcs/linkedin-chat-send-typing-indicator.d.ts +1 -1
- package/esm/funcs/linkedin-chat-send-typing-indicator.d.ts.map +1 -1
- package/esm/funcs/linkedin-chat-send-typing-indicator.js +3 -1
- package/esm/funcs/linkedin-chat-send-typing-indicator.js.map +1 -1
- package/esm/funcs/linkedin-scrapers-collect-comments.d.ts +2 -2
- package/esm/funcs/linkedin-scrapers-collect-comments.d.ts.map +1 -1
- package/esm/funcs/linkedin-scrapers-collect-comments.js +4 -2
- package/esm/funcs/linkedin-scrapers-collect-comments.js.map +1 -1
- package/esm/funcs/linkedin-scrapers-collect-hashtag-posts.d.ts +1 -1
- package/esm/funcs/linkedin-scrapers-collect-hashtag-posts.d.ts.map +1 -1
- package/esm/funcs/linkedin-scrapers-collect-hashtag-posts.js +3 -1
- package/esm/funcs/linkedin-scrapers-collect-hashtag-posts.js.map +1 -1
- package/esm/funcs/linkedin-scrapers-collect-likes.d.ts +2 -2
- package/esm/funcs/linkedin-scrapers-collect-likes.d.ts.map +1 -1
- package/esm/funcs/linkedin-scrapers-collect-likes.js +4 -2
- package/esm/funcs/linkedin-scrapers-collect-likes.js.map +1 -1
- package/esm/funcs/linkedin-scrapers-list-saved-posts.d.ts +1 -1
- package/esm/funcs/linkedin-scrapers-list-saved-posts.d.ts.map +1 -1
- package/esm/funcs/linkedin-scrapers-list-saved-posts.js +3 -1
- package/esm/funcs/linkedin-scrapers-list-saved-posts.js.map +1 -1
- package/esm/funcs/linkedin-scrapers-visit-company.d.ts +1 -1
- package/esm/funcs/linkedin-scrapers-visit-company.d.ts.map +1 -1
- package/esm/funcs/linkedin-scrapers-visit-company.js +3 -1
- package/esm/funcs/linkedin-scrapers-visit-company.js.map +1 -1
- package/esm/funcs/linkedin-search-search-by-url.d.ts +1 -1
- package/esm/funcs/linkedin-search-search-by-url.d.ts.map +1 -1
- package/esm/funcs/linkedin-search-search-by-url.js +3 -1
- package/esm/funcs/linkedin-search-search-by-url.js.map +1 -1
- package/esm/funcs/linkedin-search-search-jobs.d.ts +1 -1
- package/esm/funcs/linkedin-search-search-jobs.d.ts.map +1 -1
- package/esm/funcs/linkedin-search-search-jobs.js +3 -1
- package/esm/funcs/linkedin-search-search-jobs.js.map +1 -1
- package/esm/funcs/linkedin-search-search-people.d.ts +1 -1
- package/esm/funcs/linkedin-search-search-people.d.ts.map +1 -1
- package/esm/funcs/linkedin-search-search-people.js +3 -1
- package/esm/funcs/linkedin-search-search-people.js.map +1 -1
- package/esm/funcs/linkedin-search-search-posts.d.ts +1 -1
- package/esm/funcs/linkedin-search-search-posts.d.ts.map +1 -1
- package/esm/funcs/linkedin-search-search-posts.js +3 -1
- package/esm/funcs/linkedin-search-search-posts.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 +3 -1
- 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 +3 -1
- package/esm/funcs/profile-get-followers.js.map +1 -1
- package/esm/funcs/profile-get-linked-in-connections.d.ts +18 -0
- package/esm/funcs/profile-get-linked-in-connections.d.ts.map +1 -0
- package/esm/funcs/profile-get-linked-in-connections.js +101 -0
- package/esm/funcs/profile-get-linked-in-connections.js.map +1 -0
- package/esm/funcs/{profile-get-credits.d.ts → profile-get-my-credits.d.ts} +2 -2
- package/esm/funcs/profile-get-my-credits.d.ts.map +1 -0
- package/esm/funcs/{profile-get-credits.js → profile-get-my-credits.js} +6 -4
- package/esm/funcs/profile-get-my-credits.js.map +1 -0
- package/esm/funcs/{profile-get-limits.d.ts → profile-get-my-limits.d.ts} +2 -2
- package/esm/funcs/{profile-list-accounts.d.ts.map → profile-get-my-limits.d.ts.map} +1 -1
- package/esm/funcs/{profile-get-limits.js → profile-get-my-limits.js} +6 -4
- package/esm/funcs/profile-get-my-limits.js.map +1 -0
- package/esm/funcs/{profile-get.d.ts → profile-get-my-linked-in-profile.d.ts} +2 -2
- package/esm/funcs/profile-get-my-linked-in-profile.d.ts.map +1 -0
- package/esm/funcs/{profile-get.js → profile-get-my-linked-in-profile.js} +6 -4
- package/esm/funcs/profile-get-my-linked-in-profile.js.map +1 -0
- 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 +4 -2
- package/esm/funcs/profile-get-post-analytics.js.map +1 -1
- package/esm/funcs/profile-get-posts.d.ts +1 -1
- package/esm/funcs/profile-get-posts.d.ts.map +1 -1
- package/esm/funcs/profile-get-posts.js +3 -1
- package/esm/funcs/profile-get-posts.js.map +1 -1
- package/esm/funcs/profile-get-profile-views.d.ts +1 -1
- package/esm/funcs/profile-get-profile-views.d.ts.map +1 -1
- package/esm/funcs/profile-get-profile-views.js +3 -1
- package/esm/funcs/profile-get-profile-views.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 +3 -1
- package/esm/funcs/profile-get-search-appearances.js.map +1 -1
- package/esm/funcs/{profile-list-accounts.d.ts → profile-list-linked-in-accounts.d.ts} +2 -2
- package/esm/funcs/profile-list-linked-in-accounts.d.ts.map +1 -0
- package/esm/funcs/{profile-list-accounts.js → profile-list-linked-in-accounts.js} +6 -4
- package/esm/funcs/profile-list-linked-in-accounts.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 +3 -1
- package/esm/funcs/profile-refresh.js.map +1 -1
- package/esm/funcs/profile-switch-linked-in-account.d.ts +18 -0
- package/esm/funcs/profile-switch-linked-in-account.d.ts.map +1 -0
- package/esm/funcs/profile-switch-linked-in-account.js +97 -0
- package/esm/funcs/profile-switch-linked-in-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 +3 -1
- package/esm/funcs/profile-update-account.js.map +1 -1
- package/esm/funcs/sales-nav-search-people.d.ts +1 -1
- package/esm/funcs/sales-nav-search-people.d.ts.map +1 -1
- package/esm/funcs/sales-nav-search-people.js +3 -1
- package/esm/funcs/sales-nav-search-people.js.map +1 -1
- package/esm/funcs/sales-navigator-search-search-companies.d.ts +1 -1
- package/esm/funcs/sales-navigator-search-search-companies.d.ts.map +1 -1
- package/esm/funcs/sales-navigator-search-search-companies.js +3 -1
- package/esm/funcs/sales-navigator-search-search-companies.js.map +1 -1
- package/esm/funcs/sales-navigator-search-search.d.ts +1 -1
- package/esm/funcs/sales-navigator-search-search.d.ts.map +1 -1
- package/esm/funcs/sales-navigator-search-search.js +3 -1
- package/esm/funcs/sales-navigator-search-search.js.map +1 -1
- package/esm/funcs/scheduled-messages-batch-schedule-messages.d.ts +18 -0
- package/esm/funcs/scheduled-messages-batch-schedule-messages.d.ts.map +1 -0
- package/esm/funcs/scheduled-messages-batch-schedule-messages.js +97 -0
- package/esm/funcs/scheduled-messages-batch-schedule-messages.js.map +1 -0
- package/esm/funcs/scheduled-messages-cancel-scheduled-messages.d.ts +18 -0
- package/esm/funcs/scheduled-messages-cancel-scheduled-messages.d.ts.map +1 -0
- package/esm/funcs/scheduled-messages-cancel-scheduled-messages.js +97 -0
- package/esm/funcs/scheduled-messages-cancel-scheduled-messages.js.map +1 -0
- package/esm/funcs/{chat-search-conversations.d.ts → scheduled-messages-create-scheduled-message.d.ts} +4 -4
- package/esm/funcs/scheduled-messages-create-scheduled-message.d.ts.map +1 -0
- package/esm/funcs/scheduled-messages-create-scheduled-message.js +97 -0
- package/esm/funcs/scheduled-messages-create-scheduled-message.js.map +1 -0
- package/esm/funcs/{linkedin-chat-list-archived.d.ts → scheduled-messages-list-scheduled-messages.d.ts} +4 -4
- package/esm/funcs/scheduled-messages-list-scheduled-messages.d.ts.map +1 -0
- package/esm/funcs/scheduled-messages-list-scheduled-messages.js +104 -0
- package/esm/funcs/scheduled-messages-list-scheduled-messages.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 +4 -2
- package/esm/funcs/scrapers-collect-posts.js.map +1 -1
- 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 +6 -2
- package/esm/funcs/scrapers-visit-profile.js.map +1 -1
- package/esm/lib/config.d.ts +4 -4
- package/esm/lib/config.d.ts.map +1 -1
- package/esm/lib/config.js +7 -3
- package/esm/lib/config.js.map +1 -1
- package/esm/models/errors/collect-linked-in-likes.d.ts +46 -0
- package/esm/models/errors/collect-linked-in-likes.d.ts.map +1 -1
- package/esm/models/errors/collect-linked-in-likes.js +66 -0
- package/esm/models/errors/collect-linked-in-likes.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/{scraping-weekly.d.ts → refresh-my-linked-in-profile-type.d.ts} +405 -620
- package/esm/models/operations/refresh-my-linked-in-profile-type.d.ts.map +1 -0
- package/esm/models/operations/{scraping-weekly.js → refresh-my-linked-in-profile-type.js} +270 -302
- package/esm/models/operations/refresh-my-linked-in-profile-type.js.map +1 -0
- package/esm/models/operations/{search-linked-in-by-url-type-post.d.ts → search-linked-in-jobs-experience-level.d.ts} +305 -255
- package/esm/models/operations/search-linked-in-jobs-experience-level.d.ts.map +1 -0
- package/esm/models/operations/{search-linked-in-by-url-type-post.js → search-linked-in-jobs-experience-level.js} +211 -178
- package/esm/models/operations/search-linked-in-jobs-experience-level.js.map +1 -0
- package/esm/models/operations/{get-campaign-stats-response.d.ts → update-contact-outreach-status.d.ts} +1520 -386
- package/esm/models/operations/update-contact-outreach-status.d.ts.map +1 -0
- package/esm/models/operations/{get-campaign-stats-response.js → update-contact-outreach-status.js} +923 -249
- package/esm/models/operations/update-contact-outreach-status.js.map +1 -0
- package/esm/models/operations/update-cron-schedule-response.d.ts +1820 -0
- package/esm/models/operations/update-cron-schedule-response.d.ts.map +1 -0
- package/esm/models/operations/update-cron-schedule-response.js +1194 -0
- package/esm/models/operations/update-cron-schedule-response.js.map +1 -0
- package/esm/sdk/actions.d.ts +2 -2
- package/esm/sdk/actions.js +2 -2
- package/esm/sdk/campaigns.d.ts +1 -1
- package/esm/sdk/campaigns.d.ts.map +1 -1
- package/esm/sdk/campaigns.js +3 -3
- package/esm/sdk/campaigns.js.map +1 -1
- package/esm/sdk/chat.d.ts +1 -15
- package/esm/sdk/chat.d.ts.map +1 -1
- package/esm/sdk/chat.js +1 -18
- package/esm/sdk/chat.js.map +1 -1
- package/esm/sdk/contacts.d.ts +127 -1
- package/esm/sdk/contacts.d.ts.map +1 -1
- package/esm/sdk/contacts.js +181 -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/linked-in-chat-2.d.ts +39 -7
- package/esm/sdk/linked-in-chat-2.d.ts.map +1 -1
- package/esm/sdk/linked-in-chat-2.js +54 -10
- package/esm/sdk/linked-in-chat-2.js.map +1 -1
- package/esm/sdk/linked-in-scrapers-2.d.ts +1 -1
- package/esm/sdk/linked-in-scrapers-2.js +1 -1
- package/esm/sdk/linked-in-search-1.d.ts +5 -2
- package/esm/sdk/linked-in-search-1.d.ts.map +1 -1
- package/esm/sdk/linked-in-search-1.js +7 -4
- package/esm/sdk/linked-in-search-1.js.map +1 -1
- package/esm/sdk/linkedin-actions-1.d.ts +1 -1
- package/esm/sdk/linkedin-actions-1.js +1 -1
- package/esm/sdk/linkedin-chat-1.d.ts +2 -27
- package/esm/sdk/linkedin-chat-1.d.ts.map +1 -1
- package/esm/sdk/linkedin-chat-1.js +1 -35
- package/esm/sdk/linkedin-chat-1.js.map +1 -1
- package/esm/sdk/linkedin-scrapers-1.d.ts +2 -2
- package/esm/sdk/linkedin-scrapers-1.js +2 -2
- package/esm/sdk/profile.d.ts +19 -5
- package/esm/sdk/profile.d.ts.map +1 -1
- package/esm/sdk/profile.js +33 -13
- package/esm/sdk/profile.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 +4 -2
- package/esm/sdk/scrapers.d.ts.map +1 -1
- package/esm/sdk/scrapers.js +4 -2
- package/esm/sdk/scrapers.js.map +1 -1
- package/esm/sdk/sdk.d.ts +11 -2
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +19 -4
- package/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +2 -4
- package/src/funcs/actions-connect-profile.ts +11 -1
- package/src/funcs/actions-follow-company.ts +10 -0
- package/src/funcs/actions-list-sent-invitations.ts +10 -0
- package/src/funcs/actions-send-message.ts +11 -1
- package/src/funcs/campaigns-filter.ts +10 -0
- package/src/funcs/{campaigns-get-stats.ts → campaigns-get-campaign-stats.ts} +14 -5
- package/src/funcs/campaigns-get-status.ts +10 -0
- package/src/funcs/campaigns-sync.ts +10 -0
- package/src/funcs/chat-archive.ts +10 -0
- package/src/funcs/chat-find-conversation.ts +11 -8
- package/src/funcs/chat-unreact.ts +10 -0
- package/src/funcs/company-pages-get-analytics.ts +10 -0
- package/src/funcs/company-pages-get-permissions.ts +10 -0
- package/src/funcs/company-pages-get-posts.ts +10 -0
- package/src/funcs/company-pages-list.ts +10 -0
- package/src/funcs/contacts-add-campaign-contacts.ts +233 -0
- package/src/funcs/contacts-add-contact-activities.ts +231 -0
- package/src/funcs/contacts-bulk-update-contacts.ts +225 -0
- package/src/funcs/contacts-create-campaign.ts +224 -0
- package/src/funcs/contacts-delete-agent-state.ts +230 -0
- package/src/funcs/contacts-get-agent-state.ts +229 -0
- package/src/funcs/contacts-get-contact-by-url.ts +228 -0
- package/src/funcs/contacts-get-contact-stats.ts +232 -0
- package/src/funcs/contacts-get-contact.ts +229 -0
- package/src/funcs/contacts-list-agent-states.ts +205 -0
- package/src/funcs/contacts-list-campaign-contacts.ts +242 -0
- package/src/funcs/contacts-list-campaigns.ts +235 -0
- package/src/funcs/contacts-list-contact-activities.ts +237 -0
- package/src/funcs/contacts-patch-agent-state.ts +230 -0
- package/src/funcs/contacts-search-contacts.ts +244 -0
- package/src/funcs/contacts-set-agent-state.ts +230 -0
- package/src/funcs/contacts-update-campaign.ts +230 -0
- package/src/funcs/contacts-update-contact.ts +230 -0
- package/src/funcs/contacts-upsert.ts +66 -3
- package/src/funcs/context-delete-context.ts +229 -0
- package/src/funcs/context-list-context.ts +230 -0
- package/src/funcs/context-set-context.ts +224 -0
- package/src/funcs/cron-list-cron-schedules.ts +205 -0
- package/src/funcs/cron-update-cron-schedule.ts +231 -0
- package/src/funcs/linked-in-actions-create-comment.ts +10 -0
- package/src/funcs/linked-in-actions-decline-invitation.ts +10 -0
- package/src/funcs/linked-in-actions-like-comment.ts +10 -0
- package/src/funcs/linked-in-actions-publish-post.ts +10 -0
- package/src/funcs/linked-in-actions-save-post.ts +10 -0
- package/src/funcs/linked-in-actions-unfollow-profile.ts +10 -0
- package/src/funcs/{linkedin-chat-get-messages.ts → linked-in-chat-get-conversation-messages.ts} +22 -7
- package/src/funcs/{linkedin-chat-get-unread-count.ts → linked-in-chat-get-unread-count.ts} +12 -6
- package/src/funcs/{linkedin-chat-list-archived.ts → linked-in-chat-list-archived-conversations.ts} +20 -8
- package/src/funcs/{linked-in-chat-list-starred.ts → linked-in-chat-list-starred-conversations.ts} +20 -8
- package/src/funcs/linked-in-chat-mark-seen.ts +10 -0
- package/src/funcs/{chat-search-conversations.ts → linked-in-chat-search-linked-in-conversations.ts} +21 -6
- package/src/funcs/linked-in-chat-star.ts +10 -0
- package/src/funcs/linked-in-chat-unarchive.ts +10 -0
- package/src/funcs/linked-in-chat-unstar.ts +10 -0
- package/src/funcs/linked-in-scrapers-collect-comment-replies.ts +11 -1
- package/src/funcs/linked-in-scrapers-get-feed.ts +10 -0
- package/src/funcs/{linked-in-search-resolve-parameters.ts → linked-in-search-resolve-linked-in-search-parameters.ts} +25 -6
- package/src/funcs/linked-in-search-search-companies.ts +10 -0
- package/src/funcs/linked-in-search-search.ts +10 -0
- package/src/funcs/linkedin-actions-accept-invitation.ts +10 -0
- package/src/funcs/linkedin-actions-edit-comment.ts +10 -0
- package/src/funcs/linkedin-actions-edit-post.ts +10 -0
- package/src/funcs/linkedin-actions-follow-profile.ts +10 -0
- package/src/funcs/linkedin-actions-like-post.ts +10 -0
- package/src/funcs/linkedin-actions-list-invitations.ts +10 -0
- package/src/funcs/linkedin-actions-reply-to-comment.ts +10 -0
- package/src/funcs/linkedin-actions-repost-post.ts +11 -1
- package/src/funcs/linkedin-actions-unfollow-company.ts +10 -0
- package/src/funcs/linkedin-actions-unlike-comment.ts +10 -0
- package/src/funcs/linkedin-actions-unlike-post.ts +10 -0
- package/src/funcs/linkedin-actions-unsave-post.ts +10 -0
- package/src/funcs/linkedin-actions-withdraw-invitation.ts +10 -0
- package/src/funcs/linkedin-chat-list-inbox-conversations.ts +20 -5
- package/src/funcs/linkedin-chat-mark-all-read.ts +10 -0
- package/src/funcs/linkedin-chat-react.ts +10 -0
- package/src/funcs/linkedin-chat-send-typing-indicator.ts +10 -0
- package/src/funcs/linkedin-scrapers-collect-comments.ts +11 -1
- package/src/funcs/linkedin-scrapers-collect-hashtag-posts.ts +10 -0
- package/src/funcs/linkedin-scrapers-collect-likes.ts +11 -1
- package/src/funcs/linkedin-scrapers-list-saved-posts.ts +10 -0
- package/src/funcs/linkedin-scrapers-visit-company.ts +10 -0
- package/src/funcs/linkedin-search-search-by-url.ts +10 -0
- package/src/funcs/linkedin-search-search-jobs.ts +10 -0
- package/src/funcs/linkedin-search-search-people.ts +10 -0
- package/src/funcs/linkedin-search-search-posts.ts +10 -0
- package/src/funcs/profile-get-follower-analytics.ts +10 -0
- package/src/funcs/profile-get-followers.ts +10 -0
- package/src/funcs/profile-get-linked-in-connections.ts +233 -0
- package/src/funcs/{profile-get-credits.ts → profile-get-my-credits.ts} +12 -2
- package/src/funcs/{profile-get-limits.ts → profile-get-my-limits.ts} +12 -2
- package/src/funcs/{profile-get.ts → profile-get-my-linked-in-profile.ts} +12 -2
- package/src/funcs/profile-get-post-analytics.ts +11 -1
- package/src/funcs/profile-get-posts.ts +10 -0
- package/src/funcs/profile-get-profile-views.ts +10 -0
- package/src/funcs/profile-get-search-appearances.ts +10 -0
- package/src/funcs/{profile-list-accounts.ts → profile-list-linked-in-accounts.ts} +12 -2
- package/src/funcs/profile-refresh.ts +10 -0
- package/src/funcs/profile-switch-linked-in-account.ts +225 -0
- package/src/funcs/profile-update-account.ts +10 -0
- package/src/funcs/sales-nav-search-people.ts +10 -0
- package/src/funcs/sales-navigator-search-search-companies.ts +10 -0
- package/src/funcs/sales-navigator-search-search.ts +10 -0
- package/src/funcs/scheduled-messages-batch-schedule-messages.ts +225 -0
- package/src/funcs/scheduled-messages-cancel-scheduled-messages.ts +225 -0
- package/src/funcs/scheduled-messages-create-scheduled-message.ts +225 -0
- package/src/funcs/scheduled-messages-list-scheduled-messages.ts +236 -0
- package/src/funcs/scrapers-collect-posts.ts +11 -1
- package/src/funcs/scrapers-visit-profile.ts +13 -1
- package/src/lib/config.ts +7 -3
- package/src/models/errors/collect-linked-in-likes.ts +108 -0
- package/src/models/operations/index.ts +4 -4
- package/src/models/operations/{scraping-weekly.ts → refresh-my-linked-in-profile-type.ts} +2106 -2363
- package/src/models/operations/{search-linked-in-by-url-type-post.ts → search-linked-in-jobs-experience-level.ts} +649 -536
- package/src/models/operations/{get-campaign-stats-response.ts → update-contact-outreach-status.ts} +3582 -1450
- package/src/models/operations/update-cron-schedule-response.ts +3771 -0
- package/src/sdk/actions.ts +2 -2
- package/src/sdk/campaigns.ts +3 -3
- package/src/sdk/chat.ts +1 -26
- package/src/sdk/contacts.ts +323 -1
- package/src/sdk/context.ts +63 -0
- package/src/sdk/cron.ts +43 -0
- package/src/sdk/linked-in-chat-2.ts +92 -18
- package/src/sdk/linked-in-scrapers-2.ts +1 -1
- package/src/sdk/linked-in-search-1.ts +7 -4
- package/src/sdk/linkedin-actions-1.ts +1 -1
- package/src/sdk/linkedin-chat-1.ts +2 -60
- package/src/sdk/linkedin-scrapers-1.ts +2 -2
- package/src/sdk/profile.ts +49 -13
- package/src/sdk/scheduled-messages.ts +81 -0
- package/src/sdk/scrapers.ts +4 -2
- package/src/sdk/sdk.ts +23 -5
- package/esm/funcs/campaigns-get-stats.js.map +0 -1
- package/esm/funcs/chat-search-conversations.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.map +0 -1
- package/esm/funcs/linked-in-search-resolve-parameters.d.ts.map +0 -1
- package/esm/funcs/linked-in-search-resolve-parameters.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.map +0 -1
- package/esm/funcs/linkedin-chat-get-unread-count.d.ts.map +0 -1
- package/esm/funcs/linkedin-chat-get-unread-count.js.map +0 -1
- package/esm/funcs/linkedin-chat-list-archived.d.ts.map +0 -1
- package/esm/funcs/linkedin-chat-list-archived.js.map +0 -1
- package/esm/funcs/profile-get-credits.d.ts.map +0 -1
- package/esm/funcs/profile-get-credits.js.map +0 -1
- package/esm/funcs/profile-get-limits.d.ts.map +0 -1
- package/esm/funcs/profile-get-limits.js.map +0 -1
- package/esm/funcs/profile-get.d.ts.map +0 -1
- package/esm/funcs/profile-get.js.map +0 -1
- package/esm/funcs/profile-list-accounts.js.map +0 -1
- package/esm/models/operations/get-campaign-stats-response.d.ts.map +0 -1
- package/esm/models/operations/get-campaign-stats-response.js.map +0 -1
- package/esm/models/operations/scraping-weekly.d.ts.map +0 -1
- package/esm/models/operations/scraping-weekly.js.map +0 -1
- 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.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/src/models/operations/upsert-contacts.ts +0 -305
|
@@ -0,0 +1,1194 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
6
|
+
import * as openEnums from "../../types/enums.js";
|
|
7
|
+
import * as types from "../../types/primitives.js";
|
|
8
|
+
import { smartUnion } from "../../types/smart-union.js";
|
|
9
|
+
import { UpdateContactLifecycleStage$outboundSchema, UpdateContactOutreachStatus$outboundSchema, } from "./update-contact-outreach-status.js";
|
|
10
|
+
/**
|
|
11
|
+
* Activity type
|
|
12
|
+
*/
|
|
13
|
+
export const AddContactActivitiesType = {
|
|
14
|
+
ConnectionRequest: "connection_request",
|
|
15
|
+
Message: "message",
|
|
16
|
+
FollowUp: "follow_up",
|
|
17
|
+
ReplyReceived: "reply_received",
|
|
18
|
+
ConnectionAccepted: "connection_accepted",
|
|
19
|
+
ProfileView: "profile_view",
|
|
20
|
+
EngagementObserved: "engagement_observed",
|
|
21
|
+
PostInteraction: "post_interaction",
|
|
22
|
+
SearchFound: "search_found",
|
|
23
|
+
Qualification: "qualification",
|
|
24
|
+
StageChange: "stage_change",
|
|
25
|
+
MessageReceived: "message_received",
|
|
26
|
+
UserInterest: "user_interest",
|
|
27
|
+
MeetingBooked: "meeting_booked",
|
|
28
|
+
MeetingCompleted: "meeting_completed",
|
|
29
|
+
MeetingCancelled: "meeting_cancelled",
|
|
30
|
+
DoNotContact: "do_not_contact",
|
|
31
|
+
};
|
|
32
|
+
export const BulkUpdateContactsLifecycleStage = {
|
|
33
|
+
Contact: "contact",
|
|
34
|
+
Lead: "lead",
|
|
35
|
+
Qualified: "qualified",
|
|
36
|
+
Approved: "approved",
|
|
37
|
+
Rejected: "rejected",
|
|
38
|
+
};
|
|
39
|
+
export const BulkUpdateContactsOutreachStatus = {
|
|
40
|
+
None: "none",
|
|
41
|
+
ConnectionSent: "connection_sent",
|
|
42
|
+
Connected: "connected",
|
|
43
|
+
DmSent: "dm_sent",
|
|
44
|
+
FollowedUp: "followed_up",
|
|
45
|
+
Replied: "replied",
|
|
46
|
+
InConversation: "in_conversation",
|
|
47
|
+
MeetingBooked: "meeting_booked",
|
|
48
|
+
Converted: "converted",
|
|
49
|
+
NotInterested: "not_interested",
|
|
50
|
+
};
|
|
51
|
+
export const ListCampaignsType = {
|
|
52
|
+
Outreach: "outreach",
|
|
53
|
+
LeadGen: "lead_gen",
|
|
54
|
+
LeadMagnet: "lead_magnet",
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Campaign type
|
|
58
|
+
*/
|
|
59
|
+
export const CreateCampaignType = {
|
|
60
|
+
Outreach: "outreach",
|
|
61
|
+
LeadGen: "lead_gen",
|
|
62
|
+
LeadMagnet: "lead_magnet",
|
|
63
|
+
};
|
|
64
|
+
export const UpdateCampaignStatus = {
|
|
65
|
+
Draft: "draft",
|
|
66
|
+
Scheduled: "scheduled",
|
|
67
|
+
Running: "running",
|
|
68
|
+
Paused: "paused",
|
|
69
|
+
Completed: "completed",
|
|
70
|
+
Failed: "failed",
|
|
71
|
+
};
|
|
72
|
+
export const ListCampaignContactsLifecycleStage = {
|
|
73
|
+
Contact: "contact",
|
|
74
|
+
Lead: "lead",
|
|
75
|
+
Qualified: "qualified",
|
|
76
|
+
Approved: "approved",
|
|
77
|
+
Rejected: "rejected",
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* How this contact was found. Optional for organic creation (defaults to manual_import), required for campaign-based addition. Unknown values default to manual_import.
|
|
81
|
+
*/
|
|
82
|
+
export const AddCampaignContactsSource = {
|
|
83
|
+
Likes: "likes",
|
|
84
|
+
Comments: "comments",
|
|
85
|
+
Reposts: "reposts",
|
|
86
|
+
Posts: "posts",
|
|
87
|
+
CompanyFollowers: "company_followers",
|
|
88
|
+
SearchResults: "search_results",
|
|
89
|
+
ManualImport: "manual_import",
|
|
90
|
+
EventAttendees: "event_attendees",
|
|
91
|
+
GroupMembers: "group_members",
|
|
92
|
+
EngagementScraping: "engagement_scraping",
|
|
93
|
+
ContentSearch: "content_search",
|
|
94
|
+
FollowersMining: "followers_mining",
|
|
95
|
+
PeopleSearch: "people_search",
|
|
96
|
+
JobSearch: "job_search",
|
|
97
|
+
CompanySearch: "company_search",
|
|
98
|
+
NetworkExpansion: "network_expansion",
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* Lifecycle stage. Defaults to 'contact' on creation. Omit when adding existing contacts to avoid downgrading their stage.
|
|
102
|
+
*/
|
|
103
|
+
export const AddCampaignContactsLifecycleStage = {
|
|
104
|
+
Contact: "contact",
|
|
105
|
+
Lead: "lead",
|
|
106
|
+
Qualified: "qualified",
|
|
107
|
+
Approved: "approved",
|
|
108
|
+
Rejected: "rejected",
|
|
109
|
+
};
|
|
110
|
+
export const QueryParamStatus = {
|
|
111
|
+
Draft: "draft",
|
|
112
|
+
Scheduled: "scheduled",
|
|
113
|
+
Sending: "sending",
|
|
114
|
+
Sent: "sent",
|
|
115
|
+
Failed: "failed",
|
|
116
|
+
Cancelled: "cancelled",
|
|
117
|
+
};
|
|
118
|
+
export const ListScheduledMessagesStatusResponse = {
|
|
119
|
+
Draft: "draft",
|
|
120
|
+
Scheduled: "scheduled",
|
|
121
|
+
Sending: "sending",
|
|
122
|
+
Sent: "sent",
|
|
123
|
+
Failed: "failed",
|
|
124
|
+
Cancelled: "cancelled",
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* Default 'draft'
|
|
128
|
+
*/
|
|
129
|
+
export const CreateScheduledMessageStatusRequest = {
|
|
130
|
+
Draft: "draft",
|
|
131
|
+
Scheduled: "scheduled",
|
|
132
|
+
};
|
|
133
|
+
export const CreateScheduledMessageStatusResponse = {
|
|
134
|
+
Draft: "draft",
|
|
135
|
+
Scheduled: "scheduled",
|
|
136
|
+
Sending: "sending",
|
|
137
|
+
Sent: "sent",
|
|
138
|
+
Failed: "failed",
|
|
139
|
+
Cancelled: "cancelled",
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* Action to perform
|
|
143
|
+
*/
|
|
144
|
+
export const UpdateCronScheduleAction = {
|
|
145
|
+
Pause: "pause",
|
|
146
|
+
Resume: "resume",
|
|
147
|
+
Delete: "delete",
|
|
148
|
+
};
|
|
149
|
+
/** @internal */
|
|
150
|
+
export const UpdateContactTags3$outboundSchema = z.object({
|
|
151
|
+
set: z.array(z.string()),
|
|
152
|
+
});
|
|
153
|
+
export function updateContactTags3ToJSON(updateContactTags3) {
|
|
154
|
+
return JSON.stringify(UpdateContactTags3$outboundSchema.parse(updateContactTags3));
|
|
155
|
+
}
|
|
156
|
+
/** @internal */
|
|
157
|
+
export const UpdateContactTags2$outboundSchema = z.object({
|
|
158
|
+
add: z.optional(z.array(z.string())),
|
|
159
|
+
remove: z.array(z.string()),
|
|
160
|
+
});
|
|
161
|
+
export function updateContactTags2ToJSON(updateContactTags2) {
|
|
162
|
+
return JSON.stringify(UpdateContactTags2$outboundSchema.parse(updateContactTags2));
|
|
163
|
+
}
|
|
164
|
+
/** @internal */
|
|
165
|
+
export const UpdateContactTags1$outboundSchema = z.object({
|
|
166
|
+
add: z.array(z.string()),
|
|
167
|
+
remove: z.optional(z.array(z.string())),
|
|
168
|
+
});
|
|
169
|
+
export function updateContactTags1ToJSON(updateContactTags1) {
|
|
170
|
+
return JSON.stringify(UpdateContactTags1$outboundSchema.parse(updateContactTags1));
|
|
171
|
+
}
|
|
172
|
+
/** @internal */
|
|
173
|
+
export const UpdateContactTagsUnion$outboundSchema = smartUnion([
|
|
174
|
+
z.lazy(() => UpdateContactTags1$outboundSchema),
|
|
175
|
+
z.lazy(() => UpdateContactTags2$outboundSchema),
|
|
176
|
+
z.lazy(() => UpdateContactTags3$outboundSchema),
|
|
177
|
+
]);
|
|
178
|
+
export function updateContactTagsUnionToJSON(updateContactTagsUnion) {
|
|
179
|
+
return JSON.stringify(UpdateContactTagsUnion$outboundSchema.parse(updateContactTagsUnion));
|
|
180
|
+
}
|
|
181
|
+
/** @internal */
|
|
182
|
+
export const UpdateContactRequestBody$outboundSchema = z.object({
|
|
183
|
+
lifecycleStage: z.optional(UpdateContactLifecycleStage$outboundSchema),
|
|
184
|
+
hotScore: z.optional(z.int()),
|
|
185
|
+
qualificationNotes: z.optional(z.string()),
|
|
186
|
+
notes: z.optional(z.string()),
|
|
187
|
+
name: z.optional(z.string()),
|
|
188
|
+
profileData: z.optional(z.any()),
|
|
189
|
+
profileUpdatedAt: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
190
|
+
conversationData: z.optional(z.any()),
|
|
191
|
+
conversationUpdatedAt: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
192
|
+
outreachStatus: z.optional(UpdateContactOutreachStatus$outboundSchema),
|
|
193
|
+
nextFollowUpAt: z.optional(z.nullable(z.pipe(z.date(), z.transform(v => v.toISOString())))),
|
|
194
|
+
doNotContact: z.optional(z.boolean()),
|
|
195
|
+
tags: z.optional(smartUnion([
|
|
196
|
+
z.lazy(() => UpdateContactTags1$outboundSchema),
|
|
197
|
+
z.lazy(() => UpdateContactTags2$outboundSchema),
|
|
198
|
+
z.lazy(() => UpdateContactTags3$outboundSchema),
|
|
199
|
+
])),
|
|
200
|
+
});
|
|
201
|
+
export function updateContactRequestBodyToJSON(updateContactRequestBody) {
|
|
202
|
+
return JSON.stringify(UpdateContactRequestBody$outboundSchema.parse(updateContactRequestBody));
|
|
203
|
+
}
|
|
204
|
+
/** @internal */
|
|
205
|
+
export const UpdateContactRequest$outboundSchema = z.object({
|
|
206
|
+
id: z.string(),
|
|
207
|
+
body: z.lazy(() => UpdateContactRequestBody$outboundSchema),
|
|
208
|
+
});
|
|
209
|
+
export function updateContactRequestToJSON(updateContactRequest) {
|
|
210
|
+
return JSON.stringify(UpdateContactRequest$outboundSchema.parse(updateContactRequest));
|
|
211
|
+
}
|
|
212
|
+
/** @internal */
|
|
213
|
+
export const UpdateContactContact$inboundSchema = z.object({
|
|
214
|
+
id: types.string(),
|
|
215
|
+
linkedinUrl: types.string(),
|
|
216
|
+
profileUrn: types.nullable(types.string()),
|
|
217
|
+
publicIdentifier: types.nullable(types.string()),
|
|
218
|
+
name: types.string(),
|
|
219
|
+
lifecycleStage: types.string(),
|
|
220
|
+
hotScore: types.number(),
|
|
221
|
+
qualificationNotes: types.nullable(types.string()),
|
|
222
|
+
notes: types.nullable(types.string()),
|
|
223
|
+
stageChangedAt: types.nullable(types.string()),
|
|
224
|
+
profileData: types.nullable(z.any()),
|
|
225
|
+
profileUpdatedAt: types.nullable(types.string()),
|
|
226
|
+
conversationData: types.nullable(z.any()),
|
|
227
|
+
conversationUpdatedAt: types.nullable(types.string()),
|
|
228
|
+
outreachStatus: types.string(),
|
|
229
|
+
lastContactedAt: types.nullable(types.string()),
|
|
230
|
+
lastRepliedAt: types.nullable(types.string()),
|
|
231
|
+
nextFollowUpAt: types.nullable(types.string()),
|
|
232
|
+
doNotContact: types.boolean(),
|
|
233
|
+
tags: z.array(types.string()),
|
|
234
|
+
createdAt: types.string(),
|
|
235
|
+
updatedAt: types.string(),
|
|
236
|
+
});
|
|
237
|
+
export function updateContactContactFromJSON(jsonString) {
|
|
238
|
+
return safeParse(jsonString, (x) => UpdateContactContact$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateContactContact' from JSON`);
|
|
239
|
+
}
|
|
240
|
+
/** @internal */
|
|
241
|
+
export const UpdateContactResponse$inboundSchema = z.object({
|
|
242
|
+
success: types.literal(true),
|
|
243
|
+
contact: z.lazy(() => UpdateContactContact$inboundSchema),
|
|
244
|
+
creditsUsed: types.number(),
|
|
245
|
+
retryAfter: types.number(),
|
|
246
|
+
});
|
|
247
|
+
export function updateContactResponseFromJSON(jsonString) {
|
|
248
|
+
return safeParse(jsonString, (x) => UpdateContactResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateContactResponse' from JSON`);
|
|
249
|
+
}
|
|
250
|
+
/** @internal */
|
|
251
|
+
export const ListContactActivitiesRequest$outboundSchema = z.object({
|
|
252
|
+
type: z.optional(z.string()),
|
|
253
|
+
limit: z._default(z.int(), 50),
|
|
254
|
+
offset: z._default(z.int(), 0),
|
|
255
|
+
id: z.string(),
|
|
256
|
+
});
|
|
257
|
+
export function listContactActivitiesRequestToJSON(listContactActivitiesRequest) {
|
|
258
|
+
return JSON.stringify(ListContactActivitiesRequest$outboundSchema.parse(listContactActivitiesRequest));
|
|
259
|
+
}
|
|
260
|
+
/** @internal */
|
|
261
|
+
export const ListContactActivitiesActivity$inboundSchema = z.object({
|
|
262
|
+
id: types.string(),
|
|
263
|
+
type: types.string(),
|
|
264
|
+
content: types.nullable(types.string()),
|
|
265
|
+
metadata: types.nullable(z.any()),
|
|
266
|
+
createdAt: types.string(),
|
|
267
|
+
});
|
|
268
|
+
export function listContactActivitiesActivityFromJSON(jsonString) {
|
|
269
|
+
return safeParse(jsonString, (x) => ListContactActivitiesActivity$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListContactActivitiesActivity' from JSON`);
|
|
270
|
+
}
|
|
271
|
+
/** @internal */
|
|
272
|
+
export const ListContactActivitiesPagination$inboundSchema = z.object({
|
|
273
|
+
limit: types.number(),
|
|
274
|
+
offset: types.number(),
|
|
275
|
+
total: types.number(),
|
|
276
|
+
});
|
|
277
|
+
export function listContactActivitiesPaginationFromJSON(jsonString) {
|
|
278
|
+
return safeParse(jsonString, (x) => ListContactActivitiesPagination$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListContactActivitiesPagination' from JSON`);
|
|
279
|
+
}
|
|
280
|
+
/** @internal */
|
|
281
|
+
export const ListContactActivitiesResponse$inboundSchema = z.object({
|
|
282
|
+
success: types.literal(true),
|
|
283
|
+
activities: z.array(z.lazy(() => ListContactActivitiesActivity$inboundSchema)),
|
|
284
|
+
pagination: z.lazy(() => ListContactActivitiesPagination$inboundSchema),
|
|
285
|
+
creditsUsed: types.number(),
|
|
286
|
+
retryAfter: types.number(),
|
|
287
|
+
});
|
|
288
|
+
export function listContactActivitiesResponseFromJSON(jsonString) {
|
|
289
|
+
return safeParse(jsonString, (x) => ListContactActivitiesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListContactActivitiesResponse' from JSON`);
|
|
290
|
+
}
|
|
291
|
+
/** @internal */
|
|
292
|
+
export const AddContactActivitiesType$outboundSchema = z.enum(AddContactActivitiesType);
|
|
293
|
+
/** @internal */
|
|
294
|
+
export const AddContactActivitiesActivity$outboundSchema = z.object({
|
|
295
|
+
type: AddContactActivitiesType$outboundSchema,
|
|
296
|
+
content: z.optional(z.string()),
|
|
297
|
+
metadata: z.optional(z.any()),
|
|
298
|
+
});
|
|
299
|
+
export function addContactActivitiesActivityToJSON(addContactActivitiesActivity) {
|
|
300
|
+
return JSON.stringify(AddContactActivitiesActivity$outboundSchema.parse(addContactActivitiesActivity));
|
|
301
|
+
}
|
|
302
|
+
/** @internal */
|
|
303
|
+
export const AddContactActivitiesRequestBody$outboundSchema = z.object({
|
|
304
|
+
activities: z.array(z.lazy(() => AddContactActivitiesActivity$outboundSchema)),
|
|
305
|
+
});
|
|
306
|
+
export function addContactActivitiesRequestBodyToJSON(addContactActivitiesRequestBody) {
|
|
307
|
+
return JSON.stringify(AddContactActivitiesRequestBody$outboundSchema.parse(addContactActivitiesRequestBody));
|
|
308
|
+
}
|
|
309
|
+
/** @internal */
|
|
310
|
+
export const AddContactActivitiesRequest$outboundSchema = z.object({
|
|
311
|
+
id: z.string(),
|
|
312
|
+
body: z.lazy(() => AddContactActivitiesRequestBody$outboundSchema),
|
|
313
|
+
});
|
|
314
|
+
export function addContactActivitiesRequestToJSON(addContactActivitiesRequest) {
|
|
315
|
+
return JSON.stringify(AddContactActivitiesRequest$outboundSchema.parse(addContactActivitiesRequest));
|
|
316
|
+
}
|
|
317
|
+
/** @internal */
|
|
318
|
+
export const AddContactActivitiesResponse$inboundSchema = z.object({
|
|
319
|
+
success: types.literal(true),
|
|
320
|
+
created: types.number(),
|
|
321
|
+
creditsUsed: types.number(),
|
|
322
|
+
retryAfter: types.number(),
|
|
323
|
+
});
|
|
324
|
+
export function addContactActivitiesResponseFromJSON(jsonString) {
|
|
325
|
+
return safeParse(jsonString, (x) => AddContactActivitiesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AddContactActivitiesResponse' from JSON`);
|
|
326
|
+
}
|
|
327
|
+
/** @internal */
|
|
328
|
+
export const BulkUpdateContactsLifecycleStage$outboundSchema = z.enum(BulkUpdateContactsLifecycleStage);
|
|
329
|
+
/** @internal */
|
|
330
|
+
export const BulkUpdateContactsOutreachStatus$outboundSchema = z.enum(BulkUpdateContactsOutreachStatus);
|
|
331
|
+
/** @internal */
|
|
332
|
+
export const BulkUpdateContactsTags3$outboundSchema = z.object({
|
|
333
|
+
set: z.array(z.string()),
|
|
334
|
+
});
|
|
335
|
+
export function bulkUpdateContactsTags3ToJSON(bulkUpdateContactsTags3) {
|
|
336
|
+
return JSON.stringify(BulkUpdateContactsTags3$outboundSchema.parse(bulkUpdateContactsTags3));
|
|
337
|
+
}
|
|
338
|
+
/** @internal */
|
|
339
|
+
export const BulkUpdateContactsTags2$outboundSchema = z.object({
|
|
340
|
+
add: z.optional(z.array(z.string())),
|
|
341
|
+
remove: z.array(z.string()),
|
|
342
|
+
});
|
|
343
|
+
export function bulkUpdateContactsTags2ToJSON(bulkUpdateContactsTags2) {
|
|
344
|
+
return JSON.stringify(BulkUpdateContactsTags2$outboundSchema.parse(bulkUpdateContactsTags2));
|
|
345
|
+
}
|
|
346
|
+
/** @internal */
|
|
347
|
+
export const BulkUpdateContactsTags1$outboundSchema = z.object({
|
|
348
|
+
add: z.array(z.string()),
|
|
349
|
+
remove: z.optional(z.array(z.string())),
|
|
350
|
+
});
|
|
351
|
+
export function bulkUpdateContactsTags1ToJSON(bulkUpdateContactsTags1) {
|
|
352
|
+
return JSON.stringify(BulkUpdateContactsTags1$outboundSchema.parse(bulkUpdateContactsTags1));
|
|
353
|
+
}
|
|
354
|
+
/** @internal */
|
|
355
|
+
export const BulkUpdateContactsTagsUnion$outboundSchema = smartUnion([
|
|
356
|
+
z.lazy(() => BulkUpdateContactsTags1$outboundSchema),
|
|
357
|
+
z.lazy(() => BulkUpdateContactsTags2$outboundSchema),
|
|
358
|
+
z.lazy(() => BulkUpdateContactsTags3$outboundSchema),
|
|
359
|
+
]);
|
|
360
|
+
export function bulkUpdateContactsTagsUnionToJSON(bulkUpdateContactsTagsUnion) {
|
|
361
|
+
return JSON.stringify(BulkUpdateContactsTagsUnion$outboundSchema.parse(bulkUpdateContactsTagsUnion));
|
|
362
|
+
}
|
|
363
|
+
/** @internal */
|
|
364
|
+
export const Update$outboundSchema = z
|
|
365
|
+
.object({
|
|
366
|
+
lifecycleStage: z.optional(BulkUpdateContactsLifecycleStage$outboundSchema),
|
|
367
|
+
hotScore: z.optional(z.int()),
|
|
368
|
+
qualificationNotes: z.optional(z.string()),
|
|
369
|
+
notes: z.optional(z.string()),
|
|
370
|
+
outreachStatus: z.optional(BulkUpdateContactsOutreachStatus$outboundSchema),
|
|
371
|
+
nextFollowUpAt: z.optional(z.nullable(z.pipe(z.date(), z.transform(v => v.toISOString())))),
|
|
372
|
+
doNotContact: z.optional(z.boolean()),
|
|
373
|
+
tags: z.optional(smartUnion([
|
|
374
|
+
z.lazy(() => BulkUpdateContactsTags1$outboundSchema),
|
|
375
|
+
z.lazy(() => BulkUpdateContactsTags2$outboundSchema),
|
|
376
|
+
z.lazy(() => BulkUpdateContactsTags3$outboundSchema),
|
|
377
|
+
])),
|
|
378
|
+
});
|
|
379
|
+
export function updateToJSON(update) {
|
|
380
|
+
return JSON.stringify(Update$outboundSchema.parse(update));
|
|
381
|
+
}
|
|
382
|
+
/** @internal */
|
|
383
|
+
export const BulkUpdateContactsRequest$outboundSchema = z.object({
|
|
384
|
+
contactIds: z.array(z.string()),
|
|
385
|
+
update: z.lazy(() => Update$outboundSchema),
|
|
386
|
+
});
|
|
387
|
+
export function bulkUpdateContactsRequestToJSON(bulkUpdateContactsRequest) {
|
|
388
|
+
return JSON.stringify(BulkUpdateContactsRequest$outboundSchema.parse(bulkUpdateContactsRequest));
|
|
389
|
+
}
|
|
390
|
+
/** @internal */
|
|
391
|
+
export const BulkUpdateContactsResponse$inboundSchema = z.object({
|
|
392
|
+
success: types.literal(true),
|
|
393
|
+
updated: types.number(),
|
|
394
|
+
skipped: types.number(),
|
|
395
|
+
errors: z.array(types.string()),
|
|
396
|
+
creditsUsed: types.number(),
|
|
397
|
+
retryAfter: types.number(),
|
|
398
|
+
});
|
|
399
|
+
export function bulkUpdateContactsResponseFromJSON(jsonString) {
|
|
400
|
+
return safeParse(jsonString, (x) => BulkUpdateContactsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BulkUpdateContactsResponse' from JSON`);
|
|
401
|
+
}
|
|
402
|
+
/** @internal */
|
|
403
|
+
export const GetContactStatsRequest$outboundSchema = z.object({
|
|
404
|
+
campaignId: z.optional(z.string()),
|
|
405
|
+
});
|
|
406
|
+
export function getContactStatsRequestToJSON(getContactStatsRequest) {
|
|
407
|
+
return JSON.stringify(GetContactStatsRequest$outboundSchema.parse(getContactStatsRequest));
|
|
408
|
+
}
|
|
409
|
+
/** @internal */
|
|
410
|
+
export const Funnel$inboundSchema = z.object({
|
|
411
|
+
contact: types.number(),
|
|
412
|
+
lead: types.number(),
|
|
413
|
+
qualified: types.number(),
|
|
414
|
+
approved: types.number(),
|
|
415
|
+
rejected: types.number(),
|
|
416
|
+
});
|
|
417
|
+
export function funnelFromJSON(jsonString) {
|
|
418
|
+
return safeParse(jsonString, (x) => Funnel$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Funnel' from JSON`);
|
|
419
|
+
}
|
|
420
|
+
/** @internal */
|
|
421
|
+
export const BySourceAngle$inboundSchema = z.object({
|
|
422
|
+
total: types.number(),
|
|
423
|
+
contact: types.number(),
|
|
424
|
+
lead: types.number(),
|
|
425
|
+
qualified: types.number(),
|
|
426
|
+
approved: types.number(),
|
|
427
|
+
rejected: types.number(),
|
|
428
|
+
});
|
|
429
|
+
export function bySourceAngleFromJSON(jsonString) {
|
|
430
|
+
return safeParse(jsonString, (x) => BySourceAngle$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BySourceAngle' from JSON`);
|
|
431
|
+
}
|
|
432
|
+
/** @internal */
|
|
433
|
+
export const ByCampaign$inboundSchema = z
|
|
434
|
+
.object({
|
|
435
|
+
name: types.string(),
|
|
436
|
+
total: types.number(),
|
|
437
|
+
contact: types.number(),
|
|
438
|
+
lead: types.number(),
|
|
439
|
+
qualified: types.number(),
|
|
440
|
+
approved: types.number(),
|
|
441
|
+
rejected: types.number(),
|
|
442
|
+
});
|
|
443
|
+
export function byCampaignFromJSON(jsonString) {
|
|
444
|
+
return safeParse(jsonString, (x) => ByCampaign$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ByCampaign' from JSON`);
|
|
445
|
+
}
|
|
446
|
+
/** @internal */
|
|
447
|
+
export const GetContactStatsDaily$inboundSchema = z.object({
|
|
448
|
+
date: types.string(),
|
|
449
|
+
created: types.number(),
|
|
450
|
+
});
|
|
451
|
+
export function getContactStatsDailyFromJSON(jsonString) {
|
|
452
|
+
return safeParse(jsonString, (x) => GetContactStatsDaily$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetContactStatsDaily' from JSON`);
|
|
453
|
+
}
|
|
454
|
+
/** @internal */
|
|
455
|
+
export const GetContactStatsResponse$inboundSchema = z.object({
|
|
456
|
+
success: types.literal(true),
|
|
457
|
+
funnel: z.lazy(() => Funnel$inboundSchema),
|
|
458
|
+
bySource: z.record(z.string(), types.number()),
|
|
459
|
+
bySourceAngle: z.record(z.string(), z.lazy(() => BySourceAngle$inboundSchema)),
|
|
460
|
+
byCampaign: z.record(z.string(), z.lazy(() => ByCampaign$inboundSchema)),
|
|
461
|
+
daily: z.array(z.lazy(() => GetContactStatsDaily$inboundSchema)),
|
|
462
|
+
creditsUsed: types.number(),
|
|
463
|
+
retryAfter: types.number(),
|
|
464
|
+
});
|
|
465
|
+
export function getContactStatsResponseFromJSON(jsonString) {
|
|
466
|
+
return safeParse(jsonString, (x) => GetContactStatsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetContactStatsResponse' from JSON`);
|
|
467
|
+
}
|
|
468
|
+
/** @internal */
|
|
469
|
+
export const State$inboundSchema = z.object({
|
|
470
|
+
key: types.string(),
|
|
471
|
+
data: z.any(),
|
|
472
|
+
updatedAt: types.nullable(types.string()),
|
|
473
|
+
});
|
|
474
|
+
export function stateFromJSON(jsonString) {
|
|
475
|
+
return safeParse(jsonString, (x) => State$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'State' from JSON`);
|
|
476
|
+
}
|
|
477
|
+
/** @internal */
|
|
478
|
+
export const ListAgentStatesResponse$inboundSchema = z.object({
|
|
479
|
+
success: types.literal(true),
|
|
480
|
+
states: z.array(z.lazy(() => State$inboundSchema)),
|
|
481
|
+
creditsUsed: types.number(),
|
|
482
|
+
retryAfter: types.number(),
|
|
483
|
+
});
|
|
484
|
+
export function listAgentStatesResponseFromJSON(jsonString) {
|
|
485
|
+
return safeParse(jsonString, (x) => ListAgentStatesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentStatesResponse' from JSON`);
|
|
486
|
+
}
|
|
487
|
+
/** @internal */
|
|
488
|
+
export const GetAgentStateRequest$outboundSchema = z.object({
|
|
489
|
+
key: z.string(),
|
|
490
|
+
});
|
|
491
|
+
export function getAgentStateRequestToJSON(getAgentStateRequest) {
|
|
492
|
+
return JSON.stringify(GetAgentStateRequest$outboundSchema.parse(getAgentStateRequest));
|
|
493
|
+
}
|
|
494
|
+
/** @internal */
|
|
495
|
+
export const GetAgentStateResponse$inboundSchema = z.object({
|
|
496
|
+
success: types.literal(true),
|
|
497
|
+
key: types.string(),
|
|
498
|
+
data: z.any(),
|
|
499
|
+
updatedAt: types.nullable(types.string()),
|
|
500
|
+
creditsUsed: types.number(),
|
|
501
|
+
retryAfter: types.number(),
|
|
502
|
+
});
|
|
503
|
+
export function getAgentStateResponseFromJSON(jsonString) {
|
|
504
|
+
return safeParse(jsonString, (x) => GetAgentStateResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAgentStateResponse' from JSON`);
|
|
505
|
+
}
|
|
506
|
+
/** @internal */
|
|
507
|
+
export const SetAgentStateRequestBody$outboundSchema = z.object({
|
|
508
|
+
data: z.any(),
|
|
509
|
+
});
|
|
510
|
+
export function setAgentStateRequestBodyToJSON(setAgentStateRequestBody) {
|
|
511
|
+
return JSON.stringify(SetAgentStateRequestBody$outboundSchema.parse(setAgentStateRequestBody));
|
|
512
|
+
}
|
|
513
|
+
/** @internal */
|
|
514
|
+
export const SetAgentStateRequest$outboundSchema = z.object({
|
|
515
|
+
key: z.string(),
|
|
516
|
+
body: z.lazy(() => SetAgentStateRequestBody$outboundSchema),
|
|
517
|
+
});
|
|
518
|
+
export function setAgentStateRequestToJSON(setAgentStateRequest) {
|
|
519
|
+
return JSON.stringify(SetAgentStateRequest$outboundSchema.parse(setAgentStateRequest));
|
|
520
|
+
}
|
|
521
|
+
/** @internal */
|
|
522
|
+
export const SetAgentStateResponse$inboundSchema = z.object({
|
|
523
|
+
success: types.literal(true),
|
|
524
|
+
key: types.string(),
|
|
525
|
+
data: z.any(),
|
|
526
|
+
updatedAt: types.nullable(types.string()),
|
|
527
|
+
creditsUsed: types.number(),
|
|
528
|
+
retryAfter: types.number(),
|
|
529
|
+
});
|
|
530
|
+
export function setAgentStateResponseFromJSON(jsonString) {
|
|
531
|
+
return safeParse(jsonString, (x) => SetAgentStateResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SetAgentStateResponse' from JSON`);
|
|
532
|
+
}
|
|
533
|
+
/** @internal */
|
|
534
|
+
export const DeleteAgentStateRequest$outboundSchema = z.object({
|
|
535
|
+
key: z.string(),
|
|
536
|
+
});
|
|
537
|
+
export function deleteAgentStateRequestToJSON(deleteAgentStateRequest) {
|
|
538
|
+
return JSON.stringify(DeleteAgentStateRequest$outboundSchema.parse(deleteAgentStateRequest));
|
|
539
|
+
}
|
|
540
|
+
/** @internal */
|
|
541
|
+
export const DeleteAgentStateResponse$inboundSchema = z.object({
|
|
542
|
+
success: types.literal(true),
|
|
543
|
+
creditsUsed: types.number(),
|
|
544
|
+
retryAfter: types.number(),
|
|
545
|
+
});
|
|
546
|
+
export function deleteAgentStateResponseFromJSON(jsonString) {
|
|
547
|
+
return safeParse(jsonString, (x) => DeleteAgentStateResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteAgentStateResponse' from JSON`);
|
|
548
|
+
}
|
|
549
|
+
/** @internal */
|
|
550
|
+
export const PatchAgentStateRequestBody$outboundSchema = z.object({
|
|
551
|
+
data: z.record(z.string(), z.any()),
|
|
552
|
+
});
|
|
553
|
+
export function patchAgentStateRequestBodyToJSON(patchAgentStateRequestBody) {
|
|
554
|
+
return JSON.stringify(PatchAgentStateRequestBody$outboundSchema.parse(patchAgentStateRequestBody));
|
|
555
|
+
}
|
|
556
|
+
/** @internal */
|
|
557
|
+
export const PatchAgentStateRequest$outboundSchema = z.object({
|
|
558
|
+
key: z.string(),
|
|
559
|
+
body: z.lazy(() => PatchAgentStateRequestBody$outboundSchema),
|
|
560
|
+
});
|
|
561
|
+
export function patchAgentStateRequestToJSON(patchAgentStateRequest) {
|
|
562
|
+
return JSON.stringify(PatchAgentStateRequest$outboundSchema.parse(patchAgentStateRequest));
|
|
563
|
+
}
|
|
564
|
+
/** @internal */
|
|
565
|
+
export const PatchAgentStateResponse$inboundSchema = z.object({
|
|
566
|
+
success: types.literal(true),
|
|
567
|
+
key: types.string(),
|
|
568
|
+
data: z.any(),
|
|
569
|
+
updatedAt: types.nullable(types.string()),
|
|
570
|
+
creditsUsed: types.number(),
|
|
571
|
+
retryAfter: types.number(),
|
|
572
|
+
});
|
|
573
|
+
export function patchAgentStateResponseFromJSON(jsonString) {
|
|
574
|
+
return safeParse(jsonString, (x) => PatchAgentStateResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchAgentStateResponse' from JSON`);
|
|
575
|
+
}
|
|
576
|
+
/** @internal */
|
|
577
|
+
export const ListCampaignsType$outboundSchema = z.enum(ListCampaignsType);
|
|
578
|
+
/** @internal */
|
|
579
|
+
export const ListCampaignsRequest$outboundSchema = z.object({
|
|
580
|
+
type: z.optional(ListCampaignsType$outboundSchema),
|
|
581
|
+
status: z.optional(z.string()),
|
|
582
|
+
limit: z._default(z.int(), 50),
|
|
583
|
+
offset: z._default(z.int(), 0),
|
|
584
|
+
});
|
|
585
|
+
export function listCampaignsRequestToJSON(listCampaignsRequest) {
|
|
586
|
+
return JSON.stringify(ListCampaignsRequest$outboundSchema.parse(listCampaignsRequest));
|
|
587
|
+
}
|
|
588
|
+
/** @internal */
|
|
589
|
+
export const ListCampaignsStageCounts$inboundSchema = z.object({
|
|
590
|
+
contact: types.number(),
|
|
591
|
+
lead: types.number(),
|
|
592
|
+
qualified: types.number(),
|
|
593
|
+
approved: types.number(),
|
|
594
|
+
rejected: types.number(),
|
|
595
|
+
});
|
|
596
|
+
export function listCampaignsStageCountsFromJSON(jsonString) {
|
|
597
|
+
return safeParse(jsonString, (x) => ListCampaignsStageCounts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListCampaignsStageCounts' from JSON`);
|
|
598
|
+
}
|
|
599
|
+
/** @internal */
|
|
600
|
+
export const ListCampaignsCampaign$inboundSchema = z.object({
|
|
601
|
+
id: types.string(),
|
|
602
|
+
name: types.string(),
|
|
603
|
+
description: types.nullable(types.string()),
|
|
604
|
+
context: types.nullable(types.string()),
|
|
605
|
+
type: types.string(),
|
|
606
|
+
status: types.string(),
|
|
607
|
+
totalContacts: types.number(),
|
|
608
|
+
stageCounts: types.optional(z.lazy(() => ListCampaignsStageCounts$inboundSchema)),
|
|
609
|
+
createdAt: types.string(),
|
|
610
|
+
updatedAt: types.string(),
|
|
611
|
+
});
|
|
612
|
+
export function listCampaignsCampaignFromJSON(jsonString) {
|
|
613
|
+
return safeParse(jsonString, (x) => ListCampaignsCampaign$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListCampaignsCampaign' from JSON`);
|
|
614
|
+
}
|
|
615
|
+
/** @internal */
|
|
616
|
+
export const ListCampaignsPagination$inboundSchema = z.object({
|
|
617
|
+
limit: types.number(),
|
|
618
|
+
offset: types.number(),
|
|
619
|
+
total: types.number(),
|
|
620
|
+
});
|
|
621
|
+
export function listCampaignsPaginationFromJSON(jsonString) {
|
|
622
|
+
return safeParse(jsonString, (x) => ListCampaignsPagination$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListCampaignsPagination' from JSON`);
|
|
623
|
+
}
|
|
624
|
+
/** @internal */
|
|
625
|
+
export const ListCampaignsResponse$inboundSchema = z.object({
|
|
626
|
+
success: types.literal(true),
|
|
627
|
+
campaigns: z.array(z.lazy(() => ListCampaignsCampaign$inboundSchema)),
|
|
628
|
+
pagination: z.lazy(() => ListCampaignsPagination$inboundSchema),
|
|
629
|
+
creditsUsed: types.number(),
|
|
630
|
+
retryAfter: types.number(),
|
|
631
|
+
});
|
|
632
|
+
export function listCampaignsResponseFromJSON(jsonString) {
|
|
633
|
+
return safeParse(jsonString, (x) => ListCampaignsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListCampaignsResponse' from JSON`);
|
|
634
|
+
}
|
|
635
|
+
/** @internal */
|
|
636
|
+
export const CreateCampaignType$outboundSchema = z.enum(CreateCampaignType);
|
|
637
|
+
/** @internal */
|
|
638
|
+
export const CreateCampaignRequest$outboundSchema = z.object({
|
|
639
|
+
name: z.string(),
|
|
640
|
+
description: z.optional(z.string()),
|
|
641
|
+
context: z.optional(z.string()),
|
|
642
|
+
type: z._default(CreateCampaignType$outboundSchema, "lead_gen"),
|
|
643
|
+
});
|
|
644
|
+
export function createCampaignRequestToJSON(createCampaignRequest) {
|
|
645
|
+
return JSON.stringify(CreateCampaignRequest$outboundSchema.parse(createCampaignRequest));
|
|
646
|
+
}
|
|
647
|
+
/** @internal */
|
|
648
|
+
export const CreateCampaignStageCounts$inboundSchema = z.object({
|
|
649
|
+
contact: types.number(),
|
|
650
|
+
lead: types.number(),
|
|
651
|
+
qualified: types.number(),
|
|
652
|
+
approved: types.number(),
|
|
653
|
+
rejected: types.number(),
|
|
654
|
+
});
|
|
655
|
+
export function createCampaignStageCountsFromJSON(jsonString) {
|
|
656
|
+
return safeParse(jsonString, (x) => CreateCampaignStageCounts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateCampaignStageCounts' from JSON`);
|
|
657
|
+
}
|
|
658
|
+
/** @internal */
|
|
659
|
+
export const CreateCampaignCampaign$inboundSchema = z.object({
|
|
660
|
+
id: types.string(),
|
|
661
|
+
name: types.string(),
|
|
662
|
+
description: types.nullable(types.string()),
|
|
663
|
+
context: types.nullable(types.string()),
|
|
664
|
+
type: types.string(),
|
|
665
|
+
status: types.string(),
|
|
666
|
+
totalContacts: types.number(),
|
|
667
|
+
stageCounts: types.optional(z.lazy(() => CreateCampaignStageCounts$inboundSchema)),
|
|
668
|
+
createdAt: types.string(),
|
|
669
|
+
updatedAt: types.string(),
|
|
670
|
+
});
|
|
671
|
+
export function createCampaignCampaignFromJSON(jsonString) {
|
|
672
|
+
return safeParse(jsonString, (x) => CreateCampaignCampaign$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateCampaignCampaign' from JSON`);
|
|
673
|
+
}
|
|
674
|
+
/** @internal */
|
|
675
|
+
export const CreateCampaignResponse$inboundSchema = z.object({
|
|
676
|
+
success: types.literal(true),
|
|
677
|
+
campaign: z.lazy(() => CreateCampaignCampaign$inboundSchema),
|
|
678
|
+
creditsUsed: types.number(),
|
|
679
|
+
retryAfter: types.number(),
|
|
680
|
+
});
|
|
681
|
+
export function createCampaignResponseFromJSON(jsonString) {
|
|
682
|
+
return safeParse(jsonString, (x) => CreateCampaignResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateCampaignResponse' from JSON`);
|
|
683
|
+
}
|
|
684
|
+
/** @internal */
|
|
685
|
+
export const UpdateCampaignStatus$outboundSchema = z.enum(UpdateCampaignStatus);
|
|
686
|
+
/** @internal */
|
|
687
|
+
export const UpdateCampaignRequestBody$outboundSchema = z.object({
|
|
688
|
+
name: z.optional(z.string()),
|
|
689
|
+
description: z.optional(z.string()),
|
|
690
|
+
context: z.optional(z.string()),
|
|
691
|
+
status: z.optional(UpdateCampaignStatus$outboundSchema),
|
|
692
|
+
scheduledStartTime: z.optional(z.string()),
|
|
693
|
+
scheduledStopTime: z.optional(z.string()),
|
|
694
|
+
timezone: z.optional(z.string()),
|
|
695
|
+
runDays: z.optional(z.array(z.string())),
|
|
696
|
+
dailyActionLimit: z.optional(z.nullable(z.int())),
|
|
697
|
+
});
|
|
698
|
+
export function updateCampaignRequestBodyToJSON(updateCampaignRequestBody) {
|
|
699
|
+
return JSON.stringify(UpdateCampaignRequestBody$outboundSchema.parse(updateCampaignRequestBody));
|
|
700
|
+
}
|
|
701
|
+
/** @internal */
|
|
702
|
+
export const UpdateCampaignRequest$outboundSchema = z.object({
|
|
703
|
+
campaignId: z.string(),
|
|
704
|
+
body: z.lazy(() => UpdateCampaignRequestBody$outboundSchema),
|
|
705
|
+
});
|
|
706
|
+
export function updateCampaignRequestToJSON(updateCampaignRequest) {
|
|
707
|
+
return JSON.stringify(UpdateCampaignRequest$outboundSchema.parse(updateCampaignRequest));
|
|
708
|
+
}
|
|
709
|
+
/** @internal */
|
|
710
|
+
export const UpdateCampaignStageCounts$inboundSchema = z.object({
|
|
711
|
+
contact: types.number(),
|
|
712
|
+
lead: types.number(),
|
|
713
|
+
qualified: types.number(),
|
|
714
|
+
approved: types.number(),
|
|
715
|
+
rejected: types.number(),
|
|
716
|
+
});
|
|
717
|
+
export function updateCampaignStageCountsFromJSON(jsonString) {
|
|
718
|
+
return safeParse(jsonString, (x) => UpdateCampaignStageCounts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateCampaignStageCounts' from JSON`);
|
|
719
|
+
}
|
|
720
|
+
/** @internal */
|
|
721
|
+
export const UpdateCampaignCampaign$inboundSchema = z.object({
|
|
722
|
+
id: types.string(),
|
|
723
|
+
name: types.string(),
|
|
724
|
+
description: types.nullable(types.string()),
|
|
725
|
+
context: types.nullable(types.string()),
|
|
726
|
+
type: types.string(),
|
|
727
|
+
status: types.string(),
|
|
728
|
+
totalContacts: types.number(),
|
|
729
|
+
stageCounts: types.optional(z.lazy(() => UpdateCampaignStageCounts$inboundSchema)),
|
|
730
|
+
createdAt: types.string(),
|
|
731
|
+
updatedAt: types.string(),
|
|
732
|
+
});
|
|
733
|
+
export function updateCampaignCampaignFromJSON(jsonString) {
|
|
734
|
+
return safeParse(jsonString, (x) => UpdateCampaignCampaign$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateCampaignCampaign' from JSON`);
|
|
735
|
+
}
|
|
736
|
+
/** @internal */
|
|
737
|
+
export const UpdateCampaignResponse$inboundSchema = z.object({
|
|
738
|
+
success: types.literal(true),
|
|
739
|
+
campaign: z.lazy(() => UpdateCampaignCampaign$inboundSchema),
|
|
740
|
+
creditsUsed: types.number(),
|
|
741
|
+
retryAfter: types.number(),
|
|
742
|
+
});
|
|
743
|
+
export function updateCampaignResponseFromJSON(jsonString) {
|
|
744
|
+
return safeParse(jsonString, (x) => UpdateCampaignResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateCampaignResponse' from JSON`);
|
|
745
|
+
}
|
|
746
|
+
/** @internal */
|
|
747
|
+
export const ListCampaignContactsLifecycleStage$outboundSchema = z.enum(ListCampaignContactsLifecycleStage);
|
|
748
|
+
/** @internal */
|
|
749
|
+
export const ListCampaignContactsRequest$outboundSchema = z.object({
|
|
750
|
+
lifecycleStage: z.optional(ListCampaignContactsLifecycleStage$outboundSchema),
|
|
751
|
+
source: z.optional(z.string()),
|
|
752
|
+
sourceAngle: z.optional(z.string()),
|
|
753
|
+
minHotScore: z.optional(z.int()),
|
|
754
|
+
limit: z._default(z.int(), 50),
|
|
755
|
+
offset: z._default(z.int(), 0),
|
|
756
|
+
campaignId: z.string(),
|
|
757
|
+
});
|
|
758
|
+
export function listCampaignContactsRequestToJSON(listCampaignContactsRequest) {
|
|
759
|
+
return JSON.stringify(ListCampaignContactsRequest$outboundSchema.parse(listCampaignContactsRequest));
|
|
760
|
+
}
|
|
761
|
+
/** @internal */
|
|
762
|
+
export const ListCampaignContactsContact$inboundSchema = z.object({
|
|
763
|
+
id: types.string(),
|
|
764
|
+
linkedinUrl: types.string(),
|
|
765
|
+
profileUrn: types.nullable(types.string()),
|
|
766
|
+
publicIdentifier: types.nullable(types.string()),
|
|
767
|
+
name: types.string(),
|
|
768
|
+
lifecycleStage: types.string(),
|
|
769
|
+
hotScore: types.number(),
|
|
770
|
+
qualificationNotes: types.nullable(types.string()),
|
|
771
|
+
notes: types.nullable(types.string()),
|
|
772
|
+
stageChangedAt: types.nullable(types.string()),
|
|
773
|
+
profileData: types.nullable(z.any()),
|
|
774
|
+
profileUpdatedAt: types.nullable(types.string()),
|
|
775
|
+
conversationData: types.nullable(z.any()),
|
|
776
|
+
conversationUpdatedAt: types.nullable(types.string()),
|
|
777
|
+
outreachStatus: types.string(),
|
|
778
|
+
lastContactedAt: types.nullable(types.string()),
|
|
779
|
+
lastRepliedAt: types.nullable(types.string()),
|
|
780
|
+
nextFollowUpAt: types.nullable(types.string()),
|
|
781
|
+
doNotContact: types.boolean(),
|
|
782
|
+
tags: z.array(types.string()),
|
|
783
|
+
createdAt: types.string(),
|
|
784
|
+
updatedAt: types.string(),
|
|
785
|
+
source: types.string(),
|
|
786
|
+
sourceAngle: types.nullable(types.string()),
|
|
787
|
+
addedAt: types.string(),
|
|
788
|
+
});
|
|
789
|
+
export function listCampaignContactsContactFromJSON(jsonString) {
|
|
790
|
+
return safeParse(jsonString, (x) => ListCampaignContactsContact$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListCampaignContactsContact' from JSON`);
|
|
791
|
+
}
|
|
792
|
+
/** @internal */
|
|
793
|
+
export const ListCampaignContactsPagination$inboundSchema = z.object({
|
|
794
|
+
limit: types.number(),
|
|
795
|
+
offset: types.number(),
|
|
796
|
+
total: types.number(),
|
|
797
|
+
});
|
|
798
|
+
export function listCampaignContactsPaginationFromJSON(jsonString) {
|
|
799
|
+
return safeParse(jsonString, (x) => ListCampaignContactsPagination$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListCampaignContactsPagination' from JSON`);
|
|
800
|
+
}
|
|
801
|
+
/** @internal */
|
|
802
|
+
export const ListCampaignContactsResponse$inboundSchema = z.object({
|
|
803
|
+
success: types.literal(true),
|
|
804
|
+
contacts: z.array(z.lazy(() => ListCampaignContactsContact$inboundSchema)),
|
|
805
|
+
pagination: z.lazy(() => ListCampaignContactsPagination$inboundSchema),
|
|
806
|
+
creditsUsed: types.number(),
|
|
807
|
+
retryAfter: types.number(),
|
|
808
|
+
});
|
|
809
|
+
export function listCampaignContactsResponseFromJSON(jsonString) {
|
|
810
|
+
return safeParse(jsonString, (x) => ListCampaignContactsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListCampaignContactsResponse' from JSON`);
|
|
811
|
+
}
|
|
812
|
+
/** @internal */
|
|
813
|
+
export const AddCampaignContactsSource$outboundSchema = z.enum(AddCampaignContactsSource);
|
|
814
|
+
/** @internal */
|
|
815
|
+
export const AddCampaignContactsLifecycleStage$outboundSchema = z.enum(AddCampaignContactsLifecycleStage);
|
|
816
|
+
/** @internal */
|
|
817
|
+
export const AddCampaignContactsContact$outboundSchema = z.object({
|
|
818
|
+
linkedinUrl: z.string(),
|
|
819
|
+
profileUrn: z.optional(z.nullable(z.string())),
|
|
820
|
+
publicIdentifier: z.optional(z.nullable(z.string())),
|
|
821
|
+
name: z.string(),
|
|
822
|
+
source: z._default(AddCampaignContactsSource$outboundSchema, "manual_import"),
|
|
823
|
+
sourceAngle: z.optional(z.string()),
|
|
824
|
+
lifecycleStage: z.optional(AddCampaignContactsLifecycleStage$outboundSchema),
|
|
825
|
+
hotScore: z.optional(z.int()),
|
|
826
|
+
qualificationNotes: z.optional(z.string()),
|
|
827
|
+
notes: z.optional(z.string()),
|
|
828
|
+
});
|
|
829
|
+
export function addCampaignContactsContactToJSON(addCampaignContactsContact) {
|
|
830
|
+
return JSON.stringify(AddCampaignContactsContact$outboundSchema.parse(addCampaignContactsContact));
|
|
831
|
+
}
|
|
832
|
+
/** @internal */
|
|
833
|
+
export const AddCampaignContactsRequestBody$outboundSchema = z.object({
|
|
834
|
+
contacts: z.array(z.lazy(() => AddCampaignContactsContact$outboundSchema)),
|
|
835
|
+
});
|
|
836
|
+
export function addCampaignContactsRequestBodyToJSON(addCampaignContactsRequestBody) {
|
|
837
|
+
return JSON.stringify(AddCampaignContactsRequestBody$outboundSchema.parse(addCampaignContactsRequestBody));
|
|
838
|
+
}
|
|
839
|
+
/** @internal */
|
|
840
|
+
export const AddCampaignContactsRequest$outboundSchema = z.object({
|
|
841
|
+
campaignId: z.string(),
|
|
842
|
+
body: z.lazy(() => AddCampaignContactsRequestBody$outboundSchema),
|
|
843
|
+
});
|
|
844
|
+
export function addCampaignContactsRequestToJSON(addCampaignContactsRequest) {
|
|
845
|
+
return JSON.stringify(AddCampaignContactsRequest$outboundSchema.parse(addCampaignContactsRequest));
|
|
846
|
+
}
|
|
847
|
+
/** @internal */
|
|
848
|
+
export const AddCampaignContactsResults$inboundSchema = z.object({
|
|
849
|
+
created: types.number(),
|
|
850
|
+
skipped: types.number(),
|
|
851
|
+
errors: z.array(types.string()),
|
|
852
|
+
});
|
|
853
|
+
export function addCampaignContactsResultsFromJSON(jsonString) {
|
|
854
|
+
return safeParse(jsonString, (x) => AddCampaignContactsResults$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AddCampaignContactsResults' from JSON`);
|
|
855
|
+
}
|
|
856
|
+
/** @internal */
|
|
857
|
+
export const AddCampaignContactsResponse$inboundSchema = z.object({
|
|
858
|
+
success: types.literal(true),
|
|
859
|
+
results: z.lazy(() => AddCampaignContactsResults$inboundSchema),
|
|
860
|
+
creditsUsed: types.number(),
|
|
861
|
+
retryAfter: types.number(),
|
|
862
|
+
});
|
|
863
|
+
export function addCampaignContactsResponseFromJSON(jsonString) {
|
|
864
|
+
return safeParse(jsonString, (x) => AddCampaignContactsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AddCampaignContactsResponse' from JSON`);
|
|
865
|
+
}
|
|
866
|
+
/** @internal */
|
|
867
|
+
export const GetContactByUrlRequest$outboundSchema = z.object({
|
|
868
|
+
linkedinUrl: z.string(),
|
|
869
|
+
});
|
|
870
|
+
export function getContactByUrlRequestToJSON(getContactByUrlRequest) {
|
|
871
|
+
return JSON.stringify(GetContactByUrlRequest$outboundSchema.parse(getContactByUrlRequest));
|
|
872
|
+
}
|
|
873
|
+
/** @internal */
|
|
874
|
+
export const GetContactByUrlActivity$inboundSchema = z.object({
|
|
875
|
+
id: types.string(),
|
|
876
|
+
type: types.string(),
|
|
877
|
+
content: types.nullable(types.string()),
|
|
878
|
+
metadata: types.nullable(z.any()),
|
|
879
|
+
createdAt: types.string(),
|
|
880
|
+
});
|
|
881
|
+
export function getContactByUrlActivityFromJSON(jsonString) {
|
|
882
|
+
return safeParse(jsonString, (x) => GetContactByUrlActivity$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetContactByUrlActivity' from JSON`);
|
|
883
|
+
}
|
|
884
|
+
/** @internal */
|
|
885
|
+
export const GetContactByUrlCampaign$inboundSchema = z.object({
|
|
886
|
+
campaignId: types.string(),
|
|
887
|
+
campaignName: types.string(),
|
|
888
|
+
campaignStatus: types.string(),
|
|
889
|
+
source: types.string(),
|
|
890
|
+
sourceAngle: types.nullable(types.string()),
|
|
891
|
+
addedAt: types.string(),
|
|
892
|
+
});
|
|
893
|
+
export function getContactByUrlCampaignFromJSON(jsonString) {
|
|
894
|
+
return safeParse(jsonString, (x) => GetContactByUrlCampaign$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetContactByUrlCampaign' from JSON`);
|
|
895
|
+
}
|
|
896
|
+
/** @internal */
|
|
897
|
+
export const GetContactByUrlContact$inboundSchema = z.object({
|
|
898
|
+
id: types.string(),
|
|
899
|
+
linkedinUrl: types.string(),
|
|
900
|
+
profileUrn: types.nullable(types.string()),
|
|
901
|
+
publicIdentifier: types.nullable(types.string()),
|
|
902
|
+
name: types.string(),
|
|
903
|
+
lifecycleStage: types.string(),
|
|
904
|
+
hotScore: types.number(),
|
|
905
|
+
qualificationNotes: types.nullable(types.string()),
|
|
906
|
+
notes: types.nullable(types.string()),
|
|
907
|
+
stageChangedAt: types.nullable(types.string()),
|
|
908
|
+
profileData: types.nullable(z.any()),
|
|
909
|
+
profileUpdatedAt: types.nullable(types.string()),
|
|
910
|
+
conversationData: types.nullable(z.any()),
|
|
911
|
+
conversationUpdatedAt: types.nullable(types.string()),
|
|
912
|
+
outreachStatus: types.string(),
|
|
913
|
+
lastContactedAt: types.nullable(types.string()),
|
|
914
|
+
lastRepliedAt: types.nullable(types.string()),
|
|
915
|
+
nextFollowUpAt: types.nullable(types.string()),
|
|
916
|
+
doNotContact: types.boolean(),
|
|
917
|
+
tags: z.array(types.string()),
|
|
918
|
+
createdAt: types.string(),
|
|
919
|
+
updatedAt: types.string(),
|
|
920
|
+
activities: z.array(z.lazy(() => GetContactByUrlActivity$inboundSchema)),
|
|
921
|
+
campaigns: z.array(z.lazy(() => GetContactByUrlCampaign$inboundSchema)),
|
|
922
|
+
});
|
|
923
|
+
export function getContactByUrlContactFromJSON(jsonString) {
|
|
924
|
+
return safeParse(jsonString, (x) => GetContactByUrlContact$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetContactByUrlContact' from JSON`);
|
|
925
|
+
}
|
|
926
|
+
/** @internal */
|
|
927
|
+
export const GetContactByUrlResponse$inboundSchema = z.object({
|
|
928
|
+
success: types.literal(true),
|
|
929
|
+
contact: z.lazy(() => GetContactByUrlContact$inboundSchema),
|
|
930
|
+
creditsUsed: types.number(),
|
|
931
|
+
retryAfter: types.number(),
|
|
932
|
+
});
|
|
933
|
+
export function getContactByUrlResponseFromJSON(jsonString) {
|
|
934
|
+
return safeParse(jsonString, (x) => GetContactByUrlResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetContactByUrlResponse' from JSON`);
|
|
935
|
+
}
|
|
936
|
+
/** @internal */
|
|
937
|
+
export const QueryParamStatus$outboundSchema = z.enum(QueryParamStatus);
|
|
938
|
+
/** @internal */
|
|
939
|
+
export const ListScheduledMessagesRequest$outboundSchema = z.object({
|
|
940
|
+
status: z.optional(QueryParamStatus$outboundSchema),
|
|
941
|
+
contactId: z.optional(z.string()),
|
|
942
|
+
campaignSlug: z.optional(z.string()),
|
|
943
|
+
limit: z._default(z.int(), 50),
|
|
944
|
+
offset: z._default(z.int(), 0),
|
|
945
|
+
});
|
|
946
|
+
export function listScheduledMessagesRequestToJSON(listScheduledMessagesRequest) {
|
|
947
|
+
return JSON.stringify(ListScheduledMessagesRequest$outboundSchema.parse(listScheduledMessagesRequest));
|
|
948
|
+
}
|
|
949
|
+
/** @internal */
|
|
950
|
+
export const ListScheduledMessagesStatusResponse$inboundSchema = openEnums.inboundSchema(ListScheduledMessagesStatusResponse);
|
|
951
|
+
/** @internal */
|
|
952
|
+
export const ListScheduledMessagesMessage$inboundSchema = z.object({
|
|
953
|
+
id: types.string(),
|
|
954
|
+
contactId: types.string(),
|
|
955
|
+
contactName: types.nullable(types.string()),
|
|
956
|
+
contactLinkedinUrl: types.nullable(types.string()),
|
|
957
|
+
message: types.string(),
|
|
958
|
+
status: ListScheduledMessagesStatusResponse$inboundSchema,
|
|
959
|
+
scheduledSendAt: types.nullable(types.string()),
|
|
960
|
+
sentAt: types.nullable(types.string()),
|
|
961
|
+
campaignSlug: types.nullable(types.string()),
|
|
962
|
+
createdAt: types.string(),
|
|
963
|
+
updatedAt: types.string(),
|
|
964
|
+
});
|
|
965
|
+
export function listScheduledMessagesMessageFromJSON(jsonString) {
|
|
966
|
+
return safeParse(jsonString, (x) => ListScheduledMessagesMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListScheduledMessagesMessage' from JSON`);
|
|
967
|
+
}
|
|
968
|
+
/** @internal */
|
|
969
|
+
export const ListScheduledMessagesPagination$inboundSchema = z.object({
|
|
970
|
+
limit: types.number(),
|
|
971
|
+
offset: types.number(),
|
|
972
|
+
total: types.number(),
|
|
973
|
+
});
|
|
974
|
+
export function listScheduledMessagesPaginationFromJSON(jsonString) {
|
|
975
|
+
return safeParse(jsonString, (x) => ListScheduledMessagesPagination$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListScheduledMessagesPagination' from JSON`);
|
|
976
|
+
}
|
|
977
|
+
/** @internal */
|
|
978
|
+
export const ListScheduledMessagesResponse$inboundSchema = z.object({
|
|
979
|
+
success: types.literal(true),
|
|
980
|
+
messages: z.array(z.lazy(() => ListScheduledMessagesMessage$inboundSchema)),
|
|
981
|
+
pagination: z.lazy(() => ListScheduledMessagesPagination$inboundSchema),
|
|
982
|
+
creditsUsed: types.number(),
|
|
983
|
+
retryAfter: types.number(),
|
|
984
|
+
});
|
|
985
|
+
export function listScheduledMessagesResponseFromJSON(jsonString) {
|
|
986
|
+
return safeParse(jsonString, (x) => ListScheduledMessagesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListScheduledMessagesResponse' from JSON`);
|
|
987
|
+
}
|
|
988
|
+
/** @internal */
|
|
989
|
+
export const CreateScheduledMessageStatusRequest$outboundSchema = z.enum(CreateScheduledMessageStatusRequest);
|
|
990
|
+
/** @internal */
|
|
991
|
+
export const CreateScheduledMessageRequest$outboundSchema = z.object({
|
|
992
|
+
contactId: z.string(),
|
|
993
|
+
message: z.string(),
|
|
994
|
+
status: z.optional(CreateScheduledMessageStatusRequest$outboundSchema),
|
|
995
|
+
scheduledSendAt: z.optional(z.string()),
|
|
996
|
+
campaignSlug: z.optional(z.string()),
|
|
997
|
+
});
|
|
998
|
+
export function createScheduledMessageRequestToJSON(createScheduledMessageRequest) {
|
|
999
|
+
return JSON.stringify(CreateScheduledMessageRequest$outboundSchema.parse(createScheduledMessageRequest));
|
|
1000
|
+
}
|
|
1001
|
+
/** @internal */
|
|
1002
|
+
export const CreateScheduledMessageStatusResponse$inboundSchema = openEnums.inboundSchema(CreateScheduledMessageStatusResponse);
|
|
1003
|
+
/** @internal */
|
|
1004
|
+
export const CreateScheduledMessageMessage$inboundSchema = z.object({
|
|
1005
|
+
id: types.string(),
|
|
1006
|
+
contactId: types.string(),
|
|
1007
|
+
contactName: types.nullable(types.string()),
|
|
1008
|
+
contactLinkedinUrl: types.nullable(types.string()),
|
|
1009
|
+
message: types.string(),
|
|
1010
|
+
status: CreateScheduledMessageStatusResponse$inboundSchema,
|
|
1011
|
+
scheduledSendAt: types.nullable(types.string()),
|
|
1012
|
+
sentAt: types.nullable(types.string()),
|
|
1013
|
+
campaignSlug: types.nullable(types.string()),
|
|
1014
|
+
createdAt: types.string(),
|
|
1015
|
+
updatedAt: types.string(),
|
|
1016
|
+
});
|
|
1017
|
+
export function createScheduledMessageMessageFromJSON(jsonString) {
|
|
1018
|
+
return safeParse(jsonString, (x) => CreateScheduledMessageMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateScheduledMessageMessage' from JSON`);
|
|
1019
|
+
}
|
|
1020
|
+
/** @internal */
|
|
1021
|
+
export const CreateScheduledMessageResponse$inboundSchema = z.object({
|
|
1022
|
+
success: types.literal(true),
|
|
1023
|
+
message: z.lazy(() => CreateScheduledMessageMessage$inboundSchema),
|
|
1024
|
+
creditsUsed: types.number(),
|
|
1025
|
+
retryAfter: types.number(),
|
|
1026
|
+
});
|
|
1027
|
+
export function createScheduledMessageResponseFromJSON(jsonString) {
|
|
1028
|
+
return safeParse(jsonString, (x) => CreateScheduledMessageResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateScheduledMessageResponse' from JSON`);
|
|
1029
|
+
}
|
|
1030
|
+
/** @internal */
|
|
1031
|
+
export const BatchScheduleMessagesRequest$outboundSchema = z.object({
|
|
1032
|
+
contactIds: z.optional(z.array(z.string())),
|
|
1033
|
+
messageIds: z.optional(z.array(z.string())),
|
|
1034
|
+
scheduledSendAt: z.string(),
|
|
1035
|
+
});
|
|
1036
|
+
export function batchScheduleMessagesRequestToJSON(batchScheduleMessagesRequest) {
|
|
1037
|
+
return JSON.stringify(BatchScheduleMessagesRequest$outboundSchema.parse(batchScheduleMessagesRequest));
|
|
1038
|
+
}
|
|
1039
|
+
/** @internal */
|
|
1040
|
+
export const BatchScheduleMessagesResponse$inboundSchema = z.object({
|
|
1041
|
+
success: types.literal(true),
|
|
1042
|
+
scheduled: types.number(),
|
|
1043
|
+
creditsUsed: types.number(),
|
|
1044
|
+
retryAfter: types.number(),
|
|
1045
|
+
});
|
|
1046
|
+
export function batchScheduleMessagesResponseFromJSON(jsonString) {
|
|
1047
|
+
return safeParse(jsonString, (x) => BatchScheduleMessagesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BatchScheduleMessagesResponse' from JSON`);
|
|
1048
|
+
}
|
|
1049
|
+
/** @internal */
|
|
1050
|
+
export const CancelScheduledMessagesRequest$outboundSchema = z.object({
|
|
1051
|
+
messageIds: z.optional(z.array(z.string())),
|
|
1052
|
+
contactIds: z.optional(z.array(z.string())),
|
|
1053
|
+
});
|
|
1054
|
+
export function cancelScheduledMessagesRequestToJSON(cancelScheduledMessagesRequest) {
|
|
1055
|
+
return JSON.stringify(CancelScheduledMessagesRequest$outboundSchema.parse(cancelScheduledMessagesRequest));
|
|
1056
|
+
}
|
|
1057
|
+
/** @internal */
|
|
1058
|
+
export const CancelScheduledMessagesResponse$inboundSchema = z.object({
|
|
1059
|
+
success: types.literal(true),
|
|
1060
|
+
cancelled: types.number(),
|
|
1061
|
+
creditsUsed: types.number(),
|
|
1062
|
+
retryAfter: types.number(),
|
|
1063
|
+
});
|
|
1064
|
+
export function cancelScheduledMessagesResponseFromJSON(jsonString) {
|
|
1065
|
+
return safeParse(jsonString, (x) => CancelScheduledMessagesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CancelScheduledMessagesResponse' from JSON`);
|
|
1066
|
+
}
|
|
1067
|
+
/** @internal */
|
|
1068
|
+
export const ListContextRequest$outboundSchema = z.object({
|
|
1069
|
+
scope: z.optional(z.string()),
|
|
1070
|
+
type: z.optional(z.string()),
|
|
1071
|
+
});
|
|
1072
|
+
export function listContextRequestToJSON(listContextRequest) {
|
|
1073
|
+
return JSON.stringify(ListContextRequest$outboundSchema.parse(listContextRequest));
|
|
1074
|
+
}
|
|
1075
|
+
/** @internal */
|
|
1076
|
+
export const ListContextEntry$inboundSchema = z.object({
|
|
1077
|
+
type: types.string(),
|
|
1078
|
+
label: types.nullable(types.string()),
|
|
1079
|
+
content: types.string(),
|
|
1080
|
+
scope: types.string(),
|
|
1081
|
+
updatedAt: types.string(),
|
|
1082
|
+
});
|
|
1083
|
+
export function listContextEntryFromJSON(jsonString) {
|
|
1084
|
+
return safeParse(jsonString, (x) => ListContextEntry$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListContextEntry' from JSON`);
|
|
1085
|
+
}
|
|
1086
|
+
/** @internal */
|
|
1087
|
+
export const ListContextResponse$inboundSchema = z.object({
|
|
1088
|
+
success: types.literal(true),
|
|
1089
|
+
entries: z.array(z.lazy(() => ListContextEntry$inboundSchema)),
|
|
1090
|
+
creditsUsed: types.number(),
|
|
1091
|
+
retryAfter: types.number(),
|
|
1092
|
+
});
|
|
1093
|
+
export function listContextResponseFromJSON(jsonString) {
|
|
1094
|
+
return safeParse(jsonString, (x) => ListContextResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListContextResponse' from JSON`);
|
|
1095
|
+
}
|
|
1096
|
+
/** @internal */
|
|
1097
|
+
export const SetContextRequest$outboundSchema = z.object({
|
|
1098
|
+
type: z.string(),
|
|
1099
|
+
content: z.string(),
|
|
1100
|
+
scope: z.optional(z.string()),
|
|
1101
|
+
label: z.optional(z.string()),
|
|
1102
|
+
});
|
|
1103
|
+
export function setContextRequestToJSON(setContextRequest) {
|
|
1104
|
+
return JSON.stringify(SetContextRequest$outboundSchema.parse(setContextRequest));
|
|
1105
|
+
}
|
|
1106
|
+
/** @internal */
|
|
1107
|
+
export const SetContextEntry$inboundSchema = z.object({
|
|
1108
|
+
type: types.string(),
|
|
1109
|
+
label: types.nullable(types.string()),
|
|
1110
|
+
content: types.string(),
|
|
1111
|
+
scope: types.string(),
|
|
1112
|
+
updatedAt: types.string(),
|
|
1113
|
+
});
|
|
1114
|
+
export function setContextEntryFromJSON(jsonString) {
|
|
1115
|
+
return safeParse(jsonString, (x) => SetContextEntry$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SetContextEntry' from JSON`);
|
|
1116
|
+
}
|
|
1117
|
+
/** @internal */
|
|
1118
|
+
export const SetContextResponse$inboundSchema = z.object({
|
|
1119
|
+
success: types.literal(true),
|
|
1120
|
+
entry: z.lazy(() => SetContextEntry$inboundSchema),
|
|
1121
|
+
creditsUsed: types.number(),
|
|
1122
|
+
retryAfter: types.number(),
|
|
1123
|
+
});
|
|
1124
|
+
export function setContextResponseFromJSON(jsonString) {
|
|
1125
|
+
return safeParse(jsonString, (x) => SetContextResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SetContextResponse' from JSON`);
|
|
1126
|
+
}
|
|
1127
|
+
/** @internal */
|
|
1128
|
+
export const DeleteContextRequest$outboundSchema = z.object({
|
|
1129
|
+
type: z.string(),
|
|
1130
|
+
scope: z.optional(z.string()),
|
|
1131
|
+
});
|
|
1132
|
+
export function deleteContextRequestToJSON(deleteContextRequest) {
|
|
1133
|
+
return JSON.stringify(DeleteContextRequest$outboundSchema.parse(deleteContextRequest));
|
|
1134
|
+
}
|
|
1135
|
+
/** @internal */
|
|
1136
|
+
export const DeleteContextResponse$inboundSchema = z.object({
|
|
1137
|
+
success: types.literal(true),
|
|
1138
|
+
creditsUsed: types.number(),
|
|
1139
|
+
retryAfter: types.number(),
|
|
1140
|
+
});
|
|
1141
|
+
export function deleteContextResponseFromJSON(jsonString) {
|
|
1142
|
+
return safeParse(jsonString, (x) => DeleteContextResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteContextResponse' from JSON`);
|
|
1143
|
+
}
|
|
1144
|
+
/** @internal */
|
|
1145
|
+
export const Schedule$inboundSchema = z
|
|
1146
|
+
.object({
|
|
1147
|
+
scheduleId: types.string(),
|
|
1148
|
+
type: types.string(),
|
|
1149
|
+
state: types.string(),
|
|
1150
|
+
cron: types.nullable(types.string()),
|
|
1151
|
+
nextExecution: types.nullable(types.string()),
|
|
1152
|
+
lastRunAt: types.nullable(types.string()),
|
|
1153
|
+
lastRunStatus: types.nullable(types.string()),
|
|
1154
|
+
});
|
|
1155
|
+
export function scheduleFromJSON(jsonString) {
|
|
1156
|
+
return safeParse(jsonString, (x) => Schedule$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Schedule' from JSON`);
|
|
1157
|
+
}
|
|
1158
|
+
/** @internal */
|
|
1159
|
+
export const ListCronSchedulesResponse$inboundSchema = z.object({
|
|
1160
|
+
success: types.literal(true),
|
|
1161
|
+
schedules: z.array(z.lazy(() => Schedule$inboundSchema)),
|
|
1162
|
+
creditsUsed: types.number(),
|
|
1163
|
+
retryAfter: types.number(),
|
|
1164
|
+
});
|
|
1165
|
+
export function listCronSchedulesResponseFromJSON(jsonString) {
|
|
1166
|
+
return safeParse(jsonString, (x) => ListCronSchedulesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListCronSchedulesResponse' from JSON`);
|
|
1167
|
+
}
|
|
1168
|
+
/** @internal */
|
|
1169
|
+
export const UpdateCronScheduleAction$outboundSchema = z.enum(UpdateCronScheduleAction);
|
|
1170
|
+
/** @internal */
|
|
1171
|
+
export const UpdateCronScheduleRequestBody$outboundSchema = z.object({
|
|
1172
|
+
action: UpdateCronScheduleAction$outboundSchema,
|
|
1173
|
+
});
|
|
1174
|
+
export function updateCronScheduleRequestBodyToJSON(updateCronScheduleRequestBody) {
|
|
1175
|
+
return JSON.stringify(UpdateCronScheduleRequestBody$outboundSchema.parse(updateCronScheduleRequestBody));
|
|
1176
|
+
}
|
|
1177
|
+
/** @internal */
|
|
1178
|
+
export const UpdateCronScheduleRequest$outboundSchema = z.object({
|
|
1179
|
+
scheduleId: z.string(),
|
|
1180
|
+
body: z.lazy(() => UpdateCronScheduleRequestBody$outboundSchema),
|
|
1181
|
+
});
|
|
1182
|
+
export function updateCronScheduleRequestToJSON(updateCronScheduleRequest) {
|
|
1183
|
+
return JSON.stringify(UpdateCronScheduleRequest$outboundSchema.parse(updateCronScheduleRequest));
|
|
1184
|
+
}
|
|
1185
|
+
/** @internal */
|
|
1186
|
+
export const UpdateCronScheduleResponse$inboundSchema = z.object({
|
|
1187
|
+
success: types.literal(true),
|
|
1188
|
+
creditsUsed: types.number(),
|
|
1189
|
+
retryAfter: types.number(),
|
|
1190
|
+
});
|
|
1191
|
+
export function updateCronScheduleResponseFromJSON(jsonString) {
|
|
1192
|
+
return safeParse(jsonString, (x) => UpdateCronScheduleResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateCronScheduleResponse' from JSON`);
|
|
1193
|
+
}
|
|
1194
|
+
//# sourceMappingURL=update-cron-schedule-response.js.map
|