mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
parent
5896296f8e
commit
a2ef98d2dd
3 changed files with 103 additions and 17 deletions
|
@ -388,6 +388,35 @@ message Rpc {
|
|||
model.Block.Content.File.Style style = 3;
|
||||
}
|
||||
|
||||
message Response {
|
||||
Error error = 1;
|
||||
ResponseEvent event = 2;
|
||||
|
||||
message Error {
|
||||
Code code = 1;
|
||||
string description = 2;
|
||||
|
||||
enum Code {
|
||||
NULL = 0;
|
||||
UNKNOWN_ERROR = 1;
|
||||
BAD_INPUT = 2;
|
||||
// ...
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
message Link {
|
||||
message Appearance {
|
||||
message Request {
|
||||
string contextId = 1;
|
||||
repeated string blockIds = 2;
|
||||
anytype.model.Block.Content.Link.IconSize iconSize = 4;
|
||||
anytype.model.Block.Content.Link.CardStyle cardStyle = 5;
|
||||
anytype.model.Block.Content.Link.Description description = 6;
|
||||
repeated string relations = 7;
|
||||
}
|
||||
|
||||
message Response {
|
||||
Error error = 1;
|
||||
ResponseEvent event = 2;
|
||||
|
@ -2663,6 +2692,34 @@ message Rpc {
|
|||
}
|
||||
}
|
||||
|
||||
message DeviceState {
|
||||
message Request {
|
||||
DeviceState deviceState = 1;
|
||||
|
||||
enum DeviceState {
|
||||
BACKGROUND = 0;
|
||||
FOREGROUND = 1;
|
||||
}
|
||||
}
|
||||
|
||||
message Response {
|
||||
Error error = 1;
|
||||
|
||||
message Error {
|
||||
Code code = 1;
|
||||
string description = 2;
|
||||
enum Code {
|
||||
NULL = 0;
|
||||
UNKNOWN_ERROR = 1;
|
||||
BAD_INPUT = 2;
|
||||
|
||||
NODE_NOT_STARTED = 101;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
message Config {
|
||||
message Get {
|
||||
message Request {
|
||||
|
@ -3412,19 +3469,7 @@ message Rpc {
|
|||
int32 limit = 2;
|
||||
// additional filter by objectTypes
|
||||
repeated string objectTypeFilter = 3;
|
||||
}
|
||||
|
||||
message Node {
|
||||
string id = 1;
|
||||
string type = 2;
|
||||
string name = 3;
|
||||
int32 layout = 4;
|
||||
string description = 5;
|
||||
string iconImage = 6;
|
||||
string iconEmoji = 7;
|
||||
bool done = 8;
|
||||
int32 relationFormat = 9;
|
||||
string snippet = 10;
|
||||
repeated string keys = 4;
|
||||
}
|
||||
|
||||
message Edge {
|
||||
|
@ -3444,7 +3489,7 @@ message Rpc {
|
|||
|
||||
message Response {
|
||||
Error error = 1;
|
||||
repeated Node nodes = 2;
|
||||
repeated google.protobuf.Struct nodes = 2;
|
||||
repeated Edge edges = 3;
|
||||
|
||||
message Error {
|
||||
|
@ -4210,6 +4255,7 @@ message Rpc {
|
|||
string blockId = 1;
|
||||
string path = 2;
|
||||
bool unanonymized = 3; // set to true to disable mocking of the actual data inside changes
|
||||
bool generateSvg = 4; // set to true to write both ZIP and SVG files
|
||||
}
|
||||
|
||||
message Response {
|
||||
|
|
|
@ -410,6 +410,10 @@ message Event {
|
|||
TargetBlockId targetBlockId = 2;
|
||||
Style style = 3;
|
||||
Fields fields = 4;
|
||||
IconSize iconSize = 5;
|
||||
CardStyle cardStyle = 6;
|
||||
Description description = 7;
|
||||
Relations relations = 8;
|
||||
|
||||
message TargetBlockId {
|
||||
string value = 1;
|
||||
|
@ -423,6 +427,21 @@ message Event {
|
|||
google.protobuf.Struct value = 1;
|
||||
}
|
||||
|
||||
message IconSize {
|
||||
anytype.model.Block.Content.Link.IconSize value = 1;
|
||||
}
|
||||
|
||||
message CardStyle {
|
||||
anytype.model.Block.Content.Link.CardStyle value = 1;
|
||||
}
|
||||
|
||||
message Description {
|
||||
anytype.model.Block.Content.Link.Description value = 1;
|
||||
}
|
||||
|
||||
message Relations {
|
||||
repeated string value = 1;
|
||||
}
|
||||
}
|
||||
|
||||
message Bookmark {
|
||||
|
|
|
@ -125,6 +125,15 @@ message Block {
|
|||
string targetBlockId = 1; // id of the target block
|
||||
Style style = 2; // deprecated
|
||||
google.protobuf.Struct fields = 3;
|
||||
IconSize iconSize = 4;
|
||||
CardStyle cardStyle = 5;
|
||||
Description description = 6;
|
||||
repeated string relations = 7;
|
||||
|
||||
enum IconSize {
|
||||
Small = 0;
|
||||
Medium = 1;
|
||||
}
|
||||
|
||||
enum Style {
|
||||
Page = 0;
|
||||
|
@ -133,6 +142,18 @@ message Block {
|
|||
Archive = 3;
|
||||
// ...
|
||||
}
|
||||
|
||||
enum Description {
|
||||
None = 0;
|
||||
Added = 1;
|
||||
Content = 2;
|
||||
}
|
||||
|
||||
enum CardStyle {
|
||||
Text = 0;
|
||||
Card = 1;
|
||||
Inline = 2;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -207,13 +228,13 @@ message Block {
|
|||
Header4 = 4; // deprecated
|
||||
Quote = 5;
|
||||
Code = 6;
|
||||
Title = 7; // currently only only one block of this style can exists on a page
|
||||
Title = 7; // currently only one block of this style can exists on a page
|
||||
Checkbox = 8;
|
||||
Marked = 9;
|
||||
Numbered = 10;
|
||||
Toggle = 11;
|
||||
Description = 12; // currently only only one block of this style can exists on a page
|
||||
Callout = 13; // currently only only one block of this style can exists on a page
|
||||
Description = 12; // currently only one block of this style can exists on a page
|
||||
Callout = 13;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue