@getlatedev/node 0.1.6 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -260,6 +260,7 @@ declare class Late {
260
260
  unhideInboxComment: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UnhideInboxCommentData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UnhideInboxCommentResponse, unknown, ThrowOnError>;
261
261
  likeInboxComment: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<LikeInboxCommentData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<LikeInboxCommentResponse, unknown, ThrowOnError>;
262
262
  unlikeInboxComment: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UnlikeInboxCommentData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UnlikeInboxCommentResponse, unknown, ThrowOnError>;
263
+ sendPrivateReplyToComment: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SendPrivateReplyToCommentData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SendPrivateReplyToCommentResponse, unknown, ThrowOnError>;
263
264
  };
264
265
  /**
265
266
  * reviews API
@@ -456,6 +457,7 @@ type ErrorResponse = {
456
457
  * - Multiple videos in the same post are not supported.
457
458
  * - Stories require media (single image or video); text captions are not displayed with stories.
458
459
  * - Stories are ephemeral (disappear after 24 hours).
460
+ * - Use pageId to post to multiple pages from the same account connection.
459
461
  *
460
462
  */
461
463
  type FacebookPlatformData = {
@@ -468,7 +470,10 @@ type FacebookPlatformData = {
468
470
  */
469
471
  firstComment?: string;
470
472
  /**
471
- * Target Facebook Page ID. If omitted, uses the selected/default page on the connection.
473
+ * Target Facebook Page ID for multi-page posting.
474
+ * If omitted, uses the selected/default page on the connection.
475
+ * Use GET /api/v1/accounts/{id}/facebook-page to list available pages.
476
+ *
472
477
  */
473
478
  pageId?: string;
474
479
  };
@@ -491,9 +496,18 @@ type aggregation = 'daily' | 'weekly' | 'monthly';
491
496
  * - Images must be publicly accessible URLs
492
497
  * - Call-to-action buttons drive user engagement
493
498
  * - Posts appear on your Google Business Profile and in Google Search/Maps
499
+ * - Use locationId to post to multiple locations from the same account connection
494
500
  *
495
501
  */
496
502
  type GoogleBusinessPlatformData = {
503
+ /**
504
+ * Target Google Business location ID for multi-location posting.
505
+ * Format: "locations/123456789"
506
+ * If omitted, uses the selected/default location on the connection.
507
+ * Use GET /api/v1/accounts/{id}/gmb-locations to list available locations.
508
+ *
509
+ */
510
+ locationId?: string;
497
511
  /**
498
512
  * Optional call-to-action button displayed on the post
499
513
  */
@@ -719,9 +733,18 @@ type aggregation3 = 'TOTAL';
719
733
  * - Single PDF document posts are supported (max 100MB, ~300 pages). Documents cannot be mixed with other media.
720
734
  * - Post ID is returned in the x-restli-id response header.
721
735
  * - Link previews are automatically generated for URLs when no media is attached (can be disabled with disableLinkPreview).
736
+ * - Use organizationUrn to post to multiple organizations from the same account connection.
722
737
  *
723
738
  */
724
739
  type LinkedInPlatformData = {
740
+ /**
741
+ * Target LinkedIn Organization URN for multi-organization posting.
742
+ * Format: "urn:li:organization:123456789"
743
+ * If omitted, uses the selected/default organization on the connection.
744
+ * Use GET /api/v1/accounts/{id}/linkedin-organizations to list available organizations.
745
+ *
746
+ */
747
+ organizationUrn?: string;
725
748
  /**
726
749
  * Optional first comment to add after the post is created
727
750
  */
@@ -890,7 +913,60 @@ type PlatformTarget = {
890
913
  * Timestamp when the post was published to this platform
891
914
  */
892
915
  publishedAt?: string;
916
+ /**
917
+ * Human-readable error message when status is 'failed'.
918
+ * Contains platform-specific error details explaining why the publish failed.
919
+ * Examples:
920
+ * - "Instagram access token has expired. Please reconnect your account."
921
+ * - "Post text exceeds the 500 character limit for Threads."
922
+ * - "You do not have enough karma to post in this subreddit."
923
+ * - "Video is too long for Reels. Facebook Reels must be 90 seconds or less."
924
+ *
925
+ */
926
+ errorMessage?: string;
927
+ /**
928
+ * Error category for programmatic handling:
929
+ * - auth_expired: Token expired or revoked, account needs reconnection
930
+ * - user_content: Content doesn't meet platform requirements (too long, wrong format, etc.)
931
+ * - user_abuse: Rate limits, spam detection, excessive posting
932
+ * - account_issue: Account configuration problems (missing board, inactive account)
933
+ * - platform_rejected: Platform rules violated (banned, suspended, policy violation)
934
+ * - platform_error: Platform-side issues (5xx errors, maintenance)
935
+ * - system_error: Late infrastructure issues (timeouts, network errors)
936
+ * - unknown: Unclassified error
937
+ *
938
+ */
939
+ errorCategory?: 'auth_expired' | 'user_content' | 'user_abuse' | 'account_issue' | 'platform_rejected' | 'platform_error' | 'system_error' | 'unknown';
940
+ /**
941
+ * Who/what caused the error:
942
+ * - user: User action required (fix content, reconnect account)
943
+ * - platform: Platform-side issue (outage, API change)
944
+ * - system: Late system issue (rare)
945
+ *
946
+ */
947
+ errorSource?: 'user' | 'platform' | 'system';
893
948
  };
949
+ /**
950
+ * Error category for programmatic handling:
951
+ * - auth_expired: Token expired or revoked, account needs reconnection
952
+ * - user_content: Content doesn't meet platform requirements (too long, wrong format, etc.)
953
+ * - user_abuse: Rate limits, spam detection, excessive posting
954
+ * - account_issue: Account configuration problems (missing board, inactive account)
955
+ * - platform_rejected: Platform rules violated (banned, suspended, policy violation)
956
+ * - platform_error: Platform-side issues (5xx errors, maintenance)
957
+ * - system_error: Late infrastructure issues (timeouts, network errors)
958
+ * - unknown: Unclassified error
959
+ *
960
+ */
961
+ type errorCategory = 'auth_expired' | 'user_content' | 'user_abuse' | 'account_issue' | 'platform_rejected' | 'platform_error' | 'system_error' | 'unknown';
962
+ /**
963
+ * Who/what caused the error:
964
+ * - user: User action required (fix content, reconnect account)
965
+ * - platform: Platform-side issue (outage, API change)
966
+ * - system: Late system issue (rare)
967
+ *
968
+ */
969
+ type errorSource = 'user' | 'platform' | 'system';
894
970
  type Post = {
895
971
  _id?: string;
896
972
  userId?: (string | User);
@@ -1829,6 +1905,15 @@ type YouTubePlatformData = {
1829
1905
  *
1830
1906
  */
1831
1907
  containsSyntheticMedia?: boolean;
1908
+ /**
1909
+ * YouTube video category ID. Defaults to '22' (People & Blogs).
1910
+ * Common categories: 1 (Film & Animation), 2 (Autos & Vehicles), 10 (Music),
1911
+ * 15 (Pets & Animals), 17 (Sports), 20 (Gaming), 22 (People & Blogs),
1912
+ * 23 (Comedy), 24 (Entertainment), 25 (News & Politics), 26 (Howto & Style),
1913
+ * 27 (Education), 28 (Science & Technology).
1914
+ *
1915
+ */
1916
+ categoryId?: string;
1832
1917
  };
1833
1918
  type YouTubeScopeMissingResponse = {
1834
1919
  success?: boolean;
@@ -2066,6 +2151,14 @@ type GetAnalyticsData = {
2066
2151
  * Sort by date or engagement
2067
2152
  */
2068
2153
  sortBy?: 'date' | 'engagement';
2154
+ /**
2155
+ * Filter by post source:
2156
+ * - `late` - Only posts scheduled/published via Late API
2157
+ * - `external` - Only posts synced from the platform (not posted via Late)
2158
+ * - `all` - All posts (default)
2159
+ *
2160
+ */
2161
+ source?: 'all' | 'late' | 'external';
2069
2162
  /**
2070
2163
  * Inclusive upper bound
2071
2164
  */
@@ -2279,6 +2372,11 @@ type ListPostsError = ({
2279
2372
  type CreatePostData = {
2280
2373
  body: {
2281
2374
  title?: string;
2375
+ /**
2376
+ * Post caption/text content. Optional when media is attached (images, videos, etc.).
2377
+ * Required for text-only posts. Can also be omitted if all platforms have customContent set.
2378
+ *
2379
+ */
2282
2380
  content?: string;
2283
2381
  mediaItems?: Array<{
2284
2382
  type?: 'image' | 'video' | 'gif' | 'document';
@@ -4461,6 +4559,9 @@ type ListInboxConversationsError = ({
4461
4559
  } | unknown);
4462
4560
  type GetInboxConversationData = {
4463
4561
  path: {
4562
+ /**
4563
+ * The conversation ID (id field from list conversations endpoint). This is the platform-specific conversation identifier, not an internal database ID.
4564
+ */
4464
4565
  conversationId: string;
4465
4566
  };
4466
4567
  query: {
@@ -4500,6 +4601,9 @@ type UpdateInboxConversationData = {
4500
4601
  status: 'active' | 'archived';
4501
4602
  };
4502
4603
  path: {
4604
+ /**
4605
+ * The conversation ID (id field from list conversations endpoint). This is the platform-specific conversation identifier, not an internal database ID.
4606
+ */
4503
4607
  conversationId: string;
4504
4608
  };
4505
4609
  };
@@ -4518,6 +4622,9 @@ type UpdateInboxConversationError = ({
4518
4622
  } | unknown);
4519
4623
  type GetInboxConversationMessagesData = {
4520
4624
  path: {
4625
+ /**
4626
+ * The conversation ID (id field from list conversations endpoint). This is the platform-specific conversation identifier, not an internal database ID.
4627
+ */
4521
4628
  conversationId: string;
4522
4629
  };
4523
4630
  query: {
@@ -4576,6 +4683,9 @@ type SendInboxMessageData = {
4576
4683
  message: string;
4577
4684
  };
4578
4685
  path: {
4686
+ /**
4687
+ * The conversation ID (id field from list conversations endpoint). This is the platform-specific conversation identifier, not an internal database ID.
4688
+ */
4579
4689
  conversationId: string;
4580
4690
  };
4581
4691
  };
@@ -4946,6 +5056,46 @@ type UnlikeInboxCommentResponse = ({
4946
5056
  type UnlikeInboxCommentError = (unknown | {
4947
5057
  error?: string;
4948
5058
  });
5059
+ type SendPrivateReplyToCommentData = {
5060
+ body: {
5061
+ /**
5062
+ * The Instagram social account ID
5063
+ */
5064
+ accountId: string;
5065
+ /**
5066
+ * The message text to send as a private DM
5067
+ */
5068
+ message: string;
5069
+ };
5070
+ path: {
5071
+ /**
5072
+ * The comment ID to send a private reply to
5073
+ */
5074
+ commentId: string;
5075
+ /**
5076
+ * The Instagram media/post ID
5077
+ */
5078
+ postId: string;
5079
+ };
5080
+ };
5081
+ type SendPrivateReplyToCommentResponse = ({
5082
+ status?: string;
5083
+ /**
5084
+ * The ID of the sent message
5085
+ */
5086
+ messageId?: string;
5087
+ /**
5088
+ * The comment ID that was replied to
5089
+ */
5090
+ commentId?: string;
5091
+ platform?: string;
5092
+ });
5093
+ type SendPrivateReplyToCommentError = ({
5094
+ error?: string;
5095
+ code?: 'PLATFORM_LIMITATION';
5096
+ } | {
5097
+ error?: string;
5098
+ } | unknown);
4949
5099
  type ListInboxReviewsData = {
4950
5100
  query?: {
4951
5101
  /**
@@ -5061,4 +5211,4 @@ type DeleteInboxReviewReplyError = ({
5061
5211
  error?: string;
5062
5212
  } | unknown);
5063
5213
 
5064
- export { type AccountGetResponse, type AccountWithFollowerStats, type AccountsListResponse, type AnalyticsListResponse, type AnalyticsOverview, type AnalyticsSinglePostResponse, type ApiKey, 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 CreateAccountGroupData, type CreateAccountGroupError, type CreateAccountGroupResponse, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyResponse, 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 DeleteInboxCommentData, type DeleteInboxCommentError, type DeleteInboxCommentResponse, type DeleteInboxReviewReplyData, type DeleteInboxReviewReplyError, type DeleteInboxReviewReplyResponse, type DeletePostData, type DeletePostError, type DeletePostResponse, type DeleteProfileData, type DeleteProfileError, type DeleteProfileResponse, type DeleteQueueSlotData, type DeleteQueueSlotError, type DeleteQueueSlotResponse, 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 ErrorResponse, type FacebookPlatformData, type FollowerStatsResponse, 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 GetGoogleBusinessReviewsData, type GetGoogleBusinessReviewsError, type GetGoogleBusinessReviewsResponse, type GetInboxConversationData, type GetInboxConversationError, type GetInboxConversationMessagesData, type GetInboxConversationMessagesError, type GetInboxConversationMessagesResponse, type GetInboxConversationResponse, type GetInboxPostCommentsData, type GetInboxPostCommentsError, type GetInboxPostCommentsResponse, 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 GetLogData, type GetLogError, type GetLogResponse, type GetMediaPresignedUrlData, type GetMediaPresignedUrlError, type GetMediaPresignedUrlResponse, 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 GetRedditSubredditsData, type GetRedditSubredditsError, type GetRedditSubredditsResponse, 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 ListFacebookPagesData, type ListFacebookPagesError, type ListFacebookPagesResponse, type ListGoogleBusinessLocationsData, type ListGoogleBusinessLocationsError, type ListGoogleBusinessLocationsResponse, 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 ListLogsData, type ListLogsError, type ListLogsResponse, type ListPinterestBoardsForSelectionData, type ListPinterestBoardsForSelectionError, type ListPinterestBoardsForSelectionResponse, type ListPostsData, type ListPostsError, 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 Pagination, type ParameterLimitParam, type ParameterPageParam, type PinterestPlatformData, type PlatformAnalytics, type PlatformTarget, type Post, type PostAnalytics, type PostCreateResponse, type PostDeleteResponse, type PostGetResponse, type PostLog, type PostLogDetail, 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 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 SnapchatPlatformData, type SocialAccount, type TelegramPlatformData, type TestWebhookData, type TestWebhookError, type TestWebhookResponse, type ThreadsPlatformData, type TikTokPlatformData, type TikTokSettings, type TranscriptResponse, type TranscriptSegment, type TwitterPlatformData, type UnhideInboxCommentData, type UnhideInboxCommentError, type UnhideInboxCommentResponse, type UnlikeInboxCommentData, type UnlikeInboxCommentError, type UnlikeInboxCommentResponse, 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 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 WebhookPayloadMessage, type WebhookPayloadPost, type YouTubeDailyViewsResponse, type YouTubePlatformData, type YouTubeScopeMissingResponse, type action, type aggregation, type aggregation2, type aggregation3, type billingPeriod, type commercialContentType, type contentType, type contentType2, Late as default, type direction, type disconnectionType, type event, type event2, type event3, type event4, type event5, type graduationStrategy, type mediaType, parseApiError, type parseMode, type platform, type platform2, type status, type status2, type status3, type status4, type status5, type status6, type type, type type2, type type3, type visibility };
5214
+ export { type AccountGetResponse, type AccountWithFollowerStats, type AccountsListResponse, type AnalyticsListResponse, type AnalyticsOverview, type AnalyticsSinglePostResponse, type ApiKey, 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 CreateAccountGroupData, type CreateAccountGroupError, type CreateAccountGroupResponse, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyResponse, 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 DeleteInboxCommentData, type DeleteInboxCommentError, type DeleteInboxCommentResponse, type DeleteInboxReviewReplyData, type DeleteInboxReviewReplyError, type DeleteInboxReviewReplyResponse, type DeletePostData, type DeletePostError, type DeletePostResponse, type DeleteProfileData, type DeleteProfileError, type DeleteProfileResponse, type DeleteQueueSlotData, type DeleteQueueSlotError, type DeleteQueueSlotResponse, 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 ErrorResponse, type FacebookPlatformData, type FollowerStatsResponse, 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 GetGoogleBusinessReviewsData, type GetGoogleBusinessReviewsError, type GetGoogleBusinessReviewsResponse, type GetInboxConversationData, type GetInboxConversationError, type GetInboxConversationMessagesData, type GetInboxConversationMessagesError, type GetInboxConversationMessagesResponse, type GetInboxConversationResponse, type GetInboxPostCommentsData, type GetInboxPostCommentsError, type GetInboxPostCommentsResponse, 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 GetLogData, type GetLogError, type GetLogResponse, type GetMediaPresignedUrlData, type GetMediaPresignedUrlError, type GetMediaPresignedUrlResponse, 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 GetRedditSubredditsData, type GetRedditSubredditsError, type GetRedditSubredditsResponse, 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 ListFacebookPagesData, type ListFacebookPagesError, type ListFacebookPagesResponse, type ListGoogleBusinessLocationsData, type ListGoogleBusinessLocationsError, type ListGoogleBusinessLocationsResponse, 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 ListLogsData, type ListLogsError, type ListLogsResponse, type ListPinterestBoardsForSelectionData, type ListPinterestBoardsForSelectionError, type ListPinterestBoardsForSelectionResponse, type ListPostsData, type ListPostsError, 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 Pagination, type ParameterLimitParam, type ParameterPageParam, type PinterestPlatformData, type PlatformAnalytics, type PlatformTarget, type Post, type PostAnalytics, type PostCreateResponse, type PostDeleteResponse, type PostGetResponse, type PostLog, type PostLogDetail, 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 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 SnapchatPlatformData, type SocialAccount, type TelegramPlatformData, type TestWebhookData, type TestWebhookError, type TestWebhookResponse, type ThreadsPlatformData, type TikTokPlatformData, type TikTokSettings, type TranscriptResponse, type TranscriptSegment, type TwitterPlatformData, type UnhideInboxCommentData, type UnhideInboxCommentError, type UnhideInboxCommentResponse, type UnlikeInboxCommentData, type UnlikeInboxCommentError, type UnlikeInboxCommentResponse, 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 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 WebhookPayloadMessage, type WebhookPayloadPost, type YouTubeDailyViewsResponse, type YouTubePlatformData, type YouTubeScopeMissingResponse, type action, type aggregation, type aggregation2, type aggregation3, type billingPeriod, type commercialContentType, type contentType, type contentType2, Late as default, type direction, type disconnectionType, type errorCategory, type errorSource, type event, type event2, type event3, type event4, type event5, type graduationStrategy, type mediaType, parseApiError, type parseMode, type platform, type platform2, 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
@@ -260,6 +260,7 @@ declare class Late {
260
260
  unhideInboxComment: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UnhideInboxCommentData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UnhideInboxCommentResponse, unknown, ThrowOnError>;
261
261
  likeInboxComment: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<LikeInboxCommentData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<LikeInboxCommentResponse, unknown, ThrowOnError>;
262
262
  unlikeInboxComment: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UnlikeInboxCommentData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UnlikeInboxCommentResponse, unknown, ThrowOnError>;
263
+ sendPrivateReplyToComment: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SendPrivateReplyToCommentData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SendPrivateReplyToCommentResponse, unknown, ThrowOnError>;
263
264
  };
264
265
  /**
265
266
  * reviews API
@@ -456,6 +457,7 @@ type ErrorResponse = {
456
457
  * - Multiple videos in the same post are not supported.
457
458
  * - Stories require media (single image or video); text captions are not displayed with stories.
458
459
  * - Stories are ephemeral (disappear after 24 hours).
460
+ * - Use pageId to post to multiple pages from the same account connection.
459
461
  *
460
462
  */
461
463
  type FacebookPlatformData = {
@@ -468,7 +470,10 @@ type FacebookPlatformData = {
468
470
  */
469
471
  firstComment?: string;
470
472
  /**
471
- * Target Facebook Page ID. If omitted, uses the selected/default page on the connection.
473
+ * Target Facebook Page ID for multi-page posting.
474
+ * If omitted, uses the selected/default page on the connection.
475
+ * Use GET /api/v1/accounts/{id}/facebook-page to list available pages.
476
+ *
472
477
  */
473
478
  pageId?: string;
474
479
  };
@@ -491,9 +496,18 @@ type aggregation = 'daily' | 'weekly' | 'monthly';
491
496
  * - Images must be publicly accessible URLs
492
497
  * - Call-to-action buttons drive user engagement
493
498
  * - Posts appear on your Google Business Profile and in Google Search/Maps
499
+ * - Use locationId to post to multiple locations from the same account connection
494
500
  *
495
501
  */
496
502
  type GoogleBusinessPlatformData = {
503
+ /**
504
+ * Target Google Business location ID for multi-location posting.
505
+ * Format: "locations/123456789"
506
+ * If omitted, uses the selected/default location on the connection.
507
+ * Use GET /api/v1/accounts/{id}/gmb-locations to list available locations.
508
+ *
509
+ */
510
+ locationId?: string;
497
511
  /**
498
512
  * Optional call-to-action button displayed on the post
499
513
  */
@@ -719,9 +733,18 @@ type aggregation3 = 'TOTAL';
719
733
  * - Single PDF document posts are supported (max 100MB, ~300 pages). Documents cannot be mixed with other media.
720
734
  * - Post ID is returned in the x-restli-id response header.
721
735
  * - Link previews are automatically generated for URLs when no media is attached (can be disabled with disableLinkPreview).
736
+ * - Use organizationUrn to post to multiple organizations from the same account connection.
722
737
  *
723
738
  */
724
739
  type LinkedInPlatformData = {
740
+ /**
741
+ * Target LinkedIn Organization URN for multi-organization posting.
742
+ * Format: "urn:li:organization:123456789"
743
+ * If omitted, uses the selected/default organization on the connection.
744
+ * Use GET /api/v1/accounts/{id}/linkedin-organizations to list available organizations.
745
+ *
746
+ */
747
+ organizationUrn?: string;
725
748
  /**
726
749
  * Optional first comment to add after the post is created
727
750
  */
@@ -890,7 +913,60 @@ type PlatformTarget = {
890
913
  * Timestamp when the post was published to this platform
891
914
  */
892
915
  publishedAt?: string;
916
+ /**
917
+ * Human-readable error message when status is 'failed'.
918
+ * Contains platform-specific error details explaining why the publish failed.
919
+ * Examples:
920
+ * - "Instagram access token has expired. Please reconnect your account."
921
+ * - "Post text exceeds the 500 character limit for Threads."
922
+ * - "You do not have enough karma to post in this subreddit."
923
+ * - "Video is too long for Reels. Facebook Reels must be 90 seconds or less."
924
+ *
925
+ */
926
+ errorMessage?: string;
927
+ /**
928
+ * Error category for programmatic handling:
929
+ * - auth_expired: Token expired or revoked, account needs reconnection
930
+ * - user_content: Content doesn't meet platform requirements (too long, wrong format, etc.)
931
+ * - user_abuse: Rate limits, spam detection, excessive posting
932
+ * - account_issue: Account configuration problems (missing board, inactive account)
933
+ * - platform_rejected: Platform rules violated (banned, suspended, policy violation)
934
+ * - platform_error: Platform-side issues (5xx errors, maintenance)
935
+ * - system_error: Late infrastructure issues (timeouts, network errors)
936
+ * - unknown: Unclassified error
937
+ *
938
+ */
939
+ errorCategory?: 'auth_expired' | 'user_content' | 'user_abuse' | 'account_issue' | 'platform_rejected' | 'platform_error' | 'system_error' | 'unknown';
940
+ /**
941
+ * Who/what caused the error:
942
+ * - user: User action required (fix content, reconnect account)
943
+ * - platform: Platform-side issue (outage, API change)
944
+ * - system: Late system issue (rare)
945
+ *
946
+ */
947
+ errorSource?: 'user' | 'platform' | 'system';
893
948
  };
949
+ /**
950
+ * Error category for programmatic handling:
951
+ * - auth_expired: Token expired or revoked, account needs reconnection
952
+ * - user_content: Content doesn't meet platform requirements (too long, wrong format, etc.)
953
+ * - user_abuse: Rate limits, spam detection, excessive posting
954
+ * - account_issue: Account configuration problems (missing board, inactive account)
955
+ * - platform_rejected: Platform rules violated (banned, suspended, policy violation)
956
+ * - platform_error: Platform-side issues (5xx errors, maintenance)
957
+ * - system_error: Late infrastructure issues (timeouts, network errors)
958
+ * - unknown: Unclassified error
959
+ *
960
+ */
961
+ type errorCategory = 'auth_expired' | 'user_content' | 'user_abuse' | 'account_issue' | 'platform_rejected' | 'platform_error' | 'system_error' | 'unknown';
962
+ /**
963
+ * Who/what caused the error:
964
+ * - user: User action required (fix content, reconnect account)
965
+ * - platform: Platform-side issue (outage, API change)
966
+ * - system: Late system issue (rare)
967
+ *
968
+ */
969
+ type errorSource = 'user' | 'platform' | 'system';
894
970
  type Post = {
895
971
  _id?: string;
896
972
  userId?: (string | User);
@@ -1829,6 +1905,15 @@ type YouTubePlatformData = {
1829
1905
  *
1830
1906
  */
1831
1907
  containsSyntheticMedia?: boolean;
1908
+ /**
1909
+ * YouTube video category ID. Defaults to '22' (People & Blogs).
1910
+ * Common categories: 1 (Film & Animation), 2 (Autos & Vehicles), 10 (Music),
1911
+ * 15 (Pets & Animals), 17 (Sports), 20 (Gaming), 22 (People & Blogs),
1912
+ * 23 (Comedy), 24 (Entertainment), 25 (News & Politics), 26 (Howto & Style),
1913
+ * 27 (Education), 28 (Science & Technology).
1914
+ *
1915
+ */
1916
+ categoryId?: string;
1832
1917
  };
1833
1918
  type YouTubeScopeMissingResponse = {
1834
1919
  success?: boolean;
@@ -2066,6 +2151,14 @@ type GetAnalyticsData = {
2066
2151
  * Sort by date or engagement
2067
2152
  */
2068
2153
  sortBy?: 'date' | 'engagement';
2154
+ /**
2155
+ * Filter by post source:
2156
+ * - `late` - Only posts scheduled/published via Late API
2157
+ * - `external` - Only posts synced from the platform (not posted via Late)
2158
+ * - `all` - All posts (default)
2159
+ *
2160
+ */
2161
+ source?: 'all' | 'late' | 'external';
2069
2162
  /**
2070
2163
  * Inclusive upper bound
2071
2164
  */
@@ -2279,6 +2372,11 @@ type ListPostsError = ({
2279
2372
  type CreatePostData = {
2280
2373
  body: {
2281
2374
  title?: string;
2375
+ /**
2376
+ * Post caption/text content. Optional when media is attached (images, videos, etc.).
2377
+ * Required for text-only posts. Can also be omitted if all platforms have customContent set.
2378
+ *
2379
+ */
2282
2380
  content?: string;
2283
2381
  mediaItems?: Array<{
2284
2382
  type?: 'image' | 'video' | 'gif' | 'document';
@@ -4461,6 +4559,9 @@ type ListInboxConversationsError = ({
4461
4559
  } | unknown);
4462
4560
  type GetInboxConversationData = {
4463
4561
  path: {
4562
+ /**
4563
+ * The conversation ID (id field from list conversations endpoint). This is the platform-specific conversation identifier, not an internal database ID.
4564
+ */
4464
4565
  conversationId: string;
4465
4566
  };
4466
4567
  query: {
@@ -4500,6 +4601,9 @@ type UpdateInboxConversationData = {
4500
4601
  status: 'active' | 'archived';
4501
4602
  };
4502
4603
  path: {
4604
+ /**
4605
+ * The conversation ID (id field from list conversations endpoint). This is the platform-specific conversation identifier, not an internal database ID.
4606
+ */
4503
4607
  conversationId: string;
4504
4608
  };
4505
4609
  };
@@ -4518,6 +4622,9 @@ type UpdateInboxConversationError = ({
4518
4622
  } | unknown);
4519
4623
  type GetInboxConversationMessagesData = {
4520
4624
  path: {
4625
+ /**
4626
+ * The conversation ID (id field from list conversations endpoint). This is the platform-specific conversation identifier, not an internal database ID.
4627
+ */
4521
4628
  conversationId: string;
4522
4629
  };
4523
4630
  query: {
@@ -4576,6 +4683,9 @@ type SendInboxMessageData = {
4576
4683
  message: string;
4577
4684
  };
4578
4685
  path: {
4686
+ /**
4687
+ * The conversation ID (id field from list conversations endpoint). This is the platform-specific conversation identifier, not an internal database ID.
4688
+ */
4579
4689
  conversationId: string;
4580
4690
  };
4581
4691
  };
@@ -4946,6 +5056,46 @@ type UnlikeInboxCommentResponse = ({
4946
5056
  type UnlikeInboxCommentError = (unknown | {
4947
5057
  error?: string;
4948
5058
  });
5059
+ type SendPrivateReplyToCommentData = {
5060
+ body: {
5061
+ /**
5062
+ * The Instagram social account ID
5063
+ */
5064
+ accountId: string;
5065
+ /**
5066
+ * The message text to send as a private DM
5067
+ */
5068
+ message: string;
5069
+ };
5070
+ path: {
5071
+ /**
5072
+ * The comment ID to send a private reply to
5073
+ */
5074
+ commentId: string;
5075
+ /**
5076
+ * The Instagram media/post ID
5077
+ */
5078
+ postId: string;
5079
+ };
5080
+ };
5081
+ type SendPrivateReplyToCommentResponse = ({
5082
+ status?: string;
5083
+ /**
5084
+ * The ID of the sent message
5085
+ */
5086
+ messageId?: string;
5087
+ /**
5088
+ * The comment ID that was replied to
5089
+ */
5090
+ commentId?: string;
5091
+ platform?: string;
5092
+ });
5093
+ type SendPrivateReplyToCommentError = ({
5094
+ error?: string;
5095
+ code?: 'PLATFORM_LIMITATION';
5096
+ } | {
5097
+ error?: string;
5098
+ } | unknown);
4949
5099
  type ListInboxReviewsData = {
4950
5100
  query?: {
4951
5101
  /**
@@ -5061,4 +5211,4 @@ type DeleteInboxReviewReplyError = ({
5061
5211
  error?: string;
5062
5212
  } | unknown);
5063
5213
 
5064
- export { type AccountGetResponse, type AccountWithFollowerStats, type AccountsListResponse, type AnalyticsListResponse, type AnalyticsOverview, type AnalyticsSinglePostResponse, type ApiKey, 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 CreateAccountGroupData, type CreateAccountGroupError, type CreateAccountGroupResponse, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyResponse, 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 DeleteInboxCommentData, type DeleteInboxCommentError, type DeleteInboxCommentResponse, type DeleteInboxReviewReplyData, type DeleteInboxReviewReplyError, type DeleteInboxReviewReplyResponse, type DeletePostData, type DeletePostError, type DeletePostResponse, type DeleteProfileData, type DeleteProfileError, type DeleteProfileResponse, type DeleteQueueSlotData, type DeleteQueueSlotError, type DeleteQueueSlotResponse, 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 ErrorResponse, type FacebookPlatformData, type FollowerStatsResponse, 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 GetGoogleBusinessReviewsData, type GetGoogleBusinessReviewsError, type GetGoogleBusinessReviewsResponse, type GetInboxConversationData, type GetInboxConversationError, type GetInboxConversationMessagesData, type GetInboxConversationMessagesError, type GetInboxConversationMessagesResponse, type GetInboxConversationResponse, type GetInboxPostCommentsData, type GetInboxPostCommentsError, type GetInboxPostCommentsResponse, 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 GetLogData, type GetLogError, type GetLogResponse, type GetMediaPresignedUrlData, type GetMediaPresignedUrlError, type GetMediaPresignedUrlResponse, 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 GetRedditSubredditsData, type GetRedditSubredditsError, type GetRedditSubredditsResponse, 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 ListFacebookPagesData, type ListFacebookPagesError, type ListFacebookPagesResponse, type ListGoogleBusinessLocationsData, type ListGoogleBusinessLocationsError, type ListGoogleBusinessLocationsResponse, 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 ListLogsData, type ListLogsError, type ListLogsResponse, type ListPinterestBoardsForSelectionData, type ListPinterestBoardsForSelectionError, type ListPinterestBoardsForSelectionResponse, type ListPostsData, type ListPostsError, 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 Pagination, type ParameterLimitParam, type ParameterPageParam, type PinterestPlatformData, type PlatformAnalytics, type PlatformTarget, type Post, type PostAnalytics, type PostCreateResponse, type PostDeleteResponse, type PostGetResponse, type PostLog, type PostLogDetail, 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 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 SnapchatPlatformData, type SocialAccount, type TelegramPlatformData, type TestWebhookData, type TestWebhookError, type TestWebhookResponse, type ThreadsPlatformData, type TikTokPlatformData, type TikTokSettings, type TranscriptResponse, type TranscriptSegment, type TwitterPlatformData, type UnhideInboxCommentData, type UnhideInboxCommentError, type UnhideInboxCommentResponse, type UnlikeInboxCommentData, type UnlikeInboxCommentError, type UnlikeInboxCommentResponse, 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 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 WebhookPayloadMessage, type WebhookPayloadPost, type YouTubeDailyViewsResponse, type YouTubePlatformData, type YouTubeScopeMissingResponse, type action, type aggregation, type aggregation2, type aggregation3, type billingPeriod, type commercialContentType, type contentType, type contentType2, Late as default, type direction, type disconnectionType, type event, type event2, type event3, type event4, type event5, type graduationStrategy, type mediaType, parseApiError, type parseMode, type platform, type platform2, type status, type status2, type status3, type status4, type status5, type status6, type type, type type2, type type3, type visibility };
5214
+ export { type AccountGetResponse, type AccountWithFollowerStats, type AccountsListResponse, type AnalyticsListResponse, type AnalyticsOverview, type AnalyticsSinglePostResponse, type ApiKey, 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 CreateAccountGroupData, type CreateAccountGroupError, type CreateAccountGroupResponse, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyResponse, 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 DeleteInboxCommentData, type DeleteInboxCommentError, type DeleteInboxCommentResponse, type DeleteInboxReviewReplyData, type DeleteInboxReviewReplyError, type DeleteInboxReviewReplyResponse, type DeletePostData, type DeletePostError, type DeletePostResponse, type DeleteProfileData, type DeleteProfileError, type DeleteProfileResponse, type DeleteQueueSlotData, type DeleteQueueSlotError, type DeleteQueueSlotResponse, 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 ErrorResponse, type FacebookPlatformData, type FollowerStatsResponse, 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 GetGoogleBusinessReviewsData, type GetGoogleBusinessReviewsError, type GetGoogleBusinessReviewsResponse, type GetInboxConversationData, type GetInboxConversationError, type GetInboxConversationMessagesData, type GetInboxConversationMessagesError, type GetInboxConversationMessagesResponse, type GetInboxConversationResponse, type GetInboxPostCommentsData, type GetInboxPostCommentsError, type GetInboxPostCommentsResponse, 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 GetLogData, type GetLogError, type GetLogResponse, type GetMediaPresignedUrlData, type GetMediaPresignedUrlError, type GetMediaPresignedUrlResponse, 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 GetRedditSubredditsData, type GetRedditSubredditsError, type GetRedditSubredditsResponse, 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 ListFacebookPagesData, type ListFacebookPagesError, type ListFacebookPagesResponse, type ListGoogleBusinessLocationsData, type ListGoogleBusinessLocationsError, type ListGoogleBusinessLocationsResponse, 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 ListLogsData, type ListLogsError, type ListLogsResponse, type ListPinterestBoardsForSelectionData, type ListPinterestBoardsForSelectionError, type ListPinterestBoardsForSelectionResponse, type ListPostsData, type ListPostsError, 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 Pagination, type ParameterLimitParam, type ParameterPageParam, type PinterestPlatformData, type PlatformAnalytics, type PlatformTarget, type Post, type PostAnalytics, type PostCreateResponse, type PostDeleteResponse, type PostGetResponse, type PostLog, type PostLogDetail, 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 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 SnapchatPlatformData, type SocialAccount, type TelegramPlatformData, type TestWebhookData, type TestWebhookError, type TestWebhookResponse, type ThreadsPlatformData, type TikTokPlatformData, type TikTokSettings, type TranscriptResponse, type TranscriptSegment, type TwitterPlatformData, type UnhideInboxCommentData, type UnhideInboxCommentError, type UnhideInboxCommentResponse, type UnlikeInboxCommentData, type UnlikeInboxCommentError, type UnlikeInboxCommentResponse, 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 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 WebhookPayloadMessage, type WebhookPayloadPost, type YouTubeDailyViewsResponse, type YouTubePlatformData, type YouTubeScopeMissingResponse, type action, type aggregation, type aggregation2, type aggregation3, type billingPeriod, type commercialContentType, type contentType, type contentType2, Late as default, type direction, type disconnectionType, type errorCategory, type errorSource, type event, type event2, type event3, type event4, type event5, type graduationStrategy, type mediaType, parseApiError, type parseMode, type platform, type platform2, 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
@@ -889,6 +889,12 @@ var unlikeInboxComment = (options) => {
889
889
  url: "/v1/inbox/comments/{postId}/{commentId}/like"
890
890
  });
891
891
  };
892
+ var sendPrivateReplyToComment = (options) => {
893
+ return (options?.client ?? client).post({
894
+ ...options,
895
+ url: "/v1/inbox/comments/{postId}/{commentId}/private-reply"
896
+ });
897
+ };
892
898
  var listInboxReviews = (options) => {
893
899
  return (options?.client ?? client).get({
894
900
  ...options,
@@ -1213,7 +1219,8 @@ var Late = class {
1213
1219
  hideInboxComment,
1214
1220
  unhideInboxComment,
1215
1221
  likeInboxComment,
1216
- unlikeInboxComment
1222
+ unlikeInboxComment,
1223
+ sendPrivateReplyToComment
1217
1224
  };
1218
1225
  /**
1219
1226
  * reviews API
package/dist/index.mjs CHANGED
@@ -860,6 +860,12 @@ var unlikeInboxComment = (options) => {
860
860
  url: "/v1/inbox/comments/{postId}/{commentId}/like"
861
861
  });
862
862
  };
863
+ var sendPrivateReplyToComment = (options) => {
864
+ return (options?.client ?? client).post({
865
+ ...options,
866
+ url: "/v1/inbox/comments/{postId}/{commentId}/private-reply"
867
+ });
868
+ };
863
869
  var listInboxReviews = (options) => {
864
870
  return (options?.client ?? client).get({
865
871
  ...options,
@@ -1184,7 +1190,8 @@ var Late = class {
1184
1190
  hideInboxComment,
1185
1191
  unhideInboxComment,
1186
1192
  likeInboxComment,
1187
- unlikeInboxComment
1193
+ unlikeInboxComment,
1194
+ sendPrivateReplyToComment
1188
1195
  };
1189
1196
  /**
1190
1197
  * reviews API
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "The official Node.js library for the Late API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/src/client.ts CHANGED
@@ -90,6 +90,7 @@ import {
90
90
  selectPinterestBoard,
91
91
  selectSnapchatProfile,
92
92
  sendInboxMessage,
93
+ sendPrivateReplyToComment,
93
94
  testWebhook,
94
95
  unhideInboxComment,
95
96
  unlikeInboxComment,
@@ -391,6 +392,7 @@ export class Late {
391
392
  unhideInboxComment: unhideInboxComment,
392
393
  likeInboxComment: likeInboxComment,
393
394
  unlikeInboxComment: unlikeInboxComment,
395
+ sendPrivateReplyToComment: sendPrivateReplyToComment,
394
396
  };
395
397
 
396
398
  /**
@@ -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, 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, 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, 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, ListLogsData, ListLogsError, ListLogsResponse, GetLogData, GetLogError, GetLogResponse, GetPostLogsData, GetPostLogsError, GetPostLogsResponse, ListInboxConversationsData, ListInboxConversationsError, ListInboxConversationsResponse, GetInboxConversationData, GetInboxConversationError, GetInboxConversationResponse, UpdateInboxConversationData, UpdateInboxConversationError, UpdateInboxConversationResponse, GetInboxConversationMessagesData, GetInboxConversationMessagesError, GetInboxConversationMessagesResponse, SendInboxMessageData, SendInboxMessageError, SendInboxMessageResponse, ListInboxCommentsData, ListInboxCommentsError, ListInboxCommentsResponse, GetInboxPostCommentsData, GetInboxPostCommentsError, GetInboxPostCommentsResponse, ReplyToInboxPostData, ReplyToInboxPostError, ReplyToInboxPostResponse, DeleteInboxCommentData, DeleteInboxCommentError, DeleteInboxCommentResponse, HideInboxCommentData, HideInboxCommentError, HideInboxCommentResponse, UnhideInboxCommentData, UnhideInboxCommentError, UnhideInboxCommentResponse, LikeInboxCommentData, LikeInboxCommentError, LikeInboxCommentResponse, UnlikeInboxCommentData, UnlikeInboxCommentError, UnlikeInboxCommentResponse, 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, 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, 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, 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, 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, ListLogsData, ListLogsError, ListLogsResponse, GetLogData, GetLogError, GetLogResponse, GetPostLogsData, GetPostLogsError, GetPostLogsResponse, ListInboxConversationsData, ListInboxConversationsError, ListInboxConversationsResponse, GetInboxConversationData, GetInboxConversationError, GetInboxConversationResponse, UpdateInboxConversationData, UpdateInboxConversationError, UpdateInboxConversationResponse, GetInboxConversationMessagesData, GetInboxConversationMessagesError, GetInboxConversationMessagesResponse, SendInboxMessageData, SendInboxMessageError, SendInboxMessageResponse, 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
 
@@ -346,6 +346,15 @@ export const listPosts = <ThrowOnError extends boolean = false>(options?: Option
346
346
  * - For immediate posts (`publishNow: true`): The response includes `platformPostUrl` in each platform entry under `post.platforms[]`.
347
347
  * - For scheduled posts: Fetch the post via `GET /v1/posts/{postId}` after the scheduled time; `platformPostUrl` will be populated once published.
348
348
  *
349
+ * **Content/Caption requirements:**
350
+ * - `content` (caption/description) is optional when:
351
+ * - Media is attached (`mediaItems` or per-platform `customMedia`)
352
+ * - All platforms have `customContent` set
353
+ * - Posting only to YouTube (title is used instead)
354
+ * - Text-only posts (no media) require `content`
355
+ * - Stories do not use captions (content is ignored)
356
+ * - Reels, feed posts, and other media posts can have optional captions
357
+ *
349
358
  * Platform constraints:
350
359
  * - YouTube requires a video in mediaItems; optional custom thumbnail via MediaItem.thumbnail.
351
360
  * - Instagram and TikTok require media; do not mix videos and images for TikTok.
@@ -357,6 +366,14 @@ export const listPosts = <ThrowOnError extends boolean = false>(options?: Option
357
366
  * - Bluesky supports up to 4 images per post. Images may be automatically recompressed to ≤ ~1MB to satisfy Bluesky's blob limit. When no media is attached, a link preview may be generated for URLs in the text.
358
367
  * - Snapchat requires media (single image or video); set contentType to 'story', 'saved_story', or 'spotlight' in platformSpecificData. Stories are ephemeral (24h), Saved Stories are permanent, Spotlight is for video content.
359
368
  *
369
+ * **Multi-page/multi-location posting:**
370
+ * Some platforms allow posting to multiple pages, organizations, or locations from a single account connection.
371
+ * Use the same accountId multiple times with different targets in platformSpecificData:
372
+ * - Facebook: `pageId` - post to multiple Facebook Pages (list via GET /v1/accounts/{id}/facebook-page)
373
+ * - LinkedIn: `organizationUrn` - post to multiple organizations (list via GET /v1/accounts/{id}/linkedin-organizations)
374
+ * - Google Business: `locationId` - post to multiple locations (list via GET /v1/accounts/{id}/gmb-locations)
375
+ * - Reddit: `subreddit` - post to multiple subreddits from the same account
376
+ *
360
377
  */
361
378
  export const createPost = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreatePostData, ThrowOnError>) => {
362
379
  return (options?.client ?? client).post<CreatePostResponse, CreatePostError, ThrowOnError>({
@@ -1637,6 +1654,30 @@ export const unlikeInboxComment = <ThrowOnError extends boolean = false>(options
1637
1654
  });
1638
1655
  };
1639
1656
 
1657
+ /**
1658
+ * Send private reply to comment author
1659
+ * Send a private direct message to the author of a comment on your post.
1660
+ * This is useful for handling customer inquiries or sensitive matters privately.
1661
+ *
1662
+ * **Supported platforms:** Instagram only
1663
+ *
1664
+ * **Limitations:**
1665
+ * - Instagram only allows ONE private reply per comment
1666
+ * - Must be sent within 7 days of the comment being posted
1667
+ * - Only works for comments on posts owned by the connected account
1668
+ * - Message goes to the user's Inbox (if they follow you) or Message Requests (if they don't)
1669
+ * - Requires `instagram_business_manage_messages` permission (already included in Late's OAuth)
1670
+ *
1671
+ * **Note:** This does not create a conversation thread until the user replies back.
1672
+ *
1673
+ */
1674
+ export const sendPrivateReplyToComment = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SendPrivateReplyToCommentData, ThrowOnError>) => {
1675
+ return (options?.client ?? client).post<SendPrivateReplyToCommentResponse, SendPrivateReplyToCommentError, ThrowOnError>({
1676
+ ...options,
1677
+ url: '/v1/inbox/comments/{postId}/{commentId}/private-reply'
1678
+ });
1679
+ };
1680
+
1640
1681
  /**
1641
1682
  * List reviews across all accounts
1642
1683
  * Fetch reviews from all connected Facebook Pages and Google Business accounts.
@@ -127,6 +127,7 @@ export type ErrorResponse = {
127
127
  * - Multiple videos in the same post are not supported.
128
128
  * - Stories require media (single image or video); text captions are not displayed with stories.
129
129
  * - Stories are ephemeral (disappear after 24 hours).
130
+ * - Use pageId to post to multiple pages from the same account connection.
130
131
  *
131
132
  */
132
133
  export type FacebookPlatformData = {
@@ -139,7 +140,10 @@ export type FacebookPlatformData = {
139
140
  */
140
141
  firstComment?: string;
141
142
  /**
142
- * Target Facebook Page ID. If omitted, uses the selected/default page on the connection.
143
+ * Target Facebook Page ID for multi-page posting.
144
+ * If omitted, uses the selected/default page on the connection.
145
+ * Use GET /api/v1/accounts/{id}/facebook-page to list available pages.
146
+ *
143
147
  */
144
148
  pageId?: string;
145
149
  };
@@ -166,9 +170,18 @@ export type aggregation = 'daily' | 'weekly' | 'monthly';
166
170
  * - Images must be publicly accessible URLs
167
171
  * - Call-to-action buttons drive user engagement
168
172
  * - Posts appear on your Google Business Profile and in Google Search/Maps
173
+ * - Use locationId to post to multiple locations from the same account connection
169
174
  *
170
175
  */
171
176
  export type GoogleBusinessPlatformData = {
177
+ /**
178
+ * Target Google Business location ID for multi-location posting.
179
+ * Format: "locations/123456789"
180
+ * If omitted, uses the selected/default location on the connection.
181
+ * Use GET /api/v1/accounts/{id}/gmb-locations to list available locations.
182
+ *
183
+ */
184
+ locationId?: string;
172
185
  /**
173
186
  * Optional call-to-action button displayed on the post
174
187
  */
@@ -405,9 +418,18 @@ export type aggregation3 = 'TOTAL';
405
418
  * - Single PDF document posts are supported (max 100MB, ~300 pages). Documents cannot be mixed with other media.
406
419
  * - Post ID is returned in the x-restli-id response header.
407
420
  * - Link previews are automatically generated for URLs when no media is attached (can be disabled with disableLinkPreview).
421
+ * - Use organizationUrn to post to multiple organizations from the same account connection.
408
422
  *
409
423
  */
410
424
  export type LinkedInPlatformData = {
425
+ /**
426
+ * Target LinkedIn Organization URN for multi-organization posting.
427
+ * Format: "urn:li:organization:123456789"
428
+ * If omitted, uses the selected/default organization on the connection.
429
+ * Use GET /api/v1/accounts/{id}/linkedin-organizations to list available organizations.
430
+ *
431
+ */
432
+ organizationUrn?: string;
411
433
  /**
412
434
  * Optional first comment to add after the post is created
413
435
  */
@@ -585,8 +607,63 @@ export type PlatformTarget = {
585
607
  * Timestamp when the post was published to this platform
586
608
  */
587
609
  publishedAt?: string;
610
+ /**
611
+ * Human-readable error message when status is 'failed'.
612
+ * Contains platform-specific error details explaining why the publish failed.
613
+ * Examples:
614
+ * - "Instagram access token has expired. Please reconnect your account."
615
+ * - "Post text exceeds the 500 character limit for Threads."
616
+ * - "You do not have enough karma to post in this subreddit."
617
+ * - "Video is too long for Reels. Facebook Reels must be 90 seconds or less."
618
+ *
619
+ */
620
+ errorMessage?: string;
621
+ /**
622
+ * Error category for programmatic handling:
623
+ * - auth_expired: Token expired or revoked, account needs reconnection
624
+ * - user_content: Content doesn't meet platform requirements (too long, wrong format, etc.)
625
+ * - user_abuse: Rate limits, spam detection, excessive posting
626
+ * - account_issue: Account configuration problems (missing board, inactive account)
627
+ * - platform_rejected: Platform rules violated (banned, suspended, policy violation)
628
+ * - platform_error: Platform-side issues (5xx errors, maintenance)
629
+ * - system_error: Late infrastructure issues (timeouts, network errors)
630
+ * - unknown: Unclassified error
631
+ *
632
+ */
633
+ errorCategory?: 'auth_expired' | 'user_content' | 'user_abuse' | 'account_issue' | 'platform_rejected' | 'platform_error' | 'system_error' | 'unknown';
634
+ /**
635
+ * Who/what caused the error:
636
+ * - user: User action required (fix content, reconnect account)
637
+ * - platform: Platform-side issue (outage, API change)
638
+ * - system: Late system issue (rare)
639
+ *
640
+ */
641
+ errorSource?: 'user' | 'platform' | 'system';
588
642
  };
589
643
 
644
+ /**
645
+ * Error category for programmatic handling:
646
+ * - auth_expired: Token expired or revoked, account needs reconnection
647
+ * - user_content: Content doesn't meet platform requirements (too long, wrong format, etc.)
648
+ * - user_abuse: Rate limits, spam detection, excessive posting
649
+ * - account_issue: Account configuration problems (missing board, inactive account)
650
+ * - platform_rejected: Platform rules violated (banned, suspended, policy violation)
651
+ * - platform_error: Platform-side issues (5xx errors, maintenance)
652
+ * - system_error: Late infrastructure issues (timeouts, network errors)
653
+ * - unknown: Unclassified error
654
+ *
655
+ */
656
+ export type errorCategory = 'auth_expired' | 'user_content' | 'user_abuse' | 'account_issue' | 'platform_rejected' | 'platform_error' | 'system_error' | 'unknown';
657
+
658
+ /**
659
+ * Who/what caused the error:
660
+ * - user: User action required (fix content, reconnect account)
661
+ * - platform: Platform-side issue (outage, API change)
662
+ * - system: Late system issue (rare)
663
+ *
664
+ */
665
+ export type errorSource = 'user' | 'platform' | 'system';
666
+
590
667
  export type Post = {
591
668
  _id?: string;
592
669
  userId?: (string | User);
@@ -1593,6 +1670,15 @@ export type YouTubePlatformData = {
1593
1670
  *
1594
1671
  */
1595
1672
  containsSyntheticMedia?: boolean;
1673
+ /**
1674
+ * YouTube video category ID. Defaults to '22' (People & Blogs).
1675
+ * Common categories: 1 (Film & Animation), 2 (Autos & Vehicles), 10 (Music),
1676
+ * 15 (Pets & Animals), 17 (Sports), 20 (Gaming), 22 (People & Blogs),
1677
+ * 23 (Comedy), 24 (Entertainment), 25 (News & Politics), 26 (Howto & Style),
1678
+ * 27 (Education), 28 (Science & Technology).
1679
+ *
1680
+ */
1681
+ categoryId?: string;
1596
1682
  };
1597
1683
 
1598
1684
  export type YouTubeScopeMissingResponse = {
@@ -1859,6 +1945,14 @@ export type GetAnalyticsData = {
1859
1945
  * Sort by date or engagement
1860
1946
  */
1861
1947
  sortBy?: 'date' | 'engagement';
1948
+ /**
1949
+ * Filter by post source:
1950
+ * - `late` - Only posts scheduled/published via Late API
1951
+ * - `external` - Only posts synced from the platform (not posted via Late)
1952
+ * - `all` - All posts (default)
1953
+ *
1954
+ */
1955
+ source?: 'all' | 'late' | 'external';
1862
1956
  /**
1863
1957
  * Inclusive upper bound
1864
1958
  */
@@ -2103,6 +2197,11 @@ export type ListPostsError = ({
2103
2197
  export type CreatePostData = {
2104
2198
  body: {
2105
2199
  title?: string;
2200
+ /**
2201
+ * Post caption/text content. Optional when media is attached (images, videos, etc.).
2202
+ * Required for text-only posts. Can also be omitted if all platforms have customContent set.
2203
+ *
2204
+ */
2106
2205
  content?: string;
2107
2206
  mediaItems?: Array<{
2108
2207
  type?: 'image' | 'video' | 'gif' | 'document';
@@ -4492,6 +4591,9 @@ export type ListInboxConversationsError = ({
4492
4591
 
4493
4592
  export type GetInboxConversationData = {
4494
4593
  path: {
4594
+ /**
4595
+ * The conversation ID (id field from list conversations endpoint). This is the platform-specific conversation identifier, not an internal database ID.
4596
+ */
4495
4597
  conversationId: string;
4496
4598
  };
4497
4599
  query: {
@@ -4534,6 +4636,9 @@ export type UpdateInboxConversationData = {
4534
4636
  status: 'active' | 'archived';
4535
4637
  };
4536
4638
  path: {
4639
+ /**
4640
+ * The conversation ID (id field from list conversations endpoint). This is the platform-specific conversation identifier, not an internal database ID.
4641
+ */
4537
4642
  conversationId: string;
4538
4643
  };
4539
4644
  };
@@ -4555,6 +4660,9 @@ export type UpdateInboxConversationError = ({
4555
4660
 
4556
4661
  export type GetInboxConversationMessagesData = {
4557
4662
  path: {
4663
+ /**
4664
+ * The conversation ID (id field from list conversations endpoint). This is the platform-specific conversation identifier, not an internal database ID.
4665
+ */
4558
4666
  conversationId: string;
4559
4667
  };
4560
4668
  query: {
@@ -4616,6 +4724,9 @@ export type SendInboxMessageData = {
4616
4724
  message: string;
4617
4725
  };
4618
4726
  path: {
4727
+ /**
4728
+ * The conversation ID (id field from list conversations endpoint). This is the platform-specific conversation identifier, not an internal database ID.
4729
+ */
4619
4730
  conversationId: string;
4620
4731
  };
4621
4732
  };
@@ -5013,6 +5124,49 @@ export type UnlikeInboxCommentError = (unknown | {
5013
5124
  error?: string;
5014
5125
  });
5015
5126
 
5127
+ export type SendPrivateReplyToCommentData = {
5128
+ body: {
5129
+ /**
5130
+ * The Instagram social account ID
5131
+ */
5132
+ accountId: string;
5133
+ /**
5134
+ * The message text to send as a private DM
5135
+ */
5136
+ message: string;
5137
+ };
5138
+ path: {
5139
+ /**
5140
+ * The comment ID to send a private reply to
5141
+ */
5142
+ commentId: string;
5143
+ /**
5144
+ * The Instagram media/post ID
5145
+ */
5146
+ postId: string;
5147
+ };
5148
+ };
5149
+
5150
+ export type SendPrivateReplyToCommentResponse = ({
5151
+ status?: string;
5152
+ /**
5153
+ * The ID of the sent message
5154
+ */
5155
+ messageId?: string;
5156
+ /**
5157
+ * The comment ID that was replied to
5158
+ */
5159
+ commentId?: string;
5160
+ platform?: string;
5161
+ });
5162
+
5163
+ export type SendPrivateReplyToCommentError = ({
5164
+ error?: string;
5165
+ code?: 'PLATFORM_LIMITATION';
5166
+ } | {
5167
+ error?: string;
5168
+ } | unknown);
5169
+
5016
5170
  export type ListInboxReviewsData = {
5017
5171
  query?: {
5018
5172
  /**