@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
@@ -1,3 +0,0 @@
1
- import type { IdentityExpr } from '../language/index.js';
2
- /** Raise every positive-position exclusion into one Grant-wide veto. */
3
- export declare function raiseDenials(expr: IdentityExpr): IdentityExpr;
@@ -1,59 +0,0 @@
1
- /** Raise every positive-position exclusion into one Grant-wide veto. */
2
- export function raiseDenials(expr) {
3
- const denials = [...collectDenials(expr, new WeakMap())];
4
- if (denials.length === 0)
5
- return expr;
6
- return Object.freeze({
7
- kind: 'exclude',
8
- base: stripExcludes(expr, new WeakMap()),
9
- excluded: Object.freeze(denials),
10
- });
11
- }
12
- function stripExcludes(expr, memo) {
13
- const cached = memo.get(expr);
14
- if (cached !== undefined)
15
- return cached;
16
- let stripped;
17
- switch (expr.kind) {
18
- case 'identity':
19
- stripped = expr;
20
- break;
21
- case 'union':
22
- case 'intersect':
23
- stripped = Object.freeze({
24
- kind: expr.kind,
25
- operands: Object.freeze(expr.operands.map((operand) => stripExcludes(operand, memo))),
26
- });
27
- break;
28
- case 'exclude':
29
- stripped = stripExcludes(expr.base, memo);
30
- break;
31
- }
32
- memo.set(expr, stripped);
33
- return stripped;
34
- }
35
- function collectDenials(expr, memo) {
36
- const cached = memo.get(expr);
37
- if (cached !== undefined)
38
- return cached;
39
- const denials = new Set();
40
- switch (expr.kind) {
41
- case 'identity':
42
- break;
43
- case 'union':
44
- case 'intersect':
45
- for (const operand of expr.operands) {
46
- for (const denial of collectDenials(operand, memo))
47
- denials.add(denial);
48
- }
49
- break;
50
- case 'exclude':
51
- for (const excluded of expr.excluded)
52
- denials.add(excluded);
53
- for (const denial of collectDenials(expr.base, memo))
54
- denials.add(denial);
55
- break;
56
- }
57
- memo.set(expr, denials);
58
- return denials;
59
- }
@@ -1,9 +0,0 @@
1
- import type { ProvisionRequest } from '../index.js';
2
- declare const PROVISION_FINGERPRINT: unique symbol;
3
- /** Digest of the semantic request. Self-proof bytes are deliberately excluded. */
4
- export type ProvisionFingerprint = `sha256:${string}` & {
5
- readonly [PROVISION_FINGERPRINT]: true;
6
- };
7
- /** Compute a deterministic semantic request digest without retaining bearer proof bytes. */
8
- export declare function fingerprint(request: ProvisionRequest): Promise<ProvisionFingerprint>;
9
- export {};
@@ -1,33 +0,0 @@
1
- import * as portable from '@astrale-os/kernel-dsl/value';
2
- import { MutationAST } from '../../../graph/mutate/index.js';
3
- /** Compute a deterministic semantic request digest without retaining bearer proof bytes. */
4
- export async function fingerprint(request) {
5
- const identities = Object.fromEntries(Object.entries(request.identities)
6
- .sort(([left], [right]) => compare(left, right))
7
- .map(([binding, input]) => [
8
- binding,
9
- input.credentials !== undefined
10
- ? {
11
- credentials: { publicKey: input.credentials.publicKey },
12
- requiredClaims: input.requiredClaims ?? [],
13
- }
14
- : {
15
- issuer: input.issuer,
16
- subject: input.subject,
17
- requiredClaims: input.requiredClaims ?? [],
18
- },
19
- ]));
20
- const basis = portable.json.encode(portable.accept({
21
- idempotencyKey: request.idempotencyKey,
22
- mutation: MutationAST.encode(request.mutation),
23
- identities,
24
- }));
25
- const digest = await crypto.subtle.digest('SHA-256', Uint8Array.from(basis).buffer);
26
- return `sha256:${hex(new Uint8Array(digest))}`;
27
- }
28
- function compare(left, right) {
29
- return left < right ? -1 : left > right ? 1 : 0;
30
- }
31
- function hex(input) {
32
- return [...input].map((value) => value.toString(16).padStart(2, '0')).join('');
33
- }
@@ -1,2 +0,0 @@
1
- export { fingerprint } from './fingerprint.js';
2
- export type { ProvisionFingerprint } from './fingerprint.js';
@@ -1,5 +0,0 @@
1
- export { fingerprint } from './fingerprint/index.js';
2
- export type { ProvisionFingerprint } from './fingerprint/index.js';
3
- export { accept, isSelfIssuer, selfIssuer } from './request/index.js';
4
- export type { AssertedIdentityProvision, IdentityProvisionInput, ProvisionRequest, RequiredClaims, SelfIdentityProvision, } from './request/index.js';
5
- export type { ProvisionedIdentity, ProvisionResult } from './result/index.js';
@@ -1,3 +0,0 @@
1
- import type { ProvisionRequest } from './request.js';
2
- /** Admit unknown input into the exact immutable Provision request language. */
3
- export declare function accept(input: unknown): ProvisionRequest;
@@ -1,125 +0,0 @@
1
- import * as portable from '@astrale-os/kernel-dsl/value';
2
- import { isLocalBinding } from '../../../graph/graph/index.js';
3
- import { MutationAST } from '../../../graph/mutate/index.js';
4
- import { admitConstraint, MAX_REQUIRED_CLAIMS } from '../../claims/admission/index.js';
5
- import { AuthValueError } from '../../error.js';
6
- import { accept as acceptIssuer } from '../../issuer/index.js';
7
- import { acceptPublic } from '../../jwk/index.js';
8
- const PROOF_BYTES_LIMIT = 64 * 1024;
9
- const textEncoder = new TextEncoder();
10
- /** Admit unknown input into the exact immutable Provision request language. */
11
- export function accept(input) {
12
- if (!isRecord(input))
13
- invalid('', 'Expected a Provision request object');
14
- exact(input, ['idempotencyKey', 'identities', 'mutation'], '');
15
- if (typeof input.idempotencyKey !== 'string' || input.idempotencyKey.length === 0) {
16
- invalid('/idempotencyKey', 'Expected a non-empty idempotency key');
17
- }
18
- const mutation = MutationAST.decode(input.mutation);
19
- if (!isRecord(input.identities))
20
- invalid('/identities', 'Expected an Identity binding map');
21
- const identities = {};
22
- for (const binding of Object.keys(input.identities).sort(compare)) {
23
- if (!isLocalBinding(binding))
24
- invalid(`/identities/${pointer(binding)}`, 'Invalid LocalBinding');
25
- identities[binding] = identityInput(input.identities[binding], `/identities/${pointer(binding)}`);
26
- }
27
- return Object.freeze({
28
- idempotencyKey: input.idempotencyKey,
29
- mutation,
30
- identities: Object.freeze(identities),
31
- });
32
- }
33
- function identityInput(input, path) {
34
- if (!isRecord(input))
35
- invalid(path, 'Expected an Identity provision object');
36
- const requiredClaims = constraints(input.requiredClaims, `${path}/requiredClaims`);
37
- if (Object.hasOwn(input, 'credentials')) {
38
- exact(input, input.requiredClaims === undefined ? ['credentials'] : ['credentials', 'requiredClaims'], path);
39
- if (!isRecord(input.credentials))
40
- invalid(`${path}/credentials`, 'Expected credentials');
41
- exact(input.credentials, ['proof', 'publicKey'], `${path}/credentials`);
42
- return Object.freeze({
43
- credentials: Object.freeze({
44
- publicKey: publicJwk(input.credentials.publicKey, `${path}/credentials/publicKey`),
45
- proof: credentialProof(input.credentials.proof, `${path}/credentials/proof`),
46
- }),
47
- ...(requiredClaims.length === 0 ? {} : { requiredClaims }),
48
- });
49
- }
50
- exact(input, input.requiredClaims === undefined
51
- ? ['issuer', 'subject']
52
- : ['issuer', 'requiredClaims', 'subject'], path);
53
- if (typeof input.issuer !== 'string')
54
- invalid(`${path}/issuer`, 'Expected an issuer');
55
- let issuer;
56
- try {
57
- issuer = acceptIssuer(input.issuer);
58
- }
59
- catch (cause) {
60
- invalid(`${path}/issuer`, 'Expected a canonical issuer', cause);
61
- }
62
- if (typeof input.subject !== 'string' || input.subject.length === 0)
63
- invalid(`${path}/subject`, 'Expected a non-empty subject');
64
- return Object.freeze({
65
- issuer,
66
- subject: input.subject,
67
- ...(requiredClaims.length === 0 ? {} : { requiredClaims }),
68
- });
69
- }
70
- function credentialProof(input, path) {
71
- if (typeof input === 'string') {
72
- const bytes = textEncoder.encode(input).byteLength;
73
- if (bytes === 0 || bytes > PROOF_BYTES_LIMIT)
74
- invalid(path, `Credential proof must contain 1-${PROOF_BYTES_LIMIT} bytes`);
75
- return input;
76
- }
77
- if (!(input instanceof Uint8Array) ||
78
- input.byteLength === 0 ||
79
- input.byteLength > PROOF_BYTES_LIMIT) {
80
- invalid(path, `Credential proof must contain 1-${PROOF_BYTES_LIMIT} bytes`);
81
- }
82
- return input.slice();
83
- }
84
- function publicJwk(input, path) {
85
- try {
86
- return acceptPublic(input);
87
- }
88
- catch (cause) {
89
- invalid(path, 'Expected a thumbprintable public JWK', cause);
90
- }
91
- }
92
- function constraints(input, path) {
93
- if (input === undefined)
94
- return Object.freeze([]);
95
- if (!Array.isArray(input) || input.length > MAX_REQUIRED_CLAIMS)
96
- invalid(path, `Expected at most ${MAX_REQUIRED_CLAIMS} required-claim constraints`);
97
- return Object.freeze(input.map((item, index) => {
98
- let admitted;
99
- try {
100
- admitted = portable.accept(item);
101
- }
102
- catch (cause) {
103
- invalid(`${path}/${index}`, 'Expected a portable claim constraint', cause);
104
- }
105
- return admitConstraint(admitted, `${path}/${index}`, invalid);
106
- }));
107
- }
108
- function isRecord(input) {
109
- return input !== null && typeof input === 'object' && !Array.isArray(input);
110
- }
111
- function exact(input, expected, path) {
112
- const actual = Object.keys(input).sort(compare);
113
- const wanted = [...expected].sort(compare);
114
- if (actual.length !== wanted.length || actual.some((key, index) => key !== wanted[index]))
115
- invalid(path, `Expected exactly ${expected.join(', ')}`);
116
- }
117
- function pointer(input) {
118
- return input.replaceAll('~', '~0').replaceAll('/', '~1');
119
- }
120
- function compare(left, right) {
121
- return left < right ? -1 : left > right ? 1 : 0;
122
- }
123
- function invalid(path, message, cause) {
124
- throw new AuthValueError('AUTH_PROVISION_REQUEST_INVALID', message, path, cause === undefined ? undefined : { cause });
125
- }
@@ -1,3 +0,0 @@
1
- export { accept } from './admission.js';
2
- export { isSelfIssuer, selfIssuer } from './self-issuer.js';
3
- export type { AssertedIdentityProvision, IdentityProvisionInput, ProvisionRequest, RequiredClaims, SelfIdentityProvision, } from './request.js';
@@ -1,29 +0,0 @@
1
- import type { LocalBinding, MutationAST } from '../../../graph/mutate/index.js';
2
- import type { ClaimConstraint } from '../../claims/index.js';
3
- import type { CredentialInput } from '../../credential/input/index.js';
4
- import type { Subject } from '../../identity/index.js';
5
- import type { IssuerId } from '../../issuer/index.js';
6
- import type { JsonWebKey } from '../../jwk/index.js';
7
- export type RequiredClaims = readonly ClaimConstraint[];
8
- export interface AssertedIdentityProvision {
9
- readonly issuer: IssuerId;
10
- readonly subject: Subject;
11
- readonly requiredClaims?: RequiredClaims;
12
- readonly credentials?: never;
13
- }
14
- export interface SelfIdentityProvision {
15
- readonly credentials: {
16
- readonly publicKey: JsonWebKey;
17
- readonly proof: CredentialInput;
18
- };
19
- readonly requiredClaims?: RequiredClaims;
20
- readonly issuer?: never;
21
- readonly subject?: never;
22
- }
23
- export type IdentityProvisionInput = AssertedIdentityProvision | SelfIdentityProvision;
24
- /** One conditional graph transition whose Identity births are explicitly designated by binding. */
25
- export interface ProvisionRequest {
26
- readonly idempotencyKey: string;
27
- readonly mutation: MutationAST;
28
- readonly identities: Readonly<Record<LocalBinding, IdentityProvisionInput>>;
29
- }
@@ -1 +0,0 @@
1
- export type { ProvisionedIdentity, ProvisionResult } from './result.js';
@@ -1,12 +0,0 @@
1
- import type { LocalBinding } from '../../../graph/mutate/index.js';
2
- import type { NodeId } from '../../../graph/node/index.js';
3
- import type { Subject } from '../../identity/index.js';
4
- import type { IssuerId } from '../../issuer/index.js';
5
- export interface ProvisionedIdentity {
6
- readonly issuer: IssuerId;
7
- readonly subject: Subject;
8
- }
9
- export interface ProvisionResult {
10
- readonly createdNodes: Readonly<Record<LocalBinding, NodeId>>;
11
- readonly identities: Readonly<Record<LocalBinding, ProvisionedIdentity>>;
12
- }
@@ -1,12 +0,0 @@
1
- import type { NodePath } from '../../path/index.js';
2
- export declare class GraphPathAmbiguousError extends Error {
3
- readonly path: NodePath;
4
- readonly matches: number;
5
- readonly code: 'GRAPH_PATH_AMBIGUOUS';
6
- constructor(path: NodePath, matches: number);
7
- }
8
- export declare class GraphPathWalkerRequiredError extends Error {
9
- readonly path: NodePath;
10
- readonly code: 'GRAPH_PATH_WALKER_REQUIRED';
11
- constructor(path: NodePath);
12
- }
@@ -1,20 +0,0 @@
1
- export class GraphPathAmbiguousError extends Error {
2
- path;
3
- matches;
4
- code = 'GRAPH_PATH_AMBIGUOUS';
5
- constructor(path, matches) {
6
- super(`Graph Path ${JSON.stringify(path)} matched ${matches} distinct Nodes.`);
7
- this.path = path;
8
- this.matches = matches;
9
- this.name = 'GraphPathAmbiguousError';
10
- }
11
- }
12
- export class GraphPathWalkerRequiredError extends Error {
13
- path;
14
- code = 'GRAPH_PATH_WALKER_REQUIRED';
15
- constructor(path) {
16
- super(`Graph Path ${JSON.stringify(path)} requires a walker.`);
17
- this.path = path;
18
- this.name = 'GraphPathWalkerRequiredError';
19
- }
20
- }
@@ -1,2 +0,0 @@
1
- export type { GraphPathContext, GraphPathWalker } from './model.js';
2
- export { GraphPathAmbiguousError, GraphPathWalkerRequiredError } from './error.js';
@@ -1 +0,0 @@
1
- export { GraphPathAmbiguousError, GraphPathWalkerRequiredError } from './error.js';
@@ -1,15 +0,0 @@
1
- import type { ClassKey } from '@astrale-os/kernel-dsl/v1/addressing';
2
- import type { EdgeOrientation } from '@astrale-os/kernel-dsl/v1/language';
3
- import type { Node } from '../../node/index.js';
4
- import type { Path } from '../../path/index.js';
5
- import type { GraphEdges, GraphNodes } from '../indexes/index.js';
6
- /** Semantic read-only graph capabilities available to a Path walker. */
7
- export interface GraphPathContext {
8
- readonly nodes: GraphNodes;
9
- readonly edges: GraphEdges;
10
- orientation(classKey: ClassKey): EdgeOrientation | undefined;
11
- }
12
- /** Pure injected semantics for walking one Path against an admitted Graph. */
13
- export interface GraphPathWalker {
14
- walk(path: Path, context: GraphPathContext): Node | undefined;
15
- }
@@ -1,296 +0,0 @@
1
- import { type builder } from '@astrale-os/kernel-dsl/v1';
2
- export declare const ViewFor: builder.DirectedEdgeClass<{
3
- readonly abstract: false;
4
- readonly source: {
5
- readonly as: "view";
6
- readonly accepts: readonly [builder.NodeClass<{
7
- readonly abstract: false;
8
- readonly description: "The installed projection of a declarative browser surface; it is not a principal.";
9
- readonly extends: readonly [builder.NodeClass<{
10
- readonly abstract: true;
11
- readonly extends: readonly [builder.NodeClass<{
12
- readonly abstract: true;
13
- readonly description: "The abstract universal kernel Node Class extended by every Kernel Node Class.";
14
- }>];
15
- readonly description: "Optional human-facing description metadata with no identity or authority semantics.";
16
- readonly properties: {
17
- description: builder.Property<Readonly<{
18
- readonly type: 'string';
19
- readonly minLength: 1;
20
- readonly maxLength: 1000;
21
- }>, {
22
- readonly required: false;
23
- }>;
24
- };
25
- }>];
26
- readonly methods: Readonly<{
27
- resolve: builder.Method<{
28
- readonly description: "Resolve the installed View declarations applicable to one authorized graph target.";
29
- readonly auth: "authorized";
30
- readonly input: import("zod").ZodObject<{
31
- target: import("zod").ZodString;
32
- }, import("zod/v4/core").$strict>;
33
- readonly output: import("zod").ZodObject<{
34
- snapshot: import("zod").ZodString;
35
- views: import("zod").ZodArray<import("zod").ZodObject<{
36
- key: import("zod").ZodString;
37
- declaration: import("zod").ZodObject<{
38
- description: import("zod").ZodOptional<import("zod").ZodString>;
39
- target: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
40
- kind: import("zod").ZodLiteral<"domain">;
41
- }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
42
- kind: import("zod").ZodLiteral<"definition">;
43
- definitions: import("zod").ZodArray<import("zod").ZodObject<{
44
- origin: import("zod").ZodString;
45
- kind: import("zod").ZodLiteral<"class">;
46
- name: import("zod").ZodString;
47
- }, import("zod/v4/core").$strict>>;
48
- }, import("zod/v4/core").$strict>], "kind">;
49
- }, import("zod/v4/core").$strict>;
50
- href: import("zod").ZodString;
51
- handshake: import("zod").ZodEnum<{
52
- none: "none";
53
- shell: "shell";
54
- }>;
55
- issuer: import("zod").ZodString;
56
- etag: import("zod").ZodString;
57
- revision: import("zod").ZodString;
58
- }, import("zod/v4/core").$strict>>;
59
- }, import("zod/v4/core").$strict>;
60
- readonly static: true;
61
- readonly inheritance: "sealed";
62
- }>;
63
- }>;
64
- }>];
65
- readonly outgoing: "1..*";
66
- };
67
- readonly target: {
68
- readonly as: "target";
69
- readonly accepts: readonly [builder.NodeClass<{
70
- readonly abstract: false;
71
- readonly description: "The installed graph projection of a Node Class or Edge Class declaration.";
72
- readonly extends: readonly [builder.NodeClass<{
73
- readonly abstract: true;
74
- readonly extends: readonly [builder.NodeClass<{
75
- readonly abstract: true;
76
- readonly description: "The abstract universal kernel Node Class extended by every Kernel Node Class.";
77
- }>];
78
- readonly description: "Optional human-facing description metadata with no identity or authority semantics.";
79
- readonly properties: {
80
- description: builder.Property<Readonly<{
81
- readonly type: 'string';
82
- readonly minLength: 1;
83
- readonly maxLength: 1000;
84
- }>, {
85
- readonly required: false;
86
- }>;
87
- };
88
- }>, builder.NodeClass<{
89
- readonly abstract: true;
90
- readonly extends: readonly [builder.NodeClass<{
91
- readonly abstract: true;
92
- readonly description: "The abstract universal kernel Node Class extended by every Kernel Node Class.";
93
- }>];
94
- readonly description: "Optional bounded presentation icon metadata.";
95
- readonly properties: {
96
- icon: builder.Property<Readonly<{
97
- readonly type: 'string';
98
- readonly minLength: 1;
99
- readonly maxLength: 8000;
100
- }>, {
101
- readonly required: false;
102
- }>;
103
- };
104
- }>];
105
- readonly properties: {
106
- readonly kind: {
107
- readonly enum: readonly ["node", "edge"];
108
- };
109
- readonly abstract: {
110
- readonly type: "boolean";
111
- };
112
- };
113
- }>, builder.NodeClass<{
114
- readonly abstract: false;
115
- readonly description: "A stable Domain principal and the active projection of one canonical DomainSchema revision.";
116
- readonly extends: readonly [builder.NodeClass<{
117
- readonly abstract: true;
118
- readonly description: "A principal that can be authenticated and can originate persistent authority facts.";
119
- readonly extends: readonly [builder.NodeClass<{
120
- readonly abstract: true;
121
- readonly description: "The abstract universal kernel Node Class extended by every Kernel Node Class.";
122
- }>];
123
- readonly properties: {
124
- readonly frozen: builder.Property<{
125
- readonly type: "boolean";
126
- }, {
127
- readonly required: false;
128
- readonly visibility: "private";
129
- }>;
130
- readonly iss: {
131
- readonly type: "string";
132
- readonly minLength: 1;
133
- };
134
- readonly requiredClaims: builder.Property<import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
135
- claim: import("zod").ZodString;
136
- op: import("zod").ZodLiteral<"contains">;
137
- value: import("zod").ZodNonOptional<import("zod").ZodUnknown>;
138
- }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
139
- claim: import("zod").ZodString;
140
- op: import("zod").ZodLiteral<"eq">;
141
- value: import("zod").ZodNonOptional<import("zod").ZodUnknown>;
142
- }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
143
- claim: import("zod").ZodString;
144
- op: import("zod").ZodLiteral<"exists">;
145
- }, import("zod/v4/core").$strict>], "op">>, {
146
- readonly required: false;
147
- readonly visibility: "private";
148
- }>;
149
- readonly sub: {
150
- readonly type: "string";
151
- readonly minLength: 1;
152
- };
153
- };
154
- readonly methods: Readonly<{
155
- delegate: builder.Method<{
156
- readonly description: "Issue one strictly attenuated credential from this authenticated Identity.";
157
- readonly auth: "authenticated";
158
- readonly input: import("zod").ZodObject<{
159
- audience: import("zod").ZodString;
160
- ttlSeconds: import("zod").ZodNumber;
161
- attenuation: import("zod").ZodUnknown;
162
- }, import("zod/v4/core").$strict>;
163
- readonly output: import("zod").ZodString;
164
- readonly inheritance: "default";
165
- }>;
166
- can: builder.Method<{
167
- readonly description: "Determine whether the current authenticated Identity satisfies one installed Policy for one object.";
168
- readonly auth: "authenticated";
169
- readonly input: import("zod").ZodObject<{
170
- policy: import("zod").ZodString;
171
- object: import("zod").ZodString;
172
- }, import("zod/v4/core").$strict>;
173
- readonly output: import("zod").ZodObject<{
174
- allowed: import("zod").ZodBoolean;
175
- }, import("zod/v4/core").$strict>;
176
- readonly static: true;
177
- readonly inheritance: "default";
178
- }>;
179
- whoami: builder.Method<{
180
- readonly description: "Return the Identity authenticated for this invocation.";
181
- readonly auth: "authenticated";
182
- readonly input: import("zod").ZodObject<{}, import("zod/v4/core").$strict>;
183
- readonly output: import("zod").ZodObject<{
184
- id: import("zod").ZodString;
185
- issuer: import("zod").ZodString;
186
- subject: import("zod").ZodString;
187
- frozen: import("zod").ZodBoolean;
188
- requiredClaims: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
189
- claim: import("zod").ZodString;
190
- op: import("zod").ZodLiteral<"contains">;
191
- value: import("zod").ZodNonOptional<import("zod").ZodUnknown>;
192
- }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
193
- claim: import("zod").ZodString;
194
- op: import("zod").ZodLiteral<"eq">;
195
- value: import("zod").ZodNonOptional<import("zod").ZodUnknown>;
196
- }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
197
- claim: import("zod").ZodString;
198
- op: import("zod").ZodLiteral<"exists">;
199
- }, import("zod/v4/core").$strict>], "op">>;
200
- }, import("zod/v4/core").$strict>;
201
- readonly static: true;
202
- readonly inheritance: "default";
203
- }>;
204
- whois: builder.Method<{
205
- readonly description: "Resolve one issuer-and-subject Identity.";
206
- readonly auth: "authorized";
207
- readonly input: import("zod").ZodObject<{
208
- issuer: import("zod").ZodString;
209
- subject: import("zod").ZodString;
210
- }, import("zod/v4/core").$strict>;
211
- readonly output: import("zod").ZodNullable<import("zod").ZodObject<{
212
- id: import("zod").ZodString;
213
- issuer: import("zod").ZodString;
214
- subject: import("zod").ZodString;
215
- frozen: import("zod").ZodBoolean;
216
- requiredClaims: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
217
- claim: import("zod").ZodString;
218
- op: import("zod").ZodLiteral<"contains">;
219
- value: import("zod").ZodNonOptional<import("zod").ZodUnknown>;
220
- }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
221
- claim: import("zod").ZodString;
222
- op: import("zod").ZodLiteral<"eq">;
223
- value: import("zod").ZodNonOptional<import("zod").ZodUnknown>;
224
- }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
225
- claim: import("zod").ZodString;
226
- op: import("zod").ZodLiteral<"exists">;
227
- }, import("zod/v4/core").$strict>], "op">>;
228
- }, import("zod/v4/core").$strict>>;
229
- readonly static: true;
230
- readonly inheritance: "default";
231
- }>;
232
- mint: builder.Method<{
233
- readonly description: "Resolve and sign one authorized Grant credential.";
234
- readonly auth: "authorized";
235
- readonly input: import("zod").ZodObject<{
236
- audience: import("zod").ZodOptional<import("zod").ZodString>;
237
- ttlSeconds: import("zod").ZodNumber;
238
- grant: import("zod").ZodOptional<import("zod").ZodUnknown>;
239
- }, import("zod/v4/core").$strict>;
240
- readonly output: import("zod").ZodString;
241
- readonly static: true;
242
- readonly inheritance: "default";
243
- }>;
244
- }>;
245
- }>];
246
- readonly properties: {
247
- readonly origin: {
248
- readonly type: "string";
249
- readonly pattern: "[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)+";
250
- };
251
- readonly dependencyContext: builder.Property<{
252
- readonly type: "array";
253
- readonly items: {
254
- readonly type: "object";
255
- };
256
- }, {
257
- readonly visibility: "private";
258
- readonly required: false;
259
- }>;
260
- readonly schema: builder.Property<{
261
- readonly type: "object";
262
- }, {
263
- readonly visibility: "private";
264
- }>;
265
- readonly schemaRevision: builder.Property<{
266
- readonly type: "string";
267
- readonly pattern: "sha256:[0-9a-f]{64}";
268
- }, {
269
- readonly visibility: "private";
270
- }>;
271
- };
272
- }>];
273
- readonly incoming: "0..*";
274
- };
275
- readonly description: "A View declaration targets one Domain or a non-empty set of Classes.";
276
- readonly extends: readonly [builder.DirectedEdgeClass<{
277
- readonly abstract: true;
278
- readonly source: {
279
- readonly as: "source";
280
- readonly accepts: readonly [builder.NodeClass<{
281
- readonly abstract: true;
282
- readonly description: "The abstract universal kernel Node Class extended by every Kernel Node Class.";
283
- }>];
284
- readonly outgoing: "0..*";
285
- };
286
- readonly target: {
287
- readonly as: "target";
288
- readonly accepts: readonly [builder.NodeClass<{
289
- readonly abstract: true;
290
- readonly description: "The abstract universal kernel Node Class extended by every Kernel Node Class.";
291
- }>];
292
- readonly incoming: "0..*";
293
- };
294
- readonly description: "Explicit kernel marker for Edge definitions; it carries no structural fields.";
295
- }>];
296
- }>;