@nebulahome/integration-sdk 0.0.0-stage → 1.1.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.
@@ -0,0 +1,595 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "$schema": {
6
+ "type": "string",
7
+ "description": "The JSON Schema an editor checks the file with."
8
+ },
9
+ "name": {
10
+ "type": "string",
11
+ "minLength": 1,
12
+ "maxLength": 128
13
+ },
14
+ "help": {
15
+ "type": "string",
16
+ "maxLength": 512
17
+ },
18
+ "fields": {
19
+ "type": "object",
20
+ "properties": {
21
+ "constants": {
22
+ "default": {},
23
+ "type": "object",
24
+ "propertyNames": {
25
+ "type": "string",
26
+ "pattern": "^[a-z][A-Za-z0-9]{0,63}$"
27
+ },
28
+ "additionalProperties": {
29
+ "type": [
30
+ "string",
31
+ "number",
32
+ "boolean"
33
+ ]
34
+ }
35
+ },
36
+ "fields": {
37
+ "default": [],
38
+ "maxItems": 32,
39
+ "type": "array",
40
+ "items": {
41
+ "oneOf": [
42
+ {
43
+ "type": "object",
44
+ "properties": {
45
+ "key": {
46
+ "type": "string",
47
+ "pattern": "^[a-z][A-Za-z0-9]{0,63}$"
48
+ },
49
+ "label": {
50
+ "type": "string",
51
+ "minLength": 1,
52
+ "maxLength": 64
53
+ },
54
+ "help": {
55
+ "type": "string",
56
+ "maxLength": 256
57
+ },
58
+ "isRequired": {
59
+ "default": false,
60
+ "type": "boolean"
61
+ },
62
+ "shownWhen": {
63
+ "type": "object",
64
+ "properties": {
65
+ "key": {
66
+ "type": "string",
67
+ "pattern": "^[a-z][A-Za-z0-9]{0,63}$"
68
+ },
69
+ "equals": {
70
+ "minItems": 1,
71
+ "maxItems": 64,
72
+ "type": "array",
73
+ "items": {
74
+ "anyOf": [
75
+ {
76
+ "type": "string",
77
+ "minLength": 1,
78
+ "maxLength": 64
79
+ },
80
+ {
81
+ "type": "boolean"
82
+ }
83
+ ]
84
+ }
85
+ }
86
+ },
87
+ "required": [
88
+ "key",
89
+ "equals"
90
+ ],
91
+ "additionalProperties": false
92
+ },
93
+ "isLive": {
94
+ "type": "boolean"
95
+ },
96
+ "type": {
97
+ "type": "string",
98
+ "const": "text"
99
+ },
100
+ "placeholder": {
101
+ "type": "string",
102
+ "maxLength": 128
103
+ },
104
+ "pattern": {
105
+ "type": "string",
106
+ "minLength": 1,
107
+ "maxLength": 256
108
+ },
109
+ "patternMessage": {
110
+ "type": "string",
111
+ "minLength": 1,
112
+ "maxLength": 160
113
+ },
114
+ "minLength": {
115
+ "type": "integer",
116
+ "minimum": 0,
117
+ "maximum": 4096
118
+ },
119
+ "maxLength": {
120
+ "default": 512,
121
+ "type": "integer",
122
+ "minimum": 1,
123
+ "maximum": 4096
124
+ },
125
+ "default": {
126
+ "type": "string"
127
+ }
128
+ },
129
+ "required": [
130
+ "key",
131
+ "label",
132
+ "type"
133
+ ],
134
+ "additionalProperties": false
135
+ },
136
+ {
137
+ "type": "object",
138
+ "properties": {
139
+ "key": {
140
+ "type": "string",
141
+ "pattern": "^[a-z][A-Za-z0-9]{0,63}$"
142
+ },
143
+ "label": {
144
+ "type": "string",
145
+ "minLength": 1,
146
+ "maxLength": 64
147
+ },
148
+ "help": {
149
+ "type": "string",
150
+ "maxLength": 256
151
+ },
152
+ "isRequired": {
153
+ "default": false,
154
+ "type": "boolean"
155
+ },
156
+ "shownWhen": {
157
+ "type": "object",
158
+ "properties": {
159
+ "key": {
160
+ "type": "string",
161
+ "pattern": "^[a-z][A-Za-z0-9]{0,63}$"
162
+ },
163
+ "equals": {
164
+ "minItems": 1,
165
+ "maxItems": 64,
166
+ "type": "array",
167
+ "items": {
168
+ "anyOf": [
169
+ {
170
+ "type": "string",
171
+ "minLength": 1,
172
+ "maxLength": 64
173
+ },
174
+ {
175
+ "type": "boolean"
176
+ }
177
+ ]
178
+ }
179
+ }
180
+ },
181
+ "required": [
182
+ "key",
183
+ "equals"
184
+ ],
185
+ "additionalProperties": false
186
+ },
187
+ "isLive": {
188
+ "type": "boolean"
189
+ },
190
+ "type": {
191
+ "type": "string",
192
+ "const": "secret"
193
+ },
194
+ "pattern": {
195
+ "type": "string",
196
+ "minLength": 1,
197
+ "maxLength": 256
198
+ },
199
+ "patternMessage": {
200
+ "type": "string",
201
+ "minLength": 1,
202
+ "maxLength": 160
203
+ },
204
+ "minLength": {
205
+ "type": "integer",
206
+ "minimum": 0,
207
+ "maximum": 4096
208
+ },
209
+ "maxLength": {
210
+ "default": 512,
211
+ "type": "integer",
212
+ "minimum": 1,
213
+ "maximum": 4096
214
+ }
215
+ },
216
+ "required": [
217
+ "key",
218
+ "label",
219
+ "type"
220
+ ],
221
+ "additionalProperties": false
222
+ },
223
+ {
224
+ "type": "object",
225
+ "properties": {
226
+ "key": {
227
+ "type": "string",
228
+ "pattern": "^[a-z][A-Za-z0-9]{0,63}$"
229
+ },
230
+ "label": {
231
+ "type": "string",
232
+ "minLength": 1,
233
+ "maxLength": 64
234
+ },
235
+ "help": {
236
+ "type": "string",
237
+ "maxLength": 256
238
+ },
239
+ "isRequired": {
240
+ "default": false,
241
+ "type": "boolean"
242
+ },
243
+ "shownWhen": {
244
+ "type": "object",
245
+ "properties": {
246
+ "key": {
247
+ "type": "string",
248
+ "pattern": "^[a-z][A-Za-z0-9]{0,63}$"
249
+ },
250
+ "equals": {
251
+ "minItems": 1,
252
+ "maxItems": 64,
253
+ "type": "array",
254
+ "items": {
255
+ "anyOf": [
256
+ {
257
+ "type": "string",
258
+ "minLength": 1,
259
+ "maxLength": 64
260
+ },
261
+ {
262
+ "type": "boolean"
263
+ }
264
+ ]
265
+ }
266
+ }
267
+ },
268
+ "required": [
269
+ "key",
270
+ "equals"
271
+ ],
272
+ "additionalProperties": false
273
+ },
274
+ "isLive": {
275
+ "type": "boolean"
276
+ },
277
+ "type": {
278
+ "type": "string",
279
+ "const": "number"
280
+ },
281
+ "min": {
282
+ "type": "number"
283
+ },
284
+ "max": {
285
+ "type": "number"
286
+ },
287
+ "isInteger": {
288
+ "default": false,
289
+ "type": "boolean"
290
+ },
291
+ "unit": {
292
+ "type": "string",
293
+ "maxLength": 16
294
+ },
295
+ "default": {
296
+ "type": "number"
297
+ },
298
+ "warnBelow": {
299
+ "type": "number"
300
+ },
301
+ "warning": {
302
+ "type": "string",
303
+ "minLength": 1,
304
+ "maxLength": 160
305
+ }
306
+ },
307
+ "required": [
308
+ "key",
309
+ "label",
310
+ "type"
311
+ ],
312
+ "additionalProperties": false
313
+ },
314
+ {
315
+ "type": "object",
316
+ "properties": {
317
+ "key": {
318
+ "type": "string",
319
+ "pattern": "^[a-z][A-Za-z0-9]{0,63}$"
320
+ },
321
+ "label": {
322
+ "type": "string",
323
+ "minLength": 1,
324
+ "maxLength": 64
325
+ },
326
+ "help": {
327
+ "type": "string",
328
+ "maxLength": 256
329
+ },
330
+ "isRequired": {
331
+ "default": false,
332
+ "type": "boolean"
333
+ },
334
+ "shownWhen": {
335
+ "type": "object",
336
+ "properties": {
337
+ "key": {
338
+ "type": "string",
339
+ "pattern": "^[a-z][A-Za-z0-9]{0,63}$"
340
+ },
341
+ "equals": {
342
+ "minItems": 1,
343
+ "maxItems": 64,
344
+ "type": "array",
345
+ "items": {
346
+ "anyOf": [
347
+ {
348
+ "type": "string",
349
+ "minLength": 1,
350
+ "maxLength": 64
351
+ },
352
+ {
353
+ "type": "boolean"
354
+ }
355
+ ]
356
+ }
357
+ }
358
+ },
359
+ "required": [
360
+ "key",
361
+ "equals"
362
+ ],
363
+ "additionalProperties": false
364
+ },
365
+ "isLive": {
366
+ "type": "boolean"
367
+ },
368
+ "type": {
369
+ "type": "string",
370
+ "const": "boolean"
371
+ },
372
+ "default": {
373
+ "type": "boolean"
374
+ }
375
+ },
376
+ "required": [
377
+ "key",
378
+ "label",
379
+ "type"
380
+ ],
381
+ "additionalProperties": false
382
+ },
383
+ {
384
+ "type": "object",
385
+ "properties": {
386
+ "key": {
387
+ "type": "string",
388
+ "pattern": "^[a-z][A-Za-z0-9]{0,63}$"
389
+ },
390
+ "label": {
391
+ "type": "string",
392
+ "minLength": 1,
393
+ "maxLength": 64
394
+ },
395
+ "help": {
396
+ "type": "string",
397
+ "maxLength": 256
398
+ },
399
+ "isRequired": {
400
+ "default": false,
401
+ "type": "boolean"
402
+ },
403
+ "shownWhen": {
404
+ "type": "object",
405
+ "properties": {
406
+ "key": {
407
+ "type": "string",
408
+ "pattern": "^[a-z][A-Za-z0-9]{0,63}$"
409
+ },
410
+ "equals": {
411
+ "minItems": 1,
412
+ "maxItems": 64,
413
+ "type": "array",
414
+ "items": {
415
+ "anyOf": [
416
+ {
417
+ "type": "string",
418
+ "minLength": 1,
419
+ "maxLength": 64
420
+ },
421
+ {
422
+ "type": "boolean"
423
+ }
424
+ ]
425
+ }
426
+ }
427
+ },
428
+ "required": [
429
+ "key",
430
+ "equals"
431
+ ],
432
+ "additionalProperties": false
433
+ },
434
+ "isLive": {
435
+ "type": "boolean"
436
+ },
437
+ "type": {
438
+ "type": "string",
439
+ "const": "choice"
440
+ },
441
+ "choices": {
442
+ "minItems": 1,
443
+ "maxItems": 64,
444
+ "type": "array",
445
+ "items": {
446
+ "type": "object",
447
+ "properties": {
448
+ "value": {
449
+ "type": "string",
450
+ "minLength": 1,
451
+ "maxLength": 64
452
+ },
453
+ "label": {
454
+ "type": "string",
455
+ "minLength": 1,
456
+ "maxLength": 64
457
+ }
458
+ },
459
+ "required": [
460
+ "value",
461
+ "label"
462
+ ],
463
+ "additionalProperties": false
464
+ }
465
+ },
466
+ "default": {
467
+ "type": "string"
468
+ }
469
+ },
470
+ "required": [
471
+ "key",
472
+ "label",
473
+ "type",
474
+ "choices"
475
+ ],
476
+ "additionalProperties": false
477
+ },
478
+ {
479
+ "type": "object",
480
+ "properties": {
481
+ "key": {
482
+ "type": "string",
483
+ "pattern": "^[a-z][A-Za-z0-9]{0,63}$"
484
+ },
485
+ "label": {
486
+ "type": "string",
487
+ "minLength": 1,
488
+ "maxLength": 64
489
+ },
490
+ "help": {
491
+ "type": "string",
492
+ "maxLength": 256
493
+ },
494
+ "isRequired": {
495
+ "default": false,
496
+ "type": "boolean"
497
+ },
498
+ "shownWhen": {
499
+ "type": "object",
500
+ "properties": {
501
+ "key": {
502
+ "type": "string",
503
+ "pattern": "^[a-z][A-Za-z0-9]{0,63}$"
504
+ },
505
+ "equals": {
506
+ "minItems": 1,
507
+ "maxItems": 64,
508
+ "type": "array",
509
+ "items": {
510
+ "anyOf": [
511
+ {
512
+ "type": "string",
513
+ "minLength": 1,
514
+ "maxLength": 64
515
+ },
516
+ {
517
+ "type": "boolean"
518
+ }
519
+ ]
520
+ }
521
+ }
522
+ },
523
+ "required": [
524
+ "key",
525
+ "equals"
526
+ ],
527
+ "additionalProperties": false
528
+ },
529
+ "isLive": {
530
+ "type": "boolean"
531
+ },
532
+ "type": {
533
+ "type": "string",
534
+ "const": "list"
535
+ },
536
+ "placeholder": {
537
+ "type": "string",
538
+ "maxLength": 128
539
+ },
540
+ "minItems": {
541
+ "default": 0,
542
+ "type": "integer",
543
+ "minimum": 0,
544
+ "maximum": 64
545
+ },
546
+ "maxItems": {
547
+ "default": 64,
548
+ "type": "integer",
549
+ "minimum": 1,
550
+ "maximum": 64
551
+ },
552
+ "pattern": {
553
+ "type": "string",
554
+ "minLength": 1,
555
+ "maxLength": 256
556
+ },
557
+ "patternMessage": {
558
+ "type": "string",
559
+ "minLength": 1,
560
+ "maxLength": 160
561
+ }
562
+ },
563
+ "required": [
564
+ "key",
565
+ "label",
566
+ "type"
567
+ ],
568
+ "additionalProperties": false
569
+ }
570
+ ]
571
+ }
572
+ }
573
+ },
574
+ "additionalProperties": false
575
+ },
576
+ "identity": {
577
+ "type": "string",
578
+ "minLength": 1,
579
+ "maxLength": 64
580
+ },
581
+ "module": {
582
+ "type": "string",
583
+ "minLength": 1,
584
+ "maxLength": 256
585
+ }
586
+ },
587
+ "required": [
588
+ "name",
589
+ "fields",
590
+ "identity",
591
+ "module"
592
+ ],
593
+ "additionalProperties": false,
594
+ "title": "NebulaHome integration: account.json"
595
+ }