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

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 (693) hide show
  1. package/README.md +1 -1
  2. package/bin/trellis-generate.js +0 -0
  3. package/esm/auth/browser/login.d.ts.map +1 -1
  4. package/esm/auth/browser/login.js +46 -3
  5. package/esm/auth/browser/portal.d.ts.map +1 -1
  6. package/esm/auth/browser/portal.js +5 -1
  7. package/esm/auth/browser/session.d.ts +18 -7
  8. package/esm/auth/browser/session.d.ts.map +1 -1
  9. package/esm/auth/browser/session.js +47 -11
  10. package/esm/auth/browser/storage.d.ts +6 -1
  11. package/esm/auth/browser/storage.d.ts.map +1 -1
  12. package/esm/auth/browser/storage.js +15 -3
  13. package/esm/auth/browser.d.ts +2 -2
  14. package/esm/auth/browser.d.ts.map +1 -1
  15. package/esm/auth/browser.js +1 -1
  16. package/esm/auth/device_activation.d.ts +36 -33
  17. package/esm/auth/device_activation.d.ts.map +1 -1
  18. package/esm/auth/device_activation.js +26 -22
  19. package/esm/auth/mod.d.ts +4 -4
  20. package/esm/auth/mod.d.ts.map +1 -1
  21. package/esm/auth/mod.js +2 -2
  22. package/esm/auth/proof.d.ts +3 -1
  23. package/esm/auth/proof.d.ts.map +1 -1
  24. package/esm/auth/proof.js +21 -15
  25. package/esm/auth/protocol.d.ts +2457 -941
  26. package/esm/auth/protocol.d.ts.map +1 -1
  27. package/esm/auth/protocol.js +747 -375
  28. package/esm/auth/schemas.d.ts +25 -4
  29. package/esm/auth/schemas.d.ts.map +1 -1
  30. package/esm/auth/schemas.js +14 -4
  31. package/esm/auth/session_auth.d.ts +1 -1
  32. package/esm/auth/session_auth.d.ts.map +1 -1
  33. package/esm/auth/session_auth.js +7 -1
  34. package/esm/client_connect.d.ts +2 -0
  35. package/esm/client_connect.d.ts.map +1 -1
  36. package/esm/client_connect.js +76 -15
  37. package/esm/contract.d.ts +3 -0
  38. package/esm/contract.d.ts.map +1 -1
  39. package/esm/contract_support/mod.d.ts +422 -43
  40. package/esm/contract_support/mod.d.ts.map +1 -1
  41. package/esm/contract_support/mod.js +734 -33
  42. package/esm/contract_support/protocol.d.ts +20 -5
  43. package/esm/contract_support/protocol.d.ts.map +1 -1
  44. package/esm/contract_support/protocol.js +18 -10
  45. package/esm/contract_support/runtime.d.ts +11 -0
  46. package/esm/contract_support/runtime.d.ts.map +1 -1
  47. package/esm/contract_support/schema_pointers.d.ts.map +1 -1
  48. package/esm/contract_support/schema_pointers.js +32 -14
  49. package/esm/device.d.ts +2 -0
  50. package/esm/device.d.ts.map +1 -1
  51. package/esm/device.js +3 -0
  52. package/esm/errors/AuthError.d.ts +2 -1
  53. package/esm/errors/AuthError.d.ts.map +1 -1
  54. package/esm/errors/AuthError.js +8 -3
  55. package/esm/errors/index.d.ts +4 -4
  56. package/esm/errors/index.d.ts.map +1 -1
  57. package/esm/errors/index.js +1 -0
  58. package/esm/generated-sdk/auth/api.d.ts +27 -9
  59. package/esm/generated-sdk/auth/api.d.ts.map +1 -1
  60. package/esm/generated-sdk/auth/api.js +16 -590
  61. package/esm/generated-sdk/auth/client.d.ts +91 -85
  62. package/esm/generated-sdk/auth/client.d.ts.map +1 -1
  63. package/esm/generated-sdk/auth/contract.d.ts +1 -1
  64. package/esm/generated-sdk/auth/contract.d.ts.map +1 -1
  65. package/esm/generated-sdk/auth/contract.js +4 -2
  66. package/esm/generated-sdk/auth/mod.d.ts +1 -0
  67. package/esm/generated-sdk/auth/mod.d.ts.map +1 -1
  68. package/esm/generated-sdk/auth/owned_api.d.ts +3 -0
  69. package/esm/generated-sdk/auth/owned_api.d.ts.map +1 -0
  70. package/esm/generated-sdk/auth/owned_api.js +594 -0
  71. package/esm/generated-sdk/auth/schemas.d.ts +9959 -5160
  72. package/esm/generated-sdk/auth/schemas.d.ts.map +1 -1
  73. package/esm/generated-sdk/auth/schemas.js +136 -137
  74. package/esm/generated-sdk/auth/types.d.ts +2418 -1557
  75. package/esm/generated-sdk/auth/types.d.ts.map +1 -1
  76. package/esm/generated-sdk/auth/types.js +1 -1
  77. package/esm/generated-sdk/health/api.d.ts +24 -9
  78. package/esm/generated-sdk/health/api.d.ts.map +1 -1
  79. package/esm/generated-sdk/health/api.js +12 -20
  80. package/esm/generated-sdk/health/client.d.ts +2 -1
  81. package/esm/generated-sdk/health/client.d.ts.map +1 -1
  82. package/esm/generated-sdk/health/contract.d.ts.map +1 -1
  83. package/esm/generated-sdk/health/contract.js +2 -0
  84. package/esm/generated-sdk/health/owned_api.d.ts +3 -0
  85. package/esm/generated-sdk/health/owned_api.d.ts.map +1 -0
  86. package/esm/generated-sdk/health/owned_api.js +16 -0
  87. package/esm/generated-sdk/health/types.d.ts +2 -0
  88. package/esm/generated-sdk/health/types.d.ts.map +1 -1
  89. package/esm/generated-sdk/jobs/api.d.ts +33 -9
  90. package/esm/generated-sdk/jobs/api.d.ts.map +1 -1
  91. package/esm/generated-sdk/jobs/api.js +22 -87
  92. package/esm/generated-sdk/jobs/client.d.ts +9 -2
  93. package/esm/generated-sdk/jobs/client.d.ts.map +1 -1
  94. package/esm/generated-sdk/jobs/contract.d.ts +1 -1
  95. package/esm/generated-sdk/jobs/contract.d.ts.map +1 -1
  96. package/esm/generated-sdk/jobs/contract.js +4 -2
  97. package/esm/generated-sdk/jobs/owned_api.d.ts +3 -0
  98. package/esm/generated-sdk/jobs/owned_api.d.ts.map +1 -0
  99. package/esm/generated-sdk/jobs/owned_api.js +118 -0
  100. package/esm/generated-sdk/jobs/schemas.d.ts +336 -123
  101. package/esm/generated-sdk/jobs/schemas.d.ts.map +1 -1
  102. package/esm/generated-sdk/jobs/schemas.js +17 -15
  103. package/esm/generated-sdk/jobs/types.d.ts +144 -34
  104. package/esm/generated-sdk/jobs/types.d.ts.map +1 -1
  105. package/esm/generated-sdk/jobs/types.js +36 -1
  106. package/esm/generated-sdk/state/api.d.ts +27 -9
  107. package/esm/generated-sdk/state/api.d.ts.map +1 -1
  108. package/esm/generated-sdk/state/api.js +16 -71
  109. package/esm/generated-sdk/state/client.d.ts +4 -2
  110. package/esm/generated-sdk/state/client.d.ts.map +1 -1
  111. package/esm/generated-sdk/state/contract.d.ts +1 -1
  112. package/esm/generated-sdk/state/contract.d.ts.map +1 -1
  113. package/esm/generated-sdk/state/contract.js +4 -2
  114. package/esm/generated-sdk/state/owned_api.d.ts +3 -0
  115. package/esm/generated-sdk/state/owned_api.d.ts.map +1 -0
  116. package/esm/generated-sdk/state/owned_api.js +66 -0
  117. package/esm/generated-sdk/state/schemas.d.ts +264 -284
  118. package/esm/generated-sdk/state/schemas.d.ts.map +1 -1
  119. package/esm/generated-sdk/state/schemas.js +6 -6
  120. package/esm/generated-sdk/state/types.d.ts +24 -23
  121. package/esm/generated-sdk/state/types.d.ts.map +1 -1
  122. package/esm/generated-sdk/state/types.js +1 -1
  123. package/esm/generated-sdk/trellis-core/api.d.ts +27 -9
  124. package/esm/generated-sdk/trellis-core/api.d.ts.map +1 -1
  125. package/esm/generated-sdk/trellis-core/api.js +16 -39
  126. package/esm/generated-sdk/trellis-core/client.d.ts +5 -2
  127. package/esm/generated-sdk/trellis-core/client.d.ts.map +1 -1
  128. package/esm/generated-sdk/trellis-core/contract.d.ts +1 -1
  129. package/esm/generated-sdk/trellis-core/contract.d.ts.map +1 -1
  130. package/esm/generated-sdk/trellis-core/contract.js +4 -2
  131. package/esm/generated-sdk/trellis-core/owned_api.d.ts +3 -0
  132. package/esm/generated-sdk/trellis-core/owned_api.d.ts.map +1 -0
  133. package/esm/generated-sdk/trellis-core/owned_api.js +42 -0
  134. package/esm/generated-sdk/trellis-core/schemas.d.ts +259 -11
  135. package/esm/generated-sdk/trellis-core/schemas.d.ts.map +1 -1
  136. package/esm/generated-sdk/trellis-core/schemas.js +5 -3
  137. package/esm/generated-sdk/trellis-core/types.d.ts +56 -1
  138. package/esm/generated-sdk/trellis-core/types.d.ts.map +1 -1
  139. package/esm/generated-sdk/trellis-core/types.js +1 -1
  140. package/esm/helpers.d.ts.map +1 -1
  141. package/esm/index.d.ts +4 -3
  142. package/esm/index.d.ts.map +1 -1
  143. package/esm/index.js +1 -0
  144. package/esm/jobs.d.ts +10 -1
  145. package/esm/jobs.d.ts.map +1 -1
  146. package/esm/jobs.js +16 -1
  147. package/esm/kv.d.ts.map +1 -1
  148. package/esm/kv.js +10 -4
  149. package/esm/models/auth/rpc/Logout.d.ts +4 -4
  150. package/esm/models/auth/rpc/Logout.d.ts.map +1 -1
  151. package/esm/models/auth/rpc/Logout.js +2 -2
  152. package/esm/models/trellis/Page.d.ts +2 -0
  153. package/esm/models/trellis/Page.d.ts.map +1 -0
  154. package/esm/models/trellis/Page.js +1 -0
  155. package/esm/models/trellis/State.d.ts +1 -0
  156. package/esm/models/trellis/State.d.ts.map +1 -1
  157. package/esm/models/trellis/State.js +1 -0
  158. package/esm/models/trellis/rpc/StateList.d.ts +9 -12
  159. package/esm/models/trellis/rpc/StateList.d.ts.map +1 -1
  160. package/esm/models/trellis/rpc/StateList.js +16 -18
  161. package/esm/npm/src/auth/browser/login.d.ts.map +1 -1
  162. package/esm/npm/src/auth/browser/login.js +46 -3
  163. package/esm/npm/src/auth/browser/portal.d.ts.map +1 -1
  164. package/esm/npm/src/auth/browser/portal.js +5 -1
  165. package/esm/npm/src/auth/browser/session.d.ts +18 -7
  166. package/esm/npm/src/auth/browser/session.d.ts.map +1 -1
  167. package/esm/npm/src/auth/browser/session.js +47 -11
  168. package/esm/npm/src/auth/browser/storage.d.ts +6 -1
  169. package/esm/npm/src/auth/browser/storage.d.ts.map +1 -1
  170. package/esm/npm/src/auth/browser/storage.js +15 -3
  171. package/esm/npm/src/auth/browser.d.ts +2 -2
  172. package/esm/npm/src/auth/browser.d.ts.map +1 -1
  173. package/esm/npm/src/auth/browser.js +1 -1
  174. package/esm/npm/src/auth/device_activation.d.ts +36 -33
  175. package/esm/npm/src/auth/device_activation.d.ts.map +1 -1
  176. package/esm/npm/src/auth/device_activation.js +26 -22
  177. package/esm/npm/src/auth/mod.d.ts +4 -4
  178. package/esm/npm/src/auth/mod.d.ts.map +1 -1
  179. package/esm/npm/src/auth/mod.js +2 -2
  180. package/esm/npm/src/auth/proof.d.ts +3 -1
  181. package/esm/npm/src/auth/proof.d.ts.map +1 -1
  182. package/esm/npm/src/auth/proof.js +21 -15
  183. package/esm/npm/src/auth/protocol.d.ts +2457 -941
  184. package/esm/npm/src/auth/protocol.d.ts.map +1 -1
  185. package/esm/npm/src/auth/protocol.js +747 -375
  186. package/esm/npm/src/auth/schemas.d.ts +25 -4
  187. package/esm/npm/src/auth/schemas.d.ts.map +1 -1
  188. package/esm/npm/src/auth/schemas.js +14 -4
  189. package/esm/npm/src/auth/session_auth.d.ts +1 -1
  190. package/esm/npm/src/auth/session_auth.d.ts.map +1 -1
  191. package/esm/npm/src/auth/session_auth.js +7 -1
  192. package/esm/npm/src/client_connect.d.ts +2 -0
  193. package/esm/npm/src/client_connect.d.ts.map +1 -1
  194. package/esm/npm/src/client_connect.js +76 -15
  195. package/esm/npm/src/contract.d.ts +3 -0
  196. package/esm/npm/src/contract.d.ts.map +1 -1
  197. package/esm/npm/src/contract_support/mod.d.ts +422 -43
  198. package/esm/npm/src/contract_support/mod.d.ts.map +1 -1
  199. package/esm/npm/src/contract_support/mod.js +734 -33
  200. package/esm/npm/src/contract_support/protocol.d.ts +20 -5
  201. package/esm/npm/src/contract_support/protocol.d.ts.map +1 -1
  202. package/esm/npm/src/contract_support/protocol.js +18 -10
  203. package/esm/npm/src/contract_support/runtime.d.ts +11 -0
  204. package/esm/npm/src/contract_support/runtime.d.ts.map +1 -1
  205. package/esm/npm/src/contract_support/schema_pointers.d.ts.map +1 -1
  206. package/esm/npm/src/contract_support/schema_pointers.js +32 -14
  207. package/esm/npm/src/device/deno.d.ts.map +1 -1
  208. package/esm/npm/src/device/deno.js +6 -0
  209. package/esm/npm/src/device.d.ts +2 -0
  210. package/esm/npm/src/device.d.ts.map +1 -1
  211. package/esm/npm/src/device.js +3 -0
  212. package/esm/npm/src/errors/AuthError.d.ts +2 -1
  213. package/esm/npm/src/errors/AuthError.d.ts.map +1 -1
  214. package/esm/npm/src/errors/AuthError.js +8 -3
  215. package/esm/npm/src/errors/index.d.ts +4 -4
  216. package/esm/npm/src/errors/index.d.ts.map +1 -1
  217. package/esm/npm/src/errors/index.js +1 -0
  218. package/esm/npm/src/generate.js +39 -26
  219. package/esm/npm/src/helpers.d.ts.map +1 -1
  220. package/esm/npm/src/index.d.ts +4 -3
  221. package/esm/npm/src/index.d.ts.map +1 -1
  222. package/esm/npm/src/index.js +1 -0
  223. package/esm/npm/src/jobs.d.ts +10 -1
  224. package/esm/npm/src/jobs.d.ts.map +1 -1
  225. package/esm/npm/src/jobs.js +16 -1
  226. package/esm/npm/src/kv.d.ts.map +1 -1
  227. package/esm/npm/src/kv.js +10 -4
  228. package/esm/npm/src/models/auth/rpc/Logout.d.ts +4 -4
  229. package/esm/npm/src/models/auth/rpc/Logout.d.ts.map +1 -1
  230. package/esm/npm/src/models/auth/rpc/Logout.js +2 -2
  231. package/esm/npm/src/models/trellis/Page.d.ts +2 -0
  232. package/esm/npm/src/models/trellis/Page.d.ts.map +1 -0
  233. package/esm/npm/src/models/trellis/Page.js +1 -0
  234. package/esm/npm/src/models/trellis/State.d.ts +1 -0
  235. package/esm/npm/src/models/trellis/State.d.ts.map +1 -1
  236. package/esm/npm/src/models/trellis/State.js +1 -0
  237. package/esm/npm/src/models/trellis/rpc/StateList.d.ts +9 -12
  238. package/esm/npm/src/models/trellis/rpc/StateList.d.ts.map +1 -1
  239. package/esm/npm/src/models/trellis/rpc/StateList.js +16 -18
  240. package/esm/npm/src/operations.d.ts +16 -7
  241. package/esm/npm/src/operations.d.ts.map +1 -1
  242. package/esm/npm/src/operations.js +84 -19
  243. package/esm/npm/src/runtime_transport.d.ts +2 -0
  244. package/esm/npm/src/runtime_transport.d.ts.map +1 -1
  245. package/esm/npm/src/runtime_transport.js +1 -0
  246. package/esm/npm/src/server/internal_jobs/active-job.d.ts +2 -1
  247. package/esm/npm/src/server/internal_jobs/active-job.d.ts.map +1 -1
  248. package/esm/npm/src/server/internal_jobs/active-job.js +3 -0
  249. package/esm/npm/src/server/internal_jobs/job-manager.d.ts +4 -1
  250. package/esm/npm/src/server/internal_jobs/job-manager.d.ts.map +1 -1
  251. package/esm/npm/src/server/internal_jobs/job-manager.js +61 -1
  252. package/esm/npm/src/server/internal_jobs/projection.js +1 -0
  253. package/esm/npm/src/server/internal_jobs/runtime-worker.d.ts +13 -1
  254. package/esm/npm/src/server/internal_jobs/runtime-worker.d.ts.map +1 -1
  255. package/esm/npm/src/server/internal_jobs/runtime-worker.js +73 -13
  256. package/esm/npm/src/server/internal_jobs/types.d.ts +19 -0
  257. package/esm/npm/src/server/internal_jobs/types.d.ts.map +1 -1
  258. package/esm/npm/src/server/internal_jobs/types.js +10 -0
  259. package/esm/npm/src/server/runtime.d.ts +1 -0
  260. package/esm/npm/src/server/runtime.d.ts.map +1 -1
  261. package/esm/npm/src/server/service.d.ts +10 -1
  262. package/esm/npm/src/server/service.d.ts.map +1 -1
  263. package/esm/npm/src/server/service.js +210 -64
  264. package/esm/npm/src/server/transfer.d.ts.map +1 -1
  265. package/esm/npm/src/server/transfer.js +4 -0
  266. package/esm/npm/src/server.d.ts.map +1 -1
  267. package/esm/npm/src/server.js +337 -34
  268. package/esm/npm/src/store.d.ts +8 -1
  269. package/esm/npm/src/store.d.ts.map +1 -1
  270. package/esm/npm/src/store.js +46 -8
  271. package/esm/npm/src/transfer.d.ts +3 -0
  272. package/esm/npm/src/transfer.d.ts.map +1 -1
  273. package/esm/npm/src/transfer.js +20 -30
  274. package/esm/npm/src/trellis.d.ts +85 -22
  275. package/esm/npm/src/trellis.d.ts.map +1 -1
  276. package/esm/npm/src/trellis.js +525 -61
  277. package/esm/operations.d.ts +16 -7
  278. package/esm/operations.d.ts.map +1 -1
  279. package/esm/operations.js +84 -19
  280. package/esm/runtime_transport.d.ts +2 -0
  281. package/esm/runtime_transport.d.ts.map +1 -1
  282. package/esm/runtime_transport.js +1 -0
  283. package/esm/store.d.ts +8 -1
  284. package/esm/store.d.ts.map +1 -1
  285. package/esm/store.js +46 -8
  286. package/esm/transfer.d.ts +3 -0
  287. package/esm/transfer.d.ts.map +1 -1
  288. package/esm/transfer.js +20 -30
  289. package/esm/trellis.d.ts +85 -22
  290. package/esm/trellis.d.ts.map +1 -1
  291. package/esm/trellis.js +525 -61
  292. package/package.json +6 -3
  293. package/script/auth/browser/login.d.ts.map +1 -1
  294. package/script/auth/browser/login.js +46 -3
  295. package/script/auth/browser/portal.d.ts.map +1 -1
  296. package/script/auth/browser/portal.js +5 -1
  297. package/script/auth/browser/session.d.ts +18 -7
  298. package/script/auth/browser/session.d.ts.map +1 -1
  299. package/script/auth/browser/session.js +47 -11
  300. package/script/auth/browser/storage.d.ts +6 -1
  301. package/script/auth/browser/storage.d.ts.map +1 -1
  302. package/script/auth/browser/storage.js +15 -3
  303. package/script/auth/browser.d.ts +2 -2
  304. package/script/auth/browser.d.ts.map +1 -1
  305. package/script/auth/browser.js +2 -1
  306. package/script/auth/device_activation.d.ts +36 -33
  307. package/script/auth/device_activation.d.ts.map +1 -1
  308. package/script/auth/device_activation.js +25 -21
  309. package/script/auth/mod.d.ts +4 -4
  310. package/script/auth/mod.d.ts.map +1 -1
  311. package/script/auth/mod.js +132 -137
  312. package/script/auth/proof.d.ts +3 -1
  313. package/script/auth/proof.d.ts.map +1 -1
  314. package/script/auth/proof.js +21 -15
  315. package/script/auth/protocol.d.ts +2457 -941
  316. package/script/auth/protocol.d.ts.map +1 -1
  317. package/script/auth/protocol.js +749 -377
  318. package/script/auth/schemas.d.ts +25 -4
  319. package/script/auth/schemas.d.ts.map +1 -1
  320. package/script/auth/schemas.js +16 -5
  321. package/script/auth/session_auth.d.ts +1 -1
  322. package/script/auth/session_auth.d.ts.map +1 -1
  323. package/script/auth/session_auth.js +7 -1
  324. package/script/client_connect.d.ts +2 -0
  325. package/script/client_connect.d.ts.map +1 -1
  326. package/script/client_connect.js +76 -15
  327. package/script/contract.d.ts +3 -0
  328. package/script/contract.d.ts.map +1 -1
  329. package/script/contract_support/mod.d.ts +422 -43
  330. package/script/contract_support/mod.d.ts.map +1 -1
  331. package/script/contract_support/mod.js +757 -51
  332. package/script/contract_support/protocol.d.ts +20 -5
  333. package/script/contract_support/protocol.d.ts.map +1 -1
  334. package/script/contract_support/protocol.js +20 -11
  335. package/script/contract_support/runtime.d.ts +11 -0
  336. package/script/contract_support/runtime.d.ts.map +1 -1
  337. package/script/contract_support/schema_pointers.d.ts.map +1 -1
  338. package/script/contract_support/schema_pointers.js +32 -14
  339. package/script/device.d.ts +2 -0
  340. package/script/device.d.ts.map +1 -1
  341. package/script/device.js +3 -0
  342. package/script/errors/AuthError.d.ts +2 -1
  343. package/script/errors/AuthError.d.ts.map +1 -1
  344. package/script/errors/AuthError.js +8 -3
  345. package/script/errors/index.d.ts +4 -4
  346. package/script/errors/index.d.ts.map +1 -1
  347. package/script/errors/index.js +1 -0
  348. package/script/generated-sdk/auth/api.d.ts +27 -9
  349. package/script/generated-sdk/auth/api.d.ts.map +1 -1
  350. package/script/generated-sdk/auth/api.js +17 -591
  351. package/script/generated-sdk/auth/client.d.ts +91 -85
  352. package/script/generated-sdk/auth/client.d.ts.map +1 -1
  353. package/script/generated-sdk/auth/contract.d.ts +1 -1
  354. package/script/generated-sdk/auth/contract.d.ts.map +1 -1
  355. package/script/generated-sdk/auth/contract.js +4 -2
  356. package/script/generated-sdk/auth/mod.d.ts +1 -0
  357. package/script/generated-sdk/auth/mod.d.ts.map +1 -1
  358. package/script/generated-sdk/auth/owned_api.d.ts +3 -0
  359. package/script/generated-sdk/auth/owned_api.d.ts.map +1 -0
  360. package/script/generated-sdk/auth/owned_api.js +597 -0
  361. package/script/generated-sdk/auth/schemas.d.ts +9959 -5160
  362. package/script/generated-sdk/auth/schemas.d.ts.map +1 -1
  363. package/script/generated-sdk/auth/schemas.js +139 -140
  364. package/script/generated-sdk/auth/types.d.ts +2418 -1557
  365. package/script/generated-sdk/auth/types.d.ts.map +1 -1
  366. package/script/generated-sdk/auth/types.js +1 -1
  367. package/script/generated-sdk/health/api.d.ts +24 -9
  368. package/script/generated-sdk/health/api.d.ts.map +1 -1
  369. package/script/generated-sdk/health/api.js +13 -21
  370. package/script/generated-sdk/health/client.d.ts +2 -1
  371. package/script/generated-sdk/health/client.d.ts.map +1 -1
  372. package/script/generated-sdk/health/contract.d.ts.map +1 -1
  373. package/script/generated-sdk/health/contract.js +2 -0
  374. package/script/generated-sdk/health/owned_api.d.ts +3 -0
  375. package/script/generated-sdk/health/owned_api.d.ts.map +1 -0
  376. package/script/generated-sdk/health/owned_api.js +19 -0
  377. package/script/generated-sdk/health/types.d.ts +2 -0
  378. package/script/generated-sdk/health/types.d.ts.map +1 -1
  379. package/script/generated-sdk/jobs/api.d.ts +33 -9
  380. package/script/generated-sdk/jobs/api.d.ts.map +1 -1
  381. package/script/generated-sdk/jobs/api.js +23 -88
  382. package/script/generated-sdk/jobs/client.d.ts +9 -2
  383. package/script/generated-sdk/jobs/client.d.ts.map +1 -1
  384. package/script/generated-sdk/jobs/contract.d.ts +1 -1
  385. package/script/generated-sdk/jobs/contract.d.ts.map +1 -1
  386. package/script/generated-sdk/jobs/contract.js +4 -2
  387. package/script/generated-sdk/jobs/owned_api.d.ts +3 -0
  388. package/script/generated-sdk/jobs/owned_api.d.ts.map +1 -0
  389. package/script/generated-sdk/jobs/owned_api.js +154 -0
  390. package/script/generated-sdk/jobs/schemas.d.ts +336 -123
  391. package/script/generated-sdk/jobs/schemas.d.ts.map +1 -1
  392. package/script/generated-sdk/jobs/schemas.js +18 -16
  393. package/script/generated-sdk/jobs/types.d.ts +144 -34
  394. package/script/generated-sdk/jobs/types.d.ts.map +1 -1
  395. package/script/generated-sdk/jobs/types.js +38 -2
  396. package/script/generated-sdk/state/api.d.ts +27 -9
  397. package/script/generated-sdk/state/api.d.ts.map +1 -1
  398. package/script/generated-sdk/state/api.js +17 -72
  399. package/script/generated-sdk/state/client.d.ts +4 -2
  400. package/script/generated-sdk/state/client.d.ts.map +1 -1
  401. package/script/generated-sdk/state/contract.d.ts +1 -1
  402. package/script/generated-sdk/state/contract.d.ts.map +1 -1
  403. package/script/generated-sdk/state/contract.js +4 -2
  404. package/script/generated-sdk/state/owned_api.d.ts +3 -0
  405. package/script/generated-sdk/state/owned_api.d.ts.map +1 -0
  406. package/script/generated-sdk/state/owned_api.js +69 -0
  407. package/script/generated-sdk/state/schemas.d.ts +264 -284
  408. package/script/generated-sdk/state/schemas.d.ts.map +1 -1
  409. package/script/generated-sdk/state/schemas.js +6 -6
  410. package/script/generated-sdk/state/types.d.ts +24 -23
  411. package/script/generated-sdk/state/types.d.ts.map +1 -1
  412. package/script/generated-sdk/state/types.js +1 -1
  413. package/script/generated-sdk/trellis-core/api.d.ts +27 -9
  414. package/script/generated-sdk/trellis-core/api.d.ts.map +1 -1
  415. package/script/generated-sdk/trellis-core/api.js +17 -40
  416. package/script/generated-sdk/trellis-core/client.d.ts +5 -2
  417. package/script/generated-sdk/trellis-core/client.d.ts.map +1 -1
  418. package/script/generated-sdk/trellis-core/contract.d.ts +1 -1
  419. package/script/generated-sdk/trellis-core/contract.d.ts.map +1 -1
  420. package/script/generated-sdk/trellis-core/contract.js +4 -2
  421. package/script/generated-sdk/trellis-core/owned_api.d.ts +3 -0
  422. package/script/generated-sdk/trellis-core/owned_api.d.ts.map +1 -0
  423. package/script/generated-sdk/trellis-core/owned_api.js +45 -0
  424. package/script/generated-sdk/trellis-core/schemas.d.ts +259 -11
  425. package/script/generated-sdk/trellis-core/schemas.d.ts.map +1 -1
  426. package/script/generated-sdk/trellis-core/schemas.js +6 -4
  427. package/script/generated-sdk/trellis-core/types.d.ts +56 -1
  428. package/script/generated-sdk/trellis-core/types.d.ts.map +1 -1
  429. package/script/generated-sdk/trellis-core/types.js +1 -1
  430. package/script/helpers.d.ts.map +1 -1
  431. package/script/index.d.ts +4 -3
  432. package/script/index.d.ts.map +1 -1
  433. package/script/index.js +5 -2
  434. package/script/jobs.d.ts +10 -1
  435. package/script/jobs.d.ts.map +1 -1
  436. package/script/jobs.js +17 -2
  437. package/script/kv.d.ts.map +1 -1
  438. package/script/kv.js +10 -4
  439. package/script/models/auth/rpc/Logout.d.ts +4 -4
  440. package/script/models/auth/rpc/Logout.d.ts.map +1 -1
  441. package/script/models/auth/rpc/Logout.js +3 -3
  442. package/script/models/trellis/Page.d.ts +2 -0
  443. package/script/models/trellis/Page.d.ts.map +1 -0
  444. package/script/models/trellis/Page.js +6 -0
  445. package/script/models/trellis/State.d.ts +1 -0
  446. package/script/models/trellis/State.d.ts.map +1 -1
  447. package/script/models/trellis/State.js +1 -0
  448. package/script/models/trellis/rpc/StateList.d.ts +9 -12
  449. package/script/models/trellis/rpc/StateList.d.ts.map +1 -1
  450. package/script/models/trellis/rpc/StateList.js +16 -18
  451. package/script/npm/src/auth/browser/login.d.ts.map +1 -1
  452. package/script/npm/src/auth/browser/login.js +46 -3
  453. package/script/npm/src/auth/browser/portal.d.ts.map +1 -1
  454. package/script/npm/src/auth/browser/portal.js +5 -1
  455. package/script/npm/src/auth/browser/session.d.ts +18 -7
  456. package/script/npm/src/auth/browser/session.d.ts.map +1 -1
  457. package/script/npm/src/auth/browser/session.js +47 -11
  458. package/script/npm/src/auth/browser/storage.d.ts +6 -1
  459. package/script/npm/src/auth/browser/storage.d.ts.map +1 -1
  460. package/script/npm/src/auth/browser/storage.js +15 -3
  461. package/script/npm/src/auth/browser.d.ts +2 -2
  462. package/script/npm/src/auth/browser.d.ts.map +1 -1
  463. package/script/npm/src/auth/browser.js +2 -1
  464. package/script/npm/src/auth/device_activation.d.ts +36 -33
  465. package/script/npm/src/auth/device_activation.d.ts.map +1 -1
  466. package/script/npm/src/auth/device_activation.js +25 -21
  467. package/script/npm/src/auth/mod.d.ts +4 -4
  468. package/script/npm/src/auth/mod.d.ts.map +1 -1
  469. package/script/npm/src/auth/mod.js +132 -137
  470. package/script/npm/src/auth/proof.d.ts +3 -1
  471. package/script/npm/src/auth/proof.d.ts.map +1 -1
  472. package/script/npm/src/auth/proof.js +21 -15
  473. package/script/npm/src/auth/protocol.d.ts +2457 -941
  474. package/script/npm/src/auth/protocol.d.ts.map +1 -1
  475. package/script/npm/src/auth/protocol.js +749 -377
  476. package/script/npm/src/auth/schemas.d.ts +25 -4
  477. package/script/npm/src/auth/schemas.d.ts.map +1 -1
  478. package/script/npm/src/auth/schemas.js +16 -5
  479. package/script/npm/src/auth/session_auth.d.ts +1 -1
  480. package/script/npm/src/auth/session_auth.d.ts.map +1 -1
  481. package/script/npm/src/auth/session_auth.js +7 -1
  482. package/script/npm/src/client_connect.d.ts +2 -0
  483. package/script/npm/src/client_connect.d.ts.map +1 -1
  484. package/script/npm/src/client_connect.js +76 -15
  485. package/script/npm/src/contract.d.ts +3 -0
  486. package/script/npm/src/contract.d.ts.map +1 -1
  487. package/script/npm/src/contract_support/mod.d.ts +422 -43
  488. package/script/npm/src/contract_support/mod.d.ts.map +1 -1
  489. package/script/npm/src/contract_support/mod.js +757 -51
  490. package/script/npm/src/contract_support/protocol.d.ts +20 -5
  491. package/script/npm/src/contract_support/protocol.d.ts.map +1 -1
  492. package/script/npm/src/contract_support/protocol.js +20 -11
  493. package/script/npm/src/contract_support/runtime.d.ts +11 -0
  494. package/script/npm/src/contract_support/runtime.d.ts.map +1 -1
  495. package/script/npm/src/contract_support/schema_pointers.d.ts.map +1 -1
  496. package/script/npm/src/contract_support/schema_pointers.js +32 -14
  497. package/script/npm/src/device/deno.d.ts.map +1 -1
  498. package/script/npm/src/device/deno.js +6 -0
  499. package/script/npm/src/device.d.ts +2 -0
  500. package/script/npm/src/device.d.ts.map +1 -1
  501. package/script/npm/src/device.js +3 -0
  502. package/script/npm/src/errors/AuthError.d.ts +2 -1
  503. package/script/npm/src/errors/AuthError.d.ts.map +1 -1
  504. package/script/npm/src/errors/AuthError.js +8 -3
  505. package/script/npm/src/errors/index.d.ts +4 -4
  506. package/script/npm/src/errors/index.d.ts.map +1 -1
  507. package/script/npm/src/errors/index.js +1 -0
  508. package/script/npm/src/generate.js +39 -59
  509. package/script/npm/src/helpers.d.ts.map +1 -1
  510. package/script/npm/src/index.d.ts +4 -3
  511. package/script/npm/src/index.d.ts.map +1 -1
  512. package/script/npm/src/index.js +5 -2
  513. package/script/npm/src/jobs.d.ts +10 -1
  514. package/script/npm/src/jobs.d.ts.map +1 -1
  515. package/script/npm/src/jobs.js +17 -2
  516. package/script/npm/src/kv.d.ts.map +1 -1
  517. package/script/npm/src/kv.js +10 -4
  518. package/script/npm/src/models/auth/rpc/Logout.d.ts +4 -4
  519. package/script/npm/src/models/auth/rpc/Logout.d.ts.map +1 -1
  520. package/script/npm/src/models/auth/rpc/Logout.js +3 -3
  521. package/script/npm/src/models/trellis/Page.d.ts +2 -0
  522. package/script/npm/src/models/trellis/Page.d.ts.map +1 -0
  523. package/script/npm/src/models/trellis/Page.js +6 -0
  524. package/script/npm/src/models/trellis/State.d.ts +1 -0
  525. package/script/npm/src/models/trellis/State.d.ts.map +1 -1
  526. package/script/npm/src/models/trellis/State.js +1 -0
  527. package/script/npm/src/models/trellis/rpc/StateList.d.ts +9 -12
  528. package/script/npm/src/models/trellis/rpc/StateList.d.ts.map +1 -1
  529. package/script/npm/src/models/trellis/rpc/StateList.js +16 -18
  530. package/script/npm/src/operations.d.ts +16 -7
  531. package/script/npm/src/operations.d.ts.map +1 -1
  532. package/script/npm/src/operations.js +84 -19
  533. package/script/npm/src/runtime_transport.d.ts +2 -0
  534. package/script/npm/src/runtime_transport.d.ts.map +1 -1
  535. package/script/npm/src/runtime_transport.js +2 -1
  536. package/script/npm/src/server/internal_jobs/active-job.d.ts +2 -1
  537. package/script/npm/src/server/internal_jobs/active-job.d.ts.map +1 -1
  538. package/script/npm/src/server/internal_jobs/active-job.js +3 -0
  539. package/script/npm/src/server/internal_jobs/job-manager.d.ts +4 -1
  540. package/script/npm/src/server/internal_jobs/job-manager.d.ts.map +1 -1
  541. package/script/npm/src/server/internal_jobs/job-manager.js +61 -1
  542. package/script/npm/src/server/internal_jobs/projection.js +1 -0
  543. package/script/npm/src/server/internal_jobs/runtime-worker.d.ts +13 -1
  544. package/script/npm/src/server/internal_jobs/runtime-worker.d.ts.map +1 -1
  545. package/script/npm/src/server/internal_jobs/runtime-worker.js +74 -13
  546. package/script/npm/src/server/internal_jobs/types.d.ts +19 -0
  547. package/script/npm/src/server/internal_jobs/types.d.ts.map +1 -1
  548. package/script/npm/src/server/internal_jobs/types.js +11 -1
  549. package/script/npm/src/server/runtime.d.ts +1 -0
  550. package/script/npm/src/server/runtime.d.ts.map +1 -1
  551. package/script/npm/src/server/service.d.ts +10 -1
  552. package/script/npm/src/server/service.d.ts.map +1 -1
  553. package/script/npm/src/server/service.js +208 -62
  554. package/script/npm/src/server/transfer.d.ts.map +1 -1
  555. package/script/npm/src/server/transfer.js +4 -0
  556. package/script/npm/src/server.d.ts.map +1 -1
  557. package/script/npm/src/server.js +336 -33
  558. package/script/npm/src/store.d.ts +8 -1
  559. package/script/npm/src/store.d.ts.map +1 -1
  560. package/script/npm/src/store.js +46 -8
  561. package/script/npm/src/transfer.d.ts +3 -0
  562. package/script/npm/src/transfer.d.ts.map +1 -1
  563. package/script/npm/src/transfer.js +19 -29
  564. package/script/npm/src/trellis.d.ts +85 -22
  565. package/script/npm/src/trellis.d.ts.map +1 -1
  566. package/script/npm/src/trellis.js +525 -61
  567. package/script/operations.d.ts +16 -7
  568. package/script/operations.d.ts.map +1 -1
  569. package/script/operations.js +84 -19
  570. package/script/runtime_transport.d.ts +2 -0
  571. package/script/runtime_transport.d.ts.map +1 -1
  572. package/script/runtime_transport.js +2 -1
  573. package/script/store.d.ts +8 -1
  574. package/script/store.d.ts.map +1 -1
  575. package/script/store.js +46 -8
  576. package/script/transfer.d.ts +3 -0
  577. package/script/transfer.d.ts.map +1 -1
  578. package/script/transfer.js +19 -29
  579. package/script/trellis.d.ts +85 -22
  580. package/script/trellis.d.ts.map +1 -1
  581. package/script/trellis.js +525 -61
  582. package/src/_dnt.polyfills.ts +274 -0
  583. package/src/_dnt.shims.ts +64 -0
  584. package/src/auth/browser/login.ts +295 -0
  585. package/src/auth/browser/portal.ts +75 -0
  586. package/src/auth/browser/session.ts +197 -0
  587. package/src/auth/browser/storage.ts +105 -0
  588. package/src/auth/browser.ts +82 -0
  589. package/src/auth/device_activation.ts +715 -0
  590. package/src/auth/keys.ts +116 -0
  591. package/src/auth/mod.ts +298 -0
  592. package/src/auth/proof.ts +111 -0
  593. package/src/auth/protocol.ts +1629 -0
  594. package/src/auth/schemas.ts +145 -0
  595. package/src/auth/session_auth.ts +167 -0
  596. package/src/auth/time.ts +15 -0
  597. package/src/auth/trellis_id.ts +9 -0
  598. package/src/auth/types.ts +4 -0
  599. package/src/auth/utils.ts +87 -0
  600. package/src/auth.ts +2 -0
  601. package/src/browser.ts +8 -0
  602. package/src/client.ts +164 -0
  603. package/src/client_connect.ts +1328 -0
  604. package/src/codec.ts +107 -0
  605. package/src/connection.ts +466 -0
  606. package/src/contract.ts +84 -0
  607. package/src/contract_support/canonical.ts +217 -0
  608. package/src/contract_support/mod.ts +5079 -0
  609. package/src/contract_support/protocol.ts +213 -0
  610. package/src/contract_support/runtime.ts +129 -0
  611. package/src/contract_support/schema_pointers.ts +161 -0
  612. package/src/contracts.ts +9 -0
  613. package/src/device/deno.ts +941 -0
  614. package/src/device.ts +989 -0
  615. package/src/env.ts +1 -0
  616. package/src/errors/AuthError.ts +82 -0
  617. package/src/errors/KVError.ts +47 -0
  618. package/src/errors/RemoteError.ts +111 -0
  619. package/src/errors/StoreError.ts +43 -0
  620. package/src/errors/TransferError.ts +43 -0
  621. package/src/errors/TransportError.ts +48 -0
  622. package/src/errors/TrellisError.ts +20 -0
  623. package/src/errors/ValidationError.ts +80 -0
  624. package/src/errors/index.ts +195 -0
  625. package/src/generate.ts +329 -0
  626. package/src/globals.ts +26 -0
  627. package/src/health.ts +28 -0
  628. package/src/helpers.ts +63 -0
  629. package/src/host/mod.ts +9 -0
  630. package/src/host/node.ts +9 -0
  631. package/src/index.ts +233 -0
  632. package/src/jobs.ts +344 -0
  633. package/src/kv.ts +564 -0
  634. package/src/models/auth/rpc/Logout.ts +15 -0
  635. package/src/models/trellis/Page.ts +6 -0
  636. package/src/models/trellis/State.ts +55 -0
  637. package/src/models/trellis/TrellisError.ts +21 -0
  638. package/src/models/trellis/rpc/StateDelete.ts +13 -0
  639. package/src/models/trellis/rpc/StateGet.ts +25 -0
  640. package/src/models/trellis/rpc/StateList.ts +26 -0
  641. package/src/models/trellis/rpc/StatePut.ts +42 -0
  642. package/src/operations.ts +1508 -0
  643. package/src/runtime_transport.ts +132 -0
  644. package/src/sdk/auth.ts +2 -0
  645. package/src/sdk/core.ts +2 -0
  646. package/src/sdk/health.ts +2 -0
  647. package/src/sdk/jobs.ts +2 -0
  648. package/src/sdk/state.ts +2 -0
  649. package/src/server/health.ts +379 -0
  650. package/src/server/health_rpc.ts +51 -0
  651. package/src/server/health_schemas.ts +61 -0
  652. package/src/server/internal_jobs/active-job.ts +115 -0
  653. package/src/server/internal_jobs/bindings.ts +26 -0
  654. package/src/server/internal_jobs/cancellation-registry.ts +71 -0
  655. package/src/server/internal_jobs/heartbeat.ts +120 -0
  656. package/src/server/internal_jobs/job-manager.ts +456 -0
  657. package/src/server/internal_jobs/projection.ts +48 -0
  658. package/src/server/internal_jobs/runtime-worker.ts +741 -0
  659. package/src/server/internal_jobs/types.ts +124 -0
  660. package/src/server/runtime.ts +27 -0
  661. package/src/server/service.ts +2377 -0
  662. package/src/server/subscription.ts +143 -0
  663. package/src/server/transfer.ts +962 -0
  664. package/src/server.ts +1725 -0
  665. package/src/server_logger.ts +10 -0
  666. package/src/service/deno.ts +18 -0
  667. package/src/service/mod.ts +68 -0
  668. package/src/service/node.ts +18 -0
  669. package/src/store.ts +658 -0
  670. package/src/tasks.ts +34 -0
  671. package/src/telemetry/carrier.ts +35 -0
  672. package/src/telemetry/core.ts +31 -0
  673. package/src/telemetry/env.ts +23 -0
  674. package/src/telemetry/mod.ts +26 -0
  675. package/src/telemetry/nats.ts +15 -0
  676. package/src/telemetry/result.ts +20 -0
  677. package/src/telemetry/trace.ts +39 -0
  678. package/src/telemetry/trellis.ts +1 -0
  679. package/src/tracing.ts +28 -0
  680. package/src/transfer.ts +602 -0
  681. package/src/trellis.ts +3650 -0
  682. package/esm/models/trellis/Paginate.d.ts +0 -7
  683. package/esm/models/trellis/Paginate.d.ts.map +0 -1
  684. package/esm/models/trellis/Paginate.js +0 -5
  685. package/esm/npm/src/models/trellis/Paginate.d.ts +0 -7
  686. package/esm/npm/src/models/trellis/Paginate.d.ts.map +0 -1
  687. package/esm/npm/src/models/trellis/Paginate.js +0 -5
  688. package/script/models/trellis/Paginate.d.ts +0 -7
  689. package/script/models/trellis/Paginate.d.ts.map +0 -1
  690. package/script/models/trellis/Paginate.js +0 -11
  691. package/script/npm/src/models/trellis/Paginate.d.ts +0 -7
  692. package/script/npm/src/models/trellis/Paginate.d.ts.map +0 -1
  693. package/script/npm/src/models/trellis/Paginate.js +0 -11
@@ -4,24 +4,10 @@ export declare const ParticipantKindSchema: Type.TUnion<[Type.TUnion<[Type.TLite
4
4
  export type ParticipantKind = StaticDecode<typeof ParticipantKindSchema>;
5
5
  export declare const DigestSchema: Type.TString;
6
6
  export declare const OpenObjectSchema: Type.TUnsafe<Record<string, unknown>>;
7
- export declare const ServiceAppliedDeploymentContractSchema: Type.TObject<{
8
- contractId: Type.TString;
9
- allowedDigests: Type.TArray<Type.TString>;
10
- resourceBindingsByDigest: Type.TOptional<Type.TRecord<"^.*$", any>>;
11
- }>;
12
- export declare const DeviceAppliedDeploymentContractSchema: Type.TObject<{
13
- contractId: Type.TString;
14
- allowedDigests: Type.TArray<Type.TString>;
15
- }>;
16
- export declare const ServiceDeploymentSchema: Type.TObject<{
17
- deploymentId: Type.TString;
18
- namespaces: Type.TArray<Type.TString>;
19
- disabled: Type.TBoolean;
20
- appliedContracts: Type.TArray<Type.TObject<{
21
- contractId: Type.TString;
22
- allowedDigests: Type.TArray<Type.TString>;
23
- resourceBindingsByDigest: Type.TOptional<Type.TRecord<"^.*$", any>>;
24
- }>>;
7
+ export declare const ServiceDeploymentSchema: Type.TUnsafe<{
8
+ deploymentId: string;
9
+ namespaces: string[];
10
+ disabled: boolean;
25
11
  }>;
26
12
  export declare const ServiceInstanceSchema: Type.TObject<{
27
13
  instanceId: Type.TString;
@@ -35,269 +21,1613 @@ export declare const ServiceInstanceSchema: Type.TObject<{
35
21
  createdAt: Type.TString;
36
22
  }>;
37
23
  export declare const ApprovalDecisionSchema: Type.TUnion<[Type.TLiteral<"approved">, Type.TLiteral<"denied">]>;
38
- export declare const ContractApprovalViewSchema: Type.TObject<{
24
+ export declare const IdentityAnchorViewSchema: Type.TUnion<[Type.TObject<{
25
+ kind: Type.TLiteral<"web">;
26
+ contractId: Type.TString;
27
+ origin: Type.TString;
28
+ }>, Type.TObject<{
29
+ kind: Type.TLiteral<"cli">;
30
+ contractId: Type.TString;
31
+ sessionPublicKey: Type.TString;
32
+ }>, Type.TObject<{
33
+ kind: Type.TLiteral<"native">;
34
+ contractId: Type.TString;
35
+ sessionPublicKey: Type.TString;
36
+ }>, Type.TObject<{
37
+ kind: Type.TLiteral<"device-user">;
38
+ contractId: Type.TString;
39
+ devicePublicKey: Type.TString;
40
+ }>]>;
41
+ export declare const ContractEvidenceViewSchema: Type.TObject<{
42
+ contractDigest: Type.TString;
43
+ contractId: Type.TString;
44
+ }>;
45
+ export declare const ApprovalEvidenceViewSchema: Type.TObject<{
39
46
  contractDigest: Type.TString;
40
47
  contractId: Type.TString;
41
48
  displayName: Type.TString;
42
49
  description: Type.TString;
43
- capabilities: Type.TArray<Type.TString>;
50
+ capabilities: Type.TRecord<"^.*$", Type.TObject<{
51
+ displayName: Type.TString;
52
+ description: Type.TString;
53
+ consequence: Type.TOptional<Type.TString>;
54
+ }>>;
55
+ }>;
56
+ export declare const IdentityEnvelopeApprovalViewSchema: Type.TObject<{
57
+ identityEnvelopeId: Type.TString;
58
+ identityAnchor: Type.TUnion<[Type.TObject<{
59
+ kind: Type.TLiteral<"web">;
60
+ contractId: Type.TString;
61
+ origin: Type.TString;
62
+ }>, Type.TObject<{
63
+ kind: Type.TLiteral<"cli">;
64
+ contractId: Type.TString;
65
+ sessionPublicKey: Type.TString;
66
+ }>, Type.TObject<{
67
+ kind: Type.TLiteral<"native">;
68
+ contractId: Type.TString;
69
+ sessionPublicKey: Type.TString;
70
+ }>, Type.TObject<{
71
+ kind: Type.TLiteral<"device-user">;
72
+ contractId: Type.TString;
73
+ devicePublicKey: Type.TString;
74
+ }>]>;
75
+ contractEvidence: Type.TObject<{
76
+ contractDigest: Type.TString;
77
+ contractId: Type.TString;
78
+ }>;
79
+ displayName: Type.TString;
80
+ description: Type.TString;
81
+ capabilities: Type.TRecord<"^.*$", Type.TObject<{
82
+ displayName: Type.TString;
83
+ description: Type.TString;
84
+ consequence: Type.TOptional<Type.TString>;
85
+ }>>;
44
86
  }>;
45
87
  export declare const ApprovalRecordViewSchema: Type.TObject<{
46
88
  user: Type.TString;
47
89
  answer: Type.TUnion<[Type.TLiteral<"approved">, Type.TLiteral<"denied">]>;
48
90
  answeredAt: Type.TString;
49
91
  updatedAt: Type.TString;
50
- approval: Type.TObject<{
92
+ identityEnvelopeId: Type.TString;
93
+ identityAnchor: Type.TUnion<[Type.TObject<{
94
+ kind: Type.TLiteral<"web">;
95
+ contractId: Type.TString;
96
+ origin: Type.TString;
97
+ }>, Type.TObject<{
98
+ kind: Type.TLiteral<"cli">;
99
+ contractId: Type.TString;
100
+ sessionPublicKey: Type.TString;
101
+ }>, Type.TObject<{
102
+ kind: Type.TLiteral<"native">;
103
+ contractId: Type.TString;
104
+ sessionPublicKey: Type.TString;
105
+ }>, Type.TObject<{
106
+ kind: Type.TLiteral<"device-user">;
107
+ contractId: Type.TString;
108
+ devicePublicKey: Type.TString;
109
+ }>]>;
110
+ contractEvidence: Type.TObject<{
51
111
  contractDigest: Type.TString;
52
112
  contractId: Type.TString;
113
+ }>;
114
+ displayName: Type.TString;
115
+ description: Type.TString;
116
+ capabilities: Type.TRecord<"^.*$", Type.TObject<{
53
117
  displayName: Type.TString;
54
118
  description: Type.TString;
55
- capabilities: Type.TArray<Type.TString>;
56
- }>;
119
+ consequence: Type.TOptional<Type.TString>;
120
+ }>>;
57
121
  participantKind: Type.TUnion<[Type.TLiteral<"app">, Type.TLiteral<"agent">]>;
58
122
  }>;
59
- export declare const InstanceGrantPolicyActorSchema: Type.TObject<{
60
- origin: Type.TString;
61
- id: Type.TString;
123
+ export declare const DeploymentEnvelopeKindSchema: Type.TUnion<[Type.TLiteral<"service">, Type.TLiteral<"device">, Type.TLiteral<"app">, Type.TLiteral<"cli">, Type.TLiteral<"native">, Type.TLiteral<"device-user">]>;
124
+ export type DeploymentEnvelopeKind = StaticDecode<typeof DeploymentEnvelopeKindSchema>;
125
+ export declare const EnvelopeSurfaceKindSchema: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
126
+ export type EnvelopeSurfaceKind = StaticDecode<typeof EnvelopeSurfaceKindSchema>;
127
+ export declare const EnvelopeSurfaceActionSchema: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
128
+ export type EnvelopeSurfaceAction = StaticDecode<typeof EnvelopeSurfaceActionSchema>;
129
+ export declare const EnvelopeResourceKindSchema: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
130
+ export type EnvelopeResourceKind = StaticDecode<typeof EnvelopeResourceKindSchema>;
131
+ export declare const EnvelopeBoundaryContractSchema: Type.TObject<{
132
+ contractId: Type.TString;
133
+ required: Type.TBoolean;
62
134
  }>;
63
- export declare const PortalProfileSourceSchema: Type.TObject<{
64
- kind: Type.TLiteral<"portal_profile">;
65
- portalId: Type.TString;
66
- entryUrl: Type.TString;
135
+ export type EnvelopeBoundaryContract = StaticDecode<typeof EnvelopeBoundaryContractSchema>;
136
+ export declare const EnvelopeBoundarySurfaceSchema: Type.TObject<{
137
+ contractId: Type.TString;
138
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
139
+ name: Type.TString;
140
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
141
+ required: Type.TBoolean;
67
142
  }>;
68
- export declare const AdminPolicySourceSchema: Type.TObject<{
69
- kind: Type.TLiteral<"admin_policy">;
70
- createdBy: Type.TOptional<Type.TObject<{
71
- origin: Type.TString;
72
- id: Type.TString;
143
+ export type EnvelopeBoundarySurface = StaticDecode<typeof EnvelopeBoundarySurfaceSchema>;
144
+ export declare const EnvelopeBoundaryResourceSchema: Type.TObject<{
145
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
146
+ alias: Type.TString;
147
+ required: Type.TBoolean;
148
+ }>;
149
+ export type EnvelopeBoundaryResource = StaticDecode<typeof EnvelopeBoundaryResourceSchema>;
150
+ export declare const EnvelopeBoundarySchema: Type.TObject<{
151
+ contracts: Type.TArray<Type.TObject<{
152
+ contractId: Type.TString;
153
+ required: Type.TBoolean;
73
154
  }>>;
74
- updatedBy: Type.TOptional<Type.TObject<{
75
- origin: Type.TString;
76
- id: Type.TString;
155
+ surfaces: Type.TArray<Type.TObject<{
156
+ contractId: Type.TString;
157
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
158
+ name: Type.TString;
159
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
160
+ required: Type.TBoolean;
161
+ }>>;
162
+ capabilities: Type.TArray<Type.TString>;
163
+ resources: Type.TArray<Type.TObject<{
164
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
165
+ alias: Type.TString;
166
+ required: Type.TBoolean;
77
167
  }>>;
78
168
  }>;
79
- export declare const InstanceGrantPolicySchema: Type.TObject<{
80
- contractId: Type.TString;
81
- allowedOrigins: Type.TOptional<Type.TArray<Type.TString>>;
82
- impliedCapabilities: Type.TArray<Type.TString>;
169
+ export type EnvelopeBoundary = StaticDecode<typeof EnvelopeBoundarySchema>;
170
+ export declare const DeploymentEnvelopeSchema: Type.TObject<{
171
+ deploymentId: Type.TString;
172
+ kind: Type.TUnion<[Type.TLiteral<"service">, Type.TLiteral<"device">, Type.TLiteral<"app">, Type.TLiteral<"cli">, Type.TLiteral<"native">, Type.TLiteral<"device-user">]>;
83
173
  disabled: Type.TBoolean;
84
174
  createdAt: Type.TString;
85
175
  updatedAt: Type.TString;
86
- source: Type.TUnion<[Type.TObject<{
87
- kind: Type.TLiteral<"admin_policy">;
88
- createdBy: Type.TOptional<Type.TObject<{
89
- origin: Type.TString;
90
- id: Type.TString;
176
+ boundary: Type.TObject<{
177
+ contracts: Type.TArray<Type.TObject<{
178
+ contractId: Type.TString;
179
+ required: Type.TBoolean;
91
180
  }>>;
92
- updatedBy: Type.TOptional<Type.TObject<{
93
- origin: Type.TString;
94
- id: Type.TString;
181
+ surfaces: Type.TArray<Type.TObject<{
182
+ contractId: Type.TString;
183
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
184
+ name: Type.TString;
185
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
186
+ required: Type.TBoolean;
95
187
  }>>;
96
- }>, Type.TObject<{
97
- kind: Type.TLiteral<"portal_profile">;
98
- portalId: Type.TString;
99
- entryUrl: Type.TString;
100
- }>]>;
188
+ capabilities: Type.TArray<Type.TString>;
189
+ resources: Type.TArray<Type.TObject<{
190
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
191
+ alias: Type.TString;
192
+ required: Type.TBoolean;
193
+ }>>;
194
+ }>;
101
195
  }>;
102
- export type InstanceGrantPolicy = StaticDecode<typeof InstanceGrantPolicySchema>;
103
- export declare const AuthListInstanceGrantPoliciesSchema: Type.TObject<{}>;
104
- export declare const AuthListInstanceGrantPoliciesResponseSchema: Type.TObject<{
105
- policies: Type.TArray<Type.TObject<{
106
- contractId: Type.TString;
107
- allowedOrigins: Type.TOptional<Type.TArray<Type.TString>>;
108
- impliedCapabilities: Type.TArray<Type.TString>;
196
+ export type DeploymentEnvelope = StaticDecode<typeof DeploymentEnvelopeSchema>;
197
+ export declare const DeploymentResourceBindingSchema: Type.TObject<{
198
+ deploymentId: Type.TString;
199
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
200
+ alias: Type.TString;
201
+ binding: Type.TRecord<"^.*$", Type.TUnknown>;
202
+ limits: Type.TUnion<[Type.TRecord<"^.*$", Type.TUnknown>, Type.TNull]>;
203
+ createdAt: Type.TString;
204
+ updatedAt: Type.TString;
205
+ }>;
206
+ export type DeploymentResourceBinding = StaticDecode<typeof DeploymentResourceBindingSchema>;
207
+ export declare const DeploymentContractEvidenceSchema: Type.TObject<{
208
+ deploymentId: Type.TString;
209
+ contractId: Type.TString;
210
+ contractDigest: Type.TString;
211
+ contract: Type.TUnsafe<Record<string, unknown>>;
212
+ firstSeenAt: Type.TString;
213
+ lastSeenAt: Type.TString;
214
+ ignoredAt: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
215
+ ignoredBy: Type.TOptional<Type.TUnion<[Type.TRecord<"^.*$", Type.TUnknown>, Type.TNull]>>;
216
+ ignoreReason: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
217
+ }>;
218
+ export type DeploymentContractEvidence = StaticDecode<typeof DeploymentContractEvidenceSchema>;
219
+ export declare const DeploymentPortalRouteSchema: Type.TObject<{
220
+ deploymentId: Type.TString;
221
+ portalId: Type.TUnion<[Type.TString, Type.TNull]>;
222
+ entryUrl: Type.TUnion<[Type.TString, Type.TNull]>;
223
+ disabled: Type.TBoolean;
224
+ updatedAt: Type.TString;
225
+ }>;
226
+ export type DeploymentPortalRoute = StaticDecode<typeof DeploymentPortalRouteSchema>;
227
+ export declare const DeploymentGrantOverrideSchema: Type.TUnion<[Type.TObject<{
228
+ deploymentId: Type.TString;
229
+ identityKind: Type.TLiteral<"web">;
230
+ grantKind: Type.TLiteral<"capability">;
231
+ contractId: Type.TString;
232
+ origin: Type.TString;
233
+ sessionPublicKey: Type.TNull;
234
+ capability: Type.TString;
235
+ capabilityGroupKey: Type.TNull;
236
+ }>, Type.TObject<{
237
+ deploymentId: Type.TString;
238
+ identityKind: Type.TLiteral<"web">;
239
+ grantKind: Type.TLiteral<"capability-group">;
240
+ contractId: Type.TString;
241
+ origin: Type.TString;
242
+ sessionPublicKey: Type.TNull;
243
+ capability: Type.TNull;
244
+ capabilityGroupKey: Type.TString;
245
+ }>, Type.TObject<{
246
+ deploymentId: Type.TString;
247
+ identityKind: Type.TLiteral<"session">;
248
+ grantKind: Type.TLiteral<"capability">;
249
+ contractId: Type.TString;
250
+ origin: Type.TNull;
251
+ sessionPublicKey: Type.TString;
252
+ capability: Type.TString;
253
+ capabilityGroupKey: Type.TNull;
254
+ }>, Type.TObject<{
255
+ deploymentId: Type.TString;
256
+ identityKind: Type.TLiteral<"session">;
257
+ grantKind: Type.TLiteral<"capability-group">;
258
+ contractId: Type.TString;
259
+ origin: Type.TNull;
260
+ sessionPublicKey: Type.TString;
261
+ capability: Type.TNull;
262
+ capabilityGroupKey: Type.TString;
263
+ }>]>;
264
+ export type DeploymentGrantOverride = StaticDecode<typeof DeploymentGrantOverrideSchema>;
265
+ export declare const EnvelopeExpansionRequestSchema: Type.TObject<{
266
+ requestId: Type.TString;
267
+ deploymentId: Type.TString;
268
+ requestedByKind: Type.TUnion<[Type.TLiteral<"service">, Type.TLiteral<"device">, Type.TLiteral<"user">, Type.TLiteral<"admin">, Type.TLiteral<"automation">]>;
269
+ requestedBy: Type.TRecord<"^.*$", Type.TUnknown>;
270
+ contractId: Type.TString;
271
+ contractDigest: Type.TString;
272
+ contract: Type.TUnsafe<Record<string, unknown>>;
273
+ state: Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"approved">, Type.TLiteral<"rejected">]>;
274
+ createdAt: Type.TString;
275
+ decidedAt: Type.TUnion<[Type.TString, Type.TNull]>;
276
+ decidedBy: Type.TUnion<[Type.TRecord<"^.*$", Type.TUnknown>, Type.TNull]>;
277
+ decisionReason: Type.TUnion<[Type.TString, Type.TNull]>;
278
+ delta: Type.TObject<{
279
+ contracts: Type.TArray<Type.TObject<{
280
+ contractId: Type.TString;
281
+ required: Type.TBoolean;
282
+ }>>;
283
+ surfaces: Type.TArray<Type.TObject<{
284
+ contractId: Type.TString;
285
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
286
+ name: Type.TString;
287
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
288
+ required: Type.TBoolean;
289
+ }>>;
290
+ capabilities: Type.TArray<Type.TString>;
291
+ resources: Type.TArray<Type.TObject<{
292
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
293
+ alias: Type.TString;
294
+ required: Type.TBoolean;
295
+ }>>;
296
+ }>;
297
+ }>;
298
+ export type EnvelopeExpansionRequest = StaticDecode<typeof EnvelopeExpansionRequestSchema>;
299
+ export declare const AuthEnvelopesListSchema: Type.TObject<{
300
+ kind: Type.TOptional<Type.TUnion<[Type.TLiteral<"service">, Type.TLiteral<"device">, Type.TLiteral<"app">, Type.TLiteral<"cli">, Type.TLiteral<"native">, Type.TLiteral<"device-user">]>>;
301
+ disabled: Type.TOptional<Type.TBoolean>;
302
+ offset: Type.TOptional<Type.TInteger>;
303
+ limit: Type.TInteger;
304
+ }>;
305
+ export type AuthEnvelopesListInput = StaticDecode<typeof AuthEnvelopesListSchema>;
306
+ export declare const AuthEnvelopesListResponseSchema: Type.TObject<{
307
+ entries: Type.TArray<Type.TObject<{
308
+ deploymentId: Type.TString;
309
+ kind: Type.TUnion<[Type.TLiteral<"service">, Type.TLiteral<"device">, Type.TLiteral<"app">, Type.TLiteral<"cli">, Type.TLiteral<"native">, Type.TLiteral<"device-user">]>;
109
310
  disabled: Type.TBoolean;
110
311
  createdAt: Type.TString;
111
312
  updatedAt: Type.TString;
112
- source: Type.TUnion<[Type.TObject<{
113
- kind: Type.TLiteral<"admin_policy">;
114
- createdBy: Type.TOptional<Type.TObject<{
115
- origin: Type.TString;
116
- id: Type.TString;
313
+ boundary: Type.TObject<{
314
+ contracts: Type.TArray<Type.TObject<{
315
+ contractId: Type.TString;
316
+ required: Type.TBoolean;
117
317
  }>>;
118
- updatedBy: Type.TOptional<Type.TObject<{
119
- origin: Type.TString;
120
- id: Type.TString;
318
+ surfaces: Type.TArray<Type.TObject<{
319
+ contractId: Type.TString;
320
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
321
+ name: Type.TString;
322
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
323
+ required: Type.TBoolean;
121
324
  }>>;
122
- }>, Type.TObject<{
123
- kind: Type.TLiteral<"portal_profile">;
124
- portalId: Type.TString;
125
- entryUrl: Type.TString;
126
- }>]>;
325
+ capabilities: Type.TArray<Type.TString>;
326
+ resources: Type.TArray<Type.TObject<{
327
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
328
+ alias: Type.TString;
329
+ required: Type.TBoolean;
330
+ }>>;
331
+ }>;
127
332
  }>>;
333
+ count: Type.TInteger;
334
+ offset: Type.TInteger;
335
+ limit: Type.TInteger;
336
+ nextOffset: Type.TOptional<Type.TInteger>;
128
337
  }>;
129
- export declare const AuthUpsertInstanceGrantPolicySchema: Type.TObject<{
130
- contractId: Type.TString;
131
- allowedOrigins: Type.TOptional<Type.TArray<Type.TString>>;
132
- impliedCapabilities: Type.TArray<Type.TString>;
338
+ export type AuthEnvelopesListResponse = StaticDecode<typeof AuthEnvelopesListResponseSchema>;
339
+ export declare const AuthEnvelopesGetSchema: Type.TObject<{
340
+ deploymentId: Type.TString;
133
341
  }>;
134
- export declare const AuthUpsertInstanceGrantPolicyResponseSchema: Type.TObject<{
135
- policy: Type.TObject<{
136
- contractId: Type.TString;
137
- allowedOrigins: Type.TOptional<Type.TArray<Type.TString>>;
138
- impliedCapabilities: Type.TArray<Type.TString>;
342
+ export type AuthEnvelopesGetInput = StaticDecode<typeof AuthEnvelopesGetSchema>;
343
+ export declare const AuthEnvelopesGetResponseSchema: Type.TObject<{
344
+ envelope: Type.TObject<{
345
+ deploymentId: Type.TString;
346
+ kind: Type.TUnion<[Type.TLiteral<"service">, Type.TLiteral<"device">, Type.TLiteral<"app">, Type.TLiteral<"cli">, Type.TLiteral<"native">, Type.TLiteral<"device-user">]>;
139
347
  disabled: Type.TBoolean;
140
348
  createdAt: Type.TString;
141
349
  updatedAt: Type.TString;
142
- source: Type.TUnion<[Type.TObject<{
143
- kind: Type.TLiteral<"admin_policy">;
144
- createdBy: Type.TOptional<Type.TObject<{
145
- origin: Type.TString;
146
- id: Type.TString;
350
+ boundary: Type.TObject<{
351
+ contracts: Type.TArray<Type.TObject<{
352
+ contractId: Type.TString;
353
+ required: Type.TBoolean;
147
354
  }>>;
148
- updatedBy: Type.TOptional<Type.TObject<{
149
- origin: Type.TString;
150
- id: Type.TString;
355
+ surfaces: Type.TArray<Type.TObject<{
356
+ contractId: Type.TString;
357
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
358
+ name: Type.TString;
359
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
360
+ required: Type.TBoolean;
151
361
  }>>;
152
- }>, Type.TObject<{
153
- kind: Type.TLiteral<"portal_profile">;
154
- portalId: Type.TString;
155
- entryUrl: Type.TString;
156
- }>]>;
362
+ capabilities: Type.TArray<Type.TString>;
363
+ resources: Type.TArray<Type.TObject<{
364
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
365
+ alias: Type.TString;
366
+ required: Type.TBoolean;
367
+ }>>;
368
+ }>;
157
369
  }>;
158
- }>;
159
- export declare const AuthDisableInstanceGrantPolicySchema: Type.TObject<{
160
- contractId: Type.TString;
161
- }>;
162
- export declare const AuthDisableInstanceGrantPolicyResponseSchema: Type.TObject<{
163
- policy: Type.TObject<{
164
- contractId: Type.TString;
165
- allowedOrigins: Type.TOptional<Type.TArray<Type.TString>>;
166
- impliedCapabilities: Type.TArray<Type.TString>;
167
- disabled: Type.TBoolean;
370
+ resourceBindings: Type.TArray<Type.TObject<{
371
+ deploymentId: Type.TString;
372
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
373
+ alias: Type.TString;
374
+ binding: Type.TRecord<"^.*$", Type.TUnknown>;
375
+ limits: Type.TUnion<[Type.TRecord<"^.*$", Type.TUnknown>, Type.TNull]>;
168
376
  createdAt: Type.TString;
169
377
  updatedAt: Type.TString;
170
- source: Type.TUnion<[Type.TObject<{
171
- kind: Type.TLiteral<"admin_policy">;
172
- createdBy: Type.TOptional<Type.TObject<{
173
- origin: Type.TString;
174
- id: Type.TString;
378
+ }>>;
379
+ contractEvidence: Type.TArray<Type.TObject<{
380
+ deploymentId: Type.TString;
381
+ contractId: Type.TString;
382
+ contractDigest: Type.TString;
383
+ contract: Type.TUnsafe<Record<string, unknown>>;
384
+ firstSeenAt: Type.TString;
385
+ lastSeenAt: Type.TString;
386
+ ignoredAt: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
387
+ ignoredBy: Type.TOptional<Type.TUnion<[Type.TRecord<"^.*$", Type.TUnknown>, Type.TNull]>>;
388
+ ignoreReason: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
389
+ }>>;
390
+ expansionRequests: Type.TArray<Type.TObject<{
391
+ requestId: Type.TString;
392
+ deploymentId: Type.TString;
393
+ requestedByKind: Type.TUnion<[Type.TLiteral<"service">, Type.TLiteral<"device">, Type.TLiteral<"user">, Type.TLiteral<"admin">, Type.TLiteral<"automation">]>;
394
+ requestedBy: Type.TRecord<"^.*$", Type.TUnknown>;
395
+ contractId: Type.TString;
396
+ contractDigest: Type.TString;
397
+ contract: Type.TUnsafe<Record<string, unknown>>;
398
+ state: Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"approved">, Type.TLiteral<"rejected">]>;
399
+ createdAt: Type.TString;
400
+ decidedAt: Type.TUnion<[Type.TString, Type.TNull]>;
401
+ decidedBy: Type.TUnion<[Type.TRecord<"^.*$", Type.TUnknown>, Type.TNull]>;
402
+ decisionReason: Type.TUnion<[Type.TString, Type.TNull]>;
403
+ delta: Type.TObject<{
404
+ contracts: Type.TArray<Type.TObject<{
405
+ contractId: Type.TString;
406
+ required: Type.TBoolean;
175
407
  }>>;
176
- updatedBy: Type.TOptional<Type.TObject<{
177
- origin: Type.TString;
178
- id: Type.TString;
408
+ surfaces: Type.TArray<Type.TObject<{
409
+ contractId: Type.TString;
410
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
411
+ name: Type.TString;
412
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
413
+ required: Type.TBoolean;
179
414
  }>>;
180
- }>, Type.TObject<{
181
- kind: Type.TLiteral<"portal_profile">;
182
- portalId: Type.TString;
183
- entryUrl: Type.TString;
184
- }>]>;
185
- }>;
186
- }>;
187
- export declare const AuthCreateServiceDeploymentSchema: Type.TObject<{
188
- deploymentId: Type.TString;
189
- namespaces: Type.TArray<Type.TString>;
190
- }>;
191
- export declare const AuthCreateServiceDeploymentResponseSchema: Type.TObject<{
192
- deployment: Type.TObject<{
415
+ capabilities: Type.TArray<Type.TString>;
416
+ resources: Type.TArray<Type.TObject<{
417
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
418
+ alias: Type.TString;
419
+ required: Type.TBoolean;
420
+ }>>;
421
+ }>;
422
+ }>>;
423
+ portalRoute: Type.TUnion<[Type.TObject<{
193
424
  deploymentId: Type.TString;
194
- namespaces: Type.TArray<Type.TString>;
425
+ portalId: Type.TUnion<[Type.TString, Type.TNull]>;
426
+ entryUrl: Type.TUnion<[Type.TString, Type.TNull]>;
195
427
  disabled: Type.TBoolean;
196
- appliedContracts: Type.TArray<Type.TObject<{
197
- contractId: Type.TString;
198
- allowedDigests: Type.TArray<Type.TString>;
199
- resourceBindingsByDigest: Type.TOptional<Type.TRecord<"^.*$", any>>;
200
- }>>;
201
- }>;
202
- }>;
203
- export declare const AuthListServiceDeploymentsSchema: Type.TObject<{
204
- disabled: Type.TOptional<Type.TBoolean>;
205
- }>;
206
- export declare const AuthListServiceDeploymentsResponseSchema: Type.TObject<{
207
- deployments: Type.TArray<Type.TObject<{
428
+ updatedAt: Type.TString;
429
+ }>, Type.TNull]>;
430
+ grantOverrides: Type.TArray<Type.TUnion<[Type.TObject<{
208
431
  deploymentId: Type.TString;
209
- namespaces: Type.TArray<Type.TString>;
210
- disabled: Type.TBoolean;
211
- appliedContracts: Type.TArray<Type.TObject<{
212
- contractId: Type.TString;
213
- allowedDigests: Type.TArray<Type.TString>;
214
- resourceBindingsByDigest: Type.TOptional<Type.TRecord<"^.*$", any>>;
215
- }>>;
216
- }>>;
217
- }>;
218
- export declare const AuthApplyServiceDeploymentContractSchema: Type.TObject<{
432
+ identityKind: Type.TLiteral<"web">;
433
+ grantKind: Type.TLiteral<"capability">;
434
+ contractId: Type.TString;
435
+ origin: Type.TString;
436
+ sessionPublicKey: Type.TNull;
437
+ capability: Type.TString;
438
+ capabilityGroupKey: Type.TNull;
439
+ }>, Type.TObject<{
440
+ deploymentId: Type.TString;
441
+ identityKind: Type.TLiteral<"web">;
442
+ grantKind: Type.TLiteral<"capability-group">;
443
+ contractId: Type.TString;
444
+ origin: Type.TString;
445
+ sessionPublicKey: Type.TNull;
446
+ capability: Type.TNull;
447
+ capabilityGroupKey: Type.TString;
448
+ }>, Type.TObject<{
449
+ deploymentId: Type.TString;
450
+ identityKind: Type.TLiteral<"session">;
451
+ grantKind: Type.TLiteral<"capability">;
452
+ contractId: Type.TString;
453
+ origin: Type.TNull;
454
+ sessionPublicKey: Type.TString;
455
+ capability: Type.TString;
456
+ capabilityGroupKey: Type.TNull;
457
+ }>, Type.TObject<{
458
+ deploymentId: Type.TString;
459
+ identityKind: Type.TLiteral<"session">;
460
+ grantKind: Type.TLiteral<"capability-group">;
461
+ contractId: Type.TString;
462
+ origin: Type.TNull;
463
+ sessionPublicKey: Type.TString;
464
+ capability: Type.TNull;
465
+ capabilityGroupKey: Type.TString;
466
+ }>]>>;
467
+ }>;
468
+ export type AuthEnvelopesGetResponse = StaticDecode<typeof AuthEnvelopesGetResponseSchema>;
469
+ export declare const AuthEnvelopesGrantOverridesPutSchema: Type.TObject<{
219
470
  deploymentId: Type.TString;
220
- contract: Type.TUnsafe<Record<string, unknown>>;
221
- expectedDigest: Type.TString;
222
- replaceExisting: Type.TOptional<Type.TBoolean>;
223
- }>;
224
- export declare const AuthApplyServiceDeploymentContractResponseSchema: Type.TObject<{
225
- deployment: Type.TObject<{
471
+ overrides: Type.TArray<Type.TUnion<[Type.TObject<{
226
472
  deploymentId: Type.TString;
227
- namespaces: Type.TArray<Type.TString>;
228
- disabled: Type.TBoolean;
229
- appliedContracts: Type.TArray<Type.TObject<{
230
- contractId: Type.TString;
231
- allowedDigests: Type.TArray<Type.TString>;
232
- resourceBindingsByDigest: Type.TOptional<Type.TRecord<"^.*$", any>>;
233
- }>>;
234
- }>;
235
- contract: Type.TObject<{
236
- digest: Type.TString;
237
- id: Type.TString;
238
- displayName: Type.TString;
239
- description: Type.TString;
240
- installedAt: Type.TString;
473
+ identityKind: Type.TLiteral<"web">;
474
+ grantKind: Type.TLiteral<"capability">;
475
+ contractId: Type.TString;
476
+ origin: Type.TString;
477
+ sessionPublicKey: Type.TNull;
478
+ capability: Type.TString;
479
+ capabilityGroupKey: Type.TNull;
480
+ }>, Type.TObject<{
481
+ deploymentId: Type.TString;
482
+ identityKind: Type.TLiteral<"web">;
483
+ grantKind: Type.TLiteral<"capability-group">;
484
+ contractId: Type.TString;
485
+ origin: Type.TString;
486
+ sessionPublicKey: Type.TNull;
487
+ capability: Type.TNull;
488
+ capabilityGroupKey: Type.TString;
489
+ }>, Type.TObject<{
490
+ deploymentId: Type.TString;
491
+ identityKind: Type.TLiteral<"session">;
492
+ grantKind: Type.TLiteral<"capability">;
493
+ contractId: Type.TString;
494
+ origin: Type.TNull;
495
+ sessionPublicKey: Type.TString;
496
+ capability: Type.TString;
497
+ capabilityGroupKey: Type.TNull;
498
+ }>, Type.TObject<{
499
+ deploymentId: Type.TString;
500
+ identityKind: Type.TLiteral<"session">;
501
+ grantKind: Type.TLiteral<"capability-group">;
502
+ contractId: Type.TString;
503
+ origin: Type.TNull;
504
+ sessionPublicKey: Type.TString;
505
+ capability: Type.TNull;
506
+ capabilityGroupKey: Type.TString;
507
+ }>]>>;
508
+ }>;
509
+ export type AuthEnvelopesGrantOverridesPutInput = StaticDecode<typeof AuthEnvelopesGrantOverridesPutSchema>;
510
+ export declare const AuthEnvelopesGrantOverridesListSchema: Type.TObject<{
511
+ offset: Type.TOptional<Type.TInteger>;
512
+ limit: Type.TInteger;
513
+ }>;
514
+ export type AuthEnvelopesGrantOverridesListInput = StaticDecode<typeof AuthEnvelopesGrantOverridesListSchema>;
515
+ export declare const AuthEnvelopesGrantOverridesListResponseSchema: Type.TObject<{
516
+ entries: Type.TArray<Type.TUnion<[Type.TObject<{
517
+ deploymentId: Type.TString;
518
+ identityKind: Type.TLiteral<"web">;
519
+ grantKind: Type.TLiteral<"capability">;
520
+ contractId: Type.TString;
521
+ origin: Type.TString;
522
+ sessionPublicKey: Type.TNull;
523
+ capability: Type.TString;
524
+ capabilityGroupKey: Type.TNull;
525
+ }>, Type.TObject<{
526
+ deploymentId: Type.TString;
527
+ identityKind: Type.TLiteral<"web">;
528
+ grantKind: Type.TLiteral<"capability-group">;
529
+ contractId: Type.TString;
530
+ origin: Type.TString;
531
+ sessionPublicKey: Type.TNull;
532
+ capability: Type.TNull;
533
+ capabilityGroupKey: Type.TString;
534
+ }>, Type.TObject<{
535
+ deploymentId: Type.TString;
536
+ identityKind: Type.TLiteral<"session">;
537
+ grantKind: Type.TLiteral<"capability">;
538
+ contractId: Type.TString;
539
+ origin: Type.TNull;
540
+ sessionPublicKey: Type.TString;
541
+ capability: Type.TString;
542
+ capabilityGroupKey: Type.TNull;
543
+ }>, Type.TObject<{
544
+ deploymentId: Type.TString;
545
+ identityKind: Type.TLiteral<"session">;
546
+ grantKind: Type.TLiteral<"capability-group">;
547
+ contractId: Type.TString;
548
+ origin: Type.TNull;
549
+ sessionPublicKey: Type.TString;
550
+ capability: Type.TNull;
551
+ capabilityGroupKey: Type.TString;
552
+ }>]>>;
553
+ count: Type.TInteger;
554
+ offset: Type.TInteger;
555
+ limit: Type.TInteger;
556
+ nextOffset: Type.TOptional<Type.TInteger>;
557
+ }>;
558
+ export type AuthEnvelopesGrantOverridesListResponse = StaticDecode<typeof AuthEnvelopesGrantOverridesListResponseSchema>;
559
+ export declare const AuthEnvelopesGrantOverridesResponseSchema: Type.TObject<{
560
+ grantOverrides: Type.TArray<Type.TUnion<[Type.TObject<{
561
+ deploymentId: Type.TString;
562
+ identityKind: Type.TLiteral<"web">;
563
+ grantKind: Type.TLiteral<"capability">;
564
+ contractId: Type.TString;
565
+ origin: Type.TString;
566
+ sessionPublicKey: Type.TNull;
567
+ capability: Type.TString;
568
+ capabilityGroupKey: Type.TNull;
569
+ }>, Type.TObject<{
570
+ deploymentId: Type.TString;
571
+ identityKind: Type.TLiteral<"web">;
572
+ grantKind: Type.TLiteral<"capability-group">;
573
+ contractId: Type.TString;
574
+ origin: Type.TString;
575
+ sessionPublicKey: Type.TNull;
576
+ capability: Type.TNull;
577
+ capabilityGroupKey: Type.TString;
578
+ }>, Type.TObject<{
579
+ deploymentId: Type.TString;
580
+ identityKind: Type.TLiteral<"session">;
581
+ grantKind: Type.TLiteral<"capability">;
582
+ contractId: Type.TString;
583
+ origin: Type.TNull;
584
+ sessionPublicKey: Type.TString;
585
+ capability: Type.TString;
586
+ capabilityGroupKey: Type.TNull;
587
+ }>, Type.TObject<{
588
+ deploymentId: Type.TString;
589
+ identityKind: Type.TLiteral<"session">;
590
+ grantKind: Type.TLiteral<"capability-group">;
591
+ contractId: Type.TString;
592
+ origin: Type.TNull;
593
+ sessionPublicKey: Type.TString;
594
+ capability: Type.TNull;
595
+ capabilityGroupKey: Type.TString;
596
+ }>]>>;
597
+ }>;
598
+ export type AuthEnvelopesGrantOverridesResponse = StaticDecode<typeof AuthEnvelopesGrantOverridesResponseSchema>;
599
+ export declare const AuthEnvelopesGrantOverridesRemoveSchema: Type.TObject<{
600
+ deploymentId: Type.TString;
601
+ overrides: Type.TArray<Type.TUnion<[Type.TObject<{
602
+ deploymentId: Type.TString;
603
+ identityKind: Type.TLiteral<"web">;
604
+ grantKind: Type.TLiteral<"capability">;
605
+ contractId: Type.TString;
606
+ origin: Type.TString;
607
+ sessionPublicKey: Type.TNull;
608
+ capability: Type.TString;
609
+ capabilityGroupKey: Type.TNull;
610
+ }>, Type.TObject<{
611
+ deploymentId: Type.TString;
612
+ identityKind: Type.TLiteral<"web">;
613
+ grantKind: Type.TLiteral<"capability-group">;
614
+ contractId: Type.TString;
615
+ origin: Type.TString;
616
+ sessionPublicKey: Type.TNull;
617
+ capability: Type.TNull;
618
+ capabilityGroupKey: Type.TString;
619
+ }>, Type.TObject<{
620
+ deploymentId: Type.TString;
621
+ identityKind: Type.TLiteral<"session">;
622
+ grantKind: Type.TLiteral<"capability">;
623
+ contractId: Type.TString;
624
+ origin: Type.TNull;
625
+ sessionPublicKey: Type.TString;
626
+ capability: Type.TString;
627
+ capabilityGroupKey: Type.TNull;
628
+ }>, Type.TObject<{
629
+ deploymentId: Type.TString;
630
+ identityKind: Type.TLiteral<"session">;
631
+ grantKind: Type.TLiteral<"capability-group">;
632
+ contractId: Type.TString;
633
+ origin: Type.TNull;
634
+ sessionPublicKey: Type.TString;
635
+ capability: Type.TNull;
636
+ capabilityGroupKey: Type.TString;
637
+ }>]>>;
638
+ }>;
639
+ export type AuthEnvelopesGrantOverridesRemoveInput = StaticDecode<typeof AuthEnvelopesGrantOverridesRemoveSchema>;
640
+ export declare const AuthEnvelopesExpandSchema: Type.TObject<{
641
+ deploymentId: Type.TString;
642
+ contract: Type.TUnsafe<Record<string, unknown>>;
643
+ expectedDigest: Type.TString;
644
+ }>;
645
+ export type AuthEnvelopesExpandInput = StaticDecode<typeof AuthEnvelopesExpandSchema>;
646
+ export declare const AuthEnvelopesExpandResponseSchema: Type.TObject<{
647
+ envelope: Type.TObject<{
648
+ deploymentId: Type.TString;
649
+ kind: Type.TUnion<[Type.TLiteral<"service">, Type.TLiteral<"device">, Type.TLiteral<"app">, Type.TLiteral<"cli">, Type.TLiteral<"native">, Type.TLiteral<"device-user">]>;
650
+ disabled: Type.TBoolean;
651
+ createdAt: Type.TString;
652
+ updatedAt: Type.TString;
653
+ boundary: Type.TObject<{
654
+ contracts: Type.TArray<Type.TObject<{
655
+ contractId: Type.TString;
656
+ required: Type.TBoolean;
657
+ }>>;
658
+ surfaces: Type.TArray<Type.TObject<{
659
+ contractId: Type.TString;
660
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
661
+ name: Type.TString;
662
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
663
+ required: Type.TBoolean;
664
+ }>>;
665
+ capabilities: Type.TArray<Type.TString>;
666
+ resources: Type.TArray<Type.TObject<{
667
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
668
+ alias: Type.TString;
669
+ required: Type.TBoolean;
670
+ }>>;
671
+ }>;
672
+ }>;
673
+ delta: Type.TObject<{
674
+ contracts: Type.TArray<Type.TObject<{
675
+ contractId: Type.TString;
676
+ required: Type.TBoolean;
677
+ }>>;
678
+ surfaces: Type.TArray<Type.TObject<{
679
+ contractId: Type.TString;
680
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
681
+ name: Type.TString;
682
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
683
+ required: Type.TBoolean;
684
+ }>>;
685
+ capabilities: Type.TArray<Type.TString>;
686
+ resources: Type.TArray<Type.TObject<{
687
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
688
+ alias: Type.TString;
689
+ required: Type.TBoolean;
690
+ }>>;
691
+ }>;
692
+ contractEvidence: Type.TObject<{
693
+ deploymentId: Type.TString;
694
+ contractId: Type.TString;
695
+ contractDigest: Type.TString;
696
+ contract: Type.TUnsafe<Record<string, unknown>>;
697
+ firstSeenAt: Type.TString;
698
+ lastSeenAt: Type.TString;
699
+ ignoredAt: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
700
+ ignoredBy: Type.TOptional<Type.TUnion<[Type.TRecord<"^.*$", Type.TUnknown>, Type.TNull]>>;
701
+ ignoreReason: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
702
+ }>;
703
+ resourceBindings: Type.TArray<Type.TObject<{
704
+ deploymentId: Type.TString;
705
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
706
+ alias: Type.TString;
707
+ binding: Type.TRecord<"^.*$", Type.TUnknown>;
708
+ limits: Type.TUnion<[Type.TRecord<"^.*$", Type.TUnknown>, Type.TNull]>;
709
+ createdAt: Type.TString;
710
+ updatedAt: Type.TString;
711
+ }>>;
712
+ }>;
713
+ export type AuthEnvelopesExpandResponse = StaticDecode<typeof AuthEnvelopesExpandResponseSchema>;
714
+ export declare const AuthEnvelopesApproveRequestSchema: Type.TObject<{
715
+ requestId: Type.TString;
716
+ reason: Type.TOptional<Type.TString>;
717
+ }>;
718
+ export type AuthEnvelopesApproveRequestInput = StaticDecode<typeof AuthEnvelopesApproveRequestSchema>;
719
+ export declare const AuthEnvelopesApproveRequestResponseSchema: Type.TObject<{
720
+ request: Type.TObject<{
721
+ requestId: Type.TString;
722
+ deploymentId: Type.TString;
723
+ requestedByKind: Type.TUnion<[Type.TLiteral<"service">, Type.TLiteral<"device">, Type.TLiteral<"user">, Type.TLiteral<"admin">, Type.TLiteral<"automation">]>;
724
+ requestedBy: Type.TRecord<"^.*$", Type.TUnknown>;
725
+ contractId: Type.TString;
726
+ contractDigest: Type.TString;
727
+ contract: Type.TUnsafe<Record<string, unknown>>;
728
+ state: Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"approved">, Type.TLiteral<"rejected">]>;
729
+ createdAt: Type.TString;
730
+ decidedAt: Type.TUnion<[Type.TString, Type.TNull]>;
731
+ decidedBy: Type.TUnion<[Type.TRecord<"^.*$", Type.TUnknown>, Type.TNull]>;
732
+ decisionReason: Type.TUnion<[Type.TString, Type.TNull]>;
733
+ delta: Type.TObject<{
734
+ contracts: Type.TArray<Type.TObject<{
735
+ contractId: Type.TString;
736
+ required: Type.TBoolean;
737
+ }>>;
738
+ surfaces: Type.TArray<Type.TObject<{
739
+ contractId: Type.TString;
740
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
741
+ name: Type.TString;
742
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
743
+ required: Type.TBoolean;
744
+ }>>;
745
+ capabilities: Type.TArray<Type.TString>;
746
+ resources: Type.TArray<Type.TObject<{
747
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
748
+ alias: Type.TString;
749
+ required: Type.TBoolean;
750
+ }>>;
751
+ }>;
752
+ }>;
753
+ envelope: Type.TObject<{
754
+ deploymentId: Type.TString;
755
+ kind: Type.TUnion<[Type.TLiteral<"service">, Type.TLiteral<"device">, Type.TLiteral<"app">, Type.TLiteral<"cli">, Type.TLiteral<"native">, Type.TLiteral<"device-user">]>;
756
+ disabled: Type.TBoolean;
757
+ createdAt: Type.TString;
758
+ updatedAt: Type.TString;
759
+ boundary: Type.TObject<{
760
+ contracts: Type.TArray<Type.TObject<{
761
+ contractId: Type.TString;
762
+ required: Type.TBoolean;
763
+ }>>;
764
+ surfaces: Type.TArray<Type.TObject<{
765
+ contractId: Type.TString;
766
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
767
+ name: Type.TString;
768
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
769
+ required: Type.TBoolean;
770
+ }>>;
771
+ capabilities: Type.TArray<Type.TString>;
772
+ resources: Type.TArray<Type.TObject<{
773
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
774
+ alias: Type.TString;
775
+ required: Type.TBoolean;
776
+ }>>;
777
+ }>;
778
+ }>;
779
+ delta: Type.TObject<{
780
+ contracts: Type.TArray<Type.TObject<{
781
+ contractId: Type.TString;
782
+ required: Type.TBoolean;
783
+ }>>;
784
+ surfaces: Type.TArray<Type.TObject<{
785
+ contractId: Type.TString;
786
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
787
+ name: Type.TString;
788
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
789
+ required: Type.TBoolean;
790
+ }>>;
791
+ capabilities: Type.TArray<Type.TString>;
792
+ resources: Type.TArray<Type.TObject<{
793
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
794
+ alias: Type.TString;
795
+ required: Type.TBoolean;
796
+ }>>;
797
+ }>;
798
+ contractEvidence: Type.TObject<{
799
+ deploymentId: Type.TString;
800
+ contractId: Type.TString;
801
+ contractDigest: Type.TString;
802
+ contract: Type.TUnsafe<Record<string, unknown>>;
803
+ firstSeenAt: Type.TString;
804
+ lastSeenAt: Type.TString;
805
+ ignoredAt: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
806
+ ignoredBy: Type.TOptional<Type.TUnion<[Type.TRecord<"^.*$", Type.TUnknown>, Type.TNull]>>;
807
+ ignoreReason: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
808
+ }>;
809
+ resourceBindings: Type.TArray<Type.TObject<{
810
+ deploymentId: Type.TString;
811
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
812
+ alias: Type.TString;
813
+ binding: Type.TRecord<"^.*$", Type.TUnknown>;
814
+ limits: Type.TUnion<[Type.TRecord<"^.*$", Type.TUnknown>, Type.TNull]>;
815
+ createdAt: Type.TString;
816
+ updatedAt: Type.TString;
817
+ }>>;
818
+ }>;
819
+ export type AuthEnvelopesApproveRequestResponse = StaticDecode<typeof AuthEnvelopesApproveRequestResponseSchema>;
820
+ export declare const AuthEnvelopeExpansionsListSchema: Type.TObject<{
821
+ deploymentId: Type.TOptional<Type.TString>;
822
+ state: Type.TOptional<Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"approved">, Type.TLiteral<"rejected">]>>;
823
+ offset: Type.TOptional<Type.TInteger>;
824
+ limit: Type.TInteger;
825
+ }>;
826
+ export type AuthEnvelopeExpansionsListInput = StaticDecode<typeof AuthEnvelopeExpansionsListSchema>;
827
+ export declare const AuthEnvelopeExpansionsListResponseSchema: Type.TObject<{
828
+ entries: Type.TArray<Type.TObject<{
829
+ requestId: Type.TString;
830
+ deploymentId: Type.TString;
831
+ requestedByKind: Type.TUnion<[Type.TLiteral<"service">, Type.TLiteral<"device">, Type.TLiteral<"user">, Type.TLiteral<"admin">, Type.TLiteral<"automation">]>;
832
+ requestedBy: Type.TRecord<"^.*$", Type.TUnknown>;
833
+ contractId: Type.TString;
834
+ contractDigest: Type.TString;
835
+ contract: Type.TUnsafe<Record<string, unknown>>;
836
+ state: Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"approved">, Type.TLiteral<"rejected">]>;
837
+ createdAt: Type.TString;
838
+ decidedAt: Type.TUnion<[Type.TString, Type.TNull]>;
839
+ decidedBy: Type.TUnion<[Type.TRecord<"^.*$", Type.TUnknown>, Type.TNull]>;
840
+ decisionReason: Type.TUnion<[Type.TString, Type.TNull]>;
841
+ delta: Type.TObject<{
842
+ contracts: Type.TArray<Type.TObject<{
843
+ contractId: Type.TString;
844
+ required: Type.TBoolean;
845
+ }>>;
846
+ surfaces: Type.TArray<Type.TObject<{
847
+ contractId: Type.TString;
848
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
849
+ name: Type.TString;
850
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
851
+ required: Type.TBoolean;
852
+ }>>;
853
+ capabilities: Type.TArray<Type.TString>;
854
+ resources: Type.TArray<Type.TObject<{
855
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
856
+ alias: Type.TString;
857
+ required: Type.TBoolean;
858
+ }>>;
859
+ }>;
860
+ }>>;
861
+ count: Type.TInteger;
862
+ offset: Type.TInteger;
863
+ limit: Type.TInteger;
864
+ nextOffset: Type.TOptional<Type.TInteger>;
865
+ }>;
866
+ export type AuthEnvelopeExpansionsListResponse = StaticDecode<typeof AuthEnvelopeExpansionsListResponseSchema>;
867
+ export declare const AuthEnvelopeExpansionsRejectSchema: Type.TObject<{
868
+ requestId: Type.TString;
869
+ reason: Type.TOptional<Type.TString>;
870
+ }>;
871
+ export type AuthEnvelopeExpansionsRejectInput = StaticDecode<typeof AuthEnvelopeExpansionsRejectSchema>;
872
+ export declare const AuthEnvelopeExpansionsRejectResponseSchema: Type.TObject<{
873
+ request: Type.TObject<{
874
+ requestId: Type.TString;
875
+ deploymentId: Type.TString;
876
+ requestedByKind: Type.TUnion<[Type.TLiteral<"service">, Type.TLiteral<"device">, Type.TLiteral<"user">, Type.TLiteral<"admin">, Type.TLiteral<"automation">]>;
877
+ requestedBy: Type.TRecord<"^.*$", Type.TUnknown>;
878
+ contractId: Type.TString;
879
+ contractDigest: Type.TString;
880
+ contract: Type.TUnsafe<Record<string, unknown>>;
881
+ state: Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"approved">, Type.TLiteral<"rejected">]>;
882
+ createdAt: Type.TString;
883
+ decidedAt: Type.TUnion<[Type.TString, Type.TNull]>;
884
+ decidedBy: Type.TUnion<[Type.TRecord<"^.*$", Type.TUnknown>, Type.TNull]>;
885
+ decisionReason: Type.TUnion<[Type.TString, Type.TNull]>;
886
+ delta: Type.TObject<{
887
+ contracts: Type.TArray<Type.TObject<{
888
+ contractId: Type.TString;
889
+ required: Type.TBoolean;
890
+ }>>;
891
+ surfaces: Type.TArray<Type.TObject<{
892
+ contractId: Type.TString;
893
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
894
+ name: Type.TString;
895
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
896
+ required: Type.TBoolean;
897
+ }>>;
898
+ capabilities: Type.TArray<Type.TString>;
899
+ resources: Type.TArray<Type.TObject<{
900
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
901
+ alias: Type.TString;
902
+ required: Type.TBoolean;
903
+ }>>;
904
+ }>;
905
+ }>;
906
+ }>;
907
+ export type AuthEnvelopeExpansionsRejectResponse = StaticDecode<typeof AuthEnvelopeExpansionsRejectResponseSchema>;
908
+ export declare const AuthEnvelopeShrinkResourceSchema: Type.TObject<{
909
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
910
+ alias: Type.TString;
911
+ }>;
912
+ export declare const AuthEnvelopeShrinkMissingBoundarySchema: Type.TObject<{
913
+ missing: Type.TObject<{
914
+ contracts: Type.TArray<Type.TObject<{
915
+ contractId: Type.TString;
916
+ required: Type.TBoolean;
917
+ }>>;
918
+ surfaces: Type.TArray<Type.TObject<{
919
+ contractId: Type.TString;
920
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
921
+ name: Type.TString;
922
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
923
+ required: Type.TBoolean;
924
+ }>>;
925
+ capabilities: Type.TArray<Type.TString>;
926
+ resources: Type.TArray<Type.TObject<{
927
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
928
+ alias: Type.TString;
929
+ required: Type.TBoolean;
930
+ }>>;
931
+ }>;
932
+ }>;
933
+ export declare const AuthEnvelopeShrinkImpactedSessionSchema: Type.TObject<{
934
+ sessionKey: Type.TString;
935
+ type: Type.TUnion<[Type.TUnion<[Type.TLiteral<"app">, Type.TLiteral<"agent">]>, Type.TLiteral<"device">, Type.TLiteral<"service">]>;
936
+ contractId: Type.TUnion<[Type.TString, Type.TNull]>;
937
+ contractDigest: Type.TUnion<[Type.TString, Type.TNull]>;
938
+ missing: Type.TObject<{
939
+ contracts: Type.TArray<Type.TObject<{
940
+ contractId: Type.TString;
941
+ required: Type.TBoolean;
942
+ }>>;
943
+ surfaces: Type.TArray<Type.TObject<{
944
+ contractId: Type.TString;
945
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
946
+ name: Type.TString;
947
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
948
+ required: Type.TBoolean;
949
+ }>>;
950
+ capabilities: Type.TArray<Type.TString>;
951
+ resources: Type.TArray<Type.TObject<{
952
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
953
+ alias: Type.TString;
954
+ required: Type.TBoolean;
955
+ }>>;
956
+ }>;
957
+ }>;
958
+ export declare const AuthEnvelopeShrinkImpactedIdentityEnvelopeSchema: Type.TObject<{
959
+ identityEnvelopeId: Type.TString;
960
+ identityAnchor: Type.TUnion<[Type.TObject<{
961
+ kind: Type.TLiteral<"web">;
962
+ contractId: Type.TString;
963
+ origin: Type.TString;
964
+ }>, Type.TObject<{
965
+ kind: Type.TLiteral<"cli">;
966
+ contractId: Type.TString;
967
+ sessionPublicKey: Type.TString;
968
+ }>, Type.TObject<{
969
+ kind: Type.TLiteral<"native">;
970
+ contractId: Type.TString;
971
+ sessionPublicKey: Type.TString;
972
+ }>, Type.TObject<{
973
+ kind: Type.TLiteral<"device-user">;
974
+ contractId: Type.TString;
975
+ devicePublicKey: Type.TString;
976
+ }>]>;
977
+ missing: Type.TObject<{
978
+ contracts: Type.TArray<Type.TObject<{
979
+ contractId: Type.TString;
980
+ required: Type.TBoolean;
981
+ }>>;
982
+ surfaces: Type.TArray<Type.TObject<{
983
+ contractId: Type.TString;
984
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
985
+ name: Type.TString;
986
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
987
+ required: Type.TBoolean;
988
+ }>>;
989
+ capabilities: Type.TArray<Type.TString>;
990
+ resources: Type.TArray<Type.TObject<{
991
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
992
+ alias: Type.TString;
993
+ required: Type.TBoolean;
994
+ }>>;
995
+ }>;
996
+ }>;
997
+ export declare const AuthEnvelopeShrinkImpactedRequestSchema: Type.TObject<{
998
+ requestId: Type.TString;
999
+ missing: Type.TObject<{
1000
+ contracts: Type.TArray<Type.TObject<{
1001
+ contractId: Type.TString;
1002
+ required: Type.TBoolean;
1003
+ }>>;
1004
+ surfaces: Type.TArray<Type.TObject<{
1005
+ contractId: Type.TString;
1006
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1007
+ name: Type.TString;
1008
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
1009
+ required: Type.TBoolean;
1010
+ }>>;
1011
+ capabilities: Type.TArray<Type.TString>;
1012
+ resources: Type.TArray<Type.TObject<{
1013
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
1014
+ alias: Type.TString;
1015
+ required: Type.TBoolean;
1016
+ }>>;
1017
+ }>;
1018
+ }>;
1019
+ export declare const AuthEnvelopeChangeImpactSchema: Type.TObject<{
1020
+ removed: Type.TObject<{
1021
+ contracts: Type.TArray<Type.TObject<{
1022
+ contractId: Type.TString;
1023
+ required: Type.TBoolean;
1024
+ }>>;
1025
+ surfaces: Type.TArray<Type.TObject<{
1026
+ contractId: Type.TString;
1027
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1028
+ name: Type.TString;
1029
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
1030
+ required: Type.TBoolean;
1031
+ }>>;
1032
+ capabilities: Type.TArray<Type.TString>;
1033
+ resources: Type.TArray<Type.TObject<{
1034
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
1035
+ alias: Type.TString;
1036
+ required: Type.TBoolean;
1037
+ }>>;
241
1038
  }>;
1039
+ impactedSessions: Type.TArray<Type.TObject<{
1040
+ sessionKey: Type.TString;
1041
+ type: Type.TUnion<[Type.TUnion<[Type.TLiteral<"app">, Type.TLiteral<"agent">]>, Type.TLiteral<"device">, Type.TLiteral<"service">]>;
1042
+ contractId: Type.TUnion<[Type.TString, Type.TNull]>;
1043
+ contractDigest: Type.TUnion<[Type.TString, Type.TNull]>;
1044
+ missing: Type.TObject<{
1045
+ contracts: Type.TArray<Type.TObject<{
1046
+ contractId: Type.TString;
1047
+ required: Type.TBoolean;
1048
+ }>>;
1049
+ surfaces: Type.TArray<Type.TObject<{
1050
+ contractId: Type.TString;
1051
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1052
+ name: Type.TString;
1053
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
1054
+ required: Type.TBoolean;
1055
+ }>>;
1056
+ capabilities: Type.TArray<Type.TString>;
1057
+ resources: Type.TArray<Type.TObject<{
1058
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
1059
+ alias: Type.TString;
1060
+ required: Type.TBoolean;
1061
+ }>>;
1062
+ }>;
1063
+ }>>;
1064
+ impactedServiceInstances: Type.TArray<Type.TObject<{
1065
+ missing: Type.TObject<{
1066
+ contracts: Type.TArray<Type.TObject<{
1067
+ contractId: Type.TString;
1068
+ required: Type.TBoolean;
1069
+ }>>;
1070
+ surfaces: Type.TArray<Type.TObject<{
1071
+ contractId: Type.TString;
1072
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1073
+ name: Type.TString;
1074
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
1075
+ required: Type.TBoolean;
1076
+ }>>;
1077
+ capabilities: Type.TArray<Type.TString>;
1078
+ resources: Type.TArray<Type.TObject<{
1079
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
1080
+ alias: Type.TString;
1081
+ required: Type.TBoolean;
1082
+ }>>;
1083
+ }>;
1084
+ }>>;
1085
+ impactedDeviceSessions: Type.TArray<Type.TObject<{
1086
+ sessionKey: Type.TString;
1087
+ type: Type.TUnion<[Type.TUnion<[Type.TLiteral<"app">, Type.TLiteral<"agent">]>, Type.TLiteral<"device">, Type.TLiteral<"service">]>;
1088
+ contractId: Type.TUnion<[Type.TString, Type.TNull]>;
1089
+ contractDigest: Type.TUnion<[Type.TString, Type.TNull]>;
1090
+ missing: Type.TObject<{
1091
+ contracts: Type.TArray<Type.TObject<{
1092
+ contractId: Type.TString;
1093
+ required: Type.TBoolean;
1094
+ }>>;
1095
+ surfaces: Type.TArray<Type.TObject<{
1096
+ contractId: Type.TString;
1097
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1098
+ name: Type.TString;
1099
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
1100
+ required: Type.TBoolean;
1101
+ }>>;
1102
+ capabilities: Type.TArray<Type.TString>;
1103
+ resources: Type.TArray<Type.TObject<{
1104
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
1105
+ alias: Type.TString;
1106
+ required: Type.TBoolean;
1107
+ }>>;
1108
+ }>;
1109
+ }>>;
1110
+ impactedIdentityEnvelopes: Type.TArray<Type.TObject<{
1111
+ identityEnvelopeId: Type.TString;
1112
+ identityAnchor: Type.TUnion<[Type.TObject<{
1113
+ kind: Type.TLiteral<"web">;
1114
+ contractId: Type.TString;
1115
+ origin: Type.TString;
1116
+ }>, Type.TObject<{
1117
+ kind: Type.TLiteral<"cli">;
1118
+ contractId: Type.TString;
1119
+ sessionPublicKey: Type.TString;
1120
+ }>, Type.TObject<{
1121
+ kind: Type.TLiteral<"native">;
1122
+ contractId: Type.TString;
1123
+ sessionPublicKey: Type.TString;
1124
+ }>, Type.TObject<{
1125
+ kind: Type.TLiteral<"device-user">;
1126
+ contractId: Type.TString;
1127
+ devicePublicKey: Type.TString;
1128
+ }>]>;
1129
+ missing: Type.TObject<{
1130
+ contracts: Type.TArray<Type.TObject<{
1131
+ contractId: Type.TString;
1132
+ required: Type.TBoolean;
1133
+ }>>;
1134
+ surfaces: Type.TArray<Type.TObject<{
1135
+ contractId: Type.TString;
1136
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1137
+ name: Type.TString;
1138
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
1139
+ required: Type.TBoolean;
1140
+ }>>;
1141
+ capabilities: Type.TArray<Type.TString>;
1142
+ resources: Type.TArray<Type.TObject<{
1143
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
1144
+ alias: Type.TString;
1145
+ required: Type.TBoolean;
1146
+ }>>;
1147
+ }>;
1148
+ }>>;
1149
+ impactedPendingRequests: Type.TArray<Type.TObject<{
1150
+ requestId: Type.TString;
1151
+ missing: Type.TObject<{
1152
+ contracts: Type.TArray<Type.TObject<{
1153
+ contractId: Type.TString;
1154
+ required: Type.TBoolean;
1155
+ }>>;
1156
+ surfaces: Type.TArray<Type.TObject<{
1157
+ contractId: Type.TString;
1158
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1159
+ name: Type.TString;
1160
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
1161
+ required: Type.TBoolean;
1162
+ }>>;
1163
+ capabilities: Type.TArray<Type.TString>;
1164
+ resources: Type.TArray<Type.TObject<{
1165
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
1166
+ alias: Type.TString;
1167
+ required: Type.TBoolean;
1168
+ }>>;
1169
+ }>;
1170
+ }>>;
1171
+ orphanedResources: Type.TArray<Type.TObject<{
1172
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
1173
+ alias: Type.TString;
1174
+ }>>;
242
1175
  }>;
243
- export declare const AuthUnapplyServiceDeploymentContractSchema: Type.TObject<{
1176
+ export type AuthEnvelopeChangeImpact = StaticDecode<typeof AuthEnvelopeChangeImpactSchema>;
1177
+ export declare const AuthEnvelopesChangesPreviewSchema: Type.TObject<{
244
1178
  deploymentId: Type.TString;
245
- contractId: Type.TString;
246
- digests: Type.TOptional<Type.TArray<Type.TString>>;
1179
+ proposedBoundary: Type.TObject<{
1180
+ contracts: Type.TArray<Type.TObject<{
1181
+ contractId: Type.TString;
1182
+ required: Type.TBoolean;
1183
+ }>>;
1184
+ surfaces: Type.TArray<Type.TObject<{
1185
+ contractId: Type.TString;
1186
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1187
+ name: Type.TString;
1188
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
1189
+ required: Type.TBoolean;
1190
+ }>>;
1191
+ capabilities: Type.TArray<Type.TString>;
1192
+ resources: Type.TArray<Type.TObject<{
1193
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
1194
+ alias: Type.TString;
1195
+ required: Type.TBoolean;
1196
+ }>>;
1197
+ }>;
247
1198
  }>;
248
- export declare const AuthUnapplyServiceDeploymentContractResponseSchema: Type.TObject<{
249
- deployment: Type.TObject<{
1199
+ export type AuthEnvelopesChangesPreviewInput = StaticDecode<typeof AuthEnvelopesChangesPreviewSchema>;
1200
+ export declare const AuthEnvelopesChangesPreviewResponseSchema: Type.TObject<{
1201
+ current: Type.TObject<{
250
1202
  deploymentId: Type.TString;
251
- namespaces: Type.TArray<Type.TString>;
1203
+ kind: Type.TUnion<[Type.TLiteral<"service">, Type.TLiteral<"device">, Type.TLiteral<"app">, Type.TLiteral<"cli">, Type.TLiteral<"native">, Type.TLiteral<"device-user">]>;
1204
+ disabled: Type.TBoolean;
1205
+ createdAt: Type.TString;
1206
+ updatedAt: Type.TString;
1207
+ boundary: Type.TObject<{
1208
+ contracts: Type.TArray<Type.TObject<{
1209
+ contractId: Type.TString;
1210
+ required: Type.TBoolean;
1211
+ }>>;
1212
+ surfaces: Type.TArray<Type.TObject<{
1213
+ contractId: Type.TString;
1214
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1215
+ name: Type.TString;
1216
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
1217
+ required: Type.TBoolean;
1218
+ }>>;
1219
+ capabilities: Type.TArray<Type.TString>;
1220
+ resources: Type.TArray<Type.TObject<{
1221
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
1222
+ alias: Type.TString;
1223
+ required: Type.TBoolean;
1224
+ }>>;
1225
+ }>;
1226
+ }>;
1227
+ proposed: Type.TObject<{
1228
+ deploymentId: Type.TString;
1229
+ kind: Type.TUnion<[Type.TLiteral<"service">, Type.TLiteral<"device">, Type.TLiteral<"app">, Type.TLiteral<"cli">, Type.TLiteral<"native">, Type.TLiteral<"device-user">]>;
252
1230
  disabled: Type.TBoolean;
253
- appliedContracts: Type.TArray<Type.TObject<{
1231
+ createdAt: Type.TString;
1232
+ updatedAt: Type.TString;
1233
+ boundary: Type.TObject<{
1234
+ contracts: Type.TArray<Type.TObject<{
1235
+ contractId: Type.TString;
1236
+ required: Type.TBoolean;
1237
+ }>>;
1238
+ surfaces: Type.TArray<Type.TObject<{
1239
+ contractId: Type.TString;
1240
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1241
+ name: Type.TString;
1242
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
1243
+ required: Type.TBoolean;
1244
+ }>>;
1245
+ capabilities: Type.TArray<Type.TString>;
1246
+ resources: Type.TArray<Type.TObject<{
1247
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
1248
+ alias: Type.TString;
1249
+ required: Type.TBoolean;
1250
+ }>>;
1251
+ }>;
1252
+ }>;
1253
+ impact: Type.TObject<{
1254
+ removed: Type.TObject<{
1255
+ contracts: Type.TArray<Type.TObject<{
1256
+ contractId: Type.TString;
1257
+ required: Type.TBoolean;
1258
+ }>>;
1259
+ surfaces: Type.TArray<Type.TObject<{
1260
+ contractId: Type.TString;
1261
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1262
+ name: Type.TString;
1263
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
1264
+ required: Type.TBoolean;
1265
+ }>>;
1266
+ capabilities: Type.TArray<Type.TString>;
1267
+ resources: Type.TArray<Type.TObject<{
1268
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
1269
+ alias: Type.TString;
1270
+ required: Type.TBoolean;
1271
+ }>>;
1272
+ }>;
1273
+ impactedSessions: Type.TArray<Type.TObject<{
1274
+ sessionKey: Type.TString;
1275
+ type: Type.TUnion<[Type.TUnion<[Type.TLiteral<"app">, Type.TLiteral<"agent">]>, Type.TLiteral<"device">, Type.TLiteral<"service">]>;
1276
+ contractId: Type.TUnion<[Type.TString, Type.TNull]>;
1277
+ contractDigest: Type.TUnion<[Type.TString, Type.TNull]>;
1278
+ missing: Type.TObject<{
1279
+ contracts: Type.TArray<Type.TObject<{
1280
+ contractId: Type.TString;
1281
+ required: Type.TBoolean;
1282
+ }>>;
1283
+ surfaces: Type.TArray<Type.TObject<{
1284
+ contractId: Type.TString;
1285
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1286
+ name: Type.TString;
1287
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
1288
+ required: Type.TBoolean;
1289
+ }>>;
1290
+ capabilities: Type.TArray<Type.TString>;
1291
+ resources: Type.TArray<Type.TObject<{
1292
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
1293
+ alias: Type.TString;
1294
+ required: Type.TBoolean;
1295
+ }>>;
1296
+ }>;
1297
+ }>>;
1298
+ impactedServiceInstances: Type.TArray<Type.TObject<{
1299
+ missing: Type.TObject<{
1300
+ contracts: Type.TArray<Type.TObject<{
1301
+ contractId: Type.TString;
1302
+ required: Type.TBoolean;
1303
+ }>>;
1304
+ surfaces: Type.TArray<Type.TObject<{
1305
+ contractId: Type.TString;
1306
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1307
+ name: Type.TString;
1308
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
1309
+ required: Type.TBoolean;
1310
+ }>>;
1311
+ capabilities: Type.TArray<Type.TString>;
1312
+ resources: Type.TArray<Type.TObject<{
1313
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
1314
+ alias: Type.TString;
1315
+ required: Type.TBoolean;
1316
+ }>>;
1317
+ }>;
1318
+ }>>;
1319
+ impactedDeviceSessions: Type.TArray<Type.TObject<{
1320
+ sessionKey: Type.TString;
1321
+ type: Type.TUnion<[Type.TUnion<[Type.TLiteral<"app">, Type.TLiteral<"agent">]>, Type.TLiteral<"device">, Type.TLiteral<"service">]>;
1322
+ contractId: Type.TUnion<[Type.TString, Type.TNull]>;
1323
+ contractDigest: Type.TUnion<[Type.TString, Type.TNull]>;
1324
+ missing: Type.TObject<{
1325
+ contracts: Type.TArray<Type.TObject<{
1326
+ contractId: Type.TString;
1327
+ required: Type.TBoolean;
1328
+ }>>;
1329
+ surfaces: Type.TArray<Type.TObject<{
1330
+ contractId: Type.TString;
1331
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1332
+ name: Type.TString;
1333
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
1334
+ required: Type.TBoolean;
1335
+ }>>;
1336
+ capabilities: Type.TArray<Type.TString>;
1337
+ resources: Type.TArray<Type.TObject<{
1338
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
1339
+ alias: Type.TString;
1340
+ required: Type.TBoolean;
1341
+ }>>;
1342
+ }>;
1343
+ }>>;
1344
+ impactedIdentityEnvelopes: Type.TArray<Type.TObject<{
1345
+ identityEnvelopeId: Type.TString;
1346
+ identityAnchor: Type.TUnion<[Type.TObject<{
1347
+ kind: Type.TLiteral<"web">;
1348
+ contractId: Type.TString;
1349
+ origin: Type.TString;
1350
+ }>, Type.TObject<{
1351
+ kind: Type.TLiteral<"cli">;
1352
+ contractId: Type.TString;
1353
+ sessionPublicKey: Type.TString;
1354
+ }>, Type.TObject<{
1355
+ kind: Type.TLiteral<"native">;
1356
+ contractId: Type.TString;
1357
+ sessionPublicKey: Type.TString;
1358
+ }>, Type.TObject<{
1359
+ kind: Type.TLiteral<"device-user">;
1360
+ contractId: Type.TString;
1361
+ devicePublicKey: Type.TString;
1362
+ }>]>;
1363
+ missing: Type.TObject<{
1364
+ contracts: Type.TArray<Type.TObject<{
1365
+ contractId: Type.TString;
1366
+ required: Type.TBoolean;
1367
+ }>>;
1368
+ surfaces: Type.TArray<Type.TObject<{
1369
+ contractId: Type.TString;
1370
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1371
+ name: Type.TString;
1372
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
1373
+ required: Type.TBoolean;
1374
+ }>>;
1375
+ capabilities: Type.TArray<Type.TString>;
1376
+ resources: Type.TArray<Type.TObject<{
1377
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
1378
+ alias: Type.TString;
1379
+ required: Type.TBoolean;
1380
+ }>>;
1381
+ }>;
1382
+ }>>;
1383
+ impactedPendingRequests: Type.TArray<Type.TObject<{
1384
+ requestId: Type.TString;
1385
+ missing: Type.TObject<{
1386
+ contracts: Type.TArray<Type.TObject<{
1387
+ contractId: Type.TString;
1388
+ required: Type.TBoolean;
1389
+ }>>;
1390
+ surfaces: Type.TArray<Type.TObject<{
1391
+ contractId: Type.TString;
1392
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1393
+ name: Type.TString;
1394
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
1395
+ required: Type.TBoolean;
1396
+ }>>;
1397
+ capabilities: Type.TArray<Type.TString>;
1398
+ resources: Type.TArray<Type.TObject<{
1399
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
1400
+ alias: Type.TString;
1401
+ required: Type.TBoolean;
1402
+ }>>;
1403
+ }>;
1404
+ }>>;
1405
+ orphanedResources: Type.TArray<Type.TObject<{
1406
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
1407
+ alias: Type.TString;
1408
+ }>>;
1409
+ }>;
1410
+ }>;
1411
+ export type AuthEnvelopesChangesPreviewResponse = StaticDecode<typeof AuthEnvelopesChangesPreviewResponseSchema>;
1412
+ export declare const AuthEnvelopesShrinkSchema: Type.TObject<{
1413
+ deploymentId: Type.TString;
1414
+ proposedBoundary: Type.TObject<{
1415
+ contracts: Type.TArray<Type.TObject<{
254
1416
  contractId: Type.TString;
255
- allowedDigests: Type.TArray<Type.TString>;
256
- resourceBindingsByDigest: Type.TOptional<Type.TRecord<"^.*$", any>>;
1417
+ required: Type.TBoolean;
1418
+ }>>;
1419
+ surfaces: Type.TArray<Type.TObject<{
1420
+ contractId: Type.TString;
1421
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1422
+ name: Type.TString;
1423
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
1424
+ required: Type.TBoolean;
1425
+ }>>;
1426
+ capabilities: Type.TArray<Type.TString>;
1427
+ resources: Type.TArray<Type.TObject<{
1428
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
1429
+ alias: Type.TString;
1430
+ required: Type.TBoolean;
1431
+ }>>;
1432
+ }>;
1433
+ confirm: Type.TBoolean;
1434
+ }>;
1435
+ export type AuthEnvelopesShrinkInput = StaticDecode<typeof AuthEnvelopesShrinkSchema>;
1436
+ export declare const AuthEnvelopesShrinkResponseSchema: Type.TObject<{
1437
+ envelope: Type.TObject<{
1438
+ deploymentId: Type.TString;
1439
+ kind: Type.TUnion<[Type.TLiteral<"service">, Type.TLiteral<"device">, Type.TLiteral<"app">, Type.TLiteral<"cli">, Type.TLiteral<"native">, Type.TLiteral<"device-user">]>;
1440
+ disabled: Type.TBoolean;
1441
+ createdAt: Type.TString;
1442
+ updatedAt: Type.TString;
1443
+ boundary: Type.TObject<{
1444
+ contracts: Type.TArray<Type.TObject<{
1445
+ contractId: Type.TString;
1446
+ required: Type.TBoolean;
1447
+ }>>;
1448
+ surfaces: Type.TArray<Type.TObject<{
1449
+ contractId: Type.TString;
1450
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1451
+ name: Type.TString;
1452
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
1453
+ required: Type.TBoolean;
1454
+ }>>;
1455
+ capabilities: Type.TArray<Type.TString>;
1456
+ resources: Type.TArray<Type.TObject<{
1457
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
1458
+ alias: Type.TString;
1459
+ required: Type.TBoolean;
1460
+ }>>;
1461
+ }>;
1462
+ }>;
1463
+ impact: Type.TObject<{
1464
+ removed: Type.TObject<{
1465
+ contracts: Type.TArray<Type.TObject<{
1466
+ contractId: Type.TString;
1467
+ required: Type.TBoolean;
1468
+ }>>;
1469
+ surfaces: Type.TArray<Type.TObject<{
1470
+ contractId: Type.TString;
1471
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1472
+ name: Type.TString;
1473
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
1474
+ required: Type.TBoolean;
1475
+ }>>;
1476
+ capabilities: Type.TArray<Type.TString>;
1477
+ resources: Type.TArray<Type.TObject<{
1478
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
1479
+ alias: Type.TString;
1480
+ required: Type.TBoolean;
1481
+ }>>;
1482
+ }>;
1483
+ impactedSessions: Type.TArray<Type.TObject<{
1484
+ sessionKey: Type.TString;
1485
+ type: Type.TUnion<[Type.TUnion<[Type.TLiteral<"app">, Type.TLiteral<"agent">]>, Type.TLiteral<"device">, Type.TLiteral<"service">]>;
1486
+ contractId: Type.TUnion<[Type.TString, Type.TNull]>;
1487
+ contractDigest: Type.TUnion<[Type.TString, Type.TNull]>;
1488
+ missing: Type.TObject<{
1489
+ contracts: Type.TArray<Type.TObject<{
1490
+ contractId: Type.TString;
1491
+ required: Type.TBoolean;
1492
+ }>>;
1493
+ surfaces: Type.TArray<Type.TObject<{
1494
+ contractId: Type.TString;
1495
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1496
+ name: Type.TString;
1497
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
1498
+ required: Type.TBoolean;
1499
+ }>>;
1500
+ capabilities: Type.TArray<Type.TString>;
1501
+ resources: Type.TArray<Type.TObject<{
1502
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
1503
+ alias: Type.TString;
1504
+ required: Type.TBoolean;
1505
+ }>>;
1506
+ }>;
1507
+ }>>;
1508
+ impactedServiceInstances: Type.TArray<Type.TObject<{
1509
+ missing: Type.TObject<{
1510
+ contracts: Type.TArray<Type.TObject<{
1511
+ contractId: Type.TString;
1512
+ required: Type.TBoolean;
1513
+ }>>;
1514
+ surfaces: Type.TArray<Type.TObject<{
1515
+ contractId: Type.TString;
1516
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1517
+ name: Type.TString;
1518
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
1519
+ required: Type.TBoolean;
1520
+ }>>;
1521
+ capabilities: Type.TArray<Type.TString>;
1522
+ resources: Type.TArray<Type.TObject<{
1523
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
1524
+ alias: Type.TString;
1525
+ required: Type.TBoolean;
1526
+ }>>;
1527
+ }>;
1528
+ }>>;
1529
+ impactedDeviceSessions: Type.TArray<Type.TObject<{
1530
+ sessionKey: Type.TString;
1531
+ type: Type.TUnion<[Type.TUnion<[Type.TLiteral<"app">, Type.TLiteral<"agent">]>, Type.TLiteral<"device">, Type.TLiteral<"service">]>;
1532
+ contractId: Type.TUnion<[Type.TString, Type.TNull]>;
1533
+ contractDigest: Type.TUnion<[Type.TString, Type.TNull]>;
1534
+ missing: Type.TObject<{
1535
+ contracts: Type.TArray<Type.TObject<{
1536
+ contractId: Type.TString;
1537
+ required: Type.TBoolean;
1538
+ }>>;
1539
+ surfaces: Type.TArray<Type.TObject<{
1540
+ contractId: Type.TString;
1541
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1542
+ name: Type.TString;
1543
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
1544
+ required: Type.TBoolean;
1545
+ }>>;
1546
+ capabilities: Type.TArray<Type.TString>;
1547
+ resources: Type.TArray<Type.TObject<{
1548
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
1549
+ alias: Type.TString;
1550
+ required: Type.TBoolean;
1551
+ }>>;
1552
+ }>;
1553
+ }>>;
1554
+ impactedIdentityEnvelopes: Type.TArray<Type.TObject<{
1555
+ identityEnvelopeId: Type.TString;
1556
+ identityAnchor: Type.TUnion<[Type.TObject<{
1557
+ kind: Type.TLiteral<"web">;
1558
+ contractId: Type.TString;
1559
+ origin: Type.TString;
1560
+ }>, Type.TObject<{
1561
+ kind: Type.TLiteral<"cli">;
1562
+ contractId: Type.TString;
1563
+ sessionPublicKey: Type.TString;
1564
+ }>, Type.TObject<{
1565
+ kind: Type.TLiteral<"native">;
1566
+ contractId: Type.TString;
1567
+ sessionPublicKey: Type.TString;
1568
+ }>, Type.TObject<{
1569
+ kind: Type.TLiteral<"device-user">;
1570
+ contractId: Type.TString;
1571
+ devicePublicKey: Type.TString;
1572
+ }>]>;
1573
+ missing: Type.TObject<{
1574
+ contracts: Type.TArray<Type.TObject<{
1575
+ contractId: Type.TString;
1576
+ required: Type.TBoolean;
1577
+ }>>;
1578
+ surfaces: Type.TArray<Type.TObject<{
1579
+ contractId: Type.TString;
1580
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1581
+ name: Type.TString;
1582
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
1583
+ required: Type.TBoolean;
1584
+ }>>;
1585
+ capabilities: Type.TArray<Type.TString>;
1586
+ resources: Type.TArray<Type.TObject<{
1587
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
1588
+ alias: Type.TString;
1589
+ required: Type.TBoolean;
1590
+ }>>;
1591
+ }>;
257
1592
  }>>;
258
- }>;
259
- }>;
260
- export declare const AuthDisableServiceDeploymentSchema: Type.TObject<{
261
- deploymentId: Type.TString;
262
- }>;
263
- export declare const AuthDisableServiceDeploymentResponseSchema: Type.TObject<{
264
- deployment: Type.TObject<{
265
- deploymentId: Type.TString;
266
- namespaces: Type.TArray<Type.TString>;
267
- disabled: Type.TBoolean;
268
- appliedContracts: Type.TArray<Type.TObject<{
269
- contractId: Type.TString;
270
- allowedDigests: Type.TArray<Type.TString>;
271
- resourceBindingsByDigest: Type.TOptional<Type.TRecord<"^.*$", any>>;
1593
+ impactedPendingRequests: Type.TArray<Type.TObject<{
1594
+ requestId: Type.TString;
1595
+ missing: Type.TObject<{
1596
+ contracts: Type.TArray<Type.TObject<{
1597
+ contractId: Type.TString;
1598
+ required: Type.TBoolean;
1599
+ }>>;
1600
+ surfaces: Type.TArray<Type.TObject<{
1601
+ contractId: Type.TString;
1602
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1603
+ name: Type.TString;
1604
+ action: Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"read">, Type.TLiteral<"cancel">]>;
1605
+ required: Type.TBoolean;
1606
+ }>>;
1607
+ capabilities: Type.TArray<Type.TString>;
1608
+ resources: Type.TArray<Type.TObject<{
1609
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
1610
+ alias: Type.TString;
1611
+ required: Type.TBoolean;
1612
+ }>>;
1613
+ }>;
272
1614
  }>>;
273
- }>;
274
- }>;
275
- export declare const AuthEnableServiceDeploymentSchema: Type.TObject<{
276
- deploymentId: Type.TString;
277
- }>;
278
- export declare const AuthEnableServiceDeploymentResponseSchema: Type.TObject<{
279
- deployment: Type.TObject<{
280
- deploymentId: Type.TString;
281
- namespaces: Type.TArray<Type.TString>;
282
- disabled: Type.TBoolean;
283
- appliedContracts: Type.TArray<Type.TObject<{
284
- contractId: Type.TString;
285
- allowedDigests: Type.TArray<Type.TString>;
286
- resourceBindingsByDigest: Type.TOptional<Type.TRecord<"^.*$", any>>;
1615
+ orphanedResources: Type.TArray<Type.TObject<{
1616
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
1617
+ alias: Type.TString;
287
1618
  }>>;
288
1619
  }>;
1620
+ retainedResources: Type.TArray<Type.TObject<{
1621
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"transfer">]>;
1622
+ alias: Type.TString;
1623
+ }>>;
289
1624
  }>;
290
- export declare const AuthRemoveServiceDeploymentSchema: Type.TObject<{
291
- deploymentId: Type.TString;
292
- }>;
293
- export declare const AuthRemoveServiceDeploymentResponseSchema: Type.TObject<{
294
- success: Type.TBoolean;
295
- }>;
296
- export declare const AuthProvisionServiceInstanceSchema: Type.TObject<{
1625
+ export type AuthEnvelopesShrinkResponse = StaticDecode<typeof AuthEnvelopesShrinkResponseSchema>;
1626
+ export declare const AuthServiceInstancesProvisionSchema: Type.TObject<{
297
1627
  deploymentId: Type.TString;
298
1628
  instanceKey: Type.TString;
299
1629
  }>;
300
- export declare const AuthProvisionServiceInstanceResponseSchema: Type.TObject<{
1630
+ export declare const AuthServiceInstancesProvisionResponseSchema: Type.TObject<{
301
1631
  instance: Type.TObject<{
302
1632
  instanceId: Type.TString;
303
1633
  deploymentId: Type.TString;
@@ -310,12 +1640,14 @@ export declare const AuthProvisionServiceInstanceResponseSchema: Type.TObject<{
310
1640
  createdAt: Type.TString;
311
1641
  }>;
312
1642
  }>;
313
- export declare const AuthListServiceInstancesSchema: Type.TObject<{
1643
+ export declare const AuthServiceInstancesListSchema: Type.TObject<{
314
1644
  deploymentId: Type.TOptional<Type.TString>;
315
1645
  disabled: Type.TOptional<Type.TBoolean>;
1646
+ offset: Type.TOptional<Type.TInteger>;
1647
+ limit: Type.TInteger;
316
1648
  }>;
317
- export declare const AuthListServiceInstancesResponseSchema: Type.TObject<{
318
- instances: Type.TArray<Type.TObject<{
1649
+ export declare const AuthServiceInstancesListResponseSchema: Type.TObject<{
1650
+ entries: Type.TArray<Type.TObject<{
319
1651
  instanceId: Type.TString;
320
1652
  deploymentId: Type.TString;
321
1653
  instanceKey: Type.TString;
@@ -326,11 +1658,15 @@ export declare const AuthListServiceInstancesResponseSchema: Type.TObject<{
326
1658
  resourceBindings: any;
327
1659
  createdAt: Type.TString;
328
1660
  }>>;
1661
+ count: Type.TInteger;
1662
+ offset: Type.TInteger;
1663
+ limit: Type.TInteger;
1664
+ nextOffset: Type.TOptional<Type.TInteger>;
329
1665
  }>;
330
- export declare const AuthDisableServiceInstanceSchema: Type.TObject<{
1666
+ export declare const AuthServiceInstancesDisableSchema: Type.TObject<{
331
1667
  instanceId: Type.TString;
332
1668
  }>;
333
- export declare const AuthDisableServiceInstanceResponseSchema: Type.TObject<{
1669
+ export declare const AuthServiceInstancesDisableResponseSchema: Type.TObject<{
334
1670
  instance: Type.TObject<{
335
1671
  instanceId: Type.TString;
336
1672
  deploymentId: Type.TString;
@@ -343,10 +1679,10 @@ export declare const AuthDisableServiceInstanceResponseSchema: Type.TObject<{
343
1679
  createdAt: Type.TString;
344
1680
  }>;
345
1681
  }>;
346
- export declare const AuthEnableServiceInstanceSchema: Type.TObject<{
1682
+ export declare const AuthServiceInstancesEnableSchema: Type.TObject<{
347
1683
  instanceId: Type.TString;
348
1684
  }>;
349
- export declare const AuthEnableServiceInstanceResponseSchema: Type.TObject<{
1685
+ export declare const AuthServiceInstancesEnableResponseSchema: Type.TObject<{
350
1686
  instance: Type.TObject<{
351
1687
  instanceId: Type.TString;
352
1688
  deploymentId: Type.TString;
@@ -359,10 +1695,10 @@ export declare const AuthEnableServiceInstanceResponseSchema: Type.TObject<{
359
1695
  createdAt: Type.TString;
360
1696
  }>;
361
1697
  }>;
362
- export declare const AuthRemoveServiceInstanceSchema: Type.TObject<{
1698
+ export declare const AuthServiceInstancesRemoveSchema: Type.TObject<{
363
1699
  instanceId: Type.TString;
364
1700
  }>;
365
- export declare const AuthRemoveServiceInstanceResponseSchema: Type.TObject<{
1701
+ export declare const AuthServiceInstancesRemoveResponseSchema: Type.TObject<{
366
1702
  success: Type.TBoolean;
367
1703
  }>;
368
1704
  export declare const ContractAnalysisSummarySchema: Type.TObject<{
@@ -550,305 +1886,29 @@ export declare const ContractAnalysisSchema: Type.TObject<{
550
1886
  }>>;
551
1887
  }>;
552
1888
  }>;
553
- export declare const InstalledContractSchema: Type.TObject<{
554
- digest: Type.TString;
555
- id: Type.TString;
556
- displayName: Type.TString;
557
- description: Type.TString;
558
- installedAt: Type.TString;
559
- analysisSummary: Type.TOptional<Type.TObject<{
560
- namespaces: Type.TArray<Type.TString>;
561
- rpcMethods: Type.TNumber;
562
- operations: Type.TNumber;
563
- operationControls: Type.TNumber;
564
- events: Type.TNumber;
565
- natsPublish: Type.TNumber;
566
- natsSubscribe: Type.TNumber;
567
- kvResources: Type.TNumber;
568
- storeResources: Type.TNumber;
569
- jobsQueues: Type.TNumber;
570
- }>>;
571
- }>;
572
- export declare const InstalledContractDetailSchema: Type.TObject<{
573
- digest: Type.TString;
574
- id: Type.TString;
575
- displayName: Type.TString;
576
- description: Type.TString;
577
- installedAt: Type.TString;
578
- analysisSummary: Type.TOptional<Type.TObject<{
579
- namespaces: Type.TArray<Type.TString>;
580
- rpcMethods: Type.TNumber;
581
- operations: Type.TNumber;
582
- operationControls: Type.TNumber;
583
- events: Type.TNumber;
584
- natsPublish: Type.TNumber;
585
- natsSubscribe: Type.TNumber;
586
- kvResources: Type.TNumber;
587
- storeResources: Type.TNumber;
588
- jobsQueues: Type.TNumber;
589
- }>>;
590
- analysis: Type.TOptional<Type.TObject<{
591
- namespaces: Type.TArray<Type.TString>;
592
- rpc: Type.TObject<{
593
- methods: Type.TArray<Type.TObject<{
594
- key: Type.TString;
595
- subject: Type.TString;
596
- wildcardSubject: Type.TString;
597
- callerCapabilities: Type.TArray<Type.TString>;
598
- }>>;
599
- }>;
600
- operations: Type.TObject<{
601
- operations: Type.TArray<Type.TObject<{
602
- key: Type.TString;
603
- subject: Type.TString;
604
- wildcardSubject: Type.TString;
605
- controlSubject: Type.TString;
606
- wildcardControlSubject: Type.TString;
607
- callCapabilities: Type.TArray<Type.TString>;
608
- readCapabilities: Type.TArray<Type.TString>;
609
- cancelCapabilities: Type.TArray<Type.TString>;
610
- cancel: Type.TBoolean;
611
- }>>;
612
- control: Type.TArray<Type.TObject<{
613
- key: Type.TString;
614
- action: Type.TUnion<[Type.TLiteral<"get">, Type.TLiteral<"wait">, Type.TLiteral<"watch">, Type.TLiteral<"cancel">]>;
615
- subject: Type.TString;
616
- wildcardSubject: Type.TString;
617
- requiredCapabilities: Type.TArray<Type.TString>;
618
- }>>;
619
- }>;
620
- events: Type.TObject<{
621
- events: Type.TArray<Type.TObject<{
622
- key: Type.TString;
623
- subject: Type.TString;
624
- wildcardSubject: Type.TString;
625
- publishCapabilities: Type.TArray<Type.TString>;
626
- subscribeCapabilities: Type.TArray<Type.TString>;
627
- }>>;
628
- }>;
629
- subjects: Type.TOptional<Type.TObject<{
630
- subjects: Type.TArray<Type.TObject<{
631
- key: Type.TString;
632
- subject: Type.TString;
633
- publishCapabilities: Type.TArray<Type.TString>;
634
- subscribeCapabilities: Type.TArray<Type.TString>;
635
- }>>;
636
- }>>;
637
- nats: Type.TObject<{
638
- publish: Type.TArray<Type.TObject<{
639
- kind: Type.TString;
640
- subject: Type.TString;
641
- wildcardSubject: Type.TString;
642
- requiredCapabilities: Type.TArray<Type.TString>;
643
- }>>;
644
- subscribe: Type.TArray<Type.TObject<{
645
- kind: Type.TString;
646
- subject: Type.TString;
647
- wildcardSubject: Type.TString;
648
- requiredCapabilities: Type.TArray<Type.TString>;
649
- }>>;
650
- }>;
651
- resources: Type.TObject<{
652
- kv: Type.TArray<Type.TObject<{
653
- alias: Type.TString;
654
- purpose: Type.TString;
655
- required: Type.TBoolean;
656
- history: Type.TNumber;
657
- ttlMs: Type.TNumber;
658
- maxValueBytes: Type.TOptional<Type.TNumber>;
659
- }>>;
660
- store: Type.TArray<Type.TObject<{
661
- alias: Type.TString;
662
- purpose: Type.TString;
663
- required: Type.TBoolean;
664
- ttlMs: Type.TNumber;
665
- maxObjectBytes: Type.TOptional<Type.TNumber>;
666
- maxTotalBytes: Type.TOptional<Type.TNumber>;
667
- }>>;
668
- jobs: Type.TArray<Type.TObject<{
669
- queueType: Type.TString;
670
- payload: Type.TObject<{
671
- schema: Type.TString;
672
- }>;
673
- result: Type.TOptional<Type.TObject<{
674
- schema: Type.TString;
675
- }>>;
676
- maxDeliver: Type.TNumber;
677
- backoffMs: Type.TArray<Type.TNumber>;
678
- ackWaitMs: Type.TNumber;
679
- defaultDeadlineMs: Type.TOptional<Type.TNumber>;
680
- progress: Type.TBoolean;
681
- logs: Type.TBoolean;
682
- dlq: Type.TBoolean;
683
- concurrency: Type.TNumber;
684
- }>>;
685
- }>;
686
- }>>;
687
- resources: any;
688
- contract: Type.TUnsafe<Record<string, unknown>>;
689
- }>;
690
- export declare const AuthListInstalledContractsSchema: Type.TObject<{}>;
691
- export declare const AuthListInstalledContractsResponseSchema: Type.TObject<{
692
- contracts: Type.TArray<Type.TObject<{
693
- digest: Type.TString;
694
- id: Type.TString;
695
- displayName: Type.TString;
696
- description: Type.TString;
697
- installedAt: Type.TString;
698
- analysisSummary: Type.TOptional<Type.TObject<{
699
- namespaces: Type.TArray<Type.TString>;
700
- rpcMethods: Type.TNumber;
701
- operations: Type.TNumber;
702
- operationControls: Type.TNumber;
703
- events: Type.TNumber;
704
- natsPublish: Type.TNumber;
705
- natsSubscribe: Type.TNumber;
706
- kvResources: Type.TNumber;
707
- storeResources: Type.TNumber;
708
- jobsQueues: Type.TNumber;
709
- }>>;
710
- }>>;
711
- }>;
712
- export declare const AuthGetInstalledContractSchema: Type.TObject<{
713
- digest: Type.TString;
714
- }>;
715
- export declare const AuthGetInstalledContractResponseSchema: Type.TObject<{
716
- contract: Type.TObject<{
717
- digest: Type.TString;
718
- id: Type.TString;
719
- displayName: Type.TString;
720
- description: Type.TString;
721
- installedAt: Type.TString;
722
- analysisSummary: Type.TOptional<Type.TObject<{
723
- namespaces: Type.TArray<Type.TString>;
724
- rpcMethods: Type.TNumber;
725
- operations: Type.TNumber;
726
- operationControls: Type.TNumber;
727
- events: Type.TNumber;
728
- natsPublish: Type.TNumber;
729
- natsSubscribe: Type.TNumber;
730
- kvResources: Type.TNumber;
731
- storeResources: Type.TNumber;
732
- jobsQueues: Type.TNumber;
733
- }>>;
734
- analysis: Type.TOptional<Type.TObject<{
735
- namespaces: Type.TArray<Type.TString>;
736
- rpc: Type.TObject<{
737
- methods: Type.TArray<Type.TObject<{
738
- key: Type.TString;
739
- subject: Type.TString;
740
- wildcardSubject: Type.TString;
741
- callerCapabilities: Type.TArray<Type.TString>;
742
- }>>;
743
- }>;
744
- operations: Type.TObject<{
745
- operations: Type.TArray<Type.TObject<{
746
- key: Type.TString;
747
- subject: Type.TString;
748
- wildcardSubject: Type.TString;
749
- controlSubject: Type.TString;
750
- wildcardControlSubject: Type.TString;
751
- callCapabilities: Type.TArray<Type.TString>;
752
- readCapabilities: Type.TArray<Type.TString>;
753
- cancelCapabilities: Type.TArray<Type.TString>;
754
- cancel: Type.TBoolean;
755
- }>>;
756
- control: Type.TArray<Type.TObject<{
757
- key: Type.TString;
758
- action: Type.TUnion<[Type.TLiteral<"get">, Type.TLiteral<"wait">, Type.TLiteral<"watch">, Type.TLiteral<"cancel">]>;
759
- subject: Type.TString;
760
- wildcardSubject: Type.TString;
761
- requiredCapabilities: Type.TArray<Type.TString>;
762
- }>>;
763
- }>;
764
- events: Type.TObject<{
765
- events: Type.TArray<Type.TObject<{
766
- key: Type.TString;
767
- subject: Type.TString;
768
- wildcardSubject: Type.TString;
769
- publishCapabilities: Type.TArray<Type.TString>;
770
- subscribeCapabilities: Type.TArray<Type.TString>;
771
- }>>;
772
- }>;
773
- subjects: Type.TOptional<Type.TObject<{
774
- subjects: Type.TArray<Type.TObject<{
775
- key: Type.TString;
776
- subject: Type.TString;
777
- publishCapabilities: Type.TArray<Type.TString>;
778
- subscribeCapabilities: Type.TArray<Type.TString>;
779
- }>>;
780
- }>>;
781
- nats: Type.TObject<{
782
- publish: Type.TArray<Type.TObject<{
783
- kind: Type.TString;
784
- subject: Type.TString;
785
- wildcardSubject: Type.TString;
786
- requiredCapabilities: Type.TArray<Type.TString>;
787
- }>>;
788
- subscribe: Type.TArray<Type.TObject<{
789
- kind: Type.TString;
790
- subject: Type.TString;
791
- wildcardSubject: Type.TString;
792
- requiredCapabilities: Type.TArray<Type.TString>;
793
- }>>;
794
- }>;
795
- resources: Type.TObject<{
796
- kv: Type.TArray<Type.TObject<{
797
- alias: Type.TString;
798
- purpose: Type.TString;
799
- required: Type.TBoolean;
800
- history: Type.TNumber;
801
- ttlMs: Type.TNumber;
802
- maxValueBytes: Type.TOptional<Type.TNumber>;
803
- }>>;
804
- store: Type.TArray<Type.TObject<{
805
- alias: Type.TString;
806
- purpose: Type.TString;
807
- required: Type.TBoolean;
808
- ttlMs: Type.TNumber;
809
- maxObjectBytes: Type.TOptional<Type.TNumber>;
810
- maxTotalBytes: Type.TOptional<Type.TNumber>;
811
- }>>;
812
- jobs: Type.TArray<Type.TObject<{
813
- queueType: Type.TString;
814
- payload: Type.TObject<{
815
- schema: Type.TString;
816
- }>;
817
- result: Type.TOptional<Type.TObject<{
818
- schema: Type.TString;
819
- }>>;
820
- maxDeliver: Type.TNumber;
821
- backoffMs: Type.TArray<Type.TNumber>;
822
- ackWaitMs: Type.TNumber;
823
- defaultDeadlineMs: Type.TOptional<Type.TNumber>;
824
- progress: Type.TBoolean;
825
- logs: Type.TBoolean;
826
- dlq: Type.TBoolean;
827
- concurrency: Type.TNumber;
828
- }>>;
829
- }>;
830
- }>>;
831
- resources: any;
832
- contract: Type.TUnsafe<Record<string, unknown>>;
833
- }>;
834
- }>;
835
1889
  export declare const AuthenticatedUserSchema: Type.TObject<{
836
- id: Type.TString;
837
- origin: Type.TString;
1890
+ userId: Type.TString;
838
1891
  active: Type.TBoolean;
839
1892
  name: Type.TString;
840
1893
  email: Type.TString;
841
1894
  image: Type.TOptional<Type.TString>;
842
1895
  capabilities: Type.TArray<Type.TString>;
1896
+ identity: Type.TObject<{
1897
+ identityId: Type.TString;
1898
+ provider: Type.TString;
1899
+ subject: Type.TString;
1900
+ }>;
843
1901
  lastLogin: Type.TOptional<Type.TString>;
844
1902
  }>;
845
1903
  export type AuthenticatedUser = StaticDecode<typeof AuthenticatedUserSchema>;
846
- export declare const AuthMeSchema: Type.TObject<{}>;
847
- export declare const AuthValidateRequestSchema: Type.TObject<{
1904
+ export declare const AuthSessionsMeSchema: Type.TObject<{}>;
1905
+ export declare const AuthRequestsValidateSchema: Type.TObject<{
848
1906
  sessionKey: Type.TString;
849
1907
  proof: Type.TString;
850
1908
  subject: Type.TString;
851
1909
  payloadHash: Type.TString;
1910
+ iat: Type.TInteger;
1911
+ requestId: Type.TString;
852
1912
  capabilities: Type.TOptional<Type.TArray<Type.TString>>;
853
1913
  }>;
854
1914
  export declare const AuthenticatedServiceSchema: Type.TObject<{
@@ -869,16 +1929,20 @@ export declare const AuthenticatedDeviceSchema: Type.TObject<{
869
1929
  capabilities: Type.TArray<Type.TString>;
870
1930
  }>;
871
1931
  export type AuthenticatedDevice = StaticDecode<typeof AuthenticatedDeviceSchema>;
872
- export declare const AuthMeResponseSchema: Type.TObject<{
1932
+ export declare const AuthSessionsMeResponseSchema: Type.TObject<{
873
1933
  participantKind: Type.TUnion<[Type.TUnion<[Type.TLiteral<"app">, Type.TLiteral<"agent">]>, Type.TLiteral<"device">, Type.TLiteral<"service">]>;
874
1934
  user: Type.TUnion<[Type.TObject<{
875
- id: Type.TString;
876
- origin: Type.TString;
1935
+ userId: Type.TString;
877
1936
  active: Type.TBoolean;
878
1937
  name: Type.TString;
879
1938
  email: Type.TString;
880
1939
  image: Type.TOptional<Type.TString>;
881
1940
  capabilities: Type.TArray<Type.TString>;
1941
+ identity: Type.TObject<{
1942
+ identityId: Type.TString;
1943
+ provider: Type.TString;
1944
+ subject: Type.TString;
1945
+ }>;
882
1946
  lastLogin: Type.TOptional<Type.TString>;
883
1947
  }>, Type.TNull]>;
884
1948
  device: Type.TUnion<[Type.TObject<{
@@ -898,18 +1962,22 @@ export declare const AuthMeResponseSchema: Type.TObject<{
898
1962
  capabilities: Type.TArray<Type.TString>;
899
1963
  }>, Type.TNull]>;
900
1964
  }>;
901
- export type AuthMeResponse = StaticDecode<typeof AuthMeResponseSchema>;
1965
+ export type AuthSessionsMeResponse = StaticDecode<typeof AuthSessionsMeResponseSchema>;
902
1966
  export declare const CallerViewSchema: Type.TUnion<[Type.TObject<{
903
1967
  type: Type.TLiteral<"user">;
904
1968
  participantKind: Type.TUnion<[Type.TLiteral<"app">, Type.TLiteral<"agent">]>;
905
- trellisId: Type.TString;
906
- id: Type.TString;
907
- origin: Type.TString;
1969
+ userId: Type.TString;
1970
+ identity: Type.TObject<{
1971
+ identityId: Type.TString;
1972
+ provider: Type.TString;
1973
+ subject: Type.TString;
1974
+ }>;
908
1975
  active: Type.TBoolean;
909
1976
  name: Type.TString;
910
1977
  email: Type.TString;
911
1978
  image: Type.TOptional<Type.TString>;
912
1979
  capabilities: Type.TArray<Type.TString>;
1980
+ lastAuth: Type.TString;
913
1981
  }>, Type.TObject<{
914
1982
  type: Type.TLiteral<"service">;
915
1983
  id: Type.TString;
@@ -925,20 +1993,24 @@ export declare const CallerViewSchema: Type.TUnion<[Type.TObject<{
925
1993
  active: Type.TBoolean;
926
1994
  capabilities: Type.TArray<Type.TString>;
927
1995
  }>]>;
928
- export declare const AuthValidateRequestResponseSchema: Type.TObject<{
1996
+ export declare const AuthRequestsValidateResponseSchema: Type.TObject<{
929
1997
  allowed: Type.TBoolean;
930
1998
  inboxPrefix: Type.TString;
931
1999
  caller: Type.TUnion<[Type.TObject<{
932
2000
  type: Type.TLiteral<"user">;
933
2001
  participantKind: Type.TUnion<[Type.TLiteral<"app">, Type.TLiteral<"agent">]>;
934
- trellisId: Type.TString;
935
- id: Type.TString;
936
- origin: Type.TString;
2002
+ userId: Type.TString;
2003
+ identity: Type.TObject<{
2004
+ identityId: Type.TString;
2005
+ provider: Type.TString;
2006
+ subject: Type.TString;
2007
+ }>;
937
2008
  active: Type.TBoolean;
938
2009
  name: Type.TString;
939
2010
  email: Type.TString;
940
2011
  image: Type.TOptional<Type.TString>;
941
2012
  capabilities: Type.TArray<Type.TString>;
2013
+ lastAuth: Type.TString;
942
2014
  }>, Type.TObject<{
943
2015
  type: Type.TLiteral<"service">;
944
2016
  id: Type.TString;
@@ -955,36 +2027,83 @@ export declare const AuthValidateRequestResponseSchema: Type.TObject<{
955
2027
  capabilities: Type.TArray<Type.TString>;
956
2028
  }>]>;
957
2029
  }>;
958
- export declare const AuthListApprovalsSchema: Type.TObject<{
2030
+ export declare const AuthIdentitiesListSchema: Type.TObject<{
959
2031
  user: Type.TOptional<Type.TString>;
960
- digest: Type.TOptional<Type.TString>;
2032
+ offset: Type.TOptional<Type.TInteger>;
2033
+ limit: Type.TInteger;
961
2034
  }>;
962
- export declare const AuthListApprovalsResponseSchema: Type.TObject<{
963
- approvals: Type.TArray<Type.TObject<{
2035
+ export declare const AuthIdentitiesListResponseSchema: Type.TObject<{
2036
+ entries: Type.TArray<Type.TObject<{
964
2037
  user: Type.TString;
965
2038
  answer: Type.TUnion<[Type.TLiteral<"approved">, Type.TLiteral<"denied">]>;
966
2039
  answeredAt: Type.TString;
967
2040
  updatedAt: Type.TString;
968
- approval: Type.TObject<{
2041
+ identityEnvelopeId: Type.TString;
2042
+ identityAnchor: Type.TUnion<[Type.TObject<{
2043
+ kind: Type.TLiteral<"web">;
2044
+ contractId: Type.TString;
2045
+ origin: Type.TString;
2046
+ }>, Type.TObject<{
2047
+ kind: Type.TLiteral<"cli">;
2048
+ contractId: Type.TString;
2049
+ sessionPublicKey: Type.TString;
2050
+ }>, Type.TObject<{
2051
+ kind: Type.TLiteral<"native">;
2052
+ contractId: Type.TString;
2053
+ sessionPublicKey: Type.TString;
2054
+ }>, Type.TObject<{
2055
+ kind: Type.TLiteral<"device-user">;
2056
+ contractId: Type.TString;
2057
+ devicePublicKey: Type.TString;
2058
+ }>]>;
2059
+ contractEvidence: Type.TObject<{
969
2060
  contractDigest: Type.TString;
970
2061
  contractId: Type.TString;
2062
+ }>;
2063
+ displayName: Type.TString;
2064
+ description: Type.TString;
2065
+ capabilities: Type.TRecord<"^.*$", Type.TObject<{
971
2066
  displayName: Type.TString;
972
2067
  description: Type.TString;
973
- capabilities: Type.TArray<Type.TString>;
974
- }>;
2068
+ consequence: Type.TOptional<Type.TString>;
2069
+ }>>;
975
2070
  participantKind: Type.TUnion<[Type.TLiteral<"app">, Type.TLiteral<"agent">]>;
976
2071
  }>>;
2072
+ count: Type.TInteger;
2073
+ offset: Type.TInteger;
2074
+ limit: Type.TInteger;
2075
+ nextOffset: Type.TOptional<Type.TInteger>;
977
2076
  }>;
978
- export declare const AuthRevokeApprovalSchema: Type.TObject<{
979
- contractDigest: Type.TString;
2077
+ export declare const AuthIdentityEnvelopesRevokeSchema: Type.TObject<{
2078
+ identityEnvelopeId: Type.TString;
980
2079
  user: Type.TOptional<Type.TString>;
981
2080
  }>;
982
- export declare const AuthRevokeApprovalResponseSchema: Type.TObject<{
2081
+ export declare const AuthIdentityEnvelopesRevokeResponseSchema: Type.TObject<{
983
2082
  success: Type.TBoolean;
984
2083
  }>;
985
2084
  export declare const UserGrantViewSchema: Type.TObject<{
986
- contractDigest: Type.TString;
987
- contractId: Type.TString;
2085
+ identityEnvelopeId: Type.TString;
2086
+ identityAnchor: Type.TUnion<[Type.TObject<{
2087
+ kind: Type.TLiteral<"web">;
2088
+ contractId: Type.TString;
2089
+ origin: Type.TString;
2090
+ }>, Type.TObject<{
2091
+ kind: Type.TLiteral<"cli">;
2092
+ contractId: Type.TString;
2093
+ sessionPublicKey: Type.TString;
2094
+ }>, Type.TObject<{
2095
+ kind: Type.TLiteral<"native">;
2096
+ contractId: Type.TString;
2097
+ sessionPublicKey: Type.TString;
2098
+ }>, Type.TObject<{
2099
+ kind: Type.TLiteral<"device-user">;
2100
+ contractId: Type.TString;
2101
+ devicePublicKey: Type.TString;
2102
+ }>]>;
2103
+ contractEvidence: Type.TObject<{
2104
+ contractDigest: Type.TString;
2105
+ contractId: Type.TString;
2106
+ }>;
988
2107
  displayName: Type.TString;
989
2108
  description: Type.TString;
990
2109
  participantKind: Type.TUnion<[Type.TLiteral<"app">, Type.TLiteral<"agent">]>;
@@ -993,11 +2112,34 @@ export declare const UserGrantViewSchema: Type.TObject<{
993
2112
  updatedAt: Type.TString;
994
2113
  }>;
995
2114
  export type UserGrantView = StaticDecode<typeof UserGrantViewSchema>;
996
- export declare const AuthListUserGrantsSchema: Type.TObject<{}>;
997
- export declare const AuthListUserGrantsResponseSchema: Type.TObject<{
998
- grants: Type.TArray<Type.TObject<{
999
- contractDigest: Type.TString;
1000
- contractId: Type.TString;
2115
+ export declare const AuthIdentitiesGrantsListSchema: Type.TObject<{
2116
+ offset: Type.TOptional<Type.TInteger>;
2117
+ limit: Type.TInteger;
2118
+ }>;
2119
+ export declare const AuthIdentitiesGrantsListResponseSchema: Type.TObject<{
2120
+ entries: Type.TArray<Type.TObject<{
2121
+ identityEnvelopeId: Type.TString;
2122
+ identityAnchor: Type.TUnion<[Type.TObject<{
2123
+ kind: Type.TLiteral<"web">;
2124
+ contractId: Type.TString;
2125
+ origin: Type.TString;
2126
+ }>, Type.TObject<{
2127
+ kind: Type.TLiteral<"cli">;
2128
+ contractId: Type.TString;
2129
+ sessionPublicKey: Type.TString;
2130
+ }>, Type.TObject<{
2131
+ kind: Type.TLiteral<"native">;
2132
+ contractId: Type.TString;
2133
+ sessionPublicKey: Type.TString;
2134
+ }>, Type.TObject<{
2135
+ kind: Type.TLiteral<"device-user">;
2136
+ contractId: Type.TString;
2137
+ devicePublicKey: Type.TString;
2138
+ }>]>;
2139
+ contractEvidence: Type.TObject<{
2140
+ contractDigest: Type.TString;
2141
+ contractId: Type.TString;
2142
+ }>;
1001
2143
  displayName: Type.TString;
1002
2144
  description: Type.TString;
1003
2145
  participantKind: Type.TUnion<[Type.TLiteral<"app">, Type.TLiteral<"agent">]>;
@@ -1005,48 +2147,212 @@ export declare const AuthListUserGrantsResponseSchema: Type.TObject<{
1005
2147
  grantedAt: Type.TString;
1006
2148
  updatedAt: Type.TString;
1007
2149
  }>>;
2150
+ count: Type.TInteger;
2151
+ offset: Type.TInteger;
2152
+ limit: Type.TInteger;
2153
+ nextOffset: Type.TOptional<Type.TInteger>;
1008
2154
  }>;
1009
- export declare const AuthRevokeUserGrantSchema: Type.TObject<{
1010
- contractDigest: Type.TString;
2155
+ export declare const LoginPortalRecordSchema: Type.TObject<{
2156
+ portalId: Type.TString;
2157
+ displayName: Type.TString;
2158
+ entryUrl: Type.TUnion<[Type.TString, Type.TNull]>;
2159
+ builtIn: Type.TBoolean;
2160
+ disabled: Type.TBoolean;
2161
+ createdAt: Type.TString;
2162
+ updatedAt: Type.TString;
1011
2163
  }>;
1012
- export declare const AuthRevokeUserGrantResponseSchema: Type.TObject<{
1013
- success: Type.TBoolean;
2164
+ export type LoginPortalRecord = StaticDecode<typeof LoginPortalRecordSchema>;
2165
+ export declare const LoginPortalSettingsSchema: Type.TObject<{
2166
+ portalId: Type.TString;
2167
+ localRegistrationEnabled: Type.TBoolean;
2168
+ federatedRegistrationEnabled: Type.TBoolean;
2169
+ allowedFederatedProviders: Type.TUnion<[Type.TArray<Type.TString>, Type.TNull]>;
2170
+ selfRegisteredAccountActive: Type.TBoolean;
2171
+ updatedAt: Type.TString;
1014
2172
  }>;
1015
- export declare const PortalSchema: Type.TObject<{
2173
+ export type LoginPortalSettings = StaticDecode<typeof LoginPortalSettingsSchema>;
2174
+ export declare const LoginPortalFederatedProviderSchema: Type.TObject<{
2175
+ id: Type.TString;
2176
+ displayName: Type.TString;
2177
+ type: Type.TString;
2178
+ }>;
2179
+ export declare const LoginPortalRouteSchema: Type.TObject<{
2180
+ routeKey: Type.TString;
1016
2181
  portalId: Type.TString;
1017
- entryUrl: Type.TString;
2182
+ contractId: Type.TUnion<[Type.TString, Type.TNull]>;
2183
+ origin: Type.TUnion<[Type.TString, Type.TNull]>;
1018
2184
  disabled: Type.TBoolean;
2185
+ updatedAt: Type.TString;
1019
2186
  }>;
1020
- export type Portal = StaticDecode<typeof PortalSchema>;
1021
- export declare const PortalProfileSchema: Type.TObject<{
2187
+ export type LoginPortalRoute = StaticDecode<typeof LoginPortalRouteSchema>;
2188
+ export declare const LoginPortalSummarySchema: Type.TObject<{
2189
+ routeCount: Type.TInteger;
2190
+ activeRouteCount: Type.TInteger;
1022
2191
  portalId: Type.TString;
1023
- entryUrl: Type.TString;
1024
- contractId: Type.TString;
1025
- allowedOrigins: Type.TOptional<Type.TArray<Type.TString>>;
1026
- impliedCapabilities: Type.TArray<Type.TString>;
2192
+ displayName: Type.TString;
2193
+ entryUrl: Type.TUnion<[Type.TString, Type.TNull]>;
2194
+ builtIn: Type.TBoolean;
1027
2195
  disabled: Type.TBoolean;
1028
2196
  createdAt: Type.TString;
1029
2197
  updatedAt: Type.TString;
1030
2198
  }>;
1031
- export type PortalProfile = StaticDecode<typeof PortalProfileSchema>;
1032
- export declare const LoginPortalDefaultSchema: Type.TObject<{
1033
- portalId: Type.TUnion<[Type.TString, Type.TNull]>;
2199
+ export type LoginPortalSummary = StaticDecode<typeof LoginPortalSummarySchema>;
2200
+ export declare const AuthPortalsListSchema: Type.TObject<{
2201
+ offset: Type.TOptional<Type.TInteger>;
2202
+ limit: Type.TInteger;
2203
+ }>;
2204
+ export declare const AuthPortalsListResponseSchema: Type.TObject<{
2205
+ entries: Type.TArray<Type.TObject<{
2206
+ routeCount: Type.TInteger;
2207
+ activeRouteCount: Type.TInteger;
2208
+ portalId: Type.TString;
2209
+ displayName: Type.TString;
2210
+ entryUrl: Type.TUnion<[Type.TString, Type.TNull]>;
2211
+ builtIn: Type.TBoolean;
2212
+ disabled: Type.TBoolean;
2213
+ createdAt: Type.TString;
2214
+ updatedAt: Type.TString;
2215
+ }>>;
2216
+ count: Type.TInteger;
2217
+ offset: Type.TInteger;
2218
+ limit: Type.TInteger;
2219
+ nextOffset: Type.TOptional<Type.TInteger>;
2220
+ }>;
2221
+ export declare const AuthPortalsGetSchema: Type.TObject<{
2222
+ portalId: Type.TString;
2223
+ }>;
2224
+ export declare const AuthPortalsGetResponseSchema: Type.TObject<{
2225
+ portal: Type.TObject<{
2226
+ portalId: Type.TString;
2227
+ displayName: Type.TString;
2228
+ entryUrl: Type.TUnion<[Type.TString, Type.TNull]>;
2229
+ builtIn: Type.TBoolean;
2230
+ disabled: Type.TBoolean;
2231
+ createdAt: Type.TString;
2232
+ updatedAt: Type.TString;
2233
+ }>;
2234
+ settings: Type.TObject<{
2235
+ portalId: Type.TString;
2236
+ localRegistrationEnabled: Type.TBoolean;
2237
+ federatedRegistrationEnabled: Type.TBoolean;
2238
+ allowedFederatedProviders: Type.TUnion<[Type.TArray<Type.TString>, Type.TNull]>;
2239
+ selfRegisteredAccountActive: Type.TBoolean;
2240
+ updatedAt: Type.TString;
2241
+ }>;
2242
+ routes: Type.TArray<Type.TObject<{
2243
+ routeKey: Type.TString;
2244
+ portalId: Type.TString;
2245
+ contractId: Type.TUnion<[Type.TString, Type.TNull]>;
2246
+ origin: Type.TUnion<[Type.TString, Type.TNull]>;
2247
+ disabled: Type.TBoolean;
2248
+ updatedAt: Type.TString;
2249
+ }>>;
2250
+ defaultCapabilities: Type.TArray<Type.TString>;
2251
+ defaultCapabilityGroups: Type.TArray<Type.TString>;
2252
+ federatedProviders: Type.TArray<Type.TObject<{
2253
+ id: Type.TString;
2254
+ displayName: Type.TString;
2255
+ type: Type.TString;
2256
+ }>>;
2257
+ }>;
2258
+ export declare const AuthPortalsPutSchema: Type.TObject<{
2259
+ portalId: Type.TString;
2260
+ displayName: Type.TString;
2261
+ entryUrl: Type.TString;
2262
+ disabled: Type.TOptional<Type.TBoolean>;
2263
+ }>;
2264
+ export declare const AuthPortalsPutResponseSchema: Type.TObject<{
2265
+ portal: Type.TObject<{
2266
+ portalId: Type.TString;
2267
+ displayName: Type.TString;
2268
+ entryUrl: Type.TUnion<[Type.TString, Type.TNull]>;
2269
+ builtIn: Type.TBoolean;
2270
+ disabled: Type.TBoolean;
2271
+ createdAt: Type.TString;
2272
+ updatedAt: Type.TString;
2273
+ }>;
2274
+ }>;
2275
+ export declare const AuthPortalsRemoveSchema: Type.TObject<{
2276
+ portalId: Type.TString;
2277
+ }>;
2278
+ export declare const AuthPortalsRemoveResponseSchema: Type.TObject<{
2279
+ success: Type.TBoolean;
2280
+ }>;
2281
+ export declare const AuthPortalsLoginSettingsGetSchema: Type.TObject<{
2282
+ portalId: Type.TString;
2283
+ }>;
2284
+ export declare const AuthPortalsLoginSettingsResponseSchema: Type.TObject<{
2285
+ portal: Type.TObject<{
2286
+ portalId: Type.TString;
2287
+ displayName: Type.TString;
2288
+ entryUrl: Type.TUnion<[Type.TString, Type.TNull]>;
2289
+ builtIn: Type.TBoolean;
2290
+ disabled: Type.TBoolean;
2291
+ createdAt: Type.TString;
2292
+ updatedAt: Type.TString;
2293
+ }>;
2294
+ settings: Type.TObject<{
2295
+ portalId: Type.TString;
2296
+ localRegistrationEnabled: Type.TBoolean;
2297
+ federatedRegistrationEnabled: Type.TBoolean;
2298
+ allowedFederatedProviders: Type.TUnion<[Type.TArray<Type.TString>, Type.TNull]>;
2299
+ selfRegisteredAccountActive: Type.TBoolean;
2300
+ updatedAt: Type.TString;
2301
+ }>;
2302
+ defaultCapabilities: Type.TArray<Type.TString>;
2303
+ defaultCapabilityGroups: Type.TArray<Type.TString>;
2304
+ federatedProviders: Type.TArray<Type.TObject<{
2305
+ id: Type.TString;
2306
+ displayName: Type.TString;
2307
+ type: Type.TString;
2308
+ }>>;
2309
+ }>;
2310
+ export declare const AuthPortalsLoginSettingsUpdateSchema: Type.TObject<{
2311
+ portalId: Type.TString;
2312
+ localRegistrationEnabled: Type.TBoolean;
2313
+ federatedRegistrationEnabled: Type.TBoolean;
2314
+ allowedFederatedProviders: Type.TUnion<[Type.TArray<Type.TString>, Type.TNull]>;
2315
+ selfRegisteredAccountActive: Type.TBoolean;
2316
+ defaultCapabilities: Type.TArray<Type.TString>;
2317
+ defaultCapabilityGroups: Type.TArray<Type.TString>;
2318
+ }>;
2319
+ export declare const AuthPortalsRoutesPutSchema: Type.TObject<{
2320
+ portalId: Type.TString;
2321
+ contractId: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
2322
+ origin: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
2323
+ disabled: Type.TOptional<Type.TBoolean>;
2324
+ }>;
2325
+ export declare const AuthPortalsRoutesPutResponseSchema: Type.TObject<{
2326
+ route: Type.TObject<{
2327
+ routeKey: Type.TString;
2328
+ portalId: Type.TString;
2329
+ contractId: Type.TUnion<[Type.TString, Type.TNull]>;
2330
+ origin: Type.TUnion<[Type.TString, Type.TNull]>;
2331
+ disabled: Type.TBoolean;
2332
+ updatedAt: Type.TString;
2333
+ }>;
1034
2334
  }>;
1035
- export type LoginPortalDefault = StaticDecode<typeof LoginPortalDefaultSchema>;
1036
- export declare const DevicePortalDefaultSchema: Type.TObject<{
1037
- portalId: Type.TUnion<[Type.TString, Type.TNull]>;
2335
+ export declare const AuthPortalsRoutesRemoveSchema: Type.TObject<{
2336
+ portalId: Type.TString;
2337
+ contractId: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
2338
+ origin: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
1038
2339
  }>;
1039
- export type DevicePortalDefault = StaticDecode<typeof DevicePortalDefaultSchema>;
1040
- export declare const LoginPortalSelectionSchema: Type.TObject<{
1041
- contractId: Type.TString;
1042
- portalId: Type.TUnion<[Type.TString, Type.TNull]>;
2340
+ export declare const AuthPortalsRoutesRemoveResponseSchema: Type.TObject<{
2341
+ success: Type.TBoolean;
1043
2342
  }>;
1044
- export type LoginPortalSelection = StaticDecode<typeof LoginPortalSelectionSchema>;
1045
- export declare const DevicePortalSelectionSchema: Type.TObject<{
1046
- deploymentId: Type.TString;
1047
- portalId: Type.TUnion<[Type.TString, Type.TNull]>;
2343
+ export declare const FlowRegistrationAvailabilitySchema: Type.TObject<{
2344
+ localIdentity: Type.TObject<{
2345
+ available: Type.TBoolean;
2346
+ }>;
2347
+ federatedIdentity: Type.TObject<{
2348
+ available: Type.TBoolean;
2349
+ providers: Type.TArray<Type.TObject<{
2350
+ id: Type.TString;
2351
+ displayName: Type.TString;
2352
+ }>>;
2353
+ }>;
1048
2354
  }>;
1049
- export type DevicePortalSelection = StaticDecode<typeof DevicePortalSelectionSchema>;
2355
+ export type FlowRegistrationAvailability = StaticDecode<typeof FlowRegistrationAvailabilitySchema>;
1050
2356
  export declare const PortalFlowStateSchema: Type.TUnion<[Type.TObject<{
1051
2357
  status: Type.TLiteral<"choose_provider">;
1052
2358
  flowId: Type.TString;
@@ -1061,6 +2367,27 @@ export declare const PortalFlowStateSchema: Type.TUnion<[Type.TObject<{
1061
2367
  description: Type.TString;
1062
2368
  context: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
1063
2369
  }>;
2370
+ portal: Type.TOptional<Type.TObject<{
2371
+ portalId: Type.TString;
2372
+ displayName: Type.TString;
2373
+ entryUrl: Type.TUnion<[Type.TString, Type.TNull]>;
2374
+ builtIn: Type.TBoolean;
2375
+ disabled: Type.TBoolean;
2376
+ createdAt: Type.TString;
2377
+ updatedAt: Type.TString;
2378
+ }>>;
2379
+ registration: Type.TOptional<Type.TObject<{
2380
+ localIdentity: Type.TObject<{
2381
+ available: Type.TBoolean;
2382
+ }>;
2383
+ federatedIdentity: Type.TObject<{
2384
+ available: Type.TBoolean;
2385
+ providers: Type.TArray<Type.TObject<{
2386
+ id: Type.TString;
2387
+ displayName: Type.TString;
2388
+ }>>;
2389
+ }>;
2390
+ }>>;
1064
2391
  }>, Type.TObject<{
1065
2392
  status: Type.TLiteral<"approval_required">;
1066
2393
  flowId: Type.TString;
@@ -1076,7 +2403,11 @@ export declare const PortalFlowStateSchema: Type.TUnion<[Type.TObject<{
1076
2403
  contractId: Type.TString;
1077
2404
  displayName: Type.TString;
1078
2405
  description: Type.TString;
1079
- capabilities: Type.TArray<Type.TString>;
2406
+ capabilities: Type.TRecord<"^.*$", Type.TObject<{
2407
+ displayName: Type.TString;
2408
+ description: Type.TString;
2409
+ consequence: Type.TOptional<Type.TString>;
2410
+ }>>;
1080
2411
  }>;
1081
2412
  }>, Type.TObject<{
1082
2413
  status: Type.TLiteral<"approval_denied">;
@@ -1086,7 +2417,11 @@ export declare const PortalFlowStateSchema: Type.TUnion<[Type.TObject<{
1086
2417
  contractId: Type.TString;
1087
2418
  displayName: Type.TString;
1088
2419
  description: Type.TString;
1089
- capabilities: Type.TArray<Type.TString>;
2420
+ capabilities: Type.TRecord<"^.*$", Type.TObject<{
2421
+ displayName: Type.TString;
2422
+ description: Type.TString;
2423
+ consequence: Type.TOptional<Type.TString>;
2424
+ }>>;
1090
2425
  }>;
1091
2426
  returnLocation: Type.TOptional<Type.TString>;
1092
2427
  }>, Type.TObject<{
@@ -1102,7 +2437,11 @@ export declare const PortalFlowStateSchema: Type.TUnion<[Type.TObject<{
1102
2437
  contractId: Type.TString;
1103
2438
  displayName: Type.TString;
1104
2439
  description: Type.TString;
1105
- capabilities: Type.TArray<Type.TString>;
2440
+ capabilities: Type.TRecord<"^.*$", Type.TObject<{
2441
+ displayName: Type.TString;
2442
+ description: Type.TString;
2443
+ consequence: Type.TOptional<Type.TString>;
2444
+ }>>;
1106
2445
  }>;
1107
2446
  missingCapabilities: Type.TArray<Type.TString>;
1108
2447
  userCapabilities: Type.TArray<Type.TString>;
@@ -1136,387 +2475,293 @@ export type PortalFlowApp = PortalFlowChooseProviderState["app"];
1136
2475
  export type PortalFlowProvider = PortalFlowChooseProviderState["providers"][number];
1137
2476
  export type PortalFlowApproval = PortalFlowApprovalRequiredState["approval"];
1138
2477
  export type PortalFlowUser = PortalFlowApprovalRequiredState["user"];
1139
- export declare const DeviceDeploymentSchema: Type.TObject<{
2478
+ export declare const DeviceDeploymentSchema: Type.TUnsafe<{
2479
+ deploymentId: string;
2480
+ reviewMode?: "none" | "required";
2481
+ disabled: boolean;
2482
+ }>;
2483
+ export declare const AuthDeploymentKindSchema: Type.TUnion<[Type.TLiteral<"service">, Type.TLiteral<"device">]>;
2484
+ export type AuthDeploymentKind = StaticDecode<typeof AuthDeploymentKindSchema>;
2485
+ export declare const AuthDeploymentSchema: Type.TUnion<[Type.TObject<{
2486
+ kind: Type.TLiteral<"service">;
1140
2487
  deploymentId: Type.TString;
1141
- reviewMode: Type.TOptional<Type.TUnion<[Type.TLiteral<"none">, Type.TLiteral<"required">]>>;
2488
+ namespaces: Type.TArray<Type.TString>;
1142
2489
  disabled: Type.TBoolean;
1143
- appliedContracts: Type.TArray<Type.TObject<{
1144
- contractId: Type.TString;
1145
- allowedDigests: Type.TArray<Type.TString>;
1146
- }>>;
1147
- }>;
1148
- export declare const DeviceMetadataSchema: Type.TRecord<"^.*$", Type.TString>;
1149
- export declare const DeviceSchema: Type.TObject<{
1150
- instanceId: Type.TString;
1151
- publicIdentityKey: Type.TString;
1152
- deploymentId: Type.TString;
1153
- metadata: Type.TOptional<Type.TRecord<"^.*$", Type.TString>>;
1154
- state: Type.TUnion<[Type.TLiteral<"registered">, Type.TLiteral<"activated">, Type.TLiteral<"revoked">, Type.TLiteral<"disabled">]>;
1155
- currentContractId: Type.TOptional<Type.TString>;
1156
- currentContractDigest: Type.TOptional<Type.TString>;
1157
- createdAt: Type.TString;
1158
- activatedAt: Type.TUnion<[Type.TString, Type.TNull]>;
1159
- revokedAt: Type.TUnion<[Type.TString, Type.TNull]>;
1160
- }>;
1161
- export declare const DeviceActivationActorSchema: Type.TObject<{
1162
- origin: Type.TString;
1163
- id: Type.TString;
1164
- }>;
1165
- export type DeviceActivationActor = StaticDecode<typeof DeviceActivationActorSchema>;
1166
- export declare const DeviceActivationRecordSchema: Type.TObject<{
1167
- instanceId: Type.TString;
1168
- publicIdentityKey: Type.TString;
1169
- deploymentId: Type.TString;
1170
- activatedBy: Type.TOptional<Type.TObject<{
1171
- origin: Type.TString;
1172
- id: Type.TString;
1173
- }>>;
1174
- state: Type.TUnion<[Type.TLiteral<"activated">, Type.TLiteral<"revoked">]>;
1175
- activatedAt: Type.TString;
1176
- revokedAt: Type.TUnion<[Type.TString, Type.TNull]>;
1177
- }>;
1178
- export type DeviceActivationRecord = StaticDecode<typeof DeviceActivationRecordSchema>;
1179
- export declare const DeviceActivationReviewSchema: Type.TObject<{
1180
- reviewId: Type.TString;
1181
- instanceId: Type.TString;
1182
- publicIdentityKey: Type.TString;
1183
- deploymentId: Type.TString;
1184
- state: Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"approved">, Type.TLiteral<"rejected">]>;
1185
- requestedAt: Type.TString;
1186
- decidedAt: Type.TUnion<[Type.TString, Type.TNull]>;
1187
- reason: Type.TOptional<Type.TString>;
1188
- }>;
1189
- export declare const AuthDeviceActivationReviewRequestedEventSchema: Type.TObject<{
1190
- reviewId: Type.TString;
1191
- flowId: Type.TString;
1192
- instanceId: Type.TString;
1193
- publicIdentityKey: Type.TString;
1194
- deploymentId: Type.TString;
1195
- requestedAt: Type.TString;
1196
- requestedBy: Type.TObject<{
1197
- origin: Type.TString;
1198
- id: Type.TString;
1199
- }>;
1200
- }>;
1201
- export declare const AuthDeviceActivationRequestedEventSchema: Type.TObject<{
1202
- flowId: Type.TString;
1203
- instanceId: Type.TString;
1204
- publicIdentityKey: Type.TString;
1205
- deploymentId: Type.TString;
1206
- requestedAt: Type.TString;
1207
- requestedBy: Type.TObject<{
1208
- origin: Type.TString;
1209
- id: Type.TString;
1210
- }>;
1211
- }>;
1212
- export declare const AuthDeviceActivationApprovedEventSchema: Type.TObject<{
1213
- reviewId: Type.TString;
1214
- flowId: Type.TString;
1215
- instanceId: Type.TString;
1216
- publicIdentityKey: Type.TString;
2490
+ }>, Type.TObject<{
2491
+ kind: Type.TLiteral<"device">;
1217
2492
  deploymentId: Type.TString;
1218
- requestedAt: Type.TString;
1219
- approvedAt: Type.TString;
1220
- requestedBy: Type.TObject<{
1221
- origin: Type.TString;
1222
- id: Type.TString;
1223
- }>;
1224
- approvedBy: Type.TObject<{
1225
- id: Type.TString;
1226
- origin: Type.TOptional<Type.TString>;
1227
- }>;
1228
- }>;
1229
- export declare const AuthDeviceActivatedEventSchema: Type.TObject<{
1230
- instanceId: Type.TString;
1231
- publicIdentityKey: Type.TString;
2493
+ reviewMode: Type.TOptional<Type.TUnion<[Type.TLiteral<"none">, Type.TLiteral<"required">]>>;
2494
+ disabled: Type.TBoolean;
2495
+ }>]>;
2496
+ export type AuthDeployment = StaticDecode<typeof AuthDeploymentSchema>;
2497
+ export declare const AuthDeploymentsCreateSchema: Type.TUnion<[Type.TObject<{
2498
+ kind: Type.TLiteral<"service">;
1232
2499
  deploymentId: Type.TString;
1233
- activatedAt: Type.TString;
1234
- activatedBy: Type.TObject<{
1235
- origin: Type.TString;
1236
- id: Type.TString;
1237
- }>;
1238
- flowId: Type.TOptional<Type.TString>;
1239
- reviewId: Type.TOptional<Type.TString>;
1240
- }>;
1241
- export declare const DeviceConnectInfoSchema: Type.TObject<{
1242
- instanceId: Type.TString;
2500
+ namespaces: Type.TArray<Type.TString>;
2501
+ }>, Type.TObject<{
2502
+ kind: Type.TLiteral<"device">;
1243
2503
  deploymentId: Type.TString;
1244
- contractId: Type.TString;
1245
- contractDigest: Type.TString;
1246
- transports: Type.TObject<{
1247
- native: Type.TOptional<Type.TObject<{
1248
- natsServers: Type.TArray<Type.TString>;
1249
- }>>;
1250
- websocket: Type.TOptional<Type.TObject<{
1251
- natsServers: Type.TArray<Type.TString>;
1252
- }>>;
1253
- }>;
1254
- transport: Type.TObject<{
1255
- sentinel: Type.TObject<{
1256
- jwt: Type.TString;
1257
- seed: Type.TString;
1258
- }>;
1259
- }>;
1260
- auth: Type.TObject<{
1261
- mode: Type.TLiteral<"device_identity">;
1262
- iatSkewSeconds: Type.TNumber;
1263
- }>;
1264
- }>;
1265
- export declare const AuthCreatePortalSchema: Type.TObject<{
1266
- portalId: Type.TString;
1267
- entryUrl: Type.TString;
1268
- }>;
1269
- export declare const AuthCreatePortalResponseSchema: Type.TObject<{
1270
- portal: Type.TObject<{
1271
- portalId: Type.TString;
1272
- entryUrl: Type.TString;
1273
- disabled: Type.TBoolean;
1274
- }>;
1275
- }>;
1276
- export declare const AuthListPortalsSchema: Type.TObject<{}>;
1277
- export declare const AuthListPortalsResponseSchema: Type.TObject<{
1278
- portals: Type.TArray<Type.TObject<{
1279
- portalId: Type.TString;
1280
- entryUrl: Type.TString;
1281
- disabled: Type.TBoolean;
1282
- }>>;
1283
- }>;
1284
- export declare const AuthDisablePortalSchema: Type.TObject<{
1285
- portalId: Type.TString;
1286
- }>;
1287
- export declare const AuthDisablePortalResponseSchema: Type.TObject<{
1288
- success: Type.TBoolean;
1289
- }>;
1290
- export declare const AuthListPortalProfilesSchema: Type.TObject<{}>;
1291
- export declare const AuthListPortalProfilesResponseSchema: Type.TObject<{
1292
- profiles: Type.TArray<Type.TObject<{
1293
- portalId: Type.TString;
1294
- entryUrl: Type.TString;
1295
- contractId: Type.TString;
1296
- allowedOrigins: Type.TOptional<Type.TArray<Type.TString>>;
1297
- impliedCapabilities: Type.TArray<Type.TString>;
2504
+ reviewMode: Type.TOptional<Type.TUnion<[Type.TLiteral<"none">, Type.TLiteral<"required">]>>;
2505
+ }>]>;
2506
+ export declare const AuthDeploymentsCreateResponseSchema: Type.TObject<{
2507
+ deployment: Type.TUnion<[Type.TObject<{
2508
+ kind: Type.TLiteral<"service">;
2509
+ deploymentId: Type.TString;
2510
+ namespaces: Type.TArray<Type.TString>;
1298
2511
  disabled: Type.TBoolean;
1299
- createdAt: Type.TString;
1300
- updatedAt: Type.TString;
1301
- }>>;
1302
- }>;
1303
- export declare const AuthSetPortalProfileSchema: Type.TObject<{
1304
- portalId: Type.TString;
1305
- entryUrl: Type.TString;
1306
- contractId: Type.TString;
1307
- allowedOrigins: Type.TOptional<Type.TArray<Type.TString>>;
1308
- }>;
1309
- export declare const AuthSetPortalProfileResponseSchema: Type.TObject<{
1310
- profile: Type.TObject<{
1311
- portalId: Type.TString;
1312
- entryUrl: Type.TString;
1313
- contractId: Type.TString;
1314
- allowedOrigins: Type.TOptional<Type.TArray<Type.TString>>;
1315
- impliedCapabilities: Type.TArray<Type.TString>;
2512
+ }>, Type.TObject<{
2513
+ kind: Type.TLiteral<"device">;
2514
+ deploymentId: Type.TString;
2515
+ reviewMode: Type.TOptional<Type.TUnion<[Type.TLiteral<"none">, Type.TLiteral<"required">]>>;
1316
2516
  disabled: Type.TBoolean;
1317
- createdAt: Type.TString;
1318
- updatedAt: Type.TString;
1319
- }>;
2517
+ }>]>;
1320
2518
  }>;
1321
- export declare const AuthDisablePortalProfileSchema: Type.TObject<{
1322
- portalId: Type.TString;
2519
+ export declare const AuthDeploymentsListSchema: Type.TObject<{
2520
+ kind: Type.TOptional<Type.TUnion<[Type.TLiteral<"service">, Type.TLiteral<"device">]>>;
2521
+ disabled: Type.TOptional<Type.TBoolean>;
2522
+ offset: Type.TOptional<Type.TInteger>;
2523
+ limit: Type.TInteger;
1323
2524
  }>;
1324
- export declare const AuthDisablePortalProfileResponseSchema: Type.TObject<{
1325
- profile: Type.TObject<{
1326
- portalId: Type.TString;
1327
- entryUrl: Type.TString;
1328
- contractId: Type.TString;
1329
- allowedOrigins: Type.TOptional<Type.TArray<Type.TString>>;
1330
- impliedCapabilities: Type.TArray<Type.TString>;
2525
+ export declare const AuthDeploymentsListResponseSchema: Type.TObject<{
2526
+ entries: Type.TArray<Type.TUnion<[Type.TObject<{
2527
+ kind: Type.TLiteral<"service">;
2528
+ deploymentId: Type.TString;
2529
+ namespaces: Type.TArray<Type.TString>;
1331
2530
  disabled: Type.TBoolean;
1332
- createdAt: Type.TString;
1333
- updatedAt: Type.TString;
1334
- }>;
1335
- }>;
1336
- export declare const AuthGetLoginPortalDefaultSchema: Type.TObject<{}>;
1337
- export declare const AuthGetLoginPortalDefaultResponseSchema: Type.TObject<{
1338
- defaultPortal: Type.TObject<{
1339
- portalId: Type.TUnion<[Type.TString, Type.TNull]>;
1340
- }>;
1341
- }>;
1342
- export declare const AuthSetLoginPortalDefaultSchema: Type.TObject<{
1343
- portalId: Type.TUnion<[Type.TString, Type.TNull]>;
1344
- }>;
1345
- export declare const AuthSetLoginPortalDefaultResponseSchema: Type.TObject<{
1346
- defaultPortal: Type.TObject<{
1347
- portalId: Type.TUnion<[Type.TString, Type.TNull]>;
1348
- }>;
1349
- }>;
1350
- export declare const AuthListLoginPortalSelectionsSchema: Type.TObject<{}>;
1351
- export declare const AuthListLoginPortalSelectionsResponseSchema: Type.TObject<{
1352
- selections: Type.TArray<Type.TObject<{
1353
- contractId: Type.TString;
1354
- portalId: Type.TUnion<[Type.TString, Type.TNull]>;
1355
- }>>;
1356
- }>;
1357
- export declare const AuthSetLoginPortalSelectionSchema: Type.TObject<{
1358
- contractId: Type.TString;
1359
- portalId: Type.TUnion<[Type.TString, Type.TNull]>;
1360
- }>;
1361
- export declare const AuthSetLoginPortalSelectionResponseSchema: Type.TObject<{
1362
- selection: Type.TObject<{
1363
- contractId: Type.TString;
1364
- portalId: Type.TUnion<[Type.TString, Type.TNull]>;
1365
- }>;
1366
- }>;
1367
- export declare const AuthClearLoginPortalSelectionSchema: Type.TObject<{
1368
- contractId: Type.TString;
1369
- }>;
1370
- export declare const AuthClearLoginPortalSelectionResponseSchema: Type.TObject<{
1371
- success: Type.TBoolean;
1372
- }>;
1373
- export declare const AuthGetDevicePortalDefaultSchema: Type.TObject<{}>;
1374
- export declare const AuthGetDevicePortalDefaultResponseSchema: Type.TObject<{
1375
- defaultPortal: Type.TObject<{
1376
- portalId: Type.TUnion<[Type.TString, Type.TNull]>;
1377
- }>;
1378
- }>;
1379
- export declare const AuthSetDevicePortalDefaultSchema: Type.TObject<{
1380
- portalId: Type.TUnion<[Type.TString, Type.TNull]>;
1381
- }>;
1382
- export declare const AuthSetDevicePortalDefaultResponseSchema: Type.TObject<{
1383
- defaultPortal: Type.TObject<{
1384
- portalId: Type.TUnion<[Type.TString, Type.TNull]>;
1385
- }>;
1386
- }>;
1387
- export declare const AuthListDevicePortalSelectionsSchema: Type.TObject<{}>;
1388
- export declare const AuthListDevicePortalSelectionsResponseSchema: Type.TObject<{
1389
- selections: Type.TArray<Type.TObject<{
2531
+ }>, Type.TObject<{
2532
+ kind: Type.TLiteral<"device">;
1390
2533
  deploymentId: Type.TString;
1391
- portalId: Type.TUnion<[Type.TString, Type.TNull]>;
1392
- }>>;
1393
- }>;
1394
- export declare const AuthSetDevicePortalSelectionSchema: Type.TObject<{
2534
+ reviewMode: Type.TOptional<Type.TUnion<[Type.TLiteral<"none">, Type.TLiteral<"required">]>>;
2535
+ disabled: Type.TBoolean;
2536
+ }>]>>;
2537
+ count: Type.TInteger;
2538
+ offset: Type.TInteger;
2539
+ limit: Type.TInteger;
2540
+ nextOffset: Type.TOptional<Type.TInteger>;
2541
+ }>;
2542
+ export declare const AuthDeploymentsDisableSchema: Type.TObject<{
2543
+ kind: Type.TUnion<[Type.TLiteral<"service">, Type.TLiteral<"device">]>;
1395
2544
  deploymentId: Type.TString;
1396
- portalId: Type.TUnion<[Type.TString, Type.TNull]>;
1397
2545
  }>;
1398
- export declare const AuthSetDevicePortalSelectionResponseSchema: Type.TObject<{
1399
- selection: Type.TObject<{
2546
+ export declare const AuthDeploymentsDisableResponseSchema: Type.TObject<{
2547
+ deployment: Type.TUnion<[Type.TObject<{
2548
+ kind: Type.TLiteral<"service">;
1400
2549
  deploymentId: Type.TString;
1401
- portalId: Type.TUnion<[Type.TString, Type.TNull]>;
1402
- }>;
1403
- }>;
1404
- export declare const AuthClearDevicePortalSelectionSchema: Type.TObject<{
1405
- deploymentId: Type.TString;
1406
- }>;
1407
- export declare const AuthClearDevicePortalSelectionResponseSchema: Type.TObject<{
1408
- success: Type.TBoolean;
1409
- }>;
1410
- export declare const AuthCreateDeviceDeploymentSchema: Type.TObject<{
1411
- deploymentId: Type.TString;
1412
- reviewMode: Type.TOptional<Type.TUnion<[Type.TLiteral<"none">, Type.TLiteral<"required">]>>;
1413
- }>;
1414
- export declare const AuthCreateDeviceDeploymentResponseSchema: Type.TObject<{
1415
- deployment: Type.TObject<{
2550
+ namespaces: Type.TArray<Type.TString>;
2551
+ disabled: Type.TBoolean;
2552
+ }>, Type.TObject<{
2553
+ kind: Type.TLiteral<"device">;
1416
2554
  deploymentId: Type.TString;
1417
2555
  reviewMode: Type.TOptional<Type.TUnion<[Type.TLiteral<"none">, Type.TLiteral<"required">]>>;
1418
2556
  disabled: Type.TBoolean;
1419
- appliedContracts: Type.TArray<Type.TObject<{
1420
- contractId: Type.TString;
1421
- allowedDigests: Type.TArray<Type.TString>;
1422
- }>>;
1423
- }>;
2557
+ }>]>;
1424
2558
  }>;
1425
- export declare const AuthListDeviceDeploymentsSchema: Type.TObject<{
1426
- disabled: Type.TOptional<Type.TBoolean>;
2559
+ export declare const AuthCatalogIssuesResolveSchema: Type.TObject<{
2560
+ issueId: Type.TString;
2561
+ action: Type.TUnion<[Type.TLiteral<"keep-current">, Type.TLiteral<"force-replace">]>;
1427
2562
  }>;
1428
- export declare const AuthListDeviceDeploymentsResponseSchema: Type.TObject<{
1429
- deployments: Type.TArray<Type.TObject<{
2563
+ export declare const AuthCatalogIssuesResolveResponseSchema: Type.TObject<{
2564
+ success: Type.TLiteral<true>;
2565
+ issueId: Type.TString;
2566
+ action: Type.TUnion<[Type.TLiteral<"keep-current">, Type.TLiteral<"force-replace">]>;
2567
+ deletedEvidence: Type.TArray<Type.TObject<{
1430
2568
  deploymentId: Type.TString;
1431
- reviewMode: Type.TOptional<Type.TUnion<[Type.TLiteral<"none">, Type.TLiteral<"required">]>>;
1432
- disabled: Type.TBoolean;
1433
- appliedContracts: Type.TArray<Type.TObject<{
1434
- contractId: Type.TString;
1435
- allowedDigests: Type.TArray<Type.TString>;
1436
- }>>;
2569
+ contractId: Type.TString;
2570
+ contractDigest: Type.TString;
2571
+ contract: Type.TUnsafe<Record<string, unknown>>;
2572
+ firstSeenAt: Type.TString;
2573
+ lastSeenAt: Type.TString;
2574
+ ignoredAt: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
2575
+ ignoredBy: Type.TOptional<Type.TUnion<[Type.TRecord<"^.*$", Type.TUnknown>, Type.TNull]>>;
2576
+ ignoreReason: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
1437
2577
  }>>;
1438
2578
  }>;
1439
- export declare const AuthApplyDeviceDeploymentContractSchema: Type.TObject<{
2579
+ export declare const AuthDeploymentsEnableSchema: Type.TObject<{
2580
+ kind: Type.TUnion<[Type.TLiteral<"service">, Type.TLiteral<"device">]>;
1440
2581
  deploymentId: Type.TString;
1441
- contract: Type.TUnsafe<Record<string, unknown>>;
1442
- expectedDigest: Type.TString;
1443
- replaceExisting: Type.TOptional<Type.TBoolean>;
1444
2582
  }>;
1445
- export declare const AuthApplyDeviceDeploymentContractResponseSchema: Type.TObject<{
1446
- deployment: Type.TObject<{
2583
+ export declare const AuthDeploymentsEnableResponseSchema: Type.TObject<{
2584
+ deployment: Type.TUnion<[Type.TObject<{
2585
+ kind: Type.TLiteral<"service">;
2586
+ deploymentId: Type.TString;
2587
+ namespaces: Type.TArray<Type.TString>;
2588
+ disabled: Type.TBoolean;
2589
+ }>, Type.TObject<{
2590
+ kind: Type.TLiteral<"device">;
1447
2591
  deploymentId: Type.TString;
1448
2592
  reviewMode: Type.TOptional<Type.TUnion<[Type.TLiteral<"none">, Type.TLiteral<"required">]>>;
1449
2593
  disabled: Type.TBoolean;
1450
- appliedContracts: Type.TArray<Type.TObject<{
1451
- contractId: Type.TString;
1452
- allowedDigests: Type.TArray<Type.TString>;
1453
- }>>;
1454
- }>;
1455
- contract: Type.TObject<{
1456
- digest: Type.TString;
1457
- id: Type.TString;
1458
- displayName: Type.TString;
1459
- description: Type.TString;
1460
- installedAt: Type.TString;
1461
- }>;
2594
+ }>]>;
1462
2595
  }>;
1463
- export declare const AuthUnapplyDeviceDeploymentContractSchema: Type.TObject<{
2596
+ export declare const AuthDeploymentsRemoveSchema: Type.TObject<{
2597
+ kind: Type.TUnion<[Type.TLiteral<"service">, Type.TLiteral<"device">]>;
1464
2598
  deploymentId: Type.TString;
1465
- contractId: Type.TString;
1466
- digests: Type.TOptional<Type.TArray<Type.TString>>;
2599
+ cascade: Type.TOptional<Type.TBoolean>;
2600
+ purgeUnusedContracts: Type.TOptional<Type.TBoolean>;
1467
2601
  }>;
1468
- export declare const AuthUnapplyDeviceDeploymentContractResponseSchema: Type.TObject<{
1469
- deployment: Type.TObject<{
1470
- deploymentId: Type.TString;
1471
- reviewMode: Type.TOptional<Type.TUnion<[Type.TLiteral<"none">, Type.TLiteral<"required">]>>;
1472
- disabled: Type.TBoolean;
1473
- appliedContracts: Type.TArray<Type.TObject<{
1474
- contractId: Type.TString;
1475
- allowedDigests: Type.TArray<Type.TString>;
1476
- }>>;
2602
+ export declare const AuthDeploymentsRemoveResponseSchema: Type.TObject<{
2603
+ success: Type.TBoolean;
2604
+ }>;
2605
+ export declare const DeviceMetadataSchema: Type.TRecord<"^.*$", Type.TString>;
2606
+ export declare const DeviceSchema: Type.TObject<{
2607
+ instanceId: Type.TString;
2608
+ publicIdentityKey: Type.TString;
2609
+ deploymentId: Type.TString;
2610
+ metadata: Type.TOptional<Type.TRecord<"^.*$", Type.TString>>;
2611
+ state: Type.TUnion<[Type.TLiteral<"registered">, Type.TLiteral<"activated">, Type.TLiteral<"revoked">, Type.TLiteral<"disabled">]>;
2612
+ currentContractId: Type.TOptional<Type.TString>;
2613
+ currentContractDigest: Type.TOptional<Type.TString>;
2614
+ createdAt: Type.TString;
2615
+ activatedAt: Type.TUnion<[Type.TString, Type.TNull]>;
2616
+ revokedAt: Type.TUnion<[Type.TString, Type.TNull]>;
2617
+ }>;
2618
+ export declare const DeviceActivationActorSchema: Type.TObject<{
2619
+ participantKind: Type.TUnion<[Type.TLiteral<"app">, Type.TLiteral<"agent">]>;
2620
+ userId: Type.TString;
2621
+ identity: Type.TObject<{
2622
+ identityId: Type.TString;
2623
+ provider: Type.TString;
2624
+ subject: Type.TString;
1477
2625
  }>;
1478
2626
  }>;
1479
- export declare const AuthDisableDeviceDeploymentSchema: Type.TObject<{
2627
+ export type DeviceActivationActor = StaticDecode<typeof DeviceActivationActorSchema>;
2628
+ export declare const DeviceActivationRecordSchema: Type.TObject<{
2629
+ instanceId: Type.TString;
2630
+ publicIdentityKey: Type.TString;
1480
2631
  deploymentId: Type.TString;
2632
+ activatedBy: Type.TOptional<Type.TObject<{
2633
+ participantKind: Type.TUnion<[Type.TLiteral<"app">, Type.TLiteral<"agent">]>;
2634
+ userId: Type.TString;
2635
+ identity: Type.TObject<{
2636
+ identityId: Type.TString;
2637
+ provider: Type.TString;
2638
+ subject: Type.TString;
2639
+ }>;
2640
+ }>>;
2641
+ state: Type.TUnion<[Type.TLiteral<"activated">, Type.TLiteral<"revoked">]>;
2642
+ activatedAt: Type.TString;
2643
+ revokedAt: Type.TUnion<[Type.TString, Type.TNull]>;
1481
2644
  }>;
1482
- export declare const AuthDisableDeviceDeploymentResponseSchema: Type.TObject<{
1483
- deployment: Type.TObject<{
1484
- deploymentId: Type.TString;
1485
- reviewMode: Type.TOptional<Type.TUnion<[Type.TLiteral<"none">, Type.TLiteral<"required">]>>;
1486
- disabled: Type.TBoolean;
1487
- appliedContracts: Type.TArray<Type.TObject<{
1488
- contractId: Type.TString;
1489
- allowedDigests: Type.TArray<Type.TString>;
1490
- }>>;
2645
+ export type DeviceActivationRecord = StaticDecode<typeof DeviceActivationRecordSchema>;
2646
+ export declare const DeviceActivationReviewSchema: Type.TObject<{
2647
+ reviewId: Type.TString;
2648
+ instanceId: Type.TString;
2649
+ publicIdentityKey: Type.TString;
2650
+ deploymentId: Type.TString;
2651
+ state: Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"approved">, Type.TLiteral<"rejected">]>;
2652
+ requestedAt: Type.TString;
2653
+ decidedAt: Type.TUnion<[Type.TString, Type.TNull]>;
2654
+ reason: Type.TOptional<Type.TString>;
2655
+ }>;
2656
+ export declare const AuthDeviceUserAuthoritiesReviewRequestedEventSchema: Type.TObject<{
2657
+ reviewId: Type.TString;
2658
+ flowId: Type.TString;
2659
+ instanceId: Type.TString;
2660
+ publicIdentityKey: Type.TString;
2661
+ deploymentId: Type.TString;
2662
+ requestedAt: Type.TString;
2663
+ requestedBy: Type.TObject<{
2664
+ participantKind: Type.TUnion<[Type.TLiteral<"app">, Type.TLiteral<"agent">]>;
2665
+ userId: Type.TString;
2666
+ identity: Type.TObject<{
2667
+ identityId: Type.TString;
2668
+ provider: Type.TString;
2669
+ subject: Type.TString;
2670
+ }>;
1491
2671
  }>;
1492
2672
  }>;
1493
- export declare const AuthEnableDeviceDeploymentSchema: Type.TObject<{
2673
+ export declare const AuthDeviceUserAuthoritiesRequestedEventSchema: Type.TObject<{
2674
+ flowId: Type.TString;
2675
+ instanceId: Type.TString;
2676
+ publicIdentityKey: Type.TString;
1494
2677
  deploymentId: Type.TString;
2678
+ requestedAt: Type.TString;
2679
+ requestedBy: Type.TObject<{
2680
+ participantKind: Type.TUnion<[Type.TLiteral<"app">, Type.TLiteral<"agent">]>;
2681
+ userId: Type.TString;
2682
+ identity: Type.TObject<{
2683
+ identityId: Type.TString;
2684
+ provider: Type.TString;
2685
+ subject: Type.TString;
2686
+ }>;
2687
+ }>;
1495
2688
  }>;
1496
- export declare const AuthEnableDeviceDeploymentResponseSchema: Type.TObject<{
1497
- deployment: Type.TObject<{
1498
- deploymentId: Type.TString;
1499
- reviewMode: Type.TOptional<Type.TUnion<[Type.TLiteral<"none">, Type.TLiteral<"required">]>>;
1500
- disabled: Type.TBoolean;
1501
- appliedContracts: Type.TArray<Type.TObject<{
1502
- contractId: Type.TString;
1503
- allowedDigests: Type.TArray<Type.TString>;
1504
- }>>;
2689
+ export declare const AuthDeviceUserAuthoritiesApprovedEventSchema: Type.TObject<{
2690
+ reviewId: Type.TString;
2691
+ flowId: Type.TString;
2692
+ instanceId: Type.TString;
2693
+ publicIdentityKey: Type.TString;
2694
+ deploymentId: Type.TString;
2695
+ requestedAt: Type.TString;
2696
+ approvedAt: Type.TString;
2697
+ requestedBy: Type.TObject<{
2698
+ participantKind: Type.TUnion<[Type.TLiteral<"app">, Type.TLiteral<"agent">]>;
2699
+ userId: Type.TString;
2700
+ identity: Type.TObject<{
2701
+ identityId: Type.TString;
2702
+ provider: Type.TString;
2703
+ subject: Type.TString;
2704
+ }>;
2705
+ }>;
2706
+ approvedBy: Type.TObject<{
2707
+ participantKind: Type.TUnion<[Type.TLiteral<"app">, Type.TLiteral<"agent">]>;
2708
+ userId: Type.TString;
2709
+ identity: Type.TObject<{
2710
+ identityId: Type.TString;
2711
+ provider: Type.TString;
2712
+ subject: Type.TString;
2713
+ }>;
1505
2714
  }>;
1506
2715
  }>;
1507
- export declare const AuthRemoveDeviceDeploymentSchema: Type.TObject<{
2716
+ export declare const AuthDeviceUserAuthoritiesResolvedEventSchema: Type.TObject<{
2717
+ instanceId: Type.TString;
2718
+ publicIdentityKey: Type.TString;
1508
2719
  deploymentId: Type.TString;
2720
+ resolvedAt: Type.TString;
2721
+ resolvedBy: Type.TObject<{
2722
+ participantKind: Type.TUnion<[Type.TLiteral<"app">, Type.TLiteral<"agent">]>;
2723
+ userId: Type.TString;
2724
+ identity: Type.TObject<{
2725
+ identityId: Type.TString;
2726
+ provider: Type.TString;
2727
+ subject: Type.TString;
2728
+ }>;
2729
+ }>;
2730
+ flowId: Type.TOptional<Type.TString>;
2731
+ reviewId: Type.TOptional<Type.TString>;
1509
2732
  }>;
1510
- export declare const AuthRemoveDeviceDeploymentResponseSchema: Type.TObject<{
1511
- success: Type.TBoolean;
2733
+ export declare const DeviceConnectInfoSchema: Type.TObject<{
2734
+ instanceId: Type.TString;
2735
+ deploymentId: Type.TString;
2736
+ contractId: Type.TString;
2737
+ contractDigest: Type.TString;
2738
+ transports: Type.TObject<{
2739
+ native: Type.TOptional<Type.TObject<{
2740
+ natsServers: Type.TArray<Type.TString>;
2741
+ }>>;
2742
+ websocket: Type.TOptional<Type.TObject<{
2743
+ natsServers: Type.TArray<Type.TString>;
2744
+ }>>;
2745
+ }>;
2746
+ transport: Type.TObject<{
2747
+ sentinel: Type.TObject<{
2748
+ jwt: Type.TString;
2749
+ seed: Type.TString;
2750
+ }>;
2751
+ }>;
2752
+ auth: Type.TObject<{
2753
+ mode: Type.TLiteral<"device_identity">;
2754
+ authority: Type.TUnion<[Type.TLiteral<"admin_reviewed">, Type.TLiteral<"user_delegated">]>;
2755
+ iatSkewSeconds: Type.TNumber;
2756
+ }>;
1512
2757
  }>;
1513
- export declare const AuthProvisionDeviceInstanceSchema: Type.TObject<{
2758
+ export declare const AuthDevicesProvisionSchema: Type.TObject<{
1514
2759
  deploymentId: Type.TString;
1515
2760
  publicIdentityKey: Type.TString;
1516
2761
  activationKey: Type.TString;
1517
2762
  metadata: Type.TOptional<Type.TRecord<"^.*$", Type.TString>>;
1518
2763
  }>;
1519
- export declare const AuthProvisionDeviceInstanceResponseSchema: Type.TObject<{
2764
+ export declare const AuthDevicesProvisionResponseSchema: Type.TObject<{
1520
2765
  instance: Type.TObject<{
1521
2766
  instanceId: Type.TString;
1522
2767
  publicIdentityKey: Type.TString;
@@ -1530,12 +2775,14 @@ export declare const AuthProvisionDeviceInstanceResponseSchema: Type.TObject<{
1530
2775
  revokedAt: Type.TUnion<[Type.TString, Type.TNull]>;
1531
2776
  }>;
1532
2777
  }>;
1533
- export declare const AuthListDeviceInstancesSchema: Type.TObject<{
2778
+ export declare const AuthDevicesListSchema: Type.TObject<{
1534
2779
  deploymentId: Type.TOptional<Type.TString>;
1535
2780
  state: Type.TOptional<Type.TUnion<[Type.TLiteral<"registered">, Type.TLiteral<"activated">, Type.TLiteral<"revoked">, Type.TLiteral<"disabled">]>>;
2781
+ offset: Type.TOptional<Type.TInteger>;
2782
+ limit: Type.TInteger;
1536
2783
  }>;
1537
- export declare const AuthListDeviceInstancesResponseSchema: Type.TObject<{
1538
- instances: Type.TArray<Type.TObject<{
2784
+ export declare const AuthDevicesListResponseSchema: Type.TObject<{
2785
+ entries: Type.TArray<Type.TObject<{
1539
2786
  instanceId: Type.TString;
1540
2787
  publicIdentityKey: Type.TString;
1541
2788
  deploymentId: Type.TString;
@@ -1547,11 +2794,15 @@ export declare const AuthListDeviceInstancesResponseSchema: Type.TObject<{
1547
2794
  activatedAt: Type.TUnion<[Type.TString, Type.TNull]>;
1548
2795
  revokedAt: Type.TUnion<[Type.TString, Type.TNull]>;
1549
2796
  }>>;
2797
+ count: Type.TInteger;
2798
+ offset: Type.TInteger;
2799
+ limit: Type.TInteger;
2800
+ nextOffset: Type.TOptional<Type.TInteger>;
1550
2801
  }>;
1551
- export declare const AuthDisableDeviceInstanceSchema: Type.TObject<{
2802
+ export declare const AuthDevicesDisableSchema: Type.TObject<{
1552
2803
  instanceId: Type.TString;
1553
2804
  }>;
1554
- export declare const AuthDisableDeviceInstanceResponseSchema: Type.TObject<{
2805
+ export declare const AuthDevicesDisableResponseSchema: Type.TObject<{
1555
2806
  instance: Type.TObject<{
1556
2807
  instanceId: Type.TString;
1557
2808
  publicIdentityKey: Type.TString;
@@ -1565,10 +2816,10 @@ export declare const AuthDisableDeviceInstanceResponseSchema: Type.TObject<{
1565
2816
  revokedAt: Type.TUnion<[Type.TString, Type.TNull]>;
1566
2817
  }>;
1567
2818
  }>;
1568
- export declare const AuthEnableDeviceInstanceSchema: Type.TObject<{
2819
+ export declare const AuthDevicesEnableSchema: Type.TObject<{
1569
2820
  instanceId: Type.TString;
1570
2821
  }>;
1571
- export declare const AuthEnableDeviceInstanceResponseSchema: Type.TObject<{
2822
+ export declare const AuthDevicesEnableResponseSchema: Type.TObject<{
1572
2823
  instance: Type.TObject<{
1573
2824
  instanceId: Type.TString;
1574
2825
  publicIdentityKey: Type.TString;
@@ -1582,23 +2833,23 @@ export declare const AuthEnableDeviceInstanceResponseSchema: Type.TObject<{
1582
2833
  revokedAt: Type.TUnion<[Type.TString, Type.TNull]>;
1583
2834
  }>;
1584
2835
  }>;
1585
- export declare const AuthRemoveDeviceInstanceSchema: Type.TObject<{
2836
+ export declare const AuthDevicesRemoveSchema: Type.TObject<{
1586
2837
  instanceId: Type.TString;
1587
2838
  }>;
1588
- export declare const AuthRemoveDeviceInstanceResponseSchema: Type.TObject<{
2839
+ export declare const AuthDevicesRemoveResponseSchema: Type.TObject<{
1589
2840
  success: Type.TBoolean;
1590
2841
  }>;
1591
- export declare const AuthActivateDeviceSchema: Type.TObject<{
2842
+ export declare const AuthResolveDeviceUserAuthoritiesSchema: Type.TObject<{
1592
2843
  flowId: Type.TString;
1593
2844
  }>;
1594
- export declare const AuthActivateDeviceProgressSchema: Type.TObject<{
2845
+ export declare const AuthResolveDeviceUserAuthoritiesProgressSchema: Type.TObject<{
1595
2846
  status: Type.TLiteral<"pending_review">;
1596
2847
  reviewId: Type.TString;
1597
2848
  instanceId: Type.TString;
1598
2849
  deploymentId: Type.TString;
1599
2850
  requestedAt: Type.TString;
1600
2851
  }>;
1601
- export declare const AuthActivateDeviceResponseSchema: Type.TUnion<[Type.TObject<{
2852
+ export declare const AuthResolveDeviceUserAuthoritiesResponseSchema: Type.TUnion<[Type.TObject<{
1602
2853
  status: Type.TLiteral<"activated">;
1603
2854
  instanceId: Type.TString;
1604
2855
  deploymentId: Type.TString;
@@ -1635,6 +2886,7 @@ export declare const WaitForDeviceActivationResponseSchema: Type.TUnion<[Type.TO
1635
2886
  }>;
1636
2887
  auth: Type.TObject<{
1637
2888
  mode: Type.TLiteral<"device_identity">;
2889
+ authority: Type.TUnion<[Type.TLiteral<"admin_reviewed">, Type.TLiteral<"user_delegated">]>;
1638
2890
  iatSkewSeconds: Type.TNumber;
1639
2891
  }>;
1640
2892
  }>;
@@ -1642,13 +2894,21 @@ export declare const WaitForDeviceActivationResponseSchema: Type.TUnion<[Type.TO
1642
2894
  status: Type.TLiteral<"rejected">;
1643
2895
  reason: Type.TOptional<Type.TString>;
1644
2896
  }>]>;
1645
- export declare const AuthGetDeviceConnectInfoSchema: Type.TObject<{
2897
+ export declare const WaitForDeviceActivationRequestSchema: Type.TObject<{
2898
+ flowId: Type.TString;
2899
+ publicIdentityKey: Type.TString;
2900
+ nonce: Type.TString;
2901
+ contractDigest: Type.TString;
2902
+ iat: Type.TNumber;
2903
+ sig: Type.TString;
2904
+ }>;
2905
+ export declare const AuthDevicesConnectInfoGetSchema: Type.TObject<{
1646
2906
  publicIdentityKey: Type.TString;
1647
2907
  contractDigest: Type.TString;
1648
2908
  iat: Type.TNumber;
1649
2909
  sig: Type.TString;
1650
2910
  }>;
1651
- export declare const AuthGetDeviceConnectInfoResponseSchema: Type.TObject<{
2911
+ export declare const AuthDevicesConnectInfoGetResponseSchema: Type.TObject<{
1652
2912
  status: Type.TLiteral<"ready">;
1653
2913
  connectInfo: Type.TObject<{
1654
2914
  instanceId: Type.TString;
@@ -1671,42 +2931,56 @@ export declare const AuthGetDeviceConnectInfoResponseSchema: Type.TObject<{
1671
2931
  }>;
1672
2932
  auth: Type.TObject<{
1673
2933
  mode: Type.TLiteral<"device_identity">;
2934
+ authority: Type.TUnion<[Type.TLiteral<"admin_reviewed">, Type.TLiteral<"user_delegated">]>;
1674
2935
  iatSkewSeconds: Type.TNumber;
1675
2936
  }>;
1676
2937
  }>;
1677
2938
  }>;
1678
- export declare const AuthListDeviceActivationsSchema: Type.TObject<{
2939
+ export declare const AuthDeviceUserAuthoritiesListSchema: Type.TObject<{
1679
2940
  instanceId: Type.TOptional<Type.TString>;
1680
2941
  deploymentId: Type.TOptional<Type.TString>;
1681
2942
  state: Type.TOptional<Type.TUnion<[Type.TLiteral<"activated">, Type.TLiteral<"revoked">]>>;
2943
+ offset: Type.TOptional<Type.TInteger>;
2944
+ limit: Type.TInteger;
1682
2945
  }>;
1683
- export declare const AuthListDeviceActivationsResponseSchema: Type.TObject<{
1684
- activations: Type.TArray<Type.TObject<{
2946
+ export declare const AuthDeviceUserAuthoritiesListResponseSchema: Type.TObject<{
2947
+ entries: Type.TArray<Type.TObject<{
1685
2948
  instanceId: Type.TString;
1686
2949
  publicIdentityKey: Type.TString;
1687
2950
  deploymentId: Type.TString;
1688
2951
  activatedBy: Type.TOptional<Type.TObject<{
1689
- origin: Type.TString;
1690
- id: Type.TString;
2952
+ participantKind: Type.TUnion<[Type.TLiteral<"app">, Type.TLiteral<"agent">]>;
2953
+ userId: Type.TString;
2954
+ identity: Type.TObject<{
2955
+ identityId: Type.TString;
2956
+ provider: Type.TString;
2957
+ subject: Type.TString;
2958
+ }>;
1691
2959
  }>>;
1692
2960
  state: Type.TUnion<[Type.TLiteral<"activated">, Type.TLiteral<"revoked">]>;
1693
2961
  activatedAt: Type.TString;
1694
2962
  revokedAt: Type.TUnion<[Type.TString, Type.TNull]>;
1695
2963
  }>>;
2964
+ count: Type.TInteger;
2965
+ offset: Type.TInteger;
2966
+ limit: Type.TInteger;
2967
+ nextOffset: Type.TOptional<Type.TInteger>;
1696
2968
  }>;
1697
- export declare const AuthRevokeDeviceActivationSchema: Type.TObject<{
2969
+ export declare const AuthDeviceUserAuthoritiesRevokeSchema: Type.TObject<{
1698
2970
  instanceId: Type.TString;
1699
2971
  }>;
1700
- export declare const AuthRevokeDeviceActivationResponseSchema: Type.TObject<{
2972
+ export declare const AuthDeviceUserAuthoritiesRevokeResponseSchema: Type.TObject<{
1701
2973
  success: Type.TBoolean;
1702
2974
  }>;
1703
- export declare const AuthListDeviceActivationReviewsSchema: Type.TObject<{
2975
+ export declare const AuthDeviceUserAuthoritiesReviewsListSchema: Type.TObject<{
1704
2976
  instanceId: Type.TOptional<Type.TString>;
1705
2977
  deploymentId: Type.TOptional<Type.TString>;
1706
2978
  state: Type.TOptional<Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"approved">, Type.TLiteral<"rejected">]>>;
2979
+ offset: Type.TOptional<Type.TInteger>;
2980
+ limit: Type.TInteger;
1707
2981
  }>;
1708
- export declare const AuthListDeviceActivationReviewsResponseSchema: Type.TObject<{
1709
- reviews: Type.TArray<Type.TObject<{
2982
+ export declare const AuthDeviceUserAuthoritiesReviewsListResponseSchema: Type.TObject<{
2983
+ entries: Type.TArray<Type.TObject<{
1710
2984
  reviewId: Type.TString;
1711
2985
  instanceId: Type.TString;
1712
2986
  publicIdentityKey: Type.TString;
@@ -1716,13 +2990,17 @@ export declare const AuthListDeviceActivationReviewsResponseSchema: Type.TObject
1716
2990
  decidedAt: Type.TUnion<[Type.TString, Type.TNull]>;
1717
2991
  reason: Type.TOptional<Type.TString>;
1718
2992
  }>>;
2993
+ count: Type.TInteger;
2994
+ offset: Type.TInteger;
2995
+ limit: Type.TInteger;
2996
+ nextOffset: Type.TOptional<Type.TInteger>;
1719
2997
  }>;
1720
- export declare const AuthDecideDeviceActivationReviewSchema: Type.TObject<{
2998
+ export declare const AuthDeviceUserAuthoritiesReviewsDecideSchema: Type.TObject<{
1721
2999
  reviewId: Type.TString;
1722
3000
  decision: Type.TUnion<[Type.TLiteral<"approve">, Type.TLiteral<"reject">]>;
1723
3001
  reason: Type.TOptional<Type.TString>;
1724
3002
  }>;
1725
- export declare const AuthDecideDeviceActivationReviewResponseSchema: Type.TObject<{
3003
+ export declare const AuthDeviceUserAuthoritiesReviewsDecideResponseSchema: Type.TObject<{
1726
3004
  review: Type.TObject<{
1727
3005
  reviewId: Type.TString;
1728
3006
  instanceId: Type.TString;
@@ -1738,8 +3016,13 @@ export declare const AuthDecideDeviceActivationReviewResponseSchema: Type.TObjec
1738
3016
  publicIdentityKey: Type.TString;
1739
3017
  deploymentId: Type.TString;
1740
3018
  activatedBy: Type.TOptional<Type.TObject<{
1741
- origin: Type.TString;
1742
- id: Type.TString;
3019
+ participantKind: Type.TUnion<[Type.TLiteral<"app">, Type.TLiteral<"agent">]>;
3020
+ userId: Type.TString;
3021
+ identity: Type.TObject<{
3022
+ identityId: Type.TString;
3023
+ provider: Type.TString;
3024
+ subject: Type.TString;
3025
+ }>;
1743
3026
  }>>;
1744
3027
  state: Type.TUnion<[Type.TLiteral<"activated">, Type.TLiteral<"revoked">]>;
1745
3028
  activatedAt: Type.TString;
@@ -1747,32 +3030,265 @@ export declare const AuthDecideDeviceActivationReviewResponseSchema: Type.TObjec
1747
3030
  }>>;
1748
3031
  confirmationCode: Type.TOptional<Type.TString>;
1749
3032
  }>;
3033
+ export declare const UserIdentityViewSchema: Type.TObject<{
3034
+ identityId: Type.TString;
3035
+ provider: Type.TString;
3036
+ subject: Type.TString;
3037
+ displayName: Type.TUnion<[Type.TString, Type.TNull]>;
3038
+ email: Type.TUnion<[Type.TString, Type.TNull]>;
3039
+ emailVerified: Type.TBoolean;
3040
+ linkedAt: Type.TString;
3041
+ lastLoginAt: Type.TUnion<[Type.TString, Type.TNull]>;
3042
+ }>;
1750
3043
  export declare const UserViewSchema: Type.TObject<{
1751
- origin: Type.TString;
1752
- id: Type.TString;
3044
+ userId: Type.TString;
1753
3045
  name: Type.TOptional<Type.TString>;
1754
3046
  email: Type.TOptional<Type.TString>;
1755
3047
  active: Type.TBoolean;
1756
3048
  capabilities: Type.TArray<Type.TString>;
3049
+ capabilityGroups: Type.TArray<Type.TString>;
3050
+ identities: Type.TArray<Type.TObject<{
3051
+ identityId: Type.TString;
3052
+ provider: Type.TString;
3053
+ subject: Type.TString;
3054
+ displayName: Type.TUnion<[Type.TString, Type.TNull]>;
3055
+ email: Type.TUnion<[Type.TString, Type.TNull]>;
3056
+ emailVerified: Type.TBoolean;
3057
+ linkedAt: Type.TString;
3058
+ lastLoginAt: Type.TUnion<[Type.TString, Type.TNull]>;
3059
+ }>>;
1757
3060
  }>;
1758
- export declare const AuthListUsersSchema: Type.TObject<{}>;
1759
- export declare const AuthListUsersResponseSchema: Type.TObject<{
1760
- users: Type.TArray<Type.TObject<{
1761
- origin: Type.TString;
1762
- id: Type.TString;
3061
+ export declare const AuthUsersListSchema: Type.TObject<{
3062
+ offset: Type.TOptional<Type.TInteger>;
3063
+ limit: Type.TInteger;
3064
+ }>;
3065
+ export declare const AuthUsersListResponseSchema: Type.TObject<{
3066
+ entries: Type.TArray<Type.TObject<{
3067
+ userId: Type.TString;
1763
3068
  name: Type.TOptional<Type.TString>;
1764
3069
  email: Type.TOptional<Type.TString>;
1765
3070
  active: Type.TBoolean;
1766
3071
  capabilities: Type.TArray<Type.TString>;
3072
+ capabilityGroups: Type.TArray<Type.TString>;
3073
+ identities: Type.TArray<Type.TObject<{
3074
+ identityId: Type.TString;
3075
+ provider: Type.TString;
3076
+ subject: Type.TString;
3077
+ displayName: Type.TUnion<[Type.TString, Type.TNull]>;
3078
+ email: Type.TUnion<[Type.TString, Type.TNull]>;
3079
+ emailVerified: Type.TBoolean;
3080
+ linkedAt: Type.TString;
3081
+ lastLoginAt: Type.TUnion<[Type.TString, Type.TNull]>;
3082
+ }>>;
1767
3083
  }>>;
3084
+ count: Type.TInteger;
3085
+ offset: Type.TInteger;
3086
+ limit: Type.TInteger;
3087
+ nextOffset: Type.TOptional<Type.TInteger>;
1768
3088
  }>;
1769
- export declare const AuthUpdateUserSchema: Type.TObject<{
1770
- origin: Type.TString;
1771
- id: Type.TString;
3089
+ export declare const AuthUsersGetSchema: Type.TObject<{
3090
+ userId: Type.TString;
3091
+ }>;
3092
+ export declare const AuthUsersGetResponseSchema: Type.TObject<{
3093
+ user: Type.TObject<{
3094
+ userId: Type.TString;
3095
+ name: Type.TOptional<Type.TString>;
3096
+ email: Type.TOptional<Type.TString>;
3097
+ active: Type.TBoolean;
3098
+ capabilities: Type.TArray<Type.TString>;
3099
+ capabilityGroups: Type.TArray<Type.TString>;
3100
+ identities: Type.TArray<Type.TObject<{
3101
+ identityId: Type.TString;
3102
+ provider: Type.TString;
3103
+ subject: Type.TString;
3104
+ displayName: Type.TUnion<[Type.TString, Type.TNull]>;
3105
+ email: Type.TUnion<[Type.TString, Type.TNull]>;
3106
+ emailVerified: Type.TBoolean;
3107
+ linkedAt: Type.TString;
3108
+ lastLoginAt: Type.TUnion<[Type.TString, Type.TNull]>;
3109
+ }>>;
3110
+ }>;
3111
+ }>;
3112
+ export declare const AuthUsersCreateSchema: Type.TObject<{
3113
+ name: Type.TOptional<Type.TString>;
3114
+ email: Type.TOptional<Type.TString>;
3115
+ username: Type.TOptional<Type.TString>;
3116
+ active: Type.TOptional<Type.TBoolean>;
3117
+ capabilities: Type.TOptional<Type.TArray<Type.TString>>;
3118
+ capabilityGroups: Type.TOptional<Type.TArray<Type.TString>>;
3119
+ }>;
3120
+ export declare const AuthUsersCreateResponseSchema: Type.TObject<{
3121
+ user: Type.TObject<{
3122
+ userId: Type.TString;
3123
+ name: Type.TOptional<Type.TString>;
3124
+ email: Type.TOptional<Type.TString>;
3125
+ active: Type.TBoolean;
3126
+ capabilities: Type.TArray<Type.TString>;
3127
+ capabilityGroups: Type.TArray<Type.TString>;
3128
+ identities: Type.TArray<Type.TObject<{
3129
+ identityId: Type.TString;
3130
+ provider: Type.TString;
3131
+ subject: Type.TString;
3132
+ displayName: Type.TUnion<[Type.TString, Type.TNull]>;
3133
+ email: Type.TUnion<[Type.TString, Type.TNull]>;
3134
+ emailVerified: Type.TBoolean;
3135
+ linkedAt: Type.TString;
3136
+ lastLoginAt: Type.TUnion<[Type.TString, Type.TNull]>;
3137
+ }>>;
3138
+ }>;
3139
+ }>;
3140
+ export declare const AuthUsersIdentityLinkCreateSchema: Type.TObject<{
3141
+ returnTo: Type.TOptional<Type.TString>;
3142
+ }>;
3143
+ export declare const AuthUsersPasswordChangeSchema: Type.TObject<{
3144
+ currentPassword: Type.TString;
3145
+ newPassword: Type.TString;
3146
+ }>;
3147
+ export declare const AuthUsersPasswordChangeResponseSchema: Type.TObject<{
3148
+ success: Type.TBoolean;
3149
+ }>;
3150
+ export declare const AuthUsersPasswordResetCreateSchema: Type.TObject<{
3151
+ userId: Type.TString;
3152
+ expiresInSeconds: Type.TOptional<Type.TInteger>;
3153
+ }>;
3154
+ export declare const AuthUsersAccountFlowCreateResponseSchema: Type.TObject<{
3155
+ flowId: Type.TString;
3156
+ url: Type.TString;
3157
+ expiresAt: Type.TString;
3158
+ }>;
3159
+ export declare const CapabilityDefinitionSchema: Type.TObject<{
3160
+ key: Type.TString;
3161
+ displayName: Type.TString;
3162
+ description: Type.TString;
3163
+ consequence: Type.TOptional<Type.TString>;
3164
+ source: Type.TUnion<[Type.TLiteral<"contract">, Type.TLiteral<"platform">]>;
3165
+ contractId: Type.TOptional<Type.TString>;
3166
+ contractDigest: Type.TOptional<Type.TString>;
3167
+ contractDisplayName: Type.TOptional<Type.TString>;
3168
+ }>;
3169
+ export declare const AuthCapabilitiesListSchema: Type.TObject<{
3170
+ offset: Type.TOptional<Type.TInteger>;
3171
+ limit: Type.TInteger;
3172
+ }>;
3173
+ export declare const AuthCapabilitiesListResponseSchema: Type.TObject<{
3174
+ entries: Type.TArray<Type.TObject<{
3175
+ key: Type.TString;
3176
+ displayName: Type.TString;
3177
+ description: Type.TString;
3178
+ consequence: Type.TOptional<Type.TString>;
3179
+ source: Type.TUnion<[Type.TLiteral<"contract">, Type.TLiteral<"platform">]>;
3180
+ contractId: Type.TOptional<Type.TString>;
3181
+ contractDigest: Type.TOptional<Type.TString>;
3182
+ contractDisplayName: Type.TOptional<Type.TString>;
3183
+ }>>;
3184
+ count: Type.TInteger;
3185
+ offset: Type.TInteger;
3186
+ limit: Type.TInteger;
3187
+ nextOffset: Type.TOptional<Type.TInteger>;
3188
+ }>;
3189
+ export declare const CapabilityGroupSchema: Type.TObject<{
3190
+ groupKey: Type.TString;
3191
+ displayName: Type.TString;
3192
+ description: Type.TString;
3193
+ capabilities: Type.TArray<Type.TString>;
3194
+ includedGroups: Type.TArray<Type.TString>;
3195
+ createdAt: Type.TString;
3196
+ updatedAt: Type.TString;
3197
+ }>;
3198
+ export declare const AuthCapabilityGroupsListSchema: Type.TObject<{
3199
+ offset: Type.TOptional<Type.TInteger>;
3200
+ limit: Type.TInteger;
3201
+ }>;
3202
+ export declare const AuthCapabilityGroupsListResponseSchema: Type.TObject<{
3203
+ entries: Type.TArray<Type.TObject<{
3204
+ groupKey: Type.TString;
3205
+ displayName: Type.TString;
3206
+ description: Type.TString;
3207
+ capabilities: Type.TArray<Type.TString>;
3208
+ includedGroups: Type.TArray<Type.TString>;
3209
+ createdAt: Type.TString;
3210
+ updatedAt: Type.TString;
3211
+ }>>;
3212
+ count: Type.TInteger;
3213
+ offset: Type.TInteger;
3214
+ limit: Type.TInteger;
3215
+ nextOffset: Type.TOptional<Type.TInteger>;
3216
+ }>;
3217
+ export declare const AuthCapabilityGroupsGetSchema: Type.TObject<{
3218
+ groupKey: Type.TString;
3219
+ }>;
3220
+ export declare const AuthCapabilityGroupsGetResponseSchema: Type.TObject<{
3221
+ group: Type.TObject<{
3222
+ groupKey: Type.TString;
3223
+ displayName: Type.TString;
3224
+ description: Type.TString;
3225
+ capabilities: Type.TArray<Type.TString>;
3226
+ includedGroups: Type.TArray<Type.TString>;
3227
+ createdAt: Type.TString;
3228
+ updatedAt: Type.TString;
3229
+ }>;
3230
+ }>;
3231
+ export declare const AuthCapabilityGroupsPutSchema: Type.TObject<{
3232
+ groupKey: Type.TString;
3233
+ displayName: Type.TString;
3234
+ description: Type.TString;
3235
+ capabilities: Type.TOptional<Type.TArray<Type.TString>>;
3236
+ includedGroups: Type.TOptional<Type.TArray<Type.TString>>;
3237
+ }>;
3238
+ export declare const AuthCapabilityGroupsPutResponseSchema: Type.TObject<{
3239
+ group: Type.TObject<{
3240
+ groupKey: Type.TString;
3241
+ displayName: Type.TString;
3242
+ description: Type.TString;
3243
+ capabilities: Type.TArray<Type.TString>;
3244
+ includedGroups: Type.TArray<Type.TString>;
3245
+ createdAt: Type.TString;
3246
+ updatedAt: Type.TString;
3247
+ }>;
3248
+ }>;
3249
+ export declare const AuthCapabilityGroupsDeleteSchema: Type.TObject<{
3250
+ groupKey: Type.TString;
3251
+ }>;
3252
+ export declare const AuthCapabilityGroupsDeleteResponseSchema: Type.TObject<{
3253
+ success: Type.TBoolean;
3254
+ }>;
3255
+ export declare const AuthUsersUpdateSchema: Type.TObject<{
3256
+ userId: Type.TString;
1772
3257
  active: Type.TOptional<Type.TBoolean>;
1773
3258
  capabilities: Type.TOptional<Type.TArray<Type.TString>>;
3259
+ capabilityGroups: Type.TOptional<Type.TArray<Type.TString>>;
3260
+ name: Type.TOptional<Type.TString>;
3261
+ email: Type.TOptional<Type.TString>;
3262
+ }>;
3263
+ export declare const AuthUsersUpdateResponseSchema: Type.TObject<{
3264
+ success: Type.TBoolean;
3265
+ }>;
3266
+ export declare const AuthUserIdentitiesListSchema: Type.TObject<{
3267
+ userId: Type.TString;
3268
+ offset: Type.TOptional<Type.TInteger>;
3269
+ limit: Type.TInteger;
3270
+ }>;
3271
+ export declare const AuthUserIdentitiesListResponseSchema: Type.TObject<{
3272
+ entries: Type.TArray<Type.TObject<{
3273
+ identityId: Type.TString;
3274
+ provider: Type.TString;
3275
+ subject: Type.TString;
3276
+ displayName: Type.TUnion<[Type.TString, Type.TNull]>;
3277
+ email: Type.TUnion<[Type.TString, Type.TNull]>;
3278
+ emailVerified: Type.TBoolean;
3279
+ linkedAt: Type.TString;
3280
+ lastLoginAt: Type.TUnion<[Type.TString, Type.TNull]>;
3281
+ }>>;
3282
+ count: Type.TInteger;
3283
+ offset: Type.TInteger;
3284
+ limit: Type.TInteger;
3285
+ nextOffset: Type.TOptional<Type.TInteger>;
3286
+ }>;
3287
+ export declare const AuthUserIdentitiesUnlinkSchema: Type.TObject<{
3288
+ userId: Type.TString;
3289
+ identityId: Type.TString;
1774
3290
  }>;
1775
- export declare const AuthUpdateUserResponseSchema: Type.TObject<{
3291
+ export declare const AuthUserIdentitiesUnlinkResponseSchema: Type.TObject<{
1776
3292
  success: Type.TBoolean;
1777
3293
  }>;
1778
3294
  //# sourceMappingURL=protocol.d.ts.map