mirror of
https://github.com/urbit/shrub.git
synced 2024-12-23 10:52:12 +03:00
41 lines
713 B
Plaintext
41 lines
713 B
Plaintext
/- *chat-hook
|
|
=, dejs:format
|
|
|_ act=chat-hook-action
|
|
++ grab
|
|
|%
|
|
++ noun chat-hook-action
|
|
++ json
|
|
|= jon=^json
|
|
=< (parse-chat-hook-action jon)
|
|
|%
|
|
++ parse-chat-hook-action
|
|
%- of
|
|
:~
|
|
[%add-owned add-owned]
|
|
[%add-synced add-synced]
|
|
[%remove pa]
|
|
==
|
|
::
|
|
++ add-owned
|
|
%- ot
|
|
:~ [%path pa]
|
|
[%security sec]
|
|
[%allow-history bo]
|
|
==
|
|
::
|
|
++ add-synced
|
|
%- ot
|
|
:~ [%ship (su ;~(pfix sig fed:ag))]
|
|
[%path pa]
|
|
[%ask-history bo]
|
|
==
|
|
::
|
|
++ sec
|
|
^- $-(^json rw-security)
|
|
(su (perk %channel %village %journal %mailbox ~))
|
|
::
|
|
--
|
|
--
|
|
--
|
|
|