contractspec 4.0.10 → 4.0.12
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/contractsrc.schema.json +327 -0
- package/package.json +3 -3
package/contractsrc.schema.json
CHANGED
|
@@ -1556,6 +1556,333 @@
|
|
|
1556
1556
|
}
|
|
1557
1557
|
},
|
|
1558
1558
|
"additionalProperties": false
|
|
1559
|
+
},
|
|
1560
|
+
"environment": {
|
|
1561
|
+
"type": "object",
|
|
1562
|
+
"properties": {
|
|
1563
|
+
"profiles": {
|
|
1564
|
+
"type": "object",
|
|
1565
|
+
"propertyNames": {
|
|
1566
|
+
"type": "string"
|
|
1567
|
+
},
|
|
1568
|
+
"additionalProperties": {
|
|
1569
|
+
"type": "object",
|
|
1570
|
+
"properties": {
|
|
1571
|
+
"envFiles": {
|
|
1572
|
+
"type": "array",
|
|
1573
|
+
"items": {
|
|
1574
|
+
"type": "string"
|
|
1575
|
+
}
|
|
1576
|
+
},
|
|
1577
|
+
"secretProviders": {
|
|
1578
|
+
"type": "array",
|
|
1579
|
+
"items": {
|
|
1580
|
+
"type": "string"
|
|
1581
|
+
}
|
|
1582
|
+
},
|
|
1583
|
+
"variables": {
|
|
1584
|
+
"type": "object",
|
|
1585
|
+
"propertyNames": {
|
|
1586
|
+
"type": "string"
|
|
1587
|
+
},
|
|
1588
|
+
"additionalProperties": {
|
|
1589
|
+
"type": "object",
|
|
1590
|
+
"properties": {
|
|
1591
|
+
"type": {
|
|
1592
|
+
"type": "string",
|
|
1593
|
+
"enum": [
|
|
1594
|
+
"literal",
|
|
1595
|
+
"env",
|
|
1596
|
+
"secret",
|
|
1597
|
+
"managed-connection",
|
|
1598
|
+
"byok-connection"
|
|
1599
|
+
]
|
|
1600
|
+
},
|
|
1601
|
+
"ref": {
|
|
1602
|
+
"type": "string"
|
|
1603
|
+
},
|
|
1604
|
+
"envVar": {
|
|
1605
|
+
"type": "string"
|
|
1606
|
+
},
|
|
1607
|
+
"value": {
|
|
1608
|
+
"anyOf": [
|
|
1609
|
+
{
|
|
1610
|
+
"type": "string"
|
|
1611
|
+
},
|
|
1612
|
+
{
|
|
1613
|
+
"type": "number"
|
|
1614
|
+
},
|
|
1615
|
+
{
|
|
1616
|
+
"type": "boolean"
|
|
1617
|
+
}
|
|
1618
|
+
]
|
|
1619
|
+
},
|
|
1620
|
+
"connectionId": {
|
|
1621
|
+
"type": "string"
|
|
1622
|
+
},
|
|
1623
|
+
"secretRef": {
|
|
1624
|
+
"type": "string"
|
|
1625
|
+
}
|
|
1626
|
+
},
|
|
1627
|
+
"required": ["type"],
|
|
1628
|
+
"additionalProperties": false
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
},
|
|
1632
|
+
"additionalProperties": false
|
|
1633
|
+
}
|
|
1634
|
+
},
|
|
1635
|
+
"variables": {
|
|
1636
|
+
"type": "object",
|
|
1637
|
+
"propertyNames": {
|
|
1638
|
+
"type": "string"
|
|
1639
|
+
},
|
|
1640
|
+
"additionalProperties": {
|
|
1641
|
+
"type": "object",
|
|
1642
|
+
"properties": {
|
|
1643
|
+
"key": {
|
|
1644
|
+
"type": "string",
|
|
1645
|
+
"minLength": 1
|
|
1646
|
+
},
|
|
1647
|
+
"description": {
|
|
1648
|
+
"type": "string"
|
|
1649
|
+
},
|
|
1650
|
+
"sensitivity": {
|
|
1651
|
+
"default": "internal",
|
|
1652
|
+
"type": "string",
|
|
1653
|
+
"enum": ["public", "internal", "sensitive", "secret"]
|
|
1654
|
+
},
|
|
1655
|
+
"lifecycle": {
|
|
1656
|
+
"default": "runtime",
|
|
1657
|
+
"type": "string",
|
|
1658
|
+
"enum": ["build-time", "runtime", "both"]
|
|
1659
|
+
},
|
|
1660
|
+
"allowedSurfaces": {
|
|
1661
|
+
"type": "array",
|
|
1662
|
+
"items": {
|
|
1663
|
+
"type": "string",
|
|
1664
|
+
"enum": [
|
|
1665
|
+
"server",
|
|
1666
|
+
"public-client",
|
|
1667
|
+
"native-client",
|
|
1668
|
+
"edge",
|
|
1669
|
+
"worker",
|
|
1670
|
+
"ci"
|
|
1671
|
+
]
|
|
1672
|
+
}
|
|
1673
|
+
},
|
|
1674
|
+
"requiredProfiles": {
|
|
1675
|
+
"type": "array",
|
|
1676
|
+
"items": {
|
|
1677
|
+
"type": "string"
|
|
1678
|
+
}
|
|
1679
|
+
},
|
|
1680
|
+
"defaultValue": {
|
|
1681
|
+
"anyOf": [
|
|
1682
|
+
{
|
|
1683
|
+
"type": "string"
|
|
1684
|
+
},
|
|
1685
|
+
{
|
|
1686
|
+
"type": "number"
|
|
1687
|
+
},
|
|
1688
|
+
{
|
|
1689
|
+
"type": "boolean"
|
|
1690
|
+
}
|
|
1691
|
+
]
|
|
1692
|
+
},
|
|
1693
|
+
"example": {
|
|
1694
|
+
"type": "string"
|
|
1695
|
+
},
|
|
1696
|
+
"valueSource": {
|
|
1697
|
+
"type": "object",
|
|
1698
|
+
"properties": {
|
|
1699
|
+
"type": {
|
|
1700
|
+
"type": "string",
|
|
1701
|
+
"enum": [
|
|
1702
|
+
"literal",
|
|
1703
|
+
"env",
|
|
1704
|
+
"secret",
|
|
1705
|
+
"managed-connection",
|
|
1706
|
+
"byok-connection"
|
|
1707
|
+
]
|
|
1708
|
+
},
|
|
1709
|
+
"ref": {
|
|
1710
|
+
"type": "string"
|
|
1711
|
+
},
|
|
1712
|
+
"envVar": {
|
|
1713
|
+
"type": "string"
|
|
1714
|
+
},
|
|
1715
|
+
"value": {
|
|
1716
|
+
"anyOf": [
|
|
1717
|
+
{
|
|
1718
|
+
"type": "string"
|
|
1719
|
+
},
|
|
1720
|
+
{
|
|
1721
|
+
"type": "number"
|
|
1722
|
+
},
|
|
1723
|
+
{
|
|
1724
|
+
"type": "boolean"
|
|
1725
|
+
}
|
|
1726
|
+
]
|
|
1727
|
+
},
|
|
1728
|
+
"connectionId": {
|
|
1729
|
+
"type": "string"
|
|
1730
|
+
},
|
|
1731
|
+
"secretRef": {
|
|
1732
|
+
"type": "string"
|
|
1733
|
+
}
|
|
1734
|
+
},
|
|
1735
|
+
"required": ["type"],
|
|
1736
|
+
"additionalProperties": false
|
|
1737
|
+
},
|
|
1738
|
+
"aliases": {
|
|
1739
|
+
"type": "array",
|
|
1740
|
+
"items": {
|
|
1741
|
+
"type": "object",
|
|
1742
|
+
"properties": {
|
|
1743
|
+
"name": {
|
|
1744
|
+
"type": "string",
|
|
1745
|
+
"minLength": 1
|
|
1746
|
+
},
|
|
1747
|
+
"targetId": {
|
|
1748
|
+
"type": "string"
|
|
1749
|
+
},
|
|
1750
|
+
"framework": {
|
|
1751
|
+
"type": "string",
|
|
1752
|
+
"enum": [
|
|
1753
|
+
"next",
|
|
1754
|
+
"expo",
|
|
1755
|
+
"node",
|
|
1756
|
+
"vite",
|
|
1757
|
+
"worker",
|
|
1758
|
+
"custom"
|
|
1759
|
+
]
|
|
1760
|
+
},
|
|
1761
|
+
"profile": {
|
|
1762
|
+
"type": "string"
|
|
1763
|
+
},
|
|
1764
|
+
"exposure": {
|
|
1765
|
+
"type": "string",
|
|
1766
|
+
"enum": [
|
|
1767
|
+
"server",
|
|
1768
|
+
"public-client",
|
|
1769
|
+
"native-client",
|
|
1770
|
+
"edge",
|
|
1771
|
+
"worker",
|
|
1772
|
+
"ci"
|
|
1773
|
+
]
|
|
1774
|
+
},
|
|
1775
|
+
"materialization": {
|
|
1776
|
+
"default": "env-file",
|
|
1777
|
+
"type": "string",
|
|
1778
|
+
"enum": ["env-file", "process-env", "next-config-env"]
|
|
1779
|
+
}
|
|
1780
|
+
},
|
|
1781
|
+
"required": ["name"],
|
|
1782
|
+
"additionalProperties": false
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
},
|
|
1786
|
+
"required": ["key"],
|
|
1787
|
+
"additionalProperties": false
|
|
1788
|
+
}
|
|
1789
|
+
},
|
|
1790
|
+
"targets": {
|
|
1791
|
+
"type": "object",
|
|
1792
|
+
"propertyNames": {
|
|
1793
|
+
"type": "string"
|
|
1794
|
+
},
|
|
1795
|
+
"additionalProperties": {
|
|
1796
|
+
"type": "object",
|
|
1797
|
+
"properties": {
|
|
1798
|
+
"id": {
|
|
1799
|
+
"type": "string",
|
|
1800
|
+
"minLength": 1
|
|
1801
|
+
},
|
|
1802
|
+
"packageName": {
|
|
1803
|
+
"type": "string"
|
|
1804
|
+
},
|
|
1805
|
+
"packagePath": {
|
|
1806
|
+
"type": "string"
|
|
1807
|
+
},
|
|
1808
|
+
"appId": {
|
|
1809
|
+
"type": "string"
|
|
1810
|
+
},
|
|
1811
|
+
"framework": {
|
|
1812
|
+
"type": "string",
|
|
1813
|
+
"enum": ["next", "expo", "node", "vite", "worker", "custom"]
|
|
1814
|
+
},
|
|
1815
|
+
"surfaces": {
|
|
1816
|
+
"type": "array",
|
|
1817
|
+
"items": {
|
|
1818
|
+
"type": "string",
|
|
1819
|
+
"enum": [
|
|
1820
|
+
"server",
|
|
1821
|
+
"public-client",
|
|
1822
|
+
"native-client",
|
|
1823
|
+
"edge",
|
|
1824
|
+
"worker",
|
|
1825
|
+
"ci"
|
|
1826
|
+
]
|
|
1827
|
+
}
|
|
1828
|
+
},
|
|
1829
|
+
"profiles": {
|
|
1830
|
+
"type": "array",
|
|
1831
|
+
"items": {
|
|
1832
|
+
"type": "string"
|
|
1833
|
+
}
|
|
1834
|
+
},
|
|
1835
|
+
"envFiles": {
|
|
1836
|
+
"type": "array",
|
|
1837
|
+
"items": {
|
|
1838
|
+
"type": "string"
|
|
1839
|
+
}
|
|
1840
|
+
}
|
|
1841
|
+
},
|
|
1842
|
+
"required": ["id"],
|
|
1843
|
+
"additionalProperties": false
|
|
1844
|
+
}
|
|
1845
|
+
},
|
|
1846
|
+
"secretRequirements": {
|
|
1847
|
+
"type": "object",
|
|
1848
|
+
"propertyNames": {
|
|
1849
|
+
"type": "string"
|
|
1850
|
+
},
|
|
1851
|
+
"additionalProperties": {
|
|
1852
|
+
"type": "object",
|
|
1853
|
+
"properties": {
|
|
1854
|
+
"key": {
|
|
1855
|
+
"type": "string",
|
|
1856
|
+
"minLength": 1
|
|
1857
|
+
},
|
|
1858
|
+
"description": {
|
|
1859
|
+
"type": "string"
|
|
1860
|
+
},
|
|
1861
|
+
"required": {
|
|
1862
|
+
"default": true,
|
|
1863
|
+
"type": "boolean"
|
|
1864
|
+
},
|
|
1865
|
+
"provider": {
|
|
1866
|
+
"type": "string"
|
|
1867
|
+
},
|
|
1868
|
+
"envVar": {
|
|
1869
|
+
"type": "string"
|
|
1870
|
+
},
|
|
1871
|
+
"secretRefPattern": {
|
|
1872
|
+
"type": "string"
|
|
1873
|
+
},
|
|
1874
|
+
"rotationDays": {
|
|
1875
|
+
"type": "integer",
|
|
1876
|
+
"exclusiveMinimum": 0,
|
|
1877
|
+
"maximum": 9007199254740991
|
|
1878
|
+
}
|
|
1879
|
+
},
|
|
1880
|
+
"required": ["key"],
|
|
1881
|
+
"additionalProperties": false
|
|
1882
|
+
}
|
|
1883
|
+
}
|
|
1884
|
+
},
|
|
1885
|
+
"additionalProperties": false
|
|
1559
1886
|
}
|
|
1560
1887
|
},
|
|
1561
1888
|
"additionalProperties": false,
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contractspec",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.12",
|
|
4
4
|
"description": "CLI tool for creating, building, and validating contract specifications",
|
|
5
5
|
"bin": {
|
|
6
6
|
"contractspec": "./bin/contractspec.mjs"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@contractspec/app.cli-contractspec": "6.3.
|
|
10
|
-
"@contractspec/lib.contracts-spec": "6.
|
|
9
|
+
"@contractspec/app.cli-contractspec": "6.3.2",
|
|
10
|
+
"@contractspec/lib.contracts-spec": "6.3.0"
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
13
|
"bin",
|