@getlatedev/node 0.1.31 → 0.1.33
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 +4 -0
- package/dist/index.d.mts +185 -1
- package/dist/index.d.ts +185 -1
- package/dist/index.js +28 -0
- package/dist/index.mjs +28 -0
- package/package.json +1 -1
- package/src/client.ts +8 -0
- package/src/generated/sdk.gen.ts +59 -1
- package/src/generated/types.gen.ts +193 -0
package/README.md
CHANGED
|
@@ -203,8 +203,12 @@ try {
|
|
|
203
203
|
| Method | Description |
|
|
204
204
|
|--------|-------------|
|
|
205
205
|
| `analytics.getAnalytics()` | Get post analytics |
|
|
206
|
+
| `analytics.getBestTimeToPost()` | Get best times to post |
|
|
207
|
+
| `analytics.getContentDecay()` | Get content performance decay |
|
|
208
|
+
| `analytics.getDailyMetrics()` | Get daily aggregated metrics |
|
|
206
209
|
| `analytics.getLinkedInAggregateAnalytics()` | Get LinkedIn aggregate stats |
|
|
207
210
|
| `analytics.getLinkedInPostAnalytics()` | Get LinkedIn post stats |
|
|
211
|
+
| `analytics.getPostingFrequency()` | Get posting frequency vs engagement |
|
|
208
212
|
| `analytics.getYouTubeDailyViews()` | Get YouTube daily views |
|
|
209
213
|
|
|
210
214
|
### Account Groups
|
package/dist/index.d.mts
CHANGED
|
@@ -75,6 +75,10 @@ declare class Late {
|
|
|
75
75
|
analytics: {
|
|
76
76
|
getAnalytics: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<GetAnalyticsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetAnalyticsResponse, GetAnalyticsError, ThrowOnError>;
|
|
77
77
|
getYouTubeDailyViews: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetYouTubeDailyViewsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<YouTubeDailyViewsResponse, GetYouTubeDailyViewsError, ThrowOnError>;
|
|
78
|
+
getDailyMetrics: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<GetDailyMetricsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetDailyMetricsResponse, GetDailyMetricsError, ThrowOnError>;
|
|
79
|
+
getBestTimeToPost: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<GetBestTimeToPostData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetBestTimeToPostResponse, GetBestTimeToPostError, ThrowOnError>;
|
|
80
|
+
getContentDecay: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<GetContentDecayData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetContentDecayResponse, GetContentDecayError, ThrowOnError>;
|
|
81
|
+
getPostingFrequency: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<GetPostingFrequencyData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetPostingFrequencyResponse, GetPostingFrequencyError, ThrowOnError>;
|
|
78
82
|
getLinkedInAggregateAnalytics: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetLinkedInAggregateAnalyticsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetLinkedInAggregateAnalyticsResponse, unknown, ThrowOnError>;
|
|
79
83
|
getLinkedInPostAnalytics: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetLinkedInPostAnalyticsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetLinkedInPostAnalyticsResponse, unknown, ThrowOnError>;
|
|
80
84
|
};
|
|
@@ -1540,6 +1544,10 @@ type TranscriptSegment = {
|
|
|
1540
1544
|
duration?: number;
|
|
1541
1545
|
};
|
|
1542
1546
|
type TwitterPlatformData = {
|
|
1547
|
+
/**
|
|
1548
|
+
* Controls who can reply to the tweet. "following" allows only people you follow, "mentionedUsers" allows only mentioned users, "subscribers" allows only subscribers. Omit for default (everyone can reply). For threads, applies to the first tweet only.
|
|
1549
|
+
*/
|
|
1550
|
+
replySettings?: 'following' | 'mentionedUsers' | 'subscribers';
|
|
1543
1551
|
/**
|
|
1544
1552
|
* Sequence of tweets in a thread. First item is the root tweet.
|
|
1545
1553
|
*/
|
|
@@ -1548,6 +1556,10 @@ type TwitterPlatformData = {
|
|
|
1548
1556
|
mediaItems?: Array<MediaItem>;
|
|
1549
1557
|
}>;
|
|
1550
1558
|
};
|
|
1559
|
+
/**
|
|
1560
|
+
* Controls who can reply to the tweet. "following" allows only people you follow, "mentionedUsers" allows only mentioned users, "subscribers" allows only subscribers. Omit for default (everyone can reply). For threads, applies to the first tweet only.
|
|
1561
|
+
*/
|
|
1562
|
+
type replySettings = 'following' | 'mentionedUsers' | 'subscribers';
|
|
1551
1563
|
type UploadedFile = {
|
|
1552
1564
|
type?: 'image' | 'video' | 'document';
|
|
1553
1565
|
url?: string;
|
|
@@ -2287,6 +2299,178 @@ type GetYouTubeDailyViewsError = ({
|
|
|
2287
2299
|
success?: boolean;
|
|
2288
2300
|
error?: string;
|
|
2289
2301
|
});
|
|
2302
|
+
type GetDailyMetricsData = {
|
|
2303
|
+
query?: {
|
|
2304
|
+
/**
|
|
2305
|
+
* Inclusive start date (ISO 8601). Defaults to 180 days ago.
|
|
2306
|
+
*/
|
|
2307
|
+
fromDate?: string;
|
|
2308
|
+
/**
|
|
2309
|
+
* Filter by platform (e.g. "instagram", "tiktok"). Omit for all platforms.
|
|
2310
|
+
*/
|
|
2311
|
+
platform?: string;
|
|
2312
|
+
/**
|
|
2313
|
+
* Filter by profile ID. Omit for all profiles.
|
|
2314
|
+
*/
|
|
2315
|
+
profileId?: string;
|
|
2316
|
+
/**
|
|
2317
|
+
* Inclusive end date (ISO 8601). Defaults to now.
|
|
2318
|
+
*/
|
|
2319
|
+
toDate?: string;
|
|
2320
|
+
};
|
|
2321
|
+
};
|
|
2322
|
+
type GetDailyMetricsResponse = ({
|
|
2323
|
+
dailyData?: Array<{
|
|
2324
|
+
date?: string;
|
|
2325
|
+
postCount?: number;
|
|
2326
|
+
platforms?: {
|
|
2327
|
+
[key: string]: (number);
|
|
2328
|
+
};
|
|
2329
|
+
metrics?: {
|
|
2330
|
+
impressions?: number;
|
|
2331
|
+
reach?: number;
|
|
2332
|
+
likes?: number;
|
|
2333
|
+
comments?: number;
|
|
2334
|
+
shares?: number;
|
|
2335
|
+
saves?: number;
|
|
2336
|
+
clicks?: number;
|
|
2337
|
+
views?: number;
|
|
2338
|
+
};
|
|
2339
|
+
}>;
|
|
2340
|
+
platformBreakdown?: Array<{
|
|
2341
|
+
platform?: string;
|
|
2342
|
+
postCount?: number;
|
|
2343
|
+
impressions?: number;
|
|
2344
|
+
reach?: number;
|
|
2345
|
+
likes?: number;
|
|
2346
|
+
comments?: number;
|
|
2347
|
+
shares?: number;
|
|
2348
|
+
saves?: number;
|
|
2349
|
+
clicks?: number;
|
|
2350
|
+
views?: number;
|
|
2351
|
+
}>;
|
|
2352
|
+
});
|
|
2353
|
+
type GetDailyMetricsError = ({
|
|
2354
|
+
error?: string;
|
|
2355
|
+
} | {
|
|
2356
|
+
error?: string;
|
|
2357
|
+
code?: string;
|
|
2358
|
+
});
|
|
2359
|
+
type GetBestTimeToPostData = {
|
|
2360
|
+
query?: {
|
|
2361
|
+
/**
|
|
2362
|
+
* Filter by platform (e.g. "instagram", "tiktok"). Omit for all platforms.
|
|
2363
|
+
*/
|
|
2364
|
+
platform?: string;
|
|
2365
|
+
/**
|
|
2366
|
+
* Filter by profile ID. Omit for all profiles.
|
|
2367
|
+
*/
|
|
2368
|
+
profileId?: string;
|
|
2369
|
+
};
|
|
2370
|
+
};
|
|
2371
|
+
type GetBestTimeToPostResponse = ({
|
|
2372
|
+
slots?: Array<{
|
|
2373
|
+
/**
|
|
2374
|
+
* 0=Monday, 6=Sunday
|
|
2375
|
+
*/
|
|
2376
|
+
day_of_week?: number;
|
|
2377
|
+
/**
|
|
2378
|
+
* Hour in UTC (0-23)
|
|
2379
|
+
*/
|
|
2380
|
+
hour?: number;
|
|
2381
|
+
/**
|
|
2382
|
+
* Average engagement (likes + comments + shares + saves)
|
|
2383
|
+
*/
|
|
2384
|
+
avg_engagement?: number;
|
|
2385
|
+
/**
|
|
2386
|
+
* Number of posts in this slot
|
|
2387
|
+
*/
|
|
2388
|
+
post_count?: number;
|
|
2389
|
+
}>;
|
|
2390
|
+
});
|
|
2391
|
+
type GetBestTimeToPostError = ({
|
|
2392
|
+
error?: string;
|
|
2393
|
+
} | {
|
|
2394
|
+
error?: string;
|
|
2395
|
+
requiresAddon?: boolean;
|
|
2396
|
+
});
|
|
2397
|
+
type GetContentDecayData = {
|
|
2398
|
+
query?: {
|
|
2399
|
+
/**
|
|
2400
|
+
* Filter by platform (e.g. "instagram", "tiktok"). Omit for all platforms.
|
|
2401
|
+
*/
|
|
2402
|
+
platform?: string;
|
|
2403
|
+
/**
|
|
2404
|
+
* Filter by profile ID. Omit for all profiles.
|
|
2405
|
+
*/
|
|
2406
|
+
profileId?: string;
|
|
2407
|
+
};
|
|
2408
|
+
};
|
|
2409
|
+
type GetContentDecayResponse = ({
|
|
2410
|
+
buckets?: Array<{
|
|
2411
|
+
/**
|
|
2412
|
+
* Sort order (0 = earliest, 6 = latest)
|
|
2413
|
+
*/
|
|
2414
|
+
bucket_order?: number;
|
|
2415
|
+
/**
|
|
2416
|
+
* Human-readable label
|
|
2417
|
+
*/
|
|
2418
|
+
bucket_label?: string;
|
|
2419
|
+
/**
|
|
2420
|
+
* Average % of final engagement reached (0-100)
|
|
2421
|
+
*/
|
|
2422
|
+
avg_pct_of_final?: number;
|
|
2423
|
+
/**
|
|
2424
|
+
* Number of posts with data in this bucket
|
|
2425
|
+
*/
|
|
2426
|
+
post_count?: number;
|
|
2427
|
+
}>;
|
|
2428
|
+
});
|
|
2429
|
+
type GetContentDecayError = ({
|
|
2430
|
+
error?: string;
|
|
2431
|
+
} | {
|
|
2432
|
+
error?: string;
|
|
2433
|
+
requiresAddon?: boolean;
|
|
2434
|
+
});
|
|
2435
|
+
type GetPostingFrequencyData = {
|
|
2436
|
+
query?: {
|
|
2437
|
+
/**
|
|
2438
|
+
* Filter by platform (e.g. "instagram", "tiktok"). Omit for all platforms.
|
|
2439
|
+
*/
|
|
2440
|
+
platform?: string;
|
|
2441
|
+
/**
|
|
2442
|
+
* Filter by profile ID. Omit for all profiles.
|
|
2443
|
+
*/
|
|
2444
|
+
profileId?: string;
|
|
2445
|
+
};
|
|
2446
|
+
};
|
|
2447
|
+
type GetPostingFrequencyResponse = ({
|
|
2448
|
+
frequency?: Array<{
|
|
2449
|
+
platform?: string;
|
|
2450
|
+
/**
|
|
2451
|
+
* Number of posts published that week
|
|
2452
|
+
*/
|
|
2453
|
+
posts_per_week?: number;
|
|
2454
|
+
/**
|
|
2455
|
+
* Average engagement rate as percentage (0-100)
|
|
2456
|
+
*/
|
|
2457
|
+
avg_engagement_rate?: number;
|
|
2458
|
+
/**
|
|
2459
|
+
* Average raw engagement (likes+comments+shares+saves)
|
|
2460
|
+
*/
|
|
2461
|
+
avg_engagement?: number;
|
|
2462
|
+
/**
|
|
2463
|
+
* Number of calendar weeks observed at this frequency
|
|
2464
|
+
*/
|
|
2465
|
+
weeks_count?: number;
|
|
2466
|
+
}>;
|
|
2467
|
+
});
|
|
2468
|
+
type GetPostingFrequencyError = ({
|
|
2469
|
+
error?: string;
|
|
2470
|
+
} | {
|
|
2471
|
+
error?: string;
|
|
2472
|
+
requiresAddon?: boolean;
|
|
2473
|
+
});
|
|
2290
2474
|
type ListAccountGroupsResponse = ({
|
|
2291
2475
|
groups?: Array<{
|
|
2292
2476
|
_id?: string;
|
|
@@ -6037,4 +6221,4 @@ type DeleteInboxReviewReplyError = ({
|
|
|
6037
6221
|
error?: string;
|
|
6038
6222
|
} | unknown);
|
|
6039
6223
|
|
|
6040
|
-
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 scope, type status, type status2, type status3, type status4, type status5, type status6, type type, type type2, type type3, type visibility };
|
|
6224
|
+
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, 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.d.ts
CHANGED
|
@@ -75,6 +75,10 @@ declare class Late {
|
|
|
75
75
|
analytics: {
|
|
76
76
|
getAnalytics: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<GetAnalyticsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetAnalyticsResponse, GetAnalyticsError, ThrowOnError>;
|
|
77
77
|
getYouTubeDailyViews: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetYouTubeDailyViewsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<YouTubeDailyViewsResponse, GetYouTubeDailyViewsError, ThrowOnError>;
|
|
78
|
+
getDailyMetrics: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<GetDailyMetricsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetDailyMetricsResponse, GetDailyMetricsError, ThrowOnError>;
|
|
79
|
+
getBestTimeToPost: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<GetBestTimeToPostData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetBestTimeToPostResponse, GetBestTimeToPostError, ThrowOnError>;
|
|
80
|
+
getContentDecay: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<GetContentDecayData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetContentDecayResponse, GetContentDecayError, ThrowOnError>;
|
|
81
|
+
getPostingFrequency: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<GetPostingFrequencyData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetPostingFrequencyResponse, GetPostingFrequencyError, ThrowOnError>;
|
|
78
82
|
getLinkedInAggregateAnalytics: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetLinkedInAggregateAnalyticsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetLinkedInAggregateAnalyticsResponse, unknown, ThrowOnError>;
|
|
79
83
|
getLinkedInPostAnalytics: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetLinkedInPostAnalyticsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetLinkedInPostAnalyticsResponse, unknown, ThrowOnError>;
|
|
80
84
|
};
|
|
@@ -1540,6 +1544,10 @@ type TranscriptSegment = {
|
|
|
1540
1544
|
duration?: number;
|
|
1541
1545
|
};
|
|
1542
1546
|
type TwitterPlatformData = {
|
|
1547
|
+
/**
|
|
1548
|
+
* Controls who can reply to the tweet. "following" allows only people you follow, "mentionedUsers" allows only mentioned users, "subscribers" allows only subscribers. Omit for default (everyone can reply). For threads, applies to the first tweet only.
|
|
1549
|
+
*/
|
|
1550
|
+
replySettings?: 'following' | 'mentionedUsers' | 'subscribers';
|
|
1543
1551
|
/**
|
|
1544
1552
|
* Sequence of tweets in a thread. First item is the root tweet.
|
|
1545
1553
|
*/
|
|
@@ -1548,6 +1556,10 @@ type TwitterPlatformData = {
|
|
|
1548
1556
|
mediaItems?: Array<MediaItem>;
|
|
1549
1557
|
}>;
|
|
1550
1558
|
};
|
|
1559
|
+
/**
|
|
1560
|
+
* Controls who can reply to the tweet. "following" allows only people you follow, "mentionedUsers" allows only mentioned users, "subscribers" allows only subscribers. Omit for default (everyone can reply). For threads, applies to the first tweet only.
|
|
1561
|
+
*/
|
|
1562
|
+
type replySettings = 'following' | 'mentionedUsers' | 'subscribers';
|
|
1551
1563
|
type UploadedFile = {
|
|
1552
1564
|
type?: 'image' | 'video' | 'document';
|
|
1553
1565
|
url?: string;
|
|
@@ -2287,6 +2299,178 @@ type GetYouTubeDailyViewsError = ({
|
|
|
2287
2299
|
success?: boolean;
|
|
2288
2300
|
error?: string;
|
|
2289
2301
|
});
|
|
2302
|
+
type GetDailyMetricsData = {
|
|
2303
|
+
query?: {
|
|
2304
|
+
/**
|
|
2305
|
+
* Inclusive start date (ISO 8601). Defaults to 180 days ago.
|
|
2306
|
+
*/
|
|
2307
|
+
fromDate?: string;
|
|
2308
|
+
/**
|
|
2309
|
+
* Filter by platform (e.g. "instagram", "tiktok"). Omit for all platforms.
|
|
2310
|
+
*/
|
|
2311
|
+
platform?: string;
|
|
2312
|
+
/**
|
|
2313
|
+
* Filter by profile ID. Omit for all profiles.
|
|
2314
|
+
*/
|
|
2315
|
+
profileId?: string;
|
|
2316
|
+
/**
|
|
2317
|
+
* Inclusive end date (ISO 8601). Defaults to now.
|
|
2318
|
+
*/
|
|
2319
|
+
toDate?: string;
|
|
2320
|
+
};
|
|
2321
|
+
};
|
|
2322
|
+
type GetDailyMetricsResponse = ({
|
|
2323
|
+
dailyData?: Array<{
|
|
2324
|
+
date?: string;
|
|
2325
|
+
postCount?: number;
|
|
2326
|
+
platforms?: {
|
|
2327
|
+
[key: string]: (number);
|
|
2328
|
+
};
|
|
2329
|
+
metrics?: {
|
|
2330
|
+
impressions?: number;
|
|
2331
|
+
reach?: number;
|
|
2332
|
+
likes?: number;
|
|
2333
|
+
comments?: number;
|
|
2334
|
+
shares?: number;
|
|
2335
|
+
saves?: number;
|
|
2336
|
+
clicks?: number;
|
|
2337
|
+
views?: number;
|
|
2338
|
+
};
|
|
2339
|
+
}>;
|
|
2340
|
+
platformBreakdown?: Array<{
|
|
2341
|
+
platform?: string;
|
|
2342
|
+
postCount?: number;
|
|
2343
|
+
impressions?: number;
|
|
2344
|
+
reach?: number;
|
|
2345
|
+
likes?: number;
|
|
2346
|
+
comments?: number;
|
|
2347
|
+
shares?: number;
|
|
2348
|
+
saves?: number;
|
|
2349
|
+
clicks?: number;
|
|
2350
|
+
views?: number;
|
|
2351
|
+
}>;
|
|
2352
|
+
});
|
|
2353
|
+
type GetDailyMetricsError = ({
|
|
2354
|
+
error?: string;
|
|
2355
|
+
} | {
|
|
2356
|
+
error?: string;
|
|
2357
|
+
code?: string;
|
|
2358
|
+
});
|
|
2359
|
+
type GetBestTimeToPostData = {
|
|
2360
|
+
query?: {
|
|
2361
|
+
/**
|
|
2362
|
+
* Filter by platform (e.g. "instagram", "tiktok"). Omit for all platforms.
|
|
2363
|
+
*/
|
|
2364
|
+
platform?: string;
|
|
2365
|
+
/**
|
|
2366
|
+
* Filter by profile ID. Omit for all profiles.
|
|
2367
|
+
*/
|
|
2368
|
+
profileId?: string;
|
|
2369
|
+
};
|
|
2370
|
+
};
|
|
2371
|
+
type GetBestTimeToPostResponse = ({
|
|
2372
|
+
slots?: Array<{
|
|
2373
|
+
/**
|
|
2374
|
+
* 0=Monday, 6=Sunday
|
|
2375
|
+
*/
|
|
2376
|
+
day_of_week?: number;
|
|
2377
|
+
/**
|
|
2378
|
+
* Hour in UTC (0-23)
|
|
2379
|
+
*/
|
|
2380
|
+
hour?: number;
|
|
2381
|
+
/**
|
|
2382
|
+
* Average engagement (likes + comments + shares + saves)
|
|
2383
|
+
*/
|
|
2384
|
+
avg_engagement?: number;
|
|
2385
|
+
/**
|
|
2386
|
+
* Number of posts in this slot
|
|
2387
|
+
*/
|
|
2388
|
+
post_count?: number;
|
|
2389
|
+
}>;
|
|
2390
|
+
});
|
|
2391
|
+
type GetBestTimeToPostError = ({
|
|
2392
|
+
error?: string;
|
|
2393
|
+
} | {
|
|
2394
|
+
error?: string;
|
|
2395
|
+
requiresAddon?: boolean;
|
|
2396
|
+
});
|
|
2397
|
+
type GetContentDecayData = {
|
|
2398
|
+
query?: {
|
|
2399
|
+
/**
|
|
2400
|
+
* Filter by platform (e.g. "instagram", "tiktok"). Omit for all platforms.
|
|
2401
|
+
*/
|
|
2402
|
+
platform?: string;
|
|
2403
|
+
/**
|
|
2404
|
+
* Filter by profile ID. Omit for all profiles.
|
|
2405
|
+
*/
|
|
2406
|
+
profileId?: string;
|
|
2407
|
+
};
|
|
2408
|
+
};
|
|
2409
|
+
type GetContentDecayResponse = ({
|
|
2410
|
+
buckets?: Array<{
|
|
2411
|
+
/**
|
|
2412
|
+
* Sort order (0 = earliest, 6 = latest)
|
|
2413
|
+
*/
|
|
2414
|
+
bucket_order?: number;
|
|
2415
|
+
/**
|
|
2416
|
+
* Human-readable label
|
|
2417
|
+
*/
|
|
2418
|
+
bucket_label?: string;
|
|
2419
|
+
/**
|
|
2420
|
+
* Average % of final engagement reached (0-100)
|
|
2421
|
+
*/
|
|
2422
|
+
avg_pct_of_final?: number;
|
|
2423
|
+
/**
|
|
2424
|
+
* Number of posts with data in this bucket
|
|
2425
|
+
*/
|
|
2426
|
+
post_count?: number;
|
|
2427
|
+
}>;
|
|
2428
|
+
});
|
|
2429
|
+
type GetContentDecayError = ({
|
|
2430
|
+
error?: string;
|
|
2431
|
+
} | {
|
|
2432
|
+
error?: string;
|
|
2433
|
+
requiresAddon?: boolean;
|
|
2434
|
+
});
|
|
2435
|
+
type GetPostingFrequencyData = {
|
|
2436
|
+
query?: {
|
|
2437
|
+
/**
|
|
2438
|
+
* Filter by platform (e.g. "instagram", "tiktok"). Omit for all platforms.
|
|
2439
|
+
*/
|
|
2440
|
+
platform?: string;
|
|
2441
|
+
/**
|
|
2442
|
+
* Filter by profile ID. Omit for all profiles.
|
|
2443
|
+
*/
|
|
2444
|
+
profileId?: string;
|
|
2445
|
+
};
|
|
2446
|
+
};
|
|
2447
|
+
type GetPostingFrequencyResponse = ({
|
|
2448
|
+
frequency?: Array<{
|
|
2449
|
+
platform?: string;
|
|
2450
|
+
/**
|
|
2451
|
+
* Number of posts published that week
|
|
2452
|
+
*/
|
|
2453
|
+
posts_per_week?: number;
|
|
2454
|
+
/**
|
|
2455
|
+
* Average engagement rate as percentage (0-100)
|
|
2456
|
+
*/
|
|
2457
|
+
avg_engagement_rate?: number;
|
|
2458
|
+
/**
|
|
2459
|
+
* Average raw engagement (likes+comments+shares+saves)
|
|
2460
|
+
*/
|
|
2461
|
+
avg_engagement?: number;
|
|
2462
|
+
/**
|
|
2463
|
+
* Number of calendar weeks observed at this frequency
|
|
2464
|
+
*/
|
|
2465
|
+
weeks_count?: number;
|
|
2466
|
+
}>;
|
|
2467
|
+
});
|
|
2468
|
+
type GetPostingFrequencyError = ({
|
|
2469
|
+
error?: string;
|
|
2470
|
+
} | {
|
|
2471
|
+
error?: string;
|
|
2472
|
+
requiresAddon?: boolean;
|
|
2473
|
+
});
|
|
2290
2474
|
type ListAccountGroupsResponse = ({
|
|
2291
2475
|
groups?: Array<{
|
|
2292
2476
|
_id?: string;
|
|
@@ -6037,4 +6221,4 @@ type DeleteInboxReviewReplyError = ({
|
|
|
6037
6221
|
error?: string;
|
|
6038
6222
|
} | unknown);
|
|
6039
6223
|
|
|
6040
|
-
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 scope, type status, type status2, type status3, type status4, type status5, type status6, type type, type type2, type type3, type visibility };
|
|
6224
|
+
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, 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
|
@@ -338,6 +338,30 @@ var getYouTubeDailyViews = (options) => {
|
|
|
338
338
|
url: "/v1/analytics/youtube/daily-views"
|
|
339
339
|
});
|
|
340
340
|
};
|
|
341
|
+
var getDailyMetrics = (options) => {
|
|
342
|
+
return (options?.client ?? client).get({
|
|
343
|
+
...options,
|
|
344
|
+
url: "/v1/analytics/daily-metrics"
|
|
345
|
+
});
|
|
346
|
+
};
|
|
347
|
+
var getBestTimeToPost = (options) => {
|
|
348
|
+
return (options?.client ?? client).get({
|
|
349
|
+
...options,
|
|
350
|
+
url: "/v1/analytics/best-time"
|
|
351
|
+
});
|
|
352
|
+
};
|
|
353
|
+
var getContentDecay = (options) => {
|
|
354
|
+
return (options?.client ?? client).get({
|
|
355
|
+
...options,
|
|
356
|
+
url: "/v1/analytics/content-decay"
|
|
357
|
+
});
|
|
358
|
+
};
|
|
359
|
+
var getPostingFrequency = (options) => {
|
|
360
|
+
return (options?.client ?? client).get({
|
|
361
|
+
...options,
|
|
362
|
+
url: "/v1/analytics/posting-frequency"
|
|
363
|
+
});
|
|
364
|
+
};
|
|
341
365
|
var listAccountGroups = (options) => {
|
|
342
366
|
return (options?.client ?? client).get({
|
|
343
367
|
...options,
|
|
@@ -1179,6 +1203,10 @@ var Late = class {
|
|
|
1179
1203
|
this.analytics = {
|
|
1180
1204
|
getAnalytics,
|
|
1181
1205
|
getYouTubeDailyViews,
|
|
1206
|
+
getDailyMetrics,
|
|
1207
|
+
getBestTimeToPost,
|
|
1208
|
+
getContentDecay,
|
|
1209
|
+
getPostingFrequency,
|
|
1182
1210
|
getLinkedInAggregateAnalytics,
|
|
1183
1211
|
getLinkedInPostAnalytics
|
|
1184
1212
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -309,6 +309,30 @@ var getYouTubeDailyViews = (options) => {
|
|
|
309
309
|
url: "/v1/analytics/youtube/daily-views"
|
|
310
310
|
});
|
|
311
311
|
};
|
|
312
|
+
var getDailyMetrics = (options) => {
|
|
313
|
+
return (options?.client ?? client).get({
|
|
314
|
+
...options,
|
|
315
|
+
url: "/v1/analytics/daily-metrics"
|
|
316
|
+
});
|
|
317
|
+
};
|
|
318
|
+
var getBestTimeToPost = (options) => {
|
|
319
|
+
return (options?.client ?? client).get({
|
|
320
|
+
...options,
|
|
321
|
+
url: "/v1/analytics/best-time"
|
|
322
|
+
});
|
|
323
|
+
};
|
|
324
|
+
var getContentDecay = (options) => {
|
|
325
|
+
return (options?.client ?? client).get({
|
|
326
|
+
...options,
|
|
327
|
+
url: "/v1/analytics/content-decay"
|
|
328
|
+
});
|
|
329
|
+
};
|
|
330
|
+
var getPostingFrequency = (options) => {
|
|
331
|
+
return (options?.client ?? client).get({
|
|
332
|
+
...options,
|
|
333
|
+
url: "/v1/analytics/posting-frequency"
|
|
334
|
+
});
|
|
335
|
+
};
|
|
312
336
|
var listAccountGroups = (options) => {
|
|
313
337
|
return (options?.client ?? client).get({
|
|
314
338
|
...options,
|
|
@@ -1150,6 +1174,10 @@ var Late = class {
|
|
|
1150
1174
|
this.analytics = {
|
|
1151
1175
|
getAnalytics,
|
|
1152
1176
|
getYouTubeDailyViews,
|
|
1177
|
+
getDailyMetrics,
|
|
1178
|
+
getBestTimeToPost,
|
|
1179
|
+
getContentDecay,
|
|
1180
|
+
getPostingFrequency,
|
|
1153
1181
|
getLinkedInAggregateAnalytics,
|
|
1154
1182
|
getLinkedInPostAnalytics
|
|
1155
1183
|
};
|
package/package.json
CHANGED
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,
|
|
@@ -215,6 +219,10 @@ export class Late {
|
|
|
215
219
|
analytics = {
|
|
216
220
|
getAnalytics: getAnalytics,
|
|
217
221
|
getYouTubeDailyViews: getYouTubeDailyViews,
|
|
222
|
+
getDailyMetrics: getDailyMetrics,
|
|
223
|
+
getBestTimeToPost: getBestTimeToPost,
|
|
224
|
+
getContentDecay: getContentDecay,
|
|
225
|
+
getPostingFrequency: getPostingFrequency,
|
|
218
226
|
getLinkedInAggregateAnalytics: getLinkedInAggregateAnalytics,
|
|
219
227
|
getLinkedInPostAnalytics: getLinkedInPostAnalytics,
|
|
220
228
|
};
|
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, 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, 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
|
|
|
@@ -157,6 +157,64 @@ export const getYouTubeDailyViews = <ThrowOnError extends boolean = false>(optio
|
|
|
157
157
|
});
|
|
158
158
|
};
|
|
159
159
|
|
|
160
|
+
/**
|
|
161
|
+
* Get daily aggregated metrics
|
|
162
|
+
* Returns daily aggregated analytics metrics and a per-platform breakdown.
|
|
163
|
+
* Each day includes post count, platform distribution, and summed metrics (impressions, reach, likes, comments, shares, saves, clicks, views).
|
|
164
|
+
* Defaults to the last 180 days. Requires the Analytics add-on.
|
|
165
|
+
*
|
|
166
|
+
*/
|
|
167
|
+
export const getDailyMetrics = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetDailyMetricsData, ThrowOnError>) => {
|
|
168
|
+
return (options?.client ?? client).get<GetDailyMetricsResponse, GetDailyMetricsError, ThrowOnError>({
|
|
169
|
+
...options,
|
|
170
|
+
url: '/v1/analytics/daily-metrics'
|
|
171
|
+
});
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Get best times to post
|
|
176
|
+
* Returns the best times to post based on historical engagement data.
|
|
177
|
+
* Groups all published posts by day of week and hour (UTC), calculating average engagement per slot.
|
|
178
|
+
* Use this to auto-schedule posts at optimal times. Requires the Analytics add-on.
|
|
179
|
+
*
|
|
180
|
+
*/
|
|
181
|
+
export const getBestTimeToPost = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetBestTimeToPostData, ThrowOnError>) => {
|
|
182
|
+
return (options?.client ?? client).get<GetBestTimeToPostResponse, GetBestTimeToPostError, ThrowOnError>({
|
|
183
|
+
...options,
|
|
184
|
+
url: '/v1/analytics/best-time'
|
|
185
|
+
});
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Get content performance decay
|
|
190
|
+
* Returns how engagement accumulates over time after a post is published.
|
|
191
|
+
* Each bucket shows what percentage of the post's total engagement had been reached by that time window.
|
|
192
|
+
* Useful for understanding content lifespan (e.g. "posts reach 78% of total engagement within 24 hours").
|
|
193
|
+
* Requires the Analytics add-on.
|
|
194
|
+
*
|
|
195
|
+
*/
|
|
196
|
+
export const getContentDecay = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetContentDecayData, ThrowOnError>) => {
|
|
197
|
+
return (options?.client ?? client).get<GetContentDecayResponse, GetContentDecayError, ThrowOnError>({
|
|
198
|
+
...options,
|
|
199
|
+
url: '/v1/analytics/content-decay'
|
|
200
|
+
});
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Get posting frequency vs engagement
|
|
205
|
+
* Returns the correlation between posting frequency (posts per week) and engagement rate, broken down by platform.
|
|
206
|
+
* Helps find the optimal posting cadence for each platform. Each row represents a specific (platform, posts_per_week) combination
|
|
207
|
+
* with the average engagement rate observed across all weeks matching that frequency.
|
|
208
|
+
* Requires the Analytics add-on.
|
|
209
|
+
*
|
|
210
|
+
*/
|
|
211
|
+
export const getPostingFrequency = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetPostingFrequencyData, ThrowOnError>) => {
|
|
212
|
+
return (options?.client ?? client).get<GetPostingFrequencyResponse, GetPostingFrequencyError, ThrowOnError>({
|
|
213
|
+
...options,
|
|
214
|
+
url: '/v1/analytics/posting-frequency'
|
|
215
|
+
});
|
|
216
|
+
};
|
|
217
|
+
|
|
160
218
|
/**
|
|
161
219
|
* List groups
|
|
162
220
|
* Returns all account groups for the authenticated user, including group names and associated account IDs.
|
|
@@ -1235,6 +1235,10 @@ export type TranscriptSegment = {
|
|
|
1235
1235
|
};
|
|
1236
1236
|
|
|
1237
1237
|
export type TwitterPlatformData = {
|
|
1238
|
+
/**
|
|
1239
|
+
* Controls who can reply to the tweet. "following" allows only people you follow, "mentionedUsers" allows only mentioned users, "subscribers" allows only subscribers. Omit for default (everyone can reply). For threads, applies to the first tweet only.
|
|
1240
|
+
*/
|
|
1241
|
+
replySettings?: 'following' | 'mentionedUsers' | 'subscribers';
|
|
1238
1242
|
/**
|
|
1239
1243
|
* Sequence of tweets in a thread. First item is the root tweet.
|
|
1240
1244
|
*/
|
|
@@ -1244,6 +1248,11 @@ export type TwitterPlatformData = {
|
|
|
1244
1248
|
}>;
|
|
1245
1249
|
};
|
|
1246
1250
|
|
|
1251
|
+
/**
|
|
1252
|
+
* Controls who can reply to the tweet. "following" allows only people you follow, "mentionedUsers" allows only mentioned users, "subscribers" allows only subscribers. Omit for default (everyone can reply). For threads, applies to the first tweet only.
|
|
1253
|
+
*/
|
|
1254
|
+
export type replySettings = 'following' | 'mentionedUsers' | 'subscribers';
|
|
1255
|
+
|
|
1247
1256
|
export type UploadedFile = {
|
|
1248
1257
|
type?: 'image' | 'video' | 'document';
|
|
1249
1258
|
url?: string;
|
|
@@ -2048,6 +2057,190 @@ export type GetYouTubeDailyViewsError = ({
|
|
|
2048
2057
|
error?: string;
|
|
2049
2058
|
});
|
|
2050
2059
|
|
|
2060
|
+
export type GetDailyMetricsData = {
|
|
2061
|
+
query?: {
|
|
2062
|
+
/**
|
|
2063
|
+
* Inclusive start date (ISO 8601). Defaults to 180 days ago.
|
|
2064
|
+
*/
|
|
2065
|
+
fromDate?: string;
|
|
2066
|
+
/**
|
|
2067
|
+
* Filter by platform (e.g. "instagram", "tiktok"). Omit for all platforms.
|
|
2068
|
+
*/
|
|
2069
|
+
platform?: string;
|
|
2070
|
+
/**
|
|
2071
|
+
* Filter by profile ID. Omit for all profiles.
|
|
2072
|
+
*/
|
|
2073
|
+
profileId?: string;
|
|
2074
|
+
/**
|
|
2075
|
+
* Inclusive end date (ISO 8601). Defaults to now.
|
|
2076
|
+
*/
|
|
2077
|
+
toDate?: string;
|
|
2078
|
+
};
|
|
2079
|
+
};
|
|
2080
|
+
|
|
2081
|
+
export type GetDailyMetricsResponse = ({
|
|
2082
|
+
dailyData?: Array<{
|
|
2083
|
+
date?: string;
|
|
2084
|
+
postCount?: number;
|
|
2085
|
+
platforms?: {
|
|
2086
|
+
[key: string]: (number);
|
|
2087
|
+
};
|
|
2088
|
+
metrics?: {
|
|
2089
|
+
impressions?: number;
|
|
2090
|
+
reach?: number;
|
|
2091
|
+
likes?: number;
|
|
2092
|
+
comments?: number;
|
|
2093
|
+
shares?: number;
|
|
2094
|
+
saves?: number;
|
|
2095
|
+
clicks?: number;
|
|
2096
|
+
views?: number;
|
|
2097
|
+
};
|
|
2098
|
+
}>;
|
|
2099
|
+
platformBreakdown?: Array<{
|
|
2100
|
+
platform?: string;
|
|
2101
|
+
postCount?: number;
|
|
2102
|
+
impressions?: number;
|
|
2103
|
+
reach?: number;
|
|
2104
|
+
likes?: number;
|
|
2105
|
+
comments?: number;
|
|
2106
|
+
shares?: number;
|
|
2107
|
+
saves?: number;
|
|
2108
|
+
clicks?: number;
|
|
2109
|
+
views?: number;
|
|
2110
|
+
}>;
|
|
2111
|
+
});
|
|
2112
|
+
|
|
2113
|
+
export type GetDailyMetricsError = ({
|
|
2114
|
+
error?: string;
|
|
2115
|
+
} | {
|
|
2116
|
+
error?: string;
|
|
2117
|
+
code?: string;
|
|
2118
|
+
});
|
|
2119
|
+
|
|
2120
|
+
export type GetBestTimeToPostData = {
|
|
2121
|
+
query?: {
|
|
2122
|
+
/**
|
|
2123
|
+
* Filter by platform (e.g. "instagram", "tiktok"). Omit for all platforms.
|
|
2124
|
+
*/
|
|
2125
|
+
platform?: string;
|
|
2126
|
+
/**
|
|
2127
|
+
* Filter by profile ID. Omit for all profiles.
|
|
2128
|
+
*/
|
|
2129
|
+
profileId?: string;
|
|
2130
|
+
};
|
|
2131
|
+
};
|
|
2132
|
+
|
|
2133
|
+
export type GetBestTimeToPostResponse = ({
|
|
2134
|
+
slots?: Array<{
|
|
2135
|
+
/**
|
|
2136
|
+
* 0=Monday, 6=Sunday
|
|
2137
|
+
*/
|
|
2138
|
+
day_of_week?: number;
|
|
2139
|
+
/**
|
|
2140
|
+
* Hour in UTC (0-23)
|
|
2141
|
+
*/
|
|
2142
|
+
hour?: number;
|
|
2143
|
+
/**
|
|
2144
|
+
* Average engagement (likes + comments + shares + saves)
|
|
2145
|
+
*/
|
|
2146
|
+
avg_engagement?: number;
|
|
2147
|
+
/**
|
|
2148
|
+
* Number of posts in this slot
|
|
2149
|
+
*/
|
|
2150
|
+
post_count?: number;
|
|
2151
|
+
}>;
|
|
2152
|
+
});
|
|
2153
|
+
|
|
2154
|
+
export type GetBestTimeToPostError = ({
|
|
2155
|
+
error?: string;
|
|
2156
|
+
} | {
|
|
2157
|
+
error?: string;
|
|
2158
|
+
requiresAddon?: boolean;
|
|
2159
|
+
});
|
|
2160
|
+
|
|
2161
|
+
export type GetContentDecayData = {
|
|
2162
|
+
query?: {
|
|
2163
|
+
/**
|
|
2164
|
+
* Filter by platform (e.g. "instagram", "tiktok"). Omit for all platforms.
|
|
2165
|
+
*/
|
|
2166
|
+
platform?: string;
|
|
2167
|
+
/**
|
|
2168
|
+
* Filter by profile ID. Omit for all profiles.
|
|
2169
|
+
*/
|
|
2170
|
+
profileId?: string;
|
|
2171
|
+
};
|
|
2172
|
+
};
|
|
2173
|
+
|
|
2174
|
+
export type GetContentDecayResponse = ({
|
|
2175
|
+
buckets?: Array<{
|
|
2176
|
+
/**
|
|
2177
|
+
* Sort order (0 = earliest, 6 = latest)
|
|
2178
|
+
*/
|
|
2179
|
+
bucket_order?: number;
|
|
2180
|
+
/**
|
|
2181
|
+
* Human-readable label
|
|
2182
|
+
*/
|
|
2183
|
+
bucket_label?: string;
|
|
2184
|
+
/**
|
|
2185
|
+
* Average % of final engagement reached (0-100)
|
|
2186
|
+
*/
|
|
2187
|
+
avg_pct_of_final?: number;
|
|
2188
|
+
/**
|
|
2189
|
+
* Number of posts with data in this bucket
|
|
2190
|
+
*/
|
|
2191
|
+
post_count?: number;
|
|
2192
|
+
}>;
|
|
2193
|
+
});
|
|
2194
|
+
|
|
2195
|
+
export type GetContentDecayError = ({
|
|
2196
|
+
error?: string;
|
|
2197
|
+
} | {
|
|
2198
|
+
error?: string;
|
|
2199
|
+
requiresAddon?: boolean;
|
|
2200
|
+
});
|
|
2201
|
+
|
|
2202
|
+
export type GetPostingFrequencyData = {
|
|
2203
|
+
query?: {
|
|
2204
|
+
/**
|
|
2205
|
+
* Filter by platform (e.g. "instagram", "tiktok"). Omit for all platforms.
|
|
2206
|
+
*/
|
|
2207
|
+
platform?: string;
|
|
2208
|
+
/**
|
|
2209
|
+
* Filter by profile ID. Omit for all profiles.
|
|
2210
|
+
*/
|
|
2211
|
+
profileId?: string;
|
|
2212
|
+
};
|
|
2213
|
+
};
|
|
2214
|
+
|
|
2215
|
+
export type GetPostingFrequencyResponse = ({
|
|
2216
|
+
frequency?: Array<{
|
|
2217
|
+
platform?: string;
|
|
2218
|
+
/**
|
|
2219
|
+
* Number of posts published that week
|
|
2220
|
+
*/
|
|
2221
|
+
posts_per_week?: number;
|
|
2222
|
+
/**
|
|
2223
|
+
* Average engagement rate as percentage (0-100)
|
|
2224
|
+
*/
|
|
2225
|
+
avg_engagement_rate?: number;
|
|
2226
|
+
/**
|
|
2227
|
+
* Average raw engagement (likes+comments+shares+saves)
|
|
2228
|
+
*/
|
|
2229
|
+
avg_engagement?: number;
|
|
2230
|
+
/**
|
|
2231
|
+
* Number of calendar weeks observed at this frequency
|
|
2232
|
+
*/
|
|
2233
|
+
weeks_count?: number;
|
|
2234
|
+
}>;
|
|
2235
|
+
});
|
|
2236
|
+
|
|
2237
|
+
export type GetPostingFrequencyError = ({
|
|
2238
|
+
error?: string;
|
|
2239
|
+
} | {
|
|
2240
|
+
error?: string;
|
|
2241
|
+
requiresAddon?: boolean;
|
|
2242
|
+
});
|
|
2243
|
+
|
|
2051
2244
|
export type ListAccountGroupsResponse = ({
|
|
2052
2245
|
groups?: Array<{
|
|
2053
2246
|
_id?: string;
|