@toolproof-core/schema 1.0.9 → 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 (54) 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 +9 -10
  24. package/src/Genesis.json +1847 -1833
  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 +75 -70
  38. package/src/scripts/_lib/config.ts +207 -215
  39. package/src/scripts/extractSchemasFromResourceTypeShells.ts +261 -261
  40. package/src/scripts/generateConstantsAndMappings.ts +309 -0
  41. package/src/scripts/generateDependencies.ts +121 -121
  42. package/src/scripts/generateSchemaShims.ts +127 -127
  43. package/src/scripts/generateStandaloneSchema.ts +185 -185
  44. package/src/scripts/generateStandaloneType.ts +127 -127
  45. package/src/scripts/generateTerminals.ts +73 -73
  46. package/src/scripts/generateTypes.ts +587 -531
  47. package/src/scripts/normalizeAnchorsToPointers.ts +141 -141
  48. package/src/scripts/wrapResourceTypesWithResourceShells.ts +86 -82
  49. package/dist/generated/constants/constants.d.ts +0 -60
  50. package/dist/generated/constants/constants.js +0 -60
  51. package/dist/scripts/generateConstants.d.ts +0 -12
  52. package/dist/scripts/generateConstants.js +0 -179
  53. package/src/generated/constants/constants.ts +0 -61
  54. package/src/scripts/generateConstants.ts +0 -217
package/src/Genesis.json CHANGED
@@ -1,1834 +1,1848 @@
1
- {
2
- "identity": "TYPE-Genesis",
3
- "name": "Genesis",
4
- "description": "dummy-description",
5
- "nucleusSchema": {
6
- "$comment": "This file defines all schemas used internally by ToolProof.",
7
- "$anchor": "Genesis",
8
- "$id": "https://schemas.toolproof.com/v2/Genesis.json",
9
- "$schema": "https://json-schema.org/draft/2020-12/schema",
10
- "$defs": {
11
- "Name": {
12
- "identity": "TYPE-Name",
13
- "name": "Name",
14
- "description": "dummy-description",
15
- "nucleusSchema": {
16
- "$anchor": "Name",
17
- "$schema": "https://json-schema.org/draft/2020-12/schema",
18
- "type": "string",
19
- "minLength": 1,
20
- "pattern": "^(?:[A-Z][^0-9]*|[a-z]+/[a-z.+&-]+)$",
21
- "$comment": "Validation is intercepted by an AI Agent that verifies the name against Toolproof's naming conventions.",
22
- "semanticValidation": "Ajv custom keyword to verify name."
23
- }
24
- },
25
- "NameFacet": {
26
- "identity": "TYPE-NameFacet",
27
- "name": "NameFacet",
28
- "description": "dummy-description",
29
- "nucleusSchema": {
30
- "$anchor": "NameFacet",
31
- "$schema": "https://json-schema.org/draft/2020-12/schema",
32
- "type": "object",
33
- "required": [
34
- "name"
35
- ],
36
- "properties": {
37
- "name": {
38
- "$ref": "#Name"
39
- }
40
- }
41
- }
42
- },
43
- "Description": {
44
- "identity": "TYPE-Description",
45
- "name": "Description",
46
- "description": "dummy-description",
47
- "nucleusSchema": {
48
- "$anchor": "Description",
49
- "$schema": "https://json-schema.org/draft/2020-12/schema",
50
- "type": "string",
51
- "minLength": 1,
52
- "$comment": "Validation is intercepted by an AI Agent that verifies the description against Toolproof's documentation standards.",
53
- "semanticValidation": "Ajv custom keyword to verify description."
54
- }
55
- },
56
- "DescriptionFacet": {
57
- "identity": "TYPE-DescriptionFacet",
58
- "name": "DescriptionFacet",
59
- "description": "dummy-description",
60
- "nucleusSchema": {
61
- "$anchor": "DescriptionFacet",
62
- "$schema": "https://json-schema.org/draft/2020-12/schema",
63
- "type": "object",
64
- "required": [
65
- "description"
66
- ],
67
- "properties": {
68
- "description": {
69
- "$ref": "#Description"
70
- }
71
- }
72
- }
73
- },
74
- "DocumentationFacet": {
75
- "identity": "TYPE-DocumentationFacet",
76
- "name": "DocumentationFacet",
77
- "description": "dummy-description",
78
- "nucleusSchema": {
79
- "$anchor": "DocumentationFacet",
80
- "$schema": "https://json-schema.org/draft/2020-12/schema",
81
- "type": "object",
82
- "allOf": [
83
- {
84
- "$ref": "#NameFacet"
85
- },
86
- {
87
- "$ref": "#DescriptionFacet"
88
- }
89
- ]
90
- }
91
- },
92
- "Uri": {
93
- "identity": "TYPE-Uri",
94
- "name": "Uri",
95
- "description": "dummy-description",
96
- "nucleusSchema": {
97
- "$anchor": "Uri",
98
- "$schema": "https://json-schema.org/draft/2020-12/schema",
99
- "type": "string",
100
- "format": "uri"
101
- }
102
- },
103
- "ResourceTypeIdentity": {
104
- "identity": "TYPE-ResourceTypeIdentity",
105
- "name": "ResourceTypeIdentity",
106
- "description": "dummy-description",
107
- "nucleusSchema": {
108
- "$anchor": "ResourceTypeIdentity",
109
- "$schema": "https://json-schema.org/draft/2020-12/schema",
110
- "type": "string",
111
- "pattern": "^TYPE-.+$"
112
- }
113
- },
114
- "ResourceType": {
115
- "identity": "TYPE-ResourceType",
116
- "name": "ResourceType",
117
- "description": "dummy-description",
118
- "nucleusSchema": {
119
- "$anchor": "ResourceType",
120
- "$schema": "https://json-schema.org/draft/2020-12/schema",
121
- "type": "object",
122
- "required": [
123
- "identity",
124
- "nucleusSchema"
125
- ],
126
- "properties": {
127
- "identity": {
128
- "$ref": "#ResourceTypeIdentity"
129
- },
130
- "nucleusSchema": true,
131
- "embeddingUriMap": {
132
- "type": "object",
133
- "propertyNames": {
134
- "type": "string",
135
- "pattern": "^EMBEDDING-.+$"
136
- },
137
- "additionalProperties": {
138
- "$ref": "#Uri"
139
- },
140
- "minProperties": 1,
141
- "$comment": "A ResourceType may specify a set of embedding models that convert the raw data (or one of its alternative representations) into vector embeddings. The build process enforces that the keys of this map are members of a set of predefined embedding models."
142
- },
143
- "generatorUriMap": {
144
- "type": "object",
145
- "propertyNames": {
146
- "type": "string",
147
- "pattern": "^GENERATOR-.+$"
148
- },
149
- "additionalProperties": {
150
- "$ref": "#Uri"
151
- },
152
- "minProperties": 1,
153
- "$comment": "A ResourceType may specify a set of generators that generate different representations of its instances from the raw file. A ToolProof Resource is always backed by a raw file. This is also true for the Resources (of type ResourceType) defined in this file! The build process enforces that the keys of this map are members of a set of predefined generators. GENERATOR-Json is an identifier for a generator that generates JSON data from the raw file. If the raw file is a JSON file, GENERATOR-Json is an implicit identity operation (i.e. an operation that does nothing) and must not be present in the map. A ResourceType may also specify other generators, such as GENERATOR-LeanTerm, which generates an instance (or 'term' in Lean jargon) of a corresponding Lean type from the raw file. ResourceTypes that specify GENERATOR-LeanTerm must also specify a corresponding GENERATOR-LeanType. While the term-version runs when data instances enter the ecosystem, the type-version runs when the ResourceType itself enters the ecosystem."
154
- }
155
- },
156
- "allOf": [
157
- {
158
- "$ref": "#DocumentationFacet"
159
- }
160
- ]
161
- }
162
- },
163
- "ResourceRoleIdentity": {
164
- "identity": "TYPE-ResourceRoleIdentity",
165
- "name": "ResourceRoleIdentity",
166
- "description": "dummy-description",
167
- "nucleusSchema": {
168
- "$anchor": "ResourceRoleIdentity",
169
- "$schema": "https://json-schema.org/draft/2020-12/schema",
170
- "type": "string",
171
- "pattern": "^ROLE-.+$"
172
- }
173
- },
174
- "ResourceRoleValue": {
175
- "identity": "TYPE-ResourceRoleValue",
176
- "name": "ResourceRoleValue",
177
- "description": "dummy-description",
178
- "nucleusSchema": {
179
- "$anchor": "ResourceRoleValue",
180
- "$schema": "https://json-schema.org/draft/2020-12/schema",
181
- "type": "object",
182
- "allOf": [
183
- {
184
- "$comment": "A ResourceRole does not have a self-contained identity, as it is always defined in the context of a RoleMap. ResourceRoleValue uses the Value suffix to mean 'the value stored in this map' (RoleMap.additionalProperties).",
185
- "required": [
186
- "resourceTypeHandle"
187
- ],
188
- "properties": {
189
- "resourceTypeHandle": {
190
- "$ref": "#ResourceTypeIdentity"
191
- }
192
- }
193
- },
194
- {
195
- "$ref": "#DocumentationFacet"
196
- }
197
- ]
198
- },
199
- "unevaluatedProperties": false
200
- },
201
- "RoleMap": {
202
- "identity": "TYPE-RoleMap",
203
- "name": "RoleMap",
204
- "description": "dummy-description",
205
- "nucleusSchema": {
206
- "$anchor": "RoleMap",
207
- "$schema": "https://json-schema.org/draft/2020-12/schema",
208
- "type": "object",
209
- "propertyNames": {
210
- "$ref": "#ResourceRoleIdentity"
211
- },
212
- "additionalProperties": {
213
- "$ref": "#ResourceRoleValue"
214
- }
215
- }
216
- },
217
- "Error": {
218
- "identity": "TYPE-Error",
219
- "name": "Error",
220
- "description": "dummy-description",
221
- "nucleusSchema": {
222
- "$anchor": "Error",
223
- "$schema": "https://json-schema.org/draft/2020-12/schema",
224
- "type": "object",
225
- "allOf": [
226
- {
227
- "$ref": "#DocumentationFacet"
228
- },
229
- {
230
- "properties": {
231
- "details": {
232
- "type": "object"
233
- }
234
- }
235
- }
236
- ],
237
- "unevaluatedProperties": false
238
- }
239
- },
240
- "Roles": {
241
- "identity": "TYPE-Roles",
242
- "name": "Roles",
243
- "description": "dummy-description",
244
- "nucleusSchema": {
245
- "$anchor": "Roles",
246
- "$schema": "https://json-schema.org/draft/2020-12/schema",
247
- "type": "object",
248
- "required": [
249
- "inputMap",
250
- "outputMap"
251
- ],
252
- "properties": {
253
- "inputMap": {
254
- "$ref": "#RoleMap"
255
- },
256
- "outputMap": {
257
- "allOf": [
258
- {
259
- "$ref": "#RoleMap"
260
- },
261
- {
262
- "required": [
263
- "ROLE-ErrorOutput"
264
- ],
265
- "properties": {
266
- "ROLE-ErrorOutput": {
267
- "type": "object",
268
- "allOf": [
269
- {
270
- "$ref": "#ResourceRoleValue"
271
- },
272
- {
273
- "required": [
274
- "resourceTypeHandle",
275
- "name",
276
- "description"
277
- ],
278
- "properties": {
279
- "resourceTypeHandle": {
280
- "const": "TYPE-Error"
281
- },
282
- "name": {
283
- "const": "ErrorOutput"
284
- },
285
- "description": {
286
- "const": "Represents error outputs from job runs."
287
- }
288
- }
289
- }
290
- ]
291
- }
292
- }
293
- }
294
- ]
295
- }
296
- },
297
- "unevaluatedProperties": false
298
- }
299
- },
300
- "RolesFacet": {
301
- "identity": "TYPE-RolesFacet",
302
- "name": "RolesFacet",
303
- "description": "dummy-description",
304
- "nucleusSchema": {
305
- "$anchor": "RolesFacet",
306
- "$schema": "https://json-schema.org/draft/2020-12/schema",
307
- "type": "object",
308
- "required": [
309
- "roles"
310
- ],
311
- "properties": {
312
- "roles": {
313
- "$ref": "#Roles"
314
- }
315
- }
316
- }
317
- },
318
- "JobIdentity": {
319
- "identity": "TYPE-JobIdentity",
320
- "name": "JobIdentity",
321
- "description": "dummy-description",
322
- "nucleusSchema": {
323
- "$anchor": "JobIdentity",
324
- "$schema": "https://json-schema.org/draft/2020-12/schema",
325
- "type": "string",
326
- "pattern": "^JOB-.+$"
327
- }
328
- },
329
- "Job": {
330
- "identity": "TYPE-Job",
331
- "name": "Job",
332
- "description": "dummy-description",
333
- "nucleusSchema": {
334
- "$anchor": "Job",
335
- "$schema": "https://json-schema.org/draft/2020-12/schema",
336
- "type": "object",
337
- "required": [
338
- "identity",
339
- "implementationUri"
340
- ],
341
- "properties": {
342
- "identity": {
343
- "$ref": "#JobIdentity"
344
- },
345
- "implementationUri": {
346
- "$ref": "#Uri"
347
- }
348
- },
349
- "allOf": [
350
- {
351
- "$ref": "#DocumentationFacet"
352
- },
353
- {
354
- "$ref": "#RolesFacet"
355
- }
356
- ],
357
- "unevaluatedProperties": false
358
- }
359
- },
360
- "RoleBindingArray": {
361
- "identity": "TYPE-RoleBindingArray",
362
- "name": "RoleBindingArray",
363
- "description": "dummy-description",
364
- "nucleusSchema": {
365
- "$anchor": "RoleBindingArray",
366
- "$schema": "https://json-schema.org/draft/2020-12/schema",
367
- "type": "array",
368
- "items": {
369
- "$ref": "#ResourceRoleIdentity"
370
- }
371
- }
372
- },
373
- "RoleBindings": {
374
- "identity": "TYPE-RoleBindings",
375
- "name": "RoleBindings",
376
- "description": "dummy-description",
377
- "nucleusSchema": {
378
- "$anchor": "RoleBindings",
379
- "$schema": "https://json-schema.org/draft/2020-12/schema",
380
- "type": "object",
381
- "required": [
382
- "inputBindings",
383
- "outputBindings"
384
- ],
385
- "properties": {
386
- "inputBindings": {
387
- "$ref": "#RoleBindingArray"
388
- },
389
- "outputBindings": {
390
- "$ref": "#RoleBindingArray"
391
- }
392
- }
393
- },
394
- "unevaluatedProperties": false
395
- },
396
- "RoleBindingsFacet": {
397
- "identity": "TYPE-RoleBindingsFacet",
398
- "name": "RoleBindingsFacet",
399
- "description": "dummy-description",
400
- "nucleusSchema": {
401
- "$anchor": "RoleBindingsFacet",
402
- "$schema": "https://json-schema.org/draft/2020-12/schema",
403
- "type": "object",
404
- "required": [
405
- "roleBindings"
406
- ],
407
- "properties": {
408
- "roleBindings": {
409
- "$ref": "#RoleBindings"
410
- }
411
- }
412
- }
413
- },
414
- "StepKind": {
415
- "identity": "TYPE-StepKind",
416
- "name": "StepKind",
417
- "description": "dummy-description",
418
- "nucleusSchema": {
419
- "$anchor": "StepKind",
420
- "$schema": "https://json-schema.org/draft/2020-12/schema",
421
- "type": "string",
422
- "enum": [
423
- "job",
424
- "branch",
425
- "while",
426
- "for"
427
- ]
428
- }
429
- },
430
- "StepKindFacet": {
431
- "identity": "TYPE-StepKindFacet",
432
- "name": "StepKindFacet",
433
- "description": "dummy-description",
434
- "nucleusSchema": {
435
- "$anchor": "StepKindFacet",
436
- "$schema": "https://json-schema.org/draft/2020-12/schema",
437
- "type": "object",
438
- "required": [
439
- "stepKind"
440
- ],
441
- "properties": {
442
- "stepKind": {
443
- "$ref": "#StepKind"
444
- }
445
- }
446
- }
447
- },
448
- "JobStepIdentity": {
449
- "identity": "TYPE-JobStepIdentity",
450
- "name": "JobStepIdentity",
451
- "description": "dummy-description",
452
- "nucleusSchema": {
453
- "$anchor": "JobStepIdentity",
454
- "$schema": "https://json-schema.org/draft/2020-12/schema",
455
- "type": "string",
456
- "pattern": "^JOB_STEP-.+$"
457
- }
458
- },
459
- "JobStep": {
460
- "identity": "TYPE-JobStep",
461
- "name": "JobStep",
462
- "description": "dummy-description",
463
- "nucleusSchema": {
464
- "$anchor": "JobStep",
465
- "$schema": "https://json-schema.org/draft/2020-12/schema",
466
- "type": "object",
467
- "required": [
468
- "identity",
469
- "stepKind",
470
- "jobHandle"
471
- ],
472
- "properties": {
473
- "identity": {
474
- "$ref": "#JobStepIdentity"
475
- },
476
- "stepKind": {
477
- "const": "job"
478
- },
479
- "jobHandle": {
480
- "$ref": "#JobIdentity"
481
- }
482
- },
483
- "allOf": [
484
- {
485
- "$ref": "#StepKindFacet"
486
- },
487
- {
488
- "$comment": "This will be overlayed dynamically to specify roleBindings corresponding to the roles of the underlying job.",
489
- "$ref": "#RoleBindingsFacet"
490
- }
491
- ]
492
- }
493
- },
494
- "Conditional": {
495
- "identity": "TYPE-Conditional",
496
- "name": "Conditional",
497
- "description": "dummy-description",
498
- "nucleusSchema": {
499
- "$anchor": "Conditional",
500
- "$schema": "https://json-schema.org/draft/2020-12/schema",
501
- "type": "object",
502
- "required": [
503
- "when",
504
- "what"
505
- ],
506
- "properties": {
507
- "when": {
508
- "$ref": "#JobStep"
509
- },
510
- "what": {
511
- "$ref": "#JobStep"
512
- }
513
- },
514
- "unevaluatedProperties": false
515
- }
516
- },
517
- "BranchStepIdentity": {
518
- "identity": "TYPE-BranchStepIdentity",
519
- "name": "BranchStepIdentity",
520
- "description": "dummy-description",
521
- "nucleusSchema": {
522
- "$anchor": "BranchStepIdentity",
523
- "$schema": "https://json-schema.org/draft/2020-12/schema",
524
- "type": "string",
525
- "pattern": "^BRANCH_STEP-.+$"
526
- }
527
- },
528
- "BranchStep": {
529
- "identity": "TYPE-BranchStep",
530
- "name": "BranchStep",
531
- "description": "dummy-description",
532
- "nucleusSchema": {
533
- "$anchor": "BranchStep",
534
- "$schema": "https://json-schema.org/draft/2020-12/schema",
535
- "type": "object",
536
- "required": [
537
- "identity",
538
- "stepKind",
539
- "cases"
540
- ],
541
- "properties": {
542
- "identity": {
543
- "$ref": "#BranchStepIdentity"
544
- },
545
- "stepKind": {
546
- "const": "branch"
547
- },
548
- "cases": {
549
- "type": "array",
550
- "items": {
551
- "$ref": "#Conditional"
552
- },
553
- "minItems": 1,
554
- "uniqueItems": true
555
- }
556
- },
557
- "allOf": [
558
- {
559
- "$ref": "#StepKindFacet"
560
- }
561
- ]
562
- }
563
- },
564
- "WhileStepIdentity": {
565
- "identity": "TYPE-WhileStepIdentity",
566
- "name": "WhileStepIdentity",
567
- "description": "dummy-description",
568
- "nucleusSchema": {
569
- "$anchor": "WhileStepIdentity",
570
- "$schema": "https://json-schema.org/draft/2020-12/schema",
571
- "type": "string",
572
- "pattern": "^WHILE_STEP-.+$"
573
- }
574
- },
575
- "WhileStep": {
576
- "identity": "TYPE-WhileStep",
577
- "name": "WhileStep",
578
- "description": "dummy-description",
579
- "nucleusSchema": {
580
- "$anchor": "WhileStep",
581
- "$schema": "https://json-schema.org/draft/2020-12/schema",
582
- "type": "object",
583
- "required": [
584
- "identity",
585
- "stepKind",
586
- "case"
587
- ],
588
- "properties": {
589
- "identity": {
590
- "$ref": "#WhileStepIdentity"
591
- },
592
- "stepKind": {
593
- "const": "while"
594
- },
595
- "case": {
596
- "$ref": "#Conditional"
597
- }
598
- },
599
- "allOf": [
600
- {
601
- "$ref": "#StepKindFacet"
602
- }
603
- ]
604
- }
605
- },
606
- "ForStepIdentity": {
607
- "identity": "TYPE-ForStepIdentity",
608
- "name": "ForStepIdentity",
609
- "description": "dummy-description",
610
- "nucleusSchema": {
611
- "$anchor": "ForStepIdentity",
612
- "$schema": "https://json-schema.org/draft/2020-12/schema",
613
- "type": "string",
614
- "pattern": "^FOR_STEP-.+$"
615
- }
616
- },
617
- "ForStep": {
618
- "identity": "TYPE-ForStep",
619
- "name": "ForStep",
620
- "description": "dummy-description",
621
- "nucleusSchema": {
622
- "$anchor": "ForStep",
623
- "$schema": "https://json-schema.org/draft/2020-12/schema",
624
- "type": "object",
625
- "required": [
626
- "identity",
627
- "stepKind",
628
- "case"
629
- ],
630
- "properties": {
631
- "identity": {
632
- "$ref": "#ForStepIdentity"
633
- },
634
- "stepKind": {
635
- "const": "for"
636
- },
637
- "case": {
638
- "$ref": "#Conditional"
639
- }
640
- },
641
- "allOf": [
642
- {
643
- "$ref": "#StepKindFacet"
644
- }
645
- ]
646
- }
647
- },
648
- "StepIdentity": {
649
- "identity": "TYPE-StepIdentity",
650
- "name": "StepIdentity",
651
- "description": "dummy-description",
652
- "nucleusSchema": {
653
- "$anchor": "StepIdentity",
654
- "$schema": "https://json-schema.org/draft/2020-12/schema",
655
- "type": "object",
656
- "oneOf": [
657
- {
658
- "$ref": "#JobStepIdentity"
659
- },
660
- {
661
- "$ref": "#BranchStepIdentity"
662
- },
663
- {
664
- "$ref": "#WhileStepIdentity"
665
- },
666
- {
667
- "$ref": "#ForStepIdentity"
668
- }
669
- ]
670
- }
671
- },
672
- "Step": {
673
- "identity": "TYPE-Step",
674
- "name": "Step",
675
- "description": "dummy-description",
676
- "nucleusSchema": {
677
- "$anchor": "Step",
678
- "$schema": "https://json-schema.org/draft/2020-12/schema",
679
- "type": "object",
680
- "oneOf": [
681
- {
682
- "$ref": "#JobStep"
683
- },
684
- {
685
- "$ref": "#BranchStep"
686
- },
687
- {
688
- "$ref": "#WhileStep"
689
- },
690
- {
691
- "$ref": "#ForStep"
692
- }
693
- ],
694
- "unevaluatedProperties": false
695
- }
696
- },
697
- "CreationContext": {
698
- "identity": "TYPE-CreationContext",
699
- "name": "CreationContext",
700
- "description": "dummy-description",
701
- "nucleusSchema": {
702
- "$anchor": "CreationContext",
703
- "$schema": "https://json-schema.org/draft/2020-12/schema",
704
- "type": "object",
705
- "required": [
706
- "resourceRoleHandle",
707
- "jobStepHandle"
708
- ],
709
- "properties": {
710
- "resourceRoleHandle": {
711
- "$ref": "#ResourceRoleIdentity"
712
- },
713
- "jobStepHandle": {
714
- "$ref": "#JobStepIdentity"
715
- }
716
- }
717
- }
718
- },
719
- "CreationContextFacet": {
720
- "identity": "TYPE-CreationContextFacet",
721
- "name": "CreationContextFacet",
722
- "description": "dummy-description",
723
- "nucleusSchema": {
724
- "$anchor": "CreationContextFacet",
725
- "$schema": "https://json-schema.org/draft/2020-12/schema",
726
- "type": "object",
727
- "required": [
728
- "creationContext"
729
- ],
730
- "properties": {
731
- "creationContext": {
732
- "$ref": "#CreationContext"
733
- }
734
- }
735
- }
736
- },
737
- "ResourceIdentity": {
738
- "identity": "TYPE-ResourceIdentity",
739
- "name": "ResourceIdentity",
740
- "description": "dummy-description",
741
- "nucleusSchema": {
742
- "$anchor": "ResourceIdentity",
743
- "$schema": "https://json-schema.org/draft/2020-12/schema",
744
- "type": "string",
745
- "pattern": "^RESOURCE-.+$"
746
- }
747
- },
748
- "ResourceShellBase": {
749
- "identity": "TYPE-ResourceShellBase",
750
- "name": "ResourceShellBase",
751
- "description": "dummy-description",
752
- "nucleusSchema": {
753
- "$anchor": "ResourceShellBase",
754
- "$schema": "https://json-schema.org/draft/2020-12/schema",
755
- "type": "object",
756
- "required": [
757
- "identity",
758
- "resourceTypeHandle",
759
- "resourceKind"
760
- ],
761
- "properties": {
762
- "identity": {
763
- "$ref": "#ResourceIdentity"
764
- },
765
- "resourceTypeHandle": {
766
- "$ref": "#ResourceTypeIdentity"
767
- },
768
- "resourceKind": {
769
- "$ref": "#ResourceKind"
770
- }
771
- }
772
- }
773
- },
774
- "ResourceKind": {
775
- "identity": "TYPE-ResourceKind",
776
- "name": "ResourceKind",
777
- "description": "dummy-description",
778
- "nucleusSchema": {
779
- "$anchor": "ResourceKind",
780
- "$schema": "https://json-schema.org/draft/2020-12/schema",
781
- "type": "string",
782
- "enum": [
783
- "missing",
784
- "inputPotential",
785
- "outputPotential",
786
- "materialized"
787
- ]
788
- }
789
- },
790
- "ResourceKindFacet": {
791
- "identity": "TYPE-ResourceKindFacet",
792
- "name": "ResourceKindFacet",
793
- "description": "dummy-description",
794
- "nucleusSchema": {
795
- "$anchor": "ResourceKindFacet",
796
- "$schema": "https://json-schema.org/draft/2020-12/schema",
797
- "type": "object",
798
- "required": [
799
- "resourceKind"
800
- ],
801
- "properties": {
802
- "resourceKind": {
803
- "$ref": "#ResourceKind"
804
- }
805
- }
806
- }
807
- },
808
- "ShellMissing": {
809
- "identity": "TYPE-ShellMissing",
810
- "name": "ShellMissing",
811
- "description": "dummy-description",
812
- "nucleusSchema": {
813
- "$anchor": "ShellMissing",
814
- "$schema": "https://json-schema.org/draft/2020-12/schema",
815
- "type": "object",
816
- "properties": {
817
- "resourceKind": {
818
- "const": "missing"
819
- }
820
- },
821
- "allOf": [
822
- {
823
- "$ref": "#ResourceShellBase"
824
- },
825
- {
826
- "$ref": "#ResourceKindFacet"
827
- }
828
- ],
829
- "unevaluatedProperties": false
830
- }
831
- },
832
- "ShellInputPotential": {
833
- "identity": "TYPE-ShellInputPotential",
834
- "name": "ShellInputPotential",
835
- "description": "dummy-description",
836
- "nucleusSchema": {
837
- "$anchor": "ShellInputPotential",
838
- "$schema": "https://json-schema.org/draft/2020-12/schema",
839
- "type": "object",
840
- "properties": {
841
- "resourceKind": {
842
- "const": "inputPotential"
843
- }
844
- },
845
- "allOf": [
846
- {
847
- "$ref": "#ResourceShellBase"
848
- },
849
- {
850
- "$ref": "#CreationContextFacet"
851
- },
852
- {
853
- "$ref": "#ResourceKindFacet"
854
- }
855
- ],
856
- "unevaluatedProperties": false
857
- }
858
- },
859
- "ShellOutputPotential": {
860
- "identity": "TYPE-ShellOutputPotential",
861
- "name": "ShellOutputPotential",
862
- "description": "dummy-description",
863
- "nucleusSchema": {
864
- "$anchor": "ShellOutputPotential",
865
- "$schema": "https://json-schema.org/draft/2020-12/schema",
866
- "type": "object",
867
- "properties": {
868
- "resourceKind": {
869
- "const": "outputPotential"
870
- }
871
- },
872
- "allOf": [
873
- {
874
- "$ref": "#ResourceShellBase"
875
- },
876
- {
877
- "$ref": "#CreationContextFacet"
878
- },
879
- {
880
- "$ref": "#ResourceKindFacet"
881
- }
882
- ],
883
- "unevaluatedProperties": false
884
- }
885
- },
886
- "Timestamp": {
887
- "identity": "TYPE-Timestamp",
888
- "name": "Timestamp",
889
- "description": "dummy-description",
890
- "nucleusSchema": {
891
- "$anchor": "Timestamp",
892
- "$schema": "https://json-schema.org/draft/2020-12/schema",
893
- "type": "string",
894
- "format": "date-time"
895
- }
896
- },
897
- "TimestampFacet": {
898
- "identity": "TYPE-TimestampFacet",
899
- "name": "TimestampFacet",
900
- "description": "dummy-description",
901
- "nucleusSchema": {
902
- "$anchor": "TimestampFacet",
903
- "$schema": "https://json-schema.org/draft/2020-12/schema",
904
- "type": "object",
905
- "required": [
906
- "timestamp"
907
- ],
908
- "properties": {
909
- "timestamp": {
910
- "$ref": "#Timestamp"
911
- }
912
- }
913
- }
914
- },
915
- "Path": {
916
- "identity": "TYPE-Path",
917
- "name": "Path",
918
- "description": "dummy-description",
919
- "nucleusSchema": {
920
- "$anchor": "Path",
921
- "$schema": "https://json-schema.org/draft/2020-12/schema",
922
- "type": "string",
923
- "format": "uri-reference"
924
- }
925
- },
926
- "PathFacet": {
927
- "identity": "TYPE-PathFacet",
928
- "name": "PathFacet",
929
- "description": "dummy-description",
930
- "nucleusSchema": {
931
- "$anchor": "PathFacet",
932
- "$schema": "https://json-schema.org/draft/2020-12/schema",
933
- "type": "object",
934
- "required": [
935
- "path"
936
- ],
937
- "properties": {
938
- "path": {
939
- "$ref": "#Path"
940
- }
941
- }
942
- }
943
- },
944
- "ShellMaterializedBase": {
945
- "identity": "TYPE-ShellMaterializedBase",
946
- "name": "ShellMaterializedBase",
947
- "description": "dummy-description",
948
- "nucleusSchema": {
949
- "$anchor": "ShellMaterializedBase",
950
- "$schema": "https://json-schema.org/draft/2020-12/schema",
951
- "type": "object",
952
- "required": [
953
- "version"
954
- ],
955
- "properties": {
956
- "version": {
957
- "const": 1
958
- },
959
- "resourceKind": {
960
- "const": "materialized"
961
- }
962
- },
963
- "allOf": [
964
- {
965
- "$ref": "#ResourceShellBase"
966
- },
967
- {
968
- "$ref": "#CreationContextFacet"
969
- },
970
- {
971
- "$ref": "#ResourceKindFacet"
972
- },
973
- {
974
- "$ref": "#TimestampFacet"
975
- },
976
- {
977
- "$ref": "#PathFacet"
978
- }
979
- ]
980
- }
981
- },
982
- "ShellMaterialized": {
983
- "identity": "TYPE-ShellMaterialized",
984
- "name": "ShellMaterialized",
985
- "description": "dummy-description",
986
- "nucleusSchema": {
987
- "$anchor": "ShellMaterialized",
988
- "$schema": "https://json-schema.org/draft/2020-12/schema",
989
- "type": "object",
990
- "$ref": "#ShellMaterializedBase",
991
- "unevaluatedProperties": false
992
- }
993
- },
994
- "ResourceMissing": {
995
- "identity": "TYPE-ResourceMissing",
996
- "name": "ResourceMissing",
997
- "description": "dummy-description",
998
- "nucleusSchema": {
999
- "$anchor": "ResourceMissing",
1000
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1001
- "type": "object",
1002
- "$ref": "#ShellMissing",
1003
- "unevaluatedProperties": false
1004
- }
1005
- },
1006
- "ResourceInputPotential": {
1007
- "identity": "TYPE-ResourceInputPotential",
1008
- "name": "ResourceInputPotential",
1009
- "description": "dummy-description",
1010
- "nucleusSchema": {
1011
- "$anchor": "ResourceInputPotential",
1012
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1013
- "type": "object",
1014
- "$ref": "#ShellInputPotential",
1015
- "unevaluatedProperties": false
1016
- }
1017
- },
1018
- "ResourceOutputPotential": {
1019
- "identity": "TYPE-ResourceOutputPotential",
1020
- "name": "ResourceOutputPotential",
1021
- "description": "dummy-description",
1022
- "nucleusSchema": {
1023
- "$anchor": "ResourceOutputPotential",
1024
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1025
- "type": "object",
1026
- "$ref": "#ShellOutputPotential",
1027
- "unevaluatedProperties": false
1028
- }
1029
- },
1030
- "JsonData": {
1031
- "identity": "TYPE-JsonData",
1032
- "name": "JsonData",
1033
- "description": "dummy-description",
1034
- "nucleusSchema": {
1035
- "$anchor": "JsonData",
1036
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1037
- "oneOf": [
1038
- {
1039
- "type": "null"
1040
- },
1041
- {
1042
- "type": "boolean"
1043
- },
1044
- {
1045
- "type": "number"
1046
- },
1047
- {
1048
- "type": "string"
1049
- },
1050
- {
1051
- "type": "array",
1052
- "items": {
1053
- "$ref": "#JsonData"
1054
- }
1055
- },
1056
- {
1057
- "type": "object",
1058
- "additionalProperties": {
1059
- "$ref": "#JsonData"
1060
- }
1061
- }
1062
- ]
1063
- }
1064
- },
1065
- "Nucleus": {
1066
- "identity": "TYPE-Nucleus",
1067
- "name": "Nucleus",
1068
- "description": "dummy-description",
1069
- "nucleusSchema": {
1070
- "$anchor": "Nucleus",
1071
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1072
- "type": "object",
1073
- "additionalProperties": {
1074
- "$ref": "#JsonData"
1075
- }
1076
- }
1077
- },
1078
- "NucleusFacet": {
1079
- "identity": "TYPE-NucleusFacet",
1080
- "name": "NucleusFacet",
1081
- "description": "dummy-description",
1082
- "nucleusSchema": {
1083
- "$anchor": "NucleusFacet",
1084
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1085
- "type": "object",
1086
- "required": [
1087
- "nucleus"
1088
- ],
1089
- "properties": {
1090
- "nucleus": {
1091
- "$ref": "#Nucleus"
1092
- }
1093
- }
1094
- }
1095
- },
1096
- "ResourceMaterialized": {
1097
- "identity": "TYPE-ResourceMaterialized",
1098
- "name": "ResourceMaterialized",
1099
- "description": "dummy-description",
1100
- "nucleusSchema": {
1101
- "$anchor": "ResourceMaterialized",
1102
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1103
- "type": "object",
1104
- "allOf": [
1105
- {
1106
- "$ref": "#ShellMaterializedBase"
1107
- },
1108
- {
1109
- "$comment": "This will be overlayed dynamically to match the data structure of the underlying ResourceType's nucleusSchema.",
1110
- "$ref": "#NucleusFacet"
1111
- }
1112
- ],
1113
- "unevaluatedProperties": false
1114
- }
1115
- },
1116
- "Resource": {
1117
- "identity": "TYPE-Resource",
1118
- "name": "Resource",
1119
- "description": "dummy-description",
1120
- "nucleusSchema": {
1121
- "$anchor": "Resource",
1122
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1123
- "type": "object",
1124
- "oneOf": [
1125
- {
1126
- "$ref": "#ResourceMissing"
1127
- },
1128
- {
1129
- "$ref": "#ResourceInputPotential"
1130
- },
1131
- {
1132
- "$ref": "#ResourceOutputPotential"
1133
- },
1134
- {
1135
- "$ref": "#ResourceMaterialized"
1136
- }
1137
- ],
1138
- "unevaluatedProperties": false
1139
- }
1140
- },
1141
- "JobStepSocket": {
1142
- "identity": "TYPE-JobStepSocket",
1143
- "name": "JobStepSocket",
1144
- "description": "dummy-description",
1145
- "nucleusSchema": {
1146
- "$anchor": "JobStepSocket",
1147
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1148
- "type": "object",
1149
- "propertyNames": {
1150
- "$ref": "#ResourceRoleIdentity"
1151
- },
1152
- "additionalProperties": {
1153
- "$ref": "#Resource"
1154
- }
1155
- }
1156
- },
1157
- "StrategyState": {
1158
- "identity": "TYPE-StrategyState",
1159
- "name": "StrategyState",
1160
- "description": "dummy-description",
1161
- "nucleusSchema": {
1162
- "$anchor": "StrategyState",
1163
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1164
- "type": "object",
1165
- "propertyNames": {
1166
- "$ref": "#JobStepIdentity"
1167
- },
1168
- "additionalProperties": {
1169
- "$ref": "#JobStepSocket"
1170
- }
1171
- }
1172
- },
1173
- "StrategyStateFacet": {
1174
- "identity": "TYPE-StrategyStateFacet",
1175
- "name": "StrategyStateFacet",
1176
- "description": "dummy-description",
1177
- "nucleusSchema": {
1178
- "$anchor": "StrategyStateFacet",
1179
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1180
- "type": "object",
1181
- "required": [
1182
- "strategyState"
1183
- ],
1184
- "properties": {
1185
- "strategyState": {
1186
- "$ref": "#StrategyState"
1187
- }
1188
- }
1189
- }
1190
- },
1191
- "StepArray": {
1192
- "identity": "TYPE-StepArray",
1193
- "name": "StepArray",
1194
- "description": "dummy-description",
1195
- "nucleusSchema": {
1196
- "$anchor": "StepArray",
1197
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1198
- "type": "array",
1199
- "items": {
1200
- "$ref": "#Step"
1201
- },
1202
- "uniqueItems": true
1203
- }
1204
- },
1205
- "StepsFacet": {
1206
- "identity": "TYPE-StepsFacet",
1207
- "name": "StepsFacet",
1208
- "description": "dummy-description",
1209
- "nucleusSchema": {
1210
- "$anchor": "StepsFacet",
1211
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1212
- "type": "object",
1213
- "required": [
1214
- "steps"
1215
- ],
1216
- "properties": {
1217
- "steps": {
1218
- "$ref": "#StepArray"
1219
- }
1220
- }
1221
- }
1222
- },
1223
- "RawStrategy": {
1224
- "identity": "TYPE-RawStrategy",
1225
- "name": "RawStrategy",
1226
- "description": "dummy-description",
1227
- "nucleusSchema": {
1228
- "$anchor": "RawStrategy",
1229
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1230
- "type": "object",
1231
- "allOf": [
1232
- {
1233
- "$ref": "#StepsFacet"
1234
- },
1235
- {
1236
- "$ref": "#StrategyStateFacet"
1237
- }
1238
- ],
1239
- "unevaluatedProperties": false
1240
- }
1241
- },
1242
- "RunnableStrategyIdentity": {
1243
- "identity": "TYPE-RunnableStrategyIdentity",
1244
- "name": "RunnableStrategyIdentity",
1245
- "description": "dummy-description",
1246
- "nucleusSchema": {
1247
- "$anchor": "RunnableStrategyIdentity",
1248
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1249
- "type": "string",
1250
- "pattern": "^RUNNABLE_STRATEGY-.+$"
1251
- }
1252
- },
1253
- "RunnableStrategyStatus": {
1254
- "identity": "TYPE-RunnableStrategyStatus",
1255
- "name": "RunnableStrategyStatus",
1256
- "description": "dummy-description",
1257
- "nucleusSchema": {
1258
- "$anchor": "RunnableStrategyStatus",
1259
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1260
- "type": "string",
1261
- "enum": [
1262
- "pending",
1263
- "running",
1264
- "completed",
1265
- "failed",
1266
- "cancelled"
1267
- ]
1268
- }
1269
- },
1270
- "RunnableStrategyContext": {
1271
- "identity": "TYPE-RunnableStrategyContext",
1272
- "name": "RunnableStrategyContext",
1273
- "description": "dummy-description",
1274
- "nucleusSchema": {
1275
- "$anchor": "RunnableStrategyContext",
1276
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1277
- "type": "object",
1278
- "required": [
1279
- "status"
1280
- ],
1281
- "properties": {
1282
- "status": {
1283
- "$ref": "#RunnableStrategyStatus"
1284
- },
1285
- "startedAt": {
1286
- "$ref": "#Timestamp"
1287
- },
1288
- "completedAt": {
1289
- "$ref": "#Timestamp"
1290
- }
1291
- },
1292
- "unevaluatedProperties": false
1293
- }
1294
- },
1295
- "StrategyThreadIdentity": {
1296
- "identity": "TYPE-StrategyThreadIdentity",
1297
- "name": "StrategyThreadIdentity",
1298
- "description": "dummy-description",
1299
- "nucleusSchema": {
1300
- "$anchor": "StrategyThreadIdentity",
1301
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1302
- "type": "string",
1303
- "pattern": "^STRATEGY_THREAD-.+$"
1304
- }
1305
- },
1306
- "StrategyThreadMap": {
1307
- "identity": "TYPE-StrategyThreadMap",
1308
- "name": "StrategyThreadMap",
1309
- "description": "dummy-description",
1310
- "nucleusSchema": {
1311
- "$anchor": "StrategyThreadMap",
1312
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1313
- "type": "object",
1314
- "propertyNames": {
1315
- "$ref": "#StrategyThreadIdentity"
1316
- },
1317
- "additionalProperties": {
1318
- "$ref": "#StepArray"
1319
- },
1320
- "$comment": "Each thread contains an array of steps, allowing for sequential execution within a thread while supporting parallel execution across multiple threads."
1321
- }
1322
- },
1323
- "StrategyThreadMapFacet": {
1324
- "identity": "TYPE-StrategyThreadMapFacet",
1325
- "name": "StrategyThreadMapFacet",
1326
- "description": "dummy-description",
1327
- "nucleusSchema": {
1328
- "$anchor": "StrategyThreadMapFacet",
1329
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1330
- "type": "object",
1331
- "required": [
1332
- "strategyThreadMap"
1333
- ],
1334
- "properties": {
1335
- "strategyThreadMap": {
1336
- "$ref": "#StrategyThreadMap"
1337
- }
1338
- }
1339
- }
1340
- },
1341
- "RunnableStrategy": {
1342
- "identity": "TYPE-RunnableStrategy",
1343
- "name": "RunnableStrategy",
1344
- "description": "dummy-description",
1345
- "nucleusSchema": {
1346
- "$anchor": "RunnableStrategy",
1347
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1348
- "type": "object",
1349
- "required": [
1350
- "identity",
1351
- "runnableStrategyContext"
1352
- ],
1353
- "properties": {
1354
- "identity": {
1355
- "$ref": "#RunnableStrategyIdentity"
1356
- },
1357
- "runnableStrategyContext": {
1358
- "$ref": "#RunnableStrategyContext"
1359
- }
1360
- },
1361
- "allOf": [
1362
- {
1363
- "$comment": "The Engine runs jobs specified by steps in strategyThreadMap. The Engine also injects repeted steps when encountering loops.",
1364
- "$ref": "#StrategyThreadMapFacet"
1365
- },
1366
- {
1367
- "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts inputPotential and outputPotential Resources upon step injections.",
1368
- "$ref": "#StrategyStateFacet"
1369
- }
1370
- ],
1371
- "unevaluatedProperties": false
1372
- }
1373
- },
1374
- "StrategyStateDelta": {
1375
- "identity": "TYPE-StrategyStateDelta",
1376
- "name": "StrategyStateDelta",
1377
- "description": "dummy-description",
1378
- "nucleusSchema": {
1379
- "$anchor": "StrategyStateDelta",
1380
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1381
- "type": "object",
1382
- "required": [
1383
- "strategyStateUpdate"
1384
- ],
1385
- "properties": {
1386
- "strategyStateUpdate": {
1387
- "$ref": "#StrategyState"
1388
- }
1389
- }
1390
- }
1391
- },
1392
- "RunnableStrategyUpdate": {
1393
- "identity": "TYPE-RunnableStrategyUpdate",
1394
- "name": "RunnableStrategyUpdate",
1395
- "description": "dummy-description",
1396
- "nucleusSchema": {
1397
- "$anchor": "RunnableStrategyUpdate",
1398
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1399
- "type": "object",
1400
- "required": [
1401
- "runnableStrategyHandle"
1402
- ],
1403
- "properties": {
1404
- "runnableStrategyHandle": {
1405
- "$ref": "#RunnableStrategyIdentity"
1406
- }
1407
- },
1408
- "allOf": [
1409
- {
1410
- "$ref": "#StrategyStateDelta"
1411
- }
1412
- ],
1413
- "unevaluatedProperties": false
1414
- }
1415
- },
1416
- "RunEventCounters": {
1417
- "identity": "TYPE-RunEventCounters",
1418
- "name": "RunEventCounters",
1419
- "description": "dummy-description",
1420
- "nucleusSchema": {
1421
- "$anchor": "RunEventCounters",
1422
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1423
- "type": "object",
1424
- "properties": {
1425
- "stepCounterAfter": {
1426
- "type": "integer"
1427
- },
1428
- "iterationCounterAfter": {
1429
- "type": "integer"
1430
- }
1431
- }
1432
- }
1433
- },
1434
- "RunEventStepMetadata": {
1435
- "identity": "TYPE-RunEventStepMetadata",
1436
- "name": "RunEventStepMetadata",
1437
- "description": "dummy-description",
1438
- "nucleusSchema": {
1439
- "$anchor": "RunEventStepMetadata",
1440
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1441
- "type": "object",
1442
- "required": [
1443
- "stepHandle",
1444
- "stepKind",
1445
- "threadStepIndex"
1446
- ],
1447
- "properties": {
1448
- "stepHandle": {
1449
- "$ref": "#StepIdentity"
1450
- },
1451
- "stepKind": {
1452
- "$ref": "#StepKind"
1453
- },
1454
- "threadStepIndex": {
1455
- "type": "integer"
1456
- }
1457
- }
1458
- }
1459
- },
1460
- "RunEventUpdates": {
1461
- "identity": "TYPE-RunEventUpdates",
1462
- "name": "RunEventUpdates",
1463
- "description": "dummy-description",
1464
- "nucleusSchema": {
1465
- "$anchor": "RunEventUpdates",
1466
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1467
- "type": "object",
1468
- "properties": {
1469
- "stepsMutation": {
1470
- "type": "object",
1471
- "required": [
1472
- "insertAt",
1473
- "inserted"
1474
- ],
1475
- "properties": {
1476
- "insertAt": {
1477
- "type": "integer"
1478
- },
1479
- "inserted": {
1480
- "$ref": "#StepArray"
1481
- }
1482
- }
1483
- },
1484
- "interruptData": {
1485
- "$comment": "Kept permissive; the engine may evolve interrupt payloads.",
1486
- "type": [
1487
- "object",
1488
- "null"
1489
- ]
1490
- }
1491
- },
1492
- "allOf": [
1493
- {
1494
- "$ref": "#StrategyStateDelta"
1495
- }
1496
- ]
1497
- }
1498
- },
1499
- "RunEventKind": {
1500
- "identity": "TYPE-RunEventKind",
1501
- "name": "RunEventKind",
1502
- "description": "dummy-description",
1503
- "nucleusSchema": {
1504
- "$anchor": "RunEventKind",
1505
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1506
- "type": "string",
1507
- "enum": [
1508
- "graph_start",
1509
- "tick",
1510
- "interrupt",
1511
- "graph_end"
1512
- ]
1513
- }
1514
- },
1515
- "RunEventBase": {
1516
- "identity": "TYPE-RunEventBase",
1517
- "name": "RunEventBase",
1518
- "description": "dummy-description",
1519
- "nucleusSchema": {
1520
- "$anchor": "RunEventBase",
1521
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1522
- "type": "object",
1523
- "required": [
1524
- "runEventKind",
1525
- "runnableStrategyHandle",
1526
- "strategyThreadHandle",
1527
- "createdAt",
1528
- "nodeName",
1529
- "eventSeq"
1530
- ],
1531
- "properties": {
1532
- "runEventKind": {
1533
- "$ref": "#RunEventKind"
1534
- },
1535
- "runnableStrategyHandle": {
1536
- "$ref": "#RunnableStrategyIdentity"
1537
- },
1538
- "strategyThreadHandle": {
1539
- "$ref": "#StrategyThreadIdentity"
1540
- },
1541
- "createdAt": {
1542
- "$ref": "#Timestamp"
1543
- },
1544
- "nodeName": {
1545
- "type": "string"
1546
- },
1547
- "eventSeq": {
1548
- "type": "integer"
1549
- },
1550
- "counters": {
1551
- "$ref": "#RunEventCounters"
1552
- },
1553
- "stepMetadata": {
1554
- "$ref": "#RunEventStepMetadata"
1555
- },
1556
- "updates": {
1557
- "$ref": "#RunEventUpdates"
1558
- }
1559
- }
1560
- }
1561
- },
1562
- "GraphStartRunEvent": {
1563
- "identity": "TYPE-GraphStartRunEvent",
1564
- "name": "GraphStartRunEvent",
1565
- "description": "dummy-description",
1566
- "nucleusSchema": {
1567
- "$anchor": "GraphStartRunEvent",
1568
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1569
- "allOf": [
1570
- {
1571
- "$ref": "#RunEventBase"
1572
- },
1573
- {
1574
- "type": "object",
1575
- "required": [
1576
- "runnableStrategySeed"
1577
- ],
1578
- "properties": {
1579
- "runEventKind": {
1580
- "const": "graph_start"
1581
- },
1582
- "runnableStrategySeed": {
1583
- "$ref": "#RunnableStrategy"
1584
- }
1585
- }
1586
- }
1587
- ]
1588
- }
1589
- },
1590
- "TickRunEvent": {
1591
- "identity": "TYPE-TickRunEvent",
1592
- "name": "TickRunEvent",
1593
- "description": "dummy-description",
1594
- "nucleusSchema": {
1595
- "$anchor": "TickRunEvent",
1596
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1597
- "allOf": [
1598
- {
1599
- "$ref": "#RunEventBase"
1600
- },
1601
- {
1602
- "type": "object",
1603
- "properties": {
1604
- "runEventKind": {
1605
- "const": "tick"
1606
- }
1607
- }
1608
- }
1609
- ]
1610
- }
1611
- },
1612
- "InterruptRunEvent": {
1613
- "identity": "TYPE-InterruptRunEvent",
1614
- "name": "InterruptRunEvent",
1615
- "description": "dummy-description",
1616
- "nucleusSchema": {
1617
- "$anchor": "InterruptRunEvent",
1618
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1619
- "allOf": [
1620
- {
1621
- "$ref": "#RunEventBase"
1622
- },
1623
- {
1624
- "type": "object",
1625
- "properties": {
1626
- "runEventKind": {
1627
- "const": "interrupt"
1628
- }
1629
- }
1630
- }
1631
- ]
1632
- }
1633
- },
1634
- "GraphEndRunEvent": {
1635
- "identity": "TYPE-GraphEndRunEvent",
1636
- "name": "GraphEndRunEvent",
1637
- "description": "dummy-description",
1638
- "nucleusSchema": {
1639
- "$anchor": "GraphEndRunEvent",
1640
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1641
- "allOf": [
1642
- {
1643
- "$ref": "#RunEventBase"
1644
- },
1645
- {
1646
- "type": "object",
1647
- "properties": {
1648
- "runEventKind": {
1649
- "const": "graph_end"
1650
- }
1651
- }
1652
- }
1653
- ]
1654
- }
1655
- },
1656
- "RunEvent": {
1657
- "identity": "TYPE-RunEvent",
1658
- "name": "RunEvent",
1659
- "description": "dummy-description",
1660
- "nucleusSchema": {
1661
- "$anchor": "RunEvent",
1662
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1663
- "type": "object",
1664
- "oneOf": [
1665
- {
1666
- "$ref": "#GraphStartRunEvent"
1667
- },
1668
- {
1669
- "$ref": "#TickRunEvent"
1670
- },
1671
- {
1672
- "$ref": "#InterruptRunEvent"
1673
- },
1674
- {
1675
- "$ref": "#GraphEndRunEvent"
1676
- }
1677
- ]
1678
- }
1679
- },
1680
- "StrategyRunIdentity": {
1681
- "identity": "TYPE-StrategyRunIdentity",
1682
- "name": "StrategyRunIdentity",
1683
- "description": "dummy-description",
1684
- "nucleusSchema": {
1685
- "$anchor": "StrategyRunIdentity",
1686
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1687
- "type": "string",
1688
- "pattern": "^STRATEGY_RUN-.+$"
1689
- }
1690
- },
1691
- "StrategyRun": {
1692
- "identity": "TYPE-StrategyRun",
1693
- "name": "StrategyRun",
1694
- "description": "dummy-description",
1695
- "nucleusSchema": {
1696
- "$anchor": "StrategyRun",
1697
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1698
- "type": "object",
1699
- "required": [
1700
- "identity",
1701
- "runnableStrategyHandle",
1702
- "recordedAt",
1703
- "runEvents"
1704
- ],
1705
- "properties": {
1706
- "identity": {
1707
- "$ref": "#StrategyRunIdentity"
1708
- },
1709
- "runnableStrategyHandle": {
1710
- "$comment": "Could be derived from the first event but useful for indexing.",
1711
- "$ref": "#RunnableStrategyIdentity"
1712
- },
1713
- "recordedAt": {
1714
- "$ref": "#Timestamp"
1715
- },
1716
- "runEvents": {
1717
- "type": "array",
1718
- "items": {
1719
- "$ref": "#RunEvent"
1720
- }
1721
- }
1722
- },
1723
- "unevaluatedProperties": false
1724
- }
1725
- },
1726
- "GoalIdentity": {
1727
- "identity": "TYPE-GoalIdentity",
1728
- "name": "GoalIdentity",
1729
- "description": "dummy-description",
1730
- "nucleusSchema": {
1731
- "$anchor": "GoalIdentity",
1732
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1733
- "type": "string",
1734
- "pattern": "^GOAL-.+$"
1735
- }
1736
- },
1737
- "Goal": {
1738
- "identity": "TYPE-Goal",
1739
- "name": "Goal",
1740
- "description": "dummy-description",
1741
- "nucleusSchema": {
1742
- "$anchor": "Goal",
1743
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1744
- "type": "object",
1745
- "required": [
1746
- "identity",
1747
- "target"
1748
- ],
1749
- "properties": {
1750
- "identity": {
1751
- "$ref": "#GoalIdentity"
1752
- },
1753
- "target": {
1754
- "type": "integer",
1755
- "minimum": 0
1756
- },
1757
- "disallowedJobs": {
1758
- "type": "array",
1759
- "items": {
1760
- "$ref": "#JobIdentity"
1761
- }
1762
- },
1763
- "disallowedSequences": {
1764
- "type": "array",
1765
- "items": {
1766
- "type": "array",
1767
- "items": {
1768
- "$ref": "#JobIdentity"
1769
- }
1770
- }
1771
- },
1772
- "minSteps": {
1773
- "type": "integer",
1774
- "minimum": 1
1775
- },
1776
- "maxSteps": {
1777
- "type": "integer",
1778
- "minimum": 1
1779
- }
1780
- },
1781
- "unevaluatedProperties": false
1782
- }
1783
- },
1784
- "Natural": {
1785
- "identity": "TYPE-Natural",
1786
- "name": "Natural",
1787
- "description": "dummy-description",
1788
- "nucleusSchema": {
1789
- "$anchor": "Natural",
1790
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1791
- "type": "object",
1792
- "required": [
1793
- "identity"
1794
- ],
1795
- "properties": {
1796
- "identity": {
1797
- "$ref": "#/$defs/NaturalIdentity"
1798
- }
1799
- },
1800
- "$defs": {
1801
- "NaturalIdentity": {
1802
- "type": "integer"
1803
- }
1804
- },
1805
- "additionalProperties": false
1806
- }
1807
- },
1808
- "Boolean": {
1809
- "identity": "TYPE-Boolean",
1810
- "name": "Boolean",
1811
- "description": "dummy-description",
1812
- "nucleusSchema": {
1813
- "$anchor": "Boolean",
1814
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1815
- "type": "object",
1816
- "required": [
1817
- "identity"
1818
- ],
1819
- "properties": {
1820
- "identity": {
1821
- "$ref": "#/$defs/BooleanIdentity"
1822
- }
1823
- },
1824
- "$defs": {
1825
- "BooleanIdentity": {
1826
- "type": "boolean"
1827
- }
1828
- },
1829
- "additionalProperties": false
1830
- }
1831
- }
1832
- }
1833
- }
1
+ {
2
+ "identity": "TYPE-Genesis",
3
+ "name": "Genesis",
4
+ "description": "dummy-description",
5
+ "nucleusSchema": {
6
+ "$comment": "This file defines all schemas used internally by ToolProof.",
7
+ "$anchor": "Genesis",
8
+ "$id": "https://schemas.toolproof.com/v1/Genesis.json",
9
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
10
+ "$defs": {
11
+ "Name": {
12
+ "identity": "TYPE-Name",
13
+ "name": "Name",
14
+ "description": "dummy-description",
15
+ "nucleusSchema": {
16
+ "$anchor": "Name",
17
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
18
+ "type": "string",
19
+ "minLength": 1,
20
+ "pattern": "^(?:[A-Z][^0-9]*|[a-z]+/[a-z.+&-]+)$",
21
+ "$comment": "Validation is intercepted by an AI Agent that verifies the name against Toolproof's naming conventions.",
22
+ "semanticValidation": "Ajv custom keyword to verify name."
23
+ }
24
+ },
25
+ "NameFacet": {
26
+ "identity": "TYPE-NameFacet",
27
+ "name": "NameFacet",
28
+ "description": "dummy-description",
29
+ "nucleusSchema": {
30
+ "$anchor": "NameFacet",
31
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
32
+ "type": "object",
33
+ "required": [
34
+ "name"
35
+ ],
36
+ "properties": {
37
+ "name": {
38
+ "$ref": "#Name"
39
+ }
40
+ }
41
+ }
42
+ },
43
+ "Description": {
44
+ "identity": "TYPE-Description",
45
+ "name": "Description",
46
+ "description": "dummy-description",
47
+ "nucleusSchema": {
48
+ "$anchor": "Description",
49
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
50
+ "type": "string",
51
+ "minLength": 1,
52
+ "$comment": "Validation is intercepted by an AI Agent that verifies the description against Toolproof's documentation standards.",
53
+ "semanticValidation": "Ajv custom keyword to verify description."
54
+ }
55
+ },
56
+ "DescriptionFacet": {
57
+ "identity": "TYPE-DescriptionFacet",
58
+ "name": "DescriptionFacet",
59
+ "description": "dummy-description",
60
+ "nucleusSchema": {
61
+ "$anchor": "DescriptionFacet",
62
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
63
+ "type": "object",
64
+ "required": [
65
+ "description"
66
+ ],
67
+ "properties": {
68
+ "description": {
69
+ "$ref": "#Description"
70
+ }
71
+ }
72
+ }
73
+ },
74
+ "DocumentationFacet": {
75
+ "identity": "TYPE-DocumentationFacet",
76
+ "name": "DocumentationFacet",
77
+ "description": "dummy-description",
78
+ "nucleusSchema": {
79
+ "$anchor": "DocumentationFacet",
80
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
81
+ "type": "object",
82
+ "allOf": [
83
+ {
84
+ "$ref": "#NameFacet"
85
+ },
86
+ {
87
+ "$ref": "#DescriptionFacet"
88
+ }
89
+ ]
90
+ }
91
+ },
92
+ "Uri": {
93
+ "identity": "TYPE-Uri",
94
+ "name": "Uri",
95
+ "description": "dummy-description",
96
+ "nucleusSchema": {
97
+ "$anchor": "Uri",
98
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
99
+ "type": "string",
100
+ "format": "uri"
101
+ }
102
+ },
103
+ "ResourceTypeIdentity": {
104
+ "identity": "TYPE-ResourceTypeIdentity",
105
+ "name": "ResourceTypeIdentity",
106
+ "description": "dummy-description",
107
+ "nucleusSchema": {
108
+ "$anchor": "ResourceTypeIdentity",
109
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
110
+ "type": "string",
111
+ "pattern": "^TYPE-.+$"
112
+ }
113
+ },
114
+ "ResourceType": {
115
+ "identity": "TYPE-ResourceType",
116
+ "name": "ResourceType",
117
+ "description": "dummy-description",
118
+ "nucleusSchema": {
119
+ "$anchor": "ResourceType",
120
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
121
+ "type": "object",
122
+ "required": [
123
+ "identity",
124
+ "nucleusSchema"
125
+ ],
126
+ "properties": {
127
+ "identity": {
128
+ "$ref": "#ResourceTypeIdentity"
129
+ },
130
+ "nucleusSchema": true,
131
+ "embeddingUriMap": {
132
+ "type": "object",
133
+ "propertyNames": {
134
+ "type": "string",
135
+ "pattern": "^EMBEDDING-.+$"
136
+ },
137
+ "additionalProperties": {
138
+ "$ref": "#Uri"
139
+ },
140
+ "minProperties": 1,
141
+ "$comment": "A ResourceType may specify a set of embedding models that convert the raw data (or one of its alternative representations) into vector embeddings. The build process enforces that the keys of this map are members of a set of predefined embedding models."
142
+ },
143
+ "generatorUriMap": {
144
+ "type": "object",
145
+ "propertyNames": {
146
+ "type": "string",
147
+ "pattern": "^GENERATOR-.+$"
148
+ },
149
+ "additionalProperties": {
150
+ "$ref": "#Uri"
151
+ },
152
+ "minProperties": 1,
153
+ "$comment": "A ResourceType may specify a set of generators that generate different representations of its instances from the raw file. A ToolProof Resource is always backed by a raw file. This is also true for the Resources (of type ResourceType) defined in this file! The build process enforces that the keys of this map are members of a set of predefined generators. GENERATOR-Json is an identifier for a generator that generates JSON data from the raw file. If the raw file is a JSON file, GENERATOR-Json is an implicit identity operation (i.e. an operation that does nothing) and must not be present in the map. A ResourceType may also specify other generators, such as GENERATOR-LeanTerm, which generates an instance (or 'term' in Lean jargon) of a corresponding Lean type from the raw file. ResourceTypes that specify GENERATOR-LeanTerm must also specify a corresponding GENERATOR-LeanType. While the term-version runs when data instances enter the ecosystem, the type-version runs when the ResourceType itself enters the ecosystem."
154
+ }
155
+ },
156
+ "allOf": [
157
+ {
158
+ "$ref": "#DocumentationFacet"
159
+ }
160
+ ]
161
+ }
162
+ },
163
+ "ResourceRoleIdentity": {
164
+ "identity": "TYPE-ResourceRoleIdentity",
165
+ "name": "ResourceRoleIdentity",
166
+ "description": "dummy-description",
167
+ "nucleusSchema": {
168
+ "$anchor": "ResourceRoleIdentity",
169
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
170
+ "type": "string",
171
+ "pattern": "^ROLE-.+$"
172
+ }
173
+ },
174
+ "ResourceRoleValue": {
175
+ "identity": "TYPE-ResourceRoleValue",
176
+ "name": "ResourceRoleValue",
177
+ "description": "dummy-description",
178
+ "nucleusSchema": {
179
+ "$anchor": "ResourceRoleValue",
180
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
181
+ "type": "object",
182
+ "allOf": [
183
+ {
184
+ "$comment": "A ResourceRole does not have a self-contained identity, as it is always defined in the context of a RoleMap. ResourceRoleValue uses the Value suffix to mean 'the value stored in this map' (RoleMap.additionalProperties).",
185
+ "required": [
186
+ "resourceTypeHandle"
187
+ ],
188
+ "properties": {
189
+ "resourceTypeHandle": {
190
+ "$ref": "#ResourceTypeIdentity"
191
+ }
192
+ }
193
+ },
194
+ {
195
+ "$ref": "#DocumentationFacet"
196
+ }
197
+ ]
198
+ },
199
+ "unevaluatedProperties": false
200
+ },
201
+ "RoleMap": {
202
+ "identity": "TYPE-RoleMap",
203
+ "name": "RoleMap",
204
+ "description": "dummy-description",
205
+ "nucleusSchema": {
206
+ "$anchor": "RoleMap",
207
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
208
+ "type": "object",
209
+ "propertyNames": {
210
+ "$ref": "#ResourceRoleIdentity"
211
+ },
212
+ "additionalProperties": {
213
+ "$ref": "#ResourceRoleValue"
214
+ }
215
+ }
216
+ },
217
+ "Error": {
218
+ "identity": "TYPE-Error",
219
+ "name": "Error",
220
+ "description": "dummy-description",
221
+ "nucleusSchema": {
222
+ "$anchor": "Error",
223
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
224
+ "type": "object",
225
+ "allOf": [
226
+ {
227
+ "$ref": "#DocumentationFacet"
228
+ },
229
+ {
230
+ "properties": {
231
+ "details": {
232
+ "type": "object"
233
+ }
234
+ }
235
+ }
236
+ ],
237
+ "unevaluatedProperties": false
238
+ }
239
+ },
240
+ "Roles": {
241
+ "identity": "TYPE-Roles",
242
+ "name": "Roles",
243
+ "description": "dummy-description",
244
+ "nucleusSchema": {
245
+ "$anchor": "Roles",
246
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
247
+ "type": "object",
248
+ "required": [
249
+ "inputMap",
250
+ "outputMap"
251
+ ],
252
+ "properties": {
253
+ "inputMap": {
254
+ "$ref": "#RoleMap"
255
+ },
256
+ "outputMap": {
257
+ "allOf": [
258
+ {
259
+ "$ref": "#RoleMap"
260
+ },
261
+ {
262
+ "type": "object",
263
+ "required": [
264
+ "ROLE-ErrorOutput"
265
+ ],
266
+ "properties": {
267
+ "ROLE-ErrorOutput": {
268
+ "type": "object",
269
+ "allOf": [
270
+ {
271
+ "$ref": "#ResourceRoleValue"
272
+ },
273
+ {
274
+ "required": [
275
+ "resourceTypeHandle",
276
+ "name",
277
+ "description"
278
+ ],
279
+ "properties": {
280
+ "resourceTypeHandle": {
281
+ "const": "TYPE-Error"
282
+ },
283
+ "name": {
284
+ "const": "ErrorOutput"
285
+ },
286
+ "description": {
287
+ "const": "Represents error outputs from job runs."
288
+ }
289
+ }
290
+ }
291
+ ]
292
+ }
293
+ }
294
+ }
295
+ ]
296
+ }
297
+ },
298
+ "unevaluatedProperties": false
299
+ }
300
+ },
301
+ "RolesFacet": {
302
+ "identity": "TYPE-RolesFacet",
303
+ "name": "RolesFacet",
304
+ "description": "dummy-description",
305
+ "nucleusSchema": {
306
+ "$anchor": "RolesFacet",
307
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
308
+ "type": "object",
309
+ "required": [
310
+ "roles"
311
+ ],
312
+ "properties": {
313
+ "roles": {
314
+ "$ref": "#Roles"
315
+ }
316
+ }
317
+ }
318
+ },
319
+ "JobIdentity": {
320
+ "identity": "TYPE-JobIdentity",
321
+ "name": "JobIdentity",
322
+ "description": "dummy-description",
323
+ "nucleusSchema": {
324
+ "$anchor": "JobIdentity",
325
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
326
+ "type": "string",
327
+ "pattern": "^JOB-.+$"
328
+ }
329
+ },
330
+ "Job": {
331
+ "identity": "TYPE-Job",
332
+ "name": "Job",
333
+ "description": "dummy-description",
334
+ "nucleusSchema": {
335
+ "$anchor": "Job",
336
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
337
+ "type": "object",
338
+ "required": [
339
+ "identity",
340
+ "implementationUri"
341
+ ],
342
+ "properties": {
343
+ "identity": {
344
+ "$ref": "#JobIdentity"
345
+ },
346
+ "implementationUri": {
347
+ "$comment": "Instances of a ResourceType that requires implementationUri are 'executable' ResourceTypes. TYPE-Job is the canonical executable ResourceType in the ecosystem.",
348
+ "$ref": "#Uri"
349
+ }
350
+ },
351
+ "allOf": [
352
+ {
353
+ "$ref": "#DocumentationFacet"
354
+ },
355
+ {
356
+ "$ref": "#RolesFacet"
357
+ }
358
+ ],
359
+ "unevaluatedProperties": false
360
+ }
361
+ },
362
+ "RoleBindingArray": {
363
+ "identity": "TYPE-RoleBindingArray",
364
+ "name": "RoleBindingArray",
365
+ "description": "dummy-description",
366
+ "nucleusSchema": {
367
+ "$anchor": "RoleBindingArray",
368
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
369
+ "type": "array",
370
+ "items": {
371
+ "$ref": "#ResourceRoleIdentity"
372
+ }
373
+ }
374
+ },
375
+ "RoleBindings": {
376
+ "identity": "TYPE-RoleBindings",
377
+ "name": "RoleBindings",
378
+ "description": "dummy-description",
379
+ "nucleusSchema": {
380
+ "$anchor": "RoleBindings",
381
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
382
+ "type": "object",
383
+ "required": [
384
+ "inputBindings",
385
+ "outputBindings"
386
+ ],
387
+ "properties": {
388
+ "inputBindings": {
389
+ "$ref": "#RoleBindingArray"
390
+ },
391
+ "outputBindings": {
392
+ "$ref": "#RoleBindingArray"
393
+ }
394
+ }
395
+ },
396
+ "unevaluatedProperties": false
397
+ },
398
+ "RoleBindingsFacet": {
399
+ "identity": "TYPE-RoleBindingsFacet",
400
+ "name": "RoleBindingsFacet",
401
+ "description": "dummy-description",
402
+ "nucleusSchema": {
403
+ "$anchor": "RoleBindingsFacet",
404
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
405
+ "type": "object",
406
+ "required": [
407
+ "roleBindings"
408
+ ],
409
+ "properties": {
410
+ "roleBindings": {
411
+ "$ref": "#RoleBindings"
412
+ }
413
+ }
414
+ }
415
+ },
416
+ "StepKind": {
417
+ "identity": "TYPE-StepKind",
418
+ "name": "StepKind",
419
+ "description": "dummy-description",
420
+ "nucleusSchema": {
421
+ "$anchor": "StepKind",
422
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
423
+ "type": "string",
424
+ "enum": [
425
+ "job",
426
+ "branch",
427
+ "while",
428
+ "for"
429
+ ]
430
+ }
431
+ },
432
+ "StepKindFacet": {
433
+ "identity": "TYPE-StepKindFacet",
434
+ "name": "StepKindFacet",
435
+ "description": "dummy-description",
436
+ "nucleusSchema": {
437
+ "$anchor": "StepKindFacet",
438
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
439
+ "type": "object",
440
+ "required": [
441
+ "stepKind"
442
+ ],
443
+ "properties": {
444
+ "stepKind": {
445
+ "$ref": "#StepKind"
446
+ }
447
+ }
448
+ }
449
+ },
450
+ "JobStepIdentity": {
451
+ "identity": "TYPE-JobStepIdentity",
452
+ "name": "JobStepIdentity",
453
+ "description": "dummy-description",
454
+ "nucleusSchema": {
455
+ "$anchor": "JobStepIdentity",
456
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
457
+ "type": "string",
458
+ "pattern": "^JOB_STEP-.+$"
459
+ }
460
+ },
461
+ "JobStep": {
462
+ "identity": "TYPE-JobStep",
463
+ "name": "JobStep",
464
+ "description": "dummy-description",
465
+ "nucleusSchema": {
466
+ "$anchor": "JobStep",
467
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
468
+ "type": "object",
469
+ "required": [
470
+ "identity",
471
+ "stepKind",
472
+ "jobHandle"
473
+ ],
474
+ "properties": {
475
+ "identity": {
476
+ "$ref": "#JobStepIdentity"
477
+ },
478
+ "stepKind": {
479
+ "const": "job"
480
+ },
481
+ "jobHandle": {
482
+ "$ref": "#JobIdentity"
483
+ }
484
+ },
485
+ "allOf": [
486
+ {
487
+ "$ref": "#StepKindFacet"
488
+ },
489
+ {
490
+ "$comment": "This will be overlayed dynamically to specify roleBindings corresponding to the roles of the underlying job.",
491
+ "$ref": "#RoleBindingsFacet"
492
+ }
493
+ ]
494
+ }
495
+ },
496
+ "Conditional": {
497
+ "identity": "TYPE-Conditional",
498
+ "name": "Conditional",
499
+ "description": "dummy-description",
500
+ "nucleusSchema": {
501
+ "$anchor": "Conditional",
502
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
503
+ "type": "object",
504
+ "required": [
505
+ "when",
506
+ "what"
507
+ ],
508
+ "properties": {
509
+ "when": {
510
+ "$ref": "#JobStep"
511
+ },
512
+ "what": {
513
+ "$ref": "#JobStep"
514
+ }
515
+ },
516
+ "unevaluatedProperties": false
517
+ }
518
+ },
519
+ "BranchStepIdentity": {
520
+ "identity": "TYPE-BranchStepIdentity",
521
+ "name": "BranchStepIdentity",
522
+ "description": "dummy-description",
523
+ "nucleusSchema": {
524
+ "$anchor": "BranchStepIdentity",
525
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
526
+ "type": "string",
527
+ "pattern": "^BRANCH_STEP-.+$"
528
+ }
529
+ },
530
+ "BranchStep": {
531
+ "identity": "TYPE-BranchStep",
532
+ "name": "BranchStep",
533
+ "description": "dummy-description",
534
+ "nucleusSchema": {
535
+ "$anchor": "BranchStep",
536
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
537
+ "type": "object",
538
+ "required": [
539
+ "identity",
540
+ "stepKind",
541
+ "cases"
542
+ ],
543
+ "properties": {
544
+ "identity": {
545
+ "$ref": "#BranchStepIdentity"
546
+ },
547
+ "stepKind": {
548
+ "const": "branch"
549
+ },
550
+ "cases": {
551
+ "type": "array",
552
+ "items": {
553
+ "$ref": "#Conditional"
554
+ },
555
+ "minItems": 1,
556
+ "uniqueItems": true
557
+ }
558
+ },
559
+ "allOf": [
560
+ {
561
+ "$ref": "#StepKindFacet"
562
+ }
563
+ ]
564
+ }
565
+ },
566
+ "WhileStepIdentity": {
567
+ "identity": "TYPE-WhileStepIdentity",
568
+ "name": "WhileStepIdentity",
569
+ "description": "dummy-description",
570
+ "nucleusSchema": {
571
+ "$anchor": "WhileStepIdentity",
572
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
573
+ "type": "string",
574
+ "pattern": "^WHILE_STEP-.+$"
575
+ }
576
+ },
577
+ "WhileStep": {
578
+ "identity": "TYPE-WhileStep",
579
+ "name": "WhileStep",
580
+ "description": "dummy-description",
581
+ "nucleusSchema": {
582
+ "$anchor": "WhileStep",
583
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
584
+ "type": "object",
585
+ "required": [
586
+ "identity",
587
+ "stepKind",
588
+ "case"
589
+ ],
590
+ "properties": {
591
+ "identity": {
592
+ "$ref": "#WhileStepIdentity"
593
+ },
594
+ "stepKind": {
595
+ "const": "while"
596
+ },
597
+ "case": {
598
+ "$ref": "#Conditional"
599
+ }
600
+ },
601
+ "allOf": [
602
+ {
603
+ "$ref": "#StepKindFacet"
604
+ }
605
+ ]
606
+ }
607
+ },
608
+ "ForStepIdentity": {
609
+ "identity": "TYPE-ForStepIdentity",
610
+ "name": "ForStepIdentity",
611
+ "description": "dummy-description",
612
+ "nucleusSchema": {
613
+ "$anchor": "ForStepIdentity",
614
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
615
+ "type": "string",
616
+ "pattern": "^FOR_STEP-.+$"
617
+ }
618
+ },
619
+ "ForStep": {
620
+ "identity": "TYPE-ForStep",
621
+ "name": "ForStep",
622
+ "description": "dummy-description",
623
+ "nucleusSchema": {
624
+ "$anchor": "ForStep",
625
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
626
+ "type": "object",
627
+ "required": [
628
+ "identity",
629
+ "stepKind",
630
+ "case"
631
+ ],
632
+ "properties": {
633
+ "identity": {
634
+ "$ref": "#ForStepIdentity"
635
+ },
636
+ "stepKind": {
637
+ "const": "for"
638
+ },
639
+ "case": {
640
+ "$ref": "#Conditional"
641
+ }
642
+ },
643
+ "allOf": [
644
+ {
645
+ "$ref": "#StepKindFacet"
646
+ }
647
+ ]
648
+ }
649
+ },
650
+ "StepIdentity": {
651
+ "identity": "TYPE-StepIdentity",
652
+ "name": "StepIdentity",
653
+ "description": "dummy-description",
654
+ "nucleusSchema": {
655
+ "$anchor": "StepIdentity",
656
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
657
+ "type": "object",
658
+ "oneOf": [
659
+ {
660
+ "$ref": "#JobStepIdentity"
661
+ },
662
+ {
663
+ "$ref": "#BranchStepIdentity"
664
+ },
665
+ {
666
+ "$ref": "#WhileStepIdentity"
667
+ },
668
+ {
669
+ "$ref": "#ForStepIdentity"
670
+ }
671
+ ]
672
+ }
673
+ },
674
+ "Step": {
675
+ "identity": "TYPE-Step",
676
+ "name": "Step",
677
+ "description": "dummy-description",
678
+ "nucleusSchema": {
679
+ "$anchor": "Step",
680
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
681
+ "type": "object",
682
+ "oneOf": [
683
+ {
684
+ "$ref": "#JobStep"
685
+ },
686
+ {
687
+ "$ref": "#BranchStep"
688
+ },
689
+ {
690
+ "$ref": "#WhileStep"
691
+ },
692
+ {
693
+ "$ref": "#ForStep"
694
+ }
695
+ ],
696
+ "unevaluatedProperties": false
697
+ }
698
+ },
699
+ "CreationContext": {
700
+ "identity": "TYPE-CreationContext",
701
+ "name": "CreationContext",
702
+ "description": "dummy-description",
703
+ "nucleusSchema": {
704
+ "$anchor": "CreationContext",
705
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
706
+ "type": "object",
707
+ "required": [
708
+ "resourceRoleHandle",
709
+ "jobStepHandle"
710
+ ],
711
+ "properties": {
712
+ "resourceRoleHandle": {
713
+ "$ref": "#ResourceRoleIdentity"
714
+ },
715
+ "jobStepHandle": {
716
+ "$ref": "#JobStepIdentity"
717
+ }
718
+ }
719
+ }
720
+ },
721
+ "CreationContextFacet": {
722
+ "identity": "TYPE-CreationContextFacet",
723
+ "name": "CreationContextFacet",
724
+ "description": "dummy-description",
725
+ "nucleusSchema": {
726
+ "$anchor": "CreationContextFacet",
727
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
728
+ "type": "object",
729
+ "required": [
730
+ "creationContext"
731
+ ],
732
+ "properties": {
733
+ "creationContext": {
734
+ "$ref": "#CreationContext"
735
+ }
736
+ }
737
+ }
738
+ },
739
+ "ResourceIdentity": {
740
+ "identity": "TYPE-ResourceIdentity",
741
+ "name": "ResourceIdentity",
742
+ "description": "dummy-description",
743
+ "nucleusSchema": {
744
+ "$anchor": "ResourceIdentity",
745
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
746
+ "type": "string",
747
+ "pattern": "^RESOURCE-.+$"
748
+ }
749
+ },
750
+ "ResourceShellBase": {
751
+ "identity": "TYPE-ResourceShellBase",
752
+ "name": "ResourceShellBase",
753
+ "description": "dummy-description",
754
+ "nucleusSchema": {
755
+ "$anchor": "ResourceShellBase",
756
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
757
+ "type": "object",
758
+ "required": [
759
+ "identity",
760
+ "resourceTypeHandle",
761
+ "resourceShellKind"
762
+ ],
763
+ "properties": {
764
+ "identity": {
765
+ "$ref": "#ResourceIdentity"
766
+ },
767
+ "resourceTypeHandle": {
768
+ "$ref": "#ResourceTypeIdentity"
769
+ },
770
+ "resourceShellKind": {
771
+ "$ref": "#ResourceShellKind"
772
+ }
773
+ }
774
+ }
775
+ },
776
+ "ResourceShellKind": {
777
+ "identity": "TYPE-ResourceShellKind",
778
+ "name": "ResourceShellKind",
779
+ "description": "dummy-description",
780
+ "nucleusSchema": {
781
+ "$anchor": "ResourceShellKind",
782
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
783
+ "type": "string",
784
+ "enum": [
785
+ "missing",
786
+ "inputPotential",
787
+ "outputPotential",
788
+ "materialized"
789
+ ]
790
+ }
791
+ },
792
+ "ResourceShellKindFacet": {
793
+ "identity": "TYPE-ResourceShellKindFacet",
794
+ "name": "ResourceShellKindFacet",
795
+ "description": "dummy-description",
796
+ "nucleusSchema": {
797
+ "$anchor": "ResourceShellKindFacet",
798
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
799
+ "type": "object",
800
+ "required": [
801
+ "resourceShellKind"
802
+ ],
803
+ "properties": {
804
+ "resourceShellKind": {
805
+ "$ref": "#ResourceShellKind"
806
+ }
807
+ }
808
+ }
809
+ },
810
+ "ShellMissing": {
811
+ "identity": "TYPE-ShellMissing",
812
+ "name": "ShellMissing",
813
+ "description": "dummy-description",
814
+ "nucleusSchema": {
815
+ "$anchor": "ShellMissing",
816
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
817
+ "type": "object",
818
+ "required": [
819
+ "resourceShellKind"
820
+ ],
821
+ "properties": {
822
+ "resourceShellKind": {
823
+ "const": "missing"
824
+ }
825
+ },
826
+ "allOf": [
827
+ {
828
+ "$ref": "#ResourceShellBase"
829
+ },
830
+ {
831
+ "$ref": "#ResourceShellKindFacet"
832
+ }
833
+ ],
834
+ "unevaluatedProperties": false
835
+ }
836
+ },
837
+ "ShellInputPotential": {
838
+ "identity": "TYPE-ShellInputPotential",
839
+ "name": "ShellInputPotential",
840
+ "description": "dummy-description",
841
+ "nucleusSchema": {
842
+ "$anchor": "ShellInputPotential",
843
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
844
+ "type": "object",
845
+ "required": [
846
+ "resourceShellKind"
847
+ ],
848
+ "properties": {
849
+ "resourceShellKind": {
850
+ "const": "inputPotential"
851
+ }
852
+ },
853
+ "allOf": [
854
+ {
855
+ "$ref": "#ResourceShellBase"
856
+ },
857
+ {
858
+ "$ref": "#CreationContextFacet"
859
+ },
860
+ {
861
+ "$ref": "#ResourceShellKindFacet"
862
+ }
863
+ ],
864
+ "unevaluatedProperties": false
865
+ }
866
+ },
867
+ "ShellOutputPotential": {
868
+ "identity": "TYPE-ShellOutputPotential",
869
+ "name": "ShellOutputPotential",
870
+ "description": "dummy-description",
871
+ "nucleusSchema": {
872
+ "$anchor": "ShellOutputPotential",
873
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
874
+ "type": "object",
875
+ "required": [
876
+ "resourceShellKind"
877
+ ],
878
+ "properties": {
879
+ "resourceShellKind": {
880
+ "const": "outputPotential"
881
+ }
882
+ },
883
+ "allOf": [
884
+ {
885
+ "$ref": "#ResourceShellBase"
886
+ },
887
+ {
888
+ "$ref": "#CreationContextFacet"
889
+ },
890
+ {
891
+ "$ref": "#ResourceShellKindFacet"
892
+ }
893
+ ],
894
+ "unevaluatedProperties": false
895
+ }
896
+ },
897
+ "Timestamp": {
898
+ "identity": "TYPE-Timestamp",
899
+ "name": "Timestamp",
900
+ "description": "dummy-description",
901
+ "nucleusSchema": {
902
+ "$anchor": "Timestamp",
903
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
904
+ "type": "string",
905
+ "format": "date-time"
906
+ }
907
+ },
908
+ "TimestampFacet": {
909
+ "identity": "TYPE-TimestampFacet",
910
+ "name": "TimestampFacet",
911
+ "description": "dummy-description",
912
+ "nucleusSchema": {
913
+ "$anchor": "TimestampFacet",
914
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
915
+ "type": "object",
916
+ "required": [
917
+ "timestamp"
918
+ ],
919
+ "properties": {
920
+ "timestamp": {
921
+ "$ref": "#Timestamp"
922
+ }
923
+ }
924
+ }
925
+ },
926
+ "Path": {
927
+ "identity": "TYPE-Path",
928
+ "name": "Path",
929
+ "description": "dummy-description",
930
+ "nucleusSchema": {
931
+ "$anchor": "Path",
932
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
933
+ "type": "string",
934
+ "format": "uri-reference"
935
+ }
936
+ },
937
+ "PathFacet": {
938
+ "identity": "TYPE-PathFacet",
939
+ "name": "PathFacet",
940
+ "description": "dummy-description",
941
+ "nucleusSchema": {
942
+ "$anchor": "PathFacet",
943
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
944
+ "type": "object",
945
+ "required": [
946
+ "path"
947
+ ],
948
+ "properties": {
949
+ "path": {
950
+ "$ref": "#Path"
951
+ }
952
+ }
953
+ }
954
+ },
955
+ "ShellMaterializedBase": {
956
+ "identity": "TYPE-ShellMaterializedBase",
957
+ "name": "ShellMaterializedBase",
958
+ "description": "dummy-description",
959
+ "nucleusSchema": {
960
+ "$anchor": "ShellMaterializedBase",
961
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
962
+ "type": "object",
963
+ "required": [
964
+ "version",
965
+ "resourceShellKind"
966
+ ],
967
+ "properties": {
968
+ "version": {
969
+ "const": 1
970
+ },
971
+ "resourceShellKind": {
972
+ "const": "materialized"
973
+ }
974
+ },
975
+ "allOf": [
976
+ {
977
+ "$ref": "#ResourceShellBase"
978
+ },
979
+ {
980
+ "$ref": "#CreationContextFacet"
981
+ },
982
+ {
983
+ "$ref": "#ResourceShellKindFacet"
984
+ },
985
+ {
986
+ "$ref": "#TimestampFacet"
987
+ },
988
+ {
989
+ "$ref": "#PathFacet"
990
+ }
991
+ ]
992
+ }
993
+ },
994
+ "ShellMaterialized": {
995
+ "identity": "TYPE-ShellMaterialized",
996
+ "name": "ShellMaterialized",
997
+ "description": "dummy-description",
998
+ "nucleusSchema": {
999
+ "$anchor": "ShellMaterialized",
1000
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1001
+ "type": "object",
1002
+ "$ref": "#ShellMaterializedBase",
1003
+ "unevaluatedProperties": false
1004
+ }
1005
+ },
1006
+ "ResourceMissing": {
1007
+ "identity": "TYPE-ResourceMissing",
1008
+ "name": "ResourceMissing",
1009
+ "description": "dummy-description",
1010
+ "nucleusSchema": {
1011
+ "$anchor": "ResourceMissing",
1012
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1013
+ "type": "object",
1014
+ "$ref": "#ShellMissing",
1015
+ "unevaluatedProperties": false
1016
+ }
1017
+ },
1018
+ "ResourceInputPotential": {
1019
+ "identity": "TYPE-ResourceInputPotential",
1020
+ "name": "ResourceInputPotential",
1021
+ "description": "dummy-description",
1022
+ "nucleusSchema": {
1023
+ "$anchor": "ResourceInputPotential",
1024
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1025
+ "type": "object",
1026
+ "$ref": "#ShellInputPotential",
1027
+ "unevaluatedProperties": false
1028
+ }
1029
+ },
1030
+ "ResourceOutputPotential": {
1031
+ "identity": "TYPE-ResourceOutputPotential",
1032
+ "name": "ResourceOutputPotential",
1033
+ "description": "dummy-description",
1034
+ "nucleusSchema": {
1035
+ "$anchor": "ResourceOutputPotential",
1036
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1037
+ "type": "object",
1038
+ "$ref": "#ShellOutputPotential",
1039
+ "unevaluatedProperties": false
1040
+ }
1041
+ },
1042
+ "ResourcePotential": {
1043
+ "identity": "TYPE-ResourcePotential",
1044
+ "name": "ResourcePotential",
1045
+ "description": "dummy-description",
1046
+ "nucleusSchema": {
1047
+ "$anchor": "ResourcePotential",
1048
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1049
+ "type": "object",
1050
+ "oneOf": [
1051
+ {
1052
+ "$ref": "#ResourceMissing"
1053
+ },
1054
+ {
1055
+ "$ref": "#ResourceInputPotential"
1056
+ },
1057
+ {
1058
+ "$ref": "#ResourceOutputPotential"
1059
+ }
1060
+ ],
1061
+ "unevaluatedProperties": false
1062
+ }
1063
+ },
1064
+ "JsonData": {
1065
+ "identity": "TYPE-JsonData",
1066
+ "name": "JsonData",
1067
+ "description": "dummy-description",
1068
+ "nucleusSchema": {
1069
+ "$anchor": "JsonData",
1070
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1071
+ "oneOf": [
1072
+ {
1073
+ "type": "null"
1074
+ },
1075
+ {
1076
+ "type": "boolean"
1077
+ },
1078
+ {
1079
+ "type": "number"
1080
+ },
1081
+ {
1082
+ "type": "string"
1083
+ },
1084
+ {
1085
+ "type": "array",
1086
+ "items": {
1087
+ "$ref": "#JsonData"
1088
+ }
1089
+ },
1090
+ {
1091
+ "type": "object",
1092
+ "additionalProperties": {
1093
+ "$ref": "#JsonData"
1094
+ }
1095
+ }
1096
+ ]
1097
+ }
1098
+ },
1099
+ "Nucleus": {
1100
+ "identity": "TYPE-Nucleus",
1101
+ "name": "Nucleus",
1102
+ "description": "dummy-description",
1103
+ "nucleusSchema": {
1104
+ "$anchor": "Nucleus",
1105
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1106
+ "type": "object",
1107
+ "additionalProperties": {
1108
+ "$ref": "#JsonData"
1109
+ }
1110
+ }
1111
+ },
1112
+ "NucleusFacet": {
1113
+ "identity": "TYPE-NucleusFacet",
1114
+ "name": "NucleusFacet",
1115
+ "description": "dummy-description",
1116
+ "nucleusSchema": {
1117
+ "$anchor": "NucleusFacet",
1118
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1119
+ "type": "object",
1120
+ "required": [
1121
+ "nucleus"
1122
+ ],
1123
+ "properties": {
1124
+ "nucleus": true
1125
+ }
1126
+ }
1127
+ },
1128
+ "Resource": {
1129
+ "identity": "TYPE-Resource",
1130
+ "name": "Resource",
1131
+ "description": "dummy-description",
1132
+ "nucleusSchema": {
1133
+ "$anchor": "Resource",
1134
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1135
+ "type": "object",
1136
+ "allOf": [
1137
+ {
1138
+ "$ref": "#ShellMaterializedBase"
1139
+ },
1140
+ {
1141
+ "$comment": "This will be overlayed dynamically to match the data structure of the underlying ResourceType's nucleusSchema.",
1142
+ "$ref": "#NucleusFacet"
1143
+ }
1144
+ ],
1145
+ "unevaluatedProperties": false
1146
+ }
1147
+ },
1148
+ "JobStepSocket": {
1149
+ "identity": "TYPE-JobStepSocket",
1150
+ "name": "JobStepSocket",
1151
+ "description": "dummy-description",
1152
+ "nucleusSchema": {
1153
+ "$anchor": "JobStepSocket",
1154
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1155
+ "type": "object",
1156
+ "propertyNames": {
1157
+ "$ref": "#ResourceRoleIdentity"
1158
+ },
1159
+ "additionalProperties": {
1160
+ "oneOf": [
1161
+ {
1162
+ "$ref": "#ResourcePotential"
1163
+ },
1164
+ {
1165
+ "$ref": "#Resource"
1166
+ }
1167
+ ]
1168
+ }
1169
+ }
1170
+ },
1171
+ "StrategyState": {
1172
+ "identity": "TYPE-StrategyState",
1173
+ "name": "StrategyState",
1174
+ "description": "dummy-description",
1175
+ "nucleusSchema": {
1176
+ "$anchor": "StrategyState",
1177
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1178
+ "type": "object",
1179
+ "propertyNames": {
1180
+ "$ref": "#JobStepIdentity"
1181
+ },
1182
+ "additionalProperties": {
1183
+ "$ref": "#JobStepSocket"
1184
+ }
1185
+ }
1186
+ },
1187
+ "StrategyStateFacet": {
1188
+ "identity": "TYPE-StrategyStateFacet",
1189
+ "name": "StrategyStateFacet",
1190
+ "description": "dummy-description",
1191
+ "nucleusSchema": {
1192
+ "$anchor": "StrategyStateFacet",
1193
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1194
+ "type": "object",
1195
+ "required": [
1196
+ "strategyState"
1197
+ ],
1198
+ "properties": {
1199
+ "strategyState": {
1200
+ "$ref": "#StrategyState"
1201
+ }
1202
+ }
1203
+ }
1204
+ },
1205
+ "StepArray": {
1206
+ "identity": "TYPE-StepArray",
1207
+ "name": "StepArray",
1208
+ "description": "dummy-description",
1209
+ "nucleusSchema": {
1210
+ "$anchor": "StepArray",
1211
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1212
+ "type": "array",
1213
+ "items": {
1214
+ "$ref": "#Step"
1215
+ },
1216
+ "uniqueItems": true
1217
+ }
1218
+ },
1219
+ "StepsFacet": {
1220
+ "identity": "TYPE-StepsFacet",
1221
+ "name": "StepsFacet",
1222
+ "description": "dummy-description",
1223
+ "nucleusSchema": {
1224
+ "$anchor": "StepsFacet",
1225
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1226
+ "type": "object",
1227
+ "required": [
1228
+ "steps"
1229
+ ],
1230
+ "properties": {
1231
+ "steps": {
1232
+ "$ref": "#StepArray"
1233
+ }
1234
+ }
1235
+ }
1236
+ },
1237
+ "RawStrategy": {
1238
+ "identity": "TYPE-RawStrategy",
1239
+ "name": "RawStrategy",
1240
+ "description": "dummy-description",
1241
+ "nucleusSchema": {
1242
+ "$anchor": "RawStrategy",
1243
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1244
+ "type": "object",
1245
+ "allOf": [
1246
+ {
1247
+ "$ref": "#StepsFacet"
1248
+ },
1249
+ {
1250
+ "$ref": "#StrategyStateFacet"
1251
+ }
1252
+ ],
1253
+ "unevaluatedProperties": false
1254
+ }
1255
+ },
1256
+ "RunnableStrategyIdentity": {
1257
+ "identity": "TYPE-RunnableStrategyIdentity",
1258
+ "name": "RunnableStrategyIdentity",
1259
+ "description": "dummy-description",
1260
+ "nucleusSchema": {
1261
+ "$anchor": "RunnableStrategyIdentity",
1262
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1263
+ "type": "string",
1264
+ "pattern": "^RUNNABLE_STRATEGY-.+$"
1265
+ }
1266
+ },
1267
+ "RunnableStrategyStatus": {
1268
+ "identity": "TYPE-RunnableStrategyStatus",
1269
+ "name": "RunnableStrategyStatus",
1270
+ "description": "dummy-description",
1271
+ "nucleusSchema": {
1272
+ "$anchor": "RunnableStrategyStatus",
1273
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1274
+ "type": "string",
1275
+ "enum": [
1276
+ "pending",
1277
+ "running",
1278
+ "completed",
1279
+ "failed",
1280
+ "cancelled"
1281
+ ]
1282
+ }
1283
+ },
1284
+ "RunnableStrategyContext": {
1285
+ "identity": "TYPE-RunnableStrategyContext",
1286
+ "name": "RunnableStrategyContext",
1287
+ "description": "dummy-description",
1288
+ "nucleusSchema": {
1289
+ "$anchor": "RunnableStrategyContext",
1290
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1291
+ "type": "object",
1292
+ "required": [
1293
+ "status"
1294
+ ],
1295
+ "properties": {
1296
+ "status": {
1297
+ "$ref": "#RunnableStrategyStatus"
1298
+ },
1299
+ "startedAt": {
1300
+ "$ref": "#Timestamp"
1301
+ },
1302
+ "completedAt": {
1303
+ "$ref": "#Timestamp"
1304
+ }
1305
+ },
1306
+ "unevaluatedProperties": false
1307
+ }
1308
+ },
1309
+ "StrategyThreadIdentity": {
1310
+ "identity": "TYPE-StrategyThreadIdentity",
1311
+ "name": "StrategyThreadIdentity",
1312
+ "description": "dummy-description",
1313
+ "nucleusSchema": {
1314
+ "$anchor": "StrategyThreadIdentity",
1315
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1316
+ "type": "string",
1317
+ "pattern": "^STRATEGY_THREAD-.+$"
1318
+ }
1319
+ },
1320
+ "StrategyThreadMap": {
1321
+ "identity": "TYPE-StrategyThreadMap",
1322
+ "name": "StrategyThreadMap",
1323
+ "description": "dummy-description",
1324
+ "nucleusSchema": {
1325
+ "$anchor": "StrategyThreadMap",
1326
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1327
+ "type": "object",
1328
+ "propertyNames": {
1329
+ "$ref": "#StrategyThreadIdentity"
1330
+ },
1331
+ "additionalProperties": {
1332
+ "$ref": "#StepArray"
1333
+ },
1334
+ "$comment": "Each thread contains an array of steps, allowing for sequential execution within a thread while supporting parallel execution across multiple threads."
1335
+ }
1336
+ },
1337
+ "StrategyThreadMapFacet": {
1338
+ "identity": "TYPE-StrategyThreadMapFacet",
1339
+ "name": "StrategyThreadMapFacet",
1340
+ "description": "dummy-description",
1341
+ "nucleusSchema": {
1342
+ "$anchor": "StrategyThreadMapFacet",
1343
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1344
+ "type": "object",
1345
+ "required": [
1346
+ "strategyThreadMap"
1347
+ ],
1348
+ "properties": {
1349
+ "strategyThreadMap": {
1350
+ "$ref": "#StrategyThreadMap"
1351
+ }
1352
+ }
1353
+ }
1354
+ },
1355
+ "RunnableStrategy": {
1356
+ "identity": "TYPE-RunnableStrategy",
1357
+ "name": "RunnableStrategy",
1358
+ "description": "dummy-description",
1359
+ "nucleusSchema": {
1360
+ "$anchor": "RunnableStrategy",
1361
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1362
+ "type": "object",
1363
+ "required": [
1364
+ "identity",
1365
+ "runnableStrategyContext"
1366
+ ],
1367
+ "properties": {
1368
+ "identity": {
1369
+ "$ref": "#RunnableStrategyIdentity"
1370
+ },
1371
+ "runnableStrategyContext": {
1372
+ "$ref": "#RunnableStrategyContext"
1373
+ }
1374
+ },
1375
+ "allOf": [
1376
+ {
1377
+ "$comment": "The Engine runs jobs specified by steps in strategyThreadMap. The Engine also injects repeted steps when encountering loops.",
1378
+ "$ref": "#StrategyThreadMapFacet"
1379
+ },
1380
+ {
1381
+ "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts inputPotential and outputPotential Resources upon step injections.",
1382
+ "$ref": "#StrategyStateFacet"
1383
+ }
1384
+ ],
1385
+ "unevaluatedProperties": false
1386
+ }
1387
+ },
1388
+ "StrategyStateDelta": {
1389
+ "identity": "TYPE-StrategyStateDelta",
1390
+ "name": "StrategyStateDelta",
1391
+ "description": "dummy-description",
1392
+ "nucleusSchema": {
1393
+ "$anchor": "StrategyStateDelta",
1394
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1395
+ "type": "object",
1396
+ "required": [
1397
+ "strategyStateUpdate"
1398
+ ],
1399
+ "properties": {
1400
+ "strategyStateUpdate": {
1401
+ "$ref": "#StrategyState"
1402
+ }
1403
+ }
1404
+ }
1405
+ },
1406
+ "RunnableStrategyUpdate": {
1407
+ "identity": "TYPE-RunnableStrategyUpdate",
1408
+ "name": "RunnableStrategyUpdate",
1409
+ "description": "dummy-description",
1410
+ "nucleusSchema": {
1411
+ "$anchor": "RunnableStrategyUpdate",
1412
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1413
+ "type": "object",
1414
+ "required": [
1415
+ "runnableStrategyHandle"
1416
+ ],
1417
+ "properties": {
1418
+ "runnableStrategyHandle": {
1419
+ "$ref": "#RunnableStrategyIdentity"
1420
+ }
1421
+ },
1422
+ "allOf": [
1423
+ {
1424
+ "$ref": "#StrategyStateDelta"
1425
+ }
1426
+ ],
1427
+ "unevaluatedProperties": false
1428
+ }
1429
+ },
1430
+ "RunEventCounters": {
1431
+ "identity": "TYPE-RunEventCounters",
1432
+ "name": "RunEventCounters",
1433
+ "description": "dummy-description",
1434
+ "nucleusSchema": {
1435
+ "$anchor": "RunEventCounters",
1436
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1437
+ "type": "object",
1438
+ "properties": {
1439
+ "stepCounterAfter": {
1440
+ "type": "integer"
1441
+ },
1442
+ "iterationCounterAfter": {
1443
+ "type": "integer"
1444
+ }
1445
+ }
1446
+ }
1447
+ },
1448
+ "RunEventStepMetadata": {
1449
+ "identity": "TYPE-RunEventStepMetadata",
1450
+ "name": "RunEventStepMetadata",
1451
+ "description": "dummy-description",
1452
+ "nucleusSchema": {
1453
+ "$anchor": "RunEventStepMetadata",
1454
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1455
+ "type": "object",
1456
+ "required": [
1457
+ "stepHandle",
1458
+ "stepKind",
1459
+ "threadStepIndex"
1460
+ ],
1461
+ "properties": {
1462
+ "stepHandle": {
1463
+ "$ref": "#StepIdentity"
1464
+ },
1465
+ "stepKind": {
1466
+ "$ref": "#StepKind"
1467
+ },
1468
+ "threadStepIndex": {
1469
+ "type": "integer"
1470
+ }
1471
+ }
1472
+ }
1473
+ },
1474
+ "RunEventUpdates": {
1475
+ "identity": "TYPE-RunEventUpdates",
1476
+ "name": "RunEventUpdates",
1477
+ "description": "dummy-description",
1478
+ "nucleusSchema": {
1479
+ "$anchor": "RunEventUpdates",
1480
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1481
+ "type": "object",
1482
+ "properties": {
1483
+ "stepsMutation": {
1484
+ "type": "object",
1485
+ "required": [
1486
+ "insertAt",
1487
+ "inserted"
1488
+ ],
1489
+ "properties": {
1490
+ "insertAt": {
1491
+ "type": "integer"
1492
+ },
1493
+ "inserted": {
1494
+ "$ref": "#StepArray"
1495
+ }
1496
+ }
1497
+ },
1498
+ "interruptData": {
1499
+ "$comment": "Kept permissive; the engine may evolve interrupt payloads.",
1500
+ "type": [
1501
+ "object",
1502
+ "null"
1503
+ ]
1504
+ }
1505
+ },
1506
+ "allOf": [
1507
+ {
1508
+ "$ref": "#StrategyStateDelta"
1509
+ }
1510
+ ]
1511
+ }
1512
+ },
1513
+ "RunEventKind": {
1514
+ "identity": "TYPE-RunEventKind",
1515
+ "name": "RunEventKind",
1516
+ "description": "dummy-description",
1517
+ "nucleusSchema": {
1518
+ "$anchor": "RunEventKind",
1519
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1520
+ "type": "string",
1521
+ "enum": [
1522
+ "graph_start",
1523
+ "tick",
1524
+ "interrupt",
1525
+ "graph_end"
1526
+ ]
1527
+ }
1528
+ },
1529
+ "RunEventBase": {
1530
+ "identity": "TYPE-RunEventBase",
1531
+ "name": "RunEventBase",
1532
+ "description": "dummy-description",
1533
+ "nucleusSchema": {
1534
+ "$anchor": "RunEventBase",
1535
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1536
+ "type": "object",
1537
+ "required": [
1538
+ "runEventKind",
1539
+ "runnableStrategyHandle",
1540
+ "strategyThreadHandle",
1541
+ "createdAt",
1542
+ "nodeName",
1543
+ "eventSeq"
1544
+ ],
1545
+ "properties": {
1546
+ "runEventKind": {
1547
+ "$ref": "#RunEventKind"
1548
+ },
1549
+ "runnableStrategyHandle": {
1550
+ "$ref": "#RunnableStrategyIdentity"
1551
+ },
1552
+ "strategyThreadHandle": {
1553
+ "$ref": "#StrategyThreadIdentity"
1554
+ },
1555
+ "createdAt": {
1556
+ "$ref": "#Timestamp"
1557
+ },
1558
+ "nodeName": {
1559
+ "type": "string"
1560
+ },
1561
+ "eventSeq": {
1562
+ "type": "integer"
1563
+ },
1564
+ "counters": {
1565
+ "$ref": "#RunEventCounters"
1566
+ },
1567
+ "stepMetadata": {
1568
+ "$ref": "#RunEventStepMetadata"
1569
+ },
1570
+ "updates": {
1571
+ "$ref": "#RunEventUpdates"
1572
+ }
1573
+ }
1574
+ }
1575
+ },
1576
+ "GraphStartRunEvent": {
1577
+ "identity": "TYPE-GraphStartRunEvent",
1578
+ "name": "GraphStartRunEvent",
1579
+ "description": "dummy-description",
1580
+ "nucleusSchema": {
1581
+ "$anchor": "GraphStartRunEvent",
1582
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1583
+ "allOf": [
1584
+ {
1585
+ "$ref": "#RunEventBase"
1586
+ },
1587
+ {
1588
+ "type": "object",
1589
+ "required": [
1590
+ "runnableStrategySeed"
1591
+ ],
1592
+ "properties": {
1593
+ "runEventKind": {
1594
+ "const": "graph_start"
1595
+ },
1596
+ "runnableStrategySeed": {
1597
+ "$ref": "#RunnableStrategy"
1598
+ }
1599
+ }
1600
+ }
1601
+ ]
1602
+ }
1603
+ },
1604
+ "TickRunEvent": {
1605
+ "identity": "TYPE-TickRunEvent",
1606
+ "name": "TickRunEvent",
1607
+ "description": "dummy-description",
1608
+ "nucleusSchema": {
1609
+ "$anchor": "TickRunEvent",
1610
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1611
+ "allOf": [
1612
+ {
1613
+ "$ref": "#RunEventBase"
1614
+ },
1615
+ {
1616
+ "type": "object",
1617
+ "properties": {
1618
+ "runEventKind": {
1619
+ "const": "tick"
1620
+ }
1621
+ }
1622
+ }
1623
+ ]
1624
+ }
1625
+ },
1626
+ "InterruptRunEvent": {
1627
+ "identity": "TYPE-InterruptRunEvent",
1628
+ "name": "InterruptRunEvent",
1629
+ "description": "dummy-description",
1630
+ "nucleusSchema": {
1631
+ "$anchor": "InterruptRunEvent",
1632
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1633
+ "allOf": [
1634
+ {
1635
+ "$ref": "#RunEventBase"
1636
+ },
1637
+ {
1638
+ "type": "object",
1639
+ "properties": {
1640
+ "runEventKind": {
1641
+ "const": "interrupt"
1642
+ }
1643
+ }
1644
+ }
1645
+ ]
1646
+ }
1647
+ },
1648
+ "GraphEndRunEvent": {
1649
+ "identity": "TYPE-GraphEndRunEvent",
1650
+ "name": "GraphEndRunEvent",
1651
+ "description": "dummy-description",
1652
+ "nucleusSchema": {
1653
+ "$anchor": "GraphEndRunEvent",
1654
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1655
+ "allOf": [
1656
+ {
1657
+ "$ref": "#RunEventBase"
1658
+ },
1659
+ {
1660
+ "type": "object",
1661
+ "properties": {
1662
+ "runEventKind": {
1663
+ "const": "graph_end"
1664
+ }
1665
+ }
1666
+ }
1667
+ ]
1668
+ }
1669
+ },
1670
+ "RunEvent": {
1671
+ "identity": "TYPE-RunEvent",
1672
+ "name": "RunEvent",
1673
+ "description": "dummy-description",
1674
+ "nucleusSchema": {
1675
+ "$anchor": "RunEvent",
1676
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1677
+ "type": "object",
1678
+ "oneOf": [
1679
+ {
1680
+ "$ref": "#GraphStartRunEvent"
1681
+ },
1682
+ {
1683
+ "$ref": "#TickRunEvent"
1684
+ },
1685
+ {
1686
+ "$ref": "#InterruptRunEvent"
1687
+ },
1688
+ {
1689
+ "$ref": "#GraphEndRunEvent"
1690
+ }
1691
+ ]
1692
+ }
1693
+ },
1694
+ "StrategyRunIdentity": {
1695
+ "identity": "TYPE-StrategyRunIdentity",
1696
+ "name": "StrategyRunIdentity",
1697
+ "description": "dummy-description",
1698
+ "nucleusSchema": {
1699
+ "$anchor": "StrategyRunIdentity",
1700
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1701
+ "type": "string",
1702
+ "pattern": "^STRATEGY_RUN-.+$"
1703
+ }
1704
+ },
1705
+ "StrategyRun": {
1706
+ "identity": "TYPE-StrategyRun",
1707
+ "name": "StrategyRun",
1708
+ "description": "dummy-description",
1709
+ "nucleusSchema": {
1710
+ "$anchor": "StrategyRun",
1711
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1712
+ "type": "object",
1713
+ "required": [
1714
+ "identity",
1715
+ "runnableStrategyHandle",
1716
+ "recordedAt",
1717
+ "runEvents"
1718
+ ],
1719
+ "properties": {
1720
+ "identity": {
1721
+ "$ref": "#StrategyRunIdentity"
1722
+ },
1723
+ "runnableStrategyHandle": {
1724
+ "$comment": "Could be derived from the first event but useful for indexing.",
1725
+ "$ref": "#RunnableStrategyIdentity"
1726
+ },
1727
+ "recordedAt": {
1728
+ "$ref": "#Timestamp"
1729
+ },
1730
+ "runEvents": {
1731
+ "type": "array",
1732
+ "items": {
1733
+ "$ref": "#RunEvent"
1734
+ }
1735
+ }
1736
+ },
1737
+ "unevaluatedProperties": false
1738
+ }
1739
+ },
1740
+ "GoalIdentity": {
1741
+ "identity": "TYPE-GoalIdentity",
1742
+ "name": "GoalIdentity",
1743
+ "description": "dummy-description",
1744
+ "nucleusSchema": {
1745
+ "$anchor": "GoalIdentity",
1746
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1747
+ "type": "string",
1748
+ "pattern": "^GOAL-.+$"
1749
+ }
1750
+ },
1751
+ "Goal": {
1752
+ "identity": "TYPE-Goal",
1753
+ "name": "Goal",
1754
+ "description": "dummy-description",
1755
+ "nucleusSchema": {
1756
+ "$anchor": "Goal",
1757
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1758
+ "type": "object",
1759
+ "required": [
1760
+ "identity",
1761
+ "target"
1762
+ ],
1763
+ "properties": {
1764
+ "identity": {
1765
+ "$ref": "#GoalIdentity"
1766
+ },
1767
+ "target": {
1768
+ "type": "integer",
1769
+ "minimum": 0
1770
+ },
1771
+ "disallowedJobs": {
1772
+ "type": "array",
1773
+ "items": {
1774
+ "$ref": "#JobIdentity"
1775
+ }
1776
+ },
1777
+ "disallowedSequences": {
1778
+ "type": "array",
1779
+ "items": {
1780
+ "type": "array",
1781
+ "items": {
1782
+ "$ref": "#JobIdentity"
1783
+ }
1784
+ }
1785
+ },
1786
+ "minSteps": {
1787
+ "type": "integer",
1788
+ "minimum": 1
1789
+ },
1790
+ "maxSteps": {
1791
+ "type": "integer",
1792
+ "minimum": 1
1793
+ }
1794
+ },
1795
+ "unevaluatedProperties": false
1796
+ }
1797
+ },
1798
+ "Natural": {
1799
+ "identity": "TYPE-Natural",
1800
+ "name": "Natural",
1801
+ "description": "dummy-description",
1802
+ "nucleusSchema": {
1803
+ "$anchor": "Natural",
1804
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1805
+ "type": "object",
1806
+ "required": [
1807
+ "identity"
1808
+ ],
1809
+ "properties": {
1810
+ "identity": {
1811
+ "$ref": "#/$defs/NaturalIdentity"
1812
+ }
1813
+ },
1814
+ "$defs": {
1815
+ "NaturalIdentity": {
1816
+ "type": "integer"
1817
+ }
1818
+ },
1819
+ "additionalProperties": false
1820
+ }
1821
+ },
1822
+ "Boolean": {
1823
+ "identity": "TYPE-Boolean",
1824
+ "name": "Boolean",
1825
+ "description": "dummy-description",
1826
+ "nucleusSchema": {
1827
+ "$anchor": "Boolean",
1828
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1829
+ "type": "object",
1830
+ "required": [
1831
+ "identity"
1832
+ ],
1833
+ "properties": {
1834
+ "identity": {
1835
+ "$ref": "#/$defs/BooleanIdentity"
1836
+ }
1837
+ },
1838
+ "$defs": {
1839
+ "BooleanIdentity": {
1840
+ "type": "boolean"
1841
+ }
1842
+ },
1843
+ "additionalProperties": false
1844
+ }
1845
+ }
1846
+ }
1847
+ }
1834
1848
  }