@capybara-hq/plugin-sdk 0.1.0-rc.5 → 0.1.0-rc.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capybara-hq/plugin-sdk",
3
- "version": "0.1.0-rc.5",
3
+ "version": "0.1.0-rc.7",
4
4
  "description": "Capybara plugin SDK: the types and pure functions plugins are written against",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -36,6 +36,9 @@
36
36
  "type": "string",
37
37
  "maxLength": 512
38
38
  },
39
+ "defaultEnabled": {
40
+ "type": "boolean"
41
+ },
39
42
  "template": {
40
43
  "type": "object",
41
44
  "properties": {
@@ -129,6 +129,20 @@
129
129
  "maxLength": 2000,
130
130
  "pattern": "^https:\\/\\/\\S+$"
131
131
  },
132
+ "icon": {
133
+ "anyOf": [
134
+ {
135
+ "type": "string",
136
+ "maxLength": 2000,
137
+ "pattern": "^https:\\/\\/[^\\s?#]+\\.(?:[sS][vV][gG]|[pP][nN][gG])(?:\\?[^\\s#]*)?$"
138
+ },
139
+ {
140
+ "type": "string",
141
+ "maxLength": 512,
142
+ "pattern": "^\\.\\/[^\\s?#]+\\.(?:[sS][vV][gG]|[pP][nN][gG])$"
143
+ }
144
+ ]
145
+ },
132
146
  "deprecated": {
133
147
  "anyOf": [
134
148
  {
@@ -194,6 +194,142 @@
194
194
  "additionalProperties": false
195
195
  }
196
196
  },
197
+ "setupGuides": {
198
+ "maxItems": 8,
199
+ "type": "array",
200
+ "items": {
201
+ "type": "object",
202
+ "properties": {
203
+ "id": {
204
+ "type": "string",
205
+ "pattern": "^[a-z0-9][a-z0-9-]{0,63}$"
206
+ },
207
+ "place": {
208
+ "type": "string",
209
+ "enum": [
210
+ "channel-connection"
211
+ ]
212
+ },
213
+ "title": {
214
+ "type": "object",
215
+ "properties": {
216
+ "en": {
217
+ "type": "string",
218
+ "minLength": 1,
219
+ "maxLength": 100,
220
+ "pattern": "\\S"
221
+ },
222
+ "zh": {
223
+ "type": "string",
224
+ "minLength": 1,
225
+ "maxLength": 100,
226
+ "pattern": "\\S"
227
+ }
228
+ },
229
+ "required": [
230
+ "en"
231
+ ],
232
+ "additionalProperties": false
233
+ },
234
+ "steps": {
235
+ "maxItems": 20,
236
+ "type": "array",
237
+ "items": {
238
+ "type": "object",
239
+ "properties": {
240
+ "en": {
241
+ "type": "string",
242
+ "minLength": 1,
243
+ "maxLength": 2000,
244
+ "pattern": "\\S"
245
+ },
246
+ "zh": {
247
+ "type": "string",
248
+ "minLength": 1,
249
+ "maxLength": 2000,
250
+ "pattern": "\\S"
251
+ },
252
+ "mode": {
253
+ "type": "string",
254
+ "maxLength": 64
255
+ }
256
+ },
257
+ "required": [
258
+ "en"
259
+ ],
260
+ "additionalProperties": false
261
+ }
262
+ },
263
+ "files": {
264
+ "maxItems": 8,
265
+ "type": "array",
266
+ "items": {
267
+ "type": "object",
268
+ "properties": {
269
+ "path": {
270
+ "type": "string",
271
+ "minLength": 3,
272
+ "maxLength": 512,
273
+ "allOf": [
274
+ {
275
+ "pattern": "^\\.\\/"
276
+ },
277
+ {
278
+ "pattern": "\\.(?:tmpl|ya?ml|json|txt)$"
279
+ }
280
+ ]
281
+ },
282
+ "title": {
283
+ "type": "object",
284
+ "properties": {
285
+ "en": {
286
+ "type": "string",
287
+ "minLength": 1,
288
+ "maxLength": 100,
289
+ "pattern": "\\S"
290
+ },
291
+ "zh": {
292
+ "type": "string",
293
+ "minLength": 1,
294
+ "maxLength": 100,
295
+ "pattern": "\\S"
296
+ }
297
+ },
298
+ "required": [
299
+ "en"
300
+ ],
301
+ "additionalProperties": false
302
+ },
303
+ "language": {
304
+ "type": "string",
305
+ "enum": [
306
+ "yaml",
307
+ "json",
308
+ "text"
309
+ ]
310
+ },
311
+ "mode": {
312
+ "type": "string",
313
+ "maxLength": 64
314
+ }
315
+ },
316
+ "required": [
317
+ "path",
318
+ "title",
319
+ "language"
320
+ ],
321
+ "additionalProperties": false
322
+ }
323
+ }
324
+ },
325
+ "required": [
326
+ "id",
327
+ "place",
328
+ "title"
329
+ ],
330
+ "additionalProperties": false
331
+ }
332
+ },
197
333
  "extension": {
198
334
  "type": "object",
199
335
  "properties": {