@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,2303 @@
1
+ {
2
+ "title": "MachineIdentity",
3
+ "kind": "kernel",
4
+ "version": "1.0.0",
5
+ "description": "Service principals (organisation-scoped actors with Directory roles), API tokens (opaque, hashed, organisation- and optionally action-scoped, expiring, revocable, last-used tracked), and an OAuth 2.1 authorisation server for MCP and API clients: metadata (RFC 8414, RFC 9728), dynamic registration (RFC 7591), authorisation code with S256 PKCE, refresh rotation with reuse detection, revocation (RFC 7009), the device grant (RFC 8628) and audience-bound tokens (RFC 8707). Every credential is re-checked on every use: the subject must still be a member, the credential neither revoked nor expired. Management needs a signed-in session, never a machine credential, and is audited.",
6
+ "operations": {
7
+ "resolve": {
8
+ "description": "The identity step for a bearer credential on a surface: a session, an API token or an OAuth access token whose audience is the surface's resource. Re-checks membership, revocation and expiry on every call; `x-eloxiv-org` naming another organisation than the credential's is Forbidden.",
9
+ "input": {
10
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
11
+ "type": "object",
12
+ "properties": {
13
+ "authorization": {
14
+ "type": "string"
15
+ },
16
+ "surface": {
17
+ "type": "string"
18
+ },
19
+ "org": {
20
+ "type": "string"
21
+ }
22
+ },
23
+ "required": [
24
+ "authorization",
25
+ "surface"
26
+ ],
27
+ "additionalProperties": true
28
+ },
29
+ "output": {
30
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
31
+ "type": "object",
32
+ "properties": {
33
+ "actor": {
34
+ "type": "object",
35
+ "properties": {
36
+ "userId": {
37
+ "type": "string"
38
+ },
39
+ "orgId": {
40
+ "type": "string"
41
+ },
42
+ "email": {
43
+ "type": "string"
44
+ },
45
+ "emailVerified": {
46
+ "type": "boolean"
47
+ },
48
+ "roles": {
49
+ "type": "array",
50
+ "items": {
51
+ "type": "string"
52
+ }
53
+ },
54
+ "groups": {
55
+ "type": "array",
56
+ "items": {
57
+ "type": "string"
58
+ }
59
+ },
60
+ "permissions": {
61
+ "type": "array",
62
+ "items": {
63
+ "type": "string"
64
+ }
65
+ }
66
+ },
67
+ "required": [
68
+ "userId",
69
+ "orgId",
70
+ "email",
71
+ "roles",
72
+ "groups",
73
+ "permissions"
74
+ ],
75
+ "additionalProperties": true
76
+ },
77
+ "credential": {
78
+ "type": "object",
79
+ "properties": {
80
+ "kind": {
81
+ "type": "string",
82
+ "enum": [
83
+ "session",
84
+ "api-token",
85
+ "oauth"
86
+ ]
87
+ },
88
+ "id": {
89
+ "anyOf": [
90
+ {
91
+ "type": "string"
92
+ },
93
+ {
94
+ "type": "null"
95
+ }
96
+ ]
97
+ },
98
+ "scope": {
99
+ "anyOf": [
100
+ {
101
+ "type": "array",
102
+ "items": {
103
+ "type": "string",
104
+ "pattern": "^(actions|action:[A-Za-z0-9_.-]{1,200}|permission:[A-Za-z0-9_.-]{1,200})$"
105
+ }
106
+ },
107
+ {
108
+ "type": "null"
109
+ }
110
+ ]
111
+ }
112
+ },
113
+ "required": [
114
+ "kind",
115
+ "id",
116
+ "scope"
117
+ ],
118
+ "additionalProperties": true
119
+ }
120
+ },
121
+ "required": [
122
+ "actor",
123
+ "credential"
124
+ ],
125
+ "additionalProperties": true
126
+ },
127
+ "errors": {
128
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
129
+ "anyOf": [
130
+ {
131
+ "$ref": "#/$defs/UnauthenticatedEncoded"
132
+ },
133
+ {
134
+ "$ref": "#/$defs/ForbiddenEncoded"
135
+ }
136
+ ],
137
+ "$defs": {
138
+ "UnauthenticatedEncoded": {
139
+ "type": "object",
140
+ "properties": {
141
+ "_tag": {
142
+ "type": "string",
143
+ "enum": [
144
+ "Unauthenticated"
145
+ ]
146
+ },
147
+ "message": {
148
+ "type": "string"
149
+ }
150
+ },
151
+ "required": [
152
+ "_tag",
153
+ "message"
154
+ ],
155
+ "additionalProperties": true
156
+ },
157
+ "ForbiddenEncoded": {
158
+ "type": "object",
159
+ "properties": {
160
+ "_tag": {
161
+ "type": "string",
162
+ "enum": [
163
+ "Forbidden"
164
+ ]
165
+ },
166
+ "message": {
167
+ "type": "string"
168
+ },
169
+ "action": {
170
+ "type": "string"
171
+ }
172
+ },
173
+ "required": [
174
+ "_tag",
175
+ "message",
176
+ "action"
177
+ ],
178
+ "additionalProperties": true
179
+ }
180
+ }
181
+ }
182
+ },
183
+ "createServicePrincipal": {
184
+ "description": "Create a service principal in the caller's organisation (needs eloxiv.machine.manage). Its roles (default: member) may grant only permissions the caller holds.",
185
+ "input": {
186
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
187
+ "type": "object",
188
+ "properties": {
189
+ "name": {
190
+ "type": "string"
191
+ },
192
+ "description": {
193
+ "type": "string"
194
+ },
195
+ "roles": {
196
+ "type": "array",
197
+ "items": {
198
+ "type": "string"
199
+ }
200
+ }
201
+ },
202
+ "required": [
203
+ "name"
204
+ ],
205
+ "additionalProperties": true
206
+ },
207
+ "output": {
208
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
209
+ "type": "object",
210
+ "properties": {
211
+ "id": {
212
+ "type": "string"
213
+ }
214
+ },
215
+ "required": [
216
+ "id"
217
+ ],
218
+ "additionalProperties": true
219
+ },
220
+ "errors": {
221
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
222
+ "anyOf": [
223
+ {
224
+ "$ref": "#/$defs/UnauthenticatedEncoded"
225
+ },
226
+ {
227
+ "$ref": "#/$defs/ForbiddenEncoded"
228
+ },
229
+ {
230
+ "$ref": "#/$defs/InvalidInputEncoded"
231
+ }
232
+ ],
233
+ "$defs": {
234
+ "UnauthenticatedEncoded": {
235
+ "type": "object",
236
+ "properties": {
237
+ "_tag": {
238
+ "type": "string",
239
+ "enum": [
240
+ "Unauthenticated"
241
+ ]
242
+ },
243
+ "message": {
244
+ "type": "string"
245
+ }
246
+ },
247
+ "required": [
248
+ "_tag",
249
+ "message"
250
+ ],
251
+ "additionalProperties": true
252
+ },
253
+ "ForbiddenEncoded": {
254
+ "type": "object",
255
+ "properties": {
256
+ "_tag": {
257
+ "type": "string",
258
+ "enum": [
259
+ "Forbidden"
260
+ ]
261
+ },
262
+ "message": {
263
+ "type": "string"
264
+ },
265
+ "action": {
266
+ "type": "string"
267
+ }
268
+ },
269
+ "required": [
270
+ "_tag",
271
+ "message",
272
+ "action"
273
+ ],
274
+ "additionalProperties": true
275
+ },
276
+ "InvalidInputEncoded": {
277
+ "type": "object",
278
+ "properties": {
279
+ "_tag": {
280
+ "type": "string",
281
+ "enum": [
282
+ "InvalidInput"
283
+ ]
284
+ },
285
+ "message": {
286
+ "type": "string"
287
+ }
288
+ },
289
+ "required": [
290
+ "_tag",
291
+ "message"
292
+ ],
293
+ "additionalProperties": true
294
+ }
295
+ }
296
+ }
297
+ },
298
+ "listServicePrincipals": {
299
+ "description": "Service principals of the caller's organisation.",
300
+ "input": {
301
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
302
+ "not": {
303
+ "type": "null"
304
+ }
305
+ },
306
+ "output": {
307
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
308
+ "type": "array",
309
+ "items": {
310
+ "type": "object",
311
+ "properties": {
312
+ "id": {
313
+ "type": "string"
314
+ },
315
+ "orgId": {
316
+ "type": "string"
317
+ },
318
+ "name": {
319
+ "type": "string"
320
+ },
321
+ "description": {
322
+ "type": "string"
323
+ },
324
+ "roles": {
325
+ "type": "array",
326
+ "items": {
327
+ "type": "string"
328
+ }
329
+ },
330
+ "createdBy": {
331
+ "type": "string"
332
+ },
333
+ "createdAt": {
334
+ "type": "string"
335
+ },
336
+ "disabled": {
337
+ "type": "boolean"
338
+ }
339
+ },
340
+ "required": [
341
+ "id",
342
+ "orgId",
343
+ "name",
344
+ "description",
345
+ "roles",
346
+ "createdBy",
347
+ "createdAt",
348
+ "disabled"
349
+ ],
350
+ "additionalProperties": true
351
+ }
352
+ },
353
+ "errors": {
354
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
355
+ "anyOf": [
356
+ {
357
+ "$ref": "#/$defs/UnauthenticatedEncoded"
358
+ },
359
+ {
360
+ "$ref": "#/$defs/ForbiddenEncoded"
361
+ },
362
+ {
363
+ "$ref": "#/$defs/InvalidInputEncoded"
364
+ }
365
+ ],
366
+ "$defs": {
367
+ "UnauthenticatedEncoded": {
368
+ "type": "object",
369
+ "properties": {
370
+ "_tag": {
371
+ "type": "string",
372
+ "enum": [
373
+ "Unauthenticated"
374
+ ]
375
+ },
376
+ "message": {
377
+ "type": "string"
378
+ }
379
+ },
380
+ "required": [
381
+ "_tag",
382
+ "message"
383
+ ],
384
+ "additionalProperties": true
385
+ },
386
+ "ForbiddenEncoded": {
387
+ "type": "object",
388
+ "properties": {
389
+ "_tag": {
390
+ "type": "string",
391
+ "enum": [
392
+ "Forbidden"
393
+ ]
394
+ },
395
+ "message": {
396
+ "type": "string"
397
+ },
398
+ "action": {
399
+ "type": "string"
400
+ }
401
+ },
402
+ "required": [
403
+ "_tag",
404
+ "message",
405
+ "action"
406
+ ],
407
+ "additionalProperties": true
408
+ },
409
+ "InvalidInputEncoded": {
410
+ "type": "object",
411
+ "properties": {
412
+ "_tag": {
413
+ "type": "string",
414
+ "enum": [
415
+ "InvalidInput"
416
+ ]
417
+ },
418
+ "message": {
419
+ "type": "string"
420
+ }
421
+ },
422
+ "required": [
423
+ "_tag",
424
+ "message"
425
+ ],
426
+ "additionalProperties": true
427
+ }
428
+ }
429
+ }
430
+ },
431
+ "disableServicePrincipal": {
432
+ "description": "Disable a service principal: its credentials are refused from the next call (needs eloxiv.machine.manage).",
433
+ "input": {
434
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
435
+ "type": "object",
436
+ "properties": {
437
+ "id": {
438
+ "type": "string"
439
+ }
440
+ },
441
+ "required": [
442
+ "id"
443
+ ],
444
+ "additionalProperties": true
445
+ },
446
+ "output": {
447
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
448
+ "not": {
449
+ "type": "null"
450
+ }
451
+ },
452
+ "errors": {
453
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
454
+ "anyOf": [
455
+ {
456
+ "$ref": "#/$defs/UnauthenticatedEncoded"
457
+ },
458
+ {
459
+ "$ref": "#/$defs/ForbiddenEncoded"
460
+ },
461
+ {
462
+ "$ref": "#/$defs/InvalidInputEncoded"
463
+ }
464
+ ],
465
+ "$defs": {
466
+ "UnauthenticatedEncoded": {
467
+ "type": "object",
468
+ "properties": {
469
+ "_tag": {
470
+ "type": "string",
471
+ "enum": [
472
+ "Unauthenticated"
473
+ ]
474
+ },
475
+ "message": {
476
+ "type": "string"
477
+ }
478
+ },
479
+ "required": [
480
+ "_tag",
481
+ "message"
482
+ ],
483
+ "additionalProperties": true
484
+ },
485
+ "ForbiddenEncoded": {
486
+ "type": "object",
487
+ "properties": {
488
+ "_tag": {
489
+ "type": "string",
490
+ "enum": [
491
+ "Forbidden"
492
+ ]
493
+ },
494
+ "message": {
495
+ "type": "string"
496
+ },
497
+ "action": {
498
+ "type": "string"
499
+ }
500
+ },
501
+ "required": [
502
+ "_tag",
503
+ "message",
504
+ "action"
505
+ ],
506
+ "additionalProperties": true
507
+ },
508
+ "InvalidInputEncoded": {
509
+ "type": "object",
510
+ "properties": {
511
+ "_tag": {
512
+ "type": "string",
513
+ "enum": [
514
+ "InvalidInput"
515
+ ]
516
+ },
517
+ "message": {
518
+ "type": "string"
519
+ }
520
+ },
521
+ "required": [
522
+ "_tag",
523
+ "message"
524
+ ],
525
+ "additionalProperties": true
526
+ }
527
+ }
528
+ }
529
+ },
530
+ "enableServicePrincipal": {
531
+ "description": "Enable a disabled service principal again.",
532
+ "input": {
533
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
534
+ "type": "object",
535
+ "properties": {
536
+ "id": {
537
+ "type": "string"
538
+ }
539
+ },
540
+ "required": [
541
+ "id"
542
+ ],
543
+ "additionalProperties": true
544
+ },
545
+ "output": {
546
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
547
+ "not": {
548
+ "type": "null"
549
+ }
550
+ },
551
+ "errors": {
552
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
553
+ "anyOf": [
554
+ {
555
+ "$ref": "#/$defs/UnauthenticatedEncoded"
556
+ },
557
+ {
558
+ "$ref": "#/$defs/ForbiddenEncoded"
559
+ },
560
+ {
561
+ "$ref": "#/$defs/InvalidInputEncoded"
562
+ }
563
+ ],
564
+ "$defs": {
565
+ "UnauthenticatedEncoded": {
566
+ "type": "object",
567
+ "properties": {
568
+ "_tag": {
569
+ "type": "string",
570
+ "enum": [
571
+ "Unauthenticated"
572
+ ]
573
+ },
574
+ "message": {
575
+ "type": "string"
576
+ }
577
+ },
578
+ "required": [
579
+ "_tag",
580
+ "message"
581
+ ],
582
+ "additionalProperties": true
583
+ },
584
+ "ForbiddenEncoded": {
585
+ "type": "object",
586
+ "properties": {
587
+ "_tag": {
588
+ "type": "string",
589
+ "enum": [
590
+ "Forbidden"
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
+ "InvalidInputEncoded": {
608
+ "type": "object",
609
+ "properties": {
610
+ "_tag": {
611
+ "type": "string",
612
+ "enum": [
613
+ "InvalidInput"
614
+ ]
615
+ },
616
+ "message": {
617
+ "type": "string"
618
+ }
619
+ },
620
+ "required": [
621
+ "_tag",
622
+ "message"
623
+ ],
624
+ "additionalProperties": true
625
+ }
626
+ }
627
+ }
628
+ },
629
+ "deleteServicePrincipal": {
630
+ "description": "Delete a service principal with its membership, roles, tokens and linked identities.",
631
+ "input": {
632
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
633
+ "type": "object",
634
+ "properties": {
635
+ "id": {
636
+ "type": "string"
637
+ }
638
+ },
639
+ "required": [
640
+ "id"
641
+ ],
642
+ "additionalProperties": true
643
+ },
644
+ "output": {
645
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
646
+ "not": {
647
+ "type": "null"
648
+ }
649
+ },
650
+ "errors": {
651
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
652
+ "anyOf": [
653
+ {
654
+ "$ref": "#/$defs/UnauthenticatedEncoded"
655
+ },
656
+ {
657
+ "$ref": "#/$defs/ForbiddenEncoded"
658
+ },
659
+ {
660
+ "$ref": "#/$defs/InvalidInputEncoded"
661
+ }
662
+ ],
663
+ "$defs": {
664
+ "UnauthenticatedEncoded": {
665
+ "type": "object",
666
+ "properties": {
667
+ "_tag": {
668
+ "type": "string",
669
+ "enum": [
670
+ "Unauthenticated"
671
+ ]
672
+ },
673
+ "message": {
674
+ "type": "string"
675
+ }
676
+ },
677
+ "required": [
678
+ "_tag",
679
+ "message"
680
+ ],
681
+ "additionalProperties": true
682
+ },
683
+ "ForbiddenEncoded": {
684
+ "type": "object",
685
+ "properties": {
686
+ "_tag": {
687
+ "type": "string",
688
+ "enum": [
689
+ "Forbidden"
690
+ ]
691
+ },
692
+ "message": {
693
+ "type": "string"
694
+ },
695
+ "action": {
696
+ "type": "string"
697
+ }
698
+ },
699
+ "required": [
700
+ "_tag",
701
+ "message",
702
+ "action"
703
+ ],
704
+ "additionalProperties": true
705
+ },
706
+ "InvalidInputEncoded": {
707
+ "type": "object",
708
+ "properties": {
709
+ "_tag": {
710
+ "type": "string",
711
+ "enum": [
712
+ "InvalidInput"
713
+ ]
714
+ },
715
+ "message": {
716
+ "type": "string"
717
+ }
718
+ },
719
+ "required": [
720
+ "_tag",
721
+ "message"
722
+ ],
723
+ "additionalProperties": true
724
+ }
725
+ }
726
+ }
727
+ },
728
+ "createToken": {
729
+ "description": "Issue an API token: personal (acting as the caller) or for a service principal (needs eloxiv.machine.manage). The token is returned once and stored hashed. Scope: actions and permissions it may call (default: all). Expires after expiresInSeconds (default 90 days, at most 366).",
730
+ "input": {
731
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
732
+ "type": "object",
733
+ "properties": {
734
+ "name": {
735
+ "type": "string"
736
+ },
737
+ "principalId": {
738
+ "type": "string"
739
+ },
740
+ "actions": {
741
+ "type": "array",
742
+ "items": {
743
+ "type": "string"
744
+ }
745
+ },
746
+ "permissions": {
747
+ "type": "array",
748
+ "items": {
749
+ "type": "string"
750
+ }
751
+ },
752
+ "expiresInSeconds": {
753
+ "anyOf": [
754
+ {
755
+ "type": "number"
756
+ },
757
+ {
758
+ "type": "string",
759
+ "enum": [
760
+ "Infinity",
761
+ "-Infinity",
762
+ "NaN"
763
+ ]
764
+ }
765
+ ]
766
+ }
767
+ },
768
+ "required": [
769
+ "name"
770
+ ],
771
+ "additionalProperties": true
772
+ },
773
+ "output": {
774
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
775
+ "type": "object",
776
+ "properties": {
777
+ "id": {
778
+ "type": "string"
779
+ },
780
+ "token": {
781
+ "type": "string"
782
+ },
783
+ "prefix": {
784
+ "type": "string"
785
+ },
786
+ "expiresAt": {
787
+ "type": "string"
788
+ }
789
+ },
790
+ "required": [
791
+ "id",
792
+ "token",
793
+ "prefix",
794
+ "expiresAt"
795
+ ],
796
+ "additionalProperties": true
797
+ },
798
+ "errors": {
799
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
800
+ "anyOf": [
801
+ {
802
+ "$ref": "#/$defs/UnauthenticatedEncoded"
803
+ },
804
+ {
805
+ "$ref": "#/$defs/ForbiddenEncoded"
806
+ },
807
+ {
808
+ "$ref": "#/$defs/InvalidInputEncoded"
809
+ }
810
+ ],
811
+ "$defs": {
812
+ "UnauthenticatedEncoded": {
813
+ "type": "object",
814
+ "properties": {
815
+ "_tag": {
816
+ "type": "string",
817
+ "enum": [
818
+ "Unauthenticated"
819
+ ]
820
+ },
821
+ "message": {
822
+ "type": "string"
823
+ }
824
+ },
825
+ "required": [
826
+ "_tag",
827
+ "message"
828
+ ],
829
+ "additionalProperties": true
830
+ },
831
+ "ForbiddenEncoded": {
832
+ "type": "object",
833
+ "properties": {
834
+ "_tag": {
835
+ "type": "string",
836
+ "enum": [
837
+ "Forbidden"
838
+ ]
839
+ },
840
+ "message": {
841
+ "type": "string"
842
+ },
843
+ "action": {
844
+ "type": "string"
845
+ }
846
+ },
847
+ "required": [
848
+ "_tag",
849
+ "message",
850
+ "action"
851
+ ],
852
+ "additionalProperties": true
853
+ },
854
+ "InvalidInputEncoded": {
855
+ "type": "object",
856
+ "properties": {
857
+ "_tag": {
858
+ "type": "string",
859
+ "enum": [
860
+ "InvalidInput"
861
+ ]
862
+ },
863
+ "message": {
864
+ "type": "string"
865
+ }
866
+ },
867
+ "required": [
868
+ "_tag",
869
+ "message"
870
+ ],
871
+ "additionalProperties": true
872
+ }
873
+ }
874
+ }
875
+ },
876
+ "listTokens": {
877
+ "description": "The caller's personal tokens; with eloxiv.machine.manage, every API token of the organisation.",
878
+ "input": {
879
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
880
+ "not": {
881
+ "type": "null"
882
+ }
883
+ },
884
+ "output": {
885
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
886
+ "type": "array",
887
+ "items": {
888
+ "type": "object",
889
+ "properties": {
890
+ "id": {
891
+ "type": "string"
892
+ },
893
+ "prefix": {
894
+ "type": "string"
895
+ },
896
+ "kind": {
897
+ "type": "string",
898
+ "enum": [
899
+ "personal",
900
+ "service"
901
+ ]
902
+ },
903
+ "subject": {
904
+ "type": "string"
905
+ },
906
+ "orgId": {
907
+ "type": "string"
908
+ },
909
+ "name": {
910
+ "type": "string"
911
+ },
912
+ "scope": {
913
+ "anyOf": [
914
+ {
915
+ "type": "array",
916
+ "items": {
917
+ "type": "string",
918
+ "pattern": "^(actions|action:[A-Za-z0-9_.-]{1,200}|permission:[A-Za-z0-9_.-]{1,200})$"
919
+ }
920
+ },
921
+ {
922
+ "type": "null"
923
+ }
924
+ ]
925
+ },
926
+ "createdBy": {
927
+ "type": "string"
928
+ },
929
+ "createdAt": {
930
+ "type": "string"
931
+ },
932
+ "expiresAt": {
933
+ "type": "string"
934
+ },
935
+ "revokedAt": {
936
+ "anyOf": [
937
+ {
938
+ "type": "string"
939
+ },
940
+ {
941
+ "type": "null"
942
+ }
943
+ ]
944
+ },
945
+ "lastUsedAt": {
946
+ "anyOf": [
947
+ {
948
+ "type": "string"
949
+ },
950
+ {
951
+ "type": "null"
952
+ }
953
+ ]
954
+ }
955
+ },
956
+ "required": [
957
+ "id",
958
+ "prefix",
959
+ "kind",
960
+ "subject",
961
+ "orgId",
962
+ "name",
963
+ "scope",
964
+ "createdBy",
965
+ "createdAt",
966
+ "expiresAt",
967
+ "revokedAt",
968
+ "lastUsedAt"
969
+ ],
970
+ "additionalProperties": true
971
+ }
972
+ },
973
+ "errors": {
974
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
975
+ "anyOf": [
976
+ {
977
+ "$ref": "#/$defs/UnauthenticatedEncoded"
978
+ },
979
+ {
980
+ "$ref": "#/$defs/ForbiddenEncoded"
981
+ },
982
+ {
983
+ "$ref": "#/$defs/InvalidInputEncoded"
984
+ }
985
+ ],
986
+ "$defs": {
987
+ "UnauthenticatedEncoded": {
988
+ "type": "object",
989
+ "properties": {
990
+ "_tag": {
991
+ "type": "string",
992
+ "enum": [
993
+ "Unauthenticated"
994
+ ]
995
+ },
996
+ "message": {
997
+ "type": "string"
998
+ }
999
+ },
1000
+ "required": [
1001
+ "_tag",
1002
+ "message"
1003
+ ],
1004
+ "additionalProperties": true
1005
+ },
1006
+ "ForbiddenEncoded": {
1007
+ "type": "object",
1008
+ "properties": {
1009
+ "_tag": {
1010
+ "type": "string",
1011
+ "enum": [
1012
+ "Forbidden"
1013
+ ]
1014
+ },
1015
+ "message": {
1016
+ "type": "string"
1017
+ },
1018
+ "action": {
1019
+ "type": "string"
1020
+ }
1021
+ },
1022
+ "required": [
1023
+ "_tag",
1024
+ "message",
1025
+ "action"
1026
+ ],
1027
+ "additionalProperties": true
1028
+ },
1029
+ "InvalidInputEncoded": {
1030
+ "type": "object",
1031
+ "properties": {
1032
+ "_tag": {
1033
+ "type": "string",
1034
+ "enum": [
1035
+ "InvalidInput"
1036
+ ]
1037
+ },
1038
+ "message": {
1039
+ "type": "string"
1040
+ }
1041
+ },
1042
+ "required": [
1043
+ "_tag",
1044
+ "message"
1045
+ ],
1046
+ "additionalProperties": true
1047
+ }
1048
+ }
1049
+ }
1050
+ },
1051
+ "revokeToken": {
1052
+ "description": "Revoke an API token: the caller's own, or any of the organisation's with eloxiv.machine.manage.",
1053
+ "input": {
1054
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1055
+ "type": "object",
1056
+ "properties": {
1057
+ "id": {
1058
+ "type": "string"
1059
+ }
1060
+ },
1061
+ "required": [
1062
+ "id"
1063
+ ],
1064
+ "additionalProperties": true
1065
+ },
1066
+ "output": {
1067
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1068
+ "not": {
1069
+ "type": "null"
1070
+ }
1071
+ },
1072
+ "errors": {
1073
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1074
+ "anyOf": [
1075
+ {
1076
+ "$ref": "#/$defs/UnauthenticatedEncoded"
1077
+ },
1078
+ {
1079
+ "$ref": "#/$defs/ForbiddenEncoded"
1080
+ },
1081
+ {
1082
+ "$ref": "#/$defs/InvalidInputEncoded"
1083
+ }
1084
+ ],
1085
+ "$defs": {
1086
+ "UnauthenticatedEncoded": {
1087
+ "type": "object",
1088
+ "properties": {
1089
+ "_tag": {
1090
+ "type": "string",
1091
+ "enum": [
1092
+ "Unauthenticated"
1093
+ ]
1094
+ },
1095
+ "message": {
1096
+ "type": "string"
1097
+ }
1098
+ },
1099
+ "required": [
1100
+ "_tag",
1101
+ "message"
1102
+ ],
1103
+ "additionalProperties": true
1104
+ },
1105
+ "ForbiddenEncoded": {
1106
+ "type": "object",
1107
+ "properties": {
1108
+ "_tag": {
1109
+ "type": "string",
1110
+ "enum": [
1111
+ "Forbidden"
1112
+ ]
1113
+ },
1114
+ "message": {
1115
+ "type": "string"
1116
+ },
1117
+ "action": {
1118
+ "type": "string"
1119
+ }
1120
+ },
1121
+ "required": [
1122
+ "_tag",
1123
+ "message",
1124
+ "action"
1125
+ ],
1126
+ "additionalProperties": true
1127
+ },
1128
+ "InvalidInputEncoded": {
1129
+ "type": "object",
1130
+ "properties": {
1131
+ "_tag": {
1132
+ "type": "string",
1133
+ "enum": [
1134
+ "InvalidInput"
1135
+ ]
1136
+ },
1137
+ "message": {
1138
+ "type": "string"
1139
+ }
1140
+ },
1141
+ "required": [
1142
+ "_tag",
1143
+ "message"
1144
+ ],
1145
+ "additionalProperties": true
1146
+ }
1147
+ }
1148
+ }
1149
+ },
1150
+ "authorizationServerMetadata": {
1151
+ "description": "GET /.well-known/oauth-authorization-server (RFC 8414).",
1152
+ "input": {
1153
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1154
+ "not": {
1155
+ "type": "null"
1156
+ }
1157
+ },
1158
+ "output": {
1159
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1160
+ "type": "object",
1161
+ "properties": {
1162
+ "issuer": {
1163
+ "type": "string"
1164
+ },
1165
+ "authorization_endpoint": {
1166
+ "type": "string"
1167
+ },
1168
+ "token_endpoint": {
1169
+ "type": "string"
1170
+ },
1171
+ "registration_endpoint": {
1172
+ "type": "string"
1173
+ },
1174
+ "revocation_endpoint": {
1175
+ "type": "string"
1176
+ },
1177
+ "device_authorization_endpoint": {
1178
+ "type": "string"
1179
+ },
1180
+ "response_types_supported": {
1181
+ "type": "array",
1182
+ "items": {
1183
+ "type": "string"
1184
+ }
1185
+ },
1186
+ "grant_types_supported": {
1187
+ "type": "array",
1188
+ "items": {
1189
+ "type": "string"
1190
+ }
1191
+ },
1192
+ "code_challenge_methods_supported": {
1193
+ "type": "array",
1194
+ "items": {
1195
+ "type": "string"
1196
+ }
1197
+ },
1198
+ "token_endpoint_auth_methods_supported": {
1199
+ "type": "array",
1200
+ "items": {
1201
+ "type": "string"
1202
+ }
1203
+ },
1204
+ "revocation_endpoint_auth_methods_supported": {
1205
+ "type": "array",
1206
+ "items": {
1207
+ "type": "string"
1208
+ }
1209
+ },
1210
+ "scopes_supported": {
1211
+ "type": "array",
1212
+ "items": {
1213
+ "type": "string"
1214
+ }
1215
+ }
1216
+ },
1217
+ "required": [
1218
+ "issuer",
1219
+ "authorization_endpoint",
1220
+ "token_endpoint",
1221
+ "registration_endpoint",
1222
+ "revocation_endpoint",
1223
+ "device_authorization_endpoint",
1224
+ "response_types_supported",
1225
+ "grant_types_supported",
1226
+ "code_challenge_methods_supported",
1227
+ "token_endpoint_auth_methods_supported",
1228
+ "revocation_endpoint_auth_methods_supported",
1229
+ "scopes_supported"
1230
+ ],
1231
+ "additionalProperties": true
1232
+ },
1233
+ "errors": {
1234
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1235
+ "type": "object",
1236
+ "properties": {
1237
+ "error": {
1238
+ "type": "string"
1239
+ },
1240
+ "error_description": {
1241
+ "type": "string"
1242
+ }
1243
+ },
1244
+ "required": [
1245
+ "error"
1246
+ ],
1247
+ "additionalProperties": true
1248
+ }
1249
+ },
1250
+ "protectedResourceMetadata": {
1251
+ "description": "GET /.well-known/oauth-protected-resource/mcp and /api (RFC 9728). The MCP endpoint answers an unauthenticated request with 401 and `WWW-Authenticate: Bearer resource_metadata=...`.",
1252
+ "input": {
1253
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1254
+ "not": {
1255
+ "type": "null"
1256
+ }
1257
+ },
1258
+ "output": {
1259
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1260
+ "type": "object",
1261
+ "properties": {
1262
+ "resource": {
1263
+ "type": "string"
1264
+ },
1265
+ "authorization_servers": {
1266
+ "type": "array",
1267
+ "items": {
1268
+ "type": "string"
1269
+ }
1270
+ },
1271
+ "bearer_methods_supported": {
1272
+ "type": "array",
1273
+ "items": {
1274
+ "type": "string"
1275
+ }
1276
+ },
1277
+ "scopes_supported": {
1278
+ "type": "array",
1279
+ "items": {
1280
+ "type": "string"
1281
+ }
1282
+ }
1283
+ },
1284
+ "required": [
1285
+ "resource",
1286
+ "authorization_servers",
1287
+ "bearer_methods_supported",
1288
+ "scopes_supported"
1289
+ ],
1290
+ "additionalProperties": true
1291
+ },
1292
+ "errors": {
1293
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1294
+ "type": "object",
1295
+ "properties": {
1296
+ "error": {
1297
+ "type": "string"
1298
+ },
1299
+ "error_description": {
1300
+ "type": "string"
1301
+ }
1302
+ },
1303
+ "required": [
1304
+ "error"
1305
+ ],
1306
+ "additionalProperties": true
1307
+ }
1308
+ },
1309
+ "register": {
1310
+ "description": "POST /oauth/register (RFC 7591): register a client. Redirect URIs must be https, loopback http, or a private-use scheme. Limited per source address.",
1311
+ "input": {
1312
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1313
+ "type": "object",
1314
+ "properties": {
1315
+ "redirect_uris": {
1316
+ "type": "array",
1317
+ "items": {
1318
+ "type": "string"
1319
+ }
1320
+ },
1321
+ "client_name": {
1322
+ "type": "string"
1323
+ },
1324
+ "grant_types": {
1325
+ "type": "array",
1326
+ "items": {
1327
+ "type": "string"
1328
+ }
1329
+ },
1330
+ "response_types": {
1331
+ "type": "array",
1332
+ "items": {
1333
+ "type": "string"
1334
+ }
1335
+ },
1336
+ "token_endpoint_auth_method": {
1337
+ "type": "string",
1338
+ "enum": [
1339
+ "none",
1340
+ "client_secret_post",
1341
+ "client_secret_basic"
1342
+ ]
1343
+ },
1344
+ "scope": {
1345
+ "type": "string"
1346
+ }
1347
+ },
1348
+ "additionalProperties": true
1349
+ },
1350
+ "output": {
1351
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1352
+ "type": "object",
1353
+ "properties": {
1354
+ "client_id": {
1355
+ "type": "string"
1356
+ },
1357
+ "client_secret": {
1358
+ "type": "string"
1359
+ },
1360
+ "client_id_issued_at": {
1361
+ "anyOf": [
1362
+ {
1363
+ "type": "number"
1364
+ },
1365
+ {
1366
+ "type": "string",
1367
+ "enum": [
1368
+ "Infinity",
1369
+ "-Infinity",
1370
+ "NaN"
1371
+ ]
1372
+ }
1373
+ ]
1374
+ },
1375
+ "client_secret_expires_at": {
1376
+ "anyOf": [
1377
+ {
1378
+ "type": "number"
1379
+ },
1380
+ {
1381
+ "type": "string",
1382
+ "enum": [
1383
+ "Infinity",
1384
+ "-Infinity",
1385
+ "NaN"
1386
+ ]
1387
+ }
1388
+ ]
1389
+ },
1390
+ "client_name": {
1391
+ "type": "string"
1392
+ },
1393
+ "redirect_uris": {
1394
+ "type": "array",
1395
+ "items": {
1396
+ "type": "string"
1397
+ }
1398
+ },
1399
+ "grant_types": {
1400
+ "type": "array",
1401
+ "items": {
1402
+ "type": "string"
1403
+ }
1404
+ },
1405
+ "response_types": {
1406
+ "type": "array",
1407
+ "items": {
1408
+ "type": "string"
1409
+ }
1410
+ },
1411
+ "token_endpoint_auth_method": {
1412
+ "type": "string"
1413
+ }
1414
+ },
1415
+ "required": [
1416
+ "client_id",
1417
+ "client_id_issued_at",
1418
+ "client_name",
1419
+ "redirect_uris",
1420
+ "grant_types",
1421
+ "response_types",
1422
+ "token_endpoint_auth_method"
1423
+ ],
1424
+ "additionalProperties": true
1425
+ },
1426
+ "errors": {
1427
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1428
+ "type": "object",
1429
+ "properties": {
1430
+ "error": {
1431
+ "type": "string"
1432
+ },
1433
+ "error_description": {
1434
+ "type": "string"
1435
+ }
1436
+ },
1437
+ "required": [
1438
+ "error"
1439
+ ],
1440
+ "additionalProperties": true
1441
+ }
1442
+ },
1443
+ "authorize": {
1444
+ "description": "GET /oauth/authorize: authorisation code with PKCE (S256 only) and a required resource. Serves the consent page: the user signs in, picks the organisation and approves; redirects to the registered redirect URI with code and state.",
1445
+ "input": {
1446
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1447
+ "type": "object",
1448
+ "properties": {
1449
+ "response_type": {
1450
+ "type": "string",
1451
+ "enum": [
1452
+ "code"
1453
+ ]
1454
+ },
1455
+ "client_id": {
1456
+ "type": "string"
1457
+ },
1458
+ "redirect_uri": {
1459
+ "type": "string"
1460
+ },
1461
+ "code_challenge": {
1462
+ "type": "string"
1463
+ },
1464
+ "code_challenge_method": {
1465
+ "type": "string",
1466
+ "enum": [
1467
+ "S256"
1468
+ ]
1469
+ },
1470
+ "resource": {
1471
+ "type": "string"
1472
+ },
1473
+ "scope": {
1474
+ "type": "string"
1475
+ },
1476
+ "state": {
1477
+ "type": "string"
1478
+ }
1479
+ },
1480
+ "required": [
1481
+ "response_type",
1482
+ "client_id",
1483
+ "redirect_uri",
1484
+ "code_challenge",
1485
+ "code_challenge_method",
1486
+ "resource"
1487
+ ],
1488
+ "additionalProperties": true
1489
+ },
1490
+ "output": {
1491
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1492
+ "type": "object",
1493
+ "properties": {
1494
+ "code": {
1495
+ "type": "string"
1496
+ },
1497
+ "state": {
1498
+ "type": "string"
1499
+ }
1500
+ },
1501
+ "required": [
1502
+ "code"
1503
+ ],
1504
+ "additionalProperties": true
1505
+ },
1506
+ "errors": {
1507
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1508
+ "type": "object",
1509
+ "properties": {
1510
+ "error": {
1511
+ "type": "string"
1512
+ },
1513
+ "error_description": {
1514
+ "type": "string"
1515
+ }
1516
+ },
1517
+ "required": [
1518
+ "error"
1519
+ ],
1520
+ "additionalProperties": true
1521
+ }
1522
+ },
1523
+ "token": {
1524
+ "description": "POST /oauth/token: exchange a code (with the PKCE verifier and the same redirect URI), a refresh token (rotated: a reused one revokes its whole grant) or a device code for an audience-bound access token and a refresh token.",
1525
+ "input": {
1526
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1527
+ "type": "object",
1528
+ "properties": {
1529
+ "grant_type": {
1530
+ "type": "string",
1531
+ "enum": [
1532
+ "authorization_code",
1533
+ "refresh_token",
1534
+ "urn:ietf:params:oauth:grant-type:device_code"
1535
+ ]
1536
+ },
1537
+ "client_id": {
1538
+ "type": "string"
1539
+ },
1540
+ "code": {
1541
+ "type": "string"
1542
+ },
1543
+ "code_verifier": {
1544
+ "type": "string"
1545
+ },
1546
+ "redirect_uri": {
1547
+ "type": "string"
1548
+ },
1549
+ "refresh_token": {
1550
+ "type": "string"
1551
+ },
1552
+ "device_code": {
1553
+ "type": "string"
1554
+ },
1555
+ "resource": {
1556
+ "type": "string"
1557
+ },
1558
+ "scope": {
1559
+ "type": "string"
1560
+ }
1561
+ },
1562
+ "required": [
1563
+ "grant_type"
1564
+ ],
1565
+ "additionalProperties": true
1566
+ },
1567
+ "output": {
1568
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1569
+ "type": "object",
1570
+ "properties": {
1571
+ "access_token": {
1572
+ "type": "string"
1573
+ },
1574
+ "token_type": {
1575
+ "type": "string",
1576
+ "enum": [
1577
+ "Bearer"
1578
+ ]
1579
+ },
1580
+ "expires_in": {
1581
+ "anyOf": [
1582
+ {
1583
+ "type": "number"
1584
+ },
1585
+ {
1586
+ "type": "string",
1587
+ "enum": [
1588
+ "Infinity",
1589
+ "-Infinity",
1590
+ "NaN"
1591
+ ]
1592
+ }
1593
+ ]
1594
+ },
1595
+ "refresh_token": {
1596
+ "type": "string"
1597
+ },
1598
+ "scope": {
1599
+ "type": "string"
1600
+ }
1601
+ },
1602
+ "required": [
1603
+ "access_token",
1604
+ "token_type",
1605
+ "expires_in",
1606
+ "refresh_token",
1607
+ "scope"
1608
+ ],
1609
+ "additionalProperties": true
1610
+ },
1611
+ "errors": {
1612
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1613
+ "type": "object",
1614
+ "properties": {
1615
+ "error": {
1616
+ "type": "string"
1617
+ },
1618
+ "error_description": {
1619
+ "type": "string"
1620
+ }
1621
+ },
1622
+ "required": [
1623
+ "error"
1624
+ ],
1625
+ "additionalProperties": true
1626
+ }
1627
+ },
1628
+ "revoke": {
1629
+ "description": "POST /oauth/revoke (RFC 7009): revoke a refresh token (and its grant) or an access token. Always 200 for a client's own or unknown tokens.",
1630
+ "input": {
1631
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1632
+ "type": "object",
1633
+ "properties": {
1634
+ "token": {
1635
+ "type": "string"
1636
+ },
1637
+ "token_type_hint": {
1638
+ "type": "string"
1639
+ }
1640
+ },
1641
+ "required": [
1642
+ "token"
1643
+ ],
1644
+ "additionalProperties": true
1645
+ },
1646
+ "output": {
1647
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1648
+ "not": {
1649
+ "type": "null"
1650
+ }
1651
+ },
1652
+ "errors": {
1653
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1654
+ "type": "object",
1655
+ "properties": {
1656
+ "error": {
1657
+ "type": "string"
1658
+ },
1659
+ "error_description": {
1660
+ "type": "string"
1661
+ }
1662
+ },
1663
+ "required": [
1664
+ "error"
1665
+ ],
1666
+ "additionalProperties": true
1667
+ }
1668
+ },
1669
+ "deviceAuthorization": {
1670
+ "description": "POST /oauth/device_authorization (RFC 8628): a device code and a user code the user enters at /oauth/device.",
1671
+ "input": {
1672
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1673
+ "type": "object",
1674
+ "properties": {
1675
+ "client_id": {
1676
+ "type": "string"
1677
+ },
1678
+ "resource": {
1679
+ "type": "string"
1680
+ },
1681
+ "scope": {
1682
+ "type": "string"
1683
+ }
1684
+ },
1685
+ "required": [
1686
+ "client_id",
1687
+ "resource"
1688
+ ],
1689
+ "additionalProperties": true
1690
+ },
1691
+ "output": {
1692
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1693
+ "type": "object",
1694
+ "properties": {
1695
+ "device_code": {
1696
+ "type": "string"
1697
+ },
1698
+ "user_code": {
1699
+ "type": "string"
1700
+ },
1701
+ "verification_uri": {
1702
+ "type": "string"
1703
+ },
1704
+ "verification_uri_complete": {
1705
+ "type": "string"
1706
+ },
1707
+ "expires_in": {
1708
+ "anyOf": [
1709
+ {
1710
+ "type": "number"
1711
+ },
1712
+ {
1713
+ "type": "string",
1714
+ "enum": [
1715
+ "Infinity",
1716
+ "-Infinity",
1717
+ "NaN"
1718
+ ]
1719
+ }
1720
+ ]
1721
+ },
1722
+ "interval": {
1723
+ "anyOf": [
1724
+ {
1725
+ "type": "number"
1726
+ },
1727
+ {
1728
+ "type": "string",
1729
+ "enum": [
1730
+ "Infinity",
1731
+ "-Infinity",
1732
+ "NaN"
1733
+ ]
1734
+ }
1735
+ ]
1736
+ }
1737
+ },
1738
+ "required": [
1739
+ "device_code",
1740
+ "user_code",
1741
+ "verification_uri",
1742
+ "verification_uri_complete",
1743
+ "expires_in",
1744
+ "interval"
1745
+ ],
1746
+ "additionalProperties": true
1747
+ },
1748
+ "errors": {
1749
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1750
+ "type": "object",
1751
+ "properties": {
1752
+ "error": {
1753
+ "type": "string"
1754
+ },
1755
+ "error_description": {
1756
+ "type": "string"
1757
+ }
1758
+ },
1759
+ "required": [
1760
+ "error"
1761
+ ],
1762
+ "additionalProperties": true
1763
+ }
1764
+ }
1765
+ },
1766
+ "types": {
1767
+ "ServicePrincipal": {
1768
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1769
+ "type": "object",
1770
+ "properties": {
1771
+ "id": {
1772
+ "type": "string"
1773
+ },
1774
+ "orgId": {
1775
+ "type": "string"
1776
+ },
1777
+ "name": {
1778
+ "type": "string"
1779
+ },
1780
+ "description": {
1781
+ "type": "string"
1782
+ },
1783
+ "roles": {
1784
+ "type": "array",
1785
+ "items": {
1786
+ "type": "string"
1787
+ }
1788
+ },
1789
+ "createdBy": {
1790
+ "type": "string"
1791
+ },
1792
+ "createdAt": {
1793
+ "type": "string"
1794
+ },
1795
+ "disabled": {
1796
+ "type": "boolean"
1797
+ }
1798
+ },
1799
+ "required": [
1800
+ "id",
1801
+ "orgId",
1802
+ "name",
1803
+ "description",
1804
+ "roles",
1805
+ "createdBy",
1806
+ "createdAt",
1807
+ "disabled"
1808
+ ],
1809
+ "additionalProperties": true
1810
+ },
1811
+ "ApiTokenInfo": {
1812
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1813
+ "type": "object",
1814
+ "properties": {
1815
+ "id": {
1816
+ "type": "string"
1817
+ },
1818
+ "prefix": {
1819
+ "type": "string"
1820
+ },
1821
+ "kind": {
1822
+ "type": "string",
1823
+ "enum": [
1824
+ "personal",
1825
+ "service"
1826
+ ]
1827
+ },
1828
+ "subject": {
1829
+ "type": "string"
1830
+ },
1831
+ "orgId": {
1832
+ "type": "string"
1833
+ },
1834
+ "name": {
1835
+ "type": "string"
1836
+ },
1837
+ "scope": {
1838
+ "anyOf": [
1839
+ {
1840
+ "type": "array",
1841
+ "items": {
1842
+ "type": "string",
1843
+ "pattern": "^(actions|action:[A-Za-z0-9_.-]{1,200}|permission:[A-Za-z0-9_.-]{1,200})$"
1844
+ }
1845
+ },
1846
+ {
1847
+ "type": "null"
1848
+ }
1849
+ ]
1850
+ },
1851
+ "createdBy": {
1852
+ "type": "string"
1853
+ },
1854
+ "createdAt": {
1855
+ "type": "string"
1856
+ },
1857
+ "expiresAt": {
1858
+ "type": "string"
1859
+ },
1860
+ "revokedAt": {
1861
+ "anyOf": [
1862
+ {
1863
+ "type": "string"
1864
+ },
1865
+ {
1866
+ "type": "null"
1867
+ }
1868
+ ]
1869
+ },
1870
+ "lastUsedAt": {
1871
+ "anyOf": [
1872
+ {
1873
+ "type": "string"
1874
+ },
1875
+ {
1876
+ "type": "null"
1877
+ }
1878
+ ]
1879
+ }
1880
+ },
1881
+ "required": [
1882
+ "id",
1883
+ "prefix",
1884
+ "kind",
1885
+ "subject",
1886
+ "orgId",
1887
+ "name",
1888
+ "scope",
1889
+ "createdBy",
1890
+ "createdAt",
1891
+ "expiresAt",
1892
+ "revokedAt",
1893
+ "lastUsedAt"
1894
+ ],
1895
+ "additionalProperties": true
1896
+ },
1897
+ "ResolvedCredential": {
1898
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1899
+ "type": "object",
1900
+ "properties": {
1901
+ "actor": {
1902
+ "type": "object",
1903
+ "properties": {
1904
+ "userId": {
1905
+ "type": "string"
1906
+ },
1907
+ "orgId": {
1908
+ "type": "string"
1909
+ },
1910
+ "email": {
1911
+ "type": "string"
1912
+ },
1913
+ "emailVerified": {
1914
+ "type": "boolean"
1915
+ },
1916
+ "roles": {
1917
+ "type": "array",
1918
+ "items": {
1919
+ "type": "string"
1920
+ }
1921
+ },
1922
+ "groups": {
1923
+ "type": "array",
1924
+ "items": {
1925
+ "type": "string"
1926
+ }
1927
+ },
1928
+ "permissions": {
1929
+ "type": "array",
1930
+ "items": {
1931
+ "type": "string"
1932
+ }
1933
+ }
1934
+ },
1935
+ "required": [
1936
+ "userId",
1937
+ "orgId",
1938
+ "email",
1939
+ "roles",
1940
+ "groups",
1941
+ "permissions"
1942
+ ],
1943
+ "additionalProperties": true
1944
+ },
1945
+ "credential": {
1946
+ "type": "object",
1947
+ "properties": {
1948
+ "kind": {
1949
+ "type": "string",
1950
+ "enum": [
1951
+ "session",
1952
+ "api-token",
1953
+ "oauth"
1954
+ ]
1955
+ },
1956
+ "id": {
1957
+ "anyOf": [
1958
+ {
1959
+ "type": "string"
1960
+ },
1961
+ {
1962
+ "type": "null"
1963
+ }
1964
+ ]
1965
+ },
1966
+ "scope": {
1967
+ "anyOf": [
1968
+ {
1969
+ "type": "array",
1970
+ "items": {
1971
+ "type": "string",
1972
+ "pattern": "^(actions|action:[A-Za-z0-9_.-]{1,200}|permission:[A-Za-z0-9_.-]{1,200})$"
1973
+ }
1974
+ },
1975
+ {
1976
+ "type": "null"
1977
+ }
1978
+ ]
1979
+ }
1980
+ },
1981
+ "required": [
1982
+ "kind",
1983
+ "id",
1984
+ "scope"
1985
+ ],
1986
+ "additionalProperties": true
1987
+ }
1988
+ },
1989
+ "required": [
1990
+ "actor",
1991
+ "credential"
1992
+ ],
1993
+ "additionalProperties": true
1994
+ },
1995
+ "OAuthError": {
1996
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1997
+ "type": "object",
1998
+ "properties": {
1999
+ "error": {
2000
+ "type": "string"
2001
+ },
2002
+ "error_description": {
2003
+ "type": "string"
2004
+ }
2005
+ },
2006
+ "required": [
2007
+ "error"
2008
+ ],
2009
+ "additionalProperties": true
2010
+ },
2011
+ "AuthorizationServerMetadata": {
2012
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2013
+ "type": "object",
2014
+ "properties": {
2015
+ "issuer": {
2016
+ "type": "string"
2017
+ },
2018
+ "authorization_endpoint": {
2019
+ "type": "string"
2020
+ },
2021
+ "token_endpoint": {
2022
+ "type": "string"
2023
+ },
2024
+ "registration_endpoint": {
2025
+ "type": "string"
2026
+ },
2027
+ "revocation_endpoint": {
2028
+ "type": "string"
2029
+ },
2030
+ "device_authorization_endpoint": {
2031
+ "type": "string"
2032
+ },
2033
+ "response_types_supported": {
2034
+ "type": "array",
2035
+ "items": {
2036
+ "type": "string"
2037
+ }
2038
+ },
2039
+ "grant_types_supported": {
2040
+ "type": "array",
2041
+ "items": {
2042
+ "type": "string"
2043
+ }
2044
+ },
2045
+ "code_challenge_methods_supported": {
2046
+ "type": "array",
2047
+ "items": {
2048
+ "type": "string"
2049
+ }
2050
+ },
2051
+ "token_endpoint_auth_methods_supported": {
2052
+ "type": "array",
2053
+ "items": {
2054
+ "type": "string"
2055
+ }
2056
+ },
2057
+ "revocation_endpoint_auth_methods_supported": {
2058
+ "type": "array",
2059
+ "items": {
2060
+ "type": "string"
2061
+ }
2062
+ },
2063
+ "scopes_supported": {
2064
+ "type": "array",
2065
+ "items": {
2066
+ "type": "string"
2067
+ }
2068
+ }
2069
+ },
2070
+ "required": [
2071
+ "issuer",
2072
+ "authorization_endpoint",
2073
+ "token_endpoint",
2074
+ "registration_endpoint",
2075
+ "revocation_endpoint",
2076
+ "device_authorization_endpoint",
2077
+ "response_types_supported",
2078
+ "grant_types_supported",
2079
+ "code_challenge_methods_supported",
2080
+ "token_endpoint_auth_methods_supported",
2081
+ "revocation_endpoint_auth_methods_supported",
2082
+ "scopes_supported"
2083
+ ],
2084
+ "additionalProperties": true
2085
+ },
2086
+ "ProtectedResourceMetadata": {
2087
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2088
+ "type": "object",
2089
+ "properties": {
2090
+ "resource": {
2091
+ "type": "string"
2092
+ },
2093
+ "authorization_servers": {
2094
+ "type": "array",
2095
+ "items": {
2096
+ "type": "string"
2097
+ }
2098
+ },
2099
+ "bearer_methods_supported": {
2100
+ "type": "array",
2101
+ "items": {
2102
+ "type": "string"
2103
+ }
2104
+ },
2105
+ "scopes_supported": {
2106
+ "type": "array",
2107
+ "items": {
2108
+ "type": "string"
2109
+ }
2110
+ }
2111
+ },
2112
+ "required": [
2113
+ "resource",
2114
+ "authorization_servers",
2115
+ "bearer_methods_supported",
2116
+ "scopes_supported"
2117
+ ],
2118
+ "additionalProperties": true
2119
+ },
2120
+ "ClientRegistration": {
2121
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2122
+ "type": "object",
2123
+ "properties": {
2124
+ "client_id": {
2125
+ "type": "string"
2126
+ },
2127
+ "client_secret": {
2128
+ "type": "string"
2129
+ },
2130
+ "client_id_issued_at": {
2131
+ "anyOf": [
2132
+ {
2133
+ "type": "number"
2134
+ },
2135
+ {
2136
+ "type": "string",
2137
+ "enum": [
2138
+ "Infinity",
2139
+ "-Infinity",
2140
+ "NaN"
2141
+ ]
2142
+ }
2143
+ ]
2144
+ },
2145
+ "client_secret_expires_at": {
2146
+ "anyOf": [
2147
+ {
2148
+ "type": "number"
2149
+ },
2150
+ {
2151
+ "type": "string",
2152
+ "enum": [
2153
+ "Infinity",
2154
+ "-Infinity",
2155
+ "NaN"
2156
+ ]
2157
+ }
2158
+ ]
2159
+ },
2160
+ "client_name": {
2161
+ "type": "string"
2162
+ },
2163
+ "redirect_uris": {
2164
+ "type": "array",
2165
+ "items": {
2166
+ "type": "string"
2167
+ }
2168
+ },
2169
+ "grant_types": {
2170
+ "type": "array",
2171
+ "items": {
2172
+ "type": "string"
2173
+ }
2174
+ },
2175
+ "response_types": {
2176
+ "type": "array",
2177
+ "items": {
2178
+ "type": "string"
2179
+ }
2180
+ },
2181
+ "token_endpoint_auth_method": {
2182
+ "type": "string"
2183
+ }
2184
+ },
2185
+ "required": [
2186
+ "client_id",
2187
+ "client_id_issued_at",
2188
+ "client_name",
2189
+ "redirect_uris",
2190
+ "grant_types",
2191
+ "response_types",
2192
+ "token_endpoint_auth_method"
2193
+ ],
2194
+ "additionalProperties": true
2195
+ },
2196
+ "TokenResponse": {
2197
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2198
+ "type": "object",
2199
+ "properties": {
2200
+ "access_token": {
2201
+ "type": "string"
2202
+ },
2203
+ "token_type": {
2204
+ "type": "string",
2205
+ "enum": [
2206
+ "Bearer"
2207
+ ]
2208
+ },
2209
+ "expires_in": {
2210
+ "anyOf": [
2211
+ {
2212
+ "type": "number"
2213
+ },
2214
+ {
2215
+ "type": "string",
2216
+ "enum": [
2217
+ "Infinity",
2218
+ "-Infinity",
2219
+ "NaN"
2220
+ ]
2221
+ }
2222
+ ]
2223
+ },
2224
+ "refresh_token": {
2225
+ "type": "string"
2226
+ },
2227
+ "scope": {
2228
+ "type": "string"
2229
+ }
2230
+ },
2231
+ "required": [
2232
+ "access_token",
2233
+ "token_type",
2234
+ "expires_in",
2235
+ "refresh_token",
2236
+ "scope"
2237
+ ],
2238
+ "additionalProperties": true
2239
+ },
2240
+ "DeviceAuthorization": {
2241
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2242
+ "type": "object",
2243
+ "properties": {
2244
+ "device_code": {
2245
+ "type": "string"
2246
+ },
2247
+ "user_code": {
2248
+ "type": "string"
2249
+ },
2250
+ "verification_uri": {
2251
+ "type": "string"
2252
+ },
2253
+ "verification_uri_complete": {
2254
+ "type": "string"
2255
+ },
2256
+ "expires_in": {
2257
+ "anyOf": [
2258
+ {
2259
+ "type": "number"
2260
+ },
2261
+ {
2262
+ "type": "string",
2263
+ "enum": [
2264
+ "Infinity",
2265
+ "-Infinity",
2266
+ "NaN"
2267
+ ]
2268
+ }
2269
+ ]
2270
+ },
2271
+ "interval": {
2272
+ "anyOf": [
2273
+ {
2274
+ "type": "number"
2275
+ },
2276
+ {
2277
+ "type": "string",
2278
+ "enum": [
2279
+ "Infinity",
2280
+ "-Infinity",
2281
+ "NaN"
2282
+ ]
2283
+ }
2284
+ ]
2285
+ }
2286
+ },
2287
+ "required": [
2288
+ "device_code",
2289
+ "user_code",
2290
+ "verification_uri",
2291
+ "verification_uri_complete",
2292
+ "expires_in",
2293
+ "interval"
2294
+ ],
2295
+ "additionalProperties": true
2296
+ },
2297
+ "Scope": {
2298
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2299
+ "type": "string",
2300
+ "pattern": "^(actions|action:[A-Za-z0-9_.-]{1,200}|permission:[A-Za-z0-9_.-]{1,200})$"
2301
+ }
2302
+ }
2303
+ }