@getlatedev/node 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +212 -110
- package/dist/index.d.mts +381 -381
- package/dist/index.d.ts +381 -381
- package/dist/index.js +209 -209
- package/dist/index.mjs +209 -209
- package/package.json +9 -4
- package/src/client.ts +211 -230
- package/src/generated/sdk.gen.ts +177 -177
- package/src/generated/types.gen.ts +259 -259
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getlatedev/node",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "The official Node.js library for the Late API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -25,10 +25,11 @@
|
|
|
25
25
|
"LICENSE"
|
|
26
26
|
],
|
|
27
27
|
"scripts": {
|
|
28
|
-
"generate": "openapi-ts -i openapi.yaml -o src/generated -c @hey-api/client-fetch",
|
|
28
|
+
"generate": "openapi-ts -i openapi.yaml -o src/generated -c @hey-api/client-fetch && npm run generate:client",
|
|
29
|
+
"generate:client": "npx tsx scripts/generate-client.ts",
|
|
29
30
|
"build": "tsup src/index.ts --format cjs,esm --dts --clean",
|
|
30
31
|
"dev": "tsup src/index.ts --format cjs,esm --dts --watch",
|
|
31
|
-
"lint": "eslint src
|
|
32
|
+
"lint": "eslint src",
|
|
32
33
|
"typecheck": "tsc --noEmit",
|
|
33
34
|
"test": "vitest run",
|
|
34
35
|
"test:watch": "vitest",
|
|
@@ -71,9 +72,13 @@
|
|
|
71
72
|
"@hey-api/client-fetch": "^0.6.0",
|
|
72
73
|
"@hey-api/openapi-ts": "^0.61.0",
|
|
73
74
|
"@types/node": "^20.11.0",
|
|
75
|
+
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
76
|
+
"@typescript-eslint/parser": "^7.18.0",
|
|
74
77
|
"eslint": "^8.56.0",
|
|
75
78
|
"tsup": "^8.0.1",
|
|
79
|
+
"tsx": "^4.7.0",
|
|
76
80
|
"typescript": "^5.3.3",
|
|
77
|
-
"vitest": "^1.2.0"
|
|
81
|
+
"vitest": "^1.2.0",
|
|
82
|
+
"yaml": "^2.3.4"
|
|
78
83
|
}
|
|
79
84
|
}
|
package/src/client.ts
CHANGED
|
@@ -1,114 +1,96 @@
|
|
|
1
1
|
import {
|
|
2
2
|
client,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
getV1RedditSearch,
|
|
92
|
-
getV1RedditFeed,
|
|
93
|
-
// Invites
|
|
94
|
-
postV1InviteTokens,
|
|
95
|
-
getV1PlatformInvites,
|
|
96
|
-
postV1PlatformInvites,
|
|
97
|
-
deleteV1PlatformInvites,
|
|
98
|
-
// Account-specific endpoints
|
|
99
|
-
putV1AccountsByAccountIdFacebookPage,
|
|
100
|
-
getV1AccountsByAccountIdLinkedinOrganizations,
|
|
101
|
-
putV1AccountsByAccountIdLinkedinOrganization,
|
|
102
|
-
getV1AccountsByAccountIdLinkedinMentions,
|
|
103
|
-
getV1AccountsByAccountIdPinterestBoards,
|
|
104
|
-
putV1AccountsByAccountIdPinterestBoards,
|
|
105
|
-
getV1AccountsByAccountIdRedditSubreddits,
|
|
106
|
-
putV1AccountsByAccountIdRedditSubreddits,
|
|
107
|
-
getV1AccountsByAccountIdGmbReviews,
|
|
3
|
+
bulkUploadPosts,
|
|
4
|
+
checkInstagramHashtags,
|
|
5
|
+
completeTelegramConnect,
|
|
6
|
+
connectBlueskyCredentials,
|
|
7
|
+
createAccountGroup,
|
|
8
|
+
createApiKey,
|
|
9
|
+
createInviteToken,
|
|
10
|
+
createPlatformInvite,
|
|
11
|
+
createPost,
|
|
12
|
+
createProfile,
|
|
13
|
+
createQueueSlot,
|
|
14
|
+
createWebhookSettings,
|
|
15
|
+
deleteAccount,
|
|
16
|
+
deleteAccountGroup,
|
|
17
|
+
deleteApiKey,
|
|
18
|
+
deletePlatformInvite,
|
|
19
|
+
deletePost,
|
|
20
|
+
deleteProfile,
|
|
21
|
+
deleteQueueSlot,
|
|
22
|
+
deleteWebhookSettings,
|
|
23
|
+
downloadBlueskyMedia,
|
|
24
|
+
downloadFacebookVideo,
|
|
25
|
+
downloadInstagramMedia,
|
|
26
|
+
downloadLinkedInVideo,
|
|
27
|
+
downloadTikTokVideo,
|
|
28
|
+
downloadTwitterMedia,
|
|
29
|
+
downloadYouTubeVideo,
|
|
30
|
+
getAccountHealth,
|
|
31
|
+
getAllAccountsHealth,
|
|
32
|
+
getAnalytics,
|
|
33
|
+
getConnectUrl,
|
|
34
|
+
getFollowerStats,
|
|
35
|
+
getGoogleBusinessReviews,
|
|
36
|
+
getLinkedInAggregateAnalytics,
|
|
37
|
+
getLinkedInMentions,
|
|
38
|
+
getLinkedInOrganizations,
|
|
39
|
+
getLinkedInPostAnalytics,
|
|
40
|
+
getLog,
|
|
41
|
+
getMediaPresignedUrl,
|
|
42
|
+
getNextQueueSlot,
|
|
43
|
+
getPinterestBoards,
|
|
44
|
+
getPost,
|
|
45
|
+
getPostLogs,
|
|
46
|
+
getProfile,
|
|
47
|
+
getRedditFeed,
|
|
48
|
+
getRedditSubreddits,
|
|
49
|
+
getTelegramConnectStatus,
|
|
50
|
+
getUsageStats,
|
|
51
|
+
getUser,
|
|
52
|
+
getWebhookLogs,
|
|
53
|
+
getWebhookSettings,
|
|
54
|
+
getYouTubeDailyViews,
|
|
55
|
+
getYouTubeTranscript,
|
|
56
|
+
handleOAuthCallback,
|
|
57
|
+
initiateTelegramConnect,
|
|
58
|
+
listAccountGroups,
|
|
59
|
+
listAccounts,
|
|
60
|
+
listApiKeys,
|
|
61
|
+
listFacebookPages,
|
|
62
|
+
listGoogleBusinessLocations,
|
|
63
|
+
listLinkedInOrganizations,
|
|
64
|
+
listLogs,
|
|
65
|
+
listPinterestBoardsForSelection,
|
|
66
|
+
listPlatformInvites,
|
|
67
|
+
listPosts,
|
|
68
|
+
listProfiles,
|
|
69
|
+
listQueueSlots,
|
|
70
|
+
listSnapchatProfiles,
|
|
71
|
+
listUsers,
|
|
72
|
+
previewQueue,
|
|
73
|
+
retryPost,
|
|
74
|
+
searchReddit,
|
|
75
|
+
selectFacebookPage,
|
|
76
|
+
selectGoogleBusinessLocation,
|
|
77
|
+
selectLinkedInOrganization,
|
|
78
|
+
selectPinterestBoard,
|
|
79
|
+
selectSnapchatProfile,
|
|
80
|
+
testWebhook,
|
|
81
|
+
updateAccount,
|
|
82
|
+
updateAccountGroup,
|
|
83
|
+
updateFacebookPage,
|
|
84
|
+
updateLinkedInOrganization,
|
|
85
|
+
updatePinterestBoards,
|
|
86
|
+
updatePost,
|
|
87
|
+
updateProfile,
|
|
88
|
+
updateQueueSlot,
|
|
89
|
+
updateRedditSubreddits,
|
|
90
|
+
updateWebhookSettings,
|
|
108
91
|
} from './generated/sdk.gen';
|
|
109
92
|
|
|
110
93
|
import { LateApiError, parseApiError } from './errors';
|
|
111
|
-
|
|
112
94
|
export interface ClientOptions {
|
|
113
95
|
/**
|
|
114
96
|
* API key for authentication. Defaults to process.env['LATE_API_KEY'].
|
|
@@ -132,7 +114,6 @@ export interface ClientOptions {
|
|
|
132
114
|
*/
|
|
133
115
|
defaultHeaders?: Record<string, string>;
|
|
134
116
|
}
|
|
135
|
-
|
|
136
117
|
/**
|
|
137
118
|
* API Client for the Late API.
|
|
138
119
|
*
|
|
@@ -172,201 +153,201 @@ export class Late {
|
|
|
172
153
|
baseURL: string;
|
|
173
154
|
|
|
174
155
|
/**
|
|
175
|
-
*
|
|
176
|
-
*/
|
|
177
|
-
posts = {
|
|
178
|
-
list: getV1Posts,
|
|
179
|
-
create: postV1Posts,
|
|
180
|
-
get: getV1PostsByPostId,
|
|
181
|
-
update: putV1PostsByPostId,
|
|
182
|
-
delete: deleteV1PostsByPostId,
|
|
183
|
-
retry: postV1PostsByPostIdRetry,
|
|
184
|
-
bulkUpload: postV1PostsBulkUpload,
|
|
185
|
-
getLogs: getV1PostsByPostIdLogs,
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* Accounts API - Manage connected social media accounts
|
|
190
|
-
*/
|
|
191
|
-
accounts = {
|
|
192
|
-
list: getV1Accounts,
|
|
193
|
-
update: putV1AccountsByAccountId,
|
|
194
|
-
delete: deleteV1AccountsByAccountId,
|
|
195
|
-
getFollowerStats: getV1AccountsFollowerStats,
|
|
196
|
-
getAllHealth: getV1AccountsHealth,
|
|
197
|
-
getHealth: getV1AccountsByAccountIdHealth,
|
|
198
|
-
updateFacebookPage: putV1AccountsByAccountIdFacebookPage,
|
|
199
|
-
getLinkedInOrganizations: getV1AccountsByAccountIdLinkedinOrganizations,
|
|
200
|
-
updateLinkedInOrganization: putV1AccountsByAccountIdLinkedinOrganization,
|
|
201
|
-
getLinkedInMentions: getV1AccountsByAccountIdLinkedinMentions,
|
|
202
|
-
getPinterestBoards: getV1AccountsByAccountIdPinterestBoards,
|
|
203
|
-
updatePinterestBoards: putV1AccountsByAccountIdPinterestBoards,
|
|
204
|
-
getRedditSubreddits: getV1AccountsByAccountIdRedditSubreddits,
|
|
205
|
-
updateRedditSubreddits: putV1AccountsByAccountIdRedditSubreddits,
|
|
206
|
-
getGoogleBusinessReviews: getV1AccountsByAccountIdGmbReviews,
|
|
207
|
-
};
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* Profiles API - Manage workspace profiles
|
|
156
|
+
* Tools API - Media download and utilities
|
|
211
157
|
*/
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
158
|
+
tools = {
|
|
159
|
+
downloadYouTubeVideo: downloadYouTubeVideo,
|
|
160
|
+
getYouTubeTranscript: getYouTubeTranscript,
|
|
161
|
+
downloadInstagramMedia: downloadInstagramMedia,
|
|
162
|
+
checkInstagramHashtags: checkInstagramHashtags,
|
|
163
|
+
downloadTikTokVideo: downloadTikTokVideo,
|
|
164
|
+
downloadTwitterMedia: downloadTwitterMedia,
|
|
165
|
+
downloadFacebookVideo: downloadFacebookVideo,
|
|
166
|
+
downloadLinkedInVideo: downloadLinkedInVideo,
|
|
167
|
+
downloadBlueskyMedia: downloadBlueskyMedia,
|
|
218
168
|
};
|
|
219
169
|
|
|
220
170
|
/**
|
|
221
171
|
* Analytics API - Get performance metrics
|
|
222
172
|
*/
|
|
223
173
|
analytics = {
|
|
224
|
-
|
|
225
|
-
getYouTubeDailyViews:
|
|
226
|
-
|
|
227
|
-
getLinkedInPostAnalytics:
|
|
174
|
+
getAnalytics: getAnalytics,
|
|
175
|
+
getYouTubeDailyViews: getYouTubeDailyViews,
|
|
176
|
+
getLinkedInAggregateAnalytics: getLinkedInAggregateAnalytics,
|
|
177
|
+
getLinkedInPostAnalytics: getLinkedInPostAnalytics,
|
|
228
178
|
};
|
|
229
179
|
|
|
230
180
|
/**
|
|
231
181
|
* Account Groups API - Organize accounts into groups
|
|
232
182
|
*/
|
|
233
183
|
accountGroups = {
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
184
|
+
listAccountGroups: listAccountGroups,
|
|
185
|
+
createAccountGroup: createAccountGroup,
|
|
186
|
+
updateAccountGroup: updateAccountGroup,
|
|
187
|
+
deleteAccountGroup: deleteAccountGroup,
|
|
238
188
|
};
|
|
239
189
|
|
|
240
190
|
/**
|
|
241
|
-
*
|
|
191
|
+
* Media API - Upload and manage media files
|
|
242
192
|
*/
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
createSlot: postV1QueueSlots,
|
|
246
|
-
updateSlot: putV1QueueSlots,
|
|
247
|
-
deleteSlot: deleteV1QueueSlots,
|
|
248
|
-
preview: getV1QueuePreview,
|
|
249
|
-
getNextSlot: getV1QueueNextSlot,
|
|
193
|
+
media = {
|
|
194
|
+
getMediaPresignedUrl: getMediaPresignedUrl,
|
|
250
195
|
};
|
|
251
196
|
|
|
252
197
|
/**
|
|
253
|
-
*
|
|
198
|
+
* Reddit API - Search and feed
|
|
254
199
|
*/
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
updateSettings: putV1WebhooksSettings,
|
|
259
|
-
deleteSettings: deleteV1WebhooksSettings,
|
|
260
|
-
test: postV1WebhooksTest,
|
|
261
|
-
getLogs: getV1WebhooksLogs,
|
|
200
|
+
reddit = {
|
|
201
|
+
searchReddit: searchReddit,
|
|
202
|
+
getRedditFeed: getRedditFeed,
|
|
262
203
|
};
|
|
263
204
|
|
|
264
205
|
/**
|
|
265
|
-
*
|
|
206
|
+
* Usage API - Get usage statistics
|
|
266
207
|
*/
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
create: postV1ApiKeys,
|
|
270
|
-
delete: deleteV1ApiKeysByKeyId,
|
|
208
|
+
usage = {
|
|
209
|
+
getUsageStats: getUsageStats,
|
|
271
210
|
};
|
|
272
211
|
|
|
273
212
|
/**
|
|
274
|
-
*
|
|
213
|
+
* Posts API - Create, schedule, and manage social media posts
|
|
275
214
|
*/
|
|
276
|
-
|
|
277
|
-
|
|
215
|
+
posts = {
|
|
216
|
+
listPosts: listPosts,
|
|
217
|
+
createPost: createPost,
|
|
218
|
+
getPost: getPost,
|
|
219
|
+
updatePost: updatePost,
|
|
220
|
+
deletePost: deletePost,
|
|
221
|
+
bulkUploadPosts: bulkUploadPosts,
|
|
222
|
+
retryPost: retryPost,
|
|
278
223
|
};
|
|
279
224
|
|
|
280
225
|
/**
|
|
281
|
-
*
|
|
226
|
+
* Users API - User management
|
|
282
227
|
*/
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
downloadInstagram: getV1ToolsInstagramDownload,
|
|
287
|
-
checkInstagramHashtags: postV1ToolsInstagramHashtagChecker,
|
|
288
|
-
downloadTikTok: getV1ToolsTiktokDownload,
|
|
289
|
-
downloadTwitter: getV1ToolsTwitterDownload,
|
|
290
|
-
downloadFacebook: getV1ToolsFacebookDownload,
|
|
291
|
-
downloadLinkedIn: getV1ToolsLinkedinDownload,
|
|
292
|
-
downloadBluesky: getV1ToolsBlueskyDownload,
|
|
228
|
+
users = {
|
|
229
|
+
listUsers: listUsers,
|
|
230
|
+
getUser: getUser,
|
|
293
231
|
};
|
|
294
232
|
|
|
295
233
|
/**
|
|
296
|
-
*
|
|
234
|
+
* Profiles API - Manage workspace profiles
|
|
297
235
|
*/
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
236
|
+
profiles = {
|
|
237
|
+
listProfiles: listProfiles,
|
|
238
|
+
createProfile: createProfile,
|
|
239
|
+
getProfile: getProfile,
|
|
240
|
+
updateProfile: updateProfile,
|
|
241
|
+
deleteProfile: deleteProfile,
|
|
301
242
|
};
|
|
302
243
|
|
|
303
244
|
/**
|
|
304
|
-
*
|
|
245
|
+
* Accounts API - Manage connected social media accounts
|
|
305
246
|
*/
|
|
306
|
-
|
|
307
|
-
|
|
247
|
+
accounts = {
|
|
248
|
+
listAccounts: listAccounts,
|
|
249
|
+
getFollowerStats: getFollowerStats,
|
|
250
|
+
updateAccount: updateAccount,
|
|
251
|
+
deleteAccount: deleteAccount,
|
|
252
|
+
getAllAccountsHealth: getAllAccountsHealth,
|
|
253
|
+
getAccountHealth: getAccountHealth,
|
|
254
|
+
getGoogleBusinessReviews: getGoogleBusinessReviews,
|
|
255
|
+
getLinkedInMentions: getLinkedInMentions,
|
|
308
256
|
};
|
|
309
257
|
|
|
310
258
|
/**
|
|
311
|
-
*
|
|
259
|
+
* API Keys API - Manage API keys
|
|
312
260
|
*/
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
261
|
+
apiKeys = {
|
|
262
|
+
listApiKeys: listApiKeys,
|
|
263
|
+
createApiKey: createApiKey,
|
|
264
|
+
deleteApiKey: deleteApiKey,
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Invites API - Team invitations
|
|
269
|
+
*/
|
|
270
|
+
invites = {
|
|
271
|
+
createInviteToken: createInviteToken,
|
|
272
|
+
listPlatformInvites: listPlatformInvites,
|
|
273
|
+
createPlatformInvite: createPlatformInvite,
|
|
274
|
+
deletePlatformInvite: deletePlatformInvite,
|
|
316
275
|
};
|
|
317
276
|
|
|
318
277
|
/**
|
|
319
278
|
* Connect API - OAuth connection flows
|
|
320
279
|
*/
|
|
321
280
|
connect = {
|
|
322
|
-
|
|
323
|
-
|
|
281
|
+
getConnectUrl: getConnectUrl,
|
|
282
|
+
handleOAuthCallback: handleOAuthCallback,
|
|
283
|
+
updateFacebookPage: updateFacebookPage,
|
|
284
|
+
getLinkedInOrganizations: getLinkedInOrganizations,
|
|
285
|
+
updateLinkedInOrganization: updateLinkedInOrganization,
|
|
286
|
+
getPinterestBoards: getPinterestBoards,
|
|
287
|
+
updatePinterestBoards: updatePinterestBoards,
|
|
288
|
+
getRedditSubreddits: getRedditSubreddits,
|
|
289
|
+
updateRedditSubreddits: updateRedditSubreddits,
|
|
324
290
|
facebook: {
|
|
325
|
-
|
|
326
|
-
|
|
291
|
+
listFacebookPages: listFacebookPages,
|
|
292
|
+
selectFacebookPage: selectFacebookPage,
|
|
327
293
|
},
|
|
328
294
|
googleBusiness: {
|
|
329
|
-
|
|
330
|
-
|
|
295
|
+
listGoogleBusinessLocations: listGoogleBusinessLocations,
|
|
296
|
+
selectGoogleBusinessLocation: selectGoogleBusinessLocation,
|
|
331
297
|
},
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
298
|
+
linkedin: {
|
|
299
|
+
listLinkedInOrganizations: listLinkedInOrganizations,
|
|
300
|
+
selectLinkedInOrganization: selectLinkedInOrganization,
|
|
335
301
|
},
|
|
336
302
|
pinterest: {
|
|
337
|
-
|
|
338
|
-
|
|
303
|
+
listPinterestBoardsForSelection: listPinterestBoardsForSelection,
|
|
304
|
+
selectPinterestBoard: selectPinterestBoard,
|
|
339
305
|
},
|
|
340
306
|
snapchat: {
|
|
341
|
-
|
|
342
|
-
|
|
307
|
+
listSnapchatProfiles: listSnapchatProfiles,
|
|
308
|
+
selectSnapchatProfile: selectSnapchatProfile,
|
|
343
309
|
},
|
|
344
310
|
bluesky: {
|
|
345
|
-
|
|
311
|
+
connectBlueskyCredentials: connectBlueskyCredentials,
|
|
346
312
|
},
|
|
347
313
|
telegram: {
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
314
|
+
getTelegramConnectStatus: getTelegramConnectStatus,
|
|
315
|
+
initiateTelegramConnect: initiateTelegramConnect,
|
|
316
|
+
completeTelegramConnect: completeTelegramConnect,
|
|
351
317
|
},
|
|
352
318
|
};
|
|
353
319
|
|
|
354
320
|
/**
|
|
355
|
-
*
|
|
321
|
+
* Queue API - Manage posting queue
|
|
356
322
|
*/
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
323
|
+
queue = {
|
|
324
|
+
listQueueSlots: listQueueSlots,
|
|
325
|
+
createQueueSlot: createQueueSlot,
|
|
326
|
+
updateQueueSlot: updateQueueSlot,
|
|
327
|
+
deleteQueueSlot: deleteQueueSlot,
|
|
328
|
+
previewQueue: previewQueue,
|
|
329
|
+
getNextQueueSlot: getNextQueueSlot,
|
|
360
330
|
};
|
|
361
331
|
|
|
362
332
|
/**
|
|
363
|
-
*
|
|
333
|
+
* Webhooks API - Configure event webhooks
|
|
364
334
|
*/
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
335
|
+
webhooks = {
|
|
336
|
+
getWebhookSettings: getWebhookSettings,
|
|
337
|
+
createWebhookSettings: createWebhookSettings,
|
|
338
|
+
updateWebhookSettings: updateWebhookSettings,
|
|
339
|
+
deleteWebhookSettings: deleteWebhookSettings,
|
|
340
|
+
testWebhook: testWebhook,
|
|
341
|
+
getWebhookLogs: getWebhookLogs,
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Logs API - Publishing logs
|
|
346
|
+
*/
|
|
347
|
+
logs = {
|
|
348
|
+
listLogs: listLogs,
|
|
349
|
+
getLog: getLog,
|
|
350
|
+
getPostLogs: getPostLogs,
|
|
370
351
|
};
|
|
371
352
|
|
|
372
353
|
/**
|