@zernio/node 0.2.59 → 0.2.61
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 +43 -44
- package/dist/index.d.mts +8 -114
- package/dist/index.d.ts +8 -114
- package/dist/index.js +1 -8
- package/dist/index.mjs +1 -8
- package/package.json +1 -1
- package/src/client.ts +0 -2
- package/src/generated/sdk.gen.ts +44 -57
- package/src/generated/types.gen.ts +7 -119
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
3
|
import { createClient, createConfig, type OptionsLegacyParser, formDataBodySerializer } from '@hey-api/client-fetch';
|
|
4
|
-
import type { ValidatePostLengthData, ValidatePostLengthError, ValidatePostLengthResponse, ValidatePostData, ValidatePostError, ValidatePostResponse, ValidateMediaData, ValidateMediaError, ValidateMediaResponse, ValidateSubredditData, ValidateSubredditError, ValidateSubredditResponse, GetAnalyticsData, GetAnalyticsError, GetAnalyticsResponse, GetYouTubeDailyViewsData, GetYouTubeDailyViewsError, GetYouTubeDailyViewsResponse, GetInstagramAccountInsightsData, GetInstagramAccountInsightsError, GetInstagramAccountInsightsResponse, GetInstagramDemographicsData, GetInstagramDemographicsError, GetInstagramDemographicsResponse, GetYouTubeDemographicsData, GetYouTubeDemographicsError, GetYouTubeDemographicsResponse, GetDailyMetricsData, GetDailyMetricsError, GetDailyMetricsResponse, GetBestTimeToPostData, GetBestTimeToPostError, GetBestTimeToPostResponse, GetContentDecayData, GetContentDecayError, GetContentDecayResponse, GetPostingFrequencyData, GetPostingFrequencyError, GetPostingFrequencyResponse, GetPostTimelineData, GetPostTimelineError, GetPostTimelineResponse, GetGoogleBusinessPerformanceData, GetGoogleBusinessPerformanceError, GetGoogleBusinessPerformanceResponse, GetGoogleBusinessSearchKeywordsData, GetGoogleBusinessSearchKeywordsError, GetGoogleBusinessSearchKeywordsResponse, ListAccountGroupsError, ListAccountGroupsResponse, CreateAccountGroupData, CreateAccountGroupError, CreateAccountGroupResponse, UpdateAccountGroupData, UpdateAccountGroupError, UpdateAccountGroupResponse, DeleteAccountGroupData, DeleteAccountGroupError, DeleteAccountGroupResponse, GetMediaPresignedUrlData, GetMediaPresignedUrlError, GetMediaPresignedUrlResponse, SearchRedditData, SearchRedditError, SearchRedditResponse, GetRedditFeedData, GetRedditFeedError, GetRedditFeedResponse, GetUsageStatsError, GetUsageStatsResponse, ListPostsData, ListPostsError, ListPostsResponse, CreatePostData, CreatePostError, CreatePostResponse, GetPostData, GetPostError, GetPostResponse, UpdatePostData, UpdatePostError, UpdatePostResponse, DeletePostData, DeletePostError, DeletePostResponse, BulkUploadPostsData, BulkUploadPostsError, BulkUploadPostsResponse, RetryPostData, RetryPostError, RetryPostResponse, UnpublishPostData, UnpublishPostError, UnpublishPostResponse, EditPostData, EditPostError, EditPostResponse, UpdatePostMetadataData, UpdatePostMetadataError, UpdatePostMetadataResponse, ListUsersError, ListUsersResponse, GetUserData, GetUserError, GetUserResponse, ListProfilesData, ListProfilesError, ListProfilesResponse, CreateProfileData, CreateProfileError, CreateProfileResponse, GetProfileData, GetProfileError, GetProfileResponse, UpdateProfileData, UpdateProfileError, UpdateProfileResponse, DeleteProfileData, DeleteProfileError, DeleteProfileResponse, ListAccountsData, ListAccountsError, ListAccountsResponse, GetFollowerStatsData, GetFollowerStatsError, GetFollowerStatsResponse, UpdateAccountData, UpdateAccountError, UpdateAccountResponse, DeleteAccountData, DeleteAccountError, DeleteAccountResponse, GetAllAccountsHealthData, GetAllAccountsHealthError, GetAllAccountsHealthResponse, GetAccountHealthData, GetAccountHealthError, GetAccountHealthResponse, GetTikTokCreatorInfoData, GetTikTokCreatorInfoError, GetTikTokCreatorInfoResponse, ListApiKeysError, ListApiKeysResponse, CreateApiKeyData, CreateApiKeyError, CreateApiKeyResponse, DeleteApiKeyData, DeleteApiKeyError, DeleteApiKeyResponse, CreateInviteTokenData, CreateInviteTokenError, CreateInviteTokenResponse, GetConnectUrlData, GetConnectUrlError, GetConnectUrlResponse, HandleOAuthCallbackData, HandleOAuthCallbackError, HandleOAuthCallbackResponse, ConnectAdsData, ConnectAdsError, ConnectAdsResponse, ListFacebookPagesData, ListFacebookPagesError, ListFacebookPagesResponse, SelectFacebookPageData, SelectFacebookPageError, SelectFacebookPageResponse, ListGoogleBusinessLocationsData, ListGoogleBusinessLocationsError, ListGoogleBusinessLocationsResponse, SelectGoogleBusinessLocationData, SelectGoogleBusinessLocationError, SelectGoogleBusinessLocationResponse, GetGoogleBusinessReviewsData, GetGoogleBusinessReviewsError, GetGoogleBusinessReviewsResponse, GetGoogleBusinessFoodMenusData, GetGoogleBusinessFoodMenusError, GetGoogleBusinessFoodMenusResponse, UpdateGoogleBusinessFoodMenusData, UpdateGoogleBusinessFoodMenusError, UpdateGoogleBusinessFoodMenusResponse, GetGoogleBusinessLocationDetailsData, GetGoogleBusinessLocationDetailsError, GetGoogleBusinessLocationDetailsResponse, UpdateGoogleBusinessLocationDetailsData, UpdateGoogleBusinessLocationDetailsError, UpdateGoogleBusinessLocationDetailsResponse, ListGoogleBusinessMediaData, ListGoogleBusinessMediaError, ListGoogleBusinessMediaResponse, CreateGoogleBusinessMediaData, CreateGoogleBusinessMediaError, CreateGoogleBusinessMediaResponse, DeleteGoogleBusinessMediaData, DeleteGoogleBusinessMediaError, DeleteGoogleBusinessMediaResponse, GetGoogleBusinessAttributesData, GetGoogleBusinessAttributesError, GetGoogleBusinessAttributesResponse, UpdateGoogleBusinessAttributesData, UpdateGoogleBusinessAttributesError, UpdateGoogleBusinessAttributesResponse, ListGoogleBusinessPlaceActionsData, ListGoogleBusinessPlaceActionsError, ListGoogleBusinessPlaceActionsResponse, CreateGoogleBusinessPlaceActionData, CreateGoogleBusinessPlaceActionError, CreateGoogleBusinessPlaceActionResponse, DeleteGoogleBusinessPlaceActionData, DeleteGoogleBusinessPlaceActionError, DeleteGoogleBusinessPlaceActionResponse, GetPendingOAuthDataData, GetPendingOAuthDataError, GetPendingOAuthDataResponse, ListLinkedInOrganizationsData, ListLinkedInOrganizationsError, ListLinkedInOrganizationsResponse, SelectLinkedInOrganizationData, SelectLinkedInOrganizationError, SelectLinkedInOrganizationResponse, ListPinterestBoardsForSelectionData, ListPinterestBoardsForSelectionError, ListPinterestBoardsForSelectionResponse, SelectPinterestBoardData, SelectPinterestBoardError, SelectPinterestBoardResponse, ListSnapchatProfilesData, ListSnapchatProfilesError, ListSnapchatProfilesResponse, SelectSnapchatProfileData, SelectSnapchatProfileError, SelectSnapchatProfileResponse, ConnectBlueskyCredentialsData, ConnectBlueskyCredentialsError, ConnectBlueskyCredentialsResponse, ConnectWhatsAppCredentialsData, ConnectWhatsAppCredentialsError, ConnectWhatsAppCredentialsResponse, GetTelegramConnectStatusData, GetTelegramConnectStatusError, GetTelegramConnectStatusResponse, InitiateTelegramConnectData, InitiateTelegramConnectError, InitiateTelegramConnectResponse, CompleteTelegramConnectData, CompleteTelegramConnectError, CompleteTelegramConnectResponse, GetFacebookPagesData, GetFacebookPagesError, GetFacebookPagesResponse, UpdateFacebookPageData, UpdateFacebookPageError, UpdateFacebookPageResponse, GetLinkedInOrganizationsData, GetLinkedInOrganizationsError, GetLinkedInOrganizationsResponse, GetLinkedInAggregateAnalyticsData, GetLinkedInAggregateAnalyticsError, GetLinkedInAggregateAnalyticsResponse, GetLinkedInPostAnalyticsData, GetLinkedInPostAnalyticsError, GetLinkedInPostAnalyticsResponse, GetLinkedInPostReactionsData, GetLinkedInPostReactionsError, GetLinkedInPostReactionsResponse, UpdateLinkedInOrganizationData, UpdateLinkedInOrganizationError, UpdateLinkedInOrganizationResponse, GetLinkedInMentionsData, GetLinkedInMentionsError, GetLinkedInMentionsResponse, GetPinterestBoardsData, GetPinterestBoardsError, GetPinterestBoardsResponse, UpdatePinterestBoardsData, UpdatePinterestBoardsError, UpdatePinterestBoardsResponse, GetYoutubePlaylistsData, GetYoutubePlaylistsError, GetYoutubePlaylistsResponse, UpdateYoutubeDefaultPlaylistData, UpdateYoutubeDefaultPlaylistError, UpdateYoutubeDefaultPlaylistResponse, GetGmbLocationsData, GetGmbLocationsError, GetGmbLocationsResponse, UpdateGmbLocationData, UpdateGmbLocationError, UpdateGmbLocationResponse, GetRedditSubredditsData, GetRedditSubredditsError, GetRedditSubredditsResponse, UpdateRedditSubredditsData, UpdateRedditSubredditsError, UpdateRedditSubredditsResponse, GetRedditFlairsData, GetRedditFlairsError, GetRedditFlairsResponse, ListQueueSlotsData, ListQueueSlotsError, ListQueueSlotsResponse, CreateQueueSlotData, CreateQueueSlotError, CreateQueueSlotResponse, UpdateQueueSlotData, UpdateQueueSlotError, UpdateQueueSlotResponse, DeleteQueueSlotData, DeleteQueueSlotError, DeleteQueueSlotResponse, PreviewQueueData, PreviewQueueError, PreviewQueueResponse, GetNextQueueSlotData, GetNextQueueSlotError, GetNextQueueSlotResponse, GetWebhookSettingsError, GetWebhookSettingsResponse, CreateWebhookSettingsData, CreateWebhookSettingsError, CreateWebhookSettingsResponse, UpdateWebhookSettingsData, UpdateWebhookSettingsError, UpdateWebhookSettingsResponse, DeleteWebhookSettingsData, DeleteWebhookSettingsError, DeleteWebhookSettingsResponse, TestWebhookData, TestWebhookError, TestWebhookResponse, ListLogsData, ListLogsError, ListLogsResponse, GetPostLogsData, GetPostLogsError, GetPostLogsResponse, ListInboxConversationsData, ListInboxConversationsError, ListInboxConversationsResponse, CreateInboxConversationData, CreateInboxConversationError, CreateInboxConversationResponse, GetInboxConversationData, GetInboxConversationError, GetInboxConversationResponse, UpdateInboxConversationData, UpdateInboxConversationError, UpdateInboxConversationResponse, GetInboxConversationMessagesData, GetInboxConversationMessagesError, GetInboxConversationMessagesResponse, SendInboxMessageData, SendInboxMessageError, SendInboxMessageResponse, EditInboxMessageData, EditInboxMessageError, EditInboxMessageResponse, DeleteInboxMessageData, DeleteInboxMessageError, DeleteInboxMessageResponse, SendTypingIndicatorData, SendTypingIndicatorError, SendTypingIndicatorResponse, AddMessageReactionData, AddMessageReactionError, AddMessageReactionResponse, RemoveMessageReactionData, RemoveMessageReactionError, RemoveMessageReactionResponse, UploadMediaDirectData, UploadMediaDirectError, UploadMediaDirectResponse, GetMessengerMenuData, GetMessengerMenuError, GetMessengerMenuResponse, SetMessengerMenuData, SetMessengerMenuError, SetMessengerMenuResponse, DeleteMessengerMenuData, DeleteMessengerMenuError, DeleteMessengerMenuResponse, GetInstagramIceBreakersData, GetInstagramIceBreakersError, GetInstagramIceBreakersResponse, SetInstagramIceBreakersData, SetInstagramIceBreakersError, SetInstagramIceBreakersResponse, DeleteInstagramIceBreakersData, DeleteInstagramIceBreakersError, DeleteInstagramIceBreakersResponse, GetTelegramCommandsData, GetTelegramCommandsError, GetTelegramCommandsResponse, SetTelegramCommandsData, SetTelegramCommandsError, SetTelegramCommandsResponse, DeleteTelegramCommandsData, DeleteTelegramCommandsError, DeleteTelegramCommandsResponse, ListInboxCommentsData, ListInboxCommentsError, ListInboxCommentsResponse, GetInboxPostCommentsData, GetInboxPostCommentsError, GetInboxPostCommentsResponse, ReplyToInboxPostData, ReplyToInboxPostError, ReplyToInboxPostResponse, DeleteInboxCommentData, DeleteInboxCommentError, DeleteInboxCommentResponse, HideInboxCommentData, HideInboxCommentError, HideInboxCommentResponse, UnhideInboxCommentData, UnhideInboxCommentError, UnhideInboxCommentResponse, LikeInboxCommentData, LikeInboxCommentError, LikeInboxCommentResponse, UnlikeInboxCommentData, UnlikeInboxCommentError, UnlikeInboxCommentResponse, SendPrivateReplyToCommentData, SendPrivateReplyToCommentError, SendPrivateReplyToCommentResponse, RetweetPostData, RetweetPostError, RetweetPostResponse, UndoRetweetData, UndoRetweetError, UndoRetweetResponse, BookmarkPostData, BookmarkPostError, BookmarkPostResponse, RemoveBookmarkData, RemoveBookmarkError, RemoveBookmarkResponse, FollowUserData, FollowUserError, FollowUserResponse, UnfollowUserData, UnfollowUserError, UnfollowUserResponse, ListInboxReviewsData, ListInboxReviewsError, ListInboxReviewsResponse, ReplyToInboxReviewData, ReplyToInboxReviewError, ReplyToInboxReviewResponse, DeleteInboxReviewReplyData, DeleteInboxReviewReplyError, DeleteInboxReviewReplyResponse, GetWhatsAppTemplatesData, GetWhatsAppTemplatesError, GetWhatsAppTemplatesResponse, CreateWhatsAppTemplateData, CreateWhatsAppTemplateError, CreateWhatsAppTemplateResponse, GetWhatsAppTemplateData, GetWhatsAppTemplateError, GetWhatsAppTemplateResponse, UpdateWhatsAppTemplateData, UpdateWhatsAppTemplateError, UpdateWhatsAppTemplateResponse, DeleteWhatsAppTemplateData, DeleteWhatsAppTemplateError, DeleteWhatsAppTemplateResponse, GetWhatsAppBusinessProfileData, GetWhatsAppBusinessProfileError, GetWhatsAppBusinessProfileResponse, UpdateWhatsAppBusinessProfileData, UpdateWhatsAppBusinessProfileError, UpdateWhatsAppBusinessProfileResponse, UploadWhatsAppProfilePhotoData, UploadWhatsAppProfilePhotoError, UploadWhatsAppProfilePhotoResponse, GetWhatsAppDisplayNameData, GetWhatsAppDisplayNameError, GetWhatsAppDisplayNameResponse, UpdateWhatsAppDisplayNameData, UpdateWhatsAppDisplayNameError, UpdateWhatsAppDisplayNameResponse, GetWhatsAppPhoneNumbersData, GetWhatsAppPhoneNumbersError, GetWhatsAppPhoneNumbersResponse, PurchaseWhatsAppPhoneNumberData, PurchaseWhatsAppPhoneNumberError, PurchaseWhatsAppPhoneNumberResponse, GetWhatsAppPhoneNumberData, GetWhatsAppPhoneNumberError, GetWhatsAppPhoneNumberResponse, ReleaseWhatsAppPhoneNumberData, ReleaseWhatsAppPhoneNumberError, ReleaseWhatsAppPhoneNumberResponse, ListWhatsAppGroupChatsData, ListWhatsAppGroupChatsError, ListWhatsAppGroupChatsResponse, CreateWhatsAppGroupChatData, CreateWhatsAppGroupChatError, CreateWhatsAppGroupChatResponse, GetWhatsAppGroupChatData, GetWhatsAppGroupChatError, GetWhatsAppGroupChatResponse, UpdateWhatsAppGroupChatData, UpdateWhatsAppGroupChatError, UpdateWhatsAppGroupChatResponse, DeleteWhatsAppGroupChatData, DeleteWhatsAppGroupChatError, DeleteWhatsAppGroupChatResponse, AddWhatsAppGroupParticipantsData, AddWhatsAppGroupParticipantsError, AddWhatsAppGroupParticipantsResponse, RemoveWhatsAppGroupParticipantsData, RemoveWhatsAppGroupParticipantsError, RemoveWhatsAppGroupParticipantsResponse, CreateWhatsAppGroupInviteLinkData, CreateWhatsAppGroupInviteLinkError, CreateWhatsAppGroupInviteLinkResponse, ListWhatsAppGroupJoinRequestsData, ListWhatsAppGroupJoinRequestsError, ListWhatsAppGroupJoinRequestsResponse, ApproveWhatsAppGroupJoinRequestsData, ApproveWhatsAppGroupJoinRequestsError, ApproveWhatsAppGroupJoinRequestsResponse, RejectWhatsAppGroupJoinRequestsData, RejectWhatsAppGroupJoinRequestsError, RejectWhatsAppGroupJoinRequestsResponse, ListWhatsAppFlowsData, ListWhatsAppFlowsError, ListWhatsAppFlowsResponse, CreateWhatsAppFlowData, CreateWhatsAppFlowError, CreateWhatsAppFlowResponse, GetWhatsAppFlowData, GetWhatsAppFlowError, GetWhatsAppFlowResponse, UpdateWhatsAppFlowData, UpdateWhatsAppFlowError, UpdateWhatsAppFlowResponse, DeleteWhatsAppFlowData, DeleteWhatsAppFlowError, DeleteWhatsAppFlowResponse, GetWhatsAppFlowJsonData, GetWhatsAppFlowJsonError, GetWhatsAppFlowJsonResponse, UploadWhatsAppFlowJsonData, UploadWhatsAppFlowJsonError, UploadWhatsAppFlowJsonResponse, PublishWhatsAppFlowData, PublishWhatsAppFlowError, PublishWhatsAppFlowResponse, DeprecateWhatsAppFlowData, DeprecateWhatsAppFlowError, DeprecateWhatsAppFlowResponse, SendWhatsAppFlowMessageData, SendWhatsAppFlowMessageError, SendWhatsAppFlowMessageResponse, ListContactsData, ListContactsError, ListContactsResponse, CreateContactData, CreateContactError, CreateContactResponse, GetContactData, GetContactError, GetContactResponse, UpdateContactData, UpdateContactError, UpdateContactResponse, DeleteContactData, DeleteContactError, DeleteContactResponse, GetContactChannelsData, GetContactChannelsError, GetContactChannelsResponse, BulkCreateContactsData, BulkCreateContactsError, BulkCreateContactsResponse, SetContactFieldValueData, SetContactFieldValueError, SetContactFieldValueResponse, ClearContactFieldValueData, ClearContactFieldValueError, ClearContactFieldValueResponse, ListCustomFieldsData, ListCustomFieldsError, ListCustomFieldsResponse, CreateCustomFieldData, CreateCustomFieldError, CreateCustomFieldResponse, UpdateCustomFieldData, UpdateCustomFieldError, UpdateCustomFieldResponse, DeleteCustomFieldData, DeleteCustomFieldError, DeleteCustomFieldResponse, ListBroadcastsData, ListBroadcastsError, ListBroadcastsResponse, CreateBroadcastData, CreateBroadcastError, CreateBroadcastResponse, GetBroadcastData, GetBroadcastError, GetBroadcastResponse, UpdateBroadcastData, UpdateBroadcastError, UpdateBroadcastResponse, DeleteBroadcastData, DeleteBroadcastError, DeleteBroadcastResponse, SendBroadcastData, SendBroadcastError, SendBroadcastResponse, ScheduleBroadcastData, ScheduleBroadcastError, ScheduleBroadcastResponse, CancelBroadcastData, CancelBroadcastError, CancelBroadcastResponse, ListBroadcastRecipientsData, ListBroadcastRecipientsError, ListBroadcastRecipientsResponse, AddBroadcastRecipientsData, AddBroadcastRecipientsError, AddBroadcastRecipientsResponse, ListSequencesData, ListSequencesError, ListSequencesResponse, CreateSequenceData, CreateSequenceError, CreateSequenceResponse, GetSequenceData, GetSequenceError, GetSequenceResponse, UpdateSequenceData, UpdateSequenceError, UpdateSequenceResponse, DeleteSequenceData, DeleteSequenceError, DeleteSequenceResponse, ActivateSequenceData, ActivateSequenceError, ActivateSequenceResponse, PauseSequenceData, PauseSequenceError, PauseSequenceResponse, EnrollContactsData, EnrollContactsError, EnrollContactsResponse, UnenrollContactData, UnenrollContactError, UnenrollContactResponse, ListSequenceEnrollmentsData, ListSequenceEnrollmentsError, ListSequenceEnrollmentsResponse, ListCommentAutomationsData, ListCommentAutomationsError, ListCommentAutomationsResponse, CreateCommentAutomationData, CreateCommentAutomationError, CreateCommentAutomationResponse, GetCommentAutomationData, GetCommentAutomationError, GetCommentAutomationResponse, UpdateCommentAutomationData, UpdateCommentAutomationError, UpdateCommentAutomationResponse, DeleteCommentAutomationData, DeleteCommentAutomationError, DeleteCommentAutomationResponse, ListCommentAutomationLogsData, ListCommentAutomationLogsError, ListCommentAutomationLogsResponse, ListAdsData, ListAdsError, ListAdsResponse, ListAdCampaignsData, ListAdCampaignsError, ListAdCampaignsResponse, UpdateAdCampaignStatusData, UpdateAdCampaignStatusError, UpdateAdCampaignStatusResponse, GetAdTreeData, GetAdTreeError, GetAdTreeResponse, GetAdData, GetAdError, GetAdResponse, UpdateAdData, UpdateAdError, UpdateAdResponse, DeleteAdData, DeleteAdError, DeleteAdResponse, GetAdAnalyticsData, GetAdAnalyticsError, GetAdAnalyticsResponse, ListAdAccountsData, ListAdAccountsError, ListAdAccountsResponse, BoostPostData, BoostPostError, BoostPostResponse, CreateStandaloneAdData, CreateStandaloneAdError, CreateStandaloneAdResponse, SearchAdInterestsData, SearchAdInterestsError, SearchAdInterestsResponse, ListAdAudiencesData, ListAdAudiencesError, ListAdAudiencesResponse, CreateAdAudienceData, CreateAdAudienceError, CreateAdAudienceResponse, GetAdAudienceData, GetAdAudienceError, GetAdAudienceResponse, DeleteAdAudienceData, DeleteAdAudienceError, DeleteAdAudienceResponse, AddUsersToAdAudienceData, AddUsersToAdAudienceError, AddUsersToAdAudienceResponse } from './types.gen';
|
|
4
|
+
import type { ValidatePostLengthData, ValidatePostLengthError, ValidatePostLengthResponse, ValidatePostData, ValidatePostError, ValidatePostResponse, ValidateMediaData, ValidateMediaError, ValidateMediaResponse, ValidateSubredditData, ValidateSubredditError, ValidateSubredditResponse, GetAnalyticsData, GetAnalyticsError, GetAnalyticsResponse, GetYouTubeDailyViewsData, GetYouTubeDailyViewsError, GetYouTubeDailyViewsResponse, GetInstagramAccountInsightsData, GetInstagramAccountInsightsError, GetInstagramAccountInsightsResponse, GetInstagramDemographicsData, GetInstagramDemographicsError, GetInstagramDemographicsResponse, GetYouTubeDemographicsData, GetYouTubeDemographicsError, GetYouTubeDemographicsResponse, GetDailyMetricsData, GetDailyMetricsError, GetDailyMetricsResponse, GetBestTimeToPostData, GetBestTimeToPostError, GetBestTimeToPostResponse, GetContentDecayData, GetContentDecayError, GetContentDecayResponse, GetPostingFrequencyData, GetPostingFrequencyError, GetPostingFrequencyResponse, GetPostTimelineData, GetPostTimelineError, GetPostTimelineResponse, GetGoogleBusinessPerformanceData, GetGoogleBusinessPerformanceError, GetGoogleBusinessPerformanceResponse, GetGoogleBusinessSearchKeywordsData, GetGoogleBusinessSearchKeywordsError, GetGoogleBusinessSearchKeywordsResponse, ListAccountGroupsError, ListAccountGroupsResponse, CreateAccountGroupData, CreateAccountGroupError, CreateAccountGroupResponse, UpdateAccountGroupData, UpdateAccountGroupError, UpdateAccountGroupResponse, DeleteAccountGroupData, DeleteAccountGroupError, DeleteAccountGroupResponse, GetMediaPresignedUrlData, GetMediaPresignedUrlError, GetMediaPresignedUrlResponse, SearchRedditData, SearchRedditError, SearchRedditResponse, GetRedditFeedData, GetRedditFeedError, GetRedditFeedResponse, GetUsageStatsError, GetUsageStatsResponse, ListPostsData, ListPostsError, ListPostsResponse, CreatePostData, CreatePostError, CreatePostResponse, GetPostData, GetPostError, GetPostResponse, UpdatePostData, UpdatePostError, UpdatePostResponse, DeletePostData, DeletePostError, DeletePostResponse, BulkUploadPostsData, BulkUploadPostsError, BulkUploadPostsResponse, RetryPostData, RetryPostError, RetryPostResponse, UnpublishPostData, UnpublishPostError, UnpublishPostResponse, EditPostData, EditPostError, EditPostResponse, UpdatePostMetadataData, UpdatePostMetadataError, UpdatePostMetadataResponse, ListUsersError, ListUsersResponse, GetUserData, GetUserError, GetUserResponse, ListProfilesData, ListProfilesError, ListProfilesResponse, CreateProfileData, CreateProfileError, CreateProfileResponse, GetProfileData, GetProfileError, GetProfileResponse, UpdateProfileData, UpdateProfileError, UpdateProfileResponse, DeleteProfileData, DeleteProfileError, DeleteProfileResponse, ListAccountsData, ListAccountsError, ListAccountsResponse, GetFollowerStatsData, GetFollowerStatsError, GetFollowerStatsResponse, UpdateAccountData, UpdateAccountError, UpdateAccountResponse, DeleteAccountData, DeleteAccountError, DeleteAccountResponse, GetAllAccountsHealthData, GetAllAccountsHealthError, GetAllAccountsHealthResponse, GetAccountHealthData, GetAccountHealthError, GetAccountHealthResponse, GetTikTokCreatorInfoData, GetTikTokCreatorInfoError, GetTikTokCreatorInfoResponse, ListApiKeysError, ListApiKeysResponse, CreateApiKeyData, CreateApiKeyError, CreateApiKeyResponse, DeleteApiKeyData, DeleteApiKeyError, DeleteApiKeyResponse, CreateInviteTokenData, CreateInviteTokenError, CreateInviteTokenResponse, GetConnectUrlData, GetConnectUrlError, GetConnectUrlResponse, HandleOAuthCallbackData, HandleOAuthCallbackError, HandleOAuthCallbackResponse, ConnectAdsData, ConnectAdsError, ConnectAdsResponse, ListFacebookPagesData, ListFacebookPagesError, ListFacebookPagesResponse, SelectFacebookPageData, SelectFacebookPageError, SelectFacebookPageResponse, ListGoogleBusinessLocationsData, ListGoogleBusinessLocationsError, ListGoogleBusinessLocationsResponse, SelectGoogleBusinessLocationData, SelectGoogleBusinessLocationError, SelectGoogleBusinessLocationResponse, GetGoogleBusinessReviewsData, GetGoogleBusinessReviewsError, GetGoogleBusinessReviewsResponse, GetGoogleBusinessFoodMenusData, GetGoogleBusinessFoodMenusError, GetGoogleBusinessFoodMenusResponse, UpdateGoogleBusinessFoodMenusData, UpdateGoogleBusinessFoodMenusError, UpdateGoogleBusinessFoodMenusResponse, GetGoogleBusinessLocationDetailsData, GetGoogleBusinessLocationDetailsError, GetGoogleBusinessLocationDetailsResponse, UpdateGoogleBusinessLocationDetailsData, UpdateGoogleBusinessLocationDetailsError, UpdateGoogleBusinessLocationDetailsResponse, ListGoogleBusinessMediaData, ListGoogleBusinessMediaError, ListGoogleBusinessMediaResponse, CreateGoogleBusinessMediaData, CreateGoogleBusinessMediaError, CreateGoogleBusinessMediaResponse, DeleteGoogleBusinessMediaData, DeleteGoogleBusinessMediaError, DeleteGoogleBusinessMediaResponse, GetGoogleBusinessAttributesData, GetGoogleBusinessAttributesError, GetGoogleBusinessAttributesResponse, UpdateGoogleBusinessAttributesData, UpdateGoogleBusinessAttributesError, UpdateGoogleBusinessAttributesResponse, ListGoogleBusinessPlaceActionsData, ListGoogleBusinessPlaceActionsError, ListGoogleBusinessPlaceActionsResponse, CreateGoogleBusinessPlaceActionData, CreateGoogleBusinessPlaceActionError, CreateGoogleBusinessPlaceActionResponse, DeleteGoogleBusinessPlaceActionData, DeleteGoogleBusinessPlaceActionError, DeleteGoogleBusinessPlaceActionResponse, GetPendingOAuthDataData, GetPendingOAuthDataError, GetPendingOAuthDataResponse, ListLinkedInOrganizationsData, ListLinkedInOrganizationsError, ListLinkedInOrganizationsResponse, SelectLinkedInOrganizationData, SelectLinkedInOrganizationError, SelectLinkedInOrganizationResponse, ListPinterestBoardsForSelectionData, ListPinterestBoardsForSelectionError, ListPinterestBoardsForSelectionResponse, SelectPinterestBoardData, SelectPinterestBoardError, SelectPinterestBoardResponse, ListSnapchatProfilesData, ListSnapchatProfilesError, ListSnapchatProfilesResponse, SelectSnapchatProfileData, SelectSnapchatProfileError, SelectSnapchatProfileResponse, ConnectBlueskyCredentialsData, ConnectBlueskyCredentialsError, ConnectBlueskyCredentialsResponse, ConnectWhatsAppCredentialsData, ConnectWhatsAppCredentialsError, ConnectWhatsAppCredentialsResponse, GetTelegramConnectStatusData, GetTelegramConnectStatusError, GetTelegramConnectStatusResponse, InitiateTelegramConnectData, InitiateTelegramConnectError, InitiateTelegramConnectResponse, CompleteTelegramConnectData, CompleteTelegramConnectError, CompleteTelegramConnectResponse, GetFacebookPagesData, GetFacebookPagesError, GetFacebookPagesResponse, UpdateFacebookPageData, UpdateFacebookPageError, UpdateFacebookPageResponse, GetLinkedInOrganizationsData, GetLinkedInOrganizationsError, GetLinkedInOrganizationsResponse, GetLinkedInAggregateAnalyticsData, GetLinkedInAggregateAnalyticsError, GetLinkedInAggregateAnalyticsResponse, GetLinkedInPostAnalyticsData, GetLinkedInPostAnalyticsError, GetLinkedInPostAnalyticsResponse, GetLinkedInPostReactionsData, GetLinkedInPostReactionsError, GetLinkedInPostReactionsResponse, UpdateLinkedInOrganizationData, UpdateLinkedInOrganizationError, UpdateLinkedInOrganizationResponse, GetLinkedInMentionsData, GetLinkedInMentionsError, GetLinkedInMentionsResponse, GetPinterestBoardsData, GetPinterestBoardsError, GetPinterestBoardsResponse, UpdatePinterestBoardsData, UpdatePinterestBoardsError, UpdatePinterestBoardsResponse, GetYoutubePlaylistsData, GetYoutubePlaylistsError, GetYoutubePlaylistsResponse, UpdateYoutubeDefaultPlaylistData, UpdateYoutubeDefaultPlaylistError, UpdateYoutubeDefaultPlaylistResponse, GetGmbLocationsData, GetGmbLocationsError, GetGmbLocationsResponse, UpdateGmbLocationData, UpdateGmbLocationError, UpdateGmbLocationResponse, GetRedditSubredditsData, GetRedditSubredditsError, GetRedditSubredditsResponse, UpdateRedditSubredditsData, UpdateRedditSubredditsError, UpdateRedditSubredditsResponse, GetRedditFlairsData, GetRedditFlairsError, GetRedditFlairsResponse, ListQueueSlotsData, ListQueueSlotsError, ListQueueSlotsResponse, CreateQueueSlotData, CreateQueueSlotError, CreateQueueSlotResponse, UpdateQueueSlotData, UpdateQueueSlotError, UpdateQueueSlotResponse, DeleteQueueSlotData, DeleteQueueSlotError, DeleteQueueSlotResponse, PreviewQueueData, PreviewQueueError, PreviewQueueResponse, GetNextQueueSlotData, GetNextQueueSlotError, GetNextQueueSlotResponse, GetWebhookSettingsError, GetWebhookSettingsResponse, CreateWebhookSettingsData, CreateWebhookSettingsError, CreateWebhookSettingsResponse, UpdateWebhookSettingsData, UpdateWebhookSettingsError, UpdateWebhookSettingsResponse, DeleteWebhookSettingsData, DeleteWebhookSettingsError, DeleteWebhookSettingsResponse, TestWebhookData, TestWebhookError, TestWebhookResponse, ListLogsData, ListLogsError, ListLogsResponse, ListInboxConversationsData, ListInboxConversationsError, ListInboxConversationsResponse, CreateInboxConversationData, CreateInboxConversationError, CreateInboxConversationResponse, GetInboxConversationData, GetInboxConversationError, GetInboxConversationResponse, UpdateInboxConversationData, UpdateInboxConversationError, UpdateInboxConversationResponse, GetInboxConversationMessagesData, GetInboxConversationMessagesError, GetInboxConversationMessagesResponse, SendInboxMessageData, SendInboxMessageError, SendInboxMessageResponse, EditInboxMessageData, EditInboxMessageError, EditInboxMessageResponse, DeleteInboxMessageData, DeleteInboxMessageError, DeleteInboxMessageResponse, SendTypingIndicatorData, SendTypingIndicatorError, SendTypingIndicatorResponse, AddMessageReactionData, AddMessageReactionError, AddMessageReactionResponse, RemoveMessageReactionData, RemoveMessageReactionError, RemoveMessageReactionResponse, UploadMediaDirectData, UploadMediaDirectError, UploadMediaDirectResponse, GetMessengerMenuData, GetMessengerMenuError, GetMessengerMenuResponse, SetMessengerMenuData, SetMessengerMenuError, SetMessengerMenuResponse, DeleteMessengerMenuData, DeleteMessengerMenuError, DeleteMessengerMenuResponse, GetInstagramIceBreakersData, GetInstagramIceBreakersError, GetInstagramIceBreakersResponse, SetInstagramIceBreakersData, SetInstagramIceBreakersError, SetInstagramIceBreakersResponse, DeleteInstagramIceBreakersData, DeleteInstagramIceBreakersError, DeleteInstagramIceBreakersResponse, GetTelegramCommandsData, GetTelegramCommandsError, GetTelegramCommandsResponse, SetTelegramCommandsData, SetTelegramCommandsError, SetTelegramCommandsResponse, DeleteTelegramCommandsData, DeleteTelegramCommandsError, DeleteTelegramCommandsResponse, ListInboxCommentsData, ListInboxCommentsError, ListInboxCommentsResponse, GetInboxPostCommentsData, GetInboxPostCommentsError, GetInboxPostCommentsResponse, ReplyToInboxPostData, ReplyToInboxPostError, ReplyToInboxPostResponse, DeleteInboxCommentData, DeleteInboxCommentError, DeleteInboxCommentResponse, HideInboxCommentData, HideInboxCommentError, HideInboxCommentResponse, UnhideInboxCommentData, UnhideInboxCommentError, UnhideInboxCommentResponse, LikeInboxCommentData, LikeInboxCommentError, LikeInboxCommentResponse, UnlikeInboxCommentData, UnlikeInboxCommentError, UnlikeInboxCommentResponse, SendPrivateReplyToCommentData, SendPrivateReplyToCommentError, SendPrivateReplyToCommentResponse, RetweetPostData, RetweetPostError, RetweetPostResponse, UndoRetweetData, UndoRetweetError, UndoRetweetResponse, BookmarkPostData, BookmarkPostError, BookmarkPostResponse, RemoveBookmarkData, RemoveBookmarkError, RemoveBookmarkResponse, FollowUserData, FollowUserError, FollowUserResponse, UnfollowUserData, UnfollowUserError, UnfollowUserResponse, ListInboxReviewsData, ListInboxReviewsError, ListInboxReviewsResponse, ReplyToInboxReviewData, ReplyToInboxReviewError, ReplyToInboxReviewResponse, DeleteInboxReviewReplyData, DeleteInboxReviewReplyError, DeleteInboxReviewReplyResponse, GetWhatsAppTemplatesData, GetWhatsAppTemplatesError, GetWhatsAppTemplatesResponse, CreateWhatsAppTemplateData, CreateWhatsAppTemplateError, CreateWhatsAppTemplateResponse, GetWhatsAppTemplateData, GetWhatsAppTemplateError, GetWhatsAppTemplateResponse, UpdateWhatsAppTemplateData, UpdateWhatsAppTemplateError, UpdateWhatsAppTemplateResponse, DeleteWhatsAppTemplateData, DeleteWhatsAppTemplateError, DeleteWhatsAppTemplateResponse, GetWhatsAppBusinessProfileData, GetWhatsAppBusinessProfileError, GetWhatsAppBusinessProfileResponse, UpdateWhatsAppBusinessProfileData, UpdateWhatsAppBusinessProfileError, UpdateWhatsAppBusinessProfileResponse, UploadWhatsAppProfilePhotoData, UploadWhatsAppProfilePhotoError, UploadWhatsAppProfilePhotoResponse, GetWhatsAppDisplayNameData, GetWhatsAppDisplayNameError, GetWhatsAppDisplayNameResponse, UpdateWhatsAppDisplayNameData, UpdateWhatsAppDisplayNameError, UpdateWhatsAppDisplayNameResponse, GetWhatsAppPhoneNumbersData, GetWhatsAppPhoneNumbersError, GetWhatsAppPhoneNumbersResponse, PurchaseWhatsAppPhoneNumberData, PurchaseWhatsAppPhoneNumberError, PurchaseWhatsAppPhoneNumberResponse, GetWhatsAppPhoneNumberData, GetWhatsAppPhoneNumberError, GetWhatsAppPhoneNumberResponse, ReleaseWhatsAppPhoneNumberData, ReleaseWhatsAppPhoneNumberError, ReleaseWhatsAppPhoneNumberResponse, ListWhatsAppGroupChatsData, ListWhatsAppGroupChatsError, ListWhatsAppGroupChatsResponse, CreateWhatsAppGroupChatData, CreateWhatsAppGroupChatError, CreateWhatsAppGroupChatResponse, GetWhatsAppGroupChatData, GetWhatsAppGroupChatError, GetWhatsAppGroupChatResponse, UpdateWhatsAppGroupChatData, UpdateWhatsAppGroupChatError, UpdateWhatsAppGroupChatResponse, DeleteWhatsAppGroupChatData, DeleteWhatsAppGroupChatError, DeleteWhatsAppGroupChatResponse, AddWhatsAppGroupParticipantsData, AddWhatsAppGroupParticipantsError, AddWhatsAppGroupParticipantsResponse, RemoveWhatsAppGroupParticipantsData, RemoveWhatsAppGroupParticipantsError, RemoveWhatsAppGroupParticipantsResponse, CreateWhatsAppGroupInviteLinkData, CreateWhatsAppGroupInviteLinkError, CreateWhatsAppGroupInviteLinkResponse, ListWhatsAppGroupJoinRequestsData, ListWhatsAppGroupJoinRequestsError, ListWhatsAppGroupJoinRequestsResponse, ApproveWhatsAppGroupJoinRequestsData, ApproveWhatsAppGroupJoinRequestsError, ApproveWhatsAppGroupJoinRequestsResponse, RejectWhatsAppGroupJoinRequestsData, RejectWhatsAppGroupJoinRequestsError, RejectWhatsAppGroupJoinRequestsResponse, ListWhatsAppFlowsData, ListWhatsAppFlowsError, ListWhatsAppFlowsResponse, CreateWhatsAppFlowData, CreateWhatsAppFlowError, CreateWhatsAppFlowResponse, GetWhatsAppFlowData, GetWhatsAppFlowError, GetWhatsAppFlowResponse, UpdateWhatsAppFlowData, UpdateWhatsAppFlowError, UpdateWhatsAppFlowResponse, DeleteWhatsAppFlowData, DeleteWhatsAppFlowError, DeleteWhatsAppFlowResponse, GetWhatsAppFlowJsonData, GetWhatsAppFlowJsonError, GetWhatsAppFlowJsonResponse, UploadWhatsAppFlowJsonData, UploadWhatsAppFlowJsonError, UploadWhatsAppFlowJsonResponse, PublishWhatsAppFlowData, PublishWhatsAppFlowError, PublishWhatsAppFlowResponse, DeprecateWhatsAppFlowData, DeprecateWhatsAppFlowError, DeprecateWhatsAppFlowResponse, SendWhatsAppFlowMessageData, SendWhatsAppFlowMessageError, SendWhatsAppFlowMessageResponse, ListContactsData, ListContactsError, ListContactsResponse, CreateContactData, CreateContactError, CreateContactResponse, GetContactData, GetContactError, GetContactResponse, UpdateContactData, UpdateContactError, UpdateContactResponse, DeleteContactData, DeleteContactError, DeleteContactResponse, GetContactChannelsData, GetContactChannelsError, GetContactChannelsResponse, BulkCreateContactsData, BulkCreateContactsError, BulkCreateContactsResponse, SetContactFieldValueData, SetContactFieldValueError, SetContactFieldValueResponse, ClearContactFieldValueData, ClearContactFieldValueError, ClearContactFieldValueResponse, ListCustomFieldsData, ListCustomFieldsError, ListCustomFieldsResponse, CreateCustomFieldData, CreateCustomFieldError, CreateCustomFieldResponse, UpdateCustomFieldData, UpdateCustomFieldError, UpdateCustomFieldResponse, DeleteCustomFieldData, DeleteCustomFieldError, DeleteCustomFieldResponse, ListBroadcastsData, ListBroadcastsError, ListBroadcastsResponse, CreateBroadcastData, CreateBroadcastError, CreateBroadcastResponse, GetBroadcastData, GetBroadcastError, GetBroadcastResponse, UpdateBroadcastData, UpdateBroadcastError, UpdateBroadcastResponse, DeleteBroadcastData, DeleteBroadcastError, DeleteBroadcastResponse, SendBroadcastData, SendBroadcastError, SendBroadcastResponse, ScheduleBroadcastData, ScheduleBroadcastError, ScheduleBroadcastResponse, CancelBroadcastData, CancelBroadcastError, CancelBroadcastResponse, ListBroadcastRecipientsData, ListBroadcastRecipientsError, ListBroadcastRecipientsResponse, AddBroadcastRecipientsData, AddBroadcastRecipientsError, AddBroadcastRecipientsResponse, ListSequencesData, ListSequencesError, ListSequencesResponse, CreateSequenceData, CreateSequenceError, CreateSequenceResponse, GetSequenceData, GetSequenceError, GetSequenceResponse, UpdateSequenceData, UpdateSequenceError, UpdateSequenceResponse, DeleteSequenceData, DeleteSequenceError, DeleteSequenceResponse, ActivateSequenceData, ActivateSequenceError, ActivateSequenceResponse, PauseSequenceData, PauseSequenceError, PauseSequenceResponse, EnrollContactsData, EnrollContactsError, EnrollContactsResponse, UnenrollContactData, UnenrollContactError, UnenrollContactResponse, ListSequenceEnrollmentsData, ListSequenceEnrollmentsError, ListSequenceEnrollmentsResponse, ListCommentAutomationsData, ListCommentAutomationsError, ListCommentAutomationsResponse, CreateCommentAutomationData, CreateCommentAutomationError, CreateCommentAutomationResponse, GetCommentAutomationData, GetCommentAutomationError, GetCommentAutomationResponse, UpdateCommentAutomationData, UpdateCommentAutomationError, UpdateCommentAutomationResponse, DeleteCommentAutomationData, DeleteCommentAutomationError, DeleteCommentAutomationResponse, ListCommentAutomationLogsData, ListCommentAutomationLogsError, ListCommentAutomationLogsResponse, ListAdsData, ListAdsError, ListAdsResponse, ListAdCampaignsData, ListAdCampaignsError, ListAdCampaignsResponse, UpdateAdCampaignStatusData, UpdateAdCampaignStatusError, UpdateAdCampaignStatusResponse, GetAdTreeData, GetAdTreeError, GetAdTreeResponse, GetAdData, GetAdError, GetAdResponse, UpdateAdData, UpdateAdError, UpdateAdResponse, DeleteAdData, DeleteAdError, DeleteAdResponse, GetAdAnalyticsData, GetAdAnalyticsError, GetAdAnalyticsResponse, ListAdAccountsData, ListAdAccountsError, ListAdAccountsResponse, BoostPostData, BoostPostError, BoostPostResponse, CreateStandaloneAdData, CreateStandaloneAdError, CreateStandaloneAdResponse, SearchAdInterestsData, SearchAdInterestsError, SearchAdInterestsResponse, ListAdAudiencesData, ListAdAudiencesError, ListAdAudiencesResponse, CreateAdAudienceData, CreateAdAudienceError, CreateAdAudienceResponse, GetAdAudienceData, GetAdAudienceError, GetAdAudienceResponse, DeleteAdAudienceData, DeleteAdAudienceError, DeleteAdAudienceResponse, AddUsersToAdAudienceData, AddUsersToAdAudienceError, AddUsersToAdAudienceResponse } from './types.gen';
|
|
5
5
|
|
|
6
6
|
export const client = createClient(createConfig());
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* Validate
|
|
9
|
+
* Validate character count
|
|
10
10
|
* Check weighted character count per platform and whether the text is within each platform's limit.
|
|
11
11
|
*
|
|
12
12
|
* Twitter/X uses weighted counting (URLs = 23 chars via t.co, emojis = 2 chars). All other platforms use plain character length.
|
|
@@ -97,7 +97,7 @@ export const getYouTubeDailyViews = <ThrowOnError extends boolean = false>(optio
|
|
|
97
97
|
};
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
|
-
* Get Instagram
|
|
100
|
+
* Get Instagram insights
|
|
101
101
|
* Returns account-level Instagram insights such as reach, views, accounts engaged, and total interactions.
|
|
102
102
|
* These metrics reflect the entire account's performance across all content surfaces (feed, stories, explore, profile),
|
|
103
103
|
* and are fundamentally different from post-level metrics. Data may be delayed up to 48 hours.
|
|
@@ -112,7 +112,7 @@ export const getInstagramAccountInsights = <ThrowOnError extends boolean = false
|
|
|
112
112
|
};
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
|
-
* Get Instagram
|
|
115
|
+
* Get Instagram demographics
|
|
116
116
|
* Returns audience demographic insights for an Instagram account, broken down by age, city, country, and/or gender.
|
|
117
117
|
* Requires at least 100 followers. Returns top 45 entries per dimension.
|
|
118
118
|
* Data may be delayed up to 48 hours. Requires the Analytics add-on.
|
|
@@ -126,7 +126,7 @@ export const getInstagramDemographics = <ThrowOnError extends boolean = false>(o
|
|
|
126
126
|
};
|
|
127
127
|
|
|
128
128
|
/**
|
|
129
|
-
* Get YouTube
|
|
129
|
+
* Get YouTube demographics
|
|
130
130
|
* Returns audience demographic insights for a YouTube channel, broken down by age, gender, and/or country.
|
|
131
131
|
* Age and gender values are viewer percentages (0-100). Country values are view counts.
|
|
132
132
|
* Data is based on signed-in viewers only, with a 2-3 day delay. Requires the Analytics add-on.
|
|
@@ -183,7 +183,7 @@ export const getContentDecay = <ThrowOnError extends boolean = false>(options?:
|
|
|
183
183
|
};
|
|
184
184
|
|
|
185
185
|
/**
|
|
186
|
-
* Get
|
|
186
|
+
* Get frequency vs engagement
|
|
187
187
|
* Returns the correlation between posting frequency (posts per week) and engagement rate, broken down by platform.
|
|
188
188
|
* Helps find the optimal posting cadence for each platform. Each row represents a specific (platform, posts_per_week) combination
|
|
189
189
|
* with the average engagement rate observed across all weeks matching that frequency.
|
|
@@ -212,7 +212,7 @@ export const getPostTimeline = <ThrowOnError extends boolean = false>(options: O
|
|
|
212
212
|
};
|
|
213
213
|
|
|
214
214
|
/**
|
|
215
|
-
* Get
|
|
215
|
+
* Get GBP performance metrics
|
|
216
216
|
* Returns daily performance metrics for a Google Business Profile location.
|
|
217
217
|
* Metrics include impressions (Maps/Search, desktop/mobile), website clicks,
|
|
218
218
|
* call clicks, direction requests, conversations, bookings, and food orders.
|
|
@@ -228,7 +228,7 @@ export const getGoogleBusinessPerformance = <ThrowOnError extends boolean = fals
|
|
|
228
228
|
};
|
|
229
229
|
|
|
230
230
|
/**
|
|
231
|
-
* Get
|
|
231
|
+
* Get GBP search keywords
|
|
232
232
|
* Returns search keywords that triggered impressions for a Google Business Profile location.
|
|
233
233
|
* Data is aggregated monthly. Keywords below a minimum impression threshold set by Google are excluded.
|
|
234
234
|
* Max 18 months of historical data. Requires the Analytics add-on.
|
|
@@ -286,7 +286,7 @@ export const deleteAccountGroup = <ThrowOnError extends boolean = false>(options
|
|
|
286
286
|
};
|
|
287
287
|
|
|
288
288
|
/**
|
|
289
|
-
* Get
|
|
289
|
+
* Get upload URL
|
|
290
290
|
* Get a presigned URL to upload files directly to cloud storage (up to 5GB). Returns an uploadUrl and publicUrl. PUT your file to the uploadUrl, then use the publicUrl in your posts.
|
|
291
291
|
*/
|
|
292
292
|
export const getMediaPresignedUrl = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetMediaPresignedUrlData, ThrowOnError>) => {
|
|
@@ -1427,19 +1427,6 @@ export const listLogs = <ThrowOnError extends boolean = false>(options?: Options
|
|
|
1427
1427
|
});
|
|
1428
1428
|
};
|
|
1429
1429
|
|
|
1430
|
-
/**
|
|
1431
|
-
* Get post logs
|
|
1432
|
-
* Retrieve all publishing logs for a specific post. Shows the complete history
|
|
1433
|
-
* of publishing attempts for that post across all platforms.
|
|
1434
|
-
*
|
|
1435
|
-
*/
|
|
1436
|
-
export const getPostLogs = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetPostLogsData, ThrowOnError>) => {
|
|
1437
|
-
return (options?.client ?? client).get<GetPostLogsResponse, GetPostLogsError, ThrowOnError>({
|
|
1438
|
-
...options,
|
|
1439
|
-
url: '/v1/posts/{postId}/logs'
|
|
1440
|
-
});
|
|
1441
|
-
};
|
|
1442
|
-
|
|
1443
1430
|
/**
|
|
1444
1431
|
* List conversations
|
|
1445
1432
|
* Fetch conversations (DMs) from all connected messaging accounts in a single API call. Supports filtering by profile and platform. Results are aggregated and deduplicated.
|
|
@@ -2058,7 +2045,7 @@ export const uploadWhatsAppProfilePhoto = <ThrowOnError extends boolean = false>
|
|
|
2058
2045
|
};
|
|
2059
2046
|
|
|
2060
2047
|
/**
|
|
2061
|
-
* Get display name
|
|
2048
|
+
* Get display name status
|
|
2062
2049
|
* Fetch the current display name and its Meta review status for a WhatsApp Business account.
|
|
2063
2050
|
* Display name changes require Meta approval and can take 1-3 business days.
|
|
2064
2051
|
*
|
|
@@ -2418,7 +2405,7 @@ export const listContacts = <ThrowOnError extends boolean = false>(options?: Opt
|
|
|
2418
2405
|
};
|
|
2419
2406
|
|
|
2420
2407
|
/**
|
|
2421
|
-
* Create
|
|
2408
|
+
* Create contact
|
|
2422
2409
|
* Create a new contact. Optionally create a platform channel in the same request by providing accountId, platform, and platformIdentifier.
|
|
2423
2410
|
*/
|
|
2424
2411
|
export const createContact = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateContactData, ThrowOnError>) => {
|
|
@@ -2429,7 +2416,7 @@ export const createContact = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
2429
2416
|
};
|
|
2430
2417
|
|
|
2431
2418
|
/**
|
|
2432
|
-
* Get contact
|
|
2419
|
+
* Get contact
|
|
2433
2420
|
*/
|
|
2434
2421
|
export const getContact = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetContactData, ThrowOnError>) => {
|
|
2435
2422
|
return (options?.client ?? client).get<GetContactResponse, GetContactError, ThrowOnError>({
|
|
@@ -2439,7 +2426,7 @@ export const getContact = <ThrowOnError extends boolean = false>(options: Option
|
|
|
2439
2426
|
};
|
|
2440
2427
|
|
|
2441
2428
|
/**
|
|
2442
|
-
* Update
|
|
2429
|
+
* Update contact
|
|
2443
2430
|
*/
|
|
2444
2431
|
export const updateContact = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateContactData, ThrowOnError>) => {
|
|
2445
2432
|
return (options?.client ?? client).patch<UpdateContactResponse, UpdateContactError, ThrowOnError>({
|
|
@@ -2449,7 +2436,7 @@ export const updateContact = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
2449
2436
|
};
|
|
2450
2437
|
|
|
2451
2438
|
/**
|
|
2452
|
-
* Delete
|
|
2439
|
+
* Delete contact
|
|
2453
2440
|
*/
|
|
2454
2441
|
export const deleteContact = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteContactData, ThrowOnError>) => {
|
|
2455
2442
|
return (options?.client ?? client).delete<DeleteContactResponse, DeleteContactError, ThrowOnError>({
|
|
@@ -2480,7 +2467,7 @@ export const bulkCreateContacts = <ThrowOnError extends boolean = false>(options
|
|
|
2480
2467
|
};
|
|
2481
2468
|
|
|
2482
2469
|
/**
|
|
2483
|
-
* Set
|
|
2470
|
+
* Set custom field value
|
|
2484
2471
|
*/
|
|
2485
2472
|
export const setContactFieldValue = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SetContactFieldValueData, ThrowOnError>) => {
|
|
2486
2473
|
return (options?.client ?? client).put<SetContactFieldValueResponse, SetContactFieldValueError, ThrowOnError>({
|
|
@@ -2490,7 +2477,7 @@ export const setContactFieldValue = <ThrowOnError extends boolean = false>(optio
|
|
|
2490
2477
|
};
|
|
2491
2478
|
|
|
2492
2479
|
/**
|
|
2493
|
-
* Clear
|
|
2480
|
+
* Clear custom field value
|
|
2494
2481
|
*/
|
|
2495
2482
|
export const clearContactFieldValue = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ClearContactFieldValueData, ThrowOnError>) => {
|
|
2496
2483
|
return (options?.client ?? client).delete<ClearContactFieldValueResponse, ClearContactFieldValueError, ThrowOnError>({
|
|
@@ -2510,7 +2497,7 @@ export const listCustomFields = <ThrowOnError extends boolean = false>(options?:
|
|
|
2510
2497
|
};
|
|
2511
2498
|
|
|
2512
2499
|
/**
|
|
2513
|
-
* Create
|
|
2500
|
+
* Create custom field
|
|
2514
2501
|
*/
|
|
2515
2502
|
export const createCustomField = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateCustomFieldData, ThrowOnError>) => {
|
|
2516
2503
|
return (options?.client ?? client).post<CreateCustomFieldResponse, CreateCustomFieldError, ThrowOnError>({
|
|
@@ -2520,7 +2507,7 @@ export const createCustomField = <ThrowOnError extends boolean = false>(options:
|
|
|
2520
2507
|
};
|
|
2521
2508
|
|
|
2522
2509
|
/**
|
|
2523
|
-
* Update
|
|
2510
|
+
* Update custom field
|
|
2524
2511
|
*/
|
|
2525
2512
|
export const updateCustomField = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateCustomFieldData, ThrowOnError>) => {
|
|
2526
2513
|
return (options?.client ?? client).patch<UpdateCustomFieldResponse, UpdateCustomFieldError, ThrowOnError>({
|
|
@@ -2530,7 +2517,7 @@ export const updateCustomField = <ThrowOnError extends boolean = false>(options:
|
|
|
2530
2517
|
};
|
|
2531
2518
|
|
|
2532
2519
|
/**
|
|
2533
|
-
* Delete
|
|
2520
|
+
* Delete custom field
|
|
2534
2521
|
*/
|
|
2535
2522
|
export const deleteCustomField = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteCustomFieldData, ThrowOnError>) => {
|
|
2536
2523
|
return (options?.client ?? client).delete<DeleteCustomFieldResponse, DeleteCustomFieldError, ThrowOnError>({
|
|
@@ -2550,7 +2537,7 @@ export const listBroadcasts = <ThrowOnError extends boolean = false>(options?: O
|
|
|
2550
2537
|
};
|
|
2551
2538
|
|
|
2552
2539
|
/**
|
|
2553
|
-
* Create
|
|
2540
|
+
* Create broadcast draft
|
|
2554
2541
|
*/
|
|
2555
2542
|
export const createBroadcast = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateBroadcastData, ThrowOnError>) => {
|
|
2556
2543
|
return (options?.client ?? client).post<CreateBroadcastResponse, CreateBroadcastError, ThrowOnError>({
|
|
@@ -2570,7 +2557,7 @@ export const getBroadcast = <ThrowOnError extends boolean = false>(options: Opti
|
|
|
2570
2557
|
};
|
|
2571
2558
|
|
|
2572
2559
|
/**
|
|
2573
|
-
* Update
|
|
2560
|
+
* Update broadcast
|
|
2574
2561
|
*/
|
|
2575
2562
|
export const updateBroadcast = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateBroadcastData, ThrowOnError>) => {
|
|
2576
2563
|
return (options?.client ?? client).patch<UpdateBroadcastResponse, UpdateBroadcastError, ThrowOnError>({
|
|
@@ -2580,7 +2567,7 @@ export const updateBroadcast = <ThrowOnError extends boolean = false>(options: O
|
|
|
2580
2567
|
};
|
|
2581
2568
|
|
|
2582
2569
|
/**
|
|
2583
|
-
* Delete
|
|
2570
|
+
* Delete broadcast
|
|
2584
2571
|
*/
|
|
2585
2572
|
export const deleteBroadcast = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteBroadcastData, ThrowOnError>) => {
|
|
2586
2573
|
return (options?.client ?? client).delete<DeleteBroadcastResponse, DeleteBroadcastError, ThrowOnError>({
|
|
@@ -2590,7 +2577,7 @@ export const deleteBroadcast = <ThrowOnError extends boolean = false>(options: O
|
|
|
2590
2577
|
};
|
|
2591
2578
|
|
|
2592
2579
|
/**
|
|
2593
|
-
*
|
|
2580
|
+
* Send broadcast now
|
|
2594
2581
|
*/
|
|
2595
2582
|
export const sendBroadcast = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SendBroadcastData, ThrowOnError>) => {
|
|
2596
2583
|
return (options?.client ?? client).post<SendBroadcastResponse, SendBroadcastError, ThrowOnError>({
|
|
@@ -2610,7 +2597,7 @@ export const scheduleBroadcast = <ThrowOnError extends boolean = false>(options:
|
|
|
2610
2597
|
};
|
|
2611
2598
|
|
|
2612
2599
|
/**
|
|
2613
|
-
* Cancel
|
|
2600
|
+
* Cancel broadcast
|
|
2614
2601
|
*/
|
|
2615
2602
|
export const cancelBroadcast = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CancelBroadcastData, ThrowOnError>) => {
|
|
2616
2603
|
return (options?.client ?? client).post<CancelBroadcastResponse, CancelBroadcastError, ThrowOnError>({
|
|
@@ -2650,7 +2637,7 @@ export const listSequences = <ThrowOnError extends boolean = false>(options?: Op
|
|
|
2650
2637
|
};
|
|
2651
2638
|
|
|
2652
2639
|
/**
|
|
2653
|
-
* Create
|
|
2640
|
+
* Create sequence
|
|
2654
2641
|
*/
|
|
2655
2642
|
export const createSequence = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateSequenceData, ThrowOnError>) => {
|
|
2656
2643
|
return (options?.client ?? client).post<CreateSequenceResponse, CreateSequenceError, ThrowOnError>({
|
|
@@ -2670,7 +2657,7 @@ export const getSequence = <ThrowOnError extends boolean = false>(options: Optio
|
|
|
2670
2657
|
};
|
|
2671
2658
|
|
|
2672
2659
|
/**
|
|
2673
|
-
* Update
|
|
2660
|
+
* Update sequence
|
|
2674
2661
|
*/
|
|
2675
2662
|
export const updateSequence = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateSequenceData, ThrowOnError>) => {
|
|
2676
2663
|
return (options?.client ?? client).patch<UpdateSequenceResponse, UpdateSequenceError, ThrowOnError>({
|
|
@@ -2680,7 +2667,7 @@ export const updateSequence = <ThrowOnError extends boolean = false>(options: Op
|
|
|
2680
2667
|
};
|
|
2681
2668
|
|
|
2682
2669
|
/**
|
|
2683
|
-
* Delete
|
|
2670
|
+
* Delete sequence
|
|
2684
2671
|
*/
|
|
2685
2672
|
export const deleteSequence = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteSequenceData, ThrowOnError>) => {
|
|
2686
2673
|
return (options?.client ?? client).delete<DeleteSequenceResponse, DeleteSequenceError, ThrowOnError>({
|
|
@@ -2690,7 +2677,7 @@ export const deleteSequence = <ThrowOnError extends boolean = false>(options: Op
|
|
|
2690
2677
|
};
|
|
2691
2678
|
|
|
2692
2679
|
/**
|
|
2693
|
-
* Activate
|
|
2680
|
+
* Activate sequence
|
|
2694
2681
|
*/
|
|
2695
2682
|
export const activateSequence = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ActivateSequenceData, ThrowOnError>) => {
|
|
2696
2683
|
return (options?.client ?? client).post<ActivateSequenceResponse, ActivateSequenceError, ThrowOnError>({
|
|
@@ -2700,7 +2687,7 @@ export const activateSequence = <ThrowOnError extends boolean = false>(options:
|
|
|
2700
2687
|
};
|
|
2701
2688
|
|
|
2702
2689
|
/**
|
|
2703
|
-
* Pause
|
|
2690
|
+
* Pause sequence
|
|
2704
2691
|
*/
|
|
2705
2692
|
export const pauseSequence = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PauseSequenceData, ThrowOnError>) => {
|
|
2706
2693
|
return (options?.client ?? client).post<PauseSequenceResponse, PauseSequenceError, ThrowOnError>({
|
|
@@ -2720,7 +2707,7 @@ export const enrollContacts = <ThrowOnError extends boolean = false>(options: Op
|
|
|
2720
2707
|
};
|
|
2721
2708
|
|
|
2722
2709
|
/**
|
|
2723
|
-
* Unenroll
|
|
2710
|
+
* Unenroll contact
|
|
2724
2711
|
*/
|
|
2725
2712
|
export const unenrollContact = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UnenrollContactData, ThrowOnError>) => {
|
|
2726
2713
|
return (options?.client ?? client).delete<UnenrollContactResponse, UnenrollContactError, ThrowOnError>({
|
|
@@ -2751,7 +2738,7 @@ export const listCommentAutomations = <ThrowOnError extends boolean = false>(opt
|
|
|
2751
2738
|
};
|
|
2752
2739
|
|
|
2753
2740
|
/**
|
|
2754
|
-
* Create
|
|
2741
|
+
* Create comment-to-DM automation
|
|
2755
2742
|
* Create a keyword-triggered DM automation on an Instagram or Facebook post.
|
|
2756
2743
|
* When someone comments a matching keyword, they automatically receive a DM.
|
|
2757
2744
|
* Only one active automation per post is allowed.
|
|
@@ -2765,7 +2752,7 @@ export const createCommentAutomation = <ThrowOnError extends boolean = false>(op
|
|
|
2765
2752
|
};
|
|
2766
2753
|
|
|
2767
2754
|
/**
|
|
2768
|
-
* Get automation details
|
|
2755
|
+
* Get automation details
|
|
2769
2756
|
*/
|
|
2770
2757
|
export const getCommentAutomation = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetCommentAutomationData, ThrowOnError>) => {
|
|
2771
2758
|
return (options?.client ?? client).get<GetCommentAutomationResponse, GetCommentAutomationError, ThrowOnError>({
|
|
@@ -2785,7 +2772,7 @@ export const updateCommentAutomation = <ThrowOnError extends boolean = false>(op
|
|
|
2785
2772
|
};
|
|
2786
2773
|
|
|
2787
2774
|
/**
|
|
2788
|
-
* Delete automation
|
|
2775
|
+
* Delete automation
|
|
2789
2776
|
*/
|
|
2790
2777
|
export const deleteCommentAutomation = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteCommentAutomationData, ThrowOnError>) => {
|
|
2791
2778
|
return (options?.client ?? client).delete<DeleteCommentAutomationResponse, DeleteCommentAutomationError, ThrowOnError>({
|
|
@@ -2795,7 +2782,7 @@ export const deleteCommentAutomation = <ThrowOnError extends boolean = false>(op
|
|
|
2795
2782
|
};
|
|
2796
2783
|
|
|
2797
2784
|
/**
|
|
2798
|
-
* List
|
|
2785
|
+
* List automation logs
|
|
2799
2786
|
* Paginated list of every comment that triggered this automation, with send status and commenter info.
|
|
2800
2787
|
*/
|
|
2801
2788
|
export const listCommentAutomationLogs = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListCommentAutomationLogsData, ThrowOnError>) => {
|
|
@@ -2820,7 +2807,7 @@ export const listAds = <ThrowOnError extends boolean = false>(options?: OptionsL
|
|
|
2820
2807
|
};
|
|
2821
2808
|
|
|
2822
2809
|
/**
|
|
2823
|
-
* List campaigns
|
|
2810
|
+
* List campaigns
|
|
2824
2811
|
* Returns campaigns as virtual aggregations over ad documents grouped by platform campaign ID.
|
|
2825
2812
|
* Metrics (spend, impressions, clicks, etc.) are summed across all ads in each campaign.
|
|
2826
2813
|
* Campaign status is derived from child ad statuses (active > pending_review > paused > error > completed > cancelled > rejected).
|
|
@@ -2847,7 +2834,7 @@ export const updateAdCampaignStatus = <ThrowOnError extends boolean = false>(opt
|
|
|
2847
2834
|
};
|
|
2848
2835
|
|
|
2849
2836
|
/**
|
|
2850
|
-
* Get
|
|
2837
|
+
* Get campaign tree
|
|
2851
2838
|
* Returns a nested Campaign > Ad Set > Ad hierarchy with rolled-up metrics at each level.
|
|
2852
2839
|
* Uses a two-stage aggregation: ads are grouped into ad sets, then ad sets into campaigns.
|
|
2853
2840
|
* Metrics are computed over an optional date range, then rolled up from ad level to ad set
|
|
@@ -2874,7 +2861,7 @@ export const getAd = <ThrowOnError extends boolean = false>(options: OptionsLega
|
|
|
2874
2861
|
};
|
|
2875
2862
|
|
|
2876
2863
|
/**
|
|
2877
|
-
* Update ad
|
|
2864
|
+
* Update ad
|
|
2878
2865
|
* Update one or more fields on an ad. Status changes and budget updates are propagated to the platform. Targeting updates are Meta-only.
|
|
2879
2866
|
*/
|
|
2880
2867
|
export const updateAd = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateAdData, ThrowOnError>) => {
|
|
@@ -2896,7 +2883,7 @@ export const deleteAd = <ThrowOnError extends boolean = false>(options: OptionsL
|
|
|
2896
2883
|
};
|
|
2897
2884
|
|
|
2898
2885
|
/**
|
|
2899
|
-
* Get ad analytics
|
|
2886
|
+
* Get ad analytics
|
|
2900
2887
|
* Returns detailed performance analytics for an ad. Includes summary metrics, a daily timeline
|
|
2901
2888
|
* over the requested date range, and optional demographic breakdowns (Meta and TikTok only).
|
|
2902
2889
|
* If no date range is provided, defaults to the last 90 days. Date range is capped at 90 days max.
|
|
@@ -2910,7 +2897,7 @@ export const getAdAnalytics = <ThrowOnError extends boolean = false>(options: Op
|
|
|
2910
2897
|
};
|
|
2911
2898
|
|
|
2912
2899
|
/**
|
|
2913
|
-
* List ad accounts
|
|
2900
|
+
* List ad accounts
|
|
2914
2901
|
* Returns the platform ad accounts available for the given social account (e.g. Meta ad accounts, TikTok advertiser IDs, Google Ads customer IDs).
|
|
2915
2902
|
*/
|
|
2916
2903
|
export const listAdAccounts = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListAdAccountsData, ThrowOnError>) => {
|
|
@@ -2921,7 +2908,7 @@ export const listAdAccounts = <ThrowOnError extends boolean = false>(options: Op
|
|
|
2921
2908
|
};
|
|
2922
2909
|
|
|
2923
2910
|
/**
|
|
2924
|
-
* Boost
|
|
2911
|
+
* Boost post as ad
|
|
2925
2912
|
* Creates a paid ad campaign from an existing published post. Creates the full platform campaign hierarchy (campaign, ad set, ad).
|
|
2926
2913
|
*/
|
|
2927
2914
|
export const boostPost = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<BoostPostData, ThrowOnError>) => {
|
|
@@ -2932,7 +2919,7 @@ export const boostPost = <ThrowOnError extends boolean = false>(options: Options
|
|
|
2932
2919
|
};
|
|
2933
2920
|
|
|
2934
2921
|
/**
|
|
2935
|
-
* Create
|
|
2922
|
+
* Create standalone ad
|
|
2936
2923
|
* Creates a paid ad with custom creative (headline, body, image/video, link). Creates the full platform campaign hierarchy.
|
|
2937
2924
|
*/
|
|
2938
2925
|
export const createStandaloneAd = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateStandaloneAdData, ThrowOnError>) => {
|
|
@@ -2965,7 +2952,7 @@ export const listAdAudiences = <ThrowOnError extends boolean = false>(options: O
|
|
|
2965
2952
|
};
|
|
2966
2953
|
|
|
2967
2954
|
/**
|
|
2968
|
-
* Create
|
|
2955
|
+
* Create custom audience
|
|
2969
2956
|
* Create a customer list, website retargeting, or lookalike audience on Meta (Facebook/Instagram).
|
|
2970
2957
|
*/
|
|
2971
2958
|
export const createAdAudience = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateAdAudienceData, ThrowOnError>) => {
|
|
@@ -2987,7 +2974,7 @@ export const getAdAudience = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
2987
2974
|
};
|
|
2988
2975
|
|
|
2989
2976
|
/**
|
|
2990
|
-
* Delete
|
|
2977
|
+
* Delete custom audience
|
|
2991
2978
|
* Deletes the audience from both Meta and the local database.
|
|
2992
2979
|
*/
|
|
2993
2980
|
export const deleteAdAudience = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteAdAudienceData, ThrowOnError>) => {
|
|
@@ -2998,7 +2985,7 @@ export const deleteAdAudience = <ThrowOnError extends boolean = false>(options:
|
|
|
2998
2985
|
};
|
|
2999
2986
|
|
|
3000
2987
|
/**
|
|
3001
|
-
* Add users to
|
|
2988
|
+
* Add users to audience
|
|
3002
2989
|
* Upload user data (emails and/or phone numbers) to a customer_list audience. Data is SHA256-hashed server-side before sending to Meta. Max 10,000 users per request.
|
|
3003
2990
|
*/
|
|
3004
2991
|
export const addUsersToAdAudience = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<AddUsersToAdAudienceData, ThrowOnError>) => {
|
|
@@ -13,7 +13,6 @@ export type AccountsListResponse = {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
export type AccountWithFollowerStats = SocialAccount & {
|
|
16
|
-
profilePicture?: string;
|
|
17
16
|
/**
|
|
18
17
|
* Current follower count
|
|
19
18
|
*/
|
|
@@ -1306,93 +1305,6 @@ export type PostGetResponse = {
|
|
|
1306
1305
|
post?: Post;
|
|
1307
1306
|
};
|
|
1308
1307
|
|
|
1309
|
-
/**
|
|
1310
|
-
* Publishing log entry showing details of a post publishing attempt
|
|
1311
|
-
*/
|
|
1312
|
-
export type PostLog = {
|
|
1313
|
-
_id?: string;
|
|
1314
|
-
postId?: (string | {
|
|
1315
|
-
_id?: string;
|
|
1316
|
-
content?: string;
|
|
1317
|
-
status?: string;
|
|
1318
|
-
});
|
|
1319
|
-
userId?: string;
|
|
1320
|
-
profileId?: string;
|
|
1321
|
-
platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord';
|
|
1322
|
-
accountId?: string;
|
|
1323
|
-
accountUsername?: string;
|
|
1324
|
-
/**
|
|
1325
|
-
* Type of action logged: publish (initial attempt), retry (after failure), media_upload, rate_limit_pause, token_refresh, cancelled
|
|
1326
|
-
*/
|
|
1327
|
-
action?: 'publish' | 'retry' | 'media_upload' | 'rate_limit_pause' | 'token_refresh' | 'cancelled';
|
|
1328
|
-
status?: 'success' | 'failed' | 'pending' | 'skipped';
|
|
1329
|
-
/**
|
|
1330
|
-
* HTTP status code from platform API
|
|
1331
|
-
*/
|
|
1332
|
-
statusCode?: number;
|
|
1333
|
-
/**
|
|
1334
|
-
* Platform API endpoint called
|
|
1335
|
-
*/
|
|
1336
|
-
endpoint?: string;
|
|
1337
|
-
request?: {
|
|
1338
|
-
/**
|
|
1339
|
-
* First 200 chars of caption
|
|
1340
|
-
*/
|
|
1341
|
-
contentPreview?: string;
|
|
1342
|
-
mediaCount?: number;
|
|
1343
|
-
mediaTypes?: Array<(string)>;
|
|
1344
|
-
/**
|
|
1345
|
-
* URLs of media items sent to platform
|
|
1346
|
-
*/
|
|
1347
|
-
mediaUrls?: Array<(string)>;
|
|
1348
|
-
scheduledFor?: string;
|
|
1349
|
-
/**
|
|
1350
|
-
* Full request body JSON (max 5000 chars)
|
|
1351
|
-
*/
|
|
1352
|
-
rawBody?: string;
|
|
1353
|
-
};
|
|
1354
|
-
response?: {
|
|
1355
|
-
/**
|
|
1356
|
-
* ID returned by platform on success
|
|
1357
|
-
*/
|
|
1358
|
-
platformPostId?: string;
|
|
1359
|
-
/**
|
|
1360
|
-
* URL of published post
|
|
1361
|
-
*/
|
|
1362
|
-
platformPostUrl?: string;
|
|
1363
|
-
/**
|
|
1364
|
-
* Error message on failure
|
|
1365
|
-
*/
|
|
1366
|
-
errorMessage?: string;
|
|
1367
|
-
/**
|
|
1368
|
-
* Platform-specific error code
|
|
1369
|
-
*/
|
|
1370
|
-
errorCode?: string;
|
|
1371
|
-
/**
|
|
1372
|
-
* Full response body JSON (max 5000 chars)
|
|
1373
|
-
*/
|
|
1374
|
-
rawBody?: string;
|
|
1375
|
-
};
|
|
1376
|
-
/**
|
|
1377
|
-
* How long the operation took in milliseconds
|
|
1378
|
-
*/
|
|
1379
|
-
durationMs?: number;
|
|
1380
|
-
/**
|
|
1381
|
-
* Attempt number (1 for first try, 2+ for retries)
|
|
1382
|
-
*/
|
|
1383
|
-
attemptNumber?: number;
|
|
1384
|
-
createdAt?: string;
|
|
1385
|
-
};
|
|
1386
|
-
|
|
1387
|
-
export type platform3 = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord';
|
|
1388
|
-
|
|
1389
|
-
/**
|
|
1390
|
-
* Type of action logged: publish (initial attempt), retry (after failure), media_upload, rate_limit_pause, token_refresh, cancelled
|
|
1391
|
-
*/
|
|
1392
|
-
export type action = 'publish' | 'retry' | 'media_upload' | 'rate_limit_pause' | 'token_refresh' | 'cancelled';
|
|
1393
|
-
|
|
1394
|
-
export type status6 = 'success' | 'failed' | 'pending' | 'skipped';
|
|
1395
|
-
|
|
1396
1308
|
export type PostRetryResponse = {
|
|
1397
1309
|
message?: string;
|
|
1398
1310
|
post?: Post;
|
|
@@ -1706,6 +1618,10 @@ export type SocialAccount = {
|
|
|
1706
1618
|
profileId?: (string | Profile);
|
|
1707
1619
|
username?: string;
|
|
1708
1620
|
displayName?: string;
|
|
1621
|
+
/**
|
|
1622
|
+
* URL to the account's profile picture on the platform. May be null if the platform does not provide one.
|
|
1623
|
+
*/
|
|
1624
|
+
profilePicture?: (string) | null;
|
|
1709
1625
|
/**
|
|
1710
1626
|
* Full profile URL for the connected account on its platform.
|
|
1711
1627
|
*/
|
|
@@ -1749,7 +1665,7 @@ export type SocialAccount = {
|
|
|
1749
1665
|
};
|
|
1750
1666
|
};
|
|
1751
1667
|
|
|
1752
|
-
export type
|
|
1668
|
+
export type platform3 = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'whatsapp' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads';
|
|
1753
1669
|
|
|
1754
1670
|
/**
|
|
1755
1671
|
* Text, images (up to 10), videos (up to 10), and mixed media albums. Captions up to 1024 chars for media, 4096 for text-only.
|
|
@@ -1958,7 +1874,7 @@ export type UploadTokenResponse = {
|
|
|
1958
1874
|
status?: 'pending' | 'completed' | 'expired';
|
|
1959
1875
|
};
|
|
1960
1876
|
|
|
1961
|
-
export type
|
|
1877
|
+
export type status6 = 'pending' | 'completed' | 'expired';
|
|
1962
1878
|
|
|
1963
1879
|
export type UploadTokenStatusResponse = {
|
|
1964
1880
|
token?: string;
|
|
@@ -2186,7 +2102,7 @@ export type WebhookPayloadComment = {
|
|
|
2186
2102
|
|
|
2187
2103
|
export type event3 = 'comment.received';
|
|
2188
2104
|
|
|
2189
|
-
export type
|
|
2105
|
+
export type platform4 = 'instagram' | 'facebook' | 'twitter' | 'youtube' | 'linkedin' | 'bluesky' | 'reddit';
|
|
2190
2106
|
|
|
2191
2107
|
/**
|
|
2192
2108
|
* Webhook payload for message received events
|
|
@@ -6975,34 +6891,6 @@ export type ListLogsError = ({
|
|
|
6975
6891
|
error?: string;
|
|
6976
6892
|
});
|
|
6977
6893
|
|
|
6978
|
-
export type GetPostLogsData = {
|
|
6979
|
-
path: {
|
|
6980
|
-
/**
|
|
6981
|
-
* The post ID
|
|
6982
|
-
*/
|
|
6983
|
-
postId: string;
|
|
6984
|
-
};
|
|
6985
|
-
query?: {
|
|
6986
|
-
/**
|
|
6987
|
-
* Maximum number of logs to return (max 100)
|
|
6988
|
-
*/
|
|
6989
|
-
limit?: number;
|
|
6990
|
-
};
|
|
6991
|
-
};
|
|
6992
|
-
|
|
6993
|
-
export type GetPostLogsResponse = ({
|
|
6994
|
-
logs?: Array<PostLog>;
|
|
6995
|
-
/**
|
|
6996
|
-
* Number of logs returned
|
|
6997
|
-
*/
|
|
6998
|
-
count?: number;
|
|
6999
|
-
postId?: string;
|
|
7000
|
-
});
|
|
7001
|
-
|
|
7002
|
-
export type GetPostLogsError = ({
|
|
7003
|
-
error?: string;
|
|
7004
|
-
} | unknown);
|
|
7005
|
-
|
|
7006
6894
|
export type ListInboxConversationsData = {
|
|
7007
6895
|
query?: {
|
|
7008
6896
|
/**
|