@getlatedev/node 0.1.0 → 0.1.1

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, ListPlatformInvitesData, ListPlatformInvitesError, ListPlatformInvitesResponse, CreatePlatformInviteData, CreatePlatformInviteError, CreatePlatformInviteResponse, DeletePlatformInviteData, DeletePlatformInviteError, DeletePlatformInviteResponse, 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,8 +614,8 @@ 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
  });
@@ -625,8 +625,8 @@ export const postV1InviteTokens = <ThrowOnError extends boolean = false>(options
625
625
  * List platform connection invites
626
626
  * Get all platform connection invites you've created
627
627
  */
628
- export const getV1PlatformInvites = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetV1PlatformInvitesData, ThrowOnError>) => {
629
- return (options?.client ?? client).get<GetV1PlatformInvitesResponse, GetV1PlatformInvitesError, ThrowOnError>({
628
+ export const listPlatformInvites = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListPlatformInvitesData, ThrowOnError>) => {
629
+ return (options?.client ?? client).get<ListPlatformInvitesResponse, ListPlatformInvitesError, ThrowOnError>({
630
630
  ...options,
631
631
  url: '/v1/platform-invites'
632
632
  });
@@ -639,8 +639,8 @@ export const getV1PlatformInvites = <ThrowOnError extends boolean = false>(optio
639
639
  * Invites expire after 7 days.
640
640
  *
641
641
  */
642
- export const postV1PlatformInvites = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1PlatformInvitesData, ThrowOnError>) => {
643
- return (options?.client ?? client).post<PostV1PlatformInvitesResponse, PostV1PlatformInvitesError, ThrowOnError>({
642
+ export const createPlatformInvite = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreatePlatformInviteData, ThrowOnError>) => {
643
+ return (options?.client ?? client).post<CreatePlatformInviteResponse, CreatePlatformInviteError, ThrowOnError>({
644
644
  ...options,
645
645
  url: '/v1/platform-invites'
646
646
  });
@@ -650,8 +650,8 @@ export const postV1PlatformInvites = <ThrowOnError extends boolean = false>(opti
650
650
  * Revoke a platform connection invite
651
651
  * Delete an unused platform invite. Only unused invites can be deleted.
652
652
  */
653
- export const deleteV1PlatformInvites = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteV1PlatformInvitesData, ThrowOnError>) => {
654
- return (options?.client ?? client).delete<DeleteV1PlatformInvitesResponse, DeleteV1PlatformInvitesError, ThrowOnError>({
653
+ export const deletePlatformInvite = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeletePlatformInviteData, ThrowOnError>) => {
654
+ return (options?.client ?? client).delete<DeletePlatformInviteResponse, DeletePlatformInviteError, ThrowOnError>({
655
655
  ...options,
656
656
  url: '/v1/platform-invites'
657
657
  });
@@ -741,8 +741,8 @@ export const deleteV1PlatformInvites = <ThrowOnError extends boolean = false>(op
741
741
  * 5. In this mode, users never see Late's hosted location selector – only your UI.
742
742
  *
743
743
  */
744
- export const getV1ConnectByPlatform = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1ConnectByPlatformData, ThrowOnError>) => {
745
- return (options?.client ?? client).get<GetV1ConnectByPlatformResponse, GetV1ConnectByPlatformError, ThrowOnError>({
744
+ export const getConnectUrl = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetConnectUrlData, ThrowOnError>) => {
745
+ return (options?.client ?? client).get<GetConnectUrlResponse, GetConnectUrlError, ThrowOnError>({
746
746
  ...options,
747
747
  url: '/v1/connect/{platform}'
748
748
  });
@@ -751,8 +751,8 @@ export const getV1ConnectByPlatform = <ThrowOnError extends boolean = false>(opt
751
751
  /**
752
752
  * Complete OAuth token exchange manually (for server-side flows)
753
753
  */
754
- export const postV1ConnectByPlatform = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1ConnectByPlatformData, ThrowOnError>) => {
755
- return (options?.client ?? client).post<PostV1ConnectByPlatformResponse, PostV1ConnectByPlatformError, ThrowOnError>({
754
+ export const handleOAuthCallback = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleOAuthCallbackData, ThrowOnError>) => {
755
+ return (options?.client ?? client).post<HandleOAuthCallbackResponse, HandleOAuthCallbackError, ThrowOnError>({
756
756
  ...options,
757
757
  url: '/v1/connect/{platform}'
758
758
  });
@@ -773,8 +773,8 @@ export const postV1ConnectByPlatform = <ThrowOnError extends boolean = false>(op
773
773
  * (rather than a browser session).
774
774
  *
775
775
  */
776
- export const getV1ConnectFacebookSelectPage = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1ConnectFacebookSelectPageData, ThrowOnError>) => {
777
- return (options?.client ?? client).get<GetV1ConnectFacebookSelectPageResponse, GetV1ConnectFacebookSelectPageError, ThrowOnError>({
776
+ export const listFacebookPages = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListFacebookPagesData, ThrowOnError>) => {
777
+ return (options?.client ?? client).get<ListFacebookPagesResponse, ListFacebookPagesError, ThrowOnError>({
778
778
  ...options,
779
779
  url: '/v1/connect/facebook/select-page'
780
780
  });
@@ -793,8 +793,8 @@ export const getV1ConnectFacebookSelectPage = <ThrowOnError extends boolean = fa
793
793
  * **Note:** Use the `X-Connect-Token` header if you initiated the connection via API key.
794
794
  *
795
795
  */
796
- export const postV1ConnectFacebookSelectPage = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1ConnectFacebookSelectPageData, ThrowOnError>) => {
797
- return (options?.client ?? client).post<PostV1ConnectFacebookSelectPageResponse, PostV1ConnectFacebookSelectPageError, ThrowOnError>({
796
+ export const selectFacebookPage = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SelectFacebookPageData, ThrowOnError>) => {
797
+ return (options?.client ?? client).post<SelectFacebookPageResponse, SelectFacebookPageError, ThrowOnError>({
798
798
  ...options,
799
799
  url: '/v1/connect/facebook/select-page'
800
800
  });
@@ -815,8 +815,8 @@ export const postV1ConnectFacebookSelectPage = <ThrowOnError extends boolean = f
815
815
  * (rather than a browser session).
816
816
  *
817
817
  */
818
- export const getV1ConnectGooglebusinessLocations = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1ConnectGooglebusinessLocationsData, ThrowOnError>) => {
819
- return (options?.client ?? client).get<GetV1ConnectGooglebusinessLocationsResponse, GetV1ConnectGooglebusinessLocationsError, ThrowOnError>({
818
+ export const listGoogleBusinessLocations = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListGoogleBusinessLocationsData, ThrowOnError>) => {
819
+ return (options?.client ?? client).get<ListGoogleBusinessLocationsResponse, ListGoogleBusinessLocationsError, ThrowOnError>({
820
820
  ...options,
821
821
  url: '/v1/connect/googlebusiness/locations'
822
822
  });
@@ -835,8 +835,8 @@ export const getV1ConnectGooglebusinessLocations = <ThrowOnError extends boolean
835
835
  * **Note:** Use the `X-Connect-Token` header if you initiated the connection via API key.
836
836
  *
837
837
  */
838
- export const postV1ConnectGooglebusinessSelectLocation = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1ConnectGooglebusinessSelectLocationData, ThrowOnError>) => {
839
- return (options?.client ?? client).post<PostV1ConnectGooglebusinessSelectLocationResponse, PostV1ConnectGooglebusinessSelectLocationError, ThrowOnError>({
838
+ export const selectGoogleBusinessLocation = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SelectGoogleBusinessLocationData, ThrowOnError>) => {
839
+ return (options?.client ?? client).post<SelectGoogleBusinessLocationResponse, SelectGoogleBusinessLocationError, ThrowOnError>({
840
840
  ...options,
841
841
  url: '/v1/connect/googlebusiness/select-location'
842
842
  });
@@ -856,8 +856,8 @@ export const postV1ConnectGooglebusinessSelectLocation = <ThrowOnError extends b
856
856
  * Use pagination via `nextPageToken` to fetch all reviews for locations with many reviews.
857
857
  *
858
858
  */
859
- export const getV1AccountsByAccountIdGmbReviews = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1AccountsByAccountIdGmbReviewsData, ThrowOnError>) => {
860
- return (options?.client ?? client).get<GetV1AccountsByAccountIdGmbReviewsResponse, GetV1AccountsByAccountIdGmbReviewsError, ThrowOnError>({
859
+ export const getGoogleBusinessReviews = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetGoogleBusinessReviewsData, ThrowOnError>) => {
860
+ return (options?.client ?? client).get<GetGoogleBusinessReviewsResponse, GetGoogleBusinessReviewsError, ThrowOnError>({
861
861
  ...options,
862
862
  url: '/v1/accounts/{accountId}/gmb-reviews'
863
863
  });
@@ -877,8 +877,8 @@ export const getV1AccountsByAccountIdGmbReviews = <ThrowOnError extends boolean
877
877
  * Details are fetched directly from LinkedIn's API in parallel for fast response times.
878
878
  *
879
879
  */
880
- export const getV1ConnectLinkedinOrganizations = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1ConnectLinkedinOrganizationsData, ThrowOnError>) => {
881
- return (options?.client ?? client).get<GetV1ConnectLinkedinOrganizationsResponse, GetV1ConnectLinkedinOrganizationsError, ThrowOnError>({
880
+ export const listLinkedInOrganizations = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListLinkedInOrganizationsData, ThrowOnError>) => {
881
+ return (options?.client ?? client).get<ListLinkedInOrganizationsResponse, ListLinkedInOrganizationsError, ThrowOnError>({
882
882
  ...options,
883
883
  url: '/v1/connect/linkedin/organizations'
884
884
  });
@@ -901,8 +901,8 @@ export const getV1ConnectLinkedinOrganizations = <ThrowOnError extends boolean =
901
901
  * **Headless Mode:** Use the `X-Connect-Token` header if you initiated the connection via API key.
902
902
  *
903
903
  */
904
- export const postV1ConnectLinkedinSelectOrganization = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1ConnectLinkedinSelectOrganizationData, ThrowOnError>) => {
905
- return (options?.client ?? client).post<PostV1ConnectLinkedinSelectOrganizationResponse, PostV1ConnectLinkedinSelectOrganizationError, ThrowOnError>({
904
+ export const selectLinkedInOrganization = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SelectLinkedInOrganizationData, ThrowOnError>) => {
905
+ return (options?.client ?? client).post<SelectLinkedInOrganizationResponse, SelectLinkedInOrganizationError, ThrowOnError>({
906
906
  ...options,
907
907
  url: '/v1/connect/linkedin/select-organization'
908
908
  });
@@ -922,8 +922,8 @@ export const postV1ConnectLinkedinSelectOrganization = <ThrowOnError extends boo
922
922
  * **Authentication:** Use `X-Connect-Token` header with the `connect_token` from the redirect URL.
923
923
  *
924
924
  */
925
- export const getV1ConnectPinterestSelectBoard = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1ConnectPinterestSelectBoardData, ThrowOnError>) => {
926
- return (options?.client ?? client).get<GetV1ConnectPinterestSelectBoardResponse, GetV1ConnectPinterestSelectBoardError, ThrowOnError>({
925
+ export const listPinterestBoardsForSelection = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListPinterestBoardsForSelectionData, ThrowOnError>) => {
926
+ return (options?.client ?? client).get<ListPinterestBoardsForSelectionResponse, ListPinterestBoardsForSelectionError, ThrowOnError>({
927
927
  ...options,
928
928
  url: '/v1/connect/pinterest/select-board'
929
929
  });
@@ -938,8 +938,8 @@ export const getV1ConnectPinterestSelectBoard = <ThrowOnError extends boolean =
938
938
  * **Headless Mode:** Use the `X-Connect-Token` header if you initiated the connection via API key.
939
939
  *
940
940
  */
941
- export const postV1ConnectPinterestSelectBoard = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1ConnectPinterestSelectBoardData, ThrowOnError>) => {
942
- return (options?.client ?? client).post<PostV1ConnectPinterestSelectBoardResponse, PostV1ConnectPinterestSelectBoardError, ThrowOnError>({
941
+ export const selectPinterestBoard = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SelectPinterestBoardData, ThrowOnError>) => {
942
+ return (options?.client ?? client).post<SelectPinterestBoardResponse, SelectPinterestBoardError, ThrowOnError>({
943
943
  ...options,
944
944
  url: '/v1/connect/pinterest/select-board'
945
945
  });
@@ -959,8 +959,8 @@ export const postV1ConnectPinterestSelectBoard = <ThrowOnError extends boolean =
959
959
  * **Authentication:** Use `X-Connect-Token` header with the `connect_token` from the redirect URL.
960
960
  *
961
961
  */
962
- export const getV1ConnectSnapchatSelectProfile = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1ConnectSnapchatSelectProfileData, ThrowOnError>) => {
963
- return (options?.client ?? client).get<GetV1ConnectSnapchatSelectProfileResponse, GetV1ConnectSnapchatSelectProfileError, ThrowOnError>({
962
+ export const listSnapchatProfiles = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListSnapchatProfilesData, ThrowOnError>) => {
963
+ return (options?.client ?? client).get<ListSnapchatProfilesResponse, ListSnapchatProfilesError, ThrowOnError>({
964
964
  ...options,
965
965
  url: '/v1/connect/snapchat/select-profile'
966
966
  });
@@ -987,8 +987,8 @@ export const getV1ConnectSnapchatSelectProfile = <ThrowOnError extends boolean =
987
987
  * Parse `publicProfiles` to build your custom selector UI, then call this endpoint with the selected profile.
988
988
  *
989
989
  */
990
- export const postV1ConnectSnapchatSelectProfile = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1ConnectSnapchatSelectProfileData, ThrowOnError>) => {
991
- return (options?.client ?? client).post<PostV1ConnectSnapchatSelectProfileResponse, PostV1ConnectSnapchatSelectProfileError, ThrowOnError>({
990
+ export const selectSnapchatProfile = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SelectSnapchatProfileData, ThrowOnError>) => {
991
+ return (options?.client ?? client).post<SelectSnapchatProfileResponse, SelectSnapchatProfileError, ThrowOnError>({
992
992
  ...options,
993
993
  url: '/v1/connect/snapchat/select-profile'
994
994
  });
@@ -1001,8 +1001,8 @@ export const postV1ConnectSnapchatSelectProfile = <ThrowOnError extends boolean
1001
1001
  * To get your userId for the state parameter, call `GET /v1/users` - the response includes a `currentUserId` field.
1002
1002
  *
1003
1003
  */
1004
- export const postV1ConnectBlueskyCredentials = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1ConnectBlueskyCredentialsData, ThrowOnError>) => {
1005
- return (options?.client ?? client).post<PostV1ConnectBlueskyCredentialsResponse, PostV1ConnectBlueskyCredentialsError, ThrowOnError>({
1004
+ export const connectBlueskyCredentials = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ConnectBlueskyCredentialsData, ThrowOnError>) => {
1005
+ return (options?.client ?? client).post<ConnectBlueskyCredentialsResponse, ConnectBlueskyCredentialsError, ThrowOnError>({
1006
1006
  ...options,
1007
1007
  url: '/v1/connect/bluesky/credentials'
1008
1008
  });
@@ -1022,8 +1022,8 @@ export const postV1ConnectBlueskyCredentials = <ThrowOnError extends boolean = f
1022
1022
  * **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
1023
  *
1024
1024
  */
1025
- export const getV1ConnectTelegram = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1ConnectTelegramData, ThrowOnError>) => {
1026
- return (options?.client ?? client).get<GetV1ConnectTelegramResponse, GetV1ConnectTelegramError, ThrowOnError>({
1025
+ export const getTelegramConnectStatus = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetTelegramConnectStatusData, ThrowOnError>) => {
1026
+ return (options?.client ?? client).get<GetTelegramConnectStatusResponse, GetTelegramConnectStatusError, ThrowOnError>({
1027
1027
  ...options,
1028
1028
  url: '/v1/connect/telegram'
1029
1029
  });
@@ -1037,8 +1037,8 @@ export const getV1ConnectTelegram = <ThrowOnError extends boolean = false>(optio
1037
1037
  * The bot must already be added as an administrator in the channel/group.
1038
1038
  *
1039
1039
  */
1040
- export const postV1ConnectTelegram = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1ConnectTelegramData, ThrowOnError>) => {
1041
- return (options?.client ?? client).post<PostV1ConnectTelegramResponse, PostV1ConnectTelegramError, ThrowOnError>({
1040
+ export const initiateTelegramConnect = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<InitiateTelegramConnectData, ThrowOnError>) => {
1041
+ return (options?.client ?? client).post<InitiateTelegramConnectResponse, InitiateTelegramConnectError, ThrowOnError>({
1042
1042
  ...options,
1043
1043
  url: '/v1/connect/telegram'
1044
1044
  });
@@ -1056,8 +1056,8 @@ export const postV1ConnectTelegram = <ThrowOnError extends boolean = false>(opti
1056
1056
  * - `expired`: Code has expired, generate a new one
1057
1057
  *
1058
1058
  */
1059
- export const patchV1ConnectTelegram = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PatchV1ConnectTelegramData, ThrowOnError>) => {
1060
- return (options?.client ?? client).patch<PatchV1ConnectTelegramResponse, PatchV1ConnectTelegramError, ThrowOnError>({
1059
+ export const completeTelegramConnect = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CompleteTelegramConnectData, ThrowOnError>) => {
1060
+ return (options?.client ?? client).patch<CompleteTelegramConnectResponse, CompleteTelegramConnectError, ThrowOnError>({
1061
1061
  ...options,
1062
1062
  url: '/v1/connect/telegram'
1063
1063
  });
@@ -1066,8 +1066,8 @@ export const patchV1ConnectTelegram = <ThrowOnError extends boolean = false>(opt
1066
1066
  /**
1067
1067
  * Update selected Facebook page for a connected account
1068
1068
  */
1069
- export const putV1AccountsByAccountIdFacebookPage = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PutV1AccountsByAccountIdFacebookPageData, ThrowOnError>) => {
1070
- return (options?.client ?? client).put<PutV1AccountsByAccountIdFacebookPageResponse, PutV1AccountsByAccountIdFacebookPageError, ThrowOnError>({
1069
+ export const updateFacebookPage = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateFacebookPageData, ThrowOnError>) => {
1070
+ return (options?.client ?? client).put<UpdateFacebookPageResponse, UpdateFacebookPageError, ThrowOnError>({
1071
1071
  ...options,
1072
1072
  url: '/v1/accounts/{accountId}/facebook-page'
1073
1073
  });
@@ -1076,8 +1076,8 @@ export const putV1AccountsByAccountIdFacebookPage = <ThrowOnError extends boolea
1076
1076
  /**
1077
1077
  * Get available LinkedIn organizations for a connected account
1078
1078
  */
1079
- export const getV1AccountsByAccountIdLinkedinOrganizations = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1AccountsByAccountIdLinkedinOrganizationsData, ThrowOnError>) => {
1080
- return (options?.client ?? client).get<GetV1AccountsByAccountIdLinkedinOrganizationsResponse, GetV1AccountsByAccountIdLinkedinOrganizationsError, ThrowOnError>({
1079
+ export const getLinkedInOrganizations = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetLinkedInOrganizationsData, ThrowOnError>) => {
1080
+ return (options?.client ?? client).get<GetLinkedInOrganizationsResponse, GetLinkedInOrganizationsError, ThrowOnError>({
1081
1081
  ...options,
1082
1082
  url: '/v1/accounts/{accountId}/linkedin-organizations'
1083
1083
  });
@@ -1112,8 +1112,8 @@ export const getV1AccountsByAccountIdLinkedinOrganizations = <ThrowOnError exten
1112
1112
  * **LinkedIn API Limitation:** The combination of `MEMBERS_REACHED` + `DAILY` aggregation is not supported by LinkedIn's API.
1113
1113
  *
1114
1114
  */
1115
- export const getV1AccountsByAccountIdLinkedinAggregateAnalytics = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1AccountsByAccountIdLinkedinAggregateAnalyticsData, ThrowOnError>) => {
1116
- return (options?.client ?? client).get<GetV1AccountsByAccountIdLinkedinAggregateAnalyticsResponse, GetV1AccountsByAccountIdLinkedinAggregateAnalyticsError, ThrowOnError>({
1115
+ export const getLinkedInAggregateAnalytics = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetLinkedInAggregateAnalyticsData, ThrowOnError>) => {
1116
+ return (options?.client ?? client).get<GetLinkedInAggregateAnalyticsResponse, GetLinkedInAggregateAnalyticsError, ThrowOnError>({
1117
1117
  ...options,
1118
1118
  url: '/v1/accounts/{accountId}/linkedin-aggregate-analytics'
1119
1119
  });
@@ -1139,8 +1139,8 @@ export const getV1AccountsByAccountIdLinkedinAggregateAnalytics = <ThrowOnError
1139
1139
  * - Available metrics: impressions, reach, clicks, likes, comments, shares, video views (video posts only), engagement rate
1140
1140
  *
1141
1141
  */
1142
- export const getV1AccountsByAccountIdLinkedinPostAnalytics = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1AccountsByAccountIdLinkedinPostAnalyticsData, ThrowOnError>) => {
1143
- return (options?.client ?? client).get<GetV1AccountsByAccountIdLinkedinPostAnalyticsResponse, GetV1AccountsByAccountIdLinkedinPostAnalyticsError, ThrowOnError>({
1142
+ export const getLinkedInPostAnalytics = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetLinkedInPostAnalyticsData, ThrowOnError>) => {
1143
+ return (options?.client ?? client).get<GetLinkedInPostAnalyticsResponse, GetLinkedInPostAnalyticsError, ThrowOnError>({
1144
1144
  ...options,
1145
1145
  url: '/v1/accounts/{accountId}/linkedin-post-analytics'
1146
1146
  });
@@ -1149,8 +1149,8 @@ export const getV1AccountsByAccountIdLinkedinPostAnalytics = <ThrowOnError exten
1149
1149
  /**
1150
1150
  * Switch LinkedIn account type (personal/organization)
1151
1151
  */
1152
- export const putV1AccountsByAccountIdLinkedinOrganization = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PutV1AccountsByAccountIdLinkedinOrganizationData, ThrowOnError>) => {
1153
- return (options?.client ?? client).put<PutV1AccountsByAccountIdLinkedinOrganizationResponse, PutV1AccountsByAccountIdLinkedinOrganizationError, ThrowOnError>({
1152
+ export const updateLinkedInOrganization = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateLinkedInOrganizationData, ThrowOnError>) => {
1153
+ return (options?.client ?? client).put<UpdateLinkedInOrganizationResponse, UpdateLinkedInOrganizationError, ThrowOnError>({
1154
1154
  ...options,
1155
1155
  url: '/v1/accounts/{accountId}/linkedin-organization'
1156
1156
  });
@@ -1181,8 +1181,8 @@ export const putV1AccountsByAccountIdLinkedinOrganization = <ThrowOnError extend
1181
1181
  * ```
1182
1182
  *
1183
1183
  */
1184
- export const getV1AccountsByAccountIdLinkedinMentions = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1AccountsByAccountIdLinkedinMentionsData, ThrowOnError>) => {
1185
- return (options?.client ?? client).get<GetV1AccountsByAccountIdLinkedinMentionsResponse, GetV1AccountsByAccountIdLinkedinMentionsError, ThrowOnError>({
1184
+ export const getLinkedInMentions = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetLinkedInMentionsData, ThrowOnError>) => {
1185
+ return (options?.client ?? client).get<GetLinkedInMentionsResponse, GetLinkedInMentionsError, ThrowOnError>({
1186
1186
  ...options,
1187
1187
  url: '/v1/accounts/{accountId}/linkedin-mentions'
1188
1188
  });
@@ -1191,8 +1191,8 @@ export const getV1AccountsByAccountIdLinkedinMentions = <ThrowOnError extends bo
1191
1191
  /**
1192
1192
  * List Pinterest boards for a connected account
1193
1193
  */
1194
- export const getV1AccountsByAccountIdPinterestBoards = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1AccountsByAccountIdPinterestBoardsData, ThrowOnError>) => {
1195
- return (options?.client ?? client).get<GetV1AccountsByAccountIdPinterestBoardsResponse, GetV1AccountsByAccountIdPinterestBoardsError, ThrowOnError>({
1194
+ export const getPinterestBoards = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetPinterestBoardsData, ThrowOnError>) => {
1195
+ return (options?.client ?? client).get<GetPinterestBoardsResponse, GetPinterestBoardsError, ThrowOnError>({
1196
1196
  ...options,
1197
1197
  url: '/v1/accounts/{accountId}/pinterest-boards'
1198
1198
  });
@@ -1201,8 +1201,8 @@ export const getV1AccountsByAccountIdPinterestBoards = <ThrowOnError extends boo
1201
1201
  /**
1202
1202
  * Set default Pinterest board on the connection
1203
1203
  */
1204
- export const putV1AccountsByAccountIdPinterestBoards = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PutV1AccountsByAccountIdPinterestBoardsData, ThrowOnError>) => {
1205
- return (options?.client ?? client).put<PutV1AccountsByAccountIdPinterestBoardsResponse, PutV1AccountsByAccountIdPinterestBoardsError, ThrowOnError>({
1204
+ export const updatePinterestBoards = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdatePinterestBoardsData, ThrowOnError>) => {
1205
+ return (options?.client ?? client).put<UpdatePinterestBoardsResponse, UpdatePinterestBoardsError, ThrowOnError>({
1206
1206
  ...options,
1207
1207
  url: '/v1/accounts/{accountId}/pinterest-boards'
1208
1208
  });
@@ -1211,8 +1211,8 @@ export const putV1AccountsByAccountIdPinterestBoards = <ThrowOnError extends boo
1211
1211
  /**
1212
1212
  * List Reddit subreddits for a connected account
1213
1213
  */
1214
- export const getV1AccountsByAccountIdRedditSubreddits = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1AccountsByAccountIdRedditSubredditsData, ThrowOnError>) => {
1215
- return (options?.client ?? client).get<GetV1AccountsByAccountIdRedditSubredditsResponse, GetV1AccountsByAccountIdRedditSubredditsError, ThrowOnError>({
1214
+ export const getRedditSubreddits = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetRedditSubredditsData, ThrowOnError>) => {
1215
+ return (options?.client ?? client).get<GetRedditSubredditsResponse, GetRedditSubredditsError, ThrowOnError>({
1216
1216
  ...options,
1217
1217
  url: '/v1/accounts/{accountId}/reddit-subreddits'
1218
1218
  });
@@ -1221,8 +1221,8 @@ export const getV1AccountsByAccountIdRedditSubreddits = <ThrowOnError extends bo
1221
1221
  /**
1222
1222
  * Set default subreddit on the connection
1223
1223
  */
1224
- export const putV1AccountsByAccountIdRedditSubreddits = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PutV1AccountsByAccountIdRedditSubredditsData, ThrowOnError>) => {
1225
- return (options?.client ?? client).put<PutV1AccountsByAccountIdRedditSubredditsResponse, PutV1AccountsByAccountIdRedditSubredditsError, ThrowOnError>({
1224
+ export const updateRedditSubreddits = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateRedditSubredditsData, ThrowOnError>) => {
1225
+ return (options?.client ?? client).put<UpdateRedditSubredditsResponse, UpdateRedditSubredditsError, ThrowOnError>({
1226
1226
  ...options,
1227
1227
  url: '/v1/accounts/{accountId}/reddit-subreddits'
1228
1228
  });
@@ -1235,8 +1235,8 @@ export const putV1AccountsByAccountIdRedditSubreddits = <ThrowOnError extends bo
1235
1235
  * - With `all=true`: Returns all queues for the profile
1236
1236
  *
1237
1237
  */
1238
- export const getV1QueueSlots = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1QueueSlotsData, ThrowOnError>) => {
1239
- return (options?.client ?? client).get<GetV1QueueSlotsResponse, GetV1QueueSlotsError, ThrowOnError>({
1238
+ export const listQueueSlots = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListQueueSlotsData, ThrowOnError>) => {
1239
+ return (options?.client ?? client).get<ListQueueSlotsResponse, ListQueueSlotsError, ThrowOnError>({
1240
1240
  ...options,
1241
1241
  url: '/v1/queue/slots'
1242
1242
  });
@@ -1248,8 +1248,8 @@ export const getV1QueueSlots = <ThrowOnError extends boolean = false>(options: O
1248
1248
  * Subsequent queues are non-default unless explicitly set.
1249
1249
  *
1250
1250
  */
1251
- export const postV1QueueSlots = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1QueueSlotsData, ThrowOnError>) => {
1252
- return (options?.client ?? client).post<PostV1QueueSlotsResponse, PostV1QueueSlotsError, ThrowOnError>({
1251
+ export const createQueueSlot = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateQueueSlotData, ThrowOnError>) => {
1252
+ return (options?.client ?? client).post<CreateQueueSlotResponse, CreateQueueSlotError, ThrowOnError>({
1253
1253
  ...options,
1254
1254
  url: '/v1/queue/slots'
1255
1255
  });
@@ -1263,8 +1263,8 @@ export const postV1QueueSlots = <ThrowOnError extends boolean = false>(options:
1263
1263
  * - With setAsDefault=true: Makes this queue the default for the profile
1264
1264
  *
1265
1265
  */
1266
- export const putV1QueueSlots = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PutV1QueueSlotsData, ThrowOnError>) => {
1267
- return (options?.client ?? client).put<PutV1QueueSlotsResponse, PutV1QueueSlotsError, ThrowOnError>({
1266
+ export const updateQueueSlot = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateQueueSlotData, ThrowOnError>) => {
1267
+ return (options?.client ?? client).put<UpdateQueueSlotResponse, UpdateQueueSlotError, ThrowOnError>({
1268
1268
  ...options,
1269
1269
  url: '/v1/queue/slots'
1270
1270
  });
@@ -1276,8 +1276,8 @@ export const putV1QueueSlots = <ThrowOnError extends boolean = false>(options: O
1276
1276
  * If deleting the default queue, another queue will be promoted to default.
1277
1277
  *
1278
1278
  */
1279
- export const deleteV1QueueSlots = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteV1QueueSlotsData, ThrowOnError>) => {
1280
- return (options?.client ?? client).delete<DeleteV1QueueSlotsResponse, DeleteV1QueueSlotsError, ThrowOnError>({
1279
+ export const deleteQueueSlot = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteQueueSlotData, ThrowOnError>) => {
1280
+ return (options?.client ?? client).delete<DeleteQueueSlotResponse, DeleteQueueSlotError, ThrowOnError>({
1281
1281
  ...options,
1282
1282
  url: '/v1/queue/slots'
1283
1283
  });
@@ -1286,8 +1286,8 @@ export const deleteV1QueueSlots = <ThrowOnError extends boolean = false>(options
1286
1286
  /**
1287
1287
  * Preview upcoming queue slots for a profile
1288
1288
  */
1289
- export const getV1QueuePreview = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1QueuePreviewData, ThrowOnError>) => {
1290
- return (options?.client ?? client).get<GetV1QueuePreviewResponse, GetV1QueuePreviewError, ThrowOnError>({
1289
+ export const previewQueue = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PreviewQueueData, ThrowOnError>) => {
1290
+ return (options?.client ?? client).get<PreviewQueueResponse, PreviewQueueError, ThrowOnError>({
1291
1291
  ...options,
1292
1292
  url: '/v1/queue/preview'
1293
1293
  });
@@ -1301,8 +1301,8 @@ export const getV1QueuePreview = <ThrowOnError extends boolean = false>(options:
1301
1301
  * If no queueId is specified, uses the profile's default queue.
1302
1302
  *
1303
1303
  */
1304
- export const getV1QueueNextSlot = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1QueueNextSlotData, ThrowOnError>) => {
1305
- return (options?.client ?? client).get<GetV1QueueNextSlotResponse, GetV1QueueNextSlotError, ThrowOnError>({
1304
+ export const getNextQueueSlot = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetNextQueueSlotData, ThrowOnError>) => {
1305
+ return (options?.client ?? client).get<GetNextQueueSlotResponse, GetNextQueueSlotError, ThrowOnError>({
1306
1306
  ...options,
1307
1307
  url: '/v1/queue/next-slot'
1308
1308
  });
@@ -1312,8 +1312,8 @@ export const getV1QueueNextSlot = <ThrowOnError extends boolean = false>(options
1312
1312
  * List all webhooks
1313
1313
  * Retrieve all configured webhooks for the authenticated user. Supports up to 10 webhooks per user.
1314
1314
  */
1315
- export const getV1WebhooksSettings = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
1316
- return (options?.client ?? client).get<GetV1WebhooksSettingsResponse, GetV1WebhooksSettingsError, ThrowOnError>({
1315
+ export const getWebhookSettings = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
1316
+ return (options?.client ?? client).get<GetWebhookSettingsResponse, GetWebhookSettingsError, ThrowOnError>({
1317
1317
  ...options,
1318
1318
  url: '/v1/webhooks/settings'
1319
1319
  });
@@ -1326,8 +1326,8 @@ export const getV1WebhooksSettings = <ThrowOnError extends boolean = false>(opti
1326
1326
  * **Note:** Webhooks are automatically disabled after 10 consecutive delivery failures.
1327
1327
  *
1328
1328
  */
1329
- export const postV1WebhooksSettings = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1WebhooksSettingsData, ThrowOnError>) => {
1330
- return (options?.client ?? client).post<PostV1WebhooksSettingsResponse, PostV1WebhooksSettingsError, ThrowOnError>({
1329
+ export const createWebhookSettings = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateWebhookSettingsData, ThrowOnError>) => {
1330
+ return (options?.client ?? client).post<CreateWebhookSettingsResponse, CreateWebhookSettingsError, ThrowOnError>({
1331
1331
  ...options,
1332
1332
  url: '/v1/webhooks/settings'
1333
1333
  });
@@ -1340,8 +1340,8 @@ export const postV1WebhooksSettings = <ThrowOnError extends boolean = false>(opt
1340
1340
  * **Note:** Webhooks are automatically disabled after 10 consecutive delivery failures.
1341
1341
  *
1342
1342
  */
1343
- export const putV1WebhooksSettings = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PutV1WebhooksSettingsData, ThrowOnError>) => {
1344
- return (options?.client ?? client).put<PutV1WebhooksSettingsResponse, PutV1WebhooksSettingsError, ThrowOnError>({
1343
+ export const updateWebhookSettings = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateWebhookSettingsData, ThrowOnError>) => {
1344
+ return (options?.client ?? client).put<UpdateWebhookSettingsResponse, UpdateWebhookSettingsError, ThrowOnError>({
1345
1345
  ...options,
1346
1346
  url: '/v1/webhooks/settings'
1347
1347
  });
@@ -1351,8 +1351,8 @@ export const putV1WebhooksSettings = <ThrowOnError extends boolean = false>(opti
1351
1351
  * Delete a webhook
1352
1352
  * Permanently delete a webhook configuration.
1353
1353
  */
1354
- export const deleteV1WebhooksSettings = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteV1WebhooksSettingsData, ThrowOnError>) => {
1355
- return (options?.client ?? client).delete<DeleteV1WebhooksSettingsResponse, DeleteV1WebhooksSettingsError, ThrowOnError>({
1354
+ export const deleteWebhookSettings = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteWebhookSettingsData, ThrowOnError>) => {
1355
+ return (options?.client ?? client).delete<DeleteWebhookSettingsResponse, DeleteWebhookSettingsError, ThrowOnError>({
1356
1356
  ...options,
1357
1357
  url: '/v1/webhooks/settings'
1358
1358
  });
@@ -1364,8 +1364,8 @@ export const deleteV1WebhooksSettings = <ThrowOnError extends boolean = false>(o
1364
1364
  * The test payload includes `event: "webhook.test"` to distinguish it from real events.
1365
1365
  *
1366
1366
  */
1367
- export const postV1WebhooksTest = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PostV1WebhooksTestData, ThrowOnError>) => {
1368
- return (options?.client ?? client).post<PostV1WebhooksTestResponse, PostV1WebhooksTestError, ThrowOnError>({
1367
+ export const testWebhook = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<TestWebhookData, ThrowOnError>) => {
1368
+ return (options?.client ?? client).post<TestWebhookResponse, TestWebhookError, ThrowOnError>({
1369
1369
  ...options,
1370
1370
  url: '/v1/webhooks/test'
1371
1371
  });
@@ -1376,8 +1376,8 @@ export const postV1WebhooksTest = <ThrowOnError extends boolean = false>(options
1376
1376
  * Retrieve webhook delivery history. Logs are automatically deleted after 7 days.
1377
1377
  *
1378
1378
  */
1379
- export const getV1WebhooksLogs = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetV1WebhooksLogsData, ThrowOnError>) => {
1380
- return (options?.client ?? client).get<GetV1WebhooksLogsResponse, GetV1WebhooksLogsError, ThrowOnError>({
1379
+ export const getWebhookLogs = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetWebhookLogsData, ThrowOnError>) => {
1380
+ return (options?.client ?? client).get<GetWebhookLogsResponse, GetWebhookLogsError, ThrowOnError>({
1381
1381
  ...options,
1382
1382
  url: '/v1/webhooks/logs'
1383
1383
  });
@@ -1396,8 +1396,8 @@ export const getV1WebhooksLogs = <ThrowOnError extends boolean = false>(options?
1396
1396
  * **Retention:** Logs are automatically deleted after 7 days.
1397
1397
  *
1398
1398
  */
1399
- export const getV1Logs = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetV1LogsData, ThrowOnError>) => {
1400
- return (options?.client ?? client).get<GetV1LogsResponse, GetV1LogsError, ThrowOnError>({
1399
+ export const listLogs = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListLogsData, ThrowOnError>) => {
1400
+ return (options?.client ?? client).get<ListLogsResponse, ListLogsError, ThrowOnError>({
1401
1401
  ...options,
1402
1402
  url: '/v1/logs'
1403
1403
  });
@@ -1409,8 +1409,8 @@ export const getV1Logs = <ThrowOnError extends boolean = false>(options?: Option
1409
1409
  * and response bodies for debugging.
1410
1410
  *
1411
1411
  */
1412
- export const getV1LogsByLogId = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1LogsByLogIdData, ThrowOnError>) => {
1413
- return (options?.client ?? client).get<GetV1LogsByLogIdResponse, GetV1LogsByLogIdError, ThrowOnError>({
1412
+ export const getLog = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetLogData, ThrowOnError>) => {
1413
+ return (options?.client ?? client).get<GetLogResponse, GetLogError, ThrowOnError>({
1414
1414
  ...options,
1415
1415
  url: '/v1/logs/{logId}'
1416
1416
  });
@@ -1422,8 +1422,8 @@ export const getV1LogsByLogId = <ThrowOnError extends boolean = false>(options:
1422
1422
  * of publishing attempts for that post across all platforms.
1423
1423
  *
1424
1424
  */
1425
- export const getV1PostsByPostIdLogs = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetV1PostsByPostIdLogsData, ThrowOnError>) => {
1426
- return (options?.client ?? client).get<GetV1PostsByPostIdLogsResponse, GetV1PostsByPostIdLogsError, ThrowOnError>({
1425
+ export const getPostLogs = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetPostLogsData, ThrowOnError>) => {
1426
+ return (options?.client ?? client).get<GetPostLogsResponse, GetPostLogsError, ThrowOnError>({
1427
1427
  ...options,
1428
1428
  url: '/v1/posts/{postId}/logs'
1429
1429
  });