@getlatedev/node
Advanced tools
+76
-1
@@ -928,2 +928,62 @@ "use strict"; | ||
| }; | ||
| var editInboxMessage = (options) => { | ||
| return (options?.client ?? client).patch({ | ||
| ...options, | ||
| url: "/v1/inbox/conversations/{conversationId}/messages/{messageId}" | ||
| }); | ||
| }; | ||
| var getMessengerMenu = (options) => { | ||
| return (options?.client ?? client).get({ | ||
| ...options, | ||
| url: "/v1/accounts/{accountId}/messenger-menu" | ||
| }); | ||
| }; | ||
| var setMessengerMenu = (options) => { | ||
| return (options?.client ?? client).put({ | ||
| ...options, | ||
| url: "/v1/accounts/{accountId}/messenger-menu" | ||
| }); | ||
| }; | ||
| var deleteMessengerMenu = (options) => { | ||
| return (options?.client ?? client).delete({ | ||
| ...options, | ||
| url: "/v1/accounts/{accountId}/messenger-menu" | ||
| }); | ||
| }; | ||
| var getInstagramIceBreakers = (options) => { | ||
| return (options?.client ?? client).get({ | ||
| ...options, | ||
| url: "/v1/accounts/{accountId}/instagram-ice-breakers" | ||
| }); | ||
| }; | ||
| var setInstagramIceBreakers = (options) => { | ||
| return (options?.client ?? client).put({ | ||
| ...options, | ||
| url: "/v1/accounts/{accountId}/instagram-ice-breakers" | ||
| }); | ||
| }; | ||
| var deleteInstagramIceBreakers = (options) => { | ||
| return (options?.client ?? client).delete({ | ||
| ...options, | ||
| url: "/v1/accounts/{accountId}/instagram-ice-breakers" | ||
| }); | ||
| }; | ||
| var getTelegramCommands = (options) => { | ||
| return (options?.client ?? client).get({ | ||
| ...options, | ||
| url: "/v1/accounts/{accountId}/telegram-commands" | ||
| }); | ||
| }; | ||
| var setTelegramCommands = (options) => { | ||
| return (options?.client ?? client).put({ | ||
| ...options, | ||
| url: "/v1/accounts/{accountId}/telegram-commands" | ||
| }); | ||
| }; | ||
| var deleteTelegramCommands = (options) => { | ||
| return (options?.client ?? client).delete({ | ||
| ...options, | ||
| url: "/v1/accounts/{accountId}/telegram-commands" | ||
| }); | ||
| }; | ||
| var listInboxComments = (options) => { | ||
@@ -1333,5 +1393,20 @@ return (options?.client ?? client).get({ | ||
| getInboxConversationMessages, | ||
| sendInboxMessage | ||
| sendInboxMessage, | ||
| editInboxMessage | ||
| }; | ||
| /** | ||
| * accountsettings API | ||
| */ | ||
| this.accountsettings = { | ||
| getMessengerMenu, | ||
| setMessengerMenu, | ||
| deleteMessengerMenu, | ||
| getInstagramIceBreakers, | ||
| setInstagramIceBreakers, | ||
| deleteInstagramIceBreakers, | ||
| getTelegramCommands, | ||
| setTelegramCommands, | ||
| deleteTelegramCommands | ||
| }; | ||
| /** | ||
| * comments API | ||
@@ -1338,0 +1413,0 @@ */ |
+76
-1
@@ -899,2 +899,62 @@ var __defProp = Object.defineProperty; | ||
| }; | ||
| var editInboxMessage = (options) => { | ||
| return (options?.client ?? client).patch({ | ||
| ...options, | ||
| url: "/v1/inbox/conversations/{conversationId}/messages/{messageId}" | ||
| }); | ||
| }; | ||
| var getMessengerMenu = (options) => { | ||
| return (options?.client ?? client).get({ | ||
| ...options, | ||
| url: "/v1/accounts/{accountId}/messenger-menu" | ||
| }); | ||
| }; | ||
| var setMessengerMenu = (options) => { | ||
| return (options?.client ?? client).put({ | ||
| ...options, | ||
| url: "/v1/accounts/{accountId}/messenger-menu" | ||
| }); | ||
| }; | ||
| var deleteMessengerMenu = (options) => { | ||
| return (options?.client ?? client).delete({ | ||
| ...options, | ||
| url: "/v1/accounts/{accountId}/messenger-menu" | ||
| }); | ||
| }; | ||
| var getInstagramIceBreakers = (options) => { | ||
| return (options?.client ?? client).get({ | ||
| ...options, | ||
| url: "/v1/accounts/{accountId}/instagram-ice-breakers" | ||
| }); | ||
| }; | ||
| var setInstagramIceBreakers = (options) => { | ||
| return (options?.client ?? client).put({ | ||
| ...options, | ||
| url: "/v1/accounts/{accountId}/instagram-ice-breakers" | ||
| }); | ||
| }; | ||
| var deleteInstagramIceBreakers = (options) => { | ||
| return (options?.client ?? client).delete({ | ||
| ...options, | ||
| url: "/v1/accounts/{accountId}/instagram-ice-breakers" | ||
| }); | ||
| }; | ||
| var getTelegramCommands = (options) => { | ||
| return (options?.client ?? client).get({ | ||
| ...options, | ||
| url: "/v1/accounts/{accountId}/telegram-commands" | ||
| }); | ||
| }; | ||
| var setTelegramCommands = (options) => { | ||
| return (options?.client ?? client).put({ | ||
| ...options, | ||
| url: "/v1/accounts/{accountId}/telegram-commands" | ||
| }); | ||
| }; | ||
| var deleteTelegramCommands = (options) => { | ||
| return (options?.client ?? client).delete({ | ||
| ...options, | ||
| url: "/v1/accounts/{accountId}/telegram-commands" | ||
| }); | ||
| }; | ||
| var listInboxComments = (options) => { | ||
@@ -1304,5 +1364,20 @@ return (options?.client ?? client).get({ | ||
| getInboxConversationMessages, | ||
| sendInboxMessage | ||
| sendInboxMessage, | ||
| editInboxMessage | ||
| }; | ||
| /** | ||
| * accountsettings API | ||
| */ | ||
| this.accountsettings = { | ||
| getMessengerMenu, | ||
| setMessengerMenu, | ||
| deleteMessengerMenu, | ||
| getInstagramIceBreakers, | ||
| setInstagramIceBreakers, | ||
| deleteInstagramIceBreakers, | ||
| getTelegramCommands, | ||
| setTelegramCommands, | ||
| deleteTelegramCommands | ||
| }; | ||
| /** | ||
| * comments API | ||
@@ -1309,0 +1384,0 @@ */ |
+1
-1
| { | ||
| "name": "@getlatedev/node", | ||
| "version": "0.1.15", | ||
| "version": "0.1.16", | ||
| "description": "The official Node.js library for the Late API", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
+14
-0
@@ -319,2 +319,15 @@ <p align="center"> | ||
| ### Account Settings | ||
| | Method | Description | | ||
| |--------|-------------| | ||
| | `accountSettings.getInstagramIceBreakers()` | Get Instagram ice breakers | | ||
| | `accountSettings.getMessengerMenu()` | Get Facebook persistent menu | | ||
| | `accountSettings.getTelegramCommands()` | Get Telegram bot commands | | ||
| | `accountSettings.deleteInstagramIceBreakers()` | Delete Instagram ice breakers | | ||
| | `accountSettings.deleteMessengerMenu()` | Delete Facebook persistent menu | | ||
| | `accountSettings.deleteTelegramCommands()` | Delete Telegram bot commands | | ||
| | `accountSettings.setInstagramIceBreakers()` | Set Instagram ice breakers | | ||
| | `accountSettings.setMessengerMenu()` | Set Facebook persistent menu | | ||
| | `accountSettings.setTelegramCommands()` | Set Telegram bot commands | | ||
| ### Comments (Inbox) | ||
@@ -372,2 +385,3 @@ | Method | Description | | ||
| | `messages.updateInboxConversation()` | Update conversation status | | ||
| | `messages.editInboxMessage()` | Edit a message (Telegram only) | | ||
| | `messages.sendInboxMessage()` | Send a message | | ||
@@ -374,0 +388,0 @@ |
+26
-0
@@ -23,5 +23,8 @@ import { | ||
| deleteInboxReviewReply, | ||
| deleteInstagramIceBreakers, | ||
| deleteMessengerMenu, | ||
| deletePost, | ||
| deleteProfile, | ||
| deleteQueueSlot, | ||
| deleteTelegramCommands, | ||
| deleteWebhookSettings, | ||
@@ -35,2 +38,3 @@ downloadBlueskyMedia, | ||
| downloadYouTubeVideo, | ||
| editInboxMessage, | ||
| getAccountHealth, | ||
@@ -50,2 +54,3 @@ getAllAccountsHealth, | ||
| getInboxPostComments, | ||
| getInstagramIceBreakers, | ||
| getLinkedInAggregateAnalytics, | ||
@@ -57,2 +62,3 @@ getLinkedInMentions, | ||
| getMediaPresignedUrl, | ||
| getMessengerMenu, | ||
| getNextQueueSlot, | ||
@@ -66,2 +72,3 @@ getPendingOAuthData, | ||
| getRedditSubreddits, | ||
| getTelegramCommands, | ||
| getTelegramConnectStatus, | ||
@@ -110,2 +117,5 @@ getUsageStats, | ||
| sendPrivateReplyToComment, | ||
| setInstagramIceBreakers, | ||
| setMessengerMenu, | ||
| setTelegramCommands, | ||
| testWebhook, | ||
@@ -445,5 +455,21 @@ unhideInboxComment, | ||
| sendInboxMessage: sendInboxMessage, | ||
| editInboxMessage: editInboxMessage, | ||
| }; | ||
| /** | ||
| * accountsettings API | ||
| */ | ||
| accountsettings = { | ||
| getMessengerMenu: getMessengerMenu, | ||
| setMessengerMenu: setMessengerMenu, | ||
| deleteMessengerMenu: deleteMessengerMenu, | ||
| getInstagramIceBreakers: getInstagramIceBreakers, | ||
| setInstagramIceBreakers: setInstagramIceBreakers, | ||
| deleteInstagramIceBreakers: deleteInstagramIceBreakers, | ||
| getTelegramCommands: getTelegramCommands, | ||
| setTelegramCommands: setTelegramCommands, | ||
| deleteTelegramCommands: deleteTelegramCommands, | ||
| }; | ||
| /** | ||
| * comments API | ||
@@ -450,0 +476,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
805990
5.44%17837
5.31%413
3.51%81
5.19%