Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:recycle: Migrate graph API contracts https://github.com/siyuan-note/siyuan/issues/19378

Daniel3da41414568f
diff --git a/app/src/layout/dock/Graph.ts b/app/src/layout/dock/Graph.ts
index 2d93810438..966f99af7d 100644
--- a/app/src/layout/dock/Graph.ts
+++ b/app/src/layout/dock/Graph.ts
@@ -472,7 +472,11 @@ export class Graph extends Model {
if (requestVersion !== this.requestVersion) {
return;
}
- this.graphData = response.data;
+ if (response.code !== 0 || !response.data?.conf) {
+ element.classList.remove("fn__rotate");
+ return;
+ }
+ this.graphData = {nodes: response.data.nodes, links: response.data.links, box: response.data.box};
window.siyuan.config.graph.global = response.data.conf;
this.onGraph(undefined, resetLayout);
element.classList.remove("fn__rotate");
@@ -489,7 +493,7 @@ export class Graph extends Model {
return;
}
element.classList.remove("fn__rotate");
- if (response.code !== 0) {
+ if (response.code !== 0 || !response.data?.conf) {
this.graphData = undefined;
this.onGraph();
return;
@@ -512,7 +516,7 @@ export class Graph extends Model {
return;
}
}
- this.graphData = response.data;
+ this.graphData = {nodes: response.data.nodes, links: response.data.links, box: response.data.box};
window.siyuan.config.graph.local = response.data.conf;
this.onGraph(this.blockId, resetLayout);
});
diff --git a/app/src/types/api/index.d.ts b/app/src/types/api/index.d.ts
index 1f8969cdcf..0d3e0845ae 100644
--- a/app/src/types/api/index.d.ts
+++ b/app/src/types/api/index.d.ts
@@ -206,6 +206,32 @@ export type GetSnippetRequestInput = { "enabled": number; "keyword"?: string | n
export type GetTagRequestInput = { "app"?: string | null; "ignoreMaxListHint"?: boolean | null; "sort"?: number | null; };
+export type GlobalGraphConf = { "d3": GraphD3 | null; "dailyNote": boolean; "minRefs": number; "type": GraphTypeFilter | null; };
+
+export type GlobalGraphRequestInput = { "conf": GraphConfigurationFieldsInput; "k"?: string | null; "reqId"?: JSONValue | null; };
+
+export type GlobalGraphResult = { "box": string; "conf": GlobalGraphConf; "links": Array<GraphLink | null> | null; "nodes": Array<GraphNode | null> | null; "reqId": JSONValue; };
+
+export type GraphArrows = { "to": GraphArrowsTo | null; };
+
+export type GraphArrowsTo = { "enabled": boolean; };
+
+export type GraphConfigurationFieldsInput = { "d3"?: GraphD3Input | null; "dailyNote"?: boolean | null; "minRefs"?: number | null; "type"?: GraphTypeFilterInput | null; };
+
+export type GraphCorrelation = { "reqId": JSONValue; };
+
+export type GraphD3 = { "arrow": boolean; "centerStrength": number; "collideRadius": number; "collideStrength": number; "lineOpacity": number; "linkDistance": number; "linkWidth": number; "nodeSize": number; };
+
+export type GraphD3Input = { "arrow"?: boolean | null; "centerStrength"?: number | null; "collideRadius"?: number | null; "collideStrength"?: number | null; "lineOpacity"?: number | null; "linkDistance"?: number | null; "linkWidth"?: number | null; "nodeSize"?: number | null; };
+
+export type GraphLink = { "arrows": GraphArrows | null; "from": string; "ref": boolean; "to": string; };
+
+export type GraphNode = { "box": string; "defs": number; "id": string; "label": string; "path": string; "refs": number; "size": number; "title"?: string; "type": string; };
+
+export type GraphTypeFilter = { "blockquote": boolean; "callout": boolean; "code": boolean; "heading": boolean; "list": boolean; "listItem": boolean; "math": boolean; "paragraph": boolean; "super": boolean; "table": boolean; "tag": boolean; };
+
+export type GraphTypeFilterInput = { "blockquote"?: boolean | null; "callout"?: boolean | null; "code"?: boolean | null; "heading"?: boolean | null; "list"?: boolean | null; "listItem"?: boolean | null; "math"?: boolean | null; "paragraph"?: boolean | null; "super"?: boolean | null; "table"?: boolean | null; "tag"?: boolean | null; };
+
export type HTMLClipboardPreflight = { "converted": boolean; "dom"?: string; "normalizedHTML"?: string; "useHTML": boolean; };
export type HTMLClipboardRequestInput = { "dom": string; "mathML"?: string | null; "notebook"?: string | null; "office"?: string | null; "officeMathHTML"?: string | null; "preflight"?: boolean | null; "preparedHTML"?: boolean | null; "preserveSourceFormat"?: boolean | null; "skipBase64Assets"?: boolean | null; "skipInlineSVGAssets"?: boolean | null; "skipLocalAssets"?: boolean | null; "text"?: string | null; "wps"?: string | null; };
@@ -268,6 +294,12 @@ export type ListNotebooksRequestInput = { "flashcard"?: boolean | null; };
export type LoadPetalsRequestInput = { "frontend": string; };
+export type LocalGraphConf = { "d3": GraphD3 | null; "dailyNote": boolean; "type": GraphTypeFilter | null; };
+
+export type LocalGraphRequestInput = { "conf"?: GraphConfigurationFieldsInput; "id"?: string | null; "k"?: string | null; "notebook"?: string | null; "reqId"?: JSONValue | null; "type"?: string | null; };
+
+export type LocalGraphResult = { "box": string; "conf": LocalGraphConf; "id": string; "links": Array<GraphLink | null> | null; "nodes": Array<GraphNode | null> | null; "reqId": JSONValue; };
+
export type LockScreenRequestInput = { "lockScreenMode": number; };
export type MarkdownHTMLRequestInput = { "markdown": string; "mode"?: string | null; };
@@ -388,6 +420,10 @@ export type ReorderData = { "changed": boolean; "notebook"?: string; "parentPath
export type ReorderNotebooksRequestInput = { "position"?: string | null; "sourceIDs"?: Array<string> | null; "targetID"?: string | null; };
+export type ResetGraphData = { "conf": GlobalGraphConf; };
+
+export type ResetLocalGraphData = { "conf": LocalGraphConf; };
+
export type RichClipboardAssetInput = { "box"?: string; "index": number; "path": string; };
export type RichClipboardPrepared = { "assets": Array<RichClipboardPreparedAsset> | null; "batch": string; "groups": Array<string> | null; };
@@ -420,6 +456,8 @@ export type SetBlockAttrsRequestInput = { "attrs": Record<string, string | null>
export type SetCriterionRequestInput = { "criterion": CriterionInput | null; };
+export type SetGraphConfRequestInput = { "conf": GraphConfigurationFieldsInput; "type": string; };
+
export type SetInlineStylesRequestInput = { "app"?: string | null; "av"?: InlineStyleAVInput | null; "builtin"?: InlineStyleBuiltinInput | null; "order"?: InlineStyleOrderInput | null; "styles": Array<InlineStyleInput | null>; "version": number; };
export type SetNotebookConfRequestInput = { "conf"?: NotebookConfPatchInput | null; "notebook": string; };
@@ -763,11 +801,6 @@ export type APILegacyPOSTPath =
"/api/filetree/setPublishAccess" |
"/api/filetree/setSort" |
"/api/filetree/upsertIndexes" |
- "/api/graph/getGraph" |
- "/api/graph/getLocalGraph" |
- "/api/graph/resetGraph" |
- "/api/graph/resetLocalGraph" |
- "/api/graph/setGraphConf" |
"/api/history/createAssetHistory" |
"/api/history/createDocHistory" |
"/api/history/diffDocVersions" |
@@ -1476,6 +1509,31 @@ export interface APIPOSTRoutes {
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
body: "json";
};
+ "/api/graph/getGraph": {
+ request: GlobalGraphRequestInput;
+ response: { "code": 0; "data": GlobalGraphResult | (GraphCorrelation & { "box"?: never; "conf"?: never; "links"?: never; "nodes"?: never; }); "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null | GlobalGraphResult | (GraphCorrelation & { "box"?: never; "conf"?: never; "links"?: never; "nodes"?: never; }); "msg": string; };
+ body: "json";
+ };
+ "/api/graph/getLocalGraph": {
+ request: LocalGraphRequestInput;
+ response: { "code": 0; "data": LocalGraphResult | (GraphCorrelation & { "box"?: never; "conf"?: never; "id"?: never; "links"?: never; "nodes"?: never; }); "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null | LocalGraphResult | (GraphCorrelation & { "box"?: never; "conf"?: never; "id"?: never; "links"?: never; "nodes"?: never; }); "msg": string; };
+ body: "json";
+ };
+ "/api/graph/resetGraph": {
+ request: EmptyRequestInput;
+ response: { "code": 0; "data": ResetGraphData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "none";
+ };
+ "/api/graph/resetLocalGraph": {
+ request: EmptyRequestInput;
+ response: { "code": 0; "data": ResetLocalGraphData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "none";
+ };
+ "/api/graph/setGraphConf": {
+ request: SetGraphConfRequestInput;
+ response: { "code": 0; "data": GlobalGraphConf | (LocalGraphConf & { "minRefs"?: never; }); "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
+ body: "json";
+ };
"/api/history/clearWorkspaceHistory": {
request: EmptyRequestInput;
response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };
diff --git a/docs/API-CONTRACTS.md b/docs/API-CONTRACTS.md
index b94c4c3ce4..07df343db1 100644
--- a/docs/API-CONTRACTS.md
+++ b/docs/API-CONTRACTS.md
@@ -24,6 +24,8 @@ Encrypted notebook lifecycle endpoints use typed requests and responses while re
## Compatibility requirements
+Graph contracts preserve partial configuration defaults, case-insensitive configuration fields, and numeric normalization. Query responses distinguish full graph data from correlation-only payloads, including errors and local queries without an ID; node and link arrays retain their original nullability. Configuration persistence still requires administrator access outside read-only mode. Publish filtering and encrypted-notebook rejection retain their existing order relative to configuration decoding.
+
Template contracts retain path checks before mode and source validation, explicit-mode precedence over the legacy preview flag, database-mode defaults, and the code `1` overwrite prompt. File management keeps Go struct JSON binding and its fixed parse-error message, with separate list, source, revision, and null payloads. Revision checks, symlink restrictions, and sync invalidation remain in the existing model operations.
SQL query contracts retain `limit` and `truncated` at the success envelope's top level. `SuccessSQL` attaches this metadata while failures omit it. Row names come from the query; each value is a JSON scalar, preserving integer digits and Base64 serialization of binary values. Statement trimming, optional mode handling, single-statement and read-only checks, and code `1` query errors remain unchanged.
diff --git a/docs/API-CONTRACTS.zh-CN.md b/docs/API-CONTRACTS.zh-CN.md
index c716cbc08d..846b24ca04 100644
--- a/docs/API-CONTRACTS.zh-CN.md
+++ b/docs/API-CONTRACTS.zh-CN.md
@@ -24,6 +24,8 @@
## 兼容要求
+图谱契约保留局部配置的默认值、配置字段不区分大小写和数值归一化行为。查询响应区分完整图数据和仅含请求标识的结果,后者包括错误及未提供 ID 的局部查询;节点和连线数组保留原有的空值语义。配置持久化仍要求管理员权限且不处于只读模式。发布过滤、加密笔记本拒绝访问与配置解码之间的执行顺序保持不变。
+
模板契约保留路径先于模式和源内容校验、显式模式优先于旧预览开关、数据库模式默认值,以及代码 `1` 的覆盖提示。文件管理保留 Go 结构体 JSON 绑定及其固定解析错误消息,分别声明列表、源内容、版本号和空载荷。版本校验、符号链接限制和同步失效处理仍由现有模型操作执行。
SQL 查询契约保留成功信封顶层的 `limit` 和 `truncated`。`SuccessSQL` 附加这些信息,失败响应不包含它们。结果列名由查询决定,每个值为 JSON 标量,保留整数位数和二进制值的 Base64 序列化。语句去除首尾空白、可选模式、单语句与只读检查,以及查询错误码 `1` 均保持不变。
diff --git a/kernel/api/contract_graph_test.go b/kernel/api/contract_graph_test.go
new file mode 100644
index 0000000000..ed029429eb
--- /dev/null
+++ b/kernel/api/contract_graph_test.go
@@ -0,0 +1,219 @@
+package api
+
+import (
+ "encoding/json"
+ "net/http/httptest"
+ "os"
+ "path/filepath"
+ "strings"
+ "testing"
+
+ "github.com/gin-gonic/gin"
+ "github.com/siyuan-note/siyuan/kernel/conf"
+ "github.com/siyuan-note/siyuan/kernel/model"
+ "github.com/siyuan-note/siyuan/kernel/util"
+)
+
+func TestAPIContractGraphConfigurationConversion(t *testing.T) {
+ global, local := conf.NewGlobalGraph(), conf.NewLocalGraph()
+ global.MinRefs, global.DailyNote, global.TypeFilter.Callout = 7, true, true
+ local.D3.LineOpacity, local.TypeFilter.Tag = 0.75, true
+ for _, pair := range [][2]json.RawMessage{
+ {graphJSON(t, global), graphJSON(t, globalGraphContract(global))},
+ {graphJSON(t, local), graphJSON(t, localGraphContract(local))},
+ {graphJSON(t, &conf.GlobalGraph{}), graphJSON(t, globalGraphContract(&conf.GlobalGraph{}))},
+ {graphJSON(t, &conf.LocalGraph{}), graphJSON(t, localGraphContract(&conf.LocalGraph{}))},
+ } {
+ if string(pair[0]) != string(pair[1]) {
+ t.Fatalf("graph configuration changed: %s != %s", pair[0], pair[1])
+ }
+ }
+}
+
+func TestAPIContractSetGraphConfiguration(t *testing.T) {
+ engine := gin.New()
+ engine.Use(func(c *gin.Context) { c.Set(model.RoleContextKey, model.RoleEditor) })
+ engine.POST("/api/graph/setGraphConf", setGraphConf)
+ for _, entry := range []struct {
+ body string
+ code int
+ local bool
+ distance int
+ empty bool
+ }{
+ {`{"type":" global ","conf":{}}`, 0, false, 400, false},
+ {`{"type":"global","conf":{"D3":{"linkDistance":1.0}}}`, 0, false, 1, false},
+ {`{"type":"local","conf":{"minRefs":"ignored","d3":{"arrow":false}}}`, 0, true, 400, false},
+ {`{"type":"global","conf":{"type":null,"d3":null}}`, 0, false, 0, true},
+ {`{"type":"unknown","conf":{"d3":false}}`, -1, false, 0, false},
+ {`{"type":"global","conf":{"d3":false}}`, -1, false, 0, false},
+ {`{"type":"global","conf":null}`, -1, false, 0, false},
+ } {
+ recorder := httptest.NewRecorder()
+ engine.ServeHTTP(recorder, httptest.NewRequest("POST", "/api/graph/setGraphConf", strings.NewReader(entry.body)))
+ requireAPIContract(t, "POST", "/api/graph/setGraphConf", recorder)
+ var response struct {
+ Code int `json:"code"`
+ Data struct {
+ MinRefs *int `json:"minRefs"`
+ D3 *conf.D3 `json:"d3"`
+ Type *conf.TypeFilter `json:"type"`
+ } `json:"data"`
+ }
+ if err := json.Unmarshal(recorder.Body.Bytes(), &response); err != nil || response.Code != entry.code {
+ t.Fatalf("graph settings changed: %s, %v", recorder.Body.String(), err)
+ }
+ if entry.code != 0 {
+ continue
+ }
+ if (response.Data.MinRefs == nil) != entry.local {
+ t.Fatalf("graph type changed: %s", recorder.Body.String())
+ }
+ if entry.empty {
+ if response.Data.D3 != nil || response.Data.Type != nil {
+ t.Fatal("explicit null was replaced by defaults")
+ }
+ } else if response.Data.D3 == nil || response.Data.D3.LinkDistance != entry.distance || response.Data.D3.NodeSize != 15 {
+ t.Fatalf("graph defaults or numeric normalization changed: %s", recorder.Body.String())
+ }
+ }
+}
+
+func graphJSON[T any](t *testing.T, value T) json.RawMessage {
+ t.Helper()
+ data, err := json.Marshal(value)
+ if err != nil {
+ t.Fatal(err)
+ }
+ return data
+}
+
+func TestAPIContractGraphQueryErrors(t *testing.T) {
+ engine := gin.New()
+ engine.POST("/api/graph/getGraph", getGraph)
+ engine.POST("/api/graph/getLocalGraph", getLocalGraph)
+ for _, entry := range []struct {
+ route, body, data string
+ code int
+ }{
+ {"getGraph", `{`, `null`, -1},
+ {"getGraph", `{"reqId":{"a":[true,null]},"conf":null}`, `{"reqId":{"a":[true,null]}}`, -1},
+ {"getGraph", `{"reqId":7,"conf":{"d3":false}}`, `{"reqId":7}`, -1},
+ {"getLocalGraph", `{"reqId":8,"k":false,"conf":null}`, `{"reqId":8}`, 0},
+ {"getLocalGraph", `{"reqId":9,"id":null,"k":false}`, `{"reqId":9}`, 0},
+ {"getLocalGraph", `{"reqId":10,"id":" "}`, `{"reqId":10}`, -1},
+ {"getLocalGraph", `{"reqId":11,"id":"id","conf":false}`, `{"reqId":11}`, -1},
+ } {
+ path := "/api/graph/" + entry.route
+ recorder := httptest.NewRecorder()
+ engine.ServeHTTP(recorder, httptest.NewRequest("POST", path, strings.NewReader(entry.body)))
+ requireAPIContract(t, "POST", path, recorder)
+ var response struct {
+ Code int `json:"code"`
+ Data json.RawMessage `json:"data"`
+ }
+ if err := json.Unmarshal(recorder.Body.Bytes(), &response); err != nil || response.Code != entry.code || string(response.Data) != entry.data {
+ t.Fatalf("graph correlation response changed: %s, %v", recorder.Body.String(), err)
+ }
+ }
+}
+
+func TestAPIContractLocalGraphEncryptedNotebook(t *testing.T) {
+ _, boxID := setupArchiveWorkspace(t)
+ previous := model.Conf
+ model.Conf = model.NewAppConf()
+ t.Cleanup(func() { model.Conf = previous })
+ engine := gin.New()
+ engine.POST("/api/graph/getLocalGraph", getLocalGraph)
+ recorder := httptest.NewRecorder()
+ engine.ServeHTTP(recorder, httptest.NewRequest("POST", "/api/graph/getLocalGraph", strings.NewReader(`{"id":"missing","reqId":12,"notebook":"`+boxID+`","conf":{"d3":false}}`)))
+ requireAPIContract(t, "POST", "/api/graph/getLocalGraph", recorder)
+ var response struct {
+ Code int `json:"code"`
+ Msg string `json:"msg"`
+ Data json.RawMessage `json:"data"`
+ }
+ if err := json.Unmarshal(recorder.Body.Bytes(), &response); err != nil || response.Code != -1 || response.Msg != model.Conf.Language(392) || string(response.Data) != `{"reqId":12}` {
+ t.Fatalf("encrypted graph validation order changed: %s, %v", recorder.Body.String(), err)
+ }
+}
+
+func testGraphQueryContracts(t *testing.T, id string) {
+ t.Helper()
+ previous := model.Conf.Graph
+ model.Conf.Graph = conf.NewGraph()
+ defer func() { model.Conf.Graph = previous }()
+ for _, role := range []model.Role{model.RoleAdministrator, model.RoleReader} {
+ engine := gin.New()
+ engine.Use(func(c *gin.Context) { c.Set(model.RoleContextKey, role) })
+ engine.POST("/api/graph/getGraph", getGraph)
+ engine.POST("/api/graph/getLocalGraph", getLocalGraph)
+ for _, path := range []string{"/api/graph/getGraph", "/api/graph/getLocalGraph"} {
+ recorder := httptest.NewRecorder()
+ engine.ServeHTTP(recorder, httptest.NewRequest("POST", path, strings.NewReader(`{"reqId":13,"id":" `+id+` ","conf":{}}`)))
+ requireAPIContract(t, "POST", path, recorder)
+ var response struct {
+ Code int `json:"code"`
+ Data struct {
+ ReqID int `json:"reqId"`
+ Nodes json.RawMessage `json:"nodes"`
+ Links json.RawMessage `json:"links"`
+ Conf json.RawMessage `json:"conf"`
+ } `json:"data"`
+ }
+ if err := json.Unmarshal(recorder.Body.Bytes(), &response); err != nil || response.Code != 0 || response.Data.ReqID != 13 || response.Data.Nodes == nil || response.Data.Links == nil || len(response.Data.Conf) == 0 {
+ t.Fatalf("graph query failed: %s, %v", recorder.Body.String(), err)
+ }
+ }
+ }
+}
+
+// testGraphResetContracts 使用契约测试进程的临时配置目录验证重置后的持久化状态。
+func testGraphResetContracts(t *testing.T) {
+ t.Helper()
+ previous := model.Conf.Graph
+ model.Conf.Graph = conf.NewGraph()
+ defer func() { model.Conf.Graph = previous }()
+ model.Conf.Graph.Global.MinRefs = 12
+ model.Conf.Graph.Local.DailyNote = true
+ engine := gin.New()
+ engine.POST("/api/graph/resetGraph", resetGraph)
+ engine.POST("/api/graph/resetLocalGraph", resetLocalGraph)
+ for _, entry := range []struct {
+ route string
+ expected json.RawMessage
+ }{
+ {"resetGraph", graphJSON(t, conf.NewGlobalGraph())},
+ {"resetLocalGraph", graphJSON(t, conf.NewLocalGraph())},
+ } {
+ path := "/api/graph/" + entry.route
+ recorder := httptest.NewRecorder()
+ engine.ServeHTTP(recorder, httptest.NewRequest("POST", path, strings.NewReader("invalid ignored body")))
+ requireAPIContract(t, "POST", path, recorder)
+ var response struct {
+ Code int `json:"code"`
+ Data struct {
+ Conf json.RawMessage `json:"conf"`
+ } `json:"data"`
+ }
+ if err := json.Unmarshal(recorder.Body.Bytes(), &response); err != nil || response.Code != 0 || string(response.Data.Conf) != string(entry.expected) {
+ t.Fatalf("graph reset changed: %s, %v", recorder.Body.String(), err)
+ }
+ }
+ if model.Conf.Graph.Global.MinRefs != 0 || model.Conf.Graph.Local.DailyNote {
+ t.Fatal("graph configuration was not reset")
+ }
+ data, err := os.ReadFile(filepath.Join(util.ConfDir, "conf.json"))
+ if err != nil {
+ t.Fatal(err)
+ }
+ var saved struct {
+ Graph *conf.Graph `json:"graph"`
+ }
+ if err = json.Unmarshal(data, &saved); err != nil || saved.Graph == nil || saved.Graph.Global == nil || saved.Graph.Local == nil {
+ t.Fatalf("graph reset was not persisted: %v", err)
+ }
+ if string(graphJSON(t, saved.Graph.Global)) != string(graphJSON(t, conf.NewGlobalGraph())) || string(graphJSON(t, saved.Graph.Local)) != string(graphJSON(t, conf.NewLocalGraph())) {
+ t.Fatal("saved graph defaults differ from response")
+ }
+}
diff --git a/kernel/api/contract_test.go b/kernel/api/contract_test.go
index e720d42349..6e813116f9 100644
--- a/kernel/api/contract_test.go
+++ b/kernel/api/contract_test.go
@@ -159,6 +159,8 @@ func TestAPIContractHandlers(t *testing.T) {
}
admin := model.RoleAdministrator
testSQLContractQueries(t)
+ testGraphResetContracts(t)
+ testGraphQueryContracts(t, docID)
blockQueries := []struct {
path string
handler gin.HandlerFunc
diff --git a/kernel/api/graph.go b/kernel/api/graph.go
index 313f3c5ae7..af149aecfd 100644
--- a/kernel/api/graph.go
+++ b/kernel/api/graph.go
@@ -17,126 +17,81 @@
package api
import (
- "net/http"
-
"github.com/88250/gulu"
"github.com/gin-gonic/gin"
+ "github.com/siyuan-note/siyuan/kernel/apicontract"
"github.com/siyuan-note/siyuan/kernel/conf"
"github.com/siyuan-note/siyuan/kernel/model"
"github.com/siyuan-note/siyuan/kernel/treenode"
- "github.com/siyuan-note/siyuan/kernel/util"
)
-func resetGraph(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
+var resetGraph = contractHandler(apicontract.ResetGraph, func(c *gin.Context, request apicontract.EmptyRequest) apicontract.Response[apicontract.ResetGraphData] {
graph := conf.NewGlobalGraph()
model.Conf.Graph.Global = graph
model.Conf.Save()
- ret.Data = map[string]any{
- "conf": graph,
- }
-}
-
-func resetLocalGraph(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
+ return apicontract.Success(apicontract.ResetGraphData{Conf: globalGraphContract(graph)})
+})
+var resetLocalGraph = contractHandler(apicontract.ResetLocalGraph, func(c *gin.Context, request apicontract.EmptyRequest) apicontract.Response[apicontract.ResetLocalGraphData] {
graph := conf.NewLocalGraph()
model.Conf.Graph.Local = graph
model.Conf.Save()
- ret.Data = map[string]any{
- "conf": graph,
- }
-}
+ return apicontract.Success(apicontract.ResetLocalGraphData{Conf: localGraphContract(graph)})
+})
-func setGraphConf(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
+func globalGraphContract(graph *conf.GlobalGraph) apicontract.GlobalGraphConf {
+ return apicontract.GlobalGraphConf{MinRefs: graph.MinRefs, DailyNote: graph.DailyNote, Type: (*apicontract.GraphTypeFilter)(graph.TypeFilter), D3: (*apicontract.GraphD3)(graph.D3)}
+}
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
+func localGraphContract(graph *conf.LocalGraph) apicontract.LocalGraphConf {
+ return apicontract.LocalGraphConf{DailyNote: graph.DailyNote, Type: (*apicontract.GraphTypeFilter)(graph.TypeFilter), D3: (*apicontract.GraphD3)(graph.D3)}
+}
- var graphType string
- var confArg map[string]any
- if !util.ParseJsonArgs(arg, ret,
- util.BindJsonArg("type", &graphType, true, true),
- util.BindJsonArg("conf", &confArg, true, false),
- ) {
- return
- }
- graphConf, err := gulu.JSON.MarshalJSON(confArg)
+var setGraphConf = contractHandler(apicontract.SetGraphConf, func(c *gin.Context, request apicontract.SetGraphConfRequest) apicontract.Response[apicontract.GraphConfigurationData] {
+ graphType := request.Type
+ graphConf, err := gulu.JSON.MarshalJSON(request.Conf)
if err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
- return
+ return apicontract.Failure[apicontract.GraphConfigurationData](-1, err.Error())
}
-
switch graphType {
case "global":
global := conf.NewGlobalGraph()
if err = gulu.JSON.UnmarshalJSON(graphConf, global); err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
- return
+ return apicontract.Failure[apicontract.GraphConfigurationData](-1, err.Error())
}
if model.IsAdminRoleContext(c) && !model.IsReadOnlyRoleContext(c) {
model.Conf.Graph.Global = global
model.Conf.Save()
}
- ret.Data = global
+ return apicontract.Success(apicontract.GlobalGraphConfiguration(globalGraphContract(global)))
case "local":
local := conf.NewLocalGraph()
if err = gulu.JSON.UnmarshalJSON(graphConf, local); err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
- return
+ return apicontract.Failure[apicontract.GraphConfigurationData](-1, err.Error())
}
if model.IsAdminRoleContext(c) && !model.IsReadOnlyRoleContext(c) {
model.Conf.Graph.Local = local
model.Conf.Save()
}
- ret.Data = local
+ return apicontract.Success(apicontract.LocalGraphConfiguration(localGraphContract(local)))
default:
- ret.Code = -1
+ return apicontract.Failure[apicontract.GraphConfigurationData](-1, "")
}
-}
-
-func getGraph(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
+})
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
+var getGraph = contractHandler(apicontract.GetGraph, func(c *gin.Context, request apicontract.GlobalGraphRequest) apicontract.Response[apicontract.GlobalGraphData] {
+ fail := func(message string) apicontract.Response[apicontract.GlobalGraphData] {
+ return apicontract.GetGraph.FailureWithData(-1, message, apicontract.GraphQueryEcho[apicontract.GlobalGraphResult](request.ReqID))
}
-
- reqId := arg["reqId"]
- ret.Data = map[string]any{"reqId": reqId}
-
- var query string
- var confArg map[string]any
- if !util.ParseJsonArgs(arg, ret,
- util.BindJsonArg("k", &query, false, false),
- util.BindJsonArg("conf", &confArg, true, false),
- ) {
- return
- }
- graphConf, err := gulu.JSON.MarshalJSON(confArg)
+ query := request.K
+ graphConf, err := gulu.JSON.MarshalJSON(request.Conf)
if err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
- return
+ return fail(err.Error())
}
global := conf.NewGlobalGraph()
if err = gulu.JSON.UnmarshalJSON(graphConf, global); err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
- return
+ return fail(err.Error())
}
if model.IsAdminRoleContext(c) && !model.IsReadOnlyRoleContext(c) {
@@ -149,63 +104,33 @@ func getGraph(c *gin.Context) {
publishAccess := model.GetPublishAccess()
nodes, links = model.FilterGraphByPublishAccess(c, publishAccess, nodes, links)
}
- ret.Data = map[string]any{
- "nodes": nodes,
- "links": links,
- "conf": global,
- "box": boxID,
- "reqId": reqId,
- }
-}
-
-func getLocalGraph(c *gin.Context) {
- ret := gulu.Ret.NewResult()
- defer c.JSON(http.StatusOK, ret)
-
- arg, ok := util.JsonArg(c, ret)
- if !ok {
- return
- }
+ return apicontract.Success(apicontract.GraphQueryResult(apicontract.GlobalGraphResult{GraphElements: graphElementsContract(request.ReqID, boxID, nodes, links), Conf: globalGraphContract(global)}))
+})
- reqId := arg["reqId"]
- ret.Data = map[string]any{"reqId": reqId}
- if nil == arg["id"] {
- return
+var getLocalGraph = contractHandler(apicontract.GetLocalGraph, func(c *gin.Context, request apicontract.LocalGraphRequest) apicontract.Response[apicontract.LocalGraphData] {
+ fail := func(message string) apicontract.Response[apicontract.LocalGraphData] {
+ return apicontract.GetLocalGraph.FailureWithData(-1, message, apicontract.GraphQueryEcho[apicontract.LocalGraphResult](request.ReqID))
}
-
- var keyword, id string
- var confArg map[string]any
- if !util.ParseJsonArgs(arg, ret,
- util.BindJsonArg("k", &keyword, false, false),
- util.BindJsonArg("id", &id, true, true),
- util.BindJsonArg("conf", &confArg, true, false),
- ) {
- return
+ if request.ID == nil {
+ return apicontract.Success(apicontract.GraphQueryEcho[apicontract.LocalGraphResult](request.ReqID))
}
- notebook, _ := arg["notebook"].(string)
+ id, keyword := *request.ID, request.K
+ notebook := request.Notebook
if model.IsEncryptedBox(notebook) {
- ret.Code = -1
- ret.Msg = model.Conf.Language(392)
- return
+ return fail(model.Conf.Language(392))
}
if bt := treenode.GetBlockTree(id); bt != nil && model.IsEncryptedBox(bt.BoxID) {
- ret.Code = -1
- ret.Msg = model.Conf.Language(392)
- return
+ return fail(model.Conf.Language(392))
}
- graphConf, err := gulu.JSON.MarshalJSON(confArg)
+ graphConf, err := gulu.JSON.MarshalJSON(request.Conf)
if err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
- return
+ return fail(err.Error())
}
local := conf.NewLocalGraph()
if err = gulu.JSON.UnmarshalJSON(graphConf, local); err != nil {
- ret.Code = -1
- ret.Msg = err.Error()
- return
+ return fail(err.Error())
}
if model.IsAdminRoleContext(c) && !model.IsReadOnlyRoleContext(c) {
@@ -218,12 +143,29 @@ func getLocalGraph(c *gin.Context) {
publishAccess := model.GetPublishAccess()
nodes, links = model.FilterGraphByPublishAccess(c, publishAccess, nodes, links)
}
- ret.Data = map[string]any{
- "id": id,
- "box": boxID,
- "nodes": nodes,
- "links": links,
- "conf": local,
- "reqId": reqId,
+ return apicontract.Success(apicontract.GraphQueryResult(apicontract.LocalGraphResult{GraphElements: graphElementsContract(request.ReqID, boxID, nodes, links), ID: id, Conf: localGraphContract(local)}))
+})
+
+func graphElementsContract(reqID apicontract.JSONValue, boxID string, nodes []*model.GraphNode, links []*model.GraphLink) apicontract.GraphElements {
+ result := apicontract.GraphElements{GraphCorrelation: apicontract.GraphCorrelation{ReqID: reqID}, Box: boxID}
+ if nodes != nil {
+ result.Nodes = make([]*apicontract.GraphNode, len(nodes))
+ }
+ for i, node := range nodes {
+ result.Nodes[i] = (*apicontract.GraphNode)(node)
+ }
+ if links != nil {
+ result.Links = make([]*apicontract.GraphLink, len(links))
+ }
+ for i, link := range links {
+ if link == nil {
+ continue
+ }
+ converted := &apicontract.GraphLink{From: link.From, To: link.To, Ref: link.Ref}
+ if link.Arrows != nil {
+ converted.Arrows = &apicontract.GraphArrows{To: (*apicontract.GraphArrowsTo)(link.Arrows.To)}
+ }
+ result.Links[i] = converted
}
+ return result
}
diff --git a/kernel/apicontract/contracts.go b/kernel/apicontract/contracts.go
index c712e1875d..ed9a92e5cd 100644
--- a/kernel/apicontract/contracts.go
+++ b/kernel/apicontract/contracts.go
@@ -494,3 +494,9 @@ var GetDocSaveAsTemplateInfo = define[TemplateDocumentRequest, TemplateDocumentI
var DocSaveAsTemplate = define[SaveTemplateRequest, Null]("docSaveAsTemplate", "/api/template/docSaveAsTemplate", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")
var RenderTemplate = define[RenderTemplateRequest, RenderTemplateData]("renderTemplate", "/api/template/render", JSONBody, ResponseOptions{}, "POST")
var ManageTemplateFiles = define[TemplateFileRequest, TemplateManagementData]("manageTemplateFiles", "/api/template/manage", StructJSONBody, ResponseOptions{}, "POST")
+
+var ResetGraph = define[EmptyRequest, ResetGraphData]("resetGraph", "/api/graph/resetGraph", NoBody, ResponseOptions{}, "POST")
+var ResetLocalGraph = define[EmptyRequest, ResetLocalGraphData]("resetLocalGraph", "/api/graph/resetLocalGraph", NoBody, ResponseOptions{}, "POST")
+var SetGraphConf = define[SetGraphConfRequest, GraphConfigurationData]("setGraphConf", "/api/graph/setGraphConf", JSONBody, ResponseOptions{}, "POST")
+var GetGraph = define[GlobalGraphRequest, GlobalGraphData]("getGraph", "/api/graph/getGraph", JSONBody, ResponseOptions{DataOnError: true}, "POST")
+var GetLocalGraph = define[LocalGraphRequest, LocalGraphData]("getLocalGraph", "/api/graph/getLocalGraph", JSONBody, ResponseOptions{DataOnError: true}, "POST")
diff --git a/kernel/apicontract/graph.go b/kernel/apicontract/graph.go
new file mode 100644
index 0000000000..c97be76202
--- /dev/null
+++ b/kernel/apicontract/graph.go
@@ -0,0 +1,46 @@
+package apicontract
+
+type GraphTypeFilter struct {
+ Tag bool `json:"tag" api:"optional,nullable"`
+ Paragraph bool `json:"paragraph" api:"optional,nullable"`
+ Heading bool `json:"heading" api:"optional,nullable"`
+ Math bool `json:"math" api:"optional,nullable"`
+ Code bool `json:"code" api:"optional,nullable"`
+ Table bool `json:"table" api:"optional,nullable"`
+ List bool `json:"list" api:"optional,nullable"`
+ ListItem bool `json:"listItem" api:"optional,nullable"`
+ Blockquote bool `json:"blockquote" api:"optional,nullable"`
+ Super bool `json:"super" api:"optional,nullable"`
+ Callout bool `json:"callout" api:"optional,nullable"`
+}
+
+type GraphD3 struct {
+ NodeSize float64 `json:"nodeSize" api:"optional,nullable"`
+ LineWidth float64 `json:"linkWidth" api:"optional,nullable"`
+ LineOpacity float64 `json:"lineOpacity" api:"optional,nullable"`
+ CenterStrength float64 `json:"centerStrength" api:"optional,nullable"`
+ CollideRadius float64 `json:"collideRadius" api:"optional,nullable"`
+ CollideStrength float64 `json:"collideStrength" api:"optional,nullable"`
+ LinkDistance int `json:"linkDistance" api:"optional,nullable"`
+ Arrow bool `json:"arrow" api:"optional,nullable"`
+}
+
+type GlobalGraphConf struct {
+ MinRefs int `json:"minRefs"`
+ DailyNote bool `json:"dailyNote"`
+ Type *GraphTypeFilter `json:"type"`
+ D3 *GraphD3 `json:"d3"`
+}
+
+type LocalGraphConf struct {
+ DailyNote bool `json:"dailyNote"`
+ Type *GraphTypeFilter `json:"type"`
+ D3 *GraphD3 `json:"d3"`
+}
+
+type ResetGraphData struct {
+ Conf GlobalGraphConf `json:"conf"`
+}
+type ResetLocalGraphData struct {
+ Conf LocalGraphConf `json:"conf"`
+}
diff --git a/kernel/apicontract/graph_input.go b/kernel/apicontract/graph_input.go
new file mode 100644
index 0000000000..1348761ed1
--- /dev/null
+++ b/kernel/apicontract/graph_input.go
@@ -0,0 +1,82 @@
+package apicontract
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+ "io"
+ "strings"
+)
+
+// GraphConfiguration 延迟绑定具体图配置,使局部图继续忽略全局图字段,并保留默认值合并顺序。
+type GraphConfiguration struct{ raw json.RawMessage }
+
+func (c *GraphConfiguration) UnmarshalJSON(data []byte) error {
+ if bytes.Equal(bytes.TrimSpace(data), []byte("null")) {
+ return fmt.Errorf("Field [conf] is required")
+ }
+ fields, err := legacyJSONValue[map[string]json.RawMessage](data)
+ if err != nil {
+ return fmt.Errorf("Field [conf] should be of type [Object]")
+ }
+ c.raw, err = json.Marshal(fields)
+ return err
+}
+
+func (c GraphConfiguration) MarshalJSON() ([]byte, error) {
+ if len(c.raw) == 0 {
+ return []byte("{}"), nil
+ }
+ return c.raw, nil
+}
+
+type GraphConfigurationFields struct {
+ MinRefs *int `json:"minRefs" api:"optional"`
+ DailyNote *bool `json:"dailyNote" api:"optional"`
+ Type *GraphTypeFilter `json:"type" api:"optional"`
+ D3 *GraphD3 `json:"d3" api:"optional"`
+}
+
+type SetGraphConfRequest struct {
+ Type string `json:"type" api:"trim"`
+ Conf GraphConfiguration `json:"conf"`
+}
+
+func init() {
+ SetGraphConf.decodeRequest = func(reader io.Reader) (request SetGraphConfRequest, err error) {
+ fields, err := blockRequestFields(reader, "/api/graph/setGraphConf")
+ if err != nil {
+ return request, err
+ }
+ if request.Type, err = legacyField[string](fields, "type", "String", true); err != nil {
+ return request, err
+ }
+ request.Type = strings.TrimSpace(request.Type)
+ if request.Type == "" {
+ return request, fmt.Errorf("Field [type] must not be empty")
+ }
+ if len(fields["conf"]) == 0 {
+ return request, fmt.Errorf("Field [conf] is required")
+ }
+ err = json.Unmarshal(fields["conf"], &request.Conf)
+ return
+ }
+}
+
+type GraphConfigurationData struct {
+ global *GlobalGraphConf
+ local *LocalGraphConf
+}
+
+func GlobalGraphConfiguration(value GlobalGraphConf) GraphConfigurationData {
+ return GraphConfigurationData{global: &value}
+}
+func LocalGraphConfiguration(value LocalGraphConf) GraphConfigurationData {
+ return GraphConfigurationData{local: &value}
+}
+func (c GraphConfigurationData) MarshalJSON() ([]byte, error) {
+ if c.global != nil {
+ return json.Marshal(c.global)
+ }
+ return json.Marshal(c.local)
+}
diff --git a/kernel/apicontract/graph_query.go b/kernel/apicontract/graph_query.go
new file mode 100644
index 0000000000..64d2c0dade
--- /dev/null
+++ b/kernel/apicontract/graph_query.go
@@ -0,0 +1,188 @@
+package apicontract
+
+import (
+ "bytes"
+ "encoding/json"
+ "errors"
+ "fmt"
+ "io"
+ "strings"
+)
+
+type GlobalGraphRequest struct {
+ K string `json:"k" api:"optional,nullable"`
+ Conf GraphConfiguration `json:"conf"`
+ ReqID JSONValue `json:"reqId" api:"optional,nullable"`
+}
+
+type LocalGraphRequest struct {
+ Type string `json:"type" api:"optional,nullable,ignoretype"`
+ K string `json:"k" api:"optional,nullable"`
+ ID *string `json:"id" api:"optional"`
+ Conf GraphConfiguration `json:"conf" api:"optional"`
+ Notebook string `json:"notebook" api:"optional,nullable,ignoretype"`
+ ReqID JSONValue `json:"reqId" api:"optional,nullable"`
+}
+
+type GraphNode struct {
+ ID string `json:"id"`
+ Box string `json:"box"`
+ Path string `json:"path"`
+ Size float64 `json:"size"`
+ Title string `json:"title,omitempty"`
+ Label string `json:"label"`
+ Type string `json:"type"`
+ Refs int `json:"refs"`
+ Defs int `json:"defs"`
+}
+
+type GraphLink struct {
+ From string `json:"from"`
+ To string `json:"to"`
+ Ref bool `json:"ref"`
+ Arrows *GraphArrows `json:"arrows"`
+}
+type GraphArrows struct {
+ To *GraphArrowsTo `json:"to"`
+}
+type GraphArrowsTo struct {
+ Enabled bool `json:"enabled"`
+}
+
+type GraphCorrelation struct {
+ ReqID JSONValue `json:"reqId"`
+}
+
+type GraphElements struct {
+ GraphCorrelation
+ Box string `json:"box"`
+ Nodes []*GraphNode `json:"nodes"`
+ Links []*GraphLink `json:"links"`
+}
+type GlobalGraphResult struct {
+ GraphElements
+ Conf GlobalGraphConf `json:"conf"`
+}
+type LocalGraphResult struct {
+ GraphElements
+ ID string `json:"id"`
+ Conf LocalGraphConf `json:"conf"`
+}
+
+// GraphQueryData 区分完整关系图和仅回传请求标识的结果。
+type GraphQueryData[T any] struct {
+ result *T
+ correlation GraphCorrelation
+}
+type GlobalGraphData = GraphQueryData[GlobalGraphResult]
+type LocalGraphData = GraphQueryData[LocalGraphResult]
+
+func GraphQueryResult[T any](result T) GraphQueryData[T] { return GraphQueryData[T]{result: &result} }
+func GraphQueryEcho[T any](reqID JSONValue) GraphQueryData[T] {
+ return GraphQueryData[T]{correlation: GraphCorrelation{ReqID: reqID}}
+}
+func (d GraphQueryData[T]) MarshalJSON() ([]byte, error) {
+ if d.result != nil {
+ return json.Marshal(d.result)
+ }
+ return json.Marshal(d.correlation)
+}
+
+type graphQueryDecodeError struct {
+ reqID JSONValue
+ cause error
+}
+
+func (e *graphQueryDecodeError) Error() string { return e.cause.Error() }
+
+func graphQueryFields(reader io.Reader, path string) (map[string]json.RawMessage, JSONValue, error) {
+ fields, err := blockRequestFields(reader, path)
+ var reqID JSONValue
+ if err != nil {
+ return nil, reqID, err
+ }
+ if raw, exists := fields["reqId"]; exists {
+ if err = json.Unmarshal(raw, &reqID); err != nil {
+ return nil, reqID, err
+ }
+ }
+ return fields, reqID, nil
+}
+
+func decodeGraphConfiguration(fields map[string]json.RawMessage) (value GraphConfiguration, err error) {
+ if len(fields["conf"]) == 0 {
+ return value, fmt.Errorf("Field [conf] is required")
+ }
+ err = json.Unmarshal(fields["conf"], &value)
+ return
+}
+
+func init() {
+ GetGraph.decodeRequest = func(reader io.Reader) (request GlobalGraphRequest, err error) {
+ fields, reqID, err := graphQueryFields(reader, "/api/graph/getGraph")
+ if err != nil {
+ return request, err
+ }
+ request.ReqID = reqID
+ defer func() {
+ if err != nil {
+ err = &graphQueryDecodeError{reqID, err}
+ }
+ }()
+ if request.K, err = legacyField[string](fields, "k", "String", false); err != nil {
+ return request, err
+ }
+ request.Conf, err = decodeGraphConfiguration(fields)
+ return
+ }
+ GetLocalGraph.decodeRequest = func(reader io.Reader) (request LocalGraphRequest, err error) {
+ fields, reqID, err := graphQueryFields(reader, "/api/graph/getLocalGraph")
+ if err != nil {
+ return request, err
+ }
+ request.ReqID = reqID
+ defer func() {
+ if err != nil {
+ err = &graphQueryDecodeError{reqID, err}
+ }
+ }()
+ if len(fields["id"]) == 0 || bytes.Equal(bytes.TrimSpace(fields["id"]), []byte("null")) {
+ return request, nil
+ }
+ if request.K, err = legacyField[string](fields, "k", "String", false); err != nil {
+ return request, err
+ }
+ id, err := legacyField[string](fields, "id", "String", true)
+ if err != nil {
+ return request, err
+ }
+ id = strings.TrimSpace(id)
+ if id == "" {
+ return request, fmt.Errorf("Field [id] must not be empty")
+ }
+ request.ID = &id
+ configuration, err := decodeGraphConfiguration(fields)
+ if err != nil {
+ return request, err
+ }
+ request.Conf = configuration
+ if raw, exists := fields["notebook"]; exists {
+ _ = json.Unmarshal(raw, &request.Notebook)
+ }
+ return
+ }
+ GetGraph.decodeFailure = func(err error) Response[GlobalGraphData] {
+ var failure *graphQueryDecodeError
+ if errors.As(err, &failure) {
+ return GetGraph.FailureWithData(-1, err.Error(), GraphQueryEcho[GlobalGraphResult](failure.reqID))
+ }
+ return Failure[GlobalGraphData](-1, err.Error())
+ }
+ GetLocalGraph.decodeFailure = func(err error) Response[LocalGraphData] {
+ var failure *graphQueryDecodeError
+ if errors.As(err, &failure) {
+ return GetLocalGraph.FailureWithData(-1, err.Error(), GraphQueryEcho[LocalGraphResult](failure.reqID))
+ }
+ return Failure[LocalGraphData](-1, err.Error())
+ }
+}
diff --git a/kernel/apicontract/legacy_routes.json b/kernel/apicontract/legacy_routes.json
index f487468c03..8b0bd0cfd3 100644
--- a/kernel/apicontract/legacy_routes.json
+++ b/kernel/apicontract/legacy_routes.json
@@ -222,11 +222,6 @@
{"method":"POST","path":"/api/filetree/setPublishAccess","handler":"setPublishAccess"},
{"method":"POST","path":"/api/filetree/setSort","handler":"setSort"},
{"method":"POST","path":"/api/filetree/upsertIndexes","handler":"upsertIndexes"},
- {"method":"POST","path":"/api/graph/getGraph","handler":"getGraph"},
- {"method":"POST","path":"/api/graph/getLocalGraph","handler":"getLocalGraph"},
- {"method":"POST","path":"/api/graph/resetGraph","handler":"resetGraph"},
- {"method":"POST","path":"/api/graph/resetLocalGraph","handler":"resetLocalGraph"},
- {"method":"POST","path":"/api/graph/setGraphConf","handler":"setGraphConf"},
{"method":"POST","path":"/api/history/createAssetHistory","handler":"createAssetHistory"},
{"method":"POST","path":"/api/history/createDocHistory","handler":"createDocHistory"},
{"method":"POST","path":"/api/history/diffDocVersions","handler":"diffDocVersions"},
diff --git a/kernel/apicontract/schema.go b/kernel/apicontract/schema.go
index 7f14075f65..032547ecfe 100644
--- a/kernel/apicontract/schema.go
+++ b/kernel/apicontract/schema.go
@@ -75,6 +75,35 @@ func nonnullable(schema *Schema) *Schema {
}
func (b *schemaBuilder) schema(t reflect.Type, input bool) (*Schema, error) {
+ if t == reflect.TypeFor[GlobalGraphData]() || t == reflect.TypeFor[LocalGraphData]() {
+ resultType := reflect.TypeFor[GlobalGraphResult]()
+ if t == reflect.TypeFor[LocalGraphData]() {
+ resultType = reflect.TypeFor[LocalGraphResult]()
+ }
+ result, err := b.schema(resultType, false)
+ if err != nil {
+ return nil, err
+ }
+ correlation, err := b.schema(reflect.TypeFor[GraphCorrelation](), false)
+ if err != nil {
+ return nil, err
+ }
+ return &Schema{AnyOf: []*Schema{result, correlation}}, nil
+ }
+ if t == reflect.TypeFor[GraphConfiguration]() {
+ return b.schema(reflect.TypeFor[GraphConfigurationFields](), true)
+ }
+ if t == reflect.TypeFor[GraphConfigurationData]() {
+ global, err := b.schema(reflect.TypeFor[GlobalGraphConf](), false)
+ if err != nil {
+ return nil, err
+ }
+ local, err := b.schema(reflect.TypeFor[LocalGraphConf](), false)
+ if err != nil {
+ return nil, err
+ }
+ return &Schema{AnyOf: []*Schema{global, local}}, nil
+ }
if t == reflect.TypeFor[TemplateManagementData]() {
var variants []*Schema
for _, member := range []reflect.Type{reflect.TypeFor[[]TemplateFileEntry](), reflect.TypeFor[TemplateFileSource](), reflect.TypeFor[TemplateFileRevision]()} {
diff --git a/kernel/apicontract/schema.json b/kernel/apicontract/schema.json
index 097fb29fea..ad279d654a 100644
--- a/kernel/apicontract/schema.json
+++ b/kernel/apicontract/schema.json
@@ -3517,65 +3517,51 @@
},
"additionalProperties": false
},
- "HTMLClipboardPreflight": {
- "type": "object",
- "properties": {
- "converted": {
- "type": "boolean"
- },
- "dom": {
- "type": "string"
- },
- "normalizedHTML": {
- "type": "string"
- },
- "useHTML": {
- "type": "boolean"
- }
- },
- "required": [
- "converted",
- "useHTML"
- ],
- "additionalProperties": false
- },
- "HTMLClipboardRequestInput": {
+ "GlobalGraphConf": {
"type": "object",
"properties": {
- "dom": {
- "type": "string"
- },
- "mathML": {
+ "d3": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/GraphD3"
},
{
"type": "null"
}
]
},
- "notebook": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "dailyNote": {
+ "type": "boolean"
},
- "office": {
+ "minRefs": {
+ "type": "integer"
+ },
+ "type": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/GraphTypeFilter"
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "d3",
+ "dailyNote",
+ "minRefs",
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "GlobalGraphRequestInput": {
+ "type": "object",
+ "properties": {
+ "conf": {
+ "$ref": "#/$defs/GraphConfigurationFieldsInput"
},
- "officeMathHTML": {
+ "k": {
"anyOf": [
{
"type": "string"
@@ -3585,57 +3571,129 @@
}
]
},
- "preflight": {
+ "reqId": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/JSONValue"
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "conf"
+ ],
+ "additionalProperties": false
+ },
+ "GlobalGraphResult": {
+ "type": "object",
+ "properties": {
+ "box": {
+ "type": "string"
},
- "preparedHTML": {
+ "conf": {
+ "$ref": "#/$defs/GlobalGraphConf"
+ },
+ "links": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/GraphLink"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "preserveSourceFormat": {
+ "nodes": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/GraphNode"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "skipBase64Assets": {
+ "reqId": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ "required": [
+ "box",
+ "conf",
+ "links",
+ "nodes",
+ "reqId"
+ ],
+ "additionalProperties": false
+ },
+ "GraphArrows": {
+ "type": "object",
+ "properties": {
+ "to": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/GraphArrowsTo"
},
{
"type": "null"
}
]
- },
- "skipInlineSVGAssets": {
+ }
+ },
+ "required": [
+ "to"
+ ],
+ "additionalProperties": false
+ },
+ "GraphArrowsTo": {
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "enabled"
+ ],
+ "additionalProperties": false
+ },
+ "GraphConfigurationFieldsInput": {
+ "type": "object",
+ "properties": {
+ "d3": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/GraphD3Input"
},
{
"type": "null"
}
]
},
- "skipLocalAssets": {
+ "dailyNote": {
"anyOf": [
{
"type": "boolean"
@@ -3645,20 +3703,20 @@
}
]
},
- "text": {
+ "minRefs": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "wps": {
+ "type": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/GraphTypeFilterInput"
},
{
"type": "null"
@@ -3666,238 +3724,137 @@
]
}
},
- "required": [
- "dom"
- ],
"additionalProperties": false
},
- "HTMLData": {
+ "GraphCorrelation": {
"type": "object",
"properties": {
- "html": {
- "type": "string"
+ "reqId": {
+ "$ref": "#/$defs/JSONValue"
}
},
"required": [
- "html"
+ "reqId"
],
"additionalProperties": false
},
- "HeadingChildrenRequestInput": {
+ "GraphD3": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
+ "arrow": {
+ "type": "boolean"
},
- "removeFoldAttr": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "HeadingFoldRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
+ "centerStrength": {
+ "type": "number"
},
- "scope": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "scope"
- ],
- "additionalProperties": false
- },
- "HeadingLevelRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
+ "collideRadius": {
+ "type": "number"
},
- "ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "collideStrength": {
+ "type": "number"
},
- "level": {
+ "lineOpacity": {
+ "type": "number"
+ },
+ "linkDistance": {
+ "type": "integer"
+ },
+ "linkWidth": {
+ "type": "number"
+ },
+ "nodeSize": {
"type": "number"
}
},
"required": [
- "level"
+ "arrow",
+ "centerStrength",
+ "collideRadius",
+ "collideStrength",
+ "lineOpacity",
+ "linkDistance",
+ "linkWidth",
+ "nodeSize"
],
"additionalProperties": false
},
- "HeadingNumbersRequestInput": {
+ "GraphD3Input": {
"type": "object",
"properties": {
- "id": {
+ "arrow": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "notebook": {
+ "centerStrength": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "ImportNotebookCryptoBackupRequestInput": {
- "type": "object",
- "properties": {
- "file": {
- "type": "string",
- "format": "binary"
},
- "password": {
- "type": "string"
- }
- },
- "required": [
- "file"
- ],
- "additionalProperties": false
- },
- "InlineStyle": {
- "type": "object",
- "properties": {
- "dark": {
+ "collideRadius": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleTheme"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "hidden": {
- "type": "boolean"
- },
- "id": {
- "type": "string"
+ "collideStrength": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "light": {
+ "lineOpacity": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleTheme"
+ "type": "number"
},
{
"type": "null"
}
]
},
- "name": {
- "type": "string"
- }
- },
- "required": [
- "dark",
- "id",
- "light",
- "name"
- ],
- "additionalProperties": false
- },
- "InlineStyleAV": {
- "type": "object",
- "properties": {
- "colors": {
+ "linkDistance": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/AttributeViewCustomColor"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "order": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "colors",
- "order"
- ],
- "additionalProperties": false
- },
- "InlineStyleAVInput": {
- "type": "object",
- "properties": {
- "colors": {
+ "linkWidth": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/AttributeViewCustomColorInput"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "number"
},
{
"type": "null"
}
]
},
- "order": {
+ "nodeSize": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "number"
},
{
"type": "null"
@@ -3907,250 +3864,239 @@
},
"additionalProperties": false
},
- "InlineStyleBuiltin": {
+ "GraphLink": {
"type": "object",
"properties": {
- "colors": {
+ "arrows": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleBuiltinColor"
- },
- {
- "type": "null"
- }
- ]
- }
+ "$ref": "#/$defs/GraphArrows"
},
{
"type": "null"
}
]
},
- "hidden": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleBuiltinHidden"
- },
- {
- "type": "null"
- }
- ]
+ "from": {
+ "type": "string"
},
- "styles": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleBuiltinStyle"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "ref": {
+ "type": "boolean"
+ },
+ "to": {
+ "type": "string"
}
},
"required": [
- "colors",
- "hidden",
- "styles"
+ "arrows",
+ "from",
+ "ref",
+ "to"
],
"additionalProperties": false
},
- "InlineStyleBuiltinColor": {
+ "GraphNode": {
"type": "object",
"properties": {
- "dark": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleTheme"
- },
- {
- "type": "null"
- }
- ]
+ "box": {
+ "type": "string"
},
- "index": {
+ "defs": {
"type": "integer"
},
- "light": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleTheme"
- },
- {
- "type": "null"
- }
- ]
+ "id": {
+ "type": "string"
+ },
+ "label": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "refs": {
+ "type": "integer"
+ },
+ "size": {
+ "type": "number"
+ },
+ "title": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
}
},
"required": [
- "dark",
- "index",
- "light"
+ "box",
+ "defs",
+ "id",
+ "label",
+ "path",
+ "refs",
+ "size",
+ "type"
],
"additionalProperties": false
},
- "InlineStyleBuiltinColorInput": {
+ "GraphTypeFilter": {
"type": "object",
"properties": {
- "dark": {
+ "blockquote": {
+ "type": "boolean"
+ },
+ "callout": {
+ "type": "boolean"
+ },
+ "code": {
+ "type": "boolean"
+ },
+ "heading": {
+ "type": "boolean"
+ },
+ "list": {
+ "type": "boolean"
+ },
+ "listItem": {
+ "type": "boolean"
+ },
+ "math": {
+ "type": "boolean"
+ },
+ "paragraph": {
+ "type": "boolean"
+ },
+ "super": {
+ "type": "boolean"
+ },
+ "table": {
+ "type": "boolean"
+ },
+ "tag": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "blockquote",
+ "callout",
+ "code",
+ "heading",
+ "list",
+ "listItem",
+ "math",
+ "paragraph",
+ "super",
+ "table",
+ "tag"
+ ],
+ "additionalProperties": false
+ },
+ "GraphTypeFilterInput": {
+ "type": "object",
+ "properties": {
+ "blockquote": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleThemeInput"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "index": {
+ "callout": {
"anyOf": [
{
- "type": "integer"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "light": {
+ "code": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleThemeInput"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "InlineStyleBuiltinHidden": {
- "type": "object",
- "properties": {
- "av": {
+ },
+ "heading": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "integer"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "backgroundColor": {
+ "list": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "integer"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "color": {
+ "listItem": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "integer"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "style1": {
+ "math": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "av",
- "backgroundColor",
- "color",
- "style1"
- ],
- "additionalProperties": false
- },
- "InlineStyleBuiltinHiddenInput": {
- "type": "object",
- "properties": {
- "av": {
+ },
+ "paragraph": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "integer"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "backgroundColor": {
+ "super": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "integer"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "color": {
+ "table": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "integer"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "style1": {
+ "tag": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
@@ -4160,146 +4106,125 @@
},
"additionalProperties": false
},
- "InlineStyleBuiltinInput": {
+ "HTMLClipboardPreflight": {
"type": "object",
"properties": {
- "colors": {
+ "converted": {
+ "type": "boolean"
+ },
+ "dom": {
+ "type": "string"
+ },
+ "normalizedHTML": {
+ "type": "string"
+ },
+ "useHTML": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "converted",
+ "useHTML"
+ ],
+ "additionalProperties": false
+ },
+ "HTMLClipboardRequestInput": {
+ "type": "object",
+ "properties": {
+ "dom": {
+ "type": "string"
+ },
+ "mathML": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleBuiltinColorInput"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "hidden": {
+ "notebook": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleBuiltinHiddenInput"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "styles": {
+ "office": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleBuiltinStyleInput"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "InlineStyleBuiltinStyle": {
- "type": "object",
- "properties": {
- "dark": {
+ },
+ "officeMathHTML": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleTheme"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "id": {
- "type": "string"
- },
- "light": {
+ "preflight": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleTheme"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "dark",
- "id",
- "light"
- ],
- "additionalProperties": false
- },
- "InlineStyleBuiltinStyleInput": {
- "type": "object",
- "properties": {
- "dark": {
+ },
+ "preparedHTML": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleThemeInput"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "id": {
+ "preserveSourceFormat": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "light": {
+ "skipBase64Assets": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleThemeInput"
+ "type": "boolean"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "InlineStyleInput": {
- "type": "object",
- "properties": {
- "dark": {
+ },
+ "skipInlineSVGAssets": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleThemeInput"
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "hidden": {
+ "skipLocalAssets": {
"anyOf": [
{
"type": "boolean"
@@ -4309,7 +4234,7 @@
}
]
},
- "id": {
+ "text": {
"anyOf": [
{
"type": "string"
@@ -4319,20 +4244,44 @@
}
]
},
- "light": {
+ "wps": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleThemeInput"
+ "type": "string"
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "dom"
+ ],
+ "additionalProperties": false
+ },
+ "HTMLData": {
+ "type": "object",
+ "properties": {
+ "html": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "html"
+ ],
+ "additionalProperties": false
+ },
+ "HeadingChildrenRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
},
- "name": {
+ "removeFoldAttr": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
@@ -4340,67 +4289,147 @@
]
}
},
+ "required": [
+ "id"
+ ],
"additionalProperties": false
},
- "InlineStyleOrder": {
+ "HeadingFoldRequestInput": {
"type": "object",
"properties": {
- "backgroundColor": {
+ "id": {
+ "type": "string"
+ },
+ "scope": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "scope"
+ ],
+ "additionalProperties": false
+ },
+ "HeadingLevelRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "level": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "level"
+ ],
+ "additionalProperties": false
+ },
+ "HeadingNumbersRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "color": {
+ "notebook": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "style1": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
+ }
+ },
+ "additionalProperties": false
+ },
+ "ImportNotebookCryptoBackupRequestInput": {
+ "type": "object",
+ "properties": {
+ "file": {
+ "type": "string",
+ "format": "binary"
+ },
+ "password": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "file"
+ ],
+ "additionalProperties": false
+ },
+ "InlineStyle": {
+ "type": "object",
+ "properties": {
+ "dark": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleTheme"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "hidden": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ },
+ "light": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleTheme"
},
{
"type": "null"
}
]
+ },
+ "name": {
+ "type": "string"
}
},
"required": [
- "backgroundColor",
- "color",
- "style1"
+ "dark",
+ "id",
+ "light",
+ "name"
],
"additionalProperties": false
},
- "InlineStyleOrderInput": {
+ "InlineStyleAV": {
"type": "object",
"properties": {
- "backgroundColor": {
+ "colors": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AttributeViewCustomColor"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -4408,7 +4437,7 @@
}
]
},
- "color": {
+ "order": {
"anyOf": [
{
"type": "array",
@@ -4420,8 +4449,38 @@
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "colors",
+ "order"
+ ],
+ "additionalProperties": false
+ },
+ "InlineStyleAVInput": {
+ "type": "object",
+ "properties": {
+ "colors": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AttributeViewCustomColorInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "style1": {
+ "order": {
"anyOf": [
{
"type": "array",
@@ -4437,35 +4496,87 @@
},
"additionalProperties": false
},
- "InlineStyleTheme": {
+ "InlineStyleBuiltin": {
"type": "object",
"properties": {
- "backgroundColor": {
- "type": "string"
+ "colors": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleBuiltinColor"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "color": {
- "type": "string"
+ "hidden": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleBuiltinHidden"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "styles": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleBuiltinStyle"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
+ "required": [
+ "colors",
+ "hidden",
+ "styles"
+ ],
"additionalProperties": false
},
- "InlineStyleThemeInput": {
+ "InlineStyleBuiltinColor": {
"type": "object",
"properties": {
- "backgroundColor": {
+ "dark": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/InlineStyleTheme"
},
{
"type": "null"
}
]
},
- "color": {
+ "index": {
+ "type": "integer"
+ },
+ "light": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/InlineStyleTheme"
},
{
"type": "null"
@@ -4473,54 +4584,58 @@
]
}
},
+ "required": [
+ "dark",
+ "index",
+ "light"
+ ],
"additionalProperties": false
},
- "InlineStyles": {
+ "InlineStyleBuiltinColorInput": {
"type": "object",
"properties": {
- "av": {
+ "dark": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleAV"
+ "$ref": "#/$defs/InlineStyleThemeInput"
},
{
"type": "null"
}
]
},
- "builtin": {
+ "index": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleBuiltin"
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "order": {
+ "light": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleOrder"
+ "$ref": "#/$defs/InlineStyleThemeInput"
},
{
"type": "null"
}
]
- },
- "styles": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "InlineStyleBuiltinHidden": {
+ "type": "object",
+ "properties": {
+ "av": {
"anyOf": [
{
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyle"
- },
- {
- "type": "null"
- }
- ]
+ "type": "integer"
}
},
{
@@ -4528,52 +4643,39 @@
}
]
},
- "version": {
- "type": "integer"
- }
- },
- "required": [
- "av",
- "builtin",
- "order",
- "styles",
- "version"
- ],
- "additionalProperties": false
- },
- "InsertBlockRequestInput": {
- "type": "object",
- "properties": {
- "data": {
- "type": "string"
- },
- "dataType": {
- "type": "string"
- },
- "nextID": {
+ "backgroundColor": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
},
{
"type": "null"
}
]
},
- "parentID": {
+ "color": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
},
{
"type": "null"
}
]
},
- "previousID": {
+ "style1": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
@@ -4582,73 +4684,112 @@
}
},
"required": [
- "data",
- "dataType"
+ "av",
+ "backgroundColor",
+ "color",
+ "style1"
],
"additionalProperties": false
},
- "JSONValue": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "type": "boolean"
- },
- {
- "type": "number"
- },
- {
- "type": "string"
- },
- {
- "type": "array",
- "items": {
- "$ref": "#/$defs/JSONValue"
- }
- },
- {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/$defs/JSONValue"
- }
- }
- ]
- },
- "KernelPetal": {
+ "InlineStyleBuiltinHiddenInput": {
"type": "object",
"properties": {
- "existed": {
- "type": "boolean"
+ "av": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "incompatible": {
- "type": "boolean"
+ "backgroundColor": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "js": {
- "type": "string"
+ "color": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "style1": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "existed",
- "incompatible",
- "js"
- ],
"additionalProperties": false
},
- "ListNotebooksData": {
+ "InlineStyleBuiltinInput": {
"type": "object",
"properties": {
- "boxDocEnabled": {
- "type": "boolean"
+ "colors": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleBuiltinColorInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "notebooks": {
+ "hidden": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleBuiltinHiddenInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "styles": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/Notebook"
+ "$ref": "#/$defs/InlineStyleBuiltinStyleInput"
},
{
"type": "null"
@@ -4662,62 +4803,28 @@
]
}
},
- "required": [
- "boxDocEnabled",
- "notebooks"
- ],
"additionalProperties": false
},
- "ListNotebooksRequestInput": {
+ "InlineStyleBuiltinStyle": {
"type": "object",
"properties": {
- "flashcard": {
+ "dark": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/InlineStyleTheme"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "LoadPetalsRequestInput": {
- "type": "object",
- "properties": {
- "frontend": {
- "type": "string"
- }
- },
- "required": [
- "frontend"
- ],
- "additionalProperties": false
- },
- "LockScreenRequestInput": {
- "type": "object",
- "properties": {
- "lockScreenMode": {
- "type": "number"
- }
- },
- "required": [
- "lockScreenMode"
- ],
- "additionalProperties": false
- },
- "MarkdownHTMLRequestInput": {
- "type": "object",
- "properties": {
- "markdown": {
+ },
+ "id": {
"type": "string"
},
- "mode": {
+ "light": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/InlineStyleTheme"
},
{
"type": "null"
@@ -4726,27 +4833,26 @@
}
},
"required": [
- "markdown"
+ "dark",
+ "id",
+ "light"
],
"additionalProperties": false
},
- "MoveBlockRequestInput": {
+ "InlineStyleBuiltinStyleInput": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
- },
- "parentID": {
+ "dark": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/InlineStyleThemeInput"
},
{
"type": "null"
}
]
},
- "previousID": {
+ "id": {
"anyOf": [
{
"type": "string"
@@ -4755,23 +4861,11 @@
"type": "null"
}
]
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "NetImageAssetsRequestInput": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
},
- "url": {
+ "light": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/InlineStyleThemeInput"
},
{
"type": "null"
@@ -4779,372 +4873,273 @@
]
}
},
- "required": [
- "id"
- ],
"additionalProperties": false
},
- "NetworkData": {
+ "InlineStyleInput": {
"type": "object",
"properties": {
- "proxy": {
+ "dark": {
"anyOf": [
{
- "$ref": "#/$defs/NetworkProxy"
+ "$ref": "#/$defs/InlineStyleThemeInput"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "proxy"
- ],
- "additionalProperties": false
- },
- "NetworkProxy": {
- "type": "object",
- "properties": {
- "host": {
- "type": "string"
},
- "port": {
- "type": "string"
- },
- "scheme": {
- "type": "string"
- }
- },
- "required": [
- "host",
- "port",
- "scheme"
- ],
- "additionalProperties": false
- },
- "NetworkProxyInput": {
- "type": "object",
- "properties": {
- "host": {
- "type": "string"
- },
- "port": {
- "type": "string"
- },
- "scheme": {
- "type": "string"
- }
- },
- "required": [
- "host",
- "port",
- "scheme"
- ],
- "additionalProperties": false
- },
- "NetworkServeRequestInput": {
- "type": "object",
- "properties": {
- "networkServe": {
- "type": "boolean"
- }
- },
- "required": [
- "networkServe"
- ],
- "additionalProperties": false
- },
- "NetworkServeTLSRequestInput": {
- "type": "object",
- "properties": {
- "networkServeTLS": {
- "type": "boolean"
- }
- },
- "required": [
- "networkServeTLS"
- ],
- "additionalProperties": false
- },
- "Notebook": {
- "type": "object",
- "properties": {
- "closed": {
- "type": "boolean"
- },
- "dueFlashcardCount": {
- "type": "integer"
- },
- "encrypted": {
- "type": "boolean"
- },
- "flashcardCount": {
- "type": "integer"
- },
- "icon": {
- "type": "string"
+ "hidden": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "newFlashcardCount": {
- "type": "integer"
- },
- "sort": {
- "type": "integer"
- },
- "sortMode": {
- "type": "integer"
- },
- "state": {
- "type": "string",
- "enum": [
- "Locked",
- "Unlocking",
- "Unlocked",
- "Locking",
- "Error"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
]
},
- "subFileCount": {
- "type": "integer"
- },
- "unlocked": {
- "type": "boolean"
- }
- },
- "required": [
- "closed",
- "dueFlashcardCount",
- "encrypted",
- "flashcardCount",
- "icon",
- "id",
- "name",
- "newFlashcardCount",
- "sort",
- "sortMode",
- "subFileCount",
- "unlocked"
- ],
- "additionalProperties": false
- },
- "NotebookConf": {
- "type": "object",
- "properties": {
- "boxCrypt": {
+ "light": {
"anyOf": [
{
- "$ref": "#/$defs/NotebookEncryption"
+ "$ref": "#/$defs/InlineStyleThemeInput"
},
{
"type": "null"
}
]
},
- "closed": {
- "type": "boolean"
- },
- "dailyNoteSavePath": {
- "type": "string"
- },
- "dailyNoteTemplatePath": {
- "type": "string"
- },
- "docCreateSaveBox": {
- "type": "string"
- },
- "docCreateSavePath": {
- "type": "string"
- },
- "docCreateTemplatePath": {
- "type": "string"
- },
- "encrypted": {
- "type": "boolean"
- },
- "icon": {
- "type": "string"
- },
"name": {
- "type": "string"
- },
- "refCreateSaveBox": {
- "type": "string"
- },
- "refCreateSavePath": {
- "type": "string"
- },
- "sort": {
- "type": "integer"
- },
- "sortMode": {
- "type": "integer"
- }
- },
- "required": [
- "boxCrypt",
- "closed",
- "dailyNoteSavePath",
- "dailyNoteTemplatePath",
- "docCreateSaveBox",
- "docCreateSavePath",
- "docCreateTemplatePath",
- "encrypted",
- "icon",
- "name",
- "refCreateSaveBox",
- "refCreateSavePath",
- "sort",
- "sortMode"
- ],
- "additionalProperties": false
- },
- "NotebookConfData": {
- "type": "object",
- "properties": {
- "box": {
- "type": "string"
- },
- "conf": {
"anyOf": [
{
- "$ref": "#/$defs/NotebookConf"
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "name": {
- "type": "string"
}
},
- "required": [
- "box",
- "conf",
- "name"
- ],
"additionalProperties": false
},
- "NotebookConfPatchInput": {
+ "InlineStyleOrder": {
"type": "object",
"properties": {
- "boxCrypt": {
+ "backgroundColor": {
"anyOf": [
{
- "$ref": "#/$defs/NotebookEncryptionPatchInput"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "closed": {
+ "color": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "dailyNoteSavePath": {
+ "style1": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
- },
- "dailyNoteTemplatePath": {
+ }
+ },
+ "required": [
+ "backgroundColor",
+ "color",
+ "style1"
+ ],
+ "additionalProperties": false
+ },
+ "InlineStyleOrderInput": {
+ "type": "object",
+ "properties": {
+ "backgroundColor": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "docCreateSaveBox": {
+ "color": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "docCreateSavePath": {
+ "style1": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
- },
- "docCreateTemplatePath": {
- "anyOf": [
- {
- "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "InlineStyleTheme": {
+ "type": "object",
+ "properties": {
+ "backgroundColor": {
+ "type": "string"
+ },
+ "color": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "InlineStyleThemeInput": {
+ "type": "object",
+ "properties": {
+ "backgroundColor": {
+ "anyOf": [
+ {
+ "type": "string"
},
{
"type": "null"
}
]
},
- "encrypted": {
+ "color": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "InlineStyles": {
+ "type": "object",
+ "properties": {
+ "av": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleAV"
},
{
"type": "null"
}
]
},
- "icon": {
+ "builtin": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/InlineStyleBuiltin"
},
{
"type": "null"
}
]
},
- "name": {
+ "order": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/InlineStyleOrder"
},
{
"type": "null"
}
]
},
- "refCreateSaveBox": {
+ "styles": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyle"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "refCreateSavePath": {
+ "version": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "av",
+ "builtin",
+ "order",
+ "styles",
+ "version"
+ ],
+ "additionalProperties": false
+ },
+ "InsertBlockRequestInput": {
+ "type": "object",
+ "properties": {
+ "data": {
+ "type": "string"
+ },
+ "dataType": {
+ "type": "string"
+ },
+ "nextID": {
"anyOf": [
{
"type": "string"
@@ -5154,20 +5149,20 @@
}
]
},
- "sort": {
+ "parentID": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "sortMode": {
+ "previousID": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
@@ -5175,58 +5170,100 @@
]
}
},
+ "required": [
+ "data",
+ "dataType"
+ ],
"additionalProperties": false
},
- "NotebookCryptoAutoLockRequestInput": {
- "type": "object",
- "properties": {
- "autoLockMinutes": {
+ "JSONValue": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "type": "boolean"
+ },
+ {
"type": "number"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
}
- },
- "required": [
- "autoLockMinutes"
- ],
- "additionalProperties": false
+ ]
},
- "NotebookCryptoBackupData": {
+ "KernelPetal": {
"type": "object",
"properties": {
- "file": {
+ "existed": {
+ "type": "boolean"
+ },
+ "incompatible": {
+ "type": "boolean"
+ },
+ "js": {
"type": "string"
}
},
"required": [
- "file"
+ "existed",
+ "incompatible",
+ "js"
],
"additionalProperties": false
},
- "NotebookEncryption": {
+ "ListNotebooksData": {
"type": "object",
"properties": {
- "createdAt": {
- "type": "integer"
- },
- "metadata": {
- "type": "string"
- },
- "spec": {
- "type": "integer"
+ "boxDocEnabled": {
+ "type": "boolean"
},
- "wrapNonce": {
+ "notebooks": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/Notebook"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
- },
- "wrappedDEK": {
+ }
+ },
+ "required": [
+ "boxDocEnabled",
+ "notebooks"
+ ],
+ "additionalProperties": false
+ },
+ "ListNotebooksRequestInput": {
+ "type": "object",
+ "properties": {
+ "flashcard": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
@@ -5234,91 +5271,104 @@
]
}
},
+ "additionalProperties": false
+ },
+ "LoadPetalsRequestInput": {
+ "type": "object",
+ "properties": {
+ "frontend": {
+ "type": "string"
+ }
+ },
"required": [
- "createdAt",
- "spec",
- "wrapNonce",
- "wrappedDEK"
+ "frontend"
],
"additionalProperties": false
},
- "NotebookEncryptionPatchInput": {
+ "LocalGraphConf": {
"type": "object",
"properties": {
- "createdAt": {
+ "d3": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/GraphD3"
},
{
"type": "null"
}
]
},
- "metadata": {
+ "dailyNote": {
+ "type": "boolean"
+ },
+ "type": {
"anyOf": [
{
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- ]
+ "$ref": "#/$defs/GraphTypeFilter"
},
{
"type": "null"
}
]
+ }
+ },
+ "required": [
+ "d3",
+ "dailyNote",
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "LocalGraphRequestInput": {
+ "type": "object",
+ "properties": {
+ "conf": {
+ "$ref": "#/$defs/GraphConfigurationFieldsInput"
},
- "spec": {
+ "id": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "wrapNonce": {
+ "k": {
"anyOf": [
{
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- ]
+ "type": "string"
},
{
"type": "null"
}
]
},
- "wrappedDEK": {
+ "notebook": {
"anyOf": [
{
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- ]
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "reqId": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/JSONValue"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "anyOf": [
+ {
+ "type": "string"
},
{
"type": "null"
@@ -5328,115 +5378,94 @@
},
"additionalProperties": false
},
- "NotebookIDRequestInput": {
- "type": "object",
- "properties": {
- "notebook": {
- "type": "string"
- }
- },
- "required": [
- "notebook"
- ],
- "additionalProperties": false
- },
- "NotebookInfo": {
+ "LocalGraphResult": {
"type": "object",
"properties": {
- "ctime": {
- "type": "integer"
- },
- "docCount": {
- "type": "integer"
- },
- "hCtime": {
- "type": "string"
- },
- "hMtime": {
+ "box": {
"type": "string"
},
- "hSize": {
- "type": "string"
+ "conf": {
+ "$ref": "#/$defs/LocalGraphConf"
},
"id": {
"type": "string"
},
- "mtime": {
- "type": "integer"
- },
- "name": {
- "type": "string"
+ "links": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/GraphLink"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "size": {
- "type": "integer"
- }
- },
- "required": [
- "ctime",
- "docCount",
- "hCtime",
- "hMtime",
- "hSize",
- "id",
- "mtime",
- "name",
- "size"
- ],
- "additionalProperties": false
- },
- "NotebookInfoData": {
- "type": "object",
- "properties": {
- "boxInfo": {
+ "nodes": {
"anyOf": [
{
- "$ref": "#/$defs/NotebookInfo"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/GraphNode"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
+ },
+ "reqId": {
+ "$ref": "#/$defs/JSONValue"
}
},
"required": [
- "boxInfo"
- ],
- "additionalProperties": false
- },
- "NotebookPasswordRequestInput": {
- "type": "object",
- "properties": {
- "password": {
- "type": "string"
- }
- },
- "required": [
- "password"
+ "box",
+ "conf",
+ "id",
+ "links",
+ "nodes",
+ "reqId"
],
"additionalProperties": false
},
- "NotificationData": {
+ "LockScreenRequestInput": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
+ "lockScreenMode": {
+ "type": "number"
}
},
"required": [
- "id"
+ "lockScreenMode"
],
"additionalProperties": false
},
- "NotificationRequestInput": {
+ "MarkdownHTMLRequestInput": {
"type": "object",
"properties": {
- "msg": {
+ "markdown": {
"type": "string"
},
- "timeout": {
+ "mode": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
@@ -5445,14 +5474,17 @@
}
},
"required": [
- "msg"
+ "markdown"
],
"additionalProperties": false
},
- "OpenNotebookRequestInput": {
+ "MoveBlockRequestInput": {
"type": "object",
"properties": {
- "app": {
+ "id": {
+ "type": "string"
+ },
+ "parentID": {
"anyOf": [
{
"type": "string"
@@ -5462,45 +5494,29 @@
}
]
},
- "notebook": {
- "type": "string"
- }
- },
- "required": [
- "notebook"
- ],
- "additionalProperties": false
- },
- "OrderedListStartData": {
- "type": "object",
- "properties": {
- "found": {
- "type": "boolean"
- },
- "start": {
- "type": "integer"
+ "previousID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "found",
- "start"
+ "id"
],
"additionalProperties": false
},
- "OutlineRequestInput": {
+ "NetImageAssetsRequestInput": {
"type": "object",
"properties": {
"id": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "type": "string"
},
- "notebook": {
+ "url": {
"anyOf": [
{
"type": "string"
@@ -5509,11 +5525,20 @@
"type": "null"
}
]
- },
- "preview": {
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "NetworkData": {
+ "type": "object",
+ "properties": {
+ "proxy": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/NetworkProxy"
},
{
"type": "null"
@@ -5521,320 +5546,283 @@
]
}
},
+ "required": [
+ "proxy"
+ ],
"additionalProperties": false
},
- "OutlineStorageRequestInput": {
+ "NetworkProxy": {
"type": "object",
"properties": {
- "docID": {
+ "host": {
+ "type": "string"
+ },
+ "port": {
+ "type": "string"
+ },
+ "scheme": {
"type": "string"
}
},
"required": [
- "docID"
+ "host",
+ "port",
+ "scheme"
],
"additionalProperties": false
},
- "OutlineStorageSetRequestInput": {
+ "NetworkProxyInput": {
"type": "object",
"properties": {
- "docID": {
+ "host": {
"type": "string"
},
- "val": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/$defs/JSONValue"
- }
+ "port": {
+ "type": "string"
+ },
+ "scheme": {
+ "type": "string"
}
},
"required": [
- "docID",
- "val"
+ "host",
+ "port",
+ "scheme"
],
"additionalProperties": false
},
- "PandocData": {
+ "NetworkServeRequestInput": {
"type": "object",
"properties": {
- "path": {
- "type": "string"
+ "networkServe": {
+ "type": "boolean"
}
},
"required": [
- "path"
+ "networkServe"
],
"additionalProperties": false
},
- "PandocRequestInput": {
+ "NetworkServeTLSRequestInput": {
"type": "object",
"properties": {
- "args": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "dir": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "networkServeTLS": {
+ "type": "boolean"
}
},
"required": [
- "args"
+ "networkServeTLS"
],
"additionalProperties": false
},
- "Petal": {
+ "Notebook": {
"type": "object",
"properties": {
- "css": {
- "type": "string"
- },
- "disabledInPublish": {
- "type": "boolean"
- },
- "disallowInstall": {
+ "closed": {
"type": "boolean"
},
- "displayName": {
- "type": "string"
+ "dueFlashcardCount": {
+ "type": "integer"
},
- "enabled": {
+ "encrypted": {
"type": "boolean"
},
- "i18n": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/$defs/JSONValue"
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "incompatible": {
- "type": "boolean"
+ "flashcardCount": {
+ "type": "integer"
},
- "js": {
+ "icon": {
"type": "string"
},
- "kernel": {
- "$ref": "#/$defs/KernelPetal"
+ "id": {
+ "type": "string"
},
"name": {
"type": "string"
},
- "userDisabledInPublish": {
- "type": "boolean"
+ "newFlashcardCount": {
+ "type": "integer"
},
- "version": {
- "type": "string"
+ "sort": {
+ "type": "integer"
+ },
+ "sortMode": {
+ "type": "integer"
+ },
+ "state": {
+ "type": "string",
+ "enum": [
+ "Locked",
+ "Unlocking",
+ "Unlocked",
+ "Locking",
+ "Error"
+ ]
+ },
+ "subFileCount": {
+ "type": "integer"
+ },
+ "unlocked": {
+ "type": "boolean"
}
},
"required": [
- "css",
- "disabledInPublish",
- "disallowInstall",
- "displayName",
- "enabled",
- "i18n",
- "incompatible",
- "js",
- "kernel",
+ "closed",
+ "dueFlashcardCount",
+ "encrypted",
+ "flashcardCount",
+ "icon",
+ "id",
"name",
- "userDisabledInPublish",
- "version"
+ "newFlashcardCount",
+ "sort",
+ "sortMode",
+ "subFileCount",
+ "unlocked"
],
"additionalProperties": false
},
- "PinnedDoc": {
+ "NotebookConf": {
"type": "object",
"properties": {
- "childrenSortMode": {
+ "boxCrypt": {
"anyOf": [
{
- "type": "integer"
+ "$ref": "#/$defs/NotebookEncryption"
},
{
"type": "null"
}
]
},
- "icon": {
+ "closed": {
+ "type": "boolean"
+ },
+ "dailyNoteSavePath": {
"type": "string"
},
- "id": {
+ "dailyNoteTemplatePath": {
+ "type": "string"
+ },
+ "docCreateSaveBox": {
+ "type": "string"
+ },
+ "docCreateSavePath": {
+ "type": "string"
+ },
+ "docCreateTemplatePath": {
+ "type": "string"
+ },
+ "encrypted": {
+ "type": "boolean"
+ },
+ "icon": {
"type": "string"
},
"name": {
"type": "string"
},
- "notebook": {
+ "refCreateSaveBox": {
"type": "string"
},
- "path": {
+ "refCreateSavePath": {
"type": "string"
},
- "subFileCount": {
+ "sort": {
"type": "integer"
},
- "unavailable": {
- "type": "boolean"
+ "sortMode": {
+ "type": "integer"
}
},
"required": [
- "childrenSortMode",
+ "boxCrypt",
+ "closed",
+ "dailyNoteSavePath",
+ "dailyNoteTemplatePath",
+ "docCreateSaveBox",
+ "docCreateSavePath",
+ "docCreateTemplatePath",
+ "encrypted",
"icon",
- "id",
"name",
- "notebook",
- "path",
- "subFileCount",
- "unavailable"
- ],
- "additionalProperties": false
- },
- "PrepareRichTextRequestInput": {
- "type": "object",
- "properties": {
- "assets": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/RichClipboardAssetInput"
- }
- }
- },
- "required": [
- "assets"
+ "refCreateSaveBox",
+ "refCreateSavePath",
+ "sort",
+ "sortMode"
],
"additionalProperties": false
},
- "PrependBlockRequestInput": {
+ "NotebookConfData": {
"type": "object",
"properties": {
- "data": {
+ "box": {
"type": "string"
},
- "dataType": {
- "type": "string"
+ "conf": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/NotebookConf"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "parentID": {
+ "name": {
"type": "string"
}
},
"required": [
- "data",
- "dataType",
- "parentID"
+ "box",
+ "conf",
+ "name"
],
"additionalProperties": false
},
- "PublishedBlockInfo": {
+ "NotebookConfPatchInput": {
"type": "object",
"properties": {
- "publishAccessRequired": {
- "type": "boolean",
- "enum": [
- true
+ "boxCrypt": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/NotebookEncryptionPatchInput"
+ },
+ {
+ "type": "null"
+ }
]
},
- "rootID": {
- "type": "string"
+ "closed": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "rootIcon": {
- "type": "string"
+ "dailyNoteSavePath": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "rootTitle": {
- "type": "string"
+ "dailyNoteTemplatePath": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "rootTitleEmpty": {
- "type": "boolean"
- }
- },
- "required": [
- "publishAccessRequired",
- "rootID",
- "rootIcon",
- "rootTitle",
- "rootTitleEmpty"
- ],
- "additionalProperties": false
- },
- "PutFileRequestInput": {
- "type": "object",
- "properties": {
- "app": {
- "type": "string"
- },
- "file": {
- "type": "string",
- "format": "binary"
- },
- "isDir": {
- "type": "string"
- },
- "modTime": {
- "type": "string"
- },
- "path": {
- "type": "string"
- }
- },
- "additionalProperties": false
- },
- "ReadDirectoryRequestInput": {
- "type": "object",
- "properties": {
- "path": {
- "type": "string"
- }
- },
- "required": [
- "path"
- ],
- "additionalProperties": false
- },
- "RecentDoc": {
- "type": "object",
- "properties": {
- "closedAt": {
- "type": "integer"
- },
- "icon": {
- "type": "string"
- },
- "openAt": {
- "type": "integer"
- },
- "rootID": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "viewedAt": {
- "type": "integer"
- }
- },
- "required": [
- "rootID"
- ],
- "additionalProperties": false
- },
- "RecentDocUpdateRequestInput": {
- "type": "object",
- "properties": {
- "rootID": {
+ "docCreateSaveBox": {
"anyOf": [
{
"type": "string"
@@ -5843,14 +5831,8 @@
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "RecentDocsRequestInput": {
- "type": "object",
- "properties": {
- "sortBy": {
+ },
+ "docCreateSavePath": {
"anyOf": [
{
"type": "string"
@@ -5859,117 +5841,48 @@
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "RecentDocsUpdateRequestInput": {
- "type": "object",
- "properties": {
- "rootIDs": {
+ },
+ "docCreateTemplatePath": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "RefDefs": {
- "type": "object",
- "properties": {
- "defIDs": {
+ },
+ "encrypted": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "boolean"
},
{
"type": "null"
}
]
},
- "refID": {
- "type": "string"
- }
- },
- "required": [
- "defIDs",
- "refID"
- ],
- "additionalProperties": false
- },
- "RefDefsData": {
- "type": "object",
- "properties": {
- "refDefs": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/RefDefs"
- }
- }
- },
- "required": [
- "refDefs"
- ],
- "additionalProperties": false
- },
- "RefIDsData": {
- "type": "object",
- "properties": {
- "originalRefBlockIDs": {
+ "icon": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "refDefs": {
+ "name": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/RefDefs"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
- }
- },
- "required": [
- "originalRefBlockIDs",
- "refDefs"
- ],
- "additionalProperties": false
- },
- "RefIDsRequestInput": {
- "type": "object",
- "properties": {
- "id": {
+ },
+ "refCreateSaveBox": {
"anyOf": [
{
"type": "string"
@@ -5979,42 +5892,30 @@
}
]
},
- "ids": {
+ "refCreateSavePath": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "notebook": {
+ "sort": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
}
]
- }
- },
- "additionalProperties": false
- },
- "RefTextQueryRequestInput": {
- "type": "object",
- "properties": {
- "anchor": {
- "type": "string"
},
- "notebook": {
+ "sortMode": {
"anyOf": [
{
- "type": "string"
+ "type": "integer"
},
{
"type": "null"
@@ -6022,39 +5923,45 @@
]
}
},
- "required": [
- "anchor"
- ],
"additionalProperties": false
},
- "RemoveBookmarkRequestInput": {
+ "NotebookCryptoAutoLockRequestInput": {
"type": "object",
"properties": {
- "bookmark": {
- "type": "string"
+ "autoLockMinutes": {
+ "type": "number"
}
},
"required": [
- "bookmark"
+ "autoLockMinutes"
],
"additionalProperties": false
},
- "RemoveCriterionRequestInput": {
+ "NotebookCryptoBackupData": {
"type": "object",
"properties": {
- "name": {
+ "file": {
"type": "string"
}
},
"required": [
- "name"
+ "file"
],
"additionalProperties": false
},
- "RemoveFileRequestInput": {
+ "NotebookEncryption": {
"type": "object",
"properties": {
- "app": {
+ "createdAt": {
+ "type": "integer"
+ },
+ "metadata": {
+ "type": "string"
+ },
+ "spec": {
+ "type": "integer"
+ },
+ "wrapNonce": {
"anyOf": [
{
"type": "string"
@@ -6064,198 +5971,274 @@
}
]
},
- "path": {
- "type": "string"
+ "wrappedDEK": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "path"
+ "createdAt",
+ "spec",
+ "wrapNonce",
+ "wrappedDEK"
],
"additionalProperties": false
},
- "RemoveShorthandsRequestInput": {
+ "NotebookEncryptionPatchInput": {
"type": "object",
"properties": {
- "ids": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "ids"
- ],
+ "createdAt": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "metadata": {
+ "anyOf": [
+ {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ }
+ ]
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "spec": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "wrapNonce": {
+ "anyOf": [
+ {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ }
+ ]
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "wrappedDEK": {
+ "anyOf": [
+ {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ }
+ ]
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
"additionalProperties": false
},
- "RemoveTagRequestInput": {
+ "NotebookIDRequestInput": {
"type": "object",
"properties": {
- "label": {
+ "notebook": {
"type": "string"
}
},
"required": [
- "label"
+ "notebook"
],
"additionalProperties": false
},
- "RenameBookmarkRequestInput": {
+ "NotebookInfo": {
"type": "object",
"properties": {
- "newBookmark": {
+ "ctime": {
+ "type": "integer"
+ },
+ "docCount": {
+ "type": "integer"
+ },
+ "hCtime": {
"type": "string"
},
- "oldBookmark": {
+ "hMtime": {
"type": "string"
- }
- },
- "required": [
- "newBookmark",
- "oldBookmark"
- ],
- "additionalProperties": false
- },
- "RenameFileRequestInput": {
- "type": "object",
- "properties": {
- "newPath": {
+ },
+ "hSize": {
"type": "string"
},
- "path": {
+ "id": {
"type": "string"
- }
- },
- "required": [
- "newPath",
- "path"
- ],
- "additionalProperties": false
- },
- "RenameNotebookRequestInput": {
- "type": "object",
- "properties": {
+ },
+ "mtime": {
+ "type": "integer"
+ },
"name": {
"type": "string"
},
- "notebook": {
- "type": "string"
+ "size": {
+ "type": "integer"
}
},
"required": [
+ "ctime",
+ "docCount",
+ "hCtime",
+ "hMtime",
+ "hSize",
+ "id",
+ "mtime",
"name",
- "notebook"
+ "size"
],
"additionalProperties": false
},
- "RenameTagRequestInput": {
+ "NotebookInfoData": {
"type": "object",
"properties": {
- "newLabel": {
- "type": "string"
- },
- "oldLabel": {
- "type": "string"
+ "boxInfo": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/NotebookInfo"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "newLabel",
- "oldLabel"
+ "boxInfo"
],
"additionalProperties": false
},
- "RenderSprigRequestInput": {
+ "NotebookPasswordRequestInput": {
"type": "object",
"properties": {
- "template": {
+ "password": {
"type": "string"
}
},
"required": [
- "template"
+ "password"
],
"additionalProperties": false
},
- "RenderTemplateData": {
+ "NotificationData": {
"type": "object",
"properties": {
- "content": {
- "type": "string"
- },
- "docTreePlan": {
- "$ref": "#/$defs/TemplatePlan"
- },
- "path": {
+ "id": {
"type": "string"
}
},
"required": [
- "content",
- "path"
+ "id"
],
"additionalProperties": false
},
- "RenderTemplateRequestInput": {
+ "NotificationRequestInput": {
"type": "object",
"properties": {
- "content": {
- "type": "string"
- },
- "id": {
+ "msg": {
"type": "string"
},
- "mode": {
+ "timeout": {
"anyOf": [
{
- "type": "string"
+ "type": "number"
},
{
"type": "null"
}
]
- },
- "path": {
- "type": "string"
- },
- "preview": {
+ }
+ },
+ "required": [
+ "msg"
+ ],
+ "additionalProperties": false
+ },
+ "OpenNotebookRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
+ },
+ "notebook": {
+ "type": "string"
}
},
"required": [
- "id",
- "path"
+ "notebook"
],
"additionalProperties": false
},
- "ReorderData": {
+ "OrderedListStartData": {
"type": "object",
"properties": {
- "changed": {
+ "found": {
"type": "boolean"
},
- "notebook": {
- "type": "string"
- },
- "parentPath": {
- "type": "string"
+ "start": {
+ "type": "integer"
}
},
"required": [
- "changed"
+ "found",
+ "start"
],
"additionalProperties": false
},
- "ReorderNotebooksRequestInput": {
+ "OutlineRequestInput": {
"type": "object",
"properties": {
- "position": {
+ "id": {
"anyOf": [
{
"type": "string"
@@ -6265,23 +6248,20 @@
}
]
},
- "sourceIDs": {
+ "notebook": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "targetID": {
+ "preview": {
"anyOf": [
{
- "type": "string"
+ "type": "boolean"
},
{
"type": "null"
@@ -6291,85 +6271,59 @@
},
"additionalProperties": false
},
- "RichClipboardAssetInput": {
+ "OutlineStorageRequestInput": {
"type": "object",
"properties": {
- "box": {
- "type": "string"
- },
- "index": {
- "type": "integer"
- },
- "path": {
+ "docID": {
"type": "string"
}
},
"required": [
- "index",
- "path"
+ "docID"
],
"additionalProperties": false
},
- "RichClipboardPrepared": {
+ "OutlineStorageSetRequestInput": {
"type": "object",
"properties": {
- "assets": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "$ref": "#/$defs/RichClipboardPreparedAsset"
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "batch": {
+ "docID": {
"type": "string"
},
- "groups": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "val": {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
}
},
"required": [
- "assets",
- "batch",
- "groups"
+ "docID",
+ "val"
],
"additionalProperties": false
},
- "RichClipboardPreparedAsset": {
+ "PandocData": {
"type": "object",
"properties": {
- "index": {
- "type": "integer"
- },
"path": {
"type": "string"
}
},
"required": [
- "index",
"path"
],
"additionalProperties": false
},
- "SQLQueryRequestInput": {
+ "PandocRequestInput": {
"type": "object",
"properties": {
- "mode": {
+ "args": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "dir": {
"anyOf": [
{
"type": "string"
@@ -6378,256 +6332,308 @@
"type": "null"
}
]
- },
- "stmt": {
- "type": "string"
}
},
"required": [
- "stmt"
+ "args"
],
"additionalProperties": false
},
- "SaveTemplateRequestInput": {
+ "Petal": {
"type": "object",
"properties": {
- "databaseMode": {
+ "css": {
"type": "string"
},
- "directory": {
+ "disabledInPublish": {
+ "type": "boolean"
+ },
+ "disallowInstall": {
+ "type": "boolean"
+ },
+ "displayName": {
"type": "string"
},
- "id": {
+ "enabled": {
+ "type": "boolean"
+ },
+ "i18n": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "incompatible": {
+ "type": "boolean"
+ },
+ "js": {
"type": "string"
},
+ "kernel": {
+ "$ref": "#/$defs/KernelPetal"
+ },
"name": {
"type": "string"
},
- "overwrite": {
+ "userDisabledInPublish": {
"type": "boolean"
+ },
+ "version": {
+ "type": "string"
}
},
"required": [
- "id",
+ "css",
+ "disabledInPublish",
+ "disallowInstall",
+ "displayName",
+ "enabled",
+ "i18n",
+ "incompatible",
+ "js",
+ "kernel",
"name",
- "overwrite"
+ "userDisabledInPublish",
+ "version"
],
"additionalProperties": false
},
- "SearchBlock": {
+ "PinnedDoc": {
"type": "object",
"properties": {
- "alias": {
- "type": "string"
- },
- "box": {
- "type": "string"
- },
- "children": {
+ "childrenSortMode": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "integer"
},
{
"type": "null"
}
]
},
- "content": {
+ "icon": {
"type": "string"
},
- "count": {
- "type": "integer"
+ "id": {
+ "type": "string"
},
- "created": {
+ "name": {
"type": "string"
},
- "defID": {
+ "notebook": {
"type": "string"
},
- "defPath": {
+ "path": {
"type": "string"
},
- "depth": {
+ "subFileCount": {
"type": "integer"
},
- "fcontent": {
- "type": "string"
- },
- "folded": {
+ "unavailable": {
"type": "boolean"
+ }
+ },
+ "required": [
+ "childrenSortMode",
+ "icon",
+ "id",
+ "name",
+ "notebook",
+ "path",
+ "subFileCount",
+ "unavailable"
+ ],
+ "additionalProperties": false
+ },
+ "PrepareRichTextRequestInput": {
+ "type": "object",
+ "properties": {
+ "assets": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/RichClipboardAssetInput"
+ }
+ }
+ },
+ "required": [
+ "assets"
+ ],
+ "additionalProperties": false
+ },
+ "PrependBlockRequestInput": {
+ "type": "object",
+ "properties": {
+ "data": {
+ "type": "string"
},
- "hPath": {
+ "dataType": {
"type": "string"
},
- "ial": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
+ "parentID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "data",
+ "dataType",
+ "parentID"
+ ],
+ "additionalProperties": false
+ },
+ "PublishedBlockInfo": {
+ "type": "object",
+ "properties": {
+ "publishAccessRequired": {
+ "type": "boolean",
+ "enum": [
+ true
]
},
- "id": {
+ "rootID": {
"type": "string"
},
- "markdown": {
+ "rootIcon": {
"type": "string"
},
- "memo": {
+ "rootTitle": {
"type": "string"
},
- "name": {
+ "rootTitleEmpty": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "publishAccessRequired",
+ "rootID",
+ "rootIcon",
+ "rootTitle",
+ "rootTitleEmpty"
+ ],
+ "additionalProperties": false
+ },
+ "PutFileRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
"type": "string"
},
- "number": {
+ "file": {
+ "type": "string",
+ "format": "binary"
+ },
+ "isDir": {
"type": "string"
},
- "parentID": {
+ "modTime": {
"type": "string"
},
"path": {
"type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "ReadDirectoryRequestInput": {
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "RecentDoc": {
+ "type": "object",
+ "properties": {
+ "closedAt": {
+ "type": "integer"
},
- "refCount": {
+ "icon": {
+ "type": "string"
+ },
+ "openAt": {
"type": "integer"
},
- "refText": {
+ "rootID": {
"type": "string"
},
- "refs": {
+ "title": {
+ "type": "string"
+ },
+ "viewedAt": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "rootID"
+ ],
+ "additionalProperties": false
+ },
+ "RecentDocUpdateRequestInput": {
+ "type": "object",
+ "properties": {
+ "rootID": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "riffCard": {
+ }
+ },
+ "additionalProperties": false
+ },
+ "RecentDocsRequestInput": {
+ "type": "object",
+ "properties": {
+ "sortBy": {
"anyOf": [
{
- "$ref": "#/$defs/SearchBlockCard"
+ "type": "string"
},
{
"type": "null"
}
]
- },
- "riffCardID": {
- "type": "string"
- },
- "rootID": {
- "type": "string"
- },
- "sort": {
- "type": "integer"
- },
- "subType": {
- "type": "string"
- },
- "tag": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "updated": {
- "type": "string"
}
},
- "required": [
- "alias",
- "box",
- "children",
- "content",
- "count",
- "created",
- "defID",
- "defPath",
- "depth",
- "fcontent",
- "folded",
- "hPath",
- "ial",
- "id",
- "markdown",
- "memo",
- "name",
- "parentID",
- "path",
- "refCount",
- "refText",
- "refs",
- "riffCard",
- "riffCardID",
- "rootID",
- "sort",
- "subType",
- "tag",
- "type",
- "updated"
- ],
"additionalProperties": false
},
- "SearchBlockCard": {
+ "RecentDocsUpdateRequestInput": {
"type": "object",
"properties": {
- "due": {
- "type": "string"
- },
- "lapses": {
- "type": "integer"
- },
- "lastReview": {
- "type": "string"
- },
- "reps": {
- "type": "integer"
- },
- "state": {
- "type": "integer"
+ "rootIDs": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "due",
- "lapses",
- "lastReview",
- "reps",
- "state"
- ],
"additionalProperties": false
},
- "SearchHistoryData": {
+ "RefDefs": {
"type": "object",
"properties": {
- "histories": {
+ "defIDs": {
"anyOf": [
{
"type": "array",
@@ -6640,34 +6646,78 @@
}
]
},
- "pageCount": {
- "type": "integer"
- },
- "totalCount": {
- "type": "integer"
+ "refID": {
+ "type": "string"
}
},
"required": [
- "histories",
- "pageCount",
- "totalCount"
+ "defIDs",
+ "refID"
],
"additionalProperties": false
},
- "SearchHistoryRequestInput": {
+ "RefDefsData": {
"type": "object",
"properties": {
- "notebook": {
+ "refDefs": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/RefDefs"
+ }
+ }
+ },
+ "required": [
+ "refDefs"
+ ],
+ "additionalProperties": false
+ },
+ "RefIDsData": {
+ "type": "object",
+ "properties": {
+ "originalRefBlockIDs": {
"anyOf": [
{
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "op": {
+ "refDefs": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RefDefs"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "originalRefBlockIDs",
+ "refDefs"
+ ],
+ "additionalProperties": false
+ },
+ "RefIDsRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
"anyOf": [
{
"type": "string"
@@ -6677,17 +6727,20 @@
}
]
},
- "page": {
+ "ids": {
"anyOf": [
{
- "type": "number"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "query": {
+ "notebook": {
"anyOf": [
{
"type": "string"
@@ -6696,11 +6749,20 @@
"type": "null"
}
]
+ }
+ },
+ "additionalProperties": false
+ },
+ "RefTextQueryRequestInput": {
+ "type": "object",
+ "properties": {
+ "anchor": {
+ "type": "string"
},
- "type": {
+ "notebook": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
"type": "null"
@@ -6708,195 +6770,61 @@
]
}
},
+ "required": [
+ "anchor"
+ ],
"additionalProperties": false
},
- "SearchPath": {
+ "RemoveBookmarkRequestInput": {
"type": "object",
"properties": {
- "blocks": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "box": {
- "type": "string"
- },
- "children": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchPath"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "count": {
- "type": "integer"
- },
- "created": {
- "type": "string"
- },
- "depth": {
- "type": "integer"
- },
- "folded": {
- "type": "boolean"
- },
- "hPath": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "nodeType": {
- "type": "string"
- },
- "number": {
- "type": "string"
- },
- "subType": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "updated": {
+ "bookmark": {
"type": "string"
}
},
"required": [
- "box",
- "count",
- "created",
- "depth",
- "folded",
- "hPath",
- "id",
- "name",
- "nodeType",
- "subType",
- "type",
- "updated"
+ "bookmark"
],
"additionalProperties": false
},
- "SearchSubTypes": {
+ "RemoveCriterionRequestInput": {
"type": "object",
"properties": {
- "heading": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "list": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "listItem": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
- },
- {
- "type": "null"
- }
- ]
+ "name": {
+ "type": "string"
}
},
"required": [
- "heading",
- "list",
- "listItem"
+ "name"
],
"additionalProperties": false
},
- "SearchSubTypesInput": {
+ "RemoveFileRequestInput": {
"type": "object",
"properties": {
- "heading": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "list": {
+ "app": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "listItem": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
- },
- {
- "type": "null"
- }
- ]
+ "path": {
+ "type": "string"
}
},
+ "required": [
+ "path"
+ ],
"additionalProperties": false
},
- "SearchTagData": {
+ "RemoveShorthandsRequestInput": {
"type": "object",
"properties": {
- "k": {
- "type": "string"
- },
- "tags": {
+ "ids": {
"type": "array",
"items": {
"type": "string"
@@ -6904,176 +6832,127 @@
}
},
"required": [
- "k",
- "tags"
+ "ids"
],
"additionalProperties": false
},
- "SearchTagRequestInput": {
+ "RemoveTagRequestInput": {
"type": "object",
"properties": {
- "k": {
+ "label": {
"type": "string"
}
},
"required": [
- "k"
+ "label"
],
"additionalProperties": false
},
- "SetBlockAttrsRequestInput": {
+ "RenameBookmarkRequestInput": {
"type": "object",
"properties": {
- "attrs": {
- "type": "object",
- "additionalProperties": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
+ "newBookmark": {
+ "type": "string"
},
- "id": {
+ "oldBookmark": {
"type": "string"
}
},
"required": [
- "attrs",
- "id"
+ "newBookmark",
+ "oldBookmark"
],
"additionalProperties": false
},
- "SetCriterionRequestInput": {
+ "RenameFileRequestInput": {
"type": "object",
"properties": {
- "criterion": {
- "anyOf": [
- {
- "$ref": "#/$defs/CriterionInput"
- },
- {
- "type": "null"
- }
- ]
+ "newPath": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
}
},
"required": [
- "criterion"
+ "newPath",
+ "path"
],
"additionalProperties": false
},
- "SetInlineStylesRequestInput": {
+ "RenameNotebookRequestInput": {
"type": "object",
"properties": {
- "app": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "name": {
+ "type": "string"
},
- "av": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleAVInput"
- },
- {
- "type": "null"
- }
- ]
+ "notebook": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "notebook"
+ ],
+ "additionalProperties": false
+ },
+ "RenameTagRequestInput": {
+ "type": "object",
+ "properties": {
+ "newLabel": {
+ "type": "string"
},
- "builtin": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleBuiltinInput"
- },
- {
- "type": "null"
- }
- ]
- },
- "order": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleOrderInput"
- },
- {
- "type": "null"
- }
- ]
- },
- "styles": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/InlineStyleInput"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "version": {
- "type": "number"
+ "oldLabel": {
+ "type": "string"
}
},
"required": [
- "styles",
- "version"
+ "newLabel",
+ "oldLabel"
],
"additionalProperties": false
},
- "SetNotebookConfRequestInput": {
+ "RenderSprigRequestInput": {
"type": "object",
"properties": {
- "conf": {
- "anyOf": [
- {
- "$ref": "#/$defs/NotebookConfPatchInput"
- },
- {
- "type": "null"
- }
- ]
- },
- "notebook": {
+ "template": {
"type": "string"
}
},
"required": [
- "notebook"
+ "template"
],
"additionalProperties": false
},
- "SetNotebookIconRequestInput": {
+ "RenderTemplateData": {
"type": "object",
"properties": {
- "icon": {
+ "content": {
"type": "string"
},
- "notebook": {
+ "docTreePlan": {
+ "$ref": "#/$defs/TemplatePlan"
+ },
+ "path": {
"type": "string"
}
},
"required": [
- "icon",
- "notebook"
+ "content",
+ "path"
],
"additionalProperties": false
},
- "SetPetalEnabledRequestInput": {
+ "RenderTemplateRequestInput": {
"type": "object",
"properties": {
- "app": {
+ "content": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "mode": {
"anyOf": [
{
"type": "string"
@@ -7083,144 +6962,135 @@
}
]
},
- "enabled": {
- "type": "boolean"
- },
- "packageName": {
+ "path": {
"type": "string"
+ },
+ "preview": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "enabled",
- "packageName"
+ "id",
+ "path"
],
"additionalProperties": false
},
- "SetPetalPublishEnabledRequestInput": {
+ "ReorderData": {
"type": "object",
"properties": {
- "enabled": {
+ "changed": {
"type": "boolean"
},
- "packageName": {
+ "notebook": {
+ "type": "string"
+ },
+ "parentPath": {
"type": "string"
}
},
"required": [
- "enabled",
- "packageName"
+ "changed"
],
"additionalProperties": false
},
- "SetSnapshotMemoRequestInput": {
+ "ReorderNotebooksRequestInput": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
+ "position": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "memo": {
- "type": "string"
+ "sourceIDs": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "targetID": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "id",
- "memo"
- ],
"additionalProperties": false
},
- "SetSnippetRequestInput": {
+ "ResetGraphData": {
"type": "object",
"properties": {
- "snippets": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/SnippetInput"
- }
+ "conf": {
+ "$ref": "#/$defs/GlobalGraphConf"
}
},
"required": [
- "snippets"
+ "conf"
],
"additionalProperties": false
},
- "Shorthand": {
+ "ResetLocalGraphData": {
"type": "object",
"properties": {
- "hCreated": {
- "type": "string"
- },
- "oId": {
- "type": "string"
- },
- "shorthandContent": {
- "type": "string"
- },
- "shorthandDesc": {
- "type": "string"
- },
- "shorthandFrom": {
- "type": "integer"
- },
- "shorthandMd": {
- "type": "string"
- },
- "shorthandTitle": {
- "type": "string"
- },
- "shorthandURL": {
- "type": "string"
+ "conf": {
+ "$ref": "#/$defs/LocalGraphConf"
}
},
"required": [
- "hCreated",
- "oId",
- "shorthandContent",
- "shorthandDesc",
- "shorthandFrom",
- "shorthandMd",
- "shorthandTitle",
- "shorthandURL"
+ "conf"
],
"additionalProperties": false
},
- "ShorthandPage": {
+ "RichClipboardAssetInput": {
"type": "object",
"properties": {
- "pagination": {
- "$ref": "#/$defs/ShorthandPagination"
+ "box": {
+ "type": "string"
},
- "shorthands": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/Shorthand"
- },
- {
- "type": "null"
- }
- ]
- }
+ "index": {
+ "type": "integer"
+ },
+ "path": {
+ "type": "string"
}
},
"required": [
- "pagination",
- "shorthands"
+ "index",
+ "path"
],
"additionalProperties": false
},
- "ShorthandPagination": {
+ "RichClipboardPrepared": {
"type": "object",
"properties": {
- "paginationPageCount": {
- "type": "integer"
- },
- "paginationPageNums": {
+ "assets": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "integer"
+ "$ref": "#/$defs/RichClipboardPreparedAsset"
}
},
{
@@ -7228,60 +7098,76 @@
}
]
},
- "paginationRecordCount": {
- "type": "integer"
+ "batch": {
+ "type": "string"
+ },
+ "groups": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "paginationPageCount",
- "paginationPageNums",
- "paginationRecordCount"
+ "assets",
+ "batch",
+ "groups"
],
"additionalProperties": false
},
- "ShorthandsData": {
+ "RichClipboardPreparedAsset": {
"type": "object",
"properties": {
- "code": {
+ "index": {
"type": "integer"
},
- "data": {
- "$ref": "#/$defs/ShorthandPage"
- },
- "msg": {
+ "path": {
"type": "string"
}
},
"required": [
- "code",
- "data",
- "msg"
+ "index",
+ "path"
],
"additionalProperties": false
},
- "ShorthandsRequestInput": {
+ "SQLQueryRequestInput": {
"type": "object",
"properties": {
- "page": {
- "type": "number"
+ "mode": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "stmt": {
+ "type": "string"
}
},
"required": [
- "page"
+ "stmt"
],
"additionalProperties": false
},
- "Snippet": {
+ "SaveTemplateRequestInput": {
"type": "object",
"properties": {
- "content": {
+ "databaseMode": {
"type": "string"
},
- "disabledInPublish": {
- "type": "boolean"
- },
- "enabled": {
- "type": "boolean"
+ "directory": {
+ "type": "string"
},
"id": {
"type": "string"
@@ -7289,247 +7175,236 @@
"name": {
"type": "string"
},
- "type": {
- "type": "string"
+ "overwrite": {
+ "type": "boolean"
}
},
"required": [
- "content",
- "disabledInPublish",
- "enabled",
"id",
"name",
- "type"
+ "overwrite"
],
"additionalProperties": false
},
- "SnippetInput": {
+ "SearchBlock": {
"type": "object",
"properties": {
- "content": {
+ "alias": {
"type": "string"
},
- "disabledInPublish": {
+ "box": {
+ "type": "string"
+ },
+ "children": {
"anyOf": [
{
- "type": "boolean"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "enabled": {
- "type": "boolean"
+ "content": {
+ "type": "string"
},
- "id": {
+ "count": {
+ "type": "integer"
+ },
+ "created": {
"type": "string"
},
- "name": {
+ "defID": {
"type": "string"
},
- "type": {
+ "defPath": {
"type": "string"
- }
- },
- "required": [
- "content",
- "enabled",
- "id",
- "name",
- "type"
- ],
- "additionalProperties": false
- },
- "SnippetsData": {
- "type": "object",
- "properties": {
- "snippets": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/Snippet"
- },
- {
- "type": "null"
- }
- ]
- }
- }
- },
- "required": [
- "snippets"
- ],
- "additionalProperties": false
- },
- "StorageKeyRequestInput": {
- "type": "object",
- "properties": {
- "key": {
+ },
+ "depth": {
+ "type": "integer"
+ },
+ "fcontent": {
"type": "string"
- }
- },
- "required": [
- "key"
- ],
- "additionalProperties": false
- },
- "StorageKeysRequestInput": {
- "type": "object",
- "properties": {
- "keys": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "keys"
- ],
- "additionalProperties": false
- },
- "StorageRemoveKeysRequestInput": {
- "type": "object",
- "properties": {
- "app": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
},
- "keys": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "keys"
- ],
- "additionalProperties": false
- },
- "StorageRemoveRequestInput": {
- "type": "object",
- "properties": {
- "app": {
+ "folded": {
+ "type": "boolean"
+ },
+ "hPath": {
+ "type": "string"
+ },
+ "ial": {
"anyOf": [
{
- "type": "string"
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
},
{
"type": "null"
}
]
},
- "key": {
+ "id": {
"type": "string"
- }
- },
- "required": [
- "key"
- ],
- "additionalProperties": false
- },
- "StorageSetKeysRequestInput": {
- "type": "object",
- "properties": {
- "app": {
+ },
+ "markdown": {
+ "type": "string"
+ },
+ "memo": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "number": {
+ "type": "string"
+ },
+ "parentID": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "refCount": {
+ "type": "integer"
+ },
+ "refText": {
+ "type": "string"
+ },
+ "refs": {
"anyOf": [
{
- "type": "string"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
}
]
},
- "keyVals": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/$defs/JSONValue"
- }
- }
- },
- "required": [
- "keyVals"
- ],
- "additionalProperties": false
- },
- "StorageSetRequestInput": {
- "type": "object",
- "properties": {
- "app": {
+ "riffCard": {
"anyOf": [
{
- "type": "string"
+ "$ref": "#/$defs/SearchBlockCard"
},
{
"type": "null"
}
]
},
- "key": {
+ "riffCardID": {
"type": "string"
},
- "val": {
- "anyOf": [
- {
- "$ref": "#/$defs/JSONValue"
- },
- {
- "type": "null"
- }
- ]
+ "rootID": {
+ "type": "string"
+ },
+ "sort": {
+ "type": "integer"
+ },
+ "subType": {
+ "type": "string"
+ },
+ "tag": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ },
+ "updated": {
+ "type": "string"
}
},
"required": [
- "key"
+ "alias",
+ "box",
+ "children",
+ "content",
+ "count",
+ "created",
+ "defID",
+ "defPath",
+ "depth",
+ "fcontent",
+ "folded",
+ "hPath",
+ "ial",
+ "id",
+ "markdown",
+ "memo",
+ "name",
+ "parentID",
+ "path",
+ "refCount",
+ "refText",
+ "refs",
+ "riffCard",
+ "riffCardID",
+ "rootID",
+ "sort",
+ "subType",
+ "tag",
+ "type",
+ "updated"
],
"additionalProperties": false
},
- "SwapBlockRefRequestInput": {
+ "SearchBlockCard": {
"type": "object",
"properties": {
- "defID": {
+ "due": {
"type": "string"
},
- "includeChildren": {
- "type": "boolean"
+ "lapses": {
+ "type": "integer"
},
- "refID": {
+ "lastReview": {
"type": "string"
+ },
+ "reps": {
+ "type": "integer"
+ },
+ "state": {
+ "type": "integer"
}
},
"required": [
- "defID",
- "includeChildren",
- "refID"
+ "due",
+ "lapses",
+ "lastReview",
+ "reps",
+ "state"
],
"additionalProperties": false
},
- "TagData": {
+ "SearchHistoryData": {
"type": "object",
"properties": {
- "children": {
+ "histories": {
"anyOf": [
{
"type": "array",
"items": {
- "anyOf": [
- {
- "$ref": "#/$defs/TagData"
- },
- {
- "type": "null"
- }
- ]
+ "type": "string"
}
},
{
@@ -7537,52 +7412,44 @@
}
]
},
- "count": {
+ "pageCount": {
"type": "integer"
},
- "depth": {
+ "totalCount": {
"type": "integer"
- },
- "label": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "type": {
- "type": "string"
}
},
"required": [
- "children",
- "count",
- "depth",
- "label",
- "name",
- "type"
+ "histories",
+ "pageCount",
+ "totalCount"
],
"additionalProperties": false
},
- "TailChildBlocksRequestInput": {
+ "SearchHistoryRequestInput": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
+ "notebook": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "ids": {
+ "op": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "type": "string"
},
{
"type": "null"
}
]
},
- "n": {
+ "page": {
"anyOf": [
{
"type": "number"
@@ -7592,7 +7459,7 @@
}
]
},
- "notebook": {
+ "query": {
"anyOf": [
{
"type": "string"
@@ -7601,155 +7468,264 @@
"type": "null"
}
]
+ },
+ "type": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
- "required": [
- "id"
- ],
"additionalProperties": false
},
- "TaskListMarkerRequestInput": {
+ "SearchPath": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
+ "blocks": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
- "marker": {
+ "box": {
"type": "string"
- }
- },
- "required": [
- "id",
- "marker"
- ],
- "additionalProperties": false
- },
- "TemplateDocumentInfo": {
- "type": "object",
- "properties": {
- "directory": {
+ },
+ "children": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchPath"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "count": {
+ "type": "integer"
+ },
+ "created": {
"type": "string"
},
- "hasDatabase": {
+ "depth": {
+ "type": "integer"
+ },
+ "folded": {
"type": "boolean"
},
- "name": {
+ "hPath": {
"type": "string"
- }
- },
- "required": [
- "directory",
- "hasDatabase",
- "name"
- ],
- "additionalProperties": false
- },
- "TemplateDocumentRequestInput": {
- "type": "object",
- "properties": {
+ },
"id": {
"type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "nodeType": {
+ "type": "string"
+ },
+ "number": {
+ "type": "string"
+ },
+ "subType": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ },
+ "updated": {
+ "type": "string"
}
},
"required": [
- "id"
+ "box",
+ "count",
+ "created",
+ "depth",
+ "folded",
+ "hPath",
+ "id",
+ "name",
+ "nodeType",
+ "subType",
+ "type",
+ "updated"
],
"additionalProperties": false
},
- "TemplateFileEntry": {
+ "SearchSubTypes": {
"type": "object",
"properties": {
- "isDir": {
- "type": "boolean"
+ "heading": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "isPackage": {
- "type": "boolean"
+ "list": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "path": {
- "type": "string"
+ "listItem": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"required": [
- "isDir",
- "path"
+ "heading",
+ "list",
+ "listItem"
],
"additionalProperties": false
},
- "TemplateFileRequestInput": {
+ "SearchSubTypesInput": {
"type": "object",
"properties": {
- "action": {
- "type": "string"
- },
- "content": {
- "type": "string"
- },
- "path": {
- "type": "string"
+ "heading": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "revision": {
- "type": "string"
+ "list": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "target": {
- "type": "string"
+ "listItem": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"additionalProperties": false
},
- "TemplateFileRevision": {
+ "SearchTagData": {
"type": "object",
"properties": {
- "revision": {
+ "k": {
"type": "string"
+ },
+ "tags": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
},
"required": [
- "revision"
+ "k",
+ "tags"
],
"additionalProperties": false
},
- "TemplateFileSource": {
+ "SearchTagRequestInput": {
"type": "object",
"properties": {
- "content": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "revision": {
+ "k": {
"type": "string"
}
},
"required": [
- "content",
- "revision"
+ "k"
],
"additionalProperties": false
},
- "TemplatePlan": {
+ "SetBlockAttrsRequestInput": {
"type": "object",
"properties": {
- "count": {
- "type": "integer"
+ "attrs": {
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
"id": {
"type": "string"
- },
- "nodes": {
+ }
+ },
+ "required": [
+ "attrs",
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "SetCriterionRequestInput": {
+ "type": "object",
+ "properties": {
+ "criterion": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/TemplatePlanNode"
- },
- {
- "type": "null"
- }
- ]
- }
+ "$ref": "#/$defs/CriterionInput"
},
{
"type": "null"
@@ -7758,155 +7734,134 @@
}
},
"required": [
- "count",
- "id",
- "nodes"
+ "criterion"
],
"additionalProperties": false
},
- "TemplatePlanNode": {
+ "SetGraphConfRequestInput": {
"type": "object",
"properties": {
- "depth": {
- "type": "integer"
- },
- "hPath": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "parentID": {
- "type": "string"
+ "conf": {
+ "$ref": "#/$defs/GraphConfigurationFieldsInput"
},
- "title": {
+ "type": {
"type": "string"
}
},
"required": [
- "depth",
- "hPath",
- "id",
- "parentID",
- "title"
+ "conf",
+ "type"
],
"additionalProperties": false
},
- "TransferBlockRefRequestInput": {
+ "SetInlineStylesRequestInput": {
"type": "object",
"properties": {
- "fromID": {
- "type": "string"
+ "app": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
- "refIDs": {
+ "av": {
"anyOf": [
{
- "type": "array",
- "items": {
- "type": "string"
- }
+ "$ref": "#/$defs/InlineStyleAVInput"
},
{
"type": "null"
}
]
},
- "reloadUI": {
+ "builtin": {
"anyOf": [
{
- "type": "boolean"
+ "$ref": "#/$defs/InlineStyleBuiltinInput"
},
{
"type": "null"
}
]
},
- "toID": {
- "type": "string"
+ "order": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleOrderInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "styles": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "version": {
+ "type": "number"
}
},
"required": [
- "fromID",
- "toID"
+ "styles",
+ "version"
],
"additionalProperties": false
},
- "TreeStatData": {
+ "SetNotebookConfRequestInput": {
"type": "object",
"properties": {
- "containsEmbed": {
- "type": "boolean"
- },
- "embedStat": {
+ "conf": {
"anyOf": [
{
- "$ref": "#/$defs/EmbedStat"
+ "$ref": "#/$defs/NotebookConfPatchInput"
},
{
"type": "null"
}
]
},
- "reqId": {
- "$ref": "#/$defs/JSONValue"
- },
- "stat": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockStat"
- },
- {
- "type": "null"
- }
- ]
- },
- "statWithEmbed": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockStat"
- },
- {
- "type": "null"
- }
- ]
+ "notebook": {
+ "type": "string"
}
},
"required": [
- "reqId",
- "stat"
+ "notebook"
],
"additionalProperties": false
},
- "TreeStatRequestInput": {
+ "SetNotebookIconRequestInput": {
"type": "object",
"properties": {
- "id": {
+ "icon": {
"type": "string"
},
- "ids": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
- },
- "includeEmbed": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
"notebook": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "icon",
+ "notebook"
+ ],
+ "additionalProperties": false
+ },
+ "SetPetalEnabledRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
"anyOf": [
{
"type": "string"
@@ -7916,157 +7871,144 @@
}
]
},
- "reqId": {
- "anyOf": [
- {
- "$ref": "#/$defs/JSONValue"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id"
- ],
- "additionalProperties": false
- },
- "TrimmedIDRequestInput": {
- "type": "object",
- "properties": {
- "id": {
+ "enabled": {
+ "type": "boolean"
+ },
+ "packageName": {
"type": "string"
}
},
"required": [
- "id"
+ "enabled",
+ "packageName"
],
"additionalProperties": false
},
- "UnfoldedParentData": {
+ "SetPetalPublishEnabledRequestInput": {
"type": "object",
"properties": {
- "parentID": {
+ "enabled": {
+ "type": "boolean"
+ },
+ "packageName": {
"type": "string"
}
},
"required": [
- "parentID"
+ "enabled",
+ "packageName"
],
"additionalProperties": false
},
- "UnlockNotebookRequestInput": {
+ "SetSnapshotMemoRequestInput": {
"type": "object",
"properties": {
- "notebook": {
+ "id": {
"type": "string"
},
- "password": {
+ "memo": {
"type": "string"
}
},
"required": [
- "notebook",
- "password"
+ "id",
+ "memo"
],
"additionalProperties": false
},
- "UnzipRequestInput": {
+ "SetSnippetRequestInput": {
"type": "object",
"properties": {
- "path": {
- "type": "string"
- },
- "zipPath": {
- "type": "string"
+ "snippets": {
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/SnippetInput"
+ }
}
},
"required": [
- "path",
- "zipPath"
+ "snippets"
],
"additionalProperties": false
},
- "UpdateBlockRequestInput": {
+ "Shorthand": {
"type": "object",
"properties": {
- "data": {
+ "hCreated": {
"type": "string"
},
- "dataType": {
+ "oId": {
"type": "string"
},
- "id": {
+ "shorthandContent": {
"type": "string"
},
- "lockType": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "data",
- "dataType",
- "id"
- ],
- "additionalProperties": false
- },
- "UpdateChannelRequestInput": {
- "type": "object",
- "properties": {
- "updateChannel": {
+ "shorthandDesc": {
+ "type": "string"
+ },
+ "shorthandFrom": {
+ "type": "integer"
+ },
+ "shorthandMd": {
+ "type": "string"
+ },
+ "shorthandTitle": {
+ "type": "string"
+ },
+ "shorthandURL": {
"type": "string"
}
},
"required": [
- "updateChannel"
+ "hCreated",
+ "oId",
+ "shorthandContent",
+ "shorthandDesc",
+ "shorthandFrom",
+ "shorthandMd",
+ "shorthandTitle",
+ "shorthandURL"
],
"additionalProperties": false
},
- "UpdatePinnedDocsRequestInput": {
+ "ShorthandPage": {
"type": "object",
"properties": {
- "action": {
- "type": "string"
- },
- "after": {
- "type": "boolean"
+ "pagination": {
+ "$ref": "#/$defs/ShorthandPagination"
},
- "ids": {
+ "shorthands": {
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/Shorthand"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
- },
- "targetID": {
- "type": "string"
}
},
"required": [
- "action",
- "ids"
+ "pagination",
+ "shorthands"
],
"additionalProperties": false
},
- "ViewStatePatchRequestInput": {
+ "ShorthandPagination": {
"type": "object",
"properties": {
- "key": {
- "type": "string"
+ "paginationPageCount": {
+ "type": "integer"
},
- "removeKeys": {
+ "paginationPageNums": {
"anyOf": [
{
"type": "array",
"items": {
- "type": "string"
+ "type": "integer"
}
},
{
@@ -8074,145 +8016,260 @@
}
]
},
- "values": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/$defs/JSONValue"
- }
+ "paginationRecordCount": {
+ "type": "integer"
}
},
"required": [
- "key"
+ "paginationPageCount",
+ "paginationPageNums",
+ "paginationRecordCount"
],
"additionalProperties": false
},
- "VirtualBlockRefRequestInput": {
+ "ShorthandsData": {
"type": "object",
"properties": {
- "keywords": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "code": {
+ "type": "integer"
+ },
+ "data": {
+ "$ref": "#/$defs/ShorthandPage"
+ },
+ "msg": {
+ "type": "string"
}
},
"required": [
- "keywords"
+ "code",
+ "data",
+ "msg"
],
"additionalProperties": false
},
- "WPSPresentationData": {
+ "ShorthandsRequestInput": {
"type": "object",
"properties": {
- "converted": {
- "type": "boolean"
- },
- "dom": {
- "type": "string"
+ "page": {
+ "type": "number"
}
},
"required": [
- "converted",
- "dom"
+ "page"
],
"additionalProperties": false
},
- "WPSPresentationRequestInput": {
+ "Snippet": {
"type": "object",
"properties": {
- "data": {
+ "content": {
"type": "string"
},
- "text": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "disabledInPublish": {
+ "type": "boolean"
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
},
"type": {
"type": "string"
}
},
"required": [
- "data",
+ "content",
+ "disabledInPublish",
+ "enabled",
+ "id",
+ "name",
"type"
],
"additionalProperties": false
},
- "WordCountData": {
+ "SnippetInput": {
"type": "object",
"properties": {
- "reqId": {
- "$ref": "#/$defs/JSONValue"
+ "content": {
+ "type": "string"
},
- "stat": {
+ "disabledInPublish": {
"anyOf": [
{
- "$ref": "#/$defs/BlockStat"
+ "type": "boolean"
},
{
"type": "null"
}
]
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
}
},
"required": [
- "reqId",
- "stat"
+ "content",
+ "enabled",
+ "id",
+ "name",
+ "type"
],
"additionalProperties": false
},
- "WorkspaceAVBuiltinColorUpdateInput": {
+ "SnippetsData": {
"type": "object",
"properties": {
- "customized": {
+ "snippets": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/Snippet"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ }
+ },
+ "required": [
+ "snippets"
+ ],
+ "additionalProperties": false
+ },
+ "StorageKeyRequestInput": {
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "key"
+ ],
+ "additionalProperties": false
+ },
+ "StorageKeysRequestInput": {
+ "type": "object",
+ "properties": {
+ "keys": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "keys"
+ ],
+ "additionalProperties": false
+ },
+ "StorageRemoveKeysRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "dark": {
+ "keys": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "keys"
+ ],
+ "additionalProperties": false
+ },
+ "StorageRemoveRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleThemeInput"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "hidden": {
+ "key": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "key"
+ ],
+ "additionalProperties": false
+ },
+ "StorageSetKeysRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
"anyOf": [
{
- "type": "boolean"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "index": {
+ "keyVals": {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ }
+ },
+ "required": [
+ "keyVals"
+ ],
+ "additionalProperties": false
+ },
+ "StorageSetRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
"anyOf": [
{
- "type": "integer"
+ "type": "string"
},
{
"type": "null"
}
]
},
- "light": {
+ "key": {
+ "type": "string"
+ },
+ "val": {
"anyOf": [
{
- "$ref": "#/$defs/InlineStyleThemeInput"
+ "$ref": "#/$defs/JSONValue"
},
{
"type": "null"
@@ -8220,29 +8277,42 @@
]
}
},
+ "required": [
+ "key"
+ ],
"additionalProperties": false
},
- "WorkspaceAVPaletteRequestInput": {
+ "SwapBlockRefRequestInput": {
"type": "object",
"properties": {
- "app": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
+ "defID": {
+ "type": "string"
},
- "builtinColors": {
+ "includeChildren": {
+ "type": "boolean"
+ },
+ "refID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "defID",
+ "includeChildren",
+ "refID"
+ ],
+ "additionalProperties": false
+ },
+ "TagData": {
+ "type": "object",
+ "properties": {
+ "children": {
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
- "$ref": "#/$defs/WorkspaceAVBuiltinColorUpdateInput"
+ "$ref": "#/$defs/TagData"
},
{
"type": "null"
@@ -8255,70 +8325,1186 @@
}
]
},
- "colors": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/AttributeViewCustomColorInput"
- },
- {
- "type": "null"
- }
- ]
- }
+ "count": {
+ "type": "integer"
},
- "order": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "depth": {
+ "type": "integer"
+ },
+ "label": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
}
},
"required": [
- "colors",
- "order"
+ "children",
+ "count",
+ "depth",
+ "label",
+ "name",
+ "type"
],
"additionalProperties": false
},
- "WorkspaceInfoData": {
+ "TailChildBlocksRequestInput": {
"type": "object",
"properties": {
- "siyuanVer": {
+ "id": {
"type": "string"
},
- "workspaceDir": {
+ "ids": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "n": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "notebook": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "TaskListMarkerRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "marker": {
"type": "string"
}
},
"required": [
- "siyuanVer",
- "workspaceDir"
+ "id",
+ "marker"
],
"additionalProperties": false
},
- "ZipRequestInput": {
+ "TemplateDocumentInfo": {
+ "type": "object",
+ "properties": {
+ "directory": {
+ "type": "string"
+ },
+ "hasDatabase": {
+ "type": "boolean"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "directory",
+ "hasDatabase",
+ "name"
+ ],
+ "additionalProperties": false
+ },
+ "TemplateDocumentRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "TemplateFileEntry": {
+ "type": "object",
+ "properties": {
+ "isDir": {
+ "type": "boolean"
+ },
+ "isPackage": {
+ "type": "boolean"
+ },
+ "path": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "isDir",
+ "path"
+ ],
+ "additionalProperties": false
+ },
+ "TemplateFileRequestInput": {
"type": "object",
"properties": {
+ "action": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
"path": {
"type": "string"
},
- "zipPath": {
+ "revision": {
+ "type": "string"
+ },
+ "target": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "TemplateFileRevision": {
+ "type": "object",
+ "properties": {
+ "revision": {
"type": "string"
}
},
"required": [
- "path",
- "zipPath"
+ "revision"
],
"additionalProperties": false
- }
- },
- "endpoints": [
+ },
+ "TemplateFileSource": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ },
+ "revision": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "content",
+ "revision"
+ ],
+ "additionalProperties": false
+ },
+ "TemplatePlan": {
+ "type": "object",
+ "properties": {
+ "count": {
+ "type": "integer"
+ },
+ "id": {
+ "type": "string"
+ },
+ "nodes": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/TemplatePlanNode"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "count",
+ "id",
+ "nodes"
+ ],
+ "additionalProperties": false
+ },
+ "TemplatePlanNode": {
+ "type": "object",
+ "properties": {
+ "depth": {
+ "type": "integer"
+ },
+ "hPath": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "parentID": {
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "depth",
+ "hPath",
+ "id",
+ "parentID",
+ "title"
+ ],
+ "additionalProperties": false
+ },
+ "TransferBlockRefRequestInput": {
+ "type": "object",
+ "properties": {
+ "fromID": {
+ "type": "string"
+ },
+ "refIDs": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "reloadUI": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "toID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "fromID",
+ "toID"
+ ],
+ "additionalProperties": false
+ },
+ "TreeStatData": {
+ "type": "object",
+ "properties": {
+ "containsEmbed": {
+ "type": "boolean"
+ },
+ "embedStat": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/EmbedStat"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "reqId": {
+ "$ref": "#/$defs/JSONValue"
+ },
+ "stat": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockStat"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "statWithEmbed": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockStat"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "reqId",
+ "stat"
+ ],
+ "additionalProperties": false
+ },
+ "TreeStatRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "ids": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "includeEmbed": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "notebook": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "reqId": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/JSONValue"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "TrimmedIDRequestInput": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "UnfoldedParentData": {
+ "type": "object",
+ "properties": {
+ "parentID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "parentID"
+ ],
+ "additionalProperties": false
+ },
+ "UnlockNotebookRequestInput": {
+ "type": "object",
+ "properties": {
+ "notebook": {
+ "type": "string"
+ },
+ "password": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "notebook",
+ "password"
+ ],
+ "additionalProperties": false
+ },
+ "UnzipRequestInput": {
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string"
+ },
+ "zipPath": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "path",
+ "zipPath"
+ ],
+ "additionalProperties": false
+ },
+ "UpdateBlockRequestInput": {
+ "type": "object",
+ "properties": {
+ "data": {
+ "type": "string"
+ },
+ "dataType": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "lockType": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "data",
+ "dataType",
+ "id"
+ ],
+ "additionalProperties": false
+ },
+ "UpdateChannelRequestInput": {
+ "type": "object",
+ "properties": {
+ "updateChannel": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "updateChannel"
+ ],
+ "additionalProperties": false
+ },
+ "UpdatePinnedDocsRequestInput": {
+ "type": "object",
+ "properties": {
+ "action": {
+ "type": "string"
+ },
+ "after": {
+ "type": "boolean"
+ },
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "targetID": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "action",
+ "ids"
+ ],
+ "additionalProperties": false
+ },
+ "ViewStatePatchRequestInput": {
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "removeKeys": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "values": {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/JSONValue"
+ }
+ }
+ },
+ "required": [
+ "key"
+ ],
+ "additionalProperties": false
+ },
+ "VirtualBlockRefRequestInput": {
+ "type": "object",
+ "properties": {
+ "keywords": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "keywords"
+ ],
+ "additionalProperties": false
+ },
+ "WPSPresentationData": {
+ "type": "object",
+ "properties": {
+ "converted": {
+ "type": "boolean"
+ },
+ "dom": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "converted",
+ "dom"
+ ],
+ "additionalProperties": false
+ },
+ "WPSPresentationRequestInput": {
+ "type": "object",
+ "properties": {
+ "data": {
+ "type": "string"
+ },
+ "text": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "data",
+ "type"
+ ],
+ "additionalProperties": false
+ },
+ "WordCountData": {
+ "type": "object",
+ "properties": {
+ "reqId": {
+ "$ref": "#/$defs/JSONValue"
+ },
+ "stat": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockStat"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "reqId",
+ "stat"
+ ],
+ "additionalProperties": false
+ },
+ "WorkspaceAVBuiltinColorUpdateInput": {
+ "type": "object",
+ "properties": {
+ "customized": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "dark": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleThemeInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "hidden": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "index": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "light": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/InlineStyleThemeInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "WorkspaceAVPaletteRequestInput": {
+ "type": "object",
+ "properties": {
+ "app": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "builtinColors": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/WorkspaceAVBuiltinColorUpdateInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "colors": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AttributeViewCustomColorInput"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "order": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "colors",
+ "order"
+ ],
+ "additionalProperties": false
+ },
+ "WorkspaceInfoData": {
+ "type": "object",
+ "properties": {
+ "siyuanVer": {
+ "type": "string"
+ },
+ "workspaceDir": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "siyuanVer",
+ "workspaceDir"
+ ],
+ "additionalProperties": false
+ },
+ "ZipRequestInput": {
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string"
+ },
+ "zipPath": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "path",
+ "zipPath"
+ ],
+ "additionalProperties": false
+ }
+ },
+ "endpoints": [
+ {
+ "method": "GET",
+ "path": "/api/system/bootProgress",
+ "handler": "bootProgress",
+ "body": "none",
+ "request": {
+ "$ref": "#/$defs/EmptyRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "$ref": "#/$defs/BootProgressData"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ -1
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "closeTimeout": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "closeTimeout"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
+ }
+ ]
+ }
+ },
+ {
+ "method": "GET",
+ "path": "/api/system/version",
+ "handler": "version",
+ "body": "none",
+ "request": {
+ "$ref": "#/$defs/EmptyRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "type": "string"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ -1
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "closeTimeout": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "closeTimeout"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
+ }
+ ]
+ }
+ },
+ {
+ "method": "POST",
+ "path": "/api/account/checkActivationcode",
+ "handler": "checkActivationcode",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/CheckActivationCodeRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "type": "null"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ -1,
+ 1
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "closeTimeout": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "closeTimeout"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "null"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
+ }
+ ]
+ }
+ },
+ {
+ "method": "POST",
+ "path": "/api/account/deactivate",
+ "handler": "deactivateUser",
+ "body": "none",
+ "request": {
+ "$ref": "#/$defs/EmptyRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "type": "null"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ -1
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "closeTimeout": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "closeTimeout"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
+ }
+ ]
+ }
+ },
+ {
+ "method": "POST",
+ "path": "/api/account/login",
+ "handler": "login",
+ "body": "json",
+ "request": {
+ "$ref": "#/$defs/AccountLoginRequestInput"
+ },
+ "response": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AccountLoginData"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ -1,
+ 1,
+ 10
+ ]
+ },
+ "data": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "closeTimeout": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "closeTimeout"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "null"
+ },
+ {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/AccountLoginData"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ ]
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": true
+ }
+ ]
+ }
+ },
{
- "method": "GET",
- "path": "/api/system/bootProgress",
- "handler": "bootProgress",
+ "method": "POST",
+ "path": "/api/account/startFreeTrial",
+ "handler": "startFreeTrial",
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -8335,7 +9521,7 @@
]
},
"data": {
- "$ref": "#/$defs/BootProgressData"
+ "type": "null"
},
"msg": {
"type": "string"
@@ -8391,12 +9577,12 @@
}
},
{
- "method": "GET",
- "path": "/api/system/version",
- "handler": "version",
- "body": "none",
+ "method": "POST",
+ "path": "/api/account/useActivationcode",
+ "handler": "useActivationcode",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/ActivationCodeRequestInput"
},
"response": {
"anyOf": [
@@ -8410,7 +9596,7 @@
]
},
"data": {
- "type": "string"
+ "type": "null"
},
"msg": {
"type": "string"
@@ -8467,11 +9653,11 @@
},
{
"method": "POST",
- "path": "/api/account/checkActivationcode",
- "handler": "checkActivationcode",
+ "path": "/api/archive/unzip",
+ "handler": "unzip",
"body": "json",
"request": {
- "$ref": "#/$defs/CheckActivationCodeRequestInput"
+ "$ref": "#/$defs/UnzipRequestInput"
},
"response": {
"anyOf": [
@@ -8504,8 +9690,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -8522,9 +9707,6 @@
],
"additionalProperties": false
},
- {
- "type": "null"
- },
{
"type": "null"
}
@@ -8546,11 +9728,11 @@
},
{
"method": "POST",
- "path": "/api/account/deactivate",
- "handler": "deactivateUser",
- "body": "none",
+ "path": "/api/archive/zip",
+ "handler": "zip",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/ZipRequestInput"
},
"response": {
"anyOf": [
@@ -8621,11 +9803,11 @@
},
{
"method": "POST",
- "path": "/api/account/login",
- "handler": "login",
+ "path": "/api/attr/batchGetBlockAttrs",
+ "handler": "batchGetBlockAttrs",
"body": "json",
"request": {
- "$ref": "#/$defs/AccountLoginRequestInput"
+ "$ref": "#/$defs/BlockIDsRequestInput"
},
"response": {
"anyOf": [
@@ -8639,14 +9821,20 @@
]
},
"data": {
- "anyOf": [
- {
- "$ref": "#/$defs/AccountLoginData"
- },
- {
- "type": "null"
- }
- ]
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
"msg": {
"type": "string"
@@ -8665,9 +9853,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1,
- 10
+ -1
]
},
"data": {
@@ -8686,16 +9872,6 @@
},
{
"type": "null"
- },
- {
- "anyOf": [
- {
- "$ref": "#/$defs/AccountLoginData"
- },
- {
- "type": "null"
- }
- ]
}
]
},
@@ -8715,11 +9891,11 @@
},
{
"method": "POST",
- "path": "/api/account/startFreeTrial",
- "handler": "startFreeTrial",
- "body": "none",
+ "path": "/api/attr/batchSetBlockAttrs",
+ "handler": "batchSetBlockAttrs",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/BatchSetBlockAttrsRequestInput"
},
"response": {
"anyOf": [
@@ -8790,11 +9966,11 @@
},
{
"method": "POST",
- "path": "/api/account/useActivationcode",
- "handler": "useActivationcode",
+ "path": "/api/attr/getBlockAttrs",
+ "handler": "getBlockAttrs",
"body": "json",
"request": {
- "$ref": "#/$defs/ActivationCodeRequestInput"
+ "$ref": "#/$defs/BlockIDRequestInput"
},
"response": {
"anyOf": [
@@ -8808,7 +9984,10 @@
]
},
"data": {
- "type": "null"
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
},
"msg": {
"type": "string"
@@ -8865,11 +10044,11 @@
},
{
"method": "POST",
- "path": "/api/archive/unzip",
- "handler": "unzip",
- "body": "json",
+ "path": "/api/attr/getBookmarkLabels",
+ "handler": "getBookmarkLabels",
+ "body": "none",
"request": {
- "$ref": "#/$defs/UnzipRequestInput"
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -8883,7 +10062,17 @@
]
},
"data": {
- "type": "null"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -8940,11 +10129,11 @@
},
{
"method": "POST",
- "path": "/api/archive/zip",
- "handler": "zip",
- "body": "json",
+ "path": "/api/attr/resetBlockAttrs",
+ "handler": "resetBlockAttrs",
+ "body": "none",
"request": {
- "$ref": "#/$defs/ZipRequestInput"
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -9015,11 +10204,11 @@
},
{
"method": "POST",
- "path": "/api/attr/batchGetBlockAttrs",
- "handler": "batchGetBlockAttrs",
+ "path": "/api/attr/setBlockAttrs",
+ "handler": "setBlockAttrs",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockIDsRequestInput"
+ "$ref": "#/$defs/SetBlockAttrsRequestInput"
},
"response": {
"anyOf": [
@@ -9033,20 +10222,7 @@
]
},
"data": {
- "type": "object",
- "additionalProperties": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
- }
+ "type": "null"
},
"msg": {
"type": "string"
@@ -9103,11 +10279,11 @@
},
{
"method": "POST",
- "path": "/api/attr/batchSetBlockAttrs",
- "handler": "batchSetBlockAttrs",
- "body": "json",
+ "path": "/api/av/searchAttributeViewNonRelationKey",
+ "handler": "searchAttributeViewNonRelationKey",
+ "body": "none",
"request": {
- "$ref": "#/$defs/BatchSetBlockAttrsRequestInput"
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -9178,11 +10354,11 @@
},
{
"method": "POST",
- "path": "/api/attr/getBlockAttrs",
- "handler": "getBlockAttrs",
+ "path": "/api/block/appendBlock",
+ "handler": "appendBlock",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockIDRequestInput"
+ "$ref": "#/$defs/AppendBlockRequestInput"
},
"response": {
"anyOf": [
@@ -9196,10 +10372,24 @@
]
},
"data": {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockTransaction"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -9256,11 +10446,11 @@
},
{
"method": "POST",
- "path": "/api/attr/getBookmarkLabels",
- "handler": "getBookmarkLabels",
- "body": "none",
+ "path": "/api/block/appendDailyNoteBlock",
+ "handler": "appendDailyNoteBlock",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/DailyNoteBlockRequestInput"
},
"response": {
"anyOf": [
@@ -9278,7 +10468,14 @@
{
"type": "array",
"items": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockTransaction"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
{
@@ -9341,11 +10538,11 @@
},
{
"method": "POST",
- "path": "/api/attr/resetBlockAttrs",
- "handler": "resetBlockAttrs",
- "body": "none",
+ "path": "/api/block/appendHeadingChildren",
+ "handler": "appendHeadingChildren",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/AppendHeadingChildrenRequestInput"
},
"response": {
"anyOf": [
@@ -9416,11 +10613,11 @@
},
{
"method": "POST",
- "path": "/api/attr/setBlockAttrs",
- "handler": "setBlockAttrs",
+ "path": "/api/block/batchAppendBlock",
+ "handler": "batchAppendBlock",
"body": "json",
"request": {
- "$ref": "#/$defs/SetBlockAttrsRequestInput"
+ "$ref": "#/$defs/BatchParentBlockRequestInput"
},
"response": {
"anyOf": [
@@ -9434,7 +10631,24 @@
]
},
"data": {
- "type": "null"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockTransaction"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -9491,11 +10705,11 @@
},
{
"method": "POST",
- "path": "/api/av/searchAttributeViewNonRelationKey",
- "handler": "searchAttributeViewNonRelationKey",
- "body": "none",
+ "path": "/api/block/batchInsertBlock",
+ "handler": "batchInsertBlock",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/BatchInsertBlockRequestInput"
},
"response": {
"anyOf": [
@@ -9509,7 +10723,24 @@
]
},
"data": {
- "type": "null"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockTransaction"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -9566,11 +10797,11 @@
},
{
"method": "POST",
- "path": "/api/block/appendBlock",
- "handler": "appendBlock",
+ "path": "/api/block/batchPrependBlock",
+ "handler": "batchPrependBlock",
"body": "json",
"request": {
- "$ref": "#/$defs/AppendBlockRequestInput"
+ "$ref": "#/$defs/BatchParentBlockRequestInput"
},
"response": {
"anyOf": [
@@ -9658,11 +10889,11 @@
},
{
"method": "POST",
- "path": "/api/block/appendDailyNoteBlock",
- "handler": "appendDailyNoteBlock",
+ "path": "/api/block/batchUpdateBlock",
+ "handler": "batchUpdateBlock",
"body": "json",
"request": {
- "$ref": "#/$defs/DailyNoteBlockRequestInput"
+ "$ref": "#/$defs/BatchUpdateBlockRequestInput"
},
"response": {
"anyOf": [
@@ -9750,11 +10981,11 @@
},
{
"method": "POST",
- "path": "/api/block/appendHeadingChildren",
- "handler": "appendHeadingChildren",
+ "path": "/api/block/batchUpdateTaskListItemMarker",
+ "handler": "batchUpdateTaskListItemMarker",
"body": "json",
"request": {
- "$ref": "#/$defs/AppendHeadingChildrenRequestInput"
+ "$ref": "#/$defs/BatchTaskListMarkerRequestInput"
},
"response": {
"anyOf": [
@@ -9768,7 +10999,24 @@
]
},
"data": {
- "type": "null"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockTransaction"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -9825,11 +11073,11 @@
},
{
"method": "POST",
- "path": "/api/block/batchAppendBlock",
- "handler": "batchAppendBlock",
+ "path": "/api/block/checkBlockExist",
+ "handler": "checkBlockExist",
"body": "json",
"request": {
- "$ref": "#/$defs/BatchParentBlockRequestInput"
+ "$ref": "#/$defs/BlockQueryRequestInput"
},
"response": {
"anyOf": [
@@ -9843,24 +11091,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "type": "boolean"
},
"msg": {
"type": "string"
@@ -9917,11 +11148,11 @@
},
{
"method": "POST",
- "path": "/api/block/batchInsertBlock",
- "handler": "batchInsertBlock",
+ "path": "/api/block/checkBlockFold",
+ "handler": "checkBlockFold",
"body": "json",
"request": {
- "$ref": "#/$defs/BatchInsertBlockRequestInput"
+ "$ref": "#/$defs/BlockQueryRequestInput"
},
"response": {
"anyOf": [
@@ -9935,24 +11166,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/BlockFoldData"
},
"msg": {
"type": "string"
@@ -10009,11 +11223,11 @@
},
{
"method": "POST",
- "path": "/api/block/batchPrependBlock",
- "handler": "batchPrependBlock",
+ "path": "/api/block/checkBlockRef",
+ "handler": "checkBlockRef",
"body": "json",
"request": {
- "$ref": "#/$defs/BatchParentBlockRequestInput"
+ "$ref": "#/$defs/CheckBlockRefRequestInput"
},
"response": {
"anyOf": [
@@ -10027,24 +11241,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "type": "boolean"
},
"msg": {
"type": "string"
@@ -10082,6 +11279,9 @@
},
{
"type": "null"
+ },
+ {
+ "type": "boolean"
}
]
},
@@ -10101,11 +11301,11 @@
},
{
"method": "POST",
- "path": "/api/block/batchUpdateBlock",
- "handler": "batchUpdateBlock",
+ "path": "/api/block/checkBlocksExist",
+ "handler": "checkBlocksExist",
"body": "json",
"request": {
- "$ref": "#/$defs/BatchUpdateBlockRequestInput"
+ "$ref": "#/$defs/CheckBlocksExistRequestInput"
},
"response": {
"anyOf": [
@@ -10121,16 +11321,9 @@
"data": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
}
},
{
@@ -10193,11 +11386,11 @@
},
{
"method": "POST",
- "path": "/api/block/batchUpdateTaskListItemMarker",
- "handler": "batchUpdateTaskListItemMarker",
+ "path": "/api/block/deleteBlock",
+ "handler": "deleteBlock",
"body": "json",
"request": {
- "$ref": "#/$defs/BatchTaskListMarkerRequestInput"
+ "$ref": "#/$defs/DeleteBlockRequestInput"
},
"response": {
"anyOf": [
@@ -10285,11 +11478,11 @@
},
{
"method": "POST",
- "path": "/api/block/checkBlockExist",
- "handler": "checkBlockExist",
+ "path": "/api/block/foldBlock",
+ "handler": "foldBlock",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockQueryRequestInput"
+ "$ref": "#/$defs/BlockIDRequestInput"
},
"response": {
"anyOf": [
@@ -10303,7 +11496,7 @@
]
},
"data": {
- "type": "boolean"
+ "type": "null"
},
"msg": {
"type": "string"
@@ -10360,11 +11553,11 @@
},
{
"method": "POST",
- "path": "/api/block/checkBlockFold",
- "handler": "checkBlockFold",
+ "path": "/api/block/getBlockBreadcrumb",
+ "handler": "getBlockBreadcrumb",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockQueryRequestInput"
+ "$ref": "#/$defs/BlockBreadcrumbRequestInput"
},
"response": {
"anyOf": [
@@ -10378,7 +11571,24 @@
]
},
"data": {
- "$ref": "#/$defs/BlockFoldData"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockPath"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -10435,11 +11645,11 @@
},
{
"method": "POST",
- "path": "/api/block/checkBlockRef",
- "handler": "checkBlockRef",
+ "path": "/api/block/getBlockBreadcrumbChildren",
+ "handler": "getBlockBreadcrumbChildren",
"body": "json",
"request": {
- "$ref": "#/$defs/CheckBlockRefRequestInput"
+ "$ref": "#/$defs/BlockBreadcrumbChildrenRequestInput"
},
"response": {
"anyOf": [
@@ -10453,7 +11663,14 @@
]
},
"data": {
- "type": "boolean"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockBreadcrumbChildren"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -10491,9 +11708,6 @@
},
{
"type": "null"
- },
- {
- "type": "boolean"
}
]
},
@@ -10513,11 +11727,11 @@
},
{
"method": "POST",
- "path": "/api/block/checkBlocksExist",
- "handler": "checkBlocksExist",
+ "path": "/api/block/getBlockDOM",
+ "handler": "getBlockDOM",
"body": "json",
"request": {
- "$ref": "#/$defs/CheckBlocksExistRequestInput"
+ "$ref": "#/$defs/BlockQueryRequestInput"
},
"response": {
"anyOf": [
@@ -10531,17 +11745,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "boolean"
- }
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/BlockDOMData"
},
"msg": {
"type": "string"
@@ -10598,11 +11802,11 @@
},
{
"method": "POST",
- "path": "/api/block/deleteBlock",
- "handler": "deleteBlock",
+ "path": "/api/block/getBlockDOMWithEmbed",
+ "handler": "getBlockDOMWithEmbed",
"body": "json",
"request": {
- "$ref": "#/$defs/DeleteBlockRequestInput"
+ "$ref": "#/$defs/BlockQueryRequestInput"
},
"response": {
"anyOf": [
@@ -10612,29 +11816,12 @@
"code": {
"type": "integer",
"enum": [
- 0
- ]
- },
- "data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
+ 0
]
},
+ "data": {
+ "$ref": "#/$defs/BlockDOMData"
+ },
"msg": {
"type": "string"
}
@@ -10690,11 +11877,11 @@
},
{
"method": "POST",
- "path": "/api/block/foldBlock",
- "handler": "foldBlock",
+ "path": "/api/block/getBlockDOMs",
+ "handler": "getBlockDOMs",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockIDRequestInput"
+ "$ref": "#/$defs/BlocksQueryRequestInput"
},
"response": {
"anyOf": [
@@ -10708,7 +11895,17 @@
]
},
"data": {
- "type": "null"
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -10765,11 +11962,11 @@
},
{
"method": "POST",
- "path": "/api/block/getBlockBreadcrumb",
- "handler": "getBlockBreadcrumb",
+ "path": "/api/block/getBlockDOMsWithEmbed",
+ "handler": "getBlockDOMsWithEmbed",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockBreadcrumbRequestInput"
+ "$ref": "#/$defs/BlocksQueryRequestInput"
},
"response": {
"anyOf": [
@@ -10785,16 +11982,9 @@
"data": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockPath"
- },
- {
- "type": "null"
- }
- ]
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
}
},
{
@@ -10857,11 +12047,11 @@
},
{
"method": "POST",
- "path": "/api/block/getBlockBreadcrumbChildren",
- "handler": "getBlockBreadcrumbChildren",
+ "path": "/api/block/getBlockDefIDsByRefText",
+ "handler": "getBlockDefIDsByRefText",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockBreadcrumbChildrenRequestInput"
+ "$ref": "#/$defs/RefTextQueryRequestInput"
},
"response": {
"anyOf": [
@@ -10875,14 +12065,7 @@
]
},
"data": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockBreadcrumbChildren"
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/RefDefsData"
},
"msg": {
"type": "string"
@@ -10939,8 +12122,8 @@
},
{
"method": "POST",
- "path": "/api/block/getBlockDOM",
- "handler": "getBlockDOM",
+ "path": "/api/block/getBlockIndex",
+ "handler": "getBlockIndex",
"body": "json",
"request": {
"$ref": "#/$defs/BlockQueryRequestInput"
@@ -10957,7 +12140,7 @@
]
},
"data": {
- "$ref": "#/$defs/BlockDOMData"
+ "type": "integer"
},
"msg": {
"type": "string"
@@ -11014,11 +12197,11 @@
},
{
"method": "POST",
- "path": "/api/block/getBlockDOMWithEmbed",
- "handler": "getBlockDOMWithEmbed",
+ "path": "/api/block/getBlockInfo",
+ "handler": "getBlockInfo",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockQueryRequestInput"
+ "$ref": "#/$defs/BlockInfoRequestInput"
},
"response": {
"anyOf": [
@@ -11032,7 +12215,7 @@
]
},
"data": {
- "$ref": "#/$defs/BlockDOMData"
+ "$ref": "#/$defs/BlockInfoData"
},
"msg": {
"type": "string"
@@ -11051,7 +12234,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 3
]
},
"data": {
@@ -11070,6 +12254,9 @@
},
{
"type": "null"
+ },
+ {
+ "type": "string"
}
]
},
@@ -11089,11 +12276,11 @@
},
{
"method": "POST",
- "path": "/api/block/getBlockDOMs",
- "handler": "getBlockDOMs",
+ "path": "/api/block/getBlockKramdown",
+ "handler": "getBlockKramdown",
"body": "json",
"request": {
- "$ref": "#/$defs/BlocksQueryRequestInput"
+ "$ref": "#/$defs/BlockKramdownRequestInput"
},
"response": {
"anyOf": [
@@ -11107,17 +12294,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/BlockKramdownData"
},
"msg": {
"type": "string"
@@ -11174,11 +12351,11 @@
},
{
"method": "POST",
- "path": "/api/block/getBlockDOMsWithEmbed",
- "handler": "getBlockDOMsWithEmbed",
+ "path": "/api/block/getBlockKramdowns",
+ "handler": "getBlockKramdowns",
"body": "json",
"request": {
- "$ref": "#/$defs/BlocksQueryRequestInput"
+ "$ref": "#/$defs/BlocksKramdownRequestInput"
},
"response": {
"anyOf": [
@@ -11259,11 +12436,11 @@
},
{
"method": "POST",
- "path": "/api/block/getBlockDefIDsByRefText",
- "handler": "getBlockDefIDsByRefText",
+ "path": "/api/block/getBlockRelevantIDs",
+ "handler": "getBlockRelevantIDs",
"body": "json",
"request": {
- "$ref": "#/$defs/RefTextQueryRequestInput"
+ "$ref": "#/$defs/BlockQueryRequestInput"
},
"response": {
"anyOf": [
@@ -11277,7 +12454,7 @@
]
},
"data": {
- "$ref": "#/$defs/RefDefsData"
+ "$ref": "#/$defs/BlockRelevantData"
},
"msg": {
"type": "string"
@@ -11334,8 +12511,8 @@
},
{
"method": "POST",
- "path": "/api/block/getBlockIndex",
- "handler": "getBlockIndex",
+ "path": "/api/block/getBlockSiblingID",
+ "handler": "getBlockSiblingID",
"body": "json",
"request": {
"$ref": "#/$defs/BlockQueryRequestInput"
@@ -11352,7 +12529,7 @@
]
},
"data": {
- "type": "integer"
+ "$ref": "#/$defs/BlockSiblingData"
},
"msg": {
"type": "string"
@@ -11409,11 +12586,11 @@
},
{
"method": "POST",
- "path": "/api/block/getBlockInfo",
- "handler": "getBlockInfo",
+ "path": "/api/block/getBlockTreeInfos",
+ "handler": "getBlockTreeInfos",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockInfoRequestInput"
+ "$ref": "#/$defs/BlocksQueryRequestInput"
},
"response": {
"anyOf": [
@@ -11427,7 +12604,24 @@
]
},
"data": {
- "$ref": "#/$defs/BlockInfoData"
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockTreeInfo"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -11446,8 +12640,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 3
+ -1
]
},
"data": {
@@ -11466,9 +12659,6 @@
},
{
"type": "null"
- },
- {
- "type": "string"
}
]
},
@@ -11488,11 +12678,11 @@
},
{
"method": "POST",
- "path": "/api/block/getBlockKramdown",
- "handler": "getBlockKramdown",
+ "path": "/api/block/getBlocksIndexes",
+ "handler": "getBlocksIndexes",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockKramdownRequestInput"
+ "$ref": "#/$defs/BlocksQueryRequestInput"
},
"response": {
"anyOf": [
@@ -11506,7 +12696,17 @@
]
},
"data": {
- "$ref": "#/$defs/BlockKramdownData"
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "integer"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -11563,11 +12763,11 @@
},
{
"method": "POST",
- "path": "/api/block/getBlockKramdowns",
- "handler": "getBlockKramdowns",
+ "path": "/api/block/getBlocksWordCount",
+ "handler": "getBlocksWordCount",
"body": "json",
"request": {
- "$ref": "#/$defs/BlocksKramdownRequestInput"
+ "$ref": "#/$defs/BlocksWordCountRequestInput"
},
"response": {
"anyOf": [
@@ -11581,17 +12781,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/WordCountData"
},
"msg": {
"type": "string"
@@ -11648,8 +12838,8 @@
},
{
"method": "POST",
- "path": "/api/block/getBlockRelevantIDs",
- "handler": "getBlockRelevantIDs",
+ "path": "/api/block/getChildBlocks",
+ "handler": "getChildBlocks",
"body": "json",
"request": {
"$ref": "#/$defs/BlockQueryRequestInput"
@@ -11666,7 +12856,17 @@
]
},
"data": {
- "$ref": "#/$defs/BlockRelevantData"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/ChildBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
"msg": {
"type": "string"
@@ -11723,11 +12923,11 @@
},
{
"method": "POST",
- "path": "/api/block/getBlockSiblingID",
- "handler": "getBlockSiblingID",
+ "path": "/api/block/getContentWordCount",
+ "handler": "getContentWordCount",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockQueryRequestInput"
+ "$ref": "#/$defs/ContentWordCountRequestInput"
},
"response": {
"anyOf": [
@@ -11741,7 +12941,7 @@
]
},
"data": {
- "$ref": "#/$defs/BlockSiblingData"
+ "$ref": "#/$defs/WordCountData"
},
"msg": {
"type": "string"
@@ -11798,11 +12998,11 @@
},
{
"method": "POST",
- "path": "/api/block/getBlockTreeInfos",
- "handler": "getBlockTreeInfos",
+ "path": "/api/block/getDOMText",
+ "handler": "getDOMText",
"body": "json",
"request": {
- "$ref": "#/$defs/BlocksQueryRequestInput"
+ "$ref": "#/$defs/DOMTextRequestInput"
},
"response": {
"anyOf": [
@@ -11816,24 +13016,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "object",
- "additionalProperties": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTreeInfo"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "type": "string"
},
"msg": {
"type": "string"
@@ -11890,11 +13073,11 @@
},
{
"method": "POST",
- "path": "/api/block/getBlocksIndexes",
- "handler": "getBlocksIndexes",
+ "path": "/api/block/getDocBlocksOrders",
+ "handler": "getDocBlocksOrders",
"body": "json",
"request": {
- "$ref": "#/$defs/BlocksQueryRequestInput"
+ "$ref": "#/$defs/DocOrdersRequestInput"
},
"response": {
"anyOf": [
@@ -11910,9 +13093,9 @@
"data": {
"anyOf": [
{
- "type": "object",
- "additionalProperties": {
- "type": "integer"
+ "type": "array",
+ "items": {
+ "type": "string"
}
},
{
@@ -11975,11 +13158,11 @@
},
{
"method": "POST",
- "path": "/api/block/getBlocksWordCount",
- "handler": "getBlocksWordCount",
- "body": "json",
+ "path": "/api/block/getDocHeadingLevelTransaction",
+ "handler": "getDocHeadingLevelTransaction",
+ "body": "structJSON",
"request": {
- "$ref": "#/$defs/BlocksWordCountRequestInput"
+ "$ref": "#/$defs/DocHeadingLevelRequestInput"
},
"response": {
"anyOf": [
@@ -11992,9 +13175,16 @@
0
]
},
- "data": {
- "$ref": "#/$defs/WordCountData"
- },
+ "data": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/DocHeadingLevelData"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
"msg": {
"type": "string"
}
@@ -12050,8 +13240,8 @@
},
{
"method": "POST",
- "path": "/api/block/getChildBlocks",
- "handler": "getChildBlocks",
+ "path": "/api/block/getDocInfo",
+ "handler": "getDocInfo",
"body": "json",
"request": {
"$ref": "#/$defs/BlockQueryRequestInput"
@@ -12068,17 +13258,14 @@
]
},
"data": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/ChildBlock"
- },
- {
- "type": "null"
- }
- ]
- }
+ "anyOf": [
+ {
+ "$ref": "#/$defs/DocInfo"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -12135,11 +13322,11 @@
},
{
"method": "POST",
- "path": "/api/block/getContentWordCount",
- "handler": "getContentWordCount",
+ "path": "/api/block/getDocsInfo",
+ "handler": "getDocsInfo",
"body": "json",
"request": {
- "$ref": "#/$defs/ContentWordCountRequestInput"
+ "$ref": "#/$defs/DocsInfoRequestInput"
},
"response": {
"anyOf": [
@@ -12153,7 +13340,24 @@
]
},
"data": {
- "$ref": "#/$defs/WordCountData"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/DocInfo"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -12210,11 +13414,11 @@
},
{
"method": "POST",
- "path": "/api/block/getDOMText",
- "handler": "getDOMText",
+ "path": "/api/block/getHeadingChildrenDOM",
+ "handler": "getHeadingChildrenDOM",
"body": "json",
"request": {
- "$ref": "#/$defs/DOMTextRequestInput"
+ "$ref": "#/$defs/HeadingChildrenRequestInput"
},
"response": {
"anyOf": [
@@ -12285,11 +13489,11 @@
},
{
"method": "POST",
- "path": "/api/block/getDocBlocksOrders",
- "handler": "getDocBlocksOrders",
+ "path": "/api/block/getHeadingChildrenIDs",
+ "handler": "getHeadingChildrenIDs",
"body": "json",
"request": {
- "$ref": "#/$defs/DocOrdersRequestInput"
+ "$ref": "#/$defs/BlockIDRequestInput"
},
"response": {
"anyOf": [
@@ -12370,11 +13574,11 @@
},
{
"method": "POST",
- "path": "/api/block/getDocHeadingLevelTransaction",
- "handler": "getDocHeadingLevelTransaction",
- "body": "structJSON",
+ "path": "/api/block/getHeadingDeleteTransaction",
+ "handler": "getHeadingDeleteTransaction",
+ "body": "json",
"request": {
- "$ref": "#/$defs/DocHeadingLevelRequestInput"
+ "$ref": "#/$defs/BlockIDRequestInput"
},
"response": {
"anyOf": [
@@ -12390,7 +13594,7 @@
"data": {
"anyOf": [
{
- "$ref": "#/$defs/DocHeadingLevelData"
+ "$ref": "#/$defs/BlockTransaction"
},
{
"type": "null"
@@ -12452,11 +13656,11 @@
},
{
"method": "POST",
- "path": "/api/block/getDocInfo",
- "handler": "getDocInfo",
+ "path": "/api/block/getHeadingFoldTransaction",
+ "handler": "getHeadingFoldTransaction",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockQueryRequestInput"
+ "$ref": "#/$defs/HeadingFoldRequestInput"
},
"response": {
"anyOf": [
@@ -12472,7 +13676,7 @@
"data": {
"anyOf": [
{
- "$ref": "#/$defs/DocInfo"
+ "$ref": "#/$defs/BlockTransaction"
},
{
"type": "null"
@@ -12534,11 +13738,11 @@
},
{
"method": "POST",
- "path": "/api/block/getDocsInfo",
- "handler": "getDocsInfo",
+ "path": "/api/block/getHeadingInsertTransaction",
+ "handler": "getHeadingInsertTransaction",
"body": "json",
"request": {
- "$ref": "#/$defs/DocsInfoRequestInput"
+ "$ref": "#/$defs/BlockIDRequestInput"
},
"response": {
"anyOf": [
@@ -12554,17 +13758,7 @@
"data": {
"anyOf": [
{
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/DocInfo"
- },
- {
- "type": "null"
- }
- ]
- }
+ "$ref": "#/$defs/BlockTransaction"
},
{
"type": "null"
@@ -12626,11 +13820,11 @@
},
{
"method": "POST",
- "path": "/api/block/getHeadingChildrenDOM",
- "handler": "getHeadingChildrenDOM",
+ "path": "/api/block/getHeadingLevelTransaction",
+ "handler": "getHeadingLevelTransaction",
"body": "json",
"request": {
- "$ref": "#/$defs/HeadingChildrenRequestInput"
+ "$ref": "#/$defs/HeadingLevelRequestInput"
},
"response": {
"anyOf": [
@@ -12644,7 +13838,14 @@
]
},
"data": {
- "type": "string"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockTransaction"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -12701,11 +13902,11 @@
},
{
"method": "POST",
- "path": "/api/block/getHeadingChildrenIDs",
- "handler": "getHeadingChildrenIDs",
+ "path": "/api/block/getOrderedListContinueStart",
+ "handler": "getOrderedListContinueStart",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockIDRequestInput"
+ "$ref": "#/$defs/BlockQueryRequestInput"
},
"response": {
"anyOf": [
@@ -12719,17 +13920,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/OrderedListStartData"
},
"msg": {
"type": "string"
@@ -12786,11 +13977,11 @@
},
{
"method": "POST",
- "path": "/api/block/getHeadingDeleteTransaction",
- "handler": "getHeadingDeleteTransaction",
- "body": "json",
+ "path": "/api/block/getRecentUpdatedBlocks",
+ "handler": "getRecentUpdatedBlocks",
+ "body": "none",
"request": {
- "$ref": "#/$defs/BlockIDRequestInput"
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -12806,7 +13997,17 @@
"data": {
"anyOf": [
{
- "$ref": "#/$defs/BlockTransaction"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/SearchBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
{
"type": "null"
@@ -12868,11 +14069,11 @@
},
{
"method": "POST",
- "path": "/api/block/getHeadingFoldTransaction",
- "handler": "getHeadingFoldTransaction",
+ "path": "/api/block/getRefIDs",
+ "handler": "getRefIDs",
"body": "json",
"request": {
- "$ref": "#/$defs/HeadingFoldRequestInput"
+ "$ref": "#/$defs/RefIDsRequestInput"
},
"response": {
"anyOf": [
@@ -12886,14 +14087,7 @@
]
},
"data": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/RefIDsData"
},
"msg": {
"type": "string"
@@ -12950,11 +14144,11 @@
},
{
"method": "POST",
- "path": "/api/block/getHeadingInsertTransaction",
- "handler": "getHeadingInsertTransaction",
+ "path": "/api/block/getRefIDsByFileAnnotationID",
+ "handler": "getRefIDsByFileAnnotationID",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockIDRequestInput"
+ "$ref": "#/$defs/FileAnnotationRefRequestInput"
},
"response": {
"anyOf": [
@@ -12968,14 +14162,7 @@
]
},
"data": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/RefDefsData"
},
"msg": {
"type": "string"
@@ -13032,11 +14219,11 @@
},
{
"method": "POST",
- "path": "/api/block/getHeadingLevelTransaction",
- "handler": "getHeadingLevelTransaction",
+ "path": "/api/block/getRefText",
+ "handler": "getRefText",
"body": "json",
"request": {
- "$ref": "#/$defs/HeadingLevelRequestInput"
+ "$ref": "#/$defs/BlockQueryRequestInput"
},
"response": {
"anyOf": [
@@ -13050,14 +14237,7 @@
]
},
"data": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
+ "type": "string"
},
"msg": {
"type": "string"
@@ -13114,11 +14294,11 @@
},
{
"method": "POST",
- "path": "/api/block/getOrderedListContinueStart",
- "handler": "getOrderedListContinueStart",
+ "path": "/api/block/getTailChildBlocks",
+ "handler": "getTailChildBlocks",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockQueryRequestInput"
+ "$ref": "#/$defs/TailChildBlocksRequestInput"
},
"response": {
"anyOf": [
@@ -13132,7 +14312,17 @@
]
},
"data": {
- "$ref": "#/$defs/OrderedListStartData"
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/ChildBlock"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
},
"msg": {
"type": "string"
@@ -13189,11 +14379,11 @@
},
{
"method": "POST",
- "path": "/api/block/getRecentUpdatedBlocks",
- "handler": "getRecentUpdatedBlocks",
- "body": "none",
+ "path": "/api/block/getTreeStat",
+ "handler": "getTreeStat",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/TreeStatRequestInput"
},
"response": {
"anyOf": [
@@ -13207,24 +14397,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/SearchBlock"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/TreeStatData"
},
"msg": {
"type": "string"
@@ -13281,11 +14454,11 @@
},
{
"method": "POST",
- "path": "/api/block/getRefIDs",
- "handler": "getRefIDs",
+ "path": "/api/block/getUnfoldedParentID",
+ "handler": "getUnfoldedParentID",
"body": "json",
"request": {
- "$ref": "#/$defs/RefIDsRequestInput"
+ "$ref": "#/$defs/BlockQueryRequestInput"
},
"response": {
"anyOf": [
@@ -13299,7 +14472,7 @@
]
},
"data": {
- "$ref": "#/$defs/RefIDsData"
+ "$ref": "#/$defs/UnfoldedParentData"
},
"msg": {
"type": "string"
@@ -13356,11 +14529,11 @@
},
{
"method": "POST",
- "path": "/api/block/getRefIDsByFileAnnotationID",
- "handler": "getRefIDsByFileAnnotationID",
+ "path": "/api/block/insertBlock",
+ "handler": "insertBlock",
"body": "json",
"request": {
- "$ref": "#/$defs/FileAnnotationRefRequestInput"
+ "$ref": "#/$defs/InsertBlockRequestInput"
},
"response": {
"anyOf": [
@@ -13374,7 +14547,24 @@
]
},
"data": {
- "$ref": "#/$defs/RefDefsData"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockTransaction"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -13431,11 +14621,11 @@
},
{
"method": "POST",
- "path": "/api/block/getRefText",
- "handler": "getRefText",
+ "path": "/api/block/moveBlock",
+ "handler": "moveBlock",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockQueryRequestInput"
+ "$ref": "#/$defs/MoveBlockRequestInput"
},
"response": {
"anyOf": [
@@ -13449,7 +14639,7 @@
]
},
"data": {
- "type": "string"
+ "type": "null"
},
"msg": {
"type": "string"
@@ -13506,11 +14696,11 @@
},
{
"method": "POST",
- "path": "/api/block/getTailChildBlocks",
- "handler": "getTailChildBlocks",
+ "path": "/api/block/moveOutlineHeading",
+ "handler": "moveOutlineHeading",
"body": "json",
"request": {
- "$ref": "#/$defs/TailChildBlocksRequestInput"
+ "$ref": "#/$defs/MoveBlockRequestInput"
},
"response": {
"anyOf": [
@@ -13524,17 +14714,24 @@
]
},
"data": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/ChildBlock"
- },
- {
- "type": "null"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockTransaction"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
- ]
- }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -13591,11 +14788,11 @@
},
{
"method": "POST",
- "path": "/api/block/getTreeStat",
- "handler": "getTreeStat",
+ "path": "/api/block/prependBlock",
+ "handler": "prependBlock",
"body": "json",
"request": {
- "$ref": "#/$defs/TreeStatRequestInput"
+ "$ref": "#/$defs/PrependBlockRequestInput"
},
"response": {
"anyOf": [
@@ -13609,7 +14806,24 @@
]
},
"data": {
- "$ref": "#/$defs/TreeStatData"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockTransaction"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -13666,11 +14880,11 @@
},
{
"method": "POST",
- "path": "/api/block/getUnfoldedParentID",
- "handler": "getUnfoldedParentID",
+ "path": "/api/block/prependDailyNoteBlock",
+ "handler": "prependDailyNoteBlock",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockQueryRequestInput"
+ "$ref": "#/$defs/DailyNoteBlockRequestInput"
},
"response": {
"anyOf": [
@@ -13684,7 +14898,24 @@
]
},
"data": {
- "$ref": "#/$defs/UnfoldedParentData"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockTransaction"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -13741,11 +14972,11 @@
},
{
"method": "POST",
- "path": "/api/block/insertBlock",
- "handler": "insertBlock",
+ "path": "/api/block/setBlockReminder",
+ "handler": "setBlockReminder",
"body": "json",
"request": {
- "$ref": "#/$defs/InsertBlockRequestInput"
+ "$ref": "#/$defs/BlockReminderRequestInput"
},
"response": {
"anyOf": [
@@ -13759,24 +14990,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "type": "null"
},
"msg": {
"type": "string"
@@ -13833,11 +15047,11 @@
},
{
"method": "POST",
- "path": "/api/block/moveBlock",
- "handler": "moveBlock",
+ "path": "/api/block/swapBlockRef",
+ "handler": "swapBlockRef",
"body": "json",
"request": {
- "$ref": "#/$defs/MoveBlockRequestInput"
+ "$ref": "#/$defs/SwapBlockRefRequestInput"
},
"response": {
"anyOf": [
@@ -13908,11 +15122,11 @@
},
{
"method": "POST",
- "path": "/api/block/moveOutlineHeading",
- "handler": "moveOutlineHeading",
+ "path": "/api/block/transferBlockRef",
+ "handler": "transferBlockRef",
"body": "json",
"request": {
- "$ref": "#/$defs/MoveBlockRequestInput"
+ "$ref": "#/$defs/TransferBlockRefRequestInput"
},
"response": {
"anyOf": [
@@ -13926,24 +15140,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "type": "null"
},
"msg": {
"type": "string"
@@ -14000,11 +15197,11 @@
},
{
"method": "POST",
- "path": "/api/block/prependBlock",
- "handler": "prependBlock",
+ "path": "/api/block/unfoldBlock",
+ "handler": "unfoldBlock",
"body": "json",
"request": {
- "$ref": "#/$defs/PrependBlockRequestInput"
+ "$ref": "#/$defs/BlockIDRequestInput"
},
"response": {
"anyOf": [
@@ -14018,24 +15215,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "type": "null"
},
"msg": {
"type": "string"
@@ -14092,11 +15272,11 @@
},
{
"method": "POST",
- "path": "/api/block/prependDailyNoteBlock",
- "handler": "prependDailyNoteBlock",
+ "path": "/api/block/updateBlock",
+ "handler": "updateBlock",
"body": "json",
"request": {
- "$ref": "#/$defs/DailyNoteBlockRequestInput"
+ "$ref": "#/$defs/UpdateBlockRequestInput"
},
"response": {
"anyOf": [
@@ -14184,11 +15364,11 @@
},
{
"method": "POST",
- "path": "/api/block/setBlockReminder",
- "handler": "setBlockReminder",
+ "path": "/api/block/updateTaskListItemMarker",
+ "handler": "updateTaskListItemMarker",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockReminderRequestInput"
+ "$ref": "#/$defs/TaskListMarkerRequestInput"
},
"response": {
"anyOf": [
@@ -14202,7 +15382,24 @@
]
},
"data": {
- "type": "null"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/BlockTransaction"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -14259,11 +15456,11 @@
},
{
"method": "POST",
- "path": "/api/block/swapBlockRef",
- "handler": "swapBlockRef",
- "body": "json",
+ "path": "/api/bookmark/getBookmark",
+ "handler": "getBookmark",
+ "body": "none",
"request": {
- "$ref": "#/$defs/SwapBlockRefRequestInput"
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -14277,7 +15474,24 @@
]
},
"data": {
- "type": "null"
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/Bookmark"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -14333,12 +15547,12 @@
}
},
{
- "method": "POST",
- "path": "/api/block/transferBlockRef",
- "handler": "transferBlockRef",
+ "method": "POST",
+ "path": "/api/bookmark/removeBookmark",
+ "handler": "removeBookmark",
"body": "json",
"request": {
- "$ref": "#/$defs/TransferBlockRefRequestInput"
+ "$ref": "#/$defs/RemoveBookmarkRequestInput"
},
"response": {
"anyOf": [
@@ -14409,11 +15623,11 @@
},
{
"method": "POST",
- "path": "/api/block/unfoldBlock",
- "handler": "unfoldBlock",
+ "path": "/api/bookmark/renameBookmark",
+ "handler": "renameBookmark",
"body": "json",
"request": {
- "$ref": "#/$defs/BlockIDRequestInput"
+ "$ref": "#/$defs/RenameBookmarkRequestInput"
},
"response": {
"anyOf": [
@@ -14484,11 +15698,11 @@
},
{
"method": "POST",
- "path": "/api/block/updateBlock",
- "handler": "updateBlock",
+ "path": "/api/broadcast/getChannelInfo",
+ "handler": "getChannelInfo",
"body": "json",
"request": {
- "$ref": "#/$defs/UpdateBlockRequestInput"
+ "$ref": "#/$defs/BroadcastChannelRequestInput"
},
"response": {
"anyOf": [
@@ -14502,24 +15716,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/BroadcastChannelData"
},
"msg": {
"type": "string"
@@ -14576,11 +15773,11 @@
},
{
"method": "POST",
- "path": "/api/block/updateTaskListItemMarker",
- "handler": "updateTaskListItemMarker",
- "body": "json",
+ "path": "/api/broadcast/getChannels",
+ "handler": "getChannels",
+ "body": "none",
"request": {
- "$ref": "#/$defs/TaskListMarkerRequestInput"
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -14594,24 +15791,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/BlockTransaction"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/BroadcastChannelsData"
},
"msg": {
"type": "string"
@@ -14668,11 +15848,11 @@
},
{
"method": "POST",
- "path": "/api/bookmark/getBookmark",
- "handler": "getBookmark",
- "body": "none",
+ "path": "/api/broadcast/postMessage",
+ "handler": "postMessage",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/BroadcastMessageRequestInput"
},
"response": {
"anyOf": [
@@ -14686,24 +15866,7 @@
]
},
"data": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "$ref": "#/$defs/Bookmark"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/BroadcastChannelData"
},
"msg": {
"type": "string"
@@ -14722,7 +15885,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -14760,11 +15924,25 @@
},
{
"method": "POST",
- "path": "/api/bookmark/removeBookmark",
- "handler": "removeBookmark",
- "body": "json",
+ "path": "/api/broadcast/publish",
+ "handler": "broadcastPublish",
+ "body": "multipart",
"request": {
- "$ref": "#/$defs/RemoveBookmarkRequestInput"
+ "type": "object",
+ "additionalProperties": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "string",
+ "format": "binary"
+ }
+ ]
+ }
+ }
},
"response": {
"anyOf": [
@@ -14778,7 +15956,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/BroadcastPublishData"
},
"msg": {
"type": "string"
@@ -14797,7 +15975,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ 1
]
},
"data": {
@@ -14835,11 +16014,11 @@
},
{
"method": "POST",
- "path": "/api/bookmark/renameBookmark",
- "handler": "renameBookmark",
+ "path": "/api/clipboard/cleanupRichText",
+ "handler": "cleanupRichText",
"body": "json",
"request": {
- "$ref": "#/$defs/RenameBookmarkRequestInput"
+ "$ref": "#/$defs/CleanupRichTextRequestInput"
},
"response": {
"anyOf": [
@@ -14910,11 +16089,11 @@
},
{
"method": "POST",
- "path": "/api/broadcast/getChannelInfo",
- "handler": "getChannelInfo",
+ "path": "/api/clipboard/prepareRichText",
+ "handler": "prepareRichText",
"body": "json",
"request": {
- "$ref": "#/$defs/BroadcastChannelRequestInput"
+ "$ref": "#/$defs/PrepareRichTextRequestInput"
},
"response": {
"anyOf": [
@@ -14928,7 +16107,14 @@
]
},
"data": {
- "$ref": "#/$defs/BroadcastChannelData"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/RichClipboardPrepared"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -14985,8 +16171,8 @@
},
{
"method": "POST",
- "path": "/api/broadcast/getChannels",
- "handler": "getChannels",
+ "path": "/api/clipboard/readFilePaths",
+ "handler": "readFilePaths",
"body": "none",
"request": {
"$ref": "#/$defs/EmptyRequestInput"
@@ -15003,7 +16189,10 @@
]
},
"data": {
- "$ref": "#/$defs/BroadcastChannelsData"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/ClipboardFile"
+ }
},
"msg": {
"type": "string"
@@ -15060,11 +16249,11 @@
},
{
"method": "POST",
- "path": "/api/broadcast/postMessage",
- "handler": "postMessage",
+ "path": "/api/clipboard/writeFilePath",
+ "handler": "writeFilePath",
"body": "json",
"request": {
- "$ref": "#/$defs/BroadcastMessageRequestInput"
+ "$ref": "#/$defs/ClipboardPathRequestInput"
},
"response": {
"anyOf": [
@@ -15078,7 +16267,7 @@
]
},
"data": {
- "$ref": "#/$defs/BroadcastChannelData"
+ "type": "null"
},
"msg": {
"type": "string"
@@ -15097,8 +16286,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- 1
+ -1
]
},
"data": {
@@ -15136,25 +16324,11 @@
},
{
"method": "POST",
- "path": "/api/broadcast/publish",
- "handler": "broadcastPublish",
- "body": "multipart",
+ "path": "/api/cloud/getCloudSpace",
+ "handler": "getCloudSpace",
+ "body": "none",
"request": {
- "type": "object",
- "additionalProperties": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "string",
- "format": "binary"
- }
- ]
- }
- }
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -15168,7 +16342,7 @@
]
},
"data": {
- "$ref": "#/$defs/BroadcastPublishData"
+ "$ref": "#/$defs/CloudSpaceData"
},
"msg": {
"type": "string"
@@ -15226,11 +16400,11 @@
},
{
"method": "POST",
- "path": "/api/clipboard/cleanupRichText",
- "handler": "cleanupRichText",
+ "path": "/api/cloud/setCloudReminder",
+ "handler": "setCloudReminder",
"body": "json",
"request": {
- "$ref": "#/$defs/CleanupRichTextRequestInput"
+ "$ref": "#/$defs/CloudReminderRequestInput"
},
"response": {
"anyOf": [
@@ -15301,11 +16475,11 @@
},
{
"method": "POST",
- "path": "/api/clipboard/prepareRichText",
- "handler": "prepareRichText",
+ "path": "/api/convert/pandoc",
+ "handler": "pandoc",
"body": "json",
"request": {
- "$ref": "#/$defs/PrepareRichTextRequestInput"
+ "$ref": "#/$defs/PandocRequestInput"
},
"response": {
"anyOf": [
@@ -15319,14 +16493,7 @@
]
},
"data": {
- "anyOf": [
- {
- "$ref": "#/$defs/RichClipboardPrepared"
- },
- {
- "type": "null"
- }
- ]
+ "$ref": "#/$defs/PandocData"
},
"msg": {
"type": "string"
@@ -15383,11 +16550,11 @@
},
{
"method": "POST",
- "path": "/api/clipboard/readFilePaths",
- "handler": "readFilePaths",
- "body": "none",
+ "path": "/api/file/copyFile",
+ "handler": "copyFile",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/CopyFileRequestInput"
},
"response": {
"anyOf": [
@@ -15401,10 +16568,7 @@
]
},
"data": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/ClipboardFile"
- }
+ "type": "null"
},
"msg": {
"type": "string"
@@ -15423,7 +16587,8 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ -2
]
},
"data": {
@@ -15461,36 +16626,17 @@
},
{
"method": "POST",
- "path": "/api/clipboard/writeFilePath",
- "handler": "writeFilePath",
+ "path": "/api/file/getFile",
+ "handler": "getFile",
"body": "json",
"request": {
- "$ref": "#/$defs/ClipboardPathRequestInput"
+ "$ref": "#/$defs/FilePathRequestInput"
},
"response": {
"anyOf": [
{
- "type": "object",
- "properties": {
- "code": {
- "type": "integer",
- "enum": [
- 0
- ]
- },
- "data": {
- "type": "null"
- },
- "msg": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "msg",
- "data"
- ],
- "additionalProperties": false
+ "type": "string",
+ "format": "binary"
},
{
"type": "object",
@@ -15498,7 +16644,13 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ -3,
+ 403,
+ 404,
+ 409,
+ 500,
+ 503
]
},
"data": {
@@ -15532,15 +16684,17 @@
"additionalProperties": true
}
]
- }
+ },
+ "output": "binary",
+ "errorStatus": 202
},
{
"method": "POST",
- "path": "/api/cloud/getCloudSpace",
- "handler": "getCloudSpace",
- "body": "none",
+ "path": "/api/file/getUniqueFilename",
+ "handler": "getUniqueFilename",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/FilePathRequestInput"
},
"response": {
"anyOf": [
@@ -15554,7 +16708,7 @@
]
},
"data": {
- "$ref": "#/$defs/CloudSpaceData"
+ "$ref": "#/$defs/FilePathData"
},
"msg": {
"type": "string"
@@ -15574,7 +16728,7 @@
"type": "integer",
"enum": [
-1,
- 1
+ -3
]
},
"data": {
@@ -15612,11 +16766,11 @@
},
{
"method": "POST",
- "path": "/api/cloud/setCloudReminder",
- "handler": "setCloudReminder",
+ "path": "/api/file/globalCopyFiles",
+ "handler": "globalCopyFiles",
"body": "json",
"request": {
- "$ref": "#/$defs/CloudReminderRequestInput"
+ "$ref": "#/$defs/CopyFilesRequestInput"
},
"response": {
"anyOf": [
@@ -15649,7 +16803,10 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ -2,
+ -3,
+ 403
]
},
"data": {
@@ -15687,11 +16844,11 @@
},
{
"method": "POST",
- "path": "/api/convert/pandoc",
- "handler": "pandoc",
- "body": "json",
+ "path": "/api/file/putFile",
+ "handler": "putFile",
+ "body": "form",
"request": {
- "$ref": "#/$defs/PandocRequestInput"
+ "$ref": "#/$defs/PutFileRequestInput"
},
"response": {
"anyOf": [
@@ -15705,7 +16862,7 @@
]
},
"data": {
- "$ref": "#/$defs/PandocData"
+ "type": "null"
},
"msg": {
"type": "string"
@@ -15724,7 +16881,11 @@
"code": {
"type": "integer",
"enum": [
- -1
+ -1,
+ -3,
+ 400,
+ 403,
+ 500
]
},
"data": {
@@ -15762,11 +16923,11 @@
},
{
"method": "POST",
- "path": "/api/file/copyFile",
- "handler": "copyFile",
+ "path": "/api/file/readDir",
+ "handler": "readDir",
"body": "json",
"request": {
- "$ref": "#/$defs/CopyFileRequestInput"
+ "$ref": "#/$defs/ReadDirectoryRequestInput"
},
"response": {
"anyOf": [
@@ -15780,7 +16941,10 @@
]
},
"data": {
- "type": "null"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/DirectoryEntry"
+ }
},
"msg": {
"type": "string"
@@ -15800,7 +16964,11 @@
"type": "integer",
"enum": [
-1,
- -2
+ -3,
+ 403,
+ 404,
+ 409,
+ 500
]
},
"data": {
@@ -15838,17 +17006,36 @@
},
{
"method": "POST",
- "path": "/api/file/getFile",
- "handler": "getFile",
+ "path": "/api/file/removeFile",
+ "handler": "removeFile",
"body": "json",
"request": {
- "$ref": "#/$defs/FilePathRequestInput"
+ "$ref": "#/$defs/RemoveFileRequestInput"
},
"response": {
"anyOf": [
{
- "type": "string",
- "format": "binary"
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer",
+ "enum": [
+ 0
+ ]
+ },
+ "data": {
+ "type": "null"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "msg",
+ "data"
+ ],
+ "additionalProperties": false
},
{
"type": "object",
@@ -15860,9 +17047,7 @@
-3,
403,
404,
- 409,
- 500,
- 503
+ 500
]
},
"data": {
@@ -15896,17 +17081,15 @@
"additionalProperties": true
}
]
- },
- "output": "binary",
- "errorStatus": 202
+ }
},
{
"method": "POST",
- "path": "/api/file/getUniqueFilename",
- "handler": "getUniqueFilename",
+ "path": "/api/file/renameFile",
+ "handler": "renameFile",
"body": "json",
"request": {
- "$ref": "#/$defs/FilePathRequestInput"
+ "$ref": "#/$defs/RenameFileRequestInput"
},
"response": {
"anyOf": [
@@ -15920,7 +17103,7 @@
]
},
"data": {
- "$ref": "#/$defs/FilePathData"
+ "type": "null"
},
"msg": {
"type": "string"
@@ -15940,7 +17123,11 @@
"type": "integer",
"enum": [
-1,
- -3
+ -3,
+ 403,
+ 404,
+ 409,
+ 500
]
},
"data": {
@@ -15978,8 +17165,8 @@
},
{
"method": "POST",
- "path": "/api/file/globalCopyFiles",
- "handler": "globalCopyFiles",
+ "path": "/api/file/workspaceCopyFiles",
+ "handler": "workspaceCopyFiles",
"body": "json",
"request": {
"$ref": "#/$defs/CopyFilesRequestInput"
@@ -16056,11 +17243,11 @@
},
{
"method": "POST",
- "path": "/api/file/putFile",
- "handler": "putFile",
- "body": "form",
+ "path": "/api/filetree/getPinnedDocs",
+ "handler": "getPinnedDocs",
+ "body": "none",
"request": {
- "$ref": "#/$defs/PutFileRequestInput"
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -16074,7 +17261,10 @@
]
},
"data": {
- "type": "null"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/PinnedDoc"
+ }
},
"msg": {
"type": "string"
@@ -16093,11 +17283,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- -3,
- 400,
- 403,
- 500
+ -1
]
},
"data": {
@@ -16135,11 +17321,11 @@
},
{
"method": "POST",
- "path": "/api/file/readDir",
- "handler": "readDir",
+ "path": "/api/filetree/updatePinnedDocs",
+ "handler": "updatePinnedDocs",
"body": "json",
"request": {
- "$ref": "#/$defs/ReadDirectoryRequestInput"
+ "$ref": "#/$defs/UpdatePinnedDocsRequestInput"
},
"response": {
"anyOf": [
@@ -16153,10 +17339,7 @@
]
},
"data": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/DirectoryEntry"
- }
+ "type": "null"
},
"msg": {
"type": "string"
@@ -16175,12 +17358,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- -3,
- 403,
- 404,
- 409,
- 500
+ -1
]
},
"data": {
@@ -16218,11 +17396,11 @@
},
{
"method": "POST",
- "path": "/api/file/removeFile",
- "handler": "removeFile",
+ "path": "/api/format/autoSpace",
+ "handler": "autoSpace",
"body": "json",
"request": {
- "$ref": "#/$defs/RemoveFileRequestInput"
+ "$ref": "#/$defs/TrimmedIDRequestInput"
},
"response": {
"anyOf": [
@@ -16255,11 +17433,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- -3,
- 403,
- 404,
- 500
+ -1
]
},
"data": {
@@ -16297,11 +17471,11 @@
},
{
"method": "POST",
- "path": "/api/file/renameFile",
- "handler": "renameFile",
+ "path": "/api/format/netAssets2LocalAssets",
+ "handler": "netAssets2LocalAssets",
"body": "json",
"request": {
- "$ref": "#/$defs/RenameFileRequestInput"
+ "$ref": "#/$defs/TrimmedIDRequestInput"
},
"response": {
"anyOf": [
@@ -16334,12 +17508,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- -3,
- 403,
- 404,
- 409,
- 500
+ -1
]
},
"data": {
@@ -16377,11 +17546,11 @@
},
{
"method": "POST",
- "path": "/api/file/workspaceCopyFiles",
- "handler": "workspaceCopyFiles",
+ "path": "/api/format/netImg2LocalAssets",
+ "handler": "netImg2LocalAssets",
"body": "json",
"request": {
- "$ref": "#/$defs/CopyFilesRequestInput"
+ "$ref": "#/$defs/NetImageAssetsRequestInput"
},
"response": {
"anyOf": [
@@ -16414,10 +17583,7 @@
"code": {
"type": "integer",
"enum": [
- -1,
- -2,
- -3,
- 403
+ -1
]
},
"data": {
@@ -16455,11 +17621,11 @@
},
{
"method": "POST",
- "path": "/api/filetree/getPinnedDocs",
- "handler": "getPinnedDocs",
- "body": "none",
+ "path": "/api/graph/getGraph",
+ "handler": "getGraph",
+ "body": "json",
"request": {
- "$ref": "#/$defs/EmptyRequestInput"
+ "$ref": "#/$defs/GlobalGraphRequestInput"
},
"response": {
"anyOf": [
@@ -16473,10 +17639,14 @@
]
},
"data": {
- "type": "array",
- "items": {
- "$ref": "#/$defs/PinnedDoc"
- }
+ "anyOf": [
+ {
+ "$ref": "#/$defs/GlobalGraphResult"
+ },
+ {
+ "$ref": "#/$defs/GraphCorrelation"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -16514,6 +17684,16 @@
},
{
"type": "null"
+ },
+ {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/GlobalGraphResult"
+ },
+ {
+ "$ref": "#/$defs/GraphCorrelation"
+ }
+ ]
}
]
},
@@ -16533,11 +17713,11 @@
},
{
"method": "POST",
- "path": "/api/filetree/updatePinnedDocs",
- "handler": "updatePinnedDocs",
+ "path": "/api/graph/getLocalGraph",
+ "handler": "getLocalGraph",
"body": "json",
"request": {
- "$ref": "#/$defs/UpdatePinnedDocsRequestInput"
+ "$ref": "#/$defs/LocalGraphRequestInput"
},
"response": {
"anyOf": [
@@ -16551,7 +17731,14 @@
]
},
"data": {
- "type": "null"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/LocalGraphResult"
+ },
+ {
+ "$ref": "#/$defs/GraphCorrelation"
+ }
+ ]
},
"msg": {
"type": "string"
@@ -16589,6 +17776,16 @@
},
{
"type": "null"
+ },
+ {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/LocalGraphResult"
+ },
+ {
+ "$ref": "#/$defs/GraphCorrelation"
+ }
+ ]
}
]
},
@@ -16608,11 +17805,11 @@
},
{
"method": "POST",
- "path": "/api/format/autoSpace",
- "handler": "autoSpace",
- "body": "json",
+ "path": "/api/graph/resetGraph",
+ "handler": "resetGraph",
+ "body": "none",
"request": {
- "$ref": "#/$defs/TrimmedIDRequestInput"
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -16626,7 +17823,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/ResetGraphData"
},
"msg": {
"type": "string"
@@ -16683,11 +17880,11 @@
},
{
"method": "POST",
- "path": "/api/format/netAssets2LocalAssets",
- "handler": "netAssets2LocalAssets",
- "body": "json",
+ "path": "/api/graph/resetLocalGraph",
+ "handler": "resetLocalGraph",
+ "body": "none",
"request": {
- "$ref": "#/$defs/TrimmedIDRequestInput"
+ "$ref": "#/$defs/EmptyRequestInput"
},
"response": {
"anyOf": [
@@ -16701,7 +17898,7 @@
]
},
"data": {
- "type": "null"
+ "$ref": "#/$defs/ResetLocalGraphData"
},
"msg": {
"type": "string"
@@ -16758,11 +17955,11 @@
},
{
"method": "POST",
- "path": "/api/format/netImg2LocalAssets",
- "handler": "netImg2LocalAssets",
+ "path": "/api/graph/setGraphConf",
+ "handler": "setGraphConf",
"body": "json",
"request": {
- "$ref": "#/$defs/NetImageAssetsRequestInput"
+ "$ref": "#/$defs/SetGraphConfRequestInput"
},
"response": {
"anyOf": [
@@ -16776,7 +17973,14 @@
]
},
"data": {
- "type": "null"
+ "anyOf": [
+ {
+ "$ref": "#/$defs/GlobalGraphConf"
+ },
+ {
+ "$ref": "#/$defs/LocalGraphConf"
+ }
+ ]
},
"msg": {
"type": "string"