@toolproof-core/schema 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/types/standalone/Resource_Genesis.d.ts +3 -0
- package/dist/generated/types/standalone/Resource_Job.d.ts +3 -0
- package/dist/generated/types/standalone/Resource_RawStrategy.d.ts +3 -0
- package/dist/generated/types/standalone/Resource_ResourceType.d.ts +3 -0
- package/dist/generated/types/standalone/Resource_RunnableStrategy.d.ts +3 -0
- package/dist/generated/types/types.d.ts +487 -548
- package/dist/scripts/_lib/config.d.ts +12 -6
- package/dist/scripts/_lib/config.js +33 -15
- package/dist/scripts/{extractSchemas.js → extractSchemasFromResourceTypeShells.js} +14 -27
- package/dist/scripts/generateDependencies.js +2 -2
- package/dist/scripts/generateSchemaShims.js +22 -4
- package/dist/scripts/{extractSubSchemaWithDefs.js → generateStandaloneSchema.js} +12 -34
- package/dist/scripts/{generateResourceTypeType.js → generateStandaloneType.js} +23 -14
- package/dist/scripts/generateTypes.js +1 -1
- package/dist/scripts/{rewriteAnchors.js → normalizeAnchorsToPointers.js} +2 -2
- package/dist/scripts/{generateResourceShells.js → wrapResourceTypesWithResourceShells.js} +12 -34
- package/package.json +15 -14
- package/src/Genesis.json +1999 -2042
- package/src/generated/{dependencies.json → dependencyMap.json} +207 -214
- package/src/generated/{resourceTypes → normalized}/Genesis.json +44 -87
- package/src/generated/resources/Genesis.json +415 -478
- package/src/generated/schemas/Genesis.json +1026 -1057
- package/src/generated/schemas/{Goal.json → standalone/Goal.json} +34 -34
- package/src/generated/schemas/{Job.json → standalone/Job.json} +85 -85
- package/src/generated/schemas/{RawStrategy.json → standalone/RawStrategy.json} +238 -263
- package/src/generated/schemas/{ResourceType.json → standalone/ResourceType.json} +60 -60
- package/src/generated/schemas/{RunnableStrategy.json → standalone/RunnableStrategy.json} +296 -321
- package/src/generated/schemas/{StrategyRun.json → standalone/StrategyRun.json} +390 -421
- package/src/generated/types/standalone/Resource_Genesis.d.ts +3 -0
- package/src/generated/types/standalone/Resource_Genesis.js +1 -0
- package/src/generated/types/standalone/Resource_Job.d.ts +3 -0
- package/src/generated/types/standalone/Resource_Job.js +1 -0
- package/src/generated/types/standalone/Resource_RawStrategy.d.ts +3 -0
- package/src/generated/types/standalone/Resource_RawStrategy.js +1 -0
- package/src/generated/types/standalone/Resource_ResourceType.d.ts +3 -0
- package/src/generated/types/standalone/Resource_ResourceType.js +1 -0
- package/src/generated/types/standalone/Resource_RunnableStrategy.d.ts +3 -0
- package/src/generated/types/standalone/Resource_RunnableStrategy.js +1 -0
- package/src/generated/types/types.d.ts +487 -548
- package/src/generated/types/types.js +1 -1
- package/src/scripts/_lib/config.ts +205 -181
- package/src/scripts/extractSchemasFromResourceTypeShells.ts +218 -0
- package/src/scripts/generateDependencies.ts +120 -120
- package/src/scripts/generateSchemaShims.ts +135 -115
- package/src/scripts/{extractSubSchemaWithDefs.ts → generateStandaloneSchema.ts} +175 -196
- package/src/scripts/{generateResourceTypeType.ts → generateStandaloneType.ts} +119 -110
- package/src/scripts/generateTypes.ts +614 -614
- package/src/scripts/{rewriteAnchors.ts → normalizeAnchorsToPointers.ts} +123 -123
- package/src/scripts/{generateResourceShells.ts → wrapResourceTypesWithResourceShells.ts} +84 -105
- package/dist/generated/types/Resource_Genesis.d.ts +0 -3
- package/dist/generated/types/Resource_Job.d.ts +0 -3
- package/dist/generated/types/Resource_RawStrategy.d.ts +0 -3
- package/dist/generated/types/Resource_ResourceType.d.ts +0 -3
- package/dist/generated/types/Resource_RunnableStrategy.d.ts +0 -3
- package/src/Roadmap.json +0 -102
- package/src/generated/types/Resource_Genesis.d.ts +0 -3
- package/src/generated/types/Resource_Genesis.js +0 -1
- package/src/generated/types/Resource_Job.d.ts +0 -3
- package/src/generated/types/Resource_Job.js +0 -1
- package/src/generated/types/Resource_RawStrategy.d.ts +0 -3
- package/src/generated/types/Resource_RawStrategy.js +0 -1
- package/src/generated/types/Resource_ResourceType.d.ts +0 -3
- package/src/generated/types/Resource_ResourceType.js +0 -1
- package/src/generated/types/Resource_RunnableStrategy.d.ts +0 -3
- package/src/generated/types/Resource_RunnableStrategy.js +0 -1
- package/src/scripts/extractSchemas.ts +0 -229
- /package/dist/generated/types/{Resource_Genesis.js → standalone/Resource_Genesis.js} +0 -0
- /package/dist/generated/types/{Resource_Job.js → standalone/Resource_Job.js} +0 -0
- /package/dist/generated/types/{Resource_RawStrategy.js → standalone/Resource_RawStrategy.js} +0 -0
- /package/dist/generated/types/{Resource_ResourceType.js → standalone/Resource_ResourceType.js} +0 -0
- /package/dist/generated/types/{Resource_RunnableStrategy.js → standalone/Resource_RunnableStrategy.js} +0 -0
- /package/dist/scripts/{extractSchemas.d.ts → extractSchemasFromResourceTypeShells.d.ts} +0 -0
- /package/dist/scripts/{extractSubSchemaWithDefs.d.ts → generateStandaloneSchema.d.ts} +0 -0
- /package/dist/scripts/{generateResourceShells.d.ts → generateStandaloneType.d.ts} +0 -0
- /package/dist/scripts/{generateResourceTypeType.d.ts → normalizeAnchorsToPointers.d.ts} +0 -0
- /package/dist/scripts/{rewriteAnchors.d.ts → wrapResourceTypesWithResourceShells.d.ts} +0 -0
- /package/src/generated/{resourceTypes → normalized}/Genesis.ts +0 -0
- /package/src/generated/schemas/{Goal.ts → standalone/Goal.ts} +0 -0
- /package/src/generated/schemas/{Job.ts → standalone/Job.ts} +0 -0
- /package/src/generated/schemas/{RawStrategy.ts → standalone/RawStrategy.ts} +0 -0
- /package/src/generated/schemas/{ResourceType.ts → standalone/ResourceType.ts} +0 -0
- /package/src/generated/schemas/{RunnableStrategy.ts → standalone/RunnableStrategy.ts} +0 -0
- /package/src/generated/schemas/{StrategyRun.ts → standalone/StrategyRun.ts} +0 -0
|
@@ -509,71 +509,6 @@
|
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
511
|
},
|
|
512
|
-
"JobRunIdentity": {
|
|
513
|
-
"identity": "TYPE-JobRunIdentity",
|
|
514
|
-
"name": "JobRunIdentity",
|
|
515
|
-
"description": "dummy-description",
|
|
516
|
-
"resourceTypeImplementationKind": "internal-without-identity",
|
|
517
|
-
"nucleusSchema": {
|
|
518
|
-
"$anchor": "JobRunIdentity",
|
|
519
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
520
|
-
"type": "string",
|
|
521
|
-
"pattern": "^JobRun-.+$"
|
|
522
|
-
}
|
|
523
|
-
},
|
|
524
|
-
"JobRun": {
|
|
525
|
-
"identity": "TYPE-JobRun",
|
|
526
|
-
"name": "JobRun",
|
|
527
|
-
"description": "dummy-description",
|
|
528
|
-
"resourceTypeImplementationKind": "internal-with-identity",
|
|
529
|
-
"nucleusSchema": {
|
|
530
|
-
"$anchor": "JobRun",
|
|
531
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
532
|
-
"type": "object",
|
|
533
|
-
"required": [
|
|
534
|
-
"identity",
|
|
535
|
-
"jobHandle"
|
|
536
|
-
],
|
|
537
|
-
"properties": {
|
|
538
|
-
"identity": {
|
|
539
|
-
"$ref": "#/$defs/JobRunIdentity"
|
|
540
|
-
},
|
|
541
|
-
"jobHandle": {
|
|
542
|
-
"$ref": "#/$defs/JobIdentity"
|
|
543
|
-
}
|
|
544
|
-
},
|
|
545
|
-
"allOf": [
|
|
546
|
-
{
|
|
547
|
-
"$comment": "This will be overlayed dynamically to specify roleBindings corresponding to the roles of the underlying job.",
|
|
548
|
-
"$ref": "#/$defs/RoleBindingsFacet"
|
|
549
|
-
}
|
|
550
|
-
]
|
|
551
|
-
}
|
|
552
|
-
},
|
|
553
|
-
"Conditional": {
|
|
554
|
-
"identity": "TYPE-Conditional",
|
|
555
|
-
"name": "Conditional",
|
|
556
|
-
"description": "dummy-description",
|
|
557
|
-
"resourceTypeImplementationKind": "internal-without-identity",
|
|
558
|
-
"nucleusSchema": {
|
|
559
|
-
"$anchor": "Conditional",
|
|
560
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
561
|
-
"type": "object",
|
|
562
|
-
"required": [
|
|
563
|
-
"when",
|
|
564
|
-
"what"
|
|
565
|
-
],
|
|
566
|
-
"properties": {
|
|
567
|
-
"when": {
|
|
568
|
-
"$ref": "#/$defs/JobStep"
|
|
569
|
-
},
|
|
570
|
-
"what": {
|
|
571
|
-
"$ref": "#/$defs/JobStep"
|
|
572
|
-
}
|
|
573
|
-
},
|
|
574
|
-
"unevaluatedProperties": false
|
|
575
|
-
}
|
|
576
|
-
},
|
|
577
512
|
"StepKind": {
|
|
578
513
|
"identity": "TYPE-StepKind",
|
|
579
514
|
"name": "StepKind",
|
|
@@ -619,7 +554,7 @@
|
|
|
619
554
|
"$anchor": "JobStepIdentity",
|
|
620
555
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
621
556
|
"type": "string",
|
|
622
|
-
"pattern": "^
|
|
557
|
+
"pattern": "^JOB_STEP-.+$"
|
|
623
558
|
}
|
|
624
559
|
},
|
|
625
560
|
"JobStep": {
|
|
@@ -633,7 +568,7 @@
|
|
|
633
568
|
"type": "object",
|
|
634
569
|
"required": [
|
|
635
570
|
"identity",
|
|
636
|
-
"
|
|
571
|
+
"jobHandle"
|
|
637
572
|
],
|
|
638
573
|
"properties": {
|
|
639
574
|
"identity": {
|
|
@@ -642,17 +577,45 @@
|
|
|
642
577
|
"stepKind": {
|
|
643
578
|
"const": "job"
|
|
644
579
|
},
|
|
645
|
-
"
|
|
646
|
-
"$ref": "#/$defs/
|
|
580
|
+
"jobHandle": {
|
|
581
|
+
"$ref": "#/$defs/JobIdentity"
|
|
647
582
|
}
|
|
648
583
|
},
|
|
649
584
|
"allOf": [
|
|
650
585
|
{
|
|
651
586
|
"$ref": "#/$defs/StepKindFacet"
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
"$comment": "This will be overlayed dynamically to specify roleBindings corresponding to the roles of the underlying job.",
|
|
590
|
+
"$ref": "#/$defs/RoleBindingsFacet"
|
|
652
591
|
}
|
|
653
592
|
]
|
|
654
593
|
}
|
|
655
594
|
},
|
|
595
|
+
"Conditional": {
|
|
596
|
+
"identity": "TYPE-Conditional",
|
|
597
|
+
"name": "Conditional",
|
|
598
|
+
"description": "dummy-description",
|
|
599
|
+
"resourceTypeImplementationKind": "internal-without-identity",
|
|
600
|
+
"nucleusSchema": {
|
|
601
|
+
"$anchor": "Conditional",
|
|
602
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
603
|
+
"type": "object",
|
|
604
|
+
"required": [
|
|
605
|
+
"when",
|
|
606
|
+
"what"
|
|
607
|
+
],
|
|
608
|
+
"properties": {
|
|
609
|
+
"when": {
|
|
610
|
+
"$ref": "#/$defs/JobStep"
|
|
611
|
+
},
|
|
612
|
+
"what": {
|
|
613
|
+
"$ref": "#/$defs/JobStep"
|
|
614
|
+
}
|
|
615
|
+
},
|
|
616
|
+
"unevaluatedProperties": false
|
|
617
|
+
}
|
|
618
|
+
},
|
|
656
619
|
"BranchStepIdentity": {
|
|
657
620
|
"identity": "TYPE-BranchStepIdentity",
|
|
658
621
|
"name": "BranchStepIdentity",
|
|
@@ -662,7 +625,7 @@
|
|
|
662
625
|
"$anchor": "BranchStepIdentity",
|
|
663
626
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
664
627
|
"type": "string",
|
|
665
|
-
"pattern": "^
|
|
628
|
+
"pattern": "^BRANCH_STEP-.+$"
|
|
666
629
|
}
|
|
667
630
|
},
|
|
668
631
|
"BranchStep": {
|
|
@@ -710,7 +673,7 @@
|
|
|
710
673
|
"$anchor": "WhileStepIdentity",
|
|
711
674
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
712
675
|
"type": "string",
|
|
713
|
-
"pattern": "^
|
|
676
|
+
"pattern": "^WHILE_STEP-.+$"
|
|
714
677
|
}
|
|
715
678
|
},
|
|
716
679
|
"WhileStep": {
|
|
@@ -753,7 +716,7 @@
|
|
|
753
716
|
"$anchor": "ForStepIdentity",
|
|
754
717
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
755
718
|
"type": "string",
|
|
756
|
-
"pattern": "^
|
|
719
|
+
"pattern": "^FOR_STEP-.+$"
|
|
757
720
|
}
|
|
758
721
|
},
|
|
759
722
|
"ForStep": {
|
|
@@ -849,14 +812,14 @@
|
|
|
849
812
|
"type": "object",
|
|
850
813
|
"required": [
|
|
851
814
|
"resourceRoleHandle",
|
|
852
|
-
"
|
|
815
|
+
"jobStepHandle"
|
|
853
816
|
],
|
|
854
817
|
"properties": {
|
|
855
818
|
"resourceRoleHandle": {
|
|
856
819
|
"$ref": "#/$defs/ResourceRoleIdentity"
|
|
857
820
|
},
|
|
858
|
-
"
|
|
859
|
-
"$ref": "#/$defs/
|
|
821
|
+
"jobStepHandle": {
|
|
822
|
+
"$ref": "#/$defs/JobStepIdentity"
|
|
860
823
|
}
|
|
861
824
|
}
|
|
862
825
|
}
|
|
@@ -1301,13 +1264,13 @@
|
|
|
1301
1264
|
"unevaluatedProperties": false
|
|
1302
1265
|
}
|
|
1303
1266
|
},
|
|
1304
|
-
"
|
|
1305
|
-
"identity": "TYPE-
|
|
1306
|
-
"name": "
|
|
1267
|
+
"JobStepSocket": {
|
|
1268
|
+
"identity": "TYPE-JobStepSocket",
|
|
1269
|
+
"name": "JobStepSocket",
|
|
1307
1270
|
"description": "dummy-description",
|
|
1308
1271
|
"resourceTypeImplementationKind": "internal-without-identity",
|
|
1309
1272
|
"nucleusSchema": {
|
|
1310
|
-
"$anchor": "
|
|
1273
|
+
"$anchor": "JobStepSocket",
|
|
1311
1274
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1312
1275
|
"type": "object",
|
|
1313
1276
|
"propertyNames": {
|
|
@@ -1328,10 +1291,10 @@
|
|
|
1328
1291
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1329
1292
|
"type": "object",
|
|
1330
1293
|
"propertyNames": {
|
|
1331
|
-
"$ref": "#/$defs/
|
|
1294
|
+
"$ref": "#/$defs/JobStepIdentity"
|
|
1332
1295
|
},
|
|
1333
1296
|
"additionalProperties": {
|
|
1334
|
-
"$ref": "#/$defs/
|
|
1297
|
+
"$ref": "#/$defs/JobStepSocket"
|
|
1335
1298
|
}
|
|
1336
1299
|
}
|
|
1337
1300
|
},
|
|
@@ -1637,12 +1600,6 @@
|
|
|
1637
1600
|
},
|
|
1638
1601
|
"threadStepIndex": {
|
|
1639
1602
|
"type": "integer"
|
|
1640
|
-
},
|
|
1641
|
-
"jobRunHandle": {
|
|
1642
|
-
"$ref": "#/$defs/JobRunIdentity"
|
|
1643
|
-
},
|
|
1644
|
-
"jobHandle": {
|
|
1645
|
-
"$ref": "#/$defs/JobIdentity"
|
|
1646
1603
|
}
|
|
1647
1604
|
}
|
|
1648
1605
|
}
|