@platformatic/service 2.65.0 → 2.66.0

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,6 +1,6 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/service/2.65.0.json",
3
- "version": "2.65.0",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/service/2.66.0.json",
3
+ "version": "2.66.0",
4
4
  "title": "Platformatic Service",
5
5
  "type": "object",
6
6
  "properties": {
@@ -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": [
@@ -738,7 +756,6 @@
738
756
  ]
739
757
  },
740
758
  "telemetry": {
741
- "$id": "/OpenTelemetry",
742
759
  "type": "object",
743
760
  "properties": {
744
761
  "enabled": {
@@ -1120,6 +1137,1006 @@
1120
1137
  },
1121
1138
  "additionalProperties": false
1122
1139
  }
1140
+ },
1141
+ "runtime": {
1142
+ "type": "object",
1143
+ "properties": {
1144
+ "preload": {
1145
+ "anyOf": [
1146
+ {
1147
+ "type": "string",
1148
+ "resolvePath": true
1149
+ },
1150
+ {
1151
+ "type": "array",
1152
+ "items": {
1153
+ "type": "string",
1154
+ "resolvePath": true
1155
+ }
1156
+ }
1157
+ ]
1158
+ },
1159
+ "basePath": {
1160
+ "type": "string"
1161
+ },
1162
+ "workers": {
1163
+ "anyOf": [
1164
+ {
1165
+ "type": "number",
1166
+ "minimum": 1
1167
+ },
1168
+ {
1169
+ "type": "string"
1170
+ }
1171
+ ],
1172
+ "default": 1
1173
+ },
1174
+ "logger": {
1175
+ "type": "object",
1176
+ "properties": {
1177
+ "level": {
1178
+ "type": "string",
1179
+ "default": "info",
1180
+ "oneOf": [
1181
+ {
1182
+ "enum": [
1183
+ "fatal",
1184
+ "error",
1185
+ "warn",
1186
+ "info",
1187
+ "debug",
1188
+ "trace",
1189
+ "silent"
1190
+ ]
1191
+ },
1192
+ {
1193
+ "pattern": "^\\{.+\\}$"
1194
+ }
1195
+ ]
1196
+ },
1197
+ "transport": {
1198
+ "anyOf": [
1199
+ {
1200
+ "type": "object",
1201
+ "properties": {
1202
+ "target": {
1203
+ "type": "string",
1204
+ "resolveModule": true
1205
+ },
1206
+ "options": {
1207
+ "type": "object"
1208
+ }
1209
+ },
1210
+ "additionalProperties": false
1211
+ },
1212
+ {
1213
+ "type": "object",
1214
+ "properties": {
1215
+ "targets": {
1216
+ "type": "array",
1217
+ "items": {
1218
+ "type": "object",
1219
+ "properties": {
1220
+ "target": {
1221
+ "anyOf": [
1222
+ {
1223
+ "type": "string",
1224
+ "resolveModule": true
1225
+ },
1226
+ {
1227
+ "type": "string",
1228
+ "resolvePath": true
1229
+ }
1230
+ ]
1231
+ },
1232
+ "options": {
1233
+ "type": "object"
1234
+ },
1235
+ "level": {
1236
+ "type": "string"
1237
+ }
1238
+ },
1239
+ "additionalProperties": false
1240
+ }
1241
+ },
1242
+ "options": {
1243
+ "type": "object"
1244
+ }
1245
+ },
1246
+ "additionalProperties": false
1247
+ }
1248
+ ]
1249
+ },
1250
+ "pipeline": {
1251
+ "type": "object",
1252
+ "properties": {
1253
+ "target": {
1254
+ "type": "string",
1255
+ "resolveModule": true
1256
+ },
1257
+ "options": {
1258
+ "type": "object"
1259
+ }
1260
+ },
1261
+ "additionalProperties": false
1262
+ },
1263
+ "formatters": {
1264
+ "type": "object",
1265
+ "properties": {
1266
+ "path": {
1267
+ "type": "string",
1268
+ "resolvePath": true
1269
+ }
1270
+ },
1271
+ "required": [
1272
+ "path"
1273
+ ],
1274
+ "additionalProperties": false
1275
+ },
1276
+ "timestamp": {
1277
+ "enum": [
1278
+ "epochTime",
1279
+ "unixTime",
1280
+ "nullTime",
1281
+ "isoTime"
1282
+ ]
1283
+ },
1284
+ "redact": {
1285
+ "type": "object",
1286
+ "properties": {
1287
+ "paths": {
1288
+ "type": "array",
1289
+ "items": {
1290
+ "type": "string"
1291
+ }
1292
+ },
1293
+ "censor": {
1294
+ "type": "string",
1295
+ "default": "[redacted]"
1296
+ }
1297
+ },
1298
+ "required": [
1299
+ "paths"
1300
+ ],
1301
+ "additionalProperties": false
1302
+ },
1303
+ "base": {
1304
+ "anyOf": [
1305
+ {
1306
+ "type": "object",
1307
+ "additionalProperties": true
1308
+ },
1309
+ {
1310
+ "type": "null"
1311
+ }
1312
+ ]
1313
+ },
1314
+ "messageKey": {
1315
+ "type": "string"
1316
+ },
1317
+ "customLevels": {
1318
+ "type": "object",
1319
+ "additionalProperties": true
1320
+ }
1321
+ },
1322
+ "required": [
1323
+ "level"
1324
+ ],
1325
+ "default": {},
1326
+ "additionalProperties": true
1327
+ },
1328
+ "server": {
1329
+ "type": "object",
1330
+ "properties": {
1331
+ "hostname": {
1332
+ "type": "string",
1333
+ "default": "127.0.0.1"
1334
+ },
1335
+ "port": {
1336
+ "anyOf": [
1337
+ {
1338
+ "type": "integer"
1339
+ },
1340
+ {
1341
+ "type": "string"
1342
+ }
1343
+ ]
1344
+ },
1345
+ "http2": {
1346
+ "type": "boolean"
1347
+ },
1348
+ "https": {
1349
+ "type": "object",
1350
+ "properties": {
1351
+ "allowHTTP1": {
1352
+ "type": "boolean"
1353
+ },
1354
+ "key": {
1355
+ "anyOf": [
1356
+ {
1357
+ "type": "string"
1358
+ },
1359
+ {
1360
+ "type": "object",
1361
+ "properties": {
1362
+ "path": {
1363
+ "type": "string",
1364
+ "resolvePath": true
1365
+ }
1366
+ },
1367
+ "additionalProperties": false
1368
+ },
1369
+ {
1370
+ "type": "array",
1371
+ "items": {
1372
+ "anyOf": [
1373
+ {
1374
+ "type": "string"
1375
+ },
1376
+ {
1377
+ "type": "object",
1378
+ "properties": {
1379
+ "path": {
1380
+ "type": "string",
1381
+ "resolvePath": true
1382
+ }
1383
+ },
1384
+ "additionalProperties": false
1385
+ }
1386
+ ]
1387
+ }
1388
+ }
1389
+ ]
1390
+ },
1391
+ "cert": {
1392
+ "anyOf": [
1393
+ {
1394
+ "type": "string"
1395
+ },
1396
+ {
1397
+ "type": "object",
1398
+ "properties": {
1399
+ "path": {
1400
+ "type": "string",
1401
+ "resolvePath": true
1402
+ }
1403
+ },
1404
+ "additionalProperties": false
1405
+ },
1406
+ {
1407
+ "type": "array",
1408
+ "items": {
1409
+ "anyOf": [
1410
+ {
1411
+ "type": "string"
1412
+ },
1413
+ {
1414
+ "type": "object",
1415
+ "properties": {
1416
+ "path": {
1417
+ "type": "string",
1418
+ "resolvePath": true
1419
+ }
1420
+ },
1421
+ "additionalProperties": false
1422
+ }
1423
+ ]
1424
+ }
1425
+ }
1426
+ ]
1427
+ },
1428
+ "requestCert": {
1429
+ "type": "boolean"
1430
+ },
1431
+ "rejectUnauthorized": {
1432
+ "type": "boolean"
1433
+ }
1434
+ },
1435
+ "additionalProperties": false,
1436
+ "required": [
1437
+ "key",
1438
+ "cert"
1439
+ ]
1440
+ }
1441
+ },
1442
+ "additionalProperties": false
1443
+ },
1444
+ "startTimeout": {
1445
+ "default": 30000,
1446
+ "type": "number",
1447
+ "minimum": 0
1448
+ },
1449
+ "restartOnError": {
1450
+ "default": true,
1451
+ "anyOf": [
1452
+ {
1453
+ "type": "boolean"
1454
+ },
1455
+ {
1456
+ "type": "number",
1457
+ "minimum": 0
1458
+ }
1459
+ ]
1460
+ },
1461
+ "gracefulShutdown": {
1462
+ "type": "object",
1463
+ "properties": {
1464
+ "runtime": {
1465
+ "anyOf": [
1466
+ {
1467
+ "type": "number",
1468
+ "minimum": 1
1469
+ },
1470
+ {
1471
+ "type": "string"
1472
+ }
1473
+ ],
1474
+ "default": 10000
1475
+ },
1476
+ "service": {
1477
+ "anyOf": [
1478
+ {
1479
+ "type": "number",
1480
+ "minimum": 1
1481
+ },
1482
+ {
1483
+ "type": "string"
1484
+ }
1485
+ ],
1486
+ "default": 10000
1487
+ }
1488
+ },
1489
+ "default": {},
1490
+ "required": [
1491
+ "runtime",
1492
+ "service"
1493
+ ],
1494
+ "additionalProperties": false
1495
+ },
1496
+ "health": {
1497
+ "type": "object",
1498
+ "default": {},
1499
+ "properties": {
1500
+ "enabled": {
1501
+ "default": true,
1502
+ "anyOf": [
1503
+ {
1504
+ "type": "boolean"
1505
+ },
1506
+ {
1507
+ "type": "string"
1508
+ }
1509
+ ]
1510
+ },
1511
+ "interval": {
1512
+ "default": 30000,
1513
+ "anyOf": [
1514
+ {
1515
+ "type": "number",
1516
+ "minimum": 0
1517
+ },
1518
+ {
1519
+ "type": "string"
1520
+ }
1521
+ ]
1522
+ },
1523
+ "gracePeriod": {
1524
+ "default": 30000,
1525
+ "anyOf": [
1526
+ {
1527
+ "type": "number",
1528
+ "minimum": 0
1529
+ },
1530
+ {
1531
+ "type": "string"
1532
+ }
1533
+ ]
1534
+ },
1535
+ "maxUnhealthyChecks": {
1536
+ "default": 10,
1537
+ "anyOf": [
1538
+ {
1539
+ "type": "number",
1540
+ "minimum": 1
1541
+ },
1542
+ {
1543
+ "type": "string"
1544
+ }
1545
+ ]
1546
+ },
1547
+ "maxELU": {
1548
+ "default": 0.99,
1549
+ "anyOf": [
1550
+ {
1551
+ "type": "number",
1552
+ "minimum": 0,
1553
+ "maximum": 1
1554
+ },
1555
+ {
1556
+ "type": "string"
1557
+ }
1558
+ ]
1559
+ },
1560
+ "maxHeapUsed": {
1561
+ "default": 0.99,
1562
+ "anyOf": [
1563
+ {
1564
+ "type": "number",
1565
+ "minimum": 0,
1566
+ "maximum": 1
1567
+ },
1568
+ {
1569
+ "type": "string"
1570
+ }
1571
+ ]
1572
+ },
1573
+ "maxHeapTotal": {
1574
+ "default": 4294967296,
1575
+ "anyOf": [
1576
+ {
1577
+ "type": "number",
1578
+ "minimum": 0
1579
+ },
1580
+ {
1581
+ "type": "string"
1582
+ }
1583
+ ]
1584
+ },
1585
+ "maxYoungGeneration": {
1586
+ "type": "number",
1587
+ "minimum": 0
1588
+ }
1589
+ },
1590
+ "additionalProperties": false
1591
+ },
1592
+ "undici": {
1593
+ "type": "object",
1594
+ "properties": {
1595
+ "agentOptions": {
1596
+ "type": "object",
1597
+ "additionalProperties": true
1598
+ },
1599
+ "interceptors": {
1600
+ "anyOf": [
1601
+ {
1602
+ "type": "array",
1603
+ "items": {
1604
+ "type": "object",
1605
+ "properties": {
1606
+ "module": {
1607
+ "type": "string"
1608
+ },
1609
+ "options": {
1610
+ "type": "object",
1611
+ "additionalProperties": true
1612
+ }
1613
+ },
1614
+ "required": [
1615
+ "module",
1616
+ "options"
1617
+ ]
1618
+ }
1619
+ },
1620
+ {
1621
+ "type": "object",
1622
+ "properties": {
1623
+ "Client": {
1624
+ "type": "array",
1625
+ "items": {
1626
+ "type": "object",
1627
+ "properties": {
1628
+ "module": {
1629
+ "type": "string"
1630
+ },
1631
+ "options": {
1632
+ "type": "object",
1633
+ "additionalProperties": true
1634
+ }
1635
+ },
1636
+ "required": [
1637
+ "module",
1638
+ "options"
1639
+ ]
1640
+ }
1641
+ },
1642
+ "Pool": {
1643
+ "type": "array",
1644
+ "items": {
1645
+ "type": "object",
1646
+ "properties": {
1647
+ "module": {
1648
+ "type": "string"
1649
+ },
1650
+ "options": {
1651
+ "type": "object",
1652
+ "additionalProperties": true
1653
+ }
1654
+ },
1655
+ "required": [
1656
+ "module",
1657
+ "options"
1658
+ ]
1659
+ }
1660
+ },
1661
+ "Agent": {
1662
+ "type": "array",
1663
+ "items": {
1664
+ "type": "object",
1665
+ "properties": {
1666
+ "module": {
1667
+ "type": "string"
1668
+ },
1669
+ "options": {
1670
+ "type": "object",
1671
+ "additionalProperties": true
1672
+ }
1673
+ },
1674
+ "required": [
1675
+ "module",
1676
+ "options"
1677
+ ]
1678
+ }
1679
+ }
1680
+ }
1681
+ }
1682
+ ]
1683
+ }
1684
+ }
1685
+ },
1686
+ "httpCache": {
1687
+ "oneOf": [
1688
+ {
1689
+ "type": "boolean"
1690
+ },
1691
+ {
1692
+ "type": "object",
1693
+ "properties": {
1694
+ "store": {
1695
+ "type": "string"
1696
+ },
1697
+ "methods": {
1698
+ "type": "array",
1699
+ "items": {
1700
+ "type": "string"
1701
+ },
1702
+ "default": [
1703
+ "GET",
1704
+ "HEAD"
1705
+ ],
1706
+ "minItems": 1
1707
+ },
1708
+ "cacheTagsHeader": {
1709
+ "type": "string"
1710
+ },
1711
+ "maxSize": {
1712
+ "type": "integer"
1713
+ },
1714
+ "maxEntrySize": {
1715
+ "type": "integer"
1716
+ },
1717
+ "maxCount": {
1718
+ "type": "integer"
1719
+ }
1720
+ }
1721
+ }
1722
+ ]
1723
+ },
1724
+ "watch": {
1725
+ "anyOf": [
1726
+ {
1727
+ "type": "boolean"
1728
+ },
1729
+ {
1730
+ "type": "string"
1731
+ }
1732
+ ]
1733
+ },
1734
+ "managementApi": {
1735
+ "anyOf": [
1736
+ {
1737
+ "type": "boolean"
1738
+ },
1739
+ {
1740
+ "type": "string"
1741
+ },
1742
+ {
1743
+ "type": "object",
1744
+ "properties": {
1745
+ "logs": {
1746
+ "type": "object",
1747
+ "properties": {
1748
+ "maxSize": {
1749
+ "type": "number",
1750
+ "minimum": 5,
1751
+ "default": 200
1752
+ }
1753
+ },
1754
+ "additionalProperties": false
1755
+ }
1756
+ },
1757
+ "additionalProperties": false
1758
+ }
1759
+ ],
1760
+ "default": true
1761
+ },
1762
+ "metrics": {
1763
+ "anyOf": [
1764
+ {
1765
+ "type": "boolean"
1766
+ },
1767
+ {
1768
+ "type": "object",
1769
+ "properties": {
1770
+ "port": {
1771
+ "anyOf": [
1772
+ {
1773
+ "type": "integer"
1774
+ },
1775
+ {
1776
+ "type": "string"
1777
+ }
1778
+ ]
1779
+ },
1780
+ "enabled": {
1781
+ "anyOf": [
1782
+ {
1783
+ "type": "boolean"
1784
+ },
1785
+ {
1786
+ "type": "string"
1787
+ }
1788
+ ]
1789
+ },
1790
+ "hostname": {
1791
+ "type": "string"
1792
+ },
1793
+ "endpoint": {
1794
+ "type": "string"
1795
+ },
1796
+ "auth": {
1797
+ "type": "object",
1798
+ "properties": {
1799
+ "username": {
1800
+ "type": "string"
1801
+ },
1802
+ "password": {
1803
+ "type": "string"
1804
+ }
1805
+ },
1806
+ "additionalProperties": false,
1807
+ "required": [
1808
+ "username",
1809
+ "password"
1810
+ ]
1811
+ },
1812
+ "labels": {
1813
+ "type": "object",
1814
+ "additionalProperties": {
1815
+ "type": "string"
1816
+ }
1817
+ },
1818
+ "readiness": {
1819
+ "anyOf": [
1820
+ {
1821
+ "type": "boolean"
1822
+ },
1823
+ {
1824
+ "type": "object",
1825
+ "properties": {
1826
+ "endpoint": {
1827
+ "type": "string"
1828
+ },
1829
+ "success": {
1830
+ "type": "object",
1831
+ "properties": {
1832
+ "statusCode": {
1833
+ "type": "number"
1834
+ },
1835
+ "body": {
1836
+ "type": "string"
1837
+ }
1838
+ },
1839
+ "additionalProperties": false
1840
+ },
1841
+ "fail": {
1842
+ "type": "object",
1843
+ "properties": {
1844
+ "statusCode": {
1845
+ "type": "number"
1846
+ },
1847
+ "body": {
1848
+ "type": "string"
1849
+ }
1850
+ },
1851
+ "additionalProperties": false
1852
+ }
1853
+ },
1854
+ "additionalProperties": false
1855
+ }
1856
+ ]
1857
+ },
1858
+ "liveness": {
1859
+ "anyOf": [
1860
+ {
1861
+ "type": "boolean"
1862
+ },
1863
+ {
1864
+ "type": "object",
1865
+ "properties": {
1866
+ "endpoint": {
1867
+ "type": "string"
1868
+ },
1869
+ "success": {
1870
+ "type": "object",
1871
+ "properties": {
1872
+ "statusCode": {
1873
+ "type": "number"
1874
+ },
1875
+ "body": {
1876
+ "type": "string"
1877
+ }
1878
+ },
1879
+ "additionalProperties": false
1880
+ },
1881
+ "fail": {
1882
+ "type": "object",
1883
+ "properties": {
1884
+ "statusCode": {
1885
+ "type": "number"
1886
+ },
1887
+ "body": {
1888
+ "type": "string"
1889
+ }
1890
+ },
1891
+ "additionalProperties": false
1892
+ }
1893
+ },
1894
+ "additionalProperties": false
1895
+ }
1896
+ ]
1897
+ },
1898
+ "additionalProperties": false
1899
+ }
1900
+ }
1901
+ ]
1902
+ },
1903
+ "telemetry": {
1904
+ "type": "object",
1905
+ "properties": {
1906
+ "enabled": {
1907
+ "anyOf": [
1908
+ {
1909
+ "type": "boolean"
1910
+ },
1911
+ {
1912
+ "type": "string"
1913
+ }
1914
+ ]
1915
+ },
1916
+ "serviceName": {
1917
+ "type": "string",
1918
+ "description": "The name of the service. Defaults to the folder name if not specified."
1919
+ },
1920
+ "version": {
1921
+ "type": "string",
1922
+ "description": "The version of the service (optional)"
1923
+ },
1924
+ "skip": {
1925
+ "type": "array",
1926
+ "description": "An array of paths to skip when creating spans. Useful for health checks and other endpoints that do not need to be traced.",
1927
+ "items": {
1928
+ "type": "object",
1929
+ "properties": {
1930
+ "path": {
1931
+ "type": "string",
1932
+ "description": "The path to skip. Can be a string or a regex."
1933
+ },
1934
+ "method": {
1935
+ "description": "HTTP method to skip",
1936
+ "type": "string",
1937
+ "enum": [
1938
+ "GET",
1939
+ "POST",
1940
+ "PUT",
1941
+ "DELETE",
1942
+ "PATCH",
1943
+ "HEAD",
1944
+ "OPTIONS"
1945
+ ]
1946
+ }
1947
+ }
1948
+ }
1949
+ },
1950
+ "exporter": {
1951
+ "anyOf": [
1952
+ {
1953
+ "type": "array",
1954
+ "items": {
1955
+ "type": "object",
1956
+ "properties": {
1957
+ "type": {
1958
+ "type": "string",
1959
+ "enum": [
1960
+ "console",
1961
+ "otlp",
1962
+ "zipkin",
1963
+ "memory",
1964
+ "file"
1965
+ ],
1966
+ "default": "console"
1967
+ },
1968
+ "options": {
1969
+ "type": "object",
1970
+ "description": "Options for the exporter. These are passed directly to the exporter.",
1971
+ "properties": {
1972
+ "url": {
1973
+ "type": "string",
1974
+ "description": "The URL to send the traces to. Not used for console or memory exporters."
1975
+ },
1976
+ "headers": {
1977
+ "type": "object",
1978
+ "description": "Headers to send to the exporter. Not used for console or memory exporters."
1979
+ },
1980
+ "path": {
1981
+ "type": "string",
1982
+ "description": "The path to write the traces to. Only for file exporter."
1983
+ }
1984
+ }
1985
+ },
1986
+ "additionalProperties": false
1987
+ }
1988
+ }
1989
+ },
1990
+ {
1991
+ "type": "object",
1992
+ "properties": {
1993
+ "type": {
1994
+ "type": "string",
1995
+ "enum": [
1996
+ "console",
1997
+ "otlp",
1998
+ "zipkin",
1999
+ "memory",
2000
+ "file"
2001
+ ],
2002
+ "default": "console"
2003
+ },
2004
+ "options": {
2005
+ "type": "object",
2006
+ "description": "Options for the exporter. These are passed directly to the exporter.",
2007
+ "properties": {
2008
+ "url": {
2009
+ "type": "string",
2010
+ "description": "The URL to send the traces to. Not used for console or memory exporters."
2011
+ },
2012
+ "headers": {
2013
+ "type": "object",
2014
+ "description": "Headers to send to the exporter. Not used for console or memory exporters."
2015
+ },
2016
+ "path": {
2017
+ "type": "string",
2018
+ "description": "The path to write the traces to. Only for file exporter."
2019
+ }
2020
+ }
2021
+ },
2022
+ "additionalProperties": false
2023
+ }
2024
+ }
2025
+ ]
2026
+ }
2027
+ },
2028
+ "required": [
2029
+ "serviceName"
2030
+ ],
2031
+ "additionalProperties": false
2032
+ },
2033
+ "inspectorOptions": {
2034
+ "type": "object",
2035
+ "properties": {
2036
+ "host": {
2037
+ "type": "string"
2038
+ },
2039
+ "port": {
2040
+ "type": "number"
2041
+ },
2042
+ "breakFirstLine": {
2043
+ "type": "boolean"
2044
+ },
2045
+ "watchDisabled": {
2046
+ "type": "boolean"
2047
+ }
2048
+ }
2049
+ },
2050
+ "serviceTimeout": {
2051
+ "anyOf": [
2052
+ {
2053
+ "type": "number",
2054
+ "minimum": 1
2055
+ },
2056
+ {
2057
+ "type": "string"
2058
+ }
2059
+ ],
2060
+ "default": 300000
2061
+ },
2062
+ "env": {
2063
+ "type": "object",
2064
+ "additionalProperties": {
2065
+ "type": "string"
2066
+ }
2067
+ },
2068
+ "sourceMaps": {
2069
+ "type": "boolean",
2070
+ "default": false
2071
+ },
2072
+ "scheduler": {
2073
+ "type": "array",
2074
+ "items": {
2075
+ "type": "object",
2076
+ "properties": {
2077
+ "enabled": {
2078
+ "anyOf": [
2079
+ {
2080
+ "type": "boolean"
2081
+ },
2082
+ {
2083
+ "type": "string"
2084
+ }
2085
+ ],
2086
+ "default": true
2087
+ },
2088
+ "name": {
2089
+ "type": "string"
2090
+ },
2091
+ "cron": {
2092
+ "type": "string"
2093
+ },
2094
+ "callbackUrl": {
2095
+ "type": "string"
2096
+ },
2097
+ "method": {
2098
+ "type": "string",
2099
+ "enum": [
2100
+ "GET",
2101
+ "POST",
2102
+ "PUT",
2103
+ "PATCH",
2104
+ "DELETE"
2105
+ ],
2106
+ "default": "GET"
2107
+ },
2108
+ "headers": {
2109
+ "type": "object",
2110
+ "additionalProperties": {
2111
+ "type": "string"
2112
+ }
2113
+ },
2114
+ "body": {
2115
+ "anyOf": [
2116
+ {
2117
+ "type": "string"
2118
+ },
2119
+ {
2120
+ "type": "object",
2121
+ "additionalProperties": true
2122
+ }
2123
+ ]
2124
+ },
2125
+ "maxRetries": {
2126
+ "type": "number",
2127
+ "minimum": 0,
2128
+ "default": 3
2129
+ }
2130
+ },
2131
+ "required": [
2132
+ "name",
2133
+ "cron",
2134
+ "callbackUrl"
2135
+ ]
2136
+ }
2137
+ }
2138
+ },
2139
+ "additionalProperties": false
1123
2140
  }
1124
2141
  },
1125
2142
  "additionalProperties": false,