@astrale-os/kernel-core 0.9.0-beta.9 → 0.9.0

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 (380) hide show
  1. package/dist/auth/authority/accept.js +4 -0
  2. package/dist/auth/authority/admission/admission.d.ts +4 -1
  3. package/dist/auth/authority/admission/admission.js +46 -147
  4. package/dist/auth/authority/admission/index.d.ts +1 -1
  5. package/dist/auth/authority/admission/index.js +1 -1
  6. package/dist/auth/authority/admission/references.d.ts +13 -0
  7. package/dist/auth/authority/admission/references.js +38 -0
  8. package/dist/auth/authority/admission/term.d.ts +6 -0
  9. package/dist/auth/authority/admission/term.js +60 -0
  10. package/dist/auth/authority/admission/wire.d.ts +8 -0
  11. package/dist/auth/authority/admission/wire.js +33 -0
  12. package/dist/auth/authority/canonical.d.ts +2 -0
  13. package/dist/auth/authority/canonical.js +15 -0
  14. package/dist/auth/authority/index.d.ts +9 -2
  15. package/dist/auth/authority/index.js +6 -1
  16. package/dist/auth/authority/language/index.d.ts +3 -1
  17. package/dist/auth/authority/language/index.js +1 -0
  18. package/dist/auth/authority/language/predicate.d.ts +31 -16
  19. package/dist/auth/authority/language/predicate.js +1 -1
  20. package/dist/auth/authority/language/program.d.ts +21 -0
  21. package/dist/auth/authority/language/program.js +2 -0
  22. package/dist/auth/authority/normalization/index.d.ts +1 -1
  23. package/dist/auth/authority/normalization/index.js +1 -1
  24. package/dist/auth/authority/normalization/normalize.d.ts +2 -0
  25. package/dist/auth/authority/normalization/normalize.js +38 -16
  26. package/dist/auth/authority/ownership.optimization.d.ts +8 -0
  27. package/dist/auth/authority/ownership.optimization.js +83 -0
  28. package/dist/auth/authority/prepare-binder-body.d.ts +4 -0
  29. package/dist/auth/authority/prepare-binder-body.js +31 -0
  30. package/dist/auth/authority/program.d.ts +28 -0
  31. package/dist/auth/authority/program.js +191 -0
  32. package/dist/auth/authority/semantics/class-authority.d.ts +8 -0
  33. package/dist/auth/authority/semantics/class-authority.js +26 -0
  34. package/dist/auth/authority/semantics/composition.d.ts +46 -0
  35. package/dist/auth/authority/semantics/composition.js +150 -0
  36. package/dist/auth/authority/semantics/failure.d.ts +21 -0
  37. package/dist/auth/authority/semantics/failure.js +10 -0
  38. package/dist/auth/authority/semantics/index.d.ts +13 -0
  39. package/dist/auth/authority/semantics/index.js +6 -0
  40. package/dist/auth/authority/semantics/interpret.d.ts +41 -0
  41. package/dist/auth/authority/semantics/interpret.js +388 -0
  42. package/dist/auth/authority/semantics/residual.d.ts +32 -0
  43. package/dist/auth/authority/semantics/residual.js +166 -0
  44. package/dist/auth/authority/semantics/snapshot.d.ts +40 -0
  45. package/dist/auth/authority/semantics/terms.d.ts +22 -0
  46. package/dist/auth/authority/semantics/terms.js +96 -0
  47. package/dist/auth/authority/semantics/vocabulary.d.ts +19 -0
  48. package/dist/auth/context/context.d.ts +4 -3
  49. package/dist/auth/expression/authoring/builder.d.ts +2 -11
  50. package/dist/auth/expression/authoring/builder.js +1 -45
  51. package/dist/auth/expression/authoring/index.d.ts +1 -1
  52. package/dist/auth/expression/authoring/index.js +1 -1
  53. package/dist/auth/expression/index.d.ts +1 -2
  54. package/dist/auth/expression/index.js +1 -2
  55. package/dist/auth/expression/language/identity-expression.d.ts +2 -22
  56. package/dist/auth/grant/index.d.ts +1 -1
  57. package/dist/auth/grant/index.js +1 -1
  58. package/dist/auth/grant/resolved/admission.d.ts +4 -3
  59. package/dist/auth/grant/resolved/admission.js +23 -13
  60. package/dist/auth/grant/resolved/grant.d.ts +1 -1
  61. package/dist/auth/grant/resolved/index.d.ts +1 -1
  62. package/dist/auth/grant/resolved/index.js +1 -1
  63. package/dist/auth/grant/unresolved/admission.d.ts +4 -1
  64. package/dist/auth/grant/unresolved/admission.js +27 -67
  65. package/dist/auth/grant/unresolved/limits.d.ts +2 -4
  66. package/dist/auth/grant/unresolved/limits.js +1 -5
  67. package/dist/auth/identity/admission.js +11 -3
  68. package/dist/auth/identity/identity.d.ts +15 -3
  69. package/dist/auth/identity/index.d.ts +1 -1
  70. package/dist/auth/index.d.ts +4 -4
  71. package/dist/auth/index.js +1 -1
  72. package/dist/auth/jwk/index.d.ts +1 -1
  73. package/dist/auth/jwk/index.js +1 -1
  74. package/dist/auth/jwk/thumbprint.d.ts +2 -0
  75. package/dist/auth/jwk/thumbprint.js +12 -6
  76. package/dist/auth/register/fingerprint/fingerprint.d.ts +25 -0
  77. package/dist/auth/register/fingerprint/fingerprint.js +31 -0
  78. package/dist/auth/register/fingerprint/index.d.ts +2 -0
  79. package/dist/auth/register/index.d.ts +5 -0
  80. package/dist/auth/register/request/admission.d.ts +3 -0
  81. package/dist/auth/register/request/admission.js +103 -0
  82. package/dist/auth/register/request/index.d.ts +3 -0
  83. package/dist/auth/register/request/limits.d.ts +6 -0
  84. package/dist/auth/register/request/limits.js +6 -0
  85. package/dist/auth/register/request/request.d.ts +19 -0
  86. package/dist/auth/{provision → register}/request/self-issuer.d.ts +1 -1
  87. package/dist/auth/{provision → register}/request/self-issuer.js +1 -1
  88. package/dist/auth/register/result/index.d.ts +1 -0
  89. package/dist/auth/register/result/result.d.ts +10 -0
  90. package/dist/auth/register/result/result.js +1 -0
  91. package/dist/callable/contract/body.d.ts +10 -0
  92. package/dist/callable/contract/body.js +7 -0
  93. package/dist/callable/contract/index.d.ts +2 -1
  94. package/dist/callable/contract/index.js +1 -1
  95. package/dist/callable/contract/output.d.ts +18 -2
  96. package/dist/callable/index.d.ts +3 -2
  97. package/dist/callable/index.js +2 -1
  98. package/dist/callable/invocation/call.d.ts +16 -2
  99. package/dist/callable/invocation/call.js +41 -1
  100. package/dist/callable/invocation/index.d.ts +1 -1
  101. package/dist/callable/invocation/index.js +1 -1
  102. package/dist/callable/invocation/result.d.ts +10 -3
  103. package/dist/dns-label.d.ts +1 -2
  104. package/dist/dns-label.js +2 -3
  105. package/dist/graph/graph/graph.d.ts +1 -5
  106. package/dist/graph/graph/graph.js +3 -27
  107. package/dist/graph/graph/index.d.ts +2 -4
  108. package/dist/graph/graph/index.js +2 -3
  109. package/dist/graph/graph/model/codec.js +4 -4
  110. package/dist/graph/graph/model/index.d.ts +1 -1
  111. package/dist/graph/graph/model/index.js +1 -1
  112. package/dist/graph/graph/model/model.d.ts +7 -7
  113. package/dist/graph/graph/model/model.js +6 -6
  114. package/dist/graph/graph/model/wire.d.ts +58 -78
  115. package/dist/graph/graph/model/wire.js +18 -19
  116. package/dist/graph/mutate/authoring/builder.d.ts +2 -2
  117. package/dist/graph/mutate/authoring/builder.js +2 -2
  118. package/dist/graph/mutate/authoring/create.js +13 -5
  119. package/dist/graph/mutate/index.d.ts +1 -1
  120. package/dist/graph/mutate/language/codec.js +3 -3
  121. package/dist/graph/mutate/language/model.d.ts +4 -4
  122. package/dist/graph/mutate/language/wire.d.ts +226 -215
  123. package/dist/graph/mutate/language/wire.js +42 -47
  124. package/dist/graph/mutate/result/index.d.ts +4 -3
  125. package/dist/graph/mutate/result/index.js +8 -6
  126. package/dist/graph/mutate/result/wire.d.ts +4 -4
  127. package/dist/graph/mutate/result/wire.js +7 -4
  128. package/dist/graph/node/identity/id.d.ts +0 -4
  129. package/dist/graph/node/identity/id.js +0 -5
  130. package/dist/graph/node/identity/order.js +20 -0
  131. package/dist/graph/path/authoring/path.d.ts +8 -5
  132. package/dist/graph/path/authoring/path.js +21 -3
  133. package/dist/graph/path/language/model.d.ts +8 -3
  134. package/dist/graph/path/language/syntax.js +23 -8
  135. package/dist/graph/query/authoring/builder.js +37 -5
  136. package/dist/graph/query/authoring/model.d.ts +20 -1
  137. package/dist/graph/query/index.d.ts +4 -2
  138. package/dist/graph/query/index.js +1 -0
  139. package/dist/graph/query/language/codec.js +18 -3
  140. package/dist/graph/query/language/fingerprint.js +8 -0
  141. package/dist/graph/query/language/model.d.ts +22 -4
  142. package/dist/graph/query/language/wire.d.ts +124 -114
  143. package/dist/graph/query/language/wire.js +54 -47
  144. package/dist/graph/query/order/index.d.ts +53 -0
  145. package/dist/graph/query/order/index.js +79 -0
  146. package/dist/graph/query/reference/evaluate.d.ts +1 -0
  147. package/dist/graph/query/reference/evaluate.js +39 -52
  148. package/dist/graph/query/result/index.js +1 -1
  149. package/dist/graph/query/result/wire.d.ts +93 -94
  150. package/dist/graph/query/result/wire.js +20 -20
  151. package/dist/graph/reconcile/condition/model.d.ts +2 -2
  152. package/dist/graph/reconcile/condition/references.d.ts +0 -1
  153. package/dist/graph/reconcile/condition/references.js +4 -4
  154. package/dist/graph/reconcile/correspondence.d.ts +9 -8
  155. package/dist/graph/reconcile/evidence.d.ts +2 -2
  156. package/dist/graph/reconcile/mutation/assess.d.ts +2 -1
  157. package/dist/graph/reconcile/observation.d.ts +4 -3
  158. package/dist/graph/reconcile/planning/canonical.d.ts +6 -0
  159. package/dist/graph/reconcile/planning/canonical.js +28 -0
  160. package/dist/graph/reconcile/planning/context.d.ts +3 -3
  161. package/dist/graph/reconcile/planning/model.d.ts +8 -4
  162. package/dist/graph/reconcile/planning/plan.js +2 -1
  163. package/dist/schema/authority/authority-relation.js +3 -0
  164. package/dist/schema/authority/claims.d.ts +24 -25
  165. package/dist/schema/authority/claims.js +8 -8
  166. package/dist/schema/authority/governed-by.d.ts +16 -91
  167. package/dist/schema/authority/governed-by.js +1 -1
  168. package/dist/schema/authority/operation-node.d.ts +27 -13
  169. package/dist/schema/authority/operations.d.ts +8 -168
  170. package/dist/schema/authority/policy.d.ts +27 -15
  171. package/dist/schema/authority/vocabulary.d.ts +3 -0
  172. package/dist/schema/authority/vocabulary.js +25 -0
  173. package/dist/schema/callables/entrypoint.d.ts +32 -0
  174. package/dist/schema/callables/entrypoint.js +12 -0
  175. package/dist/schema/callables/execution.d.ts +569 -0
  176. package/dist/schema/callables/execution.js +32 -0
  177. package/dist/schema/callables/function.d.ts +3400 -55
  178. package/dist/schema/callables/function.js +6 -4
  179. package/dist/schema/callables/index.d.ts +2 -1
  180. package/dist/schema/callables/index.js +2 -1
  181. package/dist/schema/callables/method-of.d.ts +18 -143
  182. package/dist/schema/callables/method-of.js +2 -2
  183. package/dist/schema/callables/view.d.ts +83 -51
  184. package/dist/schema/definitions/class.d.ts +45 -33
  185. package/dist/schema/definitions/extends.d.ts +16 -110
  186. package/dist/schema/definitions/instance-of.d.ts +17 -69
  187. package/dist/schema/domain/domain.d.ts +3343 -148
  188. package/dist/schema/domain/domain.js +6 -3
  189. package/dist/schema/domain/of-domain.d.ts +18 -192
  190. package/dist/schema/domain/of-domain.js +1 -1
  191. package/dist/schema/identity/composition.d.ts +5 -0
  192. package/dist/schema/identity/composition.js +5 -0
  193. package/dist/schema/identity/identity.d.ts +225 -122
  194. package/dist/schema/identity/identity.js +3 -4
  195. package/dist/schema/index.d.ts +1 -0
  196. package/dist/schema/index.js +1 -0
  197. package/dist/schema/installation/operation-id.d.ts +1 -2
  198. package/dist/schema/installation/operation-id.js +2 -4
  199. package/dist/schema/introspection/index.d.ts +1 -1
  200. package/dist/schema/introspection/language.d.ts +12 -28
  201. package/dist/schema/kernel/projection/callables.js +2 -3
  202. package/dist/schema/kernel/projection/core.d.ts +7 -0
  203. package/dist/schema/kernel/projection/core.js +51 -0
  204. package/dist/schema/kernel/projection/definitions.d.ts +13 -0
  205. package/dist/schema/kernel/projection/definitions.js +71 -0
  206. package/dist/schema/kernel/projection/index.d.ts +3 -3
  207. package/dist/schema/kernel/projection/index.js +2 -2
  208. package/dist/schema/kernel/projection/methods.d.ts +5 -0
  209. package/dist/schema/kernel/projection/methods.js +41 -0
  210. package/dist/schema/kernel/projection/part.d.ts +34 -0
  211. package/dist/schema/kernel/projection/part.js +42 -0
  212. package/dist/schema/kernel/projection/paths.d.ts +6 -0
  213. package/dist/schema/kernel/projection/{keys.js → paths.js} +12 -14
  214. package/dist/schema/kernel/projection/project.d.ts +4 -2
  215. package/dist/schema/kernel/projection/project.js +33 -258
  216. package/dist/schema/kernel/projection/properties.d.ts +11 -0
  217. package/dist/schema/kernel/projection/properties.js +36 -0
  218. package/dist/schema/kernel/projection/relations.d.ts +7 -0
  219. package/dist/schema/kernel/projection/relations.js +61 -0
  220. package/dist/schema/kernel/projection/types.d.ts +28 -2
  221. package/dist/schema/kernel/schema.d.ts +9008 -4939
  222. package/dist/schema/kernel/schema.js +12 -8
  223. package/dist/schema/kernel/syscalls/contracts/admit.d.ts +15 -12
  224. package/dist/schema/kernel/syscalls/contracts/admit.js +16 -9
  225. package/dist/schema/kernel/syscalls/contracts/blob.d.ts +31 -0
  226. package/dist/schema/kernel/syscalls/contracts/blob.js +24 -0
  227. package/dist/schema/kernel/syscalls/contracts/can.d.ts +19 -8
  228. package/dist/schema/kernel/syscalls/contracts/can.js +12 -4
  229. package/dist/schema/kernel/syscalls/contracts/delegate.d.ts +6 -7
  230. package/dist/schema/kernel/syscalls/contracts/delegate.js +5 -5
  231. package/dist/schema/kernel/syscalls/contracts/execution.d.ts +300 -0
  232. package/dist/schema/kernel/syscalls/contracts/execution.js +116 -0
  233. package/dist/schema/kernel/syscalls/contracts/expected.d.ts +5 -0
  234. package/dist/schema/kernel/syscalls/contracts/expected.js +9 -0
  235. package/dist/schema/kernel/syscalls/contracts/identity.d.ts +18 -19
  236. package/dist/schema/kernel/syscalls/contracts/identity.js +6 -7
  237. package/dist/schema/kernel/syscalls/contracts/impersonate.d.ts +6 -0
  238. package/dist/schema/kernel/syscalls/contracts/impersonate.js +4 -0
  239. package/dist/schema/kernel/syscalls/contracts/index.d.ts +6 -3
  240. package/dist/schema/kernel/syscalls/contracts/index.js +6 -3
  241. package/dist/schema/kernel/syscalls/contracts/install.d.ts +309 -217
  242. package/dist/schema/kernel/syscalls/contracts/install.js +68 -26
  243. package/dist/schema/kernel/syscalls/contracts/installation.d.ts +70 -351
  244. package/dist/schema/kernel/syscalls/contracts/installation.js +29 -67
  245. package/dist/schema/kernel/syscalls/contracts/introspect.d.ts +11 -15
  246. package/dist/schema/kernel/syscalls/contracts/introspect.js +8 -15
  247. package/dist/schema/kernel/syscalls/contracts/journal.d.ts +26 -27
  248. package/dist/schema/kernel/syscalls/contracts/journal.js +15 -15
  249. package/dist/schema/kernel/syscalls/contracts/mint.d.ts +5 -7
  250. package/dist/schema/kernel/syscalls/contracts/mint.js +4 -5
  251. package/dist/schema/kernel/syscalls/contracts/mutate.d.ts +243 -224
  252. package/dist/schema/kernel/syscalls/contracts/mutate.js +7 -1
  253. package/dist/schema/kernel/syscalls/contracts/query.d.ts +239 -222
  254. package/dist/schema/kernel/syscalls/contracts/query.js +17 -15
  255. package/dist/schema/kernel/syscalls/contracts/register.d.ts +20 -0
  256. package/dist/schema/kernel/syscalls/contracts/register.js +24 -0
  257. package/dist/schema/kernel/syscalls/contracts/uninstall.d.ts +55 -148
  258. package/dist/schema/kernel/syscalls/contracts/uninstall.js +7 -5
  259. package/dist/schema/kernel/syscalls/contracts/view-host-requirements.d.ts +17 -0
  260. package/dist/schema/kernel/syscalls/contracts/view-host-requirements.js +40 -0
  261. package/dist/schema/kernel/syscalls/contracts/view-resolve.d.ts +27 -28
  262. package/dist/schema/kernel/syscalls/contracts/view-resolve.js +16 -24
  263. package/dist/schema/kernel/syscalls/contracts/whoami.d.ts +19 -20
  264. package/dist/schema/kernel/syscalls/contracts/whoami.js +2 -2
  265. package/dist/schema/kernel/syscalls/contracts/whois.d.ts +22 -23
  266. package/dist/schema/kernel/syscalls/contracts/whois.js +3 -3
  267. package/dist/schema/kernel/syscalls/declarations/admit.d.ts +18 -18
  268. package/dist/schema/kernel/syscalls/declarations/admit.js +3 -3
  269. package/dist/schema/kernel/syscalls/declarations/can.d.ts +19 -14
  270. package/dist/schema/kernel/syscalls/declarations/can.js +4 -4
  271. package/dist/schema/kernel/syscalls/declarations/delegate.d.ts +9 -12
  272. package/dist/schema/kernel/syscalls/declarations/delegate.js +4 -4
  273. package/dist/schema/kernel/syscalls/declarations/download.d.ts +12 -0
  274. package/dist/schema/kernel/syscalls/declarations/download.js +10 -0
  275. package/dist/schema/kernel/syscalls/declarations/execution.d.ts +255 -0
  276. package/dist/schema/kernel/syscalls/declarations/execution.js +52 -0
  277. package/dist/schema/kernel/syscalls/declarations/impersonate.d.ts +9 -0
  278. package/dist/schema/kernel/syscalls/declarations/impersonate.js +12 -0
  279. package/dist/schema/kernel/syscalls/declarations/index.d.ts +1079 -1323
  280. package/dist/schema/kernel/syscalls/declarations/index.js +18 -2
  281. package/dist/schema/kernel/syscalls/declarations/install.d.ts +85 -172
  282. package/dist/schema/kernel/syscalls/declarations/install.js +7 -3
  283. package/dist/schema/kernel/syscalls/declarations/introspect.d.ts +8 -19
  284. package/dist/schema/kernel/syscalls/declarations/introspect.js +3 -4
  285. package/dist/schema/kernel/syscalls/declarations/journal.d.ts +29 -31
  286. package/dist/schema/kernel/syscalls/declarations/journal.js +4 -2
  287. package/dist/schema/kernel/syscalls/declarations/mint.d.ts +8 -13
  288. package/dist/schema/kernel/syscalls/declarations/mint.js +5 -5
  289. package/dist/schema/kernel/syscalls/declarations/mutate.d.ts +239 -256
  290. package/dist/schema/kernel/syscalls/declarations/mutate.js +4 -2
  291. package/dist/schema/kernel/syscalls/declarations/query.d.ts +236 -260
  292. package/dist/schema/kernel/syscalls/declarations/query.js +4 -2
  293. package/dist/schema/kernel/syscalls/declarations/register.d.ts +23 -0
  294. package/dist/schema/kernel/syscalls/declarations/register.js +10 -0
  295. package/dist/schema/kernel/syscalls/declarations/uninstall.d.ts +51 -153
  296. package/dist/schema/kernel/syscalls/declarations/uninstall.js +6 -2
  297. package/dist/schema/kernel/syscalls/declarations/upload.d.ts +15 -0
  298. package/dist/schema/kernel/syscalls/declarations/upload.js +10 -0
  299. package/dist/schema/kernel/syscalls/declarations/use-policy.d.ts +4 -0
  300. package/dist/schema/kernel/syscalls/declarations/use-policy.js +9 -0
  301. package/dist/schema/kernel/syscalls/declarations/view-resolve.d.ts +30 -37
  302. package/dist/schema/kernel/syscalls/declarations/view-resolve.js +5 -3
  303. package/dist/schema/kernel/syscalls/declarations/whoami.d.ts +22 -26
  304. package/dist/schema/kernel/syscalls/declarations/whoami.js +3 -3
  305. package/dist/schema/kernel/syscalls/declarations/whois.d.ts +25 -29
  306. package/dist/schema/kernel/syscalls/declarations/whois.js +5 -3
  307. package/dist/schema/kernel/syscalls/descriptors/execution.d.ts +303 -0
  308. package/dist/schema/kernel/syscalls/descriptors/execution.js +11 -0
  309. package/dist/schema/kernel/syscalls/descriptors/function.d.ts +8 -2
  310. package/dist/schema/kernel/syscalls/descriptors/functions.d.ts +3 -1
  311. package/dist/schema/kernel/syscalls/descriptors/functions.js +3 -1
  312. package/dist/schema/kernel/syscalls/descriptors/identity.d.ts +47 -13
  313. package/dist/schema/kernel/syscalls/descriptors/identity.js +2 -1
  314. package/dist/schema/kernel/syscalls/descriptors/index.d.ts +2 -1
  315. package/dist/schema/kernel/syscalls/descriptors/index.js +2 -1
  316. package/dist/schema/kernel/syscalls/descriptors/results/view-resolution.d.ts +5 -2
  317. package/dist/schema/kernel/syscalls/descriptors/results/view-resolution.js +8 -38
  318. package/dist/schema/kernel/syscalls/descriptors/view.d.ts +11 -9
  319. package/dist/schema/kernel/syscalls/index.d.ts +2 -2
  320. package/dist/schema/kernel/syscalls/index.js +2 -2
  321. package/dist/schema/kernel/syscalls/references/execution.d.ts +55 -0
  322. package/dist/schema/kernel/syscalls/references/execution.js +13 -0
  323. package/dist/schema/kernel/syscalls/references/functions.d.ts +12 -2
  324. package/dist/schema/kernel/syscalls/references/functions.js +3 -1
  325. package/dist/schema/kernel/syscalls/references/identity.d.ts +9 -0
  326. package/dist/schema/kernel/syscalls/references/identity.js +1 -0
  327. package/dist/schema/kernel/syscalls/references/index.d.ts +2 -1
  328. package/dist/schema/kernel/syscalls/references/index.js +2 -1
  329. package/dist/schema/meta/created-by.d.ts +32 -0
  330. package/dist/schema/meta/created-by.js +17 -0
  331. package/dist/schema/meta/descriptable.d.ts +13 -11
  332. package/dist/schema/meta/edge.d.ts +5 -9
  333. package/dist/schema/meta/iconable.d.ts +13 -11
  334. package/dist/schema/meta/index.d.ts +1 -0
  335. package/dist/schema/meta/index.js +1 -0
  336. package/dist/schema/meta/named.d.ts +13 -9
  337. package/dist/schema/meta/node.d.ts +9 -1
  338. package/dist/schema/meta/remotable.d.ts +15 -22
  339. package/dist/schema/meta/statused.d.ts +13 -7
  340. package/dist/schema/meta/timestamped.d.ts +14 -12
  341. package/package.json +9 -7
  342. package/dist/auth/expression/normalization/canonicalize.d.ts +0 -7
  343. package/dist/auth/expression/normalization/canonicalize.js +0 -102
  344. package/dist/auth/expression/normalization/index.d.ts +0 -2
  345. package/dist/auth/expression/normalization/index.js +0 -2
  346. package/dist/auth/expression/normalization/raise-denials.d.ts +0 -3
  347. package/dist/auth/expression/normalization/raise-denials.js +0 -59
  348. package/dist/auth/provision/fingerprint/fingerprint.d.ts +0 -9
  349. package/dist/auth/provision/fingerprint/fingerprint.js +0 -33
  350. package/dist/auth/provision/fingerprint/index.d.ts +0 -2
  351. package/dist/auth/provision/index.d.ts +0 -5
  352. package/dist/auth/provision/request/admission.d.ts +0 -3
  353. package/dist/auth/provision/request/admission.js +0 -125
  354. package/dist/auth/provision/request/index.d.ts +0 -3
  355. package/dist/auth/provision/request/request.d.ts +0 -29
  356. package/dist/auth/provision/result/index.d.ts +0 -1
  357. package/dist/auth/provision/result/result.d.ts +0 -12
  358. package/dist/graph/graph/navigation/error.d.ts +0 -12
  359. package/dist/graph/graph/navigation/error.js +0 -20
  360. package/dist/graph/graph/navigation/index.d.ts +0 -2
  361. package/dist/graph/graph/navigation/index.js +0 -1
  362. package/dist/graph/graph/navigation/model.d.ts +0 -15
  363. package/dist/schema/callables/view-for.d.ts +0 -296
  364. package/dist/schema/callables/view-for.js +0 -12
  365. package/dist/schema/kernel/projection/keys.d.ts +0 -3
  366. package/dist/schema/kernel/projection/path.d.ts +0 -2
  367. package/dist/schema/kernel/projection/path.js +0 -140
  368. package/dist/schema/kernel/syscalls/contracts/provision.d.ts +0 -292
  369. package/dist/schema/kernel/syscalls/contracts/provision.js +0 -19
  370. package/dist/schema/kernel/syscalls/declarations/define.d.ts +0 -5
  371. package/dist/schema/kernel/syscalls/declarations/define.js +0 -7
  372. package/dist/schema/kernel/syscalls/declarations/provision.d.ts +0 -296
  373. package/dist/schema/kernel/syscalls/declarations/provision.js +0 -8
  374. /package/dist/auth/{provision/request/request.js → authority/semantics/snapshot.js} +0 -0
  375. /package/dist/auth/{provision/result/index.js → authority/semantics/vocabulary.js} +0 -0
  376. /package/dist/auth/{provision → register}/fingerprint/index.js +0 -0
  377. /package/dist/auth/{provision → register}/index.js +0 -0
  378. /package/dist/auth/{provision → register}/request/index.js +0 -0
  379. /package/dist/auth/{provision/result/result.js → register/request/request.js} +0 -0
  380. /package/dist/{graph/graph/navigation/model.js → auth/register/result/index.js} +0 -0
@@ -0,0 +1,303 @@
1
+ export declare const status: import("./model.js").MethodSyscall<Readonly<{
2
+ origin: 'kernel.astrale.ai';
3
+ kind: 'class';
4
+ name: 'Execution';
5
+ }>, "status", import("@astrale-os/kernel-dsl/v1").ResolvedMethod<Record<string, never>, {
6
+ readonly mode: 'value';
7
+ readonly value: {
8
+ id: string;
9
+ function: string;
10
+ version: string;
11
+ state: "cancelled" | "completed" | "expired" | "failed" | "paused" | "pending" | "running" | "waiting";
12
+ createdAt: string;
13
+ detail?: {
14
+ phase: "activating" | "attempting" | "awaiting" | "cancelled" | "classifying" | "completed" | "draining" | "rejected" | "validating";
15
+ class?: "immediate" | "noop" | "revalidate" | undefined;
16
+ mode?: "maintenance" | "online" | undefined;
17
+ validation?: {
18
+ scope: "full" | "incremental";
19
+ counts: "exact" | "sample";
20
+ } | undefined;
21
+ progress?: {
22
+ pages: number;
23
+ interruptions: number;
24
+ } | undefined;
25
+ instance?: "attempt" | "draining" | "open" | "repair" | undefined;
26
+ command?: number | undefined;
27
+ expires?: number | undefined;
28
+ attempt?: {
29
+ number: number;
30
+ destination: "previous" | "target";
31
+ } | undefined;
32
+ report?: {
33
+ attempt: number;
34
+ destination: "previous" | "target";
35
+ result: "aborted" | "interrupted" | "migration-required";
36
+ reason?: string | undefined;
37
+ summary?: unknown;
38
+ } | undefined;
39
+ uncertified?: {
40
+ since: number;
41
+ session?: string | undefined;
42
+ operator?: string | undefined;
43
+ reason?: string | undefined;
44
+ } | undefined;
45
+ } | undefined;
46
+ outcome?: {
47
+ kind: "completed";
48
+ value: unknown;
49
+ } | {
50
+ kind: "failed";
51
+ error: {
52
+ code: string;
53
+ message: string;
54
+ family?: string | undefined;
55
+ details?: unknown;
56
+ };
57
+ } | {
58
+ kind: "cancelled";
59
+ } | undefined;
60
+ } | {
61
+ id: string;
62
+ state: "deleted";
63
+ outcome: {
64
+ kind: "completed";
65
+ value: unknown;
66
+ } | {
67
+ kind: "failed";
68
+ error: {
69
+ code: string;
70
+ message: string;
71
+ family?: string | undefined;
72
+ details?: unknown;
73
+ };
74
+ } | {
75
+ kind: "cancelled";
76
+ };
77
+ };
78
+ }, false, false, "authenticated", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.Execution.method.status"> & {
79
+ readonly name: "status";
80
+ readonly executable: true;
81
+ readonly execution: undefined;
82
+ }>;
83
+ export declare const result: import("./model.js").MethodSyscall<Readonly<{
84
+ origin: 'kernel.astrale.ai';
85
+ kind: 'class';
86
+ name: 'Execution';
87
+ }>, "result", import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
88
+ waitMs?: number | undefined;
89
+ }, {
90
+ readonly mode: 'value';
91
+ readonly value: {
92
+ kind: "completed";
93
+ value: unknown;
94
+ } | {
95
+ kind: "failed";
96
+ error: {
97
+ code: string;
98
+ message: string;
99
+ family?: string | undefined;
100
+ details?: unknown;
101
+ };
102
+ } | {
103
+ kind: "cancelled";
104
+ };
105
+ }, false, false, "authenticated", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.Execution.method.result"> & {
106
+ readonly name: "result";
107
+ readonly executable: true;
108
+ readonly execution: undefined;
109
+ }>;
110
+ export declare const cancel: import("./model.js").MethodSyscall<Readonly<{
111
+ origin: 'kernel.astrale.ai';
112
+ kind: 'class';
113
+ name: 'Execution';
114
+ }>, "cancel", import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
115
+ force?: boolean | undefined;
116
+ }, {
117
+ readonly mode: 'value';
118
+ readonly value: {
119
+ id: string;
120
+ function: string;
121
+ version: string;
122
+ state: "cancelled" | "completed" | "expired" | "failed" | "paused" | "pending" | "running" | "waiting";
123
+ createdAt: string;
124
+ detail?: {
125
+ phase: "activating" | "attempting" | "awaiting" | "cancelled" | "classifying" | "completed" | "draining" | "rejected" | "validating";
126
+ class?: "immediate" | "noop" | "revalidate" | undefined;
127
+ mode?: "maintenance" | "online" | undefined;
128
+ validation?: {
129
+ scope: "full" | "incremental";
130
+ counts: "exact" | "sample";
131
+ } | undefined;
132
+ progress?: {
133
+ pages: number;
134
+ interruptions: number;
135
+ } | undefined;
136
+ instance?: "attempt" | "draining" | "open" | "repair" | undefined;
137
+ command?: number | undefined;
138
+ expires?: number | undefined;
139
+ attempt?: {
140
+ number: number;
141
+ destination: "previous" | "target";
142
+ } | undefined;
143
+ report?: {
144
+ attempt: number;
145
+ destination: "previous" | "target";
146
+ result: "aborted" | "interrupted" | "migration-required";
147
+ reason?: string | undefined;
148
+ summary?: unknown;
149
+ } | undefined;
150
+ uncertified?: {
151
+ since: number;
152
+ session?: string | undefined;
153
+ operator?: string | undefined;
154
+ reason?: string | undefined;
155
+ } | undefined;
156
+ } | undefined;
157
+ outcome?: {
158
+ kind: "completed";
159
+ value: unknown;
160
+ } | {
161
+ kind: "failed";
162
+ error: {
163
+ code: string;
164
+ message: string;
165
+ family?: string | undefined;
166
+ details?: unknown;
167
+ };
168
+ } | {
169
+ kind: "cancelled";
170
+ } | undefined;
171
+ } | {
172
+ id: string;
173
+ state: "deleted";
174
+ outcome: {
175
+ kind: "completed";
176
+ value: unknown;
177
+ } | {
178
+ kind: "failed";
179
+ error: {
180
+ code: string;
181
+ message: string;
182
+ family?: string | undefined;
183
+ details?: unknown;
184
+ };
185
+ } | {
186
+ kind: "cancelled";
187
+ };
188
+ };
189
+ }, false, false, "authenticated", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.Execution.method.cancel"> & {
190
+ readonly name: "cancel";
191
+ readonly executable: true;
192
+ readonly execution: undefined;
193
+ }>;
194
+ export declare const signal: import("./model.js").MethodSyscall<Readonly<{
195
+ origin: 'kernel.astrale.ai';
196
+ kind: 'class';
197
+ name: 'Execution';
198
+ }>, "signal", import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
199
+ name: string;
200
+ value: unknown;
201
+ }, {
202
+ readonly mode: 'value';
203
+ readonly value: Record<string, never>;
204
+ }, false, false, "authenticated", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.Execution.method.signal"> & {
205
+ readonly name: "signal";
206
+ readonly executable: true;
207
+ readonly execution: undefined;
208
+ }>;
209
+ export declare const resume: import("./model.js").MethodSyscall<Readonly<{
210
+ origin: 'kernel.astrale.ai';
211
+ kind: 'class';
212
+ name: 'Execution';
213
+ }>, "resume", import("@astrale-os/kernel-dsl/v1").ResolvedMethod<Record<string, never>, {
214
+ readonly mode: 'value';
215
+ readonly value: {
216
+ id: string;
217
+ function: string;
218
+ version: string;
219
+ state: "cancelled" | "completed" | "expired" | "failed" | "paused" | "pending" | "running" | "waiting";
220
+ createdAt: string;
221
+ detail?: {
222
+ phase: "activating" | "attempting" | "awaiting" | "cancelled" | "classifying" | "completed" | "draining" | "rejected" | "validating";
223
+ class?: "immediate" | "noop" | "revalidate" | undefined;
224
+ mode?: "maintenance" | "online" | undefined;
225
+ validation?: {
226
+ scope: "full" | "incremental";
227
+ counts: "exact" | "sample";
228
+ } | undefined;
229
+ progress?: {
230
+ pages: number;
231
+ interruptions: number;
232
+ } | undefined;
233
+ instance?: "attempt" | "draining" | "open" | "repair" | undefined;
234
+ command?: number | undefined;
235
+ expires?: number | undefined;
236
+ attempt?: {
237
+ number: number;
238
+ destination: "previous" | "target";
239
+ } | undefined;
240
+ report?: {
241
+ attempt: number;
242
+ destination: "previous" | "target";
243
+ result: "aborted" | "interrupted" | "migration-required";
244
+ reason?: string | undefined;
245
+ summary?: unknown;
246
+ } | undefined;
247
+ uncertified?: {
248
+ since: number;
249
+ session?: string | undefined;
250
+ operator?: string | undefined;
251
+ reason?: string | undefined;
252
+ } | undefined;
253
+ } | undefined;
254
+ outcome?: {
255
+ kind: "completed";
256
+ value: unknown;
257
+ } | {
258
+ kind: "failed";
259
+ error: {
260
+ code: string;
261
+ message: string;
262
+ family?: string | undefined;
263
+ details?: unknown;
264
+ };
265
+ } | {
266
+ kind: "cancelled";
267
+ } | undefined;
268
+ } | {
269
+ id: string;
270
+ state: "deleted";
271
+ outcome: {
272
+ kind: "completed";
273
+ value: unknown;
274
+ } | {
275
+ kind: "failed";
276
+ error: {
277
+ code: string;
278
+ message: string;
279
+ family?: string | undefined;
280
+ details?: unknown;
281
+ };
282
+ } | {
283
+ kind: "cancelled";
284
+ };
285
+ };
286
+ }, false, false, "authenticated", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.Execution.method.resume"> & {
287
+ readonly name: "resume";
288
+ readonly executable: true;
289
+ readonly execution: undefined;
290
+ }>;
291
+ declare const remove: import("./model.js").MethodSyscall<Readonly<{
292
+ origin: 'kernel.astrale.ai';
293
+ kind: 'class';
294
+ name: 'Execution';
295
+ }>, "delete", import("@astrale-os/kernel-dsl/v1").ResolvedMethod<Record<string, never>, {
296
+ readonly mode: 'value';
297
+ readonly value: Record<string, never>;
298
+ }, false, false, "authenticated", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.Execution.method.delete"> & {
299
+ readonly name: "delete";
300
+ readonly executable: true;
301
+ readonly execution: undefined;
302
+ }>;
303
+ export { remove as delete };
@@ -0,0 +1,11 @@
1
+ import { K } from '../../index.js';
2
+ import * as references from '../references/execution.js';
3
+ import { methodSyscall } from './model.js';
4
+ // Instance Methods: the handler receives the Execution receiver as `self`.
5
+ export const status = methodSyscall(references.status, K.classes.Execution.methods.status);
6
+ export const result = methodSyscall(references.result, K.classes.Execution.methods.result);
7
+ export const cancel = methodSyscall(references.cancel, K.classes.Execution.methods.cancel);
8
+ export const signal = methodSyscall(references.signal, K.classes.Execution.methods.signal);
9
+ export const resume = methodSyscall(references.resume, K.classes.Execution.methods.resume);
10
+ const remove = methodSyscall(references.delete, K.classes.Execution.methods.delete);
11
+ export { remove as delete };
@@ -2,7 +2,11 @@ import type { ClassRef } from '@astrale-os/kernel-dsl/v1';
2
2
  import { type MethodSyscall } from './model.js';
3
3
  declare const Admit: import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
4
4
  call: {
5
- target: string;
5
+ target: string | {
6
+ callable: string;
7
+ instance?: string | undefined;
8
+ fingerprint?: string | undefined;
9
+ };
6
10
  input: unknown;
7
11
  };
8
12
  credential?: string | undefined;
@@ -12,8 +16,10 @@ declare const Admit: import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
12
16
  callable: string;
13
17
  receiver?: string | undefined;
14
18
  };
15
- }, true, "sealed", "authenticated", never, "kernel.astrale.ai:class.Function.method.admit"> & {
19
+ }, true, false, "authenticated", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.Function.method.admit"> & {
16
20
  readonly name: "admit";
21
+ readonly executable: true;
22
+ readonly execution: undefined;
17
23
  };
18
24
  export declare const admit: MethodSyscall<ClassRef<'Function'> & {
19
25
  readonly origin: 'kernel.astrale.ai';
@@ -2,8 +2,10 @@ import { K } from '../../index.js';
2
2
  import { type FunctionSyscall } from './model.js';
3
3
  export declare const query: FunctionSyscall<'kernel.astrale.ai', 'query', typeof K.functions.query>;
4
4
  export declare const mutate: FunctionSyscall<'kernel.astrale.ai', 'mutate', typeof K.functions.mutate>;
5
- export declare const provision: FunctionSyscall<'kernel.astrale.ai', 'provision', typeof K.functions.provision>;
5
+ export declare const register: FunctionSyscall<'kernel.astrale.ai', 'register', typeof K.functions.register>;
6
6
  export declare const install: FunctionSyscall<'kernel.astrale.ai', 'install', typeof K.functions.install>;
7
7
  export declare const introspect: FunctionSyscall<'kernel.astrale.ai', 'introspect', typeof K.functions.introspect>;
8
8
  export declare const uninstall: FunctionSyscall<'kernel.astrale.ai', 'uninstall', typeof K.functions.uninstall>;
9
9
  export declare const journal: FunctionSyscall<'kernel.astrale.ai', 'journal', typeof K.functions.journal>;
10
+ export declare const upload: FunctionSyscall<'kernel.astrale.ai', 'upload', typeof K.functions.upload>;
11
+ export declare const download: FunctionSyscall<'kernel.astrale.ai', 'download', typeof K.functions.download>;
@@ -3,8 +3,10 @@ import * as references from '../references/functions.js';
3
3
  import { functionSyscall } from './model.js';
4
4
  export const query = functionSyscall(references.query, K.functions.query);
5
5
  export const mutate = functionSyscall(references.mutate, K.functions.mutate);
6
- export const provision = functionSyscall(references.provision, K.functions.provision);
6
+ export const register = functionSyscall(references.register, K.functions.register);
7
7
  export const install = functionSyscall(references.install, K.functions.install);
8
8
  export const introspect = functionSyscall(references.introspect, K.functions.introspect);
9
9
  export const uninstall = functionSyscall(references.uninstall, K.functions.uninstall);
10
10
  export const journal = functionSyscall(references.journal, K.functions.journal);
11
+ export const upload = functionSyscall(references.upload, K.functions.upload);
12
+ export const download = functionSyscall(references.download, K.functions.download);
@@ -3,14 +3,16 @@ export declare const delegate: import("./model.js").MethodSyscall<Readonly<{
3
3
  kind: 'class';
4
4
  name: 'Identity';
5
5
  }>, "delegate", import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
6
+ principal: string;
6
7
  audience: string;
7
8
  ttlSeconds: number;
8
- attenuation: unknown;
9
9
  }, {
10
10
  readonly mode: 'value';
11
11
  readonly value: string;
12
- }, false, "default", "authenticated", never, "kernel.astrale.ai:class.Identity.method.delegate"> & {
12
+ }, true, false, "authenticated", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.Identity.method.delegate"> & {
13
13
  readonly name: "delegate";
14
+ readonly executable: true;
15
+ readonly execution: undefined;
14
16
  }>;
15
17
  export declare const can: import("./model.js").MethodSyscall<Readonly<{
16
18
  origin: 'kernel.astrale.ai';
@@ -19,13 +21,24 @@ export declare const can: import("./model.js").MethodSyscall<Readonly<{
19
21
  }>, "can", import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
20
22
  policy: string;
21
23
  object: string;
24
+ } | {
25
+ checks: {
26
+ policy: string;
27
+ object: string;
28
+ }[];
22
29
  }, {
23
30
  readonly mode: 'value';
24
31
  readonly value: {
25
32
  allowed: boolean;
33
+ } | {
34
+ decisions: {
35
+ allowed: boolean;
36
+ }[];
26
37
  };
27
- }, true, "default", "authenticated", never, "kernel.astrale.ai:class.Identity.method.can"> & {
38
+ }, true, false, "authenticated", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.Identity.method.can"> & {
28
39
  readonly name: "can";
40
+ readonly executable: true;
41
+ readonly execution: undefined;
29
42
  }>;
30
43
  export declare const whoami: import("./model.js").MethodSyscall<Readonly<{
31
44
  origin: 'kernel.astrale.ai';
@@ -35,8 +48,8 @@ export declare const whoami: import("./model.js").MethodSyscall<Readonly<{
35
48
  readonly mode: 'value';
36
49
  readonly value: {
37
50
  id: string;
38
- issuer: string;
39
- subject: string;
51
+ iss: string;
52
+ sub: string;
40
53
  frozen: boolean;
41
54
  requiredClaims: ({
42
55
  claim: string;
@@ -51,22 +64,24 @@ export declare const whoami: import("./model.js").MethodSyscall<Readonly<{
51
64
  op: "exists";
52
65
  })[];
53
66
  };
54
- }, true, "default", "authenticated", never, "kernel.astrale.ai:class.Identity.method.whoami"> & {
67
+ }, true, false, "authenticated", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.Identity.method.whoami"> & {
55
68
  readonly name: "whoami";
69
+ readonly executable: true;
70
+ readonly execution: undefined;
56
71
  }>;
57
72
  export declare const whois: import("./model.js").MethodSyscall<Readonly<{
58
73
  origin: 'kernel.astrale.ai';
59
74
  kind: 'class';
60
75
  name: 'Identity';
61
76
  }>, "whois", import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
62
- issuer: string;
63
- subject: string;
77
+ iss: string;
78
+ sub: string;
64
79
  }, {
65
80
  readonly mode: 'value';
66
81
  readonly value: {
67
82
  id: string;
68
- issuer: string;
69
- subject: string;
83
+ iss: string;
84
+ sub: string;
70
85
  frozen: boolean;
71
86
  requiredClaims: ({
72
87
  claim: string;
@@ -81,8 +96,26 @@ export declare const whois: import("./model.js").MethodSyscall<Readonly<{
81
96
  op: "exists";
82
97
  })[];
83
98
  } | null;
84
- }, true, "default", "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.whois"> & {
99
+ }, true, false, "authorized", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.Identity.method.whois"> & {
85
100
  readonly name: "whois";
101
+ readonly executable: true;
102
+ readonly execution: undefined;
103
+ }>;
104
+ export declare const impersonate: import("./model.js").MethodSyscall<Readonly<{
105
+ origin: 'kernel.astrale.ai';
106
+ kind: 'class';
107
+ name: 'Identity';
108
+ }>, "impersonate", import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
109
+ audience?: string | undefined;
110
+ ttlSeconds: number;
111
+ identity: string;
112
+ }, {
113
+ readonly mode: 'value';
114
+ readonly value: string;
115
+ }, true, false, "authorized", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.Identity.method.impersonate"> & {
116
+ readonly name: "impersonate";
117
+ readonly executable: true;
118
+ readonly execution: undefined;
86
119
  }>;
87
120
  export declare const mint: import("./model.js").MethodSyscall<Readonly<{
88
121
  origin: 'kernel.astrale.ai';
@@ -91,10 +124,11 @@ export declare const mint: import("./model.js").MethodSyscall<Readonly<{
91
124
  }>, "mint", import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
92
125
  audience?: string | undefined;
93
126
  ttlSeconds: number;
94
- grant?: unknown;
95
127
  }, {
96
128
  readonly mode: 'value';
97
129
  readonly value: string;
98
- }, true, "default", "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.mint"> & {
130
+ }, true, false, "authenticated", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.Identity.method.mint"> & {
99
131
  readonly name: "mint";
132
+ readonly executable: true;
133
+ readonly execution: undefined;
100
134
  }>;
@@ -1,8 +1,9 @@
1
1
  import { K } from '../../index.js';
2
2
  import * as references from '../references/identity.js';
3
3
  import { methodSyscall } from './model.js';
4
- export const delegate = methodSyscall(references.delegate, K.classes.Identity.methods.delegate);
4
+ export const delegate = methodSyscall(references.delegate, K.classes.Identity.static.methods.delegate);
5
5
  export const can = methodSyscall(references.can, K.classes.Identity.static.methods.can);
6
6
  export const whoami = methodSyscall(references.whoami, K.classes.Identity.static.methods.whoami);
7
7
  export const whois = methodSyscall(references.whois, K.classes.Identity.static.methods.whois);
8
+ export const impersonate = methodSyscall(references.impersonate, K.classes.Identity.static.methods.impersonate);
8
9
  export const mint = methodSyscall(references.mint, K.classes.Identity.static.methods.mint);
@@ -1,5 +1,6 @@
1
1
  export type { FunctionSyscall, MethodSyscall, Syscall, SyscallRef } from './model.js';
2
- export { install, introspect, journal, mutate, provision, query, uninstall } from './functions.js';
2
+ export { download, install, introspect, journal, mutate, register, query, uninstall, upload, } from './functions.js';
3
+ export * as execution from './execution.js';
3
4
  export * as identity from './identity.js';
4
5
  export * as function from './function.js';
5
6
  export * as view from './view.js';
@@ -1,4 +1,5 @@
1
- export { install, introspect, journal, mutate, provision, query, uninstall } from './functions.js';
1
+ export { download, install, introspect, journal, mutate, register, query, uninstall, upload, } from './functions.js';
2
+ export * as execution from './execution.js';
2
3
  export * as identity from './identity.js';
3
4
  export * as function from './function.js';
4
5
  export * as view from './view.js';
@@ -1,13 +1,17 @@
1
1
  import type { Revision, ViewDefinition } from '@astrale-os/kernel-dsl/v1';
2
2
  import type { Key as KeyType } from '@astrale-os/kernel-dsl/v1/addressing';
3
3
  import type { IssuerId } from '../../../../../auth/index.js';
4
+ import { type ViewHostRequirements } from '../../contracts/view-host-requirements.js';
5
+ export { acceptViewHostRequirements, type ViewHostRequirements, } from '../../contracts/view-host-requirements.js';
4
6
  export interface ResolvedView {
5
7
  readonly key: KeyType.View;
6
8
  readonly declaration: ViewDeclaration;
7
9
  readonly href: string;
8
10
  readonly handshake: 'shell' | 'none';
11
+ readonly host?: ViewHostRequirements;
9
12
  readonly issuer: IssuerId;
10
- readonly etag: `sha256:${string}`;
13
+ /** Digest of the exact DomainRelease that owns this View. */
14
+ readonly release: `sha256:${string}`;
11
15
  readonly revision: Revision;
12
16
  }
13
17
  type ViewDeclaration = Omit<ViewDefinition, 'ref'>;
@@ -17,4 +21,3 @@ export interface ViewResolution {
17
21
  }
18
22
  /** Admit one detached, deeply immutable result of the Kernel View.resolve syscall. */
19
23
  export declare function acceptViewResolution(input: unknown): ViewResolution;
20
- export {};
@@ -1,7 +1,9 @@
1
- import { Key, patterns } from '@astrale-os/kernel-dsl/v1/addressing';
1
+ import { Key } from '@astrale-os/kernel-dsl/v1/addressing';
2
2
  import * as portable from '@astrale-os/kernel-dsl/value';
3
3
  import { issuer } from '../../../../../auth/index.js';
4
4
  import { viewResolveOutput } from '../../contracts/index.js';
5
+ import { acceptViewHostRequirements, } from '../../contracts/view-host-requirements.js';
6
+ export { acceptViewHostRequirements, } from '../../contracts/view-host-requirements.js';
5
7
  /** Admit one detached, deeply immutable result of the Kernel View.resolve syscall. */
6
8
  export function acceptViewResolution(input) {
7
9
  const candidate = portable.accept(input);
@@ -23,13 +25,15 @@ export function acceptViewResolution(input) {
23
25
  if (!issuer.is(view.issuer))
24
26
  invalid(`Resolved View ${index} issuer is not canonical.`);
25
27
  const declaration = acceptDeclaration(view.declaration, index);
28
+ const host = acceptViewHostRequirements(view.host, view.handshake);
26
29
  return Object.freeze({
27
30
  key,
28
31
  declaration,
29
32
  href: view.href,
30
33
  handshake: view.handshake,
34
+ ...(host === undefined ? {} : { host }),
31
35
  issuer: view.issuer,
32
- etag: digest(view.etag, `Resolved View ${index} ETag`),
36
+ release: digest(view.release, `Resolved View ${index} release`),
33
37
  revision: digest(view.revision, `Resolved View ${index} revision`),
34
38
  });
35
39
  });
@@ -43,51 +47,17 @@ export function acceptViewResolution(input) {
43
47
  views: Object.freeze(views),
44
48
  });
45
49
  }
46
- function acceptDeclaration(input, viewIndex) {
47
- if (input.target.kind === 'domain') {
48
- return Object.freeze({
49
- ...(input.description === undefined ? {} : { description: input.description }),
50
- target: Object.freeze({ kind: 'domain' }),
51
- });
52
- }
53
- const definitions = input.target.definitions.map((definition, definitionIndex) => {
54
- if (!patterns.origin.test(definition.origin) ||
55
- definition.kind !== 'class' ||
56
- !patterns.memberName.test(definition.name)) {
57
- invalid(`Resolved View ${viewIndex} target definition ${definitionIndex} is invalid.`);
58
- }
59
- return Object.freeze({
60
- origin: definition.origin,
61
- kind: definition.kind,
62
- name: definition.name,
63
- });
64
- });
65
- for (let index = 1; index < definitions.length; index++) {
66
- if (compareDefinitionRefs(definitions[index - 1], definitions[index]) >= 0) {
67
- invalid(`Resolved View ${viewIndex} target definitions are not in strict canonical order.`);
68
- }
69
- }
50
+ function acceptDeclaration(input, _viewIndex) {
70
51
  return Object.freeze({
71
52
  ...(input.description === undefined ? {} : { description: input.description }),
72
- target: Object.freeze({
73
- kind: 'definition',
74
- definitions: Object.freeze(definitions),
75
- }),
53
+ target: Object.freeze({ kind: 'domain' }),
76
54
  });
77
55
  }
78
- function compareDefinitionRefs(left, right) {
79
- return (compare(left.origin, right.origin) ||
80
- compare(left.kind, right.kind) ||
81
- compare(left.name, right.name));
82
- }
83
56
  function digest(input, label) {
84
57
  if (!/^sha256:[0-9a-f]{64}$/u.test(input))
85
58
  invalid(`${label} is invalid.`);
86
59
  return input;
87
60
  }
88
- function compare(left, right) {
89
- return left < right ? -1 : left > right ? 1 : 0;
90
- }
91
61
  function invalid(message) {
92
62
  throw new TypeError(message);
93
63
  }
@@ -15,24 +15,26 @@ export declare const resolve: import("./model.js").MethodSyscall<Readonly<{
15
15
  description?: string | undefined;
16
16
  target: {
17
17
  kind: "domain";
18
- } | {
19
- kind: "definition";
20
- definitions: {
21
- origin: string;
22
- kind: "class";
23
- name: string;
24
- }[];
25
18
  };
26
19
  };
27
20
  href: string;
28
21
  handshake: "none" | "shell";
22
+ host?: {
23
+ navigation: {
24
+ external: {
25
+ origins: string[];
26
+ };
27
+ };
28
+ } | undefined;
29
29
  issuer: string;
30
- etag: string;
30
+ release: string;
31
31
  revision: string;
32
32
  }[];
33
33
  };
34
- }, true, "sealed", "authorized", import("@astrale-os/kernel-dsl/v1").PolicyCheckExpression<import("@astrale-os/kernel-dsl/v1").PolicyRef, import("@astrale-os/kernel-dsl/v1/language").PolicyCheckObject>, "kernel.astrale.ai:class.View.method.resolve"> & {
34
+ }, true, false, "authorized", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.View.method.resolve"> & {
35
35
  readonly name: "resolve";
36
+ readonly executable: true;
37
+ readonly execution: undefined;
36
38
  }>;
37
39
  export type { ResolvedView, ViewResolution as Resolution };
38
40
  export declare const acceptResolution: typeof acceptViewResolution;