@getlatedev/node
Advanced tools
+209
-209
@@ -275,3 +275,3 @@ "use strict"; | ||
| var client = M(q()); | ||
| var getV1ToolsYoutubeDownload = (options) => { | ||
| var downloadYouTubeVideo = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -282,3 +282,3 @@ ...options, | ||
| }; | ||
| var getV1ToolsYoutubeTranscript = (options) => { | ||
| var getYouTubeTranscript = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -289,3 +289,3 @@ ...options, | ||
| }; | ||
| var getV1ToolsInstagramDownload = (options) => { | ||
| var downloadInstagramMedia = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -296,3 +296,3 @@ ...options, | ||
| }; | ||
| var postV1ToolsInstagramHashtagChecker = (options) => { | ||
| var checkInstagramHashtags = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -303,3 +303,3 @@ ...options, | ||
| }; | ||
| var getV1ToolsTiktokDownload = (options) => { | ||
| var downloadTikTokVideo = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -310,3 +310,3 @@ ...options, | ||
| }; | ||
| var getV1ToolsTwitterDownload = (options) => { | ||
| var downloadTwitterMedia = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -317,3 +317,3 @@ ...options, | ||
| }; | ||
| var getV1ToolsFacebookDownload = (options) => { | ||
| var downloadFacebookVideo = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -324,3 +324,3 @@ ...options, | ||
| }; | ||
| var getV1ToolsLinkedinDownload = (options) => { | ||
| var downloadLinkedInVideo = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -331,3 +331,3 @@ ...options, | ||
| }; | ||
| var getV1ToolsBlueskyDownload = (options) => { | ||
| var downloadBlueskyMedia = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -338,3 +338,3 @@ ...options, | ||
| }; | ||
| var getV1Analytics = (options) => { | ||
| var getAnalytics = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -345,3 +345,3 @@ ...options, | ||
| }; | ||
| var getV1AnalyticsYoutubeDailyViews = (options) => { | ||
| var getYouTubeDailyViews = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -352,3 +352,3 @@ ...options, | ||
| }; | ||
| var getV1AccountGroups = (options) => { | ||
| var listAccountGroups = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -359,3 +359,3 @@ ...options, | ||
| }; | ||
| var postV1AccountGroups = (options) => { | ||
| var createAccountGroup = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -366,3 +366,3 @@ ...options, | ||
| }; | ||
| var putV1AccountGroupsByGroupId = (options) => { | ||
| var updateAccountGroup = (options) => { | ||
| return (options?.client ?? client).put({ | ||
@@ -373,3 +373,3 @@ ...options, | ||
| }; | ||
| var deleteV1AccountGroupsByGroupId = (options) => { | ||
| var deleteAccountGroup = (options) => { | ||
| return (options?.client ?? client).delete({ | ||
@@ -380,3 +380,3 @@ ...options, | ||
| }; | ||
| var postV1MediaPresign = (options) => { | ||
| var getMediaPresignedUrl = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -387,3 +387,3 @@ ...options, | ||
| }; | ||
| var getV1RedditSearch = (options) => { | ||
| var searchReddit = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -394,3 +394,3 @@ ...options, | ||
| }; | ||
| var getV1RedditFeed = (options) => { | ||
| var getRedditFeed = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -401,3 +401,3 @@ ...options, | ||
| }; | ||
| var getV1UsageStats = (options) => { | ||
| var getUsageStats = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -408,3 +408,3 @@ ...options, | ||
| }; | ||
| var getV1Posts = (options) => { | ||
| var listPosts = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -415,3 +415,3 @@ ...options, | ||
| }; | ||
| var postV1Posts = (options) => { | ||
| var createPost = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -422,3 +422,3 @@ ...options, | ||
| }; | ||
| var getV1PostsByPostId = (options) => { | ||
| var getPost = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -429,3 +429,3 @@ ...options, | ||
| }; | ||
| var putV1PostsByPostId = (options) => { | ||
| var updatePost = (options) => { | ||
| return (options?.client ?? client).put({ | ||
@@ -436,3 +436,3 @@ ...options, | ||
| }; | ||
| var deleteV1PostsByPostId = (options) => { | ||
| var deletePost = (options) => { | ||
| return (options?.client ?? client).delete({ | ||
@@ -443,3 +443,3 @@ ...options, | ||
| }; | ||
| var postV1PostsBulkUpload = (options) => { | ||
| var bulkUploadPosts = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -455,3 +455,3 @@ ...options, | ||
| }; | ||
| var postV1PostsByPostIdRetry = (options) => { | ||
| var retryPost = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -462,3 +462,3 @@ ...options, | ||
| }; | ||
| var getV1Users = (options) => { | ||
| var listUsers = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -469,3 +469,3 @@ ...options, | ||
| }; | ||
| var getV1UsersByUserId = (options) => { | ||
| var getUser = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -476,3 +476,3 @@ ...options, | ||
| }; | ||
| var getV1Profiles = (options) => { | ||
| var listProfiles = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -483,3 +483,3 @@ ...options, | ||
| }; | ||
| var postV1Profiles = (options) => { | ||
| var createProfile = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -490,3 +490,3 @@ ...options, | ||
| }; | ||
| var getV1ProfilesByProfileId = (options) => { | ||
| var getProfile = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -497,3 +497,3 @@ ...options, | ||
| }; | ||
| var putV1ProfilesByProfileId = (options) => { | ||
| var updateProfile = (options) => { | ||
| return (options?.client ?? client).put({ | ||
@@ -504,3 +504,3 @@ ...options, | ||
| }; | ||
| var deleteV1ProfilesByProfileId = (options) => { | ||
| var deleteProfile = (options) => { | ||
| return (options?.client ?? client).delete({ | ||
@@ -511,3 +511,3 @@ ...options, | ||
| }; | ||
| var getV1Accounts = (options) => { | ||
| var listAccounts = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -518,3 +518,3 @@ ...options, | ||
| }; | ||
| var getV1AccountsFollowerStats = (options) => { | ||
| var getFollowerStats = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -525,3 +525,3 @@ ...options, | ||
| }; | ||
| var putV1AccountsByAccountId = (options) => { | ||
| var updateAccount = (options) => { | ||
| return (options?.client ?? client).put({ | ||
@@ -532,3 +532,3 @@ ...options, | ||
| }; | ||
| var deleteV1AccountsByAccountId = (options) => { | ||
| var deleteAccount = (options) => { | ||
| return (options?.client ?? client).delete({ | ||
@@ -539,3 +539,3 @@ ...options, | ||
| }; | ||
| var getV1AccountsHealth = (options) => { | ||
| var getAllAccountsHealth = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -546,3 +546,3 @@ ...options, | ||
| }; | ||
| var getV1AccountsByAccountIdHealth = (options) => { | ||
| var getAccountHealth = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -553,3 +553,3 @@ ...options, | ||
| }; | ||
| var getV1ApiKeys = (options) => { | ||
| var listApiKeys = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -560,3 +560,3 @@ ...options, | ||
| }; | ||
| var postV1ApiKeys = (options) => { | ||
| var createApiKey = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -567,3 +567,3 @@ ...options, | ||
| }; | ||
| var deleteV1ApiKeysByKeyId = (options) => { | ||
| var deleteApiKey = (options) => { | ||
| return (options?.client ?? client).delete({ | ||
@@ -574,3 +574,3 @@ ...options, | ||
| }; | ||
| var postV1InviteTokens = (options) => { | ||
| var createInviteToken = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -581,3 +581,3 @@ ...options, | ||
| }; | ||
| var getV1PlatformInvites = (options) => { | ||
| var listPlatformInvites = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -588,3 +588,3 @@ ...options, | ||
| }; | ||
| var postV1PlatformInvites = (options) => { | ||
| var createPlatformInvite = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -595,3 +595,3 @@ ...options, | ||
| }; | ||
| var deleteV1PlatformInvites = (options) => { | ||
| var deletePlatformInvite = (options) => { | ||
| return (options?.client ?? client).delete({ | ||
@@ -602,3 +602,3 @@ ...options, | ||
| }; | ||
| var getV1ConnectByPlatform = (options) => { | ||
| var getConnectUrl = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -609,3 +609,3 @@ ...options, | ||
| }; | ||
| var postV1ConnectByPlatform = (options) => { | ||
| var handleOAuthCallback = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -616,3 +616,3 @@ ...options, | ||
| }; | ||
| var getV1ConnectFacebookSelectPage = (options) => { | ||
| var listFacebookPages = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -623,3 +623,3 @@ ...options, | ||
| }; | ||
| var postV1ConnectFacebookSelectPage = (options) => { | ||
| var selectFacebookPage = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -630,3 +630,3 @@ ...options, | ||
| }; | ||
| var getV1ConnectGooglebusinessLocations = (options) => { | ||
| var listGoogleBusinessLocations = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -637,3 +637,3 @@ ...options, | ||
| }; | ||
| var postV1ConnectGooglebusinessSelectLocation = (options) => { | ||
| var selectGoogleBusinessLocation = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -644,3 +644,3 @@ ...options, | ||
| }; | ||
| var getV1AccountsByAccountIdGmbReviews = (options) => { | ||
| var getGoogleBusinessReviews = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -651,3 +651,3 @@ ...options, | ||
| }; | ||
| var getV1ConnectLinkedinOrganizations = (options) => { | ||
| var listLinkedInOrganizations = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -658,3 +658,3 @@ ...options, | ||
| }; | ||
| var postV1ConnectLinkedinSelectOrganization = (options) => { | ||
| var selectLinkedInOrganization = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -665,3 +665,3 @@ ...options, | ||
| }; | ||
| var getV1ConnectPinterestSelectBoard = (options) => { | ||
| var listPinterestBoardsForSelection = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -672,3 +672,3 @@ ...options, | ||
| }; | ||
| var postV1ConnectPinterestSelectBoard = (options) => { | ||
| var selectPinterestBoard = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -679,3 +679,3 @@ ...options, | ||
| }; | ||
| var getV1ConnectSnapchatSelectProfile = (options) => { | ||
| var listSnapchatProfiles = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -686,3 +686,3 @@ ...options, | ||
| }; | ||
| var postV1ConnectSnapchatSelectProfile = (options) => { | ||
| var selectSnapchatProfile = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -693,3 +693,3 @@ ...options, | ||
| }; | ||
| var postV1ConnectBlueskyCredentials = (options) => { | ||
| var connectBlueskyCredentials = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -700,3 +700,3 @@ ...options, | ||
| }; | ||
| var getV1ConnectTelegram = (options) => { | ||
| var getTelegramConnectStatus = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -707,3 +707,3 @@ ...options, | ||
| }; | ||
| var postV1ConnectTelegram = (options) => { | ||
| var initiateTelegramConnect = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -714,3 +714,3 @@ ...options, | ||
| }; | ||
| var patchV1ConnectTelegram = (options) => { | ||
| var completeTelegramConnect = (options) => { | ||
| return (options?.client ?? client).patch({ | ||
@@ -721,3 +721,3 @@ ...options, | ||
| }; | ||
| var putV1AccountsByAccountIdFacebookPage = (options) => { | ||
| var updateFacebookPage = (options) => { | ||
| return (options?.client ?? client).put({ | ||
@@ -728,3 +728,3 @@ ...options, | ||
| }; | ||
| var getV1AccountsByAccountIdLinkedinOrganizations = (options) => { | ||
| var getLinkedInOrganizations = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -735,3 +735,3 @@ ...options, | ||
| }; | ||
| var getV1AccountsByAccountIdLinkedinAggregateAnalytics = (options) => { | ||
| var getLinkedInAggregateAnalytics = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -742,3 +742,3 @@ ...options, | ||
| }; | ||
| var getV1AccountsByAccountIdLinkedinPostAnalytics = (options) => { | ||
| var getLinkedInPostAnalytics = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -749,3 +749,3 @@ ...options, | ||
| }; | ||
| var putV1AccountsByAccountIdLinkedinOrganization = (options) => { | ||
| var updateLinkedInOrganization = (options) => { | ||
| return (options?.client ?? client).put({ | ||
@@ -756,3 +756,3 @@ ...options, | ||
| }; | ||
| var getV1AccountsByAccountIdLinkedinMentions = (options) => { | ||
| var getLinkedInMentions = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -763,3 +763,3 @@ ...options, | ||
| }; | ||
| var getV1AccountsByAccountIdPinterestBoards = (options) => { | ||
| var getPinterestBoards = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -770,3 +770,3 @@ ...options, | ||
| }; | ||
| var putV1AccountsByAccountIdPinterestBoards = (options) => { | ||
| var updatePinterestBoards = (options) => { | ||
| return (options?.client ?? client).put({ | ||
@@ -777,3 +777,3 @@ ...options, | ||
| }; | ||
| var getV1AccountsByAccountIdRedditSubreddits = (options) => { | ||
| var getRedditSubreddits = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -784,3 +784,3 @@ ...options, | ||
| }; | ||
| var putV1AccountsByAccountIdRedditSubreddits = (options) => { | ||
| var updateRedditSubreddits = (options) => { | ||
| return (options?.client ?? client).put({ | ||
@@ -791,3 +791,3 @@ ...options, | ||
| }; | ||
| var getV1QueueSlots = (options) => { | ||
| var listQueueSlots = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -798,3 +798,3 @@ ...options, | ||
| }; | ||
| var postV1QueueSlots = (options) => { | ||
| var createQueueSlot = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -805,3 +805,3 @@ ...options, | ||
| }; | ||
| var putV1QueueSlots = (options) => { | ||
| var updateQueueSlot = (options) => { | ||
| return (options?.client ?? client).put({ | ||
@@ -812,3 +812,3 @@ ...options, | ||
| }; | ||
| var deleteV1QueueSlots = (options) => { | ||
| var deleteQueueSlot = (options) => { | ||
| return (options?.client ?? client).delete({ | ||
@@ -819,3 +819,3 @@ ...options, | ||
| }; | ||
| var getV1QueuePreview = (options) => { | ||
| var previewQueue = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -826,3 +826,3 @@ ...options, | ||
| }; | ||
| var getV1QueueNextSlot = (options) => { | ||
| var getNextQueueSlot = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -833,3 +833,3 @@ ...options, | ||
| }; | ||
| var getV1WebhooksSettings = (options) => { | ||
| var getWebhookSettings = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -840,3 +840,3 @@ ...options, | ||
| }; | ||
| var postV1WebhooksSettings = (options) => { | ||
| var createWebhookSettings = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -847,3 +847,3 @@ ...options, | ||
| }; | ||
| var putV1WebhooksSettings = (options) => { | ||
| var updateWebhookSettings = (options) => { | ||
| return (options?.client ?? client).put({ | ||
@@ -854,3 +854,3 @@ ...options, | ||
| }; | ||
| var deleteV1WebhooksSettings = (options) => { | ||
| var deleteWebhookSettings = (options) => { | ||
| return (options?.client ?? client).delete({ | ||
@@ -861,3 +861,3 @@ ...options, | ||
| }; | ||
| var postV1WebhooksTest = (options) => { | ||
| var testWebhook = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -868,3 +868,3 @@ ...options, | ||
| }; | ||
| var getV1WebhooksLogs = (options) => { | ||
| var getWebhookLogs = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -875,3 +875,3 @@ ...options, | ||
| }; | ||
| var getV1Logs = (options) => { | ||
| var listLogs = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -882,3 +882,3 @@ ...options, | ||
| }; | ||
| var getV1LogsByLogId = (options) => { | ||
| var getLog = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -889,3 +889,3 @@ ...options, | ||
| }; | ||
| var getV1PostsByPostIdLogs = (options) => { | ||
| var getPostLogs = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -999,52 +999,23 @@ ...options, | ||
| /** | ||
| * Posts API - Create, schedule, and manage social media posts | ||
| * Tools API - Media download and utilities | ||
| */ | ||
| this.posts = { | ||
| list: getV1Posts, | ||
| create: postV1Posts, | ||
| get: getV1PostsByPostId, | ||
| update: putV1PostsByPostId, | ||
| delete: deleteV1PostsByPostId, | ||
| retry: postV1PostsByPostIdRetry, | ||
| bulkUpload: postV1PostsBulkUpload, | ||
| getLogs: getV1PostsByPostIdLogs | ||
| this.tools = { | ||
| downloadYouTubeVideo, | ||
| getYouTubeTranscript, | ||
| downloadInstagramMedia, | ||
| checkInstagramHashtags, | ||
| downloadTikTokVideo, | ||
| downloadTwitterMedia, | ||
| downloadFacebookVideo, | ||
| downloadLinkedInVideo, | ||
| downloadBlueskyMedia | ||
| }; | ||
| /** | ||
| * Accounts API - Manage connected social media accounts | ||
| */ | ||
| this.accounts = { | ||
| list: getV1Accounts, | ||
| update: putV1AccountsByAccountId, | ||
| delete: deleteV1AccountsByAccountId, | ||
| getFollowerStats: getV1AccountsFollowerStats, | ||
| getAllHealth: getV1AccountsHealth, | ||
| getHealth: getV1AccountsByAccountIdHealth, | ||
| updateFacebookPage: putV1AccountsByAccountIdFacebookPage, | ||
| getLinkedInOrganizations: getV1AccountsByAccountIdLinkedinOrganizations, | ||
| updateLinkedInOrganization: putV1AccountsByAccountIdLinkedinOrganization, | ||
| getLinkedInMentions: getV1AccountsByAccountIdLinkedinMentions, | ||
| getPinterestBoards: getV1AccountsByAccountIdPinterestBoards, | ||
| updatePinterestBoards: putV1AccountsByAccountIdPinterestBoards, | ||
| getRedditSubreddits: getV1AccountsByAccountIdRedditSubreddits, | ||
| updateRedditSubreddits: putV1AccountsByAccountIdRedditSubreddits, | ||
| getGoogleBusinessReviews: getV1AccountsByAccountIdGmbReviews | ||
| }; | ||
| /** | ||
| * Profiles API - Manage workspace profiles | ||
| */ | ||
| this.profiles = { | ||
| list: getV1Profiles, | ||
| create: postV1Profiles, | ||
| get: getV1ProfilesByProfileId, | ||
| update: putV1ProfilesByProfileId, | ||
| delete: deleteV1ProfilesByProfileId | ||
| }; | ||
| /** | ||
| * Analytics API - Get performance metrics | ||
| */ | ||
| this.analytics = { | ||
| get: getV1Analytics, | ||
| getYouTubeDailyViews: getV1AnalyticsYoutubeDailyViews, | ||
| getLinkedInAggregate: getV1AccountsByAccountIdLinkedinAggregateAnalytics, | ||
| getLinkedInPostAnalytics: getV1AccountsByAccountIdLinkedinPostAnalytics | ||
| getAnalytics, | ||
| getYouTubeDailyViews, | ||
| getLinkedInAggregateAnalytics, | ||
| getLinkedInPostAnalytics | ||
| }; | ||
@@ -1055,128 +1026,157 @@ /** | ||
| this.accountGroups = { | ||
| list: getV1AccountGroups, | ||
| create: postV1AccountGroups, | ||
| update: putV1AccountGroupsByGroupId, | ||
| delete: deleteV1AccountGroupsByGroupId | ||
| listAccountGroups, | ||
| createAccountGroup, | ||
| updateAccountGroup, | ||
| deleteAccountGroup | ||
| }; | ||
| /** | ||
| * Queue API - Manage posting queue | ||
| * Media API - Upload and manage media files | ||
| */ | ||
| this.queue = { | ||
| listSlots: getV1QueueSlots, | ||
| createSlot: postV1QueueSlots, | ||
| updateSlot: putV1QueueSlots, | ||
| deleteSlot: deleteV1QueueSlots, | ||
| preview: getV1QueuePreview, | ||
| getNextSlot: getV1QueueNextSlot | ||
| this.media = { | ||
| getMediaPresignedUrl | ||
| }; | ||
| /** | ||
| * Webhooks API - Configure event webhooks | ||
| * Reddit API - Search and feed | ||
| */ | ||
| this.webhooks = { | ||
| getSettings: getV1WebhooksSettings, | ||
| createSettings: postV1WebhooksSettings, | ||
| updateSettings: putV1WebhooksSettings, | ||
| deleteSettings: deleteV1WebhooksSettings, | ||
| test: postV1WebhooksTest, | ||
| getLogs: getV1WebhooksLogs | ||
| this.reddit = { | ||
| searchReddit, | ||
| getRedditFeed | ||
| }; | ||
| /** | ||
| * API Keys API - Manage API keys | ||
| * Usage API - Get usage statistics | ||
| */ | ||
| this.apiKeys = { | ||
| list: getV1ApiKeys, | ||
| create: postV1ApiKeys, | ||
| delete: deleteV1ApiKeysByKeyId | ||
| this.usage = { | ||
| getUsageStats | ||
| }; | ||
| /** | ||
| * Media API - Upload and manage media files | ||
| * Posts API - Create, schedule, and manage social media posts | ||
| */ | ||
| this.media = { | ||
| getPresignedUrl: postV1MediaPresign | ||
| this.posts = { | ||
| listPosts, | ||
| createPost, | ||
| getPost, | ||
| updatePost, | ||
| deletePost, | ||
| bulkUploadPosts, | ||
| retryPost | ||
| }; | ||
| /** | ||
| * Tools API - Media download and utilities | ||
| * Users API - User management | ||
| */ | ||
| this.tools = { | ||
| downloadYouTube: getV1ToolsYoutubeDownload, | ||
| getYouTubeTranscript: getV1ToolsYoutubeTranscript, | ||
| downloadInstagram: getV1ToolsInstagramDownload, | ||
| checkInstagramHashtags: postV1ToolsInstagramHashtagChecker, | ||
| downloadTikTok: getV1ToolsTiktokDownload, | ||
| downloadTwitter: getV1ToolsTwitterDownload, | ||
| downloadFacebook: getV1ToolsFacebookDownload, | ||
| downloadLinkedIn: getV1ToolsLinkedinDownload, | ||
| downloadBluesky: getV1ToolsBlueskyDownload | ||
| this.users = { | ||
| listUsers, | ||
| getUser | ||
| }; | ||
| /** | ||
| * Users API - User management | ||
| * Profiles API - Manage workspace profiles | ||
| */ | ||
| this.users = { | ||
| list: getV1Users, | ||
| get: getV1UsersByUserId | ||
| this.profiles = { | ||
| listProfiles, | ||
| createProfile, | ||
| getProfile, | ||
| updateProfile, | ||
| deleteProfile | ||
| }; | ||
| /** | ||
| * Usage API - Get usage statistics | ||
| * Accounts API - Manage connected social media accounts | ||
| */ | ||
| this.usage = { | ||
| getStats: getV1UsageStats | ||
| this.accounts = { | ||
| listAccounts, | ||
| getFollowerStats, | ||
| updateAccount, | ||
| deleteAccount, | ||
| getAllAccountsHealth, | ||
| getAccountHealth, | ||
| getGoogleBusinessReviews, | ||
| getLinkedInMentions | ||
| }; | ||
| /** | ||
| * Logs API - Publishing logs | ||
| * API Keys API - Manage API keys | ||
| */ | ||
| this.logs = { | ||
| list: getV1Logs, | ||
| get: getV1LogsByLogId | ||
| this.apiKeys = { | ||
| listApiKeys, | ||
| createApiKey, | ||
| deleteApiKey | ||
| }; | ||
| /** | ||
| * Invites API - Team invitations | ||
| */ | ||
| this.invites = { | ||
| createInviteToken, | ||
| listPlatformInvites, | ||
| createPlatformInvite, | ||
| deletePlatformInvite | ||
| }; | ||
| /** | ||
| * Connect API - OAuth connection flows | ||
| */ | ||
| this.connect = { | ||
| getUrl: getV1ConnectByPlatform, | ||
| handleCallback: postV1ConnectByPlatform, | ||
| getConnectUrl, | ||
| handleOAuthCallback, | ||
| updateFacebookPage, | ||
| getLinkedInOrganizations, | ||
| updateLinkedInOrganization, | ||
| getPinterestBoards, | ||
| updatePinterestBoards, | ||
| getRedditSubreddits, | ||
| updateRedditSubreddits, | ||
| facebook: { | ||
| listPages: getV1ConnectFacebookSelectPage, | ||
| selectPage: postV1ConnectFacebookSelectPage | ||
| listFacebookPages, | ||
| selectFacebookPage | ||
| }, | ||
| googleBusiness: { | ||
| listLocations: getV1ConnectGooglebusinessLocations, | ||
| selectLocation: postV1ConnectGooglebusinessSelectLocation | ||
| listGoogleBusinessLocations, | ||
| selectGoogleBusinessLocation | ||
| }, | ||
| linkedIn: { | ||
| listOrganizations: getV1ConnectLinkedinOrganizations, | ||
| selectOrganization: postV1ConnectLinkedinSelectOrganization | ||
| linkedin: { | ||
| listLinkedInOrganizations, | ||
| selectLinkedInOrganization | ||
| }, | ||
| pinterest: { | ||
| listBoards: getV1ConnectPinterestSelectBoard, | ||
| selectBoard: postV1ConnectPinterestSelectBoard | ||
| listPinterestBoardsForSelection, | ||
| selectPinterestBoard | ||
| }, | ||
| snapchat: { | ||
| listProfiles: getV1ConnectSnapchatSelectProfile, | ||
| selectProfile: postV1ConnectSnapchatSelectProfile | ||
| listSnapchatProfiles, | ||
| selectSnapchatProfile | ||
| }, | ||
| bluesky: { | ||
| connectCredentials: postV1ConnectBlueskyCredentials | ||
| connectBlueskyCredentials | ||
| }, | ||
| telegram: { | ||
| getStatus: getV1ConnectTelegram, | ||
| initiate: postV1ConnectTelegram, | ||
| complete: patchV1ConnectTelegram | ||
| getTelegramConnectStatus, | ||
| initiateTelegramConnect, | ||
| completeTelegramConnect | ||
| } | ||
| }; | ||
| /** | ||
| * Reddit API - Search and feed | ||
| * Queue API - Manage posting queue | ||
| */ | ||
| this.reddit = { | ||
| search: getV1RedditSearch, | ||
| getFeed: getV1RedditFeed | ||
| this.queue = { | ||
| listQueueSlots, | ||
| createQueueSlot, | ||
| updateQueueSlot, | ||
| deleteQueueSlot, | ||
| previewQueue, | ||
| getNextQueueSlot | ||
| }; | ||
| /** | ||
| * Invites API - Team invitations | ||
| * Webhooks API - Configure event webhooks | ||
| */ | ||
| this.invites = { | ||
| createToken: postV1InviteTokens, | ||
| list: getV1PlatformInvites, | ||
| create: postV1PlatformInvites, | ||
| delete: deleteV1PlatformInvites | ||
| this.webhooks = { | ||
| getWebhookSettings, | ||
| createWebhookSettings, | ||
| updateWebhookSettings, | ||
| deleteWebhookSettings, | ||
| testWebhook, | ||
| getWebhookLogs | ||
| }; | ||
| /** | ||
| * Logs API - Publishing logs | ||
| */ | ||
| this.logs = { | ||
| listLogs, | ||
| getLog, | ||
| getPostLogs | ||
| }; | ||
| const apiKey = options.apiKey ?? process.env["LATE_API_KEY"]; | ||
@@ -1183,0 +1183,0 @@ if (!apiKey) { |
+209
-209
@@ -246,3 +246,3 @@ var __defProp = Object.defineProperty; | ||
| var client = M(q()); | ||
| var getV1ToolsYoutubeDownload = (options) => { | ||
| var downloadYouTubeVideo = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -253,3 +253,3 @@ ...options, | ||
| }; | ||
| var getV1ToolsYoutubeTranscript = (options) => { | ||
| var getYouTubeTranscript = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -260,3 +260,3 @@ ...options, | ||
| }; | ||
| var getV1ToolsInstagramDownload = (options) => { | ||
| var downloadInstagramMedia = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -267,3 +267,3 @@ ...options, | ||
| }; | ||
| var postV1ToolsInstagramHashtagChecker = (options) => { | ||
| var checkInstagramHashtags = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -274,3 +274,3 @@ ...options, | ||
| }; | ||
| var getV1ToolsTiktokDownload = (options) => { | ||
| var downloadTikTokVideo = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -281,3 +281,3 @@ ...options, | ||
| }; | ||
| var getV1ToolsTwitterDownload = (options) => { | ||
| var downloadTwitterMedia = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -288,3 +288,3 @@ ...options, | ||
| }; | ||
| var getV1ToolsFacebookDownload = (options) => { | ||
| var downloadFacebookVideo = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -295,3 +295,3 @@ ...options, | ||
| }; | ||
| var getV1ToolsLinkedinDownload = (options) => { | ||
| var downloadLinkedInVideo = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -302,3 +302,3 @@ ...options, | ||
| }; | ||
| var getV1ToolsBlueskyDownload = (options) => { | ||
| var downloadBlueskyMedia = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -309,3 +309,3 @@ ...options, | ||
| }; | ||
| var getV1Analytics = (options) => { | ||
| var getAnalytics = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -316,3 +316,3 @@ ...options, | ||
| }; | ||
| var getV1AnalyticsYoutubeDailyViews = (options) => { | ||
| var getYouTubeDailyViews = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -323,3 +323,3 @@ ...options, | ||
| }; | ||
| var getV1AccountGroups = (options) => { | ||
| var listAccountGroups = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -330,3 +330,3 @@ ...options, | ||
| }; | ||
| var postV1AccountGroups = (options) => { | ||
| var createAccountGroup = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -337,3 +337,3 @@ ...options, | ||
| }; | ||
| var putV1AccountGroupsByGroupId = (options) => { | ||
| var updateAccountGroup = (options) => { | ||
| return (options?.client ?? client).put({ | ||
@@ -344,3 +344,3 @@ ...options, | ||
| }; | ||
| var deleteV1AccountGroupsByGroupId = (options) => { | ||
| var deleteAccountGroup = (options) => { | ||
| return (options?.client ?? client).delete({ | ||
@@ -351,3 +351,3 @@ ...options, | ||
| }; | ||
| var postV1MediaPresign = (options) => { | ||
| var getMediaPresignedUrl = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -358,3 +358,3 @@ ...options, | ||
| }; | ||
| var getV1RedditSearch = (options) => { | ||
| var searchReddit = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -365,3 +365,3 @@ ...options, | ||
| }; | ||
| var getV1RedditFeed = (options) => { | ||
| var getRedditFeed = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -372,3 +372,3 @@ ...options, | ||
| }; | ||
| var getV1UsageStats = (options) => { | ||
| var getUsageStats = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -379,3 +379,3 @@ ...options, | ||
| }; | ||
| var getV1Posts = (options) => { | ||
| var listPosts = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -386,3 +386,3 @@ ...options, | ||
| }; | ||
| var postV1Posts = (options) => { | ||
| var createPost = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -393,3 +393,3 @@ ...options, | ||
| }; | ||
| var getV1PostsByPostId = (options) => { | ||
| var getPost = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -400,3 +400,3 @@ ...options, | ||
| }; | ||
| var putV1PostsByPostId = (options) => { | ||
| var updatePost = (options) => { | ||
| return (options?.client ?? client).put({ | ||
@@ -407,3 +407,3 @@ ...options, | ||
| }; | ||
| var deleteV1PostsByPostId = (options) => { | ||
| var deletePost = (options) => { | ||
| return (options?.client ?? client).delete({ | ||
@@ -414,3 +414,3 @@ ...options, | ||
| }; | ||
| var postV1PostsBulkUpload = (options) => { | ||
| var bulkUploadPosts = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -426,3 +426,3 @@ ...options, | ||
| }; | ||
| var postV1PostsByPostIdRetry = (options) => { | ||
| var retryPost = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -433,3 +433,3 @@ ...options, | ||
| }; | ||
| var getV1Users = (options) => { | ||
| var listUsers = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -440,3 +440,3 @@ ...options, | ||
| }; | ||
| var getV1UsersByUserId = (options) => { | ||
| var getUser = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -447,3 +447,3 @@ ...options, | ||
| }; | ||
| var getV1Profiles = (options) => { | ||
| var listProfiles = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -454,3 +454,3 @@ ...options, | ||
| }; | ||
| var postV1Profiles = (options) => { | ||
| var createProfile = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -461,3 +461,3 @@ ...options, | ||
| }; | ||
| var getV1ProfilesByProfileId = (options) => { | ||
| var getProfile = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -468,3 +468,3 @@ ...options, | ||
| }; | ||
| var putV1ProfilesByProfileId = (options) => { | ||
| var updateProfile = (options) => { | ||
| return (options?.client ?? client).put({ | ||
@@ -475,3 +475,3 @@ ...options, | ||
| }; | ||
| var deleteV1ProfilesByProfileId = (options) => { | ||
| var deleteProfile = (options) => { | ||
| return (options?.client ?? client).delete({ | ||
@@ -482,3 +482,3 @@ ...options, | ||
| }; | ||
| var getV1Accounts = (options) => { | ||
| var listAccounts = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -489,3 +489,3 @@ ...options, | ||
| }; | ||
| var getV1AccountsFollowerStats = (options) => { | ||
| var getFollowerStats = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -496,3 +496,3 @@ ...options, | ||
| }; | ||
| var putV1AccountsByAccountId = (options) => { | ||
| var updateAccount = (options) => { | ||
| return (options?.client ?? client).put({ | ||
@@ -503,3 +503,3 @@ ...options, | ||
| }; | ||
| var deleteV1AccountsByAccountId = (options) => { | ||
| var deleteAccount = (options) => { | ||
| return (options?.client ?? client).delete({ | ||
@@ -510,3 +510,3 @@ ...options, | ||
| }; | ||
| var getV1AccountsHealth = (options) => { | ||
| var getAllAccountsHealth = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -517,3 +517,3 @@ ...options, | ||
| }; | ||
| var getV1AccountsByAccountIdHealth = (options) => { | ||
| var getAccountHealth = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -524,3 +524,3 @@ ...options, | ||
| }; | ||
| var getV1ApiKeys = (options) => { | ||
| var listApiKeys = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -531,3 +531,3 @@ ...options, | ||
| }; | ||
| var postV1ApiKeys = (options) => { | ||
| var createApiKey = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -538,3 +538,3 @@ ...options, | ||
| }; | ||
| var deleteV1ApiKeysByKeyId = (options) => { | ||
| var deleteApiKey = (options) => { | ||
| return (options?.client ?? client).delete({ | ||
@@ -545,3 +545,3 @@ ...options, | ||
| }; | ||
| var postV1InviteTokens = (options) => { | ||
| var createInviteToken = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -552,3 +552,3 @@ ...options, | ||
| }; | ||
| var getV1PlatformInvites = (options) => { | ||
| var listPlatformInvites = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -559,3 +559,3 @@ ...options, | ||
| }; | ||
| var postV1PlatformInvites = (options) => { | ||
| var createPlatformInvite = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -566,3 +566,3 @@ ...options, | ||
| }; | ||
| var deleteV1PlatformInvites = (options) => { | ||
| var deletePlatformInvite = (options) => { | ||
| return (options?.client ?? client).delete({ | ||
@@ -573,3 +573,3 @@ ...options, | ||
| }; | ||
| var getV1ConnectByPlatform = (options) => { | ||
| var getConnectUrl = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -580,3 +580,3 @@ ...options, | ||
| }; | ||
| var postV1ConnectByPlatform = (options) => { | ||
| var handleOAuthCallback = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -587,3 +587,3 @@ ...options, | ||
| }; | ||
| var getV1ConnectFacebookSelectPage = (options) => { | ||
| var listFacebookPages = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -594,3 +594,3 @@ ...options, | ||
| }; | ||
| var postV1ConnectFacebookSelectPage = (options) => { | ||
| var selectFacebookPage = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -601,3 +601,3 @@ ...options, | ||
| }; | ||
| var getV1ConnectGooglebusinessLocations = (options) => { | ||
| var listGoogleBusinessLocations = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -608,3 +608,3 @@ ...options, | ||
| }; | ||
| var postV1ConnectGooglebusinessSelectLocation = (options) => { | ||
| var selectGoogleBusinessLocation = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -615,3 +615,3 @@ ...options, | ||
| }; | ||
| var getV1AccountsByAccountIdGmbReviews = (options) => { | ||
| var getGoogleBusinessReviews = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -622,3 +622,3 @@ ...options, | ||
| }; | ||
| var getV1ConnectLinkedinOrganizations = (options) => { | ||
| var listLinkedInOrganizations = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -629,3 +629,3 @@ ...options, | ||
| }; | ||
| var postV1ConnectLinkedinSelectOrganization = (options) => { | ||
| var selectLinkedInOrganization = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -636,3 +636,3 @@ ...options, | ||
| }; | ||
| var getV1ConnectPinterestSelectBoard = (options) => { | ||
| var listPinterestBoardsForSelection = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -643,3 +643,3 @@ ...options, | ||
| }; | ||
| var postV1ConnectPinterestSelectBoard = (options) => { | ||
| var selectPinterestBoard = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -650,3 +650,3 @@ ...options, | ||
| }; | ||
| var getV1ConnectSnapchatSelectProfile = (options) => { | ||
| var listSnapchatProfiles = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -657,3 +657,3 @@ ...options, | ||
| }; | ||
| var postV1ConnectSnapchatSelectProfile = (options) => { | ||
| var selectSnapchatProfile = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -664,3 +664,3 @@ ...options, | ||
| }; | ||
| var postV1ConnectBlueskyCredentials = (options) => { | ||
| var connectBlueskyCredentials = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -671,3 +671,3 @@ ...options, | ||
| }; | ||
| var getV1ConnectTelegram = (options) => { | ||
| var getTelegramConnectStatus = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -678,3 +678,3 @@ ...options, | ||
| }; | ||
| var postV1ConnectTelegram = (options) => { | ||
| var initiateTelegramConnect = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -685,3 +685,3 @@ ...options, | ||
| }; | ||
| var patchV1ConnectTelegram = (options) => { | ||
| var completeTelegramConnect = (options) => { | ||
| return (options?.client ?? client).patch({ | ||
@@ -692,3 +692,3 @@ ...options, | ||
| }; | ||
| var putV1AccountsByAccountIdFacebookPage = (options) => { | ||
| var updateFacebookPage = (options) => { | ||
| return (options?.client ?? client).put({ | ||
@@ -699,3 +699,3 @@ ...options, | ||
| }; | ||
| var getV1AccountsByAccountIdLinkedinOrganizations = (options) => { | ||
| var getLinkedInOrganizations = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -706,3 +706,3 @@ ...options, | ||
| }; | ||
| var getV1AccountsByAccountIdLinkedinAggregateAnalytics = (options) => { | ||
| var getLinkedInAggregateAnalytics = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -713,3 +713,3 @@ ...options, | ||
| }; | ||
| var getV1AccountsByAccountIdLinkedinPostAnalytics = (options) => { | ||
| var getLinkedInPostAnalytics = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -720,3 +720,3 @@ ...options, | ||
| }; | ||
| var putV1AccountsByAccountIdLinkedinOrganization = (options) => { | ||
| var updateLinkedInOrganization = (options) => { | ||
| return (options?.client ?? client).put({ | ||
@@ -727,3 +727,3 @@ ...options, | ||
| }; | ||
| var getV1AccountsByAccountIdLinkedinMentions = (options) => { | ||
| var getLinkedInMentions = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -734,3 +734,3 @@ ...options, | ||
| }; | ||
| var getV1AccountsByAccountIdPinterestBoards = (options) => { | ||
| var getPinterestBoards = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -741,3 +741,3 @@ ...options, | ||
| }; | ||
| var putV1AccountsByAccountIdPinterestBoards = (options) => { | ||
| var updatePinterestBoards = (options) => { | ||
| return (options?.client ?? client).put({ | ||
@@ -748,3 +748,3 @@ ...options, | ||
| }; | ||
| var getV1AccountsByAccountIdRedditSubreddits = (options) => { | ||
| var getRedditSubreddits = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -755,3 +755,3 @@ ...options, | ||
| }; | ||
| var putV1AccountsByAccountIdRedditSubreddits = (options) => { | ||
| var updateRedditSubreddits = (options) => { | ||
| return (options?.client ?? client).put({ | ||
@@ -762,3 +762,3 @@ ...options, | ||
| }; | ||
| var getV1QueueSlots = (options) => { | ||
| var listQueueSlots = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -769,3 +769,3 @@ ...options, | ||
| }; | ||
| var postV1QueueSlots = (options) => { | ||
| var createQueueSlot = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -776,3 +776,3 @@ ...options, | ||
| }; | ||
| var putV1QueueSlots = (options) => { | ||
| var updateQueueSlot = (options) => { | ||
| return (options?.client ?? client).put({ | ||
@@ -783,3 +783,3 @@ ...options, | ||
| }; | ||
| var deleteV1QueueSlots = (options) => { | ||
| var deleteQueueSlot = (options) => { | ||
| return (options?.client ?? client).delete({ | ||
@@ -790,3 +790,3 @@ ...options, | ||
| }; | ||
| var getV1QueuePreview = (options) => { | ||
| var previewQueue = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -797,3 +797,3 @@ ...options, | ||
| }; | ||
| var getV1QueueNextSlot = (options) => { | ||
| var getNextQueueSlot = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -804,3 +804,3 @@ ...options, | ||
| }; | ||
| var getV1WebhooksSettings = (options) => { | ||
| var getWebhookSettings = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -811,3 +811,3 @@ ...options, | ||
| }; | ||
| var postV1WebhooksSettings = (options) => { | ||
| var createWebhookSettings = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -818,3 +818,3 @@ ...options, | ||
| }; | ||
| var putV1WebhooksSettings = (options) => { | ||
| var updateWebhookSettings = (options) => { | ||
| return (options?.client ?? client).put({ | ||
@@ -825,3 +825,3 @@ ...options, | ||
| }; | ||
| var deleteV1WebhooksSettings = (options) => { | ||
| var deleteWebhookSettings = (options) => { | ||
| return (options?.client ?? client).delete({ | ||
@@ -832,3 +832,3 @@ ...options, | ||
| }; | ||
| var postV1WebhooksTest = (options) => { | ||
| var testWebhook = (options) => { | ||
| return (options?.client ?? client).post({ | ||
@@ -839,3 +839,3 @@ ...options, | ||
| }; | ||
| var getV1WebhooksLogs = (options) => { | ||
| var getWebhookLogs = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -846,3 +846,3 @@ ...options, | ||
| }; | ||
| var getV1Logs = (options) => { | ||
| var listLogs = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -853,3 +853,3 @@ ...options, | ||
| }; | ||
| var getV1LogsByLogId = (options) => { | ||
| var getLog = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -860,3 +860,3 @@ ...options, | ||
| }; | ||
| var getV1PostsByPostIdLogs = (options) => { | ||
| var getPostLogs = (options) => { | ||
| return (options?.client ?? client).get({ | ||
@@ -970,52 +970,23 @@ ...options, | ||
| /** | ||
| * Posts API - Create, schedule, and manage social media posts | ||
| * Tools API - Media download and utilities | ||
| */ | ||
| this.posts = { | ||
| list: getV1Posts, | ||
| create: postV1Posts, | ||
| get: getV1PostsByPostId, | ||
| update: putV1PostsByPostId, | ||
| delete: deleteV1PostsByPostId, | ||
| retry: postV1PostsByPostIdRetry, | ||
| bulkUpload: postV1PostsBulkUpload, | ||
| getLogs: getV1PostsByPostIdLogs | ||
| this.tools = { | ||
| downloadYouTubeVideo, | ||
| getYouTubeTranscript, | ||
| downloadInstagramMedia, | ||
| checkInstagramHashtags, | ||
| downloadTikTokVideo, | ||
| downloadTwitterMedia, | ||
| downloadFacebookVideo, | ||
| downloadLinkedInVideo, | ||
| downloadBlueskyMedia | ||
| }; | ||
| /** | ||
| * Accounts API - Manage connected social media accounts | ||
| */ | ||
| this.accounts = { | ||
| list: getV1Accounts, | ||
| update: putV1AccountsByAccountId, | ||
| delete: deleteV1AccountsByAccountId, | ||
| getFollowerStats: getV1AccountsFollowerStats, | ||
| getAllHealth: getV1AccountsHealth, | ||
| getHealth: getV1AccountsByAccountIdHealth, | ||
| updateFacebookPage: putV1AccountsByAccountIdFacebookPage, | ||
| getLinkedInOrganizations: getV1AccountsByAccountIdLinkedinOrganizations, | ||
| updateLinkedInOrganization: putV1AccountsByAccountIdLinkedinOrganization, | ||
| getLinkedInMentions: getV1AccountsByAccountIdLinkedinMentions, | ||
| getPinterestBoards: getV1AccountsByAccountIdPinterestBoards, | ||
| updatePinterestBoards: putV1AccountsByAccountIdPinterestBoards, | ||
| getRedditSubreddits: getV1AccountsByAccountIdRedditSubreddits, | ||
| updateRedditSubreddits: putV1AccountsByAccountIdRedditSubreddits, | ||
| getGoogleBusinessReviews: getV1AccountsByAccountIdGmbReviews | ||
| }; | ||
| /** | ||
| * Profiles API - Manage workspace profiles | ||
| */ | ||
| this.profiles = { | ||
| list: getV1Profiles, | ||
| create: postV1Profiles, | ||
| get: getV1ProfilesByProfileId, | ||
| update: putV1ProfilesByProfileId, | ||
| delete: deleteV1ProfilesByProfileId | ||
| }; | ||
| /** | ||
| * Analytics API - Get performance metrics | ||
| */ | ||
| this.analytics = { | ||
| get: getV1Analytics, | ||
| getYouTubeDailyViews: getV1AnalyticsYoutubeDailyViews, | ||
| getLinkedInAggregate: getV1AccountsByAccountIdLinkedinAggregateAnalytics, | ||
| getLinkedInPostAnalytics: getV1AccountsByAccountIdLinkedinPostAnalytics | ||
| getAnalytics, | ||
| getYouTubeDailyViews, | ||
| getLinkedInAggregateAnalytics, | ||
| getLinkedInPostAnalytics | ||
| }; | ||
@@ -1026,128 +997,157 @@ /** | ||
| this.accountGroups = { | ||
| list: getV1AccountGroups, | ||
| create: postV1AccountGroups, | ||
| update: putV1AccountGroupsByGroupId, | ||
| delete: deleteV1AccountGroupsByGroupId | ||
| listAccountGroups, | ||
| createAccountGroup, | ||
| updateAccountGroup, | ||
| deleteAccountGroup | ||
| }; | ||
| /** | ||
| * Queue API - Manage posting queue | ||
| * Media API - Upload and manage media files | ||
| */ | ||
| this.queue = { | ||
| listSlots: getV1QueueSlots, | ||
| createSlot: postV1QueueSlots, | ||
| updateSlot: putV1QueueSlots, | ||
| deleteSlot: deleteV1QueueSlots, | ||
| preview: getV1QueuePreview, | ||
| getNextSlot: getV1QueueNextSlot | ||
| this.media = { | ||
| getMediaPresignedUrl | ||
| }; | ||
| /** | ||
| * Webhooks API - Configure event webhooks | ||
| * Reddit API - Search and feed | ||
| */ | ||
| this.webhooks = { | ||
| getSettings: getV1WebhooksSettings, | ||
| createSettings: postV1WebhooksSettings, | ||
| updateSettings: putV1WebhooksSettings, | ||
| deleteSettings: deleteV1WebhooksSettings, | ||
| test: postV1WebhooksTest, | ||
| getLogs: getV1WebhooksLogs | ||
| this.reddit = { | ||
| searchReddit, | ||
| getRedditFeed | ||
| }; | ||
| /** | ||
| * API Keys API - Manage API keys | ||
| * Usage API - Get usage statistics | ||
| */ | ||
| this.apiKeys = { | ||
| list: getV1ApiKeys, | ||
| create: postV1ApiKeys, | ||
| delete: deleteV1ApiKeysByKeyId | ||
| this.usage = { | ||
| getUsageStats | ||
| }; | ||
| /** | ||
| * Media API - Upload and manage media files | ||
| * Posts API - Create, schedule, and manage social media posts | ||
| */ | ||
| this.media = { | ||
| getPresignedUrl: postV1MediaPresign | ||
| this.posts = { | ||
| listPosts, | ||
| createPost, | ||
| getPost, | ||
| updatePost, | ||
| deletePost, | ||
| bulkUploadPosts, | ||
| retryPost | ||
| }; | ||
| /** | ||
| * Tools API - Media download and utilities | ||
| * Users API - User management | ||
| */ | ||
| this.tools = { | ||
| downloadYouTube: getV1ToolsYoutubeDownload, | ||
| getYouTubeTranscript: getV1ToolsYoutubeTranscript, | ||
| downloadInstagram: getV1ToolsInstagramDownload, | ||
| checkInstagramHashtags: postV1ToolsInstagramHashtagChecker, | ||
| downloadTikTok: getV1ToolsTiktokDownload, | ||
| downloadTwitter: getV1ToolsTwitterDownload, | ||
| downloadFacebook: getV1ToolsFacebookDownload, | ||
| downloadLinkedIn: getV1ToolsLinkedinDownload, | ||
| downloadBluesky: getV1ToolsBlueskyDownload | ||
| this.users = { | ||
| listUsers, | ||
| getUser | ||
| }; | ||
| /** | ||
| * Users API - User management | ||
| * Profiles API - Manage workspace profiles | ||
| */ | ||
| this.users = { | ||
| list: getV1Users, | ||
| get: getV1UsersByUserId | ||
| this.profiles = { | ||
| listProfiles, | ||
| createProfile, | ||
| getProfile, | ||
| updateProfile, | ||
| deleteProfile | ||
| }; | ||
| /** | ||
| * Usage API - Get usage statistics | ||
| * Accounts API - Manage connected social media accounts | ||
| */ | ||
| this.usage = { | ||
| getStats: getV1UsageStats | ||
| this.accounts = { | ||
| listAccounts, | ||
| getFollowerStats, | ||
| updateAccount, | ||
| deleteAccount, | ||
| getAllAccountsHealth, | ||
| getAccountHealth, | ||
| getGoogleBusinessReviews, | ||
| getLinkedInMentions | ||
| }; | ||
| /** | ||
| * Logs API - Publishing logs | ||
| * API Keys API - Manage API keys | ||
| */ | ||
| this.logs = { | ||
| list: getV1Logs, | ||
| get: getV1LogsByLogId | ||
| this.apiKeys = { | ||
| listApiKeys, | ||
| createApiKey, | ||
| deleteApiKey | ||
| }; | ||
| /** | ||
| * Invites API - Team invitations | ||
| */ | ||
| this.invites = { | ||
| createInviteToken, | ||
| listPlatformInvites, | ||
| createPlatformInvite, | ||
| deletePlatformInvite | ||
| }; | ||
| /** | ||
| * Connect API - OAuth connection flows | ||
| */ | ||
| this.connect = { | ||
| getUrl: getV1ConnectByPlatform, | ||
| handleCallback: postV1ConnectByPlatform, | ||
| getConnectUrl, | ||
| handleOAuthCallback, | ||
| updateFacebookPage, | ||
| getLinkedInOrganizations, | ||
| updateLinkedInOrganization, | ||
| getPinterestBoards, | ||
| updatePinterestBoards, | ||
| getRedditSubreddits, | ||
| updateRedditSubreddits, | ||
| facebook: { | ||
| listPages: getV1ConnectFacebookSelectPage, | ||
| selectPage: postV1ConnectFacebookSelectPage | ||
| listFacebookPages, | ||
| selectFacebookPage | ||
| }, | ||
| googleBusiness: { | ||
| listLocations: getV1ConnectGooglebusinessLocations, | ||
| selectLocation: postV1ConnectGooglebusinessSelectLocation | ||
| listGoogleBusinessLocations, | ||
| selectGoogleBusinessLocation | ||
| }, | ||
| linkedIn: { | ||
| listOrganizations: getV1ConnectLinkedinOrganizations, | ||
| selectOrganization: postV1ConnectLinkedinSelectOrganization | ||
| linkedin: { | ||
| listLinkedInOrganizations, | ||
| selectLinkedInOrganization | ||
| }, | ||
| pinterest: { | ||
| listBoards: getV1ConnectPinterestSelectBoard, | ||
| selectBoard: postV1ConnectPinterestSelectBoard | ||
| listPinterestBoardsForSelection, | ||
| selectPinterestBoard | ||
| }, | ||
| snapchat: { | ||
| listProfiles: getV1ConnectSnapchatSelectProfile, | ||
| selectProfile: postV1ConnectSnapchatSelectProfile | ||
| listSnapchatProfiles, | ||
| selectSnapchatProfile | ||
| }, | ||
| bluesky: { | ||
| connectCredentials: postV1ConnectBlueskyCredentials | ||
| connectBlueskyCredentials | ||
| }, | ||
| telegram: { | ||
| getStatus: getV1ConnectTelegram, | ||
| initiate: postV1ConnectTelegram, | ||
| complete: patchV1ConnectTelegram | ||
| getTelegramConnectStatus, | ||
| initiateTelegramConnect, | ||
| completeTelegramConnect | ||
| } | ||
| }; | ||
| /** | ||
| * Reddit API - Search and feed | ||
| * Queue API - Manage posting queue | ||
| */ | ||
| this.reddit = { | ||
| search: getV1RedditSearch, | ||
| getFeed: getV1RedditFeed | ||
| this.queue = { | ||
| listQueueSlots, | ||
| createQueueSlot, | ||
| updateQueueSlot, | ||
| deleteQueueSlot, | ||
| previewQueue, | ||
| getNextQueueSlot | ||
| }; | ||
| /** | ||
| * Invites API - Team invitations | ||
| * Webhooks API - Configure event webhooks | ||
| */ | ||
| this.invites = { | ||
| createToken: postV1InviteTokens, | ||
| list: getV1PlatformInvites, | ||
| create: postV1PlatformInvites, | ||
| delete: deleteV1PlatformInvites | ||
| this.webhooks = { | ||
| getWebhookSettings, | ||
| createWebhookSettings, | ||
| updateWebhookSettings, | ||
| deleteWebhookSettings, | ||
| testWebhook, | ||
| getWebhookLogs | ||
| }; | ||
| /** | ||
| * Logs API - Publishing logs | ||
| */ | ||
| this.logs = { | ||
| listLogs, | ||
| getLog, | ||
| getPostLogs | ||
| }; | ||
| const apiKey = options.apiKey ?? process.env["LATE_API_KEY"]; | ||
@@ -1154,0 +1154,0 @@ if (!apiKey) { |
+9
-4
| { | ||
| "name": "@getlatedev/node", | ||
| "version": "0.1.0", | ||
| "version": "0.1.1", | ||
| "description": "The official Node.js library for the Late API", | ||
@@ -28,6 +28,7 @@ "main": "dist/index.js", | ||
| "scripts": { | ||
| "generate": "openapi-ts -i openapi.yaml -o src/generated -c @hey-api/client-fetch", | ||
| "generate": "openapi-ts -i openapi.yaml -o src/generated -c @hey-api/client-fetch && npm run generate:client", | ||
| "generate:client": "npx tsx scripts/generate-client.ts", | ||
| "build": "tsup src/index.ts --format cjs,esm --dts --clean", | ||
| "dev": "tsup src/index.ts --format cjs,esm --dts --watch", | ||
| "lint": "eslint src --ext .ts", | ||
| "lint": "eslint src", | ||
| "typecheck": "tsc --noEmit", | ||
@@ -75,7 +76,11 @@ "test": "vitest run", | ||
| "@types/node": "^20.11.0", | ||
| "@typescript-eslint/eslint-plugin": "^7.18.0", | ||
| "@typescript-eslint/parser": "^7.18.0", | ||
| "eslint": "^8.56.0", | ||
| "tsup": "^8.0.1", | ||
| "tsx": "^4.7.0", | ||
| "typescript": "^5.3.3", | ||
| "vitest": "^1.2.0" | ||
| "vitest": "^1.2.0", | ||
| "yaml": "^2.3.4" | ||
| } | ||
| } |
+211
-109
@@ -1,8 +0,20 @@ | ||
| # Late Node.js Library | ||
| <p align="center"> | ||
| <a href="https://getlate.dev"> | ||
| <img src="https://getlate.dev/images/icon_light.svg" alt="Late" width="60"> | ||
| </a> | ||
| </p> | ||
| [](https://www.npmjs.com/package/late) | ||
| [](LICENSE) | ||
| <h1 align="center">Late Node.js SDK</h1> | ||
| The official Node.js library for the [Late API](https://getlate.dev) - schedule social media posts across Instagram, TikTok, YouTube, LinkedIn, X/Twitter, Facebook, Pinterest, Threads, and more. | ||
| <p align="center"> | ||
| <a href="https://www.npmjs.com/package/@getlatedev/node"><img src="https://img.shields.io/npm/v/@getlatedev/node.svg" alt="npm version"></a> | ||
| <a href="LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blue.svg" alt="License"></a> | ||
| </p> | ||
| <p align="center"> | ||
| <strong>One API to post everywhere. 13 platforms, zero headaches.</strong> | ||
| </p> | ||
| The official Node.js SDK for the [Late API](https://getlate.dev) — schedule and publish social media posts across Instagram, TikTok, YouTube, LinkedIn, X/Twitter, Facebook, Pinterest, Threads, Bluesky, Reddit, Snapchat, Telegram, and Google Business Profile with a single integration. | ||
| ## Installation | ||
@@ -14,3 +26,3 @@ | ||
| ## Usage | ||
| ## Quick Start | ||
@@ -20,23 +32,18 @@ ```typescript | ||
| const late = new Late({ | ||
| apiKey: process.env['LATE_API_KEY'], // This is the default and can be omitted | ||
| const late = new Late(); // Uses LATE_API_KEY env var | ||
| // Publish to multiple platforms with one call | ||
| const { data: post } = await late.posts.createPost({ | ||
| body: { | ||
| content: 'Hello world from Late!', | ||
| platforms: [ | ||
| { platform: 'twitter', accountId: 'acc_xxx' }, | ||
| { platform: 'linkedin', accountId: 'acc_yyy' }, | ||
| { platform: 'instagram', accountId: 'acc_zzz' }, | ||
| ], | ||
| publishNow: true, | ||
| }, | ||
| }); | ||
| async function main() { | ||
| // Create and publish a post | ||
| const post = await late.posts.create({ | ||
| body: { | ||
| content: 'Hello from the Late SDK! 🚀', | ||
| platforms: [ | ||
| { platform: 'twitter', accountId: 'acc_xxx' }, | ||
| { platform: 'linkedin', accountId: 'acc_yyy' }, | ||
| ], | ||
| publishNow: true, | ||
| }, | ||
| }); | ||
| console.log(post.data); | ||
| } | ||
| main(); | ||
| console.log(`Published to ${post.platforms.length} platforms!`); | ||
| ``` | ||
@@ -46,12 +53,7 @@ | ||
| The client can be configured with the following options: | ||
| ```typescript | ||
| const late = new Late({ | ||
| apiKey: 'sk_...', // Defaults to process.env['LATE_API_KEY'] | ||
| baseURL: 'https://getlate.dev/api', // Default | ||
| timeout: 60000, // Request timeout in ms | ||
| defaultHeaders: { | ||
| 'X-Custom-Header': 'value', | ||
| }, | ||
| apiKey: 'your-api-key', // Defaults to process.env['LATE_API_KEY'] | ||
| baseURL: 'https://getlate.dev/api', | ||
| timeout: 60000, | ||
| }); | ||
@@ -65,7 +67,7 @@ ``` | ||
| ```typescript | ||
| const post = await late.posts.create({ | ||
| const { data: post } = await late.posts.createPost({ | ||
| body: { | ||
| content: 'Scheduled post from the SDK', | ||
| content: 'This post will go live tomorrow at 10am', | ||
| platforms: [{ platform: 'instagram', accountId: 'acc_xxx' }], | ||
| scheduledFor: new Date('2025-02-01T10:00:00Z').toISOString(), | ||
| scheduledFor: '2025-02-01T10:00:00Z', | ||
| }, | ||
@@ -75,8 +77,10 @@ }); | ||
| ### Multi-Platform with Platform-Specific Content | ||
| ### Platform-Specific Content | ||
| Customize content per platform while posting to all at once: | ||
| ```typescript | ||
| const post = await late.posts.create({ | ||
| const { data: post } = await late.posts.createPost({ | ||
| body: { | ||
| content: 'Default content for all platforms', | ||
| content: 'Default content', | ||
| platforms: [ | ||
@@ -86,3 +90,3 @@ { | ||
| accountId: 'acc_twitter', | ||
| platformSpecificContent: 'Shorter content for X #hashtags', | ||
| platformSpecificContent: 'Short & punchy for X', | ||
| }, | ||
@@ -92,3 +96,3 @@ { | ||
| accountId: 'acc_linkedin', | ||
| platformSpecificContent: 'Professional content for LinkedIn', | ||
| platformSpecificContent: 'Professional tone for LinkedIn with more detail.', | ||
| }, | ||
@@ -101,41 +105,26 @@ ], | ||
| ### List Posts | ||
| ```typescript | ||
| const { data } = await late.posts.list({ | ||
| query: { | ||
| status: 'scheduled', | ||
| limit: 20, | ||
| }, | ||
| }); | ||
| for (const post of data.posts) { | ||
| console.log(post.content, post.scheduledFor); | ||
| } | ||
| ``` | ||
| ### Upload Media | ||
| ```typescript | ||
| // 1. Get presigned URL | ||
| const { data: presign } = await late.media.getPresignedUrl({ | ||
| body: { | ||
| filename: 'image.jpg', | ||
| contentType: 'image/jpeg', | ||
| }, | ||
| // 1. Get presigned upload URL | ||
| const { data: presign } = await late.media.getMediaPresignedUrl({ | ||
| body: { filename: 'video.mp4', contentType: 'video/mp4' }, | ||
| }); | ||
| // 2. Upload file | ||
| // 2. Upload your file | ||
| await fetch(presign.uploadUrl, { | ||
| method: 'PUT', | ||
| body: imageBuffer, | ||
| headers: { 'Content-Type': 'image/jpeg' }, | ||
| body: videoBuffer, | ||
| headers: { 'Content-Type': 'video/mp4' }, | ||
| }); | ||
| // 3. Create post with media | ||
| await late.posts.create({ | ||
| const { data: post } = await late.posts.createPost({ | ||
| body: { | ||
| content: 'Post with image', | ||
| content: 'Check out this video!', | ||
| mediaUrls: [presign.publicUrl], | ||
| platforms: [{ platform: 'instagram', accountId: 'acc_xxx' }], | ||
| platforms: [ | ||
| { platform: 'tiktok', accountId: 'acc_xxx' }, | ||
| { platform: 'youtube', accountId: 'acc_yyy', youtubeTitle: 'My Video' }, | ||
| ], | ||
| publishNow: true, | ||
@@ -149,8 +138,9 @@ }, | ||
| ```typescript | ||
| const { data: analytics } = await late.analytics.get({ | ||
| const { data } = await late.analytics.getAnalytics({ | ||
| query: { postId: 'post_xxx' }, | ||
| }); | ||
| console.log('Impressions:', analytics.analytics.impressions); | ||
| console.log('Engagement:', analytics.analytics.engagementRate); | ||
| console.log('Views:', data.analytics.views); | ||
| console.log('Likes:', data.analytics.likes); | ||
| console.log('Engagement Rate:', data.analytics.engagementRate); | ||
| ``` | ||
@@ -161,3 +151,3 @@ | ||
| ```typescript | ||
| const { data } = await late.accounts.list(); | ||
| const { data } = await late.accounts.listAccounts(); | ||
@@ -169,14 +159,2 @@ for (const account of data.accounts) { | ||
| ### Configure Webhooks | ||
| ```typescript | ||
| await late.webhooks.updateSettings({ | ||
| body: { | ||
| url: 'https://your-app.com/webhooks/late', | ||
| events: ['post.published', 'post.failed', 'account.disconnected'], | ||
| secret: 'your-webhook-secret', | ||
| }, | ||
| }); | ||
| ``` | ||
| ## Error Handling | ||
@@ -187,13 +165,11 @@ | ||
| const late = new Late(); | ||
| try { | ||
| await late.posts.create({ body: { ... } }); | ||
| await late.posts.createPost({ body: { /* ... */ } }); | ||
| } catch (error) { | ||
| if (error instanceof RateLimitError) { | ||
| console.log(`Rate limited. Retry in ${error.getSecondsUntilReset()} seconds`); | ||
| console.log(`Rate limited. Retry in ${error.getSecondsUntilReset()}s`); | ||
| } else if (error instanceof ValidationError) { | ||
| console.log('Validation errors:', error.fields); | ||
| console.log('Invalid request:', error.fields); | ||
| } else if (error instanceof LateApiError) { | ||
| console.log(`API error ${error.statusCode}: ${error.message}`); | ||
| console.log(`Error ${error.statusCode}: ${error.message}`); | ||
| } | ||
@@ -203,43 +179,169 @@ } | ||
| ## API Reference | ||
| ## SDK Reference | ||
| ### Posts | ||
| | Method | Description | | ||
| |--------|-------------| | ||
| | `posts.list(params)` | List posts | | ||
| | `posts.create(params)` | Create a post | | ||
| | `posts.get(params)` | Get a post | | ||
| | `posts.update(params)` | Update a post | | ||
| | `posts.delete(params)` | Delete a post | | ||
| | `posts.retry(params)` | Retry a failed post | | ||
| | `posts.bulkUpload(params)` | Upload multiple posts | | ||
| | `posts.listPosts()` | List posts visible to the authenticated user | | ||
| | `posts.bulkUploadPosts()` | Validate and schedule multiple posts from CSV | | ||
| | `posts.createPost()` | Create a draft, scheduled, or immediate post | | ||
| | `posts.getPost()` | Get a single post | | ||
| | `posts.updatePost()` | Update a post | | ||
| | `posts.deletePost()` | Delete a post | | ||
| | `posts.retryPost()` | Retry publishing a failed or partial post | | ||
| ### Accounts | ||
| | Method | Description | | ||
| |--------|-------------| | ||
| | `accounts.getAllAccountsHealth()` | Check health of all connected accounts | | ||
| | `accounts.listAccounts()` | List connected social accounts | | ||
| | `accounts.getAccountHealth()` | Check health of a specific account | | ||
| | `accounts.getFollowerStats()` | Get follower stats and growth metrics | | ||
| | `accounts.getGoogleBusinessReviews()` | Get Google Business Profile reviews | | ||
| | `accounts.getLinkedInMentions()` | Resolve a LinkedIn profile or company URL to a URN for @mentions | | ||
| | `accounts.updateAccount()` | Update a social account | | ||
| | `accounts.deleteAccount()` | Disconnect a social account | | ||
| ### Profiles | ||
| | Method | Description | | ||
| |--------|-------------| | ||
| | `accounts.list()` | List connected accounts | | ||
| | `accounts.update(params)` | Update an account | | ||
| | `accounts.delete(params)` | Disconnect an account | | ||
| | `accounts.getFollowerStats()` | Get follower statistics | | ||
| | `accounts.getAllHealth()` | Get health for all accounts | | ||
| | `profiles.listProfiles()` | List profiles visible to the authenticated user | | ||
| | `profiles.createProfile()` | Create a new profile | | ||
| | `profiles.getProfile()` | Get a profile by id | | ||
| | `profiles.updateProfile()` | Update a profile | | ||
| | `profiles.deleteProfile()` | Delete a profile (must have no connected accounts) | | ||
| ### Analytics | ||
| | Method | Description | | ||
| |--------|-------------| | ||
| | `analytics.getAnalytics()` | Unified analytics for posts | | ||
| | `analytics.getLinkedInAggregateAnalytics()` | Get aggregate analytics for a LinkedIn personal account | | ||
| | `analytics.getLinkedInPostAnalytics()` | Get analytics for a specific LinkedIn post by URN | | ||
| | `analytics.getYouTubeDailyViews()` | YouTube daily views breakdown | | ||
| ### Account Groups | ||
| | Method | Description | | ||
| |--------|-------------| | ||
| | `analytics.get(params)` | Get post analytics | | ||
| | `analytics.getYouTubeDailyViews(params)` | Get YouTube daily views | | ||
| | `analytics.getLinkedInAggregate(params)` | Get LinkedIn org analytics | | ||
| | `accountGroups.listAccountGroups()` | List account groups for the authenticated user | | ||
| | `accountGroups.createAccountGroup()` | Create a new account group | | ||
| | `accountGroups.updateAccountGroup()` | Update an account group | | ||
| | `accountGroups.deleteAccountGroup()` | Delete an account group | | ||
| See the [API documentation](https://getlate.dev/docs/api) for all available methods. | ||
| ### Queue | ||
| | Method | Description | | ||
| |--------|-------------| | ||
| | `queue.listQueueSlots()` | Get queue schedules for a profile | | ||
| | `queue.createQueueSlot()` | Create a new queue for a profile | | ||
| | `queue.getNextQueueSlot()` | Get the next available queue slot for a profile | | ||
| | `queue.updateQueueSlot()` | Create or update a queue schedule | | ||
| | `queue.deleteQueueSlot()` | Delete a queue schedule | | ||
| | `queue.previewQueue()` | Preview upcoming queue slots for a profile | | ||
| ### Webhooks | ||
| | Method | Description | | ||
| |--------|-------------| | ||
| | `webhooks.createWebhookSettings()` | Create a new webhook | | ||
| | `webhooks.getWebhookLogs()` | Get webhook delivery logs | | ||
| | `webhooks.getWebhookSettings()` | List all webhooks | | ||
| | `webhooks.updateWebhookSettings()` | Update a webhook | | ||
| | `webhooks.deleteWebhookSettings()` | Delete a webhook | | ||
| | `webhooks.testWebhook()` | Send test webhook | | ||
| ### API Keys | ||
| | Method | Description | | ||
| |--------|-------------| | ||
| | `apiKeys.listApiKeys()` | List API keys for the current user | | ||
| | `apiKeys.createApiKey()` | Create a new API key | | ||
| | `apiKeys.deleteApiKey()` | Delete an API key | | ||
| ### Media | ||
| | Method | Description | | ||
| |--------|-------------| | ||
| | `media.getMediaPresignedUrl()` | Get a presigned URL for direct file upload (up to 5GB) | | ||
| ### Tools | ||
| | Method | Description | | ||
| |--------|-------------| | ||
| | `tools.getYouTubeTranscript()` | Get YouTube video transcript | | ||
| | `tools.checkInstagramHashtags()` | Check Instagram hashtags for bans | | ||
| | `tools.downloadBlueskyMedia()` | Download Bluesky video | | ||
| | `tools.downloadFacebookVideo()` | Download Facebook video | | ||
| | `tools.downloadInstagramMedia()` | Download Instagram reel or post | | ||
| | `tools.downloadLinkedInVideo()` | Download LinkedIn video | | ||
| | `tools.downloadTikTokVideo()` | Download TikTok video | | ||
| | `tools.downloadTwitterMedia()` | Download Twitter/X video | | ||
| | `tools.downloadYouTubeVideo()` | Download YouTube video or audio | | ||
| ### Users | ||
| | Method | Description | | ||
| |--------|-------------| | ||
| | `users.listUsers()` | List team users (root + invited) | | ||
| | `users.getUser()` | Get user by id (self or invited) | | ||
| ### Usage | ||
| | Method | Description | | ||
| |--------|-------------| | ||
| | `usage.getUsageStats()` | Get plan and usage stats for current account | | ||
| ### Logs | ||
| | Method | Description | | ||
| |--------|-------------| | ||
| | `logs.listLogs()` | Get publishing logs | | ||
| | `logs.getLog()` | Get a single log entry | | ||
| | `logs.getPostLogs()` | Get logs for a specific post | | ||
| ### Connect (OAuth) | ||
| | Method | Description | | ||
| |--------|-------------| | ||
| | `connect.listFacebookPages()` | List Facebook Pages after OAuth (Headless Mode) | | ||
| | `connect.listGoogleBusinessLocations()` | List Google Business Locations after OAuth (Headless Mode) | | ||
| | `connect.listLinkedInOrganizations()` | Fetch full LinkedIn organization details (Headless Mode) | | ||
| | `connect.listPinterestBoardsForSelection()` | List Pinterest Boards after OAuth (Headless Mode) | | ||
| | `connect.listSnapchatProfiles()` | List Snapchat Public Profiles after OAuth (Headless Mode) | | ||
| | `connect.getConnectUrl()` | Start OAuth connection for a platform | | ||
| | `connect.getLinkedInOrganizations()` | Get available LinkedIn organizations for a connected account | | ||
| | `connect.getPinterestBoards()` | List Pinterest boards for a connected account | | ||
| | `connect.getRedditSubreddits()` | List Reddit subreddits for a connected account | | ||
| | `connect.getTelegramConnectStatus()` | Generate Telegram access code | | ||
| | `connect.updateFacebookPage()` | Update selected Facebook page for a connected account | | ||
| | `connect.updateLinkedInOrganization()` | Switch LinkedIn account type (personal/organization) | | ||
| | `connect.updatePinterestBoards()` | Set default Pinterest board on the connection | | ||
| | `connect.updateRedditSubreddits()` | Set default subreddit on the connection | | ||
| | `connect.completeTelegramConnect()` | Check Telegram connection status | | ||
| | `connect.connectBlueskyCredentials()` | Connect Bluesky using app password | | ||
| | `connect.handleOAuthCallback()` | Complete OAuth token exchange manually (for server-side flows) | | ||
| | `connect.initiateTelegramConnect()` | Direct Telegram connection (power users) | | ||
| | `connect.selectFacebookPage()` | Select a Facebook Page to complete the connection (Headless Mode) | | ||
| | `connect.selectGoogleBusinessLocation()` | Select a Google Business location to complete the connection (Headless Mode) | | ||
| | `connect.selectLinkedInOrganization()` | Select LinkedIn organization or personal account after OAuth | | ||
| | `connect.selectPinterestBoard()` | Select a Pinterest Board to complete the connection (Headless Mode) | | ||
| | `connect.selectSnapchatProfile()` | Select a Snapchat Public Profile to complete the connection (Headless Mode) | | ||
| | Method | Description | | ||
| |--------|-------------| | ||
| | `reddit.getRedditFeed()` | Fetch subreddit feed via a connected account | | ||
| | `reddit.searchReddit()` | Search Reddit posts via a connected account | | ||
| ### Invites | ||
| | Method | Description | | ||
| |--------|-------------| | ||
| | `invites.listPlatformInvites()` | List platform connection invites | | ||
| | `invites.createInviteToken()` | Create a team member invite token | | ||
| | `invites.createPlatformInvite()` | Create a platform connection invite | | ||
| | `invites.deletePlatformInvite()` | Revoke a platform connection invite | | ||
| ## Requirements | ||
| - Node.js 18 or later | ||
| - An API key from [Late](https://getlate.dev) | ||
| - Node.js 18+ | ||
| - [Late API key](https://getlate.dev) (free tier available) | ||
| ## Links | ||
| - [Documentation](https://docs.getlate.dev) | ||
| - [Dashboard](https://getlate.dev/dashboard) | ||
| - [Changelog](https://docs.getlate.dev/changelog) | ||
| ## License | ||
| Apache-2.0 |
+211
-230
| import { | ||
| client, | ||
| // Posts | ||
| getV1Posts, | ||
| postV1Posts, | ||
| getV1PostsByPostId, | ||
| putV1PostsByPostId, | ||
| deleteV1PostsByPostId, | ||
| postV1PostsByPostIdRetry, | ||
| postV1PostsBulkUpload, | ||
| getV1PostsByPostIdLogs, | ||
| // Accounts | ||
| getV1Accounts, | ||
| putV1AccountsByAccountId, | ||
| deleteV1AccountsByAccountId, | ||
| getV1AccountsFollowerStats, | ||
| getV1AccountsHealth, | ||
| getV1AccountsByAccountIdHealth, | ||
| // Profiles | ||
| getV1Profiles, | ||
| postV1Profiles, | ||
| getV1ProfilesByProfileId, | ||
| putV1ProfilesByProfileId, | ||
| deleteV1ProfilesByProfileId, | ||
| // Analytics | ||
| getV1Analytics, | ||
| getV1AnalyticsYoutubeDailyViews, | ||
| getV1AccountsByAccountIdLinkedinAggregateAnalytics, | ||
| getV1AccountsByAccountIdLinkedinPostAnalytics, | ||
| // Account Groups | ||
| getV1AccountGroups, | ||
| postV1AccountGroups, | ||
| putV1AccountGroupsByGroupId, | ||
| deleteV1AccountGroupsByGroupId, | ||
| // Queue | ||
| getV1QueueSlots, | ||
| postV1QueueSlots, | ||
| putV1QueueSlots, | ||
| deleteV1QueueSlots, | ||
| getV1QueuePreview, | ||
| getV1QueueNextSlot, | ||
| // Webhooks | ||
| getV1WebhooksSettings, | ||
| postV1WebhooksSettings, | ||
| putV1WebhooksSettings, | ||
| deleteV1WebhooksSettings, | ||
| postV1WebhooksTest, | ||
| getV1WebhooksLogs, | ||
| // API Keys | ||
| getV1ApiKeys, | ||
| postV1ApiKeys, | ||
| deleteV1ApiKeysByKeyId, | ||
| // Media | ||
| postV1MediaPresign, | ||
| // Tools | ||
| getV1ToolsYoutubeDownload, | ||
| getV1ToolsYoutubeTranscript, | ||
| getV1ToolsInstagramDownload, | ||
| postV1ToolsInstagramHashtagChecker, | ||
| getV1ToolsTiktokDownload, | ||
| getV1ToolsTwitterDownload, | ||
| getV1ToolsFacebookDownload, | ||
| getV1ToolsLinkedinDownload, | ||
| getV1ToolsBlueskyDownload, | ||
| // Users | ||
| getV1Users, | ||
| getV1UsersByUserId, | ||
| // Usage | ||
| getV1UsageStats, | ||
| // Logs | ||
| getV1Logs, | ||
| getV1LogsByLogId, | ||
| // Connect | ||
| getV1ConnectByPlatform, | ||
| postV1ConnectByPlatform, | ||
| getV1ConnectFacebookSelectPage, | ||
| postV1ConnectFacebookSelectPage, | ||
| getV1ConnectGooglebusinessLocations, | ||
| postV1ConnectGooglebusinessSelectLocation, | ||
| getV1ConnectLinkedinOrganizations, | ||
| postV1ConnectLinkedinSelectOrganization, | ||
| getV1ConnectPinterestSelectBoard, | ||
| postV1ConnectPinterestSelectBoard, | ||
| getV1ConnectSnapchatSelectProfile, | ||
| postV1ConnectSnapchatSelectProfile, | ||
| postV1ConnectBlueskyCredentials, | ||
| getV1ConnectTelegram, | ||
| postV1ConnectTelegram, | ||
| patchV1ConnectTelegram, | ||
| getV1RedditSearch, | ||
| getV1RedditFeed, | ||
| // Invites | ||
| postV1InviteTokens, | ||
| getV1PlatformInvites, | ||
| postV1PlatformInvites, | ||
| deleteV1PlatformInvites, | ||
| // Account-specific endpoints | ||
| putV1AccountsByAccountIdFacebookPage, | ||
| getV1AccountsByAccountIdLinkedinOrganizations, | ||
| putV1AccountsByAccountIdLinkedinOrganization, | ||
| getV1AccountsByAccountIdLinkedinMentions, | ||
| getV1AccountsByAccountIdPinterestBoards, | ||
| putV1AccountsByAccountIdPinterestBoards, | ||
| getV1AccountsByAccountIdRedditSubreddits, | ||
| putV1AccountsByAccountIdRedditSubreddits, | ||
| getV1AccountsByAccountIdGmbReviews, | ||
| bulkUploadPosts, | ||
| checkInstagramHashtags, | ||
| completeTelegramConnect, | ||
| connectBlueskyCredentials, | ||
| createAccountGroup, | ||
| createApiKey, | ||
| createInviteToken, | ||
| createPlatformInvite, | ||
| createPost, | ||
| createProfile, | ||
| createQueueSlot, | ||
| createWebhookSettings, | ||
| deleteAccount, | ||
| deleteAccountGroup, | ||
| deleteApiKey, | ||
| deletePlatformInvite, | ||
| deletePost, | ||
| deleteProfile, | ||
| deleteQueueSlot, | ||
| deleteWebhookSettings, | ||
| downloadBlueskyMedia, | ||
| downloadFacebookVideo, | ||
| downloadInstagramMedia, | ||
| downloadLinkedInVideo, | ||
| downloadTikTokVideo, | ||
| downloadTwitterMedia, | ||
| downloadYouTubeVideo, | ||
| getAccountHealth, | ||
| getAllAccountsHealth, | ||
| getAnalytics, | ||
| getConnectUrl, | ||
| getFollowerStats, | ||
| getGoogleBusinessReviews, | ||
| getLinkedInAggregateAnalytics, | ||
| getLinkedInMentions, | ||
| getLinkedInOrganizations, | ||
| getLinkedInPostAnalytics, | ||
| getLog, | ||
| getMediaPresignedUrl, | ||
| getNextQueueSlot, | ||
| getPinterestBoards, | ||
| getPost, | ||
| getPostLogs, | ||
| getProfile, | ||
| getRedditFeed, | ||
| getRedditSubreddits, | ||
| getTelegramConnectStatus, | ||
| getUsageStats, | ||
| getUser, | ||
| getWebhookLogs, | ||
| getWebhookSettings, | ||
| getYouTubeDailyViews, | ||
| getYouTubeTranscript, | ||
| handleOAuthCallback, | ||
| initiateTelegramConnect, | ||
| listAccountGroups, | ||
| listAccounts, | ||
| listApiKeys, | ||
| listFacebookPages, | ||
| listGoogleBusinessLocations, | ||
| listLinkedInOrganizations, | ||
| listLogs, | ||
| listPinterestBoardsForSelection, | ||
| listPlatformInvites, | ||
| listPosts, | ||
| listProfiles, | ||
| listQueueSlots, | ||
| listSnapchatProfiles, | ||
| listUsers, | ||
| previewQueue, | ||
| retryPost, | ||
| searchReddit, | ||
| selectFacebookPage, | ||
| selectGoogleBusinessLocation, | ||
| selectLinkedInOrganization, | ||
| selectPinterestBoard, | ||
| selectSnapchatProfile, | ||
| testWebhook, | ||
| updateAccount, | ||
| updateAccountGroup, | ||
| updateFacebookPage, | ||
| updateLinkedInOrganization, | ||
| updatePinterestBoards, | ||
| updatePost, | ||
| updateProfile, | ||
| updateQueueSlot, | ||
| updateRedditSubreddits, | ||
| updateWebhookSettings, | ||
| } from './generated/sdk.gen'; | ||
| import { LateApiError, parseApiError } from './errors'; | ||
| export interface ClientOptions { | ||
@@ -135,3 +117,2 @@ /** | ||
| } | ||
| /** | ||
@@ -176,178 +157,163 @@ * API Client for the Late API. | ||
| /** | ||
| * Posts API - Create, schedule, and manage social media posts | ||
| * Tools API - Media download and utilities | ||
| */ | ||
| posts = { | ||
| list: getV1Posts, | ||
| create: postV1Posts, | ||
| get: getV1PostsByPostId, | ||
| update: putV1PostsByPostId, | ||
| delete: deleteV1PostsByPostId, | ||
| retry: postV1PostsByPostIdRetry, | ||
| bulkUpload: postV1PostsBulkUpload, | ||
| getLogs: getV1PostsByPostIdLogs, | ||
| tools = { | ||
| downloadYouTubeVideo: downloadYouTubeVideo, | ||
| getYouTubeTranscript: getYouTubeTranscript, | ||
| downloadInstagramMedia: downloadInstagramMedia, | ||
| checkInstagramHashtags: checkInstagramHashtags, | ||
| downloadTikTokVideo: downloadTikTokVideo, | ||
| downloadTwitterMedia: downloadTwitterMedia, | ||
| downloadFacebookVideo: downloadFacebookVideo, | ||
| downloadLinkedInVideo: downloadLinkedInVideo, | ||
| downloadBlueskyMedia: downloadBlueskyMedia, | ||
| }; | ||
| /** | ||
| * Accounts API - Manage connected social media accounts | ||
| * Analytics API - Get performance metrics | ||
| */ | ||
| accounts = { | ||
| list: getV1Accounts, | ||
| update: putV1AccountsByAccountId, | ||
| delete: deleteV1AccountsByAccountId, | ||
| getFollowerStats: getV1AccountsFollowerStats, | ||
| getAllHealth: getV1AccountsHealth, | ||
| getHealth: getV1AccountsByAccountIdHealth, | ||
| updateFacebookPage: putV1AccountsByAccountIdFacebookPage, | ||
| getLinkedInOrganizations: getV1AccountsByAccountIdLinkedinOrganizations, | ||
| updateLinkedInOrganization: putV1AccountsByAccountIdLinkedinOrganization, | ||
| getLinkedInMentions: getV1AccountsByAccountIdLinkedinMentions, | ||
| getPinterestBoards: getV1AccountsByAccountIdPinterestBoards, | ||
| updatePinterestBoards: putV1AccountsByAccountIdPinterestBoards, | ||
| getRedditSubreddits: getV1AccountsByAccountIdRedditSubreddits, | ||
| updateRedditSubreddits: putV1AccountsByAccountIdRedditSubreddits, | ||
| getGoogleBusinessReviews: getV1AccountsByAccountIdGmbReviews, | ||
| analytics = { | ||
| getAnalytics: getAnalytics, | ||
| getYouTubeDailyViews: getYouTubeDailyViews, | ||
| getLinkedInAggregateAnalytics: getLinkedInAggregateAnalytics, | ||
| getLinkedInPostAnalytics: getLinkedInPostAnalytics, | ||
| }; | ||
| /** | ||
| * Profiles API - Manage workspace profiles | ||
| * Account Groups API - Organize accounts into groups | ||
| */ | ||
| profiles = { | ||
| list: getV1Profiles, | ||
| create: postV1Profiles, | ||
| get: getV1ProfilesByProfileId, | ||
| update: putV1ProfilesByProfileId, | ||
| delete: deleteV1ProfilesByProfileId, | ||
| accountGroups = { | ||
| listAccountGroups: listAccountGroups, | ||
| createAccountGroup: createAccountGroup, | ||
| updateAccountGroup: updateAccountGroup, | ||
| deleteAccountGroup: deleteAccountGroup, | ||
| }; | ||
| /** | ||
| * Analytics API - Get performance metrics | ||
| * Media API - Upload and manage media files | ||
| */ | ||
| analytics = { | ||
| get: getV1Analytics, | ||
| getYouTubeDailyViews: getV1AnalyticsYoutubeDailyViews, | ||
| getLinkedInAggregate: getV1AccountsByAccountIdLinkedinAggregateAnalytics, | ||
| getLinkedInPostAnalytics: getV1AccountsByAccountIdLinkedinPostAnalytics, | ||
| media = { | ||
| getMediaPresignedUrl: getMediaPresignedUrl, | ||
| }; | ||
| /** | ||
| * Account Groups API - Organize accounts into groups | ||
| * Reddit API - Search and feed | ||
| */ | ||
| accountGroups = { | ||
| list: getV1AccountGroups, | ||
| create: postV1AccountGroups, | ||
| update: putV1AccountGroupsByGroupId, | ||
| delete: deleteV1AccountGroupsByGroupId, | ||
| reddit = { | ||
| searchReddit: searchReddit, | ||
| getRedditFeed: getRedditFeed, | ||
| }; | ||
| /** | ||
| * Queue API - Manage posting queue | ||
| * Usage API - Get usage statistics | ||
| */ | ||
| queue = { | ||
| listSlots: getV1QueueSlots, | ||
| createSlot: postV1QueueSlots, | ||
| updateSlot: putV1QueueSlots, | ||
| deleteSlot: deleteV1QueueSlots, | ||
| preview: getV1QueuePreview, | ||
| getNextSlot: getV1QueueNextSlot, | ||
| usage = { | ||
| getUsageStats: getUsageStats, | ||
| }; | ||
| /** | ||
| * Webhooks API - Configure event webhooks | ||
| * Posts API - Create, schedule, and manage social media posts | ||
| */ | ||
| webhooks = { | ||
| getSettings: getV1WebhooksSettings, | ||
| createSettings: postV1WebhooksSettings, | ||
| updateSettings: putV1WebhooksSettings, | ||
| deleteSettings: deleteV1WebhooksSettings, | ||
| test: postV1WebhooksTest, | ||
| getLogs: getV1WebhooksLogs, | ||
| posts = { | ||
| listPosts: listPosts, | ||
| createPost: createPost, | ||
| getPost: getPost, | ||
| updatePost: updatePost, | ||
| deletePost: deletePost, | ||
| bulkUploadPosts: bulkUploadPosts, | ||
| retryPost: retryPost, | ||
| }; | ||
| /** | ||
| * API Keys API - Manage API keys | ||
| * Users API - User management | ||
| */ | ||
| apiKeys = { | ||
| list: getV1ApiKeys, | ||
| create: postV1ApiKeys, | ||
| delete: deleteV1ApiKeysByKeyId, | ||
| users = { | ||
| listUsers: listUsers, | ||
| getUser: getUser, | ||
| }; | ||
| /** | ||
| * Media API - Upload and manage media files | ||
| * Profiles API - Manage workspace profiles | ||
| */ | ||
| media = { | ||
| getPresignedUrl: postV1MediaPresign, | ||
| profiles = { | ||
| listProfiles: listProfiles, | ||
| createProfile: createProfile, | ||
| getProfile: getProfile, | ||
| updateProfile: updateProfile, | ||
| deleteProfile: deleteProfile, | ||
| }; | ||
| /** | ||
| * Tools API - Media download and utilities | ||
| * Accounts API - Manage connected social media accounts | ||
| */ | ||
| tools = { | ||
| downloadYouTube: getV1ToolsYoutubeDownload, | ||
| getYouTubeTranscript: getV1ToolsYoutubeTranscript, | ||
| downloadInstagram: getV1ToolsInstagramDownload, | ||
| checkInstagramHashtags: postV1ToolsInstagramHashtagChecker, | ||
| downloadTikTok: getV1ToolsTiktokDownload, | ||
| downloadTwitter: getV1ToolsTwitterDownload, | ||
| downloadFacebook: getV1ToolsFacebookDownload, | ||
| downloadLinkedIn: getV1ToolsLinkedinDownload, | ||
| downloadBluesky: getV1ToolsBlueskyDownload, | ||
| accounts = { | ||
| listAccounts: listAccounts, | ||
| getFollowerStats: getFollowerStats, | ||
| updateAccount: updateAccount, | ||
| deleteAccount: deleteAccount, | ||
| getAllAccountsHealth: getAllAccountsHealth, | ||
| getAccountHealth: getAccountHealth, | ||
| getGoogleBusinessReviews: getGoogleBusinessReviews, | ||
| getLinkedInMentions: getLinkedInMentions, | ||
| }; | ||
| /** | ||
| * Users API - User management | ||
| * API Keys API - Manage API keys | ||
| */ | ||
| users = { | ||
| list: getV1Users, | ||
| get: getV1UsersByUserId, | ||
| apiKeys = { | ||
| listApiKeys: listApiKeys, | ||
| createApiKey: createApiKey, | ||
| deleteApiKey: deleteApiKey, | ||
| }; | ||
| /** | ||
| * Usage API - Get usage statistics | ||
| * Invites API - Team invitations | ||
| */ | ||
| usage = { | ||
| getStats: getV1UsageStats, | ||
| invites = { | ||
| createInviteToken: createInviteToken, | ||
| listPlatformInvites: listPlatformInvites, | ||
| createPlatformInvite: createPlatformInvite, | ||
| deletePlatformInvite: deletePlatformInvite, | ||
| }; | ||
| /** | ||
| * Logs API - Publishing logs | ||
| */ | ||
| logs = { | ||
| list: getV1Logs, | ||
| get: getV1LogsByLogId, | ||
| }; | ||
| /** | ||
| * Connect API - OAuth connection flows | ||
| */ | ||
| connect = { | ||
| getUrl: getV1ConnectByPlatform, | ||
| handleCallback: postV1ConnectByPlatform, | ||
| getConnectUrl: getConnectUrl, | ||
| handleOAuthCallback: handleOAuthCallback, | ||
| updateFacebookPage: updateFacebookPage, | ||
| getLinkedInOrganizations: getLinkedInOrganizations, | ||
| updateLinkedInOrganization: updateLinkedInOrganization, | ||
| getPinterestBoards: getPinterestBoards, | ||
| updatePinterestBoards: updatePinterestBoards, | ||
| getRedditSubreddits: getRedditSubreddits, | ||
| updateRedditSubreddits: updateRedditSubreddits, | ||
| facebook: { | ||
| listPages: getV1ConnectFacebookSelectPage, | ||
| selectPage: postV1ConnectFacebookSelectPage, | ||
| listFacebookPages: listFacebookPages, | ||
| selectFacebookPage: selectFacebookPage, | ||
| }, | ||
| googleBusiness: { | ||
| listLocations: getV1ConnectGooglebusinessLocations, | ||
| selectLocation: postV1ConnectGooglebusinessSelectLocation, | ||
| listGoogleBusinessLocations: listGoogleBusinessLocations, | ||
| selectGoogleBusinessLocation: selectGoogleBusinessLocation, | ||
| }, | ||
| linkedIn: { | ||
| listOrganizations: getV1ConnectLinkedinOrganizations, | ||
| selectOrganization: postV1ConnectLinkedinSelectOrganization, | ||
| linkedin: { | ||
| listLinkedInOrganizations: listLinkedInOrganizations, | ||
| selectLinkedInOrganization: selectLinkedInOrganization, | ||
| }, | ||
| pinterest: { | ||
| listBoards: getV1ConnectPinterestSelectBoard, | ||
| selectBoard: postV1ConnectPinterestSelectBoard, | ||
| listPinterestBoardsForSelection: listPinterestBoardsForSelection, | ||
| selectPinterestBoard: selectPinterestBoard, | ||
| }, | ||
| snapchat: { | ||
| listProfiles: getV1ConnectSnapchatSelectProfile, | ||
| selectProfile: postV1ConnectSnapchatSelectProfile, | ||
| listSnapchatProfiles: listSnapchatProfiles, | ||
| selectSnapchatProfile: selectSnapchatProfile, | ||
| }, | ||
| bluesky: { | ||
| connectCredentials: postV1ConnectBlueskyCredentials, | ||
| connectBlueskyCredentials: connectBlueskyCredentials, | ||
| }, | ||
| telegram: { | ||
| getStatus: getV1ConnectTelegram, | ||
| initiate: postV1ConnectTelegram, | ||
| complete: patchV1ConnectTelegram, | ||
| getTelegramConnectStatus: getTelegramConnectStatus, | ||
| initiateTelegramConnect: initiateTelegramConnect, | ||
| completeTelegramConnect: completeTelegramConnect, | ||
| }, | ||
@@ -357,20 +323,35 @@ }; | ||
| /** | ||
| * Reddit API - Search and feed | ||
| * Queue API - Manage posting queue | ||
| */ | ||
| reddit = { | ||
| search: getV1RedditSearch, | ||
| getFeed: getV1RedditFeed, | ||
| queue = { | ||
| listQueueSlots: listQueueSlots, | ||
| createQueueSlot: createQueueSlot, | ||
| updateQueueSlot: updateQueueSlot, | ||
| deleteQueueSlot: deleteQueueSlot, | ||
| previewQueue: previewQueue, | ||
| getNextQueueSlot: getNextQueueSlot, | ||
| }; | ||
| /** | ||
| * Invites API - Team invitations | ||
| * Webhooks API - Configure event webhooks | ||
| */ | ||
| invites = { | ||
| createToken: postV1InviteTokens, | ||
| list: getV1PlatformInvites, | ||
| create: postV1PlatformInvites, | ||
| delete: deleteV1PlatformInvites, | ||
| webhooks = { | ||
| getWebhookSettings: getWebhookSettings, | ||
| createWebhookSettings: createWebhookSettings, | ||
| updateWebhookSettings: updateWebhookSettings, | ||
| deleteWebhookSettings: deleteWebhookSettings, | ||
| testWebhook: testWebhook, | ||
| getWebhookLogs: getWebhookLogs, | ||
| }; | ||
| /** | ||
| * Logs API - Publishing logs | ||
| */ | ||
| logs = { | ||
| listLogs: listLogs, | ||
| getLog: getLog, | ||
| getPostLogs: getPostLogs, | ||
| }; | ||
| /** | ||
| * Create a new Late API client. | ||
@@ -377,0 +358,0 @@ * |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
335
43.78%61
-3.17%545509
-2.65%11
57.14%12089
-0.4%