From dd7c0d2de8b7e4731d69a59aa82e69515acf9695 Mon Sep 17 00:00:00 2001 From: TP Honey Date: Fri, 19 Jul 2024 12:44:09 +0100 Subject: [PATCH] (feat) add gateway assistant, ListChangesBySnapshotUUIDRequest --- changes.proto | 11 +++++++++++ gateway.proto | 14 ++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/changes.proto b/changes.proto index c1fe044..02f707c 100644 --- a/changes.proto +++ b/changes.proto @@ -71,6 +71,8 @@ service ChangesService { rpc UpdateChange(UpdateChangeRequest) returns (UpdateChangeResponse); // Deletes a change rpc DeleteChange(DeleteChangeRequest) returns (DeleteChangeResponse); + // Lists all changes for a snapshot UUID + rpc ListChangesBySnaphotUUID(ListChangesBySnapshotUUIDRequest) returns (ListChangesBySnapshotUUIDResponse); // Get the timeline of changes for a given change rpc GetChangeTimeline(GetChangeTimelineRequest) returns (GetChangeTimelineResponse); @@ -777,6 +779,15 @@ message DeleteChangeRequest { bytes UUID = 1; } +// list changes for a snapshot UUID +message ListChangesBySnapshotUUIDRequest { + bytes UUID = 1; +} + +message ListChangesBySnapshotUUIDResponse { + repeated changes.Change changes = 1; +} + message DeleteChangeResponse {} message RefreshStateRequest {} diff --git a/gateway.proto b/gateway.proto index 8df5ae8..d0ea95f 100644 --- a/gateway.proto +++ b/gateway.proto @@ -60,6 +60,7 @@ message GatewayRequest { // CancelLoadBookmark cancelLoadBookmark = ??; // // undo the loading of a Bookmark // UndoLoadBookmark undoLoadBookmark = ??; + ChatMessage chatMessage = 16; } optional google.protobuf.Duration minStatusInterval = 2; // Minimum time between status updates. Setting this value too low can result in too many status messages @@ -90,6 +91,8 @@ message GatewayResponse { BookmarkLoadResult bookmarkLoadResult = 16; QueryStatus queryStatus = 17; // Status of requested queries + + ChatMessageResult chatMessageResult = 18; } } @@ -205,3 +208,14 @@ message SnapshotLoadResult { // a correlation ID to match up requests and responses. this field returns the contents of the request's msgID bytes msgID = 4; } + +message ChatMessage { + // The message to create + string message = 1; +} + +message ChatMessageResult { + bool success = 1; + string errorMessage = 2; + string message = 3; +}