@eloxiv/contracts 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +888 -0
  204. package/dist/contracts/LocalClient.d.ts.map +1 -0
  205. package/dist/contracts/LocalClient.js +429 -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 +1298 -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 +6657 -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 +620 -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,2916 @@
1
+ {
2
+ "title": "Approvals",
3
+ "kind": "kernel",
4
+ "version": "1.4.0",
5
+ "description": "Business approval at the approval stage of the invocation path. Rules (declared in manifests or app configuration) name an action, a declarative condition on its input, who may approve (a permission, role or group; never the requester unless the rule allows it), a quorum and an expiry (seven days unless the rule declares one). A matching call fails with ApprovalRequired and its prepared call is recorded; a durable workflow notifies the approvers (a notification and a work item each), waits for the decision, and on approval runs exactly that call once, as the requester, through the invocation path (membership and policy re-checked then), with an idempotency key derived from the approval. Rejection and expiry are recorded and the requester notified; the work items are closed.",
6
+ "operations": {
7
+ "request": {
8
+ "description": "The approval stage: if a rule matches the call (after identity and policy), record the prepared call, start its workflow and fail with ApprovalRequired carrying the approval id. A call with an idempotency key always maps to the same approval.",
9
+ "input": {
10
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
11
+ "type": "object",
12
+ "properties": {
13
+ "action": {
14
+ "type": "string"
15
+ },
16
+ "input": {}
17
+ },
18
+ "required": [
19
+ "action",
20
+ "input"
21
+ ],
22
+ "additionalProperties": true
23
+ },
24
+ "output": {
25
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
26
+ "type": "object",
27
+ "properties": {
28
+ "required": {
29
+ "type": "boolean"
30
+ }
31
+ },
32
+ "required": [
33
+ "required"
34
+ ],
35
+ "additionalProperties": true
36
+ },
37
+ "errors": {
38
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
39
+ "$ref": "#/$defs/ApprovalRequiredEncoded",
40
+ "$defs": {
41
+ "ApprovalRequiredEncoded": {
42
+ "type": "object",
43
+ "properties": {
44
+ "_tag": {
45
+ "type": "string",
46
+ "enum": [
47
+ "ApprovalRequired"
48
+ ]
49
+ },
50
+ "message": {
51
+ "type": "string"
52
+ },
53
+ "action": {
54
+ "type": "string"
55
+ },
56
+ "approvalId": {
57
+ "type": "string"
58
+ }
59
+ },
60
+ "required": [
61
+ "_tag",
62
+ "message",
63
+ "action",
64
+ "approvalId"
65
+ ],
66
+ "additionalProperties": true
67
+ }
68
+ }
69
+ }
70
+ },
71
+ "approve": {
72
+ "description": "Action approvals.approve: an eligible approver (holding the rule's permission, role or group now, and not the requester unless allowed) approves. Once the quorum is reached the request is approved and the call runs. Approving twice counts once.",
73
+ "input": {
74
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
75
+ "type": "object",
76
+ "properties": {
77
+ "id": {
78
+ "type": "string"
79
+ },
80
+ "comment": {
81
+ "type": "string",
82
+ "maxLength": 2000
83
+ }
84
+ },
85
+ "required": [
86
+ "id"
87
+ ],
88
+ "additionalProperties": true
89
+ },
90
+ "output": {
91
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
92
+ "type": "object",
93
+ "properties": {
94
+ "id": {
95
+ "type": "string"
96
+ },
97
+ "status": {
98
+ "type": "string",
99
+ "enum": [
100
+ "pending",
101
+ "approved",
102
+ "rejected",
103
+ "expired",
104
+ "withdrawn"
105
+ ]
106
+ }
107
+ },
108
+ "required": [
109
+ "id",
110
+ "status"
111
+ ],
112
+ "additionalProperties": true
113
+ },
114
+ "errors": {
115
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
116
+ "anyOf": [
117
+ {
118
+ "$ref": "#/$defs/UnauthenticatedEncoded"
119
+ },
120
+ {
121
+ "$ref": "#/$defs/ForbiddenEncoded"
122
+ },
123
+ {
124
+ "$ref": "#/$defs/ApprovalRequiredEncoded"
125
+ },
126
+ {
127
+ "$ref": "#/$defs/ConsentRequiredEncoded"
128
+ },
129
+ {
130
+ "$ref": "#/$defs/IdempotencyConflictEncoded"
131
+ },
132
+ {
133
+ "$ref": "#/$defs/InvalidInputEncoded"
134
+ },
135
+ {
136
+ "$ref": "#/$defs/UnknownActionEncoded"
137
+ },
138
+ {
139
+ "$ref": "#/$defs/ActionFailedEncoded"
140
+ },
141
+ {
142
+ "$ref": "#/$defs/ClientOutdatedEncoded"
143
+ }
144
+ ],
145
+ "$defs": {
146
+ "UnauthenticatedEncoded": {
147
+ "type": "object",
148
+ "properties": {
149
+ "_tag": {
150
+ "type": "string",
151
+ "enum": [
152
+ "Unauthenticated"
153
+ ]
154
+ },
155
+ "message": {
156
+ "type": "string"
157
+ }
158
+ },
159
+ "required": [
160
+ "_tag",
161
+ "message"
162
+ ],
163
+ "additionalProperties": true
164
+ },
165
+ "ForbiddenEncoded": {
166
+ "type": "object",
167
+ "properties": {
168
+ "_tag": {
169
+ "type": "string",
170
+ "enum": [
171
+ "Forbidden"
172
+ ]
173
+ },
174
+ "message": {
175
+ "type": "string"
176
+ },
177
+ "action": {
178
+ "type": "string"
179
+ }
180
+ },
181
+ "required": [
182
+ "_tag",
183
+ "message",
184
+ "action"
185
+ ],
186
+ "additionalProperties": true
187
+ },
188
+ "ApprovalRequiredEncoded": {
189
+ "type": "object",
190
+ "properties": {
191
+ "_tag": {
192
+ "type": "string",
193
+ "enum": [
194
+ "ApprovalRequired"
195
+ ]
196
+ },
197
+ "message": {
198
+ "type": "string"
199
+ },
200
+ "action": {
201
+ "type": "string"
202
+ },
203
+ "approvalId": {
204
+ "type": "string"
205
+ }
206
+ },
207
+ "required": [
208
+ "_tag",
209
+ "message",
210
+ "action",
211
+ "approvalId"
212
+ ],
213
+ "additionalProperties": true
214
+ },
215
+ "ConsentRequiredEncoded": {
216
+ "type": "object",
217
+ "properties": {
218
+ "_tag": {
219
+ "type": "string",
220
+ "enum": [
221
+ "ConsentRequired"
222
+ ]
223
+ },
224
+ "message": {
225
+ "type": "string"
226
+ },
227
+ "action": {
228
+ "type": "string"
229
+ },
230
+ "consentId": {
231
+ "type": "string"
232
+ }
233
+ },
234
+ "required": [
235
+ "_tag",
236
+ "message",
237
+ "action",
238
+ "consentId"
239
+ ],
240
+ "additionalProperties": true
241
+ },
242
+ "IdempotencyConflictEncoded": {
243
+ "type": "object",
244
+ "properties": {
245
+ "_tag": {
246
+ "type": "string",
247
+ "enum": [
248
+ "IdempotencyConflict"
249
+ ]
250
+ },
251
+ "message": {
252
+ "type": "string"
253
+ },
254
+ "key": {
255
+ "type": "string"
256
+ }
257
+ },
258
+ "required": [
259
+ "_tag",
260
+ "message",
261
+ "key"
262
+ ],
263
+ "additionalProperties": true
264
+ },
265
+ "InvalidInputEncoded": {
266
+ "type": "object",
267
+ "properties": {
268
+ "_tag": {
269
+ "type": "string",
270
+ "enum": [
271
+ "InvalidInput"
272
+ ]
273
+ },
274
+ "message": {
275
+ "type": "string"
276
+ }
277
+ },
278
+ "required": [
279
+ "_tag",
280
+ "message"
281
+ ],
282
+ "additionalProperties": true
283
+ },
284
+ "UnknownActionEncoded": {
285
+ "type": "object",
286
+ "properties": {
287
+ "_tag": {
288
+ "type": "string",
289
+ "enum": [
290
+ "UnknownAction"
291
+ ]
292
+ },
293
+ "message": {
294
+ "type": "string"
295
+ },
296
+ "action": {
297
+ "type": "string"
298
+ }
299
+ },
300
+ "required": [
301
+ "_tag",
302
+ "message",
303
+ "action"
304
+ ],
305
+ "additionalProperties": true
306
+ },
307
+ "ActionFailedEncoded": {
308
+ "type": "object",
309
+ "properties": {
310
+ "_tag": {
311
+ "type": "string",
312
+ "enum": [
313
+ "ActionFailed"
314
+ ]
315
+ },
316
+ "message": {
317
+ "type": "string"
318
+ },
319
+ "action": {
320
+ "type": "string"
321
+ },
322
+ "effect": {
323
+ "type": "string",
324
+ "enum": [
325
+ "none",
326
+ "unknown"
327
+ ]
328
+ }
329
+ },
330
+ "required": [
331
+ "_tag",
332
+ "message",
333
+ "action"
334
+ ],
335
+ "additionalProperties": true
336
+ },
337
+ "ClientOutdatedEncoded": {
338
+ "type": "object",
339
+ "properties": {
340
+ "_tag": {
341
+ "type": "string",
342
+ "enum": [
343
+ "ClientOutdated"
344
+ ]
345
+ },
346
+ "message": {
347
+ "type": "string"
348
+ },
349
+ "action": {
350
+ "type": "string"
351
+ },
352
+ "clientVersion": {
353
+ "type": "string"
354
+ },
355
+ "minClientVersion": {
356
+ "type": "string"
357
+ }
358
+ },
359
+ "required": [
360
+ "_tag",
361
+ "message",
362
+ "action",
363
+ "clientVersion",
364
+ "minClientVersion"
365
+ ],
366
+ "additionalProperties": true
367
+ }
368
+ }
369
+ }
370
+ },
371
+ "reject": {
372
+ "description": "Action approvals.reject: an eligible approver rejects; the call never runs and the requester is notified.",
373
+ "input": {
374
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
375
+ "type": "object",
376
+ "properties": {
377
+ "id": {
378
+ "type": "string"
379
+ },
380
+ "comment": {
381
+ "type": "string",
382
+ "maxLength": 2000
383
+ }
384
+ },
385
+ "required": [
386
+ "id"
387
+ ],
388
+ "additionalProperties": true
389
+ },
390
+ "output": {
391
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
392
+ "type": "object",
393
+ "properties": {
394
+ "id": {
395
+ "type": "string"
396
+ },
397
+ "status": {
398
+ "type": "string",
399
+ "enum": [
400
+ "pending",
401
+ "approved",
402
+ "rejected",
403
+ "expired",
404
+ "withdrawn"
405
+ ]
406
+ }
407
+ },
408
+ "required": [
409
+ "id",
410
+ "status"
411
+ ],
412
+ "additionalProperties": true
413
+ },
414
+ "errors": {
415
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
416
+ "anyOf": [
417
+ {
418
+ "$ref": "#/$defs/UnauthenticatedEncoded"
419
+ },
420
+ {
421
+ "$ref": "#/$defs/ForbiddenEncoded"
422
+ },
423
+ {
424
+ "$ref": "#/$defs/ApprovalRequiredEncoded"
425
+ },
426
+ {
427
+ "$ref": "#/$defs/ConsentRequiredEncoded"
428
+ },
429
+ {
430
+ "$ref": "#/$defs/IdempotencyConflictEncoded"
431
+ },
432
+ {
433
+ "$ref": "#/$defs/InvalidInputEncoded"
434
+ },
435
+ {
436
+ "$ref": "#/$defs/UnknownActionEncoded"
437
+ },
438
+ {
439
+ "$ref": "#/$defs/ActionFailedEncoded"
440
+ },
441
+ {
442
+ "$ref": "#/$defs/ClientOutdatedEncoded"
443
+ }
444
+ ],
445
+ "$defs": {
446
+ "UnauthenticatedEncoded": {
447
+ "type": "object",
448
+ "properties": {
449
+ "_tag": {
450
+ "type": "string",
451
+ "enum": [
452
+ "Unauthenticated"
453
+ ]
454
+ },
455
+ "message": {
456
+ "type": "string"
457
+ }
458
+ },
459
+ "required": [
460
+ "_tag",
461
+ "message"
462
+ ],
463
+ "additionalProperties": true
464
+ },
465
+ "ForbiddenEncoded": {
466
+ "type": "object",
467
+ "properties": {
468
+ "_tag": {
469
+ "type": "string",
470
+ "enum": [
471
+ "Forbidden"
472
+ ]
473
+ },
474
+ "message": {
475
+ "type": "string"
476
+ },
477
+ "action": {
478
+ "type": "string"
479
+ }
480
+ },
481
+ "required": [
482
+ "_tag",
483
+ "message",
484
+ "action"
485
+ ],
486
+ "additionalProperties": true
487
+ },
488
+ "ApprovalRequiredEncoded": {
489
+ "type": "object",
490
+ "properties": {
491
+ "_tag": {
492
+ "type": "string",
493
+ "enum": [
494
+ "ApprovalRequired"
495
+ ]
496
+ },
497
+ "message": {
498
+ "type": "string"
499
+ },
500
+ "action": {
501
+ "type": "string"
502
+ },
503
+ "approvalId": {
504
+ "type": "string"
505
+ }
506
+ },
507
+ "required": [
508
+ "_tag",
509
+ "message",
510
+ "action",
511
+ "approvalId"
512
+ ],
513
+ "additionalProperties": true
514
+ },
515
+ "ConsentRequiredEncoded": {
516
+ "type": "object",
517
+ "properties": {
518
+ "_tag": {
519
+ "type": "string",
520
+ "enum": [
521
+ "ConsentRequired"
522
+ ]
523
+ },
524
+ "message": {
525
+ "type": "string"
526
+ },
527
+ "action": {
528
+ "type": "string"
529
+ },
530
+ "consentId": {
531
+ "type": "string"
532
+ }
533
+ },
534
+ "required": [
535
+ "_tag",
536
+ "message",
537
+ "action",
538
+ "consentId"
539
+ ],
540
+ "additionalProperties": true
541
+ },
542
+ "IdempotencyConflictEncoded": {
543
+ "type": "object",
544
+ "properties": {
545
+ "_tag": {
546
+ "type": "string",
547
+ "enum": [
548
+ "IdempotencyConflict"
549
+ ]
550
+ },
551
+ "message": {
552
+ "type": "string"
553
+ },
554
+ "key": {
555
+ "type": "string"
556
+ }
557
+ },
558
+ "required": [
559
+ "_tag",
560
+ "message",
561
+ "key"
562
+ ],
563
+ "additionalProperties": true
564
+ },
565
+ "InvalidInputEncoded": {
566
+ "type": "object",
567
+ "properties": {
568
+ "_tag": {
569
+ "type": "string",
570
+ "enum": [
571
+ "InvalidInput"
572
+ ]
573
+ },
574
+ "message": {
575
+ "type": "string"
576
+ }
577
+ },
578
+ "required": [
579
+ "_tag",
580
+ "message"
581
+ ],
582
+ "additionalProperties": true
583
+ },
584
+ "UnknownActionEncoded": {
585
+ "type": "object",
586
+ "properties": {
587
+ "_tag": {
588
+ "type": "string",
589
+ "enum": [
590
+ "UnknownAction"
591
+ ]
592
+ },
593
+ "message": {
594
+ "type": "string"
595
+ },
596
+ "action": {
597
+ "type": "string"
598
+ }
599
+ },
600
+ "required": [
601
+ "_tag",
602
+ "message",
603
+ "action"
604
+ ],
605
+ "additionalProperties": true
606
+ },
607
+ "ActionFailedEncoded": {
608
+ "type": "object",
609
+ "properties": {
610
+ "_tag": {
611
+ "type": "string",
612
+ "enum": [
613
+ "ActionFailed"
614
+ ]
615
+ },
616
+ "message": {
617
+ "type": "string"
618
+ },
619
+ "action": {
620
+ "type": "string"
621
+ },
622
+ "effect": {
623
+ "type": "string",
624
+ "enum": [
625
+ "none",
626
+ "unknown"
627
+ ]
628
+ }
629
+ },
630
+ "required": [
631
+ "_tag",
632
+ "message",
633
+ "action"
634
+ ],
635
+ "additionalProperties": true
636
+ },
637
+ "ClientOutdatedEncoded": {
638
+ "type": "object",
639
+ "properties": {
640
+ "_tag": {
641
+ "type": "string",
642
+ "enum": [
643
+ "ClientOutdated"
644
+ ]
645
+ },
646
+ "message": {
647
+ "type": "string"
648
+ },
649
+ "action": {
650
+ "type": "string"
651
+ },
652
+ "clientVersion": {
653
+ "type": "string"
654
+ },
655
+ "minClientVersion": {
656
+ "type": "string"
657
+ }
658
+ },
659
+ "required": [
660
+ "_tag",
661
+ "message",
662
+ "action",
663
+ "clientVersion",
664
+ "minClientVersion"
665
+ ],
666
+ "additionalProperties": true
667
+ }
668
+ }
669
+ }
670
+ },
671
+ "withdraw": {
672
+ "description": "Action approvals.withdraw: the requester withdraws a pending request; it is never approved or run, the approvers' items close, and the withdrawal is audited.",
673
+ "input": {
674
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
675
+ "type": "object",
676
+ "properties": {
677
+ "id": {
678
+ "type": "string"
679
+ },
680
+ "comment": {
681
+ "type": "string",
682
+ "maxLength": 2000
683
+ }
684
+ },
685
+ "required": [
686
+ "id"
687
+ ],
688
+ "additionalProperties": true
689
+ },
690
+ "output": {
691
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
692
+ "type": "object",
693
+ "properties": {
694
+ "id": {
695
+ "type": "string"
696
+ },
697
+ "status": {
698
+ "type": "string",
699
+ "enum": [
700
+ "pending",
701
+ "approved",
702
+ "rejected",
703
+ "expired",
704
+ "withdrawn"
705
+ ]
706
+ }
707
+ },
708
+ "required": [
709
+ "id",
710
+ "status"
711
+ ],
712
+ "additionalProperties": true
713
+ },
714
+ "errors": {
715
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
716
+ "anyOf": [
717
+ {
718
+ "$ref": "#/$defs/UnauthenticatedEncoded"
719
+ },
720
+ {
721
+ "$ref": "#/$defs/ForbiddenEncoded"
722
+ },
723
+ {
724
+ "$ref": "#/$defs/ApprovalRequiredEncoded"
725
+ },
726
+ {
727
+ "$ref": "#/$defs/ConsentRequiredEncoded"
728
+ },
729
+ {
730
+ "$ref": "#/$defs/IdempotencyConflictEncoded"
731
+ },
732
+ {
733
+ "$ref": "#/$defs/InvalidInputEncoded"
734
+ },
735
+ {
736
+ "$ref": "#/$defs/UnknownActionEncoded"
737
+ },
738
+ {
739
+ "$ref": "#/$defs/ActionFailedEncoded"
740
+ },
741
+ {
742
+ "$ref": "#/$defs/ClientOutdatedEncoded"
743
+ }
744
+ ],
745
+ "$defs": {
746
+ "UnauthenticatedEncoded": {
747
+ "type": "object",
748
+ "properties": {
749
+ "_tag": {
750
+ "type": "string",
751
+ "enum": [
752
+ "Unauthenticated"
753
+ ]
754
+ },
755
+ "message": {
756
+ "type": "string"
757
+ }
758
+ },
759
+ "required": [
760
+ "_tag",
761
+ "message"
762
+ ],
763
+ "additionalProperties": true
764
+ },
765
+ "ForbiddenEncoded": {
766
+ "type": "object",
767
+ "properties": {
768
+ "_tag": {
769
+ "type": "string",
770
+ "enum": [
771
+ "Forbidden"
772
+ ]
773
+ },
774
+ "message": {
775
+ "type": "string"
776
+ },
777
+ "action": {
778
+ "type": "string"
779
+ }
780
+ },
781
+ "required": [
782
+ "_tag",
783
+ "message",
784
+ "action"
785
+ ],
786
+ "additionalProperties": true
787
+ },
788
+ "ApprovalRequiredEncoded": {
789
+ "type": "object",
790
+ "properties": {
791
+ "_tag": {
792
+ "type": "string",
793
+ "enum": [
794
+ "ApprovalRequired"
795
+ ]
796
+ },
797
+ "message": {
798
+ "type": "string"
799
+ },
800
+ "action": {
801
+ "type": "string"
802
+ },
803
+ "approvalId": {
804
+ "type": "string"
805
+ }
806
+ },
807
+ "required": [
808
+ "_tag",
809
+ "message",
810
+ "action",
811
+ "approvalId"
812
+ ],
813
+ "additionalProperties": true
814
+ },
815
+ "ConsentRequiredEncoded": {
816
+ "type": "object",
817
+ "properties": {
818
+ "_tag": {
819
+ "type": "string",
820
+ "enum": [
821
+ "ConsentRequired"
822
+ ]
823
+ },
824
+ "message": {
825
+ "type": "string"
826
+ },
827
+ "action": {
828
+ "type": "string"
829
+ },
830
+ "consentId": {
831
+ "type": "string"
832
+ }
833
+ },
834
+ "required": [
835
+ "_tag",
836
+ "message",
837
+ "action",
838
+ "consentId"
839
+ ],
840
+ "additionalProperties": true
841
+ },
842
+ "IdempotencyConflictEncoded": {
843
+ "type": "object",
844
+ "properties": {
845
+ "_tag": {
846
+ "type": "string",
847
+ "enum": [
848
+ "IdempotencyConflict"
849
+ ]
850
+ },
851
+ "message": {
852
+ "type": "string"
853
+ },
854
+ "key": {
855
+ "type": "string"
856
+ }
857
+ },
858
+ "required": [
859
+ "_tag",
860
+ "message",
861
+ "key"
862
+ ],
863
+ "additionalProperties": true
864
+ },
865
+ "InvalidInputEncoded": {
866
+ "type": "object",
867
+ "properties": {
868
+ "_tag": {
869
+ "type": "string",
870
+ "enum": [
871
+ "InvalidInput"
872
+ ]
873
+ },
874
+ "message": {
875
+ "type": "string"
876
+ }
877
+ },
878
+ "required": [
879
+ "_tag",
880
+ "message"
881
+ ],
882
+ "additionalProperties": true
883
+ },
884
+ "UnknownActionEncoded": {
885
+ "type": "object",
886
+ "properties": {
887
+ "_tag": {
888
+ "type": "string",
889
+ "enum": [
890
+ "UnknownAction"
891
+ ]
892
+ },
893
+ "message": {
894
+ "type": "string"
895
+ },
896
+ "action": {
897
+ "type": "string"
898
+ }
899
+ },
900
+ "required": [
901
+ "_tag",
902
+ "message",
903
+ "action"
904
+ ],
905
+ "additionalProperties": true
906
+ },
907
+ "ActionFailedEncoded": {
908
+ "type": "object",
909
+ "properties": {
910
+ "_tag": {
911
+ "type": "string",
912
+ "enum": [
913
+ "ActionFailed"
914
+ ]
915
+ },
916
+ "message": {
917
+ "type": "string"
918
+ },
919
+ "action": {
920
+ "type": "string"
921
+ },
922
+ "effect": {
923
+ "type": "string",
924
+ "enum": [
925
+ "none",
926
+ "unknown"
927
+ ]
928
+ }
929
+ },
930
+ "required": [
931
+ "_tag",
932
+ "message",
933
+ "action"
934
+ ],
935
+ "additionalProperties": true
936
+ },
937
+ "ClientOutdatedEncoded": {
938
+ "type": "object",
939
+ "properties": {
940
+ "_tag": {
941
+ "type": "string",
942
+ "enum": [
943
+ "ClientOutdated"
944
+ ]
945
+ },
946
+ "message": {
947
+ "type": "string"
948
+ },
949
+ "action": {
950
+ "type": "string"
951
+ },
952
+ "clientVersion": {
953
+ "type": "string"
954
+ },
955
+ "minClientVersion": {
956
+ "type": "string"
957
+ }
958
+ },
959
+ "required": [
960
+ "_tag",
961
+ "message",
962
+ "action",
963
+ "clientVersion",
964
+ "minClientVersion"
965
+ ],
966
+ "additionalProperties": true
967
+ }
968
+ }
969
+ }
970
+ },
971
+ "get": {
972
+ "description": "A request with its status and, once it ran, the execution's outcome.",
973
+ "input": {
974
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
975
+ "type": "object",
976
+ "properties": {
977
+ "id": {
978
+ "type": "string"
979
+ }
980
+ },
981
+ "required": [
982
+ "id"
983
+ ],
984
+ "additionalProperties": true
985
+ },
986
+ "output": {
987
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
988
+ "type": "object",
989
+ "properties": {
990
+ "id": {
991
+ "type": "string"
992
+ },
993
+ "orgId": {
994
+ "type": "string"
995
+ },
996
+ "requesterId": {
997
+ "type": "string"
998
+ },
999
+ "action": {
1000
+ "type": "string"
1001
+ },
1002
+ "title": {
1003
+ "type": "string"
1004
+ },
1005
+ "input": {},
1006
+ "inputHash": {
1007
+ "type": "string"
1008
+ },
1009
+ "rule": {
1010
+ "type": "string"
1011
+ },
1012
+ "approvers": {
1013
+ "anyOf": [
1014
+ {
1015
+ "type": "object",
1016
+ "properties": {
1017
+ "permission": {
1018
+ "type": "string"
1019
+ }
1020
+ },
1021
+ "required": [
1022
+ "permission"
1023
+ ],
1024
+ "additionalProperties": true
1025
+ },
1026
+ {
1027
+ "type": "object",
1028
+ "properties": {
1029
+ "role": {
1030
+ "type": "string"
1031
+ }
1032
+ },
1033
+ "required": [
1034
+ "role"
1035
+ ],
1036
+ "additionalProperties": true
1037
+ },
1038
+ {
1039
+ "type": "object",
1040
+ "properties": {
1041
+ "group": {
1042
+ "type": "string"
1043
+ }
1044
+ },
1045
+ "required": [
1046
+ "group"
1047
+ ],
1048
+ "additionalProperties": true
1049
+ }
1050
+ ]
1051
+ },
1052
+ "quorum": {
1053
+ "type": "integer",
1054
+ "minimum": -9007199254740991,
1055
+ "maximum": 9007199254740991
1056
+ },
1057
+ "allowSelfApproval": {
1058
+ "type": "boolean"
1059
+ },
1060
+ "status": {
1061
+ "type": "string",
1062
+ "enum": [
1063
+ "pending",
1064
+ "approved",
1065
+ "rejected",
1066
+ "expired",
1067
+ "withdrawn"
1068
+ ]
1069
+ },
1070
+ "approvals": {
1071
+ "type": "integer",
1072
+ "minimum": -9007199254740991,
1073
+ "maximum": 9007199254740991
1074
+ },
1075
+ "expiresAt": {
1076
+ "anyOf": [
1077
+ {
1078
+ "type": "string"
1079
+ },
1080
+ {
1081
+ "type": "null"
1082
+ }
1083
+ ]
1084
+ },
1085
+ "createdAt": {
1086
+ "type": "string"
1087
+ },
1088
+ "decidedAt": {
1089
+ "anyOf": [
1090
+ {
1091
+ "type": "string"
1092
+ },
1093
+ {
1094
+ "type": "null"
1095
+ }
1096
+ ]
1097
+ },
1098
+ "execution": {
1099
+ "anyOf": [
1100
+ {
1101
+ "type": "object",
1102
+ "properties": {
1103
+ "state": {
1104
+ "type": "string",
1105
+ "enum": [
1106
+ "succeeded",
1107
+ "refused",
1108
+ "failed"
1109
+ ]
1110
+ },
1111
+ "invocationId": {
1112
+ "anyOf": [
1113
+ {
1114
+ "type": "string"
1115
+ },
1116
+ {
1117
+ "type": "null"
1118
+ }
1119
+ ]
1120
+ },
1121
+ "errorTag": {
1122
+ "anyOf": [
1123
+ {
1124
+ "type": "string"
1125
+ },
1126
+ {
1127
+ "type": "null"
1128
+ }
1129
+ ]
1130
+ },
1131
+ "effect": {
1132
+ "type": "string",
1133
+ "enum": [
1134
+ "none",
1135
+ "unknown"
1136
+ ]
1137
+ },
1138
+ "result": {
1139
+ "anyOf": [
1140
+ {},
1141
+ {
1142
+ "type": "null"
1143
+ }
1144
+ ]
1145
+ },
1146
+ "at": {
1147
+ "type": "string"
1148
+ }
1149
+ },
1150
+ "required": [
1151
+ "state",
1152
+ "invocationId",
1153
+ "errorTag",
1154
+ "result",
1155
+ "at"
1156
+ ],
1157
+ "additionalProperties": true
1158
+ },
1159
+ {
1160
+ "type": "null"
1161
+ }
1162
+ ]
1163
+ }
1164
+ },
1165
+ "required": [
1166
+ "id",
1167
+ "orgId",
1168
+ "requesterId",
1169
+ "action",
1170
+ "title",
1171
+ "input",
1172
+ "inputHash",
1173
+ "rule",
1174
+ "approvers",
1175
+ "quorum",
1176
+ "allowSelfApproval",
1177
+ "status",
1178
+ "approvals",
1179
+ "expiresAt",
1180
+ "createdAt",
1181
+ "decidedAt",
1182
+ "execution"
1183
+ ],
1184
+ "additionalProperties": true
1185
+ },
1186
+ "errors": {
1187
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1188
+ "$ref": "#/$defs/UnknownApprovalEncoded",
1189
+ "$defs": {
1190
+ "UnknownApprovalEncoded": {
1191
+ "type": "object",
1192
+ "properties": {
1193
+ "_tag": {
1194
+ "type": "string",
1195
+ "enum": [
1196
+ "UnknownApproval"
1197
+ ]
1198
+ },
1199
+ "approvalId": {
1200
+ "type": "string"
1201
+ }
1202
+ },
1203
+ "required": [
1204
+ "_tag",
1205
+ "approvalId"
1206
+ ],
1207
+ "additionalProperties": true
1208
+ }
1209
+ }
1210
+ }
1211
+ },
1212
+ "propose": {
1213
+ "description": "Action proposals.create: propose grouped edits, each a call of an action with its input (checked against the action's input schema), for others to review. A creation key gives back the proposal it first made.",
1214
+ "input": {
1215
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1216
+ "type": "object",
1217
+ "properties": {
1218
+ "summary": {
1219
+ "type": "string",
1220
+ "minLength": 1,
1221
+ "maxLength": 500
1222
+ },
1223
+ "items": {
1224
+ "type": "array",
1225
+ "items": {
1226
+ "type": "object",
1227
+ "properties": {
1228
+ "summary": {
1229
+ "type": "string",
1230
+ "minLength": 1,
1231
+ "maxLength": 500
1232
+ },
1233
+ "action": {
1234
+ "type": "string"
1235
+ },
1236
+ "input": {}
1237
+ },
1238
+ "required": [
1239
+ "summary",
1240
+ "action",
1241
+ "input"
1242
+ ],
1243
+ "additionalProperties": true
1244
+ },
1245
+ "minItems": 1,
1246
+ "maxItems": 100
1247
+ },
1248
+ "creationKey": {
1249
+ "type": "string",
1250
+ "minLength": 1,
1251
+ "maxLength": 200
1252
+ }
1253
+ },
1254
+ "required": [
1255
+ "summary",
1256
+ "items"
1257
+ ],
1258
+ "additionalProperties": true
1259
+ },
1260
+ "output": {
1261
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1262
+ "type": "object",
1263
+ "properties": {
1264
+ "id": {
1265
+ "type": "string"
1266
+ },
1267
+ "authorId": {
1268
+ "type": "string"
1269
+ },
1270
+ "summary": {
1271
+ "type": "string"
1272
+ },
1273
+ "status": {
1274
+ "type": "string",
1275
+ "enum": [
1276
+ "open",
1277
+ "withdrawn"
1278
+ ]
1279
+ },
1280
+ "items": {
1281
+ "type": "array",
1282
+ "items": {
1283
+ "type": "object",
1284
+ "properties": {
1285
+ "id": {
1286
+ "type": "string"
1287
+ },
1288
+ "ordinal": {
1289
+ "anyOf": [
1290
+ {
1291
+ "type": "number"
1292
+ },
1293
+ {
1294
+ "type": "string",
1295
+ "enum": [
1296
+ "Infinity",
1297
+ "-Infinity",
1298
+ "NaN"
1299
+ ]
1300
+ }
1301
+ ]
1302
+ },
1303
+ "summary": {
1304
+ "type": "string"
1305
+ },
1306
+ "action": {
1307
+ "type": "string"
1308
+ },
1309
+ "input": {},
1310
+ "revision": {
1311
+ "anyOf": [
1312
+ {
1313
+ "type": "number"
1314
+ },
1315
+ {
1316
+ "type": "string",
1317
+ "enum": [
1318
+ "Infinity",
1319
+ "-Infinity",
1320
+ "NaN"
1321
+ ]
1322
+ }
1323
+ ]
1324
+ },
1325
+ "status": {
1326
+ "type": "string",
1327
+ "enum": [
1328
+ "pending",
1329
+ "accepted",
1330
+ "rejected",
1331
+ "applied",
1332
+ "withdrawn"
1333
+ ]
1334
+ },
1335
+ "decidedBy": {
1336
+ "anyOf": [
1337
+ {
1338
+ "type": "string"
1339
+ },
1340
+ {
1341
+ "type": "null"
1342
+ }
1343
+ ]
1344
+ },
1345
+ "appliedInvocation": {
1346
+ "anyOf": [
1347
+ {
1348
+ "type": "string"
1349
+ },
1350
+ {
1351
+ "type": "null"
1352
+ }
1353
+ ]
1354
+ },
1355
+ "applyKey": {
1356
+ "type": "string"
1357
+ }
1358
+ },
1359
+ "required": [
1360
+ "id",
1361
+ "ordinal",
1362
+ "summary",
1363
+ "action",
1364
+ "input",
1365
+ "revision",
1366
+ "status",
1367
+ "decidedBy",
1368
+ "appliedInvocation",
1369
+ "applyKey"
1370
+ ],
1371
+ "additionalProperties": true
1372
+ }
1373
+ }
1374
+ },
1375
+ "required": [
1376
+ "id",
1377
+ "authorId",
1378
+ "summary",
1379
+ "status",
1380
+ "items"
1381
+ ],
1382
+ "additionalProperties": true
1383
+ },
1384
+ "errors": {
1385
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1386
+ "anyOf": [
1387
+ {
1388
+ "$ref": "#/$defs/UnauthenticatedEncoded"
1389
+ },
1390
+ {
1391
+ "$ref": "#/$defs/ForbiddenEncoded"
1392
+ },
1393
+ {
1394
+ "$ref": "#/$defs/ApprovalRequiredEncoded"
1395
+ },
1396
+ {
1397
+ "$ref": "#/$defs/ConsentRequiredEncoded"
1398
+ },
1399
+ {
1400
+ "$ref": "#/$defs/IdempotencyConflictEncoded"
1401
+ },
1402
+ {
1403
+ "$ref": "#/$defs/InvalidInputEncoded"
1404
+ },
1405
+ {
1406
+ "$ref": "#/$defs/UnknownActionEncoded"
1407
+ },
1408
+ {
1409
+ "$ref": "#/$defs/ActionFailedEncoded"
1410
+ },
1411
+ {
1412
+ "$ref": "#/$defs/ClientOutdatedEncoded"
1413
+ }
1414
+ ],
1415
+ "$defs": {
1416
+ "UnauthenticatedEncoded": {
1417
+ "type": "object",
1418
+ "properties": {
1419
+ "_tag": {
1420
+ "type": "string",
1421
+ "enum": [
1422
+ "Unauthenticated"
1423
+ ]
1424
+ },
1425
+ "message": {
1426
+ "type": "string"
1427
+ }
1428
+ },
1429
+ "required": [
1430
+ "_tag",
1431
+ "message"
1432
+ ],
1433
+ "additionalProperties": true
1434
+ },
1435
+ "ForbiddenEncoded": {
1436
+ "type": "object",
1437
+ "properties": {
1438
+ "_tag": {
1439
+ "type": "string",
1440
+ "enum": [
1441
+ "Forbidden"
1442
+ ]
1443
+ },
1444
+ "message": {
1445
+ "type": "string"
1446
+ },
1447
+ "action": {
1448
+ "type": "string"
1449
+ }
1450
+ },
1451
+ "required": [
1452
+ "_tag",
1453
+ "message",
1454
+ "action"
1455
+ ],
1456
+ "additionalProperties": true
1457
+ },
1458
+ "ApprovalRequiredEncoded": {
1459
+ "type": "object",
1460
+ "properties": {
1461
+ "_tag": {
1462
+ "type": "string",
1463
+ "enum": [
1464
+ "ApprovalRequired"
1465
+ ]
1466
+ },
1467
+ "message": {
1468
+ "type": "string"
1469
+ },
1470
+ "action": {
1471
+ "type": "string"
1472
+ },
1473
+ "approvalId": {
1474
+ "type": "string"
1475
+ }
1476
+ },
1477
+ "required": [
1478
+ "_tag",
1479
+ "message",
1480
+ "action",
1481
+ "approvalId"
1482
+ ],
1483
+ "additionalProperties": true
1484
+ },
1485
+ "ConsentRequiredEncoded": {
1486
+ "type": "object",
1487
+ "properties": {
1488
+ "_tag": {
1489
+ "type": "string",
1490
+ "enum": [
1491
+ "ConsentRequired"
1492
+ ]
1493
+ },
1494
+ "message": {
1495
+ "type": "string"
1496
+ },
1497
+ "action": {
1498
+ "type": "string"
1499
+ },
1500
+ "consentId": {
1501
+ "type": "string"
1502
+ }
1503
+ },
1504
+ "required": [
1505
+ "_tag",
1506
+ "message",
1507
+ "action",
1508
+ "consentId"
1509
+ ],
1510
+ "additionalProperties": true
1511
+ },
1512
+ "IdempotencyConflictEncoded": {
1513
+ "type": "object",
1514
+ "properties": {
1515
+ "_tag": {
1516
+ "type": "string",
1517
+ "enum": [
1518
+ "IdempotencyConflict"
1519
+ ]
1520
+ },
1521
+ "message": {
1522
+ "type": "string"
1523
+ },
1524
+ "key": {
1525
+ "type": "string"
1526
+ }
1527
+ },
1528
+ "required": [
1529
+ "_tag",
1530
+ "message",
1531
+ "key"
1532
+ ],
1533
+ "additionalProperties": true
1534
+ },
1535
+ "InvalidInputEncoded": {
1536
+ "type": "object",
1537
+ "properties": {
1538
+ "_tag": {
1539
+ "type": "string",
1540
+ "enum": [
1541
+ "InvalidInput"
1542
+ ]
1543
+ },
1544
+ "message": {
1545
+ "type": "string"
1546
+ }
1547
+ },
1548
+ "required": [
1549
+ "_tag",
1550
+ "message"
1551
+ ],
1552
+ "additionalProperties": true
1553
+ },
1554
+ "UnknownActionEncoded": {
1555
+ "type": "object",
1556
+ "properties": {
1557
+ "_tag": {
1558
+ "type": "string",
1559
+ "enum": [
1560
+ "UnknownAction"
1561
+ ]
1562
+ },
1563
+ "message": {
1564
+ "type": "string"
1565
+ },
1566
+ "action": {
1567
+ "type": "string"
1568
+ }
1569
+ },
1570
+ "required": [
1571
+ "_tag",
1572
+ "message",
1573
+ "action"
1574
+ ],
1575
+ "additionalProperties": true
1576
+ },
1577
+ "ActionFailedEncoded": {
1578
+ "type": "object",
1579
+ "properties": {
1580
+ "_tag": {
1581
+ "type": "string",
1582
+ "enum": [
1583
+ "ActionFailed"
1584
+ ]
1585
+ },
1586
+ "message": {
1587
+ "type": "string"
1588
+ },
1589
+ "action": {
1590
+ "type": "string"
1591
+ },
1592
+ "effect": {
1593
+ "type": "string",
1594
+ "enum": [
1595
+ "none",
1596
+ "unknown"
1597
+ ]
1598
+ }
1599
+ },
1600
+ "required": [
1601
+ "_tag",
1602
+ "message",
1603
+ "action"
1604
+ ],
1605
+ "additionalProperties": true
1606
+ },
1607
+ "ClientOutdatedEncoded": {
1608
+ "type": "object",
1609
+ "properties": {
1610
+ "_tag": {
1611
+ "type": "string",
1612
+ "enum": [
1613
+ "ClientOutdated"
1614
+ ]
1615
+ },
1616
+ "message": {
1617
+ "type": "string"
1618
+ },
1619
+ "action": {
1620
+ "type": "string"
1621
+ },
1622
+ "clientVersion": {
1623
+ "type": "string"
1624
+ },
1625
+ "minClientVersion": {
1626
+ "type": "string"
1627
+ }
1628
+ },
1629
+ "required": [
1630
+ "_tag",
1631
+ "message",
1632
+ "action",
1633
+ "clientVersion",
1634
+ "minClientVersion"
1635
+ ],
1636
+ "additionalProperties": true
1637
+ }
1638
+ }
1639
+ }
1640
+ },
1641
+ "decideProposal": {
1642
+ "description": "Action proposals.decide: accept or reject an exact observed set of a proposal's items (each with the revision the decider saw), all or none: an item that is no longer pending, or was revised since, refuses the whole decision. A person decides; an agent cannot.",
1643
+ "input": {
1644
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1645
+ "type": "object",
1646
+ "properties": {
1647
+ "proposal": {
1648
+ "type": "string"
1649
+ },
1650
+ "decisions": {
1651
+ "type": "array",
1652
+ "items": {
1653
+ "type": "object",
1654
+ "properties": {
1655
+ "item": {
1656
+ "type": "string"
1657
+ },
1658
+ "decision": {
1659
+ "type": "string",
1660
+ "enum": [
1661
+ "accept",
1662
+ "reject"
1663
+ ]
1664
+ },
1665
+ "observedRevision": {
1666
+ "anyOf": [
1667
+ {
1668
+ "type": "number"
1669
+ },
1670
+ {
1671
+ "type": "string",
1672
+ "enum": [
1673
+ "Infinity",
1674
+ "-Infinity",
1675
+ "NaN"
1676
+ ]
1677
+ }
1678
+ ]
1679
+ }
1680
+ },
1681
+ "required": [
1682
+ "item",
1683
+ "decision",
1684
+ "observedRevision"
1685
+ ],
1686
+ "additionalProperties": true
1687
+ },
1688
+ "minItems": 1
1689
+ }
1690
+ },
1691
+ "required": [
1692
+ "proposal",
1693
+ "decisions"
1694
+ ],
1695
+ "additionalProperties": true
1696
+ },
1697
+ "output": {
1698
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1699
+ "type": "object",
1700
+ "properties": {
1701
+ "id": {
1702
+ "type": "string"
1703
+ },
1704
+ "authorId": {
1705
+ "type": "string"
1706
+ },
1707
+ "summary": {
1708
+ "type": "string"
1709
+ },
1710
+ "status": {
1711
+ "type": "string",
1712
+ "enum": [
1713
+ "open",
1714
+ "withdrawn"
1715
+ ]
1716
+ },
1717
+ "items": {
1718
+ "type": "array",
1719
+ "items": {
1720
+ "type": "object",
1721
+ "properties": {
1722
+ "id": {
1723
+ "type": "string"
1724
+ },
1725
+ "ordinal": {
1726
+ "anyOf": [
1727
+ {
1728
+ "type": "number"
1729
+ },
1730
+ {
1731
+ "type": "string",
1732
+ "enum": [
1733
+ "Infinity",
1734
+ "-Infinity",
1735
+ "NaN"
1736
+ ]
1737
+ }
1738
+ ]
1739
+ },
1740
+ "summary": {
1741
+ "type": "string"
1742
+ },
1743
+ "action": {
1744
+ "type": "string"
1745
+ },
1746
+ "input": {},
1747
+ "revision": {
1748
+ "anyOf": [
1749
+ {
1750
+ "type": "number"
1751
+ },
1752
+ {
1753
+ "type": "string",
1754
+ "enum": [
1755
+ "Infinity",
1756
+ "-Infinity",
1757
+ "NaN"
1758
+ ]
1759
+ }
1760
+ ]
1761
+ },
1762
+ "status": {
1763
+ "type": "string",
1764
+ "enum": [
1765
+ "pending",
1766
+ "accepted",
1767
+ "rejected",
1768
+ "applied",
1769
+ "withdrawn"
1770
+ ]
1771
+ },
1772
+ "decidedBy": {
1773
+ "anyOf": [
1774
+ {
1775
+ "type": "string"
1776
+ },
1777
+ {
1778
+ "type": "null"
1779
+ }
1780
+ ]
1781
+ },
1782
+ "appliedInvocation": {
1783
+ "anyOf": [
1784
+ {
1785
+ "type": "string"
1786
+ },
1787
+ {
1788
+ "type": "null"
1789
+ }
1790
+ ]
1791
+ },
1792
+ "applyKey": {
1793
+ "type": "string"
1794
+ }
1795
+ },
1796
+ "required": [
1797
+ "id",
1798
+ "ordinal",
1799
+ "summary",
1800
+ "action",
1801
+ "input",
1802
+ "revision",
1803
+ "status",
1804
+ "decidedBy",
1805
+ "appliedInvocation",
1806
+ "applyKey"
1807
+ ],
1808
+ "additionalProperties": true
1809
+ }
1810
+ }
1811
+ },
1812
+ "required": [
1813
+ "id",
1814
+ "authorId",
1815
+ "summary",
1816
+ "status",
1817
+ "items"
1818
+ ],
1819
+ "additionalProperties": true
1820
+ },
1821
+ "errors": {
1822
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1823
+ "anyOf": [
1824
+ {
1825
+ "$ref": "#/$defs/UnauthenticatedEncoded"
1826
+ },
1827
+ {
1828
+ "$ref": "#/$defs/ForbiddenEncoded"
1829
+ },
1830
+ {
1831
+ "$ref": "#/$defs/ApprovalRequiredEncoded"
1832
+ },
1833
+ {
1834
+ "$ref": "#/$defs/ConsentRequiredEncoded"
1835
+ },
1836
+ {
1837
+ "$ref": "#/$defs/IdempotencyConflictEncoded"
1838
+ },
1839
+ {
1840
+ "$ref": "#/$defs/InvalidInputEncoded"
1841
+ },
1842
+ {
1843
+ "$ref": "#/$defs/UnknownActionEncoded"
1844
+ },
1845
+ {
1846
+ "$ref": "#/$defs/ActionFailedEncoded"
1847
+ },
1848
+ {
1849
+ "$ref": "#/$defs/ClientOutdatedEncoded"
1850
+ }
1851
+ ],
1852
+ "$defs": {
1853
+ "UnauthenticatedEncoded": {
1854
+ "type": "object",
1855
+ "properties": {
1856
+ "_tag": {
1857
+ "type": "string",
1858
+ "enum": [
1859
+ "Unauthenticated"
1860
+ ]
1861
+ },
1862
+ "message": {
1863
+ "type": "string"
1864
+ }
1865
+ },
1866
+ "required": [
1867
+ "_tag",
1868
+ "message"
1869
+ ],
1870
+ "additionalProperties": true
1871
+ },
1872
+ "ForbiddenEncoded": {
1873
+ "type": "object",
1874
+ "properties": {
1875
+ "_tag": {
1876
+ "type": "string",
1877
+ "enum": [
1878
+ "Forbidden"
1879
+ ]
1880
+ },
1881
+ "message": {
1882
+ "type": "string"
1883
+ },
1884
+ "action": {
1885
+ "type": "string"
1886
+ }
1887
+ },
1888
+ "required": [
1889
+ "_tag",
1890
+ "message",
1891
+ "action"
1892
+ ],
1893
+ "additionalProperties": true
1894
+ },
1895
+ "ApprovalRequiredEncoded": {
1896
+ "type": "object",
1897
+ "properties": {
1898
+ "_tag": {
1899
+ "type": "string",
1900
+ "enum": [
1901
+ "ApprovalRequired"
1902
+ ]
1903
+ },
1904
+ "message": {
1905
+ "type": "string"
1906
+ },
1907
+ "action": {
1908
+ "type": "string"
1909
+ },
1910
+ "approvalId": {
1911
+ "type": "string"
1912
+ }
1913
+ },
1914
+ "required": [
1915
+ "_tag",
1916
+ "message",
1917
+ "action",
1918
+ "approvalId"
1919
+ ],
1920
+ "additionalProperties": true
1921
+ },
1922
+ "ConsentRequiredEncoded": {
1923
+ "type": "object",
1924
+ "properties": {
1925
+ "_tag": {
1926
+ "type": "string",
1927
+ "enum": [
1928
+ "ConsentRequired"
1929
+ ]
1930
+ },
1931
+ "message": {
1932
+ "type": "string"
1933
+ },
1934
+ "action": {
1935
+ "type": "string"
1936
+ },
1937
+ "consentId": {
1938
+ "type": "string"
1939
+ }
1940
+ },
1941
+ "required": [
1942
+ "_tag",
1943
+ "message",
1944
+ "action",
1945
+ "consentId"
1946
+ ],
1947
+ "additionalProperties": true
1948
+ },
1949
+ "IdempotencyConflictEncoded": {
1950
+ "type": "object",
1951
+ "properties": {
1952
+ "_tag": {
1953
+ "type": "string",
1954
+ "enum": [
1955
+ "IdempotencyConflict"
1956
+ ]
1957
+ },
1958
+ "message": {
1959
+ "type": "string"
1960
+ },
1961
+ "key": {
1962
+ "type": "string"
1963
+ }
1964
+ },
1965
+ "required": [
1966
+ "_tag",
1967
+ "message",
1968
+ "key"
1969
+ ],
1970
+ "additionalProperties": true
1971
+ },
1972
+ "InvalidInputEncoded": {
1973
+ "type": "object",
1974
+ "properties": {
1975
+ "_tag": {
1976
+ "type": "string",
1977
+ "enum": [
1978
+ "InvalidInput"
1979
+ ]
1980
+ },
1981
+ "message": {
1982
+ "type": "string"
1983
+ }
1984
+ },
1985
+ "required": [
1986
+ "_tag",
1987
+ "message"
1988
+ ],
1989
+ "additionalProperties": true
1990
+ },
1991
+ "UnknownActionEncoded": {
1992
+ "type": "object",
1993
+ "properties": {
1994
+ "_tag": {
1995
+ "type": "string",
1996
+ "enum": [
1997
+ "UnknownAction"
1998
+ ]
1999
+ },
2000
+ "message": {
2001
+ "type": "string"
2002
+ },
2003
+ "action": {
2004
+ "type": "string"
2005
+ }
2006
+ },
2007
+ "required": [
2008
+ "_tag",
2009
+ "message",
2010
+ "action"
2011
+ ],
2012
+ "additionalProperties": true
2013
+ },
2014
+ "ActionFailedEncoded": {
2015
+ "type": "object",
2016
+ "properties": {
2017
+ "_tag": {
2018
+ "type": "string",
2019
+ "enum": [
2020
+ "ActionFailed"
2021
+ ]
2022
+ },
2023
+ "message": {
2024
+ "type": "string"
2025
+ },
2026
+ "action": {
2027
+ "type": "string"
2028
+ },
2029
+ "effect": {
2030
+ "type": "string",
2031
+ "enum": [
2032
+ "none",
2033
+ "unknown"
2034
+ ]
2035
+ }
2036
+ },
2037
+ "required": [
2038
+ "_tag",
2039
+ "message",
2040
+ "action"
2041
+ ],
2042
+ "additionalProperties": true
2043
+ },
2044
+ "ClientOutdatedEncoded": {
2045
+ "type": "object",
2046
+ "properties": {
2047
+ "_tag": {
2048
+ "type": "string",
2049
+ "enum": [
2050
+ "ClientOutdated"
2051
+ ]
2052
+ },
2053
+ "message": {
2054
+ "type": "string"
2055
+ },
2056
+ "action": {
2057
+ "type": "string"
2058
+ },
2059
+ "clientVersion": {
2060
+ "type": "string"
2061
+ },
2062
+ "minClientVersion": {
2063
+ "type": "string"
2064
+ }
2065
+ },
2066
+ "required": [
2067
+ "_tag",
2068
+ "message",
2069
+ "action",
2070
+ "clientVersion",
2071
+ "minClientVersion"
2072
+ ],
2073
+ "additionalProperties": true
2074
+ }
2075
+ }
2076
+ }
2077
+ },
2078
+ "applied": {
2079
+ "description": "Action proposals.applied: record an accepted item applied, once its decider's call of the proposed action with its input, under the item's key, has committed (the kernel finds its receipt); otherwise refused.",
2080
+ "input": {
2081
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2082
+ "type": "object",
2083
+ "properties": {
2084
+ "item": {
2085
+ "type": "string"
2086
+ }
2087
+ },
2088
+ "required": [
2089
+ "item"
2090
+ ],
2091
+ "additionalProperties": true
2092
+ },
2093
+ "output": {
2094
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2095
+ "type": "object",
2096
+ "properties": {
2097
+ "id": {
2098
+ "type": "string"
2099
+ },
2100
+ "authorId": {
2101
+ "type": "string"
2102
+ },
2103
+ "summary": {
2104
+ "type": "string"
2105
+ },
2106
+ "status": {
2107
+ "type": "string",
2108
+ "enum": [
2109
+ "open",
2110
+ "withdrawn"
2111
+ ]
2112
+ },
2113
+ "items": {
2114
+ "type": "array",
2115
+ "items": {
2116
+ "type": "object",
2117
+ "properties": {
2118
+ "id": {
2119
+ "type": "string"
2120
+ },
2121
+ "ordinal": {
2122
+ "anyOf": [
2123
+ {
2124
+ "type": "number"
2125
+ },
2126
+ {
2127
+ "type": "string",
2128
+ "enum": [
2129
+ "Infinity",
2130
+ "-Infinity",
2131
+ "NaN"
2132
+ ]
2133
+ }
2134
+ ]
2135
+ },
2136
+ "summary": {
2137
+ "type": "string"
2138
+ },
2139
+ "action": {
2140
+ "type": "string"
2141
+ },
2142
+ "input": {},
2143
+ "revision": {
2144
+ "anyOf": [
2145
+ {
2146
+ "type": "number"
2147
+ },
2148
+ {
2149
+ "type": "string",
2150
+ "enum": [
2151
+ "Infinity",
2152
+ "-Infinity",
2153
+ "NaN"
2154
+ ]
2155
+ }
2156
+ ]
2157
+ },
2158
+ "status": {
2159
+ "type": "string",
2160
+ "enum": [
2161
+ "pending",
2162
+ "accepted",
2163
+ "rejected",
2164
+ "applied",
2165
+ "withdrawn"
2166
+ ]
2167
+ },
2168
+ "decidedBy": {
2169
+ "anyOf": [
2170
+ {
2171
+ "type": "string"
2172
+ },
2173
+ {
2174
+ "type": "null"
2175
+ }
2176
+ ]
2177
+ },
2178
+ "appliedInvocation": {
2179
+ "anyOf": [
2180
+ {
2181
+ "type": "string"
2182
+ },
2183
+ {
2184
+ "type": "null"
2185
+ }
2186
+ ]
2187
+ },
2188
+ "applyKey": {
2189
+ "type": "string"
2190
+ }
2191
+ },
2192
+ "required": [
2193
+ "id",
2194
+ "ordinal",
2195
+ "summary",
2196
+ "action",
2197
+ "input",
2198
+ "revision",
2199
+ "status",
2200
+ "decidedBy",
2201
+ "appliedInvocation",
2202
+ "applyKey"
2203
+ ],
2204
+ "additionalProperties": true
2205
+ }
2206
+ }
2207
+ },
2208
+ "required": [
2209
+ "id",
2210
+ "authorId",
2211
+ "summary",
2212
+ "status",
2213
+ "items"
2214
+ ],
2215
+ "additionalProperties": true
2216
+ },
2217
+ "errors": {
2218
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2219
+ "anyOf": [
2220
+ {
2221
+ "$ref": "#/$defs/UnauthenticatedEncoded"
2222
+ },
2223
+ {
2224
+ "$ref": "#/$defs/ForbiddenEncoded"
2225
+ },
2226
+ {
2227
+ "$ref": "#/$defs/ApprovalRequiredEncoded"
2228
+ },
2229
+ {
2230
+ "$ref": "#/$defs/ConsentRequiredEncoded"
2231
+ },
2232
+ {
2233
+ "$ref": "#/$defs/IdempotencyConflictEncoded"
2234
+ },
2235
+ {
2236
+ "$ref": "#/$defs/InvalidInputEncoded"
2237
+ },
2238
+ {
2239
+ "$ref": "#/$defs/UnknownActionEncoded"
2240
+ },
2241
+ {
2242
+ "$ref": "#/$defs/ActionFailedEncoded"
2243
+ },
2244
+ {
2245
+ "$ref": "#/$defs/ClientOutdatedEncoded"
2246
+ }
2247
+ ],
2248
+ "$defs": {
2249
+ "UnauthenticatedEncoded": {
2250
+ "type": "object",
2251
+ "properties": {
2252
+ "_tag": {
2253
+ "type": "string",
2254
+ "enum": [
2255
+ "Unauthenticated"
2256
+ ]
2257
+ },
2258
+ "message": {
2259
+ "type": "string"
2260
+ }
2261
+ },
2262
+ "required": [
2263
+ "_tag",
2264
+ "message"
2265
+ ],
2266
+ "additionalProperties": true
2267
+ },
2268
+ "ForbiddenEncoded": {
2269
+ "type": "object",
2270
+ "properties": {
2271
+ "_tag": {
2272
+ "type": "string",
2273
+ "enum": [
2274
+ "Forbidden"
2275
+ ]
2276
+ },
2277
+ "message": {
2278
+ "type": "string"
2279
+ },
2280
+ "action": {
2281
+ "type": "string"
2282
+ }
2283
+ },
2284
+ "required": [
2285
+ "_tag",
2286
+ "message",
2287
+ "action"
2288
+ ],
2289
+ "additionalProperties": true
2290
+ },
2291
+ "ApprovalRequiredEncoded": {
2292
+ "type": "object",
2293
+ "properties": {
2294
+ "_tag": {
2295
+ "type": "string",
2296
+ "enum": [
2297
+ "ApprovalRequired"
2298
+ ]
2299
+ },
2300
+ "message": {
2301
+ "type": "string"
2302
+ },
2303
+ "action": {
2304
+ "type": "string"
2305
+ },
2306
+ "approvalId": {
2307
+ "type": "string"
2308
+ }
2309
+ },
2310
+ "required": [
2311
+ "_tag",
2312
+ "message",
2313
+ "action",
2314
+ "approvalId"
2315
+ ],
2316
+ "additionalProperties": true
2317
+ },
2318
+ "ConsentRequiredEncoded": {
2319
+ "type": "object",
2320
+ "properties": {
2321
+ "_tag": {
2322
+ "type": "string",
2323
+ "enum": [
2324
+ "ConsentRequired"
2325
+ ]
2326
+ },
2327
+ "message": {
2328
+ "type": "string"
2329
+ },
2330
+ "action": {
2331
+ "type": "string"
2332
+ },
2333
+ "consentId": {
2334
+ "type": "string"
2335
+ }
2336
+ },
2337
+ "required": [
2338
+ "_tag",
2339
+ "message",
2340
+ "action",
2341
+ "consentId"
2342
+ ],
2343
+ "additionalProperties": true
2344
+ },
2345
+ "IdempotencyConflictEncoded": {
2346
+ "type": "object",
2347
+ "properties": {
2348
+ "_tag": {
2349
+ "type": "string",
2350
+ "enum": [
2351
+ "IdempotencyConflict"
2352
+ ]
2353
+ },
2354
+ "message": {
2355
+ "type": "string"
2356
+ },
2357
+ "key": {
2358
+ "type": "string"
2359
+ }
2360
+ },
2361
+ "required": [
2362
+ "_tag",
2363
+ "message",
2364
+ "key"
2365
+ ],
2366
+ "additionalProperties": true
2367
+ },
2368
+ "InvalidInputEncoded": {
2369
+ "type": "object",
2370
+ "properties": {
2371
+ "_tag": {
2372
+ "type": "string",
2373
+ "enum": [
2374
+ "InvalidInput"
2375
+ ]
2376
+ },
2377
+ "message": {
2378
+ "type": "string"
2379
+ }
2380
+ },
2381
+ "required": [
2382
+ "_tag",
2383
+ "message"
2384
+ ],
2385
+ "additionalProperties": true
2386
+ },
2387
+ "UnknownActionEncoded": {
2388
+ "type": "object",
2389
+ "properties": {
2390
+ "_tag": {
2391
+ "type": "string",
2392
+ "enum": [
2393
+ "UnknownAction"
2394
+ ]
2395
+ },
2396
+ "message": {
2397
+ "type": "string"
2398
+ },
2399
+ "action": {
2400
+ "type": "string"
2401
+ }
2402
+ },
2403
+ "required": [
2404
+ "_tag",
2405
+ "message",
2406
+ "action"
2407
+ ],
2408
+ "additionalProperties": true
2409
+ },
2410
+ "ActionFailedEncoded": {
2411
+ "type": "object",
2412
+ "properties": {
2413
+ "_tag": {
2414
+ "type": "string",
2415
+ "enum": [
2416
+ "ActionFailed"
2417
+ ]
2418
+ },
2419
+ "message": {
2420
+ "type": "string"
2421
+ },
2422
+ "action": {
2423
+ "type": "string"
2424
+ },
2425
+ "effect": {
2426
+ "type": "string",
2427
+ "enum": [
2428
+ "none",
2429
+ "unknown"
2430
+ ]
2431
+ }
2432
+ },
2433
+ "required": [
2434
+ "_tag",
2435
+ "message",
2436
+ "action"
2437
+ ],
2438
+ "additionalProperties": true
2439
+ },
2440
+ "ClientOutdatedEncoded": {
2441
+ "type": "object",
2442
+ "properties": {
2443
+ "_tag": {
2444
+ "type": "string",
2445
+ "enum": [
2446
+ "ClientOutdated"
2447
+ ]
2448
+ },
2449
+ "message": {
2450
+ "type": "string"
2451
+ },
2452
+ "action": {
2453
+ "type": "string"
2454
+ },
2455
+ "clientVersion": {
2456
+ "type": "string"
2457
+ },
2458
+ "minClientVersion": {
2459
+ "type": "string"
2460
+ }
2461
+ },
2462
+ "required": [
2463
+ "_tag",
2464
+ "message",
2465
+ "action",
2466
+ "clientVersion",
2467
+ "minClientVersion"
2468
+ ],
2469
+ "additionalProperties": true
2470
+ }
2471
+ }
2472
+ }
2473
+ }
2474
+ },
2475
+ "types": {
2476
+ "ApprovalRule": {
2477
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2478
+ "type": "object",
2479
+ "properties": {
2480
+ "description": {
2481
+ "type": "string"
2482
+ },
2483
+ "action": {
2484
+ "type": "string"
2485
+ },
2486
+ "when": {
2487
+ "type": "array",
2488
+ "items": {
2489
+ "type": "object",
2490
+ "properties": {
2491
+ "field": {
2492
+ "type": "string"
2493
+ },
2494
+ "op": {
2495
+ "type": "string",
2496
+ "enum": [
2497
+ "eq",
2498
+ "ne",
2499
+ "gt",
2500
+ "gte",
2501
+ "lt",
2502
+ "lte",
2503
+ "in",
2504
+ "exists"
2505
+ ]
2506
+ },
2507
+ "value": {}
2508
+ },
2509
+ "required": [
2510
+ "field",
2511
+ "op",
2512
+ "value"
2513
+ ],
2514
+ "additionalProperties": true
2515
+ }
2516
+ },
2517
+ "approvers": {
2518
+ "anyOf": [
2519
+ {
2520
+ "type": "object",
2521
+ "properties": {
2522
+ "permission": {
2523
+ "type": "string"
2524
+ }
2525
+ },
2526
+ "required": [
2527
+ "permission"
2528
+ ],
2529
+ "additionalProperties": true
2530
+ },
2531
+ {
2532
+ "type": "object",
2533
+ "properties": {
2534
+ "role": {
2535
+ "type": "string"
2536
+ }
2537
+ },
2538
+ "required": [
2539
+ "role"
2540
+ ],
2541
+ "additionalProperties": true
2542
+ },
2543
+ {
2544
+ "type": "object",
2545
+ "properties": {
2546
+ "group": {
2547
+ "type": "string"
2548
+ }
2549
+ },
2550
+ "required": [
2551
+ "group"
2552
+ ],
2553
+ "additionalProperties": true
2554
+ }
2555
+ ]
2556
+ },
2557
+ "quorum": {
2558
+ "type": "integer",
2559
+ "maximum": 9007199254740991,
2560
+ "exclusiveMinimum": 0
2561
+ },
2562
+ "allowSelfApproval": {
2563
+ "type": "boolean"
2564
+ },
2565
+ "expiresAfterMs": {
2566
+ "type": "integer",
2567
+ "maximum": 9007199254740991,
2568
+ "exclusiveMinimum": 0
2569
+ }
2570
+ },
2571
+ "required": [
2572
+ "description",
2573
+ "action",
2574
+ "approvers"
2575
+ ],
2576
+ "additionalProperties": true
2577
+ },
2578
+ "ApproverSpec": {
2579
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2580
+ "anyOf": [
2581
+ {
2582
+ "type": "object",
2583
+ "properties": {
2584
+ "permission": {
2585
+ "type": "string"
2586
+ }
2587
+ },
2588
+ "required": [
2589
+ "permission"
2590
+ ],
2591
+ "additionalProperties": true
2592
+ },
2593
+ {
2594
+ "type": "object",
2595
+ "properties": {
2596
+ "role": {
2597
+ "type": "string"
2598
+ }
2599
+ },
2600
+ "required": [
2601
+ "role"
2602
+ ],
2603
+ "additionalProperties": true
2604
+ },
2605
+ {
2606
+ "type": "object",
2607
+ "properties": {
2608
+ "group": {
2609
+ "type": "string"
2610
+ }
2611
+ },
2612
+ "required": [
2613
+ "group"
2614
+ ],
2615
+ "additionalProperties": true
2616
+ }
2617
+ ]
2618
+ },
2619
+ "ApprovalStatus": {
2620
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2621
+ "type": "string",
2622
+ "enum": [
2623
+ "pending",
2624
+ "approved",
2625
+ "rejected",
2626
+ "expired",
2627
+ "withdrawn"
2628
+ ]
2629
+ },
2630
+ "ApprovalRequest": {
2631
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2632
+ "type": "object",
2633
+ "properties": {
2634
+ "id": {
2635
+ "type": "string"
2636
+ },
2637
+ "orgId": {
2638
+ "type": "string"
2639
+ },
2640
+ "requesterId": {
2641
+ "type": "string"
2642
+ },
2643
+ "action": {
2644
+ "type": "string"
2645
+ },
2646
+ "title": {
2647
+ "type": "string"
2648
+ },
2649
+ "input": {},
2650
+ "inputHash": {
2651
+ "type": "string"
2652
+ },
2653
+ "rule": {
2654
+ "type": "string"
2655
+ },
2656
+ "approvers": {
2657
+ "anyOf": [
2658
+ {
2659
+ "type": "object",
2660
+ "properties": {
2661
+ "permission": {
2662
+ "type": "string"
2663
+ }
2664
+ },
2665
+ "required": [
2666
+ "permission"
2667
+ ],
2668
+ "additionalProperties": true
2669
+ },
2670
+ {
2671
+ "type": "object",
2672
+ "properties": {
2673
+ "role": {
2674
+ "type": "string"
2675
+ }
2676
+ },
2677
+ "required": [
2678
+ "role"
2679
+ ],
2680
+ "additionalProperties": true
2681
+ },
2682
+ {
2683
+ "type": "object",
2684
+ "properties": {
2685
+ "group": {
2686
+ "type": "string"
2687
+ }
2688
+ },
2689
+ "required": [
2690
+ "group"
2691
+ ],
2692
+ "additionalProperties": true
2693
+ }
2694
+ ]
2695
+ },
2696
+ "quorum": {
2697
+ "type": "integer",
2698
+ "minimum": -9007199254740991,
2699
+ "maximum": 9007199254740991
2700
+ },
2701
+ "allowSelfApproval": {
2702
+ "type": "boolean"
2703
+ },
2704
+ "status": {
2705
+ "type": "string",
2706
+ "enum": [
2707
+ "pending",
2708
+ "approved",
2709
+ "rejected",
2710
+ "expired",
2711
+ "withdrawn"
2712
+ ]
2713
+ },
2714
+ "approvals": {
2715
+ "type": "integer",
2716
+ "minimum": -9007199254740991,
2717
+ "maximum": 9007199254740991
2718
+ },
2719
+ "expiresAt": {
2720
+ "anyOf": [
2721
+ {
2722
+ "type": "string"
2723
+ },
2724
+ {
2725
+ "type": "null"
2726
+ }
2727
+ ]
2728
+ },
2729
+ "createdAt": {
2730
+ "type": "string"
2731
+ },
2732
+ "decidedAt": {
2733
+ "anyOf": [
2734
+ {
2735
+ "type": "string"
2736
+ },
2737
+ {
2738
+ "type": "null"
2739
+ }
2740
+ ]
2741
+ },
2742
+ "execution": {
2743
+ "anyOf": [
2744
+ {
2745
+ "type": "object",
2746
+ "properties": {
2747
+ "state": {
2748
+ "type": "string",
2749
+ "enum": [
2750
+ "succeeded",
2751
+ "refused",
2752
+ "failed"
2753
+ ]
2754
+ },
2755
+ "invocationId": {
2756
+ "anyOf": [
2757
+ {
2758
+ "type": "string"
2759
+ },
2760
+ {
2761
+ "type": "null"
2762
+ }
2763
+ ]
2764
+ },
2765
+ "errorTag": {
2766
+ "anyOf": [
2767
+ {
2768
+ "type": "string"
2769
+ },
2770
+ {
2771
+ "type": "null"
2772
+ }
2773
+ ]
2774
+ },
2775
+ "effect": {
2776
+ "type": "string",
2777
+ "enum": [
2778
+ "none",
2779
+ "unknown"
2780
+ ]
2781
+ },
2782
+ "result": {
2783
+ "anyOf": [
2784
+ {},
2785
+ {
2786
+ "type": "null"
2787
+ }
2788
+ ]
2789
+ },
2790
+ "at": {
2791
+ "type": "string"
2792
+ }
2793
+ },
2794
+ "required": [
2795
+ "state",
2796
+ "invocationId",
2797
+ "errorTag",
2798
+ "result",
2799
+ "at"
2800
+ ],
2801
+ "additionalProperties": true
2802
+ },
2803
+ {
2804
+ "type": "null"
2805
+ }
2806
+ ]
2807
+ }
2808
+ },
2809
+ "required": [
2810
+ "id",
2811
+ "orgId",
2812
+ "requesterId",
2813
+ "action",
2814
+ "title",
2815
+ "input",
2816
+ "inputHash",
2817
+ "rule",
2818
+ "approvers",
2819
+ "quorum",
2820
+ "allowSelfApproval",
2821
+ "status",
2822
+ "approvals",
2823
+ "expiresAt",
2824
+ "createdAt",
2825
+ "decidedAt",
2826
+ "execution"
2827
+ ],
2828
+ "additionalProperties": true
2829
+ },
2830
+ "ApprovalExecution": {
2831
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2832
+ "type": "object",
2833
+ "properties": {
2834
+ "state": {
2835
+ "type": "string",
2836
+ "enum": [
2837
+ "succeeded",
2838
+ "refused",
2839
+ "failed"
2840
+ ]
2841
+ },
2842
+ "invocationId": {
2843
+ "anyOf": [
2844
+ {
2845
+ "type": "string"
2846
+ },
2847
+ {
2848
+ "type": "null"
2849
+ }
2850
+ ]
2851
+ },
2852
+ "errorTag": {
2853
+ "anyOf": [
2854
+ {
2855
+ "type": "string"
2856
+ },
2857
+ {
2858
+ "type": "null"
2859
+ }
2860
+ ]
2861
+ },
2862
+ "effect": {
2863
+ "type": "string",
2864
+ "enum": [
2865
+ "none",
2866
+ "unknown"
2867
+ ]
2868
+ },
2869
+ "result": {
2870
+ "anyOf": [
2871
+ {},
2872
+ {
2873
+ "type": "null"
2874
+ }
2875
+ ]
2876
+ },
2877
+ "at": {
2878
+ "type": "string"
2879
+ }
2880
+ },
2881
+ "required": [
2882
+ "state",
2883
+ "invocationId",
2884
+ "errorTag",
2885
+ "result",
2886
+ "at"
2887
+ ],
2888
+ "additionalProperties": true
2889
+ },
2890
+ "UnknownApproval": {
2891
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2892
+ "$ref": "#/$defs/UnknownApprovalEncoded",
2893
+ "$defs": {
2894
+ "UnknownApprovalEncoded": {
2895
+ "type": "object",
2896
+ "properties": {
2897
+ "_tag": {
2898
+ "type": "string",
2899
+ "enum": [
2900
+ "UnknownApproval"
2901
+ ]
2902
+ },
2903
+ "approvalId": {
2904
+ "type": "string"
2905
+ }
2906
+ },
2907
+ "required": [
2908
+ "_tag",
2909
+ "approvalId"
2910
+ ],
2911
+ "additionalProperties": true
2912
+ }
2913
+ }
2914
+ }
2915
+ }
2916
+ }