@toolproof-core/schema 1.0.2 → 1.0.4

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 (90) hide show
  1. package/dist/generated/normalized/Genesis.d.ts +2 -0
  2. package/dist/generated/normalized/Genesis.js +2 -0
  3. package/dist/generated/normalized/Genesis.json +2008 -0
  4. package/dist/generated/resources/Genesis.d.ts +2 -0
  5. package/dist/generated/resources/Genesis.js +2 -0
  6. package/dist/generated/resources/Genesis.json +2907 -0
  7. package/dist/generated/schemas/Genesis.d.ts +2 -0
  8. package/dist/generated/schemas/Genesis.js +2 -0
  9. package/dist/generated/schemas/Genesis.json +1466 -0
  10. package/dist/generated/schemas/standalone/Goal.d.ts +2 -0
  11. package/dist/generated/schemas/standalone/Goal.js +2 -0
  12. package/dist/generated/schemas/standalone/Goal.json +86 -0
  13. package/dist/generated/schemas/standalone/Job.d.ts +2 -0
  14. package/dist/generated/schemas/standalone/Job.js +2 -0
  15. package/dist/generated/schemas/standalone/Job.json +236 -0
  16. package/dist/generated/schemas/standalone/RawStrategy.d.ts +2 -0
  17. package/dist/generated/schemas/standalone/RawStrategy.js +2 -0
  18. package/dist/generated/schemas/standalone/RawStrategy.json +650 -0
  19. package/dist/generated/schemas/standalone/ResourceType.d.ts +2 -0
  20. package/dist/generated/schemas/standalone/ResourceType.js +2 -0
  21. package/dist/generated/schemas/standalone/ResourceType.json +140 -0
  22. package/dist/generated/schemas/standalone/RunnableStrategy.d.ts +2 -0
  23. package/dist/generated/schemas/standalone/RunnableStrategy.js +2 -0
  24. package/dist/generated/schemas/standalone/RunnableStrategy.json +720 -0
  25. package/dist/generated/schemas/standalone/StrategyRun.d.ts +2 -0
  26. package/dist/generated/schemas/standalone/StrategyRun.js +2 -0
  27. package/dist/generated/schemas/standalone/StrategyRun.json +1002 -0
  28. package/dist/generated/{types → typesTS}/standalone/Resource_Genesis.d.ts +1 -1
  29. package/{src/generated/types → dist/generated/typesTS}/standalone/Resource_Job.d.ts +1 -1
  30. package/{src/generated/types → dist/generated/typesTS}/standalone/Resource_RawStrategy.d.ts +1 -1
  31. package/{src/generated/types → dist/generated/typesTS}/standalone/Resource_ResourceType.d.ts +1 -1
  32. package/dist/generated/{types → typesTS}/standalone/Resource_RunnableStrategy.d.ts +1 -1
  33. package/dist/generated/typesTS/typesTS.d.ts +745 -0
  34. package/dist/index.d.ts +10 -0
  35. package/dist/index.js +5 -0
  36. package/dist/scripts/_lib/config.d.ts +10 -10
  37. package/dist/scripts/_lib/config.js +23 -23
  38. package/dist/scripts/extractSchemasFromResourceTypeShells.js +109 -103
  39. package/dist/scripts/generateDependencies.js +15 -14
  40. package/dist/scripts/generateSchemaShims.js +76 -84
  41. package/dist/scripts/generateStandaloneSchema.js +47 -37
  42. package/dist/scripts/generateStandaloneTypeTS.js +108 -0
  43. package/dist/scripts/generateTypesTS.js +430 -0
  44. package/dist/scripts/normalizeAnchorsToPointers.js +37 -30
  45. package/dist/scripts/wrapResourceTypesWithResourceShells.js +14 -16
  46. package/package.json +11 -12
  47. package/src/Genesis.json +2007 -1999
  48. package/src/generated/{dependencyMap.json → dependencies/dependencyMap.json} +7 -6
  49. package/src/generated/normalized/Genesis.json +17 -9
  50. package/src/generated/resources/Genesis.json +19 -11
  51. package/src/generated/schemas/Genesis.json +15 -7
  52. package/src/generated/schemas/standalone/RawStrategy.json +15 -7
  53. package/src/generated/schemas/standalone/RunnableStrategy.json +15 -7
  54. package/src/generated/schemas/standalone/StrategyRun.json +15 -7
  55. package/src/generated/{types → typesTS}/standalone/Resource_Genesis.d.ts +1 -1
  56. package/{dist/generated/types → src/generated/typesTS}/standalone/Resource_Job.d.ts +1 -1
  57. package/{dist/generated/types → src/generated/typesTS}/standalone/Resource_RawStrategy.d.ts +1 -1
  58. package/{dist/generated/types → src/generated/typesTS}/standalone/Resource_ResourceType.d.ts +1 -1
  59. package/src/generated/{types → typesTS}/standalone/Resource_RunnableStrategy.d.ts +1 -1
  60. package/src/generated/typesTS/typesTS.d.ts +745 -0
  61. package/src/index.ts +67 -1
  62. package/src/scripts/_lib/config.ts +205 -205
  63. package/src/scripts/extractSchemasFromResourceTypeShells.ts +261 -218
  64. package/src/scripts/generateDependencies.ts +121 -120
  65. package/src/scripts/generateSchemaShims.ts +127 -135
  66. package/src/scripts/generateStandaloneSchema.ts +185 -175
  67. package/src/scripts/generateStandaloneTypeTS.ts +127 -0
  68. package/src/scripts/generateTypesTS.ts +532 -0
  69. package/src/scripts/normalizeAnchorsToPointers.ts +115 -123
  70. package/src/scripts/wrapResourceTypesWithResourceShells.ts +82 -84
  71. package/dist/generated/types/types.d.ts +0 -1723
  72. package/dist/scripts/generateStandaloneType.js +0 -102
  73. package/dist/scripts/generateTypes.js +0 -550
  74. package/src/generated/types/types.d.ts +0 -1723
  75. package/src/scripts/generateStandaloneType.ts +0 -119
  76. package/src/scripts/generateTypes.ts +0 -615
  77. /package/dist/generated/{types → typesTS}/standalone/Resource_Genesis.js +0 -0
  78. /package/dist/generated/{types → typesTS}/standalone/Resource_Job.js +0 -0
  79. /package/dist/generated/{types → typesTS}/standalone/Resource_RawStrategy.js +0 -0
  80. /package/dist/generated/{types → typesTS}/standalone/Resource_ResourceType.js +0 -0
  81. /package/dist/generated/{types → typesTS}/standalone/Resource_RunnableStrategy.js +0 -0
  82. /package/dist/generated/{types/types.js → typesTS/typesTS.js} +0 -0
  83. /package/dist/scripts/{generateStandaloneType.d.ts → generateStandaloneTypeTS.d.ts} +0 -0
  84. /package/dist/scripts/{generateTypes.d.ts → generateTypesTS.d.ts} +0 -0
  85. /package/src/generated/{types → typesTS}/standalone/Resource_Genesis.js +0 -0
  86. /package/src/generated/{types → typesTS}/standalone/Resource_Job.js +0 -0
  87. /package/src/generated/{types → typesTS}/standalone/Resource_RawStrategy.js +0 -0
  88. /package/src/generated/{types → typesTS}/standalone/Resource_ResourceType.js +0 -0
  89. /package/src/generated/{types → typesTS}/standalone/Resource_RunnableStrategy.js +0 -0
  90. /package/src/generated/{types/types.js → typesTS/typesTS.js} +0 -0
@@ -0,0 +1,650 @@
1
+ {
2
+ "$anchor": "RawStrategy",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "type": "object",
5
+ "allOf": [
6
+ {
7
+ "$ref": "#/$defs/StepsFacet"
8
+ },
9
+ {
10
+ "$ref": "#/$defs/StrategyStateFacet"
11
+ }
12
+ ],
13
+ "unevaluatedProperties": false,
14
+ "$defs": {
15
+ "StepsFacet": {
16
+ "$anchor": "StepsFacet",
17
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
18
+ "type": "object",
19
+ "required": [
20
+ "steps"
21
+ ],
22
+ "properties": {
23
+ "steps": {
24
+ "$ref": "#/$defs/StepArray"
25
+ }
26
+ }
27
+ },
28
+ "StrategyStateFacet": {
29
+ "$anchor": "StrategyStateFacet",
30
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
31
+ "type": "object",
32
+ "required": [
33
+ "strategyState"
34
+ ],
35
+ "properties": {
36
+ "strategyState": {
37
+ "$ref": "#/$defs/StrategyState"
38
+ }
39
+ }
40
+ },
41
+ "StepArray": {
42
+ "$anchor": "StepArray",
43
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
44
+ "type": "array",
45
+ "items": {
46
+ "$ref": "#/$defs/Step"
47
+ },
48
+ "uniqueItems": true
49
+ },
50
+ "StrategyState": {
51
+ "$anchor": "StrategyState",
52
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
53
+ "type": "object",
54
+ "propertyNames": {
55
+ "$ref": "#/$defs/JobStepIdentity"
56
+ },
57
+ "additionalProperties": {
58
+ "$ref": "#/$defs/JobStepSocket"
59
+ }
60
+ },
61
+ "Step": {
62
+ "$anchor": "Step",
63
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
64
+ "type": "object",
65
+ "oneOf": [
66
+ {
67
+ "$ref": "#/$defs/JobStep"
68
+ },
69
+ {
70
+ "$ref": "#/$defs/BranchStep"
71
+ },
72
+ {
73
+ "$ref": "#/$defs/WhileStep"
74
+ },
75
+ {
76
+ "$ref": "#/$defs/ForStep"
77
+ }
78
+ ],
79
+ "unevaluatedProperties": false
80
+ },
81
+ "JobStepIdentity": {
82
+ "$anchor": "JobStepIdentity",
83
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
84
+ "type": "string",
85
+ "pattern": "^JOB_STEP-.+$"
86
+ },
87
+ "JobStepSocket": {
88
+ "$anchor": "JobStepSocket",
89
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
90
+ "type": "object",
91
+ "propertyNames": {
92
+ "$ref": "#/$defs/ResourceRoleIdentity"
93
+ },
94
+ "additionalProperties": {
95
+ "$ref": "#/$defs/Resource"
96
+ }
97
+ },
98
+ "JobStep": {
99
+ "$anchor": "JobStep",
100
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
101
+ "type": "object",
102
+ "required": [
103
+ "identity",
104
+ "stepKind",
105
+ "jobHandle"
106
+ ],
107
+ "properties": {
108
+ "identity": {
109
+ "$ref": "#/$defs/JobStepIdentity"
110
+ },
111
+ "stepKind": {
112
+ "const": "job"
113
+ },
114
+ "jobHandle": {
115
+ "$ref": "#/$defs/JobIdentity"
116
+ }
117
+ },
118
+ "allOf": [
119
+ {
120
+ "$ref": "#/$defs/StepKindFacet"
121
+ },
122
+ {
123
+ "$comment": "This will be overlayed dynamically to specify roleBindings corresponding to the roles of the underlying job.",
124
+ "$ref": "#/$defs/RoleBindingsFacet"
125
+ }
126
+ ]
127
+ },
128
+ "BranchStep": {
129
+ "$anchor": "BranchStep",
130
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
131
+ "type": "object",
132
+ "required": [
133
+ "identity",
134
+ "stepKind",
135
+ "cases"
136
+ ],
137
+ "properties": {
138
+ "identity": {
139
+ "$ref": "#/$defs/BranchStepIdentity"
140
+ },
141
+ "stepKind": {
142
+ "const": "branch"
143
+ },
144
+ "cases": {
145
+ "type": "array",
146
+ "items": {
147
+ "$ref": "#/$defs/Conditional"
148
+ },
149
+ "minItems": 1,
150
+ "uniqueItems": true
151
+ }
152
+ },
153
+ "allOf": [
154
+ {
155
+ "$ref": "#/$defs/StepKindFacet"
156
+ }
157
+ ]
158
+ },
159
+ "WhileStep": {
160
+ "$anchor": "WhileStep",
161
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
162
+ "type": "object",
163
+ "required": [
164
+ "identity",
165
+ "stepKind",
166
+ "case"
167
+ ],
168
+ "properties": {
169
+ "identity": {
170
+ "$ref": "#/$defs/WhileStepIdentity"
171
+ },
172
+ "stepKind": {
173
+ "const": "while"
174
+ },
175
+ "case": {
176
+ "$ref": "#/$defs/Conditional"
177
+ }
178
+ },
179
+ "allOf": [
180
+ {
181
+ "$ref": "#/$defs/StepKindFacet"
182
+ }
183
+ ]
184
+ },
185
+ "ForStep": {
186
+ "$anchor": "ForStep",
187
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
188
+ "type": "object",
189
+ "required": [
190
+ "identity",
191
+ "stepKind",
192
+ "case"
193
+ ],
194
+ "properties": {
195
+ "identity": {
196
+ "$ref": "#/$defs/ForStepIdentity"
197
+ },
198
+ "stepKind": {
199
+ "const": "for"
200
+ },
201
+ "case": {
202
+ "$ref": "#/$defs/Conditional"
203
+ }
204
+ },
205
+ "allOf": [
206
+ {
207
+ "$ref": "#/$defs/StepKindFacet"
208
+ }
209
+ ]
210
+ },
211
+ "ResourceRoleIdentity": {
212
+ "$anchor": "ResourceRoleIdentity",
213
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
214
+ "type": "string",
215
+ "pattern": "^ROLE-.+$"
216
+ },
217
+ "Resource": {
218
+ "$anchor": "Resource",
219
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
220
+ "type": "object",
221
+ "oneOf": [
222
+ {
223
+ "$ref": "#/$defs/ResourceMissing"
224
+ },
225
+ {
226
+ "$ref": "#/$defs/ResourceInputPotential"
227
+ },
228
+ {
229
+ "$ref": "#/$defs/ResourceOutputPotential"
230
+ },
231
+ {
232
+ "$ref": "#/$defs/ResourceMaterialized"
233
+ }
234
+ ],
235
+ "unevaluatedProperties": false
236
+ },
237
+ "JobIdentity": {
238
+ "$anchor": "JobIdentity",
239
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
240
+ "type": "string",
241
+ "pattern": "^JOB-.+$"
242
+ },
243
+ "StepKindFacet": {
244
+ "$anchor": "StepKindFacet",
245
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
246
+ "type": "object",
247
+ "required": [
248
+ "stepKind"
249
+ ],
250
+ "properties": {
251
+ "stepKind": {
252
+ "$ref": "#/$defs/StepKind"
253
+ }
254
+ }
255
+ },
256
+ "RoleBindingsFacet": {
257
+ "$anchor": "RoleBindingsFacet",
258
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
259
+ "type": "object",
260
+ "required": [
261
+ "roleBindings"
262
+ ],
263
+ "properties": {
264
+ "roleBindings": {
265
+ "$ref": "#/$defs/RoleBindings"
266
+ }
267
+ }
268
+ },
269
+ "BranchStepIdentity": {
270
+ "$anchor": "BranchStepIdentity",
271
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
272
+ "type": "string",
273
+ "pattern": "^BRANCH_STEP-.+$"
274
+ },
275
+ "Conditional": {
276
+ "$anchor": "Conditional",
277
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
278
+ "type": "object",
279
+ "required": [
280
+ "when",
281
+ "what"
282
+ ],
283
+ "properties": {
284
+ "when": {
285
+ "$ref": "#/$defs/JobStep"
286
+ },
287
+ "what": {
288
+ "$ref": "#/$defs/JobStep"
289
+ }
290
+ },
291
+ "unevaluatedProperties": false
292
+ },
293
+ "WhileStepIdentity": {
294
+ "$anchor": "WhileStepIdentity",
295
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
296
+ "type": "string",
297
+ "pattern": "^WHILE_STEP-.+$"
298
+ },
299
+ "ForStepIdentity": {
300
+ "$anchor": "ForStepIdentity",
301
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
302
+ "type": "string",
303
+ "pattern": "^FOR_STEP-.+$"
304
+ },
305
+ "ResourceMissing": {
306
+ "$anchor": "ResourceMissing",
307
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
308
+ "type": "object",
309
+ "$ref": "#/$defs/ShellMissing",
310
+ "unevaluatedProperties": false
311
+ },
312
+ "ResourceInputPotential": {
313
+ "$anchor": "ResourceInputPotential",
314
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
315
+ "type": "object",
316
+ "$ref": "#/$defs/ShellInputPotential",
317
+ "unevaluatedProperties": false
318
+ },
319
+ "ResourceOutputPotential": {
320
+ "$anchor": "ResourceOutputPotential",
321
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
322
+ "type": "object",
323
+ "$ref": "#/$defs/ShellOutputPotential",
324
+ "unevaluatedProperties": false
325
+ },
326
+ "ResourceMaterialized": {
327
+ "$anchor": "ResourceMaterialized",
328
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
329
+ "type": "object",
330
+ "allOf": [
331
+ {
332
+ "$ref": "#/$defs/ShellMaterializedBase"
333
+ },
334
+ {
335
+ "$comment": "This will be overlayed dynamically to match the data structure of the underlying ResourceType's nucleusSchema.",
336
+ "$ref": "#/$defs/NucleusFacet"
337
+ }
338
+ ],
339
+ "unevaluatedProperties": false
340
+ },
341
+ "StepKind": {
342
+ "$anchor": "StepKind",
343
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
344
+ "type": "string",
345
+ "enum": [
346
+ "job",
347
+ "branch",
348
+ "while",
349
+ "for"
350
+ ]
351
+ },
352
+ "RoleBindings": {
353
+ "$anchor": "RoleBindings",
354
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
355
+ "type": "object",
356
+ "required": [
357
+ "inputBindings",
358
+ "outputBindings"
359
+ ],
360
+ "properties": {
361
+ "inputBindings": {
362
+ "$ref": "#/$defs/RoleBindingArray"
363
+ },
364
+ "outputBindings": {
365
+ "$ref": "#/$defs/RoleBindingArray"
366
+ }
367
+ }
368
+ },
369
+ "ShellMissing": {
370
+ "$anchor": "ShellMissing",
371
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
372
+ "type": "object",
373
+ "properties": {
374
+ "resourceKind": {
375
+ "const": "missing"
376
+ }
377
+ },
378
+ "allOf": [
379
+ {
380
+ "$ref": "#/$defs/ResourceShellBase"
381
+ },
382
+ {
383
+ "$ref": "#/$defs/ResourceKindFacet"
384
+ }
385
+ ],
386
+ "unevaluatedProperties": false
387
+ },
388
+ "ShellInputPotential": {
389
+ "$anchor": "ShellInputPotential",
390
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
391
+ "type": "object",
392
+ "properties": {
393
+ "resourceKind": {
394
+ "const": "input-potential"
395
+ }
396
+ },
397
+ "allOf": [
398
+ {
399
+ "$ref": "#/$defs/ResourceShellBase"
400
+ },
401
+ {
402
+ "$ref": "#/$defs/CreationContextFacet"
403
+ },
404
+ {
405
+ "$ref": "#/$defs/ResourceKindFacet"
406
+ }
407
+ ],
408
+ "unevaluatedProperties": false
409
+ },
410
+ "ShellOutputPotential": {
411
+ "$anchor": "ShellOutputPotential",
412
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
413
+ "type": "object",
414
+ "properties": {
415
+ "resourceKind": {
416
+ "const": "output-potential"
417
+ }
418
+ },
419
+ "allOf": [
420
+ {
421
+ "$ref": "#/$defs/ResourceShellBase"
422
+ },
423
+ {
424
+ "$ref": "#/$defs/CreationContextFacet"
425
+ },
426
+ {
427
+ "$ref": "#/$defs/ResourceKindFacet"
428
+ }
429
+ ],
430
+ "unevaluatedProperties": false
431
+ },
432
+ "ShellMaterializedBase": {
433
+ "$anchor": "ShellMaterializedBase",
434
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
435
+ "type": "object",
436
+ "required": [
437
+ "version"
438
+ ],
439
+ "properties": {
440
+ "version": {
441
+ "const": 1
442
+ },
443
+ "resourceKind": {
444
+ "const": "materialized"
445
+ }
446
+ },
447
+ "allOf": [
448
+ {
449
+ "$ref": "#/$defs/ResourceShellBase"
450
+ },
451
+ {
452
+ "$ref": "#/$defs/CreationContextFacet"
453
+ },
454
+ {
455
+ "$ref": "#/$defs/ResourceKindFacet"
456
+ },
457
+ {
458
+ "$ref": "#/$defs/TimestampFacet"
459
+ },
460
+ {
461
+ "$ref": "#/$defs/PathFacet"
462
+ }
463
+ ]
464
+ },
465
+ "NucleusFacet": {
466
+ "$anchor": "NucleusFacet",
467
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
468
+ "type": "object",
469
+ "required": [
470
+ "nucleus"
471
+ ],
472
+ "properties": {
473
+ "nucleus": {
474
+ "$ref": "#/$defs/Nucleus"
475
+ }
476
+ }
477
+ },
478
+ "RoleBindingArray": {
479
+ "$anchor": "RoleBindingArray",
480
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
481
+ "type": "array",
482
+ "items": {
483
+ "$ref": "#/$defs/ResourceRoleIdentity"
484
+ }
485
+ },
486
+ "ResourceShellBase": {
487
+ "$anchor": "ResourceShellBase",
488
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
489
+ "type": "object",
490
+ "required": [
491
+ "identity",
492
+ "resourceTypeHandle",
493
+ "resourceKind"
494
+ ],
495
+ "properties": {
496
+ "identity": {
497
+ "$ref": "#/$defs/ResourceIdentity"
498
+ },
499
+ "resourceTypeHandle": {
500
+ "$ref": "#/$defs/ResourceTypeIdentity"
501
+ },
502
+ "resourceKind": {
503
+ "$ref": "#/$defs/ResourceKind"
504
+ }
505
+ }
506
+ },
507
+ "ResourceKindFacet": {
508
+ "$anchor": "ResourceKindFacet",
509
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
510
+ "type": "object",
511
+ "required": [
512
+ "resourceKind"
513
+ ],
514
+ "properties": {
515
+ "resourceKind": {
516
+ "$ref": "#/$defs/ResourceKind"
517
+ }
518
+ }
519
+ },
520
+ "CreationContextFacet": {
521
+ "$anchor": "CreationContextFacet",
522
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
523
+ "type": "object",
524
+ "required": [
525
+ "creationContext"
526
+ ],
527
+ "properties": {
528
+ "creationContext": {
529
+ "$ref": "#/$defs/CreationContext"
530
+ }
531
+ }
532
+ },
533
+ "TimestampFacet": {
534
+ "$anchor": "TimestampFacet",
535
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
536
+ "type": "object",
537
+ "required": [
538
+ "timestamp"
539
+ ],
540
+ "properties": {
541
+ "timestamp": {
542
+ "$ref": "#/$defs/Timestamp"
543
+ }
544
+ }
545
+ },
546
+ "PathFacet": {
547
+ "$anchor": "PathFacet",
548
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
549
+ "type": "object",
550
+ "required": [
551
+ "path"
552
+ ],
553
+ "properties": {
554
+ "path": {
555
+ "$ref": "#/$defs/Path"
556
+ }
557
+ }
558
+ },
559
+ "Nucleus": {
560
+ "$anchor": "Nucleus",
561
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
562
+ "type": "object",
563
+ "additionalProperties": {
564
+ "$ref": "#/$defs/JsonData"
565
+ }
566
+ },
567
+ "ResourceIdentity": {
568
+ "$anchor": "ResourceIdentity",
569
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
570
+ "type": "string",
571
+ "pattern": "^RESOURCE-.+$"
572
+ },
573
+ "ResourceTypeIdentity": {
574
+ "$anchor": "ResourceTypeIdentity",
575
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
576
+ "type": "string",
577
+ "pattern": "^TYPE-.+$"
578
+ },
579
+ "ResourceKind": {
580
+ "$anchor": "ResourceKind",
581
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
582
+ "type": "string",
583
+ "enum": [
584
+ "missing",
585
+ "input-potential",
586
+ "output-potential",
587
+ "materialized"
588
+ ]
589
+ },
590
+ "CreationContext": {
591
+ "$anchor": "CreationContext",
592
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
593
+ "type": "object",
594
+ "required": [
595
+ "resourceRoleHandle",
596
+ "jobStepHandle"
597
+ ],
598
+ "properties": {
599
+ "resourceRoleHandle": {
600
+ "$ref": "#/$defs/ResourceRoleIdentity"
601
+ },
602
+ "jobStepHandle": {
603
+ "$ref": "#/$defs/JobStepIdentity"
604
+ }
605
+ }
606
+ },
607
+ "Timestamp": {
608
+ "$anchor": "Timestamp",
609
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
610
+ "type": "string",
611
+ "format": "date-time"
612
+ },
613
+ "Path": {
614
+ "$anchor": "Path",
615
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
616
+ "type": "string",
617
+ "format": "uri-reference"
618
+ },
619
+ "JsonData": {
620
+ "$anchor": "JsonData",
621
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
622
+ "oneOf": [
623
+ {
624
+ "type": "null"
625
+ },
626
+ {
627
+ "type": "boolean"
628
+ },
629
+ {
630
+ "type": "number"
631
+ },
632
+ {
633
+ "type": "string"
634
+ },
635
+ {
636
+ "type": "array",
637
+ "items": {
638
+ "$ref": "#/$defs/JsonData"
639
+ }
640
+ },
641
+ {
642
+ "type": "object",
643
+ "additionalProperties": {
644
+ "$ref": "#/$defs/JsonData"
645
+ }
646
+ }
647
+ ]
648
+ }
649
+ }
650
+ }
@@ -0,0 +1,2 @@
1
+ import schema from './ResourceType.json';
2
+ export default schema;
@@ -0,0 +1,2 @@
1
+ import schema from './ResourceType.json' with { type: 'json' };
2
+ export default schema;