From d274b3f9a556dd07159c5281bd0a92f0b2e24152 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 | 15 +++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/changes.proto b/changes.proto index c1fe044..6b48a18 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 ListChangesBySnapshotUUID(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..b9c84a1 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,15 @@ 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 { + oneof response_type { + string error = 1; + string message = 2; + } +}