File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 1
1
import { Namespace , SubjectSet , Context } from "@ory/keto-namespace-types" ;
2
2
3
3
// https://www.ory.sh/docs/keto/modeling/create-permission-model
4
- class User implements Namespace {
5
- related : {
6
- manager : User [ ] ;
7
- } ;
8
- }
4
+ class User implements Namespace { }
9
5
10
6
class Group implements Namespace {
11
7
related : {
@@ -15,7 +11,7 @@ class Group implements Namespace {
15
11
16
12
class StacCollection implements Namespace {
17
13
related : {
18
- parents : ( StacItem | StacCollection ) [ ] ;
14
+ parents : StacCollection [ ] ;
19
15
viewers : SubjectSet < Group , "members" > [ ] ;
20
16
} ;
21
17
@@ -28,7 +24,7 @@ class StacCollection implements Namespace {
28
24
29
25
class StacItem implements Namespace {
30
26
related : {
31
- parents : ( StacItem | StacCollection ) [ ] ;
27
+ parents : StacCollection [ ] ;
32
28
viewers : ( User | SubjectSet < Group , "members" > ) [ ] ;
33
29
owners : ( User | SubjectSet < Group , "members" > ) [ ] ;
34
30
} ;
You can’t perform that action at this time.
0 commit comments