urbit/pkg/landscape/sur/notify.hoon

32 lines
621 B
Plaintext
Raw Normal View History

2021-11-30 19:31:46 +03:00
/- hark=hark-store, resource, graph-store
2021-07-23 02:58:13 +03:00
|%
+$ provider-action
$% [%add service=term notify=@t binding=@t auth-token=@t =whitelist]
[%remove service=term]
[%client-join service=term address=@t]
[%client-leave service=term]
==
::
+$ client-action
$% [%connect-provider who=@p service=term address=@t]
[%remove-provider who=@p service=term]
==
::
2021-11-30 19:31:46 +03:00
+$ uid @uvH
::
2021-07-23 02:58:13 +03:00
+$ notification
2021-11-30 19:31:46 +03:00
[=bin:hark =body:hark]
2021-07-23 02:58:13 +03:00
::
+$ whitelist
$: public=?
kids=?
users=(set ship)
groups=(set resource:resource)
==
::
2021-11-30 19:31:46 +03:00
+$ action ?(%notify %dismiss)
::
2021-07-23 02:58:13 +03:00
+$ update
2021-11-30 19:31:46 +03:00
[=uid =action]
2021-07-23 02:58:13 +03:00
--