@astrale-domains/shell 0.1.0-beta.8 → 0.1.1

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 (244) hide show
  1. package/README.md +264 -64
  2. package/dist/domain.d.ts +225 -0
  3. package/dist/domain.js +96 -0
  4. package/dist/functions/application/index.js +1 -0
  5. package/dist/functions/application/list-entrypoints.js +6 -0
  6. package/dist/functions/group/assign-member-to-group.js +4 -0
  7. package/dist/functions/group/change-group-membership.js +34 -0
  8. package/dist/functions/group/group-membership-errors.js +23 -0
  9. package/dist/functions/group/index.js +2 -0
  10. package/dist/functions/group/unassign-member-from-group.js +4 -0
  11. package/dist/functions/namespace/index.js +3 -0
  12. package/dist/functions/namespace/link.js +30 -0
  13. package/dist/functions/namespace/namespace-errors.js +28 -0
  14. package/dist/functions/namespace/namespace-name.js +13 -0
  15. package/dist/functions/namespace/rename.js +31 -0
  16. package/dist/functions/namespace/unlink.js +21 -0
  17. package/dist/functions/user/index.js +2 -0
  18. package/dist/functions/user/invite-user.js +39 -0
  19. package/dist/functions/user/record-profile.js +18 -0
  20. package/dist/functions/view-access/assign-views.js +86 -0
  21. package/dist/functions/view-access/index.js +1 -0
  22. package/dist/functions/view-access/view-access-errors.js +28 -0
  23. package/dist/index.d.ts +1 -3
  24. package/dist/index.js +1 -3
  25. package/dist/integrations/index.d.ts +1 -0
  26. package/dist/integrations/index.js +1 -0
  27. package/dist/integrations/integrations.d.ts +9 -0
  28. package/dist/integrations/integrations.js +2 -0
  29. package/dist/integrations/user-invitation/index.d.ts +4 -0
  30. package/dist/integrations/user-invitation/index.js +3 -0
  31. package/dist/integrations/user-invitation/invitation-request-failure.d.ts +5 -0
  32. package/dist/integrations/user-invitation/invitation-request-failure.js +9 -0
  33. package/dist/integrations/user-invitation/invite-user-request.d.ts +6 -0
  34. package/dist/integrations/user-invitation/invite-user-request.js +1 -0
  35. package/dist/integrations/user-invitation/request-user-invitation.d.ts +8 -0
  36. package/dist/integrations/user-invitation/request-user-invitation.js +9 -0
  37. package/dist/mutations/group/index.js +1 -1
  38. package/dist/mutations/group/set-group-membership.js +29 -0
  39. package/dist/mutations/namespace/alias-write.js +22 -0
  40. package/dist/mutations/namespace/index.js +3 -0
  41. package/dist/mutations/namespace/link-alias.js +15 -0
  42. package/dist/mutations/namespace/rename-alias.js +13 -0
  43. package/dist/mutations/namespace/unlink-alias.js +13 -0
  44. package/dist/mutations/user/index.js +1 -1
  45. package/dist/mutations/user/record-user-profile.js +13 -0
  46. package/dist/mutations/view-access/index.js +1 -0
  47. package/dist/mutations/view-access/set-view-access.js +29 -0
  48. package/dist/providers/admin-enrollment/create-admin-enrollment-provider.js +78 -0
  49. package/dist/providers/admin-enrollment/decode-admin-invitation-response.js +20 -0
  50. package/dist/providers/admin-enrollment/index.js +1 -0
  51. package/dist/providers/admin-enrollment/read-enrollment-response.js +34 -0
  52. package/dist/queries/application/index.js +1 -0
  53. package/dist/queries/application/read-installed-entrypoints.js +28 -0
  54. package/dist/queries/group/index.js +2 -0
  55. package/dist/queries/group/read-group-membership-endpoints.js +18 -0
  56. package/dist/queries/group/read-group-membership.js +35 -0
  57. package/dist/queries/namespace/index.js +2 -0
  58. package/dist/queries/namespace/read-designated-node.js +12 -0
  59. package/dist/queries/namespace/read-view-aliases.js +46 -0
  60. package/dist/queries/user/index.js +1 -5
  61. package/dist/queries/user/read-user-profile.js +9 -0
  62. package/dist/queries/view-access/index.js +1 -0
  63. package/dist/queries/view-access/read-view-access.js +35 -0
  64. package/dist/runtime.d.ts +2175 -3
  65. package/dist/runtime.js +24 -14
  66. package/dist/schema/index.d.ts +7 -6
  67. package/dist/schema/index.js +6 -6
  68. package/dist/schema/modules/application/functions/index.d.ts +1 -0
  69. package/dist/schema/modules/application/functions/index.js +1 -0
  70. package/dist/schema/modules/application/functions/list-entrypoints.d.ts +15 -0
  71. package/dist/schema/modules/application/functions/list-entrypoints.js +16 -0
  72. package/dist/schema/modules/application/index.d.ts +2 -0
  73. package/dist/schema/modules/application/index.js +2 -0
  74. package/dist/schema/modules/application/types/entrypoint-entry.d.ts +8 -0
  75. package/dist/schema/modules/application/types/entrypoint-entry.js +7 -0
  76. package/dist/schema/modules/application/types/index.d.ts +1 -0
  77. package/dist/schema/modules/application/types/index.js +1 -0
  78. package/dist/schema/modules/group/classes/group.d.ts +24 -0
  79. package/dist/schema/modules/group/classes/group.js +11 -0
  80. package/dist/schema/modules/group/classes/index.d.ts +2 -0
  81. package/dist/schema/modules/group/classes/index.js +2 -0
  82. package/dist/schema/modules/group/classes/member-of-group.d.ts +30 -0
  83. package/dist/schema/modules/group/classes/member-of-group.js +12 -0
  84. package/dist/schema/modules/group/core/administrators-group.d.ts +1 -0
  85. package/dist/schema/modules/group/core/administrators-group.js +6 -0
  86. package/dist/schema/modules/group/core/applications-group.d.ts +1 -0
  87. package/dist/schema/modules/group/core/applications-group.js +6 -0
  88. package/dist/schema/modules/group/core/index.d.ts +3 -0
  89. package/dist/schema/modules/group/core/index.js +3 -0
  90. package/dist/schema/modules/group/core/members-group.d.ts +1 -0
  91. package/dist/schema/modules/group/core/members-group.js +6 -0
  92. package/dist/schema/modules/group/functions/assign-member-to-group.js +11 -0
  93. package/dist/schema/modules/group/functions/index.js +2 -0
  94. package/dist/schema/modules/group/functions/unassign-member-from-group.js +11 -0
  95. package/dist/schema/modules/group/index.d.ts +3 -0
  96. package/dist/schema/modules/group/index.js +3 -0
  97. package/dist/schema/modules/group/policies/belongs-to-group.d.ts +1 -0
  98. package/dist/schema/modules/group/policies/belongs-to-group.js +5 -0
  99. package/dist/schema/modules/group/policies/index.d.ts +1 -0
  100. package/dist/schema/modules/group/policies/index.js +1 -0
  101. package/dist/schema/modules/group/types/group-membership-input.js +8 -0
  102. package/dist/schema/modules/group/types/index.js +1 -0
  103. package/dist/schema/modules/namespace/classes/alias.d.ts +31 -0
  104. package/dist/schema/modules/namespace/classes/alias.js +13 -0
  105. package/dist/schema/modules/namespace/classes/index.d.ts +2 -0
  106. package/dist/schema/modules/namespace/classes/index.js +2 -0
  107. package/dist/schema/modules/namespace/classes/namespace.d.ts +31 -0
  108. package/dist/schema/modules/namespace/classes/namespace.js +10 -0
  109. package/dist/schema/modules/namespace/core/index.d.ts +1 -0
  110. package/dist/schema/modules/namespace/core/index.js +1 -0
  111. package/dist/schema/modules/namespace/core/views-namespace.d.ts +2 -0
  112. package/dist/schema/modules/namespace/core/views-namespace.js +7 -0
  113. package/dist/schema/modules/namespace/functions/index.js +3 -0
  114. package/dist/schema/modules/namespace/functions/link.js +11 -0
  115. package/dist/schema/modules/namespace/functions/rename.js +11 -0
  116. package/dist/schema/modules/namespace/functions/unlink.js +11 -0
  117. package/dist/schema/modules/namespace/index.d.ts +2 -0
  118. package/dist/schema/modules/namespace/index.js +2 -0
  119. package/dist/schema/modules/namespace/types/index.js +1 -0
  120. package/dist/schema/modules/namespace/types/namespace-name.js +7 -0
  121. package/dist/schema/modules/user/classes/index.d.ts +1 -0
  122. package/dist/schema/modules/user/classes/index.js +1 -0
  123. package/dist/schema/modules/user/classes/user.d.ts +34 -0
  124. package/dist/schema/modules/user/classes/user.js +21 -0
  125. package/dist/schema/modules/user/functions/index.js +2 -0
  126. package/dist/schema/modules/user/functions/invite-user.js +12 -0
  127. package/dist/schema/modules/user/functions/record-profile.js +14 -0
  128. package/dist/schema/modules/user/index.d.ts +2 -0
  129. package/dist/schema/modules/user/index.js +2 -0
  130. package/dist/schema/modules/user/types/index.d.ts +2 -0
  131. package/dist/schema/modules/user/types/index.js +2 -0
  132. package/dist/schema/modules/user/types/invitation-summary.d.ts +16 -0
  133. package/dist/schema/modules/user/types/invitation-summary.js +15 -0
  134. package/dist/schema/modules/user/types/user-profile.d.ts +7 -0
  135. package/dist/schema/modules/user/types/user-profile.js +7 -0
  136. package/dist/schema/modules/view-access/classes/index.d.ts +1 -0
  137. package/dist/schema/modules/view-access/classes/index.js +1 -0
  138. package/dist/schema/modules/view-access/classes/view-access.d.ts +32 -0
  139. package/dist/schema/modules/view-access/classes/view-access.js +18 -0
  140. package/dist/schema/modules/view-access/core/index.d.ts +1 -0
  141. package/dist/schema/modules/view-access/core/index.js +1 -0
  142. package/dist/schema/modules/view-access/core/view-only-group.d.ts +5 -0
  143. package/dist/schema/modules/view-access/core/view-only-group.js +10 -0
  144. package/dist/schema/modules/view-access/functions/assign-views.d.ts +16 -0
  145. package/dist/schema/modules/view-access/functions/assign-views.js +17 -0
  146. package/dist/schema/modules/view-access/functions/index.d.ts +1 -0
  147. package/dist/schema/modules/view-access/functions/index.js +1 -0
  148. package/dist/schema/modules/view-access/index.d.ts +3 -0
  149. package/dist/schema/modules/view-access/index.js +3 -0
  150. package/dist/schema/modules/view-access/types/index.js +1 -0
  151. package/dist/schema/modules/view-access/types/view-assignment.js +16 -0
  152. package/dist/schema/policies/administers-shell-class.js +11 -0
  153. package/dist/schema/policies/index.js +4 -0
  154. package/dist/schema/policies/is-self.js +5 -0
  155. package/dist/schema/policies/owns-class.js +7 -0
  156. package/dist/schema/policies/uses-function.js +5 -0
  157. package/dist/schema/schema.d.ts +833 -0
  158. package/dist/schema/schema.js +35 -0
  159. package/dist/schema/views/application-view.js +4 -0
  160. package/dist/schema/views/index.js +1 -0
  161. package/dist/utils/canonical-node-path/index.js +1 -0
  162. package/dist/utils/canonical-node-path/parse-canonical-node-path.js +8 -0
  163. package/package.json +50 -10
  164. package/dist/actions/index.js +0 -1
  165. package/dist/actions/user/index.js +0 -1
  166. package/dist/actions/user/resolve-home.js +0 -19
  167. package/dist/application.d.ts +0 -5
  168. package/dist/application.js +0 -29
  169. package/dist/mutations/group/membership.js +0 -21
  170. package/dist/mutations/space/access.js +0 -25
  171. package/dist/mutations/space/default.js +0 -25
  172. package/dist/mutations/space/index.js +0 -2
  173. package/dist/mutations/user/repair.js +0 -85
  174. package/dist/queries/space/access.js +0 -14
  175. package/dist/queries/space/admin.js +0 -27
  176. package/dist/queries/space/index.js +0 -3
  177. package/dist/queries/space/member.js +0 -24
  178. package/dist/queries/user/groups.js +0 -24
  179. package/dist/queries/user/home.js +0 -28
  180. package/dist/queries/user/owned-spaces.js +0 -24
  181. package/dist/queries/user/profile.js +0 -17
  182. package/dist/queries/user/setup.js +0 -18
  183. package/dist/schema/domain/index.d.ts +0 -26911
  184. package/dist/schema/domain/index.js +0 -40
  185. package/dist/schema/group/class.d.ts +0 -3288
  186. package/dist/schema/group/class.js +0 -7
  187. package/dist/schema/group/core.d.ts +0 -14
  188. package/dist/schema/group/core.js +0 -14
  189. package/dist/schema/group/index.d.ts +0 -6
  190. package/dist/schema/group/index.js +0 -6
  191. package/dist/schema/group/methods.d.ts +0 -2059
  192. package/dist/schema/group/methods.js +0 -21
  193. package/dist/schema/group/policies.d.ts +0 -1
  194. package/dist/schema/group/policies.js +0 -6
  195. package/dist/schema/group/relationships.d.ts +0 -4313
  196. package/dist/schema/group/relationships.js +0 -8
  197. package/dist/schema/group/view.d.ts +0 -3291
  198. package/dist/schema/group/view.js +0 -6
  199. package/dist/schema/home/index.d.ts +0 -1
  200. package/dist/schema/home/index.js +0 -1
  201. package/dist/schema/home/view.d.ts +0 -3
  202. package/dist/schema/home/view.js +0 -4
  203. package/dist/schema/setup/functions.d.ts +0 -47
  204. package/dist/schema/setup/functions.js +0 -27
  205. package/dist/schema/setup/index.d.ts +0 -1
  206. package/dist/schema/setup/index.js +0 -1
  207. package/dist/schema/space/class.d.ts +0 -2313
  208. package/dist/schema/space/class.js +0 -11
  209. package/dist/schema/space/core.d.ts +0 -22520
  210. package/dist/schema/space/core.js +0 -15
  211. package/dist/schema/space/index.d.ts +0 -6
  212. package/dist/schema/space/index.js +0 -6
  213. package/dist/schema/space/methods.d.ts +0 -2089
  214. package/dist/schema/space/methods.js +0 -30
  215. package/dist/schema/space/policies.d.ts +0 -4
  216. package/dist/schema/space/policies.js +0 -21
  217. package/dist/schema/space/relationships.d.ts +0 -23213
  218. package/dist/schema/space/relationships.js +0 -24
  219. package/dist/schema/space/view.d.ts +0 -2316
  220. package/dist/schema/space/view.js +0 -6
  221. package/dist/schema/user/class.d.ts +0 -1015
  222. package/dist/schema/user/class.js +0 -11
  223. package/dist/schema/user/index.d.ts +0 -3
  224. package/dist/schema/user/index.js +0 -3
  225. package/dist/schema/user/methods.d.ts +0 -14
  226. package/dist/schema/user/methods.js +0 -11
  227. package/dist/schema/user/view.d.ts +0 -1017
  228. package/dist/schema/user/view.js +0 -6
  229. package/dist/workflows/group/assign.js +0 -3
  230. package/dist/workflows/group/change.js +0 -31
  231. package/dist/workflows/group/index.js +0 -3
  232. package/dist/workflows/group/unassign.js +0 -3
  233. package/dist/workflows/index.js +0 -3
  234. package/dist/workflows/setup/admin.js +0 -3
  235. package/dist/workflows/setup/index.js +0 -5
  236. package/dist/workflows/setup/member.js +0 -3
  237. package/dist/workflows/setup/plan.js +0 -88
  238. package/dist/workflows/setup/provision.js +0 -57
  239. package/dist/workflows/setup/run.js +0 -74
  240. package/dist/workflows/space/access.js +0 -41
  241. package/dist/workflows/space/add.js +0 -3
  242. package/dist/workflows/space/default.js +0 -37
  243. package/dist/workflows/space/index.js +0 -4
  244. package/dist/workflows/space/remove.js +0 -3
@@ -1,1015 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const User: import("@astrale-os/sdk/schema").NodeClass<{
3
- readonly description: "One externally identified person using Shell.";
4
- readonly extends: readonly [import("@astrale-os/sdk/schema").ResolvedClass<"node", Readonly<Readonly<{
5
- frozen: import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, false> & {
6
- readonly name: "frozen";
7
- readonly key: "kernel.astrale.ai:class.Identity.property.frozen";
8
- };
9
- iss: import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
10
- readonly name: "iss";
11
- readonly key: "kernel.astrale.ai:class.Identity.property.iss";
12
- };
13
- requiredClaims: import("@astrale-os/sdk/schema").ResolvedProperty<({
14
- claim: string;
15
- op: "contains";
16
- value: unknown;
17
- } | {
18
- claim: string;
19
- op: "eq";
20
- value: unknown;
21
- } | {
22
- claim: string;
23
- op: "exists";
24
- })[], false> & {
25
- readonly name: "requiredClaims";
26
- readonly key: "kernel.astrale.ai:class.Identity.property.requiredClaims";
27
- };
28
- sub: import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
29
- readonly name: "sub";
30
- readonly key: "kernel.astrale.ai:class.Identity.property.sub";
31
- };
32
- }>> & Iterable<(import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, false> & {
33
- readonly name: "frozen";
34
- readonly key: "kernel.astrale.ai:class.Identity.property.frozen";
35
- }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
36
- readonly name: "iss";
37
- readonly key: "kernel.astrale.ai:class.Identity.property.iss";
38
- }) | (import("@astrale-os/sdk/schema").ResolvedProperty<({
39
- claim: string;
40
- op: "contains";
41
- value: unknown;
42
- } | {
43
- claim: string;
44
- op: "eq";
45
- value: unknown;
46
- } | {
47
- claim: string;
48
- op: "exists";
49
- })[], false> & {
50
- readonly name: "requiredClaims";
51
- readonly key: "kernel.astrale.ai:class.Identity.property.requiredClaims";
52
- }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
53
- readonly name: "sub";
54
- readonly key: "kernel.astrale.ai:class.Identity.property.sub";
55
- })> & {
56
- readonly byKey: Readonly<{
57
- "kernel.astrale.ai:class.Identity.property.frozen": import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, false> & {
58
- readonly name: "frozen";
59
- readonly key: "kernel.astrale.ai:class.Identity.property.frozen";
60
- };
61
- "kernel.astrale.ai:class.Identity.property.iss": import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
62
- readonly name: "iss";
63
- readonly key: "kernel.astrale.ai:class.Identity.property.iss";
64
- };
65
- "kernel.astrale.ai:class.Identity.property.requiredClaims": import("@astrale-os/sdk/schema").ResolvedProperty<({
66
- claim: string;
67
- op: "contains";
68
- value: unknown;
69
- } | {
70
- claim: string;
71
- op: "eq";
72
- value: unknown;
73
- } | {
74
- claim: string;
75
- op: "exists";
76
- })[], false> & {
77
- readonly name: "requiredClaims";
78
- readonly key: "kernel.astrale.ai:class.Identity.property.requiredClaims";
79
- };
80
- "kernel.astrale.ai:class.Identity.property.sub": import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
81
- readonly name: "sub";
82
- readonly key: "kernel.astrale.ai:class.Identity.property.sub";
83
- };
84
- }>;
85
- get<Key extends "kernel.astrale.ai:class.Identity.property.frozen" | "kernel.astrale.ai:class.Identity.property.iss" | "kernel.astrale.ai:class.Identity.property.requiredClaims" | "kernel.astrale.ai:class.Identity.property.sub">(key: Key): Readonly<{
86
- "kernel.astrale.ai:class.Identity.property.frozen": import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, false> & {
87
- readonly name: "frozen";
88
- readonly key: "kernel.astrale.ai:class.Identity.property.frozen";
89
- };
90
- "kernel.astrale.ai:class.Identity.property.iss": import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
91
- readonly name: "iss";
92
- readonly key: "kernel.astrale.ai:class.Identity.property.iss";
93
- };
94
- "kernel.astrale.ai:class.Identity.property.requiredClaims": import("@astrale-os/sdk/schema").ResolvedProperty<({
95
- claim: string;
96
- op: "contains";
97
- value: unknown;
98
- } | {
99
- claim: string;
100
- op: "eq";
101
- value: unknown;
102
- } | {
103
- claim: string;
104
- op: "exists";
105
- })[], false> & {
106
- readonly name: "requiredClaims";
107
- readonly key: "kernel.astrale.ai:class.Identity.property.requiredClaims";
108
- };
109
- "kernel.astrale.ai:class.Identity.property.sub": import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
110
- readonly name: "sub";
111
- readonly key: "kernel.astrale.ai:class.Identity.property.sub";
112
- };
113
- }>[Key];
114
- get(key: import("@astrale-os/sdk/schema").PropertyKey): import("@astrale-os/sdk/schema").ResolvedProperty | undefined;
115
- from(input: Readonly<{
116
- readonly "kernel.astrale.ai:class.Identity.property.frozen"?: string | number | boolean | import("@astrale-os/sdk/schema").Array | import("@astrale-os/sdk/schema").Object | null | undefined;
117
- readonly "kernel.astrale.ai:class.Identity.property.iss"?: string | number | boolean | import("@astrale-os/sdk/schema").Array | import("@astrale-os/sdk/schema").Object | null | undefined;
118
- readonly "kernel.astrale.ai:class.Identity.property.requiredClaims"?: ({
119
- claim: string;
120
- op: "contains";
121
- value: unknown;
122
- } | {
123
- claim: string;
124
- op: "eq";
125
- value: unknown;
126
- } | {
127
- claim: string;
128
- op: "exists";
129
- })[] | undefined;
130
- readonly "kernel.astrale.ai:class.Identity.property.sub"?: string | number | boolean | import("@astrale-os/sdk/schema").Array | import("@astrale-os/sdk/schema").Object | null | undefined;
131
- } & {
132
- readonly frozen?: string | number | boolean | import("@astrale-os/sdk/schema").Array | import("@astrale-os/sdk/schema").Object | null | undefined;
133
- readonly iss?: string | number | boolean | import("@astrale-os/sdk/schema").Array | import("@astrale-os/sdk/schema").Object | null | undefined;
134
- readonly requiredClaims?: ({
135
- claim: string;
136
- op: "contains";
137
- value: unknown;
138
- } | {
139
- claim: string;
140
- op: "eq";
141
- value: unknown;
142
- } | {
143
- claim: string;
144
- op: "exists";
145
- })[] | undefined;
146
- readonly sub?: string | number | boolean | import("@astrale-os/sdk/schema").Array | import("@astrale-os/sdk/schema").Object | null | undefined;
147
- }>): import("@astrale-os/sdk/schema").PropertyValues;
148
- }, Readonly<Readonly<{
149
- delegate: import("@astrale-os/sdk/schema").ResolvedMethod<{
150
- audience: string;
151
- ttlSeconds: number;
152
- attenuation: unknown;
153
- }, {
154
- readonly mode: 'value';
155
- readonly value: string;
156
- }, false, "default", "authenticated", never, "kernel.astrale.ai:class.Identity.method.delegate"> & {
157
- readonly name: "delegate";
158
- };
159
- }>> & Iterable<import("@astrale-os/sdk/schema").ResolvedMethod<{
160
- audience: string;
161
- ttlSeconds: number;
162
- attenuation: unknown;
163
- }, {
164
- readonly mode: 'value';
165
- readonly value: string;
166
- }, false, "default", "authenticated", never, "kernel.astrale.ai:class.Identity.method.delegate"> & {
167
- readonly name: "delegate";
168
- }> & {
169
- readonly byKey: Readonly<{
170
- "kernel.astrale.ai:class.Identity.method.delegate": import("@astrale-os/sdk/schema").ResolvedMethod<{
171
- audience: string;
172
- ttlSeconds: number;
173
- attenuation: unknown;
174
- }, {
175
- readonly mode: 'value';
176
- readonly value: string;
177
- }, false, "default", "authenticated", never, "kernel.astrale.ai:class.Identity.method.delegate"> & {
178
- readonly name: "delegate";
179
- };
180
- }>;
181
- get<Key extends "kernel.astrale.ai:class.Identity.method.delegate">(key: Key): Readonly<{
182
- "kernel.astrale.ai:class.Identity.method.delegate": import("@astrale-os/sdk/schema").ResolvedMethod<{
183
- audience: string;
184
- ttlSeconds: number;
185
- attenuation: unknown;
186
- }, {
187
- readonly mode: 'value';
188
- readonly value: string;
189
- }, false, "default", "authenticated", never, "kernel.astrale.ai:class.Identity.method.delegate"> & {
190
- readonly name: "delegate";
191
- };
192
- }>[Key];
193
- get(key: import("@astrale-os/sdk/schema").MethodKey): import("@astrale-os/sdk/schema").ResolvedMethod | undefined;
194
- }, Readonly<Readonly<{
195
- can: import("@astrale-os/sdk/schema").ResolvedMethod<{
196
- policy: string;
197
- object: string;
198
- }, {
199
- readonly mode: 'value';
200
- readonly value: {
201
- allowed: boolean;
202
- };
203
- }, true, "default", "authenticated", never, "kernel.astrale.ai:class.Identity.method.can"> & {
204
- readonly name: "can";
205
- };
206
- mint: import("@astrale-os/sdk/schema").ResolvedMethod<{
207
- audience?: string | undefined;
208
- ttlSeconds: number;
209
- grant?: unknown;
210
- }, {
211
- readonly mode: 'value';
212
- readonly value: string;
213
- }, true, "default", "authorized", import("@astrale-os/sdk/schema").PolicyCheckExpression<import("@astrale-os/sdk/schema").PolicyRef, import("@astrale-os/sdk/schema").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.mint"> & {
214
- readonly name: "mint";
215
- };
216
- whoami: import("@astrale-os/sdk/schema").ResolvedMethod<Record<string, never>, {
217
- readonly mode: 'value';
218
- readonly value: {
219
- id: string;
220
- issuer: string;
221
- subject: string;
222
- frozen: boolean;
223
- requiredClaims: ({
224
- claim: string;
225
- op: "contains";
226
- value: unknown;
227
- } | {
228
- claim: string;
229
- op: "eq";
230
- value: unknown;
231
- } | {
232
- claim: string;
233
- op: "exists";
234
- })[];
235
- };
236
- }, true, "default", "authenticated", never, "kernel.astrale.ai:class.Identity.method.whoami"> & {
237
- readonly name: "whoami";
238
- };
239
- whois: import("@astrale-os/sdk/schema").ResolvedMethod<{
240
- issuer: string;
241
- subject: string;
242
- }, {
243
- readonly mode: 'value';
244
- readonly value: {
245
- id: string;
246
- issuer: string;
247
- subject: string;
248
- frozen: boolean;
249
- requiredClaims: ({
250
- claim: string;
251
- op: "contains";
252
- value: unknown;
253
- } | {
254
- claim: string;
255
- op: "eq";
256
- value: unknown;
257
- } | {
258
- claim: string;
259
- op: "exists";
260
- })[];
261
- } | null;
262
- }, true, "default", "authorized", import("@astrale-os/sdk/schema").PolicyCheckExpression<import("@astrale-os/sdk/schema").PolicyRef, import("@astrale-os/sdk/schema").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.whois"> & {
263
- readonly name: "whois";
264
- };
265
- }>> & Iterable<(import("@astrale-os/sdk/schema").ResolvedMethod<{
266
- policy: string;
267
- object: string;
268
- }, {
269
- readonly mode: 'value';
270
- readonly value: {
271
- allowed: boolean;
272
- };
273
- }, true, "default", "authenticated", never, "kernel.astrale.ai:class.Identity.method.can"> & {
274
- readonly name: "can";
275
- }) | (import("@astrale-os/sdk/schema").ResolvedMethod<{
276
- audience?: string | undefined;
277
- ttlSeconds: number;
278
- grant?: unknown;
279
- }, {
280
- readonly mode: 'value';
281
- readonly value: string;
282
- }, true, "default", "authorized", import("@astrale-os/sdk/schema").PolicyCheckExpression<import("@astrale-os/sdk/schema").PolicyRef, import("@astrale-os/sdk/schema").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.mint"> & {
283
- readonly name: "mint";
284
- }) | (import("@astrale-os/sdk/schema").ResolvedMethod<Record<string, never>, {
285
- readonly mode: 'value';
286
- readonly value: {
287
- id: string;
288
- issuer: string;
289
- subject: string;
290
- frozen: boolean;
291
- requiredClaims: ({
292
- claim: string;
293
- op: "contains";
294
- value: unknown;
295
- } | {
296
- claim: string;
297
- op: "eq";
298
- value: unknown;
299
- } | {
300
- claim: string;
301
- op: "exists";
302
- })[];
303
- };
304
- }, true, "default", "authenticated", never, "kernel.astrale.ai:class.Identity.method.whoami"> & {
305
- readonly name: "whoami";
306
- }) | (import("@astrale-os/sdk/schema").ResolvedMethod<{
307
- issuer: string;
308
- subject: string;
309
- }, {
310
- readonly mode: 'value';
311
- readonly value: {
312
- id: string;
313
- issuer: string;
314
- subject: string;
315
- frozen: boolean;
316
- requiredClaims: ({
317
- claim: string;
318
- op: "contains";
319
- value: unknown;
320
- } | {
321
- claim: string;
322
- op: "eq";
323
- value: unknown;
324
- } | {
325
- claim: string;
326
- op: "exists";
327
- })[];
328
- } | null;
329
- }, true, "default", "authorized", import("@astrale-os/sdk/schema").PolicyCheckExpression<import("@astrale-os/sdk/schema").PolicyRef, import("@astrale-os/sdk/schema").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.whois"> & {
330
- readonly name: "whois";
331
- })> & {
332
- readonly byKey: Readonly<{
333
- "kernel.astrale.ai:class.Identity.method.can": import("@astrale-os/sdk/schema").ResolvedMethod<{
334
- policy: string;
335
- object: string;
336
- }, {
337
- readonly mode: 'value';
338
- readonly value: {
339
- allowed: boolean;
340
- };
341
- }, true, "default", "authenticated", never, "kernel.astrale.ai:class.Identity.method.can"> & {
342
- readonly name: "can";
343
- };
344
- "kernel.astrale.ai:class.Identity.method.mint": import("@astrale-os/sdk/schema").ResolvedMethod<{
345
- audience?: string | undefined;
346
- ttlSeconds: number;
347
- grant?: unknown;
348
- }, {
349
- readonly mode: 'value';
350
- readonly value: string;
351
- }, true, "default", "authorized", import("@astrale-os/sdk/schema").PolicyCheckExpression<import("@astrale-os/sdk/schema").PolicyRef, import("@astrale-os/sdk/schema").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.mint"> & {
352
- readonly name: "mint";
353
- };
354
- "kernel.astrale.ai:class.Identity.method.whoami": import("@astrale-os/sdk/schema").ResolvedMethod<Record<string, never>, {
355
- readonly mode: 'value';
356
- readonly value: {
357
- id: string;
358
- issuer: string;
359
- subject: string;
360
- frozen: boolean;
361
- requiredClaims: ({
362
- claim: string;
363
- op: "contains";
364
- value: unknown;
365
- } | {
366
- claim: string;
367
- op: "eq";
368
- value: unknown;
369
- } | {
370
- claim: string;
371
- op: "exists";
372
- })[];
373
- };
374
- }, true, "default", "authenticated", never, "kernel.astrale.ai:class.Identity.method.whoami"> & {
375
- readonly name: "whoami";
376
- };
377
- "kernel.astrale.ai:class.Identity.method.whois": import("@astrale-os/sdk/schema").ResolvedMethod<{
378
- issuer: string;
379
- subject: string;
380
- }, {
381
- readonly mode: 'value';
382
- readonly value: {
383
- id: string;
384
- issuer: string;
385
- subject: string;
386
- frozen: boolean;
387
- requiredClaims: ({
388
- claim: string;
389
- op: "contains";
390
- value: unknown;
391
- } | {
392
- claim: string;
393
- op: "eq";
394
- value: unknown;
395
- } | {
396
- claim: string;
397
- op: "exists";
398
- })[];
399
- } | null;
400
- }, true, "default", "authorized", import("@astrale-os/sdk/schema").PolicyCheckExpression<import("@astrale-os/sdk/schema").PolicyRef, import("@astrale-os/sdk/schema").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.whois"> & {
401
- readonly name: "whois";
402
- };
403
- }>;
404
- get<Key extends "kernel.astrale.ai:class.Identity.method.can" | "kernel.astrale.ai:class.Identity.method.mint" | "kernel.astrale.ai:class.Identity.method.whoami" | "kernel.astrale.ai:class.Identity.method.whois">(key: Key): Readonly<{
405
- "kernel.astrale.ai:class.Identity.method.can": import("@astrale-os/sdk/schema").ResolvedMethod<{
406
- policy: string;
407
- object: string;
408
- }, {
409
- readonly mode: 'value';
410
- readonly value: {
411
- allowed: boolean;
412
- };
413
- }, true, "default", "authenticated", never, "kernel.astrale.ai:class.Identity.method.can"> & {
414
- readonly name: "can";
415
- };
416
- "kernel.astrale.ai:class.Identity.method.mint": import("@astrale-os/sdk/schema").ResolvedMethod<{
417
- audience?: string | undefined;
418
- ttlSeconds: number;
419
- grant?: unknown;
420
- }, {
421
- readonly mode: 'value';
422
- readonly value: string;
423
- }, true, "default", "authorized", import("@astrale-os/sdk/schema").PolicyCheckExpression<import("@astrale-os/sdk/schema").PolicyRef, import("@astrale-os/sdk/schema").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.mint"> & {
424
- readonly name: "mint";
425
- };
426
- "kernel.astrale.ai:class.Identity.method.whoami": import("@astrale-os/sdk/schema").ResolvedMethod<Record<string, never>, {
427
- readonly mode: 'value';
428
- readonly value: {
429
- id: string;
430
- issuer: string;
431
- subject: string;
432
- frozen: boolean;
433
- requiredClaims: ({
434
- claim: string;
435
- op: "contains";
436
- value: unknown;
437
- } | {
438
- claim: string;
439
- op: "eq";
440
- value: unknown;
441
- } | {
442
- claim: string;
443
- op: "exists";
444
- })[];
445
- };
446
- }, true, "default", "authenticated", never, "kernel.astrale.ai:class.Identity.method.whoami"> & {
447
- readonly name: "whoami";
448
- };
449
- "kernel.astrale.ai:class.Identity.method.whois": import("@astrale-os/sdk/schema").ResolvedMethod<{
450
- issuer: string;
451
- subject: string;
452
- }, {
453
- readonly mode: 'value';
454
- readonly value: {
455
- id: string;
456
- issuer: string;
457
- subject: string;
458
- frozen: boolean;
459
- requiredClaims: ({
460
- claim: string;
461
- op: "contains";
462
- value: unknown;
463
- } | {
464
- claim: string;
465
- op: "eq";
466
- value: unknown;
467
- } | {
468
- claim: string;
469
- op: "exists";
470
- })[];
471
- } | null;
472
- }, true, "default", "authorized", import("@astrale-os/sdk/schema").PolicyCheckExpression<import("@astrale-os/sdk/schema").PolicyRef, import("@astrale-os/sdk/schema").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.whois"> & {
473
- readonly name: "whois";
474
- };
475
- }>[Key];
476
- get(key: import("@astrale-os/sdk/schema").MethodKey): import("@astrale-os/sdk/schema").ResolvedMethod | undefined;
477
- }, Readonly<Readonly<{
478
- frozen: import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, false> & {
479
- readonly name: "frozen";
480
- readonly key: "kernel.astrale.ai:class.Identity.property.frozen";
481
- };
482
- iss: import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
483
- readonly name: "iss";
484
- readonly key: "kernel.astrale.ai:class.Identity.property.iss";
485
- };
486
- requiredClaims: import("@astrale-os/sdk/schema").ResolvedProperty<({
487
- claim: string;
488
- op: "contains";
489
- value: unknown;
490
- } | {
491
- claim: string;
492
- op: "eq";
493
- value: unknown;
494
- } | {
495
- claim: string;
496
- op: "exists";
497
- })[], false> & {
498
- readonly name: "requiredClaims";
499
- readonly key: "kernel.astrale.ai:class.Identity.property.requiredClaims";
500
- };
501
- sub: import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
502
- readonly name: "sub";
503
- readonly key: "kernel.astrale.ai:class.Identity.property.sub";
504
- };
505
- }>> & Iterable<(import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, false> & {
506
- readonly name: "frozen";
507
- readonly key: "kernel.astrale.ai:class.Identity.property.frozen";
508
- }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
509
- readonly name: "iss";
510
- readonly key: "kernel.astrale.ai:class.Identity.property.iss";
511
- }) | (import("@astrale-os/sdk/schema").ResolvedProperty<({
512
- claim: string;
513
- op: "contains";
514
- value: unknown;
515
- } | {
516
- claim: string;
517
- op: "eq";
518
- value: unknown;
519
- } | {
520
- claim: string;
521
- op: "exists";
522
- })[], false> & {
523
- readonly name: "requiredClaims";
524
- readonly key: "kernel.astrale.ai:class.Identity.property.requiredClaims";
525
- }) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
526
- readonly name: "sub";
527
- readonly key: "kernel.astrale.ai:class.Identity.property.sub";
528
- })> & {
529
- readonly byKey: Readonly<{
530
- "kernel.astrale.ai:class.Identity.property.frozen": import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, false> & {
531
- readonly name: "frozen";
532
- readonly key: "kernel.astrale.ai:class.Identity.property.frozen";
533
- };
534
- "kernel.astrale.ai:class.Identity.property.iss": import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
535
- readonly name: "iss";
536
- readonly key: "kernel.astrale.ai:class.Identity.property.iss";
537
- };
538
- "kernel.astrale.ai:class.Identity.property.requiredClaims": import("@astrale-os/sdk/schema").ResolvedProperty<({
539
- claim: string;
540
- op: "contains";
541
- value: unknown;
542
- } | {
543
- claim: string;
544
- op: "eq";
545
- value: unknown;
546
- } | {
547
- claim: string;
548
- op: "exists";
549
- })[], false> & {
550
- readonly name: "requiredClaims";
551
- readonly key: "kernel.astrale.ai:class.Identity.property.requiredClaims";
552
- };
553
- "kernel.astrale.ai:class.Identity.property.sub": import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
554
- readonly name: "sub";
555
- readonly key: "kernel.astrale.ai:class.Identity.property.sub";
556
- };
557
- }>;
558
- get<Key extends "kernel.astrale.ai:class.Identity.property.frozen" | "kernel.astrale.ai:class.Identity.property.iss" | "kernel.astrale.ai:class.Identity.property.requiredClaims" | "kernel.astrale.ai:class.Identity.property.sub">(key: Key): Readonly<{
559
- "kernel.astrale.ai:class.Identity.property.frozen": import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, false> & {
560
- readonly name: "frozen";
561
- readonly key: "kernel.astrale.ai:class.Identity.property.frozen";
562
- };
563
- "kernel.astrale.ai:class.Identity.property.iss": import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
564
- readonly name: "iss";
565
- readonly key: "kernel.astrale.ai:class.Identity.property.iss";
566
- };
567
- "kernel.astrale.ai:class.Identity.property.requiredClaims": import("@astrale-os/sdk/schema").ResolvedProperty<({
568
- claim: string;
569
- op: "contains";
570
- value: unknown;
571
- } | {
572
- claim: string;
573
- op: "eq";
574
- value: unknown;
575
- } | {
576
- claim: string;
577
- op: "exists";
578
- })[], false> & {
579
- readonly name: "requiredClaims";
580
- readonly key: "kernel.astrale.ai:class.Identity.property.requiredClaims";
581
- };
582
- "kernel.astrale.ai:class.Identity.property.sub": import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
583
- readonly name: "sub";
584
- readonly key: "kernel.astrale.ai:class.Identity.property.sub";
585
- };
586
- }>[Key];
587
- get(key: import("@astrale-os/sdk/schema").PropertyKey): import("@astrale-os/sdk/schema").ResolvedProperty | undefined;
588
- from(input: Readonly<{
589
- readonly "kernel.astrale.ai:class.Identity.property.frozen"?: string | number | boolean | import("@astrale-os/sdk/schema").Array | import("@astrale-os/sdk/schema").Object | null | undefined;
590
- readonly "kernel.astrale.ai:class.Identity.property.iss"?: string | number | boolean | import("@astrale-os/sdk/schema").Array | import("@astrale-os/sdk/schema").Object | null | undefined;
591
- readonly "kernel.astrale.ai:class.Identity.property.requiredClaims"?: ({
592
- claim: string;
593
- op: "contains";
594
- value: unknown;
595
- } | {
596
- claim: string;
597
- op: "eq";
598
- value: unknown;
599
- } | {
600
- claim: string;
601
- op: "exists";
602
- })[] | undefined;
603
- readonly "kernel.astrale.ai:class.Identity.property.sub"?: string | number | boolean | import("@astrale-os/sdk/schema").Array | import("@astrale-os/sdk/schema").Object | null | undefined;
604
- } & {
605
- readonly frozen?: string | number | boolean | import("@astrale-os/sdk/schema").Array | import("@astrale-os/sdk/schema").Object | null | undefined;
606
- readonly iss?: string | number | boolean | import("@astrale-os/sdk/schema").Array | import("@astrale-os/sdk/schema").Object | null | undefined;
607
- readonly requiredClaims?: ({
608
- claim: string;
609
- op: "contains";
610
- value: unknown;
611
- } | {
612
- claim: string;
613
- op: "eq";
614
- value: unknown;
615
- } | {
616
- claim: string;
617
- op: "exists";
618
- })[] | undefined;
619
- readonly sub?: string | number | boolean | import("@astrale-os/sdk/schema").Array | import("@astrale-os/sdk/schema").Object | null | undefined;
620
- }>): import("@astrale-os/sdk/schema").PropertyValues;
621
- }, Readonly<Readonly<{
622
- delegate: import("@astrale-os/sdk/schema").ResolvedMethod<{
623
- audience: string;
624
- ttlSeconds: number;
625
- attenuation: unknown;
626
- }, {
627
- readonly mode: 'value';
628
- readonly value: string;
629
- }, false, "default", "authenticated", never, "kernel.astrale.ai:class.Identity.method.delegate"> & {
630
- readonly name: "delegate";
631
- };
632
- }>> & Iterable<import("@astrale-os/sdk/schema").ResolvedMethod<{
633
- audience: string;
634
- ttlSeconds: number;
635
- attenuation: unknown;
636
- }, {
637
- readonly mode: 'value';
638
- readonly value: string;
639
- }, false, "default", "authenticated", never, "kernel.astrale.ai:class.Identity.method.delegate"> & {
640
- readonly name: "delegate";
641
- }> & {
642
- readonly byKey: Readonly<{
643
- "kernel.astrale.ai:class.Identity.method.delegate": import("@astrale-os/sdk/schema").ResolvedMethod<{
644
- audience: string;
645
- ttlSeconds: number;
646
- attenuation: unknown;
647
- }, {
648
- readonly mode: 'value';
649
- readonly value: string;
650
- }, false, "default", "authenticated", never, "kernel.astrale.ai:class.Identity.method.delegate"> & {
651
- readonly name: "delegate";
652
- };
653
- }>;
654
- get<Key extends "kernel.astrale.ai:class.Identity.method.delegate">(key: Key): Readonly<{
655
- "kernel.astrale.ai:class.Identity.method.delegate": import("@astrale-os/sdk/schema").ResolvedMethod<{
656
- audience: string;
657
- ttlSeconds: number;
658
- attenuation: unknown;
659
- }, {
660
- readonly mode: 'value';
661
- readonly value: string;
662
- }, false, "default", "authenticated", never, "kernel.astrale.ai:class.Identity.method.delegate"> & {
663
- readonly name: "delegate";
664
- };
665
- }>[Key];
666
- get(key: import("@astrale-os/sdk/schema").MethodKey): import("@astrale-os/sdk/schema").ResolvedMethod | undefined;
667
- }, Readonly<Readonly<{
668
- can: import("@astrale-os/sdk/schema").ResolvedMethod<{
669
- policy: string;
670
- object: string;
671
- }, {
672
- readonly mode: 'value';
673
- readonly value: {
674
- allowed: boolean;
675
- };
676
- }, true, "default", "authenticated", never, "kernel.astrale.ai:class.Identity.method.can"> & {
677
- readonly name: "can";
678
- };
679
- mint: import("@astrale-os/sdk/schema").ResolvedMethod<{
680
- audience?: string | undefined;
681
- ttlSeconds: number;
682
- grant?: unknown;
683
- }, {
684
- readonly mode: 'value';
685
- readonly value: string;
686
- }, true, "default", "authorized", import("@astrale-os/sdk/schema").PolicyCheckExpression<import("@astrale-os/sdk/schema").PolicyRef, import("@astrale-os/sdk/schema").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.mint"> & {
687
- readonly name: "mint";
688
- };
689
- whoami: import("@astrale-os/sdk/schema").ResolvedMethod<Record<string, never>, {
690
- readonly mode: 'value';
691
- readonly value: {
692
- id: string;
693
- issuer: string;
694
- subject: string;
695
- frozen: boolean;
696
- requiredClaims: ({
697
- claim: string;
698
- op: "contains";
699
- value: unknown;
700
- } | {
701
- claim: string;
702
- op: "eq";
703
- value: unknown;
704
- } | {
705
- claim: string;
706
- op: "exists";
707
- })[];
708
- };
709
- }, true, "default", "authenticated", never, "kernel.astrale.ai:class.Identity.method.whoami"> & {
710
- readonly name: "whoami";
711
- };
712
- whois: import("@astrale-os/sdk/schema").ResolvedMethod<{
713
- issuer: string;
714
- subject: string;
715
- }, {
716
- readonly mode: 'value';
717
- readonly value: {
718
- id: string;
719
- issuer: string;
720
- subject: string;
721
- frozen: boolean;
722
- requiredClaims: ({
723
- claim: string;
724
- op: "contains";
725
- value: unknown;
726
- } | {
727
- claim: string;
728
- op: "eq";
729
- value: unknown;
730
- } | {
731
- claim: string;
732
- op: "exists";
733
- })[];
734
- } | null;
735
- }, true, "default", "authorized", import("@astrale-os/sdk/schema").PolicyCheckExpression<import("@astrale-os/sdk/schema").PolicyRef, import("@astrale-os/sdk/schema").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.whois"> & {
736
- readonly name: "whois";
737
- };
738
- }>> & Iterable<(import("@astrale-os/sdk/schema").ResolvedMethod<{
739
- policy: string;
740
- object: string;
741
- }, {
742
- readonly mode: 'value';
743
- readonly value: {
744
- allowed: boolean;
745
- };
746
- }, true, "default", "authenticated", never, "kernel.astrale.ai:class.Identity.method.can"> & {
747
- readonly name: "can";
748
- }) | (import("@astrale-os/sdk/schema").ResolvedMethod<{
749
- audience?: string | undefined;
750
- ttlSeconds: number;
751
- grant?: unknown;
752
- }, {
753
- readonly mode: 'value';
754
- readonly value: string;
755
- }, true, "default", "authorized", import("@astrale-os/sdk/schema").PolicyCheckExpression<import("@astrale-os/sdk/schema").PolicyRef, import("@astrale-os/sdk/schema").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.mint"> & {
756
- readonly name: "mint";
757
- }) | (import("@astrale-os/sdk/schema").ResolvedMethod<Record<string, never>, {
758
- readonly mode: 'value';
759
- readonly value: {
760
- id: string;
761
- issuer: string;
762
- subject: string;
763
- frozen: boolean;
764
- requiredClaims: ({
765
- claim: string;
766
- op: "contains";
767
- value: unknown;
768
- } | {
769
- claim: string;
770
- op: "eq";
771
- value: unknown;
772
- } | {
773
- claim: string;
774
- op: "exists";
775
- })[];
776
- };
777
- }, true, "default", "authenticated", never, "kernel.astrale.ai:class.Identity.method.whoami"> & {
778
- readonly name: "whoami";
779
- }) | (import("@astrale-os/sdk/schema").ResolvedMethod<{
780
- issuer: string;
781
- subject: string;
782
- }, {
783
- readonly mode: 'value';
784
- readonly value: {
785
- id: string;
786
- issuer: string;
787
- subject: string;
788
- frozen: boolean;
789
- requiredClaims: ({
790
- claim: string;
791
- op: "contains";
792
- value: unknown;
793
- } | {
794
- claim: string;
795
- op: "eq";
796
- value: unknown;
797
- } | {
798
- claim: string;
799
- op: "exists";
800
- })[];
801
- } | null;
802
- }, true, "default", "authorized", import("@astrale-os/sdk/schema").PolicyCheckExpression<import("@astrale-os/sdk/schema").PolicyRef, import("@astrale-os/sdk/schema").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.whois"> & {
803
- readonly name: "whois";
804
- })> & {
805
- readonly byKey: Readonly<{
806
- "kernel.astrale.ai:class.Identity.method.can": import("@astrale-os/sdk/schema").ResolvedMethod<{
807
- policy: string;
808
- object: string;
809
- }, {
810
- readonly mode: 'value';
811
- readonly value: {
812
- allowed: boolean;
813
- };
814
- }, true, "default", "authenticated", never, "kernel.astrale.ai:class.Identity.method.can"> & {
815
- readonly name: "can";
816
- };
817
- "kernel.astrale.ai:class.Identity.method.mint": import("@astrale-os/sdk/schema").ResolvedMethod<{
818
- audience?: string | undefined;
819
- ttlSeconds: number;
820
- grant?: unknown;
821
- }, {
822
- readonly mode: 'value';
823
- readonly value: string;
824
- }, true, "default", "authorized", import("@astrale-os/sdk/schema").PolicyCheckExpression<import("@astrale-os/sdk/schema").PolicyRef, import("@astrale-os/sdk/schema").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.mint"> & {
825
- readonly name: "mint";
826
- };
827
- "kernel.astrale.ai:class.Identity.method.whoami": import("@astrale-os/sdk/schema").ResolvedMethod<Record<string, never>, {
828
- readonly mode: 'value';
829
- readonly value: {
830
- id: string;
831
- issuer: string;
832
- subject: string;
833
- frozen: boolean;
834
- requiredClaims: ({
835
- claim: string;
836
- op: "contains";
837
- value: unknown;
838
- } | {
839
- claim: string;
840
- op: "eq";
841
- value: unknown;
842
- } | {
843
- claim: string;
844
- op: "exists";
845
- })[];
846
- };
847
- }, true, "default", "authenticated", never, "kernel.astrale.ai:class.Identity.method.whoami"> & {
848
- readonly name: "whoami";
849
- };
850
- "kernel.astrale.ai:class.Identity.method.whois": import("@astrale-os/sdk/schema").ResolvedMethod<{
851
- issuer: string;
852
- subject: string;
853
- }, {
854
- readonly mode: 'value';
855
- readonly value: {
856
- id: string;
857
- issuer: string;
858
- subject: string;
859
- frozen: boolean;
860
- requiredClaims: ({
861
- claim: string;
862
- op: "contains";
863
- value: unknown;
864
- } | {
865
- claim: string;
866
- op: "eq";
867
- value: unknown;
868
- } | {
869
- claim: string;
870
- op: "exists";
871
- })[];
872
- } | null;
873
- }, true, "default", "authorized", import("@astrale-os/sdk/schema").PolicyCheckExpression<import("@astrale-os/sdk/schema").PolicyRef, import("@astrale-os/sdk/schema").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.whois"> & {
874
- readonly name: "whois";
875
- };
876
- }>;
877
- get<Key extends "kernel.astrale.ai:class.Identity.method.can" | "kernel.astrale.ai:class.Identity.method.mint" | "kernel.astrale.ai:class.Identity.method.whoami" | "kernel.astrale.ai:class.Identity.method.whois">(key: Key): Readonly<{
878
- "kernel.astrale.ai:class.Identity.method.can": import("@astrale-os/sdk/schema").ResolvedMethod<{
879
- policy: string;
880
- object: string;
881
- }, {
882
- readonly mode: 'value';
883
- readonly value: {
884
- allowed: boolean;
885
- };
886
- }, true, "default", "authenticated", never, "kernel.astrale.ai:class.Identity.method.can"> & {
887
- readonly name: "can";
888
- };
889
- "kernel.astrale.ai:class.Identity.method.mint": import("@astrale-os/sdk/schema").ResolvedMethod<{
890
- audience?: string | undefined;
891
- ttlSeconds: number;
892
- grant?: unknown;
893
- }, {
894
- readonly mode: 'value';
895
- readonly value: string;
896
- }, true, "default", "authorized", import("@astrale-os/sdk/schema").PolicyCheckExpression<import("@astrale-os/sdk/schema").PolicyRef, import("@astrale-os/sdk/schema").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.mint"> & {
897
- readonly name: "mint";
898
- };
899
- "kernel.astrale.ai:class.Identity.method.whoami": import("@astrale-os/sdk/schema").ResolvedMethod<Record<string, never>, {
900
- readonly mode: 'value';
901
- readonly value: {
902
- id: string;
903
- issuer: string;
904
- subject: string;
905
- frozen: boolean;
906
- requiredClaims: ({
907
- claim: string;
908
- op: "contains";
909
- value: unknown;
910
- } | {
911
- claim: string;
912
- op: "eq";
913
- value: unknown;
914
- } | {
915
- claim: string;
916
- op: "exists";
917
- })[];
918
- };
919
- }, true, "default", "authenticated", never, "kernel.astrale.ai:class.Identity.method.whoami"> & {
920
- readonly name: "whoami";
921
- };
922
- "kernel.astrale.ai:class.Identity.method.whois": import("@astrale-os/sdk/schema").ResolvedMethod<{
923
- issuer: string;
924
- subject: string;
925
- }, {
926
- readonly mode: 'value';
927
- readonly value: {
928
- id: string;
929
- issuer: string;
930
- subject: string;
931
- frozen: boolean;
932
- requiredClaims: ({
933
- claim: string;
934
- op: "contains";
935
- value: unknown;
936
- } | {
937
- claim: string;
938
- op: "eq";
939
- value: unknown;
940
- } | {
941
- claim: string;
942
- op: "exists";
943
- })[];
944
- } | null;
945
- }, true, "default", "authorized", import("@astrale-os/sdk/schema").PolicyCheckExpression<import("@astrale-os/sdk/schema").PolicyRef, import("@astrale-os/sdk/schema").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.whois"> & {
946
- readonly name: "whois";
947
- };
948
- }>[Key];
949
- get(key: import("@astrale-os/sdk/schema").MethodKey): import("@astrale-os/sdk/schema").ResolvedMethod | undefined;
950
- }, import("@astrale-os/sdk/schema").NodeClassDefinition & {
951
- readonly ref: import("@astrale-os/sdk/schema").ClassRef<"Identity"> & {
952
- readonly origin: "kernel.astrale.ai";
953
- };
954
- readonly kind: 'node';
955
- readonly abstract: true;
956
- }, readonly [import("@astrale-os/sdk/schema").ResolvedClass<"node", Readonly<Readonly<{}>> & Iterable<never> & {
957
- readonly byKey: Readonly<{}>;
958
- get<Key extends never>(key: Key): Readonly<{}>[Key];
959
- get(key: import("@astrale-os/sdk/schema").PropertyKey): import("@astrale-os/sdk/schema").ResolvedProperty | undefined;
960
- from(input: Readonly<{} & {}>): import("@astrale-os/sdk/schema").PropertyValues;
961
- }, Readonly<Readonly<{}>> & Iterable<never> & {
962
- readonly byKey: Readonly<{}>;
963
- get<Key extends never>(key: Key): Readonly<{}>[Key];
964
- get(key: import("@astrale-os/sdk/schema").MethodKey): import("@astrale-os/sdk/schema").ResolvedMethod | undefined;
965
- }, Readonly<Readonly<{}>> & Iterable<never> & {
966
- readonly byKey: Readonly<{}>;
967
- get<Key extends never>(key: Key): Readonly<{}>[Key];
968
- get(key: import("@astrale-os/sdk/schema").MethodKey): import("@astrale-os/sdk/schema").ResolvedMethod | undefined;
969
- }, Readonly<Readonly<{}>> & Iterable<never> & {
970
- readonly byKey: Readonly<{}>;
971
- get<Key extends never>(key: Key): Readonly<{}>[Key];
972
- get(key: import("@astrale-os/sdk/schema").PropertyKey): import("@astrale-os/sdk/schema").ResolvedProperty | undefined;
973
- from(input: Readonly<{} & {}>): import("@astrale-os/sdk/schema").PropertyValues;
974
- }, Readonly<Readonly<{}>> & Iterable<never> & {
975
- readonly byKey: Readonly<{}>;
976
- get<Key extends never>(key: Key): Readonly<{}>[Key];
977
- get(key: import("@astrale-os/sdk/schema").MethodKey): import("@astrale-os/sdk/schema").ResolvedMethod | undefined;
978
- }, Readonly<Readonly<{}>> & Iterable<never> & {
979
- readonly byKey: Readonly<{}>;
980
- get<Key extends never>(key: Key): Readonly<{}>[Key];
981
- get(key: import("@astrale-os/sdk/schema").MethodKey): import("@astrale-os/sdk/schema").ResolvedMethod | undefined;
982
- }, import("@astrale-os/sdk/schema").NodeClassDefinition & {
983
- readonly ref: import("@astrale-os/sdk/schema").ClassRef<"Node"> & {
984
- readonly origin: "kernel.astrale.ai";
985
- };
986
- readonly kind: 'node';
987
- readonly abstract: true;
988
- }, readonly []> & {
989
- readonly ref: import("@astrale-os/sdk/schema").ClassRef<"Node"> & {
990
- readonly origin: "kernel.astrale.ai";
991
- };
992
- readonly key: "kernel.astrale.ai:class.Node";
993
- }]> & {
994
- readonly ref: import("@astrale-os/sdk/schema").ClassRef<"Identity"> & {
995
- readonly origin: "kernel.astrale.ai";
996
- };
997
- readonly key: "kernel.astrale.ai:class.Identity";
998
- }];
999
- readonly properties: {
1000
- displayName: import("@astrale-os/sdk/schema").Property<z.ZodString, {
1001
- readonly required: false;
1002
- }>;
1003
- };
1004
- readonly methods: {
1005
- readonly resolveHome: import("@astrale-os/sdk/schema").Method<{
1006
- readonly description: "Resolve this User and its canonical personal Space.";
1007
- readonly auth: "authenticated";
1008
- readonly input: z.ZodObject<{}, z.core.$strict>;
1009
- readonly output: z.ZodObject<{
1010
- userId: z.ZodString;
1011
- personalSpaceId: z.ZodNullable<z.ZodString>;
1012
- }, z.core.$strict>;
1013
- }>;
1014
- };
1015
- }>;