From 2c23a794b9f71ca4d4d0cbedfb495f5841df9a04 Mon Sep 17 00:00:00 2001 From: domrichardson <100129001+domrichardson@users.noreply.github.com> Date: Wed, 24 Jun 2026 16:31:51 +0100 Subject: [PATCH] feat: Added package management --- proto/vantage/v1/vantage.proto | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/proto/vantage/v1/vantage.proto b/proto/vantage/v1/vantage.proto index ca6662b..942d730 100644 --- a/proto/vantage/v1/vantage.proto +++ b/proto/vantage/v1/vantage.proto @@ -8,6 +8,7 @@ service Vantage { rpc Register(RegisterRequest) returns (RegisterResponse); rpc SyncKeys(SyncRequest) returns (SyncResponse); rpc UploadGeneratedKey(UploadKeyRequest) returns (UploadKeyResponse); + rpc ReportUpdates(ReportUpdatesRequest) returns (ReportUpdatesResponse); // Bidirectional stream: agent sends auth once, server pushes commands. rpc CommandStream(stream AgentMessage) returns (stream ServerCommand); } @@ -65,12 +66,29 @@ message CommandResult { string message = 3; } +message PackageUpdate { + string name = 1; + string current_version = 2; + string new_version = 3; +} + +message ReportUpdatesRequest { + string server_id = 1; + string agent_token = 2; + repeated PackageUpdate updates = 3; +} + +message ReportUpdatesResponse {} + +message ApplyUpdatesCmd {} + message ServerCommand { string command_id = 1; oneof command { - GenerateKeyCmd generate_key = 2; - DeleteKeyCmd delete_key = 3; - UpdateAgentCmd update_agent = 4; + GenerateKeyCmd generate_key = 2; + DeleteKeyCmd delete_key = 3; + UpdateAgentCmd update_agent = 4; + ApplyUpdatesCmd apply_updates = 5; } }