Dominevo
ReferenceHTTP API

meshNetwork

The meshNetwork router: 6 methods of the mesh-network capability, with tier, scope, input and output.

Capability mesh-network · scope system · mode collection · source packages/types/src/capabilities/mesh-network.cap.ts:177.

Every method is called at /trpc/meshNetwork.<method> — queries with GET, mutations with POST. See How to call and Authorization.

MethodKindTierToken scopeViewer
getStatusqueryprotectedviewno
joinmutationprotectedcreateno
startLoginmutationprotectedcreateno
leavemutationprotectedcreateno
logoutmutationprotectedcreateno
listPeersqueryprotectedviewno

meshNetwork.getStatus

  • Kind: query — GET /trpc/meshNetwork.getStatus
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability mesh-network, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=meshNetwork.getStatus on your hub

Input

void

Output

MeshStatusSchema

Shapes: MeshStatusSchema

meshNetwork.join

  • Kind: mutation — POST /trpc/meshNetwork.join
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability mesh-network, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=meshNetwork.join on your hub

Input

{ authKey: string; hostname?: string }

Output

{ joined: true }

meshNetwork.startLogin

  • Kind: mutation — POST /trpc/meshNetwork.startLogin
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability mesh-network, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=meshNetwork.startLogin on your hub

Input

{ hostname?: string }

Output

{ loginUrl: string }

meshNetwork.leave

  • Kind: mutation — POST /trpc/meshNetwork.leave
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability mesh-network, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=meshNetwork.leave on your hub

Input

void

Output

{ left: true }

meshNetwork.logout

  • Kind: mutation — POST /trpc/meshNetwork.logout
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability mesh-network, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=meshNetwork.logout on your hub

Input

void

Output

{ loggedOut: true }

meshNetwork.listPeers

  • Kind: query — GET /trpc/meshNetwork.listPeers
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability mesh-network, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=meshNetwork.listPeers on your hub

Input

void

Output

{ peers: MeshPeerSchema[] }

Shapes: MeshPeerSchema