@platformatic/db 2.65.1 → 2.66.1

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/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/db/2.65.1.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/db/2.66.1.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic DB",
5
5
  "type": "object",
@@ -221,6 +221,24 @@
221
221
  "paths"
222
222
  ],
223
223
  "additionalProperties": false
224
+ },
225
+ "base": {
226
+ "anyOf": [
227
+ {
228
+ "type": "object",
229
+ "additionalProperties": true
230
+ },
231
+ {
232
+ "type": "null"
233
+ }
234
+ ]
235
+ },
236
+ "messageKey": {
237
+ "type": "string"
238
+ },
239
+ "customLevels": {
240
+ "type": "object",
241
+ "additionalProperties": true
224
242
  }
225
243
  },
226
244
  "required": [
@@ -1260,7 +1278,6 @@
1260
1278
  ]
1261
1279
  },
1262
1280
  "telemetry": {
1263
- "$id": "/OpenTelemetry",
1264
1281
  "type": "object",
1265
1282
  "properties": {
1266
1283
  "enabled": {
@@ -1432,6 +1449,1006 @@
1432
1449
  "additionalProperties": false
1433
1450
  }
1434
1451
  },
1452
+ "runtime": {
1453
+ "type": "object",
1454
+ "properties": {
1455
+ "preload": {
1456
+ "anyOf": [
1457
+ {
1458
+ "type": "string",
1459
+ "resolvePath": true
1460
+ },
1461
+ {
1462
+ "type": "array",
1463
+ "items": {
1464
+ "type": "string",
1465
+ "resolvePath": true
1466
+ }
1467
+ }
1468
+ ]
1469
+ },
1470
+ "basePath": {
1471
+ "type": "string"
1472
+ },
1473
+ "workers": {
1474
+ "anyOf": [
1475
+ {
1476
+ "type": "number",
1477
+ "minimum": 1
1478
+ },
1479
+ {
1480
+ "type": "string"
1481
+ }
1482
+ ],
1483
+ "default": 1
1484
+ },
1485
+ "logger": {
1486
+ "type": "object",
1487
+ "properties": {
1488
+ "level": {
1489
+ "type": "string",
1490
+ "default": "info",
1491
+ "oneOf": [
1492
+ {
1493
+ "enum": [
1494
+ "fatal",
1495
+ "error",
1496
+ "warn",
1497
+ "info",
1498
+ "debug",
1499
+ "trace",
1500
+ "silent"
1501
+ ]
1502
+ },
1503
+ {
1504
+ "pattern": "^\\{.+\\}$"
1505
+ }
1506
+ ]
1507
+ },
1508
+ "transport": {
1509
+ "anyOf": [
1510
+ {
1511
+ "type": "object",
1512
+ "properties": {
1513
+ "target": {
1514
+ "type": "string",
1515
+ "resolveModule": true
1516
+ },
1517
+ "options": {
1518
+ "type": "object"
1519
+ }
1520
+ },
1521
+ "additionalProperties": false
1522
+ },
1523
+ {
1524
+ "type": "object",
1525
+ "properties": {
1526
+ "targets": {
1527
+ "type": "array",
1528
+ "items": {
1529
+ "type": "object",
1530
+ "properties": {
1531
+ "target": {
1532
+ "anyOf": [
1533
+ {
1534
+ "type": "string",
1535
+ "resolveModule": true
1536
+ },
1537
+ {
1538
+ "type": "string",
1539
+ "resolvePath": true
1540
+ }
1541
+ ]
1542
+ },
1543
+ "options": {
1544
+ "type": "object"
1545
+ },
1546
+ "level": {
1547
+ "type": "string"
1548
+ }
1549
+ },
1550
+ "additionalProperties": false
1551
+ }
1552
+ },
1553
+ "options": {
1554
+ "type": "object"
1555
+ }
1556
+ },
1557
+ "additionalProperties": false
1558
+ }
1559
+ ]
1560
+ },
1561
+ "pipeline": {
1562
+ "type": "object",
1563
+ "properties": {
1564
+ "target": {
1565
+ "type": "string",
1566
+ "resolveModule": true
1567
+ },
1568
+ "options": {
1569
+ "type": "object"
1570
+ }
1571
+ },
1572
+ "additionalProperties": false
1573
+ },
1574
+ "formatters": {
1575
+ "type": "object",
1576
+ "properties": {
1577
+ "path": {
1578
+ "type": "string",
1579
+ "resolvePath": true
1580
+ }
1581
+ },
1582
+ "required": [
1583
+ "path"
1584
+ ],
1585
+ "additionalProperties": false
1586
+ },
1587
+ "timestamp": {
1588
+ "enum": [
1589
+ "epochTime",
1590
+ "unixTime",
1591
+ "nullTime",
1592
+ "isoTime"
1593
+ ]
1594
+ },
1595
+ "redact": {
1596
+ "type": "object",
1597
+ "properties": {
1598
+ "paths": {
1599
+ "type": "array",
1600
+ "items": {
1601
+ "type": "string"
1602
+ }
1603
+ },
1604
+ "censor": {
1605
+ "type": "string",
1606
+ "default": "[redacted]"
1607
+ }
1608
+ },
1609
+ "required": [
1610
+ "paths"
1611
+ ],
1612
+ "additionalProperties": false
1613
+ },
1614
+ "base": {
1615
+ "anyOf": [
1616
+ {
1617
+ "type": "object",
1618
+ "additionalProperties": true
1619
+ },
1620
+ {
1621
+ "type": "null"
1622
+ }
1623
+ ]
1624
+ },
1625
+ "messageKey": {
1626
+ "type": "string"
1627
+ },
1628
+ "customLevels": {
1629
+ "type": "object",
1630
+ "additionalProperties": true
1631
+ }
1632
+ },
1633
+ "required": [
1634
+ "level"
1635
+ ],
1636
+ "default": {},
1637
+ "additionalProperties": true
1638
+ },
1639
+ "server": {
1640
+ "type": "object",
1641
+ "properties": {
1642
+ "hostname": {
1643
+ "type": "string",
1644
+ "default": "127.0.0.1"
1645
+ },
1646
+ "port": {
1647
+ "anyOf": [
1648
+ {
1649
+ "type": "integer"
1650
+ },
1651
+ {
1652
+ "type": "string"
1653
+ }
1654
+ ]
1655
+ },
1656
+ "http2": {
1657
+ "type": "boolean"
1658
+ },
1659
+ "https": {
1660
+ "type": "object",
1661
+ "properties": {
1662
+ "allowHTTP1": {
1663
+ "type": "boolean"
1664
+ },
1665
+ "key": {
1666
+ "anyOf": [
1667
+ {
1668
+ "type": "string"
1669
+ },
1670
+ {
1671
+ "type": "object",
1672
+ "properties": {
1673
+ "path": {
1674
+ "type": "string",
1675
+ "resolvePath": true
1676
+ }
1677
+ },
1678
+ "additionalProperties": false
1679
+ },
1680
+ {
1681
+ "type": "array",
1682
+ "items": {
1683
+ "anyOf": [
1684
+ {
1685
+ "type": "string"
1686
+ },
1687
+ {
1688
+ "type": "object",
1689
+ "properties": {
1690
+ "path": {
1691
+ "type": "string",
1692
+ "resolvePath": true
1693
+ }
1694
+ },
1695
+ "additionalProperties": false
1696
+ }
1697
+ ]
1698
+ }
1699
+ }
1700
+ ]
1701
+ },
1702
+ "cert": {
1703
+ "anyOf": [
1704
+ {
1705
+ "type": "string"
1706
+ },
1707
+ {
1708
+ "type": "object",
1709
+ "properties": {
1710
+ "path": {
1711
+ "type": "string",
1712
+ "resolvePath": true
1713
+ }
1714
+ },
1715
+ "additionalProperties": false
1716
+ },
1717
+ {
1718
+ "type": "array",
1719
+ "items": {
1720
+ "anyOf": [
1721
+ {
1722
+ "type": "string"
1723
+ },
1724
+ {
1725
+ "type": "object",
1726
+ "properties": {
1727
+ "path": {
1728
+ "type": "string",
1729
+ "resolvePath": true
1730
+ }
1731
+ },
1732
+ "additionalProperties": false
1733
+ }
1734
+ ]
1735
+ }
1736
+ }
1737
+ ]
1738
+ },
1739
+ "requestCert": {
1740
+ "type": "boolean"
1741
+ },
1742
+ "rejectUnauthorized": {
1743
+ "type": "boolean"
1744
+ }
1745
+ },
1746
+ "additionalProperties": false,
1747
+ "required": [
1748
+ "key",
1749
+ "cert"
1750
+ ]
1751
+ }
1752
+ },
1753
+ "additionalProperties": false
1754
+ },
1755
+ "startTimeout": {
1756
+ "default": 30000,
1757
+ "type": "number",
1758
+ "minimum": 0
1759
+ },
1760
+ "restartOnError": {
1761
+ "default": true,
1762
+ "anyOf": [
1763
+ {
1764
+ "type": "boolean"
1765
+ },
1766
+ {
1767
+ "type": "number",
1768
+ "minimum": 0
1769
+ }
1770
+ ]
1771
+ },
1772
+ "gracefulShutdown": {
1773
+ "type": "object",
1774
+ "properties": {
1775
+ "runtime": {
1776
+ "anyOf": [
1777
+ {
1778
+ "type": "number",
1779
+ "minimum": 1
1780
+ },
1781
+ {
1782
+ "type": "string"
1783
+ }
1784
+ ],
1785
+ "default": 10000
1786
+ },
1787
+ "service": {
1788
+ "anyOf": [
1789
+ {
1790
+ "type": "number",
1791
+ "minimum": 1
1792
+ },
1793
+ {
1794
+ "type": "string"
1795
+ }
1796
+ ],
1797
+ "default": 10000
1798
+ }
1799
+ },
1800
+ "default": {},
1801
+ "required": [
1802
+ "runtime",
1803
+ "service"
1804
+ ],
1805
+ "additionalProperties": false
1806
+ },
1807
+ "health": {
1808
+ "type": "object",
1809
+ "default": {},
1810
+ "properties": {
1811
+ "enabled": {
1812
+ "default": true,
1813
+ "anyOf": [
1814
+ {
1815
+ "type": "boolean"
1816
+ },
1817
+ {
1818
+ "type": "string"
1819
+ }
1820
+ ]
1821
+ },
1822
+ "interval": {
1823
+ "default": 30000,
1824
+ "anyOf": [
1825
+ {
1826
+ "type": "number",
1827
+ "minimum": 0
1828
+ },
1829
+ {
1830
+ "type": "string"
1831
+ }
1832
+ ]
1833
+ },
1834
+ "gracePeriod": {
1835
+ "default": 30000,
1836
+ "anyOf": [
1837
+ {
1838
+ "type": "number",
1839
+ "minimum": 0
1840
+ },
1841
+ {
1842
+ "type": "string"
1843
+ }
1844
+ ]
1845
+ },
1846
+ "maxUnhealthyChecks": {
1847
+ "default": 10,
1848
+ "anyOf": [
1849
+ {
1850
+ "type": "number",
1851
+ "minimum": 1
1852
+ },
1853
+ {
1854
+ "type": "string"
1855
+ }
1856
+ ]
1857
+ },
1858
+ "maxELU": {
1859
+ "default": 0.99,
1860
+ "anyOf": [
1861
+ {
1862
+ "type": "number",
1863
+ "minimum": 0,
1864
+ "maximum": 1
1865
+ },
1866
+ {
1867
+ "type": "string"
1868
+ }
1869
+ ]
1870
+ },
1871
+ "maxHeapUsed": {
1872
+ "default": 0.99,
1873
+ "anyOf": [
1874
+ {
1875
+ "type": "number",
1876
+ "minimum": 0,
1877
+ "maximum": 1
1878
+ },
1879
+ {
1880
+ "type": "string"
1881
+ }
1882
+ ]
1883
+ },
1884
+ "maxHeapTotal": {
1885
+ "default": 4294967296,
1886
+ "anyOf": [
1887
+ {
1888
+ "type": "number",
1889
+ "minimum": 0
1890
+ },
1891
+ {
1892
+ "type": "string"
1893
+ }
1894
+ ]
1895
+ },
1896
+ "maxYoungGeneration": {
1897
+ "type": "number",
1898
+ "minimum": 0
1899
+ }
1900
+ },
1901
+ "additionalProperties": false
1902
+ },
1903
+ "undici": {
1904
+ "type": "object",
1905
+ "properties": {
1906
+ "agentOptions": {
1907
+ "type": "object",
1908
+ "additionalProperties": true
1909
+ },
1910
+ "interceptors": {
1911
+ "anyOf": [
1912
+ {
1913
+ "type": "array",
1914
+ "items": {
1915
+ "type": "object",
1916
+ "properties": {
1917
+ "module": {
1918
+ "type": "string"
1919
+ },
1920
+ "options": {
1921
+ "type": "object",
1922
+ "additionalProperties": true
1923
+ }
1924
+ },
1925
+ "required": [
1926
+ "module",
1927
+ "options"
1928
+ ]
1929
+ }
1930
+ },
1931
+ {
1932
+ "type": "object",
1933
+ "properties": {
1934
+ "Client": {
1935
+ "type": "array",
1936
+ "items": {
1937
+ "type": "object",
1938
+ "properties": {
1939
+ "module": {
1940
+ "type": "string"
1941
+ },
1942
+ "options": {
1943
+ "type": "object",
1944
+ "additionalProperties": true
1945
+ }
1946
+ },
1947
+ "required": [
1948
+ "module",
1949
+ "options"
1950
+ ]
1951
+ }
1952
+ },
1953
+ "Pool": {
1954
+ "type": "array",
1955
+ "items": {
1956
+ "type": "object",
1957
+ "properties": {
1958
+ "module": {
1959
+ "type": "string"
1960
+ },
1961
+ "options": {
1962
+ "type": "object",
1963
+ "additionalProperties": true
1964
+ }
1965
+ },
1966
+ "required": [
1967
+ "module",
1968
+ "options"
1969
+ ]
1970
+ }
1971
+ },
1972
+ "Agent": {
1973
+ "type": "array",
1974
+ "items": {
1975
+ "type": "object",
1976
+ "properties": {
1977
+ "module": {
1978
+ "type": "string"
1979
+ },
1980
+ "options": {
1981
+ "type": "object",
1982
+ "additionalProperties": true
1983
+ }
1984
+ },
1985
+ "required": [
1986
+ "module",
1987
+ "options"
1988
+ ]
1989
+ }
1990
+ }
1991
+ }
1992
+ }
1993
+ ]
1994
+ }
1995
+ }
1996
+ },
1997
+ "httpCache": {
1998
+ "oneOf": [
1999
+ {
2000
+ "type": "boolean"
2001
+ },
2002
+ {
2003
+ "type": "object",
2004
+ "properties": {
2005
+ "store": {
2006
+ "type": "string"
2007
+ },
2008
+ "methods": {
2009
+ "type": "array",
2010
+ "items": {
2011
+ "type": "string"
2012
+ },
2013
+ "default": [
2014
+ "GET",
2015
+ "HEAD"
2016
+ ],
2017
+ "minItems": 1
2018
+ },
2019
+ "cacheTagsHeader": {
2020
+ "type": "string"
2021
+ },
2022
+ "maxSize": {
2023
+ "type": "integer"
2024
+ },
2025
+ "maxEntrySize": {
2026
+ "type": "integer"
2027
+ },
2028
+ "maxCount": {
2029
+ "type": "integer"
2030
+ }
2031
+ }
2032
+ }
2033
+ ]
2034
+ },
2035
+ "watch": {
2036
+ "anyOf": [
2037
+ {
2038
+ "type": "boolean"
2039
+ },
2040
+ {
2041
+ "type": "string"
2042
+ }
2043
+ ]
2044
+ },
2045
+ "managementApi": {
2046
+ "anyOf": [
2047
+ {
2048
+ "type": "boolean"
2049
+ },
2050
+ {
2051
+ "type": "string"
2052
+ },
2053
+ {
2054
+ "type": "object",
2055
+ "properties": {
2056
+ "logs": {
2057
+ "type": "object",
2058
+ "properties": {
2059
+ "maxSize": {
2060
+ "type": "number",
2061
+ "minimum": 5,
2062
+ "default": 200
2063
+ }
2064
+ },
2065
+ "additionalProperties": false
2066
+ }
2067
+ },
2068
+ "additionalProperties": false
2069
+ }
2070
+ ],
2071
+ "default": true
2072
+ },
2073
+ "metrics": {
2074
+ "anyOf": [
2075
+ {
2076
+ "type": "boolean"
2077
+ },
2078
+ {
2079
+ "type": "object",
2080
+ "properties": {
2081
+ "port": {
2082
+ "anyOf": [
2083
+ {
2084
+ "type": "integer"
2085
+ },
2086
+ {
2087
+ "type": "string"
2088
+ }
2089
+ ]
2090
+ },
2091
+ "enabled": {
2092
+ "anyOf": [
2093
+ {
2094
+ "type": "boolean"
2095
+ },
2096
+ {
2097
+ "type": "string"
2098
+ }
2099
+ ]
2100
+ },
2101
+ "hostname": {
2102
+ "type": "string"
2103
+ },
2104
+ "endpoint": {
2105
+ "type": "string"
2106
+ },
2107
+ "auth": {
2108
+ "type": "object",
2109
+ "properties": {
2110
+ "username": {
2111
+ "type": "string"
2112
+ },
2113
+ "password": {
2114
+ "type": "string"
2115
+ }
2116
+ },
2117
+ "additionalProperties": false,
2118
+ "required": [
2119
+ "username",
2120
+ "password"
2121
+ ]
2122
+ },
2123
+ "labels": {
2124
+ "type": "object",
2125
+ "additionalProperties": {
2126
+ "type": "string"
2127
+ }
2128
+ },
2129
+ "readiness": {
2130
+ "anyOf": [
2131
+ {
2132
+ "type": "boolean"
2133
+ },
2134
+ {
2135
+ "type": "object",
2136
+ "properties": {
2137
+ "endpoint": {
2138
+ "type": "string"
2139
+ },
2140
+ "success": {
2141
+ "type": "object",
2142
+ "properties": {
2143
+ "statusCode": {
2144
+ "type": "number"
2145
+ },
2146
+ "body": {
2147
+ "type": "string"
2148
+ }
2149
+ },
2150
+ "additionalProperties": false
2151
+ },
2152
+ "fail": {
2153
+ "type": "object",
2154
+ "properties": {
2155
+ "statusCode": {
2156
+ "type": "number"
2157
+ },
2158
+ "body": {
2159
+ "type": "string"
2160
+ }
2161
+ },
2162
+ "additionalProperties": false
2163
+ }
2164
+ },
2165
+ "additionalProperties": false
2166
+ }
2167
+ ]
2168
+ },
2169
+ "liveness": {
2170
+ "anyOf": [
2171
+ {
2172
+ "type": "boolean"
2173
+ },
2174
+ {
2175
+ "type": "object",
2176
+ "properties": {
2177
+ "endpoint": {
2178
+ "type": "string"
2179
+ },
2180
+ "success": {
2181
+ "type": "object",
2182
+ "properties": {
2183
+ "statusCode": {
2184
+ "type": "number"
2185
+ },
2186
+ "body": {
2187
+ "type": "string"
2188
+ }
2189
+ },
2190
+ "additionalProperties": false
2191
+ },
2192
+ "fail": {
2193
+ "type": "object",
2194
+ "properties": {
2195
+ "statusCode": {
2196
+ "type": "number"
2197
+ },
2198
+ "body": {
2199
+ "type": "string"
2200
+ }
2201
+ },
2202
+ "additionalProperties": false
2203
+ }
2204
+ },
2205
+ "additionalProperties": false
2206
+ }
2207
+ ]
2208
+ },
2209
+ "additionalProperties": false
2210
+ }
2211
+ }
2212
+ ]
2213
+ },
2214
+ "telemetry": {
2215
+ "type": "object",
2216
+ "properties": {
2217
+ "enabled": {
2218
+ "anyOf": [
2219
+ {
2220
+ "type": "boolean"
2221
+ },
2222
+ {
2223
+ "type": "string"
2224
+ }
2225
+ ]
2226
+ },
2227
+ "serviceName": {
2228
+ "type": "string",
2229
+ "description": "The name of the service. Defaults to the folder name if not specified."
2230
+ },
2231
+ "version": {
2232
+ "type": "string",
2233
+ "description": "The version of the service (optional)"
2234
+ },
2235
+ "skip": {
2236
+ "type": "array",
2237
+ "description": "An array of paths to skip when creating spans. Useful for health checks and other endpoints that do not need to be traced.",
2238
+ "items": {
2239
+ "type": "object",
2240
+ "properties": {
2241
+ "path": {
2242
+ "type": "string",
2243
+ "description": "The path to skip. Can be a string or a regex."
2244
+ },
2245
+ "method": {
2246
+ "description": "HTTP method to skip",
2247
+ "type": "string",
2248
+ "enum": [
2249
+ "GET",
2250
+ "POST",
2251
+ "PUT",
2252
+ "DELETE",
2253
+ "PATCH",
2254
+ "HEAD",
2255
+ "OPTIONS"
2256
+ ]
2257
+ }
2258
+ }
2259
+ }
2260
+ },
2261
+ "exporter": {
2262
+ "anyOf": [
2263
+ {
2264
+ "type": "array",
2265
+ "items": {
2266
+ "type": "object",
2267
+ "properties": {
2268
+ "type": {
2269
+ "type": "string",
2270
+ "enum": [
2271
+ "console",
2272
+ "otlp",
2273
+ "zipkin",
2274
+ "memory",
2275
+ "file"
2276
+ ],
2277
+ "default": "console"
2278
+ },
2279
+ "options": {
2280
+ "type": "object",
2281
+ "description": "Options for the exporter. These are passed directly to the exporter.",
2282
+ "properties": {
2283
+ "url": {
2284
+ "type": "string",
2285
+ "description": "The URL to send the traces to. Not used for console or memory exporters."
2286
+ },
2287
+ "headers": {
2288
+ "type": "object",
2289
+ "description": "Headers to send to the exporter. Not used for console or memory exporters."
2290
+ },
2291
+ "path": {
2292
+ "type": "string",
2293
+ "description": "The path to write the traces to. Only for file exporter."
2294
+ }
2295
+ }
2296
+ },
2297
+ "additionalProperties": false
2298
+ }
2299
+ }
2300
+ },
2301
+ {
2302
+ "type": "object",
2303
+ "properties": {
2304
+ "type": {
2305
+ "type": "string",
2306
+ "enum": [
2307
+ "console",
2308
+ "otlp",
2309
+ "zipkin",
2310
+ "memory",
2311
+ "file"
2312
+ ],
2313
+ "default": "console"
2314
+ },
2315
+ "options": {
2316
+ "type": "object",
2317
+ "description": "Options for the exporter. These are passed directly to the exporter.",
2318
+ "properties": {
2319
+ "url": {
2320
+ "type": "string",
2321
+ "description": "The URL to send the traces to. Not used for console or memory exporters."
2322
+ },
2323
+ "headers": {
2324
+ "type": "object",
2325
+ "description": "Headers to send to the exporter. Not used for console or memory exporters."
2326
+ },
2327
+ "path": {
2328
+ "type": "string",
2329
+ "description": "The path to write the traces to. Only for file exporter."
2330
+ }
2331
+ }
2332
+ },
2333
+ "additionalProperties": false
2334
+ }
2335
+ }
2336
+ ]
2337
+ }
2338
+ },
2339
+ "required": [
2340
+ "serviceName"
2341
+ ],
2342
+ "additionalProperties": false
2343
+ },
2344
+ "inspectorOptions": {
2345
+ "type": "object",
2346
+ "properties": {
2347
+ "host": {
2348
+ "type": "string"
2349
+ },
2350
+ "port": {
2351
+ "type": "number"
2352
+ },
2353
+ "breakFirstLine": {
2354
+ "type": "boolean"
2355
+ },
2356
+ "watchDisabled": {
2357
+ "type": "boolean"
2358
+ }
2359
+ }
2360
+ },
2361
+ "serviceTimeout": {
2362
+ "anyOf": [
2363
+ {
2364
+ "type": "number",
2365
+ "minimum": 1
2366
+ },
2367
+ {
2368
+ "type": "string"
2369
+ }
2370
+ ],
2371
+ "default": 300000
2372
+ },
2373
+ "env": {
2374
+ "type": "object",
2375
+ "additionalProperties": {
2376
+ "type": "string"
2377
+ }
2378
+ },
2379
+ "sourceMaps": {
2380
+ "type": "boolean",
2381
+ "default": false
2382
+ },
2383
+ "scheduler": {
2384
+ "type": "array",
2385
+ "items": {
2386
+ "type": "object",
2387
+ "properties": {
2388
+ "enabled": {
2389
+ "anyOf": [
2390
+ {
2391
+ "type": "boolean"
2392
+ },
2393
+ {
2394
+ "type": "string"
2395
+ }
2396
+ ],
2397
+ "default": true
2398
+ },
2399
+ "name": {
2400
+ "type": "string"
2401
+ },
2402
+ "cron": {
2403
+ "type": "string"
2404
+ },
2405
+ "callbackUrl": {
2406
+ "type": "string"
2407
+ },
2408
+ "method": {
2409
+ "type": "string",
2410
+ "enum": [
2411
+ "GET",
2412
+ "POST",
2413
+ "PUT",
2414
+ "PATCH",
2415
+ "DELETE"
2416
+ ],
2417
+ "default": "GET"
2418
+ },
2419
+ "headers": {
2420
+ "type": "object",
2421
+ "additionalProperties": {
2422
+ "type": "string"
2423
+ }
2424
+ },
2425
+ "body": {
2426
+ "anyOf": [
2427
+ {
2428
+ "type": "string"
2429
+ },
2430
+ {
2431
+ "type": "object",
2432
+ "additionalProperties": true
2433
+ }
2434
+ ]
2435
+ },
2436
+ "maxRetries": {
2437
+ "type": "number",
2438
+ "minimum": 0,
2439
+ "default": 3
2440
+ }
2441
+ },
2442
+ "required": [
2443
+ "name",
2444
+ "cron",
2445
+ "callbackUrl"
2446
+ ]
2447
+ }
2448
+ }
2449
+ },
2450
+ "additionalProperties": false
2451
+ },
1435
2452
  "watch": {
1436
2453
  "anyOf": [
1437
2454
  {