@astrale-domains/shell 0.1.0-beta.4 → 0.1.0-beta.40
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
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
export declare const Application: import("@astrale-os/sdk/schema").NodeClass<{
|
|
2
|
-
readonly description: "A property-free Space association for one installed Domain.";
|
|
3
|
-
readonly methods: {
|
|
4
|
-
install: import("@astrale-os/sdk/schema").Function<{
|
|
5
|
-
readonly description: "Convergently associate one installed Domain with one Space.";
|
|
6
|
-
readonly static: true;
|
|
7
|
-
readonly input: import("zod").ZodObject<{
|
|
8
|
-
domain: import("@astrale-os/sdk/schema").Path<readonly [{
|
|
9
|
-
origin: string;
|
|
10
|
-
kind: 'class';
|
|
11
|
-
name: string;
|
|
12
|
-
}]>;
|
|
13
|
-
space: import("@astrale-os/sdk/schema").Path<readonly [import("@astrale-os/sdk/schema").NodeClass<{
|
|
14
|
-
readonly description: "A named Shell collaboration boundary.";
|
|
15
|
-
readonly implements: readonly [{
|
|
16
|
-
origin: "kernel.astrale.ai";
|
|
17
|
-
kind: 'interface';
|
|
18
|
-
name: string;
|
|
19
|
-
}, {
|
|
20
|
-
origin: "kernel.astrale.ai";
|
|
21
|
-
kind: 'interface';
|
|
22
|
-
name: string;
|
|
23
|
-
}];
|
|
24
|
-
readonly methods: {
|
|
25
|
-
addUser: import("@astrale-os/sdk/schema").Function<{
|
|
26
|
-
readonly description: "Set one User direct member or admin access.";
|
|
27
|
-
readonly input: import("zod").ZodObject<{
|
|
28
|
-
user: import("@astrale-os/sdk/schema").Path<readonly [import("@astrale-os/sdk/schema").NodeInterface<{
|
|
29
|
-
readonly description: "A human-facing Shell principal.";
|
|
30
|
-
readonly extends: readonly [{
|
|
31
|
-
origin: "kernel.astrale.ai";
|
|
32
|
-
kind: 'interface';
|
|
33
|
-
name: "Identity";
|
|
34
|
-
}];
|
|
35
|
-
}>]>;
|
|
36
|
-
access: import("zod").ZodEnum<{
|
|
37
|
-
admin: "admin";
|
|
38
|
-
member: "member";
|
|
39
|
-
}>;
|
|
40
|
-
}, import("zod/v4/core").$strict>;
|
|
41
|
-
readonly output: {
|
|
42
|
-
type: 'object';
|
|
43
|
-
properties: {};
|
|
44
|
-
additionalProperties: boolean;
|
|
45
|
-
};
|
|
46
|
-
readonly auth: "authorized";
|
|
47
|
-
readonly policy: ({ check, self }: import("@astrale-os/sdk/schema").CallablePolicyContext) => import("@astrale-os/sdk/schema").PolicyCheckExpression;
|
|
48
|
-
}>;
|
|
49
|
-
removeUser: import("@astrale-os/sdk/schema").Function<{
|
|
50
|
-
readonly description: "Remove one User direct access.";
|
|
51
|
-
readonly input: import("zod").ZodObject<{
|
|
52
|
-
user: import("@astrale-os/sdk/schema").Path<readonly [import("@astrale-os/sdk/schema").NodeInterface<{
|
|
53
|
-
readonly description: "A human-facing Shell principal.";
|
|
54
|
-
readonly extends: readonly [{
|
|
55
|
-
origin: "kernel.astrale.ai";
|
|
56
|
-
kind: 'interface';
|
|
57
|
-
name: "Identity";
|
|
58
|
-
}];
|
|
59
|
-
}>]>;
|
|
60
|
-
}, import("zod/v4/core").$strict>;
|
|
61
|
-
readonly output: {
|
|
62
|
-
type: 'object';
|
|
63
|
-
properties: {};
|
|
64
|
-
additionalProperties: boolean;
|
|
65
|
-
};
|
|
66
|
-
readonly auth: "authorized";
|
|
67
|
-
readonly policy: ({ check, self }: import("@astrale-os/sdk/schema").CallablePolicyContext) => import("@astrale-os/sdk/schema").PolicyCheckExpression;
|
|
68
|
-
}>;
|
|
69
|
-
setDefault: import("@astrale-os/sdk/schema").Function<{
|
|
70
|
-
readonly description: "Set this accessible Space as the granted User fallback.";
|
|
71
|
-
readonly input: {
|
|
72
|
-
type: 'object';
|
|
73
|
-
properties: {};
|
|
74
|
-
additionalProperties: boolean;
|
|
75
|
-
};
|
|
76
|
-
readonly output: {
|
|
77
|
-
type: 'object';
|
|
78
|
-
properties: {};
|
|
79
|
-
additionalProperties: boolean;
|
|
80
|
-
};
|
|
81
|
-
readonly auth: "authorized";
|
|
82
|
-
readonly policy: ({ check, self }: import("@astrale-os/sdk/schema").CallablePolicyContext) => import("@astrale-os/sdk/schema").PolicyCheckExpression;
|
|
83
|
-
}>;
|
|
84
|
-
};
|
|
85
|
-
}>]>;
|
|
86
|
-
}, import("zod/v4/core").$strict>;
|
|
87
|
-
readonly output: {
|
|
88
|
-
readonly type: "object";
|
|
89
|
-
readonly properties: {
|
|
90
|
-
readonly application: {
|
|
91
|
-
readonly type: "object";
|
|
92
|
-
readonly properties: {
|
|
93
|
-
readonly id: {
|
|
94
|
-
readonly type: "string";
|
|
95
|
-
};
|
|
96
|
-
readonly path: {
|
|
97
|
-
type: 'string';
|
|
98
|
-
pattern: string;
|
|
99
|
-
};
|
|
100
|
-
readonly class: {
|
|
101
|
-
readonly const: "Application";
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
readonly required: readonly ["id", "path", "class"];
|
|
105
|
-
readonly additionalProperties: false;
|
|
106
|
-
};
|
|
107
|
-
readonly domain: {
|
|
108
|
-
type: 'string';
|
|
109
|
-
pattern: string;
|
|
110
|
-
};
|
|
111
|
-
readonly space: {
|
|
112
|
-
readonly type: "object";
|
|
113
|
-
readonly properties: {
|
|
114
|
-
readonly id: {
|
|
115
|
-
readonly type: "string";
|
|
116
|
-
};
|
|
117
|
-
readonly path: {
|
|
118
|
-
type: 'string';
|
|
119
|
-
pattern: string;
|
|
120
|
-
};
|
|
121
|
-
readonly class: {
|
|
122
|
-
readonly const: "Space";
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
readonly required: readonly ["id", "path", "class"];
|
|
126
|
-
readonly additionalProperties: false;
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
readonly required: readonly ["application", "domain", "space"];
|
|
130
|
-
readonly additionalProperties: false;
|
|
131
|
-
} & import("@astrale-os/sdk/schema").TypedValueSchema<import("./methods.js").InstallApplicationResult>;
|
|
132
|
-
readonly auth: "authorized";
|
|
133
|
-
readonly policy: ({ check, input }: import("@astrale-os/sdk/schema").CallablePolicyContext) => import("@astrale-os/sdk/schema").PolicyCheckExpression;
|
|
134
|
-
}>;
|
|
135
|
-
uninstall: import("@astrale-os/sdk/schema").Function<{
|
|
136
|
-
readonly description: "Remove this Application association without uninstalling its Domain.";
|
|
137
|
-
readonly input: {
|
|
138
|
-
type: 'object';
|
|
139
|
-
properties: {};
|
|
140
|
-
additionalProperties: boolean;
|
|
141
|
-
};
|
|
142
|
-
readonly output: {
|
|
143
|
-
type: 'object';
|
|
144
|
-
properties: {};
|
|
145
|
-
additionalProperties: boolean;
|
|
146
|
-
} & import("@astrale-os/sdk/schema").TypedValueSchema<import("./methods.js").UninstallApplicationResult>;
|
|
147
|
-
readonly auth: "authorized";
|
|
148
|
-
readonly policy: ({ check, self }: import("@astrale-os/sdk/schema").CallablePolicyContext) => import("@astrale-os/sdk/schema").PolicyCheckExpression;
|
|
149
|
-
}>;
|
|
150
|
-
};
|
|
151
|
-
}>;
|
|
152
|
-
//# sourceMappingURL=class.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"class.d.ts","sourceRoot":"","sources":["../../../schema/application/class.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW;;;QAGpB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QACP,SAAS;;;;;;;;;;;;;;;;EAEX,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { nodeClass } from '@astrale-os/sdk/schema';
|
|
2
|
-
import { applicationInstall, applicationUninstall } from './methods.js';
|
|
3
|
-
export const Application = nodeClass({
|
|
4
|
-
description: 'A property-free Space association for one installed Domain.',
|
|
5
|
-
methods: {
|
|
6
|
-
install: applicationInstall,
|
|
7
|
-
uninstall: applicationUninstall,
|
|
8
|
-
},
|
|
9
|
-
});
|
|
10
|
-
//# sourceMappingURL=class.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"class.js","sourceRoot":"","sources":["../../../schema/application/class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAElD,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AAEvE,MAAM,CAAC,MAAM,WAAW,GAAG,SAAS,CAAC;IACnC,WAAW,EAAE,6DAA6D;IAC1E,OAAO,EAAE;QACP,OAAO,EAAE,kBAAkB;QAC3B,SAAS,EAAE,oBAAoB;KAChC;CACF,CAAC,CAAA"}
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { type builder } from '@astrale-os/sdk/schema';
|
|
2
|
-
export declare const shellApplication: builder.Node<builder.NodeClass<{
|
|
3
|
-
readonly description: "A property-free Space association for one installed Domain.";
|
|
4
|
-
readonly methods: {
|
|
5
|
-
install: builder.Function<{
|
|
6
|
-
readonly description: "Convergently associate one installed Domain with one Space.";
|
|
7
|
-
readonly static: true;
|
|
8
|
-
readonly input: import("zod").ZodObject<{
|
|
9
|
-
domain: builder.Path<readonly [{
|
|
10
|
-
origin: string;
|
|
11
|
-
kind: 'class';
|
|
12
|
-
name: string;
|
|
13
|
-
}]>;
|
|
14
|
-
space: builder.Path<readonly [builder.NodeClass<{
|
|
15
|
-
readonly description: "A named Shell collaboration boundary.";
|
|
16
|
-
readonly implements: readonly [{
|
|
17
|
-
origin: "kernel.astrale.ai";
|
|
18
|
-
kind: 'interface';
|
|
19
|
-
name: string;
|
|
20
|
-
}, {
|
|
21
|
-
origin: "kernel.astrale.ai";
|
|
22
|
-
kind: 'interface';
|
|
23
|
-
name: string;
|
|
24
|
-
}];
|
|
25
|
-
readonly methods: {
|
|
26
|
-
addUser: builder.Function<{
|
|
27
|
-
readonly description: "Set one User direct member or admin access.";
|
|
28
|
-
readonly input: import("zod").ZodObject<{
|
|
29
|
-
user: builder.Path<readonly [builder.NodeInterface<{
|
|
30
|
-
readonly description: "A human-facing Shell principal.";
|
|
31
|
-
readonly extends: readonly [{
|
|
32
|
-
origin: "kernel.astrale.ai";
|
|
33
|
-
kind: 'interface';
|
|
34
|
-
name: "Identity";
|
|
35
|
-
}];
|
|
36
|
-
}>]>;
|
|
37
|
-
access: import("zod").ZodEnum<{
|
|
38
|
-
admin: "admin";
|
|
39
|
-
member: "member";
|
|
40
|
-
}>;
|
|
41
|
-
}, import("zod/v4/core").$strict>;
|
|
42
|
-
readonly output: {
|
|
43
|
-
type: 'object';
|
|
44
|
-
properties: {};
|
|
45
|
-
additionalProperties: boolean;
|
|
46
|
-
};
|
|
47
|
-
readonly auth: "authorized";
|
|
48
|
-
readonly policy: ({ check, self }: builder.CallablePolicyContext) => import("@astrale-os/sdk/schema").PolicyCheckExpression;
|
|
49
|
-
}>;
|
|
50
|
-
removeUser: builder.Function<{
|
|
51
|
-
readonly description: "Remove one User direct access.";
|
|
52
|
-
readonly input: import("zod").ZodObject<{
|
|
53
|
-
user: builder.Path<readonly [builder.NodeInterface<{
|
|
54
|
-
readonly description: "A human-facing Shell principal.";
|
|
55
|
-
readonly extends: readonly [{
|
|
56
|
-
origin: "kernel.astrale.ai";
|
|
57
|
-
kind: 'interface';
|
|
58
|
-
name: "Identity";
|
|
59
|
-
}];
|
|
60
|
-
}>]>;
|
|
61
|
-
}, import("zod/v4/core").$strict>;
|
|
62
|
-
readonly output: {
|
|
63
|
-
type: 'object';
|
|
64
|
-
properties: {};
|
|
65
|
-
additionalProperties: boolean;
|
|
66
|
-
};
|
|
67
|
-
readonly auth: "authorized";
|
|
68
|
-
readonly policy: ({ check, self }: builder.CallablePolicyContext) => import("@astrale-os/sdk/schema").PolicyCheckExpression;
|
|
69
|
-
}>;
|
|
70
|
-
setDefault: builder.Function<{
|
|
71
|
-
readonly description: "Set this accessible Space as the granted User fallback.";
|
|
72
|
-
readonly input: {
|
|
73
|
-
type: 'object';
|
|
74
|
-
properties: {};
|
|
75
|
-
additionalProperties: boolean;
|
|
76
|
-
};
|
|
77
|
-
readonly output: {
|
|
78
|
-
type: 'object';
|
|
79
|
-
properties: {};
|
|
80
|
-
additionalProperties: boolean;
|
|
81
|
-
};
|
|
82
|
-
readonly auth: "authorized";
|
|
83
|
-
readonly policy: ({ check, self }: builder.CallablePolicyContext) => import("@astrale-os/sdk/schema").PolicyCheckExpression;
|
|
84
|
-
}>;
|
|
85
|
-
};
|
|
86
|
-
}>]>;
|
|
87
|
-
}, import("zod/v4/core").$strict>;
|
|
88
|
-
readonly output: {
|
|
89
|
-
readonly type: "object";
|
|
90
|
-
readonly properties: {
|
|
91
|
-
readonly application: {
|
|
92
|
-
readonly type: "object";
|
|
93
|
-
readonly properties: {
|
|
94
|
-
readonly id: {
|
|
95
|
-
readonly type: "string";
|
|
96
|
-
};
|
|
97
|
-
readonly path: {
|
|
98
|
-
type: 'string';
|
|
99
|
-
pattern: string;
|
|
100
|
-
};
|
|
101
|
-
readonly class: {
|
|
102
|
-
readonly const: "Application";
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
readonly required: readonly ["id", "path", "class"];
|
|
106
|
-
readonly additionalProperties: false;
|
|
107
|
-
};
|
|
108
|
-
readonly domain: {
|
|
109
|
-
type: 'string';
|
|
110
|
-
pattern: string;
|
|
111
|
-
};
|
|
112
|
-
readonly space: {
|
|
113
|
-
readonly type: "object";
|
|
114
|
-
readonly properties: {
|
|
115
|
-
readonly id: {
|
|
116
|
-
readonly type: "string";
|
|
117
|
-
};
|
|
118
|
-
readonly path: {
|
|
119
|
-
type: 'string';
|
|
120
|
-
pattern: string;
|
|
121
|
-
};
|
|
122
|
-
readonly class: {
|
|
123
|
-
readonly const: "Space";
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
readonly required: readonly ["id", "path", "class"];
|
|
127
|
-
readonly additionalProperties: false;
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
readonly required: readonly ["application", "domain", "space"];
|
|
131
|
-
readonly additionalProperties: false;
|
|
132
|
-
} & builder.TypedValueSchema<import("./methods.js").InstallApplicationResult>;
|
|
133
|
-
readonly auth: "authorized";
|
|
134
|
-
readonly policy: ({ check, input }: builder.CallablePolicyContext) => import("@astrale-os/sdk/schema").PolicyCheckExpression;
|
|
135
|
-
}>;
|
|
136
|
-
uninstall: builder.Function<{
|
|
137
|
-
readonly description: "Remove this Application association without uninstalling its Domain.";
|
|
138
|
-
readonly input: {
|
|
139
|
-
type: 'object';
|
|
140
|
-
properties: {};
|
|
141
|
-
additionalProperties: boolean;
|
|
142
|
-
};
|
|
143
|
-
readonly output: {
|
|
144
|
-
type: 'object';
|
|
145
|
-
properties: {};
|
|
146
|
-
additionalProperties: boolean;
|
|
147
|
-
} & builder.TypedValueSchema<import("./methods.js").UninstallApplicationResult>;
|
|
148
|
-
readonly auth: "authorized";
|
|
149
|
-
readonly policy: ({ check, self }: builder.CallablePolicyContext) => import("@astrale-os/sdk/schema").PolicyCheckExpression;
|
|
150
|
-
}>;
|
|
151
|
-
};
|
|
152
|
-
}>>;
|
|
153
|
-
export declare const applicationCore: Readonly<{
|
|
154
|
-
nodes: Readonly<{
|
|
155
|
-
shell: typeof shellApplication;
|
|
156
|
-
}>;
|
|
157
|
-
edges: NonNullable<builder.Core['edges']>;
|
|
158
|
-
}>;
|
|
159
|
-
//# sourceMappingURL=core.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../schema/application/core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,OAAO,EAAE,MAAM,wBAAwB,CAAA;AAOzE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAwB,CAAA;AAErD,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC;IACrC,KAAK,EAAE,QAAQ,CAAC;QAAE,KAAK,EAAE,OAAO,gBAAgB,CAAA;KAAE,CAAC,CAAA;IACnD,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAA;CAC1C,CAMA,CAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { domain, edge, node } from '@astrale-os/sdk/schema';
|
|
2
|
-
import { defaultSpace } from '#schema/space';
|
|
3
|
-
import { Application } from './class.js';
|
|
4
|
-
import { application_of, installed_in } from './relationships.js';
|
|
5
|
-
export const shellApplication = node(Application, {});
|
|
6
|
-
export const applicationCore = {
|
|
7
|
-
nodes: { shell: shellApplication },
|
|
8
|
-
edges: [
|
|
9
|
-
edge(shellApplication, installed_in, defaultSpace, {}),
|
|
10
|
-
edge(shellApplication, application_of, domain(), {}),
|
|
11
|
-
],
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=core.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"core.js","sourceRoot":"","sources":["../../../schema/application/core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAgB,MAAM,wBAAwB,CAAA;AAEzE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAE5C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjE,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAErD,MAAM,CAAC,MAAM,eAAe,GAGvB;IACH,KAAK,EAAE,EAAE,KAAK,EAAE,gBAAgB,EAAE;IAClC,KAAK,EAAE;QACL,IAAI,CAAC,gBAAgB,EAAE,YAAY,EAAE,YAAY,EAAE,EAAE,CAAC;QACtD,IAAI,CAAC,gBAAgB,EAAE,cAAc,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;KACrD;CACF,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { Application } from './class.js';
|
|
2
|
-
export { applicationCore, shellApplication } from './core.js';
|
|
3
|
-
export { applicationInstall, applicationUninstall, type InstallApplicationInput, type InstallApplicationResult, type UninstallApplicationInput, type UninstallApplicationResult, } from './methods.js';
|
|
4
|
-
export { mayAdministerApplication } from './policies.js';
|
|
5
|
-
export { application_of, installed_in } from './relationships.js';
|
|
6
|
-
export { applicationView } from './view.js';
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schema/application/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAC7D,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,GAChC,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { Application } from './class.js';
|
|
2
|
-
export { applicationCore, shellApplication } from './core.js';
|
|
3
|
-
export { applicationInstall, applicationUninstall, } from './methods.js';
|
|
4
|
-
export { mayAdministerApplication } from './policies.js';
|
|
5
|
-
export { application_of, installed_in } from './relationships.js';
|
|
6
|
-
export { applicationView } from './view.js';
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schema/application/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAC7D,OAAO,EACL,kBAAkB,EAClB,oBAAoB,GAKrB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import type { NodeId } from '@astrale-os/sdk/graph/node';
|
|
2
|
-
import type { NodePath, PathLike } from '@astrale-os/sdk/graph/path';
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
export interface InstallApplicationInput {
|
|
5
|
-
readonly domain: PathLike;
|
|
6
|
-
readonly space: PathLike;
|
|
7
|
-
}
|
|
8
|
-
export interface InstallApplicationResult {
|
|
9
|
-
readonly application: {
|
|
10
|
-
readonly id: NodeId;
|
|
11
|
-
readonly path: NodePath;
|
|
12
|
-
readonly class: 'Application';
|
|
13
|
-
};
|
|
14
|
-
readonly domain: NodePath;
|
|
15
|
-
readonly space: {
|
|
16
|
-
readonly id: NodeId;
|
|
17
|
-
readonly path: NodePath;
|
|
18
|
-
readonly class: 'Space';
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export interface UninstallApplicationInput extends Readonly<Record<never, never>> {
|
|
22
|
-
}
|
|
23
|
-
export interface UninstallApplicationResult extends Readonly<Record<never, never>> {
|
|
24
|
-
}
|
|
25
|
-
export declare const applicationInstall: import("@astrale-os/sdk/schema").Function<{
|
|
26
|
-
readonly description: "Convergently associate one installed Domain with one Space.";
|
|
27
|
-
readonly static: true;
|
|
28
|
-
readonly input: z.ZodObject<{
|
|
29
|
-
domain: import("@astrale-os/sdk/schema").Path<readonly [{
|
|
30
|
-
origin: string;
|
|
31
|
-
kind: 'class';
|
|
32
|
-
name: string;
|
|
33
|
-
}]>;
|
|
34
|
-
space: import("@astrale-os/sdk/schema").Path<readonly [import("@astrale-os/sdk/schema").NodeClass<{
|
|
35
|
-
readonly description: "A named Shell collaboration boundary.";
|
|
36
|
-
readonly implements: readonly [{
|
|
37
|
-
origin: "kernel.astrale.ai";
|
|
38
|
-
kind: 'interface';
|
|
39
|
-
name: string;
|
|
40
|
-
}, {
|
|
41
|
-
origin: "kernel.astrale.ai";
|
|
42
|
-
kind: 'interface';
|
|
43
|
-
name: string;
|
|
44
|
-
}];
|
|
45
|
-
readonly methods: {
|
|
46
|
-
addUser: import("@astrale-os/sdk/schema").Function<{
|
|
47
|
-
readonly description: "Set one User direct member or admin access.";
|
|
48
|
-
readonly input: z.ZodObject<{
|
|
49
|
-
user: import("@astrale-os/sdk/schema").Path<readonly [import("@astrale-os/sdk/schema").NodeInterface<{
|
|
50
|
-
readonly description: "A human-facing Shell principal.";
|
|
51
|
-
readonly extends: readonly [{
|
|
52
|
-
origin: "kernel.astrale.ai";
|
|
53
|
-
kind: 'interface';
|
|
54
|
-
name: "Identity";
|
|
55
|
-
}];
|
|
56
|
-
}>]>;
|
|
57
|
-
access: z.ZodEnum<{
|
|
58
|
-
admin: "admin";
|
|
59
|
-
member: "member";
|
|
60
|
-
}>;
|
|
61
|
-
}, z.core.$strict>;
|
|
62
|
-
readonly output: {
|
|
63
|
-
type: 'object';
|
|
64
|
-
properties: {};
|
|
65
|
-
additionalProperties: boolean;
|
|
66
|
-
};
|
|
67
|
-
readonly auth: "authorized";
|
|
68
|
-
readonly policy: ({ check, self }: import("@astrale-os/sdk/schema").CallablePolicyContext) => import("@astrale-os/sdk/schema").PolicyCheckExpression;
|
|
69
|
-
}>;
|
|
70
|
-
removeUser: import("@astrale-os/sdk/schema").Function<{
|
|
71
|
-
readonly description: "Remove one User direct access.";
|
|
72
|
-
readonly input: z.ZodObject<{
|
|
73
|
-
user: import("@astrale-os/sdk/schema").Path<readonly [import("@astrale-os/sdk/schema").NodeInterface<{
|
|
74
|
-
readonly description: "A human-facing Shell principal.";
|
|
75
|
-
readonly extends: readonly [{
|
|
76
|
-
origin: "kernel.astrale.ai";
|
|
77
|
-
kind: 'interface';
|
|
78
|
-
name: "Identity";
|
|
79
|
-
}];
|
|
80
|
-
}>]>;
|
|
81
|
-
}, z.core.$strict>;
|
|
82
|
-
readonly output: {
|
|
83
|
-
type: 'object';
|
|
84
|
-
properties: {};
|
|
85
|
-
additionalProperties: boolean;
|
|
86
|
-
};
|
|
87
|
-
readonly auth: "authorized";
|
|
88
|
-
readonly policy: ({ check, self }: import("@astrale-os/sdk/schema").CallablePolicyContext) => import("@astrale-os/sdk/schema").PolicyCheckExpression;
|
|
89
|
-
}>;
|
|
90
|
-
setDefault: import("@astrale-os/sdk/schema").Function<{
|
|
91
|
-
readonly description: "Set this accessible Space as the granted User fallback.";
|
|
92
|
-
readonly input: {
|
|
93
|
-
type: 'object';
|
|
94
|
-
properties: {};
|
|
95
|
-
additionalProperties: boolean;
|
|
96
|
-
};
|
|
97
|
-
readonly output: {
|
|
98
|
-
type: 'object';
|
|
99
|
-
properties: {};
|
|
100
|
-
additionalProperties: boolean;
|
|
101
|
-
};
|
|
102
|
-
readonly auth: "authorized";
|
|
103
|
-
readonly policy: ({ check, self }: import("@astrale-os/sdk/schema").CallablePolicyContext) => import("@astrale-os/sdk/schema").PolicyCheckExpression;
|
|
104
|
-
}>;
|
|
105
|
-
};
|
|
106
|
-
}>]>;
|
|
107
|
-
}, z.core.$strict>;
|
|
108
|
-
readonly output: {
|
|
109
|
-
readonly type: "object";
|
|
110
|
-
readonly properties: {
|
|
111
|
-
readonly application: {
|
|
112
|
-
readonly type: "object";
|
|
113
|
-
readonly properties: {
|
|
114
|
-
readonly id: {
|
|
115
|
-
readonly type: "string";
|
|
116
|
-
};
|
|
117
|
-
readonly path: {
|
|
118
|
-
type: 'string';
|
|
119
|
-
pattern: string;
|
|
120
|
-
};
|
|
121
|
-
readonly class: {
|
|
122
|
-
readonly const: "Application";
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
readonly required: readonly ["id", "path", "class"];
|
|
126
|
-
readonly additionalProperties: false;
|
|
127
|
-
};
|
|
128
|
-
readonly domain: {
|
|
129
|
-
type: 'string';
|
|
130
|
-
pattern: string;
|
|
131
|
-
};
|
|
132
|
-
readonly space: {
|
|
133
|
-
readonly type: "object";
|
|
134
|
-
readonly properties: {
|
|
135
|
-
readonly id: {
|
|
136
|
-
readonly type: "string";
|
|
137
|
-
};
|
|
138
|
-
readonly path: {
|
|
139
|
-
type: 'string';
|
|
140
|
-
pattern: string;
|
|
141
|
-
};
|
|
142
|
-
readonly class: {
|
|
143
|
-
readonly const: "Space";
|
|
144
|
-
};
|
|
145
|
-
};
|
|
146
|
-
readonly required: readonly ["id", "path", "class"];
|
|
147
|
-
readonly additionalProperties: false;
|
|
148
|
-
};
|
|
149
|
-
};
|
|
150
|
-
readonly required: readonly ["application", "domain", "space"];
|
|
151
|
-
readonly additionalProperties: false;
|
|
152
|
-
} & import("@astrale-os/sdk/schema").TypedValueSchema<InstallApplicationResult>;
|
|
153
|
-
readonly auth: "authorized";
|
|
154
|
-
readonly policy: ({ check, input }: import("@astrale-os/sdk/schema").CallablePolicyContext) => import("@astrale-os/sdk/schema").PolicyCheckExpression;
|
|
155
|
-
}>;
|
|
156
|
-
export declare const applicationUninstall: import("@astrale-os/sdk/schema").Function<{
|
|
157
|
-
readonly description: "Remove this Application association without uninstalling its Domain.";
|
|
158
|
-
readonly input: {
|
|
159
|
-
type: 'object';
|
|
160
|
-
properties: {};
|
|
161
|
-
additionalProperties: boolean;
|
|
162
|
-
};
|
|
163
|
-
readonly output: {
|
|
164
|
-
type: 'object';
|
|
165
|
-
properties: {};
|
|
166
|
-
additionalProperties: boolean;
|
|
167
|
-
} & import("@astrale-os/sdk/schema").TypedValueSchema<UninstallApplicationResult>;
|
|
168
|
-
readonly auth: "authorized";
|
|
169
|
-
readonly policy: ({ check, self }: import("@astrale-os/sdk/schema").CallablePolicyContext) => import("@astrale-os/sdk/schema").PolicyCheckExpression;
|
|
170
|
-
}>;
|
|
171
|
-
//# sourceMappingURL=methods.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"methods.d.ts","sourceRoot":"","sources":["../../../schema/application/methods.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAGpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAcvB,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAA;IACzB,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAA;CACzB;AACD,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,WAAW,EAAE;QACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;QACnB,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;QACvB,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAA;KAC9B,CAAA;IACD,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAA;IACzB,QAAQ,CAAC,KAAK,EAAE;QAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;KAAE,CAAA;CAC1F;AACD,MAAM,WAAW,yBAA0B,SAAQ,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;CAAG;AACpF,MAAM,WAAW,0BAA2B,SAAQ,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;CAAG;AAwBrF,eAAO,MAAM,kBAAkB;;;;;;kBAxC2B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BADxC,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgD/B,CAAA;AAEF,eAAO,MAAM,oBAAoB;;;cAtDzB,QAAQ;;;;;;;;;;;EA4Dd,CAAA"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { fn, path, valueSchema } from '@astrale-os/sdk/schema';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import { Space, mayAdministerSpace } from '#schema/space';
|
|
4
|
-
import { mayAdministerApplication } from './policies.js';
|
|
5
|
-
const emptyObject = {
|
|
6
|
-
type: 'object',
|
|
7
|
-
properties: {},
|
|
8
|
-
additionalProperties: false,
|
|
9
|
-
};
|
|
10
|
-
const nodePath = { type: 'string', pattern: '^/' };
|
|
11
|
-
const KernelDomain = { origin: 'kernel.astrale.ai', kind: 'class', name: 'Domain' };
|
|
12
|
-
const installApplicationResult = valueSchema()({
|
|
13
|
-
type: 'object',
|
|
14
|
-
properties: {
|
|
15
|
-
application: {
|
|
16
|
-
type: 'object',
|
|
17
|
-
properties: { id: { type: 'string' }, path: nodePath, class: { const: 'Application' } },
|
|
18
|
-
required: ['id', 'path', 'class'],
|
|
19
|
-
additionalProperties: false,
|
|
20
|
-
},
|
|
21
|
-
domain: nodePath,
|
|
22
|
-
space: {
|
|
23
|
-
type: 'object',
|
|
24
|
-
properties: { id: { type: 'string' }, path: nodePath, class: { const: 'Space' } },
|
|
25
|
-
required: ['id', 'path', 'class'],
|
|
26
|
-
additionalProperties: false,
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
required: ['application', 'domain', 'space'],
|
|
30
|
-
additionalProperties: false,
|
|
31
|
-
});
|
|
32
|
-
const uninstallApplicationResult = valueSchema()(emptyObject);
|
|
33
|
-
export const applicationInstall = fn({
|
|
34
|
-
description: 'Convergently associate one installed Domain with one Space.',
|
|
35
|
-
static: true,
|
|
36
|
-
input: z.strictObject({ domain: path(KernelDomain), space: path(Space) }),
|
|
37
|
-
output: installApplicationResult,
|
|
38
|
-
auth: 'authorized',
|
|
39
|
-
policy: ({ check, input }) => check(mayAdministerSpace, input.space),
|
|
40
|
-
});
|
|
41
|
-
export const applicationUninstall = fn({
|
|
42
|
-
description: 'Remove this Application association without uninstalling its Domain.',
|
|
43
|
-
input: emptyObject,
|
|
44
|
-
output: uninstallApplicationResult,
|
|
45
|
-
auth: 'authorized',
|
|
46
|
-
policy: ({ check, self }) => check(mayAdministerApplication, self),
|
|
47
|
-
});
|
|
48
|
-
//# sourceMappingURL=methods.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"methods.js","sourceRoot":"","sources":["../../../schema/application/methods.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAEzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAA;AAExD,MAAM,WAAW,GAAG;IAClB,IAAI,EAAE,QAAiB;IACvB,UAAU,EAAE,EAAE;IACd,oBAAoB,EAAE,KAAK;CAC5B,CAAA;AACD,MAAM,QAAQ,GAAG,EAAE,IAAI,EAAE,QAAiB,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;AAC3D,MAAM,YAAY,GAAG,EAAE,MAAM,EAAE,mBAAmB,EAAE,IAAI,EAAE,OAAgB,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAA;AAkB5F,MAAM,wBAAwB,GAAG,WAAW,EAA4B,CAAC;IACvE,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,EAAE;YACvF,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC;YACjC,oBAAoB,EAAE,KAAK;SAC5B;QACD,MAAM,EAAE,QAAQ;QAChB,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;YACjF,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC;YACjC,oBAAoB,EAAE,KAAK;SAC5B;KACF;IACD,QAAQ,EAAE,CAAC,aAAa,EAAE,QAAQ,EAAE,OAAO,CAAC;IAC5C,oBAAoB,EAAE,KAAK;CAC5B,CAAC,CAAA;AACF,MAAM,0BAA0B,GAAG,WAAW,EAA8B,CAAC,WAAW,CAAC,CAAA;AAEzF,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAC;IACnC,WAAW,EAAE,6DAA6D;IAC1E,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,YAAY,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IACzE,MAAM,EAAE,wBAAwB;IAChC,IAAI,EAAE,YAAY;IAClB,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,kBAAkB,EAAE,KAAK,CAAC,KAAK,CAAC;CACrE,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,CAAC;IACrC,WAAW,EAAE,sEAAsE;IACnF,KAAK,EAAE,WAAW;IAClB,MAAM,EAAE,0BAA0B;IAClC,IAAI,EAAE,YAAY;IAClB,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,wBAAwB,EAAE,IAAI,CAAC;CACnE,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"policies.d.ts","sourceRoot":"","sources":["../../../schema/application/policies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,OAAO,EAAE,MAAM,wBAAwB,CAAA;AAMnE,eAAO,MAAM,wBAAwB,EAAE,OAAO,CAAC,MAa7C,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { definePolicy } from '@astrale-os/sdk/schema';
|
|
2
|
-
import { Space, administers_space, owns_space } from '#schema/space';
|
|
3
|
-
import { installed_in } from './relationships.js';
|
|
4
|
-
export const mayAdministerApplication = definePolicy({
|
|
5
|
-
description: 'The effective User Grant administers the Application Space.',
|
|
6
|
-
match: ({ allOf, anyOf, edge, exists, object, subject }) => exists(({ node }) => {
|
|
7
|
-
const space = node(Space);
|
|
8
|
-
return allOf(edge({ source: object, class: installed_in, target: space }), anyOf(edge({ source: subject, class: owns_space, target: space }), edge({ source: subject, class: administers_space, target: space })));
|
|
9
|
-
}),
|
|
10
|
-
});
|
|
11
|
-
//# sourceMappingURL=policies.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"policies.js","sourceRoot":"","sources":["../../../schema/application/policies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAgB,MAAM,wBAAwB,CAAA;AAEnE,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAEpE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,CAAC,MAAM,wBAAwB,GAAmB,YAAY,CAAC;IACnE,WAAW,EAAE,6DAA6D;IAC1E,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,CACzD,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;QAClB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAA;QACzB,OAAO,KAAK,CACV,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,EAC5D,KAAK,CACH,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,EAC3D,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CACnE,CACF,CAAA;IACH,CAAC,CAAC;CACL,CAAC,CAAA"}
|