Skip to content

Commit

Permalink
reword sankey path upload intent decision apis (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
Augustyniak authored Nov 12, 2024
1 parent 2fa7f3f commit 58b0616
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions src/bitdrift_public/protobuf/client/v1/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -428,16 +428,24 @@ message SankeyPathUploadResponse {

// The response to Sankey diagram intent request.
message SankeyIntentResponse {
enum Decision {
// The diagram should be uploaded.
UPLOAD = 0;
// The diagram should be dropped.
DROP = 1;
string intent_uuid = 1 [(validate.rules).string = {min_len: 1}];

reserved 2;
reserved 'decision';

message UploadImmediately {
}

string intent_uuid = 1 [(validate.rules).string = {min_len: 1}];
message Drop {
}

Decision decision = 2;
oneof decision {
// The candidate sankey path should be uploaded immediatly.
UploadImmediately upload_immediately = 3;

// The candidate sankey path should be dropped.
Drop drop = 4;
}
}

// A multiplexed response sent over the bitdrift API.
Expand Down

0 comments on commit 58b0616

Please sign in to comment.