@semiont/core 0.2.28-build.37 → 0.2.28-build.40

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.
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
+ import { resourceUri, annotationUri, getAnnotationExactText } from '@semiont/api-client';
1
2
  import { createHash, randomBytes } from 'crypto';
2
- import { getAnnotationExactText, getEntityTypes } from '@semiont/api-client';
3
+ import { getEntityTypes } from '@semiont/ontology';
3
4
  import * as fs2 from 'fs';
4
5
  import * as path from 'path';
5
6
  import Ajv from 'ajv';
@@ -37,6 +38,30 @@ function annotationId(id) {
37
38
  function userId(id) {
38
39
  return id;
39
40
  }
41
+ function resourceIdToURI(id, publicURL) {
42
+ const normalizedBase = publicURL.endsWith("/") ? publicURL.slice(0, -1) : publicURL;
43
+ return resourceUri(`${normalizedBase}/resources/${id}`);
44
+ }
45
+ function uriToResourceId(uri) {
46
+ const url = new URL(uri);
47
+ const match = url.pathname.match(/\/resources\/([^/]+)/);
48
+ if (!match || !match[1]) {
49
+ throw new Error(`Invalid resource URI: ${uri}`);
50
+ }
51
+ return resourceId(match[1]);
52
+ }
53
+ function annotationIdToURI(id, publicURL) {
54
+ const normalizedBase = publicURL.endsWith("/") ? publicURL.slice(0, -1) : publicURL;
55
+ return annotationUri(`${normalizedBase}/annotations/${id}`);
56
+ }
57
+ function uriToAnnotationId(uri) {
58
+ const url = new URL(uri);
59
+ const match = url.pathname.match(/\/annotations\/([^/]+)/);
60
+ if (!match || !match[1]) {
61
+ throw new Error(`Invalid annotation URI: ${uri}`);
62
+ }
63
+ return annotationId(match[1]);
64
+ }
40
65
 
41
66
  // src/events.ts
42
67
  function isResourceEvent(event) {
@@ -530,496 +555,1293 @@ var config_schema_default = {
530
555
  definitions: {
531
556
  PlatformType: {
532
557
  type: "string",
533
- enum: ["posix", "container", "aws", "external"]
558
+ enum: [
559
+ "posix",
560
+ "container",
561
+ "aws",
562
+ "external"
563
+ ]
534
564
  },
535
565
  ServicePlatformConfig: {
536
566
  type: "object",
537
567
  properties: {
538
- type: { $ref: "#/definitions/PlatformType" }
568
+ type: {
569
+ $ref: "#/definitions/PlatformType"
570
+ }
539
571
  },
540
- required: ["type"]
572
+ required: [
573
+ "type"
574
+ ]
541
575
  },
542
576
  ResourceRequirements: {
543
577
  type: "object",
544
578
  properties: {
545
- cpu: { type: "string" },
546
- memory: { type: "string" },
547
- gpu: { type: "integer" },
548
- gpus: { type: "integer" },
549
- replicas: { type: "integer" },
550
- ephemeralStorage: { type: "string" },
551
- memoryReservation: { type: "string" }
579
+ cpu: {
580
+ type: "string"
581
+ },
582
+ memory: {
583
+ type: "string"
584
+ },
585
+ gpu: {
586
+ type: "integer"
587
+ },
588
+ gpus: {
589
+ type: "integer"
590
+ },
591
+ replicas: {
592
+ type: "integer"
593
+ },
594
+ ephemeralStorage: {
595
+ type: "string"
596
+ },
597
+ memoryReservation: {
598
+ type: "string"
599
+ }
552
600
  },
553
601
  additionalProperties: false
554
602
  },
555
603
  SecurityRequirements: {
556
604
  type: "object",
557
605
  properties: {
558
- readOnlyRootFilesystem: { type: "boolean" },
559
- runAsNonRoot: { type: "boolean" },
560
- runAsUser: { type: "integer" },
561
- runAsGroup: { type: "integer" },
606
+ readOnlyRootFilesystem: {
607
+ type: "boolean"
608
+ },
609
+ runAsNonRoot: {
610
+ type: "boolean"
611
+ },
612
+ runAsUser: {
613
+ type: "integer"
614
+ },
615
+ runAsGroup: {
616
+ type: "integer"
617
+ },
562
618
  capabilities: {
563
619
  oneOf: [
564
- { type: "array", items: { type: "string" } },
620
+ {
621
+ type: "array",
622
+ items: {
623
+ type: "string"
624
+ }
625
+ },
565
626
  {
566
627
  type: "object",
567
628
  properties: {
568
- add: { type: "array", items: { type: "string" } },
569
- drop: { type: "array", items: { type: "string" } }
629
+ add: {
630
+ type: "array",
631
+ items: {
632
+ type: "string"
633
+ }
634
+ },
635
+ drop: {
636
+ type: "array",
637
+ items: {
638
+ type: "string"
639
+ }
640
+ }
570
641
  }
571
642
  }
572
643
  ]
573
644
  },
574
- privileged: { type: "boolean" },
575
- allowPrivilegeEscalation: { type: "boolean" }
645
+ privileged: {
646
+ type: "boolean"
647
+ },
648
+ allowPrivilegeEscalation: {
649
+ type: "boolean"
650
+ }
576
651
  },
577
652
  additionalProperties: false
578
653
  },
579
654
  BuildRequirements: {
580
655
  type: "object",
581
656
  properties: {
582
- dockerfile: { type: "string" },
583
- buildContext: { type: "string" },
584
- buildArgs: { type: "object", additionalProperties: { type: "string" } },
585
- buildTarget: { type: "string" },
586
- prebuilt: { type: "boolean" },
587
- noCache: { type: "boolean" }
657
+ dockerfile: {
658
+ type: "string"
659
+ },
660
+ buildContext: {
661
+ type: "string"
662
+ },
663
+ buildArgs: {
664
+ type: "object",
665
+ additionalProperties: {
666
+ type: "string"
667
+ }
668
+ },
669
+ buildTarget: {
670
+ type: "string"
671
+ },
672
+ prebuilt: {
673
+ type: "boolean"
674
+ },
675
+ noCache: {
676
+ type: "boolean"
677
+ }
588
678
  },
589
679
  additionalProperties: false
590
680
  },
591
681
  BackendServiceConfig: {
592
682
  type: "object",
593
683
  properties: {
594
- platform: { $ref: "#/definitions/ServicePlatformConfig" },
595
- devMode: { type: "boolean" },
596
- command: { type: "string" },
597
- port: { type: "integer" },
598
- publicURL: { type: "string" },
599
- corsOrigin: { type: "string" },
600
- image: { type: "string" },
601
- cpu: { type: "string" },
602
- memory: { type: "string" },
603
- semiontRepo: { type: "string" },
604
- databaseUrl: { type: "string" },
605
- projectRoot: { type: "string" },
606
- timeout: { type: "integer" },
607
- wait: { type: "integer" },
608
- logsEndpoint: { type: "string" },
609
- tag: { type: "string" },
610
- resources: { $ref: "#/definitions/ResourceRequirements" },
611
- security: { $ref: "#/definitions/SecurityRequirements" },
684
+ platform: {
685
+ $ref: "#/definitions/ServicePlatformConfig"
686
+ },
687
+ devMode: {
688
+ type: "boolean"
689
+ },
690
+ command: {
691
+ type: "string"
692
+ },
693
+ port: {
694
+ type: "integer"
695
+ },
696
+ publicURL: {
697
+ type: "string"
698
+ },
699
+ corsOrigin: {
700
+ type: "string"
701
+ },
702
+ image: {
703
+ type: "string"
704
+ },
705
+ cpu: {
706
+ type: "string"
707
+ },
708
+ memory: {
709
+ type: "string"
710
+ },
711
+ semiontRepo: {
712
+ type: "string"
713
+ },
714
+ databaseUrl: {
715
+ type: "string"
716
+ },
717
+ projectRoot: {
718
+ type: "string"
719
+ },
720
+ timeout: {
721
+ type: "integer"
722
+ },
723
+ wait: {
724
+ type: "integer"
725
+ },
726
+ logsEndpoint: {
727
+ type: "string"
728
+ },
729
+ tag: {
730
+ type: "string"
731
+ },
732
+ resources: {
733
+ $ref: "#/definitions/ResourceRequirements"
734
+ },
735
+ security: {
736
+ $ref: "#/definitions/SecurityRequirements"
737
+ },
612
738
  build: {
613
739
  oneOf: [
614
- { type: "boolean" },
615
- { $ref: "#/definitions/BuildRequirements" }
740
+ {
741
+ type: "boolean"
742
+ },
743
+ {
744
+ $ref: "#/definitions/BuildRequirements"
745
+ }
616
746
  ]
617
747
  },
618
- dockerfile: { type: "string" },
619
- buildContext: { type: "string" },
620
- buildArgs: { type: "object", additionalProperties: { type: "string" } },
621
- buildTarget: { type: "string" },
622
- prebuilt: { type: "boolean" },
623
- noCache: { type: "boolean" },
624
- secrets: { type: "array", items: { type: "string" } },
625
- labels: { type: "object", additionalProperties: { type: "string" } },
626
- annotations: { type: "object", additionalProperties: { type: "string" } },
627
- dependencies: { type: "array", items: { type: "string" } },
748
+ dockerfile: {
749
+ type: "string"
750
+ },
751
+ buildContext: {
752
+ type: "string"
753
+ },
754
+ buildArgs: {
755
+ type: "object",
756
+ additionalProperties: {
757
+ type: "string"
758
+ }
759
+ },
760
+ buildTarget: {
761
+ type: "string"
762
+ },
763
+ prebuilt: {
764
+ type: "boolean"
765
+ },
766
+ noCache: {
767
+ type: "boolean"
768
+ },
769
+ secrets: {
770
+ type: "array",
771
+ items: {
772
+ type: "string"
773
+ }
774
+ },
775
+ labels: {
776
+ type: "object",
777
+ additionalProperties: {
778
+ type: "string"
779
+ }
780
+ },
781
+ annotations: {
782
+ type: "object",
783
+ additionalProperties: {
784
+ type: "string"
785
+ }
786
+ },
787
+ dependencies: {
788
+ type: "array",
789
+ items: {
790
+ type: "string"
791
+ }
792
+ },
628
793
  externalDependencies: {
629
794
  type: "array",
630
795
  items: {
631
796
  oneOf: [
632
- { type: "string" },
797
+ {
798
+ type: "string"
799
+ },
633
800
  {
634
801
  type: "object",
635
802
  properties: {
636
- name: { type: "string" },
637
- url: { type: "string" },
638
- required: { type: "boolean" },
639
- healthCheck: { type: "string" }
803
+ name: {
804
+ type: "string"
805
+ },
806
+ url: {
807
+ type: "string"
808
+ },
809
+ required: {
810
+ type: "boolean"
811
+ },
812
+ healthCheck: {
813
+ type: "string"
814
+ }
640
815
  }
641
816
  }
642
817
  ]
643
818
  }
644
819
  },
645
- redisUrl: { type: "string" },
646
- environment: { type: "object", additionalProperties: { type: "string" } },
647
- env: { type: "object", additionalProperties: { type: "string" } }
820
+ redisUrl: {
821
+ type: "string"
822
+ },
823
+ environment: {
824
+ type: "object",
825
+ additionalProperties: {
826
+ type: "string"
827
+ }
828
+ },
829
+ env: {
830
+ type: "object",
831
+ additionalProperties: {
832
+ type: "string"
833
+ }
834
+ }
648
835
  },
649
- required: ["platform", "port", "publicURL", "corsOrigin"],
836
+ required: [
837
+ "platform",
838
+ "port",
839
+ "publicURL",
840
+ "corsOrigin"
841
+ ],
650
842
  additionalProperties: false
651
843
  },
652
844
  FrontendServiceConfig: {
653
845
  type: "object",
654
846
  properties: {
655
- platform: { $ref: "#/definitions/ServicePlatformConfig" },
656
- devMode: { type: "boolean" },
657
- command: { type: "string" },
658
- port: { type: "integer" },
659
- url: { type: "string" },
660
- siteName: { type: "string" },
661
- image: { type: "string" },
662
- semiontRepo: { type: "string" },
663
- projectRoot: { type: "string" },
664
- databaseUrl: { type: "string" },
665
- timeout: { type: "integer" },
666
- wait: { type: "integer" },
667
- logsEndpoint: { type: "string" },
668
- tag: { type: "string" },
669
- resources: { $ref: "#/definitions/ResourceRequirements" },
670
- security: { $ref: "#/definitions/SecurityRequirements" },
847
+ platform: {
848
+ $ref: "#/definitions/ServicePlatformConfig"
849
+ },
850
+ devMode: {
851
+ type: "boolean"
852
+ },
853
+ command: {
854
+ type: "string"
855
+ },
856
+ port: {
857
+ type: "integer"
858
+ },
859
+ url: {
860
+ type: "string"
861
+ },
862
+ siteName: {
863
+ type: "string"
864
+ },
865
+ image: {
866
+ type: "string"
867
+ },
868
+ semiontRepo: {
869
+ type: "string"
870
+ },
871
+ projectRoot: {
872
+ type: "string"
873
+ },
874
+ databaseUrl: {
875
+ type: "string"
876
+ },
877
+ timeout: {
878
+ type: "integer"
879
+ },
880
+ wait: {
881
+ type: "integer"
882
+ },
883
+ logsEndpoint: {
884
+ type: "string"
885
+ },
886
+ tag: {
887
+ type: "string"
888
+ },
889
+ resources: {
890
+ $ref: "#/definitions/ResourceRequirements"
891
+ },
892
+ security: {
893
+ $ref: "#/definitions/SecurityRequirements"
894
+ },
671
895
  build: {
672
896
  oneOf: [
673
- { type: "boolean" },
674
- { $ref: "#/definitions/BuildRequirements" }
897
+ {
898
+ type: "boolean"
899
+ },
900
+ {
901
+ $ref: "#/definitions/BuildRequirements"
902
+ }
675
903
  ]
676
904
  },
677
- dockerfile: { type: "string" },
678
- buildContext: { type: "string" },
679
- buildArgs: { type: "object", additionalProperties: { type: "string" } },
680
- buildTarget: { type: "string" },
681
- prebuilt: { type: "boolean" },
682
- noCache: { type: "boolean" },
683
- secrets: { type: "array", items: { type: "string" } },
684
- labels: { type: "object", additionalProperties: { type: "string" } },
685
- annotations: { type: "object", additionalProperties: { type: "string" } },
686
- dependencies: { type: "array", items: { type: "string" } },
905
+ dockerfile: {
906
+ type: "string"
907
+ },
908
+ buildContext: {
909
+ type: "string"
910
+ },
911
+ buildArgs: {
912
+ type: "object",
913
+ additionalProperties: {
914
+ type: "string"
915
+ }
916
+ },
917
+ buildTarget: {
918
+ type: "string"
919
+ },
920
+ prebuilt: {
921
+ type: "boolean"
922
+ },
923
+ noCache: {
924
+ type: "boolean"
925
+ },
926
+ secrets: {
927
+ type: "array",
928
+ items: {
929
+ type: "string"
930
+ }
931
+ },
932
+ labels: {
933
+ type: "object",
934
+ additionalProperties: {
935
+ type: "string"
936
+ }
937
+ },
938
+ annotations: {
939
+ type: "object",
940
+ additionalProperties: {
941
+ type: "string"
942
+ }
943
+ },
944
+ dependencies: {
945
+ type: "array",
946
+ items: {
947
+ type: "string"
948
+ }
949
+ },
687
950
  externalDependencies: {
688
951
  type: "array",
689
952
  items: {
690
953
  oneOf: [
691
- { type: "string" },
954
+ {
955
+ type: "string"
956
+ },
692
957
  {
693
958
  type: "object",
694
959
  properties: {
695
- name: { type: "string" },
696
- url: { type: "string" },
697
- required: { type: "boolean" },
698
- healthCheck: { type: "string" }
960
+ name: {
961
+ type: "string"
962
+ },
963
+ url: {
964
+ type: "string"
965
+ },
966
+ required: {
967
+ type: "boolean"
968
+ },
969
+ healthCheck: {
970
+ type: "string"
971
+ }
699
972
  }
700
973
  }
701
974
  ]
702
975
  }
703
976
  },
704
- environment: { type: "object", additionalProperties: { type: "string" } },
705
- env: { type: "object", additionalProperties: { type: "string" } },
706
- publicURL: { type: "string" },
707
- allowedOrigins: { type: "array", items: { type: "string" } }
977
+ environment: {
978
+ type: "object",
979
+ additionalProperties: {
980
+ type: "string"
981
+ }
982
+ },
983
+ env: {
984
+ type: "object",
985
+ additionalProperties: {
986
+ type: "string"
987
+ }
988
+ },
989
+ publicURL: {
990
+ type: "string"
991
+ },
992
+ allowedOrigins: {
993
+ type: "array",
994
+ items: {
995
+ type: "string"
996
+ }
997
+ }
708
998
  },
709
- required: ["platform", "port", "url", "siteName"],
999
+ required: [
1000
+ "platform",
1001
+ "port",
1002
+ "url",
1003
+ "siteName"
1004
+ ],
710
1005
  additionalProperties: false
711
1006
  },
712
1007
  DatabaseServiceConfig: {
713
1008
  type: "object",
714
1009
  properties: {
715
- platform: { $ref: "#/definitions/ServicePlatformConfig" },
716
- type: { type: "string" },
717
- name: { type: "string" },
718
- host: { type: "string" },
719
- port: { type: "integer" },
720
- environment: { type: "object", additionalProperties: { type: "string" } },
721
- env: { type: "object", additionalProperties: { type: "string" } },
722
- description: { type: "string" },
723
- command: { type: "string" },
724
- image: { type: "string" },
725
- user: { type: "string" },
726
- username: { type: "string" },
727
- password: { type: "string" },
728
- database: { type: "string" },
729
- storageSize: { type: "string" },
730
- timeout: { type: "integer" },
731
- wait: { type: "integer" },
732
- logsEndpoint: { type: "string" },
733
- tag: { type: "string" },
734
- resources: { $ref: "#/definitions/ResourceRequirements" },
735
- security: { $ref: "#/definitions/SecurityRequirements" },
1010
+ platform: {
1011
+ $ref: "#/definitions/ServicePlatformConfig"
1012
+ },
1013
+ type: {
1014
+ type: "string"
1015
+ },
1016
+ name: {
1017
+ type: "string"
1018
+ },
1019
+ host: {
1020
+ type: "string"
1021
+ },
1022
+ port: {
1023
+ type: "integer"
1024
+ },
1025
+ environment: {
1026
+ type: "object",
1027
+ additionalProperties: {
1028
+ type: "string"
1029
+ }
1030
+ },
1031
+ env: {
1032
+ type: "object",
1033
+ additionalProperties: {
1034
+ type: "string"
1035
+ }
1036
+ },
1037
+ description: {
1038
+ type: "string"
1039
+ },
1040
+ command: {
1041
+ type: "string"
1042
+ },
1043
+ image: {
1044
+ type: "string"
1045
+ },
1046
+ user: {
1047
+ type: "string"
1048
+ },
1049
+ username: {
1050
+ type: "string"
1051
+ },
1052
+ password: {
1053
+ type: "string"
1054
+ },
1055
+ database: {
1056
+ type: "string"
1057
+ },
1058
+ storageSize: {
1059
+ type: "string"
1060
+ },
1061
+ timeout: {
1062
+ type: "integer"
1063
+ },
1064
+ wait: {
1065
+ type: "integer"
1066
+ },
1067
+ logsEndpoint: {
1068
+ type: "string"
1069
+ },
1070
+ tag: {
1071
+ type: "string"
1072
+ },
1073
+ resources: {
1074
+ $ref: "#/definitions/ResourceRequirements"
1075
+ },
1076
+ security: {
1077
+ $ref: "#/definitions/SecurityRequirements"
1078
+ },
736
1079
  build: {
737
1080
  oneOf: [
738
- { type: "boolean" },
739
- { $ref: "#/definitions/BuildRequirements" }
1081
+ {
1082
+ type: "boolean"
1083
+ },
1084
+ {
1085
+ $ref: "#/definitions/BuildRequirements"
1086
+ }
740
1087
  ]
741
1088
  },
742
- dockerfile: { type: "string" },
743
- buildContext: { type: "string" },
744
- buildArgs: { type: "object", additionalProperties: { type: "string" } },
745
- buildTarget: { type: "string" },
746
- prebuilt: { type: "boolean" },
747
- noCache: { type: "boolean" },
748
- secrets: { type: "array", items: { type: "string" } },
749
- labels: { type: "object", additionalProperties: { type: "string" } },
750
- annotations: { type: "object", additionalProperties: { type: "string" } },
751
- dependencies: { type: "array", items: { type: "string" } },
1089
+ dockerfile: {
1090
+ type: "string"
1091
+ },
1092
+ buildContext: {
1093
+ type: "string"
1094
+ },
1095
+ buildArgs: {
1096
+ type: "object",
1097
+ additionalProperties: {
1098
+ type: "string"
1099
+ }
1100
+ },
1101
+ buildTarget: {
1102
+ type: "string"
1103
+ },
1104
+ prebuilt: {
1105
+ type: "boolean"
1106
+ },
1107
+ noCache: {
1108
+ type: "boolean"
1109
+ },
1110
+ secrets: {
1111
+ type: "array",
1112
+ items: {
1113
+ type: "string"
1114
+ }
1115
+ },
1116
+ labels: {
1117
+ type: "object",
1118
+ additionalProperties: {
1119
+ type: "string"
1120
+ }
1121
+ },
1122
+ annotations: {
1123
+ type: "object",
1124
+ additionalProperties: {
1125
+ type: "string"
1126
+ }
1127
+ },
1128
+ dependencies: {
1129
+ type: "array",
1130
+ items: {
1131
+ type: "string"
1132
+ }
1133
+ },
752
1134
  externalDependencies: {
753
1135
  type: "array",
754
1136
  items: {
755
1137
  oneOf: [
756
- { type: "string" },
1138
+ {
1139
+ type: "string"
1140
+ },
757
1141
  {
758
1142
  type: "object",
759
1143
  properties: {
760
- name: { type: "string" },
761
- url: { type: "string" },
762
- required: { type: "boolean" },
763
- healthCheck: { type: "string" }
1144
+ name: {
1145
+ type: "string"
1146
+ },
1147
+ url: {
1148
+ type: "string"
1149
+ },
1150
+ required: {
1151
+ type: "boolean"
1152
+ },
1153
+ healthCheck: {
1154
+ type: "string"
1155
+ }
764
1156
  }
765
1157
  }
766
1158
  ]
767
1159
  }
768
1160
  }
769
1161
  },
770
- required: ["platform", "type", "host", "port"],
1162
+ required: [
1163
+ "platform",
1164
+ "type",
1165
+ "host",
1166
+ "port"
1167
+ ],
771
1168
  additionalProperties: false
772
1169
  },
773
1170
  GraphDatabaseType: {
774
1171
  type: "string",
775
- enum: ["neo4j", "janusgraph", "neptune", "memory"]
1172
+ enum: [
1173
+ "neo4j",
1174
+ "janusgraph",
1175
+ "neptune",
1176
+ "memory"
1177
+ ]
776
1178
  },
777
1179
  GraphServiceConfig: {
778
1180
  type: "object",
779
1181
  properties: {
780
- platform: { $ref: "#/definitions/ServicePlatformConfig" },
781
- type: { $ref: "#/definitions/GraphDatabaseType" },
782
- name: { type: "string" },
783
- uri: { type: "string" },
784
- url: { type: "string" },
785
- username: { type: "string" },
786
- password: { type: "string" },
787
- database: { type: "string" },
788
- host: { type: "string" },
789
- port: { type: "integer" },
790
- storage: { type: "string" },
791
- index: { type: "string" },
792
- endpoint: { type: "string" },
793
- region: { type: "string" },
794
- command: { type: "string" },
795
- image: { type: "string" },
796
- janusgraphVersion: { type: "string" },
797
- javaOptions: { type: "string" },
798
- heapSize: { type: "string" },
799
- pageCacheSize: { type: "string" },
800
- noAuth: { type: "boolean" },
801
- dataPath: { type: "string" },
802
- timeout: { type: "integer" },
803
- wait: { type: "integer" },
804
- logsEndpoint: { type: "string" },
805
- tag: { type: "string" },
806
- resources: { $ref: "#/definitions/ResourceRequirements" },
807
- security: { $ref: "#/definitions/SecurityRequirements" },
1182
+ platform: {
1183
+ $ref: "#/definitions/ServicePlatformConfig"
1184
+ },
1185
+ type: {
1186
+ $ref: "#/definitions/GraphDatabaseType"
1187
+ },
1188
+ name: {
1189
+ type: "string"
1190
+ },
1191
+ uri: {
1192
+ type: "string"
1193
+ },
1194
+ url: {
1195
+ type: "string"
1196
+ },
1197
+ username: {
1198
+ type: "string"
1199
+ },
1200
+ password: {
1201
+ type: "string"
1202
+ },
1203
+ database: {
1204
+ type: "string"
1205
+ },
1206
+ host: {
1207
+ type: "string"
1208
+ },
1209
+ port: {
1210
+ type: "integer"
1211
+ },
1212
+ storage: {
1213
+ type: "string"
1214
+ },
1215
+ index: {
1216
+ type: "string"
1217
+ },
1218
+ endpoint: {
1219
+ type: "string"
1220
+ },
1221
+ region: {
1222
+ type: "string"
1223
+ },
1224
+ command: {
1225
+ type: "string"
1226
+ },
1227
+ image: {
1228
+ type: "string"
1229
+ },
1230
+ janusgraphVersion: {
1231
+ type: "string"
1232
+ },
1233
+ javaOptions: {
1234
+ type: "string"
1235
+ },
1236
+ heapSize: {
1237
+ type: "string"
1238
+ },
1239
+ pageCacheSize: {
1240
+ type: "string"
1241
+ },
1242
+ noAuth: {
1243
+ type: "boolean"
1244
+ },
1245
+ dataPath: {
1246
+ type: "string"
1247
+ },
1248
+ timeout: {
1249
+ type: "integer"
1250
+ },
1251
+ wait: {
1252
+ type: "integer"
1253
+ },
1254
+ logsEndpoint: {
1255
+ type: "string"
1256
+ },
1257
+ tag: {
1258
+ type: "string"
1259
+ },
1260
+ resources: {
1261
+ $ref: "#/definitions/ResourceRequirements"
1262
+ },
1263
+ security: {
1264
+ $ref: "#/definitions/SecurityRequirements"
1265
+ },
808
1266
  build: {
809
1267
  oneOf: [
810
- { type: "boolean" },
811
- { $ref: "#/definitions/BuildRequirements" }
1268
+ {
1269
+ type: "boolean"
1270
+ },
1271
+ {
1272
+ $ref: "#/definitions/BuildRequirements"
1273
+ }
812
1274
  ]
813
1275
  },
814
- dockerfile: { type: "string" },
815
- buildContext: { type: "string" },
816
- buildArgs: { type: "object", additionalProperties: { type: "string" } },
817
- buildTarget: { type: "string" },
818
- prebuilt: { type: "boolean" },
819
- noCache: { type: "boolean" },
820
- secrets: { type: "array", items: { type: "string" } },
821
- labels: { type: "object", additionalProperties: { type: "string" } },
822
- annotations: { type: "object", additionalProperties: { type: "string" } },
823
- dependencies: { type: "array", items: { type: "string" } },
1276
+ dockerfile: {
1277
+ type: "string"
1278
+ },
1279
+ buildContext: {
1280
+ type: "string"
1281
+ },
1282
+ buildArgs: {
1283
+ type: "object",
1284
+ additionalProperties: {
1285
+ type: "string"
1286
+ }
1287
+ },
1288
+ buildTarget: {
1289
+ type: "string"
1290
+ },
1291
+ prebuilt: {
1292
+ type: "boolean"
1293
+ },
1294
+ noCache: {
1295
+ type: "boolean"
1296
+ },
1297
+ secrets: {
1298
+ type: "array",
1299
+ items: {
1300
+ type: "string"
1301
+ }
1302
+ },
1303
+ labels: {
1304
+ type: "object",
1305
+ additionalProperties: {
1306
+ type: "string"
1307
+ }
1308
+ },
1309
+ annotations: {
1310
+ type: "object",
1311
+ additionalProperties: {
1312
+ type: "string"
1313
+ }
1314
+ },
1315
+ dependencies: {
1316
+ type: "array",
1317
+ items: {
1318
+ type: "string"
1319
+ }
1320
+ },
824
1321
  externalDependencies: {
825
1322
  type: "array",
826
1323
  items: {
827
1324
  oneOf: [
828
- { type: "string" },
1325
+ {
1326
+ type: "string"
1327
+ },
829
1328
  {
830
1329
  type: "object",
831
1330
  properties: {
832
- name: { type: "string" },
833
- url: { type: "string" },
834
- required: { type: "boolean" },
835
- healthCheck: { type: "string" }
1331
+ name: {
1332
+ type: "string"
1333
+ },
1334
+ url: {
1335
+ type: "string"
1336
+ },
1337
+ required: {
1338
+ type: "boolean"
1339
+ },
1340
+ healthCheck: {
1341
+ type: "string"
1342
+ }
836
1343
  }
837
1344
  }
838
1345
  ]
839
1346
  }
840
1347
  },
841
- environment: { type: "object", additionalProperties: { type: "string" } },
842
- env: { type: "object", additionalProperties: { type: "string" } }
1348
+ environment: {
1349
+ type: "object",
1350
+ additionalProperties: {
1351
+ type: "string"
1352
+ }
1353
+ },
1354
+ env: {
1355
+ type: "object",
1356
+ additionalProperties: {
1357
+ type: "string"
1358
+ }
1359
+ }
843
1360
  },
844
- required: ["platform", "type", "uri", "username", "password", "database"],
1361
+ required: [
1362
+ "platform",
1363
+ "type"
1364
+ ],
1365
+ allOf: [
1366
+ {
1367
+ if: {
1368
+ properties: {
1369
+ type: {
1370
+ const: "neo4j"
1371
+ }
1372
+ }
1373
+ },
1374
+ then: {
1375
+ required: [
1376
+ "uri",
1377
+ "username",
1378
+ "password",
1379
+ "database"
1380
+ ]
1381
+ }
1382
+ }
1383
+ ],
845
1384
  additionalProperties: false
846
1385
  },
847
1386
  FilesystemServiceConfig: {
848
1387
  type: "object",
849
1388
  properties: {
850
- platform: { $ref: "#/definitions/ServicePlatformConfig" },
851
- path: { type: "string" },
852
- description: { type: "string" },
853
- command: { type: "string" },
854
- image: { type: "string" },
855
- port: { type: "integer" },
856
- timeout: { type: "integer" },
857
- wait: { type: "integer" },
858
- logsEndpoint: { type: "string" },
859
- tag: { type: "string" },
860
- resources: { $ref: "#/definitions/ResourceRequirements" },
861
- security: { $ref: "#/definitions/SecurityRequirements" },
1389
+ platform: {
1390
+ $ref: "#/definitions/ServicePlatformConfig"
1391
+ },
1392
+ path: {
1393
+ type: "string"
1394
+ },
1395
+ description: {
1396
+ type: "string"
1397
+ },
1398
+ command: {
1399
+ type: "string"
1400
+ },
1401
+ image: {
1402
+ type: "string"
1403
+ },
1404
+ port: {
1405
+ type: "integer"
1406
+ },
1407
+ timeout: {
1408
+ type: "integer"
1409
+ },
1410
+ wait: {
1411
+ type: "integer"
1412
+ },
1413
+ logsEndpoint: {
1414
+ type: "string"
1415
+ },
1416
+ tag: {
1417
+ type: "string"
1418
+ },
1419
+ resources: {
1420
+ $ref: "#/definitions/ResourceRequirements"
1421
+ },
1422
+ security: {
1423
+ $ref: "#/definitions/SecurityRequirements"
1424
+ },
862
1425
  build: {
863
1426
  oneOf: [
864
- { type: "boolean" },
865
- { $ref: "#/definitions/BuildRequirements" }
1427
+ {
1428
+ type: "boolean"
1429
+ },
1430
+ {
1431
+ $ref: "#/definitions/BuildRequirements"
1432
+ }
866
1433
  ]
867
1434
  },
868
- dockerfile: { type: "string" },
869
- buildContext: { type: "string" },
870
- buildArgs: { type: "object", additionalProperties: { type: "string" } },
871
- buildTarget: { type: "string" },
872
- prebuilt: { type: "boolean" },
873
- noCache: { type: "boolean" },
874
- secrets: { type: "array", items: { type: "string" } },
875
- labels: { type: "object", additionalProperties: { type: "string" } },
876
- annotations: { type: "object", additionalProperties: { type: "string" } },
877
- dependencies: { type: "array", items: { type: "string" } },
1435
+ dockerfile: {
1436
+ type: "string"
1437
+ },
1438
+ buildContext: {
1439
+ type: "string"
1440
+ },
1441
+ buildArgs: {
1442
+ type: "object",
1443
+ additionalProperties: {
1444
+ type: "string"
1445
+ }
1446
+ },
1447
+ buildTarget: {
1448
+ type: "string"
1449
+ },
1450
+ prebuilt: {
1451
+ type: "boolean"
1452
+ },
1453
+ noCache: {
1454
+ type: "boolean"
1455
+ },
1456
+ secrets: {
1457
+ type: "array",
1458
+ items: {
1459
+ type: "string"
1460
+ }
1461
+ },
1462
+ labels: {
1463
+ type: "object",
1464
+ additionalProperties: {
1465
+ type: "string"
1466
+ }
1467
+ },
1468
+ annotations: {
1469
+ type: "object",
1470
+ additionalProperties: {
1471
+ type: "string"
1472
+ }
1473
+ },
1474
+ dependencies: {
1475
+ type: "array",
1476
+ items: {
1477
+ type: "string"
1478
+ }
1479
+ },
878
1480
  externalDependencies: {
879
1481
  type: "array",
880
1482
  items: {
881
1483
  oneOf: [
882
- { type: "string" },
1484
+ {
1485
+ type: "string"
1486
+ },
883
1487
  {
884
1488
  type: "object",
885
1489
  properties: {
886
- name: { type: "string" },
887
- url: { type: "string" },
888
- required: { type: "boolean" },
889
- healthCheck: { type: "string" }
1490
+ name: {
1491
+ type: "string"
1492
+ },
1493
+ url: {
1494
+ type: "string"
1495
+ },
1496
+ required: {
1497
+ type: "boolean"
1498
+ },
1499
+ healthCheck: {
1500
+ type: "string"
1501
+ }
890
1502
  }
891
1503
  }
892
1504
  ]
893
1505
  }
894
1506
  },
895
- environment: { type: "object", additionalProperties: { type: "string" } },
896
- env: { type: "object", additionalProperties: { type: "string" } }
1507
+ environment: {
1508
+ type: "object",
1509
+ additionalProperties: {
1510
+ type: "string"
1511
+ }
1512
+ },
1513
+ env: {
1514
+ type: "object",
1515
+ additionalProperties: {
1516
+ type: "string"
1517
+ }
1518
+ }
897
1519
  },
898
- required: ["platform", "path"],
1520
+ required: [
1521
+ "platform",
1522
+ "path"
1523
+ ],
899
1524
  additionalProperties: false
900
1525
  },
901
1526
  InferenceServiceConfig: {
902
1527
  type: "object",
903
1528
  properties: {
904
- platform: { $ref: "#/definitions/ServicePlatformConfig" },
905
- type: { type: "string" },
906
- model: { type: "string" },
907
- maxTokens: { type: "integer" },
908
- endpoint: { type: "string" },
909
- baseURL: { type: "string" },
910
- apiKey: { type: "string" },
911
- command: { type: "string" },
912
- image: { type: "string" },
913
- port: { type: "integer" },
914
- organization: { type: "string" },
915
- timeout: { type: "integer" },
916
- wait: { type: "integer" },
917
- logsEndpoint: { type: "string" },
918
- tag: { type: "string" },
919
- resources: { $ref: "#/definitions/ResourceRequirements" },
920
- security: { $ref: "#/definitions/SecurityRequirements" },
1529
+ platform: {
1530
+ $ref: "#/definitions/ServicePlatformConfig"
1531
+ },
1532
+ type: {
1533
+ type: "string"
1534
+ },
1535
+ model: {
1536
+ type: "string"
1537
+ },
1538
+ maxTokens: {
1539
+ type: "integer"
1540
+ },
1541
+ endpoint: {
1542
+ type: "string"
1543
+ },
1544
+ baseURL: {
1545
+ type: "string"
1546
+ },
1547
+ apiKey: {
1548
+ type: "string"
1549
+ },
1550
+ command: {
1551
+ type: "string"
1552
+ },
1553
+ image: {
1554
+ type: "string"
1555
+ },
1556
+ port: {
1557
+ type: "integer"
1558
+ },
1559
+ organization: {
1560
+ type: "string"
1561
+ },
1562
+ timeout: {
1563
+ type: "integer"
1564
+ },
1565
+ wait: {
1566
+ type: "integer"
1567
+ },
1568
+ logsEndpoint: {
1569
+ type: "string"
1570
+ },
1571
+ tag: {
1572
+ type: "string"
1573
+ },
1574
+ resources: {
1575
+ $ref: "#/definitions/ResourceRequirements"
1576
+ },
1577
+ security: {
1578
+ $ref: "#/definitions/SecurityRequirements"
1579
+ },
921
1580
  build: {
922
1581
  oneOf: [
923
- { type: "boolean" },
924
- { $ref: "#/definitions/BuildRequirements" }
1582
+ {
1583
+ type: "boolean"
1584
+ },
1585
+ {
1586
+ $ref: "#/definitions/BuildRequirements"
1587
+ }
925
1588
  ]
926
1589
  },
927
- dockerfile: { type: "string" },
928
- buildContext: { type: "string" },
929
- buildArgs: { type: "object", additionalProperties: { type: "string" } },
930
- buildTarget: { type: "string" },
931
- prebuilt: { type: "boolean" },
932
- noCache: { type: "boolean" },
933
- secrets: { type: "array", items: { type: "string" } },
934
- labels: { type: "object", additionalProperties: { type: "string" } },
935
- annotations: { type: "object", additionalProperties: { type: "string" } },
936
- dependencies: { type: "array", items: { type: "string" } },
1590
+ dockerfile: {
1591
+ type: "string"
1592
+ },
1593
+ buildContext: {
1594
+ type: "string"
1595
+ },
1596
+ buildArgs: {
1597
+ type: "object",
1598
+ additionalProperties: {
1599
+ type: "string"
1600
+ }
1601
+ },
1602
+ buildTarget: {
1603
+ type: "string"
1604
+ },
1605
+ prebuilt: {
1606
+ type: "boolean"
1607
+ },
1608
+ noCache: {
1609
+ type: "boolean"
1610
+ },
1611
+ secrets: {
1612
+ type: "array",
1613
+ items: {
1614
+ type: "string"
1615
+ }
1616
+ },
1617
+ labels: {
1618
+ type: "object",
1619
+ additionalProperties: {
1620
+ type: "string"
1621
+ }
1622
+ },
1623
+ annotations: {
1624
+ type: "object",
1625
+ additionalProperties: {
1626
+ type: "string"
1627
+ }
1628
+ },
1629
+ dependencies: {
1630
+ type: "array",
1631
+ items: {
1632
+ type: "string"
1633
+ }
1634
+ },
937
1635
  externalDependencies: {
938
1636
  type: "array",
939
1637
  items: {
940
1638
  oneOf: [
941
- { type: "string" },
1639
+ {
1640
+ type: "string"
1641
+ },
942
1642
  {
943
1643
  type: "object",
944
1644
  properties: {
945
- name: { type: "string" },
946
- url: { type: "string" },
947
- required: { type: "boolean" },
948
- healthCheck: { type: "string" }
1645
+ name: {
1646
+ type: "string"
1647
+ },
1648
+ url: {
1649
+ type: "string"
1650
+ },
1651
+ required: {
1652
+ type: "boolean"
1653
+ },
1654
+ healthCheck: {
1655
+ type: "string"
1656
+ }
949
1657
  }
950
1658
  }
951
1659
  ]
952
1660
  }
953
1661
  },
954
- environment: { type: "object", additionalProperties: { type: "string" } },
955
- env: { type: "object", additionalProperties: { type: "string" } }
1662
+ environment: {
1663
+ type: "object",
1664
+ additionalProperties: {
1665
+ type: "string"
1666
+ }
1667
+ },
1668
+ env: {
1669
+ type: "object",
1670
+ additionalProperties: {
1671
+ type: "string"
1672
+ }
1673
+ }
956
1674
  },
957
- required: ["platform", "type", "apiKey"],
1675
+ required: [
1676
+ "platform",
1677
+ "type",
1678
+ "apiKey"
1679
+ ],
958
1680
  additionalProperties: false
959
1681
  },
960
1682
  McpServiceConfig: {
961
1683
  type: "object",
962
1684
  properties: {
963
- platform: { $ref: "#/definitions/ServicePlatformConfig" },
964
- command: { type: "string" },
965
- image: { type: "string" },
966
- port: { type: "integer" },
967
- dependsOn: { type: "array", items: { type: "string" } },
968
- timeout: { type: "integer" },
969
- wait: { type: "integer" },
970
- logsEndpoint: { type: "string" },
971
- tag: { type: "string" },
972
- resources: { $ref: "#/definitions/ResourceRequirements" },
973
- security: { $ref: "#/definitions/SecurityRequirements" },
1685
+ platform: {
1686
+ $ref: "#/definitions/ServicePlatformConfig"
1687
+ },
1688
+ command: {
1689
+ type: "string"
1690
+ },
1691
+ image: {
1692
+ type: "string"
1693
+ },
1694
+ port: {
1695
+ type: "integer"
1696
+ },
1697
+ dependsOn: {
1698
+ type: "array",
1699
+ items: {
1700
+ type: "string"
1701
+ }
1702
+ },
1703
+ timeout: {
1704
+ type: "integer"
1705
+ },
1706
+ wait: {
1707
+ type: "integer"
1708
+ },
1709
+ logsEndpoint: {
1710
+ type: "string"
1711
+ },
1712
+ tag: {
1713
+ type: "string"
1714
+ },
1715
+ resources: {
1716
+ $ref: "#/definitions/ResourceRequirements"
1717
+ },
1718
+ security: {
1719
+ $ref: "#/definitions/SecurityRequirements"
1720
+ },
974
1721
  build: {
975
1722
  oneOf: [
976
- { type: "boolean" },
977
- { $ref: "#/definitions/BuildRequirements" }
1723
+ {
1724
+ type: "boolean"
1725
+ },
1726
+ {
1727
+ $ref: "#/definitions/BuildRequirements"
1728
+ }
978
1729
  ]
979
1730
  },
980
- dockerfile: { type: "string" },
981
- buildContext: { type: "string" },
982
- buildArgs: { type: "object", additionalProperties: { type: "string" } },
983
- buildTarget: { type: "string" },
984
- prebuilt: { type: "boolean" },
985
- noCache: { type: "boolean" },
986
- secrets: { type: "array", items: { type: "string" } },
987
- labels: { type: "object", additionalProperties: { type: "string" } },
988
- annotations: { type: "object", additionalProperties: { type: "string" } },
989
- dependencies: { type: "array", items: { type: "string" } },
1731
+ dockerfile: {
1732
+ type: "string"
1733
+ },
1734
+ buildContext: {
1735
+ type: "string"
1736
+ },
1737
+ buildArgs: {
1738
+ type: "object",
1739
+ additionalProperties: {
1740
+ type: "string"
1741
+ }
1742
+ },
1743
+ buildTarget: {
1744
+ type: "string"
1745
+ },
1746
+ prebuilt: {
1747
+ type: "boolean"
1748
+ },
1749
+ noCache: {
1750
+ type: "boolean"
1751
+ },
1752
+ secrets: {
1753
+ type: "array",
1754
+ items: {
1755
+ type: "string"
1756
+ }
1757
+ },
1758
+ labels: {
1759
+ type: "object",
1760
+ additionalProperties: {
1761
+ type: "string"
1762
+ }
1763
+ },
1764
+ annotations: {
1765
+ type: "object",
1766
+ additionalProperties: {
1767
+ type: "string"
1768
+ }
1769
+ },
1770
+ dependencies: {
1771
+ type: "array",
1772
+ items: {
1773
+ type: "string"
1774
+ }
1775
+ },
990
1776
  externalDependencies: {
991
1777
  type: "array",
992
1778
  items: {
993
1779
  oneOf: [
994
- { type: "string" },
1780
+ {
1781
+ type: "string"
1782
+ },
995
1783
  {
996
1784
  type: "object",
997
1785
  properties: {
998
- name: { type: "string" },
999
- url: { type: "string" },
1000
- required: { type: "boolean" },
1001
- healthCheck: { type: "string" }
1786
+ name: {
1787
+ type: "string"
1788
+ },
1789
+ url: {
1790
+ type: "string"
1791
+ },
1792
+ required: {
1793
+ type: "boolean"
1794
+ },
1795
+ healthCheck: {
1796
+ type: "string"
1797
+ }
1002
1798
  }
1003
1799
  }
1004
1800
  ]
1005
1801
  }
1006
1802
  },
1007
- environment: { type: "object", additionalProperties: { type: "string" } },
1008
- env: { type: "object", additionalProperties: { type: "string" } }
1803
+ environment: {
1804
+ type: "object",
1805
+ additionalProperties: {
1806
+ type: "string"
1807
+ }
1808
+ },
1809
+ env: {
1810
+ type: "object",
1811
+ additionalProperties: {
1812
+ type: "string"
1813
+ }
1814
+ }
1009
1815
  },
1010
- required: ["platform"],
1816
+ required: [
1817
+ "platform"
1818
+ ],
1011
1819
  additionalProperties: false
1012
1820
  },
1013
1821
  ServicesConfig: {
1014
1822
  type: "object",
1015
1823
  properties: {
1016
- backend: { $ref: "#/definitions/BackendServiceConfig" },
1017
- frontend: { $ref: "#/definitions/FrontendServiceConfig" },
1018
- database: { $ref: "#/definitions/DatabaseServiceConfig" },
1019
- graph: { $ref: "#/definitions/GraphServiceConfig" },
1020
- filesystem: { $ref: "#/definitions/FilesystemServiceConfig" },
1021
- inference: { $ref: "#/definitions/InferenceServiceConfig" },
1022
- mcp: { $ref: "#/definitions/McpServiceConfig" }
1824
+ backend: {
1825
+ $ref: "#/definitions/BackendServiceConfig"
1826
+ },
1827
+ frontend: {
1828
+ $ref: "#/definitions/FrontendServiceConfig"
1829
+ },
1830
+ database: {
1831
+ $ref: "#/definitions/DatabaseServiceConfig"
1832
+ },
1833
+ graph: {
1834
+ $ref: "#/definitions/GraphServiceConfig"
1835
+ },
1836
+ filesystem: {
1837
+ $ref: "#/definitions/FilesystemServiceConfig"
1838
+ },
1839
+ inference: {
1840
+ $ref: "#/definitions/InferenceServiceConfig"
1841
+ },
1842
+ mcp: {
1843
+ $ref: "#/definitions/McpServiceConfig"
1844
+ }
1023
1845
  },
1024
1846
  additionalProperties: true
1025
1847
  },
@@ -1055,7 +1877,9 @@ var config_schema_default = {
1055
1877
  description: "Email domains allowed for OAuth authentication"
1056
1878
  }
1057
1879
  },
1058
- required: ["domain"],
1880
+ required: [
1881
+ "domain"
1882
+ ],
1059
1883
  additionalProperties: false
1060
1884
  },
1061
1885
  AppConfig: {
@@ -1064,9 +1888,15 @@ var config_schema_default = {
1064
1888
  features: {
1065
1889
  type: "object",
1066
1890
  properties: {
1067
- enableAnalytics: { type: "boolean" },
1068
- enableMaintenanceMode: { type: "boolean" },
1069
- enableDebugLogging: { type: "boolean" }
1891
+ enableAnalytics: {
1892
+ type: "boolean"
1893
+ },
1894
+ enableMaintenanceMode: {
1895
+ type: "boolean"
1896
+ },
1897
+ enableDebugLogging: {
1898
+ type: "boolean"
1899
+ }
1070
1900
  },
1071
1901
  additionalProperties: false
1072
1902
  },
@@ -1085,7 +1915,9 @@ var config_schema_default = {
1085
1915
  },
1086
1916
  corsAllowedOrigins: {
1087
1917
  type: "array",
1088
- items: { type: "string" }
1918
+ items: {
1919
+ type: "string"
1920
+ }
1089
1921
  },
1090
1922
  enableLocalAuth: {
1091
1923
  type: "boolean",
@@ -1102,7 +1934,9 @@ var config_schema_default = {
1102
1934
  performance: {
1103
1935
  type: "object",
1104
1936
  properties: {
1105
- enableCaching: { type: "boolean" },
1937
+ enableCaching: {
1938
+ type: "boolean"
1939
+ },
1106
1940
  cacheTimeout: {
1107
1941
  type: "integer",
1108
1942
  minimum: 0,
@@ -1129,10 +1963,17 @@ var config_schema_default = {
1129
1963
  _metadata: {
1130
1964
  type: "object",
1131
1965
  properties: {
1132
- environment: { type: "string" },
1133
- projectRoot: { type: "string" }
1966
+ environment: {
1967
+ type: "string"
1968
+ },
1969
+ projectRoot: {
1970
+ type: "string"
1971
+ }
1134
1972
  },
1135
- required: ["environment", "projectRoot"]
1973
+ required: [
1974
+ "environment",
1975
+ "projectRoot"
1976
+ ]
1136
1977
  },
1137
1978
  name: {
1138
1979
  type: "string",
@@ -1141,7 +1982,9 @@ var config_schema_default = {
1141
1982
  platform: {
1142
1983
  type: "object",
1143
1984
  properties: {
1144
- default: { $ref: "#/definitions/PlatformType" }
1985
+ default: {
1986
+ $ref: "#/definitions/PlatformType"
1987
+ }
1145
1988
  }
1146
1989
  },
1147
1990
  services: {
@@ -1158,22 +2001,43 @@ var config_schema_default = {
1158
2001
  properties: {
1159
2002
  NODE_ENV: {
1160
2003
  type: "string",
1161
- enum: ["development", "production", "test"]
2004
+ enum: [
2005
+ "development",
2006
+ "production",
2007
+ "test"
2008
+ ]
1162
2009
  }
1163
2010
  },
1164
2011
  additionalProperties: true
1165
2012
  },
2013
+ logLevel: {
2014
+ type: "string",
2015
+ enum: [
2016
+ "error",
2017
+ "warn",
2018
+ "info",
2019
+ "http",
2020
+ "debug"
2021
+ ],
2022
+ description: "Logging verbosity level"
2023
+ },
1166
2024
  deployment: {
1167
2025
  type: "object",
1168
2026
  properties: {
1169
2027
  imageTagStrategy: {
1170
2028
  type: "string",
1171
- enum: ["mutable", "immutable", "git-hash"]
2029
+ enum: [
2030
+ "mutable",
2031
+ "immutable",
2032
+ "git-hash"
2033
+ ]
1172
2034
  }
1173
2035
  }
1174
2036
  }
1175
2037
  },
1176
- required: ["services"],
2038
+ required: [
2039
+ "services"
2040
+ ],
1177
2041
  additionalProperties: false
1178
2042
  },
1179
2043
  SemiontConfig: {
@@ -1199,7 +2063,11 @@ var config_schema_default = {
1199
2063
  $ref: "#/definitions/ServicesConfig"
1200
2064
  }
1201
2065
  },
1202
- required: ["version", "project", "site"],
2066
+ required: [
2067
+ "version",
2068
+ "project",
2069
+ "site"
2070
+ ],
1203
2071
  additionalProperties: false
1204
2072
  }
1205
2073
  }
@@ -1454,6 +2322,6 @@ function getAllPlatformTypes() {
1454
2322
  var CORE_TYPES_VERSION = "0.1.0";
1455
2323
  var SDK_VERSION = "0.1.0";
1456
2324
 
1457
- export { APIError, CORE_TYPES_VERSION, CREATION_METHODS, ConfigurationError, ConflictError, NotFoundError, SDK_VERSION, ScriptError, SemiontError, UnauthorizedError, ValidationError, annotationId, bodyItemsMatch, calculateChecksum, createFetchAPI, didToAgent, fetchAPI, findBodyItem, findProjectRoot, formatEventType, formatRelativeTime, generateId, generateToken, generateUuid, getAllPlatformTypes, getAnnotationIdFromEvent, getAvailableEnvironments, getEnvironmentsPath, getEventDisplayContent, getEventEmoji, getEventEntityTypes, getEventType, getNodeEnvForEnvironment, getResourceCreationDetails, getSemiontConfigPath, isAnnotationId, isArray, isBoolean, isDefined, isEventRelatedToAnnotation, isFunction, isNull, isNullish, isNumber, isObject, isProjectRoot, isResourceEvent, isResourceId, isResourceScopedEvent, isString, isSystemEvent, isUndefined, isValidEnvironment, isValidPlatformType, loadEnvironmentConfig, parseEnvironment, resourceId, userId, userToAgent, userToDid, validateEnvironment, validateEnvironmentConfig, validateSemiontConfig, validateSiteConfig, verifyChecksum };
2325
+ export { APIError, CORE_TYPES_VERSION, CREATION_METHODS, ConfigurationError, ConflictError, NotFoundError, SDK_VERSION, ScriptError, SemiontError, UnauthorizedError, ValidationError, annotationId, annotationIdToURI, bodyItemsMatch, calculateChecksum, createFetchAPI, didToAgent, fetchAPI, findBodyItem, findProjectRoot, formatEventType, formatRelativeTime, generateId, generateToken, generateUuid, getAllPlatformTypes, getAnnotationIdFromEvent, getAvailableEnvironments, getEnvironmentsPath, getEventDisplayContent, getEventEmoji, getEventEntityTypes, getEventType, getNodeEnvForEnvironment, getResourceCreationDetails, getSemiontConfigPath, isAnnotationId, isArray, isBoolean, isDefined, isEventRelatedToAnnotation, isFunction, isNull, isNullish, isNumber, isObject, isProjectRoot, isResourceEvent, isResourceId, isResourceScopedEvent, isString, isSystemEvent, isUndefined, isValidEnvironment, isValidPlatformType, loadEnvironmentConfig, parseEnvironment, resourceId, resourceIdToURI, uriToAnnotationId, uriToResourceId, userId, userToAgent, userToDid, validateEnvironment, validateEnvironmentConfig, validateSemiontConfig, validateSiteConfig, verifyChecksum };
1458
2326
  //# sourceMappingURL=index.js.map
1459
2327
  //# sourceMappingURL=index.js.map