@ever-works/mastodon-connector-plugin 1.0.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 +48 -0
- package/dist/index.cjs +480 -0
- package/dist/index.d.cts +154 -0
- package/dist/index.d.ts +154 -0
- package/dist/index.js +466 -0
- package/package.json +114 -0
package/package.json
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ever-works/mastodon-connector-plugin",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Mastodon social connector plugin for Ever Works platform (outbound statuses via the masto SDK, and event-source pull of mentions/notifications plus the account's own statuses into the event-ingest pipeline, with opt-in historical backfill)",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Ever Co. LTD",
|
|
7
|
+
"email": "ever@ever.co",
|
|
8
|
+
"url": "https://ever.co"
|
|
9
|
+
},
|
|
10
|
+
"license": "AGPL-3.0",
|
|
11
|
+
"private": false,
|
|
12
|
+
"type": "module",
|
|
13
|
+
"main": "./dist/index.cjs",
|
|
14
|
+
"module": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"import": "./dist/index.js",
|
|
20
|
+
"require": "./dist/index.cjs"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "tsc --noEmit && tsup",
|
|
28
|
+
"dev": "tsup --watch",
|
|
29
|
+
"clean": "rm -rf dist",
|
|
30
|
+
"type-check": "tsc --noEmit",
|
|
31
|
+
"test": "vitest run",
|
|
32
|
+
"test:watch": "vitest"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@ever-works/contracts": "^1.0.0",
|
|
36
|
+
"@ever-works/plugin": "^1.2.0",
|
|
37
|
+
"masto": "^7.12.0"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@types/node": "^22.0.0",
|
|
41
|
+
"tsup": "^8.0.0",
|
|
42
|
+
"typescript": "^5.9.3",
|
|
43
|
+
"vitest": "^4.1.0"
|
|
44
|
+
},
|
|
45
|
+
"everworks": {
|
|
46
|
+
"plugin": {
|
|
47
|
+
"id": "mastodon-connector",
|
|
48
|
+
"name": "Mastodon Connector",
|
|
49
|
+
"version": "1.0.0",
|
|
50
|
+
"category": "connector",
|
|
51
|
+
"capabilities": [
|
|
52
|
+
"connector",
|
|
53
|
+
"connector-mastodon",
|
|
54
|
+
"event-source"
|
|
55
|
+
],
|
|
56
|
+
"description": "Mastodon social connector. Outbound publishes statuses and threaded replies via the masto SDK against the operator's own instance (SSRF-guarded instance URL). Event-source pull ingests mention notifications and the connected account's own statuses since the last watermark into the platform event-ingest pipeline, with opt-in historical backfill (backfillDays, max 90).",
|
|
57
|
+
"systemPlugin": false,
|
|
58
|
+
"builtIn": true,
|
|
59
|
+
"isDefault": false,
|
|
60
|
+
"autoEnable": false,
|
|
61
|
+
"settings": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"required": [
|
|
64
|
+
"instanceUrl",
|
|
65
|
+
"accessToken"
|
|
66
|
+
],
|
|
67
|
+
"properties": {
|
|
68
|
+
"instanceUrl": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"title": "Mastodon instance URL (e.g. https://mastodon.social)"
|
|
71
|
+
},
|
|
72
|
+
"accessToken": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"title": "Mastodon application access token",
|
|
75
|
+
"x-secret": true,
|
|
76
|
+
"x-envVar": "MASTODON_ACCESS_TOKEN"
|
|
77
|
+
},
|
|
78
|
+
"defaultVisibility": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"title": "Visibility applied to outbound statuses",
|
|
81
|
+
"default": "public",
|
|
82
|
+
"enum": [
|
|
83
|
+
"public",
|
|
84
|
+
"unlisted",
|
|
85
|
+
"private",
|
|
86
|
+
"direct"
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
"backfillDays": {
|
|
90
|
+
"type": "number",
|
|
91
|
+
"title": "Historical backfill window in days on first pull (0 = off, max 90)",
|
|
92
|
+
"default": 0,
|
|
93
|
+
"minimum": 0,
|
|
94
|
+
"maximum": 90
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"repository": {
|
|
101
|
+
"type": "git",
|
|
102
|
+
"url": "git+https://github.com/ever-works/ever-works.git",
|
|
103
|
+
"directory": "packages/plugins/mastodon-connector"
|
|
104
|
+
},
|
|
105
|
+
"homepage": "https://github.com/ever-works/ever-works/tree/main/packages/plugins/mastodon-connector#readme",
|
|
106
|
+
"bugs": {
|
|
107
|
+
"url": "https://github.com/ever-works/ever-works/issues"
|
|
108
|
+
},
|
|
109
|
+
"everworksRelease": {
|
|
110
|
+
"contentHash": "sha256:ef18eabbb20b8a78ff92cee8450021f9aa496b5e2092de14993525d47a6012b2",
|
|
111
|
+
"commit": "6628882fbf102716a412f7d9a66d8387bd6a784c",
|
|
112
|
+
"source": "https://github.com/ever-works/ever-works/tree/6628882fbf102716a412f7d9a66d8387bd6a784c/packages/plugins/mastodon-connector"
|
|
113
|
+
}
|
|
114
|
+
}
|