@kriya-ai/harness 0.2.4 → 2.0.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.
Files changed (134) hide show
  1. package/RELEASE_NOTES.md +121 -0
  2. package/SAFETY.md +181 -0
  3. package/THIRD_PARTY_NOTICES.md +113 -0
  4. package/bin/kriya.js +188 -2
  5. package/bundle/cordis.patch.yml +49 -0
  6. package/contract/SOURCE.md +3 -3
  7. package/contract/contract.json +504 -3
  8. package/contract/schemas/api.json +64 -0
  9. package/contract/schemas/auth_matrix.json +44 -0
  10. package/contract/schemas/component_states.json +33 -0
  11. package/contract/schemas/design_tokens.json +34 -0
  12. package/contract/schemas/scene_direction.json +82 -0
  13. package/contract/schemas/threat_model.json +44 -0
  14. package/package.json +2 -1
  15. package/plugins/changes/client.js +5 -3
  16. package/plugins/deploy/index.js +215 -0
  17. package/plugins/deploy/package.json +13 -0
  18. package/plugins/grounding/index.js +81 -0
  19. package/plugins/grounding/lookup.js +373 -0
  20. package/plugins/grounding/package.json +13 -0
  21. package/plugins/kriya-tools/index.js +2 -1
  22. package/plugins/loop/index.js +376 -10
  23. package/plugins/mcp/index.js +79 -0
  24. package/plugins/mcp/package.json +13 -0
  25. package/plugins/mirror/index.js +17 -0
  26. package/plugins/overview/client.js +5 -2
  27. package/plugins/preview/client.js +12 -6
  28. package/plugins/progress/client.js +7 -4
  29. package/plugins/repo/index.js +230 -0
  30. package/plugins/repo/package.json +13 -0
  31. package/plugins/repo/repo.js +348 -0
  32. package/plugins/runstrip/client.js +426 -0
  33. package/plugins/runstrip/index.js +301 -0
  34. package/plugins/runstrip/package.json +23 -0
  35. package/src/cartridges.js +133 -0
  36. package/src/contracts.js +130 -0
  37. package/src/critic.js +78 -0
  38. package/src/daemon.js +7 -1
  39. package/src/doctor.js +67 -0
  40. package/src/edit/core/effects.js +185 -0
  41. package/src/edit/core/ffmpeg.js +82 -5
  42. package/src/edit/core/layout.js +46 -1
  43. package/src/edit/core/ops.js +175 -3
  44. package/src/edit/core/plan.js +95 -9
  45. package/src/edit/core/project.d.ts +24 -0
  46. package/src/edit/core/project.js +64 -0
  47. package/src/edit/core/solver.js +34 -6
  48. package/src/edit/core/style-brief.js +211 -0
  49. package/src/edit/core/style-packs.js +57 -0
  50. package/src/edit/core/transitions.js +17 -0
  51. package/src/edit/core/type-kit.js +173 -0
  52. package/src/edit/director/ask.js +37 -3
  53. package/src/edit/director/assembly.js +829 -0
  54. package/src/edit/director/continuity.js +137 -0
  55. package/src/edit/director/custom-motion.js +88 -0
  56. package/src/edit/director/graphics.js +186 -0
  57. package/src/edit/director/intent.js +125 -0
  58. package/src/edit/director/mentions.js +52 -0
  59. package/src/edit/director/plan.js +89 -12
  60. package/src/edit/director/revise.js +172 -7
  61. package/src/edit/director/viewer.js +136 -0
  62. package/src/edit/director/watch-fix.js +119 -0
  63. package/src/edit/engine/captions.js +110 -5
  64. package/src/edit/engine/confine.js +81 -4
  65. package/src/edit/engine/custom.js +243 -0
  66. package/src/edit/engine/dna2.js +893 -0
  67. package/src/edit/engine/fonts.js +218 -0
  68. package/src/edit/engine/graphics.js +439 -0
  69. package/src/edit/engine/index.js +14 -5
  70. package/src/edit/engine/motion.js +153 -14
  71. package/src/edit/engine/music-bed.js +59 -1
  72. package/src/edit/engine/packs.js +11 -0
  73. package/src/edit/engine/reference2.js +26 -0
  74. package/src/edit/engine/sfx.js +56 -1
  75. package/src/edit/engine/tool.js +21 -5
  76. package/src/edit/gates/assembly.js +194 -0
  77. package/src/edit/gates/copy.js +7 -4
  78. package/src/edit/gates/index.js +76 -8
  79. package/src/edit/gates/picture.js +6 -3
  80. package/src/edit/gates/reference.js +115 -0
  81. package/src/edit/gates/tile.js +96 -0
  82. package/src/edit/host/client.js +4 -3
  83. package/src/edit/host/clips.js +33 -0
  84. package/src/edit/host/jobs.js +9 -3
  85. package/src/edit/host/layers.js +134 -0
  86. package/src/edit/host/main.js +17 -7
  87. package/src/edit/host/paths.js +34 -3
  88. package/src/edit/host/preview.js +108 -0
  89. package/src/edit/host/projects.js +494 -29
  90. package/src/edit/host/server.js +263 -19
  91. package/src/edit/host/tavi.js +77 -0
  92. package/src/edit/loop/make.js +44 -3
  93. package/src/edit/recipes/assembly.js +352 -0
  94. package/src/edit/recipes/graphic-clips.js +59 -0
  95. package/src/edit/recipes/openings.js +36 -0
  96. package/src/edit/recipes/reel.js +138 -17
  97. package/src/edit/recipes/reference-look.js +29 -0
  98. package/src/edit/recipes/short-from-long.js +3 -3
  99. package/src/edit/recipes/sound.js +71 -0
  100. package/src/edit/runtime/cli.js +26 -5
  101. package/src/edit/runtime/fetch.js +4 -3
  102. package/src/edit/runtime/licences.js +7 -1
  103. package/src/explore.js +103 -0
  104. package/src/failure.js +1 -1
  105. package/src/gate-commands.js +114 -0
  106. package/src/gates/api.js +127 -0
  107. package/src/gates/commands.js +111 -0
  108. package/src/gates/detectors.js +370 -0
  109. package/src/gates/http.js +62 -0
  110. package/src/gates/index.js +196 -0
  111. package/src/gates/page.js +264 -0
  112. package/src/gates/sast.js +64 -0
  113. package/src/gates/stack.js +110 -0
  114. package/src/gates/tenant.js +162 -0
  115. package/src/gates/three.js +407 -0
  116. package/src/gates/ui.js +111 -0
  117. package/src/launch.js +15 -3
  118. package/src/loop.js +199 -7
  119. package/src/mcp.js +126 -0
  120. package/src/milestones.js +188 -0
  121. package/src/modes.js +32 -0
  122. package/src/orchestra.js +43 -0
  123. package/src/outcomes.js +88 -0
  124. package/src/profiles.js +5 -0
  125. package/src/receipts.js +238 -0
  126. package/src/release.js +356 -0
  127. package/src/runstrip.js +122 -0
  128. package/src/stack.js +120 -0
  129. package/src/verify.js +67 -20
  130. package/studio/dist/fonts/fraunces.woff2 +0 -0
  131. package/studio/dist/fonts/geist.woff2 +0 -0
  132. package/studio/dist/fonts/jetbrains-mono.woff2 +0 -0
  133. package/studio/dist/studio.css +452 -3
  134. package/studio/dist/studio.js +3 -3
@@ -282,6 +282,25 @@
282
282
  "type": "string",
283
283
  "const": "gzip+base64"
284
284
  }
285
+ },
286
+ "orchestra": {
287
+ "type": "object",
288
+ "properties": {
289
+ "head": {
290
+ "type": "string",
291
+ "enum": ["budget", "balanced", "escalation"]
292
+ },
293
+ "worker": {
294
+ "type": "string",
295
+ "enum": ["budget", "balanced", "escalation"]
296
+ }
297
+ },
298
+ "required": ["head", "worker"],
299
+ "additionalProperties": false
300
+ },
301
+ "workforce": {
302
+ "type": "number",
303
+ "const": 1
285
304
  }
286
305
  },
287
306
  "required": ["object", "data"],
@@ -501,6 +520,52 @@
501
520
  "type": "string"
502
521
  },
503
522
  "additionalProperties": {}
523
+ },
524
+ "cartridgeOutcomes": {
525
+ "maxItems": 20,
526
+ "type": "array",
527
+ "items": {
528
+ "type": "object",
529
+ "properties": {
530
+ "cartridgeId": {
531
+ "type": "string",
532
+ "pattern": "^kriya-role-[a-z]{2,20}$"
533
+ },
534
+ "version": {
535
+ "type": "string",
536
+ "pattern": "^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$"
537
+ },
538
+ "verified": {
539
+ "type": "integer",
540
+ "minimum": 0,
541
+ "maximum": 10000
542
+ },
543
+ "blocked": {
544
+ "type": "integer",
545
+ "minimum": 0,
546
+ "maximum": 10000
547
+ },
548
+ "notChecked": {
549
+ "type": "integer",
550
+ "minimum": 0,
551
+ "maximum": 10000
552
+ },
553
+ "undone": {
554
+ "type": "integer",
555
+ "minimum": 0,
556
+ "maximum": 10000
557
+ }
558
+ },
559
+ "required": [
560
+ "cartridgeId",
561
+ "version",
562
+ "verified",
563
+ "blocked",
564
+ "notChecked",
565
+ "undone"
566
+ ],
567
+ "additionalProperties": false
568
+ }
504
569
  }
505
570
  },
506
571
  "required": ["seq", "text", "tools"],
@@ -555,6 +620,218 @@
555
620
  },
556
621
  "required": ["always", "keywords"],
557
622
  "additionalProperties": false
623
+ },
624
+ "cartridge": {
625
+ "type": "object",
626
+ "properties": {
627
+ "role": {
628
+ "type": "string",
629
+ "enum": [
630
+ "frontend",
631
+ "designer",
632
+ "backend",
633
+ "fullstack",
634
+ "mobile",
635
+ "game",
636
+ "devops",
637
+ "cloud",
638
+ "systems",
639
+ "data",
640
+ "ml",
641
+ "security",
642
+ "qa",
643
+ "sdet",
644
+ "database",
645
+ "graphics"
646
+ ]
647
+ },
648
+ "owns": {
649
+ "maxItems": 7,
650
+ "type": "array",
651
+ "items": {
652
+ "type": "string",
653
+ "enum": [
654
+ "api",
655
+ "schema",
656
+ "auth_matrix",
657
+ "design_tokens",
658
+ "component_states",
659
+ "threat_model",
660
+ "scene_direction"
661
+ ]
662
+ }
663
+ },
664
+ "reads": {
665
+ "maxItems": 7,
666
+ "type": "array",
667
+ "items": {
668
+ "type": "string",
669
+ "enum": [
670
+ "api",
671
+ "schema",
672
+ "auth_matrix",
673
+ "design_tokens",
674
+ "component_states",
675
+ "threat_model",
676
+ "scene_direction"
677
+ ]
678
+ }
679
+ },
680
+ "gates": {
681
+ "minItems": 1,
682
+ "maxItems": 12,
683
+ "type": "array",
684
+ "items": {
685
+ "type": "string",
686
+ "enum": [
687
+ "G-CONTRACT",
688
+ "G-DETECT",
689
+ "G-UI",
690
+ "G-A11Y",
691
+ "G-STACK",
692
+ "G-API",
693
+ "G-TENANT",
694
+ "G-SAST",
695
+ "G-SECRETS",
696
+ "G-FLAKE",
697
+ "G-TRACE",
698
+ "G-DATA",
699
+ "G-EVAL",
700
+ "G-SAN",
701
+ "G-IAC",
702
+ "G-SIM",
703
+ "G-SIM-HEADLESS",
704
+ "G-3D"
705
+ ]
706
+ }
707
+ },
708
+ "detectors": {
709
+ "maxItems": 20,
710
+ "type": "array",
711
+ "items": {
712
+ "type": "object",
713
+ "properties": {
714
+ "id": {
715
+ "type": "string",
716
+ "enum": [
717
+ "FE-HEX",
718
+ "FE-PX",
719
+ "FE-IMG-ALT",
720
+ "FE-CLICK-DIV",
721
+ "FE-FETCH-EFFECT",
722
+ "FE-GLASS-CONTENT",
723
+ "FE-GLASS-FALLBACK",
724
+ "FE-TROPE",
725
+ "FE-FONT-LICENCE",
726
+ "BE-SQL-INTERP",
727
+ "BE-EMPTY-CATCH",
728
+ "BE-NO-TIMEOUT",
729
+ "BE-LOG-SECRET",
730
+ "FS-DTO-DUP",
731
+ "MB-SYNC-IO",
732
+ "MB-HARDCODE-DIM",
733
+ "GM-ALLOC-TICK",
734
+ "GM-DT-MISSING",
735
+ "OPS-LATEST",
736
+ "OPS-SECRET-ENV",
737
+ "OPS-MIGRATE-LOCK",
738
+ "CL-IAM-STAR",
739
+ "CL-PUBLIC",
740
+ "SY-UNSAFE-NOCOMMENT",
741
+ "SY-SPIN",
742
+ "DT-INSERT-NOKEY",
743
+ "ML-FIT-TEST",
744
+ "ML-SEED",
745
+ "SEC-BODY-ID",
746
+ "SEC-EVAL",
747
+ "QA-ONLY",
748
+ "QA-SKIP",
749
+ "SD-SLEEP",
750
+ "SD-XPATH",
751
+ "DB-NO-RLS",
752
+ "DB-FK-NOINDEX",
753
+ "DB-DROP",
754
+ "GX-COLOR",
755
+ "GX-ALLOC-LOOP",
756
+ "GX-NO-DISPOSE",
757
+ "GX-DPR",
758
+ "FE-ASSET-LICENCE"
759
+ ]
760
+ },
761
+ "severity": {
762
+ "type": "string",
763
+ "enum": ["error", "warn"]
764
+ }
765
+ },
766
+ "required": ["id", "severity"],
767
+ "additionalProperties": false
768
+ }
769
+ },
770
+ "judgement": {
771
+ "maxItems": 12,
772
+ "type": "array",
773
+ "items": {
774
+ "type": "object",
775
+ "properties": {
776
+ "id": {
777
+ "type": "string",
778
+ "pattern": "^[a-z][a-z0-9-]{2,40}$"
779
+ },
780
+ "ask": {
781
+ "type": "string",
782
+ "minLength": 1,
783
+ "maxLength": 200
784
+ },
785
+ "severity": {
786
+ "type": "string",
787
+ "enum": ["major", "minor"]
788
+ }
789
+ },
790
+ "required": ["id", "ask", "severity"],
791
+ "additionalProperties": false
792
+ }
793
+ },
794
+ "escalateAfter": {
795
+ "type": "integer",
796
+ "minimum": 0,
797
+ "maximum": 4
798
+ },
799
+ "maxPromptChars": {
800
+ "type": "integer",
801
+ "minimum": 500,
802
+ "maximum": 6000
803
+ },
804
+ "globs": {
805
+ "maxItems": 20,
806
+ "type": "array",
807
+ "items": {
808
+ "type": "string",
809
+ "pattern": "^[A-Za-z0-9_.*/{},-]{1,60}$"
810
+ }
811
+ }
812
+ },
813
+ "required": [
814
+ "role",
815
+ "owns",
816
+ "reads",
817
+ "gates",
818
+ "detectors",
819
+ "judgement",
820
+ "maxPromptChars",
821
+ "globs"
822
+ ],
823
+ "additionalProperties": false
824
+ },
825
+ "invocation": {
826
+ "type": "object",
827
+ "properties": {
828
+ "modelInvocable": {
829
+ "type": "boolean",
830
+ "const": false
831
+ }
832
+ },
833
+ "required": ["modelInvocable"],
834
+ "additionalProperties": false
558
835
  }
559
836
  },
560
837
  "required": ["id", "name", "version", "description", "activation"],
@@ -566,6 +843,71 @@
566
843
  "additionalProperties": false
567
844
  }
568
845
  },
846
+ {
847
+ "method": "GET",
848
+ "path": "/mcp",
849
+ "auth": true,
850
+ "request": null,
851
+ "response": {
852
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
853
+ "type": "object",
854
+ "properties": {
855
+ "servers": {
856
+ "type": "array",
857
+ "items": {
858
+ "type": "object",
859
+ "properties": {
860
+ "id": {
861
+ "type": "string",
862
+ "minLength": 1,
863
+ "maxLength": 100
864
+ },
865
+ "name": {
866
+ "type": "string",
867
+ "minLength": 1,
868
+ "maxLength": 200
869
+ },
870
+ "url": {
871
+ "type": "string",
872
+ "maxLength": 2000,
873
+ "format": "uri"
874
+ },
875
+ "tools": {
876
+ "type": "array",
877
+ "items": {
878
+ "type": "object",
879
+ "properties": {
880
+ "name": {
881
+ "type": "string",
882
+ "minLength": 1,
883
+ "maxLength": 200
884
+ },
885
+ "definitionHash": {
886
+ "type": "string",
887
+ "pattern": "^[a-f0-9]{64}$"
888
+ },
889
+ "risk": {
890
+ "type": "string",
891
+ "enum": ["R0", "R1", "R2", "R3", "R4"]
892
+ },
893
+ "readOnly": {
894
+ "type": "boolean"
895
+ }
896
+ },
897
+ "required": ["name", "definitionHash", "risk", "readOnly"],
898
+ "additionalProperties": false
899
+ }
900
+ }
901
+ },
902
+ "required": ["id", "name", "url", "tools"],
903
+ "additionalProperties": false
904
+ }
905
+ }
906
+ },
907
+ "required": ["servers"],
908
+ "additionalProperties": false
909
+ }
910
+ },
569
911
  {
570
912
  "method": "GET",
571
913
  "path": "/skills/{id}/{version}",
@@ -802,9 +1144,53 @@
802
1144
  },
803
1145
  "mediaSearch": {
804
1146
  "type": "boolean"
1147
+ },
1148
+ "motion": {
1149
+ "type": "boolean"
1150
+ },
1151
+ "customMotion": {
1152
+ "type": "boolean"
1153
+ },
1154
+ "assembly": {
1155
+ "type": "boolean"
1156
+ },
1157
+ "livePreview": {
1158
+ "type": "boolean"
1159
+ },
1160
+ "intent": {
1161
+ "type": "boolean"
1162
+ },
1163
+ "craft": {
1164
+ "type": "boolean"
1165
+ },
1166
+ "typeKit": {
1167
+ "type": "boolean"
1168
+ },
1169
+ "referenceIntent": {
1170
+ "type": "boolean"
1171
+ },
1172
+ "directorLoop": {
1173
+ "type": "boolean"
1174
+ },
1175
+ "taviOrder": {
1176
+ "type": "boolean"
805
1177
  }
806
1178
  },
807
- "required": ["visuals", "playbooks", "mediaSearch"],
1179
+ "required": [
1180
+ "visuals",
1181
+ "playbooks",
1182
+ "mediaSearch",
1183
+ "motion",
1184
+ "customMotion",
1185
+ "assembly",
1186
+ "livePreview",
1187
+ "intent",
1188
+ "craft",
1189
+ "typeKit",
1190
+ "referenceIntent",
1191
+ "directorLoop",
1192
+ "taviOrder"
1193
+ ],
808
1194
  "additionalProperties": false
809
1195
  }
810
1196
  },
@@ -1038,7 +1424,7 @@
1038
1424
  "properties": {
1039
1425
  "kind": {
1040
1426
  "type": "string",
1041
- "enum": ["take", "hook", "file", "name", "taste"]
1427
+ "enum": ["take", "hook", "file", "name", "taste", "order"]
1042
1428
  },
1043
1429
  "prompt": {
1044
1430
  "type": "string",
@@ -1253,6 +1639,28 @@
1253
1639
  },
1254
1640
  "git": {
1255
1641
  "type": "boolean"
1642
+ },
1643
+ "clips": {
1644
+ "maxItems": 50,
1645
+ "type": "array",
1646
+ "items": {
1647
+ "type": "object",
1648
+ "properties": {
1649
+ "n": {
1650
+ "type": "integer",
1651
+ "minimum": 1,
1652
+ "maximum": 999
1653
+ },
1654
+ "label": {
1655
+ "type": "string",
1656
+ "minLength": 1,
1657
+ "maxLength": 40,
1658
+ "pattern": "^[^\\u0000-\\u001f\\u007f<>]+$"
1659
+ }
1660
+ },
1661
+ "required": ["n"],
1662
+ "additionalProperties": false
1663
+ }
1256
1664
  }
1257
1665
  },
1258
1666
  "required": ["id", "name", "path", "git"],
@@ -1539,5 +1947,98 @@
1539
1947
  },
1540
1948
  "response": null
1541
1949
  }
1542
- ]
1950
+ ],
1951
+ "cartridgeIds": {
1952
+ "roles": [
1953
+ "frontend",
1954
+ "designer",
1955
+ "backend",
1956
+ "fullstack",
1957
+ "mobile",
1958
+ "game",
1959
+ "devops",
1960
+ "cloud",
1961
+ "systems",
1962
+ "data",
1963
+ "ml",
1964
+ "security",
1965
+ "qa",
1966
+ "sdet",
1967
+ "database",
1968
+ "graphics"
1969
+ ],
1970
+ "gates": [
1971
+ "G-CONTRACT",
1972
+ "G-DETECT",
1973
+ "G-UI",
1974
+ "G-A11Y",
1975
+ "G-STACK",
1976
+ "G-API",
1977
+ "G-TENANT",
1978
+ "G-SAST",
1979
+ "G-SECRETS",
1980
+ "G-FLAKE",
1981
+ "G-TRACE",
1982
+ "G-DATA",
1983
+ "G-EVAL",
1984
+ "G-SAN",
1985
+ "G-IAC",
1986
+ "G-SIM",
1987
+ "G-SIM-HEADLESS",
1988
+ "G-3D"
1989
+ ],
1990
+ "detectors": [
1991
+ "FE-HEX",
1992
+ "FE-PX",
1993
+ "FE-IMG-ALT",
1994
+ "FE-CLICK-DIV",
1995
+ "FE-FETCH-EFFECT",
1996
+ "FE-GLASS-CONTENT",
1997
+ "FE-GLASS-FALLBACK",
1998
+ "FE-TROPE",
1999
+ "FE-FONT-LICENCE",
2000
+ "BE-SQL-INTERP",
2001
+ "BE-EMPTY-CATCH",
2002
+ "BE-NO-TIMEOUT",
2003
+ "BE-LOG-SECRET",
2004
+ "FS-DTO-DUP",
2005
+ "MB-SYNC-IO",
2006
+ "MB-HARDCODE-DIM",
2007
+ "GM-ALLOC-TICK",
2008
+ "GM-DT-MISSING",
2009
+ "OPS-LATEST",
2010
+ "OPS-SECRET-ENV",
2011
+ "OPS-MIGRATE-LOCK",
2012
+ "CL-IAM-STAR",
2013
+ "CL-PUBLIC",
2014
+ "SY-UNSAFE-NOCOMMENT",
2015
+ "SY-SPIN",
2016
+ "DT-INSERT-NOKEY",
2017
+ "ML-FIT-TEST",
2018
+ "ML-SEED",
2019
+ "SEC-BODY-ID",
2020
+ "SEC-EVAL",
2021
+ "QA-ONLY",
2022
+ "QA-SKIP",
2023
+ "SD-SLEEP",
2024
+ "SD-XPATH",
2025
+ "DB-NO-RLS",
2026
+ "DB-FK-NOINDEX",
2027
+ "DB-DROP",
2028
+ "GX-COLOR",
2029
+ "GX-ALLOC-LOOP",
2030
+ "GX-NO-DISPOSE",
2031
+ "GX-DPR",
2032
+ "FE-ASSET-LICENCE"
2033
+ ],
2034
+ "contracts": [
2035
+ "api",
2036
+ "schema",
2037
+ "auth_matrix",
2038
+ "design_tokens",
2039
+ "component_states",
2040
+ "threat_model",
2041
+ "scene_direction"
2042
+ ]
2043
+ }
1543
2044
  }
@@ -0,0 +1,64 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "api.openapi.json (OpenAPI 3.1, the subset Kriya checks)",
4
+ "type": "object",
5
+ "required": [
6
+ "openapi",
7
+ "info",
8
+ "paths"
9
+ ],
10
+ "properties": {
11
+ "openapi": {
12
+ "type": "string",
13
+ "pattern": "^3\\.(0|1)\\.\\d+$"
14
+ },
15
+ "info": {
16
+ "type": "object",
17
+ "required": [
18
+ "title",
19
+ "version"
20
+ ]
21
+ },
22
+ "paths": {
23
+ "type": "object",
24
+ "patternProperties": {
25
+ "^/": {
26
+ "type": "object",
27
+ "propertyNames": {
28
+ "enum": [
29
+ "get",
30
+ "put",
31
+ "post",
32
+ "delete",
33
+ "patch",
34
+ "head",
35
+ "options",
36
+ "parameters",
37
+ "summary",
38
+ "description",
39
+ "servers"
40
+ ]
41
+ },
42
+ "patternProperties": {
43
+ "^(get|put|post|delete|patch|head|options)$": {
44
+ "type": "object",
45
+ "required": [
46
+ "responses"
47
+ ],
48
+ "properties": {
49
+ "responses": {
50
+ "type": "object",
51
+ "minProperties": 1
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+ },
58
+ "additionalProperties": false
59
+ },
60
+ "components": {
61
+ "type": "object"
62
+ }
63
+ }
64
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "auth_matrix.json",
4
+ "type": "array",
5
+ "maxItems": 500,
6
+ "items": {
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "required": [
10
+ "resource",
11
+ "action",
12
+ "roles",
13
+ "tenantScoped"
14
+ ],
15
+ "properties": {
16
+ "resource": {
17
+ "type": "string",
18
+ "minLength": 1,
19
+ "maxLength": 80
20
+ },
21
+ "action": {
22
+ "enum": [
23
+ "create",
24
+ "read",
25
+ "update",
26
+ "delete",
27
+ "list"
28
+ ]
29
+ },
30
+ "roles": {
31
+ "type": "array",
32
+ "items": {
33
+ "type": "string",
34
+ "minLength": 1,
35
+ "maxLength": 40
36
+ },
37
+ "maxItems": 20
38
+ },
39
+ "tenantScoped": {
40
+ "type": "boolean"
41
+ }
42
+ }
43
+ }
44
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "component_states.json",
4
+ "type": "object",
5
+ "maxProperties": 200,
6
+ "additionalProperties": {
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "required": [
10
+ "states"
11
+ ],
12
+ "properties": {
13
+ "states": {
14
+ "type": "array",
15
+ "minItems": 1,
16
+ "uniqueItems": true,
17
+ "items": {
18
+ "enum": [
19
+ "loading",
20
+ "empty",
21
+ "partial",
22
+ "error",
23
+ "populated"
24
+ ]
25
+ }
26
+ },
27
+ "preview": {
28
+ "type": "string",
29
+ "pattern": "^/[^\\s]{0,200}$"
30
+ }
31
+ }
32
+ }
33
+ }