@hablala/schema 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,2121 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "additionalProperties": false,
4
+ "properties": {
5
+ "agents": {
6
+ "anyOf": [
7
+ {
8
+ "items": {
9
+ "additionalProperties": false,
10
+ "properties": {
11
+ "agentPermissions": {
12
+ "description": "RBAC que ATENÚA el scope delegado por debajo del dueño (nunca amplía; scope attenuation).",
13
+ "items": {
14
+ "type": "string"
15
+ },
16
+ "type": "array"
17
+ },
18
+ "allowedActivities": {
19
+ "description": "OPACO (BYO runtime): allowlist de tools que interpreta el runtime externo. No la valida Hablalá.",
20
+ "items": {
21
+ "type": "string"
22
+ },
23
+ "type": "array"
24
+ },
25
+ "approvalRequired": {
26
+ "description": "Tools que exigen aprobación humana antes de ejecutarse (human-in-the-loop, OWASP LLM06).",
27
+ "items": {
28
+ "type": "string"
29
+ },
30
+ "type": "array"
31
+ },
32
+ "authoritySource": {
33
+ "description": "De dónde saca autoridad el agente: delegada del dueño (OBO) o asignada a un rol.",
34
+ "enum": [
35
+ "delegated",
36
+ "assigned"
37
+ ],
38
+ "type": "string"
39
+ },
40
+ "description": {
41
+ "type": "string"
42
+ },
43
+ "handle": {
44
+ "description": "@handle único en la organización (match key).",
45
+ "minLength": 1,
46
+ "type": "string"
47
+ },
48
+ "handoffs": {
49
+ "description": "Handles de agentes a los que este puede TRANSFERIR; el scope de destino también atenúa.",
50
+ "items": {
51
+ "type": "string"
52
+ },
53
+ "type": "array"
54
+ },
55
+ "model": {
56
+ "description": "OPACO (BYO runtime): modelo para el runtime externo. No lo valida Hablalá.",
57
+ "type": "string"
58
+ },
59
+ "name": {
60
+ "type": "string"
61
+ },
62
+ "ownerUserId": {
63
+ "description": "Id público (`user_…`) del humano accountable por cuya cuenta actúa el agente (OBO). Solo al crear.",
64
+ "type": "string"
65
+ },
66
+ "provider": {
67
+ "description": "OPACO (BYO runtime): slug del proveedor de LLM para el runtime externo. No lo valida Hablalá.",
68
+ "type": "string"
69
+ },
70
+ "systemPrompt": {
71
+ "type": "string"
72
+ }
73
+ },
74
+ "required": [
75
+ "handle"
76
+ ],
77
+ "type": "object"
78
+ },
79
+ "type": "array"
80
+ },
81
+ {
82
+ "additionalProperties": false,
83
+ "properties": {
84
+ "items": {
85
+ "items": {
86
+ "additionalProperties": false,
87
+ "properties": {
88
+ "agentPermissions": {
89
+ "description": "RBAC que ATENÚA el scope delegado por debajo del dueño (nunca amplía; scope attenuation).",
90
+ "items": {
91
+ "type": "string"
92
+ },
93
+ "type": "array"
94
+ },
95
+ "allowedActivities": {
96
+ "description": "OPACO (BYO runtime): allowlist de tools que interpreta el runtime externo. No la valida Hablalá.",
97
+ "items": {
98
+ "type": "string"
99
+ },
100
+ "type": "array"
101
+ },
102
+ "approvalRequired": {
103
+ "description": "Tools que exigen aprobación humana antes de ejecutarse (human-in-the-loop, OWASP LLM06).",
104
+ "items": {
105
+ "type": "string"
106
+ },
107
+ "type": "array"
108
+ },
109
+ "authoritySource": {
110
+ "description": "De dónde saca autoridad el agente: delegada del dueño (OBO) o asignada a un rol.",
111
+ "enum": [
112
+ "delegated",
113
+ "assigned"
114
+ ],
115
+ "type": "string"
116
+ },
117
+ "description": {
118
+ "type": "string"
119
+ },
120
+ "handle": {
121
+ "description": "@handle único en la organización (match key).",
122
+ "minLength": 1,
123
+ "type": "string"
124
+ },
125
+ "handoffs": {
126
+ "description": "Handles de agentes a los que este puede TRANSFERIR; el scope de destino también atenúa.",
127
+ "items": {
128
+ "type": "string"
129
+ },
130
+ "type": "array"
131
+ },
132
+ "model": {
133
+ "description": "OPACO (BYO runtime): modelo para el runtime externo. No lo valida Hablalá.",
134
+ "type": "string"
135
+ },
136
+ "name": {
137
+ "type": "string"
138
+ },
139
+ "ownerUserId": {
140
+ "description": "Id público (`user_…`) del humano accountable por cuya cuenta actúa el agente (OBO). Solo al crear.",
141
+ "type": "string"
142
+ },
143
+ "provider": {
144
+ "description": "OPACO (BYO runtime): slug del proveedor de LLM para el runtime externo. No lo valida Hablalá.",
145
+ "type": "string"
146
+ },
147
+ "systemPrompt": {
148
+ "type": "string"
149
+ }
150
+ },
151
+ "required": [
152
+ "handle"
153
+ ],
154
+ "type": "object"
155
+ },
156
+ "type": "array"
157
+ },
158
+ "mode": {
159
+ "enum": [
160
+ "authoritative",
161
+ "additive"
162
+ ],
163
+ "type": "string"
164
+ }
165
+ },
166
+ "required": [
167
+ "mode",
168
+ "items"
169
+ ],
170
+ "type": "object"
171
+ }
172
+ ]
173
+ },
174
+ "channels": {
175
+ "anyOf": [
176
+ {
177
+ "items": {
178
+ "additionalProperties": false,
179
+ "properties": {
180
+ "agents": {
181
+ "items": {
182
+ "additionalProperties": false,
183
+ "properties": {
184
+ "handle": {
185
+ "description": "Handle del agente cuyo bot atiende el canal.",
186
+ "minLength": 1,
187
+ "type": "string"
188
+ },
189
+ "role": {
190
+ "anyOf": [
191
+ {
192
+ "enum": [
193
+ "admin",
194
+ "member"
195
+ ],
196
+ "type": "string"
197
+ },
198
+ {
199
+ "type": "null"
200
+ }
201
+ ]
202
+ }
203
+ },
204
+ "required": [
205
+ "handle"
206
+ ],
207
+ "type": "object"
208
+ },
209
+ "type": "array"
210
+ },
211
+ "avatarUrl": {
212
+ "anyOf": [
213
+ {
214
+ "type": "string"
215
+ },
216
+ {
217
+ "type": "null"
218
+ }
219
+ ]
220
+ },
221
+ "initialMembers": {
222
+ "items": {
223
+ "additionalProperties": false,
224
+ "properties": {
225
+ "role": {
226
+ "enum": [
227
+ "owner",
228
+ "admin",
229
+ "member"
230
+ ],
231
+ "type": "string"
232
+ },
233
+ "user": {
234
+ "description": "Username del usuario a sembrar.",
235
+ "minLength": 1,
236
+ "type": "string"
237
+ }
238
+ },
239
+ "required": [
240
+ "user"
241
+ ],
242
+ "type": "object"
243
+ },
244
+ "type": "array"
245
+ },
246
+ "isBroadcast": {
247
+ "description": "Solo owners/admins postean, el resto lee.",
248
+ "type": "boolean"
249
+ },
250
+ "isPrivate": {
251
+ "description": "Solo por invitación (true) vs descubrible (false).",
252
+ "type": "boolean"
253
+ },
254
+ "name": {
255
+ "anyOf": [
256
+ {
257
+ "type": "string"
258
+ },
259
+ {
260
+ "type": "null"
261
+ }
262
+ ],
263
+ "description": "Nombre visible (default: el slug)."
264
+ },
265
+ "slug": {
266
+ "description": "Identidad estable, única por organización (match key).",
267
+ "minLength": 1,
268
+ "type": "string"
269
+ },
270
+ "space": {
271
+ "anyOf": [
272
+ {
273
+ "type": "string"
274
+ },
275
+ {
276
+ "type": "null"
277
+ }
278
+ ],
279
+ "description": "Slug del space al que pertenece, o ausente."
280
+ },
281
+ "topic": {
282
+ "anyOf": [
283
+ {
284
+ "type": "string"
285
+ },
286
+ {
287
+ "type": "null"
288
+ }
289
+ ]
290
+ }
291
+ },
292
+ "required": [
293
+ "slug"
294
+ ],
295
+ "type": "object"
296
+ },
297
+ "type": "array"
298
+ },
299
+ {
300
+ "additionalProperties": false,
301
+ "properties": {
302
+ "items": {
303
+ "items": {
304
+ "additionalProperties": false,
305
+ "properties": {
306
+ "agents": {
307
+ "items": {
308
+ "additionalProperties": false,
309
+ "properties": {
310
+ "handle": {
311
+ "description": "Handle del agente cuyo bot atiende el canal.",
312
+ "minLength": 1,
313
+ "type": "string"
314
+ },
315
+ "role": {
316
+ "anyOf": [
317
+ {
318
+ "enum": [
319
+ "admin",
320
+ "member"
321
+ ],
322
+ "type": "string"
323
+ },
324
+ {
325
+ "type": "null"
326
+ }
327
+ ]
328
+ }
329
+ },
330
+ "required": [
331
+ "handle"
332
+ ],
333
+ "type": "object"
334
+ },
335
+ "type": "array"
336
+ },
337
+ "avatarUrl": {
338
+ "anyOf": [
339
+ {
340
+ "type": "string"
341
+ },
342
+ {
343
+ "type": "null"
344
+ }
345
+ ]
346
+ },
347
+ "initialMembers": {
348
+ "items": {
349
+ "additionalProperties": false,
350
+ "properties": {
351
+ "role": {
352
+ "enum": [
353
+ "owner",
354
+ "admin",
355
+ "member"
356
+ ],
357
+ "type": "string"
358
+ },
359
+ "user": {
360
+ "description": "Username del usuario a sembrar.",
361
+ "minLength": 1,
362
+ "type": "string"
363
+ }
364
+ },
365
+ "required": [
366
+ "user"
367
+ ],
368
+ "type": "object"
369
+ },
370
+ "type": "array"
371
+ },
372
+ "isBroadcast": {
373
+ "description": "Solo owners/admins postean, el resto lee.",
374
+ "type": "boolean"
375
+ },
376
+ "isPrivate": {
377
+ "description": "Solo por invitación (true) vs descubrible (false).",
378
+ "type": "boolean"
379
+ },
380
+ "name": {
381
+ "anyOf": [
382
+ {
383
+ "type": "string"
384
+ },
385
+ {
386
+ "type": "null"
387
+ }
388
+ ],
389
+ "description": "Nombre visible (default: el slug)."
390
+ },
391
+ "slug": {
392
+ "description": "Identidad estable, única por organización (match key).",
393
+ "minLength": 1,
394
+ "type": "string"
395
+ },
396
+ "space": {
397
+ "anyOf": [
398
+ {
399
+ "type": "string"
400
+ },
401
+ {
402
+ "type": "null"
403
+ }
404
+ ],
405
+ "description": "Slug del space al que pertenece, o ausente."
406
+ },
407
+ "topic": {
408
+ "anyOf": [
409
+ {
410
+ "type": "string"
411
+ },
412
+ {
413
+ "type": "null"
414
+ }
415
+ ]
416
+ }
417
+ },
418
+ "required": [
419
+ "slug"
420
+ ],
421
+ "type": "object"
422
+ },
423
+ "type": "array"
424
+ },
425
+ "mode": {
426
+ "enum": [
427
+ "authoritative",
428
+ "additive"
429
+ ],
430
+ "type": "string"
431
+ }
432
+ },
433
+ "required": [
434
+ "mode",
435
+ "items"
436
+ ],
437
+ "type": "object"
438
+ }
439
+ ]
440
+ },
441
+ "domains": {
442
+ "anyOf": [
443
+ {
444
+ "items": {
445
+ "additionalProperties": false,
446
+ "properties": {
447
+ "domain": {
448
+ "description": "El dominio (match key), p. ej. app.acme.com.",
449
+ "minLength": 1,
450
+ "type": "string"
451
+ },
452
+ "status": {
453
+ "anyOf": [
454
+ {
455
+ "enum": [
456
+ "pending",
457
+ "verifying",
458
+ "active",
459
+ "error"
460
+ ],
461
+ "type": "string"
462
+ },
463
+ {
464
+ "type": "null"
465
+ }
466
+ ],
467
+ "description": "Read-only; solo lo emite `pull`, no se declara."
468
+ }
469
+ },
470
+ "required": [
471
+ "domain"
472
+ ],
473
+ "type": "object"
474
+ },
475
+ "type": "array"
476
+ },
477
+ {
478
+ "additionalProperties": false,
479
+ "properties": {
480
+ "items": {
481
+ "items": {
482
+ "additionalProperties": false,
483
+ "properties": {
484
+ "domain": {
485
+ "description": "El dominio (match key), p. ej. app.acme.com.",
486
+ "minLength": 1,
487
+ "type": "string"
488
+ },
489
+ "status": {
490
+ "anyOf": [
491
+ {
492
+ "enum": [
493
+ "pending",
494
+ "verifying",
495
+ "active",
496
+ "error"
497
+ ],
498
+ "type": "string"
499
+ },
500
+ {
501
+ "type": "null"
502
+ }
503
+ ],
504
+ "description": "Read-only; solo lo emite `pull`, no se declara."
505
+ }
506
+ },
507
+ "required": [
508
+ "domain"
509
+ ],
510
+ "type": "object"
511
+ },
512
+ "type": "array"
513
+ },
514
+ "mode": {
515
+ "enum": [
516
+ "authoritative",
517
+ "additive"
518
+ ],
519
+ "type": "string"
520
+ }
521
+ },
522
+ "required": [
523
+ "mode",
524
+ "items"
525
+ ],
526
+ "type": "object"
527
+ }
528
+ ]
529
+ },
530
+ "egressConnections": {
531
+ "anyOf": [
532
+ {
533
+ "items": {
534
+ "additionalProperties": false,
535
+ "properties": {
536
+ "allowedHosts": {
537
+ "description": "La allowlist de hosts (OWASP SSRF positive allow list). Hosts limpios, sin esquema/puerto/ruta (p. ej. \"api.stripe.com\"). Un http_request solo puede apuntar a uno de ellos.",
538
+ "items": {
539
+ "type": "string"
540
+ },
541
+ "minItems": 1,
542
+ "type": "array"
543
+ },
544
+ "authHeader": {
545
+ "description": "Solo para api_key: el nombre del header (p. ej. \"X-Api-Key\").",
546
+ "type": "string"
547
+ },
548
+ "authType": {
549
+ "description": "none | api_key | bearer | basic. Omitido = none. El secret se setea out-of-band.",
550
+ "enum": [
551
+ "none",
552
+ "api_key",
553
+ "bearer",
554
+ "basic"
555
+ ],
556
+ "type": "string"
557
+ },
558
+ "defaultHeaders": {
559
+ "additionalProperties": {
560
+ "type": "string"
561
+ },
562
+ "description": "Headers estáticos NO secretos mandados en cada request (el request los sobrescribe).",
563
+ "propertyNames": {
564
+ "type": "string"
565
+ },
566
+ "type": "object"
567
+ },
568
+ "description": {
569
+ "description": "Descripción legible del destino (panel/AX).",
570
+ "type": "string"
571
+ },
572
+ "slug": {
573
+ "description": "Identidad estable, única por organización (match key).",
574
+ "minLength": 1,
575
+ "type": "string"
576
+ },
577
+ "status": {
578
+ "description": "Omitido = enabled.",
579
+ "enum": [
580
+ "enabled",
581
+ "disabled"
582
+ ],
583
+ "type": "string"
584
+ }
585
+ },
586
+ "required": [
587
+ "slug",
588
+ "allowedHosts"
589
+ ],
590
+ "type": "object"
591
+ },
592
+ "type": "array"
593
+ },
594
+ {
595
+ "additionalProperties": false,
596
+ "properties": {
597
+ "items": {
598
+ "items": {
599
+ "additionalProperties": false,
600
+ "properties": {
601
+ "allowedHosts": {
602
+ "description": "La allowlist de hosts (OWASP SSRF positive allow list). Hosts limpios, sin esquema/puerto/ruta (p. ej. \"api.stripe.com\"). Un http_request solo puede apuntar a uno de ellos.",
603
+ "items": {
604
+ "type": "string"
605
+ },
606
+ "minItems": 1,
607
+ "type": "array"
608
+ },
609
+ "authHeader": {
610
+ "description": "Solo para api_key: el nombre del header (p. ej. \"X-Api-Key\").",
611
+ "type": "string"
612
+ },
613
+ "authType": {
614
+ "description": "none | api_key | bearer | basic. Omitido = none. El secret se setea out-of-band.",
615
+ "enum": [
616
+ "none",
617
+ "api_key",
618
+ "bearer",
619
+ "basic"
620
+ ],
621
+ "type": "string"
622
+ },
623
+ "defaultHeaders": {
624
+ "additionalProperties": {
625
+ "type": "string"
626
+ },
627
+ "description": "Headers estáticos NO secretos mandados en cada request (el request los sobrescribe).",
628
+ "propertyNames": {
629
+ "type": "string"
630
+ },
631
+ "type": "object"
632
+ },
633
+ "description": {
634
+ "description": "Descripción legible del destino (panel/AX).",
635
+ "type": "string"
636
+ },
637
+ "slug": {
638
+ "description": "Identidad estable, única por organización (match key).",
639
+ "minLength": 1,
640
+ "type": "string"
641
+ },
642
+ "status": {
643
+ "description": "Omitido = enabled.",
644
+ "enum": [
645
+ "enabled",
646
+ "disabled"
647
+ ],
648
+ "type": "string"
649
+ }
650
+ },
651
+ "required": [
652
+ "slug",
653
+ "allowedHosts"
654
+ ],
655
+ "type": "object"
656
+ },
657
+ "type": "array"
658
+ },
659
+ "mode": {
660
+ "enum": [
661
+ "authoritative",
662
+ "additive"
663
+ ],
664
+ "type": "string"
665
+ }
666
+ },
667
+ "required": [
668
+ "mode",
669
+ "items"
670
+ ],
671
+ "type": "object"
672
+ }
673
+ ]
674
+ },
675
+ "invitations": {
676
+ "anyOf": [
677
+ {
678
+ "items": {
679
+ "additionalProperties": false,
680
+ "properties": {
681
+ "email": {
682
+ "description": "Email del invitado (match key).",
683
+ "minLength": 1,
684
+ "type": "string"
685
+ },
686
+ "role": {
687
+ "anyOf": [
688
+ {
689
+ "type": "string"
690
+ },
691
+ {
692
+ "type": "null"
693
+ }
694
+ ],
695
+ "description": "Nombre de un rol a asignar al aceptar; omitido = sin rol."
696
+ }
697
+ },
698
+ "required": [
699
+ "email"
700
+ ],
701
+ "type": "object"
702
+ },
703
+ "type": "array"
704
+ },
705
+ {
706
+ "additionalProperties": false,
707
+ "properties": {
708
+ "items": {
709
+ "items": {
710
+ "additionalProperties": false,
711
+ "properties": {
712
+ "email": {
713
+ "description": "Email del invitado (match key).",
714
+ "minLength": 1,
715
+ "type": "string"
716
+ },
717
+ "role": {
718
+ "anyOf": [
719
+ {
720
+ "type": "string"
721
+ },
722
+ {
723
+ "type": "null"
724
+ }
725
+ ],
726
+ "description": "Nombre de un rol a asignar al aceptar; omitido = sin rol."
727
+ }
728
+ },
729
+ "required": [
730
+ "email"
731
+ ],
732
+ "type": "object"
733
+ },
734
+ "type": "array"
735
+ },
736
+ "mode": {
737
+ "enum": [
738
+ "authoritative",
739
+ "additive"
740
+ ],
741
+ "type": "string"
742
+ }
743
+ },
744
+ "required": [
745
+ "mode",
746
+ "items"
747
+ ],
748
+ "type": "object"
749
+ }
750
+ ]
751
+ },
752
+ "kind": {
753
+ "enum": [
754
+ "organization",
755
+ "individual"
756
+ ],
757
+ "type": "string"
758
+ },
759
+ "objects": {
760
+ "anyOf": [
761
+ {
762
+ "items": {
763
+ "additionalProperties": false,
764
+ "properties": {
765
+ "apiName": {
766
+ "description": "Identificador estable (snake_case). `agent` es de sistema y no declarable.",
767
+ "minLength": 1,
768
+ "type": "string"
769
+ },
770
+ "config": {
771
+ "additionalProperties": {},
772
+ "description": "Config de render/comportamiento.",
773
+ "propertyNames": {
774
+ "type": "string"
775
+ },
776
+ "type": "object"
777
+ },
778
+ "description": {
779
+ "description": "Obligatorio al crear: contexto para LLMs vía MCP.",
780
+ "type": "string"
781
+ },
782
+ "fields": {
783
+ "items": {
784
+ "additionalProperties": false,
785
+ "properties": {
786
+ "apiName": {
787
+ "description": "Identificador estable (snake_case).",
788
+ "minLength": 1,
789
+ "type": "string"
790
+ },
791
+ "config": {},
792
+ "dataType": {
793
+ "enum": [
794
+ "text",
795
+ "number",
796
+ "boolean",
797
+ "date",
798
+ "timestamp",
799
+ "select",
800
+ "multiselect",
801
+ "reference",
802
+ "file",
803
+ "formula",
804
+ "rollup"
805
+ ],
806
+ "type": "string"
807
+ },
808
+ "defaultValue": {},
809
+ "description": {
810
+ "description": "Obligatorio al crear: contexto para LLMs vía MCP.",
811
+ "type": "string"
812
+ },
813
+ "embedInVector": {
814
+ "type": "boolean"
815
+ },
816
+ "isIndexed": {
817
+ "type": "boolean"
818
+ },
819
+ "isRequired": {
820
+ "type": "boolean"
821
+ },
822
+ "isUnique": {
823
+ "type": "boolean"
824
+ },
825
+ "synonyms": {
826
+ "items": {
827
+ "type": "string"
828
+ },
829
+ "type": "array"
830
+ },
831
+ "title": {
832
+ "type": "string"
833
+ }
834
+ },
835
+ "required": [
836
+ "apiName",
837
+ "dataType"
838
+ ],
839
+ "type": "object"
840
+ },
841
+ "type": "array"
842
+ },
843
+ "manageability": {
844
+ "enum": [
845
+ "tenant",
846
+ "seeded",
847
+ "system"
848
+ ],
849
+ "type": "string"
850
+ },
851
+ "reference": {
852
+ "items": {
853
+ "additionalProperties": false,
854
+ "properties": {
855
+ "properties": {
856
+ "additionalProperties": {},
857
+ "description": "Valores del record por slug de field. Incluye la clave de negocio única.",
858
+ "propertyNames": {
859
+ "type": "string"
860
+ },
861
+ "type": "object"
862
+ }
863
+ },
864
+ "required": [
865
+ "properties"
866
+ ],
867
+ "type": "object"
868
+ },
869
+ "type": "array"
870
+ },
871
+ "synonyms": {
872
+ "description": "Sinónimos del object para búsqueda/LLM.",
873
+ "items": {
874
+ "type": "string"
875
+ },
876
+ "type": "array"
877
+ },
878
+ "title": {
879
+ "description": "Nombre plural para UI.",
880
+ "type": "string"
881
+ },
882
+ "titleFieldApiName": {
883
+ "description": "Primary field: apiName del field que titula un record de este object.",
884
+ "type": "string"
885
+ },
886
+ "titleSingular": {
887
+ "type": "string"
888
+ }
889
+ },
890
+ "required": [
891
+ "apiName"
892
+ ],
893
+ "type": "object"
894
+ },
895
+ "type": "array"
896
+ },
897
+ {
898
+ "additionalProperties": false,
899
+ "properties": {
900
+ "items": {
901
+ "items": {
902
+ "additionalProperties": false,
903
+ "properties": {
904
+ "apiName": {
905
+ "description": "Identificador estable (snake_case). `agent` es de sistema y no declarable.",
906
+ "minLength": 1,
907
+ "type": "string"
908
+ },
909
+ "config": {
910
+ "additionalProperties": {},
911
+ "description": "Config de render/comportamiento.",
912
+ "propertyNames": {
913
+ "type": "string"
914
+ },
915
+ "type": "object"
916
+ },
917
+ "description": {
918
+ "description": "Obligatorio al crear: contexto para LLMs vía MCP.",
919
+ "type": "string"
920
+ },
921
+ "fields": {
922
+ "items": {
923
+ "additionalProperties": false,
924
+ "properties": {
925
+ "apiName": {
926
+ "description": "Identificador estable (snake_case).",
927
+ "minLength": 1,
928
+ "type": "string"
929
+ },
930
+ "config": {},
931
+ "dataType": {
932
+ "enum": [
933
+ "text",
934
+ "number",
935
+ "boolean",
936
+ "date",
937
+ "timestamp",
938
+ "select",
939
+ "multiselect",
940
+ "reference",
941
+ "file",
942
+ "formula",
943
+ "rollup"
944
+ ],
945
+ "type": "string"
946
+ },
947
+ "defaultValue": {},
948
+ "description": {
949
+ "description": "Obligatorio al crear: contexto para LLMs vía MCP.",
950
+ "type": "string"
951
+ },
952
+ "embedInVector": {
953
+ "type": "boolean"
954
+ },
955
+ "isIndexed": {
956
+ "type": "boolean"
957
+ },
958
+ "isRequired": {
959
+ "type": "boolean"
960
+ },
961
+ "isUnique": {
962
+ "type": "boolean"
963
+ },
964
+ "synonyms": {
965
+ "items": {
966
+ "type": "string"
967
+ },
968
+ "type": "array"
969
+ },
970
+ "title": {
971
+ "type": "string"
972
+ }
973
+ },
974
+ "required": [
975
+ "apiName",
976
+ "dataType"
977
+ ],
978
+ "type": "object"
979
+ },
980
+ "type": "array"
981
+ },
982
+ "manageability": {
983
+ "enum": [
984
+ "tenant",
985
+ "seeded",
986
+ "system"
987
+ ],
988
+ "type": "string"
989
+ },
990
+ "reference": {
991
+ "items": {
992
+ "additionalProperties": false,
993
+ "properties": {
994
+ "properties": {
995
+ "additionalProperties": {},
996
+ "description": "Valores del record por slug de field. Incluye la clave de negocio única.",
997
+ "propertyNames": {
998
+ "type": "string"
999
+ },
1000
+ "type": "object"
1001
+ }
1002
+ },
1003
+ "required": [
1004
+ "properties"
1005
+ ],
1006
+ "type": "object"
1007
+ },
1008
+ "type": "array"
1009
+ },
1010
+ "synonyms": {
1011
+ "description": "Sinónimos del object para búsqueda/LLM.",
1012
+ "items": {
1013
+ "type": "string"
1014
+ },
1015
+ "type": "array"
1016
+ },
1017
+ "title": {
1018
+ "description": "Nombre plural para UI.",
1019
+ "type": "string"
1020
+ },
1021
+ "titleFieldApiName": {
1022
+ "description": "Primary field: apiName del field que titula un record de este object.",
1023
+ "type": "string"
1024
+ },
1025
+ "titleSingular": {
1026
+ "type": "string"
1027
+ }
1028
+ },
1029
+ "required": [
1030
+ "apiName"
1031
+ ],
1032
+ "type": "object"
1033
+ },
1034
+ "type": "array"
1035
+ },
1036
+ "mode": {
1037
+ "enum": [
1038
+ "authoritative",
1039
+ "additive"
1040
+ ],
1041
+ "type": "string"
1042
+ }
1043
+ },
1044
+ "required": [
1045
+ "mode",
1046
+ "items"
1047
+ ],
1048
+ "type": "object"
1049
+ }
1050
+ ]
1051
+ },
1052
+ "packages": {
1053
+ "items": {
1054
+ "type": "string"
1055
+ },
1056
+ "type": "array"
1057
+ },
1058
+ "policies": {
1059
+ "anyOf": [
1060
+ {
1061
+ "items": {
1062
+ "additionalProperties": false,
1063
+ "properties": {
1064
+ "action": {
1065
+ "anyOf": [
1066
+ {
1067
+ "enum": [
1068
+ "read",
1069
+ "create",
1070
+ "update",
1071
+ "delete",
1072
+ "signal"
1073
+ ],
1074
+ "type": "string"
1075
+ },
1076
+ {
1077
+ "items": {
1078
+ "enum": [
1079
+ "read",
1080
+ "create",
1081
+ "update",
1082
+ "delete",
1083
+ "signal"
1084
+ ],
1085
+ "type": "string"
1086
+ },
1087
+ "minItems": 1,
1088
+ "type": "array"
1089
+ }
1090
+ ]
1091
+ },
1092
+ "apiName": {
1093
+ "description": "Identidad estable, única por organización (match key).",
1094
+ "minLength": 1,
1095
+ "type": "string"
1096
+ },
1097
+ "condition": {
1098
+ "additionalProperties": {},
1099
+ "description": "Predicado ABAC por fila (opcional).",
1100
+ "propertyNames": {
1101
+ "type": "string"
1102
+ },
1103
+ "type": "object"
1104
+ },
1105
+ "effect": {
1106
+ "enum": [
1107
+ "allow",
1108
+ "deny"
1109
+ ],
1110
+ "type": "string"
1111
+ },
1112
+ "fieldMask": {
1113
+ "anyOf": [
1114
+ {
1115
+ "items": {
1116
+ "type": "string"
1117
+ },
1118
+ "type": "array"
1119
+ },
1120
+ {
1121
+ "type": "null"
1122
+ }
1123
+ ],
1124
+ "description": "Slugs visibles; omitido = todos los permitidos."
1125
+ },
1126
+ "object": {
1127
+ "anyOf": [
1128
+ {
1129
+ "type": "string"
1130
+ },
1131
+ {
1132
+ "type": "null"
1133
+ }
1134
+ ],
1135
+ "description": "Slug del object gobernado; omitido = toda la organización."
1136
+ },
1137
+ "principal": {
1138
+ "description": "public | end_user | access_token | role:<name> | agent:<handle>.",
1139
+ "minLength": 1,
1140
+ "type": "string"
1141
+ }
1142
+ },
1143
+ "required": [
1144
+ "apiName",
1145
+ "effect",
1146
+ "action",
1147
+ "principal"
1148
+ ],
1149
+ "type": "object"
1150
+ },
1151
+ "type": "array"
1152
+ },
1153
+ {
1154
+ "additionalProperties": false,
1155
+ "properties": {
1156
+ "items": {
1157
+ "items": {
1158
+ "additionalProperties": false,
1159
+ "properties": {
1160
+ "action": {
1161
+ "anyOf": [
1162
+ {
1163
+ "enum": [
1164
+ "read",
1165
+ "create",
1166
+ "update",
1167
+ "delete",
1168
+ "signal"
1169
+ ],
1170
+ "type": "string"
1171
+ },
1172
+ {
1173
+ "items": {
1174
+ "enum": [
1175
+ "read",
1176
+ "create",
1177
+ "update",
1178
+ "delete",
1179
+ "signal"
1180
+ ],
1181
+ "type": "string"
1182
+ },
1183
+ "minItems": 1,
1184
+ "type": "array"
1185
+ }
1186
+ ]
1187
+ },
1188
+ "apiName": {
1189
+ "description": "Identidad estable, única por organización (match key).",
1190
+ "minLength": 1,
1191
+ "type": "string"
1192
+ },
1193
+ "condition": {
1194
+ "additionalProperties": {},
1195
+ "description": "Predicado ABAC por fila (opcional).",
1196
+ "propertyNames": {
1197
+ "type": "string"
1198
+ },
1199
+ "type": "object"
1200
+ },
1201
+ "effect": {
1202
+ "enum": [
1203
+ "allow",
1204
+ "deny"
1205
+ ],
1206
+ "type": "string"
1207
+ },
1208
+ "fieldMask": {
1209
+ "anyOf": [
1210
+ {
1211
+ "items": {
1212
+ "type": "string"
1213
+ },
1214
+ "type": "array"
1215
+ },
1216
+ {
1217
+ "type": "null"
1218
+ }
1219
+ ],
1220
+ "description": "Slugs visibles; omitido = todos los permitidos."
1221
+ },
1222
+ "object": {
1223
+ "anyOf": [
1224
+ {
1225
+ "type": "string"
1226
+ },
1227
+ {
1228
+ "type": "null"
1229
+ }
1230
+ ],
1231
+ "description": "Slug del object gobernado; omitido = toda la organización."
1232
+ },
1233
+ "principal": {
1234
+ "description": "public | end_user | access_token | role:<name> | agent:<handle>.",
1235
+ "minLength": 1,
1236
+ "type": "string"
1237
+ }
1238
+ },
1239
+ "required": [
1240
+ "apiName",
1241
+ "effect",
1242
+ "action",
1243
+ "principal"
1244
+ ],
1245
+ "type": "object"
1246
+ },
1247
+ "type": "array"
1248
+ },
1249
+ "mode": {
1250
+ "enum": [
1251
+ "authoritative",
1252
+ "additive"
1253
+ ],
1254
+ "type": "string"
1255
+ }
1256
+ },
1257
+ "required": [
1258
+ "mode",
1259
+ "items"
1260
+ ],
1261
+ "type": "object"
1262
+ }
1263
+ ]
1264
+ },
1265
+ "privacy": {
1266
+ "additionalProperties": {},
1267
+ "propertyNames": {
1268
+ "type": "string"
1269
+ },
1270
+ "type": "object"
1271
+ },
1272
+ "profile": {
1273
+ "additionalProperties": false,
1274
+ "properties": {
1275
+ "avatarUrl": {
1276
+ "anyOf": [
1277
+ {
1278
+ "type": "string"
1279
+ },
1280
+ {
1281
+ "type": "null"
1282
+ }
1283
+ ]
1284
+ },
1285
+ "locale": {
1286
+ "anyOf": [
1287
+ {
1288
+ "type": "string"
1289
+ },
1290
+ {
1291
+ "type": "null"
1292
+ }
1293
+ ],
1294
+ "description": "BCP-47, p. ej. es-MX."
1295
+ },
1296
+ "name": {
1297
+ "anyOf": [
1298
+ {
1299
+ "type": "string"
1300
+ },
1301
+ {
1302
+ "type": "null"
1303
+ }
1304
+ ]
1305
+ },
1306
+ "timeZone": {
1307
+ "anyOf": [
1308
+ {
1309
+ "type": "string"
1310
+ },
1311
+ {
1312
+ "type": "null"
1313
+ }
1314
+ ],
1315
+ "description": "IANA tz, p. ej. America/Mexico_City."
1316
+ }
1317
+ },
1318
+ "type": "object"
1319
+ },
1320
+ "relationships": {
1321
+ "anyOf": [
1322
+ {
1323
+ "items": {
1324
+ "additionalProperties": false,
1325
+ "properties": {
1326
+ "apiName": {
1327
+ "minLength": 1,
1328
+ "type": "string"
1329
+ },
1330
+ "cardinality": {
1331
+ "enum": [
1332
+ "one_to_one",
1333
+ "one_to_many",
1334
+ "many_to_many"
1335
+ ],
1336
+ "type": "string"
1337
+ },
1338
+ "caveat": {
1339
+ "additionalProperties": {},
1340
+ "description": "Caveat (SpiceDB): condición ABAC por tupla. Omitido = sin caveat. Actualizable.",
1341
+ "propertyNames": {
1342
+ "type": "string"
1343
+ },
1344
+ "type": "object"
1345
+ },
1346
+ "description": {
1347
+ "type": "string"
1348
+ },
1349
+ "rewrite": {
1350
+ "additionalProperties": {},
1351
+ "description": "Userset rewrite rule (Zanzibar). Omitido = solo tuplas directas. Actualizable.",
1352
+ "propertyNames": {
1353
+ "type": "string"
1354
+ },
1355
+ "type": "object"
1356
+ },
1357
+ "source": {
1358
+ "description": "Slug del object origen.",
1359
+ "minLength": 1,
1360
+ "type": "string"
1361
+ },
1362
+ "target": {
1363
+ "description": "Slug del object destino.",
1364
+ "minLength": 1,
1365
+ "type": "string"
1366
+ },
1367
+ "title": {
1368
+ "type": "string"
1369
+ }
1370
+ },
1371
+ "required": [
1372
+ "apiName",
1373
+ "source",
1374
+ "target",
1375
+ "cardinality"
1376
+ ],
1377
+ "type": "object"
1378
+ },
1379
+ "type": "array"
1380
+ },
1381
+ {
1382
+ "additionalProperties": false,
1383
+ "properties": {
1384
+ "items": {
1385
+ "items": {
1386
+ "additionalProperties": false,
1387
+ "properties": {
1388
+ "apiName": {
1389
+ "minLength": 1,
1390
+ "type": "string"
1391
+ },
1392
+ "cardinality": {
1393
+ "enum": [
1394
+ "one_to_one",
1395
+ "one_to_many",
1396
+ "many_to_many"
1397
+ ],
1398
+ "type": "string"
1399
+ },
1400
+ "caveat": {
1401
+ "additionalProperties": {},
1402
+ "description": "Caveat (SpiceDB): condición ABAC por tupla. Omitido = sin caveat. Actualizable.",
1403
+ "propertyNames": {
1404
+ "type": "string"
1405
+ },
1406
+ "type": "object"
1407
+ },
1408
+ "description": {
1409
+ "type": "string"
1410
+ },
1411
+ "rewrite": {
1412
+ "additionalProperties": {},
1413
+ "description": "Userset rewrite rule (Zanzibar). Omitido = solo tuplas directas. Actualizable.",
1414
+ "propertyNames": {
1415
+ "type": "string"
1416
+ },
1417
+ "type": "object"
1418
+ },
1419
+ "source": {
1420
+ "description": "Slug del object origen.",
1421
+ "minLength": 1,
1422
+ "type": "string"
1423
+ },
1424
+ "target": {
1425
+ "description": "Slug del object destino.",
1426
+ "minLength": 1,
1427
+ "type": "string"
1428
+ },
1429
+ "title": {
1430
+ "type": "string"
1431
+ }
1432
+ },
1433
+ "required": [
1434
+ "apiName",
1435
+ "source",
1436
+ "target",
1437
+ "cardinality"
1438
+ ],
1439
+ "type": "object"
1440
+ },
1441
+ "type": "array"
1442
+ },
1443
+ "mode": {
1444
+ "enum": [
1445
+ "authoritative",
1446
+ "additive"
1447
+ ],
1448
+ "type": "string"
1449
+ }
1450
+ },
1451
+ "required": [
1452
+ "mode",
1453
+ "items"
1454
+ ],
1455
+ "type": "object"
1456
+ }
1457
+ ]
1458
+ },
1459
+ "roles": {
1460
+ "anyOf": [
1461
+ {
1462
+ "items": {
1463
+ "additionalProperties": false,
1464
+ "properties": {
1465
+ "name": {
1466
+ "description": "Identidad estable, única por organización (match key).",
1467
+ "minLength": 1,
1468
+ "type": "string"
1469
+ },
1470
+ "permissions": {
1471
+ "description": "Permisos `recurso:accion` (p. ej. objects:read) dentro del techo de privilegio.",
1472
+ "items": {
1473
+ "type": "string"
1474
+ },
1475
+ "type": "array"
1476
+ }
1477
+ },
1478
+ "required": [
1479
+ "name"
1480
+ ],
1481
+ "type": "object"
1482
+ },
1483
+ "type": "array"
1484
+ },
1485
+ {
1486
+ "additionalProperties": false,
1487
+ "properties": {
1488
+ "items": {
1489
+ "items": {
1490
+ "additionalProperties": false,
1491
+ "properties": {
1492
+ "name": {
1493
+ "description": "Identidad estable, única por organización (match key).",
1494
+ "minLength": 1,
1495
+ "type": "string"
1496
+ },
1497
+ "permissions": {
1498
+ "description": "Permisos `recurso:accion` (p. ej. objects:read) dentro del techo de privilegio.",
1499
+ "items": {
1500
+ "type": "string"
1501
+ },
1502
+ "type": "array"
1503
+ }
1504
+ },
1505
+ "required": [
1506
+ "name"
1507
+ ],
1508
+ "type": "object"
1509
+ },
1510
+ "type": "array"
1511
+ },
1512
+ "mode": {
1513
+ "enum": [
1514
+ "authoritative",
1515
+ "additive"
1516
+ ],
1517
+ "type": "string"
1518
+ }
1519
+ },
1520
+ "required": [
1521
+ "mode",
1522
+ "items"
1523
+ ],
1524
+ "type": "object"
1525
+ }
1526
+ ]
1527
+ },
1528
+ "settings": {
1529
+ "additionalProperties": false,
1530
+ "properties": {
1531
+ "endUserObjectApiName": {
1532
+ "description": "Object que representa al usuario final del canal público (customer/patient/student).",
1533
+ "type": "string"
1534
+ },
1535
+ "settingsObjectApiName": {
1536
+ "description": "Object cuyos records son los parámetros de negocio (`{{setting.<key>}}`).",
1537
+ "type": "string"
1538
+ }
1539
+ },
1540
+ "type": "object"
1541
+ },
1542
+ "spaces": {
1543
+ "anyOf": [
1544
+ {
1545
+ "items": {
1546
+ "additionalProperties": false,
1547
+ "properties": {
1548
+ "avatarUrl": {
1549
+ "anyOf": [
1550
+ {
1551
+ "type": "string"
1552
+ },
1553
+ {
1554
+ "type": "null"
1555
+ }
1556
+ ]
1557
+ },
1558
+ "slug": {
1559
+ "description": "Identidad estable, única por organización (match key).",
1560
+ "minLength": 1,
1561
+ "type": "string"
1562
+ },
1563
+ "title": {
1564
+ "description": "Nombre visible del space.",
1565
+ "minLength": 1,
1566
+ "type": "string"
1567
+ },
1568
+ "topic": {
1569
+ "anyOf": [
1570
+ {
1571
+ "type": "string"
1572
+ },
1573
+ {
1574
+ "type": "null"
1575
+ }
1576
+ ]
1577
+ }
1578
+ },
1579
+ "required": [
1580
+ "slug",
1581
+ "title"
1582
+ ],
1583
+ "type": "object"
1584
+ },
1585
+ "type": "array"
1586
+ },
1587
+ {
1588
+ "additionalProperties": false,
1589
+ "properties": {
1590
+ "items": {
1591
+ "items": {
1592
+ "additionalProperties": false,
1593
+ "properties": {
1594
+ "avatarUrl": {
1595
+ "anyOf": [
1596
+ {
1597
+ "type": "string"
1598
+ },
1599
+ {
1600
+ "type": "null"
1601
+ }
1602
+ ]
1603
+ },
1604
+ "slug": {
1605
+ "description": "Identidad estable, única por organización (match key).",
1606
+ "minLength": 1,
1607
+ "type": "string"
1608
+ },
1609
+ "title": {
1610
+ "description": "Nombre visible del space.",
1611
+ "minLength": 1,
1612
+ "type": "string"
1613
+ },
1614
+ "topic": {
1615
+ "anyOf": [
1616
+ {
1617
+ "type": "string"
1618
+ },
1619
+ {
1620
+ "type": "null"
1621
+ }
1622
+ ]
1623
+ }
1624
+ },
1625
+ "required": [
1626
+ "slug",
1627
+ "title"
1628
+ ],
1629
+ "type": "object"
1630
+ },
1631
+ "type": "array"
1632
+ },
1633
+ "mode": {
1634
+ "enum": [
1635
+ "authoritative",
1636
+ "additive"
1637
+ ],
1638
+ "type": "string"
1639
+ }
1640
+ },
1641
+ "required": [
1642
+ "mode",
1643
+ "items"
1644
+ ],
1645
+ "type": "object"
1646
+ }
1647
+ ]
1648
+ },
1649
+ "sso": {
1650
+ "anyOf": [
1651
+ {
1652
+ "items": {
1653
+ "additionalProperties": false,
1654
+ "properties": {
1655
+ "emailDomain": {
1656
+ "anyOf": [
1657
+ {
1658
+ "type": "string"
1659
+ },
1660
+ {
1661
+ "type": "null"
1662
+ }
1663
+ ],
1664
+ "description": "Dominio corporativo que reclama (verificado al habilitar)."
1665
+ },
1666
+ "enabled": {
1667
+ "type": "boolean"
1668
+ },
1669
+ "idpMetadata": {
1670
+ "additionalProperties": {},
1671
+ "description": "Config del IdP, opaca al motor.",
1672
+ "propertyNames": {
1673
+ "type": "string"
1674
+ },
1675
+ "type": "object"
1676
+ },
1677
+ "protocol": {
1678
+ "description": "Protocolo del IdP (match key).",
1679
+ "enum": [
1680
+ "saml",
1681
+ "oidc"
1682
+ ],
1683
+ "type": "string"
1684
+ }
1685
+ },
1686
+ "required": [
1687
+ "protocol"
1688
+ ],
1689
+ "type": "object"
1690
+ },
1691
+ "type": "array"
1692
+ },
1693
+ {
1694
+ "additionalProperties": false,
1695
+ "properties": {
1696
+ "items": {
1697
+ "items": {
1698
+ "additionalProperties": false,
1699
+ "properties": {
1700
+ "emailDomain": {
1701
+ "anyOf": [
1702
+ {
1703
+ "type": "string"
1704
+ },
1705
+ {
1706
+ "type": "null"
1707
+ }
1708
+ ],
1709
+ "description": "Dominio corporativo que reclama (verificado al habilitar)."
1710
+ },
1711
+ "enabled": {
1712
+ "type": "boolean"
1713
+ },
1714
+ "idpMetadata": {
1715
+ "additionalProperties": {},
1716
+ "description": "Config del IdP, opaca al motor.",
1717
+ "propertyNames": {
1718
+ "type": "string"
1719
+ },
1720
+ "type": "object"
1721
+ },
1722
+ "protocol": {
1723
+ "description": "Protocolo del IdP (match key).",
1724
+ "enum": [
1725
+ "saml",
1726
+ "oidc"
1727
+ ],
1728
+ "type": "string"
1729
+ }
1730
+ },
1731
+ "required": [
1732
+ "protocol"
1733
+ ],
1734
+ "type": "object"
1735
+ },
1736
+ "type": "array"
1737
+ },
1738
+ "mode": {
1739
+ "enum": [
1740
+ "authoritative",
1741
+ "additive"
1742
+ ],
1743
+ "type": "string"
1744
+ }
1745
+ },
1746
+ "required": [
1747
+ "mode",
1748
+ "items"
1749
+ ],
1750
+ "type": "object"
1751
+ }
1752
+ ]
1753
+ },
1754
+ "transactions": {
1755
+ "anyOf": [
1756
+ {
1757
+ "items": {
1758
+ "additionalProperties": false,
1759
+ "properties": {
1760
+ "apiName": {
1761
+ "minLength": 1,
1762
+ "type": "string"
1763
+ },
1764
+ "description": {
1765
+ "description": "Qué hace la transaction (contexto LLM). Obligatoria al crear.",
1766
+ "type": "string"
1767
+ },
1768
+ "steps": {
1769
+ "items": {
1770
+ "additionalProperties": false,
1771
+ "properties": {
1772
+ "forEach": {
1773
+ "description": "Ruta del input que expande el step en N records.",
1774
+ "type": "string"
1775
+ },
1776
+ "id": {
1777
+ "description": "Opcional, para refs `{{steps.<id>.id}}`.",
1778
+ "type": "string"
1779
+ },
1780
+ "object": {
1781
+ "description": "Slug del object del diccionario.",
1782
+ "minLength": 1,
1783
+ "type": "string"
1784
+ },
1785
+ "properties": {
1786
+ "additionalProperties": {},
1787
+ "propertyNames": {
1788
+ "type": "string"
1789
+ },
1790
+ "type": "object"
1791
+ }
1792
+ },
1793
+ "required": [
1794
+ "object"
1795
+ ],
1796
+ "type": "object"
1797
+ },
1798
+ "minItems": 1,
1799
+ "type": "array"
1800
+ },
1801
+ "synonyms": {
1802
+ "items": {
1803
+ "type": "string"
1804
+ },
1805
+ "type": "array"
1806
+ },
1807
+ "title": {
1808
+ "description": "Si se omite, se deriva del slug.",
1809
+ "type": "string"
1810
+ }
1811
+ },
1812
+ "required": [
1813
+ "apiName",
1814
+ "steps"
1815
+ ],
1816
+ "type": "object"
1817
+ },
1818
+ "type": "array"
1819
+ },
1820
+ {
1821
+ "additionalProperties": false,
1822
+ "properties": {
1823
+ "items": {
1824
+ "items": {
1825
+ "additionalProperties": false,
1826
+ "properties": {
1827
+ "apiName": {
1828
+ "minLength": 1,
1829
+ "type": "string"
1830
+ },
1831
+ "description": {
1832
+ "description": "Qué hace la transaction (contexto LLM). Obligatoria al crear.",
1833
+ "type": "string"
1834
+ },
1835
+ "steps": {
1836
+ "items": {
1837
+ "additionalProperties": false,
1838
+ "properties": {
1839
+ "forEach": {
1840
+ "description": "Ruta del input que expande el step en N records.",
1841
+ "type": "string"
1842
+ },
1843
+ "id": {
1844
+ "description": "Opcional, para refs `{{steps.<id>.id}}`.",
1845
+ "type": "string"
1846
+ },
1847
+ "object": {
1848
+ "description": "Slug del object del diccionario.",
1849
+ "minLength": 1,
1850
+ "type": "string"
1851
+ },
1852
+ "properties": {
1853
+ "additionalProperties": {},
1854
+ "propertyNames": {
1855
+ "type": "string"
1856
+ },
1857
+ "type": "object"
1858
+ }
1859
+ },
1860
+ "required": [
1861
+ "object"
1862
+ ],
1863
+ "type": "object"
1864
+ },
1865
+ "minItems": 1,
1866
+ "type": "array"
1867
+ },
1868
+ "synonyms": {
1869
+ "items": {
1870
+ "type": "string"
1871
+ },
1872
+ "type": "array"
1873
+ },
1874
+ "title": {
1875
+ "description": "Si se omite, se deriva del slug.",
1876
+ "type": "string"
1877
+ }
1878
+ },
1879
+ "required": [
1880
+ "apiName",
1881
+ "steps"
1882
+ ],
1883
+ "type": "object"
1884
+ },
1885
+ "type": "array"
1886
+ },
1887
+ "mode": {
1888
+ "enum": [
1889
+ "authoritative",
1890
+ "additive"
1891
+ ],
1892
+ "type": "string"
1893
+ }
1894
+ },
1895
+ "required": [
1896
+ "mode",
1897
+ "items"
1898
+ ],
1899
+ "type": "object"
1900
+ }
1901
+ ]
1902
+ },
1903
+ "version": {
1904
+ "description": "Read-only: optimistic locking emitido por `pull`.",
1905
+ "type": "string"
1906
+ },
1907
+ "webhooks": {
1908
+ "anyOf": [
1909
+ {
1910
+ "items": {
1911
+ "additionalProperties": false,
1912
+ "properties": {
1913
+ "enabledEvents": {
1914
+ "description": "Event types a suscribir (record.created, edge.created, …). Al menos uno.",
1915
+ "items": {
1916
+ "type": "string"
1917
+ },
1918
+ "minItems": 1,
1919
+ "type": "array"
1920
+ },
1921
+ "slug": {
1922
+ "description": "Identidad estable, única por organización (match key).",
1923
+ "minLength": 1,
1924
+ "type": "string"
1925
+ },
1926
+ "status": {
1927
+ "description": "Omitido = enabled.",
1928
+ "enum": [
1929
+ "enabled",
1930
+ "disabled"
1931
+ ],
1932
+ "type": "string"
1933
+ },
1934
+ "url": {
1935
+ "description": "URL https del receptor del POST firmado.",
1936
+ "minLength": 1,
1937
+ "type": "string"
1938
+ }
1939
+ },
1940
+ "required": [
1941
+ "slug",
1942
+ "url",
1943
+ "enabledEvents"
1944
+ ],
1945
+ "type": "object"
1946
+ },
1947
+ "type": "array"
1948
+ },
1949
+ {
1950
+ "additionalProperties": false,
1951
+ "properties": {
1952
+ "items": {
1953
+ "items": {
1954
+ "additionalProperties": false,
1955
+ "properties": {
1956
+ "enabledEvents": {
1957
+ "description": "Event types a suscribir (record.created, edge.created, …). Al menos uno.",
1958
+ "items": {
1959
+ "type": "string"
1960
+ },
1961
+ "minItems": 1,
1962
+ "type": "array"
1963
+ },
1964
+ "slug": {
1965
+ "description": "Identidad estable, única por organización (match key).",
1966
+ "minLength": 1,
1967
+ "type": "string"
1968
+ },
1969
+ "status": {
1970
+ "description": "Omitido = enabled.",
1971
+ "enum": [
1972
+ "enabled",
1973
+ "disabled"
1974
+ ],
1975
+ "type": "string"
1976
+ },
1977
+ "url": {
1978
+ "description": "URL https del receptor del POST firmado.",
1979
+ "minLength": 1,
1980
+ "type": "string"
1981
+ }
1982
+ },
1983
+ "required": [
1984
+ "slug",
1985
+ "url",
1986
+ "enabledEvents"
1987
+ ],
1988
+ "type": "object"
1989
+ },
1990
+ "type": "array"
1991
+ },
1992
+ "mode": {
1993
+ "enum": [
1994
+ "authoritative",
1995
+ "additive"
1996
+ ],
1997
+ "type": "string"
1998
+ }
1999
+ },
2000
+ "required": [
2001
+ "mode",
2002
+ "items"
2003
+ ],
2004
+ "type": "object"
2005
+ }
2006
+ ]
2007
+ },
2008
+ "workflows": {
2009
+ "anyOf": [
2010
+ {
2011
+ "items": {
2012
+ "additionalProperties": false,
2013
+ "properties": {
2014
+ "apiName": {
2015
+ "minLength": 1,
2016
+ "type": "string"
2017
+ },
2018
+ "description": {
2019
+ "type": "string"
2020
+ },
2021
+ "initialState": {
2022
+ "type": "string"
2023
+ },
2024
+ "states": {
2025
+ "additionalProperties": {},
2026
+ "propertyNames": {
2027
+ "type": "string"
2028
+ },
2029
+ "type": "object"
2030
+ },
2031
+ "synonyms": {
2032
+ "items": {
2033
+ "type": "string"
2034
+ },
2035
+ "type": "array"
2036
+ },
2037
+ "title": {
2038
+ "type": "string"
2039
+ },
2040
+ "trigger": {
2041
+ "additionalProperties": {},
2042
+ "propertyNames": {
2043
+ "type": "string"
2044
+ },
2045
+ "type": "object"
2046
+ }
2047
+ },
2048
+ "required": [
2049
+ "apiName"
2050
+ ],
2051
+ "type": "object"
2052
+ },
2053
+ "type": "array"
2054
+ },
2055
+ {
2056
+ "additionalProperties": false,
2057
+ "properties": {
2058
+ "items": {
2059
+ "items": {
2060
+ "additionalProperties": false,
2061
+ "properties": {
2062
+ "apiName": {
2063
+ "minLength": 1,
2064
+ "type": "string"
2065
+ },
2066
+ "description": {
2067
+ "type": "string"
2068
+ },
2069
+ "initialState": {
2070
+ "type": "string"
2071
+ },
2072
+ "states": {
2073
+ "additionalProperties": {},
2074
+ "propertyNames": {
2075
+ "type": "string"
2076
+ },
2077
+ "type": "object"
2078
+ },
2079
+ "synonyms": {
2080
+ "items": {
2081
+ "type": "string"
2082
+ },
2083
+ "type": "array"
2084
+ },
2085
+ "title": {
2086
+ "type": "string"
2087
+ },
2088
+ "trigger": {
2089
+ "additionalProperties": {},
2090
+ "propertyNames": {
2091
+ "type": "string"
2092
+ },
2093
+ "type": "object"
2094
+ }
2095
+ },
2096
+ "required": [
2097
+ "apiName"
2098
+ ],
2099
+ "type": "object"
2100
+ },
2101
+ "type": "array"
2102
+ },
2103
+ "mode": {
2104
+ "enum": [
2105
+ "authoritative",
2106
+ "additive"
2107
+ ],
2108
+ "type": "string"
2109
+ }
2110
+ },
2111
+ "required": [
2112
+ "mode",
2113
+ "items"
2114
+ ],
2115
+ "type": "object"
2116
+ }
2117
+ ]
2118
+ }
2119
+ },
2120
+ "type": "object"
2121
+ }