@astrale-domains/issues 0.7.3 → 0.7.5
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 +24 -12
- package/dist/schema/index.d.ts +1 -1
- package/dist/schema/index.js +1 -1
- package/dist/schema/modules/comment/classes/comment-authored-by.js +3 -3
- package/dist/schema/modules/comment/classes/comment.js +3 -3
- package/dist/schema/modules/comment/classes/issue-has-comment.d.ts +1 -1
- package/dist/schema/modules/comment/classes/issue-has-comment.js +5 -2
- package/dist/schema/modules/comment/functions/delete-comment.js +2 -2
- package/dist/schema/modules/comment/functions/edit-comment.js +2 -2
- package/dist/schema/modules/comment/index.d.ts +1 -1
- package/dist/schema/modules/comment/index.js +1 -1
- package/dist/schema/modules/comment/policies/authored-comment.d.ts +1 -0
- package/dist/schema/modules/comment/policies/{edit-own-comment.js → authored-comment.js} +1 -1
- package/dist/schema/modules/comment/policies/index.d.ts +4 -4
- package/dist/schema/modules/comment/policies/index.js +4 -4
- package/dist/schema/modules/comment/policies/owns-or-belongs-to-project-of-issue-of-authored-comment.d.ts +1 -0
- package/dist/schema/modules/comment/policies/{traverse-comment-relationship.js → owns-or-belongs-to-project-of-issue-of-authored-comment.js} +2 -2
- package/dist/schema/modules/comment/policies/owns-or-belongs-to-project-of-issue-of-comment-or-reported-issue-of-comment.d.ts +1 -0
- package/dist/schema/modules/comment/policies/{contribute-to-comment-or-reported-issue-of-comment.js → owns-or-belongs-to-project-of-issue-of-comment-or-reported-issue-of-comment.js} +1 -1
- package/dist/schema/modules/comment/policies/owns-or-belongs-to-project-of-issue-with-comment-or-reported-issue-with-comment.d.ts +1 -0
- package/dist/schema/modules/comment/policies/{traverse-issue-comment.js → owns-or-belongs-to-project-of-issue-with-comment-or-reported-issue-with-comment.js} +1 -1
- package/dist/schema/modules/issue/classes/index.d.ts +1 -0
- package/dist/schema/modules/issue/classes/index.js +1 -0
- package/dist/schema/modules/issue/classes/issue-assigned-to.d.ts +1 -1
- package/dist/schema/modules/issue/classes/issue-assigned-to.js +5 -2
- package/dist/schema/modules/issue/classes/issue-is-about.d.ts +30 -0
- package/dist/schema/modules/issue/classes/issue-is-about.js +16 -0
- package/dist/schema/modules/issue/classes/issue-reported-by.d.ts +1 -1
- package/dist/schema/modules/issue/classes/issue-reported-by.js +5 -2
- package/dist/schema/modules/issue/classes/issue-subtask-of.d.ts +2 -2
- package/dist/schema/modules/issue/classes/issue-subtask-of.js +5 -2
- package/dist/schema/modules/issue/classes/issue-tracked-by.d.ts +2 -2
- package/dist/schema/modules/issue/classes/issue-tracked-by.js +5 -2
- package/dist/schema/modules/issue/classes/issue.d.ts +9 -0
- package/dist/schema/modules/issue/classes/issue.js +5 -3
- package/dist/schema/modules/issue/classes/project-contains-issue.d.ts +1 -1
- package/dist/schema/modules/issue/classes/project-contains-issue.js +5 -3
- package/dist/schema/modules/issue/functions/add-issue-comment.js +2 -2
- package/dist/schema/modules/issue/functions/archive-issue.js +2 -2
- package/dist/schema/modules/issue/functions/assign-issue.js +2 -2
- package/dist/schema/modules/issue/functions/delete-issue.js +2 -2
- package/dist/schema/modules/issue/functions/edit-issue.js +2 -2
- package/dist/schema/modules/issue/functions/index.d.ts +1 -0
- package/dist/schema/modules/issue/functions/index.js +1 -0
- package/dist/schema/modules/issue/functions/set-issue-parent.js +2 -2
- package/dist/schema/modules/issue/functions/set-issue-tags.js +2 -2
- package/dist/schema/modules/issue/functions/set-issue-topics.d.ts +9 -0
- package/dist/schema/modules/issue/functions/set-issue-topics.js +12 -0
- package/dist/schema/modules/issue/functions/track-issue.js +2 -2
- package/dist/schema/modules/issue/functions/transition-issue.js +2 -2
- package/dist/schema/modules/issue/functions/untrack-issue.js +2 -2
- package/dist/schema/modules/issue/functions/update-issue.js +2 -2
- package/dist/schema/modules/issue/index.d.ts +3 -3
- package/dist/schema/modules/issue/index.js +3 -3
- package/dist/schema/modules/issue/policies/index.d.ts +9 -9
- package/dist/schema/modules/issue/policies/index.js +9 -9
- package/dist/schema/modules/issue/policies/owns-or-belongs-to-project-of-assigned-issue.d.ts +1 -0
- package/dist/schema/modules/issue/policies/{traverse-issue-assignee.js → owns-or-belongs-to-project-of-assigned-issue.js} +1 -1
- package/dist/schema/modules/issue/policies/owns-or-belongs-to-project-of-child-issue.d.ts +1 -0
- package/dist/schema/modules/issue/policies/{traverse-issue-parent.js → owns-or-belongs-to-project-of-child-issue.js} +1 -1
- package/dist/schema/modules/issue/policies/owns-or-belongs-to-project-of-issue-or-reported-issue.d.ts +1 -0
- package/dist/schema/modules/issue/policies/{contribute-to-issue-or-reported-issue.js → owns-or-belongs-to-project-of-issue-or-reported-issue.js} +2 -2
- package/dist/schema/modules/issue/policies/owns-or-belongs-to-project-of-issue-with-topic.d.ts +1 -0
- package/dist/schema/modules/issue/policies/owns-or-belongs-to-project-of-issue-with-topic.js +13 -0
- package/dist/schema/modules/issue/policies/owns-or-belongs-to-project-of-issue.d.ts +1 -0
- package/dist/schema/modules/issue/policies/{contribute-to-issue.js → owns-or-belongs-to-project-of-issue.js} +1 -1
- package/dist/schema/modules/issue/policies/owns-or-belongs-to-project-of-reported-issue-or-reported-issue.d.ts +1 -0
- package/dist/schema/modules/issue/policies/{traverse-issue-reporter.js → owns-or-belongs-to-project-of-reported-issue-or-reported-issue.js} +1 -1
- package/dist/schema/modules/issue/policies/owns-or-belongs-to-project-of-tracked-or-tracking-issue.d.ts +2 -0
- package/dist/schema/modules/issue/policies/{traverse-issue-tracking.js → owns-or-belongs-to-project-of-tracked-or-tracking-issue.js} +2 -2
- package/dist/schema/modules/issue/policies/owns-project-of-issue.d.ts +1 -0
- package/dist/schema/modules/issue/policies/{manage-issue.js → owns-project-of-issue.js} +1 -1
- package/dist/schema/modules/issue/policies/reported-issue.d.ts +1 -1
- package/dist/schema/modules/issue/policies/reported-issue.js +1 -1
- package/dist/schema/modules/issue/types/index.d.ts +1 -1
- package/dist/schema/modules/issue/types/index.js +1 -1
- package/dist/schema/modules/issue/types/issue.d.ts +2 -0
- package/dist/schema/modules/issue/types/issue.js +2 -0
- package/dist/schema/modules/project/classes/project-has-member.js +5 -2
- package/dist/schema/modules/project/classes/project-owned-by.js +5 -2
- package/dist/schema/modules/project/classes/project.js +2 -2
- package/dist/schema/modules/project/functions/add-project-member.js +2 -2
- package/dist/schema/modules/project/functions/archive-project.js +2 -2
- package/dist/schema/modules/project/functions/create-project-issue.js +2 -2
- package/dist/schema/modules/project/functions/create-project-tag.js +2 -2
- package/dist/schema/modules/project/functions/delete-project.js +2 -2
- package/dist/schema/modules/project/functions/receive-project-report.js +2 -2
- package/dist/schema/modules/project/functions/remove-project-member.js +2 -2
- package/dist/schema/modules/project/functions/update-project.js +2 -2
- package/dist/schema/modules/project/index.d.ts +1 -1
- package/dist/schema/modules/project/index.js +1 -1
- package/dist/schema/modules/project/policies/index.d.ts +5 -4
- package/dist/schema/modules/project/policies/index.js +5 -4
- package/dist/schema/modules/project/policies/owns-or-belongs-to-containing-project.d.ts +1 -0
- package/dist/schema/modules/project/policies/owns-or-belongs-to-containing-project.js +7 -0
- package/dist/schema/modules/project/policies/owns-or-belongs-to-project-of-membership.d.ts +1 -0
- package/dist/schema/modules/project/policies/{traverse-project-member.js → owns-or-belongs-to-project-of-membership.js} +1 -1
- package/dist/schema/modules/project/policies/owns-or-belongs-to-project-of-ownership.d.ts +1 -0
- package/dist/schema/modules/project/policies/{traverse-project-owner.js → owns-or-belongs-to-project-of-ownership.js} +1 -1
- package/dist/schema/modules/project/policies/owns-or-belongs-to-project.d.ts +1 -0
- package/dist/schema/modules/project/policies/{contribute-to-project.js → owns-or-belongs-to-project.js} +1 -1
- package/dist/schema/modules/project/policies/owns-project.d.ts +1 -0
- package/dist/schema/modules/project/policies/{manage-project.js → owns-project.js} +1 -1
- package/dist/schema/modules/project/types/project-edges.d.ts +1 -1
- package/dist/schema/modules/tag/classes/issue-tagged-with.d.ts +1 -1
- package/dist/schema/modules/tag/classes/issue-tagged-with.js +5 -2
- package/dist/schema/modules/tag/classes/project-contains-tag.js +5 -3
- package/dist/schema/modules/tag/classes/tag.js +5 -2
- package/dist/schema/modules/tag/functions/delete-tag.js +2 -2
- package/dist/schema/modules/tag/functions/edit-tag.js +2 -2
- package/dist/schema/modules/tag/index.d.ts +1 -1
- package/dist/schema/modules/tag/index.js +1 -1
- package/dist/schema/modules/tag/policies/index.d.ts +3 -4
- package/dist/schema/modules/tag/policies/index.js +3 -4
- package/dist/schema/modules/tag/policies/owns-or-belongs-to-project-of-tag.d.ts +1 -0
- package/dist/schema/modules/tag/policies/{contribute-to-tag.js → owns-or-belongs-to-project-of-tag.js} +1 -1
- package/dist/schema/modules/tag/policies/owns-or-belongs-to-project-of-tagged-issue.d.ts +1 -0
- package/dist/schema/modules/tag/policies/{traverse-issue-tag.js → owns-or-belongs-to-project-of-tagged-issue.js} +1 -1
- package/dist/schema/modules/tag/policies/owns-project-of-tag.d.ts +1 -0
- package/dist/schema/modules/tag/policies/{manage-tag.js → owns-project-of-tag.js} +1 -1
- package/dist/schema/schema.d.ts +979 -30
- package/dist/schema/schema.js +28 -26
- package/package.json +3 -1
- package/dist/schema/modules/comment/policies/contribute-to-comment-or-reported-issue-of-comment.d.ts +0 -1
- package/dist/schema/modules/comment/policies/edit-own-comment.d.ts +0 -1
- package/dist/schema/modules/comment/policies/traverse-comment-relationship.d.ts +0 -1
- package/dist/schema/modules/comment/policies/traverse-issue-comment.d.ts +0 -1
- package/dist/schema/modules/issue/policies/contribute-to-issue-or-reported-issue.d.ts +0 -1
- package/dist/schema/modules/issue/policies/contribute-to-issue.d.ts +0 -1
- package/dist/schema/modules/issue/policies/manage-issue.d.ts +0 -1
- package/dist/schema/modules/issue/policies/traverse-issue-assignee.d.ts +0 -1
- package/dist/schema/modules/issue/policies/traverse-issue-parent.d.ts +0 -1
- package/dist/schema/modules/issue/policies/traverse-issue-reporter.d.ts +0 -1
- package/dist/schema/modules/issue/policies/traverse-issue-tracking.d.ts +0 -2
- package/dist/schema/modules/issue/policies/traverse-project-issue.d.ts +0 -1
- package/dist/schema/modules/issue/policies/traverse-project-issue.js +0 -6
- package/dist/schema/modules/project/policies/contribute-to-project.d.ts +0 -1
- package/dist/schema/modules/project/policies/manage-project.d.ts +0 -1
- package/dist/schema/modules/project/policies/traverse-project-member.d.ts +0 -1
- package/dist/schema/modules/project/policies/traverse-project-owner.d.ts +0 -1
- package/dist/schema/modules/tag/policies/contribute-to-tag.d.ts +0 -1
- package/dist/schema/modules/tag/policies/manage-tag.d.ts +0 -1
- package/dist/schema/modules/tag/policies/traverse-issue-tag.d.ts +0 -1
- package/dist/schema/modules/tag/policies/traverse-project-tag.d.ts +0 -1
- package/dist/schema/modules/tag/policies/traverse-project-tag.js +0 -6
package/dist/schema/schema.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { ShellSchema } from '@astrale-domains/shell';
|
|
1
2
|
import { KernelSchema, defineSchema, domainIcon, view } from '@astrale-os/sdk/schema';
|
|
2
|
-
import { Comment, comment_authored_by, issue_has_comment,
|
|
3
|
-
import { Issue,
|
|
4
|
-
import { Project,
|
|
5
|
-
import { Tag,
|
|
3
|
+
import { Comment, comment_authored_by, issue_has_comment, ownsOrBelongsToProjectOfIssueOfCommentOrReportedIssueOfComment, authoredComment, ownsOrBelongsToProjectOfIssueOfAuthoredComment, ownsOrBelongsToProjectOfIssueWithCommentOrReportedIssueWithComment, } from './modules/comment/index.js';
|
|
4
|
+
import { Issue, ownsOrBelongsToProjectOfIssue, ownsOrBelongsToProjectOfIssueOrReportedIssue, ownsProjectOfIssue, reportedIssue, ownsOrBelongsToProjectOfAssignedIssue, ownsOrBelongsToProjectOfChildIssue, ownsOrBelongsToProjectOfReportedIssueOrReportedIssue, ownsOrBelongsToProjectOfIssueWithTopic, ownsOrBelongsToProjectOfTrackedOrTrackingIssue, issue_assigned_to, issue_is_about, issue_reported_by, issue_subtask_of, issue_tracked_by, project_contains_issue, } from './modules/issue/index.js';
|
|
5
|
+
import { Project, ownsOrBelongsToProject, ownsOrBelongsToContainingProject, ownsProject, ownsOrBelongsToProjectOfMembership, ownsOrBelongsToProjectOfOwnership, project_has_member, project_owned_by, } from './modules/project/index.js';
|
|
6
|
+
import { Tag, ownsOrBelongsToProjectOfTag, ownsProjectOfTag, ownsOrBelongsToProjectOfTaggedIssue, issue_tagged_with, project_contains_tag, } from './modules/tag/index.js';
|
|
6
7
|
const origin = 'issues.astrale.ai';
|
|
7
8
|
const classes = {
|
|
8
9
|
Project,
|
|
@@ -20,29 +21,30 @@ const classes = {
|
|
|
20
21
|
comment_authored_by,
|
|
21
22
|
project_contains_tag,
|
|
22
23
|
issue_tagged_with,
|
|
24
|
+
issue_is_about,
|
|
23
25
|
};
|
|
24
26
|
const policies = {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
27
|
+
ownsProject,
|
|
28
|
+
ownsOrBelongsToProject,
|
|
29
|
+
ownsOrBelongsToProjectOfIssue,
|
|
30
|
+
reportedIssue,
|
|
31
|
+
ownsOrBelongsToProjectOfIssueOrReportedIssue,
|
|
32
|
+
ownsProjectOfIssue,
|
|
33
|
+
ownsOrBelongsToProjectOfTag,
|
|
34
|
+
ownsProjectOfTag,
|
|
35
|
+
ownsOrBelongsToProjectOfIssueOfCommentOrReportedIssueOfComment,
|
|
36
|
+
authoredComment,
|
|
37
|
+
ownsOrBelongsToProjectOfOwnership,
|
|
38
|
+
ownsOrBelongsToProjectOfMembership,
|
|
39
|
+
ownsOrBelongsToContainingProject,
|
|
40
|
+
ownsOrBelongsToProjectOfReportedIssueOrReportedIssue,
|
|
41
|
+
ownsOrBelongsToProjectOfAssignedIssue,
|
|
42
|
+
ownsOrBelongsToProjectOfChildIssue,
|
|
43
|
+
ownsOrBelongsToProjectOfTrackedOrTrackingIssue,
|
|
44
|
+
ownsOrBelongsToProjectOfIssueWithCommentOrReportedIssueWithComment,
|
|
45
|
+
ownsOrBelongsToProjectOfTaggedIssue,
|
|
46
|
+
ownsOrBelongsToProjectOfIssueWithTopic,
|
|
47
|
+
ownsOrBelongsToProjectOfIssueOfAuthoredComment,
|
|
46
48
|
};
|
|
47
49
|
const views = { application: view({}) };
|
|
48
50
|
export const schema = defineSchema(origin, {
|
|
@@ -57,7 +59,7 @@ export const schema = defineSchema(origin, {
|
|
|
57
59
|
large: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><defs><linearGradient id="is4L-bg" x1="0" y1="0" x2="0" y2="512" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#4B4F58"/><stop offset="1" stop-color="#1B1D22"/></linearGradient><radialGradient id="is4L-gl" cx="256" cy="-92.16" r="486.4" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#FFFFFF" stop-opacity="0.12"/><stop offset="1" stop-color="#FFFFFF" stop-opacity="0"/></radialGradient><linearGradient id="is4L-sy" x1="0" y1="126" x2="0" y2="382" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#FFFFFF"/><stop offset="1" stop-color="#E2E5EA"/></linearGradient><filter id="is4L-sh" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="11"/></filter></defs><g data-layer="background"><rect width="512" height="512" fill="url(#is4L-bg)"/><rect width="512" height="512" fill="url(#is4L-gl)"/></g><g data-layer="foreground"><g filter="url(#is4L-sh)" opacity="0.5" transform="translate(0 12)" fill="#000000"><rect x="88" y="126" width="208" height="64" rx="32"/><rect x="152" y="222" width="208" height="64" rx="32"/><rect x="216" y="318" width="208" height="64" rx="32"/></g><rect x="88" y="126" width="208" height="64" rx="32" fill="url(#is4L-sy)"/><rect x="152" y="222" width="208" height="64" rx="32" fill="url(#is4L-sy)"/><rect x="216" y="318" width="208" height="64" rx="32" fill="url(#is4L-sy)"/></g></svg>`,
|
|
58
60
|
}),
|
|
59
61
|
entrypoint: 'application',
|
|
60
|
-
dependencies: { kernel: KernelSchema },
|
|
62
|
+
dependencies: { kernel: KernelSchema, shell: ShellSchema },
|
|
61
63
|
classes,
|
|
62
64
|
policies,
|
|
63
65
|
views,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrale-domains/issues",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.5",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/astrale-os/domains.git",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"zod": "4.6.7"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
+
"@astrale-domains/shell": "0.3.0",
|
|
34
35
|
"@astrale-os/adapter-cloudflare": "0.5.0-beta.217",
|
|
35
36
|
"@astrale-os/ox": ">=0.1.4 <1.0.0",
|
|
36
37
|
"@astrale-os/sdk": "0.6.0-beta.62",
|
|
@@ -66,6 +67,7 @@
|
|
|
66
67
|
"vitest": "^5.0.5"
|
|
67
68
|
},
|
|
68
69
|
"peerDependencies": {
|
|
70
|
+
"@astrale-domains/shell": ">=0.3.0 <1.0.0",
|
|
69
71
|
"@astrale-os/sdk": ">=0.6.0-beta.62 <1.0.0"
|
|
70
72
|
},
|
|
71
73
|
"engines": {
|
package/dist/schema/modules/comment/policies/contribute-to-comment-or-reported-issue-of-comment.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ContributeToCommentOrReportedIssueOfComment: import("@astrale-os/sdk/schema").Policy;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const EditOwnComment: import("@astrale-os/sdk/schema").Policy;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const TraverseCommentRelationship: import("@astrale-os/sdk/schema").Policy;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const TraverseIssueComment: import("@astrale-os/sdk/schema").Policy;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ContributeToIssueOrReportedIssue: import("@astrale-os/sdk/schema").Policy;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ContributeToIssue: import("@astrale-os/sdk/schema").Policy;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ManageIssue: import("@astrale-os/sdk/schema").Policy;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const TraverseIssueAssignee: import("@astrale-os/sdk/schema").Policy;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const TraverseIssueParent: import("@astrale-os/sdk/schema").Policy;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const TraverseIssueReporter: import("@astrale-os/sdk/schema").Policy;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const TraverseProjectIssue: import("@astrale-os/sdk/schema").Policy;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { policy } from '@astrale-os/sdk/schema';
|
|
2
|
-
import { project_has_member, project_owned_by } from '../../project/index.js';
|
|
3
|
-
export const TraverseProjectIssue = policy({
|
|
4
|
-
description: 'Project Issue containment is visible only to that Project owner and members.',
|
|
5
|
-
match: ({ anyOf, edge, source, subject }) => anyOf(edge({ source: subject, class: () => project_owned_by, target: source }), edge({ source: subject, class: () => project_has_member, target: source })),
|
|
6
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ContributeToProject: import("@astrale-os/sdk/schema").Policy;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ManageProject: import("@astrale-os/sdk/schema").Policy;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const TraverseProjectMember: import("@astrale-os/sdk/schema").Policy;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const TraverseProjectOwner: import("@astrale-os/sdk/schema").Policy;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ContributeToTag: import("@astrale-os/sdk/schema").Policy;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ManageTag: import("@astrale-os/sdk/schema").Policy;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const TraverseIssueTag: import("@astrale-os/sdk/schema").Policy;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const TraverseProjectTag: import("@astrale-os/sdk/schema").Policy;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { policy } from '@astrale-os/sdk/schema';
|
|
2
|
-
import { project_has_member, project_owned_by } from '../../project/index.js';
|
|
3
|
-
export const TraverseProjectTag = policy({
|
|
4
|
-
description: 'Project Tag containment is visible only to that Project owner and members.',
|
|
5
|
-
match: ({ anyOf, edge, source, subject }) => anyOf(edge({ source: subject, class: () => project_owned_by, target: source }), edge({ source: subject, class: () => project_has_member, target: source })),
|
|
6
|
-
});
|