bereach 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +90 -0
- package/README.md +530 -0
- package/RUNTIMES.md +48 -0
- package/esm/core.d.ts +10 -0
- package/esm/core.d.ts.map +1 -0
- package/esm/core.js +13 -0
- package/esm/core.js.map +1 -0
- package/esm/funcs/campaigns-filter.d.ts +20 -0
- package/esm/funcs/campaigns-filter.d.ts.map +1 -0
- package/esm/funcs/campaigns-filter.js +106 -0
- package/esm/funcs/campaigns-filter.js.map +1 -0
- package/esm/funcs/campaigns-get-stats.d.ts +18 -0
- package/esm/funcs/campaigns-get-stats.d.ts.map +1 -0
- package/esm/funcs/campaigns-get-stats.js +101 -0
- package/esm/funcs/campaigns-get-stats.js.map +1 -0
- package/esm/funcs/campaigns-get-status.d.ts +18 -0
- package/esm/funcs/campaigns-get-status.d.ts.map +1 -0
- package/esm/funcs/campaigns-get-status.js +101 -0
- package/esm/funcs/campaigns-get-status.js.map +1 -0
- package/esm/funcs/campaigns-sync-actions.d.ts +18 -0
- package/esm/funcs/campaigns-sync-actions.d.ts.map +1 -0
- package/esm/funcs/campaigns-sync-actions.js +101 -0
- package/esm/funcs/campaigns-sync-actions.js.map +1 -0
- package/esm/funcs/linkedin-actions-accept-invitation.d.ts +18 -0
- package/esm/funcs/linkedin-actions-accept-invitation.d.ts.map +1 -0
- package/esm/funcs/linkedin-actions-accept-invitation.js +95 -0
- package/esm/funcs/linkedin-actions-accept-invitation.js.map +1 -0
- package/esm/funcs/linkedin-actions-connect-profile.d.ts +18 -0
- package/esm/funcs/linkedin-actions-connect-profile.d.ts.map +1 -0
- package/esm/funcs/linkedin-actions-connect-profile.js +95 -0
- package/esm/funcs/linkedin-actions-connect-profile.js.map +1 -0
- package/esm/funcs/linkedin-actions-like-comment.d.ts +18 -0
- package/esm/funcs/linkedin-actions-like-comment.d.ts.map +1 -0
- package/esm/funcs/linkedin-actions-like-comment.js +95 -0
- package/esm/funcs/linkedin-actions-like-comment.js.map +1 -0
- package/esm/funcs/linkedin-actions-list-invitations.d.ts +18 -0
- package/esm/funcs/linkedin-actions-list-invitations.d.ts.map +1 -0
- package/esm/funcs/linkedin-actions-list-invitations.js +97 -0
- package/esm/funcs/linkedin-actions-list-invitations.js.map +1 -0
- package/esm/funcs/linkedin-actions-publish-post.d.ts +18 -0
- package/esm/funcs/linkedin-actions-publish-post.d.ts.map +1 -0
- package/esm/funcs/linkedin-actions-publish-post.js +95 -0
- package/esm/funcs/linkedin-actions-publish-post.js.map +1 -0
- package/esm/funcs/linkedin-actions-reply-to-comment.d.ts +18 -0
- package/esm/funcs/linkedin-actions-reply-to-comment.d.ts.map +1 -0
- package/esm/funcs/linkedin-actions-reply-to-comment.js +95 -0
- package/esm/funcs/linkedin-actions-reply-to-comment.js.map +1 -0
- package/esm/funcs/linkedin-actions-send-message.d.ts +18 -0
- package/esm/funcs/linkedin-actions-send-message.d.ts.map +1 -0
- package/esm/funcs/linkedin-actions-send-message.js +95 -0
- package/esm/funcs/linkedin-actions-send-message.js.map +1 -0
- package/esm/funcs/linkedin-chat-find-conversation.d.ts +25 -0
- package/esm/funcs/linkedin-chat-find-conversation.d.ts.map +1 -0
- package/esm/funcs/linkedin-chat-find-conversation.js +102 -0
- package/esm/funcs/linkedin-chat-find-conversation.js.map +1 -0
- package/esm/funcs/linkedin-chat-get-messages.d.ts +22 -0
- package/esm/funcs/linkedin-chat-get-messages.d.ts.map +1 -0
- package/esm/funcs/linkedin-chat-get-messages.js +99 -0
- package/esm/funcs/linkedin-chat-get-messages.js.map +1 -0
- package/esm/funcs/linkedin-chat-list-conversations.d.ts +18 -0
- package/esm/funcs/linkedin-chat-list-conversations.d.ts.map +1 -0
- package/esm/funcs/linkedin-chat-list-conversations.js +95 -0
- package/esm/funcs/linkedin-chat-list-conversations.js.map +1 -0
- package/esm/funcs/linkedin-chat-search-conversations.d.ts +18 -0
- package/esm/funcs/linkedin-chat-search-conversations.d.ts.map +1 -0
- package/esm/funcs/linkedin-chat-search-conversations.js +95 -0
- package/esm/funcs/linkedin-chat-search-conversations.js.map +1 -0
- package/esm/funcs/linkedin-scrapers-collect-comment-replies.d.ts +18 -0
- package/esm/funcs/linkedin-scrapers-collect-comment-replies.d.ts.map +1 -0
- package/esm/funcs/linkedin-scrapers-collect-comment-replies.js +95 -0
- package/esm/funcs/linkedin-scrapers-collect-comment-replies.js.map +1 -0
- package/esm/funcs/linkedin-scrapers-collect-comments.d.ts +18 -0
- package/esm/funcs/linkedin-scrapers-collect-comments.d.ts.map +1 -0
- package/esm/funcs/linkedin-scrapers-collect-comments.js +95 -0
- package/esm/funcs/linkedin-scrapers-collect-comments.js.map +1 -0
- package/esm/funcs/linkedin-scrapers-collect-likes.d.ts +18 -0
- package/esm/funcs/linkedin-scrapers-collect-likes.d.ts.map +1 -0
- package/esm/funcs/linkedin-scrapers-collect-likes.js +95 -0
- package/esm/funcs/linkedin-scrapers-collect-likes.js.map +1 -0
- package/esm/funcs/linkedin-scrapers-collect-posts.d.ts +18 -0
- package/esm/funcs/linkedin-scrapers-collect-posts.d.ts.map +1 -0
- package/esm/funcs/linkedin-scrapers-collect-posts.js +95 -0
- package/esm/funcs/linkedin-scrapers-collect-posts.js.map +1 -0
- package/esm/funcs/linkedin-scrapers-visit-company.d.ts +18 -0
- package/esm/funcs/linkedin-scrapers-visit-company.d.ts.map +1 -0
- package/esm/funcs/linkedin-scrapers-visit-company.js +95 -0
- package/esm/funcs/linkedin-scrapers-visit-company.js.map +1 -0
- package/esm/funcs/linkedin-scrapers-visit-profile.d.ts +18 -0
- package/esm/funcs/linkedin-scrapers-visit-profile.d.ts.map +1 -0
- package/esm/funcs/linkedin-scrapers-visit-profile.js +95 -0
- package/esm/funcs/linkedin-scrapers-visit-profile.js.map +1 -0
- package/esm/funcs/linkedin-search-resolve-parameters.d.ts +47 -0
- package/esm/funcs/linkedin-search-resolve-parameters.d.ts.map +1 -0
- package/esm/funcs/linkedin-search-resolve-parameters.js +124 -0
- package/esm/funcs/linkedin-search-resolve-parameters.js.map +1 -0
- package/esm/funcs/linkedin-search-search-by-url.d.ts +69 -0
- package/esm/funcs/linkedin-search-search-by-url.d.ts.map +1 -0
- package/esm/funcs/linkedin-search-search-by-url.js +146 -0
- package/esm/funcs/linkedin-search-search-by-url.js.map +1 -0
- package/esm/funcs/linkedin-search-search-companies.d.ts +75 -0
- package/esm/funcs/linkedin-search-search-companies.d.ts.map +1 -0
- package/esm/funcs/linkedin-search-search-companies.js +152 -0
- package/esm/funcs/linkedin-search-search-companies.js.map +1 -0
- package/esm/funcs/linkedin-search-search-jobs.d.ts +96 -0
- package/esm/funcs/linkedin-search-search-jobs.d.ts.map +1 -0
- package/esm/funcs/linkedin-search-search-jobs.js +173 -0
- package/esm/funcs/linkedin-search-search-jobs.js.map +1 -0
- package/esm/funcs/linkedin-search-search-people.d.ts +83 -0
- package/esm/funcs/linkedin-search-search-people.d.ts.map +1 -0
- package/esm/funcs/linkedin-search-search-people.js +160 -0
- package/esm/funcs/linkedin-search-search-people.js.map +1 -0
- package/esm/funcs/linkedin-search-search-posts.d.ts +71 -0
- package/esm/funcs/linkedin-search-search-posts.d.ts.map +1 -0
- package/esm/funcs/linkedin-search-search-posts.js +148 -0
- package/esm/funcs/linkedin-search-search-posts.js.map +1 -0
- package/esm/funcs/linkedin-search-unified-search.d.ts +55 -0
- package/esm/funcs/linkedin-search-unified-search.d.ts.map +1 -0
- package/esm/funcs/linkedin-search-unified-search.js +132 -0
- package/esm/funcs/linkedin-search-unified-search.js.map +1 -0
- package/esm/funcs/profile-get-credits.d.ts +18 -0
- package/esm/funcs/profile-get-credits.d.ts.map +1 -0
- package/esm/funcs/profile-get-credits.js +84 -0
- package/esm/funcs/profile-get-credits.js.map +1 -0
- package/esm/funcs/profile-get-followers.d.ts +18 -0
- package/esm/funcs/profile-get-followers.d.ts.map +1 -0
- package/esm/funcs/profile-get-followers.js +97 -0
- package/esm/funcs/profile-get-followers.js.map +1 -0
- package/esm/funcs/profile-get-limits.d.ts +18 -0
- package/esm/funcs/profile-get-limits.d.ts.map +1 -0
- package/esm/funcs/profile-get-limits.js +84 -0
- package/esm/funcs/profile-get-limits.js.map +1 -0
- package/esm/funcs/profile-get-linked-in-profile.d.ts +18 -0
- package/esm/funcs/profile-get-linked-in-profile.d.ts.map +1 -0
- package/esm/funcs/profile-get-linked-in-profile.js +84 -0
- package/esm/funcs/profile-get-linked-in-profile.js.map +1 -0
- package/esm/funcs/profile-get-posts.d.ts +18 -0
- package/esm/funcs/profile-get-posts.d.ts.map +1 -0
- package/esm/funcs/profile-get-posts.js +97 -0
- package/esm/funcs/profile-get-posts.js.map +1 -0
- package/esm/funcs/profile-refresh.d.ts +18 -0
- package/esm/funcs/profile-refresh.d.ts.map +1 -0
- package/esm/funcs/profile-refresh.js +84 -0
- package/esm/funcs/profile-refresh.js.map +1 -0
- package/esm/hooks/hooks.d.ts +25 -0
- package/esm/hooks/hooks.d.ts.map +1 -0
- package/esm/hooks/hooks.js +82 -0
- package/esm/hooks/hooks.js.map +1 -0
- package/esm/hooks/index.d.ts +3 -0
- package/esm/hooks/index.d.ts.map +1 -0
- package/esm/hooks/index.js +6 -0
- package/esm/hooks/index.js.map +1 -0
- package/esm/hooks/registration.d.ts +3 -0
- package/esm/hooks/registration.d.ts.map +1 -0
- package/esm/hooks/registration.js +12 -0
- package/esm/hooks/registration.js.map +1 -0
- package/esm/hooks/types.d.ts +76 -0
- package/esm/hooks/types.d.ts.map +1 -0
- package/esm/hooks/types.js +5 -0
- package/esm/hooks/types.js.map +1 -0
- package/esm/index.d.ts +6 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +8 -0
- package/esm/index.js.map +1 -0
- package/esm/lib/base64.d.ts +10 -0
- package/esm/lib/base64.d.ts.map +1 -0
- package/esm/lib/base64.js +31 -0
- package/esm/lib/base64.js.map +1 -0
- package/esm/lib/config.d.ts +38 -0
- package/esm/lib/config.d.ts.map +1 -0
- package/esm/lib/config.js +34 -0
- package/esm/lib/config.js.map +1 -0
- package/esm/lib/dlv.d.ts +14 -0
- package/esm/lib/dlv.d.ts.map +1 -0
- package/esm/lib/dlv.js +46 -0
- package/esm/lib/dlv.js.map +1 -0
- package/esm/lib/encodings.d.ts +53 -0
- package/esm/lib/encodings.d.ts.map +1 -0
- package/esm/lib/encodings.js +370 -0
- package/esm/lib/encodings.js.map +1 -0
- package/esm/lib/env.d.ts +15 -0
- package/esm/lib/env.d.ts.map +1 -0
- package/esm/lib/env.js +44 -0
- package/esm/lib/env.js.map +1 -0
- package/esm/lib/files.d.ts +13 -0
- package/esm/lib/files.d.ts.map +1 -0
- package/esm/lib/files.js +73 -0
- package/esm/lib/files.js.map +1 -0
- package/esm/lib/http.d.ts +67 -0
- package/esm/lib/http.d.ts.map +1 -0
- package/esm/lib/http.js +209 -0
- package/esm/lib/http.js.map +1 -0
- package/esm/lib/is-plain-object.d.ts +2 -0
- package/esm/lib/is-plain-object.d.ts.map +1 -0
- package/esm/lib/is-plain-object.js +38 -0
- package/esm/lib/is-plain-object.js.map +1 -0
- package/esm/lib/logger.d.ts +6 -0
- package/esm/lib/logger.d.ts.map +1 -0
- package/esm/lib/logger.js +5 -0
- package/esm/lib/logger.js.map +1 -0
- package/esm/lib/matchers.d.ts +59 -0
- package/esm/lib/matchers.d.ts.map +1 -0
- package/esm/lib/matchers.js +202 -0
- package/esm/lib/matchers.js.map +1 -0
- package/esm/lib/primitives.d.ts +26 -0
- package/esm/lib/primitives.d.ts.map +1 -0
- package/esm/lib/primitives.js +103 -0
- package/esm/lib/primitives.js.map +1 -0
- package/esm/lib/retries.d.ts +38 -0
- package/esm/lib/retries.d.ts.map +1 -0
- package/esm/lib/retries.js +150 -0
- package/esm/lib/retries.js.map +1 -0
- package/esm/lib/schemas.d.ts +21 -0
- package/esm/lib/schemas.d.ts.map +1 -0
- package/esm/lib/schemas.js +57 -0
- package/esm/lib/schemas.js.map +1 -0
- package/esm/lib/sdks.d.ts +63 -0
- package/esm/lib/sdks.d.ts.map +1 -0
- package/esm/lib/sdks.js +258 -0
- package/esm/lib/sdks.js.map +1 -0
- package/esm/lib/security.d.ts +83 -0
- package/esm/lib/security.d.ts.map +1 -0
- package/esm/lib/security.js +138 -0
- package/esm/lib/security.js.map +1 -0
- package/esm/lib/url.d.ts +5 -0
- package/esm/lib/url.d.ts.map +1 -0
- package/esm/lib/url.js +22 -0
- package/esm/lib/url.js.map +1 -0
- package/esm/models/errors/bereach-default-error.d.ts +10 -0
- package/esm/models/errors/bereach-default-error.d.ts.map +1 -0
- package/esm/models/errors/bereach-default-error.js +30 -0
- package/esm/models/errors/bereach-default-error.js.map +1 -0
- package/esm/models/errors/bereach-error.d.ts +19 -0
- package/esm/models/errors/bereach-error.d.ts.map +1 -0
- package/esm/models/errors/bereach-error.js +26 -0
- package/esm/models/errors/bereach-error.js.map +1 -0
- package/esm/models/errors/collect-linked-in-likes.d.ts +211 -0
- package/esm/models/errors/collect-linked-in-likes.d.ts.map +1 -0
- package/esm/models/errors/collect-linked-in-likes.js +306 -0
- package/esm/models/errors/collect-linked-in-likes.js.map +1 -0
- package/esm/models/errors/http-client-errors.d.ts +44 -0
- package/esm/models/errors/http-client-errors.d.ts.map +1 -0
- package/esm/models/errors/http-client-errors.js +56 -0
- package/esm/models/errors/http-client-errors.js.map +1 -0
- package/esm/models/errors/index.d.ts +7 -0
- package/esm/models/errors/index.d.ts.map +1 -0
- package/esm/models/errors/index.js +10 -0
- package/esm/models/errors/index.js.map +1 -0
- package/esm/models/errors/response-validation-error.d.ts +26 -0
- package/esm/models/errors/response-validation-error.d.ts.map +1 -0
- package/esm/models/errors/response-validation-error.js +37 -0
- package/esm/models/errors/response-validation-error.js.map +1 -0
- package/esm/models/errors/sdk-validation-error.d.ts +21 -0
- package/esm/models/errors/sdk-validation-error.d.ts.map +1 -0
- package/esm/models/errors/sdk-validation-error.js +52 -0
- package/esm/models/errors/sdk-validation-error.js.map +1 -0
- package/esm/models/index.d.ts +2 -0
- package/esm/models/index.d.ts.map +1 -0
- package/esm/models/index.js +5 -0
- package/esm/models/index.js.map +1 -0
- package/esm/models/operations/get-campaign-stats-response.d.ts +1627 -0
- package/esm/models/operations/get-campaign-stats-response.d.ts.map +1 -0
- package/esm/models/operations/get-campaign-stats-response.js +1002 -0
- package/esm/models/operations/get-campaign-stats-response.js.map +1 -0
- package/esm/models/operations/index.d.ts +3 -0
- package/esm/models/operations/index.d.ts.map +1 -0
- package/esm/models/operations/index.js +6 -0
- package/esm/models/operations/index.js.map +1 -0
- package/esm/models/operations/send-linked-in-message-response.d.ts +2350 -0
- package/esm/models/operations/send-linked-in-message-response.d.ts.map +1 -0
- package/esm/models/operations/send-linked-in-message-response.js +1585 -0
- package/esm/models/operations/send-linked-in-message-response.js.map +1 -0
- package/esm/models/security.d.ts +12 -0
- package/esm/models/security.d.ts.map +1 -0
- package/esm/models/security.js +12 -0
- package/esm/models/security.js.map +1 -0
- package/esm/sdk/campaigns.d.ts +35 -0
- package/esm/sdk/campaigns.d.ts.map +1 -0
- package/esm/sdk/campaigns.js +50 -0
- package/esm/sdk/campaigns.js.map +1 -0
- package/esm/sdk/index.d.ts +2 -0
- package/esm/sdk/index.d.ts.map +1 -0
- package/esm/sdk/index.js +5 -0
- package/esm/sdk/index.js.map +1 -0
- package/esm/sdk/linkedin-actions.d.ts +54 -0
- package/esm/sdk/linkedin-actions.d.ts.map +1 -0
- package/esm/sdk/linkedin-actions.js +78 -0
- package/esm/sdk/linkedin-actions.js.map +1 -0
- package/esm/sdk/linkedin-chat.d.ts +44 -0
- package/esm/sdk/linkedin-chat.d.ts.map +1 -0
- package/esm/sdk/linkedin-chat.js +59 -0
- package/esm/sdk/linkedin-chat.js.map +1 -0
- package/esm/sdk/linkedin-scrapers.d.ts +47 -0
- package/esm/sdk/linkedin-scrapers.d.ts.map +1 -0
- package/esm/sdk/linkedin-scrapers.js +68 -0
- package/esm/sdk/linkedin-scrapers.js.map +1 -0
- package/esm/sdk/linkedin-search.d.ts +424 -0
- package/esm/sdk/linkedin-search.d.ts.map +1 -0
- package/esm/sdk/linkedin-search.js +448 -0
- package/esm/sdk/linkedin-search.js.map +1 -0
- package/esm/sdk/profile.d.ts +47 -0
- package/esm/sdk/profile.d.ts.map +1 -0
- package/esm/sdk/profile.js +68 -0
- package/esm/sdk/profile.js.map +1 -0
- package/esm/sdk/sdk.d.ts +22 -0
- package/esm/sdk/sdk.d.ts.map +1 -0
- package/esm/sdk/sdk.js +37 -0
- package/esm/sdk/sdk.js.map +1 -0
- package/esm/types/async.d.ts +23 -0
- package/esm/types/async.d.ts.map +1 -0
- package/esm/types/async.js +28 -0
- package/esm/types/async.js.map +1 -0
- package/esm/types/blobs.d.ts +4 -0
- package/esm/types/blobs.d.ts.map +1 -0
- package/esm/types/blobs.js +25 -0
- package/esm/types/blobs.js.map +1 -0
- package/esm/types/const-date-time.d.ts +3 -0
- package/esm/types/const-date-time.d.ts.map +1 -0
- package/esm/types/const-date-time.js +10 -0
- package/esm/types/const-date-time.js.map +1 -0
- package/esm/types/default-to-zero-value.d.ts +12 -0
- package/esm/types/default-to-zero-value.d.ts.map +1 -0
- package/esm/types/default-to-zero-value.js +31 -0
- package/esm/types/default-to-zero-value.js.map +1 -0
- package/esm/types/enums.d.ts +9 -0
- package/esm/types/enums.d.ts.map +1 -0
- package/esm/types/enums.js +27 -0
- package/esm/types/enums.js.map +1 -0
- package/esm/types/fp.d.ts +31 -0
- package/esm/types/fp.d.ts.map +1 -0
- package/esm/types/fp.js +31 -0
- package/esm/types/fp.js.map +1 -0
- package/esm/types/index.d.ts +10 -0
- package/esm/types/index.d.ts.map +1 -0
- package/esm/types/index.js +10 -0
- package/esm/types/index.js.map +1 -0
- package/esm/types/operations.d.ts +27 -0
- package/esm/types/operations.d.ts.map +1 -0
- package/esm/types/operations.js +77 -0
- package/esm/types/operations.js.map +1 -0
- package/esm/types/primitives.d.ts +11 -0
- package/esm/types/primitives.d.ts.map +1 -0
- package/esm/types/primitives.js +132 -0
- package/esm/types/primitives.js.map +1 -0
- package/esm/types/rfcdate.d.ts +21 -0
- package/esm/types/rfcdate.d.ts.map +1 -0
- package/esm/types/rfcdate.js +43 -0
- package/esm/types/rfcdate.js.map +1 -0
- package/esm/types/smart-union.d.ts +7 -0
- package/esm/types/smart-union.d.ts.map +1 -0
- package/esm/types/smart-union.js +117 -0
- package/esm/types/smart-union.js.map +1 -0
- package/esm/types/streams.d.ts +2 -0
- package/esm/types/streams.d.ts.map +1 -0
- package/esm/types/streams.js +15 -0
- package/esm/types/streams.js.map +1 -0
- package/esm/types/unrecognized.d.ts +16 -0
- package/esm/types/unrecognized.d.ts.map +1 -0
- package/esm/types/unrecognized.js +31 -0
- package/esm/types/unrecognized.js.map +1 -0
- package/examples/linkedinScrapersCollectLikes.example.ts +30 -0
- package/jsr.json +27 -0
- package/package.json +62 -0
- package/src/core.ts +13 -0
- package/src/funcs/campaigns-filter.ts +227 -0
- package/src/funcs/campaigns-get-stats.ts +222 -0
- package/src/funcs/campaigns-get-status.ts +222 -0
- package/src/funcs/campaigns-sync-actions.ts +222 -0
- package/src/funcs/linkedin-actions-accept-invitation.ts +215 -0
- package/src/funcs/linkedin-actions-connect-profile.ts +215 -0
- package/src/funcs/linkedin-actions-like-comment.ts +215 -0
- package/src/funcs/linkedin-actions-list-invitations.ts +220 -0
- package/src/funcs/linkedin-actions-publish-post.ts +215 -0
- package/src/funcs/linkedin-actions-reply-to-comment.ts +215 -0
- package/src/funcs/linkedin-actions-send-message.ts +215 -0
- package/src/funcs/linkedin-chat-find-conversation.ts +222 -0
- package/src/funcs/linkedin-chat-get-messages.ts +219 -0
- package/src/funcs/linkedin-chat-list-conversations.ts +215 -0
- package/src/funcs/linkedin-chat-search-conversations.ts +218 -0
- package/src/funcs/linkedin-scrapers-collect-comment-replies.ts +218 -0
- package/src/funcs/linkedin-scrapers-collect-comments.ts +215 -0
- package/src/funcs/linkedin-scrapers-collect-likes.ts +215 -0
- package/src/funcs/linkedin-scrapers-collect-posts.ts +215 -0
- package/src/funcs/linkedin-scrapers-visit-company.ts +215 -0
- package/src/funcs/linkedin-scrapers-visit-profile.ts +215 -0
- package/src/funcs/linkedin-search-resolve-parameters.ts +250 -0
- package/src/funcs/linkedin-search-search-by-url.ts +266 -0
- package/src/funcs/linkedin-search-search-companies.ts +272 -0
- package/src/funcs/linkedin-search-search-jobs.ts +293 -0
- package/src/funcs/linkedin-search-search-people.ts +280 -0
- package/src/funcs/linkedin-search-search-posts.ts +268 -0
- package/src/funcs/linkedin-search-unified-search.ts +251 -0
- package/src/funcs/profile-get-credits.ts +195 -0
- package/src/funcs/profile-get-followers.ts +220 -0
- package/src/funcs/profile-get-limits.ts +195 -0
- package/src/funcs/profile-get-linked-in-profile.ts +195 -0
- package/src/funcs/profile-get-posts.ts +220 -0
- package/src/funcs/profile-refresh.ts +195 -0
- package/src/hooks/hooks.ts +132 -0
- package/src/hooks/index.ts +6 -0
- package/src/hooks/registration.ts +14 -0
- package/src/hooks/types.ts +107 -0
- package/src/index.ts +9 -0
- package/src/lib/base64.ts +39 -0
- package/src/lib/config.ts +67 -0
- package/src/lib/dlv.ts +53 -0
- package/src/lib/encodings.ts +501 -0
- package/src/lib/env.ts +57 -0
- package/src/lib/files.ts +82 -0
- package/src/lib/http.ts +323 -0
- package/src/lib/is-plain-object.ts +43 -0
- package/src/lib/logger.ts +9 -0
- package/src/lib/matchers.ts +353 -0
- package/src/lib/primitives.ts +150 -0
- package/src/lib/retries.ts +218 -0
- package/src/lib/schemas.ts +94 -0
- package/src/lib/sdks.ts +406 -0
- package/src/lib/security.ts +263 -0
- package/src/lib/url.ts +33 -0
- package/src/models/errors/bereach-default-error.ts +40 -0
- package/src/models/errors/bereach-error.ts +35 -0
- package/src/models/errors/collect-linked-in-likes.ts +494 -0
- package/src/models/errors/http-client-errors.ts +62 -0
- package/src/models/errors/index.ts +10 -0
- package/src/models/errors/response-validation-error.ts +50 -0
- package/src/models/errors/sdk-validation-error.ts +54 -0
- package/src/models/index.ts +5 -0
- package/src/models/operations/get-campaign-stats-response.ts +3409 -0
- package/src/models/operations/index.ts +6 -0
- package/src/models/operations/send-linked-in-message-response.ts +4903 -0
- package/src/models/security.ts +26 -0
- package/src/sdk/campaigns.ts +83 -0
- package/src/sdk/index.ts +5 -0
- package/src/sdk/linkedin-actions.ts +135 -0
- package/src/sdk/linkedin-chat.ts +92 -0
- package/src/sdk/linkedin-scrapers.ts +117 -0
- package/src/sdk/linkedin-search.ts +505 -0
- package/src/sdk/profile.ts +109 -0
- package/src/sdk/sdk.ts +43 -0
- package/src/types/async.ts +68 -0
- package/src/types/blobs.ts +33 -0
- package/src/types/const-date-time.ts +15 -0
- package/src/types/default-to-zero-value.ts +33 -0
- package/src/types/enums.ts +45 -0
- package/src/types/fp.ts +50 -0
- package/src/types/index.ts +13 -0
- package/src/types/operations.ts +105 -0
- package/src/types/primitives.ts +168 -0
- package/src/types/rfcdate.ts +54 -0
- package/src/types/smart-union.ts +153 -0
- package/src/types/streams.ts +21 -0
- package/src/types/unrecognized.ts +35 -0
|
@@ -0,0 +1,1002 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import * as openEnums from "../../types/enums.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
/**
|
|
10
|
+
* Reaction type (default: LIKE)
|
|
11
|
+
*/
|
|
12
|
+
export const ReactionType = {
|
|
13
|
+
Like: "LIKE",
|
|
14
|
+
Love: "LOVE",
|
|
15
|
+
Celebrate: "CELEBRATE",
|
|
16
|
+
Support: "SUPPORT",
|
|
17
|
+
Funny: "FUNNY",
|
|
18
|
+
Insightful: "INSIGHTFUL",
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Publish mode: 'instant' publishes immediately, 'scheduled' schedules for later
|
|
22
|
+
*/
|
|
23
|
+
export const Mode = {
|
|
24
|
+
Scheduled: "scheduled",
|
|
25
|
+
Instant: "instant",
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Post visibility
|
|
29
|
+
*/
|
|
30
|
+
export const Visibility = {
|
|
31
|
+
Anyone: "ANYONE",
|
|
32
|
+
Connections: "CONNECTIONS",
|
|
33
|
+
};
|
|
34
|
+
export const GetMyLinkedInProfileType = {
|
|
35
|
+
Activity: "activity",
|
|
36
|
+
UgcPost: "ugcPost",
|
|
37
|
+
Share: "share",
|
|
38
|
+
};
|
|
39
|
+
export const RefreshMyLinkedInProfileType = {
|
|
40
|
+
Activity: "activity",
|
|
41
|
+
UgcPost: "ugcPost",
|
|
42
|
+
Share: "share",
|
|
43
|
+
};
|
|
44
|
+
export const GetMyLinkedInPostsType = {
|
|
45
|
+
Activity: "activity",
|
|
46
|
+
UgcPost: "ugcPost",
|
|
47
|
+
Share: "share",
|
|
48
|
+
};
|
|
49
|
+
export const FindLinkedInConversationType = {
|
|
50
|
+
Audio: "audio",
|
|
51
|
+
SharedPost: "shared_post",
|
|
52
|
+
RepliedMessage: "replied_message",
|
|
53
|
+
Image: "image",
|
|
54
|
+
File: "file",
|
|
55
|
+
Unknown: "unknown",
|
|
56
|
+
};
|
|
57
|
+
export const GetConversationMessagesType = {
|
|
58
|
+
Audio: "audio",
|
|
59
|
+
SharedPost: "shared_post",
|
|
60
|
+
RepliedMessage: "replied_message",
|
|
61
|
+
Image: "image",
|
|
62
|
+
File: "file",
|
|
63
|
+
Unknown: "unknown",
|
|
64
|
+
};
|
|
65
|
+
export const Action = {
|
|
66
|
+
Message: "message",
|
|
67
|
+
Reply: "reply",
|
|
68
|
+
Like: "like",
|
|
69
|
+
Visit: "visit",
|
|
70
|
+
Connect: "connect",
|
|
71
|
+
};
|
|
72
|
+
/** @internal */
|
|
73
|
+
export const ReplyToLinkedInCommentRequest$outboundSchema = z.object({
|
|
74
|
+
commentUrn: z.string(),
|
|
75
|
+
message: z.string(),
|
|
76
|
+
campaignSlug: z.optional(z.string()),
|
|
77
|
+
actionSlug: z.optional(z.string()),
|
|
78
|
+
});
|
|
79
|
+
export function replyToLinkedInCommentRequestToJSON(replyToLinkedInCommentRequest) {
|
|
80
|
+
return JSON.stringify(ReplyToLinkedInCommentRequest$outboundSchema.parse(replyToLinkedInCommentRequest));
|
|
81
|
+
}
|
|
82
|
+
/** @internal */
|
|
83
|
+
export const ReplyToLinkedInCommentResponse$inboundSchema = z.object({
|
|
84
|
+
success: types.boolean(),
|
|
85
|
+
replyUrn: types.optional(types.string()),
|
|
86
|
+
duplicate: types.optional(types.boolean()),
|
|
87
|
+
creditsUsed: types.number(),
|
|
88
|
+
retryAfter: types.number(),
|
|
89
|
+
});
|
|
90
|
+
export function replyToLinkedInCommentResponseFromJSON(jsonString) {
|
|
91
|
+
return safeParse(jsonString, (x) => ReplyToLinkedInCommentResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ReplyToLinkedInCommentResponse' from JSON`);
|
|
92
|
+
}
|
|
93
|
+
/** @internal */
|
|
94
|
+
export const ReactionType$outboundSchema = z
|
|
95
|
+
.enum(ReactionType);
|
|
96
|
+
/** @internal */
|
|
97
|
+
export const LikeLinkedInCommentRequest$outboundSchema = z.object({
|
|
98
|
+
commentUrn: z.string(),
|
|
99
|
+
reactionType: z._default(ReactionType$outboundSchema, "LIKE"),
|
|
100
|
+
campaignSlug: z.optional(z.string()),
|
|
101
|
+
actionSlug: z.optional(z.string()),
|
|
102
|
+
});
|
|
103
|
+
export function likeLinkedInCommentRequestToJSON(likeLinkedInCommentRequest) {
|
|
104
|
+
return JSON.stringify(LikeLinkedInCommentRequest$outboundSchema.parse(likeLinkedInCommentRequest));
|
|
105
|
+
}
|
|
106
|
+
/** @internal */
|
|
107
|
+
export const LikeLinkedInCommentResponse$inboundSchema = z.object({
|
|
108
|
+
success: types.boolean(),
|
|
109
|
+
resourceKey: types.optional(types.string()),
|
|
110
|
+
duplicate: types.optional(types.boolean()),
|
|
111
|
+
creditsUsed: types.number(),
|
|
112
|
+
retryAfter: types.number(),
|
|
113
|
+
});
|
|
114
|
+
export function likeLinkedInCommentResponseFromJSON(jsonString) {
|
|
115
|
+
return safeParse(jsonString, (x) => LikeLinkedInCommentResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LikeLinkedInCommentResponse' from JSON`);
|
|
116
|
+
}
|
|
117
|
+
/** @internal */
|
|
118
|
+
export const Mode$outboundSchema = z.enum(Mode);
|
|
119
|
+
/** @internal */
|
|
120
|
+
export const Visibility$outboundSchema = z
|
|
121
|
+
.enum(Visibility);
|
|
122
|
+
/** @internal */
|
|
123
|
+
export const Mention$outboundSchema = z.object({
|
|
124
|
+
profileUrn: z.string(),
|
|
125
|
+
start: z.int(),
|
|
126
|
+
length: z.int(),
|
|
127
|
+
});
|
|
128
|
+
export function mentionToJSON(mention) {
|
|
129
|
+
return JSON.stringify(Mention$outboundSchema.parse(mention));
|
|
130
|
+
}
|
|
131
|
+
/** @internal */
|
|
132
|
+
export const PublishLinkedInPostRequest$outboundSchema = z.object({
|
|
133
|
+
text: z.string(),
|
|
134
|
+
mode: Mode$outboundSchema,
|
|
135
|
+
scheduledAt: z.optional(z.int()),
|
|
136
|
+
imageUrl: z.optional(z.string()),
|
|
137
|
+
visibility: z._default(Visibility$outboundSchema, "ANYONE"),
|
|
138
|
+
mentions: z.optional(z.array(z.lazy(() => Mention$outboundSchema))),
|
|
139
|
+
campaignSlug: z.optional(z.string()),
|
|
140
|
+
actionSlug: z.optional(z.string()),
|
|
141
|
+
});
|
|
142
|
+
export function publishLinkedInPostRequestToJSON(publishLinkedInPostRequest) {
|
|
143
|
+
return JSON.stringify(PublishLinkedInPostRequest$outboundSchema.parse(publishLinkedInPostRequest));
|
|
144
|
+
}
|
|
145
|
+
/** @internal */
|
|
146
|
+
export const PublishLinkedInPostResponse$inboundSchema = z.object({
|
|
147
|
+
success: types.boolean(),
|
|
148
|
+
shareUrn: types.string(),
|
|
149
|
+
activityUrn: types.nullable(types.string()),
|
|
150
|
+
duplicate: types.optional(types.boolean()),
|
|
151
|
+
creditsUsed: types.number(),
|
|
152
|
+
retryAfter: types.number(),
|
|
153
|
+
});
|
|
154
|
+
export function publishLinkedInPostResponseFromJSON(jsonString) {
|
|
155
|
+
return safeParse(jsonString, (x) => PublishLinkedInPostResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PublishLinkedInPostResponse' from JSON`);
|
|
156
|
+
}
|
|
157
|
+
/** @internal */
|
|
158
|
+
export const GetMyLinkedInProfilePositionStartDate$inboundSchema = z.object({
|
|
159
|
+
month: types.nullable(types.number()),
|
|
160
|
+
year: types.number(),
|
|
161
|
+
});
|
|
162
|
+
export function getMyLinkedInProfilePositionStartDateFromJSON(jsonString) {
|
|
163
|
+
return safeParse(jsonString, (x) => GetMyLinkedInProfilePositionStartDate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyLinkedInProfilePositionStartDate' from JSON`);
|
|
164
|
+
}
|
|
165
|
+
/** @internal */
|
|
166
|
+
export const GetMyLinkedInProfilePositionEndDate$inboundSchema = z.object({
|
|
167
|
+
month: types.nullable(types.number()),
|
|
168
|
+
year: types.number(),
|
|
169
|
+
});
|
|
170
|
+
export function getMyLinkedInProfilePositionEndDateFromJSON(jsonString) {
|
|
171
|
+
return safeParse(jsonString, (x) => GetMyLinkedInProfilePositionEndDate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyLinkedInProfilePositionEndDate' from JSON`);
|
|
172
|
+
}
|
|
173
|
+
/** @internal */
|
|
174
|
+
export const GetMyLinkedInProfilePosition$inboundSchema = z.object({
|
|
175
|
+
companyName: types.nullable(types.string()),
|
|
176
|
+
title: types.nullable(types.string()),
|
|
177
|
+
companyUrl: types.nullable(types.string()),
|
|
178
|
+
companyLogo: types.nullable(types.string()),
|
|
179
|
+
startDate: types.nullable(z.lazy(() => GetMyLinkedInProfilePositionStartDate$inboundSchema)),
|
|
180
|
+
endDate: types.nullable(z.lazy(() => GetMyLinkedInProfilePositionEndDate$inboundSchema)),
|
|
181
|
+
isCurrent: types.boolean(),
|
|
182
|
+
});
|
|
183
|
+
export function getMyLinkedInProfilePositionFromJSON(jsonString) {
|
|
184
|
+
return safeParse(jsonString, (x) => GetMyLinkedInProfilePosition$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyLinkedInProfilePosition' from JSON`);
|
|
185
|
+
}
|
|
186
|
+
/** @internal */
|
|
187
|
+
export const GetMyLinkedInProfileEducationStartDate$inboundSchema = z.object({
|
|
188
|
+
month: types.nullable(types.number()),
|
|
189
|
+
year: types.number(),
|
|
190
|
+
});
|
|
191
|
+
export function getMyLinkedInProfileEducationStartDateFromJSON(jsonString) {
|
|
192
|
+
return safeParse(jsonString, (x) => GetMyLinkedInProfileEducationStartDate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyLinkedInProfileEducationStartDate' from JSON`);
|
|
193
|
+
}
|
|
194
|
+
/** @internal */
|
|
195
|
+
export const GetMyLinkedInProfileEducationEndDate$inboundSchema = z.object({
|
|
196
|
+
month: types.nullable(types.number()),
|
|
197
|
+
year: types.number(),
|
|
198
|
+
});
|
|
199
|
+
export function getMyLinkedInProfileEducationEndDateFromJSON(jsonString) {
|
|
200
|
+
return safeParse(jsonString, (x) => GetMyLinkedInProfileEducationEndDate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyLinkedInProfileEducationEndDate' from JSON`);
|
|
201
|
+
}
|
|
202
|
+
/** @internal */
|
|
203
|
+
export const GetMyLinkedInProfileEducation$inboundSchema = z.object({
|
|
204
|
+
schoolName: types.nullable(types.string()),
|
|
205
|
+
degreeName: types.nullable(types.string()),
|
|
206
|
+
fieldOfStudy: types.nullable(types.string()),
|
|
207
|
+
schoolUrl: types.nullable(types.string()),
|
|
208
|
+
schoolLogo: types.nullable(types.string()),
|
|
209
|
+
startDate: types.nullable(z.lazy(() => GetMyLinkedInProfileEducationStartDate$inboundSchema)),
|
|
210
|
+
endDate: types.nullable(z.lazy(() => GetMyLinkedInProfileEducationEndDate$inboundSchema)),
|
|
211
|
+
});
|
|
212
|
+
export function getMyLinkedInProfileEducationFromJSON(jsonString) {
|
|
213
|
+
return safeParse(jsonString, (x) => GetMyLinkedInProfileEducation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyLinkedInProfileEducation' from JSON`);
|
|
214
|
+
}
|
|
215
|
+
/** @internal */
|
|
216
|
+
export const GetMyLinkedInProfileLocation$inboundSchema = z.object({
|
|
217
|
+
countryCode: types.string(),
|
|
218
|
+
postalCode: types.optional(types.string()),
|
|
219
|
+
});
|
|
220
|
+
export function getMyLinkedInProfileLocationFromJSON(jsonString) {
|
|
221
|
+
return safeParse(jsonString, (x) => GetMyLinkedInProfileLocation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyLinkedInProfileLocation' from JSON`);
|
|
222
|
+
}
|
|
223
|
+
/** @internal */
|
|
224
|
+
export const GetMyLinkedInProfileType$inboundSchema = openEnums.inboundSchema(GetMyLinkedInProfileType);
|
|
225
|
+
/** @internal */
|
|
226
|
+
export const GetMyLinkedInProfileLastPost$inboundSchema = z.object({
|
|
227
|
+
postUrl: types.string(),
|
|
228
|
+
text: types.string(),
|
|
229
|
+
date: types.number(),
|
|
230
|
+
likesCount: types.number(),
|
|
231
|
+
commentsCount: types.number(),
|
|
232
|
+
sharesCount: types.number(),
|
|
233
|
+
postUrn: types.string(),
|
|
234
|
+
postId: types.string(),
|
|
235
|
+
type: GetMyLinkedInProfileType$inboundSchema,
|
|
236
|
+
});
|
|
237
|
+
export function getMyLinkedInProfileLastPostFromJSON(jsonString) {
|
|
238
|
+
return safeParse(jsonString, (x) => GetMyLinkedInProfileLastPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyLinkedInProfileLastPost' from JSON`);
|
|
239
|
+
}
|
|
240
|
+
/** @internal */
|
|
241
|
+
export const GetMyLinkedInProfileResponse$inboundSchema = z.object({
|
|
242
|
+
success: types.boolean(),
|
|
243
|
+
linkedinProfileId: types.nullable(types.string()),
|
|
244
|
+
linkedinName: types.nullable(types.string()),
|
|
245
|
+
linkedinEmail: types.nullable(types.string()),
|
|
246
|
+
profileUrn: types.nullable(types.string()),
|
|
247
|
+
headline: types.nullable(types.string()),
|
|
248
|
+
profilePic: types.nullable(types.string()),
|
|
249
|
+
profileUrl: types.nullable(types.string()),
|
|
250
|
+
positions: types.optional(z.array(z.lazy(() => GetMyLinkedInProfilePosition$inboundSchema))),
|
|
251
|
+
educations: types.optional(z.array(z.lazy(() => GetMyLinkedInProfileEducation$inboundSchema))),
|
|
252
|
+
connectionsCount: z.optional(z.nullable(types.number())),
|
|
253
|
+
location: z.optional(z.nullable(z.lazy(() => GetMyLinkedInProfileLocation$inboundSchema))),
|
|
254
|
+
isVerified: types.optional(types.boolean()),
|
|
255
|
+
lastPosts: types.optional(z.array(z.lazy(() => GetMyLinkedInProfileLastPost$inboundSchema))),
|
|
256
|
+
creditsUsed: types.number(),
|
|
257
|
+
retryAfter: types.number(),
|
|
258
|
+
});
|
|
259
|
+
export function getMyLinkedInProfileResponseFromJSON(jsonString) {
|
|
260
|
+
return safeParse(jsonString, (x) => GetMyLinkedInProfileResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyLinkedInProfileResponse' from JSON`);
|
|
261
|
+
}
|
|
262
|
+
/** @internal */
|
|
263
|
+
export const RefreshMyLinkedInProfilePositionStartDate$inboundSchema = z.object({
|
|
264
|
+
month: types.nullable(types.number()),
|
|
265
|
+
year: types.number(),
|
|
266
|
+
});
|
|
267
|
+
export function refreshMyLinkedInProfilePositionStartDateFromJSON(jsonString) {
|
|
268
|
+
return safeParse(jsonString, (x) => RefreshMyLinkedInProfilePositionStartDate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RefreshMyLinkedInProfilePositionStartDate' from JSON`);
|
|
269
|
+
}
|
|
270
|
+
/** @internal */
|
|
271
|
+
export const RefreshMyLinkedInProfilePositionEndDate$inboundSchema = z.object({
|
|
272
|
+
month: types.nullable(types.number()),
|
|
273
|
+
year: types.number(),
|
|
274
|
+
});
|
|
275
|
+
export function refreshMyLinkedInProfilePositionEndDateFromJSON(jsonString) {
|
|
276
|
+
return safeParse(jsonString, (x) => RefreshMyLinkedInProfilePositionEndDate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RefreshMyLinkedInProfilePositionEndDate' from JSON`);
|
|
277
|
+
}
|
|
278
|
+
/** @internal */
|
|
279
|
+
export const RefreshMyLinkedInProfilePosition$inboundSchema = z.object({
|
|
280
|
+
companyName: types.nullable(types.string()),
|
|
281
|
+
title: types.nullable(types.string()),
|
|
282
|
+
companyUrl: types.nullable(types.string()),
|
|
283
|
+
companyLogo: types.nullable(types.string()),
|
|
284
|
+
startDate: types.nullable(z.lazy(() => RefreshMyLinkedInProfilePositionStartDate$inboundSchema)),
|
|
285
|
+
endDate: types.nullable(z.lazy(() => RefreshMyLinkedInProfilePositionEndDate$inboundSchema)),
|
|
286
|
+
isCurrent: types.boolean(),
|
|
287
|
+
});
|
|
288
|
+
export function refreshMyLinkedInProfilePositionFromJSON(jsonString) {
|
|
289
|
+
return safeParse(jsonString, (x) => RefreshMyLinkedInProfilePosition$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RefreshMyLinkedInProfilePosition' from JSON`);
|
|
290
|
+
}
|
|
291
|
+
/** @internal */
|
|
292
|
+
export const RefreshMyLinkedInProfileEducationStartDate$inboundSchema = z.object({
|
|
293
|
+
month: types.nullable(types.number()),
|
|
294
|
+
year: types.number(),
|
|
295
|
+
});
|
|
296
|
+
export function refreshMyLinkedInProfileEducationStartDateFromJSON(jsonString) {
|
|
297
|
+
return safeParse(jsonString, (x) => RefreshMyLinkedInProfileEducationStartDate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RefreshMyLinkedInProfileEducationStartDate' from JSON`);
|
|
298
|
+
}
|
|
299
|
+
/** @internal */
|
|
300
|
+
export const RefreshMyLinkedInProfileEducationEndDate$inboundSchema = z.object({
|
|
301
|
+
month: types.nullable(types.number()),
|
|
302
|
+
year: types.number(),
|
|
303
|
+
});
|
|
304
|
+
export function refreshMyLinkedInProfileEducationEndDateFromJSON(jsonString) {
|
|
305
|
+
return safeParse(jsonString, (x) => RefreshMyLinkedInProfileEducationEndDate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RefreshMyLinkedInProfileEducationEndDate' from JSON`);
|
|
306
|
+
}
|
|
307
|
+
/** @internal */
|
|
308
|
+
export const RefreshMyLinkedInProfileEducation$inboundSchema = z.object({
|
|
309
|
+
schoolName: types.nullable(types.string()),
|
|
310
|
+
degreeName: types.nullable(types.string()),
|
|
311
|
+
fieldOfStudy: types.nullable(types.string()),
|
|
312
|
+
schoolUrl: types.nullable(types.string()),
|
|
313
|
+
schoolLogo: types.nullable(types.string()),
|
|
314
|
+
startDate: types.nullable(z.lazy(() => RefreshMyLinkedInProfileEducationStartDate$inboundSchema)),
|
|
315
|
+
endDate: types.nullable(z.lazy(() => RefreshMyLinkedInProfileEducationEndDate$inboundSchema)),
|
|
316
|
+
});
|
|
317
|
+
export function refreshMyLinkedInProfileEducationFromJSON(jsonString) {
|
|
318
|
+
return safeParse(jsonString, (x) => RefreshMyLinkedInProfileEducation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RefreshMyLinkedInProfileEducation' from JSON`);
|
|
319
|
+
}
|
|
320
|
+
/** @internal */
|
|
321
|
+
export const RefreshMyLinkedInProfileLocation$inboundSchema = z.object({
|
|
322
|
+
countryCode: types.string(),
|
|
323
|
+
postalCode: types.optional(types.string()),
|
|
324
|
+
});
|
|
325
|
+
export function refreshMyLinkedInProfileLocationFromJSON(jsonString) {
|
|
326
|
+
return safeParse(jsonString, (x) => RefreshMyLinkedInProfileLocation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RefreshMyLinkedInProfileLocation' from JSON`);
|
|
327
|
+
}
|
|
328
|
+
/** @internal */
|
|
329
|
+
export const RefreshMyLinkedInProfileType$inboundSchema = openEnums.inboundSchema(RefreshMyLinkedInProfileType);
|
|
330
|
+
/** @internal */
|
|
331
|
+
export const RefreshMyLinkedInProfileLastPost$inboundSchema = z.object({
|
|
332
|
+
postUrl: types.string(),
|
|
333
|
+
text: types.string(),
|
|
334
|
+
date: types.number(),
|
|
335
|
+
likesCount: types.number(),
|
|
336
|
+
commentsCount: types.number(),
|
|
337
|
+
sharesCount: types.number(),
|
|
338
|
+
postUrn: types.string(),
|
|
339
|
+
postId: types.string(),
|
|
340
|
+
type: RefreshMyLinkedInProfileType$inboundSchema,
|
|
341
|
+
});
|
|
342
|
+
export function refreshMyLinkedInProfileLastPostFromJSON(jsonString) {
|
|
343
|
+
return safeParse(jsonString, (x) => RefreshMyLinkedInProfileLastPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RefreshMyLinkedInProfileLastPost' from JSON`);
|
|
344
|
+
}
|
|
345
|
+
/** @internal */
|
|
346
|
+
export const RefreshMyLinkedInProfileResponse$inboundSchema = z.object({
|
|
347
|
+
success: types.boolean(),
|
|
348
|
+
linkedinProfileId: types.nullable(types.string()),
|
|
349
|
+
linkedinName: types.nullable(types.string()),
|
|
350
|
+
linkedinEmail: types.nullable(types.string()),
|
|
351
|
+
profileUrn: types.nullable(types.string()),
|
|
352
|
+
headline: types.nullable(types.string()),
|
|
353
|
+
profilePic: types.nullable(types.string()),
|
|
354
|
+
profileUrl: types.nullable(types.string()),
|
|
355
|
+
positions: types.optional(z.array(z.lazy(() => RefreshMyLinkedInProfilePosition$inboundSchema))),
|
|
356
|
+
educations: types.optional(z.array(z.lazy(() => RefreshMyLinkedInProfileEducation$inboundSchema))),
|
|
357
|
+
connectionsCount: z.optional(z.nullable(types.number())),
|
|
358
|
+
location: z.optional(z.nullable(z.lazy(() => RefreshMyLinkedInProfileLocation$inboundSchema))),
|
|
359
|
+
isVerified: types.optional(types.boolean()),
|
|
360
|
+
lastPosts: types.optional(z.array(z.lazy(() => RefreshMyLinkedInProfileLastPost$inboundSchema))),
|
|
361
|
+
refreshed: types.boolean(),
|
|
362
|
+
creditsUsed: types.number(),
|
|
363
|
+
retryAfter: types.number(),
|
|
364
|
+
});
|
|
365
|
+
export function refreshMyLinkedInProfileResponseFromJSON(jsonString) {
|
|
366
|
+
return safeParse(jsonString, (x) => RefreshMyLinkedInProfileResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RefreshMyLinkedInProfileResponse' from JSON`);
|
|
367
|
+
}
|
|
368
|
+
/** @internal */
|
|
369
|
+
export const GetMyLinkedInPostsRequest$outboundSchema = z.object({
|
|
370
|
+
count: z.optional(z.int()),
|
|
371
|
+
start: z.optional(z.int()),
|
|
372
|
+
paginationToken: z.optional(z.string()),
|
|
373
|
+
});
|
|
374
|
+
export function getMyLinkedInPostsRequestToJSON(getMyLinkedInPostsRequest) {
|
|
375
|
+
return JSON.stringify(GetMyLinkedInPostsRequest$outboundSchema.parse(getMyLinkedInPostsRequest));
|
|
376
|
+
}
|
|
377
|
+
/** @internal */
|
|
378
|
+
export const GetMyLinkedInPostsType$inboundSchema = openEnums.inboundSchema(GetMyLinkedInPostsType);
|
|
379
|
+
/** @internal */
|
|
380
|
+
export const GetMyLinkedInPostsPost$inboundSchema = z.object({
|
|
381
|
+
postUrl: types.string(),
|
|
382
|
+
text: types.string(),
|
|
383
|
+
date: types.number(),
|
|
384
|
+
likesCount: types.number(),
|
|
385
|
+
commentsCount: types.number(),
|
|
386
|
+
sharesCount: types.number(),
|
|
387
|
+
postUrn: types.string(),
|
|
388
|
+
postId: types.string(),
|
|
389
|
+
type: GetMyLinkedInPostsType$inboundSchema,
|
|
390
|
+
});
|
|
391
|
+
export function getMyLinkedInPostsPostFromJSON(jsonString) {
|
|
392
|
+
return safeParse(jsonString, (x) => GetMyLinkedInPostsPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyLinkedInPostsPost' from JSON`);
|
|
393
|
+
}
|
|
394
|
+
/** @internal */
|
|
395
|
+
export const GetMyLinkedInPostsResponse$inboundSchema = z.object({
|
|
396
|
+
success: types.boolean(),
|
|
397
|
+
posts: z.array(z.lazy(() => GetMyLinkedInPostsPost$inboundSchema)),
|
|
398
|
+
count: types.number(),
|
|
399
|
+
total: types.number(),
|
|
400
|
+
start: types.number(),
|
|
401
|
+
hasMore: types.boolean(),
|
|
402
|
+
paginationToken: types.nullable(types.string()),
|
|
403
|
+
creditsUsed: types.number(),
|
|
404
|
+
retryAfter: types.number(),
|
|
405
|
+
});
|
|
406
|
+
export function getMyLinkedInPostsResponseFromJSON(jsonString) {
|
|
407
|
+
return safeParse(jsonString, (x) => GetMyLinkedInPostsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyLinkedInPostsResponse' from JSON`);
|
|
408
|
+
}
|
|
409
|
+
/** @internal */
|
|
410
|
+
export const GetMyLinkedInFollowersRequest$outboundSchema = z.object({
|
|
411
|
+
start: z.optional(z.int()),
|
|
412
|
+
count: z.optional(z.int()),
|
|
413
|
+
});
|
|
414
|
+
export function getMyLinkedInFollowersRequestToJSON(getMyLinkedInFollowersRequest) {
|
|
415
|
+
return JSON.stringify(GetMyLinkedInFollowersRequest$outboundSchema.parse(getMyLinkedInFollowersRequest));
|
|
416
|
+
}
|
|
417
|
+
/** @internal */
|
|
418
|
+
export const Follower$inboundSchema = z
|
|
419
|
+
.object({
|
|
420
|
+
name: types.string(),
|
|
421
|
+
headline: types.nullable(types.string()),
|
|
422
|
+
profileUrl: types.nullable(types.string()),
|
|
423
|
+
profilePicture: types.nullable(types.string()),
|
|
424
|
+
followerCount: types.nullable(types.number()),
|
|
425
|
+
following: types.boolean(),
|
|
426
|
+
});
|
|
427
|
+
export function followerFromJSON(jsonString) {
|
|
428
|
+
return safeParse(jsonString, (x) => Follower$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Follower' from JSON`);
|
|
429
|
+
}
|
|
430
|
+
/** @internal */
|
|
431
|
+
export const GetMyLinkedInFollowersResponse$inboundSchema = z.object({
|
|
432
|
+
success: types.boolean(),
|
|
433
|
+
followers: z.array(z.lazy(() => Follower$inboundSchema)),
|
|
434
|
+
count: types.number(),
|
|
435
|
+
totalFollowers: types.number(),
|
|
436
|
+
start: types.number(),
|
|
437
|
+
hasMore: types.boolean(),
|
|
438
|
+
creditsUsed: types.number(),
|
|
439
|
+
retryAfter: types.number(),
|
|
440
|
+
});
|
|
441
|
+
export function getMyLinkedInFollowersResponseFromJSON(jsonString) {
|
|
442
|
+
return safeParse(jsonString, (x) => GetMyLinkedInFollowersResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyLinkedInFollowersResponse' from JSON`);
|
|
443
|
+
}
|
|
444
|
+
/** @internal */
|
|
445
|
+
export const ConnectionRequestDaily$inboundSchema = z.object({
|
|
446
|
+
current: types.number(),
|
|
447
|
+
limit: types.number(),
|
|
448
|
+
remaining: types.number(),
|
|
449
|
+
});
|
|
450
|
+
export function connectionRequestDailyFromJSON(jsonString) {
|
|
451
|
+
return safeParse(jsonString, (x) => ConnectionRequestDaily$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConnectionRequestDaily' from JSON`);
|
|
452
|
+
}
|
|
453
|
+
/** @internal */
|
|
454
|
+
export const ConnectionRequestWeekly$inboundSchema = z.object({
|
|
455
|
+
current: types.number(),
|
|
456
|
+
limit: types.number(),
|
|
457
|
+
remaining: types.number(),
|
|
458
|
+
});
|
|
459
|
+
export function connectionRequestWeeklyFromJSON(jsonString) {
|
|
460
|
+
return safeParse(jsonString, (x) => ConnectionRequestWeekly$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConnectionRequestWeekly' from JSON`);
|
|
461
|
+
}
|
|
462
|
+
/** @internal */
|
|
463
|
+
export const ConnectionRequest$inboundSchema = z.object({
|
|
464
|
+
daily: z.lazy(() => ConnectionRequestDaily$inboundSchema),
|
|
465
|
+
weekly: types.nullable(z.lazy(() => ConnectionRequestWeekly$inboundSchema)),
|
|
466
|
+
minIntervalSeconds: types.number(),
|
|
467
|
+
nextResetDaily: types.date(),
|
|
468
|
+
nextResetWeekly: types.nullable(types.date()),
|
|
469
|
+
});
|
|
470
|
+
export function connectionRequestFromJSON(jsonString) {
|
|
471
|
+
return safeParse(jsonString, (x) => ConnectionRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConnectionRequest' from JSON`);
|
|
472
|
+
}
|
|
473
|
+
/** @internal */
|
|
474
|
+
export const MessageDaily$inboundSchema = z.object({
|
|
475
|
+
current: types.number(),
|
|
476
|
+
limit: types.number(),
|
|
477
|
+
remaining: types.number(),
|
|
478
|
+
});
|
|
479
|
+
export function messageDailyFromJSON(jsonString) {
|
|
480
|
+
return safeParse(jsonString, (x) => MessageDaily$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MessageDaily' from JSON`);
|
|
481
|
+
}
|
|
482
|
+
/** @internal */
|
|
483
|
+
export const MessageWeekly$inboundSchema = z.object({
|
|
484
|
+
current: types.number(),
|
|
485
|
+
limit: types.number(),
|
|
486
|
+
remaining: types.number(),
|
|
487
|
+
});
|
|
488
|
+
export function messageWeeklyFromJSON(jsonString) {
|
|
489
|
+
return safeParse(jsonString, (x) => MessageWeekly$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MessageWeekly' from JSON`);
|
|
490
|
+
}
|
|
491
|
+
/** @internal */
|
|
492
|
+
export const GetMyLimitsMessage$inboundSchema = z.object({
|
|
493
|
+
daily: z.lazy(() => MessageDaily$inboundSchema),
|
|
494
|
+
weekly: types.nullable(z.lazy(() => MessageWeekly$inboundSchema)),
|
|
495
|
+
minIntervalSeconds: types.number(),
|
|
496
|
+
nextResetDaily: types.date(),
|
|
497
|
+
nextResetWeekly: types.nullable(types.date()),
|
|
498
|
+
});
|
|
499
|
+
export function getMyLimitsMessageFromJSON(jsonString) {
|
|
500
|
+
return safeParse(jsonString, (x) => GetMyLimitsMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyLimitsMessage' from JSON`);
|
|
501
|
+
}
|
|
502
|
+
/** @internal */
|
|
503
|
+
export const ProfileVisitDaily$inboundSchema = z.object({
|
|
504
|
+
current: types.number(),
|
|
505
|
+
limit: types.number(),
|
|
506
|
+
remaining: types.number(),
|
|
507
|
+
});
|
|
508
|
+
export function profileVisitDailyFromJSON(jsonString) {
|
|
509
|
+
return safeParse(jsonString, (x) => ProfileVisitDaily$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProfileVisitDaily' from JSON`);
|
|
510
|
+
}
|
|
511
|
+
/** @internal */
|
|
512
|
+
export const ProfileVisitWeekly$inboundSchema = z.object({
|
|
513
|
+
current: types.number(),
|
|
514
|
+
limit: types.number(),
|
|
515
|
+
remaining: types.number(),
|
|
516
|
+
});
|
|
517
|
+
export function profileVisitWeeklyFromJSON(jsonString) {
|
|
518
|
+
return safeParse(jsonString, (x) => ProfileVisitWeekly$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProfileVisitWeekly' from JSON`);
|
|
519
|
+
}
|
|
520
|
+
/** @internal */
|
|
521
|
+
export const ProfileVisit$inboundSchema = z.object({
|
|
522
|
+
daily: z.lazy(() => ProfileVisitDaily$inboundSchema),
|
|
523
|
+
weekly: types.nullable(z.lazy(() => ProfileVisitWeekly$inboundSchema)),
|
|
524
|
+
minIntervalSeconds: types.number(),
|
|
525
|
+
nextResetDaily: types.date(),
|
|
526
|
+
nextResetWeekly: types.nullable(types.date()),
|
|
527
|
+
});
|
|
528
|
+
export function profileVisitFromJSON(jsonString) {
|
|
529
|
+
return safeParse(jsonString, (x) => ProfileVisit$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProfileVisit' from JSON`);
|
|
530
|
+
}
|
|
531
|
+
/** @internal */
|
|
532
|
+
export const ScrapingDaily$inboundSchema = z.object({
|
|
533
|
+
current: types.number(),
|
|
534
|
+
limit: types.number(),
|
|
535
|
+
remaining: types.number(),
|
|
536
|
+
});
|
|
537
|
+
export function scrapingDailyFromJSON(jsonString) {
|
|
538
|
+
return safeParse(jsonString, (x) => ScrapingDaily$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ScrapingDaily' from JSON`);
|
|
539
|
+
}
|
|
540
|
+
/** @internal */
|
|
541
|
+
export const ScrapingWeekly$inboundSchema = z.object({
|
|
542
|
+
current: types.number(),
|
|
543
|
+
limit: types.number(),
|
|
544
|
+
remaining: types.number(),
|
|
545
|
+
});
|
|
546
|
+
export function scrapingWeeklyFromJSON(jsonString) {
|
|
547
|
+
return safeParse(jsonString, (x) => ScrapingWeekly$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ScrapingWeekly' from JSON`);
|
|
548
|
+
}
|
|
549
|
+
/** @internal */
|
|
550
|
+
export const Scraping$inboundSchema = z
|
|
551
|
+
.object({
|
|
552
|
+
daily: z.lazy(() => ScrapingDaily$inboundSchema),
|
|
553
|
+
weekly: types.nullable(z.lazy(() => ScrapingWeekly$inboundSchema)),
|
|
554
|
+
minIntervalSeconds: types.number(),
|
|
555
|
+
nextResetDaily: types.date(),
|
|
556
|
+
nextResetWeekly: types.nullable(types.date()),
|
|
557
|
+
});
|
|
558
|
+
export function scrapingFromJSON(jsonString) {
|
|
559
|
+
return safeParse(jsonString, (x) => Scraping$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Scraping' from JSON`);
|
|
560
|
+
}
|
|
561
|
+
/** @internal */
|
|
562
|
+
export const Limits$inboundSchema = z.pipe(z.object({
|
|
563
|
+
connection_request: z.lazy(() => ConnectionRequest$inboundSchema),
|
|
564
|
+
message: z.lazy(() => GetMyLimitsMessage$inboundSchema),
|
|
565
|
+
profile_visit: z.lazy(() => ProfileVisit$inboundSchema),
|
|
566
|
+
scraping: z.lazy(() => Scraping$inboundSchema),
|
|
567
|
+
}), z.transform((v) => {
|
|
568
|
+
return remap$(v, {
|
|
569
|
+
"connection_request": "connectionRequest",
|
|
570
|
+
"profile_visit": "profileVisit",
|
|
571
|
+
});
|
|
572
|
+
}));
|
|
573
|
+
export function limitsFromJSON(jsonString) {
|
|
574
|
+
return safeParse(jsonString, (x) => Limits$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Limits' from JSON`);
|
|
575
|
+
}
|
|
576
|
+
/** @internal */
|
|
577
|
+
export const GetMyLimitsResponse$inboundSchema = z.object({
|
|
578
|
+
success: types.boolean(),
|
|
579
|
+
multiplier: types.number(),
|
|
580
|
+
limits: z.lazy(() => Limits$inboundSchema),
|
|
581
|
+
creditsUsed: types.number(),
|
|
582
|
+
retryAfter: types.number(),
|
|
583
|
+
});
|
|
584
|
+
export function getMyLimitsResponseFromJSON(jsonString) {
|
|
585
|
+
return safeParse(jsonString, (x) => GetMyLimitsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyLimitsResponse' from JSON`);
|
|
586
|
+
}
|
|
587
|
+
/** @internal */
|
|
588
|
+
export const Credits$inboundSchema = z.object({
|
|
589
|
+
current: types.number(),
|
|
590
|
+
limit: types.number(),
|
|
591
|
+
remaining: types.number(),
|
|
592
|
+
percentage: types.number(),
|
|
593
|
+
});
|
|
594
|
+
export function creditsFromJSON(jsonString) {
|
|
595
|
+
return safeParse(jsonString, (x) => Credits$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Credits' from JSON`);
|
|
596
|
+
}
|
|
597
|
+
/** @internal */
|
|
598
|
+
export const GetMyCreditsResponse$inboundSchema = z.object({
|
|
599
|
+
success: types.boolean(),
|
|
600
|
+
credits: z.lazy(() => Credits$inboundSchema),
|
|
601
|
+
creditsUsed: types.number(),
|
|
602
|
+
retryAfter: types.number(),
|
|
603
|
+
});
|
|
604
|
+
export function getMyCreditsResponseFromJSON(jsonString) {
|
|
605
|
+
return safeParse(jsonString, (x) => GetMyCreditsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMyCreditsResponse' from JSON`);
|
|
606
|
+
}
|
|
607
|
+
/** @internal */
|
|
608
|
+
export const ListInboxConversationsRequest$outboundSchema = z.object({
|
|
609
|
+
nextCursor: z.optional(z.string()),
|
|
610
|
+
});
|
|
611
|
+
export function listInboxConversationsRequestToJSON(listInboxConversationsRequest) {
|
|
612
|
+
return JSON.stringify(ListInboxConversationsRequest$outboundSchema.parse(listInboxConversationsRequest));
|
|
613
|
+
}
|
|
614
|
+
/** @internal */
|
|
615
|
+
export const ListInboxConversationsParticipant$inboundSchema = z.object({
|
|
616
|
+
profileUrn: types.string(),
|
|
617
|
+
firstName: types.string(),
|
|
618
|
+
lastName: types.string(),
|
|
619
|
+
profileUrl: types.string(),
|
|
620
|
+
headline: types.nullable(types.string()),
|
|
621
|
+
profilePicture: types.nullable(types.string()),
|
|
622
|
+
});
|
|
623
|
+
export function listInboxConversationsParticipantFromJSON(jsonString) {
|
|
624
|
+
return safeParse(jsonString, (x) => ListInboxConversationsParticipant$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListInboxConversationsParticipant' from JSON`);
|
|
625
|
+
}
|
|
626
|
+
/** @internal */
|
|
627
|
+
export const ListInboxConversationsLastMessage$inboundSchema = z.object({
|
|
628
|
+
text: types.string(),
|
|
629
|
+
deliveredAt: types.number(),
|
|
630
|
+
senderProfileUrn: types.string(),
|
|
631
|
+
});
|
|
632
|
+
export function listInboxConversationsLastMessageFromJSON(jsonString) {
|
|
633
|
+
return safeParse(jsonString, (x) => ListInboxConversationsLastMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListInboxConversationsLastMessage' from JSON`);
|
|
634
|
+
}
|
|
635
|
+
/** @internal */
|
|
636
|
+
export const ListInboxConversationsConversation$inboundSchema = z.object({
|
|
637
|
+
conversationUrn: types.string(),
|
|
638
|
+
conversationUrl: types.string(),
|
|
639
|
+
lastActivityAt: types.number(),
|
|
640
|
+
createdAt: types.number(),
|
|
641
|
+
read: types.boolean(),
|
|
642
|
+
unreadCount: types.number(),
|
|
643
|
+
groupChat: types.boolean(),
|
|
644
|
+
participants: z.array(z.lazy(() => ListInboxConversationsParticipant$inboundSchema)),
|
|
645
|
+
lastMessage: types.nullable(z.lazy(() => ListInboxConversationsLastMessage$inboundSchema)),
|
|
646
|
+
});
|
|
647
|
+
export function listInboxConversationsConversationFromJSON(jsonString) {
|
|
648
|
+
return safeParse(jsonString, (x) => ListInboxConversationsConversation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListInboxConversationsConversation' from JSON`);
|
|
649
|
+
}
|
|
650
|
+
/** @internal */
|
|
651
|
+
export const ListInboxConversationsResponse$inboundSchema = z.object({
|
|
652
|
+
success: types.boolean(),
|
|
653
|
+
conversations: z.array(z.lazy(() => ListInboxConversationsConversation$inboundSchema)),
|
|
654
|
+
nextCursor: types.nullable(types.string()),
|
|
655
|
+
creditsUsed: types.number(),
|
|
656
|
+
retryAfter: types.number(),
|
|
657
|
+
});
|
|
658
|
+
export function listInboxConversationsResponseFromJSON(jsonString) {
|
|
659
|
+
return safeParse(jsonString, (x) => ListInboxConversationsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListInboxConversationsResponse' from JSON`);
|
|
660
|
+
}
|
|
661
|
+
/** @internal */
|
|
662
|
+
export const SearchLinkedInConversationsRequest$outboundSchema = z.object({
|
|
663
|
+
keywords: z.string(),
|
|
664
|
+
nextCursor: z.optional(z.string()),
|
|
665
|
+
});
|
|
666
|
+
export function searchLinkedInConversationsRequestToJSON(searchLinkedInConversationsRequest) {
|
|
667
|
+
return JSON.stringify(SearchLinkedInConversationsRequest$outboundSchema.parse(searchLinkedInConversationsRequest));
|
|
668
|
+
}
|
|
669
|
+
/** @internal */
|
|
670
|
+
export const SearchLinkedInConversationsParticipant$inboundSchema = z.object({
|
|
671
|
+
profileUrn: types.string(),
|
|
672
|
+
firstName: types.string(),
|
|
673
|
+
lastName: types.string(),
|
|
674
|
+
profileUrl: types.string(),
|
|
675
|
+
headline: types.nullable(types.string()),
|
|
676
|
+
profilePicture: types.nullable(types.string()),
|
|
677
|
+
});
|
|
678
|
+
export function searchLinkedInConversationsParticipantFromJSON(jsonString) {
|
|
679
|
+
return safeParse(jsonString, (x) => SearchLinkedInConversationsParticipant$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInConversationsParticipant' from JSON`);
|
|
680
|
+
}
|
|
681
|
+
/** @internal */
|
|
682
|
+
export const SearchLinkedInConversationsLastMessage$inboundSchema = z.object({
|
|
683
|
+
text: types.string(),
|
|
684
|
+
deliveredAt: types.number(),
|
|
685
|
+
senderProfileUrn: types.string(),
|
|
686
|
+
});
|
|
687
|
+
export function searchLinkedInConversationsLastMessageFromJSON(jsonString) {
|
|
688
|
+
return safeParse(jsonString, (x) => SearchLinkedInConversationsLastMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInConversationsLastMessage' from JSON`);
|
|
689
|
+
}
|
|
690
|
+
/** @internal */
|
|
691
|
+
export const SearchLinkedInConversationsConversation$inboundSchema = z.object({
|
|
692
|
+
conversationUrn: types.string(),
|
|
693
|
+
conversationUrl: types.string(),
|
|
694
|
+
lastActivityAt: types.number(),
|
|
695
|
+
createdAt: types.number(),
|
|
696
|
+
read: types.boolean(),
|
|
697
|
+
unreadCount: types.number(),
|
|
698
|
+
groupChat: types.boolean(),
|
|
699
|
+
participants: z.array(z.lazy(() => SearchLinkedInConversationsParticipant$inboundSchema)),
|
|
700
|
+
lastMessage: types.nullable(z.lazy(() => SearchLinkedInConversationsLastMessage$inboundSchema)),
|
|
701
|
+
});
|
|
702
|
+
export function searchLinkedInConversationsConversationFromJSON(jsonString) {
|
|
703
|
+
return safeParse(jsonString, (x) => SearchLinkedInConversationsConversation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInConversationsConversation' from JSON`);
|
|
704
|
+
}
|
|
705
|
+
/** @internal */
|
|
706
|
+
export const SearchLinkedInConversationsResponse$inboundSchema = z.object({
|
|
707
|
+
success: types.boolean(),
|
|
708
|
+
conversations: z.array(z.lazy(() => SearchLinkedInConversationsConversation$inboundSchema)),
|
|
709
|
+
nextCursor: types.nullable(types.string()),
|
|
710
|
+
creditsUsed: types.number(),
|
|
711
|
+
retryAfter: types.number(),
|
|
712
|
+
});
|
|
713
|
+
export function searchLinkedInConversationsResponseFromJSON(jsonString) {
|
|
714
|
+
return safeParse(jsonString, (x) => SearchLinkedInConversationsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchLinkedInConversationsResponse' from JSON`);
|
|
715
|
+
}
|
|
716
|
+
/** @internal */
|
|
717
|
+
export const FindLinkedInConversationRequest$outboundSchema = z.object({
|
|
718
|
+
profile: z.string(),
|
|
719
|
+
includeMessages: z._default(z.boolean(), false),
|
|
720
|
+
});
|
|
721
|
+
export function findLinkedInConversationRequestToJSON(findLinkedInConversationRequest) {
|
|
722
|
+
return JSON.stringify(FindLinkedInConversationRequest$outboundSchema.parse(findLinkedInConversationRequest));
|
|
723
|
+
}
|
|
724
|
+
/** @internal */
|
|
725
|
+
export const FindLinkedInConversationParticipant$inboundSchema = z.object({
|
|
726
|
+
profileUrn: types.string(),
|
|
727
|
+
firstName: types.string(),
|
|
728
|
+
lastName: types.string(),
|
|
729
|
+
profileUrl: types.string(),
|
|
730
|
+
headline: types.nullable(types.string()),
|
|
731
|
+
profilePicture: types.nullable(types.string()),
|
|
732
|
+
});
|
|
733
|
+
export function findLinkedInConversationParticipantFromJSON(jsonString) {
|
|
734
|
+
return safeParse(jsonString, (x) => FindLinkedInConversationParticipant$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FindLinkedInConversationParticipant' from JSON`);
|
|
735
|
+
}
|
|
736
|
+
/** @internal */
|
|
737
|
+
export const FindLinkedInConversationLastMessage$inboundSchema = z.object({
|
|
738
|
+
text: types.string(),
|
|
739
|
+
deliveredAt: types.number(),
|
|
740
|
+
senderProfileUrn: types.string(),
|
|
741
|
+
});
|
|
742
|
+
export function findLinkedInConversationLastMessageFromJSON(jsonString) {
|
|
743
|
+
return safeParse(jsonString, (x) => FindLinkedInConversationLastMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FindLinkedInConversationLastMessage' from JSON`);
|
|
744
|
+
}
|
|
745
|
+
/** @internal */
|
|
746
|
+
export const FindLinkedInConversationConversation$inboundSchema = z.object({
|
|
747
|
+
conversationUrn: types.string(),
|
|
748
|
+
conversationUrl: types.string(),
|
|
749
|
+
lastActivityAt: types.number(),
|
|
750
|
+
createdAt: types.number(),
|
|
751
|
+
read: types.boolean(),
|
|
752
|
+
unreadCount: types.number(),
|
|
753
|
+
groupChat: types.boolean(),
|
|
754
|
+
participants: z.array(z.lazy(() => FindLinkedInConversationParticipant$inboundSchema)),
|
|
755
|
+
lastMessage: types.nullable(z.lazy(() => FindLinkedInConversationLastMessage$inboundSchema)),
|
|
756
|
+
});
|
|
757
|
+
export function findLinkedInConversationConversationFromJSON(jsonString) {
|
|
758
|
+
return safeParse(jsonString, (x) => FindLinkedInConversationConversation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FindLinkedInConversationConversation' from JSON`);
|
|
759
|
+
}
|
|
760
|
+
/** @internal */
|
|
761
|
+
export const FindLinkedInConversationSender$inboundSchema = z.object({
|
|
762
|
+
firstName: types.string(),
|
|
763
|
+
lastName: types.string(),
|
|
764
|
+
profileUrl: types.string(),
|
|
765
|
+
headline: types.nullable(types.string()),
|
|
766
|
+
profilePicture: types.nullable(types.string()),
|
|
767
|
+
});
|
|
768
|
+
export function findLinkedInConversationSenderFromJSON(jsonString) {
|
|
769
|
+
return safeParse(jsonString, (x) => FindLinkedInConversationSender$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FindLinkedInConversationSender' from JSON`);
|
|
770
|
+
}
|
|
771
|
+
/** @internal */
|
|
772
|
+
export const FindLinkedInConversationType$inboundSchema = openEnums.inboundSchema(FindLinkedInConversationType);
|
|
773
|
+
/** @internal */
|
|
774
|
+
export const FindLinkedInConversationAttachment$inboundSchema = z.object({
|
|
775
|
+
type: FindLinkedInConversationType$inboundSchema,
|
|
776
|
+
audioUrl: types.optional(types.string()),
|
|
777
|
+
audioDuration: types.optional(types.number()),
|
|
778
|
+
hostUrn: types.optional(types.string()),
|
|
779
|
+
repliedText: types.optional(types.string()),
|
|
780
|
+
repliedSenderName: types.optional(types.string()),
|
|
781
|
+
imageUrl: types.optional(types.string()),
|
|
782
|
+
fileName: types.optional(types.string()),
|
|
783
|
+
fileUrl: types.optional(types.string()),
|
|
784
|
+
});
|
|
785
|
+
export function findLinkedInConversationAttachmentFromJSON(jsonString) {
|
|
786
|
+
return safeParse(jsonString, (x) => FindLinkedInConversationAttachment$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FindLinkedInConversationAttachment' from JSON`);
|
|
787
|
+
}
|
|
788
|
+
/** @internal */
|
|
789
|
+
export const FindLinkedInConversationMessage$inboundSchema = z.object({
|
|
790
|
+
messageUrn: types.string(),
|
|
791
|
+
text: types.string(),
|
|
792
|
+
deliveredAt: types.number(),
|
|
793
|
+
senderProfileUrn: types.string(),
|
|
794
|
+
sender: z.lazy(() => FindLinkedInConversationSender$inboundSchema),
|
|
795
|
+
attachments: z.array(z.lazy(() => FindLinkedInConversationAttachment$inboundSchema)),
|
|
796
|
+
});
|
|
797
|
+
export function findLinkedInConversationMessageFromJSON(jsonString) {
|
|
798
|
+
return safeParse(jsonString, (x) => FindLinkedInConversationMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FindLinkedInConversationMessage' from JSON`);
|
|
799
|
+
}
|
|
800
|
+
/** @internal */
|
|
801
|
+
export const FindLinkedInConversationResponse$inboundSchema = z.object({
|
|
802
|
+
success: types.boolean(),
|
|
803
|
+
found: types.boolean(),
|
|
804
|
+
conversation: types.nullable(z.lazy(() => FindLinkedInConversationConversation$inboundSchema)),
|
|
805
|
+
messages: types.nullable(z.array(z.lazy(() => FindLinkedInConversationMessage$inboundSchema))),
|
|
806
|
+
creditsUsed: types.number(),
|
|
807
|
+
retryAfter: types.number(),
|
|
808
|
+
});
|
|
809
|
+
export function findLinkedInConversationResponseFromJSON(jsonString) {
|
|
810
|
+
return safeParse(jsonString, (x) => FindLinkedInConversationResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FindLinkedInConversationResponse' from JSON`);
|
|
811
|
+
}
|
|
812
|
+
/** @internal */
|
|
813
|
+
export const GetConversationMessagesRequest$outboundSchema = z.object({
|
|
814
|
+
conversationUrn: z.string(),
|
|
815
|
+
deliveredAt: z.optional(z.int()),
|
|
816
|
+
});
|
|
817
|
+
export function getConversationMessagesRequestToJSON(getConversationMessagesRequest) {
|
|
818
|
+
return JSON.stringify(GetConversationMessagesRequest$outboundSchema.parse(getConversationMessagesRequest));
|
|
819
|
+
}
|
|
820
|
+
/** @internal */
|
|
821
|
+
export const GetConversationMessagesSender$inboundSchema = z.object({
|
|
822
|
+
firstName: types.string(),
|
|
823
|
+
lastName: types.string(),
|
|
824
|
+
profileUrl: types.string(),
|
|
825
|
+
headline: types.nullable(types.string()),
|
|
826
|
+
profilePicture: types.nullable(types.string()),
|
|
827
|
+
});
|
|
828
|
+
export function getConversationMessagesSenderFromJSON(jsonString) {
|
|
829
|
+
return safeParse(jsonString, (x) => GetConversationMessagesSender$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetConversationMessagesSender' from JSON`);
|
|
830
|
+
}
|
|
831
|
+
/** @internal */
|
|
832
|
+
export const GetConversationMessagesType$inboundSchema = openEnums.inboundSchema(GetConversationMessagesType);
|
|
833
|
+
/** @internal */
|
|
834
|
+
export const GetConversationMessagesAttachment$inboundSchema = z.object({
|
|
835
|
+
type: GetConversationMessagesType$inboundSchema,
|
|
836
|
+
audioUrl: types.optional(types.string()),
|
|
837
|
+
audioDuration: types.optional(types.number()),
|
|
838
|
+
hostUrn: types.optional(types.string()),
|
|
839
|
+
repliedText: types.optional(types.string()),
|
|
840
|
+
repliedSenderName: types.optional(types.string()),
|
|
841
|
+
imageUrl: types.optional(types.string()),
|
|
842
|
+
fileName: types.optional(types.string()),
|
|
843
|
+
fileUrl: types.optional(types.string()),
|
|
844
|
+
});
|
|
845
|
+
export function getConversationMessagesAttachmentFromJSON(jsonString) {
|
|
846
|
+
return safeParse(jsonString, (x) => GetConversationMessagesAttachment$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetConversationMessagesAttachment' from JSON`);
|
|
847
|
+
}
|
|
848
|
+
/** @internal */
|
|
849
|
+
export const GetConversationMessagesMessage$inboundSchema = z.object({
|
|
850
|
+
messageUrn: types.string(),
|
|
851
|
+
text: types.string(),
|
|
852
|
+
deliveredAt: types.number(),
|
|
853
|
+
senderProfileUrn: types.string(),
|
|
854
|
+
sender: z.lazy(() => GetConversationMessagesSender$inboundSchema),
|
|
855
|
+
attachments: z.array(z.lazy(() => GetConversationMessagesAttachment$inboundSchema)),
|
|
856
|
+
});
|
|
857
|
+
export function getConversationMessagesMessageFromJSON(jsonString) {
|
|
858
|
+
return safeParse(jsonString, (x) => GetConversationMessagesMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetConversationMessagesMessage' from JSON`);
|
|
859
|
+
}
|
|
860
|
+
/** @internal */
|
|
861
|
+
export const GetConversationMessagesResponse$inboundSchema = z.object({
|
|
862
|
+
success: types.boolean(),
|
|
863
|
+
messages: z.array(z.lazy(() => GetConversationMessagesMessage$inboundSchema)),
|
|
864
|
+
prevCursor: types.nullable(types.number()),
|
|
865
|
+
creditsUsed: types.number(),
|
|
866
|
+
retryAfter: types.number(),
|
|
867
|
+
});
|
|
868
|
+
export function getConversationMessagesResponseFromJSON(jsonString) {
|
|
869
|
+
return safeParse(jsonString, (x) => GetConversationMessagesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetConversationMessagesResponse' from JSON`);
|
|
870
|
+
}
|
|
871
|
+
/** @internal */
|
|
872
|
+
export const FilterCampaignRequest$outboundSchema = z.object({
|
|
873
|
+
campaignSlug: z.string(),
|
|
874
|
+
actionSlugs: z.string(),
|
|
875
|
+
});
|
|
876
|
+
export function filterCampaignRequestToJSON(filterCampaignRequest) {
|
|
877
|
+
return JSON.stringify(FilterCampaignRequest$outboundSchema.parse(filterCampaignRequest));
|
|
878
|
+
}
|
|
879
|
+
/** @internal */
|
|
880
|
+
export const CheckedSlug$inboundSchema = z
|
|
881
|
+
.object({
|
|
882
|
+
actionSlug: types.string(),
|
|
883
|
+
completed: types.boolean(),
|
|
884
|
+
});
|
|
885
|
+
export function checkedSlugFromJSON(jsonString) {
|
|
886
|
+
return safeParse(jsonString, (x) => CheckedSlug$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CheckedSlug' from JSON`);
|
|
887
|
+
}
|
|
888
|
+
/** @internal */
|
|
889
|
+
export const FilterCampaignResponse$inboundSchema = z.object({
|
|
890
|
+
filtered: types.boolean(),
|
|
891
|
+
checkedSlugs: z.array(z.lazy(() => CheckedSlug$inboundSchema)),
|
|
892
|
+
creditsUsed: types.number(),
|
|
893
|
+
retryAfter: types.number(),
|
|
894
|
+
});
|
|
895
|
+
export function filterCampaignResponseFromJSON(jsonString) {
|
|
896
|
+
return safeParse(jsonString, (x) => FilterCampaignResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FilterCampaignResponse' from JSON`);
|
|
897
|
+
}
|
|
898
|
+
/** @internal */
|
|
899
|
+
export const GetCampaignStatusRequestBody$outboundSchema = z.object({
|
|
900
|
+
profiles: z.array(z.string()),
|
|
901
|
+
});
|
|
902
|
+
export function getCampaignStatusRequestBodyToJSON(getCampaignStatusRequestBody) {
|
|
903
|
+
return JSON.stringify(GetCampaignStatusRequestBody$outboundSchema.parse(getCampaignStatusRequestBody));
|
|
904
|
+
}
|
|
905
|
+
/** @internal */
|
|
906
|
+
export const GetCampaignStatusRequest$outboundSchema = z.object({
|
|
907
|
+
campaignSlug: z.string(),
|
|
908
|
+
body: z.lazy(() => GetCampaignStatusRequestBody$outboundSchema),
|
|
909
|
+
});
|
|
910
|
+
export function getCampaignStatusRequestToJSON(getCampaignStatusRequest) {
|
|
911
|
+
return JSON.stringify(GetCampaignStatusRequest$outboundSchema.parse(getCampaignStatusRequest));
|
|
912
|
+
}
|
|
913
|
+
/** @internal */
|
|
914
|
+
export const GetCampaignStatusProfile$inboundSchema = z.object({
|
|
915
|
+
profile: types.string(),
|
|
916
|
+
message: types.boolean(),
|
|
917
|
+
reply: types.boolean(),
|
|
918
|
+
like: types.boolean(),
|
|
919
|
+
visit: types.boolean(),
|
|
920
|
+
connect: types.boolean(),
|
|
921
|
+
});
|
|
922
|
+
export function getCampaignStatusProfileFromJSON(jsonString) {
|
|
923
|
+
return safeParse(jsonString, (x) => GetCampaignStatusProfile$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCampaignStatusProfile' from JSON`);
|
|
924
|
+
}
|
|
925
|
+
/** @internal */
|
|
926
|
+
export const GetCampaignStatusResponse$inboundSchema = z.object({
|
|
927
|
+
success: types.boolean(),
|
|
928
|
+
profiles: z.array(z.lazy(() => GetCampaignStatusProfile$inboundSchema)),
|
|
929
|
+
creditsUsed: types.number(),
|
|
930
|
+
retryAfter: types.number(),
|
|
931
|
+
});
|
|
932
|
+
export function getCampaignStatusResponseFromJSON(jsonString) {
|
|
933
|
+
return safeParse(jsonString, (x) => GetCampaignStatusResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCampaignStatusResponse' from JSON`);
|
|
934
|
+
}
|
|
935
|
+
/** @internal */
|
|
936
|
+
export const Action$outboundSchema = z.enum(Action);
|
|
937
|
+
/** @internal */
|
|
938
|
+
export const SyncCampaignActionsProfile$outboundSchema = z.object({
|
|
939
|
+
profile: z.string(),
|
|
940
|
+
actions: z.array(Action$outboundSchema),
|
|
941
|
+
});
|
|
942
|
+
export function syncCampaignActionsProfileToJSON(syncCampaignActionsProfile) {
|
|
943
|
+
return JSON.stringify(SyncCampaignActionsProfile$outboundSchema.parse(syncCampaignActionsProfile));
|
|
944
|
+
}
|
|
945
|
+
/** @internal */
|
|
946
|
+
export const SyncCampaignActionsRequestBody$outboundSchema = z.object({
|
|
947
|
+
profiles: z.array(z.lazy(() => SyncCampaignActionsProfile$outboundSchema)),
|
|
948
|
+
});
|
|
949
|
+
export function syncCampaignActionsRequestBodyToJSON(syncCampaignActionsRequestBody) {
|
|
950
|
+
return JSON.stringify(SyncCampaignActionsRequestBody$outboundSchema.parse(syncCampaignActionsRequestBody));
|
|
951
|
+
}
|
|
952
|
+
/** @internal */
|
|
953
|
+
export const SyncCampaignActionsRequest$outboundSchema = z.object({
|
|
954
|
+
campaignSlug: z.string(),
|
|
955
|
+
body: z.lazy(() => SyncCampaignActionsRequestBody$outboundSchema),
|
|
956
|
+
});
|
|
957
|
+
export function syncCampaignActionsRequestToJSON(syncCampaignActionsRequest) {
|
|
958
|
+
return JSON.stringify(SyncCampaignActionsRequest$outboundSchema.parse(syncCampaignActionsRequest));
|
|
959
|
+
}
|
|
960
|
+
/** @internal */
|
|
961
|
+
export const Synced$inboundSchema = z.object({
|
|
962
|
+
profile: types.string(),
|
|
963
|
+
actions: z.record(z.string(), types.boolean()),
|
|
964
|
+
});
|
|
965
|
+
export function syncedFromJSON(jsonString) {
|
|
966
|
+
return safeParse(jsonString, (x) => Synced$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Synced' from JSON`);
|
|
967
|
+
}
|
|
968
|
+
/** @internal */
|
|
969
|
+
export const SyncCampaignActionsResponse$inboundSchema = z.object({
|
|
970
|
+
success: types.boolean(),
|
|
971
|
+
synced: z.array(z.lazy(() => Synced$inboundSchema)),
|
|
972
|
+
creditsUsed: types.number(),
|
|
973
|
+
retryAfter: types.number(),
|
|
974
|
+
});
|
|
975
|
+
export function syncCampaignActionsResponseFromJSON(jsonString) {
|
|
976
|
+
return safeParse(jsonString, (x) => SyncCampaignActionsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SyncCampaignActionsResponse' from JSON`);
|
|
977
|
+
}
|
|
978
|
+
/** @internal */
|
|
979
|
+
export const GetCampaignStatsRequestBody$outboundSchema = z.object({});
|
|
980
|
+
export function getCampaignStatsRequestBodyToJSON(getCampaignStatsRequestBody) {
|
|
981
|
+
return JSON.stringify(GetCampaignStatsRequestBody$outboundSchema.parse(getCampaignStatsRequestBody));
|
|
982
|
+
}
|
|
983
|
+
/** @internal */
|
|
984
|
+
export const GetCampaignStatsRequest$outboundSchema = z.object({
|
|
985
|
+
campaignSlug: z.string(),
|
|
986
|
+
body: z.optional(z.lazy(() => GetCampaignStatsRequestBody$outboundSchema)),
|
|
987
|
+
});
|
|
988
|
+
export function getCampaignStatsRequestToJSON(getCampaignStatsRequest) {
|
|
989
|
+
return JSON.stringify(GetCampaignStatsRequest$outboundSchema.parse(getCampaignStatsRequest));
|
|
990
|
+
}
|
|
991
|
+
/** @internal */
|
|
992
|
+
export const GetCampaignStatsResponse$inboundSchema = z.object({
|
|
993
|
+
success: types.boolean(),
|
|
994
|
+
stats: z.record(z.string(), types.number()),
|
|
995
|
+
totalProfiles: types.number(),
|
|
996
|
+
creditsUsed: types.number(),
|
|
997
|
+
retryAfter: types.number(),
|
|
998
|
+
});
|
|
999
|
+
export function getCampaignStatsResponseFromJSON(jsonString) {
|
|
1000
|
+
return safeParse(jsonString, (x) => GetCampaignStatsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCampaignStatsResponse' from JSON`);
|
|
1001
|
+
}
|
|
1002
|
+
//# sourceMappingURL=get-campaign-stats-response.js.map
|