@astrale-domains/shell 0.1.0-beta.4 → 0.1.0-beta.41
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 +143 -64
- package/dist/domain.d.ts +99 -0
- package/dist/domain.js +77 -0
- package/dist/functions/application/index.js +1 -3
- package/dist/functions/application/list-entrypoints.js +4 -0
- package/dist/functions/group/assign-member-to-group.js +4 -0
- package/dist/functions/group/change-group-membership.js +34 -0
- package/dist/functions/group/group-membership-errors.js +23 -0
- package/dist/functions/group/index.js +2 -3
- package/dist/functions/group/unassign-member-from-group.js +4 -0
- package/dist/functions/user/index.js +1 -3
- package/dist/functions/user/invite-user.js +39 -0
- package/dist/index.d.ts +1 -4
- package/dist/index.js +1 -4
- 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.js +1 -2
- package/dist/mutations/group/set-group-membership.js +29 -0
- package/dist/providers/admin-enrollment/create-admin-enrollment-provider.js +78 -0
- package/dist/providers/admin-enrollment/decode-admin-invitation-response.js +20 -0
- package/dist/providers/admin-enrollment/index.js +1 -0
- package/dist/providers/admin-enrollment/read-enrollment-response.js +34 -0
- package/dist/queries/application/index.js +1 -3
- package/dist/queries/application/read-installed-entrypoints.js +44 -0
- package/dist/queries/group/index.js +2 -3
- package/dist/queries/group/read-group-membership-endpoints.js +18 -0
- package/dist/queries/group/read-group-membership.js +35 -0
- package/dist/runtime.d.ts +462 -0
- package/dist/runtime.js +16 -0
- package/dist/schema/index.d.ts +5 -7
- package/dist/schema/index.js +4 -7
- package/dist/schema/modules/application/functions/index.d.ts +1 -0
- package/dist/schema/modules/application/functions/index.js +1 -0
- package/dist/schema/modules/application/functions/list-entrypoints.d.ts +15 -0
- package/dist/schema/modules/application/functions/list-entrypoints.js +16 -0
- package/dist/schema/modules/application/index.d.ts +2 -0
- package/dist/schema/modules/application/index.js +2 -0
- package/dist/schema/modules/application/types/entrypoint-entry.d.ts +8 -0
- package/dist/schema/modules/application/types/entrypoint-entry.js +7 -0
- package/dist/schema/modules/application/types/index.d.ts +1 -0
- package/dist/schema/modules/application/types/index.js +1 -0
- package/dist/schema/modules/group/classes/group.d.ts +20 -0
- package/dist/schema/modules/group/classes/group.js +8 -0
- 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.d.ts +16 -0
- package/dist/schema/modules/group/classes/member-of-group.js +11 -0
- package/dist/schema/modules/group/core/administrators-group.d.ts +1 -0
- package/dist/schema/modules/group/core/administrators-group.js +6 -0
- package/dist/schema/modules/group/core/applications-group.d.ts +1 -0
- package/dist/schema/modules/group/core/applications-group.js +6 -0
- package/dist/schema/modules/group/core/index.d.ts +3 -0
- package/dist/schema/modules/group/core/index.js +3 -0
- package/dist/schema/modules/group/core/members-group.d.ts +1 -0
- package/dist/schema/modules/group/core/members-group.js +6 -0
- package/dist/schema/modules/group/functions/assign-member-to-group.js +11 -0
- package/dist/schema/modules/group/functions/index.js +2 -0
- package/dist/schema/modules/group/functions/unassign-member-from-group.js +11 -0
- package/dist/schema/modules/group/index.d.ts +3 -0
- package/dist/schema/modules/group/index.js +3 -0
- 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-membership-input.js +8 -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 +21 -0
- package/dist/schema/modules/user/classes/user.js +12 -0
- package/dist/schema/modules/user/functions/index.js +1 -0
- package/dist/schema/modules/user/functions/invite-user.js +12 -0
- package/dist/schema/modules/user/index.d.ts +2 -0
- package/dist/schema/modules/user/index.js +2 -0
- 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.js +11 -0
- package/dist/schema/policies/index.js +3 -0
- package/dist/schema/policies/owns-class.js +7 -0
- package/dist/schema/policies/uses-function.js +5 -0
- package/dist/schema/schema.d.ts +342 -0
- package/dist/schema/schema.js +27 -0
- package/dist/schema/views/application-view.js +4 -0
- package/dist/schema/views/index.js +1 -0
- package/dist/utils/canonical-node-path/index.js +1 -0
- package/dist/utils/canonical-node-path/parse-canonical-node-path.js +8 -0
- package/package.json +51 -30
- package/dist/functions/application/index.d.ts +0 -3
- package/dist/functions/application/index.d.ts.map +0 -1
- package/dist/functions/application/index.js.map +0 -1
- package/dist/functions/application/install.d.ts +0 -4
- package/dist/functions/application/install.d.ts.map +0 -1
- package/dist/functions/application/install.js +0 -11
- package/dist/functions/application/install.js.map +0 -1
- package/dist/functions/application/uninstall.d.ts +0 -5
- package/dist/functions/application/uninstall.d.ts.map +0 -1
- package/dist/functions/application/uninstall.js +0 -11
- package/dist/functions/application/uninstall.js.map +0 -1
- package/dist/functions/execution/index.d.ts +0 -15
- package/dist/functions/execution/index.d.ts.map +0 -1
- package/dist/functions/execution/index.js +0 -2
- package/dist/functions/execution/index.js.map +0 -1
- package/dist/functions/group/assign-user.d.ts +0 -5
- package/dist/functions/group/assign-user.d.ts.map +0 -1
- package/dist/functions/group/assign-user.js +0 -11
- package/dist/functions/group/assign-user.js.map +0 -1
- package/dist/functions/group/index.d.ts +0 -3
- package/dist/functions/group/index.d.ts.map +0 -1
- package/dist/functions/group/index.js.map +0 -1
- package/dist/functions/group/unassign-user.d.ts +0 -5
- package/dist/functions/group/unassign-user.d.ts.map +0 -1
- package/dist/functions/group/unassign-user.js +0 -11
- package/dist/functions/group/unassign-user.js.map +0 -1
- package/dist/functions/index.d.ts +0 -6
- package/dist/functions/index.d.ts.map +0 -1
- package/dist/functions/index.js +0 -6
- package/dist/functions/index.js.map +0 -1
- package/dist/functions/space/add-user.d.ts +0 -5
- package/dist/functions/space/add-user.d.ts.map +0 -1
- package/dist/functions/space/add-user.js +0 -11
- package/dist/functions/space/add-user.js.map +0 -1
- package/dist/functions/space/index.d.ts +0 -4
- package/dist/functions/space/index.d.ts.map +0 -1
- package/dist/functions/space/index.js +0 -4
- package/dist/functions/space/index.js.map +0 -1
- package/dist/functions/space/remove-user.d.ts +0 -5
- package/dist/functions/space/remove-user.d.ts.map +0 -1
- package/dist/functions/space/remove-user.js +0 -11
- package/dist/functions/space/remove-user.js.map +0 -1
- package/dist/functions/space/set-default.d.ts +0 -6
- package/dist/functions/space/set-default.d.ts.map +0 -1
- package/dist/functions/space/set-default.js +0 -11
- package/dist/functions/space/set-default.js.map +0 -1
- package/dist/functions/user/administrator.d.ts +0 -4
- package/dist/functions/user/administrator.d.ts.map +0 -1
- package/dist/functions/user/administrator.js +0 -39
- package/dist/functions/user/administrator.js.map +0 -1
- package/dist/functions/user/ensure.d.ts +0 -18
- package/dist/functions/user/ensure.d.ts.map +0 -1
- package/dist/functions/user/ensure.js +0 -49
- package/dist/functions/user/ensure.js.map +0 -1
- package/dist/functions/user/index.d.ts +0 -3
- package/dist/functions/user/index.d.ts.map +0 -1
- package/dist/functions/user/index.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/mutations/application/association.d.ts +0 -14
- package/dist/mutations/application/association.d.ts.map +0 -1
- package/dist/mutations/application/association.js +0 -46
- package/dist/mutations/application/association.js.map +0 -1
- package/dist/mutations/application/errors.d.ts +0 -5
- package/dist/mutations/application/errors.d.ts.map +0 -1
- package/dist/mutations/application/errors.js +0 -2
- package/dist/mutations/application/errors.js.map +0 -1
- package/dist/mutations/application/index.d.ts +0 -4
- package/dist/mutations/application/index.d.ts.map +0 -1
- package/dist/mutations/application/index.js +0 -3
- package/dist/mutations/application/index.js.map +0 -1
- package/dist/mutations/application/removal.d.ts +0 -6
- package/dist/mutations/application/removal.d.ts.map +0 -1
- package/dist/mutations/application/removal.js +0 -17
- package/dist/mutations/application/removal.js.map +0 -1
- package/dist/mutations/group/errors.d.ts +0 -5
- package/dist/mutations/group/errors.d.ts.map +0 -1
- package/dist/mutations/group/errors.js +0 -2
- package/dist/mutations/group/errors.js.map +0 -1
- package/dist/mutations/group/index.d.ts +0 -3
- package/dist/mutations/group/index.d.ts.map +0 -1
- package/dist/mutations/group/index.js.map +0 -1
- package/dist/mutations/group/membership.d.ts +0 -26
- package/dist/mutations/group/membership.d.ts.map +0 -1
- package/dist/mutations/group/membership.js +0 -71
- package/dist/mutations/group/membership.js.map +0 -1
- package/dist/mutations/index.d.ts +0 -4
- package/dist/mutations/index.d.ts.map +0 -1
- package/dist/mutations/index.js +0 -4
- package/dist/mutations/index.js.map +0 -1
- package/dist/mutations/space/access.d.ts +0 -30
- package/dist/mutations/space/access.d.ts.map +0 -1
- package/dist/mutations/space/access.js +0 -54
- package/dist/mutations/space/access.js.map +0 -1
- package/dist/mutations/space/default.d.ts +0 -26
- package/dist/mutations/space/default.d.ts.map +0 -1
- package/dist/mutations/space/default.js +0 -46
- package/dist/mutations/space/default.js.map +0 -1
- package/dist/mutations/space/errors.d.ts +0 -5
- package/dist/mutations/space/errors.d.ts.map +0 -1
- package/dist/mutations/space/errors.js +0 -2
- package/dist/mutations/space/errors.js.map +0 -1
- package/dist/mutations/space/index.d.ts +0 -4
- package/dist/mutations/space/index.d.ts.map +0 -1
- package/dist/mutations/space/index.js +0 -3
- package/dist/mutations/space/index.js.map +0 -1
- package/dist/mutations/user/index.d.ts +0 -1
- package/dist/mutations/user/index.d.ts.map +0 -1
- package/dist/mutations/user/index.js +0 -2
- package/dist/mutations/user/index.js.map +0 -1
- package/dist/public.d.ts +0 -5
- package/dist/public.d.ts.map +0 -1
- package/dist/public.js +0 -154
- package/dist/public.js.map +0 -1
- package/dist/queries/application/association.d.ts +0 -18
- package/dist/queries/application/association.d.ts.map +0 -1
- package/dist/queries/application/association.js +0 -82
- package/dist/queries/application/association.js.map +0 -1
- package/dist/queries/application/identity.d.ts +0 -4
- package/dist/queries/application/identity.d.ts.map +0 -1
- package/dist/queries/application/identity.js +0 -41
- package/dist/queries/application/identity.js.map +0 -1
- package/dist/queries/application/index.d.ts +0 -3
- package/dist/queries/application/index.d.ts.map +0 -1
- package/dist/queries/application/index.js.map +0 -1
- package/dist/queries/group/identity.d.ts +0 -3
- package/dist/queries/group/identity.d.ts.map +0 -1
- package/dist/queries/group/identity.js +0 -29
- package/dist/queries/group/identity.js.map +0 -1
- package/dist/queries/group/index.d.ts +0 -3
- package/dist/queries/group/index.d.ts.map +0 -1
- package/dist/queries/group/index.js.map +0 -1
- package/dist/queries/group/membership.d.ts +0 -17
- package/dist/queries/group/membership.d.ts.map +0 -1
- package/dist/queries/group/membership.js +0 -47
- package/dist/queries/group/membership.js.map +0 -1
- package/dist/queries/index.d.ts +0 -4
- package/dist/queries/index.d.ts.map +0 -1
- package/dist/queries/index.js +0 -4
- package/dist/queries/index.js.map +0 -1
- package/dist/queries/space/access.d.ts +0 -24
- package/dist/queries/space/access.d.ts.map +0 -1
- package/dist/queries/space/access.js +0 -93
- package/dist/queries/space/access.js.map +0 -1
- package/dist/queries/space/default.d.ts +0 -10
- package/dist/queries/space/default.d.ts.map +0 -1
- package/dist/queries/space/default.js +0 -25
- package/dist/queries/space/default.js.map +0 -1
- package/dist/queries/space/index.d.ts +0 -3
- package/dist/queries/space/index.d.ts.map +0 -1
- package/dist/queries/space/index.js +0 -3
- package/dist/queries/space/index.js.map +0 -1
- package/dist/rules/application/association.d.ts +0 -13
- package/dist/rules/application/association.d.ts.map +0 -1
- package/dist/rules/application/association.js +0 -10
- package/dist/rules/application/association.js.map +0 -1
- package/dist/rules/application/index.d.ts +0 -4
- package/dist/rules/application/index.d.ts.map +0 -1
- package/dist/rules/application/index.js +0 -4
- package/dist/rules/application/index.js.map +0 -1
- package/dist/rules/application/removal.d.ts +0 -11
- package/dist/rules/application/removal.d.ts.map +0 -1
- package/dist/rules/application/removal.js +0 -6
- package/dist/rules/application/removal.js.map +0 -1
- package/dist/rules/application/result.d.ts +0 -8
- package/dist/rules/application/result.d.ts.map +0 -1
- package/dist/rules/application/result.js +0 -17
- package/dist/rules/application/result.js.map +0 -1
- package/dist/rules/group/index.d.ts +0 -2
- package/dist/rules/group/index.d.ts.map +0 -1
- package/dist/rules/group/index.js +0 -2
- package/dist/rules/group/index.js.map +0 -1
- package/dist/rules/group/membership.d.ts +0 -5
- package/dist/rules/group/membership.d.ts.map +0 -1
- package/dist/rules/group/membership.js +0 -12
- package/dist/rules/group/membership.js.map +0 -1
- package/dist/rules/index.d.ts +0 -5
- package/dist/rules/index.d.ts.map +0 -1
- package/dist/rules/index.js +0 -5
- package/dist/rules/index.js.map +0 -1
- package/dist/rules/space/access.d.ts +0 -8
- package/dist/rules/space/access.d.ts.map +0 -1
- package/dist/rules/space/access.js +0 -18
- package/dist/rules/space/access.js.map +0 -1
- package/dist/rules/space/default.d.ts +0 -4
- package/dist/rules/space/default.d.ts.map +0 -1
- package/dist/rules/space/default.js +0 -7
- package/dist/rules/space/default.js.map +0 -1
- package/dist/rules/space/index.d.ts +0 -3
- package/dist/rules/space/index.d.ts.map +0 -1
- package/dist/rules/space/index.js +0 -3
- package/dist/rules/space/index.js.map +0 -1
- package/dist/rules/user/ensure.d.ts +0 -21
- package/dist/rules/user/ensure.d.ts.map +0 -1
- package/dist/rules/user/ensure.js +0 -61
- package/dist/rules/user/ensure.js.map +0 -1
- package/dist/rules/user/grant.d.ts +0 -13
- package/dist/rules/user/grant.d.ts.map +0 -1
- package/dist/rules/user/grant.js +0 -12
- package/dist/rules/user/grant.js.map +0 -1
- package/dist/rules/user/index.d.ts +0 -3
- package/dist/rules/user/index.d.ts.map +0 -1
- package/dist/rules/user/index.js +0 -3
- package/dist/rules/user/index.js.map +0 -1
- package/dist/schema/application/class.d.ts +0 -152
- package/dist/schema/application/class.d.ts.map +0 -1
- package/dist/schema/application/class.js +0 -10
- package/dist/schema/application/class.js.map +0 -1
- package/dist/schema/application/core.d.ts +0 -159
- package/dist/schema/application/core.d.ts.map +0 -1
- package/dist/schema/application/core.js +0 -13
- package/dist/schema/application/core.js.map +0 -1
- package/dist/schema/application/index.d.ts +0 -7
- package/dist/schema/application/index.d.ts.map +0 -1
- package/dist/schema/application/index.js +0 -7
- package/dist/schema/application/index.js.map +0 -1
- package/dist/schema/application/methods.d.ts +0 -171
- package/dist/schema/application/methods.d.ts.map +0 -1
- package/dist/schema/application/methods.js +0 -48
- package/dist/schema/application/methods.js.map +0 -1
- package/dist/schema/application/policies.d.ts +0 -3
- package/dist/schema/application/policies.d.ts.map +0 -1
- package/dist/schema/application/policies.js +0 -11
- package/dist/schema/application/policies.js.map +0 -1
- package/dist/schema/application/relationships.d.ts +0 -795
- package/dist/schema/application/relationships.d.ts.map +0 -1
- package/dist/schema/application/relationships.js +0 -20
- package/dist/schema/application/relationships.js.map +0 -1
- package/dist/schema/application/view.d.ts +0 -155
- package/dist/schema/application/view.d.ts.map +0 -1
- package/dist/schema/application/view.js +0 -7
- package/dist/schema/application/view.js.map +0 -1
- package/dist/schema/domain/index.d.ts +0 -9363
- package/dist/schema/domain/index.d.ts.map +0 -1
- package/dist/schema/domain/index.js +0 -56
- package/dist/schema/domain/index.js.map +0 -1
- package/dist/schema/group/class.d.ts +0 -59
- package/dist/schema/group/class.d.ts.map +0 -1
- package/dist/schema/group/class.js +0 -11
- package/dist/schema/group/class.js.map +0 -1
- package/dist/schema/group/core.d.ts +0 -495
- package/dist/schema/group/core.d.ts.map +0 -1
- package/dist/schema/group/core.js +0 -20
- package/dist/schema/group/core.js.map +0 -1
- package/dist/schema/group/index.d.ts +0 -7
- package/dist/schema/group/index.d.ts.map +0 -1
- package/dist/schema/group/index.js +0 -7
- package/dist/schema/group/index.js.map +0 -1
- package/dist/schema/group/methods.d.ts +0 -48
- package/dist/schema/group/methods.d.ts.map +0 -1
- package/dist/schema/group/methods.js +0 -21
- package/dist/schema/group/methods.js.map +0 -1
- package/dist/schema/group/policies.d.ts +0 -3
- package/dist/schema/group/policies.d.ts.map +0 -1
- package/dist/schema/group/policies.js +0 -7
- package/dist/schema/group/policies.js.map +0 -1
- package/dist/schema/group/relationships.d.ts +0 -293
- package/dist/schema/group/relationships.d.ts.map +0 -1
- package/dist/schema/group/relationships.js +0 -20
- package/dist/schema/group/relationships.js.map +0 -1
- package/dist/schema/group/view.d.ts +0 -62
- package/dist/schema/group/view.d.ts.map +0 -1
- package/dist/schema/group/view.js +0 -7
- package/dist/schema/group/view.js.map +0 -1
- package/dist/schema/home/index.d.ts +0 -2
- package/dist/schema/home/index.d.ts.map +0 -1
- package/dist/schema/home/index.js +0 -2
- package/dist/schema/home/index.js.map +0 -1
- package/dist/schema/home/view.d.ts +0 -4
- package/dist/schema/home/view.d.ts.map +0 -1
- package/dist/schema/home/view.js +0 -5
- package/dist/schema/home/view.js.map +0 -1
- package/dist/schema/index.d.ts.map +0 -1
- package/dist/schema/index.js.map +0 -1
- package/dist/schema/space/class.d.ts +0 -74
- package/dist/schema/space/class.d.ts.map +0 -1
- package/dist/schema/space/class.js +0 -15
- package/dist/schema/space/class.js.map +0 -1
- package/dist/schema/space/core.d.ts +0 -995
- package/dist/schema/space/core.d.ts.map +0 -1
- package/dist/schema/space/core.js +0 -17
- package/dist/schema/space/core.js.map +0 -1
- package/dist/schema/space/index.d.ts +0 -7
- package/dist/schema/space/index.d.ts.map +0 -1
- package/dist/schema/space/index.js +0 -7
- package/dist/schema/space/index.js.map +0 -1
- package/dist/schema/space/methods.d.ts +0 -78
- package/dist/schema/space/methods.d.ts.map +0 -1
- package/dist/schema/space/methods.js +0 -31
- package/dist/schema/space/methods.js.map +0 -1
- package/dist/schema/space/policies.d.ts +0 -5
- package/dist/schema/space/policies.d.ts.map +0 -1
- package/dist/schema/space/policies.js +0 -15
- package/dist/schema/space/policies.js.map +0 -1
- package/dist/schema/space/relationships.d.ts +0 -1059
- package/dist/schema/space/relationships.d.ts.map +0 -1
- package/dist/schema/space/relationships.js +0 -25
- package/dist/schema/space/relationships.js.map +0 -1
- package/dist/schema/space/view.d.ts +0 -77
- package/dist/schema/space/view.d.ts.map +0 -1
- package/dist/schema/space/view.js +0 -7
- package/dist/schema/space/view.js.map +0 -1
- package/dist/schema/user/administrator.d.ts +0 -30
- package/dist/schema/user/administrator.d.ts.map +0 -1
- package/dist/schema/user/administrator.js +0 -19
- package/dist/schema/user/administrator.js.map +0 -1
- package/dist/schema/user/class.d.ts +0 -12
- package/dist/schema/user/class.d.ts.map +0 -1
- package/dist/schema/user/class.js +0 -7
- package/dist/schema/user/class.js.map +0 -1
- package/dist/schema/user/ensure.d.ts +0 -37
- package/dist/schema/user/ensure.d.ts.map +0 -1
- package/dist/schema/user/ensure.js +0 -28
- package/dist/schema/user/ensure.js.map +0 -1
- package/dist/schema/user/index.d.ts +0 -6
- package/dist/schema/user/index.d.ts.map +0 -1
- package/dist/schema/user/index.js +0 -6
- package/dist/schema/user/index.js.map +0 -1
- package/dist/schema/user/interface.d.ts +0 -10
- package/dist/schema/user/interface.d.ts.map +0 -1
- package/dist/schema/user/interface.js +0 -12
- package/dist/schema/user/interface.js.map +0 -1
- package/dist/schema/user/view.d.ts +0 -15
- package/dist/schema/user/view.d.ts.map +0 -1
- package/dist/schema/user/view.js +0 -7
- package/dist/schema/user/view.js.map +0 -1
- package/dist/tests/cross-layer/public.test.d.ts +0 -2
- package/dist/tests/cross-layer/public.test.d.ts.map +0 -1
- package/dist/tests/cross-layer/public.test.js +0 -70
- package/dist/tests/cross-layer/public.test.js.map +0 -1
- package/dist/tests/cross-layer/workflows.test.d.ts +0 -2
- package/dist/tests/cross-layer/workflows.test.d.ts.map +0 -1
- package/dist/tests/cross-layer/workflows.test.js +0 -290
- package/dist/tests/cross-layer/workflows.test.js.map +0 -1
- package/dist/tests/index.d.ts +0 -3
- package/dist/tests/index.d.ts.map +0 -1
- package/dist/tests/index.js +0 -3
- package/dist/tests/index.js.map +0 -1
- package/dist/utils/graph-endpoint/index.d.ts +0 -13
- package/dist/utils/graph-endpoint/index.d.ts.map +0 -1
- package/dist/utils/graph-endpoint/index.js +0 -6
- package/dist/utils/graph-endpoint/index.js.map +0 -1
- package/dist/utils/index.d.ts +0 -3
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -3
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/query-page/index.d.ts +0 -3
- package/dist/utils/query-page/index.d.ts.map +0 -1
- package/dist/utils/query-page/index.js +0 -2
- package/dist/utils/query-page/index.js.map +0 -1
- package/dist/utils/query-page/nodes.d.ts +0 -16
- package/dist/utils/query-page/nodes.d.ts.map +0 -1
- package/dist/utils/query-page/nodes.js +0 -22
- package/dist/utils/query-page/nodes.js.map +0 -1
- package/dist/workflows/application/errors.d.ts +0 -5
- package/dist/workflows/application/errors.d.ts.map +0 -1
- package/dist/workflows/application/errors.js +0 -25
- package/dist/workflows/application/errors.js.map +0 -1
- package/dist/workflows/application/index.d.ts +0 -3
- package/dist/workflows/application/index.d.ts.map +0 -1
- package/dist/workflows/application/index.js +0 -3
- package/dist/workflows/application/index.js.map +0 -1
- package/dist/workflows/application/install.d.ts +0 -3
- package/dist/workflows/application/install.d.ts.map +0 -1
- package/dist/workflows/application/install.js +0 -37
- package/dist/workflows/application/install.js.map +0 -1
- package/dist/workflows/application/uninstall.d.ts +0 -4
- package/dist/workflows/application/uninstall.d.ts.map +0 -1
- package/dist/workflows/application/uninstall.js +0 -25
- package/dist/workflows/application/uninstall.js.map +0 -1
- package/dist/workflows/group/assign-user.d.ts +0 -8
- package/dist/workflows/group/assign-user.d.ts.map +0 -1
- package/dist/workflows/group/assign-user.js +0 -32
- package/dist/workflows/group/assign-user.js.map +0 -1
- package/dist/workflows/group/ensure-administrator.d.ts +0 -4
- package/dist/workflows/group/ensure-administrator.d.ts.map +0 -1
- package/dist/workflows/group/ensure-administrator.js +0 -26
- package/dist/workflows/group/ensure-administrator.js.map +0 -1
- package/dist/workflows/group/errors.d.ts +0 -2
- package/dist/workflows/group/errors.d.ts.map +0 -1
- package/dist/workflows/group/errors.js +0 -7
- package/dist/workflows/group/errors.js.map +0 -1
- package/dist/workflows/group/index.d.ts +0 -4
- package/dist/workflows/group/index.d.ts.map +0 -1
- package/dist/workflows/group/index.js +0 -4
- package/dist/workflows/group/index.js.map +0 -1
- package/dist/workflows/group/unassign-user.d.ts +0 -8
- package/dist/workflows/group/unassign-user.d.ts.map +0 -1
- package/dist/workflows/group/unassign-user.js +0 -32
- package/dist/workflows/group/unassign-user.js.map +0 -1
- package/dist/workflows/index.d.ts +0 -4
- package/dist/workflows/index.d.ts.map +0 -1
- package/dist/workflows/index.js +0 -4
- package/dist/workflows/index.js.map +0 -1
- package/dist/workflows/space/add-user.d.ts +0 -8
- package/dist/workflows/space/add-user.d.ts.map +0 -1
- package/dist/workflows/space/add-user.js +0 -34
- package/dist/workflows/space/add-user.js.map +0 -1
- package/dist/workflows/space/errors.d.ts +0 -3
- package/dist/workflows/space/errors.d.ts.map +0 -1
- package/dist/workflows/space/errors.js +0 -10
- package/dist/workflows/space/errors.js.map +0 -1
- package/dist/workflows/space/index.d.ts +0 -4
- package/dist/workflows/space/index.d.ts.map +0 -1
- package/dist/workflows/space/index.js +0 -4
- package/dist/workflows/space/index.js.map +0 -1
- package/dist/workflows/space/remove-user.d.ts +0 -8
- package/dist/workflows/space/remove-user.d.ts.map +0 -1
- package/dist/workflows/space/remove-user.js +0 -62
- package/dist/workflows/space/remove-user.js.map +0 -1
- package/dist/workflows/space/set-default.d.ts +0 -9
- package/dist/workflows/space/set-default.d.ts.map +0 -1
- package/dist/workflows/space/set-default.js +0 -43
- package/dist/workflows/space/set-default.js.map +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { edgeClass } from '@astrale-os/sdk/schema';
|
|
2
|
+
import { User } from '../../user/index.js';
|
|
3
|
+
import { Group } from './group.js';
|
|
4
|
+
export const member_of_group = edgeClass.directed({
|
|
5
|
+
source: {
|
|
6
|
+
as: 'member',
|
|
7
|
+
accepts: [() => User, () => Group],
|
|
8
|
+
outgoing: '0..*',
|
|
9
|
+
},
|
|
10
|
+
target: { as: 'group', accepts: [() => Group], incoming: '0..*' },
|
|
11
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const adminGroup: import("@astrale-os/sdk/schema").CoreNode;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { K, core } from '@astrale-os/sdk/schema';
|
|
2
|
+
import { Group } from '../classes/group.js';
|
|
3
|
+
export const adminGroup = core.node(() => Group, {
|
|
4
|
+
[K.classes.Named.properties.name.key]: 'Administrators',
|
|
5
|
+
[K.classes.Descriptable.properties.description.key]: 'Instance administrators.',
|
|
6
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const applicationsGroup: import("@astrale-os/sdk/schema").CoreNode;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { K, core } from '@astrale-os/sdk/schema';
|
|
2
|
+
import { Group } from '../classes/group.js';
|
|
3
|
+
export const applicationsGroup = core.node(() => Group, {
|
|
4
|
+
[K.classes.Named.properties.name.key]: 'Applications',
|
|
5
|
+
[K.classes.Descriptable.properties.description.key]: 'May list the installed applications they can open.',
|
|
6
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const memberGroup: import("@astrale-os/sdk/schema").CoreNode;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { K, core } from '@astrale-os/sdk/schema';
|
|
2
|
+
import { Group } from '../classes/group.js';
|
|
3
|
+
export const memberGroup = core.node(() => Group, {
|
|
4
|
+
[K.classes.Named.properties.name.key]: 'Members',
|
|
5
|
+
[K.classes.Descriptable.properties.description.key]: 'Instance members.',
|
|
6
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { method } from '@astrale-os/sdk/schema';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { ownsClass, administersShellClass } from '../../../policies/index.js';
|
|
4
|
+
import { groupMembershipInput } from '../types/index.js';
|
|
5
|
+
export const assignMember = method({
|
|
6
|
+
static: true,
|
|
7
|
+
auth: 'authorized',
|
|
8
|
+
input: groupMembershipInput,
|
|
9
|
+
output: z.object({}),
|
|
10
|
+
policy: ({ anyOf, check, input }) => anyOf(check(administersShellClass, input.group), check(ownsClass, input.group)),
|
|
11
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { method } from '@astrale-os/sdk/schema';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { ownsClass, administersShellClass } from '../../../policies/index.js';
|
|
4
|
+
import { groupMembershipInput } from '../types/index.js';
|
|
5
|
+
export const unassignMember = method({
|
|
6
|
+
static: true,
|
|
7
|
+
auth: 'authorized',
|
|
8
|
+
input: groupMembershipInput,
|
|
9
|
+
output: z.object({}),
|
|
10
|
+
policy: ({ anyOf, check, input }) => anyOf(check(administersShellClass, input.group), check(ownsClass, input.group)),
|
|
11
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const belongsToGroup: import("@astrale-os/sdk/schema").Policy;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { policy } from '@astrale-os/sdk/schema';
|
|
2
|
+
import { member_of_group } from '../classes/member-of-group.js';
|
|
3
|
+
export const belongsToGroup = policy({
|
|
4
|
+
match: ({ edge, subject, object }) => edge({ source: subject, class: () => member_of_group, target: object }),
|
|
5
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { belongsToGroup } from './belongs-to-group.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { belongsToGroup } from './belongs-to-group.js';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { path } from '@astrale-os/sdk/schema';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { User } from '../../user/index.js';
|
|
4
|
+
import { Group } from '../classes/group.js';
|
|
5
|
+
export const groupMembershipInput = z.object({
|
|
6
|
+
member: path(() => User, () => Group),
|
|
7
|
+
group: path(() => Group),
|
|
8
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { groupMembershipInput } from './group-membership-input.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { User } from './user.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { User } from './user.js';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const User: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
3
|
+
readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
|
|
4
|
+
readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Identity">];
|
|
5
|
+
readonly properties: {
|
|
6
|
+
readonly creationKey: z.ZodOptional<z.ZodString>;
|
|
7
|
+
};
|
|
8
|
+
readonly methods: {
|
|
9
|
+
readonly invite: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
10
|
+
user: string;
|
|
11
|
+
email: string;
|
|
12
|
+
}, {
|
|
13
|
+
readonly mode: 'value';
|
|
14
|
+
readonly value: {
|
|
15
|
+
invitationId: string;
|
|
16
|
+
user: string;
|
|
17
|
+
state: "accepted" | "cancelled" | "completed" | "expired" | "failed" | "pending" | "registered" | "registering";
|
|
18
|
+
};
|
|
19
|
+
}, "authorized", true, false, undefined>>;
|
|
20
|
+
};
|
|
21
|
+
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { K, classIcon, nodeClass } from '@astrale-os/sdk/schema';
|
|
2
|
+
import { UserRound } from '@astrale-os/sdk/schema/icons';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { invite } from '../functions/index.js';
|
|
5
|
+
// Correlation for Admin-owned creation; never an authentication credential.
|
|
6
|
+
const creationKey = z.string().min(1).max(512).optional();
|
|
7
|
+
export const User = nodeClass({
|
|
8
|
+
icon: classIcon.lucide(UserRound),
|
|
9
|
+
extends: [K.classes.Identity],
|
|
10
|
+
properties: { creationKey },
|
|
11
|
+
methods: { invite },
|
|
12
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { invite } from './invite-user.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { method, path } from '@astrale-os/sdk/schema';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { ownsClass, administersShellClass } from '../../../policies/index.js';
|
|
4
|
+
import { User } from '../classes/index.js';
|
|
5
|
+
import { invitationSummary } from '../types/index.js';
|
|
6
|
+
export const invite = method({
|
|
7
|
+
static: true,
|
|
8
|
+
auth: 'authorized',
|
|
9
|
+
input: z.object({ user: path(() => User), email: z.string().min(3).max(320) }),
|
|
10
|
+
output: invitationSummary,
|
|
11
|
+
policy: ({ anyOf, check, input }) => anyOf(check(administersShellClass, input.user), check(ownsClass, input.user)),
|
|
12
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { invitationSummary, type InvitationSummary } from './invitation-summary.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { invitationSummary } from './invitation-summary.js';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const invitationSummary: z.ZodObject<{
|
|
3
|
+
invitationId: z.ZodString;
|
|
4
|
+
user: z.ZodString;
|
|
5
|
+
state: z.ZodEnum<{
|
|
6
|
+
accepted: "accepted";
|
|
7
|
+
cancelled: "cancelled";
|
|
8
|
+
completed: "completed";
|
|
9
|
+
expired: "expired";
|
|
10
|
+
failed: "failed";
|
|
11
|
+
pending: "pending";
|
|
12
|
+
registered: "registered";
|
|
13
|
+
registering: "registering";
|
|
14
|
+
}>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export type InvitationSummary = z.infer<typeof invitationSummary>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const invitationSummary = z.object({
|
|
3
|
+
invitationId: z.string().min(1),
|
|
4
|
+
user: z.string().min(1),
|
|
5
|
+
state: z.enum([
|
|
6
|
+
'pending',
|
|
7
|
+
'accepted',
|
|
8
|
+
'registering',
|
|
9
|
+
'registered',
|
|
10
|
+
'completed',
|
|
11
|
+
'cancelled',
|
|
12
|
+
'expired',
|
|
13
|
+
'failed',
|
|
14
|
+
]),
|
|
15
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { K, policy } from '@astrale-os/sdk/schema';
|
|
2
|
+
import { Group, member_of_group, adminGroup } from '../modules/group/index.js';
|
|
3
|
+
/** Instance administration applies to Shell's concrete classes, not foreign descendants. */
|
|
4
|
+
export const administersShellClass = policy({
|
|
5
|
+
match: ({ exists, subject, object, ref, edge, allOf }) => exists(({ node }) => {
|
|
6
|
+
const concrete = node();
|
|
7
|
+
const owner = node(); // of_domain restricts this witness to a protected Domain endpoint.
|
|
8
|
+
const group = ref(() => Group);
|
|
9
|
+
return allOf(edge({ source: subject, class: () => member_of_group, target: ref(adminGroup) }), { source: ref(adminGroup), class: K.classes.instance_of.ref, target: group }, { source: group, class: K.classes.of_domain.ref, target: owner }, { source: concrete, class: K.classes.of_domain.ref, target: owner }, { source: object, class: K.classes.instance_of.ref, target: concrete });
|
|
10
|
+
}),
|
|
11
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { K, policy } from '@astrale-os/sdk/schema';
|
|
2
|
+
export const ownsClass = policy({
|
|
3
|
+
match: ({ exists, subject, object, allOf }) => exists(({ node }) => {
|
|
4
|
+
const concrete = node(); // Périmètre défini par les deux edges kernel protégés.
|
|
5
|
+
return allOf({ source: object, class: K.classes.instance_of.ref, target: concrete }, { source: concrete, class: K.classes.of_domain.ref, target: subject });
|
|
6
|
+
}),
|
|
7
|
+
});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { K, policy } from '@astrale-os/sdk/schema';
|
|
2
|
+
/** The subject may use the object Function: its own or a composed Identity holds can_use on it. */
|
|
3
|
+
export const usesFunction = policy({
|
|
4
|
+
match: ({ edge, subject, object }) => edge({ source: subject, class: () => K.classes.can_use, target: object }),
|
|
5
|
+
});
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
import { KernelSchema, schema } from '@astrale-os/sdk/schema';
|
|
2
|
+
export declare const ORIGIN: 'shell.astrale.ai';
|
|
3
|
+
declare const 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: import("zod").ZodOptional<import("zod").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, undefined>>;
|
|
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, undefined>>;
|
|
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, undefined>>;
|
|
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
|
+
export type ShellClasses = typeof classes;
|
|
62
|
+
declare const input: {
|
|
63
|
+
readonly name: 'Shell';
|
|
64
|
+
readonly entrypoint: 'application';
|
|
65
|
+
readonly dependencies: {
|
|
66
|
+
readonly kernel: KernelSchema;
|
|
67
|
+
};
|
|
68
|
+
readonly classes: {
|
|
69
|
+
readonly User: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
70
|
+
readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
|
|
71
|
+
readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Identity">];
|
|
72
|
+
readonly properties: {
|
|
73
|
+
readonly creationKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
74
|
+
};
|
|
75
|
+
readonly methods: {
|
|
76
|
+
readonly invite: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
77
|
+
user: string;
|
|
78
|
+
email: string;
|
|
79
|
+
}, {
|
|
80
|
+
readonly mode: 'value';
|
|
81
|
+
readonly value: {
|
|
82
|
+
invitationId: string;
|
|
83
|
+
user: string;
|
|
84
|
+
state: "accepted" | "cancelled" | "completed" | "expired" | "failed" | "pending" | "registered" | "registering";
|
|
85
|
+
};
|
|
86
|
+
}, "authorized", true, false, undefined>>;
|
|
87
|
+
};
|
|
88
|
+
}>;
|
|
89
|
+
readonly Group: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
90
|
+
readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
|
|
91
|
+
readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Identity">, import("@astrale-os/sdk/schema").KernelClass<"Named">, import("@astrale-os/sdk/schema").KernelClass<"Descriptable">];
|
|
92
|
+
readonly methods: {
|
|
93
|
+
readonly assignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
94
|
+
member: string;
|
|
95
|
+
group: string;
|
|
96
|
+
}, {
|
|
97
|
+
readonly mode: 'value';
|
|
98
|
+
readonly value: Record<string, never>;
|
|
99
|
+
}, "authorized", true, false, undefined>>;
|
|
100
|
+
readonly unassignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
101
|
+
member: string;
|
|
102
|
+
group: string;
|
|
103
|
+
}, {
|
|
104
|
+
readonly mode: 'value';
|
|
105
|
+
readonly value: Record<string, never>;
|
|
106
|
+
}, "authorized", true, false, undefined>>;
|
|
107
|
+
};
|
|
108
|
+
}>;
|
|
109
|
+
readonly member_of_group: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
|
|
110
|
+
readonly depth: 0;
|
|
111
|
+
readonly abstract: false;
|
|
112
|
+
readonly extends: readonly [];
|
|
113
|
+
readonly properties: never;
|
|
114
|
+
readonly source: {
|
|
115
|
+
readonly as: "member";
|
|
116
|
+
readonly outgoing: "0..*";
|
|
117
|
+
};
|
|
118
|
+
readonly target: {
|
|
119
|
+
readonly as: "group";
|
|
120
|
+
readonly incoming: "0..*";
|
|
121
|
+
};
|
|
122
|
+
readonly constraints: Record<never, never>;
|
|
123
|
+
readonly effectiveProperties: never;
|
|
124
|
+
}>;
|
|
125
|
+
};
|
|
126
|
+
readonly functions: {
|
|
127
|
+
readonly listEntrypoints: import("@astrale-os/sdk/schema").Function<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
128
|
+
readonly mode: 'value';
|
|
129
|
+
readonly value: {
|
|
130
|
+
entrypoints: {
|
|
131
|
+
origin: string;
|
|
132
|
+
name: string;
|
|
133
|
+
view: string;
|
|
134
|
+
}[];
|
|
135
|
+
};
|
|
136
|
+
}, "authorized", false, false, undefined>>;
|
|
137
|
+
};
|
|
138
|
+
readonly policies: {
|
|
139
|
+
readonly belongsToGroup: import("@astrale-os/sdk/schema").Policy;
|
|
140
|
+
readonly ownsClass: import("@astrale-os/sdk/schema").Policy;
|
|
141
|
+
readonly administersShellClass: import("@astrale-os/sdk/schema").Policy;
|
|
142
|
+
readonly usesFunction: import("@astrale-os/sdk/schema").Policy;
|
|
143
|
+
};
|
|
144
|
+
readonly views: {
|
|
145
|
+
readonly application: import("@astrale-os/sdk/schema").View;
|
|
146
|
+
};
|
|
147
|
+
readonly core: {
|
|
148
|
+
readonly nodes: {
|
|
149
|
+
readonly admin: import("@astrale-os/sdk/schema").CoreNode;
|
|
150
|
+
readonly applications: import("@astrale-os/sdk/schema").CoreNode;
|
|
151
|
+
readonly member: import("@astrale-os/sdk/schema").CoreNode;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
export type ShellSchemaInput = typeof input;
|
|
156
|
+
export declare const ShellSchema: import("@astrale-os/sdk/schema").AuthoredSchema<"shell.astrale.ai", readonly ["kernel.astrale.ai", KernelSchema] | readonly ["shell.astrale.ai", {
|
|
157
|
+
readonly name: 'Shell';
|
|
158
|
+
readonly entrypoint: 'application';
|
|
159
|
+
readonly classes: {
|
|
160
|
+
readonly User: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
161
|
+
readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
|
|
162
|
+
readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Identity">];
|
|
163
|
+
readonly properties: {
|
|
164
|
+
readonly creationKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
165
|
+
};
|
|
166
|
+
readonly methods: {
|
|
167
|
+
readonly invite: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
168
|
+
user: string;
|
|
169
|
+
email: string;
|
|
170
|
+
}, {
|
|
171
|
+
readonly mode: 'value';
|
|
172
|
+
readonly value: {
|
|
173
|
+
invitationId: string;
|
|
174
|
+
user: string;
|
|
175
|
+
state: "accepted" | "cancelled" | "completed" | "expired" | "failed" | "pending" | "registered" | "registering";
|
|
176
|
+
};
|
|
177
|
+
}, "authorized", true, false, undefined>>;
|
|
178
|
+
};
|
|
179
|
+
}>;
|
|
180
|
+
readonly Group: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
181
|
+
readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
|
|
182
|
+
readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Identity">, import("@astrale-os/sdk/schema").KernelClass<"Named">, import("@astrale-os/sdk/schema").KernelClass<"Descriptable">];
|
|
183
|
+
readonly methods: {
|
|
184
|
+
readonly assignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
185
|
+
member: string;
|
|
186
|
+
group: string;
|
|
187
|
+
}, {
|
|
188
|
+
readonly mode: 'value';
|
|
189
|
+
readonly value: Record<string, never>;
|
|
190
|
+
}, "authorized", true, false, undefined>>;
|
|
191
|
+
readonly unassignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
192
|
+
member: string;
|
|
193
|
+
group: string;
|
|
194
|
+
}, {
|
|
195
|
+
readonly mode: 'value';
|
|
196
|
+
readonly value: Record<string, never>;
|
|
197
|
+
}, "authorized", true, false, undefined>>;
|
|
198
|
+
};
|
|
199
|
+
}>;
|
|
200
|
+
readonly member_of_group: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
|
|
201
|
+
readonly depth: 0;
|
|
202
|
+
readonly abstract: false;
|
|
203
|
+
readonly extends: readonly [];
|
|
204
|
+
readonly properties: never;
|
|
205
|
+
readonly source: {
|
|
206
|
+
readonly as: "member";
|
|
207
|
+
readonly outgoing: "0..*";
|
|
208
|
+
};
|
|
209
|
+
readonly target: {
|
|
210
|
+
readonly as: "group";
|
|
211
|
+
readonly incoming: "0..*";
|
|
212
|
+
};
|
|
213
|
+
readonly constraints: Record<never, never>;
|
|
214
|
+
readonly effectiveProperties: never;
|
|
215
|
+
}>;
|
|
216
|
+
};
|
|
217
|
+
readonly functions: {
|
|
218
|
+
readonly listEntrypoints: import("@astrale-os/sdk/schema").Function<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
219
|
+
readonly mode: 'value';
|
|
220
|
+
readonly value: {
|
|
221
|
+
entrypoints: {
|
|
222
|
+
origin: string;
|
|
223
|
+
name: string;
|
|
224
|
+
view: string;
|
|
225
|
+
}[];
|
|
226
|
+
};
|
|
227
|
+
}, "authorized", false, false, undefined>>;
|
|
228
|
+
};
|
|
229
|
+
readonly policies: {
|
|
230
|
+
readonly belongsToGroup: import("@astrale-os/sdk/schema").Policy;
|
|
231
|
+
readonly ownsClass: import("@astrale-os/sdk/schema").Policy;
|
|
232
|
+
readonly administersShellClass: import("@astrale-os/sdk/schema").Policy;
|
|
233
|
+
readonly usesFunction: import("@astrale-os/sdk/schema").Policy;
|
|
234
|
+
};
|
|
235
|
+
readonly views: {
|
|
236
|
+
readonly application: import("@astrale-os/sdk/schema").View;
|
|
237
|
+
};
|
|
238
|
+
readonly core: {
|
|
239
|
+
readonly nodes: {
|
|
240
|
+
readonly admin: import("@astrale-os/sdk/schema").CoreNode;
|
|
241
|
+
readonly applications: import("@astrale-os/sdk/schema").CoreNode;
|
|
242
|
+
readonly member: import("@astrale-os/sdk/schema").CoreNode;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
}, {
|
|
246
|
+
readonly kernel: "kernel.astrale.ai";
|
|
247
|
+
}]>;
|
|
248
|
+
export type ShellSchema = typeof ShellSchema;
|
|
249
|
+
export declare const S: schema.ResolvedDomainOf<import("@astrale-os/sdk/schema").AuthoredSchema<"shell.astrale.ai", readonly ["kernel.astrale.ai", KernelSchema] | readonly ["shell.astrale.ai", {
|
|
250
|
+
readonly name: 'Shell';
|
|
251
|
+
readonly entrypoint: 'application';
|
|
252
|
+
readonly classes: {
|
|
253
|
+
readonly User: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
254
|
+
readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
|
|
255
|
+
readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Identity">];
|
|
256
|
+
readonly properties: {
|
|
257
|
+
readonly creationKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
258
|
+
};
|
|
259
|
+
readonly methods: {
|
|
260
|
+
readonly invite: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
261
|
+
user: string;
|
|
262
|
+
email: string;
|
|
263
|
+
}, {
|
|
264
|
+
readonly mode: 'value';
|
|
265
|
+
readonly value: {
|
|
266
|
+
invitationId: string;
|
|
267
|
+
user: string;
|
|
268
|
+
state: "accepted" | "cancelled" | "completed" | "expired" | "failed" | "pending" | "registered" | "registering";
|
|
269
|
+
};
|
|
270
|
+
}, "authorized", true, false, undefined>>;
|
|
271
|
+
};
|
|
272
|
+
}>;
|
|
273
|
+
readonly Group: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
274
|
+
readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
|
|
275
|
+
readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Identity">, import("@astrale-os/sdk/schema").KernelClass<"Named">, import("@astrale-os/sdk/schema").KernelClass<"Descriptable">];
|
|
276
|
+
readonly methods: {
|
|
277
|
+
readonly assignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
278
|
+
member: string;
|
|
279
|
+
group: string;
|
|
280
|
+
}, {
|
|
281
|
+
readonly mode: 'value';
|
|
282
|
+
readonly value: Record<string, never>;
|
|
283
|
+
}, "authorized", true, false, undefined>>;
|
|
284
|
+
readonly unassignMember: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
285
|
+
member: string;
|
|
286
|
+
group: string;
|
|
287
|
+
}, {
|
|
288
|
+
readonly mode: 'value';
|
|
289
|
+
readonly value: Record<string, never>;
|
|
290
|
+
}, "authorized", true, false, undefined>>;
|
|
291
|
+
};
|
|
292
|
+
}>;
|
|
293
|
+
readonly member_of_group: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
|
|
294
|
+
readonly depth: 0;
|
|
295
|
+
readonly abstract: false;
|
|
296
|
+
readonly extends: readonly [];
|
|
297
|
+
readonly properties: never;
|
|
298
|
+
readonly source: {
|
|
299
|
+
readonly as: "member";
|
|
300
|
+
readonly outgoing: "0..*";
|
|
301
|
+
};
|
|
302
|
+
readonly target: {
|
|
303
|
+
readonly as: "group";
|
|
304
|
+
readonly incoming: "0..*";
|
|
305
|
+
};
|
|
306
|
+
readonly constraints: Record<never, never>;
|
|
307
|
+
readonly effectiveProperties: never;
|
|
308
|
+
}>;
|
|
309
|
+
};
|
|
310
|
+
readonly functions: {
|
|
311
|
+
readonly listEntrypoints: import("@astrale-os/sdk/schema").Function<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
312
|
+
readonly mode: 'value';
|
|
313
|
+
readonly value: {
|
|
314
|
+
entrypoints: {
|
|
315
|
+
origin: string;
|
|
316
|
+
name: string;
|
|
317
|
+
view: string;
|
|
318
|
+
}[];
|
|
319
|
+
};
|
|
320
|
+
}, "authorized", false, false, undefined>>;
|
|
321
|
+
};
|
|
322
|
+
readonly policies: {
|
|
323
|
+
readonly belongsToGroup: import("@astrale-os/sdk/schema").Policy;
|
|
324
|
+
readonly ownsClass: import("@astrale-os/sdk/schema").Policy;
|
|
325
|
+
readonly administersShellClass: import("@astrale-os/sdk/schema").Policy;
|
|
326
|
+
readonly usesFunction: import("@astrale-os/sdk/schema").Policy;
|
|
327
|
+
};
|
|
328
|
+
readonly views: {
|
|
329
|
+
readonly application: import("@astrale-os/sdk/schema").View;
|
|
330
|
+
};
|
|
331
|
+
readonly core: {
|
|
332
|
+
readonly nodes: {
|
|
333
|
+
readonly admin: import("@astrale-os/sdk/schema").CoreNode;
|
|
334
|
+
readonly applications: import("@astrale-os/sdk/schema").CoreNode;
|
|
335
|
+
readonly member: import("@astrale-os/sdk/schema").CoreNode;
|
|
336
|
+
};
|
|
337
|
+
};
|
|
338
|
+
}, {
|
|
339
|
+
readonly kernel: "kernel.astrale.ai";
|
|
340
|
+
}]>>;
|
|
341
|
+
export type Shell = schema.DomainOf<ShellSchema>;
|
|
342
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineSchema, KernelSchema, schema } from '@astrale-os/sdk/schema';
|
|
2
|
+
import { listEntrypoints } from './modules/application/index.js';
|
|
3
|
+
import { Group, member_of_group, adminGroup, applicationsGroup, memberGroup, belongsToGroup, } from './modules/group/index.js';
|
|
4
|
+
import { User } from './modules/user/index.js';
|
|
5
|
+
import { ownsClass, administersShellClass, usesFunction } from './policies/index.js';
|
|
6
|
+
import { applicationView } from './views/index.js';
|
|
7
|
+
export const ORIGIN = 'shell.astrale.ai';
|
|
8
|
+
const dependencies = { kernel: KernelSchema };
|
|
9
|
+
const classes = { User, Group, member_of_group };
|
|
10
|
+
const functions = { listEntrypoints };
|
|
11
|
+
const policies = { belongsToGroup, ownsClass, administersShellClass, usesFunction };
|
|
12
|
+
const views = { application: applicationView };
|
|
13
|
+
const core = {
|
|
14
|
+
nodes: { admin: adminGroup, applications: applicationsGroup, member: memberGroup },
|
|
15
|
+
};
|
|
16
|
+
const input = {
|
|
17
|
+
name: 'Shell',
|
|
18
|
+
entrypoint: 'application',
|
|
19
|
+
dependencies,
|
|
20
|
+
classes,
|
|
21
|
+
functions,
|
|
22
|
+
policies,
|
|
23
|
+
views,
|
|
24
|
+
core,
|
|
25
|
+
};
|
|
26
|
+
export const ShellSchema = defineSchema(ORIGIN, input);
|
|
27
|
+
export const S = schema.resolve(ShellSchema);
|