feat: regenerate for HubAdmin.CheckUpdate (v0.2.0)
Adds `checkUpdate()` to HubClient and re-exports `CheckUpdateResponse` so callers (Studio Doctor page) can render update + offline states without importing protobuf directly. Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
parent
9249fbe4f5
commit
c5e11395fb
5 changed files with 233 additions and 1 deletions
|
|
@ -41,6 +41,7 @@ typedef LoggedEvent = pb.LoggedEvent;
|
|||
typedef PendingApprovalEntry = pb.PendingApprovalEntry;
|
||||
typedef DeclaredService = pb.DeclaredService;
|
||||
typedef VerifyEventChainResponse = pb.VerifyEventChainResponse;
|
||||
typedef CheckUpdateResponse = pb.CheckUpdateResponse;
|
||||
typedef ModuleInfoResponse = pb.ModuleInfoResponse;
|
||||
typedef FlowSummary = pb.FlowSummary;
|
||||
typedef Payload = pb_common.Payload;
|
||||
|
|
@ -163,6 +164,14 @@ class HubClient {
|
|||
return r.services;
|
||||
}
|
||||
|
||||
/// Compare local hub version vs. release-channel manifest.
|
||||
/// Network failures land in `manifestReachable=false` rather
|
||||
/// than as exceptions — Studio renders that case as a quiet
|
||||
/// "release host unreachable" pill instead of an error.
|
||||
Future<CheckUpdateResponse> checkUpdate() {
|
||||
return _admin.checkUpdate(Empty());
|
||||
}
|
||||
|
||||
/// All saved flows known to the hub. Each entry carries the
|
||||
/// flow name, on-disk path and byte size.
|
||||
Future<List<FlowSummary>> listFlows() async {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue