@astrale-domains/shell 0.1.0-beta.4 → 0.1.0-beta.41

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 (513) hide show
  1. package/README.md +143 -64
  2. package/dist/domain.d.ts +99 -0
  3. package/dist/domain.js +77 -0
  4. package/dist/functions/application/index.js +1 -3
  5. package/dist/functions/application/list-entrypoints.js +4 -0
  6. package/dist/functions/group/assign-member-to-group.js +4 -0
  7. package/dist/functions/group/change-group-membership.js +34 -0
  8. package/dist/functions/group/group-membership-errors.js +23 -0
  9. package/dist/functions/group/index.js +2 -3
  10. package/dist/functions/group/unassign-member-from-group.js +4 -0
  11. package/dist/functions/user/index.js +1 -3
  12. package/dist/functions/user/invite-user.js +39 -0
  13. package/dist/index.d.ts +1 -4
  14. package/dist/index.js +1 -4
  15. package/dist/integrations/index.d.ts +1 -0
  16. package/dist/integrations/index.js +1 -0
  17. package/dist/integrations/integrations.d.ts +9 -0
  18. package/dist/integrations/integrations.js +2 -0
  19. package/dist/integrations/user-invitation/index.d.ts +4 -0
  20. package/dist/integrations/user-invitation/index.js +3 -0
  21. package/dist/integrations/user-invitation/invitation-request-failure.d.ts +5 -0
  22. package/dist/integrations/user-invitation/invitation-request-failure.js +9 -0
  23. package/dist/integrations/user-invitation/invite-user-request.d.ts +6 -0
  24. package/dist/integrations/user-invitation/invite-user-request.js +1 -0
  25. package/dist/integrations/user-invitation/request-user-invitation.d.ts +8 -0
  26. package/dist/integrations/user-invitation/request-user-invitation.js +9 -0
  27. package/dist/mutations/group/index.js +1 -2
  28. package/dist/mutations/group/set-group-membership.js +29 -0
  29. package/dist/providers/admin-enrollment/create-admin-enrollment-provider.js +78 -0
  30. package/dist/providers/admin-enrollment/decode-admin-invitation-response.js +20 -0
  31. package/dist/providers/admin-enrollment/index.js +1 -0
  32. package/dist/providers/admin-enrollment/read-enrollment-response.js +34 -0
  33. package/dist/queries/application/index.js +1 -3
  34. package/dist/queries/application/read-installed-entrypoints.js +44 -0
  35. package/dist/queries/group/index.js +2 -3
  36. package/dist/queries/group/read-group-membership-endpoints.js +18 -0
  37. package/dist/queries/group/read-group-membership.js +35 -0
  38. package/dist/runtime.d.ts +462 -0
  39. package/dist/runtime.js +16 -0
  40. package/dist/schema/index.d.ts +5 -7
  41. package/dist/schema/index.js +4 -7
  42. package/dist/schema/modules/application/functions/index.d.ts +1 -0
  43. package/dist/schema/modules/application/functions/index.js +1 -0
  44. package/dist/schema/modules/application/functions/list-entrypoints.d.ts +15 -0
  45. package/dist/schema/modules/application/functions/list-entrypoints.js +16 -0
  46. package/dist/schema/modules/application/index.d.ts +2 -0
  47. package/dist/schema/modules/application/index.js +2 -0
  48. package/dist/schema/modules/application/types/entrypoint-entry.d.ts +8 -0
  49. package/dist/schema/modules/application/types/entrypoint-entry.js +7 -0
  50. package/dist/schema/modules/application/types/index.d.ts +1 -0
  51. package/dist/schema/modules/application/types/index.js +1 -0
  52. package/dist/schema/modules/group/classes/group.d.ts +20 -0
  53. package/dist/schema/modules/group/classes/group.js +8 -0
  54. package/dist/schema/modules/group/classes/index.d.ts +2 -0
  55. package/dist/schema/modules/group/classes/index.js +2 -0
  56. package/dist/schema/modules/group/classes/member-of-group.d.ts +16 -0
  57. package/dist/schema/modules/group/classes/member-of-group.js +11 -0
  58. package/dist/schema/modules/group/core/administrators-group.d.ts +1 -0
  59. package/dist/schema/modules/group/core/administrators-group.js +6 -0
  60. package/dist/schema/modules/group/core/applications-group.d.ts +1 -0
  61. package/dist/schema/modules/group/core/applications-group.js +6 -0
  62. package/dist/schema/modules/group/core/index.d.ts +3 -0
  63. package/dist/schema/modules/group/core/index.js +3 -0
  64. package/dist/schema/modules/group/core/members-group.d.ts +1 -0
  65. package/dist/schema/modules/group/core/members-group.js +6 -0
  66. package/dist/schema/modules/group/functions/assign-member-to-group.js +11 -0
  67. package/dist/schema/modules/group/functions/index.js +2 -0
  68. package/dist/schema/modules/group/functions/unassign-member-from-group.js +11 -0
  69. package/dist/schema/modules/group/index.d.ts +3 -0
  70. package/dist/schema/modules/group/index.js +3 -0
  71. package/dist/schema/modules/group/policies/belongs-to-group.d.ts +1 -0
  72. package/dist/schema/modules/group/policies/belongs-to-group.js +5 -0
  73. package/dist/schema/modules/group/policies/index.d.ts +1 -0
  74. package/dist/schema/modules/group/policies/index.js +1 -0
  75. package/dist/schema/modules/group/types/group-membership-input.js +8 -0
  76. package/dist/schema/modules/group/types/index.js +1 -0
  77. package/dist/schema/modules/user/classes/index.d.ts +1 -0
  78. package/dist/schema/modules/user/classes/index.js +1 -0
  79. package/dist/schema/modules/user/classes/user.d.ts +21 -0
  80. package/dist/schema/modules/user/classes/user.js +12 -0
  81. package/dist/schema/modules/user/functions/index.js +1 -0
  82. package/dist/schema/modules/user/functions/invite-user.js +12 -0
  83. package/dist/schema/modules/user/index.d.ts +2 -0
  84. package/dist/schema/modules/user/index.js +2 -0
  85. package/dist/schema/modules/user/types/index.d.ts +1 -0
  86. package/dist/schema/modules/user/types/index.js +1 -0
  87. package/dist/schema/modules/user/types/invitation-summary.d.ts +16 -0
  88. package/dist/schema/modules/user/types/invitation-summary.js +15 -0
  89. package/dist/schema/policies/administers-shell-class.js +11 -0
  90. package/dist/schema/policies/index.js +3 -0
  91. package/dist/schema/policies/owns-class.js +7 -0
  92. package/dist/schema/policies/uses-function.js +5 -0
  93. package/dist/schema/schema.d.ts +342 -0
  94. package/dist/schema/schema.js +27 -0
  95. package/dist/schema/views/application-view.js +4 -0
  96. package/dist/schema/views/index.js +1 -0
  97. package/dist/utils/canonical-node-path/index.js +1 -0
  98. package/dist/utils/canonical-node-path/parse-canonical-node-path.js +8 -0
  99. package/package.json +51 -30
  100. package/dist/functions/application/index.d.ts +0 -3
  101. package/dist/functions/application/index.d.ts.map +0 -1
  102. package/dist/functions/application/index.js.map +0 -1
  103. package/dist/functions/application/install.d.ts +0 -4
  104. package/dist/functions/application/install.d.ts.map +0 -1
  105. package/dist/functions/application/install.js +0 -11
  106. package/dist/functions/application/install.js.map +0 -1
  107. package/dist/functions/application/uninstall.d.ts +0 -5
  108. package/dist/functions/application/uninstall.d.ts.map +0 -1
  109. package/dist/functions/application/uninstall.js +0 -11
  110. package/dist/functions/application/uninstall.js.map +0 -1
  111. package/dist/functions/execution/index.d.ts +0 -15
  112. package/dist/functions/execution/index.d.ts.map +0 -1
  113. package/dist/functions/execution/index.js +0 -2
  114. package/dist/functions/execution/index.js.map +0 -1
  115. package/dist/functions/group/assign-user.d.ts +0 -5
  116. package/dist/functions/group/assign-user.d.ts.map +0 -1
  117. package/dist/functions/group/assign-user.js +0 -11
  118. package/dist/functions/group/assign-user.js.map +0 -1
  119. package/dist/functions/group/index.d.ts +0 -3
  120. package/dist/functions/group/index.d.ts.map +0 -1
  121. package/dist/functions/group/index.js.map +0 -1
  122. package/dist/functions/group/unassign-user.d.ts +0 -5
  123. package/dist/functions/group/unassign-user.d.ts.map +0 -1
  124. package/dist/functions/group/unassign-user.js +0 -11
  125. package/dist/functions/group/unassign-user.js.map +0 -1
  126. package/dist/functions/index.d.ts +0 -6
  127. package/dist/functions/index.d.ts.map +0 -1
  128. package/dist/functions/index.js +0 -6
  129. package/dist/functions/index.js.map +0 -1
  130. package/dist/functions/space/add-user.d.ts +0 -5
  131. package/dist/functions/space/add-user.d.ts.map +0 -1
  132. package/dist/functions/space/add-user.js +0 -11
  133. package/dist/functions/space/add-user.js.map +0 -1
  134. package/dist/functions/space/index.d.ts +0 -4
  135. package/dist/functions/space/index.d.ts.map +0 -1
  136. package/dist/functions/space/index.js +0 -4
  137. package/dist/functions/space/index.js.map +0 -1
  138. package/dist/functions/space/remove-user.d.ts +0 -5
  139. package/dist/functions/space/remove-user.d.ts.map +0 -1
  140. package/dist/functions/space/remove-user.js +0 -11
  141. package/dist/functions/space/remove-user.js.map +0 -1
  142. package/dist/functions/space/set-default.d.ts +0 -6
  143. package/dist/functions/space/set-default.d.ts.map +0 -1
  144. package/dist/functions/space/set-default.js +0 -11
  145. package/dist/functions/space/set-default.js.map +0 -1
  146. package/dist/functions/user/administrator.d.ts +0 -4
  147. package/dist/functions/user/administrator.d.ts.map +0 -1
  148. package/dist/functions/user/administrator.js +0 -39
  149. package/dist/functions/user/administrator.js.map +0 -1
  150. package/dist/functions/user/ensure.d.ts +0 -18
  151. package/dist/functions/user/ensure.d.ts.map +0 -1
  152. package/dist/functions/user/ensure.js +0 -49
  153. package/dist/functions/user/ensure.js.map +0 -1
  154. package/dist/functions/user/index.d.ts +0 -3
  155. package/dist/functions/user/index.d.ts.map +0 -1
  156. package/dist/functions/user/index.js.map +0 -1
  157. package/dist/index.d.ts.map +0 -1
  158. package/dist/index.js.map +0 -1
  159. package/dist/mutations/application/association.d.ts +0 -14
  160. package/dist/mutations/application/association.d.ts.map +0 -1
  161. package/dist/mutations/application/association.js +0 -46
  162. package/dist/mutations/application/association.js.map +0 -1
  163. package/dist/mutations/application/errors.d.ts +0 -5
  164. package/dist/mutations/application/errors.d.ts.map +0 -1
  165. package/dist/mutations/application/errors.js +0 -2
  166. package/dist/mutations/application/errors.js.map +0 -1
  167. package/dist/mutations/application/index.d.ts +0 -4
  168. package/dist/mutations/application/index.d.ts.map +0 -1
  169. package/dist/mutations/application/index.js +0 -3
  170. package/dist/mutations/application/index.js.map +0 -1
  171. package/dist/mutations/application/removal.d.ts +0 -6
  172. package/dist/mutations/application/removal.d.ts.map +0 -1
  173. package/dist/mutations/application/removal.js +0 -17
  174. package/dist/mutations/application/removal.js.map +0 -1
  175. package/dist/mutations/group/errors.d.ts +0 -5
  176. package/dist/mutations/group/errors.d.ts.map +0 -1
  177. package/dist/mutations/group/errors.js +0 -2
  178. package/dist/mutations/group/errors.js.map +0 -1
  179. package/dist/mutations/group/index.d.ts +0 -3
  180. package/dist/mutations/group/index.d.ts.map +0 -1
  181. package/dist/mutations/group/index.js.map +0 -1
  182. package/dist/mutations/group/membership.d.ts +0 -26
  183. package/dist/mutations/group/membership.d.ts.map +0 -1
  184. package/dist/mutations/group/membership.js +0 -71
  185. package/dist/mutations/group/membership.js.map +0 -1
  186. package/dist/mutations/index.d.ts +0 -4
  187. package/dist/mutations/index.d.ts.map +0 -1
  188. package/dist/mutations/index.js +0 -4
  189. package/dist/mutations/index.js.map +0 -1
  190. package/dist/mutations/space/access.d.ts +0 -30
  191. package/dist/mutations/space/access.d.ts.map +0 -1
  192. package/dist/mutations/space/access.js +0 -54
  193. package/dist/mutations/space/access.js.map +0 -1
  194. package/dist/mutations/space/default.d.ts +0 -26
  195. package/dist/mutations/space/default.d.ts.map +0 -1
  196. package/dist/mutations/space/default.js +0 -46
  197. package/dist/mutations/space/default.js.map +0 -1
  198. package/dist/mutations/space/errors.d.ts +0 -5
  199. package/dist/mutations/space/errors.d.ts.map +0 -1
  200. package/dist/mutations/space/errors.js +0 -2
  201. package/dist/mutations/space/errors.js.map +0 -1
  202. package/dist/mutations/space/index.d.ts +0 -4
  203. package/dist/mutations/space/index.d.ts.map +0 -1
  204. package/dist/mutations/space/index.js +0 -3
  205. package/dist/mutations/space/index.js.map +0 -1
  206. package/dist/mutations/user/index.d.ts +0 -1
  207. package/dist/mutations/user/index.d.ts.map +0 -1
  208. package/dist/mutations/user/index.js +0 -2
  209. package/dist/mutations/user/index.js.map +0 -1
  210. package/dist/public.d.ts +0 -5
  211. package/dist/public.d.ts.map +0 -1
  212. package/dist/public.js +0 -154
  213. package/dist/public.js.map +0 -1
  214. package/dist/queries/application/association.d.ts +0 -18
  215. package/dist/queries/application/association.d.ts.map +0 -1
  216. package/dist/queries/application/association.js +0 -82
  217. package/dist/queries/application/association.js.map +0 -1
  218. package/dist/queries/application/identity.d.ts +0 -4
  219. package/dist/queries/application/identity.d.ts.map +0 -1
  220. package/dist/queries/application/identity.js +0 -41
  221. package/dist/queries/application/identity.js.map +0 -1
  222. package/dist/queries/application/index.d.ts +0 -3
  223. package/dist/queries/application/index.d.ts.map +0 -1
  224. package/dist/queries/application/index.js.map +0 -1
  225. package/dist/queries/group/identity.d.ts +0 -3
  226. package/dist/queries/group/identity.d.ts.map +0 -1
  227. package/dist/queries/group/identity.js +0 -29
  228. package/dist/queries/group/identity.js.map +0 -1
  229. package/dist/queries/group/index.d.ts +0 -3
  230. package/dist/queries/group/index.d.ts.map +0 -1
  231. package/dist/queries/group/index.js.map +0 -1
  232. package/dist/queries/group/membership.d.ts +0 -17
  233. package/dist/queries/group/membership.d.ts.map +0 -1
  234. package/dist/queries/group/membership.js +0 -47
  235. package/dist/queries/group/membership.js.map +0 -1
  236. package/dist/queries/index.d.ts +0 -4
  237. package/dist/queries/index.d.ts.map +0 -1
  238. package/dist/queries/index.js +0 -4
  239. package/dist/queries/index.js.map +0 -1
  240. package/dist/queries/space/access.d.ts +0 -24
  241. package/dist/queries/space/access.d.ts.map +0 -1
  242. package/dist/queries/space/access.js +0 -93
  243. package/dist/queries/space/access.js.map +0 -1
  244. package/dist/queries/space/default.d.ts +0 -10
  245. package/dist/queries/space/default.d.ts.map +0 -1
  246. package/dist/queries/space/default.js +0 -25
  247. package/dist/queries/space/default.js.map +0 -1
  248. package/dist/queries/space/index.d.ts +0 -3
  249. package/dist/queries/space/index.d.ts.map +0 -1
  250. package/dist/queries/space/index.js +0 -3
  251. package/dist/queries/space/index.js.map +0 -1
  252. package/dist/rules/application/association.d.ts +0 -13
  253. package/dist/rules/application/association.d.ts.map +0 -1
  254. package/dist/rules/application/association.js +0 -10
  255. package/dist/rules/application/association.js.map +0 -1
  256. package/dist/rules/application/index.d.ts +0 -4
  257. package/dist/rules/application/index.d.ts.map +0 -1
  258. package/dist/rules/application/index.js +0 -4
  259. package/dist/rules/application/index.js.map +0 -1
  260. package/dist/rules/application/removal.d.ts +0 -11
  261. package/dist/rules/application/removal.d.ts.map +0 -1
  262. package/dist/rules/application/removal.js +0 -6
  263. package/dist/rules/application/removal.js.map +0 -1
  264. package/dist/rules/application/result.d.ts +0 -8
  265. package/dist/rules/application/result.d.ts.map +0 -1
  266. package/dist/rules/application/result.js +0 -17
  267. package/dist/rules/application/result.js.map +0 -1
  268. package/dist/rules/group/index.d.ts +0 -2
  269. package/dist/rules/group/index.d.ts.map +0 -1
  270. package/dist/rules/group/index.js +0 -2
  271. package/dist/rules/group/index.js.map +0 -1
  272. package/dist/rules/group/membership.d.ts +0 -5
  273. package/dist/rules/group/membership.d.ts.map +0 -1
  274. package/dist/rules/group/membership.js +0 -12
  275. package/dist/rules/group/membership.js.map +0 -1
  276. package/dist/rules/index.d.ts +0 -5
  277. package/dist/rules/index.d.ts.map +0 -1
  278. package/dist/rules/index.js +0 -5
  279. package/dist/rules/index.js.map +0 -1
  280. package/dist/rules/space/access.d.ts +0 -8
  281. package/dist/rules/space/access.d.ts.map +0 -1
  282. package/dist/rules/space/access.js +0 -18
  283. package/dist/rules/space/access.js.map +0 -1
  284. package/dist/rules/space/default.d.ts +0 -4
  285. package/dist/rules/space/default.d.ts.map +0 -1
  286. package/dist/rules/space/default.js +0 -7
  287. package/dist/rules/space/default.js.map +0 -1
  288. package/dist/rules/space/index.d.ts +0 -3
  289. package/dist/rules/space/index.d.ts.map +0 -1
  290. package/dist/rules/space/index.js +0 -3
  291. package/dist/rules/space/index.js.map +0 -1
  292. package/dist/rules/user/ensure.d.ts +0 -21
  293. package/dist/rules/user/ensure.d.ts.map +0 -1
  294. package/dist/rules/user/ensure.js +0 -61
  295. package/dist/rules/user/ensure.js.map +0 -1
  296. package/dist/rules/user/grant.d.ts +0 -13
  297. package/dist/rules/user/grant.d.ts.map +0 -1
  298. package/dist/rules/user/grant.js +0 -12
  299. package/dist/rules/user/grant.js.map +0 -1
  300. package/dist/rules/user/index.d.ts +0 -3
  301. package/dist/rules/user/index.d.ts.map +0 -1
  302. package/dist/rules/user/index.js +0 -3
  303. package/dist/rules/user/index.js.map +0 -1
  304. package/dist/schema/application/class.d.ts +0 -152
  305. package/dist/schema/application/class.d.ts.map +0 -1
  306. package/dist/schema/application/class.js +0 -10
  307. package/dist/schema/application/class.js.map +0 -1
  308. package/dist/schema/application/core.d.ts +0 -159
  309. package/dist/schema/application/core.d.ts.map +0 -1
  310. package/dist/schema/application/core.js +0 -13
  311. package/dist/schema/application/core.js.map +0 -1
  312. package/dist/schema/application/index.d.ts +0 -7
  313. package/dist/schema/application/index.d.ts.map +0 -1
  314. package/dist/schema/application/index.js +0 -7
  315. package/dist/schema/application/index.js.map +0 -1
  316. package/dist/schema/application/methods.d.ts +0 -171
  317. package/dist/schema/application/methods.d.ts.map +0 -1
  318. package/dist/schema/application/methods.js +0 -48
  319. package/dist/schema/application/methods.js.map +0 -1
  320. package/dist/schema/application/policies.d.ts +0 -3
  321. package/dist/schema/application/policies.d.ts.map +0 -1
  322. package/dist/schema/application/policies.js +0 -11
  323. package/dist/schema/application/policies.js.map +0 -1
  324. package/dist/schema/application/relationships.d.ts +0 -795
  325. package/dist/schema/application/relationships.d.ts.map +0 -1
  326. package/dist/schema/application/relationships.js +0 -20
  327. package/dist/schema/application/relationships.js.map +0 -1
  328. package/dist/schema/application/view.d.ts +0 -155
  329. package/dist/schema/application/view.d.ts.map +0 -1
  330. package/dist/schema/application/view.js +0 -7
  331. package/dist/schema/application/view.js.map +0 -1
  332. package/dist/schema/domain/index.d.ts +0 -9363
  333. package/dist/schema/domain/index.d.ts.map +0 -1
  334. package/dist/schema/domain/index.js +0 -56
  335. package/dist/schema/domain/index.js.map +0 -1
  336. package/dist/schema/group/class.d.ts +0 -59
  337. package/dist/schema/group/class.d.ts.map +0 -1
  338. package/dist/schema/group/class.js +0 -11
  339. package/dist/schema/group/class.js.map +0 -1
  340. package/dist/schema/group/core.d.ts +0 -495
  341. package/dist/schema/group/core.d.ts.map +0 -1
  342. package/dist/schema/group/core.js +0 -20
  343. package/dist/schema/group/core.js.map +0 -1
  344. package/dist/schema/group/index.d.ts +0 -7
  345. package/dist/schema/group/index.d.ts.map +0 -1
  346. package/dist/schema/group/index.js +0 -7
  347. package/dist/schema/group/index.js.map +0 -1
  348. package/dist/schema/group/methods.d.ts +0 -48
  349. package/dist/schema/group/methods.d.ts.map +0 -1
  350. package/dist/schema/group/methods.js +0 -21
  351. package/dist/schema/group/methods.js.map +0 -1
  352. package/dist/schema/group/policies.d.ts +0 -3
  353. package/dist/schema/group/policies.d.ts.map +0 -1
  354. package/dist/schema/group/policies.js +0 -7
  355. package/dist/schema/group/policies.js.map +0 -1
  356. package/dist/schema/group/relationships.d.ts +0 -293
  357. package/dist/schema/group/relationships.d.ts.map +0 -1
  358. package/dist/schema/group/relationships.js +0 -20
  359. package/dist/schema/group/relationships.js.map +0 -1
  360. package/dist/schema/group/view.d.ts +0 -62
  361. package/dist/schema/group/view.d.ts.map +0 -1
  362. package/dist/schema/group/view.js +0 -7
  363. package/dist/schema/group/view.js.map +0 -1
  364. package/dist/schema/home/index.d.ts +0 -2
  365. package/dist/schema/home/index.d.ts.map +0 -1
  366. package/dist/schema/home/index.js +0 -2
  367. package/dist/schema/home/index.js.map +0 -1
  368. package/dist/schema/home/view.d.ts +0 -4
  369. package/dist/schema/home/view.d.ts.map +0 -1
  370. package/dist/schema/home/view.js +0 -5
  371. package/dist/schema/home/view.js.map +0 -1
  372. package/dist/schema/index.d.ts.map +0 -1
  373. package/dist/schema/index.js.map +0 -1
  374. package/dist/schema/space/class.d.ts +0 -74
  375. package/dist/schema/space/class.d.ts.map +0 -1
  376. package/dist/schema/space/class.js +0 -15
  377. package/dist/schema/space/class.js.map +0 -1
  378. package/dist/schema/space/core.d.ts +0 -995
  379. package/dist/schema/space/core.d.ts.map +0 -1
  380. package/dist/schema/space/core.js +0 -17
  381. package/dist/schema/space/core.js.map +0 -1
  382. package/dist/schema/space/index.d.ts +0 -7
  383. package/dist/schema/space/index.d.ts.map +0 -1
  384. package/dist/schema/space/index.js +0 -7
  385. package/dist/schema/space/index.js.map +0 -1
  386. package/dist/schema/space/methods.d.ts +0 -78
  387. package/dist/schema/space/methods.d.ts.map +0 -1
  388. package/dist/schema/space/methods.js +0 -31
  389. package/dist/schema/space/methods.js.map +0 -1
  390. package/dist/schema/space/policies.d.ts +0 -5
  391. package/dist/schema/space/policies.d.ts.map +0 -1
  392. package/dist/schema/space/policies.js +0 -15
  393. package/dist/schema/space/policies.js.map +0 -1
  394. package/dist/schema/space/relationships.d.ts +0 -1059
  395. package/dist/schema/space/relationships.d.ts.map +0 -1
  396. package/dist/schema/space/relationships.js +0 -25
  397. package/dist/schema/space/relationships.js.map +0 -1
  398. package/dist/schema/space/view.d.ts +0 -77
  399. package/dist/schema/space/view.d.ts.map +0 -1
  400. package/dist/schema/space/view.js +0 -7
  401. package/dist/schema/space/view.js.map +0 -1
  402. package/dist/schema/user/administrator.d.ts +0 -30
  403. package/dist/schema/user/administrator.d.ts.map +0 -1
  404. package/dist/schema/user/administrator.js +0 -19
  405. package/dist/schema/user/administrator.js.map +0 -1
  406. package/dist/schema/user/class.d.ts +0 -12
  407. package/dist/schema/user/class.d.ts.map +0 -1
  408. package/dist/schema/user/class.js +0 -7
  409. package/dist/schema/user/class.js.map +0 -1
  410. package/dist/schema/user/ensure.d.ts +0 -37
  411. package/dist/schema/user/ensure.d.ts.map +0 -1
  412. package/dist/schema/user/ensure.js +0 -28
  413. package/dist/schema/user/ensure.js.map +0 -1
  414. package/dist/schema/user/index.d.ts +0 -6
  415. package/dist/schema/user/index.d.ts.map +0 -1
  416. package/dist/schema/user/index.js +0 -6
  417. package/dist/schema/user/index.js.map +0 -1
  418. package/dist/schema/user/interface.d.ts +0 -10
  419. package/dist/schema/user/interface.d.ts.map +0 -1
  420. package/dist/schema/user/interface.js +0 -12
  421. package/dist/schema/user/interface.js.map +0 -1
  422. package/dist/schema/user/view.d.ts +0 -15
  423. package/dist/schema/user/view.d.ts.map +0 -1
  424. package/dist/schema/user/view.js +0 -7
  425. package/dist/schema/user/view.js.map +0 -1
  426. package/dist/tests/cross-layer/public.test.d.ts +0 -2
  427. package/dist/tests/cross-layer/public.test.d.ts.map +0 -1
  428. package/dist/tests/cross-layer/public.test.js +0 -70
  429. package/dist/tests/cross-layer/public.test.js.map +0 -1
  430. package/dist/tests/cross-layer/workflows.test.d.ts +0 -2
  431. package/dist/tests/cross-layer/workflows.test.d.ts.map +0 -1
  432. package/dist/tests/cross-layer/workflows.test.js +0 -290
  433. package/dist/tests/cross-layer/workflows.test.js.map +0 -1
  434. package/dist/tests/index.d.ts +0 -3
  435. package/dist/tests/index.d.ts.map +0 -1
  436. package/dist/tests/index.js +0 -3
  437. package/dist/tests/index.js.map +0 -1
  438. package/dist/utils/graph-endpoint/index.d.ts +0 -13
  439. package/dist/utils/graph-endpoint/index.d.ts.map +0 -1
  440. package/dist/utils/graph-endpoint/index.js +0 -6
  441. package/dist/utils/graph-endpoint/index.js.map +0 -1
  442. package/dist/utils/index.d.ts +0 -3
  443. package/dist/utils/index.d.ts.map +0 -1
  444. package/dist/utils/index.js +0 -3
  445. package/dist/utils/index.js.map +0 -1
  446. package/dist/utils/query-page/index.d.ts +0 -3
  447. package/dist/utils/query-page/index.d.ts.map +0 -1
  448. package/dist/utils/query-page/index.js +0 -2
  449. package/dist/utils/query-page/index.js.map +0 -1
  450. package/dist/utils/query-page/nodes.d.ts +0 -16
  451. package/dist/utils/query-page/nodes.d.ts.map +0 -1
  452. package/dist/utils/query-page/nodes.js +0 -22
  453. package/dist/utils/query-page/nodes.js.map +0 -1
  454. package/dist/workflows/application/errors.d.ts +0 -5
  455. package/dist/workflows/application/errors.d.ts.map +0 -1
  456. package/dist/workflows/application/errors.js +0 -25
  457. package/dist/workflows/application/errors.js.map +0 -1
  458. package/dist/workflows/application/index.d.ts +0 -3
  459. package/dist/workflows/application/index.d.ts.map +0 -1
  460. package/dist/workflows/application/index.js +0 -3
  461. package/dist/workflows/application/index.js.map +0 -1
  462. package/dist/workflows/application/install.d.ts +0 -3
  463. package/dist/workflows/application/install.d.ts.map +0 -1
  464. package/dist/workflows/application/install.js +0 -37
  465. package/dist/workflows/application/install.js.map +0 -1
  466. package/dist/workflows/application/uninstall.d.ts +0 -4
  467. package/dist/workflows/application/uninstall.d.ts.map +0 -1
  468. package/dist/workflows/application/uninstall.js +0 -25
  469. package/dist/workflows/application/uninstall.js.map +0 -1
  470. package/dist/workflows/group/assign-user.d.ts +0 -8
  471. package/dist/workflows/group/assign-user.d.ts.map +0 -1
  472. package/dist/workflows/group/assign-user.js +0 -32
  473. package/dist/workflows/group/assign-user.js.map +0 -1
  474. package/dist/workflows/group/ensure-administrator.d.ts +0 -4
  475. package/dist/workflows/group/ensure-administrator.d.ts.map +0 -1
  476. package/dist/workflows/group/ensure-administrator.js +0 -26
  477. package/dist/workflows/group/ensure-administrator.js.map +0 -1
  478. package/dist/workflows/group/errors.d.ts +0 -2
  479. package/dist/workflows/group/errors.d.ts.map +0 -1
  480. package/dist/workflows/group/errors.js +0 -7
  481. package/dist/workflows/group/errors.js.map +0 -1
  482. package/dist/workflows/group/index.d.ts +0 -4
  483. package/dist/workflows/group/index.d.ts.map +0 -1
  484. package/dist/workflows/group/index.js +0 -4
  485. package/dist/workflows/group/index.js.map +0 -1
  486. package/dist/workflows/group/unassign-user.d.ts +0 -8
  487. package/dist/workflows/group/unassign-user.d.ts.map +0 -1
  488. package/dist/workflows/group/unassign-user.js +0 -32
  489. package/dist/workflows/group/unassign-user.js.map +0 -1
  490. package/dist/workflows/index.d.ts +0 -4
  491. package/dist/workflows/index.d.ts.map +0 -1
  492. package/dist/workflows/index.js +0 -4
  493. package/dist/workflows/index.js.map +0 -1
  494. package/dist/workflows/space/add-user.d.ts +0 -8
  495. package/dist/workflows/space/add-user.d.ts.map +0 -1
  496. package/dist/workflows/space/add-user.js +0 -34
  497. package/dist/workflows/space/add-user.js.map +0 -1
  498. package/dist/workflows/space/errors.d.ts +0 -3
  499. package/dist/workflows/space/errors.d.ts.map +0 -1
  500. package/dist/workflows/space/errors.js +0 -10
  501. package/dist/workflows/space/errors.js.map +0 -1
  502. package/dist/workflows/space/index.d.ts +0 -4
  503. package/dist/workflows/space/index.d.ts.map +0 -1
  504. package/dist/workflows/space/index.js +0 -4
  505. package/dist/workflows/space/index.js.map +0 -1
  506. package/dist/workflows/space/remove-user.d.ts +0 -8
  507. package/dist/workflows/space/remove-user.d.ts.map +0 -1
  508. package/dist/workflows/space/remove-user.js +0 -62
  509. package/dist/workflows/space/remove-user.js.map +0 -1
  510. package/dist/workflows/space/set-default.d.ts +0 -9
  511. package/dist/workflows/space/set-default.d.ts.map +0 -1
  512. package/dist/workflows/space/set-default.js +0 -43
  513. package/dist/workflows/space/set-default.js.map +0 -1
@@ -0,0 +1,11 @@
1
+ import { edgeClass } from '@astrale-os/sdk/schema';
2
+ import { User } from '../../user/index.js';
3
+ import { Group } from './group.js';
4
+ export const member_of_group = edgeClass.directed({
5
+ source: {
6
+ as: 'member',
7
+ accepts: [() => User, () => Group],
8
+ outgoing: '0..*',
9
+ },
10
+ target: { as: 'group', accepts: [() => Group], incoming: '0..*' },
11
+ });
@@ -0,0 +1 @@
1
+ export declare const adminGroup: import("@astrale-os/sdk/schema").CoreNode;
@@ -0,0 +1,6 @@
1
+ import { K, core } from '@astrale-os/sdk/schema';
2
+ import { Group } from '../classes/group.js';
3
+ export const adminGroup = core.node(() => Group, {
4
+ [K.classes.Named.properties.name.key]: 'Administrators',
5
+ [K.classes.Descriptable.properties.description.key]: 'Instance administrators.',
6
+ });
@@ -0,0 +1 @@
1
+ export declare const applicationsGroup: import("@astrale-os/sdk/schema").CoreNode;
@@ -0,0 +1,6 @@
1
+ import { K, core } from '@astrale-os/sdk/schema';
2
+ import { Group } from '../classes/group.js';
3
+ export const applicationsGroup = core.node(() => Group, {
4
+ [K.classes.Named.properties.name.key]: 'Applications',
5
+ [K.classes.Descriptable.properties.description.key]: 'May list the installed applications they can open.',
6
+ });
@@ -0,0 +1,3 @@
1
+ export { adminGroup } from './administrators-group.js';
2
+ export { applicationsGroup } from './applications-group.js';
3
+ export { memberGroup } from './members-group.js';
@@ -0,0 +1,3 @@
1
+ export { adminGroup } from './administrators-group.js';
2
+ export { applicationsGroup } from './applications-group.js';
3
+ export { memberGroup } from './members-group.js';
@@ -0,0 +1 @@
1
+ export declare const memberGroup: import("@astrale-os/sdk/schema").CoreNode;
@@ -0,0 +1,6 @@
1
+ import { K, core } from '@astrale-os/sdk/schema';
2
+ import { Group } from '../classes/group.js';
3
+ export const memberGroup = core.node(() => Group, {
4
+ [K.classes.Named.properties.name.key]: 'Members',
5
+ [K.classes.Descriptable.properties.description.key]: 'Instance members.',
6
+ });
@@ -0,0 +1,11 @@
1
+ import { method } from '@astrale-os/sdk/schema';
2
+ import { z } from 'zod';
3
+ import { ownsClass, administersShellClass } from '../../../policies/index.js';
4
+ import { groupMembershipInput } from '../types/index.js';
5
+ export const assignMember = method({
6
+ static: true,
7
+ auth: 'authorized',
8
+ input: groupMembershipInput,
9
+ output: z.object({}),
10
+ policy: ({ anyOf, check, input }) => anyOf(check(administersShellClass, input.group), check(ownsClass, input.group)),
11
+ });
@@ -0,0 +1,2 @@
1
+ export { assignMember } from './assign-member-to-group.js';
2
+ export { unassignMember } from './unassign-member-from-group.js';
@@ -0,0 +1,11 @@
1
+ import { method } from '@astrale-os/sdk/schema';
2
+ import { z } from 'zod';
3
+ import { ownsClass, administersShellClass } from '../../../policies/index.js';
4
+ import { groupMembershipInput } from '../types/index.js';
5
+ export const unassignMember = method({
6
+ static: true,
7
+ auth: 'authorized',
8
+ input: groupMembershipInput,
9
+ output: z.object({}),
10
+ policy: ({ anyOf, check, input }) => anyOf(check(administersShellClass, input.group), check(ownsClass, input.group)),
11
+ });
@@ -0,0 +1,3 @@
1
+ export { Group, member_of_group } from './classes/index.js';
2
+ export { adminGroup, applicationsGroup, memberGroup } from './core/index.js';
3
+ export { belongsToGroup } from './policies/index.js';
@@ -0,0 +1,3 @@
1
+ export { Group, member_of_group } from './classes/index.js';
2
+ export { adminGroup, applicationsGroup, memberGroup } from './core/index.js';
3
+ export { belongsToGroup } from './policies/index.js';
@@ -0,0 +1 @@
1
+ export declare const belongsToGroup: import("@astrale-os/sdk/schema").Policy;
@@ -0,0 +1,5 @@
1
+ import { policy } from '@astrale-os/sdk/schema';
2
+ import { member_of_group } from '../classes/member-of-group.js';
3
+ export const belongsToGroup = policy({
4
+ match: ({ edge, subject, object }) => edge({ source: subject, class: () => member_of_group, target: object }),
5
+ });
@@ -0,0 +1 @@
1
+ export { belongsToGroup } from './belongs-to-group.js';
@@ -0,0 +1 @@
1
+ export { belongsToGroup } from './belongs-to-group.js';
@@ -0,0 +1,8 @@
1
+ import { path } from '@astrale-os/sdk/schema';
2
+ import { z } from 'zod';
3
+ import { User } from '../../user/index.js';
4
+ import { Group } from '../classes/group.js';
5
+ export const groupMembershipInput = z.object({
6
+ member: path(() => User, () => Group),
7
+ group: path(() => Group),
8
+ });
@@ -0,0 +1 @@
1
+ export { groupMembershipInput } from './group-membership-input.js';
@@ -0,0 +1 @@
1
+ export { User } from './user.js';
@@ -0,0 +1 @@
1
+ export { User } from './user.js';
@@ -0,0 +1,21 @@
1
+ import { z } from 'zod';
2
+ export declare const User: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
3
+ readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
4
+ readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Identity">];
5
+ readonly properties: {
6
+ readonly creationKey: z.ZodOptional<z.ZodString>;
7
+ };
8
+ readonly methods: {
9
+ readonly invite: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
10
+ user: string;
11
+ email: string;
12
+ }, {
13
+ readonly mode: 'value';
14
+ readonly value: {
15
+ invitationId: string;
16
+ user: string;
17
+ state: "accepted" | "cancelled" | "completed" | "expired" | "failed" | "pending" | "registered" | "registering";
18
+ };
19
+ }, "authorized", true, false, undefined>>;
20
+ };
21
+ }>;
@@ -0,0 +1,12 @@
1
+ import { K, classIcon, nodeClass } from '@astrale-os/sdk/schema';
2
+ import { UserRound } from '@astrale-os/sdk/schema/icons';
3
+ import { z } from 'zod';
4
+ import { invite } from '../functions/index.js';
5
+ // Correlation for Admin-owned creation; never an authentication credential.
6
+ const creationKey = z.string().min(1).max(512).optional();
7
+ export const User = nodeClass({
8
+ icon: classIcon.lucide(UserRound),
9
+ extends: [K.classes.Identity],
10
+ properties: { creationKey },
11
+ methods: { invite },
12
+ });
@@ -0,0 +1 @@
1
+ export { invite } from './invite-user.js';
@@ -0,0 +1,12 @@
1
+ import { method, path } from '@astrale-os/sdk/schema';
2
+ import { z } from 'zod';
3
+ import { ownsClass, administersShellClass } from '../../../policies/index.js';
4
+ import { User } from '../classes/index.js';
5
+ import { invitationSummary } from '../types/index.js';
6
+ export const invite = method({
7
+ static: true,
8
+ auth: 'authorized',
9
+ input: z.object({ user: path(() => User), email: z.string().min(3).max(320) }),
10
+ output: invitationSummary,
11
+ policy: ({ anyOf, check, input }) => anyOf(check(administersShellClass, input.user), check(ownsClass, input.user)),
12
+ });
@@ -0,0 +1,2 @@
1
+ export { User } from './classes/index.js';
2
+ export { invitationSummary, type InvitationSummary } from './types/index.js';
@@ -0,0 +1,2 @@
1
+ export { User } from './classes/index.js';
2
+ export { invitationSummary } from './types/index.js';
@@ -0,0 +1 @@
1
+ export { invitationSummary, type InvitationSummary } from './invitation-summary.js';
@@ -0,0 +1 @@
1
+ export { invitationSummary } from './invitation-summary.js';
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod';
2
+ export declare const invitationSummary: z.ZodObject<{
3
+ invitationId: z.ZodString;
4
+ user: z.ZodString;
5
+ state: z.ZodEnum<{
6
+ accepted: "accepted";
7
+ cancelled: "cancelled";
8
+ completed: "completed";
9
+ expired: "expired";
10
+ failed: "failed";
11
+ pending: "pending";
12
+ registered: "registered";
13
+ registering: "registering";
14
+ }>;
15
+ }, z.core.$strip>;
16
+ export type InvitationSummary = z.infer<typeof invitationSummary>;
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+ export const invitationSummary = z.object({
3
+ invitationId: z.string().min(1),
4
+ user: z.string().min(1),
5
+ state: z.enum([
6
+ 'pending',
7
+ 'accepted',
8
+ 'registering',
9
+ 'registered',
10
+ 'completed',
11
+ 'cancelled',
12
+ 'expired',
13
+ 'failed',
14
+ ]),
15
+ });
@@ -0,0 +1,11 @@
1
+ import { K, policy } from '@astrale-os/sdk/schema';
2
+ import { Group, member_of_group, adminGroup } from '../modules/group/index.js';
3
+ /** Instance administration applies to Shell's concrete classes, not foreign descendants. */
4
+ export const administersShellClass = policy({
5
+ match: ({ exists, subject, object, ref, edge, allOf }) => exists(({ node }) => {
6
+ const concrete = node();
7
+ const owner = node(); // of_domain restricts this witness to a protected Domain endpoint.
8
+ const group = ref(() => Group);
9
+ return allOf(edge({ source: subject, class: () => member_of_group, target: ref(adminGroup) }), { source: ref(adminGroup), class: K.classes.instance_of.ref, target: group }, { source: group, class: K.classes.of_domain.ref, target: owner }, { source: concrete, class: K.classes.of_domain.ref, target: owner }, { source: object, class: K.classes.instance_of.ref, target: concrete });
10
+ }),
11
+ });
@@ -0,0 +1,3 @@
1
+ export { ownsClass } from './owns-class.js';
2
+ export { administersShellClass } from './administers-shell-class.js';
3
+ export { usesFunction } from './uses-function.js';
@@ -0,0 +1,7 @@
1
+ import { K, policy } from '@astrale-os/sdk/schema';
2
+ export const ownsClass = policy({
3
+ match: ({ exists, subject, object, allOf }) => exists(({ node }) => {
4
+ const concrete = node(); // Périmètre défini par les deux edges kernel protégés.
5
+ return allOf({ source: object, class: K.classes.instance_of.ref, target: concrete }, { source: concrete, class: K.classes.of_domain.ref, target: subject });
6
+ }),
7
+ });
@@ -0,0 +1,5 @@
1
+ import { K, policy } from '@astrale-os/sdk/schema';
2
+ /** The subject may use the object Function: its own or a composed Identity holds can_use on it. */
3
+ export const usesFunction = policy({
4
+ match: ({ edge, subject, object }) => edge({ source: subject, class: () => K.classes.can_use, target: object }),
5
+ });
@@ -0,0 +1,342 @@
1
+ import { KernelSchema, schema } from '@astrale-os/sdk/schema';
2
+ export declare const ORIGIN: 'shell.astrale.ai';
3
+ declare const classes: {
4
+ readonly User: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
5
+ readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
6
+ readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Identity">];
7
+ readonly properties: {
8
+ readonly creationKey: import("zod").ZodOptional<import("zod").ZodString>;
9
+ };
10
+ readonly methods: {
11
+ readonly invite: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
12
+ user: string;
13
+ email: string;
14
+ }, {
15
+ readonly mode: 'value';
16
+ readonly value: {
17
+ invitationId: string;
18
+ user: string;
19
+ state: "accepted" | "cancelled" | "completed" | "expired" | "failed" | "pending" | "registered" | "registering";
20
+ };
21
+ }, "authorized", true, false, undefined>>;
22
+ };
23
+ }>;
24
+ readonly Group: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
25
+ readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
26
+ readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Identity">, import("@astrale-os/sdk/schema").KernelClass<"Named">, import("@astrale-os/sdk/schema").KernelClass<"Descriptable">];
27
+ readonly methods: {
28
+ readonly assignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
29
+ member: string;
30
+ group: string;
31
+ }, {
32
+ readonly mode: 'value';
33
+ readonly value: Record<string, never>;
34
+ }, "authorized", true, false, undefined>>;
35
+ readonly unassignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
36
+ member: string;
37
+ group: string;
38
+ }, {
39
+ readonly mode: 'value';
40
+ readonly value: Record<string, never>;
41
+ }, "authorized", true, false, undefined>>;
42
+ };
43
+ }>;
44
+ readonly member_of_group: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
45
+ readonly depth: 0;
46
+ readonly abstract: false;
47
+ readonly extends: readonly [];
48
+ readonly properties: never;
49
+ readonly source: {
50
+ readonly as: "member";
51
+ readonly outgoing: "0..*";
52
+ };
53
+ readonly target: {
54
+ readonly as: "group";
55
+ readonly incoming: "0..*";
56
+ };
57
+ readonly constraints: Record<never, never>;
58
+ readonly effectiveProperties: never;
59
+ }>;
60
+ };
61
+ export type ShellClasses = typeof classes;
62
+ declare const input: {
63
+ readonly name: 'Shell';
64
+ readonly entrypoint: 'application';
65
+ readonly dependencies: {
66
+ readonly kernel: KernelSchema;
67
+ };
68
+ readonly classes: {
69
+ readonly User: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
70
+ readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
71
+ readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Identity">];
72
+ readonly properties: {
73
+ readonly creationKey: import("zod").ZodOptional<import("zod").ZodString>;
74
+ };
75
+ readonly methods: {
76
+ readonly invite: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
77
+ user: string;
78
+ email: string;
79
+ }, {
80
+ readonly mode: 'value';
81
+ readonly value: {
82
+ invitationId: string;
83
+ user: string;
84
+ state: "accepted" | "cancelled" | "completed" | "expired" | "failed" | "pending" | "registered" | "registering";
85
+ };
86
+ }, "authorized", true, false, undefined>>;
87
+ };
88
+ }>;
89
+ readonly Group: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
90
+ readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
91
+ readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Identity">, import("@astrale-os/sdk/schema").KernelClass<"Named">, import("@astrale-os/sdk/schema").KernelClass<"Descriptable">];
92
+ readonly methods: {
93
+ readonly assignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
94
+ member: string;
95
+ group: string;
96
+ }, {
97
+ readonly mode: 'value';
98
+ readonly value: Record<string, never>;
99
+ }, "authorized", true, false, undefined>>;
100
+ readonly unassignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
101
+ member: string;
102
+ group: string;
103
+ }, {
104
+ readonly mode: 'value';
105
+ readonly value: Record<string, never>;
106
+ }, "authorized", true, false, undefined>>;
107
+ };
108
+ }>;
109
+ readonly member_of_group: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
110
+ readonly depth: 0;
111
+ readonly abstract: false;
112
+ readonly extends: readonly [];
113
+ readonly properties: never;
114
+ readonly source: {
115
+ readonly as: "member";
116
+ readonly outgoing: "0..*";
117
+ };
118
+ readonly target: {
119
+ readonly as: "group";
120
+ readonly incoming: "0..*";
121
+ };
122
+ readonly constraints: Record<never, never>;
123
+ readonly effectiveProperties: never;
124
+ }>;
125
+ };
126
+ readonly functions: {
127
+ readonly listEntrypoints: import("@astrale-os/sdk/schema").Function<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
128
+ readonly mode: 'value';
129
+ readonly value: {
130
+ entrypoints: {
131
+ origin: string;
132
+ name: string;
133
+ view: string;
134
+ }[];
135
+ };
136
+ }, "authorized", false, false, undefined>>;
137
+ };
138
+ readonly policies: {
139
+ readonly belongsToGroup: import("@astrale-os/sdk/schema").Policy;
140
+ readonly ownsClass: import("@astrale-os/sdk/schema").Policy;
141
+ readonly administersShellClass: import("@astrale-os/sdk/schema").Policy;
142
+ readonly usesFunction: import("@astrale-os/sdk/schema").Policy;
143
+ };
144
+ readonly views: {
145
+ readonly application: import("@astrale-os/sdk/schema").View;
146
+ };
147
+ readonly core: {
148
+ readonly nodes: {
149
+ readonly admin: import("@astrale-os/sdk/schema").CoreNode;
150
+ readonly applications: import("@astrale-os/sdk/schema").CoreNode;
151
+ readonly member: import("@astrale-os/sdk/schema").CoreNode;
152
+ };
153
+ };
154
+ };
155
+ export type ShellSchemaInput = typeof input;
156
+ export declare const ShellSchema: import("@astrale-os/sdk/schema").AuthoredSchema<"shell.astrale.ai", readonly ["kernel.astrale.ai", KernelSchema] | readonly ["shell.astrale.ai", {
157
+ readonly name: 'Shell';
158
+ readonly entrypoint: 'application';
159
+ readonly classes: {
160
+ readonly User: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
161
+ readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
162
+ readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Identity">];
163
+ readonly properties: {
164
+ readonly creationKey: import("zod").ZodOptional<import("zod").ZodString>;
165
+ };
166
+ readonly methods: {
167
+ readonly invite: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
168
+ user: string;
169
+ email: string;
170
+ }, {
171
+ readonly mode: 'value';
172
+ readonly value: {
173
+ invitationId: string;
174
+ user: string;
175
+ state: "accepted" | "cancelled" | "completed" | "expired" | "failed" | "pending" | "registered" | "registering";
176
+ };
177
+ }, "authorized", true, false, undefined>>;
178
+ };
179
+ }>;
180
+ readonly Group: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
181
+ readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
182
+ readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Identity">, import("@astrale-os/sdk/schema").KernelClass<"Named">, import("@astrale-os/sdk/schema").KernelClass<"Descriptable">];
183
+ readonly methods: {
184
+ readonly assignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
185
+ member: string;
186
+ group: string;
187
+ }, {
188
+ readonly mode: 'value';
189
+ readonly value: Record<string, never>;
190
+ }, "authorized", true, false, undefined>>;
191
+ readonly unassignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
192
+ member: string;
193
+ group: string;
194
+ }, {
195
+ readonly mode: 'value';
196
+ readonly value: Record<string, never>;
197
+ }, "authorized", true, false, undefined>>;
198
+ };
199
+ }>;
200
+ readonly member_of_group: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
201
+ readonly depth: 0;
202
+ readonly abstract: false;
203
+ readonly extends: readonly [];
204
+ readonly properties: never;
205
+ readonly source: {
206
+ readonly as: "member";
207
+ readonly outgoing: "0..*";
208
+ };
209
+ readonly target: {
210
+ readonly as: "group";
211
+ readonly incoming: "0..*";
212
+ };
213
+ readonly constraints: Record<never, never>;
214
+ readonly effectiveProperties: never;
215
+ }>;
216
+ };
217
+ readonly functions: {
218
+ readonly listEntrypoints: import("@astrale-os/sdk/schema").Function<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
219
+ readonly mode: 'value';
220
+ readonly value: {
221
+ entrypoints: {
222
+ origin: string;
223
+ name: string;
224
+ view: string;
225
+ }[];
226
+ };
227
+ }, "authorized", false, false, undefined>>;
228
+ };
229
+ readonly policies: {
230
+ readonly belongsToGroup: import("@astrale-os/sdk/schema").Policy;
231
+ readonly ownsClass: import("@astrale-os/sdk/schema").Policy;
232
+ readonly administersShellClass: import("@astrale-os/sdk/schema").Policy;
233
+ readonly usesFunction: import("@astrale-os/sdk/schema").Policy;
234
+ };
235
+ readonly views: {
236
+ readonly application: import("@astrale-os/sdk/schema").View;
237
+ };
238
+ readonly core: {
239
+ readonly nodes: {
240
+ readonly admin: import("@astrale-os/sdk/schema").CoreNode;
241
+ readonly applications: import("@astrale-os/sdk/schema").CoreNode;
242
+ readonly member: import("@astrale-os/sdk/schema").CoreNode;
243
+ };
244
+ };
245
+ }, {
246
+ readonly kernel: "kernel.astrale.ai";
247
+ }]>;
248
+ export type ShellSchema = typeof ShellSchema;
249
+ export declare const S: schema.ResolvedDomainOf<import("@astrale-os/sdk/schema").AuthoredSchema<"shell.astrale.ai", readonly ["kernel.astrale.ai", KernelSchema] | readonly ["shell.astrale.ai", {
250
+ readonly name: 'Shell';
251
+ readonly entrypoint: 'application';
252
+ readonly classes: {
253
+ readonly User: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
254
+ readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
255
+ readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Identity">];
256
+ readonly properties: {
257
+ readonly creationKey: import("zod").ZodOptional<import("zod").ZodString>;
258
+ };
259
+ readonly methods: {
260
+ readonly invite: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
261
+ user: string;
262
+ email: string;
263
+ }, {
264
+ readonly mode: 'value';
265
+ readonly value: {
266
+ invitationId: string;
267
+ user: string;
268
+ state: "accepted" | "cancelled" | "completed" | "expired" | "failed" | "pending" | "registered" | "registering";
269
+ };
270
+ }, "authorized", true, false, undefined>>;
271
+ };
272
+ }>;
273
+ readonly Group: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
274
+ readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
275
+ readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Identity">, import("@astrale-os/sdk/schema").KernelClass<"Named">, import("@astrale-os/sdk/schema").KernelClass<"Descriptable">];
276
+ readonly methods: {
277
+ readonly assignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
278
+ member: string;
279
+ group: string;
280
+ }, {
281
+ readonly mode: 'value';
282
+ readonly value: Record<string, never>;
283
+ }, "authorized", true, false, undefined>>;
284
+ readonly unassignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
285
+ member: string;
286
+ group: string;
287
+ }, {
288
+ readonly mode: 'value';
289
+ readonly value: Record<string, never>;
290
+ }, "authorized", true, false, undefined>>;
291
+ };
292
+ }>;
293
+ readonly member_of_group: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
294
+ readonly depth: 0;
295
+ readonly abstract: false;
296
+ readonly extends: readonly [];
297
+ readonly properties: never;
298
+ readonly source: {
299
+ readonly as: "member";
300
+ readonly outgoing: "0..*";
301
+ };
302
+ readonly target: {
303
+ readonly as: "group";
304
+ readonly incoming: "0..*";
305
+ };
306
+ readonly constraints: Record<never, never>;
307
+ readonly effectiveProperties: never;
308
+ }>;
309
+ };
310
+ readonly functions: {
311
+ readonly listEntrypoints: import("@astrale-os/sdk/schema").Function<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
312
+ readonly mode: 'value';
313
+ readonly value: {
314
+ entrypoints: {
315
+ origin: string;
316
+ name: string;
317
+ view: string;
318
+ }[];
319
+ };
320
+ }, "authorized", false, false, undefined>>;
321
+ };
322
+ readonly policies: {
323
+ readonly belongsToGroup: import("@astrale-os/sdk/schema").Policy;
324
+ readonly ownsClass: import("@astrale-os/sdk/schema").Policy;
325
+ readonly administersShellClass: import("@astrale-os/sdk/schema").Policy;
326
+ readonly usesFunction: import("@astrale-os/sdk/schema").Policy;
327
+ };
328
+ readonly views: {
329
+ readonly application: import("@astrale-os/sdk/schema").View;
330
+ };
331
+ readonly core: {
332
+ readonly nodes: {
333
+ readonly admin: import("@astrale-os/sdk/schema").CoreNode;
334
+ readonly applications: import("@astrale-os/sdk/schema").CoreNode;
335
+ readonly member: import("@astrale-os/sdk/schema").CoreNode;
336
+ };
337
+ };
338
+ }, {
339
+ readonly kernel: "kernel.astrale.ai";
340
+ }]>>;
341
+ export type Shell = schema.DomainOf<ShellSchema>;
342
+ export {};
@@ -0,0 +1,27 @@
1
+ import { defineSchema, KernelSchema, schema } from '@astrale-os/sdk/schema';
2
+ import { listEntrypoints } from './modules/application/index.js';
3
+ import { Group, member_of_group, adminGroup, applicationsGroup, memberGroup, belongsToGroup, } from './modules/group/index.js';
4
+ import { User } from './modules/user/index.js';
5
+ import { ownsClass, administersShellClass, usesFunction } from './policies/index.js';
6
+ import { applicationView } from './views/index.js';
7
+ export const ORIGIN = 'shell.astrale.ai';
8
+ const dependencies = { kernel: KernelSchema };
9
+ const classes = { User, Group, member_of_group };
10
+ const functions = { listEntrypoints };
11
+ const policies = { belongsToGroup, ownsClass, administersShellClass, usesFunction };
12
+ const views = { application: applicationView };
13
+ const core = {
14
+ nodes: { admin: adminGroup, applications: applicationsGroup, member: memberGroup },
15
+ };
16
+ const input = {
17
+ name: 'Shell',
18
+ entrypoint: 'application',
19
+ dependencies,
20
+ classes,
21
+ functions,
22
+ policies,
23
+ views,
24
+ core,
25
+ };
26
+ export const ShellSchema = defineSchema(ORIGIN, input);
27
+ export const S = schema.resolve(ShellSchema);