@posterly/cli 0.1.4 → 0.2.0
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 +4 -0
- package/bin/posterly.mjs +117 -7
- package/generated/platform-manifest.mjs +140 -84
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -46,6 +46,10 @@ posterly platforms:schema --platform instagram --pretty
|
|
|
46
46
|
posterly oauth:clients --pretty
|
|
47
47
|
posterly oauth:create-client --client-name "Agency approval app" --redirect-uri https://agency.example.com/oauth/callback --scopes accounts:read,posts:read,posts:write --pretty
|
|
48
48
|
posterly oauth:update-client poc_abc123 --client-name "Agency approval app v2" --confirm --pretty
|
|
49
|
+
posterly version
|
|
50
|
+
posterly ai:captions --platforms instagram,linkedin --brief "Announcing our summer sale" --tone playful --count 3 --pretty
|
|
51
|
+
posterly ai:captions --platforms twitter --mode adapt --source-caption "Long LinkedIn post text" --source-platform linkedin --pretty
|
|
52
|
+
posterly ai:image "A minimal flat-lay of a desk with coffee" --aspect-ratio 1:1 --style photographic --pretty
|
|
49
53
|
posterly ai:video-options --pretty
|
|
50
54
|
posterly ai:video-function google_veo estimate_cost --params '{"duration_seconds":8,"resolution":"720p","output":"vertical"}' --pretty
|
|
51
55
|
posterly posts:create --account-id 123 --caption "Launching soon" --scheduled-at 2026-06-01T09:00:00Z
|
package/bin/posterly.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { readFile, mkdir, writeFile, rm, chmod, rename } from 'node:fs/promises';
|
|
3
|
+
import { readFile, mkdir, writeFile, rm, chmod, rename, stat } from 'node:fs/promises';
|
|
4
4
|
import { existsSync } from 'node:fs';
|
|
5
5
|
import os from 'node:os';
|
|
6
6
|
import path from 'node:path';
|
|
@@ -46,6 +46,7 @@ const COMMANDS = [
|
|
|
46
46
|
'auth:status',
|
|
47
47
|
'auth:logout',
|
|
48
48
|
'doctor [--url https://www.poster.ly] [--no-npm]',
|
|
49
|
+
'version',
|
|
49
50
|
'whoami',
|
|
50
51
|
'accounts:list|disconnect [--workspace-id id]',
|
|
51
52
|
'connect:link [platform] [--workspace-id id] [--include-planned]',
|
|
@@ -57,7 +58,7 @@ const COMMANDS = [
|
|
|
57
58
|
'media:upload|signed-upload|upload-from-url',
|
|
58
59
|
'analytics:account|posts',
|
|
59
60
|
'gbp:reviews|review-link|audit|media|add-media|delete-media|suggest-reply|reply|delete-reply',
|
|
60
|
-
'ai:video-options|video-function|generate-video|video-jobs|video-job',
|
|
61
|
+
'ai:captions|image|image-jobs|image-job|video-options|video-function|generate-video|video-jobs|video-job',
|
|
61
62
|
'activity:list',
|
|
62
63
|
'notifications:list',
|
|
63
64
|
'x:quota',
|
|
@@ -85,6 +86,10 @@ async function main() {
|
|
|
85
86
|
if (command === 'auth:status') return authStatus(flags);
|
|
86
87
|
if (command === 'auth:logout') return logout(flags);
|
|
87
88
|
if (command === 'doctor') return doctor(flags);
|
|
89
|
+
if (command === 'version' || command === '--version' || flags.version === true) {
|
|
90
|
+
const pkg = JSON.parse(await readFile(new URL('../package.json', import.meta.url), 'utf8'));
|
|
91
|
+
return print({ name: CLI_PACKAGE_NAME, version: pkg.version }, flags);
|
|
92
|
+
}
|
|
88
93
|
|
|
89
94
|
const client = await createClient(flags);
|
|
90
95
|
|
|
@@ -212,11 +217,7 @@ async function main() {
|
|
|
212
217
|
})), flags);
|
|
213
218
|
|
|
214
219
|
case 'media:signed-upload':
|
|
215
|
-
return print(await client.post('/media/signed-upload',
|
|
216
|
-
filename: required(flags.filename || positional[0], 'filename'),
|
|
217
|
-
content_type: required(flags.contentType, '--content-type'),
|
|
218
|
-
size: Number(required(flags.size, '--size')),
|
|
219
|
-
}), flags);
|
|
220
|
+
return print(await client.post('/media/signed-upload', await mediaSignedUploadPayload(flags, positional)), flags);
|
|
220
221
|
case 'media:upload-from-url':
|
|
221
222
|
return print(await client.post('/media/upload-from-url', {
|
|
222
223
|
url: required(flags.url || positional[0], 'url'),
|
|
@@ -323,6 +324,26 @@ async function main() {
|
|
|
323
324
|
review_name: required(flags.reviewName || positional[0], '--review-name'),
|
|
324
325
|
})), flags);
|
|
325
326
|
|
|
327
|
+
case 'ai:captions':
|
|
328
|
+
return print(await client.post('/ai/generate-captions', await captionsPayloadFromFlags(flags)), flags);
|
|
329
|
+
case 'ai:image': {
|
|
330
|
+
const queued = await client.post('/ai/generate-image', await imagePayloadFromFlags(flags, positional));
|
|
331
|
+
if (flagEnabled(flags.noWait)) {
|
|
332
|
+
return print(queued, flags);
|
|
333
|
+
}
|
|
334
|
+
if (!queued?.job_id) {
|
|
335
|
+
return print(queued, flags);
|
|
336
|
+
}
|
|
337
|
+
return print(await pollImageJob(client, queued.job_id), flags);
|
|
338
|
+
}
|
|
339
|
+
case 'ai:image-jobs':
|
|
340
|
+
return print(await client.get(withQuery('/ai/image-jobs', {
|
|
341
|
+
status: flags.status,
|
|
342
|
+
limit: flags.limit,
|
|
343
|
+
})), flags);
|
|
344
|
+
case 'ai:image-job':
|
|
345
|
+
return print(await client.get(`/ai/image-jobs/${required(positional[0] || flags.id, 'image job id')}`), flags);
|
|
346
|
+
|
|
326
347
|
case 'ai:video-options':
|
|
327
348
|
return print(await client.get('/ai/video-options'), flags);
|
|
328
349
|
case 'ai:video-function':
|
|
@@ -875,9 +896,97 @@ async function mediaUploadPayload(flags, positional) {
|
|
|
875
896
|
};
|
|
876
897
|
}
|
|
877
898
|
|
|
899
|
+
// One file: `media:signed-upload launch.mp4 --content-type video/mp4 --size N`
|
|
900
|
+
// (unchanged). Several files, up to 20 in one call: pass local paths with no
|
|
901
|
+
// --content-type, `media:signed-upload a.jpg b.jpg c.mp4`, and the CLI reads
|
|
902
|
+
// each name, type and size from disk. `--files '[{"filename","content_type",
|
|
903
|
+
// "size"}]'` sends a batch you describe yourself.
|
|
904
|
+
async function mediaSignedUploadPayload(flags, positional) {
|
|
905
|
+
const workspace = flags.workspaceId ? { workspace_id: flags.workspaceId } : {};
|
|
906
|
+
if (flags.files !== undefined) {
|
|
907
|
+
const files = jsonFlag(flags.files);
|
|
908
|
+
if (!Array.isArray(files)) throw new Error('--files must be a JSON array of { filename, content_type, size }');
|
|
909
|
+
return { files, ...workspace };
|
|
910
|
+
}
|
|
911
|
+
if (flags.contentType === undefined && positional.length > 0) {
|
|
912
|
+
const files = [];
|
|
913
|
+
for (const filePath of positional) {
|
|
914
|
+
const info = await stat(filePath).catch(() => null);
|
|
915
|
+
if (!info || !info.isFile()) throw new Error(`Not a readable file: ${filePath}`);
|
|
916
|
+
files.push({
|
|
917
|
+
filename: path.basename(filePath),
|
|
918
|
+
content_type: guessContentType(filePath),
|
|
919
|
+
size: info.size,
|
|
920
|
+
});
|
|
921
|
+
}
|
|
922
|
+
if (files.length === 1) return { ...files[0], ...workspace };
|
|
923
|
+
return { files, ...workspace };
|
|
924
|
+
}
|
|
925
|
+
return {
|
|
926
|
+
filename: required(flags.filename || positional[0], 'filename'),
|
|
927
|
+
content_type: required(flags.contentType, '--content-type'),
|
|
928
|
+
size: Number(required(flags.size, '--size')),
|
|
929
|
+
...workspace,
|
|
930
|
+
};
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
async function captionsPayloadFromFlags(flags) {
|
|
934
|
+
if (flags.file) return readJson(required(flags.file, '--file'));
|
|
935
|
+
return clean({
|
|
936
|
+
platforms: csv(required(flags.platforms || flags.platform, '--platforms')),
|
|
937
|
+
brief: flags.brief,
|
|
938
|
+
tone: flags.tone,
|
|
939
|
+
allow_emojis: flags.allowEmojis === undefined ? undefined : booleanFlag(flags.allowEmojis),
|
|
940
|
+
hashtag_strategy: flags.hashtagStrategy,
|
|
941
|
+
count: flags.count ? Number(flags.count) : undefined,
|
|
942
|
+
mode: flags.mode,
|
|
943
|
+
source_caption: flags.sourceCaption,
|
|
944
|
+
source_platform: flags.sourcePlatform,
|
|
945
|
+
preserve_links: flags.preserveLinks === undefined ? undefined : booleanFlag(flags.preserveLinks),
|
|
946
|
+
preserve_mentions: flags.preserveMentions === undefined ? undefined : booleanFlag(flags.preserveMentions),
|
|
947
|
+
preserve_call_to_action: flags.preserveCallToAction === undefined ? undefined : booleanFlag(flags.preserveCallToAction),
|
|
948
|
+
account_id: flags.accountId,
|
|
949
|
+
workspace_id: flags.workspaceId,
|
|
950
|
+
manual_brand_voice: jsonFlag(flags.manualBrandVoice),
|
|
951
|
+
});
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
async function imagePayloadFromFlags(flags, positional) {
|
|
955
|
+
if (flags.file) return readJson(required(flags.file, '--file'));
|
|
956
|
+
return clean({
|
|
957
|
+
prompt: required(flags.prompt || positional[0], '--prompt'),
|
|
958
|
+
aspect_ratio: flags.aspectRatio,
|
|
959
|
+
style: flags.style,
|
|
960
|
+
variations: flags.variations ? Number(flags.variations) : undefined,
|
|
961
|
+
provider: flags.provider,
|
|
962
|
+
model: flags.model,
|
|
963
|
+
resolution: flags.resolution,
|
|
964
|
+
quality: flags.quality,
|
|
965
|
+
thinking_level: flags.thinkingLevel,
|
|
966
|
+
reference_image_urls: csv(flags.referenceImageUrls || flags.referenceImages),
|
|
967
|
+
});
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
async function pollImageJob(client, jobId, options = {}) {
|
|
971
|
+
const timeoutMs = Number(options.timeoutMs || 8 * 60 * 1000);
|
|
972
|
+
const intervalMs = Number(options.intervalMs || 2000);
|
|
973
|
+
const started = Date.now();
|
|
974
|
+
while (Date.now() - started < timeoutMs) {
|
|
975
|
+
const data = await client.get(`/ai/image-jobs/${encodeURIComponent(jobId)}`);
|
|
976
|
+
const job = data.job || data;
|
|
977
|
+
if (job.status === 'completed') return job;
|
|
978
|
+
if (job.status === 'failed') {
|
|
979
|
+
throw new Error(job.error_message || 'Image job failed');
|
|
980
|
+
}
|
|
981
|
+
await new Promise((resolve) => setTimeout(resolve, intervalMs));
|
|
982
|
+
}
|
|
983
|
+
throw new Error(`Image job ${jobId} is still running. Poll with: posterly ai:image-job ${jobId}`);
|
|
984
|
+
}
|
|
985
|
+
|
|
878
986
|
async function videoPayloadFromFlags(flags) {
|
|
879
987
|
if (flags.file) return readJson(required(flags.file, '--file'));
|
|
880
988
|
return clean({
|
|
989
|
+
provider: flags.provider,
|
|
881
990
|
prompt: required(flags.prompt, '--prompt'),
|
|
882
991
|
negative_prompt: flags.negativePrompt,
|
|
883
992
|
aspect_ratio: flags.aspectRatio,
|
|
@@ -904,6 +1013,7 @@ async function videoFunctionPayloadFromFlags(flags, positional) {
|
|
|
904
1013
|
duration_seconds: flags.durationSeconds ? Number(flags.durationSeconds) : undefined,
|
|
905
1014
|
resolution: flags.resolution,
|
|
906
1015
|
output: flags.output,
|
|
1016
|
+
input_image_count: flags.inputImageCount ? Number(flags.inputImageCount) : undefined,
|
|
907
1017
|
prompt: flags.prompt,
|
|
908
1018
|
negative_prompt: flags.negativePrompt,
|
|
909
1019
|
aspect_ratio: flags.aspectRatio,
|
|
@@ -12,17 +12,18 @@ export const PLATFORM_MANIFEST = Object.freeze({
|
|
|
12
12
|
"threads",
|
|
13
13
|
"google_business",
|
|
14
14
|
"telegram",
|
|
15
|
-
"bluesky"
|
|
15
|
+
"bluesky",
|
|
16
|
+
"discord",
|
|
17
|
+
"slack",
|
|
18
|
+
"mastodon",
|
|
19
|
+
"devto",
|
|
20
|
+
"hashnode",
|
|
21
|
+
"wordpress",
|
|
22
|
+
"lemmy"
|
|
16
23
|
],
|
|
17
24
|
"plannedPlatformIds": [
|
|
18
25
|
"reddit",
|
|
19
|
-
"wordpress",
|
|
20
|
-
"mastodon",
|
|
21
26
|
"medium",
|
|
22
|
-
"devto",
|
|
23
|
-
"hashnode",
|
|
24
|
-
"discord",
|
|
25
|
-
"slack",
|
|
26
27
|
"skool",
|
|
27
28
|
"whop"
|
|
28
29
|
],
|
|
@@ -38,32 +39,40 @@ export const PLATFORM_MANIFEST = Object.freeze({
|
|
|
38
39
|
"google_business",
|
|
39
40
|
"telegram",
|
|
40
41
|
"bluesky",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
42
|
+
"discord",
|
|
43
|
+
"slack",
|
|
43
44
|
"mastodon",
|
|
44
|
-
"medium",
|
|
45
45
|
"devto",
|
|
46
46
|
"hashnode",
|
|
47
|
-
"
|
|
48
|
-
"
|
|
47
|
+
"wordpress",
|
|
48
|
+
"lemmy",
|
|
49
|
+
"reddit",
|
|
50
|
+
"medium",
|
|
49
51
|
"skool",
|
|
50
52
|
"whop"
|
|
51
53
|
],
|
|
52
54
|
"supportedPlatformInputs": [
|
|
53
55
|
"bluesky",
|
|
56
|
+
"devto",
|
|
57
|
+
"discord",
|
|
54
58
|
"facebook",
|
|
55
59
|
"gmb",
|
|
56
60
|
"google-business",
|
|
57
61
|
"google_business",
|
|
58
62
|
"google_business_profile",
|
|
63
|
+
"hashnode",
|
|
59
64
|
"instagram",
|
|
60
65
|
"instagram-standalone",
|
|
66
|
+
"lemmy",
|
|
61
67
|
"linkedin",
|
|
68
|
+
"mastodon",
|
|
62
69
|
"pinterest",
|
|
70
|
+
"slack",
|
|
63
71
|
"telegram",
|
|
64
72
|
"threads",
|
|
65
73
|
"tiktok",
|
|
66
74
|
"twitter",
|
|
75
|
+
"wordpress",
|
|
67
76
|
"x",
|
|
68
77
|
"youtube"
|
|
69
78
|
],
|
|
@@ -79,6 +88,7 @@ export const PLATFORM_MANIFEST = Object.freeze({
|
|
|
79
88
|
"hashnode",
|
|
80
89
|
"instagram",
|
|
81
90
|
"instagram-standalone",
|
|
91
|
+
"lemmy",
|
|
82
92
|
"linkedin",
|
|
83
93
|
"mastodon",
|
|
84
94
|
"medium",
|
|
@@ -106,6 +116,7 @@ export const PLATFORM_MANIFEST = Object.freeze({
|
|
|
106
116
|
"hashnode": "hashnode",
|
|
107
117
|
"instagram": "instagram",
|
|
108
118
|
"instagram_standalone": "instagram",
|
|
119
|
+
"lemmy": "lemmy",
|
|
109
120
|
"linkedin": "linkedin",
|
|
110
121
|
"mastodon": "mastodon",
|
|
111
122
|
"medium": "medium",
|
|
@@ -126,15 +137,16 @@ export const PLATFORM_MANIFEST = Object.freeze({
|
|
|
126
137
|
"linkedin.recent_mentions",
|
|
127
138
|
"pinterest.boards",
|
|
128
139
|
"tiktok.creator_info",
|
|
129
|
-
"x.quota"
|
|
130
|
-
"youtube.playlists"
|
|
140
|
+
"x.quota"
|
|
131
141
|
],
|
|
132
142
|
"analyticsPlatformIds": [
|
|
133
143
|
"instagram",
|
|
134
144
|
"facebook",
|
|
145
|
+
"twitter",
|
|
135
146
|
"linkedin",
|
|
136
147
|
"youtube",
|
|
137
148
|
"pinterest",
|
|
149
|
+
"threads",
|
|
138
150
|
"google_business"
|
|
139
151
|
],
|
|
140
152
|
"connectTargetIds": [
|
|
@@ -151,14 +163,15 @@ export const PLATFORM_MANIFEST = Object.freeze({
|
|
|
151
163
|
"twitter",
|
|
152
164
|
"telegram",
|
|
153
165
|
"bluesky",
|
|
154
|
-
"
|
|
155
|
-
"
|
|
166
|
+
"discord",
|
|
167
|
+
"slack",
|
|
156
168
|
"mastodon",
|
|
157
|
-
"medium",
|
|
158
169
|
"devto",
|
|
159
170
|
"hashnode",
|
|
160
|
-
"
|
|
161
|
-
"
|
|
171
|
+
"wordpress",
|
|
172
|
+
"lemmy",
|
|
173
|
+
"reddit",
|
|
174
|
+
"medium",
|
|
162
175
|
"skool",
|
|
163
176
|
"whop"
|
|
164
177
|
],
|
|
@@ -177,6 +190,7 @@ export const PLATFORM_MANIFEST = Object.freeze({
|
|
|
177
190
|
"instagram",
|
|
178
191
|
"instagram-standalone",
|
|
179
192
|
"instagram_direct",
|
|
193
|
+
"lemmy",
|
|
180
194
|
"linkedin",
|
|
181
195
|
"linkedin-company",
|
|
182
196
|
"linkedin-page",
|
|
@@ -215,6 +229,7 @@ export const PLATFORM_MANIFEST = Object.freeze({
|
|
|
215
229
|
"instagram": "instagram",
|
|
216
230
|
"instagram_direct": "instagram",
|
|
217
231
|
"instagram_standalone": "instagram",
|
|
232
|
+
"lemmy": "lemmy",
|
|
218
233
|
"linkedin": "linkedin",
|
|
219
234
|
"linkedin_company": "linkedin_page",
|
|
220
235
|
"linkedin_page": "linkedin_page",
|
|
@@ -301,7 +316,7 @@ export const PLATFORM_MANIFEST = Object.freeze({
|
|
|
301
316
|
"carousel",
|
|
302
317
|
"x_thread"
|
|
303
318
|
],
|
|
304
|
-
"analyticsSupported":
|
|
319
|
+
"analyticsSupported": true,
|
|
305
320
|
"helpers": [
|
|
306
321
|
"x.quota"
|
|
307
322
|
]
|
|
@@ -332,9 +347,7 @@ export const PLATFORM_MANIFEST = Object.freeze({
|
|
|
332
347
|
"video"
|
|
333
348
|
],
|
|
334
349
|
"analyticsSupported": true,
|
|
335
|
-
"helpers": [
|
|
336
|
-
"youtube.playlists"
|
|
337
|
-
]
|
|
350
|
+
"helpers": []
|
|
338
351
|
},
|
|
339
352
|
{
|
|
340
353
|
"id": "pinterest",
|
|
@@ -363,7 +376,7 @@ export const PLATFORM_MANIFEST = Object.freeze({
|
|
|
363
376
|
"carousel",
|
|
364
377
|
"threads_thread"
|
|
365
378
|
],
|
|
366
|
-
"analyticsSupported":
|
|
379
|
+
"analyticsSupported": true,
|
|
367
380
|
"helpers": []
|
|
368
381
|
},
|
|
369
382
|
{
|
|
@@ -411,62 +424,98 @@ export const PLATFORM_MANIFEST = Object.freeze({
|
|
|
411
424
|
"helpers": []
|
|
412
425
|
},
|
|
413
426
|
{
|
|
414
|
-
"id": "
|
|
415
|
-
"label": "
|
|
416
|
-
"status": "
|
|
427
|
+
"id": "discord",
|
|
428
|
+
"label": "Discord",
|
|
429
|
+
"status": "supported",
|
|
417
430
|
"aliases": [],
|
|
418
|
-
"postTypes": [
|
|
431
|
+
"postTypes": [
|
|
432
|
+
"text",
|
|
433
|
+
"image",
|
|
434
|
+
"video",
|
|
435
|
+
"carousel"
|
|
436
|
+
],
|
|
419
437
|
"analyticsSupported": false,
|
|
420
438
|
"helpers": []
|
|
421
439
|
},
|
|
422
440
|
{
|
|
423
|
-
"id": "
|
|
424
|
-
"label": "
|
|
425
|
-
"status": "
|
|
441
|
+
"id": "slack",
|
|
442
|
+
"label": "Slack",
|
|
443
|
+
"status": "supported",
|
|
426
444
|
"aliases": [],
|
|
427
|
-
"postTypes": [
|
|
445
|
+
"postTypes": [
|
|
446
|
+
"text",
|
|
447
|
+
"image",
|
|
448
|
+
"video",
|
|
449
|
+
"carousel"
|
|
450
|
+
],
|
|
428
451
|
"analyticsSupported": false,
|
|
429
452
|
"helpers": []
|
|
430
453
|
},
|
|
431
454
|
{
|
|
432
455
|
"id": "mastodon",
|
|
433
456
|
"label": "Mastodon",
|
|
434
|
-
"status": "
|
|
457
|
+
"status": "supported",
|
|
435
458
|
"aliases": [],
|
|
436
|
-
"postTypes": [
|
|
459
|
+
"postTypes": [
|
|
460
|
+
"text",
|
|
461
|
+
"image",
|
|
462
|
+
"video",
|
|
463
|
+
"carousel"
|
|
464
|
+
],
|
|
437
465
|
"analyticsSupported": false,
|
|
438
466
|
"helpers": []
|
|
439
467
|
},
|
|
440
468
|
{
|
|
441
|
-
"id": "
|
|
442
|
-
"label": "
|
|
443
|
-
"status": "
|
|
469
|
+
"id": "devto",
|
|
470
|
+
"label": "Dev.to",
|
|
471
|
+
"status": "supported",
|
|
444
472
|
"aliases": [],
|
|
445
|
-
"postTypes": [
|
|
473
|
+
"postTypes": [
|
|
474
|
+
"text",
|
|
475
|
+
"image"
|
|
476
|
+
],
|
|
446
477
|
"analyticsSupported": false,
|
|
447
478
|
"helpers": []
|
|
448
479
|
},
|
|
449
480
|
{
|
|
450
|
-
"id": "
|
|
451
|
-
"label": "
|
|
452
|
-
"status": "
|
|
481
|
+
"id": "hashnode",
|
|
482
|
+
"label": "Hashnode",
|
|
483
|
+
"status": "supported",
|
|
453
484
|
"aliases": [],
|
|
454
|
-
"postTypes": [
|
|
485
|
+
"postTypes": [
|
|
486
|
+
"text",
|
|
487
|
+
"image"
|
|
488
|
+
],
|
|
455
489
|
"analyticsSupported": false,
|
|
456
490
|
"helpers": []
|
|
457
491
|
},
|
|
458
492
|
{
|
|
459
|
-
"id": "
|
|
460
|
-
"label": "
|
|
461
|
-
"status": "
|
|
493
|
+
"id": "wordpress",
|
|
494
|
+
"label": "WordPress",
|
|
495
|
+
"status": "supported",
|
|
462
496
|
"aliases": [],
|
|
463
|
-
"postTypes": [
|
|
497
|
+
"postTypes": [
|
|
498
|
+
"text",
|
|
499
|
+
"image"
|
|
500
|
+
],
|
|
464
501
|
"analyticsSupported": false,
|
|
465
502
|
"helpers": []
|
|
466
503
|
},
|
|
467
504
|
{
|
|
468
|
-
"id": "
|
|
469
|
-
"label": "
|
|
505
|
+
"id": "lemmy",
|
|
506
|
+
"label": "Lemmy",
|
|
507
|
+
"status": "supported",
|
|
508
|
+
"aliases": [],
|
|
509
|
+
"postTypes": [
|
|
510
|
+
"text",
|
|
511
|
+
"image"
|
|
512
|
+
],
|
|
513
|
+
"analyticsSupported": false,
|
|
514
|
+
"helpers": []
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"id": "reddit",
|
|
518
|
+
"label": "Reddit",
|
|
470
519
|
"status": "planned",
|
|
471
520
|
"aliases": [],
|
|
472
521
|
"postTypes": [],
|
|
@@ -474,8 +523,8 @@ export const PLATFORM_MANIFEST = Object.freeze({
|
|
|
474
523
|
"helpers": []
|
|
475
524
|
},
|
|
476
525
|
{
|
|
477
|
-
"id": "
|
|
478
|
-
"label": "
|
|
526
|
+
"id": "medium",
|
|
527
|
+
"label": "Medium",
|
|
479
528
|
"status": "planned",
|
|
480
529
|
"aliases": [],
|
|
481
530
|
"postTypes": [],
|
|
@@ -615,57 +664,64 @@ export const PLATFORM_MANIFEST = Object.freeze({
|
|
|
615
664
|
"method": "manual_credentials"
|
|
616
665
|
},
|
|
617
666
|
{
|
|
618
|
-
"id": "
|
|
619
|
-
"label": "
|
|
620
|
-
"status": "
|
|
667
|
+
"id": "discord",
|
|
668
|
+
"label": "Discord",
|
|
669
|
+
"status": "supported",
|
|
621
670
|
"aliases": [],
|
|
622
|
-
"method": "
|
|
671
|
+
"method": "manual_credentials"
|
|
623
672
|
},
|
|
624
673
|
{
|
|
625
|
-
"id": "
|
|
626
|
-
"label": "
|
|
627
|
-
"status": "
|
|
674
|
+
"id": "slack",
|
|
675
|
+
"label": "Slack",
|
|
676
|
+
"status": "supported",
|
|
628
677
|
"aliases": [],
|
|
629
|
-
"method": "
|
|
678
|
+
"method": "dashboard_oauth"
|
|
630
679
|
},
|
|
631
680
|
{
|
|
632
681
|
"id": "mastodon",
|
|
633
682
|
"label": "Mastodon",
|
|
634
|
-
"status": "
|
|
635
|
-
"aliases": [],
|
|
636
|
-
"method": "planned"
|
|
637
|
-
},
|
|
638
|
-
{
|
|
639
|
-
"id": "medium",
|
|
640
|
-
"label": "Medium",
|
|
641
|
-
"status": "planned",
|
|
683
|
+
"status": "supported",
|
|
642
684
|
"aliases": [],
|
|
643
|
-
"method": "
|
|
685
|
+
"method": "manual_credentials"
|
|
644
686
|
},
|
|
645
687
|
{
|
|
646
688
|
"id": "devto",
|
|
647
689
|
"label": "Dev.to",
|
|
648
|
-
"status": "
|
|
690
|
+
"status": "supported",
|
|
649
691
|
"aliases": [],
|
|
650
|
-
"method": "
|
|
692
|
+
"method": "manual_credentials"
|
|
651
693
|
},
|
|
652
694
|
{
|
|
653
695
|
"id": "hashnode",
|
|
654
696
|
"label": "Hashnode",
|
|
655
|
-
"status": "
|
|
697
|
+
"status": "supported",
|
|
656
698
|
"aliases": [],
|
|
657
|
-
"method": "
|
|
699
|
+
"method": "manual_credentials"
|
|
658
700
|
},
|
|
659
701
|
{
|
|
660
|
-
"id": "
|
|
661
|
-
"label": "
|
|
702
|
+
"id": "wordpress",
|
|
703
|
+
"label": "WordPress",
|
|
704
|
+
"status": "supported",
|
|
705
|
+
"aliases": [],
|
|
706
|
+
"method": "manual_credentials"
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
"id": "lemmy",
|
|
710
|
+
"label": "Lemmy",
|
|
711
|
+
"status": "supported",
|
|
712
|
+
"aliases": [],
|
|
713
|
+
"method": "manual_credentials"
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
"id": "reddit",
|
|
717
|
+
"label": "Reddit",
|
|
662
718
|
"status": "planned",
|
|
663
719
|
"aliases": [],
|
|
664
720
|
"method": "planned"
|
|
665
721
|
},
|
|
666
722
|
{
|
|
667
|
-
"id": "
|
|
668
|
-
"label": "
|
|
723
|
+
"id": "medium",
|
|
724
|
+
"label": "Medium",
|
|
669
725
|
"status": "planned",
|
|
670
726
|
"aliases": [],
|
|
671
727
|
"method": "planned"
|
|
@@ -686,12 +742,12 @@ export const PLATFORM_MANIFEST = Object.freeze({
|
|
|
686
742
|
}
|
|
687
743
|
]
|
|
688
744
|
});
|
|
689
|
-
export const SUPPORTED_PLATFORM_IDS = Object.freeze(["instagram","facebook","tiktok","twitter","linkedin","youtube","pinterest","threads","google_business","telegram","bluesky"]);
|
|
690
|
-
export const PLANNED_PLATFORM_IDS = Object.freeze(["reddit","
|
|
691
|
-
export const ALL_PLATFORM_IDS = Object.freeze(["instagram","facebook","tiktok","twitter","linkedin","youtube","pinterest","threads","google_business","telegram","bluesky","
|
|
692
|
-
export const SUPPORTED_PLATFORM_INPUTS = Object.freeze(["bluesky","facebook","gmb","google-business","google_business","google_business_profile","instagram","instagram-standalone","linkedin","pinterest","telegram","threads","tiktok","twitter","x","youtube"]);
|
|
693
|
-
export const ALL_PLATFORM_INPUTS = Object.freeze(["bluesky","devto","discord","facebook","gmb","google-business","google_business","google_business_profile","hashnode","instagram","instagram-standalone","linkedin","mastodon","medium","pinterest","reddit","skool","slack","telegram","threads","tiktok","twitter","whop","wordpress","x","youtube"]);
|
|
694
|
-
export const PLATFORM_HELPER_NAMES = Object.freeze(["linkedin.recent_mentions","pinterest.boards","tiktok.creator_info","x.quota"
|
|
695
|
-
export const CONNECT_TARGET_IDS = Object.freeze(["instagram","meta","facebook","youtube","tiktok","linkedin","linkedin_page","threads","google_business","pinterest","twitter","telegram","bluesky","
|
|
696
|
-
export const CONNECT_INPUTS = Object.freeze(["bluesky","devto","discord","facebook","facebook_instagram","facebook_pages","gmb","google-business","google_business","google_business_profile","hashnode","instagram","instagram-standalone","instagram_direct","linkedin","linkedin-company","linkedin-page","linkedin_company","linkedin_page","linkedin_personal","mastodon","medium","meta","meta_business","pinterest","reddit","skool","slack","telegram","threads","tiktok","twitter","whop","wordpress","x","x_twitter","youtube"]);
|
|
697
|
-
export const ANALYTICS_PLATFORM_IDS = Object.freeze(["instagram","facebook","linkedin","youtube","pinterest","google_business"]);
|
|
745
|
+
export const SUPPORTED_PLATFORM_IDS = Object.freeze(["instagram","facebook","tiktok","twitter","linkedin","youtube","pinterest","threads","google_business","telegram","bluesky","discord","slack","mastodon","devto","hashnode","wordpress","lemmy"]);
|
|
746
|
+
export const PLANNED_PLATFORM_IDS = Object.freeze(["reddit","medium","skool","whop"]);
|
|
747
|
+
export const ALL_PLATFORM_IDS = Object.freeze(["instagram","facebook","tiktok","twitter","linkedin","youtube","pinterest","threads","google_business","telegram","bluesky","discord","slack","mastodon","devto","hashnode","wordpress","lemmy","reddit","medium","skool","whop"]);
|
|
748
|
+
export const SUPPORTED_PLATFORM_INPUTS = Object.freeze(["bluesky","devto","discord","facebook","gmb","google-business","google_business","google_business_profile","hashnode","instagram","instagram-standalone","lemmy","linkedin","mastodon","pinterest","slack","telegram","threads","tiktok","twitter","wordpress","x","youtube"]);
|
|
749
|
+
export const ALL_PLATFORM_INPUTS = Object.freeze(["bluesky","devto","discord","facebook","gmb","google-business","google_business","google_business_profile","hashnode","instagram","instagram-standalone","lemmy","linkedin","mastodon","medium","pinterest","reddit","skool","slack","telegram","threads","tiktok","twitter","whop","wordpress","x","youtube"]);
|
|
750
|
+
export const PLATFORM_HELPER_NAMES = Object.freeze(["linkedin.recent_mentions","pinterest.boards","tiktok.creator_info","x.quota"]);
|
|
751
|
+
export const CONNECT_TARGET_IDS = Object.freeze(["instagram","meta","facebook","youtube","tiktok","linkedin","linkedin_page","threads","google_business","pinterest","twitter","telegram","bluesky","discord","slack","mastodon","devto","hashnode","wordpress","lemmy","reddit","medium","skool","whop"]);
|
|
752
|
+
export const CONNECT_INPUTS = Object.freeze(["bluesky","devto","discord","facebook","facebook_instagram","facebook_pages","gmb","google-business","google_business","google_business_profile","hashnode","instagram","instagram-standalone","instagram_direct","lemmy","linkedin","linkedin-company","linkedin-page","linkedin_company","linkedin_page","linkedin_personal","mastodon","medium","meta","meta_business","pinterest","reddit","skool","slack","telegram","threads","tiktok","twitter","whop","wordpress","x","x_twitter","youtube"]);
|
|
753
|
+
export const ANALYTICS_PLATFORM_IDS = Object.freeze(["instagram","facebook","twitter","linkedin","youtube","pinterest","threads","google_business"]);
|