An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:recycle: Migrate flashcard API contracts https://github.com/siyuan-note/siyuan/issues/19378
Daniel0c98e7aeef24
diff --git a/app/src/card/fetchDueCards.ts b/app/src/card/fetchDueCards.tsnew file mode 100644index 0000000000..29e50420b0--- /dev/null+++ b/app/src/card/fetchDueCards.ts@@ -0,0 +1,15 @@+import {fetchPost} from "../util/fetch";+import type {APICallbackResponse, APIPOSTRoutes, RiffReviewedCardInput} from "../types/api";++type DueCardsResponse = APICallbackResponse<APIPOSTRoutes["/api/riff/getRiffDueCards"]["response"]>;++export const fetchDueCards = (cardType: string, id: string, reviewedCards: RiffReviewedCardInput[] | undefined,+ callback: (response: DueCardsResponse) => void) => {+ if (cardType === "all") {+ return fetchPost("/api/riff/getRiffDueCards", {deckID: id, reviewedCards}, callback);+ }+ if (cardType === "doc") {+ return fetchPost("/api/riff/getTreeRiffDueCards", {rootID: id, reviewedCards}, callback);+ }+ return fetchPost("/api/riff/getNotebookRiffDueCards", {notebook: id, reviewedCards}, callback);+};diff --git a/app/src/card/newCardTab.ts b/app/src/card/newCardTab.tsindex 33f8aa36a9..01632d41d2 100644--- a/app/src/card/newCardTab.ts+++ b/app/src/card/newCardTab.ts@@ -1,7 +1,7 @@import {Tab} from "../layout/Tab";import {Custom} from "../layout/dock/Custom";import {bindCardEvent, genCardHTML} from "./openCard";-import {fetchPost} from "../util/fetch";+import {fetchDueCards} from "./fetchDueCards";import {Protyle} from "../protyle";import {setPanelFocus} from "../layout/util";import type {App} from "../index";@@ -52,12 +52,7 @@ export const newCardModel = (options: {delete options.data.cardsData;delete options.data.index;} else {- fetchPost(this.data.cardType === "all" ? "/api/riff/getRiffDueCards" :- (this.data.cardType === "doc" ? "/api/riff/getTreeRiffDueCards" : "/api/riff/getNotebookRiffDueCards"), {- rootID: this.data.id,- deckID: this.data.id,- notebook: this.data.id,- }, async (response) => {+ fetchDueCards(this.data.cardType, this.data.id, undefined, async (response) => {let cardsData = response.data;for (let i = 0; i < options.app.plugins.length; i++) {cardsData = await options.app.plugins[i].updateCards(cardsData);@@ -93,12 +88,7 @@ export const newCardModel = (options: {}},update() {- fetchPost(this.data.cardType === "all" ? "/api/riff/getRiffDueCards" :- (this.data.cardType === "doc" ? "/api/riff/getTreeRiffDueCards" : "/api/riff/getNotebookRiffDueCards"), {- rootID: this.data.id,- deckID: this.data.id,- notebook: this.data.id,- }, async (response) => {+ fetchDueCards(this.data.cardType, this.data.id, undefined, async (response) => {let cardsData = response.data;for (let i = 0; i < options.app.plugins.length; i++) {cardsData = await options.app.plugins[i].updateCards(cardsData);diff --git a/app/src/card/openCard.ts b/app/src/card/openCard.tsindex 931c5069d3..a9e294a3f3 100644--- a/app/src/card/openCard.ts+++ b/app/src/card/openCard.ts@@ -1,6 +1,7 @@import {Dialog} from "../dialog";import {openInputDialog} from "../dialog/inputDialog";import {fetchPost} from "../util/fetch";+import {fetchDueCards} from "./fetchDueCards";import {isMobile} from "../util/functions";import {Protyle} from "../protyle";import {Constants} from "../constants";@@ -314,12 +315,7 @@ export const bindCardEvent = async (options: {const fetchNewRound = () => {const currentCardType = filterElement.getAttribute("data-cardtype");const docId = filterElement.getAttribute("data-id");- fetchPost(currentCardType === "all" ? "/api/riff/getRiffDueCards" :- (currentCardType === "doc" ? "/api/riff/getTreeRiffDueCards" : "/api/riff/getNotebookRiffDueCards"), {- rootID: docId,- deckID: docId,- notebook: docId,- }, async (treeCards) => {+ fetchDueCards(currentCardType, docId, undefined, async (treeCards) => {index = 0;options.cardsData = treeCards.data;for (let i = 0; i < options.app.plugins.length; i++) {@@ -766,13 +762,7 @@ export const bindCardEvent = async (options: {index++;if (index > options.cardsData.cards.length - 1) {const currentCardType = filterElement.getAttribute("data-cardtype");- fetchPost(currentCardType === "all" ? "/api/riff/getRiffDueCards" :- (currentCardType === "doc" ? "/api/riff/getTreeRiffDueCards" : "/api/riff/getNotebookRiffDueCards"), {- rootID: docId,- deckID: docId,- notebook: docId,- reviewedCards: options.cardsData.cards- }, async (result) => {+ fetchDueCards(currentCardType, docId, options.cardsData.cards, async (result) => {emitEvent(options.cardsData.cards[index - 1], type);index = 0;options.cardsData = result.data;diff --git a/app/src/protyle/header/openTitleMenu.ts b/app/src/protyle/header/openTitleMenu.tsindex 5d922a7871..3a9c71bdec 100644--- a/app/src/protyle/header/openTitleMenu.ts+++ b/app/src/protyle/header/openTitleMenu.ts@@ -218,7 +218,7 @@ export const openTitleMenu = (protyle: IProtyle, position: IPosition, from: striaccelerator: window.siyuan.config.keymap.editor.general.spaceRepetition.custom,click: () => {fetchPost("/api/riff/getTreeRiffDueCards", {rootID: protyle.block.rootID}, (response) => {- openCardByData(protyle.app, response.data, "doc", protyle.block.rootID, response.data.name);+ openCardByData(protyle.app, response.data, "doc", protyle.block.rootID);});}}, {diff --git a/app/src/types/api/index.d.ts b/app/src/types/api/index.d.tsindex cc1078310a..d1882444bc 100644--- a/app/src/types/api/index.d.ts+++ b/app/src/types/api/index.d.ts@@ -244,6 +244,8 @@ export type CreateNotebookData = { "notebook": Notebook | null; };export type CreateNotebookRequestInput = { "name": string; };+export type CreateRiffDeckRequestInput = { "name": string; };+export type CreateSnapshotData = { "created": boolean; "id": string; };export type CreateSnapshotRequestInput = { "memo"?: string; };@@ -646,6 +648,8 @@ export type RenameFileRequestInput = { "newPath": string; "path": string; };export type RenameNotebookRequestInput = { "name": string; "notebook": string; };+export type RenameRiffDeckRequestInput = { "deckID": string; "name": string; };+export type RenameTagRequestInput = { "newLabel": string; "oldLabel": string; };export type RenderSprigRequestInput = { "template": string; };@@ -662,12 +666,46 @@ export type ResetGraphData = { "conf": GlobalGraphConf; };export type ResetLocalGraphData = { "conf": LocalGraphConf; };+export type ResetRiffCardsRequestInput = { "blockIDs"?: Array<string> | null; "deckID": string; "id": string; "type": string; };++export type ReviewRiffCardRequestInput = { "cardID": string; "deckID": string; "rating": number; "reviewedCards"?: Array<RiffReviewedCardInput> | null; };+export type RichClipboardAssetInput = { "box"?: string; "index": number; "path": string; };export type RichClipboardPrepared = { "assets": Array<RichClipboardPreparedAsset> | null; "batch": string; "groups": Array<string> | null; };export type RichClipboardPreparedAsset = { "index": number; "path": string; };+export type RiffBlockIDsRequestInput = { "blockIDs": Array<string>; };++export type RiffBlocksData = { "blocks": Array<SearchBlock | null> | null; };++export type RiffCardDueInput = { "due": string; "id": string; };++export type RiffCardRequestInput = { "cardID": string; "deckID": string; };++export type RiffCardsData = { "blocks": Array<SearchBlock | null> | null; "pageCount": number; "total": number; };++export type RiffCardsRequestInput = { "id": string; "page": number; "pageSize"?: number | null; };++export type RiffDeck = { "created": string; "id": string; "name": string; "size": number; "updated": string; };++export type RiffDeckCardsRequestInput = { "blockIDs": Array<string>; "deckID": string; };++export type RiffDeckRequestInput = { "deckID": string; };++export type RiffDueCard = { "blockID": string; "cardID": string; "deckID": string; "lapses": number; "lastReview": number; "nextDues": Record<string, string> | null; "reps": number; "state": number; };++export type RiffDueCardsData = { "cards": Array<RiffDueCard | null> | null; "unreviewedCount": number; "unreviewedNewCardCount": number; "unreviewedOldCardCount": number; };++export type RiffDueCardsRequestInput = { "deckID": string; "reviewedCards"?: Array<RiffReviewedCardInput> | null; };++export type RiffNotebookDueCardsRequestInput = { "notebook": string; "reviewedCards"?: Array<RiffReviewedCardInput> | null; };++export type RiffReviewedCardInput = { "cardID": string; };++export type RiffTreeDueCardsRequestInput = { "reviewedCards"?: Array<RiffReviewedCardInput> | null; "rootID": string; };+export type SQLQueryRequestInput = { "mode"?: string | null; "stmt": string; };export type SaveTemplateRequestInput = { "databaseMode"?: string; "directory"?: string; "id": string; "name": string; "overwrite": boolean; };@@ -748,6 +786,8 @@ export type SetPetalEnabledRequestInput = { "app"?: string | null; "enabled": boexport type SetPetalPublishEnabledRequestInput = { "enabled": boolean; "packageName": string; };+export type SetRiffCardsDueRequestInput = { "cardDues": Array<RiffCardDueInput>; };+export type SetSnapshotMemoRequestInput = { "id": string; "memo": string; };export type SetSnippetRequestInput = { "snippets": Array<SnippetInput>; };@@ -1165,23 +1205,6 @@ export type APILegacyPOSTPath ="/api/repo/setRetentionIndexesDaily" |"/api/repo/tagSnapshot" |"/api/repo/uploadCloudSnapshot" |- "/api/riff/addRiffCards" |- "/api/riff/batchSetRiffCardsDueTime" |- "/api/riff/createRiffDeck" |- "/api/riff/getNotebookRiffCards" |- "/api/riff/getNotebookRiffDueCards" |- "/api/riff/getRiffCards" |- "/api/riff/getRiffCardsByBlockIDs" |- "/api/riff/getRiffDecks" |- "/api/riff/getRiffDueCards" |- "/api/riff/getTreeRiffCards" |- "/api/riff/getTreeRiffDueCards" |- "/api/riff/removeRiffCards" |- "/api/riff/removeRiffDeck" |- "/api/riff/renameRiffDeck" |- "/api/riff/resetRiffCards" |- "/api/riff/reviewRiffCard" |- "/api/riff/skipReviewRiffCard" |"/api/setting/getBootAppearances" |"/api/setting/getCloudUser" |"/api/setting/getPublish" |@@ -2339,6 +2362,91 @@ export interface APIPOSTRoutes {response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };body: "json";};+ "/api/riff/addRiffCards": {+ request: RiffDeckCardsRequestInput;+ response: { "code": 0; "data": RiffDeck | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/riff/batchSetRiffCardsDueTime": {+ request: SetRiffCardsDueRequestInput;+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/riff/createRiffDeck": {+ request: CreateRiffDeckRequestInput;+ response: { "code": 0; "data": RiffDeck | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/riff/getNotebookRiffCards": {+ request: RiffCardsRequestInput;+ response: { "code": 0; "data": RiffCardsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/riff/getNotebookRiffDueCards": {+ request: RiffNotebookDueCardsRequestInput;+ response: { "code": 0; "data": RiffDueCardsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/riff/getRiffCards": {+ request: RiffCardsRequestInput;+ response: { "code": 0; "data": RiffCardsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/riff/getRiffCardsByBlockIDs": {+ request: RiffBlockIDsRequestInput;+ response: { "code": 0; "data": RiffBlocksData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/riff/getRiffDecks": {+ request: EmptyRequestInput;+ response: { "code": 0; "data": Array<RiffDeck | null>; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "none";+ };+ "/api/riff/getRiffDueCards": {+ request: RiffDueCardsRequestInput;+ response: { "code": 0; "data": RiffDueCardsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/riff/getTreeRiffCards": {+ request: RiffCardsRequestInput;+ response: { "code": 0; "data": RiffCardsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/riff/getTreeRiffDueCards": {+ request: RiffTreeDueCardsRequestInput;+ response: { "code": 0; "data": RiffDueCardsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/riff/removeRiffCards": {+ request: RiffDeckCardsRequestInput;+ response: { "code": 0; "data": RiffDeck | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/riff/removeRiffDeck": {+ request: RiffDeckRequestInput;+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/riff/renameRiffDeck": {+ request: RenameRiffDeckRequestInput;+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/riff/resetRiffCards": {+ request: ResetRiffCardsRequestInput;+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/riff/reviewRiffCard": {+ request: ReviewRiffCardRequestInput;+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/riff/skipReviewRiffCard": {+ request: RiffCardRequestInput;+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };"/api/search/findReplace": {request: FindReplaceRequestInput;response: { "code": 0; "data": null; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };diff --git a/app/tests/api-contract.types.ts b/app/tests/api-contract.types.tsindex c5dd2deb21..14f226d2fe 100644--- a/app/tests/api-contract.types.ts+++ b/app/tests/api-contract.types.ts@@ -6,6 +6,20 @@ declare const fetchGet: FetchGet;declare const fetchSyncPost: FetchSyncPost;declare const dynamicURL: string;+fetchPost("/api/riff/getRiffDecks", {}, response => {+ const decks: Array<{id: string; name: string} | null> = response.data;+ void decks;+});+fetchPost("/api/riff/resetRiffCards", {type: "deck", id: "deck", deckID: "deck", blockIDs: null});+fetchPost("/api/riff/getRiffDueCards", {deckID: "deck"}, response => {+ const due: string | undefined = response.data.cards?.[0]?.nextDues?.["1"];+ void due;+});+// @ts-expect-error 复习卡片时必须提供评分。+fetchPost("/api/riff/reviewRiffCard", {deckID: "deck", cardID: "card"});+// @ts-expect-error 复习评分必须为数值。+fetchPost("/api/riff/reviewRiffCard", {deckID: "deck", cardID: "card", rating: "1"});+fetchPost("/api/sync/setSyncLAN", {enabled: true, maxConcurrentReqs: 2.5}, response => {const peers: number = response.data.connectedPeers;void peers;diff --git a/docs/API-CONTRACTS.md b/docs/API-CONTRACTS.mdindex 05a9681262..dde414ab63 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+Flashcard contracts retain numeric truncation, pagination defaults, optional reviewed-card lists, nullable block results, and non-null deck lists. Notebook and document admission still occurs before deferred pagination errors. Card and deck mutations keep their model-layer validation and persistence behavior; encrypted notebook restrictions remain unchanged.+Sync contracts retain numeric truncation, conditional direction validation in manual mode, configuration field matching and JSON numeric normalization, and message display durations. Provider imports require exactly one file and preserve encrypted package contents and recovery paths. Authorization and read-only checks still precede body decoding; synchronization and notebook encryption remain in the model layer.Marketplace contracts retain required-field ordering, whitespace handling, theme mode dependencies, rating availability and rate-limit payloads, and local-package upload errors. Package and appearance responses declare their complete nested structures, including the fixed five-element rating distribution. Upload requests keep first-file selection and overwrite parsing. Installation, removal, authentication, and publish restrictions remain in the existing business handlers and middleware.diff --git a/docs/API-CONTRACTS.zh-CN.md b/docs/API-CONTRACTS.zh-CN.mdindex 781f962f72..dab32998a8 100644--- a/docs/API-CONTRACTS.zh-CN.md+++ b/docs/API-CONTRACTS.zh-CN.md@@ -24,6 +24,8 @@## 兼容要求+闪卡契约保留数值截断、分页默认值、可选的已复习卡片列表、块结果的空值以及非空牌组列表。笔记本和文档准入仍先于延迟的分页错误。卡片与牌组修改保留模型层校验及持久化行为,加密笔记本限制保持不变。+同步契约保留数值截断、手动模式下的条件方向校验、配置字段匹配与 JSON 数字归一化,以及消息显示时长。同步配置导入要求恰好一个文件,并保留加密包内容与恢复路径。鉴权及只读检查仍先于请求体解码,同步和笔记本加密继续由模型层处理。集市契约保留必填字段的校验顺序、空白处理、主题模式联动、评分可用性和限流载荷,以及本地包上传错误。包和外观响应声明完整嵌套结构,包括固定五项的评分分布。上传请求保留首文件选择及覆盖参数解析。安装、卸载、鉴权和发布限制仍由既有业务处理函数及中间件执行。diff --git a/kernel/api/contract_riff_test.go b/kernel/api/contract_riff_test.gonew file mode 100644index 0000000000..09cbba039a--- /dev/null+++ b/kernel/api/contract_riff_test.go@@ -0,0 +1,173 @@+package api++import (+ "encoding/json"+ "net/http/httptest"+ "os"+ "path/filepath"+ "reflect"+ "strings"+ "testing"++ "github.com/gin-gonic/gin"+ "github.com/siyuan-note/riff"+ "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/util"+)++func TestAPIContractRiffSerialization(t *testing.T) {+ for _, cards := range [][]*model.Flashcard{nil, {}, {nil}, {{DeckID: "deck", CardID: "card", BlockID: "block", Lapses: 2, Reps: 3, State: 1, LastReview: 1234567891234, NextDues: map[riff.Rating]string{0: "now", 3: "later"}}, {NextDues: map[riff.Rating]string{}}}} {+ actual, err := json.Marshal(riffDueCardsData(cards, 3, 1, 2))+ if err != nil {+ t.Fatal(err)+ }+ expected, err := json.Marshal(map[string]interface{}{"cards": cards, "unreviewedCount": 3, "unreviewedNewCardCount": 1, "unreviewedOldCardCount": 2})+ if err != nil {+ t.Fatal(err)+ }+ var got, want interface{}+ if json.Unmarshal(actual, &got) != nil || json.Unmarshal(expected, &want) != nil || !reflect.DeepEqual(got, want) {+ t.Fatalf("due card serialization changed: %s != %s", actual, expected)+ }+ payload, err := json.Marshal(apicontract.Success(riffDueCardsData(cards, 3, 1, 2)))+ if err != nil {+ t.Fatal(err)+ }+ bundle, err := apicontract.BuildBundle()+ if err != nil {+ t.Fatal(err)+ }+ if err = bundle.ValidateResponse("POST", "/api/riff/getRiffDueCards", payload); err != nil {+ t.Fatal(err)+ }+ }+}++func riffContractRequest(t *testing.T, name string, handler gin.HandlerFunc, body string) (code int, message string, data json.RawMessage) {+ t.Helper()+ engine := gin.New()+ path := "/api/riff/" + name+ engine.POST(path, handler)+ recorder := httptest.NewRecorder()+ engine.ServeHTTP(recorder, httptest.NewRequest("POST", path, strings.NewReader(body)))+ requireAPIContract(t, "POST", path, 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 {+ t.Fatal(err)+ }+ return response.Code, response.Msg, response.Data+}++func TestAPIContractRiffEmptyAndMissing(t *testing.T) {+ previousConf, previousDecks := model.Conf, model.Decks+ model.Conf, model.Decks = model.NewAppConf(), map[string]*riff.Deck{}+ t.Cleanup(func() { model.Conf, model.Decks = previousConf, previousDecks })+ for _, entry := range []struct {+ name string+ handler gin.HandlerFunc+ body, expected string+ }{+ {"getRiffDecks", getRiffDecks, "invalid body", `[]`},+ {"getRiffCards", getRiffCards, `{"id":"missing","page":1.9}`, `{"blocks":[],"total":0,"pageCount":0}`},+ {"getRiffDueCards", getRiffDueCards, `{"deckID":"missing","reviewedCards":null}`, `{"cards":null,"unreviewedCount":0,"unreviewedNewCardCount":0,"unreviewedOldCardCount":0}`},+ {"getRiffCardsByBlockIDs", getRiffCardsByBlockIDs, `{"blockIDs":[]}`, `{"blocks":[]}`},+ {"reviewRiffCard", reviewRiffCard, `{"deckID":"missing","cardID":"missing","rating":2.9}`, `null`},+ {"skipReviewRiffCard", skipReviewRiffCard, `{"deckID":"missing","cardID":"missing"}`, `null`},+ {"batchSetRiffCardsDueTime", batchSetRiffCardsDueTime, `{"cardDues":[]}`, `null`},+ } {+ code, msg, data := riffContractRequest(t, entry.name, entry.handler, entry.body)+ if code != 0 || msg != "" || string(data) != entry.expected {+ t.Fatalf("%s response changed: %d %s %s", entry.name, code, msg, data)+ }+ }+}++func TestAPIContractRiffDeckLifecycle(t *testing.T) {+ previousConf, previousDecks, previousData := model.Conf, model.Decks, util.DataDir+ model.Conf, model.Decks, util.DataDir = model.NewAppConf(), map[string]*riff.Deck{}, t.TempDir()+ model.Conf.Flashcard = conf.NewFlashcard()+ t.Cleanup(func() { model.Conf, model.Decks, util.DataDir = previousConf, previousDecks, previousData })+ if err := os.MkdirAll(filepath.Join(util.DataDir, "storage", "riff"), 0755); err != nil {+ t.Fatal(err)+ }+ code, msg, data := riffContractRequest(t, "createRiffDeck", createRiffDeck, `{"name":" deck "}`)+ var deck apicontract.RiffDeck+ if err := json.Unmarshal(data, &deck); err != nil || code != 0 || deck.Name != " deck " || deck.Size != 0 || deck.ID == "" || len(deck.Created) != 19 || len(deck.Updated) != 19 {+ t.Fatalf("deck creation changed: %d %s %s, %v", code, msg, data, err)+ }+ code, msg, data = riffContractRequest(t, "renameRiffDeck", renameRiffDeck, `{"deckID":"`+deck.ID+`","name":" renamed "}`)+ if code != 0 || string(data) != "null" || model.Decks[deck.ID].Name != " renamed " {+ t.Fatalf("deck rename changed: %d %s %s", code, msg, data)+ }+ model.LoadFlashcards()+ code, msg, data = riffContractRequest(t, "getRiffDecks", getRiffDecks, "")+ var decks []apicontract.RiffDeck+ if err := json.Unmarshal(data, &decks); err != nil || code != 0 || len(decks) != 1 || decks[0].ID != deck.ID || decks[0].Name != " renamed " {+ t.Fatalf("persisted deck changed: %d %s %s, %v", code, msg, data, err)+ }+ code, msg, data = riffContractRequest(t, "removeRiffDeck", removeRiffDeck, `{"deckID":" `+deck.ID+` "}`)+ if code != -1 || string(data) != "null" || model.Decks[deck.ID] == nil {+ t.Fatalf("deck ID was unexpectedly trimmed: %d %s %s", code, msg, data)+ }+ code, msg, data = riffContractRequest(t, "removeRiffDeck", removeRiffDeck, `{"deckID":"`+deck.ID+`"}`)+ if code != 0 || string(data) != "null" || model.Decks[deck.ID] != nil {+ t.Fatalf("deck removal changed: %d %s %s", code, msg, data)+ }+ code, _, data = riffContractRequest(t, "getRiffDecks", getRiffDecks, "")+ if code != 0 || string(data) != "[]" {+ t.Fatalf("empty decks changed: %d %s", code, data)+ }+}++func TestAPIContractRiffAdmissionOrder(t *testing.T) {+ _, boxID := setupArchiveWorkspace(t)+ previous := model.Conf+ model.Conf = model.NewAppConf()+ t.Cleanup(func() { model.Conf = previous })+ for _, entry := range []struct {+ name string+ handler gin.HandlerFunc+ body string+ language int+ }{+ {"getNotebookRiffCards", getNotebookRiffCards, `{"id":"` + boxID + `","page":false}`, 393},+ {"getNotebookRiffCards", getNotebookRiffCards, `{"id":"` + boxID + `"}`, 393},+ {"getNotebookRiffDueCards", getNotebookRiffDueCards, `{"notebook":"` + boxID + `","reviewedCards":null}`, 393},+ {"resetRiffCards", resetRiffCards, `{"type":"notebook","id":"` + boxID + `","deckID":"","blockIDs":[]}`, 393},+ {"getTreeRiffCards", getTreeRiffCards, `{"id":"missing","page":false}`, 180},+ {"getTreeRiffDueCards", getTreeRiffDueCards, `{"rootID":"missing"}`, 180},+ {"getRiffCardsByBlockIDs", getRiffCardsByBlockIDs, `{"blockIDs":["missing"]}`, 180},+ {"addRiffCards", addRiffCards, `{"deckID":"missing","blockIDs":["missing"]}`, 180},+ {"removeRiffCards", removeRiffCards, `{"deckID":"missing","blockIDs":["missing"]}`, 180},+ } {+ code, msg, data := riffContractRequest(t, entry.name, entry.handler, entry.body)+ if code != -1 || msg != model.Conf.Language(entry.language) || string(data) != "null" {+ t.Fatalf("%s admission changed: %d %s %s", entry.name, code, msg, data)+ }+ }+}++func TestAPIContractRiffInvalidBodies(t *testing.T) {+ for _, entry := range []struct {+ name string+ handler gin.HandlerFunc+ }{+ {"createRiffDeck", createRiffDeck}, {"renameRiffDeck", renameRiffDeck}, {"removeRiffDeck", removeRiffDeck},+ {"addRiffCards", addRiffCards}, {"removeRiffCards", removeRiffCards}, {"getRiffDueCards", getRiffDueCards},+ {"getTreeRiffDueCards", getTreeRiffDueCards}, {"getNotebookRiffDueCards", getNotebookRiffDueCards},+ {"reviewRiffCard", reviewRiffCard}, {"skipReviewRiffCard", skipReviewRiffCard}, {"getRiffCards", getRiffCards},+ {"getTreeRiffCards", getTreeRiffCards}, {"getNotebookRiffCards", getNotebookRiffCards},+ {"resetRiffCards", resetRiffCards}, {"batchSetRiffCardsDueTime", batchSetRiffCardsDueTime}, {"getRiffCardsByBlockIDs", getRiffCardsByBlockIDs},+ } {+ code, msg, data := riffContractRequest(t, entry.name, entry.handler, "")+ if code != -1 || !strings.Contains(msg, "the request body is empty or truncated (EOF)") || string(data) != "null" {+ t.Fatalf("%s parse error changed: %d %s %s", entry.name, code, msg, data)+ }+ }+}diff --git a/kernel/api/riff.go b/kernel/api/riff.goindex 897cd63b88..99b0eadef6 100644--- a/kernel/api/riff.go+++ b/kernel/api/riff.go@@ -17,467 +17,207 @@package apiimport (- "net/http"- "time"-"github.com/88250/gulu""github.com/gin-gonic/gin""github.com/siyuan-note/riff"+ "github.com/siyuan-note/siyuan/kernel/apicontract""github.com/siyuan-note/siyuan/kernel/model""github.com/siyuan-note/siyuan/kernel/util"+ "strconv"+ "time")-func getRiffCardsByBlockIDs(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }- blockIDsArg := arg["blockIDs"].([]any)- var blockIDs []string- for _, blockID := range blockIDsArg {- blockIDs = append(blockIDs, blockID.(string))- }+var getRiffCardsByBlockIDs = contractHandler(apicontract.GetRiffCardsByBlockIDs, func(c *gin.Context, request apicontract.RiffBlockIDsRequest) apicontract.Response[apicontract.RiffBlocksData] {+ blockIDs := riffBlockIDs(request.BlockIDs)if err := model.ValidateFlashcardBlockIDs(blockIDs); err != nil {- ret.Code = -1- ret.Msg = err.Error()- return- }-- blocks := model.GetFlashcardsByBlockIDs(blockIDs)- ret.Data = map[string]any{- "blocks": blocks,- }-}--func batchSetRiffCardsDueTime(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- arg, ok := util.JsonArg(c, ret)- if !ok {- return+ return apicontract.Failure[apicontract.RiffBlocksData](-1, err.Error())}+ return apicontract.Success(apicontract.RiffBlocksData{Blocks: searchBlockContracts(model.GetFlashcardsByBlockIDs(blockIDs))})+})+var batchSetRiffCardsDueTime = contractHandler(apicontract.BatchSetRiffCardsDueTime, func(c *gin.Context, request apicontract.SetRiffCardsDueRequest) apicontract.Response[apicontract.Null] {var cardDues []*model.SetFlashcardDueTime- for _, cardDueArg := range arg["cardDues"].([]any) {- cardDue := cardDueArg.(map[string]any)- cardDues = append(cardDues, &model.SetFlashcardDueTime{- ID: cardDue["id"].(string),- Due: cardDue["due"].(string),- })- }-- err := model.SetFlashcardsDueTime(cardDues)- if err != nil {- ret.Code = -1- ret.Msg = err.Error()- }-}--func resetRiffCards(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }-- typ := arg["type"].(string) // notebook, tree, deck- id := arg["id"].(string) // notebook ID, root ID, deck ID- deckID := arg["deckID"].(string) // deck ID- blockIDsArg := arg["blockIDs"] // 如果不传入 blockIDs (或者传入实参为空数组),则重置所有卡片- var blockIDs []string- if nil != blockIDsArg {- for _, blockID := range blockIDsArg.([]any) {- blockIDs = append(blockIDs, blockID.(string))- }+ for _, due := range request.CardDues {+ cardDues = append(cardDues, &model.SetFlashcardDueTime{ID: due.ID, Due: due.Due})}-- if err := model.ResetFlashcards(typ, id, deckID, blockIDs); err != nil {- ret.Code = -1- ret.Msg = err.Error()+ if err := model.SetFlashcardsDueTime(cardDues); err != nil {+ return apicontract.Failure[apicontract.Null](-1, err.Error())}-}--func getNotebookRiffCards(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+ return apicontract.Success(apicontract.Null{})+})- arg, ok := util.JsonArg(c, ret)- if !ok {- return+var resetRiffCards = contractHandler(apicontract.ResetRiffCards, func(c *gin.Context, request apicontract.ResetRiffCardsRequest) apicontract.Response[apicontract.Null] {+ if err := model.ResetFlashcards(request.Type, request.ID, request.DeckID, riffBlockIDs(request.BlockIDs)); err != nil {+ return apicontract.Failure[apicontract.Null](-1, err.Error())}+ return apicontract.Success(apicontract.Null{})+})- notebookID := arg["id"].(string)- if model.IsEncryptedBox(notebookID) {- ret.Code = -1- ret.Msg = model.Conf.Language(393)- return- }- page := int(arg["page"].(float64))- pageSize := 20- if nil != arg["pageSize"] {- pageSize = int(arg["pageSize"].(float64))+var getNotebookRiffCards = contractHandler(apicontract.GetNotebookRiffCards, func(c *gin.Context, request apicontract.RiffCardsRequest) apicontract.Response[apicontract.RiffCardsData] {+ if model.IsEncryptedBox(request.ID) {+ return apicontract.Failure[apicontract.RiffCardsData](-1, model.Conf.Language(393))}- blockIDs, total, pageCount := model.GetNotebookFlashcards(notebookID, page, pageSize)- ret.Data = map[string]any{- "blocks": blockIDs,- "total": total,- "pageCount": pageCount,- }-}--func getTreeRiffCards(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }-- rootID := arg["id"].(string)- if err := model.ValidateFlashcardBlockIDs([]string{rootID}); err != nil {- ret.Code = -1- ret.Msg = err.Error()- return- }- page := int(arg["page"].(float64))- pageSize := 20- if nil != arg["pageSize"] {- pageSize = int(arg["pageSize"].(float64))- }- blockIDs, total, pageCount := model.GetTreeFlashcards(rootID, page, pageSize)- ret.Data = map[string]any{- "blocks": blockIDs,- "total": total,- "pageCount": pageCount,- }-}--func getRiffCards(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }-- deckID := arg["id"].(string)- page := int(arg["page"].(float64))- pageSize := 20- if nil != arg["pageSize"] {- pageSize = int(arg["pageSize"].(float64))- }- blocks, total, pageCount := model.GetDeckFlashcards(deckID, page, pageSize)- ret.Data = map[string]any{- "blocks": blocks,- "total": total,- "pageCount": pageCount,- }-}--func reviewRiffCard(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }-- deckID := arg["deckID"].(string)- cardID := arg["cardID"].(string)- rating := int(arg["rating"].(float64))- reviewedCardIDs := getReviewedCards(arg)- err := model.ReviewFlashcard(deckID, cardID, riff.Rating(rating), reviewedCardIDs)+ page, pageSize, err := request.Pagination()if err != nil {- ret.Code = -1- ret.Msg = err.Error()- return+ return apicontract.Failure[apicontract.RiffCardsData](-1, err.Error())}-}+ blocks, total, pageCount := model.GetNotebookFlashcards(request.ID, page, pageSize)+ return apicontract.Success(riffCardsData(blocks, total, pageCount))+})-func skipReviewRiffCard(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- arg, ok := util.JsonArg(c, ret)- if !ok {- return+var getTreeRiffCards = contractHandler(apicontract.GetTreeRiffCards, func(c *gin.Context, request apicontract.RiffCardsRequest) apicontract.Response[apicontract.RiffCardsData] {+ if err := model.ValidateFlashcardBlockIDs([]string{request.ID}); err != nil {+ return apicontract.Failure[apicontract.RiffCardsData](-1, err.Error())}-- deckID := arg["deckID"].(string)- cardID := arg["cardID"].(string)- err := model.SkipReviewFlashcard(deckID, cardID)+ page, pageSize, err := request.Pagination()if err != nil {- ret.Code = -1- ret.Msg = err.Error()- return- }-}--func getNotebookRiffDueCards(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- arg, ok := util.JsonArg(c, ret)- if !ok {- return+ return apicontract.Failure[apicontract.RiffCardsData](-1, err.Error())}+ blocks, total, pageCount := model.GetTreeFlashcards(request.ID, page, pageSize)+ return apicontract.Success(riffCardsData(blocks, total, pageCount))+})- notebookID := arg["notebook"].(string)- reviewedCardIDs := getReviewedCards(arg)- cards, unreviewedCount, unreviewedNewCardCount, unreviewedOldCardCount, err := model.GetNotebookDueFlashcards(notebookID, reviewedCardIDs)+var getRiffCards = contractHandler(apicontract.GetRiffCards, func(c *gin.Context, request apicontract.RiffCardsRequest) apicontract.Response[apicontract.RiffCardsData] {+ page, pageSize, err := request.Pagination()if err != nil {- ret.Code = -1- ret.Msg = err.Error()- return+ return apicontract.Failure[apicontract.RiffCardsData](-1, err.Error())}+ blocks, total, pageCount := model.GetDeckFlashcards(request.ID, page, pageSize)+ return apicontract.Success(riffCardsData(blocks, total, pageCount))+})- ret.Data = map[string]any{- "cards": cards,- "unreviewedCount": unreviewedCount,- "unreviewedNewCardCount": unreviewedNewCardCount,- "unreviewedOldCardCount": unreviewedOldCardCount,+var reviewRiffCard = contractHandler(apicontract.ReviewRiffCard, func(c *gin.Context, request apicontract.ReviewRiffCardRequest) apicontract.Response[apicontract.Null] {+ if err := model.ReviewFlashcard(request.DeckID, request.CardID, riff.Rating(int(request.Rating)), request.IDs()); err != nil {+ return apicontract.Failure[apicontract.Null](-1, err.Error())}-}--func getTreeRiffDueCards(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+ return apicontract.Success(apicontract.Null{})+})- arg, ok := util.JsonArg(c, ret)- if !ok {- return+var skipReviewRiffCard = contractHandler(apicontract.SkipReviewRiffCard, func(c *gin.Context, request apicontract.RiffCardRequest) apicontract.Response[apicontract.Null] {+ if err := model.SkipReviewFlashcard(request.DeckID, request.CardID); err != nil {+ return apicontract.Failure[apicontract.Null](-1, err.Error())}+ return apicontract.Success(apicontract.Null{})+})- rootID := arg["rootID"].(string)- reviewedCardIDs := getReviewedCards(arg)- cards, unreviewedCount, unreviewedNewCardCount, unreviewedOldCardCount, err := model.GetTreeDueFlashcards(rootID, reviewedCardIDs)+var getNotebookRiffDueCards = contractHandler(apicontract.GetNotebookRiffDueCards, func(c *gin.Context, request apicontract.RiffNotebookDueCardsRequest) apicontract.Response[apicontract.RiffDueCardsData] {+ cards, count, newCount, oldCount, err := model.GetNotebookDueFlashcards(request.Notebook, request.IDs())if err != nil {- ret.Code = -1- ret.Msg = err.Error()- return- }-- ret.Data = map[string]any{- "cards": cards,- "unreviewedCount": unreviewedCount,- "unreviewedNewCardCount": unreviewedNewCardCount,- "unreviewedOldCardCount": unreviewedOldCardCount,- }-}--func getRiffDueCards(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- arg, ok := util.JsonArg(c, ret)- if !ok {- return+ return apicontract.Failure[apicontract.RiffDueCardsData](-1, err.Error())}+ return apicontract.Success(riffDueCardsData(cards, count, newCount, oldCount))+})- deckID := arg["deckID"].(string)- reviewedCardIDs := getReviewedCards(arg)- cards, unreviewedCount, unreviewedNewCardCount, unreviewedOldCardCount, err := model.GetDueFlashcards(deckID, reviewedCardIDs)+var getTreeRiffDueCards = contractHandler(apicontract.GetTreeRiffDueCards, func(c *gin.Context, request apicontract.RiffTreeDueCardsRequest) apicontract.Response[apicontract.RiffDueCardsData] {+ cards, count, newCount, oldCount, err := model.GetTreeDueFlashcards(request.RootID, request.IDs())if err != nil {- ret.Code = -1- ret.Msg = err.Error()- return- }-- ret.Data = map[string]any{- "cards": cards,- "unreviewedCount": unreviewedCount,- "unreviewedNewCardCount": unreviewedNewCardCount,- "unreviewedOldCardCount": unreviewedOldCardCount,- }-}--func getReviewedCards(arg map[string]any) (ret []string) {- if nil == arg["reviewedCards"] {- return+ return apicontract.Failure[apicontract.RiffDueCardsData](-1, err.Error())}+ return apicontract.Success(riffDueCardsData(cards, count, newCount, oldCount))+})- reviewedCardsArg := arg["reviewedCards"].([]any)- for _, card := range reviewedCardsArg {- c := card.(map[string]any)- cardID := c["cardID"].(string)- ret = append(ret, cardID)- }- return-}--func removeRiffCards(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- arg, ok := util.JsonArg(c, ret)- if !ok {- return+var getRiffDueCards = contractHandler(apicontract.GetRiffDueCards, func(c *gin.Context, request apicontract.RiffDueCardsRequest) apicontract.Response[apicontract.RiffDueCardsData] {+ cards, count, newCount, oldCount, err := model.GetDueFlashcards(request.DeckID, request.IDs())+ if err != nil {+ return apicontract.Failure[apicontract.RiffDueCardsData](-1, err.Error())}+ return apicontract.Success(riffDueCardsData(cards, count, newCount, oldCount))+})- deckID := arg["deckID"].(string)- blockIDsArg := arg["blockIDs"].([]any)- var blockIDs []string- for _, blockID := range blockIDsArg {- blockIDs = append(blockIDs, blockID.(string))- }+var removeRiffCards = contractHandler(apicontract.RemoveRiffCards, func(c *gin.Context, request apicontract.RiffDeckCardsRequest) apicontract.Response[*apicontract.RiffDeck] {+ blockIDs := riffBlockIDs(request.BlockIDs)if err := model.ValidateFlashcardBlockIDs(blockIDs); err != nil {- ret.Code = -1- ret.Msg = err.Error()- return- }-- transactions := []*model.Transaction{- {- DoOperations: []*model.Operation{- {- Action: "removeFlashcards",- DeckID: deckID,- BlockIDs: blockIDs,- },- },- },+ return apicontract.Failure[*apicontract.RiffDeck](-1, err.Error())}-+ transactions := []*model.Transaction{{DoOperations: []*model.Operation{{Action: "removeFlashcards", DeckID: request.DeckID, BlockIDs: blockIDs}}}}model.PerformTransactions(&transactions)model.FlushTxQueue()-- if "" != deckID {- deck := model.Decks[deckID]- ret.Data = deckData(deck)- }- // All 卡包不返回数据-}--func addRiffCards(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- arg, ok := util.JsonArg(c, ret)- if !ok {- return+ if request.DeckID != "" {+ return apicontract.Success(deckData(model.Decks[request.DeckID]))}+ return apicontract.Success[*apicontract.RiffDeck](nil)+})- deckID := arg["deckID"].(string)- blockIDsArg := arg["blockIDs"].([]any)- var blockIDs []string- for _, blockID := range blockIDsArg {- blockIDs = append(blockIDs, blockID.(string))- }+var addRiffCards = contractHandler(apicontract.AddRiffCards, func(c *gin.Context, request apicontract.RiffDeckCardsRequest) apicontract.Response[*apicontract.RiffDeck] {+ blockIDs := riffBlockIDs(request.BlockIDs)if err := model.ValidateFlashcardBlockIDs(blockIDs); err != nil {- ret.Code = -1- ret.Msg = err.Error()- return- }-- transactions := []*model.Transaction{- {- DoOperations: []*model.Operation{- {- Action: "addFlashcards",- DeckID: deckID,- BlockIDs: blockIDs,- },- },- },+ return apicontract.Failure[*apicontract.RiffDeck](-1, err.Error())}-+ transactions := []*model.Transaction{{DoOperations: []*model.Operation{{Action: "addFlashcards", DeckID: request.DeckID, BlockIDs: blockIDs}}}}model.PerformTransactions(&transactions)model.FlushTxQueue()+ return apicontract.Success(deckData(model.Decks[request.DeckID]))+})- deck := model.Decks[deckID]- ret.Data = deckData(deck)-}--func renameRiffDeck(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- arg, ok := util.JsonArg(c, ret)- if !ok {- return+var renameRiffDeck = contractHandler(apicontract.RenameRiffDeck, func(c *gin.Context, request apicontract.RenameRiffDeckRequest) apicontract.Response[apicontract.Null] {+ if err := model.RenameDeck(request.DeckID, request.Name); err != nil {+ return apicontract.Failure[apicontract.Null](-1, err.Error())}+ return apicontract.Success(apicontract.Null{})+})- deckID := arg["deckID"].(string)- name := arg["name"].(string)- err := model.RenameDeck(deckID, name)- if err != nil {- ret.Code = -1- ret.Msg = err.Error()- return- }-}--func removeRiffDeck(c *gin.Context) {+var removeRiffDeck = contractHandler(apicontract.RemoveRiffDeck, func(c *gin.Context, request apicontract.RiffDeckRequest) apicontract.Response[apicontract.Null] {ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- arg, ok := util.JsonArg(c, ret)- if !ok {- return+ if util.InvalidIDPattern(request.DeckID, ret) {+ return contractFailure[apicontract.Null](ret)}-- deckID := arg["deckID"].(string)- if util.InvalidIDPattern(deckID, ret) {- return+ if err := model.RemoveDeck(request.DeckID); err != nil {+ return apicontract.Failure[apicontract.Null](-1, err.Error())}+ return apicontract.Success(apicontract.Null{})+})- err := model.RemoveDeck(deckID)+var createRiffDeck = contractHandler(apicontract.CreateRiffDeck, func(c *gin.Context, request apicontract.CreateRiffDeckRequest) apicontract.Response[*apicontract.RiffDeck] {+ deck, err := model.CreateDeck(request.Name)if err != nil {- ret.Code = -1- ret.Msg = err.Error()- return+ return apicontract.Failure[*apicontract.RiffDeck](-1, err.Error())}-}--func createRiffDeck(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }-- name := arg["name"].(string)- deck, err := model.CreateDeck(name)- if err != nil {- ret.Code = -1- ret.Msg = err.Error()- return- }- ret.Data = deckData(deck)-}--func getRiffDecks(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+ return apicontract.Success(deckData(deck))+})+var getRiffDecks = contractHandler(apicontract.GetRiffDecks, func(c *gin.Context, request apicontract.EmptyRequest) apicontract.Response[[]*apicontract.RiffDeck] {decks := model.GetDecks()- var data []any+ data := make([]*apicontract.RiffDeck, 0, len(decks))for _, deck := range decks {data = append(data, deckData(deck))}- if 1 > len(data) {- data = []any{}+ return apicontract.Success(data)+})++func deckData(deck *riff.Deck) *apicontract.RiffDeck {+ return &apicontract.RiffDeck{ID: deck.ID, Name: deck.Name, Size: model.CountSupportedFlashcards(deck),+ Created: time.UnixMilli(deck.Created).Format("2006-01-02 15:04:05"), Updated: time.UnixMilli(deck.Updated).Format("2006-01-02 15:04:05")}+}++func riffBlockIDs(ids []string) []string {+ if len(ids) == 0 {+ return nil}- ret.Data = data+ return ids}-func deckData(deck *riff.Deck) map[string]any {- return map[string]any{- "id": deck.ID,- "name": deck.Name,- "size": model.CountSupportedFlashcards(deck),- "created": time.UnixMilli(deck.Created).Format("2006-01-02 15:04:05"),- "updated": time.UnixMilli(deck.Updated).Format("2006-01-02 15:04:05"),+func riffCardsData(blocks []*model.Block, total, pageCount int) apicontract.RiffCardsData {+ return apicontract.RiffCardsData{Blocks: searchBlockContracts(blocks), Total: total, PageCount: pageCount}+}++func riffDueCardsData(cards []*model.Flashcard, count, newCount, oldCount int) apicontract.RiffDueCardsData {+ var values []*apicontract.RiffDueCard+ if cards != nil {+ values = make([]*apicontract.RiffDueCard, len(cards))+ for i, card := range cards {+ if card == nil {+ continue+ }+ var nextDues map[string]string+ if card.NextDues != nil {+ nextDues = make(map[string]string, len(card.NextDues))+ for rating, due := range card.NextDues {+ nextDues[strconv.Itoa(int(rating))] = due+ }+ }+ values[i] = &apicontract.RiffDueCard{DeckID: card.DeckID, CardID: card.CardID, BlockID: card.BlockID,+ Lapses: card.Lapses, Reps: card.Reps, State: int(card.State), LastReview: card.LastReview, NextDues: nextDues}+ }}+ return apicontract.RiffDueCardsData{Cards: values, UnreviewedCount: count, UnreviewedNewCardCount: newCount, UnreviewedOldCardCount: oldCount}}diff --git a/kernel/apicontract/contracts.go b/kernel/apicontract/contracts.goindex fad45ba94d..da849a4a67 100644--- a/kernel/apicontract/contracts.go+++ b/kernel/apicontract/contracts.go@@ -628,3 +628,21 @@ var ExportSyncProviderS3 = define[EmptyRequest, SyncProviderExportData]("exportSvar ImportSyncProviderS3 = define[SyncProviderImportRequest, SyncS3Data]("importSyncProviderS3", "/api/sync/importSyncProviderS3", MultipartBody, ResponseOptions{DataOnError: true}, "POST")var ExportSyncProviderWebDAV = define[EmptyRequest, SyncProviderExportData]("exportSyncProviderWebDAV", "/api/sync/exportSyncProviderWebDAV", NoBody, ResponseOptions{}, "POST")var ImportSyncProviderWebDAV = define[SyncProviderImportRequest, SyncWebDAVData]("importSyncProviderWebDAV", "/api/sync/importSyncProviderWebDAV", MultipartBody, ResponseOptions{DataOnError: true}, "POST")++var GetRiffCardsByBlockIDs = define[RiffBlockIDsRequest, RiffBlocksData]("getRiffCardsByBlockIDs", "/api/riff/getRiffCardsByBlockIDs", JSONBody, ResponseOptions{}, "POST")+var BatchSetRiffCardsDueTime = define[SetRiffCardsDueRequest, Null]("batchSetRiffCardsDueTime", "/api/riff/batchSetRiffCardsDueTime", JSONBody, ResponseOptions{}, "POST")+var ResetRiffCards = define[ResetRiffCardsRequest, Null]("resetRiffCards", "/api/riff/resetRiffCards", JSONBody, ResponseOptions{}, "POST")+var GetNotebookRiffCards = define[RiffCardsRequest, RiffCardsData]("getNotebookRiffCards", "/api/riff/getNotebookRiffCards", JSONBody, ResponseOptions{}, "POST")+var GetTreeRiffCards = define[RiffCardsRequest, RiffCardsData]("getTreeRiffCards", "/api/riff/getTreeRiffCards", JSONBody, ResponseOptions{}, "POST")+var GetRiffCards = define[RiffCardsRequest, RiffCardsData]("getRiffCards", "/api/riff/getRiffCards", JSONBody, ResponseOptions{}, "POST")+var ReviewRiffCard = define[ReviewRiffCardRequest, Null]("reviewRiffCard", "/api/riff/reviewRiffCard", JSONBody, ResponseOptions{}, "POST")+var SkipReviewRiffCard = define[RiffCardRequest, Null]("skipReviewRiffCard", "/api/riff/skipReviewRiffCard", JSONBody, ResponseOptions{}, "POST")+var GetNotebookRiffDueCards = define[RiffNotebookDueCardsRequest, RiffDueCardsData]("getNotebookRiffDueCards", "/api/riff/getNotebookRiffDueCards", JSONBody, ResponseOptions{}, "POST")+var GetTreeRiffDueCards = define[RiffTreeDueCardsRequest, RiffDueCardsData]("getTreeRiffDueCards", "/api/riff/getTreeRiffDueCards", JSONBody, ResponseOptions{}, "POST")+var GetRiffDueCards = define[RiffDueCardsRequest, RiffDueCardsData]("getRiffDueCards", "/api/riff/getRiffDueCards", JSONBody, ResponseOptions{}, "POST")+var RemoveRiffCards = define[RiffDeckCardsRequest, *RiffDeck]("removeRiffCards", "/api/riff/removeRiffCards", JSONBody, ResponseOptions{}, "POST")+var AddRiffCards = define[RiffDeckCardsRequest, *RiffDeck]("addRiffCards", "/api/riff/addRiffCards", JSONBody, ResponseOptions{}, "POST")+var RenameRiffDeck = define[RenameRiffDeckRequest, Null]("renameRiffDeck", "/api/riff/renameRiffDeck", JSONBody, ResponseOptions{}, "POST")+var RemoveRiffDeck = define[RiffDeckRequest, Null]("removeRiffDeck", "/api/riff/removeRiffDeck", JSONBody, ResponseOptions{}, "POST")+var CreateRiffDeck = define[CreateRiffDeckRequest, *RiffDeck]("createRiffDeck", "/api/riff/createRiffDeck", JSONBody, ResponseOptions{}, "POST")+var GetRiffDecks = define[EmptyRequest, []*RiffDeck]("getRiffDecks", "/api/riff/getRiffDecks", NoBody, ResponseOptions{NonNullable: true}, "POST")diff --git a/kernel/apicontract/legacy_routes.json b/kernel/apicontract/legacy_routes.jsonindex c8571e75c4..bbf49b6916 100644--- a/kernel/apicontract/legacy_routes.json+++ b/kernel/apicontract/legacy_routes.json@@ -212,23 +212,6 @@{"method":"POST","path":"/api/repo/setRetentionIndexesDaily","handler":"setRetentionIndexesDaily"},{"method":"POST","path":"/api/repo/tagSnapshot","handler":"tagSnapshot"},{"method":"POST","path":"/api/repo/uploadCloudSnapshot","handler":"uploadCloudSnapshot"},- {"method":"POST","path":"/api/riff/addRiffCards","handler":"addRiffCards"},- {"method":"POST","path":"/api/riff/batchSetRiffCardsDueTime","handler":"batchSetRiffCardsDueTime"},- {"method":"POST","path":"/api/riff/createRiffDeck","handler":"createRiffDeck"},- {"method":"POST","path":"/api/riff/getNotebookRiffCards","handler":"getNotebookRiffCards"},- {"method":"POST","path":"/api/riff/getNotebookRiffDueCards","handler":"getNotebookRiffDueCards"},- {"method":"POST","path":"/api/riff/getRiffCards","handler":"getRiffCards"},- {"method":"POST","path":"/api/riff/getRiffCardsByBlockIDs","handler":"getRiffCardsByBlockIDs"},- {"method":"POST","path":"/api/riff/getRiffDecks","handler":"getRiffDecks"},- {"method":"POST","path":"/api/riff/getRiffDueCards","handler":"getRiffDueCards"},- {"method":"POST","path":"/api/riff/getTreeRiffCards","handler":"getTreeRiffCards"},- {"method":"POST","path":"/api/riff/getTreeRiffDueCards","handler":"getTreeRiffDueCards"},- {"method":"POST","path":"/api/riff/removeRiffCards","handler":"removeRiffCards"},- {"method":"POST","path":"/api/riff/removeRiffDeck","handler":"removeRiffDeck"},- {"method":"POST","path":"/api/riff/renameRiffDeck","handler":"renameRiffDeck"},- {"method":"POST","path":"/api/riff/resetRiffCards","handler":"resetRiffCards"},- {"method":"POST","path":"/api/riff/reviewRiffCard","handler":"reviewRiffCard"},- {"method":"POST","path":"/api/riff/skipReviewRiffCard","handler":"skipReviewRiffCard"},{"method":"POST","path":"/api/setting/getBootAppearances","handler":"getBootAppearances"},{"method":"POST","path":"/api/setting/getCloudUser","handler":"getCloudUser"},{"method":"POST","path":"/api/setting/getPublish","handler":"getPublish"},diff --git a/kernel/apicontract/riff.go b/kernel/apicontract/riff.gonew file mode 100644index 0000000000..271e077bfa--- /dev/null+++ b/kernel/apicontract/riff.go@@ -0,0 +1,166 @@+package apicontract++import (+ "io"+ "reflect"+)++type RiffBlockIDsRequest struct {+ BlockIDs []string `json:"blockIDs"`+}++type RiffDeckCardsRequest struct {+ DeckID string `json:"deckID"`+ RiffBlockIDsRequest+}++type RiffDeckRequest struct {+ DeckID string `json:"deckID"`+}++type CreateRiffDeckRequest struct {+ Name string `json:"name"`+}++type RenameRiffDeckRequest struct {+ DeckID string `json:"deckID"`+ Name string `json:"name"`+}++type RiffDeck struct {+ ID string `json:"id"`+ Name string `json:"name"`+ Size int `json:"size"`+ Created string `json:"created"`+ Updated string `json:"updated"`+}++type RiffCardsRequest struct {+ ID string `json:"id"`+ Page float64 `json:"page"`+ PageSize *float64 `json:"pageSize" api:"optional"`+ paginationError error+}++// Pagination 在笔记本或文档准入完成后报告分页错误。+func (r RiffCardsRequest) Pagination() (page, pageSize int, err error) {+ page, pageSize = int(r.Page), 20+ if r.PageSize != nil {+ pageSize = int(*r.PageSize)+ }+ return page, pageSize, r.paginationError+}++type RiffCardsData struct {+ Blocks []*SearchBlock `json:"blocks"`+ Total int `json:"total"`+ PageCount int `json:"pageCount"`+}++type RiffBlocksData struct {+ Blocks []*SearchBlock `json:"blocks"`+}++type RiffReviewedCard struct {+ CardID string `json:"cardID"`+}++type RiffReviewedCards struct {+ ReviewedCards []RiffReviewedCard `json:"reviewedCards" api:"optional,nullable"`+}++func (r RiffReviewedCards) IDs() (ids []string) {+ for _, card := range r.ReviewedCards {+ ids = append(ids, card.CardID)+ }+ return+}++type RiffDueCardsRequest struct {+ DeckID string `json:"deckID"`+ RiffReviewedCards+}++type RiffTreeDueCardsRequest struct {+ RootID string `json:"rootID"`+ RiffReviewedCards+}++type RiffNotebookDueCardsRequest struct {+ Notebook string `json:"notebook"`+ RiffReviewedCards+}++type RiffCardRequest struct {+ DeckID string `json:"deckID"`+ CardID string `json:"cardID"`+}++type ReviewRiffCardRequest struct {+ RiffCardRequest+ Rating float64 `json:"rating"`+ RiffReviewedCards+}++type RiffDueCard struct {+ DeckID string `json:"deckID"`+ CardID string `json:"cardID"`+ BlockID string `json:"blockID"`+ Lapses int `json:"lapses"`+ Reps int `json:"reps"`+ State int `json:"state"`+ LastReview int64 `json:"lastReview"`+ NextDues map[string]string `json:"nextDues"`+}++type RiffDueCardsData struct {+ Cards []*RiffDueCard `json:"cards"`+ UnreviewedCount int `json:"unreviewedCount"`+ UnreviewedNewCardCount int `json:"unreviewedNewCardCount"`+ UnreviewedOldCardCount int `json:"unreviewedOldCardCount"`+}++type ResetRiffCardsRequest struct {+ Type string `json:"type"`+ ID string `json:"id"`+ DeckID string `json:"deckID"`+ BlockIDs []string `json:"blockIDs" api:"optional,nullable"`+}++type RiffCardDue struct {+ ID string `json:"id"`+ Due string `json:"due"`+}++type SetRiffCardsDueRequest struct {+ CardDues []RiffCardDue `json:"cardDues"`+}++func decodeRiffCards(reader io.Reader, path string) (request RiffCardsRequest, err error) {+ fields, err := blockRequestFields(reader, path)+ if err != nil {+ return request, err+ }+ var identity struct {+ ID string `json:"id"`+ }+ if err = decodeRequestFields(reflect.ValueOf(&identity).Elem(), fields); err != nil {+ return request, err+ }+ request.ID = identity.ID+ var pagination struct {+ Page float64 `json:"page"`+ PageSize *float64 `json:"pageSize" api:"optional"`+ }+ request.paginationError = decodeRequestFields(reflect.ValueOf(&pagination).Elem(), fields)+ request.Page, request.PageSize = pagination.Page, pagination.PageSize+ return request, nil+}++func init() {+ for _, endpoint := range []*Endpoint[RiffCardsRequest, RiffCardsData]{&GetRiffCards, &GetTreeRiffCards, &GetNotebookRiffCards} {+ endpoint.decodeRequest = func(reader io.Reader) (RiffCardsRequest, error) {+ return decodeRiffCards(reader, endpoint.Definition().Path)+ }+ }+}diff --git a/kernel/apicontract/riff_test.go b/kernel/apicontract/riff_test.gonew file mode 100644index 0000000000..24d02cf0a6--- /dev/null+++ b/kernel/apicontract/riff_test.go@@ -0,0 +1,82 @@+package apicontract++import (+ "strings"+ "testing"+)++func TestRiffPaginationCompatibility(t *testing.T) {+ for _, endpoint := range []Endpoint[RiffCardsRequest, RiffCardsData]{GetRiffCards, GetTreeRiffCards, GetNotebookRiffCards} {+ for _, entry := range []struct {+ body string+ page, size int+ deferred bool+ }{+ {`{"id":" untouched ","page":2.9}`, 2, 20, false},+ {`{"id":" untouched ","page":-2.9,"pageSize":-3.9}`, -2, -3, false},+ {`{"id":" untouched ","page":0,"pageSize":null}`, 0, 20, false},+ {`{"id":" untouched ","page":1,"pageSize":0}`, 1, 0, false},+ {`{"id":" untouched ","page":null}`, 0, 20, true},+ {`{"id":" untouched ","page":1,"pageSize":false}`, 1, 20, true},+ {`{"id":" untouched "}`, 0, 20, true},+ } {+ request, err := endpoint.Decode(strings.NewReader(entry.body))+ if err != nil || request.ID != " untouched " {+ t.Fatalf("identity decoding changed: %+v, %v", request, err)+ }+ page, size, err := request.Pagination()+ if (err != nil) != entry.deferred || !entry.deferred && (page != entry.page || size != entry.size) {+ t.Fatalf("pagination changed: %s: %d %d %v", entry.body, page, size, err)+ }+ }+ for _, body := range []string{`{}`, `{"id":null}`, `{"id":3}`, ``} {+ if _, err := endpoint.Decode(strings.NewReader(body)); err == nil {+ t.Fatalf("invalid identity accepted: %s", body)+ }+ }+ }+}++func TestRiffReviewedCardsCompatibility(t *testing.T) {+ for _, suffix := range []string{``, `,"reviewedCards":null`, `,"reviewedCards":[]`} {+ request, err := ReviewRiffCard.Decode(strings.NewReader(`{"deckID":" deck ","cardID":" card ","rating":2.9` + suffix + `}`))+ if err != nil || request.IDs() != nil || request.DeckID != " deck " || int(request.Rating) != 2 {+ t.Fatalf("review defaults changed: %+v, %v", request, err)+ }+ }+ request, err := GetRiffDueCards.Decode(strings.NewReader(`{"deckID":"deck","reviewedCards":[{"cardID":" first ","ignored":true},{"cardID":"second"},{"cardID":"second"}]}`))+ if err != nil || strings.Join(request.IDs(), ",") != " first ,second,second" {+ t.Fatalf("review IDs changed: %+v, %v", request, err)+ }+ for _, body := range []string{`{"deckID":"d","reviewedCards":[null]}`, `{"deckID":"d","reviewedCards":[{}]}`, `{"deckID":"d","reviewedCards":[{"cardID":null}]}`, `{"deckID":"d","reviewedCards":false}`} {+ if _, err := GetRiffDueCards.Decode(strings.NewReader(body)); err == nil {+ t.Fatalf("invalid reviewed card accepted: %s", body)+ }+ }+}++func TestRiffRequestCompatibility(t *testing.T) {+ for _, suffix := range []string{``, `,"blockIDs":null`, `,"blockIDs":[]`} {+ request, err := ResetRiffCards.Decode(strings.NewReader(`{"type":" deck ","id":" id ","deckID":" deck "` + suffix + `}`))+ if err != nil || len(request.BlockIDs) != 0 || request.Type != " deck " {+ t.Fatalf("reset defaults changed: %+v, %v", request, err)+ }+ }+ for _, body := range []string{`{}`, `{"blockIDs":null}`, `{"blockIDs":[null]}`, `{"blockIDs":[1]}`} {+ if _, err := GetRiffCardsByBlockIDs.Decode(strings.NewReader(body)); err == nil {+ t.Fatalf("invalid blocks accepted: %s", body)+ }+ }+ request, err := BatchSetRiffCardsDueTime.Decode(strings.NewReader(`{"cardDues":[{"id":" id ","due":" date ","other":1}]}`))+ if err != nil || request.CardDues[0].ID != " id " || request.CardDues[0].Due != " date " {+ t.Fatalf("due time changed: %+v, %v", request, err)+ }+ for _, body := range []string{`{"cardDues":null}`, `{"cardDues":[null]}`, `{"cardDues":[{"id":"x"}]}`} {+ if _, err := BatchSetRiffCardsDueTime.Decode(strings.NewReader(body)); err == nil {+ t.Fatalf("invalid due accepted: %s", body)+ }+ }+ if _, err := GetRiffDecks.Decode(strings.NewReader("invalid body")); err != nil {+ t.Fatal(err)+ }+}diff --git a/kernel/apicontract/schema.json b/kernel/apicontract/schema.jsonindex c4a4ccc0f1..0d79dfe9b2 100644--- a/kernel/apicontract/schema.json+++ b/kernel/apicontract/schema.json@@ -4188,6 +4188,18 @@],"additionalProperties": false},+ "CreateRiffDeckRequestInput": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ }+ },+ "required": [+ "name"+ ],+ "additionalProperties": false+ },"CreateSnapshotData": {"type": "object","properties": {@@ -11228,6 +11240,22 @@],"additionalProperties": false},+ "RenameRiffDeckRequestInput": {+ "type": "object",+ "properties": {+ "deckID": {+ "type": "string"+ },+ "name": {+ "type": "string"+ }+ },+ "required": [+ "deckID",+ "name"+ ],+ "additionalProperties": false+ },"RenameTagRequestInput": {"type": "object","properties": {@@ -11395,6 +11423,72 @@],"additionalProperties": false},+ "ResetRiffCardsRequestInput": {+ "type": "object",+ "properties": {+ "blockIDs": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "deckID": {+ "type": "string"+ },+ "id": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "deckID",+ "id",+ "type"+ ],+ "additionalProperties": false+ },+ "ReviewRiffCardRequestInput": {+ "type": "object",+ "properties": {+ "cardID": {+ "type": "string"+ },+ "deckID": {+ "type": "string"+ },+ "rating": {+ "type": "number"+ },+ "reviewedCards": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/RiffReviewedCardInput"+ }+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": [+ "cardID",+ "deckID",+ "rating"+ ],+ "additionalProperties": false+ },"RichClipboardAssetInput": {"type": "object","properties": {@@ -11470,85 +11564,93 @@],"additionalProperties": false},- "SQLQueryRequestInput": {+ "RiffBlockIDsRequestInput": {"type": "object","properties": {- "mode": {+ "blockIDs": {+ "type": "array",+ "items": {+ "type": "string"+ }+ }+ },+ "required": [+ "blockIDs"+ ],+ "additionalProperties": false+ },+ "RiffBlocksData": {+ "type": "object",+ "properties": {+ "blocks": {"anyOf": [{- "type": "string"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SearchBlock"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"}]- },- "stmt": {- "type": "string"}},"required": [- "stmt"+ "blocks"],"additionalProperties": false},- "SaveTemplateRequestInput": {+ "RiffCardDueInput": {"type": "object","properties": {- "databaseMode": {- "type": "string"- },- "directory": {+ "due": {"type": "string"},"id": {"type": "string"- },- "name": {- "type": "string"- },- "overwrite": {- "type": "boolean"}},"required": [- "id",- "name",- "overwrite"+ "due",+ "id"],"additionalProperties": false},- "SearchAsset": {+ "RiffCardRequestInput": {"type": "object","properties": {- "hName": {+ "cardID": {"type": "string"},- "path": {+ "deckID": {"type": "string"- },- "updated": {- "type": "integer"}},"required": [- "hName",- "path",- "updated"+ "cardID",+ "deckID"],"additionalProperties": false},- "SearchAssetContentData": {+ "RiffCardsData": {"type": "object","properties": {- "assetContents": {+ "blocks": {"anyOf": [{"type": "array","items": {"anyOf": [{- "$ref": "#/$defs/AssetContent"+ "$ref": "#/$defs/SearchBlock"},{"type": "null"@@ -11561,52 +11663,28 @@}]},- "matchedAssetCount": {+ "pageCount": {"type": "integer"},- "pageCount": {+ "total": {"type": "integer"}},"required": [- "assetContents",- "matchedAssetCount",- "pageCount"+ "blocks",+ "pageCount",+ "total"],"additionalProperties": false},- "SearchAssetContentRequestInput": {+ "RiffCardsRequestInput": {"type": "object","properties": {- "method": {- "anyOf": [- {- "type": "number"- },- {- "type": "null"- }- ]- },- "orderBy": {- "anyOf": [- {- "type": "number"- },- {- "type": "null"- }- ]+ "id": {+ "type": "string"},"page": {- "anyOf": [- {- "type": "number"- },- {- "type": "null"- }- ]+ "type": "number"},"pageSize": {"anyOf": [@@ -11617,115 +11695,92 @@"type": "null"}]- },- "query": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- },- "types": {- "anyOf": [- {- "type": "object",- "additionalProperties": {- "type": "boolean"- }- },- {- "type": "null"- }- ]}},+ "required": [+ "id",+ "page"+ ],"additionalProperties": false},- "SearchAssetRequestInput": {+ "RiffDeck": {"type": "object","properties": {- "exts": {- "anyOf": [- {- "type": "array",- "items": {- "type": "string"- }- },- {- "type": "null"- }- ]+ "created": {+ "type": "string"},- "k": {+ "id": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "size": {+ "type": "integer"+ },+ "updated": {"type": "string"}},"required": [- "k"+ "created",+ "id",+ "name",+ "size",+ "updated"],"additionalProperties": false},- "SearchBlock": {+ "RiffDeckCardsRequestInput": {"type": "object","properties": {- "alias": {- "type": "string"- },- "box": {- "type": "string"- },- "children": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/SearchBlock"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "blockIDs": {+ "type": "array",+ "items": {+ "type": "string"+ }},- "content": {+ "deckID": {"type": "string"- },- "count": {- "type": "integer"- },- "created": {+ }+ },+ "required": [+ "blockIDs",+ "deckID"+ ],+ "additionalProperties": false+ },+ "RiffDeckRequestInput": {+ "type": "object",+ "properties": {+ "deckID": {"type": "string"- },- "defID": {+ }+ },+ "required": [+ "deckID"+ ],+ "additionalProperties": false+ },+ "RiffDueCard": {+ "type": "object",+ "properties": {+ "blockID": {"type": "string"},- "defPath": {+ "cardID": {"type": "string"},- "depth": {- "type": "integer"- },- "fcontent": {+ "deckID": {"type": "string"},- "folded": {- "type": "boolean"+ "lapses": {+ "type": "integer"},- "hPath": {- "type": "string"+ "lastReview": {+ "type": "integer"},- "ial": {+ "nextDues": {"anyOf": [{"type": "object",@@ -11738,41 +11793,36 @@}]},- "id": {- "type": "string"- },- "markdown": {- "type": "string"- },- "memo": {- "type": "string"- },- "name": {- "type": "string"- },- "number": {- "type": "string"- },- "parentID": {- "type": "string"- },- "path": {- "type": "string"- },- "refCount": {+ "reps": {"type": "integer"},- "refText": {- "type": "string"- },- "refs": {+ "state": {+ "type": "integer"+ }+ },+ "required": [+ "blockID",+ "cardID",+ "deckID",+ "lapses",+ "lastReview",+ "nextDues",+ "reps",+ "state"+ ],+ "additionalProperties": false+ },+ "RiffDueCardsData": {+ "type": "object",+ "properties": {+ "cards": {"anyOf": [{"type": "array","items": {"anyOf": [{- "$ref": "#/$defs/SearchBlock"+ "$ref": "#/$defs/RiffDueCard"},{"type": "null"@@ -11785,213 +11835,190 @@}]},- "riffCard": {- "anyOf": [- {- "$ref": "#/$defs/SearchBlockCard"- },- {- "type": "null"- }- ]- },- "riffCardID": {- "type": "string"- },- "rootID": {- "type": "string"- },- "sort": {+ "unreviewedCount": {"type": "integer"},- "subType": {- "type": "string"- },- "tag": {- "type": "string"- },- "type": {- "type": "string"+ "unreviewedNewCardCount": {+ "type": "integer"},- "updated": {- "type": "string"+ "unreviewedOldCardCount": {+ "type": "integer"}},"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"+ "cards",+ "unreviewedCount",+ "unreviewedNewCardCount",+ "unreviewedOldCardCount"],"additionalProperties": false},- "SearchBlockCard": {+ "RiffDueCardsRequestInput": {"type": "object","properties": {- "due": {- "type": "string"- },- "lapses": {- "type": "integer"- },- "lastReview": {+ "deckID": {"type": "string"},- "reps": {- "type": "integer"- },- "state": {- "type": "integer"+ "reviewedCards": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/RiffReviewedCardInput"+ }+ },+ {+ "type": "null"+ }+ ]}},"required": [- "due",- "lapses",- "lastReview",- "reps",- "state"+ "deckID"],"additionalProperties": false},- "SearchBlockRequestInput": {+ "RiffNotebookDueCardsRequestInput": {"type": "object","properties": {- "groupBy": {- "anyOf": [- {- "type": "number"- },- {- "type": "null"- }- ]+ "notebook": {+ "type": "string"},- "method": {+ "reviewedCards": {"anyOf": [{- "type": "number"+ "type": "array",+ "items": {+ "$ref": "#/$defs/RiffReviewedCardInput"+ }},{"type": "null"}]- },- "orderBy": {+ }+ },+ "required": [+ "notebook"+ ],+ "additionalProperties": false+ },+ "RiffReviewedCardInput": {+ "type": "object",+ "properties": {+ "cardID": {+ "type": "string"+ }+ },+ "required": [+ "cardID"+ ],+ "additionalProperties": false+ },+ "RiffTreeDueCardsRequestInput": {+ "type": "object",+ "properties": {+ "reviewedCards": {"anyOf": [{- "type": "number"+ "type": "array",+ "items": {+ "$ref": "#/$defs/RiffReviewedCardInput"+ }},{"type": "null"}]},- "page": {+ "rootID": {+ "type": "string"+ }+ },+ "required": [+ "rootID"+ ],+ "additionalProperties": false+ },+ "SQLQueryRequestInput": {+ "type": "object",+ "properties": {+ "mode": {"anyOf": [{- "type": "number"+ "type": "string"},{"type": "null"}]},- "pageSize": {- "anyOf": [- {- "type": "number"- },- {- "type": "null"- }- ]+ "stmt": {+ "type": "string"+ }+ },+ "required": [+ "stmt"+ ],+ "additionalProperties": false+ },+ "SaveTemplateRequestInput": {+ "type": "object",+ "properties": {+ "databaseMode": {+ "type": "string"},- "paths": {- "anyOf": [- {- "type": "array",- "items": {- "type": "string"- }- },- {- "type": "null"- }- ]+ "directory": {+ "type": "string"},- "query": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]+ "id": {+ "type": "string"},- "subTypes": {- "anyOf": [- {- "$ref": "#/$defs/SearchSubtypeFilterInput"- },- {- "type": "null"- }- ]+ "name": {+ "type": "string"},- "types": {- "anyOf": [- {- "type": "object",- "additionalProperties": {- "type": "boolean"- }- },- {- "type": "null"- }- ]+ "overwrite": {+ "type": "boolean"}},+ "required": [+ "id",+ "name",+ "overwrite"+ ],"additionalProperties": false},- "SearchBlocksData": {+ "SearchAsset": {"type": "object","properties": {- "blocks": {+ "hName": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "updated": {+ "type": "integer"+ }+ },+ "required": [+ "hName",+ "path",+ "updated"+ ],+ "additionalProperties": false+ },+ "SearchAssetContentData": {+ "type": "object",+ "properties": {+ "assetContents": {"anyOf": [{"type": "array","items": {"anyOf": [{- "$ref": "#/$defs/SearchBlock"+ "$ref": "#/$defs/AssetContent"},{"type": "null"@@ -12004,10 +12031,7 @@}]},- "matchedBlockCount": {- "type": "integer"- },- "matchedRootCount": {+ "matchedAssetCount": {"type": "integer"},"pageCount": {@@ -12015,43 +12039,16 @@}},"required": [- "blocks",- "matchedBlockCount",- "matchedRootCount",+ "assetContents",+ "matchedAssetCount","pageCount"],"additionalProperties": false},- "SearchEmbedBlockRequestInput": {+ "SearchAssetContentRequestInput": {"type": "object","properties": {- "breadcrumb": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ]- },- "embedBlockID": {- "type": "string"- },- "excludeIDs": {- "type": "array",- "items": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- }- },- "headingMode": {+ "method": {"anyOf": [{"type": "number"@@ -12061,84 +12058,53 @@}]},- "notebook": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- },- "stmt": {- "type": "string"- }- },- "required": [- "embedBlockID",- "excludeIDs",- "stmt"- ],- "additionalProperties": false- },- "SearchHeadingFilterInput": {- "type": "object",- "properties": {- "h1": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ]- },- "h2": {+ "orderBy": {"anyOf": [{- "type": "boolean"+ "type": "number"},{"type": "null"}]},- "h3": {+ "page": {"anyOf": [{- "type": "boolean"+ "type": "number"},{"type": "null"}]},- "h4": {+ "pageSize": {"anyOf": [{- "type": "boolean"+ "type": "number"},{"type": "null"}]},- "h5": {+ "query": {"anyOf": [{- "type": "boolean"+ "type": "string"},{"type": "null"}]},- "h6": {+ "types": {"anyOf": [{- "type": "boolean"+ "type": "object",+ "additionalProperties": {+ "type": "boolean"+ }},{"type": "null"@@ -12148,10 +12114,10 @@},"additionalProperties": false},- "SearchHistoryData": {+ "SearchAssetRequestInput": {"type": "object","properties": {- "histories": {+ "exts": {"anyOf": [{"type": "array",@@ -12164,210 +12130,154 @@}]},- "pageCount": {- "type": "integer"- },- "totalCount": {- "type": "integer"+ "k": {+ "type": "string"}},"required": [- "histories",- "pageCount",- "totalCount"+ "k"],"additionalProperties": false},- "SearchHistoryRequestInput": {+ "SearchBlock": {"type": "object","properties": {- "notebook": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]+ "alias": {+ "type": "string"},- "op": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]+ "box": {+ "type": "string"},- "page": {+ "children": {"anyOf": [{- "type": "number"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SearchBlock"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"}]},- "query": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]+ "content": {+ "type": "string"},- "type": {- "anyOf": [- {- "type": "number"- },- {- "type": "null"- }- ]- }- },- "additionalProperties": false- },- "SearchKeywordRequestInput": {- "type": "object",- "properties": {- "k": {+ "count": {+ "type": "integer"+ },+ "created": {"type": "string"- }- },- "required": [- "k"- ],- "additionalProperties": false- },- "SearchListFilterInput": {- "type": "object",- "properties": {- "o": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ]},- "t": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ]+ "defID": {+ "type": "string"},- "u": {+ "defPath": {+ "type": "string"+ },+ "depth": {+ "type": "integer"+ },+ "fcontent": {+ "type": "string"+ },+ "folded": {+ "type": "boolean"+ },+ "hPath": {+ "type": "string"+ },+ "ial": {"anyOf": [{- "type": "boolean"+ "type": "object",+ "additionalProperties": {+ "type": "string"+ }},{"type": "null"}]- }- },- "additionalProperties": false- },- "SearchPageRequestInput": {- "type": "object",- "properties": {- "page": {+ },+ "id": {+ "type": "string"+ },+ "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": "number"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SearchBlock"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"}]},- "pageSize": {+ "riffCard": {"anyOf": [{- "type": "number"+ "$ref": "#/$defs/SearchBlockCard"},{"type": "null"}]- }- },- "additionalProperties": false- },- "SearchPath": {- "type": "object",- "properties": {- "blocks": {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/SearchBlock"- },- {- "type": "null"- }- ]- }},- "box": {+ "riffCardID": {"type": "string"},- "children": {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/SearchPath"- },- {- "type": "null"- }- ]- }- },- "count": {- "type": "integer"- },- "created": {+ "rootID": {"type": "string"},- "depth": {+ "sort": {"type": "integer"},- "folded": {- "type": "boolean"- },- "hPath": {- "type": "string"- },- "id": {- "type": "string"- },- "name": {- "type": "string"- },- "nodeType": {- "type": "string"- },- "number": {+ "subType": {"type": "string"},- "subType": {+ "tag": {"type": "string"},"type": {@@ -12378,73 +12288,134 @@}},"required": [+ "alias","box",+ "children",+ "content","count","created",+ "defID",+ "defPath","depth",+ "fcontent","folded","hPath",+ "ial","id",+ "markdown",+ "memo","name",- "nodeType",+ "parentID",+ "path",+ "refCount",+ "refText",+ "refs",+ "riffCard",+ "riffCardID",+ "rootID",+ "sort","subType",+ "tag","type","updated"],"additionalProperties": false},- "SearchPathRequestInput": {+ "SearchBlockCard": {"type": "object","properties": {- "path": {+ "due": {+ "type": "string"+ },+ "lapses": {+ "type": "integer"+ },+ "lastReview": {"type": "string"+ },+ "reps": {+ "type": "integer"+ },+ "state": {+ "type": "integer"}},"required": [- "path"+ "due",+ "lapses",+ "lastReview",+ "reps",+ "state"],"additionalProperties": false},- "SearchRefBlockRequestInput": {+ "SearchBlockRequestInput": {"type": "object","properties": {- "beforeLen": {- "type": "number"- },- "id": {+ "groupBy": {"anyOf": [{- "type": "string"+ "type": "number"},{"type": "null"}]},- "isDatabase": {+ "method": {"anyOf": [{- "type": "boolean"+ "type": "number"},{"type": "null"}]},- "isSquareBrackets": {+ "orderBy": {"anyOf": [{- "type": "boolean"+ "type": "number"},{"type": "null"}]},- "k": {- "type": "string"+ "page": {+ "anyOf": [+ {+ "type": "number"+ },+ {+ "type": "null"+ }+ ]},- "notebook": {+ "pageSize": {+ "anyOf": [+ {+ "type": "number"+ },+ {+ "type": "null"+ }+ ]+ },+ "paths": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "query": {"anyOf": [{"type": "string"@@ -12454,35 +12425,33 @@}]},- "reqId": {+ "subTypes": {"anyOf": [{- "$ref": "#/$defs/JSONValue"+ "$ref": "#/$defs/SearchSubtypeFilterInput"},{"type": "null"}]},- "rootID": {- "type": "string"- }- },- "additionalProperties": false- },- "SearchRefCorrelation": {- "type": "object",- "properties": {- "reqId": {- "$ref": "#/$defs/JSONValue"+ "types": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "boolean"+ }+ },+ {+ "type": "null"+ }+ ]}},- "required": [- "reqId"- ],"additionalProperties": false},- "SearchRefResult": {+ "SearchBlocksData": {"type": "object","properties": {"blocks": {@@ -12505,146 +12474,141 @@}]},- "k": {- "type": "string"+ "matchedBlockCount": {+ "type": "integer"},- "newDoc": {- "type": "boolean"+ "matchedRootCount": {+ "type": "integer"},- "reqId": {- "$ref": "#/$defs/JSONValue"+ "pageCount": {+ "type": "integer"}},"required": ["blocks",- "k",- "newDoc",- "reqId"+ "matchedBlockCount",+ "matchedRootCount",+ "pageCount"],"additionalProperties": false},- "SearchSubTypes": {+ "SearchEmbedBlockRequestInput": {"type": "object","properties": {- "heading": {+ "breadcrumb": {"anyOf": [{- "type": "object",- "additionalProperties": {- "type": "boolean"- }+ "type": "boolean"},{"type": "null"}]},- "list": {+ "embedBlockID": {+ "type": "string"+ },+ "excludeIDs": {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "headingMode": {"anyOf": [{- "type": "object",- "additionalProperties": {- "type": "boolean"- }+ "type": "number"},{"type": "null"}]},- "listItem": {+ "notebook": {"anyOf": [{- "type": "object",- "additionalProperties": {- "type": "boolean"- }+ "type": "string"},{"type": "null"}]+ },+ "stmt": {+ "type": "string"}},"required": [- "heading",- "list",- "listItem"+ "embedBlockID",+ "excludeIDs",+ "stmt"],"additionalProperties": false},- "SearchSubTypesInput": {+ "SearchHeadingFilterInput": {"type": "object","properties": {- "heading": {+ "h1": {"anyOf": [{- "type": "object",- "additionalProperties": {- "type": "boolean"- }+ "type": "boolean"},{"type": "null"}]},- "list": {+ "h2": {"anyOf": [{- "type": "object",- "additionalProperties": {- "type": "boolean"- }+ "type": "boolean"},{"type": "null"}]},- "listItem": {+ "h3": {"anyOf": [{- "type": "object",- "additionalProperties": {- "type": "boolean"- }+ "type": "boolean"},{"type": "null"}]- }- },- "additionalProperties": false- },- "SearchSubtypeFilterInput": {- "type": "object",- "properties": {- "heading": {+ },+ "h4": {"anyOf": [{- "$ref": "#/$defs/SearchHeadingFilterInput"+ "type": "boolean"},{"type": "null"}]},- "list": {+ "h5": {"anyOf": [{- "$ref": "#/$defs/SearchListFilterInput"+ "type": "boolean"},{"type": "null"}]},- "listItem": {+ "h6": {"anyOf": [{- "$ref": "#/$defs/SearchListFilterInput"+ "type": "boolean"},{"type": "null"@@ -12654,192 +12618,83 @@},"additionalProperties": false},- "SearchTagData": {- "type": "object",- "properties": {- "k": {- "type": "string"- },- "tags": {- "type": "array",- "items": {- "type": "string"- }- }- },- "required": [- "k",- "tags"- ],- "additionalProperties": false- },- "SearchTagRequestInput": {- "type": "object",- "properties": {- "k": {- "type": "string"- }- },- "required": [- "k"- ],- "additionalProperties": false- },- "SearchTemplateData": {+ "SearchHistoryData": {"type": "object","properties": {- "k": {- "type": "string"- },- "templates": {+ "histories": {"anyOf": [{"type": "array","items": {- "anyOf": [- {- "$ref": "#/$defs/SearchTemplateResult"- },- {- "type": "null"- }- ]+ "type": "string"}},{"type": "null"}]- }- },- "required": [- "k",- "templates"- ],- "additionalProperties": false- },- "SearchTemplateResult": {- "type": "object",- "properties": {- "content": {- "type": "string"},- "path": {- "type": "string"+ "pageCount": {+ "type": "integer"},- "relativePath": {- "type": "string"+ "totalCount": {+ "type": "integer"}},"required": [- "content",- "path",- "relativePath"+ "histories",+ "pageCount",+ "totalCount"],"additionalProperties": false},- "SearchWidgetData": {+ "SearchHistoryRequestInput": {"type": "object","properties": {- "k": {- "type": "string"- },- "widgets": {+ "notebook": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/SearchWidgetResult"- },- {- "type": "null"- }- ]- }+ "type": "string"},{"type": "null"}]- }- },- "required": [- "k",- "widgets"- ],- "additionalProperties": false- },- "SearchWidgetResult": {- "type": "object",- "properties": {- "content": {- "type": "string"},- "name": {- "type": "string"- }- },- "required": [- "content",- "name"- ],- "additionalProperties": false- },- "SetBazaarPackageRatingRequestInput": {- "type": "object",- "properties": {- "packageName": {- "type": "string"+ "op": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]},- "packageType": {- "type": "string"+ "page": {+ "anyOf": [+ {+ "type": "number"+ },+ {+ "type": "null"+ }+ ]},- "rating": {- "type": "number"- }- },- "required": [- "packageName",- "packageType",- "rating"- ],- "additionalProperties": false- },- "SetBlockAttrsRequestInput": {- "type": "object",- "properties": {- "attrs": {- "type": "object",- "additionalProperties": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- }+ "query": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]},- "id": {- "type": "string"- }- },- "required": [- "attrs",- "id"- ],- "additionalProperties": false- },- "SetCriterionRequestInput": {- "type": "object",- "properties": {- "criterion": {+ "type": {"anyOf": [{- "$ref": "#/$defs/CriterionInput"+ "type": "number"},{"type": "null"@@ -12847,76 +12702,107 @@]}},- "required": [- "criterion"- ],"additionalProperties": false},- "SetGraphConfRequestInput": {+ "SearchKeywordRequestInput": {"type": "object","properties": {- "conf": {- "$ref": "#/$defs/GraphConfigurationFieldsInput"- },- "type": {+ "k": {"type": "string"}},"required": [- "conf",- "type"+ "k"],"additionalProperties": false},- "SetInlineStylesRequestInput": {+ "SearchListFilterInput": {"type": "object","properties": {- "app": {+ "o": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"}]},- "av": {+ "t": {"anyOf": [{- "$ref": "#/$defs/InlineStyleAVInput"+ "type": "boolean"},{"type": "null"}]},- "builtin": {+ "u": {"anyOf": [{- "$ref": "#/$defs/InlineStyleBuiltinInput"+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SearchPageRequestInput": {+ "type": "object",+ "properties": {+ "page": {+ "anyOf": [+ {+ "type": "number"},{"type": "null"}]},- "order": {+ "pageSize": {"anyOf": [{- "$ref": "#/$defs/InlineStyleOrderInput"+ "type": "number"},{"type": "null"}]+ }+ },+ "additionalProperties": false+ },+ "SearchPath": {+ "type": "object",+ "properties": {+ "blocks": {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SearchBlock"+ },+ {+ "type": "null"+ }+ ]+ }},- "styles": {+ "box": {+ "type": "string"+ },+ "children": {"type": "array","items": {"anyOf": [{- "$ref": "#/$defs/InlineStyleInput"+ "$ref": "#/$defs/SearchPath"},{"type": "null"@@ -12924,411 +12810,535 @@]}},- "version": {- "type": "number"+ "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": {+ "type": "string"}},"required": [- "styles",- "version"+ "box",+ "count",+ "created",+ "depth",+ "folded",+ "hPath",+ "id",+ "name",+ "nodeType",+ "subType",+ "type",+ "updated"],"additionalProperties": false},- "SetNotebookConfRequestInput": {+ "SearchPathRequestInput": {"type": "object","properties": {- "conf": {- "anyOf": [- {- "$ref": "#/$defs/NotebookConfPatchInput"- },- {- "type": "null"- }- ]- },- "notebook": {+ "path": {"type": "string"}},"required": [- "notebook"+ "path"],"additionalProperties": false},- "SetNotebookIconRequestInput": {+ "SearchRefBlockRequestInput": {"type": "object","properties": {- "icon": {- "type": "string"+ "beforeLen": {+ "type": "number"+ },+ "id": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "isDatabase": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "isSquareBrackets": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "k": {+ "type": "string"},"notebook": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "reqId": {+ "anyOf": [+ {+ "$ref": "#/$defs/JSONValue"+ },+ {+ "type": "null"+ }+ ]+ },+ "rootID": {"type": "string"}},+ "additionalProperties": false+ },+ "SearchRefCorrelation": {+ "type": "object",+ "properties": {+ "reqId": {+ "$ref": "#/$defs/JSONValue"+ }+ },"required": [- "icon",- "notebook"+ "reqId"],"additionalProperties": false},- "SetPetalEnabledRequestInput": {+ "SearchRefResult": {"type": "object","properties": {- "app": {+ "blocks": {"anyOf": [{- "type": "string"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SearchBlock"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"}]},- "enabled": {+ "k": {+ "type": "string"+ },+ "newDoc": {"type": "boolean"},- "packageName": {- "type": "string"+ "reqId": {+ "$ref": "#/$defs/JSONValue"}},"required": [- "enabled",- "packageName"+ "blocks",+ "k",+ "newDoc",+ "reqId"],"additionalProperties": false},- "SetPetalPublishEnabledRequestInput": {+ "SearchSubTypes": {"type": "object","properties": {- "enabled": {- "type": "boolean"+ "heading": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "boolean"+ }+ },+ {+ "type": "null"+ }+ ]},- "packageName": {- "type": "string"+ "list": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "boolean"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "listItem": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "boolean"+ }+ },+ {+ "type": "null"+ }+ ]}},"required": [- "enabled",- "packageName"+ "heading",+ "list",+ "listItem"],"additionalProperties": false},- "SetSnapshotMemoRequestInput": {+ "SearchSubTypesInput": {"type": "object","properties": {- "id": {- "type": "string"+ "heading": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "boolean"+ }+ },+ {+ "type": "null"+ }+ ]},- "memo": {- "type": "string"+ "list": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "boolean"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "listItem": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "boolean"+ }+ },+ {+ "type": "null"+ }+ ]}},- "required": [- "id",- "memo"- ],"additionalProperties": false},- "SetSnippetRequestInput": {+ "SearchSubtypeFilterInput": {"type": "object","properties": {- "snippets": {- "type": "array",- "items": {- "$ref": "#/$defs/SnippetInput"- }+ "heading": {+ "anyOf": [+ {+ "$ref": "#/$defs/SearchHeadingFilterInput"+ },+ {+ "type": "null"+ }+ ]+ },+ "list": {+ "anyOf": [+ {+ "$ref": "#/$defs/SearchListFilterInput"+ },+ {+ "type": "null"+ }+ ]+ },+ "listItem": {+ "anyOf": [+ {+ "$ref": "#/$defs/SearchListFilterInput"+ },+ {+ "type": "null"+ }+ ]}},- "required": [- "snippets"- ],"additionalProperties": false},- "SetSyncLocalRequestInput": {+ "SearchTagData": {"type": "object","properties": {- "local": {- "$ref": "#/$defs/SyncLocalInput"+ "k": {+ "type": "string"+ },+ "tags": {+ "type": "array",+ "items": {+ "type": "string"+ }}},"required": [- "local"+ "k",+ "tags"],"additionalProperties": false},- "SetSyncS3RequestInput": {+ "SearchTagRequestInput": {"type": "object","properties": {- "s3": {- "$ref": "#/$defs/SyncS3Input"+ "k": {+ "type": "string"}},"required": [- "s3"+ "k"],"additionalProperties": false},- "SetSyncWebDAVRequestInput": {+ "SearchTemplateData": {"type": "object","properties": {- "webdav": {- "$ref": "#/$defs/SyncWebDAVInput"+ "k": {+ "type": "string"+ },+ "templates": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SearchTemplateResult"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]}},"required": [- "webdav"+ "k",+ "templates"],"additionalProperties": false},- "Shorthand": {+ "SearchTemplateResult": {"type": "object","properties": {- "hCreated": {- "type": "string"- },- "oId": {- "type": "string"- },- "shorthandContent": {- "type": "string"- },- "shorthandDesc": {- "type": "string"- },- "shorthandFrom": {- "type": "integer"- },- "shorthandMd": {+ "content": {"type": "string"},- "shorthandTitle": {+ "path": {"type": "string"},- "shorthandURL": {+ "relativePath": {"type": "string"}},"required": [- "hCreated",- "oId",- "shorthandContent",- "shorthandDesc",- "shorthandFrom",- "shorthandMd",- "shorthandTitle",- "shorthandURL"- ],- "additionalProperties": false- },- "ShorthandPage": {- "type": "object",- "properties": {- "pagination": {- "$ref": "#/$defs/ShorthandPagination"- },- "shorthands": {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/Shorthand"- },- {- "type": "null"- }- ]- }- }- },- "required": [- "pagination",- "shorthands"+ "content",+ "path",+ "relativePath"],"additionalProperties": false},- "ShorthandPagination": {+ "SearchWidgetData": {"type": "object","properties": {- "paginationPageCount": {- "type": "integer"+ "k": {+ "type": "string"},- "paginationPageNums": {+ "widgets": {"anyOf": [{"type": "array","items": {- "type": "integer"+ "anyOf": [+ {+ "$ref": "#/$defs/SearchWidgetResult"+ },+ {+ "type": "null"+ }+ ]}},{"type": "null"}]- },- "paginationRecordCount": {- "type": "integer"- }- },- "required": [- "paginationPageCount",- "paginationPageNums",- "paginationRecordCount"- ],- "additionalProperties": false- },- "ShorthandsData": {- "type": "object",- "properties": {- "code": {- "type": "integer"- },- "data": {- "$ref": "#/$defs/ShorthandPage"- },- "msg": {- "type": "string"}},"required": [- "code",- "data",- "msg"- ],- "additionalProperties": false- },- "ShorthandsRequestInput": {- "type": "object",- "properties": {- "page": {- "type": "number"- }- },- "required": [- "page"+ "k",+ "widgets"],"additionalProperties": false},- "Snippet": {+ "SearchWidgetResult": {"type": "object","properties": {"content": {"type": "string"},- "disabledInPublish": {- "type": "boolean"- },- "enabled": {- "type": "boolean"- },- "id": {- "type": "string"- },"name": {"type": "string"- },- "type": {- "type": "string"}},"required": ["content",- "disabledInPublish",- "enabled",- "id",- "name",- "type"+ "name"],"additionalProperties": false},- "SnippetInput": {+ "SetBazaarPackageRatingRequestInput": {"type": "object","properties": {- "content": {- "type": "string"- },- "disabledInPublish": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ]- },- "enabled": {- "type": "boolean"- },- "id": {+ "packageName": {"type": "string"},- "name": {+ "packageType": {"type": "string"},- "type": {- "type": "string"+ "rating": {+ "type": "number"}},"required": [- "content",- "enabled",- "id",- "name",- "type"+ "packageName",+ "packageType",+ "rating"],"additionalProperties": false},- "SnippetsData": {+ "SetBlockAttrsRequestInput": {"type": "object","properties": {- "snippets": {- "type": "array",- "items": {+ "attrs": {+ "type": "object",+ "additionalProperties": {"anyOf": [{- "$ref": "#/$defs/Snippet"+ "type": "string"},{"type": "null"}]}+ },+ "id": {+ "type": "string"}},"required": [- "snippets"+ "attrs",+ "id"],"additionalProperties": false},- "StorageKeyRequestInput": {+ "SetCriterionRequestInput": {"type": "object","properties": {- "key": {- "type": "string"+ "criterion": {+ "anyOf": [+ {+ "$ref": "#/$defs/CriterionInput"+ },+ {+ "type": "null"+ }+ ]}},"required": [- "key"+ "criterion"],"additionalProperties": false},- "StorageKeysRequestInput": {+ "SetGraphConfRequestInput": {"type": "object","properties": {- "keys": {- "type": "array",- "items": {- "type": "string"- }+ "conf": {+ "$ref": "#/$defs/GraphConfigurationFieldsInput"+ },+ "type": {+ "type": "string"}},"required": [- "keys"+ "conf",+ "type"],"additionalProperties": false},- "StorageRemoveKeysRequestInput": {+ "SetInlineStylesRequestInput": {"type": "object","properties": {"app": {@@ -13341,472 +13351,497 @@}]},- "keys": {- "type": "array",- "items": {- "type": "string"- }- }- },- "required": [- "keys"- ],- "additionalProperties": false- },- "StorageRemoveRequestInput": {- "type": "object",- "properties": {- "app": {+ "av": {"anyOf": [{- "type": "string"+ "$ref": "#/$defs/InlineStyleAVInput"},{"type": "null"}]},- "key": {- "type": "string"- }- },- "required": [- "key"- ],- "additionalProperties": false- },- "StorageSetKeysRequestInput": {- "type": "object",- "properties": {- "app": {+ "builtin": {"anyOf": [{- "type": "string"+ "$ref": "#/$defs/InlineStyleBuiltinInput"},{"type": "null"}]},- "keyVals": {- "type": "object",- "additionalProperties": {- "$ref": "#/$defs/JSONValue"+ "order": {+ "anyOf": [+ {+ "$ref": "#/$defs/InlineStyleOrderInput"+ },+ {+ "type": "null"+ }+ ]+ },+ "styles": {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/InlineStyleInput"+ },+ {+ "type": "null"+ }+ ]}+ },+ "version": {+ "type": "number"}},"required": [- "keyVals"+ "styles",+ "version"],"additionalProperties": false},- "StorageSetRequestInput": {+ "SetNotebookConfRequestInput": {"type": "object","properties": {- "app": {+ "conf": {"anyOf": [{- "type": "string"+ "$ref": "#/$defs/NotebookConfPatchInput"},{"type": "null"}]},- "key": {+ "notebook": {"type": "string"- },- "val": {- "anyOf": [- {- "$ref": "#/$defs/JSONValue"- },- {- "type": "null"- }- ]}},"required": [- "key"+ "notebook"],"additionalProperties": false},- "SwapBlockRefRequestInput": {+ "SetNotebookIconRequestInput": {"type": "object","properties": {- "defID": {+ "icon": {"type": "string"},- "includeChildren": {- "type": "boolean"- },- "refID": {+ "notebook": {"type": "string"}},"required": [- "defID",- "includeChildren",- "refID"+ "icon",+ "notebook"],"additionalProperties": false},- "SyncAssetDownloadModeData": {+ "SetPetalEnabledRequestInput": {"type": "object","properties": {- "assetDownloadMode": {- "type": "integer"+ "app": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "enabled": {+ "type": "boolean"+ },+ "packageName": {+ "type": "string"}},"required": [- "assetDownloadMode"+ "enabled",+ "packageName"],"additionalProperties": false},- "SyncEnabledRequestInput": {+ "SetPetalPublishEnabledRequestInput": {"type": "object","properties": {"enabled": {"type": "boolean"+ },+ "packageName": {+ "type": "string"}},"required": [- "enabled"+ "enabled",+ "packageName"],"additionalProperties": false},- "SyncInfoData": {+ "SetRiffCardsDueRequestInput": {"type": "object","properties": {- "kernel": {- "type": "string"- },- "kernels": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/SyncOnlineKernel"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]- },- "stat": {- "type": "string"- },- "synced": {- "type": "integer"+ "cardDues": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/RiffCardDueInput"+ }}},"required": [- "kernel",- "kernels",- "stat",- "synced"+ "cardDues"],"additionalProperties": false},- "SyncIntervalRequestInput": {+ "SetSnapshotMemoRequestInput": {"type": "object","properties": {- "interval": {- "type": "number"+ "id": {+ "type": "string"+ },+ "memo": {+ "type": "string"}},"required": [- "interval"+ "id",+ "memo"],"additionalProperties": false},- "SyncLANRequestInput": {+ "SetSnippetRequestInput": {"type": "object","properties": {- "enabled": {- "type": "boolean"- },- "maxConcurrentReqs": {- "anyOf": [- {- "type": "number"- },- {- "type": "null"- }- ]+ "snippets": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/SnippetInput"+ }}},"required": [- "enabled"+ "snippets"],"additionalProperties": false},- "SyncLANStatus": {+ "SetSyncLocalRequestInput": {"type": "object","properties": {- "active": {- "type": "boolean"- },- "connectedPeers": {- "type": "integer"- },- "discoveredPeers": {- "type": "integer"- },- "enabled": {- "type": "boolean"- },- "maxConcurrentReqs": {- "type": "integer"+ "local": {+ "$ref": "#/$defs/SyncLocalInput"}},"required": [- "active",- "connectedPeers",- "discoveredPeers",- "enabled",- "maxConcurrentReqs"+ "local"],"additionalProperties": false},- "SyncLocal": {+ "SetSyncS3RequestInput": {"type": "object","properties": {- "concurrentReqs": {- "type": "integer"- },- "endpoint": {- "type": "string"- },- "timeout": {- "type": "integer"+ "s3": {+ "$ref": "#/$defs/SyncS3Input"}},"required": [- "concurrentReqs",- "endpoint",- "timeout"+ "s3"],"additionalProperties": false},- "SyncLocalData": {+ "SetSyncWebDAVRequestInput": {"type": "object","properties": {- "local": {- "anyOf": [- {- "$ref": "#/$defs/SyncLocal"- },- {- "type": "null"- }- ]+ "webdav": {+ "$ref": "#/$defs/SyncWebDAVInput"}},"required": [- "local"+ "webdav"],"additionalProperties": false},- "SyncLocalInput": {+ "Shorthand": {"type": "object","properties": {- "concurrentReqs": {- "anyOf": [- {- "type": "integer"- },- {- "type": "null"- }- ]+ "hCreated": {+ "type": "string"},- "endpoint": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]+ "oId": {+ "type": "string"},- "timeout": {+ "shorthandContent": {+ "type": "string"+ },+ "shorthandDesc": {+ "type": "string"+ },+ "shorthandFrom": {+ "type": "integer"+ },+ "shorthandMd": {+ "type": "string"+ },+ "shorthandTitle": {+ "type": "string"+ },+ "shorthandURL": {+ "type": "string"+ }+ },+ "required": [+ "hCreated",+ "oId",+ "shorthandContent",+ "shorthandDesc",+ "shorthandFrom",+ "shorthandMd",+ "shorthandTitle",+ "shorthandURL"+ ],+ "additionalProperties": false+ },+ "ShorthandPage": {+ "type": "object",+ "properties": {+ "pagination": {+ "$ref": "#/$defs/ShorthandPagination"+ },+ "shorthands": {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/Shorthand"+ },+ {+ "type": "null"+ }+ ]+ }+ }+ },+ "required": [+ "pagination",+ "shorthands"+ ],+ "additionalProperties": false+ },+ "ShorthandPagination": {+ "type": "object",+ "properties": {+ "paginationPageCount": {+ "type": "integer"+ },+ "paginationPageNums": {"anyOf": [{- "type": "integer"+ "type": "array",+ "items": {+ "type": "integer"+ }},{"type": "null"}]+ },+ "paginationRecordCount": {+ "type": "integer"}},+ "required": [+ "paginationPageCount",+ "paginationPageNums",+ "paginationRecordCount"+ ],"additionalProperties": false},- "SyncModeRequestInput": {+ "ShorthandsData": {"type": "object","properties": {- "mode": {- "type": "number"+ "code": {+ "type": "integer"+ },+ "data": {+ "$ref": "#/$defs/ShorthandPage"+ },+ "msg": {+ "type": "string"}},"required": [- "mode"+ "code",+ "data",+ "msg"],"additionalProperties": false},- "SyncNameRequestInput": {+ "ShorthandsRequestInput": {"type": "object","properties": {- "name": {- "type": "string"+ "page": {+ "type": "number"}},"required": [- "name"+ "page"],"additionalProperties": false},- "SyncOnlineKernel": {+ "Snippet": {"type": "object","properties": {- "hostname": {+ "content": {"type": "string"},+ "disabledInPublish": {+ "type": "boolean"+ },+ "enabled": {+ "type": "boolean"+ },"id": {"type": "string"},- "os": {+ "name": {"type": "string"},- "ver": {+ "type": {"type": "string"}},"required": [- "hostname",+ "content",+ "disabledInPublish",+ "enabled","id",- "os",- "ver"+ "name",+ "type"],"additionalProperties": false},- "SyncProviderExportData": {+ "SnippetInput": {"type": "object","properties": {+ "content": {+ "type": "string"+ },+ "disabledInPublish": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "enabled": {+ "type": "boolean"+ },+ "id": {+ "type": "string"+ },"name": {"type": "string"},- "zip": {+ "type": {"type": "string"}},"required": [+ "content",+ "enabled",+ "id","name",- "zip"+ "type"],"additionalProperties": false},- "SyncProviderImportRequestInput": {+ "SnippetsData": {"type": "object","properties": {- "file": {- "type": "string",- "format": "binary"+ "snippets": {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/Snippet"+ },+ {+ "type": "null"+ }+ ]+ }}},+ "required": [+ "snippets"+ ],"additionalProperties": false},- "SyncProviderRequestInput": {+ "StorageKeyRequestInput": {"type": "object","properties": {- "provider": {- "type": "number"+ "key": {+ "type": "string"}},"required": [- "provider"+ "key"],"additionalProperties": false},- "SyncS3": {+ "StorageKeysRequestInput": {"type": "object","properties": {- "accessKey": {- "type": "string"- },- "bucket": {- "type": "string"- },- "concurrentReqs": {- "type": "integer"- },- "endpoint": {- "type": "string"- },- "pathStyle": {- "type": "boolean"- },- "region": {- "type": "string"- },- "secretKey": {- "type": "string"- },- "skipTlsVerify": {- "type": "boolean"- },- "timeout": {- "type": "integer"+ "keys": {+ "type": "array",+ "items": {+ "type": "string"+ }}},"required": [- "accessKey",- "bucket",- "concurrentReqs",- "endpoint",- "pathStyle",- "region",- "secretKey",- "skipTlsVerify",- "timeout"+ "keys"],"additionalProperties": false},- "SyncS3Data": {+ "StorageRemoveKeysRequestInput": {"type": "object","properties": {- "s3": {+ "app": {"anyOf": [{- "$ref": "#/$defs/SyncS3"+ "type": "string"},{"type": "null"}]+ },+ "keys": {+ "type": "array",+ "items": {+ "type": "string"+ }}},"required": [- "s3"+ "keys"],"additionalProperties": false},- "SyncS3Input": {+ "StorageRemoveRequestInput": {"type": "object","properties": {- "accessKey": {+ "app": {"anyOf": [{"type": "string"@@ -13816,27 +13851,44 @@}]},- "bucket": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- },- "concurrentReqs": {+ "key": {+ "type": "string"+ }+ },+ "required": [+ "key"+ ],+ "additionalProperties": false+ },+ "StorageSetKeysRequestInput": {+ "type": "object",+ "properties": {+ "app": {"anyOf": [{- "type": "integer"+ "type": "string"},{"type": "null"}]},- "endpoint": {+ "keyVals": {+ "type": "object",+ "additionalProperties": {+ "$ref": "#/$defs/JSONValue"+ }+ }+ },+ "required": [+ "keyVals"+ ],+ "additionalProperties": false+ },+ "StorageSetRequestInput": {+ "type": "object",+ "properties": {+ "app": {"anyOf": [{"type": "string"@@ -13846,50 +13898,132 @@}]},- "pathStyle": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ]+ "key": {+ "type": "string"},- "region": {+ "val": {"anyOf": [{- "type": "string"+ "$ref": "#/$defs/JSONValue"},{"type": "null"}]+ }+ },+ "required": [+ "key"+ ],+ "additionalProperties": false+ },+ "SwapBlockRefRequestInput": {+ "type": "object",+ "properties": {+ "defID": {+ "type": "string"},- "secretKey": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]+ "includeChildren": {+ "type": "boolean"},- "skipTlsVerify": {+ "refID": {+ "type": "string"+ }+ },+ "required": [+ "defID",+ "includeChildren",+ "refID"+ ],+ "additionalProperties": false+ },+ "SyncAssetDownloadModeData": {+ "type": "object",+ "properties": {+ "assetDownloadMode": {+ "type": "integer"+ }+ },+ "required": [+ "assetDownloadMode"+ ],+ "additionalProperties": false+ },+ "SyncEnabledRequestInput": {+ "type": "object",+ "properties": {+ "enabled": {+ "type": "boolean"+ }+ },+ "required": [+ "enabled"+ ],+ "additionalProperties": false+ },+ "SyncInfoData": {+ "type": "object",+ "properties": {+ "kernel": {+ "type": "string"+ },+ "kernels": {"anyOf": [{- "type": "boolean"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SyncOnlineKernel"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"}]},- "timeout": {+ "stat": {+ "type": "string"+ },+ "synced": {+ "type": "integer"+ }+ },+ "required": [+ "kernel",+ "kernels",+ "stat",+ "synced"+ ],+ "additionalProperties": false+ },+ "SyncIntervalRequestInput": {+ "type": "object",+ "properties": {+ "interval": {+ "type": "number"+ }+ },+ "required": [+ "interval"+ ],+ "additionalProperties": false+ },+ "SyncLANRequestInput": {+ "type": "object",+ "properties": {+ "enabled": {+ "type": "boolean"+ },+ "maxConcurrentReqs": {"anyOf": [{- "type": "integer"+ "type": "number"},{"type": "null"@@ -13897,47 +14031,66 @@]}},+ "required": [+ "enabled"+ ],"additionalProperties": false},- "SyncWebDAV": {+ "SyncLANStatus": {"type": "object","properties": {- "concurrentReqs": {- "type": "integer"+ "active": {+ "type": "boolean"},- "endpoint": {- "type": "string"+ "connectedPeers": {+ "type": "integer"},- "password": {- "type": "string"+ "discoveredPeers": {+ "type": "integer"},- "skipTlsVerify": {+ "enabled": {"type": "boolean"},- "timeout": {+ "maxConcurrentReqs": {+ "type": "integer"+ }+ },+ "required": [+ "active",+ "connectedPeers",+ "discoveredPeers",+ "enabled",+ "maxConcurrentReqs"+ ],+ "additionalProperties": false+ },+ "SyncLocal": {+ "type": "object",+ "properties": {+ "concurrentReqs": {"type": "integer"},- "username": {+ "endpoint": {"type": "string"+ },+ "timeout": {+ "type": "integer"}},"required": ["concurrentReqs","endpoint",- "password",- "skipTlsVerify",- "timeout",- "username"+ "timeout"],"additionalProperties": false},- "SyncWebDAVData": {+ "SyncLocalData": {"type": "object","properties": {- "webdav": {+ "local": {"anyOf": [{- "$ref": "#/$defs/SyncWebDAV"+ "$ref": "#/$defs/SyncLocal"},{"type": "null"@@ -13946,11 +14099,11 @@}},"required": [- "webdav"+ "local"],"additionalProperties": false},- "SyncWebDAVInput": {+ "SyncLocalInput": {"type": "object","properties": {"concurrentReqs": {@@ -13973,26 +14126,6 @@}]},- "password": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- },- "skipTlsVerify": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ]- },"timeout": {"anyOf": [{@@ -14002,256 +14135,147 @@"type": "null"}]- },- "username": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]}},"additionalProperties": false},- "TagData": {+ "SyncModeRequestInput": {"type": "object","properties": {- "children": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/TagData"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]- },- "count": {- "type": "integer"- },- "depth": {- "type": "integer"- },- "label": {- "type": "string"- },- "name": {- "type": "string"- },- "type": {- "type": "string"+ "mode": {+ "type": "number"}},"required": [- "children",- "count",- "depth",- "label",- "name",- "type"+ "mode"],"additionalProperties": false},- "TailChildBlocksRequestInput": {+ "SyncNameRequestInput": {"type": "object","properties": {- "id": {+ "name": {"type": "string"- },- "ids": {- "anyOf": [- {- "type": "array",- "items": {- "type": "string"- }- },- {- "type": "null"- }- ]- },- "n": {- "anyOf": [- {- "type": "number"- },- {- "type": "null"- }- ]- },- "notebook": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]}},"required": [- "id"+ "name"],"additionalProperties": false},- "TaskListMarkerRequestInput": {+ "SyncOnlineKernel": {"type": "object","properties": {+ "hostname": {+ "type": "string"+ },"id": {"type": "string"},- "marker": {+ "os": {+ "type": "string"+ },+ "ver": {"type": "string"}},"required": [+ "hostname","id",- "marker"+ "os",+ "ver"],"additionalProperties": false},- "TemplateDocumentInfo": {+ "SyncProviderExportData": {"type": "object","properties": {- "directory": {+ "name": {"type": "string"},- "hasDatabase": {- "type": "boolean"- },- "name": {+ "zip": {"type": "string"}},"required": [- "directory",- "hasDatabase",- "name"+ "name",+ "zip"],"additionalProperties": false},- "TemplateDocumentRequestInput": {+ "SyncProviderImportRequestInput": {"type": "object","properties": {- "id": {- "type": "string"+ "file": {+ "type": "string",+ "format": "binary"}},- "required": [- "id"- ],"additionalProperties": false},- "TemplateFileEntry": {+ "SyncProviderRequestInput": {"type": "object","properties": {- "isDir": {- "type": "boolean"- },- "isPackage": {- "type": "boolean"- },- "path": {- "type": "string"+ "provider": {+ "type": "number"}},"required": [- "isDir",- "path"+ "provider"],"additionalProperties": false},- "TemplateFileRequestInput": {+ "SyncS3": {"type": "object","properties": {- "action": {+ "accessKey": {"type": "string"},- "content": {+ "bucket": {"type": "string"},- "path": {- "type": "string"+ "concurrentReqs": {+ "type": "integer"},- "revision": {+ "endpoint": {"type": "string"},- "target": {- "type": "string"- }- },- "additionalProperties": false- },- "TemplateFileRevision": {- "type": "object",- "properties": {- "revision": {- "type": "string"- }- },- "required": [- "revision"- ],- "additionalProperties": false- },- "TemplateFileSource": {- "type": "object",- "properties": {- "content": {- "type": "string"+ "pathStyle": {+ "type": "boolean"},- "path": {+ "region": {"type": "string"},- "revision": {+ "secretKey": {"type": "string"+ },+ "skipTlsVerify": {+ "type": "boolean"+ },+ "timeout": {+ "type": "integer"}},"required": [- "content",- "revision"+ "accessKey",+ "bucket",+ "concurrentReqs",+ "endpoint",+ "pathStyle",+ "region",+ "secretKey",+ "skipTlsVerify",+ "timeout"],"additionalProperties": false},- "TemplatePlan": {+ "SyncS3Data": {"type": "object","properties": {- "count": {- "type": "integer"- },- "id": {- "type": "string"- },- "nodes": {+ "s3": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/TemplatePlanNode"- },- {- "type": "null"- }- ]- }+ "$ref": "#/$defs/SyncS3"},{"type": "null"@@ -14260,145 +14284,84 @@}},"required": [- "count",- "id",- "nodes"+ "s3"],"additionalProperties": false},- "TemplatePlanNode": {+ "SyncS3Input": {"type": "object","properties": {- "depth": {- "type": "integer"- },- "hPath": {- "type": "string"- },- "id": {- "type": "string"+ "accessKey": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]},- "parentID": {- "type": "string"+ "bucket": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]},- "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": {+ "concurrentReqs": {"anyOf": [{- "type": "boolean"+ "type": "integer"},{"type": "null"}]},- "toID": {- "type": "string"- }- },- "required": [- "fromID",- "toID"- ],- "additionalProperties": false- },- "TreeStatData": {- "type": "object",- "properties": {- "containsEmbed": {- "type": "boolean"- },- "embedStat": {+ "endpoint": {"anyOf": [{- "$ref": "#/$defs/EmbedStat"+ "type": "string"},{"type": "null"}]},- "reqId": {- "$ref": "#/$defs/JSONValue"- },- "stat": {+ "pathStyle": {"anyOf": [{- "$ref": "#/$defs/BlockStat"+ "type": "boolean"},{"type": "null"}]},- "statWithEmbed": {+ "region": {"anyOf": [{- "$ref": "#/$defs/BlockStat"+ "type": "string"},{"type": "null"}]- }- },- "required": [- "reqId",- "stat"- ],- "additionalProperties": false- },- "TreeStatRequestInput": {- "type": "object",- "properties": {- "id": {- "type": "string"},- "ids": {+ "secretKey": {"anyOf": [{- "type": "array",- "items": {- "type": "string"- }+ "type": "string"},{"type": "null"}]},- "includeEmbed": {+ "skipTlsVerify": {"anyOf": [{"type": "boolean"@@ -14408,20 +14371,10 @@}]},- "notebook": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- },- "reqId": {+ "timeout": {"anyOf": [{- "$ref": "#/$defs/JSONValue"+ "type": "integer"},{"type": "null"@@ -14429,71 +14382,73 @@]}},- "required": [- "id"- ],"additionalProperties": false},- "TrimmedIDRequestInput": {+ "SyncWebDAV": {"type": "object","properties": {- "id": {+ "concurrentReqs": {+ "type": "integer"+ },+ "endpoint": {"type": "string"- }- },- "required": [- "id"- ],- "additionalProperties": false- },- "UnfoldedParentData": {- "type": "object",- "properties": {- "parentID": {+ },+ "password": {+ "type": "string"+ },+ "skipTlsVerify": {+ "type": "boolean"+ },+ "timeout": {+ "type": "integer"+ },+ "username": {"type": "string"}},"required": [- "parentID"+ "concurrentReqs",+ "endpoint",+ "password",+ "skipTlsVerify",+ "timeout",+ "username"],"additionalProperties": false},- "UninstallBazaarIconRequestInput": {+ "SyncWebDAVData": {"type": "object","properties": {- "keyword": {+ "webdav": {"anyOf": [{- "type": "string"+ "$ref": "#/$defs/SyncWebDAV"},{"type": "null"}]- },- "packageName": {- "type": "string"}},"required": [- "packageName"+ "webdav"],"additionalProperties": false},- "UninstallBazaarPluginRequestInput": {+ "SyncWebDAVInput": {"type": "object","properties": {- "frontend": {+ "concurrentReqs": {"anyOf": [{- "type": "string"+ "type": "integer"},{"type": "null"}]},- "keyword": {+ "endpoint": {"anyOf": [{"type": "string"@@ -14503,19 +14458,7 @@}]},- "packageName": {- "type": "string"- }- },- "required": [- "packageName"- ],- "additionalProperties": false- },- "UninstallBazaarTemplateRequestInput": {- "type": "object",- "properties": {- "keyword": {+ "password": {"anyOf": [{"type": "string"@@ -14525,372 +14468,389 @@}]},- "packageName": {- "type": "string"- }- },- "required": [- "packageName"- ],- "additionalProperties": false- },- "UninstallBazaarThemeRequestInput": {- "type": "object",- "properties": {- "frontend": {+ "skipTlsVerify": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"}]},- "keyword": {+ "timeout": {"anyOf": [{- "type": "string"+ "type": "integer"},{"type": "null"}]},- "packageName": {- "type": "string"+ "username": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]}},- "required": [- "packageName"- ],"additionalProperties": false},- "UninstallBazaarWidgetRequestInput": {+ "TagData": {"type": "object","properties": {- "keyword": {+ "children": {"anyOf": [{- "type": "string"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/TagData"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"}]},- "packageName": {+ "count": {+ "type": "integer"+ },+ "depth": {+ "type": "integer"+ },+ "label": {"type": "string"- }- },- "required": [- "packageName"- ],- "additionalProperties": false- },- "UnlockNotebookRequestInput": {- "type": "object",- "properties": {- "notebook": {+ },+ "name": {"type": "string"},- "password": {+ "type": {"type": "string"}},"required": [- "notebook",- "password"+ "children",+ "count",+ "depth",+ "label",+ "name",+ "type"],"additionalProperties": false},- "UnzipRequestInput": {+ "TailChildBlocksRequestInput": {"type": "object","properties": {- "path": {- "type": "string"- },- "zipPath": {- "type": "string"- }- },- "required": [- "path",- "zipPath"- ],- "additionalProperties": false- },- "UpdateBazaarPackageRequestInput": {- "type": "object",- "properties": {- "frontend": {+ "id": {"type": "string"},- "keyword": {+ "ids": {"anyOf": [{- "type": "string"+ "type": "array",+ "items": {+ "type": "string"+ }},{"type": "null"}]},- "packageName": {- "type": "string"+ "n": {+ "anyOf": [+ {+ "type": "number"+ },+ {+ "type": "null"+ }+ ]},- "packageType": {- "type": "string"+ "notebook": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]}},"required": [- "frontend",- "packageName",- "packageType"+ "id"],"additionalProperties": false},- "UpdateBlockRequestInput": {+ "TaskListMarkerRequestInput": {"type": "object","properties": {- "data": {- "type": "string"- },- "dataType": {- "type": "string"- },"id": {"type": "string"},- "lockType": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ]+ "marker": {+ "type": "string"}},"required": [- "data",- "dataType",- "id"+ "id",+ "marker"],"additionalProperties": false},- "UpdateChannelRequestInput": {+ "TemplateDocumentInfo": {"type": "object","properties": {- "updateChannel": {+ "directory": {+ "type": "string"+ },+ "hasDatabase": {+ "type": "boolean"+ },+ "name": {"type": "string"}},"required": [- "updateChannel"+ "directory",+ "hasDatabase",+ "name"],"additionalProperties": false},- "UpdateEmbedBlockRequestInput": {+ "TemplateDocumentRequestInput": {"type": "object","properties": {- "content": {- "type": "string"- },"id": {"type": "string"}},"required": [- "content","id"],"additionalProperties": false},- "UpdatePinnedDocsRequestInput": {+ "TemplateFileEntry": {"type": "object","properties": {- "action": {- "type": "string"- },- "after": {+ "isDir": {"type": "boolean"},- "ids": {- "type": "array",- "items": {- "type": "string"- }+ "isPackage": {+ "type": "boolean"},- "targetID": {+ "path": {"type": "string"}},"required": [- "action",- "ids"+ "isDir",+ "path"],"additionalProperties": false},- "ViewStatePatchRequestInput": {+ "TemplateFileRequestInput": {"type": "object","properties": {- "key": {+ "action": {"type": "string"},- "removeKeys": {- "anyOf": [- {- "type": "array",- "items": {- "type": "string"- }- },- {- "type": "null"- }- ]+ "content": {+ "type": "string"},- "values": {- "type": "object",- "additionalProperties": {- "$ref": "#/$defs/JSONValue"- }+ "path": {+ "type": "string"+ },+ "revision": {+ "type": "string"+ },+ "target": {+ "type": "string"}},- "required": [- "key"- ],"additionalProperties": false},- "VirtualBlockRefRequestInput": {+ "TemplateFileRevision": {"type": "object","properties": {- "keywords": {- "type": "array",- "items": {- "type": "string"- }+ "revision": {+ "type": "string"}},"required": [- "keywords"+ "revision"],"additionalProperties": false},- "WPSPresentationData": {+ "TemplateFileSource": {"type": "object","properties": {- "converted": {- "type": "boolean"+ "content": {+ "type": "string"},- "dom": {+ "path": {+ "type": "string"+ },+ "revision": {"type": "string"}},"required": [- "converted",- "dom"+ "content",+ "revision"],"additionalProperties": false},- "WPSPresentationRequestInput": {+ "TemplatePlan": {"type": "object","properties": {- "data": {+ "count": {+ "type": "integer"+ },+ "id": {"type": "string"},- "text": {+ "nodes": {"anyOf": [{- "type": "string"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/TemplatePlanNode"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"}]- },- "type": {- "type": "string"}},"required": [- "data",- "type"+ "count",+ "id",+ "nodes"],"additionalProperties": false},- "WordCountData": {+ "TemplatePlanNode": {"type": "object","properties": {- "reqId": {- "$ref": "#/$defs/JSONValue"+ "depth": {+ "type": "integer"},- "stat": {- "anyOf": [- {- "$ref": "#/$defs/BlockStat"- },- {- "type": "null"- }- ]+ "hPath": {+ "type": "string"+ },+ "id": {+ "type": "string"+ },+ "parentID": {+ "type": "string"+ },+ "title": {+ "type": "string"}},"required": [- "reqId",- "stat"+ "depth",+ "hPath",+ "id",+ "parentID",+ "title"],"additionalProperties": false},- "WorkspaceAVBuiltinColorUpdateInput": {+ "TransferBlockRefRequestInput": {"type": "object","properties": {- "customized": {+ "fromID": {+ "type": "string"+ },+ "refIDs": {"anyOf": [{- "type": "boolean"+ "type": "array",+ "items": {+ "type": "string"+ }},{"type": "null"}]},- "dark": {+ "reloadUI": {"anyOf": [{- "$ref": "#/$defs/InlineStyleThemeInput"+ "type": "boolean"},{"type": "null"}]},- "hidden": {- "anyOf": [- {- "type": "boolean"+ "toID": {+ "type": "string"+ }+ },+ "required": [+ "fromID",+ "toID"+ ],+ "additionalProperties": false+ },+ "TreeStatData": {+ "type": "object",+ "properties": {+ "containsEmbed": {+ "type": "boolean"+ },+ "embedStat": {+ "anyOf": [+ {+ "$ref": "#/$defs/EmbedStat"},{"type": "null"}]},- "index": {+ "reqId": {+ "$ref": "#/$defs/JSONValue"+ },+ "stat": {"anyOf": [{- "type": "integer"+ "$ref": "#/$defs/BlockStat"},{"type": "null"}]},- "light": {+ "statWithEmbed": {"anyOf": [{- "$ref": "#/$defs/InlineStyleThemeInput"+ "$ref": "#/$defs/BlockStat"},{"type": "null"@@ -14898,105 +14858,2033 @@]}},+ "required": [+ "reqId",+ "stat"+ ],"additionalProperties": false},- "WorkspaceAVPaletteRequestInput": {+ "TreeStatRequestInput": {"type": "object","properties": {- "app": {+ "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+ },+ "UninstallBazaarIconRequestInput": {+ "type": "object",+ "properties": {+ "keyword": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "packageName": {+ "type": "string"+ }+ },+ "required": [+ "packageName"+ ],+ "additionalProperties": false+ },+ "UninstallBazaarPluginRequestInput": {+ "type": "object",+ "properties": {+ "frontend": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "keyword": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "packageName": {+ "type": "string"+ }+ },+ "required": [+ "packageName"+ ],+ "additionalProperties": false+ },+ "UninstallBazaarTemplateRequestInput": {+ "type": "object",+ "properties": {+ "keyword": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "packageName": {+ "type": "string"+ }+ },+ "required": [+ "packageName"+ ],+ "additionalProperties": false+ },+ "UninstallBazaarThemeRequestInput": {+ "type": "object",+ "properties": {+ "frontend": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "keyword": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "packageName": {+ "type": "string"+ }+ },+ "required": [+ "packageName"+ ],+ "additionalProperties": false+ },+ "UninstallBazaarWidgetRequestInput": {+ "type": "object",+ "properties": {+ "keyword": {"anyOf": [{"type": "string"},- {- "type": "null"- }- ]- },- "builtinColors": {- "anyOf": [- {- "type": "array",- "items": {+ {+ "type": "null"+ }+ ]+ },+ "packageName": {+ "type": "string"+ }+ },+ "required": [+ "packageName"+ ],+ "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+ },+ "UpdateBazaarPackageRequestInput": {+ "type": "object",+ "properties": {+ "frontend": {+ "type": "string"+ },+ "keyword": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "packageName": {+ "type": "string"+ },+ "packageType": {+ "type": "string"+ }+ },+ "required": [+ "frontend",+ "packageName",+ "packageType"+ ],+ "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+ },+ "UpdateEmbedBlockRequestInput": {+ "type": "object",+ "properties": {+ "content": {+ "type": "string"+ },+ "id": {+ "type": "string"+ }+ },+ "required": [+ "content",+ "id"+ ],+ "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/plugin",+ "handler": "listLoadedPluginsGET",+ "body": "none",+ "request": {+ "$ref": "#/$defs/EmptyRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/LoadedPlugin"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "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": "GET",+ "path": "/api/plugin/rpc",+ "handler": "getLoadedPluginRPC",+ "body": "json",+ "request": {+ "$ref": "#/$defs/LoadedPluginRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "anyOf": [+ {+ "$ref": "#/$defs/LoadedPlugin"+ },+ {+ "type": "null"+ }+ ]+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": false+ },+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ -1,+ 1,+ 2,+ 3,+ 4+ ]+ },+ "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/plugin/rpc/:name",+ "handler": "getLoadedPluginRPCByName",+ "body": "json",+ "request": {+ "$ref": "#/$defs/LoadedPluginRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "anyOf": [+ {+ "$ref": "#/$defs/LoadedPlugin"+ },+ {+ "type": "null"+ }+ ]+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": false+ },+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ -1,+ 1,+ 2,+ 3,+ 4+ ]+ },+ "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/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": "GET",+ "path": "/ws/plugin/rpc",+ "handler": "pluginJsonRpcWebSocket",+ "body": "none",+ "request": {+ "$ref": "#/$defs/EmptyRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "$ref": "#/$defs/PluginRPCFailure"+ },+ {+ "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+ }+ ]+ },+ "output": "websocket",+ "websocket": {+ "incoming": {+ "anyOf": [+ {+ "$ref": "#/$defs/PluginRPCRequestFieldsInput"+ },+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/PluginRPCRequestFieldsInput"+ },+ "minItems": 1+ }+ ]+ },+ "outgoing": {+ "anyOf": [+ {+ "$ref": "#/$defs/PluginRPCSuccess"+ },+ {+ "$ref": "#/$defs/PluginRPCFailure"+ },+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/PluginRPCSuccess"+ },+ {+ "$ref": "#/$defs/PluginRPCFailure"+ }+ ]+ },+ "minItems": 1+ },+ {+ "$ref": "#/$defs/PluginRPCNotification"+ }+ ]+ },+ "failureStatus": 404+ }+ },+ {+ "method": "GET",+ "path": "/ws/plugin/rpc/:name",+ "handler": "pluginJsonRpcWebSocketByName",+ "body": "none",+ "request": {+ "$ref": "#/$defs/EmptyRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "$ref": "#/$defs/PluginRPCFailure"+ },+ {+ "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+ }+ ]+ },+ "output": "websocket",+ "websocket": {+ "incoming": {+ "anyOf": [+ {+ "$ref": "#/$defs/PluginRPCRequestFieldsInput"+ },+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/PluginRPCRequestFieldsInput"+ },+ "minItems": 1+ }+ ]+ },+ "outgoing": {+ "anyOf": [+ {+ "$ref": "#/$defs/PluginRPCSuccess"+ },+ {+ "$ref": "#/$defs/PluginRPCFailure"+ },+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/PluginRPCSuccess"+ },+ {+ "$ref": "#/$defs/PluginRPCFailure"+ }+ ]+ },+ "minItems": 1+ },+ {+ "$ref": "#/$defs/PluginRPCNotification"+ }+ ]+ },+ "failureStatus": 404+ }+ },+ {+ "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": "POST",+ "path": "/api/account/startFreeTrial",+ "handler": "startFreeTrial",+ "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/useActivationcode",+ "handler": "useActivationcode",+ "body": "json",+ "request": {+ "$ref": "#/$defs/ActivationCodeRequestInput"+ },+ "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/archive/unzip",+ "handler": "unzip",+ "body": "json",+ "request": {+ "$ref": "#/$defs/UnzipRequestInput"+ },+ "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/archive/zip",+ "handler": "zip",+ "body": "json",+ "request": {+ "$ref": "#/$defs/ZipRequestInput"+ },+ "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/attr/batchGetBlockAttrs",+ "handler": "batchGetBlockAttrs",+ "body": "json",+ "request": {+ "$ref": "#/$defs/BlockIDsRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "type": "object",+ "additionalProperties": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "string"+ }+ },+ {+ "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/attr/batchSetBlockAttrs",+ "handler": "batchSetBlockAttrs",+ "body": "json",+ "request": {+ "$ref": "#/$defs/BatchSetBlockAttrsRequestInput"+ },+ "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/attr/getBlockAttrs",+ "handler": "getBlockAttrs",+ "body": "json",+ "request": {+ "$ref": "#/$defs/BlockIDRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "type": "object",+ "additionalProperties": {+ "type": "string"+ }+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": false+ },+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ -1+ ]+ },+ "data": {"anyOf": [{- "$ref": "#/$defs/WorkspaceAVBuiltinColorUpdateInput"+ "type": "object",+ "properties": {+ "closeTimeout": {+ "type": "number"+ }+ },+ "required": [+ "closeTimeout"+ ],+ "additionalProperties": false},{"type": "null"}]- }- },- {- "type": "null"- }- ]- },- "colors": {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/AttributeViewCustomColorInput"},- {- "type": "null"+ "msg": {+ "type": "string"}- ]- }- },- "order": {- "type": "array",- "items": {- "type": "string"+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": true}- }- },- "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/plugin",- "handler": "listLoadedPluginsGET",+ "method": "POST",+ "path": "/api/attr/getBookmarkLabels",+ "handler": "getBookmarkLabels","body": "none","request": {"$ref": "#/$defs/EmptyRequestInput"@@ -15017,14 +16905,7 @@{"type": "array","items": {- "anyOf": [- {- "$ref": "#/$defs/LoadedPlugin"- },- {- "type": "null"- }- ]+ "type": "string"}},{@@ -15086,12 +16967,12 @@}},{- "method": "GET",- "path": "/api/plugin/rpc",- "handler": "getLoadedPluginRPC",- "body": "json",+ "method": "POST",+ "path": "/api/attr/resetBlockAttrs",+ "handler": "resetBlockAttrs",+ "body": "none","request": {- "$ref": "#/$defs/LoadedPluginRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -15105,14 +16986,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/LoadedPlugin"- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -15131,11 +17005,7 @@"code": {"type": "integer","enum": [- -1,- 1,- 2,- 3,- 4+ -1]},"data": {@@ -15172,12 +17042,12 @@}},{- "method": "GET",- "path": "/api/plugin/rpc/:name",- "handler": "getLoadedPluginRPCByName",+ "method": "POST",+ "path": "/api/attr/setBlockAttrs",+ "handler": "setBlockAttrs","body": "json","request": {- "$ref": "#/$defs/LoadedPluginRequestInput"+ "$ref": "#/$defs/SetBlockAttrsRequestInput"},"response": {"anyOf": [@@ -15190,10 +17060,42 @@0]},+ "data": {+ "type": "null"+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": false+ },+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ -1+ ]+ },"data": {"anyOf": [{- "$ref": "#/$defs/LoadedPlugin"+ "type": "object",+ "properties": {+ "closeTimeout": {+ "type": "number"+ }+ },+ "required": [+ "closeTimeout"+ ],+ "additionalProperties": false},{"type": "null"@@ -15209,6 +17111,42 @@"msg","data"],+ "additionalProperties": true+ }+ ]+ }+ },+ {+ "method": "POST",+ "path": "/api/av/searchAttributeViewNonRelationKey",+ "handler": "searchAttributeViewNonRelationKey",+ "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},{@@ -15217,11 +17155,7 @@"code": {"type": "integer","enum": [- -1,- 1,- 2,- 3,- 4+ -1]},"data": {@@ -15258,12 +17192,12 @@}},{- "method": "GET",- "path": "/api/system/bootProgress",- "handler": "bootProgress",- "body": "none",+ "method": "POST",+ "path": "/api/bazaar/batchUpdatePackage",+ "handler": "batchUpdatePackage",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/BatchUpdatePackageRequestInput"},"response": {"anyOf": [@@ -15277,7 +17211,7 @@]},"data": {- "$ref": "#/$defs/BootProgressData"+ "type": "null"},"msg": {"type": "string"@@ -15296,7 +17230,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -15333,12 +17268,12 @@}},{- "method": "GET",- "path": "/api/system/version",- "handler": "version",- "body": "none",+ "method": "POST",+ "path": "/api/bazaar/getBazaarIcon",+ "handler": "getBazaarIcon",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/GetBazaarIconRequestInput"},"response": {"anyOf": [@@ -15352,7 +17287,7 @@]},"data": {- "type": "string"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -15371,7 +17306,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -15408,45 +17344,26 @@}},{- "method": "GET",- "path": "/ws/plugin/rpc",- "handler": "pluginJsonRpcWebSocket",- "body": "none",+ "method": "POST",+ "path": "/api/bazaar/getBazaarPackage",+ "handler": "getBazaarPackage",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/GetBazaarPackageRequestInput"},"response": {"anyOf": [- {- "$ref": "#/$defs/PluginRPCFailure"- },{"type": "object","properties": {"code": {"type": "integer","enum": [- -1+ 0]},"data": {- "anyOf": [- {- "type": "object",- "properties": {- "closeTimeout": {- "type": "number"- }- },- "required": [- "closeTimeout"- ],- "additionalProperties": false- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/BazaarPackageDetail"},"msg": {"type": "string"@@ -15457,68 +17374,7 @@"msg","data"],- "additionalProperties": true- }- ]- },- "output": "websocket",- "websocket": {- "incoming": {- "anyOf": [- {- "$ref": "#/$defs/PluginRPCRequestFieldsInput"- },- {- "type": "array",- "items": {- "$ref": "#/$defs/PluginRPCRequestFieldsInput"- },- "minItems": 1- }- ]- },- "outgoing": {- "anyOf": [- {- "$ref": "#/$defs/PluginRPCSuccess"- },- {- "$ref": "#/$defs/PluginRPCFailure"- },- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/PluginRPCSuccess"- },- {- "$ref": "#/$defs/PluginRPCFailure"- }- ]- },- "minItems": 1- },- {- "$ref": "#/$defs/PluginRPCNotification"- }- ]- },- "failureStatus": 404- }- },- {- "method": "GET",- "path": "/ws/plugin/rpc/:name",- "handler": "pluginJsonRpcWebSocketByName",- "body": "none",- "request": {- "$ref": "#/$defs/EmptyRequestInput"- },- "response": {- "anyOf": [- {- "$ref": "#/$defs/PluginRPCFailure"+ "additionalProperties": false},{"type": "object",@@ -15526,7 +17382,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -15560,60 +17417,15 @@"additionalProperties": true}]- },- "output": "websocket",- "websocket": {- "incoming": {- "anyOf": [- {- "$ref": "#/$defs/PluginRPCRequestFieldsInput"- },- {- "type": "array",- "items": {- "$ref": "#/$defs/PluginRPCRequestFieldsInput"- },- "minItems": 1- }- ]- },- "outgoing": {- "anyOf": [- {- "$ref": "#/$defs/PluginRPCSuccess"- },- {- "$ref": "#/$defs/PluginRPCFailure"- },- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/PluginRPCSuccess"- },- {- "$ref": "#/$defs/PluginRPCFailure"- }- ]- },- "minItems": 1- },- {- "$ref": "#/$defs/PluginRPCNotification"- }- ]- },- "failureStatus": 404}},{"method": "POST",- "path": "/api/account/checkActivationcode",- "handler": "checkActivationcode",+ "path": "/api/bazaar/getBazaarPackageREADME",+ "handler": "getBazaarPackageREADME","body": "json","request": {- "$ref": "#/$defs/CheckActivationCodeRequestInput"+ "$ref": "#/$defs/GetBazaarPackageREADMERequestInput"},"response": {"anyOf": [@@ -15627,7 +17439,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarREADMEData"},"msg": {"type": "string"@@ -15664,9 +17476,6 @@],"additionalProperties": false},- {- "type": "null"- },{"type": "null"}@@ -15688,11 +17497,11 @@},{"method": "POST",- "path": "/api/account/deactivate",- "handler": "deactivateUser",- "body": "none",+ "path": "/api/bazaar/getBazaarPackageRating",+ "handler": "getBazaarPackageRating",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/GetBazaarPackageRatingRequestInput"},"response": {"anyOf": [@@ -15706,7 +17515,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarRatingResult"},"msg": {"type": "string"@@ -15725,7 +17534,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -15744,6 +17554,9 @@},{"type": "null"+ },+ {+ "$ref": "#/$defs/BazaarRatingResult"}]},@@ -15763,11 +17576,11 @@},{"method": "POST",- "path": "/api/account/login",- "handler": "login",+ "path": "/api/bazaar/getBazaarPackageRatings",+ "handler": "getBazaarPackageRatings","body": "json","request": {- "$ref": "#/$defs/AccountLoginRequestInput"+ "$ref": "#/$defs/GetBazaarPackageRatingsRequestInput"},"response": {"anyOf": [@@ -15781,14 +17594,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/AccountLoginData"- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/BazaarRatingsData"},"msg": {"type": "string"@@ -15808,8 +17614,7 @@"type": "integer","enum": [-1,- 1,- 10+ 1]},"data": {@@ -15828,16 +17633,6 @@},{"type": "null"- },- {- "anyOf": [- {- "$ref": "#/$defs/AccountLoginData"- },- {- "type": "null"- }- ]}]},@@ -15857,11 +17652,11 @@},{"method": "POST",- "path": "/api/account/startFreeTrial",- "handler": "startFreeTrial",- "body": "none",+ "path": "/api/bazaar/getBazaarPackageUserRatings",+ "handler": "getBazaarPackageUserRatings",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/GetBazaarPackageUserRatingsRequestInput"},"response": {"anyOf": [@@ -15875,7 +17670,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarUserRatingsResult"},"msg": {"type": "string"@@ -15894,7 +17689,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -15913,6 +17709,9 @@},{"type": "null"+ },+ {+ "$ref": "#/$defs/BazaarUserRatingsResult"}]},@@ -15932,11 +17731,11 @@},{"method": "POST",- "path": "/api/account/useActivationcode",- "handler": "useActivationcode",+ "path": "/api/bazaar/getBazaarPlugin",+ "handler": "getBazaarPlugin","body": "json","request": {- "$ref": "#/$defs/ActivationCodeRequestInput"+ "$ref": "#/$defs/GetBazaarPluginRequestInput"},"response": {"anyOf": [@@ -15950,7 +17749,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -15969,7 +17768,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -16007,11 +17807,11 @@},{"method": "POST",- "path": "/api/archive/unzip",- "handler": "unzip",+ "path": "/api/bazaar/getBazaarTemplate",+ "handler": "getBazaarTemplate","body": "json","request": {- "$ref": "#/$defs/UnzipRequestInput"+ "$ref": "#/$defs/GetBazaarTemplateRequestInput"},"response": {"anyOf": [@@ -16025,7 +17825,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -16044,7 +17844,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -16082,11 +17883,11 @@},{"method": "POST",- "path": "/api/archive/zip",- "handler": "zip",+ "path": "/api/bazaar/getBazaarTheme",+ "handler": "getBazaarTheme","body": "json","request": {- "$ref": "#/$defs/ZipRequestInput"+ "$ref": "#/$defs/GetBazaarThemeRequestInput"},"response": {"anyOf": [@@ -16100,7 +17901,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -16119,7 +17920,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -16157,11 +17959,11 @@},{"method": "POST",- "path": "/api/attr/batchGetBlockAttrs",- "handler": "batchGetBlockAttrs",+ "path": "/api/bazaar/getBazaarWidget",+ "handler": "getBazaarWidget","body": "json","request": {- "$ref": "#/$defs/BlockIDsRequestInput"+ "$ref": "#/$defs/GetBazaarWidgetRequestInput"},"response": {"anyOf": [@@ -16175,20 +17977,7 @@]},"data": {- "type": "object",- "additionalProperties": {- "anyOf": [- {- "type": "object",- "additionalProperties": {- "type": "string"- }- },- {- "type": "null"- }- ]- }+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -16207,7 +17996,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -16245,11 +18035,11 @@},{"method": "POST",- "path": "/api/attr/batchSetBlockAttrs",- "handler": "batchSetBlockAttrs",+ "path": "/api/bazaar/getInstalledIcon",+ "handler": "getInstalledIcon","body": "json","request": {- "$ref": "#/$defs/BatchSetBlockAttrsRequestInput"+ "$ref": "#/$defs/GetInstalledIconRequestInput"},"response": {"anyOf": [@@ -16263,7 +18053,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -16282,7 +18072,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -16320,11 +18111,11 @@},{"method": "POST",- "path": "/api/attr/getBlockAttrs",- "handler": "getBlockAttrs",+ "path": "/api/bazaar/getInstalledPackageSize",+ "handler": "getInstalledPackageSize","body": "json","request": {- "$ref": "#/$defs/BlockIDRequestInput"+ "$ref": "#/$defs/GetInstalledPackageSizeRequestInput"},"response": {"anyOf": [@@ -16338,10 +18129,7 @@]},"data": {- "type": "object",- "additionalProperties": {- "type": "string"- }+ "$ref": "#/$defs/BazaarPackageSizeData"},"msg": {"type": "string"@@ -16360,7 +18148,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -16398,11 +18187,11 @@},{"method": "POST",- "path": "/api/attr/getBookmarkLabels",- "handler": "getBookmarkLabels",- "body": "none",+ "path": "/api/bazaar/getInstalledPlugin",+ "handler": "getInstalledPlugin",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/GetInstalledPluginRequestInput"},"response": {"anyOf": [@@ -16416,17 +18205,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "type": "string"- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -16445,7 +18224,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -16483,11 +18263,11 @@},{"method": "POST",- "path": "/api/attr/resetBlockAttrs",- "handler": "resetBlockAttrs",- "body": "none",+ "path": "/api/bazaar/getInstalledTemplate",+ "handler": "getInstalledTemplate",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/GetInstalledTemplateRequestInput"},"response": {"anyOf": [@@ -16501,7 +18281,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -16520,7 +18300,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -16558,11 +18339,11 @@},{"method": "POST",- "path": "/api/attr/setBlockAttrs",- "handler": "setBlockAttrs",+ "path": "/api/bazaar/getInstalledTheme",+ "handler": "getInstalledTheme","body": "json","request": {- "$ref": "#/$defs/SetBlockAttrsRequestInput"+ "$ref": "#/$defs/GetInstalledThemeRequestInput"},"response": {"anyOf": [@@ -16576,7 +18357,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -16595,7 +18376,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -16633,11 +18415,11 @@},{"method": "POST",- "path": "/api/av/searchAttributeViewNonRelationKey",- "handler": "searchAttributeViewNonRelationKey",- "body": "none",+ "path": "/api/bazaar/getInstalledWidget",+ "handler": "getInstalledWidget",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/GetInstalledWidgetRequestInput"},"response": {"anyOf": [@@ -16651,7 +18433,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -16670,7 +18452,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -16708,11 +18491,11 @@},{"method": "POST",- "path": "/api/bazaar/batchUpdatePackage",- "handler": "batchUpdatePackage",+ "path": "/api/bazaar/getUpdatedPackage",+ "handler": "getUpdatedPackage","body": "json","request": {- "$ref": "#/$defs/BatchUpdatePackageRequestInput"+ "$ref": "#/$defs/GetUpdatedPackageRequestInput"},"response": {"anyOf": [@@ -16726,7 +18509,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarUpdatedData"},"msg": {"type": "string"@@ -16784,11 +18567,11 @@},{"method": "POST",- "path": "/api/bazaar/getBazaarIcon",- "handler": "getBazaarIcon",+ "path": "/api/bazaar/installBazaarIcon",+ "handler": "installBazaarIcon","body": "json","request": {- "$ref": "#/$defs/GetBazaarIconRequestInput"+ "$ref": "#/$defs/InstallBazaarIconRequestInput"},"response": {"anyOf": [@@ -16802,7 +18585,7 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "$ref": "#/$defs/BazaarAppearancePackagesData"},"msg": {"type": "string"@@ -16860,11 +18643,11 @@},{"method": "POST",- "path": "/api/bazaar/getBazaarPackage",- "handler": "getBazaarPackage",+ "path": "/api/bazaar/installBazaarPlugin",+ "handler": "installBazaarPlugin","body": "json","request": {- "$ref": "#/$defs/GetBazaarPackageRequestInput"+ "$ref": "#/$defs/InstallBazaarPluginRequestInput"},"response": {"anyOf": [@@ -16878,7 +18661,7 @@]},"data": {- "$ref": "#/$defs/BazaarPackageDetail"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -16936,11 +18719,11 @@},{"method": "POST",- "path": "/api/bazaar/getBazaarPackageREADME",- "handler": "getBazaarPackageREADME",+ "path": "/api/bazaar/installBazaarTemplate",+ "handler": "installBazaarTemplate","body": "json","request": {- "$ref": "#/$defs/GetBazaarPackageREADMERequestInput"+ "$ref": "#/$defs/InstallBazaarTemplateRequestInput"},"response": {"anyOf": [@@ -16954,7 +18737,7 @@]},"data": {- "$ref": "#/$defs/BazaarREADMEData"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -17012,11 +18795,11 @@},{"method": "POST",- "path": "/api/bazaar/getBazaarPackageRating",- "handler": "getBazaarPackageRating",+ "path": "/api/bazaar/installBazaarTheme",+ "handler": "installBazaarTheme","body": "json","request": {- "$ref": "#/$defs/GetBazaarPackageRatingRequestInput"+ "$ref": "#/$defs/InstallBazaarThemeRequestInput"},"response": {"anyOf": [@@ -17030,7 +18813,7 @@]},"data": {- "$ref": "#/$defs/BazaarRatingResult"+ "$ref": "#/$defs/BazaarAppearancePackagesData"},"msg": {"type": "string"@@ -17069,9 +18852,6 @@},{"type": "null"- },- {- "$ref": "#/$defs/BazaarRatingResult"}]},@@ -17091,11 +18871,11 @@},{"method": "POST",- "path": "/api/bazaar/getBazaarPackageRatings",- "handler": "getBazaarPackageRatings",+ "path": "/api/bazaar/installBazaarWidget",+ "handler": "installBazaarWidget","body": "json","request": {- "$ref": "#/$defs/GetBazaarPackageRatingsRequestInput"+ "$ref": "#/$defs/InstallBazaarWidgetRequestInput"},"response": {"anyOf": [@@ -17109,7 +18889,7 @@]},"data": {- "$ref": "#/$defs/BazaarRatingsData"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -17167,11 +18947,11 @@},{"method": "POST",- "path": "/api/bazaar/getBazaarPackageUserRatings",- "handler": "getBazaarPackageUserRatings",- "body": "json",+ "path": "/api/bazaar/installLocalBazaarPackage",+ "handler": "installLocalBazaarPackage",+ "body": "multipart","request": {- "$ref": "#/$defs/GetBazaarPackageUserRatingsRequestInput"+ "$ref": "#/$defs/InstallLocalBazaarPackageRequestInput"},"response": {"anyOf": [@@ -17185,7 +18965,7 @@]},"data": {- "$ref": "#/$defs/BazaarUserRatingsResult"+ "$ref": "#/$defs/BazaarLocalInstallResult"},"msg": {"type": "string"@@ -17226,7 +19006,7 @@"type": "null"},{- "$ref": "#/$defs/BazaarUserRatingsResult"+ "$ref": "#/$defs/BazaarLocalInstallResult"}]},@@ -17246,11 +19026,11 @@},{"method": "POST",- "path": "/api/bazaar/getBazaarPlugin",- "handler": "getBazaarPlugin",+ "path": "/api/bazaar/setBazaarPackageRating",+ "handler": "setBazaarPackageRating","body": "json","request": {- "$ref": "#/$defs/GetBazaarPluginRequestInput"+ "$ref": "#/$defs/SetBazaarPackageRatingRequestInput"},"response": {"anyOf": [@@ -17264,7 +19044,7 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "$ref": "#/$defs/BazaarRatingResult"},"msg": {"type": "string"@@ -17303,6 +19083,9 @@},{"type": "null"+ },+ {+ "$ref": "#/$defs/BazaarRatingResult"}]},@@ -17322,11 +19105,11 @@},{"method": "POST",- "path": "/api/bazaar/getBazaarTemplate",- "handler": "getBazaarTemplate",+ "path": "/api/bazaar/uninstallBazaarIcon",+ "handler": "uninstallBazaarIcon","body": "json","request": {- "$ref": "#/$defs/GetBazaarTemplateRequestInput"+ "$ref": "#/$defs/UninstallBazaarIconRequestInput"},"response": {"anyOf": [@@ -17340,7 +19123,7 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "$ref": "#/$defs/BazaarAppearancePackagesData"},"msg": {"type": "string"@@ -17398,11 +19181,11 @@},{"method": "POST",- "path": "/api/bazaar/getBazaarTheme",- "handler": "getBazaarTheme",+ "path": "/api/bazaar/uninstallBazaarPlugin",+ "handler": "uninstallBazaarPlugin","body": "json","request": {- "$ref": "#/$defs/GetBazaarThemeRequestInput"+ "$ref": "#/$defs/UninstallBazaarPluginRequestInput"},"response": {"anyOf": [@@ -17474,11 +19257,11 @@},{"method": "POST",- "path": "/api/bazaar/getBazaarWidget",- "handler": "getBazaarWidget",+ "path": "/api/bazaar/uninstallBazaarTemplate",+ "handler": "uninstallBazaarTemplate","body": "json","request": {- "$ref": "#/$defs/GetBazaarWidgetRequestInput"+ "$ref": "#/$defs/UninstallBazaarTemplateRequestInput"},"response": {"anyOf": [@@ -17550,11 +19333,11 @@},{"method": "POST",- "path": "/api/bazaar/getInstalledIcon",- "handler": "getInstalledIcon",+ "path": "/api/bazaar/uninstallBazaarTheme",+ "handler": "uninstallBazaarTheme","body": "json","request": {- "$ref": "#/$defs/GetInstalledIconRequestInput"+ "$ref": "#/$defs/UninstallBazaarThemeRequestInput"},"response": {"anyOf": [@@ -17568,7 +19351,7 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "$ref": "#/$defs/BazaarAppearancePackagesData"},"msg": {"type": "string"@@ -17626,11 +19409,11 @@},{"method": "POST",- "path": "/api/bazaar/getInstalledPackageSize",- "handler": "getInstalledPackageSize",+ "path": "/api/bazaar/uninstallBazaarWidget",+ "handler": "uninstallBazaarWidget","body": "json","request": {- "$ref": "#/$defs/GetInstalledPackageSizeRequestInput"+ "$ref": "#/$defs/UninstallBazaarWidgetRequestInput"},"response": {"anyOf": [@@ -17644,7 +19427,7 @@]},"data": {- "$ref": "#/$defs/BazaarPackageSizeData"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -17702,11 +19485,11 @@},{"method": "POST",- "path": "/api/bazaar/getInstalledPlugin",- "handler": "getInstalledPlugin",+ "path": "/api/bazaar/updateBazaarPackage",+ "handler": "updateBazaarPackage","body": "json","request": {- "$ref": "#/$defs/GetInstalledPluginRequestInput"+ "$ref": "#/$defs/UpdateBazaarPackageRequestInput"},"response": {"anyOf": [@@ -17778,11 +19561,11 @@},{"method": "POST",- "path": "/api/bazaar/getInstalledTemplate",- "handler": "getInstalledTemplate",+ "path": "/api/block/appendBlock",+ "handler": "appendBlock","body": "json","request": {- "$ref": "#/$defs/GetInstalledTemplateRequestInput"+ "$ref": "#/$defs/AppendBlockRequestInput"},"response": {"anyOf": [@@ -17796,7 +19579,24 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -17815,8 +19615,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -17854,11 +19653,11 @@},{"method": "POST",- "path": "/api/bazaar/getInstalledTheme",- "handler": "getInstalledTheme",+ "path": "/api/block/appendDailyNoteBlock",+ "handler": "appendDailyNoteBlock","body": "json","request": {- "$ref": "#/$defs/GetInstalledThemeRequestInput"+ "$ref": "#/$defs/DailyNoteBlockRequestInput"},"response": {"anyOf": [@@ -17872,7 +19671,24 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -17891,8 +19707,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -17930,11 +19745,11 @@},{"method": "POST",- "path": "/api/bazaar/getInstalledWidget",- "handler": "getInstalledWidget",+ "path": "/api/block/appendHeadingChildren",+ "handler": "appendHeadingChildren","body": "json","request": {- "$ref": "#/$defs/GetInstalledWidgetRequestInput"+ "$ref": "#/$defs/AppendHeadingChildrenRequestInput"},"response": {"anyOf": [@@ -17948,7 +19763,7 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "type": "null"},"msg": {"type": "string"@@ -17967,8 +19782,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -18006,11 +19820,11 @@},{"method": "POST",- "path": "/api/bazaar/getUpdatedPackage",- "handler": "getUpdatedPackage",+ "path": "/api/block/batchAppendBlock",+ "handler": "batchAppendBlock","body": "json","request": {- "$ref": "#/$defs/GetUpdatedPackageRequestInput"+ "$ref": "#/$defs/BatchParentBlockRequestInput"},"response": {"anyOf": [@@ -18024,7 +19838,24 @@]},"data": {- "$ref": "#/$defs/BazaarUpdatedData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -18043,8 +19874,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -18082,11 +19912,11 @@},{"method": "POST",- "path": "/api/bazaar/installBazaarIcon",- "handler": "installBazaarIcon",+ "path": "/api/block/batchInsertBlock",+ "handler": "batchInsertBlock","body": "json","request": {- "$ref": "#/$defs/InstallBazaarIconRequestInput"+ "$ref": "#/$defs/BatchInsertBlockRequestInput"},"response": {"anyOf": [@@ -18100,7 +19930,24 @@]},"data": {- "$ref": "#/$defs/BazaarAppearancePackagesData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -18119,8 +19966,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -18158,11 +20004,11 @@},{"method": "POST",- "path": "/api/bazaar/installBazaarPlugin",- "handler": "installBazaarPlugin",+ "path": "/api/block/batchPrependBlock",+ "handler": "batchPrependBlock","body": "json","request": {- "$ref": "#/$defs/InstallBazaarPluginRequestInput"+ "$ref": "#/$defs/BatchParentBlockRequestInput"},"response": {"anyOf": [@@ -18176,7 +20022,24 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -18195,8 +20058,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -18234,11 +20096,11 @@},{"method": "POST",- "path": "/api/bazaar/installBazaarTemplate",- "handler": "installBazaarTemplate",+ "path": "/api/block/batchUpdateBlock",+ "handler": "batchUpdateBlock","body": "json","request": {- "$ref": "#/$defs/InstallBazaarTemplateRequestInput"+ "$ref": "#/$defs/BatchUpdateBlockRequestInput"},"response": {"anyOf": [@@ -18252,7 +20114,24 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -18271,8 +20150,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -18310,11 +20188,11 @@},{"method": "POST",- "path": "/api/bazaar/installBazaarTheme",- "handler": "installBazaarTheme",+ "path": "/api/block/batchUpdateTaskListItemMarker",+ "handler": "batchUpdateTaskListItemMarker","body": "json","request": {- "$ref": "#/$defs/InstallBazaarThemeRequestInput"+ "$ref": "#/$defs/BatchTaskListMarkerRequestInput"},"response": {"anyOf": [@@ -18328,7 +20206,24 @@]},"data": {- "$ref": "#/$defs/BazaarAppearancePackagesData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -18347,8 +20242,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -18386,11 +20280,11 @@},{"method": "POST",- "path": "/api/bazaar/installBazaarWidget",- "handler": "installBazaarWidget",+ "path": "/api/block/checkBlockExist",+ "handler": "checkBlockExist","body": "json","request": {- "$ref": "#/$defs/InstallBazaarWidgetRequestInput"+ "$ref": "#/$defs/BlockQueryRequestInput"},"response": {"anyOf": [@@ -18404,7 +20298,7 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "type": "boolean"},"msg": {"type": "string"@@ -18423,8 +20317,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -18462,11 +20355,11 @@},{"method": "POST",- "path": "/api/bazaar/installLocalBazaarPackage",- "handler": "installLocalBazaarPackage",- "body": "multipart",+ "path": "/api/block/checkBlockFold",+ "handler": "checkBlockFold",+ "body": "json","request": {- "$ref": "#/$defs/InstallLocalBazaarPackageRequestInput"+ "$ref": "#/$defs/BlockQueryRequestInput"},"response": {"anyOf": [@@ -18480,7 +20373,7 @@]},"data": {- "$ref": "#/$defs/BazaarLocalInstallResult"+ "$ref": "#/$defs/BlockFoldData"},"msg": {"type": "string"@@ -18499,8 +20392,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -18519,9 +20411,6 @@},{"type": "null"- },- {- "$ref": "#/$defs/BazaarLocalInstallResult"}]},@@ -18541,11 +20430,11 @@},{"method": "POST",- "path": "/api/bazaar/setBazaarPackageRating",- "handler": "setBazaarPackageRating",+ "path": "/api/block/checkBlockRef",+ "handler": "checkBlockRef","body": "json","request": {- "$ref": "#/$defs/SetBazaarPackageRatingRequestInput"+ "$ref": "#/$defs/CheckBlockRefRequestInput"},"response": {"anyOf": [@@ -18559,7 +20448,7 @@]},"data": {- "$ref": "#/$defs/BazaarRatingResult"+ "type": "boolean"},"msg": {"type": "string"@@ -18578,8 +20467,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -18600,7 +20488,7 @@"type": "null"},{- "$ref": "#/$defs/BazaarRatingResult"+ "type": "boolean"}]},@@ -18620,11 +20508,11 @@},{"method": "POST",- "path": "/api/bazaar/uninstallBazaarIcon",- "handler": "uninstallBazaarIcon",+ "path": "/api/block/checkBlocksExist",+ "handler": "checkBlocksExist","body": "json","request": {- "$ref": "#/$defs/UninstallBazaarIconRequestInput"+ "$ref": "#/$defs/CheckBlocksExistRequestInput"},"response": {"anyOf": [@@ -18637,9 +20525,19 @@0]},- "data": {- "$ref": "#/$defs/BazaarAppearancePackagesData"- },+ "data": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "boolean"+ }+ },+ {+ "type": "null"+ }+ ]+ },"msg": {"type": "string"}@@ -18657,8 +20555,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -18696,11 +20593,11 @@},{"method": "POST",- "path": "/api/bazaar/uninstallBazaarPlugin",- "handler": "uninstallBazaarPlugin",+ "path": "/api/block/deleteBlock",+ "handler": "deleteBlock","body": "json","request": {- "$ref": "#/$defs/UninstallBazaarPluginRequestInput"+ "$ref": "#/$defs/DeleteBlockRequestInput"},"response": {"anyOf": [@@ -18714,7 +20611,24 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -18733,8 +20647,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -18772,11 +20685,11 @@},{"method": "POST",- "path": "/api/bazaar/uninstallBazaarTemplate",- "handler": "uninstallBazaarTemplate",+ "path": "/api/block/foldBlock",+ "handler": "foldBlock","body": "json","request": {- "$ref": "#/$defs/UninstallBazaarTemplateRequestInput"+ "$ref": "#/$defs/BlockIDRequestInput"},"response": {"anyOf": [@@ -18790,7 +20703,7 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "type": "null"},"msg": {"type": "string"@@ -18809,8 +20722,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -18848,11 +20760,11 @@},{"method": "POST",- "path": "/api/bazaar/uninstallBazaarTheme",- "handler": "uninstallBazaarTheme",+ "path": "/api/block/getBlockBreadcrumb",+ "handler": "getBlockBreadcrumb","body": "json","request": {- "$ref": "#/$defs/UninstallBazaarThemeRequestInput"+ "$ref": "#/$defs/BlockBreadcrumbRequestInput"},"response": {"anyOf": [@@ -18866,7 +20778,24 @@]},"data": {- "$ref": "#/$defs/BazaarAppearancePackagesData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockPath"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -18885,8 +20814,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -18924,11 +20852,11 @@},{"method": "POST",- "path": "/api/bazaar/uninstallBazaarWidget",- "handler": "uninstallBazaarWidget",+ "path": "/api/block/getBlockBreadcrumbChildren",+ "handler": "getBlockBreadcrumbChildren","body": "json","request": {- "$ref": "#/$defs/UninstallBazaarWidgetRequestInput"+ "$ref": "#/$defs/BlockBreadcrumbChildrenRequestInput"},"response": {"anyOf": [@@ -18942,7 +20870,14 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "anyOf": [+ {+ "$ref": "#/$defs/BlockBreadcrumbChildren"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -18961,8 +20896,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -19000,11 +20934,11 @@},{"method": "POST",- "path": "/api/bazaar/updateBazaarPackage",- "handler": "updateBazaarPackage",+ "path": "/api/block/getBlockDOM",+ "handler": "getBlockDOM","body": "json","request": {- "$ref": "#/$defs/UpdateBazaarPackageRequestInput"+ "$ref": "#/$defs/BlockQueryRequestInput"},"response": {"anyOf": [@@ -19018,7 +20952,7 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "$ref": "#/$defs/BlockDOMData"},"msg": {"type": "string"@@ -19037,8 +20971,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -19076,11 +21009,11 @@},{"method": "POST",- "path": "/api/block/appendBlock",- "handler": "appendBlock",+ "path": "/api/block/getBlockDOMWithEmbed",+ "handler": "getBlockDOMWithEmbed","body": "json","request": {- "$ref": "#/$defs/AppendBlockRequestInput"+ "$ref": "#/$defs/BlockQueryRequestInput"},"response": {"anyOf": [@@ -19094,24 +21027,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/BlockDOMData"},"msg": {"type": "string"@@ -19168,11 +21084,11 @@},{"method": "POST",- "path": "/api/block/appendDailyNoteBlock",- "handler": "appendDailyNoteBlock",+ "path": "/api/block/getBlockDOMs",+ "handler": "getBlockDOMs","body": "json","request": {- "$ref": "#/$defs/DailyNoteBlockRequestInput"+ "$ref": "#/$defs/BlocksQueryRequestInput"},"response": {"anyOf": [@@ -19188,16 +21104,9 @@"data": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]+ "type": "object",+ "additionalProperties": {+ "type": "string"}},{@@ -19260,11 +21169,11 @@},{"method": "POST",- "path": "/api/block/appendHeadingChildren",- "handler": "appendHeadingChildren",+ "path": "/api/block/getBlockDOMsWithEmbed",+ "handler": "getBlockDOMsWithEmbed","body": "json","request": {- "$ref": "#/$defs/AppendHeadingChildrenRequestInput"+ "$ref": "#/$defs/BlocksQueryRequestInput"},"response": {"anyOf": [@@ -19278,7 +21187,17 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -19335,11 +21254,11 @@},{"method": "POST",- "path": "/api/block/batchAppendBlock",- "handler": "batchAppendBlock",+ "path": "/api/block/getBlockDefIDsByRefText",+ "handler": "getBlockDefIDsByRefText","body": "json","request": {- "$ref": "#/$defs/BatchParentBlockRequestInput"+ "$ref": "#/$defs/RefTextQueryRequestInput"},"response": {"anyOf": [@@ -19353,24 +21272,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/RefDefsData"},"msg": {"type": "string"@@ -19427,11 +21329,11 @@},{"method": "POST",- "path": "/api/block/batchInsertBlock",- "handler": "batchInsertBlock",+ "path": "/api/block/getBlockIndex",+ "handler": "getBlockIndex","body": "json","request": {- "$ref": "#/$defs/BatchInsertBlockRequestInput"+ "$ref": "#/$defs/BlockQueryRequestInput"},"response": {"anyOf": [@@ -19445,24 +21347,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "type": "integer"},"msg": {"type": "string"@@ -19519,11 +21404,11 @@},{"method": "POST",- "path": "/api/block/batchPrependBlock",- "handler": "batchPrependBlock",+ "path": "/api/block/getBlockInfo",+ "handler": "getBlockInfo","body": "json","request": {- "$ref": "#/$defs/BatchParentBlockRequestInput"+ "$ref": "#/$defs/BlockInfoRequestInput"},"response": {"anyOf": [@@ -19537,24 +21422,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/BlockInfoData"},"msg": {"type": "string"@@ -19573,7 +21441,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 3]},"data": {@@ -19592,6 +21461,9 @@},{"type": "null"+ },+ {+ "type": "string"}]},@@ -19611,11 +21483,11 @@},{"method": "POST",- "path": "/api/block/batchUpdateBlock",- "handler": "batchUpdateBlock",+ "path": "/api/block/getBlockKramdown",+ "handler": "getBlockKramdown","body": "json","request": {- "$ref": "#/$defs/BatchUpdateBlockRequestInput"+ "$ref": "#/$defs/BlockKramdownRequestInput"},"response": {"anyOf": [@@ -19629,24 +21501,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/BlockKramdownData"},"msg": {"type": "string"@@ -19703,11 +21558,11 @@},{"method": "POST",- "path": "/api/block/batchUpdateTaskListItemMarker",- "handler": "batchUpdateTaskListItemMarker",+ "path": "/api/block/getBlockKramdowns",+ "handler": "getBlockKramdowns","body": "json","request": {- "$ref": "#/$defs/BatchTaskListMarkerRequestInput"+ "$ref": "#/$defs/BlocksKramdownRequestInput"},"response": {"anyOf": [@@ -19723,16 +21578,9 @@"data": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]+ "type": "object",+ "additionalProperties": {+ "type": "string"}},{@@ -19795,8 +21643,8 @@},{"method": "POST",- "path": "/api/block/checkBlockExist",- "handler": "checkBlockExist",+ "path": "/api/block/getBlockRelevantIDs",+ "handler": "getBlockRelevantIDs","body": "json","request": {"$ref": "#/$defs/BlockQueryRequestInput"@@ -19813,7 +21661,7 @@]},"data": {- "type": "boolean"+ "$ref": "#/$defs/BlockRelevantData"},"msg": {"type": "string"@@ -19870,8 +21718,8 @@},{"method": "POST",- "path": "/api/block/checkBlockFold",- "handler": "checkBlockFold",+ "path": "/api/block/getBlockSiblingID",+ "handler": "getBlockSiblingID","body": "json","request": {"$ref": "#/$defs/BlockQueryRequestInput"@@ -19888,7 +21736,7 @@]},"data": {- "$ref": "#/$defs/BlockFoldData"+ "$ref": "#/$defs/BlockSiblingData"},"msg": {"type": "string"@@ -19945,11 +21793,11 @@},{"method": "POST",- "path": "/api/block/checkBlockRef",- "handler": "checkBlockRef",+ "path": "/api/block/getBlockTreeInfos",+ "handler": "getBlockTreeInfos","body": "json","request": {- "$ref": "#/$defs/CheckBlockRefRequestInput"+ "$ref": "#/$defs/BlocksQueryRequestInput"},"response": {"anyOf": [@@ -19963,7 +21811,24 @@]},"data": {- "type": "boolean"+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTreeInfo"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -20001,9 +21866,6 @@},{"type": "null"- },- {- "type": "boolean"}]},@@ -20023,11 +21885,11 @@},{"method": "POST",- "path": "/api/block/checkBlocksExist",- "handler": "checkBlocksExist",+ "path": "/api/block/getBlocksIndexes",+ "handler": "getBlocksIndexes","body": "json","request": {- "$ref": "#/$defs/CheckBlocksExistRequestInput"+ "$ref": "#/$defs/BlocksQueryRequestInput"},"response": {"anyOf": [@@ -20045,7 +21907,7 @@{"type": "object","additionalProperties": {- "type": "boolean"+ "type": "integer"}},{@@ -20108,11 +21970,11 @@},{"method": "POST",- "path": "/api/block/deleteBlock",- "handler": "deleteBlock",+ "path": "/api/block/getBlocksWordCount",+ "handler": "getBlocksWordCount","body": "json","request": {- "$ref": "#/$defs/DeleteBlockRequestInput"+ "$ref": "#/$defs/BlocksWordCountRequestInput"},"response": {"anyOf": [@@ -20126,24 +21988,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/WordCountData"},"msg": {"type": "string"@@ -20200,11 +22045,11 @@},{"method": "POST",- "path": "/api/block/foldBlock",- "handler": "foldBlock",+ "path": "/api/block/getChildBlocks",+ "handler": "getChildBlocks","body": "json","request": {- "$ref": "#/$defs/BlockIDRequestInput"+ "$ref": "#/$defs/BlockQueryRequestInput"},"response": {"anyOf": [@@ -20218,7 +22063,17 @@]},"data": {- "type": "null"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/ChildBlock"+ },+ {+ "type": "null"+ }+ ]+ }},"msg": {"type": "string"@@ -20275,11 +22130,11 @@},{"method": "POST",- "path": "/api/block/getBlockBreadcrumb",- "handler": "getBlockBreadcrumb",+ "path": "/api/block/getContentWordCount",+ "handler": "getContentWordCount","body": "json","request": {- "$ref": "#/$defs/BlockBreadcrumbRequestInput"+ "$ref": "#/$defs/ContentWordCountRequestInput"},"response": {"anyOf": [@@ -20293,24 +22148,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockPath"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/WordCountData"},"msg": {"type": "string"@@ -20367,11 +22205,11 @@},{"method": "POST",- "path": "/api/block/getBlockBreadcrumbChildren",- "handler": "getBlockBreadcrumbChildren",+ "path": "/api/block/getDOMText",+ "handler": "getDOMText","body": "json","request": {- "$ref": "#/$defs/BlockBreadcrumbChildrenRequestInput"+ "$ref": "#/$defs/DOMTextRequestInput"},"response": {"anyOf": [@@ -20385,14 +22223,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/BlockBreadcrumbChildren"- },- {- "type": "null"- }- ]+ "type": "string"},"msg": {"type": "string"@@ -20449,11 +22280,11 @@},{"method": "POST",- "path": "/api/block/getBlockDOM",- "handler": "getBlockDOM",+ "path": "/api/block/getDocBlocksOrders",+ "handler": "getDocBlocksOrders","body": "json","request": {- "$ref": "#/$defs/BlockQueryRequestInput"+ "$ref": "#/$defs/DocOrdersRequestInput"},"response": {"anyOf": [@@ -20467,7 +22298,17 @@]},"data": {- "$ref": "#/$defs/BlockDOMData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -20524,11 +22365,11 @@},{"method": "POST",- "path": "/api/block/getBlockDOMWithEmbed",- "handler": "getBlockDOMWithEmbed",- "body": "json",+ "path": "/api/block/getDocHeadingLevelTransaction",+ "handler": "getDocHeadingLevelTransaction",+ "body": "structJSON","request": {- "$ref": "#/$defs/BlockQueryRequestInput"+ "$ref": "#/$defs/DocHeadingLevelRequestInput"},"response": {"anyOf": [@@ -20542,7 +22383,14 @@]},"data": {- "$ref": "#/$defs/BlockDOMData"+ "anyOf": [+ {+ "$ref": "#/$defs/DocHeadingLevelData"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -20599,11 +22447,11 @@},{"method": "POST",- "path": "/api/block/getBlockDOMs",- "handler": "getBlockDOMs",+ "path": "/api/block/getDocInfo",+ "handler": "getDocInfo","body": "json","request": {- "$ref": "#/$defs/BlocksQueryRequestInput"+ "$ref": "#/$defs/BlockQueryRequestInput"},"response": {"anyOf": [@@ -20619,10 +22467,7 @@"data": {"anyOf": [{- "type": "object",- "additionalProperties": {- "type": "string"- }+ "$ref": "#/$defs/DocInfo"},{"type": "null"@@ -20684,11 +22529,11 @@},{"method": "POST",- "path": "/api/block/getBlockDOMsWithEmbed",- "handler": "getBlockDOMsWithEmbed",+ "path": "/api/block/getDocsInfo",+ "handler": "getDocsInfo","body": "json","request": {- "$ref": "#/$defs/BlocksQueryRequestInput"+ "$ref": "#/$defs/DocsInfoRequestInput"},"response": {"anyOf": [@@ -20704,9 +22549,16 @@"data": {"anyOf": [{- "type": "object",- "additionalProperties": {- "type": "string"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/DocInfo"+ },+ {+ "type": "null"+ }+ ]}},{@@ -20769,11 +22621,11 @@},{"method": "POST",- "path": "/api/block/getBlockDefIDsByRefText",- "handler": "getBlockDefIDsByRefText",+ "path": "/api/block/getHeadingChildrenDOM",+ "handler": "getHeadingChildrenDOM","body": "json","request": {- "$ref": "#/$defs/RefTextQueryRequestInput"+ "$ref": "#/$defs/HeadingChildrenRequestInput"},"response": {"anyOf": [@@ -20787,7 +22639,7 @@]},"data": {- "$ref": "#/$defs/RefDefsData"+ "type": "string"},"msg": {"type": "string"@@ -20844,11 +22696,11 @@},{"method": "POST",- "path": "/api/block/getBlockIndex",- "handler": "getBlockIndex",+ "path": "/api/block/getHeadingChildrenIDs",+ "handler": "getHeadingChildrenIDs","body": "json","request": {- "$ref": "#/$defs/BlockQueryRequestInput"+ "$ref": "#/$defs/BlockIDRequestInput"},"response": {"anyOf": [@@ -20861,9 +22713,19 @@0]},- "data": {- "type": "integer"- },+ "data": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ },"msg": {"type": "string"}@@ -20919,11 +22781,11 @@},{"method": "POST",- "path": "/api/block/getBlockInfo",- "handler": "getBlockInfo",+ "path": "/api/block/getHeadingDeleteTransaction",+ "handler": "getHeadingDeleteTransaction","body": "json","request": {- "$ref": "#/$defs/BlockInfoRequestInput"+ "$ref": "#/$defs/BlockIDRequestInput"},"response": {"anyOf": [@@ -20937,7 +22799,14 @@]},"data": {- "$ref": "#/$defs/BlockInfoData"+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -20956,8 +22825,7 @@"code": {"type": "integer","enum": [- -1,- 3+ -1]},"data": {@@ -20976,9 +22844,6 @@},{"type": "null"- },- {- "type": "string"}]},@@ -20998,11 +22863,11 @@},{"method": "POST",- "path": "/api/block/getBlockKramdown",- "handler": "getBlockKramdown",+ "path": "/api/block/getHeadingFoldTransaction",+ "handler": "getHeadingFoldTransaction","body": "json","request": {- "$ref": "#/$defs/BlockKramdownRequestInput"+ "$ref": "#/$defs/HeadingFoldRequestInput"},"response": {"anyOf": [@@ -21016,7 +22881,14 @@]},"data": {- "$ref": "#/$defs/BlockKramdownData"+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -21073,11 +22945,11 @@},{"method": "POST",- "path": "/api/block/getBlockKramdowns",- "handler": "getBlockKramdowns",+ "path": "/api/block/getHeadingInsertTransaction",+ "handler": "getHeadingInsertTransaction","body": "json","request": {- "$ref": "#/$defs/BlocksKramdownRequestInput"+ "$ref": "#/$defs/BlockIDRequestInput"},"response": {"anyOf": [@@ -21093,10 +22965,7 @@"data": {"anyOf": [{- "type": "object",- "additionalProperties": {- "type": "string"- }+ "$ref": "#/$defs/BlockTransaction"},{"type": "null"@@ -21158,11 +23027,11 @@},{"method": "POST",- "path": "/api/block/getBlockRelevantIDs",- "handler": "getBlockRelevantIDs",+ "path": "/api/block/getHeadingLevelTransaction",+ "handler": "getHeadingLevelTransaction","body": "json","request": {- "$ref": "#/$defs/BlockQueryRequestInput"+ "$ref": "#/$defs/HeadingLevelRequestInput"},"response": {"anyOf": [@@ -21176,7 +23045,14 @@]},"data": {- "$ref": "#/$defs/BlockRelevantData"+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -21233,8 +23109,8 @@},{"method": "POST",- "path": "/api/block/getBlockSiblingID",- "handler": "getBlockSiblingID",+ "path": "/api/block/getOrderedListContinueStart",+ "handler": "getOrderedListContinueStart","body": "json","request": {"$ref": "#/$defs/BlockQueryRequestInput"@@ -21251,7 +23127,7 @@]},"data": {- "$ref": "#/$defs/BlockSiblingData"+ "$ref": "#/$defs/OrderedListStartData"},"msg": {"type": "string"@@ -21308,11 +23184,11 @@},{"method": "POST",- "path": "/api/block/getBlockTreeInfos",- "handler": "getBlockTreeInfos",- "body": "json",+ "path": "/api/block/getRecentUpdatedBlocks",+ "handler": "getRecentUpdatedBlocks",+ "body": "none","request": {- "$ref": "#/$defs/BlocksQueryRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -21328,11 +23204,11 @@"data": {"anyOf": [{- "type": "object",- "additionalProperties": {+ "type": "array",+ "items": {"anyOf": [{- "$ref": "#/$defs/BlockTreeInfo"+ "$ref": "#/$defs/SearchBlock"},{"type": "null"@@ -21400,11 +23276,11 @@},{"method": "POST",- "path": "/api/block/getBlocksIndexes",- "handler": "getBlocksIndexes",+ "path": "/api/block/getRefIDs",+ "handler": "getRefIDs","body": "json","request": {- "$ref": "#/$defs/BlocksQueryRequestInput"+ "$ref": "#/$defs/RefIDsRequestInput"},"response": {"anyOf": [@@ -21418,17 +23294,7 @@]},"data": {- "anyOf": [- {- "type": "object",- "additionalProperties": {- "type": "integer"- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/RefIDsData"},"msg": {"type": "string"@@ -21485,11 +23351,11 @@},{"method": "POST",- "path": "/api/block/getBlocksWordCount",- "handler": "getBlocksWordCount",+ "path": "/api/block/getRefIDsByFileAnnotationID",+ "handler": "getRefIDsByFileAnnotationID","body": "json","request": {- "$ref": "#/$defs/BlocksWordCountRequestInput"+ "$ref": "#/$defs/FileAnnotationRefRequestInput"},"response": {"anyOf": [@@ -21503,7 +23369,7 @@]},"data": {- "$ref": "#/$defs/WordCountData"+ "$ref": "#/$defs/RefDefsData"},"msg": {"type": "string"@@ -21560,8 +23426,8 @@},{"method": "POST",- "path": "/api/block/getChildBlocks",- "handler": "getChildBlocks",+ "path": "/api/block/getRefText",+ "handler": "getRefText","body": "json","request": {"$ref": "#/$defs/BlockQueryRequestInput"@@ -21578,17 +23444,7 @@]},"data": {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/ChildBlock"- },- {- "type": "null"- }- ]- }+ "type": "string"},"msg": {"type": "string"@@ -21645,11 +23501,11 @@},{"method": "POST",- "path": "/api/block/getContentWordCount",- "handler": "getContentWordCount",+ "path": "/api/block/getTailChildBlocks",+ "handler": "getTailChildBlocks","body": "json","request": {- "$ref": "#/$defs/ContentWordCountRequestInput"+ "$ref": "#/$defs/TailChildBlocksRequestInput"},"response": {"anyOf": [@@ -21663,7 +23519,17 @@]},"data": {- "$ref": "#/$defs/WordCountData"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/ChildBlock"+ },+ {+ "type": "null"+ }+ ]+ }},"msg": {"type": "string"@@ -21720,11 +23586,11 @@},{"method": "POST",- "path": "/api/block/getDOMText",- "handler": "getDOMText",+ "path": "/api/block/getTreeStat",+ "handler": "getTreeStat","body": "json","request": {- "$ref": "#/$defs/DOMTextRequestInput"+ "$ref": "#/$defs/TreeStatRequestInput"},"response": {"anyOf": [@@ -21738,7 +23604,7 @@]},"data": {- "type": "string"+ "$ref": "#/$defs/TreeStatData"},"msg": {"type": "string"@@ -21795,11 +23661,11 @@},{"method": "POST",- "path": "/api/block/getDocBlocksOrders",- "handler": "getDocBlocksOrders",+ "path": "/api/block/getUnfoldedParentID",+ "handler": "getUnfoldedParentID","body": "json","request": {- "$ref": "#/$defs/DocOrdersRequestInput"+ "$ref": "#/$defs/BlockQueryRequestInput"},"response": {"anyOf": [@@ -21813,17 +23679,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "type": "string"- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/UnfoldedParentData"},"msg": {"type": "string"@@ -21880,11 +23736,11 @@},{"method": "POST",- "path": "/api/block/getDocHeadingLevelTransaction",- "handler": "getDocHeadingLevelTransaction",- "body": "structJSON",+ "path": "/api/block/insertBlock",+ "handler": "insertBlock",+ "body": "json","request": {- "$ref": "#/$defs/DocHeadingLevelRequestInput"+ "$ref": "#/$defs/InsertBlockRequestInput"},"response": {"anyOf": [@@ -21900,7 +23756,17 @@"data": {"anyOf": [{- "$ref": "#/$defs/DocHeadingLevelData"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"@@ -21962,11 +23828,11 @@},{"method": "POST",- "path": "/api/block/getDocInfo",- "handler": "getDocInfo",+ "path": "/api/block/moveBlock",+ "handler": "moveBlock","body": "json","request": {- "$ref": "#/$defs/BlockQueryRequestInput"+ "$ref": "#/$defs/MoveBlockRequestInput"},"response": {"anyOf": [@@ -21980,14 +23846,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/DocInfo"- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -22044,11 +23903,11 @@},{"method": "POST",- "path": "/api/block/getDocsInfo",- "handler": "getDocsInfo",+ "path": "/api/block/moveOutlineHeading",+ "handler": "moveOutlineHeading","body": "json","request": {- "$ref": "#/$defs/DocsInfoRequestInput"+ "$ref": "#/$defs/MoveBlockRequestInput"},"response": {"anyOf": [@@ -22068,7 +23927,7 @@"items": {"anyOf": [{- "$ref": "#/$defs/DocInfo"+ "$ref": "#/$defs/BlockTransaction"},{"type": "null"@@ -22136,11 +23995,11 @@},{"method": "POST",- "path": "/api/block/getHeadingChildrenDOM",- "handler": "getHeadingChildrenDOM",+ "path": "/api/block/prependBlock",+ "handler": "prependBlock","body": "json","request": {- "$ref": "#/$defs/HeadingChildrenRequestInput"+ "$ref": "#/$defs/PrependBlockRequestInput"},"response": {"anyOf": [@@ -22154,7 +24013,24 @@]},"data": {- "type": "string"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -22211,11 +24087,11 @@},{"method": "POST",- "path": "/api/block/getHeadingChildrenIDs",- "handler": "getHeadingChildrenIDs",+ "path": "/api/block/prependDailyNoteBlock",+ "handler": "prependDailyNoteBlock","body": "json","request": {- "$ref": "#/$defs/BlockIDRequestInput"+ "$ref": "#/$defs/DailyNoteBlockRequestInput"},"response": {"anyOf": [@@ -22233,7 +24109,14 @@{"type": "array","items": {- "type": "string"+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]}},{@@ -22296,11 +24179,11 @@},{"method": "POST",- "path": "/api/block/getHeadingDeleteTransaction",- "handler": "getHeadingDeleteTransaction",+ "path": "/api/block/setBlockReminder",+ "handler": "setBlockReminder","body": "json","request": {- "$ref": "#/$defs/BlockIDRequestInput"+ "$ref": "#/$defs/BlockReminderRequestInput"},"response": {"anyOf": [@@ -22314,14 +24197,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -22378,11 +24254,11 @@},{"method": "POST",- "path": "/api/block/getHeadingFoldTransaction",- "handler": "getHeadingFoldTransaction",+ "path": "/api/block/swapBlockRef",+ "handler": "swapBlockRef","body": "json","request": {- "$ref": "#/$defs/HeadingFoldRequestInput"+ "$ref": "#/$defs/SwapBlockRefRequestInput"},"response": {"anyOf": [@@ -22396,14 +24272,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -22460,11 +24329,11 @@},{"method": "POST",- "path": "/api/block/getHeadingInsertTransaction",- "handler": "getHeadingInsertTransaction",+ "path": "/api/block/transferBlockRef",+ "handler": "transferBlockRef","body": "json","request": {- "$ref": "#/$defs/BlockIDRequestInput"+ "$ref": "#/$defs/TransferBlockRefRequestInput"},"response": {"anyOf": [@@ -22478,14 +24347,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -22542,11 +24404,11 @@},{"method": "POST",- "path": "/api/block/getHeadingLevelTransaction",- "handler": "getHeadingLevelTransaction",+ "path": "/api/block/unfoldBlock",+ "handler": "unfoldBlock","body": "json","request": {- "$ref": "#/$defs/HeadingLevelRequestInput"+ "$ref": "#/$defs/BlockIDRequestInput"},"response": {"anyOf": [@@ -22560,14 +24422,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -22624,11 +24479,11 @@},{"method": "POST",- "path": "/api/block/getOrderedListContinueStart",- "handler": "getOrderedListContinueStart",+ "path": "/api/block/updateBlock",+ "handler": "updateBlock","body": "json","request": {- "$ref": "#/$defs/BlockQueryRequestInput"+ "$ref": "#/$defs/UpdateBlockRequestInput"},"response": {"anyOf": [@@ -22642,7 +24497,24 @@]},"data": {- "$ref": "#/$defs/OrderedListStartData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -22699,11 +24571,11 @@},{"method": "POST",- "path": "/api/block/getRecentUpdatedBlocks",- "handler": "getRecentUpdatedBlocks",- "body": "none",+ "path": "/api/block/updateTaskListItemMarker",+ "handler": "updateTaskListItemMarker",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/TaskListMarkerRequestInput"},"response": {"anyOf": [@@ -22723,7 +24595,7 @@"items": {"anyOf": [{- "$ref": "#/$defs/SearchBlock"+ "$ref": "#/$defs/BlockTransaction"},{"type": "null"@@ -22791,11 +24663,11 @@},{"method": "POST",- "path": "/api/block/getRefIDs",- "handler": "getRefIDs",- "body": "json",+ "path": "/api/bookmark/getBookmark",+ "handler": "getBookmark",+ "body": "none","request": {- "$ref": "#/$defs/RefIDsRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -22809,7 +24681,24 @@]},"data": {- "$ref": "#/$defs/RefIDsData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/Bookmark"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -22866,11 +24755,11 @@},{"method": "POST",- "path": "/api/block/getRefIDsByFileAnnotationID",- "handler": "getRefIDsByFileAnnotationID",+ "path": "/api/bookmark/removeBookmark",+ "handler": "removeBookmark","body": "json","request": {- "$ref": "#/$defs/FileAnnotationRefRequestInput"+ "$ref": "#/$defs/RemoveBookmarkRequestInput"},"response": {"anyOf": [@@ -22884,7 +24773,7 @@]},"data": {- "$ref": "#/$defs/RefDefsData"+ "type": "null"},"msg": {"type": "string"@@ -22941,11 +24830,11 @@},{"method": "POST",- "path": "/api/block/getRefText",- "handler": "getRefText",+ "path": "/api/bookmark/renameBookmark",+ "handler": "renameBookmark","body": "json","request": {- "$ref": "#/$defs/BlockQueryRequestInput"+ "$ref": "#/$defs/RenameBookmarkRequestInput"},"response": {"anyOf": [@@ -22959,7 +24848,7 @@]},"data": {- "type": "string"+ "type": "null"},"msg": {"type": "string"@@ -23016,11 +24905,11 @@},{"method": "POST",- "path": "/api/block/getTailChildBlocks",- "handler": "getTailChildBlocks",+ "path": "/api/broadcast/getChannelInfo",+ "handler": "getChannelInfo","body": "json","request": {- "$ref": "#/$defs/TailChildBlocksRequestInput"+ "$ref": "#/$defs/BroadcastChannelRequestInput"},"response": {"anyOf": [@@ -23034,17 +24923,7 @@]},"data": {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/ChildBlock"- },- {- "type": "null"- }- ]- }+ "$ref": "#/$defs/BroadcastChannelData"},"msg": {"type": "string"@@ -23101,11 +24980,11 @@},{"method": "POST",- "path": "/api/block/getTreeStat",- "handler": "getTreeStat",- "body": "json",+ "path": "/api/broadcast/getChannels",+ "handler": "getChannels",+ "body": "none","request": {- "$ref": "#/$defs/TreeStatRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -23119,7 +24998,7 @@]},"data": {- "$ref": "#/$defs/TreeStatData"+ "$ref": "#/$defs/BroadcastChannelsData"},"msg": {"type": "string"@@ -23176,11 +25055,11 @@},{"method": "POST",- "path": "/api/block/getUnfoldedParentID",- "handler": "getUnfoldedParentID",+ "path": "/api/broadcast/postMessage",+ "handler": "postMessage","body": "json","request": {- "$ref": "#/$defs/BlockQueryRequestInput"+ "$ref": "#/$defs/BroadcastMessageRequestInput"},"response": {"anyOf": [@@ -23194,7 +25073,7 @@]},"data": {- "$ref": "#/$defs/UnfoldedParentData"+ "$ref": "#/$defs/BroadcastChannelData"},"msg": {"type": "string"@@ -23213,7 +25092,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -23251,11 +25131,25 @@},{"method": "POST",- "path": "/api/block/insertBlock",- "handler": "insertBlock",- "body": "json",+ "path": "/api/broadcast/publish",+ "handler": "broadcastPublish",+ "body": "multipart","request": {- "$ref": "#/$defs/InsertBlockRequestInput"+ "type": "object",+ "additionalProperties": {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "string",+ "format": "binary"+ }+ ]+ }+ }},"response": {"anyOf": [@@ -23269,24 +25163,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/BroadcastPublishData"},"msg": {"type": "string"@@ -23305,7 +25182,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -23343,11 +25221,11 @@},{"method": "POST",- "path": "/api/block/moveBlock",- "handler": "moveBlock",+ "path": "/api/clipboard/cleanupRichText",+ "handler": "cleanupRichText","body": "json","request": {- "$ref": "#/$defs/MoveBlockRequestInput"+ "$ref": "#/$defs/CleanupRichTextRequestInput"},"response": {"anyOf": [@@ -23418,11 +25296,11 @@},{"method": "POST",- "path": "/api/block/moveOutlineHeading",- "handler": "moveOutlineHeading",+ "path": "/api/clipboard/prepareRichText",+ "handler": "prepareRichText","body": "json","request": {- "$ref": "#/$defs/MoveBlockRequestInput"+ "$ref": "#/$defs/PrepareRichTextRequestInput"},"response": {"anyOf": [@@ -23431,24 +25309,14 @@"properties": {"code": {"type": "integer",- "enum": [- 0- ]- },- "data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }+ "enum": [+ 0+ ]+ },+ "data": {+ "anyOf": [+ {+ "$ref": "#/$defs/RichClipboardPrepared"},{"type": "null"@@ -23510,11 +25378,11 @@},{"method": "POST",- "path": "/api/block/prependBlock",- "handler": "prependBlock",- "body": "json",+ "path": "/api/clipboard/readFilePaths",+ "handler": "readFilePaths",+ "body": "none","request": {- "$ref": "#/$defs/PrependBlockRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -23528,24 +25396,10 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "type": "array",+ "items": {+ "$ref": "#/$defs/ClipboardFile"+ }},"msg": {"type": "string"@@ -23602,11 +25456,11 @@},{"method": "POST",- "path": "/api/block/prependDailyNoteBlock",- "handler": "prependDailyNoteBlock",+ "path": "/api/clipboard/writeFilePath",+ "handler": "writeFilePath","body": "json","request": {- "$ref": "#/$defs/DailyNoteBlockRequestInput"+ "$ref": "#/$defs/ClipboardPathRequestInput"},"response": {"anyOf": [@@ -23620,24 +25474,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -23694,11 +25531,11 @@},{"method": "POST",- "path": "/api/block/setBlockReminder",- "handler": "setBlockReminder",- "body": "json",+ "path": "/api/cloud/getCloudSpace",+ "handler": "getCloudSpace",+ "body": "none","request": {- "$ref": "#/$defs/BlockReminderRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -23712,7 +25549,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/CloudSpaceData"},"msg": {"type": "string"@@ -23731,7 +25568,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -23769,11 +25607,11 @@},{"method": "POST",- "path": "/api/block/swapBlockRef",- "handler": "swapBlockRef",+ "path": "/api/cloud/setCloudReminder",+ "handler": "setCloudReminder","body": "json","request": {- "$ref": "#/$defs/SwapBlockRefRequestInput"+ "$ref": "#/$defs/CloudReminderRequestInput"},"response": {"anyOf": [@@ -23844,11 +25682,11 @@},{"method": "POST",- "path": "/api/block/transferBlockRef",- "handler": "transferBlockRef",+ "path": "/api/convert/pandoc",+ "handler": "pandoc","body": "json","request": {- "$ref": "#/$defs/TransferBlockRefRequestInput"+ "$ref": "#/$defs/PandocRequestInput"},"response": {"anyOf": [@@ -23862,7 +25700,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/PandocData"},"msg": {"type": "string"@@ -23919,11 +25757,11 @@},{"method": "POST",- "path": "/api/block/unfoldBlock",- "handler": "unfoldBlock",+ "path": "/api/file/copyFile",+ "handler": "copyFile","body": "json","request": {- "$ref": "#/$defs/BlockIDRequestInput"+ "$ref": "#/$defs/CopyFileRequestInput"},"response": {"anyOf": [@@ -23956,7 +25794,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ -2]},"data": {@@ -23994,53 +25833,17 @@},{"method": "POST",- "path": "/api/block/updateBlock",- "handler": "updateBlock",+ "path": "/api/file/getFile",+ "handler": "getFile","body": "json","request": {- "$ref": "#/$defs/UpdateBlockRequestInput"+ "$ref": "#/$defs/FilePathRequestInput"},"response": {"anyOf": [{- "type": "object",- "properties": {- "code": {- "type": "integer",- "enum": [- 0- ]- },- "data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]- },- "msg": {- "type": "string"- }- },- "required": [- "code",- "msg",- "data"- ],- "additionalProperties": false+ "type": "string",+ "format": "binary"},{"type": "object",@@ -24048,7 +25851,13 @@"code": {"type": "integer","enum": [- -1+ -1,+ -3,+ 403,+ 404,+ 409,+ 500,+ 503]},"data": {@@ -24082,15 +25891,17 @@"additionalProperties": true}]- }+ },+ "output": "binary",+ "errorStatus": 202},{"method": "POST",- "path": "/api/block/updateTaskListItemMarker",- "handler": "updateTaskListItemMarker",+ "path": "/api/file/getUniqueFilename",+ "handler": "getUniqueFilename","body": "json","request": {- "$ref": "#/$defs/TaskListMarkerRequestInput"+ "$ref": "#/$defs/FilePathRequestInput"},"response": {"anyOf": [@@ -24104,24 +25915,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/FilePathData"},"msg": {"type": "string"@@ -24140,7 +25934,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ -3]},"data": {@@ -24178,11 +25973,11 @@},{"method": "POST",- "path": "/api/bookmark/getBookmark",- "handler": "getBookmark",- "body": "none",+ "path": "/api/file/globalCopyFiles",+ "handler": "globalCopyFiles",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/CopyFilesRequestInput"},"response": {"anyOf": [@@ -24196,24 +25991,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/Bookmark"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -24232,7 +26010,10 @@"code": {"type": "integer","enum": [- -1+ -1,+ -2,+ -3,+ 403]},"data": {@@ -24270,11 +26051,11 @@},{"method": "POST",- "path": "/api/bookmark/removeBookmark",- "handler": "removeBookmark",- "body": "json",+ "path": "/api/file/putFile",+ "handler": "putFile",+ "body": "form","request": {- "$ref": "#/$defs/RemoveBookmarkRequestInput"+ "$ref": "#/$defs/PutFileRequestInput"},"response": {"anyOf": [@@ -24307,7 +26088,11 @@"code": {"type": "integer","enum": [- -1+ -1,+ -3,+ 400,+ 403,+ 500]},"data": {@@ -24345,11 +26130,11 @@},{"method": "POST",- "path": "/api/bookmark/renameBookmark",- "handler": "renameBookmark",+ "path": "/api/file/readDir",+ "handler": "readDir","body": "json","request": {- "$ref": "#/$defs/RenameBookmarkRequestInput"+ "$ref": "#/$defs/ReadDirectoryRequestInput"},"response": {"anyOf": [@@ -24363,7 +26148,10 @@]},"data": {- "type": "null"+ "type": "array",+ "items": {+ "$ref": "#/$defs/DirectoryEntry"+ }},"msg": {"type": "string"@@ -24382,7 +26170,12 @@"code": {"type": "integer","enum": [- -1+ -1,+ -3,+ 403,+ 404,+ 409,+ 500]},"data": {@@ -24420,11 +26213,11 @@},{"method": "POST",- "path": "/api/broadcast/getChannelInfo",- "handler": "getChannelInfo",+ "path": "/api/file/removeFile",+ "handler": "removeFile","body": "json","request": {- "$ref": "#/$defs/BroadcastChannelRequestInput"+ "$ref": "#/$defs/RemoveFileRequestInput"},"response": {"anyOf": [@@ -24438,7 +26231,7 @@]},"data": {- "$ref": "#/$defs/BroadcastChannelData"+ "type": "null"},"msg": {"type": "string"@@ -24457,7 +26250,11 @@"code": {"type": "integer","enum": [- -1+ -1,+ -3,+ 403,+ 404,+ 500]},"data": {@@ -24495,11 +26292,11 @@},{"method": "POST",- "path": "/api/broadcast/getChannels",- "handler": "getChannels",- "body": "none",+ "path": "/api/file/renameFile",+ "handler": "renameFile",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/RenameFileRequestInput"},"response": {"anyOf": [@@ -24513,7 +26310,7 @@]},"data": {- "$ref": "#/$defs/BroadcastChannelsData"+ "type": "null"},"msg": {"type": "string"@@ -24532,7 +26329,12 @@"code": {"type": "integer","enum": [- -1+ -1,+ -3,+ 403,+ 404,+ 409,+ 500]},"data": {@@ -24570,11 +26372,11 @@},{"method": "POST",- "path": "/api/broadcast/postMessage",- "handler": "postMessage",+ "path": "/api/file/workspaceCopyFiles",+ "handler": "workspaceCopyFiles","body": "json","request": {- "$ref": "#/$defs/BroadcastMessageRequestInput"+ "$ref": "#/$defs/CopyFilesRequestInput"},"response": {"anyOf": [@@ -24588,7 +26390,7 @@]},"data": {- "$ref": "#/$defs/BroadcastChannelData"+ "type": "null"},"msg": {"type": "string"@@ -24608,7 +26410,9 @@"type": "integer","enum": [-1,- 1+ -2,+ -3,+ 403]},"data": {@@ -24646,25 +26450,11 @@},{"method": "POST",- "path": "/api/broadcast/publish",- "handler": "broadcastPublish",- "body": "multipart",+ "path": "/api/filetree/getPinnedDocs",+ "handler": "getPinnedDocs",+ "body": "none","request": {- "type": "object",- "additionalProperties": {- "type": "array",- "items": {- "anyOf": [- {- "type": "string"- },- {- "type": "string",- "format": "binary"- }- ]- }- }+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -24678,7 +26468,10 @@]},"data": {- "$ref": "#/$defs/BroadcastPublishData"+ "type": "array",+ "items": {+ "$ref": "#/$defs/PinnedDoc"+ }},"msg": {"type": "string"@@ -24697,8 +26490,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -24736,11 +26528,11 @@},{"method": "POST",- "path": "/api/clipboard/cleanupRichText",- "handler": "cleanupRichText",+ "path": "/api/filetree/updatePinnedDocs",+ "handler": "updatePinnedDocs","body": "json","request": {- "$ref": "#/$defs/CleanupRichTextRequestInput"+ "$ref": "#/$defs/UpdatePinnedDocsRequestInput"},"response": {"anyOf": [@@ -24811,11 +26603,11 @@},{"method": "POST",- "path": "/api/clipboard/prepareRichText",- "handler": "prepareRichText",+ "path": "/api/format/autoSpace",+ "handler": "autoSpace","body": "json","request": {- "$ref": "#/$defs/PrepareRichTextRequestInput"+ "$ref": "#/$defs/TrimmedIDRequestInput"},"response": {"anyOf": [@@ -24829,14 +26621,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/RichClipboardPrepared"- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -24893,11 +26678,11 @@},{"method": "POST",- "path": "/api/clipboard/readFilePaths",- "handler": "readFilePaths",- "body": "none",+ "path": "/api/format/netAssets2LocalAssets",+ "handler": "netAssets2LocalAssets",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/TrimmedIDRequestInput"},"response": {"anyOf": [@@ -24911,10 +26696,7 @@]},"data": {- "type": "array",- "items": {- "$ref": "#/$defs/ClipboardFile"- }+ "type": "null"},"msg": {"type": "string"@@ -24971,11 +26753,11 @@},{"method": "POST",- "path": "/api/clipboard/writeFilePath",- "handler": "writeFilePath",+ "path": "/api/format/netImg2LocalAssets",+ "handler": "netImg2LocalAssets","body": "json","request": {- "$ref": "#/$defs/ClipboardPathRequestInput"+ "$ref": "#/$defs/NetImageAssetsRequestInput"},"response": {"anyOf": [@@ -25046,11 +26828,11 @@},{"method": "POST",- "path": "/api/cloud/getCloudSpace",- "handler": "getCloudSpace",- "body": "none",+ "path": "/api/graph/getGraph",+ "handler": "getGraph",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/GlobalGraphRequestInput"},"response": {"anyOf": [@@ -25064,7 +26846,14 @@]},"data": {- "$ref": "#/$defs/CloudSpaceData"+ "anyOf": [+ {+ "$ref": "#/$defs/GlobalGraphResult"+ },+ {+ "$ref": "#/$defs/GraphCorrelation"+ }+ ]},"msg": {"type": "string"@@ -25083,8 +26872,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -25103,6 +26891,16 @@},{"type": "null"+ },+ {+ "anyOf": [+ {+ "$ref": "#/$defs/GlobalGraphResult"+ },+ {+ "$ref": "#/$defs/GraphCorrelation"+ }+ ]}]},@@ -25122,11 +26920,11 @@},{"method": "POST",- "path": "/api/cloud/setCloudReminder",- "handler": "setCloudReminder",+ "path": "/api/graph/getLocalGraph",+ "handler": "getLocalGraph","body": "json","request": {- "$ref": "#/$defs/CloudReminderRequestInput"+ "$ref": "#/$defs/LocalGraphRequestInput"},"response": {"anyOf": [@@ -25140,7 +26938,14 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/LocalGraphResult"+ },+ {+ "$ref": "#/$defs/GraphCorrelation"+ }+ ]},"msg": {"type": "string"@@ -25178,6 +26983,16 @@},{"type": "null"+ },+ {+ "anyOf": [+ {+ "$ref": "#/$defs/LocalGraphResult"+ },+ {+ "$ref": "#/$defs/GraphCorrelation"+ }+ ]}]},@@ -25197,11 +27012,11 @@},{"method": "POST",- "path": "/api/convert/pandoc",- "handler": "pandoc",- "body": "json",+ "path": "/api/graph/resetGraph",+ "handler": "resetGraph",+ "body": "none","request": {- "$ref": "#/$defs/PandocRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -25215,7 +27030,7 @@]},"data": {- "$ref": "#/$defs/PandocData"+ "$ref": "#/$defs/ResetGraphData"},"msg": {"type": "string"@@ -25272,11 +27087,11 @@},{"method": "POST",- "path": "/api/file/copyFile",- "handler": "copyFile",- "body": "json",+ "path": "/api/graph/resetLocalGraph",+ "handler": "resetLocalGraph",+ "body": "none","request": {- "$ref": "#/$defs/CopyFileRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -25290,7 +27105,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/ResetLocalGraphData"},"msg": {"type": "string"@@ -25309,8 +27124,7 @@"code": {"type": "integer","enum": [- -1,- -2+ -1]},"data": {@@ -25348,17 +27162,43 @@},{"method": "POST",- "path": "/api/file/getFile",- "handler": "getFile",+ "path": "/api/graph/setGraphConf",+ "handler": "setGraphConf","body": "json","request": {- "$ref": "#/$defs/FilePathRequestInput"+ "$ref": "#/$defs/SetGraphConfRequestInput"},"response": {"anyOf": [{- "type": "string",- "format": "binary"+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "anyOf": [+ {+ "$ref": "#/$defs/GlobalGraphConf"+ },+ {+ "$ref": "#/$defs/LocalGraphConf"+ }+ ]+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": false},{"type": "object",@@ -25366,13 +27206,7 @@"code": {"type": "integer","enum": [- -1,- -3,- 403,- 404,- 409,- 500,- 503+ -1]},"data": {@@ -25406,17 +27240,15 @@"additionalProperties": true}]- },- "output": "binary",- "errorStatus": 202+ }},{"method": "POST",- "path": "/api/file/getUniqueFilename",- "handler": "getUniqueFilename",- "body": "json",+ "path": "/api/history/clearWorkspaceHistory",+ "handler": "clearWorkspaceHistory",+ "body": "none","request": {- "$ref": "#/$defs/FilePathRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -25430,7 +27262,7 @@]},"data": {- "$ref": "#/$defs/FilePathData"+ "type": "null"},"msg": {"type": "string"@@ -25449,8 +27281,7 @@"code": {"type": "integer","enum": [- -1,- -3+ -1]},"data": {@@ -25488,11 +27319,11 @@},{"method": "POST",- "path": "/api/file/globalCopyFiles",- "handler": "globalCopyFiles",+ "path": "/api/history/createAssetHistory",+ "handler": "createAssetHistory","body": "json","request": {- "$ref": "#/$defs/CopyFilesRequestInput"+ "$ref": "#/$defs/CreateAssetHistoryRequestInput"},"response": {"anyOf": [@@ -25524,11 +27355,8 @@"properties": {"code": {"type": "integer",- "enum": [- -1,- -2,- -3,- 403+ "enum": [+ -1]},"data": {@@ -25566,11 +27394,11 @@},{"method": "POST",- "path": "/api/file/putFile",- "handler": "putFile",- "body": "form",+ "path": "/api/history/createDocHistory",+ "handler": "createDocHistory",+ "body": "json","request": {- "$ref": "#/$defs/PutFileRequestInput"+ "$ref": "#/$defs/CreateDocHistoryRequestInput"},"response": {"anyOf": [@@ -25603,11 +27431,7 @@"code": {"type": "integer","enum": [- -1,- -3,- 400,- 403,- 500+ -1]},"data": {@@ -25645,11 +27469,11 @@},{"method": "POST",- "path": "/api/file/readDir",- "handler": "readDir",+ "path": "/api/history/diffDocVersions",+ "handler": "diffDocVersions","body": "json","request": {- "$ref": "#/$defs/ReadDirectoryRequestInput"+ "$ref": "#/$defs/DiffDocVersionsRequestInput"},"response": {"anyOf": [@@ -25663,10 +27487,14 @@]},"data": {- "type": "array",- "items": {- "$ref": "#/$defs/DirectoryEntry"- }+ "anyOf": [+ {+ "$ref": "#/$defs/DocVersionDiffResult"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -25685,12 +27513,7 @@"code": {"type": "integer","enum": [- -1,- -3,- 403,- 404,- 409,- 500+ -1]},"data": {@@ -25728,11 +27551,11 @@},{"method": "POST",- "path": "/api/file/removeFile",- "handler": "removeFile",+ "path": "/api/history/getDocHistoryContent",+ "handler": "getDocHistoryContent","body": "json","request": {- "$ref": "#/$defs/RemoveFileRequestInput"+ "$ref": "#/$defs/DocHistoryContentRequestInput"},"response": {"anyOf": [@@ -25746,7 +27569,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/DocHistoryContentData"},"msg": {"type": "string"@@ -25765,11 +27588,7 @@"code": {"type": "integer","enum": [- -1,- -3,- 403,- 404,- 500+ -1]},"data": {@@ -25807,11 +27626,11 @@},{"method": "POST",- "path": "/api/file/renameFile",- "handler": "renameFile",+ "path": "/api/history/getHistoryItems",+ "handler": "getHistoryItems","body": "json","request": {- "$ref": "#/$defs/RenameFileRequestInput"+ "$ref": "#/$defs/HistoryItemsRequestInput"},"response": {"anyOf": [@@ -25825,7 +27644,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/HistoryItemsData"},"msg": {"type": "string"@@ -25844,12 +27663,7 @@"code": {"type": "integer","enum": [- -1,- -3,- 403,- 404,- 409,- 500+ -1]},"data": {@@ -25887,11 +27701,11 @@},{"method": "POST",- "path": "/api/file/workspaceCopyFiles",- "handler": "workspaceCopyFiles",- "body": "json",+ "path": "/api/history/getNotebookHistory",+ "handler": "getNotebookHistory",+ "body": "none","request": {- "$ref": "#/$defs/CopyFilesRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -25905,7 +27719,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/NotebookHistoryData"},"msg": {"type": "string"@@ -25924,10 +27738,7 @@"code": {"type": "integer","enum": [- -1,- -2,- -3,- 403+ -1]},"data": {@@ -25965,8 +27776,8 @@},{"method": "POST",- "path": "/api/filetree/getPinnedDocs",- "handler": "getPinnedDocs",+ "path": "/api/history/reindexHistory",+ "handler": "reindexHistory","body": "none","request": {"$ref": "#/$defs/EmptyRequestInput"@@ -25983,10 +27794,7 @@]},"data": {- "type": "array",- "items": {- "$ref": "#/$defs/PinnedDoc"- }+ "type": "null"},"msg": {"type": "string"@@ -26043,11 +27851,11 @@},{"method": "POST",- "path": "/api/filetree/updatePinnedDocs",- "handler": "updatePinnedDocs",+ "path": "/api/history/rollbackAssetsHistory",+ "handler": "rollbackAssetsHistory","body": "json","request": {- "$ref": "#/$defs/UpdatePinnedDocsRequestInput"+ "$ref": "#/$defs/HistoryPathRequestInput"},"response": {"anyOf": [@@ -26118,11 +27926,11 @@},{"method": "POST",- "path": "/api/format/autoSpace",- "handler": "autoSpace",+ "path": "/api/history/rollbackAttributeViewHistory",+ "handler": "rollbackAttributeViewHistory","body": "json","request": {- "$ref": "#/$defs/TrimmedIDRequestInput"+ "$ref": "#/$defs/HistoryPathRequestInput"},"response": {"anyOf": [@@ -26193,11 +28001,11 @@},{"method": "POST",- "path": "/api/format/netAssets2LocalAssets",- "handler": "netAssets2LocalAssets",+ "path": "/api/history/rollbackDocHistory",+ "handler": "rollbackDocHistory","body": "json","request": {- "$ref": "#/$defs/TrimmedIDRequestInput"+ "$ref": "#/$defs/HistoryPathRequestInput"},"response": {"anyOf": [@@ -26268,11 +28076,11 @@},{"method": "POST",- "path": "/api/format/netImg2LocalAssets",- "handler": "netImg2LocalAssets",+ "path": "/api/history/rollbackNotebookHistory",+ "handler": "rollbackNotebookHistory","body": "json","request": {- "$ref": "#/$defs/NetImageAssetsRequestInput"+ "$ref": "#/$defs/HistoryPathRequestInput"},"response": {"anyOf": [@@ -26343,11 +28151,11 @@},{"method": "POST",- "path": "/api/graph/getGraph",- "handler": "getGraph",+ "path": "/api/history/searchHistory",+ "handler": "searchHistory","body": "json","request": {- "$ref": "#/$defs/GlobalGraphRequestInput"+ "$ref": "#/$defs/SearchHistoryRequestInput"},"response": {"anyOf": [@@ -26361,14 +28169,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/GlobalGraphResult"- },- {- "$ref": "#/$defs/GraphCorrelation"- }- ]+ "$ref": "#/$defs/SearchHistoryData"},"msg": {"type": "string"@@ -26406,16 +28207,6 @@},{"type": "null"- },- {- "anyOf": [- {- "$ref": "#/$defs/GlobalGraphResult"- },- {- "$ref": "#/$defs/GraphCorrelation"- }- ]}]},@@ -26435,11 +28226,11 @@},{"method": "POST",- "path": "/api/graph/getLocalGraph",- "handler": "getLocalGraph",+ "path": "/api/import/cancelImportSY",+ "handler": "cancelImportSY","body": "json","request": {- "$ref": "#/$defs/LocalGraphRequestInput"+ "$ref": "#/$defs/ImportTokenRequestInput"},"response": {"anyOf": [@@ -26453,14 +28244,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/LocalGraphResult"- },- {- "$ref": "#/$defs/GraphCorrelation"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -26498,16 +28282,6 @@},{"type": "null"- },- {- "anyOf": [- {- "$ref": "#/$defs/LocalGraphResult"- },- {- "$ref": "#/$defs/GraphCorrelation"- }- ]}]},@@ -26527,11 +28301,11 @@},{"method": "POST",- "path": "/api/graph/resetGraph",- "handler": "resetGraph",- "body": "none",+ "path": "/api/import/cancelObsidianVaultTask",+ "handler": "cancelObsidianVaultTask",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/ObsidianTaskRequestInput"},"response": {"anyOf": [@@ -26545,7 +28319,14 @@]},"data": {- "$ref": "#/$defs/ResetGraphData"+ "anyOf": [+ {+ "$ref": "#/$defs/ObsidianVaultTask"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -26583,6 +28364,16 @@},{"type": "null"+ },+ {+ "anyOf": [+ {+ "$ref": "#/$defs/ObsidianVaultTask"+ },+ {+ "type": "null"+ }+ ]}]},@@ -26602,11 +28393,11 @@},{"method": "POST",- "path": "/api/graph/resetLocalGraph",- "handler": "resetLocalGraph",- "body": "none",+ "path": "/api/import/continueImportSY",+ "handler": "continueImportSY",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/ContinueImportSYRequestInput"},"response": {"anyOf": [@@ -26620,7 +28411,7 @@]},"data": {- "$ref": "#/$defs/ResetLocalGraphData"+ "$ref": "#/$defs/ImportDocumentData"},"msg": {"type": "string"@@ -26677,11 +28468,11 @@},{"method": "POST",- "path": "/api/graph/setGraphConf",- "handler": "setGraphConf",+ "path": "/api/import/getObsidianVaultTask",+ "handler": "getObsidianVaultTask","body": "json","request": {- "$ref": "#/$defs/SetGraphConfRequestInput"+ "$ref": "#/$defs/ObsidianTaskRequestInput"},"response": {"anyOf": [@@ -26697,10 +28488,10 @@"data": {"anyOf": [{- "$ref": "#/$defs/GlobalGraphConf"+ "$ref": "#/$defs/ObsidianVaultTask"},{- "$ref": "#/$defs/LocalGraphConf"+ "type": "null"}]},@@ -26759,11 +28550,11 @@},{"method": "POST",- "path": "/api/history/clearWorkspaceHistory",- "handler": "clearWorkspaceHistory",- "body": "none",+ "path": "/api/import/importData",+ "handler": "importData",+ "body": "multipart","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/ImportDataRequestInput"},"response": {"anyOf": [@@ -26834,11 +28625,11 @@},{"method": "POST",- "path": "/api/history/createAssetHistory",- "handler": "createAssetHistory",- "body": "json",+ "path": "/api/import/importSY",+ "handler": "importSY",+ "body": "multipart","request": {- "$ref": "#/$defs/CreateAssetHistoryRequestInput"+ "$ref": "#/$defs/ImportSYRequestInput"},"response": {"anyOf": [@@ -26909,11 +28700,11 @@},{"method": "POST",- "path": "/api/history/createDocHistory",- "handler": "createDocHistory",- "body": "json",+ "path": "/api/import/importSYAuto",+ "handler": "importSYAuto",+ "body": "multipart","request": {- "$ref": "#/$defs/CreateDocHistoryRequestInput"+ "$ref": "#/$defs/ImportSYRequestInput"},"response": {"anyOf": [@@ -26927,7 +28718,17 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/ImportAutoDocument"+ },+ {+ "$ref": "#/$defs/ImportAutoNotebook"+ },+ {+ "$ref": "#/$defs/ImportAutoNotebooks"+ }+ ]},"msg": {"type": "string"@@ -26965,6 +28766,19 @@},{"type": "null"+ },+ {+ "anyOf": [+ {+ "$ref": "#/$defs/ImportAutoDocument"+ },+ {+ "$ref": "#/$defs/ImportAutoNotebook"+ },+ {+ "$ref": "#/$defs/ImportAutoNotebooks"+ }+ ]}]},@@ -26984,11 +28798,11 @@},{"method": "POST",- "path": "/api/history/diffDocVersions",- "handler": "diffDocVersions",- "body": "json",+ "path": "/api/import/importSYNotebook",+ "handler": "importSYNotebook",+ "body": "multipart","request": {- "$ref": "#/$defs/DiffDocVersionsRequestInput"+ "$ref": "#/$defs/ImportDataRequestInput"},"response": {"anyOf": [@@ -27004,10 +28818,10 @@"data": {"anyOf": [{- "$ref": "#/$defs/DocVersionDiffResult"+ "$ref": "#/$defs/ImportedNotebook"},{- "type": "null"+ "$ref": "#/$defs/ImportedNotebooks"}]},@@ -27066,11 +28880,11 @@},{"method": "POST",- "path": "/api/history/getDocHistoryContent",- "handler": "getDocHistoryContent",+ "path": "/api/import/importStdMd",+ "handler": "importStdMd","body": "json","request": {- "$ref": "#/$defs/DocHistoryContentRequestInput"+ "$ref": "#/$defs/ImportMarkdownRequestInput"},"response": {"anyOf": [@@ -27084,7 +28898,7 @@]},"data": {- "$ref": "#/$defs/DocHistoryContentData"+ "type": "null"},"msg": {"type": "string"@@ -27141,11 +28955,11 @@},{"method": "POST",- "path": "/api/history/getHistoryItems",- "handler": "getHistoryItems",- "body": "json",+ "path": "/api/import/importZipMd",+ "handler": "importZipMd",+ "body": "multipart","request": {- "$ref": "#/$defs/HistoryItemsRequestInput"+ "$ref": "#/$defs/ImportZipMarkdownRequestInput"},"response": {"anyOf": [@@ -27159,7 +28973,7 @@]},"data": {- "$ref": "#/$defs/HistoryItemsData"+ "type": "null"},"msg": {"type": "string"@@ -27216,11 +29030,11 @@},{"method": "POST",- "path": "/api/history/getNotebookHistory",- "handler": "getNotebookHistory",- "body": "none",+ "path": "/api/import/startObsidianVaultAnalysis",+ "handler": "startObsidianVaultAnalysis",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/ObsidianAnalysisRequestInput"},"response": {"anyOf": [@@ -27234,7 +29048,14 @@]},"data": {- "$ref": "#/$defs/NotebookHistoryData"+ "anyOf": [+ {+ "$ref": "#/$defs/ObsidianVaultTask"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -27291,11 +29112,11 @@},{"method": "POST",- "path": "/api/history/reindexHistory",- "handler": "reindexHistory",- "body": "none",+ "path": "/api/import/startObsidianVaultImport",+ "handler": "startObsidianVaultImport",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/ObsidianImportRequestInput"},"response": {"anyOf": [@@ -27309,7 +29130,14 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/ObsidianVaultTask"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -27366,11 +29194,11 @@},{"method": "POST",- "path": "/api/history/rollbackAssetsHistory",- "handler": "rollbackAssetsHistory",+ "path": "/api/inbox/getShorthand",+ "handler": "getShorthand","body": "json","request": {- "$ref": "#/$defs/HistoryPathRequestInput"+ "$ref": "#/$defs/TrimmedIDRequestInput"},"response": {"anyOf": [@@ -27384,7 +29212,14 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/Shorthand"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -27403,7 +29238,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -27441,11 +29277,11 @@},{"method": "POST",- "path": "/api/history/rollbackAttributeViewHistory",- "handler": "rollbackAttributeViewHistory",+ "path": "/api/inbox/getShorthands",+ "handler": "getShorthands","body": "json","request": {- "$ref": "#/$defs/HistoryPathRequestInput"+ "$ref": "#/$defs/ShorthandsRequestInput"},"response": {"anyOf": [@@ -27459,7 +29295,14 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/ShorthandsData"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -27478,7 +29321,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -27516,11 +29360,11 @@},{"method": "POST",- "path": "/api/history/rollbackDocHistory",- "handler": "rollbackDocHistory",+ "path": "/api/inbox/removeShorthands",+ "handler": "removeShorthands","body": "json","request": {- "$ref": "#/$defs/HistoryPathRequestInput"+ "$ref": "#/$defs/RemoveShorthandsRequestInput"},"response": {"anyOf": [@@ -27553,7 +29397,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -27591,11 +29436,11 @@},{"method": "POST",- "path": "/api/history/rollbackNotebookHistory",- "handler": "rollbackNotebookHistory",+ "path": "/api/lute/copyStdMarkdown",+ "handler": "copyStdMarkdown","body": "json","request": {- "$ref": "#/$defs/HistoryPathRequestInput"+ "$ref": "#/$defs/CopyStdMarkdownRequestInput"},"response": {"anyOf": [@@ -27609,7 +29454,7 @@]},"data": {- "type": "null"+ "type": "string"},"msg": {"type": "string"@@ -27666,11 +29511,11 @@},{"method": "POST",- "path": "/api/history/searchHistory",- "handler": "searchHistory",+ "path": "/api/lute/html2BlockDOM",+ "handler": "html2BlockDOM","body": "json","request": {- "$ref": "#/$defs/SearchHistoryRequestInput"+ "$ref": "#/$defs/HTMLClipboardRequestInput"},"response": {"anyOf": [@@ -27684,7 +29529,14 @@]},"data": {- "$ref": "#/$defs/SearchHistoryData"+ "anyOf": [+ {+ "type": "string"+ },+ {+ "$ref": "#/$defs/HTMLClipboardPreflight"+ }+ ]},"msg": {"type": "string"@@ -27741,11 +29593,11 @@},{"method": "POST",- "path": "/api/import/cancelImportSY",- "handler": "cancelImportSY",+ "path": "/api/lute/md2html",+ "handler": "md2HTML","body": "json","request": {- "$ref": "#/$defs/ImportTokenRequestInput"+ "$ref": "#/$defs/MarkdownHTMLRequestInput"},"response": {"anyOf": [@@ -27759,7 +29611,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/HTMLData"},"msg": {"type": "string"@@ -27816,11 +29668,11 @@},{"method": "POST",- "path": "/api/import/cancelObsidianVaultTask",- "handler": "cancelObsidianVaultTask",+ "path": "/api/lute/spinBlockDOM",+ "handler": "spinBlockDOM","body": "json","request": {- "$ref": "#/$defs/ObsidianTaskRequestInput"+ "$ref": "#/$defs/DOMTextRequestInput"},"response": {"anyOf": [@@ -27834,14 +29686,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/ObsidianVaultTask"- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/DOMData"},"msg": {"type": "string"@@ -27860,7 +29705,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 413]},"data": {@@ -27879,16 +29725,6 @@},{"type": "null"- },- {- "anyOf": [- {- "$ref": "#/$defs/ObsidianVaultTask"- },- {- "type": "null"- }- ]}]},@@ -27908,11 +29744,11 @@},{"method": "POST",- "path": "/api/import/continueImportSY",- "handler": "continueImportSY",+ "path": "/api/lute/wpsPresentation2BlockDOM",+ "handler": "wpsPresentation2BlockDOM","body": "json","request": {- "$ref": "#/$defs/ContinueImportSYRequestInput"+ "$ref": "#/$defs/WPSPresentationRequestInput"},"response": {"anyOf": [@@ -27926,7 +29762,7 @@]},"data": {- "$ref": "#/$defs/ImportDocumentData"+ "$ref": "#/$defs/WPSPresentationData"},"msg": {"type": "string"@@ -27964,6 +29800,9 @@},{"type": "null"+ },+ {+ "$ref": "#/$defs/WPSPresentationData"}]},@@ -27983,11 +29822,11 @@},{"method": "POST",- "path": "/api/import/getObsidianVaultTask",- "handler": "getObsidianVaultTask",+ "path": "/api/notebook/changeMasterPassword",+ "handler": "changeMasterPassword","body": "json","request": {- "$ref": "#/$defs/ObsidianTaskRequestInput"+ "$ref": "#/$defs/ChangeMasterPasswordRequestInput"},"response": {"anyOf": [@@ -28001,14 +29840,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/ObsidianVaultTask"- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -28065,11 +29897,11 @@},{"method": "POST",- "path": "/api/import/importData",- "handler": "importData",- "body": "multipart",+ "path": "/api/notebook/changeSortNotebook",+ "handler": "changeSortNotebook",+ "body": "json","request": {- "$ref": "#/$defs/ImportDataRequestInput"+ "$ref": "#/$defs/ChangeSortNotebookRequestInput"},"response": {"anyOf": [@@ -28140,11 +29972,11 @@},{"method": "POST",- "path": "/api/import/importSY",- "handler": "importSY",- "body": "multipart",+ "path": "/api/notebook/closeNotebook",+ "handler": "closeNotebook",+ "body": "json","request": {- "$ref": "#/$defs/ImportSYRequestInput"+ "$ref": "#/$defs/CloseNotebookRequestInput"},"response": {"anyOf": [@@ -28215,11 +30047,11 @@},{"method": "POST",- "path": "/api/import/importSYAuto",- "handler": "importSYAuto",- "body": "multipart",+ "path": "/api/notebook/createEncryptedNotebook",+ "handler": "createEncryptedNotebook",+ "body": "json","request": {- "$ref": "#/$defs/ImportSYRequestInput"+ "$ref": "#/$defs/CreateEncryptedNotebookRequestInput"},"response": {"anyOf": [@@ -28233,17 +30065,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/ImportAutoDocument"- },- {- "$ref": "#/$defs/ImportAutoNotebook"- },- {- "$ref": "#/$defs/ImportAutoNotebooks"- }- ]+ "$ref": "#/$defs/CreateNotebookData"},"msg": {"type": "string"@@ -28281,19 +30103,6 @@},{"type": "null"- },- {- "anyOf": [- {- "$ref": "#/$defs/ImportAutoDocument"- },- {- "$ref": "#/$defs/ImportAutoNotebook"- },- {- "$ref": "#/$defs/ImportAutoNotebooks"- }- ]}]},@@ -28313,11 +30122,11 @@},{"method": "POST",- "path": "/api/import/importSYNotebook",- "handler": "importSYNotebook",- "body": "multipart",+ "path": "/api/notebook/createNotebook",+ "handler": "createNotebook",+ "body": "json","request": {- "$ref": "#/$defs/ImportDataRequestInput"+ "$ref": "#/$defs/CreateNotebookRequestInput"},"response": {"anyOf": [@@ -28331,14 +30140,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/ImportedNotebook"- },- {- "$ref": "#/$defs/ImportedNotebooks"- }- ]+ "$ref": "#/$defs/CreateNotebookData"},"msg": {"type": "string"@@ -28395,11 +30197,11 @@},{"method": "POST",- "path": "/api/import/importStdMd",- "handler": "importStdMd",- "body": "json",+ "path": "/api/notebook/disableEncryptedNotebooks",+ "handler": "disableEncryptedNotebooks",+ "body": "none","request": {- "$ref": "#/$defs/ImportMarkdownRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -28470,11 +30272,11 @@},{"method": "POST",- "path": "/api/import/importZipMd",- "handler": "importZipMd",- "body": "multipart",+ "path": "/api/notebook/enableEncryptedNotebooks",+ "handler": "enableEncryptedNotebooks",+ "body": "json","request": {- "$ref": "#/$defs/ImportZipMarkdownRequestInput"+ "$ref": "#/$defs/NotebookPasswordRequestInput"},"response": {"anyOf": [@@ -28545,11 +30347,11 @@},{"method": "POST",- "path": "/api/import/startObsidianVaultAnalysis",- "handler": "startObsidianVaultAnalysis",- "body": "json",+ "path": "/api/notebook/exportNotebookCryptoBackup",+ "handler": "exportNotebookCryptoBackup",+ "body": "none","request": {- "$ref": "#/$defs/ObsidianAnalysisRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -28563,14 +30365,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/ObsidianVaultTask"- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/NotebookCryptoBackupData"},"msg": {"type": "string"@@ -28627,11 +30422,11 @@},{"method": "POST",- "path": "/api/import/startObsidianVaultImport",- "handler": "startObsidianVaultImport",- "body": "json",+ "path": "/api/notebook/getEncryptedNotebookStatus",+ "handler": "getEncryptedNotebookStatus",+ "body": "none","request": {- "$ref": "#/$defs/ObsidianImportRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -28645,14 +30440,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/ObsidianVaultTask"- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/EncryptedNotebookStatusData"},"msg": {"type": "string"@@ -28709,11 +30497,11 @@},{"method": "POST",- "path": "/api/inbox/getShorthand",- "handler": "getShorthand",+ "path": "/api/notebook/getNotebookConf",+ "handler": "getNotebookConf","body": "json","request": {- "$ref": "#/$defs/TrimmedIDRequestInput"+ "$ref": "#/$defs/CloseNotebookRequestInput"},"response": {"anyOf": [@@ -28727,14 +30515,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/Shorthand"- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/NotebookConfData"},"msg": {"type": "string"@@ -28753,8 +30534,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -28792,11 +30572,11 @@},{"method": "POST",- "path": "/api/inbox/getShorthands",- "handler": "getShorthands",+ "path": "/api/notebook/getNotebookInfo",+ "handler": "getNotebookInfo","body": "json","request": {- "$ref": "#/$defs/ShorthandsRequestInput"+ "$ref": "#/$defs/NotebookIDRequestInput"},"response": {"anyOf": [@@ -28810,14 +30590,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/ShorthandsData"- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/NotebookInfoData"},"msg": {"type": "string"@@ -28836,8 +30609,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -28875,11 +30647,11 @@},{"method": "POST",- "path": "/api/inbox/removeShorthands",- "handler": "removeShorthands",- "body": "json",+ "path": "/api/notebook/importNotebookCryptoBackup",+ "handler": "importNotebookCryptoBackup",+ "body": "multipart","request": {- "$ref": "#/$defs/RemoveShorthandsRequestInput"+ "$ref": "#/$defs/ImportNotebookCryptoBackupRequestInput"},"response": {"anyOf": [@@ -28912,8 +30684,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -28951,11 +30722,11 @@},{"method": "POST",- "path": "/api/lute/copyStdMarkdown",- "handler": "copyStdMarkdown",+ "path": "/api/notebook/lockNotebook",+ "handler": "lockNotebook","body": "json","request": {- "$ref": "#/$defs/CopyStdMarkdownRequestInput"+ "$ref": "#/$defs/NotebookIDRequestInput"},"response": {"anyOf": [@@ -28969,7 +30740,7 @@]},"data": {- "type": "string"+ "type": "null"},"msg": {"type": "string"@@ -29026,11 +30797,11 @@},{"method": "POST",- "path": "/api/lute/html2BlockDOM",- "handler": "html2BlockDOM",- "body": "json",+ "path": "/api/notebook/lsNotebooks",+ "handler": "lsNotebooks",+ "body": "legacyOptional","request": {- "$ref": "#/$defs/HTMLClipboardRequestInput"+ "$ref": "#/$defs/ListNotebooksRequestInput"},"response": {"anyOf": [@@ -29046,10 +30817,10 @@"data": {"anyOf": [{- "type": "string"+ "$ref": "#/$defs/ListNotebooksData"},{- "$ref": "#/$defs/HTMLClipboardPreflight"+ "type": "null"}]},@@ -29108,11 +30879,11 @@},{"method": "POST",- "path": "/api/lute/md2html",- "handler": "md2HTML",+ "path": "/api/notebook/openNotebook",+ "handler": "openNotebook","body": "json","request": {- "$ref": "#/$defs/MarkdownHTMLRequestInput"+ "$ref": "#/$defs/OpenNotebookRequestInput"},"response": {"anyOf": [@@ -29126,7 +30897,7 @@]},"data": {- "$ref": "#/$defs/HTMLData"+ "type": "null"},"msg": {"type": "string"@@ -29183,11 +30954,11 @@},{"method": "POST",- "path": "/api/lute/spinBlockDOM",- "handler": "spinBlockDOM",+ "path": "/api/notebook/removeNotebook",+ "handler": "removeNotebook","body": "json","request": {- "$ref": "#/$defs/DOMTextRequestInput"+ "$ref": "#/$defs/NotebookIDRequestInput"},"response": {"anyOf": [@@ -29201,7 +30972,7 @@]},"data": {- "$ref": "#/$defs/DOMData"+ "type": "null"},"msg": {"type": "string"@@ -29220,8 +30991,7 @@"code": {"type": "integer","enum": [- -1,- 413+ -1]},"data": {@@ -29259,11 +31029,11 @@},{"method": "POST",- "path": "/api/lute/wpsPresentation2BlockDOM",- "handler": "wpsPresentation2BlockDOM",+ "path": "/api/notebook/renameNotebook",+ "handler": "renameNotebook","body": "json","request": {- "$ref": "#/$defs/WPSPresentationRequestInput"+ "$ref": "#/$defs/RenameNotebookRequestInput"},"response": {"anyOf": [@@ -29277,7 +31047,7 @@]},"data": {- "$ref": "#/$defs/WPSPresentationData"+ "type": "null"},"msg": {"type": "string"@@ -29315,9 +31085,6 @@},{"type": "null"- },- {- "$ref": "#/$defs/WPSPresentationData"}]},@@ -29337,11 +31104,11 @@},{"method": "POST",- "path": "/api/notebook/changeMasterPassword",- "handler": "changeMasterPassword",- "body": "json",+ "path": "/api/notebook/reorder",+ "handler": "reorderNotebooks",+ "body": "structJSON","request": {- "$ref": "#/$defs/ChangeMasterPasswordRequestInput"+ "$ref": "#/$defs/ReorderNotebooksRequestInput"},"response": {"anyOf": [@@ -29355,7 +31122,14 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/ReorderData"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -29393,6 +31167,16 @@},{"type": "null"+ },+ {+ "anyOf": [+ {+ "$ref": "#/$defs/ReorderData"+ },+ {+ "type": "null"+ }+ ]}]},@@ -29412,11 +31196,11 @@},{"method": "POST",- "path": "/api/notebook/changeSortNotebook",- "handler": "changeSortNotebook",+ "path": "/api/notebook/setNotebookConf",+ "handler": "setNotebookConf","body": "json","request": {- "$ref": "#/$defs/ChangeSortNotebookRequestInput"+ "$ref": "#/$defs/SetNotebookConfRequestInput"},"response": {"anyOf": [@@ -29430,7 +31214,14 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/NotebookConf"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -29487,11 +31278,11 @@},{"method": "POST",- "path": "/api/notebook/closeNotebook",- "handler": "closeNotebook",+ "path": "/api/notebook/setNotebookCryptoAutoLock",+ "handler": "setNotebookCryptoAutoLock","body": "json","request": {- "$ref": "#/$defs/CloseNotebookRequestInput"+ "$ref": "#/$defs/NotebookCryptoAutoLockRequestInput"},"response": {"anyOf": [@@ -29562,11 +31353,11 @@},{"method": "POST",- "path": "/api/notebook/createEncryptedNotebook",- "handler": "createEncryptedNotebook",+ "path": "/api/notebook/setNotebookIcon",+ "handler": "setNotebookIcon","body": "json","request": {- "$ref": "#/$defs/CreateEncryptedNotebookRequestInput"+ "$ref": "#/$defs/SetNotebookIconRequestInput"},"response": {"anyOf": [@@ -29580,7 +31371,7 @@]},"data": {- "$ref": "#/$defs/CreateNotebookData"+ "type": "null"},"msg": {"type": "string"@@ -29637,11 +31428,11 @@},{"method": "POST",- "path": "/api/notebook/createNotebook",- "handler": "createNotebook",- "body": "json",+ "path": "/api/notebook/touchEncryptedNotebooks",+ "handler": "touchEncryptedNotebooks",+ "body": "none","request": {- "$ref": "#/$defs/CreateNotebookRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -29655,7 +31446,7 @@]},"data": {- "$ref": "#/$defs/CreateNotebookData"+ "type": "null"},"msg": {"type": "string"@@ -29712,11 +31503,11 @@},{"method": "POST",- "path": "/api/notebook/disableEncryptedNotebooks",- "handler": "disableEncryptedNotebooks",- "body": "none",+ "path": "/api/notebook/unlockAndOpenNotebook",+ "handler": "unlockAndOpenNotebook",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/UnlockNotebookRequestInput"},"response": {"anyOf": [@@ -29787,11 +31578,11 @@},{"method": "POST",- "path": "/api/notebook/enableEncryptedNotebooks",- "handler": "enableEncryptedNotebooks",+ "path": "/api/notebook/unlockNotebook",+ "handler": "unlockNotebook","body": "json","request": {- "$ref": "#/$defs/NotebookPasswordRequestInput"+ "$ref": "#/$defs/UnlockNotebookRequestInput"},"response": {"anyOf": [@@ -29862,11 +31653,11 @@},{"method": "POST",- "path": "/api/notebook/exportNotebookCryptoBackup",- "handler": "exportNotebookCryptoBackup",- "body": "none",+ "path": "/api/notification/pushErrMsg",+ "handler": "pushErrMsg",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/NotificationRequestInput"},"response": {"anyOf": [@@ -29880,7 +31671,7 @@]},"data": {- "$ref": "#/$defs/NotebookCryptoBackupData"+ "$ref": "#/$defs/NotificationData"},"msg": {"type": "string"@@ -29937,11 +31728,11 @@},{"method": "POST",- "path": "/api/notebook/getEncryptedNotebookStatus",- "handler": "getEncryptedNotebookStatus",- "body": "none",+ "path": "/api/notification/pushMsg",+ "handler": "pushMsg",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/NotificationRequestInput"},"response": {"anyOf": [@@ -29955,7 +31746,7 @@]},"data": {- "$ref": "#/$defs/EncryptedNotebookStatusData"+ "$ref": "#/$defs/NotificationData"},"msg": {"type": "string"@@ -30012,11 +31803,11 @@},{"method": "POST",- "path": "/api/notebook/getNotebookConf",- "handler": "getNotebookConf",+ "path": "/api/outline/getDocHeadingNumbers",+ "handler": "getDocHeadingNumbers","body": "json","request": {- "$ref": "#/$defs/CloseNotebookRequestInput"+ "$ref": "#/$defs/HeadingNumbersRequestInput"},"response": {"anyOf": [@@ -30030,7 +31821,17 @@]},"data": {- "$ref": "#/$defs/NotebookConfData"+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -30049,7 +31850,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -30087,11 +31889,11 @@},{"method": "POST",- "path": "/api/notebook/getNotebookInfo",- "handler": "getNotebookInfo",+ "path": "/api/outline/getDocOutline",+ "handler": "getDocOutline","body": "json","request": {- "$ref": "#/$defs/NotebookIDRequestInput"+ "$ref": "#/$defs/OutlineRequestInput"},"response": {"anyOf": [@@ -30105,7 +31907,24 @@]},"data": {- "$ref": "#/$defs/NotebookInfoData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SearchPath"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -30124,7 +31943,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -30162,11 +31982,11 @@},{"method": "POST",- "path": "/api/notebook/importNotebookCryptoBackup",- "handler": "importNotebookCryptoBackup",- "body": "multipart",+ "path": "/api/petal/loadPetals",+ "handler": "loadPetals",+ "body": "json","request": {- "$ref": "#/$defs/ImportNotebookCryptoBackupRequestInput"+ "$ref": "#/$defs/LoadPetalsRequestInput"},"response": {"anyOf": [@@ -30180,7 +32000,24 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/Petal"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -30237,11 +32074,11 @@},{"method": "POST",- "path": "/api/notebook/lockNotebook",- "handler": "lockNotebook",+ "path": "/api/petal/setPetalEnabled",+ "handler": "setPetalEnabled","body": "json","request": {- "$ref": "#/$defs/NotebookIDRequestInput"+ "$ref": "#/$defs/SetPetalEnabledRequestInput"},"response": {"anyOf": [@@ -30255,7 +32092,14 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/Petal"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -30312,11 +32156,11 @@},{"method": "POST",- "path": "/api/notebook/lsNotebooks",- "handler": "lsNotebooks",- "body": "legacyOptional",+ "path": "/api/petal/setPetalPublishEnabled",+ "handler": "setPetalPublishEnabled",+ "body": "json","request": {- "$ref": "#/$defs/ListNotebooksRequestInput"+ "$ref": "#/$defs/SetPetalPublishEnabledRequestInput"},"response": {"anyOf": [@@ -30332,7 +32176,7 @@"data": {"anyOf": [{- "$ref": "#/$defs/ListNotebooksData"+ "$ref": "#/$defs/Petal"},{"type": "null"@@ -30394,11 +32238,11 @@},{"method": "POST",- "path": "/api/notebook/openNotebook",- "handler": "openNotebook",+ "path": "/api/plugin/getLoadedPlugin",+ "handler": "getLoadedPlugin","body": "json","request": {- "$ref": "#/$defs/OpenNotebookRequestInput"+ "$ref": "#/$defs/LoadedPluginRequestInput"},"response": {"anyOf": [@@ -30412,7 +32256,14 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/LoadedPlugin"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -30431,7 +32282,11 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1,+ 2,+ 3,+ 4]},"data": {@@ -30469,11 +32324,11 @@},{"method": "POST",- "path": "/api/notebook/removeNotebook",- "handler": "removeNotebook",- "body": "json",+ "path": "/api/plugin/listLoadedPlugins",+ "handler": "listLoadedPlugins",+ "body": "none","request": {- "$ref": "#/$defs/NotebookIDRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -30487,7 +32342,24 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/LoadedPlugin"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -30544,36 +32416,52 @@},{"method": "POST",- "path": "/api/notebook/renameNotebook",- "handler": "renameNotebook",+ "path": "/api/plugin/rpc",+ "handler": "pluginJsonRpcHttp","body": "json","request": {- "$ref": "#/$defs/RenameNotebookRequestInput"+ "anyOf": [+ {+ "$ref": "#/$defs/PluginRPCRequestFieldsInput"+ },+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/PluginRPCRequestFieldsInput"+ },+ "minItems": 1+ }+ ]},"response": {"anyOf": [{- "type": "object",- "properties": {- "code": {- "type": "integer",- "enum": [- 0+ "anyOf": [+ {+ "anyOf": [+ {+ "$ref": "#/$defs/PluginRPCSuccess"+ },+ {+ "$ref": "#/$defs/PluginRPCFailure"+ }]},- "data": {- "type": "null"- },- "msg": {- "type": "string"+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/PluginRPCSuccess"+ },+ {+ "$ref": "#/$defs/PluginRPCFailure"+ }+ ]+ },+ "minItems": 1}- },- "required": [- "code",- "msg",- "data"- ],- "additionalProperties": false+ ]},{"type": "object",@@ -30615,47 +32503,58 @@"additionalProperties": true}]- }+ },+ "output": "directJSON",+ "noContent": true},{"method": "POST",- "path": "/api/notebook/reorder",- "handler": "reorderNotebooks",- "body": "structJSON",+ "path": "/api/plugin/rpc/:name",+ "handler": "pluginJsonRpcHttpByName",+ "body": "json","request": {- "$ref": "#/$defs/ReorderNotebooksRequestInput"+ "anyOf": [+ {+ "$ref": "#/$defs/PluginRPCRequestFieldsInput"+ },+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/PluginRPCRequestFieldsInput"+ },+ "minItems": 1+ }+ ]},"response": {"anyOf": [{- "type": "object",- "properties": {- "code": {- "type": "integer",- "enum": [- 0- ]- },- "data": {+ "anyOf": [+ {"anyOf": [{- "$ref": "#/$defs/ReorderData"+ "$ref": "#/$defs/PluginRPCSuccess"},{- "type": "null"+ "$ref": "#/$defs/PluginRPCFailure"}]},- "msg": {- "type": "string"+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/PluginRPCSuccess"+ },+ {+ "$ref": "#/$defs/PluginRPCFailure"+ }+ ]+ },+ "minItems": 1}- },- "required": [- "code",- "msg",- "data"- ],- "additionalProperties": false+ ]},{"type": "object",@@ -30682,16 +32581,6 @@},{"type": "null"- },- {- "anyOf": [- {- "$ref": "#/$defs/ReorderData"- },- {- "type": "null"- }- ]}]},@@ -30707,15 +32596,17 @@"additionalProperties": true}]- }+ },+ "output": "directJSON",+ "noContent": true},{"method": "POST",- "path": "/api/notebook/setNotebookConf",- "handler": "setNotebookConf",+ "path": "/api/query/sql",+ "handler": "SQL","body": "json","request": {- "$ref": "#/$defs/SetNotebookConfRequestInput"+ "$ref": "#/$defs/SQLQueryRequestInput"},"response": {"anyOf": [@@ -30729,23 +32620,50 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/NotebookConf"- },- {- "type": "null"- }- ]+ "type": "array",+ "items": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "anyOf": [+ {+ "type": "null"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "limit": {+ "type": "integer"},"msg": {"type": "string"+ },+ "truncated": {+ "type": "boolean"}},"required": ["code","msg",- "data"+ "data",+ "limit",+ "truncated"],"additionalProperties": false},@@ -30755,7 +32673,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -30793,11 +32712,11 @@},{"method": "POST",- "path": "/api/notebook/setNotebookCryptoAutoLock",- "handler": "setNotebookCryptoAutoLock",+ "path": "/api/ref/getBacklink2",+ "handler": "getBacklink2","body": "json","request": {- "$ref": "#/$defs/NotebookCryptoAutoLockRequestInput"+ "$ref": "#/$defs/BacklinkListRequestInput"},"response": {"anyOf": [@@ -30811,7 +32730,17 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/BacklinkList"+ },+ {+ "$ref": "#/$defs/BacklinkRefDefs"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -30830,7 +32759,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -30849,6 +32779,19 @@},{"type": "null"+ },+ {+ "anyOf": [+ {+ "$ref": "#/$defs/BacklinkList"+ },+ {+ "$ref": "#/$defs/BacklinkRefDefs"+ },+ {+ "type": "null"+ }+ ]}]},@@ -30868,11 +32811,11 @@},{"method": "POST",- "path": "/api/notebook/setNotebookIcon",- "handler": "setNotebookIcon",+ "path": "/api/ref/getBacklinkDoc",+ "handler": "getBacklinkDoc","body": "json","request": {- "$ref": "#/$defs/SetNotebookIconRequestInput"+ "$ref": "#/$defs/BacklinkDocumentRequestInput"},"response": {"anyOf": [@@ -30886,7 +32829,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BacklinkContextData"},"msg": {"type": "string"@@ -30905,7 +32848,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -30943,11 +32887,11 @@},{"method": "POST",- "path": "/api/notebook/touchEncryptedNotebooks",- "handler": "touchEncryptedNotebooks",- "body": "none",+ "path": "/api/ref/getBackmentionDoc",+ "handler": "getBackmentionDoc",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/BackmentionDocumentRequestInput"},"response": {"anyOf": [@@ -30961,7 +32905,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BacklinkContextData"},"msg": {"type": "string"@@ -30980,7 +32924,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -31018,11 +32963,11 @@},{"method": "POST",- "path": "/api/notebook/unlockAndOpenNotebook",- "handler": "unlockAndOpenNotebook",+ "path": "/api/ref/refreshBacklink",+ "handler": "refreshBacklink","body": "json","request": {- "$ref": "#/$defs/UnlockNotebookRequestInput"+ "$ref": "#/$defs/RefreshBacklinkRequestInput"},"response": {"anyOf": [@@ -31093,11 +33038,11 @@},{"method": "POST",- "path": "/api/notebook/unlockNotebook",- "handler": "unlockNotebook",- "body": "json",+ "path": "/api/repo/checkSnapshot",+ "handler": "checkSnapshot",+ "body": "none","request": {- "$ref": "#/$defs/UnlockNotebookRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -31111,7 +33056,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/CheckSnapshotData"},"msg": {"type": "string"@@ -31168,11 +33113,11 @@},{"method": "POST",- "path": "/api/notification/pushErrMsg",- "handler": "pushErrMsg",+ "path": "/api/repo/createSnapshot",+ "handler": "createSnapshot","body": "json","request": {- "$ref": "#/$defs/NotificationRequestInput"+ "$ref": "#/$defs/CreateSnapshotRequestInput"},"response": {"anyOf": [@@ -31186,7 +33131,7 @@]},"data": {- "$ref": "#/$defs/NotificationData"+ "$ref": "#/$defs/CreateSnapshotData"},"msg": {"type": "string"@@ -31243,11 +33188,11 @@},{"method": "POST",- "path": "/api/notification/pushMsg",- "handler": "pushMsg",+ "path": "/api/repo/setSnapshotMemo",+ "handler": "setSnapshotMemo","body": "json","request": {- "$ref": "#/$defs/NotificationRequestInput"+ "$ref": "#/$defs/SetSnapshotMemoRequestInput"},"response": {"anyOf": [@@ -31261,7 +33206,7 @@]},"data": {- "$ref": "#/$defs/NotificationData"+ "type": "null"},"msg": {"type": "string"@@ -31318,11 +33263,11 @@},{"method": "POST",- "path": "/api/outline/getDocHeadingNumbers",- "handler": "getDocHeadingNumbers",+ "path": "/api/riff/addRiffCards",+ "handler": "addRiffCards","body": "json","request": {- "$ref": "#/$defs/HeadingNumbersRequestInput"+ "$ref": "#/$defs/RiffDeckCardsRequestInput"},"response": {"anyOf": [@@ -31338,10 +33283,7 @@"data": {"anyOf": [{- "type": "object",- "additionalProperties": {- "type": "string"- }+ "$ref": "#/$defs/RiffDeck"},{"type": "null"@@ -31365,8 +33307,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -31404,11 +33345,11 @@},{"method": "POST",- "path": "/api/outline/getDocOutline",- "handler": "getDocOutline",+ "path": "/api/riff/batchSetRiffCardsDueTime",+ "handler": "batchSetRiffCardsDueTime","body": "json","request": {- "$ref": "#/$defs/OutlineRequestInput"+ "$ref": "#/$defs/SetRiffCardsDueRequestInput"},"response": {"anyOf": [@@ -31422,24 +33363,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/SearchPath"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -31458,8 +33382,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -31497,11 +33420,11 @@},{"method": "POST",- "path": "/api/petal/loadPetals",- "handler": "loadPetals",+ "path": "/api/riff/createRiffDeck",+ "handler": "createRiffDeck","body": "json","request": {- "$ref": "#/$defs/LoadPetalsRequestInput"+ "$ref": "#/$defs/CreateRiffDeckRequestInput"},"response": {"anyOf": [@@ -31517,17 +33440,7 @@"data": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/Petal"- },- {- "type": "null"- }- ]- }+ "$ref": "#/$defs/RiffDeck"},{"type": "null"@@ -31589,11 +33502,11 @@},{"method": "POST",- "path": "/api/petal/setPetalEnabled",- "handler": "setPetalEnabled",+ "path": "/api/riff/getNotebookRiffCards",+ "handler": "getNotebookRiffCards","body": "json","request": {- "$ref": "#/$defs/SetPetalEnabledRequestInput"+ "$ref": "#/$defs/RiffCardsRequestInput"},"response": {"anyOf": [@@ -31607,14 +33520,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/Petal"- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/RiffCardsData"},"msg": {"type": "string"@@ -31671,11 +33577,11 @@},{"method": "POST",- "path": "/api/petal/setPetalPublishEnabled",- "handler": "setPetalPublishEnabled",+ "path": "/api/riff/getNotebookRiffDueCards",+ "handler": "getNotebookRiffDueCards","body": "json","request": {- "$ref": "#/$defs/SetPetalPublishEnabledRequestInput"+ "$ref": "#/$defs/RiffNotebookDueCardsRequestInput"},"response": {"anyOf": [@@ -31689,14 +33595,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/Petal"- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/RiffDueCardsData"},"msg": {"type": "string"@@ -31753,11 +33652,11 @@},{"method": "POST",- "path": "/api/plugin/getLoadedPlugin",- "handler": "getLoadedPlugin",+ "path": "/api/riff/getRiffCards",+ "handler": "getRiffCards","body": "json","request": {- "$ref": "#/$defs/LoadedPluginRequestInput"+ "$ref": "#/$defs/RiffCardsRequestInput"},"response": {"anyOf": [@@ -31770,15 +33669,8 @@0]},- "data": {- "anyOf": [- {- "$ref": "#/$defs/LoadedPlugin"- },- {- "type": "null"- }- ]+ "data": {+ "$ref": "#/$defs/RiffCardsData"},"msg": {"type": "string"@@ -31797,11 +33689,7 @@"code": {"type": "integer","enum": [- -1,- 1,- 2,- 3,- 4+ -1]},"data": {@@ -31839,11 +33727,11 @@},{"method": "POST",- "path": "/api/plugin/listLoadedPlugins",- "handler": "listLoadedPlugins",- "body": "none",+ "path": "/api/riff/getRiffCardsByBlockIDs",+ "handler": "getRiffCardsByBlockIDs",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/RiffBlockIDsRequestInput"},"response": {"anyOf": [@@ -31857,24 +33745,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/LoadedPlugin"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/RiffBlocksData"},"msg": {"type": "string"@@ -31931,52 +33802,46 @@},{"method": "POST",- "path": "/api/plugin/rpc",- "handler": "pluginJsonRpcHttp",- "body": "json",+ "path": "/api/riff/getRiffDecks",+ "handler": "getRiffDecks",+ "body": "none","request": {- "anyOf": [- {- "$ref": "#/$defs/PluginRPCRequestFieldsInput"- },- {- "type": "array",- "items": {- "$ref": "#/$defs/PluginRPCRequestFieldsInput"- },- "minItems": 1- }- ]+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [{- "anyOf": [- {- "anyOf": [- {- "$ref": "#/$defs/PluginRPCSuccess"- },- {- "$ref": "#/$defs/PluginRPCFailure"- }+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0]},- {+ "data": {"type": "array","items": {"anyOf": [{- "$ref": "#/$defs/PluginRPCSuccess"+ "$ref": "#/$defs/RiffDeck"},{- "$ref": "#/$defs/PluginRPCFailure"+ "type": "null"}]- },- "minItems": 1+ }+ },+ "msg": {+ "type": "string"}- ]+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": false},{"type": "object",@@ -32018,58 +33883,40 @@"additionalProperties": true}]- },- "output": "directJSON",- "noContent": true+ }},{"method": "POST",- "path": "/api/plugin/rpc/:name",- "handler": "pluginJsonRpcHttpByName",+ "path": "/api/riff/getRiffDueCards",+ "handler": "getRiffDueCards","body": "json","request": {- "anyOf": [- {- "$ref": "#/$defs/PluginRPCRequestFieldsInput"- },- {- "type": "array",- "items": {- "$ref": "#/$defs/PluginRPCRequestFieldsInput"- },- "minItems": 1- }- ]+ "$ref": "#/$defs/RiffDueCardsRequestInput"},"response": {"anyOf": [{- "anyOf": [- {- "anyOf": [- {- "$ref": "#/$defs/PluginRPCSuccess"- },- {- "$ref": "#/$defs/PluginRPCFailure"- }+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0]},- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/PluginRPCSuccess"- },- {- "$ref": "#/$defs/PluginRPCFailure"- }- ]- },- "minItems": 1+ "data": {+ "$ref": "#/$defs/RiffDueCardsData"+ },+ "msg": {+ "type": "string"}- ]+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": false},{"type": "object",@@ -32111,17 +33958,15 @@"additionalProperties": true}]- },- "output": "directJSON",- "noContent": true+ }},{"method": "POST",- "path": "/api/query/sql",- "handler": "SQL",+ "path": "/api/riff/getTreeRiffCards",+ "handler": "getTreeRiffCards","body": "json","request": {- "$ref": "#/$defs/SQLQueryRequestInput"+ "$ref": "#/$defs/RiffCardsRequestInput"},"response": {"anyOf": [@@ -32135,50 +33980,16 @@]},"data": {- "type": "array",- "items": {- "anyOf": [- {- "type": "object",- "additionalProperties": {- "anyOf": [- {- "type": "null"- },- {- "type": "string"- },- {- "type": "number"- },- {- "type": "boolean"- }- ]- }- },- {- "type": "null"- }- ]- }- },- "limit": {- "type": "integer"+ "$ref": "#/$defs/RiffCardsData"},"msg": {"type": "string"- },- "truncated": {- "type": "boolean"}},"required": ["code","msg",- "data",- "limit",- "truncated"+ "data"],"additionalProperties": false},@@ -32188,8 +33999,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -32227,11 +34037,11 @@},{"method": "POST",- "path": "/api/ref/getBacklink2",- "handler": "getBacklink2",+ "path": "/api/riff/getTreeRiffDueCards",+ "handler": "getTreeRiffDueCards","body": "json","request": {- "$ref": "#/$defs/BacklinkListRequestInput"+ "$ref": "#/$defs/RiffTreeDueCardsRequestInput"},"response": {"anyOf": [@@ -32245,17 +34055,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/BacklinkList"- },- {- "$ref": "#/$defs/BacklinkRefDefs"- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/RiffDueCardsData"},"msg": {"type": "string"@@ -32274,8 +34074,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -32294,19 +34093,6 @@},{"type": "null"- },- {- "anyOf": [- {- "$ref": "#/$defs/BacklinkList"- },- {- "$ref": "#/$defs/BacklinkRefDefs"- },- {- "type": "null"- }- ]}]},@@ -32326,11 +34112,11 @@},{"method": "POST",- "path": "/api/ref/getBacklinkDoc",- "handler": "getBacklinkDoc",+ "path": "/api/riff/removeRiffCards",+ "handler": "removeRiffCards","body": "json","request": {- "$ref": "#/$defs/BacklinkDocumentRequestInput"+ "$ref": "#/$defs/RiffDeckCardsRequestInput"},"response": {"anyOf": [@@ -32344,7 +34130,14 @@]},"data": {- "$ref": "#/$defs/BacklinkContextData"+ "anyOf": [+ {+ "$ref": "#/$defs/RiffDeck"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -32363,8 +34156,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -32402,11 +34194,11 @@},{"method": "POST",- "path": "/api/ref/getBackmentionDoc",- "handler": "getBackmentionDoc",+ "path": "/api/riff/removeRiffDeck",+ "handler": "removeRiffDeck","body": "json","request": {- "$ref": "#/$defs/BackmentionDocumentRequestInput"+ "$ref": "#/$defs/RiffDeckRequestInput"},"response": {"anyOf": [@@ -32420,7 +34212,7 @@]},"data": {- "$ref": "#/$defs/BacklinkContextData"+ "type": "null"},"msg": {"type": "string"@@ -32439,8 +34231,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -32478,11 +34269,11 @@},{"method": "POST",- "path": "/api/ref/refreshBacklink",- "handler": "refreshBacklink",+ "path": "/api/riff/renameRiffDeck",+ "handler": "renameRiffDeck","body": "json","request": {- "$ref": "#/$defs/RefreshBacklinkRequestInput"+ "$ref": "#/$defs/RenameRiffDeckRequestInput"},"response": {"anyOf": [@@ -32553,11 +34344,11 @@},{"method": "POST",- "path": "/api/repo/checkSnapshot",- "handler": "checkSnapshot",- "body": "none",+ "path": "/api/riff/resetRiffCards",+ "handler": "resetRiffCards",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/ResetRiffCardsRequestInput"},"response": {"anyOf": [@@ -32571,7 +34362,7 @@]},"data": {- "$ref": "#/$defs/CheckSnapshotData"+ "type": "null"},"msg": {"type": "string"@@ -32628,11 +34419,11 @@},{"method": "POST",- "path": "/api/repo/createSnapshot",- "handler": "createSnapshot",+ "path": "/api/riff/reviewRiffCard",+ "handler": "reviewRiffCard","body": "json","request": {- "$ref": "#/$defs/CreateSnapshotRequestInput"+ "$ref": "#/$defs/ReviewRiffCardRequestInput"},"response": {"anyOf": [@@ -32646,7 +34437,7 @@]},"data": {- "$ref": "#/$defs/CreateSnapshotData"+ "type": "null"},"msg": {"type": "string"@@ -32703,11 +34494,11 @@},{"method": "POST",- "path": "/api/repo/setSnapshotMemo",- "handler": "setSnapshotMemo",+ "path": "/api/riff/skipReviewRiffCard",+ "handler": "skipReviewRiffCard","body": "json","request": {- "$ref": "#/$defs/SetSnapshotMemoRequestInput"+ "$ref": "#/$defs/RiffCardRequestInput"},"response": {"anyOf": [