Expand description
A task’s REST requests through its agent (M4.11h, the user’s B2): the master runs them through the API’s own router as the task’s identity, on an allow-list of routes, so a task needs no URL or token and reaches nothing else.
Structs§
- ApiJob
- A call checked and ready to run, away from the core’s lock (a request may take a while).
- Task
ApiRequest - A request a task made, as the router gets it.
- Task
ApiResponse - What the router answered.
Enums§
- ApiCall
Plan - What to do with a task’s call: answered already (refused), or to run.
Constants§
- NOTIFICATIONS
- A task’s own notification:
{"channel": ..., "text": ..., "data": ...}, answered 202 once queued. - TASK_
ROUTES - The routes a task may call, by method and path (a query is allowed after it): the events (the user’s, 2026-11-08), whose code is the API’s own, and its own notifications (decision 421), which the master answers itself.
Traits§
- TaskApi
- The API, as the master calls it for tasks: the
schedrbinary gives it the REST router.
Functions§
- allowed
- Whether a task may call
methodonpath(its query aside).