Created
February 26, 2024 01:48
-
-
Save csuwildcat/9047970ac28b5397c8ec2740784420c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"uri": "https://slick.app", | |
"schemas": { | |
"invite": "https://slick.app/schemas/invite", | |
"community": "https://slick.app/schemas/community", | |
"details": "https://slick.app/schemas/details", | |
"channel": "https://slick.app/schemas/channel", | |
"message": "https://slick.app/schemas/message", | |
"reaction": "https://slick.app/schemas/reaction", | |
"admin": "https://slick.app/schemas/admin", | |
"member": "https://slick.app/schemas/member", | |
"participant": "https://slick.app/schemas/participant", | |
"task": "https://slick.app/schemas/task" | |
}, | |
"definition": { | |
"published": true, | |
"protocol": "https://slick.app", | |
"types": { | |
"invite": { | |
"dataFormats": [ | |
"application/json" | |
], | |
"schema": "https://slick.app/schemas/invite" | |
}, | |
"community": { | |
"dataFormats": [ | |
"application/json" | |
], | |
"schema": "https://slick.app/schemas/community" | |
}, | |
"details": { | |
"dataFormats": [ | |
"application/json" | |
], | |
"schema": "https://slick.app/schemas/details" | |
}, | |
"channel": { | |
"dataFormats": [ | |
"application/json" | |
], | |
"schema": "https://slick.app/schemas/channel" | |
}, | |
"message": { | |
"dataFormats": [ | |
"application/json" | |
], | |
"schema": "https://slick.app/schemas/message" | |
}, | |
"image": { | |
"dataFormats": [ | |
"image/gif", | |
"image/png", | |
"image/jpeg" | |
] | |
}, | |
"logo": { | |
"dataFormats": [ | |
"image/gif", | |
"image/png", | |
"image/jpeg" | |
] | |
}, | |
"hero": { | |
"dataFormats": [ | |
"image/gif", | |
"image/png", | |
"image/jpeg" | |
] | |
}, | |
"media": { | |
"dataFormats": [ | |
"image/gif", | |
"image/png", | |
"image/jpeg", | |
"video/mp4" | |
] | |
}, | |
"reaction": { | |
"dataFormats": [ | |
"application/json" | |
], | |
"schema": "https://slick.app/schemas/reaction" | |
}, | |
"admin": { | |
"dataFormats": [ | |
"application/json" | |
], | |
"schema": "https://slick.app/schemas/admin" | |
}, | |
"member": { | |
"dataFormats": [ | |
"application/json" | |
], | |
"schema": "https://slick.app/schemas/member" | |
}, | |
"participant": { | |
"dataFormats": [ | |
"application/json" | |
], | |
"schema": "https://slick.app/schemas/participant" | |
}, | |
"task": { | |
"dataFormats": [ | |
"application/json" | |
], | |
"schema": "https://slick.app/schemas/task" | |
} | |
}, | |
"structure": { | |
"task": {}, | |
"invite": { | |
"$actions": [ | |
{ | |
"who": "anyone", | |
"can": "write" | |
} | |
] | |
}, | |
"community": { | |
"$actions": [ | |
{ | |
"role": "community/member", | |
"can": "write" | |
}, | |
{ | |
"role": "community/member", | |
"can": "query" | |
}, | |
{ | |
"role": "community/member", | |
"can": "read" | |
}, | |
{ | |
"role": "community/member", | |
"can": "delete" | |
} | |
], | |
"admin": { | |
"$contextRole": true, | |
"$actions": [ | |
{ | |
"who": "author", | |
"of": "community", | |
"can": "write" | |
}, | |
{ | |
"who": "author", | |
"of": "community", | |
"can": "delete" | |
}, | |
{ | |
"role": "community/admin", | |
"can": "write" | |
}, | |
{ | |
"role": "community/admin", | |
"can": "delete" | |
}, | |
{ | |
"role": "community/admin", | |
"can": "query" | |
}, | |
{ | |
"role": "community/admin", | |
"can": "read" | |
} | |
] | |
}, | |
"member": { | |
"$contextRole": true, | |
"$actions": [ | |
{ | |
"role": "community/member", | |
"can": "query" | |
}, | |
{ | |
"role": "community/member", | |
"can": "read" | |
}, | |
{ | |
"who": "author", | |
"of": "community", | |
"can": "write" | |
}, | |
{ | |
"who": "author", | |
"of": "community", | |
"can": "delete" | |
}, | |
{ | |
"role": "community/admin", | |
"can": "write" | |
}, | |
{ | |
"role": "community/admin", | |
"can": "delete" | |
}, | |
{ | |
"role": "community/admin", | |
"can": "query" | |
}, | |
{ | |
"role": "community/admin", | |
"can": "read" | |
} | |
] | |
}, | |
"details": { | |
"$actions": [ | |
{ | |
"role": "community/member", | |
"can": "query" | |
}, | |
{ | |
"role": "community/member", | |
"can": "read" | |
}, | |
{ | |
"who": "author", | |
"of": "community", | |
"can": "write" | |
}, | |
{ | |
"who": "author", | |
"of": "community", | |
"can": "delete" | |
}, | |
{ | |
"role": "community/admin", | |
"can": "write" | |
}, | |
{ | |
"role": "community/admin", | |
"can": "delete" | |
}, | |
{ | |
"role": "community/admin", | |
"can": "query" | |
}, | |
{ | |
"role": "community/admin", | |
"can": "read" | |
} | |
] | |
}, | |
"logo": { | |
"$actions": [ | |
{ | |
"role": "community/member", | |
"can": "query" | |
}, | |
{ | |
"role": "community/member", | |
"can": "read" | |
}, | |
{ | |
"who": "author", | |
"of": "community", | |
"can": "write" | |
}, | |
{ | |
"who": "author", | |
"of": "community", | |
"can": "delete" | |
}, | |
{ | |
"role": "community/admin", | |
"can": "write" | |
}, | |
{ | |
"role": "community/admin", | |
"can": "delete" | |
}, | |
{ | |
"role": "community/admin", | |
"can": "query" | |
}, | |
{ | |
"role": "community/admin", | |
"can": "read" | |
} | |
] | |
}, | |
"hero": { | |
"$actions": [ | |
{ | |
"role": "community/member", | |
"can": "query" | |
}, | |
{ | |
"role": "community/member", | |
"can": "read" | |
}, | |
{ | |
"who": "author", | |
"of": "community", | |
"can": "write" | |
}, | |
{ | |
"who": "author", | |
"of": "community", | |
"can": "delete" | |
}, | |
{ | |
"role": "community/admin", | |
"can": "write" | |
}, | |
{ | |
"role": "community/admin", | |
"can": "delete" | |
}, | |
{ | |
"role": "community/admin", | |
"can": "query" | |
}, | |
{ | |
"role": "community/admin", | |
"can": "read" | |
} | |
] | |
}, | |
"channel": { | |
"$actions": [ | |
{ | |
"who": "author", | |
"of": "community", | |
"can": "write" | |
}, | |
{ | |
"who": "author", | |
"of": "community", | |
"can": "delete" | |
}, | |
{ | |
"role": "community/admin", | |
"can": "write" | |
}, | |
{ | |
"role": "community/admin", | |
"can": "delete" | |
}, | |
{ | |
"role": "community/admin", | |
"can": "query" | |
}, | |
{ | |
"role": "community/admin", | |
"can": "read" | |
}, | |
{ | |
"role": "community/member", | |
"can": "write" | |
}, | |
{ | |
"role": "community/member", | |
"can": "query" | |
}, | |
{ | |
"role": "community/member", | |
"can": "read" | |
}, | |
{ | |
"role": "community/member", | |
"can": "delete" | |
} | |
], | |
"message": { | |
"$actions": [ | |
{ | |
"who": "author", | |
"of": "community", | |
"can": "write" | |
}, | |
{ | |
"who": "author", | |
"of": "community", | |
"can": "delete" | |
}, | |
{ | |
"role": "community/admin", | |
"can": "write" | |
}, | |
{ | |
"role": "community/admin", | |
"can": "delete" | |
}, | |
{ | |
"role": "community/admin", | |
"can": "query" | |
}, | |
{ | |
"role": "community/admin", | |
"can": "read" | |
}, | |
{ | |
"role": "community/member", | |
"can": "write" | |
}, | |
{ | |
"role": "community/member", | |
"can": "query" | |
}, | |
{ | |
"role": "community/member", | |
"can": "read" | |
}, | |
{ | |
"role": "community/member", | |
"can": "delete" | |
} | |
], | |
"media": { | |
"$actions": [ | |
{ | |
"who": "author", | |
"of": "community/channel/message", | |
"can": "write" | |
}, | |
{ | |
"role": "community/member", | |
"can": "query" | |
}, | |
{ | |
"role": "community/member", | |
"can": "read" | |
} | |
] | |
}, | |
"reaction": { | |
"$actions": [ | |
{ | |
"role": "community/member", | |
"can": "write" | |
}, | |
{ | |
"role": "community/member", | |
"can": "query" | |
}, | |
{ | |
"role": "community/member", | |
"can": "read" | |
}, | |
{ | |
"role": "community/member", | |
"can": "delete" | |
}, | |
{ | |
"role": "community/member", | |
"can": "write" | |
}, | |
{ | |
"role": "community/member", | |
"can": "query" | |
}, | |
{ | |
"role": "community/member", | |
"can": "read" | |
}, | |
{ | |
"role": "community/member", | |
"can": "delete" | |
} | |
] | |
} | |
} | |
}, | |
"convo": { | |
"$actions": [ | |
{ | |
"role": "community/member", | |
"can": "write" | |
} | |
], | |
"message": { | |
"$actions": [ | |
{ | |
"who": "author", | |
"of": "community/convo", | |
"can": "write" | |
}, | |
{ | |
"who": "recipient", | |
"of": "community/convo/message", | |
"can": "write" | |
} | |
], | |
"media": { | |
"$actions": [ | |
{ | |
"who": "author", | |
"of": "community/convo/message", | |
"can": "write" | |
} | |
] | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment