@toolproof-core/schema 1.0.8 → 1.0.10

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 (49) hide show
  1. package/dist/generated/artifacts/constants.d.ts +120 -0
  2. package/dist/generated/artifacts/constants.js +120 -0
  3. package/dist/generated/artifacts/mappings.d.ts +23 -0
  4. package/dist/generated/artifacts/mappings.js +23 -0
  5. package/dist/generated/normalized/Genesis.json +67 -53
  6. package/dist/generated/resources/Genesis.json +424 -236
  7. package/dist/generated/schemas/Genesis.json +56 -42
  8. package/dist/generated/schemas/standalone/Job.json +2 -0
  9. package/dist/generated/schemas/standalone/RawStrategy.json +86 -110
  10. package/dist/generated/schemas/standalone/RunnableStrategy.json +108 -132
  11. package/dist/generated/schemas/standalone/StrategyRun.json +86 -110
  12. package/dist/generated/types/types.d.ts +34 -34
  13. package/dist/index.d.ts +6 -3
  14. package/dist/index.js +5 -2
  15. package/dist/scripts/_lib/config.d.ts +3 -5
  16. package/dist/scripts/_lib/config.js +8 -14
  17. package/dist/scripts/generateConstantsAndMappings.d.ts +31 -0
  18. package/dist/scripts/generateConstantsAndMappings.js +243 -0
  19. package/dist/scripts/generateDependencies.js +1 -1
  20. package/dist/scripts/generateTerminals.js +2 -2
  21. package/dist/scripts/generateTypes.js +47 -2
  22. package/dist/scripts/wrapResourceTypesWithResourceShells.js +7 -3
  23. package/package.json +3 -3
  24. package/src/Genesis.json +71 -57
  25. package/src/generated/artifacts/constants.ts +121 -0
  26. package/src/generated/{dependencies → artifacts}/dependencyMap.json +16 -18
  27. package/src/generated/artifacts/mappings.ts +24 -0
  28. package/src/generated/{dependencies → artifacts}/terminals.json +1 -0
  29. package/src/generated/normalized/Genesis.json +1760 -1746
  30. package/src/generated/resources/Genesis.json +2796 -2608
  31. package/src/generated/schemas/Genesis.json +1329 -1315
  32. package/src/generated/schemas/standalone/Job.json +2 -0
  33. package/src/generated/schemas/standalone/RawStrategy.json +580 -604
  34. package/src/generated/schemas/standalone/RunnableStrategy.json +645 -669
  35. package/src/generated/schemas/standalone/StrategyRun.json +913 -937
  36. package/src/generated/types/types.d.ts +709 -709
  37. package/src/index.ts +8 -2
  38. package/src/scripts/_lib/config.ts +9 -17
  39. package/src/scripts/generateConstantsAndMappings.ts +309 -0
  40. package/src/scripts/generateDependencies.ts +1 -1
  41. package/src/scripts/generateTerminals.ts +2 -2
  42. package/src/scripts/generateTypes.ts +58 -2
  43. package/src/scripts/wrapResourceTypesWithResourceShells.ts +7 -3
  44. package/dist/generated/constants/constants.d.ts +0 -60
  45. package/dist/generated/constants/constants.js +0 -60
  46. package/dist/scripts/generateConstants.d.ts +0 -12
  47. package/dist/scripts/generateConstants.js +0 -179
  48. package/src/generated/constants/constants.ts +0 -61
  49. package/src/scripts/generateConstants.ts +0 -217
@@ -0,0 +1,120 @@
1
+ declare const CONSTANTS: {
2
+ readonly Names: {
3
+ readonly Boolean: "Boolean";
4
+ readonly BooleanIdentity: "BooleanIdentity";
5
+ readonly BranchStep: "BranchStep";
6
+ readonly BranchStepIdentity: "BranchStepIdentity";
7
+ readonly Conditional: "Conditional";
8
+ readonly CreationContext: "CreationContext";
9
+ readonly CreationContextFacet: "CreationContextFacet";
10
+ readonly Description: "Description";
11
+ readonly DescriptionFacet: "DescriptionFacet";
12
+ readonly DocumentationFacet: "DocumentationFacet";
13
+ readonly Error: "Error";
14
+ readonly ForStep: "ForStep";
15
+ readonly ForStepIdentity: "ForStepIdentity";
16
+ readonly Goal: "Goal";
17
+ readonly GoalIdentity: "GoalIdentity";
18
+ readonly GraphEndRunEvent: "GraphEndRunEvent";
19
+ readonly GraphStartRunEvent: "GraphStartRunEvent";
20
+ readonly InterruptRunEvent: "InterruptRunEvent";
21
+ readonly Job: "Job";
22
+ readonly JobIdentity: "JobIdentity";
23
+ readonly JobStep: "JobStep";
24
+ readonly JobStepIdentity: "JobStepIdentity";
25
+ readonly JobStepSocket: "JobStepSocket";
26
+ readonly JsonData: "JsonData";
27
+ readonly Name: "Name";
28
+ readonly NameFacet: "NameFacet";
29
+ readonly Natural: "Natural";
30
+ readonly NaturalIdentity: "NaturalIdentity";
31
+ readonly Nucleus: "Nucleus";
32
+ readonly NucleusFacet: "NucleusFacet";
33
+ readonly Path: "Path";
34
+ readonly PathFacet: "PathFacet";
35
+ readonly RawStrategy: "RawStrategy";
36
+ readonly Resource: "Resource";
37
+ readonly ResourceIdentity: "ResourceIdentity";
38
+ readonly ResourceInputPotential: "ResourceInputPotential";
39
+ readonly ResourceMissing: "ResourceMissing";
40
+ readonly ResourceOutputPotential: "ResourceOutputPotential";
41
+ readonly ResourcePotential: "ResourcePotential";
42
+ readonly ResourceRoleIdentity: "ResourceRoleIdentity";
43
+ readonly ResourceRoleValue: "ResourceRoleValue";
44
+ readonly ResourceShellBase: "ResourceShellBase";
45
+ readonly ResourceShellKind: "ResourceShellKind";
46
+ readonly ResourceShellKindFacet: "ResourceShellKindFacet";
47
+ readonly ResourceType: "ResourceType";
48
+ readonly ResourceTypeIdentity: "ResourceTypeIdentity";
49
+ readonly RoleBindingArray: "RoleBindingArray";
50
+ readonly RoleBindings: "RoleBindings";
51
+ readonly RoleBindingsFacet: "RoleBindingsFacet";
52
+ readonly RoleMap: "RoleMap";
53
+ readonly Roles: "Roles";
54
+ readonly RolesFacet: "RolesFacet";
55
+ readonly RunEvent: "RunEvent";
56
+ readonly RunEventBase: "RunEventBase";
57
+ readonly RunEventCounters: "RunEventCounters";
58
+ readonly RunEventKind: "RunEventKind";
59
+ readonly RunEventStepMetadata: "RunEventStepMetadata";
60
+ readonly RunEventUpdates: "RunEventUpdates";
61
+ readonly RunnableStrategy: "RunnableStrategy";
62
+ readonly RunnableStrategyContext: "RunnableStrategyContext";
63
+ readonly RunnableStrategyIdentity: "RunnableStrategyIdentity";
64
+ readonly RunnableStrategyStatus: "RunnableStrategyStatus";
65
+ readonly RunnableStrategyUpdate: "RunnableStrategyUpdate";
66
+ readonly ShellInputPotential: "ShellInputPotential";
67
+ readonly ShellMaterialized: "ShellMaterialized";
68
+ readonly ShellMaterializedBase: "ShellMaterializedBase";
69
+ readonly ShellMissing: "ShellMissing";
70
+ readonly ShellOutputPotential: "ShellOutputPotential";
71
+ readonly Step: "Step";
72
+ readonly StepArray: "StepArray";
73
+ readonly StepIdentity: "StepIdentity";
74
+ readonly StepKind: "StepKind";
75
+ readonly StepKindFacet: "StepKindFacet";
76
+ readonly StepsFacet: "StepsFacet";
77
+ readonly StrategyRun: "StrategyRun";
78
+ readonly StrategyRunIdentity: "StrategyRunIdentity";
79
+ readonly StrategyState: "StrategyState";
80
+ readonly StrategyStateDelta: "StrategyStateDelta";
81
+ readonly StrategyStateFacet: "StrategyStateFacet";
82
+ readonly StrategyThreadIdentity: "StrategyThreadIdentity";
83
+ readonly StrategyThreadMap: "StrategyThreadMap";
84
+ readonly StrategyThreadMapFacet: "StrategyThreadMapFacet";
85
+ readonly TickRunEvent: "TickRunEvent";
86
+ readonly Timestamp: "Timestamp";
87
+ readonly TimestampFacet: "TimestampFacet";
88
+ readonly Uri: "Uri";
89
+ readonly WhileStep: "WhileStep";
90
+ readonly WhileStepIdentity: "WhileStepIdentity";
91
+ };
92
+ readonly Enums: {
93
+ readonly ResourceShellKind: {
94
+ readonly missing: "missing";
95
+ readonly inputPotential: "inputPotential";
96
+ readonly outputPotential: "outputPotential";
97
+ readonly materialized: "materialized";
98
+ };
99
+ readonly RunEventKind: {
100
+ readonly graph_start: "graph_start";
101
+ readonly tick: "tick";
102
+ readonly interrupt: "interrupt";
103
+ readonly graph_end: "graph_end";
104
+ };
105
+ readonly RunnableStrategyStatus: {
106
+ readonly pending: "pending";
107
+ readonly running: "running";
108
+ readonly completed: "completed";
109
+ readonly failed: "failed";
110
+ readonly cancelled: "cancelled";
111
+ };
112
+ readonly StepKind: {
113
+ readonly job: "job";
114
+ readonly branch: "branch";
115
+ readonly while: "while";
116
+ readonly for: "for";
117
+ };
118
+ };
119
+ };
120
+ export default CONSTANTS;
@@ -0,0 +1,120 @@
1
+ const CONSTANTS = {
2
+ Names: {
3
+ Boolean: 'Boolean',
4
+ BooleanIdentity: 'BooleanIdentity',
5
+ BranchStep: 'BranchStep',
6
+ BranchStepIdentity: 'BranchStepIdentity',
7
+ Conditional: 'Conditional',
8
+ CreationContext: 'CreationContext',
9
+ CreationContextFacet: 'CreationContextFacet',
10
+ Description: 'Description',
11
+ DescriptionFacet: 'DescriptionFacet',
12
+ DocumentationFacet: 'DocumentationFacet',
13
+ Error: 'Error',
14
+ ForStep: 'ForStep',
15
+ ForStepIdentity: 'ForStepIdentity',
16
+ Goal: 'Goal',
17
+ GoalIdentity: 'GoalIdentity',
18
+ GraphEndRunEvent: 'GraphEndRunEvent',
19
+ GraphStartRunEvent: 'GraphStartRunEvent',
20
+ InterruptRunEvent: 'InterruptRunEvent',
21
+ Job: 'Job',
22
+ JobIdentity: 'JobIdentity',
23
+ JobStep: 'JobStep',
24
+ JobStepIdentity: 'JobStepIdentity',
25
+ JobStepSocket: 'JobStepSocket',
26
+ JsonData: 'JsonData',
27
+ Name: 'Name',
28
+ NameFacet: 'NameFacet',
29
+ Natural: 'Natural',
30
+ NaturalIdentity: 'NaturalIdentity',
31
+ Nucleus: 'Nucleus',
32
+ NucleusFacet: 'NucleusFacet',
33
+ Path: 'Path',
34
+ PathFacet: 'PathFacet',
35
+ RawStrategy: 'RawStrategy',
36
+ Resource: 'Resource',
37
+ ResourceIdentity: 'ResourceIdentity',
38
+ ResourceInputPotential: 'ResourceInputPotential',
39
+ ResourceMissing: 'ResourceMissing',
40
+ ResourceOutputPotential: 'ResourceOutputPotential',
41
+ ResourcePotential: 'ResourcePotential',
42
+ ResourceRoleIdentity: 'ResourceRoleIdentity',
43
+ ResourceRoleValue: 'ResourceRoleValue',
44
+ ResourceShellBase: 'ResourceShellBase',
45
+ ResourceShellKind: 'ResourceShellKind',
46
+ ResourceShellKindFacet: 'ResourceShellKindFacet',
47
+ ResourceType: 'ResourceType',
48
+ ResourceTypeIdentity: 'ResourceTypeIdentity',
49
+ RoleBindingArray: 'RoleBindingArray',
50
+ RoleBindings: 'RoleBindings',
51
+ RoleBindingsFacet: 'RoleBindingsFacet',
52
+ RoleMap: 'RoleMap',
53
+ Roles: 'Roles',
54
+ RolesFacet: 'RolesFacet',
55
+ RunEvent: 'RunEvent',
56
+ RunEventBase: 'RunEventBase',
57
+ RunEventCounters: 'RunEventCounters',
58
+ RunEventKind: 'RunEventKind',
59
+ RunEventStepMetadata: 'RunEventStepMetadata',
60
+ RunEventUpdates: 'RunEventUpdates',
61
+ RunnableStrategy: 'RunnableStrategy',
62
+ RunnableStrategyContext: 'RunnableStrategyContext',
63
+ RunnableStrategyIdentity: 'RunnableStrategyIdentity',
64
+ RunnableStrategyStatus: 'RunnableStrategyStatus',
65
+ RunnableStrategyUpdate: 'RunnableStrategyUpdate',
66
+ ShellInputPotential: 'ShellInputPotential',
67
+ ShellMaterialized: 'ShellMaterialized',
68
+ ShellMaterializedBase: 'ShellMaterializedBase',
69
+ ShellMissing: 'ShellMissing',
70
+ ShellOutputPotential: 'ShellOutputPotential',
71
+ Step: 'Step',
72
+ StepArray: 'StepArray',
73
+ StepIdentity: 'StepIdentity',
74
+ StepKind: 'StepKind',
75
+ StepKindFacet: 'StepKindFacet',
76
+ StepsFacet: 'StepsFacet',
77
+ StrategyRun: 'StrategyRun',
78
+ StrategyRunIdentity: 'StrategyRunIdentity',
79
+ StrategyState: 'StrategyState',
80
+ StrategyStateDelta: 'StrategyStateDelta',
81
+ StrategyStateFacet: 'StrategyStateFacet',
82
+ StrategyThreadIdentity: 'StrategyThreadIdentity',
83
+ StrategyThreadMap: 'StrategyThreadMap',
84
+ StrategyThreadMapFacet: 'StrategyThreadMapFacet',
85
+ TickRunEvent: 'TickRunEvent',
86
+ Timestamp: 'Timestamp',
87
+ TimestampFacet: 'TimestampFacet',
88
+ Uri: 'Uri',
89
+ WhileStep: 'WhileStep',
90
+ WhileStepIdentity: 'WhileStepIdentity',
91
+ },
92
+ Enums: {
93
+ ResourceShellKind: {
94
+ missing: 'missing',
95
+ inputPotential: 'inputPotential',
96
+ outputPotential: 'outputPotential',
97
+ materialized: 'materialized',
98
+ },
99
+ RunEventKind: {
100
+ graph_start: 'graph_start',
101
+ tick: 'tick',
102
+ interrupt: 'interrupt',
103
+ graph_end: 'graph_end',
104
+ },
105
+ RunnableStrategyStatus: {
106
+ pending: 'pending',
107
+ running: 'running',
108
+ completed: 'completed',
109
+ failed: 'failed',
110
+ cancelled: 'cancelled',
111
+ },
112
+ StepKind: {
113
+ job: 'job',
114
+ branch: 'branch',
115
+ while: 'while',
116
+ for: 'for',
117
+ },
118
+ }
119
+ };
120
+ export default CONSTANTS;
@@ -0,0 +1,23 @@
1
+ declare const MAPPINGS: {
2
+ readonly IdentityNameToIdentityPrefix: {
3
+ readonly BranchStepIdentity: "BRANCH_STEP-";
4
+ readonly ForStepIdentity: "FOR_STEP-";
5
+ readonly GoalIdentity: "GOAL-";
6
+ readonly JobIdentity: "JOB-";
7
+ readonly JobStepIdentity: "JOB_STEP-";
8
+ readonly ResourceIdentity: "RESOURCE-";
9
+ readonly ResourceRoleIdentity: "ROLE-";
10
+ readonly ResourceTypeIdentity: "TYPE-";
11
+ readonly RunnableStrategyIdentity: "RUNNABLE_STRATEGY-";
12
+ readonly StrategyRunIdentity: "STRATEGY_RUN-";
13
+ readonly StrategyThreadIdentity: "STRATEGY_THREAD-";
14
+ readonly WhileStepIdentity: "WHILE_STEP-";
15
+ };
16
+ readonly StepKindToStepIdentityPrefix: {
17
+ readonly branch: "BRANCH_STEP-";
18
+ readonly for: "FOR_STEP-";
19
+ readonly job: "JOB_STEP-";
20
+ readonly while: "WHILE_STEP-";
21
+ };
22
+ };
23
+ export default MAPPINGS;
@@ -0,0 +1,23 @@
1
+ const MAPPINGS = {
2
+ IdentityNameToIdentityPrefix: {
3
+ BranchStepIdentity: 'BRANCH_STEP-',
4
+ ForStepIdentity: 'FOR_STEP-',
5
+ GoalIdentity: 'GOAL-',
6
+ JobIdentity: 'JOB-',
7
+ JobStepIdentity: 'JOB_STEP-',
8
+ ResourceIdentity: 'RESOURCE-',
9
+ ResourceRoleIdentity: 'ROLE-',
10
+ ResourceTypeIdentity: 'TYPE-',
11
+ RunnableStrategyIdentity: 'RUNNABLE_STRATEGY-',
12
+ StrategyRunIdentity: 'STRATEGY_RUN-',
13
+ StrategyThreadIdentity: 'STRATEGY_THREAD-',
14
+ WhileStepIdentity: 'WHILE_STEP-',
15
+ },
16
+ StepKindToStepIdentityPrefix: {
17
+ branch: 'BRANCH_STEP-',
18
+ for: 'FOR_STEP-',
19
+ job: 'JOB_STEP-',
20
+ while: 'WHILE_STEP-',
21
+ },
22
+ };
23
+ export default MAPPINGS;
@@ -4,7 +4,7 @@
4
4
  "description": "dummy-description",
5
5
  "nucleusSchema": {
6
6
  "$comment": "This file defines all schemas used internally by ToolProof.",
7
- "$id": "https://schemas.toolproof.com/v2/Genesis.json",
7
+ "$id": "https://schemas.toolproof.com/v1/Genesis.json",
8
8
  "$schema": "https://json-schema.org/draft/2020-12/schema",
9
9
  "$defs": {
10
10
  "Name": {
@@ -245,6 +245,7 @@
245
245
  "$ref": "#/$defs/RoleMap"
246
246
  },
247
247
  {
248
+ "type": "object",
248
249
  "required": [
249
250
  "ROLE-ErrorOutput"
250
251
  ],
@@ -326,6 +327,7 @@
326
327
  "$ref": "#/$defs/JobIdentity"
327
328
  },
328
329
  "implementationUri": {
330
+ "$comment": "Instances of a ResourceType that requires implementationUri are 'executable' ResourceTypes. TYPE-Job is the canonical executable ResourceType in the ecosystem.",
329
331
  "$ref": "#/$defs/Uri"
330
332
  }
331
333
  },
@@ -719,7 +721,7 @@
719
721
  "required": [
720
722
  "identity",
721
723
  "resourceTypeHandle",
722
- "resourceKind"
724
+ "resourceShellKind"
723
725
  ],
724
726
  "properties": {
725
727
  "identity": {
@@ -728,15 +730,15 @@
728
730
  "resourceTypeHandle": {
729
731
  "$ref": "#/$defs/ResourceTypeIdentity"
730
732
  },
731
- "resourceKind": {
732
- "$ref": "#/$defs/ResourceKind"
733
+ "resourceShellKind": {
734
+ "$ref": "#/$defs/ResourceShellKind"
733
735
  }
734
736
  }
735
737
  }
736
738
  },
737
- "ResourceKind": {
738
- "identity": "TYPE-ResourceKind",
739
- "name": "ResourceKind",
739
+ "ResourceShellKind": {
740
+ "identity": "TYPE-ResourceShellKind",
741
+ "name": "ResourceShellKind",
740
742
  "description": "dummy-description",
741
743
  "nucleusSchema": {
742
744
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -749,19 +751,19 @@
749
751
  ]
750
752
  }
751
753
  },
752
- "ResourceKindFacet": {
753
- "identity": "TYPE-ResourceKindFacet",
754
- "name": "ResourceKindFacet",
754
+ "ResourceShellKindFacet": {
755
+ "identity": "TYPE-ResourceShellKindFacet",
756
+ "name": "ResourceShellKindFacet",
755
757
  "description": "dummy-description",
756
758
  "nucleusSchema": {
757
759
  "$schema": "https://json-schema.org/draft/2020-12/schema",
758
760
  "type": "object",
759
761
  "required": [
760
- "resourceKind"
762
+ "resourceShellKind"
761
763
  ],
762
764
  "properties": {
763
- "resourceKind": {
764
- "$ref": "#/$defs/ResourceKind"
765
+ "resourceShellKind": {
766
+ "$ref": "#/$defs/ResourceShellKind"
765
767
  }
766
768
  }
767
769
  }
@@ -773,8 +775,11 @@
773
775
  "nucleusSchema": {
774
776
  "$schema": "https://json-schema.org/draft/2020-12/schema",
775
777
  "type": "object",
778
+ "required": [
779
+ "resourceShellKind"
780
+ ],
776
781
  "properties": {
777
- "resourceKind": {
782
+ "resourceShellKind": {
778
783
  "const": "missing"
779
784
  }
780
785
  },
@@ -783,7 +788,7 @@
783
788
  "$ref": "#/$defs/ResourceShellBase"
784
789
  },
785
790
  {
786
- "$ref": "#/$defs/ResourceKindFacet"
791
+ "$ref": "#/$defs/ResourceShellKindFacet"
787
792
  }
788
793
  ],
789
794
  "unevaluatedProperties": false
@@ -796,8 +801,11 @@
796
801
  "nucleusSchema": {
797
802
  "$schema": "https://json-schema.org/draft/2020-12/schema",
798
803
  "type": "object",
804
+ "required": [
805
+ "resourceShellKind"
806
+ ],
799
807
  "properties": {
800
- "resourceKind": {
808
+ "resourceShellKind": {
801
809
  "const": "inputPotential"
802
810
  }
803
811
  },
@@ -809,7 +817,7 @@
809
817
  "$ref": "#/$defs/CreationContextFacet"
810
818
  },
811
819
  {
812
- "$ref": "#/$defs/ResourceKindFacet"
820
+ "$ref": "#/$defs/ResourceShellKindFacet"
813
821
  }
814
822
  ],
815
823
  "unevaluatedProperties": false
@@ -822,8 +830,11 @@
822
830
  "nucleusSchema": {
823
831
  "$schema": "https://json-schema.org/draft/2020-12/schema",
824
832
  "type": "object",
833
+ "required": [
834
+ "resourceShellKind"
835
+ ],
825
836
  "properties": {
826
- "resourceKind": {
837
+ "resourceShellKind": {
827
838
  "const": "outputPotential"
828
839
  }
829
840
  },
@@ -835,7 +846,7 @@
835
846
  "$ref": "#/$defs/CreationContextFacet"
836
847
  },
837
848
  {
838
- "$ref": "#/$defs/ResourceKindFacet"
849
+ "$ref": "#/$defs/ResourceShellKindFacet"
839
850
  }
840
851
  ],
841
852
  "unevaluatedProperties": false
@@ -903,13 +914,14 @@
903
914
  "$schema": "https://json-schema.org/draft/2020-12/schema",
904
915
  "type": "object",
905
916
  "required": [
906
- "version"
917
+ "version",
918
+ "resourceShellKind"
907
919
  ],
908
920
  "properties": {
909
921
  "version": {
910
922
  "const": 1
911
923
  },
912
- "resourceKind": {
924
+ "resourceShellKind": {
913
925
  "const": "materialized"
914
926
  }
915
927
  },
@@ -921,7 +933,7 @@
921
933
  "$ref": "#/$defs/CreationContextFacet"
922
934
  },
923
935
  {
924
- "$ref": "#/$defs/ResourceKindFacet"
936
+ "$ref": "#/$defs/ResourceShellKindFacet"
925
937
  },
926
938
  {
927
939
  "$ref": "#/$defs/TimestampFacet"
@@ -976,6 +988,27 @@
976
988
  "unevaluatedProperties": false
977
989
  }
978
990
  },
991
+ "ResourcePotential": {
992
+ "identity": "TYPE-ResourcePotential",
993
+ "name": "ResourcePotential",
994
+ "description": "dummy-description",
995
+ "nucleusSchema": {
996
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
997
+ "type": "object",
998
+ "oneOf": [
999
+ {
1000
+ "$ref": "#/$defs/ResourceMissing"
1001
+ },
1002
+ {
1003
+ "$ref": "#/$defs/ResourceInputPotential"
1004
+ },
1005
+ {
1006
+ "$ref": "#/$defs/ResourceOutputPotential"
1007
+ }
1008
+ ],
1009
+ "unevaluatedProperties": false
1010
+ }
1011
+ },
979
1012
  "JsonData": {
980
1013
  "identity": "TYPE-JsonData",
981
1014
  "name": "JsonData",
@@ -1033,15 +1066,13 @@
1033
1066
  "nucleus"
1034
1067
  ],
1035
1068
  "properties": {
1036
- "nucleus": {
1037
- "$ref": "#/$defs/Nucleus"
1038
- }
1069
+ "nucleus": true
1039
1070
  }
1040
1071
  }
1041
1072
  },
1042
- "ResourceMaterialized": {
1043
- "identity": "TYPE-ResourceMaterialized",
1044
- "name": "ResourceMaterialized",
1073
+ "Resource": {
1074
+ "identity": "TYPE-Resource",
1075
+ "name": "Resource",
1045
1076
  "description": "dummy-description",
1046
1077
  "nucleusSchema": {
1047
1078
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -1058,30 +1089,6 @@
1058
1089
  "unevaluatedProperties": false
1059
1090
  }
1060
1091
  },
1061
- "Resource": {
1062
- "identity": "TYPE-Resource",
1063
- "name": "Resource",
1064
- "description": "dummy-description",
1065
- "nucleusSchema": {
1066
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1067
- "type": "object",
1068
- "oneOf": [
1069
- {
1070
- "$ref": "#/$defs/ResourceMissing"
1071
- },
1072
- {
1073
- "$ref": "#/$defs/ResourceInputPotential"
1074
- },
1075
- {
1076
- "$ref": "#/$defs/ResourceOutputPotential"
1077
- },
1078
- {
1079
- "$ref": "#/$defs/ResourceMaterialized"
1080
- }
1081
- ],
1082
- "unevaluatedProperties": false
1083
- }
1084
- },
1085
1092
  "JobStepSocket": {
1086
1093
  "identity": "TYPE-JobStepSocket",
1087
1094
  "name": "JobStepSocket",
@@ -1093,7 +1100,14 @@
1093
1100
  "$ref": "#/$defs/ResourceRoleIdentity"
1094
1101
  },
1095
1102
  "additionalProperties": {
1096
- "$ref": "#/$defs/Resource"
1103
+ "oneOf": [
1104
+ {
1105
+ "$ref": "#/$defs/ResourcePotential"
1106
+ },
1107
+ {
1108
+ "$ref": "#/$defs/Resource"
1109
+ }
1110
+ ]
1097
1111
  }
1098
1112
  }
1099
1113
  },