1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-11 10:18:28 +09:00
anytype-heart/pb/protos/changes.proto
2019-11-01 21:54:12 +01:00

78 lines
No EOL
2 KiB
Protocol Buffer
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

syntax="proto3";
package anytype;
option go_package = "pb";
import "models.proto";
message Change {
message Block {
message Header {
oneof change {
string id = 1;
Model.Block.Header.Type type = 2;
string name = 3;
string icon = 4;
Model.Block.Header.Permissions permissions = 5;
}
}
message Children {
repeated string children = 1;
}
message Content {
message Page {
oneof change {
Model.Block.Content.Page.Style style = 1;
Model.Block block = 2;
}
}
message Dashboard {
oneof change {
Model.Block.Content.Dashboard.Style style = 1;
Model.Block.Header header = 2; // not a dashboard header  one of children
}
}
message Media {
oneof change {
string link = 1;
Model.Block.Content.Media.State state = 2;
}
}
message Text {
oneof change {
string text = 1;
Model.Block.Content.Text.Style style = 2;
Model.Block.Content.Text.Marks marks = 3;
bool toggleable = 4;
Model.Block.Content.Text.MarkerType markerType = 5;
bool checkable = 6;
bool checked = 7;
}
}
}
}
}
message BlocksListSingleChange {
repeated string id = 1;
oneof change {
Change.Block.Content.Text text = 2;
Change.Block.Header blockHeader = 3;
Change.Block.Children blockChildren = 4;
Change.Block.Content.Page page = 5;
Change.Block.Content.Dashboard dashboard = 6;
Change.Block.Content.Media media = 7;
}
}
message BlockChanges {
repeated BlocksListSingleChange changes = 1;
}