ReferenceHTTP API
toast
The toast router: 1 method of the toast capability, with tier, scope, input and output.
Capability toast · scope system · mode singleton · source packages/types/src/capabilities/toast.cap.ts:35.
Every method is called at /trpc/toast.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
onToast | subscription | protected | view | no |
toast.onToast
- Kind: subscription —
WebSocket /trpc/toast.onToast - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitytoast, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=toast.onToaston your hub
Input
voidOutput
ToastSchemaShapes: ToastSchema