@getlatedev/node 0.1.0 → 0.1.2

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.
@@ -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 { GetV1ToolsYoutubeDownloadData, GetV1ToolsYoutubeDownloadError, GetV1ToolsYoutubeDownloadResponse, GetV1ToolsYoutubeTranscriptData, GetV1ToolsYoutubeTranscriptError, GetV1ToolsYoutubeTranscriptResponse, GetV1ToolsInstagramDownloadData, GetV1ToolsInstagramDownloadError, GetV1ToolsInstagramDownloadResponse, PostV1ToolsInstagramHashtagCheckerData, PostV1ToolsInstagramHashtagCheckerError, PostV1ToolsInstagramHashtagCheckerResponse, GetV1ToolsTiktokDownloadData, GetV1ToolsTiktokDownloadError, GetV1ToolsTiktokDownloadResponse, GetV1ToolsTwitterDownloadData, GetV1ToolsTwitterDownloadError, GetV1ToolsTwitterDownloadResponse, GetV1ToolsFacebookDownloadData, GetV1ToolsFacebookDownloadError, GetV1ToolsFacebookDownloadResponse, GetV1ToolsLinkedinDownloadData, GetV1ToolsLinkedinDownloadError, GetV1ToolsLinkedinDownloadResponse, GetV1ToolsBlueskyDownloadData, GetV1ToolsBlueskyDownloadError, GetV1ToolsBlueskyDownloadResponse, GetV1AnalyticsData, GetV1AnalyticsError, GetV1AnalyticsResponse, GetV1AnalyticsYoutubeDailyViewsData, GetV1AnalyticsYoutubeDailyViewsError, GetV1AnalyticsYoutubeDailyViewsResponse, GetV1AccountGroupsError, GetV1AccountGroupsResponse, PostV1AccountGroupsData, PostV1AccountGroupsError, PostV1AccountGroupsResponse, PutV1AccountGroupsByGroupIdData, PutV1AccountGroupsByGroupIdError, PutV1AccountGroupsByGroupIdResponse, DeleteV1AccountGroupsByGroupIdData, DeleteV1AccountGroupsByGroupIdError, DeleteV1AccountGroupsByGroupIdResponse, PostV1MediaPresignData, PostV1MediaPresignError, PostV1MediaPresignResponse, GetV1RedditSearchData, GetV1RedditSearchError, GetV1RedditSearchResponse, GetV1RedditFeedData, GetV1RedditFeedError, GetV1RedditFeedResponse, GetV1UsageStatsError, GetV1UsageStatsResponse, GetV1PostsData, GetV1PostsError, GetV1PostsResponse, PostV1PostsData, PostV1PostsError, PostV1PostsResponse, GetV1PostsByPostIdData, GetV1PostsByPostIdError, GetV1PostsByPostIdResponse, PutV1PostsByPostIdData, PutV1PostsByPostIdError, PutV1PostsByPostIdResponse, DeleteV1PostsByPostIdData, DeleteV1PostsByPostIdError, DeleteV1PostsByPostIdResponse, PostV1PostsBulkUploadData, PostV1PostsBulkUploadError, PostV1PostsBulkUploadResponse, PostV1PostsByPostIdRetryData, PostV1PostsByPostIdRetryError, PostV1PostsByPostIdRetryResponse, GetV1UsersError, GetV1UsersResponse, GetV1UsersByUserIdData, GetV1UsersByUserIdError, GetV1UsersByUserIdResponse, GetV1ProfilesData, GetV1ProfilesError, GetV1ProfilesResponse, PostV1ProfilesData, PostV1ProfilesError, PostV1ProfilesResponse, GetV1ProfilesByProfileIdData, GetV1ProfilesByProfileIdError, GetV1ProfilesByProfileIdResponse, PutV1ProfilesByProfileIdData, PutV1ProfilesByProfileIdError, PutV1ProfilesByProfileIdResponse, DeleteV1ProfilesByProfileIdData, DeleteV1ProfilesByProfileIdError, DeleteV1ProfilesByProfileIdResponse, GetV1AccountsData, GetV1AccountsError, GetV1AccountsResponse, GetV1AccountsFollowerStatsData, GetV1AccountsFollowerStatsError, GetV1AccountsFollowerStatsResponse, PutV1AccountsByAccountIdData, PutV1AccountsByAccountIdError, PutV1AccountsByAccountIdResponse, DeleteV1AccountsByAccountIdData, DeleteV1AccountsByAccountIdError, DeleteV1AccountsByAccountIdResponse, GetV1AccountsHealthData, GetV1AccountsHealthError, GetV1AccountsHealthResponse, GetV1AccountsByAccountIdHealthData, GetV1AccountsByAccountIdHealthError, GetV1AccountsByAccountIdHealthResponse, GetV1ApiKeysError, GetV1ApiKeysResponse, PostV1ApiKeysData, PostV1ApiKeysError, PostV1ApiKeysResponse, DeleteV1ApiKeysByKeyIdData, DeleteV1ApiKeysByKeyIdError, DeleteV1ApiKeysByKeyIdResponse, PostV1InviteTokensData, PostV1InviteTokensError, PostV1InviteTokensResponse, GetV1PlatformInvitesData, GetV1PlatformInvitesError, GetV1PlatformInvitesResponse, PostV1PlatformInvitesData, PostV1PlatformInvitesError, PostV1PlatformInvitesResponse, DeleteV1PlatformInvitesData, DeleteV1PlatformInvitesError, DeleteV1PlatformInvitesResponse, GetV1ConnectByPlatformData, GetV1ConnectByPlatformError, GetV1ConnectByPlatformResponse, PostV1ConnectByPlatformData, PostV1ConnectByPlatformError, PostV1ConnectByPlatformResponse, GetV1ConnectFacebookSelectPageData, GetV1ConnectFacebookSelectPageError, GetV1ConnectFacebookSelectPageResponse, PostV1ConnectFacebookSelectPageData, PostV1ConnectFacebookSelectPageError, PostV1ConnectFacebookSelectPageResponse, GetV1ConnectGooglebusinessLocationsData, GetV1ConnectGooglebusinessLocationsError, GetV1ConnectGooglebusinessLocationsResponse, PostV1ConnectGooglebusinessSelectLocationData, PostV1ConnectGooglebusinessSelectLocationError, PostV1ConnectGooglebusinessSelectLocationResponse, GetV1AccountsByAccountIdGmbReviewsData, GetV1AccountsByAccountIdGmbReviewsError, GetV1AccountsByAccountIdGmbReviewsResponse, GetV1ConnectLinkedinOrganizationsData, GetV1ConnectLinkedinOrganizationsError, GetV1ConnectLinkedinOrganizationsResponse, PostV1ConnectLinkedinSelectOrganizationData, PostV1ConnectLinkedinSelectOrganizationError, PostV1ConnectLinkedinSelectOrganizationResponse, GetV1ConnectPinterestSelectBoardData, GetV1ConnectPinterestSelectBoardError, GetV1ConnectPinterestSelectBoardResponse, PostV1ConnectPinterestSelectBoardData, PostV1ConnectPinterestSelectBoardError, PostV1ConnectPinterestSelectBoardResponse, GetV1ConnectSnapchatSelectProfileData, GetV1ConnectSnapchatSelectProfileError, GetV1ConnectSnapchatSelectProfileResponse, PostV1ConnectSnapchatSelectProfileData, PostV1ConnectSnapchatSelectProfileError, PostV1ConnectSnapchatSelectProfileResponse, PostV1ConnectBlueskyCredentialsData, PostV1ConnectBlueskyCredentialsError, PostV1ConnectBlueskyCredentialsResponse, GetV1ConnectTelegramData, GetV1ConnectTelegramError, GetV1ConnectTelegramResponse, PostV1ConnectTelegramData, PostV1ConnectTelegramError, PostV1ConnectTelegramResponse, PatchV1ConnectTelegramData, PatchV1ConnectTelegramError, PatchV1ConnectTelegramResponse, PutV1AccountsByAccountIdFacebookPageData, PutV1AccountsByAccountIdFacebookPageError, PutV1AccountsByAccountIdFacebookPageResponse, GetV1AccountsByAccountIdLinkedinOrganizationsData, GetV1AccountsByAccountIdLinkedinOrganizationsError, GetV1AccountsByAccountIdLinkedinOrganizationsResponse, GetV1AccountsByAccountIdLinkedinAggregateAnalyticsData, GetV1AccountsByAccountIdLinkedinAggregateAnalyticsError, GetV1AccountsByAccountIdLinkedinAggregateAnalyticsResponse, GetV1AccountsByAccountIdLinkedinPostAnalyticsData, GetV1AccountsByAccountIdLinkedinPostAnalyticsError, GetV1AccountsByAccountIdLinkedinPostAnalyticsResponse, PutV1AccountsByAccountIdLinkedinOrganizationData, PutV1AccountsByAccountIdLinkedinOrganizationError, PutV1AccountsByAccountIdLinkedinOrganizationResponse, GetV1AccountsByAccountIdLinkedinMentionsData, GetV1AccountsByAccountIdLinkedinMentionsError, GetV1AccountsByAccountIdLinkedinMentionsResponse, GetV1AccountsByAccountIdPinterestBoardsData, GetV1AccountsByAccountIdPinterestBoardsError, GetV1AccountsByAccountIdPinterestBoardsResponse, PutV1AccountsByAccountIdPinterestBoardsData, PutV1AccountsByAccountIdPinterestBoardsError, PutV1AccountsByAccountIdPinterestBoardsResponse, GetV1AccountsByAccountIdRedditSubredditsData, GetV1AccountsByAccountIdRedditSubredditsError, GetV1AccountsByAccountIdRedditSubredditsResponse, PutV1AccountsByAccountIdRedditSubredditsData, PutV1AccountsByAccountIdRedditSubredditsError, PutV1AccountsByAccountIdRedditSubredditsResponse, GetV1QueueSlotsData, GetV1QueueSlotsError, GetV1QueueSlotsResponse, PostV1QueueSlotsData, PostV1QueueSlotsError, PostV1QueueSlotsResponse, PutV1QueueSlotsData, PutV1QueueSlotsError, PutV1QueueSlotsResponse, DeleteV1QueueSlotsData, DeleteV1QueueSlotsError, DeleteV1QueueSlotsResponse, GetV1QueuePreviewData, GetV1QueuePreviewError, GetV1QueuePreviewResponse, GetV1QueueNextSlotData, GetV1QueueNextSlotError, GetV1QueueNextSlotResponse, GetV1WebhooksSettingsError, GetV1WebhooksSettingsResponse, PostV1WebhooksSettingsData, PostV1WebhooksSettingsError, PostV1WebhooksSettingsResponse, PutV1WebhooksSettingsData, PutV1WebhooksSettingsError, PutV1WebhooksSettingsResponse, DeleteV1WebhooksSettingsData, DeleteV1WebhooksSettingsError, DeleteV1WebhooksSettingsResponse, PostV1WebhooksTestData, PostV1WebhooksTestError, PostV1WebhooksTestResponse, GetV1WebhooksLogsData, GetV1WebhooksLogsError, GetV1WebhooksLogsResponse, GetV1LogsData, GetV1LogsError, GetV1LogsResponse, GetV1LogsByLogIdData, GetV1LogsByLogIdError, GetV1LogsByLogIdResponse, GetV1PostsByPostIdLogsData, GetV1PostsByPostIdLogsError, GetV1PostsByPostIdLogsResponse } from './types.gen';
4
+ import type { DownloadYouTubeVideoData, DownloadYouTubeVideoError, DownloadYouTubeVideoResponse, GetYouTubeTranscriptData, GetYouTubeTranscriptError, GetYouTubeTranscriptResponse, DownloadInstagramMediaData, DownloadInstagramMediaError, DownloadInstagramMediaResponse, CheckInstagramHashtagsData, CheckInstagramHashtagsError, CheckInstagramHashtagsResponse, DownloadTikTokVideoData, DownloadTikTokVideoError, DownloadTikTokVideoResponse, DownloadTwitterMediaData, DownloadTwitterMediaError, DownloadTwitterMediaResponse, DownloadFacebookVideoData, DownloadFacebookVideoError, DownloadFacebookVideoResponse, DownloadLinkedInVideoData, DownloadLinkedInVideoError, DownloadLinkedInVideoResponse, DownloadBlueskyMediaData, DownloadBlueskyMediaError, DownloadBlueskyMediaResponse, GetAnalyticsData, GetAnalyticsError, GetAnalyticsResponse, GetYouTubeDailyViewsData, GetYouTubeDailyViewsError, GetYouTubeDailyViewsResponse, ListAccountGroupsError, ListAccountGroupsResponse, CreateAccountGroupData, CreateAccountGroupError, CreateAccountGroupResponse, UpdateAccountGroupData, UpdateAccountGroupError, UpdateAccountGroupResponse, DeleteAccountGroupData, DeleteAccountGroupError, DeleteAccountGroupResponse, GetMediaPresignedUrlData, GetMediaPresignedUrlError, GetMediaPresignedUrlResponse, SearchRedditData, SearchRedditError, SearchRedditResponse, GetRedditFeedData, GetRedditFeedError, GetRedditFeedResponse, GetUsageStatsError, GetUsageStatsResponse, ListPostsData, ListPostsError, ListPostsResponse, CreatePostData, CreatePostError, CreatePostResponse, GetPostData, GetPostError, GetPostResponse, UpdatePostData, UpdatePostError, UpdatePostResponse, DeletePostData, DeletePostError, DeletePostResponse, BulkUploadPostsData, BulkUploadPostsError, BulkUploadPostsResponse, RetryPostData, RetryPostError, RetryPostResponse, ListUsersError, ListUsersResponse, GetUserData, GetUserError, GetUserResponse, ListProfilesData, ListProfilesError, ListProfilesResponse, CreateProfileData, CreateProfileError, CreateProfileResponse, GetProfileData, GetProfileError, GetProfileResponse, UpdateProfileData, UpdateProfileError, UpdateProfileResponse, DeleteProfileData, DeleteProfileError, DeleteProfileResponse, ListAccountsData, ListAccountsError, ListAccountsResponse, GetFollowerStatsData, GetFollowerStatsError, GetFollowerStatsResponse, UpdateAccountData, UpdateAccountError, UpdateAccountResponse, DeleteAccountData, DeleteAccountError, DeleteAccountResponse, GetAllAccountsHealthData, GetAllAccountsHealthError, GetAllAccountsHealthResponse, GetAccountHealthData, GetAccountHealthError, GetAccountHealthResponse, ListApiKeysError, ListApiKeysResponse, CreateApiKeyData, CreateApiKeyError, CreateApiKeyResponse, DeleteApiKeyData, DeleteApiKeyError, DeleteApiKeyResponse, CreateInviteTokenData, CreateInviteTokenError, CreateInviteTokenResponse, GetConnectUrlData, GetConnectUrlError, GetConnectUrlResponse, HandleOAuthCallbackData, HandleOAuthCallbackError, HandleOAuthCallbackResponse, ListFacebookPagesData, ListFacebookPagesError, ListFacebookPagesResponse, SelectFacebookPageData, SelectFacebookPageError, SelectFacebookPageResponse, ListGoogleBusinessLocationsData, ListGoogleBusinessLocationsError, ListGoogleBusinessLocationsResponse, SelectGoogleBusinessLocationData, SelectGoogleBusinessLocationError, SelectGoogleBusinessLocationResponse, GetGoogleBusinessReviewsData, GetGoogleBusinessReviewsError, GetGoogleBusinessReviewsResponse, 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
 
@@ -12,8 +12,8 @@ export const client = createClient(createConfig());
12
12
  * **Rate Limits:** Build (50/day), Accelerate (500/day), Unlimited (unlimited)
13
13
  *
14
14
  */
15
- export const getV1ToolsYoutubeDownload = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1ToolsYoutubeDownloadData, ThrowOnError>) => {
16
- return (options?.client ?? client).get<GetV1ToolsYoutubeDownloadResponse, GetV1ToolsYoutubeDownloadError, ThrowOnError>({
15
+ export const downloadYouTubeVideo = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DownloadYouTubeVideoData, ThrowOnError>) => {
16
+ return (options?.client ?? client).get<DownloadYouTubeVideoResponse, DownloadYouTubeVideoError, ThrowOnError>({
17
17
  ...options,
18
18
  url: '/v1/tools/youtube/download'
19
19
  });
@@ -26,8 +26,8 @@ export const getV1ToolsYoutubeDownload = <ThrowOnError extends boolean = false>(
26
26
  * **Rate Limits:** Build (50/day), Accelerate (500/day), Unlimited (unlimited)
27
27
  *
28
28
  */
29
- export const getV1ToolsYoutubeTranscript = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1ToolsYoutubeTranscriptData, ThrowOnError>) => {
30
- return (options?.client ?? client).get<GetV1ToolsYoutubeTranscriptResponse, GetV1ToolsYoutubeTranscriptError, ThrowOnError>({
29
+ export const getYouTubeTranscript = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetYouTubeTranscriptData, ThrowOnError>) => {
30
+ return (options?.client ?? client).get<GetYouTubeTranscriptResponse, GetYouTubeTranscriptError, ThrowOnError>({
31
31
  ...options,
32
32
  url: '/v1/tools/youtube/transcript'
33
33
  });
@@ -40,8 +40,8 @@ export const getV1ToolsYoutubeTranscript = <ThrowOnError extends boolean = false
40
40
  * **Rate Limits:** Build (50/day), Accelerate (500/day), Unlimited (unlimited)
41
41
  *
42
42
  */
43
- export const getV1ToolsInstagramDownload = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1ToolsInstagramDownloadData, ThrowOnError>) => {
44
- return (options?.client ?? client).get<GetV1ToolsInstagramDownloadResponse, GetV1ToolsInstagramDownloadError, ThrowOnError>({
43
+ export const downloadInstagramMedia = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DownloadInstagramMediaData, ThrowOnError>) => {
44
+ return (options?.client ?? client).get<DownloadInstagramMediaResponse, DownloadInstagramMediaError, ThrowOnError>({
45
45
  ...options,
46
46
  url: '/v1/tools/instagram/download'
47
47
  });
@@ -54,8 +54,8 @@ export const getV1ToolsInstagramDownload = <ThrowOnError extends boolean = false
54
54
  * **Rate Limits:** Build (50/day), Accelerate (500/day), Unlimited (unlimited)
55
55
  *
56
56
  */
57
- export const postV1ToolsInstagramHashtagChecker = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1ToolsInstagramHashtagCheckerData, ThrowOnError>) => {
58
- return (options?.client ?? client).post<PostV1ToolsInstagramHashtagCheckerResponse, PostV1ToolsInstagramHashtagCheckerError, ThrowOnError>({
57
+ export const checkInstagramHashtags = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CheckInstagramHashtagsData, ThrowOnError>) => {
58
+ return (options?.client ?? client).post<CheckInstagramHashtagsResponse, CheckInstagramHashtagsError, ThrowOnError>({
59
59
  ...options,
60
60
  url: '/v1/tools/instagram/hashtag-checker'
61
61
  });
@@ -68,8 +68,8 @@ export const postV1ToolsInstagramHashtagChecker = <ThrowOnError extends boolean
68
68
  * **Rate Limits:** Build (50/day), Accelerate (500/day), Unlimited (unlimited)
69
69
  *
70
70
  */
71
- export const getV1ToolsTiktokDownload = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1ToolsTiktokDownloadData, ThrowOnError>) => {
72
- return (options?.client ?? client).get<GetV1ToolsTiktokDownloadResponse, GetV1ToolsTiktokDownloadError, ThrowOnError>({
71
+ export const downloadTikTokVideo = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DownloadTikTokVideoData, ThrowOnError>) => {
72
+ return (options?.client ?? client).get<DownloadTikTokVideoResponse, DownloadTikTokVideoError, ThrowOnError>({
73
73
  ...options,
74
74
  url: '/v1/tools/tiktok/download'
75
75
  });
@@ -82,8 +82,8 @@ export const getV1ToolsTiktokDownload = <ThrowOnError extends boolean = false>(o
82
82
  * **Rate Limits:** Build (50/day), Accelerate (500/day), Unlimited (unlimited)
83
83
  *
84
84
  */
85
- export const getV1ToolsTwitterDownload = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1ToolsTwitterDownloadData, ThrowOnError>) => {
86
- return (options?.client ?? client).get<GetV1ToolsTwitterDownloadResponse, GetV1ToolsTwitterDownloadError, ThrowOnError>({
85
+ export const downloadTwitterMedia = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DownloadTwitterMediaData, ThrowOnError>) => {
86
+ return (options?.client ?? client).get<DownloadTwitterMediaResponse, DownloadTwitterMediaError, ThrowOnError>({
87
87
  ...options,
88
88
  url: '/v1/tools/twitter/download'
89
89
  });
@@ -96,8 +96,8 @@ export const getV1ToolsTwitterDownload = <ThrowOnError extends boolean = false>(
96
96
  * **Rate Limits:** Build (50/day), Accelerate (500/day), Unlimited (unlimited)
97
97
  *
98
98
  */
99
- export const getV1ToolsFacebookDownload = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1ToolsFacebookDownloadData, ThrowOnError>) => {
100
- return (options?.client ?? client).get<GetV1ToolsFacebookDownloadResponse, GetV1ToolsFacebookDownloadError, ThrowOnError>({
99
+ export const downloadFacebookVideo = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DownloadFacebookVideoData, ThrowOnError>) => {
100
+ return (options?.client ?? client).get<DownloadFacebookVideoResponse, DownloadFacebookVideoError, ThrowOnError>({
101
101
  ...options,
102
102
  url: '/v1/tools/facebook/download'
103
103
  });
@@ -110,8 +110,8 @@ export const getV1ToolsFacebookDownload = <ThrowOnError extends boolean = false>
110
110
  * **Rate Limits:** Build (50/day), Accelerate (500/day), Unlimited (unlimited)
111
111
  *
112
112
  */
113
- export const getV1ToolsLinkedinDownload = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1ToolsLinkedinDownloadData, ThrowOnError>) => {
114
- return (options?.client ?? client).get<GetV1ToolsLinkedinDownloadResponse, GetV1ToolsLinkedinDownloadError, ThrowOnError>({
113
+ export const downloadLinkedInVideo = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DownloadLinkedInVideoData, ThrowOnError>) => {
114
+ return (options?.client ?? client).get<DownloadLinkedInVideoResponse, DownloadLinkedInVideoError, ThrowOnError>({
115
115
  ...options,
116
116
  url: '/v1/tools/linkedin/download'
117
117
  });
@@ -124,8 +124,8 @@ export const getV1ToolsLinkedinDownload = <ThrowOnError extends boolean = false>
124
124
  * **Rate Limits:** Build (50/day), Accelerate (500/day), Unlimited (unlimited)
125
125
  *
126
126
  */
127
- export const getV1ToolsBlueskyDownload = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1ToolsBlueskyDownloadData, ThrowOnError>) => {
128
- return (options?.client ?? client).get<GetV1ToolsBlueskyDownloadResponse, GetV1ToolsBlueskyDownloadError, ThrowOnError>({
127
+ export const downloadBlueskyMedia = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DownloadBlueskyMediaData, ThrowOnError>) => {
128
+ return (options?.client ?? client).get<DownloadBlueskyMediaResponse, DownloadBlueskyMediaError, ThrowOnError>({
129
129
  ...options,
130
130
  url: '/v1/tools/bluesky/download'
131
131
  });
@@ -171,8 +171,8 @@ export const getV1ToolsBlueskyDownload = <ThrowOnError extends boolean = false>(
171
171
  * **Data Freshness:** Analytics data is cached and refreshed at most once per hour. When you call this endpoint, if the cache is older than 60 minutes, a background refresh is triggered and you'll see updated data on subsequent requests. There is no rate limit on API requests.
172
172
  *
173
173
  */
174
- export const getV1Analytics = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetV1AnalyticsData, ThrowOnError>) => {
175
- return (options?.client ?? client).get<GetV1AnalyticsResponse, GetV1AnalyticsError, ThrowOnError>({
174
+ export const getAnalytics = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetAnalyticsData, ThrowOnError>) => {
175
+ return (options?.client ?? client).get<GetAnalyticsResponse, GetAnalyticsError, ThrowOnError>({
176
176
  ...options,
177
177
  url: '/v1/analytics'
178
178
  });
@@ -194,8 +194,8 @@ export const getV1Analytics = <ThrowOnError extends boolean = false>(options?: O
194
194
  * **Date Range:** Maximum 90 days of historical data available. Defaults to last 30 days.
195
195
  *
196
196
  */
197
- export const getV1AnalyticsYoutubeDailyViews = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1AnalyticsYoutubeDailyViewsData, ThrowOnError>) => {
198
- return (options?.client ?? client).get<GetV1AnalyticsYoutubeDailyViewsResponse, GetV1AnalyticsYoutubeDailyViewsError, ThrowOnError>({
197
+ export const getYouTubeDailyViews = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetYouTubeDailyViewsData, ThrowOnError>) => {
198
+ return (options?.client ?? client).get<GetYouTubeDailyViewsResponse, GetYouTubeDailyViewsError, ThrowOnError>({
199
199
  ...options,
200
200
  url: '/v1/analytics/youtube/daily-views'
201
201
  });
@@ -204,8 +204,8 @@ export const getV1AnalyticsYoutubeDailyViews = <ThrowOnError extends boolean = f
204
204
  /**
205
205
  * List account groups for the authenticated user
206
206
  */
207
- export const getV1AccountGroups = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
208
- return (options?.client ?? client).get<GetV1AccountGroupsResponse, GetV1AccountGroupsError, ThrowOnError>({
207
+ export const listAccountGroups = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
208
+ return (options?.client ?? client).get<ListAccountGroupsResponse, ListAccountGroupsError, ThrowOnError>({
209
209
  ...options,
210
210
  url: '/v1/account-groups'
211
211
  });
@@ -214,8 +214,8 @@ export const getV1AccountGroups = <ThrowOnError extends boolean = false>(options
214
214
  /**
215
215
  * Create a new account group
216
216
  */
217
- export const postV1AccountGroups = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1AccountGroupsData, ThrowOnError>) => {
218
- return (options?.client ?? client).post<PostV1AccountGroupsResponse, PostV1AccountGroupsError, ThrowOnError>({
217
+ export const createAccountGroup = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateAccountGroupData, ThrowOnError>) => {
218
+ return (options?.client ?? client).post<CreateAccountGroupResponse, CreateAccountGroupError, ThrowOnError>({
219
219
  ...options,
220
220
  url: '/v1/account-groups'
221
221
  });
@@ -224,8 +224,8 @@ export const postV1AccountGroups = <ThrowOnError extends boolean = false>(option
224
224
  /**
225
225
  * Update an account group
226
226
  */
227
- export const putV1AccountGroupsByGroupId = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PutV1AccountGroupsByGroupIdData, ThrowOnError>) => {
228
- return (options?.client ?? client).put<PutV1AccountGroupsByGroupIdResponse, PutV1AccountGroupsByGroupIdError, ThrowOnError>({
227
+ export const updateAccountGroup = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateAccountGroupData, ThrowOnError>) => {
228
+ return (options?.client ?? client).put<UpdateAccountGroupResponse, UpdateAccountGroupError, ThrowOnError>({
229
229
  ...options,
230
230
  url: '/v1/account-groups/{groupId}'
231
231
  });
@@ -234,8 +234,8 @@ export const putV1AccountGroupsByGroupId = <ThrowOnError extends boolean = false
234
234
  /**
235
235
  * Delete an account group
236
236
  */
237
- export const deleteV1AccountGroupsByGroupId = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteV1AccountGroupsByGroupIdData, ThrowOnError>) => {
238
- return (options?.client ?? client).delete<DeleteV1AccountGroupsByGroupIdResponse, DeleteV1AccountGroupsByGroupIdError, ThrowOnError>({
237
+ export const deleteAccountGroup = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteAccountGroupData, ThrowOnError>) => {
238
+ return (options?.client ?? client).delete<DeleteAccountGroupResponse, DeleteAccountGroupError, ThrowOnError>({
239
239
  ...options,
240
240
  url: '/v1/account-groups/{groupId}'
241
241
  });
@@ -284,8 +284,8 @@ export const deleteV1AccountGroupsByGroupId = <ThrowOnError extends boolean = fa
284
284
  * ```
285
285
  *
286
286
  */
287
- export const postV1MediaPresign = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1MediaPresignData, ThrowOnError>) => {
288
- return (options?.client ?? client).post<PostV1MediaPresignResponse, PostV1MediaPresignError, ThrowOnError>({
287
+ export const getMediaPresignedUrl = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetMediaPresignedUrlData, ThrowOnError>) => {
288
+ return (options?.client ?? client).post<GetMediaPresignedUrlResponse, GetMediaPresignedUrlError, ThrowOnError>({
289
289
  ...options,
290
290
  url: '/v1/media/presign'
291
291
  });
@@ -294,8 +294,8 @@ export const postV1MediaPresign = <ThrowOnError extends boolean = false>(options
294
294
  /**
295
295
  * Search Reddit posts via a connected account
296
296
  */
297
- export const getV1RedditSearch = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1RedditSearchData, ThrowOnError>) => {
298
- return (options?.client ?? client).get<GetV1RedditSearchResponse, GetV1RedditSearchError, ThrowOnError>({
297
+ export const searchReddit = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SearchRedditData, ThrowOnError>) => {
298
+ return (options?.client ?? client).get<SearchRedditResponse, SearchRedditError, ThrowOnError>({
299
299
  ...options,
300
300
  url: '/v1/reddit/search'
301
301
  });
@@ -304,8 +304,8 @@ export const getV1RedditSearch = <ThrowOnError extends boolean = false>(options:
304
304
  /**
305
305
  * Fetch subreddit feed via a connected account
306
306
  */
307
- export const getV1RedditFeed = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1RedditFeedData, ThrowOnError>) => {
308
- return (options?.client ?? client).get<GetV1RedditFeedResponse, GetV1RedditFeedError, ThrowOnError>({
307
+ export const getRedditFeed = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetRedditFeedData, ThrowOnError>) => {
308
+ return (options?.client ?? client).get<GetRedditFeedResponse, GetRedditFeedError, ThrowOnError>({
309
309
  ...options,
310
310
  url: '/v1/reddit/feed'
311
311
  });
@@ -314,8 +314,8 @@ export const getV1RedditFeed = <ThrowOnError extends boolean = false>(options: O
314
314
  /**
315
315
  * Get plan and usage stats for current account
316
316
  */
317
- export const getV1UsageStats = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
318
- return (options?.client ?? client).get<GetV1UsageStatsResponse, GetV1UsageStatsError, ThrowOnError>({
317
+ export const getUsageStats = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
318
+ return (options?.client ?? client).get<GetUsageStatsResponse, GetUsageStatsError, ThrowOnError>({
319
319
  ...options,
320
320
  url: '/v1/usage-stats'
321
321
  });
@@ -333,8 +333,8 @@ export const getV1UsageStats = <ThrowOnError extends boolean = false>(options?:
333
333
  * - TikTok: mediaItems will not mix photos and videos in the same post.
334
334
  *
335
335
  */
336
- export const getV1Posts = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetV1PostsData, ThrowOnError>) => {
337
- return (options?.client ?? client).get<GetV1PostsResponse, GetV1PostsError, ThrowOnError>({
336
+ export const listPosts = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListPostsData, ThrowOnError>) => {
337
+ return (options?.client ?? client).get<ListPostsResponse, ListPostsError, ThrowOnError>({
338
338
  ...options,
339
339
  url: '/v1/posts'
340
340
  });
@@ -358,8 +358,8 @@ export const getV1Posts = <ThrowOnError extends boolean = false>(options?: Optio
358
358
  * - Snapchat requires media (single image or video); set contentType to 'story', 'saved_story', or 'spotlight' in platformSpecificData. Stories are ephemeral (24h), Saved Stories are permanent, Spotlight is for video content.
359
359
  *
360
360
  */
361
- export const postV1Posts = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1PostsData, ThrowOnError>) => {
362
- return (options?.client ?? client).post<PostV1PostsResponse, PostV1PostsError, ThrowOnError>({
361
+ export const createPost = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreatePostData, ThrowOnError>) => {
362
+ return (options?.client ?? client).post<CreatePostResponse, CreatePostError, ThrowOnError>({
363
363
  ...options,
364
364
  url: '/v1/posts'
365
365
  });
@@ -371,8 +371,8 @@ export const postV1Posts = <ThrowOnError extends boolean = false>(options: Optio
371
371
  * for each platform - useful for retrieving post URLs after scheduled posts publish.
372
372
  *
373
373
  */
374
- export const getV1PostsByPostId = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1PostsByPostIdData, ThrowOnError>) => {
375
- return (options?.client ?? client).get<GetV1PostsByPostIdResponse, GetV1PostsByPostIdError, ThrowOnError>({
374
+ export const getPost = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetPostData, ThrowOnError>) => {
375
+ return (options?.client ?? client).get<GetPostResponse, GetPostError, ThrowOnError>({
376
376
  ...options,
377
377
  url: '/v1/posts/{postId}'
378
378
  });
@@ -384,8 +384,8 @@ export const getV1PostsByPostId = <ThrowOnError extends boolean = false>(options
384
384
  * Published, publishing, and cancelled posts cannot be modified.
385
385
  *
386
386
  */
387
- export const putV1PostsByPostId = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PutV1PostsByPostIdData, ThrowOnError>) => {
388
- return (options?.client ?? client).put<PutV1PostsByPostIdResponse, PutV1PostsByPostIdError, ThrowOnError>({
387
+ export const updatePost = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdatePostData, ThrowOnError>) => {
388
+ return (options?.client ?? client).put<UpdatePostResponse, UpdatePostError, ThrowOnError>({
389
389
  ...options,
390
390
  url: '/v1/posts/{postId}'
391
391
  });
@@ -397,8 +397,8 @@ export const putV1PostsByPostId = <ThrowOnError extends boolean = false>(options
397
397
  * When deleting a scheduled or draft post that consumed upload quota, the quota will be automatically refunded.
398
398
  *
399
399
  */
400
- export const deleteV1PostsByPostId = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteV1PostsByPostIdData, ThrowOnError>) => {
401
- return (options?.client ?? client).delete<DeleteV1PostsByPostIdResponse, DeleteV1PostsByPostIdError, ThrowOnError>({
400
+ export const deletePost = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeletePostData, ThrowOnError>) => {
401
+ return (options?.client ?? client).delete<DeletePostResponse, DeletePostError, ThrowOnError>({
402
402
  ...options,
403
403
  url: '/v1/posts/{postId}'
404
404
  });
@@ -407,8 +407,8 @@ export const deleteV1PostsByPostId = <ThrowOnError extends boolean = false>(opti
407
407
  /**
408
408
  * Validate and schedule multiple posts from CSV
409
409
  */
410
- export const postV1PostsBulkUpload = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1PostsBulkUploadData, ThrowOnError>) => {
411
- return (options?.client ?? client).post<PostV1PostsBulkUploadResponse, PostV1PostsBulkUploadError, ThrowOnError>({
410
+ export const bulkUploadPosts = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<BulkUploadPostsData, ThrowOnError>) => {
411
+ return (options?.client ?? client).post<BulkUploadPostsResponse, BulkUploadPostsError, ThrowOnError>({
412
412
  ...options,
413
413
  ...formDataBodySerializer,
414
414
  headers: {
@@ -422,8 +422,8 @@ export const postV1PostsBulkUpload = <ThrowOnError extends boolean = false>(opti
422
422
  /**
423
423
  * Retry publishing a failed or partial post
424
424
  */
425
- export const postV1PostsByPostIdRetry = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1PostsByPostIdRetryData, ThrowOnError>) => {
426
- return (options?.client ?? client).post<PostV1PostsByPostIdRetryResponse, PostV1PostsByPostIdRetryError, ThrowOnError>({
425
+ export const retryPost = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<RetryPostData, ThrowOnError>) => {
426
+ return (options?.client ?? client).post<RetryPostResponse, RetryPostError, ThrowOnError>({
427
427
  ...options,
428
428
  url: '/v1/posts/{postId}/retry'
429
429
  });
@@ -432,8 +432,8 @@ export const postV1PostsByPostIdRetry = <ThrowOnError extends boolean = false>(o
432
432
  /**
433
433
  * List team users (root + invited)
434
434
  */
435
- export const getV1Users = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
436
- return (options?.client ?? client).get<GetV1UsersResponse, GetV1UsersError, ThrowOnError>({
435
+ export const listUsers = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
436
+ return (options?.client ?? client).get<ListUsersResponse, ListUsersError, ThrowOnError>({
437
437
  ...options,
438
438
  url: '/v1/users'
439
439
  });
@@ -442,8 +442,8 @@ export const getV1Users = <ThrowOnError extends boolean = false>(options?: Optio
442
442
  /**
443
443
  * Get user by id (self or invited)
444
444
  */
445
- export const getV1UsersByUserId = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1UsersByUserIdData, ThrowOnError>) => {
446
- return (options?.client ?? client).get<GetV1UsersByUserIdResponse, GetV1UsersByUserIdError, ThrowOnError>({
445
+ export const getUser = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetUserData, ThrowOnError>) => {
446
+ return (options?.client ?? client).get<GetUserResponse, GetUserError, ThrowOnError>({
447
447
  ...options,
448
448
  url: '/v1/users/{userId}'
449
449
  });
@@ -455,8 +455,8 @@ export const getV1UsersByUserId = <ThrowOnError extends boolean = false>(options
455
455
  * Use `includeOverLimit=true` to include profiles that exceed the plan limit (for management/deletion purposes).
456
456
  *
457
457
  */
458
- export const getV1Profiles = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetV1ProfilesData, ThrowOnError>) => {
459
- return (options?.client ?? client).get<GetV1ProfilesResponse, GetV1ProfilesError, ThrowOnError>({
458
+ export const listProfiles = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListProfilesData, ThrowOnError>) => {
459
+ return (options?.client ?? client).get<ListProfilesResponse, ListProfilesError, ThrowOnError>({
460
460
  ...options,
461
461
  url: '/v1/profiles'
462
462
  });
@@ -465,8 +465,8 @@ export const getV1Profiles = <ThrowOnError extends boolean = false>(options?: Op
465
465
  /**
466
466
  * Create a new profile
467
467
  */
468
- export const postV1Profiles = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1ProfilesData, ThrowOnError>) => {
469
- return (options?.client ?? client).post<PostV1ProfilesResponse, PostV1ProfilesError, ThrowOnError>({
468
+ export const createProfile = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateProfileData, ThrowOnError>) => {
469
+ return (options?.client ?? client).post<CreateProfileResponse, CreateProfileError, ThrowOnError>({
470
470
  ...options,
471
471
  url: '/v1/profiles'
472
472
  });
@@ -475,8 +475,8 @@ export const postV1Profiles = <ThrowOnError extends boolean = false>(options: Op
475
475
  /**
476
476
  * Get a profile by id
477
477
  */
478
- export const getV1ProfilesByProfileId = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1ProfilesByProfileIdData, ThrowOnError>) => {
479
- return (options?.client ?? client).get<GetV1ProfilesByProfileIdResponse, GetV1ProfilesByProfileIdError, ThrowOnError>({
478
+ export const getProfile = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetProfileData, ThrowOnError>) => {
479
+ return (options?.client ?? client).get<GetProfileResponse, GetProfileError, ThrowOnError>({
480
480
  ...options,
481
481
  url: '/v1/profiles/{profileId}'
482
482
  });
@@ -485,8 +485,8 @@ export const getV1ProfilesByProfileId = <ThrowOnError extends boolean = false>(o
485
485
  /**
486
486
  * Update a profile
487
487
  */
488
- export const putV1ProfilesByProfileId = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PutV1ProfilesByProfileIdData, ThrowOnError>) => {
489
- return (options?.client ?? client).put<PutV1ProfilesByProfileIdResponse, PutV1ProfilesByProfileIdError, ThrowOnError>({
488
+ export const updateProfile = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateProfileData, ThrowOnError>) => {
489
+ return (options?.client ?? client).put<UpdateProfileResponse, UpdateProfileError, ThrowOnError>({
490
490
  ...options,
491
491
  url: '/v1/profiles/{profileId}'
492
492
  });
@@ -495,8 +495,8 @@ export const putV1ProfilesByProfileId = <ThrowOnError extends boolean = false>(o
495
495
  /**
496
496
  * Delete a profile (must have no connected accounts)
497
497
  */
498
- export const deleteV1ProfilesByProfileId = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteV1ProfilesByProfileIdData, ThrowOnError>) => {
499
- return (options?.client ?? client).delete<DeleteV1ProfilesByProfileIdResponse, DeleteV1ProfilesByProfileIdError, ThrowOnError>({
498
+ export const deleteProfile = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteProfileData, ThrowOnError>) => {
499
+ return (options?.client ?? client).delete<DeleteProfileResponse, DeleteProfileError, ThrowOnError>({
500
500
  ...options,
501
501
  url: '/v1/profiles/{profileId}'
502
502
  });
@@ -509,8 +509,8 @@ export const deleteV1ProfilesByProfileId = <ThrowOnError extends boolean = false
509
509
  * Follower count data (followersCount, followersLastUpdated) is only included if user has analytics add-on.
510
510
  *
511
511
  */
512
- export const getV1Accounts = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetV1AccountsData, ThrowOnError>) => {
513
- return (options?.client ?? client).get<GetV1AccountsResponse, GetV1AccountsError, ThrowOnError>({
512
+ export const listAccounts = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListAccountsData, ThrowOnError>) => {
513
+ return (options?.client ?? client).get<ListAccountsResponse, ListAccountsError, ThrowOnError>({
514
514
  ...options,
515
515
  url: '/v1/accounts'
516
516
  });
@@ -524,8 +524,8 @@ export const getV1Accounts = <ThrowOnError extends boolean = false>(options?: Op
524
524
  * **Data Freshness:** Follower counts are automatically refreshed once per day.
525
525
  *
526
526
  */
527
- export const getV1AccountsFollowerStats = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetV1AccountsFollowerStatsData, ThrowOnError>) => {
528
- return (options?.client ?? client).get<GetV1AccountsFollowerStatsResponse, GetV1AccountsFollowerStatsError, ThrowOnError>({
527
+ export const getFollowerStats = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetFollowerStatsData, ThrowOnError>) => {
528
+ return (options?.client ?? client).get<GetFollowerStatsResponse, GetFollowerStatsError, ThrowOnError>({
529
529
  ...options,
530
530
  url: '/v1/accounts/follower-stats'
531
531
  });
@@ -534,8 +534,8 @@ export const getV1AccountsFollowerStats = <ThrowOnError extends boolean = false>
534
534
  /**
535
535
  * Update a social account
536
536
  */
537
- export const putV1AccountsByAccountId = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PutV1AccountsByAccountIdData, ThrowOnError>) => {
538
- return (options?.client ?? client).put<PutV1AccountsByAccountIdResponse, PutV1AccountsByAccountIdError, ThrowOnError>({
537
+ export const updateAccount = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateAccountData, ThrowOnError>) => {
538
+ return (options?.client ?? client).put<UpdateAccountResponse, UpdateAccountError, ThrowOnError>({
539
539
  ...options,
540
540
  url: '/v1/accounts/{accountId}'
541
541
  });
@@ -544,8 +544,8 @@ export const putV1AccountsByAccountId = <ThrowOnError extends boolean = false>(o
544
544
  /**
545
545
  * Disconnect a social account
546
546
  */
547
- export const deleteV1AccountsByAccountId = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteV1AccountsByAccountIdData, ThrowOnError>) => {
548
- return (options?.client ?? client).delete<DeleteV1AccountsByAccountIdResponse, DeleteV1AccountsByAccountIdError, ThrowOnError>({
547
+ export const deleteAccount = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteAccountData, ThrowOnError>) => {
548
+ return (options?.client ?? client).delete<DeleteAccountResponse, DeleteAccountError, ThrowOnError>({
549
549
  ...options,
550
550
  url: '/v1/accounts/{accountId}'
551
551
  });
@@ -558,8 +558,8 @@ export const deleteV1AccountsByAccountId = <ThrowOnError extends boolean = false
558
558
  * connections and identifying accounts that need reconnection.
559
559
  *
560
560
  */
561
- export const getV1AccountsHealth = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetV1AccountsHealthData, ThrowOnError>) => {
562
- return (options?.client ?? client).get<GetV1AccountsHealthResponse, GetV1AccountsHealthError, ThrowOnError>({
561
+ export const getAllAccountsHealth = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetAllAccountsHealthData, ThrowOnError>) => {
562
+ return (options?.client ?? client).get<GetAllAccountsHealthResponse, GetAllAccountsHealthError, ThrowOnError>({
563
563
  ...options,
564
564
  url: '/v1/accounts/health'
565
565
  });
@@ -571,8 +571,8 @@ export const getV1AccountsHealth = <ThrowOnError extends boolean = false>(option
571
571
  * granted permissions, missing permissions, and actionable recommendations.
572
572
  *
573
573
  */
574
- export const getV1AccountsByAccountIdHealth = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1AccountsByAccountIdHealthData, ThrowOnError>) => {
575
- return (options?.client ?? client).get<GetV1AccountsByAccountIdHealthResponse, GetV1AccountsByAccountIdHealthError, ThrowOnError>({
574
+ export const getAccountHealth = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetAccountHealthData, ThrowOnError>) => {
575
+ return (options?.client ?? client).get<GetAccountHealthResponse, GetAccountHealthError, ThrowOnError>({
576
576
  ...options,
577
577
  url: '/v1/accounts/{accountId}/health'
578
578
  });
@@ -581,8 +581,8 @@ export const getV1AccountsByAccountIdHealth = <ThrowOnError extends boolean = fa
581
581
  /**
582
582
  * List API keys for the current user
583
583
  */
584
- export const getV1ApiKeys = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
585
- return (options?.client ?? client).get<GetV1ApiKeysResponse, GetV1ApiKeysError, ThrowOnError>({
584
+ export const listApiKeys = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
585
+ return (options?.client ?? client).get<ListApiKeysResponse, ListApiKeysError, ThrowOnError>({
586
586
  ...options,
587
587
  url: '/v1/api-keys'
588
588
  });
@@ -591,8 +591,8 @@ export const getV1ApiKeys = <ThrowOnError extends boolean = false>(options?: Opt
591
591
  /**
592
592
  * Create a new API key
593
593
  */
594
- export const postV1ApiKeys = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1ApiKeysData, ThrowOnError>) => {
595
- return (options?.client ?? client).post<PostV1ApiKeysResponse, PostV1ApiKeysError, ThrowOnError>({
594
+ export const createApiKey = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateApiKeyData, ThrowOnError>) => {
595
+ return (options?.client ?? client).post<CreateApiKeyResponse, CreateApiKeyError, ThrowOnError>({
596
596
  ...options,
597
597
  url: '/v1/api-keys'
598
598
  });
@@ -601,8 +601,8 @@ export const postV1ApiKeys = <ThrowOnError extends boolean = false>(options: Opt
601
601
  /**
602
602
  * Delete an API key
603
603
  */
604
- export const deleteV1ApiKeysByKeyId = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteV1ApiKeysByKeyIdData, ThrowOnError>) => {
605
- return (options?.client ?? client).delete<DeleteV1ApiKeysByKeyIdResponse, DeleteV1ApiKeysByKeyIdError, ThrowOnError>({
604
+ export const deleteApiKey = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteApiKeyData, ThrowOnError>) => {
605
+ return (options?.client ?? client).delete<DeleteApiKeyResponse, DeleteApiKeyError, ThrowOnError>({
606
606
  ...options,
607
607
  url: '/v1/api-keys/{keyId}'
608
608
  });
@@ -614,49 +614,13 @@ export const deleteV1ApiKeysByKeyId = <ThrowOnError extends boolean = false>(opt
614
614
  * Invites expire after 7 days and are single-use.
615
615
  *
616
616
  */
617
- export const postV1InviteTokens = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1InviteTokensData, ThrowOnError>) => {
618
- return (options?.client ?? client).post<PostV1InviteTokensResponse, PostV1InviteTokensError, ThrowOnError>({
617
+ export const createInviteToken = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateInviteTokenData, ThrowOnError>) => {
618
+ return (options?.client ?? client).post<CreateInviteTokenResponse, CreateInviteTokenError, ThrowOnError>({
619
619
  ...options,
620
620
  url: '/v1/invite/tokens'
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 getV1PlatformInvites = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetV1PlatformInvitesData, ThrowOnError>) => {
629
- return (options?.client ?? client).get<GetV1PlatformInvitesResponse, GetV1PlatformInvitesError, 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 postV1PlatformInvites = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1PlatformInvitesData, ThrowOnError>) => {
643
- return (options?.client ?? client).post<PostV1PlatformInvitesResponse, PostV1PlatformInvitesError, 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 deleteV1PlatformInvites = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteV1PlatformInvitesData, ThrowOnError>) => {
654
- return (options?.client ?? client).delete<DeleteV1PlatformInvitesResponse, DeleteV1PlatformInvitesError, 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.
@@ -741,8 +705,8 @@ export const deleteV1PlatformInvites = <ThrowOnError extends boolean = false>(op
741
705
  * 5. In this mode, users never see Late's hosted location selector – only your UI.
742
706
  *
743
707
  */
744
- export const getV1ConnectByPlatform = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1ConnectByPlatformData, ThrowOnError>) => {
745
- return (options?.client ?? client).get<GetV1ConnectByPlatformResponse, GetV1ConnectByPlatformError, ThrowOnError>({
708
+ export const getConnectUrl = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetConnectUrlData, ThrowOnError>) => {
709
+ return (options?.client ?? client).get<GetConnectUrlResponse, GetConnectUrlError, ThrowOnError>({
746
710
  ...options,
747
711
  url: '/v1/connect/{platform}'
748
712
  });
@@ -751,8 +715,8 @@ export const getV1ConnectByPlatform = <ThrowOnError extends boolean = false>(opt
751
715
  /**
752
716
  * Complete OAuth token exchange manually (for server-side flows)
753
717
  */
754
- export const postV1ConnectByPlatform = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1ConnectByPlatformData, ThrowOnError>) => {
755
- return (options?.client ?? client).post<PostV1ConnectByPlatformResponse, PostV1ConnectByPlatformError, ThrowOnError>({
718
+ export const handleOAuthCallback = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleOAuthCallbackData, ThrowOnError>) => {
719
+ return (options?.client ?? client).post<HandleOAuthCallbackResponse, HandleOAuthCallbackError, ThrowOnError>({
756
720
  ...options,
757
721
  url: '/v1/connect/{platform}'
758
722
  });
@@ -773,8 +737,8 @@ export const postV1ConnectByPlatform = <ThrowOnError extends boolean = false>(op
773
737
  * (rather than a browser session).
774
738
  *
775
739
  */
776
- export const getV1ConnectFacebookSelectPage = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1ConnectFacebookSelectPageData, ThrowOnError>) => {
777
- return (options?.client ?? client).get<GetV1ConnectFacebookSelectPageResponse, GetV1ConnectFacebookSelectPageError, ThrowOnError>({
740
+ export const listFacebookPages = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListFacebookPagesData, ThrowOnError>) => {
741
+ return (options?.client ?? client).get<ListFacebookPagesResponse, ListFacebookPagesError, ThrowOnError>({
778
742
  ...options,
779
743
  url: '/v1/connect/facebook/select-page'
780
744
  });
@@ -793,8 +757,8 @@ export const getV1ConnectFacebookSelectPage = <ThrowOnError extends boolean = fa
793
757
  * **Note:** Use the `X-Connect-Token` header if you initiated the connection via API key.
794
758
  *
795
759
  */
796
- export const postV1ConnectFacebookSelectPage = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1ConnectFacebookSelectPageData, ThrowOnError>) => {
797
- return (options?.client ?? client).post<PostV1ConnectFacebookSelectPageResponse, PostV1ConnectFacebookSelectPageError, ThrowOnError>({
760
+ export const selectFacebookPage = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SelectFacebookPageData, ThrowOnError>) => {
761
+ return (options?.client ?? client).post<SelectFacebookPageResponse, SelectFacebookPageError, ThrowOnError>({
798
762
  ...options,
799
763
  url: '/v1/connect/facebook/select-page'
800
764
  });
@@ -815,8 +779,8 @@ export const postV1ConnectFacebookSelectPage = <ThrowOnError extends boolean = f
815
779
  * (rather than a browser session).
816
780
  *
817
781
  */
818
- export const getV1ConnectGooglebusinessLocations = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1ConnectGooglebusinessLocationsData, ThrowOnError>) => {
819
- return (options?.client ?? client).get<GetV1ConnectGooglebusinessLocationsResponse, GetV1ConnectGooglebusinessLocationsError, ThrowOnError>({
782
+ export const listGoogleBusinessLocations = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListGoogleBusinessLocationsData, ThrowOnError>) => {
783
+ return (options?.client ?? client).get<ListGoogleBusinessLocationsResponse, ListGoogleBusinessLocationsError, ThrowOnError>({
820
784
  ...options,
821
785
  url: '/v1/connect/googlebusiness/locations'
822
786
  });
@@ -835,8 +799,8 @@ export const getV1ConnectGooglebusinessLocations = <ThrowOnError extends boolean
835
799
  * **Note:** Use the `X-Connect-Token` header if you initiated the connection via API key.
836
800
  *
837
801
  */
838
- export const postV1ConnectGooglebusinessSelectLocation = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1ConnectGooglebusinessSelectLocationData, ThrowOnError>) => {
839
- return (options?.client ?? client).post<PostV1ConnectGooglebusinessSelectLocationResponse, PostV1ConnectGooglebusinessSelectLocationError, ThrowOnError>({
802
+ export const selectGoogleBusinessLocation = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SelectGoogleBusinessLocationData, ThrowOnError>) => {
803
+ return (options?.client ?? client).post<SelectGoogleBusinessLocationResponse, SelectGoogleBusinessLocationError, ThrowOnError>({
840
804
  ...options,
841
805
  url: '/v1/connect/googlebusiness/select-location'
842
806
  });
@@ -856,8 +820,8 @@ export const postV1ConnectGooglebusinessSelectLocation = <ThrowOnError extends b
856
820
  * Use pagination via `nextPageToken` to fetch all reviews for locations with many reviews.
857
821
  *
858
822
  */
859
- export const getV1AccountsByAccountIdGmbReviews = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1AccountsByAccountIdGmbReviewsData, ThrowOnError>) => {
860
- return (options?.client ?? client).get<GetV1AccountsByAccountIdGmbReviewsResponse, GetV1AccountsByAccountIdGmbReviewsError, ThrowOnError>({
823
+ export const getGoogleBusinessReviews = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetGoogleBusinessReviewsData, ThrowOnError>) => {
824
+ return (options?.client ?? client).get<GetGoogleBusinessReviewsResponse, GetGoogleBusinessReviewsError, ThrowOnError>({
861
825
  ...options,
862
826
  url: '/v1/accounts/{accountId}/gmb-reviews'
863
827
  });
@@ -877,8 +841,8 @@ export const getV1AccountsByAccountIdGmbReviews = <ThrowOnError extends boolean
877
841
  * Details are fetched directly from LinkedIn's API in parallel for fast response times.
878
842
  *
879
843
  */
880
- export const getV1ConnectLinkedinOrganizations = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1ConnectLinkedinOrganizationsData, ThrowOnError>) => {
881
- return (options?.client ?? client).get<GetV1ConnectLinkedinOrganizationsResponse, GetV1ConnectLinkedinOrganizationsError, ThrowOnError>({
844
+ export const listLinkedInOrganizations = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListLinkedInOrganizationsData, ThrowOnError>) => {
845
+ return (options?.client ?? client).get<ListLinkedInOrganizationsResponse, ListLinkedInOrganizationsError, ThrowOnError>({
882
846
  ...options,
883
847
  url: '/v1/connect/linkedin/organizations'
884
848
  });
@@ -901,8 +865,8 @@ export const getV1ConnectLinkedinOrganizations = <ThrowOnError extends boolean =
901
865
  * **Headless Mode:** Use the `X-Connect-Token` header if you initiated the connection via API key.
902
866
  *
903
867
  */
904
- export const postV1ConnectLinkedinSelectOrganization = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1ConnectLinkedinSelectOrganizationData, ThrowOnError>) => {
905
- return (options?.client ?? client).post<PostV1ConnectLinkedinSelectOrganizationResponse, PostV1ConnectLinkedinSelectOrganizationError, ThrowOnError>({
868
+ export const selectLinkedInOrganization = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SelectLinkedInOrganizationData, ThrowOnError>) => {
869
+ return (options?.client ?? client).post<SelectLinkedInOrganizationResponse, SelectLinkedInOrganizationError, ThrowOnError>({
906
870
  ...options,
907
871
  url: '/v1/connect/linkedin/select-organization'
908
872
  });
@@ -922,8 +886,8 @@ export const postV1ConnectLinkedinSelectOrganization = <ThrowOnError extends boo
922
886
  * **Authentication:** Use `X-Connect-Token` header with the `connect_token` from the redirect URL.
923
887
  *
924
888
  */
925
- export const getV1ConnectPinterestSelectBoard = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1ConnectPinterestSelectBoardData, ThrowOnError>) => {
926
- return (options?.client ?? client).get<GetV1ConnectPinterestSelectBoardResponse, GetV1ConnectPinterestSelectBoardError, ThrowOnError>({
889
+ export const listPinterestBoardsForSelection = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListPinterestBoardsForSelectionData, ThrowOnError>) => {
890
+ return (options?.client ?? client).get<ListPinterestBoardsForSelectionResponse, ListPinterestBoardsForSelectionError, ThrowOnError>({
927
891
  ...options,
928
892
  url: '/v1/connect/pinterest/select-board'
929
893
  });
@@ -938,8 +902,8 @@ export const getV1ConnectPinterestSelectBoard = <ThrowOnError extends boolean =
938
902
  * **Headless Mode:** Use the `X-Connect-Token` header if you initiated the connection via API key.
939
903
  *
940
904
  */
941
- export const postV1ConnectPinterestSelectBoard = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1ConnectPinterestSelectBoardData, ThrowOnError>) => {
942
- return (options?.client ?? client).post<PostV1ConnectPinterestSelectBoardResponse, PostV1ConnectPinterestSelectBoardError, ThrowOnError>({
905
+ export const selectPinterestBoard = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SelectPinterestBoardData, ThrowOnError>) => {
906
+ return (options?.client ?? client).post<SelectPinterestBoardResponse, SelectPinterestBoardError, ThrowOnError>({
943
907
  ...options,
944
908
  url: '/v1/connect/pinterest/select-board'
945
909
  });
@@ -959,8 +923,8 @@ export const postV1ConnectPinterestSelectBoard = <ThrowOnError extends boolean =
959
923
  * **Authentication:** Use `X-Connect-Token` header with the `connect_token` from the redirect URL.
960
924
  *
961
925
  */
962
- export const getV1ConnectSnapchatSelectProfile = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1ConnectSnapchatSelectProfileData, ThrowOnError>) => {
963
- return (options?.client ?? client).get<GetV1ConnectSnapchatSelectProfileResponse, GetV1ConnectSnapchatSelectProfileError, ThrowOnError>({
926
+ export const listSnapchatProfiles = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListSnapchatProfilesData, ThrowOnError>) => {
927
+ return (options?.client ?? client).get<ListSnapchatProfilesResponse, ListSnapchatProfilesError, ThrowOnError>({
964
928
  ...options,
965
929
  url: '/v1/connect/snapchat/select-profile'
966
930
  });
@@ -987,8 +951,8 @@ export const getV1ConnectSnapchatSelectProfile = <ThrowOnError extends boolean =
987
951
  * Parse `publicProfiles` to build your custom selector UI, then call this endpoint with the selected profile.
988
952
  *
989
953
  */
990
- export const postV1ConnectSnapchatSelectProfile = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1ConnectSnapchatSelectProfileData, ThrowOnError>) => {
991
- return (options?.client ?? client).post<PostV1ConnectSnapchatSelectProfileResponse, PostV1ConnectSnapchatSelectProfileError, ThrowOnError>({
954
+ export const selectSnapchatProfile = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SelectSnapchatProfileData, ThrowOnError>) => {
955
+ return (options?.client ?? client).post<SelectSnapchatProfileResponse, SelectSnapchatProfileError, ThrowOnError>({
992
956
  ...options,
993
957
  url: '/v1/connect/snapchat/select-profile'
994
958
  });
@@ -1001,8 +965,8 @@ export const postV1ConnectSnapchatSelectProfile = <ThrowOnError extends boolean
1001
965
  * To get your userId for the state parameter, call `GET /v1/users` - the response includes a `currentUserId` field.
1002
966
  *
1003
967
  */
1004
- export const postV1ConnectBlueskyCredentials = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1ConnectBlueskyCredentialsData, ThrowOnError>) => {
1005
- return (options?.client ?? client).post<PostV1ConnectBlueskyCredentialsResponse, PostV1ConnectBlueskyCredentialsError, ThrowOnError>({
968
+ export const connectBlueskyCredentials = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ConnectBlueskyCredentialsData, ThrowOnError>) => {
969
+ return (options?.client ?? client).post<ConnectBlueskyCredentialsResponse, ConnectBlueskyCredentialsError, ThrowOnError>({
1006
970
  ...options,
1007
971
  url: '/v1/connect/bluesky/credentials'
1008
972
  });
@@ -1022,8 +986,8 @@ export const postV1ConnectBlueskyCredentials = <ThrowOnError extends boolean = f
1022
986
  * **Alternative for private channels:** If your channel has no public username, forward any message from the channel to the bot along with the access code.
1023
987
  *
1024
988
  */
1025
- export const getV1ConnectTelegram = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1ConnectTelegramData, ThrowOnError>) => {
1026
- return (options?.client ?? client).get<GetV1ConnectTelegramResponse, GetV1ConnectTelegramError, ThrowOnError>({
989
+ export const getTelegramConnectStatus = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetTelegramConnectStatusData, ThrowOnError>) => {
990
+ return (options?.client ?? client).get<GetTelegramConnectStatusResponse, GetTelegramConnectStatusError, ThrowOnError>({
1027
991
  ...options,
1028
992
  url: '/v1/connect/telegram'
1029
993
  });
@@ -1037,8 +1001,8 @@ export const getV1ConnectTelegram = <ThrowOnError extends boolean = false>(optio
1037
1001
  * The bot must already be added as an administrator in the channel/group.
1038
1002
  *
1039
1003
  */
1040
- export const postV1ConnectTelegram = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1ConnectTelegramData, ThrowOnError>) => {
1041
- return (options?.client ?? client).post<PostV1ConnectTelegramResponse, PostV1ConnectTelegramError, ThrowOnError>({
1004
+ export const initiateTelegramConnect = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<InitiateTelegramConnectData, ThrowOnError>) => {
1005
+ return (options?.client ?? client).post<InitiateTelegramConnectResponse, InitiateTelegramConnectError, ThrowOnError>({
1042
1006
  ...options,
1043
1007
  url: '/v1/connect/telegram'
1044
1008
  });
@@ -1056,8 +1020,8 @@ export const postV1ConnectTelegram = <ThrowOnError extends boolean = false>(opti
1056
1020
  * - `expired`: Code has expired, generate a new one
1057
1021
  *
1058
1022
  */
1059
- export const patchV1ConnectTelegram = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PatchV1ConnectTelegramData, ThrowOnError>) => {
1060
- return (options?.client ?? client).patch<PatchV1ConnectTelegramResponse, PatchV1ConnectTelegramError, ThrowOnError>({
1023
+ export const completeTelegramConnect = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CompleteTelegramConnectData, ThrowOnError>) => {
1024
+ return (options?.client ?? client).patch<CompleteTelegramConnectResponse, CompleteTelegramConnectError, ThrowOnError>({
1061
1025
  ...options,
1062
1026
  url: '/v1/connect/telegram'
1063
1027
  });
@@ -1066,8 +1030,8 @@ export const patchV1ConnectTelegram = <ThrowOnError extends boolean = false>(opt
1066
1030
  /**
1067
1031
  * Update selected Facebook page for a connected account
1068
1032
  */
1069
- export const putV1AccountsByAccountIdFacebookPage = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PutV1AccountsByAccountIdFacebookPageData, ThrowOnError>) => {
1070
- return (options?.client ?? client).put<PutV1AccountsByAccountIdFacebookPageResponse, PutV1AccountsByAccountIdFacebookPageError, ThrowOnError>({
1033
+ export const updateFacebookPage = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateFacebookPageData, ThrowOnError>) => {
1034
+ return (options?.client ?? client).put<UpdateFacebookPageResponse, UpdateFacebookPageError, ThrowOnError>({
1071
1035
  ...options,
1072
1036
  url: '/v1/accounts/{accountId}/facebook-page'
1073
1037
  });
@@ -1076,8 +1040,8 @@ export const putV1AccountsByAccountIdFacebookPage = <ThrowOnError extends boolea
1076
1040
  /**
1077
1041
  * Get available LinkedIn organizations for a connected account
1078
1042
  */
1079
- export const getV1AccountsByAccountIdLinkedinOrganizations = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1AccountsByAccountIdLinkedinOrganizationsData, ThrowOnError>) => {
1080
- return (options?.client ?? client).get<GetV1AccountsByAccountIdLinkedinOrganizationsResponse, GetV1AccountsByAccountIdLinkedinOrganizationsError, ThrowOnError>({
1043
+ export const getLinkedInOrganizations = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetLinkedInOrganizationsData, ThrowOnError>) => {
1044
+ return (options?.client ?? client).get<GetLinkedInOrganizationsResponse, GetLinkedInOrganizationsError, ThrowOnError>({
1081
1045
  ...options,
1082
1046
  url: '/v1/accounts/{accountId}/linkedin-organizations'
1083
1047
  });
@@ -1112,8 +1076,8 @@ export const getV1AccountsByAccountIdLinkedinOrganizations = <ThrowOnError exten
1112
1076
  * **LinkedIn API Limitation:** The combination of `MEMBERS_REACHED` + `DAILY` aggregation is not supported by LinkedIn's API.
1113
1077
  *
1114
1078
  */
1115
- export const getV1AccountsByAccountIdLinkedinAggregateAnalytics = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1AccountsByAccountIdLinkedinAggregateAnalyticsData, ThrowOnError>) => {
1116
- return (options?.client ?? client).get<GetV1AccountsByAccountIdLinkedinAggregateAnalyticsResponse, GetV1AccountsByAccountIdLinkedinAggregateAnalyticsError, ThrowOnError>({
1079
+ export const getLinkedInAggregateAnalytics = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetLinkedInAggregateAnalyticsData, ThrowOnError>) => {
1080
+ return (options?.client ?? client).get<GetLinkedInAggregateAnalyticsResponse, GetLinkedInAggregateAnalyticsError, ThrowOnError>({
1117
1081
  ...options,
1118
1082
  url: '/v1/accounts/{accountId}/linkedin-aggregate-analytics'
1119
1083
  });
@@ -1139,8 +1103,8 @@ export const getV1AccountsByAccountIdLinkedinAggregateAnalytics = <ThrowOnError
1139
1103
  * - Available metrics: impressions, reach, clicks, likes, comments, shares, video views (video posts only), engagement rate
1140
1104
  *
1141
1105
  */
1142
- export const getV1AccountsByAccountIdLinkedinPostAnalytics = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1AccountsByAccountIdLinkedinPostAnalyticsData, ThrowOnError>) => {
1143
- return (options?.client ?? client).get<GetV1AccountsByAccountIdLinkedinPostAnalyticsResponse, GetV1AccountsByAccountIdLinkedinPostAnalyticsError, ThrowOnError>({
1106
+ export const getLinkedInPostAnalytics = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetLinkedInPostAnalyticsData, ThrowOnError>) => {
1107
+ return (options?.client ?? client).get<GetLinkedInPostAnalyticsResponse, GetLinkedInPostAnalyticsError, ThrowOnError>({
1144
1108
  ...options,
1145
1109
  url: '/v1/accounts/{accountId}/linkedin-post-analytics'
1146
1110
  });
@@ -1149,8 +1113,8 @@ export const getV1AccountsByAccountIdLinkedinPostAnalytics = <ThrowOnError exten
1149
1113
  /**
1150
1114
  * Switch LinkedIn account type (personal/organization)
1151
1115
  */
1152
- export const putV1AccountsByAccountIdLinkedinOrganization = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PutV1AccountsByAccountIdLinkedinOrganizationData, ThrowOnError>) => {
1153
- return (options?.client ?? client).put<PutV1AccountsByAccountIdLinkedinOrganizationResponse, PutV1AccountsByAccountIdLinkedinOrganizationError, ThrowOnError>({
1116
+ export const updateLinkedInOrganization = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateLinkedInOrganizationData, ThrowOnError>) => {
1117
+ return (options?.client ?? client).put<UpdateLinkedInOrganizationResponse, UpdateLinkedInOrganizationError, ThrowOnError>({
1154
1118
  ...options,
1155
1119
  url: '/v1/accounts/{accountId}/linkedin-organization'
1156
1120
  });
@@ -1181,8 +1145,8 @@ export const putV1AccountsByAccountIdLinkedinOrganization = <ThrowOnError extend
1181
1145
  * ```
1182
1146
  *
1183
1147
  */
1184
- export const getV1AccountsByAccountIdLinkedinMentions = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1AccountsByAccountIdLinkedinMentionsData, ThrowOnError>) => {
1185
- return (options?.client ?? client).get<GetV1AccountsByAccountIdLinkedinMentionsResponse, GetV1AccountsByAccountIdLinkedinMentionsError, ThrowOnError>({
1148
+ export const getLinkedInMentions = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetLinkedInMentionsData, ThrowOnError>) => {
1149
+ return (options?.client ?? client).get<GetLinkedInMentionsResponse, GetLinkedInMentionsError, ThrowOnError>({
1186
1150
  ...options,
1187
1151
  url: '/v1/accounts/{accountId}/linkedin-mentions'
1188
1152
  });
@@ -1191,8 +1155,8 @@ export const getV1AccountsByAccountIdLinkedinMentions = <ThrowOnError extends bo
1191
1155
  /**
1192
1156
  * List Pinterest boards for a connected account
1193
1157
  */
1194
- export const getV1AccountsByAccountIdPinterestBoards = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1AccountsByAccountIdPinterestBoardsData, ThrowOnError>) => {
1195
- return (options?.client ?? client).get<GetV1AccountsByAccountIdPinterestBoardsResponse, GetV1AccountsByAccountIdPinterestBoardsError, ThrowOnError>({
1158
+ export const getPinterestBoards = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetPinterestBoardsData, ThrowOnError>) => {
1159
+ return (options?.client ?? client).get<GetPinterestBoardsResponse, GetPinterestBoardsError, ThrowOnError>({
1196
1160
  ...options,
1197
1161
  url: '/v1/accounts/{accountId}/pinterest-boards'
1198
1162
  });
@@ -1201,8 +1165,8 @@ export const getV1AccountsByAccountIdPinterestBoards = <ThrowOnError extends boo
1201
1165
  /**
1202
1166
  * Set default Pinterest board on the connection
1203
1167
  */
1204
- export const putV1AccountsByAccountIdPinterestBoards = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PutV1AccountsByAccountIdPinterestBoardsData, ThrowOnError>) => {
1205
- return (options?.client ?? client).put<PutV1AccountsByAccountIdPinterestBoardsResponse, PutV1AccountsByAccountIdPinterestBoardsError, ThrowOnError>({
1168
+ export const updatePinterestBoards = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdatePinterestBoardsData, ThrowOnError>) => {
1169
+ return (options?.client ?? client).put<UpdatePinterestBoardsResponse, UpdatePinterestBoardsError, ThrowOnError>({
1206
1170
  ...options,
1207
1171
  url: '/v1/accounts/{accountId}/pinterest-boards'
1208
1172
  });
@@ -1211,8 +1175,8 @@ export const putV1AccountsByAccountIdPinterestBoards = <ThrowOnError extends boo
1211
1175
  /**
1212
1176
  * List Reddit subreddits for a connected account
1213
1177
  */
1214
- export const getV1AccountsByAccountIdRedditSubreddits = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1AccountsByAccountIdRedditSubredditsData, ThrowOnError>) => {
1215
- return (options?.client ?? client).get<GetV1AccountsByAccountIdRedditSubredditsResponse, GetV1AccountsByAccountIdRedditSubredditsError, ThrowOnError>({
1178
+ export const getRedditSubreddits = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetRedditSubredditsData, ThrowOnError>) => {
1179
+ return (options?.client ?? client).get<GetRedditSubredditsResponse, GetRedditSubredditsError, ThrowOnError>({
1216
1180
  ...options,
1217
1181
  url: '/v1/accounts/{accountId}/reddit-subreddits'
1218
1182
  });
@@ -1221,8 +1185,8 @@ export const getV1AccountsByAccountIdRedditSubreddits = <ThrowOnError extends bo
1221
1185
  /**
1222
1186
  * Set default subreddit on the connection
1223
1187
  */
1224
- export const putV1AccountsByAccountIdRedditSubreddits = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PutV1AccountsByAccountIdRedditSubredditsData, ThrowOnError>) => {
1225
- return (options?.client ?? client).put<PutV1AccountsByAccountIdRedditSubredditsResponse, PutV1AccountsByAccountIdRedditSubredditsError, ThrowOnError>({
1188
+ export const updateRedditSubreddits = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateRedditSubredditsData, ThrowOnError>) => {
1189
+ return (options?.client ?? client).put<UpdateRedditSubredditsResponse, UpdateRedditSubredditsError, ThrowOnError>({
1226
1190
  ...options,
1227
1191
  url: '/v1/accounts/{accountId}/reddit-subreddits'
1228
1192
  });
@@ -1235,8 +1199,8 @@ export const putV1AccountsByAccountIdRedditSubreddits = <ThrowOnError extends bo
1235
1199
  * - With `all=true`: Returns all queues for the profile
1236
1200
  *
1237
1201
  */
1238
- export const getV1QueueSlots = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1QueueSlotsData, ThrowOnError>) => {
1239
- return (options?.client ?? client).get<GetV1QueueSlotsResponse, GetV1QueueSlotsError, ThrowOnError>({
1202
+ export const listQueueSlots = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListQueueSlotsData, ThrowOnError>) => {
1203
+ return (options?.client ?? client).get<ListQueueSlotsResponse, ListQueueSlotsError, ThrowOnError>({
1240
1204
  ...options,
1241
1205
  url: '/v1/queue/slots'
1242
1206
  });
@@ -1248,8 +1212,8 @@ export const getV1QueueSlots = <ThrowOnError extends boolean = false>(options: O
1248
1212
  * Subsequent queues are non-default unless explicitly set.
1249
1213
  *
1250
1214
  */
1251
- export const postV1QueueSlots = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1QueueSlotsData, ThrowOnError>) => {
1252
- return (options?.client ?? client).post<PostV1QueueSlotsResponse, PostV1QueueSlotsError, ThrowOnError>({
1215
+ export const createQueueSlot = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateQueueSlotData, ThrowOnError>) => {
1216
+ return (options?.client ?? client).post<CreateQueueSlotResponse, CreateQueueSlotError, ThrowOnError>({
1253
1217
  ...options,
1254
1218
  url: '/v1/queue/slots'
1255
1219
  });
@@ -1263,8 +1227,8 @@ export const postV1QueueSlots = <ThrowOnError extends boolean = false>(options:
1263
1227
  * - With setAsDefault=true: Makes this queue the default for the profile
1264
1228
  *
1265
1229
  */
1266
- export const putV1QueueSlots = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PutV1QueueSlotsData, ThrowOnError>) => {
1267
- return (options?.client ?? client).put<PutV1QueueSlotsResponse, PutV1QueueSlotsError, ThrowOnError>({
1230
+ export const updateQueueSlot = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateQueueSlotData, ThrowOnError>) => {
1231
+ return (options?.client ?? client).put<UpdateQueueSlotResponse, UpdateQueueSlotError, ThrowOnError>({
1268
1232
  ...options,
1269
1233
  url: '/v1/queue/slots'
1270
1234
  });
@@ -1276,8 +1240,8 @@ export const putV1QueueSlots = <ThrowOnError extends boolean = false>(options: O
1276
1240
  * If deleting the default queue, another queue will be promoted to default.
1277
1241
  *
1278
1242
  */
1279
- export const deleteV1QueueSlots = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteV1QueueSlotsData, ThrowOnError>) => {
1280
- return (options?.client ?? client).delete<DeleteV1QueueSlotsResponse, DeleteV1QueueSlotsError, ThrowOnError>({
1243
+ export const deleteQueueSlot = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteQueueSlotData, ThrowOnError>) => {
1244
+ return (options?.client ?? client).delete<DeleteQueueSlotResponse, DeleteQueueSlotError, ThrowOnError>({
1281
1245
  ...options,
1282
1246
  url: '/v1/queue/slots'
1283
1247
  });
@@ -1286,8 +1250,8 @@ export const deleteV1QueueSlots = <ThrowOnError extends boolean = false>(options
1286
1250
  /**
1287
1251
  * Preview upcoming queue slots for a profile
1288
1252
  */
1289
- export const getV1QueuePreview = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1QueuePreviewData, ThrowOnError>) => {
1290
- return (options?.client ?? client).get<GetV1QueuePreviewResponse, GetV1QueuePreviewError, ThrowOnError>({
1253
+ export const previewQueue = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PreviewQueueData, ThrowOnError>) => {
1254
+ return (options?.client ?? client).get<PreviewQueueResponse, PreviewQueueError, ThrowOnError>({
1291
1255
  ...options,
1292
1256
  url: '/v1/queue/preview'
1293
1257
  });
@@ -1301,8 +1265,8 @@ export const getV1QueuePreview = <ThrowOnError extends boolean = false>(options:
1301
1265
  * If no queueId is specified, uses the profile's default queue.
1302
1266
  *
1303
1267
  */
1304
- export const getV1QueueNextSlot = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1QueueNextSlotData, ThrowOnError>) => {
1305
- return (options?.client ?? client).get<GetV1QueueNextSlotResponse, GetV1QueueNextSlotError, ThrowOnError>({
1268
+ export const getNextQueueSlot = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetNextQueueSlotData, ThrowOnError>) => {
1269
+ return (options?.client ?? client).get<GetNextQueueSlotResponse, GetNextQueueSlotError, ThrowOnError>({
1306
1270
  ...options,
1307
1271
  url: '/v1/queue/next-slot'
1308
1272
  });
@@ -1312,8 +1276,8 @@ export const getV1QueueNextSlot = <ThrowOnError extends boolean = false>(options
1312
1276
  * List all webhooks
1313
1277
  * Retrieve all configured webhooks for the authenticated user. Supports up to 10 webhooks per user.
1314
1278
  */
1315
- export const getV1WebhooksSettings = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
1316
- return (options?.client ?? client).get<GetV1WebhooksSettingsResponse, GetV1WebhooksSettingsError, ThrowOnError>({
1279
+ export const getWebhookSettings = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
1280
+ return (options?.client ?? client).get<GetWebhookSettingsResponse, GetWebhookSettingsError, ThrowOnError>({
1317
1281
  ...options,
1318
1282
  url: '/v1/webhooks/settings'
1319
1283
  });
@@ -1326,8 +1290,8 @@ export const getV1WebhooksSettings = <ThrowOnError extends boolean = false>(opti
1326
1290
  * **Note:** Webhooks are automatically disabled after 10 consecutive delivery failures.
1327
1291
  *
1328
1292
  */
1329
- export const postV1WebhooksSettings = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1WebhooksSettingsData, ThrowOnError>) => {
1330
- return (options?.client ?? client).post<PostV1WebhooksSettingsResponse, PostV1WebhooksSettingsError, ThrowOnError>({
1293
+ export const createWebhookSettings = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateWebhookSettingsData, ThrowOnError>) => {
1294
+ return (options?.client ?? client).post<CreateWebhookSettingsResponse, CreateWebhookSettingsError, ThrowOnError>({
1331
1295
  ...options,
1332
1296
  url: '/v1/webhooks/settings'
1333
1297
  });
@@ -1340,8 +1304,8 @@ export const postV1WebhooksSettings = <ThrowOnError extends boolean = false>(opt
1340
1304
  * **Note:** Webhooks are automatically disabled after 10 consecutive delivery failures.
1341
1305
  *
1342
1306
  */
1343
- export const putV1WebhooksSettings = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PutV1WebhooksSettingsData, ThrowOnError>) => {
1344
- return (options?.client ?? client).put<PutV1WebhooksSettingsResponse, PutV1WebhooksSettingsError, ThrowOnError>({
1307
+ export const updateWebhookSettings = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateWebhookSettingsData, ThrowOnError>) => {
1308
+ return (options?.client ?? client).put<UpdateWebhookSettingsResponse, UpdateWebhookSettingsError, ThrowOnError>({
1345
1309
  ...options,
1346
1310
  url: '/v1/webhooks/settings'
1347
1311
  });
@@ -1351,8 +1315,8 @@ export const putV1WebhooksSettings = <ThrowOnError extends boolean = false>(opti
1351
1315
  * Delete a webhook
1352
1316
  * Permanently delete a webhook configuration.
1353
1317
  */
1354
- export const deleteV1WebhooksSettings = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteV1WebhooksSettingsData, ThrowOnError>) => {
1355
- return (options?.client ?? client).delete<DeleteV1WebhooksSettingsResponse, DeleteV1WebhooksSettingsError, ThrowOnError>({
1318
+ export const deleteWebhookSettings = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteWebhookSettingsData, ThrowOnError>) => {
1319
+ return (options?.client ?? client).delete<DeleteWebhookSettingsResponse, DeleteWebhookSettingsError, ThrowOnError>({
1356
1320
  ...options,
1357
1321
  url: '/v1/webhooks/settings'
1358
1322
  });
@@ -1364,8 +1328,8 @@ export const deleteV1WebhooksSettings = <ThrowOnError extends boolean = false>(o
1364
1328
  * The test payload includes `event: "webhook.test"` to distinguish it from real events.
1365
1329
  *
1366
1330
  */
1367
- export const postV1WebhooksTest = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1WebhooksTestData, ThrowOnError>) => {
1368
- return (options?.client ?? client).post<PostV1WebhooksTestResponse, PostV1WebhooksTestError, ThrowOnError>({
1331
+ export const testWebhook = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<TestWebhookData, ThrowOnError>) => {
1332
+ return (options?.client ?? client).post<TestWebhookResponse, TestWebhookError, ThrowOnError>({
1369
1333
  ...options,
1370
1334
  url: '/v1/webhooks/test'
1371
1335
  });
@@ -1376,8 +1340,8 @@ export const postV1WebhooksTest = <ThrowOnError extends boolean = false>(options
1376
1340
  * Retrieve webhook delivery history. Logs are automatically deleted after 7 days.
1377
1341
  *
1378
1342
  */
1379
- export const getV1WebhooksLogs = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetV1WebhooksLogsData, ThrowOnError>) => {
1380
- return (options?.client ?? client).get<GetV1WebhooksLogsResponse, GetV1WebhooksLogsError, ThrowOnError>({
1343
+ export const getWebhookLogs = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetWebhookLogsData, ThrowOnError>) => {
1344
+ return (options?.client ?? client).get<GetWebhookLogsResponse, GetWebhookLogsError, ThrowOnError>({
1381
1345
  ...options,
1382
1346
  url: '/v1/webhooks/logs'
1383
1347
  });
@@ -1396,8 +1360,8 @@ export const getV1WebhooksLogs = <ThrowOnError extends boolean = false>(options?
1396
1360
  * **Retention:** Logs are automatically deleted after 7 days.
1397
1361
  *
1398
1362
  */
1399
- export const getV1Logs = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetV1LogsData, ThrowOnError>) => {
1400
- return (options?.client ?? client).get<GetV1LogsResponse, GetV1LogsError, ThrowOnError>({
1363
+ export const listLogs = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListLogsData, ThrowOnError>) => {
1364
+ return (options?.client ?? client).get<ListLogsResponse, ListLogsError, ThrowOnError>({
1401
1365
  ...options,
1402
1366
  url: '/v1/logs'
1403
1367
  });
@@ -1409,8 +1373,8 @@ export const getV1Logs = <ThrowOnError extends boolean = false>(options?: Option
1409
1373
  * and response bodies for debugging.
1410
1374
  *
1411
1375
  */
1412
- export const getV1LogsByLogId = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1LogsByLogIdData, ThrowOnError>) => {
1413
- return (options?.client ?? client).get<GetV1LogsByLogIdResponse, GetV1LogsByLogIdError, ThrowOnError>({
1376
+ export const getLog = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetLogData, ThrowOnError>) => {
1377
+ return (options?.client ?? client).get<GetLogResponse, GetLogError, ThrowOnError>({
1414
1378
  ...options,
1415
1379
  url: '/v1/logs/{logId}'
1416
1380
  });
@@ -1422,8 +1386,8 @@ export const getV1LogsByLogId = <ThrowOnError extends boolean = false>(options:
1422
1386
  * of publishing attempts for that post across all platforms.
1423
1387
  *
1424
1388
  */
1425
- export const getV1PostsByPostIdLogs = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1PostsByPostIdLogsData, ThrowOnError>) => {
1426
- return (options?.client ?? client).get<GetV1PostsByPostIdLogsResponse, GetV1PostsByPostIdLogsError, ThrowOnError>({
1389
+ export const getPostLogs = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetPostLogsData, ThrowOnError>) => {
1390
+ return (options?.client ?? client).get<GetPostLogsResponse, GetPostLogsError, ThrowOnError>({
1427
1391
  ...options,
1428
1392
  url: '/v1/posts/{postId}/logs'
1429
1393
  });