Protocol Documentation
Table of Contents
Top
pb/protos/service/service.proto
ClientCommands
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
Change.BlockDuplicate
Change.BlockMove
Change.BlockRemove
Field |
Type |
Label |
Description |
ids |
string |
repeated |
|
Change.BlockUpdate
Change.Content
Change.DetailsSet
Change.DetailsUnset
Field |
Type |
Label |
Description |
key |
string |
|
|
Change.FileKeys
Change.FileKeys.KeysEntry
Change.ObjectTypeAdd
Field |
Type |
Label |
Description |
url |
string |
|
|
Change.ObjectTypeRemove
Field |
Type |
Label |
Description |
url |
string |
|
|
Change.RelationAdd
Change.RelationRemove
Field |
Type |
Label |
Description |
relationKey |
string |
repeated |
|
Change.Snapshot
Change.Snapshot.LogHeadsEntry
Change.StoreKeySet
Change.StoreKeyUnset
Field |
Type |
Label |
Description |
path |
string |
repeated |
|
Change._RelationAdd
Change._RelationRemove
Field |
Type |
Label |
Description |
key |
string |
|
|
Change._RelationUpdate
Change._RelationUpdate.Dict
Change._RelationUpdate.ObjectTypes
Field |
Type |
Label |
Description |
objectTypes |
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
Rpc.Account.Config
Rpc.Account.ConfigUpdate
Rpc.Account.ConfigUpdate.Request
Field |
Type |
Label |
Description |
timeZone |
string |
|
|
IPFSStorageAddr |
string |
|
|
Rpc.Account.ConfigUpdate.Response
Rpc.Account.ConfigUpdate.Response.Error
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 |
storePath |
string |
|
Path to local storage |
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
Rpc.Account.Create.Response.Error
Rpc.Account.Delete
Rpc.Account.Delete.Request
Field |
Type |
Label |
Description |
revert |
bool |
|
|
Rpc.Account.Delete.Response
Rpc.Account.Delete.Response.Error
Rpc.Account.GetConfig
Rpc.Account.GetConfig.Get
Rpc.Account.GetConfig.Get.Request
Rpc.Account.Move
Rpc.Account.Move.Request
Front-end-to-middleware request to move a account to a new disk location
Field |
Type |
Label |
Description |
newPath |
string |
|
|
Rpc.Account.Move.Response
Rpc.Account.Move.Response.Error
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
Rpc.Account.Recover.Response.Error
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
Rpc.Account.Select.Response.Error
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
Rpc.Account.Stop.Response.Error
Rpc.App
Rpc.App.GetVersion
Rpc.App.GetVersion.Request
Rpc.App.GetVersion.Response
Rpc.App.GetVersion.Response.Error
Rpc.App.SetDeviceState
Rpc.App.SetDeviceState.Request
Rpc.App.SetDeviceState.Response
Rpc.App.SetDeviceState.Response.Error
Rpc.App.Shutdown
Rpc.App.Shutdown.Request
Rpc.App.Shutdown.Response
Rpc.App.Shutdown.Response.Error
Rpc.Block
Block commands
Rpc.Block.Copy
Rpc.Block.Copy.Request
Rpc.Block.Copy.Response
Rpc.Block.Copy.Response.Error
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
Rpc.Block.Create.Response
Rpc.Block.Create.Response.Error
Rpc.Block.CreateWidget
Rpc.Block.CreateWidget.Request
Rpc.Block.CreateWidget.Response
Rpc.Block.CreateWidget.Response.Error
Rpc.Block.Cut
Rpc.Block.Cut.Request
Rpc.Block.Cut.Response
Rpc.Block.Cut.Response.Error
Rpc.Block.Download
Rpc.Block.Download.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
|
blockId |
string |
|
|
Rpc.Block.Download.Response
Rpc.Block.Download.Response.Error
Rpc.Block.Export
Rpc.Block.Export.Request
Rpc.Block.Export.Response
Rpc.Block.Export.Response.Error
Rpc.Block.ListConvertToObjects
Rpc.Block.ListConvertToObjects.Request
Rpc.Block.ListConvertToObjects.Response
Rpc.Block.ListConvertToObjects.Response.Error
Rpc.Block.ListDelete
Remove blocks from the childrenIds of its parents
Rpc.Block.ListDelete.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
id of the context object |
blockIds |
string |
repeated |
targets to remove |
Rpc.Block.ListDelete.Response
Rpc.Block.ListDelete.Response.Error
Rpc.Block.ListDuplicate
Makes blocks copy by given ids and paste it to shown place
Rpc.Block.ListDuplicate.Request
Rpc.Block.ListDuplicate.Response
Rpc.Block.ListDuplicate.Response.Error
Rpc.Block.ListMoveToExistingObject
Rpc.Block.ListMoveToExistingObject.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.Block.ListMoveToExistingObject.Response
Rpc.Block.ListMoveToExistingObject.Response.Error
Rpc.Block.ListMoveToNewObject
Rpc.Block.ListMoveToNewObject.Request
Rpc.Block.ListMoveToNewObject.Response
Rpc.Block.ListMoveToNewObject.Response.Error
Rpc.Block.ListSetAlign
Rpc.Block.ListSetAlign.Request
Rpc.Block.ListSetAlign.Response
Rpc.Block.ListSetAlign.Response.Error
Rpc.Block.ListSetBackgroundColor
Rpc.Block.ListSetBackgroundColor.Request
Rpc.Block.ListSetBackgroundColor.Response
Rpc.Block.ListSetBackgroundColor.Response.Error
Rpc.Block.ListSetFields
Rpc.Block.ListSetFields.Request
Rpc.Block.ListSetFields.Request.BlockField
Rpc.Block.ListSetFields.Response
Rpc.Block.ListSetFields.Response.Error
Rpc.Block.ListSetVerticalAlign
Rpc.Block.ListSetVerticalAlign.Request
Rpc.Block.ListSetVerticalAlign.Response
Rpc.Block.ListSetVerticalAlign.Response.Error
Rpc.Block.ListTurnInto
Rpc.Block.ListTurnInto.Request
Rpc.Block.ListTurnInto.Response
Rpc.Block.ListTurnInto.Response.Error
Rpc.Block.ListUpdate
Rpc.Block.ListUpdate.Request
Rpc.Block.ListUpdate.Request.Text
Rpc.Block.Merge
Rpc.Block.Merge.Request
Rpc.Block.Merge.Response
Rpc.Block.Merge.Response.Error
Rpc.Block.Paste
Rpc.Block.Paste.Request
Rpc.Block.Paste.Request.File
Rpc.Block.Paste.Response
Rpc.Block.Paste.Response.Error
Rpc.Block.Replace
Rpc.Block.Replace.Request
Rpc.Block.Replace.Response
Rpc.Block.Replace.Response.Error
Rpc.Block.SetFields
Rpc.Block.SetFields.Request
Rpc.Block.SetFields.Response
Rpc.Block.SetFields.Response.Error
Rpc.Block.Split
Rpc.Block.Split.Request
Rpc.Block.Split.Response
Rpc.Block.Split.Response.Error
Rpc.Block.Upload
Rpc.Block.Upload.Request
Rpc.Block.Upload.Response
Rpc.Block.Upload.Response.Error
Rpc.BlockBookmark
Rpc.BlockBookmark.CreateAndFetch
Rpc.BlockBookmark.CreateAndFetch.Request
Rpc.BlockBookmark.CreateAndFetch.Response
Rpc.BlockBookmark.CreateAndFetch.Response.Error
Rpc.BlockBookmark.Fetch
Rpc.BlockBookmark.Fetch.Request
Rpc.BlockBookmark.Fetch.Response
Rpc.BlockBookmark.Fetch.Response.Error
Rpc.BlockDataview
Rpc.BlockDataview.CreateBookmark
Rpc.BlockDataview.CreateBookmark.Request
Rpc.BlockDataview.CreateBookmark.Response
Rpc.BlockDataview.CreateBookmark.Response.Error
Rpc.BlockDataview.Filter
Rpc.BlockDataview.Filter.Add
Rpc.BlockDataview.Filter.Add.Request
Rpc.BlockDataview.Filter.Add.Response
Rpc.BlockDataview.Filter.Add.Response.Error
Rpc.BlockDataview.GroupOrder
Rpc.BlockDataview.GroupOrder.Update
Rpc.BlockDataview.GroupOrder.Update.Request
Rpc.BlockDataview.GroupOrder.Update.Response
Rpc.BlockDataview.GroupOrder.Update.Response.Error
Rpc.BlockDataview.ObjectOrder
Rpc.BlockDataview.ObjectOrder.Update
Rpc.BlockDataview.ObjectOrder.Update.Request
Rpc.BlockDataview.ObjectOrder.Update.Response
Rpc.BlockDataview.ObjectOrder.Update.Response.Error
Rpc.BlockDataview.Relation
Rpc.BlockDataview.Relation.Add
Rpc.BlockDataview.Relation.Add.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
|
blockId |
string |
|
id of dataview block to add relation |
relationKeys |
string |
repeated |
|
Rpc.BlockDataview.Relation.Add.Response
Rpc.BlockDataview.Relation.Add.Response.Error
Rpc.BlockDataview.Relation.Delete
Rpc.BlockDataview.Relation.Delete.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
|
blockId |
string |
|
id of dataview block to add relation |
relationKeys |
string |
repeated |
|
Rpc.BlockDataview.Relation.Delete.Response
Rpc.BlockDataview.Relation.Delete.Response.Error
Rpc.BlockDataview.Relation.ListAvailable
Rpc.BlockDataview.Relation.ListAvailable.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
|
blockId |
string |
|
|
Rpc.BlockDataview.Relation.ListAvailable.Response
Rpc.BlockDataview.Relation.ListAvailable.Response.Error
Rpc.BlockDataview.SetSource
Rpc.BlockDataview.SetSource.Request
Rpc.BlockDataview.SetSource.Response
Rpc.BlockDataview.SetSource.Response.Error
Rpc.BlockDataview.View
Rpc.BlockDataview.View.Create
Rpc.BlockDataview.View.Create.Request
Rpc.BlockDataview.View.Create.Response
Rpc.BlockDataview.View.Create.Response.Error
Rpc.BlockDataview.View.Delete
Rpc.BlockDataview.View.Delete.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
id of the context object |
blockId |
string |
|
id of the dataview |
viewId |
string |
|
id of the view to remove |
Rpc.BlockDataview.View.Delete.Response
Rpc.BlockDataview.View.Delete.Response.Error
Rpc.BlockDataview.View.SetActive
set the current active view (persisted only within a session)
Rpc.BlockDataview.View.SetActive.Request
Rpc.BlockDataview.View.SetActive.Response
Rpc.BlockDataview.View.SetActive.Response.Error
Rpc.BlockDataview.View.SetPosition
Rpc.BlockDataview.View.SetPosition.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
id of the context object |
blockId |
string |
|
id of the dataview |
viewId |
string |
|
id of the view to remove |
position |
uint32 |
|
index of view position (0 - means first) |
Rpc.BlockDataview.View.SetPosition.Response
Rpc.BlockDataview.View.SetPosition.Response.Error
Rpc.BlockDataview.View.Update
Rpc.BlockDataview.View.Update.Request
Rpc.BlockDataview.View.Update.Response
Rpc.BlockDataview.View.Update.Response.Error
Rpc.BlockDiv
Rpc.BlockDiv.ListSetStyle
Rpc.BlockDiv.ListSetStyle.Request
Rpc.BlockDiv.ListSetStyle.Response
Rpc.BlockDiv.ListSetStyle.Response.Error
Rpc.BlockFile
Rpc.BlockFile.CreateAndUpload
Rpc.BlockFile.CreateAndUpload.Request
Rpc.BlockFile.CreateAndUpload.Response
Rpc.BlockFile.CreateAndUpload.Response.Error
Rpc.BlockFile.ListSetStyle
Rpc.BlockFile.ListSetStyle.Request
Rpc.BlockFile.ListSetStyle.Response
Rpc.BlockFile.ListSetStyle.Response.Error
Rpc.BlockFile.SetName
Rpc.BlockFile.SetName.Request
Rpc.BlockFile.SetName.Response
Rpc.BlockFile.SetName.Response.Error
Rpc.BlockImage
Rpc.BlockImage.SetName
Rpc.BlockImage.SetName.Request
Rpc.BlockImage.SetName.Response
Rpc.BlockImage.SetName.Response.Error
Rpc.BlockImage.SetWidth
Rpc.BlockImage.SetWidth.Request
Rpc.BlockImage.SetWidth.Response
Rpc.BlockImage.SetWidth.Response.Error
Rpc.BlockLatex
Rpc.BlockLatex.SetText
Rpc.BlockLatex.SetText.Request
Rpc.BlockLatex.SetText.Response
Rpc.BlockLatex.SetText.Response.Error
Rpc.BlockLink
Rpc.BlockLink.CreateWithObject
Rpc.BlockLink.CreateWithObject.Request
id of the closest simple block |
| position | model.Block.Position | | |
| fields | google.protobuf.Struct | | link block fields |
Rpc.BlockLink.CreateWithObject.Response
Rpc.BlockLink.CreateWithObject.Response.Error
Rpc.BlockLink.ListSetAppearance
Rpc.BlockLink.ListSetAppearance.Request
Rpc.BlockLink.ListSetAppearance.Response
Rpc.BlockLink.ListSetAppearance.Response.Error
Rpc.BlockRelation
Rpc.BlockRelation.Add
Rpc.BlockRelation.Add.Request
Rpc.BlockRelation.Add.Response
Rpc.BlockRelation.Add.Response.Error
Rpc.BlockRelation.SetKey
Rpc.BlockRelation.SetKey.Request
Rpc.BlockRelation.SetKey.Response
Rpc.BlockRelation.SetKey.Response.Error
Rpc.BlockTable
Rpc.BlockTable.ColumnCreate
Rpc.BlockTable.ColumnCreate.Request
Rpc.BlockTable.ColumnCreate.Response
Rpc.BlockTable.ColumnCreate.Response.Error
Rpc.BlockTable.ColumnDelete
Rpc.BlockTable.ColumnDelete.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
id of the context object |
targetId |
string |
|
id of the closest column |
Rpc.BlockTable.ColumnDelete.Response
Rpc.BlockTable.ColumnDelete.Response.Error
Rpc.BlockTable.ColumnDuplicate
Rpc.BlockTable.ColumnDuplicate.Request
Rpc.BlockTable.ColumnDuplicate.Response
Rpc.BlockTable.ColumnDuplicate.Response.Error
Rpc.BlockTable.ColumnListFill
Rpc.BlockTable.ColumnListFill.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
id of the context object |
blockIds |
string |
repeated |
|
Rpc.BlockTable.ColumnListFill.Response
Rpc.BlockTable.ColumnListFill.Response.Error
Rpc.BlockTable.ColumnMove
Rpc.BlockTable.ColumnMove.Request
Rpc.BlockTable.ColumnMove.Response
Rpc.BlockTable.ColumnMove.Response.Error
Rpc.BlockTable.Create
Rpc.BlockTable.Create.Request
Rpc.BlockTable.Create.Response
Rpc.BlockTable.Create.Response.Error
Rpc.BlockTable.Expand
Rpc.BlockTable.Expand.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
id of the context object |
targetId |
string |
|
|
columns |
uint32 |
|
number of columns to append |
rows |
uint32 |
|
number of rows to append |
Rpc.BlockTable.Expand.Response
Rpc.BlockTable.Expand.Response.Error
Rpc.BlockTable.RowCreate
Rpc.BlockTable.RowCreate.Request
Rpc.BlockTable.RowCreate.Response
Rpc.BlockTable.RowCreate.Response.Error
Rpc.BlockTable.RowDelete
Rpc.BlockTable.RowDelete.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
id of the context object |
targetId |
string |
|
id of the closest row |
Rpc.BlockTable.RowDelete.Response
Rpc.BlockTable.RowDelete.Response.Error
Rpc.BlockTable.RowDuplicate
Rpc.BlockTable.RowDuplicate.Request
Rpc.BlockTable.RowDuplicate.Response
Rpc.BlockTable.RowDuplicate.Response.Error
Rpc.BlockTable.RowListClean
Rpc.BlockTable.RowListClean.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
id of the context object |
blockIds |
string |
repeated |
|
Rpc.BlockTable.RowListClean.Response
Rpc.BlockTable.RowListClean.Response.Error
Rpc.BlockTable.RowListFill
Rpc.BlockTable.RowListFill.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
id of the context object |
blockIds |
string |
repeated |
|
Rpc.BlockTable.RowListFill.Response
Rpc.BlockTable.RowListFill.Response.Error
Field |
Type |
Label |
Description |
contextId |
string |
|
id of the context object |
targetId |
string |
|
|
isHeader |
bool |
|
|
Rpc.BlockTable.Sort
Rpc.BlockTable.Sort.Request
Rpc.BlockTable.Sort.Response
Rpc.BlockTable.Sort.Response.Error
Rpc.BlockText
Rpc.BlockText.ListClearContent
Rpc.BlockText.ListClearContent.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
|
blockIds |
string |
repeated |
|
Rpc.BlockText.ListClearContent.Response
Rpc.BlockText.ListClearContent.Response.Error
Rpc.BlockText.ListClearStyle
Rpc.BlockText.ListClearStyle.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
|
blockIds |
string |
repeated |
|
Rpc.BlockText.ListClearStyle.Response
Rpc.BlockText.ListClearStyle.Response.Error
Rpc.BlockText.ListSetColor
Rpc.BlockText.ListSetColor.Request
Rpc.BlockText.ListSetColor.Response
Rpc.BlockText.ListSetColor.Response.Error
Rpc.BlockText.ListSetMark
Rpc.BlockText.ListSetMark.Request
Rpc.BlockText.ListSetMark.Response
Rpc.BlockText.ListSetMark.Response.Error
Rpc.BlockText.ListSetStyle
Rpc.BlockText.ListSetStyle.Request
Rpc.BlockText.ListSetStyle.Response
Rpc.BlockText.ListSetStyle.Response.Error
Rpc.BlockText.SetChecked
Rpc.BlockText.SetChecked.Request
Rpc.BlockText.SetChecked.Response
Rpc.BlockText.SetChecked.Response.Error
Rpc.BlockText.SetColor
Rpc.BlockText.SetColor.Request
Rpc.BlockText.SetColor.Response
Rpc.BlockText.SetColor.Response.Error
Rpc.BlockText.SetIcon
Rpc.BlockText.SetIcon.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.BlockText.SetIcon.Response
Rpc.BlockText.SetIcon.Response.Error
Rpc.BlockText.SetMarks
Rpc.BlockText.SetMarks.Get
Get marks list in the selected range in text block.
Rpc.BlockText.SetMarks.Get.Request
Rpc.BlockText.SetMarks.Get.Response
Rpc.BlockText.SetMarks.Get.Response.Error
Rpc.BlockText.SetStyle
Rpc.BlockText.SetStyle.Request
Rpc.BlockText.SetStyle.Response
Rpc.BlockText.SetStyle.Response.Error
Rpc.BlockText.SetText
Rpc.BlockText.SetText.Request
Rpc.BlockText.SetText.Response
Rpc.BlockText.SetText.Response.Error
Rpc.BlockVideo
Rpc.BlockVideo.SetName
Rpc.BlockVideo.SetName.Request
Rpc.BlockVideo.SetName.Response
Rpc.BlockVideo.SetName.Response.Error
Rpc.BlockVideo.SetWidth
Rpc.BlockVideo.SetWidth.Request
Rpc.BlockVideo.SetWidth.Response
Rpc.BlockVideo.SetWidth.Response.Error
Rpc.Debug
Rpc.Debug.ExportLocalstore
Rpc.Debug.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.Debug.ExportLocalstore.Response
Rpc.Debug.ExportLocalstore.Response.Error
Rpc.Debug.Ping
Rpc.Debug.Ping.Request
Field |
Type |
Label |
Description |
index |
int32 |
|
|
numberOfEventsToSend |
int32 |
|
|
Rpc.Debug.Ping.Response
Rpc.Debug.Ping.Response.Error
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
Rpc.Debug.Sync.Response.Error
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
Rpc.Debug.Thread.Response.Error
Rpc.Debug.Tree
Rpc.Debug.Tree.Request
Field |
Type |
Label |
Description |
objectId |
string |
|
|
path |
string |
|
|
unanonymized |
bool |
|
set to true to disable mocking of the actual data inside changes |
generateSvg |
bool |
|
set to true to write both ZIP and SVG files |
Rpc.Debug.Tree.Response
Rpc.Debug.Tree.Response.Error
Rpc.Debug.logInfo
Rpc.Debug.threadInfo
Rpc.File
Rpc.File.Download
Rpc.File.Download.Request
Field |
Type |
Label |
Description |
hash |
string |
|
|
path |
string |
|
path to save file. Temp directory is used if empty |
Rpc.File.Download.Response
Rpc.File.Download.Response.Error
Rpc.File.Drop
Rpc.File.Drop.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.File.Drop.Response
Rpc.File.Drop.Response.Error
Rpc.File.ListOffload
Rpc.File.ListOffload.Request
Field |
Type |
Label |
Description |
onlyIds |
string |
repeated |
empty means all |
includeNotPinned |
bool |
|
false mean not-yet-pinned files will be not |
Rpc.File.ListOffload.Response
Rpc.File.ListOffload.Response.Error
Rpc.File.Offload
Rpc.File.Offload.Request
Field |
Type |
Label |
Description |
id |
string |
|
|
includeNotPinned |
bool |
|
|
Rpc.File.Offload.Response
Rpc.File.Offload.Response.Error
Rpc.File.Upload
Rpc.File.Upload.Request
Rpc.File.Upload.Response
Rpc.File.Upload.Response.Error
Rpc.GenericErrorResponse
Rpc.GenericErrorResponse.Error
Rpc.History
Rpc.History.GetVersions
returns list of versions (changes)
Rpc.History.GetVersions.Request
Field |
Type |
Label |
Description |
objectId |
string |
|
|
lastVersionId |
string |
|
when indicated, results will include versions before given id |
limit |
int32 |
|
desired count of versions |
Rpc.History.GetVersions.Response
Rpc.History.GetVersions.Response.Error
Rpc.History.SetVersion
Rpc.History.SetVersion.Request
Field |
Type |
Label |
Description |
objectId |
string |
|
|
versionId |
string |
|
|
Rpc.History.SetVersion.Response
Rpc.History.SetVersion.Response.Error
Rpc.History.ShowVersion
returns blockShow event for given version
Rpc.History.ShowVersion.Request
Rpc.History.ShowVersion.Response
Rpc.History.ShowVersion.Response.Error
Rpc.History.Version
Rpc.LinkPreview
Rpc.LinkPreview.Request
Field |
Type |
Label |
Description |
url |
string |
|
|
Rpc.LinkPreview.Response
Rpc.LinkPreview.Response.Error
Rpc.Log
Rpc.Log.Send
Rpc.Log.Send.Request
Rpc.Log.Send.Response
Rpc.Log.Send.Response.Error
Rpc.Metrics
Rpc.Metrics.SetParameters
Rpc.Metrics.SetParameters.Request
Field |
Type |
Label |
Description |
platform |
string |
|
|
Rpc.Metrics.SetParameters.Response
Rpc.Metrics.SetParameters.Response.Error
Rpc.Navigation
Rpc.Navigation.GetObjectInfoWithLinks
Get the info for page alongside with info for all inbound and outbound links from/to this page
Rpc.Navigation.GetObjectInfoWithLinks.Request
Rpc.Navigation.GetObjectInfoWithLinks.Response
Rpc.Navigation.GetObjectInfoWithLinks.Response.Error
Rpc.Navigation.ListObjects
Rpc.Navigation.ListObjects.Request
Rpc.Navigation.ListObjects.Response
Rpc.Navigation.ListObjects.Response.Error
Rpc.Object
Rpc.Object.AddWithObjectId
Rpc.Object.AddWithObjectId.Request
Rpc.Object.AddWithObjectId.Response
Rpc.Object.AddWithObjectId.Response.Error
Rpc.Object.ApplyTemplate
Rpc.Object.ApplyTemplate.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
|
templateId |
string |
|
id of template |
Rpc.Object.ApplyTemplate.Response
Rpc.Object.ApplyTemplate.Response.Error
Rpc.Object.BookmarkFetch
Rpc.Object.BookmarkFetch.Request
Rpc.Object.BookmarkFetch.Response
Rpc.Object.BookmarkFetch.Response.Error
Rpc.Object.Close
Rpc.Object.Close.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
deprecated |
objectId |
string |
|
|
Rpc.Object.Close.Response
Rpc.Object.Close.Response.Error
Rpc.Object.Create
Rpc.Object.Create.Request
Rpc.Object.Create.Response
Rpc.Object.Create.Response.Error
Rpc.Object.CreateBookmark
Rpc.Object.CreateBookmark.Request
Rpc.Object.CreateBookmark.Response
Rpc.Object.CreateBookmark.Response.Error
Rpc.Object.CreateObjectType
Rpc.Object.CreateObjectType.Request
Rpc.Object.CreateObjectType.Response
Rpc.Object.CreateObjectType.Response.Error
Rpc.Object.CreateRelation
Rpc.Object.CreateRelation.Request
Rpc.Object.CreateRelation.Response
Rpc.Object.CreateRelation.Response.Error
Rpc.Object.CreateRelationOption
Rpc.Object.CreateRelationOption.Request
Rpc.Object.CreateRelationOption.Response
Rpc.Object.CreateRelationOption.Response.Error
Rpc.Object.CreateSet
Rpc.Object.CreateSet.Request
Rpc.Object.CreateSet.Response
Rpc.Object.CreateSet.Response.Error
Rpc.Object.Duplicate
Rpc.Object.Duplicate.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
|
Rpc.Object.Duplicate.Response
Rpc.Object.Duplicate.Response.Error
Rpc.Object.Graph
Rpc.Object.Graph.Edge
Rpc.Object.Graph.Request
Rpc.Object.Graph.Response
Rpc.Object.Graph.Response.Error
Rpc.Object.GroupsSubscribe
Rpc.Object.GroupsSubscribe.Request
Rpc.Object.GroupsSubscribe.Response
Rpc.Object.GroupsSubscribe.Response.Error
Rpc.Object.Import
Rpc.Object.Import.Request
Rpc.Object.Import.Request.BookmarksParams
Field |
Type |
Label |
Description |
url |
string |
|
|
Rpc.Object.Import.Request.NotionParams
Field |
Type |
Label |
Description |
path |
string |
|
|
Rpc.Object.Import.Request.Snapshot
Rpc.Object.Import.Response
Rpc.Object.Import.Response.Error
Rpc.Object.ImportList
Rpc.Object.ImportList.ImportResponse
Rpc.Object.ImportList.Request
Rpc.Object.ImportList.Response
Rpc.Object.ImportList.Response.Error
Rpc.Object.ImportMarkdown
Rpc.Object.ImportMarkdown.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
|
importPath |
string |
|
|
Rpc.Object.ImportMarkdown.Response
Rpc.Object.ImportMarkdown.Response.Error
Rpc.Object.ListDelete
Rpc.Object.ListDelete.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.Object.ListDelete.Response
Rpc.Object.ListDelete.Response.Error
Rpc.Object.ListDuplicate
Rpc.Object.ListDuplicate.Request
Field |
Type |
Label |
Description |
objectIds |
string |
repeated |
|
Rpc.Object.ListDuplicate.Response
Rpc.Object.ListDuplicate.Response.Error
Rpc.Object.ListExport
Rpc.Object.ListExport.Request
Field |
Type |
Label |
Description |
path |
string |
|
the path where export files will place |
objectIds |
string |
repeated |
ids of documents for export, when empty - will export all available docs |
format |
Rpc.Object.ListExport.Format |
|
export format |
zip |
bool |
|
save as zip file |
includeNested |
bool |
|
include all nested |
includeFiles |
bool |
|
include all files |
Rpc.Object.ListExport.Response
Rpc.Object.ListExport.Response.Error
Rpc.Object.ListSetIsArchived
Rpc.Object.ListSetIsArchived.Request
Field |
Type |
Label |
Description |
objectIds |
string |
repeated |
|
isArchived |
bool |
|
|
Rpc.Object.ListSetIsArchived.Response
Rpc.Object.ListSetIsArchived.Response.Error
Rpc.Object.ListSetIsFavorite
Rpc.Object.ListSetIsFavorite.Request
Field |
Type |
Label |
Description |
objectIds |
string |
repeated |
|
isFavorite |
bool |
|
|
Rpc.Object.ListSetIsFavorite.Response
Rpc.Object.ListSetIsFavorite.Response.Error
Rpc.Object.Open
Rpc.Object.Open.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
id of the context blo1k |
objectId |
string |
|
|
traceId |
string |
|
|
includeRelationsAsDependentObjects |
bool |
|
some clients may set this option instead if having the single subscription to all relations |
Rpc.Object.Open.Response
Rpc.Object.Open.Response.Error
Rpc.Object.OpenBreadcrumbs
Rpc.Object.OpenBreadcrumbs.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
deprecated |
traceId |
string |
|
|
Rpc.Object.OpenBreadcrumbs.Response
Rpc.Object.OpenBreadcrumbs.Response.Error
Rpc.Object.Redo
Rpc.Object.Redo.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
id of the context object |
Rpc.Object.Redo.Response
Rpc.Object.Redo.Response.Error
Rpc.Object.Search
Rpc.Object.Search.Request
deprecated, to be removed |
| keys | string | repeated | needed keys in details for return, when empty - will return all |
Rpc.Object.Search.Response
Rpc.Object.Search.Response.Error
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
Rpc.Object.SearchSubscribe.Response.Error
Rpc.Object.SearchUnsubscribe
Rpc.Object.SearchUnsubscribe.Request
Field |
Type |
Label |
Description |
subIds |
string |
repeated |
|
Rpc.Object.SearchUnsubscribe.Response
Rpc.Object.SearchUnsubscribe.Response.Error
Rpc.Object.SetBreadcrumbs
Rpc.Object.SetBreadcrumbs.Request
Field |
Type |
Label |
Description |
breadcrumbsId |
string |
|
|
ids |
string |
repeated |
page ids |
Rpc.Object.SetBreadcrumbs.Response
Rpc.Object.SetBreadcrumbs.Response.Error
Rpc.Object.SetDetails
Rpc.Object.SetDetails.Detail
Rpc.Object.SetDetails.Request
Rpc.Object.SetDetails.Response
Rpc.Object.SetDetails.Response.Error
Rpc.Object.SetInternalFlags
Rpc.Object.SetInternalFlags.Request
Rpc.Object.SetInternalFlags.Response
Rpc.Object.SetInternalFlags.Response.Error
Rpc.Object.SetIsArchived
Rpc.Object.SetIsArchived.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
|
isArchived |
bool |
|
|
Rpc.Object.SetIsArchived.Response
Rpc.Object.SetIsArchived.Response.Error
Rpc.Object.SetIsFavorite
Rpc.Object.SetIsFavorite.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
|
isFavorite |
bool |
|
|
Rpc.Object.SetIsFavorite.Response
Rpc.Object.SetIsFavorite.Response.Error
Rpc.Object.SetLayout
Rpc.Object.SetLayout.Request
Rpc.Object.SetLayout.Response
Rpc.Object.SetLayout.Response.Error
Rpc.Object.SetObjectType
Rpc.Object.SetObjectType.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
|
objectTypeUrl |
string |
|
|
Rpc.Object.SetObjectType.Response
Rpc.Object.SetObjectType.Response.Error
Rpc.Object.ShareByLink
Rpc.Object.ShareByLink.Request
Field |
Type |
Label |
Description |
objectId |
string |
|
|
Rpc.Object.ShareByLink.Response
Rpc.Object.ShareByLink.Response.Error
Rpc.Object.Show
Rpc.Object.Show.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
deprecated |
objectId |
string |
|
|
traceId |
string |
|
|
includeRelationsAsDependentObjects |
bool |
|
some clients may set this option instead if having the single subscription to all relations |
Rpc.Object.Show.Response
Rpc.Object.Show.Response.Error
Rpc.Object.SubscribeIds
Rpc.Object.SubscribeIds.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.SubscribeIds.Response
Rpc.Object.SubscribeIds.Response.Error
Rpc.Object.ToBookmark
Rpc.Object.ToBookmark.Request
Rpc.Object.ToBookmark.Response
Rpc.Object.ToBookmark.Response.Error
Rpc.Object.ToSet
Rpc.Object.ToSet.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
|
source |
string |
repeated |
|
Rpc.Object.ToSet.Response
Rpc.Object.ToSet.Response.Error
Rpc.Object.Undo
Rpc.Object.Undo.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
id of the context object |
Rpc.Object.Undo.Response
Rpc.Object.Undo.Response.Error
Rpc.Object.UndoRedoCounter
Available undo/redo operations
Field |
Type |
Label |
Description |
undo |
int32 |
|
|
redo |
int32 |
|
|
Rpc.ObjectRelation
Rpc.ObjectRelation.Add
Rpc.ObjectRelation.Add.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
|
relationKeys |
string |
repeated |
|
Rpc.ObjectRelation.Add.Response
Rpc.ObjectRelation.Add.Response.Error
Rpc.ObjectRelation.AddFeatured
Rpc.ObjectRelation.AddFeatured.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
|
relations |
string |
repeated |
|
Rpc.ObjectRelation.AddFeatured.Response
Rpc.ObjectRelation.AddFeatured.Response.Error
Rpc.ObjectRelation.Delete
Rpc.ObjectRelation.Delete.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
|
relationKeys |
string |
repeated |
|
Rpc.ObjectRelation.Delete.Response
Rpc.ObjectRelation.Delete.Response.Error
Rpc.ObjectRelation.ListAvailable
Rpc.ObjectRelation.ListAvailable.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
|
Rpc.ObjectRelation.ListAvailable.Response
Rpc.ObjectRelation.ListAvailable.Response.Error
Rpc.ObjectRelation.RemoveFeatured
Rpc.ObjectRelation.RemoveFeatured.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
|
relations |
string |
repeated |
|
Rpc.ObjectRelation.RemoveFeatured.Response
Rpc.ObjectRelation.RemoveFeatured.Response.Error
Rpc.ObjectType
Rpc.ObjectType.Relation
Rpc.ObjectType.Relation.Add
Rpc.ObjectType.Relation.Add.Request
Field |
Type |
Label |
Description |
objectTypeUrl |
string |
|
|
relationKeys |
string |
repeated |
|
Rpc.ObjectType.Relation.Add.Response
Rpc.ObjectType.Relation.Add.Response.Error
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
Rpc.ObjectType.Relation.List.Response.Error
Rpc.ObjectType.Relation.Remove
Rpc.ObjectType.Relation.Remove.Request
Field |
Type |
Label |
Description |
objectTypeUrl |
string |
|
|
relationKeys |
string |
repeated |
|
Rpc.ObjectType.Relation.Remove.Response
Rpc.ObjectType.Relation.Remove.Response.Error
Rpc.Process
Rpc.Process.Cancel
Rpc.Process.Cancel.Request
Field |
Type |
Label |
Description |
id |
string |
|
|
Rpc.Process.Cancel.Response
Rpc.Process.Cancel.Response.Error
Rpc.Relation
Rpc.Relation.ListRemoveOption
Rpc.Relation.ListRemoveOption.Request
Field |
Type |
Label |
Description |
optionIds |
string |
repeated |
|
checkInObjects |
bool |
|
|
Rpc.Relation.ListRemoveOption.Response
Rpc.Relation.ListRemoveOption.Response.Error
Rpc.Relation.Options
Rpc.Relation.Options.Request
Field |
Type |
Label |
Description |
relationKey |
string |
|
|
Rpc.Relation.Options.Response
Rpc.Relation.Options.Response.Error
Rpc.Template
Rpc.Template.Clone
Rpc.Template.Clone.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
id of template block for cloning |
Rpc.Template.Clone.Response
Rpc.Template.Clone.Response.Error
Rpc.Template.CreateFromObject
Rpc.Template.CreateFromObject.Request
Field |
Type |
Label |
Description |
contextId |
string |
|
id of block for making them template |
Rpc.Template.CreateFromObject.Response
Rpc.Template.CreateFromObject.Response.Error
Rpc.Template.CreateFromObjectType
Rpc.Template.CreateFromObjectType.Request
Field |
Type |
Label |
Description |
objectType |
string |
|
id of desired object type |
Rpc.Template.CreateFromObjectType.Response
Rpc.Template.CreateFromObjectType.Response.Error
Rpc.Template.ExportAll
Rpc.Template.ExportAll.Request
Field |
Type |
Label |
Description |
path |
string |
|
the path where export files will place |
Rpc.Template.ExportAll.Response
Rpc.Template.ExportAll.Response.Error
Rpc.Unsplash
Rpc.Unsplash.Download
Rpc.Unsplash.Download.Request
Field |
Type |
Label |
Description |
pictureId |
string |
|
|
Rpc.Unsplash.Download.Response
Rpc.Unsplash.Download.Response.Error
Rpc.Unsplash.Search
Rpc.Unsplash.Search.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.Unsplash.Search.Response
Rpc.Unsplash.Search.Response.Error
Rpc.Unsplash.Search.Response.Picture
Rpc.Wallet
Rpc.Wallet.CloseSession
Rpc.Wallet.CloseSession.Request
Field |
Type |
Label |
Description |
token |
string |
|
|
Rpc.Wallet.CloseSession.Response
Rpc.Wallet.CloseSession.Response.Error
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
Rpc.Wallet.Convert.Response.Error
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
Rpc.Wallet.Create.Response.Error
Rpc.Wallet.CreateSession
Rpc.Wallet.CreateSession.Request
Field |
Type |
Label |
Description |
mnemonic |
string |
|
|
Rpc.Wallet.CreateSession.Response
Rpc.Wallet.CreateSession.Response.Error
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
Rpc.Wallet.Recover.Response.Error
Rpc.Workspace
Rpc.Workspace.Create
Rpc.Workspace.Create.Request
Field |
Type |
Label |
Description |
name |
string |
|
|
Rpc.Workspace.Create.Response
Rpc.Workspace.Create.Response.Error
Rpc.Workspace.Export
Rpc.Workspace.Export.Request
Field |
Type |
Label |
Description |
path |
string |
|
the path where export files will place |
workspaceId |
string |
|
|
Rpc.Workspace.Export.Response
Rpc.Workspace.Export.Response.Error
Rpc.Workspace.GetAll
Rpc.Workspace.GetAll.Request
Rpc.Workspace.GetAll.Response
Rpc.Workspace.GetAll.Response.Error
Rpc.Workspace.GetCurrent
Rpc.Workspace.GetCurrent.Request
Rpc.Workspace.GetCurrent.Response
Rpc.Workspace.GetCurrent.Response.Error
Rpc.Workspace.Object
Rpc.Workspace.Object.Add
Rpc.Workspace.Object.Add.Request
Field |
Type |
Label |
Description |
objectId |
string |
|
|
Rpc.Workspace.Object.Add.Response
Rpc.Workspace.Object.Add.Response.Error
Rpc.Workspace.Object.ListAdd
Rpc.Workspace.Object.ListAdd.Request
Field |
Type |
Label |
Description |
objectIds |
string |
repeated |
|
Rpc.Workspace.Object.ListAdd.Response
Rpc.Workspace.Object.ListAdd.Response.Error
Rpc.Workspace.Object.ListRemove
Rpc.Workspace.Object.ListRemove.Request
Field |
Type |
Label |
Description |
objectIds |
string |
repeated |
|
Rpc.Workspace.Object.ListRemove.Response
Rpc.Workspace.Object.ListRemove.Response.Error
Rpc.Workspace.Select
Rpc.Workspace.Select.Request
Field |
Type |
Label |
Description |
workspaceId |
string |
|
|
Rpc.Workspace.Select.Response
Rpc.Workspace.Select.Response.Error
Rpc.Workspace.SetIsHighlighted
Rpc.Workspace.SetIsHighlighted.Request
Field |
Type |
Label |
Description |
objectId |
string |
|
|
isHighlighted |
bool |
|
|
Rpc.Workspace.SetIsHighlighted.Response
Rpc.Workspace.SetIsHighlighted.Response.Error
StreamRequest
Field |
Type |
Label |
Description |
token |
string |
|
|
Rpc.Account.ConfigUpdate.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
ACCOUNT_IS_NOT_RUNNING |
101 |
|
FAILED_TO_WRITE_CONFIG |
102 |
|
FAILED_TO_GET_CONFIG |
103 |
|
Rpc.Account.ConfigUpdate.Timezones
Name |
Number |
Description |
GMT |
0 |
|
ECT |
1 |
|
EET |
2 |
|
EAT |
3 |
|
MET |
4 |
|
NET |
5 |
|
PLT |
6 |
|
IST |
7 |
|
BST |
8 |
|
VST |
9 |
|
CTT |
10 |
|
JST |
11 |
|
ACT |
12 |
|
AET |
13 |
|
SST |
14 |
|
NST |
15 |
|
MIT |
16 |
|
HST |
17 |
|
AST |
18 |
|
PST |
19 |
|
MST |
20 |
|
CST |
21 |
|
IET |
22 |
|
PRT |
23 |
|
CNT |
24 |
|
BET |
25 |
|
BRT |
26 |
|
CAT |
27 |
|
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 |
|
FAILED_TO_WRITE_CONFIG |
105 |
|
FAILED_TO_CREATE_LOCAL_REPO |
106 |
|
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.Delete.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
No error; |
UNKNOWN_ERROR |
1 |
Any other errors |
BAD_INPUT |
2 |
|
ACCOUNT_IS_ALREADY_DELETED |
101 |
|
ACCOUNT_IS_ACTIVE |
102 |
|
Rpc.Account.Move.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
FAILED_TO_STOP_NODE |
101 |
|
FAILED_TO_IDENTIFY_ACCOUNT_DIR |
102 |
|
FAILED_TO_REMOVE_ACCOUNT_DATA |
103 |
|
FAILED_TO_CREATE_LOCAL_REPO |
104 |
|
FAILED_TO_WRITE_CONFIG |
105 |
|
FAILED_TO_GET_CONFIG |
106 |
|
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 |
|
ACCOUNT_IS_DELETED |
109 |
|
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.App.GetVersion.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
VERSION_IS_EMPTY |
3 |
|
NOT_FOUND |
101 |
|
TIMEOUT |
102 |
|
Rpc.App.SetDeviceState.Request.DeviceState
Name |
Number |
Description |
BACKGROUND |
0 |
|
FOREGROUND |
1 |
|
Rpc.App.SetDeviceState.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
NODE_NOT_STARTED |
101 |
|
Rpc.App.Shutdown.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
NODE_NOT_STARTED |
101 |
|
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.CreateWidget.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Block.Cut.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.ListConvertToObjects.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Block.ListDelete.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Block.ListDuplicate.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Block.ListMoveToExistingObject.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Block.ListMoveToNewObject.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Block.ListSetAlign.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Block.ListSetBackgroundColor.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Block.ListSetFields.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Block.ListSetVerticalAlign.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Block.ListTurnInto.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.Paste.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.SetFields.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
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.Upload.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockBookmark.CreateAndFetch.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
Rpc.BlockBookmark.Fetch.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
Rpc.BlockDataview.CreateBookmark.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockDataview.Filter.Add.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
Rpc.BlockDataview.GroupOrder.Update.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
Rpc.BlockDataview.ObjectOrder.Update.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
Rpc.BlockDataview.Relation.Add.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
Rpc.BlockDataview.Relation.Delete.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
Rpc.BlockDataview.Relation.ListAvailable.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
NOT_A_DATAVIEW_BLOCK |
3 |
... |
Rpc.BlockDataview.SetSource.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
Rpc.BlockDataview.View.Create.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockDataview.View.Delete.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockDataview.View.SetActive.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockDataview.View.SetPosition.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockDataview.View.Update.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockDiv.ListSetStyle.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockFile.CreateAndUpload.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
Rpc.BlockFile.ListSetStyle.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockFile.SetName.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockImage.SetName.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockImage.SetWidth.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockLatex.SetText.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockLink.CreateWithObject.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockLink.ListSetAppearance.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockRelation.Add.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
Rpc.BlockRelation.SetKey.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
Rpc.BlockTable.ColumnCreate.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockTable.ColumnDelete.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockTable.ColumnDuplicate.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockTable.ColumnListFill.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockTable.ColumnMove.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockTable.Create.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockTable.Expand.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockTable.RowCreate.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockTable.RowDelete.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockTable.RowDuplicate.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockTable.RowListClean.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockTable.RowListFill.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.BlockTable.Sort.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockText.ListClearContent.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockText.ListClearStyle.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockText.ListSetColor.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockText.ListSetMark.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockText.ListSetStyle.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockText.SetChecked.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockText.SetColor.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockText.SetIcon.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockText.SetMarks.Get.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockText.SetStyle.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockText.SetText.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockVideo.SetName.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.BlockVideo.SetWidth.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Debug.ExportLocalstore.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Debug.Ping.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
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.File.Download.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
NOT_FOUND |
3 |
|
Rpc.File.Drop.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.File.ListOffload.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
NODE_NOT_STARTED |
103 |
... |
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.File.Upload.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
Rpc.GenericErrorResponse.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.History.GetVersions.Response.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.ShowVersion.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.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 |
Rpc.Navigation.GetObjectInfoWithLinks.Response.Error.Code
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.ApplyTemplate.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Object.BookmarkFetch.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Object.Close.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Object.Create.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Object.CreateBookmark.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Object.CreateObjectType.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
UNKNOWN_OBJECT_TYPE_URL |
3 |
... |
Rpc.Object.CreateRelation.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
Rpc.Object.CreateRelationOption.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
Rpc.Object.CreateSet.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
UNKNOWN_OBJECT_TYPE_URL |
3 |
|
Rpc.Object.Duplicate.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.GroupsSubscribe.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
Rpc.Object.Import.Request.Mode
Name |
Number |
Description |
ALL_OR_NOTHING |
0 |
|
IGNORE_ERRORS |
1 |
|
Rpc.Object.Import.Request.Type
Name |
Number |
Description |
Notion |
0 |
|
External |
1 |
external developers use it |
Rpc.Object.Import.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
INTERNAL_ERROR |
1 |
|
UNKNOWN_ERROR |
2 |
|
BAD_INPUT |
3 |
|
Rpc.Object.ImportList.ImportResponse.Type
Name |
Number |
Description |
Notion |
0 |
|
Rpc.Object.ImportList.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
INTERNAL_ERROR |
1 |
|
UNKNOWN_ERROR |
2 |
|
BAD_INPUT |
3 |
|
Rpc.Object.ImportMarkdown.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Object.ListDelete.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Object.ListDuplicate.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Object.ListExport.Format
Name |
Number |
Description |
Markdown |
0 |
|
Protobuf |
1 |
|
JSON |
2 |
|
DOT |
3 |
|
SVG |
4 |
|
GRAPH_JSON |
5 |
|
Rpc.Object.ListExport.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Object.ListSetIsArchived.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Object.ListSetIsFavorite.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Object.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.Object.OpenBreadcrumbs.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Object.Redo.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
CAN_NOT_MOVE |
3 |
... |
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.SetBreadcrumbs.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Object.SetDetails.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Object.SetInternalFlags.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
UNKNOWN_OBJECT_TYPE_URL |
3 |
|
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 |
... |
Rpc.Object.SetObjectType.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
UNKNOWN_OBJECT_TYPE_URL |
3 |
|
Rpc.Object.ShareByLink.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Object.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.Object.SubscribeIds.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Object.ToBookmark.Response.Error.Code
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.Object.Undo.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
CAN_NOT_MOVE |
3 |
... |
Rpc.ObjectRelation.Add.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
Rpc.ObjectRelation.AddFeatured.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.ObjectRelation.Delete.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
Rpc.ObjectRelation.ListAvailable.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.ObjectRelation.RemoveFeatured.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.Process.Cancel.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
Rpc.Relation.ListRemoveOption.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
OPTION_USED_BY_OBJECTS |
3 |
|
Rpc.Relation.Options.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
Rpc.Template.Clone.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Template.CreateFromObject.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Template.CreateFromObjectType.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Template.ExportAll.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Unsplash.Download.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
RATE_LIMIT_EXCEEDED |
100 |
... |
Rpc.Unsplash.Search.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
RATE_LIMIT_EXCEEDED |
100 |
... |
Rpc.Wallet.CloseSession.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
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.CreateSession.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
|
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.Export.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.Object.Add.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Workspace.Object.ListAdd.Response.Error.Code
Name |
Number |
Description |
NULL |
0 |
|
UNKNOWN_ERROR |
1 |
|
BAD_INPUT |
2 |
... |
Rpc.Workspace.Object.ListRemove.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 |
... |
File-level Extensions
Extension |
Type |
Base |
Number |
Description |
no_auth |
bool |
.google.protobuf.MessageOptions |
7777 |
|
Top
pb/protos/events.proto
Event
Event – type of message, that could be sent from a middleware to the corresponding front-end.
Event.Account
Event.Account.Config
Event.Account.Config.Update
Event.Account.Details
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.Account.Update
Event.Block
Event.Block.Add
Event to show internal blocks on a client.
Example Scenarios
A. Block Creation
- Block A have been created on a client C1
- Client C2 receives Event.Block.Add(Block A), Event.Block.Update(Page.children)
B. Partial block load
- Client C1 opens Page1, that contains, for example, 133 blocks.
- M -> F: ShowFullScreen(Root, blocks1-50)
- M -> F: Block.Add(blocks51-100)
- M -> F: Block.Add(blocks101-133)
Field |
Type |
Label |
Description |
blocks |
model.Block |
repeated |
id -> block |
Event.Block.Dataview
Event.Block.Dataview.GroupOrderUpdate
Event.Block.Dataview.ObjectOrderUpdate
Event.Block.Dataview.OldRelationDelete
Field |
Type |
Label |
Description |
id |
string |
|
dataview block's id |
relationKey |
string |
|
relation key to remove |
Event.Block.Dataview.OldRelationSet
sent when the dataview relation has been changed or added
Event.Block.Dataview.RelationDelete
Field |
Type |
Label |
Description |
id |
string |
|
dataview block's id |
relationKeys |
string |
repeated |
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 |
relationLinks |
model.RelationLink |
repeated |
relation id to update |
Event.Block.Dataview.SliceChange
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
Event.Block.Dataview.ViewUpdate
Event.Block.Dataview.ViewUpdate.Fields
Event.Block.Dataview.ViewUpdate.Filter
Event.Block.Dataview.ViewUpdate.Filter.Add
Event.Block.Dataview.ViewUpdate.Filter.Move
Field |
Type |
Label |
Description |
afterId |
string |
|
|
ids |
string |
repeated |
|
Event.Block.Dataview.ViewUpdate.Filter.Remove
Field |
Type |
Label |
Description |
ids |
string |
repeated |
|
Event.Block.Dataview.ViewUpdate.Filter.Update
Event.Block.Dataview.ViewUpdate.Relation
Event.Block.Dataview.ViewUpdate.Relation.Add
Event.Block.Dataview.ViewUpdate.Relation.Move
Field |
Type |
Label |
Description |
afterId |
string |
|
|
ids |
string |
repeated |
|
Event.Block.Dataview.ViewUpdate.Relation.Remove
Field |
Type |
Label |
Description |
ids |
string |
repeated |
|
Event.Block.Dataview.ViewUpdate.Relation.Update
Event.Block.Dataview.ViewUpdate.Sort
Event.Block.Dataview.ViewUpdate.Sort.Add
Event.Block.Dataview.ViewUpdate.Sort.Move
Field |
Type |
Label |
Description |
afterId |
string |
|
|
ids |
string |
repeated |
|
Event.Block.Dataview.ViewUpdate.Sort.Remove
Field |
Type |
Label |
Description |
ids |
string |
repeated |
|
Event.Block.Dataview.ViewUpdate.Sort.Update
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
- User A drops a set of files/pictures/videos
- 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
Event.Block.Fill.BackgroundColor
Field |
Type |
Label |
Description |
id |
string |
|
|
backgroundColor |
string |
|
|
Event.Block.Fill.Bookmark
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.TargetObjectId
Field |
Type |
Label |
Description |
value |
string |
|
|
Event.Block.Fill.Bookmark.Title
Field |
Type |
Label |
Description |
value |
string |
|
|
Event.Block.Fill.Bookmark.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
Event.Block.Fill.Details
Event.Block.Fill.Div
Event.Block.Fill.Div.Style
Event.Block.Fill.Fields
Event.Block.Fill.File
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
Event.Block.Fill.File.Style
Event.Block.Fill.File.Type
Event.Block.Fill.File.Width
Field |
Type |
Label |
Description |
value |
int32 |
|
|
Event.Block.Fill.Link
Event.Block.Fill.Link.Fields
Event.Block.Fill.Link.Style
Event.Block.Fill.Link.TargetBlockId
Field |
Type |
Label |
Description |
value |
string |
|
|
Event.Block.Fill.Restrictions
Event.Block.Fill.Text
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
Event.Block.Fill.Text.Style
Event.Block.Fill.Text.Text
Field |
Type |
Label |
Description |
value |
string |
|
|
Event.Block.MarksInfo
Event.Block.Set
Event.Block.Set.Align
Event.Block.Set.BackgroundColor
Field |
Type |
Label |
Description |
id |
string |
|
|
backgroundColor |
string |
|
|
Event.Block.Set.Bookmark
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.State
Event.Block.Set.Bookmark.TargetObjectId
Field |
Type |
Label |
Description |
value |
string |
|
|
Event.Block.Set.Bookmark.Title
Field |
Type |
Label |
Description |
value |
string |
|
|
Event.Block.Set.Bookmark.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
Event.Block.Set.Div.Style
Event.Block.Set.Fields
Event.Block.Set.File
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
Event.Block.Set.File.Style
Event.Block.Set.File.Type
Event.Block.Set.File.Width
Field |
Type |
Label |
Description |
value |
int32 |
|
|
Event.Block.Set.Latex
Event.Block.Set.Latex.Text
Field |
Type |
Label |
Description |
value |
string |
|
|
Event.Block.Set.Link
Event.Block.Set.Link.CardStyle
Event.Block.Set.Link.Description
Event.Block.Set.Link.Fields
Event.Block.Set.Link.IconSize
Event.Block.Set.Link.Relations
Field |
Type |
Label |
Description |
value |
string |
repeated |
|
Event.Block.Set.Link.Style
Event.Block.Set.Link.TargetBlockId
Field |
Type |
Label |
Description |
value |
string |
|
|
Event.Block.Set.Relation
Event.Block.Set.Relation.Key
Field |
Type |
Label |
Description |
value |
string |
|
|
Event.Block.Set.Restrictions
Event.Block.Set.TableRow
Field |
Type |
Label |
Description |
value |
bool |
|
|
Event.Block.Set.Text
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
Event.Block.Set.Text.Style
Event.Block.Set.Text.Text
Field |
Type |
Label |
Description |
value |
string |
|
|
Event.Block.Set.VerticalAlign
Event.Block.Set.Widget
Event.Block.Set.Widget.Layout
Event.Message
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
Event.Object.Details.Amend.KeyValue
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.Relations
Event.Object.Relations.Amend
Event.Object.Relations.Remove
Field |
Type |
Label |
Description |
id |
string |
|
context objectId |
relationKeys |
string |
repeated |
|
Event.Object.Remove
Field |
Type |
Label |
Description |
ids |
string |
repeated |
notifies that objects were removed |
Event.Object.Restriction
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.Groups
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
Event.Process.New
Event.Process.Update
Event.Status
Event.Status.Thread
Event.Status.Thread.Account
Event.Status.Thread.Cafe
Event.Status.Thread.Cafe.PinStatus
Event.Status.Thread.Device
Event.Status.Thread.Summary
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
- User B opens the same block
- 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
- User B closes the block
- 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
- User B selects some inner blocks
- 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. |
Middleware to front end event message, that will be sent in this scenario:
Precondition: user A and user B opened the same block
- User B sets cursor or selects a text region into a text block
- 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
Model.Process.Progress
ResponseEvent
Event.Block.Dataview.SliceOperation
Name |
Number |
Description |
SliceOperationNone |
0 |
not used |
SliceOperationAdd |
1 |
|
SliceOperationMove |
2 |
|
SliceOperationRemove |
3 |
|
SliceOperationReplace |
4 |
|
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
ObjectInfo
ObjectInfoWithLinks
ObjectInfoWithOutboundLinks
ObjectInfoWithOutboundLinksIDs
ObjectLinks
Field |
Type |
Label |
Description |
inboundIDs |
string |
repeated |
|
outboundIDs |
string |
repeated |
|
ObjectLinksInfo
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 |
filestoreKeysForceReindexCounter |
int32 |
|
|
Top
pkg/lib/pb/model/protos/models.proto
Account
Contains basic information about a user 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
Account.Info
Field |
Type |
Label |
Description |
homeObjectId |
string |
|
home dashboard block id |
archiveObjectId |
string |
|
archive block id |
profileObjectId |
string |
|
profile block id |
marketplaceTypeObjectId |
string |
|
deprecated, to be removed |
marketplaceRelationObjectId |
string |
|
deprecated, to be removed |
marketplaceTemplateObjectId |
string |
|
deprecated, to be removed |
marketplaceWorkspaceId |
string |
|
marketplace workspace id |
deviceId |
string |
|
|
accountSpaceId |
string |
|
marketplace template id |
widgetsId |
string |
|
|
gatewayUrl |
string |
|
gateway url for fetching static files |
localStoragePath |
string |
|
path to local storage |
timeZone |
string |
|
time zone from config |
Account.Status
Block
Block.Content
Block.Content.Bookmark
Bookmark is to keep a web-link and to preview a content.
Block.Content.Dataview
Block.Content.Dataview.Checkbox
Field |
Type |
Label |
Description |
checked |
bool |
|
|
Block.Content.Dataview.Date
Block.Content.Dataview.Filter
Block.Content.Dataview.Group
Block.Content.Dataview.GroupOrder
Block.Content.Dataview.ObjectOrder
Block.Content.Dataview.Relation
Block.Content.Dataview.Sort
Block.Content.Dataview.Status
Field |
Type |
Label |
Description |
id |
string |
|
|
Block.Content.Dataview.Tag
Field |
Type |
Label |
Description |
ids |
string |
repeated |
|
Block.Content.Dataview.View
Block.Content.Dataview.ViewGroup
Block.Content.Div
Divider: block, that contains only one horizontal thin line
Block.Content.FeaturedRelations
Block.Content.File
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
Block.Content.Link
Link: block to link some content from an external sources.
Block.Content.Relation
Field |
Type |
Label |
Description |
key |
string |
|
|
Block.Content.Smartblock
Block.Content.Table
Block.Content.TableColumn
Block.Content.TableOfContents
Block.Content.TableRow
Field |
Type |
Label |
Description |
isHeader |
bool |
|
|
Block.Content.Text
Block.Content.Text.Mark
Block.Content.Text.Marks
Block.Content.Widget
Block.Restrictions
BlockMetaOnly
Used to decode block meta only, without the content itself
InternalFlag
Layout
LinkPreview
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) |
relationLinks |
RelationLink |
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 |
installedByDefault |
bool |
|
|
ObjectView
Works with a smart blocks: Page, Dashboard
Dashboard opened, click on a page, Rpc.Block.open, Block.ShowFullscreen(PageBlock)
ObjectView.DetailsSet
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 |
|
ObjectView.HistorySize
Field |
Type |
Label |
Description |
undo |
int32 |
|
|
redo |
int32 |
|
|
ObjectView.RelationWithValuePerObject
Range
General purpose structure, uses in Mark.
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 |
id |
string |
|
|
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 |
relationKey |
string |
|
4 is reserved for old relation format |
stored |
RelationLink
RelationOptions
RelationWithValue
Relations
Field |
Type |
Label |
Description |
relations |
Relation |
repeated |
|
Restrictions
Restrictions.DataviewRestrictions
SmartBlockSnapshotBase
ThreadCreateQueueEntry
Field |
Type |
Label |
Description |
collectionThread |
string |
|
|
threadId |
string |
|
|
ThreadDeeplinkPayload
Field |
Type |
Label |
Description |
key |
string |
|
|
addrs |
string |
repeated |
|
Account.StatusType
Name |
Number |
Description |
Active |
0 |
|
PendingDeletion |
1 |
|
StartedDeletion |
2 |
|
Deleted |
3 |
|
Block.Align
Name |
Number |
Description |
AlignLeft |
0 |
|
AlignCenter |
1 |
|
AlignRight |
2 |
|
Block.Content.Bookmark.State
Name |
Number |
Description |
Empty |
0 |
|
Fetching |
1 |
|
Done |
2 |
|
Error |
3 |
|
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 |
|
ExactIn |
15 |
|
NotExactIn |
16 |
|
Block.Content.Dataview.Filter.Operator
Name |
Number |
Description |
And |
0 |
|
Or |
1 |
|
Block.Content.Dataview.Filter.QuickOption
Name |
Number |
Description |
ExactDate |
0 |
|
Yesterday |
1 |
|
Today |
2 |
|
Tomorrow |
3 |
|
LastWeek |
4 |
|
CurrentWeek |
5 |
|
NextWeek |
6 |
|
LastMonth |
7 |
|
CurrentMonth |
8 |
|
NextMonth |
9 |
|
NumberOfDaysAgo |
10 |
|
NumberOfDaysNow |
11 |
|
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 |
|
Custom |
2 |
|
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 |
|
TableRows |
4 |
|
TableColumns |
5 |
|
Block.Content.Link.CardStyle
Name |
Number |
Description |
Text |
0 |
|
Card |
1 |
|
Inline |
2 |
|
Block.Content.Link.Description
Name |
Number |
Description |
None |
0 |
|
Added |
1 |
|
Content |
2 |
|
Block.Content.Link.IconSize
Name |
Number |
Description |
SizeNone |
0 |
|
SizeSmall |
1 |
|
SizeMedium |
2 |
|
Block.Content.Link.Style
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 one block of this style can exists on a page |
Checkbox |
8 |
|
Marked |
9 |
|
Numbered |
10 |
|
Toggle |
11 |
|
Description |
12 |
currently only one block of this style can exists on a page |
Callout |
13 |
|
Block.Content.Widget.Layout
Name |
Number |
Description |
Link |
0 |
|
Tree |
1 |
|
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 |
Block.VerticalAlign
Name |
Number |
Description |
VerticalAlignTop |
0 |
|
VerticalAlignMiddle |
1 |
|
VerticalAlignBottom |
2 |
|
InternalFlag.Value
Use such a weird construction due to the issue with imported repeated enum type
Look https://github.com/golang/protobuf/issues/1135 for more information.
Name |
Number |
Description |
editorDeleteEmpty |
0 |
|
editorSelectType |
1 |
|
editorSelectTemplate |
2 |
|
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 |
|
bookmark |
11 |
|
relationOptionsList |
12 |
|
relationOption |
13 |
|
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.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 |
restricts type changing |
LayoutChange |
6 |
restricts layout changing |
Template |
7 |
restricts template creation from this object |
Duplicate |
8 |
restricts duplicate object |
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 |
Widget |
112 |
|
File |
256 |
|
Template |
288 |
|
BundledTemplate |
289 |
|
MarketplaceType |
272 |
|
MarketplaceRelation |
273 |
|
MarketplaceTemplate |
274 |
|
BundledRelation |
512 |
DEPRECATED |
SubObject |
513 |
|
BundledObjectType |
514 |
|
AnytypeProfile |
515 |
|
Date |
516 |
|
WorkspaceOld |
517 |
deprecated thread-based workspace |
Workspace |
518 |
|
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) |