Dominevo
ReferenceHTTP API

apps

The apps router: 2 methods of the apps capability, with tier, scope, input and output.

Capability apps · scope system · mode singleton · source packages/types/src/capabilities/apps.cap.ts:25.

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

MethodKindTierToken scopeViewer
listAppsqueryprotectedviewyes
getNavBadgesqueryprotectedviewyes

apps.listApps

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

Input

{}

Output

AppInfoSchema[]

Shapes: AppInfoSchema

apps.getNavBadges

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

Input

{ appId: string }

Output

Record<string, AppNavBadgeSchema>

Shapes: AppNavBadgeSchema