Skip to content

Commit

Permalink
Update proto files
Browse files Browse the repository at this point in the history
  • Loading branch information
any-association committed May 24, 2024
1 parent 05cfc23 commit 66575f3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions models.proto
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,22 @@ enum SmartBlockType {
NotificationObject = 0x217;
}

message Search {
message Result {
string objectId = 1;
google.protobuf.Struct details = 2; //
repeated Meta meta = 3; // meta information about the search result
}

message Meta {
string highlight = 1; // truncated text with highlights
repeated Range highlightRanges = 2; // ranges of the highlight in the text (using utf-16 runes)
string blockId = 3; // block id where the highlight has been found
string relationKey = 4; // relation key of the block where the highlight has been found
google.protobuf.Struct relationDetails = 5; // contains details for dependent object. E.g. relation option or type. todo: rename to dependantDetails
}
}

message Block {
string id = 1;
google.protobuf.Struct fields = 2;
Expand Down

0 comments on commit 66575f3

Please sign in to comment.