@astrale-domains/shell 0.1.0-beta.31 → 0.1.0-beta.32

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 (32) hide show
  1. package/dist/schema/modules/group/types/group-membership-input.js +0 -4
  2. package/package.json +3 -3
  3. package/dist/functions/group/assign-member-to-group.d.ts +0 -102
  4. package/dist/functions/group/change-group-membership.d.ts +0 -7
  5. package/dist/functions/group/group-membership-errors.d.ts +0 -28
  6. package/dist/functions/group/index.d.ts +0 -2
  7. package/dist/functions/group/unassign-member-from-group.d.ts +0 -102
  8. package/dist/functions/user/index.d.ts +0 -1
  9. package/dist/functions/user/invite-user.d.ts +0 -105
  10. package/dist/mutations/group/index.d.ts +0 -1
  11. package/dist/mutations/group/set-group-membership.d.ts +0 -101
  12. package/dist/providers/admin-enrollment/create-admin-enrollment-provider.d.ts +0 -7
  13. package/dist/providers/admin-enrollment/decode-admin-invitation-response.d.ts +0 -7
  14. package/dist/providers/admin-enrollment/index.d.ts +0 -1
  15. package/dist/providers/admin-enrollment/read-enrollment-response.d.ts +0 -1
  16. package/dist/queries/group/index.d.ts +0 -2
  17. package/dist/queries/group/read-group-membership-endpoints.d.ts +0 -88
  18. package/dist/queries/group/read-group-membership.d.ts +0 -90
  19. package/dist/schema/modules/group/functions/assign-member-to-group.d.ts +0 -7
  20. package/dist/schema/modules/group/functions/index.d.ts +0 -2
  21. package/dist/schema/modules/group/functions/unassign-member-from-group.d.ts +0 -7
  22. package/dist/schema/modules/group/types/group-membership-input.d.ts +0 -10
  23. package/dist/schema/modules/group/types/index.d.ts +0 -1
  24. package/dist/schema/modules/user/functions/index.d.ts +0 -1
  25. package/dist/schema/modules/user/functions/invite-user.d.ts +0 -11
  26. package/dist/schema/policies/administers-shell-class.d.ts +0 -2
  27. package/dist/schema/policies/index.d.ts +0 -2
  28. package/dist/schema/policies/owns-class.d.ts +0 -1
  29. package/dist/schema/views/application-view.d.ts +0 -1
  30. package/dist/schema/views/index.d.ts +0 -1
  31. package/dist/utils/canonical-node-path/index.d.ts +0 -1
  32. package/dist/utils/canonical-node-path/parse-canonical-node-path.d.ts +0 -2
@@ -2,10 +2,6 @@ import { path } from '@astrale-os/sdk/schema';
2
2
  import { z } from 'zod';
3
3
  import { User } from '../../user/index.js';
4
4
  import { Group } from '../classes/group.js';
5
- /**
6
- * Named through the SDK facade on purpose: an inferred shape lets tsc emit the Kernel DSL origin
7
- * of `PathAuthoring` into the published declarations, which the Domain platform check rejects.
8
- */
9
5
  export const groupMembershipInput = z.object({
10
6
  member: path(() => User, () => Group),
11
7
  group: path(() => Group),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrale-domains/shell",
3
- "version": "0.1.0-beta.31",
3
+ "version": "0.1.0-beta.32",
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.5.0-beta.136",
61
+ "@astrale-os/sdk": "0.5.0-beta.139",
62
62
  "@astrale/typescript-config": "npm:@jsr/astrale__typescript-config@~1.1.3",
63
63
  "@types/node": "26.2.0",
64
64
  "happy-dom": "20.11.2",
@@ -81,7 +81,7 @@
81
81
  },
82
82
  "scripts": {
83
83
  "prebuild": "pnpm clean",
84
- "build": "tsc --project tsconfig.package.json --paths null && node ../scripts/package/normalize-domain-declarations.mjs && node ../scripts/package/verify-domain-platform.mjs",
84
+ "build": "tsc --project tsconfig.package.json --paths null && bun ../scripts/package/normalize-domain-declarations.mjs && node ../scripts/package/verify-domain-platform.mjs",
85
85
  "clean": "rm -rf dist",
86
86
  "lint": "astrale-domain lint",
87
87
  "lint:fix": "astrale-domain lint --fix",
@@ -1,102 +0,0 @@
1
- export declare const assignMember: import("@astrale-os/sdk/workflow").WorkflowDefinition<import("@astrale-os/sdk/schema").AuthoredSchema<"shell.astrale.ai", readonly ["kernel.astrale.ai", import("@astrale-os/sdk/schema").KernelSchema] | readonly ["shell.astrale.ai", {
2
- readonly classes: {
3
- readonly User: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
4
- readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
5
- readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Identity">];
6
- readonly properties: {
7
- readonly creationKey: import("zod").ZodOptional<import("zod").ZodString>;
8
- };
9
- readonly methods: {
10
- readonly invite: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
11
- user: string;
12
- email: string;
13
- }, {
14
- readonly mode: 'value';
15
- readonly value: {
16
- invitationId: string;
17
- user: string;
18
- state: "accepted" | "cancelled" | "completed" | "expired" | "failed" | "pending" | "registered" | "registering";
19
- };
20
- }, "authorized", true, false>>;
21
- };
22
- }>;
23
- readonly Group: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
24
- readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
25
- readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Identity">, import("@astrale-os/sdk/schema").KernelClass<"Named">, import("@astrale-os/sdk/schema").KernelClass<"Descriptable">];
26
- readonly methods: {
27
- readonly assignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
28
- member: string;
29
- group: string;
30
- }, {
31
- readonly mode: 'value';
32
- readonly value: Record<string, never>;
33
- }, "authorized", true, false>>;
34
- readonly unassignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
35
- member: string;
36
- group: string;
37
- }, {
38
- readonly mode: 'value';
39
- readonly value: Record<string, never>;
40
- }, "authorized", true, false>>;
41
- };
42
- }>;
43
- readonly member_of_group: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
44
- readonly depth: 0;
45
- readonly abstract: false;
46
- readonly extends: readonly [];
47
- readonly properties: never;
48
- readonly source: {
49
- readonly as: "member";
50
- readonly outgoing: "0..*";
51
- };
52
- readonly target: {
53
- readonly as: "group";
54
- readonly incoming: "0..*";
55
- };
56
- readonly constraints: Record<never, never>;
57
- readonly effectiveProperties: never;
58
- }>;
59
- };
60
- readonly policies: {
61
- readonly belongsToGroup: import("@astrale-os/sdk/schema").Policy;
62
- readonly ownsClass: import("@astrale-os/sdk/schema").Policy;
63
- readonly administersShellClass: import("@astrale-os/sdk/schema").Policy;
64
- };
65
- readonly views: {
66
- readonly application: import("@astrale-os/sdk/schema").View;
67
- };
68
- readonly core: {
69
- readonly nodes: {
70
- readonly admin: import("@astrale-os/sdk/schema").CoreNode;
71
- readonly member: import("@astrale-os/sdk/schema").CoreNode;
72
- };
73
- };
74
- }, {
75
- readonly kernel: "kernel.astrale.ai";
76
- }]>, "Group.assignMember", Readonly<Record<never, never>>, {
77
- readonly GROUP_MEMBERSHIP_ENDPOINTS_UNAVAILABLE: {
78
- readonly family: 'CONFLICT';
79
- readonly message: 'Shell must be able to traverse both membership endpoints before confirming membership.';
80
- readonly details: import("zod").ZodObject<{}, import("zod/v4/core").$strict>;
81
- };
82
- readonly INVALID_GROUP_MEMBERSHIP_REFERENCE: {
83
- readonly family: 'VALIDATION_ERROR';
84
- readonly message: 'Member and group must be exact canonical @NodeId paths.';
85
- readonly details: import("zod").ZodObject<{}, import("zod/v4/core").$strict>;
86
- };
87
- readonly GROUP_MEMBERSHIP_CONFLICT: {
88
- readonly family: 'CONFLICT';
89
- readonly message: 'Membership changed concurrently; retry the operation.';
90
- readonly details: import("zod").ZodObject<{
91
- cause: import("zod").ZodString;
92
- }, import("zod/v4/core").$strict>;
93
- };
94
- readonly GROUP_MEMBERSHIP_UNCONFIRMED: {
95
- readonly family: 'CONFLICT';
96
- readonly message: 'The requested membership could not be confirmed; retry the operation.';
97
- readonly details: import("zod").ZodObject<{
98
- cause: import("zod").ZodString;
99
- outcomeKnown: import("zod").ZodLiteral<false>;
100
- }, import("zod/v4/core").$strict>;
101
- };
102
- }>;
@@ -1,7 +0,0 @@
1
- import type { WorkflowContext } from '@astrale-os/sdk/workflow';
2
- import type { S, Shell } from '../../schema/index.js';
3
- import type { groupMembershipErrors } from './group-membership-errors.js';
4
- type GroupCallable = typeof S.classes.Group.static.methods.assignMember | typeof S.classes.Group.static.methods.unassignMember;
5
- type Context = WorkflowContext<GroupCallable, Shell, Readonly<Record<never, never>>, typeof groupMembershipErrors>;
6
- export declare function changeGroupMembership(context: Context, present: boolean): Promise<{}>;
7
- export {};
@@ -1,28 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const groupMembershipErrors: {
3
- readonly GROUP_MEMBERSHIP_ENDPOINTS_UNAVAILABLE: {
4
- readonly family: 'CONFLICT';
5
- readonly message: 'Shell must be able to traverse both membership endpoints before confirming membership.';
6
- readonly details: z.ZodObject<{}, z.core.$strict>;
7
- };
8
- readonly INVALID_GROUP_MEMBERSHIP_REFERENCE: {
9
- readonly family: 'VALIDATION_ERROR';
10
- readonly message: 'Member and group must be exact canonical @NodeId paths.';
11
- readonly details: z.ZodObject<{}, z.core.$strict>;
12
- };
13
- readonly GROUP_MEMBERSHIP_CONFLICT: {
14
- readonly family: 'CONFLICT';
15
- readonly message: 'Membership changed concurrently; retry the operation.';
16
- readonly details: z.ZodObject<{
17
- cause: z.ZodString;
18
- }, z.core.$strict>;
19
- };
20
- readonly GROUP_MEMBERSHIP_UNCONFIRMED: {
21
- readonly family: 'CONFLICT';
22
- readonly message: 'The requested membership could not be confirmed; retry the operation.';
23
- readonly details: z.ZodObject<{
24
- cause: z.ZodString;
25
- outcomeKnown: z.ZodLiteral<false>;
26
- }, z.core.$strict>;
27
- };
28
- };
@@ -1,2 +0,0 @@
1
- export { assignMember } from './assign-member-to-group.js';
2
- export { unassignMember } from './unassign-member-from-group.js';
@@ -1,102 +0,0 @@
1
- export declare const unassignMember: import("@astrale-os/sdk/workflow").WorkflowDefinition<import("@astrale-os/sdk/schema").AuthoredSchema<"shell.astrale.ai", readonly ["kernel.astrale.ai", import("@astrale-os/sdk/schema").KernelSchema] | readonly ["shell.astrale.ai", {
2
- readonly classes: {
3
- readonly User: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
4
- readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
5
- readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Identity">];
6
- readonly properties: {
7
- readonly creationKey: import("zod").ZodOptional<import("zod").ZodString>;
8
- };
9
- readonly methods: {
10
- readonly invite: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
11
- user: string;
12
- email: string;
13
- }, {
14
- readonly mode: 'value';
15
- readonly value: {
16
- invitationId: string;
17
- user: string;
18
- state: "accepted" | "cancelled" | "completed" | "expired" | "failed" | "pending" | "registered" | "registering";
19
- };
20
- }, "authorized", true, false>>;
21
- };
22
- }>;
23
- readonly Group: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
24
- readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
25
- readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Identity">, import("@astrale-os/sdk/schema").KernelClass<"Named">, import("@astrale-os/sdk/schema").KernelClass<"Descriptable">];
26
- readonly methods: {
27
- readonly assignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
28
- member: string;
29
- group: string;
30
- }, {
31
- readonly mode: 'value';
32
- readonly value: Record<string, never>;
33
- }, "authorized", true, false>>;
34
- readonly unassignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
35
- member: string;
36
- group: string;
37
- }, {
38
- readonly mode: 'value';
39
- readonly value: Record<string, never>;
40
- }, "authorized", true, false>>;
41
- };
42
- }>;
43
- readonly member_of_group: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
44
- readonly depth: 0;
45
- readonly abstract: false;
46
- readonly extends: readonly [];
47
- readonly properties: never;
48
- readonly source: {
49
- readonly as: "member";
50
- readonly outgoing: "0..*";
51
- };
52
- readonly target: {
53
- readonly as: "group";
54
- readonly incoming: "0..*";
55
- };
56
- readonly constraints: Record<never, never>;
57
- readonly effectiveProperties: never;
58
- }>;
59
- };
60
- readonly policies: {
61
- readonly belongsToGroup: import("@astrale-os/sdk/schema").Policy;
62
- readonly ownsClass: import("@astrale-os/sdk/schema").Policy;
63
- readonly administersShellClass: import("@astrale-os/sdk/schema").Policy;
64
- };
65
- readonly views: {
66
- readonly application: import("@astrale-os/sdk/schema").View;
67
- };
68
- readonly core: {
69
- readonly nodes: {
70
- readonly admin: import("@astrale-os/sdk/schema").CoreNode;
71
- readonly member: import("@astrale-os/sdk/schema").CoreNode;
72
- };
73
- };
74
- }, {
75
- readonly kernel: "kernel.astrale.ai";
76
- }]>, "Group.unassignMember", Readonly<Record<never, never>>, {
77
- readonly GROUP_MEMBERSHIP_ENDPOINTS_UNAVAILABLE: {
78
- readonly family: 'CONFLICT';
79
- readonly message: 'Shell must be able to traverse both membership endpoints before confirming membership.';
80
- readonly details: import("zod").ZodObject<{}, import("zod/v4/core").$strict>;
81
- };
82
- readonly INVALID_GROUP_MEMBERSHIP_REFERENCE: {
83
- readonly family: 'VALIDATION_ERROR';
84
- readonly message: 'Member and group must be exact canonical @NodeId paths.';
85
- readonly details: import("zod").ZodObject<{}, import("zod/v4/core").$strict>;
86
- };
87
- readonly GROUP_MEMBERSHIP_CONFLICT: {
88
- readonly family: 'CONFLICT';
89
- readonly message: 'Membership changed concurrently; retry the operation.';
90
- readonly details: import("zod").ZodObject<{
91
- cause: import("zod").ZodString;
92
- }, import("zod/v4/core").$strict>;
93
- };
94
- readonly GROUP_MEMBERSHIP_UNCONFIRMED: {
95
- readonly family: 'CONFLICT';
96
- readonly message: 'The requested membership could not be confirmed; retry the operation.';
97
- readonly details: import("zod").ZodObject<{
98
- cause: import("zod").ZodString;
99
- outcomeKnown: import("zod").ZodLiteral<false>;
100
- }, import("zod/v4/core").$strict>;
101
- };
102
- }>;
@@ -1 +0,0 @@
1
- export { invite } from './invite-user.js';
@@ -1,105 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const invite: import("@astrale-os/sdk/workflow").WorkflowDefinition<import("@astrale-os/sdk/schema").AuthoredSchema<"shell.astrale.ai", readonly ["kernel.astrale.ai", import("@astrale-os/sdk/schema").KernelSchema] | readonly ["shell.astrale.ai", {
3
- readonly classes: {
4
- readonly User: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
5
- readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
6
- readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Identity">];
7
- readonly properties: {
8
- readonly creationKey: z.ZodOptional<z.ZodString>;
9
- };
10
- readonly methods: {
11
- readonly invite: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
12
- user: string;
13
- email: string;
14
- }, {
15
- readonly mode: 'value';
16
- readonly value: {
17
- invitationId: string;
18
- user: string;
19
- state: "accepted" | "cancelled" | "completed" | "expired" | "failed" | "pending" | "registered" | "registering";
20
- };
21
- }, "authorized", true, false>>;
22
- };
23
- }>;
24
- readonly Group: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
25
- readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
26
- readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Identity">, import("@astrale-os/sdk/schema").KernelClass<"Named">, import("@astrale-os/sdk/schema").KernelClass<"Descriptable">];
27
- readonly methods: {
28
- readonly assignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
29
- member: string;
30
- group: string;
31
- }, {
32
- readonly mode: 'value';
33
- readonly value: Record<string, never>;
34
- }, "authorized", true, false>>;
35
- readonly unassignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
36
- member: string;
37
- group: string;
38
- }, {
39
- readonly mode: 'value';
40
- readonly value: Record<string, never>;
41
- }, "authorized", true, false>>;
42
- };
43
- }>;
44
- readonly member_of_group: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
45
- readonly depth: 0;
46
- readonly abstract: false;
47
- readonly extends: readonly [];
48
- readonly properties: never;
49
- readonly source: {
50
- readonly as: "member";
51
- readonly outgoing: "0..*";
52
- };
53
- readonly target: {
54
- readonly as: "group";
55
- readonly incoming: "0..*";
56
- };
57
- readonly constraints: Record<never, never>;
58
- readonly effectiveProperties: never;
59
- }>;
60
- };
61
- readonly policies: {
62
- readonly belongsToGroup: import("@astrale-os/sdk/schema").Policy;
63
- readonly ownsClass: import("@astrale-os/sdk/schema").Policy;
64
- readonly administersShellClass: import("@astrale-os/sdk/schema").Policy;
65
- };
66
- readonly views: {
67
- readonly application: import("@astrale-os/sdk/schema").View;
68
- };
69
- readonly core: {
70
- readonly nodes: {
71
- readonly admin: import("@astrale-os/sdk/schema").CoreNode;
72
- readonly member: import("@astrale-os/sdk/schema").CoreNode;
73
- };
74
- };
75
- }, {
76
- readonly kernel: "kernel.astrale.ai";
77
- }]>, "User.invite", {
78
- enrollment: import("@astrale-os/sdk/integration").IntegrationDefinition<"shell.enrollment", {
79
- invite: import("@astrale-os/sdk/integration").IntegrationOperation<import("../../integrations/user-invitation/index.js").InviteRequest, {
80
- invitationId: string;
81
- user: string;
82
- state: "accepted" | "cancelled" | "completed" | "expired" | "failed" | "pending" | "registered" | "registering";
83
- }>;
84
- }>;
85
- }, {
86
- readonly INVALID_INVITATION_REFERENCE: {
87
- readonly family: "VALIDATION_ERROR";
88
- readonly message: "User must be an exact canonical @NodeId path.";
89
- readonly details: z.ZodObject<{}, z.core.$strict>;
90
- };
91
- readonly INVITATION_CONFLICT: {
92
- readonly family: "CONFLICT";
93
- readonly message: "The invitation conflicts with an existing request.";
94
- readonly details: z.ZodObject<{
95
- requestId: z.ZodString;
96
- }, z.core.$strict>;
97
- };
98
- readonly INVITATION_REJECTED: {
99
- readonly family: "VALIDATION_ERROR";
100
- readonly message: "Admin rejected the invitation request.";
101
- readonly details: z.ZodObject<{
102
- requestId: z.ZodString;
103
- }, z.core.$strict>;
104
- };
105
- }>;
@@ -1 +0,0 @@
1
- export { setGroupMembership } from './set-group-membership.js';
@@ -1,101 +0,0 @@
1
- import type { NodeId } from '@astrale-os/sdk/graph/node';
2
- import type { QueryEdgeAST, QueryNodeAST } from '@astrale-os/sdk/query';
3
- import { type QueryPrecondition } from '@astrale-os/sdk/mutation';
4
- interface GroupMembership {
5
- readonly member: NodeId;
6
- readonly group: NodeId;
7
- }
8
- interface GroupMembershipObservation {
9
- readonly membership: boolean;
10
- readonly authority: boolean;
11
- readonly guard: QueryPrecondition<QueryEdgeAST>;
12
- readonly endpoints: QueryPrecondition<QueryNodeAST>;
13
- }
14
- interface Change extends GroupMembership {
15
- readonly current: GroupMembershipObservation;
16
- readonly present: boolean;
17
- }
18
- type ChangeResult = {
19
- readonly ok: true;
20
- } | {
21
- readonly ok: false;
22
- readonly code: string;
23
- readonly outcomeKnown: boolean;
24
- };
25
- export declare const setGroupMembership: import("@astrale-os/sdk/mutation").Mutation<import("@astrale-os/sdk/schema").AuthoredDomain<"shell.astrale.ai", readonly ["kernel.astrale.ai", import("@astrale-os/sdk/schema").KernelSchema] | readonly ["shell.astrale.ai", {
26
- readonly classes: {
27
- readonly User: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
28
- readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
29
- readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Identity">];
30
- readonly properties: {
31
- readonly creationKey: import("zod").ZodOptional<import("zod").ZodString>;
32
- };
33
- readonly methods: {
34
- readonly invite: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
35
- user: string;
36
- email: string;
37
- }, {
38
- readonly mode: 'value';
39
- readonly value: {
40
- invitationId: string;
41
- user: string;
42
- state: "accepted" | "cancelled" | "completed" | "expired" | "failed" | "pending" | "registered" | "registering";
43
- };
44
- }, "authorized", true, false>>;
45
- };
46
- }>;
47
- readonly Group: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
48
- readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
49
- readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Identity">, import("@astrale-os/sdk/schema").KernelClass<"Named">, import("@astrale-os/sdk/schema").KernelClass<"Descriptable">];
50
- readonly methods: {
51
- readonly assignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
52
- member: string;
53
- group: string;
54
- }, {
55
- readonly mode: 'value';
56
- readonly value: Record<string, never>;
57
- }, "authorized", true, false>>;
58
- readonly unassignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
59
- member: string;
60
- group: string;
61
- }, {
62
- readonly mode: 'value';
63
- readonly value: Record<string, never>;
64
- }, "authorized", true, false>>;
65
- };
66
- }>;
67
- readonly member_of_group: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
68
- readonly depth: 0;
69
- readonly abstract: false;
70
- readonly extends: readonly [];
71
- readonly properties: never;
72
- readonly source: {
73
- readonly as: "member";
74
- readonly outgoing: "0..*";
75
- };
76
- readonly target: {
77
- readonly as: "group";
78
- readonly incoming: "0..*";
79
- };
80
- readonly constraints: Record<never, never>;
81
- readonly effectiveProperties: never;
82
- }>;
83
- };
84
- readonly policies: {
85
- readonly belongsToGroup: import("@astrale-os/sdk/schema").Policy;
86
- readonly ownsClass: import("@astrale-os/sdk/schema").Policy;
87
- readonly administersShellClass: import("@astrale-os/sdk/schema").Policy;
88
- };
89
- readonly views: {
90
- readonly application: import("@astrale-os/sdk/schema").View;
91
- };
92
- readonly core: {
93
- readonly nodes: {
94
- readonly admin: import("@astrale-os/sdk/schema").CoreNode;
95
- readonly member: import("@astrale-os/sdk/schema").CoreNode;
96
- };
97
- };
98
- }, {
99
- readonly kernel: "kernel.astrale.ai";
100
- }]>, Change, ChangeResult>;
101
- export {};
@@ -1,7 +0,0 @@
1
- export declare function enrollmentProvider(environment: unknown): import("@astrale-os/sdk/integration").Provider<import("@astrale-os/sdk/integration").IntegrationDefinition<"shell.enrollment", {
2
- invite: import("@astrale-os/sdk/integration").IntegrationOperation<import("../../integrations/user-invitation/index.js").InviteRequest, {
3
- invitationId: string;
4
- user: string;
5
- state: "accepted" | "cancelled" | "completed" | "expired" | "failed" | "pending" | "registered" | "registering";
6
- }>;
7
- }>>;
@@ -1,7 +0,0 @@
1
- export declare function decodeAdminInvitationResponse(value: unknown): {
2
- invitationId: string;
3
- user: string;
4
- state: "accepted" | "cancelled" | "completed" | "expired" | "failed" | "pending" | "registered" | "registering";
5
- } & {
6
- requestId: string;
7
- };
@@ -1 +0,0 @@
1
- export { enrollmentProvider } from './create-admin-enrollment-provider.js';
@@ -1 +0,0 @@
1
- export declare function readReply(response: Response): Promise<unknown>;
@@ -1,2 +0,0 @@
1
- export { readGroupMembership, type GroupMembershipObservation, type GroupMembershipState, } from './read-group-membership.js';
2
- export { readGroupMembershipEndpoints } from './read-group-membership-endpoints.js';
@@ -1,88 +0,0 @@
1
- import type { NodeId } from '@astrale-os/sdk/graph/node';
2
- import type { QueryPrecondition } from '@astrale-os/sdk/mutation';
3
- import { type QueryNodeAST } from '@astrale-os/sdk/query';
4
- interface Endpoints {
5
- readonly member: NodeId;
6
- readonly group: NodeId;
7
- }
8
- export interface GroupMembershipEndpoints {
9
- readonly visible: boolean;
10
- readonly guard: QueryPrecondition<QueryNodeAST>;
11
- }
12
- export declare const readGroupMembershipEndpoints: import("@astrale-os/sdk/query").SingleQueryDefinition<import("@astrale-os/sdk/schema").AuthoredDomain<"shell.astrale.ai", readonly ["kernel.astrale.ai", import("@astrale-os/sdk/schema").KernelSchema] | readonly ["shell.astrale.ai", {
13
- readonly classes: {
14
- readonly User: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
15
- readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
16
- readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Identity">];
17
- readonly properties: {
18
- readonly creationKey: import("zod").ZodOptional<import("zod").ZodString>;
19
- };
20
- readonly methods: {
21
- readonly invite: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
22
- user: string;
23
- email: string;
24
- }, {
25
- readonly mode: 'value';
26
- readonly value: {
27
- invitationId: string;
28
- user: string;
29
- state: "accepted" | "cancelled" | "completed" | "expired" | "failed" | "pending" | "registered" | "registering";
30
- };
31
- }, "authorized", true, false>>;
32
- };
33
- }>;
34
- readonly Group: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
35
- readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
36
- readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Identity">, import("@astrale-os/sdk/schema").KernelClass<"Named">, import("@astrale-os/sdk/schema").KernelClass<"Descriptable">];
37
- readonly methods: {
38
- readonly assignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
39
- member: string;
40
- group: string;
41
- }, {
42
- readonly mode: 'value';
43
- readonly value: Record<string, never>;
44
- }, "authorized", true, false>>;
45
- readonly unassignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
46
- member: string;
47
- group: string;
48
- }, {
49
- readonly mode: 'value';
50
- readonly value: Record<string, never>;
51
- }, "authorized", true, false>>;
52
- };
53
- }>;
54
- readonly member_of_group: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
55
- readonly depth: 0;
56
- readonly abstract: false;
57
- readonly extends: readonly [];
58
- readonly properties: never;
59
- readonly source: {
60
- readonly as: "member";
61
- readonly outgoing: "0..*";
62
- };
63
- readonly target: {
64
- readonly as: "group";
65
- readonly incoming: "0..*";
66
- };
67
- readonly constraints: Record<never, never>;
68
- readonly effectiveProperties: never;
69
- }>;
70
- };
71
- readonly policies: {
72
- readonly belongsToGroup: import("@astrale-os/sdk/schema").Policy;
73
- readonly ownsClass: import("@astrale-os/sdk/schema").Policy;
74
- readonly administersShellClass: import("@astrale-os/sdk/schema").Policy;
75
- };
76
- readonly views: {
77
- readonly application: import("@astrale-os/sdk/schema").View;
78
- };
79
- readonly core: {
80
- readonly nodes: {
81
- readonly admin: import("@astrale-os/sdk/schema").CoreNode;
82
- readonly member: import("@astrale-os/sdk/schema").CoreNode;
83
- };
84
- };
85
- }, {
86
- readonly kernel: "kernel.astrale.ai";
87
- }]>, Endpoints, GroupMembershipEndpoints>;
88
- export {};
@@ -1,90 +0,0 @@
1
- import type { NodeId } from '@astrale-os/sdk/graph/node';
2
- import type { QueryPrecondition } from '@astrale-os/sdk/mutation';
3
- import { type QueryEdgeAST } from '@astrale-os/sdk/query';
4
- export interface GroupMembership {
5
- readonly member: NodeId;
6
- readonly group: NodeId;
7
- }
8
- export interface GroupMembershipState {
9
- readonly membership: boolean;
10
- readonly authority: boolean;
11
- }
12
- export interface GroupMembershipObservation extends GroupMembershipState {
13
- readonly guard: QueryPrecondition<QueryEdgeAST>;
14
- }
15
- export declare const readGroupMembership: import("@astrale-os/sdk/query").SingleQueryDefinition<import("@astrale-os/sdk/schema").AuthoredDomain<"shell.astrale.ai", readonly ["kernel.astrale.ai", import("@astrale-os/sdk/schema").KernelSchema] | readonly ["shell.astrale.ai", {
16
- readonly classes: {
17
- readonly User: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
18
- readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
19
- readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Identity">];
20
- readonly properties: {
21
- readonly creationKey: import("zod").ZodOptional<import("zod").ZodString>;
22
- };
23
- readonly methods: {
24
- readonly invite: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
25
- user: string;
26
- email: string;
27
- }, {
28
- readonly mode: 'value';
29
- readonly value: {
30
- invitationId: string;
31
- user: string;
32
- state: "accepted" | "cancelled" | "completed" | "expired" | "failed" | "pending" | "registered" | "registering";
33
- };
34
- }, "authorized", true, false>>;
35
- };
36
- }>;
37
- readonly Group: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
38
- readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
39
- readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Identity">, import("@astrale-os/sdk/schema").KernelClass<"Named">, import("@astrale-os/sdk/schema").KernelClass<"Descriptable">];
40
- readonly methods: {
41
- readonly assignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
42
- member: string;
43
- group: string;
44
- }, {
45
- readonly mode: 'value';
46
- readonly value: Record<string, never>;
47
- }, "authorized", true, false>>;
48
- readonly unassignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
49
- member: string;
50
- group: string;
51
- }, {
52
- readonly mode: 'value';
53
- readonly value: Record<string, never>;
54
- }, "authorized", true, false>>;
55
- };
56
- }>;
57
- readonly member_of_group: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
58
- readonly depth: 0;
59
- readonly abstract: false;
60
- readonly extends: readonly [];
61
- readonly properties: never;
62
- readonly source: {
63
- readonly as: "member";
64
- readonly outgoing: "0..*";
65
- };
66
- readonly target: {
67
- readonly as: "group";
68
- readonly incoming: "0..*";
69
- };
70
- readonly constraints: Record<never, never>;
71
- readonly effectiveProperties: never;
72
- }>;
73
- };
74
- readonly policies: {
75
- readonly belongsToGroup: import("@astrale-os/sdk/schema").Policy;
76
- readonly ownsClass: import("@astrale-os/sdk/schema").Policy;
77
- readonly administersShellClass: import("@astrale-os/sdk/schema").Policy;
78
- };
79
- readonly views: {
80
- readonly application: import("@astrale-os/sdk/schema").View;
81
- };
82
- readonly core: {
83
- readonly nodes: {
84
- readonly admin: import("@astrale-os/sdk/schema").CoreNode;
85
- readonly member: import("@astrale-os/sdk/schema").CoreNode;
86
- };
87
- };
88
- }, {
89
- readonly kernel: "kernel.astrale.ai";
90
- }]>, GroupMembership, GroupMembershipObservation>;
@@ -1,7 +0,0 @@
1
- export declare const assignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
2
- member: string;
3
- group: string;
4
- }, {
5
- readonly mode: 'value';
6
- readonly value: Record<string, never>;
7
- }, "authorized", true, false>>;
@@ -1,2 +0,0 @@
1
- export { assignMember } from './assign-member-to-group.js';
2
- export { unassignMember } from './unassign-member-from-group.js';
@@ -1,7 +0,0 @@
1
- export declare const unassignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
2
- member: string;
3
- group: string;
4
- }, {
5
- readonly mode: 'value';
6
- readonly value: Record<string, never>;
7
- }, "authorized", true, false>>;
@@ -1,10 +0,0 @@
1
- import type { NodeClass, PathAuthoring } from '@astrale-os/sdk/schema';
2
- import { z } from 'zod';
3
- /**
4
- * Named through the SDK facade on purpose: an inferred shape lets tsc emit the Kernel DSL origin
5
- * of `PathAuthoring` into the published declarations, which the Domain platform check rejects.
6
- */
7
- export declare const groupMembershipInput: z.ZodObject<{
8
- member: PathAuthoring<readonly [() => NodeClass, () => NodeClass]>;
9
- group: PathAuthoring<readonly [() => NodeClass]>;
10
- }>;
@@ -1 +0,0 @@
1
- export { groupMembershipInput } from './group-membership-input.js';
@@ -1 +0,0 @@
1
- export { invite } from './invite-user.js';
@@ -1,11 +0,0 @@
1
- export declare const invite: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
2
- user: string;
3
- email: string;
4
- }, {
5
- readonly mode: 'value';
6
- readonly value: {
7
- invitationId: string;
8
- user: string;
9
- state: "accepted" | "cancelled" | "completed" | "expired" | "failed" | "pending" | "registered" | "registering";
10
- };
11
- }, "authorized", true, false>>;
@@ -1,2 +0,0 @@
1
- /** Instance administration applies to Shell's concrete classes, not foreign descendants. */
2
- export declare const administersShellClass: import("@astrale-os/sdk/schema").Policy;
@@ -1,2 +0,0 @@
1
- export { ownsClass } from './owns-class.js';
2
- export { administersShellClass } from './administers-shell-class.js';
@@ -1 +0,0 @@
1
- export declare const ownsClass: import("@astrale-os/sdk/schema").Policy;
@@ -1 +0,0 @@
1
- export declare const applicationView: import("@astrale-os/sdk/schema").View;
@@ -1 +0,0 @@
1
- export { applicationView } from './application-view.js';
@@ -1 +0,0 @@
1
- export { canonicalNodeId } from './parse-canonical-node-path.js';
@@ -1,2 +0,0 @@
1
- import type { NodeId } from '@astrale-os/sdk/graph/node';
2
- export declare function canonicalNodeId(value: string, invalid?: () => Error): NodeId;