@astrale-domains/shell 0.1.0-beta.4

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 (426) hide show
  1. package/README.md +66 -0
  2. package/dist/functions/application/index.d.ts +3 -0
  3. package/dist/functions/application/index.d.ts.map +1 -0
  4. package/dist/functions/application/index.js +3 -0
  5. package/dist/functions/application/index.js.map +1 -0
  6. package/dist/functions/application/install.d.ts +4 -0
  7. package/dist/functions/application/install.d.ts.map +1 -0
  8. package/dist/functions/application/install.js +11 -0
  9. package/dist/functions/application/install.js.map +1 -0
  10. package/dist/functions/application/uninstall.d.ts +5 -0
  11. package/dist/functions/application/uninstall.d.ts.map +1 -0
  12. package/dist/functions/application/uninstall.js +11 -0
  13. package/dist/functions/application/uninstall.js.map +1 -0
  14. package/dist/functions/execution/index.d.ts +15 -0
  15. package/dist/functions/execution/index.d.ts.map +1 -0
  16. package/dist/functions/execution/index.js +2 -0
  17. package/dist/functions/execution/index.js.map +1 -0
  18. package/dist/functions/group/assign-user.d.ts +5 -0
  19. package/dist/functions/group/assign-user.d.ts.map +1 -0
  20. package/dist/functions/group/assign-user.js +11 -0
  21. package/dist/functions/group/assign-user.js.map +1 -0
  22. package/dist/functions/group/index.d.ts +3 -0
  23. package/dist/functions/group/index.d.ts.map +1 -0
  24. package/dist/functions/group/index.js +3 -0
  25. package/dist/functions/group/index.js.map +1 -0
  26. package/dist/functions/group/unassign-user.d.ts +5 -0
  27. package/dist/functions/group/unassign-user.d.ts.map +1 -0
  28. package/dist/functions/group/unassign-user.js +11 -0
  29. package/dist/functions/group/unassign-user.js.map +1 -0
  30. package/dist/functions/index.d.ts +6 -0
  31. package/dist/functions/index.d.ts.map +1 -0
  32. package/dist/functions/index.js +6 -0
  33. package/dist/functions/index.js.map +1 -0
  34. package/dist/functions/space/add-user.d.ts +5 -0
  35. package/dist/functions/space/add-user.d.ts.map +1 -0
  36. package/dist/functions/space/add-user.js +11 -0
  37. package/dist/functions/space/add-user.js.map +1 -0
  38. package/dist/functions/space/index.d.ts +4 -0
  39. package/dist/functions/space/index.d.ts.map +1 -0
  40. package/dist/functions/space/index.js +4 -0
  41. package/dist/functions/space/index.js.map +1 -0
  42. package/dist/functions/space/remove-user.d.ts +5 -0
  43. package/dist/functions/space/remove-user.d.ts.map +1 -0
  44. package/dist/functions/space/remove-user.js +11 -0
  45. package/dist/functions/space/remove-user.js.map +1 -0
  46. package/dist/functions/space/set-default.d.ts +6 -0
  47. package/dist/functions/space/set-default.d.ts.map +1 -0
  48. package/dist/functions/space/set-default.js +11 -0
  49. package/dist/functions/space/set-default.js.map +1 -0
  50. package/dist/functions/user/administrator.d.ts +4 -0
  51. package/dist/functions/user/administrator.d.ts.map +1 -0
  52. package/dist/functions/user/administrator.js +39 -0
  53. package/dist/functions/user/administrator.js.map +1 -0
  54. package/dist/functions/user/ensure.d.ts +18 -0
  55. package/dist/functions/user/ensure.d.ts.map +1 -0
  56. package/dist/functions/user/ensure.js +49 -0
  57. package/dist/functions/user/ensure.js.map +1 -0
  58. package/dist/functions/user/index.d.ts +3 -0
  59. package/dist/functions/user/index.d.ts.map +1 -0
  60. package/dist/functions/user/index.js +3 -0
  61. package/dist/functions/user/index.js.map +1 -0
  62. package/dist/index.d.ts +4 -0
  63. package/dist/index.d.ts.map +1 -0
  64. package/dist/index.js +4 -0
  65. package/dist/index.js.map +1 -0
  66. package/dist/mutations/application/association.d.ts +14 -0
  67. package/dist/mutations/application/association.d.ts.map +1 -0
  68. package/dist/mutations/application/association.js +46 -0
  69. package/dist/mutations/application/association.js.map +1 -0
  70. package/dist/mutations/application/errors.d.ts +5 -0
  71. package/dist/mutations/application/errors.d.ts.map +1 -0
  72. package/dist/mutations/application/errors.js +2 -0
  73. package/dist/mutations/application/errors.js.map +1 -0
  74. package/dist/mutations/application/index.d.ts +4 -0
  75. package/dist/mutations/application/index.d.ts.map +1 -0
  76. package/dist/mutations/application/index.js +3 -0
  77. package/dist/mutations/application/index.js.map +1 -0
  78. package/dist/mutations/application/removal.d.ts +6 -0
  79. package/dist/mutations/application/removal.d.ts.map +1 -0
  80. package/dist/mutations/application/removal.js +17 -0
  81. package/dist/mutations/application/removal.js.map +1 -0
  82. package/dist/mutations/group/errors.d.ts +5 -0
  83. package/dist/mutations/group/errors.d.ts.map +1 -0
  84. package/dist/mutations/group/errors.js +2 -0
  85. package/dist/mutations/group/errors.js.map +1 -0
  86. package/dist/mutations/group/index.d.ts +3 -0
  87. package/dist/mutations/group/index.d.ts.map +1 -0
  88. package/dist/mutations/group/index.js +2 -0
  89. package/dist/mutations/group/index.js.map +1 -0
  90. package/dist/mutations/group/membership.d.ts +26 -0
  91. package/dist/mutations/group/membership.d.ts.map +1 -0
  92. package/dist/mutations/group/membership.js +71 -0
  93. package/dist/mutations/group/membership.js.map +1 -0
  94. package/dist/mutations/index.d.ts +4 -0
  95. package/dist/mutations/index.d.ts.map +1 -0
  96. package/dist/mutations/index.js +4 -0
  97. package/dist/mutations/index.js.map +1 -0
  98. package/dist/mutations/space/access.d.ts +30 -0
  99. package/dist/mutations/space/access.d.ts.map +1 -0
  100. package/dist/mutations/space/access.js +54 -0
  101. package/dist/mutations/space/access.js.map +1 -0
  102. package/dist/mutations/space/default.d.ts +26 -0
  103. package/dist/mutations/space/default.d.ts.map +1 -0
  104. package/dist/mutations/space/default.js +46 -0
  105. package/dist/mutations/space/default.js.map +1 -0
  106. package/dist/mutations/space/errors.d.ts +5 -0
  107. package/dist/mutations/space/errors.d.ts.map +1 -0
  108. package/dist/mutations/space/errors.js +2 -0
  109. package/dist/mutations/space/errors.js.map +1 -0
  110. package/dist/mutations/space/index.d.ts +4 -0
  111. package/dist/mutations/space/index.d.ts.map +1 -0
  112. package/dist/mutations/space/index.js +3 -0
  113. package/dist/mutations/space/index.js.map +1 -0
  114. package/dist/mutations/user/index.d.ts +1 -0
  115. package/dist/mutations/user/index.d.ts.map +1 -0
  116. package/dist/mutations/user/index.js +2 -0
  117. package/dist/mutations/user/index.js.map +1 -0
  118. package/dist/public.d.ts +5 -0
  119. package/dist/public.d.ts.map +1 -0
  120. package/dist/public.js +154 -0
  121. package/dist/public.js.map +1 -0
  122. package/dist/queries/application/association.d.ts +18 -0
  123. package/dist/queries/application/association.d.ts.map +1 -0
  124. package/dist/queries/application/association.js +82 -0
  125. package/dist/queries/application/association.js.map +1 -0
  126. package/dist/queries/application/identity.d.ts +4 -0
  127. package/dist/queries/application/identity.d.ts.map +1 -0
  128. package/dist/queries/application/identity.js +41 -0
  129. package/dist/queries/application/identity.js.map +1 -0
  130. package/dist/queries/application/index.d.ts +3 -0
  131. package/dist/queries/application/index.d.ts.map +1 -0
  132. package/dist/queries/application/index.js +3 -0
  133. package/dist/queries/application/index.js.map +1 -0
  134. package/dist/queries/group/identity.d.ts +3 -0
  135. package/dist/queries/group/identity.d.ts.map +1 -0
  136. package/dist/queries/group/identity.js +29 -0
  137. package/dist/queries/group/identity.js.map +1 -0
  138. package/dist/queries/group/index.d.ts +3 -0
  139. package/dist/queries/group/index.d.ts.map +1 -0
  140. package/dist/queries/group/index.js +3 -0
  141. package/dist/queries/group/index.js.map +1 -0
  142. package/dist/queries/group/membership.d.ts +17 -0
  143. package/dist/queries/group/membership.d.ts.map +1 -0
  144. package/dist/queries/group/membership.js +47 -0
  145. package/dist/queries/group/membership.js.map +1 -0
  146. package/dist/queries/index.d.ts +4 -0
  147. package/dist/queries/index.d.ts.map +1 -0
  148. package/dist/queries/index.js +4 -0
  149. package/dist/queries/index.js.map +1 -0
  150. package/dist/queries/space/access.d.ts +24 -0
  151. package/dist/queries/space/access.d.ts.map +1 -0
  152. package/dist/queries/space/access.js +93 -0
  153. package/dist/queries/space/access.js.map +1 -0
  154. package/dist/queries/space/default.d.ts +10 -0
  155. package/dist/queries/space/default.d.ts.map +1 -0
  156. package/dist/queries/space/default.js +25 -0
  157. package/dist/queries/space/default.js.map +1 -0
  158. package/dist/queries/space/index.d.ts +3 -0
  159. package/dist/queries/space/index.d.ts.map +1 -0
  160. package/dist/queries/space/index.js +3 -0
  161. package/dist/queries/space/index.js.map +1 -0
  162. package/dist/rules/application/association.d.ts +13 -0
  163. package/dist/rules/application/association.d.ts.map +1 -0
  164. package/dist/rules/application/association.js +10 -0
  165. package/dist/rules/application/association.js.map +1 -0
  166. package/dist/rules/application/index.d.ts +4 -0
  167. package/dist/rules/application/index.d.ts.map +1 -0
  168. package/dist/rules/application/index.js +4 -0
  169. package/dist/rules/application/index.js.map +1 -0
  170. package/dist/rules/application/removal.d.ts +11 -0
  171. package/dist/rules/application/removal.d.ts.map +1 -0
  172. package/dist/rules/application/removal.js +6 -0
  173. package/dist/rules/application/removal.js.map +1 -0
  174. package/dist/rules/application/result.d.ts +8 -0
  175. package/dist/rules/application/result.d.ts.map +1 -0
  176. package/dist/rules/application/result.js +17 -0
  177. package/dist/rules/application/result.js.map +1 -0
  178. package/dist/rules/group/index.d.ts +2 -0
  179. package/dist/rules/group/index.d.ts.map +1 -0
  180. package/dist/rules/group/index.js +2 -0
  181. package/dist/rules/group/index.js.map +1 -0
  182. package/dist/rules/group/membership.d.ts +5 -0
  183. package/dist/rules/group/membership.d.ts.map +1 -0
  184. package/dist/rules/group/membership.js +12 -0
  185. package/dist/rules/group/membership.js.map +1 -0
  186. package/dist/rules/index.d.ts +5 -0
  187. package/dist/rules/index.d.ts.map +1 -0
  188. package/dist/rules/index.js +5 -0
  189. package/dist/rules/index.js.map +1 -0
  190. package/dist/rules/space/access.d.ts +8 -0
  191. package/dist/rules/space/access.d.ts.map +1 -0
  192. package/dist/rules/space/access.js +18 -0
  193. package/dist/rules/space/access.js.map +1 -0
  194. package/dist/rules/space/default.d.ts +4 -0
  195. package/dist/rules/space/default.d.ts.map +1 -0
  196. package/dist/rules/space/default.js +7 -0
  197. package/dist/rules/space/default.js.map +1 -0
  198. package/dist/rules/space/index.d.ts +3 -0
  199. package/dist/rules/space/index.d.ts.map +1 -0
  200. package/dist/rules/space/index.js +3 -0
  201. package/dist/rules/space/index.js.map +1 -0
  202. package/dist/rules/user/ensure.d.ts +21 -0
  203. package/dist/rules/user/ensure.d.ts.map +1 -0
  204. package/dist/rules/user/ensure.js +61 -0
  205. package/dist/rules/user/ensure.js.map +1 -0
  206. package/dist/rules/user/grant.d.ts +13 -0
  207. package/dist/rules/user/grant.d.ts.map +1 -0
  208. package/dist/rules/user/grant.js +12 -0
  209. package/dist/rules/user/grant.js.map +1 -0
  210. package/dist/rules/user/index.d.ts +3 -0
  211. package/dist/rules/user/index.d.ts.map +1 -0
  212. package/dist/rules/user/index.js +3 -0
  213. package/dist/rules/user/index.js.map +1 -0
  214. package/dist/schema/application/class.d.ts +152 -0
  215. package/dist/schema/application/class.d.ts.map +1 -0
  216. package/dist/schema/application/class.js +10 -0
  217. package/dist/schema/application/class.js.map +1 -0
  218. package/dist/schema/application/core.d.ts +159 -0
  219. package/dist/schema/application/core.d.ts.map +1 -0
  220. package/dist/schema/application/core.js +13 -0
  221. package/dist/schema/application/core.js.map +1 -0
  222. package/dist/schema/application/index.d.ts +7 -0
  223. package/dist/schema/application/index.d.ts.map +1 -0
  224. package/dist/schema/application/index.js +7 -0
  225. package/dist/schema/application/index.js.map +1 -0
  226. package/dist/schema/application/methods.d.ts +171 -0
  227. package/dist/schema/application/methods.d.ts.map +1 -0
  228. package/dist/schema/application/methods.js +48 -0
  229. package/dist/schema/application/methods.js.map +1 -0
  230. package/dist/schema/application/policies.d.ts +3 -0
  231. package/dist/schema/application/policies.d.ts.map +1 -0
  232. package/dist/schema/application/policies.js +11 -0
  233. package/dist/schema/application/policies.js.map +1 -0
  234. package/dist/schema/application/relationships.d.ts +795 -0
  235. package/dist/schema/application/relationships.d.ts.map +1 -0
  236. package/dist/schema/application/relationships.js +20 -0
  237. package/dist/schema/application/relationships.js.map +1 -0
  238. package/dist/schema/application/view.d.ts +155 -0
  239. package/dist/schema/application/view.d.ts.map +1 -0
  240. package/dist/schema/application/view.js +7 -0
  241. package/dist/schema/application/view.js.map +1 -0
  242. package/dist/schema/domain/index.d.ts +9363 -0
  243. package/dist/schema/domain/index.d.ts.map +1 -0
  244. package/dist/schema/domain/index.js +56 -0
  245. package/dist/schema/domain/index.js.map +1 -0
  246. package/dist/schema/group/class.d.ts +59 -0
  247. package/dist/schema/group/class.d.ts.map +1 -0
  248. package/dist/schema/group/class.js +11 -0
  249. package/dist/schema/group/class.js.map +1 -0
  250. package/dist/schema/group/core.d.ts +495 -0
  251. package/dist/schema/group/core.d.ts.map +1 -0
  252. package/dist/schema/group/core.js +20 -0
  253. package/dist/schema/group/core.js.map +1 -0
  254. package/dist/schema/group/index.d.ts +7 -0
  255. package/dist/schema/group/index.d.ts.map +1 -0
  256. package/dist/schema/group/index.js +7 -0
  257. package/dist/schema/group/index.js.map +1 -0
  258. package/dist/schema/group/methods.d.ts +48 -0
  259. package/dist/schema/group/methods.d.ts.map +1 -0
  260. package/dist/schema/group/methods.js +21 -0
  261. package/dist/schema/group/methods.js.map +1 -0
  262. package/dist/schema/group/policies.d.ts +3 -0
  263. package/dist/schema/group/policies.d.ts.map +1 -0
  264. package/dist/schema/group/policies.js +7 -0
  265. package/dist/schema/group/policies.js.map +1 -0
  266. package/dist/schema/group/relationships.d.ts +293 -0
  267. package/dist/schema/group/relationships.d.ts.map +1 -0
  268. package/dist/schema/group/relationships.js +20 -0
  269. package/dist/schema/group/relationships.js.map +1 -0
  270. package/dist/schema/group/view.d.ts +62 -0
  271. package/dist/schema/group/view.d.ts.map +1 -0
  272. package/dist/schema/group/view.js +7 -0
  273. package/dist/schema/group/view.js.map +1 -0
  274. package/dist/schema/home/index.d.ts +2 -0
  275. package/dist/schema/home/index.d.ts.map +1 -0
  276. package/dist/schema/home/index.js +2 -0
  277. package/dist/schema/home/index.js.map +1 -0
  278. package/dist/schema/home/view.d.ts +4 -0
  279. package/dist/schema/home/view.d.ts.map +1 -0
  280. package/dist/schema/home/view.js +5 -0
  281. package/dist/schema/home/view.js.map +1 -0
  282. package/dist/schema/index.d.ts +7 -0
  283. package/dist/schema/index.d.ts.map +1 -0
  284. package/dist/schema/index.js +7 -0
  285. package/dist/schema/index.js.map +1 -0
  286. package/dist/schema/space/class.d.ts +74 -0
  287. package/dist/schema/space/class.d.ts.map +1 -0
  288. package/dist/schema/space/class.js +15 -0
  289. package/dist/schema/space/class.js.map +1 -0
  290. package/dist/schema/space/core.d.ts +995 -0
  291. package/dist/schema/space/core.d.ts.map +1 -0
  292. package/dist/schema/space/core.js +17 -0
  293. package/dist/schema/space/core.js.map +1 -0
  294. package/dist/schema/space/index.d.ts +7 -0
  295. package/dist/schema/space/index.d.ts.map +1 -0
  296. package/dist/schema/space/index.js +7 -0
  297. package/dist/schema/space/index.js.map +1 -0
  298. package/dist/schema/space/methods.d.ts +78 -0
  299. package/dist/schema/space/methods.d.ts.map +1 -0
  300. package/dist/schema/space/methods.js +31 -0
  301. package/dist/schema/space/methods.js.map +1 -0
  302. package/dist/schema/space/policies.d.ts +5 -0
  303. package/dist/schema/space/policies.d.ts.map +1 -0
  304. package/dist/schema/space/policies.js +15 -0
  305. package/dist/schema/space/policies.js.map +1 -0
  306. package/dist/schema/space/relationships.d.ts +1059 -0
  307. package/dist/schema/space/relationships.d.ts.map +1 -0
  308. package/dist/schema/space/relationships.js +25 -0
  309. package/dist/schema/space/relationships.js.map +1 -0
  310. package/dist/schema/space/view.d.ts +77 -0
  311. package/dist/schema/space/view.d.ts.map +1 -0
  312. package/dist/schema/space/view.js +7 -0
  313. package/dist/schema/space/view.js.map +1 -0
  314. package/dist/schema/user/administrator.d.ts +30 -0
  315. package/dist/schema/user/administrator.d.ts.map +1 -0
  316. package/dist/schema/user/administrator.js +19 -0
  317. package/dist/schema/user/administrator.js.map +1 -0
  318. package/dist/schema/user/class.d.ts +12 -0
  319. package/dist/schema/user/class.d.ts.map +1 -0
  320. package/dist/schema/user/class.js +7 -0
  321. package/dist/schema/user/class.js.map +1 -0
  322. package/dist/schema/user/ensure.d.ts +37 -0
  323. package/dist/schema/user/ensure.d.ts.map +1 -0
  324. package/dist/schema/user/ensure.js +28 -0
  325. package/dist/schema/user/ensure.js.map +1 -0
  326. package/dist/schema/user/index.d.ts +6 -0
  327. package/dist/schema/user/index.d.ts.map +1 -0
  328. package/dist/schema/user/index.js +6 -0
  329. package/dist/schema/user/index.js.map +1 -0
  330. package/dist/schema/user/interface.d.ts +10 -0
  331. package/dist/schema/user/interface.d.ts.map +1 -0
  332. package/dist/schema/user/interface.js +12 -0
  333. package/dist/schema/user/interface.js.map +1 -0
  334. package/dist/schema/user/view.d.ts +15 -0
  335. package/dist/schema/user/view.d.ts.map +1 -0
  336. package/dist/schema/user/view.js +7 -0
  337. package/dist/schema/user/view.js.map +1 -0
  338. package/dist/tests/cross-layer/public.test.d.ts +2 -0
  339. package/dist/tests/cross-layer/public.test.d.ts.map +1 -0
  340. package/dist/tests/cross-layer/public.test.js +70 -0
  341. package/dist/tests/cross-layer/public.test.js.map +1 -0
  342. package/dist/tests/cross-layer/workflows.test.d.ts +2 -0
  343. package/dist/tests/cross-layer/workflows.test.d.ts.map +1 -0
  344. package/dist/tests/cross-layer/workflows.test.js +290 -0
  345. package/dist/tests/cross-layer/workflows.test.js.map +1 -0
  346. package/dist/tests/index.d.ts +3 -0
  347. package/dist/tests/index.d.ts.map +1 -0
  348. package/dist/tests/index.js +3 -0
  349. package/dist/tests/index.js.map +1 -0
  350. package/dist/utils/graph-endpoint/index.d.ts +13 -0
  351. package/dist/utils/graph-endpoint/index.d.ts.map +1 -0
  352. package/dist/utils/graph-endpoint/index.js +6 -0
  353. package/dist/utils/graph-endpoint/index.js.map +1 -0
  354. package/dist/utils/index.d.ts +3 -0
  355. package/dist/utils/index.d.ts.map +1 -0
  356. package/dist/utils/index.js +3 -0
  357. package/dist/utils/index.js.map +1 -0
  358. package/dist/utils/query-page/index.d.ts +3 -0
  359. package/dist/utils/query-page/index.d.ts.map +1 -0
  360. package/dist/utils/query-page/index.js +2 -0
  361. package/dist/utils/query-page/index.js.map +1 -0
  362. package/dist/utils/query-page/nodes.d.ts +16 -0
  363. package/dist/utils/query-page/nodes.d.ts.map +1 -0
  364. package/dist/utils/query-page/nodes.js +22 -0
  365. package/dist/utils/query-page/nodes.js.map +1 -0
  366. package/dist/workflows/application/errors.d.ts +5 -0
  367. package/dist/workflows/application/errors.d.ts.map +1 -0
  368. package/dist/workflows/application/errors.js +25 -0
  369. package/dist/workflows/application/errors.js.map +1 -0
  370. package/dist/workflows/application/index.d.ts +3 -0
  371. package/dist/workflows/application/index.d.ts.map +1 -0
  372. package/dist/workflows/application/index.js +3 -0
  373. package/dist/workflows/application/index.js.map +1 -0
  374. package/dist/workflows/application/install.d.ts +3 -0
  375. package/dist/workflows/application/install.d.ts.map +1 -0
  376. package/dist/workflows/application/install.js +37 -0
  377. package/dist/workflows/application/install.js.map +1 -0
  378. package/dist/workflows/application/uninstall.d.ts +4 -0
  379. package/dist/workflows/application/uninstall.d.ts.map +1 -0
  380. package/dist/workflows/application/uninstall.js +25 -0
  381. package/dist/workflows/application/uninstall.js.map +1 -0
  382. package/dist/workflows/group/assign-user.d.ts +8 -0
  383. package/dist/workflows/group/assign-user.d.ts.map +1 -0
  384. package/dist/workflows/group/assign-user.js +32 -0
  385. package/dist/workflows/group/assign-user.js.map +1 -0
  386. package/dist/workflows/group/ensure-administrator.d.ts +4 -0
  387. package/dist/workflows/group/ensure-administrator.d.ts.map +1 -0
  388. package/dist/workflows/group/ensure-administrator.js +26 -0
  389. package/dist/workflows/group/ensure-administrator.js.map +1 -0
  390. package/dist/workflows/group/errors.d.ts +2 -0
  391. package/dist/workflows/group/errors.d.ts.map +1 -0
  392. package/dist/workflows/group/errors.js +7 -0
  393. package/dist/workflows/group/errors.js.map +1 -0
  394. package/dist/workflows/group/index.d.ts +4 -0
  395. package/dist/workflows/group/index.d.ts.map +1 -0
  396. package/dist/workflows/group/index.js +4 -0
  397. package/dist/workflows/group/index.js.map +1 -0
  398. package/dist/workflows/group/unassign-user.d.ts +8 -0
  399. package/dist/workflows/group/unassign-user.d.ts.map +1 -0
  400. package/dist/workflows/group/unassign-user.js +32 -0
  401. package/dist/workflows/group/unassign-user.js.map +1 -0
  402. package/dist/workflows/index.d.ts +4 -0
  403. package/dist/workflows/index.d.ts.map +1 -0
  404. package/dist/workflows/index.js +4 -0
  405. package/dist/workflows/index.js.map +1 -0
  406. package/dist/workflows/space/add-user.d.ts +8 -0
  407. package/dist/workflows/space/add-user.d.ts.map +1 -0
  408. package/dist/workflows/space/add-user.js +34 -0
  409. package/dist/workflows/space/add-user.js.map +1 -0
  410. package/dist/workflows/space/errors.d.ts +3 -0
  411. package/dist/workflows/space/errors.d.ts.map +1 -0
  412. package/dist/workflows/space/errors.js +10 -0
  413. package/dist/workflows/space/errors.js.map +1 -0
  414. package/dist/workflows/space/index.d.ts +4 -0
  415. package/dist/workflows/space/index.d.ts.map +1 -0
  416. package/dist/workflows/space/index.js +4 -0
  417. package/dist/workflows/space/index.js.map +1 -0
  418. package/dist/workflows/space/remove-user.d.ts +8 -0
  419. package/dist/workflows/space/remove-user.d.ts.map +1 -0
  420. package/dist/workflows/space/remove-user.js +62 -0
  421. package/dist/workflows/space/remove-user.js.map +1 -0
  422. package/dist/workflows/space/set-default.d.ts +9 -0
  423. package/dist/workflows/space/set-default.d.ts.map +1 -0
  424. package/dist/workflows/space/set-default.js +43 -0
  425. package/dist/workflows/space/set-default.js.map +1 -0
  426. package/package.json +80 -0
@@ -0,0 +1,152 @@
1
+ export declare const Application: import("@astrale-os/sdk/schema").NodeClass<{
2
+ readonly description: "A property-free Space association for one installed Domain.";
3
+ readonly methods: {
4
+ install: import("@astrale-os/sdk/schema").Function<{
5
+ readonly description: "Convergently associate one installed Domain with one Space.";
6
+ readonly static: true;
7
+ readonly input: import("zod").ZodObject<{
8
+ domain: import("@astrale-os/sdk/schema").Path<readonly [{
9
+ origin: string;
10
+ kind: 'class';
11
+ name: string;
12
+ }]>;
13
+ space: import("@astrale-os/sdk/schema").Path<readonly [import("@astrale-os/sdk/schema").NodeClass<{
14
+ readonly description: "A named Shell collaboration boundary.";
15
+ readonly implements: readonly [{
16
+ origin: "kernel.astrale.ai";
17
+ kind: 'interface';
18
+ name: string;
19
+ }, {
20
+ origin: "kernel.astrale.ai";
21
+ kind: 'interface';
22
+ name: string;
23
+ }];
24
+ readonly methods: {
25
+ addUser: import("@astrale-os/sdk/schema").Function<{
26
+ readonly description: "Set one User direct member or admin access.";
27
+ readonly input: import("zod").ZodObject<{
28
+ user: import("@astrale-os/sdk/schema").Path<readonly [import("@astrale-os/sdk/schema").NodeInterface<{
29
+ readonly description: "A human-facing Shell principal.";
30
+ readonly extends: readonly [{
31
+ origin: "kernel.astrale.ai";
32
+ kind: 'interface';
33
+ name: "Identity";
34
+ }];
35
+ }>]>;
36
+ access: import("zod").ZodEnum<{
37
+ admin: "admin";
38
+ member: "member";
39
+ }>;
40
+ }, import("zod/v4/core").$strict>;
41
+ readonly output: {
42
+ type: 'object';
43
+ properties: {};
44
+ additionalProperties: boolean;
45
+ };
46
+ readonly auth: "authorized";
47
+ readonly policy: ({ check, self }: import("@astrale-os/sdk/schema").CallablePolicyContext) => import("@astrale-os/sdk/schema").PolicyCheckExpression;
48
+ }>;
49
+ removeUser: import("@astrale-os/sdk/schema").Function<{
50
+ readonly description: "Remove one User direct access.";
51
+ readonly input: import("zod").ZodObject<{
52
+ user: import("@astrale-os/sdk/schema").Path<readonly [import("@astrale-os/sdk/schema").NodeInterface<{
53
+ readonly description: "A human-facing Shell principal.";
54
+ readonly extends: readonly [{
55
+ origin: "kernel.astrale.ai";
56
+ kind: 'interface';
57
+ name: "Identity";
58
+ }];
59
+ }>]>;
60
+ }, import("zod/v4/core").$strict>;
61
+ readonly output: {
62
+ type: 'object';
63
+ properties: {};
64
+ additionalProperties: boolean;
65
+ };
66
+ readonly auth: "authorized";
67
+ readonly policy: ({ check, self }: import("@astrale-os/sdk/schema").CallablePolicyContext) => import("@astrale-os/sdk/schema").PolicyCheckExpression;
68
+ }>;
69
+ setDefault: import("@astrale-os/sdk/schema").Function<{
70
+ readonly description: "Set this accessible Space as the granted User fallback.";
71
+ readonly input: {
72
+ type: 'object';
73
+ properties: {};
74
+ additionalProperties: boolean;
75
+ };
76
+ readonly output: {
77
+ type: 'object';
78
+ properties: {};
79
+ additionalProperties: boolean;
80
+ };
81
+ readonly auth: "authorized";
82
+ readonly policy: ({ check, self }: import("@astrale-os/sdk/schema").CallablePolicyContext) => import("@astrale-os/sdk/schema").PolicyCheckExpression;
83
+ }>;
84
+ };
85
+ }>]>;
86
+ }, import("zod/v4/core").$strict>;
87
+ readonly output: {
88
+ readonly type: "object";
89
+ readonly properties: {
90
+ readonly application: {
91
+ readonly type: "object";
92
+ readonly properties: {
93
+ readonly id: {
94
+ readonly type: "string";
95
+ };
96
+ readonly path: {
97
+ type: 'string';
98
+ pattern: string;
99
+ };
100
+ readonly class: {
101
+ readonly const: "Application";
102
+ };
103
+ };
104
+ readonly required: readonly ["id", "path", "class"];
105
+ readonly additionalProperties: false;
106
+ };
107
+ readonly domain: {
108
+ type: 'string';
109
+ pattern: string;
110
+ };
111
+ readonly space: {
112
+ readonly type: "object";
113
+ readonly properties: {
114
+ readonly id: {
115
+ readonly type: "string";
116
+ };
117
+ readonly path: {
118
+ type: 'string';
119
+ pattern: string;
120
+ };
121
+ readonly class: {
122
+ readonly const: "Space";
123
+ };
124
+ };
125
+ readonly required: readonly ["id", "path", "class"];
126
+ readonly additionalProperties: false;
127
+ };
128
+ };
129
+ readonly required: readonly ["application", "domain", "space"];
130
+ readonly additionalProperties: false;
131
+ } & import("@astrale-os/sdk/schema").TypedValueSchema<import("./methods.js").InstallApplicationResult>;
132
+ readonly auth: "authorized";
133
+ readonly policy: ({ check, input }: import("@astrale-os/sdk/schema").CallablePolicyContext) => import("@astrale-os/sdk/schema").PolicyCheckExpression;
134
+ }>;
135
+ uninstall: import("@astrale-os/sdk/schema").Function<{
136
+ readonly description: "Remove this Application association without uninstalling its Domain.";
137
+ readonly input: {
138
+ type: 'object';
139
+ properties: {};
140
+ additionalProperties: boolean;
141
+ };
142
+ readonly output: {
143
+ type: 'object';
144
+ properties: {};
145
+ additionalProperties: boolean;
146
+ } & import("@astrale-os/sdk/schema").TypedValueSchema<import("./methods.js").UninstallApplicationResult>;
147
+ readonly auth: "authorized";
148
+ readonly policy: ({ check, self }: import("@astrale-os/sdk/schema").CallablePolicyContext) => import("@astrale-os/sdk/schema").PolicyCheckExpression;
149
+ }>;
150
+ };
151
+ }>;
152
+ //# sourceMappingURL=class.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"class.d.ts","sourceRoot":"","sources":["../../../schema/application/class.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW;;;QAGpB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QACP,SAAS;;;;;;;;;;;;;;;;EAEX,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { nodeClass } from '@astrale-os/sdk/schema';
2
+ import { applicationInstall, applicationUninstall } from './methods.js';
3
+ export const Application = nodeClass({
4
+ description: 'A property-free Space association for one installed Domain.',
5
+ methods: {
6
+ install: applicationInstall,
7
+ uninstall: applicationUninstall,
8
+ },
9
+ });
10
+ //# sourceMappingURL=class.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"class.js","sourceRoot":"","sources":["../../../schema/application/class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAElD,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AAEvE,MAAM,CAAC,MAAM,WAAW,GAAG,SAAS,CAAC;IACnC,WAAW,EAAE,6DAA6D;IAC1E,OAAO,EAAE;QACP,OAAO,EAAE,kBAAkB;QAC3B,SAAS,EAAE,oBAAoB;KAChC;CACF,CAAC,CAAA"}
@@ -0,0 +1,159 @@
1
+ import { type builder } from '@astrale-os/sdk/schema';
2
+ export declare const shellApplication: builder.Node<builder.NodeClass<{
3
+ readonly description: "A property-free Space association for one installed Domain.";
4
+ readonly methods: {
5
+ install: builder.Function<{
6
+ readonly description: "Convergently associate one installed Domain with one Space.";
7
+ readonly static: true;
8
+ readonly input: import("zod").ZodObject<{
9
+ domain: builder.Path<readonly [{
10
+ origin: string;
11
+ kind: 'class';
12
+ name: string;
13
+ }]>;
14
+ space: builder.Path<readonly [builder.NodeClass<{
15
+ readonly description: "A named Shell collaboration boundary.";
16
+ readonly implements: readonly [{
17
+ origin: "kernel.astrale.ai";
18
+ kind: 'interface';
19
+ name: string;
20
+ }, {
21
+ origin: "kernel.astrale.ai";
22
+ kind: 'interface';
23
+ name: string;
24
+ }];
25
+ readonly methods: {
26
+ addUser: builder.Function<{
27
+ readonly description: "Set one User direct member or admin access.";
28
+ readonly input: import("zod").ZodObject<{
29
+ user: builder.Path<readonly [builder.NodeInterface<{
30
+ readonly description: "A human-facing Shell principal.";
31
+ readonly extends: readonly [{
32
+ origin: "kernel.astrale.ai";
33
+ kind: 'interface';
34
+ name: "Identity";
35
+ }];
36
+ }>]>;
37
+ access: import("zod").ZodEnum<{
38
+ admin: "admin";
39
+ member: "member";
40
+ }>;
41
+ }, import("zod/v4/core").$strict>;
42
+ readonly output: {
43
+ type: 'object';
44
+ properties: {};
45
+ additionalProperties: boolean;
46
+ };
47
+ readonly auth: "authorized";
48
+ readonly policy: ({ check, self }: builder.CallablePolicyContext) => import("@astrale-os/sdk/schema").PolicyCheckExpression;
49
+ }>;
50
+ removeUser: builder.Function<{
51
+ readonly description: "Remove one User direct access.";
52
+ readonly input: import("zod").ZodObject<{
53
+ user: builder.Path<readonly [builder.NodeInterface<{
54
+ readonly description: "A human-facing Shell principal.";
55
+ readonly extends: readonly [{
56
+ origin: "kernel.astrale.ai";
57
+ kind: 'interface';
58
+ name: "Identity";
59
+ }];
60
+ }>]>;
61
+ }, import("zod/v4/core").$strict>;
62
+ readonly output: {
63
+ type: 'object';
64
+ properties: {};
65
+ additionalProperties: boolean;
66
+ };
67
+ readonly auth: "authorized";
68
+ readonly policy: ({ check, self }: builder.CallablePolicyContext) => import("@astrale-os/sdk/schema").PolicyCheckExpression;
69
+ }>;
70
+ setDefault: builder.Function<{
71
+ readonly description: "Set this accessible Space as the granted User fallback.";
72
+ readonly input: {
73
+ type: 'object';
74
+ properties: {};
75
+ additionalProperties: boolean;
76
+ };
77
+ readonly output: {
78
+ type: 'object';
79
+ properties: {};
80
+ additionalProperties: boolean;
81
+ };
82
+ readonly auth: "authorized";
83
+ readonly policy: ({ check, self }: builder.CallablePolicyContext) => import("@astrale-os/sdk/schema").PolicyCheckExpression;
84
+ }>;
85
+ };
86
+ }>]>;
87
+ }, import("zod/v4/core").$strict>;
88
+ readonly output: {
89
+ readonly type: "object";
90
+ readonly properties: {
91
+ readonly application: {
92
+ readonly type: "object";
93
+ readonly properties: {
94
+ readonly id: {
95
+ readonly type: "string";
96
+ };
97
+ readonly path: {
98
+ type: 'string';
99
+ pattern: string;
100
+ };
101
+ readonly class: {
102
+ readonly const: "Application";
103
+ };
104
+ };
105
+ readonly required: readonly ["id", "path", "class"];
106
+ readonly additionalProperties: false;
107
+ };
108
+ readonly domain: {
109
+ type: 'string';
110
+ pattern: string;
111
+ };
112
+ readonly space: {
113
+ readonly type: "object";
114
+ readonly properties: {
115
+ readonly id: {
116
+ readonly type: "string";
117
+ };
118
+ readonly path: {
119
+ type: 'string';
120
+ pattern: string;
121
+ };
122
+ readonly class: {
123
+ readonly const: "Space";
124
+ };
125
+ };
126
+ readonly required: readonly ["id", "path", "class"];
127
+ readonly additionalProperties: false;
128
+ };
129
+ };
130
+ readonly required: readonly ["application", "domain", "space"];
131
+ readonly additionalProperties: false;
132
+ } & builder.TypedValueSchema<import("./methods.js").InstallApplicationResult>;
133
+ readonly auth: "authorized";
134
+ readonly policy: ({ check, input }: builder.CallablePolicyContext) => import("@astrale-os/sdk/schema").PolicyCheckExpression;
135
+ }>;
136
+ uninstall: builder.Function<{
137
+ readonly description: "Remove this Application association without uninstalling its Domain.";
138
+ readonly input: {
139
+ type: 'object';
140
+ properties: {};
141
+ additionalProperties: boolean;
142
+ };
143
+ readonly output: {
144
+ type: 'object';
145
+ properties: {};
146
+ additionalProperties: boolean;
147
+ } & builder.TypedValueSchema<import("./methods.js").UninstallApplicationResult>;
148
+ readonly auth: "authorized";
149
+ readonly policy: ({ check, self }: builder.CallablePolicyContext) => import("@astrale-os/sdk/schema").PolicyCheckExpression;
150
+ }>;
151
+ };
152
+ }>>;
153
+ export declare const applicationCore: Readonly<{
154
+ nodes: Readonly<{
155
+ shell: typeof shellApplication;
156
+ }>;
157
+ edges: NonNullable<builder.Core['edges']>;
158
+ }>;
159
+ //# sourceMappingURL=core.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../schema/application/core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,OAAO,EAAE,MAAM,wBAAwB,CAAA;AAOzE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAwB,CAAA;AAErD,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC;IACrC,KAAK,EAAE,QAAQ,CAAC;QAAE,KAAK,EAAE,OAAO,gBAAgB,CAAA;KAAE,CAAC,CAAA;IACnD,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAA;CAC1C,CAMA,CAAA"}
@@ -0,0 +1,13 @@
1
+ import { domain, edge, node } from '@astrale-os/sdk/schema';
2
+ import { defaultSpace } from '#schema/space';
3
+ import { Application } from './class.js';
4
+ import { application_of, installed_in } from './relationships.js';
5
+ export const shellApplication = node(Application, {});
6
+ export const applicationCore = {
7
+ nodes: { shell: shellApplication },
8
+ edges: [
9
+ edge(shellApplication, installed_in, defaultSpace, {}),
10
+ edge(shellApplication, application_of, domain(), {}),
11
+ ],
12
+ };
13
+ //# sourceMappingURL=core.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core.js","sourceRoot":"","sources":["../../../schema/application/core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAgB,MAAM,wBAAwB,CAAA;AAEzE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAE5C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjE,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAErD,MAAM,CAAC,MAAM,eAAe,GAGvB;IACH,KAAK,EAAE,EAAE,KAAK,EAAE,gBAAgB,EAAE;IAClC,KAAK,EAAE;QACL,IAAI,CAAC,gBAAgB,EAAE,YAAY,EAAE,YAAY,EAAE,EAAE,CAAC;QACtD,IAAI,CAAC,gBAAgB,EAAE,cAAc,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;KACrD;CACF,CAAA"}
@@ -0,0 +1,7 @@
1
+ export { Application } from './class.js';
2
+ export { applicationCore, shellApplication } from './core.js';
3
+ export { applicationInstall, applicationUninstall, type InstallApplicationInput, type InstallApplicationResult, type UninstallApplicationInput, type UninstallApplicationResult, } from './methods.js';
4
+ export { mayAdministerApplication } from './policies.js';
5
+ export { application_of, installed_in } from './relationships.js';
6
+ export { applicationView } from './view.js';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schema/application/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAC7D,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,GAChC,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA"}
@@ -0,0 +1,7 @@
1
+ export { Application } from './class.js';
2
+ export { applicationCore, shellApplication } from './core.js';
3
+ export { applicationInstall, applicationUninstall, } from './methods.js';
4
+ export { mayAdministerApplication } from './policies.js';
5
+ export { application_of, installed_in } from './relationships.js';
6
+ export { applicationView } from './view.js';
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schema/application/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAC7D,OAAO,EACL,kBAAkB,EAClB,oBAAoB,GAKrB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA"}
@@ -0,0 +1,171 @@
1
+ import type { NodeId } from '@astrale-os/sdk/graph/node';
2
+ import type { NodePath, PathLike } from '@astrale-os/sdk/graph/path';
3
+ import { z } from 'zod';
4
+ export interface InstallApplicationInput {
5
+ readonly domain: PathLike;
6
+ readonly space: PathLike;
7
+ }
8
+ export interface InstallApplicationResult {
9
+ readonly application: {
10
+ readonly id: NodeId;
11
+ readonly path: NodePath;
12
+ readonly class: 'Application';
13
+ };
14
+ readonly domain: NodePath;
15
+ readonly space: {
16
+ readonly id: NodeId;
17
+ readonly path: NodePath;
18
+ readonly class: 'Space';
19
+ };
20
+ }
21
+ export interface UninstallApplicationInput extends Readonly<Record<never, never>> {
22
+ }
23
+ export interface UninstallApplicationResult extends Readonly<Record<never, never>> {
24
+ }
25
+ export declare const applicationInstall: import("@astrale-os/sdk/schema").Function<{
26
+ readonly description: "Convergently associate one installed Domain with one Space.";
27
+ readonly static: true;
28
+ readonly input: z.ZodObject<{
29
+ domain: import("@astrale-os/sdk/schema").Path<readonly [{
30
+ origin: string;
31
+ kind: 'class';
32
+ name: string;
33
+ }]>;
34
+ space: import("@astrale-os/sdk/schema").Path<readonly [import("@astrale-os/sdk/schema").NodeClass<{
35
+ readonly description: "A named Shell collaboration boundary.";
36
+ readonly implements: readonly [{
37
+ origin: "kernel.astrale.ai";
38
+ kind: 'interface';
39
+ name: string;
40
+ }, {
41
+ origin: "kernel.astrale.ai";
42
+ kind: 'interface';
43
+ name: string;
44
+ }];
45
+ readonly methods: {
46
+ addUser: import("@astrale-os/sdk/schema").Function<{
47
+ readonly description: "Set one User direct member or admin access.";
48
+ readonly input: z.ZodObject<{
49
+ user: import("@astrale-os/sdk/schema").Path<readonly [import("@astrale-os/sdk/schema").NodeInterface<{
50
+ readonly description: "A human-facing Shell principal.";
51
+ readonly extends: readonly [{
52
+ origin: "kernel.astrale.ai";
53
+ kind: 'interface';
54
+ name: "Identity";
55
+ }];
56
+ }>]>;
57
+ access: z.ZodEnum<{
58
+ admin: "admin";
59
+ member: "member";
60
+ }>;
61
+ }, z.core.$strict>;
62
+ readonly output: {
63
+ type: 'object';
64
+ properties: {};
65
+ additionalProperties: boolean;
66
+ };
67
+ readonly auth: "authorized";
68
+ readonly policy: ({ check, self }: import("@astrale-os/sdk/schema").CallablePolicyContext) => import("@astrale-os/sdk/schema").PolicyCheckExpression;
69
+ }>;
70
+ removeUser: import("@astrale-os/sdk/schema").Function<{
71
+ readonly description: "Remove one User direct access.";
72
+ readonly input: z.ZodObject<{
73
+ user: import("@astrale-os/sdk/schema").Path<readonly [import("@astrale-os/sdk/schema").NodeInterface<{
74
+ readonly description: "A human-facing Shell principal.";
75
+ readonly extends: readonly [{
76
+ origin: "kernel.astrale.ai";
77
+ kind: 'interface';
78
+ name: "Identity";
79
+ }];
80
+ }>]>;
81
+ }, z.core.$strict>;
82
+ readonly output: {
83
+ type: 'object';
84
+ properties: {};
85
+ additionalProperties: boolean;
86
+ };
87
+ readonly auth: "authorized";
88
+ readonly policy: ({ check, self }: import("@astrale-os/sdk/schema").CallablePolicyContext) => import("@astrale-os/sdk/schema").PolicyCheckExpression;
89
+ }>;
90
+ setDefault: import("@astrale-os/sdk/schema").Function<{
91
+ readonly description: "Set this accessible Space as the granted User fallback.";
92
+ readonly input: {
93
+ type: 'object';
94
+ properties: {};
95
+ additionalProperties: boolean;
96
+ };
97
+ readonly output: {
98
+ type: 'object';
99
+ properties: {};
100
+ additionalProperties: boolean;
101
+ };
102
+ readonly auth: "authorized";
103
+ readonly policy: ({ check, self }: import("@astrale-os/sdk/schema").CallablePolicyContext) => import("@astrale-os/sdk/schema").PolicyCheckExpression;
104
+ }>;
105
+ };
106
+ }>]>;
107
+ }, z.core.$strict>;
108
+ readonly output: {
109
+ readonly type: "object";
110
+ readonly properties: {
111
+ readonly application: {
112
+ readonly type: "object";
113
+ readonly properties: {
114
+ readonly id: {
115
+ readonly type: "string";
116
+ };
117
+ readonly path: {
118
+ type: 'string';
119
+ pattern: string;
120
+ };
121
+ readonly class: {
122
+ readonly const: "Application";
123
+ };
124
+ };
125
+ readonly required: readonly ["id", "path", "class"];
126
+ readonly additionalProperties: false;
127
+ };
128
+ readonly domain: {
129
+ type: 'string';
130
+ pattern: string;
131
+ };
132
+ readonly space: {
133
+ readonly type: "object";
134
+ readonly properties: {
135
+ readonly id: {
136
+ readonly type: "string";
137
+ };
138
+ readonly path: {
139
+ type: 'string';
140
+ pattern: string;
141
+ };
142
+ readonly class: {
143
+ readonly const: "Space";
144
+ };
145
+ };
146
+ readonly required: readonly ["id", "path", "class"];
147
+ readonly additionalProperties: false;
148
+ };
149
+ };
150
+ readonly required: readonly ["application", "domain", "space"];
151
+ readonly additionalProperties: false;
152
+ } & import("@astrale-os/sdk/schema").TypedValueSchema<InstallApplicationResult>;
153
+ readonly auth: "authorized";
154
+ readonly policy: ({ check, input }: import("@astrale-os/sdk/schema").CallablePolicyContext) => import("@astrale-os/sdk/schema").PolicyCheckExpression;
155
+ }>;
156
+ export declare const applicationUninstall: import("@astrale-os/sdk/schema").Function<{
157
+ readonly description: "Remove this Application association without uninstalling its Domain.";
158
+ readonly input: {
159
+ type: 'object';
160
+ properties: {};
161
+ additionalProperties: boolean;
162
+ };
163
+ readonly output: {
164
+ type: 'object';
165
+ properties: {};
166
+ additionalProperties: boolean;
167
+ } & import("@astrale-os/sdk/schema").TypedValueSchema<UninstallApplicationResult>;
168
+ readonly auth: "authorized";
169
+ readonly policy: ({ check, self }: import("@astrale-os/sdk/schema").CallablePolicyContext) => import("@astrale-os/sdk/schema").PolicyCheckExpression;
170
+ }>;
171
+ //# sourceMappingURL=methods.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"methods.d.ts","sourceRoot":"","sources":["../../../schema/application/methods.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAGpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAcvB,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAA;IACzB,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAA;CACzB;AACD,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,WAAW,EAAE;QACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;QACnB,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;QACvB,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAA;KAC9B,CAAA;IACD,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAA;IACzB,QAAQ,CAAC,KAAK,EAAE;QAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;KAAE,CAAA;CAC1F;AACD,MAAM,WAAW,yBAA0B,SAAQ,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;CAAG;AACpF,MAAM,WAAW,0BAA2B,SAAQ,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;CAAG;AAwBrF,eAAO,MAAM,kBAAkB;;;;;;kBAxC2B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BADxC,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgD/B,CAAA;AAEF,eAAO,MAAM,oBAAoB;;;cAtDzB,QAAQ;;;;;;;;;;;EA4Dd,CAAA"}
@@ -0,0 +1,48 @@
1
+ import { fn, path, valueSchema } from '@astrale-os/sdk/schema';
2
+ import { z } from 'zod';
3
+ import { Space, mayAdministerSpace } from '#schema/space';
4
+ import { mayAdministerApplication } from './policies.js';
5
+ const emptyObject = {
6
+ type: 'object',
7
+ properties: {},
8
+ additionalProperties: false,
9
+ };
10
+ const nodePath = { type: 'string', pattern: '^/' };
11
+ const KernelDomain = { origin: 'kernel.astrale.ai', kind: 'class', name: 'Domain' };
12
+ const installApplicationResult = valueSchema()({
13
+ type: 'object',
14
+ properties: {
15
+ application: {
16
+ type: 'object',
17
+ properties: { id: { type: 'string' }, path: nodePath, class: { const: 'Application' } },
18
+ required: ['id', 'path', 'class'],
19
+ additionalProperties: false,
20
+ },
21
+ domain: nodePath,
22
+ space: {
23
+ type: 'object',
24
+ properties: { id: { type: 'string' }, path: nodePath, class: { const: 'Space' } },
25
+ required: ['id', 'path', 'class'],
26
+ additionalProperties: false,
27
+ },
28
+ },
29
+ required: ['application', 'domain', 'space'],
30
+ additionalProperties: false,
31
+ });
32
+ const uninstallApplicationResult = valueSchema()(emptyObject);
33
+ export const applicationInstall = fn({
34
+ description: 'Convergently associate one installed Domain with one Space.',
35
+ static: true,
36
+ input: z.strictObject({ domain: path(KernelDomain), space: path(Space) }),
37
+ output: installApplicationResult,
38
+ auth: 'authorized',
39
+ policy: ({ check, input }) => check(mayAdministerSpace, input.space),
40
+ });
41
+ export const applicationUninstall = fn({
42
+ description: 'Remove this Application association without uninstalling its Domain.',
43
+ input: emptyObject,
44
+ output: uninstallApplicationResult,
45
+ auth: 'authorized',
46
+ policy: ({ check, self }) => check(mayAdministerApplication, self),
47
+ });
48
+ //# sourceMappingURL=methods.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"methods.js","sourceRoot":"","sources":["../../../schema/application/methods.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAEzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAA;AAExD,MAAM,WAAW,GAAG;IAClB,IAAI,EAAE,QAAiB;IACvB,UAAU,EAAE,EAAE;IACd,oBAAoB,EAAE,KAAK;CAC5B,CAAA;AACD,MAAM,QAAQ,GAAG,EAAE,IAAI,EAAE,QAAiB,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;AAC3D,MAAM,YAAY,GAAG,EAAE,MAAM,EAAE,mBAAmB,EAAE,IAAI,EAAE,OAAgB,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAA;AAkB5F,MAAM,wBAAwB,GAAG,WAAW,EAA4B,CAAC;IACvE,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,EAAE;YACvF,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC;YACjC,oBAAoB,EAAE,KAAK;SAC5B;QACD,MAAM,EAAE,QAAQ;QAChB,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;YACjF,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC;YACjC,oBAAoB,EAAE,KAAK;SAC5B;KACF;IACD,QAAQ,EAAE,CAAC,aAAa,EAAE,QAAQ,EAAE,OAAO,CAAC;IAC5C,oBAAoB,EAAE,KAAK;CAC5B,CAAC,CAAA;AACF,MAAM,0BAA0B,GAAG,WAAW,EAA8B,CAAC,WAAW,CAAC,CAAA;AAEzF,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAC;IACnC,WAAW,EAAE,6DAA6D;IAC1E,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,YAAY,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IACzE,MAAM,EAAE,wBAAwB;IAChC,IAAI,EAAE,YAAY;IAClB,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,kBAAkB,EAAE,KAAK,CAAC,KAAK,CAAC;CACrE,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,CAAC;IACrC,WAAW,EAAE,sEAAsE;IACnF,KAAK,EAAE,WAAW;IAClB,MAAM,EAAE,0BAA0B;IAClC,IAAI,EAAE,YAAY;IAClB,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,wBAAwB,EAAE,IAAI,CAAC;CACnE,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { type builder } from '@astrale-os/sdk/schema';
2
+ export declare const mayAdministerApplication: builder.Policy;
3
+ //# sourceMappingURL=policies.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"policies.d.ts","sourceRoot":"","sources":["../../../schema/application/policies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,OAAO,EAAE,MAAM,wBAAwB,CAAA;AAMnE,eAAO,MAAM,wBAAwB,EAAE,OAAO,CAAC,MAa7C,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { definePolicy } from '@astrale-os/sdk/schema';
2
+ import { Space, administers_space, owns_space } from '#schema/space';
3
+ import { installed_in } from './relationships.js';
4
+ export const mayAdministerApplication = definePolicy({
5
+ description: 'The effective User Grant administers the Application Space.',
6
+ match: ({ allOf, anyOf, edge, exists, object, subject }) => exists(({ node }) => {
7
+ const space = node(Space);
8
+ return allOf(edge({ source: object, class: installed_in, target: space }), anyOf(edge({ source: subject, class: owns_space, target: space }), edge({ source: subject, class: administers_space, target: space })));
9
+ }),
10
+ });
11
+ //# sourceMappingURL=policies.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"policies.js","sourceRoot":"","sources":["../../../schema/application/policies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAgB,MAAM,wBAAwB,CAAA;AAEnE,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAEpE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,CAAC,MAAM,wBAAwB,GAAmB,YAAY,CAAC;IACnE,WAAW,EAAE,6DAA6D;IAC1E,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,CACzD,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;QAClB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAA;QACzB,OAAO,KAAK,CACV,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,EAC5D,KAAK,CACH,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,EAC3D,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CACnE,CACF,CAAA;IACH,CAAC,CAAC;CACL,CAAC,CAAA"}