@getlatedev/node 0.1.1 → 0.1.3
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 +1 -3
- package/dist/index.d.mts +91 -95
- package/dist/index.d.ts +91 -95
- package/dist/index.js +8 -22
- package/dist/index.mjs +8 -22
- package/package.json +1 -1
- package/src/client.ts +2 -6
- package/src/generated/sdk.gen.ts +33 -43
- package/src/generated/types.gen.ts +94 -100
package/README.md
CHANGED
|
@@ -287,6 +287,7 @@ try {
|
|
|
287
287
|
| `connect.listSnapchatProfiles()` | List Snapchat Public Profiles after OAuth (Headless Mode) |
|
|
288
288
|
| `connect.getConnectUrl()` | Start OAuth connection for a platform |
|
|
289
289
|
| `connect.getLinkedInOrganizations()` | Get available LinkedIn organizations for a connected account |
|
|
290
|
+
| `connect.getPendingOAuthData()` | Fetch pending OAuth selection data (Headless Mode) |
|
|
290
291
|
| `connect.getPinterestBoards()` | List Pinterest boards for a connected account |
|
|
291
292
|
| `connect.getRedditSubreddits()` | List Reddit subreddits for a connected account |
|
|
292
293
|
| `connect.getTelegramConnectStatus()` | Generate Telegram access code |
|
|
@@ -313,10 +314,7 @@ try {
|
|
|
313
314
|
### Invites
|
|
314
315
|
| Method | Description |
|
|
315
316
|
|--------|-------------|
|
|
316
|
-
| `invites.listPlatformInvites()` | List platform connection invites |
|
|
317
317
|
| `invites.createInviteToken()` | Create a team member invite token |
|
|
318
|
-
| `invites.createPlatformInvite()` | Create a platform connection invite |
|
|
319
|
-
| `invites.deletePlatformInvite()` | Revoke a platform connection invite |
|
|
320
318
|
|
|
321
319
|
## Requirements
|
|
322
320
|
|
package/dist/index.d.mts
CHANGED
|
@@ -161,9 +161,6 @@ declare class Late {
|
|
|
161
161
|
*/
|
|
162
162
|
invites: {
|
|
163
163
|
createInviteToken: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateInviteTokenData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateInviteTokenResponse, unknown, ThrowOnError>;
|
|
164
|
-
listPlatformInvites: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListPlatformInvitesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListPlatformInvitesResponse, ListPlatformInvitesError, ThrowOnError>;
|
|
165
|
-
createPlatformInvite: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreatePlatformInviteData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreatePlatformInviteResponse, unknown, ThrowOnError>;
|
|
166
|
-
deletePlatformInvite: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeletePlatformInviteData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeletePlatformInviteResponse, unknown, ThrowOnError>;
|
|
167
164
|
};
|
|
168
165
|
/**
|
|
169
166
|
* Connect API - OAuth connection flows
|
|
@@ -171,6 +168,7 @@ declare class Late {
|
|
|
171
168
|
connect: {
|
|
172
169
|
getConnectUrl: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetConnectUrlData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetConnectUrlResponse, unknown, ThrowOnError>;
|
|
173
170
|
handleOAuthCallback: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<HandleOAuthCallbackData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, unknown, ThrowOnError>;
|
|
171
|
+
getPendingOAuthData: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetPendingOAuthDataData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetPendingOAuthDataResponse, ErrorResponse, ThrowOnError>;
|
|
174
172
|
updateFacebookPage: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateFacebookPageData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateFacebookPageResponse, unknown, ThrowOnError>;
|
|
175
173
|
getLinkedInOrganizations: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetLinkedInOrganizationsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetLinkedInOrganizationsResponse, unknown, ThrowOnError>;
|
|
176
174
|
updateLinkedInOrganization: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateLinkedInOrganizationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateLinkedInOrganizationResponse, unknown, ThrowOnError>;
|
|
@@ -577,6 +575,14 @@ type InstagramPlatformData = {
|
|
|
577
575
|
*
|
|
578
576
|
*/
|
|
579
577
|
audioName?: string;
|
|
578
|
+
/**
|
|
579
|
+
* Millisecond offset from the start of the video to use as the Reel thumbnail.
|
|
580
|
+
* Only applies to Reels (video posts). If a custom thumbnail URL (instagramThumbnail
|
|
581
|
+
* in mediaItems) is provided, it takes priority and this offset is ignored.
|
|
582
|
+
* Defaults to 0 (first frame).
|
|
583
|
+
*
|
|
584
|
+
*/
|
|
585
|
+
thumbOffset?: number;
|
|
580
586
|
};
|
|
581
587
|
/**
|
|
582
588
|
* The graduation strategy specifies when a trial reel becomes a regular reel:
|
|
@@ -1489,7 +1495,7 @@ type Webhook = {
|
|
|
1489
1495
|
/**
|
|
1490
1496
|
* Events subscribed to
|
|
1491
1497
|
*/
|
|
1492
|
-
events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.disconnected')>;
|
|
1498
|
+
events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.connected' | 'account.disconnected')>;
|
|
1493
1499
|
/**
|
|
1494
1500
|
* Whether webhook delivery is enabled
|
|
1495
1501
|
*/
|
|
@@ -1522,7 +1528,7 @@ type WebhookLog = {
|
|
|
1522
1528
|
* Name of the webhook that was triggered
|
|
1523
1529
|
*/
|
|
1524
1530
|
webhookName?: string;
|
|
1525
|
-
event?: 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.disconnected' | 'webhook.test';
|
|
1531
|
+
event?: 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.connected' | 'account.disconnected' | 'webhook.test';
|
|
1526
1532
|
url?: string;
|
|
1527
1533
|
status?: 'success' | 'failed';
|
|
1528
1534
|
/**
|
|
@@ -1553,8 +1559,29 @@ type WebhookLog = {
|
|
|
1553
1559
|
responseTime?: number;
|
|
1554
1560
|
createdAt?: string;
|
|
1555
1561
|
};
|
|
1556
|
-
type event = 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.disconnected' | 'webhook.test';
|
|
1562
|
+
type event = 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.connected' | 'account.disconnected' | 'webhook.test';
|
|
1557
1563
|
type status5 = 'success' | 'failed';
|
|
1564
|
+
/**
|
|
1565
|
+
* Webhook payload for account connected events
|
|
1566
|
+
*/
|
|
1567
|
+
type WebhookPayloadAccountConnected = {
|
|
1568
|
+
event?: 'account.connected';
|
|
1569
|
+
account?: {
|
|
1570
|
+
/**
|
|
1571
|
+
* The account's unique identifier (same as used in /v1/accounts/{accountId})
|
|
1572
|
+
*/
|
|
1573
|
+
accountId?: string;
|
|
1574
|
+
/**
|
|
1575
|
+
* The profile's unique identifier this account belongs to
|
|
1576
|
+
*/
|
|
1577
|
+
profileId?: string;
|
|
1578
|
+
platform?: string;
|
|
1579
|
+
username?: string;
|
|
1580
|
+
displayName?: string;
|
|
1581
|
+
};
|
|
1582
|
+
timestamp?: string;
|
|
1583
|
+
};
|
|
1584
|
+
type event2 = 'account.connected';
|
|
1558
1585
|
/**
|
|
1559
1586
|
* Webhook payload for account disconnected events
|
|
1560
1587
|
*/
|
|
@@ -1583,7 +1610,7 @@ type WebhookPayloadAccountDisconnected = {
|
|
|
1583
1610
|
};
|
|
1584
1611
|
timestamp?: string;
|
|
1585
1612
|
};
|
|
1586
|
-
type
|
|
1613
|
+
type event3 = 'account.disconnected';
|
|
1587
1614
|
/**
|
|
1588
1615
|
* Whether the disconnection was intentional (user action) or unintentional (token expired/revoked)
|
|
1589
1616
|
*/
|
|
@@ -1608,7 +1635,7 @@ type WebhookPayloadPost = {
|
|
|
1608
1635
|
};
|
|
1609
1636
|
timestamp?: string;
|
|
1610
1637
|
};
|
|
1611
|
-
type
|
|
1638
|
+
type event4 = 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial';
|
|
1612
1639
|
type YouTubeDailyViewsResponse = {
|
|
1613
1640
|
success?: boolean;
|
|
1614
1641
|
/**
|
|
@@ -2621,87 +2648,6 @@ type CreateInviteTokenResponse = ({
|
|
|
2621
2648
|
type CreateInviteTokenError = (unknown | {
|
|
2622
2649
|
error?: string;
|
|
2623
2650
|
});
|
|
2624
|
-
type ListPlatformInvitesData = {
|
|
2625
|
-
query?: {
|
|
2626
|
-
/**
|
|
2627
|
-
* Optional. Filter invites by profile ID
|
|
2628
|
-
*/
|
|
2629
|
-
profileId?: string;
|
|
2630
|
-
};
|
|
2631
|
-
};
|
|
2632
|
-
type ListPlatformInvitesResponse = ({
|
|
2633
|
-
invites?: Array<{
|
|
2634
|
-
_id?: string;
|
|
2635
|
-
token?: string;
|
|
2636
|
-
userId?: string;
|
|
2637
|
-
/**
|
|
2638
|
-
* Populated profile object (not a string ID)
|
|
2639
|
-
*/
|
|
2640
|
-
profileId?: {
|
|
2641
|
-
_id?: string;
|
|
2642
|
-
name?: string;
|
|
2643
|
-
};
|
|
2644
|
-
platform?: string;
|
|
2645
|
-
inviterName?: string;
|
|
2646
|
-
inviterEmail?: string;
|
|
2647
|
-
expiresAt?: string;
|
|
2648
|
-
isUsed?: boolean;
|
|
2649
|
-
createdAt?: string;
|
|
2650
|
-
}>;
|
|
2651
|
-
});
|
|
2652
|
-
type ListPlatformInvitesError = ({
|
|
2653
|
-
error?: string;
|
|
2654
|
-
});
|
|
2655
|
-
type CreatePlatformInviteData = {
|
|
2656
|
-
body: {
|
|
2657
|
-
/**
|
|
2658
|
-
* Profile ID to connect the account to
|
|
2659
|
-
*/
|
|
2660
|
-
profileId: string;
|
|
2661
|
-
/**
|
|
2662
|
-
* Platform to connect
|
|
2663
|
-
*/
|
|
2664
|
-
platform: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'threads' | 'tiktok' | 'youtube' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
|
|
2665
|
-
};
|
|
2666
|
-
};
|
|
2667
|
-
type CreatePlatformInviteResponse = ({
|
|
2668
|
-
invite?: {
|
|
2669
|
-
_id?: string;
|
|
2670
|
-
token?: string;
|
|
2671
|
-
userId?: string;
|
|
2672
|
-
/**
|
|
2673
|
-
* Populated profile object (not a string ID)
|
|
2674
|
-
*/
|
|
2675
|
-
profileId?: {
|
|
2676
|
-
_id?: string;
|
|
2677
|
-
name?: string;
|
|
2678
|
-
};
|
|
2679
|
-
platform?: string;
|
|
2680
|
-
inviterName?: string;
|
|
2681
|
-
inviterEmail?: string;
|
|
2682
|
-
expiresAt?: string;
|
|
2683
|
-
isUsed?: boolean;
|
|
2684
|
-
createdAt?: string;
|
|
2685
|
-
inviteUrl?: string;
|
|
2686
|
-
};
|
|
2687
|
-
});
|
|
2688
|
-
type CreatePlatformInviteError = (unknown | {
|
|
2689
|
-
error?: string;
|
|
2690
|
-
});
|
|
2691
|
-
type DeletePlatformInviteData = {
|
|
2692
|
-
query: {
|
|
2693
|
-
/**
|
|
2694
|
-
* Invite ID to revoke
|
|
2695
|
-
*/
|
|
2696
|
-
id: string;
|
|
2697
|
-
};
|
|
2698
|
-
};
|
|
2699
|
-
type DeletePlatformInviteResponse = ({
|
|
2700
|
-
message?: string;
|
|
2701
|
-
});
|
|
2702
|
-
type DeletePlatformInviteError = (unknown | {
|
|
2703
|
-
error?: string;
|
|
2704
|
-
});
|
|
2705
2651
|
type GetConnectUrlData = {
|
|
2706
2652
|
path: {
|
|
2707
2653
|
/**
|
|
@@ -2731,8 +2677,8 @@ type GetConnectUrlData = {
|
|
|
2731
2677
|
*
|
|
2732
2678
|
* After OAuth, the user is redirected directly to your `redirect_url` with OAuth data:
|
|
2733
2679
|
* - **Facebook:** `?profileId=X&tempToken=Y&userProfile=Z&connect_token=CT&platform=facebook&step=select_page`
|
|
2734
|
-
* - **LinkedIn:** `?profileId=X&
|
|
2735
|
-
*
|
|
2680
|
+
* - **LinkedIn:** `?profileId=X&pendingDataToken=TOKEN&connect_token=CT&platform=linkedin&step=select_organization`
|
|
2681
|
+
* Use `GET /v1/connect/pending-data?token=TOKEN` to fetch tempToken, userProfile, organizations, refreshToken.
|
|
2736
2682
|
* - **Pinterest:** `?profileId=X&tempToken=Y&userProfile=Z&connect_token=CT&platform=pinterest&step=select_board`
|
|
2737
2683
|
* - **Google Business:** `?profileId=X&tempToken=Y&userProfile=Z&connect_token=CT&platform=googlebusiness&step=select_location`
|
|
2738
2684
|
* - **Snapchat:** `?profileId=X&tempToken=Y&userProfile=Z&publicProfiles=PROFILES&connect_token=CT&platform=snapchat&step=select_public_profile`
|
|
@@ -3043,6 +2989,56 @@ type GetGoogleBusinessReviewsResponse = ({
|
|
|
3043
2989
|
type GetGoogleBusinessReviewsError = (ErrorResponse | {
|
|
3044
2990
|
error?: string;
|
|
3045
2991
|
});
|
|
2992
|
+
type GetPendingOAuthDataData = {
|
|
2993
|
+
query: {
|
|
2994
|
+
/**
|
|
2995
|
+
* The pending data token from the OAuth redirect URL (`pendingDataToken` parameter)
|
|
2996
|
+
*/
|
|
2997
|
+
token: string;
|
|
2998
|
+
};
|
|
2999
|
+
};
|
|
3000
|
+
type GetPendingOAuthDataResponse = ({
|
|
3001
|
+
/**
|
|
3002
|
+
* The platform (e.g., "linkedin")
|
|
3003
|
+
*/
|
|
3004
|
+
platform?: string;
|
|
3005
|
+
/**
|
|
3006
|
+
* The Late profile ID
|
|
3007
|
+
*/
|
|
3008
|
+
profileId?: string;
|
|
3009
|
+
/**
|
|
3010
|
+
* Temporary access token for the platform
|
|
3011
|
+
*/
|
|
3012
|
+
tempToken?: string;
|
|
3013
|
+
/**
|
|
3014
|
+
* Refresh token (if available)
|
|
3015
|
+
*/
|
|
3016
|
+
refreshToken?: string;
|
|
3017
|
+
/**
|
|
3018
|
+
* Token expiry in seconds
|
|
3019
|
+
*/
|
|
3020
|
+
expiresIn?: number;
|
|
3021
|
+
/**
|
|
3022
|
+
* User profile data (id, username, displayName, profilePicture)
|
|
3023
|
+
*/
|
|
3024
|
+
userProfile?: {
|
|
3025
|
+
[key: string]: unknown;
|
|
3026
|
+
};
|
|
3027
|
+
/**
|
|
3028
|
+
* Type of selection data
|
|
3029
|
+
*/
|
|
3030
|
+
selectionType?: 'organizations' | 'pages' | 'boards' | 'locations' | 'profiles';
|
|
3031
|
+
/**
|
|
3032
|
+
* LinkedIn organizations (when selectionType is "organizations")
|
|
3033
|
+
*/
|
|
3034
|
+
organizations?: Array<{
|
|
3035
|
+
id?: string;
|
|
3036
|
+
urn?: string;
|
|
3037
|
+
name?: string;
|
|
3038
|
+
vanityName?: string;
|
|
3039
|
+
}>;
|
|
3040
|
+
});
|
|
3041
|
+
type GetPendingOAuthDataError = (ErrorResponse);
|
|
3046
3042
|
type ListLinkedInOrganizationsData = {
|
|
3047
3043
|
query: {
|
|
3048
3044
|
/**
|
|
@@ -3906,7 +3902,7 @@ type CreateWebhookSettingsData = {
|
|
|
3906
3902
|
/**
|
|
3907
3903
|
* Events to subscribe to
|
|
3908
3904
|
*/
|
|
3909
|
-
events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.disconnected')>;
|
|
3905
|
+
events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.connected' | 'account.disconnected')>;
|
|
3910
3906
|
/**
|
|
3911
3907
|
* Enable or disable webhook delivery
|
|
3912
3908
|
*/
|
|
@@ -3947,7 +3943,7 @@ type UpdateWebhookSettingsData = {
|
|
|
3947
3943
|
/**
|
|
3948
3944
|
* Events to subscribe to
|
|
3949
3945
|
*/
|
|
3950
|
-
events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.disconnected')>;
|
|
3946
|
+
events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.connected' | 'account.disconnected')>;
|
|
3951
3947
|
/**
|
|
3952
3948
|
* Enable or disable webhook delivery
|
|
3953
3949
|
*/
|
|
@@ -4004,7 +4000,7 @@ type GetWebhookLogsData = {
|
|
|
4004
4000
|
/**
|
|
4005
4001
|
* Filter by event type
|
|
4006
4002
|
*/
|
|
4007
|
-
event?: 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.disconnected' | 'webhook.test';
|
|
4003
|
+
event?: 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.connected' | 'account.disconnected' | 'webhook.test';
|
|
4008
4004
|
/**
|
|
4009
4005
|
* Maximum number of logs to return (max 100)
|
|
4010
4006
|
*/
|
|
@@ -4112,4 +4108,4 @@ type GetPostLogsError = ({
|
|
|
4112
4108
|
error?: string;
|
|
4113
4109
|
} | unknown);
|
|
4114
4110
|
|
|
4115
|
-
export { type AccountGetResponse, type AccountWithFollowerStats, type AccountsListResponse, type AnalyticsListResponse, type AnalyticsOverview, type AnalyticsSinglePostResponse, type ApiKey, type BulkUploadPostsData, type BulkUploadPostsError, type BulkUploadPostsResponse, type CaptionResponse, type CheckInstagramHashtagsData, type CheckInstagramHashtagsError, type CheckInstagramHashtagsResponse, type ClientOptions, type CompleteTelegramConnectData, type CompleteTelegramConnectError, type CompleteTelegramConnectResponse, type ConnectBlueskyCredentialsData, type ConnectBlueskyCredentialsError, type ConnectBlueskyCredentialsResponse, type CreateAccountGroupData, type CreateAccountGroupError, type CreateAccountGroupResponse, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyResponse, type CreateInviteTokenData, type CreateInviteTokenError, type CreateInviteTokenResponse, type CreatePlatformInviteData, type CreatePlatformInviteError, type CreatePlatformInviteResponse, 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 DeletePlatformInviteData, type DeletePlatformInviteError, type DeletePlatformInviteResponse, type DeletePostData, type DeletePostError, type DeletePostResponse, type DeleteProfileData, type DeleteProfileError, type DeleteProfileResponse, type DeleteQueueSlotData, type DeleteQueueSlotError, type DeleteQueueSlotResponse, type DeleteWebhookSettingsData, type DeleteWebhookSettingsError, type DeleteWebhookSettingsResponse, type DownloadBlueskyMediaData, type DownloadBlueskyMediaError, type DownloadBlueskyMediaResponse, type DownloadFacebookVideoData, type DownloadFacebookVideoError, type DownloadFacebookVideoResponse, type DownloadFormat, type DownloadInstagramMediaData, type DownloadInstagramMediaError, type DownloadInstagramMediaResponse, type DownloadLinkedInVideoData, type DownloadLinkedInVideoError, type DownloadLinkedInVideoResponse, type DownloadResponse, type DownloadTikTokVideoData, type DownloadTikTokVideoError, type DownloadTikTokVideoResponse, type DownloadTwitterMediaData, type DownloadTwitterMediaError, type DownloadTwitterMediaResponse, type DownloadYouTubeVideoData, type DownloadYouTubeVideoError, type DownloadYouTubeVideoResponse, type ErrorResponse, type FacebookPlatformData, type FollowerStatsResponse, type GetAccountHealthData, type GetAccountHealthError, type GetAccountHealthResponse, type GetAllAccountsHealthData, type GetAllAccountsHealthError, type GetAllAccountsHealthResponse, type GetAnalyticsData, type GetAnalyticsError, type GetAnalyticsResponse, type GetConnectUrlData, type GetConnectUrlError, type GetConnectUrlResponse, type GetFollowerStatsData, type GetFollowerStatsError, type GetFollowerStatsResponse, type GetGoogleBusinessReviewsData, type GetGoogleBusinessReviewsError, type GetGoogleBusinessReviewsResponse, 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 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 InitiateTelegramConnectData, type InitiateTelegramConnectError, type InitiateTelegramConnectResponse, type InstagramPlatformData, Late, LateApiError, 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 ListLinkedInOrganizationsData, type ListLinkedInOrganizationsError, type ListLinkedInOrganizationsResponse, type ListLogsData, type ListLogsError, type ListLogsResponse, type ListPinterestBoardsForSelectionData, type ListPinterestBoardsForSelectionError, type ListPinterestBoardsForSelectionResponse, type ListPlatformInvitesData, type ListPlatformInvitesError, type ListPlatformInvitesResponse, type ListPostsData, type ListPostsError, type ListPostsResponse, type ListProfilesData, type ListProfilesError, type ListProfilesResponse, type ListQueueSlotsData, type ListQueueSlotsError, type ListQueueSlotsResponse, type ListSnapchatProfilesData, type ListSnapchatProfilesError, type ListSnapchatProfilesResponse, type ListUsersError, type ListUsersResponse, type MediaItem, type MediaUploadResponse, type Pagination, type ParameterLimitParam, type ParameterPageParam, type PinterestPlatformData, type PlatformAnalytics, type PlatformTarget, type Post, type PostAnalytics, type PostCreateResponse, type PostDeleteResponse, type PostGetResponse, type PostLog, type PostLogDetail, type PostRetryResponse, type PostUpdateResponse, type PostsListResponse, type PreviewQueueData, type PreviewQueueError, type PreviewQueueResponse, type Profile, type ProfileCreateResponse, type ProfileDeleteResponse, type ProfileGetResponse, type ProfileUpdateResponse, type ProfilesListResponse, type QueueDeleteResponse, type QueueNextSlotResponse, type QueuePreviewResponse, type QueueSchedule, type QueueSlot, type QueueSlotsResponse, type QueueUpdateResponse, RateLimitError, type 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 SnapchatPlatformData, type SocialAccount, type TelegramPlatformData, type TestWebhookData, type TestWebhookError, type TestWebhookResponse, type ThreadsPlatformData, type TikTokPlatformData, type TikTokSettings, type TranscriptResponse, type TranscriptSegment, type TwitterPlatformData, type UpdateAccountData, type UpdateAccountError, type UpdateAccountGroupData, type UpdateAccountGroupError, type UpdateAccountGroupResponse, type UpdateAccountResponse, type UpdateFacebookPageData, type UpdateFacebookPageError, type UpdateFacebookPageResponse, 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 WebhookPayloadAccountDisconnected, 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 disconnectionType, type event, type event2, type event3, type graduationStrategy, type mediaType, parseApiError, type parseMode, type platform, type status, type status2, type status3, type status4, type status5, type type, type type2, type type3, type visibility };
|
|
4111
|
+
export { type AccountGetResponse, type AccountWithFollowerStats, type AccountsListResponse, type AnalyticsListResponse, type AnalyticsOverview, type AnalyticsSinglePostResponse, type ApiKey, type BulkUploadPostsData, type BulkUploadPostsError, type BulkUploadPostsResponse, type CaptionResponse, type CheckInstagramHashtagsData, type CheckInstagramHashtagsError, type CheckInstagramHashtagsResponse, type ClientOptions, type CompleteTelegramConnectData, type CompleteTelegramConnectError, type CompleteTelegramConnectResponse, type ConnectBlueskyCredentialsData, type ConnectBlueskyCredentialsError, type ConnectBlueskyCredentialsResponse, type CreateAccountGroupData, type CreateAccountGroupError, type CreateAccountGroupResponse, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyResponse, type CreateInviteTokenData, type CreateInviteTokenError, type CreateInviteTokenResponse, type CreatePostData, type CreatePostError, type CreatePostResponse, type CreateProfileData, type CreateProfileError, type CreateProfileResponse, type CreateQueueSlotData, type CreateQueueSlotError, type CreateQueueSlotResponse, type CreateWebhookSettingsData, type CreateWebhookSettingsError, type CreateWebhookSettingsResponse, type DeleteAccountData, type DeleteAccountError, type DeleteAccountGroupData, type DeleteAccountGroupError, type DeleteAccountGroupResponse, type DeleteAccountResponse, type DeleteApiKeyData, type DeleteApiKeyError, type DeleteApiKeyResponse, type DeletePostData, type DeletePostError, type DeletePostResponse, type DeleteProfileData, type DeleteProfileError, type DeleteProfileResponse, type DeleteQueueSlotData, type DeleteQueueSlotError, type DeleteQueueSlotResponse, type DeleteWebhookSettingsData, type DeleteWebhookSettingsError, type DeleteWebhookSettingsResponse, type DownloadBlueskyMediaData, type DownloadBlueskyMediaError, type DownloadBlueskyMediaResponse, type DownloadFacebookVideoData, type DownloadFacebookVideoError, type DownloadFacebookVideoResponse, type DownloadFormat, type DownloadInstagramMediaData, type DownloadInstagramMediaError, type DownloadInstagramMediaResponse, type DownloadLinkedInVideoData, type DownloadLinkedInVideoError, type DownloadLinkedInVideoResponse, type DownloadResponse, type DownloadTikTokVideoData, type DownloadTikTokVideoError, type DownloadTikTokVideoResponse, type DownloadTwitterMediaData, type DownloadTwitterMediaError, type DownloadTwitterMediaResponse, type DownloadYouTubeVideoData, type DownloadYouTubeVideoError, type DownloadYouTubeVideoResponse, type ErrorResponse, type FacebookPlatformData, type FollowerStatsResponse, type GetAccountHealthData, type GetAccountHealthError, type GetAccountHealthResponse, type GetAllAccountsHealthData, type GetAllAccountsHealthError, type GetAllAccountsHealthResponse, type GetAnalyticsData, type GetAnalyticsError, type GetAnalyticsResponse, type GetConnectUrlData, type GetConnectUrlError, type GetConnectUrlResponse, type GetFollowerStatsData, type GetFollowerStatsError, type GetFollowerStatsResponse, type GetGoogleBusinessReviewsData, type GetGoogleBusinessReviewsError, type GetGoogleBusinessReviewsResponse, 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 InitiateTelegramConnectData, type InitiateTelegramConnectError, type InitiateTelegramConnectResponse, type InstagramPlatformData, Late, LateApiError, 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 ListLinkedInOrganizationsData, type ListLinkedInOrganizationsError, type ListLinkedInOrganizationsResponse, type ListLogsData, type ListLogsError, type ListLogsResponse, type ListPinterestBoardsForSelectionData, type ListPinterestBoardsForSelectionError, type ListPinterestBoardsForSelectionResponse, type ListPostsData, type ListPostsError, type ListPostsResponse, type ListProfilesData, type ListProfilesError, type ListProfilesResponse, type ListQueueSlotsData, type ListQueueSlotsError, type ListQueueSlotsResponse, type ListSnapchatProfilesData, type ListSnapchatProfilesError, type ListSnapchatProfilesResponse, type ListUsersError, type ListUsersResponse, type MediaItem, type MediaUploadResponse, type Pagination, type ParameterLimitParam, type ParameterPageParam, type PinterestPlatformData, type PlatformAnalytics, type PlatformTarget, type Post, type PostAnalytics, type PostCreateResponse, type PostDeleteResponse, type PostGetResponse, type PostLog, type PostLogDetail, type PostRetryResponse, type PostUpdateResponse, type PostsListResponse, type PreviewQueueData, type PreviewQueueError, type PreviewQueueResponse, type Profile, type ProfileCreateResponse, type ProfileDeleteResponse, type ProfileGetResponse, type ProfileUpdateResponse, type ProfilesListResponse, type QueueDeleteResponse, type QueueNextSlotResponse, type QueuePreviewResponse, type QueueSchedule, type QueueSlot, type QueueSlotsResponse, type QueueUpdateResponse, RateLimitError, type 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 SnapchatPlatformData, type SocialAccount, type TelegramPlatformData, type TestWebhookData, type TestWebhookError, type TestWebhookResponse, type ThreadsPlatformData, type TikTokPlatformData, type TikTokSettings, type TranscriptResponse, type TranscriptSegment, type TwitterPlatformData, type UpdateAccountData, type UpdateAccountError, type UpdateAccountGroupData, type UpdateAccountGroupError, type UpdateAccountGroupResponse, type UpdateAccountResponse, type UpdateFacebookPageData, type UpdateFacebookPageError, type UpdateFacebookPageResponse, 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 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 disconnectionType, type event, type event2, type event3, type event4, type graduationStrategy, type mediaType, parseApiError, type parseMode, type platform, type status, type status2, type status3, type status4, type status5, type type, type type2, type type3, type visibility };
|
package/dist/index.d.ts
CHANGED
|
@@ -161,9 +161,6 @@ declare class Late {
|
|
|
161
161
|
*/
|
|
162
162
|
invites: {
|
|
163
163
|
createInviteToken: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateInviteTokenData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateInviteTokenResponse, unknown, ThrowOnError>;
|
|
164
|
-
listPlatformInvites: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListPlatformInvitesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListPlatformInvitesResponse, ListPlatformInvitesError, ThrowOnError>;
|
|
165
|
-
createPlatformInvite: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreatePlatformInviteData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreatePlatformInviteResponse, unknown, ThrowOnError>;
|
|
166
|
-
deletePlatformInvite: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeletePlatformInviteData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeletePlatformInviteResponse, unknown, ThrowOnError>;
|
|
167
164
|
};
|
|
168
165
|
/**
|
|
169
166
|
* Connect API - OAuth connection flows
|
|
@@ -171,6 +168,7 @@ declare class Late {
|
|
|
171
168
|
connect: {
|
|
172
169
|
getConnectUrl: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetConnectUrlData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetConnectUrlResponse, unknown, ThrowOnError>;
|
|
173
170
|
handleOAuthCallback: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<HandleOAuthCallbackData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, unknown, ThrowOnError>;
|
|
171
|
+
getPendingOAuthData: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetPendingOAuthDataData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetPendingOAuthDataResponse, ErrorResponse, ThrowOnError>;
|
|
174
172
|
updateFacebookPage: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateFacebookPageData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateFacebookPageResponse, unknown, ThrowOnError>;
|
|
175
173
|
getLinkedInOrganizations: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetLinkedInOrganizationsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetLinkedInOrganizationsResponse, unknown, ThrowOnError>;
|
|
176
174
|
updateLinkedInOrganization: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateLinkedInOrganizationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateLinkedInOrganizationResponse, unknown, ThrowOnError>;
|
|
@@ -577,6 +575,14 @@ type InstagramPlatformData = {
|
|
|
577
575
|
*
|
|
578
576
|
*/
|
|
579
577
|
audioName?: string;
|
|
578
|
+
/**
|
|
579
|
+
* Millisecond offset from the start of the video to use as the Reel thumbnail.
|
|
580
|
+
* Only applies to Reels (video posts). If a custom thumbnail URL (instagramThumbnail
|
|
581
|
+
* in mediaItems) is provided, it takes priority and this offset is ignored.
|
|
582
|
+
* Defaults to 0 (first frame).
|
|
583
|
+
*
|
|
584
|
+
*/
|
|
585
|
+
thumbOffset?: number;
|
|
580
586
|
};
|
|
581
587
|
/**
|
|
582
588
|
* The graduation strategy specifies when a trial reel becomes a regular reel:
|
|
@@ -1489,7 +1495,7 @@ type Webhook = {
|
|
|
1489
1495
|
/**
|
|
1490
1496
|
* Events subscribed to
|
|
1491
1497
|
*/
|
|
1492
|
-
events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.disconnected')>;
|
|
1498
|
+
events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.connected' | 'account.disconnected')>;
|
|
1493
1499
|
/**
|
|
1494
1500
|
* Whether webhook delivery is enabled
|
|
1495
1501
|
*/
|
|
@@ -1522,7 +1528,7 @@ type WebhookLog = {
|
|
|
1522
1528
|
* Name of the webhook that was triggered
|
|
1523
1529
|
*/
|
|
1524
1530
|
webhookName?: string;
|
|
1525
|
-
event?: 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.disconnected' | 'webhook.test';
|
|
1531
|
+
event?: 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.connected' | 'account.disconnected' | 'webhook.test';
|
|
1526
1532
|
url?: string;
|
|
1527
1533
|
status?: 'success' | 'failed';
|
|
1528
1534
|
/**
|
|
@@ -1553,8 +1559,29 @@ type WebhookLog = {
|
|
|
1553
1559
|
responseTime?: number;
|
|
1554
1560
|
createdAt?: string;
|
|
1555
1561
|
};
|
|
1556
|
-
type event = 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.disconnected' | 'webhook.test';
|
|
1562
|
+
type event = 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.connected' | 'account.disconnected' | 'webhook.test';
|
|
1557
1563
|
type status5 = 'success' | 'failed';
|
|
1564
|
+
/**
|
|
1565
|
+
* Webhook payload for account connected events
|
|
1566
|
+
*/
|
|
1567
|
+
type WebhookPayloadAccountConnected = {
|
|
1568
|
+
event?: 'account.connected';
|
|
1569
|
+
account?: {
|
|
1570
|
+
/**
|
|
1571
|
+
* The account's unique identifier (same as used in /v1/accounts/{accountId})
|
|
1572
|
+
*/
|
|
1573
|
+
accountId?: string;
|
|
1574
|
+
/**
|
|
1575
|
+
* The profile's unique identifier this account belongs to
|
|
1576
|
+
*/
|
|
1577
|
+
profileId?: string;
|
|
1578
|
+
platform?: string;
|
|
1579
|
+
username?: string;
|
|
1580
|
+
displayName?: string;
|
|
1581
|
+
};
|
|
1582
|
+
timestamp?: string;
|
|
1583
|
+
};
|
|
1584
|
+
type event2 = 'account.connected';
|
|
1558
1585
|
/**
|
|
1559
1586
|
* Webhook payload for account disconnected events
|
|
1560
1587
|
*/
|
|
@@ -1583,7 +1610,7 @@ type WebhookPayloadAccountDisconnected = {
|
|
|
1583
1610
|
};
|
|
1584
1611
|
timestamp?: string;
|
|
1585
1612
|
};
|
|
1586
|
-
type
|
|
1613
|
+
type event3 = 'account.disconnected';
|
|
1587
1614
|
/**
|
|
1588
1615
|
* Whether the disconnection was intentional (user action) or unintentional (token expired/revoked)
|
|
1589
1616
|
*/
|
|
@@ -1608,7 +1635,7 @@ type WebhookPayloadPost = {
|
|
|
1608
1635
|
};
|
|
1609
1636
|
timestamp?: string;
|
|
1610
1637
|
};
|
|
1611
|
-
type
|
|
1638
|
+
type event4 = 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial';
|
|
1612
1639
|
type YouTubeDailyViewsResponse = {
|
|
1613
1640
|
success?: boolean;
|
|
1614
1641
|
/**
|
|
@@ -2621,87 +2648,6 @@ type CreateInviteTokenResponse = ({
|
|
|
2621
2648
|
type CreateInviteTokenError = (unknown | {
|
|
2622
2649
|
error?: string;
|
|
2623
2650
|
});
|
|
2624
|
-
type ListPlatformInvitesData = {
|
|
2625
|
-
query?: {
|
|
2626
|
-
/**
|
|
2627
|
-
* Optional. Filter invites by profile ID
|
|
2628
|
-
*/
|
|
2629
|
-
profileId?: string;
|
|
2630
|
-
};
|
|
2631
|
-
};
|
|
2632
|
-
type ListPlatformInvitesResponse = ({
|
|
2633
|
-
invites?: Array<{
|
|
2634
|
-
_id?: string;
|
|
2635
|
-
token?: string;
|
|
2636
|
-
userId?: string;
|
|
2637
|
-
/**
|
|
2638
|
-
* Populated profile object (not a string ID)
|
|
2639
|
-
*/
|
|
2640
|
-
profileId?: {
|
|
2641
|
-
_id?: string;
|
|
2642
|
-
name?: string;
|
|
2643
|
-
};
|
|
2644
|
-
platform?: string;
|
|
2645
|
-
inviterName?: string;
|
|
2646
|
-
inviterEmail?: string;
|
|
2647
|
-
expiresAt?: string;
|
|
2648
|
-
isUsed?: boolean;
|
|
2649
|
-
createdAt?: string;
|
|
2650
|
-
}>;
|
|
2651
|
-
});
|
|
2652
|
-
type ListPlatformInvitesError = ({
|
|
2653
|
-
error?: string;
|
|
2654
|
-
});
|
|
2655
|
-
type CreatePlatformInviteData = {
|
|
2656
|
-
body: {
|
|
2657
|
-
/**
|
|
2658
|
-
* Profile ID to connect the account to
|
|
2659
|
-
*/
|
|
2660
|
-
profileId: string;
|
|
2661
|
-
/**
|
|
2662
|
-
* Platform to connect
|
|
2663
|
-
*/
|
|
2664
|
-
platform: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'threads' | 'tiktok' | 'youtube' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
|
|
2665
|
-
};
|
|
2666
|
-
};
|
|
2667
|
-
type CreatePlatformInviteResponse = ({
|
|
2668
|
-
invite?: {
|
|
2669
|
-
_id?: string;
|
|
2670
|
-
token?: string;
|
|
2671
|
-
userId?: string;
|
|
2672
|
-
/**
|
|
2673
|
-
* Populated profile object (not a string ID)
|
|
2674
|
-
*/
|
|
2675
|
-
profileId?: {
|
|
2676
|
-
_id?: string;
|
|
2677
|
-
name?: string;
|
|
2678
|
-
};
|
|
2679
|
-
platform?: string;
|
|
2680
|
-
inviterName?: string;
|
|
2681
|
-
inviterEmail?: string;
|
|
2682
|
-
expiresAt?: string;
|
|
2683
|
-
isUsed?: boolean;
|
|
2684
|
-
createdAt?: string;
|
|
2685
|
-
inviteUrl?: string;
|
|
2686
|
-
};
|
|
2687
|
-
});
|
|
2688
|
-
type CreatePlatformInviteError = (unknown | {
|
|
2689
|
-
error?: string;
|
|
2690
|
-
});
|
|
2691
|
-
type DeletePlatformInviteData = {
|
|
2692
|
-
query: {
|
|
2693
|
-
/**
|
|
2694
|
-
* Invite ID to revoke
|
|
2695
|
-
*/
|
|
2696
|
-
id: string;
|
|
2697
|
-
};
|
|
2698
|
-
};
|
|
2699
|
-
type DeletePlatformInviteResponse = ({
|
|
2700
|
-
message?: string;
|
|
2701
|
-
});
|
|
2702
|
-
type DeletePlatformInviteError = (unknown | {
|
|
2703
|
-
error?: string;
|
|
2704
|
-
});
|
|
2705
2651
|
type GetConnectUrlData = {
|
|
2706
2652
|
path: {
|
|
2707
2653
|
/**
|
|
@@ -2731,8 +2677,8 @@ type GetConnectUrlData = {
|
|
|
2731
2677
|
*
|
|
2732
2678
|
* After OAuth, the user is redirected directly to your `redirect_url` with OAuth data:
|
|
2733
2679
|
* - **Facebook:** `?profileId=X&tempToken=Y&userProfile=Z&connect_token=CT&platform=facebook&step=select_page`
|
|
2734
|
-
* - **LinkedIn:** `?profileId=X&
|
|
2735
|
-
*
|
|
2680
|
+
* - **LinkedIn:** `?profileId=X&pendingDataToken=TOKEN&connect_token=CT&platform=linkedin&step=select_organization`
|
|
2681
|
+
* Use `GET /v1/connect/pending-data?token=TOKEN` to fetch tempToken, userProfile, organizations, refreshToken.
|
|
2736
2682
|
* - **Pinterest:** `?profileId=X&tempToken=Y&userProfile=Z&connect_token=CT&platform=pinterest&step=select_board`
|
|
2737
2683
|
* - **Google Business:** `?profileId=X&tempToken=Y&userProfile=Z&connect_token=CT&platform=googlebusiness&step=select_location`
|
|
2738
2684
|
* - **Snapchat:** `?profileId=X&tempToken=Y&userProfile=Z&publicProfiles=PROFILES&connect_token=CT&platform=snapchat&step=select_public_profile`
|
|
@@ -3043,6 +2989,56 @@ type GetGoogleBusinessReviewsResponse = ({
|
|
|
3043
2989
|
type GetGoogleBusinessReviewsError = (ErrorResponse | {
|
|
3044
2990
|
error?: string;
|
|
3045
2991
|
});
|
|
2992
|
+
type GetPendingOAuthDataData = {
|
|
2993
|
+
query: {
|
|
2994
|
+
/**
|
|
2995
|
+
* The pending data token from the OAuth redirect URL (`pendingDataToken` parameter)
|
|
2996
|
+
*/
|
|
2997
|
+
token: string;
|
|
2998
|
+
};
|
|
2999
|
+
};
|
|
3000
|
+
type GetPendingOAuthDataResponse = ({
|
|
3001
|
+
/**
|
|
3002
|
+
* The platform (e.g., "linkedin")
|
|
3003
|
+
*/
|
|
3004
|
+
platform?: string;
|
|
3005
|
+
/**
|
|
3006
|
+
* The Late profile ID
|
|
3007
|
+
*/
|
|
3008
|
+
profileId?: string;
|
|
3009
|
+
/**
|
|
3010
|
+
* Temporary access token for the platform
|
|
3011
|
+
*/
|
|
3012
|
+
tempToken?: string;
|
|
3013
|
+
/**
|
|
3014
|
+
* Refresh token (if available)
|
|
3015
|
+
*/
|
|
3016
|
+
refreshToken?: string;
|
|
3017
|
+
/**
|
|
3018
|
+
* Token expiry in seconds
|
|
3019
|
+
*/
|
|
3020
|
+
expiresIn?: number;
|
|
3021
|
+
/**
|
|
3022
|
+
* User profile data (id, username, displayName, profilePicture)
|
|
3023
|
+
*/
|
|
3024
|
+
userProfile?: {
|
|
3025
|
+
[key: string]: unknown;
|
|
3026
|
+
};
|
|
3027
|
+
/**
|
|
3028
|
+
* Type of selection data
|
|
3029
|
+
*/
|
|
3030
|
+
selectionType?: 'organizations' | 'pages' | 'boards' | 'locations' | 'profiles';
|
|
3031
|
+
/**
|
|
3032
|
+
* LinkedIn organizations (when selectionType is "organizations")
|
|
3033
|
+
*/
|
|
3034
|
+
organizations?: Array<{
|
|
3035
|
+
id?: string;
|
|
3036
|
+
urn?: string;
|
|
3037
|
+
name?: string;
|
|
3038
|
+
vanityName?: string;
|
|
3039
|
+
}>;
|
|
3040
|
+
});
|
|
3041
|
+
type GetPendingOAuthDataError = (ErrorResponse);
|
|
3046
3042
|
type ListLinkedInOrganizationsData = {
|
|
3047
3043
|
query: {
|
|
3048
3044
|
/**
|
|
@@ -3906,7 +3902,7 @@ type CreateWebhookSettingsData = {
|
|
|
3906
3902
|
/**
|
|
3907
3903
|
* Events to subscribe to
|
|
3908
3904
|
*/
|
|
3909
|
-
events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.disconnected')>;
|
|
3905
|
+
events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.connected' | 'account.disconnected')>;
|
|
3910
3906
|
/**
|
|
3911
3907
|
* Enable or disable webhook delivery
|
|
3912
3908
|
*/
|
|
@@ -3947,7 +3943,7 @@ type UpdateWebhookSettingsData = {
|
|
|
3947
3943
|
/**
|
|
3948
3944
|
* Events to subscribe to
|
|
3949
3945
|
*/
|
|
3950
|
-
events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.disconnected')>;
|
|
3946
|
+
events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.connected' | 'account.disconnected')>;
|
|
3951
3947
|
/**
|
|
3952
3948
|
* Enable or disable webhook delivery
|
|
3953
3949
|
*/
|
|
@@ -4004,7 +4000,7 @@ type GetWebhookLogsData = {
|
|
|
4004
4000
|
/**
|
|
4005
4001
|
* Filter by event type
|
|
4006
4002
|
*/
|
|
4007
|
-
event?: 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.disconnected' | 'webhook.test';
|
|
4003
|
+
event?: 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.connected' | 'account.disconnected' | 'webhook.test';
|
|
4008
4004
|
/**
|
|
4009
4005
|
* Maximum number of logs to return (max 100)
|
|
4010
4006
|
*/
|
|
@@ -4112,4 +4108,4 @@ type GetPostLogsError = ({
|
|
|
4112
4108
|
error?: string;
|
|
4113
4109
|
} | unknown);
|
|
4114
4110
|
|
|
4115
|
-
export { type AccountGetResponse, type AccountWithFollowerStats, type AccountsListResponse, type AnalyticsListResponse, type AnalyticsOverview, type AnalyticsSinglePostResponse, type ApiKey, type BulkUploadPostsData, type BulkUploadPostsError, type BulkUploadPostsResponse, type CaptionResponse, type CheckInstagramHashtagsData, type CheckInstagramHashtagsError, type CheckInstagramHashtagsResponse, type ClientOptions, type CompleteTelegramConnectData, type CompleteTelegramConnectError, type CompleteTelegramConnectResponse, type ConnectBlueskyCredentialsData, type ConnectBlueskyCredentialsError, type ConnectBlueskyCredentialsResponse, type CreateAccountGroupData, type CreateAccountGroupError, type CreateAccountGroupResponse, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyResponse, type CreateInviteTokenData, type CreateInviteTokenError, type CreateInviteTokenResponse, type CreatePlatformInviteData, type CreatePlatformInviteError, type CreatePlatformInviteResponse, 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 DeletePlatformInviteData, type DeletePlatformInviteError, type DeletePlatformInviteResponse, type DeletePostData, type DeletePostError, type DeletePostResponse, type DeleteProfileData, type DeleteProfileError, type DeleteProfileResponse, type DeleteQueueSlotData, type DeleteQueueSlotError, type DeleteQueueSlotResponse, type DeleteWebhookSettingsData, type DeleteWebhookSettingsError, type DeleteWebhookSettingsResponse, type DownloadBlueskyMediaData, type DownloadBlueskyMediaError, type DownloadBlueskyMediaResponse, type DownloadFacebookVideoData, type DownloadFacebookVideoError, type DownloadFacebookVideoResponse, type DownloadFormat, type DownloadInstagramMediaData, type DownloadInstagramMediaError, type DownloadInstagramMediaResponse, type DownloadLinkedInVideoData, type DownloadLinkedInVideoError, type DownloadLinkedInVideoResponse, type DownloadResponse, type DownloadTikTokVideoData, type DownloadTikTokVideoError, type DownloadTikTokVideoResponse, type DownloadTwitterMediaData, type DownloadTwitterMediaError, type DownloadTwitterMediaResponse, type DownloadYouTubeVideoData, type DownloadYouTubeVideoError, type DownloadYouTubeVideoResponse, type ErrorResponse, type FacebookPlatformData, type FollowerStatsResponse, type GetAccountHealthData, type GetAccountHealthError, type GetAccountHealthResponse, type GetAllAccountsHealthData, type GetAllAccountsHealthError, type GetAllAccountsHealthResponse, type GetAnalyticsData, type GetAnalyticsError, type GetAnalyticsResponse, type GetConnectUrlData, type GetConnectUrlError, type GetConnectUrlResponse, type GetFollowerStatsData, type GetFollowerStatsError, type GetFollowerStatsResponse, type GetGoogleBusinessReviewsData, type GetGoogleBusinessReviewsError, type GetGoogleBusinessReviewsResponse, 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 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 InitiateTelegramConnectData, type InitiateTelegramConnectError, type InitiateTelegramConnectResponse, type InstagramPlatformData, Late, LateApiError, 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 ListLinkedInOrganizationsData, type ListLinkedInOrganizationsError, type ListLinkedInOrganizationsResponse, type ListLogsData, type ListLogsError, type ListLogsResponse, type ListPinterestBoardsForSelectionData, type ListPinterestBoardsForSelectionError, type ListPinterestBoardsForSelectionResponse, type ListPlatformInvitesData, type ListPlatformInvitesError, type ListPlatformInvitesResponse, type ListPostsData, type ListPostsError, type ListPostsResponse, type ListProfilesData, type ListProfilesError, type ListProfilesResponse, type ListQueueSlotsData, type ListQueueSlotsError, type ListQueueSlotsResponse, type ListSnapchatProfilesData, type ListSnapchatProfilesError, type ListSnapchatProfilesResponse, type ListUsersError, type ListUsersResponse, type MediaItem, type MediaUploadResponse, type Pagination, type ParameterLimitParam, type ParameterPageParam, type PinterestPlatformData, type PlatformAnalytics, type PlatformTarget, type Post, type PostAnalytics, type PostCreateResponse, type PostDeleteResponse, type PostGetResponse, type PostLog, type PostLogDetail, type PostRetryResponse, type PostUpdateResponse, type PostsListResponse, type PreviewQueueData, type PreviewQueueError, type PreviewQueueResponse, type Profile, type ProfileCreateResponse, type ProfileDeleteResponse, type ProfileGetResponse, type ProfileUpdateResponse, type ProfilesListResponse, type QueueDeleteResponse, type QueueNextSlotResponse, type QueuePreviewResponse, type QueueSchedule, type QueueSlot, type QueueSlotsResponse, type QueueUpdateResponse, RateLimitError, type 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 SnapchatPlatformData, type SocialAccount, type TelegramPlatformData, type TestWebhookData, type TestWebhookError, type TestWebhookResponse, type ThreadsPlatformData, type TikTokPlatformData, type TikTokSettings, type TranscriptResponse, type TranscriptSegment, type TwitterPlatformData, type UpdateAccountData, type UpdateAccountError, type UpdateAccountGroupData, type UpdateAccountGroupError, type UpdateAccountGroupResponse, type UpdateAccountResponse, type UpdateFacebookPageData, type UpdateFacebookPageError, type UpdateFacebookPageResponse, 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 WebhookPayloadAccountDisconnected, 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 disconnectionType, type event, type event2, type event3, type graduationStrategy, type mediaType, parseApiError, type parseMode, type platform, type status, type status2, type status3, type status4, type status5, type type, type type2, type type3, type visibility };
|
|
4111
|
+
export { type AccountGetResponse, type AccountWithFollowerStats, type AccountsListResponse, type AnalyticsListResponse, type AnalyticsOverview, type AnalyticsSinglePostResponse, type ApiKey, type BulkUploadPostsData, type BulkUploadPostsError, type BulkUploadPostsResponse, type CaptionResponse, type CheckInstagramHashtagsData, type CheckInstagramHashtagsError, type CheckInstagramHashtagsResponse, type ClientOptions, type CompleteTelegramConnectData, type CompleteTelegramConnectError, type CompleteTelegramConnectResponse, type ConnectBlueskyCredentialsData, type ConnectBlueskyCredentialsError, type ConnectBlueskyCredentialsResponse, type CreateAccountGroupData, type CreateAccountGroupError, type CreateAccountGroupResponse, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyResponse, type CreateInviteTokenData, type CreateInviteTokenError, type CreateInviteTokenResponse, type CreatePostData, type CreatePostError, type CreatePostResponse, type CreateProfileData, type CreateProfileError, type CreateProfileResponse, type CreateQueueSlotData, type CreateQueueSlotError, type CreateQueueSlotResponse, type CreateWebhookSettingsData, type CreateWebhookSettingsError, type CreateWebhookSettingsResponse, type DeleteAccountData, type DeleteAccountError, type DeleteAccountGroupData, type DeleteAccountGroupError, type DeleteAccountGroupResponse, type DeleteAccountResponse, type DeleteApiKeyData, type DeleteApiKeyError, type DeleteApiKeyResponse, type DeletePostData, type DeletePostError, type DeletePostResponse, type DeleteProfileData, type DeleteProfileError, type DeleteProfileResponse, type DeleteQueueSlotData, type DeleteQueueSlotError, type DeleteQueueSlotResponse, type DeleteWebhookSettingsData, type DeleteWebhookSettingsError, type DeleteWebhookSettingsResponse, type DownloadBlueskyMediaData, type DownloadBlueskyMediaError, type DownloadBlueskyMediaResponse, type DownloadFacebookVideoData, type DownloadFacebookVideoError, type DownloadFacebookVideoResponse, type DownloadFormat, type DownloadInstagramMediaData, type DownloadInstagramMediaError, type DownloadInstagramMediaResponse, type DownloadLinkedInVideoData, type DownloadLinkedInVideoError, type DownloadLinkedInVideoResponse, type DownloadResponse, type DownloadTikTokVideoData, type DownloadTikTokVideoError, type DownloadTikTokVideoResponse, type DownloadTwitterMediaData, type DownloadTwitterMediaError, type DownloadTwitterMediaResponse, type DownloadYouTubeVideoData, type DownloadYouTubeVideoError, type DownloadYouTubeVideoResponse, type ErrorResponse, type FacebookPlatformData, type FollowerStatsResponse, type GetAccountHealthData, type GetAccountHealthError, type GetAccountHealthResponse, type GetAllAccountsHealthData, type GetAllAccountsHealthError, type GetAllAccountsHealthResponse, type GetAnalyticsData, type GetAnalyticsError, type GetAnalyticsResponse, type GetConnectUrlData, type GetConnectUrlError, type GetConnectUrlResponse, type GetFollowerStatsData, type GetFollowerStatsError, type GetFollowerStatsResponse, type GetGoogleBusinessReviewsData, type GetGoogleBusinessReviewsError, type GetGoogleBusinessReviewsResponse, 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 InitiateTelegramConnectData, type InitiateTelegramConnectError, type InitiateTelegramConnectResponse, type InstagramPlatformData, Late, LateApiError, 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 ListLinkedInOrganizationsData, type ListLinkedInOrganizationsError, type ListLinkedInOrganizationsResponse, type ListLogsData, type ListLogsError, type ListLogsResponse, type ListPinterestBoardsForSelectionData, type ListPinterestBoardsForSelectionError, type ListPinterestBoardsForSelectionResponse, type ListPostsData, type ListPostsError, type ListPostsResponse, type ListProfilesData, type ListProfilesError, type ListProfilesResponse, type ListQueueSlotsData, type ListQueueSlotsError, type ListQueueSlotsResponse, type ListSnapchatProfilesData, type ListSnapchatProfilesError, type ListSnapchatProfilesResponse, type ListUsersError, type ListUsersResponse, type MediaItem, type MediaUploadResponse, type Pagination, type ParameterLimitParam, type ParameterPageParam, type PinterestPlatformData, type PlatformAnalytics, type PlatformTarget, type Post, type PostAnalytics, type PostCreateResponse, type PostDeleteResponse, type PostGetResponse, type PostLog, type PostLogDetail, type PostRetryResponse, type PostUpdateResponse, type PostsListResponse, type PreviewQueueData, type PreviewQueueError, type PreviewQueueResponse, type Profile, type ProfileCreateResponse, type ProfileDeleteResponse, type ProfileGetResponse, type ProfileUpdateResponse, type ProfilesListResponse, type QueueDeleteResponse, type QueueNextSlotResponse, type QueuePreviewResponse, type QueueSchedule, type QueueSlot, type QueueSlotsResponse, type QueueUpdateResponse, RateLimitError, type 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 SnapchatPlatformData, type SocialAccount, type TelegramPlatformData, type TestWebhookData, type TestWebhookError, type TestWebhookResponse, type ThreadsPlatformData, type TikTokPlatformData, type TikTokSettings, type TranscriptResponse, type TranscriptSegment, type TwitterPlatformData, type UpdateAccountData, type UpdateAccountError, type UpdateAccountGroupData, type UpdateAccountGroupError, type UpdateAccountGroupResponse, type UpdateAccountResponse, type UpdateFacebookPageData, type UpdateFacebookPageError, type UpdateFacebookPageResponse, 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 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 disconnectionType, type event, type event2, type event3, type event4, type graduationStrategy, type mediaType, parseApiError, type parseMode, type platform, type status, type status2, type status3, type status4, type status5, type type, type type2, type type3, type visibility };
|
package/dist/index.js
CHANGED
|
@@ -535,24 +535,6 @@ var createInviteToken = (options) => {
|
|
|
535
535
|
url: "/v1/invite/tokens"
|
|
536
536
|
});
|
|
537
537
|
};
|
|
538
|
-
var listPlatformInvites = (options) => {
|
|
539
|
-
return (options?.client ?? client).get({
|
|
540
|
-
...options,
|
|
541
|
-
url: "/v1/platform-invites"
|
|
542
|
-
});
|
|
543
|
-
};
|
|
544
|
-
var createPlatformInvite = (options) => {
|
|
545
|
-
return (options?.client ?? client).post({
|
|
546
|
-
...options,
|
|
547
|
-
url: "/v1/platform-invites"
|
|
548
|
-
});
|
|
549
|
-
};
|
|
550
|
-
var deletePlatformInvite = (options) => {
|
|
551
|
-
return (options?.client ?? client).delete({
|
|
552
|
-
...options,
|
|
553
|
-
url: "/v1/platform-invites"
|
|
554
|
-
});
|
|
555
|
-
};
|
|
556
538
|
var getConnectUrl = (options) => {
|
|
557
539
|
return (options?.client ?? client).get({
|
|
558
540
|
...options,
|
|
@@ -595,6 +577,12 @@ var getGoogleBusinessReviews = (options) => {
|
|
|
595
577
|
url: "/v1/accounts/{accountId}/gmb-reviews"
|
|
596
578
|
});
|
|
597
579
|
};
|
|
580
|
+
var getPendingOAuthData = (options) => {
|
|
581
|
+
return (options?.client ?? client).get({
|
|
582
|
+
...options,
|
|
583
|
+
url: "/v1/connect/pending-data"
|
|
584
|
+
});
|
|
585
|
+
};
|
|
598
586
|
var listLinkedInOrganizations = (options) => {
|
|
599
587
|
return (options?.client ?? client).get({
|
|
600
588
|
...options,
|
|
@@ -1012,10 +1000,7 @@ var Late = class {
|
|
|
1012
1000
|
* Invites API - Team invitations
|
|
1013
1001
|
*/
|
|
1014
1002
|
this.invites = {
|
|
1015
|
-
createInviteToken
|
|
1016
|
-
listPlatformInvites,
|
|
1017
|
-
createPlatformInvite,
|
|
1018
|
-
deletePlatformInvite
|
|
1003
|
+
createInviteToken
|
|
1019
1004
|
};
|
|
1020
1005
|
/**
|
|
1021
1006
|
* Connect API - OAuth connection flows
|
|
@@ -1023,6 +1008,7 @@ var Late = class {
|
|
|
1023
1008
|
this.connect = {
|
|
1024
1009
|
getConnectUrl,
|
|
1025
1010
|
handleOAuthCallback,
|
|
1011
|
+
getPendingOAuthData,
|
|
1026
1012
|
updateFacebookPage,
|
|
1027
1013
|
getLinkedInOrganizations,
|
|
1028
1014
|
updateLinkedInOrganization,
|
package/dist/index.mjs
CHANGED
|
@@ -506,24 +506,6 @@ var createInviteToken = (options) => {
|
|
|
506
506
|
url: "/v1/invite/tokens"
|
|
507
507
|
});
|
|
508
508
|
};
|
|
509
|
-
var listPlatformInvites = (options) => {
|
|
510
|
-
return (options?.client ?? client).get({
|
|
511
|
-
...options,
|
|
512
|
-
url: "/v1/platform-invites"
|
|
513
|
-
});
|
|
514
|
-
};
|
|
515
|
-
var createPlatformInvite = (options) => {
|
|
516
|
-
return (options?.client ?? client).post({
|
|
517
|
-
...options,
|
|
518
|
-
url: "/v1/platform-invites"
|
|
519
|
-
});
|
|
520
|
-
};
|
|
521
|
-
var deletePlatformInvite = (options) => {
|
|
522
|
-
return (options?.client ?? client).delete({
|
|
523
|
-
...options,
|
|
524
|
-
url: "/v1/platform-invites"
|
|
525
|
-
});
|
|
526
|
-
};
|
|
527
509
|
var getConnectUrl = (options) => {
|
|
528
510
|
return (options?.client ?? client).get({
|
|
529
511
|
...options,
|
|
@@ -566,6 +548,12 @@ var getGoogleBusinessReviews = (options) => {
|
|
|
566
548
|
url: "/v1/accounts/{accountId}/gmb-reviews"
|
|
567
549
|
});
|
|
568
550
|
};
|
|
551
|
+
var getPendingOAuthData = (options) => {
|
|
552
|
+
return (options?.client ?? client).get({
|
|
553
|
+
...options,
|
|
554
|
+
url: "/v1/connect/pending-data"
|
|
555
|
+
});
|
|
556
|
+
};
|
|
569
557
|
var listLinkedInOrganizations = (options) => {
|
|
570
558
|
return (options?.client ?? client).get({
|
|
571
559
|
...options,
|
|
@@ -983,10 +971,7 @@ var Late = class {
|
|
|
983
971
|
* Invites API - Team invitations
|
|
984
972
|
*/
|
|
985
973
|
this.invites = {
|
|
986
|
-
createInviteToken
|
|
987
|
-
listPlatformInvites,
|
|
988
|
-
createPlatformInvite,
|
|
989
|
-
deletePlatformInvite
|
|
974
|
+
createInviteToken
|
|
990
975
|
};
|
|
991
976
|
/**
|
|
992
977
|
* Connect API - OAuth connection flows
|
|
@@ -994,6 +979,7 @@ var Late = class {
|
|
|
994
979
|
this.connect = {
|
|
995
980
|
getConnectUrl,
|
|
996
981
|
handleOAuthCallback,
|
|
982
|
+
getPendingOAuthData,
|
|
997
983
|
updateFacebookPage,
|
|
998
984
|
getLinkedInOrganizations,
|
|
999
985
|
updateLinkedInOrganization,
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -7,7 +7,6 @@ import {
|
|
|
7
7
|
createAccountGroup,
|
|
8
8
|
createApiKey,
|
|
9
9
|
createInviteToken,
|
|
10
|
-
createPlatformInvite,
|
|
11
10
|
createPost,
|
|
12
11
|
createProfile,
|
|
13
12
|
createQueueSlot,
|
|
@@ -15,7 +14,6 @@ import {
|
|
|
15
14
|
deleteAccount,
|
|
16
15
|
deleteAccountGroup,
|
|
17
16
|
deleteApiKey,
|
|
18
|
-
deletePlatformInvite,
|
|
19
17
|
deletePost,
|
|
20
18
|
deleteProfile,
|
|
21
19
|
deleteQueueSlot,
|
|
@@ -40,6 +38,7 @@ import {
|
|
|
40
38
|
getLog,
|
|
41
39
|
getMediaPresignedUrl,
|
|
42
40
|
getNextQueueSlot,
|
|
41
|
+
getPendingOAuthData,
|
|
43
42
|
getPinterestBoards,
|
|
44
43
|
getPost,
|
|
45
44
|
getPostLogs,
|
|
@@ -63,7 +62,6 @@ import {
|
|
|
63
62
|
listLinkedInOrganizations,
|
|
64
63
|
listLogs,
|
|
65
64
|
listPinterestBoardsForSelection,
|
|
66
|
-
listPlatformInvites,
|
|
67
65
|
listPosts,
|
|
68
66
|
listProfiles,
|
|
69
67
|
listQueueSlots,
|
|
@@ -269,9 +267,6 @@ export class Late {
|
|
|
269
267
|
*/
|
|
270
268
|
invites = {
|
|
271
269
|
createInviteToken: createInviteToken,
|
|
272
|
-
listPlatformInvites: listPlatformInvites,
|
|
273
|
-
createPlatformInvite: createPlatformInvite,
|
|
274
|
-
deletePlatformInvite: deletePlatformInvite,
|
|
275
270
|
};
|
|
276
271
|
|
|
277
272
|
/**
|
|
@@ -280,6 +275,7 @@ export class Late {
|
|
|
280
275
|
connect = {
|
|
281
276
|
getConnectUrl: getConnectUrl,
|
|
282
277
|
handleOAuthCallback: handleOAuthCallback,
|
|
278
|
+
getPendingOAuthData: getPendingOAuthData,
|
|
283
279
|
updateFacebookPage: updateFacebookPage,
|
|
284
280
|
getLinkedInOrganizations: getLinkedInOrganizations,
|
|
285
281
|
updateLinkedInOrganization: updateLinkedInOrganization,
|
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
3
|
import { createClient, createConfig, type OptionsLegacyParser, formDataBodySerializer } from '@hey-api/client-fetch';
|
|
4
|
-
import type { DownloadYouTubeVideoData, DownloadYouTubeVideoError, DownloadYouTubeVideoResponse, GetYouTubeTranscriptData, GetYouTubeTranscriptError, GetYouTubeTranscriptResponse, DownloadInstagramMediaData, DownloadInstagramMediaError, DownloadInstagramMediaResponse, CheckInstagramHashtagsData, CheckInstagramHashtagsError, CheckInstagramHashtagsResponse, DownloadTikTokVideoData, DownloadTikTokVideoError, DownloadTikTokVideoResponse, DownloadTwitterMediaData, DownloadTwitterMediaError, DownloadTwitterMediaResponse, DownloadFacebookVideoData, DownloadFacebookVideoError, DownloadFacebookVideoResponse, DownloadLinkedInVideoData, DownloadLinkedInVideoError, DownloadLinkedInVideoResponse, DownloadBlueskyMediaData, DownloadBlueskyMediaError, DownloadBlueskyMediaResponse, GetAnalyticsData, GetAnalyticsError, GetAnalyticsResponse, GetYouTubeDailyViewsData, GetYouTubeDailyViewsError, GetYouTubeDailyViewsResponse, ListAccountGroupsError, ListAccountGroupsResponse, CreateAccountGroupData, CreateAccountGroupError, CreateAccountGroupResponse, UpdateAccountGroupData, UpdateAccountGroupError, UpdateAccountGroupResponse, DeleteAccountGroupData, DeleteAccountGroupError, DeleteAccountGroupResponse, GetMediaPresignedUrlData, GetMediaPresignedUrlError, GetMediaPresignedUrlResponse, SearchRedditData, SearchRedditError, SearchRedditResponse, GetRedditFeedData, GetRedditFeedError, GetRedditFeedResponse, GetUsageStatsError, GetUsageStatsResponse, ListPostsData, ListPostsError, ListPostsResponse, CreatePostData, CreatePostError, CreatePostResponse, GetPostData, GetPostError, GetPostResponse, UpdatePostData, UpdatePostError, UpdatePostResponse, DeletePostData, DeletePostError, DeletePostResponse, BulkUploadPostsData, BulkUploadPostsError, BulkUploadPostsResponse, RetryPostData, RetryPostError, RetryPostResponse, 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,
|
|
4
|
+
import type { DownloadYouTubeVideoData, DownloadYouTubeVideoError, DownloadYouTubeVideoResponse, GetYouTubeTranscriptData, GetYouTubeTranscriptError, GetYouTubeTranscriptResponse, DownloadInstagramMediaData, DownloadInstagramMediaError, DownloadInstagramMediaResponse, CheckInstagramHashtagsData, CheckInstagramHashtagsError, CheckInstagramHashtagsResponse, DownloadTikTokVideoData, DownloadTikTokVideoError, DownloadTikTokVideoResponse, DownloadTwitterMediaData, DownloadTwitterMediaError, DownloadTwitterMediaResponse, DownloadFacebookVideoData, DownloadFacebookVideoError, DownloadFacebookVideoResponse, DownloadLinkedInVideoData, DownloadLinkedInVideoError, DownloadLinkedInVideoResponse, DownloadBlueskyMediaData, DownloadBlueskyMediaError, DownloadBlueskyMediaResponse, GetAnalyticsData, GetAnalyticsError, GetAnalyticsResponse, GetYouTubeDailyViewsData, GetYouTubeDailyViewsError, GetYouTubeDailyViewsResponse, ListAccountGroupsError, ListAccountGroupsResponse, CreateAccountGroupData, CreateAccountGroupError, CreateAccountGroupResponse, UpdateAccountGroupData, UpdateAccountGroupError, UpdateAccountGroupResponse, DeleteAccountGroupData, DeleteAccountGroupError, DeleteAccountGroupResponse, GetMediaPresignedUrlData, GetMediaPresignedUrlError, GetMediaPresignedUrlResponse, SearchRedditData, SearchRedditError, SearchRedditResponse, GetRedditFeedData, GetRedditFeedError, GetRedditFeedResponse, GetUsageStatsError, GetUsageStatsResponse, ListPostsData, ListPostsError, ListPostsResponse, CreatePostData, CreatePostError, CreatePostResponse, GetPostData, GetPostError, GetPostResponse, UpdatePostData, UpdatePostError, UpdatePostResponse, DeletePostData, DeletePostError, DeletePostResponse, BulkUploadPostsData, BulkUploadPostsError, BulkUploadPostsResponse, RetryPostData, RetryPostError, RetryPostResponse, ListUsersError, ListUsersResponse, GetUserData, GetUserError, GetUserResponse, ListProfilesData, ListProfilesError, ListProfilesResponse, CreateProfileData, CreateProfileError, CreateProfileResponse, GetProfileData, GetProfileError, GetProfileResponse, UpdateProfileData, UpdateProfileError, UpdateProfileResponse, DeleteProfileData, DeleteProfileError, DeleteProfileResponse, ListAccountsData, ListAccountsError, ListAccountsResponse, GetFollowerStatsData, GetFollowerStatsError, GetFollowerStatsResponse, UpdateAccountData, UpdateAccountError, UpdateAccountResponse, DeleteAccountData, DeleteAccountError, DeleteAccountResponse, GetAllAccountsHealthData, GetAllAccountsHealthError, GetAllAccountsHealthResponse, GetAccountHealthData, GetAccountHealthError, GetAccountHealthResponse, ListApiKeysError, ListApiKeysResponse, CreateApiKeyData, CreateApiKeyError, CreateApiKeyResponse, DeleteApiKeyData, DeleteApiKeyError, DeleteApiKeyResponse, CreateInviteTokenData, CreateInviteTokenError, CreateInviteTokenResponse, GetConnectUrlData, GetConnectUrlError, GetConnectUrlResponse, HandleOAuthCallbackData, HandleOAuthCallbackError, HandleOAuthCallbackResponse, ListFacebookPagesData, ListFacebookPagesError, ListFacebookPagesResponse, SelectFacebookPageData, SelectFacebookPageError, SelectFacebookPageResponse, ListGoogleBusinessLocationsData, ListGoogleBusinessLocationsError, ListGoogleBusinessLocationsResponse, SelectGoogleBusinessLocationData, SelectGoogleBusinessLocationError, SelectGoogleBusinessLocationResponse, GetGoogleBusinessReviewsData, GetGoogleBusinessReviewsError, GetGoogleBusinessReviewsResponse, GetPendingOAuthDataData, GetPendingOAuthDataError, GetPendingOAuthDataResponse, ListLinkedInOrganizationsData, ListLinkedInOrganizationsError, ListLinkedInOrganizationsResponse, SelectLinkedInOrganizationData, SelectLinkedInOrganizationError, SelectLinkedInOrganizationResponse, ListPinterestBoardsForSelectionData, ListPinterestBoardsForSelectionError, ListPinterestBoardsForSelectionResponse, SelectPinterestBoardData, SelectPinterestBoardError, SelectPinterestBoardResponse, ListSnapchatProfilesData, ListSnapchatProfilesError, ListSnapchatProfilesResponse, SelectSnapchatProfileData, SelectSnapchatProfileError, SelectSnapchatProfileResponse, ConnectBlueskyCredentialsData, ConnectBlueskyCredentialsError, ConnectBlueskyCredentialsResponse, GetTelegramConnectStatusData, GetTelegramConnectStatusError, GetTelegramConnectStatusResponse, InitiateTelegramConnectData, InitiateTelegramConnectError, InitiateTelegramConnectResponse, CompleteTelegramConnectData, CompleteTelegramConnectError, CompleteTelegramConnectResponse, UpdateFacebookPageData, UpdateFacebookPageError, UpdateFacebookPageResponse, GetLinkedInOrganizationsData, GetLinkedInOrganizationsError, GetLinkedInOrganizationsResponse, GetLinkedInAggregateAnalyticsData, GetLinkedInAggregateAnalyticsError, GetLinkedInAggregateAnalyticsResponse, GetLinkedInPostAnalyticsData, GetLinkedInPostAnalyticsError, GetLinkedInPostAnalyticsResponse, UpdateLinkedInOrganizationData, UpdateLinkedInOrganizationError, UpdateLinkedInOrganizationResponse, GetLinkedInMentionsData, GetLinkedInMentionsError, GetLinkedInMentionsResponse, GetPinterestBoardsData, GetPinterestBoardsError, GetPinterestBoardsResponse, UpdatePinterestBoardsData, UpdatePinterestBoardsError, UpdatePinterestBoardsResponse, 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 } from './types.gen';
|
|
5
5
|
|
|
6
6
|
export const client = createClient(createConfig());
|
|
7
7
|
|
|
@@ -621,42 +621,6 @@ export const createInviteToken = <ThrowOnError extends boolean = false>(options:
|
|
|
621
621
|
});
|
|
622
622
|
};
|
|
623
623
|
|
|
624
|
-
/**
|
|
625
|
-
* List platform connection invites
|
|
626
|
-
* Get all platform connection invites you've created
|
|
627
|
-
*/
|
|
628
|
-
export const listPlatformInvites = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListPlatformInvitesData, ThrowOnError>) => {
|
|
629
|
-
return (options?.client ?? client).get<ListPlatformInvitesResponse, ListPlatformInvitesError, ThrowOnError>({
|
|
630
|
-
...options,
|
|
631
|
-
url: '/v1/platform-invites'
|
|
632
|
-
});
|
|
633
|
-
};
|
|
634
|
-
|
|
635
|
-
/**
|
|
636
|
-
* Create a platform connection invite
|
|
637
|
-
* Generate a secure invite link for someone to connect a social account to your profile.
|
|
638
|
-
* Perfect for client onboarding - they connect their account without accessing your Late account.
|
|
639
|
-
* Invites expire after 7 days.
|
|
640
|
-
*
|
|
641
|
-
*/
|
|
642
|
-
export const createPlatformInvite = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreatePlatformInviteData, ThrowOnError>) => {
|
|
643
|
-
return (options?.client ?? client).post<CreatePlatformInviteResponse, CreatePlatformInviteError, ThrowOnError>({
|
|
644
|
-
...options,
|
|
645
|
-
url: '/v1/platform-invites'
|
|
646
|
-
});
|
|
647
|
-
};
|
|
648
|
-
|
|
649
|
-
/**
|
|
650
|
-
* Revoke a platform connection invite
|
|
651
|
-
* Delete an unused platform invite. Only unused invites can be deleted.
|
|
652
|
-
*/
|
|
653
|
-
export const deletePlatformInvite = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeletePlatformInviteData, ThrowOnError>) => {
|
|
654
|
-
return (options?.client ?? client).delete<DeletePlatformInviteResponse, DeletePlatformInviteError, ThrowOnError>({
|
|
655
|
-
...options,
|
|
656
|
-
url: '/v1/platform-invites'
|
|
657
|
-
});
|
|
658
|
-
};
|
|
659
|
-
|
|
660
624
|
/**
|
|
661
625
|
* Start OAuth connection for a platform
|
|
662
626
|
* Initiate an OAuth connection flow for any supported social media platform.
|
|
@@ -695,14 +659,17 @@ export const deletePlatformInvite = <ThrowOnError extends boolean = false>(optio
|
|
|
695
659
|
* 2. Redirect your user to the returned `authUrl`
|
|
696
660
|
* 3. After OAuth, the user is redirected directly to **your** `redirect_url` with:
|
|
697
661
|
* - `profileId` – your Late profile ID
|
|
698
|
-
* - `
|
|
699
|
-
* - `
|
|
700
|
-
* - `organizations` – URL‑encoded JSON array with `id`, `urn`, `name` for each org (logos not included to prevent URL length issues)
|
|
701
|
-
* - `connect_token` – short‑lived connect token (for API auth)
|
|
662
|
+
* - `pendingDataToken` – token to fetch OAuth data via API (see step 4)
|
|
663
|
+
* - `connect_token` – short-lived connect token (for API auth)
|
|
702
664
|
* - `platform=linkedin`
|
|
703
665
|
* - `step=select_organization`
|
|
704
|
-
* 4.
|
|
705
|
-
*
|
|
666
|
+
* 4. Call `GET /v1/connect/pending-data?token=PENDING_DATA_TOKEN` to fetch the OAuth data:
|
|
667
|
+
* - `tempToken` – temporary LinkedIn access token
|
|
668
|
+
* - `userProfile` – JSON object with `id`, `username`, `displayName`, `profilePicture`
|
|
669
|
+
* - `organizations` – JSON array with `id`, `urn`, `name`, `vanityName` for each org
|
|
670
|
+
* - `refreshToken` / `expiresIn` – token metadata
|
|
671
|
+
* This endpoint is one-time use and data expires after 10 minutes.
|
|
672
|
+
* 5. **Optional:** To fetch full organization details (logos, website, industry, description), call `GET /v1/connect/linkedin/organizations?tempToken=X&orgIds=id1,id2,...`
|
|
706
673
|
* 6. Call `POST /v1/connect/linkedin/select-organization` with the `X-Connect-Token` header to save the selection.
|
|
707
674
|
* 7. In this mode, users never see Late's hosted organization selector – only your UI.
|
|
708
675
|
* 8. Note: If the user has no organization admin access, `step=select_organization` will NOT be present,
|
|
@@ -863,6 +830,29 @@ export const getGoogleBusinessReviews = <ThrowOnError extends boolean = false>(o
|
|
|
863
830
|
});
|
|
864
831
|
};
|
|
865
832
|
|
|
833
|
+
/**
|
|
834
|
+
* Fetch pending OAuth selection data (Headless Mode)
|
|
835
|
+
* **Fetch Pending OAuth Data for Headless Mode**
|
|
836
|
+
*
|
|
837
|
+
* In headless mode, platforms like LinkedIn store OAuth selection data (organizations, pages, etc.)
|
|
838
|
+
* in the database instead of passing it via URL parameters. This prevents URI_TOO_LONG errors
|
|
839
|
+
* when users have many organizations/pages to select from.
|
|
840
|
+
*
|
|
841
|
+
* After OAuth redirect, use the `pendingDataToken` from the URL to fetch the stored data.
|
|
842
|
+
*
|
|
843
|
+
* **Important:**
|
|
844
|
+
* - This endpoint is one-time use: data is deleted after being fetched
|
|
845
|
+
* - Data expires automatically after 10 minutes if not fetched
|
|
846
|
+
* - No authentication required, just the token from the redirect URL
|
|
847
|
+
*
|
|
848
|
+
*/
|
|
849
|
+
export const getPendingOAuthData = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetPendingOAuthDataData, ThrowOnError>) => {
|
|
850
|
+
return (options?.client ?? client).get<GetPendingOAuthDataResponse, GetPendingOAuthDataError, ThrowOnError>({
|
|
851
|
+
...options,
|
|
852
|
+
url: '/v1/connect/pending-data'
|
|
853
|
+
});
|
|
854
|
+
};
|
|
855
|
+
|
|
866
856
|
/**
|
|
867
857
|
* Fetch full LinkedIn organization details (Headless Mode)
|
|
868
858
|
* **Fetch Full Organization Details for Custom UI**
|
|
@@ -289,6 +289,14 @@ export type InstagramPlatformData = {
|
|
|
289
289
|
*
|
|
290
290
|
*/
|
|
291
291
|
audioName?: string;
|
|
292
|
+
/**
|
|
293
|
+
* Millisecond offset from the start of the video to use as the Reel thumbnail.
|
|
294
|
+
* Only applies to Reels (video posts). If a custom thumbnail URL (instagramThumbnail
|
|
295
|
+
* in mediaItems) is provided, it takes priority and this offset is ignored.
|
|
296
|
+
* Defaults to 0 (first frame).
|
|
297
|
+
*
|
|
298
|
+
*/
|
|
299
|
+
thumbOffset?: number;
|
|
292
300
|
};
|
|
293
301
|
|
|
294
302
|
/**
|
|
@@ -1268,7 +1276,7 @@ export type Webhook = {
|
|
|
1268
1276
|
/**
|
|
1269
1277
|
* Events subscribed to
|
|
1270
1278
|
*/
|
|
1271
|
-
events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.disconnected')>;
|
|
1279
|
+
events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.connected' | 'account.disconnected')>;
|
|
1272
1280
|
/**
|
|
1273
1281
|
* Whether webhook delivery is enabled
|
|
1274
1282
|
*/
|
|
@@ -1302,7 +1310,7 @@ export type WebhookLog = {
|
|
|
1302
1310
|
* Name of the webhook that was triggered
|
|
1303
1311
|
*/
|
|
1304
1312
|
webhookName?: string;
|
|
1305
|
-
event?: 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.disconnected' | 'webhook.test';
|
|
1313
|
+
event?: 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.connected' | 'account.disconnected' | 'webhook.test';
|
|
1306
1314
|
url?: string;
|
|
1307
1315
|
status?: 'success' | 'failed';
|
|
1308
1316
|
/**
|
|
@@ -1334,10 +1342,33 @@ export type WebhookLog = {
|
|
|
1334
1342
|
createdAt?: string;
|
|
1335
1343
|
};
|
|
1336
1344
|
|
|
1337
|
-
export type event = 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.disconnected' | 'webhook.test';
|
|
1345
|
+
export type event = 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.connected' | 'account.disconnected' | 'webhook.test';
|
|
1338
1346
|
|
|
1339
1347
|
export type status5 = 'success' | 'failed';
|
|
1340
1348
|
|
|
1349
|
+
/**
|
|
1350
|
+
* Webhook payload for account connected events
|
|
1351
|
+
*/
|
|
1352
|
+
export type WebhookPayloadAccountConnected = {
|
|
1353
|
+
event?: 'account.connected';
|
|
1354
|
+
account?: {
|
|
1355
|
+
/**
|
|
1356
|
+
* The account's unique identifier (same as used in /v1/accounts/{accountId})
|
|
1357
|
+
*/
|
|
1358
|
+
accountId?: string;
|
|
1359
|
+
/**
|
|
1360
|
+
* The profile's unique identifier this account belongs to
|
|
1361
|
+
*/
|
|
1362
|
+
profileId?: string;
|
|
1363
|
+
platform?: string;
|
|
1364
|
+
username?: string;
|
|
1365
|
+
displayName?: string;
|
|
1366
|
+
};
|
|
1367
|
+
timestamp?: string;
|
|
1368
|
+
};
|
|
1369
|
+
|
|
1370
|
+
export type event2 = 'account.connected';
|
|
1371
|
+
|
|
1341
1372
|
/**
|
|
1342
1373
|
* Webhook payload for account disconnected events
|
|
1343
1374
|
*/
|
|
@@ -1367,7 +1398,7 @@ export type WebhookPayloadAccountDisconnected = {
|
|
|
1367
1398
|
timestamp?: string;
|
|
1368
1399
|
};
|
|
1369
1400
|
|
|
1370
|
-
export type
|
|
1401
|
+
export type event3 = 'account.disconnected';
|
|
1371
1402
|
|
|
1372
1403
|
/**
|
|
1373
1404
|
* Whether the disconnection was intentional (user action) or unintentional (token expired/revoked)
|
|
@@ -1395,7 +1426,7 @@ export type WebhookPayloadPost = {
|
|
|
1395
1426
|
timestamp?: string;
|
|
1396
1427
|
};
|
|
1397
1428
|
|
|
1398
|
-
export type
|
|
1429
|
+
export type event4 = 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial';
|
|
1399
1430
|
|
|
1400
1431
|
export type YouTubeDailyViewsResponse = {
|
|
1401
1432
|
success?: boolean;
|
|
@@ -2537,96 +2568,6 @@ export type CreateInviteTokenError = (unknown | {
|
|
|
2537
2568
|
error?: string;
|
|
2538
2569
|
});
|
|
2539
2570
|
|
|
2540
|
-
export type ListPlatformInvitesData = {
|
|
2541
|
-
query?: {
|
|
2542
|
-
/**
|
|
2543
|
-
* Optional. Filter invites by profile ID
|
|
2544
|
-
*/
|
|
2545
|
-
profileId?: string;
|
|
2546
|
-
};
|
|
2547
|
-
};
|
|
2548
|
-
|
|
2549
|
-
export type ListPlatformInvitesResponse = ({
|
|
2550
|
-
invites?: Array<{
|
|
2551
|
-
_id?: string;
|
|
2552
|
-
token?: string;
|
|
2553
|
-
userId?: string;
|
|
2554
|
-
/**
|
|
2555
|
-
* Populated profile object (not a string ID)
|
|
2556
|
-
*/
|
|
2557
|
-
profileId?: {
|
|
2558
|
-
_id?: string;
|
|
2559
|
-
name?: string;
|
|
2560
|
-
};
|
|
2561
|
-
platform?: string;
|
|
2562
|
-
inviterName?: string;
|
|
2563
|
-
inviterEmail?: string;
|
|
2564
|
-
expiresAt?: string;
|
|
2565
|
-
isUsed?: boolean;
|
|
2566
|
-
createdAt?: string;
|
|
2567
|
-
}>;
|
|
2568
|
-
});
|
|
2569
|
-
|
|
2570
|
-
export type ListPlatformInvitesError = ({
|
|
2571
|
-
error?: string;
|
|
2572
|
-
});
|
|
2573
|
-
|
|
2574
|
-
export type CreatePlatformInviteData = {
|
|
2575
|
-
body: {
|
|
2576
|
-
/**
|
|
2577
|
-
* Profile ID to connect the account to
|
|
2578
|
-
*/
|
|
2579
|
-
profileId: string;
|
|
2580
|
-
/**
|
|
2581
|
-
* Platform to connect
|
|
2582
|
-
*/
|
|
2583
|
-
platform: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'threads' | 'tiktok' | 'youtube' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
|
|
2584
|
-
};
|
|
2585
|
-
};
|
|
2586
|
-
|
|
2587
|
-
export type CreatePlatformInviteResponse = ({
|
|
2588
|
-
invite?: {
|
|
2589
|
-
_id?: string;
|
|
2590
|
-
token?: string;
|
|
2591
|
-
userId?: string;
|
|
2592
|
-
/**
|
|
2593
|
-
* Populated profile object (not a string ID)
|
|
2594
|
-
*/
|
|
2595
|
-
profileId?: {
|
|
2596
|
-
_id?: string;
|
|
2597
|
-
name?: string;
|
|
2598
|
-
};
|
|
2599
|
-
platform?: string;
|
|
2600
|
-
inviterName?: string;
|
|
2601
|
-
inviterEmail?: string;
|
|
2602
|
-
expiresAt?: string;
|
|
2603
|
-
isUsed?: boolean;
|
|
2604
|
-
createdAt?: string;
|
|
2605
|
-
inviteUrl?: string;
|
|
2606
|
-
};
|
|
2607
|
-
});
|
|
2608
|
-
|
|
2609
|
-
export type CreatePlatformInviteError = (unknown | {
|
|
2610
|
-
error?: string;
|
|
2611
|
-
});
|
|
2612
|
-
|
|
2613
|
-
export type DeletePlatformInviteData = {
|
|
2614
|
-
query: {
|
|
2615
|
-
/**
|
|
2616
|
-
* Invite ID to revoke
|
|
2617
|
-
*/
|
|
2618
|
-
id: string;
|
|
2619
|
-
};
|
|
2620
|
-
};
|
|
2621
|
-
|
|
2622
|
-
export type DeletePlatformInviteResponse = ({
|
|
2623
|
-
message?: string;
|
|
2624
|
-
});
|
|
2625
|
-
|
|
2626
|
-
export type DeletePlatformInviteError = (unknown | {
|
|
2627
|
-
error?: string;
|
|
2628
|
-
});
|
|
2629
|
-
|
|
2630
2571
|
export type GetConnectUrlData = {
|
|
2631
2572
|
path: {
|
|
2632
2573
|
/**
|
|
@@ -2656,8 +2597,8 @@ export type GetConnectUrlData = {
|
|
|
2656
2597
|
*
|
|
2657
2598
|
* After OAuth, the user is redirected directly to your `redirect_url` with OAuth data:
|
|
2658
2599
|
* - **Facebook:** `?profileId=X&tempToken=Y&userProfile=Z&connect_token=CT&platform=facebook&step=select_page`
|
|
2659
|
-
* - **LinkedIn:** `?profileId=X&
|
|
2660
|
-
*
|
|
2600
|
+
* - **LinkedIn:** `?profileId=X&pendingDataToken=TOKEN&connect_token=CT&platform=linkedin&step=select_organization`
|
|
2601
|
+
* Use `GET /v1/connect/pending-data?token=TOKEN` to fetch tempToken, userProfile, organizations, refreshToken.
|
|
2661
2602
|
* - **Pinterest:** `?profileId=X&tempToken=Y&userProfile=Z&connect_token=CT&platform=pinterest&step=select_board`
|
|
2662
2603
|
* - **Google Business:** `?profileId=X&tempToken=Y&userProfile=Z&connect_token=CT&platform=googlebusiness&step=select_location`
|
|
2663
2604
|
* - **Snapchat:** `?profileId=X&tempToken=Y&userProfile=Z&publicProfiles=PROFILES&connect_token=CT&platform=snapchat&step=select_public_profile`
|
|
@@ -2989,6 +2930,59 @@ export type GetGoogleBusinessReviewsError = (ErrorResponse | {
|
|
|
2989
2930
|
error?: string;
|
|
2990
2931
|
});
|
|
2991
2932
|
|
|
2933
|
+
export type GetPendingOAuthDataData = {
|
|
2934
|
+
query: {
|
|
2935
|
+
/**
|
|
2936
|
+
* The pending data token from the OAuth redirect URL (`pendingDataToken` parameter)
|
|
2937
|
+
*/
|
|
2938
|
+
token: string;
|
|
2939
|
+
};
|
|
2940
|
+
};
|
|
2941
|
+
|
|
2942
|
+
export type GetPendingOAuthDataResponse = ({
|
|
2943
|
+
/**
|
|
2944
|
+
* The platform (e.g., "linkedin")
|
|
2945
|
+
*/
|
|
2946
|
+
platform?: string;
|
|
2947
|
+
/**
|
|
2948
|
+
* The Late profile ID
|
|
2949
|
+
*/
|
|
2950
|
+
profileId?: string;
|
|
2951
|
+
/**
|
|
2952
|
+
* Temporary access token for the platform
|
|
2953
|
+
*/
|
|
2954
|
+
tempToken?: string;
|
|
2955
|
+
/**
|
|
2956
|
+
* Refresh token (if available)
|
|
2957
|
+
*/
|
|
2958
|
+
refreshToken?: string;
|
|
2959
|
+
/**
|
|
2960
|
+
* Token expiry in seconds
|
|
2961
|
+
*/
|
|
2962
|
+
expiresIn?: number;
|
|
2963
|
+
/**
|
|
2964
|
+
* User profile data (id, username, displayName, profilePicture)
|
|
2965
|
+
*/
|
|
2966
|
+
userProfile?: {
|
|
2967
|
+
[key: string]: unknown;
|
|
2968
|
+
};
|
|
2969
|
+
/**
|
|
2970
|
+
* Type of selection data
|
|
2971
|
+
*/
|
|
2972
|
+
selectionType?: 'organizations' | 'pages' | 'boards' | 'locations' | 'profiles';
|
|
2973
|
+
/**
|
|
2974
|
+
* LinkedIn organizations (when selectionType is "organizations")
|
|
2975
|
+
*/
|
|
2976
|
+
organizations?: Array<{
|
|
2977
|
+
id?: string;
|
|
2978
|
+
urn?: string;
|
|
2979
|
+
name?: string;
|
|
2980
|
+
vanityName?: string;
|
|
2981
|
+
}>;
|
|
2982
|
+
});
|
|
2983
|
+
|
|
2984
|
+
export type GetPendingOAuthDataError = (ErrorResponse);
|
|
2985
|
+
|
|
2992
2986
|
export type ListLinkedInOrganizationsData = {
|
|
2993
2987
|
query: {
|
|
2994
2988
|
/**
|
|
@@ -3932,7 +3926,7 @@ export type CreateWebhookSettingsData = {
|
|
|
3932
3926
|
/**
|
|
3933
3927
|
* Events to subscribe to
|
|
3934
3928
|
*/
|
|
3935
|
-
events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.disconnected')>;
|
|
3929
|
+
events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.connected' | 'account.disconnected')>;
|
|
3936
3930
|
/**
|
|
3937
3931
|
* Enable or disable webhook delivery
|
|
3938
3932
|
*/
|
|
@@ -3976,7 +3970,7 @@ export type UpdateWebhookSettingsData = {
|
|
|
3976
3970
|
/**
|
|
3977
3971
|
* Events to subscribe to
|
|
3978
3972
|
*/
|
|
3979
|
-
events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.disconnected')>;
|
|
3973
|
+
events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.connected' | 'account.disconnected')>;
|
|
3980
3974
|
/**
|
|
3981
3975
|
* Enable or disable webhook delivery
|
|
3982
3976
|
*/
|
|
@@ -4042,7 +4036,7 @@ export type GetWebhookLogsData = {
|
|
|
4042
4036
|
/**
|
|
4043
4037
|
* Filter by event type
|
|
4044
4038
|
*/
|
|
4045
|
-
event?: 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.disconnected' | 'webhook.test';
|
|
4039
|
+
event?: 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'account.connected' | 'account.disconnected' | 'webhook.test';
|
|
4046
4040
|
/**
|
|
4047
4041
|
* Maximum number of logs to return (max 100)
|
|
4048
4042
|
*/
|