@getlatedev/node 0.1.13 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -273,7 +273,9 @@ try {
273
273
  ### Logs
274
274
  | Method | Description |
275
275
  |--------|-------------|
276
- | `logs.listLogs()` | Get publishing logs |
276
+ | `logs.listConnectionLogs()` | Get connection logs |
277
+ | `logs.listLogs()` | Get publishing logs (deprecated) |
278
+ | `logs.listPostsLogs()` | Get publishing logs |
277
279
  | `logs.getLog()` | Get a single log entry |
278
280
  | `logs.getPostLogs()` | Get logs for a specific post |
279
281
 
package/dist/index.d.mts CHANGED
@@ -273,6 +273,8 @@ declare class Late {
273
273
  logs: {
274
274
  listLogs: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListLogsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListLogsResponse, ListLogsError, ThrowOnError>;
275
275
  getLog: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetLogData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetLogResponse, unknown, ThrowOnError>;
276
+ listPostsLogs: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListPostsLogsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListPostsLogsResponse, ListPostsLogsError, ThrowOnError>;
277
+ listConnectionLogs: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListConnectionLogsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListConnectionLogsResponse, ListConnectionLogsError, ThrowOnError>;
276
278
  getPostLogs: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetPostLogsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetPostLogsResponse, unknown, ThrowOnError>;
277
279
  };
278
280
  /**
@@ -464,9 +466,131 @@ type ApiKey = {
464
466
  */
465
467
  key?: string;
466
468
  };
469
+ /**
470
+ * Bluesky post settings:
471
+ * - Supports text posts with up to 4 images per post
472
+ * - Videos supported (single video per post)
473
+ * - threadItems creates a reply chain (Bluesky thread)
474
+ * - Images exceeding Bluesky's 1MB limit are automatically compressed
475
+ * - Alt text for images is supported via mediaItem properties
476
+ *
477
+ */
478
+ type BlueskyPlatformData = {
479
+ /**
480
+ * Sequence of posts in a Bluesky thread (root then replies in order).
481
+ */
482
+ threadItems?: Array<{
483
+ content?: string;
484
+ mediaItems?: Array<MediaItem>;
485
+ }>;
486
+ };
467
487
  type CaptionResponse = {
468
488
  caption?: string;
469
489
  };
490
+ /**
491
+ * Connection event log showing account connection/disconnection history
492
+ */
493
+ type ConnectionLog = {
494
+ _id?: string;
495
+ /**
496
+ * User who owns the connection (may be null for early OAuth failures)
497
+ */
498
+ userId?: string;
499
+ profileId?: string;
500
+ /**
501
+ * The social account ID (present on successful connections and disconnects)
502
+ */
503
+ accountId?: string;
504
+ platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
505
+ /**
506
+ * Type of connection event:
507
+ * - `connect_success` - New account connected successfully
508
+ * - `connect_failed` - Connection attempt failed
509
+ * - `disconnect` - Account was disconnected
510
+ * - `reconnect_success` - Existing account reconnected successfully
511
+ * - `reconnect_failed` - Reconnection attempt failed
512
+ *
513
+ */
514
+ eventType?: 'connect_success' | 'connect_failed' | 'disconnect' | 'reconnect_success' | 'reconnect_failed';
515
+ /**
516
+ * How the connection was initiated
517
+ */
518
+ connectionMethod?: 'oauth' | 'credentials' | 'invitation';
519
+ /**
520
+ * Error details (present on failed events)
521
+ */
522
+ error?: {
523
+ /**
524
+ * Error code (e.g., oauth_denied, token_exchange_failed)
525
+ */
526
+ code?: string;
527
+ /**
528
+ * Human-readable error message
529
+ */
530
+ message?: string;
531
+ /**
532
+ * Raw error response (truncated to 2000 chars)
533
+ */
534
+ rawResponse?: string;
535
+ };
536
+ /**
537
+ * Success details (present on successful events)
538
+ */
539
+ success?: {
540
+ displayName?: string;
541
+ username?: string;
542
+ profilePicture?: string;
543
+ /**
544
+ * OAuth scopes/permissions granted
545
+ */
546
+ permissions?: Array<(string)>;
547
+ tokenExpiresAt?: string;
548
+ /**
549
+ * Account type (personal, business, organization)
550
+ */
551
+ accountType?: string;
552
+ };
553
+ /**
554
+ * Additional context about the connection attempt
555
+ */
556
+ context?: {
557
+ isHeadlessMode?: boolean;
558
+ hasCustomRedirectUrl?: boolean;
559
+ isReconnection?: boolean;
560
+ /**
561
+ * Using bring-your-own-keys
562
+ */
563
+ isBYOK?: boolean;
564
+ invitationToken?: string;
565
+ connectToken?: string;
566
+ };
567
+ /**
568
+ * How long the operation took in milliseconds
569
+ */
570
+ durationMs?: number;
571
+ /**
572
+ * Additional metadata
573
+ */
574
+ metadata?: {
575
+ [key: string]: unknown;
576
+ };
577
+ createdAt?: string;
578
+ };
579
+ type platform = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
580
+ /**
581
+ * Type of connection event:
582
+ * - `connect_success` - New account connected successfully
583
+ * - `connect_failed` - Connection attempt failed
584
+ * - `disconnect` - Account was disconnected
585
+ * - `reconnect_success` - Existing account reconnected successfully
586
+ * - `reconnect_failed` - Reconnection attempt failed
587
+ *
588
+ */
589
+ type eventType = 'connect_success' | 'connect_failed' | 'disconnect' | 'reconnect_success' | 'reconnect_failed';
590
+ /**
591
+ * How the connection was initiated
592
+ */
593
+ type connectionMethod = 'oauth' | 'credentials' | 'invitation';
470
594
  type DownloadFormat = {
471
595
  formatId?: string;
472
596
  ext?: string;
@@ -1014,7 +1138,7 @@ type PlatformTarget = {
1014
1138
  /**
1015
1139
  * Platform-specific overrides and options.
1016
1140
  */
1017
- platformSpecificData?: (TwitterPlatformData | ThreadsPlatformData | FacebookPlatformData | InstagramPlatformData | LinkedInPlatformData | PinterestPlatformData | YouTubePlatformData | GoogleBusinessPlatformData | TikTokPlatformData | TelegramPlatformData | SnapchatPlatformData);
1141
+ platformSpecificData?: (TwitterPlatformData | ThreadsPlatformData | FacebookPlatformData | InstagramPlatformData | LinkedInPlatformData | PinterestPlatformData | YouTubePlatformData | GoogleBusinessPlatformData | TikTokPlatformData | TelegramPlatformData | SnapchatPlatformData | RedditPlatformData | BlueskyPlatformData);
1018
1142
  /**
1019
1143
  * Platform-specific status: pending, publishing, published, failed
1020
1144
  */
@@ -1239,7 +1363,6 @@ type PostLog = {
1239
1363
  attemptNumber?: number;
1240
1364
  createdAt?: string;
1241
1365
  };
1242
- type platform = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
1243
1366
  /**
1244
1367
  * Type of action logged:
1245
1368
  * - `publish` - Initial publish attempt
@@ -1393,6 +1516,37 @@ type QueueUpdateResponse = {
1393
1516
  nextSlots?: Array<(string)>;
1394
1517
  reshuffledCount?: number;
1395
1518
  };
1519
+ /**
1520
+ * Reddit post settings:
1521
+ * - Posts are either "link" (with URL/media) or "self" (text-only)
1522
+ * - If media is provided, the first media item's URL is used as the link
1523
+ * - Use forceSelf to override and create a text post with the URL in the body
1524
+ * - Subreddit defaults to the account's configured subreddit if omitted
1525
+ * - Use the same accountId multiple times with different subreddit values in platformSpecificData to post to multiple subreddits
1526
+ * - Images are automatically compressed if they exceed Reddit's 20MB limit
1527
+ *
1528
+ */
1529
+ type RedditPlatformData = {
1530
+ /**
1531
+ * Target subreddit name (without "r/" prefix).
1532
+ * Overrides the default subreddit configured on the account connection.
1533
+ * Use GET /api/v1/accounts/{id}/reddit-subreddits to list available subreddits.
1534
+ *
1535
+ */
1536
+ subreddit?: string;
1537
+ /**
1538
+ * Post title. Defaults to the first line of content, truncated to 300 characters.
1539
+ */
1540
+ title?: string;
1541
+ /**
1542
+ * URL for link posts. If provided (and forceSelf is not true), creates a link post instead of a text post.
1543
+ */
1544
+ url?: string;
1545
+ /**
1546
+ * When true, creates a text/self post even when a URL or media is provided.
1547
+ */
1548
+ forceSelf?: boolean;
1549
+ };
1396
1550
  /**
1397
1551
  * Snapchat Public Profile API constraints:
1398
1552
  *
@@ -2523,7 +2677,7 @@ type CreatePostData = {
2523
2677
  * Optional per-platform scheduled time override. When omitted, the top-level scheduledFor is used.
2524
2678
  */
2525
2679
  scheduledFor?: string;
2526
- platformSpecificData?: (TwitterPlatformData | ThreadsPlatformData | FacebookPlatformData | InstagramPlatformData | LinkedInPlatformData | PinterestPlatformData | YouTubePlatformData | TikTokPlatformData | TelegramPlatformData | SnapchatPlatformData);
2680
+ platformSpecificData?: (TwitterPlatformData | ThreadsPlatformData | FacebookPlatformData | InstagramPlatformData | LinkedInPlatformData | PinterestPlatformData | YouTubePlatformData | GoogleBusinessPlatformData | TikTokPlatformData | TelegramPlatformData | SnapchatPlatformData | RedditPlatformData | BlueskyPlatformData);
2527
2681
  }>;
2528
2682
  scheduledFor?: string;
2529
2683
  publishNow?: boolean;
@@ -4963,6 +5117,100 @@ type GetLogResponse = ({
4963
5117
  type GetLogError = ({
4964
5118
  error?: string;
4965
5119
  } | unknown);
5120
+ type ListPostsLogsData = {
5121
+ query?: {
5122
+ /**
5123
+ * Filter by action type
5124
+ */
5125
+ action?: 'publish' | 'retry' | 'media_upload' | 'rate_limit_pause' | 'token_refresh' | 'cancelled' | 'all';
5126
+ /**
5127
+ * Number of days to look back (max 7)
5128
+ */
5129
+ days?: number;
5130
+ /**
5131
+ * Maximum number of logs to return (max 100)
5132
+ */
5133
+ limit?: number;
5134
+ /**
5135
+ * Filter by platform
5136
+ */
5137
+ platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'all';
5138
+ /**
5139
+ * Number of logs to skip (for pagination)
5140
+ */
5141
+ skip?: number;
5142
+ /**
5143
+ * Filter by log status
5144
+ */
5145
+ status?: 'success' | 'failed' | 'pending' | 'skipped' | 'all';
5146
+ };
5147
+ };
5148
+ type ListPostsLogsResponse = ({
5149
+ logs?: Array<PostLog>;
5150
+ pagination?: {
5151
+ /**
5152
+ * Total number of logs matching the query
5153
+ */
5154
+ total?: number;
5155
+ limit?: number;
5156
+ skip?: number;
5157
+ /**
5158
+ * Total number of pages
5159
+ */
5160
+ pages?: number;
5161
+ hasMore?: boolean;
5162
+ };
5163
+ });
5164
+ type ListPostsLogsError = ({
5165
+ error?: string;
5166
+ });
5167
+ type ListConnectionLogsData = {
5168
+ query?: {
5169
+ /**
5170
+ * Number of days to look back (max 7)
5171
+ */
5172
+ days?: number;
5173
+ /**
5174
+ * Filter by event type
5175
+ */
5176
+ eventType?: 'connect_success' | 'connect_failed' | 'disconnect' | 'reconnect_success' | 'reconnect_failed' | 'all';
5177
+ /**
5178
+ * Maximum number of logs to return (max 100)
5179
+ */
5180
+ limit?: number;
5181
+ /**
5182
+ * Filter by platform
5183
+ */
5184
+ platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'all';
5185
+ /**
5186
+ * Number of logs to skip (for pagination)
5187
+ */
5188
+ skip?: number;
5189
+ /**
5190
+ * Filter by status (shorthand for event types)
5191
+ */
5192
+ status?: 'success' | 'failed' | 'all';
5193
+ };
5194
+ };
5195
+ type ListConnectionLogsResponse = ({
5196
+ logs?: Array<ConnectionLog>;
5197
+ pagination?: {
5198
+ /**
5199
+ * Total number of logs matching the query
5200
+ */
5201
+ total?: number;
5202
+ limit?: number;
5203
+ skip?: number;
5204
+ /**
5205
+ * Total number of pages
5206
+ */
5207
+ pages?: number;
5208
+ hasMore?: boolean;
5209
+ };
5210
+ });
5211
+ type ListConnectionLogsError = ({
5212
+ error?: string;
5213
+ });
4966
5214
  type GetPostLogsData = {
4967
5215
  path: {
4968
5216
  /**
@@ -5311,6 +5559,9 @@ type ListInboxCommentsError = ({
5311
5559
  } | unknown);
5312
5560
  type GetInboxPostCommentsData = {
5313
5561
  path: {
5562
+ /**
5563
+ * The post identifier. Accepts a Late post ID (MongoDB ObjectId) which is automatically resolved to the platform-specific post ID, or a platform-specific post ID directly (e.g. tweet ID, Facebook Graph ID, YouTube video ID).
5564
+ */
5314
5565
  postId: string;
5315
5566
  };
5316
5567
  query: {
@@ -5442,6 +5693,9 @@ type ReplyToInboxPostData = {
5442
5693
  rootCid?: string;
5443
5694
  };
5444
5695
  path: {
5696
+ /**
5697
+ * The post identifier. Accepts a Late post ID or a platform-specific post ID.
5698
+ */
5445
5699
  postId: string;
5446
5700
  };
5447
5701
  };
@@ -5461,6 +5715,9 @@ type ReplyToInboxPostError = ({
5461
5715
  } | unknown);
5462
5716
  type DeleteInboxCommentData = {
5463
5717
  path: {
5718
+ /**
5719
+ * The post identifier. Accepts a Late post ID or a platform-specific post ID.
5720
+ */
5464
5721
  postId: string;
5465
5722
  };
5466
5723
  query: {
@@ -5722,4 +5979,4 @@ type DeleteInboxReviewReplyError = ({
5722
5979
  error?: string;
5723
5980
  } | unknown);
5724
5981
 
5725
- 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 CreateGoogleBusinessMediaData, type CreateGoogleBusinessMediaError, type CreateGoogleBusinessMediaResponse, type CreateGoogleBusinessPlaceActionData, type CreateGoogleBusinessPlaceActionError, type CreateGoogleBusinessPlaceActionResponse, type CreateInviteTokenData, type CreateInviteTokenError, type CreateInviteTokenResponse, type CreatePostData, type CreatePostError, type CreatePostResponse, type CreateProfileData, type CreateProfileError, type CreateProfileResponse, type CreateQueueSlotData, type CreateQueueSlotError, type CreateQueueSlotResponse, type CreateWebhookSettingsData, type CreateWebhookSettingsError, type CreateWebhookSettingsResponse, type DeleteAccountData, type DeleteAccountError, type DeleteAccountGroupData, type DeleteAccountGroupError, type DeleteAccountGroupResponse, type DeleteAccountResponse, type DeleteApiKeyData, type DeleteApiKeyError, type DeleteApiKeyResponse, type DeleteGoogleBusinessMediaData, type DeleteGoogleBusinessMediaError, type DeleteGoogleBusinessMediaResponse, type DeleteGoogleBusinessPlaceActionData, type DeleteGoogleBusinessPlaceActionError, type DeleteGoogleBusinessPlaceActionResponse, type DeleteInboxCommentData, type DeleteInboxCommentError, type DeleteInboxCommentResponse, type DeleteInboxReviewReplyData, type DeleteInboxReviewReplyError, type DeleteInboxReviewReplyResponse, type 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 FoodMenu, type FoodMenuItem, type FoodMenuItemAttributes, type FoodMenuLabel, type FoodMenuSection, type GetAccountHealthData, type GetAccountHealthError, type GetAccountHealthResponse, type GetAllAccountsHealthData, type GetAllAccountsHealthError, type GetAllAccountsHealthResponse, type GetAnalyticsData, type GetAnalyticsError, type GetAnalyticsResponse, type GetConnectUrlData, type GetConnectUrlError, type GetConnectUrlResponse, type GetFacebookPagesData, type GetFacebookPagesError, type GetFacebookPagesResponse, type GetFollowerStatsData, type GetFollowerStatsError, type GetFollowerStatsResponse, type GetGmbLocationsData, type GetGmbLocationsError, type GetGmbLocationsResponse, type GetGoogleBusinessAttributesData, type GetGoogleBusinessAttributesError, type GetGoogleBusinessAttributesResponse, type GetGoogleBusinessFoodMenusData, type GetGoogleBusinessFoodMenusError, type GetGoogleBusinessFoodMenusResponse, type GetGoogleBusinessLocationDetailsData, type GetGoogleBusinessLocationDetailsError, type GetGoogleBusinessLocationDetailsResponse, type GetGoogleBusinessReviewsData, type GetGoogleBusinessReviewsError, type GetGoogleBusinessReviewsResponse, type GetInboxConversationData, type GetInboxConversationError, type GetInboxConversationMessagesData, type GetInboxConversationMessagesError, type GetInboxConversationMessagesResponse, type GetInboxConversationResponse, type GetInboxPostCommentsData, type GetInboxPostCommentsError, type GetInboxPostCommentsResponse, type 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 ListGoogleBusinessMediaData, type ListGoogleBusinessMediaError, type ListGoogleBusinessMediaResponse, type ListGoogleBusinessPlaceActionsData, type ListGoogleBusinessPlaceActionsError, type ListGoogleBusinessPlaceActionsResponse, type ListInboxCommentsData, type ListInboxCommentsError, type ListInboxCommentsResponse, type ListInboxConversationsData, type ListInboxConversationsError, type ListInboxConversationsResponse, type ListInboxReviewsData, type ListInboxReviewsError, type ListInboxReviewsResponse, type ListLinkedInOrganizationsData, type ListLinkedInOrganizationsError, type ListLinkedInOrganizationsResponse, type 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 Money, type Pagination, type ParameterLimitParam, type ParameterPageParam, type PinterestPlatformData, type PlatformAnalytics, type PlatformTarget, type Post, type PostAnalytics, type PostCreateResponse, type PostDeleteResponse, type PostGetResponse, type PostLog, type 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 UpdateGoogleBusinessAttributesData, type UpdateGoogleBusinessAttributesError, type UpdateGoogleBusinessAttributesResponse, type UpdateGoogleBusinessFoodMenusData, type UpdateGoogleBusinessFoodMenusError, type UpdateGoogleBusinessFoodMenusResponse, type UpdateGoogleBusinessLocationDetailsData, type UpdateGoogleBusinessLocationDetailsError, type UpdateGoogleBusinessLocationDetailsResponse, type UpdateInboxConversationData, type UpdateInboxConversationError, type UpdateInboxConversationResponse, type UpdateLinkedInOrganizationData, type UpdateLinkedInOrganizationError, type UpdateLinkedInOrganizationResponse, type UpdatePinterestBoardsData, type UpdatePinterestBoardsError, type UpdatePinterestBoardsResponse, type UpdatePostData, type UpdatePostError, type UpdatePostResponse, type UpdateProfileData, type UpdateProfileError, type UpdateProfileResponse, type UpdateQueueSlotData, type UpdateQueueSlotError, type UpdateQueueSlotResponse, type UpdateRedditSubredditsData, type UpdateRedditSubredditsError, type UpdateRedditSubredditsResponse, type UpdateWebhookSettingsData, type UpdateWebhookSettingsError, type UpdateWebhookSettingsResponse, type UploadTokenResponse, type UploadTokenStatusResponse, type UploadedFile, type UsageStats, type User, type UserGetResponse, type UsersListResponse, ValidationError, type Webhook, type WebhookLog, type WebhookPayloadAccountConnected, type WebhookPayloadAccountDisconnected, type 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 };
5982
+ export { type AccountGetResponse, type AccountWithFollowerStats, type AccountsListResponse, type AnalyticsListResponse, type AnalyticsOverview, type AnalyticsSinglePostResponse, type ApiKey, type BlueskyPlatformData, type BulkUploadPostsData, type BulkUploadPostsError, type BulkUploadPostsResponse, type CaptionResponse, type CheckInstagramHashtagsData, type CheckInstagramHashtagsError, type CheckInstagramHashtagsResponse, type ClientOptions, type CompleteTelegramConnectData, type CompleteTelegramConnectError, type CompleteTelegramConnectResponse, type ConnectBlueskyCredentialsData, type ConnectBlueskyCredentialsError, type ConnectBlueskyCredentialsResponse, type ConnectionLog, type CreateAccountGroupData, type CreateAccountGroupError, type CreateAccountGroupResponse, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyResponse, type CreateGoogleBusinessMediaData, type CreateGoogleBusinessMediaError, type CreateGoogleBusinessMediaResponse, type CreateGoogleBusinessPlaceActionData, type CreateGoogleBusinessPlaceActionError, type CreateGoogleBusinessPlaceActionResponse, type CreateInviteTokenData, type CreateInviteTokenError, type CreateInviteTokenResponse, type CreatePostData, type CreatePostError, type CreatePostResponse, type CreateProfileData, type CreateProfileError, type CreateProfileResponse, type CreateQueueSlotData, type CreateQueueSlotError, type CreateQueueSlotResponse, type CreateWebhookSettingsData, type CreateWebhookSettingsError, type CreateWebhookSettingsResponse, type DeleteAccountData, type DeleteAccountError, type DeleteAccountGroupData, type DeleteAccountGroupError, type DeleteAccountGroupResponse, type DeleteAccountResponse, type DeleteApiKeyData, type DeleteApiKeyError, type DeleteApiKeyResponse, type DeleteGoogleBusinessMediaData, type DeleteGoogleBusinessMediaError, type DeleteGoogleBusinessMediaResponse, type DeleteGoogleBusinessPlaceActionData, type DeleteGoogleBusinessPlaceActionError, type DeleteGoogleBusinessPlaceActionResponse, type DeleteInboxCommentData, type DeleteInboxCommentError, type DeleteInboxCommentResponse, type DeleteInboxReviewReplyData, type DeleteInboxReviewReplyError, type DeleteInboxReviewReplyResponse, type 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 FoodMenu, type FoodMenuItem, type FoodMenuItemAttributes, type FoodMenuLabel, type FoodMenuSection, type GetAccountHealthData, type GetAccountHealthError, type GetAccountHealthResponse, type GetAllAccountsHealthData, type GetAllAccountsHealthError, type GetAllAccountsHealthResponse, type GetAnalyticsData, type GetAnalyticsError, type GetAnalyticsResponse, type GetConnectUrlData, type GetConnectUrlError, type GetConnectUrlResponse, type GetFacebookPagesData, type GetFacebookPagesError, type GetFacebookPagesResponse, type GetFollowerStatsData, type GetFollowerStatsError, type GetFollowerStatsResponse, type GetGmbLocationsData, type GetGmbLocationsError, type GetGmbLocationsResponse, type GetGoogleBusinessAttributesData, type GetGoogleBusinessAttributesError, type GetGoogleBusinessAttributesResponse, type GetGoogleBusinessFoodMenusData, type GetGoogleBusinessFoodMenusError, type GetGoogleBusinessFoodMenusResponse, type GetGoogleBusinessLocationDetailsData, type GetGoogleBusinessLocationDetailsError, type GetGoogleBusinessLocationDetailsResponse, type GetGoogleBusinessReviewsData, type GetGoogleBusinessReviewsError, type GetGoogleBusinessReviewsResponse, type GetInboxConversationData, type GetInboxConversationError, type GetInboxConversationMessagesData, type GetInboxConversationMessagesError, type GetInboxConversationMessagesResponse, type GetInboxConversationResponse, type GetInboxPostCommentsData, type GetInboxPostCommentsError, type GetInboxPostCommentsResponse, type 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 ListConnectionLogsData, type ListConnectionLogsError, type ListConnectionLogsResponse, type ListFacebookPagesData, type ListFacebookPagesError, type ListFacebookPagesResponse, type ListGoogleBusinessLocationsData, type ListGoogleBusinessLocationsError, type ListGoogleBusinessLocationsResponse, type ListGoogleBusinessMediaData, type ListGoogleBusinessMediaError, type ListGoogleBusinessMediaResponse, type ListGoogleBusinessPlaceActionsData, type ListGoogleBusinessPlaceActionsError, type ListGoogleBusinessPlaceActionsResponse, type ListInboxCommentsData, type ListInboxCommentsError, type ListInboxCommentsResponse, type ListInboxConversationsData, type ListInboxConversationsError, type ListInboxConversationsResponse, type ListInboxReviewsData, type ListInboxReviewsError, type ListInboxReviewsResponse, type ListLinkedInOrganizationsData, type ListLinkedInOrganizationsError, type ListLinkedInOrganizationsResponse, type ListLogsData, type ListLogsError, type ListLogsResponse, type ListPinterestBoardsForSelectionData, type ListPinterestBoardsForSelectionError, type ListPinterestBoardsForSelectionResponse, type ListPostsData, type ListPostsError, type ListPostsLogsData, type ListPostsLogsError, type ListPostsLogsResponse, type ListPostsResponse, type ListProfilesData, type ListProfilesError, type ListProfilesResponse, type ListQueueSlotsData, type ListQueueSlotsError, type ListQueueSlotsResponse, type ListSnapchatProfilesData, type ListSnapchatProfilesError, type ListSnapchatProfilesResponse, type ListUsersError, type ListUsersResponse, type MediaItem, type MediaUploadResponse, type Money, type Pagination, type ParameterLimitParam, type ParameterPageParam, type PinterestPlatformData, type PlatformAnalytics, type PlatformTarget, type Post, type PostAnalytics, type PostCreateResponse, type PostDeleteResponse, type PostGetResponse, type PostLog, type 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 RedditPlatformData, type ReplyToInboxPostData, type ReplyToInboxPostError, type ReplyToInboxPostResponse, type ReplyToInboxReviewData, type ReplyToInboxReviewError, type ReplyToInboxReviewResponse, type RetryPostData, type RetryPostError, type RetryPostResponse, type SearchRedditData, type SearchRedditError, type SearchRedditResponse, type SelectFacebookPageData, type SelectFacebookPageError, type SelectFacebookPageResponse, type SelectGoogleBusinessLocationData, type SelectGoogleBusinessLocationError, type SelectGoogleBusinessLocationResponse, type SelectLinkedInOrganizationData, type SelectLinkedInOrganizationError, type SelectLinkedInOrganizationResponse, type SelectPinterestBoardData, type SelectPinterestBoardError, type SelectPinterestBoardResponse, type SelectSnapchatProfileData, type SelectSnapchatProfileError, type SelectSnapchatProfileResponse, type SendInboxMessageData, type SendInboxMessageError, type SendInboxMessageResponse, type SendPrivateReplyToCommentData, type SendPrivateReplyToCommentError, type SendPrivateReplyToCommentResponse, type 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 UpdateGoogleBusinessAttributesData, type UpdateGoogleBusinessAttributesError, type UpdateGoogleBusinessAttributesResponse, type UpdateGoogleBusinessFoodMenusData, type UpdateGoogleBusinessFoodMenusError, type UpdateGoogleBusinessFoodMenusResponse, type UpdateGoogleBusinessLocationDetailsData, type UpdateGoogleBusinessLocationDetailsError, type UpdateGoogleBusinessLocationDetailsResponse, type UpdateInboxConversationData, type UpdateInboxConversationError, type UpdateInboxConversationResponse, type UpdateLinkedInOrganizationData, type UpdateLinkedInOrganizationError, type UpdateLinkedInOrganizationResponse, type UpdatePinterestBoardsData, type UpdatePinterestBoardsError, type UpdatePinterestBoardsResponse, type UpdatePostData, type UpdatePostError, type UpdatePostResponse, type UpdateProfileData, type UpdateProfileError, type UpdateProfileResponse, type UpdateQueueSlotData, type UpdateQueueSlotError, type UpdateQueueSlotResponse, type UpdateRedditSubredditsData, type UpdateRedditSubredditsError, type UpdateRedditSubredditsResponse, type UpdateWebhookSettingsData, type UpdateWebhookSettingsError, type UpdateWebhookSettingsResponse, type UploadTokenResponse, type UploadTokenStatusResponse, type UploadedFile, type UsageStats, type User, type UserGetResponse, type UsersListResponse, ValidationError, type Webhook, type WebhookLog, type WebhookPayloadAccountConnected, type WebhookPayloadAccountDisconnected, type WebhookPayloadMessage, type WebhookPayloadPost, type YouTubeDailyViewsResponse, type YouTubePlatformData, type YouTubeScopeMissingResponse, type action, type aggregation, type aggregation2, type aggregation3, type billingPeriod, type commercialContentType, type connectionMethod, type contentType, type contentType2, Late as default, type direction, type disconnectionType, type errorCategory, type errorSource, type event, type event2, type event3, type event4, type event5, type eventType, 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
@@ -273,6 +273,8 @@ declare class Late {
273
273
  logs: {
274
274
  listLogs: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListLogsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListLogsResponse, ListLogsError, ThrowOnError>;
275
275
  getLog: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetLogData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetLogResponse, unknown, ThrowOnError>;
276
+ listPostsLogs: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListPostsLogsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListPostsLogsResponse, ListPostsLogsError, ThrowOnError>;
277
+ listConnectionLogs: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListConnectionLogsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListConnectionLogsResponse, ListConnectionLogsError, ThrowOnError>;
276
278
  getPostLogs: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetPostLogsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetPostLogsResponse, unknown, ThrowOnError>;
277
279
  };
278
280
  /**
@@ -464,9 +466,131 @@ type ApiKey = {
464
466
  */
465
467
  key?: string;
466
468
  };
469
+ /**
470
+ * Bluesky post settings:
471
+ * - Supports text posts with up to 4 images per post
472
+ * - Videos supported (single video per post)
473
+ * - threadItems creates a reply chain (Bluesky thread)
474
+ * - Images exceeding Bluesky's 1MB limit are automatically compressed
475
+ * - Alt text for images is supported via mediaItem properties
476
+ *
477
+ */
478
+ type BlueskyPlatformData = {
479
+ /**
480
+ * Sequence of posts in a Bluesky thread (root then replies in order).
481
+ */
482
+ threadItems?: Array<{
483
+ content?: string;
484
+ mediaItems?: Array<MediaItem>;
485
+ }>;
486
+ };
467
487
  type CaptionResponse = {
468
488
  caption?: string;
469
489
  };
490
+ /**
491
+ * Connection event log showing account connection/disconnection history
492
+ */
493
+ type ConnectionLog = {
494
+ _id?: string;
495
+ /**
496
+ * User who owns the connection (may be null for early OAuth failures)
497
+ */
498
+ userId?: string;
499
+ profileId?: string;
500
+ /**
501
+ * The social account ID (present on successful connections and disconnects)
502
+ */
503
+ accountId?: string;
504
+ platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
505
+ /**
506
+ * Type of connection event:
507
+ * - `connect_success` - New account connected successfully
508
+ * - `connect_failed` - Connection attempt failed
509
+ * - `disconnect` - Account was disconnected
510
+ * - `reconnect_success` - Existing account reconnected successfully
511
+ * - `reconnect_failed` - Reconnection attempt failed
512
+ *
513
+ */
514
+ eventType?: 'connect_success' | 'connect_failed' | 'disconnect' | 'reconnect_success' | 'reconnect_failed';
515
+ /**
516
+ * How the connection was initiated
517
+ */
518
+ connectionMethod?: 'oauth' | 'credentials' | 'invitation';
519
+ /**
520
+ * Error details (present on failed events)
521
+ */
522
+ error?: {
523
+ /**
524
+ * Error code (e.g., oauth_denied, token_exchange_failed)
525
+ */
526
+ code?: string;
527
+ /**
528
+ * Human-readable error message
529
+ */
530
+ message?: string;
531
+ /**
532
+ * Raw error response (truncated to 2000 chars)
533
+ */
534
+ rawResponse?: string;
535
+ };
536
+ /**
537
+ * Success details (present on successful events)
538
+ */
539
+ success?: {
540
+ displayName?: string;
541
+ username?: string;
542
+ profilePicture?: string;
543
+ /**
544
+ * OAuth scopes/permissions granted
545
+ */
546
+ permissions?: Array<(string)>;
547
+ tokenExpiresAt?: string;
548
+ /**
549
+ * Account type (personal, business, organization)
550
+ */
551
+ accountType?: string;
552
+ };
553
+ /**
554
+ * Additional context about the connection attempt
555
+ */
556
+ context?: {
557
+ isHeadlessMode?: boolean;
558
+ hasCustomRedirectUrl?: boolean;
559
+ isReconnection?: boolean;
560
+ /**
561
+ * Using bring-your-own-keys
562
+ */
563
+ isBYOK?: boolean;
564
+ invitationToken?: string;
565
+ connectToken?: string;
566
+ };
567
+ /**
568
+ * How long the operation took in milliseconds
569
+ */
570
+ durationMs?: number;
571
+ /**
572
+ * Additional metadata
573
+ */
574
+ metadata?: {
575
+ [key: string]: unknown;
576
+ };
577
+ createdAt?: string;
578
+ };
579
+ type platform = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
580
+ /**
581
+ * Type of connection event:
582
+ * - `connect_success` - New account connected successfully
583
+ * - `connect_failed` - Connection attempt failed
584
+ * - `disconnect` - Account was disconnected
585
+ * - `reconnect_success` - Existing account reconnected successfully
586
+ * - `reconnect_failed` - Reconnection attempt failed
587
+ *
588
+ */
589
+ type eventType = 'connect_success' | 'connect_failed' | 'disconnect' | 'reconnect_success' | 'reconnect_failed';
590
+ /**
591
+ * How the connection was initiated
592
+ */
593
+ type connectionMethod = 'oauth' | 'credentials' | 'invitation';
470
594
  type DownloadFormat = {
471
595
  formatId?: string;
472
596
  ext?: string;
@@ -1014,7 +1138,7 @@ type PlatformTarget = {
1014
1138
  /**
1015
1139
  * Platform-specific overrides and options.
1016
1140
  */
1017
- platformSpecificData?: (TwitterPlatformData | ThreadsPlatformData | FacebookPlatformData | InstagramPlatformData | LinkedInPlatformData | PinterestPlatformData | YouTubePlatformData | GoogleBusinessPlatformData | TikTokPlatformData | TelegramPlatformData | SnapchatPlatformData);
1141
+ platformSpecificData?: (TwitterPlatformData | ThreadsPlatformData | FacebookPlatformData | InstagramPlatformData | LinkedInPlatformData | PinterestPlatformData | YouTubePlatformData | GoogleBusinessPlatformData | TikTokPlatformData | TelegramPlatformData | SnapchatPlatformData | RedditPlatformData | BlueskyPlatformData);
1018
1142
  /**
1019
1143
  * Platform-specific status: pending, publishing, published, failed
1020
1144
  */
@@ -1239,7 +1363,6 @@ type PostLog = {
1239
1363
  attemptNumber?: number;
1240
1364
  createdAt?: string;
1241
1365
  };
1242
- type platform = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
1243
1366
  /**
1244
1367
  * Type of action logged:
1245
1368
  * - `publish` - Initial publish attempt
@@ -1393,6 +1516,37 @@ type QueueUpdateResponse = {
1393
1516
  nextSlots?: Array<(string)>;
1394
1517
  reshuffledCount?: number;
1395
1518
  };
1519
+ /**
1520
+ * Reddit post settings:
1521
+ * - Posts are either "link" (with URL/media) or "self" (text-only)
1522
+ * - If media is provided, the first media item's URL is used as the link
1523
+ * - Use forceSelf to override and create a text post with the URL in the body
1524
+ * - Subreddit defaults to the account's configured subreddit if omitted
1525
+ * - Use the same accountId multiple times with different subreddit values in platformSpecificData to post to multiple subreddits
1526
+ * - Images are automatically compressed if they exceed Reddit's 20MB limit
1527
+ *
1528
+ */
1529
+ type RedditPlatformData = {
1530
+ /**
1531
+ * Target subreddit name (without "r/" prefix).
1532
+ * Overrides the default subreddit configured on the account connection.
1533
+ * Use GET /api/v1/accounts/{id}/reddit-subreddits to list available subreddits.
1534
+ *
1535
+ */
1536
+ subreddit?: string;
1537
+ /**
1538
+ * Post title. Defaults to the first line of content, truncated to 300 characters.
1539
+ */
1540
+ title?: string;
1541
+ /**
1542
+ * URL for link posts. If provided (and forceSelf is not true), creates a link post instead of a text post.
1543
+ */
1544
+ url?: string;
1545
+ /**
1546
+ * When true, creates a text/self post even when a URL or media is provided.
1547
+ */
1548
+ forceSelf?: boolean;
1549
+ };
1396
1550
  /**
1397
1551
  * Snapchat Public Profile API constraints:
1398
1552
  *
@@ -2523,7 +2677,7 @@ type CreatePostData = {
2523
2677
  * Optional per-platform scheduled time override. When omitted, the top-level scheduledFor is used.
2524
2678
  */
2525
2679
  scheduledFor?: string;
2526
- platformSpecificData?: (TwitterPlatformData | ThreadsPlatformData | FacebookPlatformData | InstagramPlatformData | LinkedInPlatformData | PinterestPlatformData | YouTubePlatformData | TikTokPlatformData | TelegramPlatformData | SnapchatPlatformData);
2680
+ platformSpecificData?: (TwitterPlatformData | ThreadsPlatformData | FacebookPlatformData | InstagramPlatformData | LinkedInPlatformData | PinterestPlatformData | YouTubePlatformData | GoogleBusinessPlatformData | TikTokPlatformData | TelegramPlatformData | SnapchatPlatformData | RedditPlatformData | BlueskyPlatformData);
2527
2681
  }>;
2528
2682
  scheduledFor?: string;
2529
2683
  publishNow?: boolean;
@@ -4963,6 +5117,100 @@ type GetLogResponse = ({
4963
5117
  type GetLogError = ({
4964
5118
  error?: string;
4965
5119
  } | unknown);
5120
+ type ListPostsLogsData = {
5121
+ query?: {
5122
+ /**
5123
+ * Filter by action type
5124
+ */
5125
+ action?: 'publish' | 'retry' | 'media_upload' | 'rate_limit_pause' | 'token_refresh' | 'cancelled' | 'all';
5126
+ /**
5127
+ * Number of days to look back (max 7)
5128
+ */
5129
+ days?: number;
5130
+ /**
5131
+ * Maximum number of logs to return (max 100)
5132
+ */
5133
+ limit?: number;
5134
+ /**
5135
+ * Filter by platform
5136
+ */
5137
+ platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'all';
5138
+ /**
5139
+ * Number of logs to skip (for pagination)
5140
+ */
5141
+ skip?: number;
5142
+ /**
5143
+ * Filter by log status
5144
+ */
5145
+ status?: 'success' | 'failed' | 'pending' | 'skipped' | 'all';
5146
+ };
5147
+ };
5148
+ type ListPostsLogsResponse = ({
5149
+ logs?: Array<PostLog>;
5150
+ pagination?: {
5151
+ /**
5152
+ * Total number of logs matching the query
5153
+ */
5154
+ total?: number;
5155
+ limit?: number;
5156
+ skip?: number;
5157
+ /**
5158
+ * Total number of pages
5159
+ */
5160
+ pages?: number;
5161
+ hasMore?: boolean;
5162
+ };
5163
+ });
5164
+ type ListPostsLogsError = ({
5165
+ error?: string;
5166
+ });
5167
+ type ListConnectionLogsData = {
5168
+ query?: {
5169
+ /**
5170
+ * Number of days to look back (max 7)
5171
+ */
5172
+ days?: number;
5173
+ /**
5174
+ * Filter by event type
5175
+ */
5176
+ eventType?: 'connect_success' | 'connect_failed' | 'disconnect' | 'reconnect_success' | 'reconnect_failed' | 'all';
5177
+ /**
5178
+ * Maximum number of logs to return (max 100)
5179
+ */
5180
+ limit?: number;
5181
+ /**
5182
+ * Filter by platform
5183
+ */
5184
+ platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'all';
5185
+ /**
5186
+ * Number of logs to skip (for pagination)
5187
+ */
5188
+ skip?: number;
5189
+ /**
5190
+ * Filter by status (shorthand for event types)
5191
+ */
5192
+ status?: 'success' | 'failed' | 'all';
5193
+ };
5194
+ };
5195
+ type ListConnectionLogsResponse = ({
5196
+ logs?: Array<ConnectionLog>;
5197
+ pagination?: {
5198
+ /**
5199
+ * Total number of logs matching the query
5200
+ */
5201
+ total?: number;
5202
+ limit?: number;
5203
+ skip?: number;
5204
+ /**
5205
+ * Total number of pages
5206
+ */
5207
+ pages?: number;
5208
+ hasMore?: boolean;
5209
+ };
5210
+ });
5211
+ type ListConnectionLogsError = ({
5212
+ error?: string;
5213
+ });
4966
5214
  type GetPostLogsData = {
4967
5215
  path: {
4968
5216
  /**
@@ -5311,6 +5559,9 @@ type ListInboxCommentsError = ({
5311
5559
  } | unknown);
5312
5560
  type GetInboxPostCommentsData = {
5313
5561
  path: {
5562
+ /**
5563
+ * The post identifier. Accepts a Late post ID (MongoDB ObjectId) which is automatically resolved to the platform-specific post ID, or a platform-specific post ID directly (e.g. tweet ID, Facebook Graph ID, YouTube video ID).
5564
+ */
5314
5565
  postId: string;
5315
5566
  };
5316
5567
  query: {
@@ -5442,6 +5693,9 @@ type ReplyToInboxPostData = {
5442
5693
  rootCid?: string;
5443
5694
  };
5444
5695
  path: {
5696
+ /**
5697
+ * The post identifier. Accepts a Late post ID or a platform-specific post ID.
5698
+ */
5445
5699
  postId: string;
5446
5700
  };
5447
5701
  };
@@ -5461,6 +5715,9 @@ type ReplyToInboxPostError = ({
5461
5715
  } | unknown);
5462
5716
  type DeleteInboxCommentData = {
5463
5717
  path: {
5718
+ /**
5719
+ * The post identifier. Accepts a Late post ID or a platform-specific post ID.
5720
+ */
5464
5721
  postId: string;
5465
5722
  };
5466
5723
  query: {
@@ -5722,4 +5979,4 @@ type DeleteInboxReviewReplyError = ({
5722
5979
  error?: string;
5723
5980
  } | unknown);
5724
5981
 
5725
- 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 CreateGoogleBusinessMediaData, type CreateGoogleBusinessMediaError, type CreateGoogleBusinessMediaResponse, type CreateGoogleBusinessPlaceActionData, type CreateGoogleBusinessPlaceActionError, type CreateGoogleBusinessPlaceActionResponse, type CreateInviteTokenData, type CreateInviteTokenError, type CreateInviteTokenResponse, type CreatePostData, type CreatePostError, type CreatePostResponse, type CreateProfileData, type CreateProfileError, type CreateProfileResponse, type CreateQueueSlotData, type CreateQueueSlotError, type CreateQueueSlotResponse, type CreateWebhookSettingsData, type CreateWebhookSettingsError, type CreateWebhookSettingsResponse, type DeleteAccountData, type DeleteAccountError, type DeleteAccountGroupData, type DeleteAccountGroupError, type DeleteAccountGroupResponse, type DeleteAccountResponse, type DeleteApiKeyData, type DeleteApiKeyError, type DeleteApiKeyResponse, type DeleteGoogleBusinessMediaData, type DeleteGoogleBusinessMediaError, type DeleteGoogleBusinessMediaResponse, type DeleteGoogleBusinessPlaceActionData, type DeleteGoogleBusinessPlaceActionError, type DeleteGoogleBusinessPlaceActionResponse, type DeleteInboxCommentData, type DeleteInboxCommentError, type DeleteInboxCommentResponse, type DeleteInboxReviewReplyData, type DeleteInboxReviewReplyError, type DeleteInboxReviewReplyResponse, type 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 FoodMenu, type FoodMenuItem, type FoodMenuItemAttributes, type FoodMenuLabel, type FoodMenuSection, type GetAccountHealthData, type GetAccountHealthError, type GetAccountHealthResponse, type GetAllAccountsHealthData, type GetAllAccountsHealthError, type GetAllAccountsHealthResponse, type GetAnalyticsData, type GetAnalyticsError, type GetAnalyticsResponse, type GetConnectUrlData, type GetConnectUrlError, type GetConnectUrlResponse, type GetFacebookPagesData, type GetFacebookPagesError, type GetFacebookPagesResponse, type GetFollowerStatsData, type GetFollowerStatsError, type GetFollowerStatsResponse, type GetGmbLocationsData, type GetGmbLocationsError, type GetGmbLocationsResponse, type GetGoogleBusinessAttributesData, type GetGoogleBusinessAttributesError, type GetGoogleBusinessAttributesResponse, type GetGoogleBusinessFoodMenusData, type GetGoogleBusinessFoodMenusError, type GetGoogleBusinessFoodMenusResponse, type GetGoogleBusinessLocationDetailsData, type GetGoogleBusinessLocationDetailsError, type GetGoogleBusinessLocationDetailsResponse, type GetGoogleBusinessReviewsData, type GetGoogleBusinessReviewsError, type GetGoogleBusinessReviewsResponse, type GetInboxConversationData, type GetInboxConversationError, type GetInboxConversationMessagesData, type GetInboxConversationMessagesError, type GetInboxConversationMessagesResponse, type GetInboxConversationResponse, type GetInboxPostCommentsData, type GetInboxPostCommentsError, type GetInboxPostCommentsResponse, type 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 ListGoogleBusinessMediaData, type ListGoogleBusinessMediaError, type ListGoogleBusinessMediaResponse, type ListGoogleBusinessPlaceActionsData, type ListGoogleBusinessPlaceActionsError, type ListGoogleBusinessPlaceActionsResponse, type ListInboxCommentsData, type ListInboxCommentsError, type ListInboxCommentsResponse, type ListInboxConversationsData, type ListInboxConversationsError, type ListInboxConversationsResponse, type ListInboxReviewsData, type ListInboxReviewsError, type ListInboxReviewsResponse, type ListLinkedInOrganizationsData, type ListLinkedInOrganizationsError, type ListLinkedInOrganizationsResponse, type 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 Money, type Pagination, type ParameterLimitParam, type ParameterPageParam, type PinterestPlatformData, type PlatformAnalytics, type PlatformTarget, type Post, type PostAnalytics, type PostCreateResponse, type PostDeleteResponse, type PostGetResponse, type PostLog, type 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 UpdateGoogleBusinessAttributesData, type UpdateGoogleBusinessAttributesError, type UpdateGoogleBusinessAttributesResponse, type UpdateGoogleBusinessFoodMenusData, type UpdateGoogleBusinessFoodMenusError, type UpdateGoogleBusinessFoodMenusResponse, type UpdateGoogleBusinessLocationDetailsData, type UpdateGoogleBusinessLocationDetailsError, type UpdateGoogleBusinessLocationDetailsResponse, type UpdateInboxConversationData, type UpdateInboxConversationError, type UpdateInboxConversationResponse, type UpdateLinkedInOrganizationData, type UpdateLinkedInOrganizationError, type UpdateLinkedInOrganizationResponse, type UpdatePinterestBoardsData, type UpdatePinterestBoardsError, type UpdatePinterestBoardsResponse, type UpdatePostData, type UpdatePostError, type UpdatePostResponse, type UpdateProfileData, type UpdateProfileError, type UpdateProfileResponse, type UpdateQueueSlotData, type UpdateQueueSlotError, type UpdateQueueSlotResponse, type UpdateRedditSubredditsData, type UpdateRedditSubredditsError, type UpdateRedditSubredditsResponse, type UpdateWebhookSettingsData, type UpdateWebhookSettingsError, type UpdateWebhookSettingsResponse, type UploadTokenResponse, type UploadTokenStatusResponse, type UploadedFile, type UsageStats, type User, type UserGetResponse, type UsersListResponse, ValidationError, type Webhook, type WebhookLog, type WebhookPayloadAccountConnected, type WebhookPayloadAccountDisconnected, type 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 };
5982
+ export { type AccountGetResponse, type AccountWithFollowerStats, type AccountsListResponse, type AnalyticsListResponse, type AnalyticsOverview, type AnalyticsSinglePostResponse, type ApiKey, type BlueskyPlatformData, type BulkUploadPostsData, type BulkUploadPostsError, type BulkUploadPostsResponse, type CaptionResponse, type CheckInstagramHashtagsData, type CheckInstagramHashtagsError, type CheckInstagramHashtagsResponse, type ClientOptions, type CompleteTelegramConnectData, type CompleteTelegramConnectError, type CompleteTelegramConnectResponse, type ConnectBlueskyCredentialsData, type ConnectBlueskyCredentialsError, type ConnectBlueskyCredentialsResponse, type ConnectionLog, type CreateAccountGroupData, type CreateAccountGroupError, type CreateAccountGroupResponse, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyResponse, type CreateGoogleBusinessMediaData, type CreateGoogleBusinessMediaError, type CreateGoogleBusinessMediaResponse, type CreateGoogleBusinessPlaceActionData, type CreateGoogleBusinessPlaceActionError, type CreateGoogleBusinessPlaceActionResponse, type CreateInviteTokenData, type CreateInviteTokenError, type CreateInviteTokenResponse, type CreatePostData, type CreatePostError, type CreatePostResponse, type CreateProfileData, type CreateProfileError, type CreateProfileResponse, type CreateQueueSlotData, type CreateQueueSlotError, type CreateQueueSlotResponse, type CreateWebhookSettingsData, type CreateWebhookSettingsError, type CreateWebhookSettingsResponse, type DeleteAccountData, type DeleteAccountError, type DeleteAccountGroupData, type DeleteAccountGroupError, type DeleteAccountGroupResponse, type DeleteAccountResponse, type DeleteApiKeyData, type DeleteApiKeyError, type DeleteApiKeyResponse, type DeleteGoogleBusinessMediaData, type DeleteGoogleBusinessMediaError, type DeleteGoogleBusinessMediaResponse, type DeleteGoogleBusinessPlaceActionData, type DeleteGoogleBusinessPlaceActionError, type DeleteGoogleBusinessPlaceActionResponse, type DeleteInboxCommentData, type DeleteInboxCommentError, type DeleteInboxCommentResponse, type DeleteInboxReviewReplyData, type DeleteInboxReviewReplyError, type DeleteInboxReviewReplyResponse, type 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 FoodMenu, type FoodMenuItem, type FoodMenuItemAttributes, type FoodMenuLabel, type FoodMenuSection, type GetAccountHealthData, type GetAccountHealthError, type GetAccountHealthResponse, type GetAllAccountsHealthData, type GetAllAccountsHealthError, type GetAllAccountsHealthResponse, type GetAnalyticsData, type GetAnalyticsError, type GetAnalyticsResponse, type GetConnectUrlData, type GetConnectUrlError, type GetConnectUrlResponse, type GetFacebookPagesData, type GetFacebookPagesError, type GetFacebookPagesResponse, type GetFollowerStatsData, type GetFollowerStatsError, type GetFollowerStatsResponse, type GetGmbLocationsData, type GetGmbLocationsError, type GetGmbLocationsResponse, type GetGoogleBusinessAttributesData, type GetGoogleBusinessAttributesError, type GetGoogleBusinessAttributesResponse, type GetGoogleBusinessFoodMenusData, type GetGoogleBusinessFoodMenusError, type GetGoogleBusinessFoodMenusResponse, type GetGoogleBusinessLocationDetailsData, type GetGoogleBusinessLocationDetailsError, type GetGoogleBusinessLocationDetailsResponse, type GetGoogleBusinessReviewsData, type GetGoogleBusinessReviewsError, type GetGoogleBusinessReviewsResponse, type GetInboxConversationData, type GetInboxConversationError, type GetInboxConversationMessagesData, type GetInboxConversationMessagesError, type GetInboxConversationMessagesResponse, type GetInboxConversationResponse, type GetInboxPostCommentsData, type GetInboxPostCommentsError, type GetInboxPostCommentsResponse, type 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 ListConnectionLogsData, type ListConnectionLogsError, type ListConnectionLogsResponse, type ListFacebookPagesData, type ListFacebookPagesError, type ListFacebookPagesResponse, type ListGoogleBusinessLocationsData, type ListGoogleBusinessLocationsError, type ListGoogleBusinessLocationsResponse, type ListGoogleBusinessMediaData, type ListGoogleBusinessMediaError, type ListGoogleBusinessMediaResponse, type ListGoogleBusinessPlaceActionsData, type ListGoogleBusinessPlaceActionsError, type ListGoogleBusinessPlaceActionsResponse, type ListInboxCommentsData, type ListInboxCommentsError, type ListInboxCommentsResponse, type ListInboxConversationsData, type ListInboxConversationsError, type ListInboxConversationsResponse, type ListInboxReviewsData, type ListInboxReviewsError, type ListInboxReviewsResponse, type ListLinkedInOrganizationsData, type ListLinkedInOrganizationsError, type ListLinkedInOrganizationsResponse, type ListLogsData, type ListLogsError, type ListLogsResponse, type ListPinterestBoardsForSelectionData, type ListPinterestBoardsForSelectionError, type ListPinterestBoardsForSelectionResponse, type ListPostsData, type ListPostsError, type ListPostsLogsData, type ListPostsLogsError, type ListPostsLogsResponse, type ListPostsResponse, type ListProfilesData, type ListProfilesError, type ListProfilesResponse, type ListQueueSlotsData, type ListQueueSlotsError, type ListQueueSlotsResponse, type ListSnapchatProfilesData, type ListSnapchatProfilesError, type ListSnapchatProfilesResponse, type ListUsersError, type ListUsersResponse, type MediaItem, type MediaUploadResponse, type Money, type Pagination, type ParameterLimitParam, type ParameterPageParam, type PinterestPlatformData, type PlatformAnalytics, type PlatformTarget, type Post, type PostAnalytics, type PostCreateResponse, type PostDeleteResponse, type PostGetResponse, type PostLog, type 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 RedditPlatformData, type ReplyToInboxPostData, type ReplyToInboxPostError, type ReplyToInboxPostResponse, type ReplyToInboxReviewData, type ReplyToInboxReviewError, type ReplyToInboxReviewResponse, type RetryPostData, type RetryPostError, type RetryPostResponse, type SearchRedditData, type SearchRedditError, type SearchRedditResponse, type SelectFacebookPageData, type SelectFacebookPageError, type SelectFacebookPageResponse, type SelectGoogleBusinessLocationData, type SelectGoogleBusinessLocationError, type SelectGoogleBusinessLocationResponse, type SelectLinkedInOrganizationData, type SelectLinkedInOrganizationError, type SelectLinkedInOrganizationResponse, type SelectPinterestBoardData, type SelectPinterestBoardError, type SelectPinterestBoardResponse, type SelectSnapchatProfileData, type SelectSnapchatProfileError, type SelectSnapchatProfileResponse, type SendInboxMessageData, type SendInboxMessageError, type SendInboxMessageResponse, type SendPrivateReplyToCommentData, type SendPrivateReplyToCommentError, type SendPrivateReplyToCommentResponse, type 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 UpdateGoogleBusinessAttributesData, type UpdateGoogleBusinessAttributesError, type UpdateGoogleBusinessAttributesResponse, type UpdateGoogleBusinessFoodMenusData, type UpdateGoogleBusinessFoodMenusError, type UpdateGoogleBusinessFoodMenusResponse, type UpdateGoogleBusinessLocationDetailsData, type UpdateGoogleBusinessLocationDetailsError, type UpdateGoogleBusinessLocationDetailsResponse, type UpdateInboxConversationData, type UpdateInboxConversationError, type UpdateInboxConversationResponse, type UpdateLinkedInOrganizationData, type UpdateLinkedInOrganizationError, type UpdateLinkedInOrganizationResponse, type UpdatePinterestBoardsData, type UpdatePinterestBoardsError, type UpdatePinterestBoardsResponse, type UpdatePostData, type UpdatePostError, type UpdatePostResponse, type UpdateProfileData, type UpdateProfileError, type UpdateProfileResponse, type UpdateQueueSlotData, type UpdateQueueSlotError, type UpdateQueueSlotResponse, type UpdateRedditSubredditsData, type UpdateRedditSubredditsError, type UpdateRedditSubredditsResponse, type UpdateWebhookSettingsData, type UpdateWebhookSettingsError, type UpdateWebhookSettingsResponse, type UploadTokenResponse, type UploadTokenStatusResponse, type UploadedFile, type UsageStats, type User, type UserGetResponse, type UsersListResponse, ValidationError, type Webhook, type WebhookLog, type WebhookPayloadAccountConnected, type WebhookPayloadAccountDisconnected, type WebhookPayloadMessage, type WebhookPayloadPost, type YouTubeDailyViewsResponse, type YouTubePlatformData, type YouTubeScopeMissingResponse, type action, type aggregation, type aggregation2, type aggregation3, type billingPeriod, type commercialContentType, type connectionMethod, type contentType, type contentType2, Late as default, type direction, type disconnectionType, type errorCategory, type errorSource, type event, type event2, type event3, type event4, type event5, type eventType, 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
@@ -877,6 +877,18 @@ var getLog = (options) => {
877
877
  url: "/v1/logs/{logId}"
878
878
  });
879
879
  };
880
+ var listPostsLogs = (options) => {
881
+ return (options?.client ?? client).get({
882
+ ...options,
883
+ url: "/v1/posts/logs"
884
+ });
885
+ };
886
+ var listConnectionLogs = (options) => {
887
+ return (options?.client ?? client).get({
888
+ ...options,
889
+ url: "/v1/connections/logs"
890
+ });
891
+ };
880
892
  var getPostLogs = (options) => {
881
893
  return (options?.client ?? client).get({
882
894
  ...options,
@@ -1305,6 +1317,8 @@ var Late = class {
1305
1317
  this.logs = {
1306
1318
  listLogs,
1307
1319
  getLog,
1320
+ listPostsLogs,
1321
+ listConnectionLogs,
1308
1322
  getPostLogs
1309
1323
  };
1310
1324
  /**
package/dist/index.mjs CHANGED
@@ -848,6 +848,18 @@ var getLog = (options) => {
848
848
  url: "/v1/logs/{logId}"
849
849
  });
850
850
  };
851
+ var listPostsLogs = (options) => {
852
+ return (options?.client ?? client).get({
853
+ ...options,
854
+ url: "/v1/posts/logs"
855
+ });
856
+ };
857
+ var listConnectionLogs = (options) => {
858
+ return (options?.client ?? client).get({
859
+ ...options,
860
+ url: "/v1/connections/logs"
861
+ });
862
+ };
851
863
  var getPostLogs = (options) => {
852
864
  return (options?.client ?? client).get({
853
865
  ...options,
@@ -1276,6 +1288,8 @@ var Late = class {
1276
1288
  this.logs = {
1277
1289
  listLogs,
1278
1290
  getLog,
1291
+ listPostsLogs,
1292
+ listConnectionLogs,
1279
1293
  getPostLogs
1280
1294
  };
1281
1295
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
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
@@ -73,6 +73,7 @@ import {
73
73
  listAccountGroups,
74
74
  listAccounts,
75
75
  listApiKeys,
76
+ listConnectionLogs,
76
77
  listFacebookPages,
77
78
  listGoogleBusinessLocations,
78
79
  listGoogleBusinessMedia,
@@ -84,6 +85,7 @@ import {
84
85
  listLogs,
85
86
  listPinterestBoardsForSelection,
86
87
  listPosts,
88
+ listPostsLogs,
87
89
  listProfiles,
88
90
  listQueueSlots,
89
91
  listSnapchatProfiles,
@@ -420,6 +422,8 @@ export class Late {
420
422
  logs = {
421
423
  listLogs: listLogs,
422
424
  getLog: getLog,
425
+ listPostsLogs: listPostsLogs,
426
+ listConnectionLogs: listConnectionLogs,
423
427
  getPostLogs: getPostLogs,
424
428
  };
425
429
 
@@ -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, GetGoogleBusinessFoodMenusData, GetGoogleBusinessFoodMenusError, GetGoogleBusinessFoodMenusResponse, UpdateGoogleBusinessFoodMenusData, UpdateGoogleBusinessFoodMenusError, UpdateGoogleBusinessFoodMenusResponse, GetGoogleBusinessLocationDetailsData, GetGoogleBusinessLocationDetailsError, GetGoogleBusinessLocationDetailsResponse, UpdateGoogleBusinessLocationDetailsData, UpdateGoogleBusinessLocationDetailsError, UpdateGoogleBusinessLocationDetailsResponse, ListGoogleBusinessMediaData, ListGoogleBusinessMediaError, ListGoogleBusinessMediaResponse, CreateGoogleBusinessMediaData, CreateGoogleBusinessMediaError, CreateGoogleBusinessMediaResponse, DeleteGoogleBusinessMediaData, DeleteGoogleBusinessMediaError, DeleteGoogleBusinessMediaResponse, GetGoogleBusinessAttributesData, GetGoogleBusinessAttributesError, GetGoogleBusinessAttributesResponse, UpdateGoogleBusinessAttributesData, UpdateGoogleBusinessAttributesError, UpdateGoogleBusinessAttributesResponse, ListGoogleBusinessPlaceActionsData, ListGoogleBusinessPlaceActionsError, ListGoogleBusinessPlaceActionsResponse, CreateGoogleBusinessPlaceActionData, CreateGoogleBusinessPlaceActionError, CreateGoogleBusinessPlaceActionResponse, DeleteGoogleBusinessPlaceActionData, DeleteGoogleBusinessPlaceActionError, DeleteGoogleBusinessPlaceActionResponse, GetPendingOAuthDataData, GetPendingOAuthDataError, GetPendingOAuthDataResponse, ListLinkedInOrganizationsData, ListLinkedInOrganizationsError, ListLinkedInOrganizationsResponse, SelectLinkedInOrganizationData, SelectLinkedInOrganizationError, SelectLinkedInOrganizationResponse, ListPinterestBoardsForSelectionData, ListPinterestBoardsForSelectionError, ListPinterestBoardsForSelectionResponse, SelectPinterestBoardData, SelectPinterestBoardError, SelectPinterestBoardResponse, ListSnapchatProfilesData, ListSnapchatProfilesError, ListSnapchatProfilesResponse, SelectSnapchatProfileData, SelectSnapchatProfileError, SelectSnapchatProfileResponse, ConnectBlueskyCredentialsData, ConnectBlueskyCredentialsError, ConnectBlueskyCredentialsResponse, GetTelegramConnectStatusData, GetTelegramConnectStatusError, GetTelegramConnectStatusResponse, InitiateTelegramConnectData, InitiateTelegramConnectError, InitiateTelegramConnectResponse, CompleteTelegramConnectData, CompleteTelegramConnectError, CompleteTelegramConnectResponse, GetFacebookPagesData, GetFacebookPagesError, GetFacebookPagesResponse, UpdateFacebookPageData, UpdateFacebookPageError, UpdateFacebookPageResponse, GetLinkedInOrganizationsData, GetLinkedInOrganizationsError, GetLinkedInOrganizationsResponse, GetLinkedInAggregateAnalyticsData, GetLinkedInAggregateAnalyticsError, GetLinkedInAggregateAnalyticsResponse, GetLinkedInPostAnalyticsData, GetLinkedInPostAnalyticsError, GetLinkedInPostAnalyticsResponse, UpdateLinkedInOrganizationData, UpdateLinkedInOrganizationError, UpdateLinkedInOrganizationResponse, GetLinkedInMentionsData, GetLinkedInMentionsError, GetLinkedInMentionsResponse, GetPinterestBoardsData, GetPinterestBoardsError, GetPinterestBoardsResponse, UpdatePinterestBoardsData, UpdatePinterestBoardsError, UpdatePinterestBoardsResponse, GetGmbLocationsData, GetGmbLocationsError, GetGmbLocationsResponse, UpdateGmbLocationData, UpdateGmbLocationError, UpdateGmbLocationResponse, GetRedditSubredditsData, GetRedditSubredditsError, GetRedditSubredditsResponse, UpdateRedditSubredditsData, UpdateRedditSubredditsError, UpdateRedditSubredditsResponse, 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';
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, GetGoogleBusinessFoodMenusData, GetGoogleBusinessFoodMenusError, GetGoogleBusinessFoodMenusResponse, UpdateGoogleBusinessFoodMenusData, UpdateGoogleBusinessFoodMenusError, UpdateGoogleBusinessFoodMenusResponse, GetGoogleBusinessLocationDetailsData, GetGoogleBusinessLocationDetailsError, GetGoogleBusinessLocationDetailsResponse, UpdateGoogleBusinessLocationDetailsData, UpdateGoogleBusinessLocationDetailsError, UpdateGoogleBusinessLocationDetailsResponse, ListGoogleBusinessMediaData, ListGoogleBusinessMediaError, ListGoogleBusinessMediaResponse, CreateGoogleBusinessMediaData, CreateGoogleBusinessMediaError, CreateGoogleBusinessMediaResponse, DeleteGoogleBusinessMediaData, DeleteGoogleBusinessMediaError, DeleteGoogleBusinessMediaResponse, GetGoogleBusinessAttributesData, GetGoogleBusinessAttributesError, GetGoogleBusinessAttributesResponse, UpdateGoogleBusinessAttributesData, UpdateGoogleBusinessAttributesError, UpdateGoogleBusinessAttributesResponse, ListGoogleBusinessPlaceActionsData, ListGoogleBusinessPlaceActionsError, ListGoogleBusinessPlaceActionsResponse, CreateGoogleBusinessPlaceActionData, CreateGoogleBusinessPlaceActionError, CreateGoogleBusinessPlaceActionResponse, DeleteGoogleBusinessPlaceActionData, DeleteGoogleBusinessPlaceActionError, DeleteGoogleBusinessPlaceActionResponse, GetPendingOAuthDataData, GetPendingOAuthDataError, GetPendingOAuthDataResponse, ListLinkedInOrganizationsData, ListLinkedInOrganizationsError, ListLinkedInOrganizationsResponse, SelectLinkedInOrganizationData, SelectLinkedInOrganizationError, SelectLinkedInOrganizationResponse, ListPinterestBoardsForSelectionData, ListPinterestBoardsForSelectionError, ListPinterestBoardsForSelectionResponse, SelectPinterestBoardData, SelectPinterestBoardError, SelectPinterestBoardResponse, ListSnapchatProfilesData, ListSnapchatProfilesError, ListSnapchatProfilesResponse, SelectSnapchatProfileData, SelectSnapchatProfileError, SelectSnapchatProfileResponse, ConnectBlueskyCredentialsData, ConnectBlueskyCredentialsError, ConnectBlueskyCredentialsResponse, GetTelegramConnectStatusData, GetTelegramConnectStatusError, GetTelegramConnectStatusResponse, InitiateTelegramConnectData, InitiateTelegramConnectError, InitiateTelegramConnectResponse, CompleteTelegramConnectData, CompleteTelegramConnectError, CompleteTelegramConnectResponse, GetFacebookPagesData, GetFacebookPagesError, GetFacebookPagesResponse, UpdateFacebookPageData, UpdateFacebookPageError, UpdateFacebookPageResponse, GetLinkedInOrganizationsData, GetLinkedInOrganizationsError, GetLinkedInOrganizationsResponse, GetLinkedInAggregateAnalyticsData, GetLinkedInAggregateAnalyticsError, GetLinkedInAggregateAnalyticsResponse, GetLinkedInPostAnalyticsData, GetLinkedInPostAnalyticsError, GetLinkedInPostAnalyticsResponse, UpdateLinkedInOrganizationData, UpdateLinkedInOrganizationError, UpdateLinkedInOrganizationResponse, GetLinkedInMentionsData, GetLinkedInMentionsError, GetLinkedInMentionsResponse, GetPinterestBoardsData, GetPinterestBoardsError, GetPinterestBoardsResponse, UpdatePinterestBoardsData, UpdatePinterestBoardsError, UpdatePinterestBoardsResponse, GetGmbLocationsData, GetGmbLocationsError, GetGmbLocationsResponse, UpdateGmbLocationData, UpdateGmbLocationError, UpdateGmbLocationResponse, GetRedditSubredditsData, GetRedditSubredditsError, GetRedditSubredditsResponse, UpdateRedditSubredditsData, UpdateRedditSubredditsError, UpdateRedditSubredditsResponse, 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, ListPostsLogsData, ListPostsLogsError, ListPostsLogsResponse, ListConnectionLogsData, ListConnectionLogsError, ListConnectionLogsResponse, 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
 
@@ -1633,7 +1633,10 @@ export const getWebhookLogs = <ThrowOnError extends boolean = false>(options?: O
1633
1633
  };
1634
1634
 
1635
1635
  /**
1636
- * Get publishing logs
1636
+ * @deprecated
1637
+ * Get publishing logs (deprecated)
1638
+ * **Deprecated:** Use `/v1/posts/logs` instead. This endpoint is maintained for backwards compatibility.
1639
+ *
1637
1640
  * Retrieve publishing logs for all posts. Logs show detailed information about each
1638
1641
  * publishing attempt including API requests, responses, and timing data.
1639
1642
  *
@@ -1665,6 +1668,48 @@ export const getLog = <ThrowOnError extends boolean = false>(options: OptionsLeg
1665
1668
  });
1666
1669
  };
1667
1670
 
1671
+ /**
1672
+ * Get publishing logs
1673
+ * Retrieve publishing logs for all posts. Logs show detailed information about each
1674
+ * publishing attempt including API requests, responses, and timing data.
1675
+ *
1676
+ * **Filtering:**
1677
+ * - Filter by status (success, failed, pending, skipped)
1678
+ * - Filter by platform (instagram, twitter, linkedin, etc.)
1679
+ * - Filter by action (publish, retry, rate_limit_pause, etc.)
1680
+ *
1681
+ * **Retention:** Logs are automatically deleted after 7 days.
1682
+ *
1683
+ */
1684
+ export const listPostsLogs = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListPostsLogsData, ThrowOnError>) => {
1685
+ return (options?.client ?? client).get<ListPostsLogsResponse, ListPostsLogsError, ThrowOnError>({
1686
+ ...options,
1687
+ url: '/v1/posts/logs'
1688
+ });
1689
+ };
1690
+
1691
+ /**
1692
+ * Get connection logs
1693
+ * Retrieve connection event logs showing account connection and disconnection history.
1694
+ * Useful for debugging OAuth issues and tracking account lifecycle.
1695
+ *
1696
+ * **Event Types:**
1697
+ * - `connect_success` - New account connected successfully
1698
+ * - `connect_failed` - Connection attempt failed
1699
+ * - `disconnect` - Account was disconnected
1700
+ * - `reconnect_success` - Existing account reconnected
1701
+ * - `reconnect_failed` - Reconnection attempt failed
1702
+ *
1703
+ * **Retention:** Logs are automatically deleted after 7 days.
1704
+ *
1705
+ */
1706
+ export const listConnectionLogs = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListConnectionLogsData, ThrowOnError>) => {
1707
+ return (options?.client ?? client).get<ListConnectionLogsResponse, ListConnectionLogsError, ThrowOnError>({
1708
+ ...options,
1709
+ url: '/v1/connections/logs'
1710
+ });
1711
+ };
1712
+
1668
1713
  /**
1669
1714
  * Get logs for a specific post
1670
1715
  * Retrieve all publishing logs for a specific post. Shows the complete history
@@ -93,10 +93,137 @@ export type ApiKey = {
93
93
  key?: string;
94
94
  };
95
95
 
96
+ /**
97
+ * Bluesky post settings:
98
+ * - Supports text posts with up to 4 images per post
99
+ * - Videos supported (single video per post)
100
+ * - threadItems creates a reply chain (Bluesky thread)
101
+ * - Images exceeding Bluesky's 1MB limit are automatically compressed
102
+ * - Alt text for images is supported via mediaItem properties
103
+ *
104
+ */
105
+ export type BlueskyPlatformData = {
106
+ /**
107
+ * Sequence of posts in a Bluesky thread (root then replies in order).
108
+ */
109
+ threadItems?: Array<{
110
+ content?: string;
111
+ mediaItems?: Array<MediaItem>;
112
+ }>;
113
+ };
114
+
96
115
  export type CaptionResponse = {
97
116
  caption?: string;
98
117
  };
99
118
 
119
+ /**
120
+ * Connection event log showing account connection/disconnection history
121
+ */
122
+ export type ConnectionLog = {
123
+ _id?: string;
124
+ /**
125
+ * User who owns the connection (may be null for early OAuth failures)
126
+ */
127
+ userId?: string;
128
+ profileId?: string;
129
+ /**
130
+ * The social account ID (present on successful connections and disconnects)
131
+ */
132
+ accountId?: string;
133
+ platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
134
+ /**
135
+ * Type of connection event:
136
+ * - `connect_success` - New account connected successfully
137
+ * - `connect_failed` - Connection attempt failed
138
+ * - `disconnect` - Account was disconnected
139
+ * - `reconnect_success` - Existing account reconnected successfully
140
+ * - `reconnect_failed` - Reconnection attempt failed
141
+ *
142
+ */
143
+ eventType?: 'connect_success' | 'connect_failed' | 'disconnect' | 'reconnect_success' | 'reconnect_failed';
144
+ /**
145
+ * How the connection was initiated
146
+ */
147
+ connectionMethod?: 'oauth' | 'credentials' | 'invitation';
148
+ /**
149
+ * Error details (present on failed events)
150
+ */
151
+ error?: {
152
+ /**
153
+ * Error code (e.g., oauth_denied, token_exchange_failed)
154
+ */
155
+ code?: string;
156
+ /**
157
+ * Human-readable error message
158
+ */
159
+ message?: string;
160
+ /**
161
+ * Raw error response (truncated to 2000 chars)
162
+ */
163
+ rawResponse?: string;
164
+ };
165
+ /**
166
+ * Success details (present on successful events)
167
+ */
168
+ success?: {
169
+ displayName?: string;
170
+ username?: string;
171
+ profilePicture?: string;
172
+ /**
173
+ * OAuth scopes/permissions granted
174
+ */
175
+ permissions?: Array<(string)>;
176
+ tokenExpiresAt?: string;
177
+ /**
178
+ * Account type (personal, business, organization)
179
+ */
180
+ accountType?: string;
181
+ };
182
+ /**
183
+ * Additional context about the connection attempt
184
+ */
185
+ context?: {
186
+ isHeadlessMode?: boolean;
187
+ hasCustomRedirectUrl?: boolean;
188
+ isReconnection?: boolean;
189
+ /**
190
+ * Using bring-your-own-keys
191
+ */
192
+ isBYOK?: boolean;
193
+ invitationToken?: string;
194
+ connectToken?: string;
195
+ };
196
+ /**
197
+ * How long the operation took in milliseconds
198
+ */
199
+ durationMs?: number;
200
+ /**
201
+ * Additional metadata
202
+ */
203
+ metadata?: {
204
+ [key: string]: unknown;
205
+ };
206
+ createdAt?: string;
207
+ };
208
+
209
+ export type platform = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
210
+
211
+ /**
212
+ * Type of connection event:
213
+ * - `connect_success` - New account connected successfully
214
+ * - `connect_failed` - Connection attempt failed
215
+ * - `disconnect` - Account was disconnected
216
+ * - `reconnect_success` - Existing account reconnected successfully
217
+ * - `reconnect_failed` - Reconnection attempt failed
218
+ *
219
+ */
220
+ export type eventType = 'connect_success' | 'connect_failed' | 'disconnect' | 'reconnect_success' | 'reconnect_failed';
221
+
222
+ /**
223
+ * How the connection was initiated
224
+ */
225
+ export type connectionMethod = 'oauth' | 'credentials' | 'invitation';
226
+
100
227
  export type DownloadFormat = {
101
228
  formatId?: string;
102
229
  ext?: string;
@@ -677,7 +804,7 @@ export type PlatformTarget = {
677
804
  /**
678
805
  * Platform-specific overrides and options.
679
806
  */
680
- platformSpecificData?: (TwitterPlatformData | ThreadsPlatformData | FacebookPlatformData | InstagramPlatformData | LinkedInPlatformData | PinterestPlatformData | YouTubePlatformData | GoogleBusinessPlatformData | TikTokPlatformData | TelegramPlatformData | SnapchatPlatformData);
807
+ platformSpecificData?: (TwitterPlatformData | ThreadsPlatformData | FacebookPlatformData | InstagramPlatformData | LinkedInPlatformData | PinterestPlatformData | YouTubePlatformData | GoogleBusinessPlatformData | TikTokPlatformData | TelegramPlatformData | SnapchatPlatformData | RedditPlatformData | BlueskyPlatformData);
681
808
  /**
682
809
  * Platform-specific status: pending, publishing, published, failed
683
810
  */
@@ -913,8 +1040,6 @@ export type PostLog = {
913
1040
  createdAt?: string;
914
1041
  };
915
1042
 
916
- export type platform = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
917
-
918
1043
  /**
919
1044
  * Type of action logged:
920
1045
  * - `publish` - Initial publish attempt
@@ -1087,6 +1212,38 @@ export type QueueUpdateResponse = {
1087
1212
  reshuffledCount?: number;
1088
1213
  };
1089
1214
 
1215
+ /**
1216
+ * Reddit post settings:
1217
+ * - Posts are either "link" (with URL/media) or "self" (text-only)
1218
+ * - If media is provided, the first media item's URL is used as the link
1219
+ * - Use forceSelf to override and create a text post with the URL in the body
1220
+ * - Subreddit defaults to the account's configured subreddit if omitted
1221
+ * - Use the same accountId multiple times with different subreddit values in platformSpecificData to post to multiple subreddits
1222
+ * - Images are automatically compressed if they exceed Reddit's 20MB limit
1223
+ *
1224
+ */
1225
+ export type RedditPlatformData = {
1226
+ /**
1227
+ * Target subreddit name (without "r/" prefix).
1228
+ * Overrides the default subreddit configured on the account connection.
1229
+ * Use GET /api/v1/accounts/{id}/reddit-subreddits to list available subreddits.
1230
+ *
1231
+ */
1232
+ subreddit?: string;
1233
+ /**
1234
+ * Post title. Defaults to the first line of content, truncated to 300 characters.
1235
+ */
1236
+ title?: string;
1237
+ /**
1238
+ * URL for link posts. If provided (and forceSelf is not true), creates a link post instead of a text post.
1239
+ */
1240
+ url?: string;
1241
+ /**
1242
+ * When true, creates a text/self post even when a URL or media is provided.
1243
+ */
1244
+ forceSelf?: boolean;
1245
+ };
1246
+
1090
1247
  /**
1091
1248
  * Snapchat Public Profile API constraints:
1092
1249
  *
@@ -2317,7 +2474,7 @@ export type CreatePostData = {
2317
2474
  * Optional per-platform scheduled time override. When omitted, the top-level scheduledFor is used.
2318
2475
  */
2319
2476
  scheduledFor?: string;
2320
- platformSpecificData?: (TwitterPlatformData | ThreadsPlatformData | FacebookPlatformData | InstagramPlatformData | LinkedInPlatformData | PinterestPlatformData | YouTubePlatformData | TikTokPlatformData | TelegramPlatformData | SnapchatPlatformData);
2477
+ platformSpecificData?: (TwitterPlatformData | ThreadsPlatformData | FacebookPlatformData | InstagramPlatformData | LinkedInPlatformData | PinterestPlatformData | YouTubePlatformData | GoogleBusinessPlatformData | TikTokPlatformData | TelegramPlatformData | SnapchatPlatformData | RedditPlatformData | BlueskyPlatformData);
2321
2478
  }>;
2322
2479
  scheduledFor?: string;
2323
2480
  publishNow?: boolean;
@@ -4994,6 +5151,106 @@ export type GetLogError = ({
4994
5151
  error?: string;
4995
5152
  } | unknown);
4996
5153
 
5154
+ export type ListPostsLogsData = {
5155
+ query?: {
5156
+ /**
5157
+ * Filter by action type
5158
+ */
5159
+ action?: 'publish' | 'retry' | 'media_upload' | 'rate_limit_pause' | 'token_refresh' | 'cancelled' | 'all';
5160
+ /**
5161
+ * Number of days to look back (max 7)
5162
+ */
5163
+ days?: number;
5164
+ /**
5165
+ * Maximum number of logs to return (max 100)
5166
+ */
5167
+ limit?: number;
5168
+ /**
5169
+ * Filter by platform
5170
+ */
5171
+ platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'all';
5172
+ /**
5173
+ * Number of logs to skip (for pagination)
5174
+ */
5175
+ skip?: number;
5176
+ /**
5177
+ * Filter by log status
5178
+ */
5179
+ status?: 'success' | 'failed' | 'pending' | 'skipped' | 'all';
5180
+ };
5181
+ };
5182
+
5183
+ export type ListPostsLogsResponse = ({
5184
+ logs?: Array<PostLog>;
5185
+ pagination?: {
5186
+ /**
5187
+ * Total number of logs matching the query
5188
+ */
5189
+ total?: number;
5190
+ limit?: number;
5191
+ skip?: number;
5192
+ /**
5193
+ * Total number of pages
5194
+ */
5195
+ pages?: number;
5196
+ hasMore?: boolean;
5197
+ };
5198
+ });
5199
+
5200
+ export type ListPostsLogsError = ({
5201
+ error?: string;
5202
+ });
5203
+
5204
+ export type ListConnectionLogsData = {
5205
+ query?: {
5206
+ /**
5207
+ * Number of days to look back (max 7)
5208
+ */
5209
+ days?: number;
5210
+ /**
5211
+ * Filter by event type
5212
+ */
5213
+ eventType?: 'connect_success' | 'connect_failed' | 'disconnect' | 'reconnect_success' | 'reconnect_failed' | 'all';
5214
+ /**
5215
+ * Maximum number of logs to return (max 100)
5216
+ */
5217
+ limit?: number;
5218
+ /**
5219
+ * Filter by platform
5220
+ */
5221
+ platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'all';
5222
+ /**
5223
+ * Number of logs to skip (for pagination)
5224
+ */
5225
+ skip?: number;
5226
+ /**
5227
+ * Filter by status (shorthand for event types)
5228
+ */
5229
+ status?: 'success' | 'failed' | 'all';
5230
+ };
5231
+ };
5232
+
5233
+ export type ListConnectionLogsResponse = ({
5234
+ logs?: Array<ConnectionLog>;
5235
+ pagination?: {
5236
+ /**
5237
+ * Total number of logs matching the query
5238
+ */
5239
+ total?: number;
5240
+ limit?: number;
5241
+ skip?: number;
5242
+ /**
5243
+ * Total number of pages
5244
+ */
5245
+ pages?: number;
5246
+ hasMore?: boolean;
5247
+ };
5248
+ });
5249
+
5250
+ export type ListConnectionLogsError = ({
5251
+ error?: string;
5252
+ });
5253
+
4997
5254
  export type GetPostLogsData = {
4998
5255
  path: {
4999
5256
  /**
@@ -5363,6 +5620,9 @@ export type ListInboxCommentsError = ({
5363
5620
 
5364
5621
  export type GetInboxPostCommentsData = {
5365
5622
  path: {
5623
+ /**
5624
+ * The post identifier. Accepts a Late post ID (MongoDB ObjectId) which is automatically resolved to the platform-specific post ID, or a platform-specific post ID directly (e.g. tweet ID, Facebook Graph ID, YouTube video ID).
5625
+ */
5366
5626
  postId: string;
5367
5627
  };
5368
5628
  query: {
@@ -5497,6 +5757,9 @@ export type ReplyToInboxPostData = {
5497
5757
  rootCid?: string;
5498
5758
  };
5499
5759
  path: {
5760
+ /**
5761
+ * The post identifier. Accepts a Late post ID or a platform-specific post ID.
5762
+ */
5500
5763
  postId: string;
5501
5764
  };
5502
5765
  };
@@ -5519,6 +5782,9 @@ export type ReplyToInboxPostError = ({
5519
5782
 
5520
5783
  export type DeleteInboxCommentData = {
5521
5784
  path: {
5785
+ /**
5786
+ * The post identifier. Accepts a Late post ID or a platform-specific post ID.
5787
+ */
5522
5788
  postId: string;
5523
5789
  };
5524
5790
  query: {