@astrale-os/kernel-core 0.9.0-beta.1 → 0.9.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (353) hide show
  1. package/dist/auth/provision/fingerprint/fingerprint.d.ts +1 -1
  2. package/dist/auth/provision/fingerprint/fingerprint.d.ts.map +1 -1
  3. package/dist/auth/provision/index.d.ts +1 -1
  4. package/dist/auth/provision/index.d.ts.map +1 -1
  5. package/dist/auth/provision/index.js +1 -1
  6. package/dist/auth/provision/index.js.map +1 -1
  7. package/dist/auth/provision/request/index.d.ts +1 -1
  8. package/dist/auth/provision/request/index.d.ts.map +1 -1
  9. package/dist/auth/provision/request/index.js +1 -1
  10. package/dist/auth/provision/request/index.js.map +1 -1
  11. package/dist/auth/provision/request/self-issuer.d.ts +3 -1
  12. package/dist/auth/provision/request/self-issuer.d.ts.map +1 -1
  13. package/dist/auth/provision/request/self-issuer.js +8 -2
  14. package/dist/auth/provision/request/self-issuer.js.map +1 -1
  15. package/dist/domain/callable/invocation/call.d.ts +8 -0
  16. package/dist/domain/callable/invocation/call.d.ts.map +1 -0
  17. package/dist/domain/callable/invocation/call.js +2 -0
  18. package/dist/domain/callable/invocation/call.js.map +1 -0
  19. package/dist/domain/callable/invocation/index.d.ts +3 -0
  20. package/dist/domain/callable/invocation/index.d.ts.map +1 -0
  21. package/dist/domain/callable/invocation/index.js +2 -0
  22. package/dist/domain/callable/invocation/index.js.map +1 -0
  23. package/dist/domain/callable/invocation/result.d.ts +13 -0
  24. package/dist/domain/callable/invocation/result.d.ts.map +1 -0
  25. package/dist/domain/callable/invocation/result.js +2 -0
  26. package/dist/domain/callable/invocation/result.js.map +1 -0
  27. package/dist/domain/catalog/index.d.ts +1 -1
  28. package/dist/domain/catalog/index.d.ts.map +1 -1
  29. package/dist/domain/catalog/projection.d.ts +11 -5
  30. package/dist/domain/catalog/projection.d.ts.map +1 -1
  31. package/dist/domain/catalog/property/composition/effective.d.ts +4 -2
  32. package/dist/domain/catalog/property/composition/effective.d.ts.map +1 -1
  33. package/dist/domain/catalog/property/project.d.ts.map +1 -1
  34. package/dist/domain/catalog/property/project.js +1 -0
  35. package/dist/domain/catalog/property/project.js.map +1 -1
  36. package/dist/domain/catalog/property/property.d.ts +1 -0
  37. package/dist/domain/catalog/property/property.d.ts.map +1 -1
  38. package/dist/domain/domain.d.ts +2 -0
  39. package/dist/domain/domain.d.ts.map +1 -1
  40. package/dist/domain/domain.js +11 -0
  41. package/dist/domain/domain.js.map +1 -1
  42. package/dist/domain/index.d.ts +2 -1
  43. package/dist/domain/index.d.ts.map +1 -1
  44. package/dist/domain/index.js.map +1 -1
  45. package/dist/graph/path/language/syntax.js +1 -1
  46. package/dist/graph/path/language/syntax.js.map +1 -1
  47. package/dist/schema/authority/authority-relation.d.ts +3 -0
  48. package/dist/schema/authority/authority-relation.d.ts.map +1 -0
  49. package/dist/schema/authority/authority-relation.js +16 -0
  50. package/dist/schema/authority/authority-relation.js.map +1 -0
  51. package/dist/schema/authority/can-create.d.ts +1 -1
  52. package/dist/schema/authority/can-create.d.ts.map +1 -1
  53. package/dist/schema/authority/can-create.js +2 -2
  54. package/dist/schema/authority/can-create.js.map +1 -1
  55. package/dist/schema/authority/can-delete.d.ts +1 -1
  56. package/dist/schema/authority/can-delete.d.ts.map +1 -1
  57. package/dist/schema/authority/can-delete.js +2 -2
  58. package/dist/schema/authority/can-delete.js.map +1 -1
  59. package/dist/schema/authority/can-grant.d.ts +3 -0
  60. package/dist/schema/authority/can-grant.d.ts.map +1 -0
  61. package/dist/schema/authority/can-grant.js +4 -0
  62. package/dist/schema/authority/can-grant.js.map +1 -0
  63. package/dist/schema/authority/can-read.d.ts +1 -1
  64. package/dist/schema/authority/can-read.d.ts.map +1 -1
  65. package/dist/schema/authority/can-read.js +2 -2
  66. package/dist/schema/authority/can-read.js.map +1 -1
  67. package/dist/schema/authority/can-revoke.d.ts +3 -0
  68. package/dist/schema/authority/can-revoke.d.ts.map +1 -0
  69. package/dist/schema/authority/can-revoke.js +4 -0
  70. package/dist/schema/authority/can-revoke.js.map +1 -0
  71. package/dist/schema/authority/can-traverse.d.ts +1 -1
  72. package/dist/schema/authority/can-traverse.d.ts.map +1 -1
  73. package/dist/schema/authority/can-traverse.js +2 -2
  74. package/dist/schema/authority/can-traverse.js.map +1 -1
  75. package/dist/schema/authority/can-update.d.ts +1 -1
  76. package/dist/schema/authority/can-update.d.ts.map +1 -1
  77. package/dist/schema/authority/can-update.js +2 -2
  78. package/dist/schema/authority/can-update.js.map +1 -1
  79. package/dist/schema/authority/can-use.d.ts +1 -1
  80. package/dist/schema/authority/can-use.d.ts.map +1 -1
  81. package/dist/schema/authority/can-use.js +3 -3
  82. package/dist/schema/authority/can-use.js.map +1 -1
  83. package/dist/schema/authority/governed-by.d.ts +62 -4
  84. package/dist/schema/authority/governed-by.d.ts.map +1 -1
  85. package/dist/schema/authority/governed-by.js +3 -2
  86. package/dist/schema/authority/governed-by.js.map +1 -1
  87. package/dist/schema/authority/index.d.ts +5 -2
  88. package/dist/schema/authority/index.d.ts.map +1 -1
  89. package/dist/schema/authority/index.js +4 -2
  90. package/dist/schema/authority/index.js.map +1 -1
  91. package/dist/schema/authority/operation.d.ts +16 -0
  92. package/dist/schema/authority/operation.d.ts.map +1 -0
  93. package/dist/schema/authority/operation.js +7 -0
  94. package/dist/schema/authority/operation.js.map +1 -0
  95. package/dist/schema/authority/operations.d.ts +128 -0
  96. package/dist/schema/authority/operations.d.ts.map +1 -0
  97. package/dist/schema/authority/operations.js +47 -0
  98. package/dist/schema/authority/operations.js.map +1 -0
  99. package/dist/schema/callables/function-interface.d.ts +1 -1
  100. package/dist/schema/callables/function-interface.js +1 -1
  101. package/dist/schema/callables/function-interface.js.map +1 -1
  102. package/dist/schema/callables/function.d.ts +4 -5
  103. package/dist/schema/callables/function.d.ts.map +1 -1
  104. package/dist/schema/callables/method-of.d.ts +135 -10
  105. package/dist/schema/callables/method-of.d.ts.map +1 -1
  106. package/dist/schema/callables/method-of.js +3 -2
  107. package/dist/schema/callables/method-of.js.map +1 -1
  108. package/dist/schema/callables/view-for.d.ts +310 -36
  109. package/dist/schema/callables/view-for.d.ts.map +1 -1
  110. package/dist/schema/callables/view-for.js +3 -2
  111. package/dist/schema/callables/view-for.js.map +1 -1
  112. package/dist/schema/callables/view.d.ts +3 -5
  113. package/dist/schema/callables/view.d.ts.map +1 -1
  114. package/dist/schema/core/index.d.ts +1 -1
  115. package/dist/schema/core/index.d.ts.map +1 -1
  116. package/dist/schema/core/index.js +1 -1
  117. package/dist/schema/core/index.js.map +1 -1
  118. package/dist/schema/core/operations/index.d.ts +7 -0
  119. package/dist/schema/core/operations/index.d.ts.map +1 -0
  120. package/dist/schema/core/operations/index.js +6 -0
  121. package/dist/schema/core/operations/index.js.map +1 -0
  122. package/dist/schema/definitions/extends.d.ts +55 -4
  123. package/dist/schema/definitions/extends.d.ts.map +1 -1
  124. package/dist/schema/definitions/extends.js +3 -2
  125. package/dist/schema/definitions/extends.js.map +1 -1
  126. package/dist/schema/definitions/implements.d.ts +67 -4
  127. package/dist/schema/definitions/implements.d.ts.map +1 -1
  128. package/dist/schema/definitions/implements.js +3 -2
  129. package/dist/schema/definitions/implements.js.map +1 -1
  130. package/dist/schema/definitions/instance-of.d.ts +49 -5
  131. package/dist/schema/definitions/instance-of.d.ts.map +1 -1
  132. package/dist/schema/definitions/instance-of.js +3 -2
  133. package/dist/schema/definitions/instance-of.js.map +1 -1
  134. package/dist/schema/domain/domain.d.ts +17 -26
  135. package/dist/schema/domain/domain.d.ts.map +1 -1
  136. package/dist/schema/domain/of-domain.d.ts +187 -31
  137. package/dist/schema/domain/of-domain.d.ts.map +1 -1
  138. package/dist/schema/domain/of-domain.js +3 -2
  139. package/dist/schema/domain/of-domain.js.map +1 -1
  140. package/dist/schema/identity/composition.d.ts.map +1 -1
  141. package/dist/schema/identity/composition.js +3 -2
  142. package/dist/schema/identity/composition.js.map +1 -1
  143. package/dist/schema/identity/constrained-by.d.ts +1 -1
  144. package/dist/schema/identity/constrained-by.d.ts.map +1 -1
  145. package/dist/schema/identity/excluded-from.d.ts +1 -1
  146. package/dist/schema/identity/excluded-from.d.ts.map +1 -1
  147. package/dist/schema/identity/extends-with.d.ts +1 -1
  148. package/dist/schema/identity/extends-with.d.ts.map +1 -1
  149. package/dist/schema/identity/identity.d.ts +17 -26
  150. package/dist/schema/identity/identity.d.ts.map +1 -1
  151. package/dist/schema/identity/identity.js +1 -1
  152. package/dist/schema/identity/identity.js.map +1 -1
  153. package/dist/schema/index.d.ts +5 -2
  154. package/dist/schema/index.d.ts.map +1 -1
  155. package/dist/schema/index.js +4 -1
  156. package/dist/schema/index.js.map +1 -1
  157. package/dist/schema/installation/index.d.ts +2 -0
  158. package/dist/schema/installation/index.d.ts.map +1 -0
  159. package/dist/schema/installation/index.js +2 -0
  160. package/dist/schema/installation/index.js.map +1 -0
  161. package/dist/schema/installation/operation-id.d.ts +12 -0
  162. package/dist/schema/installation/operation-id.d.ts.map +1 -0
  163. package/dist/schema/installation/operation-id.js +16 -0
  164. package/dist/schema/installation/operation-id.js.map +1 -0
  165. package/dist/schema/introspection/index.d.ts +2 -0
  166. package/dist/schema/introspection/index.d.ts.map +1 -0
  167. package/dist/schema/introspection/index.js +2 -0
  168. package/dist/schema/introspection/index.js.map +1 -0
  169. package/dist/schema/introspection/language.d.ts +31 -0
  170. package/dist/schema/introspection/language.d.ts.map +1 -0
  171. package/dist/schema/introspection/language.js +2 -0
  172. package/dist/schema/introspection/language.js.map +1 -0
  173. package/dist/schema/kernel/index.d.ts +2 -2
  174. package/dist/schema/kernel/index.d.ts.map +1 -1
  175. package/dist/schema/kernel/index.js +1 -1
  176. package/dist/schema/kernel/index.js.map +1 -1
  177. package/dist/schema/kernel/schema.d.ts +3670 -247
  178. package/dist/schema/kernel/schema.d.ts.map +1 -1
  179. package/dist/schema/kernel/schema.js +36 -7
  180. package/dist/schema/kernel/schema.js.map +1 -1
  181. package/dist/schema/kernel/syscalls/contracts/delegate.d.ts +1 -2
  182. package/dist/schema/kernel/syscalls/contracts/delegate.d.ts.map +1 -1
  183. package/dist/schema/kernel/syscalls/contracts/delegate.js +1 -2
  184. package/dist/schema/kernel/syscalls/contracts/delegate.js.map +1 -1
  185. package/dist/schema/kernel/syscalls/contracts/identity.js +1 -1
  186. package/dist/schema/kernel/syscalls/contracts/identity.js.map +1 -1
  187. package/dist/schema/kernel/syscalls/contracts/index.d.ts +1 -0
  188. package/dist/schema/kernel/syscalls/contracts/index.d.ts.map +1 -1
  189. package/dist/schema/kernel/syscalls/contracts/index.js +1 -0
  190. package/dist/schema/kernel/syscalls/contracts/index.js.map +1 -1
  191. package/dist/schema/kernel/syscalls/contracts/install.d.ts +161 -8
  192. package/dist/schema/kernel/syscalls/contracts/install.d.ts.map +1 -1
  193. package/dist/schema/kernel/syscalls/contracts/install.js +25 -15
  194. package/dist/schema/kernel/syscalls/contracts/install.js.map +1 -1
  195. package/dist/schema/kernel/syscalls/contracts/installation.d.ts +358 -0
  196. package/dist/schema/kernel/syscalls/contracts/installation.d.ts.map +1 -0
  197. package/dist/schema/kernel/syscalls/contracts/installation.js +88 -0
  198. package/dist/schema/kernel/syscalls/contracts/installation.js.map +1 -0
  199. package/dist/schema/kernel/syscalls/contracts/introspect.d.ts +16 -0
  200. package/dist/schema/kernel/syscalls/contracts/introspect.d.ts.map +1 -0
  201. package/dist/schema/kernel/syscalls/contracts/introspect.js +17 -0
  202. package/dist/schema/kernel/syscalls/contracts/introspect.js.map +1 -0
  203. package/dist/schema/kernel/syscalls/contracts/journal.d.ts +11 -0
  204. package/dist/schema/kernel/syscalls/contracts/journal.d.ts.map +1 -1
  205. package/dist/schema/kernel/syscalls/contracts/journal.js +8 -0
  206. package/dist/schema/kernel/syscalls/contracts/journal.js.map +1 -1
  207. package/dist/schema/kernel/syscalls/contracts/provision.js +1 -1
  208. package/dist/schema/kernel/syscalls/contracts/provision.js.map +1 -1
  209. package/dist/schema/kernel/syscalls/contracts/uninstall.d.ts +143 -2
  210. package/dist/schema/kernel/syscalls/contracts/uninstall.d.ts.map +1 -1
  211. package/dist/schema/kernel/syscalls/contracts/uninstall.js +9 -3
  212. package/dist/schema/kernel/syscalls/contracts/uninstall.js.map +1 -1
  213. package/dist/schema/kernel/syscalls/declarations/admit.d.ts +3 -4
  214. package/dist/schema/kernel/syscalls/declarations/admit.d.ts.map +1 -1
  215. package/dist/schema/kernel/syscalls/declarations/admit.js +1 -2
  216. package/dist/schema/kernel/syscalls/declarations/admit.js.map +1 -1
  217. package/dist/schema/kernel/syscalls/declarations/can.d.ts +3 -4
  218. package/dist/schema/kernel/syscalls/declarations/can.d.ts.map +1 -1
  219. package/dist/schema/kernel/syscalls/declarations/can.js +1 -2
  220. package/dist/schema/kernel/syscalls/declarations/can.js.map +1 -1
  221. package/dist/schema/kernel/syscalls/declarations/define.d.ts +3 -16
  222. package/dist/schema/kernel/syscalls/declarations/define.d.ts.map +1 -1
  223. package/dist/schema/kernel/syscalls/declarations/define.js +1 -2
  224. package/dist/schema/kernel/syscalls/declarations/define.js.map +1 -1
  225. package/dist/schema/kernel/syscalls/declarations/delegate.d.ts +5 -8
  226. package/dist/schema/kernel/syscalls/declarations/delegate.d.ts.map +1 -1
  227. package/dist/schema/kernel/syscalls/declarations/delegate.js +2 -6
  228. package/dist/schema/kernel/syscalls/declarations/delegate.js.map +1 -1
  229. package/dist/schema/kernel/syscalls/declarations/index.d.ts +378 -78
  230. package/dist/schema/kernel/syscalls/declarations/index.d.ts.map +1 -1
  231. package/dist/schema/kernel/syscalls/declarations/index.js +2 -0
  232. package/dist/schema/kernel/syscalls/declarations/index.js.map +1 -1
  233. package/dist/schema/kernel/syscalls/declarations/install.d.ts +165 -14
  234. package/dist/schema/kernel/syscalls/declarations/install.d.ts.map +1 -1
  235. package/dist/schema/kernel/syscalls/declarations/install.js +2 -6
  236. package/dist/schema/kernel/syscalls/declarations/install.js.map +1 -1
  237. package/dist/schema/kernel/syscalls/declarations/introspect.d.ts +21 -0
  238. package/dist/schema/kernel/syscalls/declarations/introspect.d.ts.map +1 -0
  239. package/dist/schema/kernel/syscalls/declarations/introspect.js +10 -0
  240. package/dist/schema/kernel/syscalls/declarations/introspect.js.map +1 -0
  241. package/dist/schema/kernel/syscalls/declarations/journal.d.ts +15 -6
  242. package/dist/schema/kernel/syscalls/declarations/journal.d.ts.map +1 -1
  243. package/dist/schema/kernel/syscalls/declarations/journal.js +2 -6
  244. package/dist/schema/kernel/syscalls/declarations/journal.js.map +1 -1
  245. package/dist/schema/kernel/syscalls/declarations/mint.d.ts +3 -5
  246. package/dist/schema/kernel/syscalls/declarations/mint.d.ts.map +1 -1
  247. package/dist/schema/kernel/syscalls/declarations/mint.js +1 -5
  248. package/dist/schema/kernel/syscalls/declarations/mint.js.map +1 -1
  249. package/dist/schema/kernel/syscalls/declarations/mutate.d.ts +3 -5
  250. package/dist/schema/kernel/syscalls/declarations/mutate.d.ts.map +1 -1
  251. package/dist/schema/kernel/syscalls/declarations/mutate.js +1 -5
  252. package/dist/schema/kernel/syscalls/declarations/mutate.js.map +1 -1
  253. package/dist/schema/kernel/syscalls/declarations/provision.d.ts +3 -5
  254. package/dist/schema/kernel/syscalls/declarations/provision.d.ts.map +1 -1
  255. package/dist/schema/kernel/syscalls/declarations/provision.js +1 -5
  256. package/dist/schema/kernel/syscalls/declarations/provision.js.map +1 -1
  257. package/dist/schema/kernel/syscalls/declarations/query.d.ts +3 -5
  258. package/dist/schema/kernel/syscalls/declarations/query.d.ts.map +1 -1
  259. package/dist/schema/kernel/syscalls/declarations/query.js +1 -5
  260. package/dist/schema/kernel/syscalls/declarations/query.js.map +1 -1
  261. package/dist/schema/kernel/syscalls/declarations/uninstall.d.ts +147 -8
  262. package/dist/schema/kernel/syscalls/declarations/uninstall.d.ts.map +1 -1
  263. package/dist/schema/kernel/syscalls/declarations/uninstall.js +2 -6
  264. package/dist/schema/kernel/syscalls/declarations/uninstall.js.map +1 -1
  265. package/dist/schema/kernel/syscalls/declarations/view-resolve.d.ts +3 -5
  266. package/dist/schema/kernel/syscalls/declarations/view-resolve.d.ts.map +1 -1
  267. package/dist/schema/kernel/syscalls/declarations/view-resolve.js +1 -5
  268. package/dist/schema/kernel/syscalls/declarations/view-resolve.js.map +1 -1
  269. package/dist/schema/kernel/syscalls/declarations/whoami.d.ts +3 -4
  270. package/dist/schema/kernel/syscalls/declarations/whoami.d.ts.map +1 -1
  271. package/dist/schema/kernel/syscalls/declarations/whoami.js +1 -2
  272. package/dist/schema/kernel/syscalls/declarations/whoami.js.map +1 -1
  273. package/dist/schema/kernel/syscalls/declarations/whois.d.ts +3 -5
  274. package/dist/schema/kernel/syscalls/declarations/whois.d.ts.map +1 -1
  275. package/dist/schema/kernel/syscalls/declarations/whois.js +1 -5
  276. package/dist/schema/kernel/syscalls/declarations/whois.js.map +1 -1
  277. package/dist/schema/kernel/syscalls/descriptors/functions.d.ts +1 -0
  278. package/dist/schema/kernel/syscalls/descriptors/functions.d.ts.map +1 -1
  279. package/dist/schema/kernel/syscalls/descriptors/functions.js +1 -0
  280. package/dist/schema/kernel/syscalls/descriptors/functions.js.map +1 -1
  281. package/dist/schema/kernel/syscalls/descriptors/index.d.ts +1 -1
  282. package/dist/schema/kernel/syscalls/descriptors/index.d.ts.map +1 -1
  283. package/dist/schema/kernel/syscalls/descriptors/index.js +1 -1
  284. package/dist/schema/kernel/syscalls/descriptors/index.js.map +1 -1
  285. package/dist/schema/kernel/syscalls/index.d.ts +1 -1
  286. package/dist/schema/kernel/syscalls/index.d.ts.map +1 -1
  287. package/dist/schema/kernel/syscalls/index.js +1 -1
  288. package/dist/schema/kernel/syscalls/index.js.map +1 -1
  289. package/dist/schema/meta/timestamped.d.ts +4 -4
  290. package/dist/schema/meta/timestamped.d.ts.map +1 -1
  291. package/dist/schema/meta/timestamped.js +6 -3
  292. package/dist/schema/meta/timestamped.js.map +1 -1
  293. package/package.json +2 -2
  294. package/dist/schema/authority/capability-relation.d.ts +0 -3
  295. package/dist/schema/authority/capability-relation.d.ts.map +0 -1
  296. package/dist/schema/authority/capability-relation.js +0 -15
  297. package/dist/schema/authority/capability-relation.js.map +0 -1
  298. package/dist/schema/authority/capability.d.ts +0 -5
  299. package/dist/schema/authority/capability.d.ts.map +0 -1
  300. package/dist/schema/authority/capability.js +0 -5
  301. package/dist/schema/authority/capability.js.map +0 -1
  302. package/dist/schema/authority/may-use-capability.d.ts +0 -3
  303. package/dist/schema/authority/may-use-capability.d.ts.map +0 -1
  304. package/dist/schema/authority/may-use-capability.js +0 -7
  305. package/dist/schema/authority/may-use-capability.js.map +0 -1
  306. package/dist/schema/core/capabilities/delegate.d.ts +0 -4
  307. package/dist/schema/core/capabilities/delegate.d.ts.map +0 -1
  308. package/dist/schema/core/capabilities/delegate.js +0 -4
  309. package/dist/schema/core/capabilities/delegate.js.map +0 -1
  310. package/dist/schema/core/capabilities/identity-lookup.d.ts +0 -4
  311. package/dist/schema/core/capabilities/identity-lookup.d.ts.map +0 -1
  312. package/dist/schema/core/capabilities/identity-lookup.js +0 -4
  313. package/dist/schema/core/capabilities/identity-lookup.js.map +0 -1
  314. package/dist/schema/core/capabilities/index.d.ts +0 -13
  315. package/dist/schema/core/capabilities/index.d.ts.map +0 -1
  316. package/dist/schema/core/capabilities/index.js +0 -39
  317. package/dist/schema/core/capabilities/index.js.map +0 -1
  318. package/dist/schema/core/capabilities/install.d.ts +0 -4
  319. package/dist/schema/core/capabilities/install.d.ts.map +0 -1
  320. package/dist/schema/core/capabilities/install.js +0 -4
  321. package/dist/schema/core/capabilities/install.js.map +0 -1
  322. package/dist/schema/core/capabilities/journal.d.ts +0 -4
  323. package/dist/schema/core/capabilities/journal.d.ts.map +0 -1
  324. package/dist/schema/core/capabilities/journal.js +0 -4
  325. package/dist/schema/core/capabilities/journal.js.map +0 -1
  326. package/dist/schema/core/capabilities/mint.d.ts +0 -4
  327. package/dist/schema/core/capabilities/mint.d.ts.map +0 -1
  328. package/dist/schema/core/capabilities/mint.js +0 -4
  329. package/dist/schema/core/capabilities/mint.js.map +0 -1
  330. package/dist/schema/core/capabilities/mutate.d.ts +0 -4
  331. package/dist/schema/core/capabilities/mutate.d.ts.map +0 -1
  332. package/dist/schema/core/capabilities/mutate.js +0 -4
  333. package/dist/schema/core/capabilities/mutate.js.map +0 -1
  334. package/dist/schema/core/capabilities/provision.d.ts +0 -4
  335. package/dist/schema/core/capabilities/provision.d.ts.map +0 -1
  336. package/dist/schema/core/capabilities/provision.js +0 -4
  337. package/dist/schema/core/capabilities/provision.js.map +0 -1
  338. package/dist/schema/core/capabilities/query.d.ts +0 -4
  339. package/dist/schema/core/capabilities/query.d.ts.map +0 -1
  340. package/dist/schema/core/capabilities/query.js +0 -4
  341. package/dist/schema/core/capabilities/query.js.map +0 -1
  342. package/dist/schema/core/capabilities/uninstall.d.ts +0 -4
  343. package/dist/schema/core/capabilities/uninstall.d.ts.map +0 -1
  344. package/dist/schema/core/capabilities/uninstall.js +0 -4
  345. package/dist/schema/core/capabilities/uninstall.js.map +0 -1
  346. package/dist/schema/core/capabilities/view-resolve.d.ts +0 -4
  347. package/dist/schema/core/capabilities/view-resolve.d.ts.map +0 -1
  348. package/dist/schema/core/capabilities/view-resolve.js +0 -4
  349. package/dist/schema/core/capabilities/view-resolve.js.map +0 -1
  350. package/dist/schema/kernel/syscalls/declarations/capability-policy.d.ts +0 -3
  351. package/dist/schema/kernel/syscalls/declarations/capability-policy.d.ts.map +0 -1
  352. package/dist/schema/kernel/syscalls/declarations/capability-policy.js +0 -5
  353. package/dist/schema/kernel/syscalls/declarations/capability-policy.js.map +0 -1
@@ -0,0 +1,16 @@
1
+ import { edgeClass } from '@astrale-os/kernel-dsl/v1';
2
+ import { Edge } from '../meta/index.js';
3
+ const IdentityRef = {
4
+ origin: 'kernel.astrale.ai',
5
+ kind: 'interface',
6
+ name: 'Identity',
7
+ };
8
+ export function authorityRelation(target, role, description) {
9
+ return edgeClass.directed({
10
+ source: { as: 'identity', accepts: [IdentityRef], outgoing: '0..*' },
11
+ target: { as: role, accepts: [target], incoming: '0..*' },
12
+ description,
13
+ implements: [Edge],
14
+ });
15
+ }
16
+ //# sourceMappingURL=authority-relation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authority-relation.js","sourceRoot":"","sources":["../../../schema/authority/authority-relation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAgB,MAAM,2BAA2B,CAAA;AAEnE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAEvC,MAAM,WAAW,GAAG;IAClB,MAAM,EAAE,mBAAmB;IAC3B,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,UAAU;CACR,CAAA;AAEV,MAAM,UAAU,iBAAiB,CAC/B,MAAyB,EACzB,IAAwC,EACxC,WAAmB;IAEnB,OAAO,SAAS,CAAC,QAAQ,CAAC;QACxB,MAAM,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,WAAW,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE;QACpE,MAAM,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE;QACzD,WAAW;QACX,UAAU,EAAE,CAAC,IAAI,CAAC;KACnB,CAAC,CAAA;AACJ,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { builder } from '@astrale-os/kernel-dsl/v1';
2
- export declare const CanCreate: builder.EdgeClass<builder.Endpoint, builder.Endpoint, builder.EdgeClassOptions>;
2
+ export declare const CanCreate: builder.EdgeClass;
3
3
  //# sourceMappingURL=can-create.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"can-create.d.ts","sourceRoot":"","sources":["../../../schema/authority/can-create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAKxD,eAAO,MAAM,SAAS,iFAIO,CAAA"}
1
+ {"version":3,"file":"can-create.d.ts","sourceRoot":"","sources":["../../../schema/authority/can-create.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAKxD,eAAO,MAAM,SAAS,mBAIO,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import { Class } from '../definitions/index.js';
2
- import { capabilityRelation } from './capability-relation.js';
3
- export const CanCreate = capabilityRelation(Class, 'class', 'An Identity may create instances of the target Class.');
2
+ import { authorityRelation } from './authority-relation.js';
3
+ export const CanCreate = authorityRelation(Class, 'class', 'An Identity may create instances of the target Class.');
4
4
  //# sourceMappingURL=can-create.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"can-create.js","sourceRoot":"","sources":["../../../schema/authority/can-create.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAE7D,MAAM,CAAC,MAAM,SAAS,GAAG,kBAAkB,CACzC,KAAK,EACL,OAAO,EACP,uDAAuD,CAC5B,CAAA"}
1
+ {"version":3,"file":"can-create.js","sourceRoot":"","sources":["../../../schema/authority/can-create.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAE3D,MAAM,CAAC,MAAM,SAAS,GAAG,iBAAiB,CACxC,KAAK,EACL,OAAO,EACP,uDAAuD,CAC5B,CAAA"}
@@ -1,3 +1,3 @@
1
1
  import type { builder } from '@astrale-os/kernel-dsl/v1';
2
- export declare const CanDelete: builder.EdgeClass<builder.Endpoint, builder.Endpoint, builder.EdgeClassOptions>;
2
+ export declare const CanDelete: builder.EdgeClass;
3
3
  //# sourceMappingURL=can-delete.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"can-delete.d.ts","sourceRoot":"","sources":["../../../schema/authority/can-delete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAKxD,eAAO,MAAM,SAAS,iFAIO,CAAA"}
1
+ {"version":3,"file":"can-delete.d.ts","sourceRoot":"","sources":["../../../schema/authority/can-delete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAKxD,eAAO,MAAM,SAAS,mBAIO,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import { Class } from '../definitions/index.js';
2
- import { capabilityRelation } from './capability-relation.js';
3
- export const CanDelete = capabilityRelation(Class, 'class', 'An Identity may delete instances of the target Class.');
2
+ import { authorityRelation } from './authority-relation.js';
3
+ export const CanDelete = authorityRelation(Class, 'class', 'An Identity may delete instances of the target Class.');
4
4
  //# sourceMappingURL=can-delete.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"can-delete.js","sourceRoot":"","sources":["../../../schema/authority/can-delete.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAE7D,MAAM,CAAC,MAAM,SAAS,GAAG,kBAAkB,CACzC,KAAK,EACL,OAAO,EACP,uDAAuD,CAC5B,CAAA"}
1
+ {"version":3,"file":"can-delete.js","sourceRoot":"","sources":["../../../schema/authority/can-delete.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAE3D,MAAM,CAAC,MAAM,SAAS,GAAG,iBAAiB,CACxC,KAAK,EACL,OAAO,EACP,uDAAuD,CAC5B,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { builder } from '@astrale-os/kernel-dsl/v1';
2
+ export declare const CanGrant: builder.EdgeClass;
3
+ //# sourceMappingURL=can-grant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"can-grant.d.ts","sourceRoot":"","sources":["../../../schema/authority/can-grant.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAKxD,eAAO,MAAM,QAAQ,mBAIQ,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { authorityRelation } from './authority-relation.js';
2
+ import { Operation } from './operation.js';
3
+ export const CanGrant = authorityRelation(Operation, 'operation', 'An Identity may create authority edges for the target Operation.');
4
+ //# sourceMappingURL=can-grant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"can-grant.js","sourceRoot":"","sources":["../../../schema/authority/can-grant.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,MAAM,CAAC,MAAM,QAAQ,GAAG,iBAAiB,CACvC,SAAS,EACT,WAAW,EACX,kEAAkE,CACvC,CAAA"}
@@ -1,3 +1,3 @@
1
1
  import type { builder } from '@astrale-os/kernel-dsl/v1';
2
- export declare const CanRead: builder.EdgeClass<builder.Endpoint, builder.Endpoint, builder.EdgeClassOptions>;
2
+ export declare const CanRead: builder.EdgeClass;
3
3
  //# sourceMappingURL=can-read.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"can-read.d.ts","sourceRoot":"","sources":["../../../schema/authority/can-read.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAKxD,eAAO,MAAM,OAAO,iFAIS,CAAA"}
1
+ {"version":3,"file":"can-read.d.ts","sourceRoot":"","sources":["../../../schema/authority/can-read.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAKxD,eAAO,MAAM,OAAO,mBAIS,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import { Class } from '../definitions/index.js';
2
- import { capabilityRelation } from './capability-relation.js';
3
- export const CanRead = capabilityRelation(Class, 'class', 'An Identity may read complete instances of the target Class; read also permits traversal.');
2
+ import { authorityRelation } from './authority-relation.js';
3
+ export const CanRead = authorityRelation(Class, 'class', 'An Identity may read complete instances of the target Class; read also permits traversal.');
4
4
  //# sourceMappingURL=can-read.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"can-read.js","sourceRoot":"","sources":["../../../schema/authority/can-read.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAE7D,MAAM,CAAC,MAAM,OAAO,GAAG,kBAAkB,CACvC,KAAK,EACL,OAAO,EACP,2FAA2F,CAChE,CAAA"}
1
+ {"version":3,"file":"can-read.js","sourceRoot":"","sources":["../../../schema/authority/can-read.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAE3D,MAAM,CAAC,MAAM,OAAO,GAAG,iBAAiB,CACtC,KAAK,EACL,OAAO,EACP,2FAA2F,CAChE,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { builder } from '@astrale-os/kernel-dsl/v1';
2
+ export declare const CanRevoke: builder.EdgeClass;
3
+ //# sourceMappingURL=can-revoke.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"can-revoke.d.ts","sourceRoot":"","sources":["../../../schema/authority/can-revoke.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAKxD,eAAO,MAAM,SAAS,mBAIO,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { authorityRelation } from './authority-relation.js';
2
+ import { Operation } from './operation.js';
3
+ export const CanRevoke = authorityRelation(Operation, 'operation', 'An Identity may remove authority edges for the target Operation.');
4
+ //# sourceMappingURL=can-revoke.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"can-revoke.js","sourceRoot":"","sources":["../../../schema/authority/can-revoke.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,MAAM,CAAC,MAAM,SAAS,GAAG,iBAAiB,CACxC,SAAS,EACT,WAAW,EACX,kEAAkE,CACvC,CAAA"}
@@ -1,3 +1,3 @@
1
1
  import type { builder } from '@astrale-os/kernel-dsl/v1';
2
- export declare const CanTraverse: builder.EdgeClass<builder.Endpoint, builder.Endpoint, builder.EdgeClassOptions>;
2
+ export declare const CanTraverse: builder.EdgeClass;
3
3
  //# sourceMappingURL=can-traverse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"can-traverse.d.ts","sourceRoot":"","sources":["../../../schema/authority/can-traverse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAKxD,eAAO,MAAM,WAAW,iFAIK,CAAA"}
1
+ {"version":3,"file":"can-traverse.d.ts","sourceRoot":"","sources":["../../../schema/authority/can-traverse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAKxD,eAAO,MAAM,WAAW,mBAIK,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import { Class } from '../definitions/index.js';
2
- import { capabilityRelation } from './capability-relation.js';
3
- export const CanTraverse = capabilityRelation(Class, 'class', 'An Identity may use instances of the target Class as structural Query witnesses without reading their values.');
2
+ import { authorityRelation } from './authority-relation.js';
3
+ export const CanTraverse = authorityRelation(Class, 'class', 'An Identity may use instances of the target Class as structural Query witnesses without reading their values.');
4
4
  //# sourceMappingURL=can-traverse.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"can-traverse.js","sourceRoot":"","sources":["../../../schema/authority/can-traverse.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAE7D,MAAM,CAAC,MAAM,WAAW,GAAG,kBAAkB,CAC3C,KAAK,EACL,OAAO,EACP,+GAA+G,CACpF,CAAA"}
1
+ {"version":3,"file":"can-traverse.js","sourceRoot":"","sources":["../../../schema/authority/can-traverse.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAE3D,MAAM,CAAC,MAAM,WAAW,GAAG,iBAAiB,CAC1C,KAAK,EACL,OAAO,EACP,+GAA+G,CACpF,CAAA"}
@@ -1,3 +1,3 @@
1
1
  import type { builder } from '@astrale-os/kernel-dsl/v1';
2
- export declare const CanUpdate: builder.EdgeClass<builder.Endpoint, builder.Endpoint, builder.EdgeClassOptions>;
2
+ export declare const CanUpdate: builder.EdgeClass;
3
3
  //# sourceMappingURL=can-update.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"can-update.d.ts","sourceRoot":"","sources":["../../../schema/authority/can-update.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAKxD,eAAO,MAAM,SAAS,iFAIO,CAAA"}
1
+ {"version":3,"file":"can-update.d.ts","sourceRoot":"","sources":["../../../schema/authority/can-update.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAKxD,eAAO,MAAM,SAAS,mBAIO,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import { Class } from '../definitions/index.js';
2
- import { capabilityRelation } from './capability-relation.js';
3
- export const CanUpdate = capabilityRelation(Class, 'class', 'An Identity may update instances of the target Class.');
2
+ import { authorityRelation } from './authority-relation.js';
3
+ export const CanUpdate = authorityRelation(Class, 'class', 'An Identity may update instances of the target Class.');
4
4
  //# sourceMappingURL=can-update.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"can-update.js","sourceRoot":"","sources":["../../../schema/authority/can-update.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAE7D,MAAM,CAAC,MAAM,SAAS,GAAG,kBAAkB,CACzC,KAAK,EACL,OAAO,EACP,uDAAuD,CAC5B,CAAA"}
1
+ {"version":3,"file":"can-update.js","sourceRoot":"","sources":["../../../schema/authority/can-update.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAE3D,MAAM,CAAC,MAAM,SAAS,GAAG,iBAAiB,CACxC,KAAK,EACL,OAAO,EACP,uDAAuD,CAC5B,CAAA"}
@@ -1,3 +1,3 @@
1
1
  import type { builder } from '@astrale-os/kernel-dsl/v1';
2
- export declare const CanUse: builder.EdgeClass<builder.Endpoint, builder.Endpoint, builder.EdgeClassOptions>;
2
+ export declare const CanUse: builder.EdgeClass;
3
3
  //# sourceMappingURL=can-use.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"can-use.d.ts","sourceRoot":"","sources":["../../../schema/authority/can-use.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAKxD,eAAO,MAAM,MAAM,iFAIU,CAAA"}
1
+ {"version":3,"file":"can-use.d.ts","sourceRoot":"","sources":["../../../schema/authority/can-use.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAKxD,eAAO,MAAM,MAAM,mBAIU,CAAA"}
@@ -1,4 +1,4 @@
1
- import { capabilityRelation } from './capability-relation.js';
2
- import { Capability } from './capability.js';
3
- export const CanUse = capabilityRelation(Capability, 'capability', 'An Identity may exercise the semantic power represented by the target Capability.');
1
+ import { Function } from '../callables/index.js';
2
+ import { authorityRelation } from './authority-relation.js';
3
+ export const CanUse = authorityRelation(Function, 'function', 'An Identity may invoke the exact target Function declaration.');
4
4
  //# sourceMappingURL=can-use.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"can-use.js","sourceRoot":"","sources":["../../../schema/authority/can-use.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE5C,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CACtC,UAAU,EACV,YAAY,EACZ,mFAAmF,CACxD,CAAA"}
1
+ {"version":3,"file":"can-use.js","sourceRoot":"","sources":["../../../schema/authority/can-use.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAE3D,MAAM,CAAC,MAAM,MAAM,GAAG,iBAAiB,CACrC,QAAQ,EACR,UAAU,EACV,+DAA+D,CACpC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { type builder } from '@astrale-os/kernel-dsl/v1';
2
- export declare const GovernedBy: builder.EdgeClass<{
2
+ export declare const GovernedBy: builder.DirectedEdgeClass<{
3
3
  readonly as: "class";
4
4
  readonly accepts: readonly [builder.NodeClass<{
5
5
  readonly description: "The installed graph projection of a concrete Node Class or Edge Class declaration.";
@@ -34,6 +34,7 @@ export declare const GovernedBy: builder.EdgeClass<{
34
34
  };
35
35
  };
36
36
  }>];
37
+ readonly outgoing: "0..*";
37
38
  }, {
38
39
  readonly as: "policy";
39
40
  readonly accepts: readonly [builder.NodeClass<{
@@ -52,13 +53,70 @@ export declare const GovernedBy: builder.EdgeClass<{
52
53
  };
53
54
  }>];
54
55
  }>];
55
- }, {
56
+ readonly incoming: "0..*";
57
+ }, Omit<{
58
+ readonly source: {
59
+ readonly as: "class";
60
+ readonly accepts: readonly [builder.NodeClass<{
61
+ readonly description: "The installed graph projection of a concrete Node Class or Edge Class declaration.";
62
+ readonly implements: readonly [builder.Interface<{
63
+ readonly family: "both";
64
+ readonly description: "Optional human-facing description metadata with no identity or authority semantics.";
65
+ readonly properties: {
66
+ description: builder.Property<Readonly<{
67
+ readonly type: 'string';
68
+ readonly minLength: 1;
69
+ readonly maxLength: 1000;
70
+ }>, {
71
+ readonly required: false;
72
+ }>;
73
+ };
74
+ }>, builder.Interface<{
75
+ readonly family: "both";
76
+ readonly description: "Optional bounded presentation icon metadata.";
77
+ readonly properties: {
78
+ icon: builder.Property<Readonly<{
79
+ readonly type: 'string';
80
+ readonly minLength: 1;
81
+ readonly maxLength: 8000;
82
+ }>, {
83
+ readonly required: false;
84
+ }>;
85
+ };
86
+ }>];
87
+ readonly properties: {
88
+ readonly family: {
89
+ readonly enum: readonly ["node", "edge"];
90
+ };
91
+ };
92
+ }>];
93
+ readonly outgoing: "0..*";
94
+ };
95
+ readonly target: {
96
+ readonly as: "policy";
97
+ readonly accepts: readonly [builder.NodeClass<{
98
+ readonly description: "The installed graph projection of one named closed Policy declaration owned by a Domain.";
99
+ readonly implements: readonly [builder.Interface<{
100
+ readonly family: "both";
101
+ readonly description: "Optional human-facing description metadata with no identity or authority semantics.";
102
+ readonly properties: {
103
+ description: builder.Property<Readonly<{
104
+ readonly type: 'string';
105
+ readonly minLength: 1;
106
+ readonly maxLength: 1000;
107
+ }>, {
108
+ readonly required: false;
109
+ }>;
110
+ };
111
+ }>];
112
+ }>];
113
+ readonly incoming: "0..*";
114
+ };
56
115
  readonly description: "The protected projection of one Class read or traverse Policy assignment.";
57
116
  readonly implements: readonly [builder.Interface<{
58
117
  readonly family: "both";
59
118
  readonly description: "Explicit kernel marker for Edge definitions; it carries no structural fields.";
60
119
  }>];
61
- readonly orientation: "directed";
62
120
  readonly properties: {
63
121
  operations: builder.Property<{
64
122
  readonly enum: readonly [readonly ["read"], readonly ["traverse"], readonly ["read", "traverse"]];
@@ -69,5 +127,5 @@ export declare const GovernedBy: builder.EdgeClass<{
69
127
  readonly constraints: {
70
128
  readonly noSelf: true;
71
129
  };
72
- }>;
130
+ }, "source" | "target">>;
73
131
  //# sourceMappingURL=governed-by.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"governed-by.d.ts","sourceRoot":"","sources":["../../../schema/authority/governed-by.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAM7E,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAQjB,UAAU;;;;;;;;;EAOa,CAAA"}
1
+ {"version":3,"file":"governed-by.d.ts","sourceRoot":"","sources":["../../../schema/authority/governed-by.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAM7E,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAMnB,UAAU;;;;;;;;;wBAMgB,CAAA"}
@@ -2,10 +2,11 @@ import { edgeClass, property } from '@astrale-os/kernel-dsl/v1';
2
2
  import { Class } from '../definitions/index.js';
3
3
  import { Edge } from '../meta/index.js';
4
4
  import { Policy } from './policy.js';
5
- export const GovernedBy = edgeClass({ as: 'class', accepts: [Class] }, { as: 'policy', accepts: [Policy] }, {
5
+ export const GovernedBy = edgeClass.directed({
6
+ source: { as: 'class', accepts: [Class], outgoing: '0..*' },
7
+ target: { as: 'policy', accepts: [Policy], incoming: '0..*' },
6
8
  description: 'The protected projection of one Class read or traverse Policy assignment.',
7
9
  implements: [Edge],
8
- orientation: 'directed',
9
10
  properties: {
10
11
  operations: property({ enum: [['read'], ['traverse'], ['read', 'traverse']] }, { visibility: 'private' }),
11
12
  },
@@ -1 +1 @@
1
- {"version":3,"file":"governed-by.js","sourceRoot":"","sources":["../../../schema/authority/governed-by.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAgB,MAAM,2BAA2B,CAAA;AAE7E,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEpC,MAAM,CAAC,MAAM,UAAU,GAAG,SAAS,CACjC,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,EACjC,EAAE,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,EACnC;IACE,WAAW,EAAE,2EAA2E;IACxF,UAAU,EAAE,CAAC,IAAI,CAAC;IAClB,WAAW,EAAE,UAAU;IACvB,UAAU,EAAE;QACV,UAAU,EAAE,QAAQ,CAClB,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,EAAE,EACxD,EAAE,UAAU,EAAE,SAAS,EAAE,CAC1B;KACF;IACD,WAAW,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;CAC9B,CAC0B,CAAA"}
1
+ {"version":3,"file":"governed-by.js","sourceRoot":"","sources":["../../../schema/authority/governed-by.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAgB,MAAM,2BAA2B,CAAA;AAE7E,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEpC,MAAM,CAAC,MAAM,UAAU,GAAG,SAAS,CAAC,QAAQ,CAAC;IAC3C,MAAM,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE;IAC3D,MAAM,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE;IAC7D,WAAW,EAAE,2EAA2E;IACxF,UAAU,EAAE,CAAC,IAAI,CAAC;IAClB,UAAU,EAAE;QACV,UAAU,EAAE,QAAQ,CAClB,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,EAAE,EACxD,EAAE,UAAU,EAAE,SAAS,EAAE,CAC1B;KACF;IACD,WAAW,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;CAC9B,CAA6B,CAAA"}
@@ -1,12 +1,15 @@
1
- export { Capability } from './capability.js';
2
1
  export { CanCreate } from './can-create.js';
3
2
  export { CanDelete } from './can-delete.js';
3
+ export { CanGrant } from './can-grant.js';
4
4
  export { CanRead } from './can-read.js';
5
+ export { CanRevoke } from './can-revoke.js';
5
6
  export { CanTraverse } from './can-traverse.js';
6
7
  export { CanUpdate } from './can-update.js';
7
8
  export { CanUse } from './can-use.js';
8
9
  export { claimConstraintSchema, requiredClaimsSchema } from './claims.js';
9
10
  export { GovernedBy } from './governed-by.js';
10
- export { MayUseCapability } from './may-use-capability.js';
11
+ export { Operation } from './operation.js';
12
+ export { AuthorityOperationOrder, AuthorityOperations, operationOf } from './operations.js';
13
+ export type { AuthorityOperation, AuthorityRelation } from './operations.js';
11
14
  export { Policy } from './policy.js';
12
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schema/authority/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schema/authority/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC3F,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAC5E,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA"}
@@ -1,12 +1,14 @@
1
- export { Capability } from './capability.js';
2
1
  export { CanCreate } from './can-create.js';
3
2
  export { CanDelete } from './can-delete.js';
3
+ export { CanGrant } from './can-grant.js';
4
4
  export { CanRead } from './can-read.js';
5
+ export { CanRevoke } from './can-revoke.js';
5
6
  export { CanTraverse } from './can-traverse.js';
6
7
  export { CanUpdate } from './can-update.js';
7
8
  export { CanUse } from './can-use.js';
8
9
  export { claimConstraintSchema, requiredClaimsSchema } from './claims.js';
9
10
  export { GovernedBy } from './governed-by.js';
10
- export { MayUseCapability } from './may-use-capability.js';
11
+ export { Operation } from './operation.js';
12
+ export { AuthorityOperationOrder, AuthorityOperations, operationOf } from './operations.js';
11
13
  export { Policy } from './policy.js';
12
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schema/authority/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schema/authority/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAE3F,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA"}
@@ -0,0 +1,16 @@
1
+ import { type builder } from '@astrale-os/kernel-dsl/v1';
2
+ export declare const Operation: builder.NodeClass<{
3
+ readonly description: "One closed authority relation operation administered by can_grant and can_revoke.";
4
+ readonly implements: readonly [builder.Interface<{
5
+ readonly family: "both";
6
+ readonly description: "Stable human-facing name metadata that never acts as a locator.";
7
+ readonly properties: {
8
+ readonly name: {
9
+ readonly type: "string";
10
+ readonly minLength: 1;
11
+ readonly maxLength: 100;
12
+ };
13
+ };
14
+ }>];
15
+ }>;
16
+ //# sourceMappingURL=operation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../../schema/authority/operation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAInE,eAAO,MAAM,SAAS;;;;;;;;;;;;;EAGQ,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { nodeClass } from '@astrale-os/kernel-dsl/v1';
2
+ import { Named } from '../meta/index.js';
3
+ export const Operation = nodeClass({
4
+ description: 'One closed authority relation operation administered by can_grant and can_revoke.',
5
+ implements: [Named],
6
+ });
7
+ //# sourceMappingURL=operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation.js","sourceRoot":"","sources":["../../../schema/authority/operation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAgB,MAAM,2BAA2B,CAAA;AAEnE,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAExC,MAAM,CAAC,MAAM,SAAS,GAAG,SAAS,CAAC;IACjC,WAAW,EAAE,mFAAmF;IAChG,UAAU,EAAE,CAAC,KAAK,CAAC;CACpB,CAA6B,CAAA"}
@@ -0,0 +1,128 @@
1
+ import { type builder } from '@astrale-os/kernel-dsl/v1';
2
+ import type { CanRevoke } from './can-revoke.js';
3
+ import { CanCreate } from './can-create.js';
4
+ import { CanDelete } from './can-delete.js';
5
+ import { CanGrant } from './can-grant.js';
6
+ import { CanRead } from './can-read.js';
7
+ import { CanTraverse } from './can-traverse.js';
8
+ import { CanUpdate } from './can-update.js';
9
+ import { CanUse } from './can-use.js';
10
+ export declare const AuthorityOperationOrder: readonly ["use", "create", "read", "traverse", "update", "delete", "grant", "revoke"];
11
+ export type AuthorityOperation = (typeof AuthorityOperationOrder)[number];
12
+ export declare const AuthorityOperations: Readonly<{
13
+ use: builder.Node<builder.NodeClass<{
14
+ readonly description: "One closed authority relation operation administered by can_grant and can_revoke.";
15
+ readonly implements: readonly [builder.Interface<{
16
+ readonly family: "both";
17
+ readonly description: "Stable human-facing name metadata that never acts as a locator.";
18
+ readonly properties: {
19
+ readonly name: {
20
+ readonly type: "string";
21
+ readonly minLength: 1;
22
+ readonly maxLength: 100;
23
+ };
24
+ };
25
+ }>];
26
+ }>>;
27
+ create: builder.Node<builder.NodeClass<{
28
+ readonly description: "One closed authority relation operation administered by can_grant and can_revoke.";
29
+ readonly implements: readonly [builder.Interface<{
30
+ readonly family: "both";
31
+ readonly description: "Stable human-facing name metadata that never acts as a locator.";
32
+ readonly properties: {
33
+ readonly name: {
34
+ readonly type: "string";
35
+ readonly minLength: 1;
36
+ readonly maxLength: 100;
37
+ };
38
+ };
39
+ }>];
40
+ }>>;
41
+ read: builder.Node<builder.NodeClass<{
42
+ readonly description: "One closed authority relation operation administered by can_grant and can_revoke.";
43
+ readonly implements: readonly [builder.Interface<{
44
+ readonly family: "both";
45
+ readonly description: "Stable human-facing name metadata that never acts as a locator.";
46
+ readonly properties: {
47
+ readonly name: {
48
+ readonly type: "string";
49
+ readonly minLength: 1;
50
+ readonly maxLength: 100;
51
+ };
52
+ };
53
+ }>];
54
+ }>>;
55
+ traverse: builder.Node<builder.NodeClass<{
56
+ readonly description: "One closed authority relation operation administered by can_grant and can_revoke.";
57
+ readonly implements: readonly [builder.Interface<{
58
+ readonly family: "both";
59
+ readonly description: "Stable human-facing name metadata that never acts as a locator.";
60
+ readonly properties: {
61
+ readonly name: {
62
+ readonly type: "string";
63
+ readonly minLength: 1;
64
+ readonly maxLength: 100;
65
+ };
66
+ };
67
+ }>];
68
+ }>>;
69
+ update: builder.Node<builder.NodeClass<{
70
+ readonly description: "One closed authority relation operation administered by can_grant and can_revoke.";
71
+ readonly implements: readonly [builder.Interface<{
72
+ readonly family: "both";
73
+ readonly description: "Stable human-facing name metadata that never acts as a locator.";
74
+ readonly properties: {
75
+ readonly name: {
76
+ readonly type: "string";
77
+ readonly minLength: 1;
78
+ readonly maxLength: 100;
79
+ };
80
+ };
81
+ }>];
82
+ }>>;
83
+ delete: builder.Node<builder.NodeClass<{
84
+ readonly description: "One closed authority relation operation administered by can_grant and can_revoke.";
85
+ readonly implements: readonly [builder.Interface<{
86
+ readonly family: "both";
87
+ readonly description: "Stable human-facing name metadata that never acts as a locator.";
88
+ readonly properties: {
89
+ readonly name: {
90
+ readonly type: "string";
91
+ readonly minLength: 1;
92
+ readonly maxLength: 100;
93
+ };
94
+ };
95
+ }>];
96
+ }>>;
97
+ grant: builder.Node<builder.NodeClass<{
98
+ readonly description: "One closed authority relation operation administered by can_grant and can_revoke.";
99
+ readonly implements: readonly [builder.Interface<{
100
+ readonly family: "both";
101
+ readonly description: "Stable human-facing name metadata that never acts as a locator.";
102
+ readonly properties: {
103
+ readonly name: {
104
+ readonly type: "string";
105
+ readonly minLength: 1;
106
+ readonly maxLength: 100;
107
+ };
108
+ };
109
+ }>];
110
+ }>>;
111
+ revoke: builder.Node<builder.NodeClass<{
112
+ readonly description: "One closed authority relation operation administered by can_grant and can_revoke.";
113
+ readonly implements: readonly [builder.Interface<{
114
+ readonly family: "both";
115
+ readonly description: "Stable human-facing name metadata that never acts as a locator.";
116
+ readonly properties: {
117
+ readonly name: {
118
+ readonly type: "string";
119
+ readonly minLength: 1;
120
+ readonly maxLength: 100;
121
+ };
122
+ };
123
+ }>];
124
+ }>>;
125
+ }>;
126
+ export type AuthorityRelation = typeof CanUse | typeof CanCreate | typeof CanRead | typeof CanTraverse | typeof CanUpdate | typeof CanDelete | typeof CanGrant | typeof CanRevoke;
127
+ export declare function operationOf(relation: AuthorityRelation): AuthorityOperation;
128
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../schema/authority/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAEhD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAGrC,eAAO,MAAM,uBAAuB,uFASzB,CAAA;AAEX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEzE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASiD,CAAA;AAEjF,MAAM,MAAM,iBAAiB,GACzB,OAAO,MAAM,GACb,OAAO,SAAS,GAChB,OAAO,OAAO,GACd,OAAO,WAAW,GAClB,OAAO,SAAS,GAChB,OAAO,SAAS,GAChB,OAAO,QAAQ,GACf,OAAO,SAAS,CAAA;AAEpB,wBAAgB,WAAW,CAAC,QAAQ,EAAE,iBAAiB,GAAG,kBAAkB,CAS3E"}
@@ -0,0 +1,47 @@
1
+ import { node } from '@astrale-os/kernel-dsl/v1';
2
+ import { CanCreate } from './can-create.js';
3
+ import { CanDelete } from './can-delete.js';
4
+ import { CanGrant } from './can-grant.js';
5
+ import { CanRead } from './can-read.js';
6
+ import { CanTraverse } from './can-traverse.js';
7
+ import { CanUpdate } from './can-update.js';
8
+ import { CanUse } from './can-use.js';
9
+ import { Operation } from './operation.js';
10
+ export const AuthorityOperationOrder = Object.freeze([
11
+ 'use',
12
+ 'create',
13
+ 'read',
14
+ 'traverse',
15
+ 'update',
16
+ 'delete',
17
+ 'grant',
18
+ 'revoke',
19
+ ]);
20
+ export const AuthorityOperations = Object.freeze({
21
+ use: node(Operation, { name: 'use' }),
22
+ create: node(Operation, { name: 'create' }),
23
+ read: node(Operation, { name: 'read' }),
24
+ traverse: node(Operation, { name: 'traverse' }),
25
+ update: node(Operation, { name: 'update' }),
26
+ delete: node(Operation, { name: 'delete' }),
27
+ grant: node(Operation, { name: 'grant' }),
28
+ revoke: node(Operation, { name: 'revoke' }),
29
+ });
30
+ export function operationOf(relation) {
31
+ if (relation === CanUse)
32
+ return 'use';
33
+ if (relation === CanCreate)
34
+ return 'create';
35
+ if (relation === CanRead)
36
+ return 'read';
37
+ if (relation === CanTraverse)
38
+ return 'traverse';
39
+ if (relation === CanUpdate)
40
+ return 'update';
41
+ if (relation === CanDelete)
42
+ return 'delete';
43
+ if (relation === CanGrant)
44
+ return 'grant';
45
+ return 'revoke';
46
+ }
47
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../schema/authority/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAgB,MAAM,2BAA2B,CAAA;AAI9D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,MAAM,CAAC;IACnD,KAAK;IACL,QAAQ;IACR,MAAM;IACN,UAAU;IACV,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,QAAQ;CACA,CAAC,CAAA;AAIX,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC/C,GAAG,EAAE,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IACrC,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IAC3C,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACvC,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;IAC/C,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IAC3C,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IAC3C,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IACzC,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;CAC5C,CAAgF,CAAA;AAYjF,MAAM,UAAU,WAAW,CAAC,QAA2B;IACrD,IAAI,QAAQ,KAAK,MAAM;QAAE,OAAO,KAAK,CAAA;IACrC,IAAI,QAAQ,KAAK,SAAS;QAAE,OAAO,QAAQ,CAAA;IAC3C,IAAI,QAAQ,KAAK,OAAO;QAAE,OAAO,MAAM,CAAA;IACvC,IAAI,QAAQ,KAAK,WAAW;QAAE,OAAO,UAAU,CAAA;IAC/C,IAAI,QAAQ,KAAK,SAAS;QAAE,OAAO,QAAQ,CAAA;IAC3C,IAAI,QAAQ,KAAK,SAAS;QAAE,OAAO,QAAQ,CAAA;IAC3C,IAAI,QAAQ,KAAK,QAAQ;QAAE,OAAO,OAAO,CAAA;IACzC,OAAO,QAAQ,CAAA;AACjB,CAAC"}