Dominevo
ReferenceHTTP API

notificationOutput

The notificationOutput router: 5 methods of the notification-output capability, with tier, scope, input and output.

Capability notification-output · scope system · mode collection · source packages/types/src/capabilities/notification-output.cap.ts:478.

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

MethodKindTierToken scopeViewer
listTargetKindsqueryprotectedviewno
discoverTargetsqueryadminadmin onlyno
probeTargetConfigmutationadminadmin onlyno
sendmutationadminadmin onlyno
testTargetmutationadminadmin onlyno

notificationOutput.listTargetKinds

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

Input

{}

Output

TargetKindSchema[]

Shapes: TargetKindSchema

notificationOutput.discoverTargets

  • Kind: query — GET /trpc/notificationOutput.discoverTargets
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=notificationOutput.discoverTargets on your hub

Input

{ kind: string; config?: Record<string, unknown>; targetId?: string }

Output

DiscoveredTargetSchema[]

Shapes: DiscoveredTargetSchema

notificationOutput.probeTargetConfig

  • Kind: mutation — POST /trpc/notificationOutput.probeTargetConfig
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=notificationOutput.probeTargetConfig on your hub

Input

{ kind: string; config: Record<string, unknown>; targetId?: string }

Output

ProbeTargetConfigResultSchema

Shapes: ProbeTargetConfigResultSchema

notificationOutput.send

  • Kind: mutation — POST /trpc/notificationOutput.send
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=notificationOutput.send on your hub

Input

{ targetId: string; notification: NotificationSchema }

Output

SendResultSchema

Shapes: NotificationSchema · SendResultSchema

notificationOutput.testTarget

  • Kind: mutation — POST /trpc/notificationOutput.testTarget
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=notificationOutput.testTarget on your hub

Input

{ targetId: string; sample?: NotificationSchema }

Output

SendResultSchema

Shapes: NotificationSchema · SendResultSchema