diff --git a/spatial/wit/wired-dwn/world.wit b/spatial/wit/wired-dwn/world.wit index 43aa68d..be2fa93 100644 --- a/spatial/wit/wired-dwn/world.wit +++ b/spatial/wit/wired-dwn/world.wit @@ -1,9 +1,20 @@ package wired:dwn; world host { + import api; import dwn; } +interface api { + use dwn.{dwn}; + + /// Get the local user's DWN. + user-dwn: func() -> dwn; + + /// Get the local user's default world host DWN. + world-host-dwn: func() -> dwn; +} + interface dwn { use records-query.{records-query-builder}; use records-write.{records-write-builder}; @@ -12,12 +23,6 @@ interface dwn { records-query: func() -> records-query-builder; records-write: func() -> records-write-builder; } - - /// Get the local user's DWN. - local-dwn: func() -> dwn; - - /// Get the local user's default world host DWN. - world-host-dwn: func() -> dwn; } interface types {