Skip to content

Commit

Permalink
(feat) add gateway assistant, ListChangesBySnapshotUUIDRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
tphoney committed Jul 29, 2024
1 parent b47867e commit dd7c0d2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
11 changes: 11 additions & 0 deletions changes.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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 {}
Expand Down
14 changes: 14 additions & 0 deletions gateway.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -90,6 +91,8 @@ message GatewayResponse {
BookmarkLoadResult bookmarkLoadResult = 16;

QueryStatus queryStatus = 17; // Status of requested queries

ChatMessageResult chatMessageResult = 18;
}
}

Expand Down Expand Up @@ -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;
}

0 comments on commit dd7c0d2

Please sign in to comment.