pub async fn register(
pool: &SqlitePool,
req: ModuleRegisterRequest,
reserved_ids: &[String],
) -> AppResult<(ModuleRegistration, String, String)>Expand description
Register a sidecar: mint its scoped key + webhook subscription and persist the row, atomically. Returns the stored row plus the once-only credentials (plaintext key + webhook secret).