@toolproof-npm/schema 0.1.48 → 0.1.51
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/genesis/generated/resources/Genesis.json +164 -191
- package/dist/genesis/generated/schemas/Genesis.json +157 -184
- package/dist/genesis/generated/schemas/Job.json +20 -22
- package/dist/genesis/generated/schemas/ResourceFormat.json +14 -16
- package/dist/genesis/generated/schemas/ResourceType.json +36 -33
- package/dist/genesis/generated/schemas/StatefulStrategy.json +225 -251
- package/dist/genesis/generated/schemas/StatelessStrategy.json +103 -123
- package/dist/genesis/generated/types/types.d.ts +549 -149
- package/dist/genesis/resourceTypes/Genesis.json +164 -191
- package/package.json +1 -1
|
@@ -494,8 +494,7 @@
|
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
}
|
|
498
|
-
"additionalProperties": false
|
|
497
|
+
}
|
|
499
498
|
}
|
|
500
499
|
},
|
|
501
500
|
"ExtractionSchema": {
|
|
@@ -558,6 +557,9 @@
|
|
|
558
557
|
"properties": {
|
|
559
558
|
"properties": {
|
|
560
559
|
"type": "object",
|
|
560
|
+
"required": [
|
|
561
|
+
"identity"
|
|
562
|
+
],
|
|
561
563
|
"properties": {
|
|
562
564
|
"identity": {}
|
|
563
565
|
}
|
|
@@ -587,6 +589,9 @@
|
|
|
587
589
|
"properties": {
|
|
588
590
|
"properties": {
|
|
589
591
|
"type": "object",
|
|
592
|
+
"required": [
|
|
593
|
+
"merit"
|
|
594
|
+
],
|
|
590
595
|
"properties": {
|
|
591
596
|
"merit": {}
|
|
592
597
|
}
|
|
@@ -679,21 +684,19 @@
|
|
|
679
684
|
"$anchor": "ResourceType",
|
|
680
685
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
681
686
|
"type": "object",
|
|
682
|
-
"
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
"
|
|
689
|
-
"identity": {
|
|
690
|
-
"$ref": "#ResourceTypeIdentity"
|
|
691
|
-
},
|
|
692
|
-
"resourceFormatRef": {
|
|
693
|
-
"$ref": "#ResourceFormatIdentity"
|
|
694
|
-
}
|
|
695
|
-
}
|
|
687
|
+
"required": [
|
|
688
|
+
"identity",
|
|
689
|
+
"resourceFormatRef"
|
|
690
|
+
],
|
|
691
|
+
"properties": {
|
|
692
|
+
"identity": {
|
|
693
|
+
"$ref": "#ResourceTypeIdentity"
|
|
696
694
|
},
|
|
695
|
+
"resourceFormatRef": {
|
|
696
|
+
"$ref": "#ResourceFormatIdentity"
|
|
697
|
+
}
|
|
698
|
+
},
|
|
699
|
+
"allOf": [
|
|
697
700
|
{
|
|
698
701
|
"$ref": "#Documented"
|
|
699
702
|
},
|
|
@@ -702,7 +705,7 @@
|
|
|
702
705
|
},
|
|
703
706
|
{
|
|
704
707
|
"if": {
|
|
705
|
-
"$comment": "If resourceFormatRef is FORMAT-ApplicationJson, then
|
|
708
|
+
"$comment": "If resourceFormatRef is FORMAT-ApplicationJson, then extractorUri must not be present, but if resourceFormatRef is not FORMAT-ApplicationJson, then extractorUri must be present. This is because resources of types with format FORMAT-ApplicationJson are self-contained and do not need an extractor.",
|
|
706
709
|
"properties": {
|
|
707
710
|
"resourceFormatRef": {
|
|
708
711
|
"const": "FORMAT-ApplicationJson"
|
|
@@ -712,17 +715,17 @@
|
|
|
712
715
|
"then": {
|
|
713
716
|
"not": {
|
|
714
717
|
"required": [
|
|
715
|
-
"
|
|
718
|
+
"extractorUri"
|
|
716
719
|
]
|
|
717
720
|
}
|
|
718
721
|
},
|
|
719
722
|
"else": {
|
|
720
723
|
"type": "object",
|
|
721
724
|
"required": [
|
|
722
|
-
"
|
|
725
|
+
"extractorUri"
|
|
723
726
|
],
|
|
724
727
|
"properties": {
|
|
725
|
-
"
|
|
728
|
+
"extractorUri": {
|
|
726
729
|
"type": "string",
|
|
727
730
|
"format": "uri"
|
|
728
731
|
}
|
|
@@ -741,17 +744,15 @@
|
|
|
741
744
|
"$anchor": "ResourceFormat",
|
|
742
745
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
743
746
|
"type": "object",
|
|
747
|
+
"required": [
|
|
748
|
+
"identity"
|
|
749
|
+
],
|
|
750
|
+
"properties": {
|
|
751
|
+
"identity": {
|
|
752
|
+
"$ref": "#ResourceFormatIdentity"
|
|
753
|
+
}
|
|
754
|
+
},
|
|
744
755
|
"allOf": [
|
|
745
|
-
{
|
|
746
|
-
"required": [
|
|
747
|
-
"identity"
|
|
748
|
-
],
|
|
749
|
-
"properties": {
|
|
750
|
-
"identity": {
|
|
751
|
-
"$ref": "#ResourceFormatIdentity"
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
},
|
|
755
756
|
{
|
|
756
757
|
"$ref": "#Documented"
|
|
757
758
|
}
|
|
@@ -888,27 +889,25 @@
|
|
|
888
889
|
"name": "Job",
|
|
889
890
|
"description": "dummy-description",
|
|
890
891
|
"resourceFormatRef": "FORMAT-ApplicationJob",
|
|
891
|
-
"
|
|
892
|
+
"extractorUri": "https://extractors.toolproof.com/v0/JobExtractor.js",
|
|
892
893
|
"extractionSchema": {
|
|
893
894
|
"$anchor": "Job",
|
|
894
895
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
895
896
|
"type": "object",
|
|
896
|
-
"
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
"
|
|
903
|
-
"identity": {
|
|
904
|
-
"$ref": "#JobIdentity"
|
|
905
|
-
},
|
|
906
|
-
"implementationUri": {
|
|
907
|
-
"type": "string",
|
|
908
|
-
"format": "uri"
|
|
909
|
-
}
|
|
910
|
-
}
|
|
897
|
+
"required": [
|
|
898
|
+
"identity",
|
|
899
|
+
"implementationUri"
|
|
900
|
+
],
|
|
901
|
+
"properties": {
|
|
902
|
+
"identity": {
|
|
903
|
+
"$ref": "#JobIdentity"
|
|
911
904
|
},
|
|
905
|
+
"implementationUri": {
|
|
906
|
+
"type": "string",
|
|
907
|
+
"format": "uri"
|
|
908
|
+
}
|
|
909
|
+
},
|
|
910
|
+
"allOf": [
|
|
912
911
|
{
|
|
913
912
|
"$ref": "#Documented"
|
|
914
913
|
},
|
|
@@ -1030,22 +1029,18 @@
|
|
|
1030
1029
|
"$anchor": "ResourceBase",
|
|
1031
1030
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1032
1031
|
"type": "object",
|
|
1033
|
-
"
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
"
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
"resourceTypeRef": {
|
|
1044
|
-
"$ref": "#ResourceTypeIdentity"
|
|
1045
|
-
}
|
|
1046
|
-
}
|
|
1032
|
+
"required": [
|
|
1033
|
+
"identity",
|
|
1034
|
+
"resourceTypeRef"
|
|
1035
|
+
],
|
|
1036
|
+
"properties": {
|
|
1037
|
+
"identity": {
|
|
1038
|
+
"$ref": "#ResourceIdentity"
|
|
1039
|
+
},
|
|
1040
|
+
"resourceTypeRef": {
|
|
1041
|
+
"$ref": "#ResourceTypeIdentity"
|
|
1047
1042
|
}
|
|
1048
|
-
|
|
1043
|
+
}
|
|
1049
1044
|
}
|
|
1050
1045
|
},
|
|
1051
1046
|
"ResourceKind": {
|
|
@@ -1346,22 +1341,19 @@
|
|
|
1346
1341
|
"$anchor": "Execution",
|
|
1347
1342
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1348
1343
|
"type": "object",
|
|
1349
|
-
"
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
"properties": {
|
|
1357
|
-
"identity": {
|
|
1358
|
-
"$ref": "#ExecutionIdentity"
|
|
1359
|
-
},
|
|
1360
|
-
"jobRef": {
|
|
1361
|
-
"$ref": "#JobIdentity"
|
|
1362
|
-
}
|
|
1363
|
-
}
|
|
1344
|
+
"required": [
|
|
1345
|
+
"identity",
|
|
1346
|
+
"jobRef"
|
|
1347
|
+
],
|
|
1348
|
+
"properties": {
|
|
1349
|
+
"identity": {
|
|
1350
|
+
"$ref": "#ExecutionIdentity"
|
|
1364
1351
|
},
|
|
1352
|
+
"jobRef": {
|
|
1353
|
+
"$ref": "#JobIdentity"
|
|
1354
|
+
}
|
|
1355
|
+
},
|
|
1356
|
+
"allOf": [
|
|
1365
1357
|
{
|
|
1366
1358
|
"$comment": "This will be overlayed at runtime to specify roleBindings corresponding to the roles of the underlying job.",
|
|
1367
1359
|
"$ref": "#RoleBindingsWrapper"
|
|
@@ -1439,28 +1431,25 @@
|
|
|
1439
1431
|
"$anchor": "WorkStep",
|
|
1440
1432
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1441
1433
|
"type": "object",
|
|
1434
|
+
"required": [
|
|
1435
|
+
"identity",
|
|
1436
|
+
"kind",
|
|
1437
|
+
"execution"
|
|
1438
|
+
],
|
|
1439
|
+
"properties": {
|
|
1440
|
+
"identity": {
|
|
1441
|
+
"$ref": "#WorkStepIdentity"
|
|
1442
|
+
},
|
|
1443
|
+
"kind": {
|
|
1444
|
+
"const": "work"
|
|
1445
|
+
},
|
|
1446
|
+
"execution": {
|
|
1447
|
+
"$ref": "#Execution"
|
|
1448
|
+
}
|
|
1449
|
+
},
|
|
1442
1450
|
"allOf": [
|
|
1443
1451
|
{
|
|
1444
1452
|
"$ref": "#StepKind"
|
|
1445
|
-
},
|
|
1446
|
-
{
|
|
1447
|
-
"type": "object",
|
|
1448
|
-
"required": [
|
|
1449
|
-
"identity",
|
|
1450
|
-
"kind",
|
|
1451
|
-
"execution"
|
|
1452
|
-
],
|
|
1453
|
-
"properties": {
|
|
1454
|
-
"identity": {
|
|
1455
|
-
"$ref": "#WorkStepIdentity"
|
|
1456
|
-
},
|
|
1457
|
-
"kind": {
|
|
1458
|
-
"const": "work"
|
|
1459
|
-
},
|
|
1460
|
-
"execution": {
|
|
1461
|
-
"$ref": "#Execution"
|
|
1462
|
-
}
|
|
1463
|
-
}
|
|
1464
1453
|
}
|
|
1465
1454
|
]
|
|
1466
1455
|
}
|
|
@@ -1486,33 +1475,30 @@
|
|
|
1486
1475
|
"$anchor": "BranchStep",
|
|
1487
1476
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1488
1477
|
"type": "object",
|
|
1478
|
+
"required": [
|
|
1479
|
+
"identity",
|
|
1480
|
+
"kind",
|
|
1481
|
+
"cases"
|
|
1482
|
+
],
|
|
1483
|
+
"properties": {
|
|
1484
|
+
"identity": {
|
|
1485
|
+
"$ref": "#BranchStepIdentity"
|
|
1486
|
+
},
|
|
1487
|
+
"kind": {
|
|
1488
|
+
"const": "branch"
|
|
1489
|
+
},
|
|
1490
|
+
"cases": {
|
|
1491
|
+
"type": "array",
|
|
1492
|
+
"items": {
|
|
1493
|
+
"$ref": "#Conditional"
|
|
1494
|
+
},
|
|
1495
|
+
"minItems": 1,
|
|
1496
|
+
"uniqueItems": true
|
|
1497
|
+
}
|
|
1498
|
+
},
|
|
1489
1499
|
"allOf": [
|
|
1490
1500
|
{
|
|
1491
1501
|
"$ref": "#StepKind"
|
|
1492
|
-
},
|
|
1493
|
-
{
|
|
1494
|
-
"type": "object",
|
|
1495
|
-
"required": [
|
|
1496
|
-
"identity",
|
|
1497
|
-
"kind",
|
|
1498
|
-
"cases"
|
|
1499
|
-
],
|
|
1500
|
-
"properties": {
|
|
1501
|
-
"identity": {
|
|
1502
|
-
"$ref": "#BranchStepIdentity"
|
|
1503
|
-
},
|
|
1504
|
-
"kind": {
|
|
1505
|
-
"const": "branch"
|
|
1506
|
-
},
|
|
1507
|
-
"cases": {
|
|
1508
|
-
"type": "array",
|
|
1509
|
-
"items": {
|
|
1510
|
-
"$ref": "#Conditional"
|
|
1511
|
-
},
|
|
1512
|
-
"minItems": 1,
|
|
1513
|
-
"uniqueItems": true
|
|
1514
|
-
}
|
|
1515
|
-
}
|
|
1516
1502
|
}
|
|
1517
1503
|
]
|
|
1518
1504
|
}
|
|
@@ -1538,28 +1524,25 @@
|
|
|
1538
1524
|
"$anchor": "WhileStep",
|
|
1539
1525
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1540
1526
|
"type": "object",
|
|
1527
|
+
"required": [
|
|
1528
|
+
"identity",
|
|
1529
|
+
"kind",
|
|
1530
|
+
"case"
|
|
1531
|
+
],
|
|
1532
|
+
"properties": {
|
|
1533
|
+
"identity": {
|
|
1534
|
+
"$ref": "#WhileStepIdentity"
|
|
1535
|
+
},
|
|
1536
|
+
"kind": {
|
|
1537
|
+
"const": "while"
|
|
1538
|
+
},
|
|
1539
|
+
"case": {
|
|
1540
|
+
"$ref": "#Conditional"
|
|
1541
|
+
}
|
|
1542
|
+
},
|
|
1541
1543
|
"allOf": [
|
|
1542
1544
|
{
|
|
1543
1545
|
"$ref": "#StepKind"
|
|
1544
|
-
},
|
|
1545
|
-
{
|
|
1546
|
-
"type": "object",
|
|
1547
|
-
"required": [
|
|
1548
|
-
"identity",
|
|
1549
|
-
"kind",
|
|
1550
|
-
"case"
|
|
1551
|
-
],
|
|
1552
|
-
"properties": {
|
|
1553
|
-
"identity": {
|
|
1554
|
-
"$ref": "#WhileStepIdentity"
|
|
1555
|
-
},
|
|
1556
|
-
"kind": {
|
|
1557
|
-
"const": "while"
|
|
1558
|
-
},
|
|
1559
|
-
"case": {
|
|
1560
|
-
"$ref": "#Conditional"
|
|
1561
|
-
}
|
|
1562
|
-
}
|
|
1563
1546
|
}
|
|
1564
1547
|
]
|
|
1565
1548
|
}
|
|
@@ -1585,28 +1568,25 @@
|
|
|
1585
1568
|
"$anchor": "ForStep",
|
|
1586
1569
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1587
1570
|
"type": "object",
|
|
1571
|
+
"required": [
|
|
1572
|
+
"identity",
|
|
1573
|
+
"kind",
|
|
1574
|
+
"case"
|
|
1575
|
+
],
|
|
1576
|
+
"properties": {
|
|
1577
|
+
"identity": {
|
|
1578
|
+
"$ref": "#ForStepIdentity"
|
|
1579
|
+
},
|
|
1580
|
+
"kind": {
|
|
1581
|
+
"const": "for"
|
|
1582
|
+
},
|
|
1583
|
+
"case": {
|
|
1584
|
+
"$ref": "#Conditional"
|
|
1585
|
+
}
|
|
1586
|
+
},
|
|
1588
1587
|
"allOf": [
|
|
1589
1588
|
{
|
|
1590
1589
|
"$ref": "#StepKind"
|
|
1591
|
-
},
|
|
1592
|
-
{
|
|
1593
|
-
"type": "object",
|
|
1594
|
-
"required": [
|
|
1595
|
-
"identity",
|
|
1596
|
-
"kind",
|
|
1597
|
-
"case"
|
|
1598
|
-
],
|
|
1599
|
-
"properties": {
|
|
1600
|
-
"identity": {
|
|
1601
|
-
"$ref": "#ForStepIdentity"
|
|
1602
|
-
},
|
|
1603
|
-
"kind": {
|
|
1604
|
-
"const": "for"
|
|
1605
|
-
},
|
|
1606
|
-
"case": {
|
|
1607
|
-
"$ref": "#Conditional"
|
|
1608
|
-
}
|
|
1609
|
-
}
|
|
1610
1590
|
}
|
|
1611
1591
|
]
|
|
1612
1592
|
}
|
|
@@ -1658,27 +1638,22 @@
|
|
|
1658
1638
|
"$anchor": "StatelessStrategy",
|
|
1659
1639
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1660
1640
|
"type": "object",
|
|
1661
|
-
"
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
"required": [
|
|
1665
|
-
"identity",
|
|
1666
|
-
"steps"
|
|
1667
|
-
],
|
|
1668
|
-
"properties": {
|
|
1669
|
-
"identity": {
|
|
1670
|
-
"$ref": "#StatelessStrategyIdentity"
|
|
1671
|
-
},
|
|
1672
|
-
"steps": {
|
|
1673
|
-
"type": "array",
|
|
1674
|
-
"items": {
|
|
1675
|
-
"$ref": "#Step"
|
|
1676
|
-
},
|
|
1677
|
-
"uniqueItems": true
|
|
1678
|
-
}
|
|
1679
|
-
}
|
|
1680
|
-
}
|
|
1641
|
+
"required": [
|
|
1642
|
+
"identity",
|
|
1643
|
+
"steps"
|
|
1681
1644
|
],
|
|
1645
|
+
"properties": {
|
|
1646
|
+
"identity": {
|
|
1647
|
+
"$ref": "#StatelessStrategyIdentity"
|
|
1648
|
+
},
|
|
1649
|
+
"steps": {
|
|
1650
|
+
"type": "array",
|
|
1651
|
+
"items": {
|
|
1652
|
+
"$ref": "#Step"
|
|
1653
|
+
},
|
|
1654
|
+
"uniqueItems": true
|
|
1655
|
+
}
|
|
1656
|
+
},
|
|
1682
1657
|
"unevaluatedProperties": false
|
|
1683
1658
|
}
|
|
1684
1659
|
},
|
|
@@ -1758,21 +1733,19 @@
|
|
|
1758
1733
|
"$anchor": "StatefulStrategy",
|
|
1759
1734
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1760
1735
|
"type": "object",
|
|
1761
|
-
"
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
"
|
|
1768
|
-
"identity": {
|
|
1769
|
-
"$ref": "#StatefulStrategyIdentity"
|
|
1770
|
-
},
|
|
1771
|
-
"statelessStrategy": {
|
|
1772
|
-
"$ref": "#StatelessStrategy"
|
|
1773
|
-
}
|
|
1774
|
-
}
|
|
1736
|
+
"required": [
|
|
1737
|
+
"identity",
|
|
1738
|
+
"statelessStrategy"
|
|
1739
|
+
],
|
|
1740
|
+
"properties": {
|
|
1741
|
+
"identity": {
|
|
1742
|
+
"$ref": "#StatefulStrategyIdentity"
|
|
1775
1743
|
},
|
|
1744
|
+
"statelessStrategy": {
|
|
1745
|
+
"$ref": "#StatelessStrategy"
|
|
1746
|
+
}
|
|
1747
|
+
},
|
|
1748
|
+
"allOf": [
|
|
1776
1749
|
{
|
|
1777
1750
|
"$ref": "#StrategyStateWrapper"
|
|
1778
1751
|
}
|