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