@astrale-domains/shell 0.1.0-beta.45 → 0.1.0-beta.48
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.
- package/README.md +57 -5
- package/dist/domain.d.ts +53 -4
- package/dist/domain.js +12 -1
- package/dist/functions/namespace/index.js +3 -0
- package/dist/functions/namespace/link.js +30 -0
- package/dist/functions/namespace/namespace-errors.js +28 -0
- package/dist/functions/namespace/namespace-name.js +13 -0
- package/dist/functions/namespace/rename.js +31 -0
- package/dist/functions/namespace/unlink.js +21 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/integrations/integrations.d.ts +1 -1
- package/dist/integrations/user-invitation/request-user-invitation.d.ts +1 -1
- package/dist/mutations/namespace/alias-write.js +22 -0
- package/dist/mutations/namespace/index.js +3 -0
- package/dist/mutations/namespace/link-alias.js +15 -0
- package/dist/mutations/namespace/rename-alias.js +13 -0
- package/dist/mutations/namespace/unlink-alias.js +13 -0
- package/dist/queries/namespace/index.js +1 -0
- package/dist/queries/namespace/read-designated-node.js +12 -0
- package/dist/runtime.d.ts +749 -19
- package/dist/runtime.js +10 -1
- package/dist/schema/index.d.ts +1 -0
- package/dist/schema/index.js +1 -0
- package/dist/schema/modules/application/functions/list-entrypoints.d.ts +1 -1
- package/dist/schema/modules/group/classes/group.d.ts +3 -2
- package/dist/schema/modules/group/classes/group.js +2 -0
- package/dist/schema/modules/namespace/classes/alias.d.ts +21 -0
- package/dist/schema/modules/namespace/classes/alias.js +13 -0
- package/dist/schema/modules/namespace/classes/index.d.ts +2 -0
- package/dist/schema/modules/namespace/classes/index.js +2 -0
- package/dist/schema/modules/namespace/classes/namespace.d.ts +31 -0
- package/dist/schema/modules/namespace/classes/namespace.js +10 -0
- package/dist/schema/modules/namespace/core/index.d.ts +1 -0
- package/dist/schema/modules/namespace/core/index.js +1 -0
- package/dist/schema/modules/namespace/core/views-namespace.d.ts +2 -0
- package/dist/schema/modules/namespace/core/views-namespace.js +7 -0
- package/dist/schema/modules/namespace/functions/index.js +3 -0
- package/dist/schema/modules/namespace/functions/link.js +11 -0
- package/dist/schema/modules/namespace/functions/rename.js +11 -0
- package/dist/schema/modules/namespace/functions/unlink.js +11 -0
- package/dist/schema/modules/namespace/index.d.ts +2 -0
- package/dist/schema/modules/namespace/index.js +2 -0
- package/dist/schema/modules/namespace/types/index.js +1 -0
- package/dist/schema/modules/namespace/types/namespace-name.js +7 -0
- package/dist/schema/modules/user/classes/user.d.ts +2 -1
- package/dist/schema/modules/user/classes/user.js +2 -0
- package/dist/schema/schema.d.ts +210 -15
- package/dist/schema/schema.js +8 -2
- package/package.json +3 -3
package/dist/schema/schema.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export declare const ORIGIN: 'shell.astrale.ai';
|
|
|
3
3
|
declare const classes: {
|
|
4
4
|
readonly User: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
5
5
|
readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
|
|
6
|
+
readonly inheritance: "open";
|
|
6
7
|
readonly policies: {
|
|
7
8
|
readonly read: true;
|
|
8
9
|
};
|
|
@@ -21,11 +22,12 @@ declare const classes: {
|
|
|
21
22
|
user: string;
|
|
22
23
|
state: "accepted" | "cancelled" | "completed" | "expired" | "failed" | "pending" | "registered" | "registering";
|
|
23
24
|
};
|
|
24
|
-
}, "authorized", true, false, undefined>>;
|
|
25
|
+
}, "authorized", true, false, undefined, undefined>>;
|
|
25
26
|
};
|
|
26
27
|
}>;
|
|
27
28
|
readonly Group: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
28
29
|
readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
|
|
30
|
+
readonly inheritance: "open";
|
|
29
31
|
readonly policies: {
|
|
30
32
|
readonly read: true;
|
|
31
33
|
};
|
|
@@ -37,14 +39,14 @@ declare const classes: {
|
|
|
37
39
|
}, {
|
|
38
40
|
readonly mode: 'value';
|
|
39
41
|
readonly value: Record<string, never>;
|
|
40
|
-
}, "authorized", true, false, undefined>>;
|
|
42
|
+
}, "authorized", true, false, undefined, undefined>>;
|
|
41
43
|
readonly unassignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
42
44
|
member: string;
|
|
43
45
|
group: string;
|
|
44
46
|
}, {
|
|
45
47
|
readonly mode: 'value';
|
|
46
48
|
readonly value: Record<string, never>;
|
|
47
|
-
}, "authorized", true, false, undefined>>;
|
|
49
|
+
}, "authorized", true, false, undefined, undefined>>;
|
|
48
50
|
};
|
|
49
51
|
}>;
|
|
50
52
|
readonly member_of_group: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
|
|
@@ -63,6 +65,52 @@ declare const classes: {
|
|
|
63
65
|
readonly constraints: Record<never, never>;
|
|
64
66
|
readonly effectiveProperties: never;
|
|
65
67
|
}>;
|
|
68
|
+
readonly Namespace: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
69
|
+
readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
|
|
70
|
+
readonly policies: {
|
|
71
|
+
readonly read: true;
|
|
72
|
+
readonly traverse: true;
|
|
73
|
+
};
|
|
74
|
+
readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Named">, import("@astrale-os/sdk/schema").KernelClass<"Descriptable">];
|
|
75
|
+
readonly methods: {
|
|
76
|
+
readonly link: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
77
|
+
name: string;
|
|
78
|
+
target: string;
|
|
79
|
+
}, {
|
|
80
|
+
readonly mode: 'value';
|
|
81
|
+
readonly value: Record<string, never>;
|
|
82
|
+
}, "authorized", false, false, undefined, undefined>>;
|
|
83
|
+
readonly unlink: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
84
|
+
name: string;
|
|
85
|
+
}, {
|
|
86
|
+
readonly mode: 'value';
|
|
87
|
+
readonly value: Record<string, never>;
|
|
88
|
+
}, "authorized", false, false, undefined, undefined>>;
|
|
89
|
+
readonly rename: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
90
|
+
name: string;
|
|
91
|
+
to: string;
|
|
92
|
+
}, {
|
|
93
|
+
readonly mode: 'value';
|
|
94
|
+
readonly value: Record<string, never>;
|
|
95
|
+
}, "authorized", false, false, undefined, undefined>>;
|
|
96
|
+
};
|
|
97
|
+
}>;
|
|
98
|
+
readonly alias: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
|
|
99
|
+
readonly depth: 0;
|
|
100
|
+
readonly abstract: false;
|
|
101
|
+
readonly extends: readonly [];
|
|
102
|
+
readonly properties: never;
|
|
103
|
+
readonly source: {
|
|
104
|
+
readonly as: "namespace";
|
|
105
|
+
readonly outgoing: "0..*";
|
|
106
|
+
};
|
|
107
|
+
readonly target: {
|
|
108
|
+
readonly as: "node";
|
|
109
|
+
readonly incoming: "0..*";
|
|
110
|
+
};
|
|
111
|
+
readonly constraints: Record<never, never>;
|
|
112
|
+
readonly effectiveProperties: never;
|
|
113
|
+
}>;
|
|
66
114
|
};
|
|
67
115
|
export type ShellClasses = typeof classes;
|
|
68
116
|
declare const input: {
|
|
@@ -74,6 +122,7 @@ declare const input: {
|
|
|
74
122
|
readonly classes: {
|
|
75
123
|
readonly User: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
76
124
|
readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
|
|
125
|
+
readonly inheritance: "open";
|
|
77
126
|
readonly policies: {
|
|
78
127
|
readonly read: true;
|
|
79
128
|
};
|
|
@@ -92,11 +141,12 @@ declare const input: {
|
|
|
92
141
|
user: string;
|
|
93
142
|
state: "accepted" | "cancelled" | "completed" | "expired" | "failed" | "pending" | "registered" | "registering";
|
|
94
143
|
};
|
|
95
|
-
}, "authorized", true, false, undefined>>;
|
|
144
|
+
}, "authorized", true, false, undefined, undefined>>;
|
|
96
145
|
};
|
|
97
146
|
}>;
|
|
98
147
|
readonly Group: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
99
148
|
readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
|
|
149
|
+
readonly inheritance: "open";
|
|
100
150
|
readonly policies: {
|
|
101
151
|
readonly read: true;
|
|
102
152
|
};
|
|
@@ -108,14 +158,14 @@ declare const input: {
|
|
|
108
158
|
}, {
|
|
109
159
|
readonly mode: 'value';
|
|
110
160
|
readonly value: Record<string, never>;
|
|
111
|
-
}, "authorized", true, false, undefined>>;
|
|
161
|
+
}, "authorized", true, false, undefined, undefined>>;
|
|
112
162
|
readonly unassignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
113
163
|
member: string;
|
|
114
164
|
group: string;
|
|
115
165
|
}, {
|
|
116
166
|
readonly mode: 'value';
|
|
117
167
|
readonly value: Record<string, never>;
|
|
118
|
-
}, "authorized", true, false, undefined>>;
|
|
168
|
+
}, "authorized", true, false, undefined, undefined>>;
|
|
119
169
|
};
|
|
120
170
|
}>;
|
|
121
171
|
readonly member_of_group: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
|
|
@@ -134,6 +184,52 @@ declare const input: {
|
|
|
134
184
|
readonly constraints: Record<never, never>;
|
|
135
185
|
readonly effectiveProperties: never;
|
|
136
186
|
}>;
|
|
187
|
+
readonly Namespace: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
188
|
+
readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
|
|
189
|
+
readonly policies: {
|
|
190
|
+
readonly read: true;
|
|
191
|
+
readonly traverse: true;
|
|
192
|
+
};
|
|
193
|
+
readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Named">, import("@astrale-os/sdk/schema").KernelClass<"Descriptable">];
|
|
194
|
+
readonly methods: {
|
|
195
|
+
readonly link: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
196
|
+
name: string;
|
|
197
|
+
target: string;
|
|
198
|
+
}, {
|
|
199
|
+
readonly mode: 'value';
|
|
200
|
+
readonly value: Record<string, never>;
|
|
201
|
+
}, "authorized", false, false, undefined, undefined>>;
|
|
202
|
+
readonly unlink: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
203
|
+
name: string;
|
|
204
|
+
}, {
|
|
205
|
+
readonly mode: 'value';
|
|
206
|
+
readonly value: Record<string, never>;
|
|
207
|
+
}, "authorized", false, false, undefined, undefined>>;
|
|
208
|
+
readonly rename: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
209
|
+
name: string;
|
|
210
|
+
to: string;
|
|
211
|
+
}, {
|
|
212
|
+
readonly mode: 'value';
|
|
213
|
+
readonly value: Record<string, never>;
|
|
214
|
+
}, "authorized", false, false, undefined, undefined>>;
|
|
215
|
+
};
|
|
216
|
+
}>;
|
|
217
|
+
readonly alias: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
|
|
218
|
+
readonly depth: 0;
|
|
219
|
+
readonly abstract: false;
|
|
220
|
+
readonly extends: readonly [];
|
|
221
|
+
readonly properties: never;
|
|
222
|
+
readonly source: {
|
|
223
|
+
readonly as: "namespace";
|
|
224
|
+
readonly outgoing: "0..*";
|
|
225
|
+
};
|
|
226
|
+
readonly target: {
|
|
227
|
+
readonly as: "node";
|
|
228
|
+
readonly incoming: "0..*";
|
|
229
|
+
};
|
|
230
|
+
readonly constraints: Record<never, never>;
|
|
231
|
+
readonly effectiveProperties: never;
|
|
232
|
+
}>;
|
|
137
233
|
};
|
|
138
234
|
readonly functions: {
|
|
139
235
|
readonly listEntrypoints: import("@astrale-os/sdk/schema").Function<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
@@ -145,7 +241,7 @@ declare const input: {
|
|
|
145
241
|
view: string;
|
|
146
242
|
}[];
|
|
147
243
|
};
|
|
148
|
-
}, "authorized", false, false, undefined>>;
|
|
244
|
+
}, "authorized", false, false, undefined, undefined>>;
|
|
149
245
|
};
|
|
150
246
|
readonly policies: {
|
|
151
247
|
readonly belongsToGroup: import("@astrale-os/sdk/schema").Policy;
|
|
@@ -161,6 +257,7 @@ declare const input: {
|
|
|
161
257
|
readonly admin: import("@astrale-os/sdk/schema").CoreNode;
|
|
162
258
|
readonly applications: import("@astrale-os/sdk/schema").CoreNode;
|
|
163
259
|
readonly member: import("@astrale-os/sdk/schema").CoreNode;
|
|
260
|
+
readonly views: import("@astrale-os/sdk/schema").CoreNode;
|
|
164
261
|
};
|
|
165
262
|
};
|
|
166
263
|
};
|
|
@@ -171,6 +268,7 @@ export declare const ShellSchema: import("@astrale-os/sdk/schema").AuthoredSchem
|
|
|
171
268
|
readonly classes: {
|
|
172
269
|
readonly User: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
173
270
|
readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
|
|
271
|
+
readonly inheritance: "open";
|
|
174
272
|
readonly policies: {
|
|
175
273
|
readonly read: true;
|
|
176
274
|
};
|
|
@@ -189,11 +287,12 @@ export declare const ShellSchema: import("@astrale-os/sdk/schema").AuthoredSchem
|
|
|
189
287
|
user: string;
|
|
190
288
|
state: "accepted" | "cancelled" | "completed" | "expired" | "failed" | "pending" | "registered" | "registering";
|
|
191
289
|
};
|
|
192
|
-
}, "authorized", true, false, undefined>>;
|
|
290
|
+
}, "authorized", true, false, undefined, undefined>>;
|
|
193
291
|
};
|
|
194
292
|
}>;
|
|
195
293
|
readonly Group: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
196
294
|
readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
|
|
295
|
+
readonly inheritance: "open";
|
|
197
296
|
readonly policies: {
|
|
198
297
|
readonly read: true;
|
|
199
298
|
};
|
|
@@ -205,14 +304,14 @@ export declare const ShellSchema: import("@astrale-os/sdk/schema").AuthoredSchem
|
|
|
205
304
|
}, {
|
|
206
305
|
readonly mode: 'value';
|
|
207
306
|
readonly value: Record<string, never>;
|
|
208
|
-
}, "authorized", true, false, undefined>>;
|
|
307
|
+
}, "authorized", true, false, undefined, undefined>>;
|
|
209
308
|
readonly unassignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
210
309
|
member: string;
|
|
211
310
|
group: string;
|
|
212
311
|
}, {
|
|
213
312
|
readonly mode: 'value';
|
|
214
313
|
readonly value: Record<string, never>;
|
|
215
|
-
}, "authorized", true, false, undefined>>;
|
|
314
|
+
}, "authorized", true, false, undefined, undefined>>;
|
|
216
315
|
};
|
|
217
316
|
}>;
|
|
218
317
|
readonly member_of_group: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
|
|
@@ -231,6 +330,52 @@ export declare const ShellSchema: import("@astrale-os/sdk/schema").AuthoredSchem
|
|
|
231
330
|
readonly constraints: Record<never, never>;
|
|
232
331
|
readonly effectiveProperties: never;
|
|
233
332
|
}>;
|
|
333
|
+
readonly Namespace: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
334
|
+
readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
|
|
335
|
+
readonly policies: {
|
|
336
|
+
readonly read: true;
|
|
337
|
+
readonly traverse: true;
|
|
338
|
+
};
|
|
339
|
+
readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Named">, import("@astrale-os/sdk/schema").KernelClass<"Descriptable">];
|
|
340
|
+
readonly methods: {
|
|
341
|
+
readonly link: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
342
|
+
name: string;
|
|
343
|
+
target: string;
|
|
344
|
+
}, {
|
|
345
|
+
readonly mode: 'value';
|
|
346
|
+
readonly value: Record<string, never>;
|
|
347
|
+
}, "authorized", false, false, undefined, undefined>>;
|
|
348
|
+
readonly unlink: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
349
|
+
name: string;
|
|
350
|
+
}, {
|
|
351
|
+
readonly mode: 'value';
|
|
352
|
+
readonly value: Record<string, never>;
|
|
353
|
+
}, "authorized", false, false, undefined, undefined>>;
|
|
354
|
+
readonly rename: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
355
|
+
name: string;
|
|
356
|
+
to: string;
|
|
357
|
+
}, {
|
|
358
|
+
readonly mode: 'value';
|
|
359
|
+
readonly value: Record<string, never>;
|
|
360
|
+
}, "authorized", false, false, undefined, undefined>>;
|
|
361
|
+
};
|
|
362
|
+
}>;
|
|
363
|
+
readonly alias: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
|
|
364
|
+
readonly depth: 0;
|
|
365
|
+
readonly abstract: false;
|
|
366
|
+
readonly extends: readonly [];
|
|
367
|
+
readonly properties: never;
|
|
368
|
+
readonly source: {
|
|
369
|
+
readonly as: "namespace";
|
|
370
|
+
readonly outgoing: "0..*";
|
|
371
|
+
};
|
|
372
|
+
readonly target: {
|
|
373
|
+
readonly as: "node";
|
|
374
|
+
readonly incoming: "0..*";
|
|
375
|
+
};
|
|
376
|
+
readonly constraints: Record<never, never>;
|
|
377
|
+
readonly effectiveProperties: never;
|
|
378
|
+
}>;
|
|
234
379
|
};
|
|
235
380
|
readonly functions: {
|
|
236
381
|
readonly listEntrypoints: import("@astrale-os/sdk/schema").Function<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
@@ -242,7 +387,7 @@ export declare const ShellSchema: import("@astrale-os/sdk/schema").AuthoredSchem
|
|
|
242
387
|
view: string;
|
|
243
388
|
}[];
|
|
244
389
|
};
|
|
245
|
-
}, "authorized", false, false, undefined>>;
|
|
390
|
+
}, "authorized", false, false, undefined, undefined>>;
|
|
246
391
|
};
|
|
247
392
|
readonly policies: {
|
|
248
393
|
readonly belongsToGroup: import("@astrale-os/sdk/schema").Policy;
|
|
@@ -258,6 +403,7 @@ export declare const ShellSchema: import("@astrale-os/sdk/schema").AuthoredSchem
|
|
|
258
403
|
readonly admin: import("@astrale-os/sdk/schema").CoreNode;
|
|
259
404
|
readonly applications: import("@astrale-os/sdk/schema").CoreNode;
|
|
260
405
|
readonly member: import("@astrale-os/sdk/schema").CoreNode;
|
|
406
|
+
readonly views: import("@astrale-os/sdk/schema").CoreNode;
|
|
261
407
|
};
|
|
262
408
|
};
|
|
263
409
|
}, {
|
|
@@ -270,6 +416,7 @@ export declare const S: schema.ResolvedDomainOf<import("@astrale-os/sdk/schema")
|
|
|
270
416
|
readonly classes: {
|
|
271
417
|
readonly User: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
272
418
|
readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
|
|
419
|
+
readonly inheritance: "open";
|
|
273
420
|
readonly policies: {
|
|
274
421
|
readonly read: true;
|
|
275
422
|
};
|
|
@@ -288,11 +435,12 @@ export declare const S: schema.ResolvedDomainOf<import("@astrale-os/sdk/schema")
|
|
|
288
435
|
user: string;
|
|
289
436
|
state: "accepted" | "cancelled" | "completed" | "expired" | "failed" | "pending" | "registered" | "registering";
|
|
290
437
|
};
|
|
291
|
-
}, "authorized", true, false, undefined>>;
|
|
438
|
+
}, "authorized", true, false, undefined, undefined>>;
|
|
292
439
|
};
|
|
293
440
|
}>;
|
|
294
441
|
readonly Group: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
295
442
|
readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
|
|
443
|
+
readonly inheritance: "open";
|
|
296
444
|
readonly policies: {
|
|
297
445
|
readonly read: true;
|
|
298
446
|
};
|
|
@@ -304,14 +452,14 @@ export declare const S: schema.ResolvedDomainOf<import("@astrale-os/sdk/schema")
|
|
|
304
452
|
}, {
|
|
305
453
|
readonly mode: 'value';
|
|
306
454
|
readonly value: Record<string, never>;
|
|
307
|
-
}, "authorized", true, false, undefined>>;
|
|
455
|
+
}, "authorized", true, false, undefined, undefined>>;
|
|
308
456
|
readonly unassignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
309
457
|
member: string;
|
|
310
458
|
group: string;
|
|
311
459
|
}, {
|
|
312
460
|
readonly mode: 'value';
|
|
313
461
|
readonly value: Record<string, never>;
|
|
314
|
-
}, "authorized", true, false, undefined>>;
|
|
462
|
+
}, "authorized", true, false, undefined, undefined>>;
|
|
315
463
|
};
|
|
316
464
|
}>;
|
|
317
465
|
readonly member_of_group: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
|
|
@@ -330,6 +478,52 @@ export declare const S: schema.ResolvedDomainOf<import("@astrale-os/sdk/schema")
|
|
|
330
478
|
readonly constraints: Record<never, never>;
|
|
331
479
|
readonly effectiveProperties: never;
|
|
332
480
|
}>;
|
|
481
|
+
readonly Namespace: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
482
|
+
readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
|
|
483
|
+
readonly policies: {
|
|
484
|
+
readonly read: true;
|
|
485
|
+
readonly traverse: true;
|
|
486
|
+
};
|
|
487
|
+
readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Named">, import("@astrale-os/sdk/schema").KernelClass<"Descriptable">];
|
|
488
|
+
readonly methods: {
|
|
489
|
+
readonly link: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
490
|
+
name: string;
|
|
491
|
+
target: string;
|
|
492
|
+
}, {
|
|
493
|
+
readonly mode: 'value';
|
|
494
|
+
readonly value: Record<string, never>;
|
|
495
|
+
}, "authorized", false, false, undefined, undefined>>;
|
|
496
|
+
readonly unlink: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
497
|
+
name: string;
|
|
498
|
+
}, {
|
|
499
|
+
readonly mode: 'value';
|
|
500
|
+
readonly value: Record<string, never>;
|
|
501
|
+
}, "authorized", false, false, undefined, undefined>>;
|
|
502
|
+
readonly rename: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
503
|
+
name: string;
|
|
504
|
+
to: string;
|
|
505
|
+
}, {
|
|
506
|
+
readonly mode: 'value';
|
|
507
|
+
readonly value: Record<string, never>;
|
|
508
|
+
}, "authorized", false, false, undefined, undefined>>;
|
|
509
|
+
};
|
|
510
|
+
}>;
|
|
511
|
+
readonly alias: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
|
|
512
|
+
readonly depth: 0;
|
|
513
|
+
readonly abstract: false;
|
|
514
|
+
readonly extends: readonly [];
|
|
515
|
+
readonly properties: never;
|
|
516
|
+
readonly source: {
|
|
517
|
+
readonly as: "namespace";
|
|
518
|
+
readonly outgoing: "0..*";
|
|
519
|
+
};
|
|
520
|
+
readonly target: {
|
|
521
|
+
readonly as: "node";
|
|
522
|
+
readonly incoming: "0..*";
|
|
523
|
+
};
|
|
524
|
+
readonly constraints: Record<never, never>;
|
|
525
|
+
readonly effectiveProperties: never;
|
|
526
|
+
}>;
|
|
333
527
|
};
|
|
334
528
|
readonly functions: {
|
|
335
529
|
readonly listEntrypoints: import("@astrale-os/sdk/schema").Function<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
@@ -341,7 +535,7 @@ export declare const S: schema.ResolvedDomainOf<import("@astrale-os/sdk/schema")
|
|
|
341
535
|
view: string;
|
|
342
536
|
}[];
|
|
343
537
|
};
|
|
344
|
-
}, "authorized", false, false, undefined>>;
|
|
538
|
+
}, "authorized", false, false, undefined, undefined>>;
|
|
345
539
|
};
|
|
346
540
|
readonly policies: {
|
|
347
541
|
readonly belongsToGroup: import("@astrale-os/sdk/schema").Policy;
|
|
@@ -357,6 +551,7 @@ export declare const S: schema.ResolvedDomainOf<import("@astrale-os/sdk/schema")
|
|
|
357
551
|
readonly admin: import("@astrale-os/sdk/schema").CoreNode;
|
|
358
552
|
readonly applications: import("@astrale-os/sdk/schema").CoreNode;
|
|
359
553
|
readonly member: import("@astrale-os/sdk/schema").CoreNode;
|
|
554
|
+
readonly views: import("@astrale-os/sdk/schema").CoreNode;
|
|
360
555
|
};
|
|
361
556
|
};
|
|
362
557
|
}, {
|
package/dist/schema/schema.js
CHANGED
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
import { defineSchema, KernelSchema, schema } from '@astrale-os/sdk/schema';
|
|
2
2
|
import { listEntrypoints } from './modules/application/index.js';
|
|
3
3
|
import { Group, member_of_group, adminGroup, applicationsGroup, memberGroup, belongsToGroup, } from './modules/group/index.js';
|
|
4
|
+
import { Namespace, alias, viewsNamespace } from './modules/namespace/index.js';
|
|
4
5
|
import { User } from './modules/user/index.js';
|
|
5
6
|
import { ownsClass, administersShellClass, usesFunction } from './policies/index.js';
|
|
6
7
|
import { applicationView } from './views/index.js';
|
|
7
8
|
export const ORIGIN = 'shell.astrale.ai';
|
|
8
9
|
const dependencies = { kernel: KernelSchema };
|
|
9
|
-
const classes = { User, Group, member_of_group };
|
|
10
|
+
const classes = { User, Group, member_of_group, Namespace, alias };
|
|
10
11
|
const functions = { listEntrypoints };
|
|
11
12
|
const policies = { belongsToGroup, ownsClass, administersShellClass, usesFunction };
|
|
12
13
|
const views = { application: applicationView };
|
|
13
14
|
const core = {
|
|
14
|
-
nodes: {
|
|
15
|
+
nodes: {
|
|
16
|
+
admin: adminGroup,
|
|
17
|
+
applications: applicationsGroup,
|
|
18
|
+
member: memberGroup,
|
|
19
|
+
views: viewsNamespace,
|
|
20
|
+
},
|
|
15
21
|
};
|
|
16
22
|
const input = {
|
|
17
23
|
name: 'Shell',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrale-domains/shell",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.48",
|
|
4
4
|
"description": "Astrale Shell Domain schema and remote product implementation",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@astrale-os/ox": "0.1.4",
|
|
61
|
-
"@astrale-os/sdk": "0.6.0-beta.
|
|
61
|
+
"@astrale-os/sdk": "0.6.0-beta.37",
|
|
62
62
|
"@astrale-os/shell-react": "0.6.0-beta.4",
|
|
63
63
|
"@astrale-os/ui": "1.0.0-beta.37",
|
|
64
64
|
"@astrale/typescript-config": "npm:@jsr/astrale__typescript-config@~2.0.0",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"vitest": "5.0.1"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
|
-
"@astrale-os/sdk": ">=0.6.0-beta.
|
|
79
|
+
"@astrale-os/sdk": ">=0.6.0-beta.37 <1.0.0"
|
|
80
80
|
},
|
|
81
81
|
"devEngines": {
|
|
82
82
|
"runtime": {
|