@astrale-domains/shell 0.1.0-beta.23 → 0.1.0-beta.25
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/CHANGELOG.md +28 -0
- package/README.md +83 -79
- package/dist/application.d.ts +6 -5
- package/dist/application.js +20 -51
- package/dist/functions/group/assign-user-to-group.d.ts +27 -0
- package/dist/functions/group/assign-user-to-group.js +4 -0
- package/dist/functions/group/change-user-group-membership.d.ts +7 -0
- package/dist/functions/group/change-user-group-membership.js +34 -0
- package/dist/functions/group/group-membership-errors.d.ts +28 -0
- package/dist/functions/group/group-membership-errors.js +23 -0
- package/dist/functions/group/index.d.ts +2 -3
- package/dist/functions/group/index.js +2 -3
- package/dist/functions/group/unassign-user-from-group.d.ts +27 -0
- package/dist/functions/group/unassign-user-from-group.js +4 -0
- package/dist/functions/user/index.d.ts +1 -3
- package/dist/functions/user/index.js +1 -3
- package/dist/functions/user/invite-user.d.ts +30 -0
- package/dist/functions/user/invite-user.js +39 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/integrations/index.d.ts +1 -0
- package/dist/integrations/index.js +1 -0
- package/dist/integrations/integrations.d.ts +9 -0
- package/dist/integrations/integrations.js +2 -0
- package/dist/integrations/user-invitation/index.d.ts +4 -0
- package/dist/integrations/user-invitation/index.js +3 -0
- package/dist/integrations/user-invitation/invitation-request-failure.d.ts +5 -0
- package/dist/integrations/user-invitation/invitation-request-failure.js +9 -0
- package/dist/integrations/user-invitation/invite-user-request.d.ts +6 -0
- package/dist/integrations/user-invitation/invite-user-request.js +1 -0
- package/dist/integrations/user-invitation/request-user-invitation.d.ts +8 -0
- package/dist/integrations/user-invitation/request-user-invitation.js +9 -0
- package/dist/mutations/group/index.d.ts +1 -1
- package/dist/mutations/group/index.js +1 -1
- package/dist/mutations/group/set-user-group-membership.d.ts +26 -0
- package/dist/mutations/group/set-user-group-membership.js +29 -0
- package/dist/providers/admin-enrollment/create-admin-enrollment-provider.d.ts +7 -0
- package/dist/providers/admin-enrollment/create-admin-enrollment-provider.js +78 -0
- package/dist/providers/admin-enrollment/decode-admin-invitation-response.d.ts +7 -0
- package/dist/providers/admin-enrollment/decode-admin-invitation-response.js +20 -0
- package/dist/providers/admin-enrollment/index.d.ts +1 -0
- package/dist/providers/admin-enrollment/index.js +1 -0
- package/dist/providers/admin-enrollment/read-enrollment-response.d.ts +1 -0
- package/dist/providers/admin-enrollment/read-enrollment-response.js +34 -0
- package/dist/queries/group/index.d.ts +2 -0
- package/dist/queries/group/index.js +2 -0
- package/dist/queries/group/read-group-membership-endpoints.d.ts +13 -0
- package/dist/queries/group/read-group-membership-endpoints.js +18 -0
- package/dist/queries/group/read-user-group-membership.d.ts +15 -0
- package/dist/queries/group/read-user-group-membership.js +35 -0
- package/dist/runtime.d.ts +94 -9
- package/dist/runtime.js +9 -5
- package/dist/schema/index.d.ts +4 -4
- package/dist/schema/index.js +3 -4
- package/dist/schema/modules/group/classes/group.d.ts +4 -6
- package/dist/schema/modules/group/classes/group.js +4 -6
- package/dist/schema/modules/group/classes/index.d.ts +2 -0
- package/dist/schema/modules/group/classes/index.js +2 -0
- package/dist/schema/modules/group/classes/member-of-group.js +2 -3
- package/dist/schema/modules/group/core/administrators-group.js +6 -0
- package/dist/schema/modules/group/core/index.d.ts +2 -0
- package/dist/schema/modules/group/core/index.js +2 -0
- package/dist/schema/modules/group/core/members-group.js +6 -0
- package/dist/schema/modules/group/functions/assign-user-to-group.d.ts +7 -0
- package/dist/schema/modules/group/functions/assign-user-to-group.js +11 -0
- package/dist/schema/modules/group/functions/index.d.ts +2 -0
- package/dist/schema/modules/group/functions/index.js +2 -0
- package/dist/schema/modules/group/functions/unassign-user-from-group.d.ts +7 -0
- package/dist/schema/modules/group/functions/unassign-user-from-group.js +11 -0
- package/dist/schema/modules/group/index.d.ts +3 -9
- package/dist/schema/modules/group/index.js +3 -9
- package/dist/schema/modules/group/policies/belongs-to-group.d.ts +1 -0
- package/dist/schema/modules/group/policies/belongs-to-group.js +5 -0
- package/dist/schema/modules/group/policies/index.d.ts +1 -0
- package/dist/schema/modules/group/policies/index.js +1 -0
- package/dist/schema/modules/group/types/group-user-reference.d.ts +6 -0
- package/dist/schema/modules/group/types/group-user-reference.js +8 -0
- package/dist/schema/modules/group/types/index.d.ts +1 -0
- package/dist/schema/modules/group/types/index.js +1 -0
- package/dist/schema/modules/user/classes/index.d.ts +1 -0
- package/dist/schema/modules/user/classes/index.js +1 -0
- package/dist/schema/modules/user/classes/user.d.ts +5 -8
- package/dist/schema/modules/user/classes/user.js +7 -7
- package/dist/schema/modules/user/functions/index.d.ts +1 -0
- package/dist/schema/modules/user/functions/index.js +1 -0
- package/dist/schema/modules/user/functions/invite-user.d.ts +11 -0
- package/dist/schema/modules/user/functions/invite-user.js +12 -0
- package/dist/schema/modules/user/index.d.ts +2 -6
- package/dist/schema/modules/user/index.js +2 -6
- package/dist/schema/modules/user/types/index.d.ts +1 -0
- package/dist/schema/modules/user/types/index.js +1 -0
- package/dist/schema/modules/user/types/invitation-summary.d.ts +16 -0
- package/dist/schema/modules/user/types/invitation-summary.js +15 -0
- package/dist/schema/policies/administers-shell-class.d.ts +2 -0
- package/dist/schema/policies/administers-shell-class.js +11 -0
- package/dist/schema/policies/index.d.ts +2 -0
- package/dist/schema/policies/index.js +2 -0
- package/dist/schema/policies/owns-class.d.ts +1 -0
- package/dist/schema/policies/owns-class.js +7 -0
- package/dist/schema/schema.d.ts +14 -69
- package/dist/schema/schema.js +10 -27
- package/dist/schema/views/application-view.d.ts +1 -0
- package/dist/schema/views/application-view.js +4 -0
- package/dist/schema/views/index.d.ts +1 -0
- package/dist/schema/views/index.js +1 -0
- package/dist/utils/canonical-node-path/index.d.ts +1 -0
- package/dist/utils/canonical-node-path/index.js +1 -0
- package/dist/utils/canonical-node-path/parse-canonical-node-path.d.ts +2 -0
- package/dist/utils/canonical-node-path/parse-canonical-node-path.js +8 -0
- package/package.json +16 -7
- package/dist/functions/group/assign.d.ts +0 -3
- package/dist/functions/group/assign.js +0 -3
- package/dist/functions/group/change.d.ts +0 -6
- package/dist/functions/group/change.js +0 -41
- package/dist/functions/group/unassign.d.ts +0 -3
- package/dist/functions/group/unassign.js +0 -3
- package/dist/functions/registry/index.d.ts +0 -12
- package/dist/functions/registry/index.js +0 -12
- package/dist/functions/setup/admin.d.ts +0 -3
- package/dist/functions/setup/admin.js +0 -3
- package/dist/functions/setup/index.d.ts +0 -4
- package/dist/functions/setup/index.js +0 -4
- package/dist/functions/setup/member.d.ts +0 -3
- package/dist/functions/setup/member.js +0 -3
- package/dist/functions/setup/provision.d.ts +0 -5
- package/dist/functions/setup/provision.js +0 -70
- package/dist/functions/setup/run.d.ts +0 -7
- package/dist/functions/setup/run.js +0 -82
- package/dist/functions/space/access.d.ts +0 -7
- package/dist/functions/space/access.js +0 -41
- package/dist/functions/space/add.d.ts +0 -3
- package/dist/functions/space/add.js +0 -3
- package/dist/functions/space/default.d.ts +0 -3
- package/dist/functions/space/default.js +0 -37
- package/dist/functions/space/index.d.ts +0 -4
- package/dist/functions/space/index.js +0 -4
- package/dist/functions/space/remove.d.ts +0 -3
- package/dist/functions/space/remove.js +0 -3
- package/dist/functions/user/resolve-home.d.ts +0 -3
- package/dist/functions/user/resolve-home.js +0 -19
- package/dist/mutations/group/membership.d.ts +0 -23
- package/dist/mutations/group/membership.js +0 -32
- package/dist/mutations/space/access.d.ts +0 -25
- package/dist/mutations/space/access.js +0 -23
- package/dist/mutations/space/default.d.ts +0 -19
- package/dist/mutations/space/default.js +0 -23
- package/dist/mutations/space/index.d.ts +0 -2
- package/dist/mutations/space/index.js +0 -2
- package/dist/mutations/user/index.d.ts +0 -1
- package/dist/mutations/user/index.js +0 -1
- package/dist/mutations/user/repair.d.ts +0 -22
- package/dist/mutations/user/repair.js +0 -104
- package/dist/queries/space/access.d.ts +0 -9
- package/dist/queries/space/access.js +0 -12
- package/dist/queries/space/admin.d.ts +0 -9
- package/dist/queries/space/admin.js +0 -20
- package/dist/queries/space/index.d.ts +0 -3
- package/dist/queries/space/index.js +0 -3
- package/dist/queries/space/member.d.ts +0 -9
- package/dist/queries/space/member.js +0 -17
- package/dist/queries/user/groups.d.ts +0 -10
- package/dist/queries/user/groups.js +0 -41
- package/dist/queries/user/home.d.ts +0 -9
- package/dist/queries/user/home.js +0 -21
- package/dist/queries/user/index.d.ts +0 -5
- package/dist/queries/user/index.js +0 -5
- package/dist/queries/user/owned-spaces.d.ts +0 -9
- package/dist/queries/user/owned-spaces.js +0 -17
- package/dist/queries/user/profile.d.ts +0 -4
- package/dist/queries/user/profile.js +0 -16
- package/dist/queries/user/setup.d.ts +0 -13
- package/dist/queries/user/setup.js +0 -16
- package/dist/rules/user/index.d.ts +0 -1
- package/dist/rules/user/index.js +0 -1
- package/dist/rules/user/setup.d.ts +0 -38
- package/dist/rules/user/setup.js +0 -95
- package/dist/schema/modules/group/core/admin-group.js +0 -2
- package/dist/schema/modules/group/core/core.d.ts +0 -8
- package/dist/schema/modules/group/core/core.js +0 -6
- package/dist/schema/modules/group/core/identity.d.ts +0 -1
- package/dist/schema/modules/group/core/identity.js +0 -10
- package/dist/schema/modules/group/core/member-group.js +0 -2
- package/dist/schema/modules/group/functions/assign-user.d.ts +0 -7
- package/dist/schema/modules/group/functions/assign-user.js +0 -12
- package/dist/schema/modules/group/functions/unassign-user.d.ts +0 -7
- package/dist/schema/modules/group/functions/unassign-user.js +0 -12
- package/dist/schema/modules/group/policies/may-setup-users.d.ts +0 -1
- package/dist/schema/modules/group/policies/may-setup-users.js +0 -6
- package/dist/schema/modules/group/types/membership.d.ts +0 -276
- package/dist/schema/modules/group/types/membership.js +0 -5
- package/dist/schema/modules/group/views/group.d.ts +0 -1
- package/dist/schema/modules/group/views/group.js +0 -6
- package/dist/schema/modules/space/classes/administers-space.d.ts +0 -16
- package/dist/schema/modules/space/classes/administers-space.js +0 -9
- package/dist/schema/modules/space/classes/default-space.d.ts +0 -16
- package/dist/schema/modules/space/classes/default-space.js +0 -8
- package/dist/schema/modules/space/classes/member-of-space.d.ts +0 -16
- package/dist/schema/modules/space/classes/member-of-space.js +0 -9
- package/dist/schema/modules/space/classes/owns-space.d.ts +0 -16
- package/dist/schema/modules/space/classes/owns-space.js +0 -9
- package/dist/schema/modules/space/classes/space.d.ts +0 -15
- package/dist/schema/modules/space/classes/space.js +0 -15
- package/dist/schema/modules/space/core/core.d.ts +0 -7
- package/dist/schema/modules/space/core/core.js +0 -12
- package/dist/schema/modules/space/core/default-space.d.ts +0 -1
- package/dist/schema/modules/space/core/default-space.js +0 -6
- package/dist/schema/modules/space/functions/add-user.d.ts +0 -8
- package/dist/schema/modules/space/functions/add-user.js +0 -12
- package/dist/schema/modules/space/functions/remove-user.d.ts +0 -7
- package/dist/schema/modules/space/functions/remove-user.js +0 -11
- package/dist/schema/modules/space/functions/set-default.d.ts +0 -5
- package/dist/schema/modules/space/functions/set-default.js +0 -11
- package/dist/schema/modules/space/index.d.ts +0 -14
- package/dist/schema/modules/space/index.js +0 -14
- package/dist/schema/modules/space/policies/belongs-to-space.d.ts +0 -1
- package/dist/schema/modules/space/policies/belongs-to-space.js +0 -9
- package/dist/schema/modules/space/policies/may-administer-space.d.ts +0 -1
- package/dist/schema/modules/space/policies/may-administer-space.js +0 -8
- package/dist/schema/modules/space/policies/owns-space.d.ts +0 -1
- package/dist/schema/modules/space/policies/owns-space.js +0 -7
- package/dist/schema/modules/space/types/access.d.ts +0 -280
- package/dist/schema/modules/space/types/access.js +0 -12
- package/dist/schema/modules/space/views/space.d.ts +0 -1
- package/dist/schema/modules/space/views/space.js +0 -6
- package/dist/schema/modules/user/functions/resolve-home.d.ts +0 -7
- package/dist/schema/modules/user/functions/resolve-home.js +0 -11
- package/dist/schema/modules/user/functions/setup-admin.d.ts +0 -15
- package/dist/schema/modules/user/functions/setup-admin.js +0 -11
- package/dist/schema/modules/user/functions/setup-member.d.ts +0 -15
- package/dist/schema/modules/user/functions/setup-member.js +0 -11
- package/dist/schema/modules/user/types/setup-user.d.ts +0 -13
- package/dist/schema/modules/user/types/setup-user.js +0 -14
- package/dist/schema/modules/user/views/home.d.ts +0 -1
- package/dist/schema/modules/user/views/home.js +0 -4
- package/dist/schema/modules/user/views/user.d.ts +0 -1
- package/dist/schema/modules/user/views/user.js +0 -6
- /package/dist/schema/modules/group/core/{admin-group.d.ts → administrators-group.d.ts} +0 -0
- /package/dist/schema/modules/group/core/{member-group.d.ts → members-group.d.ts} +0 -0
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
import { type builder } from '@astrale-os/sdk/schema';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
export declare const emptyObject: z.ZodObject<{}, z.core.$strict>;
|
|
4
|
-
export declare const spaceUser: z.ZodObject<{
|
|
5
|
-
user: builder.PathAuthoring<readonly [builder.NodeClass<{
|
|
6
|
-
readonly depth: 1;
|
|
7
|
-
readonly abstract: false;
|
|
8
|
-
readonly extends: readonly [builder.ClassProjection<"node", import("@astrale-os/sdk/schema").NodeClassDefinition & {
|
|
9
|
-
readonly ref: import("@astrale-os/sdk/schema").ClassRef<"Identity"> & {
|
|
10
|
-
readonly origin: "kernel.astrale.ai";
|
|
11
|
-
};
|
|
12
|
-
readonly kind: 'node';
|
|
13
|
-
readonly abstract: true;
|
|
14
|
-
}, import("@astrale-os/sdk/schema").ClassRef & import("@astrale-os/sdk/schema").ClassRef<"Identity"> & {
|
|
15
|
-
readonly origin: "kernel.astrale.ai";
|
|
16
|
-
}, "kernel.astrale.ai:class.Identity", readonly [builder.ClassProjection<"node", import("@astrale-os/sdk/schema").NodeClassDefinition & {
|
|
17
|
-
readonly ref: import("@astrale-os/sdk/schema").ClassRef<"Node"> & {
|
|
18
|
-
readonly origin: "kernel.astrale.ai";
|
|
19
|
-
};
|
|
20
|
-
readonly kind: 'node';
|
|
21
|
-
readonly abstract: true;
|
|
22
|
-
}, import("@astrale-os/sdk/schema").ClassRef & import("@astrale-os/sdk/schema").ClassRef<"Node"> & {
|
|
23
|
-
readonly origin: "kernel.astrale.ai";
|
|
24
|
-
}, "kernel.astrale.ai:class.Node", readonly import("@astrale-os/sdk/schema").AnyResolvedClass[], never, never, never, never, never, never>, ...never[]], builder.PropertyProjection<({
|
|
25
|
-
claim: string;
|
|
26
|
-
op: "contains";
|
|
27
|
-
value: unknown;
|
|
28
|
-
} | {
|
|
29
|
-
claim: string;
|
|
30
|
-
op: "eq";
|
|
31
|
-
value: unknown;
|
|
32
|
-
} | {
|
|
33
|
-
claim: string;
|
|
34
|
-
op: "exists";
|
|
35
|
-
})[], false, "requiredClaims", "kernel.astrale.ai:class.Identity.property.requiredClaims", undefined> | builder.PropertyProjection<string | number | boolean | import("@astrale-os/sdk/schema").Array | import("@astrale-os/sdk/schema").Object | null, false, "frozen", "kernel.astrale.ai:class.Identity.property.frozen", undefined> | builder.PropertyProjection<string | number | boolean | import("@astrale-os/sdk/schema").Array | import("@astrale-os/sdk/schema").Object | null, false, "iss", "kernel.astrale.ai:class.Identity.property.iss", undefined> | builder.PropertyProjection<string | number | boolean | import("@astrale-os/sdk/schema").Array | import("@astrale-os/sdk/schema").Object | null, false, "sub", "kernel.astrale.ai:class.Identity.property.sub", undefined>, builder.MethodProjection<{
|
|
36
|
-
audience: string;
|
|
37
|
-
ttlSeconds: number;
|
|
38
|
-
attenuation: unknown;
|
|
39
|
-
}, {
|
|
40
|
-
readonly mode: 'value';
|
|
41
|
-
readonly value: string;
|
|
42
|
-
}, false, "default", "authenticated", "delegate", "kernel.astrale.ai:class.Identity.method.delegate">, builder.MethodProjection<Record<string, never>, {
|
|
43
|
-
readonly mode: 'value';
|
|
44
|
-
readonly value: {
|
|
45
|
-
id: string;
|
|
46
|
-
iss: string;
|
|
47
|
-
sub: string;
|
|
48
|
-
frozen: boolean;
|
|
49
|
-
requiredClaims: ({
|
|
50
|
-
claim: string;
|
|
51
|
-
op: "contains";
|
|
52
|
-
value: unknown;
|
|
53
|
-
} | {
|
|
54
|
-
claim: string;
|
|
55
|
-
op: "eq";
|
|
56
|
-
value: unknown;
|
|
57
|
-
} | {
|
|
58
|
-
claim: string;
|
|
59
|
-
op: "exists";
|
|
60
|
-
})[];
|
|
61
|
-
};
|
|
62
|
-
}, true, "default", "authenticated", "whoami", "kernel.astrale.ai:class.Identity.method.whoami"> | builder.MethodProjection<{
|
|
63
|
-
policy: string;
|
|
64
|
-
object: string;
|
|
65
|
-
}, {
|
|
66
|
-
readonly mode: 'value';
|
|
67
|
-
readonly value: {
|
|
68
|
-
allowed: boolean;
|
|
69
|
-
};
|
|
70
|
-
}, true, "default", "authenticated", "can", "kernel.astrale.ai:class.Identity.method.can"> | builder.MethodProjection<{
|
|
71
|
-
iss: string;
|
|
72
|
-
sub: string;
|
|
73
|
-
}, {
|
|
74
|
-
readonly mode: 'value';
|
|
75
|
-
readonly value: {
|
|
76
|
-
id: string;
|
|
77
|
-
iss: string;
|
|
78
|
-
sub: string;
|
|
79
|
-
frozen: boolean;
|
|
80
|
-
requiredClaims: ({
|
|
81
|
-
claim: string;
|
|
82
|
-
op: "contains";
|
|
83
|
-
value: unknown;
|
|
84
|
-
} | {
|
|
85
|
-
claim: string;
|
|
86
|
-
op: "eq";
|
|
87
|
-
value: unknown;
|
|
88
|
-
} | {
|
|
89
|
-
claim: string;
|
|
90
|
-
op: "exists";
|
|
91
|
-
})[];
|
|
92
|
-
} | null;
|
|
93
|
-
}, true, "default", "authorized", "whois", "kernel.astrale.ai:class.Identity.method.whois"> | builder.MethodProjection<{
|
|
94
|
-
audience?: string | undefined;
|
|
95
|
-
ttlSeconds: number;
|
|
96
|
-
grant?: unknown;
|
|
97
|
-
}, {
|
|
98
|
-
readonly mode: 'value';
|
|
99
|
-
readonly value: string;
|
|
100
|
-
}, true, "default", "authenticated", "mint", "kernel.astrale.ai:class.Identity.method.mint">, builder.PropertyProjection<({
|
|
101
|
-
claim: string;
|
|
102
|
-
op: "contains";
|
|
103
|
-
value: unknown;
|
|
104
|
-
} | {
|
|
105
|
-
claim: string;
|
|
106
|
-
op: "eq";
|
|
107
|
-
value: unknown;
|
|
108
|
-
} | {
|
|
109
|
-
claim: string;
|
|
110
|
-
op: "exists";
|
|
111
|
-
})[], false, "requiredClaims", "kernel.astrale.ai:class.Identity.property.requiredClaims", undefined> | builder.PropertyProjection<string | number | boolean | import("@astrale-os/sdk/schema").Array | import("@astrale-os/sdk/schema").Object | null, false, "frozen", "kernel.astrale.ai:class.Identity.property.frozen", undefined> | builder.PropertyProjection<string | number | boolean | import("@astrale-os/sdk/schema").Array | import("@astrale-os/sdk/schema").Object | null, false, "iss", "kernel.astrale.ai:class.Identity.property.iss", undefined> | builder.PropertyProjection<string | number | boolean | import("@astrale-os/sdk/schema").Array | import("@astrale-os/sdk/schema").Object | null, false, "sub", "kernel.astrale.ai:class.Identity.property.sub", undefined>, builder.MethodProjection<{
|
|
112
|
-
audience: string;
|
|
113
|
-
ttlSeconds: number;
|
|
114
|
-
attenuation: unknown;
|
|
115
|
-
}, {
|
|
116
|
-
readonly mode: 'value';
|
|
117
|
-
readonly value: string;
|
|
118
|
-
}, false, "default", "authenticated", "delegate", "kernel.astrale.ai:class.Identity.method.delegate">, builder.MethodProjection<Record<string, never>, {
|
|
119
|
-
readonly mode: 'value';
|
|
120
|
-
readonly value: {
|
|
121
|
-
id: string;
|
|
122
|
-
iss: string;
|
|
123
|
-
sub: string;
|
|
124
|
-
frozen: boolean;
|
|
125
|
-
requiredClaims: ({
|
|
126
|
-
claim: string;
|
|
127
|
-
op: "contains";
|
|
128
|
-
value: unknown;
|
|
129
|
-
} | {
|
|
130
|
-
claim: string;
|
|
131
|
-
op: "eq";
|
|
132
|
-
value: unknown;
|
|
133
|
-
} | {
|
|
134
|
-
claim: string;
|
|
135
|
-
op: "exists";
|
|
136
|
-
})[];
|
|
137
|
-
};
|
|
138
|
-
}, true, "default", "authenticated", "whoami", "kernel.astrale.ai:class.Identity.method.whoami"> | builder.MethodProjection<{
|
|
139
|
-
policy: string;
|
|
140
|
-
object: string;
|
|
141
|
-
}, {
|
|
142
|
-
readonly mode: 'value';
|
|
143
|
-
readonly value: {
|
|
144
|
-
allowed: boolean;
|
|
145
|
-
};
|
|
146
|
-
}, true, "default", "authenticated", "can", "kernel.astrale.ai:class.Identity.method.can"> | builder.MethodProjection<{
|
|
147
|
-
iss: string;
|
|
148
|
-
sub: string;
|
|
149
|
-
}, {
|
|
150
|
-
readonly mode: 'value';
|
|
151
|
-
readonly value: {
|
|
152
|
-
id: string;
|
|
153
|
-
iss: string;
|
|
154
|
-
sub: string;
|
|
155
|
-
frozen: boolean;
|
|
156
|
-
requiredClaims: ({
|
|
157
|
-
claim: string;
|
|
158
|
-
op: "contains";
|
|
159
|
-
value: unknown;
|
|
160
|
-
} | {
|
|
161
|
-
claim: string;
|
|
162
|
-
op: "eq";
|
|
163
|
-
value: unknown;
|
|
164
|
-
} | {
|
|
165
|
-
claim: string;
|
|
166
|
-
op: "exists";
|
|
167
|
-
})[];
|
|
168
|
-
} | null;
|
|
169
|
-
}, true, "default", "authorized", "whois", "kernel.astrale.ai:class.Identity.method.whois"> | builder.MethodProjection<{
|
|
170
|
-
audience?: string | undefined;
|
|
171
|
-
ttlSeconds: number;
|
|
172
|
-
grant?: unknown;
|
|
173
|
-
}, {
|
|
174
|
-
readonly mode: 'value';
|
|
175
|
-
readonly value: string;
|
|
176
|
-
}, true, "default", "authenticated", "mint", "kernel.astrale.ai:class.Identity.method.mint">>];
|
|
177
|
-
readonly properties: {
|
|
178
|
-
readonly displayName: builder.AuthoredPropertyProjection<string, string, false, "displayName", "self", never>;
|
|
179
|
-
};
|
|
180
|
-
readonly methods: {
|
|
181
|
-
readonly resolveHome: typeof import("../../user/index.js").resolveHome;
|
|
182
|
-
};
|
|
183
|
-
readonly effectiveProperties: builder.AuthoredPropertyProjection<string, string, false, "displayName", "self", never> | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, false, never> & {
|
|
184
|
-
readonly name: "frozen";
|
|
185
|
-
readonly key: "kernel.astrale.ai:class.Identity.property.frozen";
|
|
186
|
-
}) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, false, never> & {
|
|
187
|
-
readonly name: "iss";
|
|
188
|
-
readonly key: "kernel.astrale.ai:class.Identity.property.iss";
|
|
189
|
-
}) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, false, never> & {
|
|
190
|
-
readonly name: "sub";
|
|
191
|
-
readonly key: "kernel.astrale.ai:class.Identity.property.sub";
|
|
192
|
-
});
|
|
193
|
-
readonly effectiveInstanceMethods: builder.AuthoredMethodProjection<builder.Method<builder.CallableProjection<Record<string, never>, {
|
|
194
|
-
readonly mode: 'value';
|
|
195
|
-
readonly value: {
|
|
196
|
-
userId: string;
|
|
197
|
-
personalSpaceId: string | null;
|
|
198
|
-
};
|
|
199
|
-
}, "authenticated", false, "default">>, "resolveHome", "self"> | (import("@astrale-os/sdk/schema").ResolvedMethod<{
|
|
200
|
-
audience: string;
|
|
201
|
-
ttlSeconds: number;
|
|
202
|
-
attenuation: unknown;
|
|
203
|
-
}, {
|
|
204
|
-
readonly mode: 'value';
|
|
205
|
-
readonly value: string;
|
|
206
|
-
}, false, "default", "authenticated", import("@astrale-os/sdk/schema").PolicyCheckExpression<import("@astrale-os/sdk/schema").PolicyRef, import("@astrale-os/sdk/schema").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.delegate"> & {
|
|
207
|
-
readonly name: "delegate";
|
|
208
|
-
});
|
|
209
|
-
readonly effectiveStaticMethods: (import("@astrale-os/sdk/schema").ResolvedMethod<Record<string, never>, {
|
|
210
|
-
readonly mode: 'value';
|
|
211
|
-
readonly value: {
|
|
212
|
-
id: string;
|
|
213
|
-
iss: string;
|
|
214
|
-
sub: string;
|
|
215
|
-
frozen: boolean;
|
|
216
|
-
requiredClaims: ({
|
|
217
|
-
claim: string;
|
|
218
|
-
op: "contains";
|
|
219
|
-
value: unknown;
|
|
220
|
-
} | {
|
|
221
|
-
claim: string;
|
|
222
|
-
op: "eq";
|
|
223
|
-
value: unknown;
|
|
224
|
-
} | {
|
|
225
|
-
claim: string;
|
|
226
|
-
op: "exists";
|
|
227
|
-
})[];
|
|
228
|
-
};
|
|
229
|
-
}, true, "default", "authenticated", import("@astrale-os/sdk/schema").PolicyCheckExpression<import("@astrale-os/sdk/schema").PolicyRef, import("@astrale-os/sdk/schema").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.whoami"> & {
|
|
230
|
-
readonly name: "whoami";
|
|
231
|
-
}) | (import("@astrale-os/sdk/schema").ResolvedMethod<{
|
|
232
|
-
policy: string;
|
|
233
|
-
object: string;
|
|
234
|
-
}, {
|
|
235
|
-
readonly mode: 'value';
|
|
236
|
-
readonly value: {
|
|
237
|
-
allowed: boolean;
|
|
238
|
-
};
|
|
239
|
-
}, true, "default", "authenticated", import("@astrale-os/sdk/schema").PolicyCheckExpression<import("@astrale-os/sdk/schema").PolicyRef, import("@astrale-os/sdk/schema").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.can"> & {
|
|
240
|
-
readonly name: "can";
|
|
241
|
-
}) | (import("@astrale-os/sdk/schema").ResolvedMethod<{
|
|
242
|
-
iss: string;
|
|
243
|
-
sub: string;
|
|
244
|
-
}, {
|
|
245
|
-
readonly mode: 'value';
|
|
246
|
-
readonly value: {
|
|
247
|
-
id: string;
|
|
248
|
-
iss: string;
|
|
249
|
-
sub: string;
|
|
250
|
-
frozen: boolean;
|
|
251
|
-
requiredClaims: ({
|
|
252
|
-
claim: string;
|
|
253
|
-
op: "contains";
|
|
254
|
-
value: unknown;
|
|
255
|
-
} | {
|
|
256
|
-
claim: string;
|
|
257
|
-
op: "eq";
|
|
258
|
-
value: unknown;
|
|
259
|
-
} | {
|
|
260
|
-
claim: string;
|
|
261
|
-
op: "exists";
|
|
262
|
-
})[];
|
|
263
|
-
} | null;
|
|
264
|
-
}, 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"> & {
|
|
265
|
-
readonly name: "whois";
|
|
266
|
-
}) | (import("@astrale-os/sdk/schema").ResolvedMethod<{
|
|
267
|
-
audience?: string | undefined;
|
|
268
|
-
ttlSeconds: number;
|
|
269
|
-
grant?: unknown;
|
|
270
|
-
}, {
|
|
271
|
-
readonly mode: 'value';
|
|
272
|
-
readonly value: string;
|
|
273
|
-
}, true, "default", "authenticated", 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"> & {
|
|
274
|
-
readonly name: "mint";
|
|
275
|
-
});
|
|
276
|
-
}>]>;
|
|
277
|
-
}, z.core.$strict>;
|
|
278
|
-
type PolicyContext = Pick<builder.PolicyPatternContext, 'allOf' | 'edge' | 'exists' | 'object' | 'subject'>;
|
|
279
|
-
export declare function groupSpaceBranch(context: PolicyContext, access: builder.Lazy<builder.EdgeClass>): ReturnType<PolicyContext['edge']>;
|
|
280
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { path } from '@astrale-os/sdk/schema';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import { Group, member_of_group } from '#schema/modules/group';
|
|
4
|
-
import { User } from '#schema/modules/user';
|
|
5
|
-
export const emptyObject = z.strictObject({});
|
|
6
|
-
export const spaceUser = z.strictObject({ user: path(User) });
|
|
7
|
-
export function groupSpaceBranch(context, access) {
|
|
8
|
-
return context.exists(({ node }) => {
|
|
9
|
-
const group = node(Group);
|
|
10
|
-
return context.allOf(context.edge({ source: context.subject, class: member_of_group, target: group }), context.edge({ source: group, class: access, target: context.object }));
|
|
11
|
-
});
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const spaceView: import("@astrale-os/sdk/schema").View;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const resolveHome: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
2
|
-
readonly mode: 'value';
|
|
3
|
-
readonly value: {
|
|
4
|
-
userId: string;
|
|
5
|
-
personalSpaceId: string | null;
|
|
6
|
-
};
|
|
7
|
-
}, "authenticated", false, "default">>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { method } from '@astrale-os/sdk/schema';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
export const resolveHome = method({
|
|
4
|
-
description: 'Resolve this User and its canonical personal Space.',
|
|
5
|
-
auth: 'authenticated',
|
|
6
|
-
input: z.strictObject({}),
|
|
7
|
-
output: z.strictObject({
|
|
8
|
-
userId: z.string().min(1),
|
|
9
|
-
personalSpaceId: z.string().min(1).nullable(),
|
|
10
|
-
}),
|
|
11
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type builder } from '@astrale-os/sdk/schema';
|
|
2
|
-
export declare const setupAdmin: builder.Function<builder.CallableProjection<{
|
|
3
|
-
operationId: string;
|
|
4
|
-
issuer: string;
|
|
5
|
-
subject: string;
|
|
6
|
-
displayName: string;
|
|
7
|
-
personalSpaceName: string;
|
|
8
|
-
}, {
|
|
9
|
-
readonly mode: 'value';
|
|
10
|
-
readonly value: {
|
|
11
|
-
userId: string;
|
|
12
|
-
personalSpaceId: string;
|
|
13
|
-
changed: boolean;
|
|
14
|
-
};
|
|
15
|
-
}, "authorized", false, "default">>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { func } from '@astrale-os/sdk/schema';
|
|
2
|
-
import { adminGroup, maySetupUsers } from '#schema/modules/group';
|
|
3
|
-
import { setupInput, setupOutput } from '../types/setup-user.js';
|
|
4
|
-
const setupPolicy = ({ check, ref }) => check(maySetupUsers, ref(adminGroup));
|
|
5
|
-
export const setupAdmin = func({
|
|
6
|
-
description: 'Converge one asserted external identity as a Shell administrator.',
|
|
7
|
-
auth: 'authorized',
|
|
8
|
-
input: setupInput,
|
|
9
|
-
output: setupOutput,
|
|
10
|
-
policy: setupPolicy,
|
|
11
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type builder } from '@astrale-os/sdk/schema';
|
|
2
|
-
export declare const setupMember: builder.Function<builder.CallableProjection<{
|
|
3
|
-
operationId: string;
|
|
4
|
-
issuer: string;
|
|
5
|
-
subject: string;
|
|
6
|
-
displayName: string;
|
|
7
|
-
personalSpaceName: string;
|
|
8
|
-
}, {
|
|
9
|
-
readonly mode: 'value';
|
|
10
|
-
readonly value: {
|
|
11
|
-
userId: string;
|
|
12
|
-
personalSpaceId: string;
|
|
13
|
-
changed: boolean;
|
|
14
|
-
};
|
|
15
|
-
}, "authorized", false, "default">>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { func } from '@astrale-os/sdk/schema';
|
|
2
|
-
import { adminGroup, maySetupUsers } from '#schema/modules/group';
|
|
3
|
-
import { setupInput, setupOutput } from '../types/setup-user.js';
|
|
4
|
-
const setupPolicy = ({ check, ref }) => check(maySetupUsers, ref(adminGroup));
|
|
5
|
-
export const setupMember = func({
|
|
6
|
-
description: 'Converge one asserted external identity as a Shell member.',
|
|
7
|
-
auth: 'authorized',
|
|
8
|
-
input: setupInput,
|
|
9
|
-
output: setupOutput,
|
|
10
|
-
policy: setupPolicy,
|
|
11
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const setupInput: z.ZodObject<{
|
|
3
|
-
operationId: z.ZodString;
|
|
4
|
-
issuer: z.ZodString;
|
|
5
|
-
subject: z.ZodString;
|
|
6
|
-
displayName: z.ZodString;
|
|
7
|
-
personalSpaceName: z.ZodString;
|
|
8
|
-
}, z.core.$strict>;
|
|
9
|
-
export declare const setupOutput: z.ZodObject<{
|
|
10
|
-
userId: z.ZodString;
|
|
11
|
-
personalSpaceId: z.ZodString;
|
|
12
|
-
changed: z.ZodBoolean;
|
|
13
|
-
}, z.core.$strict>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { fullMatch } from '@astrale-os/sdk/schema';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
export const setupInput = z.strictObject({
|
|
4
|
-
operationId: z.string().min(1).max(256).check(fullMatch('[A-Za-z0-9][A-Za-z0-9._:-]{0,255}')),
|
|
5
|
-
issuer: z.string().min(1).max(2_048),
|
|
6
|
-
subject: z.string().min(1).max(2_048),
|
|
7
|
-
displayName: z.string().min(1).max(160),
|
|
8
|
-
personalSpaceName: z.string().min(1).max(160),
|
|
9
|
-
});
|
|
10
|
-
export const setupOutput = z.strictObject({
|
|
11
|
-
userId: z.string().min(1),
|
|
12
|
-
personalSpaceId: z.string().min(1),
|
|
13
|
-
changed: z.boolean(),
|
|
14
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const homeView: import("@astrale-os/sdk/schema").View;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const userView: import("@astrale-os/sdk/schema").View;
|
|
File without changes
|
|
File without changes
|