@getlatedev/node 0.2.0 → 0.2.5
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 +3 -0
- package/dist/index.d.mts +254 -2
- package/dist/index.d.ts +254 -2
- package/dist/index.js +21 -0
- package/dist/index.mjs +21 -0
- package/package.json +1 -1
- package/src/client.ts +6 -0
- package/src/generated/sdk.gen.ts +41 -1
- package/src/generated/types.gen.ts +264 -1
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 { DownloadYouTubeVideoData, DownloadYouTubeVideoError, DownloadYouTubeVideoResponse, GetYouTubeTranscriptData, GetYouTubeTranscriptError, GetYouTubeTranscriptResponse, DownloadInstagramMediaData, DownloadInstagramMediaError, DownloadInstagramMediaResponse, CheckInstagramHashtagsData, CheckInstagramHashtagsError, CheckInstagramHashtagsResponse, DownloadTikTokVideoData, DownloadTikTokVideoError, DownloadTikTokVideoResponse, DownloadTwitterMediaData, DownloadTwitterMediaError, DownloadTwitterMediaResponse, DownloadFacebookVideoData, DownloadFacebookVideoError, DownloadFacebookVideoResponse, DownloadLinkedInVideoData, DownloadLinkedInVideoError, DownloadLinkedInVideoResponse, DownloadBlueskyMediaData, DownloadBlueskyMediaError, DownloadBlueskyMediaResponse, ValidatePostLengthData, ValidatePostLengthError, ValidatePostLengthResponse, ValidatePostData, ValidatePostError, ValidatePostResponse, ValidateMediaData, ValidateMediaError, ValidateMediaResponse, ValidateSubredditData, ValidateSubredditError, ValidateSubredditResponse, GetAnalyticsData, GetAnalyticsError, GetAnalyticsResponse, GetYouTubeDailyViewsData, GetYouTubeDailyViewsError, GetYouTubeDailyViewsResponse, GetDailyMetricsData, GetDailyMetricsError, GetDailyMetricsResponse, GetBestTimeToPostData, GetBestTimeToPostError, GetBestTimeToPostResponse, GetContentDecayData, GetContentDecayError, GetContentDecayResponse, GetPostingFrequencyData, GetPostingFrequencyError, GetPostingFrequencyResponse, GetPostTimelineData, GetPostTimelineError, GetPostTimelineResponse, 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, 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, ListApiKeysError, ListApiKeysResponse, CreateApiKeyData, CreateApiKeyError, CreateApiKeyResponse, DeleteApiKeyData, DeleteApiKeyError, DeleteApiKeyResponse, CreateInviteTokenData, CreateInviteTokenError, CreateInviteTokenResponse, GetConnectUrlData, GetConnectUrlError, GetConnectUrlResponse, HandleOAuthCallbackData, HandleOAuthCallbackError, HandleOAuthCallbackResponse, 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, 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, GetWebhookLogsData, GetWebhookLogsError, GetWebhookLogsResponse, ListPostsLogsData, ListPostsLogsError, ListPostsLogsResponse, ListConnectionLogsData, ListConnectionLogsError, ListConnectionLogsResponse, GetPostLogsData, GetPostLogsError, GetPostLogsResponse, ListInboxConversationsData, ListInboxConversationsError, ListInboxConversationsResponse, GetInboxConversationData, GetInboxConversationError, GetInboxConversationResponse, UpdateInboxConversationData, UpdateInboxConversationError, UpdateInboxConversationResponse, GetInboxConversationMessagesData, GetInboxConversationMessagesError, GetInboxConversationMessagesResponse, SendInboxMessageData, SendInboxMessageError, SendInboxMessageResponse, EditInboxMessageData, EditInboxMessageError, EditInboxMessageResponse, 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, SendWhatsAppBulkData, SendWhatsAppBulkError, SendWhatsAppBulkResponse, GetWhatsAppContactsData, GetWhatsAppContactsError, GetWhatsAppContactsResponse, CreateWhatsAppContactData, CreateWhatsAppContactError, CreateWhatsAppContactResponse, GetWhatsAppContactData, GetWhatsAppContactError, GetWhatsAppContactResponse, UpdateWhatsAppContactData, UpdateWhatsAppContactError, UpdateWhatsAppContactResponse, DeleteWhatsAppContactData, DeleteWhatsAppContactError, DeleteWhatsAppContactResponse, ImportWhatsAppContactsData, ImportWhatsAppContactsError, ImportWhatsAppContactsResponse, BulkUpdateWhatsAppContactsData, BulkUpdateWhatsAppContactsError, BulkUpdateWhatsAppContactsResponse, BulkDeleteWhatsAppContactsData, BulkDeleteWhatsAppContactsError, BulkDeleteWhatsAppContactsResponse, GetWhatsAppGroupsData, GetWhatsAppGroupsError, GetWhatsAppGroupsResponse, RenameWhatsAppGroupData, RenameWhatsAppGroupError, RenameWhatsAppGroupResponse, DeleteWhatsAppGroupData, DeleteWhatsAppGroupError, DeleteWhatsAppGroupResponse, GetWhatsAppTemplatesData, GetWhatsAppTemplatesError, GetWhatsAppTemplatesResponse, CreateWhatsAppTemplateData, CreateWhatsAppTemplateError, CreateWhatsAppTemplateResponse, GetWhatsAppTemplateData, GetWhatsAppTemplateError, GetWhatsAppTemplateResponse, UpdateWhatsAppTemplateData, UpdateWhatsAppTemplateError, UpdateWhatsAppTemplateResponse, DeleteWhatsAppTemplateData, DeleteWhatsAppTemplateError, DeleteWhatsAppTemplateResponse, GetWhatsAppBroadcastsData, GetWhatsAppBroadcastsError, GetWhatsAppBroadcastsResponse, CreateWhatsAppBroadcastData, CreateWhatsAppBroadcastError, CreateWhatsAppBroadcastResponse, GetWhatsAppBroadcastData, GetWhatsAppBroadcastError, GetWhatsAppBroadcastResponse, DeleteWhatsAppBroadcastData, DeleteWhatsAppBroadcastError, DeleteWhatsAppBroadcastResponse, SendWhatsAppBroadcastData, SendWhatsAppBroadcastError, SendWhatsAppBroadcastResponse, ScheduleWhatsAppBroadcastData, ScheduleWhatsAppBroadcastError, ScheduleWhatsAppBroadcastResponse, CancelWhatsAppBroadcastScheduleData, CancelWhatsAppBroadcastScheduleError, CancelWhatsAppBroadcastScheduleResponse, GetWhatsAppBroadcastRecipientsData, GetWhatsAppBroadcastRecipientsError, GetWhatsAppBroadcastRecipientsResponse, AddWhatsAppBroadcastRecipientsData, AddWhatsAppBroadcastRecipientsError, AddWhatsAppBroadcastRecipientsResponse, RemoveWhatsAppBroadcastRecipientsData, RemoveWhatsAppBroadcastRecipientsError, RemoveWhatsAppBroadcastRecipientsResponse, 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 } from './types.gen';
|
|
4
|
+
import type { DownloadYouTubeVideoData, DownloadYouTubeVideoError, DownloadYouTubeVideoResponse, GetYouTubeTranscriptData, GetYouTubeTranscriptError, GetYouTubeTranscriptResponse, DownloadInstagramMediaData, DownloadInstagramMediaError, DownloadInstagramMediaResponse, CheckInstagramHashtagsData, CheckInstagramHashtagsError, CheckInstagramHashtagsResponse, DownloadTikTokVideoData, DownloadTikTokVideoError, DownloadTikTokVideoResponse, DownloadTwitterMediaData, DownloadTwitterMediaError, DownloadTwitterMediaResponse, DownloadFacebookVideoData, DownloadFacebookVideoError, DownloadFacebookVideoResponse, DownloadLinkedInVideoData, DownloadLinkedInVideoError, DownloadLinkedInVideoResponse, DownloadBlueskyMediaData, DownloadBlueskyMediaError, DownloadBlueskyMediaResponse, ValidatePostLengthData, ValidatePostLengthError, ValidatePostLengthResponse, ValidatePostData, ValidatePostError, ValidatePostResponse, ValidateMediaData, ValidateMediaError, ValidateMediaResponse, ValidateSubredditData, ValidateSubredditError, ValidateSubredditResponse, GetAnalyticsData, GetAnalyticsError, GetAnalyticsResponse, GetYouTubeDailyViewsData, GetYouTubeDailyViewsError, GetYouTubeDailyViewsResponse, GetInstagramAccountInsightsData, GetInstagramAccountInsightsError, GetInstagramAccountInsightsResponse, GetInstagramDemographicsData, GetInstagramDemographicsError, GetInstagramDemographicsResponse, GetDailyMetricsData, GetDailyMetricsError, GetDailyMetricsResponse, GetBestTimeToPostData, GetBestTimeToPostError, GetBestTimeToPostResponse, GetContentDecayData, GetContentDecayError, GetContentDecayResponse, GetPostingFrequencyData, GetPostingFrequencyError, GetPostingFrequencyResponse, GetPostTimelineData, GetPostTimelineError, GetPostTimelineResponse, 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, 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, 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, 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, GetWebhookLogsData, GetWebhookLogsError, GetWebhookLogsResponse, ListPostsLogsData, ListPostsLogsError, ListPostsLogsResponse, ListConnectionLogsData, ListConnectionLogsError, ListConnectionLogsResponse, GetPostLogsData, GetPostLogsError, GetPostLogsResponse, ListInboxConversationsData, ListInboxConversationsError, ListInboxConversationsResponse, GetInboxConversationData, GetInboxConversationError, GetInboxConversationResponse, UpdateInboxConversationData, UpdateInboxConversationError, UpdateInboxConversationResponse, GetInboxConversationMessagesData, GetInboxConversationMessagesError, GetInboxConversationMessagesResponse, SendInboxMessageData, SendInboxMessageError, SendInboxMessageResponse, EditInboxMessageData, EditInboxMessageError, EditInboxMessageResponse, 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, SendWhatsAppBulkData, SendWhatsAppBulkError, SendWhatsAppBulkResponse, GetWhatsAppContactsData, GetWhatsAppContactsError, GetWhatsAppContactsResponse, CreateWhatsAppContactData, CreateWhatsAppContactError, CreateWhatsAppContactResponse, GetWhatsAppContactData, GetWhatsAppContactError, GetWhatsAppContactResponse, UpdateWhatsAppContactData, UpdateWhatsAppContactError, UpdateWhatsAppContactResponse, DeleteWhatsAppContactData, DeleteWhatsAppContactError, DeleteWhatsAppContactResponse, ImportWhatsAppContactsData, ImportWhatsAppContactsError, ImportWhatsAppContactsResponse, BulkUpdateWhatsAppContactsData, BulkUpdateWhatsAppContactsError, BulkUpdateWhatsAppContactsResponse, BulkDeleteWhatsAppContactsData, BulkDeleteWhatsAppContactsError, BulkDeleteWhatsAppContactsResponse, GetWhatsAppGroupsData, GetWhatsAppGroupsError, GetWhatsAppGroupsResponse, RenameWhatsAppGroupData, RenameWhatsAppGroupError, RenameWhatsAppGroupResponse, DeleteWhatsAppGroupData, DeleteWhatsAppGroupError, DeleteWhatsAppGroupResponse, GetWhatsAppTemplatesData, GetWhatsAppTemplatesError, GetWhatsAppTemplatesResponse, CreateWhatsAppTemplateData, CreateWhatsAppTemplateError, CreateWhatsAppTemplateResponse, GetWhatsAppTemplateData, GetWhatsAppTemplateError, GetWhatsAppTemplateResponse, UpdateWhatsAppTemplateData, UpdateWhatsAppTemplateError, UpdateWhatsAppTemplateResponse, DeleteWhatsAppTemplateData, DeleteWhatsAppTemplateError, DeleteWhatsAppTemplateResponse, GetWhatsAppBroadcastsData, GetWhatsAppBroadcastsError, GetWhatsAppBroadcastsResponse, CreateWhatsAppBroadcastData, CreateWhatsAppBroadcastError, CreateWhatsAppBroadcastResponse, GetWhatsAppBroadcastData, GetWhatsAppBroadcastError, GetWhatsAppBroadcastResponse, DeleteWhatsAppBroadcastData, DeleteWhatsAppBroadcastError, DeleteWhatsAppBroadcastResponse, SendWhatsAppBroadcastData, SendWhatsAppBroadcastError, SendWhatsAppBroadcastResponse, ScheduleWhatsAppBroadcastData, ScheduleWhatsAppBroadcastError, ScheduleWhatsAppBroadcastResponse, CancelWhatsAppBroadcastScheduleData, CancelWhatsAppBroadcastScheduleError, CancelWhatsAppBroadcastScheduleResponse, GetWhatsAppBroadcastRecipientsData, GetWhatsAppBroadcastRecipientsError, GetWhatsAppBroadcastRecipientsResponse, AddWhatsAppBroadcastRecipientsData, AddWhatsAppBroadcastRecipientsError, AddWhatsAppBroadcastRecipientsResponse, RemoveWhatsAppBroadcastRecipientsData, RemoveWhatsAppBroadcastRecipientsError, RemoveWhatsAppBroadcastRecipientsResponse, 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 } from './types.gen';
|
|
5
5
|
|
|
6
6
|
export const client = createClient(createConfig());
|
|
7
7
|
|
|
@@ -220,6 +220,35 @@ export const getYouTubeDailyViews = <ThrowOnError extends boolean = false>(optio
|
|
|
220
220
|
});
|
|
221
221
|
};
|
|
222
222
|
|
|
223
|
+
/**
|
|
224
|
+
* Get Instagram account-level insights
|
|
225
|
+
* Returns account-level Instagram insights such as reach, views, accounts engaged, and total interactions.
|
|
226
|
+
* These metrics reflect the entire account's performance across all content surfaces (feed, stories, explore, profile),
|
|
227
|
+
* and are fundamentally different from post-level metrics. Data may be delayed up to 48 hours.
|
|
228
|
+
* Max 90 days, defaults to last 30 days. Requires the Analytics add-on.
|
|
229
|
+
*
|
|
230
|
+
*/
|
|
231
|
+
export const getInstagramAccountInsights = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetInstagramAccountInsightsData, ThrowOnError>) => {
|
|
232
|
+
return (options?.client ?? client).get<GetInstagramAccountInsightsResponse, GetInstagramAccountInsightsError, ThrowOnError>({
|
|
233
|
+
...options,
|
|
234
|
+
url: '/v1/analytics/instagram/account-insights'
|
|
235
|
+
});
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Get Instagram audience demographics
|
|
240
|
+
* Returns audience demographic insights for an Instagram account, broken down by age, city, country, and/or gender.
|
|
241
|
+
* Requires at least 100 followers. Returns top 45 entries per dimension.
|
|
242
|
+
* Data may be delayed up to 48 hours. Requires the Analytics add-on.
|
|
243
|
+
*
|
|
244
|
+
*/
|
|
245
|
+
export const getInstagramDemographics = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetInstagramDemographicsData, ThrowOnError>) => {
|
|
246
|
+
return (options?.client ?? client).get<GetInstagramDemographicsResponse, GetInstagramDemographicsError, ThrowOnError>({
|
|
247
|
+
...options,
|
|
248
|
+
url: '/v1/analytics/instagram/demographics'
|
|
249
|
+
});
|
|
250
|
+
};
|
|
251
|
+
|
|
223
252
|
/**
|
|
224
253
|
* Get daily aggregated metrics
|
|
225
254
|
* Returns daily aggregated analytics metrics and a per-platform breakdown.
|
|
@@ -625,6 +654,17 @@ export const getAccountHealth = <ThrowOnError extends boolean = false>(options:
|
|
|
625
654
|
});
|
|
626
655
|
};
|
|
627
656
|
|
|
657
|
+
/**
|
|
658
|
+
* Get TikTok creator info
|
|
659
|
+
* Returns TikTok creator details, available privacy levels, posting limits, and commercial content options for a specific TikTok account. Only works with TikTok accounts.
|
|
660
|
+
*/
|
|
661
|
+
export const getTikTokCreatorInfo = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetTikTokCreatorInfoData, ThrowOnError>) => {
|
|
662
|
+
return (options?.client ?? client).get<GetTikTokCreatorInfoResponse, GetTikTokCreatorInfoError, ThrowOnError>({
|
|
663
|
+
...options,
|
|
664
|
+
url: '/v1/accounts/{accountId}/tiktok/creator-info'
|
|
665
|
+
});
|
|
666
|
+
};
|
|
667
|
+
|
|
628
668
|
/**
|
|
629
669
|
* List keys
|
|
630
670
|
* Returns all API keys for the authenticated user. Keys are returned with a preview only, not the full key value.
|
|
@@ -533,6 +533,91 @@ export type HashtagInfo = {
|
|
|
533
533
|
|
|
534
534
|
export type status2 = 'safe' | 'banned' | 'restricted' | 'unknown';
|
|
535
535
|
|
|
536
|
+
export type InstagramAccountInsightsResponse = {
|
|
537
|
+
success?: boolean;
|
|
538
|
+
/**
|
|
539
|
+
* The Zernio SocialAccount ID
|
|
540
|
+
*/
|
|
541
|
+
accountId?: string;
|
|
542
|
+
platform?: string;
|
|
543
|
+
dateRange?: {
|
|
544
|
+
since?: string;
|
|
545
|
+
until?: string;
|
|
546
|
+
};
|
|
547
|
+
metricType?: 'time_series' | 'total_value';
|
|
548
|
+
/**
|
|
549
|
+
* Breakdown dimension used (only present when breakdown was requested)
|
|
550
|
+
*/
|
|
551
|
+
breakdown?: string;
|
|
552
|
+
/**
|
|
553
|
+
* Object keyed by metric name. For time_series: each metric has "total" (number) and "values" (array of {date, value}).
|
|
554
|
+
* For total_value: each metric has "total" (number) and optionally "breakdowns" (array of {dimension, value}).
|
|
555
|
+
*
|
|
556
|
+
*/
|
|
557
|
+
metrics?: {
|
|
558
|
+
[key: string]: {
|
|
559
|
+
/**
|
|
560
|
+
* Sum or aggregate value for the metric
|
|
561
|
+
*/
|
|
562
|
+
total?: number;
|
|
563
|
+
/**
|
|
564
|
+
* Daily values (only for time_series)
|
|
565
|
+
*/
|
|
566
|
+
values?: Array<{
|
|
567
|
+
date?: string;
|
|
568
|
+
value?: number;
|
|
569
|
+
}>;
|
|
570
|
+
/**
|
|
571
|
+
* Breakdown values (only for total_value with breakdown)
|
|
572
|
+
*/
|
|
573
|
+
breakdowns?: Array<{
|
|
574
|
+
dimension?: string;
|
|
575
|
+
value?: number;
|
|
576
|
+
}>;
|
|
577
|
+
};
|
|
578
|
+
};
|
|
579
|
+
dataDelay?: string;
|
|
580
|
+
};
|
|
581
|
+
|
|
582
|
+
export type metricType = 'time_series' | 'total_value';
|
|
583
|
+
|
|
584
|
+
export type InstagramDemographicsResponse = {
|
|
585
|
+
success?: boolean;
|
|
586
|
+
/**
|
|
587
|
+
* The Zernio SocialAccount ID
|
|
588
|
+
*/
|
|
589
|
+
accountId?: string;
|
|
590
|
+
platform?: string;
|
|
591
|
+
metric?: 'follower_demographics' | 'engaged_audience_demographics';
|
|
592
|
+
/**
|
|
593
|
+
* The timeframe used for demographic data
|
|
594
|
+
*/
|
|
595
|
+
timeframe?: 'this_week' | 'this_month';
|
|
596
|
+
/**
|
|
597
|
+
* Object keyed by breakdown dimension (age, city, country, gender)
|
|
598
|
+
*/
|
|
599
|
+
demographics?: {
|
|
600
|
+
[key: string]: Array<{
|
|
601
|
+
/**
|
|
602
|
+
* The dimension value (e.g., "25-34", "US", "M")
|
|
603
|
+
*/
|
|
604
|
+
dimension?: string;
|
|
605
|
+
/**
|
|
606
|
+
* Count of accounts in this dimension
|
|
607
|
+
*/
|
|
608
|
+
value?: number;
|
|
609
|
+
}>;
|
|
610
|
+
};
|
|
611
|
+
note?: string;
|
|
612
|
+
};
|
|
613
|
+
|
|
614
|
+
export type metric = 'follower_demographics' | 'engaged_audience_demographics';
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* The timeframe used for demographic data
|
|
618
|
+
*/
|
|
619
|
+
export type timeframe = 'this_week' | 'this_month';
|
|
620
|
+
|
|
536
621
|
/**
|
|
537
622
|
* Feed aspect ratio 0.8-1.91, carousels up to 10 items, stories require media (no captions). User tag coordinates 0.0-1.0 from top-left. Images over 8 MB and videos over platform limits are auto-compressed.
|
|
538
623
|
*/
|
|
@@ -1415,9 +1500,13 @@ export type TikTokPlatformData = {
|
|
|
1415
1500
|
*/
|
|
1416
1501
|
mediaType?: 'video' | 'photo';
|
|
1417
1502
|
/**
|
|
1418
|
-
* Optional for video posts. Timestamp in milliseconds to select which frame to use as thumbnail (defaults to 1000ms/1 second).
|
|
1503
|
+
* Optional for video posts. Timestamp in milliseconds to select which frame to use as thumbnail (defaults to 1000ms/1 second). Ignored when videoCoverImageUrl is provided.
|
|
1419
1504
|
*/
|
|
1420
1505
|
videoCoverTimestampMs?: number;
|
|
1506
|
+
/**
|
|
1507
|
+
* Optional for video posts. URL of a custom thumbnail image (JPG, PNG, or WebP, max 20MB). The image is stitched as a single frame at the start of the video and used as the cover. Overrides videoCoverTimestampMs when provided.
|
|
1508
|
+
*/
|
|
1509
|
+
videoCoverImageUrl?: string;
|
|
1421
1510
|
/**
|
|
1422
1511
|
* Optional for photo carousels. Index of image to use as cover, 0-based (defaults to 0/first image).
|
|
1423
1512
|
*/
|
|
@@ -1474,6 +1563,19 @@ export type TwitterPlatformData = {
|
|
|
1474
1563
|
content?: string;
|
|
1475
1564
|
mediaItems?: Array<MediaItem>;
|
|
1476
1565
|
}>;
|
|
1566
|
+
/**
|
|
1567
|
+
* Create a poll with this tweet. Mutually exclusive with media attachments and threads.
|
|
1568
|
+
*/
|
|
1569
|
+
poll?: {
|
|
1570
|
+
/**
|
|
1571
|
+
* Poll options (2-4 choices, max 25 characters each)
|
|
1572
|
+
*/
|
|
1573
|
+
options: Array<(string)>;
|
|
1574
|
+
/**
|
|
1575
|
+
* Poll duration in minutes (5 min to 7 days)
|
|
1576
|
+
*/
|
|
1577
|
+
duration_minutes: number;
|
|
1578
|
+
};
|
|
1477
1579
|
};
|
|
1478
1580
|
|
|
1479
1581
|
/**
|
|
@@ -2447,6 +2549,86 @@ export type GetYouTubeDailyViewsError = ({
|
|
|
2447
2549
|
error?: string;
|
|
2448
2550
|
});
|
|
2449
2551
|
|
|
2552
|
+
export type GetInstagramAccountInsightsData = {
|
|
2553
|
+
query: {
|
|
2554
|
+
/**
|
|
2555
|
+
* The Zernio SocialAccount ID for the Instagram account
|
|
2556
|
+
*/
|
|
2557
|
+
accountId: string;
|
|
2558
|
+
/**
|
|
2559
|
+
* Breakdown dimension (only valid with metricType=total_value).
|
|
2560
|
+
* Valid values depend on the metric: media_product_type, follow_type, follower_type, contact_button_type.
|
|
2561
|
+
*
|
|
2562
|
+
*/
|
|
2563
|
+
breakdown?: string;
|
|
2564
|
+
/**
|
|
2565
|
+
* Comma-separated list of metrics. Defaults to "reach,views,accounts_engaged,total_interactions".
|
|
2566
|
+
* Valid metrics: reach, views, accounts_engaged, total_interactions, comments, likes, saves, shares,
|
|
2567
|
+
* replies, reposts, follows_and_unfollows, profile_links_taps.
|
|
2568
|
+
* Note: only "reach" supports metricType=time_series. All other metrics are total_value only.
|
|
2569
|
+
*
|
|
2570
|
+
*/
|
|
2571
|
+
metrics?: string;
|
|
2572
|
+
/**
|
|
2573
|
+
* "total_value" (default) returns aggregated totals and supports breakdowns.
|
|
2574
|
+
* "time_series" returns daily values but only works with the "reach" metric.
|
|
2575
|
+
*
|
|
2576
|
+
*/
|
|
2577
|
+
metricType?: 'time_series' | 'total_value';
|
|
2578
|
+
/**
|
|
2579
|
+
* Start date (YYYY-MM-DD). Defaults to 30 days ago.
|
|
2580
|
+
*/
|
|
2581
|
+
since?: string;
|
|
2582
|
+
/**
|
|
2583
|
+
* End date (YYYY-MM-DD). Defaults to today.
|
|
2584
|
+
*/
|
|
2585
|
+
until?: string;
|
|
2586
|
+
};
|
|
2587
|
+
};
|
|
2588
|
+
|
|
2589
|
+
export type GetInstagramAccountInsightsResponse = (InstagramAccountInsightsResponse);
|
|
2590
|
+
|
|
2591
|
+
export type GetInstagramAccountInsightsError = ({
|
|
2592
|
+
error?: string;
|
|
2593
|
+
} | {
|
|
2594
|
+
error?: string;
|
|
2595
|
+
code?: string;
|
|
2596
|
+
});
|
|
2597
|
+
|
|
2598
|
+
export type GetInstagramDemographicsData = {
|
|
2599
|
+
query: {
|
|
2600
|
+
/**
|
|
2601
|
+
* The Zernio SocialAccount ID for the Instagram account
|
|
2602
|
+
*/
|
|
2603
|
+
accountId: string;
|
|
2604
|
+
/**
|
|
2605
|
+
* Comma-separated list of demographic dimensions: age, city, country, gender.
|
|
2606
|
+
* Defaults to all four if omitted.
|
|
2607
|
+
*
|
|
2608
|
+
*/
|
|
2609
|
+
breakdown?: string;
|
|
2610
|
+
/**
|
|
2611
|
+
* "follower_demographics" for follower audience data, or "engaged_audience_demographics" for engaged viewers.
|
|
2612
|
+
*
|
|
2613
|
+
*/
|
|
2614
|
+
metric?: 'follower_demographics' | 'engaged_audience_demographics';
|
|
2615
|
+
/**
|
|
2616
|
+
* Time period for demographic data. Defaults to "this_month".
|
|
2617
|
+
*
|
|
2618
|
+
*/
|
|
2619
|
+
timeframe?: 'this_week' | 'this_month';
|
|
2620
|
+
};
|
|
2621
|
+
};
|
|
2622
|
+
|
|
2623
|
+
export type GetInstagramDemographicsResponse = (InstagramDemographicsResponse);
|
|
2624
|
+
|
|
2625
|
+
export type GetInstagramDemographicsError = ({
|
|
2626
|
+
error?: string;
|
|
2627
|
+
} | {
|
|
2628
|
+
error?: string;
|
|
2629
|
+
code?: string;
|
|
2630
|
+
});
|
|
2631
|
+
|
|
2450
2632
|
export type GetDailyMetricsData = {
|
|
2451
2633
|
query?: {
|
|
2452
2634
|
/**
|
|
@@ -3478,6 +3660,79 @@ export type GetAccountHealthError = ({
|
|
|
3478
3660
|
error?: string;
|
|
3479
3661
|
});
|
|
3480
3662
|
|
|
3663
|
+
export type GetTikTokCreatorInfoData = {
|
|
3664
|
+
path: {
|
|
3665
|
+
/**
|
|
3666
|
+
* The TikTok account ID
|
|
3667
|
+
*/
|
|
3668
|
+
accountId: string;
|
|
3669
|
+
};
|
|
3670
|
+
query?: {
|
|
3671
|
+
/**
|
|
3672
|
+
* The media type to get creator info for (affects available interaction settings)
|
|
3673
|
+
*/
|
|
3674
|
+
mediaType?: 'video' | 'photo';
|
|
3675
|
+
};
|
|
3676
|
+
};
|
|
3677
|
+
|
|
3678
|
+
export type GetTikTokCreatorInfoResponse = ({
|
|
3679
|
+
creator?: {
|
|
3680
|
+
/**
|
|
3681
|
+
* Creator display name
|
|
3682
|
+
*/
|
|
3683
|
+
nickname?: string;
|
|
3684
|
+
/**
|
|
3685
|
+
* Creator avatar URL
|
|
3686
|
+
*/
|
|
3687
|
+
avatarUrl?: string;
|
|
3688
|
+
/**
|
|
3689
|
+
* Whether the creator is verified
|
|
3690
|
+
*/
|
|
3691
|
+
isVerified?: boolean;
|
|
3692
|
+
/**
|
|
3693
|
+
* Whether the creator can publish more posts right now
|
|
3694
|
+
*/
|
|
3695
|
+
canPostMore?: boolean;
|
|
3696
|
+
};
|
|
3697
|
+
/**
|
|
3698
|
+
* Available privacy level options for this creator
|
|
3699
|
+
*/
|
|
3700
|
+
privacyLevels?: Array<{
|
|
3701
|
+
/**
|
|
3702
|
+
* Privacy level value to use when creating posts (e.g. PUBLIC_TO_EVERYONE, MUTUAL_FOLLOW_FRIENDS, FOLLOWER_OF_CREATOR, SELF_ONLY)
|
|
3703
|
+
*/
|
|
3704
|
+
value?: string;
|
|
3705
|
+
/**
|
|
3706
|
+
* Human-readable label
|
|
3707
|
+
*/
|
|
3708
|
+
label?: string;
|
|
3709
|
+
}>;
|
|
3710
|
+
postingLimits?: {
|
|
3711
|
+
/**
|
|
3712
|
+
* Maximum video duration in seconds
|
|
3713
|
+
*/
|
|
3714
|
+
maxVideoDurationSec?: number;
|
|
3715
|
+
/**
|
|
3716
|
+
* Available interaction toggles (comment, duet, stitch) and their defaults
|
|
3717
|
+
*/
|
|
3718
|
+
interactionSettings?: {
|
|
3719
|
+
[key: string]: unknown;
|
|
3720
|
+
};
|
|
3721
|
+
};
|
|
3722
|
+
/**
|
|
3723
|
+
* Available commercial content disclosure options
|
|
3724
|
+
*/
|
|
3725
|
+
commercialContentTypes?: Array<{
|
|
3726
|
+
value?: string;
|
|
3727
|
+
label?: string;
|
|
3728
|
+
requires?: Array<(string)>;
|
|
3729
|
+
}>;
|
|
3730
|
+
});
|
|
3731
|
+
|
|
3732
|
+
export type GetTikTokCreatorInfoError = ({
|
|
3733
|
+
error?: string;
|
|
3734
|
+
});
|
|
3735
|
+
|
|
3481
3736
|
export type ListApiKeysResponse = ({
|
|
3482
3737
|
apiKeys?: Array<ApiKey>;
|
|
3483
3738
|
});
|
|
@@ -6283,6 +6538,14 @@ export type SendInboxMessageData = {
|
|
|
6283
6538
|
* Message text
|
|
6284
6539
|
*/
|
|
6285
6540
|
message?: string;
|
|
6541
|
+
/**
|
|
6542
|
+
* URL of the attachment to send (image, video, audio, or file). The URL must be publicly accessible. For binary file uploads, use multipart/form-data instead.
|
|
6543
|
+
*/
|
|
6544
|
+
attachmentUrl?: string;
|
|
6545
|
+
/**
|
|
6546
|
+
* Type of attachment. Defaults to file if not specified.
|
|
6547
|
+
*/
|
|
6548
|
+
attachmentType?: 'image' | 'video' | 'audio' | 'file';
|
|
6286
6549
|
/**
|
|
6287
6550
|
* Quick reply buttons. Mutually exclusive with buttons. Max 13 items.
|
|
6288
6551
|
*/
|