@eloxiv/contracts 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (537) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +6 -2
  3. package/dist/Agent.d.ts +792 -0
  4. package/dist/Agent.d.ts.map +1 -0
  5. package/dist/Agent.js +610 -0
  6. package/dist/Agent.js.map +1 -0
  7. package/dist/Analytics.d.ts +46 -0
  8. package/dist/Analytics.d.ts.map +1 -0
  9. package/dist/Analytics.js +89 -0
  10. package/dist/Analytics.js.map +1 -0
  11. package/dist/Approval.d.ts +70 -0
  12. package/dist/Approval.d.ts.map +1 -0
  13. package/dist/Approval.js +127 -0
  14. package/dist/Approval.js.map +1 -0
  15. package/dist/Catalog.d.ts +238 -0
  16. package/dist/Catalog.d.ts.map +1 -0
  17. package/dist/Catalog.js +169 -0
  18. package/dist/Catalog.js.map +1 -0
  19. package/dist/Checklist.d.ts +99 -0
  20. package/dist/Checklist.d.ts.map +1 -0
  21. package/dist/Checklist.js +105 -0
  22. package/dist/Checklist.js.map +1 -0
  23. package/dist/Data.d.ts +107 -0
  24. package/dist/Data.d.ts.map +1 -0
  25. package/dist/Data.js +93 -0
  26. package/dist/Data.js.map +1 -0
  27. package/dist/Devices.d.ts +857 -0
  28. package/dist/Devices.d.ts.map +1 -0
  29. package/dist/Devices.js +590 -0
  30. package/dist/Devices.js.map +1 -0
  31. package/dist/Durable.d.ts +406 -0
  32. package/dist/Durable.d.ts.map +1 -0
  33. package/dist/Durable.js +203 -0
  34. package/dist/Durable.js.map +1 -0
  35. package/dist/Errors.d.ts +95 -0
  36. package/dist/Errors.d.ts.map +1 -0
  37. package/dist/Errors.js +72 -0
  38. package/dist/Errors.js.map +1 -0
  39. package/dist/JsonSchema.d.ts +355 -0
  40. package/dist/JsonSchema.d.ts.map +1 -0
  41. package/dist/JsonSchema.js +151 -0
  42. package/dist/JsonSchema.js.map +1 -0
  43. package/dist/Manifest.d.ts +353 -0
  44. package/dist/Manifest.d.ts.map +1 -0
  45. package/dist/Manifest.js +894 -0
  46. package/dist/Manifest.js.map +1 -0
  47. package/dist/Module.d.ts +447 -0
  48. package/dist/Module.d.ts.map +1 -0
  49. package/dist/Module.js +221 -0
  50. package/dist/Module.js.map +1 -0
  51. package/dist/Optimistic.d.ts +192 -0
  52. package/dist/Optimistic.d.ts.map +1 -0
  53. package/dist/Optimistic.js +319 -0
  54. package/dist/Optimistic.js.map +1 -0
  55. package/dist/Projection.d.ts +163 -0
  56. package/dist/Projection.d.ts.map +1 -0
  57. package/dist/Projection.js +158 -0
  58. package/dist/Projection.js.map +1 -0
  59. package/dist/Proposals.d.ts +103 -0
  60. package/dist/Proposals.d.ts.map +1 -0
  61. package/dist/Proposals.js +72 -0
  62. package/dist/Proposals.js.map +1 -0
  63. package/dist/Receipt.d.ts +243 -0
  64. package/dist/Receipt.d.ts.map +1 -0
  65. package/dist/Receipt.js +108 -0
  66. package/dist/Receipt.js.map +1 -0
  67. package/dist/Records.d.ts +297 -0
  68. package/dist/Records.d.ts.map +1 -0
  69. package/dist/Records.js +171 -0
  70. package/dist/Records.js.map +1 -0
  71. package/dist/Render.d.ts +207 -0
  72. package/dist/Render.d.ts.map +1 -0
  73. package/dist/Render.js +502 -0
  74. package/dist/Render.js.map +1 -0
  75. package/dist/Rpc.d.ts +115 -0
  76. package/dist/Rpc.d.ts.map +1 -0
  77. package/dist/Rpc.js +68 -0
  78. package/dist/Rpc.js.map +1 -0
  79. package/dist/SearchLanguages.d.ts +4 -0
  80. package/dist/SearchLanguages.d.ts.map +1 -0
  81. package/dist/SearchLanguages.js +33 -0
  82. package/dist/SearchLanguages.js.map +1 -0
  83. package/dist/Service.d.ts +59 -0
  84. package/dist/Service.d.ts.map +1 -0
  85. package/dist/Service.js +38 -0
  86. package/dist/Service.js.map +1 -0
  87. package/dist/Versions.d.ts +9 -0
  88. package/dist/Versions.d.ts.map +1 -0
  89. package/dist/Versions.js +78 -0
  90. package/dist/Versions.js.map +1 -0
  91. package/dist/contracts/ActionConsent.d.ts +189 -0
  92. package/dist/contracts/ActionConsent.d.ts.map +1 -0
  93. package/dist/contracts/ActionConsent.js +129 -0
  94. package/dist/contracts/ActionConsent.js.map +1 -0
  95. package/dist/contracts/ActionRegistry.d.ts +149 -0
  96. package/dist/contracts/ActionRegistry.d.ts.map +1 -0
  97. package/dist/contracts/ActionRegistry.js +37 -0
  98. package/dist/contracts/ActionRegistry.js.map +1 -0
  99. package/dist/contracts/Actor.d.ts +129 -0
  100. package/dist/contracts/Actor.d.ts.map +1 -0
  101. package/dist/contracts/Actor.js +47 -0
  102. package/dist/contracts/Actor.js.map +1 -0
  103. package/dist/contracts/AgentResources.d.ts +248 -0
  104. package/dist/contracts/AgentResources.d.ts.map +1 -0
  105. package/dist/contracts/AgentResources.js +158 -0
  106. package/dist/contracts/AgentResources.js.map +1 -0
  107. package/dist/contracts/AgentRuntime.d.ts +453 -0
  108. package/dist/contracts/AgentRuntime.d.ts.map +1 -0
  109. package/dist/contracts/AgentRuntime.js +117 -0
  110. package/dist/contracts/AgentRuntime.js.map +1 -0
  111. package/dist/contracts/Approvals.d.ts +303 -0
  112. package/dist/contracts/Approvals.d.ts.map +1 -0
  113. package/dist/contracts/Approvals.js +117 -0
  114. package/dist/contracts/Approvals.js.map +1 -0
  115. package/dist/contracts/Audit.d.ts +510 -0
  116. package/dist/contracts/Audit.d.ts.map +1 -0
  117. package/dist/contracts/Audit.js +139 -0
  118. package/dist/contracts/Audit.js.map +1 -0
  119. package/dist/contracts/CalendarProvider.d.ts +572 -0
  120. package/dist/contracts/CalendarProvider.d.ts.map +1 -0
  121. package/dist/contracts/CalendarProvider.js +203 -0
  122. package/dist/contracts/CalendarProvider.js.map +1 -0
  123. package/dist/contracts/Capability.d.ts +197 -0
  124. package/dist/contracts/Capability.d.ts.map +1 -0
  125. package/dist/contracts/Capability.js +189 -0
  126. package/dist/contracts/Capability.js.map +1 -0
  127. package/dist/contracts/ClientSDK.d.ts +250 -0
  128. package/dist/contracts/ClientSDK.d.ts.map +1 -0
  129. package/dist/contracts/ClientSDK.js +184 -0
  130. package/dist/contracts/ClientSDK.js.map +1 -0
  131. package/dist/contracts/CollabDocument.d.ts +781 -0
  132. package/dist/contracts/CollabDocument.d.ts.map +1 -0
  133. package/dist/contracts/CollabDocument.js +364 -0
  134. package/dist/contracts/CollabDocument.js.map +1 -0
  135. package/dist/contracts/Command.d.ts +183 -0
  136. package/dist/contracts/Command.d.ts.map +1 -0
  137. package/dist/contracts/Command.js +66 -0
  138. package/dist/contracts/Command.js.map +1 -0
  139. package/dist/contracts/Connections.d.ts +612 -0
  140. package/dist/contracts/Connections.d.ts.map +1 -0
  141. package/dist/contracts/Connections.js +323 -0
  142. package/dist/contracts/Connections.js.map +1 -0
  143. package/dist/contracts/ContextAccounting.d.ts +79 -0
  144. package/dist/contracts/ContextAccounting.d.ts.map +1 -0
  145. package/dist/contracts/ContextAccounting.js +32 -0
  146. package/dist/contracts/ContextAccounting.js.map +1 -0
  147. package/dist/contracts/Daemon.d.ts +486 -0
  148. package/dist/contracts/Daemon.d.ts.map +1 -0
  149. package/dist/contracts/Daemon.js +192 -0
  150. package/dist/contracts/Daemon.js.map +1 -0
  151. package/dist/contracts/DbTx.d.ts +149 -0
  152. package/dist/contracts/DbTx.d.ts.map +1 -0
  153. package/dist/contracts/DbTx.js +94 -0
  154. package/dist/contracts/DbTx.js.map +1 -0
  155. package/dist/contracts/Delegation.d.ts +121 -0
  156. package/dist/contracts/Delegation.d.ts.map +1 -0
  157. package/dist/contracts/Delegation.js +76 -0
  158. package/dist/contracts/Delegation.js.map +1 -0
  159. package/dist/contracts/DeviceControl.d.ts +293 -0
  160. package/dist/contracts/DeviceControl.d.ts.map +1 -0
  161. package/dist/contracts/DeviceControl.js +107 -0
  162. package/dist/contracts/DeviceControl.js.map +1 -0
  163. package/dist/contracts/Directory.d.ts +492 -0
  164. package/dist/contracts/Directory.d.ts.map +1 -0
  165. package/dist/contracts/Directory.js +225 -0
  166. package/dist/contracts/Directory.js.map +1 -0
  167. package/dist/contracts/DirectoryProvider.d.ts +214 -0
  168. package/dist/contracts/DirectoryProvider.d.ts.map +1 -0
  169. package/dist/contracts/DirectoryProvider.js +73 -0
  170. package/dist/contracts/DirectoryProvider.js.map +1 -0
  171. package/dist/contracts/DocumentSource.d.ts +190 -0
  172. package/dist/contracts/DocumentSource.d.ts.map +1 -0
  173. package/dist/contracts/DocumentSource.js +64 -0
  174. package/dist/contracts/DocumentSource.js.map +1 -0
  175. package/dist/contracts/Files.d.ts +762 -0
  176. package/dist/contracts/Files.d.ts.map +1 -0
  177. package/dist/contracts/Files.js +339 -0
  178. package/dist/contracts/Files.js.map +1 -0
  179. package/dist/contracts/Flags.d.ts +265 -0
  180. package/dist/contracts/Flags.d.ts.map +1 -0
  181. package/dist/contracts/Flags.js +197 -0
  182. package/dist/contracts/Flags.js.map +1 -0
  183. package/dist/contracts/Host.d.ts +320 -0
  184. package/dist/contracts/Host.d.ts.map +1 -0
  185. package/dist/contracts/Host.js +224 -0
  186. package/dist/contracts/Host.js.map +1 -0
  187. package/dist/contracts/HttpApi.d.ts +102 -0
  188. package/dist/contracts/HttpApi.d.ts.map +1 -0
  189. package/dist/contracts/HttpApi.js +89 -0
  190. package/dist/contracts/HttpApi.js.map +1 -0
  191. package/dist/contracts/Ingestion.d.ts +522 -0
  192. package/dist/contracts/Ingestion.d.ts.map +1 -0
  193. package/dist/contracts/Ingestion.js +275 -0
  194. package/dist/contracts/Ingestion.js.map +1 -0
  195. package/dist/contracts/Ingress.d.ts +132 -0
  196. package/dist/contracts/Ingress.d.ts.map +1 -0
  197. package/dist/contracts/Ingress.js +102 -0
  198. package/dist/contracts/Ingress.js.map +1 -0
  199. package/dist/contracts/Invocation.d.ts +361 -0
  200. package/dist/contracts/Invocation.d.ts.map +1 -0
  201. package/dist/contracts/Invocation.js +104 -0
  202. package/dist/contracts/Invocation.js.map +1 -0
  203. package/dist/contracts/LocalClient.d.ts +878 -0
  204. package/dist/contracts/LocalClient.d.ts.map +1 -0
  205. package/dist/contracts/LocalClient.js +423 -0
  206. package/dist/contracts/LocalClient.js.map +1 -0
  207. package/dist/contracts/Locale.d.ts +162 -0
  208. package/dist/contracts/Locale.d.ts.map +1 -0
  209. package/dist/contracts/Locale.js +123 -0
  210. package/dist/contracts/Locale.js.map +1 -0
  211. package/dist/contracts/MachineIdentity.d.ts +434 -0
  212. package/dist/contracts/MachineIdentity.d.ts.map +1 -0
  213. package/dist/contracts/MachineIdentity.js +223 -0
  214. package/dist/contracts/MachineIdentity.js.map +1 -0
  215. package/dist/contracts/MailProvider.d.ts +791 -0
  216. package/dist/contracts/MailProvider.d.ts.map +1 -0
  217. package/dist/contracts/MailProvider.js +237 -0
  218. package/dist/contracts/MailProvider.js.map +1 -0
  219. package/dist/contracts/Memory.d.ts +62 -0
  220. package/dist/contracts/Memory.d.ts.map +1 -0
  221. package/dist/contracts/Memory.js +43 -0
  222. package/dist/contracts/Memory.js.map +1 -0
  223. package/dist/contracts/Messaging.d.ts +154 -0
  224. package/dist/contracts/Messaging.d.ts.map +1 -0
  225. package/dist/contracts/Messaging.js +97 -0
  226. package/dist/contracts/Messaging.js.map +1 -0
  227. package/dist/contracts/Metering.d.ts +334 -0
  228. package/dist/contracts/Metering.d.ts.map +1 -0
  229. package/dist/contracts/Metering.js +202 -0
  230. package/dist/contracts/Metering.js.map +1 -0
  231. package/dist/contracts/ModelProvider.d.ts +142 -0
  232. package/dist/contracts/ModelProvider.d.ts.map +1 -0
  233. package/dist/contracts/ModelProvider.js +72 -0
  234. package/dist/contracts/ModelProvider.js.map +1 -0
  235. package/dist/contracts/ModuleManifest.d.ts +2519 -0
  236. package/dist/contracts/ModuleManifest.d.ts.map +1 -0
  237. package/dist/contracts/ModuleManifest.js +272 -0
  238. package/dist/contracts/ModuleManifest.js.map +1 -0
  239. package/dist/contracts/NotificationChannel.d.ts +378 -0
  240. package/dist/contracts/NotificationChannel.d.ts.map +1 -0
  241. package/dist/contracts/NotificationChannel.js +136 -0
  242. package/dist/contracts/NotificationChannel.js.map +1 -0
  243. package/dist/contracts/Notifications.d.ts +417 -0
  244. package/dist/contracts/Notifications.d.ts.map +1 -0
  245. package/dist/contracts/Notifications.js +267 -0
  246. package/dist/contracts/Notifications.js.map +1 -0
  247. package/dist/contracts/Outbox.d.ts +469 -0
  248. package/dist/contracts/Outbox.d.ts.map +1 -0
  249. package/dist/contracts/Outbox.js +215 -0
  250. package/dist/contracts/Outbox.js.map +1 -0
  251. package/dist/contracts/Privacy.d.ts +1029 -0
  252. package/dist/contracts/Privacy.d.ts.map +1 -0
  253. package/dist/contracts/Privacy.js +437 -0
  254. package/dist/contracts/Privacy.js.map +1 -0
  255. package/dist/contracts/Progress.d.ts +305 -0
  256. package/dist/contracts/Progress.d.ts.map +1 -0
  257. package/dist/contracts/Progress.js +174 -0
  258. package/dist/contracts/Progress.js.map +1 -0
  259. package/dist/contracts/QuerySurface.d.ts +231 -0
  260. package/dist/contracts/QuerySurface.d.ts.map +1 -0
  261. package/dist/contracts/QuerySurface.js +113 -0
  262. package/dist/contracts/QuerySurface.js.map +1 -0
  263. package/dist/contracts/Readiness.d.ts +105 -0
  264. package/dist/contracts/Readiness.d.ts.map +1 -0
  265. package/dist/contracts/Readiness.js +57 -0
  266. package/dist/contracts/Readiness.js.map +1 -0
  267. package/dist/contracts/Release.d.ts +295 -0
  268. package/dist/contracts/Release.d.ts.map +1 -0
  269. package/dist/contracts/Release.js +175 -0
  270. package/dist/contracts/Release.js.map +1 -0
  271. package/dist/contracts/ResultRendering.d.ts +533 -0
  272. package/dist/contracts/ResultRendering.d.ts.map +1 -0
  273. package/dist/contracts/ResultRendering.js +59 -0
  274. package/dist/contracts/ResultRendering.js.map +1 -0
  275. package/dist/contracts/Sandbox.d.ts +1164 -0
  276. package/dist/contracts/Sandbox.d.ts.map +1 -0
  277. package/dist/contracts/Sandbox.js +550 -0
  278. package/dist/contracts/Sandbox.js.map +1 -0
  279. package/dist/contracts/Scheduler.d.ts +814 -0
  280. package/dist/contracts/Scheduler.d.ts.map +1 -0
  281. package/dist/contracts/Scheduler.js +202 -0
  282. package/dist/contracts/Scheduler.js.map +1 -0
  283. package/dist/contracts/ScreenContext.d.ts +514 -0
  284. package/dist/contracts/ScreenContext.d.ts.map +1 -0
  285. package/dist/contracts/ScreenContext.js +272 -0
  286. package/dist/contracts/ScreenContext.js.map +1 -0
  287. package/dist/contracts/Search.d.ts +308 -0
  288. package/dist/contracts/Search.d.ts.map +1 -0
  289. package/dist/contracts/Search.js +107 -0
  290. package/dist/contracts/Search.js.map +1 -0
  291. package/dist/contracts/Secrets.d.ts +483 -0
  292. package/dist/contracts/Secrets.d.ts.map +1 -0
  293. package/dist/contracts/Secrets.js +136 -0
  294. package/dist/contracts/Secrets.js.map +1 -0
  295. package/dist/contracts/Settings.d.ts +221 -0
  296. package/dist/contracts/Settings.d.ts.map +1 -0
  297. package/dist/contracts/Settings.js +163 -0
  298. package/dist/contracts/Settings.js.map +1 -0
  299. package/dist/contracts/Sharing.d.ts +319 -0
  300. package/dist/contracts/Sharing.d.ts.map +1 -0
  301. package/dist/contracts/Sharing.js +172 -0
  302. package/dist/contracts/Sharing.js.map +1 -0
  303. package/dist/contracts/Slot.d.ts +162 -0
  304. package/dist/contracts/Slot.d.ts.map +1 -0
  305. package/dist/contracts/Slot.js +56 -0
  306. package/dist/contracts/Slot.js.map +1 -0
  307. package/dist/contracts/Space.d.ts +256 -0
  308. package/dist/contracts/Space.d.ts.map +1 -0
  309. package/dist/contracts/Space.js +133 -0
  310. package/dist/contracts/Space.js.map +1 -0
  311. package/dist/contracts/StorageAdapter.d.ts +124 -0
  312. package/dist/contracts/StorageAdapter.d.ts.map +1 -0
  313. package/dist/contracts/StorageAdapter.js +96 -0
  314. package/dist/contracts/StorageAdapter.js.map +1 -0
  315. package/dist/contracts/StorageBackend.d.ts +310 -0
  316. package/dist/contracts/StorageBackend.d.ts.map +1 -0
  317. package/dist/contracts/StorageBackend.js +196 -0
  318. package/dist/contracts/StorageBackend.js.map +1 -0
  319. package/dist/contracts/Sync.d.ts +286 -0
  320. package/dist/contracts/Sync.d.ts.map +1 -0
  321. package/dist/contracts/Sync.js +157 -0
  322. package/dist/contracts/Sync.js.map +1 -0
  323. package/dist/contracts/Telemetry.d.ts +183 -0
  324. package/dist/contracts/Telemetry.d.ts.map +1 -0
  325. package/dist/contracts/Telemetry.js +153 -0
  326. package/dist/contracts/Telemetry.js.map +1 -0
  327. package/dist/contracts/ThemeTokens.d.ts +212 -0
  328. package/dist/contracts/ThemeTokens.d.ts.map +1 -0
  329. package/dist/contracts/ThemeTokens.js +111 -0
  330. package/dist/contracts/ThemeTokens.js.map +1 -0
  331. package/dist/contracts/ToolSource.d.ts +135 -0
  332. package/dist/contracts/ToolSource.d.ts.map +1 -0
  333. package/dist/contracts/ToolSource.js +81 -0
  334. package/dist/contracts/ToolSource.js.map +1 -0
  335. package/dist/contracts/Versioning.d.ts +363 -0
  336. package/dist/contracts/Versioning.d.ts.map +1 -0
  337. package/dist/contracts/Versioning.js +201 -0
  338. package/dist/contracts/Versioning.js.map +1 -0
  339. package/dist/contracts/View.d.ts +232 -0
  340. package/dist/contracts/View.d.ts.map +1 -0
  341. package/dist/contracts/View.js +102 -0
  342. package/dist/contracts/View.js.map +1 -0
  343. package/dist/contracts/WorkItems.d.ts +242 -0
  344. package/dist/contracts/WorkItems.d.ts.map +1 -0
  345. package/dist/contracts/WorkItems.js +126 -0
  346. package/dist/contracts/WorkItems.js.map +1 -0
  347. package/dist/contracts/Workflow.d.ts +191 -0
  348. package/dist/contracts/Workflow.d.ts.map +1 -0
  349. package/dist/contracts/Workflow.js +63 -0
  350. package/dist/contracts/Workflow.js.map +1 -0
  351. package/dist/contracts/index.d.ts +75 -0
  352. package/dist/contracts/index.d.ts.map +1 -0
  353. package/dist/contracts/index.js +196 -0
  354. package/dist/contracts/index.js.map +1 -0
  355. package/dist/devices/module.d.ts +3777 -0
  356. package/dist/devices/module.d.ts.map +1 -0
  357. package/dist/devices/module.js +179 -0
  358. package/dist/devices/module.js.map +1 -0
  359. package/dist/drizzle/Entity.d.ts +148 -0
  360. package/dist/drizzle/Entity.d.ts.map +1 -0
  361. package/dist/drizzle/Entity.js +396 -0
  362. package/dist/drizzle/Entity.js.map +1 -0
  363. package/dist/index.d.ts +20 -0
  364. package/dist/index.d.ts.map +1 -0
  365. package/dist/index.js +20 -0
  366. package/dist/index.js.map +1 -0
  367. package/package.json +48 -3
  368. package/schema/Actor.json +46 -0
  369. package/schema/AuditRecord.json +403 -0
  370. package/schema/DaemonHealth.json +29 -0
  371. package/schema/InvocationError.json +257 -0
  372. package/schema/InvocationReceipt.json +253 -0
  373. package/schema/Lockfile.json +129 -0
  374. package/schema/OutboxEvent.json +36 -0
  375. package/schema/PairingConfirm.json +33 -0
  376. package/schema/PairingResult.json +18 -0
  377. package/schema/PairingStart.json +18 -0
  378. package/schema/ProvenanceEntry.json +110 -0
  379. package/schema/ReplayEnvelope.json +269 -0
  380. package/schema/Surface.json +17 -0
  381. package/schema/codegen/LocalClient.json +1295 -0
  382. package/schema/codegen/Sandbox.json +320 -0
  383. package/schema/contracts/ActionConsent.json +1930 -0
  384. package/schema/contracts/ActionRegistry.json +722 -0
  385. package/schema/contracts/Actor.json +451 -0
  386. package/schema/contracts/AgentResources.json +1400 -0
  387. package/schema/contracts/AgentRuntime.json +4017 -0
  388. package/schema/contracts/Approvals.json +2916 -0
  389. package/schema/contracts/Audit.json +3268 -0
  390. package/schema/contracts/CalendarProvider.json +5557 -0
  391. package/schema/contracts/ClientSDK.json +1400 -0
  392. package/schema/contracts/CollabDocument.json +4012 -0
  393. package/schema/contracts/Command.json +616 -0
  394. package/schema/contracts/Connections.json +6687 -0
  395. package/schema/contracts/ContextAccounting.json +685 -0
  396. package/schema/contracts/Daemon.json +4555 -0
  397. package/schema/contracts/DbTx.json +321 -0
  398. package/schema/contracts/Delegation.json +949 -0
  399. package/schema/contracts/DeviceControl.json +2626 -0
  400. package/schema/contracts/Directory.json +5168 -0
  401. package/schema/contracts/DirectoryProvider.json +2090 -0
  402. package/schema/contracts/DocumentSource.json +2044 -0
  403. package/schema/contracts/Files.json +4122 -0
  404. package/schema/contracts/Flags.json +1202 -0
  405. package/schema/contracts/Host.json +1769 -0
  406. package/schema/contracts/HttpApi.json +1615 -0
  407. package/schema/contracts/Ingestion.json +3211 -0
  408. package/schema/contracts/Ingress.json +819 -0
  409. package/schema/contracts/Invocation.json +2044 -0
  410. package/schema/contracts/LocalClient.json +6642 -0
  411. package/schema/contracts/Locale.json +654 -0
  412. package/schema/contracts/MachineIdentity.json +2303 -0
  413. package/schema/contracts/MailProvider.json +6663 -0
  414. package/schema/contracts/Memory.json +579 -0
  415. package/schema/contracts/Messaging.json +1764 -0
  416. package/schema/contracts/Metering.json +3060 -0
  417. package/schema/contracts/ModelProvider.json +1127 -0
  418. package/schema/contracts/ModuleManifest.json +9449 -0
  419. package/schema/contracts/NotificationChannel.json +986 -0
  420. package/schema/contracts/Notifications.json +4280 -0
  421. package/schema/contracts/Outbox.json +1451 -0
  422. package/schema/contracts/Privacy.json +4354 -0
  423. package/schema/contracts/Progress.json +1524 -0
  424. package/schema/contracts/QuerySurface.json +661 -0
  425. package/schema/contracts/Readiness.json +209 -0
  426. package/schema/contracts/Release.json +805 -0
  427. package/schema/contracts/ResultRendering.json +2859 -0
  428. package/schema/contracts/Sandbox.json +2286 -0
  429. package/schema/contracts/Scheduler.json +6138 -0
  430. package/schema/contracts/ScreenContext.json +1238 -0
  431. package/schema/contracts/Search.json +1058 -0
  432. package/schema/contracts/Secrets.json +2444 -0
  433. package/schema/contracts/Settings.json +654 -0
  434. package/schema/contracts/Sharing.json +2854 -0
  435. package/schema/contracts/Slot.json +537 -0
  436. package/schema/contracts/Space.json +892 -0
  437. package/schema/contracts/StorageAdapter.json +623 -0
  438. package/schema/contracts/StorageBackend.json +2421 -0
  439. package/schema/contracts/Sync.json +894 -0
  440. package/schema/contracts/Telemetry.json +696 -0
  441. package/schema/contracts/ThemeTokens.json +547 -0
  442. package/schema/contracts/ToolSource.json +1333 -0
  443. package/schema/contracts/Versioning.json +1481 -0
  444. package/schema/contracts/View.json +750 -0
  445. package/schema/contracts/WorkItems.json +1731 -0
  446. package/schema/contracts/Workflow.json +1242 -0
  447. package/src/Agent.ts +758 -0
  448. package/src/Analytics.ts +110 -0
  449. package/src/Approval.ts +131 -0
  450. package/src/Catalog.ts +192 -0
  451. package/src/Checklist.ts +162 -0
  452. package/src/Data.ts +109 -0
  453. package/src/Devices.ts +721 -0
  454. package/src/Durable.ts +240 -0
  455. package/src/Errors.ts +111 -0
  456. package/src/JsonSchema.ts +166 -0
  457. package/src/Manifest.ts +1147 -0
  458. package/src/Module.ts +640 -0
  459. package/src/Optimistic.ts +332 -0
  460. package/src/Projection.ts +207 -0
  461. package/src/Proposals.ts +89 -0
  462. package/src/Receipt.ts +125 -0
  463. package/src/Records.ts +197 -0
  464. package/src/Render.ts +515 -0
  465. package/src/Rpc.ts +113 -0
  466. package/src/SearchLanguages.ts +33 -0
  467. package/src/Service.ts +102 -0
  468. package/src/Versions.ts +69 -0
  469. package/src/contracts/ActionConsent.ts +150 -0
  470. package/src/contracts/ActionRegistry.ts +39 -0
  471. package/src/contracts/Actor.ts +53 -0
  472. package/src/contracts/AgentResources.ts +167 -0
  473. package/src/contracts/AgentRuntime.ts +154 -0
  474. package/src/contracts/Approvals.ts +133 -0
  475. package/src/contracts/Audit.ts +160 -0
  476. package/src/contracts/CalendarProvider.ts +241 -0
  477. package/src/contracts/Capability.ts +246 -0
  478. package/src/contracts/ClientSDK.ts +199 -0
  479. package/src/contracts/CollabDocument.ts +420 -0
  480. package/src/contracts/Command.ts +74 -0
  481. package/src/contracts/Connections.ts +360 -0
  482. package/src/contracts/ContextAccounting.ts +35 -0
  483. package/src/contracts/Daemon.ts +247 -0
  484. package/src/contracts/DbTx.ts +110 -0
  485. package/src/contracts/Delegation.ts +91 -0
  486. package/src/contracts/DeviceControl.ts +143 -0
  487. package/src/contracts/Directory.ts +384 -0
  488. package/src/contracts/DirectoryProvider.ts +82 -0
  489. package/src/contracts/DocumentSource.ts +71 -0
  490. package/src/contracts/Files.ts +395 -0
  491. package/src/contracts/Flags.ts +241 -0
  492. package/src/contracts/Host.ts +245 -0
  493. package/src/contracts/HttpApi.ts +100 -0
  494. package/src/contracts/Ingestion.ts +315 -0
  495. package/src/contracts/Ingress.ts +132 -0
  496. package/src/contracts/Invocation.ts +122 -0
  497. package/src/contracts/LocalClient.ts +614 -0
  498. package/src/contracts/Locale.ts +133 -0
  499. package/src/contracts/MachineIdentity.ts +305 -0
  500. package/src/contracts/MailProvider.ts +272 -0
  501. package/src/contracts/Memory.ts +47 -0
  502. package/src/contracts/Messaging.ts +108 -0
  503. package/src/contracts/Metering.ts +231 -0
  504. package/src/contracts/ModelProvider.ts +87 -0
  505. package/src/contracts/ModuleManifest.ts +310 -0
  506. package/src/contracts/NotificationChannel.ts +158 -0
  507. package/src/contracts/Notifications.ts +309 -0
  508. package/src/contracts/Outbox.ts +246 -0
  509. package/src/contracts/Privacy.ts +502 -0
  510. package/src/contracts/Progress.ts +196 -0
  511. package/src/contracts/QuerySurface.ts +134 -0
  512. package/src/contracts/Readiness.ts +67 -0
  513. package/src/contracts/Release.ts +199 -0
  514. package/src/contracts/ResultRendering.ts +65 -0
  515. package/src/contracts/Sandbox.ts +648 -0
  516. package/src/contracts/Scheduler.ts +237 -0
  517. package/src/contracts/ScreenContext.ts +316 -0
  518. package/src/contracts/Search.ts +126 -0
  519. package/src/contracts/Secrets.ts +162 -0
  520. package/src/contracts/Settings.ts +207 -0
  521. package/src/contracts/Sharing.ts +205 -0
  522. package/src/contracts/Slot.ts +61 -0
  523. package/src/contracts/Space.ts +157 -0
  524. package/src/contracts/StorageAdapter.ts +104 -0
  525. package/src/contracts/StorageBackend.ts +220 -0
  526. package/src/contracts/Sync.ts +180 -0
  527. package/src/contracts/Telemetry.ts +177 -0
  528. package/src/contracts/ThemeTokens.ts +136 -0
  529. package/src/contracts/ToolSource.ts +94 -0
  530. package/src/contracts/Versioning.ts +237 -0
  531. package/src/contracts/View.ts +116 -0
  532. package/src/contracts/WorkItems.ts +144 -0
  533. package/src/contracts/Workflow.ts +67 -0
  534. package/src/contracts/index.ts +205 -0
  535. package/src/devices/module.ts +201 -0
  536. package/src/drizzle/Entity.ts +524 -0
  537. package/src/index.ts +19 -0
@@ -0,0 +1,4280 @@
1
+ {
2
+ "title": "Notifications",
3
+ "kind": "kernel",
4
+ "version": "1.3.0",
5
+ "description": "Durable notifications per recipient: in-app records each person reads, marks and dismisses (synced to their replica), delivered through channels by category according to per-user preferences, with retries through the outbox and a delivery log. System email uses registered templates with variables, per-organisation overrides, preview, an unsubscribe link and suppression. Push goes to the app installations each person registers from their own session; approval and consent notifications carry a single-use decision token the person redeems from the notification.",
6
+ "operations": {
7
+ "send": {
8
+ "description": "Create one notification per recipient (members of the organisation) in the caller's transaction, and queue its delivery to each channel the recipient's preference for the category names (default: in-app and email). Idempotent per (key, recipient).",
9
+ "input": {
10
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
11
+ "type": "object",
12
+ "properties": {
13
+ "orgId": {
14
+ "type": "string"
15
+ },
16
+ "recipients": {
17
+ "type": "array",
18
+ "items": {
19
+ "type": "string"
20
+ }
21
+ },
22
+ "category": {
23
+ "type": "string"
24
+ },
25
+ "title": {
26
+ "type": "string"
27
+ },
28
+ "body": {
29
+ "type": "string"
30
+ },
31
+ "link": {
32
+ "anyOf": [
33
+ {
34
+ "type": "object",
35
+ "properties": {
36
+ "module": {
37
+ "type": "string"
38
+ },
39
+ "entity": {
40
+ "type": "string"
41
+ },
42
+ "id": {
43
+ "type": "string"
44
+ }
45
+ },
46
+ "required": [
47
+ "module",
48
+ "entity",
49
+ "id"
50
+ ],
51
+ "additionalProperties": true
52
+ },
53
+ {
54
+ "type": "null"
55
+ }
56
+ ]
57
+ },
58
+ "email": {
59
+ "type": "object",
60
+ "properties": {
61
+ "template": {
62
+ "type": "string"
63
+ },
64
+ "variables": {
65
+ "type": "object"
66
+ }
67
+ },
68
+ "required": [
69
+ "template",
70
+ "variables"
71
+ ],
72
+ "additionalProperties": true
73
+ },
74
+ "key": {
75
+ "type": "string"
76
+ }
77
+ },
78
+ "required": [
79
+ "orgId",
80
+ "recipients",
81
+ "category",
82
+ "title",
83
+ "body"
84
+ ],
85
+ "additionalProperties": true
86
+ },
87
+ "output": {
88
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
89
+ "type": "object",
90
+ "properties": {
91
+ "ids": {
92
+ "type": "array",
93
+ "items": {
94
+ "type": "string"
95
+ }
96
+ }
97
+ },
98
+ "required": [
99
+ "ids"
100
+ ],
101
+ "additionalProperties": true
102
+ },
103
+ "errors": {
104
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
105
+ "anyOf": [
106
+ {
107
+ "$ref": "#/$defs/InvalidInputEncoded"
108
+ },
109
+ {
110
+ "$ref": "#/$defs/UnknownTemplateEncoded"
111
+ }
112
+ ],
113
+ "$defs": {
114
+ "InvalidInputEncoded": {
115
+ "type": "object",
116
+ "properties": {
117
+ "_tag": {
118
+ "type": "string",
119
+ "enum": [
120
+ "InvalidInput"
121
+ ]
122
+ },
123
+ "message": {
124
+ "type": "string"
125
+ }
126
+ },
127
+ "required": [
128
+ "_tag",
129
+ "message"
130
+ ],
131
+ "additionalProperties": true
132
+ },
133
+ "UnknownTemplateEncoded": {
134
+ "type": "object",
135
+ "properties": {
136
+ "_tag": {
137
+ "type": "string",
138
+ "enum": [
139
+ "UnknownTemplate"
140
+ ]
141
+ },
142
+ "template": {
143
+ "type": "string"
144
+ }
145
+ },
146
+ "required": [
147
+ "_tag",
148
+ "template"
149
+ ],
150
+ "additionalProperties": true
151
+ }
152
+ }
153
+ }
154
+ },
155
+ "list": {
156
+ "description": "Action notifications.list: the caller's own notifications in the organisation they act in, newest first (dismissed ones left out), optionally only unread ones or one category.",
157
+ "input": {
158
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
159
+ "type": "object",
160
+ "properties": {
161
+ "unreadOnly": {
162
+ "type": "boolean"
163
+ },
164
+ "category": {
165
+ "type": "string"
166
+ },
167
+ "limit": {
168
+ "type": "integer",
169
+ "minimum": 1,
170
+ "maximum": 200
171
+ }
172
+ },
173
+ "additionalProperties": true
174
+ },
175
+ "output": {
176
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
177
+ "type": "object",
178
+ "properties": {
179
+ "notifications": {
180
+ "type": "array",
181
+ "items": {
182
+ "type": "object",
183
+ "properties": {
184
+ "id": {
185
+ "type": "string"
186
+ },
187
+ "orgId": {
188
+ "type": "string"
189
+ },
190
+ "recipientId": {
191
+ "type": "string"
192
+ },
193
+ "category": {
194
+ "type": "string"
195
+ },
196
+ "title": {
197
+ "type": "string"
198
+ },
199
+ "body": {
200
+ "type": "string"
201
+ },
202
+ "link": {
203
+ "anyOf": [
204
+ {
205
+ "type": "object",
206
+ "properties": {
207
+ "module": {
208
+ "type": "string"
209
+ },
210
+ "entity": {
211
+ "type": "string"
212
+ },
213
+ "id": {
214
+ "type": "string"
215
+ }
216
+ },
217
+ "required": [
218
+ "module",
219
+ "entity",
220
+ "id"
221
+ ],
222
+ "additionalProperties": true
223
+ },
224
+ {
225
+ "type": "null"
226
+ }
227
+ ]
228
+ },
229
+ "createdAt": {
230
+ "type": "string"
231
+ },
232
+ "readAt": {
233
+ "anyOf": [
234
+ {
235
+ "type": "string"
236
+ },
237
+ {
238
+ "type": "null"
239
+ }
240
+ ]
241
+ },
242
+ "dismissedAt": {
243
+ "anyOf": [
244
+ {
245
+ "type": "string"
246
+ },
247
+ {
248
+ "type": "null"
249
+ }
250
+ ]
251
+ }
252
+ },
253
+ "required": [
254
+ "id",
255
+ "orgId",
256
+ "recipientId",
257
+ "category",
258
+ "title",
259
+ "body",
260
+ "link",
261
+ "createdAt",
262
+ "readAt",
263
+ "dismissedAt"
264
+ ],
265
+ "additionalProperties": true
266
+ }
267
+ }
268
+ },
269
+ "required": [
270
+ "notifications"
271
+ ],
272
+ "additionalProperties": true
273
+ },
274
+ "errors": {
275
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
276
+ "anyOf": [
277
+ {
278
+ "$ref": "#/$defs/UnauthenticatedEncoded"
279
+ },
280
+ {
281
+ "$ref": "#/$defs/ForbiddenEncoded"
282
+ },
283
+ {
284
+ "$ref": "#/$defs/ApprovalRequiredEncoded"
285
+ },
286
+ {
287
+ "$ref": "#/$defs/ConsentRequiredEncoded"
288
+ },
289
+ {
290
+ "$ref": "#/$defs/IdempotencyConflictEncoded"
291
+ },
292
+ {
293
+ "$ref": "#/$defs/InvalidInputEncoded"
294
+ },
295
+ {
296
+ "$ref": "#/$defs/UnknownActionEncoded"
297
+ },
298
+ {
299
+ "$ref": "#/$defs/ActionFailedEncoded"
300
+ },
301
+ {
302
+ "$ref": "#/$defs/ClientOutdatedEncoded"
303
+ }
304
+ ],
305
+ "$defs": {
306
+ "UnauthenticatedEncoded": {
307
+ "type": "object",
308
+ "properties": {
309
+ "_tag": {
310
+ "type": "string",
311
+ "enum": [
312
+ "Unauthenticated"
313
+ ]
314
+ },
315
+ "message": {
316
+ "type": "string"
317
+ }
318
+ },
319
+ "required": [
320
+ "_tag",
321
+ "message"
322
+ ],
323
+ "additionalProperties": true
324
+ },
325
+ "ForbiddenEncoded": {
326
+ "type": "object",
327
+ "properties": {
328
+ "_tag": {
329
+ "type": "string",
330
+ "enum": [
331
+ "Forbidden"
332
+ ]
333
+ },
334
+ "message": {
335
+ "type": "string"
336
+ },
337
+ "action": {
338
+ "type": "string"
339
+ }
340
+ },
341
+ "required": [
342
+ "_tag",
343
+ "message",
344
+ "action"
345
+ ],
346
+ "additionalProperties": true
347
+ },
348
+ "ApprovalRequiredEncoded": {
349
+ "type": "object",
350
+ "properties": {
351
+ "_tag": {
352
+ "type": "string",
353
+ "enum": [
354
+ "ApprovalRequired"
355
+ ]
356
+ },
357
+ "message": {
358
+ "type": "string"
359
+ },
360
+ "action": {
361
+ "type": "string"
362
+ },
363
+ "approvalId": {
364
+ "type": "string"
365
+ }
366
+ },
367
+ "required": [
368
+ "_tag",
369
+ "message",
370
+ "action",
371
+ "approvalId"
372
+ ],
373
+ "additionalProperties": true
374
+ },
375
+ "ConsentRequiredEncoded": {
376
+ "type": "object",
377
+ "properties": {
378
+ "_tag": {
379
+ "type": "string",
380
+ "enum": [
381
+ "ConsentRequired"
382
+ ]
383
+ },
384
+ "message": {
385
+ "type": "string"
386
+ },
387
+ "action": {
388
+ "type": "string"
389
+ },
390
+ "consentId": {
391
+ "type": "string"
392
+ }
393
+ },
394
+ "required": [
395
+ "_tag",
396
+ "message",
397
+ "action",
398
+ "consentId"
399
+ ],
400
+ "additionalProperties": true
401
+ },
402
+ "IdempotencyConflictEncoded": {
403
+ "type": "object",
404
+ "properties": {
405
+ "_tag": {
406
+ "type": "string",
407
+ "enum": [
408
+ "IdempotencyConflict"
409
+ ]
410
+ },
411
+ "message": {
412
+ "type": "string"
413
+ },
414
+ "key": {
415
+ "type": "string"
416
+ }
417
+ },
418
+ "required": [
419
+ "_tag",
420
+ "message",
421
+ "key"
422
+ ],
423
+ "additionalProperties": true
424
+ },
425
+ "InvalidInputEncoded": {
426
+ "type": "object",
427
+ "properties": {
428
+ "_tag": {
429
+ "type": "string",
430
+ "enum": [
431
+ "InvalidInput"
432
+ ]
433
+ },
434
+ "message": {
435
+ "type": "string"
436
+ }
437
+ },
438
+ "required": [
439
+ "_tag",
440
+ "message"
441
+ ],
442
+ "additionalProperties": true
443
+ },
444
+ "UnknownActionEncoded": {
445
+ "type": "object",
446
+ "properties": {
447
+ "_tag": {
448
+ "type": "string",
449
+ "enum": [
450
+ "UnknownAction"
451
+ ]
452
+ },
453
+ "message": {
454
+ "type": "string"
455
+ },
456
+ "action": {
457
+ "type": "string"
458
+ }
459
+ },
460
+ "required": [
461
+ "_tag",
462
+ "message",
463
+ "action"
464
+ ],
465
+ "additionalProperties": true
466
+ },
467
+ "ActionFailedEncoded": {
468
+ "type": "object",
469
+ "properties": {
470
+ "_tag": {
471
+ "type": "string",
472
+ "enum": [
473
+ "ActionFailed"
474
+ ]
475
+ },
476
+ "message": {
477
+ "type": "string"
478
+ },
479
+ "action": {
480
+ "type": "string"
481
+ },
482
+ "effect": {
483
+ "type": "string",
484
+ "enum": [
485
+ "none",
486
+ "unknown"
487
+ ]
488
+ }
489
+ },
490
+ "required": [
491
+ "_tag",
492
+ "message",
493
+ "action"
494
+ ],
495
+ "additionalProperties": true
496
+ },
497
+ "ClientOutdatedEncoded": {
498
+ "type": "object",
499
+ "properties": {
500
+ "_tag": {
501
+ "type": "string",
502
+ "enum": [
503
+ "ClientOutdated"
504
+ ]
505
+ },
506
+ "message": {
507
+ "type": "string"
508
+ },
509
+ "action": {
510
+ "type": "string"
511
+ },
512
+ "clientVersion": {
513
+ "type": "string"
514
+ },
515
+ "minClientVersion": {
516
+ "type": "string"
517
+ }
518
+ },
519
+ "required": [
520
+ "_tag",
521
+ "message",
522
+ "action",
523
+ "clientVersion",
524
+ "minClientVersion"
525
+ ],
526
+ "additionalProperties": true
527
+ }
528
+ }
529
+ }
530
+ },
531
+ "count": {
532
+ "description": "Action notifications.count: how many of the caller's notifications are unread (and not dismissed).",
533
+ "input": {
534
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
535
+ "type": "object",
536
+ "properties": {
537
+ "category": {
538
+ "type": "string"
539
+ }
540
+ },
541
+ "additionalProperties": true
542
+ },
543
+ "output": {
544
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
545
+ "type": "object",
546
+ "properties": {
547
+ "unread": {
548
+ "type": "integer",
549
+ "minimum": -9007199254740991,
550
+ "maximum": 9007199254740991
551
+ }
552
+ },
553
+ "required": [
554
+ "unread"
555
+ ],
556
+ "additionalProperties": true
557
+ },
558
+ "errors": {
559
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
560
+ "anyOf": [
561
+ {
562
+ "$ref": "#/$defs/UnauthenticatedEncoded"
563
+ },
564
+ {
565
+ "$ref": "#/$defs/ForbiddenEncoded"
566
+ },
567
+ {
568
+ "$ref": "#/$defs/ApprovalRequiredEncoded"
569
+ },
570
+ {
571
+ "$ref": "#/$defs/ConsentRequiredEncoded"
572
+ },
573
+ {
574
+ "$ref": "#/$defs/IdempotencyConflictEncoded"
575
+ },
576
+ {
577
+ "$ref": "#/$defs/InvalidInputEncoded"
578
+ },
579
+ {
580
+ "$ref": "#/$defs/UnknownActionEncoded"
581
+ },
582
+ {
583
+ "$ref": "#/$defs/ActionFailedEncoded"
584
+ },
585
+ {
586
+ "$ref": "#/$defs/ClientOutdatedEncoded"
587
+ }
588
+ ],
589
+ "$defs": {
590
+ "UnauthenticatedEncoded": {
591
+ "type": "object",
592
+ "properties": {
593
+ "_tag": {
594
+ "type": "string",
595
+ "enum": [
596
+ "Unauthenticated"
597
+ ]
598
+ },
599
+ "message": {
600
+ "type": "string"
601
+ }
602
+ },
603
+ "required": [
604
+ "_tag",
605
+ "message"
606
+ ],
607
+ "additionalProperties": true
608
+ },
609
+ "ForbiddenEncoded": {
610
+ "type": "object",
611
+ "properties": {
612
+ "_tag": {
613
+ "type": "string",
614
+ "enum": [
615
+ "Forbidden"
616
+ ]
617
+ },
618
+ "message": {
619
+ "type": "string"
620
+ },
621
+ "action": {
622
+ "type": "string"
623
+ }
624
+ },
625
+ "required": [
626
+ "_tag",
627
+ "message",
628
+ "action"
629
+ ],
630
+ "additionalProperties": true
631
+ },
632
+ "ApprovalRequiredEncoded": {
633
+ "type": "object",
634
+ "properties": {
635
+ "_tag": {
636
+ "type": "string",
637
+ "enum": [
638
+ "ApprovalRequired"
639
+ ]
640
+ },
641
+ "message": {
642
+ "type": "string"
643
+ },
644
+ "action": {
645
+ "type": "string"
646
+ },
647
+ "approvalId": {
648
+ "type": "string"
649
+ }
650
+ },
651
+ "required": [
652
+ "_tag",
653
+ "message",
654
+ "action",
655
+ "approvalId"
656
+ ],
657
+ "additionalProperties": true
658
+ },
659
+ "ConsentRequiredEncoded": {
660
+ "type": "object",
661
+ "properties": {
662
+ "_tag": {
663
+ "type": "string",
664
+ "enum": [
665
+ "ConsentRequired"
666
+ ]
667
+ },
668
+ "message": {
669
+ "type": "string"
670
+ },
671
+ "action": {
672
+ "type": "string"
673
+ },
674
+ "consentId": {
675
+ "type": "string"
676
+ }
677
+ },
678
+ "required": [
679
+ "_tag",
680
+ "message",
681
+ "action",
682
+ "consentId"
683
+ ],
684
+ "additionalProperties": true
685
+ },
686
+ "IdempotencyConflictEncoded": {
687
+ "type": "object",
688
+ "properties": {
689
+ "_tag": {
690
+ "type": "string",
691
+ "enum": [
692
+ "IdempotencyConflict"
693
+ ]
694
+ },
695
+ "message": {
696
+ "type": "string"
697
+ },
698
+ "key": {
699
+ "type": "string"
700
+ }
701
+ },
702
+ "required": [
703
+ "_tag",
704
+ "message",
705
+ "key"
706
+ ],
707
+ "additionalProperties": true
708
+ },
709
+ "InvalidInputEncoded": {
710
+ "type": "object",
711
+ "properties": {
712
+ "_tag": {
713
+ "type": "string",
714
+ "enum": [
715
+ "InvalidInput"
716
+ ]
717
+ },
718
+ "message": {
719
+ "type": "string"
720
+ }
721
+ },
722
+ "required": [
723
+ "_tag",
724
+ "message"
725
+ ],
726
+ "additionalProperties": true
727
+ },
728
+ "UnknownActionEncoded": {
729
+ "type": "object",
730
+ "properties": {
731
+ "_tag": {
732
+ "type": "string",
733
+ "enum": [
734
+ "UnknownAction"
735
+ ]
736
+ },
737
+ "message": {
738
+ "type": "string"
739
+ },
740
+ "action": {
741
+ "type": "string"
742
+ }
743
+ },
744
+ "required": [
745
+ "_tag",
746
+ "message",
747
+ "action"
748
+ ],
749
+ "additionalProperties": true
750
+ },
751
+ "ActionFailedEncoded": {
752
+ "type": "object",
753
+ "properties": {
754
+ "_tag": {
755
+ "type": "string",
756
+ "enum": [
757
+ "ActionFailed"
758
+ ]
759
+ },
760
+ "message": {
761
+ "type": "string"
762
+ },
763
+ "action": {
764
+ "type": "string"
765
+ },
766
+ "effect": {
767
+ "type": "string",
768
+ "enum": [
769
+ "none",
770
+ "unknown"
771
+ ]
772
+ }
773
+ },
774
+ "required": [
775
+ "_tag",
776
+ "message",
777
+ "action"
778
+ ],
779
+ "additionalProperties": true
780
+ },
781
+ "ClientOutdatedEncoded": {
782
+ "type": "object",
783
+ "properties": {
784
+ "_tag": {
785
+ "type": "string",
786
+ "enum": [
787
+ "ClientOutdated"
788
+ ]
789
+ },
790
+ "message": {
791
+ "type": "string"
792
+ },
793
+ "action": {
794
+ "type": "string"
795
+ },
796
+ "clientVersion": {
797
+ "type": "string"
798
+ },
799
+ "minClientVersion": {
800
+ "type": "string"
801
+ }
802
+ },
803
+ "required": [
804
+ "_tag",
805
+ "message",
806
+ "action",
807
+ "clientVersion",
808
+ "minClientVersion"
809
+ ],
810
+ "additionalProperties": true
811
+ }
812
+ }
813
+ }
814
+ },
815
+ "notify": {
816
+ "description": "Action notifications.notify: send a notification to yourself, or with notifications.send to other members of your organisation, delivered like any other (in-app, and email when asked and preferred).",
817
+ "input": {
818
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
819
+ "type": "object",
820
+ "properties": {
821
+ "title": {
822
+ "type": "string",
823
+ "minLength": 1,
824
+ "maxLength": 200
825
+ },
826
+ "body": {
827
+ "type": "string",
828
+ "maxLength": 4000
829
+ },
830
+ "recipients": {
831
+ "type": "array",
832
+ "items": {
833
+ "type": "string"
834
+ },
835
+ "minItems": 1,
836
+ "maxItems": 50
837
+ },
838
+ "category": {
839
+ "type": "string",
840
+ "minLength": 1,
841
+ "maxLength": 100
842
+ },
843
+ "link": {
844
+ "type": "object",
845
+ "properties": {
846
+ "module": {
847
+ "type": "string"
848
+ },
849
+ "entity": {
850
+ "type": "string"
851
+ },
852
+ "id": {
853
+ "type": "string"
854
+ }
855
+ },
856
+ "required": [
857
+ "module",
858
+ "entity",
859
+ "id"
860
+ ],
861
+ "additionalProperties": true
862
+ },
863
+ "email": {
864
+ "type": "boolean"
865
+ }
866
+ },
867
+ "required": [
868
+ "title",
869
+ "body"
870
+ ],
871
+ "additionalProperties": true
872
+ },
873
+ "output": {
874
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
875
+ "type": "object",
876
+ "properties": {
877
+ "recipients": {
878
+ "type": "array",
879
+ "items": {
880
+ "type": "string"
881
+ }
882
+ }
883
+ },
884
+ "required": [
885
+ "recipients"
886
+ ],
887
+ "additionalProperties": true
888
+ },
889
+ "errors": {
890
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
891
+ "anyOf": [
892
+ {
893
+ "$ref": "#/$defs/UnauthenticatedEncoded"
894
+ },
895
+ {
896
+ "$ref": "#/$defs/ForbiddenEncoded"
897
+ },
898
+ {
899
+ "$ref": "#/$defs/ApprovalRequiredEncoded"
900
+ },
901
+ {
902
+ "$ref": "#/$defs/ConsentRequiredEncoded"
903
+ },
904
+ {
905
+ "$ref": "#/$defs/IdempotencyConflictEncoded"
906
+ },
907
+ {
908
+ "$ref": "#/$defs/InvalidInputEncoded"
909
+ },
910
+ {
911
+ "$ref": "#/$defs/UnknownActionEncoded"
912
+ },
913
+ {
914
+ "$ref": "#/$defs/ActionFailedEncoded"
915
+ },
916
+ {
917
+ "$ref": "#/$defs/ClientOutdatedEncoded"
918
+ }
919
+ ],
920
+ "$defs": {
921
+ "UnauthenticatedEncoded": {
922
+ "type": "object",
923
+ "properties": {
924
+ "_tag": {
925
+ "type": "string",
926
+ "enum": [
927
+ "Unauthenticated"
928
+ ]
929
+ },
930
+ "message": {
931
+ "type": "string"
932
+ }
933
+ },
934
+ "required": [
935
+ "_tag",
936
+ "message"
937
+ ],
938
+ "additionalProperties": true
939
+ },
940
+ "ForbiddenEncoded": {
941
+ "type": "object",
942
+ "properties": {
943
+ "_tag": {
944
+ "type": "string",
945
+ "enum": [
946
+ "Forbidden"
947
+ ]
948
+ },
949
+ "message": {
950
+ "type": "string"
951
+ },
952
+ "action": {
953
+ "type": "string"
954
+ }
955
+ },
956
+ "required": [
957
+ "_tag",
958
+ "message",
959
+ "action"
960
+ ],
961
+ "additionalProperties": true
962
+ },
963
+ "ApprovalRequiredEncoded": {
964
+ "type": "object",
965
+ "properties": {
966
+ "_tag": {
967
+ "type": "string",
968
+ "enum": [
969
+ "ApprovalRequired"
970
+ ]
971
+ },
972
+ "message": {
973
+ "type": "string"
974
+ },
975
+ "action": {
976
+ "type": "string"
977
+ },
978
+ "approvalId": {
979
+ "type": "string"
980
+ }
981
+ },
982
+ "required": [
983
+ "_tag",
984
+ "message",
985
+ "action",
986
+ "approvalId"
987
+ ],
988
+ "additionalProperties": true
989
+ },
990
+ "ConsentRequiredEncoded": {
991
+ "type": "object",
992
+ "properties": {
993
+ "_tag": {
994
+ "type": "string",
995
+ "enum": [
996
+ "ConsentRequired"
997
+ ]
998
+ },
999
+ "message": {
1000
+ "type": "string"
1001
+ },
1002
+ "action": {
1003
+ "type": "string"
1004
+ },
1005
+ "consentId": {
1006
+ "type": "string"
1007
+ }
1008
+ },
1009
+ "required": [
1010
+ "_tag",
1011
+ "message",
1012
+ "action",
1013
+ "consentId"
1014
+ ],
1015
+ "additionalProperties": true
1016
+ },
1017
+ "IdempotencyConflictEncoded": {
1018
+ "type": "object",
1019
+ "properties": {
1020
+ "_tag": {
1021
+ "type": "string",
1022
+ "enum": [
1023
+ "IdempotencyConflict"
1024
+ ]
1025
+ },
1026
+ "message": {
1027
+ "type": "string"
1028
+ },
1029
+ "key": {
1030
+ "type": "string"
1031
+ }
1032
+ },
1033
+ "required": [
1034
+ "_tag",
1035
+ "message",
1036
+ "key"
1037
+ ],
1038
+ "additionalProperties": true
1039
+ },
1040
+ "InvalidInputEncoded": {
1041
+ "type": "object",
1042
+ "properties": {
1043
+ "_tag": {
1044
+ "type": "string",
1045
+ "enum": [
1046
+ "InvalidInput"
1047
+ ]
1048
+ },
1049
+ "message": {
1050
+ "type": "string"
1051
+ }
1052
+ },
1053
+ "required": [
1054
+ "_tag",
1055
+ "message"
1056
+ ],
1057
+ "additionalProperties": true
1058
+ },
1059
+ "UnknownActionEncoded": {
1060
+ "type": "object",
1061
+ "properties": {
1062
+ "_tag": {
1063
+ "type": "string",
1064
+ "enum": [
1065
+ "UnknownAction"
1066
+ ]
1067
+ },
1068
+ "message": {
1069
+ "type": "string"
1070
+ },
1071
+ "action": {
1072
+ "type": "string"
1073
+ }
1074
+ },
1075
+ "required": [
1076
+ "_tag",
1077
+ "message",
1078
+ "action"
1079
+ ],
1080
+ "additionalProperties": true
1081
+ },
1082
+ "ActionFailedEncoded": {
1083
+ "type": "object",
1084
+ "properties": {
1085
+ "_tag": {
1086
+ "type": "string",
1087
+ "enum": [
1088
+ "ActionFailed"
1089
+ ]
1090
+ },
1091
+ "message": {
1092
+ "type": "string"
1093
+ },
1094
+ "action": {
1095
+ "type": "string"
1096
+ },
1097
+ "effect": {
1098
+ "type": "string",
1099
+ "enum": [
1100
+ "none",
1101
+ "unknown"
1102
+ ]
1103
+ }
1104
+ },
1105
+ "required": [
1106
+ "_tag",
1107
+ "message",
1108
+ "action"
1109
+ ],
1110
+ "additionalProperties": true
1111
+ },
1112
+ "ClientOutdatedEncoded": {
1113
+ "type": "object",
1114
+ "properties": {
1115
+ "_tag": {
1116
+ "type": "string",
1117
+ "enum": [
1118
+ "ClientOutdated"
1119
+ ]
1120
+ },
1121
+ "message": {
1122
+ "type": "string"
1123
+ },
1124
+ "action": {
1125
+ "type": "string"
1126
+ },
1127
+ "clientVersion": {
1128
+ "type": "string"
1129
+ },
1130
+ "minClientVersion": {
1131
+ "type": "string"
1132
+ }
1133
+ },
1134
+ "required": [
1135
+ "_tag",
1136
+ "message",
1137
+ "action",
1138
+ "clientVersion",
1139
+ "minClientVersion"
1140
+ ],
1141
+ "additionalProperties": true
1142
+ }
1143
+ }
1144
+ }
1145
+ },
1146
+ "markRead": {
1147
+ "description": "Action notifications.markRead: mark one of your notifications read.",
1148
+ "input": {
1149
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1150
+ "type": "object",
1151
+ "properties": {
1152
+ "id": {
1153
+ "type": "string"
1154
+ }
1155
+ },
1156
+ "required": [
1157
+ "id"
1158
+ ],
1159
+ "additionalProperties": true
1160
+ },
1161
+ "output": {
1162
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1163
+ "type": "object",
1164
+ "properties": {
1165
+ "id": {
1166
+ "type": "string"
1167
+ }
1168
+ },
1169
+ "required": [
1170
+ "id"
1171
+ ],
1172
+ "additionalProperties": true
1173
+ },
1174
+ "errors": {
1175
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1176
+ "anyOf": [
1177
+ {
1178
+ "$ref": "#/$defs/UnauthenticatedEncoded"
1179
+ },
1180
+ {
1181
+ "$ref": "#/$defs/ForbiddenEncoded"
1182
+ },
1183
+ {
1184
+ "$ref": "#/$defs/ApprovalRequiredEncoded"
1185
+ },
1186
+ {
1187
+ "$ref": "#/$defs/ConsentRequiredEncoded"
1188
+ },
1189
+ {
1190
+ "$ref": "#/$defs/IdempotencyConflictEncoded"
1191
+ },
1192
+ {
1193
+ "$ref": "#/$defs/InvalidInputEncoded"
1194
+ },
1195
+ {
1196
+ "$ref": "#/$defs/UnknownActionEncoded"
1197
+ },
1198
+ {
1199
+ "$ref": "#/$defs/ActionFailedEncoded"
1200
+ },
1201
+ {
1202
+ "$ref": "#/$defs/ClientOutdatedEncoded"
1203
+ }
1204
+ ],
1205
+ "$defs": {
1206
+ "UnauthenticatedEncoded": {
1207
+ "type": "object",
1208
+ "properties": {
1209
+ "_tag": {
1210
+ "type": "string",
1211
+ "enum": [
1212
+ "Unauthenticated"
1213
+ ]
1214
+ },
1215
+ "message": {
1216
+ "type": "string"
1217
+ }
1218
+ },
1219
+ "required": [
1220
+ "_tag",
1221
+ "message"
1222
+ ],
1223
+ "additionalProperties": true
1224
+ },
1225
+ "ForbiddenEncoded": {
1226
+ "type": "object",
1227
+ "properties": {
1228
+ "_tag": {
1229
+ "type": "string",
1230
+ "enum": [
1231
+ "Forbidden"
1232
+ ]
1233
+ },
1234
+ "message": {
1235
+ "type": "string"
1236
+ },
1237
+ "action": {
1238
+ "type": "string"
1239
+ }
1240
+ },
1241
+ "required": [
1242
+ "_tag",
1243
+ "message",
1244
+ "action"
1245
+ ],
1246
+ "additionalProperties": true
1247
+ },
1248
+ "ApprovalRequiredEncoded": {
1249
+ "type": "object",
1250
+ "properties": {
1251
+ "_tag": {
1252
+ "type": "string",
1253
+ "enum": [
1254
+ "ApprovalRequired"
1255
+ ]
1256
+ },
1257
+ "message": {
1258
+ "type": "string"
1259
+ },
1260
+ "action": {
1261
+ "type": "string"
1262
+ },
1263
+ "approvalId": {
1264
+ "type": "string"
1265
+ }
1266
+ },
1267
+ "required": [
1268
+ "_tag",
1269
+ "message",
1270
+ "action",
1271
+ "approvalId"
1272
+ ],
1273
+ "additionalProperties": true
1274
+ },
1275
+ "ConsentRequiredEncoded": {
1276
+ "type": "object",
1277
+ "properties": {
1278
+ "_tag": {
1279
+ "type": "string",
1280
+ "enum": [
1281
+ "ConsentRequired"
1282
+ ]
1283
+ },
1284
+ "message": {
1285
+ "type": "string"
1286
+ },
1287
+ "action": {
1288
+ "type": "string"
1289
+ },
1290
+ "consentId": {
1291
+ "type": "string"
1292
+ }
1293
+ },
1294
+ "required": [
1295
+ "_tag",
1296
+ "message",
1297
+ "action",
1298
+ "consentId"
1299
+ ],
1300
+ "additionalProperties": true
1301
+ },
1302
+ "IdempotencyConflictEncoded": {
1303
+ "type": "object",
1304
+ "properties": {
1305
+ "_tag": {
1306
+ "type": "string",
1307
+ "enum": [
1308
+ "IdempotencyConflict"
1309
+ ]
1310
+ },
1311
+ "message": {
1312
+ "type": "string"
1313
+ },
1314
+ "key": {
1315
+ "type": "string"
1316
+ }
1317
+ },
1318
+ "required": [
1319
+ "_tag",
1320
+ "message",
1321
+ "key"
1322
+ ],
1323
+ "additionalProperties": true
1324
+ },
1325
+ "InvalidInputEncoded": {
1326
+ "type": "object",
1327
+ "properties": {
1328
+ "_tag": {
1329
+ "type": "string",
1330
+ "enum": [
1331
+ "InvalidInput"
1332
+ ]
1333
+ },
1334
+ "message": {
1335
+ "type": "string"
1336
+ }
1337
+ },
1338
+ "required": [
1339
+ "_tag",
1340
+ "message"
1341
+ ],
1342
+ "additionalProperties": true
1343
+ },
1344
+ "UnknownActionEncoded": {
1345
+ "type": "object",
1346
+ "properties": {
1347
+ "_tag": {
1348
+ "type": "string",
1349
+ "enum": [
1350
+ "UnknownAction"
1351
+ ]
1352
+ },
1353
+ "message": {
1354
+ "type": "string"
1355
+ },
1356
+ "action": {
1357
+ "type": "string"
1358
+ }
1359
+ },
1360
+ "required": [
1361
+ "_tag",
1362
+ "message",
1363
+ "action"
1364
+ ],
1365
+ "additionalProperties": true
1366
+ },
1367
+ "ActionFailedEncoded": {
1368
+ "type": "object",
1369
+ "properties": {
1370
+ "_tag": {
1371
+ "type": "string",
1372
+ "enum": [
1373
+ "ActionFailed"
1374
+ ]
1375
+ },
1376
+ "message": {
1377
+ "type": "string"
1378
+ },
1379
+ "action": {
1380
+ "type": "string"
1381
+ },
1382
+ "effect": {
1383
+ "type": "string",
1384
+ "enum": [
1385
+ "none",
1386
+ "unknown"
1387
+ ]
1388
+ }
1389
+ },
1390
+ "required": [
1391
+ "_tag",
1392
+ "message",
1393
+ "action"
1394
+ ],
1395
+ "additionalProperties": true
1396
+ },
1397
+ "ClientOutdatedEncoded": {
1398
+ "type": "object",
1399
+ "properties": {
1400
+ "_tag": {
1401
+ "type": "string",
1402
+ "enum": [
1403
+ "ClientOutdated"
1404
+ ]
1405
+ },
1406
+ "message": {
1407
+ "type": "string"
1408
+ },
1409
+ "action": {
1410
+ "type": "string"
1411
+ },
1412
+ "clientVersion": {
1413
+ "type": "string"
1414
+ },
1415
+ "minClientVersion": {
1416
+ "type": "string"
1417
+ }
1418
+ },
1419
+ "required": [
1420
+ "_tag",
1421
+ "message",
1422
+ "action",
1423
+ "clientVersion",
1424
+ "minClientVersion"
1425
+ ],
1426
+ "additionalProperties": true
1427
+ }
1428
+ }
1429
+ }
1430
+ },
1431
+ "markUnread": {
1432
+ "description": "Action notifications.markUnread: mark one of your notifications unread again.",
1433
+ "input": {
1434
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1435
+ "type": "object",
1436
+ "properties": {
1437
+ "id": {
1438
+ "type": "string"
1439
+ }
1440
+ },
1441
+ "required": [
1442
+ "id"
1443
+ ],
1444
+ "additionalProperties": true
1445
+ },
1446
+ "output": {
1447
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1448
+ "type": "object",
1449
+ "properties": {
1450
+ "id": {
1451
+ "type": "string"
1452
+ }
1453
+ },
1454
+ "required": [
1455
+ "id"
1456
+ ],
1457
+ "additionalProperties": true
1458
+ },
1459
+ "errors": {
1460
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1461
+ "anyOf": [
1462
+ {
1463
+ "$ref": "#/$defs/UnauthenticatedEncoded"
1464
+ },
1465
+ {
1466
+ "$ref": "#/$defs/ForbiddenEncoded"
1467
+ },
1468
+ {
1469
+ "$ref": "#/$defs/ApprovalRequiredEncoded"
1470
+ },
1471
+ {
1472
+ "$ref": "#/$defs/ConsentRequiredEncoded"
1473
+ },
1474
+ {
1475
+ "$ref": "#/$defs/IdempotencyConflictEncoded"
1476
+ },
1477
+ {
1478
+ "$ref": "#/$defs/InvalidInputEncoded"
1479
+ },
1480
+ {
1481
+ "$ref": "#/$defs/UnknownActionEncoded"
1482
+ },
1483
+ {
1484
+ "$ref": "#/$defs/ActionFailedEncoded"
1485
+ },
1486
+ {
1487
+ "$ref": "#/$defs/ClientOutdatedEncoded"
1488
+ }
1489
+ ],
1490
+ "$defs": {
1491
+ "UnauthenticatedEncoded": {
1492
+ "type": "object",
1493
+ "properties": {
1494
+ "_tag": {
1495
+ "type": "string",
1496
+ "enum": [
1497
+ "Unauthenticated"
1498
+ ]
1499
+ },
1500
+ "message": {
1501
+ "type": "string"
1502
+ }
1503
+ },
1504
+ "required": [
1505
+ "_tag",
1506
+ "message"
1507
+ ],
1508
+ "additionalProperties": true
1509
+ },
1510
+ "ForbiddenEncoded": {
1511
+ "type": "object",
1512
+ "properties": {
1513
+ "_tag": {
1514
+ "type": "string",
1515
+ "enum": [
1516
+ "Forbidden"
1517
+ ]
1518
+ },
1519
+ "message": {
1520
+ "type": "string"
1521
+ },
1522
+ "action": {
1523
+ "type": "string"
1524
+ }
1525
+ },
1526
+ "required": [
1527
+ "_tag",
1528
+ "message",
1529
+ "action"
1530
+ ],
1531
+ "additionalProperties": true
1532
+ },
1533
+ "ApprovalRequiredEncoded": {
1534
+ "type": "object",
1535
+ "properties": {
1536
+ "_tag": {
1537
+ "type": "string",
1538
+ "enum": [
1539
+ "ApprovalRequired"
1540
+ ]
1541
+ },
1542
+ "message": {
1543
+ "type": "string"
1544
+ },
1545
+ "action": {
1546
+ "type": "string"
1547
+ },
1548
+ "approvalId": {
1549
+ "type": "string"
1550
+ }
1551
+ },
1552
+ "required": [
1553
+ "_tag",
1554
+ "message",
1555
+ "action",
1556
+ "approvalId"
1557
+ ],
1558
+ "additionalProperties": true
1559
+ },
1560
+ "ConsentRequiredEncoded": {
1561
+ "type": "object",
1562
+ "properties": {
1563
+ "_tag": {
1564
+ "type": "string",
1565
+ "enum": [
1566
+ "ConsentRequired"
1567
+ ]
1568
+ },
1569
+ "message": {
1570
+ "type": "string"
1571
+ },
1572
+ "action": {
1573
+ "type": "string"
1574
+ },
1575
+ "consentId": {
1576
+ "type": "string"
1577
+ }
1578
+ },
1579
+ "required": [
1580
+ "_tag",
1581
+ "message",
1582
+ "action",
1583
+ "consentId"
1584
+ ],
1585
+ "additionalProperties": true
1586
+ },
1587
+ "IdempotencyConflictEncoded": {
1588
+ "type": "object",
1589
+ "properties": {
1590
+ "_tag": {
1591
+ "type": "string",
1592
+ "enum": [
1593
+ "IdempotencyConflict"
1594
+ ]
1595
+ },
1596
+ "message": {
1597
+ "type": "string"
1598
+ },
1599
+ "key": {
1600
+ "type": "string"
1601
+ }
1602
+ },
1603
+ "required": [
1604
+ "_tag",
1605
+ "message",
1606
+ "key"
1607
+ ],
1608
+ "additionalProperties": true
1609
+ },
1610
+ "InvalidInputEncoded": {
1611
+ "type": "object",
1612
+ "properties": {
1613
+ "_tag": {
1614
+ "type": "string",
1615
+ "enum": [
1616
+ "InvalidInput"
1617
+ ]
1618
+ },
1619
+ "message": {
1620
+ "type": "string"
1621
+ }
1622
+ },
1623
+ "required": [
1624
+ "_tag",
1625
+ "message"
1626
+ ],
1627
+ "additionalProperties": true
1628
+ },
1629
+ "UnknownActionEncoded": {
1630
+ "type": "object",
1631
+ "properties": {
1632
+ "_tag": {
1633
+ "type": "string",
1634
+ "enum": [
1635
+ "UnknownAction"
1636
+ ]
1637
+ },
1638
+ "message": {
1639
+ "type": "string"
1640
+ },
1641
+ "action": {
1642
+ "type": "string"
1643
+ }
1644
+ },
1645
+ "required": [
1646
+ "_tag",
1647
+ "message",
1648
+ "action"
1649
+ ],
1650
+ "additionalProperties": true
1651
+ },
1652
+ "ActionFailedEncoded": {
1653
+ "type": "object",
1654
+ "properties": {
1655
+ "_tag": {
1656
+ "type": "string",
1657
+ "enum": [
1658
+ "ActionFailed"
1659
+ ]
1660
+ },
1661
+ "message": {
1662
+ "type": "string"
1663
+ },
1664
+ "action": {
1665
+ "type": "string"
1666
+ },
1667
+ "effect": {
1668
+ "type": "string",
1669
+ "enum": [
1670
+ "none",
1671
+ "unknown"
1672
+ ]
1673
+ }
1674
+ },
1675
+ "required": [
1676
+ "_tag",
1677
+ "message",
1678
+ "action"
1679
+ ],
1680
+ "additionalProperties": true
1681
+ },
1682
+ "ClientOutdatedEncoded": {
1683
+ "type": "object",
1684
+ "properties": {
1685
+ "_tag": {
1686
+ "type": "string",
1687
+ "enum": [
1688
+ "ClientOutdated"
1689
+ ]
1690
+ },
1691
+ "message": {
1692
+ "type": "string"
1693
+ },
1694
+ "action": {
1695
+ "type": "string"
1696
+ },
1697
+ "clientVersion": {
1698
+ "type": "string"
1699
+ },
1700
+ "minClientVersion": {
1701
+ "type": "string"
1702
+ }
1703
+ },
1704
+ "required": [
1705
+ "_tag",
1706
+ "message",
1707
+ "action",
1708
+ "clientVersion",
1709
+ "minClientVersion"
1710
+ ],
1711
+ "additionalProperties": true
1712
+ }
1713
+ }
1714
+ }
1715
+ },
1716
+ "dismiss": {
1717
+ "description": "Action notifications.dismiss: dismiss one of your notifications.",
1718
+ "input": {
1719
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1720
+ "type": "object",
1721
+ "properties": {
1722
+ "id": {
1723
+ "type": "string"
1724
+ }
1725
+ },
1726
+ "required": [
1727
+ "id"
1728
+ ],
1729
+ "additionalProperties": true
1730
+ },
1731
+ "output": {
1732
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1733
+ "type": "object",
1734
+ "properties": {
1735
+ "id": {
1736
+ "type": "string"
1737
+ }
1738
+ },
1739
+ "required": [
1740
+ "id"
1741
+ ],
1742
+ "additionalProperties": true
1743
+ },
1744
+ "errors": {
1745
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1746
+ "anyOf": [
1747
+ {
1748
+ "$ref": "#/$defs/UnauthenticatedEncoded"
1749
+ },
1750
+ {
1751
+ "$ref": "#/$defs/ForbiddenEncoded"
1752
+ },
1753
+ {
1754
+ "$ref": "#/$defs/ApprovalRequiredEncoded"
1755
+ },
1756
+ {
1757
+ "$ref": "#/$defs/ConsentRequiredEncoded"
1758
+ },
1759
+ {
1760
+ "$ref": "#/$defs/IdempotencyConflictEncoded"
1761
+ },
1762
+ {
1763
+ "$ref": "#/$defs/InvalidInputEncoded"
1764
+ },
1765
+ {
1766
+ "$ref": "#/$defs/UnknownActionEncoded"
1767
+ },
1768
+ {
1769
+ "$ref": "#/$defs/ActionFailedEncoded"
1770
+ },
1771
+ {
1772
+ "$ref": "#/$defs/ClientOutdatedEncoded"
1773
+ }
1774
+ ],
1775
+ "$defs": {
1776
+ "UnauthenticatedEncoded": {
1777
+ "type": "object",
1778
+ "properties": {
1779
+ "_tag": {
1780
+ "type": "string",
1781
+ "enum": [
1782
+ "Unauthenticated"
1783
+ ]
1784
+ },
1785
+ "message": {
1786
+ "type": "string"
1787
+ }
1788
+ },
1789
+ "required": [
1790
+ "_tag",
1791
+ "message"
1792
+ ],
1793
+ "additionalProperties": true
1794
+ },
1795
+ "ForbiddenEncoded": {
1796
+ "type": "object",
1797
+ "properties": {
1798
+ "_tag": {
1799
+ "type": "string",
1800
+ "enum": [
1801
+ "Forbidden"
1802
+ ]
1803
+ },
1804
+ "message": {
1805
+ "type": "string"
1806
+ },
1807
+ "action": {
1808
+ "type": "string"
1809
+ }
1810
+ },
1811
+ "required": [
1812
+ "_tag",
1813
+ "message",
1814
+ "action"
1815
+ ],
1816
+ "additionalProperties": true
1817
+ },
1818
+ "ApprovalRequiredEncoded": {
1819
+ "type": "object",
1820
+ "properties": {
1821
+ "_tag": {
1822
+ "type": "string",
1823
+ "enum": [
1824
+ "ApprovalRequired"
1825
+ ]
1826
+ },
1827
+ "message": {
1828
+ "type": "string"
1829
+ },
1830
+ "action": {
1831
+ "type": "string"
1832
+ },
1833
+ "approvalId": {
1834
+ "type": "string"
1835
+ }
1836
+ },
1837
+ "required": [
1838
+ "_tag",
1839
+ "message",
1840
+ "action",
1841
+ "approvalId"
1842
+ ],
1843
+ "additionalProperties": true
1844
+ },
1845
+ "ConsentRequiredEncoded": {
1846
+ "type": "object",
1847
+ "properties": {
1848
+ "_tag": {
1849
+ "type": "string",
1850
+ "enum": [
1851
+ "ConsentRequired"
1852
+ ]
1853
+ },
1854
+ "message": {
1855
+ "type": "string"
1856
+ },
1857
+ "action": {
1858
+ "type": "string"
1859
+ },
1860
+ "consentId": {
1861
+ "type": "string"
1862
+ }
1863
+ },
1864
+ "required": [
1865
+ "_tag",
1866
+ "message",
1867
+ "action",
1868
+ "consentId"
1869
+ ],
1870
+ "additionalProperties": true
1871
+ },
1872
+ "IdempotencyConflictEncoded": {
1873
+ "type": "object",
1874
+ "properties": {
1875
+ "_tag": {
1876
+ "type": "string",
1877
+ "enum": [
1878
+ "IdempotencyConflict"
1879
+ ]
1880
+ },
1881
+ "message": {
1882
+ "type": "string"
1883
+ },
1884
+ "key": {
1885
+ "type": "string"
1886
+ }
1887
+ },
1888
+ "required": [
1889
+ "_tag",
1890
+ "message",
1891
+ "key"
1892
+ ],
1893
+ "additionalProperties": true
1894
+ },
1895
+ "InvalidInputEncoded": {
1896
+ "type": "object",
1897
+ "properties": {
1898
+ "_tag": {
1899
+ "type": "string",
1900
+ "enum": [
1901
+ "InvalidInput"
1902
+ ]
1903
+ },
1904
+ "message": {
1905
+ "type": "string"
1906
+ }
1907
+ },
1908
+ "required": [
1909
+ "_tag",
1910
+ "message"
1911
+ ],
1912
+ "additionalProperties": true
1913
+ },
1914
+ "UnknownActionEncoded": {
1915
+ "type": "object",
1916
+ "properties": {
1917
+ "_tag": {
1918
+ "type": "string",
1919
+ "enum": [
1920
+ "UnknownAction"
1921
+ ]
1922
+ },
1923
+ "message": {
1924
+ "type": "string"
1925
+ },
1926
+ "action": {
1927
+ "type": "string"
1928
+ }
1929
+ },
1930
+ "required": [
1931
+ "_tag",
1932
+ "message",
1933
+ "action"
1934
+ ],
1935
+ "additionalProperties": true
1936
+ },
1937
+ "ActionFailedEncoded": {
1938
+ "type": "object",
1939
+ "properties": {
1940
+ "_tag": {
1941
+ "type": "string",
1942
+ "enum": [
1943
+ "ActionFailed"
1944
+ ]
1945
+ },
1946
+ "message": {
1947
+ "type": "string"
1948
+ },
1949
+ "action": {
1950
+ "type": "string"
1951
+ },
1952
+ "effect": {
1953
+ "type": "string",
1954
+ "enum": [
1955
+ "none",
1956
+ "unknown"
1957
+ ]
1958
+ }
1959
+ },
1960
+ "required": [
1961
+ "_tag",
1962
+ "message",
1963
+ "action"
1964
+ ],
1965
+ "additionalProperties": true
1966
+ },
1967
+ "ClientOutdatedEncoded": {
1968
+ "type": "object",
1969
+ "properties": {
1970
+ "_tag": {
1971
+ "type": "string",
1972
+ "enum": [
1973
+ "ClientOutdated"
1974
+ ]
1975
+ },
1976
+ "message": {
1977
+ "type": "string"
1978
+ },
1979
+ "action": {
1980
+ "type": "string"
1981
+ },
1982
+ "clientVersion": {
1983
+ "type": "string"
1984
+ },
1985
+ "minClientVersion": {
1986
+ "type": "string"
1987
+ }
1988
+ },
1989
+ "required": [
1990
+ "_tag",
1991
+ "message",
1992
+ "action",
1993
+ "clientVersion",
1994
+ "minClientVersion"
1995
+ ],
1996
+ "additionalProperties": true
1997
+ }
1998
+ }
1999
+ }
2000
+ },
2001
+ "setPreference": {
2002
+ "description": "Action notifications.setPreference: the channels a category reaches you on, in the organisation you act in (an empty list silences it).",
2003
+ "input": {
2004
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2005
+ "type": "object",
2006
+ "properties": {
2007
+ "category": {
2008
+ "type": "string"
2009
+ },
2010
+ "channels": {
2011
+ "type": "array",
2012
+ "items": {
2013
+ "type": "string",
2014
+ "enum": [
2015
+ "in-app",
2016
+ "email",
2017
+ "push",
2018
+ "chat"
2019
+ ]
2020
+ }
2021
+ },
2022
+ "add": {
2023
+ "type": "boolean"
2024
+ }
2025
+ },
2026
+ "required": [
2027
+ "category",
2028
+ "channels"
2029
+ ],
2030
+ "additionalProperties": true
2031
+ },
2032
+ "output": {
2033
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2034
+ "type": "object",
2035
+ "properties": {
2036
+ "id": {
2037
+ "type": "string"
2038
+ }
2039
+ },
2040
+ "required": [
2041
+ "id"
2042
+ ],
2043
+ "additionalProperties": true
2044
+ },
2045
+ "errors": {
2046
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2047
+ "anyOf": [
2048
+ {
2049
+ "$ref": "#/$defs/UnauthenticatedEncoded"
2050
+ },
2051
+ {
2052
+ "$ref": "#/$defs/ForbiddenEncoded"
2053
+ },
2054
+ {
2055
+ "$ref": "#/$defs/ApprovalRequiredEncoded"
2056
+ },
2057
+ {
2058
+ "$ref": "#/$defs/ConsentRequiredEncoded"
2059
+ },
2060
+ {
2061
+ "$ref": "#/$defs/IdempotencyConflictEncoded"
2062
+ },
2063
+ {
2064
+ "$ref": "#/$defs/InvalidInputEncoded"
2065
+ },
2066
+ {
2067
+ "$ref": "#/$defs/UnknownActionEncoded"
2068
+ },
2069
+ {
2070
+ "$ref": "#/$defs/ActionFailedEncoded"
2071
+ },
2072
+ {
2073
+ "$ref": "#/$defs/ClientOutdatedEncoded"
2074
+ }
2075
+ ],
2076
+ "$defs": {
2077
+ "UnauthenticatedEncoded": {
2078
+ "type": "object",
2079
+ "properties": {
2080
+ "_tag": {
2081
+ "type": "string",
2082
+ "enum": [
2083
+ "Unauthenticated"
2084
+ ]
2085
+ },
2086
+ "message": {
2087
+ "type": "string"
2088
+ }
2089
+ },
2090
+ "required": [
2091
+ "_tag",
2092
+ "message"
2093
+ ],
2094
+ "additionalProperties": true
2095
+ },
2096
+ "ForbiddenEncoded": {
2097
+ "type": "object",
2098
+ "properties": {
2099
+ "_tag": {
2100
+ "type": "string",
2101
+ "enum": [
2102
+ "Forbidden"
2103
+ ]
2104
+ },
2105
+ "message": {
2106
+ "type": "string"
2107
+ },
2108
+ "action": {
2109
+ "type": "string"
2110
+ }
2111
+ },
2112
+ "required": [
2113
+ "_tag",
2114
+ "message",
2115
+ "action"
2116
+ ],
2117
+ "additionalProperties": true
2118
+ },
2119
+ "ApprovalRequiredEncoded": {
2120
+ "type": "object",
2121
+ "properties": {
2122
+ "_tag": {
2123
+ "type": "string",
2124
+ "enum": [
2125
+ "ApprovalRequired"
2126
+ ]
2127
+ },
2128
+ "message": {
2129
+ "type": "string"
2130
+ },
2131
+ "action": {
2132
+ "type": "string"
2133
+ },
2134
+ "approvalId": {
2135
+ "type": "string"
2136
+ }
2137
+ },
2138
+ "required": [
2139
+ "_tag",
2140
+ "message",
2141
+ "action",
2142
+ "approvalId"
2143
+ ],
2144
+ "additionalProperties": true
2145
+ },
2146
+ "ConsentRequiredEncoded": {
2147
+ "type": "object",
2148
+ "properties": {
2149
+ "_tag": {
2150
+ "type": "string",
2151
+ "enum": [
2152
+ "ConsentRequired"
2153
+ ]
2154
+ },
2155
+ "message": {
2156
+ "type": "string"
2157
+ },
2158
+ "action": {
2159
+ "type": "string"
2160
+ },
2161
+ "consentId": {
2162
+ "type": "string"
2163
+ }
2164
+ },
2165
+ "required": [
2166
+ "_tag",
2167
+ "message",
2168
+ "action",
2169
+ "consentId"
2170
+ ],
2171
+ "additionalProperties": true
2172
+ },
2173
+ "IdempotencyConflictEncoded": {
2174
+ "type": "object",
2175
+ "properties": {
2176
+ "_tag": {
2177
+ "type": "string",
2178
+ "enum": [
2179
+ "IdempotencyConflict"
2180
+ ]
2181
+ },
2182
+ "message": {
2183
+ "type": "string"
2184
+ },
2185
+ "key": {
2186
+ "type": "string"
2187
+ }
2188
+ },
2189
+ "required": [
2190
+ "_tag",
2191
+ "message",
2192
+ "key"
2193
+ ],
2194
+ "additionalProperties": true
2195
+ },
2196
+ "InvalidInputEncoded": {
2197
+ "type": "object",
2198
+ "properties": {
2199
+ "_tag": {
2200
+ "type": "string",
2201
+ "enum": [
2202
+ "InvalidInput"
2203
+ ]
2204
+ },
2205
+ "message": {
2206
+ "type": "string"
2207
+ }
2208
+ },
2209
+ "required": [
2210
+ "_tag",
2211
+ "message"
2212
+ ],
2213
+ "additionalProperties": true
2214
+ },
2215
+ "UnknownActionEncoded": {
2216
+ "type": "object",
2217
+ "properties": {
2218
+ "_tag": {
2219
+ "type": "string",
2220
+ "enum": [
2221
+ "UnknownAction"
2222
+ ]
2223
+ },
2224
+ "message": {
2225
+ "type": "string"
2226
+ },
2227
+ "action": {
2228
+ "type": "string"
2229
+ }
2230
+ },
2231
+ "required": [
2232
+ "_tag",
2233
+ "message",
2234
+ "action"
2235
+ ],
2236
+ "additionalProperties": true
2237
+ },
2238
+ "ActionFailedEncoded": {
2239
+ "type": "object",
2240
+ "properties": {
2241
+ "_tag": {
2242
+ "type": "string",
2243
+ "enum": [
2244
+ "ActionFailed"
2245
+ ]
2246
+ },
2247
+ "message": {
2248
+ "type": "string"
2249
+ },
2250
+ "action": {
2251
+ "type": "string"
2252
+ },
2253
+ "effect": {
2254
+ "type": "string",
2255
+ "enum": [
2256
+ "none",
2257
+ "unknown"
2258
+ ]
2259
+ }
2260
+ },
2261
+ "required": [
2262
+ "_tag",
2263
+ "message",
2264
+ "action"
2265
+ ],
2266
+ "additionalProperties": true
2267
+ },
2268
+ "ClientOutdatedEncoded": {
2269
+ "type": "object",
2270
+ "properties": {
2271
+ "_tag": {
2272
+ "type": "string",
2273
+ "enum": [
2274
+ "ClientOutdated"
2275
+ ]
2276
+ },
2277
+ "message": {
2278
+ "type": "string"
2279
+ },
2280
+ "action": {
2281
+ "type": "string"
2282
+ },
2283
+ "clientVersion": {
2284
+ "type": "string"
2285
+ },
2286
+ "minClientVersion": {
2287
+ "type": "string"
2288
+ }
2289
+ },
2290
+ "required": [
2291
+ "_tag",
2292
+ "message",
2293
+ "action",
2294
+ "clientVersion",
2295
+ "minClientVersion"
2296
+ ],
2297
+ "additionalProperties": true
2298
+ }
2299
+ }
2300
+ }
2301
+ },
2302
+ "setEmailTemplate": {
2303
+ "description": "Action notifications.setEmailTemplate: override a registered email template's subject, text and HTML for the organisation (needs the notifications.manage permission).",
2304
+ "input": {
2305
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2306
+ "type": "object",
2307
+ "properties": {
2308
+ "template": {
2309
+ "type": "string"
2310
+ },
2311
+ "subject": {
2312
+ "type": "string"
2313
+ },
2314
+ "text": {
2315
+ "type": "string"
2316
+ },
2317
+ "html": {
2318
+ "anyOf": [
2319
+ {
2320
+ "type": "string"
2321
+ },
2322
+ {
2323
+ "type": "null"
2324
+ }
2325
+ ]
2326
+ }
2327
+ },
2328
+ "required": [
2329
+ "template",
2330
+ "subject",
2331
+ "text"
2332
+ ],
2333
+ "additionalProperties": true
2334
+ },
2335
+ "output": {
2336
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2337
+ "type": "object",
2338
+ "properties": {
2339
+ "id": {
2340
+ "type": "string"
2341
+ }
2342
+ },
2343
+ "required": [
2344
+ "id"
2345
+ ],
2346
+ "additionalProperties": true
2347
+ },
2348
+ "errors": {
2349
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2350
+ "anyOf": [
2351
+ {
2352
+ "$ref": "#/$defs/UnauthenticatedEncoded"
2353
+ },
2354
+ {
2355
+ "$ref": "#/$defs/ForbiddenEncoded"
2356
+ },
2357
+ {
2358
+ "$ref": "#/$defs/ApprovalRequiredEncoded"
2359
+ },
2360
+ {
2361
+ "$ref": "#/$defs/ConsentRequiredEncoded"
2362
+ },
2363
+ {
2364
+ "$ref": "#/$defs/IdempotencyConflictEncoded"
2365
+ },
2366
+ {
2367
+ "$ref": "#/$defs/InvalidInputEncoded"
2368
+ },
2369
+ {
2370
+ "$ref": "#/$defs/UnknownActionEncoded"
2371
+ },
2372
+ {
2373
+ "$ref": "#/$defs/ActionFailedEncoded"
2374
+ },
2375
+ {
2376
+ "$ref": "#/$defs/ClientOutdatedEncoded"
2377
+ }
2378
+ ],
2379
+ "$defs": {
2380
+ "UnauthenticatedEncoded": {
2381
+ "type": "object",
2382
+ "properties": {
2383
+ "_tag": {
2384
+ "type": "string",
2385
+ "enum": [
2386
+ "Unauthenticated"
2387
+ ]
2388
+ },
2389
+ "message": {
2390
+ "type": "string"
2391
+ }
2392
+ },
2393
+ "required": [
2394
+ "_tag",
2395
+ "message"
2396
+ ],
2397
+ "additionalProperties": true
2398
+ },
2399
+ "ForbiddenEncoded": {
2400
+ "type": "object",
2401
+ "properties": {
2402
+ "_tag": {
2403
+ "type": "string",
2404
+ "enum": [
2405
+ "Forbidden"
2406
+ ]
2407
+ },
2408
+ "message": {
2409
+ "type": "string"
2410
+ },
2411
+ "action": {
2412
+ "type": "string"
2413
+ }
2414
+ },
2415
+ "required": [
2416
+ "_tag",
2417
+ "message",
2418
+ "action"
2419
+ ],
2420
+ "additionalProperties": true
2421
+ },
2422
+ "ApprovalRequiredEncoded": {
2423
+ "type": "object",
2424
+ "properties": {
2425
+ "_tag": {
2426
+ "type": "string",
2427
+ "enum": [
2428
+ "ApprovalRequired"
2429
+ ]
2430
+ },
2431
+ "message": {
2432
+ "type": "string"
2433
+ },
2434
+ "action": {
2435
+ "type": "string"
2436
+ },
2437
+ "approvalId": {
2438
+ "type": "string"
2439
+ }
2440
+ },
2441
+ "required": [
2442
+ "_tag",
2443
+ "message",
2444
+ "action",
2445
+ "approvalId"
2446
+ ],
2447
+ "additionalProperties": true
2448
+ },
2449
+ "ConsentRequiredEncoded": {
2450
+ "type": "object",
2451
+ "properties": {
2452
+ "_tag": {
2453
+ "type": "string",
2454
+ "enum": [
2455
+ "ConsentRequired"
2456
+ ]
2457
+ },
2458
+ "message": {
2459
+ "type": "string"
2460
+ },
2461
+ "action": {
2462
+ "type": "string"
2463
+ },
2464
+ "consentId": {
2465
+ "type": "string"
2466
+ }
2467
+ },
2468
+ "required": [
2469
+ "_tag",
2470
+ "message",
2471
+ "action",
2472
+ "consentId"
2473
+ ],
2474
+ "additionalProperties": true
2475
+ },
2476
+ "IdempotencyConflictEncoded": {
2477
+ "type": "object",
2478
+ "properties": {
2479
+ "_tag": {
2480
+ "type": "string",
2481
+ "enum": [
2482
+ "IdempotencyConflict"
2483
+ ]
2484
+ },
2485
+ "message": {
2486
+ "type": "string"
2487
+ },
2488
+ "key": {
2489
+ "type": "string"
2490
+ }
2491
+ },
2492
+ "required": [
2493
+ "_tag",
2494
+ "message",
2495
+ "key"
2496
+ ],
2497
+ "additionalProperties": true
2498
+ },
2499
+ "InvalidInputEncoded": {
2500
+ "type": "object",
2501
+ "properties": {
2502
+ "_tag": {
2503
+ "type": "string",
2504
+ "enum": [
2505
+ "InvalidInput"
2506
+ ]
2507
+ },
2508
+ "message": {
2509
+ "type": "string"
2510
+ }
2511
+ },
2512
+ "required": [
2513
+ "_tag",
2514
+ "message"
2515
+ ],
2516
+ "additionalProperties": true
2517
+ },
2518
+ "UnknownActionEncoded": {
2519
+ "type": "object",
2520
+ "properties": {
2521
+ "_tag": {
2522
+ "type": "string",
2523
+ "enum": [
2524
+ "UnknownAction"
2525
+ ]
2526
+ },
2527
+ "message": {
2528
+ "type": "string"
2529
+ },
2530
+ "action": {
2531
+ "type": "string"
2532
+ }
2533
+ },
2534
+ "required": [
2535
+ "_tag",
2536
+ "message",
2537
+ "action"
2538
+ ],
2539
+ "additionalProperties": true
2540
+ },
2541
+ "ActionFailedEncoded": {
2542
+ "type": "object",
2543
+ "properties": {
2544
+ "_tag": {
2545
+ "type": "string",
2546
+ "enum": [
2547
+ "ActionFailed"
2548
+ ]
2549
+ },
2550
+ "message": {
2551
+ "type": "string"
2552
+ },
2553
+ "action": {
2554
+ "type": "string"
2555
+ },
2556
+ "effect": {
2557
+ "type": "string",
2558
+ "enum": [
2559
+ "none",
2560
+ "unknown"
2561
+ ]
2562
+ }
2563
+ },
2564
+ "required": [
2565
+ "_tag",
2566
+ "message",
2567
+ "action"
2568
+ ],
2569
+ "additionalProperties": true
2570
+ },
2571
+ "ClientOutdatedEncoded": {
2572
+ "type": "object",
2573
+ "properties": {
2574
+ "_tag": {
2575
+ "type": "string",
2576
+ "enum": [
2577
+ "ClientOutdated"
2578
+ ]
2579
+ },
2580
+ "message": {
2581
+ "type": "string"
2582
+ },
2583
+ "action": {
2584
+ "type": "string"
2585
+ },
2586
+ "clientVersion": {
2587
+ "type": "string"
2588
+ },
2589
+ "minClientVersion": {
2590
+ "type": "string"
2591
+ }
2592
+ },
2593
+ "required": [
2594
+ "_tag",
2595
+ "message",
2596
+ "action",
2597
+ "clientVersion",
2598
+ "minClientVersion"
2599
+ ],
2600
+ "additionalProperties": true
2601
+ }
2602
+ }
2603
+ }
2604
+ },
2605
+ "preview": {
2606
+ "description": "Render a template for an organisation with example variables, using its override when it has one. Nothing is sent.",
2607
+ "input": {
2608
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2609
+ "type": "object",
2610
+ "properties": {
2611
+ "orgId": {
2612
+ "type": "string"
2613
+ },
2614
+ "template": {
2615
+ "type": "string"
2616
+ },
2617
+ "variables": {
2618
+ "type": "object"
2619
+ }
2620
+ },
2621
+ "required": [
2622
+ "orgId",
2623
+ "template",
2624
+ "variables"
2625
+ ],
2626
+ "additionalProperties": true
2627
+ },
2628
+ "output": {
2629
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2630
+ "type": "object",
2631
+ "properties": {
2632
+ "subject": {
2633
+ "type": "string"
2634
+ },
2635
+ "text": {
2636
+ "type": "string"
2637
+ },
2638
+ "html": {
2639
+ "anyOf": [
2640
+ {
2641
+ "type": "string"
2642
+ },
2643
+ {
2644
+ "type": "null"
2645
+ }
2646
+ ]
2647
+ },
2648
+ "overridden": {
2649
+ "type": "boolean"
2650
+ }
2651
+ },
2652
+ "required": [
2653
+ "subject",
2654
+ "text",
2655
+ "html",
2656
+ "overridden"
2657
+ ],
2658
+ "additionalProperties": true
2659
+ },
2660
+ "errors": {
2661
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2662
+ "$ref": "#/$defs/UnknownTemplateEncoded",
2663
+ "$defs": {
2664
+ "UnknownTemplateEncoded": {
2665
+ "type": "object",
2666
+ "properties": {
2667
+ "_tag": {
2668
+ "type": "string",
2669
+ "enum": [
2670
+ "UnknownTemplate"
2671
+ ]
2672
+ },
2673
+ "template": {
2674
+ "type": "string"
2675
+ }
2676
+ },
2677
+ "required": [
2678
+ "_tag",
2679
+ "template"
2680
+ ],
2681
+ "additionalProperties": true
2682
+ }
2683
+ }
2684
+ }
2685
+ },
2686
+ "unsubscribe": {
2687
+ "description": "`GET` or `POST /notifications/unsubscribe?token=...` (the link in every email, and RFC 8058 one-click): the signed token names the organisation, person and category; the address is suppressed for that category and email is removed from the person's preference. Audited.",
2688
+ "input": {
2689
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2690
+ "type": "object",
2691
+ "properties": {
2692
+ "token": {
2693
+ "type": "string"
2694
+ }
2695
+ },
2696
+ "required": [
2697
+ "token"
2698
+ ],
2699
+ "additionalProperties": true
2700
+ },
2701
+ "output": {
2702
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2703
+ "type": "object",
2704
+ "properties": {
2705
+ "category": {
2706
+ "type": "string"
2707
+ }
2708
+ },
2709
+ "required": [
2710
+ "category"
2711
+ ],
2712
+ "additionalProperties": true
2713
+ },
2714
+ "errors": {
2715
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2716
+ "$ref": "#/$defs/InvalidInputEncoded",
2717
+ "$defs": {
2718
+ "InvalidInputEncoded": {
2719
+ "type": "object",
2720
+ "properties": {
2721
+ "_tag": {
2722
+ "type": "string",
2723
+ "enum": [
2724
+ "InvalidInput"
2725
+ ]
2726
+ },
2727
+ "message": {
2728
+ "type": "string"
2729
+ }
2730
+ },
2731
+ "required": [
2732
+ "_tag",
2733
+ "message"
2734
+ ],
2735
+ "additionalProperties": true
2736
+ }
2737
+ }
2738
+ }
2739
+ },
2740
+ "registerInstallation": {
2741
+ "description": "Action notifications.registerInstallation: register this app installation's APNs or FCM token for push, from the person's own signed-in session only (agents, API tokens, OAuth grants and devices are refused). Registering the installation again replaces its token; a token registered elsewhere moves here. Signing out (or revoking) the registering session removes it; so does erasure.",
2742
+ "input": {
2743
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2744
+ "type": "object",
2745
+ "properties": {
2746
+ "installationId": {
2747
+ "type": "string"
2748
+ },
2749
+ "provider": {
2750
+ "type": "string",
2751
+ "enum": [
2752
+ "apns",
2753
+ "fcm"
2754
+ ]
2755
+ },
2756
+ "token": {
2757
+ "type": "string",
2758
+ "minLength": 1,
2759
+ "maxLength": 4096
2760
+ },
2761
+ "appId": {
2762
+ "type": "string",
2763
+ "minLength": 1,
2764
+ "maxLength": 255
2765
+ },
2766
+ "environment": {
2767
+ "type": "string",
2768
+ "enum": [
2769
+ "production",
2770
+ "sandbox"
2771
+ ]
2772
+ }
2773
+ },
2774
+ "required": [
2775
+ "installationId",
2776
+ "provider",
2777
+ "token",
2778
+ "appId"
2779
+ ],
2780
+ "additionalProperties": true
2781
+ },
2782
+ "output": {
2783
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2784
+ "type": "object",
2785
+ "properties": {
2786
+ "installationId": {
2787
+ "type": "string"
2788
+ }
2789
+ },
2790
+ "required": [
2791
+ "installationId"
2792
+ ],
2793
+ "additionalProperties": true
2794
+ },
2795
+ "errors": {
2796
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2797
+ "anyOf": [
2798
+ {
2799
+ "$ref": "#/$defs/UnauthenticatedEncoded"
2800
+ },
2801
+ {
2802
+ "$ref": "#/$defs/ForbiddenEncoded"
2803
+ },
2804
+ {
2805
+ "$ref": "#/$defs/ApprovalRequiredEncoded"
2806
+ },
2807
+ {
2808
+ "$ref": "#/$defs/ConsentRequiredEncoded"
2809
+ },
2810
+ {
2811
+ "$ref": "#/$defs/IdempotencyConflictEncoded"
2812
+ },
2813
+ {
2814
+ "$ref": "#/$defs/InvalidInputEncoded"
2815
+ },
2816
+ {
2817
+ "$ref": "#/$defs/UnknownActionEncoded"
2818
+ },
2819
+ {
2820
+ "$ref": "#/$defs/ActionFailedEncoded"
2821
+ },
2822
+ {
2823
+ "$ref": "#/$defs/ClientOutdatedEncoded"
2824
+ }
2825
+ ],
2826
+ "$defs": {
2827
+ "UnauthenticatedEncoded": {
2828
+ "type": "object",
2829
+ "properties": {
2830
+ "_tag": {
2831
+ "type": "string",
2832
+ "enum": [
2833
+ "Unauthenticated"
2834
+ ]
2835
+ },
2836
+ "message": {
2837
+ "type": "string"
2838
+ }
2839
+ },
2840
+ "required": [
2841
+ "_tag",
2842
+ "message"
2843
+ ],
2844
+ "additionalProperties": true
2845
+ },
2846
+ "ForbiddenEncoded": {
2847
+ "type": "object",
2848
+ "properties": {
2849
+ "_tag": {
2850
+ "type": "string",
2851
+ "enum": [
2852
+ "Forbidden"
2853
+ ]
2854
+ },
2855
+ "message": {
2856
+ "type": "string"
2857
+ },
2858
+ "action": {
2859
+ "type": "string"
2860
+ }
2861
+ },
2862
+ "required": [
2863
+ "_tag",
2864
+ "message",
2865
+ "action"
2866
+ ],
2867
+ "additionalProperties": true
2868
+ },
2869
+ "ApprovalRequiredEncoded": {
2870
+ "type": "object",
2871
+ "properties": {
2872
+ "_tag": {
2873
+ "type": "string",
2874
+ "enum": [
2875
+ "ApprovalRequired"
2876
+ ]
2877
+ },
2878
+ "message": {
2879
+ "type": "string"
2880
+ },
2881
+ "action": {
2882
+ "type": "string"
2883
+ },
2884
+ "approvalId": {
2885
+ "type": "string"
2886
+ }
2887
+ },
2888
+ "required": [
2889
+ "_tag",
2890
+ "message",
2891
+ "action",
2892
+ "approvalId"
2893
+ ],
2894
+ "additionalProperties": true
2895
+ },
2896
+ "ConsentRequiredEncoded": {
2897
+ "type": "object",
2898
+ "properties": {
2899
+ "_tag": {
2900
+ "type": "string",
2901
+ "enum": [
2902
+ "ConsentRequired"
2903
+ ]
2904
+ },
2905
+ "message": {
2906
+ "type": "string"
2907
+ },
2908
+ "action": {
2909
+ "type": "string"
2910
+ },
2911
+ "consentId": {
2912
+ "type": "string"
2913
+ }
2914
+ },
2915
+ "required": [
2916
+ "_tag",
2917
+ "message",
2918
+ "action",
2919
+ "consentId"
2920
+ ],
2921
+ "additionalProperties": true
2922
+ },
2923
+ "IdempotencyConflictEncoded": {
2924
+ "type": "object",
2925
+ "properties": {
2926
+ "_tag": {
2927
+ "type": "string",
2928
+ "enum": [
2929
+ "IdempotencyConflict"
2930
+ ]
2931
+ },
2932
+ "message": {
2933
+ "type": "string"
2934
+ },
2935
+ "key": {
2936
+ "type": "string"
2937
+ }
2938
+ },
2939
+ "required": [
2940
+ "_tag",
2941
+ "message",
2942
+ "key"
2943
+ ],
2944
+ "additionalProperties": true
2945
+ },
2946
+ "InvalidInputEncoded": {
2947
+ "type": "object",
2948
+ "properties": {
2949
+ "_tag": {
2950
+ "type": "string",
2951
+ "enum": [
2952
+ "InvalidInput"
2953
+ ]
2954
+ },
2955
+ "message": {
2956
+ "type": "string"
2957
+ }
2958
+ },
2959
+ "required": [
2960
+ "_tag",
2961
+ "message"
2962
+ ],
2963
+ "additionalProperties": true
2964
+ },
2965
+ "UnknownActionEncoded": {
2966
+ "type": "object",
2967
+ "properties": {
2968
+ "_tag": {
2969
+ "type": "string",
2970
+ "enum": [
2971
+ "UnknownAction"
2972
+ ]
2973
+ },
2974
+ "message": {
2975
+ "type": "string"
2976
+ },
2977
+ "action": {
2978
+ "type": "string"
2979
+ }
2980
+ },
2981
+ "required": [
2982
+ "_tag",
2983
+ "message",
2984
+ "action"
2985
+ ],
2986
+ "additionalProperties": true
2987
+ },
2988
+ "ActionFailedEncoded": {
2989
+ "type": "object",
2990
+ "properties": {
2991
+ "_tag": {
2992
+ "type": "string",
2993
+ "enum": [
2994
+ "ActionFailed"
2995
+ ]
2996
+ },
2997
+ "message": {
2998
+ "type": "string"
2999
+ },
3000
+ "action": {
3001
+ "type": "string"
3002
+ },
3003
+ "effect": {
3004
+ "type": "string",
3005
+ "enum": [
3006
+ "none",
3007
+ "unknown"
3008
+ ]
3009
+ }
3010
+ },
3011
+ "required": [
3012
+ "_tag",
3013
+ "message",
3014
+ "action"
3015
+ ],
3016
+ "additionalProperties": true
3017
+ },
3018
+ "ClientOutdatedEncoded": {
3019
+ "type": "object",
3020
+ "properties": {
3021
+ "_tag": {
3022
+ "type": "string",
3023
+ "enum": [
3024
+ "ClientOutdated"
3025
+ ]
3026
+ },
3027
+ "message": {
3028
+ "type": "string"
3029
+ },
3030
+ "action": {
3031
+ "type": "string"
3032
+ },
3033
+ "clientVersion": {
3034
+ "type": "string"
3035
+ },
3036
+ "minClientVersion": {
3037
+ "type": "string"
3038
+ }
3039
+ },
3040
+ "required": [
3041
+ "_tag",
3042
+ "message",
3043
+ "action",
3044
+ "clientVersion",
3045
+ "minClientVersion"
3046
+ ],
3047
+ "additionalProperties": true
3048
+ }
3049
+ }
3050
+ }
3051
+ },
3052
+ "unregisterInstallation": {
3053
+ "description": "Action notifications.unregisterInstallation: remove one of your installations (nothing if unknown).",
3054
+ "input": {
3055
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3056
+ "type": "object",
3057
+ "properties": {
3058
+ "installationId": {
3059
+ "type": "string"
3060
+ }
3061
+ },
3062
+ "required": [
3063
+ "installationId"
3064
+ ],
3065
+ "additionalProperties": true
3066
+ },
3067
+ "output": {
3068
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3069
+ "type": "object",
3070
+ "properties": {
3071
+ "installationId": {
3072
+ "type": "string"
3073
+ }
3074
+ },
3075
+ "required": [
3076
+ "installationId"
3077
+ ],
3078
+ "additionalProperties": true
3079
+ },
3080
+ "errors": {
3081
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3082
+ "anyOf": [
3083
+ {
3084
+ "$ref": "#/$defs/UnauthenticatedEncoded"
3085
+ },
3086
+ {
3087
+ "$ref": "#/$defs/ForbiddenEncoded"
3088
+ },
3089
+ {
3090
+ "$ref": "#/$defs/ApprovalRequiredEncoded"
3091
+ },
3092
+ {
3093
+ "$ref": "#/$defs/ConsentRequiredEncoded"
3094
+ },
3095
+ {
3096
+ "$ref": "#/$defs/IdempotencyConflictEncoded"
3097
+ },
3098
+ {
3099
+ "$ref": "#/$defs/InvalidInputEncoded"
3100
+ },
3101
+ {
3102
+ "$ref": "#/$defs/UnknownActionEncoded"
3103
+ },
3104
+ {
3105
+ "$ref": "#/$defs/ActionFailedEncoded"
3106
+ },
3107
+ {
3108
+ "$ref": "#/$defs/ClientOutdatedEncoded"
3109
+ }
3110
+ ],
3111
+ "$defs": {
3112
+ "UnauthenticatedEncoded": {
3113
+ "type": "object",
3114
+ "properties": {
3115
+ "_tag": {
3116
+ "type": "string",
3117
+ "enum": [
3118
+ "Unauthenticated"
3119
+ ]
3120
+ },
3121
+ "message": {
3122
+ "type": "string"
3123
+ }
3124
+ },
3125
+ "required": [
3126
+ "_tag",
3127
+ "message"
3128
+ ],
3129
+ "additionalProperties": true
3130
+ },
3131
+ "ForbiddenEncoded": {
3132
+ "type": "object",
3133
+ "properties": {
3134
+ "_tag": {
3135
+ "type": "string",
3136
+ "enum": [
3137
+ "Forbidden"
3138
+ ]
3139
+ },
3140
+ "message": {
3141
+ "type": "string"
3142
+ },
3143
+ "action": {
3144
+ "type": "string"
3145
+ }
3146
+ },
3147
+ "required": [
3148
+ "_tag",
3149
+ "message",
3150
+ "action"
3151
+ ],
3152
+ "additionalProperties": true
3153
+ },
3154
+ "ApprovalRequiredEncoded": {
3155
+ "type": "object",
3156
+ "properties": {
3157
+ "_tag": {
3158
+ "type": "string",
3159
+ "enum": [
3160
+ "ApprovalRequired"
3161
+ ]
3162
+ },
3163
+ "message": {
3164
+ "type": "string"
3165
+ },
3166
+ "action": {
3167
+ "type": "string"
3168
+ },
3169
+ "approvalId": {
3170
+ "type": "string"
3171
+ }
3172
+ },
3173
+ "required": [
3174
+ "_tag",
3175
+ "message",
3176
+ "action",
3177
+ "approvalId"
3178
+ ],
3179
+ "additionalProperties": true
3180
+ },
3181
+ "ConsentRequiredEncoded": {
3182
+ "type": "object",
3183
+ "properties": {
3184
+ "_tag": {
3185
+ "type": "string",
3186
+ "enum": [
3187
+ "ConsentRequired"
3188
+ ]
3189
+ },
3190
+ "message": {
3191
+ "type": "string"
3192
+ },
3193
+ "action": {
3194
+ "type": "string"
3195
+ },
3196
+ "consentId": {
3197
+ "type": "string"
3198
+ }
3199
+ },
3200
+ "required": [
3201
+ "_tag",
3202
+ "message",
3203
+ "action",
3204
+ "consentId"
3205
+ ],
3206
+ "additionalProperties": true
3207
+ },
3208
+ "IdempotencyConflictEncoded": {
3209
+ "type": "object",
3210
+ "properties": {
3211
+ "_tag": {
3212
+ "type": "string",
3213
+ "enum": [
3214
+ "IdempotencyConflict"
3215
+ ]
3216
+ },
3217
+ "message": {
3218
+ "type": "string"
3219
+ },
3220
+ "key": {
3221
+ "type": "string"
3222
+ }
3223
+ },
3224
+ "required": [
3225
+ "_tag",
3226
+ "message",
3227
+ "key"
3228
+ ],
3229
+ "additionalProperties": true
3230
+ },
3231
+ "InvalidInputEncoded": {
3232
+ "type": "object",
3233
+ "properties": {
3234
+ "_tag": {
3235
+ "type": "string",
3236
+ "enum": [
3237
+ "InvalidInput"
3238
+ ]
3239
+ },
3240
+ "message": {
3241
+ "type": "string"
3242
+ }
3243
+ },
3244
+ "required": [
3245
+ "_tag",
3246
+ "message"
3247
+ ],
3248
+ "additionalProperties": true
3249
+ },
3250
+ "UnknownActionEncoded": {
3251
+ "type": "object",
3252
+ "properties": {
3253
+ "_tag": {
3254
+ "type": "string",
3255
+ "enum": [
3256
+ "UnknownAction"
3257
+ ]
3258
+ },
3259
+ "message": {
3260
+ "type": "string"
3261
+ },
3262
+ "action": {
3263
+ "type": "string"
3264
+ }
3265
+ },
3266
+ "required": [
3267
+ "_tag",
3268
+ "message",
3269
+ "action"
3270
+ ],
3271
+ "additionalProperties": true
3272
+ },
3273
+ "ActionFailedEncoded": {
3274
+ "type": "object",
3275
+ "properties": {
3276
+ "_tag": {
3277
+ "type": "string",
3278
+ "enum": [
3279
+ "ActionFailed"
3280
+ ]
3281
+ },
3282
+ "message": {
3283
+ "type": "string"
3284
+ },
3285
+ "action": {
3286
+ "type": "string"
3287
+ },
3288
+ "effect": {
3289
+ "type": "string",
3290
+ "enum": [
3291
+ "none",
3292
+ "unknown"
3293
+ ]
3294
+ }
3295
+ },
3296
+ "required": [
3297
+ "_tag",
3298
+ "message",
3299
+ "action"
3300
+ ],
3301
+ "additionalProperties": true
3302
+ },
3303
+ "ClientOutdatedEncoded": {
3304
+ "type": "object",
3305
+ "properties": {
3306
+ "_tag": {
3307
+ "type": "string",
3308
+ "enum": [
3309
+ "ClientOutdated"
3310
+ ]
3311
+ },
3312
+ "message": {
3313
+ "type": "string"
3314
+ },
3315
+ "action": {
3316
+ "type": "string"
3317
+ },
3318
+ "clientVersion": {
3319
+ "type": "string"
3320
+ },
3321
+ "minClientVersion": {
3322
+ "type": "string"
3323
+ }
3324
+ },
3325
+ "required": [
3326
+ "_tag",
3327
+ "message",
3328
+ "action",
3329
+ "clientVersion",
3330
+ "minClientVersion"
3331
+ ],
3332
+ "additionalProperties": true
3333
+ }
3334
+ }
3335
+ }
3336
+ },
3337
+ "decide": {
3338
+ "description": "`POST /api/notifications/decide { token, verdict }` (no session; rate-limited; no-store): redeem an approval or consent notification's decision token once, while it is unexpired and the installation registration it was sent to (its session and generation) still stands. The person's decision runs through the existing action (approvals.approve|reject, consent.approve with remember once, consent.reject) as that person under the registering session, under live membership, policy and eligibility, with the chat SDK's decision key; a consent must still be pending. The decision and the token's recorded answer commit together: a later redemption of the same token returns the recorded answer and decides nothing; a transient failure (503 ActionFailed) decides nothing and leaves the token unspent; the person's same decision made elsewhere answers the request's status (replayed). Not an action: no agent or MCP surface reaches it.",
3339
+ "input": {
3340
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3341
+ "type": "object",
3342
+ "properties": {
3343
+ "token": {
3344
+ "type": "string"
3345
+ },
3346
+ "verdict": {
3347
+ "type": "string",
3348
+ "enum": [
3349
+ "approve",
3350
+ "reject"
3351
+ ]
3352
+ }
3353
+ },
3354
+ "required": [
3355
+ "token",
3356
+ "verdict"
3357
+ ],
3358
+ "additionalProperties": true
3359
+ },
3360
+ "output": {
3361
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3362
+ "type": "object",
3363
+ "properties": {
3364
+ "kind": {
3365
+ "type": "string",
3366
+ "enum": [
3367
+ "approval",
3368
+ "consent"
3369
+ ]
3370
+ },
3371
+ "requestId": {
3372
+ "type": "string"
3373
+ },
3374
+ "verdict": {
3375
+ "type": "string",
3376
+ "enum": [
3377
+ "approve",
3378
+ "reject"
3379
+ ]
3380
+ },
3381
+ "status": {
3382
+ "type": "string"
3383
+ },
3384
+ "replayed": {
3385
+ "type": "boolean"
3386
+ }
3387
+ },
3388
+ "required": [
3389
+ "kind",
3390
+ "requestId",
3391
+ "verdict",
3392
+ "status",
3393
+ "replayed"
3394
+ ],
3395
+ "additionalProperties": true
3396
+ },
3397
+ "errors": {
3398
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3399
+ "anyOf": [
3400
+ {
3401
+ "$ref": "#/$defs/InvalidDecisionEncoded"
3402
+ },
3403
+ {
3404
+ "$ref": "#/$defs/DecisionExpiredEncoded"
3405
+ },
3406
+ {
3407
+ "$ref": "#/$defs/UnauthenticatedEncoded"
3408
+ },
3409
+ {
3410
+ "$ref": "#/$defs/ForbiddenEncoded"
3411
+ },
3412
+ {
3413
+ "$ref": "#/$defs/ApprovalRequiredEncoded"
3414
+ },
3415
+ {
3416
+ "$ref": "#/$defs/ConsentRequiredEncoded"
3417
+ },
3418
+ {
3419
+ "$ref": "#/$defs/IdempotencyConflictEncoded"
3420
+ },
3421
+ {
3422
+ "$ref": "#/$defs/InvalidInputEncoded"
3423
+ },
3424
+ {
3425
+ "$ref": "#/$defs/UnknownActionEncoded"
3426
+ },
3427
+ {
3428
+ "$ref": "#/$defs/ActionFailedEncoded"
3429
+ },
3430
+ {
3431
+ "$ref": "#/$defs/ClientOutdatedEncoded"
3432
+ }
3433
+ ],
3434
+ "$defs": {
3435
+ "InvalidDecisionEncoded": {
3436
+ "type": "object",
3437
+ "properties": {
3438
+ "_tag": {
3439
+ "type": "string",
3440
+ "enum": [
3441
+ "InvalidDecision"
3442
+ ]
3443
+ },
3444
+ "message": {
3445
+ "type": "string"
3446
+ }
3447
+ },
3448
+ "required": [
3449
+ "_tag",
3450
+ "message"
3451
+ ],
3452
+ "additionalProperties": true
3453
+ },
3454
+ "DecisionExpiredEncoded": {
3455
+ "type": "object",
3456
+ "properties": {
3457
+ "_tag": {
3458
+ "type": "string",
3459
+ "enum": [
3460
+ "DecisionExpired"
3461
+ ]
3462
+ },
3463
+ "message": {
3464
+ "type": "string"
3465
+ }
3466
+ },
3467
+ "required": [
3468
+ "_tag",
3469
+ "message"
3470
+ ],
3471
+ "additionalProperties": true
3472
+ },
3473
+ "UnauthenticatedEncoded": {
3474
+ "type": "object",
3475
+ "properties": {
3476
+ "_tag": {
3477
+ "type": "string",
3478
+ "enum": [
3479
+ "Unauthenticated"
3480
+ ]
3481
+ },
3482
+ "message": {
3483
+ "type": "string"
3484
+ }
3485
+ },
3486
+ "required": [
3487
+ "_tag",
3488
+ "message"
3489
+ ],
3490
+ "additionalProperties": true
3491
+ },
3492
+ "ForbiddenEncoded": {
3493
+ "type": "object",
3494
+ "properties": {
3495
+ "_tag": {
3496
+ "type": "string",
3497
+ "enum": [
3498
+ "Forbidden"
3499
+ ]
3500
+ },
3501
+ "message": {
3502
+ "type": "string"
3503
+ },
3504
+ "action": {
3505
+ "type": "string"
3506
+ }
3507
+ },
3508
+ "required": [
3509
+ "_tag",
3510
+ "message",
3511
+ "action"
3512
+ ],
3513
+ "additionalProperties": true
3514
+ },
3515
+ "ApprovalRequiredEncoded": {
3516
+ "type": "object",
3517
+ "properties": {
3518
+ "_tag": {
3519
+ "type": "string",
3520
+ "enum": [
3521
+ "ApprovalRequired"
3522
+ ]
3523
+ },
3524
+ "message": {
3525
+ "type": "string"
3526
+ },
3527
+ "action": {
3528
+ "type": "string"
3529
+ },
3530
+ "approvalId": {
3531
+ "type": "string"
3532
+ }
3533
+ },
3534
+ "required": [
3535
+ "_tag",
3536
+ "message",
3537
+ "action",
3538
+ "approvalId"
3539
+ ],
3540
+ "additionalProperties": true
3541
+ },
3542
+ "ConsentRequiredEncoded": {
3543
+ "type": "object",
3544
+ "properties": {
3545
+ "_tag": {
3546
+ "type": "string",
3547
+ "enum": [
3548
+ "ConsentRequired"
3549
+ ]
3550
+ },
3551
+ "message": {
3552
+ "type": "string"
3553
+ },
3554
+ "action": {
3555
+ "type": "string"
3556
+ },
3557
+ "consentId": {
3558
+ "type": "string"
3559
+ }
3560
+ },
3561
+ "required": [
3562
+ "_tag",
3563
+ "message",
3564
+ "action",
3565
+ "consentId"
3566
+ ],
3567
+ "additionalProperties": true
3568
+ },
3569
+ "IdempotencyConflictEncoded": {
3570
+ "type": "object",
3571
+ "properties": {
3572
+ "_tag": {
3573
+ "type": "string",
3574
+ "enum": [
3575
+ "IdempotencyConflict"
3576
+ ]
3577
+ },
3578
+ "message": {
3579
+ "type": "string"
3580
+ },
3581
+ "key": {
3582
+ "type": "string"
3583
+ }
3584
+ },
3585
+ "required": [
3586
+ "_tag",
3587
+ "message",
3588
+ "key"
3589
+ ],
3590
+ "additionalProperties": true
3591
+ },
3592
+ "InvalidInputEncoded": {
3593
+ "type": "object",
3594
+ "properties": {
3595
+ "_tag": {
3596
+ "type": "string",
3597
+ "enum": [
3598
+ "InvalidInput"
3599
+ ]
3600
+ },
3601
+ "message": {
3602
+ "type": "string"
3603
+ }
3604
+ },
3605
+ "required": [
3606
+ "_tag",
3607
+ "message"
3608
+ ],
3609
+ "additionalProperties": true
3610
+ },
3611
+ "UnknownActionEncoded": {
3612
+ "type": "object",
3613
+ "properties": {
3614
+ "_tag": {
3615
+ "type": "string",
3616
+ "enum": [
3617
+ "UnknownAction"
3618
+ ]
3619
+ },
3620
+ "message": {
3621
+ "type": "string"
3622
+ },
3623
+ "action": {
3624
+ "type": "string"
3625
+ }
3626
+ },
3627
+ "required": [
3628
+ "_tag",
3629
+ "message",
3630
+ "action"
3631
+ ],
3632
+ "additionalProperties": true
3633
+ },
3634
+ "ActionFailedEncoded": {
3635
+ "type": "object",
3636
+ "properties": {
3637
+ "_tag": {
3638
+ "type": "string",
3639
+ "enum": [
3640
+ "ActionFailed"
3641
+ ]
3642
+ },
3643
+ "message": {
3644
+ "type": "string"
3645
+ },
3646
+ "action": {
3647
+ "type": "string"
3648
+ },
3649
+ "effect": {
3650
+ "type": "string",
3651
+ "enum": [
3652
+ "none",
3653
+ "unknown"
3654
+ ]
3655
+ }
3656
+ },
3657
+ "required": [
3658
+ "_tag",
3659
+ "message",
3660
+ "action"
3661
+ ],
3662
+ "additionalProperties": true
3663
+ },
3664
+ "ClientOutdatedEncoded": {
3665
+ "type": "object",
3666
+ "properties": {
3667
+ "_tag": {
3668
+ "type": "string",
3669
+ "enum": [
3670
+ "ClientOutdated"
3671
+ ]
3672
+ },
3673
+ "message": {
3674
+ "type": "string"
3675
+ },
3676
+ "action": {
3677
+ "type": "string"
3678
+ },
3679
+ "clientVersion": {
3680
+ "type": "string"
3681
+ },
3682
+ "minClientVersion": {
3683
+ "type": "string"
3684
+ }
3685
+ },
3686
+ "required": [
3687
+ "_tag",
3688
+ "message",
3689
+ "action",
3690
+ "clientVersion",
3691
+ "minClientVersion"
3692
+ ],
3693
+ "additionalProperties": true
3694
+ }
3695
+ }
3696
+ }
3697
+ },
3698
+ "deliveries": {
3699
+ "description": "The delivery log of a notification (every channel, attempt counts, last error).",
3700
+ "input": {
3701
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3702
+ "type": "object",
3703
+ "properties": {
3704
+ "orgId": {
3705
+ "type": "string"
3706
+ },
3707
+ "notificationId": {
3708
+ "type": "string"
3709
+ }
3710
+ },
3711
+ "required": [
3712
+ "orgId",
3713
+ "notificationId"
3714
+ ],
3715
+ "additionalProperties": true
3716
+ },
3717
+ "output": {
3718
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3719
+ "type": "object",
3720
+ "properties": {
3721
+ "deliveries": {
3722
+ "type": "array",
3723
+ "items": {
3724
+ "type": "object",
3725
+ "properties": {
3726
+ "id": {
3727
+ "type": "string"
3728
+ },
3729
+ "orgId": {
3730
+ "type": "string"
3731
+ },
3732
+ "notificationId": {
3733
+ "type": "string"
3734
+ },
3735
+ "recipientId": {
3736
+ "type": "string"
3737
+ },
3738
+ "channel": {
3739
+ "type": "string"
3740
+ },
3741
+ "address": {
3742
+ "anyOf": [
3743
+ {
3744
+ "type": "string"
3745
+ },
3746
+ {
3747
+ "type": "null"
3748
+ }
3749
+ ]
3750
+ },
3751
+ "status": {
3752
+ "type": "string",
3753
+ "enum": [
3754
+ "pending",
3755
+ "sent",
3756
+ "failed",
3757
+ "suppressed"
3758
+ ]
3759
+ },
3760
+ "attempts": {
3761
+ "type": "integer",
3762
+ "minimum": -9007199254740991,
3763
+ "maximum": 9007199254740991
3764
+ },
3765
+ "lastError": {
3766
+ "anyOf": [
3767
+ {
3768
+ "type": "string"
3769
+ },
3770
+ {
3771
+ "type": "null"
3772
+ }
3773
+ ]
3774
+ },
3775
+ "providerId": {
3776
+ "anyOf": [
3777
+ {
3778
+ "type": "string"
3779
+ },
3780
+ {
3781
+ "type": "null"
3782
+ }
3783
+ ]
3784
+ },
3785
+ "createdAt": {
3786
+ "type": "string"
3787
+ },
3788
+ "sentAt": {
3789
+ "anyOf": [
3790
+ {
3791
+ "type": "string"
3792
+ },
3793
+ {
3794
+ "type": "null"
3795
+ }
3796
+ ]
3797
+ }
3798
+ },
3799
+ "required": [
3800
+ "id",
3801
+ "orgId",
3802
+ "notificationId",
3803
+ "recipientId",
3804
+ "channel",
3805
+ "address",
3806
+ "status",
3807
+ "attempts",
3808
+ "lastError",
3809
+ "providerId",
3810
+ "createdAt",
3811
+ "sentAt"
3812
+ ],
3813
+ "additionalProperties": true
3814
+ }
3815
+ }
3816
+ },
3817
+ "required": [
3818
+ "deliveries"
3819
+ ],
3820
+ "additionalProperties": true
3821
+ },
3822
+ "errors": {
3823
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3824
+ "not": {}
3825
+ }
3826
+ }
3827
+ },
3828
+ "types": {
3829
+ "Notification": {
3830
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3831
+ "type": "object",
3832
+ "properties": {
3833
+ "id": {
3834
+ "type": "string"
3835
+ },
3836
+ "orgId": {
3837
+ "type": "string"
3838
+ },
3839
+ "recipientId": {
3840
+ "type": "string"
3841
+ },
3842
+ "category": {
3843
+ "type": "string"
3844
+ },
3845
+ "title": {
3846
+ "type": "string"
3847
+ },
3848
+ "body": {
3849
+ "type": "string"
3850
+ },
3851
+ "link": {
3852
+ "anyOf": [
3853
+ {
3854
+ "type": "object",
3855
+ "properties": {
3856
+ "module": {
3857
+ "type": "string"
3858
+ },
3859
+ "entity": {
3860
+ "type": "string"
3861
+ },
3862
+ "id": {
3863
+ "type": "string"
3864
+ }
3865
+ },
3866
+ "required": [
3867
+ "module",
3868
+ "entity",
3869
+ "id"
3870
+ ],
3871
+ "additionalProperties": true
3872
+ },
3873
+ {
3874
+ "type": "null"
3875
+ }
3876
+ ]
3877
+ },
3878
+ "createdAt": {
3879
+ "type": "string"
3880
+ },
3881
+ "readAt": {
3882
+ "anyOf": [
3883
+ {
3884
+ "type": "string"
3885
+ },
3886
+ {
3887
+ "type": "null"
3888
+ }
3889
+ ]
3890
+ },
3891
+ "dismissedAt": {
3892
+ "anyOf": [
3893
+ {
3894
+ "type": "string"
3895
+ },
3896
+ {
3897
+ "type": "null"
3898
+ }
3899
+ ]
3900
+ }
3901
+ },
3902
+ "required": [
3903
+ "id",
3904
+ "orgId",
3905
+ "recipientId",
3906
+ "category",
3907
+ "title",
3908
+ "body",
3909
+ "link",
3910
+ "createdAt",
3911
+ "readAt",
3912
+ "dismissedAt"
3913
+ ],
3914
+ "additionalProperties": true
3915
+ },
3916
+ "EmailTemplate": {
3917
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3918
+ "type": "object",
3919
+ "properties": {
3920
+ "id": {
3921
+ "type": "string"
3922
+ },
3923
+ "description": {
3924
+ "type": "string"
3925
+ },
3926
+ "subject": {
3927
+ "type": "string"
3928
+ },
3929
+ "text": {
3930
+ "type": "string"
3931
+ },
3932
+ "html": {
3933
+ "anyOf": [
3934
+ {
3935
+ "type": "string"
3936
+ },
3937
+ {
3938
+ "type": "null"
3939
+ }
3940
+ ]
3941
+ },
3942
+ "variables": {
3943
+ "type": "array",
3944
+ "items": {
3945
+ "type": "string"
3946
+ }
3947
+ }
3948
+ },
3949
+ "required": [
3950
+ "id",
3951
+ "description",
3952
+ "subject",
3953
+ "text",
3954
+ "html",
3955
+ "variables"
3956
+ ],
3957
+ "additionalProperties": true
3958
+ },
3959
+ "RenderedEmail": {
3960
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3961
+ "type": "object",
3962
+ "properties": {
3963
+ "subject": {
3964
+ "type": "string"
3965
+ },
3966
+ "text": {
3967
+ "type": "string"
3968
+ },
3969
+ "html": {
3970
+ "anyOf": [
3971
+ {
3972
+ "type": "string"
3973
+ },
3974
+ {
3975
+ "type": "null"
3976
+ }
3977
+ ]
3978
+ },
3979
+ "overridden": {
3980
+ "type": "boolean"
3981
+ }
3982
+ },
3983
+ "required": [
3984
+ "subject",
3985
+ "text",
3986
+ "html",
3987
+ "overridden"
3988
+ ],
3989
+ "additionalProperties": true
3990
+ },
3991
+ "SendNotification": {
3992
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3993
+ "type": "object",
3994
+ "properties": {
3995
+ "orgId": {
3996
+ "type": "string"
3997
+ },
3998
+ "recipients": {
3999
+ "type": "array",
4000
+ "items": {
4001
+ "type": "string"
4002
+ }
4003
+ },
4004
+ "category": {
4005
+ "type": "string"
4006
+ },
4007
+ "title": {
4008
+ "type": "string"
4009
+ },
4010
+ "body": {
4011
+ "type": "string"
4012
+ },
4013
+ "link": {
4014
+ "anyOf": [
4015
+ {
4016
+ "type": "object",
4017
+ "properties": {
4018
+ "module": {
4019
+ "type": "string"
4020
+ },
4021
+ "entity": {
4022
+ "type": "string"
4023
+ },
4024
+ "id": {
4025
+ "type": "string"
4026
+ }
4027
+ },
4028
+ "required": [
4029
+ "module",
4030
+ "entity",
4031
+ "id"
4032
+ ],
4033
+ "additionalProperties": true
4034
+ },
4035
+ {
4036
+ "type": "null"
4037
+ }
4038
+ ]
4039
+ },
4040
+ "email": {
4041
+ "type": "object",
4042
+ "properties": {
4043
+ "template": {
4044
+ "type": "string"
4045
+ },
4046
+ "variables": {
4047
+ "type": "object"
4048
+ }
4049
+ },
4050
+ "required": [
4051
+ "template",
4052
+ "variables"
4053
+ ],
4054
+ "additionalProperties": true
4055
+ },
4056
+ "key": {
4057
+ "type": "string"
4058
+ }
4059
+ },
4060
+ "required": [
4061
+ "orgId",
4062
+ "recipients",
4063
+ "category",
4064
+ "title",
4065
+ "body"
4066
+ ],
4067
+ "additionalProperties": true
4068
+ },
4069
+ "Preference": {
4070
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4071
+ "type": "object",
4072
+ "properties": {
4073
+ "category": {
4074
+ "type": "string"
4075
+ },
4076
+ "channels": {
4077
+ "type": "array",
4078
+ "items": {
4079
+ "type": "string",
4080
+ "enum": [
4081
+ "in-app",
4082
+ "email",
4083
+ "push",
4084
+ "chat"
4085
+ ]
4086
+ }
4087
+ },
4088
+ "add": {
4089
+ "type": "boolean"
4090
+ }
4091
+ },
4092
+ "required": [
4093
+ "category",
4094
+ "channels"
4095
+ ],
4096
+ "additionalProperties": true
4097
+ },
4098
+ "UnknownTemplate": {
4099
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4100
+ "$ref": "#/$defs/UnknownTemplateEncoded",
4101
+ "$defs": {
4102
+ "UnknownTemplateEncoded": {
4103
+ "type": "object",
4104
+ "properties": {
4105
+ "_tag": {
4106
+ "type": "string",
4107
+ "enum": [
4108
+ "UnknownTemplate"
4109
+ ]
4110
+ },
4111
+ "template": {
4112
+ "type": "string"
4113
+ }
4114
+ },
4115
+ "required": [
4116
+ "_tag",
4117
+ "template"
4118
+ ],
4119
+ "additionalProperties": true
4120
+ }
4121
+ }
4122
+ },
4123
+ "PushProvider": {
4124
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4125
+ "type": "string",
4126
+ "enum": [
4127
+ "apns",
4128
+ "fcm"
4129
+ ]
4130
+ },
4131
+ "PushInstallationRegistration": {
4132
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4133
+ "type": "object",
4134
+ "properties": {
4135
+ "installationId": {
4136
+ "type": "string"
4137
+ },
4138
+ "provider": {
4139
+ "type": "string",
4140
+ "enum": [
4141
+ "apns",
4142
+ "fcm"
4143
+ ]
4144
+ },
4145
+ "token": {
4146
+ "type": "string",
4147
+ "minLength": 1,
4148
+ "maxLength": 4096
4149
+ },
4150
+ "appId": {
4151
+ "type": "string",
4152
+ "minLength": 1,
4153
+ "maxLength": 255
4154
+ },
4155
+ "environment": {
4156
+ "type": "string",
4157
+ "enum": [
4158
+ "production",
4159
+ "sandbox"
4160
+ ]
4161
+ }
4162
+ },
4163
+ "required": [
4164
+ "installationId",
4165
+ "provider",
4166
+ "token",
4167
+ "appId"
4168
+ ],
4169
+ "additionalProperties": true
4170
+ },
4171
+ "DecideRequest": {
4172
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4173
+ "type": "object",
4174
+ "properties": {
4175
+ "token": {
4176
+ "type": "string"
4177
+ },
4178
+ "verdict": {
4179
+ "type": "string",
4180
+ "enum": [
4181
+ "approve",
4182
+ "reject"
4183
+ ]
4184
+ }
4185
+ },
4186
+ "required": [
4187
+ "token",
4188
+ "verdict"
4189
+ ],
4190
+ "additionalProperties": true
4191
+ },
4192
+ "DecideResult": {
4193
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4194
+ "type": "object",
4195
+ "properties": {
4196
+ "kind": {
4197
+ "type": "string",
4198
+ "enum": [
4199
+ "approval",
4200
+ "consent"
4201
+ ]
4202
+ },
4203
+ "requestId": {
4204
+ "type": "string"
4205
+ },
4206
+ "verdict": {
4207
+ "type": "string",
4208
+ "enum": [
4209
+ "approve",
4210
+ "reject"
4211
+ ]
4212
+ },
4213
+ "status": {
4214
+ "type": "string"
4215
+ },
4216
+ "replayed": {
4217
+ "type": "boolean"
4218
+ }
4219
+ },
4220
+ "required": [
4221
+ "kind",
4222
+ "requestId",
4223
+ "verdict",
4224
+ "status",
4225
+ "replayed"
4226
+ ],
4227
+ "additionalProperties": true
4228
+ },
4229
+ "InvalidDecision": {
4230
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4231
+ "$ref": "#/$defs/InvalidDecisionEncoded",
4232
+ "$defs": {
4233
+ "InvalidDecisionEncoded": {
4234
+ "type": "object",
4235
+ "properties": {
4236
+ "_tag": {
4237
+ "type": "string",
4238
+ "enum": [
4239
+ "InvalidDecision"
4240
+ ]
4241
+ },
4242
+ "message": {
4243
+ "type": "string"
4244
+ }
4245
+ },
4246
+ "required": [
4247
+ "_tag",
4248
+ "message"
4249
+ ],
4250
+ "additionalProperties": true
4251
+ }
4252
+ }
4253
+ },
4254
+ "DecisionExpired": {
4255
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4256
+ "$ref": "#/$defs/DecisionExpiredEncoded",
4257
+ "$defs": {
4258
+ "DecisionExpiredEncoded": {
4259
+ "type": "object",
4260
+ "properties": {
4261
+ "_tag": {
4262
+ "type": "string",
4263
+ "enum": [
4264
+ "DecisionExpired"
4265
+ ]
4266
+ },
4267
+ "message": {
4268
+ "type": "string"
4269
+ }
4270
+ },
4271
+ "required": [
4272
+ "_tag",
4273
+ "message"
4274
+ ],
4275
+ "additionalProperties": true
4276
+ }
4277
+ }
4278
+ }
4279
+ }
4280
+ }