opencode-windows-scheduler 1.0.0 → 1.2.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.
Files changed (93) hide show
  1. package/CHANGELOG.md +58 -7
  2. package/README.md +14 -4
  3. package/README.ru.md +14 -4
  4. package/ROADMAP.md +30 -20
  5. package/dist/core/analytics.d.ts +129 -0
  6. package/dist/core/analytics.d.ts.map +1 -0
  7. package/dist/core/analytics.js +286 -0
  8. package/dist/core/dry-run.d.ts +13 -0
  9. package/dist/core/dry-run.d.ts.map +1 -1
  10. package/dist/core/dry-run.js +30 -0
  11. package/dist/core/matrix.d.ts.map +1 -1
  12. package/dist/core/matrix.js +10 -0
  13. package/dist/core/ps-wrapper.d.ts +32 -2
  14. package/dist/core/ps-wrapper.d.ts.map +1 -1
  15. package/dist/core/ps-wrapper.js +101 -3
  16. package/dist/core/retention.d.ts +29 -0
  17. package/dist/core/retention.d.ts.map +1 -0
  18. package/dist/core/retention.js +98 -0
  19. package/dist/core/schedule-gate.d.ts +2 -0
  20. package/dist/core/schedule-gate.d.ts.map +1 -0
  21. package/dist/core/schedule-gate.js +182 -0
  22. package/dist/core/schedule-v2.d.ts +88 -0
  23. package/dist/core/schedule-v2.d.ts.map +1 -0
  24. package/dist/core/schedule-v2.js +496 -0
  25. package/dist/core/scheduler/types.d.ts +15 -0
  26. package/dist/core/scheduler/types.d.ts.map +1 -1
  27. package/dist/core/scheduler/windows.d.ts.map +1 -1
  28. package/dist/core/scheduler/windows.js +13 -1
  29. package/dist/core/wrappers/bash.d.ts +15 -0
  30. package/dist/core/wrappers/bash.d.ts.map +1 -1
  31. package/dist/core/wrappers/bash.js +44 -1
  32. package/dist/db/history-repo.d.ts +41 -0
  33. package/dist/db/history-repo.d.ts.map +1 -1
  34. package/dist/db/history-repo.js +78 -0
  35. package/dist/db/schema.d.ts +1 -1
  36. package/dist/db/schema.d.ts.map +1 -1
  37. package/dist/db/schema.js +11 -0
  38. package/dist/index.d.ts +117 -0
  39. package/dist/index.d.ts.map +1 -1
  40. package/dist/index.js +1094 -56
  41. package/dist/notifications.d.ts +112 -6
  42. package/dist/notifications.d.ts.map +1 -1
  43. package/dist/notifications.js +396 -34
  44. package/dist/profiles.d.ts +60 -0
  45. package/dist/profiles.d.ts.map +1 -0
  46. package/dist/profiles.js +209 -0
  47. package/dist/rpc.d.ts +645 -0
  48. package/dist/rpc.d.ts.map +1 -1
  49. package/dist/rpc.js +251 -2
  50. package/dist/server.d.ts.map +1 -1
  51. package/dist/server.js +200 -7
  52. package/dist/settings.d.ts +80 -0
  53. package/dist/settings.d.ts.map +1 -1
  54. package/dist/settings.js +159 -8
  55. package/dist/task-transfer.d.ts +13 -0
  56. package/dist/task-transfer.d.ts.map +1 -1
  57. package/dist/task-transfer.js +26 -0
  58. package/dist/types.d.ts.map +1 -1
  59. package/dist/types.js +3 -11
  60. package/dist/version.d.ts +8 -0
  61. package/dist/version.d.ts.map +1 -0
  62. package/dist/version.js +27 -0
  63. package/dist/workspaces.d.ts +43 -0
  64. package/dist/workspaces.d.ts.map +1 -1
  65. package/dist/workspaces.js +174 -8
  66. package/docs/ARCHITECTURE.md +45 -13
  67. package/docs/FEATURES.md +103 -12
  68. package/gui-experimental.cjs +4 -2
  69. package/package.json +8 -2
  70. package/src/core/analytics.ts +414 -0
  71. package/src/core/dry-run.ts +42 -0
  72. package/src/core/matrix.ts +10 -0
  73. package/src/core/ps-wrapper.ts +117 -3
  74. package/src/core/retention.ts +141 -0
  75. package/src/core/schedule-gate.ts +213 -0
  76. package/src/core/schedule-v2.ts +533 -0
  77. package/src/core/scheduler/types.ts +15 -0
  78. package/src/core/scheduler/windows.ts +13 -1
  79. package/src/core/wrappers/bash.ts +60 -0
  80. package/src/db/history-repo.ts +116 -0
  81. package/src/db/schema.ts +14 -0
  82. package/src/gui.tsx +3613 -2725
  83. package/src/index.ts +1325 -55
  84. package/src/notifications.ts +516 -40
  85. package/src/profiles.ts +236 -0
  86. package/src/rpc.ts +267 -2
  87. package/src/server.ts +226 -7
  88. package/src/settings.ts +285 -9
  89. package/src/task-transfer.ts +44 -0
  90. package/src/types.ts +3 -13
  91. package/src/version.ts +27 -0
  92. package/src/workspaces.ts +214 -8
  93. package/dist/gui-experimental.cjs +0 -1
package/dist/rpc.d.ts CHANGED
@@ -98,6 +98,22 @@ export declare const SchedulerRpc: {
98
98
  readonly watchPath: {
99
99
  readonly type: readonly ["string", "null"];
100
100
  };
101
+ /** IANA-часовой пояс задачи (Спринт 19; null — системный). */
102
+ readonly timezone: {
103
+ readonly type: readonly ["string", "null"];
104
+ };
105
+ /** Начало окна запуска "HH:MM" (null — без окна). */
106
+ readonly notBefore: {
107
+ readonly type: readonly ["string", "null"];
108
+ };
109
+ /** Конец окна запуска "HH:MM" (null — без окна). */
110
+ readonly notAfter: {
111
+ readonly type: readonly ["string", "null"];
112
+ };
113
+ /** Пауза до даты в ISO (null — автопродолжение не запланировано). */
114
+ readonly pausedUntil: {
115
+ readonly type: readonly ["string", "null"];
116
+ };
101
117
  /** Рабочая директория задачи (null — папка проекта по умолчанию). */
102
118
  readonly workingDirectory: {
103
119
  readonly type: readonly ["string", "null"];
@@ -376,6 +392,18 @@ export declare const SchedulerRpc: {
376
392
  };
377
393
  readonly required: readonly ["workspaceIds"];
378
394
  };
395
+ /** IANA-часовой пояс задачи (например, Europe/Moscow). Пусто — системный. */
396
+ readonly timezone: {
397
+ readonly type: "string";
398
+ };
399
+ /** Начало окна запуска "HH:MM"; вне окна запуск переносится. */
400
+ readonly notBefore: {
401
+ readonly type: "string";
402
+ };
403
+ /** Конец окна запуска "HH:MM"; может быть меньше notBefore (через полночь). */
404
+ readonly notAfter: {
405
+ readonly type: "string";
406
+ };
379
407
  };
380
408
  readonly required: readonly ["name", "schedule", "prompt"];
381
409
  };
@@ -445,6 +473,13 @@ export declare const SchedulerRpc: {
445
473
  readonly name: {
446
474
  readonly type: "string";
447
475
  };
476
+ /**
477
+ * Только для pause: пауза до указанного момента (ISO). Плагин включит
478
+ * задачу автоматически; пусто — бессрочная пауза.
479
+ */
480
+ readonly until: {
481
+ readonly type: "string";
482
+ };
448
483
  };
449
484
  readonly required: readonly ["name"];
450
485
  };
@@ -468,6 +503,13 @@ export declare const SchedulerRpc: {
468
503
  readonly name: {
469
504
  readonly type: "string";
470
505
  };
506
+ /**
507
+ * Только для pause: пауза до указанного момента (ISO). Плагин включит
508
+ * задачу автоматически; пусто — бессрочная пауза.
509
+ */
510
+ readonly until: {
511
+ readonly type: "string";
512
+ };
471
513
  };
472
514
  readonly required: readonly ["name"];
473
515
  };
@@ -634,6 +676,18 @@ export declare const SchedulerRpc: {
634
676
  };
635
677
  readonly required: readonly ["workspaceIds"];
636
678
  };
679
+ /** IANA-часовой пояс задачи. Пустая строка — сбросить на системный. */
680
+ readonly timezone: {
681
+ readonly type: "string";
682
+ };
683
+ /** Начало окна запуска "HH:MM". Пустая строка — сбросить окно. */
684
+ readonly notBefore: {
685
+ readonly type: "string";
686
+ };
687
+ /** Конец окна запуска "HH:MM". Пустая строка — сбросить окно. */
688
+ readonly notAfter: {
689
+ readonly type: "string";
690
+ };
637
691
  };
638
692
  readonly required: readonly ["name"];
639
693
  };
@@ -683,6 +737,10 @@ export declare const SchedulerRpc: {
683
737
  readonly limit: {
684
738
  readonly type: "number";
685
739
  };
740
+ /** Фильтр по имени задачи (регистр не важен). */
741
+ readonly taskName: {
742
+ readonly type: "string";
743
+ };
686
744
  };
687
745
  readonly additionalProperties: false;
688
746
  };
@@ -1225,6 +1283,86 @@ export declare const SchedulerRpc: {
1225
1283
  readonly required: readonly ["success", "message", "removed"];
1226
1284
  };
1227
1285
  };
1286
+ readonly cleanup_history: {
1287
+ readonly input: {
1288
+ readonly type: "object";
1289
+ readonly properties: {
1290
+ /** Удалять записи старше N дней (0 — выключить ограничение по возрасту). */
1291
+ readonly retentionDays: {
1292
+ readonly type: "number";
1293
+ };
1294
+ /** Хранить не более N записей (0 — без ограничения). */
1295
+ readonly maxRecords: {
1296
+ readonly type: "number";
1297
+ };
1298
+ };
1299
+ readonly additionalProperties: false;
1300
+ };
1301
+ readonly output: {
1302
+ readonly type: "object";
1303
+ readonly properties: {
1304
+ readonly success: {
1305
+ readonly type: "boolean";
1306
+ };
1307
+ readonly message: {
1308
+ readonly type: "string";
1309
+ };
1310
+ readonly deleted: {
1311
+ readonly type: "number";
1312
+ };
1313
+ readonly deletedByAge: {
1314
+ readonly type: "number";
1315
+ };
1316
+ readonly deletedByCount: {
1317
+ readonly type: "number";
1318
+ };
1319
+ readonly kept: {
1320
+ readonly type: "number";
1321
+ };
1322
+ readonly retentionDays: {
1323
+ readonly type: "number";
1324
+ };
1325
+ readonly maxRecords: {
1326
+ readonly type: "number";
1327
+ };
1328
+ readonly vacuumed: {
1329
+ readonly type: "boolean";
1330
+ };
1331
+ };
1332
+ readonly required: readonly ["success", "message", "deleted", "kept"];
1333
+ };
1334
+ };
1335
+ readonly get_analytics: {
1336
+ readonly input: {
1337
+ readonly type: "object";
1338
+ readonly properties: {
1339
+ /** Окно анализа в днях (по умолчанию 14, максимум 365). */
1340
+ readonly days: {
1341
+ readonly type: "number";
1342
+ };
1343
+ /** Сколько строк в топах (по умолчанию 10). */
1344
+ readonly topLimit: {
1345
+ readonly type: "number";
1346
+ };
1347
+ };
1348
+ readonly additionalProperties: false;
1349
+ };
1350
+ readonly output: {
1351
+ readonly type: "object";
1352
+ readonly properties: {
1353
+ readonly success: {
1354
+ readonly type: "boolean";
1355
+ };
1356
+ readonly report: {
1357
+ readonly type: readonly ["object", "null"];
1358
+ };
1359
+ readonly error: {
1360
+ readonly type: "string";
1361
+ };
1362
+ };
1363
+ readonly required: readonly ["success", "report"];
1364
+ };
1365
+ };
1228
1366
  readonly expand_matrix_preview: {
1229
1367
  readonly input: {
1230
1368
  readonly type: "object";
@@ -1315,6 +1453,17 @@ export declare const SchedulerRpc: {
1315
1453
  readonly color: {
1316
1454
  readonly type: readonly ["string", "null"];
1317
1455
  };
1456
+ /** Env-переменные workspace; значения секретов замаскированы (***). */
1457
+ readonly env: {
1458
+ readonly type: readonly ["object", "null"];
1459
+ readonly additionalProperties: {
1460
+ readonly type: "string";
1461
+ };
1462
+ };
1463
+ /** Путь к .env-файлу workspace (null — не задан). */
1464
+ readonly envFile: {
1465
+ readonly type: readonly ["string", "null"];
1466
+ };
1318
1467
  readonly createdAt: {
1319
1468
  readonly type: "string";
1320
1469
  };
@@ -1339,6 +1488,17 @@ export declare const SchedulerRpc: {
1339
1488
  readonly color: {
1340
1489
  readonly type: "string";
1341
1490
  };
1491
+ /** Env-переменные workspace (ключ → значение). */
1492
+ readonly env: {
1493
+ readonly type: readonly ["object", "null"];
1494
+ readonly additionalProperties: {
1495
+ readonly type: "string";
1496
+ };
1497
+ };
1498
+ /** Путь к .env-файлу workspace. */
1499
+ readonly envFile: {
1500
+ readonly type: readonly ["string", "null"];
1501
+ };
1342
1502
  };
1343
1503
  readonly required: readonly ["path"];
1344
1504
  readonly additionalProperties: false;
@@ -1370,6 +1530,17 @@ export declare const SchedulerRpc: {
1370
1530
  readonly color: {
1371
1531
  readonly type: readonly ["string", "null"];
1372
1532
  };
1533
+ /** Env-переменные workspace; значения секретов замаскированы (***). */
1534
+ readonly env: {
1535
+ readonly type: readonly ["object", "null"];
1536
+ readonly additionalProperties: {
1537
+ readonly type: "string";
1538
+ };
1539
+ };
1540
+ /** Путь к .env-файлу workspace (null — не задан). */
1541
+ readonly envFile: {
1542
+ readonly type: readonly ["string", "null"];
1543
+ };
1373
1544
  readonly createdAt: {
1374
1545
  readonly type: "string";
1375
1546
  };
@@ -1399,6 +1570,17 @@ export declare const SchedulerRpc: {
1399
1570
  readonly color: {
1400
1571
  readonly type: "string";
1401
1572
  };
1573
+ /** Env-переменные workspace; null — очистить, отсутствие — не менять. */
1574
+ readonly env: {
1575
+ readonly type: readonly ["object", "null"];
1576
+ readonly additionalProperties: {
1577
+ readonly type: "string";
1578
+ };
1579
+ };
1580
+ /** Путь к .env-файлу; null — очистить. */
1581
+ readonly envFile: {
1582
+ readonly type: readonly ["string", "null"];
1583
+ };
1402
1584
  };
1403
1585
  readonly required: readonly ["id"];
1404
1586
  readonly additionalProperties: false;
@@ -1430,6 +1612,17 @@ export declare const SchedulerRpc: {
1430
1612
  readonly color: {
1431
1613
  readonly type: readonly ["string", "null"];
1432
1614
  };
1615
+ /** Env-переменные workspace; значения секретов замаскированы (***). */
1616
+ readonly env: {
1617
+ readonly type: readonly ["object", "null"];
1618
+ readonly additionalProperties: {
1619
+ readonly type: "string";
1620
+ };
1621
+ };
1622
+ /** Путь к .env-файлу workspace (null — не задан). */
1623
+ readonly envFile: {
1624
+ readonly type: readonly ["string", "null"];
1625
+ };
1433
1626
  readonly createdAt: {
1434
1627
  readonly type: "string";
1435
1628
  };
@@ -1466,6 +1659,157 @@ export declare const SchedulerRpc: {
1466
1659
  readonly required: readonly ["success"];
1467
1660
  };
1468
1661
  };
1662
+ readonly get_profiles: {
1663
+ readonly input: {
1664
+ readonly type: "object";
1665
+ readonly properties: {};
1666
+ readonly additionalProperties: false;
1667
+ };
1668
+ readonly output: {
1669
+ readonly type: "object";
1670
+ readonly properties: {
1671
+ readonly current: {
1672
+ readonly type: "string";
1673
+ };
1674
+ /** true — профиль задан переменной OPENCODE_SCHEDULER_PROFILE. */
1675
+ readonly pinnedByEnv: {
1676
+ readonly type: "boolean";
1677
+ };
1678
+ readonly profiles: {
1679
+ readonly type: "array";
1680
+ readonly items: {
1681
+ readonly type: "object";
1682
+ readonly properties: {
1683
+ readonly name: {
1684
+ readonly type: "string";
1685
+ };
1686
+ readonly dir: {
1687
+ readonly type: "string";
1688
+ };
1689
+ readonly port: {
1690
+ readonly type: readonly ["number", "null"];
1691
+ };
1692
+ readonly isDefault: {
1693
+ readonly type: "boolean";
1694
+ };
1695
+ readonly active: {
1696
+ readonly type: "boolean";
1697
+ };
1698
+ };
1699
+ readonly required: readonly ["name", "dir", "isDefault", "active"];
1700
+ };
1701
+ };
1702
+ };
1703
+ readonly required: readonly ["current", "pinnedByEnv", "profiles"];
1704
+ };
1705
+ };
1706
+ readonly set_profile: {
1707
+ readonly input: {
1708
+ readonly type: "object";
1709
+ readonly properties: {
1710
+ readonly name: {
1711
+ readonly type: "string";
1712
+ };
1713
+ };
1714
+ readonly required: readonly ["name"];
1715
+ readonly additionalProperties: false;
1716
+ };
1717
+ readonly output: {
1718
+ readonly type: "object";
1719
+ readonly properties: {
1720
+ readonly success: {
1721
+ readonly type: "boolean";
1722
+ };
1723
+ readonly message: {
1724
+ readonly type: "string";
1725
+ };
1726
+ readonly current: {
1727
+ readonly type: "string";
1728
+ };
1729
+ /** true — изменения вступят в силу после перезапуска OpenCode. */
1730
+ readonly restartRequired: {
1731
+ readonly type: "boolean";
1732
+ };
1733
+ };
1734
+ readonly required: readonly ["success", "message", "current", "restartRequired"];
1735
+ };
1736
+ };
1737
+ readonly create_profile: {
1738
+ readonly input: {
1739
+ readonly type: "object";
1740
+ readonly properties: {
1741
+ readonly name: {
1742
+ readonly type: "string";
1743
+ };
1744
+ /** Порт дашборда профиля (по умолчанию — свободный 3782+). */
1745
+ readonly port: {
1746
+ readonly type: "number";
1747
+ };
1748
+ };
1749
+ readonly required: readonly ["name"];
1750
+ readonly additionalProperties: false;
1751
+ };
1752
+ readonly output: {
1753
+ readonly type: "object";
1754
+ readonly properties: {
1755
+ readonly success: {
1756
+ readonly type: "boolean";
1757
+ };
1758
+ readonly message: {
1759
+ readonly type: "string";
1760
+ };
1761
+ readonly profile: {
1762
+ readonly type: "object";
1763
+ readonly properties: {
1764
+ readonly name: {
1765
+ readonly type: "string";
1766
+ };
1767
+ readonly dir: {
1768
+ readonly type: "string";
1769
+ };
1770
+ readonly port: {
1771
+ readonly type: readonly ["number", "null"];
1772
+ };
1773
+ readonly isDefault: {
1774
+ readonly type: "boolean";
1775
+ };
1776
+ readonly active: {
1777
+ readonly type: "boolean";
1778
+ };
1779
+ };
1780
+ readonly required: readonly ["name", "dir", "isDefault", "active"];
1781
+ };
1782
+ readonly error: {
1783
+ readonly type: "string";
1784
+ };
1785
+ };
1786
+ readonly required: readonly ["success"];
1787
+ };
1788
+ };
1789
+ readonly delete_profile: {
1790
+ readonly input: {
1791
+ readonly type: "object";
1792
+ readonly properties: {
1793
+ readonly name: {
1794
+ readonly type: "string";
1795
+ };
1796
+ };
1797
+ readonly required: readonly ["name"];
1798
+ readonly additionalProperties: false;
1799
+ };
1800
+ readonly output: {
1801
+ readonly type: "object";
1802
+ readonly properties: {
1803
+ readonly success: {
1804
+ readonly type: "boolean";
1805
+ };
1806
+ readonly message: {
1807
+ readonly type: "string";
1808
+ };
1809
+ };
1810
+ readonly required: readonly ["success", "message"];
1811
+ };
1812
+ };
1469
1813
  readonly export_tasks: {
1470
1814
  readonly input: {
1471
1815
  readonly type: "object";
@@ -1556,12 +1900,106 @@ export declare const SchedulerRpc: {
1556
1900
  readonly url: {
1557
1901
  readonly type: "string";
1558
1902
  };
1903
+ readonly timeoutMs: {
1904
+ readonly type: "number";
1905
+ };
1906
+ readonly retryCount: {
1907
+ readonly type: "number";
1908
+ };
1909
+ readonly retryDelayMs: {
1910
+ readonly type: "number";
1911
+ };
1559
1912
  };
1560
1913
  readonly required: readonly ["enabled", "url"];
1561
1914
  };
1915
+ readonly templates: {
1916
+ readonly type: "object";
1917
+ readonly properties: {
1918
+ readonly success: {
1919
+ readonly type: "string";
1920
+ };
1921
+ readonly error: {
1922
+ readonly type: "string";
1923
+ };
1924
+ };
1925
+ readonly required: readonly ["success", "error"];
1926
+ };
1927
+ readonly filters: {
1928
+ readonly type: "object";
1929
+ readonly properties: {
1930
+ readonly include: {
1931
+ readonly type: "array";
1932
+ readonly items: {
1933
+ readonly type: "string";
1934
+ };
1935
+ };
1936
+ readonly exclude: {
1937
+ readonly type: "array";
1938
+ readonly items: {
1939
+ readonly type: "string";
1940
+ };
1941
+ };
1942
+ };
1943
+ readonly required: readonly ["include", "exclude"];
1944
+ };
1945
+ readonly matrix: {
1946
+ readonly type: "object";
1947
+ readonly properties: {
1948
+ readonly enabled: {
1949
+ readonly type: "boolean";
1950
+ };
1951
+ readonly onPartial: {
1952
+ readonly type: "boolean";
1953
+ };
1954
+ readonly onAllFailed: {
1955
+ readonly type: "boolean";
1956
+ };
1957
+ readonly stuckAfterMinutes: {
1958
+ readonly type: "number";
1959
+ };
1960
+ };
1961
+ readonly required: readonly ["enabled", "onPartial", "onAllFailed", "stuckAfterMinutes"];
1962
+ };
1963
+ readonly digest: {
1964
+ readonly type: "object";
1965
+ readonly properties: {
1966
+ readonly enabled: {
1967
+ readonly type: "boolean";
1968
+ };
1969
+ readonly frequency: {
1970
+ readonly type: "string";
1971
+ readonly enum: readonly ["daily", "weekly"];
1972
+ };
1973
+ readonly time: {
1974
+ readonly type: "string";
1975
+ };
1976
+ readonly lastSentAt: {
1977
+ readonly type: readonly ["string", "null"];
1978
+ };
1979
+ };
1980
+ readonly required: readonly ["enabled", "frequency", "time"];
1981
+ };
1562
1982
  };
1563
1983
  readonly required: readonly ["enabled", "onlyOnError"];
1564
1984
  };
1985
+ readonly history: {
1986
+ readonly type: "object";
1987
+ readonly properties: {
1988
+ readonly retentionDays: {
1989
+ readonly type: "number";
1990
+ };
1991
+ readonly maxRecords: {
1992
+ readonly type: "number";
1993
+ };
1994
+ readonly lastCleanupAt: {
1995
+ readonly type: readonly ["string", "null"];
1996
+ };
1997
+ readonly lastCleanupDeleted: {
1998
+ readonly type: "number";
1999
+ };
2000
+ };
2001
+ readonly required: readonly ["retentionDays", "maxRecords"];
2002
+ };
1565
2003
  };
1566
2004
  readonly required: readonly ["maxConcurrent", "winterMode", "notifications"];
1567
2005
  };
@@ -1594,12 +2032,106 @@ export declare const SchedulerRpc: {
1594
2032
  readonly url: {
1595
2033
  readonly type: "string";
1596
2034
  };
2035
+ readonly timeoutMs: {
2036
+ readonly type: "number";
2037
+ };
2038
+ readonly retryCount: {
2039
+ readonly type: "number";
2040
+ };
2041
+ readonly retryDelayMs: {
2042
+ readonly type: "number";
2043
+ };
1597
2044
  };
1598
2045
  readonly required: readonly ["enabled", "url"];
1599
2046
  };
2047
+ readonly templates: {
2048
+ readonly type: "object";
2049
+ readonly properties: {
2050
+ readonly success: {
2051
+ readonly type: "string";
2052
+ };
2053
+ readonly error: {
2054
+ readonly type: "string";
2055
+ };
2056
+ };
2057
+ readonly required: readonly ["success", "error"];
2058
+ };
2059
+ readonly filters: {
2060
+ readonly type: "object";
2061
+ readonly properties: {
2062
+ readonly include: {
2063
+ readonly type: "array";
2064
+ readonly items: {
2065
+ readonly type: "string";
2066
+ };
2067
+ };
2068
+ readonly exclude: {
2069
+ readonly type: "array";
2070
+ readonly items: {
2071
+ readonly type: "string";
2072
+ };
2073
+ };
2074
+ };
2075
+ readonly required: readonly ["include", "exclude"];
2076
+ };
2077
+ readonly matrix: {
2078
+ readonly type: "object";
2079
+ readonly properties: {
2080
+ readonly enabled: {
2081
+ readonly type: "boolean";
2082
+ };
2083
+ readonly onPartial: {
2084
+ readonly type: "boolean";
2085
+ };
2086
+ readonly onAllFailed: {
2087
+ readonly type: "boolean";
2088
+ };
2089
+ readonly stuckAfterMinutes: {
2090
+ readonly type: "number";
2091
+ };
2092
+ };
2093
+ readonly required: readonly ["enabled", "onPartial", "onAllFailed", "stuckAfterMinutes"];
2094
+ };
2095
+ readonly digest: {
2096
+ readonly type: "object";
2097
+ readonly properties: {
2098
+ readonly enabled: {
2099
+ readonly type: "boolean";
2100
+ };
2101
+ readonly frequency: {
2102
+ readonly type: "string";
2103
+ readonly enum: readonly ["daily", "weekly"];
2104
+ };
2105
+ readonly time: {
2106
+ readonly type: "string";
2107
+ };
2108
+ readonly lastSentAt: {
2109
+ readonly type: readonly ["string", "null"];
2110
+ };
2111
+ };
2112
+ readonly required: readonly ["enabled", "frequency", "time"];
2113
+ };
1600
2114
  };
1601
2115
  readonly required: readonly ["enabled", "onlyOnError"];
1602
2116
  };
2117
+ readonly history: {
2118
+ readonly type: "object";
2119
+ readonly properties: {
2120
+ readonly retentionDays: {
2121
+ readonly type: "number";
2122
+ };
2123
+ readonly maxRecords: {
2124
+ readonly type: "number";
2125
+ };
2126
+ readonly lastCleanupAt: {
2127
+ readonly type: readonly ["string", "null"];
2128
+ };
2129
+ readonly lastCleanupDeleted: {
2130
+ readonly type: "number";
2131
+ };
2132
+ };
2133
+ readonly required: readonly ["retentionDays", "maxRecords"];
2134
+ };
1603
2135
  };
1604
2136
  readonly additionalProperties: false;
1605
2137
  };
@@ -1633,12 +2165,106 @@ export declare const SchedulerRpc: {
1633
2165
  readonly url: {
1634
2166
  readonly type: "string";
1635
2167
  };
2168
+ readonly timeoutMs: {
2169
+ readonly type: "number";
2170
+ };
2171
+ readonly retryCount: {
2172
+ readonly type: "number";
2173
+ };
2174
+ readonly retryDelayMs: {
2175
+ readonly type: "number";
2176
+ };
1636
2177
  };
1637
2178
  readonly required: readonly ["enabled", "url"];
1638
2179
  };
2180
+ readonly templates: {
2181
+ readonly type: "object";
2182
+ readonly properties: {
2183
+ readonly success: {
2184
+ readonly type: "string";
2185
+ };
2186
+ readonly error: {
2187
+ readonly type: "string";
2188
+ };
2189
+ };
2190
+ readonly required: readonly ["success", "error"];
2191
+ };
2192
+ readonly filters: {
2193
+ readonly type: "object";
2194
+ readonly properties: {
2195
+ readonly include: {
2196
+ readonly type: "array";
2197
+ readonly items: {
2198
+ readonly type: "string";
2199
+ };
2200
+ };
2201
+ readonly exclude: {
2202
+ readonly type: "array";
2203
+ readonly items: {
2204
+ readonly type: "string";
2205
+ };
2206
+ };
2207
+ };
2208
+ readonly required: readonly ["include", "exclude"];
2209
+ };
2210
+ readonly matrix: {
2211
+ readonly type: "object";
2212
+ readonly properties: {
2213
+ readonly enabled: {
2214
+ readonly type: "boolean";
2215
+ };
2216
+ readonly onPartial: {
2217
+ readonly type: "boolean";
2218
+ };
2219
+ readonly onAllFailed: {
2220
+ readonly type: "boolean";
2221
+ };
2222
+ readonly stuckAfterMinutes: {
2223
+ readonly type: "number";
2224
+ };
2225
+ };
2226
+ readonly required: readonly ["enabled", "onPartial", "onAllFailed", "stuckAfterMinutes"];
2227
+ };
2228
+ readonly digest: {
2229
+ readonly type: "object";
2230
+ readonly properties: {
2231
+ readonly enabled: {
2232
+ readonly type: "boolean";
2233
+ };
2234
+ readonly frequency: {
2235
+ readonly type: "string";
2236
+ readonly enum: readonly ["daily", "weekly"];
2237
+ };
2238
+ readonly time: {
2239
+ readonly type: "string";
2240
+ };
2241
+ readonly lastSentAt: {
2242
+ readonly type: readonly ["string", "null"];
2243
+ };
2244
+ };
2245
+ readonly required: readonly ["enabled", "frequency", "time"];
2246
+ };
1639
2247
  };
1640
2248
  readonly required: readonly ["enabled", "onlyOnError"];
1641
2249
  };
2250
+ readonly history: {
2251
+ readonly type: "object";
2252
+ readonly properties: {
2253
+ readonly retentionDays: {
2254
+ readonly type: "number";
2255
+ };
2256
+ readonly maxRecords: {
2257
+ readonly type: "number";
2258
+ };
2259
+ readonly lastCleanupAt: {
2260
+ readonly type: readonly ["string", "null"];
2261
+ };
2262
+ readonly lastCleanupDeleted: {
2263
+ readonly type: "number";
2264
+ };
2265
+ };
2266
+ readonly required: readonly ["retentionDays", "maxRecords"];
2267
+ };
1642
2268
  };
1643
2269
  readonly required: readonly ["success", "maxConcurrent", "winterMode", "notifications"];
1644
2270
  };
@@ -2045,6 +2671,25 @@ export declare const SchedulerRpc: {
2045
2671
  readonly required: readonly ["success", "message"];
2046
2672
  };
2047
2673
  };
2674
+ readonly send_digest: {
2675
+ readonly input: {
2676
+ readonly type: "object";
2677
+ readonly properties: {};
2678
+ readonly additionalProperties: false;
2679
+ };
2680
+ readonly output: {
2681
+ readonly type: "object";
2682
+ readonly properties: {
2683
+ readonly success: {
2684
+ readonly type: "boolean";
2685
+ };
2686
+ readonly message: {
2687
+ readonly type: "string";
2688
+ };
2689
+ };
2690
+ readonly required: readonly ["success", "message"];
2691
+ };
2692
+ };
2048
2693
  };
2049
2694
  readonly events: {};
2050
2695
  };