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 document tree API contracts https://github.com/siyuan-note/siyuan/issues/19378
Danielaaf5f44829d9
diff --git a/app/src/block/Panel.ts b/app/src/block/Panel.tsindex c5530beecf..ef178daded 100644--- a/app/src/block/Panel.ts+++ b/app/src/block/Panel.ts@@ -41,7 +41,7 @@ export class BlockPanel {public editors: Protyle[] = [];private observerResize: ResizeObserver;private observerLoad: IntersectionObserver;- private originalRefBlockIDs: IObject;+ private originalRefBlockIDs: Record<string, string>;private editorResizeCleanup?: () => void;private refDefElements = new Map<IRefDefs, HTMLElement>();private refDefEditors = new Map<IRefDefs, Protyle>();@@ -54,7 +54,7 @@ export class BlockPanel {targetElement?: HTMLElement,refDefs: IRefDefs[]isBacklink: boolean,- originalRefBlockIDs?: IObject, // isBacklink 为 true 时有效+ originalRefBlockIDs?: Record<string, string>, // isBacklink 为 true 时有效x?: number,y?: number,}) {diff --git a/app/src/block/popover.ts b/app/src/block/popover.tsindex 850816bfbe..3d14a1237b 100644--- a/app/src/block/popover.ts+++ b/app/src/block/popover.ts@@ -575,7 +575,7 @@ export const showPopover = async (app: App, showRef = false) => {return;}let refDefs: IRefDefs[] = [];- let originalRefBlockIDs: IObject;+ let originalRefBlockIDs: Record<string, string>;const notebookId = getPopoverNotebookId();const dataId = popoverTargetElement.getAttribute("data-id");if (dataId) {diff --git a/app/src/card/openCard.ts b/app/src/card/openCard.tsindex a9e294a3f3..7c70e2e7ce 100644--- a/app/src/card/openCard.ts+++ b/app/src/card/openCard.ts@@ -218,7 +218,7 @@ const getEditor = (id: string, protyle: IProtyle, element: Element, currentCard:updateReadonly: true,data: response,protyle,- action: response.data.rootID === response.data.id ? [] : [Constants.CB_GET_ALL],+ action: response.code === 0 && response.data.rootID === response.data.id ? [] : [Constants.CB_GET_ALL],afterCB: () => {if (!isCurrentFlashcardLoad(revealState, generation) ||protyle.element.classList.contains("fn__none")) {diff --git a/app/src/card/viewCards.ts b/app/src/card/viewCards.tsindex 02e0f4c025..1c4b72c23a 100644--- a/app/src/card/viewCards.ts+++ b/app/src/card/viewCards.ts@@ -368,7 +368,7 @@ const getArticle = (edit: Protyle, id: string) => {updateReadonly: true,data: getResponse,protyle: edit.protyle,- action: getResponse.data.rootID === getResponse.data.id ? [] : [Constants.CB_GET_ALL],+ action: getResponse.code === 0 && getResponse.data.rootID === getResponse.data.id ? [] : [Constants.CB_GET_ALL],});});});diff --git a/app/src/editor/util.ts b/app/src/editor/util.tsindex 7ae16c4c68..8dab0dbed9 100644--- a/app/src/editor/util.ts+++ b/app/src/editor/util.ts@@ -1,3 +1,4 @@+import type {FileTreeGetDocRequestInput} from "../types/api";import {isPhablet} from "../protyle/util/compatibility";import {Tab} from "../layout/Tab";import {Editor} from "./index";@@ -441,7 +442,7 @@ const switchEditor = (editor: Editor, options: IOpenFileOptions, allModels: IModrevealTabsForTarget(nodeElement);}if ((!nodeElement || nodeElement?.clientHeight === 0) && options.id !== options.rootID) {- const getDocParam: IObject = {+ const getDocParam: FileTreeGetDocRequestInput = {id: options.id,mode: (options.action && options.action.includes(Constants.CB_GET_CONTEXT)) ? 3 : 0,size: window.siyuan.config.editor.dynamicLoadBlocks,diff --git a/app/src/layout/dock/Files.ts b/app/src/layout/dock/Files.tsindex c3b3846812..2013c11f96 100644--- a/app/src/layout/dock/Files.ts+++ b/app/src/layout/dock/Files.ts@@ -820,15 +820,11 @@ export class Files extends Model {}const toDocOptions: {targetNoteBook: string;- pushMode: number;toTop?: boolean;- srcHeadingID?: string;- srcListItemID?: string;targetPath?: string;previousPath?: string;} = {targetNoteBook: toURL,- pushMode: 0,};if (newElement.classList.contains("dragover")) {toDocOptions.targetPath = toPath;@@ -845,11 +841,9 @@ export class Files extends Model {}}if (gutterTypes[0] === "nodeheading") {- toDocOptions.srcHeadingID = gutterTypes[2].split(",")[0];- fetchPost("/api/filetree/heading2Doc", toDocOptions);+ fetchPost("/api/filetree/heading2Doc", {...toDocOptions, srcHeadingID: gutterTypes[2].split(",")[0]});} else {- toDocOptions.srcListItemID = gutterTypes[2].split(",")[0];- fetchPost("/api/filetree/li2Doc", toDocOptions);+ fetchPost("/api/filetree/li2Doc", {...toDocOptions, srcListItemID: gutterTypes[2].split(",")[0]});}}newElement.classList.remove("dragover", "dragover__bottom", "dragover__top");@@ -1923,7 +1917,9 @@ data-type="navigation-root" data-path="/" data-count="${item.subFileCount || 0}"path: item.path,app: Constants.SIYUAN_APPID,});- newLiElement = await this.selectItem(response.data.box, filePath, response.data, setStorage, isSetCurrent);+ if (response.code === 0) {+ newLiElement = await this.selectItem(response.data.box, filePath, response.data, setStorage, isSetCurrent);+ }}}if (isSetCurrent) {@@ -2043,7 +2039,9 @@ data-type="navigation-root" data-path="/" data-count="${item.subFileCount || 0}"path: currentPath,app: Constants.SIYUAN_APPID,});- liElement = await this.onLsSelect(response.data, filePath, setStorage, isSetCurrent);+ if (response.code === 0) {+ liElement = await this.onLsSelect(response.data, filePath, setStorage, isSetCurrent);+ }}this.refreshPublishAccessSwitch();return liElement;diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.tsindex d9138f976b..f0813f991f 100644--- a/app/src/menus/protyle.ts+++ b/app/src/menus/protyle.ts@@ -1,3 +1,4 @@+import type {FileTreeGetDocRequestInput} from "../types/api";import {hasClosestBlock,hasClosestByAttribute,@@ -1058,7 +1059,7 @@ export const zoomOut = (options: {pushBack();}}- const getDocParam: IObject = {+ const getDocParam: FileTreeGetDocRequestInput = {id: options.id,size: options.id === options.protyle.block.rootID ? window.siyuan.config.editor.dynamicLoadBlocks : Constants.SIZE_GET_MAX,};@@ -1123,7 +1124,7 @@ export const zoomOut = (options: {focusBlock(showElement, undefined, true, true);}} else if (!options.focusId) {- const getDocParam: IObject = {+ const getDocParam: FileTreeGetDocRequestInput = {id: options.protyle.block.rootID,size: window.siyuan.config.editor.dynamicLoadBlocks,};@@ -1142,7 +1143,7 @@ export const zoomOut = (options: {});return;} else if (options.id === options.protyle.block.rootID) { // 聚焦返回后,该块是动态加载的,但是没加载出来- const getDocParam: IObject = {+ const getDocParam: FileTreeGetDocRequestInput = {id: options.focusId,mode: 3,size: window.siyuan.config.editor.dynamicLoadBlocks,diff --git a/app/src/mobile/dock/MobileFiles.ts b/app/src/mobile/dock/MobileFiles.tsindex b33d5956b9..3eba2d99e0 100644--- a/app/src/mobile/dock/MobileFiles.ts+++ b/app/src/mobile/dock/MobileFiles.ts@@ -1390,7 +1390,9 @@ export class MobileFiles extends Model {path: item.path,app: Constants.SIYUAN_APPID,});- newLiElement = await this.selectItem(response.data.box, filePath, response.data, setStorage, isSetCurrent);+ if (response.code === 0) {+ newLiElement = await this.selectItem(response.data.box, filePath, response.data, setStorage, isSetCurrent);+ }}}if (isSetCurrent) {@@ -1511,7 +1513,9 @@ export class MobileFiles extends Model {path: currentPath,app: Constants.SIYUAN_APPID,});- liElement = await this.onLsSelect(response.data, filePath, setStorage, isSetCurrent);+ if (response.code === 0) {+ liElement = await this.onLsSelect(response.data, filePath, setStorage, isSetCurrent);+ }}this.refreshPublishAccessSwitch();return liElement;diff --git a/app/src/mobile/editor.ts b/app/src/mobile/editor.tsindex 483ce6a755..8c9181a4c1 100644--- a/app/src/mobile/editor.ts+++ b/app/src/mobile/editor.ts@@ -1,3 +1,4 @@+import type {FileTreeGetDocRequestInput} from "../types/api";import {Protyle} from "../protyle";import {setEditor} from "./util/setEmpty";import {closePanel} from "./util/closePanel";@@ -237,7 +238,7 @@ export const loadMobileFileById = (app: App, id: string, action: TProtyleAction[}});} else {- const getDocParam: IObject = {+ const getDocParam: FileTreeGetDocRequestInput = {id,includeDocInfo: true,size: actionList.includes(Constants.CB_GET_ALL) ? Constants.SIZE_GET_MAX : window.siyuan.config.editor.dynamicLoadBlocks,diff --git a/app/src/plugin/index.ts b/app/src/plugin/index.tsindex d179e26bcf..1d50add825 100644--- a/app/src/plugin/index.ts+++ b/app/src/plugin/index.ts@@ -691,7 +691,7 @@ export class Plugin {x?: number,y?: number,targetElement?: HTMLElement,- originalRefBlockIDs?: IObject,+ originalRefBlockIDs?: Record<string, string>,isBacklink: boolean,}) => {if (isPluginDisposed(this)) {diff --git a/app/src/protyle/breadcrumb/index.ts b/app/src/protyle/breadcrumb/index.tsindex 51d3233d5f..63b3cd1297 100644--- a/app/src/protyle/breadcrumb/index.ts+++ b/app/src/protyle/breadcrumb/index.ts@@ -1,3 +1,4 @@+import type {FileTreeGetDocRequestInput} from "../../types/api";import type {BlockBreadcrumbRequestInput, BlockQueryRequestInput, TreeStatRequestInput} from "../../types/api";import {getIconByType} from "../../editor/getIcon";import {fetchPost, fetchSyncPost} from "../../util/fetch";@@ -193,7 +194,7 @@ ${padHTML}if (target.classList.contains("block__icon--active")) {zoomOut({protyle, id: protyle.options.blockId});} else {- const getDocParam: IObject = {+ const getDocParam: FileTreeGetDocRequestInput = {id: protyle.options.blockId,mode: 3,size: window.siyuan.config.editor.dynamicLoadBlocks,diff --git a/app/src/protyle/header/openTitleMenu.ts b/app/src/protyle/header/openTitleMenu.tsindex 3a9c71bdec..8996ecda59 100644--- a/app/src/protyle/header/openTitleMenu.ts+++ b/app/src/protyle/header/openTitleMenu.ts@@ -274,16 +274,20 @@ export const openTitleMenu = (protyle: IProtyle, position: IPosition, from: striasync click() {const searchPath = isBoxDoc ? "" : getDisplayName(protyle.path, false, true);/// #if MOBILE- const pathResponse = isBoxDoc ? undefined : await fetchSyncPost("/api/filetree/getHPathByPath", {+ let hPath = getNotebookName(protyle.notebookId);+ if (!isBoxDoc) {+ const pathResponse = await fetchSyncPost("/api/filetree/getHPathByPath", {notebook: protyle.notebookId,path: searchPath + ".sy"});- if (!isBoxDoc && (pathResponse?.code !== 0 || typeof pathResponse?.data !== "string")) {- return;+ if (pathResponse.code !== 0) {+ return;+ }+ hPath = pathPosix().join(hPath, pathResponse.data);}popSearch(protyle.app, {hasReplace: false,- hPath: isBoxDoc ? getNotebookName(protyle.notebookId) : pathPosix().join(getNotebookName(protyle.notebookId), pathResponse.data),+ hPath,idPath: [isBoxDoc ? protyle.notebookId : pathPosix().join(protyle.notebookId, searchPath)],page: 1,});diff --git a/app/src/protyle/header/titleEnter.ts b/app/src/protyle/header/titleEnter.tsindex 0e4758a94f..6c89db5e90 100644--- a/app/src/protyle/header/titleEnter.ts+++ b/app/src/protyle/header/titleEnter.ts@@ -1,3 +1,4 @@+import type {FileTreeGetDocRequestInput} from "../../types/api";import {getTitleEnterAction} from "./titleEnterCore";import {isDocumentBoundaryLoaded} from "../util/documentRange";import {getContenteditableElement} from "../wysiwyg/getBlock";@@ -77,7 +78,7 @@ export const enterDocumentFromTitle = (protyle: IProtyle, options?: {if (!isValid() || protyle.block.rootID !== rootID) {return;}- const getDocParam: IObject = {+ const getDocParam: FileTreeGetDocRequestInput = {id: rootID,mode: 0,size: window.siyuan.config.editor.dynamicLoadBlocks,diff --git a/app/src/protyle/index.ts b/app/src/protyle/index.tsindex c9f23c226d..a0a3cbda30 100644--- a/app/src/protyle/index.ts+++ b/app/src/protyle/index.ts@@ -1,3 +1,4 @@+import type {FileTreeGetDocRequestInput} from "../types/api";import {Constants} from "../constants";import {Hint} from "./hint";import {getLute} from "./render/setLute";@@ -281,7 +282,7 @@ export class Protyle {case "li2doc":if (this.protyle.block.rootID === data.data.srcRootBlockID) {if (this.protyle.block.showAll && data.cmd === "heading2doc" && !this.protyle.options.backlinkData) {- const getDocParam: IObject = {+ const getDocParam: FileTreeGetDocRequestInput = {id: this.protyle.block.rootID,size: window.siyuan.config.editor.dynamicLoadBlocks,};@@ -539,7 +540,7 @@ export class Protyle {}private getDoc(mergedOptions: IProtyleOptions) {- const getDocParam: Record<string, any> = {+ const getDocParam: FileTreeGetDocRequestInput = {id: mergedOptions.blockId,includeDocInfo: true,isBacklink: mergedOptions.action.includes(Constants.CB_GET_BACKLINK),diff --git a/app/src/protyle/scroll/index.ts b/app/src/protyle/scroll/index.tsindex 5f39d84670..588be80b2e 100644--- a/app/src/protyle/scroll/index.ts+++ b/app/src/protyle/scroll/index.ts@@ -1,3 +1,4 @@+import type {FileTreeGetDocRequestInput} from "../../types/api";import {Constants} from "../../constants";import {onGet} from "../util/onGet";import {fetchPost} from "../../util/fetch";@@ -156,7 +157,7 @@ export class Scroll {this.dynamicLoadAbortController = abortController;this.dynamicLoadFinish = options?.onFinish;protyle.wysiwyg.element.setAttribute("data-top", protyle.contentElement.scrollTop.toString());- const getDocParam: IObject = {+ const getDocParam: FileTreeGetDocRequestInput = {id: anchorID,mode,size: options?.size || window.siyuan.config.editor.dynamicLoadBlocks,@@ -280,7 +281,7 @@ export class Scroll {this.cancelIndexRequest();protyle.wysiwyg.element.setAttribute("data-top", protyle.contentElement.scrollTop.toString());protyle.contentElement.style.overflow = "hidden";- const getDocParam: IObject = {+ const getDocParam: FileTreeGetDocRequestInput = {index: parseInt(this.inputElement.value),id: protyle.block.parentID,mode: 0,diff --git a/app/src/protyle/scroll/saveScroll.ts b/app/src/protyle/scroll/saveScroll.tsindex d20993b060..f2296ed6d1 100644--- a/app/src/protyle/scroll/saveScroll.ts+++ b/app/src/protyle/scroll/saveScroll.ts@@ -1,3 +1,4 @@+import type {FileTreeGetDocRequestInput} from "../../types/api";import {hasClosestBlock} from "../util/hasClosest";import {getSelectionOffset} from "../util/selection";import {fetchPost} from "../../util/fetch";@@ -82,7 +83,7 @@ export const getDocByScroll = (options: {fail?: (invalid?: boolean) => void,isValid?: () => boolean,}) => {- const fetchDoc = (params: Record<string, any>, callback: (response: IWebSocketData) => void) => {+ const fetchDoc = (params: FileTreeGetDocRequestInput, callback: (response: IWebSocketData) => void) => {params.includeDocInfo = true;let handled = false;void fetchPost("/api/filetree/getDoc", params, (response) => {@@ -125,12 +126,12 @@ export const getDocByScroll = (options: {}};if (options.scrollAttr?.zoomInId && options.scrollAttr?.rootId && options.scrollAttr.zoomInId !== options.scrollAttr.rootId) {- const getDocParam: Record<string, any> = {+ const getDocParam: FileTreeGetDocRequestInput = {id: options.scrollAttr.zoomInId,size: Constants.SIZE_GET_MAX,query: options.protyle.query?.key,queryMethod: options.protyle.query?.method,- queryTypes: options.protyle.query?.types,+ queryTypes: options.protyle.query?.types ? {...options.protyle.query.types} : undefined,querySubTypes: options.protyle.query?.subTypes,highlight: !isSupportCSSHL(),};@@ -139,12 +140,12 @@ export const getDocByScroll = (options: {}fetchDoc(getDocParam, response => {if (response.code === 1) {- const getDocParam: Record<string, any> = {+ const getDocParam: FileTreeGetDocRequestInput = {id: options.scrollAttr.rootId || options.mergedOptions?.blockId || options.protyle.block?.rootID || options.scrollAttr.startId,...getScrollRequestParams(window.siyuan.config.editor.dynamicLoadBlocks),query: options.protyle.query?.key,queryMethod: options.protyle.query?.method,- queryTypes: options.protyle.query?.types,+ queryTypes: options.protyle.query?.types ? {...options.protyle.query.types} : undefined,querySubTypes: options.protyle.query?.subTypes,highlight: !isSupportCSSHL(),};@@ -169,7 +170,7 @@ export const getDocByScroll = (options: {});return;}- const getDocParam: Record<string, any> = {+ const getDocParam: FileTreeGetDocRequestInput = {id: options.scrollAttr?.rootId || options.mergedOptions?.blockId || options.protyle.block?.rootID || options.scrollAttr?.startId,...getScrollRequestParams(window.siyuan.config.editor.dynamicLoadBlocks,@@ -178,7 +179,7 @@ export const getDocByScroll = (options: {),query: options.protyle.query?.key,queryMethod: options.protyle.query?.method,- queryTypes: options.protyle.query?.types,+ queryTypes: options.protyle.query?.types ? {...options.protyle.query.types} : undefined,querySubTypes: options.protyle.query?.subTypes,highlight: !isSupportCSSHL(),};diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.tsindex a14c2d59d8..f34c888b0c 100644--- a/app/src/protyle/util/editorCommonEvent.ts+++ b/app/src/protyle/util/editorCommonEvent.ts@@ -1,3 +1,4 @@+import type {FileTreeGetDocRequestInput} from "../../types/api";import {cleanupDragIndicators, createListDragTarget} from "./listDragTarget";import {focusBlock, focusByRange, getRangeByPoint} from "./selection";import {@@ -2153,7 +2154,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {}}- const getDocParam: IObject = {+ const getDocParam: FileTreeGetDocRequestInput = {id: protyle.block.id,size: window.siyuan.config.editor.dynamicLoadBlocks,};diff --git a/app/src/protyle/wysiwyg/commonHotkey.ts b/app/src/protyle/wysiwyg/commonHotkey.tsindex b615c7b6b6..6a98a9b30d 100644--- a/app/src/protyle/wysiwyg/commonHotkey.ts+++ b/app/src/protyle/wysiwyg/commonHotkey.ts@@ -1,3 +1,4 @@+import type {FileTreeGetDocRequestInput} from "../../types/api";import {matchHotKey} from "../util/hotKey";import {fetchPost, fetchSyncPost} from "../../util/fetch";import {isMac, writeText} from "../util/compatibility";@@ -441,7 +442,7 @@ export const goHome = (protyle: IProtyle, focusEditor = true) => {protyle.contentElement.scrollTop = 0;protyle.scroll.lastScrollTop = 1;} else {- const getDocParam: IObject = {+ const getDocParam: FileTreeGetDocRequestInput = {id: protyle.block.rootID,mode: 0,size: window.siyuan.config.editor.dynamicLoadBlocks,@@ -463,7 +464,7 @@ export const goHome = (protyle: IProtyle, focusEditor = true) => {export const goEnd = (protyle: IProtyle, focusEditor = true) => {if (!protyle.scroll.element.classList.contains("fn__none") &&protyle.wysiwyg.element.lastElementChild.getAttribute("data-eof") !== "2") {- const getDocParam: IObject = {+ const getDocParam: FileTreeGetDocRequestInput = {id: protyle.block.rootID,mode: 4,size: window.siyuan.config.editor.dynamicLoadBlocks,diff --git a/app/src/protyle/wysiwyg/renderBacklink.ts b/app/src/protyle/wysiwyg/renderBacklink.tsindex 61e63d74a6..cea96dcb8c 100644--- a/app/src/protyle/wysiwyg/renderBacklink.ts+++ b/app/src/protyle/wysiwyg/renderBacklink.ts@@ -1,3 +1,4 @@+import type {FileTreeGetDocRequestInput} from "../../types/api";import {getIconByType} from "../../editor/getIcon";import {removeLoading} from "../ui/initUI";import {fetchPost} from "../../util/fetch";@@ -224,7 +225,7 @@ const setBacklinkFold = (html: string, expand: boolean) => {};export const loadBreadcrumb = (protyle: IProtyle, element: HTMLElement) => {- const getDocParam: IObject = {+ const getDocParam: FileTreeGetDocRequestInput = {id: element.getAttribute("data-id"),size: Constants.SIZE_GET_MAX,};@@ -232,6 +233,9 @@ export const loadBreadcrumb = (protyle: IProtyle, element: HTMLElement) => {getDocParam.notebook = protyle.notebookId;}fetchPost("/api/filetree/getDoc", getDocParam, getResponse => {+ if (getResponse.code !== 0) {+ return;+ }element.parentElement.querySelector(".protyle-breadcrumb__item--active").classList.remove("protyle-breadcrumb__item--active");element.classList.add("protyle-breadcrumb__item--active");let nextElement = element.parentElement.nextElementSibling;diff --git a/app/src/search/util.ts b/app/src/search/util.tsindex 128d39617f..5df47efb74 100644--- a/app/src/search/util.ts+++ b/app/src/search/util.ts@@ -1,3 +1,4 @@+import type {FileTreeGetDocRequestInput} from "../types/api";import type {APICallbackResponse, APIPOSTRoutes, BlockQueryRequestInput} from "../types/api";import {getAllModels} from "../layout/getAll";/// #if !BROWSER@@ -1277,15 +1278,14 @@ export const getArticle = (options: {if (articleId !== options.id) {return;}- const getDocParam: Record<string, any> = {+ const getDocParam: FileTreeGetDocRequestInput = {id: options.id,query: options.value || null,queryMethod: options.config?.method || null,- queryTypes: options.config?.types || null,+ queryTypes: options.config?.types ? {...options.config.types} : null,querySubTypes: options.config?.subTypes || null,mode: zoomIn ? 0 : 3,size: zoomIn ? Constants.SIZE_GET_MAX : window.siyuan.config.editor.dynamicLoadBlocks,- zoom: zoomIn,highlight: !isSupportCSSHL(),};if (isEncryptedBox(options.edit.protyle.notebookId)) {@@ -1311,6 +1311,9 @@ export const getArticle = (options: {protyle: options.edit.protyle,action: zoomIn ? [Constants.CB_GET_ALL, Constants.CB_GET_HTML] : [Constants.CB_GET_HTML],afterCB() {+ if (getResponse.code !== 0) {+ return;+ }const contentRect = options.edit.protyle.contentElement.getBoundingClientRect();if (isSupportCSSHL()) {let observer: ResizeObserver;diff --git a/app/src/types/api/index.d.ts b/app/src/types/api/index.d.tsindex 676361536c..3d81648018 100644--- a/app/src/types/api/index.d.ts+++ b/app/src/types/api/index.d.ts@@ -422,6 +422,96 @@ export type FilePathData = { "path": string; };export type FilePathRequestInput = { "path": string; };+export type FileTreeAuthPublishRequestInput = { "id": string; "password": string; };++export type FileTreeChangeSortRequestInput = { "notebook": string; "paths": Array<string>; };++export type FileTreeCreateData = { "id": string; };++export type FileTreeCreateMarkdownRequestInput = { "clippingHref"?: string | null; "docCreateTemplatePath"?: string | null; "id"?: string | null; "listDocTree"?: boolean | null; "markdown": string; "notebook": string; "parentID"?: string | null; "path": string; "sortPosition"?: string | null; "sortTargetID"?: string | null; "tags"?: string | null; "titleEmpty"?: boolean; "withMath"?: boolean | null; };++export type FileTreeCreateRequestInput = { "docCreateTemplatePath"?: string | null; "listDocTree"?: boolean | null; "md": string; "notebook": string; "path": string; "sortPosition"?: string | null; "sortTargetID"?: string | null; "sorts"?: Array<string> | null; "title": string; };++export type FileTreeCreateSavePathData = { "box": string; "docCreateTemplatePath": string; "path": string; };++export type FileTreeDailyNoteRequestInput = { "app"?: string | null; "notebook": string; };++export type FileTreeDocFile = { "children"?: Array<FileTreeDocFile | null>; "id": string; };++export type FileTreeDocHeadingData = { "srcTreeBox": string; "srcTreePath": string; };++export type FileTreeDocHeadingRequestInput = { "after": boolean; "srcID": string; "targetID": string; };++export type FileTreeDocPathData = { "notebook": string; "path": string; };++export type FileTreeDocTreeData = { "tree": Array<FileTreeDocFile | null> | null; };++export type FileTreeDuplicateData = { "hPath": string; "id": string; "notebook": string; "path": string; };++export type FileTreeFile = { "alias": string; "bookmark": string; "childrenSortMode": number | null; "count": number; "ctime": number; "dueFlashcardCount": number; "flashcardCount": number; "hCtime": string; "hMtime": string; "hSize": string; "icon": string; "id": string; "memo": string; "mtime": number; "name": string; "name1": string; "newFlashcardCount": number; "path": string; "size": number; "sort": number; "subFileCount": number; "titleEmpty"?: boolean; };++export type FileTreeGetDocData = { "blockCount": number; "box": string; "content": string; "docInfo"?: DocInfo; "eof": boolean; "headingNumbers": Record<string, string> | null; "id": string; "isBacklinkExpand": boolean; "isSyncing": boolean; "keywords": Array<string> | null; "mode": number; "parent2ID": string; "parentID": string; "path": string; "publishAccessRequired": boolean; "reqId": JSONValue; "rootID": string; "scroll": boolean; "type": string; };++export type FileTreeGetDocRequestInput = { "endID"?: string | null; "highlight"?: boolean | null; "id": string; "includeDocInfo"?: boolean | null; "index"?: number | null; "isBacklink"?: boolean | null; "mode"?: number | null; "notebook"?: string | null; "originalRefBlockIDs"?: Record<string, string> | null; "query"?: string | null; "queryMethod"?: number | null; "querySubTypes"?: SearchSubtypeFilterInput | null; "queryTypes"?: Record<string, boolean> | null; "reqId"?: JSONValue | null; "size"?: number | null; "startID"?: string | null; };++export type FileTreeHeadingDocRequestInput = { "previousPath"?: string | null; "srcHeadingID": string; "targetNoteBook": string; "targetPath"?: string | null; "toTop"?: boolean | null; };++export type FileTreeIDRequestInput = { "id": string; };++export type FileTreeListData = { "box": string; "effectiveSortMode": number; "files": Array<FileTreeFile | null> | null; "path": string; };++export type FileTreeListItemDocRequestInput = { "previousPath"?: string | null; "srcListItemID": string; "targetNoteBook": string; "targetPath"?: string | null; "toTop"?: boolean | null; };++export type FileTreeListRequestInput = { "app"?: string | null; "flashcard"?: boolean | null; "ignoreMaxListHint"?: boolean | null; "maxListCount"?: number | null; "notebook": string; "path": string; "showHidden"?: boolean | null; "sort"?: number | null; };++export type FileTreeMoveIDsRequestInput = { "callback"?: JSONValue | null; "fromIDs": Array<string>; "toID": string; };++export type FileTreeMoveRequestInput = { "callback"?: JSONValue | null; "fromPaths": Array<string>; "toNotebook": string; "toPath": string; };++export type FileTreeNotebookRequestInput = { "notebook": string; };++export type FileTreeOptionalIDRequestInput = { "id"?: string | null; };++export type FileTreeOptionalPathRequestInput = { "notebook"?: string | null; "path"?: string | null; };++export type FileTreePathRequestInput = { "notebook": string; "path": string; };++export type FileTreePathsRequestInput = { "paths": Array<string>; };++export type FileTreePublishData = { "publishAccess": Array<FileTreePublishItem | null> | null; };++export type FileTreePublishIDsRequestInput = { "ids": Array<string>; };++export type FileTreePublishItem = { "disable": boolean; "id": string; "password": string; "visible": boolean; };++export type FileTreeRenameIDRequestInput = { "id"?: string | null; "title": string; };++export type FileTreeRenameRequestInput = { "notebook": string; "path": string; "title": string; };++export type FileTreeReorderData = { "changed": boolean; "conflict"?: boolean; "notebook"?: string; "parentPath"?: string; };++export type FileTreeReorderRequestInput = { "position"?: string | null; "preview"?: boolean | null; "removeSorts"?: boolean | null; "respectSort"?: boolean | null; "sourceIDs"?: Array<string> | null; "targetID"?: string | null; };++export type FileTreeSavePathData = { "box": string; "path": string; };++export type FileTreeSearchDoc = { "alias"?: string; "box": string; "boxIcon": string; "dueFlashcardCount"?: string; "flashcardCount"?: string; "hPath": string; "name"?: string; "newFlashcardCount"?: string; "path": string; };++export type FileTreeSearchRequestInput = { "excludeIDs"?: Array<string> | null; "flashcard"?: boolean | null; "k": string; };++export type FileTreeSetPublishRequestInput = { "disable": boolean; "id": string; "password": string; "visible": boolean; };++export type FileTreeSetSortData = { "docIDs": Array<string> | null; "notebookIDs": Array<string> | null; };++export type FileTreeSetSortRequestInput = { "docSorts"?: Array<FileTreeSortItemInput | null> | null; "notebookSorts"?: Array<FileTreeSortItemInput | null> | null; };++export type FileTreeSortItemInput = { "id"?: string | null; "sort"?: number | null; };++export type FileTreeSortModeData = { "box": string; "effectiveSortMode": number; "id": string; "path": string; "sortMode": number | null; };++export type FileTreeSortModeRequestInput = { "id"?: string | null; "sortMode": number | null; };++export type FileTreeTrimIDRequestInput = { "id": string; };+export type FindReplaceRequestInput = { "groupBy"?: number | null; "ids": Array<string>; "k": string; "method"?: number | null; "orderBy"?: number | null; "page"?: number | null; "pageSize"?: number | null; "paths"?: Array<string> | null; "query"?: string | null; "r": string; "replaceTypes"?: Record<string, boolean> | null; "subTypes"?: SearchSubtypeFilterInput | null; "types"?: Record<string, boolean> | null; };export type FullBlockInfo = { "box": string; "path": string; "rootChildID": string; "rootID": string; "rootIcon": string; "rootTitle": string; "rootTitleEmpty": boolean; };@@ -1265,43 +1355,6 @@ export type APILegacyPOSTPath ="/api/av/sortAttributeViewKey" |"/api/av/sortAttributeViewViewKey" |"/api/extension/copy" |- "/api/filetree/authFilePublishAccess" |- "/api/filetree/changeSort" |- "/api/filetree/createDailyNote" |- "/api/filetree/createDoc" |- "/api/filetree/createDocWithMd" |- "/api/filetree/doc2Heading" |- "/api/filetree/duplicateDoc" |- "/api/filetree/getDoc" |- "/api/filetree/getDocCreateSavePath" |- "/api/filetree/getFullHPathByID" |- "/api/filetree/getHPathByID" |- "/api/filetree/getHPathByPath" |- "/api/filetree/getHPathsByPaths" |- "/api/filetree/getIDsByHPath" |- "/api/filetree/getPathByID" |- "/api/filetree/getPublishAccess" |- "/api/filetree/getRefCreateSavePath" |- "/api/filetree/getShorthandSavePath" |- "/api/filetree/heading2Doc" |- "/api/filetree/li2Doc" |- "/api/filetree/listDocTree" |- "/api/filetree/listDocsByPath" |- "/api/filetree/moveDocs" |- "/api/filetree/moveDocsByID" |- "/api/filetree/moveLocalShorthands" |- "/api/filetree/removeDoc" |- "/api/filetree/removeDocByID" |- "/api/filetree/removeDocs" |- "/api/filetree/removeIndexes" |- "/api/filetree/renameDoc" |- "/api/filetree/renameDocByID" |- "/api/filetree/reorderDocs" |- "/api/filetree/searchDocs" |- "/api/filetree/setDocSortMode" |- "/api/filetree/setPublishAccess" |- "/api/filetree/setSort" |- "/api/filetree/upsertIndexes" |"/api/network/echo" |"/api/network/echo/*path" |"/api/network/forwardProxy" |@@ -2299,16 +2352,202 @@ export interface APIPOSTRoutes {response: { "code": 0; "data": null; "msg": string; } | { "code": -1 | -2 | -3 | 403; "data": { "closeTimeout": number; } | null; "msg": string; };body: "json";};+ "/api/filetree/authFilePublishAccess": {+ request: FileTreeAuthPublishRequestInput;+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ additionalErrorStatuses: [429];+ };+ "/api/filetree/changeSort": {+ request: FileTreeChangeSortRequestInput;+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/createDailyNote": {+ request: FileTreeDailyNoteRequestInput;+ response: { "code": 0; "data": FileTreeCreateData; "msg": string; } | { "code": -1 | 1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/createDoc": {+ request: FileTreeCreateRequestInput;+ response: { "code": 0; "data": FileTreeCreateData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/createDocWithMd": {+ request: FileTreeCreateMarkdownRequestInput;+ response: { "code": 0; "data": string; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/doc2Heading": {+ request: FileTreeDocHeadingRequestInput;+ response: { "code": 0; "data": FileTreeDocHeadingData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/duplicateDoc": {+ request: FileTreeIDRequestInput;+ response: { "code": 0; "data": FileTreeDuplicateData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/getDoc": {+ request: FileTreeGetDocRequestInput;+ response: { "code": 0; "data": FileTreeGetDocData; "msg": string; } | { "code": -1 | 1 | 3; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/getDocCreateSavePath": {+ request: FileTreeNotebookRequestInput;+ response: { "code": 0; "data": FileTreeCreateSavePathData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/getFullHPathByID": {+ request: FileTreeOptionalIDRequestInput;+ response: { "code": 0; "data": string | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/getHPathByID": {+ request: FileTreeIDRequestInput;+ response: { "code": 0; "data": string; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/getHPathByPath": {+ request: FileTreePathRequestInput;+ response: { "code": 0; "data": string; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/getHPathsByPaths": {+ request: FileTreePathsRequestInput;+ response: { "code": 0; "data": Array<string> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/getIDsByHPath": {+ request: FileTreeOptionalPathRequestInput;+ response: { "code": 0; "data": Array<string> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/getPathByID": {+ request: FileTreeTrimIDRequestInput;+ response: { "code": 0; "data": FileTreeDocPathData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };"/api/filetree/getPinnedDocs": {request: EmptyRequestInput;response: { "code": 0; "data": Array<PinnedDoc>; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };body: "none";};+ "/api/filetree/getPublishAccess": {+ request: FileTreePublishIDsRequestInput;+ response: { "code": 0; "data": FileTreePublishData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/getRefCreateSavePath": {+ request: FileTreeNotebookRequestInput;+ response: { "code": 0; "data": FileTreeSavePathData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/getShorthandSavePath": {+ request: FileTreeNotebookRequestInput;+ response: { "code": 0; "data": FileTreeSavePathData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/heading2Doc": {+ request: FileTreeHeadingDocRequestInput;+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/li2Doc": {+ request: FileTreeListItemDocRequestInput;+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/listDocTree": {+ request: FileTreePathRequestInput;+ response: { "code": 0; "data": FileTreeDocTreeData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/listDocsByPath": {+ request: FileTreeListRequestInput;+ response: { "code": 0; "data": FileTreeListData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/moveDocs": {+ request: FileTreeMoveRequestInput;+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/moveDocsByID": {+ request: FileTreeMoveIDsRequestInput;+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/moveLocalShorthands": {+ request: FileTreeNotebookRequestInput;+ response: { "code": 0; "data": Array<string> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/removeDoc": {+ request: FileTreePathRequestInput;+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/removeDocByID": {+ request: FileTreeTrimIDRequestInput;+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/removeDocs": {+ request: FileTreePathsRequestInput;+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/removeIndexes": {+ request: FileTreePathsRequestInput;+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/renameDoc": {+ request: FileTreeRenameRequestInput;+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/renameDocByID": {+ request: FileTreeRenameIDRequestInput;+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/reorderDocs": {+ request: FileTreeReorderRequestInput;+ response: { "code": 0; "data": FileTreeReorderData | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null | FileTreeReorderData | null; "msg": string; };+ body: "structJSON";+ };+ "/api/filetree/searchDocs": {+ request: FileTreeSearchRequestInput;+ response: { "code": 0; "data": Array<FileTreeSearchDoc | null> | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/setDocSortMode": {+ request: FileTreeSortModeRequestInput;+ response: { "code": 0; "data": FileTreeSortModeData | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null | FileTreeSortModeData | null; "msg": string; };+ body: "structJSON";+ };+ "/api/filetree/setPublishAccess": {+ request: FileTreeSetPublishRequestInput;+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/filetree/setSort": {+ request: FileTreeSetSortRequestInput;+ response: { "code": 0; "data": FileTreeSetSortData | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null | FileTreeSetSortData | null; "msg": string; };+ body: "structJSON";+ };"/api/filetree/updatePinnedDocs": {request: UpdatePinnedDocsRequestInput;response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };body: "json";};+ "/api/filetree/upsertIndexes": {+ request: FileTreePathsRequestInput;+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };"/api/format/autoSpace": {request: TrimmedIDRequestInput;response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.tsindex 3221afc949..cd55e3ea77 100644--- a/app/src/types/index.d.ts+++ b/app/src/types/index.d.ts@@ -1057,9 +1057,9 @@ interface IFile {hMtime: string;hCtime: string;hSize: string;- dueFlashcardCount?: string;- newFlashcardCount?: string;- flashcardCount?: string;+ dueFlashcardCount?: number;+ newFlashcardCount?: number;+ flashcardCount?: number;id: string;count: number;subFileCount: number;diff --git a/app/src/types/protyle.d.ts b/app/src/types/protyle.d.tsindex 30c121cd44..0143f38a78 100644--- a/app/src/types/protyle.d.ts+++ b/app/src/types/protyle.d.ts@@ -505,7 +505,7 @@ interface IProtyleOptions {blockId?: stringrootId?: stringnotebookId?: string- originalRefBlockIDs?: IObject+ originalRefBlockIDs?: Record<string, string>key?: stringdefIds?: string[]render?: {diff --git a/app/src/util/backForward.ts b/app/src/util/backForward.tsindex 1b6ab12b71..29a953fa92 100644--- a/app/src/util/backForward.ts+++ b/app/src/util/backForward.ts@@ -1,3 +1,4 @@+import type {FileTreeGetDocRequestInput} from "../types/api";import {hasClosestBlock, isInEmbedBlock} from "../protyle/util/hasClosest";import {getContenteditableElement} from "../protyle/wysiwyg/getBlock";import {focusByOffset, focusByRange, getSelectionOffset} from "../protyle/util/selection";@@ -179,7 +180,7 @@ const focusStack = async (app: App, stack: IBackStack) => {}// 动态加载导致内容移除 https://github.com/siyuan-note/siyuan/issues/10692if (!blockElement && !stack.zoomId && !stack.protyle.scroll.element.classList.contains("fn__none")) {- const getDocParam: IObject = {+ const getDocParam: FileTreeGetDocRequestInput = {id: stack.id,mode: 3,size: window.siyuan.config.editor.dynamicLoadBlocks,diff --git a/app/src/util/fileTreeReorder.ts b/app/src/util/fileTreeReorder.tsindex 582c6fc1cc..c09bbd5828 100644--- a/app/src/util/fileTreeReorder.ts+++ b/app/src/util/fileTreeReorder.ts@@ -28,5 +28,7 @@ export const reorderSortedFileTree = async (sourceIDs: string[], targetID: strinif (response.data?.conflict && !removeSorts) {return reorderSortedFileTree(sourceIDs, targetID, after);}- return response.data;+ if (response.data?.notebook !== undefined && response.data?.parentPath !== undefined) {+ return {notebook: response.data.notebook, parentPath: response.data.parentPath};+ }};diff --git a/app/src/util/mount.ts b/app/src/util/mount.tsindex 19706c9d34..682cd64229 100644--- a/app/src/util/mount.ts+++ b/app/src/util/mount.ts@@ -24,6 +24,9 @@ export const fetchNewDailyNote = (app: App, notebook: string) => {notebook,app: Constants.SIYUAN_APPID,}, (response) => {+ if (response.code !== 0) {+ return;+ }/// #if MOBILEopenMobileFileById(app, response.data.id, [Constants.CB_GET_SCROLL, Constants.CB_GET_FOCUS]);/// #elsediff --git a/app/tests/api-contract.types.ts b/app/tests/api-contract.types.tsindex 2a878fce94..91d161e490 100644--- a/app/tests/api-contract.types.ts+++ b/app/tests/api-contract.types.ts@@ -6,6 +6,35 @@ declare const fetchGet: FetchGet;declare const fetchSyncPost: FetchSyncPost;declare const dynamicURL: string;+fetchPost("/api/filetree/getDoc", {id: "document", notebook: "box", querySubTypes: {heading: {h1: true}}}, response => {+ if (response.code === 0) {+ const content: string = response.data.content;+ const required: boolean = response.data.publishAccessRequired;+ void [content, required];+ } else {+ const prompt: 1 | 3 = response.code;+ void prompt;+ }+});+fetchPost("/api/filetree/getFullHPathByID", {}, response => {+ const path: string | null = response.data;+ void path;+});+fetchPost("/api/filetree/setDocSortMode", {id: "document", sortMode: null});+fetchPost("/api/filetree/moveDocs", {fromPaths: [], toPath: "/", toNotebook: "box", callback: {request: 1}});+// @ts-expect-error 文档读取必须提供 ID。+fetchPost("/api/filetree/getDoc", {});+// @ts-expect-error 文档加载数量必须为数值。+fetchPost("/api/filetree/getDoc", {id: "document", size: "10"});+// @ts-expect-error 文档排序方式必须为整数或 null。+fetchPost("/api/filetree/setDocSortMode", {id: "document", sortMode: "1"});+// @ts-expect-error 文档排序方式字段不能省略。+fetchPost("/api/filetree/setDocSortMode", {id: "document"});+// @ts-expect-error 文档创建字段不能拼错。+fetchPost("/api/filetree/createDocWithMd", {notebook: "box", path: "/Doc", markDown: "text"});+// @ts-expect-error 发布配置必须提供完整字段。+fetchPost("/api/filetree/setPublishAccess", {id: "document", visible: true});+fetchPost("/api/asset/upload", new ContractFormData({"file[]": [new Blob(), new Blob()], assetsDirPath: "assets"}), response => {const uploaded: string | undefined = response.data.succMap?.["example.txt"];void uploaded;diff --git a/docs/API-CONTRACTS.md b/docs/API-CONTRACTS.mdindex 3f3d819b18..ed2d340569 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+Document-tree contracts retain conditional parameter validation, path and sorting semantics, omitted callbacks, pagination defaults, and document response variants. Publish authentication preserves HTTP 429 and `Retry-After` through explicitly declared additional error statuses. Publish and encrypted-notebook admission remain before deferred field validation, and document leases cover response serialization.+Asset contracts retain nullable result lists, per-file upload order and duplicate names, successful partial-upload messages, and local-insertion failure payloads. OCR columns remain string-valued. Annotation validation, published-file admission, encrypted reads and writes, deferred downloads, and upload target selection keep their existing behavior. The non-API upload entry uses the same typed model operation.Export contracts retain Markdown option defaults and numeric truncation, notebook-list filtering, ignored title-option types, optional HTML folders, and file-upload field selection. Error responses preserve message durations and empty-string resource payloads. Publish filtering, encrypted-notebook admission, response-held leases, and temporary export cleanup remain in the existing lifecycle.diff --git a/docs/API-CONTRACTS.zh-CN.md b/docs/API-CONTRACTS.zh-CN.mdindex 9abed44d05..1d0dd84791 100644--- a/docs/API-CONTRACTS.zh-CN.md+++ b/docs/API-CONTRACTS.zh-CN.md@@ -24,6 +24,8 @@## 兼容要求+文档树契约保留条件参数校验、路径与排序语义、回调省略规则、分页默认值及文档响应变体。发布认证通过显式声明的额外错误状态保留 HTTP 429 和 `Retry-After`。发布及加密笔记本准入仍先于延迟字段校验,文档租约覆盖响应序列化阶段。+附件契约保留结果列表的空值、逐文件上传顺序与重名文件、部分上传成功时的提示及本地插入失败载荷。OCR 列保持字符串值。标注校验、发布文件准入、加密读写、延迟下载和上传目标选择保持既有行为。非 API 上传入口复用同一个有类型的模型操作。导出契约保留 Markdown 选项默认值与数字截断、笔记本列表过滤、标题选项类型忽略规则、可省略的 HTML 目录字段及上传字段选择规则。错误响应保留消息显示时长与资源错误中的空字符串载荷。发布过滤、加密笔记本准入、覆盖响应阶段的租约及临时导出清理保持既有生命周期。diff --git a/kernel/api/box_lease_test.go b/kernel/api/box_lease_test.goindex 096ee57041..b922b10b87 100644--- a/kernel/api/box_lease_test.go+++ b/kernel/api/box_lease_test.go@@ -77,6 +77,10 @@ func TestContractDocInfoNotebookResponseLease(t *testing.T) {runNotebookResponseLease(t, true, false)}+func TestContractGetDocNotebookResponseLease(t *testing.T) {+ runNotebookResponseLease(t, true, false)+}+func TestContractTreeStatNotebookResponseLease(t *testing.T) {runNotebookResponseLease(t, false, false)}@@ -216,6 +220,7 @@ func testNotebookResponseLease(t *testing.T, explicitNotebook, batch bool) {engine.POST("/api/block/getRefIDs", getRefIDs)engine.POST("/api/block/checkBlockRef", checkBlockRef)engine.POST("/api/block/getDocInfo", getDocInfo)+ engine.POST("/api/filetree/getDoc", getDoc)engine.POST("/api/block/getTreeStat", getTreeStat)engine.POST("/api/block/getBlockBreadcrumb", getBlockBreadcrumb)engine.POST("/api/block/getBlockBreadcrumbChildren", getBlockBreadcrumbChildren)@@ -258,6 +263,8 @@ func testNotebookResponseLease(t *testing.T, explicitNotebook, batch bool) {args["scope"] = "notebook"case "TestContractDocInfoNotebookResponseLease":endpoint, typedQuery = "/api/block/getDocInfo", true+ case "TestContractGetDocNotebookResponseLease":+ endpoint, typedQuery = "/api/filetree/getDoc", truecase "TestContractTreeStatNotebookResponseLease":endpoint, typedQuery = "/api/block/getTreeStat", trueargs["includeEmbed"] = true@@ -300,7 +307,7 @@ func testNotebookResponseLease(t *testing.T, explicitNotebook, batch bool) {case <-time.After(5 * time.Second):t.Fatal("response never reached writer")}- if !typedQuery && strings.Count(string(body), "REVIEW-SECRET-CONTENT") != count {+ if (!typedQuery || t.Name() == "TestContractGetDocNotebookResponseLease") && strings.Count(string(body), "REVIEW-SECRET-CONTENT") != count {releaseWriter.Do(func() { close(writer.proceed) })<-responseDonet.Fatalf("fixture did not produce plaintext: %s", body)diff --git a/kernel/api/contract_filetree_test.go b/kernel/api/contract_filetree_test.gonew file mode 100644index 0000000000..1b854ad731--- /dev/null+++ b/kernel/api/contract_filetree_test.go@@ -0,0 +1,205 @@+package api++import (+ "encoding/json"+ "net/http/httptest"+ "os"+ "path/filepath"+ "reflect"+ "strings"+ "testing"++ "github.com/gin-gonic/gin"+ "github.com/siyuan-note/siyuan/kernel/apicontract"+ "github.com/siyuan-note/siyuan/kernel/conf"+ "github.com/siyuan-note/siyuan/kernel/model"+ "github.com/siyuan-note/siyuan/kernel/util"+)++func TestAPIContractFileTreePayloadConversions(t *testing.T) {+ compare := func(before, after []byte) {+ t.Helper()+ var left, right interface{}+ if err := json.Unmarshal(before, &left); err != nil {+ t.Fatal(err)+ }+ if err := json.Unmarshal(after, &right); err != nil {+ t.Fatal(err)+ }+ if !reflect.DeepEqual(left, right) {+ t.Fatalf("payload changed: %s != %s", before, after)+ }+ }+ for _, result := range []*model.ReorderResult{nil, {}, {Changed: true, Notebook: "box", ParentPath: "/"}} {+ compare(syncMarshal(t, result), syncMarshal(t, fileTreeReorderContract(result)))+ }+ for _, result := range []*model.DocTreeReorderResult{nil, {}, {Changed: true, Conflict: true, Notebook: "box", ParentPath: "/"}} {+ compare(syncMarshal(t, result), syncMarshal(t, fileTreeRespectSortContract(result)))+ }+ for _, files := range [][]*model.File{nil, {}, {nil, {Path: "/doc.sy", ID: "doc", Size: 1 << 63, TitleEmpty: true}}} {+ compare(syncMarshal(t, files), syncMarshal(t, fileTreeFileContracts(files)))+ }+ for _, values := range [][]map[string]string{nil, {}, {{"path": "/", "hPath": "Box/", "box": "box", "boxIcon": ""}}, {{"path": "/doc.sy", "hPath": "Box/Doc", "box": "box", "boxIcon": "", "name": "", "alias": "alias", "newFlashcardCount": "0", "dueFlashcardCount": "1", "flashcardCount": "2"}}} {+ compare(syncMarshal(t, values), syncMarshal(t, fileTreeSearchContracts(values)))+ }+ for _, values := range [][]*DocFile{nil, {}, {nil, {ID: "parent", Children: []*DocFile{{ID: "child"}}}}} {+ compare(syncMarshal(t, values), syncMarshal(t, fileTreeDocFileContracts(values)))+ }+ for _, values := range []model.PublishAccess{nil, {}, {nil, {ID: "id", Visible: true, Password: "secret", Disable: false}}} {+ compare(syncMarshal(t, values), syncMarshal(t, fileTreePublishContracts(values)))+ }+}++func TestAPIContractFileTreeCallbackOmission(t *testing.T) {+ for _, body := range []string{`{"fromPaths":[],"toPath":"/","toNotebook":"box"}`, `{"fromPaths":[],"toPath":"/","toNotebook":"box","callback":null}`} {+ request, err := apicontract.MoveDocs.Decode(strings.NewReader(body))+ if err != nil {+ t.Fatal(err)+ }+ if fileTreeCallback(request.Callback) != nil {+ t.Fatal("absent or null callback became a nonnil event value")+ }+ }+ request, err := apicontract.MoveDocs.Decode(strings.NewReader(`{"fromPaths":[],"toPath":"/","toNotebook":"box","callback":{"id":7}}`))+ if err != nil {+ t.Fatal(err)+ }+ if got := string(syncMarshal(t, fileTreeCallback(request.Callback))); got != `{"id":7}` {+ t.Fatalf("callback changed: %s", got)+ }+}++func TestAPIContractFileTreeNoopsAndSortErrors(t *testing.T) {+ engine := gin.New()+ for path, handler := range map[string]gin.HandlerFunc{+ "getFullHPathByID": getFullHPathByID, "getIDsByHPath": getIDsByHPath, "renameDocByID": renameDocByID,+ "setSort": setSort, "setDocSortMode": setDocSortMode, "reorderDocs": reorderDocs,+ "getPathByID": getPathByID, "removeDocByID": removeDocByID,+ } {+ engine.POST("/api/filetree/"+path, handler)+ }+ for _, entry := range []struct {+ name, body string+ code int+ }{+ {"getFullHPathByID", `{}`, 0}, {"getFullHPathByID", `{"id":null}`, 0},+ {"getIDsByHPath", `{"notebook":false}`, 0}, {"getIDsByHPath", `{"path":null,"notebook":false}`, 0},+ {"renameDocByID", `{"title":false}`, 0}, {"setSort", `{}`, -1},+ {"setDocSortMode", `{"id":"20260913000000-abcdefg"}`, -1},+ {"setDocSortMode", `{"id":"20260913000000-abcdefg","sortMode":1.0}`, -1},+ {"reorderDocs", `{"sourceIDs":[]}`, -1},+ {"getPathByID", `{"id":null}`, -1}, {"removeDocByID", `{"id":" "}`, -1},+ } {+ path := "/api/filetree/" + entry.name+ recorder := httptest.NewRecorder()+ engine.ServeHTTP(recorder, httptest.NewRequest("POST", path, strings.NewReader(entry.body)))+ requireAPIContract(t, "POST", path, recorder)+ var response struct {+ Code int `json:"code"`+ Data json.RawMessage `json:"data"`+ }+ if err := json.Unmarshal(recorder.Body.Bytes(), &response); err != nil || response.Code != entry.code || string(response.Data) != "null" {+ t.Fatalf("%s: %s (%v)", path, recorder.Body.String(), err)+ }+ }+}++func TestAPIContractFileTreeEncryptedAdmission(t *testing.T) {+ const boxID = "20260913000000-encrypt"+ previousConf, previousData, previousWorkspace := model.Conf, util.DataDir, util.WorkspaceDir+ util.WorkspaceDir = t.TempDir()+ util.DataDir = filepath.Join(util.WorkspaceDir, "data")+ model.Conf = model.NewAppConf()+ model.Conf.FileTree = conf.NewFileTree()+ model.Conf.NotebookCrypto = conf.NewNotebookCrypto()+ t.Cleanup(func() { model.Conf, util.DataDir, util.WorkspaceDir = previousConf, previousData, previousWorkspace })+ boxConf := conf.NewBoxConf()+ boxConf.Encrypted = true+ if err := (&model.Box{ID: boxID}).SaveConf(boxConf); err != nil {+ t.Fatal(err)+ }+ for _, role := range []model.Role{model.RoleReader, model.RoleAdministrator} {+ engine := gin.New()+ engine.Use(boxLeaseMiddleware)+ engine.Use(func(c *gin.Context) { c.Set(model.RoleContextKey, role) })+ engine.POST("/api/filetree/getDoc", getDoc)+ engine.POST("/api/filetree/listDocsByPath", listDocsByPath)+ engine.POST("/api/filetree/listDocTree", listDocTree)+ for _, entry := range []struct {+ path, body string+ code int+ }{+ {"getDoc", `{"id":"20260913000001-encrypt","notebook":"` + boxID + `","index":false}`, 1},+ {"listDocTree", `{"notebook":"` + boxID + `","path":false}`, -1},+ {"listDocsByPath", `{"notebook":"` + boxID + `","path":"/","sort":false}`, -1},+ } {+ path := "/api/filetree/" + entry.path+ recorder := httptest.NewRecorder()+ engine.ServeHTTP(recorder, httptest.NewRequest("POST", path, strings.NewReader(entry.body)))+ requireAPIContract(t, "POST", path, recorder)+ expected := entry.code+ if role == model.RoleReader && entry.path == "getDoc" {+ expected = 3+ }+ if role == model.RoleReader && entry.path == "listDocsByPath" {+ expected = 0+ }+ var response struct {+ Code int `json:"code"`+ Msg string `json:"msg"`+ }+ if err := json.Unmarshal(recorder.Body.Bytes(), &response); err != nil || response.Code != expected {+ t.Fatalf("admission changed: %s (%v)", recorder.Body.String(), err)+ }+ if entry.path == "listDocTree" && response.Msg != model.Conf.Language(314) {+ t.Fatalf("directory lease must precede path decoding: %s", recorder.Body.String())+ }+ }+ }+}++func TestAPIContractFileTreeDirectoryContents(t *testing.T) {+ previousConf, previousWorkspace, previousData := model.Conf, util.WorkspaceDir, util.DataDir+ util.WorkspaceDir = t.TempDir()+ util.DataDir = filepath.Join(util.WorkspaceDir, "data")+ model.Conf = model.NewAppConf()+ t.Cleanup(func() { model.Conf, util.WorkspaceDir, util.DataDir = previousConf, previousWorkspace, previousData })+ const boxID = "20260913000000-dirtest"+ boxConf := conf.NewBoxConf()+ if err := (&model.Box{ID: boxID}).SaveConf(boxConf); err != nil {+ t.Fatal(err)+ }+ directoryRoot := filepath.Join(util.DataDir, boxID, "folder")+ if err := os.MkdirAll(directoryRoot, 0755); err != nil {+ t.Fatal(err)+ }+ engine := gin.New()+ engine.POST("/api/filetree/listDocTree", listDocTree)+ for _, nested := range []bool{false, true} {+ if nested {+ directory := filepath.Join(directoryRoot, "20260913000001-parentx")+ if err := os.MkdirAll(directory, 0755); err != nil {+ t.Fatal(err)+ }+ if err := os.WriteFile(filepath.Join(directory, "20260913000002-childxx.sy"), nil, 0644); err != nil {+ t.Fatal(err)+ }+ }+ recorder := httptest.NewRecorder()+ engine.ServeHTTP(recorder, httptest.NewRequest("POST", "/api/filetree/listDocTree", strings.NewReader(`{"notebook":"`+boxID+`","path":"/folder"}`)))+ requireAPIContract(t, "POST", "/api/filetree/listDocTree", recorder)+ var response struct {+ Code int `json:"code"`+ Data apicontract.FileTreeDocTreeData `json:"data"`+ }+ if err := json.Unmarshal(recorder.Body.Bytes(), &response); err != nil || response.Code != 0 {+ t.Fatalf("directory response changed: %s %v", recorder.Body.String(), err)+ }+ if !nested && response.Data.Tree != nil {+ t.Fatal("empty directory no longer returns null tree")+ }+ if nested && (len(response.Data.Tree) != 1 || len(response.Data.Tree[0].Children) != 1) {+ t.Fatalf("directory hierarchy changed: %s", recorder.Body.String())+ }+ }+}diff --git a/kernel/api/filetree.go b/kernel/api/filetree.goindex 14bb7815c5..5e3c366077 100644--- a/kernel/api/filetree.go+++ b/kernel/api/filetree.go@@ -17,8 +17,6 @@package apiimport (- "bytes"- "encoding/json""errors""fmt""math"@@ -34,80 +32,76 @@ import ("github.com/88250/gulu""github.com/88250/lute/ast""github.com/gin-gonic/gin"+ "github.com/siyuan-note/siyuan/kernel/apicontract""github.com/siyuan-note/siyuan/kernel/filesys""github.com/siyuan-note/siyuan/kernel/model""github.com/siyuan-note/siyuan/kernel/treenode""github.com/siyuan-note/siyuan/kernel/util")-func moveLocalShorthands(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+var moveLocalShorthands = contractHandler(apicontract.MoveLocalShorthands, moveLocalShorthandsContract)- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }+func moveLocalShorthandsContract(c *gin.Context, request apicontract.FileTreeNotebookRequest) apicontract.Response[[]string] {+ ret := gulu.Ret.NewResult()- notebook := arg["notebook"].(string)+ notebook := request.Notebookif util.InvalidIDPattern(notebook, ret) {- return+ return contractFailure[[]string](ret)}ids, err := model.MoveLocalShorthands(notebook)if err != nil {ret.Code = -1ret.Msg = err.Error()- return+ return contractFailure[[]string](ret)}- ret.Data = ids+ return apicontract.Success(ids)}-func listDocTree(c *gin.Context) {+var listDocTree = contractHandler(apicontract.ListDocTree, listDocTreeContract)++func listDocTreeContract(c *gin.Context, request apicontract.FileTreePathRequest) apicontract.Response[apicontract.FileTreeDocTreeData] {// Add kernel API `/api/filetree/listDocTree` https://github.com/siyuan-note/siyuan/issues/10482ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }-- notebook := arg["notebook"].(string)+ notebook := request.Notebookif util.InvalidIDPattern(notebook, ret) {- return+ return contractFailure[apicontract.FileTreeDocTreeData](ret)}// 加密笔记本锁定时拒绝直接列举磁盘目录,防止泄漏文档 ID、层级和数量if err := holdEncryptedBoxRequest(c, notebook); err != nil {ret.Code = -1ret.Msg = model.Conf.Language(314)- return+ return contractFailure[apicontract.FileTreeDocTreeData](ret)}- p := arg["path"].(string)+ if err := request.PathError(); err != nil {+ return apicontract.Failure[apicontract.FileTreeDocTreeData](-1, err.Error())+ }+ p := request.Pathp = strings.TrimSuffix(p, ".sy")// 越界校验:拒绝 ..,确保路径位于 <data>/<notebook>/ 内。// 无需 filepath.IsAbs —— notebook 路径全为 notebook 内相对路径,且跨 OS 对 "/" 判定不一致。if found := strings.Contains(p, ".."); found {ret.Code = -1ret.Msg = "path must not contain '..'"- return+ return contractFailure[apicontract.FileTreeDocTreeData](ret)}var doctree []*DocFileroot := filepath.Join(util.WorkspaceDir, "data", notebook, p)if !gulu.File.IsSubPath(filepath.Join(util.WorkspaceDir, "data", notebook), root) {ret.Code = -1ret.Msg = "path escapes notebook directory"- return+ return contractFailure[apicontract.FileTreeDocTreeData](ret)}dir, err := os.ReadDir(root)if err != nil {ret.Code = -1ret.Msg = err.Error()- return+ return contractFailure[apicontract.FileTreeDocTreeData](ret)}ids := map[string]bool{}@@ -129,7 +123,7 @@ func listDocTree(c *gin.Context) {if err = walkDocTree(subPath, parent, ids); err != nil {ret.Code = -1ret.Msg = err.Error()- return+ return contractFailure[apicontract.FileTreeDocTreeData](ret)}} else {id := strings.TrimSuffix(entry.Name(), ".sy")@@ -145,9 +139,7 @@ func listDocTree(c *gin.Context) {}}- ret.Data = map[string]any{- "tree": doctree,- }+ return apicontract.Success(apicontract.FileTreeDocTreeData{Tree: fileTreeDocFileContracts(doctree)})}type DocFile struct {@@ -190,103 +182,79 @@ func walkDocTree(p string, docFile *DocFile, ids map[string]bool) (err error) {return}-func upsertIndexes(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+var upsertIndexes = contractHandler(apicontract.UpsertIndexes, upsertIndexesContract)- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }+func upsertIndexesContract(c *gin.Context, request apicontract.FileTreePathsRequest) apicontract.Response[apicontract.Null] {+ ret := gulu.Ret.NewResult()- pathsArg := arg["paths"].([]any)+ pathsArg := request.Pathsvar paths []stringfor _, p := range pathsArg {- paths = append(paths, p.(string))+ paths = append(paths, p)}model.UpsertIndexes(paths)+ return contractFailure[apicontract.Null](ret)}-func removeIndexes(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+var removeIndexes = contractHandler(apicontract.RemoveIndexes, removeIndexesContract)- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }+func removeIndexesContract(c *gin.Context, request apicontract.FileTreePathsRequest) apicontract.Response[apicontract.Null] {+ ret := gulu.Ret.NewResult()- pathsArg := arg["paths"].([]any)+ pathsArg := request.Pathsvar paths []stringfor _, p := range pathsArg {- paths = append(paths, p.(string))+ paths = append(paths, p)}model.RemoveIndexes(paths)+ return contractFailure[apicontract.Null](ret)}-func doc2Heading(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+var doc2Heading = contractHandler(apicontract.Doc2Heading, doc2HeadingContract)- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }+func doc2HeadingContract(c *gin.Context, request apicontract.FileTreeDocHeadingRequest) apicontract.Response[apicontract.FileTreeDocHeadingData] {+ ret := gulu.Ret.NewResult()- srcID := arg["srcID"].(string)- targetID := arg["targetID"].(string)- after := arg["after"].(bool)+ srcID := request.SrcID+ targetID := request.TargetID+ after := request.AftersrcTreeBox, srcTreePath, err := model.Doc2Heading(srcID, targetID, after)if err != nil {ret.Code = -1ret.Msg = err.Error()ret.Data = map[string]any{"closeTimeout": 5000}- return+ return contractFailure[apicontract.FileTreeDocHeadingData](ret)}- ret.Data = map[string]any{- "srcTreeBox": srcTreeBox,- "srcTreePath": srcTreePath,- }+ return apicontract.Success(apicontract.FileTreeDocHeadingData{SrcTreeBox: srcTreeBox, SrcTreePath: srcTreePath})}-func heading2Doc(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+var heading2Doc = contractHandler(apicontract.Heading2Doc, heading2DocContract)- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }+func heading2DocContract(c *gin.Context, request apicontract.FileTreeHeadingDocRequest) apicontract.Response[apicontract.Null] {+ ret := gulu.Ret.NewResult()- srcHeadingID := arg["srcHeadingID"].(string)- targetNotebook := arg["targetNoteBook"].(string)+ srcHeadingID := request.SrcHeadingID+ targetNotebook := request.TargetNotebook// 禁止跨加密笔记本移动块:加密笔记本是孤岛if bt := treenode.GetBlockTree(srcHeadingID); bt != nil && model.IsEncryptedBox(bt.BoxID) && bt.BoxID != targetNotebook {ret.Code = -1ret.Msg = model.Conf.Language(391)ret.Data = map[string]any{"closeTimeout": 5000}- return- }- var targetPath string- if arg["targetPath"] != nil {- targetPath = arg["targetPath"].(string)- }- var previousPath string- if arg["previousPath"] != nil {- previousPath = arg["previousPath"].(string)+ return contractFailure[apicontract.Null](ret)}- var toTop bool- if arg["toTop"] != nil {- toTop = arg["toTop"].(bool)+ options, err := request.Options()+ if err != nil {+ return apicontract.Failure[apicontract.Null](-1, err.Error())}+ targetPath, previousPath, toTop := options.TargetPath, options.PreviousPath, options.ToTopsrcRootBlockID, targetPath, err := model.Heading2Doc(srcHeadingID, targetNotebook, targetPath, previousPath, toTop)if err != nil {ret.Code = -1ret.Msg = err.Error()ret.Data = map[string]any{"closeTimeout": 5000}- return+ return contractFailure[apicontract.Null](ret)}model.FlushTxQueue()@@ -299,46 +267,36 @@ func heading2Doc(c *gin.Context) {"srcRootBlockID": srcRootBlockID,}util.PushEvent(evt)+ return contractFailure[apicontract.Null](ret)}-func li2Doc(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+var li2Doc = contractHandler(apicontract.Li2Doc, li2DocContract)- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }+func li2DocContract(c *gin.Context, request apicontract.FileTreeListItemDocRequest) apicontract.Response[apicontract.Null] {+ ret := gulu.Ret.NewResult()- srcListItemID := arg["srcListItemID"].(string)- targetNotebook := arg["targetNoteBook"].(string)+ srcListItemID := request.SrcListItemID+ targetNotebook := request.TargetNotebook// 禁止跨加密笔记本移动块:加密笔记本是孤岛if bt := treenode.GetBlockTree(srcListItemID); bt != nil && model.IsEncryptedBox(bt.BoxID) && bt.BoxID != targetNotebook {ret.Code = -1ret.Msg = model.Conf.Language(391)ret.Data = map[string]any{"closeTimeout": 5000}- return+ return contractFailure[apicontract.Null](ret)}- var targetPath string- if arg["targetPath"] != nil {- targetPath = arg["targetPath"].(string)- }- var previousPath string- if arg["previousPath"] != nil {- previousPath = arg["previousPath"].(string)- }- var toTop bool- if arg["toTop"] != nil {- toTop = arg["toTop"].(bool)+ options, err := request.Options()+ if err != nil {+ return apicontract.Failure[apicontract.Null](-1, err.Error())}+ targetPath, previousPath, toTop := options.TargetPath, options.PreviousPath, options.ToTopsrcRootBlockID, targetPath, err := model.ListItem2Doc(srcListItemID, targetNotebook, targetPath, previousPath, toTop)if err != nil {ret.Code = -1ret.Msg = err.Error()ret.Data = map[string]any{"closeTimeout": 5000}- return+ return contractFailure[apicontract.Null](ret)}model.FlushTxQueue()@@ -351,29 +309,26 @@ func li2Doc(c *gin.Context) {"srcRootBlockID": srcRootBlockID,}util.PushEvent(evt)+ return contractFailure[apicontract.Null](ret)}-func getHPathByPath(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+var getHPathByPath = contractHandler(apicontract.GetHPathByPath, getHPathByPathContract)- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }+func getHPathByPathContract(c *gin.Context, request apicontract.FileTreePathRequest) apicontract.Response[string] {+ ret := gulu.Ret.NewResult()- notebook := arg["notebook"].(string)+ notebook := request.Notebookif util.InvalidIDPattern(notebook, ret) {- return+ return contractFailure[string](ret)}- p := arg["path"].(string)+ p := request.PathhPath, err := model.GetHPathByPath(notebook, p)if err != nil {ret.Code = -1ret.Msg = err.Error()- return+ return contractFailure[string](ret)}if p != "/" && model.IsReadOnlyRoleContext(c) {publishAccess := model.GetPublishAccess()@@ -381,166 +336,142 @@ func getHPathByPath(c *gin.Context) {if !model.CheckBlockIdMetadataAccessableByPublishAccessInBox(c, publishAccess, id, notebook) {ret.Code = -1ret.Msg = model.ErrBlockNotFound.Error()- return+ return contractFailure[string](ret)}}- ret.Data = hPath+ return apicontract.Success(hPath)}-func getHPathsByPaths(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+var getHPathsByPaths = contractHandler(apicontract.GetHPathsByPaths, getHPathsByPathsContract)- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }+func getHPathsByPathsContract(c *gin.Context, request apicontract.FileTreePathsRequest) apicontract.Response[[]string] {+ ret := gulu.Ret.NewResult()- pathsArg := arg["paths"].([]any)+ pathsArg := request.Pathsvar paths []stringfor _, p := range pathsArg {- paths = append(paths, p.(string))+ paths = append(paths, p)}paths = filterFileTreePathsByPublishMetadataAccess(c, paths)hPath, err := model.GetHPathsByPaths(paths)if err != nil {ret.Code = -1ret.Msg = err.Error()- return+ return contractFailure[[]string](ret)}- ret.Data = hPath+ return apicontract.Success(hPath)}-func getHPathByID(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+var getHPathByID = contractHandler(apicontract.GetHPathByID, getHPathByIDContract)- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }+func getHPathByIDContract(c *gin.Context, request apicontract.FileTreeIDRequest) apicontract.Response[string] {+ ret := gulu.Ret.NewResult()- id := arg["id"].(string)+ id := request.IDif util.InvalidIDPattern(id, ret) {- return+ return contractFailure[string](ret)}hPath, err := model.GetHPathByID(id)if err != nil {ret.Code = -1ret.Msg = err.Error()- return+ return contractFailure[string](ret)}if model.IsReadOnlyRoleContext(c) {publishAccess := model.GetPublishAccess()if !model.CheckBlockIdMetadataAccessableByPublishAccess(c, publishAccess, id) {ret.Code = -1ret.Msg = model.ErrTreeNotFound.Error()- return+ return contractFailure[string](ret)}}- ret.Data = hPath+ return apicontract.Success(hPath)}-func getPathByID(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+var getPathByID = contractHandler(apicontract.GetPathByID, getPathByIDContract)- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }+func getPathByIDContract(c *gin.Context, request apicontract.FileTreeTrimIDRequest) apicontract.Response[apicontract.FileTreeDocPathData] {+ ret := gulu.Ret.NewResult()- var id string- if !util.ParseJsonArgs(arg, ret, util.BindJsonArg("id", &id, true, true)) {- return- }+ id := request.IDif util.InvalidIDPattern(id, ret) {- return+ return contractFailure[apicontract.FileTreeDocPathData](ret)}p, notebook, err := model.GetPathByID(id)if err != nil {ret.Code = -1ret.Msg = err.Error()- return+ return contractFailure[apicontract.FileTreeDocPathData](ret)}if model.IsReadOnlyRoleContext(c) {publishAccess := model.GetPublishAccess()if !model.CheckBlockIdMetadataAccessableByPublishAccessInBox(c, publishAccess, id, notebook) {ret.Code = -1ret.Msg = model.ErrTreeNotFound.Error()- return+ return contractFailure[apicontract.FileTreeDocPathData](ret)}}- ret.Data = map[string]any{- "path": p,- "notebook": notebook,- }+ return apicontract.Success(apicontract.FileTreeDocPathData{Path: p, Notebook: notebook})}-func getFullHPathByID(c *gin.Context) {+var getFullHPathByID = contractHandler(apicontract.GetFullHPathByID, getFullHPathByIDContract)++func getFullHPathByIDContract(c *gin.Context, request apicontract.FileTreeOptionalIDRequest) apicontract.Response[*string] {ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }- if nil == arg["id"] {- return+ if request.ID == nil {+ return contractFailure[*string](ret)}- id := arg["id"].(string)+ id := *request.IDif util.InvalidIDPattern(id, ret) {- return+ return contractFailure[*string](ret)}hPath, err := model.GetFullHPathByID(id)if err != nil {ret.Code = -1ret.Msg = err.Error()- return+ return contractFailure[*string](ret)}if model.IsReadOnlyRoleContext(c) {publishAccess := model.GetPublishAccess()if !model.CheckBlockIdMetadataAccessableByPublishAccess(c, publishAccess, id) {ret.Code = -1ret.Msg = model.ErrTreeNotFound.Error()- return+ return contractFailure[*string](ret)}}- ret.Data = hPath+ return apicontract.Success(&hPath)}-func getIDsByHPath(c *gin.Context) {+var getIDsByHPath = contractHandler(apicontract.GetIDsByHPath, getIDsByHPathContract)++func getIDsByHPathContract(c *gin.Context, request apicontract.FileTreeOptionalPathRequest) apicontract.Response[[]string] {ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)- arg, ok := util.JsonArg(c, ret)- if !ok {- return+ if request.Path == nil {+ return contractFailure[[]string](ret)}- if nil == arg["path"] {- return- }- if nil == arg["notebook"] {- return+ if request.Notebook == nil {+ return contractFailure[[]string](ret)}- notebook := arg["notebook"].(string)+ notebook := *request.Notebookif util.InvalidIDPattern(notebook, ret) {- return+ return contractFailure[[]string](ret)}- p := arg["path"].(string)+ p := *request.Pathids, err := model.GetIDsByHPath(p, notebook)if err != nil {ret.Code = -1ret.Msg = err.Error()- return+ return contractFailure[[]string](ret)}ids = filterFileTreeBlockIDsByPublishDiscoverability(c, ids, notebook)- ret.Data = ids+ return apicontract.Success(ids)}func filterFileTreePathsByPublishMetadataAccess(c *gin.Context, paths []string) (ret []string) {@@ -579,56 +510,49 @@ func filterFileTreeBlockIDsByPublishDiscoverability(c *gin.Context, ids []stringreturn}-func moveDocs(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+var moveDocs = contractHandler(apicontract.MoveDocs, moveDocsContract)- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }+func moveDocsContract(c *gin.Context, request apicontract.FileTreeMoveRequest) apicontract.Response[apicontract.Null] {+ ret := gulu.Ret.NewResult()var fromPaths []string- fromPathsArg := arg["fromPaths"].([]any)+ fromPathsArg := request.FromPathsfor _, fromPath := range fromPathsArg {- fromPaths = append(fromPaths, fromPath.(string))+ fromPaths = append(fromPaths, fromPath)}- toPath := arg["toPath"].(string)- toNotebook := arg["toNotebook"].(string)+ toPath := request.ToPath+ toNotebook := request.ToNotebookif util.InvalidIDPattern(toNotebook, ret) {- return+ return contractFailure[apicontract.Null](ret)}- callback := arg["callback"]+ callback := fileTreeCallback(request.Callback)err := model.MoveDocs(fromPaths, toNotebook, toPath, callback)if err != nil {ret.Code = -1ret.Msg = err.Error()ret.Data = map[string]any{"closeTimeout": 7000}- return+ return contractFailure[apicontract.Null](ret)}+ return contractFailure[apicontract.Null](ret)}-func moveDocsByID(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+var moveDocsByID = contractHandler(apicontract.MoveDocsByID, moveDocsByIDContract)- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }+func moveDocsByIDContract(c *gin.Context, request apicontract.FileTreeMoveIDsRequest) apicontract.Response[apicontract.Null] {+ ret := gulu.Ret.NewResult()- fromIDsArg := arg["fromIDs"].([]any)+ fromIDsArg := request.FromIDsvar fromIDs []stringfor _, fromIDArg := range fromIDsArg {- fromID := fromIDArg.(string)+ fromID := fromIDArgif util.InvalidIDPattern(fromID, ret) {- return+ return contractFailure[apicontract.Null](ret)}fromIDs = append(fromIDs, fromID)}- toID := arg["toID"].(string)+ toID := request.ToIDif util.InvalidIDPattern(toID, ret) {- return+ return contractFailure[apicontract.Null](ret)}var fromPaths []string@@ -638,7 +562,7 @@ func moveDocsByID(c *gin.Context) {ret.Code = -1ret.Msg = err.Error()ret.Data = map[string]any{"closeTimeout": 7000}- return+ return contractFailure[apicontract.Null](ret)}fromPaths = append(fromPaths, tree.Path)}@@ -652,7 +576,7 @@ func moveDocsByID(c *gin.Context) {ret.Code = -1ret.Msg = "can't found box or tree by id [" + toID + "]"ret.Data = map[string]any{"closeTimeout": 7000}- return+ return contractFailure[apicontract.Null](ret)}}@@ -664,52 +588,43 @@ func moveDocsByID(c *gin.Context) {toNotebook = box.IDtoPath = "/"}- callback := arg["callback"]+ callback := fileTreeCallback(request.Callback)err = model.MoveDocs(fromPaths, toNotebook, toPath, callback)if err != nil {ret.Code = -1ret.Msg = err.Error()ret.Data = map[string]any{"closeTimeout": 7000}- return+ return contractFailure[apicontract.Null](ret)}+ return contractFailure[apicontract.Null](ret)}-func removeDoc(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+var removeDoc = contractHandler(apicontract.RemoveDoc, removeDocContract)- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }+func removeDocContract(c *gin.Context, request apicontract.FileTreePathRequest) apicontract.Response[apicontract.Null] {+ ret := gulu.Ret.NewResult()- notebook := arg["notebook"].(string)+ notebook := request.Notebookif util.InvalidIDPattern(notebook, ret) {- return+ return contractFailure[apicontract.Null](ret)}- p := arg["path"].(string)+ p := request.Pathif err := model.RemoveDoc(notebook, p); err != nil {ret.Code = -1ret.Msg = err.Error()}+ return contractFailure[apicontract.Null](ret)}-func removeDocByID(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+var removeDocByID = contractHandler(apicontract.RemoveDocByID, removeDocByIDContract)- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }+func removeDocByIDContract(c *gin.Context, request apicontract.FileTreeTrimIDRequest) apicontract.Response[apicontract.Null] {+ ret := gulu.Ret.NewResult()- var id string- if !util.ParseJsonArgs(arg, ret, util.BindJsonArg("id", &id, true, true)) {- return- }+ id := request.IDif util.InvalidIDPattern(id, ret) {- return+ return contractFailure[apicontract.Null](ret)}p, notebook, err := model.GetPathByID(id)@@ -717,169 +632,138 @@ func removeDocByID(c *gin.Context) {ret.Code = -1ret.Msg = err.Error()ret.Data = map[string]any{"closeTimeout": 7000}- return+ return contractFailure[apicontract.Null](ret)}if err = model.RemoveDoc(notebook, p); err != nil {ret.Code = -1ret.Msg = err.Error()}+ return contractFailure[apicontract.Null](ret)}-func removeDocs(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+var removeDocs = contractHandler(apicontract.RemoveDocs, removeDocsContract)- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }+func removeDocsContract(c *gin.Context, request apicontract.FileTreePathsRequest) apicontract.Response[apicontract.Null] {+ ret := gulu.Ret.NewResult()- pathsArg := arg["paths"].([]any)+ pathsArg := request.Pathsvar paths []stringfor _, path := range pathsArg {- paths = append(paths, path.(string))+ paths = append(paths, path)}if err := model.RemoveDocs(paths); err != nil {ret.Code = -1ret.Msg = err.Error()}+ return contractFailure[apicontract.Null](ret)}-func renameDoc(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+var renameDoc = contractHandler(apicontract.RenameDoc, renameDocContract)- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }+func renameDocContract(c *gin.Context, request apicontract.FileTreeRenameRequest) apicontract.Response[apicontract.Null] {+ ret := gulu.Ret.NewResult()- notebook := arg["notebook"].(string)+ notebook := request.Notebookif util.InvalidIDPattern(notebook, ret) {- return+ return contractFailure[apicontract.Null](ret)}- p := arg["path"].(string)- title := arg["title"].(string)+ p := request.Path+ title := request.Titleerr := model.RenameDoc(notebook, p, title)if err != nil {ret.Code = -1ret.Msg = err.Error()- return+ return contractFailure[apicontract.Null](ret)}- return+ return contractFailure[apicontract.Null](ret)}-func renameDocByID(c *gin.Context) {+var renameDocByID = contractHandler(apicontract.RenameDocByID, renameDocByIDContract)++func renameDocByIDContract(c *gin.Context, request apicontract.FileTreeRenameIDRequest) apicontract.Response[apicontract.Null] {ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }- if nil == arg["id"] {- return+ if request.ID == nil {+ return contractFailure[apicontract.Null](ret)}- id := arg["id"].(string)+ id := *request.IDif util.InvalidIDPattern(id, ret) {- return+ return contractFailure[apicontract.Null](ret)}- title := arg["title"].(string)+ title, decodeErr := request.DocTitle()+ if decodeErr != nil {+ return apicontract.Failure[apicontract.Null](-1, decodeErr.Error())+ }tree, err := model.LoadTreeByBlockID(id)if err != nil {ret.Code = -1ret.Msg = err.Error()ret.Data = map[string]any{"closeTimeout": 7000}- return+ return contractFailure[apicontract.Null](ret)}err = model.RenameDoc(tree.Box, tree.Path, title)if err != nil {ret.Code = -1ret.Msg = err.Error()- return+ return contractFailure[apicontract.Null](ret)}+ return contractFailure[apicontract.Null](ret)}-func duplicateDoc(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+var duplicateDoc = contractHandler(apicontract.DuplicateDoc, duplicateDocContract)- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }+func duplicateDocContract(c *gin.Context, request apicontract.FileTreeIDRequest) apicontract.Response[apicontract.FileTreeDuplicateData] {+ ret := gulu.Ret.NewResult()- id := arg["id"].(string)+ id := request.IDtree, err := model.LoadTreeByBlockID(id)if err != nil {ret.Code = -1ret.Msg = err.Error()ret.Data = map[string]any{"closeTimeout": 7000}- return+ return contractFailure[apicontract.FileTreeDuplicateData](ret)}notebook := tree.Boxmodel.DuplicateDoc(tree)- ret.Data = map[string]any{- "id": tree.Root.ID,- "notebook": notebook,- "path": tree.Path,- "hPath": tree.HPath,- }+ return apicontract.Success(apicontract.FileTreeDuplicateData{ID: tree.Root.ID, Notebook: notebook, Path: tree.Path, HPath: tree.HPath})}-func createDoc(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }+var createDoc = contractHandler(apicontract.CreateDoc, createDocContract)- notebook := arg["notebook"].(string)- p := arg["path"].(string)- title := arg["title"].(string)- md := arg["md"].(string)- sortsArg := arg["sorts"]- var sorts []string- if nil != sortsArg {- for _, sort := range sortsArg.([]any) {- sorts = append(sorts, sort.(string))- }- }+func createDocContract(c *gin.Context, request apicontract.FileTreeCreateRequest) apicontract.Response[apicontract.FileTreeCreateData] {+ ret := gulu.Ret.NewResult()- tree, err := model.CreateDocByMd(notebook, p, title, md, sorts, arg)+ notebook := request.Notebook+ p := request.Path+ title := request.Title+ md := request.MD+ sorts := append([]string(nil), request.Sorts...)+ tree, err := model.CreateDocByMd(notebook, p, title, md, sorts, fileTreeCreateContext(request.FileTreeCreateOptions))if err != nil {ret.Code = -1ret.Msg = err.Error()ret.Data = map[string]any{"closeTimeout": 7000}- return+ return contractFailure[apicontract.FileTreeCreateData](ret)}- ret.Data = map[string]any{- "id": tree.Root.ID,- }+ return apicontract.Success(apicontract.FileTreeCreateData{ID: tree.Root.ID})}-func createDailyNote(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+var createDailyNote = contractHandler(apicontract.CreateDailyNote, createDailyNoteContract)- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }+func createDailyNoteContract(c *gin.Context, request apicontract.FileTreeDailyNoteRequest) apicontract.Response[apicontract.FileTreeCreateData] {+ ret := gulu.Ret.NewResult()- notebook := arg["notebook"].(string)+ notebook := request.Notebookp, existed, err := model.CreateDailyNote(notebook)if err != nil {if errors.Is(err, model.ErrBoxNotFound) {@@ -888,7 +772,7 @@ func createDailyNote(c *gin.Context) {ret.Code = -1}ret.Msg = err.Error()- return+ return contractFailure[apicontract.FileTreeCreateData](ret)}model.FlushTxQueue()@@ -898,16 +782,15 @@ func createDailyNote(c *gin.Context) {if err != nil {ret.Code = -1ret.Msg = err.Error()- return+ return contractFailure[apicontract.FileTreeCreateData](ret)}if !existed {// 只有创建的情况才推送,已经存在的情况不推送// Creating a dailynote existed no longer expands the doc tree https://github.com/siyuan-note/siyuan/issues/9959- appArg := arg["app"]- app := ""- if nil != appArg {- app = appArg.(string)+ app, decodeErr := request.AppID()+ if decodeErr != nil {+ return apicontract.Failure[apicontract.FileTreeCreateData](-1, decodeErr.Error())}evt := util.NewCmdResult("createdailynote", 0, util.PushModeBroadcast)evt.AppId = app@@ -918,45 +801,26 @@ func createDailyNote(c *gin.Context) {util.PushEvent(evt)}- ret.Data = map[string]any{- "id": tree.Root.ID,- }+ return apicontract.Success(apicontract.FileTreeCreateData{ID: tree.Root.ID})}-func createDocWithMd(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+var createDocWithMd = contractHandler(apicontract.CreateDocWithMd, createDocWithMdContract)- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }+func createDocWithMdContract(c *gin.Context, request apicontract.FileTreeCreateMarkdownRequest) apicontract.Response[string] {+ ret := gulu.Ret.NewResult()- notebook := arg["notebook"].(string)+ notebook := request.Notebookif util.InvalidIDPattern(notebook, ret) {- return- }-- tagsArg := arg["tags"]- var tags string- if nil != tagsArg {- tags = tagsArg.(string)- }-- var parentID string- parentIDArg := arg["parentID"]- if nil != parentIDArg {- parentID = parentIDArg.(string)+ return contractFailure[string](ret)}+ tags, parentID := request.Tags, request.ParentIDid := ast.NewNodeID()- idArg := arg["id"]- if nil != idArg {- id = idArg.(string)+ if request.ID != nil {+ id = *request.ID}-- hPath := arg["path"].(string)- markdown := arg["markdown"].(string)+ hPath := request.Path+ markdown := request.MarkdownbaseName := path.Base(hPath)dir := path.Dir(hPath)@@ -970,36 +834,24 @@ func createDocWithMd(c *gin.Context) {hPath = "/" + hPath}- withMath := false- withMathArg := arg["withMath"]- if nil != withMathArg {- withMath = withMathArg.(bool)- }- clippingHref := ""- clippingHrefArg := arg["clippingHref"]- if nil != clippingHrefArg {- clippingHref = clippingHrefArg.(string)- }-- id, err := model.CreateWithMarkdown(tags, notebook, hPath, markdown, parentID, id, withMath, clippingHref, arg)+ withMath, clippingHref := request.WithMath, request.ClippingHref+ context := fileTreeCreateContext(request.FileTreeCreateOptions)+ context["titleEmpty"] = request.TitleEmpty+ id, err := model.CreateWithMarkdown(tags, notebook, hPath, markdown, parentID, id, withMath, clippingHref, context)if err != nil {ret.Code = -1ret.Msg = err.Error()- return+ return contractFailure[string](ret)}- ret.Data = id+ return apicontract.Success(id)}-func getDocCreateSavePath(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+var getDocCreateSavePath = contractHandler(apicontract.GetDocCreateSavePath, getDocCreateSavePathContract)- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }+func getDocCreateSavePathContract(c *gin.Context, request apicontract.FileTreeNotebookRequest) apicontract.Response[apicontract.FileTreeCreateSavePathData] {+ ret := gulu.Ret.NewResult()- notebook := arg["notebook"].(string)+ notebook := request.NotebookdocCreateSaveBox, docCreateSavePathTpl := model.ResolveDocCreateSaveLocation(notebook)docCreateTemplatePath := model.Conf.FileTree.DocCreateTemplatePathif box := model.Conf.Box(notebook); nil != box {@@ -1021,26 +873,18 @@ func getDocCreateSavePath(c *gin.Context) {if err != nil {ret.Code = -1ret.Msg = err.Error()- return+ return contractFailure[apicontract.FileTreeCreateSavePathData](ret)}- ret.Data = map[string]any{- "box": docCreateSaveBox,- "path": docCreateSavePath,- "docCreateTemplatePath": docCreateTemplatePath,- }+ return apicontract.Success(apicontract.FileTreeCreateSavePathData{FileTreeSavePathData: apicontract.FileTreeSavePathData{Box: docCreateSaveBox, Path: docCreateSavePath}, DocCreateTemplatePath: docCreateTemplatePath})}-func getRefCreateSavePath(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+var getRefCreateSavePath = contractHandler(apicontract.GetRefCreateSavePath, getRefCreateSavePathContract)- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }+func getRefCreateSavePathContract(c *gin.Context, request apicontract.FileTreeNotebookRequest) apicontract.Response[apicontract.FileTreeSavePathData] {+ ret := gulu.Ret.NewResult()- notebook := arg["notebook"].(string)+ notebook := request.Notebookbox := model.Conf.Box(notebook)var refCreateSaveBox stringrefCreateSavePathTpl := model.Conf.FileTree.RefCreateSavePath@@ -1076,24 +920,17 @@ func getRefCreateSavePath(c *gin.Context) {if err != nil {ret.Code = -1ret.Msg = err.Error()- return- }- ret.Data = map[string]any{- "box": refCreateSaveBox,- "path": refCreateSavePath,+ return contractFailure[apicontract.FileTreeSavePathData](ret)}+ return apicontract.Success(apicontract.FileTreeSavePathData{Box: refCreateSaveBox, Path: refCreateSavePath})}-func getShorthandSavePath(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+var getShorthandSavePath = contractHandler(apicontract.GetShorthandSavePath, getShorthandSavePathContract)- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }+func getShorthandSavePathContract(c *gin.Context, request apicontract.FileTreeNotebookRequest) apicontract.Response[apicontract.FileTreeSavePathData] {+ ret := gulu.Ret.NewResult()- notebook := arg["notebook"].(string)+ notebook := request.NotebookshorthandSaveBox := model.Conf.FileTree.ShorthandSaveBoxshorthandSavePathTpl := model.Conf.FileTree.ShorthandSavePath@@ -1104,7 +941,7 @@ func getShorthandSavePath(c *gin.Context) {if !model.IsShorthandSaveBoxAvailable(shorthandSaveBox) {ret.Code = -1ret.Msg = model.Conf.Language(375)- return+ return contractFailure[apicontract.FileTreeSavePathData](ret)}if shorthandSaveBox != notebook {@@ -1117,69 +954,50 @@ func getShorthandSavePath(c *gin.Context) {if err != nil {ret.Code = -1ret.Msg = err.Error()- return- }- ret.Data = map[string]any{- "box": shorthandSaveBox,- "path": shorthandSavePath,+ return contractFailure[apicontract.FileTreeSavePathData](ret)}+ return apicontract.Success(apicontract.FileTreeSavePathData{Box: shorthandSaveBox, Path: shorthandSavePath})}-func changeSort(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+var changeSort = contractHandler(apicontract.ChangeSort, changeSortContract)- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }+func changeSortContract(c *gin.Context, request apicontract.FileTreeChangeSortRequest) apicontract.Response[apicontract.Null] {+ ret := gulu.Ret.NewResult()- notebook := arg["notebook"].(string)- pathsArg := arg["paths"].([]any)+ notebook := request.Notebook+ pathsArg := request.Pathsvar paths []stringfor _, p := range pathsArg {- paths = append(paths, p.(string))+ paths = append(paths, p)}model.ChangeFileTreeSort(notebook, paths)+ return contractFailure[apicontract.Null](ret)}-func reorderDocs(c *gin.Context) {+var reorderDocs = contractHandler(apicontract.ReorderDocs, reorderDocsContract)++func reorderDocsContract(c *gin.Context, request apicontract.FileTreeReorderRequest) apicontract.Response[*apicontract.FileTreeReorderData] {ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- request := &struct {- RespectSort bool `json:"respectSort"`- Preview bool `json:"preview"`- RemoveSorts bool `json:"removeSorts"`- SourceIDs []string `json:"sourceIDs"`- TargetID string `json:"targetID"`- Position string `json:"position"`- }{}- if err := c.ShouldBindJSON(request); nil != err {- ret.Code = -1- ret.Msg = fmt.Sprintf("Parses request [%s] failed: %s", c.Request.URL.Path, err)- return- }+if !validateReorderRequest(request.SourceIDs, request.TargetID, request.Position, ret) {- return+ return contractFailure[*apicontract.FileTreeReorderData](ret)}if request.RespectSort {result, err := model.ReorderDocTree(request.SourceIDs, request.TargetID, request.Position, request.Preview, request.RemoveSorts)- ret.Data = result+ data := fileTreeRespectSortContract(result)if err != nil {- ret.Code = -1- ret.Msg = err.Error()+ return apicontract.ReorderDocs.FailureWithData(-1, err.Error(), data)}- return+ return apicontract.Success(data)}result, err := model.ReorderDocs(request.SourceIDs, request.TargetID, request.Position)- ret.Data = result- if nil != err {- ret.Code = -1- ret.Msg = err.Error()+ data := fileTreeReorderContract(result)+ if err != nil {+ return apicontract.ReorderDocs.FailureWithData(-1, err.Error(), data)}+ return apicontract.Success(data)}func validateReorderRequest(sourceIDs []string, targetID, position string, ret *gulu.Result) bool {@@ -1216,85 +1034,53 @@ func validateReorderRequest(sourceIDs []string, targetID, position string, ret *return true}-type sortRequestItem struct {- ID string `json:"id"`- Sort *int `json:"sort"`-}+type sortRequestItem = apicontract.FileTreeSortItem++var setSort = contractHandler(apicontract.SetSort, setSortContract)-func setSort(c *gin.Context) {+func setSortContract(c *gin.Context, request apicontract.FileTreeSetSortRequest) apicontract.Response[*apicontract.FileTreeSetSortData] {ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)- request := &struct {- NotebookSorts []*sortRequestItem `json:"notebookSorts"`- DocSorts []*sortRequestItem `json:"docSorts"`- }{}- if err := c.ShouldBindJSON(request); err != nil {- ret.Code = -1- ret.Msg = fmt.Sprintf("Parses request [%s] failed: %s", c.Request.URL.Path, err)- return- }if 1 > len(request.NotebookSorts)+len(request.DocSorts) {ret.Code = -1ret.Msg = "Fields [notebookSorts] and [docSorts] must not both be empty"- return+ return contractFailure[*apicontract.FileTreeSetSortData](ret)}notebookSorts, ok := parseSortItems("notebookSorts", request.NotebookSorts, ret)if !ok {- return+ return contractFailure[*apicontract.FileTreeSetSortData](ret)}docSorts, ok := parseSortItems("docSorts", request.DocSorts, ret)if !ok {- return+ return contractFailure[*apicontract.FileTreeSetSortData](ret)}result, err := model.SetFileTreeSort(notebookSorts, docSorts)- ret.Data = result+ data := (*apicontract.FileTreeSetSortData)(result)if err != nil {- ret.Code = -1- ret.Msg = err.Error()+ return apicontract.SetSort.FailureWithData(-1, err.Error(), data)}+ return apicontract.Success(data)}-func setDocSortMode(c *gin.Context) {+var setDocSortMode = contractHandler(apicontract.SetDocSortMode, setDocSortModeContract)++func setDocSortModeContract(c *gin.Context, request apicontract.FileTreeSortModeRequest) apicontract.Response[*apicontract.FileTreeSortModeData] {ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)- request := &struct {- ID string `json:"id"`- SortMode json.RawMessage `json:"sortMode"`- }{}- if err := c.ShouldBindJSON(request); nil != err {- ret.Code = -1- ret.Msg = fmt.Sprintf("Parses request [%s] failed: %s", c.Request.URL.Path, err)- return- }if util.InvalidIDPattern(request.ID, ret) {- return+ return contractFailure[*apicontract.FileTreeSortModeData](ret)}- if 0 == len(request.SortMode) {- ret.Code = -1- ret.Msg = "Field [sortMode] is required"- return+ sortMode, decodeErr := request.Mode()+ if decodeErr != nil {+ return apicontract.Failure[*apicontract.FileTreeSortModeData](-1, decodeErr.Error())}-- var sortMode *int- if !bytes.Equal(bytes.TrimSpace(request.SortMode), []byte("null")) {- value := 0- if err := json.Unmarshal(request.SortMode, &value); nil != err {- ret.Code = -1- ret.Msg = fmt.Sprintf("Field [sortMode] must be an integer or null: %s", err)- return- }- sortMode = &value- }-result, err := model.SetDocSortMode(request.ID, sortMode)- ret.Data = result- if nil != err {- ret.Code = -1- ret.Msg = err.Error()+ data := (*apicontract.FileTreeSortModeData)(result)+ if err != nil {+ return apicontract.SetDocSortMode.FailureWithData(-1, err.Error(), data)}+ return apicontract.Success(data)}func parseSortItems(field string, items []*sortRequestItem, ret *gulu.Result) (retItems []*model.SortItem, ok bool) {@@ -1324,70 +1110,48 @@ func parseSortItems(field string, items []*sortRequestItem, ret *gulu.Result) (rreturn retItems, true}-func searchDocs(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }-- flashcard := false- if arg["flashcard"] != nil {- flashcard = arg["flashcard"].(bool)- }+var searchDocs = contractHandler(apicontract.SearchDocs, searchDocsContract)- var excludeIDs []string- if arg["excludeIDs"] != nil {- excludeIDsArg := arg["excludeIDs"].([]any)- for _, excludeID := range excludeIDsArg {- excludeIDs = append(excludeIDs, excludeID.(string))- }- }+func searchDocsContract(c *gin.Context, request apicontract.FileTreeSearchRequest) apicontract.Response[[]*apicontract.FileTreeSearchDoc] {- k := arg["k"].(string)+ flashcard := request.Flashcard+ excludeIDs := append([]string(nil), request.ExcludeIDs...)+ k := request.Kdocs := model.SearchDocs(k, flashcard, excludeIDs)if model.IsReadOnlyRoleContext(c) {publishAccess := model.GetPublishAccess()docs = model.FilterSearchDocsByPublishAccess(c, publishAccess, docs)}- ret.Data = docs+ return apicontract.Success(fileTreeSearchContracts(docs))}-func listDocsByPath(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+var listDocsByPath = contractHandler(apicontract.ListDocsByPath, listDocsByPathContract)- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }+func listDocsByPathContract(c *gin.Context, request apicontract.FileTreeListRequest) apicontract.Response[apicontract.FileTreeListData] {+ ret := gulu.Ret.NewResult()- notebook := arg["notebook"].(string)- p := arg["path"].(string)+ notebook := request.Notebook+ p := request.Path// 越界校验:拒绝 ..,确保路径位于 <data>/<notebook>/ 内if strings.Contains(p, "..") {ret.Code = -1ret.Msg = "path must not contain '..' and must be relative"- return+ return contractFailure[apicontract.FileTreeListData](ret)}if isEncryptedNotebookDeniedForPublish(c, notebook) {- ret.Data = map[string]any{- "box": notebook,- "path": p,- "files": []*model.File{},- "effectiveSortMode": model.Conf.FileTree.Sort,- }- return+ return apicontract.Success(apicontract.FileTreeListData{Box: notebook, Path: p, Files: []*apicontract.FileTreeFile{}, EffectiveSortMode: model.Conf.FileTree.Sort})}- sortParam := arg["sort"]+ options, decodeErr := request.Options()+ if decodeErr != nil {+ return apicontract.Failure[apicontract.FileTreeListData](-1, decodeErr.Error())+ }+ sortParam := options.SortsortMode := util.SortModeUnassignedif nil != sortParam {- sortMode = int(sortParam.(float64))+ sortMode = int(*sortParam)}effectiveSortMode := sortModeif util.SortModeUnassigned == effectiveSortMode {@@ -1396,31 +1160,25 @@ func listDocsByPath(c *gin.Context) {if nil != resolveErr {ret.Code = -1ret.Msg = resolveErr.Error()- return+ return contractFailure[apicontract.FileTreeListData](ret)}}- flashcard := false- if arg["flashcard"] != nil {- flashcard = arg["flashcard"].(bool)- }+ flashcard := options.FlashcardmaxListCount := model.Conf.FileTree.MaxListCount- if arg["maxListCount"] != nil {+ if options.MaxListCount != nil {// API `listDocsByPath` add an optional parameter `maxListCount` https://github.com/siyuan-note/siyuan/issues/7993- maxListCount = int(arg["maxListCount"].(float64))+ maxListCount = int(*options.MaxListCount)if 0 >= maxListCount {maxListCount = math.MaxInt}}- showHidden := false- if arg["showHidden"] != nil {- showHidden = arg["showHidden"].(bool)- }+ showHidden := options.ShowHiddenfiles, totals, err := model.ListDocTree(notebook, p, effectiveSortMode, flashcard, showHidden, maxListCount)if err != nil {ret.Code = -1ret.Msg = err.Error()- return+ return contractFailure[apicontract.FileTreeListData](ret)}// 过滤掉发布不可见的文件if model.IsReadOnlyRoleContext(c) {@@ -1438,118 +1196,68 @@ func listDocsByPath(c *gin.Context) {}if maxListCount < totals {// API `listDocsByPath` add an optional parameter `ignoreMaxListHint` https://github.com/siyuan-note/siyuan/issues/10290- ignoreMaxListHintArg := arg["ignoreMaxListHint"]- if nil == ignoreMaxListHintArg || !ignoreMaxListHintArg.(bool) {- var app string- if nil != arg["app"] {- app = arg["app"].(string)- }+ ignoreHint, app, hintErr := request.HintOptions()+ if hintErr != nil {+ return apicontract.Failure[apicontract.FileTreeListData](-1, hintErr.Error())+ }+ if !ignoreHint {if nil == util.NotificationsCfg || util.NotificationsCfg.DocTreeMaxList {util.PushMsgWithApp(app, fmt.Sprintf(model.Conf.Language(48), len(files)), 7000)}}}- ret.Data = map[string]any{- "box": notebook,- "path": p,- "files": files,- "effectiveSortMode": effectiveSortMode,- }+ return apicontract.Success(apicontract.FileTreeListData{Box: notebook, Path: p, Files: fileTreeFileContracts(files), EffectiveSortMode: effectiveSortMode})}-func getDoc(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+var getDoc = contractHandler(apicontract.GetDoc, getDocContract)- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }+func getDocContract(c *gin.Context, request apicontract.FileTreeGetDocRequest) apicontract.Response[apicontract.FileTreeGetDocData] {+ ret := gulu.Ret.NewResult()- var id string- if !util.ParseJsonArgs(arg, ret, util.BindJsonArg("id", &id, true, true)) {- return- }+ id := request.IDif util.InvalidIDPattern(id, ret) {- return+ return contractFailure[apicontract.FileTreeGetDocData](ret)}- requestedNotebook, _ := arg["notebook"].(string)+ requestedNotebook := request.Notebookif model.IsReadOnlyRoleContext(c) &&((requestedNotebook != "" && model.IsEncryptedBoxDeniedByPublishAccess(requestedNotebook)) ||model.IsEncryptedPublishRuntimeTarget(id)) {ret.Code = 3- return+ return contractFailure[apicontract.FileTreeGetDocData](ret)}if err := holdEncryptedBoxRequest(c, requestedNotebook); err != nil {ret.Code = 1ret.Msg = err.Error()- return+ return contractFailure[apicontract.FileTreeGetDocData](ret)+ }+ options, decodeErr := request.Options()+ if decodeErr != nil {+ return apicontract.Failure[apicontract.FileTreeGetDocData](-1, decodeErr.Error())}- includeDocInfo, _ := arg["includeDocInfo"].(bool)+ includeDocInfo := options.IncludeDocInfoif includeDocInfo && model.IsReadOnlyRoleContext(c) {includeDocInfo = isBlockPublishAccessible(c, id, requestedNotebook)}- idx := arg["index"]- index := 0- if nil != idx {- index = int(idx.(float64))- }-- var query string- if queryArg := arg["query"]; nil != queryArg {- query = queryArg.(string)- }- var queryMethod int- if queryMethodArg := arg["queryMethod"]; nil != queryMethodArg {- queryMethod = int(queryMethodArg.(float64))+ index, query, queryMethod := int(options.Index), options.Query, int(options.QueryMethod)+ queryTypes, querySubTypes := options.QueryTypes, options.QuerySubTypes.Selected()+ mode, size := int(options.Mode), 102400+ if options.Size != nil {+ size = int(*options.Size)}- var queryTypes map[string]bool- if queryTypesArg := arg["queryTypes"]; nil != queryTypesArg {- typesArg := queryTypesArg.(map[string]any)- queryTypes = map[string]bool{}- for t, b := range typesArg {- queryTypes[t] = b.(bool)- }- }- querySubTypes := parseSearchSubTypes(arg["querySubTypes"])-- m := arg["mode"] // 0: 仅当前 ID,1:向上 2:向下,3:上下都加载,4:加载末尾- mode := 0- if nil != m {- mode = int(m.(float64))- }- s := arg["size"]- size := 102400 // 默认最大加载块数- if nil != s {- size = int(s.(float64))- }- startID := ""- endID := ""- startIDArg := arg["startID"]- endIDArg := arg["endID"]- if nil != startIDArg && nil != endIDArg {- startID = startIDArg.(string)- endID = endIDArg.(string)+ startID, endID := "", ""+ if options.StartID != nil && options.EndID != nil {+ startID, endID = *options.StartID, *options.EndIDsize = model.Conf.Editor.DynamicLoadBlocks}- isBacklinkArg := arg["isBacklink"]- isBacklink := false- if nil != isBacklinkArg {- isBacklink = isBacklinkArg.(bool)- }- originalRefBlockIDsArg := arg["originalRefBlockIDs"]- originalRefBlockIDs := map[string]string{}- if nil != originalRefBlockIDsArg {- m := originalRefBlockIDsArg.(map[string]any)- for k, v := range m {- originalRefBlockIDs[k] = v.(string)- }+ isBacklink := options.IsBacklink+ originalRefBlockIDs := options.OriginalRefBlockIDs+ if originalRefBlockIDs == nil {+ originalRefBlockIDs = map[string]string{}}- highlightArg := arg["highlight"]highlight := true- if nil != highlightArg {- highlight = highlightArg.(bool)+ if options.Highlight != nil {+ highlight = *options.Highlight}var blockCount int@@ -1571,13 +1279,13 @@ func getDoc(c *gin.Context) {}if errors.Is(err, model.ErrBlockNotFound) {ret.Code = 3- return+ return contractFailure[apicontract.FileTreeGetDocData](ret)}if err != nil {ret.Code = 1ret.Msg = err.Error()- return+ return contractFailure[apicontract.FileTreeGetDocData](ret)}// 判断是否正在同步中 https://github.com/siyuan-note/siyuan/issues/6290@@ -1602,51 +1310,31 @@ func getDoc(c *gin.Context) {}}- data := map[string]any{- "id": id,- "mode": mode,- "parentID": parentID,- "parent2ID": parent2ID,- "rootID": rootID,- "type": typ,- "content": content,- "blockCount": blockCount,- "eof": eof,- "scroll": scroll,- "box": boxID,- "path": docPath,- "isSyncing": isSyncing,- "isBacklinkExpand": isBacklinkExpand,- "keywords": keywords,- "headingNumbers": headingNumbers,- "publishAccessRequired": publishAccessRequired,- "reqId": arg["reqId"],- }- if nil != docInfo {- data["docInfo"] = docInfo- }- ret.Data = data+ return apicontract.Success(apicontract.FileTreeGetDocData{+ ID: id, Mode: mode, ParentID: parentID, Parent2ID: parent2ID, RootID: rootID, Type: typ,+ Content: content, BlockCount: blockCount, EOF: eof, Scroll: scroll, Box: boxID, Path: docPath,+ IsSyncing: isSyncing, IsBacklinkExpand: isBacklinkExpand, Keywords: keywords, HeadingNumbers: headingNumbers,+ PublishAccessRequired: publishAccessRequired, ReqID: options.ReqID, DocInfo: docInfoContract(docInfo),+ })}-func setPublishAccess(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+var setPublishAccess = contractHandler(apicontract.SetPublishAccess, setPublishAccessContract)- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }+func setPublishAccessContract(c *gin.Context, request apicontract.FileTreeSetPublishRequest) apicontract.Response[apicontract.Null] {+ ret := gulu.Ret.NewResult()publishAccess := model.GetPublishAccess()- ID := arg["id"].(string)+ ID := request.IDif model.IsEncryptedPublishAccessTarget(ID) {ret.Code = -1ret.Msg = model.Conf.Language(394)- return+ return contractFailure[apicontract.Null](ret)+ }+ options, err := request.Options()+ if err != nil {+ return apicontract.Failure[apicontract.Null](-1, err.Error())}- visible := arg["visible"].(bool)- password := arg["password"].(string)- disable := arg["disable"].(bool)+ visible, password, disable := options.Visible, options.Password, options.DisablefoundIndex := -1updated := false@@ -1682,29 +1370,26 @@ func setPublishAccess(c *gin.Context) {if err != nil {ret.Code = -1ret.Msg = err.Error()- return+ return contractFailure[apicontract.Null](ret)}}model.PurgePublishAccess()+ return contractFailure[apicontract.Null](ret)}-func getPublishAccess(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+var getPublishAccess = contractHandler(apicontract.GetPublishAccess, getPublishAccessContract)- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }+func getPublishAccessContract(c *gin.Context, request apicontract.FileTreePublishIDsRequest) apicontract.Response[apicontract.FileTreePublishData] {+ ret := gulu.Ret.NewResult()var IDs []string- for _, ID := range arg["ids"].([]any) {- id := ID.(string)+ for _, ID := range request.IDs {+ id := IDif model.IsEncryptedPublishAccessTarget(id) {ret.Code = -1ret.Msg = model.Conf.Language(394)- return+ return contractFailure[apicontract.FileTreePublishData](ret)}IDs = append(IDs, id)}@@ -1730,31 +1415,24 @@ func getPublishAccess(c *gin.Context) {}}- ret.Data = map[string]any{- "publishAccess": maskedPublishAccess,- }+ return apicontract.Success(apicontract.FileTreePublishData{PublishAccess: fileTreePublishContracts(maskedPublishAccess)})}-func authFilePublishAccess(c *gin.Context) {+var authFilePublishAccess = contractHandler(apicontract.AuthFilePublishAccess, authFilePublishAccessContract)++func authFilePublishAccessContract(c *gin.Context, request apicontract.FileTreeAuthPublishRequest) apicontract.Response[apicontract.Null] {ret := gulu.Ret.NewResult()- arg, ok := util.JsonArg(c, ret)- if !ok {- c.JSON(http.StatusOK, ret)- return- }- ID := arg["id"].(string)+ ID := request.IDif util.InvalidIDPattern(ID, ret) {- c.JSON(http.StatusOK, ret)- return+ return contractFailure[apicontract.Null](ret)}- password := arg["password"].(string)+ password := request.Passwordret.Code = -1ret.Msg = model.Conf.Language(285)if model.IsEncryptedPublishRuntimeTarget(ID) {- c.JSON(http.StatusOK, ret)- return+ return contractFailure[apicontract.Null](ret)}// 按来源 IP 对发布密码认证进行限流,防止无限次暴力破解密码 https://github.com/siyuan-note/siyuan/security/advisories/GHSA-v362-968x-gp2v@@ -1764,8 +1442,7 @@ func authFilePublishAccess(c *gin.Context) {util.AuthThrottleFail(ip)c.Header("Retry-After", strconv.Itoa(retryAfter))ret.Msg = model.Conf.Language(354)- c.JSON(http.StatusTooManyRequests, ret)- return+ return apicontract.AuthFilePublishAccess.WithHTTPStatus(contractFailure[apicontract.Null](ret), http.StatusTooManyRequests)}publishAccess := model.GetPublishAccess()@@ -1776,18 +1453,16 @@ func authFilePublishAccess(c *gin.Context) {if item.Disable || item.Password == "" || !util.AuthCodeEquals(item.Password, password) {// 恒定时间比较,避免通过响应时间差异猜测密码util.AuthThrottleFail(ip)- c.JSON(http.StatusOK, ret)- return+ return contractFailure[apicontract.Null](ret)}util.AuthThrottleReset(ip)model.SetPublishAuthCookie(c, ID, password)ret.Code = 0ret.Msg = ""- c.JSON(http.StatusOK, ret)- return+ return contractFailure[apicontract.Null](ret)}// 目标 ID 不在发布配置中,同样记录失败以限制尝试次数util.AuthThrottleFail(ip)- c.JSON(http.StatusOK, ret)+ return contractFailure[apicontract.Null](ret)}diff --git a/kernel/api/filetree_contract.go b/kernel/api/filetree_contract.gonew file mode 100644index 0000000000..367252431a--- /dev/null+++ b/kernel/api/filetree_contract.go@@ -0,0 +1,101 @@+package api++import (+ "github.com/siyuan-note/siyuan/kernel/apicontract"+ "github.com/siyuan-note/siyuan/kernel/model"+)++// 移动回调属于原样透传的 JSON;缺失或 null 时保持事件中不携带回调。+func fileTreeCallback(value *apicontract.JSONValue) any {+ if value == nil {+ return nil+ }+ return *value+}++func fileTreeCreateContext(options apicontract.FileTreeCreateOptions) map[string]any {+ return map[string]any{+ "sortTargetID": options.SortTargetID, "sortPosition": options.SortPosition,+ "docCreateTemplatePath": options.DocCreateTemplatePath, "listDocTree": options.ListDocTree,+ }+}++func fileTreeDocFileContracts(values []*DocFile) []*apicontract.FileTreeDocFile {+ if values == nil {+ return nil+ }+ result := make([]*apicontract.FileTreeDocFile, len(values))+ for i, value := range values {+ if value != nil {+ result[i] = &apicontract.FileTreeDocFile{ID: value.ID, Children: fileTreeDocFileContracts(value.Children)}+ }+ }+ return result+}++func fileTreeReorderContract(value *model.ReorderResult) *apicontract.FileTreeReorderData {+ if value == nil {+ return nil+ }+ result := &apicontract.FileTreeReorderData{Changed: value.Changed}+ if value.Notebook != "" {+ result.Notebook = &value.Notebook+ }+ if value.ParentPath != "" {+ result.ParentPath = &value.ParentPath+ }+ return result+}++func fileTreeRespectSortContract(value *model.DocTreeReorderResult) *apicontract.FileTreeReorderData {+ if value == nil {+ return nil+ }+ return &apicontract.FileTreeReorderData{Changed: value.Changed, Conflict: &value.Conflict, Notebook: &value.Notebook, ParentPath: &value.ParentPath}+}++func fileTreeSearchContracts(values []map[string]string) []*apicontract.FileTreeSearchDoc {+ if values == nil {+ return nil+ }+ result := make([]*apicontract.FileTreeSearchDoc, len(values))+ for i, value := range values {+ if value == nil {+ continue+ }+ optional := func(key string) *string {+ if text, ok := value[key]; ok {+ return &text+ }+ return nil+ }+ result[i] = &apicontract.FileTreeSearchDoc{+ Path: value["path"], HPath: value["hPath"], Box: value["box"], BoxIcon: value["boxIcon"],+ Name: optional("name"), Alias: optional("alias"), NewFlashcardCount: optional("newFlashcardCount"),+ DueFlashcardCount: optional("dueFlashcardCount"), FlashcardCount: optional("flashcardCount"),+ }+ }+ return result+}++func fileTreeFileContracts(values []*model.File) []*apicontract.FileTreeFile {+ if values == nil {+ return nil+ }+ result := make([]*apicontract.FileTreeFile, len(values))+ for i, value := range values {+ result[i] = (*apicontract.FileTreeFile)(value)+ }+ return result+}++func fileTreePublishContracts(values model.PublishAccess) []*apicontract.FileTreePublishItem {+ if values == nil {+ return nil+ }+ result := make([]*apicontract.FileTreePublishItem, len(values))+ for i, value := range values {+ result[i] = (*apicontract.FileTreePublishItem)(value)+ }+ return result+}diff --git a/kernel/apicontract/contracts.go b/kernel/apicontract/contracts.goindex fddb947079..73d1ac10f9 100644--- a/kernel/apicontract/contracts.go+++ b/kernel/apicontract/contracts.go@@ -731,3 +731,41 @@ var AssetUploadCloudByAssetsPaths = define[AssetPathsCloudUploadRequest, Null]("var InsertLocalAssets = define[InsertLocalAssetsRequest, AssetUploadData]("insertLocalAssets", "/api/asset/insertLocalAssets", JSONBody, ResponseOptions{DataOnError: true}, "POST")var InsertCover = define[InsertCoverRequest, AssetInsertCoverData]("insertCover", "/api/asset/insertCover", JSONBody, ResponseOptions{}, "POST")var UploadAsset = define[UploadAssetRequest, AssetUploadData]("uploadAsset", "/api/asset/upload", MultipartBody, ResponseOptions{}, "POST")++var MoveLocalShorthands = define[FileTreeNotebookRequest, []string]("moveLocalShorthands", "/api/filetree/moveLocalShorthands", JSONBody, ResponseOptions{}, "POST")+var ListDocTree = define[FileTreePathRequest, FileTreeDocTreeData]("listDocTree", "/api/filetree/listDocTree", JSONBody, ResponseOptions{}, "POST")+var UpsertIndexes = define[FileTreePathsRequest, Null]("upsertIndexes", "/api/filetree/upsertIndexes", JSONBody, ResponseOptions{}, "POST")+var RemoveIndexes = define[FileTreePathsRequest, Null]("removeIndexes", "/api/filetree/removeIndexes", JSONBody, ResponseOptions{}, "POST")+var Doc2Heading = define[FileTreeDocHeadingRequest, FileTreeDocHeadingData]("doc2Heading", "/api/filetree/doc2Heading", JSONBody, ResponseOptions{}, "POST")+var Heading2Doc = define[FileTreeHeadingDocRequest, Null]("heading2Doc", "/api/filetree/heading2Doc", JSONBody, ResponseOptions{}, "POST")+var Li2Doc = define[FileTreeListItemDocRequest, Null]("li2Doc", "/api/filetree/li2Doc", JSONBody, ResponseOptions{}, "POST")+var GetHPathByPath = define[FileTreePathRequest, string]("getHPathByPath", "/api/filetree/getHPathByPath", JSONBody, ResponseOptions{}, "POST")+var GetHPathsByPaths = define[FileTreePathsRequest, []string]("getHPathsByPaths", "/api/filetree/getHPathsByPaths", JSONBody, ResponseOptions{}, "POST")+var GetHPathByID = define[FileTreeIDRequest, string]("getHPathByID", "/api/filetree/getHPathByID", JSONBody, ResponseOptions{}, "POST")+var GetPathByID = define[FileTreeTrimIDRequest, FileTreeDocPathData]("getPathByID", "/api/filetree/getPathByID", JSONBody, ResponseOptions{}, "POST")+var GetFullHPathByID = define[FileTreeOptionalIDRequest, *string]("getFullHPathByID", "/api/filetree/getFullHPathByID", JSONBody, ResponseOptions{}, "POST")+var GetIDsByHPath = define[FileTreeOptionalPathRequest, []string]("getIDsByHPath", "/api/filetree/getIDsByHPath", JSONBody, ResponseOptions{}, "POST")+var MoveDocs = define[FileTreeMoveRequest, Null]("moveDocs", "/api/filetree/moveDocs", JSONBody, ResponseOptions{}, "POST")+var MoveDocsByID = define[FileTreeMoveIDsRequest, Null]("moveDocsByID", "/api/filetree/moveDocsByID", JSONBody, ResponseOptions{}, "POST")+var RemoveDoc = define[FileTreePathRequest, Null]("removeDoc", "/api/filetree/removeDoc", JSONBody, ResponseOptions{}, "POST")+var RemoveDocByID = define[FileTreeTrimIDRequest, Null]("removeDocByID", "/api/filetree/removeDocByID", JSONBody, ResponseOptions{}, "POST")+var RemoveDocs = define[FileTreePathsRequest, Null]("removeDocs", "/api/filetree/removeDocs", JSONBody, ResponseOptions{}, "POST")+var RenameDoc = define[FileTreeRenameRequest, Null]("renameDoc", "/api/filetree/renameDoc", JSONBody, ResponseOptions{}, "POST")+var RenameDocByID = define[FileTreeRenameIDRequest, Null]("renameDocByID", "/api/filetree/renameDocByID", JSONBody, ResponseOptions{}, "POST")+var DuplicateDoc = define[FileTreeIDRequest, FileTreeDuplicateData]("duplicateDoc", "/api/filetree/duplicateDoc", JSONBody, ResponseOptions{}, "POST")+var CreateDoc = define[FileTreeCreateRequest, FileTreeCreateData]("createDoc", "/api/filetree/createDoc", JSONBody, ResponseOptions{}, "POST")+var CreateDailyNote = define[FileTreeDailyNoteRequest, FileTreeCreateData]("createDailyNote", "/api/filetree/createDailyNote", JSONBody, ResponseOptions{AdditionalCodes: []int{1}}, "POST")+var CreateDocWithMd = define[FileTreeCreateMarkdownRequest, string]("createDocWithMd", "/api/filetree/createDocWithMd", JSONBody, ResponseOptions{}, "POST")+var GetDocCreateSavePath = define[FileTreeNotebookRequest, FileTreeCreateSavePathData]("getDocCreateSavePath", "/api/filetree/getDocCreateSavePath", JSONBody, ResponseOptions{}, "POST")+var GetRefCreateSavePath = define[FileTreeNotebookRequest, FileTreeSavePathData]("getRefCreateSavePath", "/api/filetree/getRefCreateSavePath", JSONBody, ResponseOptions{}, "POST")+var GetShorthandSavePath = define[FileTreeNotebookRequest, FileTreeSavePathData]("getShorthandSavePath", "/api/filetree/getShorthandSavePath", JSONBody, ResponseOptions{}, "POST")+var ChangeSort = define[FileTreeChangeSortRequest, Null]("changeSort", "/api/filetree/changeSort", JSONBody, ResponseOptions{}, "POST")+var ReorderDocs = define[FileTreeReorderRequest, *FileTreeReorderData]("reorderDocs", "/api/filetree/reorderDocs", StructJSONBody, ResponseOptions{DataOnError: true}, "POST")+var SetSort = define[FileTreeSetSortRequest, *FileTreeSetSortData]("setSort", "/api/filetree/setSort", StructJSONBody, ResponseOptions{DataOnError: true}, "POST")+var SetDocSortMode = define[FileTreeSortModeRequest, *FileTreeSortModeData]("setDocSortMode", "/api/filetree/setDocSortMode", StructJSONBody, ResponseOptions{DataOnError: true}, "POST")+var SearchDocs = define[FileTreeSearchRequest, []*FileTreeSearchDoc]("searchDocs", "/api/filetree/searchDocs", JSONBody, ResponseOptions{}, "POST")+var ListDocsByPath = define[FileTreeListRequest, FileTreeListData]("listDocsByPath", "/api/filetree/listDocsByPath", JSONBody, ResponseOptions{}, "POST")+var GetDoc = define[FileTreeGetDocRequest, FileTreeGetDocData]("getDoc", "/api/filetree/getDoc", JSONBody, ResponseOptions{AdditionalCodes: []int{1, 3}}, "POST")+var SetPublishAccess = define[FileTreeSetPublishRequest, Null]("setPublishAccess", "/api/filetree/setPublishAccess", JSONBody, ResponseOptions{}, "POST")+var GetPublishAccess = define[FileTreePublishIDsRequest, FileTreePublishData]("getPublishAccess", "/api/filetree/getPublishAccess", JSONBody, ResponseOptions{}, "POST")+var AuthFilePublishAccess = define[FileTreeAuthPublishRequest, Null]("authFilePublishAccess", "/api/filetree/authFilePublishAccess", JSONBody, ResponseOptions{AdditionalErrorStatuses: []int{429}}, "POST")diff --git a/kernel/apicontract/filetree_input.go b/kernel/apicontract/filetree_input.gonew file mode 100644index 0000000000..476de5d4fa--- /dev/null+++ b/kernel/apicontract/filetree_input.go@@ -0,0 +1,317 @@+package apicontract++import (+ "bytes"+ "encoding/json"+ "errors"+ "fmt"+ "io"+ "reflect"+ "strings"+)++type fileTreeFields map[string]json.RawMessage++func fileTreeRequestFields(reader io.Reader, path string) (fields fileTreeFields, err error) {+ var raw json.RawMessage+ err = json.NewDecoder(reader).Decode(&raw)+ if err == nil {+ fields, err = legacyJSONValue[fileTreeFields](raw)+ }+ if err != nil {+ if errors.Is(err, io.EOF) {+ err = errors.New("the request body is empty or truncated (EOF)")+ }+ detail := strings.ReplaceAll(err.Error(), "apicontract.fileTreeFields", "map[string]interface {}")+ err = fmt.Errorf("Parses request [%s] failed: %s", path, detail)+ }+ return+}++func fileTreeJSONDecoder[Request, Data any](endpoint *Endpoint[Request, Data]) {+ endpoint.decodeRequest = func(reader io.Reader) (request Request, err error) {+ fields, err := fileTreeRequestFields(reader, endpoint.definition.Path)+ if err == nil {+ request, err = fileTreeBind[Request](fields)+ }+ return request, err+ }+}++func (r FileTreePathRequest) PathError() error { return r.pathError }++func fileTreeBind[T any](fields fileTreeFields) (value T, err error) {+ err = decodeRequestFields(reflect.ValueOf(&value).Elem(), fields)+ return+}++func (r FileTreeHeadingDocRequest) Options() (FileTreeBlockDocOptions, error) {+ return fileTreeBind[FileTreeBlockDocOptions](r.fields)+}+func (r FileTreeListItemDocRequest) Options() (FileTreeBlockDocOptions, error) {+ return fileTreeBind[FileTreeBlockDocOptions](r.fields)+}+func (r FileTreeRenameIDRequest) DocTitle() (string, error) {+ value, err := fileTreeBind[struct {+ Title string `json:"title"`+ }](r.fields)+ return value.Title, err+}+func (r FileTreeListRequest) Options() (FileTreeListOptions, error) {+ fields := make(fileTreeFields, len(r.fields))+ for key, value := range r.fields {+ if key != "ignoreMaxListHint" && key != "app" {+ fields[key] = value+ }+ }+ return fileTreeBind[FileTreeListOptions](fields)+}++func (r FileTreeListRequest) HintOptions() (ignore bool, app string, err error) {+ value, err := fileTreeBind[struct {+ Ignore bool `json:"ignoreMaxListHint" api:"optional,nullable"`+ }](r.fields)+ if err != nil || value.Ignore {+ return value.Ignore, "", err+ }+ application, err := fileTreeBind[struct {+ App string `json:"app" api:"optional,nullable"`+ }](r.fields)+ return false, application.App, err+}++func (r FileTreeDailyNoteRequest) AppID() (string, error) {+ value, err := fileTreeBind[struct {+ App string `json:"app" api:"optional,nullable"`+ }](r.fields)+ return value.App, err+}+func (r FileTreeSetPublishRequest) Options() (FileTreePublishOptions, error) {+ return fileTreeBind[FileTreePublishOptions](r.fields)+}+func (r FileTreeGetDocRequest) Options() (FileTreeGetDocOptions, error) {+ fields := make(fileTreeFields, len(r.fields))+ for key, value := range r.fields {+ fields[key] = value+ }+ var includeDocInfo bool+ if json.Unmarshal(fields["includeDocInfo"], &includeDocInfo) != nil {+ delete(fields, "includeDocInfo")+ }+ if len(fields["startID"]) == 0 || bytes.Equal(fields["startID"], []byte("null")) || len(fields["endID"]) == 0 || bytes.Equal(fields["endID"], []byte("null")) {+ delete(fields, "startID")+ delete(fields, "endID")+ }+ // 文档查询复用分组筛选的兼容规则,未知分组和非布尔选项不会生效。+ filter, _ := json.Marshal(map[string]json.RawMessage{"subTypes": fields["querySubTypes"]})+ if fields["querySubTypes"] != nil {+ filtered, err := searchQueryFields(bytes.NewReader(filter), "/api/filetree/getDoc")+ if err != nil {+ return FileTreeGetDocOptions{}, err+ }+ delete(fields, "querySubTypes")+ if value, ok := filtered["subTypes"]; ok {+ fields["querySubTypes"] = value+ }+ }+ return fileTreeBind[FileTreeGetDocOptions](fields)+}++func (r FileTreeSortModeRequest) Mode() (*int, error) {+ raw := r.sortModeFields["sortMode"]+ if len(raw) == 0 {+ return nil, fmt.Errorf("Field [sortMode] is required")+ }+ if bytes.Equal(bytes.TrimSpace(raw), []byte("null")) {+ return nil, nil+ }+ var value int+ if err := json.Unmarshal(raw, &value); err != nil {+ return nil, fmt.Errorf("Field [sortMode] must be an integer or null: %s", err)+ }+ return &value, nil+}++func init() {+ fileTreeJSONDecoder(&MoveLocalShorthands)+ fileTreeJSONDecoder(&UpsertIndexes)+ fileTreeJSONDecoder(&RemoveIndexes)+ fileTreeJSONDecoder(&Doc2Heading)+ fileTreeJSONDecoder(&GetHPathByPath)+ fileTreeJSONDecoder(&GetHPathsByPaths)+ fileTreeJSONDecoder(&GetHPathByID)+ fileTreeJSONDecoder(&GetFullHPathByID)+ fileTreeJSONDecoder(&MoveDocs)+ fileTreeJSONDecoder(&MoveDocsByID)+ fileTreeJSONDecoder(&RemoveDoc)+ fileTreeJSONDecoder(&RemoveDocs)+ fileTreeJSONDecoder(&RenameDoc)+ fileTreeJSONDecoder(&DuplicateDoc)+ fileTreeJSONDecoder(&CreateDoc)+ fileTreeJSONDecoder(&CreateDocWithMd)+ fileTreeJSONDecoder(&GetDocCreateSavePath)+ fileTreeJSONDecoder(&GetRefCreateSavePath)+ fileTreeJSONDecoder(&GetShorthandSavePath)+ fileTreeJSONDecoder(&ChangeSort)+ fileTreeJSONDecoder(&SearchDocs)+ fileTreeJSONDecoder(&GetPublishAccess)+ fileTreeJSONDecoder(&AuthFilePublishAccess)+ trimIDDecoder := func(path string) func(io.Reader) (FileTreeTrimIDRequest, error) {+ return func(reader io.Reader) (r FileTreeTrimIDRequest, err error) {+ fields, err := fileTreeRequestFields(reader, path)+ if err != nil {+ return r, err+ }+ r.ID, err = legacyField[string](fields, "id", "String", true)+ if err == nil {+ r.ID = strings.TrimSpace(r.ID)+ if r.ID == "" {+ err = fmt.Errorf("Field [id] must not be empty")+ }+ }+ return r, err+ }+ }+ RemoveDocByID.decodeRequest = trimIDDecoder(RemoveDocByID.definition.Path)+ GetPathByID.decodeRequest = trimIDDecoder(GetPathByID.definition.Path)+ GetIDsByHPath.decodeRequest = func(reader io.Reader) (r FileTreeOptionalPathRequest, err error) {+ fields, err := fileTreeRequestFields(reader, GetIDsByHPath.definition.Path)+ if err != nil {+ return r, err+ }+ for _, key := range []string{"path", "notebook"} {+ if len(fields[key]) == 0 || bytes.Equal(fields[key], []byte("null")) {+ return r, nil+ }+ }+ return fileTreeBind[FileTreeOptionalPathRequest](fields)+ }+ CreateDailyNote.decodeRequest = func(reader io.Reader) (r FileTreeDailyNoteRequest, err error) {+ r.fields, err = fileTreeRequestFields(reader, CreateDailyNote.definition.Path)+ if err != nil {+ return r, err+ }+ value, err := fileTreeBind[FileTreeNotebookRequest](r.fields)+ r.Notebook = value.Notebook+ return r, err+ }+ ListDocTree.decodeRequest = func(reader io.Reader) (r FileTreePathRequest, err error) {+ fields, err := fileTreeRequestFields(reader, ListDocTree.definition.Path)+ if err != nil {+ return r, err+ }+ initial, err := fileTreeBind[FileTreeNotebookRequest](fields)+ if err != nil {+ return r, err+ }+ r.Notebook = initial.Notebook+ value, decodeErr := fileTreeBind[struct {+ Path string `json:"path"`+ }](fields)+ r.Path, r.pathError = value.Path, decodeErr+ return r, nil+ }+ ReorderDocs.decodeRequest = func(reader io.Reader) (r FileTreeReorderRequest, err error) {+ var value struct {+ RespectSort bool `json:"respectSort"`+ Preview bool `json:"preview"`+ RemoveSorts bool `json:"removeSorts"`+ SourceIDs []string `json:"sourceIDs"`+ TargetID string `json:"targetID"`+ Position string `json:"position"`+ }+ if err = json.NewDecoder(reader).Decode(&value); err != nil {+ return r, fmt.Errorf("Parses request [%s] failed: %s", ReorderDocs.definition.Path, err)+ }+ r = FileTreeReorderRequest(value)+ return r, nil+ }+ SetSort.decodeRequest = func(reader io.Reader) (r FileTreeSetSortRequest, err error) {+ var value struct {+ NotebookSorts []*FileTreeSortItem `json:"notebookSorts"`+ DocSorts []*FileTreeSortItem `json:"docSorts"`+ }+ if err = json.NewDecoder(reader).Decode(&value); err != nil {+ detail := strings.ReplaceAll(err.Error(), "FileTreeSortItem.", "sortRequestItem.")+ return r, fmt.Errorf("Parses request [%s] failed: %s", SetSort.definition.Path, detail)+ }+ r = FileTreeSetSortRequest(value)+ return r, nil+ }+ Heading2Doc.decodeRequest = func(reader io.Reader) (r FileTreeHeadingDocRequest, err error) {+ r.fields, err = fileTreeRequestFields(reader, Heading2Doc.definition.Path)+ if err != nil {+ return r, err+ }+ value, err := fileTreeBind[struct {+ SrcHeadingID string `json:"srcHeadingID"`+ TargetNotebook string `json:"targetNoteBook"`+ }](r.fields)+ r.SrcHeadingID, r.TargetNotebook = value.SrcHeadingID, value.TargetNotebook+ return r, err+ }+ Li2Doc.decodeRequest = func(reader io.Reader) (r FileTreeListItemDocRequest, err error) {+ r.fields, err = fileTreeRequestFields(reader, Li2Doc.definition.Path)+ if err != nil {+ return r, err+ }+ value, err := fileTreeBind[struct {+ SrcListItemID string `json:"srcListItemID"`+ TargetNotebook string `json:"targetNoteBook"`+ }](r.fields)+ r.SrcListItemID, r.TargetNotebook = value.SrcListItemID, value.TargetNotebook+ return r, err+ }+ RenameDocByID.decodeRequest = func(reader io.Reader) (r FileTreeRenameIDRequest, err error) {+ r.fields, err = fileTreeRequestFields(reader, RenameDocByID.definition.Path)+ if err != nil {+ return r, err+ }+ value, err := fileTreeBind[FileTreeOptionalIDRequest](r.fields)+ r.ID = value.ID+ return r, err+ }+ ListDocsByPath.decodeRequest = func(reader io.Reader) (r FileTreeListRequest, err error) {+ r.fields, err = fileTreeRequestFields(reader, ListDocsByPath.definition.Path)+ if err == nil {+ r.FileTreePathRequest, err = fileTreeBind[FileTreePathRequest](r.fields)+ }+ return r, err+ }+ GetDoc.decodeRequest = func(reader io.Reader) (r FileTreeGetDocRequest, err error) {+ r.fields, err = fileTreeRequestFields(reader, GetDoc.definition.Path)+ if err != nil {+ return r, err+ }+ r.ID, err = legacyField[string](r.fields, "id", "String", true)+ if err != nil {+ return r, err+ }+ value, err := fileTreeBind[struct {+ ID string `json:"id" api:"trim"`+ Notebook string `json:"notebook" api:"optional,nullable,ignoretype"`+ }](r.fields)+ r.ID, r.Notebook = value.ID, value.Notebook+ return r, err+ }+ SetPublishAccess.decodeRequest = func(reader io.Reader) (r FileTreeSetPublishRequest, err error) {+ r.fields, err = fileTreeRequestFields(reader, SetPublishAccess.definition.Path)+ if err != nil {+ return r, err+ }+ value, err := fileTreeBind[FileTreeIDRequest](r.fields)+ r.ID = value.ID+ return r, err+ }+ SetDocSortMode.decodeRequest = func(reader io.Reader) (r FileTreeSortModeRequest, err error) {+ var value struct {+ ID string `json:"id"`+ SortMode json.RawMessage `json:"sortMode"`+ }+ if err = json.NewDecoder(reader).Decode(&value); err != nil {+ return r, fmt.Errorf("Parses request [%s] failed: %s", SetDocSortMode.definition.Path, err)+ }+ r.ID, r.sortModeFields = value.ID, fileTreeFields{"sortMode": value.SortMode}+ return r, nil+ }+}diff --git a/kernel/apicontract/filetree_remaining.go b/kernel/apicontract/filetree_remaining.gonew file mode 100644index 0000000000..aff1312110--- /dev/null+++ b/kernel/apicontract/filetree_remaining.go@@ -0,0 +1,299 @@+package apicontract++type FileTreeNotebookRequest struct {+ Notebook string `json:"notebook"`+}+type FileTreePathRequest struct {+ Notebook string `json:"notebook"`+ Path string `json:"path"`+ pathError error+}+type FileTreePathsRequest struct {+ Paths []string `json:"paths"`+}+type FileTreeIDRequest struct {+ ID string `json:"id"`+}+type FileTreeTrimIDRequest struct {+ ID string `json:"id" api:"trim"`+}+type FileTreeOptionalIDRequest struct {+ ID *string `json:"id" api:"optional"`+}+type FileTreeOptionalPathRequest struct {+ Notebook *string `json:"notebook" api:"optional"`+ Path *string `json:"path" api:"optional"`+}+type FileTreeDocHeadingRequest struct {+ SrcID string `json:"srcID"`+ TargetID string `json:"targetID"`+ After bool `json:"after"`+}+type FileTreeBlockDocOptions struct {+ TargetPath string `json:"targetPath" api:"optional,nullable"`+ PreviousPath string `json:"previousPath" api:"optional,nullable"`+ ToTop bool `json:"toTop" api:"optional,nullable"`+}+type FileTreeHeadingDocRequest struct {+ SrcHeadingID string `json:"srcHeadingID"`+ TargetNotebook string `json:"targetNoteBook"`+ FileTreeBlockDocOptions+ fields fileTreeFields+}+type FileTreeListItemDocRequest struct {+ SrcListItemID string `json:"srcListItemID"`+ TargetNotebook string `json:"targetNoteBook"`+ FileTreeBlockDocOptions+ fields fileTreeFields+}+type FileTreeMoveRequest struct {+ FromPaths []string `json:"fromPaths"`+ ToPath string `json:"toPath"`+ ToNotebook string `json:"toNotebook"`+ Callback *JSONValue `json:"callback" api:"optional"`+}+type FileTreeMoveIDsRequest struct {+ FromIDs []string `json:"fromIDs"`+ ToID string `json:"toID"`+ Callback *JSONValue `json:"callback" api:"optional"`+}+type FileTreeRenameRequest struct {+ FileTreePathRequest+ Title string `json:"title"`+}+type FileTreeRenameIDRequest struct {+ ID *string `json:"id" api:"optional"`+ Title string `json:"title"`+ fields fileTreeFields+}+type FileTreeCreateOptions struct {+ SortTargetID string `json:"sortTargetID" api:"optional,nullable,ignoretype"`+ SortPosition string `json:"sortPosition" api:"optional,nullable,ignoretype"`+ DocCreateTemplatePath string `json:"docCreateTemplatePath" api:"optional,nullable,ignoretype"`+ ListDocTree bool `json:"listDocTree" api:"optional,nullable"`+}+type FileTreeCreateRequest struct {+ FileTreePathRequest+ Title string `json:"title"`+ MD string `json:"md"`+ Sorts []string `json:"sorts" api:"optional,nullable"`+ FileTreeCreateOptions+}+type FileTreeDailyNoteRequest struct {+ Notebook string `json:"notebook"`+ App string `json:"app" api:"optional,nullable"`+ fields fileTreeFields+}+type FileTreeCreateMarkdownRequest struct {+ FileTreePathRequest+ Markdown string `json:"markdown"`+ Tags string `json:"tags" api:"optional,nullable"`+ ParentID string `json:"parentID" api:"optional,nullable"`+ ID *string `json:"id" api:"optional"`+ WithMath bool `json:"withMath" api:"optional,nullable"`+ ClippingHref string `json:"clippingHref" api:"optional,nullable"`+ TitleEmpty bool `json:"titleEmpty" api:"optional"`+ FileTreeCreateOptions+}+type FileTreeChangeSortRequest struct {+ Notebook string `json:"notebook"`+ Paths []string `json:"paths"`+}+type FileTreeReorderRequest struct {+ RespectSort bool `json:"respectSort" api:"optional,nullable"`+ Preview bool `json:"preview" api:"optional,nullable"`+ RemoveSorts bool `json:"removeSorts" api:"optional,nullable"`+ SourceIDs []string `json:"sourceIDs" api:"optional,nullable"`+ TargetID string `json:"targetID" api:"optional,nullable"`+ Position string `json:"position" api:"optional,nullable"`+}+type FileTreeSortItem struct {+ ID string `json:"id" api:"optional,nullable"`+ Sort *int `json:"sort" api:"optional"`+}+type FileTreeSetSortRequest struct {+ NotebookSorts []*FileTreeSortItem `json:"notebookSorts" api:"optional,nullable"`+ DocSorts []*FileTreeSortItem `json:"docSorts" api:"optional,nullable"`+}+type FileTreeSortModeRequest struct {+ ID string `json:"id" api:"optional,nullable"`+ SortMode *int `json:"sortMode"`+ sortModeFields fileTreeFields+}+type FileTreeSearchRequest struct {+ K string `json:"k"`+ Flashcard bool `json:"flashcard" api:"optional,nullable"`+ ExcludeIDs []string `json:"excludeIDs" api:"optional,nullable"`+}+type FileTreeListOptions struct {+ Sort *float64 `json:"sort" api:"optional"`+ Flashcard bool `json:"flashcard" api:"optional,nullable"`+ MaxListCount *float64 `json:"maxListCount" api:"optional"`+ ShowHidden bool `json:"showHidden" api:"optional,nullable"`+ IgnoreMaxListHint bool `json:"ignoreMaxListHint" api:"optional,nullable"`+ App string `json:"app" api:"optional,nullable"`+}+type FileTreeListRequest struct {+ FileTreePathRequest+ FileTreeListOptions+ fields fileTreeFields+}+type FileTreeGetDocOptions struct {+ IncludeDocInfo bool `json:"includeDocInfo" api:"optional,nullable"`+ Index float64 `json:"index" api:"optional,nullable"`+ Query string `json:"query" api:"optional,nullable"`+ QueryMethod float64 `json:"queryMethod" api:"optional,nullable"`+ QueryTypes map[string]bool `json:"queryTypes" api:"optional,nullable"`+ QuerySubTypes *SearchSubtypeFilter `json:"querySubTypes" api:"optional"`+ Mode float64 `json:"mode" api:"optional,nullable"`+ Size *float64 `json:"size" api:"optional"`+ StartID *string `json:"startID" api:"optional"`+ EndID *string `json:"endID" api:"optional"`+ IsBacklink bool `json:"isBacklink" api:"optional,nullable"`+ OriginalRefBlockIDs map[string]string `json:"originalRefBlockIDs" api:"optional,nullable"`+ Highlight *bool `json:"highlight" api:"optional"`+ ReqID JSONValue `json:"reqId" api:"optional,nullable"`+}+type FileTreeGetDocRequest struct {+ ID string `json:"id" api:"trim"`+ Notebook string `json:"notebook" api:"optional,nullable,ignoretype"`+ FileTreeGetDocOptions+ fields fileTreeFields+}+type FileTreePublishOptions struct {+ Visible bool `json:"visible"`+ Password string `json:"password"`+ Disable bool `json:"disable"`+}+type FileTreeSetPublishRequest struct {+ ID string `json:"id"`+ FileTreePublishOptions+ fields fileTreeFields+}+type FileTreePublishIDsRequest struct {+ IDs []string `json:"ids"`+}+type FileTreeAuthPublishRequest struct {+ ID string `json:"id"`+ Password string `json:"password"`+}+type FileTreeDocFile struct {+ ID string `json:"id"`+ Children []*FileTreeDocFile `json:"children,omitempty"`+}+type FileTreeDocTreeData struct {+ Tree []*FileTreeDocFile `json:"tree"`+}+type FileTreeDocHeadingData struct {+ SrcTreeBox string `json:"srcTreeBox"`+ SrcTreePath string `json:"srcTreePath"`+}+type FileTreeDocPathData struct {+ Path string `json:"path"`+ Notebook string `json:"notebook"`+}+type FileTreeDuplicateData struct {+ ID string `json:"id"`+ Notebook string `json:"notebook"`+ Path string `json:"path"`+ HPath string `json:"hPath"`+}+type FileTreeCreateData struct {+ ID string `json:"id"`+}+type FileTreeSavePathData struct {+ Box string `json:"box"`+ Path string `json:"path"`+}+type FileTreeCreateSavePathData struct {+ FileTreeSavePathData+ DocCreateTemplatePath string `json:"docCreateTemplatePath"`+}+type FileTreeReorderData struct {+ Changed bool `json:"changed"`+ Conflict *bool `json:"conflict,omitempty"`+ Notebook *string `json:"notebook,omitempty"`+ ParentPath *string `json:"parentPath,omitempty"`+}+type FileTreeSetSortData struct {+ NotebookIDs []string `json:"notebookIDs"`+ DocIDs []string `json:"docIDs"`+}+type FileTreeSortModeData struct {+ Box string `json:"box"`+ ID string `json:"id"`+ Path string `json:"path"`+ SortMode *int `json:"sortMode"`+ EffectiveSortMode int `json:"effectiveSortMode"`+}+type FileTreeSearchDoc struct {+ Path string `json:"path"`+ HPath string `json:"hPath"`+ Box string `json:"box"`+ BoxIcon string `json:"boxIcon"`+ Name *string `json:"name,omitempty"`+ Alias *string `json:"alias,omitempty"`+ NewFlashcardCount *string `json:"newFlashcardCount,omitempty"`+ DueFlashcardCount *string `json:"dueFlashcardCount,omitempty"`+ FlashcardCount *string `json:"flashcardCount,omitempty"`+}+type FileTreeFile struct {+ Path string `json:"path"`+ Name string `json:"name"`+ TitleEmpty bool `json:"titleEmpty,omitempty"`+ Icon string `json:"icon"`+ Name1 string `json:"name1"`+ Alias string `json:"alias"`+ Memo string `json:"memo"`+ Bookmark string `json:"bookmark"`+ ID string `json:"id"`+ Count int `json:"count"`+ Size uint64 `json:"size"`+ HSize string `json:"hSize"`+ Mtime int64 `json:"mtime"`+ CTime int64 `json:"ctime"`+ HMtime string `json:"hMtime"`+ HCtime string `json:"hCtime"`+ Sort int `json:"sort"`+ SubFileCount int `json:"subFileCount"`+ ChildrenSortMode *int `json:"childrenSortMode"`+ NewFlashcardCount int `json:"newFlashcardCount"`+ DueFlashcardCount int `json:"dueFlashcardCount"`+ FlashcardCount int `json:"flashcardCount"`+}+type FileTreeListData struct {+ Box string `json:"box"`+ Path string `json:"path"`+ Files []*FileTreeFile `json:"files"`+ EffectiveSortMode int `json:"effectiveSortMode"`+}+type FileTreeGetDocData struct {+ ID string `json:"id"`+ Mode int `json:"mode"`+ ParentID string `json:"parentID"`+ Parent2ID string `json:"parent2ID"`+ RootID string `json:"rootID"`+ Type string `json:"type"`+ Content string `json:"content"`+ BlockCount int `json:"blockCount"`+ EOF bool `json:"eof"`+ Scroll bool `json:"scroll"`+ Box string `json:"box"`+ Path string `json:"path"`+ IsSyncing bool `json:"isSyncing"`+ IsBacklinkExpand bool `json:"isBacklinkExpand"`+ Keywords []string `json:"keywords"`+ HeadingNumbers map[string]string `json:"headingNumbers"`+ PublishAccessRequired bool `json:"publishAccessRequired"`+ ReqID JSONValue `json:"reqId"`+ DocInfo *DocInfo `json:"docInfo,omitempty"`+}+type FileTreePublishItem struct {+ ID string `json:"id"`+ Visible bool `json:"visible"`+ Password string `json:"password"`+ Disable bool `json:"disable"`+}+type FileTreePublishData struct {+ PublishAccess []*FileTreePublishItem `json:"publishAccess"`+}diff --git a/kernel/apicontract/filetree_test.go b/kernel/apicontract/filetree_test.gonew file mode 100644index 0000000000..ffa7aadb68--- /dev/null+++ b/kernel/apicontract/filetree_test.go@@ -0,0 +1,162 @@+package apicontract++import (+ "encoding/json"+ "strings"+ "testing"+)++func TestFileTreeLegacyJSONNumbers(t *testing.T) {+ request, err := GetDoc.Decode(strings.NewReader(`{"id":"20260913000000-abcdefg","index":9007199254740993}`))+ if err != nil {+ t.Fatal(err)+ }+ options, err := request.Options()+ if err != nil || options.Index != 9007199254740992 {+ t.Fatalf("legacy number precision changed: %+v %v", options, err)+ }+ _, err = GetDoc.Decode(strings.NewReader(`{"id":"20260913000000-abcdefg","unused":1e400}`))+ if err == nil || !strings.Contains(err.Error(), "float64") {+ t.Fatalf("overflow in an unknown field was accepted: %v", err)+ }+}++func TestFileTreeConditionalInputs(t *testing.T) {+ for _, body := range []string{`{}`, `{"path":null,"notebook":12}`, `{"notebook":null,"path":false}`, `{"notebook":false}`} {+ value, err := GetIDsByHPath.Decode(strings.NewReader(body))+ if err != nil || value.Path != nil || value.Notebook != nil {+ t.Fatalf("missing path/notebook no-op changed: %+v %v", value, err)+ }+ }+ value, err := RenameDocByID.Decode(strings.NewReader(`{"title":false}`))+ if err != nil || value.ID != nil {+ t.Fatalf("missing rename ID no-op changed: %+v %v", value, err)+ }+ for _, body := range []string{`{"id":"20260913000000-abcdefg","startID":false}`, `{"id":"20260913000000-abcdefg","endID":12}`, `{"id":"20260913000000-abcdefg","startID":false,"endID":null}`} {+ request, err := GetDoc.Decode(strings.NewReader(body))+ if err != nil {+ t.Fatal(err)+ }+ options, err := request.Options()+ if err != nil || options.StartID != nil || options.EndID != nil {+ t.Fatalf("partial load range changed: %+v %v", options, err)+ }+ }+ request, err := GetDoc.Decode(strings.NewReader(`{"id":" 20260913000000-abcdefg ","notebook":false,"includeDocInfo":"ignored","index":2.9,"querySubTypes":{"heading":{"h1":true,"h2":"ignored"},"legacy":true}}`))+ if err != nil || request.ID != "20260913000000-abcdefg" || request.Notebook != "" {+ t.Fatalf("document admission parameters changed: %+v %v", request, err)+ }+ options, err := request.Options()+ if err != nil || options.IncludeDocInfo || int(options.Index) != 2 || !options.QuerySubTypes.Selected()["h1"] || options.QuerySubTypes.Selected()["h2"] {+ t.Fatalf("document query options changed: %+v %v", options, err)+ }+}++func TestFileTreeAdmissionBeforeDetails(t *testing.T) {+ request, err := ListDocTree.Decode(strings.NewReader(`{"notebook":"20260913000000-abcdefg","path":false}`))+ if err != nil || request.PathError() == nil {+ t.Fatalf("directory details were validated before notebook admission: %+v %v", request, err)+ }+ doc, err := GetDoc.Decode(strings.NewReader(`{"id":"20260913000000-abcdefg","index":false}`))+ if err != nil {+ t.Fatalf("document options validated before lease: %v", err)+ }+ if _, err := doc.Options(); err == nil {+ t.Fatal("invalid admitted document options accepted")+ }+ list, err := ListDocsByPath.Decode(strings.NewReader(`{"notebook":"box","path":"/","sort":false}`))+ if err != nil {+ t.Fatalf("list options validated before encrypted publish check: %v", err)+ }+ if _, err := list.Options(); err == nil {+ t.Fatal("invalid admitted sort accepted")+ }+ publish, err := SetPublishAccess.Decode(strings.NewReader(`{"id":"target","visible":false}`))+ if err != nil {+ t.Fatalf("publish details validated before target admission: %v", err)+ }+ if _, err := publish.Options(); err == nil {+ t.Fatal("missing publish options accepted")+ }+ heading, err := Heading2Doc.Decode(strings.NewReader(`{"srcHeadingID":"source","targetNoteBook":"target","toTop":"wrong"}`))+ if err != nil {+ t.Fatalf("conversion options validated before encrypted isolation: %v", err)+ }+ if _, err := heading.Options(); err == nil {+ t.Fatal("invalid admitted conversion option accepted")+ }+}++func TestFileTreeHintAndDailyNoteConditions(t *testing.T) {+ list, err := ListDocsByPath.Decode(strings.NewReader(`{"notebook":"box","path":"/","ignoreMaxListHint":true,"app":false}`))+ if err != nil {+ t.Fatal(err)+ }+ if _, err := list.Options(); err != nil {+ t.Fatalf("hint options validated before truncation: %v", err)+ }+ ignore, app, err := list.HintOptions()+ if err != nil || !ignore || app != "" {+ t.Fatalf("ignored hint app was decoded: %v %s %v", ignore, app, err)+ }+ daily, err := CreateDailyNote.Decode(strings.NewReader(`{"notebook":"box","app":false}`))+ if err != nil {+ t.Fatalf("event app was validated before daily note creation: %v", err)+ }+ if _, err := daily.AppID(); err == nil {+ t.Fatal("invalid created-note app accepted")+ }+}++func TestFileTreeSortModeNullableAndInteger(t *testing.T) {+ for _, entry := range []struct {+ body string+ valid bool+ value *int+ }{+ {`{"id":"id"}`, false, nil}, {`{"id":"id","sortMode":null}`, true, nil},+ {`{"id":"id","sortMode":1.0}`, false, nil}, {`{"id":"id","sortMode":true}`, false, nil},+ } {+ request, err := SetDocSortMode.Decode(strings.NewReader(entry.body))+ if err != nil {+ t.Fatal(err)+ }+ value, err := request.Mode()+ if (err == nil) != entry.valid || (entry.valid && value != nil) {+ t.Fatalf("sort mode behavior changed: %v %v", value, err)+ }+ }+ request, err := SetDocSortMode.Decode(strings.NewReader(`{"ID":"id","SORTMODE":3}`))+ if err != nil || request.ID != "id" {+ t.Fatal(err)+ }+ value, err := request.Mode()+ if err != nil || value == nil || *value != 3 {+ t.Fatalf("case-insensitive sort mode changed: %v %v", value, err)+ }+}++func TestFileTreeResponseSchemas(t *testing.T) {+ bundle, err := BuildBundle()+ if err != nil {+ t.Fatal(err)+ }+ for _, entry := range []struct {+ path, body string+ status int+ }{+ {"getFullHPathByID", `{"code":0,"msg":"","data":null}`, 200},+ {"getIDsByHPath", `{"code":0,"msg":"","data":null}`, 200},+ {"listDocTree", `{"code":0,"msg":"","data":{"tree":null}}`, 200},+ {"reorderDocs", `{"code":-1,"msg":"error","data":{"changed":false}}`, 200},+ {"reorderDocs", `{"code":0,"msg":"","data":{"changed":false,"conflict":false,"notebook":"","parentPath":""}}`, 200},+ {"authFilePublishAccess", `{"code":-1,"msg":"throttled","data":null}`, 429},+ } {+ if !json.Valid([]byte(entry.body)) {+ t.Fatal("invalid test fixture")+ }+ if err := bundle.ValidateHTTPResponse("POST", "/api/filetree/"+entry.path, entry.status, "application/json", []byte(entry.body)); err != nil {+ t.Fatalf("%s: %v", entry.path, err)+ }+ }+}diff --git a/kernel/apicontract/legacy_routes.json b/kernel/apicontract/legacy_routes.jsonindex df7fd0610f..1b546bacef 100644--- a/kernel/apicontract/legacy_routes.json+++ b/kernel/apicontract/legacy_routes.json@@ -95,43 +95,6 @@{"method":"POST","path":"/api/av/sortAttributeViewKey","handler":"sortAttributeViewKey"},{"method":"POST","path":"/api/av/sortAttributeViewViewKey","handler":"sortAttributeViewViewKey"},{"method":"POST","path":"/api/extension/copy","handler":"extensionCopy"},- {"method":"POST","path":"/api/filetree/authFilePublishAccess","handler":"authFilePublishAccess"},- {"method":"POST","path":"/api/filetree/changeSort","handler":"changeSort"},- {"method":"POST","path":"/api/filetree/createDailyNote","handler":"createDailyNote"},- {"method":"POST","path":"/api/filetree/createDoc","handler":"createDoc"},- {"method":"POST","path":"/api/filetree/createDocWithMd","handler":"createDocWithMd"},- {"method":"POST","path":"/api/filetree/doc2Heading","handler":"doc2Heading"},- {"method":"POST","path":"/api/filetree/duplicateDoc","handler":"duplicateDoc"},- {"method":"POST","path":"/api/filetree/getDoc","handler":"getDoc"},- {"method":"POST","path":"/api/filetree/getDocCreateSavePath","handler":"getDocCreateSavePath"},- {"method":"POST","path":"/api/filetree/getFullHPathByID","handler":"getFullHPathByID"},- {"method":"POST","path":"/api/filetree/getHPathByID","handler":"getHPathByID"},- {"method":"POST","path":"/api/filetree/getHPathByPath","handler":"getHPathByPath"},- {"method":"POST","path":"/api/filetree/getHPathsByPaths","handler":"getHPathsByPaths"},- {"method":"POST","path":"/api/filetree/getIDsByHPath","handler":"getIDsByHPath"},- {"method":"POST","path":"/api/filetree/getPathByID","handler":"getPathByID"},- {"method":"POST","path":"/api/filetree/getPublishAccess","handler":"getPublishAccess"},- {"method":"POST","path":"/api/filetree/getRefCreateSavePath","handler":"getRefCreateSavePath"},- {"method":"POST","path":"/api/filetree/getShorthandSavePath","handler":"getShorthandSavePath"},- {"method":"POST","path":"/api/filetree/heading2Doc","handler":"heading2Doc"},- {"method":"POST","path":"/api/filetree/li2Doc","handler":"li2Doc"},- {"method":"POST","path":"/api/filetree/listDocTree","handler":"listDocTree"},- {"method":"POST","path":"/api/filetree/listDocsByPath","handler":"listDocsByPath"},- {"method":"POST","path":"/api/filetree/moveDocs","handler":"moveDocs"},- {"method":"POST","path":"/api/filetree/moveDocsByID","handler":"moveDocsByID"},- {"method":"POST","path":"/api/filetree/moveLocalShorthands","handler":"moveLocalShorthands"},- {"method":"POST","path":"/api/filetree/removeDoc","handler":"removeDoc"},- {"method":"POST","path":"/api/filetree/removeDocByID","handler":"removeDocByID"},- {"method":"POST","path":"/api/filetree/removeDocs","handler":"removeDocs"},- {"method":"POST","path":"/api/filetree/removeIndexes","handler":"removeIndexes"},- {"method":"POST","path":"/api/filetree/renameDoc","handler":"renameDoc"},- {"method":"POST","path":"/api/filetree/renameDocByID","handler":"renameDocByID"},- {"method":"POST","path":"/api/filetree/reorderDocs","handler":"reorderDocs"},- {"method":"POST","path":"/api/filetree/searchDocs","handler":"searchDocs"},- {"method":"POST","path":"/api/filetree/setDocSortMode","handler":"setDocSortMode"},- {"method":"POST","path":"/api/filetree/setPublishAccess","handler":"setPublishAccess"},- {"method":"POST","path":"/api/filetree/setSort","handler":"setSort"},- {"method":"POST","path":"/api/filetree/upsertIndexes","handler":"upsertIndexes"},{"method":"POST","path":"/api/network/forwardProxy","handler":"forwardProxy"},{"method":"POST","path":"/api/setting/getBootAppearances","handler":"getBootAppearances"},{"method":"POST","path":"/api/setting/getCloudUser","handler":"getCloudUser"},diff --git a/kernel/apicontract/schema.json b/kernel/apicontract/schema.jsonindex ec05cc0bfc..ac12ae683f 100644--- a/kernel/apicontract/schema.json+++ b/kernel/apicontract/schema.json@@ -7635,82 +7635,103 @@],"additionalProperties": false},- "FindReplaceRequestInput": {+ "FileTreeAuthPublishRequestInput": {"type": "object","properties": {- "groupBy": {- "anyOf": [- {- "type": "number"- },- {- "type": "null"- }- ]+ "id": {+ "type": "string"},- "ids": {+ "password": {+ "type": "string"+ }+ },+ "required": [+ "id",+ "password"+ ],+ "additionalProperties": false+ },+ "FileTreeChangeSortRequestInput": {+ "type": "object",+ "properties": {+ "notebook": {+ "type": "string"+ },+ "paths": {"type": "array","items": {"type": "string"}- },- "k": {+ }+ },+ "required": [+ "notebook",+ "paths"+ ],+ "additionalProperties": false+ },+ "FileTreeCreateData": {+ "type": "object",+ "properties": {+ "id": {"type": "string"- },- "method": {+ }+ },+ "required": [+ "id"+ ],+ "additionalProperties": false+ },+ "FileTreeCreateMarkdownRequestInput": {+ "type": "object",+ "properties": {+ "clippingHref": {"anyOf": [{- "type": "number"+ "type": "string"},{"type": "null"}]},- "orderBy": {+ "docCreateTemplatePath": {"anyOf": [{- "type": "number"+ "type": "string"},{"type": "null"}]},- "page": {+ "id": {"anyOf": [{- "type": "number"+ "type": "string"},{"type": "null"}]},- "pageSize": {+ "listDocTree": {"anyOf": [{- "type": "number"+ "type": "boolean"},{"type": "null"}]},- "paths": {- "anyOf": [- {- "type": "array",- "items": {- "type": "string"- }- },- {- "type": "null"- }- ]+ "markdown": {+ "type": "string"},- "query": {+ "notebook": {+ "type": "string"+ },+ "parentID": {"anyOf": [{"type": "string"@@ -7720,198 +7741,113 @@}]},- "r": {+ "path": {"type": "string"},- "replaceTypes": {+ "sortPosition": {"anyOf": [{- "type": "object",- "additionalProperties": {- "type": "boolean"- }+ "type": "string"},{"type": "null"}]},- "subTypes": {+ "sortTargetID": {"anyOf": [{- "$ref": "#/$defs/SearchSubtypeFilterInput"+ "type": "string"},{"type": "null"}]},- "types": {+ "tags": {"anyOf": [{- "type": "object",- "additionalProperties": {- "type": "boolean"- }+ "type": "string"},{"type": "null"}]- }- },- "required": [- "ids",- "k",- "r"- ],- "additionalProperties": false- },- "FullBlockInfo": {- "type": "object",- "properties": {- "box": {- "type": "string"- },- "path": {- "type": "string"- },- "rootChildID": {- "type": "string"- },- "rootID": {- "type": "string"- },- "rootIcon": {- "type": "string"- },- "rootTitle": {- "type": "string"},- "rootTitleEmpty": {+ "titleEmpty": {"type": "boolean"- }- },- "required": [- "box",- "path",- "rootChildID",- "rootID",- "rootIcon",- "rootTitle",- "rootTitleEmpty"- ],- "additionalProperties": false- },- "FullTextSearchBlockData": {- "type": "object",- "properties": {- "blocks": {+ },+ "withMath": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/SearchBlock"- },- {- "type": "null"- }- ]- }+ "type": "boolean"},{"type": "null"}]- },- "docMode": {- "type": "boolean"- },- "matchedBlockCount": {- "type": "integer"- },- "matchedRootCount": {- "type": "integer"- },- "pageCount": {- "type": "integer"}},"required": [- "blocks",- "docMode",- "matchedBlockCount",- "matchedRootCount",- "pageCount"+ "markdown",+ "notebook",+ "path"],"additionalProperties": false},- "FullTextSearchBlockRequestInput": {+ "FileTreeCreateRequestInput": {"type": "object","properties": {- "groupBy": {+ "docCreateTemplatePath": {"anyOf": [{- "type": "number"+ "type": "string"},{"type": "null"}]},- "method": {+ "listDocTree": {"anyOf": [{- "type": "number"+ "type": "boolean"},{"type": "null"}]},+ "md": {+ "type": "string"+ },"notebook": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]+ "type": "string"},- "orderBy": {- "anyOf": [- {- "type": "number"- },- {- "type": "null"- }- ]+ "path": {+ "type": "string"},- "page": {+ "sortPosition": {"anyOf": [{- "type": "number"+ "type": "string"},{"type": "null"}]},- "pageSize": {+ "sortTargetID": {"anyOf": [{- "type": "number"+ "type": "string"},{"type": "null"}]},- "paths": {+ "sorts": {"anyOf": [{"type": "array",@@ -7924,7 +7860,42 @@}]},- "query": {+ "title": {+ "type": "string"+ }+ },+ "required": [+ "md",+ "notebook",+ "path",+ "title"+ ],+ "additionalProperties": false+ },+ "FileTreeCreateSavePathData": {+ "type": "object",+ "properties": {+ "box": {+ "type": "string"+ },+ "docCreateTemplatePath": {+ "type": "string"+ },+ "path": {+ "type": "string"+ }+ },+ "required": [+ "box",+ "docCreateTemplatePath",+ "path"+ ],+ "additionalProperties": false+ },+ "FileTreeDailyNoteRequestInput": {+ "type": "object",+ "properties": {+ "app": {"anyOf": [{"type": "string"@@ -7934,226 +7905,354 @@}]},- "searchHPath": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ]- },- "subTypes": {- "anyOf": [- {- "$ref": "#/$defs/SearchSubtypeFilterInput"- },- {- "type": "null"- }- ]- },- "types": {- "anyOf": [- {- "type": "object",- "additionalProperties": {- "type": "boolean"- }- },- {- "type": "null"- }- ]+ "notebook": {+ "type": "string"}},+ "required": [+ "notebook"+ ],"additionalProperties": false},- "GetBazaarIconRequestInput": {+ "FileTreeDocFile": {"type": "object","properties": {- "keyword": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]+ "children": {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/FileTreeDocFile"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "id": {+ "type": "string"}},+ "required": [+ "id"+ ],"additionalProperties": false},- "GetBazaarPackageREADMERequestInput": {+ "FileTreeDocHeadingData": {"type": "object","properties": {- "packageType": {+ "srcTreeBox": {"type": "string"},- "repoHash": {- "type": "string"- },- "repoURL": {+ "srcTreePath": {"type": "string"}},"required": [- "packageType",- "repoHash",- "repoURL"+ "srcTreeBox",+ "srcTreePath"],"additionalProperties": false},- "GetBazaarPackageRatingRequestInput": {+ "FileTreeDocHeadingRequestInput": {"type": "object","properties": {- "packageName": {+ "after": {+ "type": "boolean"+ },+ "srcID": {"type": "string"},- "packageType": {+ "targetID": {"type": "string"}},"required": [- "packageName",- "packageType"+ "after",+ "srcID",+ "targetID"],"additionalProperties": false},- "GetBazaarPackageRatingsRequestInput": {+ "FileTreeDocPathData": {"type": "object","properties": {- "packageNames": {- "type": "array",- "items": {- "type": "string"- }+ "notebook": {+ "type": "string"},- "packageType": {+ "path": {"type": "string"}},"required": [- "packageNames",- "packageType"+ "notebook",+ "path"],"additionalProperties": false},- "GetBazaarPackageRequestInput": {+ "FileTreeDocTreeData": {"type": "object","properties": {- "frontend": {+ "tree": {"anyOf": [{- "type": "string"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/FileTreeDocFile"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"}]- },- "packageName": {- "type": "string"- },- "packageType": {- "type": "string"}},"required": [- "packageName",- "packageType"+ "tree"],"additionalProperties": false},- "GetBazaarPackageUserRatingsRequestInput": {+ "FileTreeDuplicateData": {"type": "object","properties": {- "packageNames": {- "type": "array",- "items": {- "type": "string"- }+ "hPath": {+ "type": "string"},- "packageType": {+ "id": {+ "type": "string"+ },+ "notebook": {+ "type": "string"+ },+ "path": {"type": "string"}},"required": [- "packageNames",- "packageType"+ "hPath",+ "id",+ "notebook",+ "path"],"additionalProperties": false},- "GetBazaarPluginRequestInput": {+ "FileTreeFile": {"type": "object","properties": {- "frontend": {+ "alias": {"type": "string"},- "keyword": {+ "bookmark": {+ "type": "string"+ },+ "childrenSortMode": {"anyOf": [{- "type": "string"+ "type": "integer"},{"type": "null"}]+ },+ "count": {+ "type": "integer"+ },+ "ctime": {+ "type": "integer"+ },+ "dueFlashcardCount": {+ "type": "integer"+ },+ "flashcardCount": {+ "type": "integer"+ },+ "hCtime": {+ "type": "string"+ },+ "hMtime": {+ "type": "string"+ },+ "hSize": {+ "type": "string"+ },+ "icon": {+ "type": "string"+ },+ "id": {+ "type": "string"+ },+ "memo": {+ "type": "string"+ },+ "mtime": {+ "type": "integer"+ },+ "name": {+ "type": "string"+ },+ "name1": {+ "type": "string"+ },+ "newFlashcardCount": {+ "type": "integer"+ },+ "path": {+ "type": "string"+ },+ "size": {+ "type": "integer"+ },+ "sort": {+ "type": "integer"+ },+ "subFileCount": {+ "type": "integer"+ },+ "titleEmpty": {+ "type": "boolean"}},"required": [- "frontend"+ "alias",+ "bookmark",+ "childrenSortMode",+ "count",+ "ctime",+ "dueFlashcardCount",+ "flashcardCount",+ "hCtime",+ "hMtime",+ "hSize",+ "icon",+ "id",+ "memo",+ "mtime",+ "name",+ "name1",+ "newFlashcardCount",+ "path",+ "size",+ "sort",+ "subFileCount"],"additionalProperties": false},- "GetBazaarTemplateRequestInput": {+ "FileTreeGetDocData": {"type": "object","properties": {- "keyword": {+ "blockCount": {+ "type": "integer"+ },+ "box": {+ "type": "string"+ },+ "content": {+ "type": "string"+ },+ "docInfo": {+ "$ref": "#/$defs/DocInfo"+ },+ "eof": {+ "type": "boolean"+ },+ "headingNumbers": {"anyOf": [{- "type": "string"- },- {- "type": "null"- }- ]- }- },- "additionalProperties": false- },- "GetBazaarThemeRequestInput": {- "type": "object",- "properties": {- "frontend": {- "anyOf": [- {- "type": "string"+ "type": "object",+ "additionalProperties": {+ "type": "string"+ }},{"type": "null"}]},- "keyword": {+ "id": {+ "type": "string"+ },+ "isBacklinkExpand": {+ "type": "boolean"+ },+ "isSyncing": {+ "type": "boolean"+ },+ "keywords": {"anyOf": [{- "type": "string"+ "type": "array",+ "items": {+ "type": "string"+ }},{"type": "null"}]+ },+ "mode": {+ "type": "integer"+ },+ "parent2ID": {+ "type": "string"+ },+ "parentID": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "publishAccessRequired": {+ "type": "boolean"+ },+ "reqId": {+ "$ref": "#/$defs/JSONValue"+ },+ "rootID": {+ "type": "string"+ },+ "scroll": {+ "type": "boolean"+ },+ "type": {+ "type": "string"}},+ "required": [+ "blockCount",+ "box",+ "content",+ "eof",+ "headingNumbers",+ "id",+ "isBacklinkExpand",+ "isSyncing",+ "keywords",+ "mode",+ "parent2ID",+ "parentID",+ "path",+ "publishAccessRequired",+ "reqId",+ "rootID",+ "scroll",+ "type"+ ],"additionalProperties": false},- "GetBazaarWidgetRequestInput": {+ "FileTreeGetDocRequestInput": {"type": "object","properties": {- "keyword": {+ "endID": {"anyOf": [{"type": "string"@@ -8162,26 +8261,8 @@"type": "null"}]- }- },- "additionalProperties": false- },- "GetCloudRepoSnapshotsRequestInput": {- "type": "object",- "properties": {- "page": {- "type": "number"- }- },- "required": [- "page"- ],- "additionalProperties": false- },- "GetEmbedBlockRequestInput": {- "type": "object",- "properties": {- "breadcrumb": {+ },+ "highlight": {"anyOf": [{"type": "boolean"@@ -8191,100 +8272,50 @@}]},- "embedBlockID": {+ "id": {"type": "string"},- "headingMode": {+ "includeDocInfo": {"anyOf": [{- "type": "number"+ "type": "boolean"},{"type": "null"}]},- "includeIDs": {- "type": "array",- "items": {- "type": "string"- }- },- "notebook": {+ "index": {"anyOf": [{- "type": "string"+ "type": "number"},{"type": "null"}]- }- },- "required": [- "embedBlockID",- "includeIDs"- ],- "additionalProperties": false- },- "GetInstalledIconRequestInput": {- "type": "object",- "properties": {- "keyword": {+ },+ "isBacklink": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"}]- }- },- "additionalProperties": false- },- "GetInstalledPackageSizeRequestInput": {- "type": "object",- "properties": {- "packageName": {- "type": "string"- },- "packageType": {- "type": "string"- }- },- "required": [- "packageName",- "packageType"- ],- "additionalProperties": false- },- "GetInstalledPluginRequestInput": {- "type": "object",- "properties": {- "frontend": {- "type": "string"},- "keyword": {+ "mode": {"anyOf": [{- "type": "string"+ "type": "number"},{"type": "null"}]- }- },- "required": [- "frontend"- ],- "additionalProperties": false- },- "GetInstalledTemplateRequestInput": {- "type": "object",- "properties": {- "keyword": {+ },+ "notebook": {"anyOf": [{"type": "string"@@ -8293,24 +8324,21 @@"type": "null"}]- }- },- "additionalProperties": false- },- "GetInstalledThemeRequestInput": {- "type": "object",- "properties": {- "frontend": {+ },+ "originalRefBlockIDs": {"anyOf": [{- "type": "string"+ "type": "object",+ "additionalProperties": {+ "type": "string"+ }},{"type": "null"}]},- "keyword": {+ "query": {"anyOf": [{"type": "string"@@ -8319,116 +8347,51 @@"type": "null"}]- }- },- "additionalProperties": false- },- "GetInstalledWidgetRequestInput": {- "type": "object",- "properties": {- "keyword": {+ },+ "queryMethod": {"anyOf": [{- "type": "string"+ "type": "number"},{"type": "null"}]- }- },- "additionalProperties": false- },- "GetRepoDocHistoryRequestInput": {- "type": "object",- "properties": {- "id": {- "type": "string"- },- "page": {- "type": "number"- }- },- "required": [- "id",- "page"- ],- "additionalProperties": false- },- "GetRepoFileRequestInput": {- "type": "object",- "properties": {- "id": {- "type": "string"- }- },- "required": [- "id"- ],- "additionalProperties": false- },- "GetRepoSnapshotsRequestInput": {- "type": "object",- "properties": {- "page": {- "type": "number"- }- },- "required": [- "page"- ],- "additionalProperties": false- },- "GetSnippetRequestInput": {- "type": "object",- "properties": {- "enabled": {- "type": "number"},- "keyword": {+ "querySubTypes": {"anyOf": [{- "type": "string"+ "$ref": "#/$defs/SearchSubtypeFilterInput"},{"type": "null"}]},- "type": {- "type": "string"- }- },- "required": [- "enabled",- "type"- ],- "additionalProperties": false- },- "GetTagRequestInput": {- "type": "object",- "properties": {- "app": {+ "queryTypes": {"anyOf": [{- "type": "string"+ "type": "object",+ "additionalProperties": {+ "type": "boolean"+ }},{"type": "null"}]},- "ignoreMaxListHint": {+ "reqId": {"anyOf": [{- "type": "boolean"+ "$ref": "#/$defs/JSONValue"},{"type": "null"}]},- "sort": {+ "size": {"anyOf": [{"type": "number"@@ -8437,67 +8400,43 @@"type": "null"}]- }- },- "additionalProperties": false- },- "GetUpdatedPackageRequestInput": {- "type": "object",- "properties": {- "frontend": {- "type": "string"+ },+ "startID": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]}},"required": [- "frontend"+ "id"],"additionalProperties": false},- "GlobalGraphConf": {+ "FileTreeHeadingDocRequestInput": {"type": "object","properties": {- "d3": {+ "previousPath": {"anyOf": [{- "$ref": "#/$defs/GraphD3"+ "type": "string"},{"type": "null"}]},- "dailyNote": {- "type": "boolean"- },- "minRefs": {- "type": "integer"+ "srcHeadingID": {+ "type": "string"},- "type": {- "anyOf": [- {- "$ref": "#/$defs/GraphTypeFilter"- },- {- "type": "null"- }- ]- }- },- "required": [- "d3",- "dailyNote",- "minRefs",- "type"- ],- "additionalProperties": false- },- "GlobalGraphRequestInput": {- "type": "object",- "properties": {- "conf": {- "$ref": "#/$defs/GraphConfigurationFieldsInput"+ "targetNoteBook": {+ "type": "string"},- "k": {+ "targetPath": {"anyOf": [{"type": "string"@@ -8507,10 +8446,10 @@}]},- "reqId": {+ "toTop": {"anyOf": [{- "$ref": "#/$defs/JSONValue"+ "type": "boolean"},{"type": "null"@@ -8519,47 +8458,40 @@}},"required": [- "conf"+ "srcHeadingID",+ "targetNoteBook"],"additionalProperties": false},- "GlobalGraphResult": {+ "FileTreeIDRequestInput": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string"+ }+ },+ "required": [+ "id"+ ],+ "additionalProperties": false+ },+ "FileTreeListData": {"type": "object","properties": {"box": {"type": "string"},- "conf": {- "$ref": "#/$defs/GlobalGraphConf"- },- "links": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/GraphLink"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "effectiveSortMode": {+ "type": "integer"},- "nodes": {+ "files": {"anyOf": [{"type": "array","items": {"anyOf": [{- "$ref": "#/$defs/GraphNode"+ "$ref": "#/$defs/FileTreeFile"},{"type": "null"@@ -8572,87 +8504,51 @@}]},- "reqId": {- "$ref": "#/$defs/JSONValue"+ "path": {+ "type": "string"}},"required": ["box",- "conf",- "links",- "nodes",- "reqId"- ],- "additionalProperties": false- },- "GraphArrows": {- "type": "object",- "properties": {- "to": {- "anyOf": [- {- "$ref": "#/$defs/GraphArrowsTo"- },- {- "type": "null"- }- ]- }- },- "required": [- "to"- ],- "additionalProperties": false- },- "GraphArrowsTo": {- "type": "object",- "properties": {- "enabled": {- "type": "boolean"- }- },- "required": [- "enabled"+ "effectiveSortMode",+ "files",+ "path"],"additionalProperties": false},- "GraphConfigurationFieldsInput": {+ "FileTreeListItemDocRequestInput": {"type": "object","properties": {- "d3": {+ "previousPath": {"anyOf": [{- "$ref": "#/$defs/GraphD3Input"+ "type": "string"},{"type": "null"}]},- "dailyNote": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ]+ "srcListItemID": {+ "type": "string"},- "minRefs": {+ "targetNoteBook": {+ "type": "string"+ },+ "targetPath": {"anyOf": [{- "type": "integer"+ "type": "string"},{"type": "null"}]},- "type": {+ "toTop": {"anyOf": [{- "$ref": "#/$defs/GraphTypeFilterInput"+ "type": "boolean"},{"type": "null"@@ -8660,94 +8556,46 @@]}},- "additionalProperties": false- },- "GraphCorrelation": {- "type": "object",- "properties": {- "reqId": {- "$ref": "#/$defs/JSONValue"- }- },- "required": [- "reqId"- ],- "additionalProperties": false- },- "GraphD3": {- "type": "object",- "properties": {- "arrow": {- "type": "boolean"- },- "centerStrength": {- "type": "number"- },- "collideRadius": {- "type": "number"- },- "collideStrength": {- "type": "number"- },- "lineOpacity": {- "type": "number"- },- "linkDistance": {- "type": "integer"- },- "linkWidth": {- "type": "number"- },- "nodeSize": {- "type": "number"- }- },"required": [- "arrow",- "centerStrength",- "collideRadius",- "collideStrength",- "lineOpacity",- "linkDistance",- "linkWidth",- "nodeSize"+ "srcListItemID",+ "targetNoteBook"],"additionalProperties": false},- "GraphD3Input": {+ "FileTreeListRequestInput": {"type": "object","properties": {- "arrow": {+ "app": {"anyOf": [{- "type": "boolean"+ "type": "string"},{"type": "null"}]},- "centerStrength": {+ "flashcard": {"anyOf": [{- "type": "number"+ "type": "boolean"},{"type": "null"}]},- "collideRadius": {+ "ignoreMaxListHint": {"anyOf": [{- "type": "number"+ "type": "boolean"},{"type": "null"}]},- "collideStrength": {+ "maxListCount": {"anyOf": [{"type": "number"@@ -8757,40 +8605,120 @@}]},- "lineOpacity": {+ "notebook": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "showHidden": {"anyOf": [{- "type": "number"+ "type": "boolean"},{"type": "null"}]},- "linkDistance": {+ "sort": {"anyOf": [{- "type": "integer"+ "type": "number"},{"type": "null"}]- },- "linkWidth": {+ }+ },+ "required": [+ "notebook",+ "path"+ ],+ "additionalProperties": false+ },+ "FileTreeMoveIDsRequestInput": {+ "type": "object",+ "properties": {+ "callback": {"anyOf": [{- "type": "number"+ "$ref": "#/$defs/JSONValue"},{"type": "null"}]},- "nodeSize": {- "anyOf": [- {- "type": "number"+ "fromIDs": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "toID": {+ "type": "string"+ }+ },+ "required": [+ "fromIDs",+ "toID"+ ],+ "additionalProperties": false+ },+ "FileTreeMoveRequestInput": {+ "type": "object",+ "properties": {+ "callback": {+ "anyOf": [+ {+ "$ref": "#/$defs/JSONValue"+ },+ {+ "type": "null"+ }+ ]+ },+ "fromPaths": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "toNotebook": {+ "type": "string"+ },+ "toPath": {+ "type": "string"+ }+ },+ "required": [+ "fromPaths",+ "toNotebook",+ "toPath"+ ],+ "additionalProperties": false+ },+ "FileTreeNotebookRequestInput": {+ "type": "object",+ "properties": {+ "notebook": {+ "type": "string"+ }+ },+ "required": [+ "notebook"+ ],+ "additionalProperties": false+ },+ "FileTreeOptionalIDRequestInput": {+ "type": "object",+ "properties": {+ "id": {+ "anyOf": [+ {+ "type": "string"},{"type": "null"@@ -8800,146 +8728,208 @@},"additionalProperties": false},- "GraphLink": {+ "FileTreeOptionalPathRequestInput": {"type": "object","properties": {- "arrows": {+ "notebook": {"anyOf": [{- "$ref": "#/$defs/GraphArrows"+ "type": "string"},{"type": "null"}]},- "from": {+ "path": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "FileTreePathRequestInput": {+ "type": "object",+ "properties": {+ "notebook": {"type": "string"},- "ref": {- "type": "boolean"- },- "to": {+ "path": {"type": "string"}},"required": [- "arrows",- "from",- "ref",- "to"+ "notebook",+ "path"],"additionalProperties": false},- "GraphNode": {+ "FileTreePathsRequestInput": {"type": "object","properties": {- "box": {+ "paths": {+ "type": "array",+ "items": {+ "type": "string"+ }+ }+ },+ "required": [+ "paths"+ ],+ "additionalProperties": false+ },+ "FileTreePublishData": {+ "type": "object",+ "properties": {+ "publishAccess": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/FileTreePublishItem"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": [+ "publishAccess"+ ],+ "additionalProperties": false+ },+ "FileTreePublishIDsRequestInput": {+ "type": "object",+ "properties": {+ "ids": {+ "type": "array",+ "items": {+ "type": "string"+ }+ }+ },+ "required": [+ "ids"+ ],+ "additionalProperties": false+ },+ "FileTreePublishItem": {+ "type": "object",+ "properties": {+ "disable": {+ "type": "boolean"+ },+ "id": {"type": "string"},- "defs": {- "type": "integer"+ "password": {+ "type": "string"},+ "visible": {+ "type": "boolean"+ }+ },+ "required": [+ "disable",+ "id",+ "password",+ "visible"+ ],+ "additionalProperties": false+ },+ "FileTreeRenameIDRequestInput": {+ "type": "object",+ "properties": {"id": {- "type": "string"+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]},- "label": {+ "title": {+ "type": "string"+ }+ },+ "required": [+ "title"+ ],+ "additionalProperties": false+ },+ "FileTreeRenameRequestInput": {+ "type": "object",+ "properties": {+ "notebook": {"type": "string"},"path": {"type": "string"},- "refs": {- "type": "integer"- },- "size": {- "type": "number"- },"title": {"type": "string"- },- "type": {- "type": "string"}},"required": [- "box",- "defs",- "id",- "label",+ "notebook","path",- "refs",- "size",- "type"+ "title"],"additionalProperties": false},- "GraphTypeFilter": {+ "FileTreeReorderData": {"type": "object","properties": {- "blockquote": {- "type": "boolean"- },- "callout": {- "type": "boolean"- },- "code": {- "type": "boolean"- },- "heading": {- "type": "boolean"- },- "list": {- "type": "boolean"- },- "listItem": {- "type": "boolean"- },- "math": {- "type": "boolean"- },- "paragraph": {+ "changed": {"type": "boolean"},- "super": {+ "conflict": {"type": "boolean"},- "table": {- "type": "boolean"+ "notebook": {+ "type": "string"},- "tag": {- "type": "boolean"+ "parentPath": {+ "type": "string"}},"required": [- "blockquote",- "callout",- "code",- "heading",- "list",- "listItem",- "math",- "paragraph",- "super",- "table",- "tag"+ "changed"],"additionalProperties": false},- "GraphTypeFilterInput": {+ "FileTreeReorderRequestInput": {"type": "object","properties": {- "blockquote": {+ "position": {"anyOf": [{- "type": "boolean"+ "type": "string"},{"type": "null"}]},- "callout": {+ "preview": {"anyOf": [{"type": "boolean"@@ -8949,7 +8939,7 @@}]},- "code": {+ "removeSorts": {"anyOf": [{"type": "boolean"@@ -8959,7 +8949,7 @@}]},- "heading": {+ "respectSort": {"anyOf": [{"type": "boolean"@@ -8969,67 +8959,104 @@}]},- "list": {+ "sourceIDs": {"anyOf": [{- "type": "boolean"+ "type": "array",+ "items": {+ "type": "string"+ }},{"type": "null"}]},- "listItem": {+ "targetID": {"anyOf": [{- "type": "boolean"+ "type": "string"},{"type": "null"}]+ }+ },+ "additionalProperties": false+ },+ "FileTreeSavePathData": {+ "type": "object",+ "properties": {+ "box": {+ "type": "string"},- "math": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ]+ "path": {+ "type": "string"+ }+ },+ "required": [+ "box",+ "path"+ ],+ "additionalProperties": false+ },+ "FileTreeSearchDoc": {+ "type": "object",+ "properties": {+ "alias": {+ "type": "string"},- "paragraph": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ]+ "box": {+ "type": "string"},- "super": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ]+ "boxIcon": {+ "type": "string"},- "table": {+ "dueFlashcardCount": {+ "type": "string"+ },+ "flashcardCount": {+ "type": "string"+ },+ "hPath": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "newFlashcardCount": {+ "type": "string"+ },+ "path": {+ "type": "string"+ }+ },+ "required": [+ "box",+ "boxIcon",+ "hPath",+ "path"+ ],+ "additionalProperties": false+ },+ "FileTreeSearchRequestInput": {+ "type": "object",+ "properties": {+ "excludeIDs": {"anyOf": [{- "type": "boolean"+ "type": "array",+ "items": {+ "type": "string"+ }},{"type": "null"}]},- "tag": {+ "flashcard": {"anyOf": [{"type": "boolean"@@ -9038,139 +9065,187 @@"type": "null"}]+ },+ "k": {+ "type": "string"}},+ "required": [+ "k"+ ],"additionalProperties": false},- "HTMLClipboardPreflight": {+ "FileTreeSetPublishRequestInput": {"type": "object","properties": {- "converted": {+ "disable": {"type": "boolean"},- "dom": {+ "id": {"type": "string"},- "normalizedHTML": {+ "password": {"type": "string"},- "useHTML": {+ "visible": {"type": "boolean"}},"required": [- "converted",- "useHTML"+ "disable",+ "id",+ "password",+ "visible"],"additionalProperties": false},- "HTMLClipboardRequestInput": {+ "FileTreeSetSortData": {"type": "object","properties": {- "dom": {- "type": "string"- },- "mathML": {+ "docIDs": {"anyOf": [{- "type": "string"+ "type": "array",+ "items": {+ "type": "string"+ }},{"type": "null"}]},- "notebook": {+ "notebookIDs": {"anyOf": [{- "type": "string"+ "type": "array",+ "items": {+ "type": "string"+ }},{"type": "null"}]- },- "office": {+ }+ },+ "required": [+ "docIDs",+ "notebookIDs"+ ],+ "additionalProperties": false+ },+ "FileTreeSetSortRequestInput": {+ "type": "object",+ "properties": {+ "docSorts": {"anyOf": [{- "type": "string"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/FileTreeSortItemInput"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"}]},- "officeMathHTML": {+ "notebookSorts": {"anyOf": [{- "type": "string"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/FileTreeSortItemInput"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"}]- },- "preflight": {+ }+ },+ "additionalProperties": false+ },+ "FileTreeSortItemInput": {+ "type": "object",+ "properties": {+ "id": {"anyOf": [{- "type": "boolean"+ "type": "string"},{"type": "null"}]},- "preparedHTML": {+ "sort": {"anyOf": [{- "type": "boolean"+ "type": "integer"},{"type": "null"}]+ }+ },+ "additionalProperties": false+ },+ "FileTreeSortModeData": {+ "type": "object",+ "properties": {+ "box": {+ "type": "string"},- "preserveSourceFormat": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ]+ "effectiveSortMode": {+ "type": "integer"},- "skipBase64Assets": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ]+ "id": {+ "type": "string"},- "skipInlineSVGAssets": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ]+ "path": {+ "type": "string"},- "skipLocalAssets": {+ "sortMode": {"anyOf": [{- "type": "boolean"+ "type": "integer"},{"type": "null"}]- },- "text": {+ }+ },+ "required": [+ "box",+ "effectiveSortMode",+ "id",+ "path",+ "sortMode"+ ],+ "additionalProperties": false+ },+ "FileTreeSortModeRequestInput": {+ "type": "object",+ "properties": {+ "id": {"anyOf": [{"type": "string"@@ -9180,10 +9255,10 @@}]},- "wps": {+ "sortMode": {"anyOf": [{- "type": "string"+ "type": "integer"},{"type": "null"@@ -9192,65 +9267,34 @@}},"required": [- "dom"+ "sortMode"],"additionalProperties": false},- "HTMLData": {+ "FileTreeTrimIDRequestInput": {"type": "object","properties": {- "html": {+ "id": {"type": "string"}},"required": [- "html"+ "id"],"additionalProperties": false},- "HeadingChildrenRequestInput": {+ "FindReplaceRequestInput": {"type": "object","properties": {- "id": {- "type": "string"- },- "removeFoldAttr": {+ "groupBy": {"anyOf": [{- "type": "boolean"+ "type": "number"},{"type": "null"}]- }- },- "required": [- "id"- ],- "additionalProperties": false- },- "HeadingFoldRequestInput": {- "type": "object",- "properties": {- "id": {- "type": "string"- },- "scope": {- "type": "string"- }- },- "required": [- "id",- "scope"- ],- "additionalProperties": false- },- "HeadingLevelRequestInput": {- "type": "object",- "properties": {- "id": {- "type": "string"},"ids": {"type": "array",@@ -9258,60 +9302,104 @@"type": "string"}},- "level": {- "type": "number"- }- },- "required": [- "level"- ],- "additionalProperties": false- },- "HeadingNumbersRequestInput": {- "type": "object",- "properties": {- "id": {+ "k": {+ "type": "string"+ },+ "method": {"anyOf": [{- "type": "string"+ "type": "number"},{"type": "null"}]},- "notebook": {+ "orderBy": {"anyOf": [{- "type": "string"+ "type": "number"},{"type": "null"}]- }- },- "additionalProperties": false- },- "History": {- "type": "object",- "properties": {- "hCreated": {- "type": "string"},- "items": {+ "page": {+ "anyOf": [+ {+ "type": "number"+ },+ {+ "type": "null"+ }+ ]+ },+ "pageSize": {+ "anyOf": [+ {+ "type": "number"+ },+ {+ "type": "null"+ }+ ]+ },+ "paths": {"anyOf": [{"type": "array","items": {- "anyOf": [- {- "$ref": "#/$defs/HistoryItem"- },- {- "type": "null"- }- ]+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "query": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "r": {+ "type": "string"+ },+ "replaceTypes": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "boolean"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "subTypes": {+ "anyOf": [+ {+ "$ref": "#/$defs/SearchSubtypeFilterInput"+ },+ {+ "type": "null"+ }+ ]+ },+ "types": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "boolean"}},{@@ -9321,50 +9409,59 @@}},"required": [- "hCreated",- "items"+ "ids",+ "k",+ "r"],"additionalProperties": false},- "HistoryItem": {+ "FullBlockInfo": {"type": "object","properties": {- "id": {+ "box": {"type": "string"},- "notebook": {+ "path": {"type": "string"},- "op": {+ "rootChildID": {"type": "string"},- "path": {+ "rootID": {"type": "string"},- "title": {+ "rootIcon": {+ "type": "string"+ },+ "rootTitle": {"type": "string"+ },+ "rootTitleEmpty": {+ "type": "boolean"}},"required": [- "id",- "notebook",- "op",+ "box","path",- "title"+ "rootChildID",+ "rootID",+ "rootIcon",+ "rootTitle",+ "rootTitleEmpty"],"additionalProperties": false},- "HistoryItemsData": {+ "FullTextSearchBlockData": {"type": "object","properties": {- "items": {+ "blocks": {"anyOf": [{"type": "array","items": {"anyOf": [{- "$ref": "#/$defs/HistoryItem"+ "$ref": "#/$defs/SearchBlock"},{"type": "null"@@ -9376,40 +9473,53 @@"type": "null"}]+ },+ "docMode": {+ "type": "boolean"+ },+ "matchedBlockCount": {+ "type": "integer"+ },+ "matchedRootCount": {+ "type": "integer"+ },+ "pageCount": {+ "type": "integer"}},"required": [- "items"+ "blocks",+ "docMode",+ "matchedBlockCount",+ "matchedRootCount",+ "pageCount"],"additionalProperties": false},- "HistoryItemsRequestInput": {+ "FullTextSearchBlockRequestInput": {"type": "object","properties": {- "created": {- "type": "string"- },- "notebook": {+ "groupBy": {"anyOf": [{- "type": "string"+ "type": "number"},{"type": "null"}]},- "op": {+ "method": {"anyOf": [{- "type": "string"+ "type": "number"},{"type": "null"}]},- "query": {+ "notebook": {"anyOf": [{"type": "string"@@ -9419,7 +9529,7 @@}]},- "type": {+ "orderBy": {"anyOf": [{"type": "number"@@ -9428,85 +9538,33 @@"type": "null"}]- }- },- "required": [- "created"- ],- "additionalProperties": false- },- "HistoryPathRequestInput": {- "type": "object",- "properties": {- "historyPath": {- "type": "string"- }- },- "required": [- "historyPath"- ],- "additionalProperties": false- },- "ImportAutoDocument": {- "type": "object",- "properties": {- "token": {- "type": "string"},- "type": {- "type": "string",- "enum": [- "document"+ "page": {+ "anyOf": [+ {+ "type": "number"+ },+ {+ "type": "null"+ }]- }- },- "required": [- "type"- ],- "additionalProperties": false- },- "ImportAutoNotebook": {- "type": "object",- "properties": {- "notebook": {+ },+ "pageSize": {"anyOf": [{- "$ref": "#/$defs/Notebook"+ "type": "number"},{"type": "null"}]},- "type": {- "type": "string",- "enum": [- "notebook"- ]- }- },- "required": [- "notebook",- "type"- ],- "additionalProperties": false- },- "ImportAutoNotebooks": {- "type": "object",- "properties": {- "notebooks": {+ "paths": {"anyOf": [{"type": "array","items": {- "anyOf": [- {- "$ref": "#/$defs/Notebook"- },- {- "type": "null"- }- ]+ "type": "string"}},{@@ -9514,156 +9572,178 @@}]},- "type": {- "type": "string",- "enum": [- "notebooks"+ "query": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "searchHPath": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "subTypes": {+ "anyOf": [+ {+ "$ref": "#/$defs/SearchSubtypeFilterInput"+ },+ {+ "type": "null"+ }+ ]+ },+ "types": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "boolean"+ }+ },+ {+ "type": "null"+ }]- }- },- "required": [- "notebooks",- "type"- ],- "additionalProperties": false- },- "ImportDataRequestInput": {- "type": "object",- "properties": {- "file": {- "type": "string",- "format": "binary"}},"additionalProperties": false},- "ImportDocumentData": {+ "GetBazaarIconRequestInput": {"type": "object","properties": {- "type": {- "type": "string",- "enum": [- "document"+ "keyword": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }]}},- "required": [- "type"- ],"additionalProperties": false},- "ImportMarkdownRequestInput": {+ "GetBazaarPackageREADMERequestInput": {"type": "object","properties": {- "localPath": {+ "packageType": {"type": "string"},- "notebook": {+ "repoHash": {"type": "string"},- "skipRoot": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ]- },- "toPath": {+ "repoURL": {"type": "string"}},"required": [- "localPath",- "notebook",- "toPath"+ "packageType",+ "repoHash",+ "repoURL"],"additionalProperties": false},- "ImportNotebookCryptoBackupRequestInput": {+ "GetBazaarPackageRatingRequestInput": {"type": "object","properties": {- "file": {- "type": "string",- "format": "binary"+ "packageName": {+ "type": "string"},- "password": {+ "packageType": {"type": "string"}},"required": [- "file"+ "packageName",+ "packageType"],"additionalProperties": false},- "ImportRepoKeyRequestInput": {+ "GetBazaarPackageRatingsRequestInput": {"type": "object","properties": {- "key": {+ "packageNames": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "packageType": {"type": "string"}},"required": [- "key"+ "packageNames",+ "packageType"],"additionalProperties": false},- "ImportSYRequestInput": {+ "GetBazaarPackageRequestInput": {"type": "object","properties": {- "file": {- "type": "string",- "format": "binary"+ "frontend": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]},- "notebook": {+ "packageName": {"type": "string"},- "toPath": {+ "packageType": {"type": "string"}},+ "required": [+ "packageName",+ "packageType"+ ],"additionalProperties": false},- "ImportTokenRequestInput": {+ "GetBazaarPackageUserRatingsRequestInput": {"type": "object","properties": {- "token": {+ "packageNames": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "packageType": {"type": "string"}},"required": [- "token"+ "packageNames",+ "packageType"],"additionalProperties": false},- "ImportZipMarkdownRequestInput": {+ "GetBazaarPluginRequestInput": {"type": "object","properties": {- "file": {- "type": "string",- "format": "binary"- },- "notebook": {- "type": "string"- },- "skipRoot": {+ "frontend": {"type": "string"},- "toPath": {- "type": "string"- }- },- "additionalProperties": false- },- "ImportedNotebook": {- "type": "object",- "properties": {- "notebook": {+ "keyword": {"anyOf": [{- "$ref": "#/$defs/Notebook"+ "type": "string"},{"type": "null"@@ -9672,27 +9752,17 @@}},"required": [- "notebook"+ "frontend"],"additionalProperties": false},- "ImportedNotebooks": {+ "GetBazaarTemplateRequestInput": {"type": "object","properties": {- "notebooks": {+ "keyword": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/Notebook"- },- {- "type": "null"- }- ]- }+ "type": "string"},{"type": "null"@@ -9700,94 +9770,41 @@]}},- "required": [- "notebooks"- ],"additionalProperties": false},- "InitRepoKeyFromPassphraseRequestInput": {+ "GetBazaarThemeRequestInput": {"type": "object","properties": {- "pass": {- "type": "string"- }- },- "required": [- "pass"- ],- "additionalProperties": false- },- "InlineStyle": {- "type": "object",- "properties": {- "dark": {+ "frontend": {"anyOf": [{- "$ref": "#/$defs/InlineStyleTheme"+ "type": "string"},{"type": "null"}]},- "hidden": {- "type": "boolean"- },- "id": {- "type": "string"- },- "light": {+ "keyword": {"anyOf": [{- "$ref": "#/$defs/InlineStyleTheme"+ "type": "string"},{"type": "null"}]- },- "name": {- "type": "string"}},- "required": [- "dark",- "id",- "light",- "name"- ],"additionalProperties": false},- "InlineStyleAV": {+ "GetBazaarWidgetRequestInput": {"type": "object","properties": {- "colors": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/AttributeViewCustomColor"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]- },- "order": {+ "keyword": {"anyOf": [{- "type": "array",- "items": {- "type": "string"- }+ "type": "string"},{"type": "null"@@ -9795,98 +9812,56 @@]}},- "required": [- "colors",- "order"- ],"additionalProperties": false},- "InlineStyleAVInput": {+ "GetCloudRepoSnapshotsRequestInput": {"type": "object","properties": {- "colors": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/AttributeViewCustomColorInput"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]- },- "order": {- "anyOf": [- {- "type": "array",- "items": {- "type": "string"- }- },- {- "type": "null"- }- ]+ "page": {+ "type": "number"}},+ "required": [+ "page"+ ],"additionalProperties": false},- "InlineStyleBuiltin": {+ "GetEmbedBlockRequestInput": {"type": "object","properties": {- "colors": {+ "breadcrumb": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/InlineStyleBuiltinColor"- },- {- "type": "null"- }- ]- }+ "type": "boolean"},{"type": "null"}]},- "hidden": {+ "embedBlockID": {+ "type": "string"+ },+ "headingMode": {"anyOf": [{- "$ref": "#/$defs/InlineStyleBuiltinHidden"+ "type": "number"},{"type": "null"}]},- "styles": {+ "includeIDs": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "notebook": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/InlineStyleBuiltinStyle"- },- {- "type": "null"- }- ]- }+ "type": "string"},{"type": "null"@@ -9895,73 +9870,72 @@}},"required": [- "colors",- "hidden",- "styles"+ "embedBlockID",+ "includeIDs"],"additionalProperties": false},- "InlineStyleBuiltinColor": {+ "GetInstalledIconRequestInput": {"type": "object","properties": {- "dark": {+ "keyword": {"anyOf": [{- "$ref": "#/$defs/InlineStyleTheme"+ "type": "string"},{"type": "null"}]+ }+ },+ "additionalProperties": false+ },+ "GetInstalledPackageSizeRequestInput": {+ "type": "object",+ "properties": {+ "packageName": {+ "type": "string"},- "index": {- "type": "integer"- },- "light": {- "anyOf": [- {- "$ref": "#/$defs/InlineStyleTheme"- },- {- "type": "null"- }- ]+ "packageType": {+ "type": "string"}},"required": [- "dark",- "index",- "light"+ "packageName",+ "packageType"],"additionalProperties": false},- "InlineStyleBuiltinColorInput": {+ "GetInstalledPluginRequestInput": {"type": "object","properties": {- "dark": {- "anyOf": [- {- "$ref": "#/$defs/InlineStyleThemeInput"- },- {- "type": "null"- }- ]+ "frontend": {+ "type": "string"},- "index": {+ "keyword": {"anyOf": [{- "type": "integer"+ "type": "string"},{"type": "null"}]- },- "light": {+ }+ },+ "required": [+ "frontend"+ ],+ "additionalProperties": false+ },+ "GetInstalledTemplateRequestInput": {+ "type": "object",+ "properties": {+ "keyword": {"anyOf": [{- "$ref": "#/$defs/InlineStyleThemeInput"+ "type": "string"},{"type": "null"@@ -9971,119 +9945,141 @@},"additionalProperties": false},- "InlineStyleBuiltinHidden": {+ "GetInstalledThemeRequestInput": {"type": "object","properties": {- "av": {+ "frontend": {"anyOf": [{- "type": "array",- "items": {- "type": "integer"- }+ "type": "string"},{"type": "null"}]},- "backgroundColor": {+ "keyword": {"anyOf": [{- "type": "array",- "items": {- "type": "integer"- }+ "type": "string"},{"type": "null"}]- },- "color": {+ }+ },+ "additionalProperties": false+ },+ "GetInstalledWidgetRequestInput": {+ "type": "object",+ "properties": {+ "keyword": {"anyOf": [{- "type": "array",- "items": {- "type": "integer"- }+ "type": "string"},{"type": "null"}]+ }+ },+ "additionalProperties": false+ },+ "GetRepoDocHistoryRequestInput": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string"},- "style1": {- "anyOf": [- {- "type": "array",- "items": {- "type": "string"- }- },- {- "type": "null"- }- ]+ "page": {+ "type": "number"}},"required": [- "av",- "backgroundColor",- "color",- "style1"+ "id",+ "page"],"additionalProperties": false},- "InlineStyleBuiltinHiddenInput": {+ "GetRepoFileRequestInput": {"type": "object","properties": {- "av": {+ "id": {+ "type": "string"+ }+ },+ "required": [+ "id"+ ],+ "additionalProperties": false+ },+ "GetRepoSnapshotsRequestInput": {+ "type": "object",+ "properties": {+ "page": {+ "type": "number"+ }+ },+ "required": [+ "page"+ ],+ "additionalProperties": false+ },+ "GetSnippetRequestInput": {+ "type": "object",+ "properties": {+ "enabled": {+ "type": "number"+ },+ "keyword": {"anyOf": [{- "type": "array",- "items": {- "type": "integer"- }+ "type": "string"},{"type": "null"}]},- "backgroundColor": {+ "type": {+ "type": "string"+ }+ },+ "required": [+ "enabled",+ "type"+ ],+ "additionalProperties": false+ },+ "GetTagRequestInput": {+ "type": "object",+ "properties": {+ "app": {"anyOf": [{- "type": "array",- "items": {- "type": "integer"- }+ "type": "string"},{"type": "null"}]},- "color": {+ "ignoreMaxListHint": {"anyOf": [{- "type": "array",- "items": {- "type": "integer"- }+ "type": "boolean"},{"type": "null"}]},- "style1": {+ "sort": {"anyOf": [{- "type": "array",- "items": {- "type": "string"- }+ "type": "number"},{"type": "null"@@ -10093,53 +10089,41 @@},"additionalProperties": false},- "InlineStyleBuiltinInput": {+ "GetUpdatedPackageRequestInput": {"type": "object","properties": {- "colors": {+ "frontend": {+ "type": "string"+ }+ },+ "required": [+ "frontend"+ ],+ "additionalProperties": false+ },+ "GlobalGraphConf": {+ "type": "object",+ "properties": {+ "d3": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/InlineStyleBuiltinColorInput"- },- {- "type": "null"- }- ]- }+ "$ref": "#/$defs/GraphD3"},{"type": "null"}]},- "hidden": {- "anyOf": [- {- "$ref": "#/$defs/InlineStyleBuiltinHiddenInput"- },- {- "type": "null"- }- ]+ "dailyNote": {+ "type": "boolean"},- "styles": {+ "minRefs": {+ "type": "integer"+ },+ "type": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/InlineStyleBuiltinStyleInput"- },- {- "type": "null"- }- ]- }+ "$ref": "#/$defs/GraphTypeFilter"},{"type": "null"@@ -10147,28 +10131,34 @@]}},+ "required": [+ "d3",+ "dailyNote",+ "minRefs",+ "type"+ ],"additionalProperties": false},- "InlineStyleBuiltinStyle": {+ "GlobalGraphRequestInput": {"type": "object","properties": {- "dark": {+ "conf": {+ "$ref": "#/$defs/GraphConfigurationFieldsInput"+ },+ "k": {"anyOf": [{- "$ref": "#/$defs/InlineStyleTheme"+ "type": "string"},{"type": "null"}]},- "id": {- "type": "string"- },- "light": {+ "reqId": {"anyOf": [{- "$ref": "#/$defs/InlineStyleTheme"+ "$ref": "#/$defs/JSONValue"},{"type": "null"@@ -10177,39 +10167,79 @@}},"required": [- "dark",- "id",- "light"+ "conf"],"additionalProperties": false},- "InlineStyleBuiltinStyleInput": {+ "GlobalGraphResult": {"type": "object","properties": {- "dark": {+ "box": {+ "type": "string"+ },+ "conf": {+ "$ref": "#/$defs/GlobalGraphConf"+ },+ "links": {"anyOf": [{- "$ref": "#/$defs/InlineStyleThemeInput"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/GraphLink"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"}]},- "id": {+ "nodes": {"anyOf": [{- "type": "string"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/GraphNode"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"}]},- "light": {+ "reqId": {+ "$ref": "#/$defs/JSONValue"+ }+ },+ "required": [+ "box",+ "conf",+ "links",+ "nodes",+ "reqId"+ ],+ "additionalProperties": false+ },+ "GraphArrows": {+ "type": "object",+ "properties": {+ "to": {"anyOf": [{- "$ref": "#/$defs/InlineStyleThemeInput"+ "$ref": "#/$defs/GraphArrowsTo"},{"type": "null"@@ -10217,22 +10247,37 @@]}},+ "required": [+ "to"+ ],"additionalProperties": false},- "InlineStyleInput": {+ "GraphArrowsTo": {"type": "object","properties": {- "dark": {+ "enabled": {+ "type": "boolean"+ }+ },+ "required": [+ "enabled"+ ],+ "additionalProperties": false+ },+ "GraphConfigurationFieldsInput": {+ "type": "object",+ "properties": {+ "d3": {"anyOf": [{- "$ref": "#/$defs/InlineStyleThemeInput"+ "$ref": "#/$defs/GraphD3Input"},{"type": "null"}]},- "hidden": {+ "dailyNote": {"anyOf": [{"type": "boolean"@@ -10242,30 +10287,20 @@}]},- "id": {+ "minRefs": {"anyOf": [{- "type": "string"+ "type": "integer"},{"type": "null"}]},- "light": {+ "type": {"anyOf": [{- "$ref": "#/$defs/InlineStyleThemeInput"- },- {- "type": "null"- }- ]- },- "name": {- "anyOf": [- {- "type": "string"+ "$ref": "#/$defs/GraphTypeFilterInput"},{"type": "null"@@ -10275,277 +10310,274 @@},"additionalProperties": false},- "InlineStyleOrder": {+ "GraphCorrelation": {"type": "object","properties": {- "backgroundColor": {- "anyOf": [- {- "type": "array",- "items": {- "type": "string"- }- },- {- "type": "null"- }- ]+ "reqId": {+ "$ref": "#/$defs/JSONValue"+ }+ },+ "required": [+ "reqId"+ ],+ "additionalProperties": false+ },+ "GraphD3": {+ "type": "object",+ "properties": {+ "arrow": {+ "type": "boolean"},- "color": {- "anyOf": [- {- "type": "array",- "items": {- "type": "string"- }- },- {- "type": "null"- }- ]+ "centerStrength": {+ "type": "number"},- "style1": {- "anyOf": [- {- "type": "array",- "items": {- "type": "string"- }- },- {- "type": "null"- }- ]+ "collideRadius": {+ "type": "number"+ },+ "collideStrength": {+ "type": "number"+ },+ "lineOpacity": {+ "type": "number"+ },+ "linkDistance": {+ "type": "integer"+ },+ "linkWidth": {+ "type": "number"+ },+ "nodeSize": {+ "type": "number"}},"required": [- "backgroundColor",- "color",- "style1"+ "arrow",+ "centerStrength",+ "collideRadius",+ "collideStrength",+ "lineOpacity",+ "linkDistance",+ "linkWidth",+ "nodeSize"],"additionalProperties": false},- "InlineStyleOrderInput": {+ "GraphD3Input": {"type": "object","properties": {- "backgroundColor": {+ "arrow": {"anyOf": [{- "type": "array",- "items": {- "type": "string"- }+ "type": "boolean"},{"type": "null"}]},- "color": {+ "centerStrength": {"anyOf": [{- "type": "array",- "items": {- "type": "string"- }+ "type": "number"},{"type": "null"}]},- "style1": {+ "collideRadius": {"anyOf": [{- "type": "array",- "items": {- "type": "string"- }+ "type": "number"},{"type": "null"}]- }- },- "additionalProperties": false- },- "InlineStyleTheme": {- "type": "object",- "properties": {- "backgroundColor": {- "type": "string"},- "color": {- "type": "string"- }- },- "additionalProperties": false- },- "InlineStyleThemeInput": {- "type": "object",- "properties": {- "backgroundColor": {+ "collideStrength": {"anyOf": [{- "type": "string"+ "type": "number"},{"type": "null"}]},- "color": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- }- },- "additionalProperties": false- },- "InlineStyles": {- "type": "object",- "properties": {- "av": {+ "lineOpacity": {"anyOf": [{- "$ref": "#/$defs/InlineStyleAV"+ "type": "number"},{"type": "null"}]},- "builtin": {+ "linkDistance": {"anyOf": [{- "$ref": "#/$defs/InlineStyleBuiltin"+ "type": "integer"},{"type": "null"}]},- "order": {+ "linkWidth": {"anyOf": [{- "$ref": "#/$defs/InlineStyleOrder"+ "type": "number"},{"type": "null"}]},- "styles": {+ "nodeSize": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/InlineStyle"- },- {- "type": "null"- }- ]- }+ "type": "number"},{"type": "null"}]- },- "version": {- "type": "integer"}},- "required": [- "av",- "builtin",- "order",- "styles",- "version"- ],"additionalProperties": false},- "InsertBlockRequestInput": {+ "GraphLink": {"type": "object","properties": {- "data": {- "type": "string"- },- "dataType": {- "type": "string"- },- "nextID": {+ "arrows": {"anyOf": [{- "type": "string"+ "$ref": "#/$defs/GraphArrows"},{"type": "null"}]},- "parentID": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]+ "from": {+ "type": "string"},- "previousID": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]+ "ref": {+ "type": "boolean"+ },+ "to": {+ "type": "string"}},"required": [- "data",- "dataType"+ "arrows",+ "from",+ "ref",+ "to"],"additionalProperties": false},- "InsertCoverRequestInput": {+ "GraphNode": {"type": "object","properties": {+ "box": {+ "type": "string"+ },+ "defs": {+ "type": "integer"+ },"id": {"type": "string"},- "name": {+ "label": {"type": "string"- }- },- "required": [- "id",- "name"- ],- "additionalProperties": false- },- "InsertLocalAssetsRequestInput": {- "type": "object",- "properties": {- "assetPaths": {- "type": "array",- "items": {- "type": "string"- }},- "fromHTMLPaste": {+ "path": {+ "type": "string"+ },+ "refs": {+ "type": "integer"+ },+ "size": {+ "type": "number"+ },+ "title": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "box",+ "defs",+ "id",+ "label",+ "path",+ "refs",+ "size",+ "type"+ ],+ "additionalProperties": false+ },+ "GraphTypeFilter": {+ "type": "object",+ "properties": {+ "blockquote": {+ "type": "boolean"+ },+ "callout": {+ "type": "boolean"+ },+ "code": {+ "type": "boolean"+ },+ "heading": {+ "type": "boolean"+ },+ "list": {+ "type": "boolean"+ },+ "listItem": {+ "type": "boolean"+ },+ "math": {+ "type": "boolean"+ },+ "paragraph": {+ "type": "boolean"+ },+ "super": {+ "type": "boolean"+ },+ "table": {+ "type": "boolean"+ },+ "tag": {+ "type": "boolean"+ }+ },+ "required": [+ "blockquote",+ "callout",+ "code",+ "heading",+ "list",+ "listItem",+ "math",+ "paragraph",+ "super",+ "table",+ "tag"+ ],+ "additionalProperties": false+ },+ "GraphTypeFilterInput": {+ "type": "object",+ "properties": {+ "blockquote": {"anyOf": [{"type": "boolean"@@ -10555,17 +10587,17 @@}]},- "id": {+ "callout": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"}]},- "isUpload": {+ "code": {"anyOf": [{"type": "boolean"@@ -10574,197 +10606,119 @@"type": "null"}]- }- },- "required": [- "assetPaths"- ],- "additionalProperties": false- },- "InstallBazaarIconRequestInput": {- "type": "object",- "properties": {- "keyword": {+ },+ "heading": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"}]},- "packageName": {- "type": "string"- },- "repoHash": {- "type": "string"- },- "repoRef": {+ "list": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"}]},- "repoURL": {- "type": "string"- }- },- "required": [- "packageName",- "repoHash",- "repoURL"- ],- "additionalProperties": false- },- "InstallBazaarPluginRequestInput": {- "type": "object",- "properties": {- "frontend": {- "type": "string"- },- "keyword": {+ "listItem": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"}]},- "packageName": {- "type": "string"- },- "repoHash": {- "type": "string"- },- "repoRef": {+ "math": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"}]},- "repoURL": {- "type": "string"- }- },- "required": [- "frontend",- "packageName",- "repoHash",- "repoURL"- ],- "additionalProperties": false- },- "InstallBazaarTemplateRequestInput": {- "type": "object",- "properties": {- "keyword": {+ "paragraph": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"}]},- "packageName": {- "type": "string"- },- "repoHash": {- "type": "string"- },- "repoRef": {+ "super": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"}]},- "repoURL": {- "type": "string"- }- },- "required": [- "packageName",- "repoHash",- "repoURL"- ],- "additionalProperties": false- },- "InstallBazaarThemeRequestInput": {- "type": "object",- "properties": {- "frontend": {+ "table": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"}]},- "keyword": {+ "tag": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"}]- },- "mode": {- "type": "number"- },- "modeOS": {+ }+ },+ "additionalProperties": false+ },+ "HTMLClipboardPreflight": {+ "type": "object",+ "properties": {+ "converted": {"type": "boolean"},- "packageName": {+ "dom": {"type": "string"},- "repoHash": {+ "normalizedHTML": {"type": "string"},- "repoRef": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- },- "repoURL": {- "type": "string"+ "useHTML": {+ "type": "boolean"}},"required": [- "packageName",- "repoHash",- "repoURL"+ "converted",+ "useHTML"],"additionalProperties": false},- "InstallBazaarWidgetRequestInput": {+ "HTMLClipboardRequestInput": {"type": "object","properties": {- "keyword": {+ "dom": {+ "type": "string"+ },+ "mathML": {"anyOf": [{"type": "string"@@ -10774,13 +10728,7 @@}]},- "packageName": {- "type": "string"- },- "repoHash": {- "type": "string"- },- "repoRef": {+ "notebook": {"anyOf": [{"type": "string"@@ -10790,276 +10738,97 @@}]},- "repoURL": {- "type": "string"- }- },- "required": [- "packageName",- "repoHash",- "repoURL"- ],- "additionalProperties": false- },- "InstallLocalBazaarPackageRequestInput": {- "type": "object",- "properties": {- "file": {- "type": "string",- "format": "binary"- },- "frontend": {- "type": "string"- },- "overwrite": {- "type": "string"- }- },- "additionalProperties": false- },- "JSONValue": {- "anyOf": [- {- "type": "null"- },- {- "type": "boolean"- },- {- "type": "number"- },- {- "type": "string"- },- {- "type": "array",- "items": {- "$ref": "#/$defs/JSONValue"- }- },- {- "type": "object",- "additionalProperties": {- "$ref": "#/$defs/JSONValue"- }- }- ]- },- "KernelPetal": {- "type": "object",- "properties": {- "existed": {- "type": "boolean"- },- "incompatible": {- "type": "boolean"- },- "js": {- "type": "string"- }- },- "required": [- "existed",- "incompatible",- "js"- ],- "additionalProperties": false- },- "ListNotebooksData": {- "type": "object",- "properties": {- "boxDocEnabled": {- "type": "boolean"- },- "notebooks": {+ "office": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/Notebook"- },- {- "type": "null"- }- ]- }+ "type": "string"},{"type": "null"}]- }- },- "required": [- "boxDocEnabled",- "notebooks"- ],- "additionalProperties": false- },- "ListNotebooksRequestInput": {- "type": "object",- "properties": {- "flashcard": {+ },+ "officeMathHTML": {"anyOf": [{- "type": "boolean"+ "type": "string"},{"type": "null"}]- }- },- "additionalProperties": false- },- "LoadPetalsRequestInput": {- "type": "object",- "properties": {- "frontend": {- "type": "string"- }- },- "required": [- "frontend"- ],- "additionalProperties": false- },- "LoadedPlugin": {- "type": "object",- "properties": {- "methods": {+ },+ "preflight": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/PluginRPCMethod"- },- {- "type": "null"- }- ]- }+ "type": "boolean"},{"type": "null"}]},- "name": {- "type": "string"- },- "state": {- "type": "string"- },- "stateCode": {- "type": "integer"- }- },- "required": [- "methods",- "name",- "state",- "stateCode"- ],- "additionalProperties": false- },- "LoadedPluginRequestInput": {- "type": "object",- "properties": {- "name": {- "type": "string"- }- },- "required": [- "name"- ],- "additionalProperties": false- },- "LocalGraphConf": {- "type": "object",- "properties": {- "d3": {+ "preparedHTML": {"anyOf": [{- "$ref": "#/$defs/GraphD3"+ "type": "boolean"},{"type": "null"}]},- "dailyNote": {- "type": "boolean"- },- "type": {+ "preserveSourceFormat": {"anyOf": [{- "$ref": "#/$defs/GraphTypeFilter"+ "type": "boolean"},{"type": "null"}]- }- },- "required": [- "d3",- "dailyNote",- "type"- ],- "additionalProperties": false- },- "LocalGraphRequestInput": {- "type": "object",- "properties": {- "conf": {- "$ref": "#/$defs/GraphConfigurationFieldsInput"},- "id": {+ "skipBase64Assets": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"}]},- "k": {+ "skipInlineSVGAssets": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"}]},- "notebook": {+ "skipLocalAssets": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"}]},- "reqId": {+ "text": {"anyOf": [{- "$ref": "#/$defs/JSONValue"+ "type": "string"},{"type": "null"}]},- "type": {+ "wps": {"anyOf": [{"type": "string"@@ -11070,115 +10839,86 @@]}},+ "required": [+ "dom"+ ],"additionalProperties": false},- "LocalGraphResult": {+ "HTMLData": {"type": "object","properties": {- "box": {+ "html": {"type": "string"- },- "conf": {- "$ref": "#/$defs/LocalGraphConf"- },+ }+ },+ "required": [+ "html"+ ],+ "additionalProperties": false+ },+ "HeadingChildrenRequestInput": {+ "type": "object",+ "properties": {"id": {"type": "string"},- "links": {+ "removeFoldAttr": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/GraphLink"- },- {- "type": "null"- }- ]- }+ "type": "boolean"},{"type": "null"}]- },- "nodes": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/GraphNode"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]- },- "reqId": {- "$ref": "#/$defs/JSONValue"}},"required": [- "box",- "conf",- "id",- "links",- "nodes",- "reqId"+ "id"],"additionalProperties": false},- "LockScreenRequestInput": {+ "HeadingFoldRequestInput": {"type": "object","properties": {- "lockScreenMode": {- "type": "number"+ "id": {+ "type": "string"+ },+ "scope": {+ "type": "string"}},"required": [- "lockScreenMode"+ "id",+ "scope"],"additionalProperties": false},- "MarkdownHTMLRequestInput": {+ "HeadingLevelRequestInput": {"type": "object","properties": {- "markdown": {+ "id": {"type": "string"},- "mode": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]+ "ids": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "level": {+ "type": "number"}},"required": [- "markdown"+ "level"],"additionalProperties": false},- "MoveBlockRequestInput": {+ "HeadingNumbersRequestInput": {"type": "object","properties": {"id": {- "type": "string"- },- "parentID": {"anyOf": [{"type": "string"@@ -11188,7 +10928,7 @@}]},- "previousID": {+ "notebook": {"anyOf": [{"type": "string"@@ -11199,21 +10939,28 @@]}},- "required": [- "id"- ],"additionalProperties": false},- "NetImageAssetsRequestInput": {+ "History": {"type": "object","properties": {- "id": {+ "hCreated": {"type": "string"},- "url": {+ "items": {"anyOf": [{- "type": "string"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/HistoryItem"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"@@ -11222,17 +10969,56 @@}},"required": [- "id"+ "hCreated",+ "items"],"additionalProperties": false},- "NetworkData": {+ "HistoryItem": {"type": "object","properties": {- "proxy": {+ "id": {+ "type": "string"+ },+ "notebook": {+ "type": "string"+ },+ "op": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "title": {+ "type": "string"+ }+ },+ "required": [+ "id",+ "notebook",+ "op",+ "path",+ "title"+ ],+ "additionalProperties": false+ },+ "HistoryItemsData": {+ "type": "object",+ "properties": {+ "items": {"anyOf": [{- "$ref": "#/$defs/NetworkProxy"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/HistoryItem"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"@@ -11241,375 +11027,548 @@}},"required": [- "proxy"+ "items"],"additionalProperties": false},- "NetworkProxy": {+ "HistoryItemsRequestInput": {"type": "object","properties": {- "host": {+ "created": {"type": "string"},- "port": {- "type": "string"+ "notebook": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]},- "scheme": {- "type": "string"+ "op": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "query": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "type": {+ "anyOf": [+ {+ "type": "number"+ },+ {+ "type": "null"+ }+ ]}},"required": [- "host",- "port",- "scheme"+ "created"],"additionalProperties": false},- "NetworkProxyInput": {+ "HistoryPathRequestInput": {"type": "object","properties": {- "host": {- "type": "string"- },- "port": {- "type": "string"- },- "scheme": {+ "historyPath": {"type": "string"}},"required": [- "host",- "port",- "scheme"+ "historyPath"],"additionalProperties": false},- "NetworkServeRequestInput": {+ "ImportAutoDocument": {"type": "object","properties": {- "networkServe": {- "type": "boolean"+ "token": {+ "type": "string"+ },+ "type": {+ "type": "string",+ "enum": [+ "document"+ ]}},"required": [- "networkServe"+ "type"],"additionalProperties": false},- "NetworkServeTLSRequestInput": {+ "ImportAutoNotebook": {"type": "object","properties": {- "networkServeTLS": {- "type": "boolean"+ "notebook": {+ "anyOf": [+ {+ "$ref": "#/$defs/Notebook"+ },+ {+ "type": "null"+ }+ ]+ },+ "type": {+ "type": "string",+ "enum": [+ "notebook"+ ]}},"required": [- "networkServeTLS"+ "notebook",+ "type"],"additionalProperties": false},- "Notebook": {+ "ImportAutoNotebooks": {"type": "object","properties": {- "closed": {- "type": "boolean"- },- "dueFlashcardCount": {- "type": "integer"- },- "encrypted": {- "type": "boolean"- },- "flashcardCount": {- "type": "integer"- },- "icon": {- "type": "string"- },- "id": {- "type": "string"- },- "name": {- "type": "string"- },- "newFlashcardCount": {- "type": "integer"- },- "sort": {- "type": "integer"- },- "sortMode": {- "type": "integer"+ "notebooks": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/Notebook"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},- "state": {+ "type": {"type": "string","enum": [- "Locked",- "Unlocking",- "Unlocked",- "Locking",- "Error"+ "notebooks"]- },- "subFileCount": {- "type": "integer"- },- "unlocked": {- "type": "boolean"}},"required": [- "closed",- "dueFlashcardCount",- "encrypted",- "flashcardCount",- "icon",- "id",- "name",- "newFlashcardCount",- "sort",- "sortMode",- "subFileCount",- "unlocked"+ "notebooks",+ "type"],"additionalProperties": false},- "NotebookConf": {+ "ImportDataRequestInput": {"type": "object","properties": {- "boxCrypt": {+ "file": {+ "type": "string",+ "format": "binary"+ }+ },+ "additionalProperties": false+ },+ "ImportDocumentData": {+ "type": "object",+ "properties": {+ "type": {+ "type": "string",+ "enum": [+ "document"+ ]+ }+ },+ "required": [+ "type"+ ],+ "additionalProperties": false+ },+ "ImportMarkdownRequestInput": {+ "type": "object",+ "properties": {+ "localPath": {+ "type": "string"+ },+ "notebook": {+ "type": "string"+ },+ "skipRoot": {"anyOf": [{- "$ref": "#/$defs/NotebookEncryption"+ "type": "boolean"},{"type": "null"}]},- "closed": {- "type": "boolean"- },- "dailyNoteSavePath": {+ "toPath": {"type": "string"+ }+ },+ "required": [+ "localPath",+ "notebook",+ "toPath"+ ],+ "additionalProperties": false+ },+ "ImportNotebookCryptoBackupRequestInput": {+ "type": "object",+ "properties": {+ "file": {+ "type": "string",+ "format": "binary"},- "dailyNoteTemplatePath": {+ "password": {"type": "string"- },- "docCreateSaveBox": {+ }+ },+ "required": [+ "file"+ ],+ "additionalProperties": false+ },+ "ImportRepoKeyRequestInput": {+ "type": "object",+ "properties": {+ "key": {"type": "string"+ }+ },+ "required": [+ "key"+ ],+ "additionalProperties": false+ },+ "ImportSYRequestInput": {+ "type": "object",+ "properties": {+ "file": {+ "type": "string",+ "format": "binary"},- "docCreateSavePath": {+ "notebook": {"type": "string"},- "docCreateTemplatePath": {+ "toPath": {"type": "string"- },- "encrypted": {- "type": "boolean"- },- "icon": {+ }+ },+ "additionalProperties": false+ },+ "ImportTokenRequestInput": {+ "type": "object",+ "properties": {+ "token": {"type": "string"+ }+ },+ "required": [+ "token"+ ],+ "additionalProperties": false+ },+ "ImportZipMarkdownRequestInput": {+ "type": "object",+ "properties": {+ "file": {+ "type": "string",+ "format": "binary"},- "name": {+ "notebook": {"type": "string"},- "refCreateSaveBox": {+ "skipRoot": {"type": "string"},- "refCreateSavePath": {+ "toPath": {"type": "string"- },- "sort": {- "type": "integer"- },- "sortMode": {- "type": "integer"}},- "required": [- "boxCrypt",- "closed",- "dailyNoteSavePath",- "dailyNoteTemplatePath",- "docCreateSaveBox",- "docCreateSavePath",- "docCreateTemplatePath",- "encrypted",- "icon",- "name",- "refCreateSaveBox",- "refCreateSavePath",- "sort",- "sortMode"- ],"additionalProperties": false},- "NotebookConfData": {+ "ImportedNotebook": {"type": "object","properties": {- "box": {- "type": "string"- },- "conf": {+ "notebook": {"anyOf": [{- "$ref": "#/$defs/NotebookConf"+ "$ref": "#/$defs/Notebook"},{"type": "null"}]- },- "name": {- "type": "string"}},"required": [- "box",- "conf",- "name"+ "notebook"],"additionalProperties": false},- "NotebookConfPatchInput": {+ "ImportedNotebooks": {"type": "object","properties": {- "boxCrypt": {- "anyOf": [- {- "$ref": "#/$defs/NotebookEncryptionPatchInput"- },- {- "type": "null"- }- ]- },- "closed": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ]- },- "dailyNoteSavePath": {+ "notebooks": {"anyOf": [{- "type": "string"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/Notebook"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"}]- },- "dailyNoteTemplatePath": {+ }+ },+ "required": [+ "notebooks"+ ],+ "additionalProperties": false+ },+ "InitRepoKeyFromPassphraseRequestInput": {+ "type": "object",+ "properties": {+ "pass": {+ "type": "string"+ }+ },+ "required": [+ "pass"+ ],+ "additionalProperties": false+ },+ "InlineStyle": {+ "type": "object",+ "properties": {+ "dark": {"anyOf": [{- "type": "string"+ "$ref": "#/$defs/InlineStyleTheme"},{"type": "null"}]},- "docCreateSaveBox": {+ "hidden": {+ "type": "boolean"+ },+ "id": {+ "type": "string"+ },+ "light": {"anyOf": [{- "type": "string"+ "$ref": "#/$defs/InlineStyleTheme"},{"type": "null"}]},- "docCreateSavePath": {+ "name": {+ "type": "string"+ }+ },+ "required": [+ "dark",+ "id",+ "light",+ "name"+ ],+ "additionalProperties": false+ },+ "InlineStyleAV": {+ "type": "object",+ "properties": {+ "colors": {"anyOf": [{- "type": "string"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/AttributeViewCustomColor"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"}]},- "docCreateTemplatePath": {+ "order": {"anyOf": [{- "type": "string"+ "type": "array",+ "items": {+ "type": "string"+ }},{"type": "null"}]- },- "encrypted": {+ }+ },+ "required": [+ "colors",+ "order"+ ],+ "additionalProperties": false+ },+ "InlineStyleAVInput": {+ "type": "object",+ "properties": {+ "colors": {"anyOf": [{- "type": "boolean"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/AttributeViewCustomColorInput"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"}]},- "icon": {+ "order": {"anyOf": [{- "type": "string"+ "type": "array",+ "items": {+ "type": "string"+ }},{"type": "null"}]- },- "name": {+ }+ },+ "additionalProperties": false+ },+ "InlineStyleBuiltin": {+ "type": "object",+ "properties": {+ "colors": {"anyOf": [{- "type": "string"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/InlineStyleBuiltinColor"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"}]},- "refCreateSaveBox": {+ "hidden": {"anyOf": [{- "type": "string"+ "$ref": "#/$defs/InlineStyleBuiltinHidden"},{"type": "null"}]},- "refCreateSavePath": {+ "styles": {"anyOf": [{- "type": "string"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/InlineStyleBuiltinStyle"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"}]- },- "sort": {+ }+ },+ "required": [+ "colors",+ "hidden",+ "styles"+ ],+ "additionalProperties": false+ },+ "InlineStyleBuiltinColor": {+ "type": "object",+ "properties": {+ "dark": {"anyOf": [{- "type": "integer"+ "$ref": "#/$defs/InlineStyleTheme"},{"type": "null"}]},- "sortMode": {+ "index": {+ "type": "integer"+ },+ "light": {"anyOf": [{- "type": "integer"+ "$ref": "#/$defs/InlineStyleTheme"},{"type": "null"@@ -11617,58 +11576,40 @@]}},- "additionalProperties": false- },- "NotebookCryptoAutoLockRequestInput": {- "type": "object",- "properties": {- "autoLockMinutes": {- "type": "number"- }- },- "required": [- "autoLockMinutes"- ],- "additionalProperties": false- },- "NotebookCryptoBackupData": {- "type": "object",- "properties": {- "file": {- "type": "string"- }- },"required": [- "file"+ "dark",+ "index",+ "light"],"additionalProperties": false},- "NotebookEncryption": {+ "InlineStyleBuiltinColorInput": {"type": "object","properties": {- "createdAt": {- "type": "integer"- },- "metadata": {- "type": "string"- },- "spec": {- "type": "integer"+ "dark": {+ "anyOf": [+ {+ "$ref": "#/$defs/InlineStyleThemeInput"+ },+ {+ "type": "null"+ }+ ]},- "wrapNonce": {+ "index": {"anyOf": [{- "type": "string"+ "type": "integer"},{"type": "null"}]},- "wrappedDEK": {+ "light": {"anyOf": [{- "type": "string"+ "$ref": "#/$defs/InlineStyleThemeInput"},{"type": "null"@@ -11676,91 +11617,121 @@]}},- "required": [- "createdAt",- "spec",- "wrapNonce",- "wrappedDEK"- ],"additionalProperties": false},- "NotebookEncryptionPatchInput": {+ "InlineStyleBuiltinHidden": {"type": "object","properties": {- "createdAt": {+ "av": {"anyOf": [{- "type": "integer"+ "type": "array",+ "items": {+ "type": "integer"+ }},{"type": "null"}]},- "metadata": {+ "backgroundColor": {"anyOf": [{- "anyOf": [- {- "type": "string"- },- {- "type": "array",- "items": {- "type": "integer"- }- }- ]+ "type": "array",+ "items": {+ "type": "integer"+ }},{"type": "null"}]},- "spec": {+ "color": {"anyOf": [{- "type": "integer"+ "type": "array",+ "items": {+ "type": "integer"+ }},{"type": "null"}]},- "wrapNonce": {+ "style1": {"anyOf": [{- "anyOf": [- {- "type": "string"- },- {- "type": "array",- "items": {- "type": "integer"- }- }- ]+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": [+ "av",+ "backgroundColor",+ "color",+ "style1"+ ],+ "additionalProperties": false+ },+ "InlineStyleBuiltinHiddenInput": {+ "type": "object",+ "properties": {+ "av": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "integer"+ }},{"type": "null"}]},- "wrappedDEK": {+ "backgroundColor": {"anyOf": [{- "anyOf": [- {- "type": "string"- },- {- "type": "array",- "items": {- "type": "integer"- }- }- ]+ "type": "array",+ "items": {+ "type": "integer"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "color": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "integer"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "style1": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }},{"type": "null"@@ -11770,17 +11741,47 @@},"additionalProperties": false},- "NotebookHistoryData": {+ "InlineStyleBuiltinInput": {"type": "object","properties": {- "histories": {+ "colors": {"anyOf": [{"type": "array","items": {"anyOf": [{- "$ref": "#/$defs/History"+ "$ref": "#/$defs/InlineStyleBuiltinColorInput"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "hidden": {+ "anyOf": [+ {+ "$ref": "#/$defs/InlineStyleBuiltinHiddenInput"+ },+ {+ "type": "null"+ }+ ]+ },+ "styles": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/InlineStyleBuiltinStyleInput"},{"type": "null"@@ -11794,120 +11795,69 @@]}},- "required": [- "histories"- ],- "additionalProperties": false- },- "NotebookIDRequestInput": {- "type": "object",- "properties": {- "notebook": {- "type": "string"- }- },- "required": [- "notebook"- ],"additionalProperties": false},- "NotebookInfo": {+ "InlineStyleBuiltinStyle": {"type": "object","properties": {- "ctime": {- "type": "integer"- },- "docCount": {- "type": "integer"- },- "hCtime": {- "type": "string"- },- "hMtime": {- "type": "string"- },- "hSize": {- "type": "string"+ "dark": {+ "anyOf": [+ {+ "$ref": "#/$defs/InlineStyleTheme"+ },+ {+ "type": "null"+ }+ ]},"id": {"type": "string"},- "mtime": {- "type": "integer"- },- "name": {- "type": "string"- },- "size": {- "type": "integer"+ "light": {+ "anyOf": [+ {+ "$ref": "#/$defs/InlineStyleTheme"+ },+ {+ "type": "null"+ }+ ]}},"required": [- "ctime",- "docCount",- "hCtime",- "hMtime",- "hSize",+ "dark","id",- "mtime",- "name",- "size"+ "light"],"additionalProperties": false},- "NotebookInfoData": {+ "InlineStyleBuiltinStyleInput": {"type": "object","properties": {- "boxInfo": {+ "dark": {"anyOf": [{- "$ref": "#/$defs/NotebookInfo"+ "$ref": "#/$defs/InlineStyleThemeInput"},{"type": "null"}]- }- },- "required": [- "boxInfo"- ],- "additionalProperties": false- },- "NotebookPasswordRequestInput": {- "type": "object",- "properties": {- "password": {- "type": "string"- }- },- "required": [- "password"- ],- "additionalProperties": false- },- "NotificationData": {- "type": "object",- "properties": {+ },"id": {- "type": "string"- }- },- "required": [- "id"- ],- "additionalProperties": false- },- "NotificationRequestInput": {- "type": "object",- "properties": {- "msg": {- "type": "string"+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]},- "timeout": {+ "light": {"anyOf": [{- "type": "number"+ "$ref": "#/$defs/InlineStyleThemeInput"},{"type": "null"@@ -11915,61 +11865,118 @@]}},- "required": [- "msg"- ],"additionalProperties": false},- "ObsidianAnalysisRequestInput": {+ "InlineStyleInput": {"type": "object","properties": {- "localPath": {- "type": "string"- }- },- "required": [- "localPath"- ],- "additionalProperties": false- },- "ObsidianImportRequestInput": {- "type": "object",- "properties": {- "notebookName": {- "type": "string"+ "dark": {+ "anyOf": [+ {+ "$ref": "#/$defs/InlineStyleThemeInput"+ },+ {+ "type": "null"+ }+ ]},- "taskID": {- "type": "string"+ "hidden": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "light": {+ "anyOf": [+ {+ "$ref": "#/$defs/InlineStyleThemeInput"+ },+ {+ "type": "null"+ }+ ]+ },+ "name": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]}},- "required": [- "notebookName",- "taskID"- ],"additionalProperties": false},- "ObsidianTaskRequestInput": {+ "InlineStyleOrder": {"type": "object","properties": {- "taskID": {- "type": "string"+ "backgroundColor": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "color": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "style1": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]}},"required": [- "taskID"+ "backgroundColor",+ "color",+ "style1"],"additionalProperties": false},- "ObsidianVaultAnalysis": {+ "InlineStyleOrderInput": {"type": "object","properties": {- "ambiguousCount": {- "type": "integer"- },- "blockIDCount": {- "type": "integer"- },- "blockingErrors": {+ "backgroundColor": {"anyOf": [{"type": "array",@@ -11982,61 +11989,7 @@}]},- "commentCount": {- "type": "integer"- },- "embedCount": {- "type": "integer"- },- "footnoteCount": {- "type": "integer"- },- "importableAssetCount": {- "type": "integer"- },- "importableAssetSize": {- "type": "integer"- },- "markdownCount": {- "type": "integer"- },- "missingCount": {- "type": "integer"- },- "nameAdjustmentCount": {- "type": "integer"- },- "notebookName": {- "type": "string"- },- "skippedHiddenCount": {- "type": "integer"- },- "skippedLinkCount": {- "type": "integer"- },- "skippedNestedVaultCount": {- "type": "integer"- },- "skippedSpecialCount": {- "type": "integer"- },- "syntheticParentCount": {- "type": "integer"- },- "unreferencedFileCount": {- "type": "integer"- },- "unsupportedCount": {- "type": "integer"- },- "vaultName": {- "type": "string"- },- "vaultPath": {- "type": "string"- },- "warnings": {+ "color": {"anyOf": [{"type": "array",@@ -12049,144 +12002,38 @@}]},- "wikiLinkCount": {- "type": "integer"+ "style1": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]}},- "required": [- "ambiguousCount",- "blockIDCount",- "blockingErrors",- "commentCount",- "embedCount",- "footnoteCount",- "importableAssetCount",- "importableAssetSize",- "markdownCount",- "missingCount",- "nameAdjustmentCount",- "notebookName",- "skippedHiddenCount",- "skippedLinkCount",- "skippedNestedVaultCount",- "skippedSpecialCount",- "syntheticParentCount",- "unreferencedFileCount",- "unsupportedCount",- "vaultName",- "vaultPath",- "warnings",- "wikiLinkCount"- ],"additionalProperties": false},- "ObsidianVaultImportResult": {+ "InlineStyleTheme": {"type": "object","properties": {- "convertedEmbedCount": {- "type": "integer"- },- "convertedFootnoteCount": {- "type": "integer"- },- "convertedLinkCount": {- "type": "integer"- },- "failedStage": {- "type": "string"- },- "importedAttachmentCount": {- "type": "integer"- },- "incomplete": {- "type": "boolean"- },- "markdownCount": {- "type": "integer"- },- "nameAdjustmentCount": {- "type": "integer"- },- "notebookID": {+ "backgroundColor": {"type": "string"},- "notebookName": {- "type": "string"- },- "preservedCommentCount": {- "type": "integer"- },- "preservedUnresolvedCount": {- "type": "integer"- },- "skippedPathCount": {- "type": "integer"- },- "syntheticParentCount": {- "type": "integer"- },- "unreferencedFileCount": {- "type": "integer"- }- },- "required": [- "convertedEmbedCount",- "convertedFootnoteCount",- "convertedLinkCount",- "importedAttachmentCount",- "incomplete",- "markdownCount",- "nameAdjustmentCount",- "notebookID",- "notebookName",- "preservedCommentCount",- "preservedUnresolvedCount",- "skippedPathCount",- "syntheticParentCount",- "unreferencedFileCount"- ],- "additionalProperties": false- },- "ObsidianVaultTask": {- "type": "object",- "properties": {- "analysis": {- "$ref": "#/$defs/ObsidianVaultAnalysis"- },- "detail": {- "type": "string"- },- "error": {- "type": "string"- },- "message": {- "type": "string"- },- "progress": {- "type": "integer"- },- "result": {- "$ref": "#/$defs/ObsidianVaultImportResult"- },- "state": {- "type": "string"- },- "taskID": {+ "color": {"type": "string"}},- "required": [- "message",- "progress",- "state",- "taskID"- ],"additionalProperties": false},- "OpenNotebookRequestInput": {+ "InlineStyleThemeInput": {"type": "object","properties": {- "app": {+ "backgroundColor": {"anyOf": [{"type": "string"@@ -12196,47 +12043,95 @@}]},- "notebook": {- "type": "string"- }- },- "required": [- "notebook"- ],- "additionalProperties": false- },- "OpenRepoSnapshotFileRequestInput": {- "type": "object",- "properties": {- "id": {- "type": "string"+ "color": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]}},- "required": [- "id"- ],"additionalProperties": false},- "OrderedListStartData": {+ "InlineStyles": {"type": "object","properties": {- "found": {- "type": "boolean"+ "av": {+ "anyOf": [+ {+ "$ref": "#/$defs/InlineStyleAV"+ },+ {+ "type": "null"+ }+ ]},- "start": {+ "builtin": {+ "anyOf": [+ {+ "$ref": "#/$defs/InlineStyleBuiltin"+ },+ {+ "type": "null"+ }+ ]+ },+ "order": {+ "anyOf": [+ {+ "$ref": "#/$defs/InlineStyleOrder"+ },+ {+ "type": "null"+ }+ ]+ },+ "styles": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/InlineStyle"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "version": {"type": "integer"}},"required": [- "found",- "start"+ "av",+ "builtin",+ "order",+ "styles",+ "version"],"additionalProperties": false},- "OutlineRequestInput": {+ "InsertBlockRequestInput": {"type": "object","properties": {- "id": {+ "data": {+ "type": "string"+ },+ "dataType": {+ "type": "string"+ },+ "nextID": {"anyOf": [{"type": "string"@@ -12246,7 +12141,7 @@}]},- "notebook": {+ "parentID": {"anyOf": [{"type": "string"@@ -12256,10 +12151,10 @@}]},- "preview": {+ "previousID": {"anyOf": [{- "type": "boolean"+ "type": "string"},{"type": "null"@@ -12267,61 +12162,48 @@]}},- "additionalProperties": false- },- "OutlineStorageRequestInput": {- "type": "object",- "properties": {- "docID": {- "type": "string"- }- },"required": [- "docID"+ "data",+ "dataType"],"additionalProperties": false},- "OutlineStorageSetRequestInput": {+ "InsertCoverRequestInput": {"type": "object","properties": {- "docID": {+ "id": {"type": "string"},- "val": {- "type": "object",- "additionalProperties": {- "$ref": "#/$defs/JSONValue"- }- }- },- "required": [- "docID",- "val"- ],- "additionalProperties": false- },- "PandocData": {- "type": "object",- "properties": {- "path": {+ "name": {"type": "string"}},"required": [- "path"+ "id",+ "name"],"additionalProperties": false},- "PandocRequestInput": {+ "InsertLocalAssetsRequestInput": {"type": "object","properties": {- "args": {+ "assetPaths": {"type": "array","items": {"type": "string"}},- "dir": {+ "fromHTMLPaste": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {"anyOf": [{"type": "string"@@ -12330,544 +12212,441 @@"type": "null"}]+ },+ "isUpload": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]}},"required": [- "args"+ "assetPaths"],"additionalProperties": false},- "PerformSyncRequestInput": {+ "InstallBazaarIconRequestInput": {"type": "object","properties": {- "mobileSwitch": {+ "keyword": {"anyOf": [{- "type": "boolean"+ "type": "string"},{"type": "null"}]},- "upload": {- "type": "boolean"- }- },- "additionalProperties": false- },- "Petal": {- "type": "object",- "properties": {- "css": {+ "packageName": {"type": "string"},- "disabledInPublish": {- "type": "boolean"- },- "disallowInstall": {- "type": "boolean"- },- "displayName": {+ "repoHash": {"type": "string"},- "enabled": {- "type": "boolean"- },- "i18n": {+ "repoRef": {"anyOf": [{- "type": "object",- "additionalProperties": {- "$ref": "#/$defs/JSONValue"- }+ "type": "string"},{"type": "null"}]},- "incompatible": {- "type": "boolean"- },- "js": {- "type": "string"- },- "kernel": {- "$ref": "#/$defs/KernelPetal"- },- "name": {- "type": "string"- },- "userDisabledInPublish": {- "type": "boolean"- },- "version": {+ "repoURL": {"type": "string"}},"required": [- "css",- "disabledInPublish",- "disallowInstall",- "displayName",- "enabled",- "i18n",- "incompatible",- "js",- "kernel",- "name",- "userDisabledInPublish",- "version"+ "packageName",+ "repoHash",+ "repoURL"],"additionalProperties": false},- "PinnedDoc": {+ "InstallBazaarPluginRequestInput": {"type": "object","properties": {- "childrenSortMode": {+ "frontend": {+ "type": "string"+ },+ "keyword": {"anyOf": [{- "type": "integer"+ "type": "string"},{"type": "null"}]},- "icon": {- "type": "string"- },- "id": {- "type": "string"- },- "name": {- "type": "string"- },- "notebook": {+ "packageName": {"type": "string"},- "path": {+ "repoHash": {"type": "string"},- "subFileCount": {- "type": "integer"- },- "unavailable": {- "type": "boolean"- }- },- "required": [- "childrenSortMode",- "icon",- "id",- "name",- "notebook",- "path",- "subFileCount",- "unavailable"- ],- "additionalProperties": false- },- "PluginRPCError": {- "type": "object",- "properties": {- "code": {- "type": "integer"- },- "data": {- "$ref": "#/$defs/JSONValue"+ "repoRef": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]},- "message": {+ "repoURL": {"type": "string"}},"required": [- "code",- "message"+ "frontend",+ "packageName",+ "repoHash",+ "repoURL"],"additionalProperties": false},- "PluginRPCFailure": {+ "InstallBazaarTemplateRequestInput": {"type": "object","properties": {- "error": {+ "keyword": {"anyOf": [{- "$ref": "#/$defs/PluginRPCError"+ "type": "string"},{"type": "null"}]},- "id": {+ "packageName": {+ "type": "string"+ },+ "repoHash": {+ "type": "string"+ },+ "repoRef": {"anyOf": [{"type": "string"},- {- "type": "number"- },{"type": "null"}]},- "jsonrpc": {- "type": "string",- "enum": [- "2.0"- ]+ "repoURL": {+ "type": "string"}},"required": [- "error",- "id",- "jsonrpc"+ "packageName",+ "repoHash",+ "repoURL"],"additionalProperties": false},- "PluginRPCMethod": {+ "InstallBazaarThemeRequestInput": {"type": "object","properties": {- "descriptions": {+ "frontend": {"anyOf": [{- "type": "array",- "items": {- "type": "string"- }+ "type": "string"},{"type": "null"}]},- "name": {- "type": "string"- }- },- "required": [- "descriptions",- "name"- ],- "additionalProperties": false- },- "PluginRPCNotification": {- "type": "object",- "properties": {- "jsonrpc": {- "type": "string",- "enum": [- "2.0"- ]- },- "method": {- "type": "string"- },- "params": {- "$ref": "#/$defs/JSONValue"- }- },- "required": [- "jsonrpc",- "method"- ],- "additionalProperties": false- },- "PluginRPCRequestFieldsInput": {- "type": "object",- "properties": {- "id": {+ "keyword": {"anyOf": [{"type": "string"},- {- "type": "number"- },{"type": "null"}]},- "jsonrpc": {- "type": "string",- "enum": [- "2.0"- ]+ "mode": {+ "type": "number"},- "method": {+ "modeOS": {+ "type": "boolean"+ },+ "packageName": {"type": "string"},- "params": {+ "repoHash": {+ "type": "string"+ },+ "repoRef": {"anyOf": [{- "anyOf": [- {- "type": "array",- "items": {- "$ref": "#/$defs/JSONValue"- }- },- {- "type": "object",- "additionalProperties": {- "$ref": "#/$defs/JSONValue"- }- }- ]+ "type": "string"},{"type": "null"}]+ },+ "repoURL": {+ "type": "string"}},"required": [- "jsonrpc",- "method"+ "packageName",+ "repoHash",+ "repoURL"],"additionalProperties": false},- "PluginRPCSuccess": {+ "InstallBazaarWidgetRequestInput": {"type": "object","properties": {- "id": {+ "keyword": {"anyOf": [{"type": "string"},- {- "type": "number"- },{"type": "null"}]},- "jsonrpc": {- "type": "string",- "enum": [- "2.0"+ "packageName": {+ "type": "string"+ },+ "repoHash": {+ "type": "string"+ },+ "repoRef": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }]},- "result": {- "$ref": "#/$defs/JSONValue"+ "repoURL": {+ "type": "string"}},"required": [- "id",- "jsonrpc",- "result"+ "packageName",+ "repoHash",+ "repoURL"],"additionalProperties": false},- "PrepareRichTextRequestInput": {+ "InstallLocalBazaarPackageRequestInput": {"type": "object","properties": {- "assets": {+ "file": {+ "type": "string",+ "format": "binary"+ },+ "frontend": {+ "type": "string"+ },+ "overwrite": {+ "type": "string"+ }+ },+ "additionalProperties": false+ },+ "JSONValue": {+ "anyOf": [+ {+ "type": "null"+ },+ {+ "type": "boolean"+ },+ {+ "type": "number"+ },+ {+ "type": "string"+ },+ {"type": "array","items": {- "$ref": "#/$defs/RichClipboardAssetInput"+ "$ref": "#/$defs/JSONValue"+ }+ },+ {+ "type": "object",+ "additionalProperties": {+ "$ref": "#/$defs/JSONValue"}}- },- "required": [- "assets"- ],- "additionalProperties": false+ ]},- "PrependBlockRequestInput": {+ "KernelPetal": {"type": "object","properties": {- "data": {- "type": "string"+ "existed": {+ "type": "boolean"},- "dataType": {- "type": "string"+ "incompatible": {+ "type": "boolean"},- "parentID": {+ "js": {"type": "string"}},"required": [- "data",- "dataType",- "parentID"+ "existed",+ "incompatible",+ "js"],"additionalProperties": false},- "ProcessPDFRequestInput": {+ "ListNotebooksData": {"type": "object","properties": {- "id": {- "type": "string"- },- "merge": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ]+ "boxDocEnabled": {+ "type": "boolean"},- "mergeContentHeadingMode": {+ "notebooks": {"anyOf": [{- "type": "string"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/Notebook"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"}]- },- "mergeDocHeadingMode": {+ }+ },+ "required": [+ "boxDocEnabled",+ "notebooks"+ ],+ "additionalProperties": false+ },+ "ListNotebooksRequestInput": {+ "type": "object",+ "properties": {+ "flashcard": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"}]- },- "path": {- "type": "string"- },- "removeAssets": {- "type": "boolean"- },- "watermark": {- "type": "boolean"}},- "required": [- "id",- "path",- "removeAssets",- "watermark"- ],"additionalProperties": false},- "PublishedBlockInfo": {+ "LoadPetalsRequestInput": {"type": "object","properties": {- "publishAccessRequired": {- "type": "boolean",- "enum": [- true- ]- },- "rootID": {- "type": "string"- },- "rootIcon": {- "type": "string"- },- "rootTitle": {+ "frontend": {"type": "string"- },- "rootTitleEmpty": {- "type": "boolean"}},"required": [- "publishAccessRequired",- "rootID",- "rootIcon",- "rootTitle",- "rootTitleEmpty"+ "frontend"],"additionalProperties": false},- "PutFileRequestInput": {+ "LoadedPlugin": {"type": "object","properties": {- "app": {- "type": "string"- },- "file": {- "type": "string",- "format": "binary"+ "methods": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/PluginRPCMethod"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},- "isDir": {+ "name": {"type": "string"},- "modTime": {+ "state": {"type": "string"},- "path": {- "type": "string"- }- },- "additionalProperties": false- },- "ReadDirectoryRequestInput": {- "type": "object",- "properties": {- "path": {- "type": "string"+ "stateCode": {+ "type": "integer"}},"required": [- "path"+ "methods",+ "name",+ "state",+ "stateCode"],"additionalProperties": false},- "RecentDoc": {+ "LoadedPluginRequestInput": {"type": "object","properties": {- "closedAt": {- "type": "integer"- },- "icon": {- "type": "string"- },- "openAt": {- "type": "integer"- },- "rootID": {- "type": "string"- },- "title": {+ "name": {"type": "string"- },- "viewedAt": {- "type": "integer"}},"required": [- "rootID"+ "name"],"additionalProperties": false},- "RecentDocUpdateRequestInput": {+ "LocalGraphConf": {"type": "object","properties": {- "rootID": {+ "d3": {"anyOf": [{- "type": "string"+ "$ref": "#/$defs/GraphD3"},{"type": "null"}]- }- },- "additionalProperties": false- },- "RecentDocsRequestInput": {- "type": "object",- "properties": {- "sortBy": {+ },+ "dailyNote": {+ "type": "boolean"+ },+ "type": {"anyOf": [{- "type": "string"+ "$ref": "#/$defs/GraphTypeFilter"},{"type": "null"@@ -12875,77 +12654,97 @@]}},+ "required": [+ "d3",+ "dailyNote",+ "type"+ ],"additionalProperties": false},- "RecentDocsUpdateRequestInput": {+ "LocalGraphRequestInput": {"type": "object","properties": {- "rootIDs": {+ "conf": {+ "$ref": "#/$defs/GraphConfigurationFieldsInput"+ },+ "id": {"anyOf": [{- "type": "array",- "items": {- "type": "string"- }+ "type": "string"},{"type": "null"}]- }- },- "additionalProperties": false- },- "RefDefs": {- "type": "object",- "properties": {- "defIDs": {+ },+ "k": {"anyOf": [{- "type": "array",- "items": {- "type": "string"- }+ "type": "string"},{"type": "null"}]},- "refID": {- "type": "string"- }- },- "required": [- "defIDs",- "refID"- ],- "additionalProperties": false- },- "RefDefsData": {- "type": "object",- "properties": {- "refDefs": {- "type": "array",- "items": {- "$ref": "#/$defs/RefDefs"- }+ "notebook": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "reqId": {+ "anyOf": [+ {+ "$ref": "#/$defs/JSONValue"+ },+ {+ "type": "null"+ }+ ]+ },+ "type": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]}},- "required": [- "refDefs"- ],"additionalProperties": false},- "RefIDsData": {+ "LocalGraphResult": {"type": "object","properties": {- "originalRefBlockIDs": {+ "box": {+ "type": "string"+ },+ "conf": {+ "$ref": "#/$defs/LocalGraphConf"+ },+ "id": {+ "type": "string"+ },+ "links": {"anyOf": [{- "type": "object",- "additionalProperties": {- "type": "string"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/GraphLink"+ },+ {+ "type": "null"+ }+ ]}},{@@ -12953,14 +12752,14 @@}]},- "refDefs": {+ "nodes": {"anyOf": [{"type": "array","items": {"anyOf": [{- "$ref": "#/$defs/RefDefs"+ "$ref": "#/$defs/GraphNode"},{"type": "null"@@ -12972,18 +12771,40 @@"type": "null"}]+ },+ "reqId": {+ "$ref": "#/$defs/JSONValue"}},"required": [- "originalRefBlockIDs",- "refDefs"+ "box",+ "conf",+ "id",+ "links",+ "nodes",+ "reqId"],"additionalProperties": false},- "RefIDsRequestInput": {+ "LockScreenRequestInput": {"type": "object","properties": {- "id": {+ "lockScreenMode": {+ "type": "number"+ }+ },+ "required": [+ "lockScreenMode"+ ],+ "additionalProperties": false+ },+ "MarkdownHTMLRequestInput": {+ "type": "object",+ "properties": {+ "markdown": {+ "type": "string"+ },+ "mode": {"anyOf": [{"type": "string"@@ -12992,21 +12813,30 @@"type": "null"}]+ }+ },+ "required": [+ "markdown"+ ],+ "additionalProperties": false+ },+ "MoveBlockRequestInput": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string"},- "ids": {+ "parentID": {"anyOf": [{- "type": "array",- "items": {- "type": "string"- }+ "type": "string"},{"type": "null"}]},- "notebook": {+ "previousID": {"anyOf": [{"type": "string"@@ -13017,15 +12847,18 @@]}},+ "required": [+ "id"+ ],"additionalProperties": false},- "RefTextQueryRequestInput": {+ "NetImageAssetsRequestInput": {"type": "object","properties": {- "anchor": {+ "id": {"type": "string"},- "notebook": {+ "url": {"anyOf": [{"type": "string"@@ -13036,270 +12869,272 @@]}},- "required": [- "anchor"- ],- "additionalProperties": false- },- "RefreshBacklinkRequestInput": {- "type": "object",- "properties": {- "id": {- "type": "string"- }- },"required": ["id"],"additionalProperties": false},- "RemoveBookmarkRequestInput": {+ "NetworkData": {"type": "object","properties": {- "bookmark": {- "type": "string"+ "proxy": {+ "anyOf": [+ {+ "$ref": "#/$defs/NetworkProxy"+ },+ {+ "type": "null"+ }+ ]}},"required": [- "bookmark"+ "proxy"],"additionalProperties": false},- "RemoveCloudRepoTagSnapshotRequestInput": {+ "NetworkProxy": {"type": "object","properties": {- "tag": {+ "host": {"type": "string"- }- },- "required": [- "tag"- ],- "additionalProperties": false- },- "RemoveCriterionRequestInput": {- "type": "object",- "properties": {- "name": {+ },+ "port": {+ "type": "string"+ },+ "scheme": {"type": "string"}},"required": [- "name"+ "host",+ "port",+ "scheme"],"additionalProperties": false},- "RemoveFileRequestInput": {+ "NetworkProxyInput": {"type": "object","properties": {- "app": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]+ "host": {+ "type": "string"},- "path": {+ "port": {+ "type": "string"+ },+ "scheme": {"type": "string"}},"required": [- "path"+ "host",+ "port",+ "scheme"],"additionalProperties": false},- "RemoveRepoTagSnapshotRequestInput": {+ "NetworkServeRequestInput": {"type": "object","properties": {- "tag": {- "type": "string"+ "networkServe": {+ "type": "boolean"}},"required": [- "tag"+ "networkServe"],"additionalProperties": false},- "RemoveShorthandsRequestInput": {+ "NetworkServeTLSRequestInput": {"type": "object","properties": {- "ids": {- "type": "array",- "items": {- "type": "string"- }+ "networkServeTLS": {+ "type": "boolean"}},"required": [- "ids"+ "networkServeTLS"],"additionalProperties": false},- "RemoveTagRequestInput": {+ "Notebook": {"type": "object","properties": {- "label": {- "type": "string"- }- },- "required": [- "label"- ],- "additionalProperties": false- },- "RenameAssetRequestInput": {- "type": "object",- "properties": {- "newName": {- "type": "string"+ "closed": {+ "type": "boolean"},- "oldPath": {+ "dueFlashcardCount": {+ "type": "integer"+ },+ "encrypted": {+ "type": "boolean"+ },+ "flashcardCount": {+ "type": "integer"+ },+ "icon": {"type": "string"- }- },- "required": [- "newName",- "oldPath"- ],- "additionalProperties": false- },- "RenameBookmarkRequestInput": {- "type": "object",- "properties": {- "newBookmark": {+ },+ "id": {"type": "string"},- "oldBookmark": {+ "name": {"type": "string"+ },+ "newFlashcardCount": {+ "type": "integer"+ },+ "sort": {+ "type": "integer"+ },+ "sortMode": {+ "type": "integer"+ },+ "state": {+ "type": "string",+ "enum": [+ "Locked",+ "Unlocking",+ "Unlocked",+ "Locking",+ "Error"+ ]+ },+ "subFileCount": {+ "type": "integer"+ },+ "unlocked": {+ "type": "boolean"}},"required": [- "newBookmark",- "oldBookmark"+ "closed",+ "dueFlashcardCount",+ "encrypted",+ "flashcardCount",+ "icon",+ "id",+ "name",+ "newFlashcardCount",+ "sort",+ "sortMode",+ "subFileCount",+ "unlocked"],"additionalProperties": false},- "RenameFileRequestInput": {+ "NotebookConf": {"type": "object","properties": {- "newPath": {+ "boxCrypt": {+ "anyOf": [+ {+ "$ref": "#/$defs/NotebookEncryption"+ },+ {+ "type": "null"+ }+ ]+ },+ "closed": {+ "type": "boolean"+ },+ "dailyNoteSavePath": {"type": "string"},- "path": {+ "dailyNoteTemplatePath": {"type": "string"- }- },- "required": [- "newPath",- "path"- ],- "additionalProperties": false- },- "RenameNotebookRequestInput": {- "type": "object",- "properties": {- "name": {+ },+ "docCreateSaveBox": {"type": "string"},- "notebook": {+ "docCreateSavePath": {"type": "string"- }- },- "required": [- "name",- "notebook"- ],- "additionalProperties": false- },- "RenameRiffDeckRequestInput": {- "type": "object",- "properties": {- "deckID": {+ },+ "docCreateTemplatePath": {"type": "string"},- "name": {+ "encrypted": {+ "type": "boolean"+ },+ "icon": {"type": "string"- }- },- "required": [- "deckID",- "name"- ],- "additionalProperties": false- },- "RenameTagRequestInput": {- "type": "object",- "properties": {- "newLabel": {+ },+ "name": {"type": "string"},- "oldLabel": {+ "refCreateSaveBox": {"type": "string"- }- },- "required": [- "newLabel",- "oldLabel"- ],- "additionalProperties": false- },- "RenderSprigRequestInput": {- "type": "object",- "properties": {- "template": {+ },+ "refCreateSavePath": {"type": "string"+ },+ "sort": {+ "type": "integer"+ },+ "sortMode": {+ "type": "integer"}},"required": [- "template"+ "boxCrypt",+ "closed",+ "dailyNoteSavePath",+ "dailyNoteTemplatePath",+ "docCreateSaveBox",+ "docCreateSavePath",+ "docCreateTemplatePath",+ "encrypted",+ "icon",+ "name",+ "refCreateSaveBox",+ "refCreateSavePath",+ "sort",+ "sortMode"],"additionalProperties": false},- "RenderTemplateData": {+ "NotebookConfData": {"type": "object","properties": {- "content": {+ "box": {"type": "string"},- "docTreePlan": {- "$ref": "#/$defs/TemplatePlan"+ "conf": {+ "anyOf": [+ {+ "$ref": "#/$defs/NotebookConf"+ },+ {+ "type": "null"+ }+ ]},- "path": {+ "name": {"type": "string"}},"required": [- "content",- "path"+ "box",+ "conf",+ "name"],"additionalProperties": false},- "RenderTemplateRequestInput": {+ "NotebookConfPatchInput": {"type": "object","properties": {- "content": {- "type": "string"- },- "id": {- "type": "string"- },- "mode": {+ "boxCrypt": {"anyOf": [{- "type": "string"+ "$ref": "#/$defs/NotebookEncryptionPatchInput"},{"type": "null"}]},- "path": {- "type": "string"- },- "preview": {+ "closed": {"anyOf": [{"type": "boolean"@@ -13308,36 +13143,8 @@"type": "null"}]- }- },- "required": [- "id",- "path"- ],- "additionalProperties": false- },- "ReorderData": {- "type": "object",- "properties": {- "changed": {- "type": "boolean"},- "notebook": {- "type": "string"- },- "parentPath": {- "type": "string"- }- },- "required": [- "changed"- ],- "additionalProperties": false- },- "ReorderNotebooksRequestInput": {- "type": "object",- "properties": {- "position": {+ "dailyNoteSavePath": {"anyOf": [{"type": "string"@@ -13347,20 +13154,17 @@}]},- "sourceIDs": {+ "dailyNoteTemplatePath": {"anyOf": [{- "type": "array",- "items": {- "type": "string"- }+ "type": "string"},{"type": "null"}]},- "targetID": {+ "docCreateSaveBox": {"anyOf": [{"type": "string"@@ -13369,173 +13173,91 @@"type": "null"}]- }- },- "additionalProperties": false- },- "RepoCloudSnapshotsData": {- "type": "object",- "properties": {- "pageCount": {- "type": "integer"},- "snapshots": {+ "docCreateSavePath": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/RepoLog"- },- {- "type": "null"- }- ]- }+ "type": "string"},{"type": "null"}]},- "totalCount": {- "type": "integer"- }- },- "required": [- "pageCount",- "snapshots",- "totalCount"- ],- "additionalProperties": false- },- "RepoCloudTagsData": {- "type": "object",- "properties": {- "snapshots": {+ "docCreateTemplatePath": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/RepoLog"- },- {- "type": "null"- }- ]- }+ "type": "string"},{"type": "null"}]- }- },- "required": [- "snapshots"- ],- "additionalProperties": false- },- "RepoDiffData": {- "type": "object",- "properties": {- "addsLeft": {+ },+ "encrypted": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/RepoDiffFile"- },- {- "type": "null"- }- ]- }+ "type": "boolean"},{"type": "null"}]},- "left": {+ "icon": {"anyOf": [{- "$ref": "#/$defs/RepoDiffIndex"+ "type": "string"},{"type": "null"}]},- "removesRight": {+ "name": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/RepoDiffFile"- },- {- "type": "null"- }- ]- }+ "type": "string"},{"type": "null"}]},- "right": {+ "refCreateSaveBox": {"anyOf": [{- "$ref": "#/$defs/RepoDiffIndex"+ "type": "string"},{"type": "null"}]},- "updatesLeft": {+ "refCreateSavePath": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/RepoDiffFile"- },- {- "type": "null"- }- ]- }+ "type": "string"},{"type": "null"}]},- "updatesRight": {+ "sort": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/RepoDiffFile"- },- {- "type": "null"- }- ]- }+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "sortMode": {+ "anyOf": [+ {+ "type": "integer"},{"type": "null"@@ -13543,354 +13265,364 @@]}},- "required": [- "addsLeft",- "left",- "removesRight",- "right",- "updatesLeft",- "updatesRight"- ],"additionalProperties": false},- "RepoDiffFile": {+ "NotebookCryptoAutoLockRequestInput": {"type": "object","properties": {- "fileID": {- "type": "string"- },- "hPath": {- "type": "string"- },- "hSize": {- "type": "string"- },- "indexID": {- "type": "string"- },- "path": {- "type": "string"- },- "title": {- "type": "string"- },- "updated": {- "type": "integer"+ "autoLockMinutes": {+ "type": "number"}},"required": [- "fileID",- "hSize",- "indexID",- "path",- "title",- "updated"+ "autoLockMinutes"],"additionalProperties": false},- "RepoDiffIndex": {+ "NotebookCryptoBackupData": {"type": "object","properties": {- "created": {- "type": "integer"- },- "id": {+ "file": {"type": "string"}},"required": [- "created",- "id"+ "file"],"additionalProperties": false},- "RepoDocHistory": {+ "NotebookEncryption": {"type": "object","properties": {- "fileID": {- "type": "string"+ "createdAt": {+ "type": "integer"},- "hSize": {+ "metadata": {"type": "string"},- "indexID": {- "type": "string"+ "spec": {+ "type": "integer"},- "title": {- "type": "string"+ "wrapNonce": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]},- "updated": {- "type": "integer"+ "wrappedDEK": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]}},"required": [- "fileID",- "hSize",- "indexID",- "title",- "updated"+ "createdAt",+ "spec",+ "wrapNonce",+ "wrappedDEK"],"additionalProperties": false},- "RepoDocHistoryData": {+ "NotebookEncryptionPatchInput": {"type": "object","properties": {- "files": {+ "createdAt": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/RepoDocHistory"- },- {- "type": "null"- }- ]- }+ "type": "integer"},{"type": "null"}]},- "pageCount": {- "type": "integer"- },- "totalCount": {- "type": "integer"- }- },- "required": [- "files",- "pageCount",- "totalCount"- ],- "additionalProperties": false- },- "RepoExportData": {- "type": "object",- "properties": {- "path": {- "type": "string"+ "metadata": {+ "anyOf": [+ {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "array",+ "items": {+ "type": "integer"+ }+ }+ ]+ },+ {+ "type": "null"+ }+ ]+ },+ "spec": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "wrapNonce": {+ "anyOf": [+ {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "array",+ "items": {+ "type": "integer"+ }+ }+ ]+ },+ {+ "type": "null"+ }+ ]+ },+ "wrappedDEK": {+ "anyOf": [+ {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "array",+ "items": {+ "type": "integer"+ }+ }+ ]+ },+ {+ "type": "null"+ }+ ]}},- "required": [- "path"- ],"additionalProperties": false},- "RepoFile": {+ "NotebookHistoryData": {"type": "object","properties": {- "chunks": {+ "histories": {"anyOf": [{"type": "array","items": {- "type": "string"+ "anyOf": [+ {+ "$ref": "#/$defs/History"+ },+ {+ "type": "null"+ }+ ]}},{"type": "null"}]- },- "id": {- "type": "string"- },- "path": {- "type": "string"- },- "size": {- "type": "integer"- },- "updated": {- "type": "integer"}},"required": [- "chunks",- "id",- "path",- "size",- "updated"+ "histories"],"additionalProperties": false},- "RepoKeyData": {+ "NotebookIDRequestInput": {"type": "object","properties": {- "key": {+ "notebook": {"type": "string"}},"required": [- "key"+ "notebook"],"additionalProperties": false},- "RepoLog": {+ "NotebookInfo": {"type": "object","properties": {- "count": {+ "ctime": {"type": "integer"},- "created": {+ "docCount": {"type": "integer"},- "files": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/RepoFile"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]- },- "hCreated": {+ "hCtime": {"type": "string"},- "hSize": {+ "hMtime": {"type": "string"},- "hTagUpdated": {+ "hSize": {"type": "string"},"id": {"type": "string"},- "memo": {- "type": "string"- },- "size": {+ "mtime": {"type": "integer"},- "systemID": {- "type": "string"- },- "systemName": {- "type": "string"- },- "systemOS": {+ "name": {"type": "string"},- "tag": {- "type": "string"+ "size": {+ "type": "integer"}},"required": [- "count",- "created",- "files",- "hCreated",+ "ctime",+ "docCount",+ "hCtime",+ "hMtime","hSize",- "hTagUpdated","id",- "memo",- "size",- "systemID",- "systemName",- "systemOS",- "tag"+ "mtime",+ "name",+ "size"],"additionalProperties": false},- "RepoOpenFileData": {+ "NotebookInfoData": {"type": "object","properties": {- "content": {+ "boxInfo": {+ "anyOf": [+ {+ "$ref": "#/$defs/NotebookInfo"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": [+ "boxInfo"+ ],+ "additionalProperties": false+ },+ "NotebookPasswordRequestInput": {+ "type": "object",+ "properties": {+ "password": {"type": "string"- },- "displayInText": {- "type": "boolean"- },- "title": {+ }+ },+ "required": [+ "password"+ ],+ "additionalProperties": false+ },+ "NotificationData": {+ "type": "object",+ "properties": {+ "id": {"type": "string"- },- "updated": {- "type": "integer"}},"required": [- "content",- "displayInText",- "title",- "updated"+ "id"],"additionalProperties": false},- "RepoSearchData": {+ "NotificationRequestInput": {"type": "object","properties": {- "files": {+ "msg": {+ "type": "string"+ },+ "timeout": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/RepoDiffFile"- },- {- "type": "null"- }- ]- }+ "type": "number"},{"type": "null"}]+ }+ },+ "required": [+ "msg"+ ],+ "additionalProperties": false+ },+ "ObsidianAnalysisRequestInput": {+ "type": "object",+ "properties": {+ "localPath": {+ "type": "string"+ }+ },+ "required": [+ "localPath"+ ],+ "additionalProperties": false+ },+ "ObsidianImportRequestInput": {+ "type": "object",+ "properties": {+ "notebookName": {+ "type": "string"},- "pageCount": {- "type": "integer"- },- "totalCount": {- "type": "integer"+ "taskID": {+ "type": "string"}},"required": [- "files",- "pageCount",- "totalCount"+ "notebookName",+ "taskID"],"additionalProperties": false},- "RepoSnapshot": {+ "ObsidianTaskRequestInput": {"type": "object","properties": {- "count": {+ "taskID": {+ "type": "string"+ }+ },+ "required": [+ "taskID"+ ],+ "additionalProperties": false+ },+ "ObsidianVaultAnalysis": {+ "type": "object",+ "properties": {+ "ambiguousCount": {"type": "integer"},- "created": {+ "blockIDCount": {"type": "integer"},- "files": {+ "blockingErrors": {"anyOf": [{"type": "array","items": {- "anyOf": [- {- "$ref": "#/$defs/RepoFile"- },- {- "type": "null"- }- ]+ "type": "string"}},{@@ -13898,237 +13630,284 @@}]},- "hCreated": {- "type": "string"+ "commentCount": {+ "type": "integer"},- "hSize": {- "type": "string"+ "embedCount": {+ "type": "integer"},- "hTagUpdated": {- "type": "string"+ "footnoteCount": {+ "type": "integer"},- "id": {- "type": "string"+ "importableAssetCount": {+ "type": "integer"},- "memo": {- "type": "string"+ "importableAssetSize": {+ "type": "integer"},- "requiresDownload": {- "type": "boolean"+ "markdownCount": {+ "type": "integer"},- "size": {+ "missingCount": {"type": "integer"},- "systemID": {- "type": "string"+ "nameAdjustmentCount": {+ "type": "integer"},- "systemName": {+ "notebookName": {"type": "string"},- "systemOS": {+ "skippedHiddenCount": {+ "type": "integer"+ },+ "skippedLinkCount": {+ "type": "integer"+ },+ "skippedNestedVaultCount": {+ "type": "integer"+ },+ "skippedSpecialCount": {+ "type": "integer"+ },+ "syntheticParentCount": {+ "type": "integer"+ },+ "unreferencedFileCount": {+ "type": "integer"+ },+ "unsupportedCount": {+ "type": "integer"+ },+ "vaultName": {"type": "string"},- "tag": {+ "vaultPath": {"type": "string"},- "typesCount": {+ "warnings": {"anyOf": [{"type": "array","items": {- "anyOf": [- {- "$ref": "#/$defs/RepoTypeCount"- },- {- "type": "null"- }- ]+ "type": "string"}},{"type": "null"}]+ },+ "wikiLinkCount": {+ "type": "integer"}},"required": [- "count",- "created",- "files",- "hCreated",- "hSize",- "hTagUpdated",- "id",- "memo",- "requiresDownload",- "size",- "systemID",- "systemName",- "systemOS",- "tag",- "typesCount"+ "ambiguousCount",+ "blockIDCount",+ "blockingErrors",+ "commentCount",+ "embedCount",+ "footnoteCount",+ "importableAssetCount",+ "importableAssetSize",+ "markdownCount",+ "missingCount",+ "nameAdjustmentCount",+ "notebookName",+ "skippedHiddenCount",+ "skippedLinkCount",+ "skippedNestedVaultCount",+ "skippedSpecialCount",+ "syntheticParentCount",+ "unreferencedFileCount",+ "unsupportedCount",+ "vaultName",+ "vaultPath",+ "warnings",+ "wikiLinkCount"],"additionalProperties": false},- "RepoSnapshotsData": {+ "ObsidianVaultImportResult": {"type": "object","properties": {- "pageCount": {+ "convertedEmbedCount": {"type": "integer"},- "snapshots": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/RepoSnapshot"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "convertedFootnoteCount": {+ "type": "integer"},- "totalCount": {+ "convertedLinkCount": {+ "type": "integer"+ },+ "failedStage": {+ "type": "string"+ },+ "importedAttachmentCount": {+ "type": "integer"+ },+ "incomplete": {+ "type": "boolean"+ },+ "markdownCount": {+ "type": "integer"+ },+ "nameAdjustmentCount": {+ "type": "integer"+ },+ "notebookID": {+ "type": "string"+ },+ "notebookName": {+ "type": "string"+ },+ "preservedCommentCount": {+ "type": "integer"+ },+ "preservedUnresolvedCount": {+ "type": "integer"+ },+ "skippedPathCount": {+ "type": "integer"+ },+ "syntheticParentCount": {+ "type": "integer"+ },+ "unreferencedFileCount": {"type": "integer"}},"required": [- "pageCount",- "snapshots",- "totalCount"+ "convertedEmbedCount",+ "convertedFootnoteCount",+ "convertedLinkCount",+ "importedAttachmentCount",+ "incomplete",+ "markdownCount",+ "nameAdjustmentCount",+ "notebookID",+ "notebookName",+ "preservedCommentCount",+ "preservedUnresolvedCount",+ "skippedPathCount",+ "syntheticParentCount",+ "unreferencedFileCount"],"additionalProperties": false},- "RepoTagsData": {+ "ObsidianVaultTask": {"type": "object","properties": {- "snapshots": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/RepoSnapshot"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "analysis": {+ "$ref": "#/$defs/ObsidianVaultAnalysis"+ },+ "detail": {+ "type": "string"+ },+ "error": {+ "type": "string"+ },+ "message": {+ "type": "string"+ },+ "progress": {+ "type": "integer"+ },+ "result": {+ "$ref": "#/$defs/ObsidianVaultImportResult"+ },+ "state": {+ "type": "string"+ },+ "taskID": {+ "type": "string"}},"required": [- "snapshots"+ "message",+ "progress",+ "state",+ "taskID"],"additionalProperties": false},- "RepoTypeCount": {+ "OpenNotebookRequestInput": {"type": "object","properties": {- "count": {- "type": "integer"+ "app": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]},- "type": {+ "notebook": {"type": "string"}},"required": [- "count",- "type"+ "notebook"],"additionalProperties": false},- "ResetGraphData": {+ "OpenRepoSnapshotFileRequestInput": {"type": "object","properties": {- "conf": {- "$ref": "#/$defs/GlobalGraphConf"+ "id": {+ "type": "string"}},"required": [- "conf"+ "id"],"additionalProperties": false},- "ResetLocalGraphData": {+ "OrderedListStartData": {"type": "object","properties": {- "conf": {- "$ref": "#/$defs/LocalGraphConf"+ "found": {+ "type": "boolean"+ },+ "start": {+ "type": "integer"}},"required": [- "conf"+ "found",+ "start"],"additionalProperties": false},- "ResetRiffCardsRequestInput": {+ "OutlineRequestInput": {"type": "object","properties": {- "blockIDs": {+ "id": {"anyOf": [{- "type": "array",- "items": {- "type": "string"- }+ "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"+ "notebook": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]},- "reviewedCards": {+ "preview": {"anyOf": [{- "type": "array",- "items": {- "$ref": "#/$defs/RiffReviewedCardInput"- }+ "type": "boolean"},{"type": "null"@@ -14136,120 +13915,64 @@]}},- "required": [- "cardID",- "deckID",- "rating"- ],"additionalProperties": false},- "RichClipboardAssetInput": {+ "OutlineStorageRequestInput": {"type": "object","properties": {- "box": {- "type": "string"- },- "index": {- "type": "integer"- },- "path": {+ "docID": {"type": "string"}},"required": [- "index",- "path"+ "docID"],"additionalProperties": false},- "RichClipboardPrepared": {+ "OutlineStorageSetRequestInput": {"type": "object","properties": {- "assets": {- "anyOf": [- {- "type": "array",- "items": {- "$ref": "#/$defs/RichClipboardPreparedAsset"- }- },- {- "type": "null"- }- ]- },- "batch": {+ "docID": {"type": "string"},- "groups": {- "anyOf": [- {- "type": "array",- "items": {- "type": "string"- }- },- {- "type": "null"- }- ]+ "val": {+ "type": "object",+ "additionalProperties": {+ "$ref": "#/$defs/JSONValue"+ }}},"required": [- "assets",- "batch",- "groups"+ "docID",+ "val"],"additionalProperties": false},- "RichClipboardPreparedAsset": {+ "PandocData": {"type": "object","properties": {- "index": {- "type": "integer"- },"path": {"type": "string"}},"required": [- "index","path"],"additionalProperties": false},- "RiffBlockIDsRequestInput": {+ "PandocRequestInput": {"type": "object","properties": {- "blockIDs": {+ "args": {"type": "array","items": {"type": "string"}- }- },- "required": [- "blockIDs"- ],- "additionalProperties": false- },- "RiffBlocksData": {- "type": "object",- "properties": {- "blocks": {+ },+ "dir": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/SearchBlock"- },- {- "type": "null"- }- ]- }+ "type": "string"},{"type": "null"@@ -14258,58 +13981,53 @@}},"required": [- "blocks"+ "args"],"additionalProperties": false},- "RiffCardDueInput": {+ "PerformSyncRequestInput": {"type": "object","properties": {- "due": {- "type": "string"+ "mobileSwitch": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]},- "id": {- "type": "string"+ "upload": {+ "type": "boolean"}},- "required": [- "due",- "id"- ],"additionalProperties": false},- "RiffCardRequestInput": {+ "Petal": {"type": "object","properties": {- "cardID": {+ "css": {"type": "string"},- "deckID": {+ "disabledInPublish": {+ "type": "boolean"+ },+ "disallowInstall": {+ "type": "boolean"+ },+ "displayName": {"type": "string"- }- },- "required": [- "cardID",- "deckID"- ],- "additionalProperties": false- },- "RiffCardsData": {- "type": "object",- "properties": {- "blocks": {+ },+ "enabled": {+ "type": "boolean"+ },+ "i18n": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/SearchBlock"- },- {- "type": "null"- }- ]+ "type": "object",+ "additionalProperties": {+ "$ref": "#/$defs/JSONValue"}},{@@ -14317,50 +14035,55 @@}]},- "pageCount": {- "type": "integer"+ "incompatible": {+ "type": "boolean"},- "total": {- "type": "integer"+ "js": {+ "type": "string"+ },+ "kernel": {+ "$ref": "#/$defs/KernelPetal"+ },+ "name": {+ "type": "string"+ },+ "userDisabledInPublish": {+ "type": "boolean"+ },+ "version": {+ "type": "string"}},"required": [- "blocks",- "pageCount",- "total"+ "css",+ "disabledInPublish",+ "disallowInstall",+ "displayName",+ "enabled",+ "i18n",+ "incompatible",+ "js",+ "kernel",+ "name",+ "userDisabledInPublish",+ "version"],"additionalProperties": false},- "RiffCardsRequestInput": {+ "PinnedDoc": {"type": "object","properties": {- "id": {- "type": "string"- },- "page": {- "type": "number"- },- "pageSize": {+ "childrenSortMode": {"anyOf": [{- "type": "number"+ "type": "integer"},{"type": "null"}]- }- },- "required": [- "id",- "page"- ],- "additionalProperties": false- },- "RiffDeck": {- "type": "object",- "properties": {- "created": {+ },+ "icon": {"type": "string"},"id": {@@ -14369,503 +14092,466 @@"name": {"type": "string"},- "size": {- "type": "integer"+ "notebook": {+ "type": "string"},- "updated": {+ "path": {"type": "string"+ },+ "subFileCount": {+ "type": "integer"+ },+ "unavailable": {+ "type": "boolean"}},"required": [- "created",+ "childrenSortMode",+ "icon","id","name",- "size",- "updated"+ "notebook",+ "path",+ "subFileCount",+ "unavailable"],"additionalProperties": false},- "RiffDeckCardsRequestInput": {+ "PluginRPCError": {"type": "object","properties": {- "blockIDs": {- "type": "array",- "items": {- "type": "string"- }+ "code": {+ "type": "integer"},- "deckID": {- "type": "string"- }- },- "required": [- "blockIDs",- "deckID"- ],- "additionalProperties": false- },- "RiffDeckRequestInput": {- "type": "object",- "properties": {- "deckID": {+ "data": {+ "$ref": "#/$defs/JSONValue"+ },+ "message": {"type": "string"}},"required": [- "deckID"+ "code",+ "message"],"additionalProperties": false},- "RiffDueCard": {+ "PluginRPCFailure": {"type": "object","properties": {- "blockID": {- "type": "string"- },- "cardID": {- "type": "string"- },- "deckID": {- "type": "string"- },- "lapses": {- "type": "integer"- },- "lastReview": {- "type": "integer"- },- "nextDues": {+ "error": {"anyOf": [{- "type": "object",- "additionalProperties": {- "type": "string"- }+ "$ref": "#/$defs/PluginRPCError"},{"type": "null"}]},- "reps": {- "type": "integer"- },- "state": {- "type": "integer"- }- },- "required": [- "blockID",- "cardID",- "deckID",- "lapses",- "lastReview",- "nextDues",- "reps",- "state"- ],- "additionalProperties": false- },- "RiffDueCardsData": {- "type": "object",- "properties": {- "cards": {+ "id": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/RiffDueCard"- },- {- "type": "null"- }- ]- }+ "type": "string"+ },+ {+ "type": "number"},{"type": "null"}]},- "unreviewedCount": {- "type": "integer"- },- "unreviewedNewCardCount": {- "type": "integer"- },- "unreviewedOldCardCount": {- "type": "integer"+ "jsonrpc": {+ "type": "string",+ "enum": [+ "2.0"+ ]}},"required": [- "cards",- "unreviewedCount",- "unreviewedNewCardCount",- "unreviewedOldCardCount"+ "error",+ "id",+ "jsonrpc"],"additionalProperties": false},- "RiffDueCardsRequestInput": {+ "PluginRPCMethod": {"type": "object","properties": {- "deckID": {- "type": "string"- },- "reviewedCards": {+ "descriptions": {"anyOf": [{"type": "array","items": {- "$ref": "#/$defs/RiffReviewedCardInput"+ "type": "string"}},{"type": "null"}]+ },+ "name": {+ "type": "string"}},"required": [- "deckID"+ "descriptions",+ "name"],"additionalProperties": false},- "RiffNotebookDueCardsRequestInput": {+ "PluginRPCNotification": {"type": "object","properties": {- "notebook": {- "type": "string"- },- "reviewedCards": {- "anyOf": [- {- "type": "array",- "items": {- "$ref": "#/$defs/RiffReviewedCardInput"- }- },- {- "type": "null"- }+ "jsonrpc": {+ "type": "string",+ "enum": [+ "2.0"]- }- },- "required": [- "notebook"- ],- "additionalProperties": false- },- "RiffReviewedCardInput": {- "type": "object",- "properties": {- "cardID": {+ },+ "method": {"type": "string"+ },+ "params": {+ "$ref": "#/$defs/JSONValue"}},"required": [- "cardID"+ "jsonrpc",+ "method"],"additionalProperties": false},- "RiffTreeDueCardsRequestInput": {+ "PluginRPCRequestFieldsInput": {"type": "object","properties": {- "reviewedCards": {+ "id": {"anyOf": [{- "type": "array",- "items": {- "$ref": "#/$defs/RiffReviewedCardInput"- }+ "type": "string"+ },+ {+ "type": "number"},{"type": "null"}]},- "rootID": {+ "jsonrpc": {+ "type": "string",+ "enum": [+ "2.0"+ ]+ },+ "method": {"type": "string"+ },+ "params": {+ "anyOf": [+ {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/JSONValue"+ }+ },+ {+ "type": "object",+ "additionalProperties": {+ "$ref": "#/$defs/JSONValue"+ }+ }+ ]+ },+ {+ "type": "null"+ }+ ]}},"required": [- "rootID"+ "jsonrpc",+ "method"],"additionalProperties": false},- "RollbackRepoSnapshotFileRequestInput": {+ "PluginRPCSuccess": {"type": "object","properties": {"id": {- "type": "string"- }- },- "required": [- "id"- ],- "additionalProperties": false- },- "SQLQueryRequestInput": {- "type": "object",- "properties": {- "mode": {"anyOf": [{"type": "string"},+ {+ "type": "number"+ },{"type": "null"}]},- "stmt": {- "type": "string"+ "jsonrpc": {+ "type": "string",+ "enum": [+ "2.0"+ ]+ },+ "result": {+ "$ref": "#/$defs/JSONValue"}},"required": [- "stmt"+ "id",+ "jsonrpc",+ "result"],"additionalProperties": false},- "SaveTemplateRequestInput": {+ "PrepareRichTextRequestInput": {"type": "object","properties": {- "databaseMode": {- "type": "string"- },- "directory": {- "type": "string"- },- "id": {- "type": "string"- },- "name": {- "type": "string"- },- "overwrite": {- "type": "boolean"+ "assets": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/RichClipboardAssetInput"+ }}},"required": [- "id",- "name",- "overwrite"+ "assets"],"additionalProperties": false},- "SearchAsset": {+ "PrependBlockRequestInput": {"type": "object","properties": {- "hName": {+ "data": {"type": "string"},- "path": {+ "dataType": {"type": "string"},- "updated": {- "type": "integer"+ "parentID": {+ "type": "string"}},"required": [- "hName",- "path",- "updated"+ "data",+ "dataType",+ "parentID"],"additionalProperties": false},- "SearchAssetContentData": {+ "ProcessPDFRequestInput": {"type": "object","properties": {- "assetContents": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/AssetContent"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]- },- "matchedAssetCount": {- "type": "integer"+ "id": {+ "type": "string"},- "pageCount": {- "type": "integer"- }- },- "required": [- "assetContents",- "matchedAssetCount",- "pageCount"- ],- "additionalProperties": false- },- "SearchAssetContentRequestInput": {- "type": "object",- "properties": {- "method": {+ "merge": {"anyOf": [{- "type": "number"+ "type": "boolean"},{"type": "null"}]},- "orderBy": {+ "mergeContentHeadingMode": {"anyOf": [{- "type": "number"+ "type": "string"},{"type": "null"}]},- "page": {+ "mergeDocHeadingMode": {"anyOf": [{- "type": "number"+ "type": "string"},{"type": "null"}]},- "pageSize": {- "anyOf": [- {- "type": "number"- },- {- "type": "null"- }- ]+ "path": {+ "type": "string"},- "query": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]+ "removeAssets": {+ "type": "boolean"},- "types": {- "anyOf": [- {- "type": "object",- "additionalProperties": {- "type": "boolean"- }- },- {- "type": "null"- }- ]+ "watermark": {+ "type": "boolean"}},+ "required": [+ "id",+ "path",+ "removeAssets",+ "watermark"+ ],"additionalProperties": false},- "SearchAssetRequestInput": {+ "PublishedBlockInfo": {"type": "object","properties": {- "exts": {- "anyOf": [- {- "type": "array",- "items": {- "type": "string"- }- },- {- "type": "null"- }+ "publishAccessRequired": {+ "type": "boolean",+ "enum": [+ true]},- "k": {+ "rootID": {+ "type": "string"+ },+ "rootIcon": {+ "type": "string"+ },+ "rootTitle": {"type": "string"+ },+ "rootTitleEmpty": {+ "type": "boolean"}},"required": [- "k"+ "publishAccessRequired",+ "rootID",+ "rootIcon",+ "rootTitle",+ "rootTitleEmpty"],"additionalProperties": false},- "SearchBlock": {+ "PutFileRequestInput": {"type": "object","properties": {- "alias": {- "type": "string"- },- "box": {+ "app": {"type": "string"},- "children": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/SearchBlock"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "file": {+ "type": "string",+ "format": "binary"},- "content": {+ "isDir": {"type": "string"},- "count": {- "type": "integer"- },- "created": {+ "modTime": {"type": "string"},- "defID": {+ "path": {+ "type": "string"+ }+ },+ "additionalProperties": false+ },+ "ReadDirectoryRequestInput": {+ "type": "object",+ "properties": {+ "path": {"type": "string"+ }+ },+ "required": [+ "path"+ ],+ "additionalProperties": false+ },+ "RecentDoc": {+ "type": "object",+ "properties": {+ "closedAt": {+ "type": "integer"},- "defPath": {+ "icon": {"type": "string"},- "depth": {+ "openAt": {"type": "integer"},- "fcontent": {+ "rootID": {"type": "string"},- "folded": {- "type": "boolean"- },- "hPath": {+ "title": {"type": "string"},- "ial": {+ "viewedAt": {+ "type": "integer"+ }+ },+ "required": [+ "rootID"+ ],+ "additionalProperties": false+ },+ "RecentDocUpdateRequestInput": {+ "type": "object",+ "properties": {+ "rootID": {"anyOf": [{- "type": "object",- "additionalProperties": {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "RecentDocsRequestInput": {+ "type": "object",+ "properties": {+ "sortBy": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "RecentDocsUpdateRequestInput": {+ "type": "object",+ "properties": {+ "rootIDs": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "RefDefs": {+ "type": "object",+ "properties": {+ "defIDs": {+ "anyOf": [+ {+ "type": "array",+ "items": {"type": "string"}},@@ -14874,41 +14560,55 @@}]},- "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": {+ "refID": {"type": "string"+ }+ },+ "required": [+ "defIDs",+ "refID"+ ],+ "additionalProperties": false+ },+ "RefDefsData": {+ "type": "object",+ "properties": {+ "refDefs": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/RefDefs"+ }+ }+ },+ "required": [+ "refDefs"+ ],+ "additionalProperties": false+ },+ "RefIDsData": {+ "type": "object",+ "properties": {+ "originalRefBlockIDs": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]},- "refs": {+ "refDefs": {"anyOf": [{"type": "array","items": {"anyOf": [{- "$ref": "#/$defs/SearchBlock"+ "$ref": "#/$defs/RefDefs"},{"type": "null"@@ -14920,168 +14620,127 @@"type": "null"}]+ }+ },+ "required": [+ "originalRefBlockIDs",+ "refDefs"+ ],+ "additionalProperties": false+ },+ "RefIDsRequestInput": {+ "type": "object",+ "properties": {+ "id": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]},- "riffCard": {+ "ids": {"anyOf": [{- "$ref": "#/$defs/SearchBlockCard"+ "type": "array",+ "items": {+ "type": "string"+ }},{"type": "null"}]},- "riffCardID": {+ "notebook": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "RefTextQueryRequestInput": {+ "type": "object",+ "properties": {+ "anchor": {"type": "string"},- "rootID": {+ "notebook": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": [+ "anchor"+ ],+ "additionalProperties": false+ },+ "RefreshBacklinkRequestInput": {+ "type": "object",+ "properties": {+ "id": {"type": "string"- },- "sort": {- "type": "integer"- },- "subType": {+ }+ },+ "required": [+ "id"+ ],+ "additionalProperties": false+ },+ "RemoveBookmarkRequestInput": {+ "type": "object",+ "properties": {+ "bookmark": {"type": "string"- },+ }+ },+ "required": [+ "bookmark"+ ],+ "additionalProperties": false+ },+ "RemoveCloudRepoTagSnapshotRequestInput": {+ "type": "object",+ "properties": {"tag": {"type": "string"- },- "type": {- "type": "string"- },- "updated": {- "type": "string"}},"required": [- "alias",- "box",- "children",- "content",- "count",- "created",- "defID",- "defPath",- "depth",- "fcontent",- "folded",- "hPath",- "ial",- "id",- "markdown",- "memo",- "name",- "parentID",- "path",- "refCount",- "refText",- "refs",- "riffCard",- "riffCardID",- "rootID",- "sort",- "subType",- "tag",- "type",- "updated"+ "tag"],"additionalProperties": false},- "SearchBlockCard": {+ "RemoveCriterionRequestInput": {"type": "object","properties": {- "due": {- "type": "string"- },- "lapses": {- "type": "integer"- },- "lastReview": {+ "name": {"type": "string"- },- "reps": {- "type": "integer"- },- "state": {- "type": "integer"}},"required": [- "due",- "lapses",- "lastReview",- "reps",- "state"+ "name"],"additionalProperties": false},- "SearchBlockRequestInput": {+ "RemoveFileRequestInput": {"type": "object","properties": {- "groupBy": {- "anyOf": [- {- "type": "number"- },- {- "type": "null"- }- ]- },- "method": {- "anyOf": [- {- "type": "number"- },- {- "type": "null"- }- ]- },- "orderBy": {- "anyOf": [- {- "type": "number"- },- {- "type": "null"- }- ]- },- "page": {- "anyOf": [- {- "type": "number"- },- {- "type": "null"- }- ]- },- "pageSize": {- "anyOf": [- {- "type": "number"- },- {- "type": "null"- }- ]- },- "paths": {- "anyOf": [- {- "type": "array",- "items": {- "type": "string"- }- },- {- "type": "null"- }- ]- },- "query": {+ "app": {"anyOf": [{"type": "string"@@ -15091,157 +14750,204 @@}]},- "subTypes": {- "anyOf": [- {- "$ref": "#/$defs/SearchSubtypeFilterInput"- },- {- "type": "null"- }- ]- },- "types": {- "anyOf": [- {- "type": "object",- "additionalProperties": {- "type": "boolean"- }- },- {- "type": "null"- }- ]+ "path": {+ "type": "string"}},+ "required": [+ "path"+ ],"additionalProperties": false},- "SearchBlocksData": {+ "RemoveRepoTagSnapshotRequestInput": {"type": "object","properties": {- "blocks": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/SearchBlock"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]- },- "matchedBlockCount": {- "type": "integer"- },- "matchedRootCount": {- "type": "integer"- },- "pageCount": {- "type": "integer"+ "tag": {+ "type": "string"}},"required": [- "blocks",- "matchedBlockCount",- "matchedRootCount",- "pageCount"+ "tag"],"additionalProperties": false},- "SearchEmbedBlockRequestInput": {+ "RemoveShorthandsRequestInput": {"type": "object","properties": {- "breadcrumb": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ]- },- "embedBlockID": {- "type": "string"- },- "excludeIDs": {+ "ids": {"type": "array","items": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]+ "type": "string"}+ }+ },+ "required": [+ "ids"+ ],+ "additionalProperties": false+ },+ "RemoveTagRequestInput": {+ "type": "object",+ "properties": {+ "label": {+ "type": "string"+ }+ },+ "required": [+ "label"+ ],+ "additionalProperties": false+ },+ "RenameAssetRequestInput": {+ "type": "object",+ "properties": {+ "newName": {+ "type": "string"},- "headingMode": {- "anyOf": [- {- "type": "number"- },- {- "type": "null"- }- ]+ "oldPath": {+ "type": "string"+ }+ },+ "required": [+ "newName",+ "oldPath"+ ],+ "additionalProperties": false+ },+ "RenameBookmarkRequestInput": {+ "type": "object",+ "properties": {+ "newBookmark": {+ "type": "string"+ },+ "oldBookmark": {+ "type": "string"+ }+ },+ "required": [+ "newBookmark",+ "oldBookmark"+ ],+ "additionalProperties": false+ },+ "RenameFileRequestInput": {+ "type": "object",+ "properties": {+ "newPath": {+ "type": "string"+ },+ "path": {+ "type": "string"+ }+ },+ "required": [+ "newPath",+ "path"+ ],+ "additionalProperties": false+ },+ "RenameNotebookRequestInput": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"},"notebook": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]+ "type": "string"+ }+ },+ "required": [+ "name",+ "notebook"+ ],+ "additionalProperties": false+ },+ "RenameRiffDeckRequestInput": {+ "type": "object",+ "properties": {+ "deckID": {+ "type": "string"},- "stmt": {+ "name": {"type": "string"}},"required": [- "embedBlockID",- "excludeIDs",- "stmt"+ "deckID",+ "name"],"additionalProperties": false},- "SearchHeadingFilterInput": {+ "RenameTagRequestInput": {"type": "object","properties": {- "h1": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ]+ "newLabel": {+ "type": "string"},- "h2": {+ "oldLabel": {+ "type": "string"+ }+ },+ "required": [+ "newLabel",+ "oldLabel"+ ],+ "additionalProperties": false+ },+ "RenderSprigRequestInput": {+ "type": "object",+ "properties": {+ "template": {+ "type": "string"+ }+ },+ "required": [+ "template"+ ],+ "additionalProperties": false+ },+ "RenderTemplateData": {+ "type": "object",+ "properties": {+ "content": {+ "type": "string"+ },+ "docTreePlan": {+ "$ref": "#/$defs/TemplatePlan"+ },+ "path": {+ "type": "string"+ }+ },+ "required": [+ "content",+ "path"+ ],+ "additionalProperties": false+ },+ "RenderTemplateRequestInput": {+ "type": "object",+ "properties": {+ "content": {+ "type": "string"+ },+ "id": {+ "type": "string"+ },+ "mode": {"anyOf": [{- "type": "boolean"+ "type": "string"},{"type": "null"}]},- "h3": {+ "path": {+ "type": "string"+ },+ "preview": {"anyOf": [{"type": "boolean"@@ -15250,31 +14956,62 @@"type": "null"}]+ }+ },+ "required": [+ "id",+ "path"+ ],+ "additionalProperties": false+ },+ "ReorderData": {+ "type": "object",+ "properties": {+ "changed": {+ "type": "boolean"},- "h4": {+ "notebook": {+ "type": "string"+ },+ "parentPath": {+ "type": "string"+ }+ },+ "required": [+ "changed"+ ],+ "additionalProperties": false+ },+ "ReorderNotebooksRequestInput": {+ "type": "object",+ "properties": {+ "position": {"anyOf": [{- "type": "boolean"+ "type": "string"},{"type": "null"}]},- "h5": {+ "sourceIDs": {"anyOf": [{- "type": "boolean"+ "type": "array",+ "items": {+ "type": "string"+ }},{"type": "null"}]},- "h6": {+ "targetID": {"anyOf": [{- "type": "boolean"+ "type": "string"},{"type": "null"@@ -15284,15 +15021,25 @@},"additionalProperties": false},- "SearchHistoryData": {+ "RepoCloudSnapshotsData": {"type": "object","properties": {- "histories": {+ "pageCount": {+ "type": "integer"+ },+ "snapshots": {"anyOf": [{"type": "array","items": {- "type": "string"+ "anyOf": [+ {+ "$ref": "#/$defs/RepoLog"+ },+ {+ "type": "null"+ }+ ]}},{@@ -15300,141 +15047,143 @@}]},- "pageCount": {- "type": "integer"- },"totalCount": {"type": "integer"}},"required": [- "histories","pageCount",+ "snapshots","totalCount"],"additionalProperties": false},- "SearchHistoryRequestInput": {+ "RepoCloudTagsData": {"type": "object","properties": {- "notebook": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- },- "op": {+ "snapshots": {"anyOf": [{- "type": "string"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/RepoLog"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"}]- },- "page": {+ }+ },+ "required": [+ "snapshots"+ ],+ "additionalProperties": false+ },+ "RepoDiffData": {+ "type": "object",+ "properties": {+ "addsLeft": {"anyOf": [{- "type": "number"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/RepoDiffFile"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"}]},- "query": {+ "left": {"anyOf": [{- "type": "string"+ "$ref": "#/$defs/RepoDiffIndex"},{"type": "null"}]},- "type": {- "anyOf": [- {- "type": "number"- },- {- "type": "null"- }- ]- }- },- "additionalProperties": false- },- "SearchKeywordRequestInput": {- "type": "object",- "properties": {- "k": {- "type": "string"- }- },- "required": [- "k"- ],- "additionalProperties": false- },- "SearchListFilterInput": {- "type": "object",- "properties": {- "o": {+ "removesRight": {"anyOf": [{- "type": "boolean"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/RepoDiffFile"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"}]},- "t": {+ "right": {"anyOf": [{- "type": "boolean"+ "$ref": "#/$defs/RepoDiffIndex"},{"type": "null"}]},- "u": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ]- }- },- "additionalProperties": false- },- "SearchPageRequestInput": {- "type": "object",- "properties": {- "page": {+ "updatesLeft": {"anyOf": [{- "type": "number"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/RepoDiffFile"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"}]},- "pageSize": {+ "updatesRight": {"anyOf": [{- "type": "number"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/RepoDiffFile"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"@@ -15442,193 +15191,211 @@]}},+ "required": [+ "addsLeft",+ "left",+ "removesRight",+ "right",+ "updatesLeft",+ "updatesRight"+ ],"additionalProperties": false},- "SearchPath": {+ "RepoDiffFile": {"type": "object","properties": {- "blocks": {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/SearchBlock"- },- {- "type": "null"- }- ]- }- },- "box": {- "type": "string"- },- "children": {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/SearchPath"- },- {- "type": "null"- }- ]- }- },- "count": {- "type": "integer"- },- "created": {+ "fileID": {"type": "string"},- "depth": {- "type": "integer"- },- "folded": {- "type": "boolean"- },"hPath": {"type": "string"},- "id": {- "type": "string"- },- "name": {- "type": "string"- },- "nodeType": {+ "hSize": {"type": "string"},- "number": {+ "indexID": {"type": "string"},- "subType": {+ "path": {"type": "string"},- "type": {+ "title": {"type": "string"},"updated": {- "type": "string"+ "type": "integer"}},"required": [- "box",- "count",- "created",- "depth",- "folded",- "hPath",- "id",- "name",- "nodeType",- "subType",- "type",+ "fileID",+ "hSize",+ "indexID",+ "path",+ "title","updated"],"additionalProperties": false},- "SearchPathRequestInput": {+ "RepoDiffIndex": {"type": "object","properties": {- "path": {+ "created": {+ "type": "integer"+ },+ "id": {"type": "string"}},"required": [- "path"+ "created",+ "id"],"additionalProperties": false},- "SearchRefBlockRequestInput": {+ "RepoDocHistory": {"type": "object","properties": {- "beforeLen": {- "type": "number"- },- "id": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]+ "fileID": {+ "type": "string"},- "isDatabase": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ]+ "hSize": {+ "type": "string"},- "isSquareBrackets": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ]+ "indexID": {+ "type": "string"},- "k": {+ "title": {"type": "string"},- "notebook": {+ "updated": {+ "type": "integer"+ }+ },+ "required": [+ "fileID",+ "hSize",+ "indexID",+ "title",+ "updated"+ ],+ "additionalProperties": false+ },+ "RepoDocHistoryData": {+ "type": "object",+ "properties": {+ "files": {"anyOf": [{- "type": "string"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/RepoDocHistory"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"}]},- "reqId": {+ "pageCount": {+ "type": "integer"+ },+ "totalCount": {+ "type": "integer"+ }+ },+ "required": [+ "files",+ "pageCount",+ "totalCount"+ ],+ "additionalProperties": false+ },+ "RepoExportData": {+ "type": "object",+ "properties": {+ "path": {+ "type": "string"+ }+ },+ "required": [+ "path"+ ],+ "additionalProperties": false+ },+ "RepoFile": {+ "type": "object",+ "properties": {+ "chunks": {"anyOf": [{- "$ref": "#/$defs/JSONValue"+ "type": "array",+ "items": {+ "type": "string"+ }},{"type": "null"}]},- "rootID": {+ "id": {+ "type": "string"+ },+ "path": {"type": "string"+ },+ "size": {+ "type": "integer"+ },+ "updated": {+ "type": "integer"}},+ "required": [+ "chunks",+ "id",+ "path",+ "size",+ "updated"+ ],"additionalProperties": false},- "SearchRefCorrelation": {+ "RepoKeyData": {"type": "object","properties": {- "reqId": {- "$ref": "#/$defs/JSONValue"+ "key": {+ "type": "string"}},"required": [- "reqId"+ "key"],"additionalProperties": false},- "SearchRefResult": {+ "RepoLog": {"type": "object","properties": {- "blocks": {+ "count": {+ "type": "integer"+ },+ "created": {+ "type": "integer"+ },+ "files": {"anyOf": [{"type": "array","items": {"anyOf": [{- "$ref": "#/$defs/SearchBlock"+ "$ref": "#/$defs/RepoFile"},{"type": "null"@@ -15641,49 +15408,94 @@}]},- "k": {+ "hCreated": {"type": "string"},- "newDoc": {- "type": "boolean"+ "hSize": {+ "type": "string"},- "reqId": {- "$ref": "#/$defs/JSONValue"+ "hTagUpdated": {+ "type": "string"+ },+ "id": {+ "type": "string"+ },+ "memo": {+ "type": "string"+ },+ "size": {+ "type": "integer"+ },+ "systemID": {+ "type": "string"+ },+ "systemName": {+ "type": "string"+ },+ "systemOS": {+ "type": "string"+ },+ "tag": {+ "type": "string"}},"required": [- "blocks",- "k",- "newDoc",- "reqId"+ "count",+ "created",+ "files",+ "hCreated",+ "hSize",+ "hTagUpdated",+ "id",+ "memo",+ "size",+ "systemID",+ "systemName",+ "systemOS",+ "tag"],"additionalProperties": false},- "SearchRepoFileRequestInput": {+ "RepoOpenFileData": {"type": "object","properties": {- "keyword": {+ "content": {"type": "string"},- "page": {- "type": "number"+ "displayInText": {+ "type": "boolean"+ },+ "title": {+ "type": "string"+ },+ "updated": {+ "type": "integer"}},"required": [- "keyword",- "page"+ "content",+ "displayInText",+ "title",+ "updated"],"additionalProperties": false},- "SearchSubTypes": {+ "RepoSearchData": {"type": "object","properties": {- "heading": {+ "files": {"anyOf": [{- "type": "object",- "additionalProperties": {- "type": "boolean"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/RepoDiffFile"+ },+ {+ "type": "null"+ }+ ]}},{@@ -15691,112 +15503,96 @@}]},- "list": {- "anyOf": [- {- "type": "object",- "additionalProperties": {- "type": "boolean"- }- },- {- "type": "null"- }- ]+ "pageCount": {+ "type": "integer"},- "listItem": {- "anyOf": [- {- "type": "object",- "additionalProperties": {- "type": "boolean"- }- },- {- "type": "null"- }- ]+ "totalCount": {+ "type": "integer"}},"required": [- "heading",- "list",- "listItem"- ],+ "files",+ "pageCount",+ "totalCount"+ ],"additionalProperties": false},- "SearchSubTypesInput": {+ "RepoSnapshot": {"type": "object","properties": {- "heading": {- "anyOf": [- {- "type": "object",- "additionalProperties": {- "type": "boolean"- }- },- {- "type": "null"- }- ]+ "count": {+ "type": "integer"},- "list": {- "anyOf": [- {- "type": "object",- "additionalProperties": {- "type": "boolean"- }- },- {- "type": "null"- }- ]+ "created": {+ "type": "integer"},- "listItem": {+ "files": {"anyOf": [{- "type": "object",- "additionalProperties": {- "type": "boolean"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/RepoFile"+ },+ {+ "type": "null"+ }+ ]}},{"type": "null"}]- }- },- "additionalProperties": false- },- "SearchSubtypeFilterInput": {- "type": "object",- "properties": {- "heading": {- "anyOf": [- {- "$ref": "#/$defs/SearchHeadingFilterInput"- },- {- "type": "null"- }- ]},- "list": {- "anyOf": [- {- "$ref": "#/$defs/SearchListFilterInput"- },- {- "type": "null"- }- ]+ "hCreated": {+ "type": "string"},- "listItem": {+ "hSize": {+ "type": "string"+ },+ "hTagUpdated": {+ "type": "string"+ },+ "id": {+ "type": "string"+ },+ "memo": {+ "type": "string"+ },+ "requiresDownload": {+ "type": "boolean"+ },+ "size": {+ "type": "integer"+ },+ "systemID": {+ "type": "string"+ },+ "systemName": {+ "type": "string"+ },+ "systemOS": {+ "type": "string"+ },+ "tag": {+ "type": "string"+ },+ "typesCount": {"anyOf": [{- "$ref": "#/$defs/SearchListFilterInput"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/RepoTypeCount"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"@@ -15804,53 +15600,39 @@]}},- "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"+ "count",+ "created",+ "files",+ "hCreated",+ "hSize",+ "hTagUpdated",+ "id",+ "memo",+ "requiresDownload",+ "size",+ "systemID",+ "systemName",+ "systemOS",+ "tag",+ "typesCount"],"additionalProperties": false},- "SearchTemplateData": {+ "RepoSnapshotsData": {"type": "object","properties": {- "k": {- "type": "string"+ "pageCount": {+ "type": "integer"},- "templates": {+ "snapshots": {"anyOf": [{"type": "array","items": {"anyOf": [{- "$ref": "#/$defs/SearchTemplateResult"+ "$ref": "#/$defs/RepoSnapshot"},{"type": "null"@@ -15862,48 +15644,29 @@"type": "null"}]- }- },- "required": [- "k",- "templates"- ],- "additionalProperties": false- },- "SearchTemplateResult": {- "type": "object",- "properties": {- "content": {- "type": "string"- },- "path": {- "type": "string"},- "relativePath": {- "type": "string"+ "totalCount": {+ "type": "integer"}},"required": [- "content",- "path",- "relativePath"+ "pageCount",+ "snapshots",+ "totalCount"],"additionalProperties": false},- "SearchWidgetData": {+ "RepoTagsData": {"type": "object","properties": {- "k": {- "type": "string"- },- "widgets": {+ "snapshots": {"anyOf": [{"type": "array","items": {"anyOf": [{- "$ref": "#/$defs/SearchWidgetResult"+ "$ref": "#/$defs/RepoSnapshot"},{"type": "null"@@ -15918,112 +15681,102 @@}},"required": [- "k",- "widgets"+ "snapshots"],"additionalProperties": false},- "SearchWidgetResult": {+ "RepoTypeCount": {"type": "object","properties": {- "content": {- "type": "string"+ "count": {+ "type": "integer"},- "name": {+ "type": {"type": "string"}},"required": [- "content",- "name"+ "count",+ "type"],"additionalProperties": false},- "SetAssetAnnotationRequestInput": {+ "ResetGraphData": {"type": "object","properties": {- "data": {- "type": "string"- },- "path": {- "type": "string"+ "conf": {+ "$ref": "#/$defs/GlobalGraphConf"}},"required": [- "data",- "path"+ "conf"],"additionalProperties": false},- "SetAssetOCRTextRequestInput": {+ "ResetLocalGraphData": {"type": "object","properties": {- "path": {- "type": "string"- },- "text": {- "type": "string"+ "conf": {+ "$ref": "#/$defs/LocalGraphConf"}},"required": [- "path",- "text"+ "conf"],"additionalProperties": false},- "SetBazaarPackageRatingRequestInput": {+ "ResetRiffCardsRequestInput": {"type": "object","properties": {- "packageName": {- "type": "string"- },- "packageType": {- "type": "string"- },- "rating": {- "type": "number"- }- },- "required": [- "packageName",- "packageType",- "rating"- ],- "additionalProperties": false- },- "SetBlockAttrsRequestInput": {- "type": "object",- "properties": {- "attrs": {- "type": "object",- "additionalProperties": {- "anyOf": [- {+ "blockIDs": {+ "anyOf": [+ {+ "type": "array",+ "items": {"type": "string"- },- {- "type": "null"}- ]- }+ },+ {+ "type": "null"+ }+ ]+ },+ "deckID": {+ "type": "string"},"id": {"type": "string"+ },+ "type": {+ "type": "string"}},"required": [- "attrs",- "id"+ "deckID",+ "id",+ "type"],"additionalProperties": false},- "SetCriterionRequestInput": {+ "ReviewRiffCardRequestInput": {"type": "object","properties": {- "criterion": {+ "cardID": {+ "type": "string"+ },+ "deckID": {+ "type": "string"+ },+ "rating": {+ "type": "number"+ },+ "reviewedCards": {"anyOf": [{- "$ref": "#/$defs/CriterionInput"+ "type": "array",+ "items": {+ "$ref": "#/$defs/RiffReviewedCardInput"+ }},{"type": "null"@@ -16032,617 +15785,640 @@}},"required": [- "criterion"+ "cardID",+ "deckID",+ "rating"],"additionalProperties": false},- "SetGraphConfRequestInput": {+ "RichClipboardAssetInput": {"type": "object","properties": {- "conf": {- "$ref": "#/$defs/GraphConfigurationFieldsInput"+ "box": {+ "type": "string"},- "type": {+ "index": {+ "type": "integer"+ },+ "path": {"type": "string"}},"required": [- "conf",- "type"+ "index",+ "path"],"additionalProperties": false},- "SetInlineStylesRequestInput": {+ "RichClipboardPrepared": {"type": "object","properties": {- "app": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- },- "av": {+ "assets": {"anyOf": [{- "$ref": "#/$defs/InlineStyleAVInput"+ "type": "array",+ "items": {+ "$ref": "#/$defs/RichClipboardPreparedAsset"+ }},{"type": "null"}]},- "builtin": {- "anyOf": [- {- "$ref": "#/$defs/InlineStyleBuiltinInput"- },- {- "type": "null"- }- ]+ "batch": {+ "type": "string"},- "order": {+ "groups": {"anyOf": [{- "$ref": "#/$defs/InlineStyleOrderInput"+ "type": "array",+ "items": {+ "type": "string"+ }},{"type": "null"}]- },- "styles": {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/InlineStyleInput"- },- {- "type": "null"- }- ]- }- },- "version": {- "type": "number"}},"required": [- "styles",- "version"+ "assets",+ "batch",+ "groups"],"additionalProperties": false},- "SetNotebookConfRequestInput": {+ "RichClipboardPreparedAsset": {"type": "object","properties": {- "conf": {- "anyOf": [- {- "$ref": "#/$defs/NotebookConfPatchInput"- },- {- "type": "null"- }- ]+ "index": {+ "type": "integer"},- "notebook": {+ "path": {"type": "string"}},"required": [- "notebook"+ "index",+ "path"],"additionalProperties": false},- "SetNotebookIconRequestInput": {+ "RiffBlockIDsRequestInput": {"type": "object","properties": {- "icon": {- "type": "string"- },- "notebook": {- "type": "string"+ "blockIDs": {+ "type": "array",+ "items": {+ "type": "string"+ }}},"required": [- "icon",- "notebook"+ "blockIDs"],"additionalProperties": false},- "SetPetalEnabledRequestInput": {+ "RiffBlocksData": {"type": "object","properties": {- "app": {+ "blocks": {"anyOf": [{- "type": "string"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SearchBlock"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"}]- },- "enabled": {- "type": "boolean"- },- "packageName": {- "type": "string"}},"required": [- "enabled",- "packageName"+ "blocks"],"additionalProperties": false},- "SetPetalPublishEnabledRequestInput": {+ "RiffCardDueInput": {"type": "object","properties": {- "enabled": {- "type": "boolean"+ "due": {+ "type": "string"},- "packageName": {+ "id": {"type": "string"}},"required": [- "enabled",- "packageName"+ "due",+ "id"],"additionalProperties": false},- "SetRepoIndexRetentionDaysRequestInput": {+ "RiffCardRequestInput": {"type": "object","properties": {- "days": {- "type": "number"+ "cardID": {+ "type": "string"+ },+ "deckID": {+ "type": "string"}},"required": [- "days"+ "cardID",+ "deckID"],"additionalProperties": false},- "SetRetentionIndexesDailyRequestInput": {+ "RiffCardsData": {"type": "object","properties": {- "indexes": {- "type": "number"+ "blocks": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SearchBlock"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "pageCount": {+ "type": "integer"+ },+ "total": {+ "type": "integer"}},"required": [- "indexes"+ "blocks",+ "pageCount",+ "total"],"additionalProperties": false},- "SetRiffCardsDueRequestInput": {+ "RiffCardsRequestInput": {"type": "object","properties": {- "cardDues": {- "type": "array",- "items": {- "$ref": "#/$defs/RiffCardDueInput"- }+ "id": {+ "type": "string"+ },+ "page": {+ "type": "number"+ },+ "pageSize": {+ "anyOf": [+ {+ "type": "number"+ },+ {+ "type": "null"+ }+ ]}},"required": [- "cardDues"+ "id",+ "page"],"additionalProperties": false},- "SetSnapshotMemoRequestInput": {+ "RiffDeck": {"type": "object","properties": {+ "created": {+ "type": "string"+ },"id": {"type": "string"},- "memo": {+ "name": {+ "type": "string"+ },+ "size": {+ "type": "integer"+ },+ "updated": {"type": "string"}},"required": [+ "created","id",- "memo"+ "name",+ "size",+ "updated"],"additionalProperties": false},- "SetSnippetRequestInput": {+ "RiffDeckCardsRequestInput": {"type": "object","properties": {- "snippets": {+ "blockIDs": {"type": "array","items": {- "$ref": "#/$defs/SnippetInput"+ "type": "string"}+ },+ "deckID": {+ "type": "string"}},"required": [- "snippets"- ],- "additionalProperties": false- },- "SetSyncLocalRequestInput": {- "type": "object",- "properties": {- "local": {- "$ref": "#/$defs/SyncLocalInput"- }- },- "required": [- "local"- ],- "additionalProperties": false- },- "SetSyncS3RequestInput": {- "type": "object",- "properties": {- "s3": {- "$ref": "#/$defs/SyncS3Input"- }- },- "required": [- "s3"+ "blockIDs",+ "deckID"],"additionalProperties": false},- "SetSyncWebDAVRequestInput": {+ "RiffDeckRequestInput": {"type": "object","properties": {- "webdav": {- "$ref": "#/$defs/SyncWebDAVInput"+ "deckID": {+ "type": "string"}},"required": [- "webdav"+ "deckID"],"additionalProperties": false},- "Shorthand": {+ "RiffDueCard": {"type": "object","properties": {- "hCreated": {+ "blockID": {"type": "string"},- "oId": {+ "cardID": {"type": "string"},- "shorthandContent": {+ "deckID": {"type": "string"},- "shorthandDesc": {- "type": "string"+ "lapses": {+ "type": "integer"},- "shorthandFrom": {+ "lastReview": {"type": "integer"},- "shorthandMd": {- "type": "string"+ "nextDues": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]},- "shorthandTitle": {- "type": "string"+ "reps": {+ "type": "integer"},- "shorthandURL": {- "type": "string"+ "state": {+ "type": "integer"}},"required": [- "hCreated",- "oId",- "shorthandContent",- "shorthandDesc",- "shorthandFrom",- "shorthandMd",- "shorthandTitle",- "shorthandURL"+ "blockID",+ "cardID",+ "deckID",+ "lapses",+ "lastReview",+ "nextDues",+ "reps",+ "state"],"additionalProperties": false},- "ShorthandPage": {+ "RiffDueCardsData": {"type": "object","properties": {- "pagination": {- "$ref": "#/$defs/ShorthandPagination"- },- "shorthands": {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/Shorthand"- },- {- "type": "null"+ "cards": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/RiffDueCard"+ },+ {+ "type": "null"+ }+ ]}- ]- }+ },+ {+ "type": "null"+ }+ ]+ },+ "unreviewedCount": {+ "type": "integer"+ },+ "unreviewedNewCardCount": {+ "type": "integer"+ },+ "unreviewedOldCardCount": {+ "type": "integer"}},"required": [- "pagination",- "shorthands"+ "cards",+ "unreviewedCount",+ "unreviewedNewCardCount",+ "unreviewedOldCardCount"],"additionalProperties": false},- "ShorthandPagination": {+ "RiffDueCardsRequestInput": {"type": "object","properties": {- "paginationPageCount": {- "type": "integer"+ "deckID": {+ "type": "string"},- "paginationPageNums": {+ "reviewedCards": {"anyOf": [{"type": "array","items": {- "type": "integer"+ "$ref": "#/$defs/RiffReviewedCardInput"}},{"type": "null"}]- },- "paginationRecordCount": {- "type": "integer"}},"required": [- "paginationPageCount",- "paginationPageNums",- "paginationRecordCount"+ "deckID"],"additionalProperties": false},- "ShorthandsData": {+ "RiffNotebookDueCardsRequestInput": {"type": "object","properties": {- "code": {- "type": "integer"- },- "data": {- "$ref": "#/$defs/ShorthandPage"- },- "msg": {+ "notebook": {"type": "string"+ },+ "reviewedCards": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/RiffReviewedCardInput"+ }+ },+ {+ "type": "null"+ }+ ]}},"required": [- "code",- "data",- "msg"+ "notebook"],"additionalProperties": false},- "ShorthandsRequestInput": {+ "RiffReviewedCardInput": {"type": "object","properties": {- "page": {- "type": "number"+ "cardID": {+ "type": "string"}},"required": [- "page"+ "cardID"],"additionalProperties": false},- "Snippet": {+ "RiffTreeDueCardsRequestInput": {"type": "object","properties": {- "content": {- "type": "string"+ "reviewedCards": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/RiffReviewedCardInput"+ }+ },+ {+ "type": "null"+ }+ ]},- "disabledInPublish": {- "type": "boolean"- },- "enabled": {- "type": "boolean"- },- "id": {- "type": "string"- },- "name": {- "type": "string"- },- "type": {+ "rootID": {"type": "string"}},"required": [- "content",- "disabledInPublish",- "enabled",- "id",- "name",- "type"+ "rootID"],"additionalProperties": false},- "SnippetInput": {+ "RollbackRepoSnapshotFileRequestInput": {"type": "object","properties": {- "content": {- "type": "string"- },- "disabledInPublish": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ]- },- "enabled": {- "type": "boolean"- },"id": {"type": "string"- },- "name": {- "type": "string"- },- "type": {- "type": "string"}},"required": [- "content",- "enabled",- "id",- "name",- "type"+ "id"],"additionalProperties": false},- "SnippetsData": {+ "SQLQueryRequestInput": {"type": "object","properties": {- "snippets": {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/Snippet"- },- {- "type": "null"- }- ]- }+ "mode": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "stmt": {+ "type": "string"}},"required": [- "snippets"+ "stmt"],"additionalProperties": false},- "StorageKeyRequestInput": {+ "SaveTemplateRequestInput": {"type": "object","properties": {- "key": {+ "databaseMode": {+ "type": "string"+ },+ "directory": {+ "type": "string"+ },+ "id": {"type": "string"+ },+ "name": {+ "type": "string"+ },+ "overwrite": {+ "type": "boolean"}},"required": [- "key"+ "id",+ "name",+ "overwrite"],"additionalProperties": false},- "StorageKeysRequestInput": {+ "SearchAsset": {"type": "object","properties": {- "keys": {- "type": "array",- "items": {- "type": "string"- }+ "hName": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "updated": {+ "type": "integer"}},"required": [- "keys"+ "hName",+ "path",+ "updated"],"additionalProperties": false},- "StorageRemoveKeysRequestInput": {+ "SearchAssetContentData": {"type": "object","properties": {- "app": {+ "assetContents": {"anyOf": [{- "type": "string"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/AssetContent"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"}]},- "keys": {- "type": "array",- "items": {- "type": "string"- }+ "matchedAssetCount": {+ "type": "integer"+ },+ "pageCount": {+ "type": "integer"}},"required": [- "keys"+ "assetContents",+ "matchedAssetCount",+ "pageCount"],"additionalProperties": false},- "StorageRemoveRequestInput": {+ "SearchAssetContentRequestInput": {"type": "object","properties": {- "app": {+ "method": {"anyOf": [{- "type": "string"+ "type": "number"},{"type": "null"}]},- "key": {- "type": "string"- }- },- "required": [- "key"- ],- "additionalProperties": false- },- "StorageSetKeysRequestInput": {- "type": "object",- "properties": {- "app": {+ "orderBy": {"anyOf": [{- "type": "string"+ "type": "number"},{"type": "null"}]},- "keyVals": {- "type": "object",- "additionalProperties": {- "$ref": "#/$defs/JSONValue"- }- }- },- "required": [- "keyVals"- ],- "additionalProperties": false- },- "StorageSetRequestInput": {- "type": "object",- "properties": {- "app": {+ "page": {"anyOf": [{- "type": "string"+ "type": "number"},{"type": "null"}]},- "key": {- "type": "string"+ "pageSize": {+ "anyOf": [+ {+ "type": "number"+ },+ {+ "type": "null"+ }+ ]},- "val": {+ "query": {"anyOf": [{- "$ref": "#/$defs/JSONValue"+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "types": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "boolean"+ }},{"type": "null"@@ -16650,69 +16426,50 @@]}},- "required": [- "key"- ],"additionalProperties": false},- "SwapBlockRefRequestInput": {+ "SearchAssetRequestInput": {"type": "object","properties": {- "defID": {- "type": "string"- },- "includeChildren": {- "type": "boolean"+ "exts": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]},- "refID": {+ "k": {"type": "string"}},"required": [- "defID",- "includeChildren",- "refID"+ "k"],"additionalProperties": false},- "SyncAssetDownloadModeData": {+ "SearchBlock": {"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": {+ "alias": {"type": "string"},- "kernels": {+ "box": {+ "type": "string"+ },+ "children": {"anyOf": [{"type": "array","items": {"anyOf": [{- "$ref": "#/$defs/SyncOnlineKernel"+ "$ref": "#/$defs/SearchBlock"},{"type": "null"@@ -16725,321 +16482,254 @@}]},- "stat": {+ "content": {"type": "string"},- "synced": {+ "count": {"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": {+ },+ "created": {+ "type": "string"+ },+ "defID": {+ "type": "string"+ },+ "defPath": {+ "type": "string"+ },+ "depth": {+ "type": "integer"+ },+ "fcontent": {+ "type": "string"+ },+ "folded": {"type": "boolean"},- "maxConcurrentReqs": {+ "hPath": {+ "type": "string"+ },+ "ial": {"anyOf": [{- "type": "number"+ "type": "object",+ "additionalProperties": {+ "type": "string"+ }},{"type": "null"}]- }- },- "required": [- "enabled"- ],- "additionalProperties": false- },- "SyncLANStatus": {- "type": "object",- "properties": {- "active": {- "type": "boolean"},- "connectedPeers": {- "type": "integer"+ "id": {+ "type": "string"},- "discoveredPeers": {+ "markdown": {+ "type": "string"+ },+ "memo": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "number": {+ "type": "string"+ },+ "parentID": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "refCount": {"type": "integer"},- "enabled": {- "type": "boolean"+ "refText": {+ "type": "string"},- "maxConcurrentReqs": {+ "refs": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SearchBlock"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "riffCard": {+ "anyOf": [+ {+ "$ref": "#/$defs/SearchBlockCard"+ },+ {+ "type": "null"+ }+ ]+ },+ "riffCardID": {+ "type": "string"+ },+ "rootID": {+ "type": "string"+ },+ "sort": {"type": "integer"+ },+ "subType": {+ "type": "string"+ },+ "tag": {+ "type": "string"+ },+ "type": {+ "type": "string"+ },+ "updated": {+ "type": "string"}},"required": [- "active",- "connectedPeers",- "discoveredPeers",- "enabled",- "maxConcurrentReqs"+ "alias",+ "box",+ "children",+ "content",+ "count",+ "created",+ "defID",+ "defPath",+ "depth",+ "fcontent",+ "folded",+ "hPath",+ "ial",+ "id",+ "markdown",+ "memo",+ "name",+ "parentID",+ "path",+ "refCount",+ "refText",+ "refs",+ "riffCard",+ "riffCardID",+ "rootID",+ "sort",+ "subType",+ "tag",+ "type",+ "updated"],"additionalProperties": false},- "SyncLocal": {+ "SearchBlockCard": {"type": "object","properties": {- "concurrentReqs": {+ "due": {+ "type": "string"+ },+ "lapses": {"type": "integer"},- "endpoint": {+ "lastReview": {"type": "string"},- "timeout": {+ "reps": {+ "type": "integer"+ },+ "state": {"type": "integer"}},"required": [- "concurrentReqs",- "endpoint",- "timeout"+ "due",+ "lapses",+ "lastReview",+ "reps",+ "state"],"additionalProperties": false},- "SyncLocalData": {+ "SearchBlockRequestInput": {"type": "object","properties": {- "local": {+ "groupBy": {"anyOf": [{- "$ref": "#/$defs/SyncLocal"+ "type": "number"},{"type": "null"}]- }- },- "required": [- "local"- ],- "additionalProperties": false- },- "SyncLocalInput": {- "type": "object",- "properties": {- "concurrentReqs": {+ },+ "method": {"anyOf": [{- "type": "integer"+ "type": "number"},{"type": "null"}]},- "endpoint": {+ "orderBy": {"anyOf": [{- "type": "string"+ "type": "number"},{"type": "null"}]},- "timeout": {+ "page": {"anyOf": [{- "type": "integer"+ "type": "number"},{"type": "null"}]- }- },- "additionalProperties": false- },- "SyncModeRequestInput": {- "type": "object",- "properties": {- "mode": {- "type": "number"- }- },- "required": [- "mode"- ],- "additionalProperties": false- },- "SyncNameRequestInput": {- "type": "object",- "properties": {- "name": {- "type": "string"- }- },- "required": [- "name"- ],- "additionalProperties": false- },- "SyncOnlineKernel": {- "type": "object",- "properties": {- "hostname": {- "type": "string"- },- "id": {- "type": "string"- },- "os": {- "type": "string"- },- "ver": {- "type": "string"- }- },- "required": [- "hostname",- "id",- "os",- "ver"- ],- "additionalProperties": false- },- "SyncProviderExportData": {- "type": "object",- "properties": {- "name": {- "type": "string"- },- "zip": {- "type": "string"- }- },- "required": [- "name",- "zip"- ],- "additionalProperties": false- },- "SyncProviderImportRequestInput": {- "type": "object",- "properties": {- "file": {- "type": "string",- "format": "binary"- }- },- "additionalProperties": false- },- "SyncProviderRequestInput": {- "type": "object",- "properties": {- "provider": {- "type": "number"- }- },- "required": [- "provider"- ],- "additionalProperties": false- },- "SyncS3": {- "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"- }- },- "required": [- "accessKey",- "bucket",- "concurrentReqs",- "endpoint",- "pathStyle",- "region",- "secretKey",- "skipTlsVerify",- "timeout"- ],- "additionalProperties": false- },- "SyncS3Data": {- "type": "object",- "properties": {- "s3": {+ "pageSize": {"anyOf": [{- "$ref": "#/$defs/SyncS3"+ "type": "number"},{"type": "null"}]- }- },- "required": [- "s3"- ],- "additionalProperties": false- },- "SyncS3Input": {- "type": "object",- "properties": {- "accessKey": {+ },+ "paths": {"anyOf": [{- "type": "string"+ "type": "array",+ "items": {+ "type": "string"+ }},{"type": "null"}]},- "bucket": {+ "query": {"anyOf": [{"type": "string"@@ -17049,164 +16739,167 @@}]},- "concurrentReqs": {+ "subTypes": {"anyOf": [{- "type": "integer"+ "$ref": "#/$defs/SearchSubtypeFilterInput"},{"type": "null"}]},- "endpoint": {+ "types": {"anyOf": [{- "type": "string"+ "type": "object",+ "additionalProperties": {+ "type": "boolean"+ }},{"type": "null"}]- },- "pathStyle": {+ }+ },+ "additionalProperties": false+ },+ "SearchBlocksData": {+ "type": "object",+ "properties": {+ "blocks": {"anyOf": [{- "type": "boolean"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SearchBlock"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"}]},- "region": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]+ "matchedBlockCount": {+ "type": "integer"},- "secretKey": {+ "matchedRootCount": {+ "type": "integer"+ },+ "pageCount": {+ "type": "integer"+ }+ },+ "required": [+ "blocks",+ "matchedBlockCount",+ "matchedRootCount",+ "pageCount"+ ],+ "additionalProperties": false+ },+ "SearchEmbedBlockRequestInput": {+ "type": "object",+ "properties": {+ "breadcrumb": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"}]},- "skipTlsVerify": {+ "embedBlockID": {+ "type": "string"+ },+ "excludeIDs": {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "headingMode": {"anyOf": [{- "type": "boolean"+ "type": "number"},{"type": "null"}]},- "timeout": {+ "notebook": {"anyOf": [{- "type": "integer"- },- {- "type": "null"- }- ]- }- },- "additionalProperties": false- },- "SyncWebDAV": {- "type": "object",- "properties": {- "concurrentReqs": {- "type": "integer"- },- "endpoint": {- "type": "string"- },- "password": {- "type": "string"- },- "skipTlsVerify": {- "type": "boolean"- },- "timeout": {- "type": "integer"- },- "username": {- "type": "string"- }- },- "required": [- "concurrentReqs",- "endpoint",- "password",- "skipTlsVerify",- "timeout",- "username"- ],- "additionalProperties": false- },- "SyncWebDAVData": {- "type": "object",- "properties": {- "webdav": {- "anyOf": [- {- "$ref": "#/$defs/SyncWebDAV"+ "type": "string"},{"type": "null"}]+ },+ "stmt": {+ "type": "string"}},"required": [- "webdav"+ "embedBlockID",+ "excludeIDs",+ "stmt"],"additionalProperties": false},- "SyncWebDAVInput": {+ "SearchHeadingFilterInput": {"type": "object","properties": {- "concurrentReqs": {+ "h1": {"anyOf": [{- "type": "integer"+ "type": "boolean"},{"type": "null"}]},- "endpoint": {+ "h2": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"}]},- "password": {+ "h3": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"}]},- "skipTlsVerify": {+ "h4": {"anyOf": [{"type": "boolean"@@ -17216,20 +16909,20 @@}]},- "timeout": {+ "h5": {"anyOf": [{- "type": "integer"+ "type": "boolean"},{"type": "null"}]},- "username": {+ "h6": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"@@ -17239,22 +16932,15 @@},"additionalProperties": false},- "TagData": {+ "SearchHistoryData": {"type": "object","properties": {- "children": {+ "histories": {"anyOf": [{"type": "array","items": {- "anyOf": [- {- "$ref": "#/$defs/TagData"- },- {- "type": "null"- }- ]+ "type": "string"}},{@@ -17262,68 +16948,44 @@}]},- "count": {+ "pageCount": {"type": "integer"},- "depth": {+ "totalCount": {"type": "integer"- },- "label": {- "type": "string"- },- "name": {- "type": "string"- },- "type": {- "type": "string"- }- },- "required": [- "children",- "count",- "depth",- "label",- "name",- "type"- ],- "additionalProperties": false- },- "TagSnapshotRequestInput": {- "type": "object",- "properties": {- "id": {- "type": "string"- },- "name": {- "type": "string"}},"required": [- "id",- "name"+ "histories",+ "pageCount",+ "totalCount"],"additionalProperties": false},- "TailChildBlocksRequestInput": {+ "SearchHistoryRequestInput": {"type": "object","properties": {- "id": {- "type": "string"+ "notebook": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]},- "ids": {+ "op": {"anyOf": [{- "type": "array",- "items": {- "type": "string"- }+ "type": "string"},{"type": "null"}]},- "n": {+ "page": {"anyOf": [{"type": "number"@@ -17333,7 +16995,7 @@}]},- "notebook": {+ "query": {"anyOf": [{"type": "string"@@ -17342,217 +17004,208 @@"type": "null"}]+ },+ "type": {+ "anyOf": [+ {+ "type": "number"+ },+ {+ "type": "null"+ }+ ]}},- "required": [- "id"- ],"additionalProperties": false},- "TaskListMarkerRequestInput": {+ "SearchKeywordRequestInput": {"type": "object","properties": {- "id": {- "type": "string"- },- "marker": {+ "k": {"type": "string"}},"required": [- "id",- "marker"+ "k"],"additionalProperties": false},- "TemplateDocumentInfo": {+ "SearchListFilterInput": {"type": "object","properties": {- "directory": {- "type": "string"+ "o": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]},- "hasDatabase": {- "type": "boolean"+ "t": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]},- "name": {- "type": "string"- }- },- "required": [- "directory",- "hasDatabase",- "name"- ],- "additionalProperties": false- },- "TemplateDocumentRequestInput": {- "type": "object",- "properties": {- "id": {- "type": "string"+ "u": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]}},- "required": [- "id"- ],"additionalProperties": false},- "TemplateFileEntry": {+ "SearchPageRequestInput": {"type": "object","properties": {- "isDir": {- "type": "boolean"- },- "isPackage": {- "type": "boolean"+ "page": {+ "anyOf": [+ {+ "type": "number"+ },+ {+ "type": "null"+ }+ ]},- "path": {- "type": "string"+ "pageSize": {+ "anyOf": [+ {+ "type": "number"+ },+ {+ "type": "null"+ }+ ]}},- "required": [- "isDir",- "path"- ],"additionalProperties": false},- "TemplateFileRequestInput": {+ "SearchPath": {"type": "object","properties": {- "action": {- "type": "string"+ "blocks": {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SearchBlock"+ },+ {+ "type": "null"+ }+ ]+ }},- "content": {+ "box": {"type": "string"},- "path": {+ "children": {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SearchPath"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "count": {+ "type": "integer"+ },+ "created": {"type": "string"},- "revision": {+ "depth": {+ "type": "integer"+ },+ "folded": {+ "type": "boolean"+ },+ "hPath": {"type": "string"},- "target": {+ "id": {"type": "string"- }- },- "additionalProperties": false- },- "TemplateFileRevision": {- "type": "object",- "properties": {- "revision": {+ },+ "name": {"type": "string"- }- },- "required": [- "revision"- ],- "additionalProperties": false- },- "TemplateFileSource": {- "type": "object",- "properties": {- "content": {+ },+ "nodeType": {"type": "string"},- "path": {+ "number": {"type": "string"},- "revision": {+ "subType": {"type": "string"- }- },- "required": [- "content",- "revision"- ],- "additionalProperties": false- },- "TemplatePlan": {- "type": "object",- "properties": {- "count": {- "type": "integer"},- "id": {+ "type": {"type": "string"},- "nodes": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/TemplatePlanNode"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "updated": {+ "type": "string"}},"required": [+ "box","count",+ "created",+ "depth",+ "folded",+ "hPath","id",- "nodes"+ "name",+ "nodeType",+ "subType",+ "type",+ "updated"],"additionalProperties": false},- "TemplatePlanNode": {+ "SearchPathRequestInput": {"type": "object","properties": {- "depth": {- "type": "integer"- },- "hPath": {- "type": "string"- },- "id": {- "type": "string"- },- "parentID": {- "type": "string"- },- "title": {+ "path": {"type": "string"}},"required": [- "depth",- "hPath",- "id",- "parentID",- "title"+ "path"],"additionalProperties": false},- "TransferBlockRefRequestInput": {+ "SearchRefBlockRequestInput": {"type": "object","properties": {- "fromID": {- "type": "string"+ "beforeLen": {+ "type": "number"},- "refIDs": {+ "id": {"anyOf": [{- "type": "array",- "items": {- "type": "string"- }+ "type": "string"},{"type": "null"}]},- "reloadUI": {+ "isDatabase": {"anyOf": [{"type": "boolean"@@ -17562,74 +17215,73 @@}]},- "toID": {- "type": "string"- }- },- "required": [- "fromID",- "toID"- ],- "additionalProperties": false- },- "TreeStatData": {- "type": "object",- "properties": {- "containsEmbed": {- "type": "boolean"- },- "embedStat": {+ "isSquareBrackets": {"anyOf": [{- "$ref": "#/$defs/EmbedStat"+ "type": "boolean"},{"type": "null"}]},- "reqId": {- "$ref": "#/$defs/JSONValue"+ "k": {+ "type": "string"},- "stat": {+ "notebook": {"anyOf": [{- "$ref": "#/$defs/BlockStat"+ "type": "string"},{"type": "null"}]},- "statWithEmbed": {+ "reqId": {"anyOf": [{- "$ref": "#/$defs/BlockStat"+ "$ref": "#/$defs/JSONValue"},{"type": "null"}]+ },+ "rootID": {+ "type": "string"+ }+ },+ "additionalProperties": false+ },+ "SearchRefCorrelation": {+ "type": "object",+ "properties": {+ "reqId": {+ "$ref": "#/$defs/JSONValue"}},"required": [- "reqId",- "stat"+ "reqId"],"additionalProperties": false},- "TreeStatRequestInput": {+ "SearchRefResult": {"type": "object","properties": {- "id": {- "type": "string"- },- "ids": {+ "blocks": {"anyOf": [{"type": "array","items": {- "type": "string"+ "anyOf": [+ {+ "$ref": "#/$defs/SearchBlock"+ },+ {+ "type": "null"+ }+ ]}},{@@ -17637,274 +17289,275 @@}]},- "includeEmbed": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ]+ "k": {+ "type": "string"},- "notebook": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]+ "newDoc": {+ "type": "boolean"},"reqId": {- "anyOf": [- {- "$ref": "#/$defs/JSONValue"- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/JSONValue"}},"required": [- "id"+ "blocks",+ "k",+ "newDoc",+ "reqId"],"additionalProperties": false},- "TrimmedIDRequestInput": {+ "SearchRepoFileRequestInput": {"type": "object","properties": {- "id": {- "type": "string"- }- },- "required": [- "id"- ],- "additionalProperties": false- },- "UnfoldedParentData": {- "type": "object",- "properties": {- "parentID": {+ "keyword": {"type": "string"+ },+ "page": {+ "type": "number"}},"required": [- "parentID"+ "keyword",+ "page"],"additionalProperties": false},- "UninstallBazaarIconRequestInput": {+ "SearchSubTypes": {"type": "object","properties": {- "keyword": {+ "heading": {"anyOf": [{- "type": "string"+ "type": "object",+ "additionalProperties": {+ "type": "boolean"+ }},{"type": "null"}]},- "packageName": {- "type": "string"- }- },- "required": [- "packageName"- ],- "additionalProperties": false- },- "UninstallBazaarPluginRequestInput": {- "type": "object",- "properties": {- "frontend": {+ "list": {"anyOf": [{- "type": "string"+ "type": "object",+ "additionalProperties": {+ "type": "boolean"+ }},{"type": "null"}]},- "keyword": {+ "listItem": {"anyOf": [{- "type": "string"+ "type": "object",+ "additionalProperties": {+ "type": "boolean"+ }},{"type": "null"}]- },- "packageName": {- "type": "string"}},"required": [- "packageName"+ "heading",+ "list",+ "listItem"],"additionalProperties": false},- "UninstallBazaarTemplateRequestInput": {+ "SearchSubTypesInput": {"type": "object","properties": {- "keyword": {+ "heading": {"anyOf": [{- "type": "string"+ "type": "object",+ "additionalProperties": {+ "type": "boolean"+ }},{"type": "null"}]},- "packageName": {- "type": "string"- }- },- "required": [- "packageName"- ],- "additionalProperties": false- },- "UninstallBazaarThemeRequestInput": {- "type": "object",- "properties": {- "frontend": {+ "list": {"anyOf": [{- "type": "string"+ "type": "object",+ "additionalProperties": {+ "type": "boolean"+ }},{"type": "null"}]},- "keyword": {+ "listItem": {"anyOf": [{- "type": "string"+ "type": "object",+ "additionalProperties": {+ "type": "boolean"+ }},{"type": "null"}]- },- "packageName": {- "type": "string"}},- "required": [- "packageName"- ],"additionalProperties": false},- "UninstallBazaarWidgetRequestInput": {+ "SearchSubtypeFilterInput": {"type": "object","properties": {- "keyword": {+ "heading": {"anyOf": [{- "type": "string"+ "$ref": "#/$defs/SearchHeadingFilterInput"},{"type": "null"}]},- "packageName": {- "type": "string"+ "list": {+ "anyOf": [+ {+ "$ref": "#/$defs/SearchListFilterInput"+ },+ {+ "type": "null"+ }+ ]+ },+ "listItem": {+ "anyOf": [+ {+ "$ref": "#/$defs/SearchListFilterInput"+ },+ {+ "type": "null"+ }+ ]}},- "required": [- "packageName"- ],"additionalProperties": false},- "UnlockNotebookRequestInput": {+ "SearchTagData": {"type": "object","properties": {- "notebook": {+ "k": {"type": "string"},- "password": {- "type": "string"+ "tags": {+ "type": "array",+ "items": {+ "type": "string"+ }}},"required": [- "notebook",- "password"+ "k",+ "tags"],"additionalProperties": false},- "UnzipRequestInput": {+ "SearchTagRequestInput": {"type": "object","properties": {- "path": {- "type": "string"- },- "zipPath": {+ "k": {"type": "string"}},"required": [- "path",- "zipPath"+ "k"],"additionalProperties": false},- "UpdateBazaarPackageRequestInput": {+ "SearchTemplateData": {"type": "object","properties": {- "frontend": {+ "k": {"type": "string"},- "keyword": {+ "templates": {"anyOf": [{- "type": "string"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SearchTemplateResult"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"}]- },- "packageName": {- "type": "string"- },- "packageType": {- "type": "string"}},"required": [- "frontend",- "packageName",- "packageType"+ "k",+ "templates"],"additionalProperties": false},- "UpdateBlockRequestInput": {+ "SearchTemplateResult": {"type": "object","properties": {- "data": {+ "content": {"type": "string"},- "dataType": {+ "path": {"type": "string"},- "id": {+ "relativePath": {+ "type": "string"+ }+ },+ "required": [+ "content",+ "path",+ "relativePath"+ ],+ "additionalProperties": false+ },+ "SearchWidgetData": {+ "type": "object",+ "properties": {+ "k": {"type": "string"},- "lockType": {+ "widgets": {"anyOf": [{- "type": "boolean"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SearchWidgetResult"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"@@ -17913,364 +17566,5322 @@}},"required": [- "data",- "dataType",- "id"+ "k",+ "widgets"],"additionalProperties": false},- "UpdateChannelRequestInput": {+ "SearchWidgetResult": {"type": "object","properties": {- "updateChannel": {+ "content": {+ "type": "string"+ },+ "name": {"type": "string"}},"required": [- "updateChannel"+ "content",+ "name"],"additionalProperties": false},- "UpdateEmbedBlockRequestInput": {+ "SetAssetAnnotationRequestInput": {"type": "object","properties": {- "content": {+ "data": {"type": "string"},- "id": {+ "path": {"type": "string"}},"required": [- "content",- "id"+ "data",+ "path"],"additionalProperties": false},- "UpdatePinnedDocsRequestInput": {+ "SetAssetOCRTextRequestInput": {"type": "object","properties": {- "action": {+ "path": {"type": "string"},- "after": {- "type": "boolean"- },- "ids": {- "type": "array",- "items": {- "type": "string"- }- },- "targetID": {+ "text": {"type": "string"}},"required": [- "action",- "ids"+ "path",+ "text"],"additionalProperties": false},- "UploadAssetRequestInput": {+ "SetBazaarPackageRatingRequestInput": {"type": "object","properties": {- "assetsDirPath": {+ "packageName": {"type": "string"},- "file[]": {- "type": "array",- "items": {- "type": "string",- "format": "binary"- }- },- "id": {+ "packageType": {"type": "string"+ },+ "rating": {+ "type": "number"}},+ "required": [+ "packageName",+ "packageType",+ "rating"+ ],"additionalProperties": false},- "UploadCloudSnapshotRequestInput": {+ "SetBlockAttrsRequestInput": {"type": "object","properties": {- "id": {- "type": "string"+ "attrs": {+ "type": "object",+ "additionalProperties": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ }},- "tag": {+ "id": {"type": "string"}},"required": [- "id",- "tag"+ "attrs",+ "id"],"additionalProperties": false},- "ViewStatePatchRequestInput": {+ "SetCriterionRequestInput": {"type": "object","properties": {- "key": {- "type": "string"- },- "removeKeys": {+ "criterion": {"anyOf": [{- "type": "array",- "items": {- "type": "string"- }+ "$ref": "#/$defs/CriterionInput"},{"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"+ "criterion"],"additionalProperties": false},- "WPSPresentationRequestInput": {+ "SetGraphConfRequestInput": {"type": "object","properties": {- "data": {- "type": "string"- },- "text": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]+ "conf": {+ "$ref": "#/$defs/GraphConfigurationFieldsInput"},"type": {"type": "string"}},"required": [- "data",+ "conf","type"],"additionalProperties": false},- "WordCountData": {+ "SetInlineStylesRequestInput": {"type": "object","properties": {- "reqId": {- "$ref": "#/$defs/JSONValue"- },- "stat": {+ "app": {"anyOf": [{- "$ref": "#/$defs/BlockStat"+ "type": "string"},{"type": "null"}]- }- },- "required": [- "reqId",- "stat"- ],- "additionalProperties": false- },- "WorkspaceAVBuiltinColorUpdateInput": {- "type": "object",- "properties": {- "customized": {+ },+ "av": {"anyOf": [{- "type": "boolean"+ "$ref": "#/$defs/InlineStyleAVInput"},{"type": "null"}]},- "dark": {+ "builtin": {"anyOf": [{- "$ref": "#/$defs/InlineStyleThemeInput"+ "$ref": "#/$defs/InlineStyleBuiltinInput"},{"type": "null"}]},- "hidden": {+ "order": {"anyOf": [{- "type": "boolean"+ "$ref": "#/$defs/InlineStyleOrderInput"},{"type": "null"}]},- "index": {+ "styles": {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/InlineStyleInput"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "version": {+ "type": "number"+ }+ },+ "required": [+ "styles",+ "version"+ ],+ "additionalProperties": false+ },+ "SetNotebookConfRequestInput": {+ "type": "object",+ "properties": {+ "conf": {"anyOf": [{- "type": "integer"+ "$ref": "#/$defs/NotebookConfPatchInput"},{"type": "null"}]},- "light": {+ "notebook": {+ "type": "string"+ }+ },+ "required": [+ "notebook"+ ],+ "additionalProperties": false+ },+ "SetNotebookIconRequestInput": {+ "type": "object",+ "properties": {+ "icon": {+ "type": "string"+ },+ "notebook": {+ "type": "string"+ }+ },+ "required": [+ "icon",+ "notebook"+ ],+ "additionalProperties": false+ },+ "SetPetalEnabledRequestInput": {+ "type": "object",+ "properties": {+ "app": {"anyOf": [{- "$ref": "#/$defs/InlineStyleThemeInput"+ "type": "string"},{"type": "null"}]+ },+ "enabled": {+ "type": "boolean"+ },+ "packageName": {+ "type": "string"}},- "additionalProperties": false- },- "WorkspaceAVPaletteRequestInput": {- "type": "object",- "properties": {- "app": {- "anyOf": [- {- "type": "string"+ "required": [+ "enabled",+ "packageName"+ ],+ "additionalProperties": false+ },+ "SetPetalPublishEnabledRequestInput": {+ "type": "object",+ "properties": {+ "enabled": {+ "type": "boolean"+ },+ "packageName": {+ "type": "string"+ }+ },+ "required": [+ "enabled",+ "packageName"+ ],+ "additionalProperties": false+ },+ "SetRepoIndexRetentionDaysRequestInput": {+ "type": "object",+ "properties": {+ "days": {+ "type": "number"+ }+ },+ "required": [+ "days"+ ],+ "additionalProperties": false+ },+ "SetRetentionIndexesDailyRequestInput": {+ "type": "object",+ "properties": {+ "indexes": {+ "type": "number"+ }+ },+ "required": [+ "indexes"+ ],+ "additionalProperties": false+ },+ "SetRiffCardsDueRequestInput": {+ "type": "object",+ "properties": {+ "cardDues": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/RiffCardDueInput"+ }+ }+ },+ "required": [+ "cardDues"+ ],+ "additionalProperties": false+ },+ "SetSnapshotMemoRequestInput": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string"+ },+ "memo": {+ "type": "string"+ }+ },+ "required": [+ "id",+ "memo"+ ],+ "additionalProperties": false+ },+ "SetSnippetRequestInput": {+ "type": "object",+ "properties": {+ "snippets": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/SnippetInput"+ }+ }+ },+ "required": [+ "snippets"+ ],+ "additionalProperties": false+ },+ "SetSyncLocalRequestInput": {+ "type": "object",+ "properties": {+ "local": {+ "$ref": "#/$defs/SyncLocalInput"+ }+ },+ "required": [+ "local"+ ],+ "additionalProperties": false+ },+ "SetSyncS3RequestInput": {+ "type": "object",+ "properties": {+ "s3": {+ "$ref": "#/$defs/SyncS3Input"+ }+ },+ "required": [+ "s3"+ ],+ "additionalProperties": false+ },+ "SetSyncWebDAVRequestInput": {+ "type": "object",+ "properties": {+ "webdav": {+ "$ref": "#/$defs/SyncWebDAVInput"+ }+ },+ "required": [+ "webdav"+ ],+ "additionalProperties": false+ },+ "Shorthand": {+ "type": "object",+ "properties": {+ "hCreated": {+ "type": "string"+ },+ "oId": {+ "type": "string"+ },+ "shorthandContent": {+ "type": "string"+ },+ "shorthandDesc": {+ "type": "string"+ },+ "shorthandFrom": {+ "type": "integer"+ },+ "shorthandMd": {+ "type": "string"+ },+ "shorthandTitle": {+ "type": "string"+ },+ "shorthandURL": {+ "type": "string"+ }+ },+ "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": "array",+ "items": {+ "type": "integer"+ }+ },+ {+ "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"+ ],+ "additionalProperties": false+ },+ "Snippet": {+ "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"+ ],+ "additionalProperties": false+ },+ "SnippetInput": {+ "type": "object",+ "properties": {+ "content": {+ "type": "string"+ },+ "disabledInPublish": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "enabled": {+ "type": "boolean"+ },+ "id": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "content",+ "enabled",+ "id",+ "name",+ "type"+ ],+ "additionalProperties": false+ },+ "SnippetsData": {+ "type": "object",+ "properties": {+ "snippets": {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/Snippet"+ },+ {+ "type": "null"+ }+ ]+ }+ }+ },+ "required": [+ "snippets"+ ],+ "additionalProperties": false+ },+ "StorageKeyRequestInput": {+ "type": "object",+ "properties": {+ "key": {+ "type": "string"+ }+ },+ "required": [+ "key"+ ],+ "additionalProperties": false+ },+ "StorageKeysRequestInput": {+ "type": "object",+ "properties": {+ "keys": {+ "type": "array",+ "items": {+ "type": "string"+ }+ }+ },+ "required": [+ "keys"+ ],+ "additionalProperties": false+ },+ "StorageRemoveKeysRequestInput": {+ "type": "object",+ "properties": {+ "app": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "keys": {+ "type": "array",+ "items": {+ "type": "string"+ }+ }+ },+ "required": [+ "keys"+ ],+ "additionalProperties": false+ },+ "StorageRemoveRequestInput": {+ "type": "object",+ "properties": {+ "app": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "key": {+ "type": "string"+ }+ },+ "required": [+ "key"+ ],+ "additionalProperties": false+ },+ "StorageSetKeysRequestInput": {+ "type": "object",+ "properties": {+ "app": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "keyVals": {+ "type": "object",+ "additionalProperties": {+ "$ref": "#/$defs/JSONValue"+ }+ }+ },+ "required": [+ "keyVals"+ ],+ "additionalProperties": false+ },+ "StorageSetRequestInput": {+ "type": "object",+ "properties": {+ "app": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "key": {+ "type": "string"+ },+ "val": {+ "anyOf": [+ {+ "$ref": "#/$defs/JSONValue"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": [+ "key"+ ],+ "additionalProperties": false+ },+ "SwapBlockRefRequestInput": {+ "type": "object",+ "properties": {+ "defID": {+ "type": "string"+ },+ "includeChildren": {+ "type": "boolean"+ },+ "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": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SyncOnlineKernel"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "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": "number"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": [+ "enabled"+ ],+ "additionalProperties": false+ },+ "SyncLANStatus": {+ "type": "object",+ "properties": {+ "active": {+ "type": "boolean"+ },+ "connectedPeers": {+ "type": "integer"+ },+ "discoveredPeers": {+ "type": "integer"+ },+ "enabled": {+ "type": "boolean"+ },+ "maxConcurrentReqs": {+ "type": "integer"+ }+ },+ "required": [+ "active",+ "connectedPeers",+ "discoveredPeers",+ "enabled",+ "maxConcurrentReqs"+ ],+ "additionalProperties": false+ },+ "SyncLocal": {+ "type": "object",+ "properties": {+ "concurrentReqs": {+ "type": "integer"+ },+ "endpoint": {+ "type": "string"+ },+ "timeout": {+ "type": "integer"+ }+ },+ "required": [+ "concurrentReqs",+ "endpoint",+ "timeout"+ ],+ "additionalProperties": false+ },+ "SyncLocalData": {+ "type": "object",+ "properties": {+ "local": {+ "anyOf": [+ {+ "$ref": "#/$defs/SyncLocal"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": [+ "local"+ ],+ "additionalProperties": false+ },+ "SyncLocalInput": {+ "type": "object",+ "properties": {+ "concurrentReqs": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "endpoint": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "timeout": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SyncModeRequestInput": {+ "type": "object",+ "properties": {+ "mode": {+ "type": "number"+ }+ },+ "required": [+ "mode"+ ],+ "additionalProperties": false+ },+ "SyncNameRequestInput": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ }+ },+ "required": [+ "name"+ ],+ "additionalProperties": false+ },+ "SyncOnlineKernel": {+ "type": "object",+ "properties": {+ "hostname": {+ "type": "string"+ },+ "id": {+ "type": "string"+ },+ "os": {+ "type": "string"+ },+ "ver": {+ "type": "string"+ }+ },+ "required": [+ "hostname",+ "id",+ "os",+ "ver"+ ],+ "additionalProperties": false+ },+ "SyncProviderExportData": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "zip": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "zip"+ ],+ "additionalProperties": false+ },+ "SyncProviderImportRequestInput": {+ "type": "object",+ "properties": {+ "file": {+ "type": "string",+ "format": "binary"+ }+ },+ "additionalProperties": false+ },+ "SyncProviderRequestInput": {+ "type": "object",+ "properties": {+ "provider": {+ "type": "number"+ }+ },+ "required": [+ "provider"+ ],+ "additionalProperties": false+ },+ "SyncS3": {+ "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"+ }+ },+ "required": [+ "accessKey",+ "bucket",+ "concurrentReqs",+ "endpoint",+ "pathStyle",+ "region",+ "secretKey",+ "skipTlsVerify",+ "timeout"+ ],+ "additionalProperties": false+ },+ "SyncS3Data": {+ "type": "object",+ "properties": {+ "s3": {+ "anyOf": [+ {+ "$ref": "#/$defs/SyncS3"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": [+ "s3"+ ],+ "additionalProperties": false+ },+ "SyncS3Input": {+ "type": "object",+ "properties": {+ "accessKey": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "bucket": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "concurrentReqs": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "endpoint": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "pathStyle": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "region": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "secretKey": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "skipTlsVerify": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "timeout": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SyncWebDAV": {+ "type": "object",+ "properties": {+ "concurrentReqs": {+ "type": "integer"+ },+ "endpoint": {+ "type": "string"+ },+ "password": {+ "type": "string"+ },+ "skipTlsVerify": {+ "type": "boolean"+ },+ "timeout": {+ "type": "integer"+ },+ "username": {+ "type": "string"+ }+ },+ "required": [+ "concurrentReqs",+ "endpoint",+ "password",+ "skipTlsVerify",+ "timeout",+ "username"+ ],+ "additionalProperties": false+ },+ "SyncWebDAVData": {+ "type": "object",+ "properties": {+ "webdav": {+ "anyOf": [+ {+ "$ref": "#/$defs/SyncWebDAV"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": [+ "webdav"+ ],+ "additionalProperties": false+ },+ "SyncWebDAVInput": {+ "type": "object",+ "properties": {+ "concurrentReqs": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "endpoint": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "password": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "skipTlsVerify": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "timeout": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "username": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "TagData": {+ "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"+ }+ },+ "required": [+ "children",+ "count",+ "depth",+ "label",+ "name",+ "type"+ ],+ "additionalProperties": false+ },+ "TagSnapshotRequestInput": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string"+ },+ "name": {+ "type": "string"+ }+ },+ "required": [+ "id",+ "name"+ ],+ "additionalProperties": false+ },+ "TailChildBlocksRequestInput": {+ "type": "object",+ "properties": {+ "id": {+ "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"+ ],+ "additionalProperties": false+ },+ "TaskListMarkerRequestInput": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string"+ },+ "marker": {+ "type": "string"+ }+ },+ "required": [+ "id",+ "marker"+ ],+ "additionalProperties": false+ },+ "TemplateDocumentInfo": {+ "type": "object",+ "properties": {+ "directory": {+ "type": "string"+ },+ "hasDatabase": {+ "type": "boolean"+ },+ "name": {+ "type": "string"+ }+ },+ "required": [+ "directory",+ "hasDatabase",+ "name"+ ],+ "additionalProperties": false+ },+ "TemplateDocumentRequestInput": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string"+ }+ },+ "required": [+ "id"+ ],+ "additionalProperties": false+ },+ "TemplateFileEntry": {+ "type": "object",+ "properties": {+ "isDir": {+ "type": "boolean"+ },+ "isPackage": {+ "type": "boolean"+ },+ "path": {+ "type": "string"+ }+ },+ "required": [+ "isDir",+ "path"+ ],+ "additionalProperties": false+ },+ "TemplateFileRequestInput": {+ "type": "object",+ "properties": {+ "action": {+ "type": "string"+ },+ "content": {+ "type": "string"+ },+ "path": {+ "type": "string"+ },+ "revision": {+ "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"+ },+ "path": {+ "type": "string"+ },+ "revision": {+ "type": "string"+ }+ },+ "required": [+ "content",+ "revision"+ ],+ "additionalProperties": false+ },+ "TemplatePlan": {+ "type": "object",+ "properties": {+ "count": {+ "type": "integer"+ },+ "id": {+ "type": "string"+ },+ "nodes": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/TemplatePlanNode"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": [+ "count",+ "id",+ "nodes"+ ],+ "additionalProperties": false+ },+ "TemplatePlanNode": {+ "type": "object",+ "properties": {+ "depth": {+ "type": "integer"+ },+ "hPath": {+ "type": "string"+ },+ "id": {+ "type": "string"+ },+ "parentID": {+ "type": "string"+ },+ "title": {+ "type": "string"+ }+ },+ "required": [+ "depth",+ "hPath",+ "id",+ "parentID",+ "title"+ ],+ "additionalProperties": false+ },+ "TransferBlockRefRequestInput": {+ "type": "object",+ "properties": {+ "fromID": {+ "type": "string"+ },+ "refIDs": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "reloadUI": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "toID": {+ "type": "string"+ }+ },+ "required": [+ "fromID",+ "toID"+ ],+ "additionalProperties": false+ },+ "TreeStatData": {+ "type": "object",+ "properties": {+ "containsEmbed": {+ "type": "boolean"+ },+ "embedStat": {+ "anyOf": [+ {+ "$ref": "#/$defs/EmbedStat"+ },+ {+ "type": "null"+ }+ ]+ },+ "reqId": {+ "$ref": "#/$defs/JSONValue"+ },+ "stat": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockStat"+ },+ {+ "type": "null"+ }+ ]+ },+ "statWithEmbed": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockStat"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": [+ "reqId",+ "stat"+ ],+ "additionalProperties": false+ },+ "TreeStatRequestInput": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string"+ },+ "ids": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "includeEmbed": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "notebook": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "reqId": {+ "anyOf": [+ {+ "$ref": "#/$defs/JSONValue"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": [+ "id"+ ],+ "additionalProperties": false+ },+ "TrimmedIDRequestInput": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string"+ }+ },+ "required": [+ "id"+ ],+ "additionalProperties": false+ },+ "UnfoldedParentData": {+ "type": "object",+ "properties": {+ "parentID": {+ "type": "string"+ }+ },+ "required": [+ "parentID"+ ],+ "additionalProperties": false+ },+ "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"+ }+ ]+ },+ "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+ },+ "UploadAssetRequestInput": {+ "type": "object",+ "properties": {+ "assetsDirPath": {+ "type": "string"+ },+ "file[]": {+ "type": "array",+ "items": {+ "type": "string",+ "format": "binary"+ }+ },+ "id": {+ "type": "string"+ }+ },+ "additionalProperties": false+ },+ "UploadCloudSnapshotRequestInput": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string"+ },+ "tag": {+ "type": "string"+ }+ },+ "required": [+ "id",+ "tag"+ ],+ "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/asset/fullReindexAssetContent",+ "handler": "fullReindexAssetContent",+ "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/asset/getDocAssets",+ "handler": "getDocAssets",+ "body": "json",+ "request": {+ "$ref": "#/$defs/AssetDocumentAssetsRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "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/asset/getDocImageAssets",+ "handler": "getDocImageAssets",+ "body": "json",+ "request": {+ "$ref": "#/$defs/AssetDocumentRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "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/asset/getFileAnnotation",+ "handler": "getFileAnnotation",+ "body": "json",+ "request": {+ "$ref": "#/$defs/AssetPathRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "$ref": "#/$defs/AssetAnnotationData"+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": false+ },+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ -1,+ 1,+ 403+ ]+ },+ "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/asset/getImageOCRText",+ "handler": "getImageOCRText",+ "body": "json",+ "request": {+ "$ref": "#/$defs/AssetOCRTextRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "$ref": "#/$defs/AssetTextData"+ },+ "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/asset/getMissingAssets",+ "handler": "getMissingAssets",+ "body": "none",+ "request": {+ "$ref": "#/$defs/EmptyRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/AssetUnusedItem"+ },+ {+ "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": "POST",+ "path": "/api/asset/getUnusedAssets",+ "handler": "getUnusedAssets",+ "body": "none",+ "request": {+ "$ref": "#/$defs/EmptyRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/AssetUnusedItem"+ },+ {+ "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": "POST",+ "path": "/api/asset/insertCover",+ "handler": "insertCover",+ "body": "json",+ "request": {+ "$ref": "#/$defs/InsertCoverRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "$ref": "#/$defs/AssetInsertCoverData"+ },+ "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/asset/insertLocalAssets",+ "handler": "insertLocalAssets",+ "body": "json",+ "request": {+ "$ref": "#/$defs/InsertLocalAssetsRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "$ref": "#/$defs/AssetUploadData"+ },+ "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"+ },+ {+ "$ref": "#/$defs/AssetUploadData"+ }+ ]+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": true+ }+ ]+ }+ },+ {+ "method": "POST",+ "path": "/api/asset/ocr",+ "handler": "ocr",+ "body": "json",+ "request": {+ "$ref": "#/$defs/AssetPathRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "$ref": "#/$defs/AssetOCRData"+ },+ "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/asset/removeUnusedAsset",+ "handler": "removeUnusedAsset",+ "body": "json",+ "request": {+ "$ref": "#/$defs/AssetPathRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "$ref": "#/$defs/AssetPathData"+ },+ "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/asset/removeUnusedAssets",+ "handler": "removeUnusedAssets",+ "body": "none",+ "request": {+ "$ref": "#/$defs/EmptyRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "$ref": "#/$defs/AssetPathsData"+ },+ "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/asset/renameAsset",+ "handler": "renameAsset",+ "body": "json",+ "request": {+ "$ref": "#/$defs/RenameAssetRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "$ref": "#/$defs/AssetRenameData"+ },+ "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/asset/resolveAssetPath",+ "handler": "resolveAssetPath",+ "body": "json",+ "request": {+ "$ref": "#/$defs/AssetPathRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "type": "string"+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": false+ },+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ -1+ ]+ },+ "data": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "closeTimeout": {+ "type": "number"+ }+ },+ "required": [+ "closeTimeout"+ ],+ "additionalProperties": false+ },+ {+ "type": "null"+ }+ ]+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": true+ }+ ]+ }+ },+ {+ "method": "POST",+ "path": "/api/asset/setFileAnnotation",+ "handler": "setFileAnnotation",+ "body": "json",+ "request": {+ "$ref": "#/$defs/SetAssetAnnotationRequestInput"+ },+ "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/asset/setImageOCRText",+ "handler": "setImageOCRText",+ "body": "json",+ "request": {+ "$ref": "#/$defs/SetAssetOCRTextRequestInput"+ },+ "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/asset/statAsset",+ "handler": "statAsset",+ "body": "json",+ "request": {+ "$ref": "#/$defs/AssetPathRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "$ref": "#/$defs/AssetStatData"+ },+ "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"+ }+ ]+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": true+ }+ ]+ }+ },+ {+ "method": "POST",+ "path": "/api/asset/upload",+ "handler": "uploadAsset",+ "body": "multipart",+ "request": {+ "$ref": "#/$defs/UploadAssetRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "$ref": "#/$defs/AssetUploadData"+ },+ "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/asset/uploadCloud",+ "handler": "uploadCloud",+ "body": "json",+ "request": {+ "$ref": "#/$defs/AssetCloudUploadRequestInput"+ },+ "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/asset/uploadCloudByAssetsPaths",+ "handler": "uploadCloudByAssetsPaths",+ "body": "json",+ "request": {+ "$ref": "#/$defs/AssetPathsCloudUploadRequestInput"+ },+ "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"+ }},- {- "type": "null"- }- ]- },- "builtinColors": {- "anyOf": [- {- "type": "array",- "items": {+ "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"- }+ {+ "method": "POST",+ "path": "/api/attr/getBlockAttrs",+ "handler": "getBlockAttrs",+ "body": "json",+ "request": {+ "$ref": "#/$defs/BlockIDRequestInput"},- "required": [- "siyuanVer",- "workspaceDir"- ],- "additionalProperties": false+ "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": [+ {+ "type": "object",+ "properties": {+ "closeTimeout": {+ "type": "number"+ }+ },+ "required": [+ "closeTimeout"+ ],+ "additionalProperties": false+ },+ {+ "type": "null"+ }+ ]+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": true+ }+ ]+ }},- "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"@@ -18291,14 +22902,7 @@{"type": "array","items": {- "anyOf": [- {- "$ref": "#/$defs/LoadedPlugin"- },- {- "type": "null"- }- ]+ "type": "string"}},{@@ -18360,12 +22964,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": [@@ -18379,14 +22983,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/LoadedPlugin"- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -18401,15 +22998,11 @@},{"type": "object",- "properties": {- "code": {- "type": "integer",- "enum": [- -1,- 1,- 2,- 3,- 4+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ -1]},"data": {@@ -18446,12 +23039,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": [@@ -18465,14 +23058,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/LoadedPlugin"- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -18491,11 +23077,7 @@"code": {"type": "integer","enum": [- -1,- 1,- 2,- 3,- 4+ -1]},"data": {@@ -18532,9 +23114,9 @@}},{- "method": "GET",- "path": "/api/system/bootProgress",- "handler": "bootProgress",+ "method": "POST",+ "path": "/api/av/searchAttributeViewNonRelationKey",+ "handler": "searchAttributeViewNonRelationKey","body": "none","request": {"$ref": "#/$defs/EmptyRequestInput"@@ -18551,7 +23133,7 @@]},"data": {- "$ref": "#/$defs/BootProgressData"+ "type": "null"},"msg": {"type": "string"@@ -18607,12 +23189,12 @@}},{- "method": "GET",- "path": "/api/system/version",- "handler": "version",- "body": "none",+ "method": "POST",+ "path": "/api/bazaar/batchUpdatePackage",+ "handler": "batchUpdatePackage",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/BatchUpdatePackageRequestInput"},"response": {"anyOf": [@@ -18626,7 +23208,7 @@]},"data": {- "type": "string"+ "type": "null"},"msg": {"type": "string"@@ -18645,7 +23227,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -18682,17 +23265,37 @@}},{- "method": "GET",- "path": "/ws/plugin/rpc",- "handler": "pluginJsonRpcWebSocket",- "body": "none",+ "method": "POST",+ "path": "/api/bazaar/getBazaarIcon",+ "handler": "getBazaarIcon",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/GetBazaarIconRequestInput"},"response": {"anyOf": [{- "$ref": "#/$defs/PluginRPCFailure"+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "$ref": "#/$defs/BazaarPackagesData"+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": false},{"type": "object",@@ -18700,7 +23303,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -18734,65 +23338,40 @@"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",+ "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": [+ 0+ ]+ },+ "data": {+ "$ref": "#/$defs/BazaarPackageDetail"+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": false},{"type": "object",@@ -18800,7 +23379,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -18834,60 +23414,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": [@@ -18901,7 +23436,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarREADMEData"},"msg": {"type": "string"@@ -18938,9 +23473,6 @@],"additionalProperties": false},- {- "type": "null"- },{"type": "null"}@@ -18962,11 +23494,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": [@@ -18980,7 +23512,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarRatingResult"},"msg": {"type": "string"@@ -18999,7 +23531,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -19018,6 +23551,9 @@},{"type": "null"+ },+ {+ "$ref": "#/$defs/BazaarRatingResult"}]},@@ -19037,11 +23573,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": [@@ -19050,20 +23586,13 @@"properties": {"code": {"type": "integer",- "enum": [- 0- ]- },- "data": {- "anyOf": [- {- "$ref": "#/$defs/AccountLoginData"- },- {- "type": "null"- }+ "enum": [+ 0]},+ "data": {+ "$ref": "#/$defs/BazaarRatingsData"+ },"msg": {"type": "string"}@@ -19082,8 +23611,7 @@"type": "integer","enum": [-1,- 1,- 10+ 1]},"data": {@@ -19102,16 +23630,6 @@},{"type": "null"- },- {- "anyOf": [- {- "$ref": "#/$defs/AccountLoginData"- },- {- "type": "null"- }- ]}]},@@ -19131,11 +23649,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": [@@ -19149,7 +23667,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarUserRatingsResult"},"msg": {"type": "string"@@ -19168,7 +23686,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -19187,6 +23706,9 @@},{"type": "null"+ },+ {+ "$ref": "#/$defs/BazaarUserRatingsResult"}]},@@ -19206,11 +23728,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": [@@ -19224,7 +23746,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -19243,7 +23765,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -19281,11 +23804,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": [@@ -19299,7 +23822,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -19318,7 +23841,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -19356,11 +23880,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": [@@ -19374,7 +23898,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -19393,7 +23917,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -19431,11 +23956,11 @@},{"method": "POST",- "path": "/api/asset/fullReindexAssetContent",- "handler": "fullReindexAssetContent",- "body": "none",+ "path": "/api/bazaar/getBazaarWidget",+ "handler": "getBazaarWidget",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/GetBazaarWidgetRequestInput"},"response": {"anyOf": [@@ -19449,7 +23974,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -19468,7 +23993,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -19506,11 +24032,11 @@},{"method": "POST",- "path": "/api/asset/getDocAssets",- "handler": "getDocAssets",+ "path": "/api/bazaar/getInstalledIcon",+ "handler": "getInstalledIcon","body": "json","request": {- "$ref": "#/$defs/AssetDocumentAssetsRequestInput"+ "$ref": "#/$defs/GetInstalledIconRequestInput"},"response": {"anyOf": [@@ -19524,17 +24050,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "type": "string"- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -19553,7 +24069,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -19591,11 +24108,11 @@},{"method": "POST",- "path": "/api/asset/getDocImageAssets",- "handler": "getDocImageAssets",+ "path": "/api/bazaar/getInstalledPackageSize",+ "handler": "getInstalledPackageSize","body": "json","request": {- "$ref": "#/$defs/AssetDocumentRequestInput"+ "$ref": "#/$defs/GetInstalledPackageSizeRequestInput"},"response": {"anyOf": [@@ -19609,17 +24126,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "type": "string"- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/BazaarPackageSizeData"},"msg": {"type": "string"@@ -19638,7 +24145,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -19676,11 +24184,11 @@},{"method": "POST",- "path": "/api/asset/getFileAnnotation",- "handler": "getFileAnnotation",+ "path": "/api/bazaar/getInstalledPlugin",+ "handler": "getInstalledPlugin","body": "json","request": {- "$ref": "#/$defs/AssetPathRequestInput"+ "$ref": "#/$defs/GetInstalledPluginRequestInput"},"response": {"anyOf": [@@ -19694,7 +24202,7 @@]},"data": {- "$ref": "#/$defs/AssetAnnotationData"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -19714,8 +24222,7 @@"type": "integer","enum": [-1,- 1,- 403+ 1]},"data": {@@ -19753,11 +24260,11 @@},{"method": "POST",- "path": "/api/asset/getImageOCRText",- "handler": "getImageOCRText",+ "path": "/api/bazaar/getInstalledTemplate",+ "handler": "getInstalledTemplate","body": "json","request": {- "$ref": "#/$defs/AssetOCRTextRequestInput"+ "$ref": "#/$defs/GetInstalledTemplateRequestInput"},"response": {"anyOf": [@@ -19771,7 +24278,7 @@]},"data": {- "$ref": "#/$defs/AssetTextData"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -19790,7 +24297,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -19828,11 +24336,11 @@},{"method": "POST",- "path": "/api/asset/getMissingAssets",- "handler": "getMissingAssets",- "body": "none",+ "path": "/api/bazaar/getInstalledTheme",+ "handler": "getInstalledTheme",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/GetInstalledThemeRequestInput"},"response": {"anyOf": [@@ -19846,24 +24354,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/AssetUnusedItem"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -19882,7 +24373,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -19920,11 +24412,11 @@},{"method": "POST",- "path": "/api/asset/getUnusedAssets",- "handler": "getUnusedAssets",- "body": "none",+ "path": "/api/bazaar/getInstalledWidget",+ "handler": "getInstalledWidget",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/GetInstalledWidgetRequestInput"},"response": {"anyOf": [@@ -19938,24 +24430,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/AssetUnusedItem"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -19974,7 +24449,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -20012,11 +24488,11 @@},{"method": "POST",- "path": "/api/asset/insertCover",- "handler": "insertCover",+ "path": "/api/bazaar/getUpdatedPackage",+ "handler": "getUpdatedPackage","body": "json","request": {- "$ref": "#/$defs/InsertCoverRequestInput"+ "$ref": "#/$defs/GetUpdatedPackageRequestInput"},"response": {"anyOf": [@@ -20030,7 +24506,7 @@]},"data": {- "$ref": "#/$defs/AssetInsertCoverData"+ "$ref": "#/$defs/BazaarUpdatedData"},"msg": {"type": "string"@@ -20049,7 +24525,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -20087,11 +24564,11 @@},{"method": "POST",- "path": "/api/asset/insertLocalAssets",- "handler": "insertLocalAssets",+ "path": "/api/bazaar/installBazaarIcon",+ "handler": "installBazaarIcon","body": "json","request": {- "$ref": "#/$defs/InsertLocalAssetsRequestInput"+ "$ref": "#/$defs/InstallBazaarIconRequestInput"},"response": {"anyOf": [@@ -20105,7 +24582,7 @@]},"data": {- "$ref": "#/$defs/AssetUploadData"+ "$ref": "#/$defs/BazaarAppearancePackagesData"},"msg": {"type": "string"@@ -20124,7 +24601,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -20143,9 +24621,6 @@},{"type": "null"- },- {- "$ref": "#/$defs/AssetUploadData"}]},@@ -20165,11 +24640,11 @@},{"method": "POST",- "path": "/api/asset/ocr",- "handler": "ocr",+ "path": "/api/bazaar/installBazaarPlugin",+ "handler": "installBazaarPlugin","body": "json","request": {- "$ref": "#/$defs/AssetPathRequestInput"+ "$ref": "#/$defs/InstallBazaarPluginRequestInput"},"response": {"anyOf": [@@ -20183,7 +24658,7 @@]},"data": {- "$ref": "#/$defs/AssetOCRData"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -20202,7 +24677,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -20240,11 +24716,11 @@},{"method": "POST",- "path": "/api/asset/removeUnusedAsset",- "handler": "removeUnusedAsset",+ "path": "/api/bazaar/installBazaarTemplate",+ "handler": "installBazaarTemplate","body": "json","request": {- "$ref": "#/$defs/AssetPathRequestInput"+ "$ref": "#/$defs/InstallBazaarTemplateRequestInput"},"response": {"anyOf": [@@ -20258,7 +24734,7 @@]},"data": {- "$ref": "#/$defs/AssetPathData"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -20277,7 +24753,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -20315,11 +24792,11 @@},{"method": "POST",- "path": "/api/asset/removeUnusedAssets",- "handler": "removeUnusedAssets",- "body": "none",+ "path": "/api/bazaar/installBazaarTheme",+ "handler": "installBazaarTheme",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/InstallBazaarThemeRequestInput"},"response": {"anyOf": [@@ -20333,7 +24810,7 @@]},"data": {- "$ref": "#/$defs/AssetPathsData"+ "$ref": "#/$defs/BazaarAppearancePackagesData"},"msg": {"type": "string"@@ -20352,7 +24829,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -20390,11 +24868,11 @@},{"method": "POST",- "path": "/api/asset/renameAsset",- "handler": "renameAsset",+ "path": "/api/bazaar/installBazaarWidget",+ "handler": "installBazaarWidget","body": "json","request": {- "$ref": "#/$defs/RenameAssetRequestInput"+ "$ref": "#/$defs/InstallBazaarWidgetRequestInput"},"response": {"anyOf": [@@ -20408,7 +24886,7 @@]},"data": {- "$ref": "#/$defs/AssetRenameData"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -20427,7 +24905,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -20465,11 +24944,11 @@},{"method": "POST",- "path": "/api/asset/resolveAssetPath",- "handler": "resolveAssetPath",- "body": "json",+ "path": "/api/bazaar/installLocalBazaarPackage",+ "handler": "installLocalBazaarPackage",+ "body": "multipart","request": {- "$ref": "#/$defs/AssetPathRequestInput"+ "$ref": "#/$defs/InstallLocalBazaarPackageRequestInput"},"response": {"anyOf": [@@ -20483,7 +24962,7 @@]},"data": {- "type": "string"+ "$ref": "#/$defs/BazaarLocalInstallResult"},"msg": {"type": "string"@@ -20502,7 +24981,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -20521,6 +25001,9 @@},{"type": "null"+ },+ {+ "$ref": "#/$defs/BazaarLocalInstallResult"}]},@@ -20540,11 +25023,11 @@},{"method": "POST",- "path": "/api/asset/setFileAnnotation",- "handler": "setFileAnnotation",+ "path": "/api/bazaar/setBazaarPackageRating",+ "handler": "setBazaarPackageRating","body": "json","request": {- "$ref": "#/$defs/SetAssetAnnotationRequestInput"+ "$ref": "#/$defs/SetBazaarPackageRatingRequestInput"},"response": {"anyOf": [@@ -20558,7 +25041,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarRatingResult"},"msg": {"type": "string"@@ -20577,7 +25060,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -20596,6 +25080,9 @@},{"type": "null"+ },+ {+ "$ref": "#/$defs/BazaarRatingResult"}]},@@ -20615,11 +25102,11 @@},{"method": "POST",- "path": "/api/asset/setImageOCRText",- "handler": "setImageOCRText",+ "path": "/api/bazaar/uninstallBazaarIcon",+ "handler": "uninstallBazaarIcon","body": "json","request": {- "$ref": "#/$defs/SetAssetOCRTextRequestInput"+ "$ref": "#/$defs/UninstallBazaarIconRequestInput"},"response": {"anyOf": [@@ -20633,7 +25120,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarAppearancePackagesData"},"msg": {"type": "string"@@ -20652,7 +25139,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -20690,11 +25178,11 @@},{"method": "POST",- "path": "/api/asset/statAsset",- "handler": "statAsset",+ "path": "/api/bazaar/uninstallBazaarPlugin",+ "handler": "uninstallBazaarPlugin","body": "json","request": {- "$ref": "#/$defs/AssetPathRequestInput"+ "$ref": "#/$defs/UninstallBazaarPluginRequestInput"},"response": {"anyOf": [@@ -20708,7 +25196,7 @@]},"data": {- "$ref": "#/$defs/AssetStatData"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -20766,11 +25254,11 @@},{"method": "POST",- "path": "/api/asset/upload",- "handler": "uploadAsset",- "body": "multipart",+ "path": "/api/bazaar/uninstallBazaarTemplate",+ "handler": "uninstallBazaarTemplate",+ "body": "json","request": {- "$ref": "#/$defs/UploadAssetRequestInput"+ "$ref": "#/$defs/UninstallBazaarTemplateRequestInput"},"response": {"anyOf": [@@ -20784,7 +25272,7 @@]},"data": {- "$ref": "#/$defs/AssetUploadData"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -20803,7 +25291,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -20841,11 +25330,11 @@},{"method": "POST",- "path": "/api/asset/uploadCloud",- "handler": "uploadCloud",+ "path": "/api/bazaar/uninstallBazaarTheme",+ "handler": "uninstallBazaarTheme","body": "json","request": {- "$ref": "#/$defs/AssetCloudUploadRequestInput"+ "$ref": "#/$defs/UninstallBazaarThemeRequestInput"},"response": {"anyOf": [@@ -20859,7 +25348,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarAppearancePackagesData"},"msg": {"type": "string"@@ -20878,7 +25367,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -20916,11 +25406,11 @@},{"method": "POST",- "path": "/api/asset/uploadCloudByAssetsPaths",- "handler": "uploadCloudByAssetsPaths",+ "path": "/api/bazaar/uninstallBazaarWidget",+ "handler": "uninstallBazaarWidget","body": "json","request": {- "$ref": "#/$defs/AssetPathsCloudUploadRequestInput"+ "$ref": "#/$defs/UninstallBazaarWidgetRequestInput"},"response": {"anyOf": [@@ -20934,7 +25424,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -20953,7 +25443,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -20991,11 +25482,11 @@},{"method": "POST",- "path": "/api/attr/batchGetBlockAttrs",- "handler": "batchGetBlockAttrs",+ "path": "/api/bazaar/updateBazaarPackage",+ "handler": "updateBazaarPackage","body": "json","request": {- "$ref": "#/$defs/BlockIDsRequestInput"+ "$ref": "#/$defs/UpdateBazaarPackageRequestInput"},"response": {"anyOf": [@@ -21009,20 +25500,7 @@]},"data": {- "type": "object",- "additionalProperties": {- "anyOf": [- {- "type": "object",- "additionalProperties": {- "type": "string"- }- },- {- "type": "null"- }- ]- }+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -21041,7 +25519,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -21079,11 +25558,11 @@},{"method": "POST",- "path": "/api/attr/batchSetBlockAttrs",- "handler": "batchSetBlockAttrs",+ "path": "/api/block/appendBlock",+ "handler": "appendBlock","body": "json","request": {- "$ref": "#/$defs/BatchSetBlockAttrsRequestInput"+ "$ref": "#/$defs/AppendBlockRequestInput"},"response": {"anyOf": [@@ -21097,7 +25576,24 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -21154,11 +25650,11 @@},{"method": "POST",- "path": "/api/attr/getBlockAttrs",- "handler": "getBlockAttrs",+ "path": "/api/block/appendDailyNoteBlock",+ "handler": "appendDailyNoteBlock","body": "json","request": {- "$ref": "#/$defs/BlockIDRequestInput"+ "$ref": "#/$defs/DailyNoteBlockRequestInput"},"response": {"anyOf": [@@ -21172,10 +25668,24 @@]},"data": {- "type": "object",- "additionalProperties": {- "type": "string"- }+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -21232,11 +25742,11 @@},{"method": "POST",- "path": "/api/attr/getBookmarkLabels",- "handler": "getBookmarkLabels",- "body": "none",+ "path": "/api/block/appendHeadingChildren",+ "handler": "appendHeadingChildren",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/AppendHeadingChildrenRequestInput"},"response": {"anyOf": [@@ -21250,17 +25760,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "type": "string"- }- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -21317,11 +25817,11 @@},{"method": "POST",- "path": "/api/attr/resetBlockAttrs",- "handler": "resetBlockAttrs",- "body": "none",+ "path": "/api/block/batchAppendBlock",+ "handler": "batchAppendBlock",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/BatchParentBlockRequestInput"},"response": {"anyOf": [@@ -21335,7 +25835,24 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -21392,11 +25909,11 @@},{"method": "POST",- "path": "/api/attr/setBlockAttrs",- "handler": "setBlockAttrs",+ "path": "/api/block/batchInsertBlock",+ "handler": "batchInsertBlock","body": "json","request": {- "$ref": "#/$defs/SetBlockAttrsRequestInput"+ "$ref": "#/$defs/BatchInsertBlockRequestInput"},"response": {"anyOf": [@@ -21410,7 +25927,24 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -21467,11 +26001,11 @@},{"method": "POST",- "path": "/api/av/searchAttributeViewNonRelationKey",- "handler": "searchAttributeViewNonRelationKey",- "body": "none",+ "path": "/api/block/batchPrependBlock",+ "handler": "batchPrependBlock",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/BatchParentBlockRequestInput"},"response": {"anyOf": [@@ -21485,7 +26019,24 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -21542,11 +26093,11 @@},{"method": "POST",- "path": "/api/bazaar/batchUpdatePackage",- "handler": "batchUpdatePackage",+ "path": "/api/block/batchUpdateBlock",+ "handler": "batchUpdateBlock","body": "json","request": {- "$ref": "#/$defs/BatchUpdatePackageRequestInput"+ "$ref": "#/$defs/BatchUpdateBlockRequestInput"},"response": {"anyOf": [@@ -21560,7 +26111,24 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -21579,8 +26147,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -21618,11 +26185,11 @@},{"method": "POST",- "path": "/api/bazaar/getBazaarIcon",- "handler": "getBazaarIcon",+ "path": "/api/block/batchUpdateTaskListItemMarker",+ "handler": "batchUpdateTaskListItemMarker","body": "json","request": {- "$ref": "#/$defs/GetBazaarIconRequestInput"+ "$ref": "#/$defs/BatchTaskListMarkerRequestInput"},"response": {"anyOf": [@@ -21636,7 +26203,24 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -21655,8 +26239,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -21694,11 +26277,11 @@},{"method": "POST",- "path": "/api/bazaar/getBazaarPackage",- "handler": "getBazaarPackage",+ "path": "/api/block/checkBlockExist",+ "handler": "checkBlockExist","body": "json","request": {- "$ref": "#/$defs/GetBazaarPackageRequestInput"+ "$ref": "#/$defs/BlockQueryRequestInput"},"response": {"anyOf": [@@ -21712,7 +26295,7 @@]},"data": {- "$ref": "#/$defs/BazaarPackageDetail"+ "type": "boolean"},"msg": {"type": "string"@@ -21731,8 +26314,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -21770,11 +26352,11 @@},{"method": "POST",- "path": "/api/bazaar/getBazaarPackageREADME",- "handler": "getBazaarPackageREADME",+ "path": "/api/block/checkBlockFold",+ "handler": "checkBlockFold","body": "json","request": {- "$ref": "#/$defs/GetBazaarPackageREADMERequestInput"+ "$ref": "#/$defs/BlockQueryRequestInput"},"response": {"anyOf": [@@ -21788,7 +26370,7 @@]},"data": {- "$ref": "#/$defs/BazaarREADMEData"+ "$ref": "#/$defs/BlockFoldData"},"msg": {"type": "string"@@ -21807,8 +26389,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -21846,11 +26427,11 @@},{"method": "POST",- "path": "/api/bazaar/getBazaarPackageRating",- "handler": "getBazaarPackageRating",+ "path": "/api/block/checkBlockRef",+ "handler": "checkBlockRef","body": "json","request": {- "$ref": "#/$defs/GetBazaarPackageRatingRequestInput"+ "$ref": "#/$defs/CheckBlockRefRequestInput"},"response": {"anyOf": [@@ -21864,7 +26445,7 @@]},"data": {- "$ref": "#/$defs/BazaarRatingResult"+ "type": "boolean"},"msg": {"type": "string"@@ -21883,8 +26464,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -21905,7 +26485,7 @@"type": "null"},{- "$ref": "#/$defs/BazaarRatingResult"+ "type": "boolean"}]},@@ -21925,11 +26505,11 @@},{"method": "POST",- "path": "/api/bazaar/getBazaarPackageRatings",- "handler": "getBazaarPackageRatings",+ "path": "/api/block/checkBlocksExist",+ "handler": "checkBlocksExist","body": "json","request": {- "$ref": "#/$defs/GetBazaarPackageRatingsRequestInput"+ "$ref": "#/$defs/CheckBlocksExistRequestInput"},"response": {"anyOf": [@@ -21943,7 +26523,17 @@]},"data": {- "$ref": "#/$defs/BazaarRatingsData"+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "boolean"+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -21962,8 +26552,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -22001,11 +26590,11 @@},{"method": "POST",- "path": "/api/bazaar/getBazaarPackageUserRatings",- "handler": "getBazaarPackageUserRatings",+ "path": "/api/block/deleteBlock",+ "handler": "deleteBlock","body": "json","request": {- "$ref": "#/$defs/GetBazaarPackageUserRatingsRequestInput"+ "$ref": "#/$defs/DeleteBlockRequestInput"},"response": {"anyOf": [@@ -22019,7 +26608,24 @@]},"data": {- "$ref": "#/$defs/BazaarUserRatingsResult"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -22038,8 +26644,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -22058,9 +26663,6 @@},{"type": "null"- },- {- "$ref": "#/$defs/BazaarUserRatingsResult"}]},@@ -22080,11 +26682,11 @@},{"method": "POST",- "path": "/api/bazaar/getBazaarPlugin",- "handler": "getBazaarPlugin",+ "path": "/api/block/foldBlock",+ "handler": "foldBlock","body": "json","request": {- "$ref": "#/$defs/GetBazaarPluginRequestInput"+ "$ref": "#/$defs/BlockIDRequestInput"},"response": {"anyOf": [@@ -22098,7 +26700,7 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "type": "null"},"msg": {"type": "string"@@ -22117,8 +26719,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -22156,11 +26757,11 @@},{"method": "POST",- "path": "/api/bazaar/getBazaarTemplate",- "handler": "getBazaarTemplate",+ "path": "/api/block/getBlockBreadcrumb",+ "handler": "getBlockBreadcrumb","body": "json","request": {- "$ref": "#/$defs/GetBazaarTemplateRequestInput"+ "$ref": "#/$defs/BlockBreadcrumbRequestInput"},"response": {"anyOf": [@@ -22174,7 +26775,24 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockPath"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -22193,8 +26811,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -22232,11 +26849,11 @@},{"method": "POST",- "path": "/api/bazaar/getBazaarTheme",- "handler": "getBazaarTheme",+ "path": "/api/block/getBlockBreadcrumbChildren",+ "handler": "getBlockBreadcrumbChildren","body": "json","request": {- "$ref": "#/$defs/GetBazaarThemeRequestInput"+ "$ref": "#/$defs/BlockBreadcrumbChildrenRequestInput"},"response": {"anyOf": [@@ -22250,7 +26867,14 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "anyOf": [+ {+ "$ref": "#/$defs/BlockBreadcrumbChildren"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -22269,8 +26893,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -22308,11 +26931,11 @@},{"method": "POST",- "path": "/api/bazaar/getBazaarWidget",- "handler": "getBazaarWidget",+ "path": "/api/block/getBlockDOM",+ "handler": "getBlockDOM","body": "json","request": {- "$ref": "#/$defs/GetBazaarWidgetRequestInput"+ "$ref": "#/$defs/BlockQueryRequestInput"},"response": {"anyOf": [@@ -22326,7 +26949,7 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "$ref": "#/$defs/BlockDOMData"},"msg": {"type": "string"@@ -22345,8 +26968,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -22384,11 +27006,11 @@},{"method": "POST",- "path": "/api/bazaar/getInstalledIcon",- "handler": "getInstalledIcon",+ "path": "/api/block/getBlockDOMWithEmbed",+ "handler": "getBlockDOMWithEmbed","body": "json","request": {- "$ref": "#/$defs/GetInstalledIconRequestInput"+ "$ref": "#/$defs/BlockQueryRequestInput"},"response": {"anyOf": [@@ -22402,7 +27024,7 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "$ref": "#/$defs/BlockDOMData"},"msg": {"type": "string"@@ -22421,8 +27043,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -22460,11 +27081,11 @@},{"method": "POST",- "path": "/api/bazaar/getInstalledPackageSize",- "handler": "getInstalledPackageSize",+ "path": "/api/block/getBlockDOMs",+ "handler": "getBlockDOMs","body": "json","request": {- "$ref": "#/$defs/GetInstalledPackageSizeRequestInput"+ "$ref": "#/$defs/BlocksQueryRequestInput"},"response": {"anyOf": [@@ -22477,9 +27098,19 @@0]},- "data": {- "$ref": "#/$defs/BazaarPackageSizeData"- },+ "data": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ },"msg": {"type": "string"}@@ -22497,8 +27128,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -22536,11 +27166,11 @@},{"method": "POST",- "path": "/api/bazaar/getInstalledPlugin",- "handler": "getInstalledPlugin",+ "path": "/api/block/getBlockDOMsWithEmbed",+ "handler": "getBlockDOMsWithEmbed","body": "json","request": {- "$ref": "#/$defs/GetInstalledPluginRequestInput"+ "$ref": "#/$defs/BlocksQueryRequestInput"},"response": {"anyOf": [@@ -22554,7 +27184,17 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -22573,8 +27213,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -22612,11 +27251,11 @@},{"method": "POST",- "path": "/api/bazaar/getInstalledTemplate",- "handler": "getInstalledTemplate",+ "path": "/api/block/getBlockDefIDsByRefText",+ "handler": "getBlockDefIDsByRefText","body": "json","request": {- "$ref": "#/$defs/GetInstalledTemplateRequestInput"+ "$ref": "#/$defs/RefTextQueryRequestInput"},"response": {"anyOf": [@@ -22630,7 +27269,7 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "$ref": "#/$defs/RefDefsData"},"msg": {"type": "string"@@ -22649,8 +27288,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -22688,11 +27326,11 @@},{"method": "POST",- "path": "/api/bazaar/getInstalledTheme",- "handler": "getInstalledTheme",+ "path": "/api/block/getBlockIndex",+ "handler": "getBlockIndex","body": "json","request": {- "$ref": "#/$defs/GetInstalledThemeRequestInput"+ "$ref": "#/$defs/BlockQueryRequestInput"},"response": {"anyOf": [@@ -22706,7 +27344,7 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "type": "integer"},"msg": {"type": "string"@@ -22725,8 +27363,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -22764,11 +27401,11 @@},{"method": "POST",- "path": "/api/bazaar/getInstalledWidget",- "handler": "getInstalledWidget",+ "path": "/api/block/getBlockInfo",+ "handler": "getBlockInfo","body": "json","request": {- "$ref": "#/$defs/GetInstalledWidgetRequestInput"+ "$ref": "#/$defs/BlockInfoRequestInput"},"response": {"anyOf": [@@ -22782,7 +27419,7 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "$ref": "#/$defs/BlockInfoData"},"msg": {"type": "string"@@ -22802,7 +27439,7 @@"type": "integer","enum": [-1,- 1+ 3]},"data": {@@ -22821,6 +27458,9 @@},{"type": "null"+ },+ {+ "type": "string"}]},@@ -22840,11 +27480,11 @@},{"method": "POST",- "path": "/api/bazaar/getUpdatedPackage",- "handler": "getUpdatedPackage",+ "path": "/api/block/getBlockKramdown",+ "handler": "getBlockKramdown","body": "json","request": {- "$ref": "#/$defs/GetUpdatedPackageRequestInput"+ "$ref": "#/$defs/BlockKramdownRequestInput"},"response": {"anyOf": [@@ -22858,7 +27498,7 @@]},"data": {- "$ref": "#/$defs/BazaarUpdatedData"+ "$ref": "#/$defs/BlockKramdownData"},"msg": {"type": "string"@@ -22877,8 +27517,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -22916,11 +27555,11 @@},{"method": "POST",- "path": "/api/bazaar/installBazaarIcon",- "handler": "installBazaarIcon",+ "path": "/api/block/getBlockKramdowns",+ "handler": "getBlockKramdowns","body": "json","request": {- "$ref": "#/$defs/InstallBazaarIconRequestInput"+ "$ref": "#/$defs/BlocksKramdownRequestInput"},"response": {"anyOf": [@@ -22934,7 +27573,17 @@]},"data": {- "$ref": "#/$defs/BazaarAppearancePackagesData"+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -22953,8 +27602,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -22992,11 +27640,11 @@},{"method": "POST",- "path": "/api/bazaar/installBazaarPlugin",- "handler": "installBazaarPlugin",+ "path": "/api/block/getBlockRelevantIDs",+ "handler": "getBlockRelevantIDs","body": "json","request": {- "$ref": "#/$defs/InstallBazaarPluginRequestInput"+ "$ref": "#/$defs/BlockQueryRequestInput"},"response": {"anyOf": [@@ -23010,7 +27658,7 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "$ref": "#/$defs/BlockRelevantData"},"msg": {"type": "string"@@ -23029,8 +27677,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -23068,11 +27715,11 @@},{"method": "POST",- "path": "/api/bazaar/installBazaarTemplate",- "handler": "installBazaarTemplate",+ "path": "/api/block/getBlockSiblingID",+ "handler": "getBlockSiblingID","body": "json","request": {- "$ref": "#/$defs/InstallBazaarTemplateRequestInput"+ "$ref": "#/$defs/BlockQueryRequestInput"},"response": {"anyOf": [@@ -23086,7 +27733,7 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "$ref": "#/$defs/BlockSiblingData"},"msg": {"type": "string"@@ -23105,8 +27752,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -23144,11 +27790,11 @@},{"method": "POST",- "path": "/api/bazaar/installBazaarTheme",- "handler": "installBazaarTheme",+ "path": "/api/block/getBlockTreeInfos",+ "handler": "getBlockTreeInfos","body": "json","request": {- "$ref": "#/$defs/InstallBazaarThemeRequestInput"+ "$ref": "#/$defs/BlocksQueryRequestInput"},"response": {"anyOf": [@@ -23162,7 +27808,24 @@]},"data": {- "$ref": "#/$defs/BazaarAppearancePackagesData"+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTreeInfo"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -23181,8 +27844,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -23220,11 +27882,11 @@},{"method": "POST",- "path": "/api/bazaar/installBazaarWidget",- "handler": "installBazaarWidget",+ "path": "/api/block/getBlocksIndexes",+ "handler": "getBlocksIndexes","body": "json","request": {- "$ref": "#/$defs/InstallBazaarWidgetRequestInput"+ "$ref": "#/$defs/BlocksQueryRequestInput"},"response": {"anyOf": [@@ -23238,7 +27900,17 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "integer"+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -23257,8 +27929,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -23296,11 +27967,11 @@},{"method": "POST",- "path": "/api/bazaar/installLocalBazaarPackage",- "handler": "installLocalBazaarPackage",- "body": "multipart",+ "path": "/api/block/getBlocksWordCount",+ "handler": "getBlocksWordCount",+ "body": "json","request": {- "$ref": "#/$defs/InstallLocalBazaarPackageRequestInput"+ "$ref": "#/$defs/BlocksWordCountRequestInput"},"response": {"anyOf": [@@ -23314,7 +27985,7 @@]},"data": {- "$ref": "#/$defs/BazaarLocalInstallResult"+ "$ref": "#/$defs/WordCountData"},"msg": {"type": "string"@@ -23333,8 +28004,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -23353,9 +28023,6 @@},{"type": "null"- },- {- "$ref": "#/$defs/BazaarLocalInstallResult"}]},@@ -23375,11 +28042,11 @@},{"method": "POST",- "path": "/api/bazaar/setBazaarPackageRating",- "handler": "setBazaarPackageRating",+ "path": "/api/block/getChildBlocks",+ "handler": "getChildBlocks","body": "json","request": {- "$ref": "#/$defs/SetBazaarPackageRatingRequestInput"+ "$ref": "#/$defs/BlockQueryRequestInput"},"response": {"anyOf": [@@ -23393,7 +28060,17 @@]},"data": {- "$ref": "#/$defs/BazaarRatingResult"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/ChildBlock"+ },+ {+ "type": "null"+ }+ ]+ }},"msg": {"type": "string"@@ -23412,8 +28089,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -23432,9 +28108,6 @@},{"type": "null"- },- {- "$ref": "#/$defs/BazaarRatingResult"}]},@@ -23454,11 +28127,11 @@},{"method": "POST",- "path": "/api/bazaar/uninstallBazaarIcon",- "handler": "uninstallBazaarIcon",+ "path": "/api/block/getContentWordCount",+ "handler": "getContentWordCount","body": "json","request": {- "$ref": "#/$defs/UninstallBazaarIconRequestInput"+ "$ref": "#/$defs/ContentWordCountRequestInput"},"response": {"anyOf": [@@ -23472,7 +28145,7 @@]},"data": {- "$ref": "#/$defs/BazaarAppearancePackagesData"+ "$ref": "#/$defs/WordCountData"},"msg": {"type": "string"@@ -23491,8 +28164,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -23530,11 +28202,11 @@},{"method": "POST",- "path": "/api/bazaar/uninstallBazaarPlugin",- "handler": "uninstallBazaarPlugin",+ "path": "/api/block/getDOMText",+ "handler": "getDOMText","body": "json","request": {- "$ref": "#/$defs/UninstallBazaarPluginRequestInput"+ "$ref": "#/$defs/DOMTextRequestInput"},"response": {"anyOf": [@@ -23548,7 +28220,7 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "type": "string"},"msg": {"type": "string"@@ -23567,8 +28239,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -23606,11 +28277,11 @@},{"method": "POST",- "path": "/api/bazaar/uninstallBazaarTemplate",- "handler": "uninstallBazaarTemplate",+ "path": "/api/block/getDocBlocksOrders",+ "handler": "getDocBlocksOrders","body": "json","request": {- "$ref": "#/$defs/UninstallBazaarTemplateRequestInput"+ "$ref": "#/$defs/DocOrdersRequestInput"},"response": {"anyOf": [@@ -23624,7 +28295,17 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -23642,9 +28323,8 @@"properties": {"code": {"type": "integer",- "enum": [- -1,- 1+ "enum": [+ -1]},"data": {@@ -23682,11 +28362,11 @@},{"method": "POST",- "path": "/api/bazaar/uninstallBazaarTheme",- "handler": "uninstallBazaarTheme",- "body": "json",+ "path": "/api/block/getDocHeadingLevelTransaction",+ "handler": "getDocHeadingLevelTransaction",+ "body": "structJSON","request": {- "$ref": "#/$defs/UninstallBazaarThemeRequestInput"+ "$ref": "#/$defs/DocHeadingLevelRequestInput"},"response": {"anyOf": [@@ -23700,7 +28380,14 @@]},"data": {- "$ref": "#/$defs/BazaarAppearancePackagesData"+ "anyOf": [+ {+ "$ref": "#/$defs/DocHeadingLevelData"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -23719,8 +28406,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -23758,11 +28444,11 @@},{"method": "POST",- "path": "/api/bazaar/uninstallBazaarWidget",- "handler": "uninstallBazaarWidget",+ "path": "/api/block/getDocInfo",+ "handler": "getDocInfo","body": "json","request": {- "$ref": "#/$defs/UninstallBazaarWidgetRequestInput"+ "$ref": "#/$defs/BlockQueryRequestInput"},"response": {"anyOf": [@@ -23776,7 +28462,14 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "anyOf": [+ {+ "$ref": "#/$defs/DocInfo"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -23795,8 +28488,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -23834,11 +28526,11 @@},{"method": "POST",- "path": "/api/bazaar/updateBazaarPackage",- "handler": "updateBazaarPackage",+ "path": "/api/block/getDocsInfo",+ "handler": "getDocsInfo","body": "json","request": {- "$ref": "#/$defs/UpdateBazaarPackageRequestInput"+ "$ref": "#/$defs/DocsInfoRequestInput"},"response": {"anyOf": [@@ -23852,7 +28544,24 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/DocInfo"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -23871,8 +28580,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -23910,11 +28618,11 @@},{"method": "POST",- "path": "/api/block/appendBlock",- "handler": "appendBlock",+ "path": "/api/block/getHeadingChildrenDOM",+ "handler": "getHeadingChildrenDOM","body": "json","request": {- "$ref": "#/$defs/AppendBlockRequestInput"+ "$ref": "#/$defs/HeadingChildrenRequestInput"},"response": {"anyOf": [@@ -23928,24 +28636,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "type": "string"},"msg": {"type": "string"@@ -24002,11 +28693,11 @@},{"method": "POST",- "path": "/api/block/appendDailyNoteBlock",- "handler": "appendDailyNoteBlock",+ "path": "/api/block/getHeadingChildrenIDs",+ "handler": "getHeadingChildrenIDs","body": "json","request": {- "$ref": "#/$defs/DailyNoteBlockRequestInput"+ "$ref": "#/$defs/BlockIDRequestInput"},"response": {"anyOf": [@@ -24024,14 +28715,7 @@{"type": "array","items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]+ "type": "string"}},{@@ -24094,11 +28778,11 @@},{"method": "POST",- "path": "/api/block/appendHeadingChildren",- "handler": "appendHeadingChildren",+ "path": "/api/block/getHeadingDeleteTransaction",+ "handler": "getHeadingDeleteTransaction","body": "json","request": {- "$ref": "#/$defs/AppendHeadingChildrenRequestInput"+ "$ref": "#/$defs/BlockIDRequestInput"},"response": {"anyOf": [@@ -24112,7 +28796,14 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -24169,11 +28860,11 @@},{"method": "POST",- "path": "/api/block/batchAppendBlock",- "handler": "batchAppendBlock",+ "path": "/api/block/getHeadingFoldTransaction",+ "handler": "getHeadingFoldTransaction","body": "json","request": {- "$ref": "#/$defs/BatchParentBlockRequestInput"+ "$ref": "#/$defs/HeadingFoldRequestInput"},"response": {"anyOf": [@@ -24189,17 +28880,7 @@"data": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }+ "$ref": "#/$defs/BlockTransaction"},{"type": "null"@@ -24261,11 +28942,11 @@},{"method": "POST",- "path": "/api/block/batchInsertBlock",- "handler": "batchInsertBlock",+ "path": "/api/block/getHeadingInsertTransaction",+ "handler": "getHeadingInsertTransaction","body": "json","request": {- "$ref": "#/$defs/BatchInsertBlockRequestInput"+ "$ref": "#/$defs/BlockIDRequestInput"},"response": {"anyOf": [@@ -24281,17 +28962,7 @@"data": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }+ "$ref": "#/$defs/BlockTransaction"},{"type": "null"@@ -24353,11 +29024,11 @@},{"method": "POST",- "path": "/api/block/batchPrependBlock",- "handler": "batchPrependBlock",+ "path": "/api/block/getHeadingLevelTransaction",+ "handler": "getHeadingLevelTransaction","body": "json","request": {- "$ref": "#/$defs/BatchParentBlockRequestInput"+ "$ref": "#/$defs/HeadingLevelRequestInput"},"response": {"anyOf": [@@ -24373,17 +29044,7 @@"data": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }+ "$ref": "#/$defs/BlockTransaction"},{"type": "null"@@ -24445,11 +29106,11 @@},{"method": "POST",- "path": "/api/block/batchUpdateBlock",- "handler": "batchUpdateBlock",+ "path": "/api/block/getOrderedListContinueStart",+ "handler": "getOrderedListContinueStart","body": "json","request": {- "$ref": "#/$defs/BatchUpdateBlockRequestInput"+ "$ref": "#/$defs/BlockQueryRequestInput"},"response": {"anyOf": [@@ -24463,24 +29124,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/OrderedListStartData"},"msg": {"type": "string"@@ -24537,11 +29181,11 @@},{"method": "POST",- "path": "/api/block/batchUpdateTaskListItemMarker",- "handler": "batchUpdateTaskListItemMarker",- "body": "json",+ "path": "/api/block/getRecentUpdatedBlocks",+ "handler": "getRecentUpdatedBlocks",+ "body": "none","request": {- "$ref": "#/$defs/BatchTaskListMarkerRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -24561,7 +29205,7 @@"items": {"anyOf": [{- "$ref": "#/$defs/BlockTransaction"+ "$ref": "#/$defs/SearchBlock"},{"type": "null"@@ -24629,11 +29273,11 @@},{"method": "POST",- "path": "/api/block/checkBlockExist",- "handler": "checkBlockExist",+ "path": "/api/block/getRefIDs",+ "handler": "getRefIDs","body": "json","request": {- "$ref": "#/$defs/BlockQueryRequestInput"+ "$ref": "#/$defs/RefIDsRequestInput"},"response": {"anyOf": [@@ -24647,7 +29291,7 @@]},"data": {- "type": "boolean"+ "$ref": "#/$defs/RefIDsData"},"msg": {"type": "string"@@ -24704,11 +29348,11 @@},{"method": "POST",- "path": "/api/block/checkBlockFold",- "handler": "checkBlockFold",+ "path": "/api/block/getRefIDsByFileAnnotationID",+ "handler": "getRefIDsByFileAnnotationID","body": "json","request": {- "$ref": "#/$defs/BlockQueryRequestInput"+ "$ref": "#/$defs/FileAnnotationRefRequestInput"},"response": {"anyOf": [@@ -24722,7 +29366,7 @@]},"data": {- "$ref": "#/$defs/BlockFoldData"+ "$ref": "#/$defs/RefDefsData"},"msg": {"type": "string"@@ -24779,11 +29423,11 @@},{"method": "POST",- "path": "/api/block/checkBlockRef",- "handler": "checkBlockRef",+ "path": "/api/block/getRefText",+ "handler": "getRefText","body": "json","request": {- "$ref": "#/$defs/CheckBlockRefRequestInput"+ "$ref": "#/$defs/BlockQueryRequestInput"},"response": {"anyOf": [@@ -24797,7 +29441,7 @@]},"data": {- "type": "boolean"+ "type": "string"},"msg": {"type": "string"@@ -24835,9 +29479,6 @@},{"type": "null"- },- {- "type": "boolean"}]},@@ -24857,11 +29498,11 @@},{"method": "POST",- "path": "/api/block/checkBlocksExist",- "handler": "checkBlocksExist",+ "path": "/api/block/getTailChildBlocks",+ "handler": "getTailChildBlocks","body": "json","request": {- "$ref": "#/$defs/CheckBlocksExistRequestInput"+ "$ref": "#/$defs/TailChildBlocksRequestInput"},"response": {"anyOf": [@@ -24875,17 +29516,17 @@]},"data": {- "anyOf": [- {- "type": "object",- "additionalProperties": {- "type": "boolean"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/ChildBlock"+ },+ {+ "type": "null"}- },- {- "type": "null"- }- ]+ ]+ }},"msg": {"type": "string"@@ -24942,11 +29583,11 @@},{"method": "POST",- "path": "/api/block/deleteBlock",- "handler": "deleteBlock",+ "path": "/api/block/getTreeStat",+ "handler": "getTreeStat","body": "json","request": {- "$ref": "#/$defs/DeleteBlockRequestInput"+ "$ref": "#/$defs/TreeStatRequestInput"},"response": {"anyOf": [@@ -24960,24 +29601,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/TreeStatData"},"msg": {"type": "string"@@ -25034,11 +29658,11 @@},{"method": "POST",- "path": "/api/block/foldBlock",- "handler": "foldBlock",+ "path": "/api/block/getUnfoldedParentID",+ "handler": "getUnfoldedParentID","body": "json","request": {- "$ref": "#/$defs/BlockIDRequestInput"+ "$ref": "#/$defs/BlockQueryRequestInput"},"response": {"anyOf": [@@ -25052,7 +29676,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/UnfoldedParentData"},"msg": {"type": "string"@@ -25109,11 +29733,11 @@},{"method": "POST",- "path": "/api/block/getBlockBreadcrumb",- "handler": "getBlockBreadcrumb",+ "path": "/api/block/insertBlock",+ "handler": "insertBlock","body": "json","request": {- "$ref": "#/$defs/BlockBreadcrumbRequestInput"+ "$ref": "#/$defs/InsertBlockRequestInput"},"response": {"anyOf": [@@ -25133,7 +29757,7 @@"items": {"anyOf": [{- "$ref": "#/$defs/BlockPath"+ "$ref": "#/$defs/BlockTransaction"},{"type": "null"@@ -25201,11 +29825,11 @@},{"method": "POST",- "path": "/api/block/getBlockBreadcrumbChildren",- "handler": "getBlockBreadcrumbChildren",+ "path": "/api/block/moveBlock",+ "handler": "moveBlock","body": "json","request": {- "$ref": "#/$defs/BlockBreadcrumbChildrenRequestInput"+ "$ref": "#/$defs/MoveBlockRequestInput"},"response": {"anyOf": [@@ -25219,14 +29843,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/BlockBreadcrumbChildren"- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -25283,11 +29900,11 @@},{"method": "POST",- "path": "/api/block/getBlockDOM",- "handler": "getBlockDOM",+ "path": "/api/block/moveOutlineHeading",+ "handler": "moveOutlineHeading","body": "json","request": {- "$ref": "#/$defs/BlockQueryRequestInput"+ "$ref": "#/$defs/MoveBlockRequestInput"},"response": {"anyOf": [@@ -25301,7 +29918,24 @@]},"data": {- "$ref": "#/$defs/BlockDOMData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -25358,11 +29992,11 @@},{"method": "POST",- "path": "/api/block/getBlockDOMWithEmbed",- "handler": "getBlockDOMWithEmbed",+ "path": "/api/block/prependBlock",+ "handler": "prependBlock","body": "json","request": {- "$ref": "#/$defs/BlockQueryRequestInput"+ "$ref": "#/$defs/PrependBlockRequestInput"},"response": {"anyOf": [@@ -25376,7 +30010,24 @@]},"data": {- "$ref": "#/$defs/BlockDOMData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -25433,11 +30084,11 @@},{"method": "POST",- "path": "/api/block/getBlockDOMs",- "handler": "getBlockDOMs",+ "path": "/api/block/prependDailyNoteBlock",+ "handler": "prependDailyNoteBlock","body": "json","request": {- "$ref": "#/$defs/BlocksQueryRequestInput"+ "$ref": "#/$defs/DailyNoteBlockRequestInput"},"response": {"anyOf": [@@ -25453,9 +30104,16 @@"data": {"anyOf": [{- "type": "object",- "additionalProperties": {- "type": "string"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]}},{@@ -25518,11 +30176,11 @@},{"method": "POST",- "path": "/api/block/getBlockDOMsWithEmbed",- "handler": "getBlockDOMsWithEmbed",+ "path": "/api/block/setBlockReminder",+ "handler": "setBlockReminder","body": "json","request": {- "$ref": "#/$defs/BlocksQueryRequestInput"+ "$ref": "#/$defs/BlockReminderRequestInput"},"response": {"anyOf": [@@ -25536,17 +30194,7 @@]},"data": {- "anyOf": [- {- "type": "object",- "additionalProperties": {- "type": "string"- }- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -25603,11 +30251,11 @@},{"method": "POST",- "path": "/api/block/getBlockDefIDsByRefText",- "handler": "getBlockDefIDsByRefText",+ "path": "/api/block/swapBlockRef",+ "handler": "swapBlockRef","body": "json","request": {- "$ref": "#/$defs/RefTextQueryRequestInput"+ "$ref": "#/$defs/SwapBlockRefRequestInput"},"response": {"anyOf": [@@ -25621,7 +30269,7 @@]},"data": {- "$ref": "#/$defs/RefDefsData"+ "type": "null"},"msg": {"type": "string"@@ -25678,11 +30326,11 @@},{"method": "POST",- "path": "/api/block/getBlockIndex",- "handler": "getBlockIndex",+ "path": "/api/block/transferBlockRef",+ "handler": "transferBlockRef","body": "json","request": {- "$ref": "#/$defs/BlockQueryRequestInput"+ "$ref": "#/$defs/TransferBlockRefRequestInput"},"response": {"anyOf": [@@ -25696,7 +30344,7 @@]},"data": {- "type": "integer"+ "type": "null"},"msg": {"type": "string"@@ -25753,11 +30401,11 @@},{"method": "POST",- "path": "/api/block/getBlockInfo",- "handler": "getBlockInfo",+ "path": "/api/block/unfoldBlock",+ "handler": "unfoldBlock","body": "json","request": {- "$ref": "#/$defs/BlockInfoRequestInput"+ "$ref": "#/$defs/BlockIDRequestInput"},"response": {"anyOf": [@@ -25771,7 +30419,7 @@]},"data": {- "$ref": "#/$defs/BlockInfoData"+ "type": "null"},"msg": {"type": "string"@@ -25790,8 +30438,7 @@"code": {"type": "integer","enum": [- -1,- 3+ -1]},"data": {@@ -25810,9 +30457,6 @@},{"type": "null"- },- {- "type": "string"}]},@@ -25832,11 +30476,11 @@},{"method": "POST",- "path": "/api/block/getBlockKramdown",- "handler": "getBlockKramdown",+ "path": "/api/block/updateBlock",+ "handler": "updateBlock","body": "json","request": {- "$ref": "#/$defs/BlockKramdownRequestInput"+ "$ref": "#/$defs/UpdateBlockRequestInput"},"response": {"anyOf": [@@ -25850,7 +30494,24 @@]},"data": {- "$ref": "#/$defs/BlockKramdownData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -25907,11 +30568,11 @@},{"method": "POST",- "path": "/api/block/getBlockKramdowns",- "handler": "getBlockKramdowns",+ "path": "/api/block/updateTaskListItemMarker",+ "handler": "updateTaskListItemMarker","body": "json","request": {- "$ref": "#/$defs/BlocksKramdownRequestInput"+ "$ref": "#/$defs/TaskListMarkerRequestInput"},"response": {"anyOf": [@@ -25927,9 +30588,16 @@"data": {"anyOf": [{- "type": "object",- "additionalProperties": {- "type": "string"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]}},{@@ -25992,11 +30660,11 @@},{"method": "POST",- "path": "/api/block/getBlockRelevantIDs",- "handler": "getBlockRelevantIDs",- "body": "json",+ "path": "/api/bookmark/getBookmark",+ "handler": "getBookmark",+ "body": "none","request": {- "$ref": "#/$defs/BlockQueryRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -26010,7 +30678,24 @@]},"data": {- "$ref": "#/$defs/BlockRelevantData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/Bookmark"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -26067,11 +30752,11 @@},{"method": "POST",- "path": "/api/block/getBlockSiblingID",- "handler": "getBlockSiblingID",+ "path": "/api/bookmark/removeBookmark",+ "handler": "removeBookmark","body": "json","request": {- "$ref": "#/$defs/BlockQueryRequestInput"+ "$ref": "#/$defs/RemoveBookmarkRequestInput"},"response": {"anyOf": [@@ -26085,7 +30770,7 @@]},"data": {- "$ref": "#/$defs/BlockSiblingData"+ "type": "null"},"msg": {"type": "string"@@ -26142,11 +30827,11 @@},{"method": "POST",- "path": "/api/block/getBlockTreeInfos",- "handler": "getBlockTreeInfos",+ "path": "/api/bookmark/renameBookmark",+ "handler": "renameBookmark","body": "json","request": {- "$ref": "#/$defs/BlocksQueryRequestInput"+ "$ref": "#/$defs/RenameBookmarkRequestInput"},"response": {"anyOf": [@@ -26160,24 +30845,7 @@]},"data": {- "anyOf": [- {- "type": "object",- "additionalProperties": {- "anyOf": [- {- "$ref": "#/$defs/BlockTreeInfo"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -26234,11 +30902,11 @@},{"method": "POST",- "path": "/api/block/getBlocksIndexes",- "handler": "getBlocksIndexes",+ "path": "/api/broadcast/getChannelInfo",+ "handler": "getChannelInfo","body": "json","request": {- "$ref": "#/$defs/BlocksQueryRequestInput"+ "$ref": "#/$defs/BroadcastChannelRequestInput"},"response": {"anyOf": [@@ -26252,17 +30920,7 @@]},"data": {- "anyOf": [- {- "type": "object",- "additionalProperties": {- "type": "integer"- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/BroadcastChannelData"},"msg": {"type": "string"@@ -26319,11 +30977,11 @@},{"method": "POST",- "path": "/api/block/getBlocksWordCount",- "handler": "getBlocksWordCount",- "body": "json",+ "path": "/api/broadcast/getChannels",+ "handler": "getChannels",+ "body": "none","request": {- "$ref": "#/$defs/BlocksWordCountRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -26337,7 +30995,7 @@]},"data": {- "$ref": "#/$defs/WordCountData"+ "$ref": "#/$defs/BroadcastChannelsData"},"msg": {"type": "string"@@ -26394,11 +31052,11 @@},{"method": "POST",- "path": "/api/block/getChildBlocks",- "handler": "getChildBlocks",+ "path": "/api/broadcast/postMessage",+ "handler": "postMessage","body": "json","request": {- "$ref": "#/$defs/BlockQueryRequestInput"+ "$ref": "#/$defs/BroadcastMessageRequestInput"},"response": {"anyOf": [@@ -26412,17 +31070,7 @@]},"data": {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/ChildBlock"- },- {- "type": "null"- }- ]- }+ "$ref": "#/$defs/BroadcastChannelData"},"msg": {"type": "string"@@ -26441,7 +31089,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -26479,11 +31128,25 @@},{"method": "POST",- "path": "/api/block/getContentWordCount",- "handler": "getContentWordCount",- "body": "json",+ "path": "/api/broadcast/publish",+ "handler": "broadcastPublish",+ "body": "multipart","request": {- "$ref": "#/$defs/ContentWordCountRequestInput"+ "type": "object",+ "additionalProperties": {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "string",+ "format": "binary"+ }+ ]+ }+ }},"response": {"anyOf": [@@ -26497,7 +31160,7 @@]},"data": {- "$ref": "#/$defs/WordCountData"+ "$ref": "#/$defs/BroadcastPublishData"},"msg": {"type": "string"@@ -26516,7 +31179,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -26554,11 +31218,11 @@},{"method": "POST",- "path": "/api/block/getDOMText",- "handler": "getDOMText",+ "path": "/api/clipboard/cleanupRichText",+ "handler": "cleanupRichText","body": "json","request": {- "$ref": "#/$defs/DOMTextRequestInput"+ "$ref": "#/$defs/CleanupRichTextRequestInput"},"response": {"anyOf": [@@ -26572,7 +31236,7 @@]},"data": {- "type": "string"+ "type": "null"},"msg": {"type": "string"@@ -26629,11 +31293,11 @@},{"method": "POST",- "path": "/api/block/getDocBlocksOrders",- "handler": "getDocBlocksOrders",+ "path": "/api/clipboard/prepareRichText",+ "handler": "prepareRichText","body": "json","request": {- "$ref": "#/$defs/DocOrdersRequestInput"+ "$ref": "#/$defs/PrepareRichTextRequestInput"},"response": {"anyOf": [@@ -26649,10 +31313,7 @@"data": {"anyOf": [{- "type": "array",- "items": {- "type": "string"- }+ "$ref": "#/$defs/RichClipboardPrepared"},{"type": "null"@@ -26714,11 +31375,11 @@},{"method": "POST",- "path": "/api/block/getDocHeadingLevelTransaction",- "handler": "getDocHeadingLevelTransaction",- "body": "structJSON",+ "path": "/api/clipboard/readFilePaths",+ "handler": "readFilePaths",+ "body": "none","request": {- "$ref": "#/$defs/DocHeadingLevelRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -26732,14 +31393,10 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/DocHeadingLevelData"- },- {- "type": "null"- }- ]+ "type": "array",+ "items": {+ "$ref": "#/$defs/ClipboardFile"+ }},"msg": {"type": "string"@@ -26796,11 +31453,11 @@},{"method": "POST",- "path": "/api/block/getDocInfo",- "handler": "getDocInfo",+ "path": "/api/clipboard/writeFilePath",+ "handler": "writeFilePath","body": "json","request": {- "$ref": "#/$defs/BlockQueryRequestInput"+ "$ref": "#/$defs/ClipboardPathRequestInput"},"response": {"anyOf": [@@ -26814,14 +31471,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/DocInfo"- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -26878,11 +31528,11 @@},{"method": "POST",- "path": "/api/block/getDocsInfo",- "handler": "getDocsInfo",- "body": "json",+ "path": "/api/cloud/getCloudSpace",+ "handler": "getCloudSpace",+ "body": "none","request": {- "$ref": "#/$defs/DocsInfoRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -26896,24 +31546,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/DocInfo"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/CloudSpaceData"},"msg": {"type": "string"@@ -26932,7 +31565,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -26970,11 +31604,11 @@},{"method": "POST",- "path": "/api/block/getHeadingChildrenDOM",- "handler": "getHeadingChildrenDOM",+ "path": "/api/cloud/setCloudReminder",+ "handler": "setCloudReminder","body": "json","request": {- "$ref": "#/$defs/HeadingChildrenRequestInput"+ "$ref": "#/$defs/CloudReminderRequestInput"},"response": {"anyOf": [@@ -26988,7 +31622,7 @@]},"data": {- "type": "string"+ "type": "null"},"msg": {"type": "string"@@ -27045,11 +31679,11 @@},{"method": "POST",- "path": "/api/block/getHeadingChildrenIDs",- "handler": "getHeadingChildrenIDs",+ "path": "/api/convert/pandoc",+ "handler": "pandoc","body": "json","request": {- "$ref": "#/$defs/BlockIDRequestInput"+ "$ref": "#/$defs/PandocRequestInput"},"response": {"anyOf": [@@ -27063,17 +31697,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "type": "string"- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/PandocData"},"msg": {"type": "string"@@ -27130,11 +31754,11 @@},{"method": "POST",- "path": "/api/block/getHeadingDeleteTransaction",- "handler": "getHeadingDeleteTransaction",+ "path": "/api/export/copyExportFile",+ "handler": "copyExportFile","body": "json","request": {- "$ref": "#/$defs/BlockIDRequestInput"+ "$ref": "#/$defs/CopyExportFileRequestInput"},"response": {"anyOf": [@@ -27148,14 +31772,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -27174,7 +31791,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ -2]},"data": {@@ -27212,11 +31830,11 @@},{"method": "POST",- "path": "/api/block/getHeadingFoldTransaction",- "handler": "getHeadingFoldTransaction",+ "path": "/api/export/export2Liandi",+ "handler": "export2Liandi","body": "json","request": {- "$ref": "#/$defs/HeadingFoldRequestInput"+ "$ref": "#/$defs/ExportIDRequestInput"},"response": {"anyOf": [@@ -27230,14 +31848,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -27294,11 +31905,11 @@},{"method": "POST",- "path": "/api/block/getHeadingInsertTransaction",- "handler": "getHeadingInsertTransaction",- "body": "json",+ "path": "/api/export/exportAsFile",+ "handler": "exportAsFile",+ "body": "multipart","request": {- "$ref": "#/$defs/BlockIDRequestInput"+ "$ref": "#/$defs/ExportAsFileRequestInput"},"response": {"anyOf": [@@ -27312,14 +31923,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/ExportFileData"},"msg": {"type": "string"@@ -27376,11 +31980,11 @@},{"method": "POST",- "path": "/api/block/getHeadingLevelTransaction",- "handler": "getHeadingLevelTransaction",+ "path": "/api/export/exportAsciiDoc",+ "handler": "exportAsciiDoc","body": "json","request": {- "$ref": "#/$defs/HeadingLevelRequestInput"+ "$ref": "#/$defs/ExportIDRequestInput"},"response": {"anyOf": [@@ -27394,14 +31998,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/ExportNamedZipData"},"msg": {"type": "string"@@ -27458,11 +32055,11 @@},{"method": "POST",- "path": "/api/block/getOrderedListContinueStart",- "handler": "getOrderedListContinueStart",+ "path": "/api/export/exportAttributeView",+ "handler": "exportAttributeView","body": "json","request": {- "$ref": "#/$defs/BlockQueryRequestInput"+ "$ref": "#/$defs/ExportAttributeViewRequestInput"},"response": {"anyOf": [@@ -27476,7 +32073,7 @@]},"data": {- "$ref": "#/$defs/OrderedListStartData"+ "$ref": "#/$defs/ExportZipData"},"msg": {"type": "string"@@ -27495,7 +32092,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -27533,11 +32131,11 @@},{"method": "POST",- "path": "/api/block/getRecentUpdatedBlocks",- "handler": "getRecentUpdatedBlocks",- "body": "none",+ "path": "/api/export/exportBrowserHTML",+ "handler": "exportBrowserHTML",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/ExportBrowserHTMLRequestInput"},"response": {"anyOf": [@@ -27551,24 +32149,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/SearchBlock"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/ExportZipData"},"msg": {"type": "string"@@ -27625,11 +32206,11 @@},{"method": "POST",- "path": "/api/block/getRefIDs",- "handler": "getRefIDs",+ "path": "/api/export/exportCodeBlock",+ "handler": "exportCodeBlock","body": "json","request": {- "$ref": "#/$defs/RefIDsRequestInput"+ "$ref": "#/$defs/ExportIDRequestInput"},"response": {"anyOf": [@@ -27643,7 +32224,7 @@]},"data": {- "$ref": "#/$defs/RefIDsData"+ "$ref": "#/$defs/ExportPathData"},"msg": {"type": "string"@@ -27662,7 +32243,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -27700,11 +32282,11 @@},{"method": "POST",- "path": "/api/block/getRefIDsByFileAnnotationID",- "handler": "getRefIDsByFileAnnotationID",- "body": "json",+ "path": "/api/export/exportData",+ "handler": "exportData",+ "body": "none","request": {- "$ref": "#/$defs/FileAnnotationRefRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -27718,7 +32300,7 @@]},"data": {- "$ref": "#/$defs/RefDefsData"+ "$ref": "#/$defs/ExportZipData"},"msg": {"type": "string"@@ -27737,7 +32319,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -27775,11 +32358,11 @@},{"method": "POST",- "path": "/api/block/getRefText",- "handler": "getRefText",+ "path": "/api/export/exportDataInFolder",+ "handler": "exportDataInFolder","body": "json","request": {- "$ref": "#/$defs/BlockQueryRequestInput"+ "$ref": "#/$defs/ExportFolderRequestInput"},"response": {"anyOf": [@@ -27793,7 +32376,7 @@]},"data": {- "type": "string"+ "$ref": "#/$defs/ExportNameData"},"msg": {"type": "string"@@ -27850,11 +32433,11 @@},{"method": "POST",- "path": "/api/block/getTailChildBlocks",- "handler": "getTailChildBlocks",+ "path": "/api/export/exportDocx",+ "handler": "exportDocx","body": "json","request": {- "$ref": "#/$defs/TailChildBlocksRequestInput"+ "$ref": "#/$defs/ExportDocxRequestInput"},"response": {"anyOf": [@@ -27868,17 +32451,7 @@]},"data": {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/ChildBlock"- },- {- "type": "null"- }- ]- }+ "$ref": "#/$defs/ExportPathData"},"msg": {"type": "string"@@ -27897,7 +32470,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -27935,11 +32509,11 @@},{"method": "POST",- "path": "/api/block/getTreeStat",- "handler": "getTreeStat",+ "path": "/api/export/exportEPUB",+ "handler": "exportEPUB","body": "json","request": {- "$ref": "#/$defs/TreeStatRequestInput"+ "$ref": "#/$defs/ExportIDRequestInput"},"response": {"anyOf": [@@ -27953,7 +32527,7 @@]},"data": {- "$ref": "#/$defs/TreeStatData"+ "$ref": "#/$defs/ExportNamedZipData"},"msg": {"type": "string"@@ -28010,11 +32584,11 @@},{"method": "POST",- "path": "/api/block/getUnfoldedParentID",- "handler": "getUnfoldedParentID",+ "path": "/api/export/exportHTML",+ "handler": "exportHTML","body": "json","request": {- "$ref": "#/$defs/BlockQueryRequestInput"+ "$ref": "#/$defs/ExportHTMLRequestInput"},"response": {"anyOf": [@@ -28028,7 +32602,7 @@]},"data": {- "$ref": "#/$defs/UnfoldedParentData"+ "$ref": "#/$defs/ExportHTMLData"},"msg": {"type": "string"@@ -28085,11 +32659,11 @@},{"method": "POST",- "path": "/api/block/insertBlock",- "handler": "insertBlock",+ "path": "/api/export/exportMd",+ "handler": "exportMd","body": "json","request": {- "$ref": "#/$defs/InsertBlockRequestInput"+ "$ref": "#/$defs/ExportMarkdownRequestInput"},"response": {"anyOf": [@@ -28103,24 +32677,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/ExportNamedZipData"},"msg": {"type": "string"@@ -28177,11 +32734,11 @@},{"method": "POST",- "path": "/api/block/moveBlock",- "handler": "moveBlock",+ "path": "/api/export/exportMdContent",+ "handler": "exportMdContent","body": "json","request": {- "$ref": "#/$defs/MoveBlockRequestInput"+ "$ref": "#/$defs/ExportMarkdownContentRequestInput"},"response": {"anyOf": [@@ -28195,7 +32752,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/ExportMarkdownContentData"},"msg": {"type": "string"@@ -28252,11 +32809,11 @@},{"method": "POST",- "path": "/api/block/moveOutlineHeading",- "handler": "moveOutlineHeading",+ "path": "/api/export/exportMdHTML",+ "handler": "exportMdHTML","body": "json","request": {- "$ref": "#/$defs/MoveBlockRequestInput"+ "$ref": "#/$defs/ExportMarkdownHTMLRequestInput"},"response": {"anyOf": [@@ -28270,24 +32827,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/ExportHTMLData"},"msg": {"type": "string"@@ -28344,11 +32884,11 @@},{"method": "POST",- "path": "/api/block/prependBlock",- "handler": "prependBlock",+ "path": "/api/export/exportMds",+ "handler": "exportMds","body": "json","request": {- "$ref": "#/$defs/PrependBlockRequestInput"+ "$ref": "#/$defs/ExportDocumentsMarkdownRequestInput"},"response": {"anyOf": [@@ -28362,24 +32902,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/ExportNamedZipData"},"msg": {"type": "string"@@ -28436,11 +32959,11 @@},{"method": "POST",- "path": "/api/block/prependDailyNoteBlock",- "handler": "prependDailyNoteBlock",+ "path": "/api/export/exportMediaWiki",+ "handler": "exportMediaWiki","body": "json","request": {- "$ref": "#/$defs/DailyNoteBlockRequestInput"+ "$ref": "#/$defs/ExportIDRequestInput"},"response": {"anyOf": [@@ -28454,24 +32977,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/ExportNamedZipData"},"msg": {"type": "string"@@ -28528,11 +33034,11 @@},{"method": "POST",- "path": "/api/block/setBlockReminder",- "handler": "setBlockReminder",+ "path": "/api/export/exportNotebookMd",+ "handler": "exportNotebookMd","body": "json","request": {- "$ref": "#/$defs/BlockReminderRequestInput"+ "$ref": "#/$defs/ExportNotebookMarkdownRequestInput"},"response": {"anyOf": [@@ -28546,7 +33052,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/ExportNamedZipData"},"msg": {"type": "string"@@ -28603,11 +33109,11 @@},{"method": "POST",- "path": "/api/block/swapBlockRef",- "handler": "swapBlockRef",+ "path": "/api/export/exportNotebookSY",+ "handler": "exportNotebookSY","body": "json","request": {- "$ref": "#/$defs/SwapBlockRefRequestInput"+ "$ref": "#/$defs/ExportIDRequestInput"},"response": {"anyOf": [@@ -28621,7 +33127,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/ExportZipData"},"msg": {"type": "string"@@ -28678,11 +33184,11 @@},{"method": "POST",- "path": "/api/block/transferBlockRef",- "handler": "transferBlockRef",+ "path": "/api/export/exportNotebooksMd",+ "handler": "exportNotebooksMd","body": "json","request": {- "$ref": "#/$defs/TransferBlockRefRequestInput"+ "$ref": "#/$defs/ExportNotebooksMarkdownRequestInput"},"response": {"anyOf": [@@ -28696,7 +33202,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/ExportNamedZipData"},"msg": {"type": "string"@@ -28753,11 +33259,11 @@},{"method": "POST",- "path": "/api/block/unfoldBlock",- "handler": "unfoldBlock",+ "path": "/api/export/exportNotebooksSY",+ "handler": "exportNotebooksSY","body": "json","request": {- "$ref": "#/$defs/BlockIDRequestInput"+ "$ref": "#/$defs/ExportNotebooksRequestInput"},"response": {"anyOf": [@@ -28771,7 +33277,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/ExportZipData"},"msg": {"type": "string"@@ -28828,11 +33334,11 @@},{"method": "POST",- "path": "/api/block/updateBlock",- "handler": "updateBlock",+ "path": "/api/export/exportODT",+ "handler": "exportODT","body": "json","request": {- "$ref": "#/$defs/UpdateBlockRequestInput"+ "$ref": "#/$defs/ExportIDRequestInput"},"response": {"anyOf": [@@ -28846,24 +33352,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/ExportNamedZipData"},"msg": {"type": "string"@@ -28920,11 +33409,11 @@},{"method": "POST",- "path": "/api/block/updateTaskListItemMarker",- "handler": "updateTaskListItemMarker",+ "path": "/api/export/exportOPML",+ "handler": "exportOPML","body": "json","request": {- "$ref": "#/$defs/TaskListMarkerRequestInput"+ "$ref": "#/$defs/ExportIDRequestInput"},"response": {"anyOf": [@@ -28938,24 +33427,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/ExportNamedZipData"},"msg": {"type": "string"@@ -29012,11 +33484,11 @@},{"method": "POST",- "path": "/api/bookmark/getBookmark",- "handler": "getBookmark",- "body": "none",+ "path": "/api/export/exportOrgMode",+ "handler": "exportOrgMode",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/ExportIDRequestInput"},"response": {"anyOf": [@@ -29030,24 +33502,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/Bookmark"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/ExportNamedZipData"},"msg": {"type": "string"@@ -29104,11 +33559,11 @@},{"method": "POST",- "path": "/api/bookmark/removeBookmark",- "handler": "removeBookmark",+ "path": "/api/export/exportPreviewHTML",+ "handler": "exportPreviewHTML","body": "json","request": {- "$ref": "#/$defs/RemoveBookmarkRequestInput"+ "$ref": "#/$defs/ExportPreviewHTMLRequestInput"},"response": {"anyOf": [@@ -29122,7 +33577,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/ExportPreviewHTMLData"},"msg": {"type": "string"@@ -29179,11 +33634,11 @@},{"method": "POST",- "path": "/api/bookmark/renameBookmark",- "handler": "renameBookmark",+ "path": "/api/export/exportRTF",+ "handler": "exportRTF","body": "json","request": {- "$ref": "#/$defs/RenameBookmarkRequestInput"+ "$ref": "#/$defs/ExportIDRequestInput"},"response": {"anyOf": [@@ -29197,7 +33652,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/ExportNamedZipData"},"msg": {"type": "string"@@ -29254,11 +33709,11 @@},{"method": "POST",- "path": "/api/broadcast/getChannelInfo",- "handler": "getChannelInfo",+ "path": "/api/export/exportReStructuredText",+ "handler": "exportReStructuredText","body": "json","request": {- "$ref": "#/$defs/BroadcastChannelRequestInput"+ "$ref": "#/$defs/ExportIDRequestInput"},"response": {"anyOf": [@@ -29272,7 +33727,7 @@]},"data": {- "$ref": "#/$defs/BroadcastChannelData"+ "$ref": "#/$defs/ExportNamedZipData"},"msg": {"type": "string"@@ -29329,11 +33784,11 @@},{"method": "POST",- "path": "/api/broadcast/getChannels",- "handler": "getChannels",- "body": "none",+ "path": "/api/export/exportResources",+ "handler": "exportResources",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/ExportResourcesRequestInput"},"response": {"anyOf": [@@ -29347,7 +33802,7 @@]},"data": {- "$ref": "#/$defs/BroadcastChannelsData"+ "$ref": "#/$defs/ExportPathData"},"msg": {"type": "string"@@ -29366,7 +33821,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -29385,6 +33841,9 @@},{"type": "null"+ },+ {+ "type": "string"}]},@@ -29404,11 +33863,11 @@},{"method": "POST",- "path": "/api/broadcast/postMessage",- "handler": "postMessage",+ "path": "/api/export/exportSY",+ "handler": "exportSY","body": "json","request": {- "$ref": "#/$defs/BroadcastMessageRequestInput"+ "$ref": "#/$defs/ExportIDRequestInput"},"response": {"anyOf": [@@ -29422,7 +33881,7 @@]},"data": {- "$ref": "#/$defs/BroadcastChannelData"+ "$ref": "#/$defs/ExportZipData"},"msg": {"type": "string"@@ -29441,8 +33900,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -29480,25 +33938,11 @@},{"method": "POST",- "path": "/api/broadcast/publish",- "handler": "broadcastPublish",- "body": "multipart",+ "path": "/api/export/exportSYs",+ "handler": "exportSYs",+ "body": "json","request": {- "type": "object",- "additionalProperties": {- "type": "array",- "items": {- "anyOf": [- {- "type": "string"- },- {- "type": "string",- "format": "binary"- }- ]- }- }+ "$ref": "#/$defs/ExportIDsRequestInput"},"response": {"anyOf": [@@ -29512,7 +33956,7 @@]},"data": {- "$ref": "#/$defs/BroadcastPublishData"+ "$ref": "#/$defs/ExportZipData"},"msg": {"type": "string"@@ -29531,8 +33975,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -29570,11 +34013,11 @@},{"method": "POST",- "path": "/api/clipboard/cleanupRichText",- "handler": "cleanupRichText",+ "path": "/api/export/exportTempContent",+ "handler": "exportTempContent","body": "json","request": {- "$ref": "#/$defs/CleanupRichTextRequestInput"+ "$ref": "#/$defs/ExportTempContentRequestInput"},"response": {"anyOf": [@@ -29588,7 +34031,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/ExportURLData"},"msg": {"type": "string"@@ -29607,7 +34050,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -29645,11 +34089,11 @@},{"method": "POST",- "path": "/api/clipboard/prepareRichText",- "handler": "prepareRichText",+ "path": "/api/export/exportTextile",+ "handler": "exportTextile","body": "json","request": {- "$ref": "#/$defs/PrepareRichTextRequestInput"+ "$ref": "#/$defs/ExportIDRequestInput"},"response": {"anyOf": [@@ -29663,14 +34107,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/RichClipboardPrepared"- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/ExportNamedZipData"},"msg": {"type": "string"@@ -29727,11 +34164,11 @@},{"method": "POST",- "path": "/api/clipboard/readFilePaths",- "handler": "readFilePaths",- "body": "none",+ "path": "/api/export/preview",+ "handler": "exportPreview",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/ExportIDRequestInput"},"response": {"anyOf": [@@ -29745,10 +34182,7 @@]},"data": {- "type": "array",- "items": {- "$ref": "#/$defs/ClipboardFile"- }+ "$ref": "#/$defs/ExportPreviewData"},"msg": {"type": "string"@@ -29805,11 +34239,11 @@},{"method": "POST",- "path": "/api/clipboard/writeFilePath",- "handler": "writeFilePath",+ "path": "/api/export/processPDF",+ "handler": "processPDF","body": "json","request": {- "$ref": "#/$defs/ClipboardPathRequestInput"+ "$ref": "#/$defs/ProcessPDFRequestInput"},"response": {"anyOf": [@@ -29880,11 +34314,11 @@},{"method": "POST",- "path": "/api/cloud/getCloudSpace",- "handler": "getCloudSpace",- "body": "none",+ "path": "/api/file/copyFile",+ "handler": "copyFile",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/CopyFileRequestInput"},"response": {"anyOf": [@@ -29898,7 +34332,7 @@]},"data": {- "$ref": "#/$defs/CloudSpaceData"+ "type": "null"},"msg": {"type": "string"@@ -29918,7 +34352,7 @@"type": "integer","enum": [-1,- 1+ -2]},"data": {@@ -29956,36 +34390,17 @@},{"method": "POST",- "path": "/api/cloud/setCloudReminder",- "handler": "setCloudReminder",+ "path": "/api/file/getFile",+ "handler": "getFile","body": "json","request": {- "$ref": "#/$defs/CloudReminderRequestInput"+ "$ref": "#/$defs/FilePathRequestInput"},"response": {"anyOf": [- {- "type": "object",- "properties": {- "code": {- "type": "integer",- "enum": [- 0- ]- },- "data": {- "type": "null"- },- "msg": {- "type": "string"- }- },- "required": [- "code",- "msg",- "data"- ],- "additionalProperties": false+ {+ "type": "string",+ "format": "binary"},{"type": "object",@@ -29993,7 +34408,13 @@"code": {"type": "integer","enum": [- -1+ -1,+ -3,+ 403,+ 404,+ 409,+ 500,+ 503]},"data": {@@ -30027,15 +34448,17 @@"additionalProperties": true}]- }+ },+ "output": "binary",+ "errorStatus": 202},{"method": "POST",- "path": "/api/convert/pandoc",- "handler": "pandoc",+ "path": "/api/file/getUniqueFilename",+ "handler": "getUniqueFilename","body": "json","request": {- "$ref": "#/$defs/PandocRequestInput"+ "$ref": "#/$defs/FilePathRequestInput"},"response": {"anyOf": [@@ -30049,7 +34472,7 @@]},"data": {- "$ref": "#/$defs/PandocData"+ "$ref": "#/$defs/FilePathData"},"msg": {"type": "string"@@ -30068,7 +34491,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ -3]},"data": {@@ -30106,11 +34530,11 @@},{"method": "POST",- "path": "/api/export/copyExportFile",- "handler": "copyExportFile",+ "path": "/api/file/globalCopyFiles",+ "handler": "globalCopyFiles","body": "json","request": {- "$ref": "#/$defs/CopyExportFileRequestInput"+ "$ref": "#/$defs/CopyFilesRequestInput"},"response": {"anyOf": [@@ -30144,7 +34568,9 @@"type": "integer","enum": [-1,- -2+ -2,+ -3,+ 403]},"data": {@@ -30182,11 +34608,11 @@},{"method": "POST",- "path": "/api/export/export2Liandi",- "handler": "export2Liandi",- "body": "json",+ "path": "/api/file/putFile",+ "handler": "putFile",+ "body": "form","request": {- "$ref": "#/$defs/ExportIDRequestInput"+ "$ref": "#/$defs/PutFileRequestInput"},"response": {"anyOf": [@@ -30219,7 +34645,11 @@"code": {"type": "integer","enum": [- -1+ -1,+ -3,+ 400,+ 403,+ 500]},"data": {@@ -30257,11 +34687,11 @@},{"method": "POST",- "path": "/api/export/exportAsFile",- "handler": "exportAsFile",- "body": "multipart",+ "path": "/api/file/readDir",+ "handler": "readDir",+ "body": "json","request": {- "$ref": "#/$defs/ExportAsFileRequestInput"+ "$ref": "#/$defs/ReadDirectoryRequestInput"},"response": {"anyOf": [@@ -30275,7 +34705,10 @@]},"data": {- "$ref": "#/$defs/ExportFileData"+ "type": "array",+ "items": {+ "$ref": "#/$defs/DirectoryEntry"+ }},"msg": {"type": "string"@@ -30294,7 +34727,12 @@"code": {"type": "integer","enum": [- -1+ -1,+ -3,+ 403,+ 404,+ 409,+ 500]},"data": {@@ -30332,11 +34770,11 @@},{"method": "POST",- "path": "/api/export/exportAsciiDoc",- "handler": "exportAsciiDoc",+ "path": "/api/file/removeFile",+ "handler": "removeFile","body": "json","request": {- "$ref": "#/$defs/ExportIDRequestInput"+ "$ref": "#/$defs/RemoveFileRequestInput"},"response": {"anyOf": [@@ -30350,7 +34788,7 @@]},"data": {- "$ref": "#/$defs/ExportNamedZipData"+ "type": "null"},"msg": {"type": "string"@@ -30369,7 +34807,11 @@"code": {"type": "integer","enum": [- -1+ -1,+ -3,+ 403,+ 404,+ 500]},"data": {@@ -30407,11 +34849,11 @@},{"method": "POST",- "path": "/api/export/exportAttributeView",- "handler": "exportAttributeView",+ "path": "/api/file/renameFile",+ "handler": "renameFile","body": "json","request": {- "$ref": "#/$defs/ExportAttributeViewRequestInput"+ "$ref": "#/$defs/RenameFileRequestInput"},"response": {"anyOf": [@@ -30425,7 +34867,7 @@]},"data": {- "$ref": "#/$defs/ExportZipData"+ "type": "null"},"msg": {"type": "string"@@ -30445,7 +34887,11 @@"type": "integer","enum": [-1,- 1+ -3,+ 403,+ 404,+ 409,+ 500]},"data": {@@ -30483,11 +34929,11 @@},{"method": "POST",- "path": "/api/export/exportBrowserHTML",- "handler": "exportBrowserHTML",+ "path": "/api/file/workspaceCopyFiles",+ "handler": "workspaceCopyFiles","body": "json","request": {- "$ref": "#/$defs/ExportBrowserHTMLRequestInput"+ "$ref": "#/$defs/CopyFilesRequestInput"},"response": {"anyOf": [@@ -30501,7 +34947,7 @@]},"data": {- "$ref": "#/$defs/ExportZipData"+ "type": "null"},"msg": {"type": "string"@@ -30520,7 +34966,10 @@"code": {"type": "integer","enum": [- -1+ -1,+ -2,+ -3,+ 403]},"data": {@@ -30558,11 +35007,11 @@},{"method": "POST",- "path": "/api/export/exportCodeBlock",- "handler": "exportCodeBlock",+ "path": "/api/filetree/authFilePublishAccess",+ "handler": "authFilePublishAccess","body": "json","request": {- "$ref": "#/$defs/ExportIDRequestInput"+ "$ref": "#/$defs/FileTreeAuthPublishRequestInput"},"response": {"anyOf": [@@ -30576,7 +35025,7 @@]},"data": {- "$ref": "#/$defs/ExportPathData"+ "type": "null"},"msg": {"type": "string"@@ -30595,8 +35044,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -30630,15 +35078,18 @@"additionalProperties": true}]- }+ },+ "additionalErrorStatuses": [+ 429+ ]},{"method": "POST",- "path": "/api/export/exportData",- "handler": "exportData",- "body": "none",+ "path": "/api/filetree/changeSort",+ "handler": "changeSort",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/FileTreeChangeSortRequestInput"},"response": {"anyOf": [@@ -30652,7 +35103,7 @@]},"data": {- "$ref": "#/$defs/ExportZipData"+ "type": "null"},"msg": {"type": "string"@@ -30671,8 +35122,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -30710,11 +35160,11 @@},{"method": "POST",- "path": "/api/export/exportDataInFolder",- "handler": "exportDataInFolder",+ "path": "/api/filetree/createDailyNote",+ "handler": "createDailyNote","body": "json","request": {- "$ref": "#/$defs/ExportFolderRequestInput"+ "$ref": "#/$defs/FileTreeDailyNoteRequestInput"},"response": {"anyOf": [@@ -30728,7 +35178,7 @@]},"data": {- "$ref": "#/$defs/ExportNameData"+ "$ref": "#/$defs/FileTreeCreateData"},"msg": {"type": "string"@@ -30747,7 +35197,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -30785,11 +35236,11 @@},{"method": "POST",- "path": "/api/export/exportDocx",- "handler": "exportDocx",+ "path": "/api/filetree/createDoc",+ "handler": "createDoc","body": "json","request": {- "$ref": "#/$defs/ExportDocxRequestInput"+ "$ref": "#/$defs/FileTreeCreateRequestInput"},"response": {"anyOf": [@@ -30803,7 +35254,7 @@]},"data": {- "$ref": "#/$defs/ExportPathData"+ "$ref": "#/$defs/FileTreeCreateData"},"msg": {"type": "string"@@ -30822,8 +35273,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -30861,11 +35311,11 @@},{"method": "POST",- "path": "/api/export/exportEPUB",- "handler": "exportEPUB",+ "path": "/api/filetree/createDocWithMd",+ "handler": "createDocWithMd","body": "json","request": {- "$ref": "#/$defs/ExportIDRequestInput"+ "$ref": "#/$defs/FileTreeCreateMarkdownRequestInput"},"response": {"anyOf": [@@ -30879,7 +35329,7 @@]},"data": {- "$ref": "#/$defs/ExportNamedZipData"+ "type": "string"},"msg": {"type": "string"@@ -30936,11 +35386,11 @@},{"method": "POST",- "path": "/api/export/exportHTML",- "handler": "exportHTML",+ "path": "/api/filetree/doc2Heading",+ "handler": "doc2Heading","body": "json","request": {- "$ref": "#/$defs/ExportHTMLRequestInput"+ "$ref": "#/$defs/FileTreeDocHeadingRequestInput"},"response": {"anyOf": [@@ -30954,7 +35404,7 @@]},"data": {- "$ref": "#/$defs/ExportHTMLData"+ "$ref": "#/$defs/FileTreeDocHeadingData"},"msg": {"type": "string"@@ -31011,11 +35461,11 @@},{"method": "POST",- "path": "/api/export/exportMd",- "handler": "exportMd",+ "path": "/api/filetree/duplicateDoc",+ "handler": "duplicateDoc","body": "json","request": {- "$ref": "#/$defs/ExportMarkdownRequestInput"+ "$ref": "#/$defs/FileTreeIDRequestInput"},"response": {"anyOf": [@@ -31029,7 +35479,7 @@]},"data": {- "$ref": "#/$defs/ExportNamedZipData"+ "$ref": "#/$defs/FileTreeDuplicateData"},"msg": {"type": "string"@@ -31086,11 +35536,11 @@},{"method": "POST",- "path": "/api/export/exportMdContent",- "handler": "exportMdContent",+ "path": "/api/filetree/getDoc",+ "handler": "getDoc","body": "json","request": {- "$ref": "#/$defs/ExportMarkdownContentRequestInput"+ "$ref": "#/$defs/FileTreeGetDocRequestInput"},"response": {"anyOf": [@@ -31104,7 +35554,7 @@]},"data": {- "$ref": "#/$defs/ExportMarkdownContentData"+ "$ref": "#/$defs/FileTreeGetDocData"},"msg": {"type": "string"@@ -31123,7 +35573,9 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1,+ 3]},"data": {@@ -31161,11 +35613,11 @@},{"method": "POST",- "path": "/api/export/exportMdHTML",- "handler": "exportMdHTML",+ "path": "/api/filetree/getDocCreateSavePath",+ "handler": "getDocCreateSavePath","body": "json","request": {- "$ref": "#/$defs/ExportMarkdownHTMLRequestInput"+ "$ref": "#/$defs/FileTreeNotebookRequestInput"},"response": {"anyOf": [@@ -31179,7 +35631,7 @@]},"data": {- "$ref": "#/$defs/ExportHTMLData"+ "$ref": "#/$defs/FileTreeCreateSavePathData"},"msg": {"type": "string"@@ -31236,11 +35688,11 @@},{"method": "POST",- "path": "/api/export/exportMds",- "handler": "exportMds",+ "path": "/api/filetree/getFullHPathByID",+ "handler": "getFullHPathByID","body": "json","request": {- "$ref": "#/$defs/ExportDocumentsMarkdownRequestInput"+ "$ref": "#/$defs/FileTreeOptionalIDRequestInput"},"response": {"anyOf": [@@ -31254,7 +35706,14 @@]},"data": {- "$ref": "#/$defs/ExportNamedZipData"+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -31311,11 +35770,11 @@},{"method": "POST",- "path": "/api/export/exportMediaWiki",- "handler": "exportMediaWiki",+ "path": "/api/filetree/getHPathByID",+ "handler": "getHPathByID","body": "json","request": {- "$ref": "#/$defs/ExportIDRequestInput"+ "$ref": "#/$defs/FileTreeIDRequestInput"},"response": {"anyOf": [@@ -31329,7 +35788,7 @@]},"data": {- "$ref": "#/$defs/ExportNamedZipData"+ "type": "string"},"msg": {"type": "string"@@ -31386,11 +35845,11 @@},{"method": "POST",- "path": "/api/export/exportNotebookMd",- "handler": "exportNotebookMd",+ "path": "/api/filetree/getHPathByPath",+ "handler": "getHPathByPath","body": "json","request": {- "$ref": "#/$defs/ExportNotebookMarkdownRequestInput"+ "$ref": "#/$defs/FileTreePathRequestInput"},"response": {"anyOf": [@@ -31404,7 +35863,7 @@]},"data": {- "$ref": "#/$defs/ExportNamedZipData"+ "type": "string"},"msg": {"type": "string"@@ -31461,11 +35920,11 @@},{"method": "POST",- "path": "/api/export/exportNotebookSY",- "handler": "exportNotebookSY",+ "path": "/api/filetree/getHPathsByPaths",+ "handler": "getHPathsByPaths","body": "json","request": {- "$ref": "#/$defs/ExportIDRequestInput"+ "$ref": "#/$defs/FileTreePathsRequestInput"},"response": {"anyOf": [@@ -31479,7 +35938,17 @@]},"data": {- "$ref": "#/$defs/ExportZipData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -31536,11 +36005,11 @@},{"method": "POST",- "path": "/api/export/exportNotebooksMd",- "handler": "exportNotebooksMd",+ "path": "/api/filetree/getIDsByHPath",+ "handler": "getIDsByHPath","body": "json","request": {- "$ref": "#/$defs/ExportNotebooksMarkdownRequestInput"+ "$ref": "#/$defs/FileTreeOptionalPathRequestInput"},"response": {"anyOf": [@@ -31554,7 +36023,17 @@]},"data": {- "$ref": "#/$defs/ExportNamedZipData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -31611,11 +36090,11 @@},{"method": "POST",- "path": "/api/export/exportNotebooksSY",- "handler": "exportNotebooksSY",+ "path": "/api/filetree/getPathByID",+ "handler": "getPathByID","body": "json","request": {- "$ref": "#/$defs/ExportNotebooksRequestInput"+ "$ref": "#/$defs/FileTreeTrimIDRequestInput"},"response": {"anyOf": [@@ -31629,7 +36108,7 @@]},"data": {- "$ref": "#/$defs/ExportZipData"+ "$ref": "#/$defs/FileTreeDocPathData"},"msg": {"type": "string"@@ -31686,11 +36165,11 @@},{"method": "POST",- "path": "/api/export/exportODT",- "handler": "exportODT",- "body": "json",+ "path": "/api/filetree/getPinnedDocs",+ "handler": "getPinnedDocs",+ "body": "none","request": {- "$ref": "#/$defs/ExportIDRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -31704,7 +36183,10 @@]},"data": {- "$ref": "#/$defs/ExportNamedZipData"+ "type": "array",+ "items": {+ "$ref": "#/$defs/PinnedDoc"+ }},"msg": {"type": "string"@@ -31761,11 +36243,11 @@},{"method": "POST",- "path": "/api/export/exportOPML",- "handler": "exportOPML",+ "path": "/api/filetree/getPublishAccess",+ "handler": "getPublishAccess","body": "json","request": {- "$ref": "#/$defs/ExportIDRequestInput"+ "$ref": "#/$defs/FileTreePublishIDsRequestInput"},"response": {"anyOf": [@@ -31779,7 +36261,7 @@]},"data": {- "$ref": "#/$defs/ExportNamedZipData"+ "$ref": "#/$defs/FileTreePublishData"},"msg": {"type": "string"@@ -31836,11 +36318,11 @@},{"method": "POST",- "path": "/api/export/exportOrgMode",- "handler": "exportOrgMode",+ "path": "/api/filetree/getRefCreateSavePath",+ "handler": "getRefCreateSavePath","body": "json","request": {- "$ref": "#/$defs/ExportIDRequestInput"+ "$ref": "#/$defs/FileTreeNotebookRequestInput"},"response": {"anyOf": [@@ -31854,7 +36336,7 @@]},"data": {- "$ref": "#/$defs/ExportNamedZipData"+ "$ref": "#/$defs/FileTreeSavePathData"},"msg": {"type": "string"@@ -31911,11 +36393,11 @@},{"method": "POST",- "path": "/api/export/exportPreviewHTML",- "handler": "exportPreviewHTML",+ "path": "/api/filetree/getShorthandSavePath",+ "handler": "getShorthandSavePath","body": "json","request": {- "$ref": "#/$defs/ExportPreviewHTMLRequestInput"+ "$ref": "#/$defs/FileTreeNotebookRequestInput"},"response": {"anyOf": [@@ -31929,7 +36411,7 @@]},"data": {- "$ref": "#/$defs/ExportPreviewHTMLData"+ "$ref": "#/$defs/FileTreeSavePathData"},"msg": {"type": "string"@@ -31986,11 +36468,11 @@},{"method": "POST",- "path": "/api/export/exportRTF",- "handler": "exportRTF",+ "path": "/api/filetree/heading2Doc",+ "handler": "heading2Doc","body": "json","request": {- "$ref": "#/$defs/ExportIDRequestInput"+ "$ref": "#/$defs/FileTreeHeadingDocRequestInput"},"response": {"anyOf": [@@ -32004,7 +36486,7 @@]},"data": {- "$ref": "#/$defs/ExportNamedZipData"+ "type": "null"},"msg": {"type": "string"@@ -32061,11 +36543,11 @@},{"method": "POST",- "path": "/api/export/exportReStructuredText",- "handler": "exportReStructuredText",+ "path": "/api/filetree/li2Doc",+ "handler": "li2Doc","body": "json","request": {- "$ref": "#/$defs/ExportIDRequestInput"+ "$ref": "#/$defs/FileTreeListItemDocRequestInput"},"response": {"anyOf": [@@ -32079,7 +36561,7 @@]},"data": {- "$ref": "#/$defs/ExportNamedZipData"+ "type": "null"},"msg": {"type": "string"@@ -32136,11 +36618,11 @@},{"method": "POST",- "path": "/api/export/exportResources",- "handler": "exportResources",+ "path": "/api/filetree/listDocTree",+ "handler": "listDocTree","body": "json","request": {- "$ref": "#/$defs/ExportResourcesRequestInput"+ "$ref": "#/$defs/FileTreePathRequestInput"},"response": {"anyOf": [@@ -32154,7 +36636,7 @@]},"data": {- "$ref": "#/$defs/ExportPathData"+ "$ref": "#/$defs/FileTreeDocTreeData"},"msg": {"type": "string"@@ -32173,8 +36655,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -32193,9 +36674,6 @@},{"type": "null"- },- {- "type": "string"}]},@@ -32215,11 +36693,11 @@},{"method": "POST",- "path": "/api/export/exportSY",- "handler": "exportSY",+ "path": "/api/filetree/listDocsByPath",+ "handler": "listDocsByPath","body": "json","request": {- "$ref": "#/$defs/ExportIDRequestInput"+ "$ref": "#/$defs/FileTreeListRequestInput"},"response": {"anyOf": [@@ -32233,7 +36711,7 @@]},"data": {- "$ref": "#/$defs/ExportZipData"+ "$ref": "#/$defs/FileTreeListData"},"msg": {"type": "string"@@ -32290,11 +36768,11 @@},{"method": "POST",- "path": "/api/export/exportSYs",- "handler": "exportSYs",+ "path": "/api/filetree/moveDocs",+ "handler": "moveDocs","body": "json","request": {- "$ref": "#/$defs/ExportIDsRequestInput"+ "$ref": "#/$defs/FileTreeMoveRequestInput"},"response": {"anyOf": [@@ -32308,7 +36786,7 @@]},"data": {- "$ref": "#/$defs/ExportZipData"+ "type": "null"},"msg": {"type": "string"@@ -32365,11 +36843,11 @@},{"method": "POST",- "path": "/api/export/exportTempContent",- "handler": "exportTempContent",+ "path": "/api/filetree/moveDocsByID",+ "handler": "moveDocsByID","body": "json","request": {- "$ref": "#/$defs/ExportTempContentRequestInput"+ "$ref": "#/$defs/FileTreeMoveIDsRequestInput"},"response": {"anyOf": [@@ -32383,7 +36861,7 @@]},"data": {- "$ref": "#/$defs/ExportURLData"+ "type": "null"},"msg": {"type": "string"@@ -32402,8 +36880,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -32441,11 +36918,11 @@},{"method": "POST",- "path": "/api/export/exportTextile",- "handler": "exportTextile",+ "path": "/api/filetree/moveLocalShorthands",+ "handler": "moveLocalShorthands","body": "json","request": {- "$ref": "#/$defs/ExportIDRequestInput"+ "$ref": "#/$defs/FileTreeNotebookRequestInput"},"response": {"anyOf": [@@ -32459,7 +36936,17 @@]},"data": {- "$ref": "#/$defs/ExportNamedZipData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -32516,11 +37003,11 @@},{"method": "POST",- "path": "/api/export/preview",- "handler": "exportPreview",+ "path": "/api/filetree/removeDoc",+ "handler": "removeDoc","body": "json","request": {- "$ref": "#/$defs/ExportIDRequestInput"+ "$ref": "#/$defs/FileTreePathRequestInput"},"response": {"anyOf": [@@ -32534,7 +37021,7 @@]},"data": {- "$ref": "#/$defs/ExportPreviewData"+ "type": "null"},"msg": {"type": "string"@@ -32591,11 +37078,11 @@},{"method": "POST",- "path": "/api/export/processPDF",- "handler": "processPDF",+ "path": "/api/filetree/removeDocByID",+ "handler": "removeDocByID","body": "json","request": {- "$ref": "#/$defs/ProcessPDFRequestInput"+ "$ref": "#/$defs/FileTreeTrimIDRequestInput"},"response": {"anyOf": [@@ -32666,11 +37153,11 @@},{"method": "POST",- "path": "/api/file/copyFile",- "handler": "copyFile",+ "path": "/api/filetree/removeDocs",+ "handler": "removeDocs","body": "json","request": {- "$ref": "#/$defs/CopyFileRequestInput"+ "$ref": "#/$defs/FileTreePathsRequestInput"},"response": {"anyOf": [@@ -32703,8 +37190,7 @@"code": {"type": "integer","enum": [- -1,- -2+ -1]},"data": {@@ -32742,17 +37228,36 @@},{"method": "POST",- "path": "/api/file/getFile",- "handler": "getFile",+ "path": "/api/filetree/removeIndexes",+ "handler": "removeIndexes","body": "json","request": {- "$ref": "#/$defs/FilePathRequestInput"+ "$ref": "#/$defs/FileTreePathsRequestInput"},"response": {"anyOf": [{- "type": "string",- "format": "binary"+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "type": "null"+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": false},{"type": "object",@@ -32760,13 +37265,7 @@"code": {"type": "integer","enum": [- -1,- -3,- 403,- 404,- 409,- 500,- 503+ -1]},"data": {@@ -32800,17 +37299,15 @@"additionalProperties": true}]- },- "output": "binary",- "errorStatus": 202+ }},{"method": "POST",- "path": "/api/file/getUniqueFilename",- "handler": "getUniqueFilename",+ "path": "/api/filetree/renameDoc",+ "handler": "renameDoc","body": "json","request": {- "$ref": "#/$defs/FilePathRequestInput"+ "$ref": "#/$defs/FileTreeRenameRequestInput"},"response": {"anyOf": [@@ -32824,7 +37321,7 @@]},"data": {- "$ref": "#/$defs/FilePathData"+ "type": "null"},"msg": {"type": "string"@@ -32843,8 +37340,7 @@"code": {"type": "integer","enum": [- -1,- -3+ -1]},"data": {@@ -32882,11 +37378,11 @@},{"method": "POST",- "path": "/api/file/globalCopyFiles",- "handler": "globalCopyFiles",+ "path": "/api/filetree/renameDocByID",+ "handler": "renameDocByID","body": "json","request": {- "$ref": "#/$defs/CopyFilesRequestInput"+ "$ref": "#/$defs/FileTreeRenameIDRequestInput"},"response": {"anyOf": [@@ -32919,10 +37415,7 @@"code": {"type": "integer","enum": [- -1,- -2,- -3,- 403+ -1]},"data": {@@ -32960,11 +37453,11 @@},{"method": "POST",- "path": "/api/file/putFile",- "handler": "putFile",- "body": "form",+ "path": "/api/filetree/reorderDocs",+ "handler": "reorderDocs",+ "body": "structJSON","request": {- "$ref": "#/$defs/PutFileRequestInput"+ "$ref": "#/$defs/FileTreeReorderRequestInput"},"response": {"anyOf": [@@ -32978,7 +37471,14 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/FileTreeReorderData"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -32997,11 +37497,7 @@"code": {"type": "integer","enum": [- -1,- -3,- 400,- 403,- 500+ -1]},"data": {@@ -33020,6 +37516,16 @@},{"type": "null"+ },+ {+ "anyOf": [+ {+ "$ref": "#/$defs/FileTreeReorderData"+ },+ {+ "type": "null"+ }+ ]}]},@@ -33039,11 +37545,11 @@},{"method": "POST",- "path": "/api/file/readDir",- "handler": "readDir",+ "path": "/api/filetree/searchDocs",+ "handler": "searchDocs","body": "json","request": {- "$ref": "#/$defs/ReadDirectoryRequestInput"+ "$ref": "#/$defs/FileTreeSearchRequestInput"},"response": {"anyOf": [@@ -33057,10 +37563,24 @@]},"data": {- "type": "array",- "items": {- "$ref": "#/$defs/DirectoryEntry"- }+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/FileTreeSearchDoc"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -33079,12 +37599,7 @@"code": {"type": "integer","enum": [- -1,- -3,- 403,- 404,- 409,- 500+ -1]},"data": {@@ -33122,11 +37637,11 @@},{"method": "POST",- "path": "/api/file/removeFile",- "handler": "removeFile",- "body": "json",+ "path": "/api/filetree/setDocSortMode",+ "handler": "setDocSortMode",+ "body": "structJSON","request": {- "$ref": "#/$defs/RemoveFileRequestInput"+ "$ref": "#/$defs/FileTreeSortModeRequestInput"},"response": {"anyOf": [@@ -33140,7 +37655,14 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/FileTreeSortModeData"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -33159,11 +37681,7 @@"code": {"type": "integer","enum": [- -1,- -3,- 403,- 404,- 500+ -1]},"data": {@@ -33182,6 +37700,16 @@},{"type": "null"+ },+ {+ "anyOf": [+ {+ "$ref": "#/$defs/FileTreeSortModeData"+ },+ {+ "type": "null"+ }+ ]}]},@@ -33201,11 +37729,11 @@},{"method": "POST",- "path": "/api/file/renameFile",- "handler": "renameFile",+ "path": "/api/filetree/setPublishAccess",+ "handler": "setPublishAccess","body": "json","request": {- "$ref": "#/$defs/RenameFileRequestInput"+ "$ref": "#/$defs/FileTreeSetPublishRequestInput"},"response": {"anyOf": [@@ -33238,12 +37766,7 @@"code": {"type": "integer","enum": [- -1,- -3,- 403,- 404,- 409,- 500+ -1]},"data": {@@ -33281,11 +37804,11 @@},{"method": "POST",- "path": "/api/file/workspaceCopyFiles",- "handler": "workspaceCopyFiles",- "body": "json",+ "path": "/api/filetree/setSort",+ "handler": "setSort",+ "body": "structJSON","request": {- "$ref": "#/$defs/CopyFilesRequestInput"+ "$ref": "#/$defs/FileTreeSetSortRequestInput"},"response": {"anyOf": [@@ -33299,7 +37822,14 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/FileTreeSetSortData"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -33318,10 +37848,7 @@"code": {"type": "integer","enum": [- -1,- -2,- -3,- 403+ -1]},"data": {@@ -33340,6 +37867,16 @@},{"type": "null"+ },+ {+ "anyOf": [+ {+ "$ref": "#/$defs/FileTreeSetSortData"+ },+ {+ "type": "null"+ }+ ]}]},@@ -33359,11 +37896,11 @@},{"method": "POST",- "path": "/api/filetree/getPinnedDocs",- "handler": "getPinnedDocs",- "body": "none",+ "path": "/api/filetree/updatePinnedDocs",+ "handler": "updatePinnedDocs",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/UpdatePinnedDocsRequestInput"},"response": {"anyOf": [@@ -33377,10 +37914,7 @@]},"data": {- "type": "array",- "items": {- "$ref": "#/$defs/PinnedDoc"- }+ "type": "null"},"msg": {"type": "string"@@ -33437,11 +37971,11 @@},{"method": "POST",- "path": "/api/filetree/updatePinnedDocs",- "handler": "updatePinnedDocs",+ "path": "/api/filetree/upsertIndexes",+ "handler": "upsertIndexes","body": "json","request": {- "$ref": "#/$defs/UpdatePinnedDocsRequestInput"+ "$ref": "#/$defs/FileTreePathsRequestInput"},"response": {"anyOf": [