@flowdular/sdk 0.2.4 → 0.3.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.
Files changed (930) hide show
  1. package/.ai/agents/sandbox/business-manager.md +5 -1
  2. package/.ai/blueprints/author-spec/README.md +1 -1
  3. package/.ai/blueprints/author-spec/spec-requirements.yaml +44 -0
  4. package/.ai/blueprints/author-spec/steps.yaml +5 -5
  5. package/.ai/blueprints/author-spec/templates/module.yaml +99 -3
  6. package/.ai/blueprints/edit-module/gates.yaml +4 -0
  7. package/.ai/blueprints/edit-module/required-files.yaml +9 -0
  8. package/.ai/blueprints/new-module/gates.yaml +4 -0
  9. package/.ai/blueprints/new-module/spec-requirements.yaml +2 -2
  10. package/.ai/blueprints/release/gates.yaml +4 -0
  11. package/.ai/platform-capabilities.md +128 -0
  12. package/.ai/policies/capabilities.yaml +130 -3
  13. package/.ai/policies/path-ownership.yaml +5 -2
  14. package/.ai/policies/task-budgets.yaml +5 -3
  15. package/.ai/references/catalog/module.json +4 -4
  16. package/.ai/references/catalog/package.json +2 -2
  17. package/.ai/references/catalog/spec/module.yaml +5 -3
  18. package/.ai/references/catalog/src/platform.ts +2 -0
  19. package/.ai/references/catalog/src/services/catalog-service.ts +89 -1
  20. package/.ai/references/catalog/src/services/data-classes.ts +47 -0
  21. package/.ai/references/catalog/src/services/database-repository.ts +98 -1
  22. package/.ai/references/catalog/src/services/repository.ts +22 -1
  23. package/.ai/references/catalog/tests/data-classes.test.ts +157 -0
  24. package/.ai/references/catalog.provenance.json +12 -10
  25. package/.ai/skills/README.md +10 -0
  26. package/.ai/skills/agent-tool-design/SKILL.md +1 -2
  27. package/.ai/skills/auth-security-review/SKILL.md +1 -1
  28. package/.ai/skills/business-agent-design/SKILL.md +0 -1
  29. package/.ai/skills/cli-extension/SKILL.md +1 -1
  30. package/.ai/skills/deploy-operate/SKILL.md +119 -0
  31. package/.ai/skills/module-new/SKILL.md +29 -3
  32. package/.ai/skills/module-update/SKILL.md +9 -3
  33. package/.ai/skills/perf-audit/SKILL.md +0 -1
  34. package/.ai/skills/release-eject-pr/SKILL.md +0 -1
  35. package/.ai/skills/spec-interview/SKILL.md +120 -0
  36. package/.ai/skills/test-hardening/SKILL.md +1 -0
  37. package/.ai/skills/ux-design/SKILL.md +34 -3
  38. package/.ai/skills/variables/SKILL.md +0 -2
  39. package/.ai/skills/workflow-development/SKILL.md +0 -1
  40. package/AGENTS.md +4 -0
  41. package/docs/agent-contract.md +2 -2
  42. package/docs/design-system.md +185 -31
  43. package/modules/access/migrations/0001_access_core.down.sql +1 -0
  44. package/modules/access/migrations/0001_access_core.up.sql +28 -0
  45. package/modules/access/migrations/README.md +3 -0
  46. package/modules/access/module.json +33 -0
  47. package/modules/access/package.json +43 -0
  48. package/modules/access/spec/module.yaml +225 -0
  49. package/modules/access/src/acl/permissions.ts +6 -0
  50. package/modules/access/src/api/endpoints.ts +244 -0
  51. package/modules/access/src/client/ActivityView.tsrx +245 -0
  52. package/modules/access/src/client/AttestationsView.tsrx +176 -0
  53. package/modules/access/src/client/ReviewView.tsrx +586 -0
  54. package/modules/access/src/client/api.ts +132 -0
  55. package/modules/access/src/client/contribution.tsrx +41 -0
  56. package/modules/access/src/client/index.ts +41 -0
  57. package/modules/access/src/client/navigation.ts +57 -0
  58. package/modules/access/src/client/presentation.ts +69 -0
  59. package/modules/access/src/client/state.ts +72 -0
  60. package/modules/access/src/domain/types.ts +189 -0
  61. package/modules/access/src/index.ts +38 -0
  62. package/modules/access/src/platform.ts +60 -0
  63. package/modules/access/src/server/index.ts +42 -0
  64. package/modules/access/src/server/runtime.ts +105 -0
  65. package/modules/access/src/services/access-service.ts +298 -0
  66. package/modules/access/src/services/audit-window.ts +78 -0
  67. package/modules/access/src/services/auth-directory.ts +72 -0
  68. package/modules/access/src/services/changes.ts +91 -0
  69. package/modules/access/src/services/data-classes.ts +28 -0
  70. package/modules/access/src/services/database-repository.ts +185 -0
  71. package/modules/access/src/services/directory.ts +102 -0
  72. package/modules/access/src/services/index.ts +33 -0
  73. package/modules/access/src/services/list-exports.ts +150 -0
  74. package/modules/access/src/services/migration.ts +54 -0
  75. package/modules/access/src/services/repository.ts +30 -0
  76. package/modules/access/src/services/review.ts +178 -0
  77. package/modules/access/translations/en.json +155 -0
  78. package/modules/access/translations/pl.json +155 -0
  79. package/modules/agents/migrations/0022_credential_rotation_inventory.down.sql +2 -0
  80. package/modules/agents/migrations/0022_credential_rotation_inventory.up.sql +7 -0
  81. package/modules/agents/migrations/0023_agents_retention_indexes.down.sql +2 -0
  82. package/modules/agents/migrations/0023_agents_retention_indexes.up.sql +9 -0
  83. package/modules/agents/migrations/0024_agent_meter_refusals.down.sql +3 -0
  84. package/modules/agents/migrations/0024_agent_meter_refusals.up.sql +22 -0
  85. package/modules/agents/migrations/0025_agent_list_indexes.down.sql +3 -0
  86. package/modules/agents/migrations/0025_agent_list_indexes.up.sql +11 -0
  87. package/modules/agents/module.json +30 -4
  88. package/modules/agents/package.json +2 -1
  89. package/modules/agents/spec/module.yaml +63 -5
  90. package/modules/agents/src/api/endpoints.ts +291 -33
  91. package/modules/agents/src/cli/commands.json +11 -0
  92. package/modules/agents/src/cli/index.ts +45 -0
  93. package/modules/agents/src/client/AgentDashboardWidget.tsrx +19 -11
  94. package/modules/agents/src/client/AgentDefinitionList.tsrx +53 -10
  95. package/modules/agents/src/client/AgentPlaygroundView.tsrx +4 -4
  96. package/modules/agents/src/client/AgentProceduresView.tsrx +2 -2
  97. package/modules/agents/src/client/AgentRunsView.tsrx +143 -40
  98. package/modules/agents/src/client/AgentsView.tsrx +109 -33
  99. package/modules/agents/src/client/api.ts +99 -21
  100. package/modules/agents/src/client/state.ts +97 -0
  101. package/modules/agents/src/domain/types.ts +44 -4
  102. package/modules/agents/src/platform.ts +42 -0
  103. package/modules/agents/src/server/action-execution.ts +201 -106
  104. package/modules/agents/src/server/runtime.ts +32 -0
  105. package/modules/agents/src/services/agent-service.ts +158 -30
  106. package/modules/agents/src/services/credential-rotation.ts +185 -0
  107. package/modules/agents/src/services/credential-vault.ts +71 -46
  108. package/modules/agents/src/services/data-classes.ts +176 -0
  109. package/modules/agents/src/services/database-repository.ts +393 -101
  110. package/modules/agents/src/services/metering.ts +111 -0
  111. package/modules/agents/src/services/migration.ts +109 -0
  112. package/modules/agents/src/services/module-agent-preflight.ts +17 -9
  113. package/modules/agents/src/services/notifications.ts +98 -0
  114. package/modules/agents/src/services/provider-repository.ts +9 -18
  115. package/modules/agents/src/services/provider-service.ts +1 -9
  116. package/modules/agents/src/services/reports.ts +107 -0
  117. package/modules/agents/src/services/repository.ts +86 -6
  118. package/modules/agents/src/services/usage-service.ts +2 -0
  119. package/modules/agents/src/services/worker.ts +114 -4
  120. package/modules/agents/src/settings.ts +14 -3
  121. package/modules/agents/translations/en.json +14 -4
  122. package/modules/agents/translations/pl.json +14 -4
  123. package/modules/approvals/migrations/0001_approvals_core.down.sql +3 -0
  124. package/modules/approvals/migrations/0001_approvals_core.up.sql +78 -0
  125. package/modules/approvals/migrations/0002_approvals_expiry_routing_role.down.sql +2 -0
  126. package/modules/approvals/migrations/0002_approvals_expiry_routing_role.up.sql +19 -0
  127. package/modules/approvals/migrations/0003_approvals_retention_indexes.down.sql +6 -0
  128. package/modules/approvals/migrations/0003_approvals_retention_indexes.up.sql +14 -0
  129. package/modules/approvals/migrations/0004_approvals_inbox_keyset_indexes.down.sql +5 -0
  130. package/modules/approvals/migrations/0004_approvals_inbox_keyset_indexes.up.sql +12 -0
  131. package/modules/approvals/migrations/0005_approvals_grant_audit.down.sql +4 -0
  132. package/modules/approvals/migrations/0005_approvals_grant_audit.up.sql +20 -0
  133. package/modules/approvals/migrations/README.md +3 -0
  134. package/modules/approvals/module.json +34 -0
  135. package/modules/approvals/package.json +43 -0
  136. package/modules/approvals/spec/module.yaml +327 -0
  137. package/modules/approvals/src/acl/permissions.ts +7 -0
  138. package/modules/approvals/src/api/endpoints.ts +457 -0
  139. package/modules/approvals/src/client/ApprovalRequestDrawer.tsrx +138 -0
  140. package/modules/approvals/src/client/ApprovalsView.tsrx +562 -0
  141. package/modules/approvals/src/client/PendingCountWidget.tsrx +52 -0
  142. package/modules/approvals/src/client/api.ts +203 -0
  143. package/modules/approvals/src/client/approvals.css +51 -0
  144. package/modules/approvals/src/client/contribution.tsrx +44 -0
  145. package/modules/approvals/src/client/index.ts +26 -0
  146. package/modules/approvals/src/client/navigation.ts +39 -0
  147. package/modules/approvals/src/client/pending-count.ts +26 -0
  148. package/modules/approvals/src/client/presentation.ts +52 -0
  149. package/modules/approvals/src/client/state.ts +141 -0
  150. package/modules/approvals/src/domain/capability.ts +107 -0
  151. package/modules/approvals/src/domain/grant.ts +69 -0
  152. package/modules/approvals/src/domain/types.ts +168 -0
  153. package/modules/approvals/src/index.ts +61 -0
  154. package/modules/approvals/src/platform.ts +136 -0
  155. package/modules/approvals/src/server/index.ts +42 -0
  156. package/modules/approvals/src/server/runtime.ts +185 -0
  157. package/modules/approvals/src/services/approvals-service.ts +637 -0
  158. package/modules/approvals/src/services/callbacks.ts +75 -0
  159. package/modules/approvals/src/services/data-classes.ts +167 -0
  160. package/modules/approvals/src/services/database-repository.ts +783 -0
  161. package/modules/approvals/src/services/eligibility.ts +121 -0
  162. package/modules/approvals/src/services/expiry-runner.ts +81 -0
  163. package/modules/approvals/src/services/index.ts +31 -0
  164. package/modules/approvals/src/services/migration.ts +256 -0
  165. package/modules/approvals/src/services/notifications.ts +95 -0
  166. package/modules/approvals/src/services/repository.ts +169 -0
  167. package/modules/approvals/src/services/service-error.ts +70 -0
  168. package/modules/approvals/src/settings.ts +102 -0
  169. package/modules/approvals/translations/en.json +104 -0
  170. package/modules/approvals/translations/pl.json +104 -0
  171. package/modules/audit/migrations/0001_audit_core.down.sql +8 -0
  172. package/modules/audit/migrations/0001_audit_core.up.sql +107 -0
  173. package/modules/audit/migrations/0002_audit_sweep_routing_role.down.sql +2 -0
  174. package/modules/audit/migrations/0002_audit_sweep_routing_role.up.sql +21 -0
  175. package/modules/audit/migrations/0003_audit_export_request.down.sql +12 -0
  176. package/modules/audit/migrations/0003_audit_export_request.up.sql +40 -0
  177. package/modules/audit/migrations/0004_audit_hold_seal_erasure.down.sql +17 -0
  178. package/modules/audit/migrations/0004_audit_hold_seal_erasure.up.sql +192 -0
  179. package/modules/audit/migrations/0005_audit_event_format.down.sql +17 -0
  180. package/modules/audit/migrations/0005_audit_event_format.up.sql +60 -0
  181. package/modules/audit/migrations/0006_audit_own_class_walks.down.sql +3 -0
  182. package/modules/audit/migrations/0006_audit_own_class_walks.up.sql +14 -0
  183. package/modules/audit/migrations/README.md +3 -0
  184. package/modules/audit/module.json +32 -0
  185. package/modules/audit/package.json +49 -0
  186. package/modules/audit/spec/module.yaml +809 -0
  187. package/modules/audit/src/acl/permissions.ts +7 -0
  188. package/modules/audit/src/api/endpoints.ts +315 -0
  189. package/modules/audit/src/cli/commands.json +95 -0
  190. package/modules/audit/src/cli/index.ts +658 -0
  191. package/modules/audit/src/client/DataClassesView.tsrx +420 -0
  192. package/modules/audit/src/client/ExportsView.tsrx +256 -0
  193. package/modules/audit/src/client/HoldsView.tsrx +604 -0
  194. package/modules/audit/src/client/SweepsView.tsrx +251 -0
  195. package/modules/audit/src/client/api.ts +185 -0
  196. package/modules/audit/src/client/contribution.tsrx +52 -0
  197. package/modules/audit/src/client/index.ts +23 -0
  198. package/modules/audit/src/client/navigation.ts +74 -0
  199. package/modules/audit/src/client/presentation.ts +105 -0
  200. package/modules/audit/src/client/state.ts +86 -0
  201. package/modules/audit/src/domain/data-classes.ts +16 -0
  202. package/modules/audit/src/domain/types.ts +339 -0
  203. package/modules/audit/src/index.ts +76 -0
  204. package/modules/audit/src/platform.ts +44 -0
  205. package/modules/audit/src/server/index.ts +177 -0
  206. package/modules/audit/src/server/runtime.ts +303 -0
  207. package/modules/audit/src/services/anchor-key.ts +143 -0
  208. package/modules/audit/src/services/anchor-rotation.ts +147 -0
  209. package/modules/audit/src/services/audit-runners.ts +278 -0
  210. package/modules/audit/src/services/backup-guard.ts +95 -0
  211. package/modules/audit/src/services/database-repository.ts +1946 -0
  212. package/modules/audit/src/services/declared-classes.ts +64 -0
  213. package/modules/audit/src/services/erasure-port.ts +126 -0
  214. package/modules/audit/src/services/erasure-service.ts +770 -0
  215. package/modules/audit/src/services/export-directory.ts +106 -0
  216. package/modules/audit/src/services/export-service.ts +714 -0
  217. package/modules/audit/src/services/hold-service.ts +295 -0
  218. package/modules/audit/src/services/index.ts +17 -0
  219. package/modules/audit/src/services/migration.ts +658 -0
  220. package/modules/audit/src/services/own-classes.ts +318 -0
  221. package/modules/audit/src/services/platform-version.ts +23 -0
  222. package/modules/audit/src/services/repository.ts +495 -0
  223. package/modules/audit/src/services/retention-service.ts +191 -0
  224. package/modules/audit/src/services/seal-service.ts +769 -0
  225. package/modules/audit/src/services/service-error.ts +61 -0
  226. package/modules/audit/src/services/subject-keys.ts +90 -0
  227. package/modules/audit/src/services/sweep-service.ts +298 -0
  228. package/modules/audit/src/services/zip.ts +217 -0
  229. package/modules/audit/src/settings.ts +69 -0
  230. package/modules/audit/translations/en.json +210 -0
  231. package/modules/audit/translations/pl.json +210 -0
  232. package/modules/auth/README.md +77 -29
  233. package/modules/auth/migrations/0016_external_identities.up.sql +16 -0
  234. package/modules/auth/migrations/0017_mfa_key_id.up.sql +8 -0
  235. package/modules/auth/migrations/0018_retire_bundled_module_scopes.up.sql +29 -0
  236. package/modules/auth/migrations/0019_notifications_member_scopes.up.sql +44 -0
  237. package/modules/auth/migrations/0020_identity_providers.up.sql +61 -0
  238. package/modules/auth/migrations/0021_membership_status.up.sql +19 -0
  239. package/modules/auth/migrations/0022_auth_provider_scopes.up.sql +45 -0
  240. package/modules/auth/migrations/0023_enterprise_module_scopes.down.sql +19 -0
  241. package/modules/auth/migrations/0023_enterprise_module_scopes.up.sql +71 -0
  242. package/modules/auth/migrations/0024_approvals_member_scopes.down.sql +22 -0
  243. package/modules/auth/migrations/0024_approvals_member_scopes.up.sql +48 -0
  244. package/modules/auth/migrations/0025_audit_holds_owner_scope.down.sql +21 -0
  245. package/modules/auth/migrations/0025_audit_holds_owner_scope.up.sql +47 -0
  246. package/modules/auth/migrations/0026_auth_export_keyset_indexes.down.sql +6 -0
  247. package/modules/auth/migrations/0026_auth_export_keyset_indexes.up.sql +15 -0
  248. package/modules/auth/migrations/0027_workflow_automation_profile_scopes.down.sql +34 -0
  249. package/modules/auth/migrations/0027_workflow_automation_profile_scopes.up.sql +72 -0
  250. package/modules/auth/migrations/0028_auth_member_search_prefix_indexes.down.sql +6 -0
  251. package/modules/auth/migrations/0028_auth_member_search_prefix_indexes.up.sql +21 -0
  252. package/modules/auth/migrations/0029_reports_exports_access_scopes.down.sql +22 -0
  253. package/modules/auth/migrations/0029_reports_exports_access_scopes.up.sql +56 -0
  254. package/modules/auth/migrations/0030_auth_membership_keyset_index.down.sql +4 -0
  255. package/modules/auth/migrations/0030_auth_membership_keyset_index.up.sql +10 -0
  256. package/modules/auth/migrations/0031_membership_scope_backfills_under_rls.down.sql +4 -0
  257. package/modules/auth/migrations/0031_membership_scope_backfills_under_rls.up.sql +31 -0
  258. package/modules/auth/migrations/0032_audit_actor_service.down.sql +9 -0
  259. package/modules/auth/migrations/0032_audit_actor_service.up.sql +10 -0
  260. package/modules/auth/migrations/0033_auth_account_keyset_indexes.down.sql +5 -0
  261. package/modules/auth/migrations/0033_auth_account_keyset_indexes.up.sql +23 -0
  262. package/modules/auth/module.json +3 -3
  263. package/modules/auth/package.json +2 -1
  264. package/modules/auth/spec/module.yaml +372 -3
  265. package/modules/auth/src/acl/scopes.ts +50 -6
  266. package/modules/auth/src/cli/commands.json +11 -0
  267. package/modules/auth/src/cli/greenfield.ts +2 -2
  268. package/modules/auth/src/cli/index.ts +14 -0
  269. package/modules/auth/src/cli/secrets.ts +114 -0
  270. package/modules/auth/src/client/AuthenticationCore.tsrx +61 -8
  271. package/modules/auth/src/client/api.ts +72 -6
  272. package/modules/auth/src/client/contribution.tsrx +23 -0
  273. package/modules/auth/src/client/index.ts +6 -0
  274. package/modules/auth/src/client/providers/IdentityProviderForm.tsrx +191 -0
  275. package/modules/auth/src/client/providers/IdentityProvidersView.tsrx +358 -0
  276. package/modules/auth/src/client/providers/api.ts +128 -0
  277. package/modules/auth/src/client/providers/provider-columns.tsrx +60 -0
  278. package/modules/auth/src/client/providers/state.ts +35 -0
  279. package/modules/auth/src/client/security/SecurityView.tsrx +9 -1
  280. package/modules/auth/src/client/state.ts +15 -1
  281. package/modules/auth/src/domain/types.ts +55 -0
  282. package/modules/auth/src/index.ts +11 -1
  283. package/modules/auth/src/middleware/authentication.ts +4 -0
  284. package/modules/auth/src/server/endpoints.ts +467 -171
  285. package/modules/auth/src/server/http.ts +3 -2
  286. package/modules/auth/src/server/index.ts +22 -1
  287. package/modules/auth/src/server/membership-endpoints.ts +62 -0
  288. package/modules/auth/src/server/mfa-enforcement.ts +156 -0
  289. package/modules/auth/src/server/oidc.ts +389 -0
  290. package/modules/auth/src/server/provider-endpoints.ts +246 -0
  291. package/modules/auth/src/server/provider-host.ts +77 -0
  292. package/modules/auth/src/server/runtime.ts +231 -55
  293. package/modules/auth/src/services/auth-service-error.ts +7 -2
  294. package/modules/auth/src/services/auth-service.ts +948 -51
  295. package/modules/auth/src/services/data-classes.ts +236 -0
  296. package/modules/auth/src/services/database-repository.ts +853 -71
  297. package/modules/auth/src/services/identity-provider-service.ts +571 -0
  298. package/modules/auth/src/services/mail-delivery.ts +16 -16
  299. package/modules/auth/src/services/mail-message.ts +54 -0
  300. package/modules/auth/src/services/mail-port.ts +24 -0
  301. package/modules/auth/src/services/mail-smtp.ts +85 -0
  302. package/modules/auth/src/services/mfa-rotation.ts +144 -0
  303. package/modules/auth/src/services/migration.ts +810 -0
  304. package/modules/auth/src/services/password.ts +14 -0
  305. package/modules/auth/src/services/provider-secret-rotation.ts +169 -0
  306. package/modules/auth/src/services/provider-secrets.ts +136 -0
  307. package/modules/auth/src/services/repository.ts +321 -5
  308. package/modules/auth/src/services/session-sweep-runner.ts +73 -0
  309. package/modules/auth/src/services/settings-store.ts +10 -83
  310. package/modules/auth/src/services/totp.ts +88 -62
  311. package/modules/auth/src/services/validation.ts +194 -7
  312. package/modules/auth/src/settings.ts +18 -0
  313. package/modules/auth/translations/en.json +84 -1
  314. package/modules/auth/translations/pl.json +84 -1
  315. package/modules/automations/migrations/0005_secret_rotation_inventory.down.sql +1 -0
  316. package/modules/automations/migrations/0005_secret_rotation_inventory.up.sql +6 -0
  317. package/modules/automations/migrations/0006_automations_list_sort_indexes.down.sql +4 -0
  318. package/modules/automations/migrations/0006_automations_list_sort_indexes.up.sql +11 -0
  319. package/modules/automations/module.json +24 -6
  320. package/modules/automations/package.json +4 -1
  321. package/modules/automations/spec/module.yaml +81 -7
  322. package/modules/automations/src/api/endpoints.ts +202 -28
  323. package/modules/automations/src/cli/commands.json +17 -0
  324. package/modules/automations/src/cli/index.ts +114 -0
  325. package/modules/automations/src/client/AutomationScheduleForm.tsrx +77 -19
  326. package/modules/automations/src/client/AutomationSchedulesView.tsrx +144 -40
  327. package/modules/automations/src/client/AutomationTriggersView.tsrx +131 -32
  328. package/modules/automations/src/client/api.ts +62 -19
  329. package/modules/automations/src/client/presentation.ts +20 -2
  330. package/modules/automations/src/client/state.ts +84 -0
  331. package/modules/automations/src/domain/cadence.ts +99 -3
  332. package/modules/automations/src/domain/cron.ts +366 -0
  333. package/modules/automations/src/domain/time-zone.ts +61 -0
  334. package/modules/automations/src/platform.ts +38 -4
  335. package/modules/automations/src/server/index.ts +11 -0
  336. package/modules/automations/src/server/runtime.ts +46 -22
  337. package/modules/{automations-workflows-integration/src/server/adapter.ts → automations/src/server/workflow-target.ts} +13 -14
  338. package/modules/{automations-workflows-integration/src/server/tools.ts → automations/src/server/workflow-tools.ts} +0 -0
  339. package/modules/automations/src/services/data-classes.ts +62 -0
  340. package/modules/automations/src/services/database-repository.ts +152 -38
  341. package/modules/automations/src/services/migration.ts +119 -9
  342. package/modules/automations/src/services/repository.ts +52 -1
  343. package/modules/automations/src/services/schedule-runner.ts +84 -0
  344. package/modules/automations/src/services/schedule-service.ts +152 -26
  345. package/modules/automations/src/services/secret-rotation.ts +176 -0
  346. package/modules/automations/src/services/secret-vault.ts +68 -41
  347. package/modules/automations/src/services/trigger-service.ts +13 -10
  348. package/modules/automations/translations/en.json +15 -2
  349. package/modules/automations/translations/pl.json +15 -2
  350. package/modules/connectors/migrations/0001_connectors_core.down.sql +3 -0
  351. package/modules/connectors/migrations/0001_connectors_core.up.sql +72 -0
  352. package/modules/connectors/migrations/0002_connectors_call_keys.down.sql +3 -0
  353. package/modules/connectors/migrations/0002_connectors_call_keys.up.sql +18 -0
  354. package/modules/connectors/migrations/0003_connectors_rotation_inventory.down.sql +2 -0
  355. package/modules/connectors/migrations/0003_connectors_rotation_inventory.up.sql +19 -0
  356. package/modules/connectors/migrations/README.md +3 -0
  357. package/modules/connectors/module.json +32 -0
  358. package/modules/{automations-workflows-integration → connectors}/package.json +28 -26
  359. package/modules/connectors/spec/module.yaml +448 -0
  360. package/modules/connectors/src/acl/permissions.ts +6 -0
  361. package/modules/connectors/src/agent/tools.ts +180 -0
  362. package/modules/connectors/src/api/endpoints.ts +572 -0
  363. package/modules/connectors/src/cli/commands.json +17 -0
  364. package/modules/connectors/src/cli/index.ts +126 -0
  365. package/modules/connectors/src/client/ConnectorCallsView.tsrx +358 -0
  366. package/modules/connectors/src/client/ConnectorForm.tsrx +424 -0
  367. package/modules/connectors/src/client/ConnectorsView.tsrx +711 -0
  368. package/modules/connectors/src/client/api.ts +281 -0
  369. package/modules/connectors/src/client/consent.ts +48 -0
  370. package/modules/connectors/src/client/contribution.tsrx +37 -0
  371. package/modules/connectors/src/client/index.ts +22 -0
  372. package/modules/connectors/src/client/navigation.ts +42 -0
  373. package/modules/connectors/src/client/presentation.ts +38 -0
  374. package/modules/connectors/src/client/state.ts +175 -0
  375. package/modules/connectors/src/domain/calls.ts +70 -0
  376. package/modules/connectors/src/domain/definitions.ts +190 -0
  377. package/modules/connectors/src/domain/http-json.ts +68 -0
  378. package/modules/connectors/src/domain/types.ts +185 -0
  379. package/modules/connectors/src/index.ts +64 -0
  380. package/modules/connectors/src/platform.ts +56 -0
  381. package/modules/connectors/src/server/index.ts +66 -0
  382. package/modules/connectors/src/server/runtime.ts +163 -0
  383. package/modules/connectors/src/services/call-service.ts +903 -0
  384. package/modules/connectors/src/services/connectors-service.ts +653 -0
  385. package/modules/connectors/src/services/credential-rotation.ts +221 -0
  386. package/modules/connectors/src/services/credential-vault.ts +194 -0
  387. package/modules/connectors/src/services/data-classes.ts +158 -0
  388. package/modules/connectors/src/services/database-repository.ts +897 -0
  389. package/modules/connectors/src/services/egress.ts +261 -0
  390. package/modules/connectors/src/services/index.ts +19 -0
  391. package/modules/connectors/src/services/migration.ts +202 -0
  392. package/modules/connectors/src/services/repository.ts +175 -0
  393. package/modules/connectors/src/services/service-error.ts +46 -0
  394. package/modules/connectors/src/settings.ts +69 -0
  395. package/modules/connectors/translations/en.json +191 -0
  396. package/modules/connectors/translations/pl.json +191 -0
  397. package/modules/directory/migrations/0001_directory_core.down.sql +5 -0
  398. package/modules/directory/migrations/0001_directory_core.up.sql +111 -0
  399. package/modules/directory/migrations/README.md +3 -0
  400. package/modules/directory/module.json +27 -0
  401. package/modules/directory/package.json +46 -0
  402. package/modules/directory/spec/module.yaml +351 -0
  403. package/modules/directory/src/acl/permissions.ts +7 -0
  404. package/modules/directory/src/api/endpoints.ts +478 -0
  405. package/modules/directory/src/api/scim-endpoints.ts +516 -0
  406. package/modules/directory/src/client/GroupMappingsView.tsrx +430 -0
  407. package/modules/directory/src/client/ProvisioningLogView.tsrx +248 -0
  408. package/modules/directory/src/client/ScimTokensView.tsrx +587 -0
  409. package/modules/directory/src/client/api.ts +222 -0
  410. package/modules/directory/src/client/contribution.tsrx +46 -0
  411. package/modules/directory/src/client/index.ts +22 -0
  412. package/modules/directory/src/client/navigation.ts +57 -0
  413. package/modules/directory/src/client/presentation.ts +143 -0
  414. package/modules/directory/src/client/state.ts +173 -0
  415. package/modules/directory/src/domain/scim.ts +346 -0
  416. package/modules/directory/src/domain/types.ts +166 -0
  417. package/modules/directory/src/index.ts +44 -0
  418. package/modules/directory/src/platform.ts +43 -0
  419. package/modules/directory/src/server/index.ts +17 -0
  420. package/modules/directory/src/server/runtime.ts +124 -0
  421. package/modules/directory/src/services/auth-port.ts +127 -0
  422. package/modules/directory/src/services/data-classes.ts +41 -0
  423. package/modules/directory/src/services/database-repository.ts +1067 -0
  424. package/modules/directory/src/services/directory-service.ts +311 -0
  425. package/modules/directory/src/services/index.ts +43 -0
  426. package/modules/directory/src/services/migration.ts +146 -0
  427. package/modules/directory/src/services/provisioning-service.ts +1420 -0
  428. package/modules/directory/src/services/rate-limiter.ts +103 -0
  429. package/modules/directory/src/services/repository.ts +208 -0
  430. package/modules/directory/src/services/service-error.ts +42 -0
  431. package/modules/directory/src/services/token-service.ts +215 -0
  432. package/modules/directory/src/settings.ts +86 -0
  433. package/modules/directory/translations/en.json +185 -0
  434. package/modules/directory/translations/pl.json +185 -0
  435. package/modules/documents/migrations/0001_documents_core.down.sql +1 -0
  436. package/modules/documents/migrations/0001_documents_core.up.sql +35 -0
  437. package/modules/documents/migrations/0002_documents_files_page.down.sql +1 -0
  438. package/modules/documents/migrations/0002_documents_files_page.up.sql +6 -0
  439. package/modules/documents/migrations/0003_documents_rotation_inventory.down.sql +2 -0
  440. package/modules/documents/migrations/0003_documents_rotation_inventory.up.sql +18 -0
  441. package/modules/documents/migrations/README.md +3 -0
  442. package/modules/documents/module.json +32 -0
  443. package/modules/documents/package.json +50 -0
  444. package/modules/documents/spec/module.yaml +248 -0
  445. package/modules/documents/src/acl/permissions.ts +6 -0
  446. package/modules/documents/src/api/endpoints.ts +401 -0
  447. package/modules/documents/src/cli/commands.json +17 -0
  448. package/modules/documents/src/cli/index.ts +145 -0
  449. package/modules/documents/src/client/DocumentUploader.tsrx +148 -0
  450. package/modules/documents/src/client/DocumentsView.tsrx +540 -0
  451. package/modules/documents/src/client/api.ts +209 -0
  452. package/modules/documents/src/client/contribution.tsrx +29 -0
  453. package/modules/documents/src/client/download.ts +70 -0
  454. package/modules/documents/src/client/index.ts +22 -0
  455. package/modules/documents/src/client/navigation.ts +25 -0
  456. package/modules/documents/src/client/presentation.ts +110 -0
  457. package/modules/documents/src/client/state.ts +117 -0
  458. package/modules/documents/src/domain/attachments.ts +84 -0
  459. package/modules/documents/src/domain/types.ts +80 -0
  460. package/modules/documents/src/index.ts +46 -0
  461. package/modules/documents/src/platform.ts +61 -0
  462. package/modules/documents/src/server/index.ts +30 -0
  463. package/modules/documents/src/server/runtime.ts +107 -0
  464. package/modules/documents/src/services/attachments.ts +39 -0
  465. package/modules/documents/src/services/data-classes.ts +25 -0
  466. package/modules/documents/src/services/database-repository.ts +270 -0
  467. package/modules/documents/src/services/documents-service.ts +590 -0
  468. package/modules/documents/src/services/index.ts +18 -0
  469. package/modules/documents/src/services/migration.ts +117 -0
  470. package/modules/documents/src/services/repository.ts +58 -0
  471. package/modules/documents/src/services/storage-rotation.ts +157 -0
  472. package/modules/documents/src/settings.ts +107 -0
  473. package/modules/documents/translations/en.json +111 -0
  474. package/modules/documents/translations/pl.json +111 -0
  475. package/modules/exports/migrations/0001_exports_core.down.sql +2 -0
  476. package/modules/exports/migrations/0001_exports_core.up.sql +28 -0
  477. package/modules/exports/migrations/0002_exports_job_routing_role.down.sql +4 -0
  478. package/modules/exports/migrations/0002_exports_job_routing_role.up.sql +21 -0
  479. package/modules/exports/migrations/0003_exports_rotation_inventory.down.sql +1 -0
  480. package/modules/exports/migrations/0003_exports_rotation_inventory.up.sql +9 -0
  481. package/modules/exports/migrations/README.md +3 -0
  482. package/modules/exports/module.json +32 -0
  483. package/modules/exports/package.json +45 -0
  484. package/modules/exports/spec/module.yaml +230 -0
  485. package/modules/exports/src/acl/permissions.ts +6 -0
  486. package/modules/exports/src/api/endpoints.ts +211 -0
  487. package/modules/exports/src/cli/commands.json +17 -0
  488. package/modules/exports/src/cli/index.ts +145 -0
  489. package/modules/exports/src/client/ExportsView.tsrx +327 -0
  490. package/modules/exports/src/client/api.ts +133 -0
  491. package/modules/exports/src/client/contribution.tsrx +31 -0
  492. package/modules/exports/src/client/index.ts +20 -0
  493. package/modules/exports/src/client/navigation.ts +25 -0
  494. package/modules/exports/src/client/presentation.ts +53 -0
  495. package/modules/exports/src/client/state.ts +56 -0
  496. package/modules/exports/src/domain/lists.ts +29 -0
  497. package/modules/exports/src/domain/types.ts +120 -0
  498. package/modules/exports/src/index.ts +41 -0
  499. package/modules/exports/src/platform.ts +80 -0
  500. package/modules/exports/src/server/index.ts +50 -0
  501. package/modules/exports/src/server/runtime.ts +160 -0
  502. package/modules/exports/src/services/data-classes.ts +59 -0
  503. package/modules/exports/src/services/database-repository.ts +403 -0
  504. package/modules/exports/src/services/export-runner.ts +123 -0
  505. package/modules/exports/src/services/export-service.ts +356 -0
  506. package/modules/exports/src/services/index.ts +6 -0
  507. package/modules/exports/src/services/list-registry.ts +105 -0
  508. package/modules/exports/src/services/migration.ts +116 -0
  509. package/modules/exports/src/services/repository.ts +96 -0
  510. package/modules/exports/src/services/storage-rotation.ts +138 -0
  511. package/modules/exports/src/settings.ts +70 -0
  512. package/modules/exports/translations/en.json +69 -0
  513. package/modules/exports/translations/pl.json +69 -0
  514. package/modules/import/migrations/0001_import_core.down.sql +6 -0
  515. package/modules/import/migrations/0001_import_core.up.sql +61 -0
  516. package/modules/import/migrations/0002_import_job_routing_role.down.sql +4 -0
  517. package/modules/import/migrations/0002_import_job_routing_role.up.sql +20 -0
  518. package/modules/import/migrations/0003_import_jobs_export_index.down.sql +1 -0
  519. package/modules/import/migrations/0003_import_jobs_export_index.up.sql +7 -0
  520. package/modules/import/migrations/0004_import_jobs_traceparent.down.sql +1 -0
  521. package/modules/import/migrations/0004_import_jobs_traceparent.up.sql +7 -0
  522. package/modules/import/migrations/README.md +3 -0
  523. package/modules/import/module.json +37 -0
  524. package/modules/import/package.json +50 -0
  525. package/modules/import/spec/module.yaml +335 -0
  526. package/modules/import/src/acl/permissions.ts +6 -0
  527. package/modules/import/src/api/endpoints.ts +400 -0
  528. package/modules/import/src/client/ImportJobDrawer.tsrx +229 -0
  529. package/modules/import/src/client/ImportsView.tsrx +455 -0
  530. package/modules/import/src/client/NewImportForm.tsrx +274 -0
  531. package/modules/import/src/client/api.ts +243 -0
  532. package/modules/import/src/client/contribution.tsrx +29 -0
  533. package/modules/import/src/client/index.ts +23 -0
  534. package/modules/import/src/client/navigation.ts +25 -0
  535. package/modules/import/src/client/presentation.ts +59 -0
  536. package/modules/import/src/client/state.ts +43 -0
  537. package/modules/import/src/domain/csv.ts +258 -0
  538. package/modules/import/src/domain/ports.ts +157 -0
  539. package/modules/import/src/domain/types.ts +179 -0
  540. package/modules/import/src/index.ts +58 -0
  541. package/modules/import/src/platform.ts +60 -0
  542. package/modules/import/src/server/index.ts +49 -0
  543. package/modules/import/src/server/runtime.ts +158 -0
  544. package/modules/import/src/services/csv-source.ts +121 -0
  545. package/modules/import/src/services/data-classes.ts +63 -0
  546. package/modules/import/src/services/database-repository.ts +780 -0
  547. package/modules/import/src/services/import-runner.ts +127 -0
  548. package/modules/import/src/services/import-service.ts +872 -0
  549. package/modules/import/src/services/index.ts +6 -0
  550. package/modules/import/src/services/migration.ts +156 -0
  551. package/modules/import/src/services/port-registry.ts +158 -0
  552. package/modules/import/src/services/repository.ts +147 -0
  553. package/modules/import/src/settings.ts +70 -0
  554. package/modules/import/translations/en.json +175 -0
  555. package/modules/import/translations/pl.json +175 -0
  556. package/modules/metering/migrations/0001_metering_core.down.sql +6 -0
  557. package/modules/metering/migrations/0001_metering_core.up.sql +119 -0
  558. package/modules/metering/migrations/0002_metering_bucket_export.down.sql +3 -0
  559. package/modules/metering/migrations/0002_metering_bucket_export.up.sql +5 -0
  560. package/modules/metering/migrations/README.md +3 -0
  561. package/modules/metering/module.json +46 -0
  562. package/modules/metering/package.json +50 -0
  563. package/modules/metering/spec/module.yaml +269 -0
  564. package/modules/metering/src/acl/permissions.ts +5 -0
  565. package/modules/metering/src/api/endpoints.ts +104 -0
  566. package/modules/metering/src/cli/commands.json +28 -0
  567. package/modules/metering/src/cli/index.ts +246 -0
  568. package/modules/metering/src/client/LimitsView.tsrx +170 -0
  569. package/modules/metering/src/client/UsageSummaryWidget.tsrx +63 -0
  570. package/modules/metering/src/client/UsageView.tsrx +205 -0
  571. package/modules/metering/src/client/api.ts +91 -0
  572. package/modules/metering/src/client/contribution.tsrx +42 -0
  573. package/modules/metering/src/client/index.ts +26 -0
  574. package/modules/metering/src/client/navigation.ts +54 -0
  575. package/modules/metering/src/client/presentation.ts +63 -0
  576. package/modules/metering/src/client/state.ts +31 -0
  577. package/modules/metering/src/domain/meters.ts +100 -0
  578. package/modules/metering/src/domain/types.ts +71 -0
  579. package/modules/metering/src/index.ts +51 -0
  580. package/modules/metering/src/platform.ts +84 -0
  581. package/modules/metering/src/server/index.ts +40 -0
  582. package/modules/metering/src/server/runtime.ts +165 -0
  583. package/modules/metering/src/services/data-classes.ts +34 -0
  584. package/modules/metering/src/services/database-repository.ts +574 -0
  585. package/modules/metering/src/services/index.ts +9 -0
  586. package/modules/metering/src/services/meter-registry.ts +145 -0
  587. package/modules/metering/src/services/metering-service.ts +441 -0
  588. package/modules/metering/src/services/migration.ts +183 -0
  589. package/modules/metering/src/services/notifications.ts +75 -0
  590. package/modules/metering/src/services/reports.ts +105 -0
  591. package/modules/metering/src/services/repository.ts +132 -0
  592. package/modules/metering/src/services/service-error.ts +46 -0
  593. package/modules/metering/src/settings.ts +47 -0
  594. package/modules/metering/translations/en.json +68 -0
  595. package/modules/metering/translations/pl.json +68 -0
  596. package/modules/notifications/migrations/0001_notifications_core.down.sql +1 -0
  597. package/modules/notifications/migrations/0001_notifications_core.up.sql +26 -0
  598. package/modules/notifications/migrations/0002_notifications_preferences.down.sql +1 -0
  599. package/modules/notifications/migrations/0002_notifications_preferences.up.sql +17 -0
  600. package/modules/notifications/migrations/0003_notifications_webhook_subscriptions.down.sql +1 -0
  601. package/modules/notifications/migrations/0003_notifications_webhook_subscriptions.up.sql +30 -0
  602. package/modules/notifications/migrations/0004_notifications_deliveries.down.sql +1 -0
  603. package/modules/notifications/migrations/0004_notifications_deliveries.up.sql +35 -0
  604. package/modules/notifications/migrations/0005_notifications_delivery_routing_role.down.sql +2 -0
  605. package/modules/notifications/migrations/0005_notifications_delivery_routing_role.up.sql +17 -0
  606. package/modules/notifications/migrations/0006_notifications_delivery_title.down.sql +1 -0
  607. package/modules/notifications/migrations/0006_notifications_delivery_title.up.sql +11 -0
  608. package/modules/notifications/migrations/0007_notifications_secret_rotation_inventory.down.sql +2 -0
  609. package/modules/notifications/migrations/0007_notifications_secret_rotation_inventory.up.sql +19 -0
  610. package/modules/notifications/migrations/0008_notifications_delivery_claim.down.sql +8 -0
  611. package/modules/notifications/migrations/0008_notifications_delivery_claim.up.sql +19 -0
  612. package/modules/notifications/migrations/0009_notifications_kind_approvals.down.sql +16 -0
  613. package/modules/notifications/migrations/0009_notifications_kind_approvals.up.sql +18 -0
  614. package/modules/notifications/migrations/0010_notifications_kind_meter_threshold.down.sql +16 -0
  615. package/modules/notifications/migrations/0010_notifications_kind_meter_threshold.up.sql +18 -0
  616. package/modules/notifications/migrations/0011_notifications_retention_keyset.down.sql +5 -0
  617. package/modules/notifications/migrations/0011_notifications_retention_keyset.up.sql +15 -0
  618. package/modules/notifications/migrations/0012_notifications_email_channel.down.sql +12 -0
  619. package/modules/notifications/migrations/0012_notifications_email_channel.up.sql +38 -0
  620. package/modules/notifications/migrations/0013_notifications_list_pages.down.sql +5 -0
  621. package/modules/notifications/migrations/0013_notifications_list_pages.up.sql +13 -0
  622. package/modules/notifications/migrations/README.md +3 -0
  623. package/modules/notifications/module.json +32 -0
  624. package/modules/notifications/package.json +49 -0
  625. package/modules/notifications/spec/module.yaml +718 -0
  626. package/modules/notifications/src/acl/permissions.ts +11 -0
  627. package/modules/notifications/src/api/endpoints.ts +814 -0
  628. package/modules/notifications/src/cli/commands.json +17 -0
  629. package/modules/notifications/src/cli/index.ts +126 -0
  630. package/modules/notifications/src/client/DeliveriesView.tsrx +483 -0
  631. package/modules/notifications/src/client/FactList.tsrx +24 -0
  632. package/modules/notifications/src/client/NotificationPreferencesView.tsrx +240 -0
  633. package/modules/notifications/src/client/NotificationsInboxView.tsrx +592 -0
  634. package/modules/notifications/src/client/UnreadCountWidget.tsrx +62 -0
  635. package/modules/notifications/src/client/WebhookForm.tsrx +297 -0
  636. package/modules/notifications/src/client/WebhooksView.tsrx +637 -0
  637. package/modules/notifications/src/client/api.ts +382 -0
  638. package/modules/notifications/src/client/contribution.tsrx +83 -0
  639. package/modules/notifications/src/client/inbox.ts +41 -0
  640. package/modules/notifications/src/client/index.ts +29 -0
  641. package/modules/notifications/src/client/navigation.ts +92 -0
  642. package/modules/notifications/src/client/notifications.css +70 -0
  643. package/modules/notifications/src/client/presentation.ts +81 -0
  644. package/modules/notifications/src/client/state.ts +246 -0
  645. package/modules/notifications/src/client/unread-count.ts +26 -0
  646. package/modules/notifications/src/domain/locale.ts +47 -0
  647. package/modules/notifications/src/domain/publish.ts +46 -0
  648. package/modules/notifications/src/domain/types.ts +186 -0
  649. package/modules/notifications/src/index.ts +62 -0
  650. package/modules/notifications/src/platform.ts +85 -0
  651. package/modules/notifications/src/server/index.ts +82 -0
  652. package/modules/notifications/src/server/runtime.ts +251 -0
  653. package/modules/notifications/src/services/data-classes.ts +139 -0
  654. package/modules/notifications/src/services/database-repository.ts +1334 -0
  655. package/modules/notifications/src/services/delivery-payload.ts +93 -0
  656. package/modules/notifications/src/services/delivery-runner.ts +170 -0
  657. package/modules/notifications/src/services/delivery-service.ts +811 -0
  658. package/modules/notifications/src/services/egress.ts +239 -0
  659. package/modules/notifications/src/services/email-channel.ts +93 -0
  660. package/modules/notifications/src/services/index.ts +23 -0
  661. package/modules/notifications/src/services/migration.ts +572 -0
  662. package/modules/notifications/src/services/notifications-service.ts +297 -0
  663. package/modules/notifications/src/services/paging.ts +60 -0
  664. package/modules/notifications/src/services/publish-service.ts +133 -0
  665. package/modules/notifications/src/services/repository.ts +342 -0
  666. package/modules/notifications/src/services/secret-rotation.ts +177 -0
  667. package/modules/notifications/src/services/secret-vault.ts +168 -0
  668. package/modules/notifications/src/services/service-error.ts +67 -0
  669. package/modules/notifications/src/services/signature.ts +81 -0
  670. package/modules/notifications/src/services/webhook-service.ts +307 -0
  671. package/modules/notifications/src/settings.ts +130 -0
  672. package/modules/notifications/translations/en.json +255 -0
  673. package/modules/notifications/translations/pl.json +255 -0
  674. package/modules/profile/module.json +3 -3
  675. package/modules/profile/package.json +1 -1
  676. package/modules/profile/spec/module.yaml +3 -3
  677. package/modules/profile/src/services/database-repository.ts +3 -13
  678. package/modules/reports/module.json +28 -0
  679. package/modules/reports/package.json +42 -0
  680. package/modules/reports/spec/module.yaml +231 -0
  681. package/modules/reports/src/acl/permissions.ts +5 -0
  682. package/modules/reports/src/api/endpoints.ts +72 -0
  683. package/modules/reports/src/client/ReportsSummaryWidget.tsrx +52 -0
  684. package/modules/reports/src/client/ReportsView.tsrx +246 -0
  685. package/modules/reports/src/client/api.ts +65 -0
  686. package/modules/reports/src/client/contribution.tsrx +36 -0
  687. package/modules/reports/src/client/index.ts +18 -0
  688. package/modules/reports/src/client/navigation.ts +39 -0
  689. package/modules/reports/src/client/presentation.ts +123 -0
  690. package/modules/reports/src/client/state.ts +28 -0
  691. package/modules/reports/src/domain/providers.ts +115 -0
  692. package/modules/reports/src/domain/types.ts +44 -0
  693. package/modules/reports/src/index.ts +47 -0
  694. package/modules/reports/src/platform.ts +37 -0
  695. package/modules/reports/src/server/index.ts +21 -0
  696. package/modules/reports/src/server/runtime.ts +40 -0
  697. package/modules/reports/src/services/index.ts +17 -0
  698. package/modules/reports/src/services/provider-registry.ts +144 -0
  699. package/modules/reports/src/services/range.ts +65 -0
  700. package/modules/reports/src/services/reports-service.ts +316 -0
  701. package/modules/reports/src/services/service-error.ts +26 -0
  702. package/modules/reports/src/settings.ts +49 -0
  703. package/modules/reports/translations/en.json +35 -0
  704. package/modules/reports/translations/pl.json +35 -0
  705. package/modules/sandbox/module.json +4 -4
  706. package/modules/sandbox/package.json +1 -1
  707. package/modules/sandbox/spec/module.yaml +3 -3
  708. package/modules/sandbox/src/services/database-repository.ts +14 -23
  709. package/modules/sandbox/src/services/directory.ts +16 -0
  710. package/modules/sandbox/src/services/sandbox-service.ts +13 -11
  711. package/modules/search/migrations/0001_search_core.down.sql +1 -0
  712. package/modules/search/migrations/0001_search_core.up.sql +22 -0
  713. package/modules/search/migrations/0002_search_recent_export.down.sql +3 -0
  714. package/modules/search/migrations/0002_search_recent_export.up.sql +5 -0
  715. package/modules/search/migrations/README.md +3 -0
  716. package/modules/search/module.json +28 -0
  717. package/modules/search/package.json +43 -0
  718. package/modules/search/spec/module.yaml +177 -0
  719. package/modules/search/src/acl/permissions.ts +5 -0
  720. package/modules/search/src/api/endpoints.ts +221 -0
  721. package/modules/search/src/client/SearchView.tsrx +346 -0
  722. package/modules/search/src/client/api.ts +157 -0
  723. package/modules/search/src/client/contribution.tsrx +31 -0
  724. package/modules/search/src/client/index.ts +17 -0
  725. package/modules/search/src/client/navigation.ts +97 -0
  726. package/modules/search/src/client/search.css +56 -0
  727. package/modules/search/src/client/state.ts +113 -0
  728. package/modules/search/src/domain/data-classes.ts +73 -0
  729. package/modules/search/src/domain/providers.ts +88 -0
  730. package/modules/search/src/domain/types.ts +56 -0
  731. package/modules/search/src/index.ts +46 -0
  732. package/modules/search/src/platform.ts +42 -0
  733. package/modules/search/src/server/index.ts +25 -0
  734. package/modules/search/src/server/runtime.ts +123 -0
  735. package/modules/search/src/services/database-repository.ts +163 -0
  736. package/modules/search/src/services/index.ts +21 -0
  737. package/modules/search/src/services/migration.ts +65 -0
  738. package/modules/search/src/services/provider-registry.ts +137 -0
  739. package/modules/search/src/services/repository.ts +43 -0
  740. package/modules/search/src/services/search-service.ts +442 -0
  741. package/modules/search/src/services/service-error.ts +35 -0
  742. package/modules/search/src/settings.ts +68 -0
  743. package/modules/search/translations/en.json +45 -0
  744. package/modules/search/translations/pl.json +45 -0
  745. package/modules/system/module.json +2 -2
  746. package/modules/system/package.json +1 -1
  747. package/modules/system/spec/module.yaml +30 -3
  748. package/modules/system/src/client/FlagsPanel.tsrx +127 -0
  749. package/modules/system/src/client/ModuleSettingRow.tsrx +17 -7
  750. package/modules/system/src/client/ModuleSettingsSection.tsrx +10 -71
  751. package/modules/system/src/client/ModulesView.tsrx +91 -65
  752. package/modules/system/src/client/flags.ts +35 -0
  753. package/modules/system/src/client/index.ts +8 -0
  754. package/modules/system/src/client/navigation.ts +8 -0
  755. package/modules/system/src/client/settings-state.ts +159 -0
  756. package/modules/system/src/client/state.ts +2 -0
  757. package/modules/system/src/domain/time-zone.ts +105 -0
  758. package/modules/system/src/index.ts +12 -0
  759. package/modules/system/src/platform.ts +5 -1
  760. package/modules/system/src/server/endpoints.ts +72 -21
  761. package/modules/system/src/settings.ts +28 -0
  762. package/modules/system/translations/en.json +17 -0
  763. package/modules/system/translations/pl.json +17 -0
  764. package/modules/users/module.json +30 -4
  765. package/modules/users/package.json +4 -1
  766. package/modules/users/spec/module.yaml +290 -7
  767. package/modules/users/src/api/endpoints.ts +228 -15
  768. package/modules/users/src/client/InviteMemberForm.tsrx +2 -2
  769. package/modules/users/src/client/MemberDrawer.tsrx +142 -26
  770. package/modules/users/src/client/UserAccountForm.tsrx +2 -2
  771. package/modules/users/src/client/UsersView.tsrx +432 -71
  772. package/modules/users/src/client/api.ts +106 -12
  773. package/modules/users/src/client/contribution.tsrx +5 -0
  774. package/modules/users/src/client/member-columns.tsrx +22 -9
  775. package/modules/users/src/client/state.ts +172 -7
  776. package/modules/users/src/domain/lists.ts +9 -0
  777. package/modules/users/src/index.ts +11 -0
  778. package/modules/users/src/platform.ts +50 -1
  779. package/modules/users/src/services/member-export.ts +51 -0
  780. package/modules/users/src/services/member-import.ts +249 -0
  781. package/modules/users/src/services/member-search.ts +145 -0
  782. package/modules/users/src/services/users-service.ts +117 -4
  783. package/modules/users/translations/en.json +57 -8
  784. package/modules/users/translations/pl.json +57 -8
  785. package/modules/workflows/migrations/0004_payload_rotation_inventory.up.sql +17 -0
  786. package/modules/workflows/migrations/0005_workflows_human_approval.up.sql +28 -0
  787. package/modules/workflows/migrations/0006_workflows_retention_indexes.up.sql +11 -0
  788. package/modules/workflows/migrations/0007_workflows_erasure_subject_indexes.up.sql +17 -0
  789. package/modules/workflows/migrations/0008_workflows_subject_account.up.sql +24 -0
  790. package/modules/workflows/migrations/0009_workflows_definition_list_indexes.up.sql +9 -0
  791. package/modules/workflows/module.json +34 -6
  792. package/modules/workflows/package.json +2 -1
  793. package/modules/workflows/spec/module.yaml +26 -9
  794. package/modules/workflows/src/api/endpoints.ts +131 -25
  795. package/modules/workflows/src/cli/commands.json +17 -0
  796. package/modules/workflows/src/cli/index.ts +114 -0
  797. package/modules/workflows/src/client/WorkflowExecutionHistory.tsrx +36 -27
  798. package/modules/workflows/src/client/WorkflowInspector.tsrx +116 -0
  799. package/modules/workflows/src/client/WorkflowNodePalette.tsrx +1 -0
  800. package/modules/workflows/src/client/WorkflowsView.tsrx +236 -99
  801. package/modules/workflows/src/client/api.ts +54 -34
  802. package/modules/workflows/src/client/canvas-model.ts +12 -0
  803. package/modules/workflows/src/client/state.ts +95 -0
  804. package/modules/workflows/src/domain/events.ts +25 -11
  805. package/modules/workflows/src/domain/graph.ts +135 -1
  806. package/modules/workflows/src/domain/types.ts +91 -4
  807. package/modules/workflows/src/platform.ts +12 -0
  808. package/modules/workflows/src/server/runtime.ts +78 -5
  809. package/modules/workflows/src/services/approvals.ts +62 -0
  810. package/modules/workflows/src/services/cursors.ts +37 -0
  811. package/modules/workflows/src/services/data-classes.ts +232 -0
  812. package/modules/workflows/src/services/database-repository.ts +660 -171
  813. package/modules/workflows/src/services/migration.ts +240 -0
  814. package/modules/workflows/src/services/notifications.ts +98 -0
  815. package/modules/workflows/src/services/payload-codec.ts +51 -28
  816. package/modules/workflows/src/services/payload-rotation.ts +171 -0
  817. package/modules/workflows/src/services/repository.ts +123 -8
  818. package/modules/workflows/src/services/simulation.ts +7 -0
  819. package/modules/workflows/src/services/worker.ts +446 -25
  820. package/modules/workflows/src/services/workflows-service.ts +264 -103
  821. package/modules/workflows/translations/en.json +12 -4
  822. package/modules/workflows/translations/pl.json +12 -4
  823. package/modules.json +48 -4
  824. package/package.json +64 -6
  825. package/packages/client/package.json +1 -0
  826. package/packages/client/src/ApplicationShell.tsrx +43 -0
  827. package/packages/client/src/contributions.ts +55 -0
  828. package/packages/client/src/i18n/locales/en.json +5 -0
  829. package/packages/client/src/i18n/locales/pl.json +5 -0
  830. package/packages/client/src/index.ts +13 -1
  831. package/packages/client/src/routing.ts +22 -0
  832. package/packages/client/src/shell/CommandPalette.tsrx +223 -11
  833. package/packages/client/src/shell/command-search.ts +126 -0
  834. package/packages/client/src/shell/command.ts +30 -0
  835. package/packages/client/src/shell/navigation.ts +12 -0
  836. package/packages/client/src/shell/palette-keys.ts +27 -0
  837. package/packages/client/src/shell/shell.css +7 -0
  838. package/packages/contracts/schemas/module-spec.schema.json +287 -1
  839. package/packages/contracts/schemas/module.schema.json +25 -0
  840. package/packages/contracts/src/index.ts +144 -1
  841. package/packages/database/src/backup.ts +180 -0
  842. package/packages/database/src/decoders.ts +25 -0
  843. package/packages/database/src/index.ts +17 -0
  844. package/packages/database/src/migrations.ts +7 -0
  845. package/packages/database/src/record-history.ts +5 -14
  846. package/packages/harness/src/index.ts +2 -0
  847. package/packages/harness/src/runtime.ts +378 -2
  848. package/packages/harness/src/tool-adapters.ts +20 -9
  849. package/packages/kernel/src/acl.ts +179 -0
  850. package/packages/kernel/src/approval-grant.ts +310 -0
  851. package/packages/kernel/src/capability-registry.ts +69 -2
  852. package/packages/kernel/src/data-class-registry.ts +354 -0
  853. package/packages/kernel/src/index.ts +85 -4
  854. package/packages/kernel/src/keyring.ts +208 -0
  855. package/packages/kernel/src/module-compatibility.ts +35 -4
  856. package/packages/kernel/src/module-registry.ts +49 -2
  857. package/packages/kernel/src/module-settings.ts +189 -27
  858. package/packages/server/package.json +2 -1
  859. package/packages/server/src/composition.ts +38 -0
  860. package/packages/server/src/endpoint.ts +104 -47
  861. package/packages/server/src/export/csv.ts +34 -0
  862. package/packages/server/src/export/definition.ts +346 -0
  863. package/packages/server/src/export/index.ts +61 -0
  864. package/packages/server/src/export/run.ts +116 -0
  865. package/packages/server/src/index.ts +155 -0
  866. package/packages/server/src/jobs/index.ts +93 -0
  867. package/packages/server/src/jobs/runner.ts +486 -0
  868. package/packages/server/src/log.ts +291 -0
  869. package/packages/server/src/mail/config.ts +184 -0
  870. package/packages/server/src/mail/contracts.ts +251 -0
  871. package/packages/server/src/mail/index.ts +31 -0
  872. package/packages/server/src/mail/port.ts +101 -0
  873. package/packages/server/src/mail/smtp.ts +191 -0
  874. package/packages/server/src/mail/template.ts +105 -0
  875. package/packages/server/src/metrics.ts +447 -0
  876. package/packages/server/src/pagination.ts +246 -0
  877. package/packages/server/src/trace/context.ts +103 -0
  878. package/packages/server/src/trace/egress.ts +66 -0
  879. package/packages/server/src/trace/error-sink.ts +296 -0
  880. package/packages/server/src/trace/exporter.ts +295 -0
  881. package/packages/server/src/trace/index.ts +60 -0
  882. package/packages/server/src/trace/job-sink.ts +172 -0
  883. package/packages/server/src/trace/tracer.ts +338 -0
  884. package/packages/server/src/web.ts +5 -1
  885. package/packages/storage/package.json +40 -0
  886. package/packages/storage/src/config.ts +189 -0
  887. package/packages/storage/src/content-type.ts +124 -0
  888. package/packages/storage/src/contracts.ts +112 -0
  889. package/packages/storage/src/envelope.ts +238 -0
  890. package/packages/storage/src/index.ts +49 -0
  891. package/packages/storage/src/local.ts +75 -0
  892. package/packages/storage/src/port.ts +262 -0
  893. package/packages/storage/src/read-token.ts +130 -0
  894. package/packages/storage/src/reseal.ts +128 -0
  895. package/packages/storage/src/s3.ts +144 -0
  896. package/packages/storage/src/scanner.ts +22 -0
  897. package/packages/storage/src/sigv4.ts +104 -0
  898. package/packages/storage/src/store.ts +13 -0
  899. package/packages/ui/package.json +1 -0
  900. package/packages/ui/src/components/Button.tsrx +3 -0
  901. package/packages/ui/src/components/ConfirmDialog.tsrx +13 -2
  902. package/packages/ui/src/components/DateField.tsrx +92 -0
  903. package/packages/ui/src/components/DatePicker.tsrx +525 -0
  904. package/packages/ui/src/components/DateRangeField.tsrx +93 -0
  905. package/packages/ui/src/components/Drawer.tsrx +10 -1
  906. package/packages/ui/src/components/FileUpload.tsrx +158 -0
  907. package/packages/ui/src/components/Pagination.tsrx +130 -0
  908. package/packages/ui/src/components/Select.tsrx +78 -0
  909. package/packages/ui/src/components/Table.tsrx +498 -81
  910. package/packages/ui/src/components/Tabs.tsrx +53 -0
  911. package/packages/ui/src/components/ToastHost.tsrx +48 -0
  912. package/packages/ui/src/components/calendar.ts +243 -0
  913. package/packages/ui/src/components/date-field.ts +62 -0
  914. package/packages/ui/src/components/file-upload.ts +49 -0
  915. package/packages/ui/src/components/focus-trap.ts +62 -0
  916. package/packages/ui/src/components/pagination.ts +68 -0
  917. package/packages/ui/src/components/table-sorting.ts +49 -0
  918. package/packages/ui/src/components/tabs.ts +61 -0
  919. package/packages/ui/src/components/toast-store.ts +116 -0
  920. package/packages/ui/src/icons/Icon.tsrx +5 -0
  921. package/packages/ui/src/index.ts +45 -0
  922. package/packages/ui/src/styles/components.css +598 -0
  923. package/modules/automations-workflows-integration/module.json +0 -27
  924. package/modules/automations-workflows-integration/spec/module.yaml +0 -93
  925. package/modules/automations-workflows-integration/src/index.ts +0 -14
  926. package/modules/automations-workflows-integration/src/platform.ts +0 -24
  927. package/modules/automations-workflows-integration/src/server/index.ts +0 -11
  928. package/modules/automations-workflows-integration/translations/en.json +0 -21
  929. package/modules/automations-workflows-integration/translations/pl.json +0 -21
  930. package/modules/workflows/src/services/cursor-codec.ts +0 -62
@@ -0,0 +1,68 @@
1
+ {
2
+ "navigation.usage": "Zużycie",
3
+ "navigation.usageDescription": "Co ten obszar roboczy zużył w tym miesiącu, licznik po liczniku.",
4
+ "navigation.limits": "Limity",
5
+ "navigation.limitsDescription": "Miesięczne pułapy ustawione dla tego obszaru roboczego przez operatora wdrożenia.",
6
+ "common.administration": "Administracja",
7
+ "common.refresh": "Odśwież",
8
+ "common.refreshing": "Odświeżanie…",
9
+ "common.filters": "Filtry",
10
+ "common.accessDenied": "Brak dostępu",
11
+ "common.notYet": "Jeszcze nie",
12
+ "kind.cumulative": "Sumaryczny",
13
+ "kind.gauge": "Wskaźnikowy",
14
+ "usage.title": "Zużycie",
15
+ "usage.description": "Każdy licznik zgłoszony przez moduł dla tego obszaru roboczego, z sumą tego miesiąca w UTC.",
16
+ "usage.denied": "Potrzebujesz uprawnienia do zużycia, aby zobaczyć, co zużył ten obszar roboczy.",
17
+ "usage.note": "Właściciele są powiadamiani przy {percent} procentach limitu i ponownie po jego osiągnięciu. Limity ustawia operator wdrożenia.",
18
+ "usage.unlimited": "Zużyto {used}",
19
+ "usage.ofLimit": "{used} z {limit}",
20
+ "usage.column.key": "Licznik",
21
+ "usage.column.label": "Nazwa",
22
+ "usage.column.unit": "Jednostka",
23
+ "usage.column.kind": "Rodzaj",
24
+ "usage.column.used": "W tym miesiącu",
25
+ "usage.table.title": "Liczniki",
26
+ "usage.table.count": "Liczników: {count}",
27
+ "usage.table.caption": "Liczniki tego obszaru roboczego",
28
+ "usage.table.loading": "Wczytywanie liczników…",
29
+ "usage.search.label": "Szukaj liczników",
30
+ "usage.search.placeholder": "Klucz lub nazwa licznika",
31
+ "usage.filter.module": "Moduł",
32
+ "usage.filter.allModules": "Wszystkie moduły",
33
+ "usage.empty.title": "Nic jeszcze nie zmierzono",
34
+ "usage.empty.hint": "Licznik pojawi się tutaj, gdy moduł po raz pierwszy zgłosi zużycie dla tego obszaru roboczego.",
35
+ "usage.emptyFiltered.title": "Brak pasujących liczników",
36
+ "usage.emptyFiltered.hint": "Zmień wyszukiwanie lub moduł, aby poszerzyć listę.",
37
+ "usage.error.load": "Nie udało się wczytać liczników.",
38
+ "limits.title": "Limity",
39
+ "limits.description": "Miesięczne pułapy na licznik. Ustawia je operator wdrożenia, a po wyczerpaniu operacja jest odrzucana.",
40
+ "limits.denied": "Potrzebujesz uprawnienia do zużycia, aby zobaczyć limity tego obszaru roboczego.",
41
+ "limits.note": "Obszar roboczy nie zmienia własnego limitu. Ustawia go operator wdrożenia poleceniem metering limits set.",
42
+ "limits.column.meter": "Licznik",
43
+ "limits.column.monthlyLimit": "Limit miesięczny",
44
+ "limits.column.used": "W tym miesiącu",
45
+ "limits.column.setBy": "Ustawił",
46
+ "limits.column.updatedAt": "Zaktualizowano",
47
+ "limits.table.title": "Limity miesięczne",
48
+ "limits.table.count": "Limitów: {count}",
49
+ "limits.table.caption": "Miesięczne limity liczników tego obszaru roboczego",
50
+ "limits.table.loading": "Wczytywanie limitów…",
51
+ "limits.search.label": "Szukaj limitów",
52
+ "limits.search.placeholder": "Klucz licznika",
53
+ "limits.empty.title": "Brak limitów",
54
+ "limits.empty.hint": "Każdy licznik tego obszaru roboczego jest bez limitu, dopóki operator wdrożenia nie ustawi pułapu.",
55
+ "limits.emptyFiltered.title": "Brak pasujących limitów",
56
+ "limits.emptyFiltered.hint": "Zmień wyszukiwanie, aby poszerzyć listę.",
57
+ "limits.error.load": "Nie udało się wczytać limitów.",
58
+ "widget.unlimited": "Brak limitu",
59
+ "widget.share": "{percent}% limitu, {usage}",
60
+ "widget.attention": "Uwaga",
61
+ "widget.link": "Otwórz zużycie",
62
+ "error.request": "Żądanie nie powiodło się.",
63
+ "error.code.INVALID_INPUT": "Żądanie nie zostało przyjęte. Sprawdź licznik i zakres dat.",
64
+ "error.code.METER_NOT_DECLARED": "Żaden złożony moduł nie deklaruje tego licznika.",
65
+ "settings.warningPercent.label": "Próg ostrzeżenia dla limitu (procent)",
66
+ "settings.warningPercent.description": "Udział limitu miesięcznego, przy którym właściciele obszaru roboczego są powiadamiani, zanim limit odrzuci operację.",
67
+ "report.usage.label": "Zużycie w tym miesiącu"
68
+ }
@@ -0,0 +1 @@
1
+ DROP TABLE IF EXISTS notifications_inbox;
@@ -0,0 +1,26 @@
1
+ CREATE TABLE IF NOT EXISTS notifications_inbox (
2
+ id TEXT PRIMARY KEY,
3
+ tenant_id TEXT NOT NULL,
4
+ recipient_account_id TEXT NOT NULL,
5
+ kind TEXT NOT NULL CHECK (kind IN ('agent-run-completed', 'agent-run-failed', 'workflow-run-completed', 'workflow-run-failed', 'webhook-dead-letter')),
6
+ title TEXT NOT NULL,
7
+ body TEXT,
8
+ source_module TEXT NOT NULL,
9
+ source_ref TEXT NOT NULL,
10
+ status TEXT NOT NULL CHECK (status IN ('unread', 'read', 'archived')),
11
+ read_at TIMESTAMPTZ,
12
+ created_at BIGINT NOT NULL
13
+ );
14
+ CREATE INDEX IF NOT EXISTS notifications_inbox_tenant_recipient_account_id_idx
15
+ ON notifications_inbox (tenant_id, recipient_account_id, id);
16
+ -- Publishing is idempotent on the source reference. The capability checks first,
17
+ -- but this index is what actually guarantees one item per member per event.
18
+ CREATE UNIQUE INDEX IF NOT EXISTS notifications_inbox_source_idx
19
+ ON notifications_inbox (tenant_id, recipient_account_id, kind, source_ref);
20
+ CREATE INDEX IF NOT EXISTS notifications_inbox_member_status_idx
21
+ ON notifications_inbox (tenant_id, recipient_account_id, status, created_at DESC, id);
22
+ ALTER TABLE notifications_inbox ENABLE ROW LEVEL SECURITY;
23
+ ALTER TABLE notifications_inbox FORCE ROW LEVEL SECURITY;
24
+ CREATE POLICY notifications_inbox_tenant_policy ON notifications_inbox
25
+ USING (tenant_id = current_setting('coreloom.tenant_id', true))
26
+ WITH CHECK (tenant_id = current_setting('coreloom.tenant_id', true));
@@ -0,0 +1 @@
1
+ DROP TABLE IF EXISTS notifications_preferences;
@@ -0,0 +1,17 @@
1
+ CREATE TABLE IF NOT EXISTS notifications_preferences (
2
+ id TEXT PRIMARY KEY,
3
+ tenant_id TEXT NOT NULL,
4
+ recipient_account_id TEXT NOT NULL,
5
+ kind TEXT NOT NULL CHECK (kind IN ('agent-run-completed', 'agent-run-failed', 'workflow-run-completed', 'workflow-run-failed', 'webhook-dead-letter')),
6
+ enabled SMALLINT NOT NULL CHECK (enabled IN (0, 1)),
7
+ created_at BIGINT NOT NULL,
8
+ updated_at BIGINT NOT NULL
9
+ );
10
+ -- An absent row means enabled, so one row per member and kind is the whole rule.
11
+ CREATE UNIQUE INDEX IF NOT EXISTS notifications_preferences_member_kind_idx
12
+ ON notifications_preferences (tenant_id, recipient_account_id, kind);
13
+ ALTER TABLE notifications_preferences ENABLE ROW LEVEL SECURITY;
14
+ ALTER TABLE notifications_preferences FORCE ROW LEVEL SECURITY;
15
+ CREATE POLICY notifications_preferences_tenant_policy ON notifications_preferences
16
+ USING (tenant_id = current_setting('coreloom.tenant_id', true))
17
+ WITH CHECK (tenant_id = current_setting('coreloom.tenant_id', true));
@@ -0,0 +1 @@
1
+ DROP TABLE IF EXISTS notifications_webhook_subscriptions;
@@ -0,0 +1,30 @@
1
+ CREATE TABLE IF NOT EXISTS notifications_webhook_subscriptions (
2
+ id TEXT PRIMARY KEY,
3
+ tenant_id TEXT NOT NULL,
4
+ name TEXT NOT NULL,
5
+ url TEXT NOT NULL,
6
+ events_json TEXT NOT NULL,
7
+ secret_key_id TEXT NOT NULL,
8
+ secret_iv TEXT NOT NULL,
9
+ secret_tag TEXT NOT NULL,
10
+ secret_ciphertext TEXT NOT NULL,
11
+ secret_fingerprint TEXT NOT NULL,
12
+ secret_revision BIGINT NOT NULL,
13
+ status TEXT NOT NULL CHECK (status IN ('active', 'paused', 'disabled')),
14
+ description TEXT,
15
+ last_delivery_at BIGINT,
16
+ created_at BIGINT NOT NULL,
17
+ updated_at BIGINT NOT NULL,
18
+ created_by TEXT NOT NULL
19
+ );
20
+ -- The name is compared normalized, so the index has to normalize too or a
21
+ -- duplicate would only be caught by the service it is meant to back up.
22
+ CREATE UNIQUE INDEX IF NOT EXISTS notifications_webhook_subscriptions_name_idx
23
+ ON notifications_webhook_subscriptions (tenant_id, lower(name));
24
+ CREATE INDEX IF NOT EXISTS notifications_webhook_subscriptions_status_idx
25
+ ON notifications_webhook_subscriptions (tenant_id, status, lower(name), id);
26
+ ALTER TABLE notifications_webhook_subscriptions ENABLE ROW LEVEL SECURITY;
27
+ ALTER TABLE notifications_webhook_subscriptions FORCE ROW LEVEL SECURITY;
28
+ CREATE POLICY notifications_webhook_subscriptions_tenant_policy ON notifications_webhook_subscriptions
29
+ USING (tenant_id = current_setting('coreloom.tenant_id', true))
30
+ WITH CHECK (tenant_id = current_setting('coreloom.tenant_id', true));
@@ -0,0 +1 @@
1
+ DROP TABLE IF EXISTS notifications_deliveries;
@@ -0,0 +1,35 @@
1
+ CREATE TABLE IF NOT EXISTS notifications_deliveries (
2
+ id TEXT PRIMARY KEY,
3
+ tenant_id TEXT NOT NULL,
4
+ subscription_id TEXT NOT NULL,
5
+ kind TEXT NOT NULL CHECK (kind IN ('agent-run-completed', 'agent-run-failed', 'workflow-run-completed', 'workflow-run-failed', 'webhook-dead-letter')),
6
+ source_module TEXT NOT NULL,
7
+ source_ref TEXT NOT NULL,
8
+ sequence BIGINT NOT NULL,
9
+ attempt_number BIGINT NOT NULL,
10
+ status TEXT NOT NULL CHECK (status IN ('pending', 'succeeded', 'failed', 'dead-letter')),
11
+ scheduled_for BIGINT NOT NULL,
12
+ completed_at BIGINT,
13
+ response_status BIGINT,
14
+ error_class TEXT,
15
+ payload_digest TEXT NOT NULL,
16
+ payload_bytes BIGINT NOT NULL,
17
+ occurred_at BIGINT NOT NULL,
18
+ created_at BIGINT NOT NULL
19
+ );
20
+ -- One row per attempt. The sequence separates the original attempt run from the
21
+ -- ones a replay starts, so publishing the same event twice collides on attempt
22
+ -- one of sequence one while a replay still numbers its own attempts from one.
23
+ CREATE UNIQUE INDEX IF NOT EXISTS notifications_deliveries_attempt_idx
24
+ ON notifications_deliveries (tenant_id, subscription_id, kind, source_ref, sequence, attempt_number);
25
+ CREATE INDEX IF NOT EXISTS notifications_deliveries_routing_idx
26
+ ON notifications_deliveries (status, scheduled_for, tenant_id, id);
27
+ CREATE INDEX IF NOT EXISTS notifications_deliveries_tenant_status_idx
28
+ ON notifications_deliveries (tenant_id, status, scheduled_for DESC, id);
29
+ CREATE INDEX IF NOT EXISTS notifications_deliveries_retention_idx
30
+ ON notifications_deliveries (tenant_id, completed_at);
31
+ ALTER TABLE notifications_deliveries ENABLE ROW LEVEL SECURITY;
32
+ ALTER TABLE notifications_deliveries FORCE ROW LEVEL SECURITY;
33
+ CREATE POLICY notifications_deliveries_tenant_policy ON notifications_deliveries
34
+ USING (tenant_id = current_setting('coreloom.tenant_id', true))
35
+ WITH CHECK (tenant_id = current_setting('coreloom.tenant_id', true));
@@ -0,0 +1,2 @@
1
+ DROP POLICY IF EXISTS notifications_deliveries_background_policy ON notifications_deliveries;
2
+ REVOKE SELECT (tenant_id, id, scheduled_for, status) ON notifications_deliveries FROM coreloom_background;
@@ -0,0 +1,17 @@
1
+ -- The delivery loop must find due attempts across tenants, and retention must
2
+ -- find the tenants that still hold attempts at all. It is granted exactly the
3
+ -- four routing columns: the subscription, the source reference, the digest and
4
+ -- the ledger outcome stay invisible to it, and every attempt is read again under
5
+ -- the tenant the routing row named before any request leaves the process.
6
+ DO $$
7
+ BEGIN
8
+ IF NOT EXISTS (SELECT 1 FROM pg_roles WHERE rolname = 'coreloom_background') THEN
9
+ RAISE EXCEPTION 'The coreloom_background role must exist before this migration.';
10
+ END IF;
11
+ END
12
+ $$;
13
+ CREATE POLICY notifications_deliveries_background_policy ON notifications_deliveries
14
+ FOR SELECT TO coreloom_background
15
+ USING (true);
16
+ REVOKE SELECT ON notifications_deliveries FROM coreloom_background;
17
+ GRANT SELECT (tenant_id, id, scheduled_for, status) ON notifications_deliveries TO coreloom_background;
@@ -0,0 +1 @@
1
+ ALTER TABLE notifications_deliveries DROP COLUMN IF EXISTS title;
@@ -0,0 +1,11 @@
1
+ -- The payload carries the published title so a customer system can show the
2
+ -- event without calling back into the source module. It is part of the signed
3
+ -- body, so it has to live on the attempt row: a retry and a replay rebuild the
4
+ -- payload from the row alone and must produce the same bytes.
5
+ --
6
+ -- The default is empty rather than absent because the column is NOT NULL and a
7
+ -- deployment may already hold attempt rows. Such a row carries no title, so an
8
+ -- attempt left pending across this upgrade sends a body with an empty title
9
+ -- while the digest on it was taken before the field existed; the retry that
10
+ -- attempt schedules is digested from the row again and matches.
11
+ ALTER TABLE notifications_deliveries ADD COLUMN IF NOT EXISTS title TEXT NOT NULL DEFAULT '';
@@ -0,0 +1,2 @@
1
+ DROP POLICY IF EXISTS notifications_webhook_subscriptions_background_policy ON notifications_webhook_subscriptions;
2
+ REVOKE SELECT (tenant_id, secret_key_id) ON notifications_webhook_subscriptions FROM coreloom_background;
@@ -0,0 +1,19 @@
1
+ -- The rotation command has to find the subscriptions still sealed with a
2
+ -- retired key before it knows whose they are, and the subscriptions table is
3
+ -- invisible to the cross-tenant role: it carries no background policy and the
4
+ -- role holds no default table grant. This adds the tenant id and the key id and
5
+ -- nothing else. The nonce, the tag, the ciphertext, the URL and the fingerprint
6
+ -- stay unreadable on this connection, and every row it re-seals is read again
7
+ -- under the tenant that row named.
8
+ DO $$
9
+ BEGIN
10
+ IF NOT EXISTS (SELECT 1 FROM pg_roles WHERE rolname = 'coreloom_background') THEN
11
+ RAISE EXCEPTION 'The coreloom_background role must exist before this migration.';
12
+ END IF;
13
+ END
14
+ $$;
15
+ CREATE POLICY notifications_webhook_subscriptions_background_policy ON notifications_webhook_subscriptions
16
+ FOR SELECT TO coreloom_background
17
+ USING (true);
18
+ REVOKE SELECT ON notifications_webhook_subscriptions FROM coreloom_background;
19
+ GRANT SELECT (tenant_id, secret_key_id) ON notifications_webhook_subscriptions TO coreloom_background;
@@ -0,0 +1,8 @@
1
+ -- A claimed attempt has to return to the queue before the column goes, or the
2
+ -- rollback leaves rows in a state the old check constraint refuses.
3
+ UPDATE notifications_deliveries SET status = 'pending' WHERE status = 'sending';
4
+ REVOKE SELECT (claimed_at) ON notifications_deliveries FROM coreloom_background;
5
+ ALTER TABLE notifications_deliveries DROP CONSTRAINT IF EXISTS notifications_deliveries_status_check;
6
+ ALTER TABLE notifications_deliveries ADD CONSTRAINT notifications_deliveries_status_check
7
+ CHECK (status IN ('pending', 'succeeded', 'failed', 'dead-letter'));
8
+ ALTER TABLE notifications_deliveries DROP COLUMN IF EXISTS claimed_at;
@@ -0,0 +1,19 @@
1
+ -- Two processes drain the same queue during a rolling update, and both see the
2
+ -- same due row. The row is claimed under its own tenant before the request
3
+ -- leaves: the winner moves it to 'sending' and stamps the claim, the loser's
4
+ -- update matches nothing and it moves on, so one pending attempt is one request.
5
+ --
6
+ -- The claim is a lease, not a ledger outcome. It leaves the attempt number, the
7
+ -- response and the error class untouched, and a claim older than the request
8
+ -- timeout plus its grace is taken over again so a process that died mid-send
9
+ -- strands nothing. 'sending' is why the routing page advances instead of
10
+ -- returning the rows another process is already holding.
11
+ --
12
+ -- The cross-tenant poll is the one that has to find a stranded claim, so
13
+ -- claimed_at joins the routing columns the background role may read. It carries
14
+ -- a clock reading and nothing about the tenant, the subscription or the payload.
15
+ ALTER TABLE notifications_deliveries ADD COLUMN IF NOT EXISTS claimed_at BIGINT;
16
+ ALTER TABLE notifications_deliveries DROP CONSTRAINT IF EXISTS notifications_deliveries_status_check;
17
+ ALTER TABLE notifications_deliveries ADD CONSTRAINT notifications_deliveries_status_check
18
+ CHECK (status IN ('pending', 'sending', 'succeeded', 'failed', 'dead-letter'));
19
+ GRANT SELECT (claimed_at) ON notifications_deliveries TO coreloom_background;
@@ -0,0 +1,16 @@
1
+ -- The narrowed check refuses rows already written under an approval kind, so
2
+ -- those rows go before it is restored. A subscription that selected one keeps
3
+ -- the entry in its JSON events: nothing publishes that kind after the rollback,
4
+ -- and the next edit of that subscription is refused until it is deselected.
5
+ DELETE FROM notifications_deliveries WHERE kind IN ('approval-requested', 'approval-decided');
6
+ DELETE FROM notifications_preferences WHERE kind IN ('approval-requested', 'approval-decided');
7
+ DELETE FROM notifications_inbox WHERE kind IN ('approval-requested', 'approval-decided');
8
+ ALTER TABLE notifications_deliveries DROP CONSTRAINT IF EXISTS notifications_deliveries_kind_check;
9
+ ALTER TABLE notifications_deliveries ADD CONSTRAINT notifications_deliveries_kind_check
10
+ CHECK (kind IN ('agent-run-completed', 'agent-run-failed', 'workflow-run-completed', 'workflow-run-failed', 'webhook-dead-letter'));
11
+ ALTER TABLE notifications_preferences DROP CONSTRAINT IF EXISTS notifications_preferences_kind_check;
12
+ ALTER TABLE notifications_preferences ADD CONSTRAINT notifications_preferences_kind_check
13
+ CHECK (kind IN ('agent-run-completed', 'agent-run-failed', 'workflow-run-completed', 'workflow-run-failed', 'webhook-dead-letter'));
14
+ ALTER TABLE notifications_inbox DROP CONSTRAINT IF EXISTS notifications_inbox_kind_check;
15
+ ALTER TABLE notifications_inbox ADD CONSTRAINT notifications_inbox_kind_check
16
+ CHECK (kind IN ('agent-run-completed', 'agent-run-failed', 'workflow-run-completed', 'workflow-run-failed', 'webhook-dead-letter'));
@@ -0,0 +1,18 @@
1
+ -- approvals.core publishes two kinds, so the closed set the inbox, the
2
+ -- preferences and the ledger all key off gains approval-requested and
3
+ -- approval-decided. Each check was written inline with its column, so it
4
+ -- carries the name PostgreSQL derived from it and is replaced under that name.
5
+ -- Widening a check reads no row and rewrites none.
6
+ --
7
+ -- A subscription's selected events are JSON text with no check behind them, so
8
+ -- an older subscription keeps exactly the kinds it was saved with and the
9
+ -- service is the only thing that decides which ones may be selected next.
10
+ ALTER TABLE notifications_inbox DROP CONSTRAINT IF EXISTS notifications_inbox_kind_check;
11
+ ALTER TABLE notifications_inbox ADD CONSTRAINT notifications_inbox_kind_check
12
+ CHECK (kind IN ('agent-run-completed', 'agent-run-failed', 'workflow-run-completed', 'workflow-run-failed', 'webhook-dead-letter', 'approval-requested', 'approval-decided'));
13
+ ALTER TABLE notifications_preferences DROP CONSTRAINT IF EXISTS notifications_preferences_kind_check;
14
+ ALTER TABLE notifications_preferences ADD CONSTRAINT notifications_preferences_kind_check
15
+ CHECK (kind IN ('agent-run-completed', 'agent-run-failed', 'workflow-run-completed', 'workflow-run-failed', 'webhook-dead-letter', 'approval-requested', 'approval-decided'));
16
+ ALTER TABLE notifications_deliveries DROP CONSTRAINT IF EXISTS notifications_deliveries_kind_check;
17
+ ALTER TABLE notifications_deliveries ADD CONSTRAINT notifications_deliveries_kind_check
18
+ CHECK (kind IN ('agent-run-completed', 'agent-run-failed', 'workflow-run-completed', 'workflow-run-failed', 'webhook-dead-letter', 'approval-requested', 'approval-decided'));
@@ -0,0 +1,16 @@
1
+ -- The narrowed check refuses rows already written under the metering kind, so
2
+ -- those rows go before it is restored. A subscription that selected it keeps
3
+ -- the entry in its JSON events: nothing publishes that kind after the rollback,
4
+ -- and the next edit of that subscription is refused until it is deselected.
5
+ DELETE FROM notifications_deliveries WHERE kind = 'meter-threshold';
6
+ DELETE FROM notifications_preferences WHERE kind = 'meter-threshold';
7
+ DELETE FROM notifications_inbox WHERE kind = 'meter-threshold';
8
+ ALTER TABLE notifications_deliveries DROP CONSTRAINT IF EXISTS notifications_deliveries_kind_check;
9
+ ALTER TABLE notifications_deliveries ADD CONSTRAINT notifications_deliveries_kind_check
10
+ CHECK (kind IN ('agent-run-completed', 'agent-run-failed', 'workflow-run-completed', 'workflow-run-failed', 'webhook-dead-letter', 'approval-requested', 'approval-decided'));
11
+ ALTER TABLE notifications_preferences DROP CONSTRAINT IF EXISTS notifications_preferences_kind_check;
12
+ ALTER TABLE notifications_preferences ADD CONSTRAINT notifications_preferences_kind_check
13
+ CHECK (kind IN ('agent-run-completed', 'agent-run-failed', 'workflow-run-completed', 'workflow-run-failed', 'webhook-dead-letter', 'approval-requested', 'approval-decided'));
14
+ ALTER TABLE notifications_inbox DROP CONSTRAINT IF EXISTS notifications_inbox_kind_check;
15
+ ALTER TABLE notifications_inbox ADD CONSTRAINT notifications_inbox_kind_check
16
+ CHECK (kind IN ('agent-run-completed', 'agent-run-failed', 'workflow-run-completed', 'workflow-run-failed', 'webhook-dead-letter', 'approval-requested', 'approval-decided'));
@@ -0,0 +1,18 @@
1
+ -- metering.core publishes one kind, so the closed set the inbox, the
2
+ -- preferences and the ledger all key off gains meter-threshold. Each check was
3
+ -- written inline with its column, so it carries the name PostgreSQL derived
4
+ -- from it and is replaced under that name. Widening a check reads no row and
5
+ -- rewrites none.
6
+ --
7
+ -- A subscription's selected events are JSON text with no check behind them, so
8
+ -- an older subscription keeps exactly the kinds it was saved with and the
9
+ -- service is the only thing that decides which ones may be selected next.
10
+ ALTER TABLE notifications_inbox DROP CONSTRAINT IF EXISTS notifications_inbox_kind_check;
11
+ ALTER TABLE notifications_inbox ADD CONSTRAINT notifications_inbox_kind_check
12
+ CHECK (kind IN ('agent-run-completed', 'agent-run-failed', 'workflow-run-completed', 'workflow-run-failed', 'webhook-dead-letter', 'approval-requested', 'approval-decided', 'meter-threshold'));
13
+ ALTER TABLE notifications_preferences DROP CONSTRAINT IF EXISTS notifications_preferences_kind_check;
14
+ ALTER TABLE notifications_preferences ADD CONSTRAINT notifications_preferences_kind_check
15
+ CHECK (kind IN ('agent-run-completed', 'agent-run-failed', 'workflow-run-completed', 'workflow-run-failed', 'webhook-dead-letter', 'approval-requested', 'approval-decided', 'meter-threshold'));
16
+ ALTER TABLE notifications_deliveries DROP CONSTRAINT IF EXISTS notifications_deliveries_kind_check;
17
+ ALTER TABLE notifications_deliveries ADD CONSTRAINT notifications_deliveries_kind_check
18
+ CHECK (kind IN ('agent-run-completed', 'agent-run-failed', 'workflow-run-completed', 'workflow-run-failed', 'webhook-dead-letter', 'approval-requested', 'approval-decided', 'meter-threshold'));
@@ -0,0 +1,5 @@
1
+ -- Both indexes carry no data of their own, so dropping them loses nothing; the
2
+ -- sweep and the export stay correct and become proportional to the history
3
+ -- instead of the batch.
4
+ DROP INDEX IF EXISTS notifications_deliveries_created_idx;
5
+ DROP INDEX IF EXISTS notifications_inbox_retention_idx;
@@ -0,0 +1,15 @@
1
+ -- The workspace data class registry sweeps and exports what this module holds,
2
+ -- and both walks key off (tenant_id, created_at, id). Without these indexes the
3
+ -- inbox sweep would scan every row of a workspace on every bounded pass and the
4
+ -- export keyset would sort the whole table per page, so the cost of one pass
5
+ -- would grow with the history rather than with the batch.
6
+ --
7
+ -- created_at and id never change after a row is written, so a walk over them
8
+ -- cannot revisit or skip a row while the table is still being written to. The
9
+ -- deliveries ledger already carries (tenant_id, completed_at) for the delivery
10
+ -- loop's own retention pass; that key is mutable until an attempt completes and
11
+ -- serves the sweep only, so the export gets its own immutable one here.
12
+ CREATE INDEX IF NOT EXISTS notifications_inbox_retention_idx
13
+ ON notifications_inbox (tenant_id, created_at, id);
14
+ CREATE INDEX IF NOT EXISTS notifications_deliveries_created_idx
15
+ ON notifications_deliveries (tenant_id, created_at, id);
@@ -0,0 +1,12 @@
1
+ -- An e-mail attempt has no subscription to fall back to, so the rollback drops
2
+ -- those rows rather than leaving the queue holding attempts the webhook loop
3
+ -- cannot address. The member preferences go with the table that held them.
4
+ DELETE FROM notifications_deliveries WHERE channel = 'email';
5
+ DROP INDEX IF EXISTS notifications_deliveries_attempt_idx;
6
+ CREATE UNIQUE INDEX IF NOT EXISTS notifications_deliveries_attempt_idx
7
+ ON notifications_deliveries (tenant_id, subscription_id, kind, source_ref, sequence, attempt_number);
8
+ ALTER TABLE notifications_deliveries DROP CONSTRAINT IF EXISTS notifications_deliveries_channel_check;
9
+ ALTER TABLE notifications_deliveries ALTER COLUMN subscription_id SET NOT NULL;
10
+ ALTER TABLE notifications_deliveries DROP COLUMN IF EXISTS recipient_account_id;
11
+ ALTER TABLE notifications_deliveries DROP COLUMN IF EXISTS channel;
12
+ DROP TABLE IF EXISTS notifications_member_preferences;
@@ -0,0 +1,38 @@
1
+ -- A member asks for e-mail once, for the whole workspace, rather than per kind:
2
+ -- the per-kind switch already decides whether an inbox item exists at all, and
3
+ -- this decides whether the item that exists is also mailed. An absent row is
4
+ -- the default, e-mail off, so a member who never opened the screen is never
5
+ -- mailed by an upgrade.
6
+ CREATE TABLE IF NOT EXISTS notifications_member_preferences (
7
+ tenant_id TEXT NOT NULL,
8
+ recipient_account_id TEXT NOT NULL,
9
+ email_delivery SMALLINT NOT NULL CHECK (email_delivery IN (0, 1)),
10
+ created_at BIGINT NOT NULL,
11
+ updated_at BIGINT NOT NULL,
12
+ PRIMARY KEY (tenant_id, recipient_account_id)
13
+ );
14
+ ALTER TABLE notifications_member_preferences ENABLE ROW LEVEL SECURITY;
15
+ ALTER TABLE notifications_member_preferences FORCE ROW LEVEL SECURITY;
16
+ CREATE POLICY notifications_member_preferences_tenant_policy ON notifications_member_preferences
17
+ USING (tenant_id = current_setting('coreloom.tenant_id', true))
18
+ WITH CHECK (tenant_id = current_setting('coreloom.tenant_id', true));
19
+
20
+ -- The queue carries two channels now. A webhook attempt is addressed to a
21
+ -- subscription of the workspace, an e-mail attempt to one member, and the
22
+ -- constraint keeps a row from claiming both or neither. Every existing row is a
23
+ -- webhook, which is why the column defaults to it.
24
+ ALTER TABLE notifications_deliveries ADD COLUMN IF NOT EXISTS channel TEXT NOT NULL DEFAULT 'webhook';
25
+ ALTER TABLE notifications_deliveries ADD COLUMN IF NOT EXISTS recipient_account_id TEXT;
26
+ ALTER TABLE notifications_deliveries ALTER COLUMN subscription_id DROP NOT NULL;
27
+ ALTER TABLE notifications_deliveries DROP CONSTRAINT IF EXISTS notifications_deliveries_channel_check;
28
+ ALTER TABLE notifications_deliveries ADD CONSTRAINT notifications_deliveries_channel_check
29
+ CHECK (
30
+ (channel = 'webhook' AND subscription_id IS NOT NULL AND recipient_account_id IS NULL)
31
+ OR (channel = 'email' AND recipient_account_id IS NOT NULL AND subscription_id IS NULL)
32
+ );
33
+ -- One row per attempt, per target. The target is the subscription on a webhook
34
+ -- and the member on an e-mail, so the two channels of one event never collide
35
+ -- and publishing the same event twice still collides with itself.
36
+ DROP INDEX IF EXISTS notifications_deliveries_attempt_idx;
37
+ CREATE UNIQUE INDEX IF NOT EXISTS notifications_deliveries_attempt_idx
38
+ ON notifications_deliveries (tenant_id, channel, coalesce(subscription_id, recipient_account_id), kind, source_ref, sequence, attempt_number);
@@ -0,0 +1,5 @@
1
+ -- The indexes carry no data of their own, so dropping them loses nothing; the
2
+ -- lists stay correct and pay a sort per page.
3
+ DROP INDEX IF EXISTS notifications_deliveries_page_idx;
4
+ DROP INDEX IF EXISTS notifications_webhook_subscriptions_page_idx;
5
+ DROP INDEX IF EXISTS notifications_inbox_member_page_idx;
@@ -0,0 +1,13 @@
1
+ -- The three list screens page by keyset over their sort column and the id, both
2
+ -- in one direction, and the direction the reader asks for may be either. An
3
+ -- index that mixes directions, such as the member status index on
4
+ -- (created_at DESC, id), serves neither walk without a sort. Each index here
5
+ -- carries the scope of its list, then the sort column, then the id, all
6
+ -- ascending, so a page is a range read and the descending walk is the same
7
+ -- index read backwards.
8
+ CREATE INDEX IF NOT EXISTS notifications_inbox_member_page_idx
9
+ ON notifications_inbox (tenant_id, recipient_account_id, created_at, id);
10
+ CREATE INDEX IF NOT EXISTS notifications_webhook_subscriptions_page_idx
11
+ ON notifications_webhook_subscriptions (tenant_id, lower(name), id);
12
+ CREATE INDEX IF NOT EXISTS notifications_deliveries_page_idx
13
+ ON notifications_deliveries (tenant_id, scheduled_for, id);
@@ -0,0 +1,3 @@
1
+ # Migrations
2
+
3
+ Migrations in this directory are append-only after release.
@@ -0,0 +1,32 @@
1
+ {
2
+ "$schema": "../../packages/contracts/schemas/module.schema.json",
3
+ "schemaVersion": 1,
4
+ "id": "notifications.core",
5
+ "package": "@flowdular/module-notifications",
6
+ "version": "0.2.8",
7
+ "platformApi": "^0.1.0",
8
+ "profile": "full",
9
+ "capabilities": ["api", "database", "client", "translations", "cli"],
10
+ "platform": {
11
+ "server": true,
12
+ "client": true
13
+ },
14
+ "dependencies": [
15
+ {
16
+ "id": "system.core",
17
+ "range": "^0.7.0"
18
+ },
19
+ {
20
+ "id": "auth.core",
21
+ "range": "^0.13.0"
22
+ }
23
+ ],
24
+ "provides": ["notifications.publish.v1"],
25
+ "tenancy": "required",
26
+ "locales": ["en", "pl"],
27
+ "stability": "experimental",
28
+ "cli": {
29
+ "catalog": "src/cli/commands.json",
30
+ "entry": "src/cli/index.ts"
31
+ }
32
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "@flowdular/module-notifications",
3
+ "version": "0.2.8",
4
+ "private": true,
5
+ "type": "module",
6
+ "exports": {
7
+ ".": "./src/index.ts",
8
+ "./client": "./src/client/index.ts",
9
+ "./server": "./src/server/index.ts",
10
+ "./platform": "./src/platform.ts",
11
+ "./module.json": "./module.json"
12
+ },
13
+ "files": [
14
+ "src",
15
+ "schemas",
16
+ "dist",
17
+ "bin",
18
+ "public",
19
+ "module.json",
20
+ "migrations",
21
+ "translations",
22
+ "spec",
23
+ "README.md",
24
+ "LICENSE"
25
+ ],
26
+ "scripts": {
27
+ "typecheck": "tsrx-tsc --noEmit -p tsconfig.json",
28
+ "test": "vitest run"
29
+ },
30
+ "dependencies": {
31
+ "@flowdular/cli-protocol": "workspace:*",
32
+ "@flowdular/client": "workspace:*",
33
+ "@flowdular/contracts": "workspace:*",
34
+ "@flowdular/database": "workspace:*",
35
+ "@flowdular/kernel": "workspace:*",
36
+ "@flowdular/module-auth": "workspace:*",
37
+ "@flowdular/server": "workspace:*",
38
+ "@flowdular/ui": "workspace:*",
39
+ "octane": "0.1.51",
40
+ "segment-state": "0.2.1"
41
+ },
42
+ "devDependencies": {
43
+ "@flowdular/database-testing": "workspace:*",
44
+ "@tsrx/typescript-plugin": "0.3.120",
45
+ "@types/node": "24.13.3",
46
+ "typescript": "5.9.3",
47
+ "vitest": "4.1.11"
48
+ }
49
+ }