@dashspec/renderer 0.0.0-stage → 0.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,3060 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://dashspec.dev/schema/v2.json",
4
+ "title": "DashSpec dashboard",
5
+ "type": "object",
6
+ "properties": {
7
+ "$schema": {
8
+ "type": "string"
9
+ },
10
+ "apiVersion": {
11
+ "type": "string",
12
+ "const": "dashspec.dev/v2"
13
+ },
14
+ "kind": {
15
+ "type": "string",
16
+ "const": "Dashboard"
17
+ },
18
+ "metadata": {
19
+ "type": "object",
20
+ "properties": {
21
+ "key": {
22
+ "type": "string",
23
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
24
+ },
25
+ "name": {
26
+ "type": "string",
27
+ "minLength": 1
28
+ },
29
+ "group": {
30
+ "type": "string"
31
+ },
32
+ "tags": {
33
+ "type": "array",
34
+ "items": {
35
+ "type": "string"
36
+ }
37
+ },
38
+ "description": {
39
+ "type": "string"
40
+ },
41
+ "generator": {
42
+ "type": "object",
43
+ "properties": {
44
+ "name": {
45
+ "type": "string",
46
+ "minLength": 1
47
+ },
48
+ "version": {
49
+ "type": "string"
50
+ }
51
+ },
52
+ "required": [
53
+ "name"
54
+ ],
55
+ "additionalProperties": false
56
+ }
57
+ },
58
+ "required": [
59
+ "key",
60
+ "name"
61
+ ],
62
+ "additionalProperties": false
63
+ },
64
+ "spec": {
65
+ "type": "object",
66
+ "properties": {
67
+ "display": {
68
+ "type": "object",
69
+ "properties": {
70
+ "title": {
71
+ "type": "string"
72
+ },
73
+ "description": {
74
+ "$ref": "#/properties/spec/properties/display/properties/title"
75
+ },
76
+ "theme": {
77
+ "type": "string"
78
+ },
79
+ "locale": {
80
+ "type": "string"
81
+ },
82
+ "translations": {
83
+ "type": "object",
84
+ "additionalProperties": {
85
+ "type": "object",
86
+ "additionalProperties": {
87
+ "type": "string"
88
+ }
89
+ }
90
+ },
91
+ "timeZone": {
92
+ "type": "string"
93
+ },
94
+ "dayStartsAt": {
95
+ "type": "string",
96
+ "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
97
+ },
98
+ "filters": {
99
+ "type": "string",
100
+ "enum": [
101
+ "toolbar",
102
+ "drawer"
103
+ ]
104
+ },
105
+ "filterBar": {
106
+ "type": "object",
107
+ "properties": {
108
+ "apply": {
109
+ "type": "string",
110
+ "enum": [
111
+ "change",
112
+ "button"
113
+ ],
114
+ "default": "change"
115
+ },
116
+ "reset": {
117
+ "type": "boolean",
118
+ "default": false
119
+ },
120
+ "show": {
121
+ "type": "boolean",
122
+ "default": true
123
+ },
124
+ "icon": {
125
+ "type": "string",
126
+ "enum": [
127
+ "sliders",
128
+ "filter",
129
+ "calendar",
130
+ "search",
131
+ "none"
132
+ ],
133
+ "default": "sliders"
134
+ },
135
+ "look": {
136
+ "type": "string",
137
+ "enum": [
138
+ "card",
139
+ "plain"
140
+ ],
141
+ "default": "card"
142
+ }
143
+ },
144
+ "additionalProperties": false
145
+ },
146
+ "syncedLabel": {
147
+ "$ref": "#/properties/spec/properties/display/properties/title"
148
+ },
149
+ "tv": {
150
+ "type": "object",
151
+ "properties": {
152
+ "rotateViews": {
153
+ "type": "array",
154
+ "items": {
155
+ "$ref": "#/properties/metadata/properties/key"
156
+ }
157
+ },
158
+ "every": {
159
+ "type": "string",
160
+ "pattern": "^\\d+(\\.\\d+)?(ms|s|m|h|d)$"
161
+ },
162
+ "hideToolbar": {
163
+ "type": "boolean"
164
+ }
165
+ },
166
+ "additionalProperties": false
167
+ }
168
+ },
169
+ "additionalProperties": false,
170
+ "default": {}
171
+ },
172
+ "grid": {
173
+ "type": "object",
174
+ "properties": {
175
+ "columns": {
176
+ "type": "number",
177
+ "enum": [
178
+ 12,
179
+ 24,
180
+ 60
181
+ ],
182
+ "default": 12
183
+ },
184
+ "rowHeight": {
185
+ "type": "integer",
186
+ "minimum": 8,
187
+ "maximum": 200,
188
+ "default": 28
189
+ },
190
+ "gap": {
191
+ "type": "integer",
192
+ "minimum": 0,
193
+ "maximum": 48,
194
+ "default": 12
195
+ }
196
+ },
197
+ "additionalProperties": false,
198
+ "default": {}
199
+ },
200
+ "connections": {
201
+ "type": "object",
202
+ "additionalProperties": {
203
+ "type": "object",
204
+ "properties": {
205
+ "description": {
206
+ "type": "string"
207
+ },
208
+ "baseUrl": {
209
+ "anyOf": [
210
+ {
211
+ "$ref": "#/properties/spec/properties/display/properties/title"
212
+ },
213
+ {
214
+ "type": "object",
215
+ "additionalProperties": {
216
+ "$ref": "#/properties/spec/properties/display/properties/title"
217
+ }
218
+ }
219
+ ]
220
+ },
221
+ "auth": {
222
+ "anyOf": [
223
+ {
224
+ "type": "object",
225
+ "properties": {
226
+ "type": {
227
+ "type": "string",
228
+ "const": "none"
229
+ }
230
+ },
231
+ "required": [
232
+ "type"
233
+ ],
234
+ "additionalProperties": false
235
+ },
236
+ {
237
+ "type": "object",
238
+ "properties": {
239
+ "type": {
240
+ "type": "string",
241
+ "const": "cookie"
242
+ }
243
+ },
244
+ "required": [
245
+ "type"
246
+ ],
247
+ "additionalProperties": false
248
+ },
249
+ {
250
+ "type": "object",
251
+ "properties": {
252
+ "type": {
253
+ "type": "string",
254
+ "const": "bearer"
255
+ },
256
+ "token": {
257
+ "type": "object",
258
+ "properties": {
259
+ "from": {
260
+ "type": "string",
261
+ "enum": [
262
+ "host",
263
+ "localStorage",
264
+ "sessionStorage",
265
+ "cookie"
266
+ ]
267
+ },
268
+ "key": {
269
+ "type": "string",
270
+ "minLength": 1
271
+ }
272
+ },
273
+ "required": [
274
+ "from"
275
+ ],
276
+ "additionalProperties": false
277
+ },
278
+ "refresh": {
279
+ "anyOf": [
280
+ {
281
+ "type": "object",
282
+ "properties": {
283
+ "from": {
284
+ "type": "string",
285
+ "const": "host"
286
+ }
287
+ },
288
+ "required": [
289
+ "from"
290
+ ],
291
+ "additionalProperties": false
292
+ },
293
+ {
294
+ "type": "object",
295
+ "properties": {
296
+ "method": {
297
+ "type": "string",
298
+ "enum": [
299
+ "GET",
300
+ "POST",
301
+ "PUT",
302
+ "PATCH",
303
+ "DELETE"
304
+ ],
305
+ "default": "POST"
306
+ },
307
+ "url": {
308
+ "$ref": "#/properties/spec/properties/display/properties/title"
309
+ },
310
+ "path": {
311
+ "$ref": "#/properties/spec/properties/display/properties/title"
312
+ },
313
+ "body": {
314
+ "$ref": "#/definitions/JsonValue"
315
+ },
316
+ "headers": {
317
+ "type": "object",
318
+ "additionalProperties": {
319
+ "$ref": "#/properties/spec/properties/display/properties/title"
320
+ }
321
+ },
322
+ "save": {
323
+ "type": "object",
324
+ "additionalProperties": {
325
+ "type": "string"
326
+ }
327
+ }
328
+ },
329
+ "additionalProperties": false
330
+ }
331
+ ]
332
+ },
333
+ "header": {
334
+ "type": "string",
335
+ "default": "Authorization"
336
+ },
337
+ "scheme": {
338
+ "type": "string",
339
+ "default": "Bearer"
340
+ }
341
+ },
342
+ "required": [
343
+ "type",
344
+ "token"
345
+ ],
346
+ "additionalProperties": false
347
+ },
348
+ {
349
+ "type": "object",
350
+ "properties": {
351
+ "type": {
352
+ "type": "string",
353
+ "const": "apiKey"
354
+ },
355
+ "in": {
356
+ "type": "string",
357
+ "enum": [
358
+ "header",
359
+ "query"
360
+ ]
361
+ },
362
+ "name": {
363
+ "type": "string",
364
+ "minLength": 1
365
+ },
366
+ "from": {
367
+ "$ref": "#/properties/spec/properties/connections/additionalProperties/properties/auth/anyOf/2/properties/token"
368
+ }
369
+ },
370
+ "required": [
371
+ "type",
372
+ "in",
373
+ "name",
374
+ "from"
375
+ ],
376
+ "additionalProperties": false
377
+ },
378
+ {
379
+ "type": "object",
380
+ "properties": {
381
+ "type": {
382
+ "type": "string",
383
+ "const": "headers"
384
+ },
385
+ "headers": {
386
+ "type": "object",
387
+ "additionalProperties": {
388
+ "$ref": "#/properties/spec/properties/display/properties/title"
389
+ }
390
+ }
391
+ },
392
+ "required": [
393
+ "type",
394
+ "headers"
395
+ ],
396
+ "additionalProperties": false
397
+ }
398
+ ]
399
+ },
400
+ "headers": {
401
+ "type": "object",
402
+ "additionalProperties": {
403
+ "$ref": "#/properties/spec/properties/display/properties/title"
404
+ }
405
+ },
406
+ "timeout": {
407
+ "$ref": "#/properties/spec/properties/display/properties/tv/properties/every"
408
+ },
409
+ "retry": {
410
+ "anyOf": [
411
+ {
412
+ "type": "boolean",
413
+ "const": false
414
+ },
415
+ {
416
+ "type": "object",
417
+ "properties": {
418
+ "times": {
419
+ "type": "integer",
420
+ "minimum": 0,
421
+ "maximum": 10,
422
+ "default": 2
423
+ },
424
+ "backoff": {
425
+ "type": "string",
426
+ "enum": [
427
+ "fixed",
428
+ "exponential"
429
+ ],
430
+ "default": "exponential"
431
+ },
432
+ "on": {
433
+ "type": "array",
434
+ "items": {
435
+ "type": "integer",
436
+ "minimum": 100,
437
+ "maximum": 599
438
+ }
439
+ }
440
+ },
441
+ "additionalProperties": false
442
+ }
443
+ ]
444
+ }
445
+ },
446
+ "additionalProperties": false
447
+ },
448
+ "propertyNames": {
449
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
450
+ }
451
+ },
452
+ "variables": {
453
+ "type": "array",
454
+ "items": {
455
+ "anyOf": [
456
+ {
457
+ "type": "object",
458
+ "properties": {
459
+ "name": {
460
+ "$ref": "#/properties/metadata/properties/key"
461
+ },
462
+ "label": {
463
+ "$ref": "#/properties/spec/properties/display/properties/title"
464
+ },
465
+ "description": {
466
+ "type": "string"
467
+ },
468
+ "visibleWhen": {
469
+ "type": "string",
470
+ "minLength": 1
471
+ },
472
+ "persist": {
473
+ "type": "string",
474
+ "enum": [
475
+ "url",
476
+ "memory",
477
+ "none"
478
+ ]
479
+ },
480
+ "apply": {
481
+ "type": "string",
482
+ "enum": [
483
+ "immediate",
484
+ "button"
485
+ ]
486
+ },
487
+ "hidden": {
488
+ "type": "boolean"
489
+ },
490
+ "dependsOn": {
491
+ "type": "array",
492
+ "items": {
493
+ "$ref": "#/properties/metadata/properties/key"
494
+ }
495
+ },
496
+ "optionsFilter": {
497
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/visibleWhen"
498
+ },
499
+ "kind": {
500
+ "type": "string",
501
+ "const": "DateRange"
502
+ },
503
+ "presets": {
504
+ "type": "array",
505
+ "items": {
506
+ "type": "string",
507
+ "enum": [
508
+ "today",
509
+ "yesterday",
510
+ "last7days",
511
+ "last30days",
512
+ "last90days",
513
+ "thisWeek",
514
+ "lastWeek",
515
+ "thisMonth",
516
+ "lastMonth",
517
+ "thisQuarter",
518
+ "thisYear",
519
+ "lastYear",
520
+ "custom"
521
+ ]
522
+ }
523
+ },
524
+ "default": {
525
+ "anyOf": [
526
+ {
527
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/presets/items"
528
+ },
529
+ {
530
+ "type": "object",
531
+ "properties": {
532
+ "from": {
533
+ "$ref": "#/properties/spec/properties/display/properties/title"
534
+ },
535
+ "to": {
536
+ "$ref": "#/properties/spec/properties/display/properties/title"
537
+ }
538
+ },
539
+ "required": [
540
+ "from",
541
+ "to"
542
+ ],
543
+ "additionalProperties": false
544
+ }
545
+ ]
546
+ },
547
+ "min": {
548
+ "$ref": "#/properties/spec/properties/display/properties/title"
549
+ },
550
+ "max": {
551
+ "$ref": "#/properties/spec/properties/display/properties/title"
552
+ },
553
+ "maxDays": {
554
+ "type": "integer",
555
+ "minimum": 1
556
+ }
557
+ },
558
+ "required": [
559
+ "name",
560
+ "kind"
561
+ ],
562
+ "additionalProperties": false
563
+ },
564
+ {
565
+ "type": "object",
566
+ "properties": {
567
+ "name": {
568
+ "$ref": "#/properties/metadata/properties/key"
569
+ },
570
+ "label": {
571
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/label"
572
+ },
573
+ "description": {
574
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/description"
575
+ },
576
+ "visibleWhen": {
577
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/visibleWhen"
578
+ },
579
+ "persist": {
580
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/persist"
581
+ },
582
+ "apply": {
583
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/apply"
584
+ },
585
+ "hidden": {
586
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/hidden"
587
+ },
588
+ "dependsOn": {
589
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/dependsOn"
590
+ },
591
+ "optionsFilter": {
592
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/optionsFilter"
593
+ },
594
+ "kind": {
595
+ "type": "string",
596
+ "const": "Date"
597
+ },
598
+ "default": {
599
+ "$ref": "#/properties/spec/properties/display/properties/title"
600
+ },
601
+ "min": {
602
+ "$ref": "#/properties/spec/properties/display/properties/title"
603
+ },
604
+ "max": {
605
+ "$ref": "#/properties/spec/properties/display/properties/title"
606
+ },
607
+ "stepper": {
608
+ "type": "boolean"
609
+ }
610
+ },
611
+ "required": [
612
+ "name",
613
+ "kind"
614
+ ],
615
+ "additionalProperties": false
616
+ },
617
+ {
618
+ "type": "object",
619
+ "properties": {
620
+ "name": {
621
+ "$ref": "#/properties/metadata/properties/key"
622
+ },
623
+ "label": {
624
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/label"
625
+ },
626
+ "description": {
627
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/description"
628
+ },
629
+ "visibleWhen": {
630
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/visibleWhen"
631
+ },
632
+ "persist": {
633
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/persist"
634
+ },
635
+ "apply": {
636
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/apply"
637
+ },
638
+ "hidden": {
639
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/hidden"
640
+ },
641
+ "dependsOn": {
642
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/dependsOn"
643
+ },
644
+ "optionsFilter": {
645
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/optionsFilter"
646
+ },
647
+ "kind": {
648
+ "type": "string",
649
+ "const": "Select"
650
+ },
651
+ "options": {
652
+ "anyOf": [
653
+ {
654
+ "type": "array",
655
+ "items": {
656
+ "anyOf": [
657
+ {
658
+ "type": "string"
659
+ },
660
+ {
661
+ "type": "number"
662
+ },
663
+ {
664
+ "type": "object",
665
+ "properties": {
666
+ "value": {
667
+ "type": [
668
+ "string",
669
+ "number",
670
+ "boolean"
671
+ ]
672
+ },
673
+ "label": {
674
+ "type": "string"
675
+ },
676
+ "count": {
677
+ "type": "number"
678
+ }
679
+ },
680
+ "required": [
681
+ "value"
682
+ ],
683
+ "additionalProperties": false
684
+ }
685
+ ]
686
+ }
687
+ },
688
+ {
689
+ "type": "object",
690
+ "properties": {
691
+ "source": {
692
+ "$ref": "#/properties/metadata/properties/key"
693
+ },
694
+ "path": {
695
+ "type": "string"
696
+ },
697
+ "value": {
698
+ "type": "string"
699
+ },
700
+ "label": {
701
+ "type": "string"
702
+ },
703
+ "count": {
704
+ "type": "string"
705
+ }
706
+ },
707
+ "required": [
708
+ "source"
709
+ ],
710
+ "additionalProperties": false
711
+ }
712
+ ]
713
+ },
714
+ "default": {
715
+ "$ref": "#/definitions/JsonValue"
716
+ },
717
+ "searchable": {
718
+ "type": "boolean"
719
+ },
720
+ "stepper": {
721
+ "type": "boolean"
722
+ }
723
+ },
724
+ "required": [
725
+ "name",
726
+ "kind",
727
+ "options"
728
+ ],
729
+ "additionalProperties": false
730
+ },
731
+ {
732
+ "type": "object",
733
+ "properties": {
734
+ "name": {
735
+ "$ref": "#/properties/metadata/properties/key"
736
+ },
737
+ "label": {
738
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/label"
739
+ },
740
+ "description": {
741
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/description"
742
+ },
743
+ "visibleWhen": {
744
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/visibleWhen"
745
+ },
746
+ "persist": {
747
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/persist"
748
+ },
749
+ "apply": {
750
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/apply"
751
+ },
752
+ "hidden": {
753
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/hidden"
754
+ },
755
+ "dependsOn": {
756
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/dependsOn"
757
+ },
758
+ "optionsFilter": {
759
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/optionsFilter"
760
+ },
761
+ "kind": {
762
+ "type": "string",
763
+ "const": "MultiSelect"
764
+ },
765
+ "options": {
766
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/2/properties/options"
767
+ },
768
+ "default": {
769
+ "type": "array",
770
+ "items": {
771
+ "$ref": "#/definitions/JsonValue"
772
+ }
773
+ },
774
+ "searchable": {
775
+ "type": "boolean"
776
+ }
777
+ },
778
+ "required": [
779
+ "name",
780
+ "kind",
781
+ "options"
782
+ ],
783
+ "additionalProperties": false
784
+ },
785
+ {
786
+ "type": "object",
787
+ "properties": {
788
+ "name": {
789
+ "$ref": "#/properties/metadata/properties/key"
790
+ },
791
+ "label": {
792
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/label"
793
+ },
794
+ "description": {
795
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/description"
796
+ },
797
+ "visibleWhen": {
798
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/visibleWhen"
799
+ },
800
+ "persist": {
801
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/persist"
802
+ },
803
+ "apply": {
804
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/apply"
805
+ },
806
+ "hidden": {
807
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/hidden"
808
+ },
809
+ "dependsOn": {
810
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/dependsOn"
811
+ },
812
+ "optionsFilter": {
813
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/optionsFilter"
814
+ },
815
+ "kind": {
816
+ "type": "string",
817
+ "const": "Chips"
818
+ },
819
+ "options": {
820
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/2/properties/options"
821
+ },
822
+ "multiple": {
823
+ "type": "boolean"
824
+ },
825
+ "default": {
826
+ "$ref": "#/definitions/JsonValue"
827
+ }
828
+ },
829
+ "required": [
830
+ "name",
831
+ "kind",
832
+ "options"
833
+ ],
834
+ "additionalProperties": false
835
+ },
836
+ {
837
+ "type": "object",
838
+ "properties": {
839
+ "name": {
840
+ "$ref": "#/properties/metadata/properties/key"
841
+ },
842
+ "label": {
843
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/label"
844
+ },
845
+ "description": {
846
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/description"
847
+ },
848
+ "visibleWhen": {
849
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/visibleWhen"
850
+ },
851
+ "persist": {
852
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/persist"
853
+ },
854
+ "apply": {
855
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/apply"
856
+ },
857
+ "hidden": {
858
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/hidden"
859
+ },
860
+ "dependsOn": {
861
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/dependsOn"
862
+ },
863
+ "optionsFilter": {
864
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/optionsFilter"
865
+ },
866
+ "kind": {
867
+ "type": "string",
868
+ "const": "Search"
869
+ },
870
+ "placeholder": {
871
+ "$ref": "#/properties/spec/properties/display/properties/title"
872
+ },
873
+ "debounce": {
874
+ "$ref": "#/properties/spec/properties/display/properties/tv/properties/every"
875
+ },
876
+ "default": {
877
+ "type": "string"
878
+ }
879
+ },
880
+ "required": [
881
+ "name",
882
+ "kind"
883
+ ],
884
+ "additionalProperties": false
885
+ },
886
+ {
887
+ "type": "object",
888
+ "properties": {
889
+ "name": {
890
+ "$ref": "#/properties/metadata/properties/key"
891
+ },
892
+ "label": {
893
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/label"
894
+ },
895
+ "description": {
896
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/description"
897
+ },
898
+ "visibleWhen": {
899
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/visibleWhen"
900
+ },
901
+ "persist": {
902
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/persist"
903
+ },
904
+ "apply": {
905
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/apply"
906
+ },
907
+ "hidden": {
908
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/hidden"
909
+ },
910
+ "dependsOn": {
911
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/dependsOn"
912
+ },
913
+ "optionsFilter": {
914
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/optionsFilter"
915
+ },
916
+ "kind": {
917
+ "type": "string",
918
+ "const": "Toggle"
919
+ },
920
+ "default": {
921
+ "type": "boolean"
922
+ }
923
+ },
924
+ "required": [
925
+ "name",
926
+ "kind"
927
+ ],
928
+ "additionalProperties": false
929
+ }
930
+ ]
931
+ }
932
+ },
933
+ "state": {
934
+ "type": "object",
935
+ "additionalProperties": {
936
+ "$ref": "#/definitions/JsonValue"
937
+ }
938
+ },
939
+ "datasources": {
940
+ "type": "object",
941
+ "additionalProperties": {
942
+ "anyOf": [
943
+ {
944
+ "type": "object",
945
+ "properties": {
946
+ "type": {
947
+ "type": "string",
948
+ "const": "http"
949
+ },
950
+ "description": {
951
+ "type": "string"
952
+ },
953
+ "load": {
954
+ "type": "string",
955
+ "enum": [
956
+ "onLoad",
957
+ "lazy",
958
+ "manual"
959
+ ]
960
+ },
961
+ "refresh": {
962
+ "type": "object",
963
+ "properties": {
964
+ "every": {
965
+ "$ref": "#/properties/spec/properties/display/properties/tv/properties/every"
966
+ },
967
+ "whenVisible": {
968
+ "type": "boolean"
969
+ },
970
+ "when": {
971
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/visibleWhen"
972
+ },
973
+ "onFocus": {
974
+ "type": "boolean"
975
+ }
976
+ },
977
+ "additionalProperties": false
978
+ },
979
+ "transform": {
980
+ "type": "array",
981
+ "items": {
982
+ "anyOf": [
983
+ {
984
+ "type": "object",
985
+ "properties": {
986
+ "filter": {
987
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/visibleWhen"
988
+ }
989
+ },
990
+ "required": [
991
+ "filter"
992
+ ],
993
+ "additionalProperties": false
994
+ },
995
+ {
996
+ "type": "object",
997
+ "properties": {
998
+ "map": {
999
+ "type": "object",
1000
+ "properties": {
1001
+ "field": {
1002
+ "type": "string",
1003
+ "minLength": 1
1004
+ },
1005
+ "to": {
1006
+ "type": "string",
1007
+ "minLength": 1
1008
+ },
1009
+ "values": {
1010
+ "type": "object",
1011
+ "additionalProperties": {
1012
+ "$ref": "#/definitions/JsonValue"
1013
+ }
1014
+ },
1015
+ "default": {
1016
+ "$ref": "#/definitions/JsonValue"
1017
+ }
1018
+ },
1019
+ "required": [
1020
+ "field",
1021
+ "values"
1022
+ ],
1023
+ "additionalProperties": false
1024
+ }
1025
+ },
1026
+ "required": [
1027
+ "map"
1028
+ ],
1029
+ "additionalProperties": false
1030
+ },
1031
+ {
1032
+ "type": "object",
1033
+ "properties": {
1034
+ "groupBy": {
1035
+ "anyOf": [
1036
+ {
1037
+ "type": "string",
1038
+ "minLength": 1
1039
+ },
1040
+ {
1041
+ "type": "array",
1042
+ "items": {
1043
+ "type": "string",
1044
+ "minLength": 1
1045
+ },
1046
+ "minItems": 1
1047
+ }
1048
+ ]
1049
+ },
1050
+ "sum": {
1051
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/transform/items/anyOf/2/properties/groupBy"
1052
+ },
1053
+ "avg": {
1054
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/transform/items/anyOf/2/properties/groupBy"
1055
+ },
1056
+ "count": {
1057
+ "anyOf": [
1058
+ {
1059
+ "type": "boolean",
1060
+ "const": true
1061
+ },
1062
+ {
1063
+ "type": "string",
1064
+ "minLength": 1
1065
+ }
1066
+ ]
1067
+ },
1068
+ "min": {
1069
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/transform/items/anyOf/2/properties/groupBy"
1070
+ },
1071
+ "max": {
1072
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/transform/items/anyOf/2/properties/groupBy"
1073
+ },
1074
+ "first": {
1075
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/transform/items/anyOf/2/properties/groupBy"
1076
+ },
1077
+ "last": {
1078
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/transform/items/anyOf/2/properties/groupBy"
1079
+ }
1080
+ },
1081
+ "additionalProperties": false
1082
+ },
1083
+ {
1084
+ "type": "object",
1085
+ "properties": {
1086
+ "pivot": {
1087
+ "type": "object",
1088
+ "properties": {
1089
+ "rows": {
1090
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/transform/items/anyOf/2/properties/groupBy"
1091
+ },
1092
+ "cols": {
1093
+ "type": "string",
1094
+ "minLength": 1
1095
+ },
1096
+ "value": {
1097
+ "type": "string",
1098
+ "minLength": 1
1099
+ }
1100
+ },
1101
+ "required": [
1102
+ "rows",
1103
+ "cols",
1104
+ "value"
1105
+ ],
1106
+ "additionalProperties": false
1107
+ }
1108
+ },
1109
+ "required": [
1110
+ "pivot"
1111
+ ],
1112
+ "additionalProperties": false
1113
+ },
1114
+ {
1115
+ "type": "object",
1116
+ "properties": {
1117
+ "sort": {
1118
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/transform/items/anyOf/2/properties/groupBy"
1119
+ },
1120
+ "order": {
1121
+ "type": "string",
1122
+ "enum": [
1123
+ "asc",
1124
+ "desc"
1125
+ ],
1126
+ "default": "asc"
1127
+ }
1128
+ },
1129
+ "required": [
1130
+ "sort"
1131
+ ],
1132
+ "additionalProperties": false
1133
+ },
1134
+ {
1135
+ "type": "object",
1136
+ "properties": {
1137
+ "limit": {
1138
+ "type": "integer",
1139
+ "minimum": 0
1140
+ }
1141
+ },
1142
+ "required": [
1143
+ "limit"
1144
+ ],
1145
+ "additionalProperties": false
1146
+ },
1147
+ {
1148
+ "type": "object",
1149
+ "properties": {
1150
+ "pick": {
1151
+ "type": "array",
1152
+ "items": {
1153
+ "type": "string",
1154
+ "minLength": 1
1155
+ },
1156
+ "minItems": 1
1157
+ }
1158
+ },
1159
+ "required": [
1160
+ "pick"
1161
+ ],
1162
+ "additionalProperties": false
1163
+ },
1164
+ {
1165
+ "type": "object",
1166
+ "properties": {
1167
+ "fn": {
1168
+ "type": "string",
1169
+ "minLength": 1
1170
+ }
1171
+ },
1172
+ "required": [
1173
+ "fn"
1174
+ ],
1175
+ "additionalProperties": false
1176
+ }
1177
+ ]
1178
+ }
1179
+ },
1180
+ "forEach": {
1181
+ "type": "object",
1182
+ "properties": {
1183
+ "source": {
1184
+ "$ref": "#/properties/metadata/properties/key"
1185
+ },
1186
+ "as": {
1187
+ "$ref": "#/properties/metadata/properties/key"
1188
+ },
1189
+ "concurrency": {
1190
+ "type": "integer",
1191
+ "minimum": 1,
1192
+ "maximum": 32
1193
+ }
1194
+ },
1195
+ "required": [
1196
+ "source",
1197
+ "as"
1198
+ ],
1199
+ "additionalProperties": false
1200
+ },
1201
+ "timeout": {
1202
+ "$ref": "#/properties/spec/properties/display/properties/tv/properties/every"
1203
+ },
1204
+ "retry": {
1205
+ "$ref": "#/properties/spec/properties/connections/additionalProperties/properties/retry"
1206
+ },
1207
+ "cache": {
1208
+ "type": "object",
1209
+ "properties": {
1210
+ "staleTime": {
1211
+ "$ref": "#/properties/spec/properties/display/properties/tv/properties/every"
1212
+ }
1213
+ },
1214
+ "required": [
1215
+ "staleTime"
1216
+ ],
1217
+ "additionalProperties": false
1218
+ },
1219
+ "onError": {
1220
+ "type": "string",
1221
+ "enum": [
1222
+ "keepLast",
1223
+ "clear"
1224
+ ]
1225
+ },
1226
+ "omitEmpty": {
1227
+ "type": "boolean"
1228
+ },
1229
+ "connection": {
1230
+ "$ref": "#/properties/metadata/properties/key"
1231
+ },
1232
+ "url": {
1233
+ "$ref": "#/properties/spec/properties/display/properties/title"
1234
+ },
1235
+ "path": {
1236
+ "$ref": "#/properties/spec/properties/display/properties/title"
1237
+ },
1238
+ "query": {
1239
+ "type": "object",
1240
+ "additionalProperties": {
1241
+ "$ref": "#/definitions/JsonValue"
1242
+ }
1243
+ },
1244
+ "headers": {
1245
+ "type": "object",
1246
+ "additionalProperties": {
1247
+ "$ref": "#/properties/spec/properties/display/properties/title"
1248
+ }
1249
+ },
1250
+ "method": {
1251
+ "$ref": "#/properties/spec/properties/connections/additionalProperties/properties/auth/anyOf/2/properties/refresh/anyOf/1/properties/method",
1252
+ "default": "GET"
1253
+ },
1254
+ "body": {
1255
+ "$ref": "#/definitions/JsonValue"
1256
+ },
1257
+ "select": {
1258
+ "type": "string"
1259
+ },
1260
+ "paging": {
1261
+ "type": "object",
1262
+ "properties": {
1263
+ "mode": {
1264
+ "type": "string",
1265
+ "enum": [
1266
+ "server",
1267
+ "client"
1268
+ ]
1269
+ },
1270
+ "page": {
1271
+ "type": "string"
1272
+ },
1273
+ "size": {
1274
+ "type": "string"
1275
+ },
1276
+ "total": {
1277
+ "type": "string"
1278
+ },
1279
+ "sort": {
1280
+ "type": "string"
1281
+ },
1282
+ "pageSize": {
1283
+ "type": "integer",
1284
+ "minimum": 1
1285
+ }
1286
+ },
1287
+ "required": [
1288
+ "mode"
1289
+ ],
1290
+ "additionalProperties": false
1291
+ }
1292
+ },
1293
+ "required": [
1294
+ "type"
1295
+ ],
1296
+ "additionalProperties": false
1297
+ },
1298
+ {
1299
+ "type": "object",
1300
+ "properties": {
1301
+ "type": {
1302
+ "type": "string",
1303
+ "const": "graphql"
1304
+ },
1305
+ "description": {
1306
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/description"
1307
+ },
1308
+ "load": {
1309
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/load"
1310
+ },
1311
+ "refresh": {
1312
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/refresh"
1313
+ },
1314
+ "transform": {
1315
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/transform"
1316
+ },
1317
+ "forEach": {
1318
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/forEach"
1319
+ },
1320
+ "timeout": {
1321
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/timeout"
1322
+ },
1323
+ "retry": {
1324
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/retry"
1325
+ },
1326
+ "cache": {
1327
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/cache"
1328
+ },
1329
+ "onError": {
1330
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/onError"
1331
+ },
1332
+ "omitEmpty": {
1333
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/omitEmpty"
1334
+ },
1335
+ "connection": {
1336
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/connection"
1337
+ },
1338
+ "url": {
1339
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/url"
1340
+ },
1341
+ "path": {
1342
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/path"
1343
+ },
1344
+ "query": {
1345
+ "type": "string",
1346
+ "minLength": 1
1347
+ },
1348
+ "headers": {
1349
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/headers"
1350
+ },
1351
+ "variables": {
1352
+ "type": "object",
1353
+ "additionalProperties": {
1354
+ "$ref": "#/definitions/JsonValue"
1355
+ }
1356
+ },
1357
+ "select": {
1358
+ "type": "string"
1359
+ }
1360
+ },
1361
+ "required": [
1362
+ "type",
1363
+ "query"
1364
+ ],
1365
+ "additionalProperties": false
1366
+ },
1367
+ {
1368
+ "type": "object",
1369
+ "properties": {
1370
+ "type": {
1371
+ "type": "string",
1372
+ "const": "sse"
1373
+ },
1374
+ "description": {
1375
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/description"
1376
+ },
1377
+ "load": {
1378
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/load"
1379
+ },
1380
+ "refresh": {
1381
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/refresh"
1382
+ },
1383
+ "transform": {
1384
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/transform"
1385
+ },
1386
+ "forEach": {
1387
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/forEach"
1388
+ },
1389
+ "timeout": {
1390
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/timeout"
1391
+ },
1392
+ "retry": {
1393
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/retry"
1394
+ },
1395
+ "cache": {
1396
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/cache"
1397
+ },
1398
+ "onError": {
1399
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/onError"
1400
+ },
1401
+ "omitEmpty": {
1402
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/omitEmpty"
1403
+ },
1404
+ "connection": {
1405
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/connection"
1406
+ },
1407
+ "url": {
1408
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/url"
1409
+ },
1410
+ "path": {
1411
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/path"
1412
+ },
1413
+ "query": {
1414
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/query"
1415
+ },
1416
+ "headers": {
1417
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/headers"
1418
+ },
1419
+ "event": {
1420
+ "type": "string"
1421
+ },
1422
+ "merge": {
1423
+ "type": "string",
1424
+ "enum": [
1425
+ "replace",
1426
+ "append"
1427
+ ],
1428
+ "default": "replace"
1429
+ },
1430
+ "keep": {
1431
+ "type": "integer",
1432
+ "minimum": 1
1433
+ },
1434
+ "reconnect": {
1435
+ "anyOf": [
1436
+ {
1437
+ "type": "boolean"
1438
+ },
1439
+ {
1440
+ "type": "object",
1441
+ "properties": {
1442
+ "maxDelay": {
1443
+ "$ref": "#/properties/spec/properties/display/properties/tv/properties/every"
1444
+ }
1445
+ },
1446
+ "additionalProperties": false
1447
+ }
1448
+ ]
1449
+ }
1450
+ },
1451
+ "required": [
1452
+ "type"
1453
+ ],
1454
+ "additionalProperties": false
1455
+ },
1456
+ {
1457
+ "type": "object",
1458
+ "properties": {
1459
+ "type": {
1460
+ "type": "string",
1461
+ "const": "websocket"
1462
+ },
1463
+ "description": {
1464
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/description"
1465
+ },
1466
+ "load": {
1467
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/load"
1468
+ },
1469
+ "refresh": {
1470
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/refresh"
1471
+ },
1472
+ "transform": {
1473
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/transform"
1474
+ },
1475
+ "forEach": {
1476
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/forEach"
1477
+ },
1478
+ "timeout": {
1479
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/timeout"
1480
+ },
1481
+ "retry": {
1482
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/retry"
1483
+ },
1484
+ "cache": {
1485
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/cache"
1486
+ },
1487
+ "onError": {
1488
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/onError"
1489
+ },
1490
+ "omitEmpty": {
1491
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/omitEmpty"
1492
+ },
1493
+ "connection": {
1494
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/connection"
1495
+ },
1496
+ "url": {
1497
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/url"
1498
+ },
1499
+ "path": {
1500
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/path"
1501
+ },
1502
+ "query": {
1503
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/query"
1504
+ },
1505
+ "headers": {
1506
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/headers"
1507
+ },
1508
+ "send": {
1509
+ "$ref": "#/definitions/JsonValue"
1510
+ },
1511
+ "merge": {
1512
+ "type": "string",
1513
+ "enum": [
1514
+ "replace",
1515
+ "append"
1516
+ ],
1517
+ "default": "replace"
1518
+ },
1519
+ "keep": {
1520
+ "type": "integer",
1521
+ "minimum": 1
1522
+ },
1523
+ "reconnect": {
1524
+ "anyOf": [
1525
+ {
1526
+ "type": "boolean"
1527
+ },
1528
+ {
1529
+ "type": "object",
1530
+ "properties": {
1531
+ "maxDelay": {
1532
+ "$ref": "#/properties/spec/properties/display/properties/tv/properties/every"
1533
+ }
1534
+ },
1535
+ "additionalProperties": false
1536
+ }
1537
+ ]
1538
+ }
1539
+ },
1540
+ "required": [
1541
+ "type"
1542
+ ],
1543
+ "additionalProperties": false
1544
+ },
1545
+ {
1546
+ "type": "object",
1547
+ "properties": {
1548
+ "type": {
1549
+ "type": "string",
1550
+ "const": "static"
1551
+ },
1552
+ "description": {
1553
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/description"
1554
+ },
1555
+ "load": {
1556
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/load"
1557
+ },
1558
+ "refresh": {
1559
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/refresh"
1560
+ },
1561
+ "transform": {
1562
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/transform"
1563
+ },
1564
+ "forEach": {
1565
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/forEach"
1566
+ },
1567
+ "timeout": {
1568
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/timeout"
1569
+ },
1570
+ "retry": {
1571
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/retry"
1572
+ },
1573
+ "cache": {
1574
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/cache"
1575
+ },
1576
+ "onError": {
1577
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/onError"
1578
+ },
1579
+ "omitEmpty": {
1580
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/omitEmpty"
1581
+ },
1582
+ "data": {
1583
+ "$ref": "#/definitions/JsonValue"
1584
+ }
1585
+ },
1586
+ "required": [
1587
+ "type",
1588
+ "data"
1589
+ ],
1590
+ "additionalProperties": false
1591
+ },
1592
+ {
1593
+ "type": "object",
1594
+ "properties": {
1595
+ "type": {
1596
+ "type": "string",
1597
+ "const": "host"
1598
+ },
1599
+ "description": {
1600
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/description"
1601
+ },
1602
+ "load": {
1603
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/load"
1604
+ },
1605
+ "refresh": {
1606
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/refresh"
1607
+ },
1608
+ "transform": {
1609
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/transform"
1610
+ },
1611
+ "forEach": {
1612
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/forEach"
1613
+ },
1614
+ "timeout": {
1615
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/timeout"
1616
+ },
1617
+ "retry": {
1618
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/retry"
1619
+ },
1620
+ "cache": {
1621
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/cache"
1622
+ },
1623
+ "onError": {
1624
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/onError"
1625
+ },
1626
+ "omitEmpty": {
1627
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/omitEmpty"
1628
+ },
1629
+ "key": {
1630
+ "type": "string",
1631
+ "minLength": 1
1632
+ }
1633
+ },
1634
+ "required": [
1635
+ "type",
1636
+ "key"
1637
+ ],
1638
+ "additionalProperties": false
1639
+ },
1640
+ {
1641
+ "type": "object",
1642
+ "properties": {
1643
+ "description": {
1644
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/description"
1645
+ },
1646
+ "load": {
1647
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/load"
1648
+ },
1649
+ "refresh": {
1650
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/refresh"
1651
+ },
1652
+ "transform": {
1653
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/transform"
1654
+ },
1655
+ "forEach": {
1656
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/forEach"
1657
+ },
1658
+ "timeout": {
1659
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/timeout"
1660
+ },
1661
+ "retry": {
1662
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/retry"
1663
+ },
1664
+ "cache": {
1665
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/cache"
1666
+ },
1667
+ "onError": {
1668
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/onError"
1669
+ },
1670
+ "omitEmpty": {
1671
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0/properties/omitEmpty"
1672
+ },
1673
+ "from": {
1674
+ "$ref": "#/properties/metadata/properties/key"
1675
+ }
1676
+ },
1677
+ "required": [
1678
+ "from"
1679
+ ],
1680
+ "additionalProperties": false
1681
+ },
1682
+ {
1683
+ "type": "object",
1684
+ "additionalProperties": {}
1685
+ }
1686
+ ]
1687
+ },
1688
+ "propertyNames": {
1689
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
1690
+ }
1691
+ },
1692
+ "on": {
1693
+ "type": "object",
1694
+ "additionalProperties": {
1695
+ "anyOf": [
1696
+ {
1697
+ "anyOf": [
1698
+ {
1699
+ "type": "array",
1700
+ "items": {
1701
+ "anyOf": [
1702
+ {
1703
+ "$ref": "#/properties/metadata/properties/key"
1704
+ },
1705
+ {
1706
+ "anyOf": [
1707
+ {
1708
+ "type": "object",
1709
+ "properties": {
1710
+ "do": {
1711
+ "type": "string",
1712
+ "const": "navigate"
1713
+ },
1714
+ "when": {
1715
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/visibleWhen"
1716
+ },
1717
+ "to": {
1718
+ "$ref": "#/properties/spec/properties/display/properties/title"
1719
+ },
1720
+ "query": {
1721
+ "type": "object",
1722
+ "additionalProperties": {
1723
+ "$ref": "#/definitions/JsonValue"
1724
+ }
1725
+ },
1726
+ "newTab": {
1727
+ "type": "boolean"
1728
+ }
1729
+ },
1730
+ "required": [
1731
+ "do",
1732
+ "to"
1733
+ ],
1734
+ "additionalProperties": false
1735
+ },
1736
+ {
1737
+ "type": "object",
1738
+ "properties": {
1739
+ "do": {
1740
+ "type": "string",
1741
+ "const": "openDashboard"
1742
+ },
1743
+ "when": {
1744
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/0/properties/when"
1745
+ },
1746
+ "dashboard": {
1747
+ "$ref": "#/properties/spec/properties/display/properties/title"
1748
+ },
1749
+ "filters": {
1750
+ "type": "object",
1751
+ "additionalProperties": {
1752
+ "$ref": "#/definitions/JsonValue"
1753
+ }
1754
+ },
1755
+ "newTab": {
1756
+ "type": "boolean"
1757
+ }
1758
+ },
1759
+ "required": [
1760
+ "do",
1761
+ "dashboard"
1762
+ ],
1763
+ "additionalProperties": false
1764
+ },
1765
+ {
1766
+ "type": "object",
1767
+ "properties": {
1768
+ "do": {
1769
+ "type": "string",
1770
+ "const": "emit"
1771
+ },
1772
+ "when": {
1773
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/0/properties/when"
1774
+ },
1775
+ "event": {
1776
+ "type": "string",
1777
+ "minLength": 1
1778
+ },
1779
+ "payload": {
1780
+ "$ref": "#/definitions/JsonValue"
1781
+ }
1782
+ },
1783
+ "required": [
1784
+ "do",
1785
+ "event"
1786
+ ],
1787
+ "additionalProperties": false
1788
+ },
1789
+ {
1790
+ "type": "object",
1791
+ "properties": {
1792
+ "do": {
1793
+ "type": "string",
1794
+ "const": "fetch"
1795
+ },
1796
+ "when": {
1797
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/0/properties/when"
1798
+ },
1799
+ "source": {
1800
+ "$ref": "#/properties/metadata/properties/key"
1801
+ },
1802
+ "params": {
1803
+ "type": "object",
1804
+ "additionalProperties": {
1805
+ "$ref": "#/definitions/JsonValue"
1806
+ }
1807
+ }
1808
+ },
1809
+ "required": [
1810
+ "do",
1811
+ "source"
1812
+ ],
1813
+ "additionalProperties": false
1814
+ },
1815
+ {
1816
+ "type": "object",
1817
+ "properties": {
1818
+ "do": {
1819
+ "type": "string",
1820
+ "const": "refresh"
1821
+ },
1822
+ "when": {
1823
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/0/properties/when"
1824
+ },
1825
+ "source": {
1826
+ "anyOf": [
1827
+ {
1828
+ "$ref": "#/properties/metadata/properties/key"
1829
+ },
1830
+ {
1831
+ "type": "array",
1832
+ "items": {
1833
+ "$ref": "#/properties/metadata/properties/key"
1834
+ },
1835
+ "minItems": 1
1836
+ }
1837
+ ]
1838
+ }
1839
+ },
1840
+ "required": [
1841
+ "do"
1842
+ ],
1843
+ "additionalProperties": false
1844
+ },
1845
+ {
1846
+ "type": "object",
1847
+ "properties": {
1848
+ "do": {
1849
+ "type": "string",
1850
+ "const": "http"
1851
+ },
1852
+ "when": {
1853
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/0/properties/when"
1854
+ },
1855
+ "connection": {
1856
+ "$ref": "#/properties/metadata/properties/key"
1857
+ },
1858
+ "url": {
1859
+ "$ref": "#/properties/spec/properties/display/properties/title"
1860
+ },
1861
+ "path": {
1862
+ "$ref": "#/properties/spec/properties/display/properties/title"
1863
+ },
1864
+ "method": {
1865
+ "$ref": "#/properties/spec/properties/connections/additionalProperties/properties/auth/anyOf/2/properties/refresh/anyOf/1/properties/method",
1866
+ "default": "POST"
1867
+ },
1868
+ "query": {
1869
+ "type": "object",
1870
+ "additionalProperties": {
1871
+ "$ref": "#/definitions/JsonValue"
1872
+ }
1873
+ },
1874
+ "body": {
1875
+ "$ref": "#/definitions/JsonValue"
1876
+ },
1877
+ "saveTo": {
1878
+ "type": "string"
1879
+ }
1880
+ },
1881
+ "required": [
1882
+ "do"
1883
+ ],
1884
+ "additionalProperties": false
1885
+ },
1886
+ {
1887
+ "type": "object",
1888
+ "properties": {
1889
+ "do": {
1890
+ "type": "string",
1891
+ "const": "export"
1892
+ },
1893
+ "when": {
1894
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/0/properties/when"
1895
+ },
1896
+ "panel": {
1897
+ "$ref": "#/properties/metadata/properties/key"
1898
+ },
1899
+ "format": {
1900
+ "type": "string",
1901
+ "enum": [
1902
+ "csv",
1903
+ "xlsx"
1904
+ ]
1905
+ },
1906
+ "filename": {
1907
+ "$ref": "#/properties/spec/properties/display/properties/title"
1908
+ }
1909
+ },
1910
+ "required": [
1911
+ "do",
1912
+ "panel",
1913
+ "format"
1914
+ ],
1915
+ "additionalProperties": false
1916
+ },
1917
+ {
1918
+ "type": "object",
1919
+ "properties": {
1920
+ "do": {
1921
+ "type": "string",
1922
+ "const": "download"
1923
+ },
1924
+ "when": {
1925
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/0/properties/when"
1926
+ },
1927
+ "connection": {
1928
+ "$ref": "#/properties/metadata/properties/key"
1929
+ },
1930
+ "url": {
1931
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/5/properties/url"
1932
+ },
1933
+ "path": {
1934
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/5/properties/path"
1935
+ },
1936
+ "method": {
1937
+ "$ref": "#/properties/spec/properties/connections/additionalProperties/properties/auth/anyOf/2/properties/refresh/anyOf/1/properties/method",
1938
+ "default": "GET"
1939
+ },
1940
+ "query": {
1941
+ "type": "object",
1942
+ "additionalProperties": {
1943
+ "$ref": "#/definitions/JsonValue"
1944
+ }
1945
+ },
1946
+ "body": {
1947
+ "$ref": "#/definitions/JsonValue"
1948
+ },
1949
+ "filename": {
1950
+ "$ref": "#/properties/spec/properties/display/properties/title"
1951
+ }
1952
+ },
1953
+ "required": [
1954
+ "do"
1955
+ ],
1956
+ "additionalProperties": false
1957
+ },
1958
+ {
1959
+ "type": "object",
1960
+ "properties": {
1961
+ "do": {
1962
+ "type": "string",
1963
+ "const": "setState"
1964
+ },
1965
+ "when": {
1966
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/0/properties/when"
1967
+ },
1968
+ "path": {
1969
+ "type": "string",
1970
+ "minLength": 1
1971
+ },
1972
+ "value": {
1973
+ "$ref": "#/definitions/JsonValue"
1974
+ },
1975
+ "merge": {
1976
+ "type": "boolean"
1977
+ }
1978
+ },
1979
+ "required": [
1980
+ "do",
1981
+ "path",
1982
+ "value"
1983
+ ],
1984
+ "additionalProperties": false
1985
+ },
1986
+ {
1987
+ "type": "object",
1988
+ "properties": {
1989
+ "do": {
1990
+ "type": "string",
1991
+ "const": "setVariable"
1992
+ },
1993
+ "when": {
1994
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/0/properties/when"
1995
+ },
1996
+ "name": {
1997
+ "$ref": "#/properties/metadata/properties/key"
1998
+ },
1999
+ "value": {
2000
+ "$ref": "#/definitions/JsonValue"
2001
+ }
2002
+ },
2003
+ "required": [
2004
+ "do",
2005
+ "name",
2006
+ "value"
2007
+ ],
2008
+ "additionalProperties": false
2009
+ },
2010
+ {
2011
+ "type": "object",
2012
+ "properties": {
2013
+ "do": {
2014
+ "type": "string",
2015
+ "const": "setSelection"
2016
+ },
2017
+ "when": {
2018
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/0/properties/when"
2019
+ },
2020
+ "panel": {
2021
+ "$ref": "#/properties/metadata/properties/key"
2022
+ },
2023
+ "value": {
2024
+ "$ref": "#/definitions/JsonValue"
2025
+ }
2026
+ },
2027
+ "required": [
2028
+ "do"
2029
+ ],
2030
+ "additionalProperties": false
2031
+ },
2032
+ {
2033
+ "type": "object",
2034
+ "properties": {
2035
+ "do": {
2036
+ "type": "string",
2037
+ "const": "clearSelection"
2038
+ },
2039
+ "when": {
2040
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/0/properties/when"
2041
+ },
2042
+ "panel": {
2043
+ "$ref": "#/properties/metadata/properties/key"
2044
+ }
2045
+ },
2046
+ "required": [
2047
+ "do"
2048
+ ],
2049
+ "additionalProperties": false
2050
+ },
2051
+ {
2052
+ "type": "object",
2053
+ "properties": {
2054
+ "do": {
2055
+ "type": "string",
2056
+ "const": "show"
2057
+ },
2058
+ "when": {
2059
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/0/properties/when"
2060
+ },
2061
+ "panel": {
2062
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/4/properties/source"
2063
+ }
2064
+ },
2065
+ "required": [
2066
+ "do",
2067
+ "panel"
2068
+ ],
2069
+ "additionalProperties": false
2070
+ },
2071
+ {
2072
+ "type": "object",
2073
+ "properties": {
2074
+ "do": {
2075
+ "type": "string",
2076
+ "const": "hide"
2077
+ },
2078
+ "when": {
2079
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/0/properties/when"
2080
+ },
2081
+ "panel": {
2082
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/4/properties/source"
2083
+ }
2084
+ },
2085
+ "required": [
2086
+ "do",
2087
+ "panel"
2088
+ ],
2089
+ "additionalProperties": false
2090
+ },
2091
+ {
2092
+ "type": "object",
2093
+ "properties": {
2094
+ "do": {
2095
+ "type": "string",
2096
+ "const": "toggle"
2097
+ },
2098
+ "when": {
2099
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/0/properties/when"
2100
+ },
2101
+ "panel": {
2102
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/4/properties/source"
2103
+ }
2104
+ },
2105
+ "required": [
2106
+ "do",
2107
+ "panel"
2108
+ ],
2109
+ "additionalProperties": false
2110
+ },
2111
+ {
2112
+ "type": "object",
2113
+ "properties": {
2114
+ "do": {
2115
+ "type": "string",
2116
+ "const": "setView"
2117
+ },
2118
+ "when": {
2119
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/0/properties/when"
2120
+ },
2121
+ "view": {
2122
+ "$ref": "#/properties/metadata/properties/key"
2123
+ }
2124
+ },
2125
+ "required": [
2126
+ "do",
2127
+ "view"
2128
+ ],
2129
+ "additionalProperties": false
2130
+ },
2131
+ {
2132
+ "type": "object",
2133
+ "properties": {
2134
+ "do": {
2135
+ "type": "string",
2136
+ "const": "openModal"
2137
+ },
2138
+ "when": {
2139
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/0/properties/when"
2140
+ },
2141
+ "modal": {
2142
+ "$ref": "#/properties/metadata/properties/key"
2143
+ },
2144
+ "args": {
2145
+ "type": "object",
2146
+ "additionalProperties": {
2147
+ "$ref": "#/definitions/JsonValue"
2148
+ }
2149
+ }
2150
+ },
2151
+ "required": [
2152
+ "do",
2153
+ "modal"
2154
+ ],
2155
+ "additionalProperties": false
2156
+ },
2157
+ {
2158
+ "type": "object",
2159
+ "properties": {
2160
+ "do": {
2161
+ "type": "string",
2162
+ "const": "closeModal"
2163
+ },
2164
+ "when": {
2165
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/0/properties/when"
2166
+ }
2167
+ },
2168
+ "required": [
2169
+ "do"
2170
+ ],
2171
+ "additionalProperties": false
2172
+ },
2173
+ {
2174
+ "type": "object",
2175
+ "properties": {
2176
+ "do": {
2177
+ "type": "string",
2178
+ "const": "highlight"
2179
+ },
2180
+ "when": {
2181
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/0/properties/when"
2182
+ },
2183
+ "group": {
2184
+ "type": "string",
2185
+ "minLength": 1
2186
+ }
2187
+ },
2188
+ "required": [
2189
+ "do",
2190
+ "group"
2191
+ ],
2192
+ "additionalProperties": false
2193
+ },
2194
+ {
2195
+ "type": "object",
2196
+ "properties": {
2197
+ "do": {
2198
+ "type": "string",
2199
+ "const": "toggleSeries"
2200
+ },
2201
+ "when": {
2202
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/0/properties/when"
2203
+ },
2204
+ "panel": {
2205
+ "$ref": "#/properties/metadata/properties/key"
2206
+ },
2207
+ "series": {
2208
+ "$ref": "#/properties/spec/properties/display/properties/title"
2209
+ }
2210
+ },
2211
+ "required": [
2212
+ "do"
2213
+ ],
2214
+ "additionalProperties": false
2215
+ },
2216
+ {
2217
+ "type": "object",
2218
+ "properties": {
2219
+ "do": {
2220
+ "type": "string",
2221
+ "const": "fullscreen"
2222
+ },
2223
+ "when": {
2224
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/0/properties/when"
2225
+ },
2226
+ "panel": {
2227
+ "$ref": "#/properties/metadata/properties/key"
2228
+ }
2229
+ },
2230
+ "required": [
2231
+ "do"
2232
+ ],
2233
+ "additionalProperties": false
2234
+ },
2235
+ {
2236
+ "type": "object",
2237
+ "properties": {
2238
+ "do": {
2239
+ "type": "string",
2240
+ "const": "drillDown"
2241
+ },
2242
+ "when": {
2243
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/0/properties/when"
2244
+ },
2245
+ "panel": {
2246
+ "$ref": "#/properties/metadata/properties/key"
2247
+ }
2248
+ },
2249
+ "required": [
2250
+ "do"
2251
+ ],
2252
+ "additionalProperties": false
2253
+ },
2254
+ {
2255
+ "type": "object",
2256
+ "properties": {
2257
+ "do": {
2258
+ "type": "string",
2259
+ "const": "drillUp"
2260
+ },
2261
+ "when": {
2262
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/0/properties/when"
2263
+ },
2264
+ "panel": {
2265
+ "$ref": "#/properties/metadata/properties/key"
2266
+ }
2267
+ },
2268
+ "required": [
2269
+ "do"
2270
+ ],
2271
+ "additionalProperties": false
2272
+ },
2273
+ {
2274
+ "type": "object",
2275
+ "properties": {
2276
+ "do": {
2277
+ "type": "string",
2278
+ "const": "drillReset"
2279
+ },
2280
+ "when": {
2281
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/0/properties/when"
2282
+ },
2283
+ "panel": {
2284
+ "$ref": "#/properties/metadata/properties/key"
2285
+ }
2286
+ },
2287
+ "required": [
2288
+ "do"
2289
+ ],
2290
+ "additionalProperties": false
2291
+ },
2292
+ {
2293
+ "type": "object",
2294
+ "properties": {
2295
+ "do": {
2296
+ "type": "string",
2297
+ "const": "sequence"
2298
+ },
2299
+ "when": {
2300
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/0/properties/when"
2301
+ },
2302
+ "steps": {
2303
+ "type": "array",
2304
+ "items": {
2305
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items"
2306
+ },
2307
+ "minItems": 1
2308
+ }
2309
+ },
2310
+ "required": [
2311
+ "do",
2312
+ "steps"
2313
+ ],
2314
+ "additionalProperties": false
2315
+ },
2316
+ {
2317
+ "type": "object",
2318
+ "properties": {
2319
+ "do": {
2320
+ "type": "string",
2321
+ "const": "toast"
2322
+ },
2323
+ "when": {
2324
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/0/properties/when"
2325
+ },
2326
+ "message": {
2327
+ "$ref": "#/properties/spec/properties/display/properties/title"
2328
+ },
2329
+ "tone": {
2330
+ "type": "string",
2331
+ "enum": [
2332
+ "good",
2333
+ "warn",
2334
+ "bad",
2335
+ "neutral",
2336
+ "info"
2337
+ ]
2338
+ }
2339
+ },
2340
+ "required": [
2341
+ "do",
2342
+ "message"
2343
+ ],
2344
+ "additionalProperties": false
2345
+ },
2346
+ {
2347
+ "type": "object",
2348
+ "properties": {
2349
+ "do": {
2350
+ "type": "string",
2351
+ "const": "call"
2352
+ },
2353
+ "when": {
2354
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/0/properties/when"
2355
+ },
2356
+ "fn": {
2357
+ "type": "string",
2358
+ "minLength": 1
2359
+ },
2360
+ "args": {
2361
+ "$ref": "#/definitions/JsonValue"
2362
+ }
2363
+ },
2364
+ "required": [
2365
+ "do",
2366
+ "fn"
2367
+ ],
2368
+ "additionalProperties": false
2369
+ },
2370
+ {
2371
+ "type": "object",
2372
+ "properties": {
2373
+ "do": {
2374
+ "type": "string",
2375
+ "const": "script"
2376
+ },
2377
+ "when": {
2378
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/0/properties/when"
2379
+ },
2380
+ "code": {
2381
+ "type": "string"
2382
+ }
2383
+ },
2384
+ "required": [
2385
+ "do",
2386
+ "code"
2387
+ ],
2388
+ "additionalProperties": false
2389
+ }
2390
+ ]
2391
+ }
2392
+ ]
2393
+ },
2394
+ "minItems": 1
2395
+ },
2396
+ {
2397
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/27/properties/code"
2398
+ }
2399
+ ]
2400
+ },
2401
+ {
2402
+ "type": "object",
2403
+ "properties": {
2404
+ "run": {
2405
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0"
2406
+ },
2407
+ "mode": {
2408
+ "type": "string",
2409
+ "enum": [
2410
+ "latest",
2411
+ "parallel",
2412
+ "queue"
2413
+ ]
2414
+ }
2415
+ },
2416
+ "required": [
2417
+ "run",
2418
+ "mode"
2419
+ ],
2420
+ "additionalProperties": false
2421
+ },
2422
+ {
2423
+ "type": "object",
2424
+ "additionalProperties": {
2425
+ "anyOf": [
2426
+ {
2427
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0"
2428
+ },
2429
+ {
2430
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/1"
2431
+ }
2432
+ ]
2433
+ }
2434
+ }
2435
+ ]
2436
+ }
2437
+ },
2438
+ "actions": {
2439
+ "type": "object",
2440
+ "additionalProperties": {
2441
+ "anyOf": [
2442
+ {
2443
+ "type": "string"
2444
+ },
2445
+ {
2446
+ "anyOf": [
2447
+ {
2448
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/0"
2449
+ },
2450
+ {
2451
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/1"
2452
+ },
2453
+ {
2454
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/2"
2455
+ },
2456
+ {
2457
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/3"
2458
+ },
2459
+ {
2460
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/4"
2461
+ },
2462
+ {
2463
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/5"
2464
+ },
2465
+ {
2466
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/6"
2467
+ },
2468
+ {
2469
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/7"
2470
+ },
2471
+ {
2472
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/8"
2473
+ },
2474
+ {
2475
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/9"
2476
+ },
2477
+ {
2478
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/10"
2479
+ },
2480
+ {
2481
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/11"
2482
+ },
2483
+ {
2484
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/12"
2485
+ },
2486
+ {
2487
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/13"
2488
+ },
2489
+ {
2490
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/14"
2491
+ },
2492
+ {
2493
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/15"
2494
+ },
2495
+ {
2496
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/16"
2497
+ },
2498
+ {
2499
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/17"
2500
+ },
2501
+ {
2502
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/18"
2503
+ },
2504
+ {
2505
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/19"
2506
+ },
2507
+ {
2508
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/20"
2509
+ },
2510
+ {
2511
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/21"
2512
+ },
2513
+ {
2514
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/22"
2515
+ },
2516
+ {
2517
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/23"
2518
+ },
2519
+ {
2520
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/24"
2521
+ },
2522
+ {
2523
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/25"
2524
+ },
2525
+ {
2526
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/26"
2527
+ },
2528
+ {
2529
+ "$ref": "#/properties/spec/properties/on/additionalProperties/anyOf/0/anyOf/0/items/anyOf/1/anyOf/27"
2530
+ }
2531
+ ]
2532
+ }
2533
+ ]
2534
+ },
2535
+ "propertyNames": {
2536
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
2537
+ }
2538
+ },
2539
+ "panels": {
2540
+ "type": "object",
2541
+ "additionalProperties": {
2542
+ "type": "object",
2543
+ "properties": {
2544
+ "kind": {
2545
+ "type": "string",
2546
+ "pattern": "^[A-Za-z][A-Za-z0-9]*(\\.[A-Za-z][A-Za-z0-9]*)?$"
2547
+ },
2548
+ "version": {
2549
+ "type": "integer",
2550
+ "minimum": 1,
2551
+ "default": 1
2552
+ },
2553
+ "spec": {
2554
+ "type": "object",
2555
+ "additionalProperties": {},
2556
+ "default": {}
2557
+ },
2558
+ "on": {
2559
+ "$ref": "#/properties/spec/properties/on"
2560
+ },
2561
+ "drill": {
2562
+ "type": "object",
2563
+ "properties": {
2564
+ "levels": {
2565
+ "type": "array",
2566
+ "items": {
2567
+ "type": "object",
2568
+ "properties": {
2569
+ "name": {
2570
+ "$ref": "#/properties/metadata/properties/key"
2571
+ },
2572
+ "label": {
2573
+ "$ref": "#/properties/spec/properties/display/properties/title"
2574
+ },
2575
+ "x": {
2576
+ "type": "string"
2577
+ },
2578
+ "query": {
2579
+ "type": "object",
2580
+ "additionalProperties": {
2581
+ "$ref": "#/definitions/JsonValue"
2582
+ }
2583
+ },
2584
+ "source": {
2585
+ "$ref": "#/properties/metadata/properties/key"
2586
+ },
2587
+ "do": {
2588
+ "type": "string"
2589
+ }
2590
+ },
2591
+ "required": [
2592
+ "name"
2593
+ ],
2594
+ "additionalProperties": true
2595
+ },
2596
+ "minItems": 1
2597
+ }
2598
+ },
2599
+ "required": [
2600
+ "levels"
2601
+ ],
2602
+ "additionalProperties": false
2603
+ },
2604
+ "visibleWhen": {
2605
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0/properties/visibleWhen"
2606
+ },
2607
+ "style": {
2608
+ "type": "object",
2609
+ "properties": {
2610
+ "tone": {
2611
+ "type": "string",
2612
+ "enum": [
2613
+ "default",
2614
+ "subtle",
2615
+ "accent",
2616
+ "plain"
2617
+ ]
2618
+ },
2619
+ "padding": {
2620
+ "anyOf": [
2621
+ {
2622
+ "type": "string",
2623
+ "enum": [
2624
+ "none",
2625
+ "compact",
2626
+ "normal",
2627
+ "roomy"
2628
+ ]
2629
+ },
2630
+ {
2631
+ "type": "integer",
2632
+ "minimum": 0,
2633
+ "maximum": 64
2634
+ }
2635
+ ]
2636
+ },
2637
+ "hideHeader": {
2638
+ "type": "boolean"
2639
+ },
2640
+ "minHeight": {
2641
+ "type": "integer",
2642
+ "minimum": 0
2643
+ },
2644
+ "background": {
2645
+ "type": "string"
2646
+ },
2647
+ "borderColor": {
2648
+ "type": "string"
2649
+ },
2650
+ "borderWidth": {
2651
+ "type": "integer",
2652
+ "minimum": 0,
2653
+ "maximum": 8
2654
+ },
2655
+ "radius": {
2656
+ "type": "integer",
2657
+ "minimum": 0,
2658
+ "maximum": 40
2659
+ },
2660
+ "shadow": {
2661
+ "type": "string",
2662
+ "enum": [
2663
+ "none",
2664
+ "sm",
2665
+ "md",
2666
+ "lg"
2667
+ ]
2668
+ },
2669
+ "flex": {
2670
+ "type": "string"
2671
+ },
2672
+ "minWidth": {
2673
+ "type": [
2674
+ "number",
2675
+ "string"
2676
+ ]
2677
+ },
2678
+ "maxWidth": {
2679
+ "type": [
2680
+ "number",
2681
+ "string"
2682
+ ]
2683
+ },
2684
+ "align": {
2685
+ "type": "string",
2686
+ "enum": [
2687
+ "start",
2688
+ "center",
2689
+ "end",
2690
+ "stretch"
2691
+ ]
2692
+ }
2693
+ },
2694
+ "additionalProperties": false
2695
+ },
2696
+ "watch": {
2697
+ "type": "array",
2698
+ "items": {
2699
+ "type": "object",
2700
+ "properties": {
2701
+ "path": {
2702
+ "type": "string",
2703
+ "minLength": 1
2704
+ },
2705
+ "do": {
2706
+ "$ref": "#/properties/spec/properties/on/additionalProperties"
2707
+ }
2708
+ },
2709
+ "required": [
2710
+ "path",
2711
+ "do"
2712
+ ],
2713
+ "additionalProperties": false
2714
+ }
2715
+ },
2716
+ "slots": {
2717
+ "type": "object",
2718
+ "additionalProperties": {
2719
+ "type": "array",
2720
+ "items": {
2721
+ "$ref": "#/properties/metadata/properties/key"
2722
+ }
2723
+ },
2724
+ "propertyNames": {
2725
+ "pattern": "^[A-Za-z][\\w-]*$"
2726
+ }
2727
+ },
2728
+ "controls": {
2729
+ "type": "array",
2730
+ "items": {
2731
+ "anyOf": [
2732
+ {
2733
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/0"
2734
+ },
2735
+ {
2736
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/1"
2737
+ },
2738
+ {
2739
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/2"
2740
+ },
2741
+ {
2742
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/3"
2743
+ },
2744
+ {
2745
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/4"
2746
+ },
2747
+ {
2748
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/5"
2749
+ },
2750
+ {
2751
+ "$ref": "#/properties/spec/properties/variables/items/anyOf/6"
2752
+ }
2753
+ ]
2754
+ }
2755
+ },
2756
+ "messages": {
2757
+ "type": "object",
2758
+ "properties": {
2759
+ "empty": {
2760
+ "$ref": "#/properties/spec/properties/display/properties/title"
2761
+ },
2762
+ "error": {
2763
+ "$ref": "#/properties/spec/properties/display/properties/title"
2764
+ },
2765
+ "loading": {
2766
+ "$ref": "#/properties/spec/properties/display/properties/title"
2767
+ }
2768
+ },
2769
+ "additionalProperties": false
2770
+ },
2771
+ "description": {
2772
+ "type": "string"
2773
+ }
2774
+ },
2775
+ "required": [
2776
+ "kind"
2777
+ ],
2778
+ "additionalProperties": false
2779
+ },
2780
+ "propertyNames": {
2781
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
2782
+ }
2783
+ },
2784
+ "templates": {
2785
+ "type": "object",
2786
+ "additionalProperties": {
2787
+ "type": "object",
2788
+ "properties": {
2789
+ "label": {
2790
+ "type": "string"
2791
+ },
2792
+ "root": {
2793
+ "$ref": "#/properties/metadata/properties/key"
2794
+ },
2795
+ "nodes": {
2796
+ "type": "object",
2797
+ "additionalProperties": {
2798
+ "$ref": "#/properties/spec/properties/panels/additionalProperties"
2799
+ },
2800
+ "propertyNames": {
2801
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
2802
+ }
2803
+ }
2804
+ },
2805
+ "required": [
2806
+ "root",
2807
+ "nodes"
2808
+ ],
2809
+ "additionalProperties": false
2810
+ },
2811
+ "propertyNames": {
2812
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
2813
+ }
2814
+ },
2815
+ "modals": {
2816
+ "type": "object",
2817
+ "additionalProperties": {
2818
+ "type": "object",
2819
+ "properties": {
2820
+ "title": {
2821
+ "$ref": "#/properties/spec/properties/display/properties/title"
2822
+ },
2823
+ "size": {
2824
+ "type": "string",
2825
+ "enum": [
2826
+ "sm",
2827
+ "md",
2828
+ "lg",
2829
+ "xl",
2830
+ "full"
2831
+ ],
2832
+ "default": "md"
2833
+ },
2834
+ "presentation": {
2835
+ "type": "string",
2836
+ "enum": [
2837
+ "modal",
2838
+ "drawer"
2839
+ ],
2840
+ "default": "modal"
2841
+ },
2842
+ "open": {
2843
+ "$ref": "#/properties/spec/properties/display/properties/title"
2844
+ },
2845
+ "datasources": {
2846
+ "type": "object",
2847
+ "additionalProperties": {
2848
+ "anyOf": [
2849
+ {
2850
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/0"
2851
+ },
2852
+ {
2853
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/1"
2854
+ },
2855
+ {
2856
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/2"
2857
+ },
2858
+ {
2859
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/3"
2860
+ },
2861
+ {
2862
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/4"
2863
+ },
2864
+ {
2865
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/5"
2866
+ },
2867
+ {
2868
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/6"
2869
+ },
2870
+ {
2871
+ "$ref": "#/properties/spec/properties/datasources/additionalProperties/anyOf/7"
2872
+ }
2873
+ ]
2874
+ },
2875
+ "propertyNames": {
2876
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
2877
+ }
2878
+ },
2879
+ "panels": {
2880
+ "type": "object",
2881
+ "additionalProperties": {
2882
+ "$ref": "#/properties/spec/properties/panels/additionalProperties"
2883
+ },
2884
+ "propertyNames": {
2885
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
2886
+ }
2887
+ },
2888
+ "layout": {
2889
+ "type": "array",
2890
+ "items": {
2891
+ "type": "object",
2892
+ "properties": {
2893
+ "panel": {
2894
+ "$ref": "#/properties/metadata/properties/key"
2895
+ },
2896
+ "x": {
2897
+ "type": "integer",
2898
+ "minimum": 0
2899
+ },
2900
+ "y": {
2901
+ "type": "integer",
2902
+ "minimum": 0
2903
+ },
2904
+ "w": {
2905
+ "type": "integer",
2906
+ "minimum": 1
2907
+ },
2908
+ "h": {
2909
+ "type": "integer",
2910
+ "minimum": 1
2911
+ },
2912
+ "minW": {
2913
+ "type": "integer",
2914
+ "minimum": 1
2915
+ },
2916
+ "minH": {
2917
+ "type": "integer",
2918
+ "minimum": 1
2919
+ }
2920
+ },
2921
+ "required": [
2922
+ "panel",
2923
+ "x",
2924
+ "y",
2925
+ "w",
2926
+ "h"
2927
+ ],
2928
+ "additionalProperties": false
2929
+ }
2930
+ },
2931
+ "on": {
2932
+ "$ref": "#/properties/spec/properties/on"
2933
+ }
2934
+ },
2935
+ "required": [
2936
+ "panels",
2937
+ "layout"
2938
+ ],
2939
+ "additionalProperties": false
2940
+ },
2941
+ "propertyNames": {
2942
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
2943
+ }
2944
+ },
2945
+ "layouts": {
2946
+ "type": "array",
2947
+ "items": {
2948
+ "type": "object",
2949
+ "properties": {
2950
+ "view": {
2951
+ "$ref": "#/properties/metadata/properties/key"
2952
+ },
2953
+ "breakpoint": {
2954
+ "type": "string",
2955
+ "enum": [
2956
+ "desktop",
2957
+ "tablet",
2958
+ "mobile",
2959
+ "tv"
2960
+ ],
2961
+ "default": "desktop"
2962
+ },
2963
+ "label": {
2964
+ "type": "string"
2965
+ },
2966
+ "items": {
2967
+ "type": "array",
2968
+ "items": {
2969
+ "$ref": "#/properties/spec/properties/modals/additionalProperties/properties/layout/items"
2970
+ }
2971
+ },
2972
+ "auto": {
2973
+ "type": "string",
2974
+ "enum": [
2975
+ "stack",
2976
+ "flow"
2977
+ ]
2978
+ }
2979
+ },
2980
+ "additionalProperties": false
2981
+ },
2982
+ "minItems": 1
2983
+ },
2984
+ "tour": {
2985
+ "type": "array",
2986
+ "items": {
2987
+ "type": "object",
2988
+ "properties": {
2989
+ "panel": {
2990
+ "$ref": "#/properties/metadata/properties/key"
2991
+ },
2992
+ "text": {
2993
+ "$ref": "#/properties/spec/properties/display/properties/title"
2994
+ },
2995
+ "title": {
2996
+ "$ref": "#/properties/spec/properties/display/properties/title"
2997
+ }
2998
+ },
2999
+ "required": [
3000
+ "text"
3001
+ ],
3002
+ "additionalProperties": false
3003
+ }
3004
+ },
3005
+ "requires": {
3006
+ "type": "object",
3007
+ "properties": {
3008
+ "renderer": {
3009
+ "type": "string",
3010
+ "minLength": 1
3011
+ }
3012
+ },
3013
+ "additionalProperties": false
3014
+ }
3015
+ },
3016
+ "required": [
3017
+ "panels",
3018
+ "layouts"
3019
+ ],
3020
+ "additionalProperties": false
3021
+ }
3022
+ },
3023
+ "required": [
3024
+ "apiVersion",
3025
+ "kind",
3026
+ "metadata",
3027
+ "spec"
3028
+ ],
3029
+ "additionalProperties": false,
3030
+ "definitions": {
3031
+ "JsonValue": {
3032
+ "anyOf": [
3033
+ {
3034
+ "type": "string"
3035
+ },
3036
+ {
3037
+ "type": "number"
3038
+ },
3039
+ {
3040
+ "type": "boolean"
3041
+ },
3042
+ {
3043
+ "type": "null"
3044
+ },
3045
+ {
3046
+ "type": "array",
3047
+ "items": {
3048
+ "$ref": "#/definitions/JsonValue"
3049
+ }
3050
+ },
3051
+ {
3052
+ "type": "object",
3053
+ "additionalProperties": {
3054
+ "$ref": "#/definitions/JsonValue"
3055
+ }
3056
+ }
3057
+ ]
3058
+ }
3059
+ }
3060
+ }