feat: clearEventLog wrapper (v0.7.1)
Picks up the new HubAdmin.ClearEventLog RPC. Exposed as HubClient.clearEventLog(reviewer:, reason:) returning the purged count + active channel for the caller to confirm. Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
parent
4dad51da6d
commit
26d9d1f502
5 changed files with 193 additions and 1 deletions
|
|
@ -53,6 +53,7 @@ typedef HardwareInfoResponse = pb.HardwareInfoResponse;
|
|||
typedef ListSystemAiCuratedModelsResponse =
|
||||
pb.ListSystemAiCuratedModelsResponse;
|
||||
typedef CuratedModel = pb.CuratedModel;
|
||||
typedef ClearEventLogResponse = pb.ClearEventLogResponse;
|
||||
typedef ModuleInfoResponse = pb.ModuleInfoResponse;
|
||||
typedef FlowSummary = pb.FlowSummary;
|
||||
typedef StoreEntry = pb.StoreEntry;
|
||||
|
|
@ -170,6 +171,20 @@ class HubClient {
|
|||
return _admin.verifyEventChain(Empty());
|
||||
}
|
||||
|
||||
/// Wipe every audit event and seed a fresh `chain.reset`
|
||||
/// marker carrying [reviewer] + [reason]. The hub refuses on
|
||||
/// `beta` / `production` channels; on `local` / `dev` it
|
||||
/// returns the count of events that were purged.
|
||||
Future<ClearEventLogResponse> clearEventLog({
|
||||
required String reviewer,
|
||||
required String reason,
|
||||
}) {
|
||||
return _admin.clearEventLog(pb.ClearEventLogRequest(
|
||||
reviewer: reviewer,
|
||||
reason: reason,
|
||||
));
|
||||
}
|
||||
|
||||
/// Host services declared in the operator config. Each entry
|
||||
/// is a name + endpoint + tags; reachability is up to the
|
||||
/// caller (typically a follow-up HTTP probe).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue