import Base import ./world.bend as W import ./relation_types.bend as T # Descriptor selection belongs to the declaration, not to a queued request. type Operation is Data: Relate{source:W.Handle,target:W.Handle} Unrelate{source:W.Handle} Reorder{parent:W.Handle,children:List<&2,W.Handle>} type Reason is Data: RelationError{error:T.Error} HierarchyRequired{} type Outcome is Data: Applied{graph:T.Graph,operation:Operation} Refused{graph:T.Graph,operation:Operation,reason:Reason}