1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-09 17:44:59 +09:00
anytype-heart/docs/proto.md
Sergey Cherepanov a30a3b1e7f
merge
2022-02-21 13:59:49 +03:00

416 KiB
Raw Blame History

Protocol Documentation

Table of Contents

Top

pb/protos/service/service.proto

ClientCommands

Method Name Request Type Response Type Description
ObjectAddWithObjectId Rpc.Object.AddWithObjectId.Request Rpc.Object.AddWithObjectId.Response
ObjectShareByLink Rpc.Object.ShareByLink.Request Rpc.Object.ShareByLink.Response
WalletCreate Rpc.Wallet.Create.Request Rpc.Wallet.Create.Response
WalletRecover Rpc.Wallet.Recover.Request Rpc.Wallet.Recover.Response
WalletConvert Rpc.Wallet.Convert.Request Rpc.Wallet.Convert.Response
WorkspaceCreate Rpc.Workspace.Create.Request Rpc.Workspace.Create.Response
WorkspaceSelect Rpc.Workspace.Select.Request Rpc.Workspace.Select.Response
WorkspaceGetCurrent Rpc.Workspace.GetCurrent.Request Rpc.Workspace.GetCurrent.Response
WorkspaceGetAll Rpc.Workspace.GetAll.Request Rpc.Workspace.GetAll.Response
WorkspaceSetIsHighlighted Rpc.Workspace.SetIsHighlighted.Request Rpc.Workspace.SetIsHighlighted.Response
AccountRecover Rpc.Account.Recover.Request Rpc.Account.Recover.Response
AccountCreate Rpc.Account.Create.Request Rpc.Account.Create.Response
AccountSelect Rpc.Account.Select.Request Rpc.Account.Select.Response
AccountStop Rpc.Account.Stop.Request Rpc.Account.Stop.Response
FileOffload Rpc.File.Offload.Request Rpc.File.Offload.Response
FileListOffload Rpc.FileList.Offload.Request Rpc.FileList.Offload.Response
VersionGet Rpc.Version.Get.Request Rpc.Version.Get.Response
LogSend Rpc.Log.Send.Request Rpc.Log.Send.Response
ConfigGet Rpc.Config.Get.Request Rpc.Config.Get.Response
Shutdown Rpc.Shutdown.Request Rpc.Shutdown.Response
ExternalDropFiles Rpc.ExternalDrop.Files.Request Rpc.ExternalDrop.Files.Response
ExternalDropContent Rpc.ExternalDrop.Content.Request Rpc.ExternalDrop.Content.Response
LinkPreview Rpc.LinkPreview.Request Rpc.LinkPreview.Response
UploadFile Rpc.UploadFile.Request Rpc.UploadFile.Response
DownloadFile Rpc.DownloadFile.Request Rpc.DownloadFile.Response
BlockUpload Rpc.Block.Upload.Request Rpc.Block.Upload.Response
BlockReplace Rpc.Block.Replace.Request Rpc.Block.Replace.Response
BlockUpdateContent Rpc.Block.UpdateContent.Request Rpc.Block.UpdateContent.Response BlockUpdateContent allows to update any simple block content to the new value of the same type
BlockOpen Rpc.Block.Open.Request Rpc.Block.Open.Response
BlockShow Rpc.Block.Show.Request Rpc.Block.Show.Response
BlockGetPublicWebURL Rpc.Block.GetPublicWebURL.Request Rpc.Block.GetPublicWebURL.Response
BlockOpenBreadcrumbs Rpc.Block.OpenBreadcrumbs.Request Rpc.Block.OpenBreadcrumbs.Response
BlockSetBreadcrumbs Rpc.Block.SetBreadcrumbs.Request Rpc.Block.SetBreadcrumbs.Response
BlockCreate Rpc.Block.Create.Request Rpc.Block.Create.Response
BlockCreatePage Rpc.Block.CreatePage.Request Rpc.Block.CreatePage.Response
BlockCreateSet Rpc.Block.CreateSet.Request Rpc.Block.CreateSet.Response
BlockUnlink Rpc.Block.Unlink.Request Rpc.Block.Unlink.Response
BlockClose Rpc.Block.Close.Request Rpc.Block.Close.Response
BlockDownload Rpc.Block.Download.Request Rpc.Block.Download.Response
BlockGetMarks Rpc.Block.Get.Marks.Request Rpc.Block.Get.Marks.Response
BlockUndo Rpc.Block.Undo.Request Rpc.Block.Undo.Response
BlockRedo Rpc.Block.Redo.Request Rpc.Block.Redo.Response
BlockSetFields Rpc.Block.Set.Fields.Request Rpc.Block.Set.Fields.Response
BlockSetRestrictions Rpc.Block.Set.Restrictions.Request Rpc.Block.Set.Restrictions.Response
BlockListMove Rpc.BlockList.Move.Request Rpc.BlockList.Move.Response
BlockListMoveToNewPage Rpc.BlockList.MoveToNewPage.Request Rpc.BlockList.MoveToNewPage.Response
BlockListConvertChildrenToPages Rpc.BlockList.ConvertChildrenToPages.Request Rpc.BlockList.ConvertChildrenToPages.Response
BlockListSetFields Rpc.BlockList.Set.Fields.Request Rpc.BlockList.Set.Fields.Response
BlockListSetTextStyle Rpc.BlockList.Set.Text.Style.Request Rpc.BlockList.Set.Text.Style.Response
BlockListDuplicate Rpc.BlockList.Duplicate.Request Rpc.BlockList.Duplicate.Response
BlockListSetBackgroundColor Rpc.BlockList.Set.BackgroundColor.Request Rpc.BlockList.Set.BackgroundColor.Response
BlockListSetAlign Rpc.BlockList.Set.Align.Request Rpc.BlockList.Set.Align.Response
BlockListSetDivStyle Rpc.BlockList.Set.Div.Style.Request Rpc.BlockList.Set.Div.Style.Response
BlockListSetFileStyle Rpc.BlockList.Set.File.Style.Request Rpc.BlockList.Set.File.Style.Response
BlockListTurnInto Rpc.BlockList.TurnInto.Request Rpc.BlockList.TurnInto.Response
BlockSetLatexText Rpc.Block.Set.Latex.Text.Request Rpc.Block.Set.Latex.Text.Response
BlockSetTextText Rpc.Block.Set.Text.Text.Request Rpc.Block.Set.Text.Text.Response
BlockSetTextColor Rpc.Block.Set.Text.Color.Request Rpc.Block.Set.Text.Color.Response
BlockListSetTextColor Rpc.BlockList.Set.Text.Color.Request Rpc.BlockList.Set.Text.Color.Response
BlockListSetTextMark Rpc.BlockList.Set.Text.Mark.Request Rpc.BlockList.Set.Text.Mark.Response
BlockSetTextStyle Rpc.Block.Set.Text.Style.Request Rpc.Block.Set.Text.Style.Response
BlockSetTextChecked Rpc.Block.Set.Text.Checked.Request Rpc.Block.Set.Text.Checked.Response
BlockSetTextIcon Rpc.Block.Set.Text.Icon.Request Rpc.Block.Set.Text.Icon.Response
BlockSplit Rpc.Block.Split.Request Rpc.Block.Split.Response
BlockMerge Rpc.Block.Merge.Request Rpc.Block.Merge.Response
BlockCopy Rpc.Block.Copy.Request Rpc.Block.Copy.Response
BlockPaste Rpc.Block.Paste.Request Rpc.Block.Paste.Response
BlockCut Rpc.Block.Cut.Request Rpc.Block.Cut.Response
BlockExport Rpc.Block.Export.Request Rpc.Block.Export.Response
BlockImportMarkdown Rpc.Block.ImportMarkdown.Request Rpc.Block.ImportMarkdown.Response
BlockSetFileName Rpc.Block.Set.File.Name.Request Rpc.Block.Set.File.Name.Response
BlockSetImageName Rpc.Block.Set.Image.Name.Request Rpc.Block.Set.Image.Name.Response
BlockSetImageWidth Rpc.Block.Set.Image.Width.Request Rpc.Block.Set.Image.Width.Response
BlockSetVideoName Rpc.Block.Set.Video.Name.Request Rpc.Block.Set.Video.Name.Response
BlockSetVideoWidth Rpc.Block.Set.Video.Width.Request Rpc.Block.Set.Video.Width.Response
BlockSetLinkTargetBlockId Rpc.Block.Set.Link.TargetBlockId.Request Rpc.Block.Set.Link.TargetBlockId.Response
BlockBookmarkFetch Rpc.Block.Bookmark.Fetch.Request Rpc.Block.Bookmark.Fetch.Response
BlockBookmarkCreateAndFetch Rpc.Block.Bookmark.CreateAndFetch.Request Rpc.Block.Bookmark.CreateAndFetch.Response
BlockFileCreateAndUpload Rpc.Block.File.CreateAndUpload.Request Rpc.Block.File.CreateAndUpload.Response
BlockRelationSetKey Rpc.Block.Relation.SetKey.Request Rpc.Block.Relation.SetKey.Response
BlockRelationAdd Rpc.Block.Relation.Add.Request Rpc.Block.Relation.Add.Response
BlockDataviewViewCreate Rpc.Block.Dataview.ViewCreate.Request Rpc.Block.Dataview.ViewCreate.Response ## Dataview # View
BlockDataviewViewDelete Rpc.Block.Dataview.ViewDelete.Request Rpc.Block.Dataview.ViewDelete.Response
BlockDataviewViewUpdate Rpc.Block.Dataview.ViewUpdate.Request Rpc.Block.Dataview.ViewUpdate.Response
BlockDataviewViewSetActive Rpc.Block.Dataview.ViewSetActive.Request Rpc.Block.Dataview.ViewSetActive.Response
BlockDataviewViewSetPosition Rpc.Block.Dataview.ViewSetPosition.Request Rpc.Block.Dataview.ViewSetPosition.Response
BlockDataviewSetSource Rpc.Block.Dataview.SetSource.Request Rpc.Block.Dataview.SetSource.Response
BlockDataviewRelationAdd Rpc.Block.Dataview.RelationAdd.Request Rpc.Block.Dataview.RelationAdd.Response # Relation
BlockDataviewRelationUpdate Rpc.Block.Dataview.RelationUpdate.Request Rpc.Block.Dataview.RelationUpdate.Response
BlockDataviewRelationDelete Rpc.Block.Dataview.RelationDelete.Request Rpc.Block.Dataview.RelationDelete.Response
BlockDataviewRelationListAvailable Rpc.Block.Dataview.RelationListAvailable.Request Rpc.Block.Dataview.RelationListAvailable.Response
BlockDataviewRecordCreate Rpc.Block.Dataview.RecordCreate.Request Rpc.Block.Dataview.RecordCreate.Response # Record
BlockDataviewRecordRelationOptionAdd Rpc.Block.Dataview.RecordRelationOptionAdd.Request Rpc.Block.Dataview.RecordRelationOptionAdd.Response
BlockDataviewRecordRelationOptionUpdate Rpc.Block.Dataview.RecordRelationOptionUpdate.Request Rpc.Block.Dataview.RecordRelationOptionUpdate.Response
BlockDataviewRecordRelationOptionDelete Rpc.Block.Dataview.RecordRelationOptionDelete.Request Rpc.Block.Dataview.RecordRelationOptionDelete.Response
BlockObjectTypeSet Rpc.Block.ObjectType.Set.Request Rpc.Block.ObjectType.Set.Response ## Object's relations set an existing object type to the object so it will appear in sets and suggests relations from this type TODO: rename BlockObjectTypeSet -> ObjectObjectTypeSet
NavigationListObjects Rpc.Navigation.ListObjects.Request Rpc.Navigation.ListObjects.Response
NavigationGetObjectInfoWithLinks Rpc.Navigation.GetObjectInfoWithLinks.Request Rpc.Navigation.GetObjectInfoWithLinks.Response
ObjectGraph Rpc.Object.Graph.Request Rpc.Object.Graph.Response
ObjectSearch Rpc.Object.Search.Request Rpc.Object.Search.Response
ObjectSearchSubscribe Rpc.Object.SearchSubscribe.Request Rpc.Object.SearchSubscribe.Response
ObjectIdsSubscribe Rpc.Object.IdsSubscribe.Request Rpc.Object.IdsSubscribe.Response
ObjectSearchUnsubscribe Rpc.Object.SearchUnsubscribe.Request Rpc.Object.SearchUnsubscribe.Response
ObjectRelationAdd Rpc.Object.RelationAdd.Request Rpc.Object.RelationAdd.Response
ObjectRelationUpdate Rpc.Object.RelationUpdate.Request Rpc.Object.RelationUpdate.Response
ObjectRelationDelete Rpc.Object.RelationDelete.Request Rpc.Object.RelationDelete.Response
ObjectRelationOptionAdd Rpc.Object.RelationOptionAdd.Request Rpc.Object.RelationOptionAdd.Response
ObjectRelationOptionUpdate Rpc.Object.RelationOptionUpdate.Request Rpc.Object.RelationOptionUpdate.Response
ObjectRelationOptionDelete Rpc.Object.RelationOptionDelete.Request Rpc.Object.RelationOptionDelete.Response
ObjectRelationListAvailable Rpc.Object.RelationListAvailable.Request Rpc.Object.RelationListAvailable.Response
ObjectSetLayout Rpc.Object.SetLayout.Request Rpc.Object.SetLayout.Response
ObjectFeaturedRelationAdd Rpc.Object.FeaturedRelation.Add.Request Rpc.Object.FeaturedRelation.Add.Response
ObjectFeaturedRelationRemove Rpc.Object.FeaturedRelation.Remove.Request Rpc.Object.FeaturedRelation.Remove.Response
ObjectSetIsFavorite Rpc.Object.SetIsFavorite.Request Rpc.Object.SetIsFavorite.Response
ObjectSetIsArchived Rpc.Object.SetIsArchived.Request Rpc.Object.SetIsArchived.Response
ObjectToSet Rpc.Object.ToSet.Request Rpc.Object.ToSet.Response ObjectToSet creates new set from given object and removes object
ObjectListDelete Rpc.ObjectList.Delete.Request Rpc.ObjectList.Delete.Response
ObjectListSetIsArchived Rpc.ObjectList.Set.IsArchived.Request Rpc.ObjectList.Set.IsArchived.Response
ObjectListSetIsFavorite Rpc.ObjectList.Set.IsFavorite.Request Rpc.ObjectList.Set.IsFavorite.Response
BlockSetDetails Rpc.Block.Set.Details.Request Rpc.Block.Set.Details.Response TODO: rename BlockSetDetails -> ObjectSetDetails
PageCreate Rpc.Page.Create.Request Rpc.Page.Create.Response PageCreate just creates the new page, without adding the link to it from some other page TODO: rename PageCreate -> ObjectCreate
SetCreate Rpc.Set.Create.Request Rpc.Set.Create.Response SetCreate just creates the new set, without adding the link to it from some other page
MetricsSetParameters Rpc.Metrics.SetParameters.Request Rpc.Metrics.SetParameters.Response
ObjectTypeCreate Rpc.ObjectType.Create.Request Rpc.ObjectType.Create.Response ## ObjectType
ObjectTypeList Rpc.ObjectType.List.Request Rpc.ObjectType.List.Response ObjectTypeList lists all object types both bundled and created by user
ObjectTypeRelationList Rpc.ObjectType.Relation.List.Request Rpc.ObjectType.Relation.List.Response
ObjectTypeRelationAdd Rpc.ObjectType.Relation.Add.Request Rpc.ObjectType.Relation.Add.Response
ObjectTypeRelationUpdate Rpc.ObjectType.Relation.Update.Request Rpc.ObjectType.Relation.Update.Response
ObjectTypeRelationRemove Rpc.ObjectType.Relation.Remove.Request Rpc.ObjectType.Relation.Remove.Response
Ping Rpc.Ping.Request Rpc.Ping.Response
ProcessCancel Rpc.Process.Cancel.Request Rpc.Process.Cancel.Response
HistoryShow Rpc.History.Show.Request Rpc.History.Show.Response
HistoryVersions Rpc.History.Versions.Request Rpc.History.Versions.Response
HistorySetVersion Rpc.History.SetVersion.Request Rpc.History.SetVersion.Response
Export Rpc.Export.Request Rpc.Export.Response
ExportWorkspace Rpc.ExportWorkspace.Request Rpc.ExportWorkspace.Response
ExportTemplates Rpc.ExportTemplates.Request Rpc.ExportTemplates.Response
ExportLocalstore Rpc.ExportLocalstore.Request Rpc.ExportLocalstore.Response
MakeTemplate Rpc.MakeTemplate.Request Rpc.MakeTemplate.Response
MakeTemplateByObjectType Rpc.MakeTemplateByObjectType.Request Rpc.MakeTemplateByObjectType.Response
CloneTemplate Rpc.CloneTemplate.Request Rpc.CloneTemplate.Response
ObjectDuplicate Rpc.ObjectDuplicate.Request Rpc.ObjectDuplicate.Response
UnsplashSearch Rpc.UnsplashSearch.Request Rpc.UnsplashSearch.Response
UnsplashDownload Rpc.UnsplashDownload.Request Rpc.UnsplashDownload.Response UnsplashDownload downloads picture from unsplash by ID, put it to the IPFS and returns the hash. The artist info is available in the object details
ApplyTemplate Rpc.ApplyTemplate.Request Rpc.ApplyTemplate.Response
DebugSync Rpc.Debug.Sync.Request Rpc.Debug.Sync.Response
DebugThread Rpc.Debug.Thread.Request Rpc.Debug.Thread.Response
DebugTree Rpc.Debug.Tree.Request Rpc.Debug.Tree.Response
ListenEvents Empty Event stream used only for lib-server via grpc

Top

pb/protos/changes.proto

Change

the element of change tree used to store and internal apply smartBlock history

Field Type Label Description
previous_ids string repeated ids of previous changes
last_snapshot_id string id of the last snapshot
previous_meta_ids string repeated ids of the last changes with details/relations content
content Change.Content repeated set of actions to apply
snapshot Change.Snapshot snapshot - when not null, the Content will be ignored
fileKeys Change.FileKeys repeated file keys related to changes content
timestamp int64 creation timestamp

Change.BlockCreate

Field Type Label Description
targetId string
position model.Block.Position
blocks model.Block repeated

Change.BlockDuplicate

Field Type Label Description
targetId string
position model.Block.Position
ids string repeated

Change.BlockMove

Field Type Label Description
targetId string
position model.Block.Position
ids string repeated

Change.BlockRemove

Field Type Label Description
ids string repeated

Change.BlockUpdate

Field Type Label Description
events Event.Message repeated

Change.Content

Field Type Label Description
blockCreate Change.BlockCreate
blockUpdate Change.BlockUpdate
blockRemove Change.BlockRemove
blockMove Change.BlockMove
blockDuplicate Change.BlockDuplicate
detailsSet Change.DetailsSet
detailsUnset Change.DetailsUnset
relationAdd Change.RelationAdd
relationRemove Change.RelationRemove
relationUpdate Change.RelationUpdate
objectTypeAdd Change.ObjectTypeAdd
objectTypeRemove Change.ObjectTypeRemove
storeKeySet Change.StoreKeySet
storeKeyUnset Change.StoreKeyUnset

Change.DetailsSet

Field Type Label Description
key string
value google.protobuf.Value

Change.DetailsUnset

Field Type Label Description
key string

Change.FileKeys

Field Type Label Description
hash string
keys Change.FileKeys.KeysEntry repeated

Change.FileKeys.KeysEntry

Field Type Label Description
key string
value string

Change.ObjectTypeAdd

Field Type Label Description
url string

Change.ObjectTypeRemove

Field Type Label Description
url string

Change.RelationAdd

Field Type Label Description
relation model.Relation

Change.RelationRemove

Field Type Label Description
key string

Change.RelationUpdate

Field Type Label Description
key string
format model.RelationFormat
name string
defaultValue google.protobuf.Value
objectTypes Change.RelationUpdate.ObjectTypes
multi bool
selectDict Change.RelationUpdate.Dict

Change.RelationUpdate.Dict

Field Type Label Description
dict model.Relation.Option repeated

Change.RelationUpdate.ObjectTypes

Field Type Label Description
objectTypes string repeated

Change.Snapshot

Field Type Label Description
logHeads Change.Snapshot.LogHeadsEntry repeated logId -> lastChangeId
data model.SmartBlockSnapshotBase snapshot data
fileKeys Change.FileKeys repeated all file keys related to doc

Change.Snapshot.LogHeadsEntry

Field Type Label Description
key string
value string

Change.StoreKeySet

Field Type Label Description
path string repeated
value google.protobuf.Value

Change.StoreKeyUnset

Field Type Label Description
path string repeated

Top

pb/protos/commands.proto

Empty

Rpc

Rpc is a namespace, that agregates all of the service commands between client and middleware. Structure: Topic > Subtopic > Subsub... > Action > (Request, Response). Request message from a client. Response message from a middleware.

Rpc.Account

Namespace, that agregates subtopics and actions, that relates to account.

Rpc.Account.Config

Field Type Label Description
enableDataview bool
enableDebug bool
enableReleaseChannelSwitch bool
enableSpaces bool
extra google.protobuf.Struct

Rpc.Account.Create

Rpc.Account.Create.Request

Front end to middleware request-to-create-an account

Field Type Label Description
name string Account name
avatarLocalPath string Path to an image, that will be used as an avatar of this account
alphaInviteCode string

Rpc.Account.Create.Response

Middleware-to-front-end response for an account creation request, that can contain a NULL error and created account or a non-NULL error and an empty account

Field Type Label Description
error Rpc.Account.Create.Response.Error Error while trying to create an account
account model.Account A newly created account; In case of a failure, i.e. error is non-NULL, the account model should contain empty/default-value fields
config Rpc.Account.Config

Rpc.Account.Create.Response.Error

Field Type Label Description
code Rpc.Account.Create.Response.Error.Code
description string

Rpc.Account.Recover

Rpc.Account.Recover.Request

Front end to middleware request-to-start-search of an accounts for a recovered mnemonic. Each of an account that would be found will come with an AccountAdd event

Rpc.Account.Recover.Response

Middleware-to-front-end response to an account recover request, that can contain a NULL error and created account or a non-NULL error and an empty account

Field Type Label Description
error Rpc.Account.Recover.Response.Error Error while trying to recover an account

Rpc.Account.Recover.Response.Error

Field Type Label Description
code Rpc.Account.Recover.Response.Error.Code
description string

Rpc.Account.Select

Rpc.Account.Select.Request

Front end to middleware request-to-launch-a specific account using account id and a root path User can select an account from those, that came with an AccountAdd events

Field Type Label Description
id string Id of a selected account
rootPath string Root path is optional, set if this is a first request

Rpc.Account.Select.Response

Middleware-to-front-end response for an account select request, that can contain a NULL error and selected account or a non-NULL error and an empty account

Field Type Label Description
error Rpc.Account.Select.Response.Error Error while trying to launch/select an account
account model.Account Selected account
config Rpc.Account.Config

Rpc.Account.Select.Response.Error

Field Type Label Description
code Rpc.Account.Select.Response.Error.Code
description string

Rpc.Account.Stop

Rpc.Account.Stop.Request

Front end to middleware request to stop currently running account node and optionally remove the locally stored data

Field Type Label Description
removeData bool

Rpc.Account.Stop.Response

Middleware-to-front-end response for an account stop request

Field Type Label Description
error Rpc.Account.Stop.Response.Error Error while trying to launch/select an account

Rpc.Account.Stop.Response.Error

Field Type Label Description
code Rpc.Account.Stop.Response.Error.Code
description string

Rpc.ApplyTemplate

Rpc.ApplyTemplate.Request

Field Type Label Description
contextId string
templateId string id of template

Rpc.ApplyTemplate.Response

Field Type Label Description
error Rpc.ApplyTemplate.Response.Error

Rpc.ApplyTemplate.Response.Error

Field Type Label Description
code Rpc.ApplyTemplate.Response.Error.Code
description string

Rpc.Block

Namespace, that agregates subtopics and actions, that relates to blocks.

Rpc.Block.Bookmark

Rpc.Block.Bookmark.CreateAndFetch

Rpc.Block.Bookmark.CreateAndFetch.Request

Field Type Label Description
contextId string
targetId string
position model.Block.Position
url string

Rpc.Block.Bookmark.CreateAndFetch.Response

Field Type Label Description
error Rpc.Block.Bookmark.CreateAndFetch.Response.Error
blockId string
event ResponseEvent

Rpc.Block.Bookmark.CreateAndFetch.Response.Error

Field Type Label Description
code Rpc.Block.Bookmark.CreateAndFetch.Response.Error.Code
description string

Rpc.Block.Bookmark.Fetch

Rpc.Block.Bookmark.Fetch.Request

Field Type Label Description
contextId string
blockId string
url string

Rpc.Block.Bookmark.Fetch.Response

Field Type Label Description
error Rpc.Block.Bookmark.Fetch.Response.Error
event ResponseEvent

Rpc.Block.Bookmark.Fetch.Response.Error

Field Type Label Description
code Rpc.Block.Bookmark.Fetch.Response.Error.Code
description string

Rpc.Block.Close

Block.Close it means unsubscribe from a block. Precondition: block should be opened.

Rpc.Block.Close.Request

Field Type Label Description
contextId string id of the context blo1k
blockId string

Rpc.Block.Close.Response

Field Type Label Description
error Rpc.Block.Close.Response.Error

Rpc.Block.Close.Response.Error

Field Type Label Description
code Rpc.Block.Close.Response.Error.Code
description string

Rpc.Block.Copy

Rpc.Block.Copy.Request

Field Type Label Description
contextId string
blocks model.Block repeated
selectedTextRange model.Range

Rpc.Block.Copy.Response

Field Type Label Description
error Rpc.Block.Copy.Response.Error
textSlot string
htmlSlot string
anySlot model.Block repeated

Rpc.Block.Copy.Response.Error

Field Type Label Description
code Rpc.Block.Copy.Response.Error.Code
description string

Rpc.Block.Create

Create a Smart/Internal block. Request can contain a block with a content, or it can be an empty block with a specific block.content. Example scenario 1A. Create Page on a dashboard 1. Front -> MW: Rpc.Block.Create.Request(blockId:dashboard.id, position:bottom, block: emtpy block with page content and id = "") 2. Front -> MW: Rpc.Block.Close.Request(block: dashboard.id) 3. Front <- MW: Rpc.Block.Close.Response(err) 4. Front <- MW: Rpc.Block.Create.Response(page.id) 5. Front <- MW: Rpc.Block.Open.Response(err) 6. Front <- MW: Event.Block.Show(page) 1B. Create Page on a Page 1. Front -> MW: Rpc.Block.Create.Request(blockId:dashboard.id, position:bottom, block: emtpy block with page content and id = "") 2. Front <- MW: Rpc.Block.Create.Response(newPage.id) 3. Front <- MW: Event.Block.Show(newPage)

Rpc.Block.Create.Request

common simple block command

Field Type Label Description
contextId string id of the context block
targetId string id of the closest block
block model.Block
position model.Block.Position

Rpc.Block.Create.Response

Field Type Label Description
error Rpc.Block.Create.Response.Error
blockId string
event ResponseEvent

Rpc.Block.Create.Response.Error

Field Type Label Description
code Rpc.Block.Create.Response.Error.Code
description string

Rpc.Block.CreatePage

Rpc.Block.CreatePage.Request

Field Type Label Description
contextId string id of the context block
details google.protobuf.Struct new page details
templateId string optional template id for creating from template
targetId string link block params

id of the closest simple block | | position | model.Block.Position | | | | fields | google.protobuf.Struct | | link block fields |

Rpc.Block.CreatePage.Response

Field Type Label Description
error Rpc.Block.CreatePage.Response.Error
blockId string
targetId string
event ResponseEvent

Rpc.Block.CreatePage.Response.Error

Field Type Label Description
code Rpc.Block.CreatePage.Response.Error.Code
description string

Rpc.Block.CreateSet

Rpc.Block.CreateSet.Request

Field Type Label Description
contextId string id of the context block
targetId string id of the closest block
source string repeated
details google.protobuf.Struct details
position model.Block.Position

Rpc.Block.CreateSet.Response

Field Type Label Description
error Rpc.Block.CreateSet.Response.Error
blockId string (optional) id of the link block pointing to this set
targetId string id of the new set
event ResponseEvent

Rpc.Block.CreateSet.Response.Error

Field Type Label Description
code Rpc.Block.CreateSet.Response.Error.Code
description string

Rpc.Block.Cut

Rpc.Block.Cut.Request

Field Type Label Description
contextId string
blocks model.Block repeated
selectedTextRange model.Range

Rpc.Block.Cut.Response

Field Type Label Description
error Rpc.Block.Cut.Response.Error
textSlot string
htmlSlot string
anySlot model.Block repeated
event ResponseEvent

Rpc.Block.Cut.Response.Error

Field Type Label Description
code Rpc.Block.Cut.Response.Error.Code
description string

Rpc.Block.Dataview

Rpc.Block.Dataview.RecordCreate

Rpc.Block.Dataview.RecordCreate.Request

Field Type Label Description
contextId string
blockId string
record google.protobuf.Struct
templateId string

Rpc.Block.Dataview.RecordCreate.Response

Field Type Label Description
error Rpc.Block.Dataview.RecordCreate.Response.Error
record google.protobuf.Struct

Rpc.Block.Dataview.RecordCreate.Response.Error

Field Type Label Description
code Rpc.Block.Dataview.RecordCreate.Response.Error.Code
description string

Rpc.Block.Dataview.RecordDelete

Rpc.Block.Dataview.RecordDelete.Request

Field Type Label Description
contextId string
blockId string
recordId string

Rpc.Block.Dataview.RecordDelete.Response

Field Type Label Description
error Rpc.Block.Dataview.RecordDelete.Response.Error
event ResponseEvent

Rpc.Block.Dataview.RecordDelete.Response.Error

Field Type Label Description
code Rpc.Block.Dataview.RecordDelete.Response.Error.Code
description string

Rpc.Block.Dataview.RecordRelationOptionAdd

RecordRelationOptionAdd may return existing option in case object specified with recordId already have the option with the same name or ID

Rpc.Block.Dataview.RecordRelationOptionAdd.Request

Field Type Label Description
contextId string
blockId string id of dataview block to add relation
relationKey string relation key to add the option
option model.Relation.Option id of select options will be autogenerated
recordId string id of record which is used to add an option

Rpc.Block.Dataview.RecordRelationOptionAdd.Response

Field Type Label Description
error Rpc.Block.Dataview.RecordRelationOptionAdd.Response.Error
event ResponseEvent
option model.Relation.Option

Rpc.Block.Dataview.RecordRelationOptionAdd.Response.Error

Field Type Label Description
code Rpc.Block.Dataview.RecordRelationOptionAdd.Response.Error.Code
description string

Rpc.Block.Dataview.RecordRelationOptionDelete

Rpc.Block.Dataview.RecordRelationOptionDelete.Request

Field Type Label Description
contextId string
blockId string id of dataview block to add relation
relationKey string relation key to add the option
optionId string id of select options to remove
recordId string id of record which is used to delete an option

Rpc.Block.Dataview.RecordRelationOptionDelete.Response

Field Type Label Description
error Rpc.Block.Dataview.RecordRelationOptionDelete.Response.Error
event ResponseEvent

Rpc.Block.Dataview.RecordRelationOptionDelete.Response.Error

Field Type Label Description
code Rpc.Block.Dataview.RecordRelationOptionDelete.Response.Error.Code
description string

Rpc.Block.Dataview.RecordRelationOptionUpdate

Rpc.Block.Dataview.RecordRelationOptionUpdate.Request

Field Type Label Description
contextId string
blockId string id of dataview block to add relation
relationKey string relation key to add the option
option model.Relation.Option id of select options will be autogenerated
recordId string id of record which is used to update an option

Rpc.Block.Dataview.RecordRelationOptionUpdate.Response

Field Type Label Description
error Rpc.Block.Dataview.RecordRelationOptionUpdate.Response.Error
event ResponseEvent

Rpc.Block.Dataview.RecordRelationOptionUpdate.Response.Error

Field Type Label Description
code Rpc.Block.Dataview.RecordRelationOptionUpdate.Response.Error.Code
description string

Rpc.Block.Dataview.RecordUpdate

Rpc.Block.Dataview.RecordUpdate.Request

Field Type Label Description
contextId string
blockId string
recordId string
record google.protobuf.Struct

Rpc.Block.Dataview.RecordUpdate.Response

Field Type Label Description
error Rpc.Block.Dataview.RecordUpdate.Response.Error

Rpc.Block.Dataview.RecordUpdate.Response.Error

Field Type Label Description
code Rpc.Block.Dataview.RecordUpdate.Response.Error.Code
description string

Rpc.Block.Dataview.RelationAdd

Rpc.Block.Dataview.RelationAdd.Request

Field Type Label Description
contextId string
blockId string id of dataview block to add relation
relation model.Relation

Rpc.Block.Dataview.RelationAdd.Response

Field Type Label Description
error Rpc.Block.Dataview.RelationAdd.Response.Error
event ResponseEvent
relationKey string deprecated
relation model.Relation

Rpc.Block.Dataview.RelationAdd.Response.Error

Field Type Label Description
code Rpc.Block.Dataview.RelationAdd.Response.Error.Code
description string

Rpc.Block.Dataview.RelationDelete

Rpc.Block.Dataview.RelationDelete.Request

Field Type Label Description
contextId string
blockId string id of dataview block to add relation
relationKey string

Rpc.Block.Dataview.RelationDelete.Response

Field Type Label Description
error Rpc.Block.Dataview.RelationDelete.Response.Error
event ResponseEvent

Rpc.Block.Dataview.RelationDelete.Response.Error

Field Type Label Description
code Rpc.Block.Dataview.RelationDelete.Response.Error.Code
description string

Rpc.Block.Dataview.RelationListAvailable

Rpc.Block.Dataview.RelationListAvailable.Request

Field Type Label Description
contextId string
blockId string

Rpc.Block.Dataview.RelationListAvailable.Response

Field Type Label Description
error Rpc.Block.Dataview.RelationListAvailable.Response.Error
relations model.Relation repeated

Rpc.Block.Dataview.RelationListAvailable.Response.Error

Field Type Label Description
code Rpc.Block.Dataview.RelationListAvailable.Response.Error.Code
description string

Rpc.Block.Dataview.RelationUpdate

Rpc.Block.Dataview.RelationUpdate.Request

Field Type Label Description
contextId string
blockId string id of dataview block to add relation
relationKey string key of relation to update
relation model.Relation

Rpc.Block.Dataview.RelationUpdate.Response

Field Type Label Description
error Rpc.Block.Dataview.RelationUpdate.Response.Error
event ResponseEvent

Rpc.Block.Dataview.RelationUpdate.Response.Error

Field Type Label Description
code Rpc.Block.Dataview.RelationUpdate.Response.Error.Code
description string

Rpc.Block.Dataview.SetSource

Rpc.Block.Dataview.SetSource.Request

Field Type Label Description
contextId string
blockId string
source string repeated

Rpc.Block.Dataview.SetSource.Response

Field Type Label Description
error Rpc.Block.Dataview.SetSource.Response.Error
event ResponseEvent

Rpc.Block.Dataview.SetSource.Response.Error

Field Type Label Description
code Rpc.Block.Dataview.SetSource.Response.Error.Code
description string

Rpc.Block.Dataview.ViewCreate

Rpc.Block.Dataview.ViewCreate.Request

Field Type Label Description
contextId string
blockId string id of dataview block to insert the new block
view model.Block.Content.Dataview.View

Rpc.Block.Dataview.ViewCreate.Response

Field Type Label Description
error Rpc.Block.Dataview.ViewCreate.Response.Error
event ResponseEvent
viewId string

Rpc.Block.Dataview.ViewCreate.Response.Error

Field Type Label Description
code Rpc.Block.Dataview.ViewCreate.Response.Error.Code
description string

Rpc.Block.Dataview.ViewDelete

Rpc.Block.Dataview.ViewDelete.Request

Field Type Label Description
contextId string id of the context block
blockId string id of the dataview
viewId string id of the view to remove

Rpc.Block.Dataview.ViewDelete.Response

Field Type Label Description
error Rpc.Block.Dataview.ViewDelete.Response.Error
event ResponseEvent

Rpc.Block.Dataview.ViewDelete.Response.Error

Field Type Label Description
code Rpc.Block.Dataview.ViewDelete.Response.Error.Code
description string

Rpc.Block.Dataview.ViewSetActive

set the current active view (persisted only within a session)

Rpc.Block.Dataview.ViewSetActive.Request

Field Type Label Description
contextId string
blockId string id of dataview block
viewId string id of active view
offset uint32
limit uint32

Rpc.Block.Dataview.ViewSetActive.Response

Field Type Label Description
error Rpc.Block.Dataview.ViewSetActive.Response.Error
event ResponseEvent

Rpc.Block.Dataview.ViewSetActive.Response.Error

Field Type Label Description
code Rpc.Block.Dataview.ViewSetActive.Response.Error.Code
description string

Rpc.Block.Dataview.ViewSetPosition

Rpc.Block.Dataview.ViewSetPosition.Request

Field Type Label Description
contextId string id of the context block
blockId string id of the dataview
viewId string id of the view to remove
position uint32 index of view position (0 - means first)

Rpc.Block.Dataview.ViewSetPosition.Response

Field Type Label Description
error Rpc.Block.Dataview.ViewSetPosition.Response.Error
event ResponseEvent

Rpc.Block.Dataview.ViewSetPosition.Response.Error

Field Type Label Description
code Rpc.Block.Dataview.ViewSetPosition.Response.Error.Code
description string

Rpc.Block.Dataview.ViewUpdate

Rpc.Block.Dataview.ViewUpdate.Request

Field Type Label Description
contextId string
blockId string id of dataview block to update
viewId string id of view to update
view model.Block.Content.Dataview.View

Rpc.Block.Dataview.ViewUpdate.Response

Field Type Label Description
error Rpc.Block.Dataview.ViewUpdate.Response.Error
event ResponseEvent

Rpc.Block.Dataview.ViewUpdate.Response.Error

Field Type Label Description
code Rpc.Block.Dataview.ViewUpdate.Response.Error.Code
description string

Rpc.Block.Download

Rpc.Block.Download.Request

Field Type Label Description
contextId string
blockId string

Rpc.Block.Download.Response

Field Type Label Description
error Rpc.Block.Download.Response.Error
event ResponseEvent

Rpc.Block.Download.Response.Error

Field Type Label Description
code Rpc.Block.Download.Response.Error.Code
description string

Rpc.Block.Export

Rpc.Block.Export.Request

Field Type Label Description
contextId string
blocks model.Block repeated

Rpc.Block.Export.Response

Field Type Label Description
error Rpc.Block.Export.Response.Error
path string
event ResponseEvent

Rpc.Block.Export.Response.Error

Field Type Label Description
code Rpc.Block.Export.Response.Error.Code
description string

Rpc.Block.File

Rpc.Block.File.CreateAndUpload

Rpc.Block.File.CreateAndUpload.Request

Field Type Label Description
contextId string
targetId string
position model.Block.Position
url string
localPath string
fileType model.Block.Content.File.Type

Rpc.Block.File.CreateAndUpload.Response

Field Type Label Description
error Rpc.Block.File.CreateAndUpload.Response.Error
blockId string
event ResponseEvent

Rpc.Block.File.CreateAndUpload.Response.Error

Field Type Label Description
code Rpc.Block.File.CreateAndUpload.Response.Error.Code
description string

Rpc.Block.Get

Rpc.Block.Get.Marks

Get marks list in the selected range in text block.

Rpc.Block.Get.Marks.Request

Field Type Label Description
contextId string
blockId string
range model.Range

Rpc.Block.Get.Marks.Response

Field Type Label Description
error Rpc.Block.Get.Marks.Response.Error
event ResponseEvent

Rpc.Block.Get.Marks.Response.Error

Field Type Label Description
code Rpc.Block.Get.Marks.Response.Error.Code
description string

Rpc.Block.GetPublicWebURL

Rpc.Block.GetPublicWebURL.Request

Field Type Label Description
blockId string

Rpc.Block.GetPublicWebURL.Response

Field Type Label Description
error Rpc.Block.GetPublicWebURL.Response.Error
url string

Rpc.Block.GetPublicWebURL.Response.Error

Field Type Label Description
code Rpc.Block.GetPublicWebURL.Response.Error.Code
description string

Rpc.Block.ImportMarkdown

Rpc.Block.ImportMarkdown.Request

Field Type Label Description
contextId string
importPath string

Rpc.Block.ImportMarkdown.Response

Field Type Label Description
error Rpc.Block.ImportMarkdown.Response.Error
rootLinkIds string repeated
event ResponseEvent

Rpc.Block.ImportMarkdown.Response.Error

Field Type Label Description
code Rpc.Block.ImportMarkdown.Response.Error.Code
description string

Rpc.Block.Merge

Rpc.Block.Merge.Request

Field Type Label Description
contextId string
firstBlockId string
secondBlockId string

Rpc.Block.Merge.Response

Field Type Label Description
error Rpc.Block.Merge.Response.Error
event ResponseEvent

Rpc.Block.Merge.Response.Error

Field Type Label Description
code Rpc.Block.Merge.Response.Error.Code
description string

Rpc.Block.ObjectType

Rpc.Block.ObjectType.Set

Rpc.Block.ObjectType.Set.Request

Field Type Label Description
contextId string
objectTypeUrl string

Rpc.Block.ObjectType.Set.Response

Field Type Label Description
error Rpc.Block.ObjectType.Set.Response.Error
event ResponseEvent

Rpc.Block.ObjectType.Set.Response.Error

Field Type Label Description
code Rpc.Block.ObjectType.Set.Response.Error.Code
description string

Rpc.Block.Open

Works with a smart blocks (block-organizers, like page, dashboard etc) Example scenario 1A. On front-end start. 1. Front -> MW: Rpc.Block.Open.Request(dashboard.id) 2. MW -> Front: BlockShow(dashboard) 3. MW -> Front: Rpc.Block.Open.Response(err) 1B. User clicks on a page icon on the dashboard. 1. Front -> MW: Rpc.Block.Close.Request(dashboard.id) Get close response first, then open request: 2. MW -> Front: Rpc.Block.Close.Response(err) 3. Front -> MW: Rpc.Block.Open.Request(page.id) 4. MW -> Front: BlockShow(<page, blocks>) 5. MW -> Front: Rpc.Block.Open.Response(err) Image/Video/File blocks then: 6. MW -> Front: BlockShow(<blocks>)

Rpc.Block.Open.Request

Field Type Label Description
contextId string id of the context blo1k
blockId string
traceId string

Rpc.Block.Open.Response

Field Type Label Description
error Rpc.Block.Open.Response.Error
event ResponseEvent

Rpc.Block.Open.Response.Error

Field Type Label Description
code Rpc.Block.Open.Response.Error.Code
description string

Rpc.Block.OpenBreadcrumbs

Rpc.Block.OpenBreadcrumbs.Request

Field Type Label Description
contextId string id of the context blo1k
traceId string

Rpc.Block.OpenBreadcrumbs.Response

Field Type Label Description
error Rpc.Block.OpenBreadcrumbs.Response.Error
blockId string
event ResponseEvent

Rpc.Block.OpenBreadcrumbs.Response.Error

Field Type Label Description
code Rpc.Block.OpenBreadcrumbs.Response.Error.Code
description string

Rpc.Block.Paste

Rpc.Block.Paste.Request

Field Type Label Description
contextId string
focusedBlockId string
selectedTextRange model.Range
selectedBlockIds string repeated
isPartOfBlock bool
textSlot string
htmlSlot string
anySlot model.Block repeated
fileSlot Rpc.Block.Paste.Request.File repeated

Rpc.Block.Paste.Request.File

Field Type Label Description
name string
data bytes
localPath string

Rpc.Block.Paste.Response

Field Type Label Description
error Rpc.Block.Paste.Response.Error
blockIds string repeated
caretPosition int32
isSameBlockCaret bool
event ResponseEvent

Rpc.Block.Paste.Response.Error

Field Type Label Description
code Rpc.Block.Paste.Response.Error.Code
description string

Rpc.Block.Redo

Rpc.Block.Redo.Request

Field Type Label Description
contextId string id of the context block

Rpc.Block.Redo.Response

Field Type Label Description
error Rpc.Block.Redo.Response.Error
event ResponseEvent
counters Rpc.Block.UndoRedoCounter

Rpc.Block.Redo.Response.Error

Field Type Label Description
code Rpc.Block.Redo.Response.Error.Code
description string

Rpc.Block.Relation

Rpc.Block.Relation.Add

Rpc.Block.Relation.Add.Request

Field Type Label Description
contextId string
blockId string
relation model.Relation

Rpc.Block.Relation.Add.Response

Field Type Label Description
error Rpc.Block.Relation.Add.Response.Error
event ResponseEvent

Rpc.Block.Relation.Add.Response.Error

Field Type Label Description
code Rpc.Block.Relation.Add.Response.Error.Code
description string

Rpc.Block.Relation.SetKey

Rpc.Block.Relation.SetKey.Request

Field Type Label Description
contextId string
blockId string
key string

Rpc.Block.Relation.SetKey.Response

Field Type Label Description
error Rpc.Block.Relation.SetKey.Response.Error
event ResponseEvent

Rpc.Block.Relation.SetKey.Response.Error

Field Type Label Description
code Rpc.Block.Relation.SetKey.Response.Error.Code
description string

Rpc.Block.Replace

Rpc.Block.Replace.Request

Field Type Label Description
contextId string
blockId string
block model.Block

Rpc.Block.Replace.Response

Field Type Label Description
error Rpc.Block.Replace.Response.Error
blockId string
event ResponseEvent

Rpc.Block.Replace.Response.Error

Field Type Label Description
code Rpc.Block.Replace.Response.Error.Code
description string

Rpc.Block.Set

Rpc.Block.Set.Details

Rpc.Block.Set.Details.Detail

Field Type Label Description
key string
value google.protobuf.Value NUll - removes key

Rpc.Block.Set.Details.Request

Field Type Label Description
contextId string
details Rpc.Block.Set.Details.Detail repeated

Rpc.Block.Set.Details.Response

Field Type Label Description
error Rpc.Block.Set.Details.Response.Error
event ResponseEvent

Rpc.Block.Set.Details.Response.Error

Field Type Label Description
code Rpc.Block.Set.Details.Response.Error.Code
description string

Rpc.Block.Set.Fields

Rpc.Block.Set.Fields.Request

Field Type Label Description
contextId string
blockId string
fields google.protobuf.Struct

Rpc.Block.Set.Fields.Response

Field Type Label Description
error Rpc.Block.Set.Fields.Response.Error
event ResponseEvent

Rpc.Block.Set.Fields.Response.Error

Field Type Label Description
code Rpc.Block.Set.Fields.Response.Error.Code
description string

Rpc.Block.Set.File

Rpc.Block.Set.File.Name

Rpc.Block.Set.File.Name.Request

Field Type Label Description
contextId string
blockId string
name string

Rpc.Block.Set.File.Name.Response

Field Type Label Description
error Rpc.Block.Set.File.Name.Response.Error
event ResponseEvent

Rpc.Block.Set.File.Name.Response.Error

Field Type Label Description
code Rpc.Block.Set.File.Name.Response.Error.Code
description string

Rpc.Block.Set.Image

Rpc.Block.Set.Image.Name

Rpc.Block.Set.Image.Name.Request

Field Type Label Description
contextId string
blockId string
name string

Rpc.Block.Set.Image.Name.Response

Field Type Label Description
error Rpc.Block.Set.Image.Name.Response.Error

Rpc.Block.Set.Image.Name.Response.Error

Field Type Label Description
code Rpc.Block.Set.Image.Name.Response.Error.Code
description string

Rpc.Block.Set.Image.Width

Rpc.Block.Set.Image.Width.Request

Field Type Label Description
contextId string
blockId string
width int32

Rpc.Block.Set.Image.Width.Response

Field Type Label Description
error Rpc.Block.Set.Image.Width.Response.Error

Rpc.Block.Set.Image.Width.Response.Error

Field Type Label Description
code Rpc.Block.Set.Image.Width.Response.Error.Code
description string

Rpc.Block.Set.Latex

Rpc.Block.Set.Latex.Text

Rpc.Block.Set.Latex.Text.Request

Field Type Label Description
contextId string
blockId string
text string

Rpc.Block.Set.Latex.Text.Response

Field Type Label Description
error Rpc.Block.Set.Latex.Text.Response.Error
event ResponseEvent

Rpc.Block.Set.Latex.Text.Response.Error

Field Type Label Description
code Rpc.Block.Set.Latex.Text.Response.Error.Code
description string

Field Type Label Description
contextId string
blockId string
targetBlockId string

Field Type Label Description
error Rpc.Block.Set.Link.TargetBlockId.Response.Error
event ResponseEvent

Field Type Label Description
code Rpc.Block.Set.Link.TargetBlockId.Response.Error.Code
description string

Rpc.Block.Set.Page

Rpc.Block.Set.Page.IsArchived

Rpc.Block.Set.Page.IsArchived.Request

Field Type Label Description
contextId string
blockId string
isArchived bool

Rpc.Block.Set.Page.IsArchived.Response

Field Type Label Description
error Rpc.Block.Set.Page.IsArchived.Response.Error

Rpc.Block.Set.Page.IsArchived.Response.Error

Field Type Label Description
code Rpc.Block.Set.Page.IsArchived.Response.Error.Code
description string

Rpc.Block.Set.Restrictions

Rpc.Block.Set.Restrictions.Request

Field Type Label Description
contextId string
blockId string
restrictions model.Block.Restrictions

Rpc.Block.Set.Restrictions.Response

Field Type Label Description
error Rpc.Block.Set.Restrictions.Response.Error
event ResponseEvent

Rpc.Block.Set.Restrictions.Response.Error

Field Type Label Description
code Rpc.Block.Set.Restrictions.Response.Error.Code
description string

Rpc.Block.Set.Text

Rpc.Block.Set.Text.Checked

Rpc.Block.Set.Text.Checked.Request

Field Type Label Description
contextId string
blockId string
checked bool

Rpc.Block.Set.Text.Checked.Response

Field Type Label Description
error Rpc.Block.Set.Text.Checked.Response.Error
event ResponseEvent

Rpc.Block.Set.Text.Checked.Response.Error

Field Type Label Description
code Rpc.Block.Set.Text.Checked.Response.Error.Code
description string

Rpc.Block.Set.Text.Color

Rpc.Block.Set.Text.Color.Request

Field Type Label Description
contextId string
blockId string
color string

Rpc.Block.Set.Text.Color.Response

Field Type Label Description
error Rpc.Block.Set.Text.Color.Response.Error
event ResponseEvent

Rpc.Block.Set.Text.Color.Response.Error

Field Type Label Description
code Rpc.Block.Set.Text.Color.Response.Error.Code
description string

Rpc.Block.Set.Text.Icon

Rpc.Block.Set.Text.Icon.Request

Field Type Label Description
contextId string
blockId string
iconImage string in case both image and emoji are set, image has a priority to show
iconEmoji string

Rpc.Block.Set.Text.Icon.Response

Field Type Label Description
error Rpc.Block.Set.Text.Icon.Response.Error
event ResponseEvent

Rpc.Block.Set.Text.Icon.Response.Error

Field Type Label Description
code Rpc.Block.Set.Text.Icon.Response.Error.Code
description string

Rpc.Block.Set.Text.Style

Rpc.Block.Set.Text.Style.Request

Field Type Label Description
contextId string
blockId string
style model.Block.Content.Text.Style

Rpc.Block.Set.Text.Style.Response

Field Type Label Description
error Rpc.Block.Set.Text.Style.Response.Error
event ResponseEvent

Rpc.Block.Set.Text.Style.Response.Error

Field Type Label Description
code Rpc.Block.Set.Text.Style.Response.Error.Code
description string

Rpc.Block.Set.Text.Text

Rpc.Block.Set.Text.Text.Request

Field Type Label Description
contextId string
blockId string
text string
marks model.Block.Content.Text.Marks

Rpc.Block.Set.Text.Text.Response

Field Type Label Description
error Rpc.Block.Set.Text.Text.Response.Error
event ResponseEvent

Rpc.Block.Set.Text.Text.Response.Error

Field Type Label Description
code Rpc.Block.Set.Text.Text.Response.Error.Code
description string

Rpc.Block.Set.Video

Rpc.Block.Set.Video.Name

Rpc.Block.Set.Video.Name.Request

Field Type Label Description
contextId string
blockId string
name string

Rpc.Block.Set.Video.Name.Response

Field Type Label Description
error Rpc.Block.Set.Video.Name.Response.Error

Rpc.Block.Set.Video.Name.Response.Error

Field Type Label Description
code Rpc.Block.Set.Video.Name.Response.Error.Code
description string

Rpc.Block.Set.Video.Width

Rpc.Block.Set.Video.Width.Request

Field Type Label Description
contextId string
blockId string
width int32

Rpc.Block.Set.Video.Width.Response

Field Type Label Description
error Rpc.Block.Set.Video.Width.Response.Error

Rpc.Block.Set.Video.Width.Response.Error

Field Type Label Description
code Rpc.Block.Set.Video.Width.Response.Error.Code
description string

Rpc.Block.SetBreadcrumbs

Rpc.Block.SetBreadcrumbs.Request

Field Type Label Description
breadcrumbsId string
ids string repeated page ids

Rpc.Block.SetBreadcrumbs.Response

Field Type Label Description
error Rpc.Block.SetBreadcrumbs.Response.Error
event ResponseEvent

Rpc.Block.SetBreadcrumbs.Response.Error

Field Type Label Description
code Rpc.Block.SetBreadcrumbs.Response.Error.Code
description string

Rpc.Block.Show

Rpc.Block.Show.Request

Field Type Label Description
contextId string id of the context blo1k
blockId string
traceId string

Rpc.Block.Show.Response

Field Type Label Description
error Rpc.Block.Show.Response.Error
event ResponseEvent

Rpc.Block.Show.Response.Error

Field Type Label Description
code Rpc.Block.Show.Response.Error.Code
description string

Rpc.Block.Split

Rpc.Block.Split.Request

Field Type Label Description
contextId string
blockId string
range model.Range
style model.Block.Content.Text.Style
mode Rpc.Block.Split.Request.Mode

Rpc.Block.Split.Response

Field Type Label Description
error Rpc.Block.Split.Response.Error
blockId string
event ResponseEvent

Rpc.Block.Split.Response.Error

Field Type Label Description
code Rpc.Block.Split.Response.Error.Code
description string

Rpc.Block.Undo

Rpc.Block.Undo.Request

Field Type Label Description
contextId string id of the context block

Rpc.Block.Undo.Response

Field Type Label Description
error Rpc.Block.Undo.Response.Error
event ResponseEvent
counters Rpc.Block.UndoRedoCounter

Rpc.Block.Undo.Response.Error

Field Type Label Description
code Rpc.Block.Undo.Response.Error.Code
description string

Rpc.Block.UndoRedoCounter

Available undo/redo operations

Field Type Label Description
undo int32
redo int32

Remove blocks from the childrenIds of its parents

Field Type Label Description
contextId string id of the context block
blockIds string repeated targets to remove

Field Type Label Description
error Rpc.Block.Unlink.Response.Error
event ResponseEvent

Field Type Label Description
code Rpc.Block.Unlink.Response.Error.Code
description string

Rpc.Block.UpdateContent

Rpc.Block.UpdateContent.Request

Field Type Label Description
contextId string
blockId string
block model.Block

Rpc.Block.UpdateContent.Response

Field Type Label Description
error Rpc.Block.UpdateContent.Response.Error
event ResponseEvent

Rpc.Block.UpdateContent.Response.Error

Field Type Label Description
code Rpc.Block.UpdateContent.Response.Error.Code
description string

Rpc.Block.Upload

Rpc.Block.Upload.Request

Field Type Label Description
contextId string
blockId string
filePath string
url string

Rpc.Block.Upload.Response

Field Type Label Description
error Rpc.Block.Upload.Response.Error
event ResponseEvent

Rpc.Block.Upload.Response.Error

Field Type Label Description
code Rpc.Block.Upload.Response.Error.Code
description string

Rpc.BlockList

Rpc.BlockList.ConvertChildrenToPages

Rpc.BlockList.ConvertChildrenToPages.Request

Field Type Label Description
contextId string
blockIds string repeated
objectType string

Rpc.BlockList.ConvertChildrenToPages.Response

Field Type Label Description
error Rpc.BlockList.ConvertChildrenToPages.Response.Error
linkIds string repeated

Rpc.BlockList.ConvertChildrenToPages.Response.Error

Field Type Label Description
code Rpc.BlockList.ConvertChildrenToPages.Response.Error.Code
description string

Rpc.BlockList.Duplicate

Makes blocks copy by given ids and paste it to shown place

Rpc.BlockList.Duplicate.Request

Field Type Label Description
contextId string id of the context block
targetId string id of the closest block
blockIds string repeated id of block for duplicate
position model.Block.Position

Rpc.BlockList.Duplicate.Response

Field Type Label Description
error Rpc.BlockList.Duplicate.Response.Error
blockIds string repeated
event ResponseEvent

Rpc.BlockList.Duplicate.Response.Error

Field Type Label Description
code Rpc.BlockList.Duplicate.Response.Error.Code
description string

Rpc.BlockList.Move

Rpc.BlockList.Move.Request

Field Type Label Description
contextId string
blockIds string repeated
targetContextId string
dropTargetId string id of the simple block to insert considering position
position model.Block.Position position relatively to the dropTargetId simple block

Rpc.BlockList.Move.Response

Field Type Label Description
error Rpc.BlockList.Move.Response.Error
event ResponseEvent

Rpc.BlockList.Move.Response.Error

Field Type Label Description
code Rpc.BlockList.Move.Response.Error.Code
description string

Rpc.BlockList.MoveToNewPage

Rpc.BlockList.MoveToNewPage.Request

Field Type Label Description
contextId string
blockIds string repeated
details google.protobuf.Struct page details
dropTargetId string id of the simple block to insert considering position
position model.Block.Position position relatively to the dropTargetId simple block

Rpc.BlockList.MoveToNewPage.Response

Field Type Label Description
error Rpc.BlockList.MoveToNewPage.Response.Error
linkId string
event ResponseEvent

Rpc.BlockList.MoveToNewPage.Response.Error

Field Type Label Description
code Rpc.BlockList.MoveToNewPage.Response.Error.Code
description string

Rpc.BlockList.Set

Rpc.BlockList.Set.Align

Rpc.BlockList.Set.Align.Request

Field Type Label Description
contextId string
blockIds string repeated when empty - align will be applied as layoutAlign
align model.Block.Align

Rpc.BlockList.Set.Align.Response

Field Type Label Description
error Rpc.BlockList.Set.Align.Response.Error
event ResponseEvent

Rpc.BlockList.Set.Align.Response.Error

Field Type Label Description
code Rpc.BlockList.Set.Align.Response.Error.Code
description string

Rpc.BlockList.Set.BackgroundColor

Rpc.BlockList.Set.BackgroundColor.Request

Field Type Label Description
contextId string
blockIds string repeated
color string

Rpc.BlockList.Set.BackgroundColor.Response

Field Type Label Description
error Rpc.BlockList.Set.BackgroundColor.Response.Error
event ResponseEvent

Rpc.BlockList.Set.BackgroundColor.Response.Error

Field Type Label Description
code Rpc.BlockList.Set.BackgroundColor.Response.Error.Code
description string

Rpc.BlockList.Set.Div

Rpc.BlockList.Set.Div.Style

Rpc.BlockList.Set.Div.Style.Request

Field Type Label Description
contextId string
blockIds string repeated
style model.Block.Content.Div.Style

Rpc.BlockList.Set.Div.Style.Response

Field Type Label Description
error Rpc.BlockList.Set.Div.Style.Response.Error
event ResponseEvent

Rpc.BlockList.Set.Div.Style.Response.Error

Field Type Label Description
code Rpc.BlockList.Set.Div.Style.Response.Error.Code
description string

Rpc.BlockList.Set.Fields

Rpc.BlockList.Set.Fields.Request

Field Type Label Description
contextId string
blockFields Rpc.BlockList.Set.Fields.Request.BlockField repeated

Rpc.BlockList.Set.Fields.Request.BlockField

Field Type Label Description
blockId string
fields google.protobuf.Struct

Rpc.BlockList.Set.Fields.Response

Field Type Label Description
error Rpc.BlockList.Set.Fields.Response.Error
event ResponseEvent

Rpc.BlockList.Set.Fields.Response.Error

Field Type Label Description
code Rpc.BlockList.Set.Fields.Response.Error.Code
description string

Rpc.BlockList.Set.File

Rpc.BlockList.Set.File.Style

Rpc.BlockList.Set.File.Style.Request

Field Type Label Description
contextId string
blockIds string repeated
style model.Block.Content.File.Style

Rpc.BlockList.Set.File.Style.Response

Field Type Label Description
error Rpc.BlockList.Set.File.Style.Response.Error
event ResponseEvent

Rpc.BlockList.Set.File.Style.Response.Error

Field Type Label Description
code Rpc.BlockList.Set.File.Style.Response.Error.Code
description string

Rpc.BlockList.Set.Text

commands acceptable only for text blocks, others will be ignored

Rpc.BlockList.Set.Text.Color

Rpc.BlockList.Set.Text.Color.Request

Field Type Label Description
contextId string
blockIds string repeated
color string

Rpc.BlockList.Set.Text.Color.Response

Field Type Label Description
error Rpc.BlockList.Set.Text.Color.Response.Error
event ResponseEvent

Rpc.BlockList.Set.Text.Color.Response.Error

Field Type Label Description
code Rpc.BlockList.Set.Text.Color.Response.Error.Code
description string

Rpc.BlockList.Set.Text.Mark

Rpc.BlockList.Set.Text.Mark.Request

Field Type Label Description
contextId string
blockIds string repeated
mark model.Block.Content.Text.Mark

Rpc.BlockList.Set.Text.Mark.Response

Field Type Label Description
error Rpc.BlockList.Set.Text.Mark.Response.Error
event ResponseEvent

Rpc.BlockList.Set.Text.Mark.Response.Error

Field Type Label Description
code Rpc.BlockList.Set.Text.Mark.Response.Error.Code
description string

Rpc.BlockList.Set.Text.Style

Rpc.BlockList.Set.Text.Style.Request

Field Type Label Description
contextId string
blockIds string repeated
style model.Block.Content.Text.Style

Rpc.BlockList.Set.Text.Style.Response

Field Type Label Description
error Rpc.BlockList.Set.Text.Style.Response.Error
event ResponseEvent

Rpc.BlockList.Set.Text.Style.Response.Error

Field Type Label Description
code Rpc.BlockList.Set.Text.Style.Response.Error.Code
description string

Rpc.BlockList.TurnInto

Rpc.BlockList.TurnInto.Request

Field Type Label Description
contextId string
blockIds string repeated
style model.Block.Content.Text.Style

Rpc.BlockList.TurnInto.Response

Field Type Label Description
error Rpc.BlockList.TurnInto.Response.Error
event ResponseEvent

Rpc.BlockList.TurnInto.Response.Error

Field Type Label Description
code Rpc.BlockList.TurnInto.Response.Error.Code
description string

Rpc.CloneTemplate

Rpc.CloneTemplate.Request

Field Type Label Description
contextId string id of template block for cloning

Rpc.CloneTemplate.Response

Field Type Label Description
error Rpc.CloneTemplate.Response.Error
id string created template id

Rpc.CloneTemplate.Response.Error

Field Type Label Description
code Rpc.CloneTemplate.Response.Error.Code
description string

Rpc.Config

Rpc.Config.Get

Rpc.Config.Get.Request

Rpc.Config.Get.Response

Field Type Label Description
error Rpc.Config.Get.Response.Error
homeBlockId string home dashboard block id
archiveBlockId string archive block id
profileBlockId string profile block id
marketplaceTypeId string marketplace type id
marketplaceRelationId string marketplace relation id
marketplaceTemplateId string marketplace template id
deviceId string
gatewayUrl string gateway url for fetching static files

Rpc.Config.Get.Response.Error

Field Type Label Description
code Rpc.Config.Get.Response.Error.Code
description string

Rpc.Debug

Rpc.Debug.Sync

Rpc.Debug.Sync.Request

Field Type Label Description
recordsTraverseLimit int32 0 means no limit
skipEmptyLogs bool do not set if you want the whole picture
tryToDownloadRemoteRecords bool if try we will try to download remote records in case missing

Rpc.Debug.Sync.Response

Field Type Label Description
error Rpc.Debug.Sync.Response.Error
threads Rpc.Debug.threadInfo repeated
deviceId string
totalThreads int32
threadsWithoutReplInOwnLog int32
threadsWithoutHeadDownloaded int32
totalRecords int32
totalSize int32

Rpc.Debug.Sync.Response.Error

Field Type Label Description
code Rpc.Debug.Sync.Response.Error.Code
description string

Rpc.Debug.Thread

Rpc.Debug.Thread.Request

Field Type Label Description
threadId string
skipEmptyLogs bool do not set if you want the whole picture
tryToDownloadRemoteRecords bool if try we will try to download remote records in case missing

Rpc.Debug.Thread.Response

Field Type Label Description
error Rpc.Debug.Thread.Response.Error
info Rpc.Debug.threadInfo

Rpc.Debug.Thread.Response.Error

Field Type Label Description
code Rpc.Debug.Thread.Response.Error.Code
description string

Rpc.Debug.Tree

Rpc.Debug.Tree.Request

Field Type Label Description
blockId string
path string
unanonymized bool set to true to disable mocking of the actual data inside changes

Rpc.Debug.Tree.Response

Field Type Label Description
error Rpc.Debug.Tree.Response.Error
filename string

Rpc.Debug.Tree.Response.Error

Field Type Label Description
code Rpc.Debug.Tree.Response.Error.Code
description string

Rpc.Debug.logInfo

Field Type Label Description
id string
head string
headDownloaded bool
totalRecords int32
totalSize int32
firstRecordTs int32
firstRecordVer int32
lastRecordTs int32
lastRecordVer int32
lastPullSecAgo int32
upStatus string
downStatus string
error string

Rpc.Debug.threadInfo

Field Type Label Description
id string
logsWithDownloadedHead int32
logsWithWholeTreeDownloaded int32
logs Rpc.Debug.logInfo repeated
ownLogHasCafeReplicator bool
cafeLastPullSecAgo int32
cafeUpStatus string
cafeDownStatus string
totalRecords int32
totalSize int32
error string

Rpc.DownloadFile

Rpc.DownloadFile.Request

Field Type Label Description
hash string
path string path to save file. Temp directory is used if empty

Rpc.DownloadFile.Response

Field Type Label Description
error Rpc.DownloadFile.Response.Error
localPath string

Rpc.DownloadFile.Response.Error

Field Type Label Description
code Rpc.DownloadFile.Response.Error.Code
description string

Rpc.Export

Rpc.Export.Request

Field Type Label Description
path string the path where export files will place
docIds string repeated ids of documents for export, when empty - will export all available docs
format Rpc.Export.Format export format
zip bool save as zip file
includeNested bool include all nested
includeFiles bool include all files

Rpc.Export.Response

Field Type Label Description
error Rpc.Export.Response.Error
path string
succeed int32
event ResponseEvent

Rpc.Export.Response.Error

Field Type Label Description
code Rpc.Export.Response.Error.Code
description string

Rpc.ExportLocalstore

Rpc.ExportLocalstore.Request

Field Type Label Description
path string the path where export files will place
docIds string repeated ids of documents for export, when empty - will export all available docs

Rpc.ExportLocalstore.Response

Field Type Label Description
error Rpc.ExportLocalstore.Response.Error
path string
event ResponseEvent

Rpc.ExportLocalstore.Response.Error

Field Type Label Description
code Rpc.ExportLocalstore.Response.Error.Code
description string

Rpc.ExportTemplates

Rpc.ExportTemplates.Request

Field Type Label Description
path string the path where export files will place

Rpc.ExportTemplates.Response

Field Type Label Description
error Rpc.ExportTemplates.Response.Error
path string
event ResponseEvent

Rpc.ExportTemplates.Response.Error

Field Type Label Description
code Rpc.ExportTemplates.Response.Error.Code
description string

Rpc.ExportWorkspace

Rpc.ExportWorkspace.Request

Field Type Label Description
path string the path where export files will place
workspaceId string

Rpc.ExportWorkspace.Response

Field Type Label Description
error Rpc.ExportWorkspace.Response.Error
path string
event ResponseEvent

Rpc.ExportWorkspace.Response.Error

Field Type Label Description
code Rpc.ExportWorkspace.Response.Error.Code
description string

Rpc.ExternalDrop

Rpc.ExternalDrop.Content

Rpc.ExternalDrop.Content.Request

Field Type Label Description
contextId string
focusedBlockId string can be null
content bytes TODO

Rpc.ExternalDrop.Content.Response

Field Type Label Description
error Rpc.ExternalDrop.Content.Response.Error

Rpc.ExternalDrop.Content.Response.Error

Field Type Label Description
code Rpc.ExternalDrop.Content.Response.Error.Code
description string

Rpc.ExternalDrop.Files

Rpc.ExternalDrop.Files.Request

Field Type Label Description
contextId string
dropTargetId string id of the simple block to insert considering position
position model.Block.Position position relatively to the dropTargetId simple block
localFilePaths string repeated

Rpc.ExternalDrop.Files.Response

Field Type Label Description
error Rpc.ExternalDrop.Files.Response.Error
event ResponseEvent

Rpc.ExternalDrop.Files.Response.Error

Field Type Label Description
code Rpc.ExternalDrop.Files.Response.Error.Code
description string

Rpc.File

Rpc.File.Offload

Rpc.File.Offload.Request

Field Type Label Description
id string
includeNotPinned bool

Rpc.File.Offload.Response

Field Type Label Description
error Rpc.File.Offload.Response.Error
bytesOffloaded uint64

Rpc.File.Offload.Response.Error

Field Type Label Description
code Rpc.File.Offload.Response.Error.Code
description string

Rpc.FileList

Rpc.FileList.Offload

Rpc.FileList.Offload.Request

Field Type Label Description
onlyIds string repeated empty means all
includeNotPinned bool false mean not-yet-pinned files will be not

Rpc.FileList.Offload.Response

Field Type Label Description
error Rpc.FileList.Offload.Response.Error
filesOffloaded int32
bytesOffloaded uint64

Rpc.FileList.Offload.Response.Error

Field Type Label Description
code Rpc.FileList.Offload.Response.Error.Code
description string

Rpc.GenericErrorResponse

Field Type Label Description
error Rpc.GenericErrorResponse.Error

Rpc.GenericErrorResponse.Error

Field Type Label Description
code Rpc.GenericErrorResponse.Error.Code
description string

Rpc.History

Rpc.History.SetVersion

Rpc.History.SetVersion.Request

Field Type Label Description
pageId string
versionId string

Rpc.History.SetVersion.Response

Field Type Label Description
error Rpc.History.SetVersion.Response.Error

Rpc.History.SetVersion.Response.Error

Field Type Label Description
code Rpc.History.SetVersion.Response.Error.Code
description string

Rpc.History.Show

returns blockShow event for given version

Rpc.History.Show.Request

Field Type Label Description
pageId string
versionId string
traceId string

Rpc.History.Show.Response

Field Type Label Description
error Rpc.History.Show.Response.Error
objectShow Event.Object.Show
version Rpc.History.Versions.Version
traceId string

Rpc.History.Show.Response.Error

Field Type Label Description
code Rpc.History.Show.Response.Error.Code
description string

Rpc.History.Versions

returns list of versions (changes)

Rpc.History.Versions.Request

Field Type Label Description
pageId string
lastVersionId string when indicated, results will include versions before given id
limit int32 desired count of versions

Rpc.History.Versions.Response

Field Type Label Description
error Rpc.History.Versions.Response.Error
versions Rpc.History.Versions.Version repeated

Rpc.History.Versions.Response.Error

Field Type Label Description
code Rpc.History.Versions.Response.Error.Code
description string

Rpc.History.Versions.Version

Field Type Label Description
id string
previousIds string repeated
authorId string
authorName string
time int64
groupId int64

Rpc.LinkPreview

Rpc.LinkPreview.Request

Field Type Label Description
url string

Rpc.LinkPreview.Response

Field Type Label Description
error Rpc.LinkPreview.Response.Error
linkPreview model.LinkPreview

Rpc.LinkPreview.Response.Error

Field Type Label Description
code Rpc.LinkPreview.Response.Error.Code
description string

Rpc.Log

Namespace, that agregates log subtopics and actions. Usage: send request with topic (Level) and description (message) from client to middleware to log.

Rpc.Log.Send

Rpc.Log.Send.Request

Field Type Label Description
message string
level Rpc.Log.Send.Request.Level

Rpc.Log.Send.Response

Field Type Label Description
error Rpc.Log.Send.Response.Error

Rpc.Log.Send.Response.Error

Field Type Label Description
code Rpc.Log.Send.Response.Error.Code
description string

Rpc.MakeTemplate

Rpc.MakeTemplate.Request

Field Type Label Description
contextId string id of block for making them template

Rpc.MakeTemplate.Response

Field Type Label Description
error Rpc.MakeTemplate.Response.Error
id string created template id

Rpc.MakeTemplate.Response.Error

Field Type Label Description
code Rpc.MakeTemplate.Response.Error.Code
description string

Rpc.MakeTemplateByObjectType

Rpc.MakeTemplateByObjectType.Request

Field Type Label Description
objectType string id of desired object type

Rpc.MakeTemplateByObjectType.Response

Field Type Label Description
error Rpc.MakeTemplateByObjectType.Response.Error
id string created template id

Rpc.MakeTemplateByObjectType.Response.Error

Field Type Label Description
code Rpc.MakeTemplateByObjectType.Response.Error.Code
description string

Rpc.Metrics

Rpc.Metrics.SetParameters

Rpc.Metrics.SetParameters.Request

Field Type Label Description
platform string

Rpc.Metrics.SetParameters.Response

Field Type Label Description
error Rpc.Metrics.SetParameters.Response.Error

Rpc.Metrics.SetParameters.Response.Error

Field Type Label Description
code Rpc.Metrics.SetParameters.Response.Error.Code
description string

Rpc.Navigation

Get the info for page alongside with info for all inbound and outbound links from/to this page

Field Type Label Description
objectId string
context Rpc.Navigation.Context

Field Type Label Description
error Rpc.Navigation.GetObjectInfoWithLinks.Response.Error
object model.ObjectInfoWithLinks

Field Type Label Description
code Rpc.Navigation.GetObjectInfoWithLinks.Response.Error.Code
description string

Rpc.Navigation.ListObjects

Rpc.Navigation.ListObjects.Request

Field Type Label Description
context Rpc.Navigation.Context
fullText string
limit int32
offset int32

Rpc.Navigation.ListObjects.Response

Field Type Label Description
error Rpc.Navigation.ListObjects.Response.Error
objects model.ObjectInfo repeated

Rpc.Navigation.ListObjects.Response.Error

Field Type Label Description
code Rpc.Navigation.ListObjects.Response.Error.Code
description string

Rpc.Object

Rpc.Object.AddWithObjectId

Rpc.Object.AddWithObjectId.Request

Field Type Label Description
objectId string
payload string

Rpc.Object.AddWithObjectId.Response

Field Type Label Description
error Rpc.Object.AddWithObjectId.Response.Error

Rpc.Object.AddWithObjectId.Response.Error

Field Type Label Description
code Rpc.Object.AddWithObjectId.Response.Error.Code
description string

Rpc.Object.FeaturedRelation

Rpc.Object.FeaturedRelation.Add

Rpc.Object.FeaturedRelation.Add.Request

Field Type Label Description
contextId string
relations string repeated

Rpc.Object.FeaturedRelation.Add.Response

Field Type Label Description
error Rpc.Object.FeaturedRelation.Add.Response.Error
event ResponseEvent

Rpc.Object.FeaturedRelation.Add.Response.Error

Field Type Label Description
code Rpc.Object.FeaturedRelation.Add.Response.Error.Code
description string

Rpc.Object.FeaturedRelation.Remove

Rpc.Object.FeaturedRelation.Remove.Request

Field Type Label Description
contextId string
relations string repeated

Rpc.Object.FeaturedRelation.Remove.Response

Field Type Label Description
error Rpc.Object.FeaturedRelation.Remove.Response.Error
event ResponseEvent

Rpc.Object.FeaturedRelation.Remove.Response.Error

Field Type Label Description
code Rpc.Object.FeaturedRelation.Remove.Response.Error.Code
description string

Rpc.Object.Graph

Rpc.Object.Graph.Edge

Field Type Label Description
source string
target string
name string
type Rpc.Object.Graph.Edge.Type
description string
iconImage string
iconEmoji string
hidden bool

Rpc.Object.Graph.Node

Field Type Label Description
id string
type string
name string
layout int32
description string
iconImage string
iconEmoji string
done bool
relationFormat int32
snippet string

Rpc.Object.Graph.Request

Field Type Label Description
filters model.Block.Content.Dataview.Filter repeated
limit int32
objectTypeFilter string repeated additional filter by objectTypes

Rpc.Object.Graph.Response

Field Type Label Description
error Rpc.Object.Graph.Response.Error
nodes Rpc.Object.Graph.Node repeated
edges Rpc.Object.Graph.Edge repeated

Rpc.Object.Graph.Response.Error

Field Type Label Description
code Rpc.Object.Graph.Response.Error.Code
description string

Rpc.Object.IdsSubscribe

Rpc.Object.IdsSubscribe.Request

Field Type Label Description
subId string (optional) subscription identifier client can provide some string or middleware will generate it automatically if subId is already registered on middleware, the new query will replace previous subscription
ids string repeated ids for subscribe
keys string repeated sorts (required) needed keys in details for return, for object fields mw will return (and subscribe) objects as dependent
ignoreWorkspace string

Rpc.Object.IdsSubscribe.Response

Field Type Label Description
error Rpc.Object.IdsSubscribe.Response.Error
records google.protobuf.Struct repeated
dependencies google.protobuf.Struct repeated
subId string

Rpc.Object.IdsSubscribe.Response.Error

Field Type Label Description
code Rpc.Object.IdsSubscribe.Response.Error.Code
description string

Rpc.Object.RelationAdd

Rpc.Object.RelationAdd.Request

Field Type Label Description
contextId string
relation model.Relation

Rpc.Object.RelationAdd.Response

Field Type Label Description
error Rpc.Object.RelationAdd.Response.Error
event ResponseEvent
relationKey string deprecated
relation model.Relation

Rpc.Object.RelationAdd.Response.Error

Field Type Label Description
code Rpc.Object.RelationAdd.Response.Error.Code
description string

Rpc.Object.RelationDelete

Rpc.Object.RelationDelete.Request

Field Type Label Description
contextId string
relationKey string

Rpc.Object.RelationDelete.Response

Field Type Label Description
error Rpc.Object.RelationDelete.Response.Error
event ResponseEvent

Rpc.Object.RelationDelete.Response.Error

Field Type Label Description
code Rpc.Object.RelationDelete.Response.Error.Code
description string

Rpc.Object.RelationListAvailable

Rpc.Object.RelationListAvailable.Request

Field Type Label Description
contextId string

Rpc.Object.RelationListAvailable.Response

Field Type Label Description
error Rpc.Object.RelationListAvailable.Response.Error
relations model.Relation repeated

Rpc.Object.RelationListAvailable.Response.Error

Field Type Label Description
code Rpc.Object.RelationListAvailable.Response.Error.Code
description string

Rpc.Object.RelationOptionAdd

RelationOptionAdd may return existing option in case dataview already has one with the same text

Rpc.Object.RelationOptionAdd.Request

Field Type Label Description
contextId string
relationKey string relation key to add the option
option model.Relation.Option id of select options will be autogenerated

Rpc.Object.RelationOptionAdd.Response

Field Type Label Description
error Rpc.Object.RelationOptionAdd.Response.Error
event ResponseEvent
option model.Relation.Option

Rpc.Object.RelationOptionAdd.Response.Error

Field Type Label Description
code Rpc.Object.RelationOptionAdd.Response.Error.Code
description string

Rpc.Object.RelationOptionDelete

Rpc.Object.RelationOptionDelete.Request

Field Type Label Description
contextId string
relationKey string relation key to add the option
optionId string id of select options to remove
confirmRemoveAllValuesInRecords bool confirm remove all values in records

Rpc.Object.RelationOptionDelete.Response

Field Type Label Description
error Rpc.Object.RelationOptionDelete.Response.Error
event ResponseEvent

Rpc.Object.RelationOptionDelete.Response.Error

Field Type Label Description
code Rpc.Object.RelationOptionDelete.Response.Error.Code
description string

Rpc.Object.RelationOptionUpdate

Rpc.Object.RelationOptionUpdate.Request

Field Type Label Description
contextId string
relationKey string relation key to add the option
option model.Relation.Option id of select options will be autogenerated

Rpc.Object.RelationOptionUpdate.Response

Field Type Label Description
error Rpc.Object.RelationOptionUpdate.Response.Error
event ResponseEvent

Rpc.Object.RelationOptionUpdate.Response.Error

Field Type Label Description
code Rpc.Object.RelationOptionUpdate.Response.Error.Code
description string

Rpc.Object.RelationUpdate

Rpc.Object.RelationUpdate.Request

Field Type Label Description
contextId string
relationKey string key of relation to update
relation model.Relation

Rpc.Object.RelationUpdate.Response

Field Type Label Description
error Rpc.Object.RelationUpdate.Response.Error
event ResponseEvent

Rpc.Object.RelationUpdate.Response.Error

Field Type Label Description
code Rpc.Object.RelationUpdate.Response.Error.Code
description string

Rpc.Object.Search.Request

Field Type Label Description
filters model.Block.Content.Dataview.Filter repeated
sorts model.Block.Content.Dataview.Sort repeated
fullText string
offset int32
limit int32
objectTypeFilter string repeated additional filter by objectTypes

deprecated, to be removed | | keys | string | repeated | needed keys in details for return, when empty - will return all |

Rpc.Object.Search.Response

Field Type Label Description
error Rpc.Object.Search.Response.Error
records google.protobuf.Struct repeated

Rpc.Object.Search.Response.Error

Field Type Label Description
code Rpc.Object.Search.Response.Error.Code
description string

Rpc.Object.SearchSubscribe

Rpc.Object.SearchSubscribe.Request

Field Type Label Description
subId string (optional) subscription identifier client can provide some string or middleware will generate it automatically if subId is already registered on middleware, the new query will replace previous subscription
filters model.Block.Content.Dataview.Filter repeated filters
sorts model.Block.Content.Dataview.Sort repeated sorts
limit int64 results limit
offset int64 initial offset; middleware will find afterId
keys string repeated (required) needed keys in details for return, for object fields mw will return (and subscribe) objects as dependent
afterId string (optional) pagination: middleware will return results after given id
beforeId string (optional) pagination: middleware will return results before given id
source string repeated
ignoreWorkspace string
noDepSubscription bool disable dependent subscription

Rpc.Object.SearchSubscribe.Response

Field Type Label Description
error Rpc.Object.SearchSubscribe.Response.Error
records google.protobuf.Struct repeated
dependencies google.protobuf.Struct repeated
subId string
counters Event.Object.Subscription.Counters

Rpc.Object.SearchSubscribe.Response.Error

Field Type Label Description
code Rpc.Object.SearchSubscribe.Response.Error.Code
description string

Rpc.Object.SearchUnsubscribe

Rpc.Object.SearchUnsubscribe.Request

Field Type Label Description
subIds string repeated

Rpc.Object.SearchUnsubscribe.Response

Field Type Label Description
error Rpc.Object.SearchUnsubscribe.Response.Error

Rpc.Object.SearchUnsubscribe.Response.Error

Field Type Label Description
code Rpc.Object.SearchUnsubscribe.Response.Error.Code
description string

Rpc.Object.SetIsArchived

Rpc.Object.SetIsArchived.Request

Field Type Label Description
contextId string
isArchived bool

Rpc.Object.SetIsArchived.Response

Field Type Label Description
error Rpc.Object.SetIsArchived.Response.Error
event ResponseEvent

Rpc.Object.SetIsArchived.Response.Error

Field Type Label Description
code Rpc.Object.SetIsArchived.Response.Error.Code
description string

Rpc.Object.SetIsFavorite

Rpc.Object.SetIsFavorite.Request

Field Type Label Description
contextId string
isFavorite bool

Rpc.Object.SetIsFavorite.Response

Field Type Label Description
error Rpc.Object.SetIsFavorite.Response.Error
event ResponseEvent

Rpc.Object.SetIsFavorite.Response.Error

Field Type Label Description
code Rpc.Object.SetIsFavorite.Response.Error.Code
description string

Rpc.Object.SetLayout

Rpc.Object.SetLayout.Request

Field Type Label Description
contextId string
layout model.ObjectType.Layout

Rpc.Object.SetLayout.Response

Field Type Label Description
error Rpc.Object.SetLayout.Response.Error
event ResponseEvent

Rpc.Object.SetLayout.Response.Error

Field Type Label Description
code Rpc.Object.SetLayout.Response.Error.Code
description string

Field Type Label Description
objectId string

Field Type Label Description
link string
error Rpc.Object.ShareByLink.Response.Error

Field Type Label Description
code Rpc.Object.ShareByLink.Response.Error.Code
description string

Rpc.Object.ToSet

Rpc.Object.ToSet.Request

Field Type Label Description
contextId string
source string repeated

Rpc.Object.ToSet.Response

Field Type Label Description
error Rpc.Object.ToSet.Response.Error
setId string

Rpc.Object.ToSet.Response.Error

Field Type Label Description
code Rpc.Object.ToSet.Response.Error.Code
description string

Rpc.ObjectDuplicate

Rpc.ObjectDuplicate.Request

Field Type Label Description
contextId string id of template block for cloning

Rpc.ObjectDuplicate.Response

Field Type Label Description
error Rpc.ObjectDuplicate.Response.Error
id string created template id

Rpc.ObjectDuplicate.Response.Error

Field Type Label Description
code Rpc.ObjectDuplicate.Response.Error.Code
description string

Rpc.ObjectList

Rpc.ObjectList.Delete

Rpc.ObjectList.Delete.Request

Deletes the object, keys from the local store and unsubscribe from remote changes. Also offloads all orphan files

Field Type Label Description
objectIds string repeated objects to remove

Rpc.ObjectList.Delete.Response

Field Type Label Description
error Rpc.ObjectList.Delete.Response.Error
event ResponseEvent

Rpc.ObjectList.Delete.Response.Error

Field Type Label Description
code Rpc.ObjectList.Delete.Response.Error.Code
description string

Rpc.ObjectList.Set

Rpc.ObjectList.Set.IsArchived

Rpc.ObjectList.Set.IsArchived.Request

Field Type Label Description
objectIds string repeated
isArchived bool

Rpc.ObjectList.Set.IsArchived.Response

Field Type Label Description
error Rpc.ObjectList.Set.IsArchived.Response.Error

Rpc.ObjectList.Set.IsArchived.Response.Error

Field Type Label Description
code Rpc.ObjectList.Set.IsArchived.Response.Error.Code
description string

Rpc.ObjectList.Set.IsFavorite

Rpc.ObjectList.Set.IsFavorite.Request

Field Type Label Description
objectIds string repeated
isFavorite bool

Rpc.ObjectList.Set.IsFavorite.Response

Field Type Label Description
error Rpc.ObjectList.Set.IsFavorite.Response.Error

Rpc.ObjectList.Set.IsFavorite.Response.Error

Field Type Label Description
code Rpc.ObjectList.Set.IsFavorite.Response.Error.Code
description string

Rpc.ObjectType

Rpc.ObjectType.Create

Rpc.ObjectType.Create.Request

Field Type Label Description
objectType model.ObjectType

Rpc.ObjectType.Create.Response

Field Type Label Description
error Rpc.ObjectType.Create.Response.Error
objectType model.ObjectType

Rpc.ObjectType.Create.Response.Error

Field Type Label Description
code Rpc.ObjectType.Create.Response.Error.Code
description string

Rpc.ObjectType.List

Rpc.ObjectType.List.Request

Rpc.ObjectType.List.Response

Field Type Label Description
error Rpc.ObjectType.List.Response.Error
objectTypes model.ObjectType repeated

Rpc.ObjectType.List.Response.Error

Field Type Label Description
code Rpc.ObjectType.List.Response.Error.Code
description string

Rpc.ObjectType.Relation

Rpc.ObjectType.Relation.Add

Rpc.ObjectType.Relation.Add.Request

Field Type Label Description
objectTypeUrl string
relations model.Relation repeated

Rpc.ObjectType.Relation.Add.Response

Field Type Label Description
error Rpc.ObjectType.Relation.Add.Response.Error
relations model.Relation repeated

Rpc.ObjectType.Relation.Add.Response.Error

Field Type Label Description
code Rpc.ObjectType.Relation.Add.Response.Error.Code
description string

Rpc.ObjectType.Relation.List

Rpc.ObjectType.Relation.List.Request

Field Type Label Description
objectTypeUrl string
appendRelationsFromOtherTypes bool add relations from other object types in the end

Rpc.ObjectType.Relation.List.Response

Field Type Label Description
error Rpc.ObjectType.Relation.List.Response.Error
relations model.Relation repeated

Rpc.ObjectType.Relation.List.Response.Error

Field Type Label Description
code Rpc.ObjectType.Relation.List.Response.Error.Code
description string

Rpc.ObjectType.Relation.Remove

Rpc.ObjectType.Relation.Remove.Request

Field Type Label Description
objectTypeUrl string
relationKey string

Rpc.ObjectType.Relation.Remove.Response

Field Type Label Description
error Rpc.ObjectType.Relation.Remove.Response.Error

Rpc.ObjectType.Relation.Remove.Response.Error

Field Type Label Description
code Rpc.ObjectType.Relation.Remove.Response.Error.Code
description string

Rpc.ObjectType.Relation.Update

Rpc.ObjectType.Relation.Update.Request

Field Type Label Description
objectTypeUrl string
relation model.Relation

Rpc.ObjectType.Relation.Update.Response

Field Type Label Description
error Rpc.ObjectType.Relation.Update.Response.Error

Rpc.ObjectType.Relation.Update.Response.Error

Field Type Label Description
code Rpc.ObjectType.Relation.Update.Response.Error.Code
description string

Rpc.Page

Rpc.Page.Create

Rpc.Page.Create.Request

Field Type Label Description
details google.protobuf.Struct page details

Rpc.Page.Create.Response

Field Type Label Description
error Rpc.Page.Create.Response.Error
pageId string
event ResponseEvent

Rpc.Page.Create.Response.Error

Field Type Label Description
code Rpc.Page.Create.Response.Error.Code
description string

Rpc.Ping

Rpc.Ping.Request

Field Type Label Description
index int32
numberOfEventsToSend int32

Rpc.Ping.Response

Field Type Label Description
error Rpc.Ping.Response.Error
index int32

Rpc.Ping.Response.Error

Field Type Label Description
code Rpc.Ping.Response.Error.Code
description string

Rpc.Process

Rpc.Process.Cancel

Rpc.Process.Cancel.Request

Field Type Label Description
id string

Rpc.Process.Cancel.Response

Field Type Label Description
error Rpc.Process.Cancel.Response.Error

Rpc.Process.Cancel.Response.Error

Field Type Label Description
code Rpc.Process.Cancel.Response.Error.Code
description string

Rpc.Set

Rpc.Set.Create

Rpc.Set.Create.Request

Field Type Label Description
source string repeated
details google.protobuf.Struct if omitted the name of page will be the same with object type
templateId string optional template id for creating from template

Rpc.Set.Create.Response

Field Type Label Description
error Rpc.Set.Create.Response.Error
id string
event ResponseEvent

Rpc.Set.Create.Response.Error

Field Type Label Description
code Rpc.Set.Create.Response.Error.Code
description string

Rpc.Shutdown

Rpc.Shutdown.Request

Rpc.Shutdown.Response

Field Type Label Description
error Rpc.Shutdown.Response.Error

Rpc.Shutdown.Response.Error

Field Type Label Description
code Rpc.Shutdown.Response.Error.Code
description string

Rpc.UnsplashDownload

Rpc.UnsplashDownload.Request

Field Type Label Description
pictureId string

Rpc.UnsplashDownload.Response

Field Type Label Description
error Rpc.UnsplashDownload.Response.Error
hash string

Rpc.UnsplashDownload.Response.Error

Field Type Label Description
code Rpc.UnsplashDownload.Response.Error.Code
description string

Rpc.UnsplashSearch

Rpc.UnsplashSearch.Request

Field Type Label Description
query string empty means random images
limit int32 may be omitted if the request was cached previously with another limit

Rpc.UnsplashSearch.Response

Field Type Label Description
error Rpc.UnsplashSearch.Response.Error
pictures Rpc.UnsplashSearch.Response.Picture repeated

Rpc.UnsplashSearch.Response.Error

Field Type Label Description
code Rpc.UnsplashSearch.Response.Error.Code
description string

Rpc.UnsplashSearch.Response.Picture

Field Type Label Description
id string
url string
artist string
artistUrl string

Rpc.UploadFile

Rpc.UploadFile.Request

Field Type Label Description
url string
localPath string
type model.Block.Content.File.Type
disableEncryption bool deprecated, has no affect
style model.Block.Content.File.Style

Rpc.UploadFile.Response

Field Type Label Description
error Rpc.UploadFile.Response.Error
hash string

Rpc.UploadFile.Response.Error

Field Type Label Description
code Rpc.UploadFile.Response.Error.Code
description string

Rpc.Version

Get info about a version of a middleware. Info is a string, that contains: BuildDate, GitCommit, GitBranch, GitState

Rpc.Version.Get

Rpc.Version.Get.Request

Rpc.Version.Get.Response

Field Type Label Description
error Rpc.Version.Get.Response.Error
version string
details string build date, branch and commit

Rpc.Version.Get.Response.Error

Field Type Label Description
code Rpc.Version.Get.Response.Error.Code
description string

Rpc.Wallet

Namespace, that aggregates subtopics and actions, that relates to wallet.

Rpc.Wallet.Convert

Rpc.Wallet.Convert.Request

Field Type Label Description
mnemonic string Mnemonic of a wallet to convert
entropy string entropy of a wallet to convert

Rpc.Wallet.Convert.Response

Field Type Label Description
error Rpc.Wallet.Convert.Response.Error Error while trying to recover a wallet
entropy string
mnemonic string

Rpc.Wallet.Convert.Response.Error

Field Type Label Description
code Rpc.Wallet.Convert.Response.Error.Code
description string

Rpc.Wallet.Create

Rpc.Wallet.Create.Request

Front-end-to-middleware request to create a new wallet

Field Type Label Description
rootPath string Path to a wallet directory

Rpc.Wallet.Create.Response

Middleware-to-front-end response, that can contain mnemonic of a created account and a NULL error or an empty mnemonic and a non-NULL error

Field Type Label Description
error Rpc.Wallet.Create.Response.Error
mnemonic string Mnemonic of a new account (sequence of words, divided by spaces)

Rpc.Wallet.Create.Response.Error

Field Type Label Description
code Rpc.Wallet.Create.Response.Error.Code
description string

Rpc.Wallet.Recover

Rpc.Wallet.Recover.Request

Front end to middleware request-to-recover-a wallet with this mnemonic and a rootPath

Field Type Label Description
rootPath string Path to a wallet directory
mnemonic string Mnemonic of a wallet to recover

Rpc.Wallet.Recover.Response

Middleware-to-front-end response, that can contain a NULL error or a non-NULL error

Field Type Label Description
error Rpc.Wallet.Recover.Response.Error Error while trying to recover a wallet

Rpc.Wallet.Recover.Response.Error

Field Type Label Description
code Rpc.Wallet.Recover.Response.Error.Code
description string

Rpc.Workspace

Rpc.Workspace.Create

Rpc.Workspace.Create.Request

Field Type Label Description
name string

Rpc.Workspace.Create.Response

Field Type Label Description
error Rpc.Workspace.Create.Response.Error
workspaceId string

Rpc.Workspace.Create.Response.Error

Field Type Label Description
code Rpc.Workspace.Create.Response.Error.Code
description string

Rpc.Workspace.GetAll

Rpc.Workspace.GetAll.Request

Rpc.Workspace.GetAll.Response

Field Type Label Description
error Rpc.Workspace.GetAll.Response.Error
workspaceIds string repeated

Rpc.Workspace.GetAll.Response.Error

Field Type Label Description
code Rpc.Workspace.GetAll.Response.Error.Code
description string

Rpc.Workspace.GetCurrent

Rpc.Workspace.GetCurrent.Request

Rpc.Workspace.GetCurrent.Response

Field Type Label Description
error Rpc.Workspace.GetCurrent.Response.Error
workspaceId string

Rpc.Workspace.GetCurrent.Response.Error

Field Type Label Description
code Rpc.Workspace.GetCurrent.Response.Error.Code
description string

Rpc.Workspace.Select

Rpc.Workspace.Select.Request

Field Type Label Description
workspaceId string

Rpc.Workspace.Select.Response

Field Type Label Description
error Rpc.Workspace.Select.Response.Error

Rpc.Workspace.Select.Response.Error

Field Type Label Description
code Rpc.Workspace.Select.Response.Error.Code
description string

Rpc.Workspace.SetIsHighlighted

Rpc.Workspace.SetIsHighlighted.Request

Field Type Label Description
objectId string
isHighlighted bool

Rpc.Workspace.SetIsHighlighted.Response

Field Type Label Description
error Rpc.Workspace.SetIsHighlighted.Response.Error

Rpc.Workspace.SetIsHighlighted.Response.Error

Field Type Label Description
code Rpc.Workspace.SetIsHighlighted.Response.Error.Code
description string

Rpc.Account.Create.Response.Error.Code

Name Number Description
NULL 0 No error; Account should be non-empty
UNKNOWN_ERROR 1 Any other errors
BAD_INPUT 2 Avatar or name is not correct
ACCOUNT_CREATED_BUT_FAILED_TO_START_NODE 101
ACCOUNT_CREATED_BUT_FAILED_TO_SET_NAME 102
ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR 103
FAILED_TO_STOP_RUNNING_NODE 104
BAD_INVITE_CODE 900
NET_ERROR 901 means general network error
NET_CONNECTION_REFUSED 902 means we wasn't able to connect to the cafe server
NET_OFFLINE 903 client can additionally support this error code to notify user that device is offline

Rpc.Account.Recover.Response.Error.Code

Name Number Description
NULL 0 No error;
UNKNOWN_ERROR 1 Any other errors
BAD_INPUT 2
NO_ACCOUNTS_FOUND 101
NEED_TO_RECOVER_WALLET_FIRST 102
FAILED_TO_CREATE_LOCAL_REPO 103
LOCAL_REPO_EXISTS_BUT_CORRUPTED 104
FAILED_TO_RUN_NODE 105
WALLET_RECOVER_NOT_PERFORMED 106
FAILED_TO_STOP_RUNNING_NODE 107
ANOTHER_ANYTYPE_PROCESS_IS_RUNNING 108

Rpc.Account.Select.Response.Error.Code

Name Number Description
NULL 0 No error
UNKNOWN_ERROR 1 Any other errors
BAD_INPUT 2 Id or root path is wrong
FAILED_TO_CREATE_LOCAL_REPO 101
LOCAL_REPO_EXISTS_BUT_CORRUPTED 102
FAILED_TO_RUN_NODE 103
FAILED_TO_FIND_ACCOUNT_INFO 104
LOCAL_REPO_NOT_EXISTS_AND_MNEMONIC_NOT_SET 105
FAILED_TO_STOP_SEARCHER_NODE 106
FAILED_TO_RECOVER_PREDEFINED_BLOCKS 107
ANOTHER_ANYTYPE_PROCESS_IS_RUNNING 108

Rpc.Account.Stop.Response.Error.Code

Name Number Description
NULL 0 No error
UNKNOWN_ERROR 1 Any other errors
BAD_INPUT 2 Id or root path is wrong
ACCOUNT_IS_NOT_RUNNING 101
FAILED_TO_STOP_NODE 102
FAILED_TO_REMOVE_ACCOUNT_DATA 103

Rpc.ApplyTemplate.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Bookmark.CreateAndFetch.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2

Rpc.Block.Bookmark.Fetch.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2

Rpc.Block.Close.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Copy.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Create.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.CreatePage.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.CreateSet.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2
UNKNOWN_OBJECT_TYPE_URL 3 ...

Rpc.Block.Cut.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Dataview.RecordCreate.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Dataview.RecordDelete.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Dataview.RecordRelationOptionAdd.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2

Rpc.Block.Dataview.RecordRelationOptionDelete.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2

Rpc.Block.Dataview.RecordRelationOptionUpdate.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2

Rpc.Block.Dataview.RecordUpdate.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Dataview.RelationAdd.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2

Rpc.Block.Dataview.RelationDelete.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2

Rpc.Block.Dataview.RelationListAvailable.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2
NOT_A_DATAVIEW_BLOCK 3 ...

Rpc.Block.Dataview.RelationUpdate.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2

Rpc.Block.Dataview.SetSource.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2

Rpc.Block.Dataview.ViewCreate.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Dataview.ViewDelete.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Dataview.ViewSetActive.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Dataview.ViewSetPosition.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Dataview.ViewUpdate.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Download.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Export.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.File.CreateAndUpload.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2

Rpc.Block.Get.Marks.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.GetPublicWebURL.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.ImportMarkdown.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Merge.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.ObjectType.Set.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2
UNKNOWN_OBJECT_TYPE_URL 3

Rpc.Block.Open.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2
NOT_FOUND 3
ANYTYPE_NEEDS_UPGRADE 10 failed to read unknown data format need to upgrade anytype

Rpc.Block.OpenBreadcrumbs.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Paste.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Redo.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2
CAN_NOT_MOVE 3 ...

Rpc.Block.Relation.Add.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2

Rpc.Block.Relation.SetKey.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2

Rpc.Block.Replace.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Set.Details.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Set.Fields.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Set.File.Name.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Set.Image.Name.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Set.Image.Width.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Set.Latex.Text.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Set.Page.IsArchived.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Set.Restrictions.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Set.Text.Checked.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Set.Text.Color.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Set.Text.Icon.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Set.Text.Style.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Set.Text.Text.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Set.Video.Name.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Set.Video.Width.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.SetBreadcrumbs.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Show.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2
NOT_FOUND 3
ANYTYPE_NEEDS_UPGRADE 10 failed to read unknown data format need to upgrade anytype

Rpc.Block.Split.Request.Mode

Name Number Description
BOTTOM 0 new block will be created under existing
TOP 1 new block will be created above existing
INNER 2 new block will be created as the first children of existing
TITLE 3 new block will be created after header (not required for set at client side, will auto set for title block)

Rpc.Block.Split.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Undo.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2
CAN_NOT_MOVE 3 ...

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.UpdateContent.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Block.Upload.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.BlockList.ConvertChildrenToPages.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.BlockList.Duplicate.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.BlockList.Move.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.BlockList.MoveToNewPage.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.BlockList.Set.Align.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.BlockList.Set.BackgroundColor.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.BlockList.Set.Div.Style.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.BlockList.Set.Fields.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.BlockList.Set.File.Style.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.BlockList.Set.Text.Color.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.BlockList.Set.Text.Mark.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.BlockList.Set.Text.Style.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.BlockList.TurnInto.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.CloneTemplate.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Config.Get.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2
NODE_NOT_STARTED 101

Rpc.Debug.Sync.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Debug.Thread.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Debug.Tree.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.DownloadFile.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2
NOT_FOUND 3

Rpc.Export.Format

Name Number Description
Markdown 0
Protobuf 1
JSON 2
DOT 3
SVG 4
GRAPH_JSON 5

Rpc.Export.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.ExportLocalstore.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.ExportTemplates.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.ExportWorkspace.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.ExternalDrop.Content.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.ExternalDrop.Files.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.File.Offload.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2
NODE_NOT_STARTED 103 ...
FILE_NOT_YET_PINNED 104

Rpc.FileList.Offload.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2
NODE_NOT_STARTED 103 ...

Rpc.GenericErrorResponse.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.History.SetVersion.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.History.Show.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.History.Versions.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.LinkPreview.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2

Rpc.Log.Send.Request.Level

Name Number Description
DEBUG 0
ERROR 1
FATAL 2
INFO 3
PANIC 4
WARNING 5

Rpc.Log.Send.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2
NOT_FOUND 101
TIMEOUT 102

Rpc.MakeTemplate.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.MakeTemplateByObjectType.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Metrics.SetParameters.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Navigation.Context

Name Number Description
Navigation 0
MoveTo 1 do not show sets/archive
LinkTo 2 same for mention, do not show sets/archive

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Navigation.ListObjects.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Object.AddWithObjectId.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Object.FeaturedRelation.Add.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Object.FeaturedRelation.Remove.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Object.Graph.Edge.Type

Name Number Description
Link 0
Relation 1

Rpc.Object.Graph.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Object.IdsSubscribe.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Object.RelationAdd.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2
ALREADY_EXISTS 10

Rpc.Object.RelationDelete.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2

Rpc.Object.RelationListAvailable.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Object.RelationOptionAdd.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2

Rpc.Object.RelationOptionDelete.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2
SOME_RECORDS_HAS_RELATION_VALUE_WITH_THIS_OPTION 3 need to confirm with confirmRemoveAllValuesInRecords=true

Rpc.Object.RelationOptionUpdate.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2

Rpc.Object.RelationUpdate.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2

Rpc.Object.Search.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Object.SearchSubscribe.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Object.SearchUnsubscribe.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2

Rpc.Object.SetIsArchived.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Object.SetIsFavorite.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Object.SetLayout.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Object.ToSet.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.ObjectDuplicate.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.ObjectList.Delete.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.ObjectList.Set.IsArchived.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.ObjectList.Set.IsFavorite.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.ObjectType.Create.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2
UNKNOWN_OBJECT_TYPE_URL 3 ...

Rpc.ObjectType.List.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.ObjectType.Relation.Add.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2
UNKNOWN_OBJECT_TYPE_URL 3
READONLY_OBJECT_TYPE 4 ...

Rpc.ObjectType.Relation.List.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2
UNKNOWN_OBJECT_TYPE_URL 3 ...

Rpc.ObjectType.Relation.Remove.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2
UNKNOWN_OBJECT_TYPE_URL 3
READONLY_OBJECT_TYPE 4 ...

Rpc.ObjectType.Relation.Update.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2
UNKNOWN_OBJECT_TYPE_URL 3
READONLY_OBJECT_TYPE 4 ...

Rpc.Page.Create.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Ping.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2

Rpc.Process.Cancel.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2

Rpc.Set.Create.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2
UNKNOWN_OBJECT_TYPE_URL 3

Rpc.Shutdown.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2
NODE_NOT_STARTED 101

Rpc.UnsplashDownload.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2
RATE_LIMIT_EXCEEDED 100 ...

Rpc.UnsplashSearch.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2
RATE_LIMIT_EXCEEDED 100 ...

Rpc.UploadFile.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2

Rpc.Version.Get.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2
VERSION_IS_EMPTY 3
NOT_FOUND 101
TIMEOUT 102

Rpc.Wallet.Convert.Response.Error.Code

Name Number Description
NULL 0 No error; wallet successfully recovered
UNKNOWN_ERROR 1 Any other errors
BAD_INPUT 2 mnemonic is wrong

Rpc.Wallet.Create.Response.Error.Code

Name Number Description
NULL 0 No error; mnemonic should be non-empty
UNKNOWN_ERROR 1 Any other errors
BAD_INPUT 2 Root path is wrong
FAILED_TO_CREATE_LOCAL_REPO 101 ...

Rpc.Wallet.Recover.Response.Error.Code

Name Number Description
NULL 0 No error; wallet successfully recovered
UNKNOWN_ERROR 1 Any other errors
BAD_INPUT 2 Root path or mnemonic is wrong
FAILED_TO_CREATE_LOCAL_REPO 101

Rpc.Workspace.Create.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Workspace.GetAll.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Workspace.GetCurrent.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Workspace.Select.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Rpc.Workspace.SetIsHighlighted.Response.Error.Code

Name Number Description
NULL 0
UNKNOWN_ERROR 1
BAD_INPUT 2 ...

Top

pb/protos/events.proto

Event

Event type of message, that could be sent from a middleware to the corresponding front-end.

Field Type Label Description
messages Event.Message repeated
contextId string
initiator model.Account
traceId string

Event.Account

Event.Account.Config

Event.Account.Config.Update

Field Type Label Description
config model.Account.Config

Event.Account.Details

Field Type Label Description
profileId string
details google.protobuf.Struct

Event.Account.Show

Message, that will be sent to the front on each account found after an AccountRecoverRequest

Field Type Label Description
index int32 Number of an account in an all found accounts list
account model.Account An Account, that has been found for the mnemonic

Event.Block

Event.Block.Add

Event to show internal blocks on a client. Example Scenarios A. Block Creation

  1. Block A have been created on a client C1
  2. Client C2 receives Event.Block.Add(Block A), Event.Block.Update(Page.children) B. Partial block load
  3. Client C1 opens Page1, that contains, for example, 133 blocks.
  4. M -> F: ShowFullScreen(Root, blocks1-50)
  5. M -> F: Block.Add(blocks51-100)
  6. M -> F: Block.Add(blocks101-133)
Field Type Label Description
blocks model.Block repeated id -> block

Event.Block.Dataview

Event.Block.Dataview.RelationDelete

Field Type Label Description
id string dataview block's id
relationKey string relation key to remove

Event.Block.Dataview.RelationSet

sent when the dataview relation has been changed or added

Field Type Label Description
id string dataview block's id
relationKey string relation key to update
relation model.Relation

Event.Block.Dataview.SourceSet

Field Type Label Description
id string dataview block's id
source string repeated

Event.Block.Dataview.ViewDelete

Field Type Label Description
id string dataview block's id
viewId string view id to remove

Event.Block.Dataview.ViewOrder

Field Type Label Description
id string dataview block's id
viewIds string repeated view ids in new order

Event.Block.Dataview.ViewSet

sent when the view have been changed or added

Field Type Label Description
id string dataview block's id
viewId string view id, client should double check this to make sure client doesn't switch the active view in the middle
view model.Block.Content.Dataview.View
offset uint32 middleware will try to preserve the current aciveview's offset&limit but may reset it in case it becomes invalid or not actual anymore
limit uint32

Event.Block.Delete

Field Type Label Description
blockIds string repeated

Event.Block.FilesUpload

Middleware to front end event message, that will be sent on one of this scenarios: Precondition: user A opened a block

  1. User A drops a set of files/pictures/videos
  2. User A creates a MediaBlock and drops a single media, that corresponds to its type.
Field Type Label Description
blockId string if empty => create new blocks
filePath string repeated filepaths to the files

Event.Block.Fill

Event.Block.Fill.Align

Field Type Label Description
id string
align model.Block.Align

Event.Block.Fill.BackgroundColor

Field Type Label Description
id string
backgroundColor string

Event.Block.Fill.Bookmark

Field Type Label Description
id string
url Event.Block.Fill.Bookmark.Url
title Event.Block.Fill.Bookmark.Title
description Event.Block.Fill.Bookmark.Description
imageHash Event.Block.Fill.Bookmark.ImageHash
faviconHash Event.Block.Fill.Bookmark.FaviconHash
type Event.Block.Fill.Bookmark.Type

Event.Block.Fill.Bookmark.Description

Field Type Label Description
value string

Event.Block.Fill.Bookmark.FaviconHash

Field Type Label Description
value string

Event.Block.Fill.Bookmark.ImageHash

Field Type Label Description
value string

Event.Block.Fill.Bookmark.Title

Field Type Label Description
value string

Event.Block.Fill.Bookmark.Type

Field Type Label Description
value model.LinkPreview.Type

Event.Block.Fill.Bookmark.Url

Field Type Label Description
value string

Event.Block.Fill.ChildrenIds

Field Type Label Description
id string
childrenIds string repeated

Event.Block.Fill.DatabaseRecords

Field Type Label Description
id string
records google.protobuf.Struct repeated

Event.Block.Fill.Details

Field Type Label Description
id string
details google.protobuf.Struct

Event.Block.Fill.Div

Field Type Label Description
id string
style Event.Block.Fill.Div.Style

Event.Block.Fill.Div.Style

Field Type Label Description
value model.Block.Content.Div.Style

Event.Block.Fill.Fields

Field Type Label Description
id string
fields google.protobuf.Struct

Event.Block.Fill.File

Field Type Label Description
id string
type Event.Block.Fill.File.Type
state Event.Block.Fill.File.State
mime Event.Block.Fill.File.Mime
hash Event.Block.Fill.File.Hash
name Event.Block.Fill.File.Name
size Event.Block.Fill.File.Size
style Event.Block.Fill.File.Style

Event.Block.Fill.File.Hash

Field Type Label Description
value string

Event.Block.Fill.File.Mime

Field Type Label Description
value string

Event.Block.Fill.File.Name

Field Type Label Description
value string

Event.Block.Fill.File.Size

Field Type Label Description
value int64

Event.Block.Fill.File.State

Field Type Label Description
value model.Block.Content.File.State

Event.Block.Fill.File.Style

Field Type Label Description
value model.Block.Content.File.Style

Event.Block.Fill.File.Type

Field Type Label Description
value model.Block.Content.File.Type

Event.Block.Fill.File.Width

Field Type Label Description
value int32

Field Type Label Description
id string
targetBlockId Event.Block.Fill.Link.TargetBlockId
style Event.Block.Fill.Link.Style
fields Event.Block.Fill.Link.Fields

Field Type Label Description
value google.protobuf.Struct

Field Type Label Description
value model.Block.Content.Link.Style

Field Type Label Description
value string

Event.Block.Fill.Restrictions

Field Type Label Description
id string
restrictions model.Block.Restrictions

Event.Block.Fill.Text

Field Type Label Description
id string
text Event.Block.Fill.Text.Text
style Event.Block.Fill.Text.Style
marks Event.Block.Fill.Text.Marks
checked Event.Block.Fill.Text.Checked
color Event.Block.Fill.Text.Color

Event.Block.Fill.Text.Checked

Field Type Label Description
value bool

Event.Block.Fill.Text.Color

Field Type Label Description
value string

Event.Block.Fill.Text.Marks

Field Type Label Description
value model.Block.Content.Text.Marks

Event.Block.Fill.Text.Style

Field Type Label Description
value model.Block.Content.Text.Style

Event.Block.Fill.Text.Text

Field Type Label Description
value string

Event.Block.MarksInfo

Field Type Label Description
marksInRange model.Block.Content.Text.Mark.Type repeated

Event.Block.Set

Event.Block.Set.Align

Field Type Label Description
id string
align model.Block.Align

Event.Block.Set.BackgroundColor

Field Type Label Description
id string
backgroundColor string

Event.Block.Set.Bookmark

Field Type Label Description
id string
url Event.Block.Set.Bookmark.Url
title Event.Block.Set.Bookmark.Title
description Event.Block.Set.Bookmark.Description
imageHash Event.Block.Set.Bookmark.ImageHash
faviconHash Event.Block.Set.Bookmark.FaviconHash
type Event.Block.Set.Bookmark.Type

Event.Block.Set.Bookmark.Description

Field Type Label Description
value string

Event.Block.Set.Bookmark.FaviconHash

Field Type Label Description
value string

Event.Block.Set.Bookmark.ImageHash

Field Type Label Description
value string

Event.Block.Set.Bookmark.Title

Field Type Label Description
value string

Event.Block.Set.Bookmark.Type

Field Type Label Description
value model.LinkPreview.Type

Event.Block.Set.Bookmark.Url

Field Type Label Description
value string

Event.Block.Set.ChildrenIds

Field Type Label Description
id string
childrenIds string repeated

Event.Block.Set.Div

Field Type Label Description
id string
style Event.Block.Set.Div.Style

Event.Block.Set.Div.Style

Field Type Label Description
value model.Block.Content.Div.Style

Event.Block.Set.Fields

Field Type Label Description
id string
fields google.protobuf.Struct

Event.Block.Set.File

Field Type Label Description
id string
type Event.Block.Set.File.Type
state Event.Block.Set.File.State
mime Event.Block.Set.File.Mime
hash Event.Block.Set.File.Hash
name Event.Block.Set.File.Name
size Event.Block.Set.File.Size
style Event.Block.Set.File.Style

Event.Block.Set.File.Hash

Field Type Label Description
value string

Event.Block.Set.File.Mime

Field Type Label Description
value string

Event.Block.Set.File.Name

Field Type Label Description
value string

Event.Block.Set.File.Size

Field Type Label Description
value int64

Event.Block.Set.File.State

Field Type Label Description
value model.Block.Content.File.State

Event.Block.Set.File.Style

Field Type Label Description
value model.Block.Content.File.Style

Event.Block.Set.File.Type

Field Type Label Description
value model.Block.Content.File.Type

Event.Block.Set.File.Width

Field Type Label Description
value int32

Event.Block.Set.Latex

Field Type Label Description
id string
text Event.Block.Set.Latex.Text

Event.Block.Set.Latex.Text

Field Type Label Description
value string

Field Type Label Description
id string
targetBlockId Event.Block.Set.Link.TargetBlockId
style Event.Block.Set.Link.Style
fields Event.Block.Set.Link.Fields

Field Type Label Description
value google.protobuf.Struct

Field Type Label Description
value model.Block.Content.Link.Style

Field Type Label Description
value string

Event.Block.Set.Relation

Field Type Label Description
id string
key Event.Block.Set.Relation.Key

Event.Block.Set.Relation.Key

Field Type Label Description
value string

Event.Block.Set.Restrictions

Field Type Label Description
id string
restrictions model.Block.Restrictions

Event.Block.Set.Text

Field Type Label Description
id string
text Event.Block.Set.Text.Text
style Event.Block.Set.Text.Style
marks Event.Block.Set.Text.Marks
checked Event.Block.Set.Text.Checked
color Event.Block.Set.Text.Color
iconEmoji Event.Block.Set.Text.IconEmoji
iconImage Event.Block.Set.Text.IconImage

Event.Block.Set.Text.Checked

Field Type Label Description
value bool

Event.Block.Set.Text.Color

Field Type Label Description
value string

Event.Block.Set.Text.IconEmoji

Field Type Label Description
value string

Event.Block.Set.Text.IconImage

Field Type Label Description
value string

Event.Block.Set.Text.Marks

Field Type Label Description
value model.Block.Content.Text.Marks

Event.Block.Set.Text.Style

Field Type Label Description
value model.Block.Content.Text.Style

Event.Block.Set.Text.Text

Field Type Label Description
value string

Event.Message

Field Type Label Description
accountShow Event.Account.Show
accountDetails Event.Account.Details
accountConfigUpdate Event.Account.Config.Update
objectDetailsSet Event.Object.Details.Set
objectDetailsAmend Event.Object.Details.Amend
objectDetailsUnset Event.Object.Details.Unset
objectRelationsSet Event.Object.Relations.Set
objectRelationsAmend Event.Object.Relations.Amend
objectRelationsRemove Event.Object.Relations.Remove
objectRemove Event.Object.Remove
objectShow Event.Object.Show
objectRestrictions Event.Object.Restriction
subscriptionAdd Event.Object.Subscription.Add
subscriptionRemove Event.Object.Subscription.Remove
subscriptionPosition Event.Object.Subscription.Position
subscriptionCounters Event.Object.Subscription.Counters
blockAdd Event.Block.Add
blockDelete Event.Block.Delete
filesUpload Event.Block.FilesUpload
marksInfo Event.Block.MarksInfo
blockSetFields Event.Block.Set.Fields
blockSetChildrenIds Event.Block.Set.ChildrenIds
blockSetRestrictions Event.Block.Set.Restrictions
blockSetBackgroundColor Event.Block.Set.BackgroundColor
blockSetText Event.Block.Set.Text
blockSetFile Event.Block.Set.File
blockSetLink Event.Block.Set.Link
blockSetBookmark Event.Block.Set.Bookmark
blockSetAlign Event.Block.Set.Align
blockSetDiv Event.Block.Set.Div
blockSetRelation Event.Block.Set.Relation
blockSetLatex Event.Block.Set.Latex
blockDataviewSourceSet Event.Block.Dataview.SourceSet
blockDataviewViewSet Event.Block.Dataview.ViewSet
blockDataviewViewDelete Event.Block.Dataview.ViewDelete
blockDataviewViewOrder Event.Block.Dataview.ViewOrder
blockDataviewRelationDelete Event.Block.Dataview.RelationDelete
blockDataviewRelationSet Event.Block.Dataview.RelationSet
userBlockJoin Event.User.Block.Join
userBlockLeft Event.User.Block.Left
userBlockSelectRange Event.User.Block.SelectRange
userBlockTextRange Event.User.Block.TextRange
ping Event.Ping
processNew Event.Process.New
processUpdate Event.Process.Update
processDone Event.Process.Done
threadStatus Event.Status.Thread

Event.Object

Event.Object.Details

Event.Object.Details.Amend

Amend (i.e. add a new key-value pair or update an existing key-value pair) existing state

Field Type Label Description
id string context objectId
details Event.Object.Details.Amend.KeyValue repeated slice of changed key-values
subIds string repeated

Event.Object.Details.Amend.KeyValue

Field Type Label Description
key string
value google.protobuf.Value should not be null

Event.Object.Details.Set

Overwrite current state

Field Type Label Description
id string context objectId
details google.protobuf.Struct can not be a partial state. Should replace client details state
subIds string repeated

Event.Object.Details.Unset

Unset existing detail keys

Field Type Label Description
id string context objectId
keys string repeated
subIds string repeated

Event.Object.Relation

Event.Object.Relation.Remove

Field Type Label Description
id string context objectId
relationKey string

Event.Object.Relation.Set

Field Type Label Description
id string context objectId
relationKey string
relation model.Relation missing value means relation should be removed

Event.Object.Relations

Event.Object.Relations.Amend

Field Type Label Description
id string context objectId
relations model.Relation repeated

Event.Object.Relations.Remove

Field Type Label Description
id string context objectId
keys string repeated

Event.Object.Relations.Set

Field Type Label Description
id string context objectId
relations model.Relation repeated

Event.Object.Remove

Field Type Label Description
ids string repeated notifies that objects were removed

Event.Object.Restriction

Field Type Label Description
id string
restrictions model.Restrictions

Event.Object.Show

Works with a smart blocks: Page, Dashboard Dashboard opened, click on a page, Rpc.Block.open, Block.ShowFullscreen(PageBlock)

Field Type Label Description
rootId string Root block id
blocks model.Block repeated dependent simple blocks (descendants)
details Event.Object.Details.Set repeated details for the current and dependent objects
type model.SmartBlockType
objectTypes model.ObjectType repeated objectTypes contains ONLY to get layouts for the actual and all dependent objects. Relations are currently omitted // todo: switch to other pb model
relations model.Relation repeated combined relations of object's type + extra relations. If object doesn't has some relation key in the details this means client should hide it and only suggest when adding existing one
restrictions model.Restrictions object restrictions

Event.Object.Show.RelationWithValuePerObject

Field Type Label Description
objectId string
relations model.RelationWithValue repeated

Event.Object.Subscription

Event.Object.Subscription.Add

Adds new document to subscriptions

Field Type Label Description
id string object id
afterId string id of previous doc in order, empty means first
subId string subscription id

Event.Object.Subscription.Counters

Field Type Label Description
total int64 total available records
nextCount int64 how many records available after
prevCount int64 how many records available before
subId string subscription id

Event.Object.Subscription.Position

Indicates new position of document

Field Type Label Description
id string object id
afterId string id of previous doc in order, empty means first
subId string subscription id

Event.Object.Subscription.Remove

Removes document from subscription

Field Type Label Description
id string object id
subId string subscription id

Event.Ping

Field Type Label Description
index int32

Event.Process

Event.Process.Done

Field Type Label Description
process Model.Process

Event.Process.New

Field Type Label Description
process Model.Process

Event.Process.Update

Field Type Label Description
process Model.Process

Event.Status

Event.Status.Thread

Field Type Label Description
summary Event.Status.Thread.Summary
cafe Event.Status.Thread.Cafe
accounts Event.Status.Thread.Account repeated

Event.Status.Thread.Account

Field Type Label Description
id string
name string
imageHash string
online bool
lastPulled int64
lastEdited int64
devices Event.Status.Thread.Device repeated

Event.Status.Thread.Cafe

Field Type Label Description
status Event.Status.Thread.SyncStatus
lastPulled int64
lastPushSucceed bool
files Event.Status.Thread.Cafe.PinStatus

Event.Status.Thread.Cafe.PinStatus

Field Type Label Description
pinning int32
pinned int32
failed int32
updated int64

Event.Status.Thread.Device

Field Type Label Description
name string
online bool
lastPulled int64
lastEdited int64

Event.Status.Thread.Summary

Field Type Label Description
status Event.Status.Thread.SyncStatus

Event.User

Event.User.Block

Event.User.Block.Join

Middleware to front end event message, that will be sent in this scenario: Precondition: user A opened a block

  1. User B opens the same block
  2. User A receives a message about p.1
Field Type Label Description
account Event.Account Account of the user, that opened a block

Event.User.Block.Left

Middleware to front end event message, that will be sent in this scenario: Precondition: user A and user B opened the same block

  1. User B closes the block
  2. User A receives a message about p.1
Field Type Label Description
account Event.Account Account of the user, that left the block

Event.User.Block.SelectRange

Middleware to front end event message, that will be sent in this scenario: Precondition: user A and user B opened the same block

  1. User B selects some inner blocks
  2. User A receives a message about p.1
Field Type Label Description
account Event.Account Account of the user, that selected blocks
blockIdsArray string repeated Ids of selected blocks.

Event.User.Block.TextRange

Middleware to front end event message, that will be sent in this scenario: Precondition: user A and user B opened the same block

  1. User B sets cursor or selects a text region into a text block
  2. User A receives a message about p.1
Field Type Label Description
account Event.Account Account of the user, that selected a text
blockId string Id of the text block, that have a selection
range model.Range Range of the selection

Model

Model.Process

Field Type Label Description
id string
type Model.Process.Type
state Model.Process.State
progress Model.Process.Progress

Model.Process.Progress

Field Type Label Description
total int64
done int64
message string

ResponseEvent

Field Type Label Description
messages Event.Message repeated
contextId string
traceId string

Event.Status.Thread.SyncStatus

Name Number Description
Unknown 0
Offline 1
Syncing 2
Synced 3
Failed 4

Model.Process.State

Name Number Description
None 0
Running 1
Done 2
Canceled 3
Error 4

Model.Process.Type

Name Number Description
DropFiles 0
Import 1
Export 2
SaveFile 3
RecoverAccount 4

Top

pkg/lib/pb/model/protos/localstore.proto

ObjectDetails

Field Type Label Description
details google.protobuf.Struct

ObjectInfo

Field Type Label Description
id string
objectTypeUrls string repeated deprecated
details google.protobuf.Struct
relations Relation repeated
snippet string
hasInboundLinks bool
objectType SmartBlockType

Field Type Label Description
id string
info ObjectInfo
links ObjectLinksInfo

Field Type Label Description
id string
info ObjectInfo
outboundLinks ObjectInfo repeated

ObjectInfoWithOutboundLinksIDs

Field Type Label Description
id string
info ObjectInfo
outboundLinks string repeated

Field Type Label Description
inboundIDs string repeated
outboundIDs string repeated

ObjectLinksInfo

Field Type Label Description
inbound ObjectInfo repeated
outbound ObjectInfo repeated

ObjectStoreChecksums

Field Type Label Description
bundledObjectTypes string
bundledRelations string
bundledLayouts string
objectsForceReindexCounter int32 increased in order to trigger all objects reindex
filesForceReindexCounter int32 increased in order to fully reindex all objects
idxRebuildCounter int32 increased in order to remove indexes and reindex everything. Automatically triggers objects and files reindex(one time only)
fulltextRebuild int32 increased in order to perform fulltext indexing for all type of objects (useful when we change fulltext config)
bundledTemplates string
bundledObjects int32 anytypeProfile and maybe some others in the feature

Top

pkg/lib/pb/model/protos/models.proto

Account

Contains basic information about a user account

Field Type Label Description
id string User's thread id
name string User name, that associated with this account
avatar Account.Avatar Avatar of a user's account

Account.Avatar

Avatar of a user's account. It could be an image or color

Field Type Label Description
image Block.Content.File Image of the avatar. Contains the hash to retrieve the image.
color string Color of the avatar, used if image not set.

Account.Config

Field Type Label Description
enableDataview bool
enableDebug bool
enableReleaseChannelSwitch bool
enableSpaces bool
extra google.protobuf.Struct

Block

Field Type Label Description
id string
fields google.protobuf.Struct
restrictions Block.Restrictions
childrenIds string repeated
backgroundColor string
align Block.Align
smartblock Block.Content.Smartblock
text Block.Content.Text
file Block.Content.File
layout Block.Content.Layout
div Block.Content.Div
bookmark Block.Content.Bookmark
icon Block.Content.Icon
link Block.Content.Link
dataview Block.Content.Dataview
relation Block.Content.Relation
featuredRelations Block.Content.FeaturedRelations
latex Block.Content.Latex
tableOfContents Block.Content.TableOfContents

Block.Content

Block.Content.Bookmark

Bookmark is to keep a web-link and to preview a content.

Field Type Label Description
url string
title string
description string
imageHash string
faviconHash string
type LinkPreview.Type

Block.Content.Dataview

Field Type Label Description
source string repeated
views Block.Content.Dataview.View repeated
relations Relation repeated index 3 is deprecated, was used for schemaURL in old-format sets
activeView string saved within a session

Block.Content.Dataview.Filter

Field Type Label Description
operator Block.Content.Dataview.Filter.Operator looks not applicable?
RelationKey string
relationProperty string
condition Block.Content.Dataview.Filter.Condition
value google.protobuf.Value

Block.Content.Dataview.Relation

Field Type Label Description
key string
isVisible bool
width int32 the displayed column % calculated based on other visible relations
dateIncludeTime bool
timeFormat Block.Content.Dataview.Relation.TimeFormat
dateFormat Block.Content.Dataview.Relation.DateFormat

Block.Content.Dataview.Sort

Field Type Label Description
RelationKey string
type Block.Content.Dataview.Sort.Type

Block.Content.Dataview.View

Field Type Label Description
id string
type Block.Content.Dataview.View.Type
name string
sorts Block.Content.Dataview.Sort repeated
filters Block.Content.Dataview.Filter repeated
relations Block.Content.Dataview.Relation repeated relations fields/columns options, also used to provide the order
coverRelationKey string Relation used for cover in gallery
hideIcon bool Hide icon near name
cardSize Block.Content.Dataview.View.Size Gallery card size
coverFit bool Image fits container

Block.Content.Div

Divider: block, that contains only one horizontal thin line

Field Type Label Description
style Block.Content.Div.Style

Block.Content.FeaturedRelations

Block.Content.File

Field Type Label Description
hash string
name string
type Block.Content.File.Type
mime string
size int64
addedAt int64
state Block.Content.File.State
style Block.Content.File.Style

Block.Content.Icon

Field Type Label Description
name string

Block.Content.Latex

Field Type Label Description
text string

Block.Content.Layout

Layout have no visual representation, but affects on blocks, that it contains. Row/Column layout blocks creates only automatically, after some of a D&D operations, for example

Field Type Label Description
style Block.Content.Layout.Style

Link: block to link some content from an external sources.

Field Type Label Description
targetBlockId string id of the target block
style Block.Content.Link.Style deprecated
fields google.protobuf.Struct

Block.Content.Relation

Field Type Label Description
key string

Block.Content.Smartblock

Block.Content.TableOfContents

Block.Content.Text

Field Type Label Description
text string
style Block.Content.Text.Style
marks Block.Content.Text.Marks list of marks to apply to the text
checked bool
color string
iconEmoji string used with style Callout
iconImage string in case both image and emoji are set, image should has a priority in the UI

Block.Content.Text.Mark

Field Type Label Description
range Range range of symbols to apply this mark. From(symbol) To(symbol)
type Block.Content.Text.Mark.Type
param string link, color, etc

Block.Content.Text.Marks

Field Type Label Description
marks Block.Content.Text.Mark repeated

Block.Restrictions

Field Type Label Description
read bool
edit bool
remove bool
drag bool
dropOn bool

BlockMetaOnly

Used to decode block meta only, without the content itself

Field Type Label Description
id string
fields google.protobuf.Struct

Layout

Field Type Label Description
id ObjectType.Layout
name string
requiredRelations Relation repeated relations required for this object type

LinkPreview

Field Type Label Description
url string
title string
description string
imageUrl string
faviconUrl string
type LinkPreview.Type

ObjectType

Field Type Label Description
url string leave empty in case you want to create the new one
name string name of objectType (can be localized for bundled types)
relations Relation repeated cannot contain more than one Relation with the same RelationType
layout ObjectType.Layout
iconEmoji string emoji symbol
description string
hidden bool
readonly bool
types SmartBlockType repeated
isArchived bool sets locally to hide object type from set and some other places

Range

General purpose structure, uses in Mark.

Field Type Label Description
from int32
to int32

Relation

Relation describe the human-interpreted relation type. It may be something like "Date of creation, format=date" or "Assignee, format=objectId, objectType=person"

Field Type Label Description
key string Key under which the value is stored in the map. Must be unique for the object type. It usually auto-generated bsonid, but also may be something human-readable in case of prebuilt types.
format RelationFormat format of the underlying data
name string name to show (can be localized for bundled types)
defaultValue google.protobuf.Value
dataSource Relation.DataSource where the data is stored
hidden bool internal, not displayed to user (e.g. coverX, coverY)
readOnly bool value not editable by user tobe renamed to readonlyValue
readOnlyRelation bool relation metadata, eg name and format is not editable by user
multi bool allow multiple values (stored in pb list)
objectTypes string repeated URL of object type, empty to allow link to any object
selectDict Relation.Option repeated index 10, 11 was used in internal-only builds. Can be reused, but may break some test accounts

default dictionary with unique values to choose for select/multiSelect format | | maxCount | int32 | | max number of values can be set for this relation. 0 means no limit. 1 means the value can be stored in non-repeated field | | description | string | | | | scope | Relation.Scope | | on-store fields, injected only locally

scope from which this relation have been aggregated | | creator | string | | creator profile id |

Relation.Option

Field Type Label Description
id string id generated automatically if omitted
text string
color string stored
scope Relation.Option.Scope on-store contains only local-scope relations. All others injected on-the-fly

RelationOptions

Field Type Label Description
options Relation.Option repeated

RelationWithValue

Field Type Label Description
relation Relation
value google.protobuf.Value

Relations

Field Type Label Description
relations Relation repeated

Restrictions

Field Type Label Description
object Restrictions.ObjectRestriction repeated
dataview Restrictions.DataviewRestrictions repeated

Restrictions.DataviewRestrictions

Field Type Label Description
blockId string
restrictions Restrictions.DataviewRestriction repeated

SmartBlockSnapshotBase

Field Type Label Description
blocks Block repeated
details google.protobuf.Struct
fileKeys google.protobuf.Struct
extraRelations Relation repeated
objectTypes string repeated
collections google.protobuf.Struct

ThreadCreateQueueEntry

Field Type Label Description
collectionThread string
threadId string

ThreadDeeplinkPayload

Field Type Label Description
key string
addrs string repeated

Block.Align

Name Number Description
AlignLeft 0
AlignCenter 1
AlignRight 2

Block.Content.Dataview.Filter.Condition

Name Number Description
None 0
Equal 1
NotEqual 2
Greater 3
Less 4
GreaterOrEqual 5
LessOrEqual 6
Like 7
NotLike 8
In 9
NotIn 10
Empty 11
NotEmpty 12
AllIn 13
NotAllIn 14

Block.Content.Dataview.Filter.Operator

Name Number Description
And 0
Or 1

Block.Content.Dataview.Relation.DateFormat

Name Number Description
MonthAbbrBeforeDay 0 Jul 30, 2020
MonthAbbrAfterDay 1 30 Jul 2020
Short 2 30/07/2020
ShortUS 3 07/30/2020
ISO 4 2020-07-30

Block.Content.Dataview.Relation.TimeFormat

Name Number Description
Format12 0
Format24 1

Block.Content.Dataview.Sort.Type

Name Number Description
Asc 0
Desc 1

Block.Content.Dataview.View.Size

Name Number Description
Small 0
Medium 1
Large 2

Block.Content.Dataview.View.Type

Name Number Description
Table 0
List 1
Gallery 2
Kanban 3

Block.Content.Div.Style

Name Number Description
Line 0
Dots 1

Block.Content.File.State

Name Number Description
Empty 0 There is no file and preview, it's an empty block, that waits files.
Uploading 1 There is still no file/preview, but file already uploading
Done 2 File and preview downloaded
Error 3 Error while uploading

Block.Content.File.Style

Name Number Description
Auto 0 all types expect File and None has Embed style by default
Link 1
Embed 2

Block.Content.File.Type

Name Number Description
None 0
File 1
Image 2
Video 3
Audio 4
PDF 5

Block.Content.Layout.Style

Name Number Description
Row 0
Column 1
Div 2
Header 3

Name Number Description
Page 0
Dataview 1
Dashboard 2
Archive 3 ...

Block.Content.Text.Mark.Type

Name Number Description
Strikethrough 0
Keyboard 1
Italic 2
Bold 3
Underscored 4
Link 5
TextColor 6
BackgroundColor 7
Mention 8
Emoji 9
Object 10

Block.Content.Text.Style

Name Number Description
Paragraph 0
Header1 1
Header2 2
Header3 3
Header4 4 deprecated
Quote 5
Code 6
Title 7 currently only 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

Block.Position

Name Number Description
None 0
Top 1 above target block
Bottom 2 under target block
Left 3 to left of target block
Right 4 to right of target block
Inner 5 inside target block, as last block
Replace 6 replace target block
InnerFirst 7 inside target block, as first block

LinkPreview.Type

Name Number Description
Unknown 0
Page 1
Image 2
Text 3

ObjectType.Layout

Name Number Description
basic 0
profile 1
todo 2
set 3
objectType 4
relation 5
file 6
dashboard 7
image 8
note 9
space 10
database 20 to be released later

Relation.DataSource

Name Number Description
details 0 default, stored inside the object's details
derived 1 stored locally, e.g. in badger or generated on the fly
account 2 stored in the account DB. means existing only for specific anytype account
local 3 stored locally

Relation.Option.Scope

Name Number Description
local 0 stored within the object/aggregated from set
relation 1 aggregated from all relation of this relation's key
format 2 aggregated from all relations of this relation's format

Relation.Scope

Name Number Description
object 0 stored within the object
type 1 stored within the object type
setOfTheSameType 2 aggregated from the dataview of sets of the same object type
objectsOfTheSameType 3 aggregated from the dataview of sets of the same object type
library 4 aggregated from relations library

RelationFormat

RelationFormat describes how the underlying data is stored in the google.protobuf.Value and how it should be validated/sanitized

Name Number Description
longtext 0 string
shorttext 1 string, usually short enough. May be truncated in the future
number 2 double
status 3 string or list of string(len==1)
tag 11 list of string (choose multiple from a list)
date 4 float64(pb.Value doesn't have int64) or the string
file 5 relation can has objects of specific types: file, image, audio, video
checkbox 6 boolean
url 7 string with sanity check
email 8 string with sanity check
phone 9 string with sanity check
emoji 10 one emoji, can contains multiple utf-8 symbols
object 100 relation can has objectType to specify objectType
relations 101 base64-encoded relation pb model

Restrictions.DataviewRestriction

Name Number Description
DVNone 0
DVRelation 1
DVCreateObject 2
DVViews 3

Restrictions.ObjectRestriction

Name Number Description
None 0
Delete 1 restricts delete
Relations 2 restricts work with relations
Blocks 3 restricts work with blocks
Details 4 restricts work with details
TypeChange 5
LayoutChange 6
Template 7

SmartBlockType

Name Number Description
AccountOld 0
Breadcrumbs 1
Page 16
ProfilePage 17
Home 32
Archive 48
Database 64
Set 65 only have dataview simpleblock
STObjectType 96 have relations list
File 256
Template 288
BundledTemplate 289
MarketplaceType 272
MarketplaceRelation 273
MarketplaceTemplate 274
BundledRelation 512
IndexedRelation 513
BundledObjectType 514
AnytypeProfile 515
Date 516
WorkspaceOld 517 deprecated thread-based workspace
Workspace 518
RelationOptionList 519

Scalar Value Types

.proto Type Notes C++ Java Python Go C# PHP Ruby
double double double float float64 double float Float
float float float float float32 float float Float
int32 Uses variable-length encoding. Inefficient for encoding negative numbers if your field is likely to have negative values, use sint32 instead. int32 int int int32 int integer Bignum or Fixnum (as required)
int64 Uses variable-length encoding. Inefficient for encoding negative numbers if your field is likely to have negative values, use sint64 instead. int64 long int/long int64 long integer/string Bignum
uint32 Uses variable-length encoding. uint32 int int/long uint32 uint integer Bignum or Fixnum (as required)
uint64 Uses variable-length encoding. uint64 long int/long uint64 ulong integer/string Bignum or Fixnum (as required)
sint32 Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. int32 int int int32 int integer Bignum or Fixnum (as required)
sint64 Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. int64 long int/long int64 long integer/string Bignum
fixed32 Always four bytes. More efficient than uint32 if values are often greater than 2^28. uint32 int int uint32 uint integer Bignum or Fixnum (as required)
fixed64 Always eight bytes. More efficient than uint64 if values are often greater than 2^56. uint64 long int/long uint64 ulong integer/string Bignum
sfixed32 Always four bytes. int32 int int int32 int integer Bignum or Fixnum (as required)
sfixed64 Always eight bytes. int64 long int/long int64 long integer/string Bignum
bool bool boolean boolean bool bool boolean TrueClass/FalseClass
string A string must always contain UTF-8 encoded or 7-bit ASCII text. string String str/unicode string string string String (UTF-8)
bytes May contain any arbitrary sequence of bytes. string ByteString str []byte ByteString string String (ASCII-8BIT)