Expand description
Kernel management API request and response types.
These types describe the CLI ↔ daemon RPC surface (admin requests,
status queries, capsule lifecycle ops). They live in astrid-core
because they reference PrincipalId and Quotas from this crate.
Capsule-facing IPC types live in astrid-types (which intentionally
has no dependency on astrid-core — it must compile on
wasm32-unknown-unknown without dragging in the kernel).
Structs§
- Admin
Kernel Request - Admin management API request wrapper carrying an optional client correlation ID and the typed request kind.
- Admin
Kernel Response - Admin management API response wrapper carrying the echoed correlation ID and the typed response body.
- Agent
Summary - Summary of an agent principal returned by
[
AdminKernelRequest::AgentList]. - Capsule
Metadata Entry - Metadata entry for a loaded capsule.
- Command
Info - Information about a registered slash command.
- Daemon
Status - Daemon runtime status information.
- Group
Summary - Summary of a group returned by [
AdminKernelRequest::GroupList]. - Invite
Issued - Response payload for
AdminRequestKind::InviteIssue. - Invite
Redeemed - Response payload for
AdminRequestKind::InviteRedeem. - Invite
Summary - Summary of an outstanding invite returned by
AdminRequestKind::InviteList. - Pair
Token Issued - Response payload for
AdminRequestKind::PairDeviceIssue. - Pair
Token Redeemed - Response payload for
AdminRequestKind::PairDeviceRedeem. - Principal
Connection Count - Per-principal connection count entry on
DaemonStatus. - Resource
Usage - Per-principal resource usage vs configured budget — the payload of
AdminRequestKind::UsageGet, rendered byastrid quota/astrid topandGET /api/sys/principals/{id}/usageso per-principal usage is measurable.
Enums§
- Admin
Request Kind - Typed admin request body — flattened into
AdminKernelRequeston the wire as{ "method": "...", "params": {...} }. - Admin
Response Body - Typed admin response body.
- Kernel
Request - Management API requests directed at the core daemon.
- Kernel
Response - Management API responses from the core daemon.
Constants§
- SYSTEM_
SESSION_ UUID - The well-known system session UUID string used by the background daemon.