@toolproof-core/schema 1.0.0 → 1.0.2

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 (83) hide show
  1. package/dist/generated/types/standalone/Resource_Genesis.d.ts +3 -0
  2. package/dist/generated/types/standalone/Resource_Job.d.ts +3 -0
  3. package/dist/generated/types/standalone/Resource_RawStrategy.d.ts +3 -0
  4. package/dist/generated/types/standalone/Resource_ResourceType.d.ts +3 -0
  5. package/dist/generated/types/standalone/Resource_RunnableStrategy.d.ts +3 -0
  6. package/dist/generated/types/types.d.ts +487 -548
  7. package/dist/scripts/_lib/config.d.ts +12 -6
  8. package/dist/scripts/_lib/config.js +33 -15
  9. package/dist/scripts/{extractSchemas.js → extractSchemasFromResourceTypeShells.js} +14 -27
  10. package/dist/scripts/generateDependencies.js +2 -2
  11. package/dist/scripts/generateSchemaShims.js +22 -4
  12. package/dist/scripts/{extractSubSchemaWithDefs.js → generateStandaloneSchema.js} +12 -34
  13. package/dist/scripts/{generateResourceTypeType.js → generateStandaloneType.js} +23 -14
  14. package/dist/scripts/generateTypes.js +1 -1
  15. package/dist/scripts/{rewriteAnchors.js → normalizeAnchorsToPointers.js} +2 -2
  16. package/dist/scripts/{generateResourceShells.js → wrapResourceTypesWithResourceShells.js} +12 -34
  17. package/package.json +15 -14
  18. package/src/Genesis.json +1999 -2042
  19. package/src/generated/{dependencies.json → dependencyMap.json} +207 -214
  20. package/src/generated/{resourceTypes → normalized}/Genesis.json +44 -87
  21. package/src/generated/resources/Genesis.json +415 -478
  22. package/src/generated/schemas/Genesis.json +1026 -1057
  23. package/src/generated/schemas/{Goal.json → standalone/Goal.json} +34 -34
  24. package/src/generated/schemas/{Job.json → standalone/Job.json} +85 -85
  25. package/src/generated/schemas/{RawStrategy.json → standalone/RawStrategy.json} +238 -263
  26. package/src/generated/schemas/{ResourceType.json → standalone/ResourceType.json} +60 -60
  27. package/src/generated/schemas/{RunnableStrategy.json → standalone/RunnableStrategy.json} +296 -321
  28. package/src/generated/schemas/{StrategyRun.json → standalone/StrategyRun.json} +390 -421
  29. package/src/generated/types/standalone/Resource_Genesis.d.ts +3 -0
  30. package/src/generated/types/standalone/Resource_Genesis.js +1 -0
  31. package/src/generated/types/standalone/Resource_Job.d.ts +3 -0
  32. package/src/generated/types/standalone/Resource_Job.js +1 -0
  33. package/src/generated/types/standalone/Resource_RawStrategy.d.ts +3 -0
  34. package/src/generated/types/standalone/Resource_RawStrategy.js +1 -0
  35. package/src/generated/types/standalone/Resource_ResourceType.d.ts +3 -0
  36. package/src/generated/types/standalone/Resource_ResourceType.js +1 -0
  37. package/src/generated/types/standalone/Resource_RunnableStrategy.d.ts +3 -0
  38. package/src/generated/types/standalone/Resource_RunnableStrategy.js +1 -0
  39. package/src/generated/types/types.d.ts +487 -548
  40. package/src/generated/types/types.js +1 -1
  41. package/src/scripts/_lib/config.ts +205 -181
  42. package/src/scripts/extractSchemasFromResourceTypeShells.ts +218 -0
  43. package/src/scripts/generateDependencies.ts +120 -120
  44. package/src/scripts/generateSchemaShims.ts +135 -115
  45. package/src/scripts/{extractSubSchemaWithDefs.ts → generateStandaloneSchema.ts} +175 -196
  46. package/src/scripts/{generateResourceTypeType.ts → generateStandaloneType.ts} +119 -110
  47. package/src/scripts/generateTypes.ts +614 -614
  48. package/src/scripts/{rewriteAnchors.ts → normalizeAnchorsToPointers.ts} +123 -123
  49. package/src/scripts/{generateResourceShells.ts → wrapResourceTypesWithResourceShells.ts} +84 -105
  50. package/dist/generated/types/Resource_Genesis.d.ts +0 -3
  51. package/dist/generated/types/Resource_Job.d.ts +0 -3
  52. package/dist/generated/types/Resource_RawStrategy.d.ts +0 -3
  53. package/dist/generated/types/Resource_ResourceType.d.ts +0 -3
  54. package/dist/generated/types/Resource_RunnableStrategy.d.ts +0 -3
  55. package/src/Roadmap.json +0 -102
  56. package/src/generated/types/Resource_Genesis.d.ts +0 -3
  57. package/src/generated/types/Resource_Genesis.js +0 -1
  58. package/src/generated/types/Resource_Job.d.ts +0 -3
  59. package/src/generated/types/Resource_Job.js +0 -1
  60. package/src/generated/types/Resource_RawStrategy.d.ts +0 -3
  61. package/src/generated/types/Resource_RawStrategy.js +0 -1
  62. package/src/generated/types/Resource_ResourceType.d.ts +0 -3
  63. package/src/generated/types/Resource_ResourceType.js +0 -1
  64. package/src/generated/types/Resource_RunnableStrategy.d.ts +0 -3
  65. package/src/generated/types/Resource_RunnableStrategy.js +0 -1
  66. package/src/scripts/extractSchemas.ts +0 -229
  67. /package/dist/generated/types/{Resource_Genesis.js → standalone/Resource_Genesis.js} +0 -0
  68. /package/dist/generated/types/{Resource_Job.js → standalone/Resource_Job.js} +0 -0
  69. /package/dist/generated/types/{Resource_RawStrategy.js → standalone/Resource_RawStrategy.js} +0 -0
  70. /package/dist/generated/types/{Resource_ResourceType.js → standalone/Resource_ResourceType.js} +0 -0
  71. /package/dist/generated/types/{Resource_RunnableStrategy.js → standalone/Resource_RunnableStrategy.js} +0 -0
  72. /package/dist/scripts/{extractSchemas.d.ts → extractSchemasFromResourceTypeShells.d.ts} +0 -0
  73. /package/dist/scripts/{extractSubSchemaWithDefs.d.ts → generateStandaloneSchema.d.ts} +0 -0
  74. /package/dist/scripts/{generateResourceShells.d.ts → generateStandaloneType.d.ts} +0 -0
  75. /package/dist/scripts/{generateResourceTypeType.d.ts → normalizeAnchorsToPointers.d.ts} +0 -0
  76. /package/dist/scripts/{rewriteAnchors.d.ts → wrapResourceTypesWithResourceShells.d.ts} +0 -0
  77. /package/src/generated/{resourceTypes → normalized}/Genesis.ts +0 -0
  78. /package/src/generated/schemas/{Goal.ts → standalone/Goal.ts} +0 -0
  79. /package/src/generated/schemas/{Job.ts → standalone/Job.ts} +0 -0
  80. /package/src/generated/schemas/{RawStrategy.ts → standalone/RawStrategy.ts} +0 -0
  81. /package/src/generated/schemas/{ResourceType.ts → standalone/ResourceType.ts} +0 -0
  82. /package/src/generated/schemas/{RunnableStrategy.ts → standalone/RunnableStrategy.ts} +0 -0
  83. /package/src/generated/schemas/{StrategyRun.ts → standalone/StrategyRun.ts} +0 -0
@@ -1,23 +1,7 @@
1
1
  {
2
- "Boolean": [
3
- "BooleanIdentity"
4
- ],
5
- "BooleanIdentity": [],
6
- "BranchStep": [
7
- "StepKindFacet",
8
- "Conditional",
9
- "BranchStepIdentity"
10
- ],
11
- "BranchStepIdentity": [],
12
- "Conditional": [
13
- "JobStep"
14
- ],
15
- "CreationContext": [
16
- "JobRunIdentity",
17
- "ResourceRoleIdentity"
18
- ],
19
- "CreationContextFacet": [
20
- "CreationContext"
2
+ "Name": [],
3
+ "NameFacet": [
4
+ "Name"
21
5
  ],
22
6
  "Description": [],
23
7
  "DescriptionFacet": [
@@ -27,273 +11,282 @@
27
11
  "NameFacet",
28
12
  "DescriptionFacet"
29
13
  ],
30
- "Domain": [],
31
- "DomainFacet": [
32
- "Domain"
14
+ "ResourceTypeImplementationKind": [],
15
+ "ResourceTypeImplementationKindFacet": [
16
+ "ResourceTypeImplementationKind"
33
17
  ],
34
- "Error": [
18
+ "Uri": [],
19
+ "ResourceTypeIdentity": [],
20
+ "ResourceType": [
21
+ "ResourceTypeIdentity",
22
+ "Uri",
23
+ "DocumentationFacet",
24
+ "ResourceTypeImplementationKindFacet"
25
+ ],
26
+ "ResourceRoleIdentity": [],
27
+ "ResourceRoleValue": [
28
+ "ResourceTypeIdentity",
35
29
  "DocumentationFacet"
36
30
  ],
37
- "ForStep": [
38
- "StepKindFacet",
39
- "Conditional",
40
- "ForStepIdentity"
31
+ "RoleMap": [
32
+ "ResourceRoleIdentity",
33
+ "ResourceRoleValue"
41
34
  ],
42
- "ForStepIdentity": [],
43
- "Goal": [
44
- "DomainFacet",
45
- "JobIdentity",
46
- "GoalIdentity"
35
+ "Error": [
36
+ "DocumentationFacet"
47
37
  ],
48
- "GoalIdentity": [],
49
- "GraphEndRunEvent": [
50
- "RunEventBase"
38
+ "Roles": [
39
+ "RoleMap",
40
+ "ResourceRoleValue"
51
41
  ],
52
- "GraphStartRunEvent": [
53
- "RunEventBase",
54
- "RunnableStrategy"
42
+ "RolesFacet": [
43
+ "Roles"
55
44
  ],
56
- "InterruptRunEvent": [
57
- "RunEventBase"
45
+ "Domain": [],
46
+ "DomainFacet": [
47
+ "Domain"
58
48
  ],
49
+ "JobIdentity": [],
59
50
  "Job": [
51
+ "JobIdentity",
52
+ "Uri",
60
53
  "DocumentationFacet",
61
54
  "DomainFacet",
62
- "RolesFacet",
63
- "JobIdentity",
64
- "Uri"
55
+ "RolesFacet"
65
56
  ],
66
- "JobIdentity": [],
67
- "JobRun": [
68
- "RoleBindingsFacet",
69
- "JobRunIdentity",
70
- "JobIdentity"
71
- ],
72
- "JobRunIdentity": [],
73
- "JobRunSocket": [
74
- "Resource",
57
+ "RoleBindingArray": [
75
58
  "ResourceRoleIdentity"
76
59
  ],
60
+ "RoleBindings": [
61
+ "RoleBindingArray"
62
+ ],
63
+ "RoleBindingsFacet": [
64
+ "RoleBindings"
65
+ ],
66
+ "StepKind": [],
67
+ "StepKindFacet": [
68
+ "StepKind"
69
+ ],
70
+ "JobStepIdentity": [],
77
71
  "JobStep": [
78
- "StepKindFacet",
79
72
  "JobStepIdentity",
80
- "JobRun"
73
+ "JobIdentity",
74
+ "StepKindFacet",
75
+ "RoleBindingsFacet"
81
76
  ],
82
- "JobStepIdentity": [],
83
- "JsonData": [],
84
- "Name": [],
85
- "NameFacet": [
86
- "Name"
77
+ "Conditional": [
78
+ "JobStep"
87
79
  ],
88
- "Natural": [
89
- "NaturalIdentity"
80
+ "BranchStepIdentity": [],
81
+ "BranchStep": [
82
+ "BranchStepIdentity",
83
+ "Conditional",
84
+ "StepKindFacet"
90
85
  ],
91
- "NaturalIdentity": [],
92
- "Nucleus": [
93
- "JsonData"
86
+ "WhileStepIdentity": [],
87
+ "WhileStep": [
88
+ "WhileStepIdentity",
89
+ "Conditional",
90
+ "StepKindFacet"
94
91
  ],
95
- "NucleusFacet": [
96
- "Nucleus"
92
+ "ForStepIdentity": [],
93
+ "ForStep": [
94
+ "ForStepIdentity",
95
+ "Conditional",
96
+ "StepKindFacet"
97
97
  ],
98
- "Path": [],
99
- "PathFacet": [
100
- "Path"
98
+ "StepIdentity": [
99
+ "JobStepIdentity",
100
+ "BranchStepIdentity",
101
+ "WhileStepIdentity",
102
+ "ForStepIdentity"
101
103
  ],
102
- "RawStrategy": [
103
- "StepsFacet",
104
- "StrategyStateFacet"
104
+ "Step": [
105
+ "JobStep",
106
+ "BranchStep",
107
+ "WhileStep",
108
+ "ForStep"
105
109
  ],
106
- "Resource": [
107
- "ResourceMissing",
108
- "ResourceInputPotential",
109
- "ResourceOutputPotential",
110
- "ResourceMaterialized"
110
+ "CreationContext": [
111
+ "ResourceRoleIdentity",
112
+ "JobStepIdentity"
113
+ ],
114
+ "CreationContextFacet": [
115
+ "CreationContext"
111
116
  ],
117
+ "ResourceIdentity": [],
112
118
  "ResourceBase": [
113
119
  "ResourceIdentity",
114
120
  "ResourceTypeIdentity"
115
121
  ],
116
- "ResourceIdentity": [],
117
- "ResourceInputPotential": [
118
- "ShellInputPotential"
119
- ],
120
122
  "ResourceKind": [],
121
123
  "ResourceKindFacet": [
122
124
  "ResourceKind"
123
125
  ],
124
- "ResourceMaterialized": [
125
- "ShellMaterializedBase",
126
- "NucleusFacet"
126
+ "ShellMissing": [
127
+ "ResourceBase",
128
+ "ResourceKindFacet"
129
+ ],
130
+ "ShellInputPotential": [
131
+ "ResourceBase",
132
+ "CreationContextFacet",
133
+ "ResourceKindFacet"
134
+ ],
135
+ "ShellOutputPotential": [
136
+ "ResourceBase",
137
+ "CreationContextFacet",
138
+ "ResourceKindFacet"
139
+ ],
140
+ "Timestamp": [],
141
+ "TimestampFacet": [
142
+ "Timestamp"
143
+ ],
144
+ "Path": [],
145
+ "PathFacet": [
146
+ "Path"
147
+ ],
148
+ "ShellMaterializedBase": [
149
+ "ResourceBase",
150
+ "CreationContextFacet",
151
+ "ResourceKindFacet",
152
+ "TimestampFacet",
153
+ "PathFacet"
154
+ ],
155
+ "ShellMaterialized": [
156
+ "ShellMaterializedBase"
127
157
  ],
128
158
  "ResourceMissing": [
129
159
  "ShellMissing"
130
160
  ],
161
+ "ResourceInputPotential": [
162
+ "ShellInputPotential"
163
+ ],
131
164
  "ResourceOutputPotential": [
132
165
  "ShellOutputPotential"
133
166
  ],
134
- "ResourceRoleIdentity": [],
135
- "ResourceRoleValue": [
136
- "ResourceTypeIdentity",
137
- "DocumentationFacet"
138
- ],
139
- "ResourceType": [
140
- "DocumentationFacet",
141
- "ResourceTypeImplementationKindFacet",
142
- "Uri",
143
- "ResourceTypeIdentity"
167
+ "JsonData": [],
168
+ "Nucleus": [
169
+ "JsonData"
144
170
  ],
145
- "ResourceTypeIdentity": [],
146
- "ResourceTypeImplementationKind": [],
147
- "ResourceTypeImplementationKindFacet": [
148
- "ResourceTypeImplementationKind"
171
+ "NucleusFacet": [
172
+ "Nucleus"
149
173
  ],
150
- "RoleBindingArray": [
151
- "ResourceRoleIdentity"
174
+ "ResourceMaterialized": [
175
+ "ShellMaterializedBase",
176
+ "NucleusFacet"
152
177
  ],
153
- "RoleBindings": [
154
- "RoleBindingArray"
178
+ "Resource": [
179
+ "ResourceMissing",
180
+ "ResourceInputPotential",
181
+ "ResourceOutputPotential",
182
+ "ResourceMaterialized"
155
183
  ],
156
- "RoleBindingsFacet": [
157
- "RoleBindings"
184
+ "JobStepSocket": [
185
+ "ResourceRoleIdentity",
186
+ "Resource"
158
187
  ],
159
- "RoleMap": [
160
- "ResourceRoleValue",
161
- "ResourceRoleIdentity"
188
+ "StrategyState": [
189
+ "JobStepIdentity",
190
+ "JobStepSocket"
162
191
  ],
163
- "Roles": [
164
- "RoleMap",
165
- "ResourceRoleValue"
192
+ "StrategyStateFacet": [
193
+ "StrategyState"
166
194
  ],
167
- "RolesFacet": [
168
- "Roles"
195
+ "StepArray": [
196
+ "Step"
169
197
  ],
170
- "RunEvent": [
171
- "GraphStartRunEvent",
172
- "TickRunEvent",
173
- "InterruptRunEvent",
174
- "GraphEndRunEvent"
198
+ "StepsFacet": [
199
+ "StepArray"
175
200
  ],
176
- "RunEventBase": [
177
- "RunEventCounters",
178
- "Timestamp",
179
- "RunEventKind",
180
- "RunnableStrategyIdentity",
181
- "RunEventStepMetadata",
182
- "StrategyThreadIdentity",
183
- "RunEventUpdates"
201
+ "RawStrategy": [
202
+ "StepsFacet",
203
+ "StrategyStateFacet"
184
204
  ],
185
- "RunEventCounters": [],
186
- "RunEventKind": [],
187
- "RunEventStepMetadata": [
188
- "JobIdentity",
189
- "JobRunIdentity",
190
- "StepIdentity",
191
- "StepKind"
205
+ "RunnableStrategyIdentity": [],
206
+ "RunnableStrategyStatus": [],
207
+ "RunnableStrategyContext": [
208
+ "RunnableStrategyStatus",
209
+ "Timestamp"
192
210
  ],
193
- "RunEventUpdates": [
194
- "StrategyStateDelta",
211
+ "StrategyThreadIdentity": [],
212
+ "StrategyThreadMap": [
213
+ "StrategyThreadIdentity",
195
214
  "StepArray"
196
215
  ],
216
+ "StrategyThreadMapFacet": [
217
+ "StrategyThreadMap"
218
+ ],
197
219
  "RunnableStrategy": [
198
- "StrategyThreadMapFacet",
199
- "StrategyStateFacet",
200
220
  "RunnableStrategyIdentity",
201
- "RunnableStrategyContext"
221
+ "RunnableStrategyContext",
222
+ "StrategyThreadMapFacet",
223
+ "StrategyStateFacet"
202
224
  ],
203
- "RunnableStrategyContext": [
204
- "Timestamp",
205
- "RunnableStrategyStatus"
225
+ "StrategyStateDelta": [
226
+ "StrategyState"
206
227
  ],
207
- "RunnableStrategyIdentity": [],
208
- "RunnableStrategyStatus": [],
209
228
  "RunnableStrategyUpdate": [
210
- "StrategyStateDelta",
229
+ "RunnableStrategyIdentity",
211
230
  "RunnableStrategy",
212
- "RunnableStrategyIdentity"
231
+ "StrategyStateDelta"
213
232
  ],
214
- "ShellInputPotential": [
215
- "ResourceBase",
216
- "CreationContextFacet",
217
- "ResourceKindFacet"
218
- ],
219
- "ShellMaterialized": [
220
- "ShellMaterializedBase"
221
- ],
222
- "ShellMaterializedBase": [
223
- "ResourceBase",
224
- "CreationContextFacet",
225
- "ResourceKindFacet",
226
- "TimestampFacet",
227
- "PathFacet"
233
+ "RunEventCounters": [],
234
+ "RunEventStepMetadata": [
235
+ "StepIdentity",
236
+ "StepKind"
228
237
  ],
229
- "ShellMissing": [
230
- "ResourceBase",
231
- "ResourceKindFacet"
238
+ "RunEventUpdates": [
239
+ "StepArray",
240
+ "StrategyStateDelta"
232
241
  ],
233
- "ShellOutputPotential": [
234
- "ResourceBase",
235
- "CreationContextFacet",
236
- "ResourceKindFacet"
242
+ "RunEventKind": [],
243
+ "RunEventBase": [
244
+ "RunEventKind",
245
+ "RunnableStrategyIdentity",
246
+ "StrategyThreadIdentity",
247
+ "Timestamp",
248
+ "RunEventCounters",
249
+ "RunEventStepMetadata",
250
+ "RunEventUpdates"
237
251
  ],
238
- "Step": [
239
- "JobStep",
240
- "BranchStep",
241
- "WhileStep",
242
- "ForStep"
252
+ "GraphStartRunEvent": [
253
+ "RunEventBase",
254
+ "RunnableStrategy"
243
255
  ],
244
- "StepArray": [
245
- "Step"
256
+ "TickRunEvent": [
257
+ "RunEventBase"
246
258
  ],
247
- "StepIdentity": [
248
- "JobStepIdentity",
249
- "BranchStepIdentity",
250
- "WhileStepIdentity",
251
- "ForStepIdentity"
259
+ "InterruptRunEvent": [
260
+ "RunEventBase"
252
261
  ],
253
- "StepKind": [],
254
- "StepKindFacet": [
255
- "StepKind"
262
+ "GraphEndRunEvent": [
263
+ "RunEventBase"
256
264
  ],
257
- "StepsFacet": [
258
- "StepArray"
265
+ "RunEvent": [
266
+ "GraphStartRunEvent",
267
+ "TickRunEvent",
268
+ "InterruptRunEvent",
269
+ "GraphEndRunEvent"
259
270
  ],
271
+ "StrategyRunIdentity": [],
260
272
  "StrategyRun": [
261
273
  "StrategyRunIdentity",
274
+ "RunnableStrategyIdentity",
262
275
  "Timestamp",
263
- "RunEvent",
264
- "RunnableStrategyIdentity"
276
+ "RunEvent"
265
277
  ],
266
- "StrategyRunIdentity": [],
267
- "StrategyState": [
268
- "JobRunSocket",
269
- "JobRunIdentity"
270
- ],
271
- "StrategyStateDelta": [
272
- "StrategyState"
273
- ],
274
- "StrategyStateFacet": [
275
- "StrategyState"
276
- ],
277
- "StrategyThreadIdentity": [],
278
- "StrategyThreadMap": [
279
- "StepArray",
280
- "StrategyThreadIdentity"
281
- ],
282
- "StrategyThreadMapFacet": [
283
- "StrategyThreadMap"
284
- ],
285
- "TickRunEvent": [
286
- "RunEventBase"
278
+ "GoalIdentity": [],
279
+ "Goal": [
280
+ "GoalIdentity",
281
+ "JobIdentity",
282
+ "DomainFacet"
287
283
  ],
288
- "Timestamp": [],
289
- "TimestampFacet": [
290
- "Timestamp"
284
+ "Natural": [
285
+ "NaturalIdentity"
291
286
  ],
292
- "Uri": [],
293
- "WhileStep": [
294
- "StepKindFacet",
295
- "Conditional",
296
- "WhileStepIdentity"
287
+ "Boolean": [
288
+ "BooleanIdentity"
297
289
  ],
298
- "WhileStepIdentity": []
290
+ "NaturalIdentity": [],
291
+ "BooleanIdentity": []
299
292
  }