pub fn append_backend_event( bundle_root: &Path, tenant: &str, team: &str, provider_id: &str, event: Value, ) -> Result<PathBuf>