@astrale-domains/issues 0.9.0 → 0.10.0
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/dist/schema/modules/comment/classes/comment.d.ts +2 -2
- package/dist/schema/modules/comment/policies/authored-comment.d.ts +2 -1
- package/dist/schema/modules/comment/policies/owns-or-belongs-to-project-of-issue-of-authored-comment.d.ts +2 -1
- package/dist/schema/modules/comment/policies/owns-or-belongs-to-project-of-issue-of-comment-or-reported-issue-of-comment.d.ts +2 -1
- package/dist/schema/modules/comment/policies/owns-or-belongs-to-project-of-issue-with-comment-or-reported-issue-with-comment.d.ts +2 -1
- package/dist/schema/modules/issue/classes/issue.d.ts +3 -2
- package/dist/schema/modules/issue/classes/project-contains-issue.d.ts +1 -1
- package/dist/schema/modules/issue/policies/owns-or-belongs-to-project-of-assigned-issue.d.ts +2 -1
- package/dist/schema/modules/issue/policies/owns-or-belongs-to-project-of-child-issue.d.ts +2 -1
- package/dist/schema/modules/issue/policies/owns-or-belongs-to-project-of-issue-or-reported-issue.d.ts +2 -1
- package/dist/schema/modules/issue/policies/owns-or-belongs-to-project-of-issue-with-topic.d.ts +2 -1
- package/dist/schema/modules/issue/policies/owns-or-belongs-to-project-of-issue.d.ts +2 -1
- package/dist/schema/modules/issue/policies/owns-or-belongs-to-project-of-reported-issue-or-reported-issue.d.ts +2 -1
- package/dist/schema/modules/issue/policies/owns-or-belongs-to-project-of-tracked-or-tracking-issue.d.ts +2 -1
- package/dist/schema/modules/issue/policies/owns-project-of-issue.d.ts +2 -1
- package/dist/schema/modules/issue/policies/reported-issue.d.ts +2 -1
- package/dist/schema/modules/project/classes/project-has-member.d.ts +1 -1
- package/dist/schema/modules/project/classes/project-owned-by.d.ts +1 -1
- package/dist/schema/modules/project/classes/project-receives-reports-from.d.ts +1 -1
- package/dist/schema/modules/project/classes/project.d.ts +59 -0
- package/dist/schema/modules/project/classes/project.js +4 -0
- package/dist/schema/modules/project/functions/deliver-report.js +13 -0
- package/dist/schema/modules/project/functions/delivery-status.js +26 -0
- package/dist/schema/modules/project/index.d.ts +1 -0
- package/dist/schema/modules/project/index.js +1 -0
- package/dist/schema/modules/project/policies/calling-report-domain.d.ts +3 -0
- package/dist/schema/modules/project/policies/calling-report-domain.js +5 -0
- package/dist/schema/modules/project/policies/owns-or-belongs-to-containing-project.d.ts +2 -1
- package/dist/schema/modules/project/policies/owns-or-belongs-to-project-of-membership.d.ts +2 -1
- package/dist/schema/modules/project/policies/owns-or-belongs-to-project-of-ownership.d.ts +2 -1
- package/dist/schema/modules/project/policies/owns-or-belongs-to-project.d.ts +2 -1
- package/dist/schema/modules/project/policies/owns-project.d.ts +2 -1
- package/dist/schema/modules/project/policies/sends-project-reports.d.ts +2 -1
- package/dist/schema/modules/project/policies/submits-reports-to-project.d.ts +2 -1
- package/dist/schema/modules/tag/classes/project-contains-tag.d.ts +1 -1
- package/dist/schema/modules/tag/classes/tag.d.ts +2 -2
- package/dist/schema/modules/tag/policies/owns-or-belongs-to-project-of-tag.d.ts +2 -1
- package/dist/schema/modules/tag/policies/owns-or-belongs-to-project-of-tagged-issue.d.ts +2 -1
- package/dist/schema/modules/tag/policies/owns-project-of-tag.d.ts +2 -1
- package/dist/schema/schema.d.ts +95 -34
- package/dist/schema/schema.js +2 -1
- package/package.json +5 -5
|
@@ -26,7 +26,7 @@ export declare const Comment: import("@astrale-os/sdk/schema").AuthoredNodeClass
|
|
|
26
26
|
}, "authorized", false, false, undefined, undefined>>;
|
|
27
27
|
};
|
|
28
28
|
readonly policies: {
|
|
29
|
-
read: () => import("@astrale-os/sdk/schema").Policy
|
|
30
|
-
traverse: () => import("@astrale-os/sdk/schema").Policy
|
|
29
|
+
read: () => import("@astrale-os/sdk/schema").Policy<"object">;
|
|
30
|
+
traverse: () => import("@astrale-os/sdk/schema").Policy<"object">;
|
|
31
31
|
};
|
|
32
32
|
}>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Policy } from '@astrale-os/sdk/schema';
|
|
2
|
+
export declare const authoredComment: Policy<'object'>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Policy } from '@astrale-os/sdk/schema';
|
|
2
|
+
export declare const ownsOrBelongsToProjectOfIssueOfAuthoredComment: Policy<'object'>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Policy } from '@astrale-os/sdk/schema';
|
|
2
|
+
export declare const ownsOrBelongsToProjectOfIssueOfCommentOrReportedIssueOfComment: Policy<'object'>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Policy } from '@astrale-os/sdk/schema';
|
|
2
|
+
export declare const ownsOrBelongsToProjectOfIssueWithCommentOrReportedIssueWithComment: Policy<'object'>;
|
|
@@ -30,6 +30,7 @@ export declare const Issue: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
|
30
30
|
}, "open">, {
|
|
31
31
|
required?: boolean;
|
|
32
32
|
description?: string;
|
|
33
|
+
searchable?: true;
|
|
33
34
|
immutable?: import("@astrale-os/sdk/schema").PropertyImmutability;
|
|
34
35
|
}>;
|
|
35
36
|
priority: import("@astrale-os/sdk/schema").AuthoredProperty<z.ZodNumber, {
|
|
@@ -228,7 +229,7 @@ export declare const Issue: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
|
228
229
|
}, "authorized", false, false, undefined, undefined>>;
|
|
229
230
|
};
|
|
230
231
|
readonly policies: {
|
|
231
|
-
read: () => import("@astrale-os/sdk/schema").Policy
|
|
232
|
-
traverse: () => import("@astrale-os/sdk/schema").Policy
|
|
232
|
+
read: () => import("@astrale-os/sdk/schema").Policy<"object">;
|
|
233
|
+
traverse: () => import("@astrale-os/sdk/schema").Policy<"object">;
|
|
233
234
|
};
|
|
234
235
|
}>;
|
|
@@ -10,7 +10,7 @@ export declare const project_contains_issue: import("@astrale-os/sdk/schema").Di
|
|
|
10
10
|
readonly abstract: false;
|
|
11
11
|
readonly depth: 1;
|
|
12
12
|
readonly properties: "archived" | "createdAt" | "description" | "key" | "memberIds" | "name" | "nextIssueNumber" | "ownerId" | "updatedAt";
|
|
13
|
-
readonly methods: "addMember" | "archive" | "create" | "createIssue" | "createTag" | "delete" | "handoverReporting" | "receiveReport" | "removeMember" | "update";
|
|
13
|
+
readonly methods: "addMember" | "archive" | "create" | "createIssue" | "createTag" | "delete" | "deliverReport" | "deliveryStatus" | "handoverReporting" | "receiveReport" | "removeMember" | "update";
|
|
14
14
|
})[];
|
|
15
15
|
readonly outgoing: "0..*";
|
|
16
16
|
};
|
package/dist/schema/modules/issue/policies/owns-or-belongs-to-project-of-assigned-issue.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Policy } from '@astrale-os/sdk/schema';
|
|
2
|
+
export declare const ownsOrBelongsToProjectOfAssignedIssue: Policy<'object'>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Policy } from '@astrale-os/sdk/schema';
|
|
2
|
+
export declare const ownsOrBelongsToProjectOfChildIssue: Policy<'object'>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Policy } from '@astrale-os/sdk/schema';
|
|
2
|
+
export declare const ownsOrBelongsToProjectOfIssueOrReportedIssue: Policy<'object'>;
|
package/dist/schema/modules/issue/policies/owns-or-belongs-to-project-of-issue-with-topic.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Policy } from '@astrale-os/sdk/schema';
|
|
2
|
+
export declare const ownsOrBelongsToProjectOfIssueWithTopic: Policy<'object'>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Policy } from '@astrale-os/sdk/schema';
|
|
2
|
+
export declare const ownsOrBelongsToProjectOfIssue: Policy<'object'>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Policy } from '@astrale-os/sdk/schema';
|
|
2
|
+
export declare const ownsOrBelongsToProjectOfReportedIssueOrReportedIssue: Policy<'object'>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import { type Policy } from '@astrale-os/sdk/schema';
|
|
1
2
|
/** Flat rather than composed, as `ownsOrBelongsToProjectOfIssueOrReportedIssue`, to stay in the depth budget. */
|
|
2
|
-
export declare const ownsOrBelongsToProjectOfTrackedOrTrackingIssue:
|
|
3
|
+
export declare const ownsOrBelongsToProjectOfTrackedOrTrackingIssue: Policy<'object'>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Policy } from '@astrale-os/sdk/schema';
|
|
2
|
+
export declare const ownsProjectOfIssue: Policy<'object'>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Policy } from '@astrale-os/sdk/schema';
|
|
2
|
+
export declare const reportedIssue: Policy<'object'>;
|
|
@@ -17,7 +17,7 @@ export declare const project_has_member: import("@astrale-os/sdk/schema").Direct
|
|
|
17
17
|
readonly abstract: false;
|
|
18
18
|
readonly depth: 1;
|
|
19
19
|
readonly properties: "archived" | "createdAt" | "description" | "key" | "memberIds" | "name" | "nextIssueNumber" | "ownerId" | "updatedAt";
|
|
20
|
-
readonly methods: "addMember" | "archive" | "create" | "createIssue" | "createTag" | "delete" | "handoverReporting" | "receiveReport" | "removeMember" | "update";
|
|
20
|
+
readonly methods: "addMember" | "archive" | "create" | "createIssue" | "createTag" | "delete" | "deliverReport" | "deliveryStatus" | "handoverReporting" | "receiveReport" | "removeMember" | "update";
|
|
21
21
|
})[];
|
|
22
22
|
readonly incoming: "0..*";
|
|
23
23
|
};
|
|
@@ -17,7 +17,7 @@ export declare const project_owned_by: import("@astrale-os/sdk/schema").Directed
|
|
|
17
17
|
readonly abstract: false;
|
|
18
18
|
readonly depth: 1;
|
|
19
19
|
readonly properties: "archived" | "createdAt" | "description" | "key" | "memberIds" | "name" | "nextIssueNumber" | "ownerId" | "updatedAt";
|
|
20
|
-
readonly methods: "addMember" | "archive" | "create" | "createIssue" | "createTag" | "delete" | "handoverReporting" | "receiveReport" | "removeMember" | "update";
|
|
20
|
+
readonly methods: "addMember" | "archive" | "create" | "createIssue" | "createTag" | "delete" | "deliverReport" | "deliveryStatus" | "handoverReporting" | "receiveReport" | "removeMember" | "update";
|
|
21
21
|
})[];
|
|
22
22
|
readonly incoming: "0..1";
|
|
23
23
|
};
|
|
@@ -17,7 +17,7 @@ export declare const project_receives_reports_from: import("@astrale-os/sdk/sche
|
|
|
17
17
|
readonly abstract: false;
|
|
18
18
|
readonly depth: 1;
|
|
19
19
|
readonly properties: "archived" | "createdAt" | "description" | "key" | "memberIds" | "name" | "nextIssueNumber" | "ownerId" | "updatedAt";
|
|
20
|
-
readonly methods: "addMember" | "archive" | "create" | "createIssue" | "createTag" | "delete" | "handoverReporting" | "receiveReport" | "removeMember" | "update";
|
|
20
|
+
readonly methods: "addMember" | "archive" | "create" | "createIssue" | "createTag" | "delete" | "deliverReport" | "deliveryStatus" | "handoverReporting" | "receiveReport" | "removeMember" | "update";
|
|
21
21
|
})[];
|
|
22
22
|
readonly incoming: "0..1";
|
|
23
23
|
};
|
|
@@ -124,6 +124,65 @@ export declare const Project: import("@astrale-os/sdk/schema").AuthoredNodeClass
|
|
|
124
124
|
reference: string;
|
|
125
125
|
};
|
|
126
126
|
}, "authorized", false, false, undefined, undefined>>;
|
|
127
|
+
deliverReport: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
128
|
+
body: string;
|
|
129
|
+
context?: {
|
|
130
|
+
observedAt: string;
|
|
131
|
+
cli: {
|
|
132
|
+
version: string;
|
|
133
|
+
platform: string;
|
|
134
|
+
arch: string;
|
|
135
|
+
};
|
|
136
|
+
runtime: {
|
|
137
|
+
node: string;
|
|
138
|
+
bun?: string | undefined;
|
|
139
|
+
};
|
|
140
|
+
project?: {
|
|
141
|
+
name: string;
|
|
142
|
+
version?: string | undefined;
|
|
143
|
+
packages: {
|
|
144
|
+
name: string;
|
|
145
|
+
declared?: string | undefined;
|
|
146
|
+
version?: string | undefined;
|
|
147
|
+
source: "installed" | "local" | "unresolved";
|
|
148
|
+
commit?: string | undefined;
|
|
149
|
+
dirty?: boolean | undefined;
|
|
150
|
+
}[];
|
|
151
|
+
} | undefined;
|
|
152
|
+
instance?: {
|
|
153
|
+
name: string;
|
|
154
|
+
issuer?: string | undefined;
|
|
155
|
+
url?: string | undefined;
|
|
156
|
+
} | undefined;
|
|
157
|
+
} | undefined;
|
|
158
|
+
title: string;
|
|
159
|
+
requestId: string;
|
|
160
|
+
reporterId: string;
|
|
161
|
+
sender: string;
|
|
162
|
+
projectId: string;
|
|
163
|
+
}, {
|
|
164
|
+
readonly mode: 'value';
|
|
165
|
+
readonly value: {
|
|
166
|
+
id: string;
|
|
167
|
+
reference: string;
|
|
168
|
+
};
|
|
169
|
+
}, "authorized", true, false, undefined, undefined>>;
|
|
170
|
+
deliveryStatus: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
171
|
+
sender: string;
|
|
172
|
+
destination: {
|
|
173
|
+
projectId: string;
|
|
174
|
+
} | {
|
|
175
|
+
key: string;
|
|
176
|
+
};
|
|
177
|
+
}, {
|
|
178
|
+
readonly mode: 'value';
|
|
179
|
+
readonly value: {
|
|
180
|
+
projectId: string;
|
|
181
|
+
ownerId: string;
|
|
182
|
+
key: string;
|
|
183
|
+
memberIds: string[];
|
|
184
|
+
} | null;
|
|
185
|
+
}, "authorized", true, false, undefined, undefined>>;
|
|
127
186
|
createTag: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
128
187
|
name: string;
|
|
129
188
|
color?: string | undefined;
|
|
@@ -8,6 +8,8 @@ import { createProjectIssueMethod } from '../functions/create-project-issue.js';
|
|
|
8
8
|
import { createProjectTagMethod } from '../functions/create-project-tag.js';
|
|
9
9
|
import { createProjectMethod } from '../functions/create-project.js';
|
|
10
10
|
import { deleteProjectMethod } from '../functions/delete-project.js';
|
|
11
|
+
import { deliverReportMethod } from '../functions/deliver-report.js';
|
|
12
|
+
import { deliveryStatusMethod } from '../functions/delivery-status.js';
|
|
11
13
|
import { handoverReportingProjectMethod } from '../functions/handover-reporting-project.js';
|
|
12
14
|
import { receiveProjectReportMethod } from '../functions/receive-project-report.js';
|
|
13
15
|
import { removeProjectMemberMethod } from '../functions/remove-project-member.js';
|
|
@@ -33,6 +35,8 @@ export const Project = nodeClass({
|
|
|
33
35
|
createIssue: createProjectIssueMethod,
|
|
34
36
|
handoverReporting: handoverReportingProjectMethod,
|
|
35
37
|
receiveReport: receiveProjectReportMethod,
|
|
38
|
+
deliverReport: deliverReportMethod,
|
|
39
|
+
deliveryStatus: deliveryStatusMethod,
|
|
36
40
|
createTag: createProjectTagMethod,
|
|
37
41
|
archive: archiveProjectMethod,
|
|
38
42
|
delete: deleteProjectMethod,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { K, method, path } from '@astrale-os/sdk/schema';
|
|
2
|
+
import { receiveReportInput, reportReceiptValue } from '../../issue/index.js';
|
|
3
|
+
import { nodeIdValue } from '../../../types/index.js';
|
|
4
|
+
import { callingReportDomain } from '../policies/calling-report-domain.js';
|
|
5
|
+
const sender = path(K.classes.Domain);
|
|
6
|
+
export const deliverReportMethod = method({
|
|
7
|
+
description: 'Deliver a report through the authenticated Domain’s registered Project intake.',
|
|
8
|
+
static: true,
|
|
9
|
+
auth: 'authorized',
|
|
10
|
+
input: receiveReportInput.extend({ sender, projectId: nodeIdValue }),
|
|
11
|
+
policy: ({ check, input }) => check(callingReportDomain, input.sender),
|
|
12
|
+
output: reportReceiptValue,
|
|
13
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { K, method, path } from '@astrale-os/sdk/schema';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { nodeIdValue } from '../../../types/index.js';
|
|
4
|
+
import { callingReportDomain } from '../policies/calling-report-domain.js';
|
|
5
|
+
const sender = path(K.classes.Domain);
|
|
6
|
+
export const deliveryStatusMethod = method({
|
|
7
|
+
description: 'Read this Domain’s report delivery standing on the Project.',
|
|
8
|
+
static: true,
|
|
9
|
+
auth: 'authorized',
|
|
10
|
+
input: z.strictObject({
|
|
11
|
+
sender,
|
|
12
|
+
destination: z.union([
|
|
13
|
+
z.strictObject({ projectId: nodeIdValue }),
|
|
14
|
+
z.strictObject({ key: z.string().min(2).max(10) }),
|
|
15
|
+
]),
|
|
16
|
+
}),
|
|
17
|
+
policy: ({ check, input }) => check(callingReportDomain, input.sender),
|
|
18
|
+
output: z
|
|
19
|
+
.strictObject({
|
|
20
|
+
projectId: nodeIdValue,
|
|
21
|
+
ownerId: nodeIdValue,
|
|
22
|
+
key: z.string(),
|
|
23
|
+
memberIds: z.array(nodeIdValue),
|
|
24
|
+
})
|
|
25
|
+
.nullable(),
|
|
26
|
+
});
|
|
@@ -5,3 +5,4 @@ export { ownsOrBelongsToProject, ownsOrBelongsToContainingProject, ownsProject,
|
|
|
5
5
|
export { project_receives_reports_from } from './classes/index.js';
|
|
6
6
|
export { sendsProjectReports } from './policies/index.js';
|
|
7
7
|
export { submitsReportsToProject } from './policies/index.js';
|
|
8
|
+
export { callingReportDomain } from './policies/calling-report-domain.js';
|
|
@@ -5,3 +5,4 @@ export { ownsOrBelongsToProject, ownsOrBelongsToContainingProject, ownsProject,
|
|
|
5
5
|
export { project_receives_reports_from } from './classes/index.js';
|
|
6
6
|
export { sendsProjectReports } from './policies/index.js';
|
|
7
7
|
export { submitsReportsToProject } from './policies/index.js';
|
|
8
|
+
export { callingReportDomain } from './policies/calling-report-domain.js';
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Policy } from '@astrale-os/sdk/schema';
|
|
2
|
+
export declare const ownsOrBelongsToContainingProject: Policy<'object'>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Policy } from '@astrale-os/sdk/schema';
|
|
2
|
+
export declare const ownsOrBelongsToProjectOfMembership: Policy<'object'>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Policy } from '@astrale-os/sdk/schema';
|
|
2
|
+
export declare const ownsOrBelongsToProjectOfOwnership: Policy<'object'>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Policy } from '@astrale-os/sdk/schema';
|
|
2
|
+
export declare const ownsOrBelongsToProject: Policy<'object'>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Policy } from '@astrale-os/sdk/schema';
|
|
2
|
+
export declare const ownsProject: Policy<'object'>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Policy } from '@astrale-os/sdk/schema';
|
|
2
|
+
export declare const sendsProjectReports: Policy<'object'>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Policy } from '@astrale-os/sdk/schema';
|
|
2
|
+
export declare const submitsReportsToProject: Policy<'object'>;
|
|
@@ -10,7 +10,7 @@ export declare const project_contains_tag: import("@astrale-os/sdk/schema").Dire
|
|
|
10
10
|
readonly abstract: false;
|
|
11
11
|
readonly depth: 1;
|
|
12
12
|
readonly properties: "archived" | "createdAt" | "description" | "key" | "memberIds" | "name" | "nextIssueNumber" | "ownerId" | "updatedAt";
|
|
13
|
-
readonly methods: "addMember" | "archive" | "create" | "createIssue" | "createTag" | "delete" | "handoverReporting" | "receiveReport" | "removeMember" | "update";
|
|
13
|
+
readonly methods: "addMember" | "archive" | "create" | "createIssue" | "createTag" | "delete" | "deliverReport" | "deliveryStatus" | "handoverReporting" | "receiveReport" | "removeMember" | "update";
|
|
14
14
|
})[];
|
|
15
15
|
readonly outgoing: "0..*";
|
|
16
16
|
};
|
|
@@ -31,7 +31,7 @@ export declare const Tag: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
|
31
31
|
}, "authorized", false, false, undefined, undefined>>;
|
|
32
32
|
};
|
|
33
33
|
readonly policies: {
|
|
34
|
-
read: () => import("@astrale-os/sdk/schema").Policy
|
|
35
|
-
traverse: () => import("@astrale-os/sdk/schema").Policy
|
|
34
|
+
read: () => import("@astrale-os/sdk/schema").Policy<"object">;
|
|
35
|
+
traverse: () => import("@astrale-os/sdk/schema").Policy<"object">;
|
|
36
36
|
};
|
|
37
37
|
}>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Policy } from '@astrale-os/sdk/schema';
|
|
2
|
+
export declare const ownsOrBelongsToProjectOfTag: Policy<'object'>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Policy } from '@astrale-os/sdk/schema';
|
|
2
|
+
export declare const ownsOrBelongsToProjectOfTaggedIssue: Policy<'object'>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Policy } from '@astrale-os/sdk/schema';
|
|
2
|
+
export declare const ownsProjectOfTag: Policy<'object'>;
|
package/dist/schema/schema.d.ts
CHANGED
|
@@ -130,6 +130,65 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
|
|
|
130
130
|
reference: string;
|
|
131
131
|
};
|
|
132
132
|
}, "authorized", false, false, undefined, undefined>>;
|
|
133
|
+
deliverReport: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
134
|
+
body: string;
|
|
135
|
+
context?: {
|
|
136
|
+
observedAt: string;
|
|
137
|
+
cli: {
|
|
138
|
+
version: string;
|
|
139
|
+
platform: string;
|
|
140
|
+
arch: string;
|
|
141
|
+
};
|
|
142
|
+
runtime: {
|
|
143
|
+
node: string;
|
|
144
|
+
bun?: string | undefined;
|
|
145
|
+
};
|
|
146
|
+
project?: {
|
|
147
|
+
name: string;
|
|
148
|
+
version?: string | undefined;
|
|
149
|
+
packages: {
|
|
150
|
+
name: string;
|
|
151
|
+
declared?: string | undefined;
|
|
152
|
+
version?: string | undefined;
|
|
153
|
+
source: "installed" | "local" | "unresolved";
|
|
154
|
+
commit?: string | undefined;
|
|
155
|
+
dirty?: boolean | undefined;
|
|
156
|
+
}[];
|
|
157
|
+
} | undefined;
|
|
158
|
+
instance?: {
|
|
159
|
+
name: string;
|
|
160
|
+
issuer?: string | undefined;
|
|
161
|
+
url?: string | undefined;
|
|
162
|
+
} | undefined;
|
|
163
|
+
} | undefined;
|
|
164
|
+
title: string;
|
|
165
|
+
requestId: string;
|
|
166
|
+
reporterId: string;
|
|
167
|
+
sender: string;
|
|
168
|
+
projectId: string;
|
|
169
|
+
}, {
|
|
170
|
+
readonly mode: 'value';
|
|
171
|
+
readonly value: {
|
|
172
|
+
id: string;
|
|
173
|
+
reference: string;
|
|
174
|
+
};
|
|
175
|
+
}, "authorized", true, false, undefined, undefined>>;
|
|
176
|
+
deliveryStatus: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
177
|
+
sender: string;
|
|
178
|
+
destination: {
|
|
179
|
+
projectId: string;
|
|
180
|
+
} | {
|
|
181
|
+
key: string;
|
|
182
|
+
};
|
|
183
|
+
}, {
|
|
184
|
+
readonly mode: 'value';
|
|
185
|
+
readonly value: {
|
|
186
|
+
projectId: string;
|
|
187
|
+
ownerId: string;
|
|
188
|
+
key: string;
|
|
189
|
+
memberIds: string[];
|
|
190
|
+
} | null;
|
|
191
|
+
}, "authorized", true, false, undefined, undefined>>;
|
|
133
192
|
createTag: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
134
193
|
name: string;
|
|
135
194
|
color?: string | undefined;
|
|
@@ -193,6 +252,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
|
|
|
193
252
|
}, "open">, {
|
|
194
253
|
required?: boolean;
|
|
195
254
|
description?: string;
|
|
255
|
+
searchable?: true;
|
|
196
256
|
immutable?: import("@astrale-os/sdk/schema").PropertyImmutability;
|
|
197
257
|
}>;
|
|
198
258
|
priority: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodNumber, {
|
|
@@ -391,8 +451,8 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
|
|
|
391
451
|
}, "authorized", false, false, undefined, undefined>>;
|
|
392
452
|
};
|
|
393
453
|
readonly policies: {
|
|
394
|
-
read: () => import("@astrale-os/sdk/schema").Policy
|
|
395
|
-
traverse: () => import("@astrale-os/sdk/schema").Policy
|
|
454
|
+
read: () => import("@astrale-os/sdk/schema").Policy<"object">;
|
|
455
|
+
traverse: () => import("@astrale-os/sdk/schema").Policy<"object">;
|
|
396
456
|
};
|
|
397
457
|
}>;
|
|
398
458
|
readonly Comment: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
@@ -422,8 +482,8 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
|
|
|
422
482
|
}, "authorized", false, false, undefined, undefined>>;
|
|
423
483
|
};
|
|
424
484
|
readonly policies: {
|
|
425
|
-
read: () => import("@astrale-os/sdk/schema").Policy
|
|
426
|
-
traverse: () => import("@astrale-os/sdk/schema").Policy
|
|
485
|
+
read: () => import("@astrale-os/sdk/schema").Policy<"object">;
|
|
486
|
+
traverse: () => import("@astrale-os/sdk/schema").Policy<"object">;
|
|
427
487
|
};
|
|
428
488
|
}>;
|
|
429
489
|
readonly project_receives_reports_from: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
|
|
@@ -445,7 +505,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
|
|
|
445
505
|
readonly abstract: false;
|
|
446
506
|
readonly depth: 1;
|
|
447
507
|
readonly properties: "archived" | "createdAt" | "description" | "key" | "memberIds" | "name" | "nextIssueNumber" | "ownerId" | "updatedAt";
|
|
448
|
-
readonly methods: "addMember" | "archive" | "create" | "createIssue" | "createTag" | "delete" | "handoverReporting" | "receiveReport" | "removeMember" | "update";
|
|
508
|
+
readonly methods: "addMember" | "archive" | "create" | "createIssue" | "createTag" | "delete" | "deliverReport" | "deliveryStatus" | "handoverReporting" | "receiveReport" | "removeMember" | "update";
|
|
449
509
|
})[];
|
|
450
510
|
readonly incoming: "0..1";
|
|
451
511
|
};
|
|
@@ -484,8 +544,8 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
|
|
|
484
544
|
}, "authorized", false, false, undefined, undefined>>;
|
|
485
545
|
};
|
|
486
546
|
readonly policies: {
|
|
487
|
-
read: () => import("@astrale-os/sdk/schema").Policy
|
|
488
|
-
traverse: () => import("@astrale-os/sdk/schema").Policy
|
|
547
|
+
read: () => import("@astrale-os/sdk/schema").Policy<"object">;
|
|
548
|
+
traverse: () => import("@astrale-os/sdk/schema").Policy<"object">;
|
|
489
549
|
};
|
|
490
550
|
}>;
|
|
491
551
|
readonly project_owned_by: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
|
|
@@ -507,7 +567,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
|
|
|
507
567
|
readonly abstract: false;
|
|
508
568
|
readonly depth: 1;
|
|
509
569
|
readonly properties: "archived" | "createdAt" | "description" | "key" | "memberIds" | "name" | "nextIssueNumber" | "ownerId" | "updatedAt";
|
|
510
|
-
readonly methods: "addMember" | "archive" | "create" | "createIssue" | "createTag" | "delete" | "handoverReporting" | "receiveReport" | "removeMember" | "update";
|
|
570
|
+
readonly methods: "addMember" | "archive" | "create" | "createIssue" | "createTag" | "delete" | "deliverReport" | "deliveryStatus" | "handoverReporting" | "receiveReport" | "removeMember" | "update";
|
|
511
571
|
})[];
|
|
512
572
|
readonly incoming: "0..1";
|
|
513
573
|
};
|
|
@@ -533,7 +593,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
|
|
|
533
593
|
readonly abstract: false;
|
|
534
594
|
readonly depth: 1;
|
|
535
595
|
readonly properties: "archived" | "createdAt" | "description" | "key" | "memberIds" | "name" | "nextIssueNumber" | "ownerId" | "updatedAt";
|
|
536
|
-
readonly methods: "addMember" | "archive" | "create" | "createIssue" | "createTag" | "delete" | "handoverReporting" | "receiveReport" | "removeMember" | "update";
|
|
596
|
+
readonly methods: "addMember" | "archive" | "create" | "createIssue" | "createTag" | "delete" | "deliverReport" | "deliveryStatus" | "handoverReporting" | "receiveReport" | "removeMember" | "update";
|
|
537
597
|
})[];
|
|
538
598
|
readonly incoming: "0..*";
|
|
539
599
|
};
|
|
@@ -552,7 +612,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
|
|
|
552
612
|
readonly abstract: false;
|
|
553
613
|
readonly depth: 1;
|
|
554
614
|
readonly properties: "archived" | "createdAt" | "description" | "key" | "memberIds" | "name" | "nextIssueNumber" | "ownerId" | "updatedAt";
|
|
555
|
-
readonly methods: "addMember" | "archive" | "create" | "createIssue" | "createTag" | "delete" | "handoverReporting" | "receiveReport" | "removeMember" | "update";
|
|
615
|
+
readonly methods: "addMember" | "archive" | "create" | "createIssue" | "createTag" | "delete" | "deliverReport" | "deliveryStatus" | "handoverReporting" | "receiveReport" | "removeMember" | "update";
|
|
556
616
|
})[];
|
|
557
617
|
readonly outgoing: "0..*";
|
|
558
618
|
};
|
|
@@ -756,7 +816,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
|
|
|
756
816
|
readonly abstract: false;
|
|
757
817
|
readonly depth: 1;
|
|
758
818
|
readonly properties: "archived" | "createdAt" | "description" | "key" | "memberIds" | "name" | "nextIssueNumber" | "ownerId" | "updatedAt";
|
|
759
|
-
readonly methods: "addMember" | "archive" | "create" | "createIssue" | "createTag" | "delete" | "handoverReporting" | "receiveReport" | "removeMember" | "update";
|
|
819
|
+
readonly methods: "addMember" | "archive" | "create" | "createIssue" | "createTag" | "delete" | "deliverReport" | "deliveryStatus" | "handoverReporting" | "receiveReport" | "removeMember" | "update";
|
|
760
820
|
})[];
|
|
761
821
|
readonly outgoing: "0..*";
|
|
762
822
|
};
|
|
@@ -834,29 +894,30 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
|
|
|
834
894
|
}>;
|
|
835
895
|
};
|
|
836
896
|
readonly policies: {
|
|
837
|
-
readonly
|
|
838
|
-
readonly
|
|
839
|
-
readonly
|
|
840
|
-
readonly
|
|
841
|
-
readonly
|
|
842
|
-
readonly
|
|
843
|
-
readonly
|
|
844
|
-
readonly
|
|
845
|
-
readonly
|
|
846
|
-
readonly
|
|
847
|
-
readonly
|
|
848
|
-
readonly
|
|
849
|
-
readonly
|
|
850
|
-
readonly
|
|
851
|
-
readonly
|
|
852
|
-
readonly
|
|
853
|
-
readonly
|
|
854
|
-
readonly
|
|
855
|
-
readonly
|
|
856
|
-
readonly
|
|
857
|
-
readonly
|
|
858
|
-
readonly
|
|
859
|
-
readonly
|
|
897
|
+
readonly callingReportDomain: import("@astrale-os/sdk/schema").Policy<"object">;
|
|
898
|
+
readonly sendsProjectReports: import("@astrale-os/sdk/schema").Policy<"object">;
|
|
899
|
+
readonly submitsReportsToProject: import("@astrale-os/sdk/schema").Policy<"object">;
|
|
900
|
+
readonly ownsProject: import("@astrale-os/sdk/schema").Policy<"object">;
|
|
901
|
+
readonly ownsOrBelongsToProject: import("@astrale-os/sdk/schema").Policy<"object">;
|
|
902
|
+
readonly ownsOrBelongsToProjectOfIssue: import("@astrale-os/sdk/schema").Policy<"object">;
|
|
903
|
+
readonly reportedIssue: import("@astrale-os/sdk/schema").Policy<"object">;
|
|
904
|
+
readonly ownsOrBelongsToProjectOfIssueOrReportedIssue: import("@astrale-os/sdk/schema").Policy<"object">;
|
|
905
|
+
readonly ownsProjectOfIssue: import("@astrale-os/sdk/schema").Policy<"object">;
|
|
906
|
+
readonly ownsOrBelongsToProjectOfTag: import("@astrale-os/sdk/schema").Policy<"object">;
|
|
907
|
+
readonly ownsProjectOfTag: import("@astrale-os/sdk/schema").Policy<"object">;
|
|
908
|
+
readonly ownsOrBelongsToProjectOfIssueOfCommentOrReportedIssueOfComment: import("@astrale-os/sdk/schema").Policy<"object">;
|
|
909
|
+
readonly authoredComment: import("@astrale-os/sdk/schema").Policy<"object">;
|
|
910
|
+
readonly ownsOrBelongsToProjectOfOwnership: import("@astrale-os/sdk/schema").Policy<"object">;
|
|
911
|
+
readonly ownsOrBelongsToProjectOfMembership: import("@astrale-os/sdk/schema").Policy<"object">;
|
|
912
|
+
readonly ownsOrBelongsToContainingProject: import("@astrale-os/sdk/schema").Policy<"object">;
|
|
913
|
+
readonly ownsOrBelongsToProjectOfReportedIssueOrReportedIssue: import("@astrale-os/sdk/schema").Policy<"object">;
|
|
914
|
+
readonly ownsOrBelongsToProjectOfAssignedIssue: import("@astrale-os/sdk/schema").Policy<"object">;
|
|
915
|
+
readonly ownsOrBelongsToProjectOfChildIssue: import("@astrale-os/sdk/schema").Policy<"object">;
|
|
916
|
+
readonly ownsOrBelongsToProjectOfTrackedOrTrackingIssue: import("@astrale-os/sdk/schema").Policy<"object">;
|
|
917
|
+
readonly ownsOrBelongsToProjectOfIssueWithCommentOrReportedIssueWithComment: import("@astrale-os/sdk/schema").Policy<"object">;
|
|
918
|
+
readonly ownsOrBelongsToProjectOfTaggedIssue: import("@astrale-os/sdk/schema").Policy<"object">;
|
|
919
|
+
readonly ownsOrBelongsToProjectOfIssueWithTopic: import("@astrale-os/sdk/schema").Policy<"object">;
|
|
920
|
+
readonly ownsOrBelongsToProjectOfIssueOfAuthoredComment: import("@astrale-os/sdk/schema").Policy<"object">;
|
|
860
921
|
};
|
|
861
922
|
readonly views: {
|
|
862
923
|
readonly application: import("@astrale-os/sdk/schema").View;
|
package/dist/schema/schema.js
CHANGED
|
@@ -2,7 +2,7 @@ import { ShellSchema } from '@astrale-domains/shell';
|
|
|
2
2
|
import { KernelSchema, defineSchema, domainIcon, view } from '@astrale-os/sdk/schema';
|
|
3
3
|
import { Comment, comment_authored_by, issue_has_comment, ownsOrBelongsToProjectOfIssueOfCommentOrReportedIssueOfComment, authoredComment, ownsOrBelongsToProjectOfIssueOfAuthoredComment, ownsOrBelongsToProjectOfIssueWithCommentOrReportedIssueWithComment, } from './modules/comment/index.js';
|
|
4
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, project_receives_reports_from, sendsProjectReports, submitsReportsToProject, ownsOrBelongsToProject, ownsOrBelongsToContainingProject, ownsProject, ownsOrBelongsToProjectOfMembership, ownsOrBelongsToProjectOfOwnership, project_has_member, project_owned_by, } from './modules/project/index.js';
|
|
5
|
+
import { Project, project_receives_reports_from, callingReportDomain, sendsProjectReports, submitsReportsToProject, ownsOrBelongsToProject, ownsOrBelongsToContainingProject, ownsProject, ownsOrBelongsToProjectOfMembership, ownsOrBelongsToProjectOfOwnership, project_has_member, project_owned_by, } from './modules/project/index.js';
|
|
6
6
|
import { Tag, ownsOrBelongsToProjectOfTag, ownsProjectOfTag, ownsOrBelongsToProjectOfTaggedIssue, issue_tagged_with, project_contains_tag, } from './modules/tag/index.js';
|
|
7
7
|
const origin = 'issues.astrale.ai';
|
|
8
8
|
const classes = {
|
|
@@ -25,6 +25,7 @@ const classes = {
|
|
|
25
25
|
issue_is_about,
|
|
26
26
|
};
|
|
27
27
|
const policies = {
|
|
28
|
+
callingReportDomain,
|
|
28
29
|
sendsProjectReports,
|
|
29
30
|
submitsReportsToProject,
|
|
30
31
|
ownsProject,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrale-domains/issues",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/astrale-os/domains.git",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@astrale-domains/shell": "0.3.0",
|
|
35
|
-
"@astrale-os/adapter-cloudflare": "0.5.0-beta.
|
|
35
|
+
"@astrale-os/adapter-cloudflare": "0.5.0-beta.230",
|
|
36
36
|
"@astrale-os/ox": ">=0.1.4 <1.0.0",
|
|
37
|
-
"@astrale-os/sdk": "0.6.0-beta.
|
|
38
|
-
"@astrale-os/shell": "0.7.0-beta.
|
|
37
|
+
"@astrale-os/sdk": "0.6.0-beta.75",
|
|
38
|
+
"@astrale-os/shell": "0.7.0-beta.28",
|
|
39
39
|
"@astrale-os/shell-react": "0.6.0-beta.20",
|
|
40
40
|
"@astrale-os/ui": "1.0.0-beta.52",
|
|
41
41
|
"@fontsource-variable/geist": "5.3.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"@astrale-domains/shell": ">=0.3.0 <1.0.0",
|
|
71
|
-
"@astrale-os/sdk": ">=0.6.0-beta.
|
|
71
|
+
"@astrale-os/sdk": ">=0.6.0-beta.75 <1.0.0"
|
|
72
72
|
},
|
|
73
73
|
"engines": {
|
|
74
74
|
"node": ">=24"
|