@asteby/metacore-genui 2.0.0 → 2.1.1

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,2766 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.asteby.dev/metacore/genui-v2.schema.json",
4
+ "title": "genui/v2",
5
+ "description": "Contrato declarativo de UI genui/v2 (ADR 0001 del SDK). Fuente única del contrato: de aquí salen los tipos TS; el kernel Go copia este archivo (packages/genui/conformance/README.md). Las reglas que el esquema no expresa (límites globales, unicidad de id, gramática de $ref, enlaces seguros, destino de open) viven en el validador.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "version",
10
+ "blocks"
11
+ ],
12
+ "properties": {
13
+ "version": {
14
+ "const": "genui/v2"
15
+ },
16
+ "title": {
17
+ "$ref": "#/$defs/label"
18
+ },
19
+ "i18n": {
20
+ "enum": [
21
+ "keys",
22
+ "literal"
23
+ ],
24
+ "default": "literal"
25
+ },
26
+ "data": {
27
+ "type": "object",
28
+ "maxProperties": 8,
29
+ "propertyNames": {
30
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
31
+ },
32
+ "additionalProperties": {
33
+ "$ref": "#/$defs/dataSource"
34
+ }
35
+ },
36
+ "state": {
37
+ "type": "object",
38
+ "maxProperties": 32,
39
+ "propertyNames": {
40
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
41
+ },
42
+ "additionalProperties": {
43
+ "$ref": "#/$defs/stateValue"
44
+ },
45
+ "description": "Estado local: escalares, listas de escalares y objetos de escalares o listas de escalares."
46
+ },
47
+ "overlays": {
48
+ "type": "object",
49
+ "maxProperties": 4,
50
+ "propertyNames": {
51
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
52
+ },
53
+ "additionalProperties": {
54
+ "$ref": "#/$defs/overlay"
55
+ }
56
+ },
57
+ "blocks": {
58
+ "type": "array",
59
+ "items": {
60
+ "$ref": "#/$defs/block"
61
+ },
62
+ "maxItems": 24,
63
+ "minItems": 1
64
+ }
65
+ },
66
+ "$defs": {
67
+ "tone": {
68
+ "enum": [
69
+ "default",
70
+ "muted",
71
+ "info",
72
+ "success",
73
+ "warning",
74
+ "danger"
75
+ ],
76
+ "description": "Vocabulario de tono compartido (Tone)."
77
+ },
78
+ "statFormat": {
79
+ "enum": [
80
+ "number",
81
+ "currency",
82
+ "percent",
83
+ "compact",
84
+ "date",
85
+ "datetime",
86
+ "relative_date"
87
+ ],
88
+ "description": "StatFormat (superconjunto de WidgetFormat)."
89
+ },
90
+ "fieldKind": {
91
+ "enum": [
92
+ "text",
93
+ "textarea",
94
+ "number",
95
+ "integer",
96
+ "email",
97
+ "url",
98
+ "phone",
99
+ "date",
100
+ "datetime",
101
+ "time",
102
+ "boolean",
103
+ "switch",
104
+ "select",
105
+ "multiselect",
106
+ "search"
107
+ ],
108
+ "description": "Tipos de campo (field.kind)."
109
+ },
110
+ "widgetSize": {
111
+ "enum": [
112
+ "sm",
113
+ "md",
114
+ "lg",
115
+ "full"
116
+ ]
117
+ },
118
+ "scalar": {
119
+ "type": [
120
+ "string",
121
+ "number",
122
+ "boolean",
123
+ "null"
124
+ ],
125
+ "maxLength": 2000,
126
+ "description": "Escalar; las cadenas, de hasta 2 000 puntos de código."
127
+ },
128
+ "id": {
129
+ "type": "string",
130
+ "pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[A-Za-z][A-Za-z0-9_-]{0,63}$",
131
+ "description": "Identificador único dentro del documento.",
132
+ "x-no-proto": true
133
+ },
134
+ "key": {
135
+ "type": "string",
136
+ "pattern": "^(?=.{1,64}$)(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$",
137
+ "x-no-proto": true,
138
+ "description": "Clave de campo, columna o entrada: segmentos no vacíos [A-Za-z_][A-Za-z0-9_]* separados por punto (sin \"a..b\" ni \"a.\"); ningún segmento puede ser __proto__, constructor ni prototype."
139
+ },
140
+ "bindingPath": {
141
+ "type": "string",
142
+ "pattern": "^(?!(?:.*\\.)?(?:__proto__|constructor|prototype)(?:\\.|$))(data|state|record|ctx)(\\.[A-Za-z_][A-Za-z0-9_]{0,63}|\\.[0-9]{1,3}){1,6}$",
143
+ "x-no-proto": true,
144
+ "description": "Ruta de vinculación; raíces cerradas data|state|record|ctx. Ningún segmento puede ser __proto__, constructor ni prototype."
145
+ },
146
+ "ref": {
147
+ "type": "object",
148
+ "additionalProperties": false,
149
+ "required": [
150
+ "$ref"
151
+ ],
152
+ "properties": {
153
+ "$ref": {
154
+ "$ref": "#/$defs/bindingPath"
155
+ }
156
+ },
157
+ "description": "Vinculación {\"$ref\": \"<raíz>.<ruta>\"} en posiciones de valor."
158
+ },
159
+ "tref": {
160
+ "type": "object",
161
+ "additionalProperties": false,
162
+ "required": [
163
+ "$t"
164
+ ],
165
+ "properties": {
166
+ "$t": {
167
+ "type": "string",
168
+ "pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[A-Za-z0-9_.:-]{1,128}$",
169
+ "x-no-proto": true
170
+ },
171
+ "args": {
172
+ "type": "object",
173
+ "maxProperties": 8,
174
+ "additionalProperties": {
175
+ "anyOf": [
176
+ {
177
+ "type": [
178
+ "string",
179
+ "number",
180
+ "boolean"
181
+ ],
182
+ "maxLength": 2000
183
+ },
184
+ {
185
+ "$ref": "#/$defs/ref"
186
+ }
187
+ ]
188
+ }
189
+ }
190
+ },
191
+ "description": "Clave i18n con argumentos insertados como texto."
192
+ },
193
+ "text": {
194
+ "anyOf": [
195
+ {
196
+ "type": "string",
197
+ "maxLength": 2000
198
+ },
199
+ {
200
+ "$ref": "#/$defs/tref"
201
+ },
202
+ {
203
+ "$ref": "#/$defs/ref"
204
+ }
205
+ ],
206
+ "description": "Texto visible: literal, clave i18n o vinculación."
207
+ },
208
+ "label": {
209
+ "anyOf": [
210
+ {
211
+ "type": "string",
212
+ "maxLength": 160
213
+ },
214
+ {
215
+ "$ref": "#/$defs/tref"
216
+ },
217
+ {
218
+ "$ref": "#/$defs/ref"
219
+ }
220
+ ]
221
+ },
222
+ "value": {
223
+ "anyOf": [
224
+ {
225
+ "$ref": "#/$defs/scalar"
226
+ },
227
+ {
228
+ "$ref": "#/$defs/ref"
229
+ }
230
+ ],
231
+ "description": "Valor: escalar o vinculación."
232
+ },
233
+ "link": {
234
+ "type": "string",
235
+ "maxLength": 2048,
236
+ "pattern": "^(/(?!/)[^\\\\\\n\\r\\t]*|https?://[^\\s\\\\]+)$",
237
+ "x-error": "genui.unsafe_link",
238
+ "description": "Ruta relativa de la app o http(s) literal; nunca $ref. Los externos solo con allowExternalLinks."
239
+ },
240
+ "appPath": {
241
+ "type": "string",
242
+ "maxLength": 2048,
243
+ "pattern": "^/(?!/)[^\\\\\\n\\r\\t]*$",
244
+ "x-error": "genui.unsafe_link",
245
+ "description": "Ruta de la app (nunca http)."
246
+ },
247
+ "name": {
248
+ "type": "string",
249
+ "pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[A-Za-z_][A-Za-z0-9_]{0,63}$",
250
+ "x-no-proto": true
251
+ },
252
+ "predicate": {
253
+ "type": "object",
254
+ "additionalProperties": false,
255
+ "required": [
256
+ "ref"
257
+ ],
258
+ "minProperties": 2,
259
+ "properties": {
260
+ "ref": {
261
+ "$ref": "#/$defs/bindingPath"
262
+ },
263
+ "equals": {
264
+ "$ref": "#/$defs/scalar"
265
+ },
266
+ "in": {
267
+ "type": "array",
268
+ "items": {
269
+ "$ref": "#/$defs/scalar"
270
+ },
271
+ "maxItems": 50
272
+ },
273
+ "not_in": {
274
+ "type": "array",
275
+ "items": {
276
+ "$ref": "#/$defs/scalar"
277
+ },
278
+ "maxItems": 50
279
+ },
280
+ "empty": {
281
+ "type": "boolean"
282
+ }
283
+ },
284
+ "description": "Condición when (forma de VisibleWhen ampliada a cualquier raíz)."
285
+ },
286
+ "badge": {
287
+ "type": "object",
288
+ "additionalProperties": false,
289
+ "required": [
290
+ "label"
291
+ ],
292
+ "properties": {
293
+ "label": {
294
+ "type": "string",
295
+ "maxLength": 60
296
+ },
297
+ "tone": {
298
+ "$ref": "#/$defs/tone"
299
+ }
300
+ }
301
+ },
302
+ "field": {
303
+ "type": "object",
304
+ "additionalProperties": false,
305
+ "required": [
306
+ "label"
307
+ ],
308
+ "properties": {
309
+ "label": {
310
+ "$ref": "#/$defs/label"
311
+ },
312
+ "value": {
313
+ "$ref": "#/$defs/text"
314
+ },
315
+ "copy": {
316
+ "type": "boolean"
317
+ }
318
+ }
319
+ },
320
+ "option": {
321
+ "type": "object",
322
+ "additionalProperties": false,
323
+ "required": [
324
+ "value",
325
+ "label"
326
+ ],
327
+ "properties": {
328
+ "value": {
329
+ "type": "string",
330
+ "maxLength": 160
331
+ },
332
+ "label": {
333
+ "$ref": "#/$defs/label"
334
+ }
335
+ }
336
+ },
337
+ "column": {
338
+ "type": "object",
339
+ "additionalProperties": false,
340
+ "required": [
341
+ "key",
342
+ "label"
343
+ ],
344
+ "properties": {
345
+ "key": {
346
+ "$ref": "#/$defs/key"
347
+ },
348
+ "label": {
349
+ "$ref": "#/$defs/label"
350
+ },
351
+ "format": {
352
+ "$ref": "#/$defs/statFormat"
353
+ }
354
+ }
355
+ },
356
+ "stateList": {
357
+ "type": "array",
358
+ "items": {
359
+ "$ref": "#/$defs/scalar"
360
+ },
361
+ "maxItems": 50
362
+ },
363
+ "stateValue": {
364
+ "anyOf": [
365
+ {
366
+ "$ref": "#/$defs/scalar"
367
+ },
368
+ {
369
+ "$ref": "#/$defs/stateList"
370
+ },
371
+ {
372
+ "type": "object",
373
+ "maxProperties": 16,
374
+ "propertyNames": {
375
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
376
+ },
377
+ "additionalProperties": {
378
+ "anyOf": [
379
+ {
380
+ "$ref": "#/$defs/scalar"
381
+ },
382
+ {
383
+ "$ref": "#/$defs/stateList"
384
+ }
385
+ ]
386
+ }
387
+ }
388
+ ]
389
+ },
390
+ "row": {
391
+ "type": "object",
392
+ "maxProperties": 24,
393
+ "propertyNames": {
394
+ "pattern": "^(?=.{1,64}$)(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$",
395
+ "x-no-proto": true
396
+ },
397
+ "additionalProperties": {
398
+ "$ref": "#/$defs/value"
399
+ }
400
+ },
401
+ "item": {
402
+ "type": "object",
403
+ "additionalProperties": false,
404
+ "properties": {
405
+ "label": {
406
+ "$ref": "#/$defs/label"
407
+ },
408
+ "value": {
409
+ "$ref": "#/$defs/text"
410
+ },
411
+ "hint": {
412
+ "$ref": "#/$defs/label"
413
+ },
414
+ "trend": {
415
+ "enum": [
416
+ "up",
417
+ "down",
418
+ "flat"
419
+ ]
420
+ },
421
+ "title": {
422
+ "$ref": "#/$defs/label"
423
+ },
424
+ "url": {
425
+ "$ref": "#/$defs/link"
426
+ },
427
+ "source": {
428
+ "$ref": "#/$defs/label"
429
+ },
430
+ "date": {
431
+ "type": "string",
432
+ "maxLength": 160
433
+ },
434
+ "time": {
435
+ "type": "string",
436
+ "maxLength": 160
437
+ },
438
+ "description": {
439
+ "$ref": "#/$defs/text"
440
+ },
441
+ "status": {
442
+ "type": "string",
443
+ "maxLength": 160
444
+ },
445
+ "tone": {
446
+ "$ref": "#/$defs/tone"
447
+ },
448
+ "format": {
449
+ "$ref": "#/$defs/statFormat"
450
+ }
451
+ }
452
+ },
453
+ "route": {
454
+ "type": "object",
455
+ "additionalProperties": false,
456
+ "minProperties": 1,
457
+ "properties": {
458
+ "name": {
459
+ "enum": [
460
+ "record",
461
+ "list",
462
+ "page"
463
+ ]
464
+ },
465
+ "model": {
466
+ "$ref": "#/$defs/key"
467
+ },
468
+ "id": {
469
+ "$ref": "#/$defs/value"
470
+ },
471
+ "filters": {
472
+ "type": "object",
473
+ "maxProperties": 8,
474
+ "additionalProperties": {
475
+ "$ref": "#/$defs/scalar"
476
+ }
477
+ },
478
+ "key": {
479
+ "$ref": "#/$defs/key"
480
+ },
481
+ "path": {
482
+ "$ref": "#/$defs/appPath"
483
+ }
484
+ },
485
+ "description": "path o name; los requeridos por name se validan en código."
486
+ },
487
+ "action": {
488
+ "x-discriminator": "do",
489
+ "description": "Acción declarativa {do, ...}; un esquema por verbo.",
490
+ "oneOf": [
491
+ {
492
+ "$ref": "#/$defs/action_navigate"
493
+ },
494
+ {
495
+ "$ref": "#/$defs/action_invoke"
496
+ },
497
+ {
498
+ "$ref": "#/$defs/action_submit"
499
+ },
500
+ {
501
+ "$ref": "#/$defs/action_open"
502
+ },
503
+ {
504
+ "$ref": "#/$defs/action_close"
505
+ },
506
+ {
507
+ "$ref": "#/$defs/action_set"
508
+ },
509
+ {
510
+ "$ref": "#/$defs/action_refresh"
511
+ },
512
+ {
513
+ "$ref": "#/$defs/action_emit"
514
+ }
515
+ ]
516
+ },
517
+ "action_navigate": {
518
+ "type": "object",
519
+ "additionalProperties": false,
520
+ "required": [
521
+ "do",
522
+ "route"
523
+ ],
524
+ "properties": {
525
+ "do": {
526
+ "const": "navigate"
527
+ },
528
+ "label": {
529
+ "$ref": "#/$defs/label"
530
+ },
531
+ "variant": {
532
+ "enum": [
533
+ "primary",
534
+ "secondary",
535
+ "ghost",
536
+ "danger"
537
+ ]
538
+ },
539
+ "icon": {
540
+ "type": "string",
541
+ "pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9-]{0,63}$",
542
+ "x-no-proto": true
543
+ },
544
+ "confirm": {
545
+ "type": "object",
546
+ "additionalProperties": false,
547
+ "properties": {
548
+ "title": {
549
+ "$ref": "#/$defs/label"
550
+ },
551
+ "body": {
552
+ "$ref": "#/$defs/text"
553
+ },
554
+ "tone": {
555
+ "$ref": "#/$defs/tone"
556
+ },
557
+ "require_text": {
558
+ "type": "string",
559
+ "maxLength": 60
560
+ }
561
+ }
562
+ },
563
+ "when": {
564
+ "$ref": "#/$defs/predicate"
565
+ },
566
+ "route": {
567
+ "$ref": "#/$defs/route"
568
+ }
569
+ }
570
+ },
571
+ "action_invoke": {
572
+ "type": "object",
573
+ "additionalProperties": false,
574
+ "required": [
575
+ "do",
576
+ "action"
577
+ ],
578
+ "properties": {
579
+ "do": {
580
+ "const": "invoke"
581
+ },
582
+ "label": {
583
+ "$ref": "#/$defs/label"
584
+ },
585
+ "variant": {
586
+ "enum": [
587
+ "primary",
588
+ "secondary",
589
+ "ghost",
590
+ "danger"
591
+ ]
592
+ },
593
+ "icon": {
594
+ "type": "string",
595
+ "pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9-]{0,63}$",
596
+ "x-no-proto": true
597
+ },
598
+ "confirm": {
599
+ "type": "object",
600
+ "additionalProperties": false,
601
+ "properties": {
602
+ "title": {
603
+ "$ref": "#/$defs/label"
604
+ },
605
+ "body": {
606
+ "$ref": "#/$defs/text"
607
+ },
608
+ "tone": {
609
+ "$ref": "#/$defs/tone"
610
+ },
611
+ "require_text": {
612
+ "type": "string",
613
+ "maxLength": 60
614
+ }
615
+ }
616
+ },
617
+ "when": {
618
+ "$ref": "#/$defs/predicate"
619
+ },
620
+ "action": {
621
+ "type": "string",
622
+ "pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9_]*(\\.[A-Za-z][A-Za-z0-9_]*){1,3}$",
623
+ "description": "Acción del manifest <addon>.<Model>.<key>.",
624
+ "x-no-proto": true
625
+ },
626
+ "record": {
627
+ "$ref": "#/$defs/value"
628
+ },
629
+ "params": {
630
+ "type": "object",
631
+ "maxProperties": 8,
632
+ "additionalProperties": {
633
+ "$ref": "#/$defs/value"
634
+ }
635
+ },
636
+ "values": {
637
+ "type": "object",
638
+ "maxProperties": 40,
639
+ "additionalProperties": {
640
+ "$ref": "#/$defs/value"
641
+ }
642
+ }
643
+ }
644
+ },
645
+ "action_submit": {
646
+ "properties": {
647
+ "do": {
648
+ "const": "submit"
649
+ }
650
+ },
651
+ "x-discriminator": "to",
652
+ "oneOf": [
653
+ {
654
+ "$ref": "#/$defs/action_submit_invoke"
655
+ },
656
+ {
657
+ "$ref": "#/$defs/action_submit_settings"
658
+ },
659
+ {
660
+ "$ref": "#/$defs/action_submit_create"
661
+ },
662
+ {
663
+ "$ref": "#/$defs/action_submit_update"
664
+ }
665
+ ]
666
+ },
667
+ "action_submit_invoke": {
668
+ "type": "object",
669
+ "additionalProperties": false,
670
+ "required": [
671
+ "do",
672
+ "to",
673
+ "form",
674
+ "action"
675
+ ],
676
+ "properties": {
677
+ "do": {
678
+ "const": "submit"
679
+ },
680
+ "label": {
681
+ "$ref": "#/$defs/label"
682
+ },
683
+ "variant": {
684
+ "enum": [
685
+ "primary",
686
+ "secondary",
687
+ "ghost",
688
+ "danger"
689
+ ]
690
+ },
691
+ "icon": {
692
+ "type": "string",
693
+ "pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9-]{0,63}$",
694
+ "x-no-proto": true
695
+ },
696
+ "confirm": {
697
+ "type": "object",
698
+ "additionalProperties": false,
699
+ "properties": {
700
+ "title": {
701
+ "$ref": "#/$defs/label"
702
+ },
703
+ "body": {
704
+ "$ref": "#/$defs/text"
705
+ },
706
+ "tone": {
707
+ "$ref": "#/$defs/tone"
708
+ },
709
+ "require_text": {
710
+ "type": "string",
711
+ "maxLength": 60
712
+ }
713
+ }
714
+ },
715
+ "when": {
716
+ "$ref": "#/$defs/predicate"
717
+ },
718
+ "to": {
719
+ "const": "invoke"
720
+ },
721
+ "form": {
722
+ "$ref": "#/$defs/id"
723
+ },
724
+ "action": {
725
+ "type": "string",
726
+ "pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9_]*(\\.[A-Za-z][A-Za-z0-9_]*){1,3}$",
727
+ "x-no-proto": true
728
+ }
729
+ }
730
+ },
731
+ "action_submit_settings": {
732
+ "type": "object",
733
+ "additionalProperties": false,
734
+ "required": [
735
+ "do",
736
+ "to",
737
+ "form"
738
+ ],
739
+ "properties": {
740
+ "do": {
741
+ "const": "submit"
742
+ },
743
+ "label": {
744
+ "$ref": "#/$defs/label"
745
+ },
746
+ "variant": {
747
+ "enum": [
748
+ "primary",
749
+ "secondary",
750
+ "ghost",
751
+ "danger"
752
+ ]
753
+ },
754
+ "icon": {
755
+ "type": "string",
756
+ "pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9-]{0,63}$",
757
+ "x-no-proto": true
758
+ },
759
+ "confirm": {
760
+ "type": "object",
761
+ "additionalProperties": false,
762
+ "properties": {
763
+ "title": {
764
+ "$ref": "#/$defs/label"
765
+ },
766
+ "body": {
767
+ "$ref": "#/$defs/text"
768
+ },
769
+ "tone": {
770
+ "$ref": "#/$defs/tone"
771
+ },
772
+ "require_text": {
773
+ "type": "string",
774
+ "maxLength": 60
775
+ }
776
+ }
777
+ },
778
+ "when": {
779
+ "$ref": "#/$defs/predicate"
780
+ },
781
+ "to": {
782
+ "const": "settings.write"
783
+ },
784
+ "form": {
785
+ "$ref": "#/$defs/id"
786
+ }
787
+ }
788
+ },
789
+ "action_submit_create": {
790
+ "type": "object",
791
+ "additionalProperties": false,
792
+ "required": [
793
+ "do",
794
+ "to",
795
+ "form",
796
+ "model"
797
+ ],
798
+ "properties": {
799
+ "do": {
800
+ "const": "submit"
801
+ },
802
+ "label": {
803
+ "$ref": "#/$defs/label"
804
+ },
805
+ "variant": {
806
+ "enum": [
807
+ "primary",
808
+ "secondary",
809
+ "ghost",
810
+ "danger"
811
+ ]
812
+ },
813
+ "icon": {
814
+ "type": "string",
815
+ "pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9-]{0,63}$",
816
+ "x-no-proto": true
817
+ },
818
+ "confirm": {
819
+ "type": "object",
820
+ "additionalProperties": false,
821
+ "properties": {
822
+ "title": {
823
+ "$ref": "#/$defs/label"
824
+ },
825
+ "body": {
826
+ "$ref": "#/$defs/text"
827
+ },
828
+ "tone": {
829
+ "$ref": "#/$defs/tone"
830
+ },
831
+ "require_text": {
832
+ "type": "string",
833
+ "maxLength": 60
834
+ }
835
+ }
836
+ },
837
+ "when": {
838
+ "$ref": "#/$defs/predicate"
839
+ },
840
+ "to": {
841
+ "const": "record.create"
842
+ },
843
+ "form": {
844
+ "$ref": "#/$defs/id"
845
+ },
846
+ "model": {
847
+ "$ref": "#/$defs/key"
848
+ }
849
+ }
850
+ },
851
+ "action_submit_update": {
852
+ "type": "object",
853
+ "additionalProperties": false,
854
+ "required": [
855
+ "do",
856
+ "to",
857
+ "form",
858
+ "model",
859
+ "record"
860
+ ],
861
+ "properties": {
862
+ "do": {
863
+ "const": "submit"
864
+ },
865
+ "label": {
866
+ "$ref": "#/$defs/label"
867
+ },
868
+ "variant": {
869
+ "enum": [
870
+ "primary",
871
+ "secondary",
872
+ "ghost",
873
+ "danger"
874
+ ]
875
+ },
876
+ "icon": {
877
+ "type": "string",
878
+ "pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9-]{0,63}$",
879
+ "x-no-proto": true
880
+ },
881
+ "confirm": {
882
+ "type": "object",
883
+ "additionalProperties": false,
884
+ "properties": {
885
+ "title": {
886
+ "$ref": "#/$defs/label"
887
+ },
888
+ "body": {
889
+ "$ref": "#/$defs/text"
890
+ },
891
+ "tone": {
892
+ "$ref": "#/$defs/tone"
893
+ },
894
+ "require_text": {
895
+ "type": "string",
896
+ "maxLength": 60
897
+ }
898
+ }
899
+ },
900
+ "when": {
901
+ "$ref": "#/$defs/predicate"
902
+ },
903
+ "to": {
904
+ "const": "record.update"
905
+ },
906
+ "form": {
907
+ "$ref": "#/$defs/id"
908
+ },
909
+ "model": {
910
+ "$ref": "#/$defs/key"
911
+ },
912
+ "record": {
913
+ "$ref": "#/$defs/value"
914
+ }
915
+ }
916
+ },
917
+ "action_open": {
918
+ "type": "object",
919
+ "additionalProperties": false,
920
+ "required": [
921
+ "do",
922
+ "overlay"
923
+ ],
924
+ "properties": {
925
+ "do": {
926
+ "const": "open"
927
+ },
928
+ "label": {
929
+ "$ref": "#/$defs/label"
930
+ },
931
+ "variant": {
932
+ "enum": [
933
+ "primary",
934
+ "secondary",
935
+ "ghost",
936
+ "danger"
937
+ ]
938
+ },
939
+ "icon": {
940
+ "type": "string",
941
+ "pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9-]{0,63}$",
942
+ "x-no-proto": true
943
+ },
944
+ "confirm": {
945
+ "type": "object",
946
+ "additionalProperties": false,
947
+ "properties": {
948
+ "title": {
949
+ "$ref": "#/$defs/label"
950
+ },
951
+ "body": {
952
+ "$ref": "#/$defs/text"
953
+ },
954
+ "tone": {
955
+ "$ref": "#/$defs/tone"
956
+ },
957
+ "require_text": {
958
+ "type": "string",
959
+ "maxLength": 60
960
+ }
961
+ }
962
+ },
963
+ "when": {
964
+ "$ref": "#/$defs/predicate"
965
+ },
966
+ "overlay": {
967
+ "$ref": "#/$defs/id"
968
+ }
969
+ }
970
+ },
971
+ "action_close": {
972
+ "type": "object",
973
+ "additionalProperties": false,
974
+ "required": [
975
+ "do"
976
+ ],
977
+ "properties": {
978
+ "do": {
979
+ "const": "close"
980
+ },
981
+ "label": {
982
+ "$ref": "#/$defs/label"
983
+ },
984
+ "variant": {
985
+ "enum": [
986
+ "primary",
987
+ "secondary",
988
+ "ghost",
989
+ "danger"
990
+ ]
991
+ },
992
+ "icon": {
993
+ "type": "string",
994
+ "pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9-]{0,63}$",
995
+ "x-no-proto": true
996
+ },
997
+ "confirm": {
998
+ "type": "object",
999
+ "additionalProperties": false,
1000
+ "properties": {
1001
+ "title": {
1002
+ "$ref": "#/$defs/label"
1003
+ },
1004
+ "body": {
1005
+ "$ref": "#/$defs/text"
1006
+ },
1007
+ "tone": {
1008
+ "$ref": "#/$defs/tone"
1009
+ },
1010
+ "require_text": {
1011
+ "type": "string",
1012
+ "maxLength": 60
1013
+ }
1014
+ }
1015
+ },
1016
+ "when": {
1017
+ "$ref": "#/$defs/predicate"
1018
+ },
1019
+ "overlay": {
1020
+ "$ref": "#/$defs/id"
1021
+ }
1022
+ }
1023
+ },
1024
+ "action_set": {
1025
+ "type": "object",
1026
+ "additionalProperties": false,
1027
+ "required": [
1028
+ "do",
1029
+ "path",
1030
+ "value"
1031
+ ],
1032
+ "properties": {
1033
+ "do": {
1034
+ "const": "set"
1035
+ },
1036
+ "label": {
1037
+ "$ref": "#/$defs/label"
1038
+ },
1039
+ "variant": {
1040
+ "enum": [
1041
+ "primary",
1042
+ "secondary",
1043
+ "ghost",
1044
+ "danger"
1045
+ ]
1046
+ },
1047
+ "icon": {
1048
+ "type": "string",
1049
+ "pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9-]{0,63}$",
1050
+ "x-no-proto": true
1051
+ },
1052
+ "confirm": {
1053
+ "type": "object",
1054
+ "additionalProperties": false,
1055
+ "properties": {
1056
+ "title": {
1057
+ "$ref": "#/$defs/label"
1058
+ },
1059
+ "body": {
1060
+ "$ref": "#/$defs/text"
1061
+ },
1062
+ "tone": {
1063
+ "$ref": "#/$defs/tone"
1064
+ },
1065
+ "require_text": {
1066
+ "type": "string",
1067
+ "maxLength": 60
1068
+ }
1069
+ }
1070
+ },
1071
+ "when": {
1072
+ "$ref": "#/$defs/predicate"
1073
+ },
1074
+ "path": {
1075
+ "type": "string",
1076
+ "pattern": "^(?!(?:.*\\.)?(?:__proto__|constructor|prototype)(?:\\.|$))state(\\.[A-Za-z_][A-Za-z0-9_]{0,63}){1,6}$",
1077
+ "x-no-proto": true
1078
+ },
1079
+ "value": {
1080
+ "$ref": "#/$defs/scalar"
1081
+ }
1082
+ }
1083
+ },
1084
+ "action_refresh": {
1085
+ "type": "object",
1086
+ "additionalProperties": false,
1087
+ "required": [
1088
+ "do",
1089
+ "source"
1090
+ ],
1091
+ "properties": {
1092
+ "do": {
1093
+ "const": "refresh"
1094
+ },
1095
+ "label": {
1096
+ "$ref": "#/$defs/label"
1097
+ },
1098
+ "variant": {
1099
+ "enum": [
1100
+ "primary",
1101
+ "secondary",
1102
+ "ghost",
1103
+ "danger"
1104
+ ]
1105
+ },
1106
+ "icon": {
1107
+ "type": "string",
1108
+ "pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9-]{0,63}$",
1109
+ "x-no-proto": true
1110
+ },
1111
+ "confirm": {
1112
+ "type": "object",
1113
+ "additionalProperties": false,
1114
+ "properties": {
1115
+ "title": {
1116
+ "$ref": "#/$defs/label"
1117
+ },
1118
+ "body": {
1119
+ "$ref": "#/$defs/text"
1120
+ },
1121
+ "tone": {
1122
+ "$ref": "#/$defs/tone"
1123
+ },
1124
+ "require_text": {
1125
+ "type": "string",
1126
+ "maxLength": 60
1127
+ }
1128
+ }
1129
+ },
1130
+ "when": {
1131
+ "$ref": "#/$defs/predicate"
1132
+ },
1133
+ "source": {
1134
+ "$ref": "#/$defs/name"
1135
+ }
1136
+ }
1137
+ },
1138
+ "action_emit": {
1139
+ "type": "object",
1140
+ "additionalProperties": false,
1141
+ "required": [
1142
+ "do",
1143
+ "id"
1144
+ ],
1145
+ "properties": {
1146
+ "do": {
1147
+ "const": "emit"
1148
+ },
1149
+ "label": {
1150
+ "$ref": "#/$defs/label"
1151
+ },
1152
+ "variant": {
1153
+ "enum": [
1154
+ "primary",
1155
+ "secondary",
1156
+ "ghost",
1157
+ "danger"
1158
+ ]
1159
+ },
1160
+ "icon": {
1161
+ "type": "string",
1162
+ "pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9-]{0,63}$",
1163
+ "x-no-proto": true
1164
+ },
1165
+ "confirm": {
1166
+ "type": "object",
1167
+ "additionalProperties": false,
1168
+ "properties": {
1169
+ "title": {
1170
+ "$ref": "#/$defs/label"
1171
+ },
1172
+ "body": {
1173
+ "$ref": "#/$defs/text"
1174
+ },
1175
+ "tone": {
1176
+ "$ref": "#/$defs/tone"
1177
+ },
1178
+ "require_text": {
1179
+ "type": "string",
1180
+ "maxLength": 60
1181
+ }
1182
+ }
1183
+ },
1184
+ "when": {
1185
+ "$ref": "#/$defs/predicate"
1186
+ },
1187
+ "id": {
1188
+ "type": "string",
1189
+ "pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*){1,3}$",
1190
+ "x-no-proto": true
1191
+ },
1192
+ "params": {
1193
+ "type": "object",
1194
+ "maxProperties": 8,
1195
+ "additionalProperties": {
1196
+ "$ref": "#/$defs/scalar"
1197
+ }
1198
+ }
1199
+ }
1200
+ },
1201
+ "actions": {
1202
+ "type": "array",
1203
+ "items": {
1204
+ "$ref": "#/$defs/action"
1205
+ },
1206
+ "maxItems": 6
1207
+ },
1208
+ "formField": {
1209
+ "type": "object",
1210
+ "additionalProperties": false,
1211
+ "required": [
1212
+ "key",
1213
+ "label",
1214
+ "kind"
1215
+ ],
1216
+ "properties": {
1217
+ "key": {
1218
+ "$ref": "#/$defs/key"
1219
+ },
1220
+ "label": {
1221
+ "$ref": "#/$defs/label"
1222
+ },
1223
+ "kind": {
1224
+ "$ref": "#/$defs/fieldKind"
1225
+ },
1226
+ "required": {
1227
+ "type": "boolean"
1228
+ },
1229
+ "options": {
1230
+ "type": "array",
1231
+ "items": {
1232
+ "$ref": "#/$defs/option"
1233
+ },
1234
+ "maxItems": 100
1235
+ },
1236
+ "value": {
1237
+ "$ref": "#/$defs/value"
1238
+ },
1239
+ "help": {
1240
+ "type": "string",
1241
+ "maxLength": 160
1242
+ },
1243
+ "placeholder": {
1244
+ "type": "string",
1245
+ "maxLength": 160
1246
+ },
1247
+ "depends_on": {
1248
+ "$ref": "#/$defs/key",
1249
+ "description": "Clave de otro campo del mismo formulario."
1250
+ },
1251
+ "visible_when": {
1252
+ "type": "object",
1253
+ "additionalProperties": false,
1254
+ "properties": {
1255
+ "field": {
1256
+ "$ref": "#/$defs/key"
1257
+ },
1258
+ "equals": {
1259
+ "$ref": "#/$defs/scalar"
1260
+ },
1261
+ "in": {
1262
+ "type": "array",
1263
+ "items": {
1264
+ "$ref": "#/$defs/scalar"
1265
+ },
1266
+ "maxItems": 50
1267
+ },
1268
+ "not_in": {
1269
+ "type": "array",
1270
+ "items": {
1271
+ "$ref": "#/$defs/scalar"
1272
+ },
1273
+ "maxItems": 50
1274
+ },
1275
+ "empty": {
1276
+ "type": "boolean"
1277
+ }
1278
+ }
1279
+ },
1280
+ "validation": {
1281
+ "type": "object",
1282
+ "additionalProperties": false,
1283
+ "properties": {
1284
+ "min": {
1285
+ "type": "number"
1286
+ },
1287
+ "max": {
1288
+ "type": "number"
1289
+ },
1290
+ "min_length": {
1291
+ "type": "integer",
1292
+ "minimum": 0,
1293
+ "maximum": 2000
1294
+ },
1295
+ "max_length": {
1296
+ "type": "integer",
1297
+ "minimum": 0,
1298
+ "maximum": 2000
1299
+ },
1300
+ "pattern": {
1301
+ "type": "string",
1302
+ "maxLength": 200
1303
+ }
1304
+ }
1305
+ },
1306
+ "widget": {
1307
+ "type": "string",
1308
+ "pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9_]{0,31}$",
1309
+ "x-no-proto": true
1310
+ },
1311
+ "section": {
1312
+ "type": "string",
1313
+ "maxLength": 64
1314
+ },
1315
+ "write_only": {
1316
+ "type": "boolean"
1317
+ }
1318
+ }
1319
+ },
1320
+ "dataSource": {
1321
+ "type": "object",
1322
+ "additionalProperties": false,
1323
+ "minProperties": 1,
1324
+ "maxProperties": 2,
1325
+ "properties": {
1326
+ "q": {
1327
+ "type": "string",
1328
+ "pattern": "^(t|m|mm|o|r|i|mi|me|x):[^\\s]{1,500}$",
1329
+ "description": "Token de lectura del query batch."
1330
+ },
1331
+ "plan": {
1332
+ "enum": [
1333
+ "model.list",
1334
+ "model.form",
1335
+ "dashboard.home"
1336
+ ]
1337
+ },
1338
+ "args": {
1339
+ "type": "object",
1340
+ "maxProperties": 8,
1341
+ "additionalProperties": {
1342
+ "$ref": "#/$defs/scalar"
1343
+ }
1344
+ },
1345
+ "widget": {
1346
+ "type": "string",
1347
+ "pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9_]*\\.dashboard\\.[a-z][a-z0-9_]*$",
1348
+ "x-no-proto": true
1349
+ },
1350
+ "inline": {
1351
+ "type": "array",
1352
+ "items": {
1353
+ "$ref": "#/$defs/row"
1354
+ },
1355
+ "maxItems": 200
1356
+ }
1357
+ },
1358
+ "description": "Fuente declarada de solo lectura: q | plan(+args) | widget | inline."
1359
+ },
1360
+ "source": {
1361
+ "type": "string",
1362
+ "pattern": "^data\\.[A-Za-z_][A-Za-z0-9_]{0,63}$",
1363
+ "description": "Referencia a data.<nombre>."
1364
+ },
1365
+ "overlay": {
1366
+ "type": "object",
1367
+ "additionalProperties": false,
1368
+ "required": [
1369
+ "kind",
1370
+ "blocks"
1371
+ ],
1372
+ "properties": {
1373
+ "kind": {
1374
+ "enum": [
1375
+ "modal",
1376
+ "drawer"
1377
+ ]
1378
+ },
1379
+ "title": {
1380
+ "$ref": "#/$defs/label"
1381
+ },
1382
+ "blocks": {
1383
+ "type": "array",
1384
+ "items": {
1385
+ "$ref": "#/$defs/block"
1386
+ },
1387
+ "maxItems": 24,
1388
+ "minItems": 1
1389
+ }
1390
+ }
1391
+ },
1392
+ "block": {
1393
+ "x-genui": "block",
1394
+ "description": "Despachado por `type`; ver block_<type>.",
1395
+ "oneOf": [
1396
+ {
1397
+ "$ref": "#/$defs/block_stack"
1398
+ },
1399
+ {
1400
+ "$ref": "#/$defs/block_grid"
1401
+ },
1402
+ {
1403
+ "$ref": "#/$defs/block_tabs"
1404
+ },
1405
+ {
1406
+ "$ref": "#/$defs/block_section"
1407
+ },
1408
+ {
1409
+ "$ref": "#/$defs/block_text"
1410
+ },
1411
+ {
1412
+ "$ref": "#/$defs/block_markdown"
1413
+ },
1414
+ {
1415
+ "$ref": "#/$defs/block_alert"
1416
+ },
1417
+ {
1418
+ "$ref": "#/$defs/block_empty"
1419
+ },
1420
+ {
1421
+ "$ref": "#/$defs/block_card"
1422
+ },
1423
+ {
1424
+ "$ref": "#/$defs/block_list"
1425
+ },
1426
+ {
1427
+ "$ref": "#/$defs/block_kpi"
1428
+ },
1429
+ {
1430
+ "$ref": "#/$defs/block_stats"
1431
+ },
1432
+ {
1433
+ "$ref": "#/$defs/block_links"
1434
+ },
1435
+ {
1436
+ "$ref": "#/$defs/block_timeline"
1437
+ },
1438
+ {
1439
+ "$ref": "#/$defs/block_table"
1440
+ },
1441
+ {
1442
+ "$ref": "#/$defs/block_model_view"
1443
+ },
1444
+ {
1445
+ "$ref": "#/$defs/block_view"
1446
+ },
1447
+ {
1448
+ "$ref": "#/$defs/block_chart"
1449
+ },
1450
+ {
1451
+ "$ref": "#/$defs/block_form"
1452
+ },
1453
+ {
1454
+ "$ref": "#/$defs/block_wizard"
1455
+ },
1456
+ {
1457
+ "$ref": "#/$defs/block_confirm"
1458
+ },
1459
+ {
1460
+ "$ref": "#/$defs/block_settings"
1461
+ },
1462
+ {
1463
+ "$ref": "#/$defs/block_media"
1464
+ },
1465
+ {
1466
+ "$ref": "#/$defs/block_slot"
1467
+ },
1468
+ {
1469
+ "$ref": "#/$defs/block_ext"
1470
+ }
1471
+ ]
1472
+ },
1473
+ "block_stack": {
1474
+ "type": "object",
1475
+ "additionalProperties": false,
1476
+ "required": [
1477
+ "type",
1478
+ "blocks"
1479
+ ],
1480
+ "properties": {
1481
+ "type": {
1482
+ "const": "stack"
1483
+ },
1484
+ "id": {
1485
+ "$ref": "#/$defs/id"
1486
+ },
1487
+ "when": {
1488
+ "$ref": "#/$defs/predicate"
1489
+ },
1490
+ "fallback": {
1491
+ "type": "string",
1492
+ "maxLength": 2000
1493
+ },
1494
+ "direction": {
1495
+ "enum": [
1496
+ "vertical",
1497
+ "horizontal"
1498
+ ]
1499
+ },
1500
+ "title": {
1501
+ "$ref": "#/$defs/label"
1502
+ },
1503
+ "blocks": {
1504
+ "type": "array",
1505
+ "items": {
1506
+ "$ref": "#/$defs/block"
1507
+ },
1508
+ "maxItems": 24,
1509
+ "minItems": 1
1510
+ }
1511
+ }
1512
+ },
1513
+ "block_grid": {
1514
+ "type": "object",
1515
+ "additionalProperties": false,
1516
+ "required": [
1517
+ "type",
1518
+ "blocks"
1519
+ ],
1520
+ "properties": {
1521
+ "type": {
1522
+ "const": "grid"
1523
+ },
1524
+ "id": {
1525
+ "$ref": "#/$defs/id"
1526
+ },
1527
+ "when": {
1528
+ "$ref": "#/$defs/predicate"
1529
+ },
1530
+ "fallback": {
1531
+ "type": "string",
1532
+ "maxLength": 2000
1533
+ },
1534
+ "columns": {
1535
+ "type": "integer",
1536
+ "minimum": 1,
1537
+ "maximum": 4
1538
+ },
1539
+ "title": {
1540
+ "$ref": "#/$defs/label"
1541
+ },
1542
+ "blocks": {
1543
+ "type": "array",
1544
+ "items": {
1545
+ "$ref": "#/$defs/block"
1546
+ },
1547
+ "maxItems": 24,
1548
+ "minItems": 1
1549
+ }
1550
+ }
1551
+ },
1552
+ "block_tabs": {
1553
+ "type": "object",
1554
+ "additionalProperties": false,
1555
+ "required": [
1556
+ "type",
1557
+ "tabs"
1558
+ ],
1559
+ "properties": {
1560
+ "type": {
1561
+ "const": "tabs"
1562
+ },
1563
+ "id": {
1564
+ "$ref": "#/$defs/id"
1565
+ },
1566
+ "when": {
1567
+ "$ref": "#/$defs/predicate"
1568
+ },
1569
+ "fallback": {
1570
+ "type": "string",
1571
+ "maxLength": 2000
1572
+ },
1573
+ "state": {
1574
+ "$ref": "#/$defs/bindingPath"
1575
+ },
1576
+ "tabs": {
1577
+ "type": "array",
1578
+ "items": {
1579
+ "type": "object",
1580
+ "additionalProperties": false,
1581
+ "required": [
1582
+ "key",
1583
+ "label",
1584
+ "blocks"
1585
+ ],
1586
+ "properties": {
1587
+ "key": {
1588
+ "$ref": "#/$defs/key"
1589
+ },
1590
+ "label": {
1591
+ "$ref": "#/$defs/label"
1592
+ },
1593
+ "blocks": {
1594
+ "type": "array",
1595
+ "items": {
1596
+ "$ref": "#/$defs/block"
1597
+ },
1598
+ "maxItems": 24,
1599
+ "minItems": 1
1600
+ }
1601
+ }
1602
+ },
1603
+ "maxItems": 8,
1604
+ "minItems": 1
1605
+ }
1606
+ }
1607
+ },
1608
+ "block_section": {
1609
+ "type": "object",
1610
+ "additionalProperties": false,
1611
+ "required": [
1612
+ "type",
1613
+ "title",
1614
+ "blocks"
1615
+ ],
1616
+ "properties": {
1617
+ "type": {
1618
+ "const": "section"
1619
+ },
1620
+ "id": {
1621
+ "$ref": "#/$defs/id"
1622
+ },
1623
+ "when": {
1624
+ "$ref": "#/$defs/predicate"
1625
+ },
1626
+ "fallback": {
1627
+ "type": "string",
1628
+ "maxLength": 2000
1629
+ },
1630
+ "title": {
1631
+ "$ref": "#/$defs/label"
1632
+ },
1633
+ "collapsible": {
1634
+ "type": "boolean"
1635
+ },
1636
+ "collapsed": {
1637
+ "type": "boolean"
1638
+ },
1639
+ "blocks": {
1640
+ "type": "array",
1641
+ "items": {
1642
+ "$ref": "#/$defs/block"
1643
+ },
1644
+ "maxItems": 24,
1645
+ "minItems": 1
1646
+ }
1647
+ }
1648
+ },
1649
+ "block_text": {
1650
+ "type": "object",
1651
+ "additionalProperties": false,
1652
+ "required": [
1653
+ "type",
1654
+ "text"
1655
+ ],
1656
+ "properties": {
1657
+ "type": {
1658
+ "const": "text"
1659
+ },
1660
+ "id": {
1661
+ "$ref": "#/$defs/id"
1662
+ },
1663
+ "when": {
1664
+ "$ref": "#/$defs/predicate"
1665
+ },
1666
+ "fallback": {
1667
+ "type": "string",
1668
+ "maxLength": 2000
1669
+ },
1670
+ "text": {
1671
+ "$ref": "#/$defs/text"
1672
+ },
1673
+ "tone": {
1674
+ "$ref": "#/$defs/tone"
1675
+ }
1676
+ }
1677
+ },
1678
+ "block_markdown": {
1679
+ "type": "object",
1680
+ "additionalProperties": false,
1681
+ "required": [
1682
+ "type",
1683
+ "markdown"
1684
+ ],
1685
+ "properties": {
1686
+ "type": {
1687
+ "const": "markdown"
1688
+ },
1689
+ "id": {
1690
+ "$ref": "#/$defs/id"
1691
+ },
1692
+ "when": {
1693
+ "$ref": "#/$defs/predicate"
1694
+ },
1695
+ "fallback": {
1696
+ "type": "string",
1697
+ "maxLength": 2000
1698
+ },
1699
+ "markdown": {
1700
+ "type": "string",
1701
+ "maxLength": 8000
1702
+ }
1703
+ }
1704
+ },
1705
+ "block_alert": {
1706
+ "type": "object",
1707
+ "additionalProperties": false,
1708
+ "required": [
1709
+ "type",
1710
+ "text"
1711
+ ],
1712
+ "properties": {
1713
+ "type": {
1714
+ "const": "alert"
1715
+ },
1716
+ "id": {
1717
+ "$ref": "#/$defs/id"
1718
+ },
1719
+ "when": {
1720
+ "$ref": "#/$defs/predicate"
1721
+ },
1722
+ "fallback": {
1723
+ "type": "string",
1724
+ "maxLength": 2000
1725
+ },
1726
+ "title": {
1727
+ "$ref": "#/$defs/label"
1728
+ },
1729
+ "text": {
1730
+ "$ref": "#/$defs/text"
1731
+ },
1732
+ "tone": {
1733
+ "$ref": "#/$defs/tone"
1734
+ }
1735
+ }
1736
+ },
1737
+ "block_empty": {
1738
+ "type": "object",
1739
+ "additionalProperties": false,
1740
+ "required": [
1741
+ "type",
1742
+ "title"
1743
+ ],
1744
+ "properties": {
1745
+ "type": {
1746
+ "const": "empty"
1747
+ },
1748
+ "id": {
1749
+ "$ref": "#/$defs/id"
1750
+ },
1751
+ "when": {
1752
+ "$ref": "#/$defs/predicate"
1753
+ },
1754
+ "fallback": {
1755
+ "type": "string",
1756
+ "maxLength": 2000
1757
+ },
1758
+ "title": {
1759
+ "$ref": "#/$defs/label"
1760
+ },
1761
+ "text": {
1762
+ "$ref": "#/$defs/text"
1763
+ },
1764
+ "icon": {
1765
+ "type": "string",
1766
+ "pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9-]{0,63}$",
1767
+ "x-no-proto": true
1768
+ },
1769
+ "actions": {
1770
+ "$ref": "#/$defs/actions"
1771
+ }
1772
+ }
1773
+ },
1774
+ "block_card": {
1775
+ "type": "object",
1776
+ "additionalProperties": false,
1777
+ "required": [
1778
+ "type",
1779
+ "title"
1780
+ ],
1781
+ "properties": {
1782
+ "type": {
1783
+ "const": "card"
1784
+ },
1785
+ "id": {
1786
+ "$ref": "#/$defs/id"
1787
+ },
1788
+ "when": {
1789
+ "$ref": "#/$defs/predicate"
1790
+ },
1791
+ "fallback": {
1792
+ "type": "string",
1793
+ "maxLength": 2000
1794
+ },
1795
+ "title": {
1796
+ "$ref": "#/$defs/label"
1797
+ },
1798
+ "subtitle": {
1799
+ "$ref": "#/$defs/label"
1800
+ },
1801
+ "body": {
1802
+ "$ref": "#/$defs/text"
1803
+ },
1804
+ "badges": {
1805
+ "type": "array",
1806
+ "items": {
1807
+ "$ref": "#/$defs/badge"
1808
+ },
1809
+ "maxItems": 6
1810
+ },
1811
+ "fields": {
1812
+ "type": "array",
1813
+ "items": {
1814
+ "$ref": "#/$defs/field"
1815
+ },
1816
+ "maxItems": 12
1817
+ },
1818
+ "link": {
1819
+ "$ref": "#/$defs/link"
1820
+ },
1821
+ "tone": {
1822
+ "$ref": "#/$defs/tone"
1823
+ },
1824
+ "actions": {
1825
+ "$ref": "#/$defs/actions"
1826
+ }
1827
+ }
1828
+ },
1829
+ "block_list": {
1830
+ "type": "object",
1831
+ "additionalProperties": false,
1832
+ "required": [
1833
+ "type",
1834
+ "items"
1835
+ ],
1836
+ "properties": {
1837
+ "type": {
1838
+ "const": "list"
1839
+ },
1840
+ "id": {
1841
+ "$ref": "#/$defs/id"
1842
+ },
1843
+ "when": {
1844
+ "$ref": "#/$defs/predicate"
1845
+ },
1846
+ "fallback": {
1847
+ "type": "string",
1848
+ "maxLength": 2000
1849
+ },
1850
+ "title": {
1851
+ "$ref": "#/$defs/label"
1852
+ },
1853
+ "items": {
1854
+ "type": "array",
1855
+ "items": {
1856
+ "type": "object",
1857
+ "additionalProperties": false,
1858
+ "required": [
1859
+ "title"
1860
+ ],
1861
+ "properties": {
1862
+ "title": {
1863
+ "$ref": "#/$defs/label"
1864
+ },
1865
+ "description": {
1866
+ "$ref": "#/$defs/text"
1867
+ },
1868
+ "badge": {
1869
+ "$ref": "#/$defs/badge"
1870
+ },
1871
+ "action": {
1872
+ "$ref": "#/$defs/action"
1873
+ }
1874
+ }
1875
+ },
1876
+ "maxItems": 50,
1877
+ "minItems": 1
1878
+ }
1879
+ }
1880
+ },
1881
+ "block_kpi": {
1882
+ "type": "object",
1883
+ "additionalProperties": false,
1884
+ "required": [
1885
+ "type",
1886
+ "items"
1887
+ ],
1888
+ "properties": {
1889
+ "type": {
1890
+ "const": "kpi"
1891
+ },
1892
+ "id": {
1893
+ "$ref": "#/$defs/id"
1894
+ },
1895
+ "when": {
1896
+ "$ref": "#/$defs/predicate"
1897
+ },
1898
+ "fallback": {
1899
+ "type": "string",
1900
+ "maxLength": 2000
1901
+ },
1902
+ "title": {
1903
+ "$ref": "#/$defs/label"
1904
+ },
1905
+ "items": {
1906
+ "type": "array",
1907
+ "items": {
1908
+ "$ref": "#/$defs/item"
1909
+ },
1910
+ "maxItems": 12,
1911
+ "minItems": 1
1912
+ }
1913
+ }
1914
+ },
1915
+ "block_stats": {
1916
+ "type": "object",
1917
+ "additionalProperties": false,
1918
+ "required": [
1919
+ "type"
1920
+ ],
1921
+ "properties": {
1922
+ "type": {
1923
+ "const": "stats"
1924
+ },
1925
+ "id": {
1926
+ "$ref": "#/$defs/id"
1927
+ },
1928
+ "when": {
1929
+ "$ref": "#/$defs/predicate"
1930
+ },
1931
+ "fallback": {
1932
+ "type": "string",
1933
+ "maxLength": 2000
1934
+ },
1935
+ "title": {
1936
+ "$ref": "#/$defs/label"
1937
+ },
1938
+ "source": {
1939
+ "$ref": "#/$defs/source"
1940
+ },
1941
+ "format": {
1942
+ "$ref": "#/$defs/statFormat"
1943
+ },
1944
+ "items": {
1945
+ "type": "array",
1946
+ "items": {
1947
+ "$ref": "#/$defs/item"
1948
+ },
1949
+ "maxItems": 12,
1950
+ "minItems": 1
1951
+ },
1952
+ "trend": {
1953
+ "enum": [
1954
+ "up",
1955
+ "down",
1956
+ "flat"
1957
+ ]
1958
+ },
1959
+ "compare": {
1960
+ "type": "string",
1961
+ "maxLength": 160
1962
+ }
1963
+ }
1964
+ },
1965
+ "block_links": {
1966
+ "type": "object",
1967
+ "additionalProperties": false,
1968
+ "required": [
1969
+ "type",
1970
+ "items"
1971
+ ],
1972
+ "properties": {
1973
+ "type": {
1974
+ "const": "links"
1975
+ },
1976
+ "id": {
1977
+ "$ref": "#/$defs/id"
1978
+ },
1979
+ "when": {
1980
+ "$ref": "#/$defs/predicate"
1981
+ },
1982
+ "fallback": {
1983
+ "type": "string",
1984
+ "maxLength": 2000
1985
+ },
1986
+ "title": {
1987
+ "$ref": "#/$defs/label"
1988
+ },
1989
+ "items": {
1990
+ "type": "array",
1991
+ "items": {
1992
+ "$ref": "#/$defs/item"
1993
+ },
1994
+ "maxItems": 50,
1995
+ "minItems": 1
1996
+ }
1997
+ }
1998
+ },
1999
+ "block_timeline": {
2000
+ "type": "object",
2001
+ "additionalProperties": false,
2002
+ "required": [
2003
+ "type"
2004
+ ],
2005
+ "properties": {
2006
+ "type": {
2007
+ "const": "timeline"
2008
+ },
2009
+ "id": {
2010
+ "$ref": "#/$defs/id"
2011
+ },
2012
+ "when": {
2013
+ "$ref": "#/$defs/predicate"
2014
+ },
2015
+ "fallback": {
2016
+ "type": "string",
2017
+ "maxLength": 2000
2018
+ },
2019
+ "title": {
2020
+ "$ref": "#/$defs/label"
2021
+ },
2022
+ "items": {
2023
+ "type": "array",
2024
+ "items": {
2025
+ "$ref": "#/$defs/item"
2026
+ },
2027
+ "maxItems": 50,
2028
+ "minItems": 1
2029
+ },
2030
+ "source": {
2031
+ "$ref": "#/$defs/source"
2032
+ }
2033
+ }
2034
+ },
2035
+ "block_table": {
2036
+ "type": "object",
2037
+ "additionalProperties": false,
2038
+ "required": [
2039
+ "type",
2040
+ "columns"
2041
+ ],
2042
+ "properties": {
2043
+ "type": {
2044
+ "const": "table"
2045
+ },
2046
+ "id": {
2047
+ "$ref": "#/$defs/id"
2048
+ },
2049
+ "when": {
2050
+ "$ref": "#/$defs/predicate"
2051
+ },
2052
+ "fallback": {
2053
+ "type": "string",
2054
+ "maxLength": 2000
2055
+ },
2056
+ "title": {
2057
+ "$ref": "#/$defs/label"
2058
+ },
2059
+ "caption": {
2060
+ "$ref": "#/$defs/label"
2061
+ },
2062
+ "columns": {
2063
+ "type": "array",
2064
+ "items": {
2065
+ "$ref": "#/$defs/column"
2066
+ },
2067
+ "maxItems": 24,
2068
+ "minItems": 1
2069
+ },
2070
+ "rows": {
2071
+ "type": "array",
2072
+ "items": {
2073
+ "$ref": "#/$defs/row"
2074
+ },
2075
+ "maxItems": 200
2076
+ },
2077
+ "source": {
2078
+ "$ref": "#/$defs/source"
2079
+ },
2080
+ "filters": {
2081
+ "type": "array",
2082
+ "items": {
2083
+ "$ref": "#/$defs/key"
2084
+ },
2085
+ "maxItems": 12
2086
+ },
2087
+ "sort": {
2088
+ "type": "object",
2089
+ "additionalProperties": false,
2090
+ "required": [
2091
+ "key"
2092
+ ],
2093
+ "properties": {
2094
+ "key": {
2095
+ "$ref": "#/$defs/key"
2096
+ },
2097
+ "dir": {
2098
+ "enum": [
2099
+ "asc",
2100
+ "desc"
2101
+ ]
2102
+ }
2103
+ }
2104
+ },
2105
+ "page_size": {
2106
+ "type": "integer",
2107
+ "minimum": 1,
2108
+ "maximum": 100
2109
+ },
2110
+ "row_actions": {
2111
+ "$ref": "#/$defs/actions"
2112
+ },
2113
+ "bulk_actions": {
2114
+ "$ref": "#/$defs/actions"
2115
+ }
2116
+ }
2117
+ },
2118
+ "block_model_view": {
2119
+ "type": "object",
2120
+ "additionalProperties": false,
2121
+ "required": [
2122
+ "type",
2123
+ "model"
2124
+ ],
2125
+ "properties": {
2126
+ "type": {
2127
+ "const": "model_view"
2128
+ },
2129
+ "id": {
2130
+ "$ref": "#/$defs/id"
2131
+ },
2132
+ "when": {
2133
+ "$ref": "#/$defs/predicate"
2134
+ },
2135
+ "fallback": {
2136
+ "type": "string",
2137
+ "maxLength": 2000
2138
+ },
2139
+ "title": {
2140
+ "$ref": "#/$defs/label"
2141
+ },
2142
+ "model": {
2143
+ "$ref": "#/$defs/key"
2144
+ },
2145
+ "view": {
2146
+ "enum": [
2147
+ "table",
2148
+ "kanban",
2149
+ "calendar",
2150
+ "map",
2151
+ "timeline",
2152
+ "chart"
2153
+ ]
2154
+ },
2155
+ "filters": {
2156
+ "type": "object",
2157
+ "maxProperties": 8,
2158
+ "additionalProperties": {
2159
+ "$ref": "#/$defs/scalar"
2160
+ }
2161
+ },
2162
+ "allowed_actions": {
2163
+ "type": "array",
2164
+ "items": {
2165
+ "$ref": "#/$defs/key"
2166
+ },
2167
+ "maxItems": 12
2168
+ }
2169
+ }
2170
+ },
2171
+ "block_view": {
2172
+ "type": "object",
2173
+ "additionalProperties": false,
2174
+ "required": [
2175
+ "type",
2176
+ "model"
2177
+ ],
2178
+ "properties": {
2179
+ "type": {
2180
+ "const": "view"
2181
+ },
2182
+ "id": {
2183
+ "$ref": "#/$defs/id"
2184
+ },
2185
+ "when": {
2186
+ "$ref": "#/$defs/predicate"
2187
+ },
2188
+ "fallback": {
2189
+ "type": "string",
2190
+ "maxLength": 2000
2191
+ },
2192
+ "title": {
2193
+ "$ref": "#/$defs/label"
2194
+ },
2195
+ "model": {
2196
+ "$ref": "#/$defs/key"
2197
+ },
2198
+ "record": {
2199
+ "$ref": "#/$defs/value"
2200
+ },
2201
+ "fields": {
2202
+ "type": "array",
2203
+ "items": {
2204
+ "$ref": "#/$defs/key"
2205
+ },
2206
+ "maxItems": 40
2207
+ },
2208
+ "panels": {
2209
+ "type": "array",
2210
+ "items": {
2211
+ "$ref": "#/$defs/key"
2212
+ },
2213
+ "maxItems": 12
2214
+ }
2215
+ }
2216
+ },
2217
+ "block_chart": {
2218
+ "type": "object",
2219
+ "additionalProperties": false,
2220
+ "required": [
2221
+ "type",
2222
+ "kind",
2223
+ "x",
2224
+ "series",
2225
+ "summary"
2226
+ ],
2227
+ "properties": {
2228
+ "type": {
2229
+ "const": "chart"
2230
+ },
2231
+ "id": {
2232
+ "$ref": "#/$defs/id"
2233
+ },
2234
+ "when": {
2235
+ "$ref": "#/$defs/predicate"
2236
+ },
2237
+ "fallback": {
2238
+ "type": "string",
2239
+ "maxLength": 2000
2240
+ },
2241
+ "title": {
2242
+ "$ref": "#/$defs/label"
2243
+ },
2244
+ "kind": {
2245
+ "enum": [
2246
+ "bar",
2247
+ "line",
2248
+ "area",
2249
+ "pie",
2250
+ "donut",
2251
+ "sparkline"
2252
+ ]
2253
+ },
2254
+ "x": {
2255
+ "$ref": "#/$defs/key"
2256
+ },
2257
+ "series": {
2258
+ "type": "array",
2259
+ "items": {
2260
+ "$ref": "#/$defs/column"
2261
+ },
2262
+ "maxItems": 6,
2263
+ "minItems": 1
2264
+ },
2265
+ "rows": {
2266
+ "type": "array",
2267
+ "items": {
2268
+ "$ref": "#/$defs/row"
2269
+ },
2270
+ "maxItems": 500
2271
+ },
2272
+ "source": {
2273
+ "$ref": "#/$defs/source"
2274
+ },
2275
+ "format": {
2276
+ "$ref": "#/$defs/statFormat"
2277
+ },
2278
+ "accent": {
2279
+ "$ref": "#/$defs/tone"
2280
+ },
2281
+ "summary": {
2282
+ "type": "string",
2283
+ "maxLength": 2000
2284
+ },
2285
+ "caption": {
2286
+ "$ref": "#/$defs/label"
2287
+ }
2288
+ }
2289
+ },
2290
+ "block_form": {
2291
+ "type": "object",
2292
+ "additionalProperties": false,
2293
+ "required": [
2294
+ "type",
2295
+ "fields"
2296
+ ],
2297
+ "properties": {
2298
+ "type": {
2299
+ "const": "form"
2300
+ },
2301
+ "id": {
2302
+ "$ref": "#/$defs/id"
2303
+ },
2304
+ "when": {
2305
+ "$ref": "#/$defs/predicate"
2306
+ },
2307
+ "fallback": {
2308
+ "type": "string",
2309
+ "maxLength": 2000
2310
+ },
2311
+ "title": {
2312
+ "$ref": "#/$defs/label"
2313
+ },
2314
+ "description": {
2315
+ "$ref": "#/$defs/text"
2316
+ },
2317
+ "fields": {
2318
+ "type": "array",
2319
+ "items": {
2320
+ "$ref": "#/$defs/formField"
2321
+ },
2322
+ "maxItems": 40,
2323
+ "minItems": 1
2324
+ },
2325
+ "layout": {
2326
+ "type": "object",
2327
+ "additionalProperties": false,
2328
+ "properties": {
2329
+ "mode": {
2330
+ "enum": [
2331
+ "sections",
2332
+ "steps"
2333
+ ]
2334
+ },
2335
+ "steps": {
2336
+ "type": "array",
2337
+ "items": {
2338
+ "type": "object",
2339
+ "additionalProperties": false,
2340
+ "required": [
2341
+ "title",
2342
+ "fields"
2343
+ ],
2344
+ "properties": {
2345
+ "title": {
2346
+ "$ref": "#/$defs/label"
2347
+ },
2348
+ "description": {
2349
+ "$ref": "#/$defs/text"
2350
+ },
2351
+ "fields": {
2352
+ "type": "array",
2353
+ "items": {
2354
+ "$ref": "#/$defs/key"
2355
+ },
2356
+ "maxItems": 40,
2357
+ "minItems": 1
2358
+ }
2359
+ }
2360
+ },
2361
+ "maxItems": 8
2362
+ }
2363
+ }
2364
+ },
2365
+ "submit": {
2366
+ "$ref": "#/$defs/action"
2367
+ },
2368
+ "actions": {
2369
+ "$ref": "#/$defs/actions"
2370
+ }
2371
+ }
2372
+ },
2373
+ "block_wizard": {
2374
+ "type": "object",
2375
+ "additionalProperties": false,
2376
+ "required": [
2377
+ "type"
2378
+ ],
2379
+ "properties": {
2380
+ "type": {
2381
+ "const": "wizard"
2382
+ },
2383
+ "id": {
2384
+ "$ref": "#/$defs/id"
2385
+ },
2386
+ "when": {
2387
+ "$ref": "#/$defs/predicate"
2388
+ },
2389
+ "fallback": {
2390
+ "type": "string",
2391
+ "maxLength": 2000
2392
+ },
2393
+ "title": {
2394
+ "$ref": "#/$defs/label"
2395
+ },
2396
+ "description": {
2397
+ "$ref": "#/$defs/text"
2398
+ },
2399
+ "fields": {
2400
+ "type": "array",
2401
+ "items": {
2402
+ "$ref": "#/$defs/formField"
2403
+ },
2404
+ "maxItems": 40,
2405
+ "minItems": 1
2406
+ },
2407
+ "steps": {
2408
+ "type": "array",
2409
+ "items": {
2410
+ "type": "object",
2411
+ "additionalProperties": false,
2412
+ "required": [
2413
+ "title",
2414
+ "fields"
2415
+ ],
2416
+ "properties": {
2417
+ "title": {
2418
+ "$ref": "#/$defs/label"
2419
+ },
2420
+ "description": {
2421
+ "$ref": "#/$defs/text"
2422
+ },
2423
+ "fields": {
2424
+ "type": "array",
2425
+ "items": {
2426
+ "$ref": "#/$defs/key"
2427
+ },
2428
+ "maxItems": 40,
2429
+ "minItems": 1
2430
+ }
2431
+ }
2432
+ },
2433
+ "maxItems": 8,
2434
+ "minItems": 1
2435
+ },
2436
+ "submit": {
2437
+ "$ref": "#/$defs/action"
2438
+ },
2439
+ "ref": {
2440
+ "type": "object",
2441
+ "additionalProperties": false,
2442
+ "required": [
2443
+ "action"
2444
+ ],
2445
+ "properties": {
2446
+ "action": {
2447
+ "type": "string",
2448
+ "maxLength": 160
2449
+ }
2450
+ }
2451
+ }
2452
+ }
2453
+ },
2454
+ "block_confirm": {
2455
+ "type": "object",
2456
+ "additionalProperties": false,
2457
+ "required": [
2458
+ "type",
2459
+ "title",
2460
+ "actions"
2461
+ ],
2462
+ "properties": {
2463
+ "type": {
2464
+ "const": "confirm"
2465
+ },
2466
+ "id": {
2467
+ "$ref": "#/$defs/id"
2468
+ },
2469
+ "when": {
2470
+ "$ref": "#/$defs/predicate"
2471
+ },
2472
+ "fallback": {
2473
+ "type": "string",
2474
+ "maxLength": 2000
2475
+ },
2476
+ "title": {
2477
+ "$ref": "#/$defs/label"
2478
+ },
2479
+ "description": {
2480
+ "$ref": "#/$defs/text"
2481
+ },
2482
+ "fields": {
2483
+ "type": "array",
2484
+ "items": {
2485
+ "$ref": "#/$defs/field"
2486
+ },
2487
+ "maxItems": 12
2488
+ },
2489
+ "inputs": {
2490
+ "type": "array",
2491
+ "items": {
2492
+ "type": "object",
2493
+ "additionalProperties": false,
2494
+ "required": [
2495
+ "name",
2496
+ "label",
2497
+ "kind"
2498
+ ],
2499
+ "properties": {
2500
+ "name": {
2501
+ "$ref": "#/$defs/key"
2502
+ },
2503
+ "label": {
2504
+ "$ref": "#/$defs/label"
2505
+ },
2506
+ "kind": {
2507
+ "enum": [
2508
+ "text",
2509
+ "textarea",
2510
+ "number",
2511
+ "switch",
2512
+ "select",
2513
+ "time",
2514
+ "date"
2515
+ ]
2516
+ },
2517
+ "value": {
2518
+ "$ref": "#/$defs/scalar"
2519
+ },
2520
+ "required": {
2521
+ "type": "boolean"
2522
+ },
2523
+ "options": {
2524
+ "type": "array",
2525
+ "items": {
2526
+ "$ref": "#/$defs/option"
2527
+ },
2528
+ "maxItems": 30
2529
+ },
2530
+ "help": {
2531
+ "type": "string",
2532
+ "maxLength": 160
2533
+ }
2534
+ }
2535
+ },
2536
+ "maxItems": 12
2537
+ },
2538
+ "actions": {
2539
+ "type": "array",
2540
+ "items": {
2541
+ "type": "object",
2542
+ "additionalProperties": false,
2543
+ "required": [
2544
+ "id",
2545
+ "label"
2546
+ ],
2547
+ "properties": {
2548
+ "id": {
2549
+ "type": "string",
2550
+ "pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*){1,3}$",
2551
+ "x-no-proto": true
2552
+ },
2553
+ "label": {
2554
+ "type": "string",
2555
+ "maxLength": 60
2556
+ },
2557
+ "variant": {
2558
+ "enum": [
2559
+ "primary",
2560
+ "secondary",
2561
+ "ghost",
2562
+ "danger"
2563
+ ]
2564
+ },
2565
+ "params": {
2566
+ "type": "object",
2567
+ "maxProperties": 8,
2568
+ "additionalProperties": {
2569
+ "$ref": "#/$defs/scalar"
2570
+ }
2571
+ }
2572
+ }
2573
+ },
2574
+ "maxItems": 6,
2575
+ "minItems": 1
2576
+ },
2577
+ "badges": {
2578
+ "type": "array",
2579
+ "items": {
2580
+ "$ref": "#/$defs/badge"
2581
+ },
2582
+ "maxItems": 6
2583
+ },
2584
+ "tone": {
2585
+ "$ref": "#/$defs/tone"
2586
+ }
2587
+ }
2588
+ },
2589
+ "block_settings": {
2590
+ "description": "Solo por referencia; nunca en línea.",
2591
+ "type": "object",
2592
+ "additionalProperties": false,
2593
+ "required": [
2594
+ "type",
2595
+ "addon",
2596
+ "scope"
2597
+ ],
2598
+ "properties": {
2599
+ "type": {
2600
+ "const": "settings"
2601
+ },
2602
+ "id": {
2603
+ "$ref": "#/$defs/id"
2604
+ },
2605
+ "when": {
2606
+ "$ref": "#/$defs/predicate"
2607
+ },
2608
+ "fallback": {
2609
+ "type": "string",
2610
+ "maxLength": 2000
2611
+ },
2612
+ "addon": {
2613
+ "type": "string",
2614
+ "pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9_]{0,63}$",
2615
+ "x-no-proto": true
2616
+ },
2617
+ "keys": {
2618
+ "type": "array",
2619
+ "items": {
2620
+ "$ref": "#/$defs/key"
2621
+ },
2622
+ "maxItems": 40
2623
+ },
2624
+ "scope": {
2625
+ "enum": [
2626
+ "org",
2627
+ "branch"
2628
+ ]
2629
+ },
2630
+ "section": {
2631
+ "type": "string",
2632
+ "maxLength": 64
2633
+ }
2634
+ }
2635
+ },
2636
+ "block_media": {
2637
+ "type": "object",
2638
+ "additionalProperties": false,
2639
+ "required": [
2640
+ "type",
2641
+ "src",
2642
+ "alt",
2643
+ "width",
2644
+ "height"
2645
+ ],
2646
+ "properties": {
2647
+ "type": {
2648
+ "const": "media"
2649
+ },
2650
+ "id": {
2651
+ "$ref": "#/$defs/id"
2652
+ },
2653
+ "when": {
2654
+ "$ref": "#/$defs/predicate"
2655
+ },
2656
+ "fallback": {
2657
+ "type": "string",
2658
+ "maxLength": 2000
2659
+ },
2660
+ "src": {
2661
+ "type": "string",
2662
+ "maxLength": 2048,
2663
+ "pattern": "^(asset:(?!(?:__proto__|constructor|prototype)$)[A-Za-z0-9_-]{1,64}|/[^/\\\\\\s][^\\\\\\s]*)$"
2664
+ },
2665
+ "alt": {
2666
+ "type": "string",
2667
+ "maxLength": 300
2668
+ },
2669
+ "width": {
2670
+ "type": "integer",
2671
+ "minimum": 1,
2672
+ "maximum": 4096
2673
+ },
2674
+ "height": {
2675
+ "type": "integer",
2676
+ "minimum": 1,
2677
+ "maximum": 4096
2678
+ },
2679
+ "caption": {
2680
+ "$ref": "#/$defs/label"
2681
+ }
2682
+ }
2683
+ },
2684
+ "block_slot": {
2685
+ "type": "object",
2686
+ "additionalProperties": false,
2687
+ "required": [
2688
+ "type",
2689
+ "name"
2690
+ ],
2691
+ "properties": {
2692
+ "type": {
2693
+ "const": "slot"
2694
+ },
2695
+ "id": {
2696
+ "$ref": "#/$defs/id"
2697
+ },
2698
+ "when": {
2699
+ "$ref": "#/$defs/predicate"
2700
+ },
2701
+ "fallback": {
2702
+ "type": "string",
2703
+ "maxLength": 2000
2704
+ },
2705
+ "name": {
2706
+ "type": "string",
2707
+ "pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*){1,3}$",
2708
+ "x-no-proto": true
2709
+ },
2710
+ "record": {
2711
+ "$ref": "#/$defs/value"
2712
+ }
2713
+ }
2714
+ },
2715
+ "block_ext": {
2716
+ "type": "object",
2717
+ "additionalProperties": false,
2718
+ "required": [
2719
+ "type",
2720
+ "ext"
2721
+ ],
2722
+ "properties": {
2723
+ "type": {
2724
+ "const": "ext"
2725
+ },
2726
+ "id": {
2727
+ "$ref": "#/$defs/id"
2728
+ },
2729
+ "when": {
2730
+ "$ref": "#/$defs/predicate"
2731
+ },
2732
+ "fallback": {
2733
+ "type": "string",
2734
+ "maxLength": 2000
2735
+ },
2736
+ "ext": {
2737
+ "type": "string",
2738
+ "pattern": "^(?!(?:.*[.:@])?(?:__proto__|constructor|prototype)(?:[.:@]|$))[a-z][a-z0-9_]{0,63}\\.[a-z][a-z0-9_]{0,63}@[0-9]{1,3}$",
2739
+ "x-no-proto": true
2740
+ },
2741
+ "props": {
2742
+ "type": "object",
2743
+ "maxProperties": 16,
2744
+ "additionalProperties": {
2745
+ "anyOf": [
2746
+ {
2747
+ "$ref": "#/$defs/scalar"
2748
+ },
2749
+ {
2750
+ "type": "array",
2751
+ "items": {
2752
+ "type": [
2753
+ "string",
2754
+ "number",
2755
+ "boolean"
2756
+ ]
2757
+ },
2758
+ "maxItems": 50
2759
+ }
2760
+ ]
2761
+ }
2762
+ }
2763
+ }
2764
+ }
2765
+ }
2766
+ }