figbus / elm-urbit-api / Urbit.Group


type Policy
    = Invite ({ pending : List Urbit.Encoding.Atom.Atom })
    | Open ({ banRanks : { galaxies : Ban, stars : Ban, planets : Ban, moons : Ban, comets : Ban }, banned : List Urbit.Encoding.Atom.Atom })

Policy for a group.


type Ban
    = Banned
    | Allowed

Banned or allowed.

createSpider : { url : String, name : String, policy : Policy, title : String, description : String } -> (Result Http.Error () -> msg) -> Platform.Cmd.Cmd msg

Create a group via a spider thread.

deleteSpider : { url : String, resource : Urbit.Graph.Resource } -> (Result Http.Error () -> msg) -> Platform.Cmd.Cmd msg

Delete a group via a spider thread.

leaveSpider : { url : String, resource : Urbit.Graph.Resource } -> (Result Http.Error () -> msg) -> Platform.Cmd.Cmd msg

Leave a group via a spider thread.

inviteSpider : { url : String, resource : Urbit.Graph.Resource, ships : List Urbit.Encoding.Atom.Atom, description : String } -> (Result Http.Error () -> msg) -> Platform.Cmd.Cmd msg

Send invites to a group via a spider thread.