@getlatedev/node 0.1.32 → 0.1.34

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.
@@ -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, GetAnalyticsData, GetAnalyticsError, GetAnalyticsResponse, GetYouTubeDailyViewsData, GetYouTubeDailyViewsError, GetYouTubeDailyViewsResponse, 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, GetTelegramConnectStatusData, GetTelegramConnectStatusError, GetTelegramConnectStatusResponse, InitiateTelegramConnectData, InitiateTelegramConnectError, InitiateTelegramConnectResponse, CompleteTelegramConnectData, CompleteTelegramConnectError, CompleteTelegramConnectResponse, GetFacebookPagesData, GetFacebookPagesError, GetFacebookPagesResponse, UpdateFacebookPageData, UpdateFacebookPageError, UpdateFacebookPageResponse, GetLinkedInOrganizationsData, GetLinkedInOrganizationsError, GetLinkedInOrganizationsResponse, GetLinkedInAggregateAnalyticsData, GetLinkedInAggregateAnalyticsError, GetLinkedInAggregateAnalyticsResponse, GetLinkedInPostAnalyticsData, GetLinkedInPostAnalyticsError, GetLinkedInPostAnalyticsResponse, 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, ListInboxReviewsData, ListInboxReviewsError, ListInboxReviewsResponse, ReplyToInboxReviewData, ReplyToInboxReviewError, ReplyToInboxReviewResponse, DeleteInboxReviewReplyData, DeleteInboxReviewReplyError, DeleteInboxReviewReplyResponse } 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, GetDailyMetricsData, GetDailyMetricsError, GetDailyMetricsResponse, GetBestTimeToPostData, GetBestTimeToPostError, GetBestTimeToPostResponse, GetContentDecayData, GetContentDecayError, GetContentDecayResponse, GetPostingFrequencyData, GetPostingFrequencyError, GetPostingFrequencyResponse, 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, GetTelegramConnectStatusData, GetTelegramConnectStatusError, GetTelegramConnectStatusResponse, InitiateTelegramConnectData, InitiateTelegramConnectError, InitiateTelegramConnectResponse, CompleteTelegramConnectData, CompleteTelegramConnectError, CompleteTelegramConnectResponse, GetFacebookPagesData, GetFacebookPagesError, GetFacebookPagesResponse, UpdateFacebookPageData, UpdateFacebookPageError, UpdateFacebookPageResponse, GetLinkedInOrganizationsData, GetLinkedInOrganizationsError, GetLinkedInOrganizationsResponse, GetLinkedInAggregateAnalyticsData, GetLinkedInAggregateAnalyticsError, GetLinkedInAggregateAnalyticsResponse, GetLinkedInPostAnalyticsData, GetLinkedInPostAnalyticsError, GetLinkedInPostAnalyticsResponse, 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, ListInboxReviewsData, ListInboxReviewsError, ListInboxReviewsResponse, ReplyToInboxReviewData, ReplyToInboxReviewError, ReplyToInboxReviewResponse, DeleteInboxReviewReplyData, DeleteInboxReviewReplyError, DeleteInboxReviewReplyResponse } from './types.gen';
5
5
 
6
6
  export const client = createClient(createConfig());
7
7
 
@@ -131,6 +131,68 @@ export const downloadBlueskyMedia = <ThrowOnError extends boolean = false>(optio
131
131
  });
132
132
  };
133
133
 
134
+ /**
135
+ * Validate post character count
136
+ * Check weighted character count per platform and whether the text is within each platform's limit.
137
+ *
138
+ * Twitter/X uses weighted counting (URLs = 23 chars via t.co, emojis = 2 chars). All other platforms use plain character length.
139
+ *
140
+ * Returns counts and limits for all 15 supported platform variants.
141
+ *
142
+ */
143
+ export const validatePostLength = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ValidatePostLengthData, ThrowOnError>) => {
144
+ return (options?.client ?? client).post<ValidatePostLengthResponse, ValidatePostLengthError, ThrowOnError>({
145
+ ...options,
146
+ url: '/v1/tools/validate/post-length'
147
+ });
148
+ };
149
+
150
+ /**
151
+ * Validate post content
152
+ * Dry-run the full post validation pipeline without publishing. Catches issues like missing media for Instagram/TikTok/YouTube, hashtag limits, invalid thread formats, Facebook Reel requirements, and character limit violations.
153
+ *
154
+ * Accepts the same body as `POST /v1/posts`. Does NOT validate accounts, process media, or track usage. This is content-only validation.
155
+ *
156
+ * Returns errors for failures and warnings for near-limit content (>90% of character limit).
157
+ *
158
+ */
159
+ export const validatePost = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ValidatePostData, ThrowOnError>) => {
160
+ return (options?.client ?? client).post<ValidatePostResponse, ValidatePostError, ThrowOnError>({
161
+ ...options,
162
+ url: '/v1/tools/validate/post'
163
+ });
164
+ };
165
+
166
+ /**
167
+ * Validate media URL
168
+ * Check if a media URL is accessible and return metadata (content type, file size) plus per-platform size limit comparisons.
169
+ *
170
+ * Performs a HEAD request (with GET fallback) to detect content type and size. Rejects private/localhost URLs for SSRF protection.
171
+ *
172
+ * Platform limits are sourced from each platform's actual upload constraints.
173
+ *
174
+ */
175
+ export const validateMedia = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ValidateMediaData, ThrowOnError>) => {
176
+ return (options?.client ?? client).post<ValidateMediaResponse, ValidateMediaError, ThrowOnError>({
177
+ ...options,
178
+ url: '/v1/tools/validate/media'
179
+ });
180
+ };
181
+
182
+ /**
183
+ * Check subreddit existence
184
+ * Check if a subreddit exists and return basic info (title, subscriber count, NSFW status, post types allowed).
185
+ *
186
+ * Uses Reddit's public JSON API (no Reddit auth needed). Returns `exists: false` for private, banned, or nonexistent subreddits.
187
+ *
188
+ */
189
+ export const validateSubreddit = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ValidateSubredditData, ThrowOnError>) => {
190
+ return (options?.client ?? client).get<ValidateSubredditResponse, ValidateSubredditError, ThrowOnError>({
191
+ ...options,
192
+ url: '/v1/tools/validate/subreddit'
193
+ });
194
+ };
195
+
134
196
  /**
135
197
  * Get post analytics
136
198
  * Returns analytics for posts. With postId, returns a single post. Without it, returns a paginated list with overview stats.
@@ -157,6 +219,64 @@ export const getYouTubeDailyViews = <ThrowOnError extends boolean = false>(optio
157
219
  });
158
220
  };
159
221
 
222
+ /**
223
+ * Get daily aggregated metrics
224
+ * Returns daily aggregated analytics metrics and a per-platform breakdown.
225
+ * Each day includes post count, platform distribution, and summed metrics (impressions, reach, likes, comments, shares, saves, clicks, views).
226
+ * Defaults to the last 180 days. Requires the Analytics add-on.
227
+ *
228
+ */
229
+ export const getDailyMetrics = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetDailyMetricsData, ThrowOnError>) => {
230
+ return (options?.client ?? client).get<GetDailyMetricsResponse, GetDailyMetricsError, ThrowOnError>({
231
+ ...options,
232
+ url: '/v1/analytics/daily-metrics'
233
+ });
234
+ };
235
+
236
+ /**
237
+ * Get best times to post
238
+ * Returns the best times to post based on historical engagement data.
239
+ * Groups all published posts by day of week and hour (UTC), calculating average engagement per slot.
240
+ * Use this to auto-schedule posts at optimal times. Requires the Analytics add-on.
241
+ *
242
+ */
243
+ export const getBestTimeToPost = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetBestTimeToPostData, ThrowOnError>) => {
244
+ return (options?.client ?? client).get<GetBestTimeToPostResponse, GetBestTimeToPostError, ThrowOnError>({
245
+ ...options,
246
+ url: '/v1/analytics/best-time'
247
+ });
248
+ };
249
+
250
+ /**
251
+ * Get content performance decay
252
+ * Returns how engagement accumulates over time after a post is published.
253
+ * Each bucket shows what percentage of the post's total engagement had been reached by that time window.
254
+ * Useful for understanding content lifespan (e.g. "posts reach 78% of total engagement within 24 hours").
255
+ * Requires the Analytics add-on.
256
+ *
257
+ */
258
+ export const getContentDecay = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetContentDecayData, ThrowOnError>) => {
259
+ return (options?.client ?? client).get<GetContentDecayResponse, GetContentDecayError, ThrowOnError>({
260
+ ...options,
261
+ url: '/v1/analytics/content-decay'
262
+ });
263
+ };
264
+
265
+ /**
266
+ * Get posting frequency vs engagement
267
+ * Returns the correlation between posting frequency (posts per week) and engagement rate, broken down by platform.
268
+ * Helps find the optimal posting cadence for each platform. Each row represents a specific (platform, posts_per_week) combination
269
+ * with the average engagement rate observed across all weeks matching that frequency.
270
+ * Requires the Analytics add-on.
271
+ *
272
+ */
273
+ export const getPostingFrequency = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetPostingFrequencyData, ThrowOnError>) => {
274
+ return (options?.client ?? client).get<GetPostingFrequencyResponse, GetPostingFrequencyError, ThrowOnError>({
275
+ ...options,
276
+ url: '/v1/analytics/posting-frequency'
277
+ });
278
+ };
279
+
160
280
  /**
161
281
  * List groups
162
282
  * Returns all account groups for the authenticated user, including group names and associated account IDs.
@@ -1970,6 +1970,156 @@ export type DownloadBlueskyMediaResponse = ({
1970
1970
 
1971
1971
  export type DownloadBlueskyMediaError = unknown;
1972
1972
 
1973
+ export type ValidatePostLengthData = {
1974
+ body: {
1975
+ /**
1976
+ * The post text to check
1977
+ */
1978
+ text: string;
1979
+ };
1980
+ };
1981
+
1982
+ export type ValidatePostLengthResponse = ({
1983
+ text?: string;
1984
+ platforms?: {
1985
+ [key: string]: {
1986
+ /**
1987
+ * Character count for this platform
1988
+ */
1989
+ count?: number;
1990
+ /**
1991
+ * Maximum allowed characters
1992
+ */
1993
+ limit?: number;
1994
+ /**
1995
+ * Whether the text is within the limit
1996
+ */
1997
+ valid?: boolean;
1998
+ };
1999
+ };
2000
+ });
2001
+
2002
+ export type ValidatePostLengthError = unknown;
2003
+
2004
+ export type ValidatePostData = {
2005
+ body: {
2006
+ /**
2007
+ * Post text content
2008
+ */
2009
+ content?: string;
2010
+ /**
2011
+ * Target platforms (same format as POST /v1/posts)
2012
+ */
2013
+ platforms: Array<{
2014
+ platform: 'twitter' | 'instagram' | 'tiktok' | 'youtube' | 'facebook' | 'linkedin' | 'bluesky' | 'threads' | 'reddit' | 'pinterest' | 'telegram' | 'snapchat' | 'googlebusiness';
2015
+ customContent?: string;
2016
+ platformSpecificData?: {
2017
+ [key: string]: unknown;
2018
+ };
2019
+ customMedia?: Array<{
2020
+ url?: string;
2021
+ type?: 'image' | 'video';
2022
+ }>;
2023
+ }>;
2024
+ /**
2025
+ * Root media items shared across platforms
2026
+ */
2027
+ mediaItems?: Array<{
2028
+ url?: string;
2029
+ type?: 'image' | 'video';
2030
+ }>;
2031
+ };
2032
+ };
2033
+
2034
+ export type ValidatePostResponse = (({
2035
+ valid?: boolean;
2036
+ message?: string;
2037
+ warnings?: Array<{
2038
+ platform?: string;
2039
+ warning?: string;
2040
+ }>;
2041
+ } | {
2042
+ valid?: boolean;
2043
+ errors?: Array<{
2044
+ platform?: string;
2045
+ error?: string;
2046
+ }>;
2047
+ warnings?: Array<{
2048
+ platform?: string;
2049
+ warning?: string;
2050
+ }>;
2051
+ }));
2052
+
2053
+ export type ValidatePostError = unknown;
2054
+
2055
+ export type ValidateMediaData = {
2056
+ body: {
2057
+ /**
2058
+ * Public media URL to validate
2059
+ */
2060
+ url: string;
2061
+ };
2062
+ };
2063
+
2064
+ export type ValidateMediaResponse = ({
2065
+ valid?: boolean;
2066
+ url?: string;
2067
+ /**
2068
+ * Error message if valid is false
2069
+ */
2070
+ error?: string;
2071
+ contentType?: string;
2072
+ /**
2073
+ * File size in bytes
2074
+ */
2075
+ size?: (number) | null;
2076
+ sizeFormatted?: string;
2077
+ type?: 'image' | 'video' | 'unknown';
2078
+ /**
2079
+ * Per-platform size limit comparison (only present when size and type are known)
2080
+ */
2081
+ platformLimits?: {
2082
+ [key: string]: {
2083
+ /**
2084
+ * Platform size limit in bytes
2085
+ */
2086
+ limit?: number;
2087
+ limitFormatted?: string;
2088
+ withinLimit?: boolean;
2089
+ };
2090
+ };
2091
+ });
2092
+
2093
+ export type ValidateMediaError = unknown;
2094
+
2095
+ export type ValidateSubredditData = {
2096
+ query: {
2097
+ /**
2098
+ * Subreddit name (with or without "r/" prefix)
2099
+ */
2100
+ name: string;
2101
+ };
2102
+ };
2103
+
2104
+ export type ValidateSubredditResponse = (({
2105
+ exists?: boolean;
2106
+ subreddit?: {
2107
+ name?: string;
2108
+ title?: string;
2109
+ description?: string;
2110
+ subscribers?: number;
2111
+ isNSFW?: boolean;
2112
+ type?: 'public' | 'private' | 'restricted';
2113
+ allowImages?: boolean;
2114
+ allowVideos?: boolean;
2115
+ };
2116
+ } | {
2117
+ exists?: boolean;
2118
+ error?: string;
2119
+ }));
2120
+
2121
+ export type ValidateSubredditError = unknown;
2122
+
1973
2123
  export type GetAnalyticsData = {
1974
2124
  query?: {
1975
2125
  /**
@@ -2057,6 +2207,190 @@ export type GetYouTubeDailyViewsError = ({
2057
2207
  error?: string;
2058
2208
  });
2059
2209
 
2210
+ export type GetDailyMetricsData = {
2211
+ query?: {
2212
+ /**
2213
+ * Inclusive start date (ISO 8601). Defaults to 180 days ago.
2214
+ */
2215
+ fromDate?: string;
2216
+ /**
2217
+ * Filter by platform (e.g. "instagram", "tiktok"). Omit for all platforms.
2218
+ */
2219
+ platform?: string;
2220
+ /**
2221
+ * Filter by profile ID. Omit for all profiles.
2222
+ */
2223
+ profileId?: string;
2224
+ /**
2225
+ * Inclusive end date (ISO 8601). Defaults to now.
2226
+ */
2227
+ toDate?: string;
2228
+ };
2229
+ };
2230
+
2231
+ export type GetDailyMetricsResponse = ({
2232
+ dailyData?: Array<{
2233
+ date?: string;
2234
+ postCount?: number;
2235
+ platforms?: {
2236
+ [key: string]: (number);
2237
+ };
2238
+ metrics?: {
2239
+ impressions?: number;
2240
+ reach?: number;
2241
+ likes?: number;
2242
+ comments?: number;
2243
+ shares?: number;
2244
+ saves?: number;
2245
+ clicks?: number;
2246
+ views?: number;
2247
+ };
2248
+ }>;
2249
+ platformBreakdown?: Array<{
2250
+ platform?: string;
2251
+ postCount?: number;
2252
+ impressions?: number;
2253
+ reach?: number;
2254
+ likes?: number;
2255
+ comments?: number;
2256
+ shares?: number;
2257
+ saves?: number;
2258
+ clicks?: number;
2259
+ views?: number;
2260
+ }>;
2261
+ });
2262
+
2263
+ export type GetDailyMetricsError = ({
2264
+ error?: string;
2265
+ } | {
2266
+ error?: string;
2267
+ code?: string;
2268
+ });
2269
+
2270
+ export type GetBestTimeToPostData = {
2271
+ query?: {
2272
+ /**
2273
+ * Filter by platform (e.g. "instagram", "tiktok"). Omit for all platforms.
2274
+ */
2275
+ platform?: string;
2276
+ /**
2277
+ * Filter by profile ID. Omit for all profiles.
2278
+ */
2279
+ profileId?: string;
2280
+ };
2281
+ };
2282
+
2283
+ export type GetBestTimeToPostResponse = ({
2284
+ slots?: Array<{
2285
+ /**
2286
+ * 0=Monday, 6=Sunday
2287
+ */
2288
+ day_of_week?: number;
2289
+ /**
2290
+ * Hour in UTC (0-23)
2291
+ */
2292
+ hour?: number;
2293
+ /**
2294
+ * Average engagement (likes + comments + shares + saves)
2295
+ */
2296
+ avg_engagement?: number;
2297
+ /**
2298
+ * Number of posts in this slot
2299
+ */
2300
+ post_count?: number;
2301
+ }>;
2302
+ });
2303
+
2304
+ export type GetBestTimeToPostError = ({
2305
+ error?: string;
2306
+ } | {
2307
+ error?: string;
2308
+ requiresAddon?: boolean;
2309
+ });
2310
+
2311
+ export type GetContentDecayData = {
2312
+ query?: {
2313
+ /**
2314
+ * Filter by platform (e.g. "instagram", "tiktok"). Omit for all platforms.
2315
+ */
2316
+ platform?: string;
2317
+ /**
2318
+ * Filter by profile ID. Omit for all profiles.
2319
+ */
2320
+ profileId?: string;
2321
+ };
2322
+ };
2323
+
2324
+ export type GetContentDecayResponse = ({
2325
+ buckets?: Array<{
2326
+ /**
2327
+ * Sort order (0 = earliest, 6 = latest)
2328
+ */
2329
+ bucket_order?: number;
2330
+ /**
2331
+ * Human-readable label
2332
+ */
2333
+ bucket_label?: string;
2334
+ /**
2335
+ * Average % of final engagement reached (0-100)
2336
+ */
2337
+ avg_pct_of_final?: number;
2338
+ /**
2339
+ * Number of posts with data in this bucket
2340
+ */
2341
+ post_count?: number;
2342
+ }>;
2343
+ });
2344
+
2345
+ export type GetContentDecayError = ({
2346
+ error?: string;
2347
+ } | {
2348
+ error?: string;
2349
+ requiresAddon?: boolean;
2350
+ });
2351
+
2352
+ export type GetPostingFrequencyData = {
2353
+ query?: {
2354
+ /**
2355
+ * Filter by platform (e.g. "instagram", "tiktok"). Omit for all platforms.
2356
+ */
2357
+ platform?: string;
2358
+ /**
2359
+ * Filter by profile ID. Omit for all profiles.
2360
+ */
2361
+ profileId?: string;
2362
+ };
2363
+ };
2364
+
2365
+ export type GetPostingFrequencyResponse = ({
2366
+ frequency?: Array<{
2367
+ platform?: string;
2368
+ /**
2369
+ * Number of posts published that week
2370
+ */
2371
+ posts_per_week?: number;
2372
+ /**
2373
+ * Average engagement rate as percentage (0-100)
2374
+ */
2375
+ avg_engagement_rate?: number;
2376
+ /**
2377
+ * Average raw engagement (likes+comments+shares+saves)
2378
+ */
2379
+ avg_engagement?: number;
2380
+ /**
2381
+ * Number of calendar weeks observed at this frequency
2382
+ */
2383
+ weeks_count?: number;
2384
+ }>;
2385
+ });
2386
+
2387
+ export type GetPostingFrequencyError = ({
2388
+ error?: string;
2389
+ } | {
2390
+ error?: string;
2391
+ requiresAddon?: boolean;
2392
+ });
2393
+
2060
2394
  export type ListAccountGroupsResponse = ({
2061
2395
  groups?: Array<{
2062
2396
  _id?: string;