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