@zernio/node 0.2.128 → 0.2.130
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 +12 -0
- package/dist/index.d.mts +281 -2
- package/dist/index.d.ts +281 -2
- package/dist/index.js +61 -0
- package/dist/index.mjs +61 -0
- package/package.json +1 -1
- package/src/client.ts +22 -0
- package/src/generated/sdk.gen.ts +138 -1
- package/src/generated/types.gen.ts +295 -1
package/src/client.ts
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
addBroadcastRecipients,
|
|
5
5
|
addConversionAssociations,
|
|
6
6
|
addMessageReaction,
|
|
7
|
+
addTrackingTagSharedAccount,
|
|
7
8
|
addUsersToAdAudience,
|
|
8
9
|
addWhatsAppGroupParticipants,
|
|
9
10
|
approveWhatsAppGroupJoinRequests,
|
|
@@ -39,6 +40,7 @@ import {
|
|
|
39
40
|
createQueueSlot,
|
|
40
41
|
createSequence,
|
|
41
42
|
createStandaloneAd,
|
|
43
|
+
createTrackingTag,
|
|
42
44
|
createWebhookSettings,
|
|
43
45
|
createWhatsAppFlow,
|
|
44
46
|
createWhatsAppGroupChat,
|
|
@@ -138,6 +140,8 @@ import {
|
|
|
138
140
|
getTelegramConnectStatus,
|
|
139
141
|
getTikTokAccountInsights,
|
|
140
142
|
getTikTokCreatorInfo,
|
|
143
|
+
getTrackingTag,
|
|
144
|
+
getTrackingTagStats,
|
|
141
145
|
getUsageStats,
|
|
142
146
|
getUser,
|
|
143
147
|
getWebhookSettings,
|
|
@@ -191,6 +195,8 @@ import {
|
|
|
191
195
|
listSequenceEnrollments,
|
|
192
196
|
listSequences,
|
|
193
197
|
listSnapchatProfiles,
|
|
198
|
+
listTrackingTagSharedAccounts,
|
|
199
|
+
listTrackingTags,
|
|
194
200
|
listUsers,
|
|
195
201
|
listWhatsAppFlows,
|
|
196
202
|
listWhatsAppGroupChats,
|
|
@@ -205,6 +211,7 @@ import {
|
|
|
205
211
|
removeBookmark,
|
|
206
212
|
removeConversionAssociations,
|
|
207
213
|
removeMessageReaction,
|
|
214
|
+
removeTrackingTagSharedAccount,
|
|
208
215
|
removeWhatsAppGroupParticipants,
|
|
209
216
|
replyToInboxPost,
|
|
210
217
|
replyToInboxReview,
|
|
@@ -266,6 +273,7 @@ import {
|
|
|
266
273
|
updateQueueSlot,
|
|
267
274
|
updateRedditSubreddits,
|
|
268
275
|
updateSequence,
|
|
276
|
+
updateTrackingTag,
|
|
269
277
|
updateWebhookSettings,
|
|
270
278
|
updateWhatsAppBusinessProfile,
|
|
271
279
|
updateWhatsAppDisplayName,
|
|
@@ -872,6 +880,20 @@ export class Zernio {
|
|
|
872
880
|
addUsersToAdAudience: addUsersToAdAudience,
|
|
873
881
|
};
|
|
874
882
|
|
|
883
|
+
/**
|
|
884
|
+
* trackingtags API
|
|
885
|
+
*/
|
|
886
|
+
trackingtags = {
|
|
887
|
+
listTrackingTags: listTrackingTags,
|
|
888
|
+
createTrackingTag: createTrackingTag,
|
|
889
|
+
getTrackingTag: getTrackingTag,
|
|
890
|
+
updateTrackingTag: updateTrackingTag,
|
|
891
|
+
listTrackingTagSharedAccounts: listTrackingTagSharedAccounts,
|
|
892
|
+
addTrackingTagSharedAccount: addTrackingTagSharedAccount,
|
|
893
|
+
removeTrackingTagSharedAccount: removeTrackingTagSharedAccount,
|
|
894
|
+
getTrackingTagStats: getTrackingTagStats,
|
|
895
|
+
};
|
|
896
|
+
|
|
875
897
|
/**
|
|
876
898
|
* Create a new Zernio API client.
|
|
877
899
|
*
|
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, GetYouTubeChannelInsightsData, GetYouTubeChannelInsightsError, GetYouTubeChannelInsightsResponse, GetLinkedInOrgAggregateAnalyticsData, GetLinkedInOrgAggregateAnalyticsError, GetLinkedInOrgAggregateAnalyticsResponse, GetTikTokAccountInsightsData, GetTikTokAccountInsightsError, GetTikTokAccountInsightsResponse, GetYouTubeDailyViewsData, GetYouTubeDailyViewsError, GetYouTubeDailyViewsResponse, GetFacebookPageInsightsData, GetFacebookPageInsightsError, GetFacebookPageInsightsResponse, GetInstagramAccountInsightsData, GetInstagramAccountInsightsError, GetInstagramAccountInsightsResponse, GetInstagramFollowerHistoryData, GetInstagramFollowerHistoryError, GetInstagramFollowerHistoryResponse, 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, GetXApiPricingError, GetXApiPricingResponse, 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, ConfigureTikTokAdsBrandIdentityData, ConfigureTikTokAdsBrandIdentityError, ConfigureTikTokAdsBrandIdentityResponse, 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, ListWhatsAppPhoneNumbersData, ListWhatsAppPhoneNumbersError, ListWhatsAppPhoneNumbersResponse, CompleteWhatsAppPhoneSelectionData, CompleteWhatsAppPhoneSelectionError, CompleteWhatsAppPhoneSelectionResponse, 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, GetAdCommentsData, GetAdCommentsError, GetAdCommentsResponse, ListAdsBusinessCentersData, ListAdsBusinessCentersError, ListAdsBusinessCentersResponse, ListAdAccountsData, ListAdAccountsError, ListAdAccountsResponse, BoostPostData, BoostPostError, BoostPostResponse, CreateStandaloneAdData, CreateStandaloneAdError, CreateStandaloneAdResponse, SearchAdInterestsData, SearchAdInterestsError, SearchAdInterestsResponse, SearchAdTargetingLocationsData, SearchAdTargetingLocationsError, SearchAdTargetingLocationsResponse, ListAdAudiencesData, ListAdAudiencesError, ListAdAudiencesResponse, CreateAdAudienceData, CreateAdAudienceError, CreateAdAudienceResponse, GetAdAudienceData, GetAdAudienceError, GetAdAudienceResponse, DeleteAdAudienceData, DeleteAdAudienceError, DeleteAdAudienceResponse, AddUsersToAdAudienceData, AddUsersToAdAudienceError, AddUsersToAdAudienceResponse, SendConversionsData, SendConversionsError, SendConversionsResponse, ListConversionDestinationsData, ListConversionDestinationsError, ListConversionDestinationsResponse, CreateConversionDestinationData, CreateConversionDestinationError, CreateConversionDestinationResponse, GetConversionDestinationData, GetConversionDestinationError, GetConversionDestinationResponse, UpdateConversionDestinationData, UpdateConversionDestinationError, UpdateConversionDestinationResponse, DeleteConversionDestinationData, DeleteConversionDestinationError, DeleteConversionDestinationResponse, ListConversionAssociationsData, ListConversionAssociationsError, ListConversionAssociationsResponse, AddConversionAssociationsData, AddConversionAssociationsError, AddConversionAssociationsResponse, RemoveConversionAssociationsData, RemoveConversionAssociationsError, RemoveConversionAssociationsResponse, GetConversionMetricsData, GetConversionMetricsError, GetConversionMetricsResponse, SendWhatsAppConversionData, SendWhatsAppConversionError, SendWhatsAppConversionResponse, CreateCtwaAdData, CreateCtwaAdError, CreateCtwaAdResponse } from './types.gen';
|
|
4
|
+
import type { ValidatePostLengthData, ValidatePostLengthError, ValidatePostLengthResponse, ValidatePostData, ValidatePostError, ValidatePostResponse, ValidateMediaData, ValidateMediaError, ValidateMediaResponse, ValidateSubredditData, ValidateSubredditError, ValidateSubredditResponse, GetAnalyticsData, GetAnalyticsError, GetAnalyticsResponse, GetYouTubeChannelInsightsData, GetYouTubeChannelInsightsError, GetYouTubeChannelInsightsResponse, GetLinkedInOrgAggregateAnalyticsData, GetLinkedInOrgAggregateAnalyticsError, GetLinkedInOrgAggregateAnalyticsResponse, GetTikTokAccountInsightsData, GetTikTokAccountInsightsError, GetTikTokAccountInsightsResponse, GetYouTubeDailyViewsData, GetYouTubeDailyViewsError, GetYouTubeDailyViewsResponse, GetFacebookPageInsightsData, GetFacebookPageInsightsError, GetFacebookPageInsightsResponse, GetInstagramAccountInsightsData, GetInstagramAccountInsightsError, GetInstagramAccountInsightsResponse, GetInstagramFollowerHistoryData, GetInstagramFollowerHistoryError, GetInstagramFollowerHistoryResponse, 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, GetXApiPricingError, GetXApiPricingResponse, 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, ConfigureTikTokAdsBrandIdentityData, ConfigureTikTokAdsBrandIdentityError, ConfigureTikTokAdsBrandIdentityResponse, 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, ListWhatsAppPhoneNumbersData, ListWhatsAppPhoneNumbersError, ListWhatsAppPhoneNumbersResponse, CompleteWhatsAppPhoneSelectionData, CompleteWhatsAppPhoneSelectionError, CompleteWhatsAppPhoneSelectionResponse, 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, GetAdCommentsData, GetAdCommentsError, GetAdCommentsResponse, ListAdsBusinessCentersData, ListAdsBusinessCentersError, ListAdsBusinessCentersResponse, ListAdAccountsData, ListAdAccountsError, ListAdAccountsResponse, BoostPostData, BoostPostError, BoostPostResponse, CreateStandaloneAdData, CreateStandaloneAdError, CreateStandaloneAdResponse, SearchAdInterestsData, SearchAdInterestsError, SearchAdInterestsResponse, SearchAdTargetingLocationsData, SearchAdTargetingLocationsError, SearchAdTargetingLocationsResponse, ListAdAudiencesData, ListAdAudiencesError, ListAdAudiencesResponse, CreateAdAudienceData, CreateAdAudienceError, CreateAdAudienceResponse, GetAdAudienceData, GetAdAudienceError, GetAdAudienceResponse, DeleteAdAudienceData, DeleteAdAudienceError, DeleteAdAudienceResponse, AddUsersToAdAudienceData, AddUsersToAdAudienceError, AddUsersToAdAudienceResponse, SendConversionsData, SendConversionsError, SendConversionsResponse, ListConversionDestinationsData, ListConversionDestinationsError, ListConversionDestinationsResponse, CreateConversionDestinationData, CreateConversionDestinationError, CreateConversionDestinationResponse, GetConversionDestinationData, GetConversionDestinationError, GetConversionDestinationResponse, UpdateConversionDestinationData, UpdateConversionDestinationError, UpdateConversionDestinationResponse, DeleteConversionDestinationData, DeleteConversionDestinationError, DeleteConversionDestinationResponse, ListConversionAssociationsData, ListConversionAssociationsError, ListConversionAssociationsResponse, AddConversionAssociationsData, AddConversionAssociationsError, AddConversionAssociationsResponse, RemoveConversionAssociationsData, RemoveConversionAssociationsError, RemoveConversionAssociationsResponse, GetConversionMetricsData, GetConversionMetricsError, GetConversionMetricsResponse, SendWhatsAppConversionData, SendWhatsAppConversionError, SendWhatsAppConversionResponse, CreateCtwaAdData, CreateCtwaAdError, CreateCtwaAdResponse, ListTrackingTagsData, ListTrackingTagsError, ListTrackingTagsResponse, CreateTrackingTagData, CreateTrackingTagError, CreateTrackingTagResponse, GetTrackingTagData, GetTrackingTagError, GetTrackingTagResponse, UpdateTrackingTagData, UpdateTrackingTagError, UpdateTrackingTagResponse, ListTrackingTagSharedAccountsData, ListTrackingTagSharedAccountsError, ListTrackingTagSharedAccountsResponse, AddTrackingTagSharedAccountData, AddTrackingTagSharedAccountError, AddTrackingTagSharedAccountResponse, RemoveTrackingTagSharedAccountData, RemoveTrackingTagSharedAccountError, RemoveTrackingTagSharedAccountResponse, GetTrackingTagStatsData, GetTrackingTagStatsError, GetTrackingTagStatsResponse } from './types.gen';
|
|
5
5
|
|
|
6
6
|
export const client = createClient(createConfig());
|
|
7
7
|
|
|
@@ -3902,4 +3902,141 @@ export const createCtwaAd = <ThrowOnError extends boolean = false>(options: Opti
|
|
|
3902
3902
|
...options,
|
|
3903
3903
|
url: '/v1/ads/ctwa'
|
|
3904
3904
|
});
|
|
3905
|
+
};
|
|
3906
|
+
|
|
3907
|
+
/**
|
|
3908
|
+
* List tracking tags (Meta Pixels)
|
|
3909
|
+
* Returns the tracking tags (Meta Pixels) the connected ads account can
|
|
3910
|
+
* see. Pass `?adAccountId=act_...` to scope the list to a single ad
|
|
3911
|
+
* account; omit it to list every pixel reachable by the token (the name
|
|
3912
|
+
* is then suffixed with the ad account it was discovered on, for
|
|
3913
|
+
* disambiguation). The list view omits `code` — call `getTrackingTag` for
|
|
3914
|
+
* the install snippet and full detail.
|
|
3915
|
+
*
|
|
3916
|
+
* Meta only today (platform `metaads`); other platforms return 405. The
|
|
3917
|
+
* `accountId` must be the Meta *ads* SocialAccount created by the Ads
|
|
3918
|
+
* add-on connect flow, not a Facebook/Instagram posting account. Get your
|
|
3919
|
+
* `act_...` ids from `GET /v1/ads/accounts`.
|
|
3920
|
+
*
|
|
3921
|
+
*/
|
|
3922
|
+
export const listTrackingTags = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListTrackingTagsData, ThrowOnError>) => {
|
|
3923
|
+
return (options?.client ?? client).get<ListTrackingTagsResponse, ListTrackingTagsError, ThrowOnError>({
|
|
3924
|
+
...options,
|
|
3925
|
+
url: '/v1/accounts/{accountId}/tracking-tags'
|
|
3926
|
+
});
|
|
3927
|
+
};
|
|
3928
|
+
|
|
3929
|
+
/**
|
|
3930
|
+
* Create a tracking tag (Meta Pixel)
|
|
3931
|
+
* Creates a Meta Pixel on the given ad account (`POST /act_{id}/adspixels`
|
|
3932
|
+
* — `name` is the only input). Returns the created tag including its
|
|
3933
|
+
* install `code`. The pixel is owned by the Business Manager that owns the
|
|
3934
|
+
* ad account; a pixel created on a personal (non-BM) ad account ends up
|
|
3935
|
+
* with `ownerBusinessId: null` and can't be shared with other ad accounts.
|
|
3936
|
+
*
|
|
3937
|
+
* Creating a pixel does NOT install it — install the returned `code`
|
|
3938
|
+
* snippet on the site, or send events server-side via
|
|
3939
|
+
* `POST /v1/ads/conversions`. The check `installed` is derived from
|
|
3940
|
+
* `lastFiredTime`.
|
|
3941
|
+
*
|
|
3942
|
+
* NOT idempotent: each call creates a new pixel. Do not retry blindly on
|
|
3943
|
+
* timeout. Meta only (platform `metaads`); other platforms return 405.
|
|
3944
|
+
*
|
|
3945
|
+
*/
|
|
3946
|
+
export const createTrackingTag = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateTrackingTagData, ThrowOnError>) => {
|
|
3947
|
+
return (options?.client ?? client).post<CreateTrackingTagResponse, CreateTrackingTagError, ThrowOnError>({
|
|
3948
|
+
...options,
|
|
3949
|
+
url: '/v1/accounts/{accountId}/tracking-tags'
|
|
3950
|
+
});
|
|
3951
|
+
};
|
|
3952
|
+
|
|
3953
|
+
/**
|
|
3954
|
+
* Fetch a single tracking tag (Meta Pixel)
|
|
3955
|
+
* Returns the full tag record including the base-code `code` snippet,
|
|
3956
|
+
* `lastFiredTime`, `ownerBusinessId`, `isUnavailable`, etc. Meta only
|
|
3957
|
+
* (platform `metaads`); other platforms return 405.
|
|
3958
|
+
*
|
|
3959
|
+
*/
|
|
3960
|
+
export const getTrackingTag = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetTrackingTagData, ThrowOnError>) => {
|
|
3961
|
+
return (options?.client ?? client).get<GetTrackingTagResponse, GetTrackingTagError, ThrowOnError>({
|
|
3962
|
+
...options,
|
|
3963
|
+
url: '/v1/accounts/{accountId}/tracking-tags/{tagId}'
|
|
3964
|
+
});
|
|
3965
|
+
};
|
|
3966
|
+
|
|
3967
|
+
/**
|
|
3968
|
+
* Update a tracking tag (Meta Pixel)
|
|
3969
|
+
* Partial-update a pixel. Whitelisted fields: `name` (rename),
|
|
3970
|
+
* `enableAutomaticMatching`, `automaticMatchingFields`,
|
|
3971
|
+
* `firstPartyCookieStatus`, `dataUseSetting`. At least one is required.
|
|
3972
|
+
* Returns the re-fetched canonical tag. Meta only (platform `metaads`);
|
|
3973
|
+
* other platforms return 405.
|
|
3974
|
+
*
|
|
3975
|
+
* There is no DELETE — Meta has no API to delete a pixel. To stop using
|
|
3976
|
+
* one, unshare it from your ad accounts (`DELETE
|
|
3977
|
+
* .../tracking-tags/{tagId}/shared-accounts`) or disable it in Events
|
|
3978
|
+
* Manager.
|
|
3979
|
+
*
|
|
3980
|
+
*/
|
|
3981
|
+
export const updateTrackingTag = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateTrackingTagData, ThrowOnError>) => {
|
|
3982
|
+
return (options?.client ?? client).patch<UpdateTrackingTagResponse, UpdateTrackingTagError, ThrowOnError>({
|
|
3983
|
+
...options,
|
|
3984
|
+
url: '/v1/accounts/{accountId}/tracking-tags/{tagId}'
|
|
3985
|
+
});
|
|
3986
|
+
};
|
|
3987
|
+
|
|
3988
|
+
/**
|
|
3989
|
+
* List ad accounts a tracking tag is shared with
|
|
3990
|
+
* Meta only (platform `metaads`); other platforms return 405.
|
|
3991
|
+
*/
|
|
3992
|
+
export const listTrackingTagSharedAccounts = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListTrackingTagSharedAccountsData, ThrowOnError>) => {
|
|
3993
|
+
return (options?.client ?? client).get<ListTrackingTagSharedAccountsResponse, ListTrackingTagSharedAccountsError, ThrowOnError>({
|
|
3994
|
+
...options,
|
|
3995
|
+
url: '/v1/accounts/{accountId}/tracking-tags/{tagId}/shared-accounts'
|
|
3996
|
+
});
|
|
3997
|
+
};
|
|
3998
|
+
|
|
3999
|
+
/**
|
|
4000
|
+
* Share a tracking tag with an ad account
|
|
4001
|
+
* Shares the pixel with another ad account so campaigns/audiences in that
|
|
4002
|
+
* account can use it. Requires that you administer both the pixel's owning
|
|
4003
|
+
* Business Manager and the target ad account; a pixel on a personal
|
|
4004
|
+
* (non-BM) ad account can't be shared (Meta will reject the call). Meta
|
|
4005
|
+
* only (platform `metaads`); other platforms return 405.
|
|
4006
|
+
*
|
|
4007
|
+
*/
|
|
4008
|
+
export const addTrackingTagSharedAccount = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<AddTrackingTagSharedAccountData, ThrowOnError>) => {
|
|
4009
|
+
return (options?.client ?? client).post<AddTrackingTagSharedAccountResponse, AddTrackingTagSharedAccountError, ThrowOnError>({
|
|
4010
|
+
...options,
|
|
4011
|
+
url: '/v1/accounts/{accountId}/tracking-tags/{tagId}/shared-accounts'
|
|
4012
|
+
});
|
|
4013
|
+
};
|
|
4014
|
+
|
|
4015
|
+
/**
|
|
4016
|
+
* Stop sharing a tracking tag with an ad account
|
|
4017
|
+
* `adAccountId` may be passed as a query parameter (recommended) or as a
|
|
4018
|
+
* JSON body field for clients that can send DELETE bodies. Meta only
|
|
4019
|
+
* (platform `metaads`); other platforms return 405.
|
|
4020
|
+
*
|
|
4021
|
+
*/
|
|
4022
|
+
export const removeTrackingTagSharedAccount = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<RemoveTrackingTagSharedAccountData, ThrowOnError>) => {
|
|
4023
|
+
return (options?.client ?? client).delete<RemoveTrackingTagSharedAccountResponse, RemoveTrackingTagSharedAccountError, ThrowOnError>({
|
|
4024
|
+
...options,
|
|
4025
|
+
url: '/v1/accounts/{accountId}/tracking-tags/{tagId}/shared-accounts'
|
|
4026
|
+
});
|
|
4027
|
+
};
|
|
4028
|
+
|
|
4029
|
+
/**
|
|
4030
|
+
* Aggregated event stats for a tracking tag (Meta Pixel)
|
|
4031
|
+
* Returns aggregated event counts for the pixel (`GET /{pixel_id}/stats`).
|
|
4032
|
+
* Rows are passed through from Meta as-is — their shape depends on the
|
|
4033
|
+
* `aggregation` requested. Meta only (platform `metaads`); other platforms
|
|
4034
|
+
* return 405.
|
|
4035
|
+
*
|
|
4036
|
+
*/
|
|
4037
|
+
export const getTrackingTagStats = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetTrackingTagStatsData, ThrowOnError>) => {
|
|
4038
|
+
return (options?.client ?? client).get<GetTrackingTagStatsResponse, GetTrackingTagStatsError, ThrowOnError>({
|
|
4039
|
+
...options,
|
|
4040
|
+
url: '/v1/accounts/{accountId}/tracking-tags/{tagId}/stats'
|
|
4041
|
+
});
|
|
3905
4042
|
};
|
|
@@ -2454,6 +2454,21 @@ export type ReviewWebhookReview = {
|
|
|
2454
2454
|
*/
|
|
2455
2455
|
export type platform4 = 'googlebusiness';
|
|
2456
2456
|
|
|
2457
|
+
/**
|
|
2458
|
+
* An ad account a tracking tag is shared with (Meta `shared_accounts` edge).
|
|
2459
|
+
*/
|
|
2460
|
+
export type SharedAdAccount = {
|
|
2461
|
+
/**
|
|
2462
|
+
* Ad account id, in `act_<digits>` form.
|
|
2463
|
+
*/
|
|
2464
|
+
id: string;
|
|
2465
|
+
name?: string;
|
|
2466
|
+
/**
|
|
2467
|
+
* Business Manager id that owns the ad account
|
|
2468
|
+
*/
|
|
2469
|
+
businessId?: string;
|
|
2470
|
+
};
|
|
2471
|
+
|
|
2457
2472
|
/**
|
|
2458
2473
|
* Requires a Public Profile. Single media item only. Content types: story (ephemeral 24h), saved_story (permanent, title max 45 chars), spotlight (video, max 160 chars).
|
|
2459
2474
|
*/
|
|
@@ -2673,6 +2688,75 @@ export type commercialContentType = 'none' | 'brand_organic' | 'brand_content';
|
|
|
2673
2688
|
*/
|
|
2674
2689
|
export type mediaType2 = 'video' | 'photo';
|
|
2675
2690
|
|
|
2691
|
+
/**
|
|
2692
|
+
* A platform measurement tag — the thing you create, install on a
|
|
2693
|
+
* website, send events to, and target ads against. On Meta this is a
|
|
2694
|
+
* Pixel (`kind: pixel`). The shape is platform-neutral so other platforms
|
|
2695
|
+
* (Pinterest Tag, LinkedIn Insight Tag, etc.) can be added without
|
|
2696
|
+
* changing the contract; platform-specific fields are simply absent where
|
|
2697
|
+
* a platform has no equivalent. Returned by `listTrackingTags`,
|
|
2698
|
+
* `createTrackingTag`, `getTrackingTag`, and `updateTrackingTag`.
|
|
2699
|
+
*
|
|
2700
|
+
*/
|
|
2701
|
+
export type TrackingTag = {
|
|
2702
|
+
/**
|
|
2703
|
+
* Platform-native tag id. Meta: numeric pixel id, as a string.
|
|
2704
|
+
*/
|
|
2705
|
+
id: string;
|
|
2706
|
+
name: string;
|
|
2707
|
+
platform: 'metaads';
|
|
2708
|
+
/**
|
|
2709
|
+
* Platform-native flavor of the tag (Meta: `pixel`).
|
|
2710
|
+
*/
|
|
2711
|
+
kind: 'pixel' | 'tag' | 'insight_tag';
|
|
2712
|
+
/**
|
|
2713
|
+
* `inactive` when the platform reports the tag as broken/unavailable.
|
|
2714
|
+
*/
|
|
2715
|
+
status: 'active' | 'inactive';
|
|
2716
|
+
/**
|
|
2717
|
+
* The base-code `<script>` snippet to install on the site. Meta only;
|
|
2718
|
+
* populated by `getTrackingTag`, omitted from the list view.
|
|
2719
|
+
*
|
|
2720
|
+
*/
|
|
2721
|
+
code?: string;
|
|
2722
|
+
/**
|
|
2723
|
+
* Unix seconds of the last event the tag received, or `null` if it
|
|
2724
|
+
* never fired. The practical "is it installed and working" signal.
|
|
2725
|
+
*
|
|
2726
|
+
*/
|
|
2727
|
+
lastFiredTime?: (number) | null;
|
|
2728
|
+
/**
|
|
2729
|
+
* Whether the tag is in a broken/unavailable state (Meta `is_unavailable`).
|
|
2730
|
+
*/
|
|
2731
|
+
isUnavailable?: boolean;
|
|
2732
|
+
/**
|
|
2733
|
+
* Convenience flag derived from `lastFiredTime` — has the tag ever fired.
|
|
2734
|
+
*/
|
|
2735
|
+
installed?: boolean;
|
|
2736
|
+
/**
|
|
2737
|
+
* Unix seconds the tag was created.
|
|
2738
|
+
*/
|
|
2739
|
+
creationTime?: number;
|
|
2740
|
+
/**
|
|
2741
|
+
* Business Manager id that owns the tag, or `null` when the tag lives
|
|
2742
|
+
* on a personal (non-BM) ad account — such tags can't be shared with
|
|
2743
|
+
* other ad accounts.
|
|
2744
|
+
*
|
|
2745
|
+
*/
|
|
2746
|
+
ownerBusinessId?: (string) | null;
|
|
2747
|
+
/**
|
|
2748
|
+
* Ad account id (`act_...`) that owns the tag, when reported.
|
|
2749
|
+
*/
|
|
2750
|
+
ownerAdAccountId?: string;
|
|
2751
|
+
};
|
|
2752
|
+
|
|
2753
|
+
export type platform6 = 'metaads';
|
|
2754
|
+
|
|
2755
|
+
/**
|
|
2756
|
+
* Platform-native flavor of the tag (Meta: `pixel`).
|
|
2757
|
+
*/
|
|
2758
|
+
export type kind = 'pixel' | 'tag' | 'insight_tag';
|
|
2759
|
+
|
|
2676
2760
|
/**
|
|
2677
2761
|
* X (Twitter) geo-restriction applies at the media level. Media in geo-restricted tweets will be hidden for users outside the specified countries; the tweet text itself remains visible globally. Requires media to be attached (ignored for text-only tweets).
|
|
2678
2762
|
*
|
|
@@ -3233,7 +3317,7 @@ export type WebhookPayloadComment = {
|
|
|
3233
3317
|
|
|
3234
3318
|
export type event4 = 'comment.received';
|
|
3235
3319
|
|
|
3236
|
-
export type
|
|
3320
|
+
export type platform7 = 'instagram' | 'facebook' | 'twitter' | 'youtube' | 'linkedin' | 'bluesky' | 'reddit';
|
|
3237
3321
|
|
|
3238
3322
|
/**
|
|
3239
3323
|
* Webhook payload for message received events
|
|
@@ -15438,4 +15522,214 @@ export type CreateCtwaAdResponse = ({
|
|
|
15438
15522
|
|
|
15439
15523
|
export type CreateCtwaAdError = (unknown | {
|
|
15440
15524
|
error?: string;
|
|
15525
|
+
});
|
|
15526
|
+
|
|
15527
|
+
export type ListTrackingTagsData = {
|
|
15528
|
+
path: {
|
|
15529
|
+
/**
|
|
15530
|
+
* Meta ads SocialAccount id (platform `metaads`).
|
|
15531
|
+
*/
|
|
15532
|
+
accountId: string;
|
|
15533
|
+
};
|
|
15534
|
+
query?: {
|
|
15535
|
+
/**
|
|
15536
|
+
* Optional. Scope to one ad account, e.g. `act_123456789`.
|
|
15537
|
+
*/
|
|
15538
|
+
adAccountId?: string;
|
|
15539
|
+
};
|
|
15540
|
+
};
|
|
15541
|
+
|
|
15542
|
+
export type ListTrackingTagsResponse = ({
|
|
15543
|
+
platform?: 'metaads';
|
|
15544
|
+
tags?: Array<TrackingTag>;
|
|
15545
|
+
});
|
|
15546
|
+
|
|
15547
|
+
export type ListTrackingTagsError = (unknown | {
|
|
15548
|
+
error?: string;
|
|
15549
|
+
});
|
|
15550
|
+
|
|
15551
|
+
export type CreateTrackingTagData = {
|
|
15552
|
+
body: {
|
|
15553
|
+
/**
|
|
15554
|
+
* Meta ad account id, e.g. `act_123456789`.
|
|
15555
|
+
*/
|
|
15556
|
+
adAccountId: string;
|
|
15557
|
+
name: string;
|
|
15558
|
+
};
|
|
15559
|
+
path: {
|
|
15560
|
+
/**
|
|
15561
|
+
* Meta ads SocialAccount id (platform `metaads`).
|
|
15562
|
+
*/
|
|
15563
|
+
accountId: string;
|
|
15564
|
+
};
|
|
15565
|
+
};
|
|
15566
|
+
|
|
15567
|
+
export type CreateTrackingTagResponse = ({
|
|
15568
|
+
platform?: 'metaads';
|
|
15569
|
+
tag?: TrackingTag;
|
|
15570
|
+
});
|
|
15571
|
+
|
|
15572
|
+
export type CreateTrackingTagError = (unknown | {
|
|
15573
|
+
error?: string;
|
|
15574
|
+
});
|
|
15575
|
+
|
|
15576
|
+
export type GetTrackingTagData = {
|
|
15577
|
+
path: {
|
|
15578
|
+
accountId: string;
|
|
15579
|
+
/**
|
|
15580
|
+
* Pixel id.
|
|
15581
|
+
*/
|
|
15582
|
+
tagId: string;
|
|
15583
|
+
};
|
|
15584
|
+
};
|
|
15585
|
+
|
|
15586
|
+
export type GetTrackingTagResponse = ({
|
|
15587
|
+
platform?: 'metaads';
|
|
15588
|
+
tag?: TrackingTag;
|
|
15589
|
+
});
|
|
15590
|
+
|
|
15591
|
+
export type GetTrackingTagError = ({
|
|
15592
|
+
error?: string;
|
|
15593
|
+
} | unknown);
|
|
15594
|
+
|
|
15595
|
+
export type UpdateTrackingTagData = {
|
|
15596
|
+
body: {
|
|
15597
|
+
name?: string;
|
|
15598
|
+
/**
|
|
15599
|
+
* Meta Advanced Matching toggle (`enable_automatic_matching`).
|
|
15600
|
+
*/
|
|
15601
|
+
enableAutomaticMatching?: boolean;
|
|
15602
|
+
/**
|
|
15603
|
+
* Which user fields Advanced Matching may collect. Meta's
|
|
15604
|
+
* terse codes: em=email, ph=phone, fn=first name, ln=last
|
|
15605
|
+
* name, ge=gender, db=date of birth, ct=city, st=state,
|
|
15606
|
+
* zp=zip.
|
|
15607
|
+
*
|
|
15608
|
+
*/
|
|
15609
|
+
automaticMatchingFields?: Array<('em' | 'ph' | 'fn' | 'ln' | 'ge' | 'db' | 'ct' | 'st' | 'zp' | 'country' | 'external_id')>;
|
|
15610
|
+
firstPartyCookieStatus?: 'empty' | 'first_party_cookie_disabled' | 'first_party_cookie_enabled';
|
|
15611
|
+
dataUseSetting?: 'advertising_and_analytics' | 'analytics_only' | 'empty';
|
|
15612
|
+
};
|
|
15613
|
+
path: {
|
|
15614
|
+
accountId: string;
|
|
15615
|
+
/**
|
|
15616
|
+
* Pixel id.
|
|
15617
|
+
*/
|
|
15618
|
+
tagId: string;
|
|
15619
|
+
};
|
|
15620
|
+
};
|
|
15621
|
+
|
|
15622
|
+
export type UpdateTrackingTagResponse = ({
|
|
15623
|
+
platform?: 'metaads';
|
|
15624
|
+
tag?: TrackingTag;
|
|
15625
|
+
});
|
|
15626
|
+
|
|
15627
|
+
export type UpdateTrackingTagError = (unknown | {
|
|
15628
|
+
error?: string;
|
|
15629
|
+
});
|
|
15630
|
+
|
|
15631
|
+
export type ListTrackingTagSharedAccountsData = {
|
|
15632
|
+
path: {
|
|
15633
|
+
accountId: string;
|
|
15634
|
+
/**
|
|
15635
|
+
* Pixel id.
|
|
15636
|
+
*/
|
|
15637
|
+
tagId: string;
|
|
15638
|
+
};
|
|
15639
|
+
};
|
|
15640
|
+
|
|
15641
|
+
export type ListTrackingTagSharedAccountsResponse = ({
|
|
15642
|
+
platform?: 'metaads';
|
|
15643
|
+
sharedAccounts?: Array<SharedAdAccount>;
|
|
15644
|
+
});
|
|
15645
|
+
|
|
15646
|
+
export type ListTrackingTagSharedAccountsError = ({
|
|
15647
|
+
error?: string;
|
|
15648
|
+
} | unknown);
|
|
15649
|
+
|
|
15650
|
+
export type AddTrackingTagSharedAccountData = {
|
|
15651
|
+
body: {
|
|
15652
|
+
/**
|
|
15653
|
+
* Ad account to share with, e.g. `act_123456789`.
|
|
15654
|
+
*/
|
|
15655
|
+
adAccountId: string;
|
|
15656
|
+
};
|
|
15657
|
+
path: {
|
|
15658
|
+
accountId: string;
|
|
15659
|
+
/**
|
|
15660
|
+
* Pixel id.
|
|
15661
|
+
*/
|
|
15662
|
+
tagId: string;
|
|
15663
|
+
};
|
|
15664
|
+
};
|
|
15665
|
+
|
|
15666
|
+
export type AddTrackingTagSharedAccountResponse = ({
|
|
15667
|
+
platform?: 'metaads';
|
|
15668
|
+
ok?: boolean;
|
|
15669
|
+
});
|
|
15670
|
+
|
|
15671
|
+
export type AddTrackingTagSharedAccountError = (unknown | {
|
|
15672
|
+
error?: string;
|
|
15673
|
+
});
|
|
15674
|
+
|
|
15675
|
+
export type RemoveTrackingTagSharedAccountData = {
|
|
15676
|
+
path: {
|
|
15677
|
+
accountId: string;
|
|
15678
|
+
/**
|
|
15679
|
+
* Pixel id.
|
|
15680
|
+
*/
|
|
15681
|
+
tagId: string;
|
|
15682
|
+
};
|
|
15683
|
+
query?: {
|
|
15684
|
+
/**
|
|
15685
|
+
* Ad account to unshare, e.g. `act_123456789`. May also be sent in the JSON body.
|
|
15686
|
+
*/
|
|
15687
|
+
adAccountId?: string;
|
|
15688
|
+
};
|
|
15689
|
+
};
|
|
15690
|
+
|
|
15691
|
+
export type RemoveTrackingTagSharedAccountResponse = (void);
|
|
15692
|
+
|
|
15693
|
+
export type RemoveTrackingTagSharedAccountError = (unknown | {
|
|
15694
|
+
error?: string;
|
|
15695
|
+
});
|
|
15696
|
+
|
|
15697
|
+
export type GetTrackingTagStatsData = {
|
|
15698
|
+
path: {
|
|
15699
|
+
accountId: string;
|
|
15700
|
+
/**
|
|
15701
|
+
* Pixel id.
|
|
15702
|
+
*/
|
|
15703
|
+
tagId: string;
|
|
15704
|
+
};
|
|
15705
|
+
query?: {
|
|
15706
|
+
/**
|
|
15707
|
+
* Aggregation dimension. Defaults to `event`.
|
|
15708
|
+
*/
|
|
15709
|
+
aggregation?: 'event' | 'host' | 'url' | 'url_by_rule' | 'pixel_fire' | 'device_type' | 'device_os' | 'browser_type' | 'had_pii' | 'custom_data_field' | 'match_keys' | 'event_source' | 'event_detection_method' | 'event_processing_results' | 'event_total_counts' | 'event_value_count';
|
|
15710
|
+
/**
|
|
15711
|
+
* Unix seconds upper bound.
|
|
15712
|
+
*/
|
|
15713
|
+
endTime?: number;
|
|
15714
|
+
/**
|
|
15715
|
+
* Unix seconds lower bound.
|
|
15716
|
+
*/
|
|
15717
|
+
startTime?: number;
|
|
15718
|
+
};
|
|
15719
|
+
};
|
|
15720
|
+
|
|
15721
|
+
export type GetTrackingTagStatsResponse = ({
|
|
15722
|
+
platform?: 'metaads';
|
|
15723
|
+
stats?: {
|
|
15724
|
+
aggregation?: string;
|
|
15725
|
+
startTime?: number;
|
|
15726
|
+
endTime?: number;
|
|
15727
|
+
rows?: Array<{
|
|
15728
|
+
[key: string]: unknown;
|
|
15729
|
+
}>;
|
|
15730
|
+
};
|
|
15731
|
+
});
|
|
15732
|
+
|
|
15733
|
+
export type GetTrackingTagStatsError = (unknown | {
|
|
15734
|
+
error?: string;
|
|
15441
15735
|
});
|