@zernio/node 0.2.76 → 0.2.78
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 +6 -0
- package/dist/index.d.mts +288 -8
- package/dist/index.d.ts +288 -8
- package/dist/index.js +42 -0
- package/dist/index.mjs +42 -0
- package/package.json +1 -1
- package/src/client.ts +12 -0
- package/src/generated/sdk.gen.ts +101 -1
- package/src/generated/types.gen.ts +302 -7
package/src/client.ts
CHANGED
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
bookmarkPost,
|
|
11
11
|
boostPost,
|
|
12
12
|
bulkCreateContacts,
|
|
13
|
+
bulkUpdateAdCampaignStatus,
|
|
13
14
|
bulkUploadPosts,
|
|
14
15
|
cancelBroadcast,
|
|
15
16
|
clearContactFieldValue,
|
|
@@ -42,6 +43,7 @@ import {
|
|
|
42
43
|
deleteAccountGroup,
|
|
43
44
|
deleteAd,
|
|
44
45
|
deleteAdAudience,
|
|
46
|
+
deleteAdCampaign,
|
|
45
47
|
deleteApiKey,
|
|
46
48
|
deleteBroadcast,
|
|
47
49
|
deleteCommentAutomation,
|
|
@@ -64,6 +66,7 @@ import {
|
|
|
64
66
|
deleteWhatsAppGroupChat,
|
|
65
67
|
deleteWhatsAppTemplate,
|
|
66
68
|
deprecateWhatsAppFlow,
|
|
69
|
+
duplicateAdCampaign,
|
|
67
70
|
editInboxMessage,
|
|
68
71
|
editPost,
|
|
69
72
|
enrollContacts,
|
|
@@ -216,7 +219,10 @@ import {
|
|
|
216
219
|
updateAccount,
|
|
217
220
|
updateAccountGroup,
|
|
218
221
|
updateAd,
|
|
222
|
+
updateAdCampaign,
|
|
219
223
|
updateAdCampaignStatus,
|
|
224
|
+
updateAdSet,
|
|
225
|
+
updateAdSetStatus,
|
|
220
226
|
updateBroadcast,
|
|
221
227
|
updateCommentAutomation,
|
|
222
228
|
updateContact,
|
|
@@ -802,6 +808,12 @@ export class Zernio {
|
|
|
802
808
|
adcampaigns = {
|
|
803
809
|
listAdCampaigns: listAdCampaigns,
|
|
804
810
|
updateAdCampaignStatus: updateAdCampaignStatus,
|
|
811
|
+
updateAdCampaign: updateAdCampaign,
|
|
812
|
+
deleteAdCampaign: deleteAdCampaign,
|
|
813
|
+
bulkUpdateAdCampaignStatus: bulkUpdateAdCampaignStatus,
|
|
814
|
+
duplicateAdCampaign: duplicateAdCampaign,
|
|
815
|
+
updateAdSet: updateAdSet,
|
|
816
|
+
updateAdSetStatus: updateAdSetStatus,
|
|
805
817
|
getAdTree: getAdTree,
|
|
806
818
|
};
|
|
807
819
|
|
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, UpdateGoogleBusinessPlaceActionData, UpdateGoogleBusinessPlaceActionError, UpdateGoogleBusinessPlaceActionResponse, GetGoogleBusinessServicesData, GetGoogleBusinessServicesError, GetGoogleBusinessServicesResponse, UpdateGoogleBusinessServicesData, UpdateGoogleBusinessServicesError, UpdateGoogleBusinessServicesResponse, BatchGetGoogleBusinessReviewsData, BatchGetGoogleBusinessReviewsError, BatchGetGoogleBusinessReviewsResponse, 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, GetDiscordSettingsData, GetDiscordSettingsError, GetDiscordSettingsResponse, UpdateDiscordSettingsData, UpdateDiscordSettingsError, UpdateDiscordSettingsResponse, GetDiscordChannelsData, GetDiscordChannelsError, GetDiscordChannelsResponse, 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';
|
|
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, UpdateGoogleBusinessPlaceActionData, UpdateGoogleBusinessPlaceActionError, UpdateGoogleBusinessPlaceActionResponse, GetGoogleBusinessServicesData, GetGoogleBusinessServicesError, GetGoogleBusinessServicesResponse, UpdateGoogleBusinessServicesData, UpdateGoogleBusinessServicesError, UpdateGoogleBusinessServicesResponse, BatchGetGoogleBusinessReviewsData, BatchGetGoogleBusinessReviewsError, BatchGetGoogleBusinessReviewsResponse, 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, GetDiscordSettingsData, GetDiscordSettingsError, GetDiscordSettingsResponse, UpdateDiscordSettingsData, UpdateDiscordSettingsError, UpdateDiscordSettingsResponse, GetDiscordChannelsData, GetDiscordChannelsError, GetDiscordChannelsResponse, 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, UpdateAdCampaignData, UpdateAdCampaignError, UpdateAdCampaignResponse, DeleteAdCampaignData, DeleteAdCampaignError, DeleteAdCampaignResponse, BulkUpdateAdCampaignStatusData, BulkUpdateAdCampaignStatusError, BulkUpdateAdCampaignStatusResponse, DuplicateAdCampaignData, DuplicateAdCampaignError, DuplicateAdCampaignResponse, UpdateAdSetData, UpdateAdSetError, UpdateAdSetResponse, UpdateAdSetStatusData, UpdateAdSetStatusError, UpdateAdSetStatusResponse, 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
|
|
|
@@ -2970,6 +2970,106 @@ export const updateAdCampaignStatus = <ThrowOnError extends boolean = false>(opt
|
|
|
2970
2970
|
});
|
|
2971
2971
|
};
|
|
2972
2972
|
|
|
2973
|
+
/**
|
|
2974
|
+
* Update a campaign (budget)
|
|
2975
|
+
* Campaign-level edits. Currently supports updating the CBO (Campaign Budget Optimization) budget.
|
|
2976
|
+
* For ABO campaigns (where the budget lives on the ad set), use PUT /v1/ads/ad-sets/{adSetId} instead — this endpoint will return 409 with code BUDGET_LEVEL_MISMATCH.
|
|
2977
|
+
*
|
|
2978
|
+
* Meta-only for now. Other platforms return 501 Not Implemented.
|
|
2979
|
+
*
|
|
2980
|
+
*/
|
|
2981
|
+
export const updateAdCampaign = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateAdCampaignData, ThrowOnError>) => {
|
|
2982
|
+
return (options?.client ?? client).put<UpdateAdCampaignResponse, UpdateAdCampaignError, ThrowOnError>({
|
|
2983
|
+
...options,
|
|
2984
|
+
url: '/v1/ads/campaigns/{campaignId}'
|
|
2985
|
+
});
|
|
2986
|
+
};
|
|
2987
|
+
|
|
2988
|
+
/**
|
|
2989
|
+
* Delete a campaign
|
|
2990
|
+
* Deletes the whole campaign on the platform, cascading to its ad sets
|
|
2991
|
+
* and ads. Locally, all Ad documents for this campaign are marked
|
|
2992
|
+
* `status: cancelled`.
|
|
2993
|
+
*
|
|
2994
|
+
* Meta-only for now. Other platforms return 501 Not Implemented — fall
|
|
2995
|
+
* back to DELETE /v1/ads/{adId} per ad in the meantime.
|
|
2996
|
+
*
|
|
2997
|
+
*/
|
|
2998
|
+
export const deleteAdCampaign = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteAdCampaignData, ThrowOnError>) => {
|
|
2999
|
+
return (options?.client ?? client).delete<DeleteAdCampaignResponse, DeleteAdCampaignError, ThrowOnError>({
|
|
3000
|
+
...options,
|
|
3001
|
+
url: '/v1/ads/campaigns/{campaignId}'
|
|
3002
|
+
});
|
|
3003
|
+
};
|
|
3004
|
+
|
|
3005
|
+
/**
|
|
3006
|
+
* Pause or resume many campaigns
|
|
3007
|
+
* Process up to 50 campaigns in one call. Each campaign is updated
|
|
3008
|
+
* concurrently and the response contains a per-campaign result so a
|
|
3009
|
+
* single bad row does not fail the whole batch.
|
|
3010
|
+
*
|
|
3011
|
+
*/
|
|
3012
|
+
export const bulkUpdateAdCampaignStatus = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<BulkUpdateAdCampaignStatusData, ThrowOnError>) => {
|
|
3013
|
+
return (options?.client ?? client).post<BulkUpdateAdCampaignStatusResponse, BulkUpdateAdCampaignStatusError, ThrowOnError>({
|
|
3014
|
+
...options,
|
|
3015
|
+
url: '/v1/ads/campaigns/bulk-status'
|
|
3016
|
+
});
|
|
3017
|
+
};
|
|
3018
|
+
|
|
3019
|
+
/**
|
|
3020
|
+
* Duplicate a campaign
|
|
3021
|
+
* Duplicates a campaign, including its ad sets, ads, creatives, and
|
|
3022
|
+
* targeting by default (`deepCopy: true`). On Meta, this uses
|
|
3023
|
+
* `POST /{campaign-id}/copies`. The copy is created paused by default so
|
|
3024
|
+
* callers can review before launching.
|
|
3025
|
+
*
|
|
3026
|
+
* The platform's duplication is asynchronous from our side; once the
|
|
3027
|
+
* copy is created on the platform, we trigger a sync discovery so the
|
|
3028
|
+
* new hierarchy shows up in /v1/ads/tree. Set `syncAfter: false` to
|
|
3029
|
+
* skip the discovery trigger and poll on your own cadence.
|
|
3030
|
+
*
|
|
3031
|
+
* Meta-only for now. Other platforms return 501 Not Implemented.
|
|
3032
|
+
*
|
|
3033
|
+
*/
|
|
3034
|
+
export const duplicateAdCampaign = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DuplicateAdCampaignData, ThrowOnError>) => {
|
|
3035
|
+
return (options?.client ?? client).post<DuplicateAdCampaignResponse, DuplicateAdCampaignError, ThrowOnError>({
|
|
3036
|
+
...options,
|
|
3037
|
+
url: '/v1/ads/campaigns/{campaignId}/duplicate'
|
|
3038
|
+
});
|
|
3039
|
+
};
|
|
3040
|
+
|
|
3041
|
+
/**
|
|
3042
|
+
* Update an ad set (budget and/or status)
|
|
3043
|
+
* Ad-set-level writes. Use this for ABO budget updates and ad-set-scoped
|
|
3044
|
+
* pause/resume. Provide `budget` and/or `status` in the body.
|
|
3045
|
+
*
|
|
3046
|
+
* When updating `budget` on an ABO campaign: if the parent campaign is
|
|
3047
|
+
* CBO, the response is 409 with code BUDGET_LEVEL_MISMATCH — route to
|
|
3048
|
+
* PUT /v1/ads/campaigns/{campaignId} instead.
|
|
3049
|
+
*
|
|
3050
|
+
*/
|
|
3051
|
+
export const updateAdSet = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateAdSetData, ThrowOnError>) => {
|
|
3052
|
+
return (options?.client ?? client).put<UpdateAdSetResponse, UpdateAdSetError, ThrowOnError>({
|
|
3053
|
+
...options,
|
|
3054
|
+
url: '/v1/ads/ad-sets/{adSetId}'
|
|
3055
|
+
});
|
|
3056
|
+
};
|
|
3057
|
+
|
|
3058
|
+
/**
|
|
3059
|
+
* Pause or resume a single ad set
|
|
3060
|
+
* Ad-set-scoped pause/resume (doesn't touch sibling ad sets). Thin wrapper
|
|
3061
|
+
* over PUT /v1/ads/ad-sets/{adSetId} for callers that only want the
|
|
3062
|
+
* status toggle and prefer a symmetric URL to
|
|
3063
|
+
* /v1/ads/campaigns/{campaignId}/status.
|
|
3064
|
+
*
|
|
3065
|
+
*/
|
|
3066
|
+
export const updateAdSetStatus = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateAdSetStatusData, ThrowOnError>) => {
|
|
3067
|
+
return (options?.client ?? client).put<UpdateAdSetStatusResponse, UpdateAdSetStatusError, ThrowOnError>({
|
|
3068
|
+
...options,
|
|
3069
|
+
url: '/v1/ads/ad-sets/{adSetId}/status'
|
|
3070
|
+
});
|
|
3071
|
+
};
|
|
3072
|
+
|
|
2973
3073
|
/**
|
|
2974
3074
|
* Get campaign tree
|
|
2975
3075
|
* Returns a nested Campaign > Ad Set > Ad hierarchy with rolled-up metrics at each level.
|
|
@@ -216,19 +216,63 @@ export type goal = 'engagement' | 'traffic' | 'awareness' | 'video_views' | 'lea
|
|
|
216
216
|
|
|
217
217
|
export type type = 'daily' | 'lifetime';
|
|
218
218
|
|
|
219
|
+
/**
|
|
220
|
+
* Budget amount in the ad account's native currency (see the campaign's `currency` field for the code).
|
|
221
|
+
*/
|
|
222
|
+
export type AdBudget = {
|
|
223
|
+
amount: number;
|
|
224
|
+
type: 'daily' | 'lifetime';
|
|
225
|
+
};
|
|
226
|
+
|
|
219
227
|
export type AdCampaign = {
|
|
220
228
|
platformCampaignId?: string;
|
|
221
229
|
platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter';
|
|
222
230
|
campaignName?: string;
|
|
223
231
|
/**
|
|
224
|
-
*
|
|
232
|
+
* Delivery status derived from child ad statuses. Distinct from `reviewStatus`.
|
|
225
233
|
*/
|
|
226
234
|
status?: (AdStatus);
|
|
235
|
+
/**
|
|
236
|
+
* Platform-side review state of the campaign. See AdTreeCampaign.reviewStatus for the full description.
|
|
237
|
+
*/
|
|
238
|
+
reviewStatus?: ('in_review' | 'approved' | 'rejected' | 'with_issues') | null;
|
|
239
|
+
/**
|
|
240
|
+
* Raw platform-level campaign status (Meta `effective_status`).
|
|
241
|
+
*/
|
|
242
|
+
platformCampaignStatus?: (string) | null;
|
|
243
|
+
/**
|
|
244
|
+
* Platform-reported campaign issues (Meta `issues_info[]`).
|
|
245
|
+
*/
|
|
246
|
+
campaignIssuesInfo?: Array<{
|
|
247
|
+
[key: string]: unknown;
|
|
248
|
+
}> | null;
|
|
227
249
|
adCount?: number;
|
|
250
|
+
/**
|
|
251
|
+
* Effective budget (back-compat). Use `budgetLevel` to disambiguate CBO vs ABO.
|
|
252
|
+
*/
|
|
228
253
|
budget?: {
|
|
229
254
|
amount?: number;
|
|
230
255
|
type?: 'daily' | 'lifetime';
|
|
231
256
|
} | null;
|
|
257
|
+
/**
|
|
258
|
+
* Campaign-level budget (CBO). Null for ABO campaigns.
|
|
259
|
+
*/
|
|
260
|
+
campaignBudget?: {
|
|
261
|
+
amount?: number;
|
|
262
|
+
type?: 'daily' | 'lifetime';
|
|
263
|
+
} | null;
|
|
264
|
+
/**
|
|
265
|
+
* Canonical CBO/ABO indicator. See AdTreeCampaign.budgetLevel.
|
|
266
|
+
*/
|
|
267
|
+
budgetLevel?: ('campaign' | 'adset') | null;
|
|
268
|
+
/**
|
|
269
|
+
* Meta-only. Mirrors Campaign.is_budget_schedule_enabled.
|
|
270
|
+
*/
|
|
271
|
+
isBudgetScheduleEnabled?: boolean;
|
|
272
|
+
/**
|
|
273
|
+
* ISO 4217 currency code for all budget amounts. Budgets are NOT normalized to USD.
|
|
274
|
+
*/
|
|
275
|
+
currency?: (string) | null;
|
|
232
276
|
metrics?: AdMetrics;
|
|
233
277
|
platformAdAccountId?: string;
|
|
234
278
|
accountId?: string;
|
|
@@ -257,6 +301,16 @@ export type AdCampaign = {
|
|
|
257
301
|
latestAd?: string;
|
|
258
302
|
};
|
|
259
303
|
|
|
304
|
+
/**
|
|
305
|
+
* Platform-side review state of the campaign. See AdTreeCampaign.reviewStatus for the full description.
|
|
306
|
+
*/
|
|
307
|
+
export type reviewStatus = 'in_review' | 'approved' | 'rejected' | 'with_issues';
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Canonical CBO/ABO indicator. See AdTreeCampaign.budgetLevel.
|
|
311
|
+
*/
|
|
312
|
+
export type budgetLevel = 'campaign' | 'adset';
|
|
313
|
+
|
|
260
314
|
export type AdMetrics = {
|
|
261
315
|
spend?: number;
|
|
262
316
|
impressions?: number;
|
|
@@ -308,10 +362,20 @@ export type AdTreeAdSet = {
|
|
|
308
362
|
*/
|
|
309
363
|
status?: (AdStatus);
|
|
310
364
|
adCount?: number;
|
|
365
|
+
/**
|
|
366
|
+
* Effective budget at this level (back-compat). For CBO campaigns this mirrors the parent campaign's budget; for ABO this is the ad-set-specific budget. Use `adSetBudget` / parent `campaignBudget` + `budgetLevel` to disambiguate.
|
|
367
|
+
*/
|
|
311
368
|
budget?: {
|
|
312
369
|
amount?: number;
|
|
313
370
|
type?: 'daily' | 'lifetime';
|
|
314
371
|
} | null;
|
|
372
|
+
/**
|
|
373
|
+
* Ad-set-level budget (ABO). Null for CBO campaigns where the budget is set on the campaign.
|
|
374
|
+
*/
|
|
375
|
+
adSetBudget?: {
|
|
376
|
+
amount?: number;
|
|
377
|
+
type?: 'daily' | 'lifetime';
|
|
378
|
+
} | null;
|
|
315
379
|
metrics?: AdMetrics;
|
|
316
380
|
/**
|
|
317
381
|
* Meta ad set optimization goal (e.g. OFFSITE_CONVERSIONS, VALUE, LEAD_GENERATION)
|
|
@@ -343,18 +407,60 @@ export type AdTreeCampaign = {
|
|
|
343
407
|
platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter';
|
|
344
408
|
campaignName?: string;
|
|
345
409
|
/**
|
|
346
|
-
*
|
|
410
|
+
* Delivery status derived from child ad statuses. Distinct from `reviewStatus`, which reflects the platform-side review state.
|
|
347
411
|
*/
|
|
348
412
|
status?: (AdStatus);
|
|
413
|
+
/**
|
|
414
|
+
* Platform-side review state of the campaign. Independent of the
|
|
415
|
+
* children-derived delivery `status`: a campaign can have ads
|
|
416
|
+
* already active (status=active) while the campaign itself is
|
|
417
|
+
* still being reviewed by the platform (reviewStatus=in_review).
|
|
418
|
+
* For Meta, derived from `effective_status` + `issues_info` on
|
|
419
|
+
* the Campaign, plus ad-level PENDING_REVIEW rollup.
|
|
420
|
+
*
|
|
421
|
+
*/
|
|
422
|
+
reviewStatus?: ('in_review' | 'approved' | 'rejected' | 'with_issues') | null;
|
|
423
|
+
/**
|
|
424
|
+
* Raw platform-level campaign status (Meta `effective_status`: ACTIVE, PAUSED, DELETED, ARCHIVED, IN_PROCESS, WITH_ISSUES). Distinct from per-ad `platformStatus`.
|
|
425
|
+
*/
|
|
426
|
+
platformCampaignStatus?: (string) | null;
|
|
427
|
+
/**
|
|
428
|
+
* Platform-reported campaign issues (Meta `issues_info[]`). Populated only when the platform has delivery issues to report; contains the specific error codes and messages.
|
|
429
|
+
*/
|
|
430
|
+
campaignIssuesInfo?: Array<{
|
|
431
|
+
[key: string]: unknown;
|
|
432
|
+
}> | null;
|
|
349
433
|
/**
|
|
350
434
|
* Total ads across all ad sets
|
|
351
435
|
*/
|
|
352
436
|
adCount?: number;
|
|
353
437
|
adSetCount?: number;
|
|
438
|
+
/**
|
|
439
|
+
* Effective budget (back-compat). For CBO this mirrors `campaignBudget`, for ABO this mirrors the child ad-set budget. Use `budgetLevel` to disambiguate.
|
|
440
|
+
*/
|
|
354
441
|
budget?: {
|
|
355
442
|
amount?: number;
|
|
356
443
|
type?: 'daily' | 'lifetime';
|
|
357
444
|
} | null;
|
|
445
|
+
/**
|
|
446
|
+
* Campaign-level budget (Campaign Budget Optimization / CBO). Populated only when the platform set the budget at the campaign level. For ABO campaigns this is null and the budget lives on the child ad set.
|
|
447
|
+
*/
|
|
448
|
+
campaignBudget?: {
|
|
449
|
+
amount?: number;
|
|
450
|
+
type?: 'daily' | 'lifetime';
|
|
451
|
+
} | null;
|
|
452
|
+
/**
|
|
453
|
+
* Canonical CBO/ABO indicator. `campaign` = CBO (Advantage Campaign Budget, budget lives on the campaign). `adset` = ABO (budget lives on each ad set). Route budget updates to the matching Meta entity.
|
|
454
|
+
*/
|
|
455
|
+
budgetLevel?: ('campaign' | 'adset') | null;
|
|
456
|
+
/**
|
|
457
|
+
* Meta-only. Mirrors Campaign.is_budget_schedule_enabled — true when the campaign uses budget scheduling (time-based budget changes). Independent of CBO/ABO.
|
|
458
|
+
*/
|
|
459
|
+
isBudgetScheduleEnabled?: boolean;
|
|
460
|
+
/**
|
|
461
|
+
* ISO 4217 currency code (e.g. USD, EUR, CLP, JPY) for all budget amounts in this campaign node. Budgets are NOT normalized to USD.
|
|
462
|
+
*/
|
|
463
|
+
currency?: (string) | null;
|
|
358
464
|
metrics?: AdMetrics;
|
|
359
465
|
platformAdAccountId?: string;
|
|
360
466
|
accountId?: string;
|
|
@@ -7250,10 +7356,6 @@ export type GetDiscordSettingsError = (unknown | {
|
|
|
7250
7356
|
|
|
7251
7357
|
export type UpdateDiscordSettingsData = {
|
|
7252
7358
|
body: {
|
|
7253
|
-
/**
|
|
7254
|
-
* Discord account ID
|
|
7255
|
-
*/
|
|
7256
|
-
accountId: string;
|
|
7257
7359
|
/**
|
|
7258
7360
|
* Custom display name for the webhook (1-80 chars). Empty string resets to default ("Zernio"). Cannot contain "clyde" or "discord".
|
|
7259
7361
|
*/
|
|
@@ -11800,7 +11902,7 @@ export type ListAdsData = {
|
|
|
11800
11902
|
*/
|
|
11801
11903
|
profileId?: string;
|
|
11802
11904
|
/**
|
|
11803
|
-
*
|
|
11905
|
+
* all (default) = Zernio-created + platform-discovered ads. zernio = restrict to Zernio-created only.
|
|
11804
11906
|
*/
|
|
11805
11907
|
source?: 'zernio' | 'all';
|
|
11806
11908
|
status?: AdStatus;
|
|
@@ -11840,6 +11942,9 @@ export type ListAdCampaignsData = {
|
|
|
11840
11942
|
* Profile ID
|
|
11841
11943
|
*/
|
|
11842
11944
|
profileId?: string;
|
|
11945
|
+
/**
|
|
11946
|
+
* `all` (default) returns both Zernio-created ads and those discovered from the platform's ad manager — matches the web UI's default view. Pass `zernio` to restrict to isExternal=false only. Status is NOT filtered by default — use the `status` param for that.
|
|
11947
|
+
*/
|
|
11843
11948
|
source?: 'zernio' | 'all';
|
|
11844
11949
|
/**
|
|
11845
11950
|
* Filter by derived campaign status (post-aggregation)
|
|
@@ -11890,6 +11995,193 @@ export type UpdateAdCampaignStatusError = (unknown | {
|
|
|
11890
11995
|
error?: string;
|
|
11891
11996
|
});
|
|
11892
11997
|
|
|
11998
|
+
export type UpdateAdCampaignData = {
|
|
11999
|
+
body: {
|
|
12000
|
+
platform: 'facebook' | 'instagram';
|
|
12001
|
+
budget: {
|
|
12002
|
+
/**
|
|
12003
|
+
* Budget amount in the ad account's currency
|
|
12004
|
+
*/
|
|
12005
|
+
amount: number;
|
|
12006
|
+
type: 'daily' | 'lifetime';
|
|
12007
|
+
};
|
|
12008
|
+
};
|
|
12009
|
+
path: {
|
|
12010
|
+
/**
|
|
12011
|
+
* Platform campaign ID
|
|
12012
|
+
*/
|
|
12013
|
+
campaignId: string;
|
|
12014
|
+
};
|
|
12015
|
+
};
|
|
12016
|
+
|
|
12017
|
+
export type UpdateAdCampaignResponse = ({
|
|
12018
|
+
updated?: number;
|
|
12019
|
+
budget?: AdBudget;
|
|
12020
|
+
budgetLevel?: 'campaign';
|
|
12021
|
+
});
|
|
12022
|
+
|
|
12023
|
+
export type UpdateAdCampaignError = (unknown | {
|
|
12024
|
+
error?: string;
|
|
12025
|
+
});
|
|
12026
|
+
|
|
12027
|
+
export type DeleteAdCampaignData = {
|
|
12028
|
+
body: {
|
|
12029
|
+
platform: 'facebook' | 'instagram';
|
|
12030
|
+
};
|
|
12031
|
+
path: {
|
|
12032
|
+
/**
|
|
12033
|
+
* Platform campaign ID
|
|
12034
|
+
*/
|
|
12035
|
+
campaignId: string;
|
|
12036
|
+
};
|
|
12037
|
+
};
|
|
12038
|
+
|
|
12039
|
+
export type DeleteAdCampaignResponse = ({
|
|
12040
|
+
deleted?: boolean;
|
|
12041
|
+
/**
|
|
12042
|
+
* Number of local Ad docs marked cancelled
|
|
12043
|
+
*/
|
|
12044
|
+
adCount?: number;
|
|
12045
|
+
});
|
|
12046
|
+
|
|
12047
|
+
export type DeleteAdCampaignError = ({
|
|
12048
|
+
error?: string;
|
|
12049
|
+
} | unknown);
|
|
12050
|
+
|
|
12051
|
+
export type BulkUpdateAdCampaignStatusData = {
|
|
12052
|
+
body: {
|
|
12053
|
+
status: 'active' | 'paused';
|
|
12054
|
+
campaigns: Array<{
|
|
12055
|
+
platformCampaignId: string;
|
|
12056
|
+
platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter';
|
|
12057
|
+
}>;
|
|
12058
|
+
};
|
|
12059
|
+
};
|
|
12060
|
+
|
|
12061
|
+
export type BulkUpdateAdCampaignStatusResponse = ({
|
|
12062
|
+
status?: 'active' | 'paused';
|
|
12063
|
+
totals?: {
|
|
12064
|
+
updated?: number;
|
|
12065
|
+
skipped?: number;
|
|
12066
|
+
failed?: number;
|
|
12067
|
+
};
|
|
12068
|
+
results?: Array<{
|
|
12069
|
+
platformCampaignId?: string;
|
|
12070
|
+
platform?: string;
|
|
12071
|
+
updated?: number;
|
|
12072
|
+
skipped?: number;
|
|
12073
|
+
error?: string;
|
|
12074
|
+
}>;
|
|
12075
|
+
});
|
|
12076
|
+
|
|
12077
|
+
export type BulkUpdateAdCampaignStatusError = (unknown | {
|
|
12078
|
+
error?: string;
|
|
12079
|
+
});
|
|
12080
|
+
|
|
12081
|
+
export type DuplicateAdCampaignData = {
|
|
12082
|
+
body: {
|
|
12083
|
+
platform: 'facebook' | 'instagram';
|
|
12084
|
+
/**
|
|
12085
|
+
* Copy child ad sets + ads + creatives + targeting
|
|
12086
|
+
*/
|
|
12087
|
+
deepCopy?: boolean;
|
|
12088
|
+
statusOption?: 'ACTIVE' | 'PAUSED' | 'INHERITED_FROM_SOURCE';
|
|
12089
|
+
/**
|
|
12090
|
+
* Reschedule the copied hierarchy's start time
|
|
12091
|
+
*/
|
|
12092
|
+
startTime?: string;
|
|
12093
|
+
endTime?: string;
|
|
12094
|
+
renameStrategy?: 'DEEP_RENAME' | 'ONLY_TOP_LEVEL_RENAME' | 'NO_RENAME';
|
|
12095
|
+
renamePrefix?: string;
|
|
12096
|
+
renameSuffix?: string;
|
|
12097
|
+
/**
|
|
12098
|
+
* Trigger ads discovery on the owning account after the copy succeeds
|
|
12099
|
+
*/
|
|
12100
|
+
syncAfter?: boolean;
|
|
12101
|
+
};
|
|
12102
|
+
path: {
|
|
12103
|
+
/**
|
|
12104
|
+
* Source platform campaign ID
|
|
12105
|
+
*/
|
|
12106
|
+
campaignId: string;
|
|
12107
|
+
};
|
|
12108
|
+
};
|
|
12109
|
+
|
|
12110
|
+
export type DuplicateAdCampaignResponse = ({
|
|
12111
|
+
/**
|
|
12112
|
+
* Platform ID of the new campaign
|
|
12113
|
+
*/
|
|
12114
|
+
copiedCampaignId?: string;
|
|
12115
|
+
discovery?: 'triggered' | 'skipped' | 'failed';
|
|
12116
|
+
/**
|
|
12117
|
+
* Platform-native response from the copy endpoint (Meta includes ad_object_ids for child copies)
|
|
12118
|
+
*/
|
|
12119
|
+
raw?: {
|
|
12120
|
+
[key: string]: unknown;
|
|
12121
|
+
};
|
|
12122
|
+
});
|
|
12123
|
+
|
|
12124
|
+
export type DuplicateAdCampaignError = (unknown | {
|
|
12125
|
+
error?: string;
|
|
12126
|
+
});
|
|
12127
|
+
|
|
12128
|
+
export type UpdateAdSetData = {
|
|
12129
|
+
body: {
|
|
12130
|
+
platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter';
|
|
12131
|
+
/**
|
|
12132
|
+
* Omit if only toggling status
|
|
12133
|
+
*/
|
|
12134
|
+
budget?: {
|
|
12135
|
+
amount?: number;
|
|
12136
|
+
type?: 'daily' | 'lifetime';
|
|
12137
|
+
};
|
|
12138
|
+
/**
|
|
12139
|
+
* Omit if only updating budget
|
|
12140
|
+
*/
|
|
12141
|
+
status?: 'active' | 'paused';
|
|
12142
|
+
};
|
|
12143
|
+
path: {
|
|
12144
|
+
/**
|
|
12145
|
+
* Platform ad set ID
|
|
12146
|
+
*/
|
|
12147
|
+
adSetId: string;
|
|
12148
|
+
};
|
|
12149
|
+
};
|
|
12150
|
+
|
|
12151
|
+
export type UpdateAdSetResponse = ({
|
|
12152
|
+
budget?: AdBudget;
|
|
12153
|
+
budgetLevel?: 'adset';
|
|
12154
|
+
status?: 'active' | 'paused';
|
|
12155
|
+
statusUpdated?: number;
|
|
12156
|
+
statusSkipped?: number;
|
|
12157
|
+
});
|
|
12158
|
+
|
|
12159
|
+
export type UpdateAdSetError = (unknown | {
|
|
12160
|
+
error?: string;
|
|
12161
|
+
});
|
|
12162
|
+
|
|
12163
|
+
export type UpdateAdSetStatusData = {
|
|
12164
|
+
body: {
|
|
12165
|
+
status: 'active' | 'paused';
|
|
12166
|
+
platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter';
|
|
12167
|
+
};
|
|
12168
|
+
path: {
|
|
12169
|
+
/**
|
|
12170
|
+
* Platform ad set ID
|
|
12171
|
+
*/
|
|
12172
|
+
adSetId: string;
|
|
12173
|
+
};
|
|
12174
|
+
};
|
|
12175
|
+
|
|
12176
|
+
export type UpdateAdSetStatusResponse = ({
|
|
12177
|
+
updated?: number;
|
|
12178
|
+
skipped?: number;
|
|
12179
|
+
});
|
|
12180
|
+
|
|
12181
|
+
export type UpdateAdSetStatusError = (unknown | {
|
|
12182
|
+
error?: string;
|
|
12183
|
+
});
|
|
12184
|
+
|
|
11893
12185
|
export type GetAdTreeData = {
|
|
11894
12186
|
query?: {
|
|
11895
12187
|
/**
|
|
@@ -11917,6 +12209,9 @@ export type GetAdTreeData = {
|
|
|
11917
12209
|
* Profile ID
|
|
11918
12210
|
*/
|
|
11919
12211
|
profileId?: string;
|
|
12212
|
+
/**
|
|
12213
|
+
* `all` (default) returns both Zernio-created ads and those discovered from the platform's ad manager — matches the web UI's default view. Pass `zernio` to restrict to isExternal=false only. Status is NOT filtered by default — use the `status` param for that.
|
|
12214
|
+
*/
|
|
11920
12215
|
source?: 'zernio' | 'all';
|
|
11921
12216
|
/**
|
|
11922
12217
|
* Filter by derived campaign status (post-aggregation)
|