@qlever-llc/trellis 0.8.4 → 0.9.0-rc.3

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 (584) hide show
  1. package/README.md +1 -1
  2. package/esm/auth/browser/login.d.ts.map +1 -1
  3. package/esm/auth/browser/login.js +46 -3
  4. package/esm/auth/browser/portal.d.ts.map +1 -1
  5. package/esm/auth/browser/portal.js +5 -1
  6. package/esm/auth/browser/session.d.ts +18 -7
  7. package/esm/auth/browser/session.d.ts.map +1 -1
  8. package/esm/auth/browser/session.js +47 -11
  9. package/esm/auth/browser/storage.d.ts +6 -1
  10. package/esm/auth/browser/storage.d.ts.map +1 -1
  11. package/esm/auth/browser/storage.js +15 -3
  12. package/esm/auth/browser.d.ts +2 -2
  13. package/esm/auth/browser.d.ts.map +1 -1
  14. package/esm/auth/browser.js +1 -1
  15. package/esm/auth/device_activation.d.ts +36 -33
  16. package/esm/auth/device_activation.d.ts.map +1 -1
  17. package/esm/auth/device_activation.js +26 -22
  18. package/esm/auth/mod.d.ts +4 -4
  19. package/esm/auth/mod.d.ts.map +1 -1
  20. package/esm/auth/mod.js +2 -2
  21. package/esm/auth/proof.d.ts +3 -1
  22. package/esm/auth/proof.d.ts.map +1 -1
  23. package/esm/auth/proof.js +21 -15
  24. package/esm/auth/protocol.d.ts +2457 -941
  25. package/esm/auth/protocol.d.ts.map +1 -1
  26. package/esm/auth/protocol.js +747 -375
  27. package/esm/auth/schemas.d.ts +25 -4
  28. package/esm/auth/schemas.d.ts.map +1 -1
  29. package/esm/auth/schemas.js +14 -4
  30. package/esm/auth/session_auth.d.ts +1 -1
  31. package/esm/auth/session_auth.d.ts.map +1 -1
  32. package/esm/auth/session_auth.js +7 -1
  33. package/esm/client_connect.d.ts +2 -0
  34. package/esm/client_connect.d.ts.map +1 -1
  35. package/esm/client_connect.js +76 -15
  36. package/esm/contract.d.ts +3 -0
  37. package/esm/contract.d.ts.map +1 -1
  38. package/esm/contract_support/mod.d.ts +422 -43
  39. package/esm/contract_support/mod.d.ts.map +1 -1
  40. package/esm/contract_support/mod.js +734 -33
  41. package/esm/contract_support/protocol.d.ts +20 -5
  42. package/esm/contract_support/protocol.d.ts.map +1 -1
  43. package/esm/contract_support/protocol.js +18 -10
  44. package/esm/contract_support/runtime.d.ts +11 -0
  45. package/esm/contract_support/runtime.d.ts.map +1 -1
  46. package/esm/contract_support/schema_pointers.d.ts.map +1 -1
  47. package/esm/contract_support/schema_pointers.js +32 -14
  48. package/esm/device.d.ts +2 -0
  49. package/esm/device.d.ts.map +1 -1
  50. package/esm/device.js +3 -0
  51. package/esm/errors/AuthError.d.ts +1 -1
  52. package/esm/errors/AuthError.d.ts.map +1 -1
  53. package/esm/errors/AuthError.js +5 -1
  54. package/esm/errors/index.d.ts +4 -4
  55. package/esm/generated-sdk/auth/api.d.ts +27 -9
  56. package/esm/generated-sdk/auth/api.d.ts.map +1 -1
  57. package/esm/generated-sdk/auth/api.js +16 -590
  58. package/esm/generated-sdk/auth/client.d.ts +91 -85
  59. package/esm/generated-sdk/auth/client.d.ts.map +1 -1
  60. package/esm/generated-sdk/auth/contract.d.ts +1 -1
  61. package/esm/generated-sdk/auth/contract.d.ts.map +1 -1
  62. package/esm/generated-sdk/auth/contract.js +4 -2
  63. package/esm/generated-sdk/auth/mod.d.ts +1 -0
  64. package/esm/generated-sdk/auth/mod.d.ts.map +1 -1
  65. package/esm/generated-sdk/auth/owned_api.d.ts +3 -0
  66. package/esm/generated-sdk/auth/owned_api.d.ts.map +1 -0
  67. package/esm/generated-sdk/auth/owned_api.js +594 -0
  68. package/esm/generated-sdk/auth/schemas.d.ts +9959 -5160
  69. package/esm/generated-sdk/auth/schemas.d.ts.map +1 -1
  70. package/esm/generated-sdk/auth/schemas.js +136 -137
  71. package/esm/generated-sdk/auth/types.d.ts +2418 -1557
  72. package/esm/generated-sdk/auth/types.d.ts.map +1 -1
  73. package/esm/generated-sdk/auth/types.js +1 -1
  74. package/esm/generated-sdk/health/api.d.ts +24 -9
  75. package/esm/generated-sdk/health/api.d.ts.map +1 -1
  76. package/esm/generated-sdk/health/api.js +12 -20
  77. package/esm/generated-sdk/health/client.d.ts +2 -1
  78. package/esm/generated-sdk/health/client.d.ts.map +1 -1
  79. package/esm/generated-sdk/health/contract.d.ts.map +1 -1
  80. package/esm/generated-sdk/health/contract.js +2 -0
  81. package/esm/generated-sdk/health/owned_api.d.ts +3 -0
  82. package/esm/generated-sdk/health/owned_api.d.ts.map +1 -0
  83. package/esm/generated-sdk/health/owned_api.js +16 -0
  84. package/esm/generated-sdk/health/types.d.ts +2 -0
  85. package/esm/generated-sdk/health/types.d.ts.map +1 -1
  86. package/esm/generated-sdk/jobs/api.d.ts +33 -9
  87. package/esm/generated-sdk/jobs/api.d.ts.map +1 -1
  88. package/esm/generated-sdk/jobs/api.js +22 -87
  89. package/esm/generated-sdk/jobs/client.d.ts +9 -2
  90. package/esm/generated-sdk/jobs/client.d.ts.map +1 -1
  91. package/esm/generated-sdk/jobs/contract.d.ts +1 -1
  92. package/esm/generated-sdk/jobs/contract.d.ts.map +1 -1
  93. package/esm/generated-sdk/jobs/contract.js +4 -2
  94. package/esm/generated-sdk/jobs/owned_api.d.ts +3 -0
  95. package/esm/generated-sdk/jobs/owned_api.d.ts.map +1 -0
  96. package/esm/generated-sdk/jobs/owned_api.js +118 -0
  97. package/esm/generated-sdk/jobs/schemas.d.ts +336 -123
  98. package/esm/generated-sdk/jobs/schemas.d.ts.map +1 -1
  99. package/esm/generated-sdk/jobs/schemas.js +17 -15
  100. package/esm/generated-sdk/jobs/types.d.ts +144 -34
  101. package/esm/generated-sdk/jobs/types.d.ts.map +1 -1
  102. package/esm/generated-sdk/jobs/types.js +36 -1
  103. package/esm/generated-sdk/state/api.d.ts +27 -9
  104. package/esm/generated-sdk/state/api.d.ts.map +1 -1
  105. package/esm/generated-sdk/state/api.js +16 -71
  106. package/esm/generated-sdk/state/client.d.ts +4 -2
  107. package/esm/generated-sdk/state/client.d.ts.map +1 -1
  108. package/esm/generated-sdk/state/contract.d.ts +1 -1
  109. package/esm/generated-sdk/state/contract.d.ts.map +1 -1
  110. package/esm/generated-sdk/state/contract.js +4 -2
  111. package/esm/generated-sdk/state/owned_api.d.ts +3 -0
  112. package/esm/generated-sdk/state/owned_api.d.ts.map +1 -0
  113. package/esm/generated-sdk/state/owned_api.js +66 -0
  114. package/esm/generated-sdk/state/schemas.d.ts +264 -284
  115. package/esm/generated-sdk/state/schemas.d.ts.map +1 -1
  116. package/esm/generated-sdk/state/schemas.js +6 -6
  117. package/esm/generated-sdk/state/types.d.ts +24 -23
  118. package/esm/generated-sdk/state/types.d.ts.map +1 -1
  119. package/esm/generated-sdk/state/types.js +1 -1
  120. package/esm/generated-sdk/trellis-core/api.d.ts +27 -9
  121. package/esm/generated-sdk/trellis-core/api.d.ts.map +1 -1
  122. package/esm/generated-sdk/trellis-core/api.js +16 -39
  123. package/esm/generated-sdk/trellis-core/client.d.ts +5 -2
  124. package/esm/generated-sdk/trellis-core/client.d.ts.map +1 -1
  125. package/esm/generated-sdk/trellis-core/contract.d.ts +1 -1
  126. package/esm/generated-sdk/trellis-core/contract.d.ts.map +1 -1
  127. package/esm/generated-sdk/trellis-core/contract.js +4 -2
  128. package/esm/generated-sdk/trellis-core/owned_api.d.ts +3 -0
  129. package/esm/generated-sdk/trellis-core/owned_api.d.ts.map +1 -0
  130. package/esm/generated-sdk/trellis-core/owned_api.js +42 -0
  131. package/esm/generated-sdk/trellis-core/schemas.d.ts +259 -11
  132. package/esm/generated-sdk/trellis-core/schemas.d.ts.map +1 -1
  133. package/esm/generated-sdk/trellis-core/schemas.js +5 -3
  134. package/esm/generated-sdk/trellis-core/types.d.ts +56 -1
  135. package/esm/generated-sdk/trellis-core/types.d.ts.map +1 -1
  136. package/esm/generated-sdk/trellis-core/types.js +1 -1
  137. package/esm/helpers.d.ts.map +1 -1
  138. package/esm/index.d.ts +4 -3
  139. package/esm/index.d.ts.map +1 -1
  140. package/esm/index.js +1 -0
  141. package/esm/jobs.d.ts +10 -1
  142. package/esm/jobs.d.ts.map +1 -1
  143. package/esm/jobs.js +16 -1
  144. package/esm/kv.d.ts.map +1 -1
  145. package/esm/kv.js +10 -4
  146. package/esm/models/auth/rpc/Logout.d.ts +4 -4
  147. package/esm/models/auth/rpc/Logout.d.ts.map +1 -1
  148. package/esm/models/auth/rpc/Logout.js +2 -2
  149. package/esm/models/trellis/Page.d.ts +2 -0
  150. package/esm/models/trellis/Page.d.ts.map +1 -0
  151. package/esm/models/trellis/Page.js +1 -0
  152. package/esm/models/trellis/State.d.ts +1 -0
  153. package/esm/models/trellis/State.d.ts.map +1 -1
  154. package/esm/models/trellis/State.js +1 -0
  155. package/esm/models/trellis/rpc/StateList.d.ts +9 -12
  156. package/esm/models/trellis/rpc/StateList.d.ts.map +1 -1
  157. package/esm/models/trellis/rpc/StateList.js +16 -18
  158. package/esm/npm/src/auth/browser/login.d.ts.map +1 -1
  159. package/esm/npm/src/auth/browser/login.js +46 -3
  160. package/esm/npm/src/auth/browser/portal.d.ts.map +1 -1
  161. package/esm/npm/src/auth/browser/portal.js +5 -1
  162. package/esm/npm/src/auth/browser/session.d.ts +18 -7
  163. package/esm/npm/src/auth/browser/session.d.ts.map +1 -1
  164. package/esm/npm/src/auth/browser/session.js +47 -11
  165. package/esm/npm/src/auth/browser/storage.d.ts +6 -1
  166. package/esm/npm/src/auth/browser/storage.d.ts.map +1 -1
  167. package/esm/npm/src/auth/browser/storage.js +15 -3
  168. package/esm/npm/src/auth/browser.d.ts +2 -2
  169. package/esm/npm/src/auth/browser.d.ts.map +1 -1
  170. package/esm/npm/src/auth/browser.js +1 -1
  171. package/esm/npm/src/auth/device_activation.d.ts +36 -33
  172. package/esm/npm/src/auth/device_activation.d.ts.map +1 -1
  173. package/esm/npm/src/auth/device_activation.js +26 -22
  174. package/esm/npm/src/auth/mod.d.ts +4 -4
  175. package/esm/npm/src/auth/mod.d.ts.map +1 -1
  176. package/esm/npm/src/auth/mod.js +2 -2
  177. package/esm/npm/src/auth/proof.d.ts +3 -1
  178. package/esm/npm/src/auth/proof.d.ts.map +1 -1
  179. package/esm/npm/src/auth/proof.js +21 -15
  180. package/esm/npm/src/auth/protocol.d.ts +2457 -941
  181. package/esm/npm/src/auth/protocol.d.ts.map +1 -1
  182. package/esm/npm/src/auth/protocol.js +747 -375
  183. package/esm/npm/src/auth/schemas.d.ts +25 -4
  184. package/esm/npm/src/auth/schemas.d.ts.map +1 -1
  185. package/esm/npm/src/auth/schemas.js +14 -4
  186. package/esm/npm/src/auth/session_auth.d.ts +1 -1
  187. package/esm/npm/src/auth/session_auth.d.ts.map +1 -1
  188. package/esm/npm/src/auth/session_auth.js +7 -1
  189. package/esm/npm/src/client_connect.d.ts +2 -0
  190. package/esm/npm/src/client_connect.d.ts.map +1 -1
  191. package/esm/npm/src/client_connect.js +76 -15
  192. package/esm/npm/src/contract.d.ts +3 -0
  193. package/esm/npm/src/contract.d.ts.map +1 -1
  194. package/esm/npm/src/contract_support/mod.d.ts +422 -43
  195. package/esm/npm/src/contract_support/mod.d.ts.map +1 -1
  196. package/esm/npm/src/contract_support/mod.js +734 -33
  197. package/esm/npm/src/contract_support/protocol.d.ts +20 -5
  198. package/esm/npm/src/contract_support/protocol.d.ts.map +1 -1
  199. package/esm/npm/src/contract_support/protocol.js +18 -10
  200. package/esm/npm/src/contract_support/runtime.d.ts +11 -0
  201. package/esm/npm/src/contract_support/runtime.d.ts.map +1 -1
  202. package/esm/npm/src/contract_support/schema_pointers.d.ts.map +1 -1
  203. package/esm/npm/src/contract_support/schema_pointers.js +32 -14
  204. package/esm/npm/src/device/deno.d.ts.map +1 -1
  205. package/esm/npm/src/device/deno.js +6 -0
  206. package/esm/npm/src/device.d.ts +2 -0
  207. package/esm/npm/src/device.d.ts.map +1 -1
  208. package/esm/npm/src/device.js +3 -0
  209. package/esm/npm/src/errors/AuthError.d.ts +1 -1
  210. package/esm/npm/src/errors/AuthError.d.ts.map +1 -1
  211. package/esm/npm/src/errors/AuthError.js +5 -1
  212. package/esm/npm/src/errors/index.d.ts +4 -4
  213. package/esm/npm/src/generate.js +2 -19
  214. package/esm/npm/src/helpers.d.ts.map +1 -1
  215. package/esm/npm/src/index.d.ts +4 -3
  216. package/esm/npm/src/index.d.ts.map +1 -1
  217. package/esm/npm/src/index.js +1 -0
  218. package/esm/npm/src/jobs.d.ts +10 -1
  219. package/esm/npm/src/jobs.d.ts.map +1 -1
  220. package/esm/npm/src/jobs.js +16 -1
  221. package/esm/npm/src/kv.d.ts.map +1 -1
  222. package/esm/npm/src/kv.js +10 -4
  223. package/esm/npm/src/models/auth/rpc/Logout.d.ts +4 -4
  224. package/esm/npm/src/models/auth/rpc/Logout.d.ts.map +1 -1
  225. package/esm/npm/src/models/auth/rpc/Logout.js +2 -2
  226. package/esm/npm/src/models/trellis/Page.d.ts +2 -0
  227. package/esm/npm/src/models/trellis/Page.d.ts.map +1 -0
  228. package/esm/npm/src/models/trellis/Page.js +1 -0
  229. package/esm/npm/src/models/trellis/State.d.ts +1 -0
  230. package/esm/npm/src/models/trellis/State.d.ts.map +1 -1
  231. package/esm/npm/src/models/trellis/State.js +1 -0
  232. package/esm/npm/src/models/trellis/rpc/StateList.d.ts +9 -12
  233. package/esm/npm/src/models/trellis/rpc/StateList.d.ts.map +1 -1
  234. package/esm/npm/src/models/trellis/rpc/StateList.js +16 -18
  235. package/esm/npm/src/operations.d.ts +16 -7
  236. package/esm/npm/src/operations.d.ts.map +1 -1
  237. package/esm/npm/src/operations.js +84 -19
  238. package/esm/npm/src/runtime_transport.d.ts +2 -0
  239. package/esm/npm/src/runtime_transport.d.ts.map +1 -1
  240. package/esm/npm/src/runtime_transport.js +1 -0
  241. package/esm/npm/src/server/internal_jobs/active-job.d.ts +2 -1
  242. package/esm/npm/src/server/internal_jobs/active-job.d.ts.map +1 -1
  243. package/esm/npm/src/server/internal_jobs/active-job.js +3 -0
  244. package/esm/npm/src/server/internal_jobs/job-manager.d.ts +4 -1
  245. package/esm/npm/src/server/internal_jobs/job-manager.d.ts.map +1 -1
  246. package/esm/npm/src/server/internal_jobs/job-manager.js +61 -1
  247. package/esm/npm/src/server/internal_jobs/projection.js +1 -0
  248. package/esm/npm/src/server/internal_jobs/runtime-worker.d.ts +13 -1
  249. package/esm/npm/src/server/internal_jobs/runtime-worker.d.ts.map +1 -1
  250. package/esm/npm/src/server/internal_jobs/runtime-worker.js +73 -13
  251. package/esm/npm/src/server/internal_jobs/types.d.ts +19 -0
  252. package/esm/npm/src/server/internal_jobs/types.d.ts.map +1 -1
  253. package/esm/npm/src/server/internal_jobs/types.js +10 -0
  254. package/esm/npm/src/server/runtime.d.ts +1 -0
  255. package/esm/npm/src/server/runtime.d.ts.map +1 -1
  256. package/esm/npm/src/server/service.d.ts +10 -1
  257. package/esm/npm/src/server/service.d.ts.map +1 -1
  258. package/esm/npm/src/server/service.js +190 -64
  259. package/esm/npm/src/server/transfer.d.ts.map +1 -1
  260. package/esm/npm/src/server/transfer.js +4 -0
  261. package/esm/npm/src/server.d.ts.map +1 -1
  262. package/esm/npm/src/server.js +337 -34
  263. package/esm/npm/src/store.d.ts +8 -1
  264. package/esm/npm/src/store.d.ts.map +1 -1
  265. package/esm/npm/src/store.js +46 -8
  266. package/esm/npm/src/transfer.d.ts +3 -0
  267. package/esm/npm/src/transfer.d.ts.map +1 -1
  268. package/esm/npm/src/transfer.js +20 -30
  269. package/esm/npm/src/trellis.d.ts +85 -22
  270. package/esm/npm/src/trellis.d.ts.map +1 -1
  271. package/esm/npm/src/trellis.js +525 -61
  272. package/esm/operations.d.ts +16 -7
  273. package/esm/operations.d.ts.map +1 -1
  274. package/esm/operations.js +84 -19
  275. package/esm/runtime_transport.d.ts +2 -0
  276. package/esm/runtime_transport.d.ts.map +1 -1
  277. package/esm/runtime_transport.js +1 -0
  278. package/esm/store.d.ts +8 -1
  279. package/esm/store.d.ts.map +1 -1
  280. package/esm/store.js +46 -8
  281. package/esm/transfer.d.ts +3 -0
  282. package/esm/transfer.d.ts.map +1 -1
  283. package/esm/transfer.js +20 -30
  284. package/esm/trellis.d.ts +85 -22
  285. package/esm/trellis.d.ts.map +1 -1
  286. package/esm/trellis.js +525 -61
  287. package/package.json +6 -3
  288. package/script/auth/browser/login.d.ts.map +1 -1
  289. package/script/auth/browser/login.js +46 -3
  290. package/script/auth/browser/portal.d.ts.map +1 -1
  291. package/script/auth/browser/portal.js +5 -1
  292. package/script/auth/browser/session.d.ts +18 -7
  293. package/script/auth/browser/session.d.ts.map +1 -1
  294. package/script/auth/browser/session.js +47 -11
  295. package/script/auth/browser/storage.d.ts +6 -1
  296. package/script/auth/browser/storage.d.ts.map +1 -1
  297. package/script/auth/browser/storage.js +15 -3
  298. package/script/auth/browser.d.ts +2 -2
  299. package/script/auth/browser.d.ts.map +1 -1
  300. package/script/auth/browser.js +2 -1
  301. package/script/auth/device_activation.d.ts +36 -33
  302. package/script/auth/device_activation.d.ts.map +1 -1
  303. package/script/auth/device_activation.js +25 -21
  304. package/script/auth/mod.d.ts +4 -4
  305. package/script/auth/mod.d.ts.map +1 -1
  306. package/script/auth/mod.js +132 -137
  307. package/script/auth/proof.d.ts +3 -1
  308. package/script/auth/proof.d.ts.map +1 -1
  309. package/script/auth/proof.js +21 -15
  310. package/script/auth/protocol.d.ts +2457 -941
  311. package/script/auth/protocol.d.ts.map +1 -1
  312. package/script/auth/protocol.js +749 -377
  313. package/script/auth/schemas.d.ts +25 -4
  314. package/script/auth/schemas.d.ts.map +1 -1
  315. package/script/auth/schemas.js +16 -5
  316. package/script/auth/session_auth.d.ts +1 -1
  317. package/script/auth/session_auth.d.ts.map +1 -1
  318. package/script/auth/session_auth.js +7 -1
  319. package/script/client_connect.d.ts +2 -0
  320. package/script/client_connect.d.ts.map +1 -1
  321. package/script/client_connect.js +76 -15
  322. package/script/contract.d.ts +3 -0
  323. package/script/contract.d.ts.map +1 -1
  324. package/script/contract_support/mod.d.ts +422 -43
  325. package/script/contract_support/mod.d.ts.map +1 -1
  326. package/script/contract_support/mod.js +757 -51
  327. package/script/contract_support/protocol.d.ts +20 -5
  328. package/script/contract_support/protocol.d.ts.map +1 -1
  329. package/script/contract_support/protocol.js +20 -11
  330. package/script/contract_support/runtime.d.ts +11 -0
  331. package/script/contract_support/runtime.d.ts.map +1 -1
  332. package/script/contract_support/schema_pointers.d.ts.map +1 -1
  333. package/script/contract_support/schema_pointers.js +32 -14
  334. package/script/device.d.ts +2 -0
  335. package/script/device.d.ts.map +1 -1
  336. package/script/device.js +3 -0
  337. package/script/errors/AuthError.d.ts +1 -1
  338. package/script/errors/AuthError.d.ts.map +1 -1
  339. package/script/errors/AuthError.js +5 -1
  340. package/script/errors/index.d.ts +4 -4
  341. package/script/generated-sdk/auth/api.d.ts +27 -9
  342. package/script/generated-sdk/auth/api.d.ts.map +1 -1
  343. package/script/generated-sdk/auth/api.js +17 -591
  344. package/script/generated-sdk/auth/client.d.ts +91 -85
  345. package/script/generated-sdk/auth/client.d.ts.map +1 -1
  346. package/script/generated-sdk/auth/contract.d.ts +1 -1
  347. package/script/generated-sdk/auth/contract.d.ts.map +1 -1
  348. package/script/generated-sdk/auth/contract.js +4 -2
  349. package/script/generated-sdk/auth/mod.d.ts +1 -0
  350. package/script/generated-sdk/auth/mod.d.ts.map +1 -1
  351. package/script/generated-sdk/auth/owned_api.d.ts +3 -0
  352. package/script/generated-sdk/auth/owned_api.d.ts.map +1 -0
  353. package/script/generated-sdk/auth/owned_api.js +597 -0
  354. package/script/generated-sdk/auth/schemas.d.ts +9959 -5160
  355. package/script/generated-sdk/auth/schemas.d.ts.map +1 -1
  356. package/script/generated-sdk/auth/schemas.js +139 -140
  357. package/script/generated-sdk/auth/types.d.ts +2418 -1557
  358. package/script/generated-sdk/auth/types.d.ts.map +1 -1
  359. package/script/generated-sdk/auth/types.js +1 -1
  360. package/script/generated-sdk/health/api.d.ts +24 -9
  361. package/script/generated-sdk/health/api.d.ts.map +1 -1
  362. package/script/generated-sdk/health/api.js +13 -21
  363. package/script/generated-sdk/health/client.d.ts +2 -1
  364. package/script/generated-sdk/health/client.d.ts.map +1 -1
  365. package/script/generated-sdk/health/contract.d.ts.map +1 -1
  366. package/script/generated-sdk/health/contract.js +2 -0
  367. package/script/generated-sdk/health/owned_api.d.ts +3 -0
  368. package/script/generated-sdk/health/owned_api.d.ts.map +1 -0
  369. package/script/generated-sdk/health/owned_api.js +19 -0
  370. package/script/generated-sdk/health/types.d.ts +2 -0
  371. package/script/generated-sdk/health/types.d.ts.map +1 -1
  372. package/script/generated-sdk/jobs/api.d.ts +33 -9
  373. package/script/generated-sdk/jobs/api.d.ts.map +1 -1
  374. package/script/generated-sdk/jobs/api.js +23 -88
  375. package/script/generated-sdk/jobs/client.d.ts +9 -2
  376. package/script/generated-sdk/jobs/client.d.ts.map +1 -1
  377. package/script/generated-sdk/jobs/contract.d.ts +1 -1
  378. package/script/generated-sdk/jobs/contract.d.ts.map +1 -1
  379. package/script/generated-sdk/jobs/contract.js +4 -2
  380. package/script/generated-sdk/jobs/owned_api.d.ts +3 -0
  381. package/script/generated-sdk/jobs/owned_api.d.ts.map +1 -0
  382. package/script/generated-sdk/jobs/owned_api.js +154 -0
  383. package/script/generated-sdk/jobs/schemas.d.ts +336 -123
  384. package/script/generated-sdk/jobs/schemas.d.ts.map +1 -1
  385. package/script/generated-sdk/jobs/schemas.js +18 -16
  386. package/script/generated-sdk/jobs/types.d.ts +144 -34
  387. package/script/generated-sdk/jobs/types.d.ts.map +1 -1
  388. package/script/generated-sdk/jobs/types.js +38 -2
  389. package/script/generated-sdk/state/api.d.ts +27 -9
  390. package/script/generated-sdk/state/api.d.ts.map +1 -1
  391. package/script/generated-sdk/state/api.js +17 -72
  392. package/script/generated-sdk/state/client.d.ts +4 -2
  393. package/script/generated-sdk/state/client.d.ts.map +1 -1
  394. package/script/generated-sdk/state/contract.d.ts +1 -1
  395. package/script/generated-sdk/state/contract.d.ts.map +1 -1
  396. package/script/generated-sdk/state/contract.js +4 -2
  397. package/script/generated-sdk/state/owned_api.d.ts +3 -0
  398. package/script/generated-sdk/state/owned_api.d.ts.map +1 -0
  399. package/script/generated-sdk/state/owned_api.js +69 -0
  400. package/script/generated-sdk/state/schemas.d.ts +264 -284
  401. package/script/generated-sdk/state/schemas.d.ts.map +1 -1
  402. package/script/generated-sdk/state/schemas.js +6 -6
  403. package/script/generated-sdk/state/types.d.ts +24 -23
  404. package/script/generated-sdk/state/types.d.ts.map +1 -1
  405. package/script/generated-sdk/state/types.js +1 -1
  406. package/script/generated-sdk/trellis-core/api.d.ts +27 -9
  407. package/script/generated-sdk/trellis-core/api.d.ts.map +1 -1
  408. package/script/generated-sdk/trellis-core/api.js +17 -40
  409. package/script/generated-sdk/trellis-core/client.d.ts +5 -2
  410. package/script/generated-sdk/trellis-core/client.d.ts.map +1 -1
  411. package/script/generated-sdk/trellis-core/contract.d.ts +1 -1
  412. package/script/generated-sdk/trellis-core/contract.d.ts.map +1 -1
  413. package/script/generated-sdk/trellis-core/contract.js +4 -2
  414. package/script/generated-sdk/trellis-core/owned_api.d.ts +3 -0
  415. package/script/generated-sdk/trellis-core/owned_api.d.ts.map +1 -0
  416. package/script/generated-sdk/trellis-core/owned_api.js +45 -0
  417. package/script/generated-sdk/trellis-core/schemas.d.ts +259 -11
  418. package/script/generated-sdk/trellis-core/schemas.d.ts.map +1 -1
  419. package/script/generated-sdk/trellis-core/schemas.js +6 -4
  420. package/script/generated-sdk/trellis-core/types.d.ts +56 -1
  421. package/script/generated-sdk/trellis-core/types.d.ts.map +1 -1
  422. package/script/generated-sdk/trellis-core/types.js +1 -1
  423. package/script/helpers.d.ts.map +1 -1
  424. package/script/index.d.ts +4 -3
  425. package/script/index.d.ts.map +1 -1
  426. package/script/index.js +5 -2
  427. package/script/jobs.d.ts +10 -1
  428. package/script/jobs.d.ts.map +1 -1
  429. package/script/jobs.js +17 -2
  430. package/script/kv.d.ts.map +1 -1
  431. package/script/kv.js +10 -4
  432. package/script/models/auth/rpc/Logout.d.ts +4 -4
  433. package/script/models/auth/rpc/Logout.d.ts.map +1 -1
  434. package/script/models/auth/rpc/Logout.js +3 -3
  435. package/script/models/trellis/Page.d.ts +2 -0
  436. package/script/models/trellis/Page.d.ts.map +1 -0
  437. package/script/models/trellis/Page.js +6 -0
  438. package/script/models/trellis/State.d.ts +1 -0
  439. package/script/models/trellis/State.d.ts.map +1 -1
  440. package/script/models/trellis/State.js +1 -0
  441. package/script/models/trellis/rpc/StateList.d.ts +9 -12
  442. package/script/models/trellis/rpc/StateList.d.ts.map +1 -1
  443. package/script/models/trellis/rpc/StateList.js +16 -18
  444. package/script/npm/src/auth/browser/login.d.ts.map +1 -1
  445. package/script/npm/src/auth/browser/login.js +46 -3
  446. package/script/npm/src/auth/browser/portal.d.ts.map +1 -1
  447. package/script/npm/src/auth/browser/portal.js +5 -1
  448. package/script/npm/src/auth/browser/session.d.ts +18 -7
  449. package/script/npm/src/auth/browser/session.d.ts.map +1 -1
  450. package/script/npm/src/auth/browser/session.js +47 -11
  451. package/script/npm/src/auth/browser/storage.d.ts +6 -1
  452. package/script/npm/src/auth/browser/storage.d.ts.map +1 -1
  453. package/script/npm/src/auth/browser/storage.js +15 -3
  454. package/script/npm/src/auth/browser.d.ts +2 -2
  455. package/script/npm/src/auth/browser.d.ts.map +1 -1
  456. package/script/npm/src/auth/browser.js +2 -1
  457. package/script/npm/src/auth/device_activation.d.ts +36 -33
  458. package/script/npm/src/auth/device_activation.d.ts.map +1 -1
  459. package/script/npm/src/auth/device_activation.js +25 -21
  460. package/script/npm/src/auth/mod.d.ts +4 -4
  461. package/script/npm/src/auth/mod.d.ts.map +1 -1
  462. package/script/npm/src/auth/mod.js +132 -137
  463. package/script/npm/src/auth/proof.d.ts +3 -1
  464. package/script/npm/src/auth/proof.d.ts.map +1 -1
  465. package/script/npm/src/auth/proof.js +21 -15
  466. package/script/npm/src/auth/protocol.d.ts +2457 -941
  467. package/script/npm/src/auth/protocol.d.ts.map +1 -1
  468. package/script/npm/src/auth/protocol.js +749 -377
  469. package/script/npm/src/auth/schemas.d.ts +25 -4
  470. package/script/npm/src/auth/schemas.d.ts.map +1 -1
  471. package/script/npm/src/auth/schemas.js +16 -5
  472. package/script/npm/src/auth/session_auth.d.ts +1 -1
  473. package/script/npm/src/auth/session_auth.d.ts.map +1 -1
  474. package/script/npm/src/auth/session_auth.js +7 -1
  475. package/script/npm/src/client_connect.d.ts +2 -0
  476. package/script/npm/src/client_connect.d.ts.map +1 -1
  477. package/script/npm/src/client_connect.js +76 -15
  478. package/script/npm/src/contract.d.ts +3 -0
  479. package/script/npm/src/contract.d.ts.map +1 -1
  480. package/script/npm/src/contract_support/mod.d.ts +422 -43
  481. package/script/npm/src/contract_support/mod.d.ts.map +1 -1
  482. package/script/npm/src/contract_support/mod.js +757 -51
  483. package/script/npm/src/contract_support/protocol.d.ts +20 -5
  484. package/script/npm/src/contract_support/protocol.d.ts.map +1 -1
  485. package/script/npm/src/contract_support/protocol.js +20 -11
  486. package/script/npm/src/contract_support/runtime.d.ts +11 -0
  487. package/script/npm/src/contract_support/runtime.d.ts.map +1 -1
  488. package/script/npm/src/contract_support/schema_pointers.d.ts.map +1 -1
  489. package/script/npm/src/contract_support/schema_pointers.js +32 -14
  490. package/script/npm/src/device/deno.d.ts.map +1 -1
  491. package/script/npm/src/device/deno.js +6 -0
  492. package/script/npm/src/device.d.ts +2 -0
  493. package/script/npm/src/device.d.ts.map +1 -1
  494. package/script/npm/src/device.js +3 -0
  495. package/script/npm/src/errors/AuthError.d.ts +1 -1
  496. package/script/npm/src/errors/AuthError.d.ts.map +1 -1
  497. package/script/npm/src/errors/AuthError.js +5 -1
  498. package/script/npm/src/errors/index.d.ts +4 -4
  499. package/script/npm/src/generate.js +2 -19
  500. package/script/npm/src/helpers.d.ts.map +1 -1
  501. package/script/npm/src/index.d.ts +4 -3
  502. package/script/npm/src/index.d.ts.map +1 -1
  503. package/script/npm/src/index.js +5 -2
  504. package/script/npm/src/jobs.d.ts +10 -1
  505. package/script/npm/src/jobs.d.ts.map +1 -1
  506. package/script/npm/src/jobs.js +17 -2
  507. package/script/npm/src/kv.d.ts.map +1 -1
  508. package/script/npm/src/kv.js +10 -4
  509. package/script/npm/src/models/auth/rpc/Logout.d.ts +4 -4
  510. package/script/npm/src/models/auth/rpc/Logout.d.ts.map +1 -1
  511. package/script/npm/src/models/auth/rpc/Logout.js +3 -3
  512. package/script/npm/src/models/trellis/Page.d.ts +2 -0
  513. package/script/npm/src/models/trellis/Page.d.ts.map +1 -0
  514. package/script/npm/src/models/trellis/Page.js +6 -0
  515. package/script/npm/src/models/trellis/State.d.ts +1 -0
  516. package/script/npm/src/models/trellis/State.d.ts.map +1 -1
  517. package/script/npm/src/models/trellis/State.js +1 -0
  518. package/script/npm/src/models/trellis/rpc/StateList.d.ts +9 -12
  519. package/script/npm/src/models/trellis/rpc/StateList.d.ts.map +1 -1
  520. package/script/npm/src/models/trellis/rpc/StateList.js +16 -18
  521. package/script/npm/src/operations.d.ts +16 -7
  522. package/script/npm/src/operations.d.ts.map +1 -1
  523. package/script/npm/src/operations.js +84 -19
  524. package/script/npm/src/runtime_transport.d.ts +2 -0
  525. package/script/npm/src/runtime_transport.d.ts.map +1 -1
  526. package/script/npm/src/runtime_transport.js +2 -1
  527. package/script/npm/src/server/internal_jobs/active-job.d.ts +2 -1
  528. package/script/npm/src/server/internal_jobs/active-job.d.ts.map +1 -1
  529. package/script/npm/src/server/internal_jobs/active-job.js +3 -0
  530. package/script/npm/src/server/internal_jobs/job-manager.d.ts +4 -1
  531. package/script/npm/src/server/internal_jobs/job-manager.d.ts.map +1 -1
  532. package/script/npm/src/server/internal_jobs/job-manager.js +61 -1
  533. package/script/npm/src/server/internal_jobs/projection.js +1 -0
  534. package/script/npm/src/server/internal_jobs/runtime-worker.d.ts +13 -1
  535. package/script/npm/src/server/internal_jobs/runtime-worker.d.ts.map +1 -1
  536. package/script/npm/src/server/internal_jobs/runtime-worker.js +74 -13
  537. package/script/npm/src/server/internal_jobs/types.d.ts +19 -0
  538. package/script/npm/src/server/internal_jobs/types.d.ts.map +1 -1
  539. package/script/npm/src/server/internal_jobs/types.js +11 -1
  540. package/script/npm/src/server/runtime.d.ts +1 -0
  541. package/script/npm/src/server/runtime.d.ts.map +1 -1
  542. package/script/npm/src/server/service.d.ts +10 -1
  543. package/script/npm/src/server/service.d.ts.map +1 -1
  544. package/script/npm/src/server/service.js +188 -62
  545. package/script/npm/src/server/transfer.d.ts.map +1 -1
  546. package/script/npm/src/server/transfer.js +4 -0
  547. package/script/npm/src/server.d.ts.map +1 -1
  548. package/script/npm/src/server.js +336 -33
  549. package/script/npm/src/store.d.ts +8 -1
  550. package/script/npm/src/store.d.ts.map +1 -1
  551. package/script/npm/src/store.js +46 -8
  552. package/script/npm/src/transfer.d.ts +3 -0
  553. package/script/npm/src/transfer.d.ts.map +1 -1
  554. package/script/npm/src/transfer.js +19 -29
  555. package/script/npm/src/trellis.d.ts +85 -22
  556. package/script/npm/src/trellis.d.ts.map +1 -1
  557. package/script/npm/src/trellis.js +525 -61
  558. package/script/operations.d.ts +16 -7
  559. package/script/operations.d.ts.map +1 -1
  560. package/script/operations.js +84 -19
  561. package/script/runtime_transport.d.ts +2 -0
  562. package/script/runtime_transport.d.ts.map +1 -1
  563. package/script/runtime_transport.js +2 -1
  564. package/script/store.d.ts +8 -1
  565. package/script/store.d.ts.map +1 -1
  566. package/script/store.js +46 -8
  567. package/script/transfer.d.ts +3 -0
  568. package/script/transfer.d.ts.map +1 -1
  569. package/script/transfer.js +19 -29
  570. package/script/trellis.d.ts +85 -22
  571. package/script/trellis.d.ts.map +1 -1
  572. package/script/trellis.js +525 -61
  573. package/esm/models/trellis/Paginate.d.ts +0 -7
  574. package/esm/models/trellis/Paginate.d.ts.map +0 -1
  575. package/esm/models/trellis/Paginate.js +0 -5
  576. package/esm/npm/src/models/trellis/Paginate.d.ts +0 -7
  577. package/esm/npm/src/models/trellis/Paginate.d.ts.map +0 -1
  578. package/esm/npm/src/models/trellis/Paginate.js +0 -5
  579. package/script/models/trellis/Paginate.d.ts +0 -7
  580. package/script/models/trellis/Paginate.d.ts.map +0 -1
  581. package/script/models/trellis/Paginate.js +0 -11
  582. package/script/npm/src/models/trellis/Paginate.d.ts +0 -7
  583. package/script/npm/src/models/trellis/Paginate.d.ts.map +0 -1
  584. package/script/npm/src/models/trellis/Paginate.js +0 -11
@@ -1,8 +1,8 @@
1
1
  import { API } from "./api.js";
2
2
  const CONTRACT_MODULE_METADATA = Symbol.for("@qlever-llc/trellis/contracts/contract-module");
3
3
  export const CONTRACT_ID = "trellis.auth@v1";
4
- export const CONTRACT_DIGEST = "zNuTif9NvFL58ujjrgEpfJiv9S-kQSuuBSRK8pVWiR8";
5
- export const CONTRACT = { "description": "Provide Trellis authentication, session, deployment, instance, and admin RPCs.", "displayName": "Trellis Auth", "events": { "Auth.Connect": { "capabilities": { "publish": ["service:events:auth"], "subscribe": ["service:events:auth"] }, "event": { "schema": "AuthConnectEvent" }, "subject": "events.v1.Auth.Connect", "version": "v1" }, "Auth.ConnectionKicked": { "capabilities": { "publish": ["service:events:auth"], "subscribe": ["service:events:auth"] }, "event": { "schema": "AuthConnectionKickedEvent" }, "subject": "events.v1.Auth.ConnectionKicked", "version": "v1" }, "Auth.DeviceActivated": { "capabilities": { "publish": ["service:events:auth"], "subscribe": ["device.review", "service:events:auth"] }, "event": { "schema": "AuthDeviceActivatedEvent" }, "params": ["/deploymentId"], "subject": "events.v1.Auth.DeviceActivated.{/deploymentId}", "version": "v1" }, "Auth.DeviceActivationApproved": { "capabilities": { "publish": ["service:events:auth"], "subscribe": ["device.review"] }, "event": { "schema": "AuthDeviceActivationApprovedEvent" }, "params": ["/deploymentId"], "subject": "events.v1.Auth.DeviceActivationApproved.{/deploymentId}", "version": "v1" }, "Auth.DeviceActivationRequested": { "capabilities": { "publish": ["service:events:auth"], "subscribe": ["device.review"] }, "event": { "schema": "AuthDeviceActivationRequestedEvent" }, "params": ["/deploymentId"], "subject": "events.v1.Auth.DeviceActivationRequested.{/deploymentId}", "version": "v1" }, "Auth.DeviceActivationReviewRequested": { "capabilities": { "publish": ["service:events:auth"], "subscribe": ["device.review"] }, "event": { "schema": "AuthDeviceActivationReviewRequestedEvent" }, "params": ["/deploymentId"], "subject": "events.v1.Auth.DeviceActivationReviewRequested.{/deploymentId}", "version": "v1" }, "Auth.Disconnect": { "capabilities": { "publish": ["service:events:auth"], "subscribe": ["service:events:auth"] }, "event": { "schema": "AuthDisconnectEvent" }, "subject": "events.v1.Auth.Disconnect", "version": "v1" }, "Auth.SessionRevoked": { "capabilities": { "publish": ["service:events:auth"], "subscribe": ["service:events:auth"] }, "event": { "schema": "AuthSessionRevokedEvent" }, "subject": "events.v1.Auth.SessionRevoked", "version": "v1" } }, "format": "trellis.contract.v1", "id": "trellis.auth@v1", "kind": "service", "operations": { "Auth.ActivateDevice": { "capabilities": { "call": [] }, "input": { "schema": "AuthActivateDeviceRequest" }, "output": { "schema": "AuthActivateDeviceResponse" }, "progress": { "schema": "AuthActivateDeviceProgress" }, "subject": "operations.v1.Auth.ActivateDevice", "version": "v1" } }, "rpc": { "Auth.ApplyDeviceDeploymentContract": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthApplyDeviceDeploymentContractRequest" }, "output": { "schema": "AuthApplyDeviceDeploymentContractResponse" }, "subject": "rpc.v1.Auth.ApplyDeviceDeploymentContract", "version": "v1" }, "Auth.ApplyServiceDeploymentContract": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthApplyServiceDeploymentContractRequest" }, "output": { "schema": "AuthApplyServiceDeploymentContractResponse" }, "subject": "rpc.v1.Auth.ApplyServiceDeploymentContract", "version": "v1" }, "Auth.ClearDevicePortalSelection": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthClearDevicePortalSelectionRequest" }, "output": { "schema": "AuthClearDevicePortalSelectionResponse" }, "subject": "rpc.v1.Auth.ClearDevicePortalSelection", "version": "v1" }, "Auth.ClearLoginPortalSelection": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthClearLoginPortalSelectionRequest" }, "output": { "schema": "AuthClearLoginPortalSelectionResponse" }, "subject": "rpc.v1.Auth.ClearLoginPortalSelection", "version": "v1" }, "Auth.CreateDeviceDeployment": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthCreateDeviceDeploymentRequest" }, "output": { "schema": "AuthCreateDeviceDeploymentResponse" }, "subject": "rpc.v1.Auth.CreateDeviceDeployment", "version": "v1" }, "Auth.CreatePortal": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthCreatePortalRequest" }, "output": { "schema": "AuthCreatePortalResponse" }, "subject": "rpc.v1.Auth.CreatePortal", "version": "v1" }, "Auth.CreateServiceDeployment": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthCreateServiceDeploymentRequest" }, "output": { "schema": "AuthCreateServiceDeploymentResponse" }, "subject": "rpc.v1.Auth.CreateServiceDeployment", "version": "v1" }, "Auth.DecideDeviceActivationReview": { "capabilities": { "call": ["admin", "device.review"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthDecideDeviceActivationReviewRequest" }, "output": { "schema": "AuthDecideDeviceActivationReviewResponse" }, "subject": "rpc.v1.Auth.DecideDeviceActivationReview", "version": "v1" }, "Auth.DisableDeviceDeployment": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthDisableDeviceDeploymentRequest" }, "output": { "schema": "AuthDisableDeviceDeploymentResponse" }, "subject": "rpc.v1.Auth.DisableDeviceDeployment", "version": "v1" }, "Auth.DisableDeviceInstance": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthDisableDeviceInstanceRequest" }, "output": { "schema": "AuthDisableDeviceInstanceResponse" }, "subject": "rpc.v1.Auth.DisableDeviceInstance", "version": "v1" }, "Auth.DisableInstanceGrantPolicy": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthDisableInstanceGrantPolicyRequest" }, "output": { "schema": "AuthDisableInstanceGrantPolicyResponse" }, "subject": "rpc.v1.Auth.DisableInstanceGrantPolicy", "version": "v1" }, "Auth.DisablePortal": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthDisablePortalRequest" }, "output": { "schema": "AuthDisablePortalResponse" }, "subject": "rpc.v1.Auth.DisablePortal", "version": "v1" }, "Auth.DisablePortalProfile": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthDisablePortalProfileRequest" }, "output": { "schema": "AuthDisablePortalProfileResponse" }, "subject": "rpc.v1.Auth.DisablePortalProfile", "version": "v1" }, "Auth.DisableServiceDeployment": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthDisableServiceDeploymentRequest" }, "output": { "schema": "AuthDisableServiceDeploymentResponse" }, "subject": "rpc.v1.Auth.DisableServiceDeployment", "version": "v1" }, "Auth.DisableServiceInstance": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthDisableServiceInstanceRequest" }, "output": { "schema": "AuthDisableServiceInstanceResponse" }, "subject": "rpc.v1.Auth.DisableServiceInstance", "version": "v1" }, "Auth.EnableDeviceDeployment": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthEnableDeviceDeploymentRequest" }, "output": { "schema": "AuthEnableDeviceDeploymentResponse" }, "subject": "rpc.v1.Auth.EnableDeviceDeployment", "version": "v1" }, "Auth.EnableDeviceInstance": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthEnableDeviceInstanceRequest" }, "output": { "schema": "AuthEnableDeviceInstanceResponse" }, "subject": "rpc.v1.Auth.EnableDeviceInstance", "version": "v1" }, "Auth.EnableServiceDeployment": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthEnableServiceDeploymentRequest" }, "output": { "schema": "AuthEnableServiceDeploymentResponse" }, "subject": "rpc.v1.Auth.EnableServiceDeployment", "version": "v1" }, "Auth.EnableServiceInstance": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthEnableServiceInstanceRequest" }, "output": { "schema": "AuthEnableServiceInstanceResponse" }, "subject": "rpc.v1.Auth.EnableServiceInstance", "version": "v1" }, "Auth.GetDeviceConnectInfo": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthGetDeviceConnectInfoRequest" }, "output": { "schema": "AuthGetDeviceConnectInfoResponse" }, "subject": "rpc.v1.Auth.GetDeviceConnectInfo", "version": "v1" }, "Auth.GetDevicePortalDefault": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthGetDevicePortalDefaultRequest" }, "output": { "schema": "AuthGetDevicePortalDefaultResponse" }, "subject": "rpc.v1.Auth.GetDevicePortalDefault", "version": "v1" }, "Auth.GetInstalledContract": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthGetInstalledContractRequest" }, "output": { "schema": "AuthGetInstalledContractResponse" }, "subject": "rpc.v1.Auth.GetInstalledContract", "version": "v1" }, "Auth.GetLoginPortalDefault": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthGetLoginPortalDefaultRequest" }, "output": { "schema": "AuthGetLoginPortalDefaultResponse" }, "subject": "rpc.v1.Auth.GetLoginPortalDefault", "version": "v1" }, "Auth.Health": { "capabilities": { "call": [] }, "errors": [{ "type": "UnexpectedError" }], "input": { "schema": "HealthRequest" }, "output": { "schema": "HealthResponse" }, "subject": "rpc.v1.Auth.Health", "version": "v1" }, "Auth.KickConnection": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthKickConnectionRequest" }, "output": { "schema": "AuthKickConnectionResponse" }, "subject": "rpc.v1.Auth.KickConnection", "version": "v1" }, "Auth.ListApprovals": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthListApprovalsRequest" }, "output": { "schema": "AuthListApprovalsResponse" }, "subject": "rpc.v1.Auth.ListApprovals", "version": "v1" }, "Auth.ListConnections": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthListConnectionsRequest" }, "output": { "schema": "AuthListConnectionsResponse" }, "subject": "rpc.v1.Auth.ListConnections", "version": "v1" }, "Auth.ListDeviceActivationReviews": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthListDeviceActivationReviewsRequest" }, "output": { "schema": "AuthListDeviceActivationReviewsResponse" }, "subject": "rpc.v1.Auth.ListDeviceActivationReviews", "version": "v1" }, "Auth.ListDeviceActivations": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthListDeviceActivationsRequest" }, "output": { "schema": "AuthListDeviceActivationsResponse" }, "subject": "rpc.v1.Auth.ListDeviceActivations", "version": "v1" }, "Auth.ListDeviceDeployments": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthListDeviceDeploymentsRequest" }, "output": { "schema": "AuthListDeviceDeploymentsResponse" }, "subject": "rpc.v1.Auth.ListDeviceDeployments", "version": "v1" }, "Auth.ListDeviceInstances": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthListDeviceInstancesRequest" }, "output": { "schema": "AuthListDeviceInstancesResponse" }, "subject": "rpc.v1.Auth.ListDeviceInstances", "version": "v1" }, "Auth.ListDevicePortalSelections": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthListDevicePortalSelectionsRequest" }, "output": { "schema": "AuthListDevicePortalSelectionsResponse" }, "subject": "rpc.v1.Auth.ListDevicePortalSelections", "version": "v1" }, "Auth.ListInstalledContracts": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthListInstalledContractsRequest" }, "output": { "schema": "AuthListInstalledContractsResponse" }, "subject": "rpc.v1.Auth.ListInstalledContracts", "version": "v1" }, "Auth.ListInstanceGrantPolicies": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthListInstanceGrantPoliciesRequest" }, "output": { "schema": "AuthListInstanceGrantPoliciesResponse" }, "subject": "rpc.v1.Auth.ListInstanceGrantPolicies", "version": "v1" }, "Auth.ListLoginPortalSelections": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthListLoginPortalSelectionsRequest" }, "output": { "schema": "AuthListLoginPortalSelectionsResponse" }, "subject": "rpc.v1.Auth.ListLoginPortalSelections", "version": "v1" }, "Auth.ListPortalProfiles": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthListPortalProfilesRequest" }, "output": { "schema": "AuthListPortalProfilesResponse" }, "subject": "rpc.v1.Auth.ListPortalProfiles", "version": "v1" }, "Auth.ListPortals": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthListPortalsRequest" }, "output": { "schema": "AuthListPortalsResponse" }, "subject": "rpc.v1.Auth.ListPortals", "version": "v1" }, "Auth.ListServiceDeployments": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthListServiceDeploymentsRequest" }, "output": { "schema": "AuthListServiceDeploymentsResponse" }, "subject": "rpc.v1.Auth.ListServiceDeployments", "version": "v1" }, "Auth.ListServiceInstances": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthListServiceInstancesRequest" }, "output": { "schema": "AuthListServiceInstancesResponse" }, "subject": "rpc.v1.Auth.ListServiceInstances", "version": "v1" }, "Auth.ListSessions": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthListSessionsRequest" }, "output": { "schema": "AuthListSessionsResponse" }, "subject": "rpc.v1.Auth.ListSessions", "version": "v1" }, "Auth.ListUserGrants": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthListUserGrantsRequest" }, "output": { "schema": "AuthListUserGrantsResponse" }, "subject": "rpc.v1.Auth.ListUserGrants", "version": "v1" }, "Auth.ListUsers": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthListUsersRequest" }, "output": { "schema": "AuthListUsersResponse" }, "subject": "rpc.v1.Auth.ListUsers", "version": "v1" }, "Auth.Logout": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthLogoutRequest" }, "output": { "schema": "AuthLogoutResponse" }, "subject": "rpc.v1.Auth.Logout", "version": "v1" }, "Auth.Me": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthMeRequest" }, "output": { "schema": "AuthMeResponse" }, "subject": "rpc.v1.Auth.Me", "version": "v1" }, "Auth.ProvisionDeviceInstance": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthProvisionDeviceInstanceRequest" }, "output": { "schema": "AuthProvisionDeviceInstanceResponse" }, "subject": "rpc.v1.Auth.ProvisionDeviceInstance", "version": "v1" }, "Auth.ProvisionServiceInstance": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthProvisionServiceInstanceRequest" }, "output": { "schema": "AuthProvisionServiceInstanceResponse" }, "subject": "rpc.v1.Auth.ProvisionServiceInstance", "version": "v1" }, "Auth.RemoveDeviceDeployment": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthRemoveDeviceDeploymentRequest" }, "output": { "schema": "AuthRemoveDeviceDeploymentResponse" }, "subject": "rpc.v1.Auth.RemoveDeviceDeployment", "version": "v1" }, "Auth.RemoveDeviceInstance": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthRemoveDeviceInstanceRequest" }, "output": { "schema": "AuthRemoveDeviceInstanceResponse" }, "subject": "rpc.v1.Auth.RemoveDeviceInstance", "version": "v1" }, "Auth.RemoveServiceDeployment": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthRemoveServiceDeploymentRequest" }, "output": { "schema": "AuthRemoveServiceDeploymentResponse" }, "subject": "rpc.v1.Auth.RemoveServiceDeployment", "version": "v1" }, "Auth.RemoveServiceInstance": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthRemoveServiceInstanceRequest" }, "output": { "schema": "AuthRemoveServiceInstanceResponse" }, "subject": "rpc.v1.Auth.RemoveServiceInstance", "version": "v1" }, "Auth.RevokeApproval": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthRevokeApprovalRequest" }, "output": { "schema": "AuthRevokeApprovalResponse" }, "subject": "rpc.v1.Auth.RevokeApproval", "version": "v1" }, "Auth.RevokeDeviceActivation": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthRevokeDeviceActivationRequest" }, "output": { "schema": "AuthRevokeDeviceActivationResponse" }, "subject": "rpc.v1.Auth.RevokeDeviceActivation", "version": "v1" }, "Auth.RevokeSession": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthRevokeSessionRequest" }, "output": { "schema": "AuthRevokeSessionResponse" }, "subject": "rpc.v1.Auth.RevokeSession", "version": "v1" }, "Auth.RevokeUserGrant": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthRevokeUserGrantRequest" }, "output": { "schema": "AuthRevokeUserGrantResponse" }, "subject": "rpc.v1.Auth.RevokeUserGrant", "version": "v1" }, "Auth.SetDevicePortalDefault": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthSetDevicePortalDefaultRequest" }, "output": { "schema": "AuthSetDevicePortalDefaultResponse" }, "subject": "rpc.v1.Auth.SetDevicePortalDefault", "version": "v1" }, "Auth.SetDevicePortalSelection": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthSetDevicePortalSelectionRequest" }, "output": { "schema": "AuthSetDevicePortalSelectionResponse" }, "subject": "rpc.v1.Auth.SetDevicePortalSelection", "version": "v1" }, "Auth.SetLoginPortalDefault": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthSetLoginPortalDefaultRequest" }, "output": { "schema": "AuthSetLoginPortalDefaultResponse" }, "subject": "rpc.v1.Auth.SetLoginPortalDefault", "version": "v1" }, "Auth.SetLoginPortalSelection": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthSetLoginPortalSelectionRequest" }, "output": { "schema": "AuthSetLoginPortalSelectionResponse" }, "subject": "rpc.v1.Auth.SetLoginPortalSelection", "version": "v1" }, "Auth.SetPortalProfile": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthSetPortalProfileRequest" }, "output": { "schema": "AuthSetPortalProfileResponse" }, "subject": "rpc.v1.Auth.SetPortalProfile", "version": "v1" }, "Auth.UnapplyDeviceDeploymentContract": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthUnapplyDeviceDeploymentContractRequest" }, "output": { "schema": "AuthUnapplyDeviceDeploymentContractResponse" }, "subject": "rpc.v1.Auth.UnapplyDeviceDeploymentContract", "version": "v1" }, "Auth.UnapplyServiceDeploymentContract": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthUnapplyServiceDeploymentContractRequest" }, "output": { "schema": "AuthUnapplyServiceDeploymentContractResponse" }, "subject": "rpc.v1.Auth.UnapplyServiceDeploymentContract", "version": "v1" }, "Auth.UpdateUser": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthUpdateUserRequest" }, "output": { "schema": "AuthUpdateUserResponse" }, "subject": "rpc.v1.Auth.UpdateUser", "version": "v1" }, "Auth.UpsertInstanceGrantPolicy": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthUpsertInstanceGrantPolicyRequest" }, "output": { "schema": "AuthUpsertInstanceGrantPolicyResponse" }, "subject": "rpc.v1.Auth.UpsertInstanceGrantPolicy", "version": "v1" }, "Auth.ValidateRequest": { "capabilities": { "call": ["service"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthValidateRequestRequest" }, "output": { "schema": "AuthValidateRequestResponse" }, "subject": "rpc.v1.Auth.ValidateRequest", "version": "v1" } }, "schemas": { "AuthActivateDeviceProgress": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "requestedAt": { "format": "date-time", "type": "string" }, "reviewId": { "minLength": 1, "type": "string" }, "status": { "const": "pending_review", "type": "string" } }, "required": ["status", "reviewId", "instanceId", "deploymentId", "requestedAt"], "type": "object" }, "AuthActivateDeviceRequest": { "properties": { "flowId": { "minLength": 1, "type": "string" } }, "required": ["flowId"], "type": "object" }, "AuthActivateDeviceResponse": { "anyOf": [{ "properties": { "activatedAt": { "format": "date-time", "type": "string" }, "confirmationCode": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "status": { "const": "activated", "type": "string" } }, "required": ["status", "instanceId", "deploymentId", "activatedAt"], "type": "object" }, { "properties": { "reason": { "minLength": 1, "type": "string" }, "status": { "const": "rejected", "type": "string" } }, "required": ["status"], "type": "object" }] }, "AuthApplyDeviceDeploymentContractRequest": { "properties": { "contract": { "type": "object" }, "deploymentId": { "minLength": 1, "type": "string" }, "expectedDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "replaceExisting": { "type": "boolean" } }, "required": ["deploymentId", "contract", "expectedDigest"], "type": "object" }, "AuthApplyDeviceDeploymentContractResponse": { "properties": { "contract": { "properties": { "description": { "minLength": 1, "type": "string" }, "digest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "displayName": { "minLength": 1, "type": "string" }, "id": { "minLength": 1, "type": "string" }, "installedAt": { "format": "date-time", "type": "string" } }, "required": ["digest", "id", "displayName", "description", "installedAt"], "type": "object" }, "deployment": { "properties": { "appliedContracts": { "items": { "additionalProperties": false, "properties": { "allowedDigests": { "items": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "type": "array" }, "contractId": { "minLength": 1, "type": "string" } }, "required": ["contractId", "allowedDigests"], "type": "object" }, "type": "array" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "reviewMode": { "anyOf": [{ "const": "none", "type": "string" }, { "const": "required", "type": "string" }] } }, "required": ["deploymentId", "disabled", "appliedContracts"], "type": "object" } }, "required": ["deployment", "contract"], "type": "object" }, "AuthApplyServiceDeploymentContractRequest": { "properties": { "contract": { "type": "object" }, "deploymentId": { "minLength": 1, "type": "string" }, "expectedDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "replaceExisting": { "type": "boolean" } }, "required": ["deploymentId", "contract", "expectedDigest"], "type": "object" }, "AuthApplyServiceDeploymentContractResponse": { "properties": { "contract": { "properties": { "description": { "minLength": 1, "type": "string" }, "digest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "displayName": { "minLength": 1, "type": "string" }, "id": { "minLength": 1, "type": "string" }, "installedAt": { "format": "date-time", "type": "string" } }, "required": ["digest", "id", "displayName", "description", "installedAt"], "type": "object" }, "deployment": { "properties": { "appliedContracts": { "items": { "properties": { "allowedDigests": { "items": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "type": "array" }, "contractId": { "minLength": 1, "type": "string" }, "resourceBindingsByDigest": { "patternProperties": { "^[A-Za-z0-9_-]+$": { "properties": { "jobs": { "properties": { "namespace": { "minLength": 1, "type": "string" }, "queues": { "patternProperties": { "^.*$": { "properties": { "ackWaitMs": { "minimum": 1, "type": "integer" }, "backoffMs": { "items": { "minimum": 0, "type": "integer" }, "type": "array" }, "concurrency": { "minimum": 1, "type": "integer" }, "consumerName": { "minLength": 1, "type": "string" }, "defaultDeadlineMs": { "minimum": 1, "type": "integer" }, "dlq": { "type": "boolean" }, "logs": { "type": "boolean" }, "maxDeliver": { "minimum": 1, "type": "integer" }, "payload": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "publishPrefix": { "minLength": 1, "type": "string" }, "queueType": { "minLength": 1, "type": "string" }, "result": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "workSubject": { "minLength": 1, "type": "string" } }, "required": ["queueType", "publishPrefix", "workSubject", "consumerName", "payload", "maxDeliver", "backoffMs", "ackWaitMs", "progress", "logs", "dlq", "concurrency"], "type": "object" } }, "type": "object" }, "workStream": { "minLength": 1, "type": "string" } }, "required": ["namespace", "queues"], "type": "object" }, "kv": { "patternProperties": { "^.*$": { "properties": { "bucket": { "minLength": 1, "type": "string" }, "history": { "minimum": 1, "type": "integer" }, "maxValueBytes": { "minimum": 1, "type": "integer" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["bucket", "history", "ttlMs"], "type": "object" } }, "type": "object" }, "store": { "patternProperties": { "^.*$": { "properties": { "maxObjectBytes": { "minimum": 1, "type": "integer" }, "maxTotalBytes": { "minimum": 1, "type": "integer" }, "name": { "minLength": 1, "type": "string" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["name", "ttlMs"], "type": "object" } }, "type": "object" } }, "type": "object" } }, "type": "object" } }, "required": ["contractId", "allowedDigests"], "type": "object" }, "type": "array" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "namespaces": { "items": { "minLength": 1, "type": "string" }, "type": "array" } }, "required": ["deploymentId", "namespaces", "disabled", "appliedContracts"], "type": "object" } }, "required": ["deployment", "contract"], "type": "object" }, "AuthClearDevicePortalSelectionRequest": { "properties": { "deploymentId": { "minLength": 1, "type": "string" } }, "required": ["deploymentId"], "type": "object" }, "AuthClearDevicePortalSelectionResponse": { "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthClearLoginPortalSelectionRequest": { "properties": { "contractId": { "minLength": 1, "type": "string" } }, "required": ["contractId"], "type": "object" }, "AuthClearLoginPortalSelectionResponse": { "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthConnectEvent": { "allOf": [{ "properties": { "header": { "properties": { "id": { "type": "string" }, "time": { "format": "date-time", "type": "string" } }, "required": ["id", "time"], "type": "object" } }, "required": ["header"], "type": "object" }, { "properties": { "id": { "type": "string" }, "origin": { "type": "string" }, "sessionKey": { "type": "string" }, "userNkey": { "type": "string" } }, "required": ["origin", "id", "sessionKey", "userNkey"], "type": "object" }] }, "AuthConnectionKickedEvent": { "allOf": [{ "properties": { "header": { "properties": { "id": { "type": "string" }, "time": { "format": "date-time", "type": "string" } }, "required": ["id", "time"], "type": "object" } }, "required": ["header"], "type": "object" }, { "properties": { "id": { "type": "string" }, "kickedBy": { "type": "string" }, "origin": { "type": "string" }, "userNkey": { "type": "string" } }, "required": ["origin", "id", "userNkey", "kickedBy"], "type": "object" }] }, "AuthCreateDeviceDeploymentRequest": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "reviewMode": { "anyOf": [{ "const": "none", "type": "string" }, { "const": "required", "type": "string" }] } }, "required": ["deploymentId"], "type": "object" }, "AuthCreateDeviceDeploymentResponse": { "properties": { "deployment": { "properties": { "appliedContracts": { "items": { "additionalProperties": false, "properties": { "allowedDigests": { "items": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "type": "array" }, "contractId": { "minLength": 1, "type": "string" } }, "required": ["contractId", "allowedDigests"], "type": "object" }, "type": "array" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "reviewMode": { "anyOf": [{ "const": "none", "type": "string" }, { "const": "required", "type": "string" }] } }, "required": ["deploymentId", "disabled", "appliedContracts"], "type": "object" } }, "required": ["deployment"], "type": "object" }, "AuthCreatePortalRequest": { "properties": { "entryUrl": { "minLength": 1, "type": "string" }, "portalId": { "minLength": 1, "type": "string" } }, "required": ["portalId", "entryUrl"], "type": "object" }, "AuthCreatePortalResponse": { "properties": { "portal": { "properties": { "disabled": { "type": "boolean" }, "entryUrl": { "minLength": 1, "type": "string" }, "portalId": { "minLength": 1, "type": "string" } }, "required": ["portalId", "entryUrl", "disabled"], "type": "object" } }, "required": ["portal"], "type": "object" }, "AuthCreateServiceDeploymentRequest": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "namespaces": { "items": { "minLength": 1, "type": "string" }, "type": "array" } }, "required": ["deploymentId", "namespaces"], "type": "object" }, "AuthCreateServiceDeploymentResponse": { "properties": { "deployment": { "properties": { "appliedContracts": { "items": { "properties": { "allowedDigests": { "items": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "type": "array" }, "contractId": { "minLength": 1, "type": "string" }, "resourceBindingsByDigest": { "patternProperties": { "^[A-Za-z0-9_-]+$": { "properties": { "jobs": { "properties": { "namespace": { "minLength": 1, "type": "string" }, "queues": { "patternProperties": { "^.*$": { "properties": { "ackWaitMs": { "minimum": 1, "type": "integer" }, "backoffMs": { "items": { "minimum": 0, "type": "integer" }, "type": "array" }, "concurrency": { "minimum": 1, "type": "integer" }, "consumerName": { "minLength": 1, "type": "string" }, "defaultDeadlineMs": { "minimum": 1, "type": "integer" }, "dlq": { "type": "boolean" }, "logs": { "type": "boolean" }, "maxDeliver": { "minimum": 1, "type": "integer" }, "payload": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "publishPrefix": { "minLength": 1, "type": "string" }, "queueType": { "minLength": 1, "type": "string" }, "result": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "workSubject": { "minLength": 1, "type": "string" } }, "required": ["queueType", "publishPrefix", "workSubject", "consumerName", "payload", "maxDeliver", "backoffMs", "ackWaitMs", "progress", "logs", "dlq", "concurrency"], "type": "object" } }, "type": "object" }, "workStream": { "minLength": 1, "type": "string" } }, "required": ["namespace", "queues"], "type": "object" }, "kv": { "patternProperties": { "^.*$": { "properties": { "bucket": { "minLength": 1, "type": "string" }, "history": { "minimum": 1, "type": "integer" }, "maxValueBytes": { "minimum": 1, "type": "integer" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["bucket", "history", "ttlMs"], "type": "object" } }, "type": "object" }, "store": { "patternProperties": { "^.*$": { "properties": { "maxObjectBytes": { "minimum": 1, "type": "integer" }, "maxTotalBytes": { "minimum": 1, "type": "integer" }, "name": { "minLength": 1, "type": "string" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["name", "ttlMs"], "type": "object" } }, "type": "object" } }, "type": "object" } }, "type": "object" } }, "required": ["contractId", "allowedDigests"], "type": "object" }, "type": "array" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "namespaces": { "items": { "minLength": 1, "type": "string" }, "type": "array" } }, "required": ["deploymentId", "namespaces", "disabled", "appliedContracts"], "type": "object" } }, "required": ["deployment"], "type": "object" }, "AuthDecideDeviceActivationReviewRequest": { "properties": { "decision": { "anyOf": [{ "const": "approve", "type": "string" }, { "const": "reject", "type": "string" }] }, "reason": { "minLength": 1, "type": "string" }, "reviewId": { "minLength": 1, "type": "string" } }, "required": ["reviewId", "decision"], "type": "object" }, "AuthDecideDeviceActivationReviewResponse": { "properties": { "activation": { "properties": { "activatedAt": { "format": "date-time", "type": "string" }, "activatedBy": { "properties": { "id": { "minLength": 1, "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["origin", "id"], "type": "object" }, "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "revokedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "state": { "anyOf": [{ "const": "activated", "type": "string" }, { "const": "revoked", "type": "string" }] } }, "required": ["instanceId", "publicIdentityKey", "deploymentId", "state", "activatedAt", "revokedAt"], "type": "object" }, "confirmationCode": { "minLength": 1, "type": "string" }, "review": { "properties": { "decidedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "reason": { "minLength": 1, "type": "string" }, "requestedAt": { "format": "date-time", "type": "string" }, "reviewId": { "minLength": 1, "type": "string" }, "state": { "anyOf": [{ "const": "pending", "type": "string" }, { "const": "approved", "type": "string" }, { "const": "rejected", "type": "string" }] } }, "required": ["reviewId", "instanceId", "publicIdentityKey", "deploymentId", "state", "requestedAt", "decidedAt"], "type": "object" } }, "required": ["review"], "type": "object" }, "AuthDeviceActivatedEvent": { "properties": { "activatedAt": { "format": "date-time", "type": "string" }, "activatedBy": { "properties": { "id": { "minLength": 1, "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["origin", "id"], "type": "object" }, "deploymentId": { "minLength": 1, "type": "string" }, "flowId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "reviewId": { "minLength": 1, "type": "string" } }, "required": ["instanceId", "publicIdentityKey", "deploymentId", "activatedAt", "activatedBy"], "type": "object" }, "AuthDeviceActivationApprovedEvent": { "properties": { "approvedAt": { "format": "date-time", "type": "string" }, "approvedBy": { "properties": { "id": { "minLength": 1, "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["id"], "type": "object" }, "deploymentId": { "minLength": 1, "type": "string" }, "flowId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "requestedAt": { "format": "date-time", "type": "string" }, "requestedBy": { "properties": { "id": { "minLength": 1, "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["origin", "id"], "type": "object" }, "reviewId": { "minLength": 1, "type": "string" } }, "required": ["reviewId", "flowId", "instanceId", "publicIdentityKey", "deploymentId", "requestedAt", "approvedAt", "requestedBy", "approvedBy"], "type": "object" }, "AuthDeviceActivationRequestedEvent": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "flowId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "requestedAt": { "format": "date-time", "type": "string" }, "requestedBy": { "properties": { "id": { "minLength": 1, "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["origin", "id"], "type": "object" } }, "required": ["flowId", "instanceId", "publicIdentityKey", "deploymentId", "requestedAt", "requestedBy"], "type": "object" }, "AuthDeviceActivationReviewRequestedEvent": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "flowId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "requestedAt": { "format": "date-time", "type": "string" }, "requestedBy": { "properties": { "id": { "minLength": 1, "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["origin", "id"], "type": "object" }, "reviewId": { "minLength": 1, "type": "string" } }, "required": ["reviewId", "flowId", "instanceId", "publicIdentityKey", "deploymentId", "requestedAt", "requestedBy"], "type": "object" }, "AuthDisableDeviceDeploymentRequest": { "properties": { "deploymentId": { "minLength": 1, "type": "string" } }, "required": ["deploymentId"], "type": "object" }, "AuthDisableDeviceDeploymentResponse": { "properties": { "deployment": { "properties": { "appliedContracts": { "items": { "additionalProperties": false, "properties": { "allowedDigests": { "items": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "type": "array" }, "contractId": { "minLength": 1, "type": "string" } }, "required": ["contractId", "allowedDigests"], "type": "object" }, "type": "array" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "reviewMode": { "anyOf": [{ "const": "none", "type": "string" }, { "const": "required", "type": "string" }] } }, "required": ["deploymentId", "disabled", "appliedContracts"], "type": "object" } }, "required": ["deployment"], "type": "object" }, "AuthDisableDeviceInstanceRequest": { "properties": { "instanceId": { "minLength": 1, "type": "string" } }, "required": ["instanceId"], "type": "object" }, "AuthDisableDeviceInstanceResponse": { "properties": { "instance": { "properties": { "activatedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "createdAt": { "format": "date-time", "type": "string" }, "currentContractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "currentContractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "metadata": { "patternProperties": { "^.*$": { "minLength": 1, "type": "string" } }, "type": "object" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "revokedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "state": { "anyOf": [{ "const": "registered", "type": "string" }, { "const": "activated", "type": "string" }, { "const": "revoked", "type": "string" }, { "const": "disabled", "type": "string" }] } }, "required": ["instanceId", "publicIdentityKey", "deploymentId", "state", "createdAt", "activatedAt", "revokedAt"], "type": "object" } }, "required": ["instance"], "type": "object" }, "AuthDisableInstanceGrantPolicyRequest": { "properties": { "contractId": { "minLength": 1, "type": "string" } }, "required": ["contractId"], "type": "object" }, "AuthDisableInstanceGrantPolicyResponse": { "properties": { "policy": { "properties": { "allowedOrigins": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contractId": { "minLength": 1, "type": "string" }, "createdAt": { "format": "date-time", "type": "string" }, "disabled": { "type": "boolean" }, "impliedCapabilities": { "items": { "type": "string" }, "type": "array" }, "source": { "anyOf": [{ "properties": { "createdBy": { "properties": { "id": { "minLength": 1, "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["origin", "id"], "type": "object" }, "kind": { "const": "admin_policy", "type": "string" }, "updatedBy": { "properties": { "id": { "minLength": 1, "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["origin", "id"], "type": "object" } }, "required": ["kind"], "type": "object" }, { "properties": { "entryUrl": { "minLength": 1, "type": "string" }, "kind": { "const": "portal_profile", "type": "string" }, "portalId": { "minLength": 1, "type": "string" } }, "required": ["kind", "portalId", "entryUrl"], "type": "object" }] }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["contractId", "impliedCapabilities", "disabled", "createdAt", "updatedAt", "source"], "type": "object" } }, "required": ["policy"], "type": "object" }, "AuthDisablePortalProfileRequest": { "properties": { "portalId": { "minLength": 1, "type": "string" } }, "required": ["portalId"], "type": "object" }, "AuthDisablePortalProfileResponse": { "properties": { "profile": { "properties": { "allowedOrigins": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contractId": { "minLength": 1, "type": "string" }, "createdAt": { "format": "date-time", "type": "string" }, "disabled": { "type": "boolean" }, "entryUrl": { "minLength": 1, "type": "string" }, "impliedCapabilities": { "items": { "type": "string" }, "type": "array" }, "portalId": { "minLength": 1, "type": "string" }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["portalId", "entryUrl", "contractId", "impliedCapabilities", "disabled", "createdAt", "updatedAt"], "type": "object" } }, "required": ["profile"], "type": "object" }, "AuthDisablePortalRequest": { "properties": { "portalId": { "minLength": 1, "type": "string" } }, "required": ["portalId"], "type": "object" }, "AuthDisablePortalResponse": { "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthDisableServiceDeploymentRequest": { "properties": { "deploymentId": { "minLength": 1, "type": "string" } }, "required": ["deploymentId"], "type": "object" }, "AuthDisableServiceDeploymentResponse": { "properties": { "deployment": { "properties": { "appliedContracts": { "items": { "properties": { "allowedDigests": { "items": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "type": "array" }, "contractId": { "minLength": 1, "type": "string" }, "resourceBindingsByDigest": { "patternProperties": { "^[A-Za-z0-9_-]+$": { "properties": { "jobs": { "properties": { "namespace": { "minLength": 1, "type": "string" }, "queues": { "patternProperties": { "^.*$": { "properties": { "ackWaitMs": { "minimum": 1, "type": "integer" }, "backoffMs": { "items": { "minimum": 0, "type": "integer" }, "type": "array" }, "concurrency": { "minimum": 1, "type": "integer" }, "consumerName": { "minLength": 1, "type": "string" }, "defaultDeadlineMs": { "minimum": 1, "type": "integer" }, "dlq": { "type": "boolean" }, "logs": { "type": "boolean" }, "maxDeliver": { "minimum": 1, "type": "integer" }, "payload": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "publishPrefix": { "minLength": 1, "type": "string" }, "queueType": { "minLength": 1, "type": "string" }, "result": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "workSubject": { "minLength": 1, "type": "string" } }, "required": ["queueType", "publishPrefix", "workSubject", "consumerName", "payload", "maxDeliver", "backoffMs", "ackWaitMs", "progress", "logs", "dlq", "concurrency"], "type": "object" } }, "type": "object" }, "workStream": { "minLength": 1, "type": "string" } }, "required": ["namespace", "queues"], "type": "object" }, "kv": { "patternProperties": { "^.*$": { "properties": { "bucket": { "minLength": 1, "type": "string" }, "history": { "minimum": 1, "type": "integer" }, "maxValueBytes": { "minimum": 1, "type": "integer" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["bucket", "history", "ttlMs"], "type": "object" } }, "type": "object" }, "store": { "patternProperties": { "^.*$": { "properties": { "maxObjectBytes": { "minimum": 1, "type": "integer" }, "maxTotalBytes": { "minimum": 1, "type": "integer" }, "name": { "minLength": 1, "type": "string" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["name", "ttlMs"], "type": "object" } }, "type": "object" } }, "type": "object" } }, "type": "object" } }, "required": ["contractId", "allowedDigests"], "type": "object" }, "type": "array" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "namespaces": { "items": { "minLength": 1, "type": "string" }, "type": "array" } }, "required": ["deploymentId", "namespaces", "disabled", "appliedContracts"], "type": "object" } }, "required": ["deployment"], "type": "object" }, "AuthDisableServiceInstanceRequest": { "properties": { "instanceId": { "minLength": 1, "type": "string" } }, "required": ["instanceId"], "type": "object" }, "AuthDisableServiceInstanceResponse": { "properties": { "instance": { "properties": { "capabilities": { "items": { "type": "string" }, "type": "array" }, "createdAt": { "format": "date-time", "type": "string" }, "currentContractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "currentContractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "instanceId": { "minLength": 1, "type": "string" }, "instanceKey": { "minLength": 1, "type": "string" }, "resourceBindings": { "properties": { "jobs": { "properties": { "namespace": { "minLength": 1, "type": "string" }, "queues": { "patternProperties": { "^.*$": { "properties": { "ackWaitMs": { "minimum": 1, "type": "integer" }, "backoffMs": { "items": { "minimum": 0, "type": "integer" }, "type": "array" }, "concurrency": { "minimum": 1, "type": "integer" }, "consumerName": { "minLength": 1, "type": "string" }, "defaultDeadlineMs": { "minimum": 1, "type": "integer" }, "dlq": { "type": "boolean" }, "logs": { "type": "boolean" }, "maxDeliver": { "minimum": 1, "type": "integer" }, "payload": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "publishPrefix": { "minLength": 1, "type": "string" }, "queueType": { "minLength": 1, "type": "string" }, "result": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "workSubject": { "minLength": 1, "type": "string" } }, "required": ["queueType", "publishPrefix", "workSubject", "consumerName", "payload", "maxDeliver", "backoffMs", "ackWaitMs", "progress", "logs", "dlq", "concurrency"], "type": "object" } }, "type": "object" }, "workStream": { "minLength": 1, "type": "string" } }, "required": ["namespace", "queues"], "type": "object" }, "kv": { "patternProperties": { "^.*$": { "properties": { "bucket": { "minLength": 1, "type": "string" }, "history": { "minimum": 1, "type": "integer" }, "maxValueBytes": { "minimum": 1, "type": "integer" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["bucket", "history", "ttlMs"], "type": "object" } }, "type": "object" }, "store": { "patternProperties": { "^.*$": { "properties": { "maxObjectBytes": { "minimum": 1, "type": "integer" }, "maxTotalBytes": { "minimum": 1, "type": "integer" }, "name": { "minLength": 1, "type": "string" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["name", "ttlMs"], "type": "object" } }, "type": "object" } }, "type": "object" } }, "required": ["instanceId", "deploymentId", "instanceKey", "disabled", "capabilities", "createdAt"], "type": "object" } }, "required": ["instance"], "type": "object" }, "AuthDisconnectEvent": { "allOf": [{ "properties": { "header": { "properties": { "id": { "type": "string" }, "time": { "format": "date-time", "type": "string" } }, "required": ["id", "time"], "type": "object" } }, "required": ["header"], "type": "object" }, { "properties": { "id": { "type": "string" }, "origin": { "type": "string" }, "sessionKey": { "type": "string" }, "userNkey": { "type": "string" } }, "required": ["origin", "id", "sessionKey", "userNkey"], "type": "object" }] }, "AuthEnableDeviceDeploymentRequest": { "properties": { "deploymentId": { "minLength": 1, "type": "string" } }, "required": ["deploymentId"], "type": "object" }, "AuthEnableDeviceDeploymentResponse": { "properties": { "deployment": { "properties": { "appliedContracts": { "items": { "additionalProperties": false, "properties": { "allowedDigests": { "items": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "type": "array" }, "contractId": { "minLength": 1, "type": "string" } }, "required": ["contractId", "allowedDigests"], "type": "object" }, "type": "array" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "reviewMode": { "anyOf": [{ "const": "none", "type": "string" }, { "const": "required", "type": "string" }] } }, "required": ["deploymentId", "disabled", "appliedContracts"], "type": "object" } }, "required": ["deployment"], "type": "object" }, "AuthEnableDeviceInstanceRequest": { "properties": { "instanceId": { "minLength": 1, "type": "string" } }, "required": ["instanceId"], "type": "object" }, "AuthEnableDeviceInstanceResponse": { "properties": { "instance": { "properties": { "activatedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "createdAt": { "format": "date-time", "type": "string" }, "currentContractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "currentContractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "metadata": { "patternProperties": { "^.*$": { "minLength": 1, "type": "string" } }, "type": "object" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "revokedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "state": { "anyOf": [{ "const": "registered", "type": "string" }, { "const": "activated", "type": "string" }, { "const": "revoked", "type": "string" }, { "const": "disabled", "type": "string" }] } }, "required": ["instanceId", "publicIdentityKey", "deploymentId", "state", "createdAt", "activatedAt", "revokedAt"], "type": "object" } }, "required": ["instance"], "type": "object" }, "AuthEnableServiceDeploymentRequest": { "properties": { "deploymentId": { "minLength": 1, "type": "string" } }, "required": ["deploymentId"], "type": "object" }, "AuthEnableServiceDeploymentResponse": { "properties": { "deployment": { "properties": { "appliedContracts": { "items": { "properties": { "allowedDigests": { "items": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "type": "array" }, "contractId": { "minLength": 1, "type": "string" }, "resourceBindingsByDigest": { "patternProperties": { "^[A-Za-z0-9_-]+$": { "properties": { "jobs": { "properties": { "namespace": { "minLength": 1, "type": "string" }, "queues": { "patternProperties": { "^.*$": { "properties": { "ackWaitMs": { "minimum": 1, "type": "integer" }, "backoffMs": { "items": { "minimum": 0, "type": "integer" }, "type": "array" }, "concurrency": { "minimum": 1, "type": "integer" }, "consumerName": { "minLength": 1, "type": "string" }, "defaultDeadlineMs": { "minimum": 1, "type": "integer" }, "dlq": { "type": "boolean" }, "logs": { "type": "boolean" }, "maxDeliver": { "minimum": 1, "type": "integer" }, "payload": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "publishPrefix": { "minLength": 1, "type": "string" }, "queueType": { "minLength": 1, "type": "string" }, "result": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "workSubject": { "minLength": 1, "type": "string" } }, "required": ["queueType", "publishPrefix", "workSubject", "consumerName", "payload", "maxDeliver", "backoffMs", "ackWaitMs", "progress", "logs", "dlq", "concurrency"], "type": "object" } }, "type": "object" }, "workStream": { "minLength": 1, "type": "string" } }, "required": ["namespace", "queues"], "type": "object" }, "kv": { "patternProperties": { "^.*$": { "properties": { "bucket": { "minLength": 1, "type": "string" }, "history": { "minimum": 1, "type": "integer" }, "maxValueBytes": { "minimum": 1, "type": "integer" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["bucket", "history", "ttlMs"], "type": "object" } }, "type": "object" }, "store": { "patternProperties": { "^.*$": { "properties": { "maxObjectBytes": { "minimum": 1, "type": "integer" }, "maxTotalBytes": { "minimum": 1, "type": "integer" }, "name": { "minLength": 1, "type": "string" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["name", "ttlMs"], "type": "object" } }, "type": "object" } }, "type": "object" } }, "type": "object" } }, "required": ["contractId", "allowedDigests"], "type": "object" }, "type": "array" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "namespaces": { "items": { "minLength": 1, "type": "string" }, "type": "array" } }, "required": ["deploymentId", "namespaces", "disabled", "appliedContracts"], "type": "object" } }, "required": ["deployment"], "type": "object" }, "AuthEnableServiceInstanceRequest": { "properties": { "instanceId": { "minLength": 1, "type": "string" } }, "required": ["instanceId"], "type": "object" }, "AuthEnableServiceInstanceResponse": { "properties": { "instance": { "properties": { "capabilities": { "items": { "type": "string" }, "type": "array" }, "createdAt": { "format": "date-time", "type": "string" }, "currentContractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "currentContractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "instanceId": { "minLength": 1, "type": "string" }, "instanceKey": { "minLength": 1, "type": "string" }, "resourceBindings": { "properties": { "jobs": { "properties": { "namespace": { "minLength": 1, "type": "string" }, "queues": { "patternProperties": { "^.*$": { "properties": { "ackWaitMs": { "minimum": 1, "type": "integer" }, "backoffMs": { "items": { "minimum": 0, "type": "integer" }, "type": "array" }, "concurrency": { "minimum": 1, "type": "integer" }, "consumerName": { "minLength": 1, "type": "string" }, "defaultDeadlineMs": { "minimum": 1, "type": "integer" }, "dlq": { "type": "boolean" }, "logs": { "type": "boolean" }, "maxDeliver": { "minimum": 1, "type": "integer" }, "payload": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "publishPrefix": { "minLength": 1, "type": "string" }, "queueType": { "minLength": 1, "type": "string" }, "result": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "workSubject": { "minLength": 1, "type": "string" } }, "required": ["queueType", "publishPrefix", "workSubject", "consumerName", "payload", "maxDeliver", "backoffMs", "ackWaitMs", "progress", "logs", "dlq", "concurrency"], "type": "object" } }, "type": "object" }, "workStream": { "minLength": 1, "type": "string" } }, "required": ["namespace", "queues"], "type": "object" }, "kv": { "patternProperties": { "^.*$": { "properties": { "bucket": { "minLength": 1, "type": "string" }, "history": { "minimum": 1, "type": "integer" }, "maxValueBytes": { "minimum": 1, "type": "integer" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["bucket", "history", "ttlMs"], "type": "object" } }, "type": "object" }, "store": { "patternProperties": { "^.*$": { "properties": { "maxObjectBytes": { "minimum": 1, "type": "integer" }, "maxTotalBytes": { "minimum": 1, "type": "integer" }, "name": { "minLength": 1, "type": "string" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["name", "ttlMs"], "type": "object" } }, "type": "object" } }, "type": "object" } }, "required": ["instanceId", "deploymentId", "instanceKey", "disabled", "capabilities", "createdAt"], "type": "object" } }, "required": ["instance"], "type": "object" }, "AuthGetDeviceConnectInfoRequest": { "additionalProperties": false, "properties": { "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "iat": { "type": "number" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "sig": { "minLength": 1, "type": "string" } }, "required": ["publicIdentityKey", "contractDigest", "iat", "sig"], "type": "object" }, "AuthGetDeviceConnectInfoResponse": { "properties": { "connectInfo": { "properties": { "auth": { "properties": { "iatSkewSeconds": { "type": "number" }, "mode": { "const": "device_identity", "type": "string" } }, "required": ["mode", "iatSkewSeconds"], "type": "object" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "transport": { "properties": { "sentinel": { "properties": { "jwt": { "type": "string" }, "seed": { "type": "string" } }, "required": ["jwt", "seed"], "type": "object" } }, "required": ["sentinel"], "type": "object" }, "transports": { "properties": { "native": { "properties": { "natsServers": { "items": { "minLength": 1, "type": "string" }, "minItems": 1, "type": "array" } }, "required": ["natsServers"], "type": "object" }, "websocket": { "properties": { "natsServers": { "items": { "minLength": 1, "type": "string" }, "minItems": 1, "type": "array" } }, "required": ["natsServers"], "type": "object" } }, "type": "object" } }, "required": ["instanceId", "deploymentId", "contractId", "contractDigest", "transports", "transport", "auth"], "type": "object" }, "status": { "const": "ready", "type": "string" } }, "required": ["status", "connectInfo"], "type": "object" }, "AuthGetDevicePortalDefaultRequest": { "properties": {}, "type": "object" }, "AuthGetDevicePortalDefaultResponse": { "properties": { "defaultPortal": { "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["portalId"], "type": "object" } }, "required": ["defaultPortal"], "type": "object" }, "AuthGetInstalledContractRequest": { "properties": { "digest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" } }, "required": ["digest"], "type": "object" }, "AuthGetInstalledContractResponse": { "properties": { "contract": { "properties": { "analysis": { "properties": { "events": { "properties": { "events": { "items": { "properties": { "key": { "type": "string" }, "publishCapabilities": { "items": { "type": "string" }, "type": "array" }, "subject": { "type": "string" }, "subscribeCapabilities": { "items": { "type": "string" }, "type": "array" }, "wildcardSubject": { "type": "string" } }, "required": ["key", "subject", "wildcardSubject", "publishCapabilities", "subscribeCapabilities"], "type": "object" }, "type": "array" } }, "required": ["events"], "type": "object" }, "namespaces": { "items": { "type": "string" }, "type": "array" }, "nats": { "properties": { "publish": { "items": { "properties": { "kind": { "type": "string" }, "requiredCapabilities": { "items": { "type": "string" }, "type": "array" }, "subject": { "type": "string" }, "wildcardSubject": { "type": "string" } }, "required": ["kind", "subject", "wildcardSubject", "requiredCapabilities"], "type": "object" }, "type": "array" }, "subscribe": { "items": { "properties": { "kind": { "type": "string" }, "requiredCapabilities": { "items": { "type": "string" }, "type": "array" }, "subject": { "type": "string" }, "wildcardSubject": { "type": "string" } }, "required": ["kind", "subject", "wildcardSubject", "requiredCapabilities"], "type": "object" }, "type": "array" } }, "required": ["publish", "subscribe"], "type": "object" }, "operations": { "properties": { "control": { "items": { "properties": { "action": { "anyOf": [{ "const": "get", "type": "string" }, { "const": "wait", "type": "string" }, { "const": "watch", "type": "string" }, { "const": "cancel", "type": "string" }] }, "key": { "type": "string" }, "requiredCapabilities": { "items": { "type": "string" }, "type": "array" }, "subject": { "type": "string" }, "wildcardSubject": { "type": "string" } }, "required": ["key", "action", "subject", "wildcardSubject", "requiredCapabilities"], "type": "object" }, "type": "array" }, "operations": { "items": { "properties": { "callCapabilities": { "items": { "type": "string" }, "type": "array" }, "cancel": { "type": "boolean" }, "cancelCapabilities": { "items": { "type": "string" }, "type": "array" }, "controlSubject": { "type": "string" }, "key": { "type": "string" }, "readCapabilities": { "items": { "type": "string" }, "type": "array" }, "subject": { "type": "string" }, "wildcardControlSubject": { "type": "string" }, "wildcardSubject": { "type": "string" } }, "required": ["key", "subject", "wildcardSubject", "controlSubject", "wildcardControlSubject", "callCapabilities", "readCapabilities", "cancelCapabilities", "cancel"], "type": "object" }, "type": "array" } }, "required": ["operations", "control"], "type": "object" }, "resources": { "properties": { "jobs": { "items": { "properties": { "ackWaitMs": { "type": "number" }, "backoffMs": { "items": { "type": "number" }, "type": "array" }, "concurrency": { "type": "number" }, "defaultDeadlineMs": { "type": "number" }, "dlq": { "type": "boolean" }, "logs": { "type": "boolean" }, "maxDeliver": { "type": "number" }, "payload": { "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "queueType": { "minLength": 1, "type": "string" }, "result": { "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" } }, "required": ["queueType", "payload", "maxDeliver", "backoffMs", "ackWaitMs", "progress", "logs", "dlq", "concurrency"], "type": "object" }, "type": "array" }, "kv": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "history": { "type": "number" }, "maxValueBytes": { "type": "number" }, "purpose": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" }, "ttlMs": { "type": "number" } }, "required": ["alias", "purpose", "required", "history", "ttlMs"], "type": "object" }, "type": "array" }, "store": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "maxObjectBytes": { "type": "number" }, "maxTotalBytes": { "type": "number" }, "purpose": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" }, "ttlMs": { "type": "number" } }, "required": ["alias", "purpose", "required", "ttlMs"], "type": "object" }, "type": "array" } }, "required": ["kv", "store", "jobs"], "type": "object" }, "rpc": { "properties": { "methods": { "items": { "properties": { "callerCapabilities": { "items": { "type": "string" }, "type": "array" }, "key": { "type": "string" }, "subject": { "type": "string" }, "wildcardSubject": { "type": "string" } }, "required": ["key", "subject", "wildcardSubject", "callerCapabilities"], "type": "object" }, "type": "array" } }, "required": ["methods"], "type": "object" }, "subjects": { "properties": { "subjects": { "items": { "properties": { "key": { "type": "string" }, "publishCapabilities": { "items": { "type": "string" }, "type": "array" }, "subject": { "type": "string" }, "subscribeCapabilities": { "items": { "type": "string" }, "type": "array" } }, "required": ["key", "subject", "publishCapabilities", "subscribeCapabilities"], "type": "object" }, "type": "array" } }, "required": ["subjects"], "type": "object" } }, "required": ["namespaces", "rpc", "operations", "events", "nats", "resources"], "type": "object" }, "analysisSummary": { "properties": { "events": { "type": "number" }, "jobsQueues": { "type": "number" }, "kvResources": { "type": "number" }, "namespaces": { "items": { "type": "string" }, "type": "array" }, "natsPublish": { "type": "number" }, "natsSubscribe": { "type": "number" }, "operationControls": { "type": "number" }, "operations": { "type": "number" }, "rpcMethods": { "type": "number" }, "storeResources": { "type": "number" } }, "required": ["namespaces", "rpcMethods", "operations", "operationControls", "events", "natsPublish", "natsSubscribe", "kvResources", "storeResources", "jobsQueues"], "type": "object" }, "contract": { "type": "object" }, "description": { "minLength": 1, "type": "string" }, "digest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "displayName": { "minLength": 1, "type": "string" }, "id": { "minLength": 1, "type": "string" }, "installedAt": { "format": "date-time", "type": "string" }, "resources": { "additionalProperties": false, "properties": { "kv": { "patternProperties": { "^.*$": { "additionalProperties": false, "properties": { "history": { "default": 1, "minimum": 1, "type": "integer" }, "maxValueBytes": { "minimum": 1, "type": "integer" }, "purpose": { "minLength": 1, "type": "string" }, "required": { "default": true, "type": "boolean" }, "schema": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "ttlMs": { "default": 0, "minimum": 0, "type": "integer" } }, "required": ["purpose", "schema"], "type": "object" } }, "type": "object" }, "store": { "patternProperties": { "^.*$": { "additionalProperties": false, "properties": { "maxObjectBytes": { "minimum": 1, "type": "integer" }, "maxTotalBytes": { "minimum": 1, "type": "integer" }, "purpose": { "minLength": 1, "type": "string" }, "required": { "default": true, "type": "boolean" }, "ttlMs": { "default": 0, "minimum": 0, "type": "integer" } }, "required": ["purpose"], "type": "object" } }, "type": "object" } }, "type": "object" } }, "required": ["digest", "id", "displayName", "description", "installedAt", "contract"], "type": "object" } }, "required": ["contract"], "type": "object" }, "AuthGetLoginPortalDefaultRequest": { "properties": {}, "type": "object" }, "AuthGetLoginPortalDefaultResponse": { "properties": { "defaultPortal": { "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["portalId"], "type": "object" } }, "required": ["defaultPortal"], "type": "object" }, "AuthKickConnectionRequest": { "properties": { "userNkey": { "type": "string" } }, "required": ["userNkey"], "type": "object" }, "AuthKickConnectionResponse": { "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthListApprovalsRequest": { "properties": { "digest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "user": { "minLength": 1, "type": "string" } }, "type": "object" }, "AuthListApprovalsResponse": { "properties": { "approvals": { "items": { "properties": { "answer": { "anyOf": [{ "const": "approved", "type": "string" }, { "const": "denied", "type": "string" }] }, "answeredAt": { "format": "date-time", "type": "string" }, "approval": { "properties": { "capabilities": { "items": { "type": "string" }, "type": "array" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "description": { "minLength": 1, "type": "string" }, "displayName": { "minLength": 1, "type": "string" } }, "required": ["contractDigest", "contractId", "displayName", "description", "capabilities"], "type": "object" }, "participantKind": { "anyOf": [{ "const": "app", "type": "string" }, { "const": "agent", "type": "string" }] }, "updatedAt": { "format": "date-time", "type": "string" }, "user": { "minLength": 1, "type": "string" } }, "required": ["user", "answer", "answeredAt", "updatedAt", "approval", "participantKind"], "type": "object" }, "type": "array" } }, "required": ["approvals"], "type": "object" }, "AuthListConnectionsRequest": { "properties": { "sessionKey": { "type": "string" }, "user": { "type": "string" } }, "type": "object" }, "AuthListConnectionsResponse": { "properties": { "connections": { "items": { "anyOf": [{ "properties": { "clientId": { "type": "number" }, "connectedAt": { "type": "string" }, "contractDisplayName": { "type": "string" }, "contractId": { "type": "string" }, "key": { "type": "string" }, "participantKind": { "const": "app", "type": "string" }, "principal": { "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "origin": { "type": "string" }, "trellisId": { "type": "string" }, "type": { "const": "user", "type": "string" } }, "required": ["type", "trellisId", "origin", "id"], "type": "object" }, "serverId": { "type": "string" }, "sessionKey": { "type": "string" }, "userNkey": { "type": "string" } }, "required": ["key", "userNkey", "sessionKey", "serverId", "clientId", "connectedAt", "participantKind", "principal", "contractId", "contractDisplayName"], "type": "object" }, { "properties": { "clientId": { "type": "number" }, "connectedAt": { "type": "string" }, "contractDisplayName": { "type": "string" }, "contractId": { "type": "string" }, "key": { "type": "string" }, "participantKind": { "const": "agent", "type": "string" }, "principal": { "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "origin": { "type": "string" }, "trellisId": { "type": "string" }, "type": { "const": "user", "type": "string" } }, "required": ["type", "trellisId", "origin", "id"], "type": "object" }, "serverId": { "type": "string" }, "sessionKey": { "type": "string" }, "userNkey": { "type": "string" } }, "required": ["key", "userNkey", "sessionKey", "serverId", "clientId", "connectedAt", "participantKind", "principal", "contractId", "contractDisplayName"], "type": "object" }, { "properties": { "clientId": { "type": "number" }, "connectedAt": { "type": "string" }, "contractDisplayName": { "type": "string" }, "contractId": { "type": "string" }, "key": { "type": "string" }, "participantKind": { "const": "device", "type": "string" }, "principal": { "properties": { "deploymentId": { "type": "string" }, "deviceId": { "type": "string" }, "deviceType": { "type": "string" }, "runtimePublicKey": { "type": "string" }, "type": { "const": "device", "type": "string" } }, "required": ["type", "deviceId", "deviceType", "runtimePublicKey", "deploymentId"], "type": "object" }, "serverId": { "type": "string" }, "sessionKey": { "type": "string" }, "userNkey": { "type": "string" } }, "required": ["key", "userNkey", "sessionKey", "serverId", "clientId", "connectedAt", "participantKind", "principal", "contractId"], "type": "object" }, { "properties": { "clientId": { "type": "number" }, "connectedAt": { "type": "string" }, "key": { "type": "string" }, "participantKind": { "const": "service", "type": "string" }, "principal": { "properties": { "deploymentId": { "type": "string" }, "id": { "type": "string" }, "instanceId": { "type": "string" }, "name": { "type": "string" }, "type": { "const": "service", "type": "string" } }, "required": ["type", "id", "name", "instanceId", "deploymentId"], "type": "object" }, "serverId": { "type": "string" }, "sessionKey": { "type": "string" }, "userNkey": { "type": "string" } }, "required": ["key", "userNkey", "sessionKey", "serverId", "clientId", "connectedAt", "participantKind", "principal"], "type": "object" }] }, "type": "array" } }, "required": ["connections"], "type": "object" }, "AuthListDeviceActivationReviewsRequest": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "state": { "anyOf": [{ "const": "pending", "type": "string" }, { "const": "approved", "type": "string" }, { "const": "rejected", "type": "string" }] } }, "type": "object" }, "AuthListDeviceActivationReviewsResponse": { "properties": { "reviews": { "items": { "properties": { "decidedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "reason": { "minLength": 1, "type": "string" }, "requestedAt": { "format": "date-time", "type": "string" }, "reviewId": { "minLength": 1, "type": "string" }, "state": { "anyOf": [{ "const": "pending", "type": "string" }, { "const": "approved", "type": "string" }, { "const": "rejected", "type": "string" }] } }, "required": ["reviewId", "instanceId", "publicIdentityKey", "deploymentId", "state", "requestedAt", "decidedAt"], "type": "object" }, "type": "array" } }, "required": ["reviews"], "type": "object" }, "AuthListDeviceActivationsRequest": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "state": { "anyOf": [{ "const": "activated", "type": "string" }, { "const": "revoked", "type": "string" }] } }, "type": "object" }, "AuthListDeviceActivationsResponse": { "properties": { "activations": { "items": { "properties": { "activatedAt": { "format": "date-time", "type": "string" }, "activatedBy": { "properties": { "id": { "minLength": 1, "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["origin", "id"], "type": "object" }, "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "revokedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "state": { "anyOf": [{ "const": "activated", "type": "string" }, { "const": "revoked", "type": "string" }] } }, "required": ["instanceId", "publicIdentityKey", "deploymentId", "state", "activatedAt", "revokedAt"], "type": "object" }, "type": "array" } }, "required": ["activations"], "type": "object" }, "AuthListDeviceDeploymentsRequest": { "properties": { "disabled": { "type": "boolean" } }, "type": "object" }, "AuthListDeviceDeploymentsResponse": { "properties": { "deployments": { "items": { "properties": { "appliedContracts": { "items": { "additionalProperties": false, "properties": { "allowedDigests": { "items": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "type": "array" }, "contractId": { "minLength": 1, "type": "string" } }, "required": ["contractId", "allowedDigests"], "type": "object" }, "type": "array" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "reviewMode": { "anyOf": [{ "const": "none", "type": "string" }, { "const": "required", "type": "string" }] } }, "required": ["deploymentId", "disabled", "appliedContracts"], "type": "object" }, "type": "array" } }, "required": ["deployments"], "type": "object" }, "AuthListDeviceInstancesRequest": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "state": { "anyOf": [{ "const": "registered", "type": "string" }, { "const": "activated", "type": "string" }, { "const": "revoked", "type": "string" }, { "const": "disabled", "type": "string" }] } }, "type": "object" }, "AuthListDeviceInstancesResponse": { "properties": { "instances": { "items": { "properties": { "activatedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "createdAt": { "format": "date-time", "type": "string" }, "currentContractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "currentContractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "metadata": { "patternProperties": { "^.*$": { "minLength": 1, "type": "string" } }, "type": "object" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "revokedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "state": { "anyOf": [{ "const": "registered", "type": "string" }, { "const": "activated", "type": "string" }, { "const": "revoked", "type": "string" }, { "const": "disabled", "type": "string" }] } }, "required": ["instanceId", "publicIdentityKey", "deploymentId", "state", "createdAt", "activatedAt", "revokedAt"], "type": "object" }, "type": "array" } }, "required": ["instances"], "type": "object" }, "AuthListDevicePortalSelectionsRequest": { "properties": {}, "type": "object" }, "AuthListDevicePortalSelectionsResponse": { "properties": { "selections": { "items": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["deploymentId", "portalId"], "type": "object" }, "type": "array" } }, "required": ["selections"], "type": "object" }, "AuthListInstalledContractsRequest": { "properties": {}, "type": "object" }, "AuthListInstalledContractsResponse": { "properties": { "contracts": { "items": { "properties": { "analysisSummary": { "properties": { "events": { "type": "number" }, "jobsQueues": { "type": "number" }, "kvResources": { "type": "number" }, "namespaces": { "items": { "type": "string" }, "type": "array" }, "natsPublish": { "type": "number" }, "natsSubscribe": { "type": "number" }, "operationControls": { "type": "number" }, "operations": { "type": "number" }, "rpcMethods": { "type": "number" }, "storeResources": { "type": "number" } }, "required": ["namespaces", "rpcMethods", "operations", "operationControls", "events", "natsPublish", "natsSubscribe", "kvResources", "storeResources", "jobsQueues"], "type": "object" }, "description": { "minLength": 1, "type": "string" }, "digest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "displayName": { "minLength": 1, "type": "string" }, "id": { "minLength": 1, "type": "string" }, "installedAt": { "format": "date-time", "type": "string" } }, "required": ["digest", "id", "displayName", "description", "installedAt"], "type": "object" }, "type": "array" } }, "required": ["contracts"], "type": "object" }, "AuthListInstanceGrantPoliciesRequest": { "properties": {}, "type": "object" }, "AuthListInstanceGrantPoliciesResponse": { "properties": { "policies": { "items": { "properties": { "allowedOrigins": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contractId": { "minLength": 1, "type": "string" }, "createdAt": { "format": "date-time", "type": "string" }, "disabled": { "type": "boolean" }, "impliedCapabilities": { "items": { "type": "string" }, "type": "array" }, "source": { "anyOf": [{ "properties": { "createdBy": { "properties": { "id": { "minLength": 1, "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["origin", "id"], "type": "object" }, "kind": { "const": "admin_policy", "type": "string" }, "updatedBy": { "properties": { "id": { "minLength": 1, "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["origin", "id"], "type": "object" } }, "required": ["kind"], "type": "object" }, { "properties": { "entryUrl": { "minLength": 1, "type": "string" }, "kind": { "const": "portal_profile", "type": "string" }, "portalId": { "minLength": 1, "type": "string" } }, "required": ["kind", "portalId", "entryUrl"], "type": "object" }] }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["contractId", "impliedCapabilities", "disabled", "createdAt", "updatedAt", "source"], "type": "object" }, "type": "array" } }, "required": ["policies"], "type": "object" }, "AuthListLoginPortalSelectionsRequest": { "properties": {}, "type": "object" }, "AuthListLoginPortalSelectionsResponse": { "properties": { "selections": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["contractId", "portalId"], "type": "object" }, "type": "array" } }, "required": ["selections"], "type": "object" }, "AuthListPortalProfilesRequest": { "properties": {}, "type": "object" }, "AuthListPortalProfilesResponse": { "properties": { "profiles": { "items": { "properties": { "allowedOrigins": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contractId": { "minLength": 1, "type": "string" }, "createdAt": { "format": "date-time", "type": "string" }, "disabled": { "type": "boolean" }, "entryUrl": { "minLength": 1, "type": "string" }, "impliedCapabilities": { "items": { "type": "string" }, "type": "array" }, "portalId": { "minLength": 1, "type": "string" }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["portalId", "entryUrl", "contractId", "impliedCapabilities", "disabled", "createdAt", "updatedAt"], "type": "object" }, "type": "array" } }, "required": ["profiles"], "type": "object" }, "AuthListPortalsRequest": { "properties": {}, "type": "object" }, "AuthListPortalsResponse": { "properties": { "portals": { "items": { "properties": { "disabled": { "type": "boolean" }, "entryUrl": { "minLength": 1, "type": "string" }, "portalId": { "minLength": 1, "type": "string" } }, "required": ["portalId", "entryUrl", "disabled"], "type": "object" }, "type": "array" } }, "required": ["portals"], "type": "object" }, "AuthListServiceDeploymentsRequest": { "properties": { "disabled": { "type": "boolean" } }, "type": "object" }, "AuthListServiceDeploymentsResponse": { "properties": { "deployments": { "items": { "properties": { "appliedContracts": { "items": { "properties": { "allowedDigests": { "items": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "type": "array" }, "contractId": { "minLength": 1, "type": "string" }, "resourceBindingsByDigest": { "patternProperties": { "^[A-Za-z0-9_-]+$": { "properties": { "jobs": { "properties": { "namespace": { "minLength": 1, "type": "string" }, "queues": { "patternProperties": { "^.*$": { "properties": { "ackWaitMs": { "minimum": 1, "type": "integer" }, "backoffMs": { "items": { "minimum": 0, "type": "integer" }, "type": "array" }, "concurrency": { "minimum": 1, "type": "integer" }, "consumerName": { "minLength": 1, "type": "string" }, "defaultDeadlineMs": { "minimum": 1, "type": "integer" }, "dlq": { "type": "boolean" }, "logs": { "type": "boolean" }, "maxDeliver": { "minimum": 1, "type": "integer" }, "payload": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "publishPrefix": { "minLength": 1, "type": "string" }, "queueType": { "minLength": 1, "type": "string" }, "result": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "workSubject": { "minLength": 1, "type": "string" } }, "required": ["queueType", "publishPrefix", "workSubject", "consumerName", "payload", "maxDeliver", "backoffMs", "ackWaitMs", "progress", "logs", "dlq", "concurrency"], "type": "object" } }, "type": "object" }, "workStream": { "minLength": 1, "type": "string" } }, "required": ["namespace", "queues"], "type": "object" }, "kv": { "patternProperties": { "^.*$": { "properties": { "bucket": { "minLength": 1, "type": "string" }, "history": { "minimum": 1, "type": "integer" }, "maxValueBytes": { "minimum": 1, "type": "integer" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["bucket", "history", "ttlMs"], "type": "object" } }, "type": "object" }, "store": { "patternProperties": { "^.*$": { "properties": { "maxObjectBytes": { "minimum": 1, "type": "integer" }, "maxTotalBytes": { "minimum": 1, "type": "integer" }, "name": { "minLength": 1, "type": "string" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["name", "ttlMs"], "type": "object" } }, "type": "object" } }, "type": "object" } }, "type": "object" } }, "required": ["contractId", "allowedDigests"], "type": "object" }, "type": "array" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "namespaces": { "items": { "minLength": 1, "type": "string" }, "type": "array" } }, "required": ["deploymentId", "namespaces", "disabled", "appliedContracts"], "type": "object" }, "type": "array" } }, "required": ["deployments"], "type": "object" }, "AuthListServiceInstancesRequest": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" } }, "type": "object" }, "AuthListServiceInstancesResponse": { "properties": { "instances": { "items": { "properties": { "capabilities": { "items": { "type": "string" }, "type": "array" }, "createdAt": { "format": "date-time", "type": "string" }, "currentContractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "currentContractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "instanceId": { "minLength": 1, "type": "string" }, "instanceKey": { "minLength": 1, "type": "string" }, "resourceBindings": { "properties": { "jobs": { "properties": { "namespace": { "minLength": 1, "type": "string" }, "queues": { "patternProperties": { "^.*$": { "properties": { "ackWaitMs": { "minimum": 1, "type": "integer" }, "backoffMs": { "items": { "minimum": 0, "type": "integer" }, "type": "array" }, "concurrency": { "minimum": 1, "type": "integer" }, "consumerName": { "minLength": 1, "type": "string" }, "defaultDeadlineMs": { "minimum": 1, "type": "integer" }, "dlq": { "type": "boolean" }, "logs": { "type": "boolean" }, "maxDeliver": { "minimum": 1, "type": "integer" }, "payload": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "publishPrefix": { "minLength": 1, "type": "string" }, "queueType": { "minLength": 1, "type": "string" }, "result": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "workSubject": { "minLength": 1, "type": "string" } }, "required": ["queueType", "publishPrefix", "workSubject", "consumerName", "payload", "maxDeliver", "backoffMs", "ackWaitMs", "progress", "logs", "dlq", "concurrency"], "type": "object" } }, "type": "object" }, "workStream": { "minLength": 1, "type": "string" } }, "required": ["namespace", "queues"], "type": "object" }, "kv": { "patternProperties": { "^.*$": { "properties": { "bucket": { "minLength": 1, "type": "string" }, "history": { "minimum": 1, "type": "integer" }, "maxValueBytes": { "minimum": 1, "type": "integer" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["bucket", "history", "ttlMs"], "type": "object" } }, "type": "object" }, "store": { "patternProperties": { "^.*$": { "properties": { "maxObjectBytes": { "minimum": 1, "type": "integer" }, "maxTotalBytes": { "minimum": 1, "type": "integer" }, "name": { "minLength": 1, "type": "string" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["name", "ttlMs"], "type": "object" } }, "type": "object" } }, "type": "object" } }, "required": ["instanceId", "deploymentId", "instanceKey", "disabled", "capabilities", "createdAt"], "type": "object" }, "type": "array" } }, "required": ["instances"], "type": "object" }, "AuthListSessionsRequest": { "properties": { "user": { "type": "string" } }, "type": "object" }, "AuthListSessionsResponse": { "properties": { "sessions": { "items": { "anyOf": [{ "properties": { "contractDisplayName": { "type": "string" }, "contractId": { "type": "string" }, "createdAt": { "type": "string" }, "key": { "type": "string" }, "lastAuth": { "type": "string" }, "participantKind": { "const": "app", "type": "string" }, "principal": { "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "origin": { "type": "string" }, "trellisId": { "type": "string" }, "type": { "const": "user", "type": "string" } }, "required": ["type", "trellisId", "origin", "id"], "type": "object" }, "sessionKey": { "type": "string" } }, "required": ["key", "sessionKey", "createdAt", "lastAuth", "participantKind", "principal", "contractId", "contractDisplayName"], "type": "object" }, { "properties": { "contractDisplayName": { "type": "string" }, "contractId": { "type": "string" }, "createdAt": { "type": "string" }, "key": { "type": "string" }, "lastAuth": { "type": "string" }, "participantKind": { "const": "agent", "type": "string" }, "principal": { "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "origin": { "type": "string" }, "trellisId": { "type": "string" }, "type": { "const": "user", "type": "string" } }, "required": ["type", "trellisId", "origin", "id"], "type": "object" }, "sessionKey": { "type": "string" } }, "required": ["key", "sessionKey", "createdAt", "lastAuth", "participantKind", "principal", "contractId", "contractDisplayName"], "type": "object" }, { "properties": { "contractDisplayName": { "type": "string" }, "contractId": { "type": "string" }, "createdAt": { "type": "string" }, "key": { "type": "string" }, "lastAuth": { "type": "string" }, "participantKind": { "const": "device", "type": "string" }, "principal": { "properties": { "deploymentId": { "type": "string" }, "deviceId": { "type": "string" }, "deviceType": { "type": "string" }, "runtimePublicKey": { "type": "string" }, "type": { "const": "device", "type": "string" } }, "required": ["type", "deviceId", "deviceType", "runtimePublicKey", "deploymentId"], "type": "object" }, "sessionKey": { "type": "string" } }, "required": ["key", "sessionKey", "createdAt", "lastAuth", "participantKind", "principal", "contractId"], "type": "object" }, { "properties": { "createdAt": { "type": "string" }, "key": { "type": "string" }, "lastAuth": { "type": "string" }, "participantKind": { "const": "service", "type": "string" }, "principal": { "properties": { "deploymentId": { "type": "string" }, "id": { "type": "string" }, "instanceId": { "type": "string" }, "name": { "type": "string" }, "type": { "const": "service", "type": "string" } }, "required": ["type", "id", "name", "instanceId", "deploymentId"], "type": "object" }, "sessionKey": { "type": "string" } }, "required": ["key", "sessionKey", "createdAt", "lastAuth", "participantKind", "principal"], "type": "object" }] }, "type": "array" } }, "required": ["sessions"], "type": "object" }, "AuthListUserGrantsRequest": { "properties": {}, "type": "object" }, "AuthListUserGrantsResponse": { "properties": { "grants": { "items": { "properties": { "capabilities": { "items": { "type": "string" }, "type": "array" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "description": { "minLength": 1, "type": "string" }, "displayName": { "minLength": 1, "type": "string" }, "grantedAt": { "format": "date-time", "type": "string" }, "participantKind": { "anyOf": [{ "const": "app", "type": "string" }, { "const": "agent", "type": "string" }] }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["contractDigest", "contractId", "displayName", "description", "participantKind", "capabilities", "grantedAt", "updatedAt"], "type": "object" }, "type": "array" } }, "required": ["grants"], "type": "object" }, "AuthListUsersRequest": { "properties": {}, "type": "object" }, "AuthListUsersResponse": { "properties": { "users": { "items": { "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "email": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "origin": { "type": "string" } }, "required": ["origin", "id", "active", "capabilities"], "type": "object" }, "type": "array" } }, "required": ["users"], "type": "object" }, "AuthLogoutRequest": { "properties": {}, "type": "object" }, "AuthLogoutResponse": { "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthMeRequest": { "properties": {}, "type": "object" }, "AuthMeResponse": { "properties": { "device": { "anyOf": [{ "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "deploymentId": { "minLength": 1, "type": "string" }, "deviceId": { "minLength": 1, "type": "string" }, "deviceType": { "minLength": 1, "type": "string" }, "runtimePublicKey": { "minLength": 1, "type": "string" }, "type": { "const": "device", "type": "string" } }, "required": ["type", "deviceId", "deviceType", "runtimePublicKey", "deploymentId", "active", "capabilities"], "type": "object" }, { "type": "null" }] }, "participantKind": { "anyOf": [{ "anyOf": [{ "const": "app", "type": "string" }, { "const": "agent", "type": "string" }] }, { "const": "device", "type": "string" }, { "const": "service", "type": "string" }] }, "service": { "anyOf": [{ "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "id": { "type": "string" }, "name": { "type": "string" }, "type": { "const": "service", "type": "string" } }, "required": ["type", "id", "name", "active", "capabilities"], "type": "object" }, { "type": "null" }] }, "user": { "anyOf": [{ "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "email": { "type": "string" }, "id": { "type": "string" }, "image": { "type": "string" }, "lastLogin": { "format": "date-time", "type": "string" }, "name": { "type": "string" }, "origin": { "type": "string" } }, "required": ["id", "origin", "active", "name", "email", "capabilities"], "type": "object" }, { "type": "null" }] } }, "required": ["participantKind", "user", "device", "service"], "type": "object" }, "AuthProvisionDeviceInstanceRequest": { "properties": { "activationKey": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "metadata": { "patternProperties": { "^.*$": { "minLength": 1, "type": "string" } }, "type": "object" }, "publicIdentityKey": { "minLength": 1, "type": "string" } }, "required": ["deploymentId", "publicIdentityKey", "activationKey"], "type": "object" }, "AuthProvisionDeviceInstanceResponse": { "properties": { "instance": { "properties": { "activatedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "createdAt": { "format": "date-time", "type": "string" }, "currentContractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "currentContractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "metadata": { "patternProperties": { "^.*$": { "minLength": 1, "type": "string" } }, "type": "object" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "revokedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "state": { "anyOf": [{ "const": "registered", "type": "string" }, { "const": "activated", "type": "string" }, { "const": "revoked", "type": "string" }, { "const": "disabled", "type": "string" }] } }, "required": ["instanceId", "publicIdentityKey", "deploymentId", "state", "createdAt", "activatedAt", "revokedAt"], "type": "object" } }, "required": ["instance"], "type": "object" }, "AuthProvisionServiceInstanceRequest": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "instanceKey": { "minLength": 1, "type": "string" } }, "required": ["deploymentId", "instanceKey"], "type": "object" }, "AuthProvisionServiceInstanceResponse": { "properties": { "instance": { "properties": { "capabilities": { "items": { "type": "string" }, "type": "array" }, "createdAt": { "format": "date-time", "type": "string" }, "currentContractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "currentContractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "instanceId": { "minLength": 1, "type": "string" }, "instanceKey": { "minLength": 1, "type": "string" }, "resourceBindings": { "properties": { "jobs": { "properties": { "namespace": { "minLength": 1, "type": "string" }, "queues": { "patternProperties": { "^.*$": { "properties": { "ackWaitMs": { "minimum": 1, "type": "integer" }, "backoffMs": { "items": { "minimum": 0, "type": "integer" }, "type": "array" }, "concurrency": { "minimum": 1, "type": "integer" }, "consumerName": { "minLength": 1, "type": "string" }, "defaultDeadlineMs": { "minimum": 1, "type": "integer" }, "dlq": { "type": "boolean" }, "logs": { "type": "boolean" }, "maxDeliver": { "minimum": 1, "type": "integer" }, "payload": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "publishPrefix": { "minLength": 1, "type": "string" }, "queueType": { "minLength": 1, "type": "string" }, "result": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "workSubject": { "minLength": 1, "type": "string" } }, "required": ["queueType", "publishPrefix", "workSubject", "consumerName", "payload", "maxDeliver", "backoffMs", "ackWaitMs", "progress", "logs", "dlq", "concurrency"], "type": "object" } }, "type": "object" }, "workStream": { "minLength": 1, "type": "string" } }, "required": ["namespace", "queues"], "type": "object" }, "kv": { "patternProperties": { "^.*$": { "properties": { "bucket": { "minLength": 1, "type": "string" }, "history": { "minimum": 1, "type": "integer" }, "maxValueBytes": { "minimum": 1, "type": "integer" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["bucket", "history", "ttlMs"], "type": "object" } }, "type": "object" }, "store": { "patternProperties": { "^.*$": { "properties": { "maxObjectBytes": { "minimum": 1, "type": "integer" }, "maxTotalBytes": { "minimum": 1, "type": "integer" }, "name": { "minLength": 1, "type": "string" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["name", "ttlMs"], "type": "object" } }, "type": "object" } }, "type": "object" } }, "required": ["instanceId", "deploymentId", "instanceKey", "disabled", "capabilities", "createdAt"], "type": "object" } }, "required": ["instance"], "type": "object" }, "AuthRemoveDeviceDeploymentRequest": { "properties": { "deploymentId": { "minLength": 1, "type": "string" } }, "required": ["deploymentId"], "type": "object" }, "AuthRemoveDeviceDeploymentResponse": { "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthRemoveDeviceInstanceRequest": { "properties": { "instanceId": { "minLength": 1, "type": "string" } }, "required": ["instanceId"], "type": "object" }, "AuthRemoveDeviceInstanceResponse": { "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthRemoveServiceDeploymentRequest": { "properties": { "deploymentId": { "minLength": 1, "type": "string" } }, "required": ["deploymentId"], "type": "object" }, "AuthRemoveServiceDeploymentResponse": { "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthRemoveServiceInstanceRequest": { "properties": { "instanceId": { "minLength": 1, "type": "string" } }, "required": ["instanceId"], "type": "object" }, "AuthRemoveServiceInstanceResponse": { "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthRevokeApprovalRequest": { "properties": { "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "user": { "minLength": 1, "type": "string" } }, "required": ["contractDigest"], "type": "object" }, "AuthRevokeApprovalResponse": { "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthRevokeDeviceActivationRequest": { "properties": { "instanceId": { "minLength": 1, "type": "string" } }, "required": ["instanceId"], "type": "object" }, "AuthRevokeDeviceActivationResponse": { "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthRevokeSessionRequest": { "properties": { "sessionKey": { "type": "string" } }, "required": ["sessionKey"], "type": "object" }, "AuthRevokeSessionResponse": { "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthRevokeUserGrantRequest": { "properties": { "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" } }, "required": ["contractDigest"], "type": "object" }, "AuthRevokeUserGrantResponse": { "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthSessionRevokedEvent": { "allOf": [{ "properties": { "header": { "properties": { "id": { "type": "string" }, "time": { "format": "date-time", "type": "string" } }, "required": ["id", "time"], "type": "object" } }, "required": ["header"], "type": "object" }, { "properties": { "id": { "type": "string" }, "origin": { "type": "string" }, "revokedBy": { "type": "string" }, "sessionKey": { "type": "string" } }, "required": ["origin", "id", "sessionKey", "revokedBy"], "type": "object" }] }, "AuthSetDevicePortalDefaultRequest": { "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["portalId"], "type": "object" }, "AuthSetDevicePortalDefaultResponse": { "properties": { "defaultPortal": { "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["portalId"], "type": "object" } }, "required": ["defaultPortal"], "type": "object" }, "AuthSetDevicePortalSelectionRequest": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["deploymentId", "portalId"], "type": "object" }, "AuthSetDevicePortalSelectionResponse": { "properties": { "selection": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["deploymentId", "portalId"], "type": "object" } }, "required": ["selection"], "type": "object" }, "AuthSetLoginPortalDefaultRequest": { "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["portalId"], "type": "object" }, "AuthSetLoginPortalDefaultResponse": { "properties": { "defaultPortal": { "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["portalId"], "type": "object" } }, "required": ["defaultPortal"], "type": "object" }, "AuthSetLoginPortalSelectionRequest": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["contractId", "portalId"], "type": "object" }, "AuthSetLoginPortalSelectionResponse": { "properties": { "selection": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["contractId", "portalId"], "type": "object" } }, "required": ["selection"], "type": "object" }, "AuthSetPortalProfileRequest": { "properties": { "allowedOrigins": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contractId": { "minLength": 1, "type": "string" }, "entryUrl": { "minLength": 1, "type": "string" }, "portalId": { "minLength": 1, "type": "string" } }, "required": ["portalId", "entryUrl", "contractId"], "type": "object" }, "AuthSetPortalProfileResponse": { "properties": { "profile": { "properties": { "allowedOrigins": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contractId": { "minLength": 1, "type": "string" }, "createdAt": { "format": "date-time", "type": "string" }, "disabled": { "type": "boolean" }, "entryUrl": { "minLength": 1, "type": "string" }, "impliedCapabilities": { "items": { "type": "string" }, "type": "array" }, "portalId": { "minLength": 1, "type": "string" }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["portalId", "entryUrl", "contractId", "impliedCapabilities", "disabled", "createdAt", "updatedAt"], "type": "object" } }, "required": ["profile"], "type": "object" }, "AuthUnapplyDeviceDeploymentContractRequest": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "digests": { "items": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "type": "array" } }, "required": ["deploymentId", "contractId"], "type": "object" }, "AuthUnapplyDeviceDeploymentContractResponse": { "properties": { "deployment": { "properties": { "appliedContracts": { "items": { "additionalProperties": false, "properties": { "allowedDigests": { "items": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "type": "array" }, "contractId": { "minLength": 1, "type": "string" } }, "required": ["contractId", "allowedDigests"], "type": "object" }, "type": "array" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "reviewMode": { "anyOf": [{ "const": "none", "type": "string" }, { "const": "required", "type": "string" }] } }, "required": ["deploymentId", "disabled", "appliedContracts"], "type": "object" } }, "required": ["deployment"], "type": "object" }, "AuthUnapplyServiceDeploymentContractRequest": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "digests": { "items": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "type": "array" } }, "required": ["deploymentId", "contractId"], "type": "object" }, "AuthUnapplyServiceDeploymentContractResponse": { "properties": { "deployment": { "properties": { "appliedContracts": { "items": { "properties": { "allowedDigests": { "items": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "type": "array" }, "contractId": { "minLength": 1, "type": "string" }, "resourceBindingsByDigest": { "patternProperties": { "^[A-Za-z0-9_-]+$": { "properties": { "jobs": { "properties": { "namespace": { "minLength": 1, "type": "string" }, "queues": { "patternProperties": { "^.*$": { "properties": { "ackWaitMs": { "minimum": 1, "type": "integer" }, "backoffMs": { "items": { "minimum": 0, "type": "integer" }, "type": "array" }, "concurrency": { "minimum": 1, "type": "integer" }, "consumerName": { "minLength": 1, "type": "string" }, "defaultDeadlineMs": { "minimum": 1, "type": "integer" }, "dlq": { "type": "boolean" }, "logs": { "type": "boolean" }, "maxDeliver": { "minimum": 1, "type": "integer" }, "payload": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "publishPrefix": { "minLength": 1, "type": "string" }, "queueType": { "minLength": 1, "type": "string" }, "result": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "workSubject": { "minLength": 1, "type": "string" } }, "required": ["queueType", "publishPrefix", "workSubject", "consumerName", "payload", "maxDeliver", "backoffMs", "ackWaitMs", "progress", "logs", "dlq", "concurrency"], "type": "object" } }, "type": "object" }, "workStream": { "minLength": 1, "type": "string" } }, "required": ["namespace", "queues"], "type": "object" }, "kv": { "patternProperties": { "^.*$": { "properties": { "bucket": { "minLength": 1, "type": "string" }, "history": { "minimum": 1, "type": "integer" }, "maxValueBytes": { "minimum": 1, "type": "integer" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["bucket", "history", "ttlMs"], "type": "object" } }, "type": "object" }, "store": { "patternProperties": { "^.*$": { "properties": { "maxObjectBytes": { "minimum": 1, "type": "integer" }, "maxTotalBytes": { "minimum": 1, "type": "integer" }, "name": { "minLength": 1, "type": "string" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["name", "ttlMs"], "type": "object" } }, "type": "object" } }, "type": "object" } }, "type": "object" } }, "required": ["contractId", "allowedDigests"], "type": "object" }, "type": "array" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "namespaces": { "items": { "minLength": 1, "type": "string" }, "type": "array" } }, "required": ["deploymentId", "namespaces", "disabled", "appliedContracts"], "type": "object" } }, "required": ["deployment"], "type": "object" }, "AuthUpdateUserRequest": { "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "id": { "type": "string" }, "origin": { "type": "string" } }, "required": ["origin", "id"], "type": "object" }, "AuthUpdateUserResponse": { "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthUpsertInstanceGrantPolicyRequest": { "properties": { "allowedOrigins": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contractId": { "minLength": 1, "type": "string" }, "impliedCapabilities": { "items": { "type": "string" }, "type": "array" } }, "required": ["contractId", "impliedCapabilities"], "type": "object" }, "AuthUpsertInstanceGrantPolicyResponse": { "properties": { "policy": { "properties": { "allowedOrigins": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contractId": { "minLength": 1, "type": "string" }, "createdAt": { "format": "date-time", "type": "string" }, "disabled": { "type": "boolean" }, "impliedCapabilities": { "items": { "type": "string" }, "type": "array" }, "source": { "anyOf": [{ "properties": { "createdBy": { "properties": { "id": { "minLength": 1, "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["origin", "id"], "type": "object" }, "kind": { "const": "admin_policy", "type": "string" }, "updatedBy": { "properties": { "id": { "minLength": 1, "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["origin", "id"], "type": "object" } }, "required": ["kind"], "type": "object" }, { "properties": { "entryUrl": { "minLength": 1, "type": "string" }, "kind": { "const": "portal_profile", "type": "string" }, "portalId": { "minLength": 1, "type": "string" } }, "required": ["kind", "portalId", "entryUrl"], "type": "object" }] }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["contractId", "impliedCapabilities", "disabled", "createdAt", "updatedAt", "source"], "type": "object" } }, "required": ["policy"], "type": "object" }, "AuthValidateRequestRequest": { "additionalProperties": false, "properties": { "capabilities": { "items": { "type": "string" }, "type": "array" }, "payloadHash": { "type": "string" }, "proof": { "type": "string" }, "sessionKey": { "type": "string" }, "subject": { "type": "string" } }, "required": ["sessionKey", "proof", "subject", "payloadHash"], "type": "object" }, "AuthValidateRequestResponse": { "properties": { "allowed": { "type": "boolean" }, "caller": { "anyOf": [{ "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "email": { "type": "string" }, "id": { "type": "string" }, "image": { "type": "string" }, "name": { "type": "string" }, "origin": { "type": "string" }, "participantKind": { "anyOf": [{ "const": "app", "type": "string" }, { "const": "agent", "type": "string" }] }, "trellisId": { "type": "string" }, "type": { "const": "user", "type": "string" } }, "required": ["type", "participantKind", "trellisId", "id", "origin", "active", "name", "email", "capabilities"], "type": "object" }, { "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "id": { "type": "string" }, "name": { "type": "string" }, "type": { "const": "service", "type": "string" } }, "required": ["type", "id", "name", "active", "capabilities"], "type": "object" }, { "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "deploymentId": { "minLength": 1, "type": "string" }, "deviceId": { "minLength": 1, "type": "string" }, "deviceType": { "minLength": 1, "type": "string" }, "runtimePublicKey": { "minLength": 1, "type": "string" }, "type": { "const": "device", "type": "string" } }, "required": ["type", "deviceId", "deviceType", "runtimePublicKey", "deploymentId", "active", "capabilities"], "type": "object" }] }, "inboxPrefix": { "type": "string" } }, "required": ["allowed", "inboxPrefix", "caller"], "type": "object" }, "Device": { "properties": { "activatedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "createdAt": { "format": "date-time", "type": "string" }, "currentContractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "currentContractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "metadata": { "patternProperties": { "^.*$": { "minLength": 1, "type": "string" } }, "type": "object" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "revokedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "state": { "anyOf": [{ "const": "registered", "type": "string" }, { "const": "activated", "type": "string" }, { "const": "revoked", "type": "string" }, { "const": "disabled", "type": "string" }] } }, "required": ["instanceId", "publicIdentityKey", "deploymentId", "state", "createdAt", "activatedAt", "revokedAt"], "type": "object" }, "DeviceActivationRecord": { "properties": { "activatedAt": { "format": "date-time", "type": "string" }, "activatedBy": { "properties": { "id": { "minLength": 1, "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["origin", "id"], "type": "object" }, "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "revokedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "state": { "anyOf": [{ "const": "activated", "type": "string" }, { "const": "revoked", "type": "string" }] } }, "required": ["instanceId", "publicIdentityKey", "deploymentId", "state", "activatedAt", "revokedAt"], "type": "object" }, "DeviceActivationReview": { "properties": { "decidedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "reason": { "minLength": 1, "type": "string" }, "requestedAt": { "format": "date-time", "type": "string" }, "reviewId": { "minLength": 1, "type": "string" }, "state": { "anyOf": [{ "const": "pending", "type": "string" }, { "const": "approved", "type": "string" }, { "const": "rejected", "type": "string" }] } }, "required": ["reviewId", "instanceId", "publicIdentityKey", "deploymentId", "state", "requestedAt", "decidedAt"], "type": "object" }, "DeviceConnectInfo": { "properties": { "auth": { "properties": { "iatSkewSeconds": { "type": "number" }, "mode": { "const": "device_identity", "type": "string" } }, "required": ["mode", "iatSkewSeconds"], "type": "object" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "transport": { "properties": { "sentinel": { "properties": { "jwt": { "type": "string" }, "seed": { "type": "string" } }, "required": ["jwt", "seed"], "type": "object" } }, "required": ["sentinel"], "type": "object" }, "transports": { "properties": { "native": { "properties": { "natsServers": { "items": { "minLength": 1, "type": "string" }, "minItems": 1, "type": "array" } }, "required": ["natsServers"], "type": "object" }, "websocket": { "properties": { "natsServers": { "items": { "minLength": 1, "type": "string" }, "minItems": 1, "type": "array" } }, "required": ["natsServers"], "type": "object" } }, "type": "object" } }, "required": ["instanceId", "deploymentId", "contractId", "contractDigest", "transports", "transport", "auth"], "type": "object" }, "DeviceDeployment": { "properties": { "appliedContracts": { "items": { "additionalProperties": false, "properties": { "allowedDigests": { "items": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "type": "array" }, "contractId": { "minLength": 1, "type": "string" } }, "required": ["contractId", "allowedDigests"], "type": "object" }, "type": "array" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "reviewMode": { "anyOf": [{ "const": "none", "type": "string" }, { "const": "required", "type": "string" }] } }, "required": ["deploymentId", "disabled", "appliedContracts"], "type": "object" }, "DevicePortalDefault": { "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["portalId"], "type": "object" }, "DevicePortalSelection": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["deploymentId", "portalId"], "type": "object" }, "HealthRequest": { "properties": {}, "type": "object" }, "HealthResponse": { "properties": { "checks": { "items": { "properties": { "error": { "type": "string" }, "info": { "patternProperties": { "^.*$": {} }, "type": "object" }, "latencyMs": { "type": "number" }, "name": { "type": "string" }, "status": { "anyOf": [{ "const": "ok", "type": "string" }, { "const": "failed", "type": "string" }] }, "summary": { "type": "string" } }, "required": ["name", "status", "latencyMs"], "type": "object" }, "type": "array" }, "service": { "type": "string" }, "status": { "anyOf": [{ "const": "healthy", "type": "string" }, { "const": "unhealthy", "type": "string" }, { "const": "degraded", "type": "string" }] }, "timestamp": { "format": "date-time", "type": "string" } }, "required": ["status", "service", "timestamp", "checks"], "type": "object" }, "InstanceGrantPolicy": { "properties": { "allowedOrigins": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contractId": { "minLength": 1, "type": "string" }, "createdAt": { "format": "date-time", "type": "string" }, "disabled": { "type": "boolean" }, "impliedCapabilities": { "items": { "type": "string" }, "type": "array" }, "source": { "anyOf": [{ "properties": { "createdBy": { "properties": { "id": { "minLength": 1, "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["origin", "id"], "type": "object" }, "kind": { "const": "admin_policy", "type": "string" }, "updatedBy": { "properties": { "id": { "minLength": 1, "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["origin", "id"], "type": "object" } }, "required": ["kind"], "type": "object" }, { "properties": { "entryUrl": { "minLength": 1, "type": "string" }, "kind": { "const": "portal_profile", "type": "string" }, "portalId": { "minLength": 1, "type": "string" } }, "required": ["kind", "portalId", "entryUrl"], "type": "object" }] }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["contractId", "impliedCapabilities", "disabled", "createdAt", "updatedAt", "source"], "type": "object" }, "LoginPortalDefault": { "properties": { "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["portalId"], "type": "object" }, "LoginPortalSelection": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] } }, "required": ["contractId", "portalId"], "type": "object" }, "Portal": { "properties": { "disabled": { "type": "boolean" }, "entryUrl": { "minLength": 1, "type": "string" }, "portalId": { "minLength": 1, "type": "string" } }, "required": ["portalId", "entryUrl", "disabled"], "type": "object" }, "PortalFlowState": { "anyOf": [{ "properties": { "app": { "properties": { "context": { "type": "object" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "description": { "minLength": 1, "type": "string" }, "displayName": { "minLength": 1, "type": "string" } }, "required": ["contractId", "contractDigest", "displayName", "description"], "type": "object" }, "flowId": { "minLength": 1, "type": "string" }, "providers": { "items": { "properties": { "displayName": { "minLength": 1, "type": "string" }, "id": { "minLength": 1, "type": "string" } }, "required": ["id", "displayName"], "type": "object" }, "type": "array" }, "status": { "const": "choose_provider", "type": "string" } }, "required": ["status", "flowId", "providers", "app"], "type": "object" }, { "properties": { "approval": { "properties": { "capabilities": { "items": { "type": "string" }, "type": "array" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "description": { "minLength": 1, "type": "string" }, "displayName": { "minLength": 1, "type": "string" } }, "required": ["contractDigest", "contractId", "displayName", "description", "capabilities"], "type": "object" }, "flowId": { "minLength": 1, "type": "string" }, "status": { "const": "approval_required", "type": "string" }, "user": { "properties": { "email": { "minLength": 1, "type": "string" }, "id": { "minLength": 1, "type": "string" }, "image": { "minLength": 1, "type": "string" }, "name": { "minLength": 1, "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["origin", "id"], "type": "object" } }, "required": ["status", "flowId", "user", "approval"], "type": "object" }, { "properties": { "approval": { "properties": { "capabilities": { "items": { "type": "string" }, "type": "array" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "description": { "minLength": 1, "type": "string" }, "displayName": { "minLength": 1, "type": "string" } }, "required": ["contractDigest", "contractId", "displayName", "description", "capabilities"], "type": "object" }, "flowId": { "minLength": 1, "type": "string" }, "returnLocation": { "minLength": 1, "type": "string" }, "status": { "const": "approval_denied", "type": "string" } }, "required": ["status", "flowId", "approval"], "type": "object" }, { "properties": { "approval": { "properties": { "capabilities": { "items": { "type": "string" }, "type": "array" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "description": { "minLength": 1, "type": "string" }, "displayName": { "minLength": 1, "type": "string" } }, "required": ["contractDigest", "contractId", "displayName", "description", "capabilities"], "type": "object" }, "flowId": { "minLength": 1, "type": "string" }, "missingCapabilities": { "items": { "type": "string" }, "type": "array" }, "returnLocation": { "minLength": 1, "type": "string" }, "status": { "const": "insufficient_capabilities", "type": "string" }, "user": { "properties": { "id": { "minLength": 1, "type": "string" }, "name": { "minLength": 1, "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["origin", "id"], "type": "object" }, "userCapabilities": { "items": { "type": "string" }, "type": "array" } }, "required": ["status", "flowId", "approval", "missingCapabilities", "userCapabilities"], "type": "object" }, { "properties": { "location": { "minLength": 1, "type": "string" }, "status": { "const": "redirect", "type": "string" } }, "required": ["status", "location"], "type": "object" }, { "properties": { "status": { "const": "expired", "type": "string" } }, "required": ["status"], "type": "object" }] }, "PortalProfile": { "properties": { "allowedOrigins": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contractId": { "minLength": 1, "type": "string" }, "createdAt": { "format": "date-time", "type": "string" }, "disabled": { "type": "boolean" }, "entryUrl": { "minLength": 1, "type": "string" }, "impliedCapabilities": { "items": { "type": "string" }, "type": "array" }, "portalId": { "minLength": 1, "type": "string" }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["portalId", "entryUrl", "contractId", "impliedCapabilities", "disabled", "createdAt", "updatedAt"], "type": "object" }, "ServiceDeployment": { "properties": { "appliedContracts": { "items": { "properties": { "allowedDigests": { "items": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "type": "array" }, "contractId": { "minLength": 1, "type": "string" }, "resourceBindingsByDigest": { "patternProperties": { "^[A-Za-z0-9_-]+$": { "properties": { "jobs": { "properties": { "namespace": { "minLength": 1, "type": "string" }, "queues": { "patternProperties": { "^.*$": { "properties": { "ackWaitMs": { "minimum": 1, "type": "integer" }, "backoffMs": { "items": { "minimum": 0, "type": "integer" }, "type": "array" }, "concurrency": { "minimum": 1, "type": "integer" }, "consumerName": { "minLength": 1, "type": "string" }, "defaultDeadlineMs": { "minimum": 1, "type": "integer" }, "dlq": { "type": "boolean" }, "logs": { "type": "boolean" }, "maxDeliver": { "minimum": 1, "type": "integer" }, "payload": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "publishPrefix": { "minLength": 1, "type": "string" }, "queueType": { "minLength": 1, "type": "string" }, "result": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "workSubject": { "minLength": 1, "type": "string" } }, "required": ["queueType", "publishPrefix", "workSubject", "consumerName", "payload", "maxDeliver", "backoffMs", "ackWaitMs", "progress", "logs", "dlq", "concurrency"], "type": "object" } }, "type": "object" }, "workStream": { "minLength": 1, "type": "string" } }, "required": ["namespace", "queues"], "type": "object" }, "kv": { "patternProperties": { "^.*$": { "properties": { "bucket": { "minLength": 1, "type": "string" }, "history": { "minimum": 1, "type": "integer" }, "maxValueBytes": { "minimum": 1, "type": "integer" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["bucket", "history", "ttlMs"], "type": "object" } }, "type": "object" }, "store": { "patternProperties": { "^.*$": { "properties": { "maxObjectBytes": { "minimum": 1, "type": "integer" }, "maxTotalBytes": { "minimum": 1, "type": "integer" }, "name": { "minLength": 1, "type": "string" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["name", "ttlMs"], "type": "object" } }, "type": "object" } }, "type": "object" } }, "type": "object" } }, "required": ["contractId", "allowedDigests"], "type": "object" }, "type": "array" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "namespaces": { "items": { "minLength": 1, "type": "string" }, "type": "array" } }, "required": ["deploymentId", "namespaces", "disabled", "appliedContracts"], "type": "object" }, "ServiceInstance": { "properties": { "capabilities": { "items": { "type": "string" }, "type": "array" }, "createdAt": { "format": "date-time", "type": "string" }, "currentContractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "currentContractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "instanceId": { "minLength": 1, "type": "string" }, "instanceKey": { "minLength": 1, "type": "string" }, "resourceBindings": { "properties": { "jobs": { "properties": { "namespace": { "minLength": 1, "type": "string" }, "queues": { "patternProperties": { "^.*$": { "properties": { "ackWaitMs": { "minimum": 1, "type": "integer" }, "backoffMs": { "items": { "minimum": 0, "type": "integer" }, "type": "array" }, "concurrency": { "minimum": 1, "type": "integer" }, "consumerName": { "minLength": 1, "type": "string" }, "defaultDeadlineMs": { "minimum": 1, "type": "integer" }, "dlq": { "type": "boolean" }, "logs": { "type": "boolean" }, "maxDeliver": { "minimum": 1, "type": "integer" }, "payload": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "publishPrefix": { "minLength": 1, "type": "string" }, "queueType": { "minLength": 1, "type": "string" }, "result": { "additionalProperties": false, "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "workSubject": { "minLength": 1, "type": "string" } }, "required": ["queueType", "publishPrefix", "workSubject", "consumerName", "payload", "maxDeliver", "backoffMs", "ackWaitMs", "progress", "logs", "dlq", "concurrency"], "type": "object" } }, "type": "object" }, "workStream": { "minLength": 1, "type": "string" } }, "required": ["namespace", "queues"], "type": "object" }, "kv": { "patternProperties": { "^.*$": { "properties": { "bucket": { "minLength": 1, "type": "string" }, "history": { "minimum": 1, "type": "integer" }, "maxValueBytes": { "minimum": 1, "type": "integer" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["bucket", "history", "ttlMs"], "type": "object" } }, "type": "object" }, "store": { "patternProperties": { "^.*$": { "properties": { "maxObjectBytes": { "minimum": 1, "type": "integer" }, "maxTotalBytes": { "minimum": 1, "type": "integer" }, "name": { "minLength": 1, "type": "string" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["name", "ttlMs"], "type": "object" } }, "type": "object" } }, "type": "object" } }, "required": ["instanceId", "deploymentId", "instanceKey", "disabled", "capabilities", "createdAt"], "type": "object" } } };
4
+ export const CONTRACT_DIGEST = "LS4TSi9WOfhU3GNszr7fimum7xsF2PhdvLDtsRwpCas";
5
+ export const CONTRACT = { "capabilities": { "trellis.auth::device.review": { "description": "Review and decide pending device activation requests.", "displayName": "Review device activation" }, "trellis.auth::events.auth": { "description": "Publish or subscribe to Trellis auth lifecycle events.", "displayName": "Observe auth events" } }, "description": "Provide Trellis authentication, session, deployment, instance, and admin RPCs.", "displayName": "Trellis Auth", "events": { "Auth.Connections.Closed": { "capabilities": { "publish": ["trellis.auth::events.auth"], "subscribe": ["trellis.auth::events.auth"] }, "event": { "schema": "AuthConnectionsClosedEvent" }, "subject": "events.v1.Auth.Connections.Closed", "version": "v1" }, "Auth.Connections.Kicked": { "capabilities": { "publish": ["trellis.auth::events.auth"], "subscribe": ["trellis.auth::events.auth"] }, "event": { "schema": "AuthConnectionsKickedEvent" }, "subject": "events.v1.Auth.Connections.Kicked", "version": "v1" }, "Auth.Connections.Opened": { "capabilities": { "publish": ["trellis.auth::events.auth"], "subscribe": ["trellis.auth::events.auth"] }, "event": { "schema": "AuthConnectionsOpenedEvent" }, "subject": "events.v1.Auth.Connections.Opened", "version": "v1" }, "Auth.DeviceUserAuthorities.Approved": { "capabilities": { "publish": ["trellis.auth::events.auth"], "subscribe": ["trellis.auth::device.review"] }, "event": { "schema": "AuthDeviceUserAuthoritiesApprovedEvent" }, "params": ["/deploymentId"], "subject": "events.v1.Auth.DeviceUserAuthorities.Approved.{/deploymentId}", "version": "v1" }, "Auth.DeviceUserAuthorities.Requested": { "capabilities": { "publish": ["trellis.auth::events.auth"], "subscribe": ["trellis.auth::device.review"] }, "event": { "schema": "AuthDeviceUserAuthoritiesRequestedEvent" }, "params": ["/deploymentId"], "subject": "events.v1.Auth.DeviceUserAuthorities.Requested.{/deploymentId}", "version": "v1" }, "Auth.DeviceUserAuthorities.Resolved": { "capabilities": { "publish": ["trellis.auth::events.auth"], "subscribe": ["trellis.auth::device.review", "trellis.auth::events.auth"] }, "event": { "schema": "AuthDeviceUserAuthoritiesResolvedEvent" }, "params": ["/deploymentId"], "subject": "events.v1.Auth.DeviceUserAuthorities.Resolved.{/deploymentId}", "version": "v1" }, "Auth.DeviceUserAuthorities.ReviewRequested": { "capabilities": { "publish": ["trellis.auth::events.auth"], "subscribe": ["trellis.auth::device.review"] }, "event": { "schema": "AuthDeviceUserAuthoritiesReviewRequestedEvent" }, "params": ["/deploymentId"], "subject": "events.v1.Auth.DeviceUserAuthorities.ReviewRequested.{/deploymentId}", "version": "v1" }, "Auth.Sessions.Revoked": { "capabilities": { "publish": ["trellis.auth::events.auth"], "subscribe": ["trellis.auth::events.auth"] }, "event": { "schema": "AuthSessionsRevokedEvent" }, "subject": "events.v1.Auth.Sessions.Revoked", "version": "v1" } }, "format": "trellis.contract.v1", "id": "trellis.auth@v1", "kind": "service", "operations": { "Auth.DeviceUserAuthorities.Resolve": { "capabilities": { "call": [] }, "input": { "schema": "AuthResolveDeviceUserAuthoritiesRequest" }, "output": { "schema": "AuthResolveDeviceUserAuthoritiesResponse" }, "progress": { "schema": "AuthResolveDeviceUserAuthoritiesProgress" }, "subject": "operations.v1.Auth.DeviceUserAuthorities.Resolve", "version": "v1" } }, "rpc": { "Auth.Capabilities.List": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthCapabilitiesListRequest" }, "output": { "schema": "AuthCapabilitiesListResponse" }, "subject": "rpc.v1.Auth.Capabilities.List", "version": "v1" }, "Auth.CapabilityGroups.Delete": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthCapabilityGroupsDeleteRequest" }, "output": { "schema": "AuthCapabilityGroupsDeleteResponse" }, "subject": "rpc.v1.Auth.CapabilityGroups.Delete", "version": "v1" }, "Auth.CapabilityGroups.Get": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthCapabilityGroupsGetRequest" }, "output": { "schema": "AuthCapabilityGroupsGetResponse" }, "subject": "rpc.v1.Auth.CapabilityGroups.Get", "version": "v1" }, "Auth.CapabilityGroups.List": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthCapabilityGroupsListRequest" }, "output": { "schema": "AuthCapabilityGroupsListResponse" }, "subject": "rpc.v1.Auth.CapabilityGroups.List", "version": "v1" }, "Auth.CapabilityGroups.Put": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthCapabilityGroupsPutRequest" }, "output": { "schema": "AuthCapabilityGroupsPutResponse" }, "subject": "rpc.v1.Auth.CapabilityGroups.Put", "version": "v1" }, "Auth.CatalogIssues.Resolve": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthCatalogIssuesResolveRequest" }, "output": { "schema": "AuthCatalogIssuesResolveResponse" }, "subject": "rpc.v1.Auth.CatalogIssues.Resolve", "version": "v1" }, "Auth.Connections.Kick": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthConnectionsKickRequest" }, "output": { "schema": "AuthConnectionsKickResponse" }, "subject": "rpc.v1.Auth.Connections.Kick", "version": "v1" }, "Auth.Connections.List": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthConnectionsListRequest" }, "output": { "schema": "AuthConnectionsListResponse" }, "subject": "rpc.v1.Auth.Connections.List", "version": "v1" }, "Auth.Deployments.Create": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthDeploymentsCreateRequest" }, "output": { "schema": "AuthDeploymentsCreateResponse" }, "subject": "rpc.v1.Auth.Deployments.Create", "version": "v1" }, "Auth.Deployments.Disable": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthDeploymentsDisableRequest" }, "output": { "schema": "AuthDeploymentsDisableResponse" }, "subject": "rpc.v1.Auth.Deployments.Disable", "version": "v1" }, "Auth.Deployments.Enable": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthDeploymentsEnableRequest" }, "output": { "schema": "AuthDeploymentsEnableResponse" }, "subject": "rpc.v1.Auth.Deployments.Enable", "version": "v1" }, "Auth.Deployments.List": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthDeploymentsListRequest" }, "output": { "schema": "AuthDeploymentsListResponse" }, "subject": "rpc.v1.Auth.Deployments.List", "version": "v1" }, "Auth.Deployments.Remove": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthDeploymentsRemoveRequest" }, "output": { "schema": "AuthDeploymentsRemoveResponse" }, "subject": "rpc.v1.Auth.Deployments.Remove", "version": "v1" }, "Auth.DeviceUserAuthorities.List": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthDeviceUserAuthoritiesListRequest" }, "output": { "schema": "AuthDeviceUserAuthoritiesListResponse" }, "subject": "rpc.v1.Auth.DeviceUserAuthorities.List", "version": "v1" }, "Auth.DeviceUserAuthorities.Reviews.Decide": { "capabilities": { "call": ["trellis.auth::device.review"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthDeviceUserAuthoritiesReviewsDecideRequest" }, "output": { "schema": "AuthDeviceUserAuthoritiesReviewsDecideResponse" }, "subject": "rpc.v1.Auth.DeviceUserAuthorities.Reviews.Decide", "version": "v1" }, "Auth.DeviceUserAuthorities.Reviews.List": { "capabilities": { "call": ["trellis.auth::device.review"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthDeviceUserAuthoritiesReviewsListRequest" }, "output": { "schema": "AuthDeviceUserAuthoritiesReviewsListResponse" }, "subject": "rpc.v1.Auth.DeviceUserAuthorities.Reviews.List", "version": "v1" }, "Auth.DeviceUserAuthorities.Revoke": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthDeviceUserAuthoritiesRevokeRequest" }, "output": { "schema": "AuthDeviceUserAuthoritiesRevokeResponse" }, "subject": "rpc.v1.Auth.DeviceUserAuthorities.Revoke", "version": "v1" }, "Auth.Devices.ConnectInfo.Get": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthDevicesConnectInfoGetRequest" }, "output": { "schema": "AuthDevicesConnectInfoGetResponse" }, "subject": "rpc.v1.Auth.Devices.ConnectInfo.Get", "version": "v1" }, "Auth.Devices.Disable": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthDevicesDisableRequest" }, "output": { "schema": "AuthDevicesDisableResponse" }, "subject": "rpc.v1.Auth.Devices.Disable", "version": "v1" }, "Auth.Devices.Enable": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthDevicesEnableRequest" }, "output": { "schema": "AuthDevicesEnableResponse" }, "subject": "rpc.v1.Auth.Devices.Enable", "version": "v1" }, "Auth.Devices.List": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthDevicesListRequest" }, "output": { "schema": "AuthDevicesListResponse" }, "subject": "rpc.v1.Auth.Devices.List", "version": "v1" }, "Auth.Devices.Provision": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthDevicesProvisionRequest" }, "output": { "schema": "AuthDevicesProvisionResponse" }, "subject": "rpc.v1.Auth.Devices.Provision", "version": "v1" }, "Auth.Devices.Remove": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthDevicesRemoveRequest" }, "output": { "schema": "AuthDevicesRemoveResponse" }, "subject": "rpc.v1.Auth.Devices.Remove", "version": "v1" }, "Auth.EnvelopeExpansions.Approve": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthEnvelopesApproveRequestRequest" }, "output": { "schema": "AuthEnvelopesApproveRequestResponse" }, "subject": "rpc.v1.Auth.EnvelopeExpansions.Approve", "version": "v1" }, "Auth.EnvelopeExpansions.List": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthEnvelopeExpansionsListRequest" }, "output": { "schema": "AuthEnvelopeExpansionsListResponse" }, "subject": "rpc.v1.Auth.EnvelopeExpansions.List", "version": "v1" }, "Auth.EnvelopeExpansions.Reject": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthEnvelopeExpansionsRejectRequest" }, "output": { "schema": "AuthEnvelopeExpansionsRejectResponse" }, "subject": "rpc.v1.Auth.EnvelopeExpansions.Reject", "version": "v1" }, "Auth.Envelopes.Changes.Preview": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthEnvelopesChangesPreviewRequest" }, "output": { "schema": "AuthEnvelopesChangesPreviewResponse" }, "subject": "rpc.v1.Auth.Envelopes.Changes.Preview", "version": "v1" }, "Auth.Envelopes.Expand": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthEnvelopesExpandRequest" }, "output": { "schema": "AuthEnvelopesExpandResponse" }, "subject": "rpc.v1.Auth.Envelopes.Expand", "version": "v1" }, "Auth.Envelopes.Get": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthEnvelopesGetRequest" }, "output": { "schema": "AuthEnvelopesGetResponse" }, "subject": "rpc.v1.Auth.Envelopes.Get", "version": "v1" }, "Auth.Envelopes.GrantOverrides.List": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthEnvelopesGrantOverridesListRequest" }, "output": { "schema": "AuthEnvelopesGrantOverridesListResponse" }, "subject": "rpc.v1.Auth.Envelopes.GrantOverrides.List", "version": "v1" }, "Auth.Envelopes.GrantOverrides.Put": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthEnvelopesGrantOverridesPutRequest" }, "output": { "schema": "AuthEnvelopesGrantOverridesResponse" }, "subject": "rpc.v1.Auth.Envelopes.GrantOverrides.Put", "version": "v1" }, "Auth.Envelopes.GrantOverrides.Remove": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthEnvelopesGrantOverridesRemoveRequest" }, "output": { "schema": "AuthEnvelopesGrantOverridesResponse" }, "subject": "rpc.v1.Auth.Envelopes.GrantOverrides.Remove", "version": "v1" }, "Auth.Envelopes.List": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthEnvelopesListRequest" }, "output": { "schema": "AuthEnvelopesListResponse" }, "subject": "rpc.v1.Auth.Envelopes.List", "version": "v1" }, "Auth.Envelopes.Shrink": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthEnvelopesShrinkRequest" }, "output": { "schema": "AuthEnvelopesShrinkResponse" }, "subject": "rpc.v1.Auth.Envelopes.Shrink", "version": "v1" }, "Auth.Health": { "capabilities": { "call": [] }, "errors": [{ "type": "UnexpectedError" }], "input": { "schema": "HealthRequest" }, "output": { "schema": "HealthResponse" }, "subject": "rpc.v1.Auth.Health", "version": "v1" }, "Auth.Identities.Grants.List": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthIdentitiesGrantsListRequest" }, "output": { "schema": "AuthIdentitiesGrantsListResponse" }, "subject": "rpc.v1.Auth.Identities.Grants.List", "version": "v1" }, "Auth.Identities.List": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthIdentitiesListRequest" }, "output": { "schema": "AuthIdentitiesListResponse" }, "subject": "rpc.v1.Auth.Identities.List", "version": "v1" }, "Auth.IdentityEnvelopes.Revoke": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthIdentityEnvelopesRevokeRequest" }, "output": { "schema": "AuthIdentityEnvelopesRevokeResponse" }, "subject": "rpc.v1.Auth.IdentityEnvelopes.Revoke", "version": "v1" }, "Auth.Portals.Get": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthPortalsGetRequest" }, "output": { "schema": "AuthPortalsGetResponse" }, "subject": "rpc.v1.Auth.Portals.Get", "version": "v1" }, "Auth.Portals.List": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthPortalsListRequest" }, "output": { "schema": "AuthPortalsListResponse" }, "subject": "rpc.v1.Auth.Portals.List", "version": "v1" }, "Auth.Portals.LoginSettings.Get": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthPortalsLoginSettingsGetRequest" }, "output": { "schema": "AuthPortalsLoginSettingsResponse" }, "subject": "rpc.v1.Auth.Portals.LoginSettings.Get", "version": "v1" }, "Auth.Portals.LoginSettings.Update": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthPortalsLoginSettingsUpdateRequest" }, "output": { "schema": "AuthPortalsLoginSettingsResponse" }, "subject": "rpc.v1.Auth.Portals.LoginSettings.Update", "version": "v1" }, "Auth.Portals.Put": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthPortalsPutRequest" }, "output": { "schema": "AuthPortalsPutResponse" }, "subject": "rpc.v1.Auth.Portals.Put", "version": "v1" }, "Auth.Portals.Remove": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthPortalsRemoveRequest" }, "output": { "schema": "AuthPortalsRemoveResponse" }, "subject": "rpc.v1.Auth.Portals.Remove", "version": "v1" }, "Auth.Portals.Routes.Put": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthPortalsRoutesPutRequest" }, "output": { "schema": "AuthPortalsRoutesPutResponse" }, "subject": "rpc.v1.Auth.Portals.Routes.Put", "version": "v1" }, "Auth.Portals.Routes.Remove": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthPortalsRoutesRemoveRequest" }, "output": { "schema": "AuthPortalsRoutesRemoveResponse" }, "subject": "rpc.v1.Auth.Portals.Routes.Remove", "version": "v1" }, "Auth.Requests.Validate": { "capabilities": { "call": ["service"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthRequestsValidateRequest" }, "output": { "schema": "AuthRequestsValidateResponse" }, "subject": "rpc.v1.Auth.Requests.Validate", "version": "v1" }, "Auth.ServiceInstances.Disable": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthServiceInstancesDisableRequest" }, "output": { "schema": "AuthServiceInstancesDisableResponse" }, "subject": "rpc.v1.Auth.ServiceInstances.Disable", "version": "v1" }, "Auth.ServiceInstances.Enable": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthServiceInstancesEnableRequest" }, "output": { "schema": "AuthServiceInstancesEnableResponse" }, "subject": "rpc.v1.Auth.ServiceInstances.Enable", "version": "v1" }, "Auth.ServiceInstances.List": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthServiceInstancesListRequest" }, "output": { "schema": "AuthServiceInstancesListResponse" }, "subject": "rpc.v1.Auth.ServiceInstances.List", "version": "v1" }, "Auth.ServiceInstances.Provision": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthServiceInstancesProvisionRequest" }, "output": { "schema": "AuthServiceInstancesProvisionResponse" }, "subject": "rpc.v1.Auth.ServiceInstances.Provision", "version": "v1" }, "Auth.ServiceInstances.Remove": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthServiceInstancesRemoveRequest" }, "output": { "schema": "AuthServiceInstancesRemoveResponse" }, "subject": "rpc.v1.Auth.ServiceInstances.Remove", "version": "v1" }, "Auth.Sessions.List": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthSessionsListRequest" }, "output": { "schema": "AuthSessionsListResponse" }, "subject": "rpc.v1.Auth.Sessions.List", "version": "v1" }, "Auth.Sessions.Logout": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthSessionsLogoutRequest" }, "output": { "schema": "AuthSessionsLogoutResponse" }, "subject": "rpc.v1.Auth.Sessions.Logout", "version": "v1" }, "Auth.Sessions.Me": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }], "input": { "schema": "AuthSessionsMeRequest" }, "output": { "schema": "AuthSessionsMeResponse" }, "subject": "rpc.v1.Auth.Sessions.Me", "version": "v1" }, "Auth.Sessions.Revoke": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthSessionsRevokeRequest" }, "output": { "schema": "AuthSessionsRevokeResponse" }, "subject": "rpc.v1.Auth.Sessions.Revoke", "version": "v1" }, "Auth.UserIdentities.List": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthUserIdentitiesListRequest" }, "output": { "schema": "AuthUserIdentitiesListResponse" }, "subject": "rpc.v1.Auth.UserIdentities.List", "version": "v1" }, "Auth.UserIdentities.Unlink": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthUserIdentitiesUnlinkRequest" }, "output": { "schema": "AuthUserIdentitiesUnlinkResponse" }, "subject": "rpc.v1.Auth.UserIdentities.Unlink", "version": "v1" }, "Auth.Users.Create": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthUsersCreateRequest" }, "output": { "schema": "AuthUsersCreateResponse" }, "subject": "rpc.v1.Auth.Users.Create", "version": "v1" }, "Auth.Users.Get": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthUsersGetRequest" }, "output": { "schema": "AuthUsersGetResponse" }, "subject": "rpc.v1.Auth.Users.Get", "version": "v1" }, "Auth.Users.IdentityLink.Create": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthUsersIdentityLinkCreateRequest" }, "output": { "schema": "AuthUsersAccountFlowCreateResponse" }, "subject": "rpc.v1.Auth.Users.IdentityLink.Create", "version": "v1" }, "Auth.Users.List": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthUsersListRequest" }, "output": { "schema": "AuthUsersListResponse" }, "subject": "rpc.v1.Auth.Users.List", "version": "v1" }, "Auth.Users.Password.Change": { "capabilities": { "call": [] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthUsersPasswordChangeRequest" }, "output": { "schema": "AuthUsersPasswordChangeResponse" }, "subject": "rpc.v1.Auth.Users.Password.Change", "version": "v1" }, "Auth.Users.PasswordReset.Create": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthUsersPasswordResetCreateRequest" }, "output": { "schema": "AuthUsersAccountFlowCreateResponse" }, "subject": "rpc.v1.Auth.Users.PasswordReset.Create", "version": "v1" }, "Auth.Users.Update": { "capabilities": { "call": ["admin"] }, "errors": [{ "type": "AuthError" }, { "type": "UnexpectedError" }, { "type": "ValidationError" }], "input": { "schema": "AuthUsersUpdateRequest" }, "output": { "schema": "AuthUsersUpdateResponse" }, "subject": "rpc.v1.Auth.Users.Update", "version": "v1" } }, "schemas": { "AuthCapabilitiesListRequest": { "properties": { "limit": { "maximum": 500, "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" } }, "required": ["limit"], "type": "object" }, "AuthCapabilitiesListResponse": { "properties": { "count": { "minimum": 0, "type": "integer" }, "entries": { "default": [], "items": { "properties": { "consequence": { "minLength": 1, "type": "string" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractDisplayName": { "minLength": 1, "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "description": { "minLength": 1, "type": "string" }, "displayName": { "minLength": 1, "type": "string" }, "key": { "minLength": 1, "type": "string" }, "source": { "anyOf": [{ "const": "contract", "type": "string" }, { "const": "platform", "type": "string" }] } }, "required": ["key", "displayName", "description", "source"], "type": "object" }, "type": "array" }, "limit": { "minimum": 0, "type": "integer" }, "nextOffset": { "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" } }, "required": ["entries", "count", "offset", "limit"], "type": "object" }, "AuthCapabilityGroupsDeleteRequest": { "properties": { "groupKey": { "minLength": 1, "type": "string" } }, "required": ["groupKey"], "type": "object" }, "AuthCapabilityGroupsDeleteResponse": { "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthCapabilityGroupsGetRequest": { "properties": { "groupKey": { "minLength": 1, "type": "string" } }, "required": ["groupKey"], "type": "object" }, "AuthCapabilityGroupsGetResponse": { "properties": { "group": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "createdAt": { "format": "date-time", "type": "string" }, "description": { "minLength": 1, "type": "string" }, "displayName": { "minLength": 1, "type": "string" }, "groupKey": { "minLength": 1, "type": "string" }, "includedGroups": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["groupKey", "displayName", "description", "capabilities", "includedGroups", "createdAt", "updatedAt"], "type": "object" } }, "required": ["group"], "type": "object" }, "AuthCapabilityGroupsListRequest": { "properties": { "limit": { "maximum": 500, "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" } }, "required": ["limit"], "type": "object" }, "AuthCapabilityGroupsListResponse": { "properties": { "count": { "minimum": 0, "type": "integer" }, "entries": { "default": [], "items": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "createdAt": { "format": "date-time", "type": "string" }, "description": { "minLength": 1, "type": "string" }, "displayName": { "minLength": 1, "type": "string" }, "groupKey": { "minLength": 1, "type": "string" }, "includedGroups": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["groupKey", "displayName", "description", "capabilities", "includedGroups", "createdAt", "updatedAt"], "type": "object" }, "type": "array" }, "limit": { "minimum": 0, "type": "integer" }, "nextOffset": { "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" } }, "required": ["entries", "count", "offset", "limit"], "type": "object" }, "AuthCapabilityGroupsPutRequest": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "description": { "minLength": 1, "type": "string" }, "displayName": { "minLength": 1, "type": "string" }, "groupKey": { "minLength": 1, "type": "string" }, "includedGroups": { "items": { "minLength": 1, "type": "string" }, "type": "array" } }, "required": ["groupKey", "displayName", "description"], "type": "object" }, "AuthCapabilityGroupsPutResponse": { "properties": { "group": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "createdAt": { "format": "date-time", "type": "string" }, "description": { "minLength": 1, "type": "string" }, "displayName": { "minLength": 1, "type": "string" }, "groupKey": { "minLength": 1, "type": "string" }, "includedGroups": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["groupKey", "displayName", "description", "capabilities", "includedGroups", "createdAt", "updatedAt"], "type": "object" } }, "required": ["group"], "type": "object" }, "AuthCatalogIssuesResolveRequest": { "properties": { "action": { "anyOf": [{ "const": "keep-current", "type": "string" }, { "const": "force-replace", "type": "string" }] }, "issueId": { "minLength": 1, "type": "string" } }, "required": ["issueId", "action"], "type": "object" }, "AuthCatalogIssuesResolveResponse": { "properties": { "action": { "anyOf": [{ "const": "keep-current", "type": "string" }, { "const": "force-replace", "type": "string" }] }, "ignoredEvidence": { "items": { "properties": { "contract": { "type": "object" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "firstSeenAt": { "format": "date-time", "type": "string" }, "ignoreReason": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "ignoredAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "ignoredBy": { "anyOf": [{ "patternProperties": { "^.*$": {} }, "type": "object" }, { "type": "null" }] }, "lastSeenAt": { "format": "date-time", "type": "string" } }, "required": ["deploymentId", "contractId", "contractDigest", "contract", "firstSeenAt", "lastSeenAt"], "type": "object" }, "type": "array" }, "issueId": { "minLength": 1, "type": "string" }, "success": { "const": true, "type": "boolean" } }, "required": ["success", "issueId", "action", "ignoredEvidence"], "type": "object" }, "AuthConnectionsClosedEvent": { "allOf": [{ "properties": { "header": { "properties": { "id": { "type": "string" }, "time": { "format": "date-time", "type": "string" } }, "required": ["id", "time"], "type": "object" } }, "required": ["header"], "type": "object" }, { "properties": { "id": { "type": "string" }, "origin": { "type": "string" }, "sessionKey": { "type": "string" }, "userNkey": { "type": "string" } }, "required": ["origin", "id", "sessionKey", "userNkey"], "type": "object" }] }, "AuthConnectionsKickRequest": { "properties": { "userNkey": { "type": "string" } }, "required": ["userNkey"], "type": "object" }, "AuthConnectionsKickResponse": { "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthConnectionsKickedEvent": { "allOf": [{ "properties": { "header": { "properties": { "id": { "type": "string" }, "time": { "format": "date-time", "type": "string" } }, "required": ["id", "time"], "type": "object" } }, "required": ["header"], "type": "object" }, { "properties": { "id": { "type": "string" }, "kickedBy": { "type": "string" }, "origin": { "type": "string" }, "userNkey": { "type": "string" } }, "required": ["origin", "id", "userNkey", "kickedBy"], "type": "object" }] }, "AuthConnectionsListRequest": { "properties": { "limit": { "maximum": 500, "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" }, "sessionKey": { "type": "string" }, "user": { "type": "string" } }, "required": ["limit"], "type": "object" }, "AuthConnectionsListResponse": { "properties": { "count": { "minimum": 0, "type": "integer" }, "entries": { "default": [], "items": { "anyOf": [{ "properties": { "clientId": { "type": "number" }, "connectedAt": { "type": "string" }, "contractDisplayName": { "type": "string" }, "contractId": { "type": "string" }, "key": { "type": "string" }, "participantKind": { "const": "app", "type": "string" }, "principal": { "properties": { "identity": { "properties": { "identityId": { "type": "string" }, "provider": { "type": "string" }, "subject": { "type": "string" } }, "required": ["identityId", "provider", "subject"], "type": "object" }, "name": { "type": "string" }, "type": { "const": "user", "type": "string" }, "userId": { "type": "string" } }, "required": ["type", "userId", "identity", "name"], "type": "object" }, "serverId": { "type": "string" }, "sessionKey": { "type": "string" }, "userNkey": { "type": "string" } }, "required": ["key", "userNkey", "sessionKey", "serverId", "clientId", "connectedAt", "participantKind", "principal", "contractId", "contractDisplayName"], "type": "object" }, { "properties": { "clientId": { "type": "number" }, "connectedAt": { "type": "string" }, "contractDisplayName": { "type": "string" }, "contractId": { "type": "string" }, "key": { "type": "string" }, "participantKind": { "const": "agent", "type": "string" }, "principal": { "properties": { "identity": { "properties": { "identityId": { "type": "string" }, "provider": { "type": "string" }, "subject": { "type": "string" } }, "required": ["identityId", "provider", "subject"], "type": "object" }, "name": { "type": "string" }, "type": { "const": "user", "type": "string" }, "userId": { "type": "string" } }, "required": ["type", "userId", "identity", "name"], "type": "object" }, "serverId": { "type": "string" }, "sessionKey": { "type": "string" }, "userNkey": { "type": "string" } }, "required": ["key", "userNkey", "sessionKey", "serverId", "clientId", "connectedAt", "participantKind", "principal", "contractId", "contractDisplayName"], "type": "object" }, { "properties": { "clientId": { "type": "number" }, "connectedAt": { "type": "string" }, "contractDisplayName": { "type": "string" }, "contractId": { "type": "string" }, "key": { "type": "string" }, "participantKind": { "const": "device", "type": "string" }, "principal": { "properties": { "deploymentId": { "type": "string" }, "deviceId": { "type": "string" }, "deviceType": { "type": "string" }, "runtimePublicKey": { "type": "string" }, "type": { "const": "device", "type": "string" } }, "required": ["type", "deviceId", "deviceType", "runtimePublicKey", "deploymentId"], "type": "object" }, "serverId": { "type": "string" }, "sessionKey": { "type": "string" }, "userNkey": { "type": "string" } }, "required": ["key", "userNkey", "sessionKey", "serverId", "clientId", "connectedAt", "participantKind", "principal", "contractId"], "type": "object" }, { "properties": { "clientId": { "type": "number" }, "connectedAt": { "type": "string" }, "key": { "type": "string" }, "participantKind": { "const": "service", "type": "string" }, "principal": { "properties": { "deploymentId": { "type": "string" }, "id": { "type": "string" }, "instanceId": { "type": "string" }, "name": { "type": "string" }, "type": { "const": "service", "type": "string" } }, "required": ["type", "id", "name", "instanceId", "deploymentId"], "type": "object" }, "serverId": { "type": "string" }, "sessionKey": { "type": "string" }, "userNkey": { "type": "string" } }, "required": ["key", "userNkey", "sessionKey", "serverId", "clientId", "connectedAt", "participantKind", "principal"], "type": "object" }] }, "type": "array" }, "limit": { "minimum": 0, "type": "integer" }, "nextOffset": { "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" } }, "required": ["entries", "count", "offset", "limit"], "type": "object" }, "AuthConnectionsOpenedEvent": { "allOf": [{ "properties": { "header": { "properties": { "id": { "type": "string" }, "time": { "format": "date-time", "type": "string" } }, "required": ["id", "time"], "type": "object" } }, "required": ["header"], "type": "object" }, { "properties": { "id": { "type": "string" }, "origin": { "type": "string" }, "sessionKey": { "type": "string" }, "userNkey": { "type": "string" } }, "required": ["origin", "id", "sessionKey", "userNkey"], "type": "object" }] }, "AuthDeployment": { "anyOf": [{ "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "kind": { "const": "service", "type": "string" }, "namespaces": { "items": { "minLength": 1, "type": "string" }, "type": "array" } }, "required": ["kind", "deploymentId", "namespaces", "disabled"], "type": "object" }, { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "kind": { "const": "device", "type": "string" }, "reviewMode": { "anyOf": [{ "const": "none", "type": "string" }, { "const": "required", "type": "string" }] } }, "required": ["kind", "deploymentId", "disabled"], "type": "object" }] }, "AuthDeploymentsCreateRequest": { "anyOf": [{ "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "kind": { "const": "service", "type": "string" }, "namespaces": { "items": { "minLength": 1, "type": "string" }, "type": "array" } }, "required": ["kind", "deploymentId", "namespaces"], "type": "object" }, { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "kind": { "const": "device", "type": "string" }, "reviewMode": { "anyOf": [{ "const": "none", "type": "string" }, { "const": "required", "type": "string" }] } }, "required": ["kind", "deploymentId"], "type": "object" }] }, "AuthDeploymentsCreateResponse": { "properties": { "deployment": { "anyOf": [{ "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "kind": { "const": "service", "type": "string" }, "namespaces": { "items": { "minLength": 1, "type": "string" }, "type": "array" } }, "required": ["kind", "deploymentId", "namespaces", "disabled"], "type": "object" }, { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "kind": { "const": "device", "type": "string" }, "reviewMode": { "anyOf": [{ "const": "none", "type": "string" }, { "const": "required", "type": "string" }] } }, "required": ["kind", "deploymentId", "disabled"], "type": "object" }] } }, "required": ["deployment"], "type": "object" }, "AuthDeploymentsDisableRequest": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "service", "type": "string" }, { "const": "device", "type": "string" }] } }, "required": ["kind", "deploymentId"], "type": "object" }, "AuthDeploymentsDisableResponse": { "properties": { "deployment": { "anyOf": [{ "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "kind": { "const": "service", "type": "string" }, "namespaces": { "items": { "minLength": 1, "type": "string" }, "type": "array" } }, "required": ["kind", "deploymentId", "namespaces", "disabled"], "type": "object" }, { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "kind": { "const": "device", "type": "string" }, "reviewMode": { "anyOf": [{ "const": "none", "type": "string" }, { "const": "required", "type": "string" }] } }, "required": ["kind", "deploymentId", "disabled"], "type": "object" }] } }, "required": ["deployment"], "type": "object" }, "AuthDeploymentsEnableRequest": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "service", "type": "string" }, { "const": "device", "type": "string" }] } }, "required": ["kind", "deploymentId"], "type": "object" }, "AuthDeploymentsEnableResponse": { "properties": { "deployment": { "anyOf": [{ "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "kind": { "const": "service", "type": "string" }, "namespaces": { "items": { "minLength": 1, "type": "string" }, "type": "array" } }, "required": ["kind", "deploymentId", "namespaces", "disabled"], "type": "object" }, { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "kind": { "const": "device", "type": "string" }, "reviewMode": { "anyOf": [{ "const": "none", "type": "string" }, { "const": "required", "type": "string" }] } }, "required": ["kind", "deploymentId", "disabled"], "type": "object" }] } }, "required": ["deployment"], "type": "object" }, "AuthDeploymentsListRequest": { "properties": { "disabled": { "type": "boolean" }, "kind": { "anyOf": [{ "const": "service", "type": "string" }, { "const": "device", "type": "string" }] }, "limit": { "maximum": 500, "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" } }, "required": ["limit"], "type": "object" }, "AuthDeploymentsListResponse": { "properties": { "count": { "minimum": 0, "type": "integer" }, "entries": { "default": [], "items": { "anyOf": [{ "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "kind": { "const": "service", "type": "string" }, "namespaces": { "items": { "minLength": 1, "type": "string" }, "type": "array" } }, "required": ["kind", "deploymentId", "namespaces", "disabled"], "type": "object" }, { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "kind": { "const": "device", "type": "string" }, "reviewMode": { "anyOf": [{ "const": "none", "type": "string" }, { "const": "required", "type": "string" }] } }, "required": ["kind", "deploymentId", "disabled"], "type": "object" }] }, "type": "array" }, "limit": { "minimum": 0, "type": "integer" }, "nextOffset": { "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" } }, "required": ["entries", "count", "offset", "limit"], "type": "object" }, "AuthDeploymentsRemoveRequest": { "properties": { "cascade": { "type": "boolean" }, "deploymentId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "service", "type": "string" }, { "const": "device", "type": "string" }] }, "purgeUnusedContracts": { "type": "boolean" } }, "required": ["kind", "deploymentId"], "type": "object" }, "AuthDeploymentsRemoveResponse": { "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthDeviceUserAuthoritiesApprovedEvent": { "properties": { "approvedAt": { "format": "date-time", "type": "string" }, "approvedBy": { "properties": { "identity": { "properties": { "identityId": { "minLength": 1, "type": "string" }, "provider": { "minLength": 1, "type": "string" }, "subject": { "minLength": 1, "type": "string" } }, "required": ["identityId", "provider", "subject"], "type": "object" }, "participantKind": { "anyOf": [{ "const": "app", "type": "string" }, { "const": "agent", "type": "string" }] }, "userId": { "minLength": 1, "type": "string" } }, "required": ["participantKind", "userId", "identity"], "type": "object" }, "deploymentId": { "minLength": 1, "type": "string" }, "flowId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "requestedAt": { "format": "date-time", "type": "string" }, "requestedBy": { "properties": { "identity": { "properties": { "identityId": { "minLength": 1, "type": "string" }, "provider": { "minLength": 1, "type": "string" }, "subject": { "minLength": 1, "type": "string" } }, "required": ["identityId", "provider", "subject"], "type": "object" }, "participantKind": { "anyOf": [{ "const": "app", "type": "string" }, { "const": "agent", "type": "string" }] }, "userId": { "minLength": 1, "type": "string" } }, "required": ["participantKind", "userId", "identity"], "type": "object" }, "reviewId": { "minLength": 1, "type": "string" } }, "required": ["reviewId", "flowId", "instanceId", "publicIdentityKey", "deploymentId", "requestedAt", "approvedAt", "requestedBy", "approvedBy"], "type": "object" }, "AuthDeviceUserAuthoritiesListRequest": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "limit": { "maximum": 500, "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" }, "state": { "anyOf": [{ "const": "activated", "type": "string" }, { "const": "revoked", "type": "string" }] } }, "required": ["limit"], "type": "object" }, "AuthDeviceUserAuthoritiesListResponse": { "properties": { "count": { "minimum": 0, "type": "integer" }, "entries": { "default": [], "items": { "properties": { "activatedAt": { "format": "date-time", "type": "string" }, "activatedBy": { "properties": { "identity": { "properties": { "identityId": { "minLength": 1, "type": "string" }, "provider": { "minLength": 1, "type": "string" }, "subject": { "minLength": 1, "type": "string" } }, "required": ["identityId", "provider", "subject"], "type": "object" }, "participantKind": { "anyOf": [{ "const": "app", "type": "string" }, { "const": "agent", "type": "string" }] }, "userId": { "minLength": 1, "type": "string" } }, "required": ["participantKind", "userId", "identity"], "type": "object" }, "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "revokedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "state": { "anyOf": [{ "const": "activated", "type": "string" }, { "const": "revoked", "type": "string" }] } }, "required": ["instanceId", "publicIdentityKey", "deploymentId", "state", "activatedAt", "revokedAt"], "type": "object" }, "type": "array" }, "limit": { "minimum": 0, "type": "integer" }, "nextOffset": { "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" } }, "required": ["entries", "count", "offset", "limit"], "type": "object" }, "AuthDeviceUserAuthoritiesRequestedEvent": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "flowId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "requestedAt": { "format": "date-time", "type": "string" }, "requestedBy": { "properties": { "identity": { "properties": { "identityId": { "minLength": 1, "type": "string" }, "provider": { "minLength": 1, "type": "string" }, "subject": { "minLength": 1, "type": "string" } }, "required": ["identityId", "provider", "subject"], "type": "object" }, "participantKind": { "anyOf": [{ "const": "app", "type": "string" }, { "const": "agent", "type": "string" }] }, "userId": { "minLength": 1, "type": "string" } }, "required": ["participantKind", "userId", "identity"], "type": "object" } }, "required": ["flowId", "instanceId", "publicIdentityKey", "deploymentId", "requestedAt", "requestedBy"], "type": "object" }, "AuthDeviceUserAuthoritiesResolvedEvent": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "flowId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "resolvedAt": { "format": "date-time", "type": "string" }, "resolvedBy": { "properties": { "identity": { "properties": { "identityId": { "minLength": 1, "type": "string" }, "provider": { "minLength": 1, "type": "string" }, "subject": { "minLength": 1, "type": "string" } }, "required": ["identityId", "provider", "subject"], "type": "object" }, "participantKind": { "anyOf": [{ "const": "app", "type": "string" }, { "const": "agent", "type": "string" }] }, "userId": { "minLength": 1, "type": "string" } }, "required": ["participantKind", "userId", "identity"], "type": "object" }, "reviewId": { "minLength": 1, "type": "string" } }, "required": ["instanceId", "publicIdentityKey", "deploymentId", "resolvedAt", "resolvedBy"], "type": "object" }, "AuthDeviceUserAuthoritiesReviewRequestedEvent": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "flowId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "requestedAt": { "format": "date-time", "type": "string" }, "requestedBy": { "properties": { "identity": { "properties": { "identityId": { "minLength": 1, "type": "string" }, "provider": { "minLength": 1, "type": "string" }, "subject": { "minLength": 1, "type": "string" } }, "required": ["identityId", "provider", "subject"], "type": "object" }, "participantKind": { "anyOf": [{ "const": "app", "type": "string" }, { "const": "agent", "type": "string" }] }, "userId": { "minLength": 1, "type": "string" } }, "required": ["participantKind", "userId", "identity"], "type": "object" }, "reviewId": { "minLength": 1, "type": "string" } }, "required": ["reviewId", "flowId", "instanceId", "publicIdentityKey", "deploymentId", "requestedAt", "requestedBy"], "type": "object" }, "AuthDeviceUserAuthoritiesReviewsDecideRequest": { "properties": { "decision": { "anyOf": [{ "const": "approve", "type": "string" }, { "const": "reject", "type": "string" }] }, "reason": { "minLength": 1, "type": "string" }, "reviewId": { "minLength": 1, "type": "string" } }, "required": ["reviewId", "decision"], "type": "object" }, "AuthDeviceUserAuthoritiesReviewsDecideResponse": { "properties": { "activation": { "properties": { "activatedAt": { "format": "date-time", "type": "string" }, "activatedBy": { "properties": { "identity": { "properties": { "identityId": { "minLength": 1, "type": "string" }, "provider": { "minLength": 1, "type": "string" }, "subject": { "minLength": 1, "type": "string" } }, "required": ["identityId", "provider", "subject"], "type": "object" }, "participantKind": { "anyOf": [{ "const": "app", "type": "string" }, { "const": "agent", "type": "string" }] }, "userId": { "minLength": 1, "type": "string" } }, "required": ["participantKind", "userId", "identity"], "type": "object" }, "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "revokedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "state": { "anyOf": [{ "const": "activated", "type": "string" }, { "const": "revoked", "type": "string" }] } }, "required": ["instanceId", "publicIdentityKey", "deploymentId", "state", "activatedAt", "revokedAt"], "type": "object" }, "confirmationCode": { "minLength": 1, "type": "string" }, "review": { "properties": { "decidedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "reason": { "minLength": 1, "type": "string" }, "requestedAt": { "format": "date-time", "type": "string" }, "reviewId": { "minLength": 1, "type": "string" }, "state": { "anyOf": [{ "const": "pending", "type": "string" }, { "const": "approved", "type": "string" }, { "const": "rejected", "type": "string" }] } }, "required": ["reviewId", "instanceId", "publicIdentityKey", "deploymentId", "state", "requestedAt", "decidedAt"], "type": "object" } }, "required": ["review"], "type": "object" }, "AuthDeviceUserAuthoritiesReviewsListRequest": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "limit": { "maximum": 500, "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" }, "state": { "anyOf": [{ "const": "pending", "type": "string" }, { "const": "approved", "type": "string" }, { "const": "rejected", "type": "string" }] } }, "required": ["limit"], "type": "object" }, "AuthDeviceUserAuthoritiesReviewsListResponse": { "properties": { "count": { "minimum": 0, "type": "integer" }, "entries": { "default": [], "items": { "properties": { "decidedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "reason": { "minLength": 1, "type": "string" }, "requestedAt": { "format": "date-time", "type": "string" }, "reviewId": { "minLength": 1, "type": "string" }, "state": { "anyOf": [{ "const": "pending", "type": "string" }, { "const": "approved", "type": "string" }, { "const": "rejected", "type": "string" }] } }, "required": ["reviewId", "instanceId", "publicIdentityKey", "deploymentId", "state", "requestedAt", "decidedAt"], "type": "object" }, "type": "array" }, "limit": { "minimum": 0, "type": "integer" }, "nextOffset": { "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" } }, "required": ["entries", "count", "offset", "limit"], "type": "object" }, "AuthDeviceUserAuthoritiesRevokeRequest": { "properties": { "instanceId": { "minLength": 1, "type": "string" } }, "required": ["instanceId"], "type": "object" }, "AuthDeviceUserAuthoritiesRevokeResponse": { "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthDevicesConnectInfoGetRequest": { "properties": { "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "iat": { "type": "number" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "sig": { "minLength": 1, "type": "string" } }, "required": ["publicIdentityKey", "contractDigest", "iat", "sig"], "type": "object" }, "AuthDevicesConnectInfoGetResponse": { "properties": { "connectInfo": { "properties": { "auth": { "properties": { "authority": { "anyOf": [{ "const": "admin_reviewed", "type": "string" }, { "const": "user_delegated", "type": "string" }] }, "iatSkewSeconds": { "type": "number" }, "mode": { "const": "device_identity", "type": "string" } }, "required": ["mode", "authority", "iatSkewSeconds"], "type": "object" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "transport": { "properties": { "sentinel": { "properties": { "jwt": { "type": "string" }, "seed": { "type": "string" } }, "required": ["jwt", "seed"], "type": "object" } }, "required": ["sentinel"], "type": "object" }, "transports": { "properties": { "native": { "properties": { "natsServers": { "items": { "minLength": 1, "type": "string" }, "minItems": 1, "type": "array" } }, "required": ["natsServers"], "type": "object" }, "websocket": { "properties": { "natsServers": { "items": { "minLength": 1, "type": "string" }, "minItems": 1, "type": "array" } }, "required": ["natsServers"], "type": "object" } }, "type": "object" } }, "required": ["instanceId", "deploymentId", "contractId", "contractDigest", "transports", "transport", "auth"], "type": "object" }, "status": { "const": "ready", "type": "string" } }, "required": ["status", "connectInfo"], "type": "object" }, "AuthDevicesDisableRequest": { "properties": { "instanceId": { "minLength": 1, "type": "string" } }, "required": ["instanceId"], "type": "object" }, "AuthDevicesDisableResponse": { "properties": { "instance": { "properties": { "activatedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "createdAt": { "format": "date-time", "type": "string" }, "currentContractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "currentContractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "metadata": { "patternProperties": { "^.*$": { "minLength": 1, "type": "string" } }, "type": "object" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "revokedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "state": { "anyOf": [{ "const": "registered", "type": "string" }, { "const": "activated", "type": "string" }, { "const": "revoked", "type": "string" }, { "const": "disabled", "type": "string" }] } }, "required": ["instanceId", "publicIdentityKey", "deploymentId", "state", "createdAt", "activatedAt", "revokedAt"], "type": "object" } }, "required": ["instance"], "type": "object" }, "AuthDevicesEnableRequest": { "properties": { "instanceId": { "minLength": 1, "type": "string" } }, "required": ["instanceId"], "type": "object" }, "AuthDevicesEnableResponse": { "properties": { "instance": { "properties": { "activatedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "createdAt": { "format": "date-time", "type": "string" }, "currentContractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "currentContractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "metadata": { "patternProperties": { "^.*$": { "minLength": 1, "type": "string" } }, "type": "object" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "revokedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "state": { "anyOf": [{ "const": "registered", "type": "string" }, { "const": "activated", "type": "string" }, { "const": "revoked", "type": "string" }, { "const": "disabled", "type": "string" }] } }, "required": ["instanceId", "publicIdentityKey", "deploymentId", "state", "createdAt", "activatedAt", "revokedAt"], "type": "object" } }, "required": ["instance"], "type": "object" }, "AuthDevicesListRequest": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "limit": { "maximum": 500, "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" }, "state": { "anyOf": [{ "const": "registered", "type": "string" }, { "const": "activated", "type": "string" }, { "const": "revoked", "type": "string" }, { "const": "disabled", "type": "string" }] } }, "required": ["limit"], "type": "object" }, "AuthDevicesListResponse": { "properties": { "count": { "minimum": 0, "type": "integer" }, "entries": { "default": [], "items": { "properties": { "activatedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "createdAt": { "format": "date-time", "type": "string" }, "currentContractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "currentContractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "metadata": { "patternProperties": { "^.*$": { "minLength": 1, "type": "string" } }, "type": "object" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "revokedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "state": { "anyOf": [{ "const": "registered", "type": "string" }, { "const": "activated", "type": "string" }, { "const": "revoked", "type": "string" }, { "const": "disabled", "type": "string" }] } }, "required": ["instanceId", "publicIdentityKey", "deploymentId", "state", "createdAt", "activatedAt", "revokedAt"], "type": "object" }, "type": "array" }, "limit": { "minimum": 0, "type": "integer" }, "nextOffset": { "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" } }, "required": ["entries", "count", "offset", "limit"], "type": "object" }, "AuthDevicesProvisionRequest": { "properties": { "activationKey": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "metadata": { "patternProperties": { "^.*$": { "minLength": 1, "type": "string" } }, "type": "object" }, "publicIdentityKey": { "minLength": 1, "type": "string" } }, "required": ["deploymentId", "publicIdentityKey", "activationKey"], "type": "object" }, "AuthDevicesProvisionResponse": { "properties": { "instance": { "properties": { "activatedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "createdAt": { "format": "date-time", "type": "string" }, "currentContractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "currentContractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "metadata": { "patternProperties": { "^.*$": { "minLength": 1, "type": "string" } }, "type": "object" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "revokedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "state": { "anyOf": [{ "const": "registered", "type": "string" }, { "const": "activated", "type": "string" }, { "const": "revoked", "type": "string" }, { "const": "disabled", "type": "string" }] } }, "required": ["instanceId", "publicIdentityKey", "deploymentId", "state", "createdAt", "activatedAt", "revokedAt"], "type": "object" } }, "required": ["instance"], "type": "object" }, "AuthDevicesRemoveRequest": { "properties": { "instanceId": { "minLength": 1, "type": "string" } }, "required": ["instanceId"], "type": "object" }, "AuthDevicesRemoveResponse": { "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthEnvelopeExpansionsListRequest": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "limit": { "maximum": 500, "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" }, "state": { "anyOf": [{ "const": "pending", "type": "string" }, { "const": "approved", "type": "string" }, { "const": "rejected", "type": "string" }] } }, "required": ["limit"], "type": "object" }, "AuthEnvelopeExpansionsListResponse": { "properties": { "count": { "minimum": 0, "type": "integer" }, "entries": { "default": [], "items": { "properties": { "contract": { "type": "object" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "createdAt": { "format": "date-time", "type": "string" }, "decidedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "decidedBy": { "anyOf": [{ "patternProperties": { "^.*$": {} }, "type": "object" }, { "type": "null" }] }, "decisionReason": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "delta": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contracts": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "required"], "type": "object" }, "type": "array" }, "resources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "required": { "type": "boolean" } }, "required": ["kind", "alias", "required"], "type": "object" }, "type": "array" }, "surfaces": { "items": { "properties": { "action": { "anyOf": [{ "const": "call", "type": "string" }, { "const": "publish", "type": "string" }, { "const": "subscribe", "type": "string" }, { "const": "read", "type": "string" }, { "const": "cancel", "type": "string" }] }, "contractId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "rpc", "type": "string" }, { "const": "operation", "type": "string" }, { "const": "event", "type": "string" }, { "const": "feed", "type": "string" }] }, "name": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "kind", "name", "action", "required"], "type": "object" }, "type": "array" } }, "required": ["contracts", "surfaces", "capabilities", "resources"], "type": "object" }, "deploymentId": { "minLength": 1, "type": "string" }, "requestId": { "minLength": 1, "type": "string" }, "requestedBy": { "patternProperties": { "^.*$": {} }, "type": "object" }, "requestedByKind": { "anyOf": [{ "const": "service", "type": "string" }, { "const": "device", "type": "string" }, { "const": "user", "type": "string" }, { "const": "admin", "type": "string" }, { "const": "automation", "type": "string" }] }, "state": { "anyOf": [{ "const": "pending", "type": "string" }, { "const": "approved", "type": "string" }, { "const": "rejected", "type": "string" }] } }, "required": ["requestId", "deploymentId", "requestedByKind", "requestedBy", "contractId", "contractDigest", "contract", "state", "createdAt", "decidedAt", "decidedBy", "decisionReason", "delta"], "type": "object" }, "type": "array" }, "limit": { "minimum": 0, "type": "integer" }, "nextOffset": { "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" } }, "required": ["entries", "count", "offset", "limit"], "type": "object" }, "AuthEnvelopeExpansionsRejectRequest": { "properties": { "reason": { "minLength": 1, "type": "string" }, "requestId": { "minLength": 1, "type": "string" } }, "required": ["requestId"], "type": "object" }, "AuthEnvelopeExpansionsRejectResponse": { "properties": { "request": { "properties": { "contract": { "type": "object" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "createdAt": { "format": "date-time", "type": "string" }, "decidedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "decidedBy": { "anyOf": [{ "patternProperties": { "^.*$": {} }, "type": "object" }, { "type": "null" }] }, "decisionReason": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "delta": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contracts": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "required"], "type": "object" }, "type": "array" }, "resources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "required": { "type": "boolean" } }, "required": ["kind", "alias", "required"], "type": "object" }, "type": "array" }, "surfaces": { "items": { "properties": { "action": { "anyOf": [{ "const": "call", "type": "string" }, { "const": "publish", "type": "string" }, { "const": "subscribe", "type": "string" }, { "const": "read", "type": "string" }, { "const": "cancel", "type": "string" }] }, "contractId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "rpc", "type": "string" }, { "const": "operation", "type": "string" }, { "const": "event", "type": "string" }, { "const": "feed", "type": "string" }] }, "name": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "kind", "name", "action", "required"], "type": "object" }, "type": "array" } }, "required": ["contracts", "surfaces", "capabilities", "resources"], "type": "object" }, "deploymentId": { "minLength": 1, "type": "string" }, "requestId": { "minLength": 1, "type": "string" }, "requestedBy": { "patternProperties": { "^.*$": {} }, "type": "object" }, "requestedByKind": { "anyOf": [{ "const": "service", "type": "string" }, { "const": "device", "type": "string" }, { "const": "user", "type": "string" }, { "const": "admin", "type": "string" }, { "const": "automation", "type": "string" }] }, "state": { "anyOf": [{ "const": "pending", "type": "string" }, { "const": "approved", "type": "string" }, { "const": "rejected", "type": "string" }] } }, "required": ["requestId", "deploymentId", "requestedByKind", "requestedBy", "contractId", "contractDigest", "contract", "state", "createdAt", "decidedAt", "decidedBy", "decisionReason", "delta"], "type": "object" } }, "required": ["request"], "type": "object" }, "AuthEnvelopesApproveRequestRequest": { "properties": { "reason": { "minLength": 1, "type": "string" }, "requestId": { "minLength": 1, "type": "string" } }, "required": ["requestId"], "type": "object" }, "AuthEnvelopesApproveRequestResponse": { "properties": { "contractEvidence": { "properties": { "contract": { "type": "object" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "firstSeenAt": { "format": "date-time", "type": "string" }, "ignoreReason": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "ignoredAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "ignoredBy": { "anyOf": [{ "patternProperties": { "^.*$": {} }, "type": "object" }, { "type": "null" }] }, "lastSeenAt": { "format": "date-time", "type": "string" } }, "required": ["deploymentId", "contractId", "contractDigest", "contract", "firstSeenAt", "lastSeenAt"], "type": "object" }, "delta": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contracts": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "required"], "type": "object" }, "type": "array" }, "resources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "required": { "type": "boolean" } }, "required": ["kind", "alias", "required"], "type": "object" }, "type": "array" }, "surfaces": { "items": { "properties": { "action": { "anyOf": [{ "const": "call", "type": "string" }, { "const": "publish", "type": "string" }, { "const": "subscribe", "type": "string" }, { "const": "read", "type": "string" }, { "const": "cancel", "type": "string" }] }, "contractId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "rpc", "type": "string" }, { "const": "operation", "type": "string" }, { "const": "event", "type": "string" }, { "const": "feed", "type": "string" }] }, "name": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "kind", "name", "action", "required"], "type": "object" }, "type": "array" } }, "required": ["contracts", "surfaces", "capabilities", "resources"], "type": "object" }, "envelope": { "properties": { "boundary": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contracts": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "required"], "type": "object" }, "type": "array" }, "resources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "required": { "type": "boolean" } }, "required": ["kind", "alias", "required"], "type": "object" }, "type": "array" }, "surfaces": { "items": { "properties": { "action": { "anyOf": [{ "const": "call", "type": "string" }, { "const": "publish", "type": "string" }, { "const": "subscribe", "type": "string" }, { "const": "read", "type": "string" }, { "const": "cancel", "type": "string" }] }, "contractId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "rpc", "type": "string" }, { "const": "operation", "type": "string" }, { "const": "event", "type": "string" }, { "const": "feed", "type": "string" }] }, "name": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "kind", "name", "action", "required"], "type": "object" }, "type": "array" } }, "required": ["contracts", "surfaces", "capabilities", "resources"], "type": "object" }, "createdAt": { "format": "date-time", "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "kind": { "anyOf": [{ "const": "service", "type": "string" }, { "const": "device", "type": "string" }, { "const": "app", "type": "string" }, { "const": "cli", "type": "string" }, { "const": "native", "type": "string" }, { "const": "device-user", "type": "string" }] }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["deploymentId", "kind", "disabled", "createdAt", "updatedAt", "boundary"], "type": "object" }, "request": { "properties": { "contract": { "type": "object" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "createdAt": { "format": "date-time", "type": "string" }, "decidedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "decidedBy": { "anyOf": [{ "patternProperties": { "^.*$": {} }, "type": "object" }, { "type": "null" }] }, "decisionReason": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "delta": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contracts": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "required"], "type": "object" }, "type": "array" }, "resources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "required": { "type": "boolean" } }, "required": ["kind", "alias", "required"], "type": "object" }, "type": "array" }, "surfaces": { "items": { "properties": { "action": { "anyOf": [{ "const": "call", "type": "string" }, { "const": "publish", "type": "string" }, { "const": "subscribe", "type": "string" }, { "const": "read", "type": "string" }, { "const": "cancel", "type": "string" }] }, "contractId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "rpc", "type": "string" }, { "const": "operation", "type": "string" }, { "const": "event", "type": "string" }, { "const": "feed", "type": "string" }] }, "name": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "kind", "name", "action", "required"], "type": "object" }, "type": "array" } }, "required": ["contracts", "surfaces", "capabilities", "resources"], "type": "object" }, "deploymentId": { "minLength": 1, "type": "string" }, "requestId": { "minLength": 1, "type": "string" }, "requestedBy": { "patternProperties": { "^.*$": {} }, "type": "object" }, "requestedByKind": { "anyOf": [{ "const": "service", "type": "string" }, { "const": "device", "type": "string" }, { "const": "user", "type": "string" }, { "const": "admin", "type": "string" }, { "const": "automation", "type": "string" }] }, "state": { "anyOf": [{ "const": "pending", "type": "string" }, { "const": "approved", "type": "string" }, { "const": "rejected", "type": "string" }] } }, "required": ["requestId", "deploymentId", "requestedByKind", "requestedBy", "contractId", "contractDigest", "contract", "state", "createdAt", "decidedAt", "decidedBy", "decisionReason", "delta"], "type": "object" }, "resourceBindings": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "binding": { "patternProperties": { "^.*$": {} }, "type": "object" }, "createdAt": { "format": "date-time", "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "limits": { "anyOf": [{ "patternProperties": { "^.*$": {} }, "type": "object" }, { "type": "null" }] }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["deploymentId", "kind", "alias", "binding", "limits", "createdAt", "updatedAt"], "type": "object" }, "type": "array" } }, "required": ["request", "envelope", "delta", "contractEvidence", "resourceBindings"], "type": "object" }, "AuthEnvelopesChangesPreviewRequest": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "proposedBoundary": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contracts": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "required"], "type": "object" }, "type": "array" }, "resources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "required": { "type": "boolean" } }, "required": ["kind", "alias", "required"], "type": "object" }, "type": "array" }, "surfaces": { "items": { "properties": { "action": { "anyOf": [{ "const": "call", "type": "string" }, { "const": "publish", "type": "string" }, { "const": "subscribe", "type": "string" }, { "const": "read", "type": "string" }, { "const": "cancel", "type": "string" }] }, "contractId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "rpc", "type": "string" }, { "const": "operation", "type": "string" }, { "const": "event", "type": "string" }, { "const": "feed", "type": "string" }] }, "name": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "kind", "name", "action", "required"], "type": "object" }, "type": "array" } }, "required": ["contracts", "surfaces", "capabilities", "resources"], "type": "object" } }, "required": ["deploymentId", "proposedBoundary"], "type": "object" }, "AuthEnvelopesChangesPreviewResponse": { "properties": { "current": { "properties": { "boundary": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contracts": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "required"], "type": "object" }, "type": "array" }, "resources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "required": { "type": "boolean" } }, "required": ["kind", "alias", "required"], "type": "object" }, "type": "array" }, "surfaces": { "items": { "properties": { "action": { "anyOf": [{ "const": "call", "type": "string" }, { "const": "publish", "type": "string" }, { "const": "subscribe", "type": "string" }, { "const": "read", "type": "string" }, { "const": "cancel", "type": "string" }] }, "contractId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "rpc", "type": "string" }, { "const": "operation", "type": "string" }, { "const": "event", "type": "string" }, { "const": "feed", "type": "string" }] }, "name": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "kind", "name", "action", "required"], "type": "object" }, "type": "array" } }, "required": ["contracts", "surfaces", "capabilities", "resources"], "type": "object" }, "createdAt": { "format": "date-time", "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "kind": { "anyOf": [{ "const": "service", "type": "string" }, { "const": "device", "type": "string" }, { "const": "app", "type": "string" }, { "const": "cli", "type": "string" }, { "const": "native", "type": "string" }, { "const": "device-user", "type": "string" }] }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["deploymentId", "kind", "disabled", "createdAt", "updatedAt", "boundary"], "type": "object" }, "impact": { "properties": { "impactedDeviceSessions": { "items": { "properties": { "contractDigest": { "anyOf": [{ "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, { "type": "null" }] }, "contractId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "missing": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contracts": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "required"], "type": "object" }, "type": "array" }, "resources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "required": { "type": "boolean" } }, "required": ["kind", "alias", "required"], "type": "object" }, "type": "array" }, "surfaces": { "items": { "properties": { "action": { "anyOf": [{ "const": "call", "type": "string" }, { "const": "publish", "type": "string" }, { "const": "subscribe", "type": "string" }, { "const": "read", "type": "string" }, { "const": "cancel", "type": "string" }] }, "contractId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "rpc", "type": "string" }, { "const": "operation", "type": "string" }, { "const": "event", "type": "string" }, { "const": "feed", "type": "string" }] }, "name": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "kind", "name", "action", "required"], "type": "object" }, "type": "array" } }, "required": ["contracts", "surfaces", "capabilities", "resources"], "type": "object" }, "sessionKey": { "minLength": 1, "type": "string" }, "type": { "anyOf": [{ "anyOf": [{ "const": "app", "type": "string" }, { "const": "agent", "type": "string" }] }, { "const": "device", "type": "string" }, { "const": "service", "type": "string" }] } }, "required": ["sessionKey", "type", "contractId", "contractDigest", "missing"], "type": "object" }, "type": "array" }, "impactedIdentityEnvelopes": { "items": { "properties": { "identityAnchor": { "anyOf": [{ "properties": { "contractId": { "minLength": 1, "type": "string" }, "kind": { "const": "web", "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["kind", "contractId", "origin"], "type": "object" }, { "properties": { "contractId": { "minLength": 1, "type": "string" }, "kind": { "const": "cli", "type": "string" }, "sessionPublicKey": { "minLength": 1, "type": "string" } }, "required": ["kind", "contractId", "sessionPublicKey"], "type": "object" }, { "properties": { "contractId": { "minLength": 1, "type": "string" }, "kind": { "const": "native", "type": "string" }, "sessionPublicKey": { "minLength": 1, "type": "string" } }, "required": ["kind", "contractId", "sessionPublicKey"], "type": "object" }, { "properties": { "contractId": { "minLength": 1, "type": "string" }, "devicePublicKey": { "minLength": 1, "type": "string" }, "kind": { "const": "device-user", "type": "string" } }, "required": ["kind", "contractId", "devicePublicKey"], "type": "object" }] }, "identityEnvelopeId": { "minLength": 1, "type": "string" }, "missing": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contracts": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "required"], "type": "object" }, "type": "array" }, "resources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "required": { "type": "boolean" } }, "required": ["kind", "alias", "required"], "type": "object" }, "type": "array" }, "surfaces": { "items": { "properties": { "action": { "anyOf": [{ "const": "call", "type": "string" }, { "const": "publish", "type": "string" }, { "const": "subscribe", "type": "string" }, { "const": "read", "type": "string" }, { "const": "cancel", "type": "string" }] }, "contractId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "rpc", "type": "string" }, { "const": "operation", "type": "string" }, { "const": "event", "type": "string" }, { "const": "feed", "type": "string" }] }, "name": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "kind", "name", "action", "required"], "type": "object" }, "type": "array" } }, "required": ["contracts", "surfaces", "capabilities", "resources"], "type": "object" } }, "required": ["identityEnvelopeId", "identityAnchor", "missing"], "type": "object" }, "type": "array" }, "impactedPendingRequests": { "items": { "properties": { "missing": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contracts": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "required"], "type": "object" }, "type": "array" }, "resources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "required": { "type": "boolean" } }, "required": ["kind", "alias", "required"], "type": "object" }, "type": "array" }, "surfaces": { "items": { "properties": { "action": { "anyOf": [{ "const": "call", "type": "string" }, { "const": "publish", "type": "string" }, { "const": "subscribe", "type": "string" }, { "const": "read", "type": "string" }, { "const": "cancel", "type": "string" }] }, "contractId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "rpc", "type": "string" }, { "const": "operation", "type": "string" }, { "const": "event", "type": "string" }, { "const": "feed", "type": "string" }] }, "name": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "kind", "name", "action", "required"], "type": "object" }, "type": "array" } }, "required": ["contracts", "surfaces", "capabilities", "resources"], "type": "object" }, "requestId": { "minLength": 1, "type": "string" } }, "required": ["requestId", "missing"], "type": "object" }, "type": "array" }, "impactedServiceInstances": { "items": { "properties": { "missing": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contracts": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "required"], "type": "object" }, "type": "array" }, "resources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "required": { "type": "boolean" } }, "required": ["kind", "alias", "required"], "type": "object" }, "type": "array" }, "surfaces": { "items": { "properties": { "action": { "anyOf": [{ "const": "call", "type": "string" }, { "const": "publish", "type": "string" }, { "const": "subscribe", "type": "string" }, { "const": "read", "type": "string" }, { "const": "cancel", "type": "string" }] }, "contractId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "rpc", "type": "string" }, { "const": "operation", "type": "string" }, { "const": "event", "type": "string" }, { "const": "feed", "type": "string" }] }, "name": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "kind", "name", "action", "required"], "type": "object" }, "type": "array" } }, "required": ["contracts", "surfaces", "capabilities", "resources"], "type": "object" } }, "required": ["missing"], "type": "object" }, "type": "array" }, "impactedSessions": { "items": { "properties": { "contractDigest": { "anyOf": [{ "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, { "type": "null" }] }, "contractId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "missing": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contracts": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "required"], "type": "object" }, "type": "array" }, "resources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "required": { "type": "boolean" } }, "required": ["kind", "alias", "required"], "type": "object" }, "type": "array" }, "surfaces": { "items": { "properties": { "action": { "anyOf": [{ "const": "call", "type": "string" }, { "const": "publish", "type": "string" }, { "const": "subscribe", "type": "string" }, { "const": "read", "type": "string" }, { "const": "cancel", "type": "string" }] }, "contractId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "rpc", "type": "string" }, { "const": "operation", "type": "string" }, { "const": "event", "type": "string" }, { "const": "feed", "type": "string" }] }, "name": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "kind", "name", "action", "required"], "type": "object" }, "type": "array" } }, "required": ["contracts", "surfaces", "capabilities", "resources"], "type": "object" }, "sessionKey": { "minLength": 1, "type": "string" }, "type": { "anyOf": [{ "anyOf": [{ "const": "app", "type": "string" }, { "const": "agent", "type": "string" }] }, { "const": "device", "type": "string" }, { "const": "service", "type": "string" }] } }, "required": ["sessionKey", "type", "contractId", "contractDigest", "missing"], "type": "object" }, "type": "array" }, "orphanedResources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] } }, "required": ["kind", "alias"], "type": "object" }, "type": "array" }, "removed": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contracts": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "required"], "type": "object" }, "type": "array" }, "resources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "required": { "type": "boolean" } }, "required": ["kind", "alias", "required"], "type": "object" }, "type": "array" }, "surfaces": { "items": { "properties": { "action": { "anyOf": [{ "const": "call", "type": "string" }, { "const": "publish", "type": "string" }, { "const": "subscribe", "type": "string" }, { "const": "read", "type": "string" }, { "const": "cancel", "type": "string" }] }, "contractId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "rpc", "type": "string" }, { "const": "operation", "type": "string" }, { "const": "event", "type": "string" }, { "const": "feed", "type": "string" }] }, "name": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "kind", "name", "action", "required"], "type": "object" }, "type": "array" } }, "required": ["contracts", "surfaces", "capabilities", "resources"], "type": "object" } }, "required": ["removed", "impactedSessions", "impactedServiceInstances", "impactedDeviceSessions", "impactedIdentityEnvelopes", "impactedPendingRequests", "orphanedResources"], "type": "object" }, "proposed": { "properties": { "boundary": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contracts": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "required"], "type": "object" }, "type": "array" }, "resources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "required": { "type": "boolean" } }, "required": ["kind", "alias", "required"], "type": "object" }, "type": "array" }, "surfaces": { "items": { "properties": { "action": { "anyOf": [{ "const": "call", "type": "string" }, { "const": "publish", "type": "string" }, { "const": "subscribe", "type": "string" }, { "const": "read", "type": "string" }, { "const": "cancel", "type": "string" }] }, "contractId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "rpc", "type": "string" }, { "const": "operation", "type": "string" }, { "const": "event", "type": "string" }, { "const": "feed", "type": "string" }] }, "name": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "kind", "name", "action", "required"], "type": "object" }, "type": "array" } }, "required": ["contracts", "surfaces", "capabilities", "resources"], "type": "object" }, "createdAt": { "format": "date-time", "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "kind": { "anyOf": [{ "const": "service", "type": "string" }, { "const": "device", "type": "string" }, { "const": "app", "type": "string" }, { "const": "cli", "type": "string" }, { "const": "native", "type": "string" }, { "const": "device-user", "type": "string" }] }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["deploymentId", "kind", "disabled", "createdAt", "updatedAt", "boundary"], "type": "object" } }, "required": ["current", "proposed", "impact"], "type": "object" }, "AuthEnvelopesExpandRequest": { "properties": { "contract": { "type": "object" }, "deploymentId": { "minLength": 1, "type": "string" }, "expectedDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" } }, "required": ["deploymentId", "contract", "expectedDigest"], "type": "object" }, "AuthEnvelopesExpandResponse": { "properties": { "contractEvidence": { "properties": { "contract": { "type": "object" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "firstSeenAt": { "format": "date-time", "type": "string" }, "ignoreReason": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "ignoredAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "ignoredBy": { "anyOf": [{ "patternProperties": { "^.*$": {} }, "type": "object" }, { "type": "null" }] }, "lastSeenAt": { "format": "date-time", "type": "string" } }, "required": ["deploymentId", "contractId", "contractDigest", "contract", "firstSeenAt", "lastSeenAt"], "type": "object" }, "delta": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contracts": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "required"], "type": "object" }, "type": "array" }, "resources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "required": { "type": "boolean" } }, "required": ["kind", "alias", "required"], "type": "object" }, "type": "array" }, "surfaces": { "items": { "properties": { "action": { "anyOf": [{ "const": "call", "type": "string" }, { "const": "publish", "type": "string" }, { "const": "subscribe", "type": "string" }, { "const": "read", "type": "string" }, { "const": "cancel", "type": "string" }] }, "contractId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "rpc", "type": "string" }, { "const": "operation", "type": "string" }, { "const": "event", "type": "string" }, { "const": "feed", "type": "string" }] }, "name": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "kind", "name", "action", "required"], "type": "object" }, "type": "array" } }, "required": ["contracts", "surfaces", "capabilities", "resources"], "type": "object" }, "envelope": { "properties": { "boundary": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contracts": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "required"], "type": "object" }, "type": "array" }, "resources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "required": { "type": "boolean" } }, "required": ["kind", "alias", "required"], "type": "object" }, "type": "array" }, "surfaces": { "items": { "properties": { "action": { "anyOf": [{ "const": "call", "type": "string" }, { "const": "publish", "type": "string" }, { "const": "subscribe", "type": "string" }, { "const": "read", "type": "string" }, { "const": "cancel", "type": "string" }] }, "contractId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "rpc", "type": "string" }, { "const": "operation", "type": "string" }, { "const": "event", "type": "string" }, { "const": "feed", "type": "string" }] }, "name": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "kind", "name", "action", "required"], "type": "object" }, "type": "array" } }, "required": ["contracts", "surfaces", "capabilities", "resources"], "type": "object" }, "createdAt": { "format": "date-time", "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "kind": { "anyOf": [{ "const": "service", "type": "string" }, { "const": "device", "type": "string" }, { "const": "app", "type": "string" }, { "const": "cli", "type": "string" }, { "const": "native", "type": "string" }, { "const": "device-user", "type": "string" }] }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["deploymentId", "kind", "disabled", "createdAt", "updatedAt", "boundary"], "type": "object" }, "resourceBindings": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "binding": { "patternProperties": { "^.*$": {} }, "type": "object" }, "createdAt": { "format": "date-time", "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "limits": { "anyOf": [{ "patternProperties": { "^.*$": {} }, "type": "object" }, { "type": "null" }] }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["deploymentId", "kind", "alias", "binding", "limits", "createdAt", "updatedAt"], "type": "object" }, "type": "array" } }, "required": ["envelope", "delta", "contractEvidence", "resourceBindings"], "type": "object" }, "AuthEnvelopesGetRequest": { "properties": { "deploymentId": { "minLength": 1, "type": "string" } }, "required": ["deploymentId"], "type": "object" }, "AuthEnvelopesGetResponse": { "properties": { "contractEvidence": { "items": { "properties": { "contract": { "type": "object" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "firstSeenAt": { "format": "date-time", "type": "string" }, "ignoreReason": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "ignoredAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "ignoredBy": { "anyOf": [{ "patternProperties": { "^.*$": {} }, "type": "object" }, { "type": "null" }] }, "lastSeenAt": { "format": "date-time", "type": "string" } }, "required": ["deploymentId", "contractId", "contractDigest", "contract", "firstSeenAt", "lastSeenAt"], "type": "object" }, "type": "array" }, "envelope": { "properties": { "boundary": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contracts": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "required"], "type": "object" }, "type": "array" }, "resources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "required": { "type": "boolean" } }, "required": ["kind", "alias", "required"], "type": "object" }, "type": "array" }, "surfaces": { "items": { "properties": { "action": { "anyOf": [{ "const": "call", "type": "string" }, { "const": "publish", "type": "string" }, { "const": "subscribe", "type": "string" }, { "const": "read", "type": "string" }, { "const": "cancel", "type": "string" }] }, "contractId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "rpc", "type": "string" }, { "const": "operation", "type": "string" }, { "const": "event", "type": "string" }, { "const": "feed", "type": "string" }] }, "name": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "kind", "name", "action", "required"], "type": "object" }, "type": "array" } }, "required": ["contracts", "surfaces", "capabilities", "resources"], "type": "object" }, "createdAt": { "format": "date-time", "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "kind": { "anyOf": [{ "const": "service", "type": "string" }, { "const": "device", "type": "string" }, { "const": "app", "type": "string" }, { "const": "cli", "type": "string" }, { "const": "native", "type": "string" }, { "const": "device-user", "type": "string" }] }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["deploymentId", "kind", "disabled", "createdAt", "updatedAt", "boundary"], "type": "object" }, "expansionRequests": { "items": { "properties": { "contract": { "type": "object" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "createdAt": { "format": "date-time", "type": "string" }, "decidedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "decidedBy": { "anyOf": [{ "patternProperties": { "^.*$": {} }, "type": "object" }, { "type": "null" }] }, "decisionReason": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "delta": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contracts": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "required"], "type": "object" }, "type": "array" }, "resources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "required": { "type": "boolean" } }, "required": ["kind", "alias", "required"], "type": "object" }, "type": "array" }, "surfaces": { "items": { "properties": { "action": { "anyOf": [{ "const": "call", "type": "string" }, { "const": "publish", "type": "string" }, { "const": "subscribe", "type": "string" }, { "const": "read", "type": "string" }, { "const": "cancel", "type": "string" }] }, "contractId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "rpc", "type": "string" }, { "const": "operation", "type": "string" }, { "const": "event", "type": "string" }, { "const": "feed", "type": "string" }] }, "name": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "kind", "name", "action", "required"], "type": "object" }, "type": "array" } }, "required": ["contracts", "surfaces", "capabilities", "resources"], "type": "object" }, "deploymentId": { "minLength": 1, "type": "string" }, "requestId": { "minLength": 1, "type": "string" }, "requestedBy": { "patternProperties": { "^.*$": {} }, "type": "object" }, "requestedByKind": { "anyOf": [{ "const": "service", "type": "string" }, { "const": "device", "type": "string" }, { "const": "user", "type": "string" }, { "const": "admin", "type": "string" }, { "const": "automation", "type": "string" }] }, "state": { "anyOf": [{ "const": "pending", "type": "string" }, { "const": "approved", "type": "string" }, { "const": "rejected", "type": "string" }] } }, "required": ["requestId", "deploymentId", "requestedByKind", "requestedBy", "contractId", "contractDigest", "contract", "state", "createdAt", "decidedAt", "decidedBy", "decisionReason", "delta"], "type": "object" }, "type": "array" }, "grantOverrides": { "items": { "anyOf": [{ "properties": { "capability": { "minLength": 1, "type": "string" }, "capabilityGroupKey": { "type": "null" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "grantKind": { "const": "capability", "type": "string" }, "identityKind": { "const": "web", "type": "string" }, "origin": { "minLength": 1, "type": "string" }, "sessionPublicKey": { "type": "null" } }, "required": ["deploymentId", "identityKind", "grantKind", "contractId", "origin", "sessionPublicKey", "capability", "capabilityGroupKey"], "type": "object" }, { "properties": { "capability": { "type": "null" }, "capabilityGroupKey": { "minLength": 1, "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "grantKind": { "const": "capability-group", "type": "string" }, "identityKind": { "const": "web", "type": "string" }, "origin": { "minLength": 1, "type": "string" }, "sessionPublicKey": { "type": "null" } }, "required": ["deploymentId", "identityKind", "grantKind", "contractId", "origin", "sessionPublicKey", "capability", "capabilityGroupKey"], "type": "object" }, { "properties": { "capability": { "minLength": 1, "type": "string" }, "capabilityGroupKey": { "type": "null" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "grantKind": { "const": "capability", "type": "string" }, "identityKind": { "const": "session", "type": "string" }, "origin": { "type": "null" }, "sessionPublicKey": { "minLength": 1, "type": "string" } }, "required": ["deploymentId", "identityKind", "grantKind", "contractId", "origin", "sessionPublicKey", "capability", "capabilityGroupKey"], "type": "object" }, { "properties": { "capability": { "type": "null" }, "capabilityGroupKey": { "minLength": 1, "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "grantKind": { "const": "capability-group", "type": "string" }, "identityKind": { "const": "session", "type": "string" }, "origin": { "type": "null" }, "sessionPublicKey": { "minLength": 1, "type": "string" } }, "required": ["deploymentId", "identityKind", "grantKind", "contractId", "origin", "sessionPublicKey", "capability", "capabilityGroupKey"], "type": "object" }] }, "type": "array" }, "portalRoute": { "anyOf": [{ "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "entryUrl": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["deploymentId", "portalId", "entryUrl", "disabled", "updatedAt"], "type": "object" }, { "type": "null" }] }, "resourceBindings": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "binding": { "patternProperties": { "^.*$": {} }, "type": "object" }, "createdAt": { "format": "date-time", "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "limits": { "anyOf": [{ "patternProperties": { "^.*$": {} }, "type": "object" }, { "type": "null" }] }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["deploymentId", "kind", "alias", "binding", "limits", "createdAt", "updatedAt"], "type": "object" }, "type": "array" } }, "required": ["envelope", "resourceBindings", "contractEvidence", "expansionRequests", "portalRoute", "grantOverrides"], "type": "object" }, "AuthEnvelopesGrantOverridesListRequest": { "properties": { "limit": { "maximum": 500, "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" } }, "required": ["limit"], "type": "object" }, "AuthEnvelopesGrantOverridesListResponse": { "properties": { "count": { "minimum": 0, "type": "integer" }, "entries": { "default": [], "items": { "anyOf": [{ "properties": { "capability": { "minLength": 1, "type": "string" }, "capabilityGroupKey": { "type": "null" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "grantKind": { "const": "capability", "type": "string" }, "identityKind": { "const": "web", "type": "string" }, "origin": { "minLength": 1, "type": "string" }, "sessionPublicKey": { "type": "null" } }, "required": ["deploymentId", "identityKind", "grantKind", "contractId", "origin", "sessionPublicKey", "capability", "capabilityGroupKey"], "type": "object" }, { "properties": { "capability": { "type": "null" }, "capabilityGroupKey": { "minLength": 1, "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "grantKind": { "const": "capability-group", "type": "string" }, "identityKind": { "const": "web", "type": "string" }, "origin": { "minLength": 1, "type": "string" }, "sessionPublicKey": { "type": "null" } }, "required": ["deploymentId", "identityKind", "grantKind", "contractId", "origin", "sessionPublicKey", "capability", "capabilityGroupKey"], "type": "object" }, { "properties": { "capability": { "minLength": 1, "type": "string" }, "capabilityGroupKey": { "type": "null" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "grantKind": { "const": "capability", "type": "string" }, "identityKind": { "const": "session", "type": "string" }, "origin": { "type": "null" }, "sessionPublicKey": { "minLength": 1, "type": "string" } }, "required": ["deploymentId", "identityKind", "grantKind", "contractId", "origin", "sessionPublicKey", "capability", "capabilityGroupKey"], "type": "object" }, { "properties": { "capability": { "type": "null" }, "capabilityGroupKey": { "minLength": 1, "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "grantKind": { "const": "capability-group", "type": "string" }, "identityKind": { "const": "session", "type": "string" }, "origin": { "type": "null" }, "sessionPublicKey": { "minLength": 1, "type": "string" } }, "required": ["deploymentId", "identityKind", "grantKind", "contractId", "origin", "sessionPublicKey", "capability", "capabilityGroupKey"], "type": "object" }] }, "type": "array" }, "limit": { "minimum": 0, "type": "integer" }, "nextOffset": { "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" } }, "required": ["entries", "count", "offset", "limit"], "type": "object" }, "AuthEnvelopesGrantOverridesPutRequest": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "overrides": { "items": { "anyOf": [{ "properties": { "capability": { "minLength": 1, "type": "string" }, "capabilityGroupKey": { "type": "null" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "grantKind": { "const": "capability", "type": "string" }, "identityKind": { "const": "web", "type": "string" }, "origin": { "minLength": 1, "type": "string" }, "sessionPublicKey": { "type": "null" } }, "required": ["deploymentId", "identityKind", "grantKind", "contractId", "origin", "sessionPublicKey", "capability", "capabilityGroupKey"], "type": "object" }, { "properties": { "capability": { "type": "null" }, "capabilityGroupKey": { "minLength": 1, "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "grantKind": { "const": "capability-group", "type": "string" }, "identityKind": { "const": "web", "type": "string" }, "origin": { "minLength": 1, "type": "string" }, "sessionPublicKey": { "type": "null" } }, "required": ["deploymentId", "identityKind", "grantKind", "contractId", "origin", "sessionPublicKey", "capability", "capabilityGroupKey"], "type": "object" }, { "properties": { "capability": { "minLength": 1, "type": "string" }, "capabilityGroupKey": { "type": "null" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "grantKind": { "const": "capability", "type": "string" }, "identityKind": { "const": "session", "type": "string" }, "origin": { "type": "null" }, "sessionPublicKey": { "minLength": 1, "type": "string" } }, "required": ["deploymentId", "identityKind", "grantKind", "contractId", "origin", "sessionPublicKey", "capability", "capabilityGroupKey"], "type": "object" }, { "properties": { "capability": { "type": "null" }, "capabilityGroupKey": { "minLength": 1, "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "grantKind": { "const": "capability-group", "type": "string" }, "identityKind": { "const": "session", "type": "string" }, "origin": { "type": "null" }, "sessionPublicKey": { "minLength": 1, "type": "string" } }, "required": ["deploymentId", "identityKind", "grantKind", "contractId", "origin", "sessionPublicKey", "capability", "capabilityGroupKey"], "type": "object" }] }, "type": "array" } }, "required": ["deploymentId", "overrides"], "type": "object" }, "AuthEnvelopesGrantOverridesRemoveRequest": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "overrides": { "items": { "anyOf": [{ "properties": { "capability": { "minLength": 1, "type": "string" }, "capabilityGroupKey": { "type": "null" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "grantKind": { "const": "capability", "type": "string" }, "identityKind": { "const": "web", "type": "string" }, "origin": { "minLength": 1, "type": "string" }, "sessionPublicKey": { "type": "null" } }, "required": ["deploymentId", "identityKind", "grantKind", "contractId", "origin", "sessionPublicKey", "capability", "capabilityGroupKey"], "type": "object" }, { "properties": { "capability": { "type": "null" }, "capabilityGroupKey": { "minLength": 1, "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "grantKind": { "const": "capability-group", "type": "string" }, "identityKind": { "const": "web", "type": "string" }, "origin": { "minLength": 1, "type": "string" }, "sessionPublicKey": { "type": "null" } }, "required": ["deploymentId", "identityKind", "grantKind", "contractId", "origin", "sessionPublicKey", "capability", "capabilityGroupKey"], "type": "object" }, { "properties": { "capability": { "minLength": 1, "type": "string" }, "capabilityGroupKey": { "type": "null" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "grantKind": { "const": "capability", "type": "string" }, "identityKind": { "const": "session", "type": "string" }, "origin": { "type": "null" }, "sessionPublicKey": { "minLength": 1, "type": "string" } }, "required": ["deploymentId", "identityKind", "grantKind", "contractId", "origin", "sessionPublicKey", "capability", "capabilityGroupKey"], "type": "object" }, { "properties": { "capability": { "type": "null" }, "capabilityGroupKey": { "minLength": 1, "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "grantKind": { "const": "capability-group", "type": "string" }, "identityKind": { "const": "session", "type": "string" }, "origin": { "type": "null" }, "sessionPublicKey": { "minLength": 1, "type": "string" } }, "required": ["deploymentId", "identityKind", "grantKind", "contractId", "origin", "sessionPublicKey", "capability", "capabilityGroupKey"], "type": "object" }] }, "type": "array" } }, "required": ["deploymentId", "overrides"], "type": "object" }, "AuthEnvelopesGrantOverridesResponse": { "properties": { "grantOverrides": { "items": { "anyOf": [{ "properties": { "capability": { "minLength": 1, "type": "string" }, "capabilityGroupKey": { "type": "null" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "grantKind": { "const": "capability", "type": "string" }, "identityKind": { "const": "web", "type": "string" }, "origin": { "minLength": 1, "type": "string" }, "sessionPublicKey": { "type": "null" } }, "required": ["deploymentId", "identityKind", "grantKind", "contractId", "origin", "sessionPublicKey", "capability", "capabilityGroupKey"], "type": "object" }, { "properties": { "capability": { "type": "null" }, "capabilityGroupKey": { "minLength": 1, "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "grantKind": { "const": "capability-group", "type": "string" }, "identityKind": { "const": "web", "type": "string" }, "origin": { "minLength": 1, "type": "string" }, "sessionPublicKey": { "type": "null" } }, "required": ["deploymentId", "identityKind", "grantKind", "contractId", "origin", "sessionPublicKey", "capability", "capabilityGroupKey"], "type": "object" }, { "properties": { "capability": { "minLength": 1, "type": "string" }, "capabilityGroupKey": { "type": "null" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "grantKind": { "const": "capability", "type": "string" }, "identityKind": { "const": "session", "type": "string" }, "origin": { "type": "null" }, "sessionPublicKey": { "minLength": 1, "type": "string" } }, "required": ["deploymentId", "identityKind", "grantKind", "contractId", "origin", "sessionPublicKey", "capability", "capabilityGroupKey"], "type": "object" }, { "properties": { "capability": { "type": "null" }, "capabilityGroupKey": { "minLength": 1, "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "grantKind": { "const": "capability-group", "type": "string" }, "identityKind": { "const": "session", "type": "string" }, "origin": { "type": "null" }, "sessionPublicKey": { "minLength": 1, "type": "string" } }, "required": ["deploymentId", "identityKind", "grantKind", "contractId", "origin", "sessionPublicKey", "capability", "capabilityGroupKey"], "type": "object" }] }, "type": "array" } }, "required": ["grantOverrides"], "type": "object" }, "AuthEnvelopesListRequest": { "properties": { "disabled": { "type": "boolean" }, "kind": { "anyOf": [{ "const": "service", "type": "string" }, { "const": "device", "type": "string" }, { "const": "app", "type": "string" }, { "const": "cli", "type": "string" }, { "const": "native", "type": "string" }, { "const": "device-user", "type": "string" }] }, "limit": { "maximum": 500, "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" } }, "required": ["limit"], "type": "object" }, "AuthEnvelopesListResponse": { "properties": { "count": { "minimum": 0, "type": "integer" }, "entries": { "default": [], "items": { "properties": { "boundary": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contracts": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "required"], "type": "object" }, "type": "array" }, "resources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "required": { "type": "boolean" } }, "required": ["kind", "alias", "required"], "type": "object" }, "type": "array" }, "surfaces": { "items": { "properties": { "action": { "anyOf": [{ "const": "call", "type": "string" }, { "const": "publish", "type": "string" }, { "const": "subscribe", "type": "string" }, { "const": "read", "type": "string" }, { "const": "cancel", "type": "string" }] }, "contractId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "rpc", "type": "string" }, { "const": "operation", "type": "string" }, { "const": "event", "type": "string" }, { "const": "feed", "type": "string" }] }, "name": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "kind", "name", "action", "required"], "type": "object" }, "type": "array" } }, "required": ["contracts", "surfaces", "capabilities", "resources"], "type": "object" }, "createdAt": { "format": "date-time", "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "kind": { "anyOf": [{ "const": "service", "type": "string" }, { "const": "device", "type": "string" }, { "const": "app", "type": "string" }, { "const": "cli", "type": "string" }, { "const": "native", "type": "string" }, { "const": "device-user", "type": "string" }] }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["deploymentId", "kind", "disabled", "createdAt", "updatedAt", "boundary"], "type": "object" }, "type": "array" }, "limit": { "minimum": 0, "type": "integer" }, "nextOffset": { "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" } }, "required": ["entries", "count", "offset", "limit"], "type": "object" }, "AuthEnvelopesShrinkRequest": { "properties": { "confirm": { "type": "boolean" }, "deploymentId": { "minLength": 1, "type": "string" }, "proposedBoundary": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contracts": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "required"], "type": "object" }, "type": "array" }, "resources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "required": { "type": "boolean" } }, "required": ["kind", "alias", "required"], "type": "object" }, "type": "array" }, "surfaces": { "items": { "properties": { "action": { "anyOf": [{ "const": "call", "type": "string" }, { "const": "publish", "type": "string" }, { "const": "subscribe", "type": "string" }, { "const": "read", "type": "string" }, { "const": "cancel", "type": "string" }] }, "contractId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "rpc", "type": "string" }, { "const": "operation", "type": "string" }, { "const": "event", "type": "string" }, { "const": "feed", "type": "string" }] }, "name": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "kind", "name", "action", "required"], "type": "object" }, "type": "array" } }, "required": ["contracts", "surfaces", "capabilities", "resources"], "type": "object" } }, "required": ["deploymentId", "proposedBoundary", "confirm"], "type": "object" }, "AuthEnvelopesShrinkResponse": { "properties": { "envelope": { "properties": { "boundary": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contracts": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "required"], "type": "object" }, "type": "array" }, "resources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "required": { "type": "boolean" } }, "required": ["kind", "alias", "required"], "type": "object" }, "type": "array" }, "surfaces": { "items": { "properties": { "action": { "anyOf": [{ "const": "call", "type": "string" }, { "const": "publish", "type": "string" }, { "const": "subscribe", "type": "string" }, { "const": "read", "type": "string" }, { "const": "cancel", "type": "string" }] }, "contractId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "rpc", "type": "string" }, { "const": "operation", "type": "string" }, { "const": "event", "type": "string" }, { "const": "feed", "type": "string" }] }, "name": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "kind", "name", "action", "required"], "type": "object" }, "type": "array" } }, "required": ["contracts", "surfaces", "capabilities", "resources"], "type": "object" }, "createdAt": { "format": "date-time", "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "kind": { "anyOf": [{ "const": "service", "type": "string" }, { "const": "device", "type": "string" }, { "const": "app", "type": "string" }, { "const": "cli", "type": "string" }, { "const": "native", "type": "string" }, { "const": "device-user", "type": "string" }] }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["deploymentId", "kind", "disabled", "createdAt", "updatedAt", "boundary"], "type": "object" }, "impact": { "properties": { "impactedDeviceSessions": { "items": { "properties": { "contractDigest": { "anyOf": [{ "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, { "type": "null" }] }, "contractId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "missing": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contracts": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "required"], "type": "object" }, "type": "array" }, "resources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "required": { "type": "boolean" } }, "required": ["kind", "alias", "required"], "type": "object" }, "type": "array" }, "surfaces": { "items": { "properties": { "action": { "anyOf": [{ "const": "call", "type": "string" }, { "const": "publish", "type": "string" }, { "const": "subscribe", "type": "string" }, { "const": "read", "type": "string" }, { "const": "cancel", "type": "string" }] }, "contractId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "rpc", "type": "string" }, { "const": "operation", "type": "string" }, { "const": "event", "type": "string" }, { "const": "feed", "type": "string" }] }, "name": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "kind", "name", "action", "required"], "type": "object" }, "type": "array" } }, "required": ["contracts", "surfaces", "capabilities", "resources"], "type": "object" }, "sessionKey": { "minLength": 1, "type": "string" }, "type": { "anyOf": [{ "anyOf": [{ "const": "app", "type": "string" }, { "const": "agent", "type": "string" }] }, { "const": "device", "type": "string" }, { "const": "service", "type": "string" }] } }, "required": ["sessionKey", "type", "contractId", "contractDigest", "missing"], "type": "object" }, "type": "array" }, "impactedIdentityEnvelopes": { "items": { "properties": { "identityAnchor": { "anyOf": [{ "properties": { "contractId": { "minLength": 1, "type": "string" }, "kind": { "const": "web", "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["kind", "contractId", "origin"], "type": "object" }, { "properties": { "contractId": { "minLength": 1, "type": "string" }, "kind": { "const": "cli", "type": "string" }, "sessionPublicKey": { "minLength": 1, "type": "string" } }, "required": ["kind", "contractId", "sessionPublicKey"], "type": "object" }, { "properties": { "contractId": { "minLength": 1, "type": "string" }, "kind": { "const": "native", "type": "string" }, "sessionPublicKey": { "minLength": 1, "type": "string" } }, "required": ["kind", "contractId", "sessionPublicKey"], "type": "object" }, { "properties": { "contractId": { "minLength": 1, "type": "string" }, "devicePublicKey": { "minLength": 1, "type": "string" }, "kind": { "const": "device-user", "type": "string" } }, "required": ["kind", "contractId", "devicePublicKey"], "type": "object" }] }, "identityEnvelopeId": { "minLength": 1, "type": "string" }, "missing": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contracts": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "required"], "type": "object" }, "type": "array" }, "resources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "required": { "type": "boolean" } }, "required": ["kind", "alias", "required"], "type": "object" }, "type": "array" }, "surfaces": { "items": { "properties": { "action": { "anyOf": [{ "const": "call", "type": "string" }, { "const": "publish", "type": "string" }, { "const": "subscribe", "type": "string" }, { "const": "read", "type": "string" }, { "const": "cancel", "type": "string" }] }, "contractId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "rpc", "type": "string" }, { "const": "operation", "type": "string" }, { "const": "event", "type": "string" }, { "const": "feed", "type": "string" }] }, "name": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "kind", "name", "action", "required"], "type": "object" }, "type": "array" } }, "required": ["contracts", "surfaces", "capabilities", "resources"], "type": "object" } }, "required": ["identityEnvelopeId", "identityAnchor", "missing"], "type": "object" }, "type": "array" }, "impactedPendingRequests": { "items": { "properties": { "missing": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contracts": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "required"], "type": "object" }, "type": "array" }, "resources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "required": { "type": "boolean" } }, "required": ["kind", "alias", "required"], "type": "object" }, "type": "array" }, "surfaces": { "items": { "properties": { "action": { "anyOf": [{ "const": "call", "type": "string" }, { "const": "publish", "type": "string" }, { "const": "subscribe", "type": "string" }, { "const": "read", "type": "string" }, { "const": "cancel", "type": "string" }] }, "contractId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "rpc", "type": "string" }, { "const": "operation", "type": "string" }, { "const": "event", "type": "string" }, { "const": "feed", "type": "string" }] }, "name": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "kind", "name", "action", "required"], "type": "object" }, "type": "array" } }, "required": ["contracts", "surfaces", "capabilities", "resources"], "type": "object" }, "requestId": { "minLength": 1, "type": "string" } }, "required": ["requestId", "missing"], "type": "object" }, "type": "array" }, "impactedServiceInstances": { "items": { "properties": { "missing": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contracts": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "required"], "type": "object" }, "type": "array" }, "resources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "required": { "type": "boolean" } }, "required": ["kind", "alias", "required"], "type": "object" }, "type": "array" }, "surfaces": { "items": { "properties": { "action": { "anyOf": [{ "const": "call", "type": "string" }, { "const": "publish", "type": "string" }, { "const": "subscribe", "type": "string" }, { "const": "read", "type": "string" }, { "const": "cancel", "type": "string" }] }, "contractId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "rpc", "type": "string" }, { "const": "operation", "type": "string" }, { "const": "event", "type": "string" }, { "const": "feed", "type": "string" }] }, "name": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "kind", "name", "action", "required"], "type": "object" }, "type": "array" } }, "required": ["contracts", "surfaces", "capabilities", "resources"], "type": "object" } }, "required": ["missing"], "type": "object" }, "type": "array" }, "impactedSessions": { "items": { "properties": { "contractDigest": { "anyOf": [{ "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, { "type": "null" }] }, "contractId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "missing": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contracts": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "required"], "type": "object" }, "type": "array" }, "resources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "required": { "type": "boolean" } }, "required": ["kind", "alias", "required"], "type": "object" }, "type": "array" }, "surfaces": { "items": { "properties": { "action": { "anyOf": [{ "const": "call", "type": "string" }, { "const": "publish", "type": "string" }, { "const": "subscribe", "type": "string" }, { "const": "read", "type": "string" }, { "const": "cancel", "type": "string" }] }, "contractId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "rpc", "type": "string" }, { "const": "operation", "type": "string" }, { "const": "event", "type": "string" }, { "const": "feed", "type": "string" }] }, "name": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "kind", "name", "action", "required"], "type": "object" }, "type": "array" } }, "required": ["contracts", "surfaces", "capabilities", "resources"], "type": "object" }, "sessionKey": { "minLength": 1, "type": "string" }, "type": { "anyOf": [{ "anyOf": [{ "const": "app", "type": "string" }, { "const": "agent", "type": "string" }] }, { "const": "device", "type": "string" }, { "const": "service", "type": "string" }] } }, "required": ["sessionKey", "type", "contractId", "contractDigest", "missing"], "type": "object" }, "type": "array" }, "orphanedResources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] } }, "required": ["kind", "alias"], "type": "object" }, "type": "array" }, "removed": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contracts": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "required"], "type": "object" }, "type": "array" }, "resources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "required": { "type": "boolean" } }, "required": ["kind", "alias", "required"], "type": "object" }, "type": "array" }, "surfaces": { "items": { "properties": { "action": { "anyOf": [{ "const": "call", "type": "string" }, { "const": "publish", "type": "string" }, { "const": "subscribe", "type": "string" }, { "const": "read", "type": "string" }, { "const": "cancel", "type": "string" }] }, "contractId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "rpc", "type": "string" }, { "const": "operation", "type": "string" }, { "const": "event", "type": "string" }, { "const": "feed", "type": "string" }] }, "name": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "kind", "name", "action", "required"], "type": "object" }, "type": "array" } }, "required": ["contracts", "surfaces", "capabilities", "resources"], "type": "object" } }, "required": ["removed", "impactedSessions", "impactedServiceInstances", "impactedDeviceSessions", "impactedIdentityEnvelopes", "impactedPendingRequests", "orphanedResources"], "type": "object" }, "retainedResources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] } }, "required": ["kind", "alias"], "type": "object" }, "type": "array" } }, "required": ["envelope", "impact", "retainedResources"], "type": "object" }, "AuthIdentitiesGrantsListRequest": { "properties": { "limit": { "maximum": 500, "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" } }, "required": ["limit"], "type": "object" }, "AuthIdentitiesGrantsListResponse": { "properties": { "count": { "minimum": 0, "type": "integer" }, "entries": { "default": [], "items": { "properties": { "capabilities": { "items": { "type": "string" }, "type": "array" }, "contractEvidence": { "properties": { "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" } }, "required": ["contractDigest", "contractId"], "type": "object" }, "description": { "minLength": 1, "type": "string" }, "displayName": { "minLength": 1, "type": "string" }, "grantedAt": { "format": "date-time", "type": "string" }, "identityAnchor": { "anyOf": [{ "properties": { "contractId": { "minLength": 1, "type": "string" }, "kind": { "const": "web", "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["kind", "contractId", "origin"], "type": "object" }, { "properties": { "contractId": { "minLength": 1, "type": "string" }, "kind": { "const": "cli", "type": "string" }, "sessionPublicKey": { "minLength": 1, "type": "string" } }, "required": ["kind", "contractId", "sessionPublicKey"], "type": "object" }, { "properties": { "contractId": { "minLength": 1, "type": "string" }, "kind": { "const": "native", "type": "string" }, "sessionPublicKey": { "minLength": 1, "type": "string" } }, "required": ["kind", "contractId", "sessionPublicKey"], "type": "object" }, { "properties": { "contractId": { "minLength": 1, "type": "string" }, "devicePublicKey": { "minLength": 1, "type": "string" }, "kind": { "const": "device-user", "type": "string" } }, "required": ["kind", "contractId", "devicePublicKey"], "type": "object" }] }, "identityEnvelopeId": { "minLength": 1, "type": "string" }, "participantKind": { "anyOf": [{ "const": "app", "type": "string" }, { "const": "agent", "type": "string" }] }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["identityEnvelopeId", "identityAnchor", "contractEvidence", "displayName", "description", "participantKind", "capabilities", "grantedAt", "updatedAt"], "type": "object" }, "type": "array" }, "limit": { "minimum": 0, "type": "integer" }, "nextOffset": { "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" } }, "required": ["entries", "count", "offset", "limit"], "type": "object" }, "AuthIdentitiesListRequest": { "properties": { "limit": { "maximum": 500, "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" }, "user": { "minLength": 1, "type": "string" } }, "required": ["limit"], "type": "object" }, "AuthIdentitiesListResponse": { "properties": { "count": { "minimum": 0, "type": "integer" }, "entries": { "default": [], "items": { "properties": { "answer": { "anyOf": [{ "const": "approved", "type": "string" }, { "const": "denied", "type": "string" }] }, "answeredAt": { "format": "date-time", "type": "string" }, "capabilities": { "patternProperties": { "^.*$": { "properties": { "consequence": { "type": "string" }, "description": { "type": "string" }, "displayName": { "type": "string" } }, "required": ["displayName", "description"], "type": "object" } }, "type": "object" }, "contractEvidence": { "properties": { "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" } }, "required": ["contractDigest", "contractId"], "type": "object" }, "description": { "minLength": 1, "type": "string" }, "displayName": { "minLength": 1, "type": "string" }, "identityAnchor": { "anyOf": [{ "properties": { "contractId": { "minLength": 1, "type": "string" }, "kind": { "const": "web", "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["kind", "contractId", "origin"], "type": "object" }, { "properties": { "contractId": { "minLength": 1, "type": "string" }, "kind": { "const": "cli", "type": "string" }, "sessionPublicKey": { "minLength": 1, "type": "string" } }, "required": ["kind", "contractId", "sessionPublicKey"], "type": "object" }, { "properties": { "contractId": { "minLength": 1, "type": "string" }, "kind": { "const": "native", "type": "string" }, "sessionPublicKey": { "minLength": 1, "type": "string" } }, "required": ["kind", "contractId", "sessionPublicKey"], "type": "object" }, { "properties": { "contractId": { "minLength": 1, "type": "string" }, "devicePublicKey": { "minLength": 1, "type": "string" }, "kind": { "const": "device-user", "type": "string" } }, "required": ["kind", "contractId", "devicePublicKey"], "type": "object" }] }, "identityEnvelopeId": { "minLength": 1, "type": "string" }, "participantKind": { "anyOf": [{ "const": "app", "type": "string" }, { "const": "agent", "type": "string" }] }, "updatedAt": { "format": "date-time", "type": "string" }, "user": { "minLength": 1, "type": "string" } }, "required": ["user", "answer", "answeredAt", "updatedAt", "identityEnvelopeId", "identityAnchor", "contractEvidence", "displayName", "description", "capabilities", "participantKind"], "type": "object" }, "type": "array" }, "limit": { "minimum": 0, "type": "integer" }, "nextOffset": { "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" } }, "required": ["entries", "count", "offset", "limit"], "type": "object" }, "AuthIdentityEnvelopesRevokeRequest": { "properties": { "identityEnvelopeId": { "minLength": 1, "type": "string" }, "user": { "minLength": 1, "type": "string" } }, "required": ["identityEnvelopeId"], "type": "object" }, "AuthIdentityEnvelopesRevokeResponse": { "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthPortalsGetRequest": { "properties": { "portalId": { "minLength": 1, "type": "string" } }, "required": ["portalId"], "type": "object" }, "AuthPortalsGetResponse": { "properties": { "defaultCapabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "defaultCapabilityGroups": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "federatedProviders": { "items": { "properties": { "displayName": { "minLength": 1, "type": "string" }, "id": { "minLength": 1, "type": "string" }, "type": { "minLength": 1, "type": "string" } }, "required": ["id", "displayName", "type"], "type": "object" }, "type": "array" }, "portal": { "properties": { "builtIn": { "type": "boolean" }, "createdAt": { "format": "date-time", "type": "string" }, "disabled": { "type": "boolean" }, "displayName": { "minLength": 1, "type": "string" }, "entryUrl": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "portalId": { "minLength": 1, "type": "string" }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["portalId", "displayName", "entryUrl", "builtIn", "disabled", "createdAt", "updatedAt"], "type": "object" }, "routes": { "items": { "properties": { "contractId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "disabled": { "type": "boolean" }, "origin": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "portalId": { "minLength": 1, "type": "string" }, "routeKey": { "minLength": 1, "type": "string" }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["routeKey", "portalId", "contractId", "origin", "disabled", "updatedAt"], "type": "object" }, "type": "array" }, "settings": { "properties": { "allowedFederatedProviders": { "anyOf": [{ "items": { "minLength": 1, "type": "string" }, "type": "array" }, { "type": "null" }] }, "federatedRegistrationEnabled": { "type": "boolean" }, "localRegistrationEnabled": { "type": "boolean" }, "portalId": { "minLength": 1, "type": "string" }, "selfRegisteredAccountActive": { "type": "boolean" }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["portalId", "localRegistrationEnabled", "federatedRegistrationEnabled", "allowedFederatedProviders", "selfRegisteredAccountActive", "updatedAt"], "type": "object" } }, "required": ["portal", "settings", "routes", "defaultCapabilities", "defaultCapabilityGroups", "federatedProviders"], "type": "object" }, "AuthPortalsListRequest": { "properties": { "limit": { "maximum": 500, "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" } }, "required": ["limit"], "type": "object" }, "AuthPortalsListResponse": { "properties": { "count": { "minimum": 0, "type": "integer" }, "entries": { "default": [], "items": { "properties": { "activeRouteCount": { "minimum": 0, "type": "integer" }, "builtIn": { "type": "boolean" }, "createdAt": { "format": "date-time", "type": "string" }, "disabled": { "type": "boolean" }, "displayName": { "minLength": 1, "type": "string" }, "entryUrl": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "portalId": { "minLength": 1, "type": "string" }, "routeCount": { "minimum": 0, "type": "integer" }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["portalId", "displayName", "entryUrl", "builtIn", "disabled", "createdAt", "updatedAt", "routeCount", "activeRouteCount"], "type": "object" }, "type": "array" }, "limit": { "minimum": 0, "type": "integer" }, "nextOffset": { "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" } }, "required": ["entries", "count", "offset", "limit"], "type": "object" }, "AuthPortalsLoginSettingsGetRequest": { "properties": { "portalId": { "minLength": 1, "type": "string" } }, "required": ["portalId"], "type": "object" }, "AuthPortalsLoginSettingsResponse": { "properties": { "defaultCapabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "defaultCapabilityGroups": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "federatedProviders": { "items": { "properties": { "displayName": { "minLength": 1, "type": "string" }, "id": { "minLength": 1, "type": "string" }, "type": { "minLength": 1, "type": "string" } }, "required": ["id", "displayName", "type"], "type": "object" }, "type": "array" }, "portal": { "properties": { "builtIn": { "type": "boolean" }, "createdAt": { "format": "date-time", "type": "string" }, "disabled": { "type": "boolean" }, "displayName": { "minLength": 1, "type": "string" }, "entryUrl": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "portalId": { "minLength": 1, "type": "string" }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["portalId", "displayName", "entryUrl", "builtIn", "disabled", "createdAt", "updatedAt"], "type": "object" }, "settings": { "properties": { "allowedFederatedProviders": { "anyOf": [{ "items": { "minLength": 1, "type": "string" }, "type": "array" }, { "type": "null" }] }, "federatedRegistrationEnabled": { "type": "boolean" }, "localRegistrationEnabled": { "type": "boolean" }, "portalId": { "minLength": 1, "type": "string" }, "selfRegisteredAccountActive": { "type": "boolean" }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["portalId", "localRegistrationEnabled", "federatedRegistrationEnabled", "allowedFederatedProviders", "selfRegisteredAccountActive", "updatedAt"], "type": "object" } }, "required": ["portal", "settings", "defaultCapabilities", "defaultCapabilityGroups", "federatedProviders"], "type": "object" }, "AuthPortalsLoginSettingsUpdateRequest": { "properties": { "allowedFederatedProviders": { "anyOf": [{ "items": { "minLength": 1, "type": "string" }, "type": "array" }, { "type": "null" }] }, "defaultCapabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "defaultCapabilityGroups": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "federatedRegistrationEnabled": { "type": "boolean" }, "localRegistrationEnabled": { "type": "boolean" }, "portalId": { "minLength": 1, "type": "string" }, "selfRegisteredAccountActive": { "type": "boolean" } }, "required": ["portalId", "localRegistrationEnabled", "federatedRegistrationEnabled", "allowedFederatedProviders", "selfRegisteredAccountActive", "defaultCapabilities", "defaultCapabilityGroups"], "type": "object" }, "AuthPortalsPutRequest": { "properties": { "disabled": { "type": "boolean" }, "displayName": { "minLength": 1, "type": "string" }, "entryUrl": { "minLength": 1, "type": "string" }, "portalId": { "minLength": 1, "type": "string" } }, "required": ["portalId", "displayName", "entryUrl"], "type": "object" }, "AuthPortalsPutResponse": { "properties": { "portal": { "properties": { "builtIn": { "type": "boolean" }, "createdAt": { "format": "date-time", "type": "string" }, "disabled": { "type": "boolean" }, "displayName": { "minLength": 1, "type": "string" }, "entryUrl": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "portalId": { "minLength": 1, "type": "string" }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["portalId", "displayName", "entryUrl", "builtIn", "disabled", "createdAt", "updatedAt"], "type": "object" } }, "required": ["portal"], "type": "object" }, "AuthPortalsRemoveRequest": { "properties": { "portalId": { "minLength": 1, "type": "string" } }, "required": ["portalId"], "type": "object" }, "AuthPortalsRemoveResponse": { "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthPortalsRoutesPutRequest": { "properties": { "contractId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "disabled": { "type": "boolean" }, "origin": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "portalId": { "minLength": 1, "type": "string" } }, "required": ["portalId"], "type": "object" }, "AuthPortalsRoutesPutResponse": { "properties": { "route": { "properties": { "contractId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "disabled": { "type": "boolean" }, "origin": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "portalId": { "minLength": 1, "type": "string" }, "routeKey": { "minLength": 1, "type": "string" }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["routeKey", "portalId", "contractId", "origin", "disabled", "updatedAt"], "type": "object" } }, "required": ["route"], "type": "object" }, "AuthPortalsRoutesRemoveRequest": { "properties": { "contractId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "origin": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "portalId": { "minLength": 1, "type": "string" } }, "required": ["portalId"], "type": "object" }, "AuthPortalsRoutesRemoveResponse": { "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthRequestsValidateRequest": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "iat": { "type": "integer" }, "payloadHash": { "minLength": 1, "type": "string" }, "proof": { "minLength": 1, "type": "string" }, "requestId": { "minLength": 1, "type": "string" }, "sessionKey": { "minLength": 1, "type": "string" }, "subject": { "minLength": 1, "type": "string" } }, "required": ["sessionKey", "proof", "subject", "payloadHash", "iat", "requestId"], "type": "object" }, "AuthRequestsValidateResponse": { "properties": { "allowed": { "type": "boolean" }, "caller": { "anyOf": [{ "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "email": { "type": "string" }, "identity": { "properties": { "identityId": { "minLength": 1, "type": "string" }, "provider": { "minLength": 1, "type": "string" }, "subject": { "minLength": 1, "type": "string" } }, "required": ["identityId", "provider", "subject"], "type": "object" }, "image": { "type": "string" }, "lastAuth": { "format": "date-time", "type": "string" }, "name": { "type": "string" }, "participantKind": { "anyOf": [{ "const": "app", "type": "string" }, { "const": "agent", "type": "string" }] }, "type": { "const": "user", "type": "string" }, "userId": { "minLength": 1, "type": "string" } }, "required": ["type", "participantKind", "userId", "identity", "active", "name", "email", "capabilities", "lastAuth"], "type": "object" }, { "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "id": { "type": "string" }, "name": { "type": "string" }, "type": { "const": "service", "type": "string" } }, "required": ["type", "id", "name", "active", "capabilities"], "type": "object" }, { "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "deploymentId": { "minLength": 1, "type": "string" }, "deviceId": { "minLength": 1, "type": "string" }, "deviceType": { "minLength": 1, "type": "string" }, "runtimePublicKey": { "minLength": 1, "type": "string" }, "type": { "const": "device", "type": "string" } }, "required": ["type", "deviceId", "deviceType", "runtimePublicKey", "deploymentId", "active", "capabilities"], "type": "object" }] }, "inboxPrefix": { "type": "string" } }, "required": ["allowed", "inboxPrefix", "caller"], "type": "object" }, "AuthResolveDeviceUserAuthoritiesProgress": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "requestedAt": { "format": "date-time", "type": "string" }, "reviewId": { "minLength": 1, "type": "string" }, "status": { "const": "pending_review", "type": "string" } }, "required": ["status", "reviewId", "instanceId", "deploymentId", "requestedAt"], "type": "object" }, "AuthResolveDeviceUserAuthoritiesRequest": { "properties": { "flowId": { "minLength": 1, "type": "string" } }, "required": ["flowId"], "type": "object" }, "AuthResolveDeviceUserAuthoritiesResponse": { "anyOf": [{ "properties": { "activatedAt": { "format": "date-time", "type": "string" }, "confirmationCode": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "status": { "const": "activated", "type": "string" } }, "required": ["status", "instanceId", "deploymentId", "activatedAt"], "type": "object" }, { "properties": { "reason": { "minLength": 1, "type": "string" }, "status": { "const": "rejected", "type": "string" } }, "required": ["status"], "type": "object" }] }, "AuthServiceInstancesDisableRequest": { "properties": { "instanceId": { "minLength": 1, "type": "string" } }, "required": ["instanceId"], "type": "object" }, "AuthServiceInstancesDisableResponse": { "properties": { "instance": { "properties": { "capabilities": { "items": { "type": "string" }, "type": "array" }, "createdAt": { "format": "date-time", "type": "string" }, "currentContractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "currentContractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "instanceId": { "minLength": 1, "type": "string" }, "instanceKey": { "minLength": 1, "type": "string" }, "resourceBindings": { "properties": { "jobs": { "properties": { "namespace": { "minLength": 1, "type": "string" }, "queues": { "patternProperties": { "^.*$": { "properties": { "ackWaitMs": { "minimum": 1, "type": "integer" }, "backoffMs": { "items": { "minimum": 0, "type": "integer" }, "type": "array" }, "concurrency": { "minimum": 1, "type": "integer" }, "consumerName": { "minLength": 1, "type": "string" }, "defaultDeadlineMs": { "minimum": 1, "type": "integer" }, "dlq": { "type": "boolean" }, "logs": { "type": "boolean" }, "maxDeliver": { "minimum": 1, "type": "integer" }, "payload": { "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "publishPrefix": { "minLength": 1, "type": "string" }, "queueType": { "minLength": 1, "type": "string" }, "result": { "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "workSubject": { "minLength": 1, "type": "string" } }, "required": ["queueType", "publishPrefix", "workSubject", "consumerName", "payload", "maxDeliver", "backoffMs", "ackWaitMs", "progress", "logs", "dlq", "concurrency"], "type": "object" } }, "type": "object" }, "workStream": { "minLength": 1, "type": "string" } }, "required": ["namespace", "queues"], "type": "object" }, "kv": { "patternProperties": { "^.*$": { "properties": { "bucket": { "minLength": 1, "type": "string" }, "history": { "minimum": 1, "type": "integer" }, "maxValueBytes": { "minimum": 1, "type": "integer" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["bucket", "history", "ttlMs"], "type": "object" } }, "type": "object" }, "store": { "patternProperties": { "^.*$": { "properties": { "maxObjectBytes": { "minimum": 1, "type": "integer" }, "maxTotalBytes": { "minimum": 1, "type": "integer" }, "name": { "minLength": 1, "type": "string" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["name", "ttlMs"], "type": "object" } }, "type": "object" } }, "type": "object" } }, "required": ["instanceId", "deploymentId", "instanceKey", "disabled", "capabilities", "createdAt"], "type": "object" } }, "required": ["instance"], "type": "object" }, "AuthServiceInstancesEnableRequest": { "properties": { "instanceId": { "minLength": 1, "type": "string" } }, "required": ["instanceId"], "type": "object" }, "AuthServiceInstancesEnableResponse": { "properties": { "instance": { "properties": { "capabilities": { "items": { "type": "string" }, "type": "array" }, "createdAt": { "format": "date-time", "type": "string" }, "currentContractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "currentContractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "instanceId": { "minLength": 1, "type": "string" }, "instanceKey": { "minLength": 1, "type": "string" }, "resourceBindings": { "properties": { "jobs": { "properties": { "namespace": { "minLength": 1, "type": "string" }, "queues": { "patternProperties": { "^.*$": { "properties": { "ackWaitMs": { "minimum": 1, "type": "integer" }, "backoffMs": { "items": { "minimum": 0, "type": "integer" }, "type": "array" }, "concurrency": { "minimum": 1, "type": "integer" }, "consumerName": { "minLength": 1, "type": "string" }, "defaultDeadlineMs": { "minimum": 1, "type": "integer" }, "dlq": { "type": "boolean" }, "logs": { "type": "boolean" }, "maxDeliver": { "minimum": 1, "type": "integer" }, "payload": { "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "publishPrefix": { "minLength": 1, "type": "string" }, "queueType": { "minLength": 1, "type": "string" }, "result": { "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "workSubject": { "minLength": 1, "type": "string" } }, "required": ["queueType", "publishPrefix", "workSubject", "consumerName", "payload", "maxDeliver", "backoffMs", "ackWaitMs", "progress", "logs", "dlq", "concurrency"], "type": "object" } }, "type": "object" }, "workStream": { "minLength": 1, "type": "string" } }, "required": ["namespace", "queues"], "type": "object" }, "kv": { "patternProperties": { "^.*$": { "properties": { "bucket": { "minLength": 1, "type": "string" }, "history": { "minimum": 1, "type": "integer" }, "maxValueBytes": { "minimum": 1, "type": "integer" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["bucket", "history", "ttlMs"], "type": "object" } }, "type": "object" }, "store": { "patternProperties": { "^.*$": { "properties": { "maxObjectBytes": { "minimum": 1, "type": "integer" }, "maxTotalBytes": { "minimum": 1, "type": "integer" }, "name": { "minLength": 1, "type": "string" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["name", "ttlMs"], "type": "object" } }, "type": "object" } }, "type": "object" } }, "required": ["instanceId", "deploymentId", "instanceKey", "disabled", "capabilities", "createdAt"], "type": "object" } }, "required": ["instance"], "type": "object" }, "AuthServiceInstancesListRequest": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "limit": { "maximum": 500, "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" } }, "required": ["limit"], "type": "object" }, "AuthServiceInstancesListResponse": { "properties": { "count": { "minimum": 0, "type": "integer" }, "entries": { "default": [], "items": { "properties": { "capabilities": { "items": { "type": "string" }, "type": "array" }, "createdAt": { "format": "date-time", "type": "string" }, "currentContractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "currentContractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "instanceId": { "minLength": 1, "type": "string" }, "instanceKey": { "minLength": 1, "type": "string" }, "resourceBindings": { "properties": { "jobs": { "properties": { "namespace": { "minLength": 1, "type": "string" }, "queues": { "patternProperties": { "^.*$": { "properties": { "ackWaitMs": { "minimum": 1, "type": "integer" }, "backoffMs": { "items": { "minimum": 0, "type": "integer" }, "type": "array" }, "concurrency": { "minimum": 1, "type": "integer" }, "consumerName": { "minLength": 1, "type": "string" }, "defaultDeadlineMs": { "minimum": 1, "type": "integer" }, "dlq": { "type": "boolean" }, "logs": { "type": "boolean" }, "maxDeliver": { "minimum": 1, "type": "integer" }, "payload": { "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "publishPrefix": { "minLength": 1, "type": "string" }, "queueType": { "minLength": 1, "type": "string" }, "result": { "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "workSubject": { "minLength": 1, "type": "string" } }, "required": ["queueType", "publishPrefix", "workSubject", "consumerName", "payload", "maxDeliver", "backoffMs", "ackWaitMs", "progress", "logs", "dlq", "concurrency"], "type": "object" } }, "type": "object" }, "workStream": { "minLength": 1, "type": "string" } }, "required": ["namespace", "queues"], "type": "object" }, "kv": { "patternProperties": { "^.*$": { "properties": { "bucket": { "minLength": 1, "type": "string" }, "history": { "minimum": 1, "type": "integer" }, "maxValueBytes": { "minimum": 1, "type": "integer" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["bucket", "history", "ttlMs"], "type": "object" } }, "type": "object" }, "store": { "patternProperties": { "^.*$": { "properties": { "maxObjectBytes": { "minimum": 1, "type": "integer" }, "maxTotalBytes": { "minimum": 1, "type": "integer" }, "name": { "minLength": 1, "type": "string" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["name", "ttlMs"], "type": "object" } }, "type": "object" } }, "type": "object" } }, "required": ["instanceId", "deploymentId", "instanceKey", "disabled", "capabilities", "createdAt"], "type": "object" }, "type": "array" }, "limit": { "minimum": 0, "type": "integer" }, "nextOffset": { "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" } }, "required": ["entries", "count", "offset", "limit"], "type": "object" }, "AuthServiceInstancesProvisionRequest": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "instanceKey": { "minLength": 1, "type": "string" } }, "required": ["deploymentId", "instanceKey"], "type": "object" }, "AuthServiceInstancesProvisionResponse": { "properties": { "instance": { "properties": { "capabilities": { "items": { "type": "string" }, "type": "array" }, "createdAt": { "format": "date-time", "type": "string" }, "currentContractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "currentContractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "instanceId": { "minLength": 1, "type": "string" }, "instanceKey": { "minLength": 1, "type": "string" }, "resourceBindings": { "properties": { "jobs": { "properties": { "namespace": { "minLength": 1, "type": "string" }, "queues": { "patternProperties": { "^.*$": { "properties": { "ackWaitMs": { "minimum": 1, "type": "integer" }, "backoffMs": { "items": { "minimum": 0, "type": "integer" }, "type": "array" }, "concurrency": { "minimum": 1, "type": "integer" }, "consumerName": { "minLength": 1, "type": "string" }, "defaultDeadlineMs": { "minimum": 1, "type": "integer" }, "dlq": { "type": "boolean" }, "logs": { "type": "boolean" }, "maxDeliver": { "minimum": 1, "type": "integer" }, "payload": { "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "publishPrefix": { "minLength": 1, "type": "string" }, "queueType": { "minLength": 1, "type": "string" }, "result": { "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "workSubject": { "minLength": 1, "type": "string" } }, "required": ["queueType", "publishPrefix", "workSubject", "consumerName", "payload", "maxDeliver", "backoffMs", "ackWaitMs", "progress", "logs", "dlq", "concurrency"], "type": "object" } }, "type": "object" }, "workStream": { "minLength": 1, "type": "string" } }, "required": ["namespace", "queues"], "type": "object" }, "kv": { "patternProperties": { "^.*$": { "properties": { "bucket": { "minLength": 1, "type": "string" }, "history": { "minimum": 1, "type": "integer" }, "maxValueBytes": { "minimum": 1, "type": "integer" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["bucket", "history", "ttlMs"], "type": "object" } }, "type": "object" }, "store": { "patternProperties": { "^.*$": { "properties": { "maxObjectBytes": { "minimum": 1, "type": "integer" }, "maxTotalBytes": { "minimum": 1, "type": "integer" }, "name": { "minLength": 1, "type": "string" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["name", "ttlMs"], "type": "object" } }, "type": "object" } }, "type": "object" } }, "required": ["instanceId", "deploymentId", "instanceKey", "disabled", "capabilities", "createdAt"], "type": "object" } }, "required": ["instance"], "type": "object" }, "AuthServiceInstancesRemoveRequest": { "properties": { "instanceId": { "minLength": 1, "type": "string" } }, "required": ["instanceId"], "type": "object" }, "AuthServiceInstancesRemoveResponse": { "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthSessionsListRequest": { "properties": { "limit": { "maximum": 500, "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" }, "user": { "type": "string" } }, "required": ["limit"], "type": "object" }, "AuthSessionsListResponse": { "properties": { "count": { "minimum": 0, "type": "integer" }, "entries": { "default": [], "items": { "anyOf": [{ "properties": { "contractDisplayName": { "type": "string" }, "contractId": { "type": "string" }, "createdAt": { "type": "string" }, "key": { "type": "string" }, "lastAuth": { "type": "string" }, "participantKind": { "const": "app", "type": "string" }, "principal": { "properties": { "identity": { "properties": { "identityId": { "type": "string" }, "provider": { "type": "string" }, "subject": { "type": "string" } }, "required": ["identityId", "provider", "subject"], "type": "object" }, "name": { "type": "string" }, "type": { "const": "user", "type": "string" }, "userId": { "type": "string" } }, "required": ["type", "userId", "identity", "name"], "type": "object" }, "sessionKey": { "type": "string" } }, "required": ["key", "sessionKey", "createdAt", "lastAuth", "participantKind", "principal", "contractId", "contractDisplayName"], "type": "object" }, { "properties": { "contractDisplayName": { "type": "string" }, "contractId": { "type": "string" }, "createdAt": { "type": "string" }, "key": { "type": "string" }, "lastAuth": { "type": "string" }, "participantKind": { "const": "agent", "type": "string" }, "principal": { "properties": { "identity": { "properties": { "identityId": { "type": "string" }, "provider": { "type": "string" }, "subject": { "type": "string" } }, "required": ["identityId", "provider", "subject"], "type": "object" }, "name": { "type": "string" }, "type": { "const": "user", "type": "string" }, "userId": { "type": "string" } }, "required": ["type", "userId", "identity", "name"], "type": "object" }, "sessionKey": { "type": "string" } }, "required": ["key", "sessionKey", "createdAt", "lastAuth", "participantKind", "principal", "contractId", "contractDisplayName"], "type": "object" }, { "properties": { "contractDisplayName": { "type": "string" }, "contractId": { "type": "string" }, "createdAt": { "type": "string" }, "key": { "type": "string" }, "lastAuth": { "type": "string" }, "participantKind": { "const": "device", "type": "string" }, "principal": { "properties": { "deploymentId": { "type": "string" }, "deviceId": { "type": "string" }, "deviceType": { "type": "string" }, "runtimePublicKey": { "type": "string" }, "type": { "const": "device", "type": "string" } }, "required": ["type", "deviceId", "deviceType", "runtimePublicKey", "deploymentId"], "type": "object" }, "sessionKey": { "type": "string" } }, "required": ["key", "sessionKey", "createdAt", "lastAuth", "participantKind", "principal", "contractId"], "type": "object" }, { "properties": { "createdAt": { "type": "string" }, "key": { "type": "string" }, "lastAuth": { "type": "string" }, "participantKind": { "const": "service", "type": "string" }, "principal": { "properties": { "deploymentId": { "type": "string" }, "id": { "type": "string" }, "instanceId": { "type": "string" }, "name": { "type": "string" }, "type": { "const": "service", "type": "string" } }, "required": ["type", "id", "name", "instanceId", "deploymentId"], "type": "object" }, "sessionKey": { "type": "string" } }, "required": ["key", "sessionKey", "createdAt", "lastAuth", "participantKind", "principal"], "type": "object" }] }, "type": "array" }, "limit": { "minimum": 0, "type": "integer" }, "nextOffset": { "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" } }, "required": ["entries", "count", "offset", "limit"], "type": "object" }, "AuthSessionsLogoutRequest": { "properties": {}, "type": "object" }, "AuthSessionsLogoutResponse": { "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthSessionsMeRequest": { "properties": {}, "type": "object" }, "AuthSessionsMeResponse": { "properties": { "device": { "anyOf": [{ "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "deploymentId": { "minLength": 1, "type": "string" }, "deviceId": { "minLength": 1, "type": "string" }, "deviceType": { "minLength": 1, "type": "string" }, "runtimePublicKey": { "minLength": 1, "type": "string" }, "type": { "const": "device", "type": "string" } }, "required": ["type", "deviceId", "deviceType", "runtimePublicKey", "deploymentId", "active", "capabilities"], "type": "object" }, { "type": "null" }] }, "participantKind": { "anyOf": [{ "anyOf": [{ "const": "app", "type": "string" }, { "const": "agent", "type": "string" }] }, { "const": "device", "type": "string" }, { "const": "service", "type": "string" }] }, "service": { "anyOf": [{ "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "id": { "type": "string" }, "name": { "type": "string" }, "type": { "const": "service", "type": "string" } }, "required": ["type", "id", "name", "active", "capabilities"], "type": "object" }, { "type": "null" }] }, "user": { "anyOf": [{ "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "email": { "type": "string" }, "identity": { "properties": { "identityId": { "minLength": 1, "type": "string" }, "provider": { "minLength": 1, "type": "string" }, "subject": { "minLength": 1, "type": "string" } }, "required": ["identityId", "provider", "subject"], "type": "object" }, "image": { "type": "string" }, "lastLogin": { "format": "date-time", "type": "string" }, "name": { "type": "string" }, "userId": { "minLength": 1, "type": "string" } }, "required": ["userId", "active", "name", "email", "capabilities", "identity"], "type": "object" }, { "type": "null" }] } }, "required": ["participantKind", "user", "device", "service"], "type": "object" }, "AuthSessionsRevokeRequest": { "properties": { "sessionKey": { "type": "string" } }, "required": ["sessionKey"], "type": "object" }, "AuthSessionsRevokeResponse": { "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthSessionsRevokedEvent": { "allOf": [{ "properties": { "header": { "properties": { "id": { "type": "string" }, "time": { "format": "date-time", "type": "string" } }, "required": ["id", "time"], "type": "object" } }, "required": ["header"], "type": "object" }, { "properties": { "id": { "type": "string" }, "origin": { "type": "string" }, "revokedBy": { "type": "string" }, "sessionKey": { "type": "string" } }, "required": ["origin", "id", "sessionKey", "revokedBy"], "type": "object" }] }, "AuthUserIdentitiesListRequest": { "properties": { "limit": { "maximum": 500, "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" }, "userId": { "minLength": 1, "type": "string" } }, "required": ["userId", "limit"], "type": "object" }, "AuthUserIdentitiesListResponse": { "properties": { "count": { "minimum": 0, "type": "integer" }, "entries": { "default": [], "items": { "properties": { "displayName": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "email": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "emailVerified": { "type": "boolean" }, "identityId": { "minLength": 1, "type": "string" }, "lastLoginAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "linkedAt": { "format": "date-time", "type": "string" }, "provider": { "minLength": 1, "type": "string" }, "subject": { "minLength": 1, "type": "string" } }, "required": ["identityId", "provider", "subject", "displayName", "email", "emailVerified", "linkedAt", "lastLoginAt"], "type": "object" }, "type": "array" }, "limit": { "minimum": 0, "type": "integer" }, "nextOffset": { "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" } }, "required": ["entries", "count", "offset", "limit"], "type": "object" }, "AuthUserIdentitiesUnlinkRequest": { "properties": { "identityId": { "minLength": 1, "type": "string" }, "userId": { "minLength": 1, "type": "string" } }, "required": ["userId", "identityId"], "type": "object" }, "AuthUserIdentitiesUnlinkResponse": { "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthUsersAccountFlowCreateResponse": { "properties": { "expiresAt": { "format": "date-time", "type": "string" }, "flowId": { "minLength": 1, "type": "string" }, "url": { "minLength": 1, "type": "string" } }, "required": ["flowId", "url", "expiresAt"], "type": "object" }, "AuthUsersCreateRequest": { "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "capabilityGroups": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "email": { "minLength": 1, "type": "string" }, "name": { "minLength": 1, "type": "string" }, "username": { "minLength": 1, "type": "string" } }, "type": "object" }, "AuthUsersCreateResponse": { "properties": { "user": { "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "capabilityGroups": { "items": { "type": "string" }, "type": "array" }, "email": { "type": "string" }, "identities": { "items": { "properties": { "displayName": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "email": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "emailVerified": { "type": "boolean" }, "identityId": { "minLength": 1, "type": "string" }, "lastLoginAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "linkedAt": { "format": "date-time", "type": "string" }, "provider": { "minLength": 1, "type": "string" }, "subject": { "minLength": 1, "type": "string" } }, "required": ["identityId", "provider", "subject", "displayName", "email", "emailVerified", "linkedAt", "lastLoginAt"], "type": "object" }, "type": "array" }, "name": { "type": "string" }, "userId": { "minLength": 1, "type": "string" } }, "required": ["userId", "active", "capabilities", "capabilityGroups", "identities"], "type": "object" } }, "required": ["user"], "type": "object" }, "AuthUsersGetRequest": { "properties": { "userId": { "minLength": 1, "type": "string" } }, "required": ["userId"], "type": "object" }, "AuthUsersGetResponse": { "properties": { "user": { "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "capabilityGroups": { "items": { "type": "string" }, "type": "array" }, "email": { "type": "string" }, "identities": { "items": { "properties": { "displayName": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "email": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "emailVerified": { "type": "boolean" }, "identityId": { "minLength": 1, "type": "string" }, "lastLoginAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "linkedAt": { "format": "date-time", "type": "string" }, "provider": { "minLength": 1, "type": "string" }, "subject": { "minLength": 1, "type": "string" } }, "required": ["identityId", "provider", "subject", "displayName", "email", "emailVerified", "linkedAt", "lastLoginAt"], "type": "object" }, "type": "array" }, "name": { "type": "string" }, "userId": { "minLength": 1, "type": "string" } }, "required": ["userId", "active", "capabilities", "capabilityGroups", "identities"], "type": "object" } }, "required": ["user"], "type": "object" }, "AuthUsersIdentityLinkCreateRequest": { "properties": { "returnTo": { "minLength": 1, "type": "string" } }, "type": "object" }, "AuthUsersListRequest": { "properties": { "limit": { "maximum": 500, "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" } }, "required": ["limit"], "type": "object" }, "AuthUsersListResponse": { "properties": { "count": { "minimum": 0, "type": "integer" }, "entries": { "default": [], "items": { "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "capabilityGroups": { "items": { "type": "string" }, "type": "array" }, "email": { "type": "string" }, "identities": { "items": { "properties": { "displayName": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "email": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "emailVerified": { "type": "boolean" }, "identityId": { "minLength": 1, "type": "string" }, "lastLoginAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "linkedAt": { "format": "date-time", "type": "string" }, "provider": { "minLength": 1, "type": "string" }, "subject": { "minLength": 1, "type": "string" } }, "required": ["identityId", "provider", "subject", "displayName", "email", "emailVerified", "linkedAt", "lastLoginAt"], "type": "object" }, "type": "array" }, "name": { "type": "string" }, "userId": { "minLength": 1, "type": "string" } }, "required": ["userId", "active", "capabilities", "capabilityGroups", "identities"], "type": "object" }, "type": "array" }, "limit": { "minimum": 0, "type": "integer" }, "nextOffset": { "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" } }, "required": ["entries", "count", "offset", "limit"], "type": "object" }, "AuthUsersPasswordChangeRequest": { "properties": { "currentPassword": { "minLength": 1, "type": "string" }, "newPassword": { "minLength": 1, "type": "string" } }, "required": ["currentPassword", "newPassword"], "type": "object" }, "AuthUsersPasswordChangeResponse": { "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "AuthUsersPasswordResetCreateRequest": { "properties": { "expiresInSeconds": { "maximum": 2592000, "minimum": 60, "type": "integer" }, "userId": { "minLength": 1, "type": "string" } }, "required": ["userId"], "type": "object" }, "AuthUsersUpdateRequest": { "properties": { "active": { "type": "boolean" }, "capabilities": { "items": { "type": "string" }, "type": "array" }, "capabilityGroups": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "email": { "type": "string" }, "name": { "type": "string" }, "userId": { "minLength": 1, "type": "string" } }, "required": ["userId"], "type": "object" }, "AuthUsersUpdateResponse": { "properties": { "success": { "type": "boolean" } }, "required": ["success"], "type": "object" }, "DeploymentContractEvidence": { "properties": { "contract": { "type": "object" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "firstSeenAt": { "format": "date-time", "type": "string" }, "ignoreReason": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "ignoredAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "ignoredBy": { "anyOf": [{ "patternProperties": { "^.*$": {} }, "type": "object" }, { "type": "null" }] }, "lastSeenAt": { "format": "date-time", "type": "string" } }, "required": ["deploymentId", "contractId", "contractDigest", "contract", "firstSeenAt", "lastSeenAt"], "type": "object" }, "DeploymentEnvelope": { "properties": { "boundary": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contracts": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "required"], "type": "object" }, "type": "array" }, "resources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "required": { "type": "boolean" } }, "required": ["kind", "alias", "required"], "type": "object" }, "type": "array" }, "surfaces": { "items": { "properties": { "action": { "anyOf": [{ "const": "call", "type": "string" }, { "const": "publish", "type": "string" }, { "const": "subscribe", "type": "string" }, { "const": "read", "type": "string" }, { "const": "cancel", "type": "string" }] }, "contractId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "rpc", "type": "string" }, { "const": "operation", "type": "string" }, { "const": "event", "type": "string" }, { "const": "feed", "type": "string" }] }, "name": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "kind", "name", "action", "required"], "type": "object" }, "type": "array" } }, "required": ["contracts", "surfaces", "capabilities", "resources"], "type": "object" }, "createdAt": { "format": "date-time", "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "kind": { "anyOf": [{ "const": "service", "type": "string" }, { "const": "device", "type": "string" }, { "const": "app", "type": "string" }, { "const": "cli", "type": "string" }, { "const": "native", "type": "string" }, { "const": "device-user", "type": "string" }] }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["deploymentId", "kind", "disabled", "createdAt", "updatedAt", "boundary"], "type": "object" }, "DeploymentGrantOverride": { "anyOf": [{ "properties": { "capability": { "minLength": 1, "type": "string" }, "capabilityGroupKey": { "type": "null" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "grantKind": { "const": "capability", "type": "string" }, "identityKind": { "const": "web", "type": "string" }, "origin": { "minLength": 1, "type": "string" }, "sessionPublicKey": { "type": "null" } }, "required": ["deploymentId", "identityKind", "grantKind", "contractId", "origin", "sessionPublicKey", "capability", "capabilityGroupKey"], "type": "object" }, { "properties": { "capability": { "type": "null" }, "capabilityGroupKey": { "minLength": 1, "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "grantKind": { "const": "capability-group", "type": "string" }, "identityKind": { "const": "web", "type": "string" }, "origin": { "minLength": 1, "type": "string" }, "sessionPublicKey": { "type": "null" } }, "required": ["deploymentId", "identityKind", "grantKind", "contractId", "origin", "sessionPublicKey", "capability", "capabilityGroupKey"], "type": "object" }, { "properties": { "capability": { "minLength": 1, "type": "string" }, "capabilityGroupKey": { "type": "null" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "grantKind": { "const": "capability", "type": "string" }, "identityKind": { "const": "session", "type": "string" }, "origin": { "type": "null" }, "sessionPublicKey": { "minLength": 1, "type": "string" } }, "required": ["deploymentId", "identityKind", "grantKind", "contractId", "origin", "sessionPublicKey", "capability", "capabilityGroupKey"], "type": "object" }, { "properties": { "capability": { "type": "null" }, "capabilityGroupKey": { "minLength": 1, "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "grantKind": { "const": "capability-group", "type": "string" }, "identityKind": { "const": "session", "type": "string" }, "origin": { "type": "null" }, "sessionPublicKey": { "minLength": 1, "type": "string" } }, "required": ["deploymentId", "identityKind", "grantKind", "contractId", "origin", "sessionPublicKey", "capability", "capabilityGroupKey"], "type": "object" }] }, "DeploymentPortalRoute": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "entryUrl": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "portalId": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["deploymentId", "portalId", "entryUrl", "disabled", "updatedAt"], "type": "object" }, "DeploymentResourceBinding": { "properties": { "alias": { "minLength": 1, "type": "string" }, "binding": { "patternProperties": { "^.*$": {} }, "type": "object" }, "createdAt": { "format": "date-time", "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "limits": { "anyOf": [{ "patternProperties": { "^.*$": {} }, "type": "object" }, { "type": "null" }] }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["deploymentId", "kind", "alias", "binding", "limits", "createdAt", "updatedAt"], "type": "object" }, "Device": { "properties": { "activatedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "createdAt": { "format": "date-time", "type": "string" }, "currentContractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "currentContractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "metadata": { "patternProperties": { "^.*$": { "minLength": 1, "type": "string" } }, "type": "object" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "revokedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "state": { "anyOf": [{ "const": "registered", "type": "string" }, { "const": "activated", "type": "string" }, { "const": "revoked", "type": "string" }, { "const": "disabled", "type": "string" }] } }, "required": ["instanceId", "publicIdentityKey", "deploymentId", "state", "createdAt", "activatedAt", "revokedAt"], "type": "object" }, "DeviceActivationRecord": { "properties": { "activatedAt": { "format": "date-time", "type": "string" }, "activatedBy": { "properties": { "identity": { "properties": { "identityId": { "minLength": 1, "type": "string" }, "provider": { "minLength": 1, "type": "string" }, "subject": { "minLength": 1, "type": "string" } }, "required": ["identityId", "provider", "subject"], "type": "object" }, "participantKind": { "anyOf": [{ "const": "app", "type": "string" }, { "const": "agent", "type": "string" }] }, "userId": { "minLength": 1, "type": "string" } }, "required": ["participantKind", "userId", "identity"], "type": "object" }, "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "revokedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "state": { "anyOf": [{ "const": "activated", "type": "string" }, { "const": "revoked", "type": "string" }] } }, "required": ["instanceId", "publicIdentityKey", "deploymentId", "state", "activatedAt", "revokedAt"], "type": "object" }, "DeviceActivationReview": { "properties": { "decidedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "publicIdentityKey": { "minLength": 1, "type": "string" }, "reason": { "minLength": 1, "type": "string" }, "requestedAt": { "format": "date-time", "type": "string" }, "reviewId": { "minLength": 1, "type": "string" }, "state": { "anyOf": [{ "const": "pending", "type": "string" }, { "const": "approved", "type": "string" }, { "const": "rejected", "type": "string" }] } }, "required": ["reviewId", "instanceId", "publicIdentityKey", "deploymentId", "state", "requestedAt", "decidedAt"], "type": "object" }, "DeviceConnectInfo": { "properties": { "auth": { "properties": { "authority": { "anyOf": [{ "const": "admin_reviewed", "type": "string" }, { "const": "user_delegated", "type": "string" }] }, "iatSkewSeconds": { "type": "number" }, "mode": { "const": "device_identity", "type": "string" } }, "required": ["mode", "authority", "iatSkewSeconds"], "type": "object" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "instanceId": { "minLength": 1, "type": "string" }, "transport": { "properties": { "sentinel": { "properties": { "jwt": { "type": "string" }, "seed": { "type": "string" } }, "required": ["jwt", "seed"], "type": "object" } }, "required": ["sentinel"], "type": "object" }, "transports": { "properties": { "native": { "properties": { "natsServers": { "items": { "minLength": 1, "type": "string" }, "minItems": 1, "type": "array" } }, "required": ["natsServers"], "type": "object" }, "websocket": { "properties": { "natsServers": { "items": { "minLength": 1, "type": "string" }, "minItems": 1, "type": "array" } }, "required": ["natsServers"], "type": "object" } }, "type": "object" } }, "required": ["instanceId", "deploymentId", "contractId", "contractDigest", "transports", "transport", "auth"], "type": "object" }, "DeviceDeployment": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "reviewMode": { "anyOf": [{ "const": "none", "type": "string" }, { "const": "required", "type": "string" }] } }, "required": ["deploymentId", "disabled"], "type": "object" }, "EnvelopeBoundary": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contracts": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "required"], "type": "object" }, "type": "array" }, "resources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "required": { "type": "boolean" } }, "required": ["kind", "alias", "required"], "type": "object" }, "type": "array" }, "surfaces": { "items": { "properties": { "action": { "anyOf": [{ "const": "call", "type": "string" }, { "const": "publish", "type": "string" }, { "const": "subscribe", "type": "string" }, { "const": "read", "type": "string" }, { "const": "cancel", "type": "string" }] }, "contractId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "rpc", "type": "string" }, { "const": "operation", "type": "string" }, { "const": "event", "type": "string" }, { "const": "feed", "type": "string" }] }, "name": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "kind", "name", "action", "required"], "type": "object" }, "type": "array" } }, "required": ["contracts", "surfaces", "capabilities", "resources"], "type": "object" }, "EnvelopeExpansionRequest": { "properties": { "contract": { "type": "object" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "createdAt": { "format": "date-time", "type": "string" }, "decidedAt": { "anyOf": [{ "format": "date-time", "type": "string" }, { "type": "null" }] }, "decidedBy": { "anyOf": [{ "patternProperties": { "^.*$": {} }, "type": "object" }, { "type": "null" }] }, "decisionReason": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "delta": { "properties": { "capabilities": { "items": { "minLength": 1, "type": "string" }, "type": "array" }, "contracts": { "items": { "properties": { "contractId": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "required"], "type": "object" }, "type": "array" }, "resources": { "items": { "properties": { "alias": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "kv", "type": "string" }, { "const": "store", "type": "string" }, { "const": "jobs", "type": "string" }, { "const": "transfer", "type": "string" }] }, "required": { "type": "boolean" } }, "required": ["kind", "alias", "required"], "type": "object" }, "type": "array" }, "surfaces": { "items": { "properties": { "action": { "anyOf": [{ "const": "call", "type": "string" }, { "const": "publish", "type": "string" }, { "const": "subscribe", "type": "string" }, { "const": "read", "type": "string" }, { "const": "cancel", "type": "string" }] }, "contractId": { "minLength": 1, "type": "string" }, "kind": { "anyOf": [{ "const": "rpc", "type": "string" }, { "const": "operation", "type": "string" }, { "const": "event", "type": "string" }, { "const": "feed", "type": "string" }] }, "name": { "minLength": 1, "type": "string" }, "required": { "type": "boolean" } }, "required": ["contractId", "kind", "name", "action", "required"], "type": "object" }, "type": "array" } }, "required": ["contracts", "surfaces", "capabilities", "resources"], "type": "object" }, "deploymentId": { "minLength": 1, "type": "string" }, "requestId": { "minLength": 1, "type": "string" }, "requestedBy": { "patternProperties": { "^.*$": {} }, "type": "object" }, "requestedByKind": { "anyOf": [{ "const": "service", "type": "string" }, { "const": "device", "type": "string" }, { "const": "user", "type": "string" }, { "const": "admin", "type": "string" }, { "const": "automation", "type": "string" }] }, "state": { "anyOf": [{ "const": "pending", "type": "string" }, { "const": "approved", "type": "string" }, { "const": "rejected", "type": "string" }] } }, "required": ["requestId", "deploymentId", "requestedByKind", "requestedBy", "contractId", "contractDigest", "contract", "state", "createdAt", "decidedAt", "decidedBy", "decisionReason", "delta"], "type": "object" }, "HealthRequest": { "properties": {}, "type": "object" }, "HealthResponse": { "properties": { "checks": { "items": { "properties": { "error": { "type": "string" }, "info": { "patternProperties": { "^.*$": {} }, "type": "object" }, "latencyMs": { "type": "number" }, "name": { "type": "string" }, "status": { "anyOf": [{ "const": "ok", "type": "string" }, { "const": "failed", "type": "string" }] }, "summary": { "type": "string" } }, "required": ["name", "status", "latencyMs"], "type": "object" }, "type": "array" }, "service": { "type": "string" }, "status": { "anyOf": [{ "const": "healthy", "type": "string" }, { "const": "unhealthy", "type": "string" }, { "const": "degraded", "type": "string" }] }, "timestamp": { "format": "date-time", "type": "string" } }, "required": ["status", "service", "timestamp", "checks"], "type": "object" }, "PortalFlowState": { "anyOf": [{ "properties": { "app": { "properties": { "context": { "type": "object" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "description": { "minLength": 1, "type": "string" }, "displayName": { "minLength": 1, "type": "string" } }, "required": ["contractId", "contractDigest", "displayName", "description"], "type": "object" }, "flowId": { "minLength": 1, "type": "string" }, "portal": { "properties": { "builtIn": { "type": "boolean" }, "createdAt": { "format": "date-time", "type": "string" }, "disabled": { "type": "boolean" }, "displayName": { "minLength": 1, "type": "string" }, "entryUrl": { "anyOf": [{ "minLength": 1, "type": "string" }, { "type": "null" }] }, "portalId": { "minLength": 1, "type": "string" }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["portalId", "displayName", "entryUrl", "builtIn", "disabled", "createdAt", "updatedAt"], "type": "object" }, "providers": { "items": { "properties": { "displayName": { "minLength": 1, "type": "string" }, "id": { "minLength": 1, "type": "string" } }, "required": ["id", "displayName"], "type": "object" }, "type": "array" }, "registration": { "properties": { "federatedIdentity": { "properties": { "available": { "type": "boolean" }, "providers": { "items": { "properties": { "displayName": { "minLength": 1, "type": "string" }, "id": { "minLength": 1, "type": "string" } }, "required": ["id", "displayName"], "type": "object" }, "type": "array" } }, "required": ["available", "providers"], "type": "object" }, "localIdentity": { "properties": { "available": { "type": "boolean" } }, "required": ["available"], "type": "object" } }, "required": ["localIdentity", "federatedIdentity"], "type": "object" }, "status": { "const": "choose_provider", "type": "string" } }, "required": ["status", "flowId", "providers", "app"], "type": "object" }, { "properties": { "approval": { "properties": { "capabilities": { "patternProperties": { "^.*$": { "properties": { "consequence": { "type": "string" }, "description": { "type": "string" }, "displayName": { "type": "string" } }, "required": ["displayName", "description"], "type": "object" } }, "type": "object" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "description": { "minLength": 1, "type": "string" }, "displayName": { "minLength": 1, "type": "string" } }, "required": ["contractDigest", "contractId", "displayName", "description", "capabilities"], "type": "object" }, "flowId": { "minLength": 1, "type": "string" }, "status": { "const": "approval_required", "type": "string" }, "user": { "properties": { "email": { "minLength": 1, "type": "string" }, "id": { "minLength": 1, "type": "string" }, "image": { "minLength": 1, "type": "string" }, "name": { "minLength": 1, "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["origin", "id"], "type": "object" } }, "required": ["status", "flowId", "user", "approval"], "type": "object" }, { "properties": { "approval": { "properties": { "capabilities": { "patternProperties": { "^.*$": { "properties": { "consequence": { "type": "string" }, "description": { "type": "string" }, "displayName": { "type": "string" } }, "required": ["displayName", "description"], "type": "object" } }, "type": "object" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "description": { "minLength": 1, "type": "string" }, "displayName": { "minLength": 1, "type": "string" } }, "required": ["contractDigest", "contractId", "displayName", "description", "capabilities"], "type": "object" }, "flowId": { "minLength": 1, "type": "string" }, "returnLocation": { "minLength": 1, "type": "string" }, "status": { "const": "approval_denied", "type": "string" } }, "required": ["status", "flowId", "approval"], "type": "object" }, { "properties": { "approval": { "properties": { "capabilities": { "patternProperties": { "^.*$": { "properties": { "consequence": { "type": "string" }, "description": { "type": "string" }, "displayName": { "type": "string" } }, "required": ["displayName", "description"], "type": "object" } }, "type": "object" }, "contractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "contractId": { "minLength": 1, "type": "string" }, "description": { "minLength": 1, "type": "string" }, "displayName": { "minLength": 1, "type": "string" } }, "required": ["contractDigest", "contractId", "displayName", "description", "capabilities"], "type": "object" }, "flowId": { "minLength": 1, "type": "string" }, "missingCapabilities": { "items": { "type": "string" }, "type": "array" }, "returnLocation": { "minLength": 1, "type": "string" }, "status": { "const": "insufficient_capabilities", "type": "string" }, "user": { "properties": { "id": { "minLength": 1, "type": "string" }, "name": { "minLength": 1, "type": "string" }, "origin": { "minLength": 1, "type": "string" } }, "required": ["origin", "id"], "type": "object" }, "userCapabilities": { "items": { "type": "string" }, "type": "array" } }, "required": ["status", "flowId", "approval", "missingCapabilities", "userCapabilities"], "type": "object" }, { "properties": { "location": { "minLength": 1, "type": "string" }, "status": { "const": "redirect", "type": "string" } }, "required": ["status", "location"], "type": "object" }, { "properties": { "status": { "const": "expired", "type": "string" } }, "required": ["status"], "type": "object" }] }, "ServiceDeployment": { "properties": { "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "namespaces": { "items": { "minLength": 1, "type": "string" }, "type": "array" } }, "required": ["deploymentId", "namespaces", "disabled"], "type": "object" }, "ServiceInstance": { "properties": { "capabilities": { "items": { "type": "string" }, "type": "array" }, "createdAt": { "format": "date-time", "type": "string" }, "currentContractDigest": { "pattern": "^[A-Za-z0-9_-]+$", "type": "string" }, "currentContractId": { "minLength": 1, "type": "string" }, "deploymentId": { "minLength": 1, "type": "string" }, "disabled": { "type": "boolean" }, "instanceId": { "minLength": 1, "type": "string" }, "instanceKey": { "minLength": 1, "type": "string" }, "resourceBindings": { "properties": { "jobs": { "properties": { "namespace": { "minLength": 1, "type": "string" }, "queues": { "patternProperties": { "^.*$": { "properties": { "ackWaitMs": { "minimum": 1, "type": "integer" }, "backoffMs": { "items": { "minimum": 0, "type": "integer" }, "type": "array" }, "concurrency": { "minimum": 1, "type": "integer" }, "consumerName": { "minLength": 1, "type": "string" }, "defaultDeadlineMs": { "minimum": 1, "type": "integer" }, "dlq": { "type": "boolean" }, "logs": { "type": "boolean" }, "maxDeliver": { "minimum": 1, "type": "integer" }, "payload": { "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "progress": { "type": "boolean" }, "publishPrefix": { "minLength": 1, "type": "string" }, "queueType": { "minLength": 1, "type": "string" }, "result": { "properties": { "schema": { "minLength": 1, "type": "string" } }, "required": ["schema"], "type": "object" }, "workSubject": { "minLength": 1, "type": "string" } }, "required": ["queueType", "publishPrefix", "workSubject", "consumerName", "payload", "maxDeliver", "backoffMs", "ackWaitMs", "progress", "logs", "dlq", "concurrency"], "type": "object" } }, "type": "object" }, "workStream": { "minLength": 1, "type": "string" } }, "required": ["namespace", "queues"], "type": "object" }, "kv": { "patternProperties": { "^.*$": { "properties": { "bucket": { "minLength": 1, "type": "string" }, "history": { "minimum": 1, "type": "integer" }, "maxValueBytes": { "minimum": 1, "type": "integer" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["bucket", "history", "ttlMs"], "type": "object" } }, "type": "object" }, "store": { "patternProperties": { "^.*$": { "properties": { "maxObjectBytes": { "minimum": 1, "type": "integer" }, "maxTotalBytes": { "minimum": 1, "type": "integer" }, "name": { "minLength": 1, "type": "string" }, "ttlMs": { "minimum": 0, "type": "integer" } }, "required": ["name", "ttlMs"], "type": "object" } }, "type": "object" } }, "type": "object" } }, "required": ["instanceId", "deploymentId", "instanceKey", "disabled", "capabilities", "createdAt"], "type": "object" } }, "uses": { "required": { "health": { "contract": "trellis.health@v1", "events": { "publish": ["Health.Heartbeat"] } } } } };
6
6
  function assertSelectedKeysExist(kind, keys, api) {
7
7
  if (!keys) {
8
8
  return;
@@ -18,6 +18,7 @@ function assertValidUseSpec(spec) {
18
18
  assertSelectedKeysExist("operations", spec.operations?.call, API.owned.operations);
19
19
  assertSelectedKeysExist("events", spec.events?.publish, API.owned.events);
20
20
  assertSelectedKeysExist("events", spec.events?.subscribe, API.owned.events);
21
+ assertSelectedKeysExist("feeds", spec.feeds?.subscribe, API.owned.feeds);
21
22
  }
22
23
  export const sdk = {
23
24
  CONTRACT_ID,
@@ -38,6 +39,7 @@ export const sdk = {
38
39
  },
39
40
  }
40
41
  : {}),
42
+ ...(spec.feeds?.subscribe ? { feeds: { subscribe: [...spec.feeds.subscribe] } } : {}),
41
43
  };
42
44
  Object.defineProperty(dependencyUse, CONTRACT_MODULE_METADATA, {
43
45
  value: sdk,