@zernio/node 0.2.62 → 0.2.64
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 +2 -0
- package/dist/index.d.mts +234 -18
- package/dist/index.d.ts +234 -18
- package/dist/index.js +15 -1
- package/dist/index.mjs +15 -1
- package/package.json +1 -1
- package/src/client.ts +4 -0
- package/src/generated/sdk.gen.ts +56 -1
- package/src/generated/types.gen.ts +240 -18
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
3
|
import { createClient, createConfig, type OptionsLegacyParser, formDataBodySerializer } from '@hey-api/client-fetch';
|
|
4
|
-
import type { ValidatePostLengthData, ValidatePostLengthError, ValidatePostLengthResponse, ValidatePostData, ValidatePostError, ValidatePostResponse, ValidateMediaData, ValidateMediaError, ValidateMediaResponse, ValidateSubredditData, ValidateSubredditError, ValidateSubredditResponse, GetAnalyticsData, GetAnalyticsError, GetAnalyticsResponse, GetYouTubeDailyViewsData, GetYouTubeDailyViewsError, GetYouTubeDailyViewsResponse, GetInstagramAccountInsightsData, GetInstagramAccountInsightsError, GetInstagramAccountInsightsResponse, GetInstagramDemographicsData, GetInstagramDemographicsError, GetInstagramDemographicsResponse, GetYouTubeDemographicsData, GetYouTubeDemographicsError, GetYouTubeDemographicsResponse, GetDailyMetricsData, GetDailyMetricsError, GetDailyMetricsResponse, GetBestTimeToPostData, GetBestTimeToPostError, GetBestTimeToPostResponse, GetContentDecayData, GetContentDecayError, GetContentDecayResponse, GetPostingFrequencyData, GetPostingFrequencyError, GetPostingFrequencyResponse, GetPostTimelineData, GetPostTimelineError, GetPostTimelineResponse, GetGoogleBusinessPerformanceData, GetGoogleBusinessPerformanceError, GetGoogleBusinessPerformanceResponse, GetGoogleBusinessSearchKeywordsData, GetGoogleBusinessSearchKeywordsError, GetGoogleBusinessSearchKeywordsResponse, ListAccountGroupsError, ListAccountGroupsResponse, CreateAccountGroupData, CreateAccountGroupError, CreateAccountGroupResponse, UpdateAccountGroupData, UpdateAccountGroupError, UpdateAccountGroupResponse, DeleteAccountGroupData, DeleteAccountGroupError, DeleteAccountGroupResponse, GetMediaPresignedUrlData, GetMediaPresignedUrlError, GetMediaPresignedUrlResponse, SearchRedditData, SearchRedditError, SearchRedditResponse, GetRedditFeedData, GetRedditFeedError, GetRedditFeedResponse, GetUsageStatsError, GetUsageStatsResponse, ListPostsData, ListPostsError, ListPostsResponse, CreatePostData, CreatePostError, CreatePostResponse, GetPostData, GetPostError, GetPostResponse, UpdatePostData, UpdatePostError, UpdatePostResponse, DeletePostData, DeletePostError, DeletePostResponse, BulkUploadPostsData, BulkUploadPostsError, BulkUploadPostsResponse, RetryPostData, RetryPostError, RetryPostResponse, UnpublishPostData, UnpublishPostError, UnpublishPostResponse, EditPostData, EditPostError, EditPostResponse, UpdatePostMetadataData, UpdatePostMetadataError, UpdatePostMetadataResponse, ListUsersError, ListUsersResponse, GetUserData, GetUserError, GetUserResponse, ListProfilesData, ListProfilesError, ListProfilesResponse, CreateProfileData, CreateProfileError, CreateProfileResponse, GetProfileData, GetProfileError, GetProfileResponse, UpdateProfileData, UpdateProfileError, UpdateProfileResponse, DeleteProfileData, DeleteProfileError, DeleteProfileResponse, ListAccountsData, ListAccountsError, ListAccountsResponse, GetFollowerStatsData, GetFollowerStatsError, GetFollowerStatsResponse, UpdateAccountData, UpdateAccountError, UpdateAccountResponse, DeleteAccountData, DeleteAccountError, DeleteAccountResponse, GetAllAccountsHealthData, GetAllAccountsHealthError, GetAllAccountsHealthResponse, GetAccountHealthData, GetAccountHealthError, GetAccountHealthResponse, GetTikTokCreatorInfoData, GetTikTokCreatorInfoError, GetTikTokCreatorInfoResponse, ListApiKeysError, ListApiKeysResponse, CreateApiKeyData, CreateApiKeyError, CreateApiKeyResponse, DeleteApiKeyData, DeleteApiKeyError, DeleteApiKeyResponse, CreateInviteTokenData, CreateInviteTokenError, CreateInviteTokenResponse, GetConnectUrlData, GetConnectUrlError, GetConnectUrlResponse, HandleOAuthCallbackData, HandleOAuthCallbackError, HandleOAuthCallbackResponse, ConnectAdsData, ConnectAdsError, ConnectAdsResponse, ListFacebookPagesData, ListFacebookPagesError, ListFacebookPagesResponse, SelectFacebookPageData, SelectFacebookPageError, SelectFacebookPageResponse, ListGoogleBusinessLocationsData, ListGoogleBusinessLocationsError, ListGoogleBusinessLocationsResponse, SelectGoogleBusinessLocationData, SelectGoogleBusinessLocationError, SelectGoogleBusinessLocationResponse, GetGoogleBusinessReviewsData, GetGoogleBusinessReviewsError, GetGoogleBusinessReviewsResponse, GetGoogleBusinessFoodMenusData, GetGoogleBusinessFoodMenusError, GetGoogleBusinessFoodMenusResponse, UpdateGoogleBusinessFoodMenusData, UpdateGoogleBusinessFoodMenusError, UpdateGoogleBusinessFoodMenusResponse, GetGoogleBusinessLocationDetailsData, GetGoogleBusinessLocationDetailsError, GetGoogleBusinessLocationDetailsResponse, UpdateGoogleBusinessLocationDetailsData, UpdateGoogleBusinessLocationDetailsError, UpdateGoogleBusinessLocationDetailsResponse, ListGoogleBusinessMediaData, ListGoogleBusinessMediaError, ListGoogleBusinessMediaResponse, CreateGoogleBusinessMediaData, CreateGoogleBusinessMediaError, CreateGoogleBusinessMediaResponse, DeleteGoogleBusinessMediaData, DeleteGoogleBusinessMediaError, DeleteGoogleBusinessMediaResponse, GetGoogleBusinessAttributesData, GetGoogleBusinessAttributesError, GetGoogleBusinessAttributesResponse, UpdateGoogleBusinessAttributesData, UpdateGoogleBusinessAttributesError, UpdateGoogleBusinessAttributesResponse, ListGoogleBusinessPlaceActionsData, ListGoogleBusinessPlaceActionsError, ListGoogleBusinessPlaceActionsResponse, CreateGoogleBusinessPlaceActionData, CreateGoogleBusinessPlaceActionError, CreateGoogleBusinessPlaceActionResponse, DeleteGoogleBusinessPlaceActionData, DeleteGoogleBusinessPlaceActionError, DeleteGoogleBusinessPlaceActionResponse, GetPendingOAuthDataData, GetPendingOAuthDataError, GetPendingOAuthDataResponse, ListLinkedInOrganizationsData, ListLinkedInOrganizationsError, ListLinkedInOrganizationsResponse, SelectLinkedInOrganizationData, SelectLinkedInOrganizationError, SelectLinkedInOrganizationResponse, ListPinterestBoardsForSelectionData, ListPinterestBoardsForSelectionError, ListPinterestBoardsForSelectionResponse, SelectPinterestBoardData, SelectPinterestBoardError, SelectPinterestBoardResponse, ListSnapchatProfilesData, ListSnapchatProfilesError, ListSnapchatProfilesResponse, SelectSnapchatProfileData, SelectSnapchatProfileError, SelectSnapchatProfileResponse, ConnectBlueskyCredentialsData, ConnectBlueskyCredentialsError, ConnectBlueskyCredentialsResponse, ConnectWhatsAppCredentialsData, ConnectWhatsAppCredentialsError, ConnectWhatsAppCredentialsResponse, GetTelegramConnectStatusData, GetTelegramConnectStatusError, GetTelegramConnectStatusResponse, InitiateTelegramConnectData, InitiateTelegramConnectError, InitiateTelegramConnectResponse, CompleteTelegramConnectData, CompleteTelegramConnectError, CompleteTelegramConnectResponse, GetFacebookPagesData, GetFacebookPagesError, GetFacebookPagesResponse, UpdateFacebookPageData, UpdateFacebookPageError, UpdateFacebookPageResponse, GetLinkedInOrganizationsData, GetLinkedInOrganizationsError, GetLinkedInOrganizationsResponse, GetLinkedInAggregateAnalyticsData, GetLinkedInAggregateAnalyticsError, GetLinkedInAggregateAnalyticsResponse, GetLinkedInPostAnalyticsData, GetLinkedInPostAnalyticsError, GetLinkedInPostAnalyticsResponse, GetLinkedInPostReactionsData, GetLinkedInPostReactionsError, GetLinkedInPostReactionsResponse, UpdateLinkedInOrganizationData, UpdateLinkedInOrganizationError, UpdateLinkedInOrganizationResponse, GetLinkedInMentionsData, GetLinkedInMentionsError, GetLinkedInMentionsResponse, GetPinterestBoardsData, GetPinterestBoardsError, GetPinterestBoardsResponse, UpdatePinterestBoardsData, UpdatePinterestBoardsError, UpdatePinterestBoardsResponse, GetYoutubePlaylistsData, GetYoutubePlaylistsError, GetYoutubePlaylistsResponse, UpdateYoutubeDefaultPlaylistData, UpdateYoutubeDefaultPlaylistError, UpdateYoutubeDefaultPlaylistResponse, GetGmbLocationsData, GetGmbLocationsError, GetGmbLocationsResponse, UpdateGmbLocationData, UpdateGmbLocationError, UpdateGmbLocationResponse, GetRedditSubredditsData, GetRedditSubredditsError, GetRedditSubredditsResponse, UpdateRedditSubredditsData, UpdateRedditSubredditsError, UpdateRedditSubredditsResponse, GetRedditFlairsData, GetRedditFlairsError, GetRedditFlairsResponse, ListQueueSlotsData, ListQueueSlotsError, ListQueueSlotsResponse, CreateQueueSlotData, CreateQueueSlotError, CreateQueueSlotResponse, UpdateQueueSlotData, UpdateQueueSlotError, UpdateQueueSlotResponse, DeleteQueueSlotData, DeleteQueueSlotError, DeleteQueueSlotResponse, PreviewQueueData, PreviewQueueError, PreviewQueueResponse, GetNextQueueSlotData, GetNextQueueSlotError, GetNextQueueSlotResponse, GetWebhookSettingsError, GetWebhookSettingsResponse, CreateWebhookSettingsData, CreateWebhookSettingsError, CreateWebhookSettingsResponse, UpdateWebhookSettingsData, UpdateWebhookSettingsError, UpdateWebhookSettingsResponse, DeleteWebhookSettingsData, DeleteWebhookSettingsError, DeleteWebhookSettingsResponse, TestWebhookData, TestWebhookError, TestWebhookResponse, ListLogsData, ListLogsError, ListLogsResponse, ListInboxConversationsData, ListInboxConversationsError, ListInboxConversationsResponse, CreateInboxConversationData, CreateInboxConversationError, CreateInboxConversationResponse, GetInboxConversationData, GetInboxConversationError, GetInboxConversationResponse, UpdateInboxConversationData, UpdateInboxConversationError, UpdateInboxConversationResponse, GetInboxConversationMessagesData, GetInboxConversationMessagesError, GetInboxConversationMessagesResponse, SendInboxMessageData, SendInboxMessageError, SendInboxMessageResponse, EditInboxMessageData, EditInboxMessageError, EditInboxMessageResponse, DeleteInboxMessageData, DeleteInboxMessageError, DeleteInboxMessageResponse, SendTypingIndicatorData, SendTypingIndicatorError, SendTypingIndicatorResponse, AddMessageReactionData, AddMessageReactionError, AddMessageReactionResponse, RemoveMessageReactionData, RemoveMessageReactionError, RemoveMessageReactionResponse, UploadMediaDirectData, UploadMediaDirectError, UploadMediaDirectResponse, GetMessengerMenuData, GetMessengerMenuError, GetMessengerMenuResponse, SetMessengerMenuData, SetMessengerMenuError, SetMessengerMenuResponse, DeleteMessengerMenuData, DeleteMessengerMenuError, DeleteMessengerMenuResponse, GetInstagramIceBreakersData, GetInstagramIceBreakersError, GetInstagramIceBreakersResponse, SetInstagramIceBreakersData, SetInstagramIceBreakersError, SetInstagramIceBreakersResponse, DeleteInstagramIceBreakersData, DeleteInstagramIceBreakersError, DeleteInstagramIceBreakersResponse, GetTelegramCommandsData, GetTelegramCommandsError, GetTelegramCommandsResponse, SetTelegramCommandsData, SetTelegramCommandsError, SetTelegramCommandsResponse, DeleteTelegramCommandsData, DeleteTelegramCommandsError, DeleteTelegramCommandsResponse, ListInboxCommentsData, ListInboxCommentsError, ListInboxCommentsResponse, GetInboxPostCommentsData, GetInboxPostCommentsError, GetInboxPostCommentsResponse, ReplyToInboxPostData, ReplyToInboxPostError, ReplyToInboxPostResponse, DeleteInboxCommentData, DeleteInboxCommentError, DeleteInboxCommentResponse, HideInboxCommentData, HideInboxCommentError, HideInboxCommentResponse, UnhideInboxCommentData, UnhideInboxCommentError, UnhideInboxCommentResponse, LikeInboxCommentData, LikeInboxCommentError, LikeInboxCommentResponse, UnlikeInboxCommentData, UnlikeInboxCommentError, UnlikeInboxCommentResponse, SendPrivateReplyToCommentData, SendPrivateReplyToCommentError, SendPrivateReplyToCommentResponse, RetweetPostData, RetweetPostError, RetweetPostResponse, UndoRetweetData, UndoRetweetError, UndoRetweetResponse, BookmarkPostData, BookmarkPostError, BookmarkPostResponse, RemoveBookmarkData, RemoveBookmarkError, RemoveBookmarkResponse, FollowUserData, FollowUserError, FollowUserResponse, UnfollowUserData, UnfollowUserError, UnfollowUserResponse, ListInboxReviewsData, ListInboxReviewsError, ListInboxReviewsResponse, ReplyToInboxReviewData, ReplyToInboxReviewError, ReplyToInboxReviewResponse, DeleteInboxReviewReplyData, DeleteInboxReviewReplyError, DeleteInboxReviewReplyResponse, GetWhatsAppTemplatesData, GetWhatsAppTemplatesError, GetWhatsAppTemplatesResponse, CreateWhatsAppTemplateData, CreateWhatsAppTemplateError, CreateWhatsAppTemplateResponse, GetWhatsAppTemplateData, GetWhatsAppTemplateError, GetWhatsAppTemplateResponse, UpdateWhatsAppTemplateData, UpdateWhatsAppTemplateError, UpdateWhatsAppTemplateResponse, DeleteWhatsAppTemplateData, DeleteWhatsAppTemplateError, DeleteWhatsAppTemplateResponse, GetWhatsAppBusinessProfileData, GetWhatsAppBusinessProfileError, GetWhatsAppBusinessProfileResponse, UpdateWhatsAppBusinessProfileData, UpdateWhatsAppBusinessProfileError, UpdateWhatsAppBusinessProfileResponse, UploadWhatsAppProfilePhotoData, UploadWhatsAppProfilePhotoError, UploadWhatsAppProfilePhotoResponse, GetWhatsAppDisplayNameData, GetWhatsAppDisplayNameError, GetWhatsAppDisplayNameResponse, UpdateWhatsAppDisplayNameData, UpdateWhatsAppDisplayNameError, UpdateWhatsAppDisplayNameResponse, GetWhatsAppPhoneNumbersData, GetWhatsAppPhoneNumbersError, GetWhatsAppPhoneNumbersResponse, PurchaseWhatsAppPhoneNumberData, PurchaseWhatsAppPhoneNumberError, PurchaseWhatsAppPhoneNumberResponse, GetWhatsAppPhoneNumberData, GetWhatsAppPhoneNumberError, GetWhatsAppPhoneNumberResponse, ReleaseWhatsAppPhoneNumberData, ReleaseWhatsAppPhoneNumberError, ReleaseWhatsAppPhoneNumberResponse, ListWhatsAppGroupChatsData, ListWhatsAppGroupChatsError, ListWhatsAppGroupChatsResponse, CreateWhatsAppGroupChatData, CreateWhatsAppGroupChatError, CreateWhatsAppGroupChatResponse, GetWhatsAppGroupChatData, GetWhatsAppGroupChatError, GetWhatsAppGroupChatResponse, UpdateWhatsAppGroupChatData, UpdateWhatsAppGroupChatError, UpdateWhatsAppGroupChatResponse, DeleteWhatsAppGroupChatData, DeleteWhatsAppGroupChatError, DeleteWhatsAppGroupChatResponse, AddWhatsAppGroupParticipantsData, AddWhatsAppGroupParticipantsError, AddWhatsAppGroupParticipantsResponse, RemoveWhatsAppGroupParticipantsData, RemoveWhatsAppGroupParticipantsError, RemoveWhatsAppGroupParticipantsResponse, CreateWhatsAppGroupInviteLinkData, CreateWhatsAppGroupInviteLinkError, CreateWhatsAppGroupInviteLinkResponse, ListWhatsAppGroupJoinRequestsData, ListWhatsAppGroupJoinRequestsError, ListWhatsAppGroupJoinRequestsResponse, ApproveWhatsAppGroupJoinRequestsData, ApproveWhatsAppGroupJoinRequestsError, ApproveWhatsAppGroupJoinRequestsResponse, RejectWhatsAppGroupJoinRequestsData, RejectWhatsAppGroupJoinRequestsError, RejectWhatsAppGroupJoinRequestsResponse, ListWhatsAppFlowsData, ListWhatsAppFlowsError, ListWhatsAppFlowsResponse, CreateWhatsAppFlowData, CreateWhatsAppFlowError, CreateWhatsAppFlowResponse, GetWhatsAppFlowData, GetWhatsAppFlowError, GetWhatsAppFlowResponse, UpdateWhatsAppFlowData, UpdateWhatsAppFlowError, UpdateWhatsAppFlowResponse, DeleteWhatsAppFlowData, DeleteWhatsAppFlowError, DeleteWhatsAppFlowResponse, GetWhatsAppFlowJsonData, GetWhatsAppFlowJsonError, GetWhatsAppFlowJsonResponse, UploadWhatsAppFlowJsonData, UploadWhatsAppFlowJsonError, UploadWhatsAppFlowJsonResponse, PublishWhatsAppFlowData, PublishWhatsAppFlowError, PublishWhatsAppFlowResponse, DeprecateWhatsAppFlowData, DeprecateWhatsAppFlowError, DeprecateWhatsAppFlowResponse, SendWhatsAppFlowMessageData, SendWhatsAppFlowMessageError, SendWhatsAppFlowMessageResponse, ListContactsData, ListContactsError, ListContactsResponse, CreateContactData, CreateContactError, CreateContactResponse, GetContactData, GetContactError, GetContactResponse, UpdateContactData, UpdateContactError, UpdateContactResponse, DeleteContactData, DeleteContactError, DeleteContactResponse, GetContactChannelsData, GetContactChannelsError, GetContactChannelsResponse, BulkCreateContactsData, BulkCreateContactsError, BulkCreateContactsResponse, SetContactFieldValueData, SetContactFieldValueError, SetContactFieldValueResponse, ClearContactFieldValueData, ClearContactFieldValueError, ClearContactFieldValueResponse, ListCustomFieldsData, ListCustomFieldsError, ListCustomFieldsResponse, CreateCustomFieldData, CreateCustomFieldError, CreateCustomFieldResponse, UpdateCustomFieldData, UpdateCustomFieldError, UpdateCustomFieldResponse, DeleteCustomFieldData, DeleteCustomFieldError, DeleteCustomFieldResponse, ListBroadcastsData, ListBroadcastsError, ListBroadcastsResponse, CreateBroadcastData, CreateBroadcastError, CreateBroadcastResponse, GetBroadcastData, GetBroadcastError, GetBroadcastResponse, UpdateBroadcastData, UpdateBroadcastError, UpdateBroadcastResponse, DeleteBroadcastData, DeleteBroadcastError, DeleteBroadcastResponse, SendBroadcastData, SendBroadcastError, SendBroadcastResponse, ScheduleBroadcastData, ScheduleBroadcastError, ScheduleBroadcastResponse, CancelBroadcastData, CancelBroadcastError, CancelBroadcastResponse, ListBroadcastRecipientsData, ListBroadcastRecipientsError, ListBroadcastRecipientsResponse, AddBroadcastRecipientsData, AddBroadcastRecipientsError, AddBroadcastRecipientsResponse, ListSequencesData, ListSequencesError, ListSequencesResponse, CreateSequenceData, CreateSequenceError, CreateSequenceResponse, GetSequenceData, GetSequenceError, GetSequenceResponse, UpdateSequenceData, UpdateSequenceError, UpdateSequenceResponse, DeleteSequenceData, DeleteSequenceError, DeleteSequenceResponse, ActivateSequenceData, ActivateSequenceError, ActivateSequenceResponse, PauseSequenceData, PauseSequenceError, PauseSequenceResponse, EnrollContactsData, EnrollContactsError, EnrollContactsResponse, UnenrollContactData, UnenrollContactError, UnenrollContactResponse, ListSequenceEnrollmentsData, ListSequenceEnrollmentsError, ListSequenceEnrollmentsResponse, ListCommentAutomationsData, ListCommentAutomationsError, ListCommentAutomationsResponse, CreateCommentAutomationData, CreateCommentAutomationError, CreateCommentAutomationResponse, GetCommentAutomationData, GetCommentAutomationError, GetCommentAutomationResponse, UpdateCommentAutomationData, UpdateCommentAutomationError, UpdateCommentAutomationResponse, DeleteCommentAutomationData, DeleteCommentAutomationError, DeleteCommentAutomationResponse, ListCommentAutomationLogsData, ListCommentAutomationLogsError, ListCommentAutomationLogsResponse, ListAdsData, ListAdsError, ListAdsResponse, ListAdCampaignsData, ListAdCampaignsError, ListAdCampaignsResponse, UpdateAdCampaignStatusData, UpdateAdCampaignStatusError, UpdateAdCampaignStatusResponse, GetAdTreeData, GetAdTreeError, GetAdTreeResponse, GetAdData, GetAdError, GetAdResponse, UpdateAdData, UpdateAdError, UpdateAdResponse, DeleteAdData, DeleteAdError, DeleteAdResponse, GetAdAnalyticsData, GetAdAnalyticsError, GetAdAnalyticsResponse, ListAdAccountsData, ListAdAccountsError, ListAdAccountsResponse, BoostPostData, BoostPostError, BoostPostResponse, CreateStandaloneAdData, CreateStandaloneAdError, CreateStandaloneAdResponse, SearchAdInterestsData, SearchAdInterestsError, SearchAdInterestsResponse, ListAdAudiencesData, ListAdAudiencesError, ListAdAudiencesResponse, CreateAdAudienceData, CreateAdAudienceError, CreateAdAudienceResponse, GetAdAudienceData, GetAdAudienceError, GetAdAudienceResponse, DeleteAdAudienceData, DeleteAdAudienceError, DeleteAdAudienceResponse, AddUsersToAdAudienceData, AddUsersToAdAudienceError, AddUsersToAdAudienceResponse } from './types.gen';
|
|
4
|
+
import type { ValidatePostLengthData, ValidatePostLengthError, ValidatePostLengthResponse, ValidatePostData, ValidatePostError, ValidatePostResponse, ValidateMediaData, ValidateMediaError, ValidateMediaResponse, ValidateSubredditData, ValidateSubredditError, ValidateSubredditResponse, GetAnalyticsData, GetAnalyticsError, GetAnalyticsResponse, GetYouTubeDailyViewsData, GetYouTubeDailyViewsError, GetYouTubeDailyViewsResponse, GetInstagramAccountInsightsData, GetInstagramAccountInsightsError, GetInstagramAccountInsightsResponse, GetInstagramDemographicsData, GetInstagramDemographicsError, GetInstagramDemographicsResponse, GetYouTubeDemographicsData, GetYouTubeDemographicsError, GetYouTubeDemographicsResponse, GetDailyMetricsData, GetDailyMetricsError, GetDailyMetricsResponse, GetBestTimeToPostData, GetBestTimeToPostError, GetBestTimeToPostResponse, GetContentDecayData, GetContentDecayError, GetContentDecayResponse, GetPostingFrequencyData, GetPostingFrequencyError, GetPostingFrequencyResponse, GetPostTimelineData, GetPostTimelineError, GetPostTimelineResponse, GetGoogleBusinessPerformanceData, GetGoogleBusinessPerformanceError, GetGoogleBusinessPerformanceResponse, GetGoogleBusinessSearchKeywordsData, GetGoogleBusinessSearchKeywordsError, GetGoogleBusinessSearchKeywordsResponse, ListAccountGroupsError, ListAccountGroupsResponse, CreateAccountGroupData, CreateAccountGroupError, CreateAccountGroupResponse, UpdateAccountGroupData, UpdateAccountGroupError, UpdateAccountGroupResponse, DeleteAccountGroupData, DeleteAccountGroupError, DeleteAccountGroupResponse, GetMediaPresignedUrlData, GetMediaPresignedUrlError, GetMediaPresignedUrlResponse, SearchRedditData, SearchRedditError, SearchRedditResponse, GetRedditFeedData, GetRedditFeedError, GetRedditFeedResponse, GetUsageStatsError, GetUsageStatsResponse, ListPostsData, ListPostsError, ListPostsResponse, CreatePostData, CreatePostError, CreatePostResponse, GetPostData, GetPostError, GetPostResponse, UpdatePostData, UpdatePostError, UpdatePostResponse, DeletePostData, DeletePostError, DeletePostResponse, BulkUploadPostsData, BulkUploadPostsError, BulkUploadPostsResponse, RetryPostData, RetryPostError, RetryPostResponse, UnpublishPostData, UnpublishPostError, UnpublishPostResponse, EditPostData, EditPostError, EditPostResponse, UpdatePostMetadataData, UpdatePostMetadataError, UpdatePostMetadataResponse, ListUsersError, ListUsersResponse, GetUserData, GetUserError, GetUserResponse, ListProfilesData, ListProfilesError, ListProfilesResponse, CreateProfileData, CreateProfileError, CreateProfileResponse, GetProfileData, GetProfileError, GetProfileResponse, UpdateProfileData, UpdateProfileError, UpdateProfileResponse, DeleteProfileData, DeleteProfileError, DeleteProfileResponse, ListAccountsData, ListAccountsError, ListAccountsResponse, GetFollowerStatsData, GetFollowerStatsError, GetFollowerStatsResponse, UpdateAccountData, UpdateAccountError, UpdateAccountResponse, DeleteAccountData, DeleteAccountError, DeleteAccountResponse, GetAllAccountsHealthData, GetAllAccountsHealthError, GetAllAccountsHealthResponse, GetAccountHealthData, GetAccountHealthError, GetAccountHealthResponse, GetTikTokCreatorInfoData, GetTikTokCreatorInfoError, GetTikTokCreatorInfoResponse, ListApiKeysError, ListApiKeysResponse, CreateApiKeyData, CreateApiKeyError, CreateApiKeyResponse, DeleteApiKeyData, DeleteApiKeyError, DeleteApiKeyResponse, CreateInviteTokenData, CreateInviteTokenError, CreateInviteTokenResponse, GetConnectUrlData, GetConnectUrlError, GetConnectUrlResponse, HandleOAuthCallbackData, HandleOAuthCallbackError, HandleOAuthCallbackResponse, ConnectAdsData, ConnectAdsError, ConnectAdsResponse, ListFacebookPagesData, ListFacebookPagesError, ListFacebookPagesResponse, SelectFacebookPageData, SelectFacebookPageError, SelectFacebookPageResponse, ListGoogleBusinessLocationsData, ListGoogleBusinessLocationsError, ListGoogleBusinessLocationsResponse, SelectGoogleBusinessLocationData, SelectGoogleBusinessLocationError, SelectGoogleBusinessLocationResponse, GetGoogleBusinessReviewsData, GetGoogleBusinessReviewsError, GetGoogleBusinessReviewsResponse, GetGoogleBusinessFoodMenusData, GetGoogleBusinessFoodMenusError, GetGoogleBusinessFoodMenusResponse, UpdateGoogleBusinessFoodMenusData, UpdateGoogleBusinessFoodMenusError, UpdateGoogleBusinessFoodMenusResponse, GetGoogleBusinessLocationDetailsData, GetGoogleBusinessLocationDetailsError, GetGoogleBusinessLocationDetailsResponse, UpdateGoogleBusinessLocationDetailsData, UpdateGoogleBusinessLocationDetailsError, UpdateGoogleBusinessLocationDetailsResponse, ListGoogleBusinessMediaData, ListGoogleBusinessMediaError, ListGoogleBusinessMediaResponse, CreateGoogleBusinessMediaData, CreateGoogleBusinessMediaError, CreateGoogleBusinessMediaResponse, DeleteGoogleBusinessMediaData, DeleteGoogleBusinessMediaError, DeleteGoogleBusinessMediaResponse, GetGoogleBusinessAttributesData, GetGoogleBusinessAttributesError, GetGoogleBusinessAttributesResponse, UpdateGoogleBusinessAttributesData, UpdateGoogleBusinessAttributesError, UpdateGoogleBusinessAttributesResponse, ListGoogleBusinessPlaceActionsData, ListGoogleBusinessPlaceActionsError, ListGoogleBusinessPlaceActionsResponse, CreateGoogleBusinessPlaceActionData, CreateGoogleBusinessPlaceActionError, CreateGoogleBusinessPlaceActionResponse, DeleteGoogleBusinessPlaceActionData, DeleteGoogleBusinessPlaceActionError, DeleteGoogleBusinessPlaceActionResponse, GetPendingOAuthDataData, GetPendingOAuthDataError, GetPendingOAuthDataResponse, ListLinkedInOrganizationsData, ListLinkedInOrganizationsError, ListLinkedInOrganizationsResponse, SelectLinkedInOrganizationData, SelectLinkedInOrganizationError, SelectLinkedInOrganizationResponse, ListPinterestBoardsForSelectionData, ListPinterestBoardsForSelectionError, ListPinterestBoardsForSelectionResponse, SelectPinterestBoardData, SelectPinterestBoardError, SelectPinterestBoardResponse, ListSnapchatProfilesData, ListSnapchatProfilesError, ListSnapchatProfilesResponse, SelectSnapchatProfileData, SelectSnapchatProfileError, SelectSnapchatProfileResponse, ConnectBlueskyCredentialsData, ConnectBlueskyCredentialsError, ConnectBlueskyCredentialsResponse, ConnectWhatsAppCredentialsData, ConnectWhatsAppCredentialsError, ConnectWhatsAppCredentialsResponse, GetTelegramConnectStatusData, GetTelegramConnectStatusError, GetTelegramConnectStatusResponse, InitiateTelegramConnectData, InitiateTelegramConnectError, InitiateTelegramConnectResponse, CompleteTelegramConnectData, CompleteTelegramConnectError, CompleteTelegramConnectResponse, GetFacebookPagesData, GetFacebookPagesError, GetFacebookPagesResponse, UpdateFacebookPageData, UpdateFacebookPageError, UpdateFacebookPageResponse, GetLinkedInOrganizationsData, GetLinkedInOrganizationsError, GetLinkedInOrganizationsResponse, GetLinkedInAggregateAnalyticsData, GetLinkedInAggregateAnalyticsError, GetLinkedInAggregateAnalyticsResponse, GetLinkedInPostAnalyticsData, GetLinkedInPostAnalyticsError, GetLinkedInPostAnalyticsResponse, GetLinkedInPostReactionsData, GetLinkedInPostReactionsError, GetLinkedInPostReactionsResponse, UpdateLinkedInOrganizationData, UpdateLinkedInOrganizationError, UpdateLinkedInOrganizationResponse, GetLinkedInMentionsData, GetLinkedInMentionsError, GetLinkedInMentionsResponse, GetPinterestBoardsData, GetPinterestBoardsError, GetPinterestBoardsResponse, UpdatePinterestBoardsData, UpdatePinterestBoardsError, UpdatePinterestBoardsResponse, GetYoutubePlaylistsData, GetYoutubePlaylistsError, GetYoutubePlaylistsResponse, UpdateYoutubeDefaultPlaylistData, UpdateYoutubeDefaultPlaylistError, UpdateYoutubeDefaultPlaylistResponse, GetGmbLocationsData, GetGmbLocationsError, GetGmbLocationsResponse, UpdateGmbLocationData, UpdateGmbLocationError, UpdateGmbLocationResponse, GetRedditSubredditsData, GetRedditSubredditsError, GetRedditSubredditsResponse, UpdateRedditSubredditsData, UpdateRedditSubredditsError, UpdateRedditSubredditsResponse, GetRedditFlairsData, GetRedditFlairsError, GetRedditFlairsResponse, ListQueueSlotsData, ListQueueSlotsError, ListQueueSlotsResponse, CreateQueueSlotData, CreateQueueSlotError, CreateQueueSlotResponse, UpdateQueueSlotData, UpdateQueueSlotError, UpdateQueueSlotResponse, DeleteQueueSlotData, DeleteQueueSlotError, DeleteQueueSlotResponse, PreviewQueueData, PreviewQueueError, PreviewQueueResponse, GetNextQueueSlotData, GetNextQueueSlotError, GetNextQueueSlotResponse, GetWebhookSettingsError, GetWebhookSettingsResponse, CreateWebhookSettingsData, CreateWebhookSettingsError, CreateWebhookSettingsResponse, UpdateWebhookSettingsData, UpdateWebhookSettingsError, UpdateWebhookSettingsResponse, DeleteWebhookSettingsData, DeleteWebhookSettingsError, DeleteWebhookSettingsResponse, TestWebhookData, TestWebhookError, TestWebhookResponse, ListLogsData, ListLogsError, ListLogsResponse, ListInboxConversationsData, ListInboxConversationsError, ListInboxConversationsResponse, CreateInboxConversationData, CreateInboxConversationError, CreateInboxConversationResponse, GetInboxConversationData, GetInboxConversationError, GetInboxConversationResponse, UpdateInboxConversationData, UpdateInboxConversationError, UpdateInboxConversationResponse, GetInboxConversationMessagesData, GetInboxConversationMessagesError, GetInboxConversationMessagesResponse, SendInboxMessageData, SendInboxMessageError, SendInboxMessageResponse, EditInboxMessageData, EditInboxMessageError, EditInboxMessageResponse, DeleteInboxMessageData, DeleteInboxMessageError, DeleteInboxMessageResponse, SendTypingIndicatorData, SendTypingIndicatorError, SendTypingIndicatorResponse, AddMessageReactionData, AddMessageReactionError, AddMessageReactionResponse, RemoveMessageReactionData, RemoveMessageReactionError, RemoveMessageReactionResponse, UploadMediaDirectData, UploadMediaDirectError, UploadMediaDirectResponse, GetMessengerMenuData, GetMessengerMenuError, GetMessengerMenuResponse, SetMessengerMenuData, SetMessengerMenuError, SetMessengerMenuResponse, DeleteMessengerMenuData, DeleteMessengerMenuError, DeleteMessengerMenuResponse, GetInstagramIceBreakersData, GetInstagramIceBreakersError, GetInstagramIceBreakersResponse, SetInstagramIceBreakersData, SetInstagramIceBreakersError, SetInstagramIceBreakersResponse, DeleteInstagramIceBreakersData, DeleteInstagramIceBreakersError, DeleteInstagramIceBreakersResponse, GetTelegramCommandsData, GetTelegramCommandsError, GetTelegramCommandsResponse, SetTelegramCommandsData, SetTelegramCommandsError, SetTelegramCommandsResponse, DeleteTelegramCommandsData, DeleteTelegramCommandsError, DeleteTelegramCommandsResponse, ListInboxCommentsData, ListInboxCommentsError, ListInboxCommentsResponse, GetInboxPostCommentsData, GetInboxPostCommentsError, GetInboxPostCommentsResponse, ReplyToInboxPostData, ReplyToInboxPostError, ReplyToInboxPostResponse, DeleteInboxCommentData, DeleteInboxCommentError, DeleteInboxCommentResponse, HideInboxCommentData, HideInboxCommentError, HideInboxCommentResponse, UnhideInboxCommentData, UnhideInboxCommentError, UnhideInboxCommentResponse, LikeInboxCommentData, LikeInboxCommentError, LikeInboxCommentResponse, UnlikeInboxCommentData, UnlikeInboxCommentError, UnlikeInboxCommentResponse, SendPrivateReplyToCommentData, SendPrivateReplyToCommentError, SendPrivateReplyToCommentResponse, RetweetPostData, RetweetPostError, RetweetPostResponse, UndoRetweetData, UndoRetweetError, UndoRetweetResponse, BookmarkPostData, BookmarkPostError, BookmarkPostResponse, RemoveBookmarkData, RemoveBookmarkError, RemoveBookmarkResponse, FollowUserData, FollowUserError, FollowUserResponse, UnfollowUserData, UnfollowUserError, UnfollowUserResponse, ListInboxReviewsData, ListInboxReviewsError, ListInboxReviewsResponse, ReplyToInboxReviewData, ReplyToInboxReviewError, ReplyToInboxReviewResponse, DeleteInboxReviewReplyData, DeleteInboxReviewReplyError, DeleteInboxReviewReplyResponse, GetWhatsAppTemplatesData, GetWhatsAppTemplatesError, GetWhatsAppTemplatesResponse, CreateWhatsAppTemplateData, CreateWhatsAppTemplateError, CreateWhatsAppTemplateResponse, GetWhatsAppTemplateData, GetWhatsAppTemplateError, GetWhatsAppTemplateResponse, UpdateWhatsAppTemplateData, UpdateWhatsAppTemplateError, UpdateWhatsAppTemplateResponse, DeleteWhatsAppTemplateData, DeleteWhatsAppTemplateError, DeleteWhatsAppTemplateResponse, GetWhatsAppBusinessProfileData, GetWhatsAppBusinessProfileError, GetWhatsAppBusinessProfileResponse, UpdateWhatsAppBusinessProfileData, UpdateWhatsAppBusinessProfileError, UpdateWhatsAppBusinessProfileResponse, UploadWhatsAppProfilePhotoData, UploadWhatsAppProfilePhotoError, UploadWhatsAppProfilePhotoResponse, GetWhatsAppDisplayNameData, GetWhatsAppDisplayNameError, GetWhatsAppDisplayNameResponse, UpdateWhatsAppDisplayNameData, UpdateWhatsAppDisplayNameError, UpdateWhatsAppDisplayNameResponse, GetWhatsAppPhoneNumbersData, GetWhatsAppPhoneNumbersError, GetWhatsAppPhoneNumbersResponse, PurchaseWhatsAppPhoneNumberData, PurchaseWhatsAppPhoneNumberError, PurchaseWhatsAppPhoneNumberResponse, GetWhatsAppPhoneNumberData, GetWhatsAppPhoneNumberError, GetWhatsAppPhoneNumberResponse, ReleaseWhatsAppPhoneNumberData, ReleaseWhatsAppPhoneNumberError, ReleaseWhatsAppPhoneNumberResponse, ListWhatsAppGroupChatsData, ListWhatsAppGroupChatsError, ListWhatsAppGroupChatsResponse, CreateWhatsAppGroupChatData, CreateWhatsAppGroupChatError, CreateWhatsAppGroupChatResponse, GetWhatsAppGroupChatData, GetWhatsAppGroupChatError, GetWhatsAppGroupChatResponse, UpdateWhatsAppGroupChatData, UpdateWhatsAppGroupChatError, UpdateWhatsAppGroupChatResponse, DeleteWhatsAppGroupChatData, DeleteWhatsAppGroupChatError, DeleteWhatsAppGroupChatResponse, AddWhatsAppGroupParticipantsData, AddWhatsAppGroupParticipantsError, AddWhatsAppGroupParticipantsResponse, RemoveWhatsAppGroupParticipantsData, RemoveWhatsAppGroupParticipantsError, RemoveWhatsAppGroupParticipantsResponse, CreateWhatsAppGroupInviteLinkData, CreateWhatsAppGroupInviteLinkError, CreateWhatsAppGroupInviteLinkResponse, ListWhatsAppGroupJoinRequestsData, ListWhatsAppGroupJoinRequestsError, ListWhatsAppGroupJoinRequestsResponse, ApproveWhatsAppGroupJoinRequestsData, ApproveWhatsAppGroupJoinRequestsError, ApproveWhatsAppGroupJoinRequestsResponse, RejectWhatsAppGroupJoinRequestsData, RejectWhatsAppGroupJoinRequestsError, RejectWhatsAppGroupJoinRequestsResponse, ListWhatsAppFlowsData, ListWhatsAppFlowsError, ListWhatsAppFlowsResponse, CreateWhatsAppFlowData, CreateWhatsAppFlowError, CreateWhatsAppFlowResponse, GetWhatsAppFlowData, GetWhatsAppFlowError, GetWhatsAppFlowResponse, UpdateWhatsAppFlowData, UpdateWhatsAppFlowError, UpdateWhatsAppFlowResponse, DeleteWhatsAppFlowData, DeleteWhatsAppFlowError, DeleteWhatsAppFlowResponse, GetWhatsAppFlowJsonData, GetWhatsAppFlowJsonError, GetWhatsAppFlowJsonResponse, UploadWhatsAppFlowJsonData, UploadWhatsAppFlowJsonError, UploadWhatsAppFlowJsonResponse, PublishWhatsAppFlowData, PublishWhatsAppFlowError, PublishWhatsAppFlowResponse, DeprecateWhatsAppFlowData, DeprecateWhatsAppFlowError, DeprecateWhatsAppFlowResponse, SendWhatsAppFlowMessageData, SendWhatsAppFlowMessageError, SendWhatsAppFlowMessageResponse, ListContactsData, ListContactsError, ListContactsResponse, CreateContactData, CreateContactError, CreateContactResponse, GetContactData, GetContactError, GetContactResponse, UpdateContactData, UpdateContactError, UpdateContactResponse, DeleteContactData, DeleteContactError, DeleteContactResponse, GetContactChannelsData, GetContactChannelsError, GetContactChannelsResponse, BulkCreateContactsData, BulkCreateContactsError, BulkCreateContactsResponse, SetContactFieldValueData, SetContactFieldValueError, SetContactFieldValueResponse, ClearContactFieldValueData, ClearContactFieldValueError, ClearContactFieldValueResponse, ListCustomFieldsData, ListCustomFieldsError, ListCustomFieldsResponse, CreateCustomFieldData, CreateCustomFieldError, CreateCustomFieldResponse, UpdateCustomFieldData, UpdateCustomFieldError, UpdateCustomFieldResponse, DeleteCustomFieldData, DeleteCustomFieldError, DeleteCustomFieldResponse, ListBroadcastsData, ListBroadcastsError, ListBroadcastsResponse, CreateBroadcastData, CreateBroadcastError, CreateBroadcastResponse, GetBroadcastData, GetBroadcastError, GetBroadcastResponse, UpdateBroadcastData, UpdateBroadcastError, UpdateBroadcastResponse, DeleteBroadcastData, DeleteBroadcastError, DeleteBroadcastResponse, SendBroadcastData, SendBroadcastError, SendBroadcastResponse, ScheduleBroadcastData, ScheduleBroadcastError, ScheduleBroadcastResponse, CancelBroadcastData, CancelBroadcastError, CancelBroadcastResponse, ListBroadcastRecipientsData, ListBroadcastRecipientsError, ListBroadcastRecipientsResponse, AddBroadcastRecipientsData, AddBroadcastRecipientsError, AddBroadcastRecipientsResponse, ListSequencesData, ListSequencesError, ListSequencesResponse, CreateSequenceData, CreateSequenceError, CreateSequenceResponse, GetSequenceData, GetSequenceError, GetSequenceResponse, UpdateSequenceData, UpdateSequenceError, UpdateSequenceResponse, DeleteSequenceData, DeleteSequenceError, DeleteSequenceResponse, ActivateSequenceData, ActivateSequenceError, ActivateSequenceResponse, PauseSequenceData, PauseSequenceError, PauseSequenceResponse, EnrollContactsData, EnrollContactsError, EnrollContactsResponse, UnenrollContactData, UnenrollContactError, UnenrollContactResponse, ListSequenceEnrollmentsData, ListSequenceEnrollmentsError, ListSequenceEnrollmentsResponse, ListCommentAutomationsData, ListCommentAutomationsError, ListCommentAutomationsResponse, CreateCommentAutomationData, CreateCommentAutomationError, CreateCommentAutomationResponse, GetCommentAutomationData, GetCommentAutomationError, GetCommentAutomationResponse, UpdateCommentAutomationData, UpdateCommentAutomationError, UpdateCommentAutomationResponse, DeleteCommentAutomationData, DeleteCommentAutomationError, DeleteCommentAutomationResponse, ListCommentAutomationLogsData, ListCommentAutomationLogsError, ListCommentAutomationLogsResponse, ListAdsData, ListAdsError, ListAdsResponse, ListAdCampaignsData, ListAdCampaignsError, ListAdCampaignsResponse, UpdateAdCampaignStatusData, UpdateAdCampaignStatusError, UpdateAdCampaignStatusResponse, GetAdTreeData, GetAdTreeError, GetAdTreeResponse, GetAdData, GetAdError, GetAdResponse, UpdateAdData, UpdateAdError, UpdateAdResponse, DeleteAdData, DeleteAdError, DeleteAdResponse, GetAdAnalyticsData, GetAdAnalyticsError, GetAdAnalyticsResponse, ListAdAccountsData, ListAdAccountsError, ListAdAccountsResponse, BoostPostData, BoostPostError, BoostPostResponse, CreateStandaloneAdData, CreateStandaloneAdError, CreateStandaloneAdResponse, SearchAdInterestsData, SearchAdInterestsError, SearchAdInterestsResponse, ListAdAudiencesData, ListAdAudiencesError, ListAdAudiencesResponse, CreateAdAudienceData, CreateAdAudienceError, CreateAdAudienceResponse, GetAdAudienceData, GetAdAudienceError, GetAdAudienceResponse, DeleteAdAudienceData, DeleteAdAudienceError, DeleteAdAudienceResponse, AddUsersToAdAudienceData, AddUsersToAdAudienceError, AddUsersToAdAudienceResponse, SendConversionsData, SendConversionsError, SendConversionsResponse, ListConversionDestinationsData, ListConversionDestinationsError, ListConversionDestinationsResponse } from './types.gen';
|
|
5
5
|
|
|
6
6
|
export const client = createClient(createConfig());
|
|
7
7
|
|
|
@@ -3027,4 +3027,59 @@ export const addUsersToAdAudience = <ThrowOnError extends boolean = false>(optio
|
|
|
3027
3027
|
...options,
|
|
3028
3028
|
url: '/v1/ads/audiences/{audienceId}/users'
|
|
3029
3029
|
});
|
|
3030
|
+
};
|
|
3031
|
+
|
|
3032
|
+
/**
|
|
3033
|
+
* Send conversion events to an ad platform
|
|
3034
|
+
* Relay one or more conversion events to the target ad platform's native
|
|
3035
|
+
* Conversions API. Supported platforms: Meta (metaads) via Graph API,
|
|
3036
|
+
* Google Ads (googleads) via Data Manager API `ingestEvents`.
|
|
3037
|
+
*
|
|
3038
|
+
* Platform is inferred from the provided `accountId`. `destinationId`
|
|
3039
|
+
* semantics differ per platform:
|
|
3040
|
+
* - Meta: pixel (dataset) ID, e.g. "123456789012345"
|
|
3041
|
+
* - Google: conversion action resource name, e.g.
|
|
3042
|
+
* "customers/1234567890/conversionActions/987654321"
|
|
3043
|
+
*
|
|
3044
|
+
* Callers can list valid destinations via
|
|
3045
|
+
* `GET /v1/accounts/{accountId}/conversion-destinations`.
|
|
3046
|
+
*
|
|
3047
|
+
* All PII (email, phone, names, external IDs) is hashed with SHA-256
|
|
3048
|
+
* server-side per each platform's normalization spec (including Google's
|
|
3049
|
+
* Gmail-specific dot/plus-suffix stripping). Send plaintext.
|
|
3050
|
+
*
|
|
3051
|
+
* Requires the Ads add-on.
|
|
3052
|
+
*
|
|
3053
|
+
* Batching: Meta caps at 1000 events per request and rejects the entire
|
|
3054
|
+
* batch if any event is malformed. Google caps at 2000. Both are handled
|
|
3055
|
+
* automatically by chunking.
|
|
3056
|
+
*
|
|
3057
|
+
* Dedup: pass a stable `eventId` on every event. Meta uses it to dedupe
|
|
3058
|
+
* against pixel events; Google maps it to transactionId.
|
|
3059
|
+
*
|
|
3060
|
+
*/
|
|
3061
|
+
export const sendConversions = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SendConversionsData, ThrowOnError>) => {
|
|
3062
|
+
return (options?.client ?? client).post<SendConversionsResponse, SendConversionsError, ThrowOnError>({
|
|
3063
|
+
...options,
|
|
3064
|
+
url: '/v1/ads/conversions'
|
|
3065
|
+
});
|
|
3066
|
+
};
|
|
3067
|
+
|
|
3068
|
+
/**
|
|
3069
|
+
* List destinations for the Conversions API
|
|
3070
|
+
* Returns the list of pixels (Meta) or conversion actions (Google)
|
|
3071
|
+
* accessible to the connected ads account. Use the returned `id` as
|
|
3072
|
+
* `destinationId` when posting to `POST /v1/ads/conversions`.
|
|
3073
|
+
*
|
|
3074
|
+
* For Google, each destination's `type` reflects the conversion action's
|
|
3075
|
+
* category (PURCHASE, LEAD, SIGN_UP, etc.) — the event type is locked to
|
|
3076
|
+
* the destination. For Meta, `type` is absent: pixels accept any event
|
|
3077
|
+
* name per request.
|
|
3078
|
+
*
|
|
3079
|
+
*/
|
|
3080
|
+
export const listConversionDestinations = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListConversionDestinationsData, ThrowOnError>) => {
|
|
3081
|
+
return (options?.client ?? client).get<ListConversionDestinationsResponse, ListConversionDestinationsError, ThrowOnError>({
|
|
3082
|
+
...options,
|
|
3083
|
+
url: '/v1/accounts/{accountId}/conversion-destinations'
|
|
3084
|
+
});
|
|
3030
3085
|
};
|
|
@@ -87,7 +87,7 @@ export type Ad = {
|
|
|
87
87
|
_id?: string;
|
|
88
88
|
name?: string;
|
|
89
89
|
platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter';
|
|
90
|
-
status?:
|
|
90
|
+
status?: AdStatus;
|
|
91
91
|
adType?: 'boost' | 'standalone';
|
|
92
92
|
goal?: 'engagement' | 'traffic' | 'awareness' | 'video_views';
|
|
93
93
|
/**
|
|
@@ -204,8 +204,6 @@ export type Ad = {
|
|
|
204
204
|
|
|
205
205
|
export type platform = 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter';
|
|
206
206
|
|
|
207
|
-
export type status = 'active' | 'paused' | 'pending_review' | 'rejected' | 'completed' | 'cancelled' | 'error';
|
|
208
|
-
|
|
209
207
|
export type adType = 'boost' | 'standalone';
|
|
210
208
|
|
|
211
209
|
export type goal = 'engagement' | 'traffic' | 'awareness' | 'video_views';
|
|
@@ -219,7 +217,7 @@ export type AdCampaign = {
|
|
|
219
217
|
/**
|
|
220
218
|
* Derived from child ad statuses
|
|
221
219
|
*/
|
|
222
|
-
status?:
|
|
220
|
+
status?: (AdStatus);
|
|
223
221
|
adCount?: number;
|
|
224
222
|
budget?: {
|
|
225
223
|
amount?: number;
|
|
@@ -234,9 +232,9 @@ export type AdCampaign = {
|
|
|
234
232
|
*/
|
|
235
233
|
platformObjective?: (string) | null;
|
|
236
234
|
/**
|
|
237
|
-
* Meta optimization goal
|
|
235
|
+
* Meta optimization goal shared across ad sets, or comma-separated values when ad sets differ (e.g. OFFSITE_CONVERSIONS, VALUE, LEAD_GENERATION)
|
|
238
236
|
*/
|
|
239
|
-
optimizationGoal?: (
|
|
237
|
+
optimizationGoal?: (string) | null;
|
|
240
238
|
/**
|
|
241
239
|
* Campaign-level bid strategy (e.g. LOWEST_COST_WITHOUT_CAP, COST_CAP, LOWEST_COST_WITH_MIN_ROAS)
|
|
242
240
|
*/
|
|
@@ -277,6 +275,8 @@ export type AdMetrics = {
|
|
|
277
275
|
lastSyncedAt?: string;
|
|
278
276
|
};
|
|
279
277
|
|
|
278
|
+
export type AdStatus = 'active' | 'paused' | 'pending_review' | 'rejected' | 'completed' | 'cancelled' | 'error';
|
|
279
|
+
|
|
280
280
|
/**
|
|
281
281
|
* Ad set (or ad group/line item depending on platform) with rolled-up metrics and child ads
|
|
282
282
|
*/
|
|
@@ -286,7 +286,7 @@ export type AdTreeAdSet = {
|
|
|
286
286
|
/**
|
|
287
287
|
* Derived from child ad statuses
|
|
288
288
|
*/
|
|
289
|
-
status?:
|
|
289
|
+
status?: (AdStatus);
|
|
290
290
|
adCount?: number;
|
|
291
291
|
budget?: {
|
|
292
292
|
amount?: number;
|
|
@@ -325,7 +325,7 @@ export type AdTreeCampaign = {
|
|
|
325
325
|
/**
|
|
326
326
|
* Derived from child ad statuses
|
|
327
327
|
*/
|
|
328
|
-
status?:
|
|
328
|
+
status?: (AdStatus);
|
|
329
329
|
/**
|
|
330
330
|
* Total ads across all ad sets
|
|
331
331
|
*/
|
|
@@ -344,9 +344,9 @@ export type AdTreeCampaign = {
|
|
|
344
344
|
*/
|
|
345
345
|
platformObjective?: (string) | null;
|
|
346
346
|
/**
|
|
347
|
-
* Meta optimization goal
|
|
347
|
+
* Meta optimization goal shared across ad sets, or comma-separated values when ad sets differ (e.g. OFFSITE_CONVERSIONS, VALUE, LEAD_GENERATION)
|
|
348
348
|
*/
|
|
349
|
-
optimizationGoal?: (
|
|
349
|
+
optimizationGoal?: (string) | null;
|
|
350
350
|
/**
|
|
351
351
|
* Campaign-level bid strategy (e.g. LOWEST_COST_WITHOUT_CAP, COST_CAP, LOWEST_COST_WITH_MIN_ROAS)
|
|
352
352
|
*/
|
|
@@ -472,7 +472,7 @@ export type AnalyticsSinglePostResponse = {
|
|
|
472
472
|
/**
|
|
473
473
|
* Overall post status. "partial" when some platforms published and others failed.
|
|
474
474
|
*/
|
|
475
|
-
export type
|
|
475
|
+
export type status = 'published' | 'failed' | 'partial';
|
|
476
476
|
|
|
477
477
|
/**
|
|
478
478
|
* Overall sync state across all platforms
|
|
@@ -534,6 +534,134 @@ export type BlueskyPlatformData = {
|
|
|
534
534
|
}>;
|
|
535
535
|
};
|
|
536
536
|
|
|
537
|
+
/**
|
|
538
|
+
* A single conversion event to relay to the ad platform. All PII fields
|
|
539
|
+
* (email, phone, names) are hashed with SHA-256 server-side using each
|
|
540
|
+
* platform's normalization rules before they leave Zernio. Callers send
|
|
541
|
+
* plaintext.
|
|
542
|
+
*
|
|
543
|
+
*/
|
|
544
|
+
export type ConversionEvent = {
|
|
545
|
+
/**
|
|
546
|
+
* Standard event name (Purchase, Lead, CompleteRegistration, AddToCart,
|
|
547
|
+
* InitiateCheckout, AddPaymentInfo, Subscribe, StartTrial, ViewContent,
|
|
548
|
+
* Search, Contact, SubmitApplication, Schedule) or a custom string
|
|
549
|
+
* (only supported on platforms that accept custom events).
|
|
550
|
+
*
|
|
551
|
+
*/
|
|
552
|
+
eventName: string;
|
|
553
|
+
/**
|
|
554
|
+
* When the conversion happened, in unix seconds.
|
|
555
|
+
*/
|
|
556
|
+
eventTime: number;
|
|
557
|
+
/**
|
|
558
|
+
* Unique dedup key. The same eventId must be used on pixel + CAPI
|
|
559
|
+
* to prevent double-counting. Mapped to event_id on Meta and
|
|
560
|
+
* transactionId on Google.
|
|
561
|
+
*
|
|
562
|
+
*/
|
|
563
|
+
eventId: string;
|
|
564
|
+
/**
|
|
565
|
+
* Conversion value in the specified currency.
|
|
566
|
+
*/
|
|
567
|
+
value?: number;
|
|
568
|
+
/**
|
|
569
|
+
* ISO 4217 currency code.
|
|
570
|
+
*/
|
|
571
|
+
currency?: string;
|
|
572
|
+
/**
|
|
573
|
+
* User identity fields. More signals mean higher match rates.
|
|
574
|
+
*/
|
|
575
|
+
user: {
|
|
576
|
+
/**
|
|
577
|
+
* Plaintext email. Hashed server-side.
|
|
578
|
+
*/
|
|
579
|
+
email?: string;
|
|
580
|
+
/**
|
|
581
|
+
* Phone number, ideally E.164. Hashed server-side.
|
|
582
|
+
*/
|
|
583
|
+
phone?: string;
|
|
584
|
+
/**
|
|
585
|
+
* Plaintext first name. Hashed server-side.
|
|
586
|
+
*/
|
|
587
|
+
firstName?: string;
|
|
588
|
+
/**
|
|
589
|
+
* Plaintext last name. Hashed server-side.
|
|
590
|
+
*/
|
|
591
|
+
lastName?: string;
|
|
592
|
+
/**
|
|
593
|
+
* Stable customer identifier (e.g. CRM user ID). Hashed server-side.
|
|
594
|
+
*/
|
|
595
|
+
externalId?: string;
|
|
596
|
+
/**
|
|
597
|
+
* Client IP address. Sent plaintext.
|
|
598
|
+
*/
|
|
599
|
+
ipAddress?: string;
|
|
600
|
+
/**
|
|
601
|
+
* Client user-agent string. Sent plaintext.
|
|
602
|
+
*/
|
|
603
|
+
userAgent?: string;
|
|
604
|
+
/**
|
|
605
|
+
* ISO 3166-1 alpha-2 country code, e.g. 'us'.
|
|
606
|
+
*/
|
|
607
|
+
country?: string;
|
|
608
|
+
/**
|
|
609
|
+
* Platform click identifiers captured from the originating ad click.
|
|
610
|
+
*/
|
|
611
|
+
clickIds?: {
|
|
612
|
+
/**
|
|
613
|
+
* Meta click ID (from fbclid URL param).
|
|
614
|
+
*/
|
|
615
|
+
fbc?: string;
|
|
616
|
+
/**
|
|
617
|
+
* Meta browser ID (_fbp cookie).
|
|
618
|
+
*/
|
|
619
|
+
fbp?: string;
|
|
620
|
+
/**
|
|
621
|
+
* Google click ID (from gclid URL param).
|
|
622
|
+
*/
|
|
623
|
+
gclid?: string;
|
|
624
|
+
/**
|
|
625
|
+
* Google iOS 14.5+ app attribution ID.
|
|
626
|
+
*/
|
|
627
|
+
gbraid?: string;
|
|
628
|
+
/**
|
|
629
|
+
* Google iOS 14.5+ web-to-app attribution ID.
|
|
630
|
+
*/
|
|
631
|
+
wbraid?: string;
|
|
632
|
+
};
|
|
633
|
+
};
|
|
634
|
+
/**
|
|
635
|
+
* Item-level detail for ecommerce events.
|
|
636
|
+
*/
|
|
637
|
+
items?: Array<{
|
|
638
|
+
id?: string;
|
|
639
|
+
name?: string;
|
|
640
|
+
price?: number;
|
|
641
|
+
quantity?: number;
|
|
642
|
+
category?: string;
|
|
643
|
+
}>;
|
|
644
|
+
/**
|
|
645
|
+
* URL where the conversion originated (used by Meta).
|
|
646
|
+
*/
|
|
647
|
+
sourceUrl?: string;
|
|
648
|
+
/**
|
|
649
|
+
* Where the conversion happened. Used by Meta; Google ignores.
|
|
650
|
+
*/
|
|
651
|
+
actionSource?: 'web' | 'app' | 'offline' | 'crm' | 'phone_call' | 'system_generated';
|
|
652
|
+
/**
|
|
653
|
+
* Escape hatch for platform-specific fields we haven't normalized. Forwarded as-is.
|
|
654
|
+
*/
|
|
655
|
+
platformData?: {
|
|
656
|
+
[key: string]: unknown;
|
|
657
|
+
};
|
|
658
|
+
};
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* Where the conversion happened. Used by Meta; Google ignores.
|
|
662
|
+
*/
|
|
663
|
+
export type actionSource = 'web' | 'app' | 'offline' | 'crm' | 'phone_call' | 'system_generated';
|
|
664
|
+
|
|
537
665
|
export type ErrorResponse = {
|
|
538
666
|
error?: string;
|
|
539
667
|
details?: {
|
|
@@ -714,7 +842,7 @@ export type InboxWebhookConversation = {
|
|
|
714
842
|
status: 'active' | 'archived';
|
|
715
843
|
};
|
|
716
844
|
|
|
717
|
-
export type
|
|
845
|
+
export type status2 = 'active' | 'archived';
|
|
718
846
|
|
|
719
847
|
/**
|
|
720
848
|
* The message object included in inbox webhook payloads.
|
|
@@ -1162,7 +1290,7 @@ export type PlatformAnalytics = {
|
|
|
1162
1290
|
errorMessage?: (string) | null;
|
|
1163
1291
|
};
|
|
1164
1292
|
|
|
1165
|
-
export type
|
|
1293
|
+
export type status3 = 'published' | 'failed';
|
|
1166
1294
|
|
|
1167
1295
|
/**
|
|
1168
1296
|
* Sync state of analytics for this platform
|
|
@@ -1272,7 +1400,7 @@ export type Post = {
|
|
|
1272
1400
|
updatedAt?: string;
|
|
1273
1401
|
};
|
|
1274
1402
|
|
|
1275
|
-
export type
|
|
1403
|
+
export type status4 = 'draft' | 'scheduled' | 'publishing' | 'published' | 'failed' | 'partial';
|
|
1276
1404
|
|
|
1277
1405
|
export type visibility = 'public' | 'private' | 'unlisted';
|
|
1278
1406
|
|
|
@@ -1874,7 +2002,7 @@ export type UploadTokenResponse = {
|
|
|
1874
2002
|
status?: 'pending' | 'completed' | 'expired';
|
|
1875
2003
|
};
|
|
1876
2004
|
|
|
1877
|
-
export type
|
|
2005
|
+
export type status5 = 'pending' | 'completed' | 'expired';
|
|
1878
2006
|
|
|
1879
2007
|
export type UploadTokenStatusResponse = {
|
|
1880
2008
|
token?: string;
|
|
@@ -10858,7 +10986,7 @@ export type ListAdsData = {
|
|
|
10858
10986
|
* zernio = Zernio-created only, all = include external ads
|
|
10859
10987
|
*/
|
|
10860
10988
|
source?: 'zernio' | 'all';
|
|
10861
|
-
status?:
|
|
10989
|
+
status?: AdStatus;
|
|
10862
10990
|
/**
|
|
10863
10991
|
* End of metrics date range (YYYY-MM-DD). Defaults to today. Max 90-day range.
|
|
10864
10992
|
*/
|
|
@@ -10899,7 +11027,7 @@ export type ListAdCampaignsData = {
|
|
|
10899
11027
|
/**
|
|
10900
11028
|
* Filter by derived campaign status (post-aggregation)
|
|
10901
11029
|
*/
|
|
10902
|
-
status?:
|
|
11030
|
+
status?: AdStatus;
|
|
10903
11031
|
};
|
|
10904
11032
|
};
|
|
10905
11033
|
|
|
@@ -10976,7 +11104,7 @@ export type GetAdTreeData = {
|
|
|
10976
11104
|
/**
|
|
10977
11105
|
* Filter by derived campaign status (post-aggregation)
|
|
10978
11106
|
*/
|
|
10979
|
-
status?:
|
|
11107
|
+
status?: AdStatus;
|
|
10980
11108
|
/**
|
|
10981
11109
|
* End of metrics date range (YYYY-MM-DD). Defaults to today. Max 90-day range.
|
|
10982
11110
|
*/
|
|
@@ -11455,4 +11583,98 @@ export type AddUsersToAdAudienceResponse = ({
|
|
|
11455
11583
|
|
|
11456
11584
|
export type AddUsersToAdAudienceError = (unknown | {
|
|
11457
11585
|
error?: string;
|
|
11586
|
+
});
|
|
11587
|
+
|
|
11588
|
+
export type SendConversionsData = {
|
|
11589
|
+
body: {
|
|
11590
|
+
/**
|
|
11591
|
+
* SocialAccount ID (metaads or googleads).
|
|
11592
|
+
*/
|
|
11593
|
+
accountId: string;
|
|
11594
|
+
/**
|
|
11595
|
+
* Platform destination identifier. For Meta, the pixel/dataset
|
|
11596
|
+
* ID. For Google, the conversion action resource name.
|
|
11597
|
+
*
|
|
11598
|
+
*/
|
|
11599
|
+
destinationId: string;
|
|
11600
|
+
events: Array<ConversionEvent>;
|
|
11601
|
+
/**
|
|
11602
|
+
* Meta `test_event_code` passthrough. Ignored by Google.
|
|
11603
|
+
*/
|
|
11604
|
+
testCode?: string;
|
|
11605
|
+
/**
|
|
11606
|
+
* Batch-level user consent. Required by Google for EEA/UK
|
|
11607
|
+
* events under the Feb 2026 restrictions. Ignored by Meta.
|
|
11608
|
+
*
|
|
11609
|
+
*/
|
|
11610
|
+
consent?: {
|
|
11611
|
+
adUserData?: 'GRANTED' | 'DENIED';
|
|
11612
|
+
adPersonalization?: 'GRANTED' | 'DENIED';
|
|
11613
|
+
};
|
|
11614
|
+
};
|
|
11615
|
+
};
|
|
11616
|
+
|
|
11617
|
+
export type SendConversionsResponse = ({
|
|
11618
|
+
platform?: 'metaads' | 'googleads';
|
|
11619
|
+
/**
|
|
11620
|
+
* Events accepted by the platform.
|
|
11621
|
+
*/
|
|
11622
|
+
eventsReceived?: number;
|
|
11623
|
+
/**
|
|
11624
|
+
* Events rejected (see failures).
|
|
11625
|
+
*/
|
|
11626
|
+
eventsFailed?: number;
|
|
11627
|
+
failures?: Array<{
|
|
11628
|
+
/**
|
|
11629
|
+
* Index into the submitted events array.
|
|
11630
|
+
*/
|
|
11631
|
+
eventIndex?: number;
|
|
11632
|
+
/**
|
|
11633
|
+
* Echoes back the eventId of the failed event.
|
|
11634
|
+
*/
|
|
11635
|
+
eventId?: string;
|
|
11636
|
+
message?: string;
|
|
11637
|
+
code?: (string | number);
|
|
11638
|
+
}>;
|
|
11639
|
+
/**
|
|
11640
|
+
* Platform trace ID (fbtrace_id for Meta, requestId for Google) for debugging.
|
|
11641
|
+
*/
|
|
11642
|
+
traceId?: string;
|
|
11643
|
+
});
|
|
11644
|
+
|
|
11645
|
+
export type SendConversionsError = (unknown | {
|
|
11646
|
+
error?: string;
|
|
11647
|
+
});
|
|
11648
|
+
|
|
11649
|
+
export type ListConversionDestinationsData = {
|
|
11650
|
+
path: {
|
|
11651
|
+
/**
|
|
11652
|
+
* SocialAccount ID (metaads or googleads).
|
|
11653
|
+
*/
|
|
11654
|
+
accountId: string;
|
|
11655
|
+
};
|
|
11656
|
+
};
|
|
11657
|
+
|
|
11658
|
+
export type ListConversionDestinationsResponse = ({
|
|
11659
|
+
platform?: 'metaads' | 'googleads';
|
|
11660
|
+
destinations?: Array<{
|
|
11661
|
+
/**
|
|
11662
|
+
* Destination identifier. Meta: pixel ID. Google:
|
|
11663
|
+
* conversion action resource name.
|
|
11664
|
+
*
|
|
11665
|
+
*/
|
|
11666
|
+
id?: string;
|
|
11667
|
+
name?: string;
|
|
11668
|
+
/**
|
|
11669
|
+
* Present when the platform locks event type to the
|
|
11670
|
+
* destination (Google conversion actions).
|
|
11671
|
+
*
|
|
11672
|
+
*/
|
|
11673
|
+
type?: string;
|
|
11674
|
+
status?: 'active' | 'inactive';
|
|
11675
|
+
}>;
|
|
11676
|
+
});
|
|
11677
|
+
|
|
11678
|
+
export type ListConversionDestinationsError = (unknown | {
|
|
11679
|
+
error?: string;
|
|
11458
11680
|
});
|