@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.
package/dist/index.d.ts CHANGED
@@ -69,12 +69,25 @@ declare class Late {
69
69
  downloadLinkedInVideo: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DownloadLinkedInVideoData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DownloadLinkedInVideoResponse, unknown, ThrowOnError>;
70
70
  downloadBlueskyMedia: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DownloadBlueskyMediaData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DownloadBlueskyMediaResponse, unknown, ThrowOnError>;
71
71
  };
72
+ /**
73
+ * validate API
74
+ */
75
+ validate: {
76
+ validatePostLength: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ValidatePostLengthData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ValidatePostLengthResponse, unknown, ThrowOnError>;
77
+ validatePost: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ValidatePostData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ValidatePostResponse, unknown, ThrowOnError>;
78
+ validateMedia: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ValidateMediaData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ValidateMediaResponse, unknown, ThrowOnError>;
79
+ validateSubreddit: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ValidateSubredditData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ValidateSubredditResponse, unknown, ThrowOnError>;
80
+ };
72
81
  /**
73
82
  * Analytics API - Get performance metrics
74
83
  */
75
84
  analytics: {
76
85
  getAnalytics: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<GetAnalyticsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetAnalyticsResponse, GetAnalyticsError, ThrowOnError>;
77
86
  getYouTubeDailyViews: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetYouTubeDailyViewsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<YouTubeDailyViewsResponse, GetYouTubeDailyViewsError, ThrowOnError>;
87
+ getDailyMetrics: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<GetDailyMetricsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetDailyMetricsResponse, GetDailyMetricsError, ThrowOnError>;
88
+ getBestTimeToPost: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<GetBestTimeToPostData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetBestTimeToPostResponse, GetBestTimeToPostError, ThrowOnError>;
89
+ getContentDecay: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<GetContentDecayData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetContentDecayResponse, GetContentDecayError, ThrowOnError>;
90
+ getPostingFrequency: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<GetPostingFrequencyData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetPostingFrequencyResponse, GetPostingFrequencyError, ThrowOnError>;
78
91
  getLinkedInAggregateAnalytics: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetLinkedInAggregateAnalyticsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetLinkedInAggregateAnalyticsResponse, unknown, ThrowOnError>;
79
92
  getLinkedInPostAnalytics: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetLinkedInPostAnalyticsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetLinkedInPostAnalyticsResponse, unknown, ThrowOnError>;
80
93
  };
@@ -2214,6 +2227,144 @@ type DownloadBlueskyMediaResponse = ({
2214
2227
  thumbnail?: string;
2215
2228
  });
2216
2229
  type DownloadBlueskyMediaError = unknown;
2230
+ type ValidatePostLengthData = {
2231
+ body: {
2232
+ /**
2233
+ * The post text to check
2234
+ */
2235
+ text: string;
2236
+ };
2237
+ };
2238
+ type ValidatePostLengthResponse = ({
2239
+ text?: string;
2240
+ platforms?: {
2241
+ [key: string]: {
2242
+ /**
2243
+ * Character count for this platform
2244
+ */
2245
+ count?: number;
2246
+ /**
2247
+ * Maximum allowed characters
2248
+ */
2249
+ limit?: number;
2250
+ /**
2251
+ * Whether the text is within the limit
2252
+ */
2253
+ valid?: boolean;
2254
+ };
2255
+ };
2256
+ });
2257
+ type ValidatePostLengthError = unknown;
2258
+ type ValidatePostData = {
2259
+ body: {
2260
+ /**
2261
+ * Post text content
2262
+ */
2263
+ content?: string;
2264
+ /**
2265
+ * Target platforms (same format as POST /v1/posts)
2266
+ */
2267
+ platforms: Array<{
2268
+ platform: 'twitter' | 'instagram' | 'tiktok' | 'youtube' | 'facebook' | 'linkedin' | 'bluesky' | 'threads' | 'reddit' | 'pinterest' | 'telegram' | 'snapchat' | 'googlebusiness';
2269
+ customContent?: string;
2270
+ platformSpecificData?: {
2271
+ [key: string]: unknown;
2272
+ };
2273
+ customMedia?: Array<{
2274
+ url?: string;
2275
+ type?: 'image' | 'video';
2276
+ }>;
2277
+ }>;
2278
+ /**
2279
+ * Root media items shared across platforms
2280
+ */
2281
+ mediaItems?: Array<{
2282
+ url?: string;
2283
+ type?: 'image' | 'video';
2284
+ }>;
2285
+ };
2286
+ };
2287
+ type ValidatePostResponse = (({
2288
+ valid?: boolean;
2289
+ message?: string;
2290
+ warnings?: Array<{
2291
+ platform?: string;
2292
+ warning?: string;
2293
+ }>;
2294
+ } | {
2295
+ valid?: boolean;
2296
+ errors?: Array<{
2297
+ platform?: string;
2298
+ error?: string;
2299
+ }>;
2300
+ warnings?: Array<{
2301
+ platform?: string;
2302
+ warning?: string;
2303
+ }>;
2304
+ }));
2305
+ type ValidatePostError = unknown;
2306
+ type ValidateMediaData = {
2307
+ body: {
2308
+ /**
2309
+ * Public media URL to validate
2310
+ */
2311
+ url: string;
2312
+ };
2313
+ };
2314
+ type ValidateMediaResponse = ({
2315
+ valid?: boolean;
2316
+ url?: string;
2317
+ /**
2318
+ * Error message if valid is false
2319
+ */
2320
+ error?: string;
2321
+ contentType?: string;
2322
+ /**
2323
+ * File size in bytes
2324
+ */
2325
+ size?: (number) | null;
2326
+ sizeFormatted?: string;
2327
+ type?: 'image' | 'video' | 'unknown';
2328
+ /**
2329
+ * Per-platform size limit comparison (only present when size and type are known)
2330
+ */
2331
+ platformLimits?: {
2332
+ [key: string]: {
2333
+ /**
2334
+ * Platform size limit in bytes
2335
+ */
2336
+ limit?: number;
2337
+ limitFormatted?: string;
2338
+ withinLimit?: boolean;
2339
+ };
2340
+ };
2341
+ });
2342
+ type ValidateMediaError = unknown;
2343
+ type ValidateSubredditData = {
2344
+ query: {
2345
+ /**
2346
+ * Subreddit name (with or without "r/" prefix)
2347
+ */
2348
+ name: string;
2349
+ };
2350
+ };
2351
+ type ValidateSubredditResponse = (({
2352
+ exists?: boolean;
2353
+ subreddit?: {
2354
+ name?: string;
2355
+ title?: string;
2356
+ description?: string;
2357
+ subscribers?: number;
2358
+ isNSFW?: boolean;
2359
+ type?: 'public' | 'private' | 'restricted';
2360
+ allowImages?: boolean;
2361
+ allowVideos?: boolean;
2362
+ };
2363
+ } | {
2364
+ exists?: boolean;
2365
+ error?: string;
2366
+ }));
2367
+ type ValidateSubredditError = unknown;
2217
2368
  type GetAnalyticsData = {
2218
2369
  query?: {
2219
2370
  /**
@@ -2295,6 +2446,178 @@ type GetYouTubeDailyViewsError = ({
2295
2446
  success?: boolean;
2296
2447
  error?: string;
2297
2448
  });
2449
+ type GetDailyMetricsData = {
2450
+ query?: {
2451
+ /**
2452
+ * Inclusive start date (ISO 8601). Defaults to 180 days ago.
2453
+ */
2454
+ fromDate?: string;
2455
+ /**
2456
+ * Filter by platform (e.g. "instagram", "tiktok"). Omit for all platforms.
2457
+ */
2458
+ platform?: string;
2459
+ /**
2460
+ * Filter by profile ID. Omit for all profiles.
2461
+ */
2462
+ profileId?: string;
2463
+ /**
2464
+ * Inclusive end date (ISO 8601). Defaults to now.
2465
+ */
2466
+ toDate?: string;
2467
+ };
2468
+ };
2469
+ type GetDailyMetricsResponse = ({
2470
+ dailyData?: Array<{
2471
+ date?: string;
2472
+ postCount?: number;
2473
+ platforms?: {
2474
+ [key: string]: (number);
2475
+ };
2476
+ metrics?: {
2477
+ impressions?: number;
2478
+ reach?: number;
2479
+ likes?: number;
2480
+ comments?: number;
2481
+ shares?: number;
2482
+ saves?: number;
2483
+ clicks?: number;
2484
+ views?: number;
2485
+ };
2486
+ }>;
2487
+ platformBreakdown?: Array<{
2488
+ platform?: string;
2489
+ postCount?: number;
2490
+ impressions?: number;
2491
+ reach?: number;
2492
+ likes?: number;
2493
+ comments?: number;
2494
+ shares?: number;
2495
+ saves?: number;
2496
+ clicks?: number;
2497
+ views?: number;
2498
+ }>;
2499
+ });
2500
+ type GetDailyMetricsError = ({
2501
+ error?: string;
2502
+ } | {
2503
+ error?: string;
2504
+ code?: string;
2505
+ });
2506
+ type GetBestTimeToPostData = {
2507
+ query?: {
2508
+ /**
2509
+ * Filter by platform (e.g. "instagram", "tiktok"). Omit for all platforms.
2510
+ */
2511
+ platform?: string;
2512
+ /**
2513
+ * Filter by profile ID. Omit for all profiles.
2514
+ */
2515
+ profileId?: string;
2516
+ };
2517
+ };
2518
+ type GetBestTimeToPostResponse = ({
2519
+ slots?: Array<{
2520
+ /**
2521
+ * 0=Monday, 6=Sunday
2522
+ */
2523
+ day_of_week?: number;
2524
+ /**
2525
+ * Hour in UTC (0-23)
2526
+ */
2527
+ hour?: number;
2528
+ /**
2529
+ * Average engagement (likes + comments + shares + saves)
2530
+ */
2531
+ avg_engagement?: number;
2532
+ /**
2533
+ * Number of posts in this slot
2534
+ */
2535
+ post_count?: number;
2536
+ }>;
2537
+ });
2538
+ type GetBestTimeToPostError = ({
2539
+ error?: string;
2540
+ } | {
2541
+ error?: string;
2542
+ requiresAddon?: boolean;
2543
+ });
2544
+ type GetContentDecayData = {
2545
+ query?: {
2546
+ /**
2547
+ * Filter by platform (e.g. "instagram", "tiktok"). Omit for all platforms.
2548
+ */
2549
+ platform?: string;
2550
+ /**
2551
+ * Filter by profile ID. Omit for all profiles.
2552
+ */
2553
+ profileId?: string;
2554
+ };
2555
+ };
2556
+ type GetContentDecayResponse = ({
2557
+ buckets?: Array<{
2558
+ /**
2559
+ * Sort order (0 = earliest, 6 = latest)
2560
+ */
2561
+ bucket_order?: number;
2562
+ /**
2563
+ * Human-readable label
2564
+ */
2565
+ bucket_label?: string;
2566
+ /**
2567
+ * Average % of final engagement reached (0-100)
2568
+ */
2569
+ avg_pct_of_final?: number;
2570
+ /**
2571
+ * Number of posts with data in this bucket
2572
+ */
2573
+ post_count?: number;
2574
+ }>;
2575
+ });
2576
+ type GetContentDecayError = ({
2577
+ error?: string;
2578
+ } | {
2579
+ error?: string;
2580
+ requiresAddon?: boolean;
2581
+ });
2582
+ type GetPostingFrequencyData = {
2583
+ query?: {
2584
+ /**
2585
+ * Filter by platform (e.g. "instagram", "tiktok"). Omit for all platforms.
2586
+ */
2587
+ platform?: string;
2588
+ /**
2589
+ * Filter by profile ID. Omit for all profiles.
2590
+ */
2591
+ profileId?: string;
2592
+ };
2593
+ };
2594
+ type GetPostingFrequencyResponse = ({
2595
+ frequency?: Array<{
2596
+ platform?: string;
2597
+ /**
2598
+ * Number of posts published that week
2599
+ */
2600
+ posts_per_week?: number;
2601
+ /**
2602
+ * Average engagement rate as percentage (0-100)
2603
+ */
2604
+ avg_engagement_rate?: number;
2605
+ /**
2606
+ * Average raw engagement (likes+comments+shares+saves)
2607
+ */
2608
+ avg_engagement?: number;
2609
+ /**
2610
+ * Number of calendar weeks observed at this frequency
2611
+ */
2612
+ weeks_count?: number;
2613
+ }>;
2614
+ });
2615
+ type GetPostingFrequencyError = ({
2616
+ error?: string;
2617
+ } | {
2618
+ error?: string;
2619
+ requiresAddon?: boolean;
2620
+ });
2298
2621
  type ListAccountGroupsResponse = ({
2299
2622
  groups?: Array<{
2300
2623
  _id?: string;
@@ -6045,4 +6368,4 @@ type DeleteInboxReviewReplyError = ({
6045
6368
  error?: string;
6046
6369
  } | unknown);
6047
6370
 
6048
- export { type AccountGetResponse, type AccountWithFollowerStats, type AccountsListResponse, type AnalyticsListResponse, type AnalyticsOverview, type AnalyticsSinglePostResponse, type ApiKey, type BlueskyPlatformData, type BulkUploadPostsData, type BulkUploadPostsError, type BulkUploadPostsResponse, type CaptionResponse, type CheckInstagramHashtagsData, type CheckInstagramHashtagsError, type CheckInstagramHashtagsResponse, type ClientOptions, type CompleteTelegramConnectData, type CompleteTelegramConnectError, type CompleteTelegramConnectResponse, type ConnectBlueskyCredentialsData, type ConnectBlueskyCredentialsError, type ConnectBlueskyCredentialsResponse, type ConnectionLog, type CreateAccountGroupData, type CreateAccountGroupError, type CreateAccountGroupResponse, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyResponse, type CreateGoogleBusinessMediaData, type CreateGoogleBusinessMediaError, type CreateGoogleBusinessMediaResponse, type CreateGoogleBusinessPlaceActionData, type CreateGoogleBusinessPlaceActionError, type CreateGoogleBusinessPlaceActionResponse, type CreateInviteTokenData, type CreateInviteTokenError, type CreateInviteTokenResponse, type CreatePostData, type CreatePostError, type CreatePostResponse, type CreateProfileData, type CreateProfileError, type CreateProfileResponse, type CreateQueueSlotData, type CreateQueueSlotError, type CreateQueueSlotResponse, type CreateWebhookSettingsData, type CreateWebhookSettingsError, type CreateWebhookSettingsResponse, type DeleteAccountData, type DeleteAccountError, type DeleteAccountGroupData, type DeleteAccountGroupError, type DeleteAccountGroupResponse, type DeleteAccountResponse, type DeleteApiKeyData, type DeleteApiKeyError, type DeleteApiKeyResponse, type DeleteGoogleBusinessMediaData, type DeleteGoogleBusinessMediaError, type DeleteGoogleBusinessMediaResponse, type DeleteGoogleBusinessPlaceActionData, type DeleteGoogleBusinessPlaceActionError, type DeleteGoogleBusinessPlaceActionResponse, type DeleteInboxCommentData, type DeleteInboxCommentError, type DeleteInboxCommentResponse, type DeleteInboxReviewReplyData, type DeleteInboxReviewReplyError, type DeleteInboxReviewReplyResponse, type DeleteInstagramIceBreakersData, type DeleteInstagramIceBreakersError, type DeleteInstagramIceBreakersResponse, type DeleteMessengerMenuData, type DeleteMessengerMenuError, type DeleteMessengerMenuResponse, type DeletePostData, type DeletePostError, type DeletePostResponse, type DeleteProfileData, type DeleteProfileError, type DeleteProfileResponse, type DeleteQueueSlotData, type DeleteQueueSlotError, type DeleteQueueSlotResponse, type DeleteTelegramCommandsData, type DeleteTelegramCommandsError, type DeleteTelegramCommandsResponse, type DeleteWebhookSettingsData, type DeleteWebhookSettingsError, type DeleteWebhookSettingsResponse, type DownloadBlueskyMediaData, type DownloadBlueskyMediaError, type DownloadBlueskyMediaResponse, type DownloadFacebookVideoData, type DownloadFacebookVideoError, type DownloadFacebookVideoResponse, type DownloadFormat, type DownloadInstagramMediaData, type DownloadInstagramMediaError, type DownloadInstagramMediaResponse, type DownloadLinkedInVideoData, type DownloadLinkedInVideoError, type DownloadLinkedInVideoResponse, type DownloadResponse, type DownloadTikTokVideoData, type DownloadTikTokVideoError, type DownloadTikTokVideoResponse, type DownloadTwitterMediaData, type DownloadTwitterMediaError, type DownloadTwitterMediaResponse, type DownloadYouTubeVideoData, type DownloadYouTubeVideoError, type DownloadYouTubeVideoResponse, type EditInboxMessageData, type EditInboxMessageError, type EditInboxMessageResponse, type ErrorResponse, type FacebookPlatformData, type FollowerStatsResponse, type FoodMenu, type FoodMenuItem, type FoodMenuItemAttributes, type FoodMenuLabel, type FoodMenuSection, type GetAccountHealthData, type GetAccountHealthError, type GetAccountHealthResponse, type GetAllAccountsHealthData, type GetAllAccountsHealthError, type GetAllAccountsHealthResponse, type GetAnalyticsData, type GetAnalyticsError, type GetAnalyticsResponse, type GetConnectUrlData, type GetConnectUrlError, type GetConnectUrlResponse, type GetFacebookPagesData, type GetFacebookPagesError, type GetFacebookPagesResponse, type GetFollowerStatsData, type GetFollowerStatsError, type GetFollowerStatsResponse, type GetGmbLocationsData, type GetGmbLocationsError, type GetGmbLocationsResponse, type GetGoogleBusinessAttributesData, type GetGoogleBusinessAttributesError, type GetGoogleBusinessAttributesResponse, type GetGoogleBusinessFoodMenusData, type GetGoogleBusinessFoodMenusError, type GetGoogleBusinessFoodMenusResponse, type GetGoogleBusinessLocationDetailsData, type GetGoogleBusinessLocationDetailsError, type GetGoogleBusinessLocationDetailsResponse, type GetGoogleBusinessReviewsData, type GetGoogleBusinessReviewsError, type GetGoogleBusinessReviewsResponse, type GetInboxConversationData, type GetInboxConversationError, type GetInboxConversationMessagesData, type GetInboxConversationMessagesError, type GetInboxConversationMessagesResponse, type GetInboxConversationResponse, type GetInboxPostCommentsData, type GetInboxPostCommentsError, type GetInboxPostCommentsResponse, type GetInstagramIceBreakersData, type GetInstagramIceBreakersError, type GetInstagramIceBreakersResponse, type GetLinkedInAggregateAnalyticsData, type GetLinkedInAggregateAnalyticsError, type GetLinkedInAggregateAnalyticsResponse, type GetLinkedInMentionsData, type GetLinkedInMentionsError, type GetLinkedInMentionsResponse, type GetLinkedInOrganizationsData, type GetLinkedInOrganizationsError, type GetLinkedInOrganizationsResponse, type GetLinkedInPostAnalyticsData, type GetLinkedInPostAnalyticsError, type GetLinkedInPostAnalyticsResponse, type GetMediaPresignedUrlData, type GetMediaPresignedUrlError, type GetMediaPresignedUrlResponse, type GetMessengerMenuData, type GetMessengerMenuError, type GetMessengerMenuResponse, type GetNextQueueSlotData, type GetNextQueueSlotError, type GetNextQueueSlotResponse, type GetPendingOAuthDataData, type GetPendingOAuthDataError, type GetPendingOAuthDataResponse, type GetPinterestBoardsData, type GetPinterestBoardsError, type GetPinterestBoardsResponse, type GetPostData, type GetPostError, type GetPostLogsData, type GetPostLogsError, type GetPostLogsResponse, type GetPostResponse, type GetProfileData, type GetProfileError, type GetProfileResponse, type GetRedditFeedData, type GetRedditFeedError, type GetRedditFeedResponse, type GetRedditFlairsData, type GetRedditFlairsError, type GetRedditFlairsResponse, type GetRedditSubredditsData, type GetRedditSubredditsError, type GetRedditSubredditsResponse, type GetTelegramCommandsData, type GetTelegramCommandsError, type GetTelegramCommandsResponse, type GetTelegramConnectStatusData, type GetTelegramConnectStatusError, type GetTelegramConnectStatusResponse, type GetUsageStatsError, type GetUsageStatsResponse, type GetUserData, type GetUserError, type GetUserResponse, type GetWebhookLogsData, type GetWebhookLogsError, type GetWebhookLogsResponse, type GetWebhookSettingsError, type GetWebhookSettingsResponse, type GetYouTubeDailyViewsData, type GetYouTubeDailyViewsError, type GetYouTubeDailyViewsResponse, type GetYouTubeTranscriptData, type GetYouTubeTranscriptError, type GetYouTubeTranscriptResponse, type GoogleBusinessPlatformData, type HandleOAuthCallbackData, type HandleOAuthCallbackError, type HandleOAuthCallbackResponse, type HashtagCheckResponse, type HashtagInfo, type HideInboxCommentData, type HideInboxCommentError, type HideInboxCommentResponse, type InitiateTelegramConnectData, type InitiateTelegramConnectError, type InitiateTelegramConnectResponse, type InstagramPlatformData, Late, LateApiError, type LikeInboxCommentData, type LikeInboxCommentError, type LikeInboxCommentResponse, type LinkedInAggregateAnalyticsDailyResponse, type LinkedInAggregateAnalyticsTotalResponse, type LinkedInPlatformData, type ListAccountGroupsError, type ListAccountGroupsResponse, type ListAccountsData, type ListAccountsError, type ListAccountsResponse, type ListApiKeysError, type ListApiKeysResponse, type ListConnectionLogsData, type ListConnectionLogsError, type ListConnectionLogsResponse, type ListFacebookPagesData, type ListFacebookPagesError, type ListFacebookPagesResponse, type ListGoogleBusinessLocationsData, type ListGoogleBusinessLocationsError, type ListGoogleBusinessLocationsResponse, type ListGoogleBusinessMediaData, type ListGoogleBusinessMediaError, type ListGoogleBusinessMediaResponse, type ListGoogleBusinessPlaceActionsData, type ListGoogleBusinessPlaceActionsError, type ListGoogleBusinessPlaceActionsResponse, type ListInboxCommentsData, type ListInboxCommentsError, type ListInboxCommentsResponse, type ListInboxConversationsData, type ListInboxConversationsError, type ListInboxConversationsResponse, type ListInboxReviewsData, type ListInboxReviewsError, type ListInboxReviewsResponse, type ListLinkedInOrganizationsData, type ListLinkedInOrganizationsError, type ListLinkedInOrganizationsResponse, type ListPinterestBoardsForSelectionData, type ListPinterestBoardsForSelectionError, type ListPinterestBoardsForSelectionResponse, type ListPostsData, type ListPostsError, type ListPostsLogsData, type ListPostsLogsError, type ListPostsLogsResponse, type ListPostsResponse, type ListProfilesData, type ListProfilesError, type ListProfilesResponse, type ListQueueSlotsData, type ListQueueSlotsError, type ListQueueSlotsResponse, type ListSnapchatProfilesData, type ListSnapchatProfilesError, type ListSnapchatProfilesResponse, type ListUsersError, type ListUsersResponse, type MediaItem, type MediaUploadResponse, type Money, type Pagination, type ParameterLimitParam, type ParameterPageParam, type PinterestPlatformData, type PlatformAnalytics, type PlatformTarget, type Post, type PostAnalytics, type PostCreateResponse, type PostDeleteResponse, type PostGetResponse, type PostLog, type PostRetryResponse, type PostUpdateResponse, type PostsListResponse, type PreviewQueueData, type PreviewQueueError, type PreviewQueueResponse, type Profile, type ProfileCreateResponse, type ProfileDeleteResponse, type ProfileGetResponse, type ProfileUpdateResponse, type ProfilesListResponse, type QueueDeleteResponse, type QueueNextSlotResponse, type QueuePreviewResponse, type QueueSchedule, type QueueSlot, type QueueSlotsResponse, type QueueUpdateResponse, RateLimitError, type RedditPlatformData, type ReplyToInboxPostData, type ReplyToInboxPostError, type ReplyToInboxPostResponse, type ReplyToInboxReviewData, type ReplyToInboxReviewError, type ReplyToInboxReviewResponse, type RetryPostData, type RetryPostError, type RetryPostResponse, type SearchRedditData, type SearchRedditError, type SearchRedditResponse, type SelectFacebookPageData, type SelectFacebookPageError, type SelectFacebookPageResponse, type SelectGoogleBusinessLocationData, type SelectGoogleBusinessLocationError, type SelectGoogleBusinessLocationResponse, type SelectLinkedInOrganizationData, type SelectLinkedInOrganizationError, type SelectLinkedInOrganizationResponse, type SelectPinterestBoardData, type SelectPinterestBoardError, type SelectPinterestBoardResponse, type SelectSnapchatProfileData, type SelectSnapchatProfileError, type SelectSnapchatProfileResponse, type SendInboxMessageData, type SendInboxMessageError, type SendInboxMessageResponse, type SendPrivateReplyToCommentData, type SendPrivateReplyToCommentError, type SendPrivateReplyToCommentResponse, type SetInstagramIceBreakersData, type SetInstagramIceBreakersError, type SetInstagramIceBreakersResponse, type SetMessengerMenuData, type SetMessengerMenuError, type SetMessengerMenuResponse, type SetTelegramCommandsData, type SetTelegramCommandsError, type SetTelegramCommandsResponse, type SnapchatPlatformData, type SocialAccount, type TelegramPlatformData, type TestWebhookData, type TestWebhookError, type TestWebhookResponse, type ThreadsPlatformData, type TikTokPlatformData, type TranscriptResponse, type TranscriptSegment, type TwitterPlatformData, type UnhideInboxCommentData, type UnhideInboxCommentError, type UnhideInboxCommentResponse, type UnlikeInboxCommentData, type UnlikeInboxCommentError, type UnlikeInboxCommentResponse, type UnpublishPostData, type UnpublishPostError, type UnpublishPostResponse, type UpdateAccountData, type UpdateAccountError, type UpdateAccountGroupData, type UpdateAccountGroupError, type UpdateAccountGroupResponse, type UpdateAccountResponse, type UpdateFacebookPageData, type UpdateFacebookPageError, type UpdateFacebookPageResponse, type UpdateGmbLocationData, type UpdateGmbLocationError, type UpdateGmbLocationResponse, type UpdateGoogleBusinessAttributesData, type UpdateGoogleBusinessAttributesError, type UpdateGoogleBusinessAttributesResponse, type UpdateGoogleBusinessFoodMenusData, type UpdateGoogleBusinessFoodMenusError, type UpdateGoogleBusinessFoodMenusResponse, type UpdateGoogleBusinessLocationDetailsData, type UpdateGoogleBusinessLocationDetailsError, type UpdateGoogleBusinessLocationDetailsResponse, type UpdateInboxConversationData, type UpdateInboxConversationError, type UpdateInboxConversationResponse, type UpdateLinkedInOrganizationData, type UpdateLinkedInOrganizationError, type UpdateLinkedInOrganizationResponse, type UpdatePinterestBoardsData, type UpdatePinterestBoardsError, type UpdatePinterestBoardsResponse, type UpdatePostData, type UpdatePostError, type UpdatePostResponse, type UpdateProfileData, type UpdateProfileError, type UpdateProfileResponse, type UpdateQueueSlotData, type UpdateQueueSlotError, type UpdateQueueSlotResponse, type UpdateRedditSubredditsData, type UpdateRedditSubredditsError, type UpdateRedditSubredditsResponse, type UpdateWebhookSettingsData, type UpdateWebhookSettingsError, type UpdateWebhookSettingsResponse, type UploadTokenResponse, type UploadTokenStatusResponse, type UploadedFile, type UsageStats, type User, type UserGetResponse, type UsersListResponse, ValidationError, type Webhook, type WebhookLog, type WebhookPayloadAccountConnected, type WebhookPayloadAccountDisconnected, type WebhookPayloadComment, type WebhookPayloadMessage, type WebhookPayloadPost, type YouTubeDailyViewsResponse, type YouTubePlatformData, type YouTubeScopeMissingResponse, type action, type aggregation, type aggregation2, type aggregation3, type billingPeriod, type commercialContentType, type connectionMethod, type contentType, type contentType2, type contentType3, Late as default, type direction, type disconnectionType, type errorCategory, type errorSource, type event, type event2, type event3, type event4, type event5, type event6, type eventType, type graduationStrategy, type mediaType, parseApiError, type parseMode, type permission, type platform, type platform2, type platform3, type replySettings, type scope, type status, type status2, type status3, type status4, type status5, type status6, type type, type type2, type type3, type visibility };
6371
+ export { type AccountGetResponse, type AccountWithFollowerStats, type AccountsListResponse, type AnalyticsListResponse, type AnalyticsOverview, type AnalyticsSinglePostResponse, type ApiKey, type BlueskyPlatformData, type BulkUploadPostsData, type BulkUploadPostsError, type BulkUploadPostsResponse, type CaptionResponse, type CheckInstagramHashtagsData, type CheckInstagramHashtagsError, type CheckInstagramHashtagsResponse, type ClientOptions, type CompleteTelegramConnectData, type CompleteTelegramConnectError, type CompleteTelegramConnectResponse, type ConnectBlueskyCredentialsData, type ConnectBlueskyCredentialsError, type ConnectBlueskyCredentialsResponse, type ConnectionLog, type CreateAccountGroupData, type CreateAccountGroupError, type CreateAccountGroupResponse, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyResponse, type CreateGoogleBusinessMediaData, type CreateGoogleBusinessMediaError, type CreateGoogleBusinessMediaResponse, type CreateGoogleBusinessPlaceActionData, type CreateGoogleBusinessPlaceActionError, type CreateGoogleBusinessPlaceActionResponse, type CreateInviteTokenData, type CreateInviteTokenError, type CreateInviteTokenResponse, type CreatePostData, type CreatePostError, type CreatePostResponse, type CreateProfileData, type CreateProfileError, type CreateProfileResponse, type CreateQueueSlotData, type CreateQueueSlotError, type CreateQueueSlotResponse, type CreateWebhookSettingsData, type CreateWebhookSettingsError, type CreateWebhookSettingsResponse, type DeleteAccountData, type DeleteAccountError, type DeleteAccountGroupData, type DeleteAccountGroupError, type DeleteAccountGroupResponse, type DeleteAccountResponse, type DeleteApiKeyData, type DeleteApiKeyError, type DeleteApiKeyResponse, type DeleteGoogleBusinessMediaData, type DeleteGoogleBusinessMediaError, type DeleteGoogleBusinessMediaResponse, type DeleteGoogleBusinessPlaceActionData, type DeleteGoogleBusinessPlaceActionError, type DeleteGoogleBusinessPlaceActionResponse, type DeleteInboxCommentData, type DeleteInboxCommentError, type DeleteInboxCommentResponse, type DeleteInboxReviewReplyData, type DeleteInboxReviewReplyError, type DeleteInboxReviewReplyResponse, type DeleteInstagramIceBreakersData, type DeleteInstagramIceBreakersError, type DeleteInstagramIceBreakersResponse, type DeleteMessengerMenuData, type DeleteMessengerMenuError, type DeleteMessengerMenuResponse, type DeletePostData, type DeletePostError, type DeletePostResponse, type DeleteProfileData, type DeleteProfileError, type DeleteProfileResponse, type DeleteQueueSlotData, type DeleteQueueSlotError, type DeleteQueueSlotResponse, type DeleteTelegramCommandsData, type DeleteTelegramCommandsError, type DeleteTelegramCommandsResponse, type DeleteWebhookSettingsData, type DeleteWebhookSettingsError, type DeleteWebhookSettingsResponse, type DownloadBlueskyMediaData, type DownloadBlueskyMediaError, type DownloadBlueskyMediaResponse, type DownloadFacebookVideoData, type DownloadFacebookVideoError, type DownloadFacebookVideoResponse, type DownloadFormat, type DownloadInstagramMediaData, type DownloadInstagramMediaError, type DownloadInstagramMediaResponse, type DownloadLinkedInVideoData, type DownloadLinkedInVideoError, type DownloadLinkedInVideoResponse, type DownloadResponse, type DownloadTikTokVideoData, type DownloadTikTokVideoError, type DownloadTikTokVideoResponse, type DownloadTwitterMediaData, type DownloadTwitterMediaError, type DownloadTwitterMediaResponse, type DownloadYouTubeVideoData, type DownloadYouTubeVideoError, type DownloadYouTubeVideoResponse, type EditInboxMessageData, type EditInboxMessageError, type EditInboxMessageResponse, type ErrorResponse, type FacebookPlatformData, type FollowerStatsResponse, type FoodMenu, type FoodMenuItem, type FoodMenuItemAttributes, type FoodMenuLabel, type FoodMenuSection, type GetAccountHealthData, type GetAccountHealthError, type GetAccountHealthResponse, type GetAllAccountsHealthData, type GetAllAccountsHealthError, type GetAllAccountsHealthResponse, type GetAnalyticsData, type GetAnalyticsError, type GetAnalyticsResponse, type GetBestTimeToPostData, type GetBestTimeToPostError, type GetBestTimeToPostResponse, type GetConnectUrlData, type GetConnectUrlError, type GetConnectUrlResponse, type GetContentDecayData, type GetContentDecayError, type GetContentDecayResponse, type GetDailyMetricsData, type GetDailyMetricsError, type GetDailyMetricsResponse, type GetFacebookPagesData, type GetFacebookPagesError, type GetFacebookPagesResponse, type GetFollowerStatsData, type GetFollowerStatsError, type GetFollowerStatsResponse, type GetGmbLocationsData, type GetGmbLocationsError, type GetGmbLocationsResponse, type GetGoogleBusinessAttributesData, type GetGoogleBusinessAttributesError, type GetGoogleBusinessAttributesResponse, type GetGoogleBusinessFoodMenusData, type GetGoogleBusinessFoodMenusError, type GetGoogleBusinessFoodMenusResponse, type GetGoogleBusinessLocationDetailsData, type GetGoogleBusinessLocationDetailsError, type GetGoogleBusinessLocationDetailsResponse, type GetGoogleBusinessReviewsData, type GetGoogleBusinessReviewsError, type GetGoogleBusinessReviewsResponse, type GetInboxConversationData, type GetInboxConversationError, type GetInboxConversationMessagesData, type GetInboxConversationMessagesError, type GetInboxConversationMessagesResponse, type GetInboxConversationResponse, type GetInboxPostCommentsData, type GetInboxPostCommentsError, type GetInboxPostCommentsResponse, type GetInstagramIceBreakersData, type GetInstagramIceBreakersError, type GetInstagramIceBreakersResponse, type GetLinkedInAggregateAnalyticsData, type GetLinkedInAggregateAnalyticsError, type GetLinkedInAggregateAnalyticsResponse, type GetLinkedInMentionsData, type GetLinkedInMentionsError, type GetLinkedInMentionsResponse, type GetLinkedInOrganizationsData, type GetLinkedInOrganizationsError, type GetLinkedInOrganizationsResponse, type GetLinkedInPostAnalyticsData, type GetLinkedInPostAnalyticsError, type GetLinkedInPostAnalyticsResponse, type GetMediaPresignedUrlData, type GetMediaPresignedUrlError, type GetMediaPresignedUrlResponse, type GetMessengerMenuData, type GetMessengerMenuError, type GetMessengerMenuResponse, type GetNextQueueSlotData, type GetNextQueueSlotError, type GetNextQueueSlotResponse, type GetPendingOAuthDataData, type GetPendingOAuthDataError, type GetPendingOAuthDataResponse, type GetPinterestBoardsData, type GetPinterestBoardsError, type GetPinterestBoardsResponse, type GetPostData, type GetPostError, type GetPostLogsData, type GetPostLogsError, type GetPostLogsResponse, type GetPostResponse, type GetPostingFrequencyData, type GetPostingFrequencyError, type GetPostingFrequencyResponse, type GetProfileData, type GetProfileError, type GetProfileResponse, type GetRedditFeedData, type GetRedditFeedError, type GetRedditFeedResponse, type GetRedditFlairsData, type GetRedditFlairsError, type GetRedditFlairsResponse, type GetRedditSubredditsData, type GetRedditSubredditsError, type GetRedditSubredditsResponse, type GetTelegramCommandsData, type GetTelegramCommandsError, type GetTelegramCommandsResponse, type GetTelegramConnectStatusData, type GetTelegramConnectStatusError, type GetTelegramConnectStatusResponse, type GetUsageStatsError, type GetUsageStatsResponse, type GetUserData, type GetUserError, type GetUserResponse, type GetWebhookLogsData, type GetWebhookLogsError, type GetWebhookLogsResponse, type GetWebhookSettingsError, type GetWebhookSettingsResponse, type GetYouTubeDailyViewsData, type GetYouTubeDailyViewsError, type GetYouTubeDailyViewsResponse, type GetYouTubeTranscriptData, type GetYouTubeTranscriptError, type GetYouTubeTranscriptResponse, type GoogleBusinessPlatformData, type HandleOAuthCallbackData, type HandleOAuthCallbackError, type HandleOAuthCallbackResponse, type HashtagCheckResponse, type HashtagInfo, type HideInboxCommentData, type HideInboxCommentError, type HideInboxCommentResponse, type InitiateTelegramConnectData, type InitiateTelegramConnectError, type InitiateTelegramConnectResponse, type InstagramPlatformData, Late, LateApiError, type LikeInboxCommentData, type LikeInboxCommentError, type LikeInboxCommentResponse, type LinkedInAggregateAnalyticsDailyResponse, type LinkedInAggregateAnalyticsTotalResponse, type LinkedInPlatformData, type ListAccountGroupsError, type ListAccountGroupsResponse, type ListAccountsData, type ListAccountsError, type ListAccountsResponse, type ListApiKeysError, type ListApiKeysResponse, type ListConnectionLogsData, type ListConnectionLogsError, type ListConnectionLogsResponse, type ListFacebookPagesData, type ListFacebookPagesError, type ListFacebookPagesResponse, type ListGoogleBusinessLocationsData, type ListGoogleBusinessLocationsError, type ListGoogleBusinessLocationsResponse, type ListGoogleBusinessMediaData, type ListGoogleBusinessMediaError, type ListGoogleBusinessMediaResponse, type ListGoogleBusinessPlaceActionsData, type ListGoogleBusinessPlaceActionsError, type ListGoogleBusinessPlaceActionsResponse, type ListInboxCommentsData, type ListInboxCommentsError, type ListInboxCommentsResponse, type ListInboxConversationsData, type ListInboxConversationsError, type ListInboxConversationsResponse, type ListInboxReviewsData, type ListInboxReviewsError, type ListInboxReviewsResponse, type ListLinkedInOrganizationsData, type ListLinkedInOrganizationsError, type ListLinkedInOrganizationsResponse, type ListPinterestBoardsForSelectionData, type ListPinterestBoardsForSelectionError, type ListPinterestBoardsForSelectionResponse, type ListPostsData, type ListPostsError, type ListPostsLogsData, type ListPostsLogsError, type ListPostsLogsResponse, type ListPostsResponse, type ListProfilesData, type ListProfilesError, type ListProfilesResponse, type ListQueueSlotsData, type ListQueueSlotsError, type ListQueueSlotsResponse, type ListSnapchatProfilesData, type ListSnapchatProfilesError, type ListSnapchatProfilesResponse, type ListUsersError, type ListUsersResponse, type MediaItem, type MediaUploadResponse, type Money, type Pagination, type ParameterLimitParam, type ParameterPageParam, type PinterestPlatformData, type PlatformAnalytics, type PlatformTarget, type Post, type PostAnalytics, type PostCreateResponse, type PostDeleteResponse, type PostGetResponse, type PostLog, type PostRetryResponse, type PostUpdateResponse, type PostsListResponse, type PreviewQueueData, type PreviewQueueError, type PreviewQueueResponse, type Profile, type ProfileCreateResponse, type ProfileDeleteResponse, type ProfileGetResponse, type ProfileUpdateResponse, type ProfilesListResponse, type QueueDeleteResponse, type QueueNextSlotResponse, type QueuePreviewResponse, type QueueSchedule, type QueueSlot, type QueueSlotsResponse, type QueueUpdateResponse, RateLimitError, type RedditPlatformData, type ReplyToInboxPostData, type ReplyToInboxPostError, type ReplyToInboxPostResponse, type ReplyToInboxReviewData, type ReplyToInboxReviewError, type ReplyToInboxReviewResponse, type RetryPostData, type RetryPostError, type RetryPostResponse, type SearchRedditData, type SearchRedditError, type SearchRedditResponse, type SelectFacebookPageData, type SelectFacebookPageError, type SelectFacebookPageResponse, type SelectGoogleBusinessLocationData, type SelectGoogleBusinessLocationError, type SelectGoogleBusinessLocationResponse, type SelectLinkedInOrganizationData, type SelectLinkedInOrganizationError, type SelectLinkedInOrganizationResponse, type SelectPinterestBoardData, type SelectPinterestBoardError, type SelectPinterestBoardResponse, type SelectSnapchatProfileData, type SelectSnapchatProfileError, type SelectSnapchatProfileResponse, type SendInboxMessageData, type SendInboxMessageError, type SendInboxMessageResponse, type SendPrivateReplyToCommentData, type SendPrivateReplyToCommentError, type SendPrivateReplyToCommentResponse, type SetInstagramIceBreakersData, type SetInstagramIceBreakersError, type SetInstagramIceBreakersResponse, type SetMessengerMenuData, type SetMessengerMenuError, type SetMessengerMenuResponse, type SetTelegramCommandsData, type SetTelegramCommandsError, type SetTelegramCommandsResponse, type SnapchatPlatformData, type SocialAccount, type TelegramPlatformData, type TestWebhookData, type TestWebhookError, type TestWebhookResponse, type ThreadsPlatformData, type TikTokPlatformData, type TranscriptResponse, type TranscriptSegment, type TwitterPlatformData, type UnhideInboxCommentData, type UnhideInboxCommentError, type UnhideInboxCommentResponse, type UnlikeInboxCommentData, type UnlikeInboxCommentError, type UnlikeInboxCommentResponse, type UnpublishPostData, type UnpublishPostError, type UnpublishPostResponse, type UpdateAccountData, type UpdateAccountError, type UpdateAccountGroupData, type UpdateAccountGroupError, type UpdateAccountGroupResponse, type UpdateAccountResponse, type UpdateFacebookPageData, type UpdateFacebookPageError, type UpdateFacebookPageResponse, type UpdateGmbLocationData, type UpdateGmbLocationError, type UpdateGmbLocationResponse, type UpdateGoogleBusinessAttributesData, type UpdateGoogleBusinessAttributesError, type UpdateGoogleBusinessAttributesResponse, type UpdateGoogleBusinessFoodMenusData, type UpdateGoogleBusinessFoodMenusError, type UpdateGoogleBusinessFoodMenusResponse, type UpdateGoogleBusinessLocationDetailsData, type UpdateGoogleBusinessLocationDetailsError, type UpdateGoogleBusinessLocationDetailsResponse, type UpdateInboxConversationData, type UpdateInboxConversationError, type UpdateInboxConversationResponse, type UpdateLinkedInOrganizationData, type UpdateLinkedInOrganizationError, type UpdateLinkedInOrganizationResponse, type UpdatePinterestBoardsData, type UpdatePinterestBoardsError, type UpdatePinterestBoardsResponse, type UpdatePostData, type UpdatePostError, type UpdatePostResponse, type UpdateProfileData, type UpdateProfileError, type UpdateProfileResponse, type UpdateQueueSlotData, type UpdateQueueSlotError, type UpdateQueueSlotResponse, type UpdateRedditSubredditsData, type UpdateRedditSubredditsError, type UpdateRedditSubredditsResponse, type UpdateWebhookSettingsData, type UpdateWebhookSettingsError, type UpdateWebhookSettingsResponse, type UploadTokenResponse, type UploadTokenStatusResponse, type UploadedFile, type UsageStats, type User, type UserGetResponse, type UsersListResponse, type ValidateMediaData, type ValidateMediaError, type ValidateMediaResponse, type ValidatePostData, type ValidatePostError, type ValidatePostLengthData, type ValidatePostLengthError, type ValidatePostLengthResponse, type ValidatePostResponse, type ValidateSubredditData, type ValidateSubredditError, type ValidateSubredditResponse, ValidationError, type Webhook, type WebhookLog, type WebhookPayloadAccountConnected, type WebhookPayloadAccountDisconnected, type WebhookPayloadComment, type WebhookPayloadMessage, type WebhookPayloadPost, type YouTubeDailyViewsResponse, type YouTubePlatformData, type YouTubeScopeMissingResponse, type action, type aggregation, type aggregation2, type aggregation3, type billingPeriod, type commercialContentType, type connectionMethod, type contentType, type contentType2, type contentType3, Late as default, type direction, type disconnectionType, type errorCategory, type errorSource, type event, type event2, type event3, type event4, type event5, type event6, type eventType, type graduationStrategy, type mediaType, parseApiError, type parseMode, type permission, type platform, type platform2, type platform3, type replySettings, type scope, type status, type status2, type status3, type status4, type status5, type status6, type type, type type2, type type3, type visibility };
package/dist/index.js CHANGED
@@ -326,6 +326,30 @@ var downloadBlueskyMedia = (options) => {
326
326
  url: "/v1/tools/bluesky/download"
327
327
  });
328
328
  };
329
+ var validatePostLength = (options) => {
330
+ return (options?.client ?? client).post({
331
+ ...options,
332
+ url: "/v1/tools/validate/post-length"
333
+ });
334
+ };
335
+ var validatePost = (options) => {
336
+ return (options?.client ?? client).post({
337
+ ...options,
338
+ url: "/v1/tools/validate/post"
339
+ });
340
+ };
341
+ var validateMedia = (options) => {
342
+ return (options?.client ?? client).post({
343
+ ...options,
344
+ url: "/v1/tools/validate/media"
345
+ });
346
+ };
347
+ var validateSubreddit = (options) => {
348
+ return (options?.client ?? client).get({
349
+ ...options,
350
+ url: "/v1/tools/validate/subreddit"
351
+ });
352
+ };
329
353
  var getAnalytics = (options) => {
330
354
  return (options?.client ?? client).get({
331
355
  ...options,
@@ -338,6 +362,30 @@ var getYouTubeDailyViews = (options) => {
338
362
  url: "/v1/analytics/youtube/daily-views"
339
363
  });
340
364
  };
365
+ var getDailyMetrics = (options) => {
366
+ return (options?.client ?? client).get({
367
+ ...options,
368
+ url: "/v1/analytics/daily-metrics"
369
+ });
370
+ };
371
+ var getBestTimeToPost = (options) => {
372
+ return (options?.client ?? client).get({
373
+ ...options,
374
+ url: "/v1/analytics/best-time"
375
+ });
376
+ };
377
+ var getContentDecay = (options) => {
378
+ return (options?.client ?? client).get({
379
+ ...options,
380
+ url: "/v1/analytics/content-decay"
381
+ });
382
+ };
383
+ var getPostingFrequency = (options) => {
384
+ return (options?.client ?? client).get({
385
+ ...options,
386
+ url: "/v1/analytics/posting-frequency"
387
+ });
388
+ };
341
389
  var listAccountGroups = (options) => {
342
390
  return (options?.client ?? client).get({
343
391
  ...options,
@@ -1173,12 +1221,25 @@ var Late = class {
1173
1221
  downloadLinkedInVideo,
1174
1222
  downloadBlueskyMedia
1175
1223
  };
1224
+ /**
1225
+ * validate API
1226
+ */
1227
+ this.validate = {
1228
+ validatePostLength,
1229
+ validatePost,
1230
+ validateMedia,
1231
+ validateSubreddit
1232
+ };
1176
1233
  /**
1177
1234
  * Analytics API - Get performance metrics
1178
1235
  */
1179
1236
  this.analytics = {
1180
1237
  getAnalytics,
1181
1238
  getYouTubeDailyViews,
1239
+ getDailyMetrics,
1240
+ getBestTimeToPost,
1241
+ getContentDecay,
1242
+ getPostingFrequency,
1182
1243
  getLinkedInAggregateAnalytics,
1183
1244
  getLinkedInPostAnalytics
1184
1245
  };
package/dist/index.mjs CHANGED
@@ -297,6 +297,30 @@ var downloadBlueskyMedia = (options) => {
297
297
  url: "/v1/tools/bluesky/download"
298
298
  });
299
299
  };
300
+ var validatePostLength = (options) => {
301
+ return (options?.client ?? client).post({
302
+ ...options,
303
+ url: "/v1/tools/validate/post-length"
304
+ });
305
+ };
306
+ var validatePost = (options) => {
307
+ return (options?.client ?? client).post({
308
+ ...options,
309
+ url: "/v1/tools/validate/post"
310
+ });
311
+ };
312
+ var validateMedia = (options) => {
313
+ return (options?.client ?? client).post({
314
+ ...options,
315
+ url: "/v1/tools/validate/media"
316
+ });
317
+ };
318
+ var validateSubreddit = (options) => {
319
+ return (options?.client ?? client).get({
320
+ ...options,
321
+ url: "/v1/tools/validate/subreddit"
322
+ });
323
+ };
300
324
  var getAnalytics = (options) => {
301
325
  return (options?.client ?? client).get({
302
326
  ...options,
@@ -309,6 +333,30 @@ var getYouTubeDailyViews = (options) => {
309
333
  url: "/v1/analytics/youtube/daily-views"
310
334
  });
311
335
  };
336
+ var getDailyMetrics = (options) => {
337
+ return (options?.client ?? client).get({
338
+ ...options,
339
+ url: "/v1/analytics/daily-metrics"
340
+ });
341
+ };
342
+ var getBestTimeToPost = (options) => {
343
+ return (options?.client ?? client).get({
344
+ ...options,
345
+ url: "/v1/analytics/best-time"
346
+ });
347
+ };
348
+ var getContentDecay = (options) => {
349
+ return (options?.client ?? client).get({
350
+ ...options,
351
+ url: "/v1/analytics/content-decay"
352
+ });
353
+ };
354
+ var getPostingFrequency = (options) => {
355
+ return (options?.client ?? client).get({
356
+ ...options,
357
+ url: "/v1/analytics/posting-frequency"
358
+ });
359
+ };
312
360
  var listAccountGroups = (options) => {
313
361
  return (options?.client ?? client).get({
314
362
  ...options,
@@ -1144,12 +1192,25 @@ var Late = class {
1144
1192
  downloadLinkedInVideo,
1145
1193
  downloadBlueskyMedia
1146
1194
  };
1195
+ /**
1196
+ * validate API
1197
+ */
1198
+ this.validate = {
1199
+ validatePostLength,
1200
+ validatePost,
1201
+ validateMedia,
1202
+ validateSubreddit
1203
+ };
1147
1204
  /**
1148
1205
  * Analytics API - Get performance metrics
1149
1206
  */
1150
1207
  this.analytics = {
1151
1208
  getAnalytics,
1152
1209
  getYouTubeDailyViews,
1210
+ getDailyMetrics,
1211
+ getBestTimeToPost,
1212
+ getContentDecay,
1213
+ getPostingFrequency,
1153
1214
  getLinkedInAggregateAnalytics,
1154
1215
  getLinkedInPostAnalytics
1155
1216
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.1.32",
3
+ "version": "0.1.34",
4
4
  "description": "The official Node.js library for the Late API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/src/client.ts CHANGED
@@ -38,7 +38,10 @@ import {
38
38
  getAccountHealth,
39
39
  getAllAccountsHealth,
40
40
  getAnalytics,
41
+ getBestTimeToPost,
41
42
  getConnectUrl,
43
+ getContentDecay,
44
+ getDailyMetrics,
42
45
  getFacebookPages,
43
46
  getFollowerStats,
44
47
  getGmbLocations,
@@ -61,6 +64,7 @@ import {
61
64
  getPinterestBoards,
62
65
  getPost,
63
66
  getPostLogs,
67
+ getPostingFrequency,
64
68
  getProfile,
65
69
  getRedditFeed,
66
70
  getRedditFlairs,
@@ -130,6 +134,10 @@ import {
130
134
  updateQueueSlot,
131
135
  updateRedditSubreddits,
132
136
  updateWebhookSettings,
137
+ validateMedia,
138
+ validatePost,
139
+ validatePostLength,
140
+ validateSubreddit,
133
141
  } from './generated/sdk.gen';
134
142
 
135
143
  import { LateApiError, parseApiError } from './errors';
@@ -209,12 +217,26 @@ export class Late {
209
217
  downloadBlueskyMedia: downloadBlueskyMedia,
210
218
  };
211
219
 
220
+ /**
221
+ * validate API
222
+ */
223
+ validate = {
224
+ validatePostLength: validatePostLength,
225
+ validatePost: validatePost,
226
+ validateMedia: validateMedia,
227
+ validateSubreddit: validateSubreddit,
228
+ };
229
+
212
230
  /**
213
231
  * Analytics API - Get performance metrics
214
232
  */
215
233
  analytics = {
216
234
  getAnalytics: getAnalytics,
217
235
  getYouTubeDailyViews: getYouTubeDailyViews,
236
+ getDailyMetrics: getDailyMetrics,
237
+ getBestTimeToPost: getBestTimeToPost,
238
+ getContentDecay: getContentDecay,
239
+ getPostingFrequency: getPostingFrequency,
218
240
  getLinkedInAggregateAnalytics: getLinkedInAggregateAnalytics,
219
241
  getLinkedInPostAnalytics: getLinkedInPostAnalytics,
220
242
  };