urbit/pkg/arvo/sur/graph-view.hoon

48 lines
1.0 KiB
Plaintext
Raw Normal View History

/- *group, store=graph-store
2020-09-02 08:18:07 +03:00
/+ resource
^?
|%
2020-09-03 17:12:12 +03:00
:: $associated: A group to associate, or a policy if it is unmanaged
::
+$ associated
$% [%group rid=resource]
[%policy =policy]
==
::
2020-09-03 08:07:18 +03:00
:: $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
2020-09-02 08:18:07 +03:00
$%
$: %create
rid=resource
title=@t
description=@t
2020-09-15 04:23:13 +03:00
mark=(unit mark)
2020-09-03 17:12:12 +03:00
=associated
module=@t
2020-09-02 08:18:07 +03:00
==
[%delete rid=resource]
[%leave rid=resource]
[%join rid=resource =ship]
2020-09-03 17:12:12 +03:00
::[%invite rid=resource ships=(set ship)]
[%groupify rid=resource to=(unit resource)]
[%forward rid=resource =update:store]
2020-12-11 08:51:29 +03:00
[%eval =cord]
2020-09-02 08:18:07 +03:00
==
--