mirror of
https://github.com/urbit/shrub.git
synced 2024-12-30 07:35:19 +03:00
47 lines
1.0 KiB
Plaintext
47 lines
1.0 KiB
Plaintext
/- *group, store=graph-store
|
|
/+ resource
|
|
^?
|
|
|%
|
|
:: $associated: A group to associate, or a policy if it is unmanaged
|
|
::
|
|
+$ associated
|
|
$% [%group rid=resource]
|
|
[%policy =policy]
|
|
==
|
|
::
|
|
:: $error: An error from a graph-view poke
|
|
::
|
|
:: %offline: Ship is offline
|
|
:: %bad-perms: Not permitted
|
|
:: %unknown: Anything not described above
|
|
::
|
|
+$ error
|
|
?(%offline %bad-perms %unknown)
|
|
:: $action: A semantic action on graphs
|
|
::
|
|
:: %create: Create a graph and associated metadata
|
|
:: %delete: Delete a graph
|
|
:: %join: Join a graph
|
|
:: %invite: Invite users to a graph
|
|
:: %groupify: Make graph into managed group
|
|
::
|
|
+$ action
|
|
$%
|
|
$: %create
|
|
rid=resource
|
|
title=@t
|
|
description=@t
|
|
mark=(unit mark)
|
|
=associated
|
|
module=@t
|
|
==
|
|
[%delete rid=resource]
|
|
[%leave rid=resource]
|
|
[%join rid=resource =ship]
|
|
::[%invite rid=resource ships=(set ship)]
|
|
[%groupify rid=resource to=(unit resource)]
|
|
[%forward rid=resource =update:store]
|
|
==
|
|
--
|
|
|