flare-plugin-sdk 0.0.0-stage → 0.1.0-beta.2

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.
Files changed (27) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +131 -2
  3. package/package.json +33 -4
  4. package/skill/flare-plugin/ABI.md +334 -0
  5. package/skill/flare-plugin/README.md +204 -0
  6. package/skill/flare-plugin/SKILL.md +80 -0
  7. package/skill/flare-plugin/assets/github-template/README.md +71 -0
  8. package/skill/flare-plugin/assets/github-template/assets/icon.png +0 -0
  9. package/skill/flare-plugin/assets/github-template/manifest.json +29 -0
  10. package/skill/flare-plugin/assets/github-template/plugin.js +108 -0
  11. package/skill/flare-plugin/examples/pixelfed/README.md +78 -0
  12. package/skill/flare-plugin/examples/pixelfed/assets/icon.png +0 -0
  13. package/skill/flare-plugin/examples/pixelfed/locales/en.json +24 -0
  14. package/skill/flare-plugin/examples/pixelfed/locales/zh-Hans.json +24 -0
  15. package/skill/flare-plugin/examples/pixelfed/manifest.json +211 -0
  16. package/skill/flare-plugin/examples/pixelfed/plugin.js +793 -0
  17. package/skill/flare-plugin/flare-plugin.d.ts +501 -0
  18. package/skill/flare-plugin/pack.mjs +155 -0
  19. package/skill/flare-plugin/references/authentication.md +239 -0
  20. package/skill/flare-plugin/references/capabilities.md +88 -0
  21. package/skill/flare-plugin/references/manifest.md +192 -0
  22. package/skill/flare-plugin/references/publishing.md +111 -0
  23. package/skill/flare-plugin/references/recipes.md +328 -0
  24. package/skill/flare-plugin/references/runtime-http.md +207 -0
  25. package/skill/flare-plugin/references/testing.md +176 -0
  26. package/skill/flare-plugin/references/troubleshooting.md +116 -0
  27. package/skill/flare-plugin/references/wire-data.md +163 -0
@@ -0,0 +1,211 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "apiVersion": 1,
4
+ "id": "dev.dimension.flare.sample.pixelfed",
5
+ "version": "0.1.0",
6
+ "defaultLocale": "en",
7
+ "name": {
8
+ "key": "plugin.name",
9
+ "fallback": "Pixelfed Sample"
10
+ },
11
+ "description": {
12
+ "key": "plugin.description",
13
+ "fallback": "Pixelfed support implemented as a Flare social plugin"
14
+ },
15
+ "permissions": {
16
+ "mediaNetwork": true,
17
+ "authOrigins": []
18
+ },
19
+ "platform": {
20
+ "id": "Pixelfed",
21
+ "name": {
22
+ "key": "platform.name",
23
+ "fallback": "Pixelfed"
24
+ },
25
+ "description": {
26
+ "key": "platform.description",
27
+ "fallback": "A federated image sharing platform"
28
+ },
29
+ "detector": {
30
+ "priority": 1000
31
+ },
32
+ "loginMethods": [
33
+ {
34
+ "id": "oauth",
35
+ "interaction": "OAuth",
36
+ "title": {
37
+ "key": "login.oauth",
38
+ "fallback": "Continue with Pixelfed"
39
+ },
40
+ "description": {
41
+ "key": "login.oauth.description",
42
+ "fallback": "Authorize Flare in your browser"
43
+ }
44
+ }
45
+ ],
46
+ "capabilities": {
47
+ "flare.datasource.timeline/v1": {
48
+ "operations": {
49
+ "page": {
50
+ "directions": ["refresh", "older"]
51
+ }
52
+ }
53
+ },
54
+ "flare.datasource.search/v1": {
55
+ "operations": {
56
+ "posts": {
57
+ "directions": ["refresh", "older"]
58
+ },
59
+ "profiles": {
60
+ "directions": ["refresh", "older"]
61
+ },
62
+ "discoverPosts": {
63
+ "directions": ["refresh", "older"]
64
+ },
65
+ "discoverProfiles": {
66
+ "directions": ["refresh", "older"]
67
+ },
68
+ "discoverHashtags": {
69
+ "directions": ["refresh", "older"]
70
+ }
71
+ }
72
+ },
73
+ "flare.datasource.profile/v1": {
74
+ "operations": {
75
+ "byId": {},
76
+ "byHandle": {},
77
+ "timeline": {
78
+ "directions": ["refresh", "older"]
79
+ },
80
+ "following": {
81
+ "directions": ["refresh", "older"]
82
+ },
83
+ "followers": {
84
+ "directions": ["refresh", "older"]
85
+ }
86
+ }
87
+ },
88
+ "flare.datasource.post/v1": {
89
+ "operations": {
90
+ "detail": {},
91
+ "context": {
92
+ "directions": ["refresh"]
93
+ },
94
+ "delete": {},
95
+ "mutate": {}
96
+ }
97
+ },
98
+ "flare.datasource.compose/v1": {
99
+ "operations": {
100
+ "publish": {}
101
+ }
102
+ }
103
+ },
104
+ "timelines": [
105
+ {
106
+ "id": "home",
107
+ "title": {
108
+ "key": "timeline.home",
109
+ "fallback": "Home"
110
+ },
111
+ "icon": "Home",
112
+ "defaultForNewAccount": true
113
+ },
114
+ {
115
+ "id": "discover",
116
+ "title": {
117
+ "key": "timeline.discover",
118
+ "fallback": "Discover"
119
+ },
120
+ "icon": "Featured"
121
+ },
122
+ {
123
+ "id": "local",
124
+ "title": {
125
+ "key": "timeline.local",
126
+ "fallback": "Local"
127
+ },
128
+ "icon": "Local",
129
+ "parameters": {
130
+ "local": "true"
131
+ }
132
+ },
133
+ {
134
+ "id": "federated",
135
+ "title": {
136
+ "key": "timeline.federated",
137
+ "fallback": "Federated"
138
+ },
139
+ "icon": "World",
140
+ "parameters": {
141
+ "local": "false"
142
+ }
143
+ },
144
+ {
145
+ "id": "bookmarks",
146
+ "title": {
147
+ "key": "timeline.bookmarks",
148
+ "fallback": "Bookmarks"
149
+ },
150
+ "icon": "Bookmark"
151
+ },
152
+ {
153
+ "id": "favourites",
154
+ "title": {
155
+ "key": "timeline.favourites",
156
+ "fallback": "Favourites"
157
+ },
158
+ "icon": "Heart"
159
+ }
160
+ ],
161
+ "profileTabs": [
162
+ {
163
+ "id": "posts",
164
+ "title": {
165
+ "key": "profile.posts",
166
+ "fallback": "Posts"
167
+ },
168
+ "icon": "Profile",
169
+ "display": "List"
170
+ },
171
+ {
172
+ "id": "gallery",
173
+ "title": {
174
+ "key": "profile.gallery",
175
+ "fallback": "Gallery"
176
+ },
177
+ "icon": "Featured",
178
+ "display": "Grid",
179
+ "parameters": {
180
+ "onlyMedia": "true"
181
+ }
182
+ }
183
+ ],
184
+ "composeDefaults": {
185
+ "text": {
186
+ "maxLength": 500
187
+ },
188
+ "media": {
189
+ "minCountForNew": 1,
190
+ "maxCount": 4,
191
+ "maxBytes": 10485760,
192
+ "supportedMimeTypes": [
193
+ "image/jpeg",
194
+ "image/png",
195
+ "image/gif",
196
+ "image/webp",
197
+ "video/mp4"
198
+ ],
199
+ "altTextMaxLength": 1500,
200
+ "canSensitive": true
201
+ },
202
+ "visibility": {
203
+ "allowed": ["public", "unlisted", "followers"],
204
+ "default": "public"
205
+ },
206
+ "contentWarning": true
207
+ },
208
+ "credentialSchemaVersion": 1,
209
+ "timelineSchemaVersion": 1
210
+ }
211
+ }