1 import Base 2 import ./world.bend as W 3 import ./relation_types.bend as T 4 5 # Descriptor selection belongs to the declaration, not to a queued request. 6 type Operation is Data: 7 Relate{source:W.Handle,target:W.Handle} 8 Unrelate{source:W.Handle} 9 Reorder{parent:W.Handle,children:List<&2,W.Handle>} 10 type Reason is Data: 11 RelationError{error:T.Error} 12 HierarchyRequired{} 13 type Outcome is Data: 14 Applied{graph:T.Graph,operation:Operation} 15 Refused{graph:T.Graph,operation:Operation,reason:Reason}