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 settings API contracts https://github.com/siyuan-note/siyuan/issues/19378
Daniel6ed486697663
diff --git a/app/src/boot/globalEvent/commonHotkey.ts b/app/src/boot/globalEvent/commonHotkey.tsindex d9e6018af9..5075aca678 100644--- a/app/src/boot/globalEvent/commonHotkey.ts+++ b/app/src/boot/globalEvent/commonHotkey.ts@@ -1,3 +1,4 @@+import {keymapPayload} from "../../config/keymapPayload";import {mergeKeymapDefault} from "../../util/keymapBindings";import {Constants} from "../../constants";import {fetchPost} from "../../util/fetch";@@ -151,7 +152,7 @@ export const correctHotkey = (app: App) => {});/// #endiffetchPost("/api/setting/setKeymap", {- data: window.siyuan.config.keymap+ data: keymapPayload(window.siyuan.config.keymap)}, () => {/// #if !BROWSERsendGlobalShortcut(app);diff --git a/app/src/config/bazaar.ts b/app/src/config/bazaar.tsindex 5a0f3fcad5..7a843eff12 100644--- a/app/src/config/bazaar.ts+++ b/app/src/config/bazaar.ts@@ -1,3 +1,4 @@+import {normalizeBodyGradient} from "../util/bodyGradient";import {showMessage} from "../dialog/message";import {fetchPost} from "../util/fetch";import {ContractFormData} from "../util/contractFormData";@@ -1447,7 +1448,7 @@ type="checkbox">callback();return;}- window.siyuan.config.appearance = response.data;+ window.siyuan.config.appearance = {...response.data, lang: appearance.lang, bodyGradient: normalizeBodyGradient(response.data.bodyGradient)};callback();});},@@ -1640,7 +1641,6 @@ type="checkbox">fetchPost("/api/setting/setBazaar", {...window.siyuan.config.bazaar,trust: true,- app: Constants.SIYUAN_APPID,}, (response) => {window.siyuan.config.bazaar = response.data;if (!bazaar._isMountCurrent(mount)) {diff --git a/app/src/config/keymapPayload.ts b/app/src/config/keymapPayload.tsnew file mode 100644index 0000000000..166e0351b0--- /dev/null+++ b/app/src/config/keymapPayload.ts@@ -0,0 +1,29 @@+import type {JSONValue} from "../types/api";++// 保留快捷键扩展字段,并将声明式配置转换为接口允许的 JSON 对象。+export const keymapPayload = (keymap: Config.IKeymap): {[key: string]: JSONValue} => {+ const keys = (items: Config.IKeys): {[key: string]: JSONValue} => {+ const result: {[key: string]: JSONValue} = {};+ for (const [name, item] of Object.entries(items)) {+ result[name] = {...item};+ }+ return result;+ };+ const plugin: {[key: string]: JSONValue} = {};+ for (const [name, items] of Object.entries(keymap.plugin)) {+ plugin[name] = keys(items);+ }+ return {+ ...keymap,+ editor: {+ ...keymap.editor,+ general: keys(keymap.editor.general),+ heading: keys(keymap.editor.heading),+ insert: keys(keymap.editor.insert),+ list: keys(keymap.editor.list),+ table: keys(keymap.editor.table),+ },+ general: keys(keymap.general),+ plugin,+ };+};diff --git a/app/src/config/tabs/accountUi.ts b/app/src/config/tabs/accountUi.tsindex 77734a9bb1..f2638717aa 100644--- a/app/src/config/tabs/accountUi.ts+++ b/app/src/config/tabs/accountUi.ts@@ -441,10 +441,10 @@ const bindAccountAuthForm = (login2Btn.disabled = false;};- const completeLogin = (response: IWebSocketData) => {+ const completeLogin = (loginToken?: string) => {if (mode === "login") {return fetchPost("/api/setting/getCloudUser", {- token: response.data.token,+ token: loginToken,}, (userResponse) => {const action = resolveCloudUserRefresh(userResponse.code, userResponse.data, userNameInput.value.trim());if (action.apply) {@@ -498,7 +498,7 @@ const bindAccountAuthForm = (return;}completing = true;- completeLogin(loginResponse).finally(finishSubmitting);+ completeLogin(loginResponse.data && "token" in loginResponse.data ? loginResponse.data.token : undefined).finally(finishSubmitting);}).finally(() => {if (!completing) {finishSubmitting();@@ -522,7 +522,9 @@ const bindAccountAuthForm = (return;}completing = true;- completeLogin(faResponse).finally(finishSubmitting);+ const loginToken = faResponse.data && "token" in faResponse.data && typeof faResponse.data.token === "string" ?+ faResponse.data.token : undefined;+ completeLogin(loginToken).finally(finishSubmitting);}).finally(() => {if (!completing) {finishSubmitting();diff --git a/app/src/config/tabs/appearanceTab.ts b/app/src/config/tabs/appearanceTab.tsindex 4e8a1be523..aa3e9babdc 100644--- a/app/src/config/tabs/appearanceTab.ts+++ b/app/src/config/tabs/appearanceTab.ts@@ -1,3 +1,5 @@+import {normalizeAssetOpenConfig} from "../../editor/assetOpen";+import {normalizeBodyGradient} from "../../util/bodyGradient";/// #if !BROWSERimport * as path from "path";import {useShell} from "../../util/pathName";@@ -314,29 +316,36 @@ const mountAppearanceFontFamily = (root: HTMLElement, configKey: FontFamiliesCon};const persistFonts = (fonts: IFontItem[]) => {const globalFont = configKey === "globalFontFamilies";- fetchPost(- globalFont ? "/api/setting/setAppearance" : "/api/setting/setEditor",- {- ...(globalFont ? window.siyuan.config.appearance : window.siyuan.config.editor),- [configKey]: fonts.map((font) => ({- family: font.family,- weight: font.weight,- displayName: font.displayName,- })),- },- (response) => {- if (globalFont) {- appearanceConfigApi.apply(response.data);- } else {- editorConfigApi.apply(response.data);- }- const config = getFontConfig();- selectedFonts = getConfiguredFonts(config, configKey);- renderSelectedFonts();- refreshMountedFontConfigs(config, fontConfigElement);- refreshOpenMenu?.();- }- );+ const configuredFonts = fonts.map((font) => ({+ family: font.family,+ weight: font.weight,+ displayName: font.displayName,+ }));+ const refreshFonts = () => {+ const config = getFontConfig();+ selectedFonts = getConfiguredFonts(config, configKey);+ renderSelectedFonts();+ refreshMountedFontConfigs(config, fontConfigElement);+ refreshOpenMenu?.();+ };+ if (globalFont) {+ const appearance = {+ ...window.siyuan.config.appearance,+ globalFontFamilies: configuredFonts,+ };+ fetchPost("/api/setting/setAppearance", appearance, response => {+ appearanceConfigApi.apply({...response.data, lang: appearance.lang, bodyGradient: normalizeBodyGradient(response.data.bodyGradient)});+ refreshFonts();+ });+ } else {+ fetchPost("/api/setting/setEditor", {+ ...window.siyuan.config.editor,+ [configKey]: configuredFonts,+ }, response => {+ editorConfigApi.apply({...response.data, assetOpen: normalizeAssetOpenConfig(response.data.assetOpen)});+ refreshFonts();+ });+ }};bindSelectedFontList(selectedListElement, () => selectedFonts, persistFonts, (chip, index, event) => {openFontWeightMenu(chip, index, event);diff --git a/app/src/config/tabs/cloudUser.test.ts b/app/src/config/tabs/cloudUser.test.tsindex 5269e996bd..f7fe1ad6f7 100644--- a/app/src/config/tabs/cloudUser.test.ts+++ b/app/src/config/tabs/cloudUser.test.ts@@ -29,6 +29,14 @@ test("cloud user refresh preserves state after temporary failures", () => {});});+test("message duration payloads do not replace the cloud user", () => {+ assert.deepEqual(resolveCloudUserRefresh(1, {closeTimeout: 5000}, "alice"), {+ apply: false,+ user: null,+ userName: "",+ });+});+test("invalid cloud users are cleared and retain the previous login name", () => {assert.deepEqual(resolveCloudUserRefresh(255, null, "alice"), {apply: true,diff --git a/app/src/config/tabs/cloudUser.ts b/app/src/config/tabs/cloudUser.tsindex 6babc8bbe7..02836b9338 100644--- a/app/src/config/tabs/cloudUser.ts+++ b/app/src/config/tabs/cloudUser.ts@@ -17,14 +17,15 @@ export const setCloudUser = (user: TCloudUser | null, userName = "") => {export const resolveCloudUserRefresh = (code: number,- user: TCloudUser | null,+ user: TCloudUser | {closeTimeout: number} | null,previousUserName: string,): ICloudUserRefreshAction => {+ const cloudUser = user && "userName" in user ? user : null;if (code === 0) {- return {apply: true, user, userName: ""};+ return {apply: true, user: cloudUser, userName: ""};}if (code === 255) {return {apply: true, user: null, userName: previousUserName};}- return {apply: false, user, userName: ""};+ return {apply: false, user: cloudUser, userName: ""};};diff --git a/app/src/config/tabs/keymapUi.ts b/app/src/config/tabs/keymapUi.tsindex 719cc61f10..9cbb9870c9 100644--- a/app/src/config/tabs/keymapUi.ts+++ b/app/src/config/tabs/keymapUi.ts@@ -1,3 +1,4 @@+import {keymapPayload} from "../keymapPayload";import {isMac, updateHotkeyTip} from "../../protyle/util/compatibility";import {matchHotKey} from "../../protyle/util/hotKey";import {Constants} from "../../constants";@@ -66,7 +67,7 @@ const bindKeymapToolbar = (root: HTMLElement) => {keymapSaveQueue = keymapSaveQueue.then(async () => {try {const data = JSON.parse(JSON.stringify(Constants.SIYUAN_KEYMAP));- const response = await fetchSyncPost("/api/setting/setKeymap", {data});+ const response = await fetchSyncPost("/api/setting/setKeymap", {data: keymapPayload(data)});if (response.code !== 0) {throw new Error(response.msg);}@@ -726,7 +727,7 @@ const saveKeymapRow = (root: HTMLElement, row: HTMLElement, keys: string[], chanconst revision = ++keymapRevision;keymapSaveQueue = keymapSaveQueue.then(async () => {try {- const response = await fetchSyncPost("/api/setting/setKeymap", {data});+ const response = await fetchSyncPost("/api/setting/setKeymap", {data: keymapPayload(data)});if (response.code !== 0) {throw new Error(response.msg);}diff --git a/app/src/editor/assetOpen.ts b/app/src/editor/assetOpen.tsindex e3729ab35c..c015346dc7 100644--- a/app/src/editor/assetOpen.ts+++ b/app/src/editor/assetOpen.ts@@ -20,7 +20,7 @@ export type TAssetOpenGesture = keyof Config.IAssetOpen;const ASSET_OPEN_GESTURES: TAssetOpenGesture[] = ["click", "ctrlClick", "altClick", "shiftClick"];-export const normalizeAssetOpenConfig = (config?: Config.IAssetOpen): Config.IAssetOpen => ({+export const normalizeAssetOpenConfig = (config?: {[key in keyof Config.IAssetOpen]?: string}): Config.IAssetOpen => ({click: normalizeAssetOpenAction(config?.click, DEFAULT_ASSET_OPEN.click),ctrlClick: normalizeAssetOpenAction(config?.ctrlClick, DEFAULT_ASSET_OPEN.ctrlClick),altClick: normalizeAssetOpenAction(config?.altClick, DEFAULT_ASSET_OPEN.altClick),@@ -28,9 +28,9 @@ export const normalizeAssetOpenConfig = (config?: Config.IAssetOpen): Config.IAs});const normalizeAssetOpenAction = (- action: Config.TAssetOpenAction | undefined,+ action: string | undefined,fallback: Config.TAssetOpenAction,-) => ASSET_OPEN_ACTIONS.includes(action) ? action : fallback;+) => ASSET_OPEN_ACTIONS.find(value => value === action) || fallback;export const resolveAssetOpenGesture = (options: {altKey?: boolean,diff --git a/app/src/index.ts b/app/src/index.tsindex 6aa2a36fa8..abcfeee0b7 100644--- a/app/src/index.ts+++ b/app/src/index.ts@@ -326,7 +326,7 @@ export class App {window.siyuan.menus = new Menus(this);bootSync();fetchPost("/api/setting/getCloudUser", {}, async userResponse => {- window.siyuan.user = userResponse.data;+ window.siyuan.user = userResponse.data && "userId" in userResponse.data ? userResponse.data : null;await ensureOnboarding();await setNoteBook();await onGetConfig(response.data.start, this);diff --git a/app/src/layout/dock/BacklinkContent.ts b/app/src/layout/dock/BacklinkContent.tsindex 82e98a9f89..1d597d9323 100644--- a/app/src/layout/dock/BacklinkContent.ts+++ b/app/src/layout/dock/BacklinkContent.ts@@ -1,3 +1,4 @@+import {normalizeAssetOpenConfig} from "../../editor/assetOpen";import {bindPanelSearch} from "./panelSearch";import type {Tab} from "../Tab";import {Model} from "../Model";@@ -777,7 +778,7 @@ export class BacklinkContent extends Model {window.siyuan.config.editor.backmentionSort = sortValue;}fetchPost("/api/setting/setEditor", window.siyuan.config.editor, (response) => {- window.siyuan.config.editor = response.data;+ window.siyuan.config.editor = {...response.data, assetOpen: normalizeAssetOpenConfig(response.data.assetOpen)};});this.searchBacklinks();};diff --git a/app/src/layout/dock/Files.ts b/app/src/layout/dock/Files.tsindex 2013c11f96..0595341b6b 100644--- a/app/src/layout/dock/Files.ts+++ b/app/src/layout/dock/Files.ts@@ -2196,7 +2196,10 @@ aria-label="${ariaLabel}">${getDocDisplayName(item.name, item.titleEmpty, true)}if (response.code !== 0) {return;}- window.siyuan.config.fileTree = response.data;+ window.siyuan.config.fileTree = {+ ...response.data,+ tabStartupMode: response.data.tabStartupMode === 1 ? 1 : response.data.tabStartupMode === 2 ? 2 : 0,+ };this.onDocSortModeChanged({scope: "global",box: "",diff --git a/app/src/mobile/dock/MobileFiles.ts b/app/src/mobile/dock/MobileFiles.tsindex 3eba2d99e0..7699c151ba 100644--- a/app/src/mobile/dock/MobileFiles.ts+++ b/app/src/mobile/dock/MobileFiles.ts@@ -777,7 +777,10 @@ export class MobileFiles extends Model {if (response.code !== 0) {return;}- window.siyuan.config.fileTree = response.data;+ window.siyuan.config.fileTree = {+ ...response.data,+ tabStartupMode: response.data.tabStartupMode === 1 ? 1 : response.data.tabStartupMode === 2 ? 2 : 0,+ };this.onDocSortModeChanged({scope: "global",box: "",diff --git a/app/src/mobile/index.ts b/app/src/mobile/index.tsindex a69dec640a..382bfa30fa 100644--- a/app/src/mobile/index.ts+++ b/app/src/mobile/index.ts@@ -218,7 +218,7 @@ class App {document.querySelector('meta[name="viewport"]').setAttribute("content", "width=device-width, height=device-height, interactive-widget=resizes-visual, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, viewport-fit=cover");}fetchPost("/api/setting/getCloudUser", {}, async userResponse => {- window.siyuan.user = userResponse.data;+ window.siyuan.user = userResponse.data && "userId" in userResponse.data ? userResponse.data : null;await ensureOnboarding();fetchPost("/api/system/getEmojiConf", {}, async emojiResponse => {window.siyuan.emojis = emojiResponse.data as IEmoji[];diff --git a/app/src/types/api/index.d.ts b/app/src/types/api/index.d.tsindex 29688af4e5..a52e27be4a 100644--- a/app/src/types/api/index.d.ts+++ b/app/src/types/api/index.d.ts@@ -720,6 +720,8 @@ export type LocalGraphResult = { "box": string; "conf": LocalGraphConf; "id": stexport type LockScreenRequestInput = { "lockScreenMode": number; };+export type Login2faEnvelope = { "code": number; "data": ({ "code": number; "msg": string; } & { [key: string]: JSONValue }) | null; "msg": string; };+export type MarkdownHTMLRequestInput = { "markdown": string; "mode"?: string | null; };export type MoveBlockRequestInput = { "id": string; "parentID"?: string | null; "previousID"?: string | null; };@@ -1024,16 +1026,34 @@ export type SearchWidgetData = { "k": string; "widgets": Array<SearchWidgetResulexport type SearchWidgetResult = { "content": string; "name": string; };+export type SetAIRequestInput = { "agent"?: SettingAgentInput | null; "editing"?: SettingEditingInput | null; "embedding"?: SettingEmbeddingInput | null; "imageGeneration"?: SettingImageGenerationInput | null; "mcp"?: SettingMCPInput | null; "providers"?: Array<SettingProviderInput | null> | null; "rerank"?: SettingRerankInput | null; };++export type SetAppearanceRequestInput = { "bodyGradient"?: SettingBodyGradientInput | null; "closeButtonBehavior"?: number | null; "codeBlockThemeDark"?: string | null; "codeBlockThemeLight"?: string | null; "darkThemes"?: Array<SettingAppearanceThemeInput | null> | null; "entryVisibility"?: SettingEntryVisibilityInput | null; "globalFontFamilies"?: Array<SettingEditorFontInput | null> | null; "hideStatusBar"?: boolean | null; "hideToolbar"?: boolean | null; "icon"?: string | null; "iconVer"?: string | null; "icons"?: Array<SettingAppearanceIconInput | null> | null; "lang"?: string | null; "lightThemes"?: Array<SettingAppearanceThemeInput | null> | null; "mode"?: number | null; "modeOS"?: boolean | null; "notifications"?: SettingNotificationsInput | null; "statusBar"?: SettingStatusBarInput | null; "themeDark"?: string | null; "themeJS"?: boolean | null; "themeLight"?: string | null; "themeVer"?: string | null; };+export type SetAssetAnnotationRequestInput = { "data": string; "path": string; };export type SetAssetOCRTextRequestInput = { "path": string; "text": string; };export type SetBazaarPackageRatingRequestInput = { "packageName": string; "packageType": string; "rating": number; };+export type SetBazaarRequestInput = { "petalDisabled"?: boolean | null; "trust"?: boolean | null; };+export type SetBlockAttrsRequestInput = { "attrs": Record<string, string | null>; "id": string; };+export type SetConfSnippetRequestInput = { "enabledCSS"?: boolean | null; "enabledJS"?: boolean | null; };+export type SetCriterionRequestInput = { "criterion": CriterionInput | null; };+export type SetEditorRequestInput = { "allowHTMLBLockScript"?: boolean | null; "allowSVGScript"?: boolean | null; "assetOpen"?: SettingAssetOpenInput | null; "backlinkContainChildren"?: boolean | null; "backlinkExpandCount"?: number | null; "backlinkHideReference"?: boolean | null; "backlinkMentionExclude"?: string | null; "backlinkShowBottom"?: boolean | null; "backlinkSort"?: number | null; "backmentionExpandCount"?: number | null; "backmentionSort"?: number | null; "blockRefDynamicAnchorTextMaxLen"?: number | null; "checkBlockRef"?: boolean | null; "codeFontFamilies"?: Array<SettingEditorFontInput | null> | null; "codeLigatures"?: boolean | null; "codeLineWrap"?: boolean | null; "codeSyntaxHighlightLineNum"?: boolean | null; "codeTabSpaces"?: number | null; "cursorSurroundingLines"?: number | null; "databaseAttrClickMode"?: number | null; "databaseAttrHideEmpty"?: boolean | null; "databaseAttrShow"?: boolean | null; "databaseAttrUseTabs"?: boolean | null; "databaseAttrViewMode"?: number | null; "displayBookmarkIcon"?: boolean | null; "displayNetImgMark"?: boolean | null; "dragHTMLFileToIframe"?: boolean | null; "dynamicLoadBlocks"?: number | null; "embedBlockBreadcrumb"?: boolean | null; "emoji"?: Array<string> | null; "floatWindowDelay"?: number | null; "floatWindowMode"?: number | null; "fontFamilies"?: Array<SettingEditorFontInput | null> | null; "fontFamily"?: string | null; "fontFamilyDisplay"?: string | null; "fontSize"?: number | null; "fontSizeScrollZoom"?: boolean | null; "fontWeight"?: number | null; "fullWidth"?: boolean | null; "generateHistoryInterval"?: number | null; "hashTagSearch"?: boolean | null; "headingEmbedMode"?: number | null; "headingNumber"?: boolean | null; "headingNumberFormat"?: string | null; "historyRetentionDays"?: number | null; "justify"?: boolean | null; "katexMacros"?: string | null; "keepLoadedContent"?: boolean | null; "listItemDotNumberClickFocus"?: boolean | null; "listLogicalOutdent"?: boolean | null; "markdown"?: SettingMarkdownInput | null; "onlySearchForDoc"?: boolean | null; "pasteURLAutoConvert"?: boolean | null; "plantUMLServePath"?: string | null; "readOnly"?: boolean | null; "rtl"?: boolean | null; "spellcheck"?: boolean | null; "spellcheckLanguages"?: Array<string> | null; "virtualBlockRef"?: boolean | null; "virtualBlockRefExclude"?: string | null; "virtualBlockRefInclude"?: string | null; };++export type SetEntryVisibilityRequestInput = { "active"?: string | null; "profiles"?: Array<SettingEntryVisibilityProfileInput | null> | null; "version"?: number | null; };++export type SetExportRequestInput = { "addTitle"?: boolean | null; "blockEmbedMode"?: number | null; "blockRefMode"?: number | null; "blockRefTextLeft"?: string | null; "blockRefTextRight"?: string | null; "docxTemplate"?: string | null; "fileAnnotationRefMode"?: number | null; "imageWatermarkDesc"?: string | null; "imageWatermarkStr"?: string | null; "includeRelatedDocs"?: boolean | null; "includeSubDocs"?: boolean | null; "inlineMemo"?: boolean | null; "markdownYFM"?: boolean | null; "pandocBin"?: string | null; "pandocParams"?: string | null; "paragraphBeginningSpace"?: boolean | null; "pdfFooter"?: string | null; "pdfWatermarkDesc"?: string | null; "pdfWatermarkStr"?: string | null; "removeAssetsID"?: boolean | null; "tagCloseMarker"?: string | null; "tagOpenMarker"?: string | null; };++export type SetFiletreeRequestInput = { "allowCreateDeeper"?: boolean | null; "alwaysSelectOpenedFile"?: boolean | null; "boxDocEnabled"?: boolean | null; "closeTabOnDoubleClick"?: boolean | null; "closeTabsOnStart"?: boolean | null; "createDocAtTop"?: boolean | null; "docCreateSaveBox"?: string | null; "docCreateSavePath"?: string | null; "docCreateTemplatePath"?: string | null; "docIconClickExpand"?: boolean | null; "largeFileWarningSize"?: number | null; "maxListCount"?: number | null; "maxOpenTabCount"?: number | null; "noSplitScreenWhenOpenTab"?: boolean | null; "openFilesUseCurrentTab"?: boolean | null; "parentDocClickExpand"?: boolean | null; "recentDocsMaxListCount"?: number | null; "refCreateSaveBox"?: string | null; "refCreateSavePath"?: string | null; "removeDocWithoutConfirm"?: boolean | null; "shorthandSaveBox"?: string | null; "shorthandSavePath"?: string | null; "sort"?: number | null; "tabStartupMode"?: number | null; "useSVGDefaultIcon"?: boolean | null; "useSingleLineSave"?: boolean | null; };++export type SetFlashcardRequestInput = { "blockquote"?: boolean | null; "callout"?: boolean | null; "deck"?: boolean | null; "heading"?: boolean | null; "list"?: boolean | null; "mark"?: boolean | null; "maximumInterval"?: number | null; "newCardLimit"?: number | null; "requestRetention"?: number | null; "reviewCardLimit"?: number | null; "reviewMode"?: number | null; "superBlock"?: boolean | null; "weights"?: string | null; };+export type SetGraphConfRequestInput = { "conf": GraphConfigurationFieldsInput; "type": string; };export type SetInlineStylesRequestInput = { "app"?: string | null; "av"?: InlineStyleAVInput | null; "builtin"?: InlineStyleBuiltinInput | null; "order"?: InlineStyleOrderInput | null; "styles": Array<InlineStyleInput | null>; "version": number; };@@ -1046,12 +1066,18 @@ export type SetPetalEnabledRequestInput = { "app"?: string | null; "enabled": boexport type SetPetalPublishEnabledRequestInput = { "enabled": boolean; "packageName": string; };+export type SetPublishRequestInput = { "auth"?: SettingBasicAuthInput | null; "enable"?: boolean | null; "port"?: number | null; };+export type SetRepoIndexRetentionDaysRequestInput = { "days": number; };export type SetRetentionIndexesDailyRequestInput = { "indexes": number; };export type SetRiffCardsDueRequestInput = { "cardDues": Array<RiffCardDueInput>; };+export type SetSearchRequestInput = { "alias"?: boolean | null; "audioBlock"?: boolean | null; "backlinkMentionAlias"?: boolean | null; "backlinkMentionAnchor"?: boolean | null; "backlinkMentionDoc"?: boolean | null; "backlinkMentionKeywordsLimit"?: number | null; "backlinkMentionName"?: boolean | null; "blockquote"?: boolean | null; "callout"?: boolean | null; "caseSensitive"?: boolean | null; "codeBlock"?: boolean | null; "databaseBlock"?: boolean | null; "document"?: boolean | null; "embedBlock"?: boolean | null; "hanSensitive"?: boolean | null; "heading"?: boolean | null; "htmlBlock"?: boolean | null; "ial"?: boolean | null; "iframeBlock"?: boolean | null; "indexAssetPath"?: boolean | null; "limit"?: number | null; "list"?: boolean | null; "listItem"?: boolean | null; "mathBlock"?: boolean | null; "memo"?: boolean | null; "name"?: boolean | null; "paragraph"?: boolean | null; "superBlock"?: boolean | null; "tabItem"?: boolean | null; "table"?: boolean | null; "tabs"?: boolean | null; "videoBlock"?: boolean | null; "virtualRefAlias"?: boolean | null; "virtualRefAnchor"?: boolean | null; "virtualRefDoc"?: boolean | null; "virtualRefName"?: boolean | null; "widgetBlock"?: boolean | null; };++export type SetSecretsRequestInput = { "items"?: Array<SettingSecretInput | null> | null; };+export type SetSnapshotMemoRequestInput = { "id": string; "memo": string; };export type SetSnippetRequestInput = { "snippets": Array<SnippetInput>; };@@ -1062,6 +1088,180 @@ export type SetSyncS3RequestInput = { "s3": SyncS3Input; };export type SetSyncWebDAVRequestInput = { "webdav": SyncWebDAVInput; };+export type SetVariablesRequestInput = { "items"?: Array<SettingVariableInput | null> | null; };++export type SettingAI = { "agent": SettingAgent | null; "editing": SettingEditing | null; "embedding": SettingEmbedding | null; "imageGeneration": SettingImageGeneration | null; "mcp": SettingMCP | null; "providers": Array<SettingProvider | null> | null; "rerank": SettingRerank | null; };++export type SettingAgent = { "approvalPolicy": SettingApprovalPolicy | null; "capabilityPolicy": SettingCapabilityPolicy | null; "confirmTimeout": number; "maxCompletionTokens": number; "maxRetries": number; "maxToolCallRounds": number; "modelId": string; "sessionTimeout": number; "skills": SettingAgentSkills | null; "streamIdleTimeout": number; "temperature": number; };++export type SettingAgentInput = { "approvalPolicy"?: SettingApprovalPolicyInput | null; "capabilityPolicy"?: SettingCapabilityPolicyInput | null; "confirmTimeout"?: number | null; "maxCompletionTokens"?: number | null; "maxRetries"?: number | null; "maxToolCallRounds"?: number | null; "modelId"?: string | null; "sessionTimeout"?: number | null; "skills"?: SettingAgentSkillsInput | null; "streamIdleTimeout"?: number | null; "temperature"?: number | null; };++export type SettingAgentSkills = { "userEnabled": Array<string> | null; };++export type SettingAgentSkillsInput = { "userEnabled"?: Array<string> | null; };++export type SettingAppearance = { "bodyGradient": SettingBodyGradient | null; "closeButtonBehavior": number; "codeBlockThemeDark": string; "codeBlockThemeLight": string; "darkThemes": Array<SettingAppearanceTheme | null> | null; "entryVisibility": SettingEntryVisibility | null; "globalFontFamilies": Array<SettingEditorFont | null> | null; "hideStatusBar": boolean; "hideToolbar": boolean; "icon": string; "iconVer": string; "icons": Array<SettingAppearanceIcon | null> | null; "lang": string; "lightThemes": Array<SettingAppearanceTheme | null> | null; "mode": number; "modeOS": boolean; "notifications": SettingNotifications | null; "statusBar": SettingStatusBar | null; "themeDark": string; "themeJS": boolean; "themeLight": string; "themeVer": string; };++export type SettingAppearanceIcon = { "label": string; "name": string; };++export type SettingAppearanceIconInput = { "label"?: string | null; "name"?: string | null; };++export type SettingAppearanceTheme = { "frontends"?: Array<string>; "label": string; "name": string; };++export type SettingAppearanceThemeInput = { "frontends"?: Array<string> | null; "label"?: string | null; "name"?: string | null; };++export type SettingApprovalPolicy = { "default": string; "overrides": Record<string, SettingCapabilityApproval | null> | null; };++export type SettingApprovalPolicyInput = { "default"?: string | null; "overrides"?: Record<string, SettingCapabilityApprovalInput | null> | null; };++export type SettingAssetOpen = { "altClick": string; "click": string; "ctrlClick": string; "shiftClick": string; };++export type SettingAssetOpenInput = { "altClick"?: string | null; "click"?: string | null; "ctrlClick"?: string | null; "shiftClick"?: string | null; };++export type SettingBasicAuth = { "accounts": Array<SettingBasicAuthAccount | null> | null; "enable": boolean; };++export type SettingBasicAuthAccount = { "memo": string; "password": string; "username": string; };++export type SettingBasicAuthAccountInput = { "memo"?: string | null; "password"?: string | null; "username"?: string | null; };++export type SettingBasicAuthInput = { "accounts"?: Array<SettingBasicAuthAccountInput | null> | null; "enable"?: boolean | null; };++export type SettingBazaar = { "petalDisabled": boolean; "trust": boolean; };++export type SettingBodyGradient = { "dark": SettingBodyGradientColor; "light": SettingBodyGradientColor; "mode": string; };++export type SettingBodyGradientColor = { "color": string; "opacity": number; };++export type SettingBodyGradientColorInput = { "color"?: string | null; "opacity"?: number | null; };++export type SettingBodyGradientInput = { "dark"?: SettingBodyGradientColorInput | null; "light"?: SettingBodyGradientColorInput | null; "mode"?: string | null; };++export type SettingBootAppearance = { "appearance"?: string; "backgroundColor"?: string; "displayName"?: string; "enabled": boolean; "frontends"?: Array<string>; "layers"?: Array<SettingBootAppearanceLayer | null>; "officialUI"?: SettingBootAppearanceOfficialUI; "provider"?: string; "style"?: string; };++export type SettingBootAppearanceCurrent = { "appearance": string; "provider": string; };++export type SettingBootAppearanceLayer = { "fit"?: string; "id": string; "position"?: string; "poster"?: string; "src": string; "type": string; };++export type SettingBootAppearanceOfficialUI = { "progressColor"?: string; "showDetails": boolean; "showLogo": boolean; "textColor"?: string; "trackColor"?: string; };++export type SettingBootAppearanceRequestInput = { "appearance"?: string | null; "provider"?: string | null; };++export type SettingBootAppearanceSelection = { "appearance": string; "provider": string; "schemaVersion": number; };++export type SettingBootAppearancesData = { "appearances": Array<SettingBootAppearance | null> | null; "current": SettingBootAppearanceCurrent; };++export type SettingCapabilityApproval = { "actions": Record<string, string> | null; "default": string; };++export type SettingCapabilityApprovalInput = { "actions"?: Record<string, string> | null; "default"?: string | null; };++export type SettingCapabilityPolicy = { "default": string; "overrides": Record<string, string> | null; };++export type SettingCapabilityPolicyInput = { "default"?: string | null; "overrides"?: Record<string, string> | null; };++export type SettingCloudUserRequestInput = { "token"?: string | null; };++export type SettingEditing = { "maxCompletionTokens": number; "maxHistoryMessages": number; "modelId": string; "temperature": number; };++export type SettingEditingInput = { "maxCompletionTokens"?: number | null; "maxHistoryMessages"?: number | null; "modelId"?: string | null; "temperature"?: number | null; };++export type SettingEditor = { "allowHTMLBLockScript": boolean; "allowSVGScript": boolean; "assetOpen": SettingAssetOpen | null; "backlinkContainChildren": boolean; "backlinkExpandCount": number; "backlinkHideReference": boolean; "backlinkMentionExclude": string; "backlinkShowBottom": boolean; "backlinkSort": number | null; "backmentionExpandCount": number; "backmentionSort": number | null; "blockRefDynamicAnchorTextMaxLen": number; "checkBlockRef": boolean | null; "codeFontFamilies": Array<SettingEditorFont | null> | null; "codeLigatures": boolean; "codeLineWrap": boolean; "codeSyntaxHighlightLineNum": boolean; "codeTabSpaces": number; "cursorSurroundingLines": number; "databaseAttrClickMode": number; "databaseAttrHideEmpty": boolean; "databaseAttrShow": boolean | null; "databaseAttrUseTabs": boolean | null; "databaseAttrViewMode": number; "displayBookmarkIcon": boolean; "displayNetImgMark": boolean; "dragHTMLFileToIframe": boolean; "dynamicLoadBlocks": number; "embedBlockBreadcrumb": boolean; "emoji": Array<string> | null; "floatWindowDelay": number | null; "floatWindowMode": number; "fontFamilies": Array<SettingEditorFont | null> | null; "fontFamily": string; "fontFamilyDisplay": string; "fontSize": number; "fontSizeScrollZoom": boolean; "fontWeight": number; "fullWidth": boolean; "generateHistoryInterval": number; "hashTagSearch": boolean | null; "headingEmbedMode": number; "headingNumber": boolean; "headingNumberFormat": string; "historyRetentionDays": number; "justify": boolean; "katexMacros": string; "keepLoadedContent": boolean; "listItemDotNumberClickFocus": boolean; "listLogicalOutdent": boolean; "markdown": SettingMarkdown | null; "onlySearchForDoc": boolean; "pasteURLAutoConvert": boolean; "plantUMLServePath": string; "readOnly": boolean; "rtl": boolean; "spellcheck": boolean; "spellcheckLanguages": Array<string> | null; "virtualBlockRef": boolean; "virtualBlockRefExclude": string; "virtualBlockRefInclude": string; };++export type SettingEditorFont = { "displayName": string; "family": string; "weight": number; };++export type SettingEditorFontInput = { "displayName"?: string | null; "family"?: string | null; "weight"?: number | null; };++export type SettingEmbedding = { "apiKey": string; "baseURL": string; "dimensions": number; "enabled": boolean; "id": string; "name": string; "timeout": number; };++export type SettingEmbeddingInput = { "apiKey"?: string | null; "baseURL"?: string | null; "dimensions"?: number | null; "enabled"?: boolean | null; "id"?: string | null; "name"?: string | null; "timeout"?: number | null; };++export type SettingEmojiRequestInput = { "emoji": Array<string>; };++export type SettingEntryVisibility = { "active": string; "profiles": Array<SettingEntryVisibilityProfile | null> | null; "version": number; };++export type SettingEntryVisibilityInput = { "active"?: string | null; "profiles"?: Array<SettingEntryVisibilityProfileInput | null> | null; "version"?: number | null; };++export type SettingEntryVisibilityProfile = { "entries": Record<string, boolean> | null; "id": string; "name": string; "orders": Record<string, Array<string> | null> | null; };++export type SettingEntryVisibilityProfileInput = { "entries"?: Record<string, boolean> | null; "id"?: string | null; "name"?: string | null; "orders"?: Record<string, Array<string> | null> | null; };++export type SettingExport = { "addTitle": boolean; "blockEmbedMode": number; "blockRefMode": number; "blockRefTextLeft": string; "blockRefTextRight": string; "docxTemplate": string; "fileAnnotationRefMode": number; "imageWatermarkDesc": string; "imageWatermarkStr": string; "includeRelatedDocs": boolean; "includeSubDocs": boolean; "inlineMemo": boolean; "markdownYFM": boolean; "pandocBin": string; "pandocParams": string; "paragraphBeginningSpace": boolean; "pdfFooter": string; "pdfWatermarkDesc": string; "pdfWatermarkStr": string; "removeAssetsID": boolean; "tagCloseMarker": string; "tagOpenMarker": string; };++export type SettingFileTree = { "allowCreateDeeper": boolean; "alwaysSelectOpenedFile": boolean; "boxDocEnabled": boolean | null; "closeTabOnDoubleClick": boolean; "closeTabsOnStart": boolean; "createDocAtTop": boolean | null; "docCreateSaveBox": string; "docCreateSavePath": string; "docCreateTemplatePath": string; "docIconClickExpand": boolean; "largeFileWarningSize": number; "maxListCount": number; "maxOpenTabCount": number; "noSplitScreenWhenOpenTab": boolean; "openFilesUseCurrentTab": boolean; "parentDocClickExpand": boolean; "recentDocsMaxListCount": number; "refCreateSaveBox": string; "refCreateSavePath": string; "removeDocWithoutConfirm": boolean; "shorthandSaveBox": string; "shorthandSavePath": string; "sort": number; "tabStartupMode": number | null; "useSVGDefaultIcon": boolean | null; "useSingleLineSave": boolean; };++export type SettingFlashcard = { "blockquote": boolean; "callout": boolean; "deck": boolean; "heading": boolean; "list": boolean; "mark": boolean; "maximumInterval": number; "newCardLimit": number; "requestRetention": number; "reviewCardLimit": number; "reviewMode": number; "superBlock": boolean; "weights": string; };++export type SettingIconRequestInput = { "icon": string; };++export type SettingImageGeneration = { "modelId": string; "outputFormat": string; "quality": string; "requestTimeout": number; "size": string; };++export type SettingImageGenerationInput = { "modelId"?: string | null; "outputFormat"?: string | null; "quality"?: string | null; "requestTimeout"?: number | null; "size"?: string | null; };++export type SettingKeymapRequestInput = { "data"?: { [key: string]: JSONValue } | null; };++export type SettingLogin2faRequestInput = { "code": string; "token": string; };++export type SettingMCP = { "exposurePolicy": SettingCapabilityPolicy | null; "servers": Array<SettingMCPServer> | null; };++export type SettingMCPInput = { "exposurePolicy"?: SettingCapabilityPolicyInput | null; "servers"?: Array<SettingMCPServerInput> | null; };++export type SettingMCPServer = { "args": Array<string> | null; "command": string; "disableStandaloneSSE": boolean; "enabled": boolean; "env": Record<string, string> | null; "headers": Record<string, string> | null; "id": string; "inheritEnv": Array<string> | null; "name": string; "timeout": number; "trustToolAnnotations": boolean; "type": string; "url": string; };++export type SettingMCPServerInput = { "args"?: Array<string> | null; "command"?: string | null; "disableStandaloneSSE"?: boolean | null; "enabled"?: boolean | null; "env"?: Record<string, string> | null; "headers"?: Record<string, string> | null; "id"?: string | null; "inheritEnv"?: Array<string> | null; "name"?: string | null; "timeout"?: number | null; "trustToolAnnotations"?: boolean | null; "type"?: string | null; "url"?: string | null; };++export type SettingMarkdown = { "blockFullWidthTaskList": boolean | null; "codeBlockMiddleDot": boolean | null; "inlineAsterisk": boolean; "inlineFullWidthStrikethrough": boolean; "inlineMark": boolean; "inlineMath": boolean; "inlineStrikethrough": boolean; "inlineSub": boolean; "inlineSup": boolean; "inlineTag": boolean; "inlineUnderscore": boolean; };++export type SettingMarkdownInput = { "blockFullWidthTaskList"?: boolean | null; "codeBlockMiddleDot"?: boolean | null; "inlineAsterisk"?: boolean | null; "inlineFullWidthStrikethrough"?: boolean | null; "inlineMark"?: boolean | null; "inlineMath"?: boolean | null; "inlineStrikethrough"?: boolean | null; "inlineSub"?: boolean | null; "inlineSup"?: boolean | null; "inlineTag"?: boolean | null; "inlineUnderscore"?: boolean | null; };++export type SettingModel = { "contextLength"?: number; "displayName"?: string; "enabled": boolean; "id": string; "name": string; };++export type SettingModelInput = { "contextLength"?: number | null; "displayName"?: string | null; "enabled"?: boolean | null; "id"?: string | null; "name"?: string | null; };++export type SettingNotifications = { "browserCompatibility": boolean; "docTreeMaxList": boolean; "formatPainterTip"?: boolean; "selectAllIncompleteTip"?: boolean; "selectAllTip"?: boolean; "tagMaxList": boolean; "workspaceNotSSD": boolean; };++export type SettingNotificationsInput = { "browserCompatibility"?: boolean | null; "docTreeMaxList"?: boolean | null; "formatPainterTip"?: boolean | null; "selectAllIncompleteTip"?: boolean | null; "selectAllTip"?: boolean | null; "tagMaxList"?: boolean | null; "workspaceNotSSD"?: boolean | null; };++export type SettingPetalDisabledData = { "dataChangePlugins": Array<string> | null; "globalPetalChanged": boolean; "globalPetalDisabled": boolean; "globalPetalEnabled": boolean; "globalPetalRevision": number; "reloadPlugins": Array<string> | null; "uninstallPlugins": Array<string> | null; "unloadPlugins": Array<string> | null; };++export type SettingPetalDisabledRequestInput = { "petalDisabled": boolean; };++export type SettingProvider = { "apiKey": string; "baseURL": string; "displayName"?: string; "enabled": boolean; "headers"?: Record<string, string>; "id": string; "models": Array<SettingModel | null> | null; "protocol"?: string; "requestTimeout": number; };++export type SettingProviderInput = { "apiKey"?: string | null; "baseURL"?: string | null; "displayName"?: string | null; "enabled"?: boolean | null; "headers"?: Record<string, string> | null; "id"?: string | null; "models"?: Array<SettingModelInput | null> | null; "protocol"?: string | null; "requestTimeout"?: number | null; };++export type SettingPublish = { "auth": SettingBasicAuth | null; "enable": boolean; "port": number; };++export type SettingPublishData = { "port": number; "publish": SettingPublish | null; };++export type SettingRerank = { "apiKey": string; "candidateCount": number; "enabled": boolean; "endpoint": string; "id": string; "name": string; "requestFormat": string; "timeout": number; };++export type SettingRerankInput = { "apiKey"?: string | null; "candidateCount"?: number | null; "enabled"?: boolean | null; "endpoint"?: string | null; "id"?: string | null; "name"?: string | null; "requestFormat"?: string | null; "timeout"?: number | null; };++export type SettingSearch = { "alias": boolean; "audioBlock": boolean; "backlinkMentionAlias": boolean; "backlinkMentionAnchor": boolean; "backlinkMentionDoc": boolean; "backlinkMentionKeywordsLimit": number; "backlinkMentionName": boolean; "blockquote": boolean; "callout": boolean; "caseSensitive": boolean; "codeBlock": boolean; "databaseBlock": boolean; "document": boolean; "embedBlock": boolean; "hanSensitive": boolean | null; "heading": boolean; "htmlBlock": boolean; "ial": boolean; "iframeBlock": boolean; "indexAssetPath": boolean; "limit": number; "list": boolean; "listItem": boolean; "mathBlock": boolean; "memo": boolean; "name": boolean; "paragraph": boolean; "superBlock": boolean; "tabItem": boolean; "table": boolean; "tabs": boolean; "videoBlock": boolean; "virtualRefAlias": boolean; "virtualRefAnchor": boolean; "virtualRefDoc": boolean; "virtualRefName": boolean; "widgetBlock": boolean; };++export type SettingSecret = { "allowedHosts": Array<string> | null; "name": string; "value": string; };++export type SettingSecretInput = { "allowedHosts"?: Array<string> | null; "name"?: string | null; "value"?: string | null; };++export type SettingSecrets = { "items": Array<SettingSecret | null> | null; };++export type SettingSnpt = { "enabledCSS": boolean; "enabledJS": boolean; };++export type SettingStatusBar = { "msgDataSyncDisabled": boolean; "msgTaskAssetDatabaseIndexCommitDisabled": boolean; "msgTaskDatabaseIndexCommitDisabled": boolean; "msgTaskHistoryDatabaseIndexCommitDisabled": boolean; "msgTaskHistoryGenerateFileDisabled": boolean; "version": number; };++export type SettingStatusBarInput = { "msgDataSyncDisabled"?: boolean | null; "msgTaskAssetDatabaseIndexCommitDisabled"?: boolean | null; "msgTaskDatabaseIndexCommitDisabled"?: boolean | null; "msgTaskHistoryDatabaseIndexCommitDisabled"?: boolean | null; "msgTaskHistoryGenerateFileDisabled"?: boolean | null; "version"?: number | null; };++export type SettingThemeRequestInput = { "appearanceMode"?: string | null; "modes"?: Array<number> | null; "theme"?: string | null; };++export type SettingUser = { "userAvatarURL": string; "userCreateTime": string; "userHomeBImgURL": string; "userId": string; "userIntro": string; "userName": string; "userNickname": string; "userSiYuanAssetSize": number; "userSiYuanOneTimePayStatus": number; "userSiYuanPointExchangeRepoSize": number; "userSiYuanProExpireTime": number; "userSiYuanRepoSize": number; "userSiYuanSubscriptionPlan": number; "userSiYuanSubscriptionStatus": number; "userSiYuanSubscriptionType": number; "userTitles": Array<SettingUserTitle | null> | null; "userToken": string; "userTokenExpireTime": string; "userTrafficAPIGet": number; "userTrafficAPIPut": number; "userTrafficDownload": number; "userTrafficTime": number; "userTrafficUpload": number; };++export type SettingUserTitle = { "desc": string; "icon": string; "name": string; };++export type SettingVariable = { "name": string; "value": string; };++export type SettingVariableInput = { "name"?: string | null; "value"?: string | null; };++export type SettingVariables = { "items": Array<SettingVariable | null> | null; };+export type Shorthand = { "hCreated": string; "oId": string; "shorthandContent": string; "shorthandDesc": string; "shorthandFrom": number; "shorthandMd": string; "shorthandTitle": string; "shorthandURL": string; };export type ShorthandPage = { "pagination": ShorthandPagination; "shorthands": Array<Shorthand | null>; };@@ -1359,30 +1559,6 @@ export type APILegacyPOSTPath ="/api/network/echo/*path" |"/api/network/forwardProxy" |"/api/network/proxy" |- "/api/setting/getBootAppearances" |- "/api/setting/getCloudUser" |- "/api/setting/getPublish" |- "/api/setting/login2faCloudUser" |- "/api/setting/logoutCloudUser" |- "/api/setting/setAI" |- "/api/setting/setAppearance" |- "/api/setting/setBazaar" |- "/api/setting/setBazaarPetalDisabled" |- "/api/setting/setBootAppearance" |- "/api/setting/setEditor" |- "/api/setting/setEmoji" |- "/api/setting/setEntryVisibility" |- "/api/setting/setExport" |- "/api/setting/setFiletree" |- "/api/setting/setFlashcard" |- "/api/setting/setIcon" |- "/api/setting/setKeymap" |- "/api/setting/setPublish" |- "/api/setting/setSearch" |- "/api/setting/setSecrets" |- "/api/setting/setSnippet" |- "/api/setting/setTheme" |- "/api/setting/setVariables" |"/api/system/addCustomEmoji" |"/api/system/checkUpdate" |"/api/system/checkWorkspaceDir" |@@ -3273,21 +3449,142 @@ export interface APIPOSTRoutes {response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };body: "json";};+ "/api/setting/getBootAppearances": {+ request: EmptyRequestInput;+ response: { "code": 0; "data": SettingBootAppearancesData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "none";+ };+ "/api/setting/getCloudUser": {+ request: SettingCloudUserRequestInput;+ response: { "code": 0; "data": SettingUser | null; "msg": string; } | { "code": -1 | 1 | 255; "data": { "closeTimeout": number; } | null | SettingUser | null; "msg": string; };+ body: "json";+ };"/api/setting/getPandocBin": {request: EmptyRequestInput;response: { "code": 0; "data": string; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };body: "none";};+ "/api/setting/getPublish": {+ request: EmptyRequestInput;+ response: { "code": 0; "data": SettingPublishData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "none";+ };+ "/api/setting/login2faCloudUser": {+ request: SettingLogin2faRequestInput;+ response: Login2faEnvelope | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ output: "directJSON";+ };+ "/api/setting/logoutCloudUser": {+ request: EmptyRequestInput;+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "none";+ };"/api/setting/refreshVirtualBlockRef": {request: EmptyRequestInput;response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };body: "none";};+ "/api/setting/setAI": {+ request: SetAIRequestInput;+ response: { "code": 0; "data": SettingAI | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/setting/setAppearance": {+ request: SetAppearanceRequestInput;+ response: { "code": 0; "data": SettingAppearance | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/setting/setBazaar": {+ request: SetBazaarRequestInput;+ response: { "code": 0; "data": SettingBazaar | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/setting/setBazaarPetalDisabled": {+ request: SettingPetalDisabledRequestInput;+ response: { "code": 0; "data": SettingPetalDisabledData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/setting/setBootAppearance": {+ request: SettingBootAppearanceRequestInput;+ response: { "code": 0; "data": SettingBootAppearanceSelection | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/setting/setEditor": {+ request: SetEditorRequestInput;+ response: { "code": 0; "data": SettingEditor | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };"/api/setting/setEditorReadOnly": {request: EditorReadOnlyRequestInput;response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };body: "json";};+ "/api/setting/setEmoji": {+ request: SettingEmojiRequestInput;+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/setting/setEntryVisibility": {+ request: SetEntryVisibilityRequestInput;+ response: { "code": 0; "data": SettingEntryVisibility | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/setting/setExport": {+ request: SetExportRequestInput;+ response: { "code": 0; "data": SettingExport | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/setting/setFiletree": {+ request: SetFiletreeRequestInput;+ response: { "code": 0; "data": SettingFileTree | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/setting/setFlashcard": {+ request: SetFlashcardRequestInput;+ response: { "code": 0; "data": SettingFlashcard | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/setting/setIcon": {+ request: SettingIconRequestInput;+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/setting/setKeymap": {+ request: SettingKeymapRequestInput;+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/setting/setPublish": {+ request: SetPublishRequestInput;+ response: { "code": 0; "data": SettingPublishData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/setting/setSearch": {+ request: SetSearchRequestInput;+ response: { "code": 0; "data": SettingSearch | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/setting/setSecrets": {+ request: SetSecretsRequestInput;+ response: { "code": 0; "data": SettingSecrets | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/setting/setSnippet": {+ request: SetConfSnippetRequestInput;+ response: { "code": 0; "data": SettingSnpt | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/setting/setTheme": {+ request: SettingThemeRequestInput;+ response: { "code": 0; "data": null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };+ "/api/setting/setVariables": {+ request: SetVariablesRequestInput;+ response: { "code": 0; "data": SettingVariables | null; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };+ body: "json";+ };"/api/snippet/getSnippet": {request: GetSnippetRequestInput;response: { "code": 0; "data": SnippetsData; "msg": string; } | { "code": -1; "data": { "closeTimeout": number; } | null; "msg": string; };diff --git a/app/src/util/bodyGradient.ts b/app/src/util/bodyGradient.tsindex bbd827486b..cddeb78d43 100644--- a/app/src/util/bodyGradient.ts+++ b/app/src/util/bodyGradient.ts@@ -4,7 +4,7 @@ export interface IBodyGradient {dark: {color: string; opacity: number};}-export const normalizeBodyGradient = (value?: IBodyGradient): IBodyGradient => {+export const normalizeBodyGradient = (value?: {mode?: string; light?: IBodyGradient["light"]; dark?: IBodyGradient["dark"]}): IBodyGradient => {const normalizeColor = (color?: IBodyGradient["light"]) => ({color: /^#[\da-f]{6}$/i.test(color?.color || "") ? color.color : "#9d12e2",opacity: typeof color?.opacity === "number" && Number.isFinite(color.opacity) ?diff --git a/app/src/window/index.ts b/app/src/window/index.tsindex 8e0590b0c1..c9df56404d 100644--- a/app/src/window/index.ts+++ b/app/src/window/index.ts@@ -229,7 +229,7 @@ class App {);window.siyuan.menus = new Menus(this);fetchPost("/api/setting/getCloudUser", {}, async userResponse => {- window.siyuan.user = userResponse.data;+ window.siyuan.user = userResponse.data && "userId" in userResponse.data ? userResponse.data : null;await init(this);setTitle("", true);initMessage();diff --git a/app/tests/api-contract.types.ts b/app/tests/api-contract.types.tsindex 91d161e490..a54b1d730f 100644--- a/app/tests/api-contract.types.ts+++ b/app/tests/api-contract.types.ts@@ -6,6 +6,31 @@ declare const fetchGet: FetchGet;declare const fetchSyncPost: FetchSyncPost;declare const dynamicURL: string;+fetchPost("/api/setting/setEditor", {markdown: {inlineMath: null}, fontFamilies: null});+fetchPost("/api/setting/setAI", {mcp: {servers: [{name: "server", env: {KEY: "value"}}]}});+fetchPost("/api/setting/setKeymap", {data: {extension: {items: [null, false, 1, "text", {}]}}});+fetchPost("/api/setting/setTheme", {theme: "theme", modes: [0, 1]});+// @ts-expect-error 编辑器字号必须为数字。+fetchPost("/api/setting/setEditor", {fontSize: "16"});+// @ts-expect-error AI 配置只接受声明的字段。+fetchPost("/api/setting/setAI", {mcp: {unknown: true}});+// @ts-expect-error 环境变量值必须为字符串。+fetchPost("/api/setting/setAI", {mcp: {servers: [{env: {KEY: false}}]}});+// @ts-expect-error 主题模式的规范调用使用数字数组。+fetchPost("/api/setting/setTheme", {theme: "theme", modes: [false]});+fetchPost("/api/setting/login2faCloudUser", {token: "token", code: "123456"}, response => {+ const outerCode: number = response.code;+ if (response.data && "msg" in response.data) {+ const cloudCode: number = response.data.code;+ const message: string = response.data.msg;+ const token: JSONValue = response.data.token;+ // @ts-expect-error 云端扩展字段在使用前必须检查类型。+ const tokenString: string = response.data.token;+ void [cloudCode, message, token, tokenString];+ }+ void outerCode;+});+fetchPost("/api/filetree/getDoc", {id: "document", notebook: "box", querySubTypes: {heading: {h1: true}}}, response => {if (response.code === 0) {const content: string = response.data.content;diff --git a/docs/API-CONTRACTS.md b/docs/API-CONTRACTS.mdindex ca0b823208..eef6483475 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+Setting contracts retain partial configuration merging, existing defaults, case-insensitive struct fields, explicit null values, JSON number normalization, and parser error messages. Keyboard shortcuts and cloud authentication results declare their fixed fields while preserving their protocol-defined JSON extensions. Cloud-user admission still precedes body reads for non-administrators, and two-factor authentication keeps cloud error codes and extension fields. Frontend callers normalize persisted display settings at the same existing boundaries.+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.diff --git a/docs/API-CONTRACTS.zh-CN.md b/docs/API-CONTRACTS.zh-CN.mdindex 2000851476..c5fca19b19 100644--- a/docs/API-CONTRACTS.zh-CN.md+++ b/docs/API-CONTRACTS.zh-CN.md@@ -24,6 +24,8 @@## 兼容要求+设置契约保留局部配置合并、既有默认值、结构字段大小写兼容、显式 null、JSON 数字归一化及解析错误消息。快捷键与云端认证结果声明固定字段,同时保留协议定义的 JSON 扩展。非管理员查询云用户时仍先执行准入判断再读取请求体;双因素认证保留云端错误码与扩展字段。前端继续在既有边界规范化持久化的显示设置。+文档树契约保留条件参数校验、路径与排序语义、回调省略规则、分页默认值及文档响应变体。发布认证通过显式声明的额外错误状态保留 HTTP 429 和 `Retry-After`。发布及加密笔记本准入仍先于延迟字段校验,文档租约覆盖响应序列化阶段。附件契约保留结果列表的空值、逐文件上传顺序与重名文件、部分上传成功时的提示及本地插入失败载荷。OCR 列保持字符串值。标注校验、发布文件准入、加密读写、延迟下载和上传目标选择保持既有行为。非 API 上传入口复用同一个有类型的模型操作。diff --git a/kernel/api/contract_setting_test.go b/kernel/api/contract_setting_test.gonew file mode 100644index 0000000000..bfc23e6427--- /dev/null+++ b/kernel/api/contract_setting_test.go@@ -0,0 +1,246 @@+package api++import (+ "encoding/json"+ "net/http/httptest"+ "reflect"+ "strings"+ "testing"++ "github.com/88250/gulu"+ "github.com/gin-gonic/gin"+ "github.com/siyuan-note/siyuan/kernel/apicontract"+ "github.com/siyuan-note/siyuan/kernel/conf"+ "github.com/siyuan-note/siyuan/kernel/model"+ "github.com/siyuan-note/siyuan/kernel/util"+)++type settingConfigInput interface {+ ConfigJSON() []byte+ ConfigError() error+ HasField(string) bool+}++func compareSettingConfig[Request settingConfigInput, Data, Config any](t *testing.T, endpoint apicontract.Endpoint[Request, Data], factory func() Config, bodies []string) {+ t.Helper()+ gin.SetMode(gin.TestMode)+ for _, body := range bodies {+ t.Run(endpoint.Definition().Name+body, func(t *testing.T) {+ context, _ := gin.CreateTestContext(httptest.NewRecorder())+ context.Request = httptest.NewRequest("POST", endpoint.Definition().Path, strings.NewReader(body))+ result := gulu.Ret.NewResult()+ fields, ok := util.JsonArg(context, result)+ if !ok {+ t.Fatal(result.Msg)+ }+ if endpoint.Definition().Name == "setBazaar" {+ delete(fields, "app")+ }+ encoded, err := gulu.JSON.MarshalJSON(fields)+ if err != nil {+ t.Fatal(err)+ }+ before, after := factory(), factory()+ beforeErr := gulu.JSON.UnmarshalJSON(encoded, before)+ request, err := endpoint.Decode(strings.NewReader(body))+ if err != nil {+ t.Fatal(err)+ }+ afterErr := request.ConfigError()+ if (beforeErr == nil) != (afterErr == nil) || beforeErr != nil && beforeErr.Error() != afterErr.Error() {+ t.Fatalf("config validation changed: before=%v after=%v", beforeErr, afterErr)+ }+ if beforeErr != nil {+ return+ }+ if err = gulu.JSON.UnmarshalJSON(request.ConfigJSON(), after); err != nil {+ t.Fatal(err)+ }+ if !reflect.DeepEqual(before, after) {+ t.Fatalf("partial configuration changed: before=%#v after=%#v", before, after)+ }+ for _, key := range []string{"fontFamilies", "codeFontFamilies", "bodyGradient", "globalFontFamilies"} {+ _, exists := fields[key]+ if request.HasField(key) != exists {+ t.Fatalf("key presence changed: %s", key)+ }+ }+ })+ }+}++func TestAPIContractSettingConfigCompatibility(t *testing.T) {+ common := []string{`null`, `{}`, `{"unknown":{"nested":[null,1.0]}}`}+ compareSettingConfig(t, apicontract.SetConfSnippet, func() *conf.Snpt { return &conf.Snpt{} }, append(common, `{"enabledCSS":null}`, `{"enabledCSS":true}`))+ compareSettingConfig(t, apicontract.SetBazaar, func() *conf.Bazaar { return &conf.Bazaar{} }, append(common, `{"app":false,"trust":null}`, `{"petalDisabled":"bad"}`))+ compareSettingConfig(t, apicontract.SetAI, func() *conf.AI { return &conf.AI{} }, append(common, `{"agent":{"maxRetries":1e0},"providers":[null],"mcp":{"servers":[null]}}`, `{"mcp":{"servers":[{"env":{"KEY":null}}]}}`, `{"agent":{"maxRetries":1.1}}`, `{"mcp":"bad"}`))+ compareSettingConfig(t, apicontract.SetSecrets, func() *conf.Secrets { return &conf.Secrets{} }, append(common, `{"items":[null,{"allowedHosts":[null,"localhost"]}]}`))+ compareSettingConfig(t, apicontract.SetVariables, func() *conf.Variables { return &conf.Variables{} }, append(common, `{"items":[null,{"name":null}]}`))+ compareSettingConfig(t, apicontract.SetFlashcard, conf.NewFlashcard, append(common, `{"newCardLimit":1e0}`, `{"NewCardLimit":7,"newCardLimit":2}`, `{"newCardLimit":1.5}`))+ compareSettingConfig(t, apicontract.SetEditor, conf.NewEditor, append(common, `{"markdown":{"inlineMath":null}}`, `{"markdown":null,"fontFamilies":null}`, `{"FontFamilies":[],"fontSize":16.0}`, `{"fontSize":1.5}`, `{"markdown":false}`, `{"emoji":[null,"x"]}`))+ compareSettingConfig(t, apicontract.SetExport, func() *conf.Export { return &conf.Export{} }, append(common, `{"blockRefMode":1.0}`, `{"blockRefMode":1.5}`))+ compareSettingConfig(t, apicontract.SetFiletree, conf.NewFileTree, append(common, `{"maxOpenTabCount":1e0,"boxDocEnabled":null}`, `{"useSVGDefaultIcon":null,"tabStartupMode":null}`, `{"maxOpenTabCount":"x"}`))+ compareSettingConfig(t, apicontract.SetSearch, func() *conf.Search { return &conf.Search{} }, append(common, `{"hanSensitive":null,"limit":3.0}`, `{"limit":3.2}`))+ compareSettingConfig(t, apicontract.SetAppearance, func() *conf.Appearance { return &conf.Appearance{} }, append(common, `{"bodyGradient":null}`, `{"BodyGradient":null,"globalFontFamilies":[]}`, `{"statusBar":false}`, `{"notifications":{"selectAllTip":null}}`))+ compareSettingConfig(t, apicontract.SetEntryVisibility, func() *conf.EntryVisibility { return &conf.EntryVisibility{} }, append(common, `{"profiles":[null,{"orders":{"menu":[null,"id"]}}]}`))+ compareSettingConfig(t, apicontract.SetPublish, func() *conf.Publish { return &conf.Publish{} }, append(common, `{"auth":null,"port":65535.0}`, `{"port":65536}`, `{"auth":{"accounts":[null]}}`))+}++func TestAPIContractSettingParserCompatibility(t *testing.T) {+ gin.SetMode(gin.TestMode)+ for _, body := range []string{"", `{`, `[]`, `false`, `{"unknown":1e1000}`, `{"app":1e1000,"app":1}`, `{"fontSize":16}{"extra":true}`} {+ context, _ := gin.CreateTestContext(httptest.NewRecorder())+ context.Request = httptest.NewRequest("POST", "/api/setting/setEditor", strings.NewReader(body))+ result := gulu.Ret.NewResult()+ _, ok := util.JsonArg(context, result)+ _, err := apicontract.SetEditor.Decode(strings.NewReader(body))+ if ok != (err == nil) || err != nil && err.Error() != result.Msg {+ t.Fatalf("parser changed for %s: before=%s after=%v", body, result.Msg, err)+ }+ }+}++func settingContractRequest(t *testing.T, route string, handler gin.HandlerFunc, body string) (int, string, json.RawMessage) {+ t.Helper()+ gin.SetMode(gin.TestMode)+ path := "/api/setting/" + route+ recorder := httptest.NewRecorder()+ context, _ := gin.CreateTestContext(recorder)+ context.Request = httptest.NewRequest("POST", path, strings.NewReader(body))+ handler(context)+ requireAPIContract(t, "POST", path, recorder)+ var result struct {+ Code int `json:"code"`+ Msg string `json:"msg"`+ Data json.RawMessage `json:"data"`+ }+ if err := json.Unmarshal(recorder.Body.Bytes(), &result); err != nil {+ t.Fatal(err)+ }+ return result.Code, result.Msg, result.Data+}++func TestAPIContractSettingErrorsAndAdmission(t *testing.T) {+ for _, entry := range []struct {+ route string+ handler gin.HandlerFunc+ body, message, data string+ }{+ {"setBazaarPetalDisabled", setBazaarPetalDisabled, `{}`, "invalid petalDisabled", "null"},+ {"setBazaarPetalDisabled", setBazaarPetalDisabled, `{"petalDisabled":null}`, "invalid petalDisabled", "null"},+ {"setTheme", setTheme, `{"theme":"theme","modes":[null]}`, "[modes] is required ([0] for light, [1] for dark, [0,1] for both)", "null"},+ {"setExport", setExport, `{"blockRefMode":1.5}`, "json: cannot unmarshal number 1.5 into Go struct field Export.blockRefMode of type int", `{"closeTimeout":5000}`},+ } {+ code, msg, data := settingContractRequest(t, entry.route, entry.handler, entry.body)+ if code != -1 || msg != entry.message || string(data) != entry.data {+ t.Fatalf("%s changed: %d %s %s", entry.route, code, msg, data)+ }+ }+ code, _, data := settingContractRequest(t, "getCloudUser", getCloudUser, `{invalid`)+ if code != 0 || string(data) != "null" {+ t.Fatalf("non-admin cloud query read body: %d %s", code, data)+ }+}++func TestAPIContractSettingEmojiAndPublishValidation(t *testing.T) {+ previous := model.Conf+ model.Conf = model.NewAppConf()+ model.Conf.Editor = conf.NewEditor()+ model.Conf.Publish = conf.NewPublish()+ t.Cleanup(func() { model.Conf = previous })+ code, _, data := settingContractRequest(t, "setEmoji", setEmoji, `{"emoji":[]}`)+ if code != 0 || string(data) != "null" || model.Conf.Editor.Emoji == nil || len(model.Conf.Editor.Emoji) != 0 {+ t.Fatal("empty emoji list changed")+ }+ priorPublish := model.Conf.Publish+ for _, body := range []string{`{"auth":{"enable":true,"accounts":[null]}}`, `{"auth":{"enable":true,"accounts":[{"username":"u","password":"short"}]}}`, `{"auth":{"enable":true,"accounts":[{"username":"u","password":"12345678"},{"username":"u","password":"12345678"}]}}`} {+ code, _, _ = settingContractRequest(t, "setPublish", setPublish, body)+ if code != -1 || model.Conf.Publish != priorPublish {+ t.Fatal("invalid publish credentials changed configuration")+ }+ }+}++func fillSettingPayload(value reflect.Value) {+ switch value.Kind() {+ case reflect.Pointer:+ value.Set(reflect.New(value.Type().Elem()))+ fillSettingPayload(value.Elem())+ case reflect.Struct:+ for i := 0; i < value.NumField(); i++ {+ if value.Field(i).CanSet() {+ fillSettingPayload(value.Field(i))+ }+ }+ case reflect.Slice:+ value.Set(reflect.MakeSlice(value.Type(), 2, 2))+ fillSettingPayload(value.Index(0))+ case reflect.Map:+ value.Set(reflect.MakeMap(value.Type()))+ key, item := reflect.New(value.Type().Key()).Elem(), reflect.New(value.Type().Elem()).Elem()+ fillSettingPayload(key)+ fillSettingPayload(item)+ value.SetMapIndex(key, item)+ case reflect.String:+ value.SetString("value")+ case reflect.Bool:+ value.SetBool(true)+ case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:+ value.SetInt(2)+ case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:+ value.SetUint(2)+ case reflect.Float32, reflect.Float64:+ value.SetFloat(2.5)+ }+}++func compareSettingPayload[Source, Data any](t *testing.T, route string, convert func(*Source) *Data) {+ t.Helper()+ for _, populate := range []bool{false, true} {+ source := new(Source)+ if populate {+ fillSettingPayload(reflect.ValueOf(source).Elem())+ }+ before, err := json.Marshal(source)+ if err != nil {+ t.Fatal(err)+ }+ after, err := json.Marshal(convert(source))+ if err != nil {+ t.Fatal(err)+ }+ if string(before) != string(after) {+ t.Fatalf("%s response mapping changed:\n%s\n%s", route, before, after)+ }+ if route == "" {+ continue+ }+ recorder := httptest.NewRecorder()+ recorder.Header().Set("Content-Type", "application/json")+ payload, err := json.Marshal(apicontract.Success(convert(source)))+ if err != nil {+ t.Fatal(err)+ }+ recorder.Write(payload)+ requireAPIContract(t, "POST", "/api/setting/"+route, recorder)+ }+}++func TestAPIContractSettingCompletePayloads(t *testing.T) {+ compareSettingPayload(t, "setSnippet", settingSnptPayload)+ compareSettingPayload(t, "setBazaar", settingBazaarPayload)+ compareSettingPayload(t, "setAI", settingAIPayload)+ compareSettingPayload(t, "setSecrets", settingSecretsPayload)+ compareSettingPayload(t, "setVariables", settingVariablesPayload)+ compareSettingPayload(t, "setFlashcard", settingFlashcardPayload)+ compareSettingPayload(t, "setEditor", settingEditorPayload)+ compareSettingPayload(t, "setExport", settingExportPayload)+ compareSettingPayload(t, "setFiletree", settingFileTreePayload)+ compareSettingPayload(t, "setSearch", settingSearchPayload)+ compareSettingPayload(t, "setAppearance", settingAppearancePayload)+ compareSettingPayload(t, "setEntryVisibility", settingEntryVisibilityPayload)+ compareSettingPayload(t, "", settingPublishPayload)+ compareSettingPayload(t, "getCloudUser", settingUserPayload)+ compareSettingPayload(t, "setBootAppearance", settingBootAppearanceSelectionPayload)+ compareSettingPayload(t, "", settingBootAppearancePayload)+}diff --git a/kernel/api/setting.go b/kernel/api/setting.goindex bf22e6cdef..2a7bbe8405 100644--- a/kernel/api/setting.go+++ b/kernel/api/setting.go@@ -18,7 +18,6 @@ package apiimport ("fmt"- "net/http""reflect""strings""sync"@@ -53,35 +52,28 @@ var setEditorReadOnly = contractHandler(apicontract.SetEditorReadOnly, func(c *greturn apicontract.Success(apicontract.Null{})})-func setConfSnippet(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- arg, ok := util.JsonArg(c, ret)- if !ok {- return+var setConfSnippet = contractHandler(apicontract.SetConfSnippet, func(c *gin.Context, request apicontract.SetConfSnippetRequest) (ret apicontract.Response[*apicontract.SettingSnpt]) {+ if err := request.ConfigError(); err != nil {+ return apicontract.Failure[*apicontract.SettingSnpt](-1, err.Error())}+ ret = apicontract.Success((*apicontract.SettingSnpt)(nil))- param, err := gulu.JSON.MarshalJSON(arg)- if err != nil {- ret.Code = -1- ret.Msg = err.Error()- return- }+ param := request.ConfigJSON()+ var err errorsnippet := &conf.Snpt{}if err = gulu.JSON.UnmarshalJSON(param, snippet); err != nil {- ret.Code = -1- ret.Msg = err.Error()+ ret = apicontract.Failure[*apicontract.SettingSnpt](-1, err.Error())return}model.Conf.Snippet = snippetmodel.Conf.Save()- ret.Data = snippet+ ret = apicontract.Success(settingSnptPayload(snippet))model.PushReloadSnippet(snippet)-}+ return+})var addVirtualBlockRefExclude = contractHandler(apicontract.AddVirtualBlockRefExclude, func(c *gin.Context, request apicontract.VirtualBlockRefRequest) apicontract.Response[apicontract.Null] {model.AddVirtualBlockRefExclude(request.Keywords)@@ -101,27 +93,18 @@ var refreshVirtualBlockRef = contractHandler(apicontract.RefreshVirtualBlockRef,return apicontract.Success(apicontract.Null{})})-func setBazaar(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- arg, ok := util.JsonArg(c, ret)- if !ok {- return+var setBazaar = contractHandler(apicontract.SetBazaar, func(c *gin.Context, request apicontract.SetBazaarRequest) (ret apicontract.Response[*apicontract.SettingBazaar]) {+ if err := request.ConfigError(); err != nil {+ return apicontract.Failure[*apicontract.SettingBazaar](-1, err.Error())}- delete(arg, "app")+ ret = apicontract.Success((*apicontract.SettingBazaar)(nil))- param, err := gulu.JSON.MarshalJSON(arg)- if err != nil {- ret.Code = -1- ret.Msg = err.Error()- return- }+ param := request.ConfigJSON()+ var err errorbazaar := &conf.Bazaar{}if err = gulu.JSON.UnmarshalJSON(param, bazaar); err != nil {- ret.Code = -1- ret.Msg = err.Error()+ ret = apicontract.Failure[*apicontract.SettingBazaar](-1, err.Error())return}@@ -142,27 +125,14 @@ func setBazaar(c *gin.Context) {model.PushReloadAllEnabledPlugins(newPetalsEnabled, bazaar.PetalDisabled, bazaarPetalStateRevision, true)}- ret.Data = bazaar-}--func setBazaarPetalDisabled(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }- petalDisabled, ok := arg["petalDisabled"].(bool)- if !ok {- ret.Code = -1- ret.Msg = "invalid petalDisabled"- return- }+ ret = apicontract.Success(settingBazaarPayload(bazaar))+ return+})+var setBazaarPetalDisabled = contractHandler(apicontract.SetBazaarPetalDisabled, func(c *gin.Context, request apicontract.SettingPetalDisabledRequest) apicontract.Response[apicontract.SettingPetalDisabledData] {+ petalDisabled := request.PetalDisabledbazaarPetalStateMu.Lock()defer bazaarPetalStateMu.Unlock()-petalsEnabled := model.IsPetalsEnabled()changed := model.Conf.Bazaar.PetalDisabled != petalDisabledmodel.Conf.Bazaar.PetalDisabled = petalDisabled@@ -175,8 +145,17 @@ func setBazaarPetalDisabled(c *gin.Context) {if changed {bazaarPetalStateRevision++}- ret.Data = model.PushReloadAllEnabledPlugins(newPetalsEnabled, petalDisabled, bazaarPetalStateRevision, changed)-}+ payload := model.PushReloadAllEnabledPlugins(newPetalsEnabled, petalDisabled, bazaarPetalStateRevision, changed)+ encoded, err := gulu.JSON.MarshalJSON(payload)+ if err != nil {+ return apicontract.Failure[apicontract.SettingPetalDisabledData](-1, err.Error())+ }+ var data apicontract.SettingPetalDisabledData+ if err = gulu.JSON.UnmarshalJSON(encoded, &data); err != nil {+ return apicontract.Failure[apicontract.SettingPetalDisabledData](-1, err.Error())+ }+ return apicontract.Success(data)+})func setKernelPluginsEnabled(enabled bool) {if enabled {@@ -190,40 +169,30 @@ func setKernelPluginsEnabled(enabled bool) {}}-func setAI(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- arg, ok := util.JsonArg(c, ret)- if !ok {- return+var setAI = contractHandler(apicontract.SetAI, func(c *gin.Context, request apicontract.SetAIRequest) (ret apicontract.Response[*apicontract.SettingAI]) {+ if err := request.ConfigError(); err != nil {+ return apicontract.Failure[*apicontract.SettingAI](-1, err.Error())}+ ret = apicontract.Success((*apicontract.SettingAI)(nil))- param, err := gulu.JSON.MarshalJSON(arg)- if err != nil {- ret.Code = -1- ret.Msg = err.Error()- return- }+ param := request.ConfigJSON()+ var err errorai := &conf.AI{}if err = gulu.JSON.UnmarshalJSON(param, ai); err != nil {- ret.Code = -1- ret.Msg = err.Error()+ ret = apicontract.Failure[*apicontract.SettingAI](-1, err.Error())return}if ai.MCP != nil {for _, server := range ai.MCP.Servers {if err = mcpclient.ValidateMCPServerEnvironment(server); err != nil {- ret.Code = -1- ret.Msg = "invalid MCP server environment: " + err.Error()+ ret = apicontract.Failure[*apicontract.SettingAI](-1, "invalid MCP server environment: "+err.Error())return}}}if err = validateAIProviderHeaders(ai); err != nil {- ret.Code = -1- ret.Msg = err.Error()+ ret = apicontract.Failure[*apicontract.SettingAI](-1, err.Error())return}@@ -271,8 +240,9 @@ func setAI(c *gin.Context) {}}- ret.Data = model.Conf.AI-}+ ret = apicontract.Success(settingAIPayload(model.Conf.AI))+ return+})func preserveMCPServerIDs(oldServers, newServers []conf.MCPServer) {oldIDsByName := make(map[string]string, len(oldServers))@@ -286,26 +256,18 @@ func preserveMCPServerIDs(oldServers, newServers []conf.MCPServer) {}}-func setSecrets(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- arg, ok := util.JsonArg(c, ret)- if !ok {- return+var setSecrets = contractHandler(apicontract.SetSecrets, func(c *gin.Context, request apicontract.SetSecretsRequest) (ret apicontract.Response[*apicontract.SettingSecrets]) {+ if err := request.ConfigError(); err != nil {+ return apicontract.Failure[*apicontract.SettingSecrets](-1, err.Error())}+ ret = apicontract.Success((*apicontract.SettingSecrets)(nil))- param, err := gulu.JSON.MarshalJSON(arg)- if err != nil {- ret.Code = -1- ret.Msg = err.Error()- return- }+ param := request.ConfigJSON()+ var err errorsecrets := &conf.Secrets{}if err = gulu.JSON.UnmarshalJSON(param, secrets); err != nil {- ret.Code = -1- ret.Msg = err.Error()+ ret = apicontract.Failure[*apicontract.SettingSecrets](-1, err.Error())return}@@ -313,29 +275,22 @@ func setSecrets(c *gin.Context) {model.Conf.Save()reconnectStdioMCPWithEnvironment()- ret.Data = model.Conf.Secrets-}--func setVariables(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+ ret = apicontract.Success(settingSecretsPayload(model.Conf.Secrets))+ return+})- arg, ok := util.JsonArg(c, ret)- if !ok {- return+var setVariables = contractHandler(apicontract.SetVariables, func(c *gin.Context, request apicontract.SetVariablesRequest) (ret apicontract.Response[*apicontract.SettingVariables]) {+ if err := request.ConfigError(); err != nil {+ return apicontract.Failure[*apicontract.SettingVariables](-1, err.Error())}+ ret = apicontract.Success((*apicontract.SettingVariables)(nil))- param, err := gulu.JSON.MarshalJSON(arg)- if err != nil {- ret.Code = -1- ret.Msg = err.Error()- return- }+ param := request.ConfigJSON()+ var err errorvariables := &conf.Variables{}if err = gulu.JSON.UnmarshalJSON(param, variables); err != nil {- ret.Code = -1- ret.Msg = err.Error()+ ret = apicontract.Failure[*apicontract.SettingVariables](-1, err.Error())return}@@ -343,8 +298,9 @@ func setVariables(c *gin.Context) {model.Conf.Save()reconnectStdioMCPWithEnvironment()- ret.Data = model.Conf.Variables-}+ ret = apicontract.Success(settingVariablesPayload(model.Conf.Variables))+ return+})func reconnectStdioMCPWithEnvironment() {if model.Conf.AI == nil || model.Conf.AI.MCP == nil {@@ -366,26 +322,18 @@ func stdioMCPServerIDsWithEnvironment(servers []conf.MCPServer) []string {return serverIDs}-func setFlashcard(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- arg, ok := util.JsonArg(c, ret)- if !ok {- return+var setFlashcard = contractHandler(apicontract.SetFlashcard, func(c *gin.Context, request apicontract.SetFlashcardRequest) (ret apicontract.Response[*apicontract.SettingFlashcard]) {+ if err := request.ConfigError(); err != nil {+ return apicontract.Failure[*apicontract.SettingFlashcard](-1, err.Error())}+ ret = apicontract.Success((*apicontract.SettingFlashcard)(nil))- param, err := gulu.JSON.MarshalJSON(arg)- if err != nil {- ret.Code = -1- ret.Msg = err.Error()- return- }+ param := request.ConfigJSON()+ var err errorflashcard := &conf.Flashcard{}if err = gulu.JSON.UnmarshalJSON(param, flashcard); err != nil {- ret.Code = -1- ret.Msg = err.Error()+ ret = apicontract.Failure[*apicontract.SettingFlashcard](-1, err.Error())return}@@ -400,38 +348,31 @@ func setFlashcard(c *gin.Context) {model.Conf.Flashcard = flashcardmodel.Conf.Save()- ret.Data = flashcard-}--func setEditor(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+ ret = apicontract.Success(settingFlashcardPayload(flashcard))+ return+})- arg, ok := util.JsonArg(c, ret)- if !ok {- return+var setEditor = contractHandler(apicontract.SetEditor, func(c *gin.Context, request apicontract.SetEditorRequest) (ret apicontract.Response[*apicontract.SettingEditor]) {+ if err := request.ConfigError(); err != nil {+ return apicontract.Failure[*apicontract.SettingEditor](-1, err.Error())}+ ret = apicontract.Success((*apicontract.SettingEditor)(nil))- param, err := gulu.JSON.MarshalJSON(arg)- if err != nil {- ret.Code = -1- ret.Msg = err.Error()- return- }+ param := request.ConfigJSON()+ var err erroroldGenerateHistoryInterval := model.Conf.Editor.GenerateHistoryIntervaleditor := conf.NewEditor()if err = gulu.JSON.UnmarshalJSON(param, editor); err != nil {- ret.Code = -1- ret.Msg = err.Error()+ ret = apicontract.Failure[*apicontract.SettingEditor](-1, err.Error())return}- if _, ok = arg["fontFamilies"]; !ok && editor.FontFamily == model.Conf.Editor.FontFamily &&+ if !request.HasField("fontFamilies") && editor.FontFamily == model.Conf.Editor.FontFamily &&editor.FontWeight == model.Conf.Editor.FontWeight {editor.FontFamilies = model.Conf.Editor.FontFamilies}- if _, ok = arg["codeFontFamilies"]; !ok {+ if !request.HasField("codeFontFamilies") {editor.CodeFontFamilies = model.Conf.Editor.CodeFontFamilies}editor.NormalizeFontFamilies()@@ -485,30 +426,22 @@ func setEditor(c *gin.Context) {util.MarkdownSettings = model.Conf.Editor.Markdown- ret.Data = model.Conf.Editor-}--func setExport(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+ ret = apicontract.Success(settingEditorPayload(model.Conf.Editor))+ return+})- arg, ok := util.JsonArg(c, ret)- if !ok {- return+var setExport = contractHandler(apicontract.SetExport, func(c *gin.Context, request apicontract.SetExportRequest) (ret apicontract.Response[*apicontract.SettingExport]) {+ if err := request.ConfigError(); err != nil {+ return apicontract.FailureWithTimeout[*apicontract.SettingExport](-1, err.Error(), 5000)}+ ret = apicontract.Success((*apicontract.SettingExport)(nil))- param, err := gulu.JSON.MarshalJSON(arg)- if err != nil {- ret.Code = -1- ret.Msg = err.Error()- return- }+ param := request.ConfigJSON()+ var err errorexport := &conf.Export{}if err = gulu.JSON.UnmarshalJSON(param, export); err != nil {- ret.Code = -1- ret.Msg = err.Error()- ret.Data = map[string]any{"closeTimeout": 5000}+ ret = apicontract.FailureWithTimeout[*apicontract.SettingExport](-1, err.Error(), 5000)return}@@ -526,8 +459,9 @@ func setExport(c *gin.Context) {util.InitPandoc(export.PandocBin)}- ret.Data = model.Conf.Export-}+ ret = apicontract.Success(settingExportPayload(model.Conf.Export))+ return+})var getPandocBin = contractHandler(apicontract.GetPandocBin, func(c *gin.Context, request apicontract.EmptyRequest) apicontract.Response[string] {pandocRuntime := util.GetPandocRuntime()@@ -541,29 +475,21 @@ var getPandocBin = contractHandler(apicontract.GetPandocBin, func(c *gin.Contextreturn apicontract.Success(pandocRuntime.BinPath)})-func setFiletree(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- arg, ok := util.JsonArg(c, ret)- if !ok {- return+var setFiletree = contractHandler(apicontract.SetFiletree, func(c *gin.Context, request apicontract.SetFiletreeRequest) (ret apicontract.Response[*apicontract.SettingFileTree]) {+ if err := request.ConfigError(); err != nil {+ return apicontract.Failure[*apicontract.SettingFileTree](-1, err.Error())}+ ret = apicontract.Success((*apicontract.SettingFileTree)(nil))oldSortMode := model.Conf.FileTree.Sort- param, err := gulu.JSON.MarshalJSON(arg)- if err != nil {- ret.Code = -1- ret.Msg = err.Error()- return- }+ param := request.ConfigJSON()+ var err errorfileTree := conf.NewFileTree()fileTree.BoxDocEnabled = nilfileTree.UseSVGDefaultIcon = nilif err = gulu.JSON.UnmarshalJSON(param, fileTree); err != nil {- ret.Code = -1- ret.Msg = err.Error()+ ret = apicontract.Failure[*apicontract.SettingFileTree](-1, err.Error())return}if nil == fileTree.BoxDocEnabled {@@ -630,29 +556,22 @@ func setFiletree(c *gin.Context) {util.UseSingleLineSave = model.Conf.FileTree.UseSingleLineSaveutil.LargeFileWarningSize = model.Conf.FileTree.LargeFileWarningSize- ret.Data = model.Conf.FileTree-}--func setSearch(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+ ret = apicontract.Success(settingFileTreePayload(model.Conf.FileTree))+ return+})- arg, ok := util.JsonArg(c, ret)- if !ok {- return+var setSearch = contractHandler(apicontract.SetSearch, func(c *gin.Context, request apicontract.SetSearchRequest) (ret apicontract.Response[*apicontract.SettingSearch]) {+ if err := request.ConfigError(); err != nil {+ return apicontract.Failure[*apicontract.SettingSearch](-1, err.Error())}+ ret = apicontract.Success((*apicontract.SettingSearch)(nil))- param, err := gulu.JSON.MarshalJSON(arg)- if err != nil {- ret.Code = -1- ret.Msg = err.Error()- return- }+ param := request.ConfigJSON()+ var err errors := &conf.Search{}if err = gulu.JSON.UnmarshalJSON(param, s); err != nil {- ret.Code = -1- ret.Msg = err.Error()+ ret = apicontract.Failure[*apicontract.SettingSearch](-1, err.Error())return}@@ -694,66 +613,46 @@ func setSearch(c *gin.Context) {oldVirtualRefDoc != s.VirtualRefDoc {model.ResetVirtualBlockRefCache()}- ret.Data = s-}--func setKeymap(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }+ ret = apicontract.Success(settingSearchPayload(s))+ return+})- param, err := gulu.JSON.MarshalJSON(arg["data"])+var setKeymap = contractHandler(apicontract.SetKeymap, func(c *gin.Context, request apicontract.SettingKeymapRequest) apicontract.Response[apicontract.Null] {+ param, err := gulu.JSON.MarshalJSON(request.Data)if err != nil {- ret.Code = -1- ret.Msg = err.Error()- return+ return apicontract.Failure[apicontract.Null](-1, err.Error())}-keymap := &conf.Keymap{}if err = gulu.JSON.UnmarshalJSON(param, keymap); err != nil {- ret.Code = -1- ret.Msg = err.Error()- return+ return apicontract.Failure[apicontract.Null](-1, err.Error())}-model.Conf.Keymap = keymapmodel.Conf.Save()-}--func setAppearance(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+ return apicontract.Success(apicontract.Null{})+})- arg, ok := util.JsonArg(c, ret)- if !ok {- return+var setAppearance = contractHandler(apicontract.SetAppearance, func(c *gin.Context, request apicontract.SetAppearanceRequest) (ret apicontract.Response[*apicontract.SettingAppearance]) {+ if err := request.ConfigError(); err != nil {+ return apicontract.Failure[*apicontract.SettingAppearance](-1, err.Error())}+ ret = apicontract.Success((*apicontract.SettingAppearance)(nil))- param, err := gulu.JSON.MarshalJSON(arg)- if err != nil {- ret.Code = -1- ret.Msg = err.Error()- return- }+ param := request.ConfigJSON()+ var err errorappearance := &conf.Appearance{}if err = gulu.JSON.UnmarshalJSON(param, appearance); err != nil {- ret.Code = -1- ret.Msg = err.Error()+ ret = apicontract.Failure[*apicontract.SettingAppearance](-1, err.Error())return}if nil == appearance.EntryVisibility {appearance.EntryVisibility = model.Conf.Appearance.EntryVisibility}- if _, exists := arg["bodyGradient"]; !exists {+ if !request.HasField("bodyGradient") {appearance.BodyGradient = model.Conf.Appearance.BodyGradient}- if _, exists := arg["globalFontFamilies"]; !exists {+ if !request.HasField("globalFontFamilies") {appearance.GlobalFontFamilies = model.Conf.Appearance.GlobalFontFamilies}appearance.NormalizeGlobalFontFamilies()@@ -771,181 +670,97 @@ func setAppearance(c *gin.Context) {model.InitAppearance()model.WatchThemes()- ret.Data = model.Conf.Appearance+ ret = apicontract.Success(settingAppearancePayload(model.Conf.Appearance))util.BroadcastByType("main", "setAppearance", 0, "", model.Conf.Appearance)-}--func getBootAppearances(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+ return+})+var getBootAppearances = contractHandler(apicontract.GetBootAppearances, func(c *gin.Context, request apicontract.EmptyRequest) apicontract.Response[apicontract.SettingBootAppearancesData] {appearances := model.GetBootAppearances()selection := model.GetBootAppearanceSelection()- current := map[string]string{"provider": "", "appearance": ""}+ current := apicontract.SettingBootAppearanceCurrent{}if !util.SafeMode {for _, appearance := range appearances {if appearance.Provider == selection.Provider && appearance.Appearance == selection.Appearance {- current["provider"] = selection.Provider- current["appearance"] = selection.Appearance+ current.Provider, current.Appearance = selection.Provider, selection.Appearancebreak}}}- ret.Data = map[string]any{- "appearances": appearances,- "current": current,+ var items []*apicontract.SettingBootAppearance+ if appearances != nil {+ items = make([]*apicontract.SettingBootAppearance, len(appearances))+ for i, item := range appearances {+ items[i] = settingBootAppearancePayload(item)+ }}-}--func setBootAppearance(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+ return apicontract.Success(apicontract.SettingBootAppearancesData{Appearances: items, Current: current})+})- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }- var provider, appearance string- if !util.ParseJsonArgs(arg, ret,- util.BindJsonArg("provider", &provider, false, false),- util.BindJsonArg("appearance", &appearance, false, false),- ) {- return- }- selection, err := model.SetBootAppearance(provider, appearance)+var setBootAppearance = contractHandler(apicontract.SetBootAppearance, func(c *gin.Context, request apicontract.SettingBootAppearanceRequest) apicontract.Response[*apicontract.SettingBootAppearanceSelection] {+ selection, err := model.SetBootAppearance(request.Provider, request.Appearance)if err != nil {- ret.Code = -1- ret.Msg = err.Error()- return+ return apicontract.Failure[*apicontract.SettingBootAppearanceSelection](-1, err.Error())}- ret.Data = selection-}--func setEntryVisibility(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+ return apicontract.Success(settingBootAppearanceSelectionPayload(&selection))+})- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }- param, err := gulu.JSON.MarshalJSON(arg)- if err != nil {- ret.Code = -1- ret.Msg = err.Error()- return+var setEntryVisibility = contractHandler(apicontract.SetEntryVisibility, func(c *gin.Context, request apicontract.SetEntryVisibilityRequest) (ret apicontract.Response[*apicontract.SettingEntryVisibility]) {+ if err := request.ConfigError(); err != nil {+ return apicontract.Failure[*apicontract.SettingEntryVisibility](-1, err.Error())}+ ret = apicontract.Success((*apicontract.SettingEntryVisibility)(nil))++ param := request.ConfigJSON()+ var err errorentryVisibility := &conf.EntryVisibility{}if err = gulu.JSON.UnmarshalJSON(param, entryVisibility); err != nil {- ret.Code = -1- ret.Msg = err.Error()+ ret = apicontract.Failure[*apicontract.SettingEntryVisibility](-1, err.Error())return}entryVisibility = conf.NormalizeEntryVisibility(entryVisibility, conf.EntryVisibilityProfileFull)model.Conf.Appearance.EntryVisibility = entryVisibilitymodel.Conf.Save()- ret.Data = entryVisibility+ ret = apicontract.Success(settingEntryVisibilityPayload(entryVisibility))util.BroadcastByType("main", "setEntryVisibility", 0, "", entryVisibility)-}--func setIcon(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }-- var icon string- if !util.ParseJsonArgs(arg, ret,- util.BindJsonArg("icon", &icon, true, true),- ) {- return- }+ return+})- if err := model.SetIcon(icon); err != nil {- ret.Code = -1- ret.Msg = err.Error()- return+var setIcon = contractHandler(apicontract.SetIcon, func(c *gin.Context, request apicontract.SettingIconRequest) apicontract.Response[apicontract.Null] {+ if err := model.SetIcon(request.Icon); err != nil {+ return apicontract.Failure[apicontract.Null](-1, err.Error())}-model.InitAppearance()util.BroadcastByType("main", "setAppearance", 0, "", model.Conf.Appearance)-}--func setTheme(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- arg, ok := util.JsonArg(c, ret)- if !ok {- return- }-- var theme, appearanceMode string- var modesRaw []any- if !util.ParseJsonArgs(arg, ret,- util.BindJsonArg("theme", &theme, false, false),- util.BindJsonArg("modes", &modesRaw, false, false),- util.BindJsonArg("appearanceMode", &appearanceMode, false, false),- ) {- return- }+ return apicontract.Success(apicontract.Null{})+})- theme, appearanceMode = strings.TrimSpace(theme), strings.TrimSpace(appearanceMode)+var setTheme = contractHandler(apicontract.SetTheme, func(c *gin.Context, request apicontract.SettingThemeRequest) apicontract.Response[apicontract.Null] {modes := make([]int, 0, 2)- if theme != "" {- for _, m := range modesRaw {- mf, ok := m.(float64)- if !ok {- break- }- mi := int(mf)- if mi != 0 && mi != 1 {- break- }- modes = append(modes, mi)- }- if len(modes) == 0 {- ret.Code = -1- ret.Msg = "[modes] is required ([0] for light, [1] for dark, [0,1] for both)"- return- }+ for _, value := range request.Modes {+ modes = append(modes, int(value))}- // 没有 theme 时静默忽略 modes-- if err := model.SetTheme(theme, modes, appearanceMode); err != nil {- ret.Code = -1- ret.Msg = err.Error()- return+ if err := model.SetTheme(request.Theme, modes, request.AppearanceMode); err != nil {+ return apicontract.Failure[apicontract.Null](-1, err.Error())}-model.InitAppearance()model.WatchThemes()util.BroadcastByType("main", "setAppearance", 0, "", model.Conf.Appearance)-}--func setPublish(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+ return apicontract.Success(apicontract.Null{})+})- arg, ok := util.JsonArg(c, ret)- if !ok {- return+var setPublish = contractHandler(apicontract.SetPublish, func(c *gin.Context, request apicontract.SetPublishRequest) (ret apicontract.Response[apicontract.SettingPublishData]) {+ if err := request.ConfigError(); err != nil {+ return apicontract.Failure[apicontract.SettingPublishData](-1, err.Error())}+ ret = apicontract.Success(apicontract.SettingPublishData{})- param, err := gulu.JSON.MarshalJSON(arg)- if err != nil {- ret.Code = -1- ret.Msg = err.Error()- return- }+ param := request.ConfigJSON()+ var err errorpublish := &conf.Publish{}if err = gulu.JSON.UnmarshalJSON(param, publish); err != nil {- ret.Code = -1- ret.Msg = err.Error()+ ret = apicontract.Failure[apicontract.SettingPublishData](-1, err.Error())return}@@ -965,19 +780,16 @@ func setPublish(c *gin.Context) {usernames := map[string]bool{}for _, account := range publish.Auth.Accounts {if nil == account || "" == account.Username {- ret.Code = -1- ret.Msg = model.Conf.Language(361)+ ret = apicontract.Failure[apicontract.SettingPublishData](-1, model.Conf.Language(361))return}if usernames[account.Username] {- ret.Code = -1- ret.Msg = model.Conf.Language(362)+ ret = apicontract.Failure[apicontract.SettingPublishData](-1, model.Conf.Language(362))return}usernames[account.Username] = trueif 8 > len(account.Password) {- ret.Code = -1- ret.Msg = model.Conf.Language(363)+ ret = apicontract.Failure[apicontract.SettingPublishData](-1, model.Conf.Language(363))return}}@@ -988,110 +800,64 @@ func setPublish(c *gin.Context) {port, err := proxy.InitPublishService()if err != nil {- ret.Code = -1- ret.Msg = err.Error()+ ret = apicontract.Failure[apicontract.SettingPublishData](-1, err.Error())return}- ret.Data = map[string]any{- "port": port,- "publish": model.Conf.Publish,- }+ ret = apicontract.Success(apicontract.SettingPublishData{Port: port, Publish: settingPublishPayload(model.Conf.Publish)})util.BroadcastByType("main", "setPublish", 0, "", model.Conf.Publish)-}--func getPublish(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- if port, err := proxy.InitPublishService(); err != nil {- ret.Code = -1- ret.Msg = err.Error()- } else {- ret.Data = map[string]any{- "port": port,- "publish": model.Conf.Publish,- }- }-}--func getCloudUser(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- if !model.IsAdminRoleContext(c) {- return- }+ return+})- arg, ok := util.JsonArg(c, ret)- if !ok {- return+var getPublish = contractHandler(apicontract.GetPublish, func(c *gin.Context, request apicontract.EmptyRequest) apicontract.Response[apicontract.SettingPublishData] {+ port, err := proxy.InitPublishService()+ if err != nil {+ return apicontract.Failure[apicontract.SettingPublishData](-1, err.Error())}+ return apicontract.Success(apicontract.SettingPublishData{Port: port, Publish: settingPublishPayload(model.Conf.Publish)})+})- t := arg["token"]- var token string- if nil != t {- token = t.(string)- }- user, err := model.RefreshUser(token)- ret.Data = user- if nil == err {- return+var getCloudUser = contractHandler(apicontract.GetCloudUser, func(c *gin.Context, request apicontract.SettingCloudUserRequest) apicontract.Response[*apicontract.SettingUser] {+ user, err := model.RefreshUser(request.Token)+ data := settingUserPayload(user)+ if err == nil {+ return apicontract.Success(data)}if model.IsInvalidUserRefresh(err) {- ret.Code = 255- ret.Msg = model.Conf.Language(19)- ret.Data = nil- return+ return apicontract.GetCloudUser.FailureWithData(255, model.Conf.Language(19), nil)}if model.IsCloudAssetSourceChange(err) {- ret.Code = 1- ret.Msg = err.Error()- return+ return apicontract.GetCloudUser.FailureWithData(1, err.Error(), data)}- ret.Code = 1- ret.Msg = model.Conf.Language(18)-}--func logoutCloudUser(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- model.LogoutUser()-}--func login2faCloudUser(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)-- arg, ok := util.JsonArg(c, ret)- if !ok {- return+ return apicontract.GetCloudUser.FailureWithData(1, model.Conf.Language(18), data)+}, func(c *gin.Context) *apicontract.Response[*apicontract.SettingUser] {+ if model.IsAdminRoleContext(c) {+ return nil}+ ret := apicontract.Success((*apicontract.SettingUser)(nil))+ return &ret+})- token := arg["token"].(string)- code := arg["code"].(string)- loginResult := model.Login2fa(token, code)- ret.Code = loginResult.Code- ret.Msg = loginResult.Msg- ret.Data = loginResult.Data-}--func setEmoji(c *gin.Context) {- ret := gulu.Ret.NewResult()- defer c.JSON(http.StatusOK, ret)+var logoutCloudUser = contractHandler(apicontract.LogoutCloudUser, func(c *gin.Context, request apicontract.EmptyRequest) apicontract.Response[apicontract.Null] {+ model.LogoutUser()+ return apicontract.Success(apicontract.Null{})+})- arg, ok := util.JsonArg(c, ret)- if !ok {- return+var login2faCloudUser = contractHandler(apicontract.Login2faCloudUser, func(c *gin.Context, request apicontract.SettingLogin2faRequest) apicontract.Response[apicontract.Login2faEnvelope] {+ result := model.Login2fa(request.Token, request.Code)+ encoded, err := gulu.JSON.MarshalJSON(result)+ if err != nil {+ return apicontract.Failure[apicontract.Login2faEnvelope](-1, err.Error())}-- argEmoji := arg["emoji"].([]any)- emoji := make([]string, 0, len(argEmoji))- for _, ae := range argEmoji {- emoji = append(emoji, ae.(string))+ var envelope apicontract.Login2faEnvelope+ if err = gulu.JSON.UnmarshalJSON(encoded, &envelope); err != nil {+ return apicontract.Failure[apicontract.Login2faEnvelope](-1, err.Error())}+ return apicontract.SuccessDirectJSON(envelope)+})- model.Conf.Editor.Emoji = util.FilterRecentIconValues(emoji)-}+var setEmoji = contractHandler(apicontract.SetEmoji, func(c *gin.Context, request apicontract.SettingEmojiRequest) apicontract.Response[apicontract.Null] {+ model.Conf.Editor.Emoji = util.FilterRecentIconValues(request.Emoji)+ return apicontract.Success(apicontract.Null{})+})diff --git a/kernel/api/setting_contract.go b/kernel/api/setting_contract.gonew file mode 100644index 0000000000..ecbf31a612--- /dev/null+++ b/kernel/api/setting_contract.go@@ -0,0 +1,831 @@+package api++import (+ "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 settingSnptPayload(value *conf.Snpt) *apicontract.SettingSnpt {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingSnpt{}+ result.EnabledCSS = value.EnabledCSS+ result.EnabledJS = value.EnabledJS+ return result+}++func settingBazaarPayload(value *conf.Bazaar) *apicontract.SettingBazaar {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingBazaar{}+ result.Trust = value.Trust+ result.PetalDisabled = value.PetalDisabled+ return result+}++func settingAIPayload(value *conf.AI) *apicontract.SettingAI {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingAI{}+ result.MCP = settingMCPPayload(value.MCP)+ result.Embedding = settingEmbeddingPayload(value.Embedding)+ result.Rerank = settingRerankPayload(value.Rerank)+ result.Agent = settingAgentPayload(value.Agent)+ result.Editing = settingEditingPayload(value.Editing)+ result.ImageGeneration = settingImageGenerationPayload(value.ImageGeneration)+ if value.Providers != nil {+ result.Providers = make([]*apicontract.SettingProvider, len(value.Providers))+ for i, item := range value.Providers {+ result.Providers[i] = settingProviderPayload(item)+ }+ }+ return result+}++func settingMCPPayload(value *conf.MCP) *apicontract.SettingMCP {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingMCP{}+ if value.Servers != nil {+ result.Servers = make([]apicontract.SettingMCPServer, len(value.Servers))+ for i, item := range value.Servers {+ result.Servers[i] = *settingMCPServerPayload(&item)+ }+ }+ result.ExposurePolicy = settingCapabilityPolicyPayload(value.ExposurePolicy)+ return result+}++func settingMCPServerPayload(value *conf.MCPServer) *apicontract.SettingMCPServer {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingMCPServer{}+ result.ID = value.ID+ result.Name = value.Name+ result.Enabled = value.Enabled+ result.Type = value.Type+ result.Command = value.Command+ result.Args = value.Args+ result.InheritEnv = value.InheritEnv+ result.Env = value.Env+ result.URL = value.URL+ result.Headers = value.Headers+ result.Timeout = value.Timeout+ result.DisableStandaloneSSE = value.DisableStandaloneSSE+ result.TrustToolAnnotations = value.TrustToolAnnotations+ return result+}++func settingCapabilityPolicyPayload(value *conf.CapabilityPolicy) *apicontract.SettingCapabilityPolicy {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingCapabilityPolicy{}+ result.Default = value.Default+ result.Overrides = value.Overrides+ return result+}++func settingEmbeddingPayload(value *conf.Embedding) *apicontract.SettingEmbedding {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingEmbedding{}+ result.ID = value.ID+ result.Enabled = value.Enabled+ result.APIKey = value.APIKey+ result.BaseURL = value.BaseURL+ result.Name = value.Name+ result.Timeout = value.Timeout+ result.Dimensions = value.Dimensions+ return result+}++func settingRerankPayload(value *conf.Rerank) *apicontract.SettingRerank {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingRerank{}+ result.ID = value.ID+ result.Enabled = value.Enabled+ result.APIKey = value.APIKey+ result.Endpoint = value.Endpoint+ result.Name = value.Name+ result.RequestFormat = string(value.RequestFormat)+ result.Timeout = value.Timeout+ result.CandidateCount = value.CandidateCount+ return result+}++func settingAgentPayload(value *conf.Agent) *apicontract.SettingAgent {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingAgent{}+ result.ModelID = value.ModelID+ result.SessionTimeout = value.SessionTimeout+ result.StreamIdleTimeout = value.StreamIdleTimeout+ result.ConfirmTimeout = value.ConfirmTimeout+ result.MaxRetries = value.MaxRetries+ result.Temperature = value.Temperature+ result.MaxCompletionTokens = value.MaxCompletionTokens+ result.MaxToolCallRounds = value.MaxToolCallRounds+ result.CapabilityPolicy = settingCapabilityPolicyPayload(value.CapabilityPolicy)+ result.ApprovalPolicy = settingApprovalPolicyPayload(value.ApprovalPolicy)+ result.Skills = settingAgentSkillsPayload(value.Skills)+ return result+}++func settingApprovalPolicyPayload(value *conf.ApprovalPolicy) *apicontract.SettingApprovalPolicy {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingApprovalPolicy{}+ result.Default = value.Default+ if value.Overrides != nil {+ result.Overrides = make(map[string]*apicontract.SettingCapabilityApproval, len(value.Overrides))+ for key, item := range value.Overrides {+ result.Overrides[key] = settingCapabilityApprovalPayload(item)+ }+ }+ return result+}++func settingCapabilityApprovalPayload(value *conf.CapabilityApproval) *apicontract.SettingCapabilityApproval {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingCapabilityApproval{}+ result.Default = value.Default+ result.Actions = value.Actions+ return result+}++func settingAgentSkillsPayload(value *conf.AgentSkills) *apicontract.SettingAgentSkills {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingAgentSkills{}+ result.UserEnabled = value.UserEnabled+ return result+}++func settingEditingPayload(value *conf.Editing) *apicontract.SettingEditing {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingEditing{}+ result.ModelID = value.ModelID+ result.MaxHistoryMessages = value.MaxHistoryMessages+ result.Temperature = value.Temperature+ result.MaxCompletionTokens = value.MaxCompletionTokens+ return result+}++func settingImageGenerationPayload(value *conf.ImageGeneration) *apicontract.SettingImageGeneration {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingImageGeneration{}+ result.ModelID = value.ModelID+ result.RequestTimeout = value.RequestTimeout+ result.Size = value.Size+ result.Quality = value.Quality+ result.OutputFormat = value.OutputFormat+ return result+}++func settingProviderPayload(value *conf.Provider) *apicontract.SettingProvider {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingProvider{}+ result.Headers = value.Headers+ result.ID = value.ID+ result.DisplayName = value.DisplayName+ result.Enabled = value.Enabled+ result.APIKey = value.APIKey+ result.BaseURL = value.BaseURL+ result.Protocol = value.Protocol+ result.RequestTimeout = value.RequestTimeout+ if value.Models != nil {+ result.Models = make([]*apicontract.SettingModel, len(value.Models))+ for i, item := range value.Models {+ result.Models[i] = settingModelPayload(item)+ }+ }+ return result+}++func settingModelPayload(value *conf.Model) *apicontract.SettingModel {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingModel{}+ result.ID = value.ID+ result.DisplayName = value.DisplayName+ result.Enabled = value.Enabled+ result.Name = value.Name+ result.ContextLength = value.ContextLength+ return result+}++func settingSecretsPayload(value *conf.Secrets) *apicontract.SettingSecrets {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingSecrets{}+ if value.Items != nil {+ result.Items = make([]*apicontract.SettingSecret, len(value.Items))+ for i, item := range value.Items {+ result.Items[i] = settingSecretPayload(item)+ }+ }+ return result+}++func settingSecretPayload(value *conf.Secret) *apicontract.SettingSecret {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingSecret{}+ result.Name = value.Name+ result.Value = value.Value+ result.AllowedHosts = value.AllowedHosts+ return result+}++func settingVariablesPayload(value *conf.Variables) *apicontract.SettingVariables {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingVariables{}+ if value.Items != nil {+ result.Items = make([]*apicontract.SettingVariable, len(value.Items))+ for i, item := range value.Items {+ result.Items[i] = settingVariablePayload(item)+ }+ }+ return result+}++func settingVariablePayload(value *conf.Variable) *apicontract.SettingVariable {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingVariable{}+ result.Name = value.Name+ result.Value = value.Value+ return result+}++func settingFlashcardPayload(value *conf.Flashcard) *apicontract.SettingFlashcard {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingFlashcard{}+ result.NewCardLimit = value.NewCardLimit+ result.ReviewCardLimit = value.ReviewCardLimit+ result.Mark = value.Mark+ result.List = value.List+ result.Blockquote = value.Blockquote+ result.Callout = value.Callout+ result.SuperBlock = value.SuperBlock+ result.Heading = value.Heading+ result.Deck = value.Deck+ result.ReviewMode = value.ReviewMode+ result.RequestRetention = value.RequestRetention+ result.MaximumInterval = value.MaximumInterval+ result.Weights = value.Weights+ return result+}++func settingEditorPayload(value *conf.Editor) *apicontract.SettingEditor {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingEditor{}+ result.AllowSVGScript = value.AllowSVGScript+ result.AllowHTMLBLockScript = value.AllowHTMLBLockScript+ result.CursorSurroundingLines = value.CursorSurroundingLines+ result.FontSize = value.FontSize+ result.FontSizeScrollZoom = value.FontSizeScrollZoom+ result.FontFamily = value.FontFamily+ result.FontWeight = value.FontWeight+ result.FontFamilyDisplay = value.FontFamilyDisplay+ if value.FontFamilies != nil {+ result.FontFamilies = make([]*apicontract.SettingEditorFont, len(value.FontFamilies))+ for i, item := range value.FontFamilies {+ result.FontFamilies[i] = settingEditorFontPayload(item)+ }+ }+ if value.CodeFontFamilies != nil {+ result.CodeFontFamilies = make([]*apicontract.SettingEditorFont, len(value.CodeFontFamilies))+ for i, item := range value.CodeFontFamilies {+ result.CodeFontFamilies[i] = settingEditorFontPayload(item)+ }+ }+ result.CodeSyntaxHighlightLineNum = value.CodeSyntaxHighlightLineNum+ result.CodeTabSpaces = value.CodeTabSpaces+ result.CodeLineWrap = value.CodeLineWrap+ result.CodeLigatures = value.CodeLigatures+ result.DisplayBookmarkIcon = value.DisplayBookmarkIcon+ result.DisplayNetImgMark = value.DisplayNetImgMark+ result.DatabaseAttrShow = value.DatabaseAttrShow+ result.DatabaseAttrClickMode = value.DatabaseAttrClickMode+ result.DatabaseAttrViewMode = value.DatabaseAttrViewMode+ result.DatabaseAttrHideEmpty = value.DatabaseAttrHideEmpty+ result.DatabaseAttrUseTabs = value.DatabaseAttrUseTabs+ result.GenerateHistoryInterval = value.GenerateHistoryInterval+ result.HistoryRetentionDays = value.HistoryRetentionDays+ result.Emoji = value.Emoji+ result.VirtualBlockRef = value.VirtualBlockRef+ result.VirtualBlockRefExclude = value.VirtualBlockRefExclude+ result.VirtualBlockRefInclude = value.VirtualBlockRefInclude+ result.CheckBlockRef = value.CheckBlockRef+ result.BlockRefDynamicAnchorTextMaxLen = value.BlockRefDynamicAnchorTextMaxLen+ result.AssetOpen = settingAssetOpenPayload(value.AssetOpen)+ result.PlantUMLServePath = value.PlantUMLServePath+ result.FullWidth = value.FullWidth+ result.KaTexMacros = value.KaTexMacros+ result.ReadOnly = value.ReadOnly+ result.EmbedBlockBreadcrumb = value.EmbedBlockBreadcrumb+ result.ListLogicalOutdent = value.ListLogicalOutdent+ result.ListItemDotNumberClickFocus = value.ListItemDotNumberClickFocus+ result.FloatWindowMode = value.FloatWindowMode+ result.FloatWindowDelay = value.FloatWindowDelay+ result.KeepLoadedContent = value.KeepLoadedContent+ result.DynamicLoadBlocks = value.DynamicLoadBlocks+ result.Justify = value.Justify+ result.RTL = value.RTL+ result.Spellcheck = value.Spellcheck+ result.SpellcheckLanguages = value.SpellcheckLanguages+ result.HashTagSearch = value.HashTagSearch+ result.OnlySearchForDoc = value.OnlySearchForDoc+ result.BacklinkExpandCount = value.BacklinkExpandCount+ result.BackmentionExpandCount = value.BackmentionExpandCount+ result.BacklinkMentionExclude = value.BacklinkMentionExclude+ result.BacklinkContainChildren = value.BacklinkContainChildren+ result.BacklinkHideReference = value.BacklinkHideReference+ result.BacklinkShowBottom = value.BacklinkShowBottom+ result.BacklinkSort = value.BacklinkSort+ result.BackmentionSort = value.BackmentionSort+ result.HeadingNumber = value.HeadingNumber+ result.HeadingNumberFormat = value.HeadingNumberFormat+ result.HeadingEmbedMode = value.HeadingEmbedMode+ result.PasteURLAutoConvert = value.PasteURLAutoConvert+ result.DragHTMLFileToIframe = value.DragHTMLFileToIframe+ result.Markdown = settingMarkdownPayload(value.Markdown)+ return result+}++func settingEditorFontPayload(value *conf.EditorFont) *apicontract.SettingEditorFont {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingEditorFont{}+ result.Family = value.Family+ result.Weight = value.Weight+ result.DisplayName = value.DisplayName+ return result+}++func settingAssetOpenPayload(value *conf.AssetOpen) *apicontract.SettingAssetOpen {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingAssetOpen{}+ result.Click = value.Click+ result.CtrlClick = value.CtrlClick+ result.AltClick = value.AltClick+ result.ShiftClick = value.ShiftClick+ return result+}++func settingMarkdownPayload(value *util.Markdown) *apicontract.SettingMarkdown {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingMarkdown{}+ result.InlineAsterisk = value.InlineAsterisk+ result.InlineUnderscore = value.InlineUnderscore+ result.InlineSup = value.InlineSup+ result.InlineSub = value.InlineSub+ result.InlineTag = value.InlineTag+ result.InlineMath = value.InlineMath+ result.InlineStrikethrough = value.InlineStrikethrough+ result.InlineFullWidthStrikethrough = value.InlineFullWidthStrikethrough+ result.BlockFullWidthTaskList = value.BlockFullWidthTaskList+ result.InlineMark = value.InlineMark+ result.CodeBlockMiddleDot = value.CodeBlockMiddleDot+ return result+}++func settingExportPayload(value *conf.Export) *apicontract.SettingExport {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingExport{}+ result.ParagraphBeginningSpace = value.ParagraphBeginningSpace+ result.AddTitle = value.AddTitle+ result.BlockRefMode = value.BlockRefMode+ result.BlockEmbedMode = value.BlockEmbedMode+ result.BlockRefTextLeft = value.BlockRefTextLeft+ result.BlockRefTextRight = value.BlockRefTextRight+ result.TagOpenMarker = value.TagOpenMarker+ result.TagCloseMarker = value.TagCloseMarker+ result.FileAnnotationRefMode = value.FileAnnotationRefMode+ result.PandocBin = value.PandocBin+ result.PandocParams = value.PandocParams+ result.DocxTemplate = value.DocxTemplate+ result.RemoveAssetsID = value.RemoveAssetsID+ result.MarkdownYFM = value.MarkdownYFM+ result.InlineMemo = value.InlineMemo+ result.IncludeSubDocs = value.IncludeSubDocs+ result.IncludeRelatedDocs = value.IncludeRelatedDocs+ result.PDFFooter = value.PDFFooter+ result.PDFWatermarkStr = value.PDFWatermarkStr+ result.PDFWatermarkDesc = value.PDFWatermarkDesc+ result.ImageWatermarkStr = value.ImageWatermarkStr+ result.ImageWatermarkDesc = value.ImageWatermarkDesc+ return result+}++func settingFileTreePayload(value *conf.FileTree) *apicontract.SettingFileTree {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingFileTree{}+ result.AlwaysSelectOpenedFile = value.AlwaysSelectOpenedFile+ result.OpenFilesUseCurrentTab = value.OpenFilesUseCurrentTab+ result.CloseTabOnDoubleClick = value.CloseTabOnDoubleClick+ result.DocIconClickExpand = value.DocIconClickExpand+ result.ParentDocClickExpand = value.ParentDocClickExpand+ result.BoxDocEnabled = value.BoxDocEnabled+ result.UseSVGDefaultIcon = value.UseSVGDefaultIcon+ result.RefCreateSaveBox = value.RefCreateSaveBox+ result.RefCreateSavePath = value.RefCreateSavePath+ result.DocCreateSaveBox = value.DocCreateSaveBox+ result.DocCreateSavePath = value.DocCreateSavePath+ result.DocCreateTemplatePath = value.DocCreateTemplatePath+ result.ShorthandSaveBox = value.ShorthandSaveBox+ result.ShorthandSavePath = value.ShorthandSavePath+ result.MaxListCount = value.MaxListCount+ result.MaxOpenTabCount = value.MaxOpenTabCount+ result.AllowCreateDeeper = value.AllowCreateDeeper+ result.RemoveDocWithoutConfirm = value.RemoveDocWithoutConfirm+ result.CloseTabsOnStart = value.CloseTabsOnStart+ result.TabStartupMode = value.TabStartupMode+ result.UseSingleLineSave = value.UseSingleLineSave+ result.LargeFileWarningSize = value.LargeFileWarningSize+ result.CreateDocAtTop = value.CreateDocAtTop+ result.Sort = value.Sort+ result.RecentDocsMaxListCount = value.RecentDocsMaxListCount+ result.NoSplitScreenWhenOpenTab = value.NoSplitScreenWhenOpenTab+ return result+}++func settingSearchPayload(value *conf.Search) *apicontract.SettingSearch {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingSearch{}+ result.Document = value.Document+ result.Heading = value.Heading+ result.List = value.List+ result.ListItem = value.ListItem+ result.CodeBlock = value.CodeBlock+ result.MathBlock = value.MathBlock+ result.Table = value.Table+ result.Blockquote = value.Blockquote+ result.SuperBlock = value.SuperBlock+ result.Paragraph = value.Paragraph+ result.HTMLBlock = value.HTMLBlock+ result.EmbedBlock = value.EmbedBlock+ result.DatabaseBlock = value.DatabaseBlock+ result.AudioBlock = value.AudioBlock+ result.VideoBlock = value.VideoBlock+ result.IFrameBlock = value.IFrameBlock+ result.WidgetBlock = value.WidgetBlock+ result.Callout = value.Callout+ result.Tabs = value.Tabs+ result.TabItem = value.TabItem+ result.Limit = value.Limit+ result.CaseSensitive = value.CaseSensitive+ result.HanSensitive = value.HanSensitive+ result.Name = value.Name+ result.Alias = value.Alias+ result.Memo = value.Memo+ result.IAL = value.IAL+ result.IndexAssetPath = value.IndexAssetPath+ result.BacklinkMentionName = value.BacklinkMentionName+ result.BacklinkMentionAlias = value.BacklinkMentionAlias+ result.BacklinkMentionAnchor = value.BacklinkMentionAnchor+ result.BacklinkMentionDoc = value.BacklinkMentionDoc+ result.BacklinkMentionKeywordsLimit = value.BacklinkMentionKeywordsLimit+ result.VirtualRefName = value.VirtualRefName+ result.VirtualRefAlias = value.VirtualRefAlias+ result.VirtualRefAnchor = value.VirtualRefAnchor+ result.VirtualRefDoc = value.VirtualRefDoc+ return result+}++func settingAppearancePayload(value *conf.Appearance) *apicontract.SettingAppearance {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingAppearance{}+ result.BodyGradient = settingBodyGradientPayload(value.BodyGradient)+ if value.GlobalFontFamilies != nil {+ result.GlobalFontFamilies = make([]*apicontract.SettingEditorFont, len(value.GlobalFontFamilies))+ for i, item := range value.GlobalFontFamilies {+ result.GlobalFontFamilies[i] = settingEditorFontPayload(item)+ }+ }+ result.Mode = value.Mode+ result.ModeOS = value.ModeOS+ if value.DarkThemes != nil {+ result.DarkThemes = make([]*apicontract.SettingAppearanceTheme, len(value.DarkThemes))+ for i, item := range value.DarkThemes {+ result.DarkThemes[i] = settingAppearanceThemePayload(item)+ }+ }+ if value.LightThemes != nil {+ result.LightThemes = make([]*apicontract.SettingAppearanceTheme, len(value.LightThemes))+ for i, item := range value.LightThemes {+ result.LightThemes[i] = settingAppearanceThemePayload(item)+ }+ }+ result.ThemeDark = value.ThemeDark+ result.ThemeLight = value.ThemeLight+ result.ThemeVer = value.ThemeVer+ if value.Icons != nil {+ result.Icons = make([]*apicontract.SettingAppearanceIcon, len(value.Icons))+ for i, item := range value.Icons {+ result.Icons[i] = settingAppearanceIconPayload(item)+ }+ }+ result.Icon = value.Icon+ result.IconVer = value.IconVer+ result.CodeBlockThemeLight = value.CodeBlockThemeLight+ result.CodeBlockThemeDark = value.CodeBlockThemeDark+ result.Lang = value.Lang+ result.ThemeJS = value.ThemeJS+ result.CloseButtonBehavior = value.CloseButtonBehavior+ result.HideToolbar = value.HideToolbar+ result.HideStatusBar = value.HideStatusBar+ result.StatusBar = settingStatusBarPayload(value.StatusBar)+ result.Notifications = settingNotificationsPayload(value.Notifications)+ result.EntryVisibility = settingEntryVisibilityPayload(value.EntryVisibility)+ return result+}++func settingBodyGradientPayload(value *conf.BodyGradient) *apicontract.SettingBodyGradient {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingBodyGradient{}+ result.Mode = value.Mode+ result.Light = *settingBodyGradientColorPayload(&value.Light)+ result.Dark = *settingBodyGradientColorPayload(&value.Dark)+ return result+}++func settingBodyGradientColorPayload(value *conf.BodyGradientColor) *apicontract.SettingBodyGradientColor {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingBodyGradientColor{}+ result.Color = value.Color+ result.Opacity = value.Opacity+ return result+}++func settingAppearanceThemePayload(value *conf.AppearanceTheme) *apicontract.SettingAppearanceTheme {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingAppearanceTheme{}+ result.Name = value.Name+ result.Label = value.Label+ result.Frontends = value.Frontends+ return result+}++func settingAppearanceIconPayload(value *conf.AppearanceIcon) *apicontract.SettingAppearanceIcon {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingAppearanceIcon{}+ result.Name = value.Name+ result.Label = value.Label+ return result+}++func settingStatusBarPayload(value *util.StatusBar) *apicontract.SettingStatusBar {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingStatusBar{}+ result.Version = value.Version+ result.MsgTaskDatabaseIndexCommitDisabled = value.MsgTaskDatabaseIndexCommitDisabled+ result.MsgTaskHistoryDatabaseIndexCommitDisabled = value.MsgTaskHistoryDatabaseIndexCommitDisabled+ result.MsgTaskAssetDatabaseIndexCommitDisabled = value.MsgTaskAssetDatabaseIndexCommitDisabled+ result.MsgTaskHistoryGenerateFileDisabled = value.MsgTaskHistoryGenerateFileDisabled+ result.MsgDataSyncDisabled = value.MsgDataSyncDisabled+ return result+}++func settingNotificationsPayload(value *util.Notifications) *apicontract.SettingNotifications {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingNotifications{}+ result.DocTreeMaxList = value.DocTreeMaxList+ result.TagMaxList = value.TagMaxList+ result.WorkspaceNotSSD = value.WorkspaceNotSSD+ result.BrowserCompatibility = value.BrowserCompatibility+ result.SelectAllTip = value.SelectAllTip+ result.SelectAllIncompleteTip = value.SelectAllIncompleteTip+ result.FormatPainterTip = value.FormatPainterTip+ return result+}++func settingEntryVisibilityPayload(value *conf.EntryVisibility) *apicontract.SettingEntryVisibility {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingEntryVisibility{}+ result.Version = value.Version+ result.Active = value.Active+ if value.Profiles != nil {+ result.Profiles = make([]*apicontract.SettingEntryVisibilityProfile, len(value.Profiles))+ for i, item := range value.Profiles {+ result.Profiles[i] = settingEntryVisibilityProfilePayload(item)+ }+ }+ return result+}++func settingEntryVisibilityProfilePayload(value *conf.EntryVisibilityProfile) *apicontract.SettingEntryVisibilityProfile {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingEntryVisibilityProfile{}+ result.ID = value.ID+ result.Name = value.Name+ result.Entries = value.Entries+ result.Orders = value.Orders+ return result+}++func settingPublishPayload(value *conf.Publish) *apicontract.SettingPublish {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingPublish{}+ result.Enable = value.Enable+ result.Port = value.Port+ result.Auth = settingBasicAuthPayload(value.Auth)+ return result+}++func settingBasicAuthPayload(value *conf.BasicAuth) *apicontract.SettingBasicAuth {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingBasicAuth{}+ result.Enable = value.Enable+ if value.Accounts != nil {+ result.Accounts = make([]*apicontract.SettingBasicAuthAccount, len(value.Accounts))+ for i, item := range value.Accounts {+ result.Accounts[i] = settingBasicAuthAccountPayload(item)+ }+ }+ return result+}++func settingBasicAuthAccountPayload(value *conf.BasicAuthAccount) *apicontract.SettingBasicAuthAccount {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingBasicAuthAccount{}+ result.Username = value.Username+ result.Password = value.Password+ result.Memo = value.Memo+ return result+}++func settingUserPayload(value *conf.User) *apicontract.SettingUser {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingUser{}+ result.UserId = value.UserId+ result.UserName = value.UserName+ result.UserAvatarURL = value.UserAvatarURL+ result.UserHomeBImgURL = value.UserHomeBImgURL+ if value.UserTitles != nil {+ result.UserTitles = make([]*apicontract.SettingUserTitle, len(value.UserTitles))+ for i, item := range value.UserTitles {+ result.UserTitles[i] = settingUserTitlePayload(item)+ }+ }+ result.UserIntro = value.UserIntro+ result.UserNickname = value.UserNickname+ result.UserCreateTime = value.UserCreateTime+ result.UserSiYuanProExpireTime = value.UserSiYuanProExpireTime+ result.UserToken = value.UserToken+ result.UserTokenExpireTime = value.UserTokenExpireTime+ result.UserSiYuanRepoSize = value.UserSiYuanRepoSize+ result.UserSiYuanPointExchangeRepoSize = value.UserSiYuanPointExchangeRepoSize+ result.UserSiYuanAssetSize = value.UserSiYuanAssetSize+ result.UserTrafficUpload = value.UserTrafficUpload+ result.UserTrafficDownload = value.UserTrafficDownload+ result.UserTrafficAPIGet = value.UserTrafficAPIGet+ result.UserTrafficAPIPut = value.UserTrafficAPIPut+ result.UserTrafficTime = value.UserTrafficTime+ result.UserSiYuanSubscriptionPlan = value.UserSiYuanSubscriptionPlan+ result.UserSiYuanSubscriptionStatus = value.UserSiYuanSubscriptionStatus+ result.UserSiYuanSubscriptionType = value.UserSiYuanSubscriptionType+ result.UserSiYuanOneTimePayStatus = value.UserSiYuanOneTimePayStatus+ return result+}++func settingUserTitlePayload(value *conf.UserTitle) *apicontract.SettingUserTitle {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingUserTitle{}+ result.Name = value.Name+ result.Desc = value.Desc+ result.Icon = value.Icon+ return result+}++func settingBootAppearancePayload(value *model.BootAppearance) *apicontract.SettingBootAppearance {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingBootAppearance{}+ result.Enabled = value.Enabled+ result.Provider = value.Provider+ result.Appearance = value.Appearance+ result.DisplayName = value.DisplayName+ result.Frontends = value.Frontends+ result.BackgroundColor = value.BackgroundColor+ result.Style = value.Style+ if value.Layers != nil {+ result.Layers = make([]*apicontract.SettingBootAppearanceLayer, len(value.Layers))+ for i, item := range value.Layers {+ result.Layers[i] = settingBootAppearanceLayerPayload(item)+ }+ }+ result.OfficialUI = settingBootAppearanceOfficialUIPayload(value.OfficialUI)+ return result+}++func settingBootAppearanceLayerPayload(value *model.BootAppearanceLayer) *apicontract.SettingBootAppearanceLayer {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingBootAppearanceLayer{}+ result.ID = value.ID+ result.Type = value.Type+ result.Src = value.Src+ result.Poster = value.Poster+ result.Fit = value.Fit+ result.Position = value.Position+ return result+}++func settingBootAppearanceOfficialUIPayload(value *model.BootAppearanceOfficialUI) *apicontract.SettingBootAppearanceOfficialUI {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingBootAppearanceOfficialUI{}+ result.ShowLogo = value.ShowLogo+ result.ShowDetails = value.ShowDetails+ result.TextColor = value.TextColor+ result.ProgressColor = value.ProgressColor+ result.TrackColor = value.TrackColor+ return result+}++func settingBootAppearanceSelectionPayload(value *model.BootAppearanceSelection) *apicontract.SettingBootAppearanceSelection {+ if value == nil {+ return nil+ }+ result := &apicontract.SettingBootAppearanceSelection{}+ result.SchemaVersion = value.SchemaVersion+ result.Provider = value.Provider+ result.Appearance = value.Appearance+ return result+}diff --git a/kernel/apicontract/contracts.go b/kernel/apicontract/contracts.goindex 9e4acb2334..f9158d07e2 100644--- a/kernel/apicontract/contracts.go+++ b/kernel/apicontract/contracts.go@@ -820,3 +820,28 @@ 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 SetConfSnippet = define[SetConfSnippetRequest, *SettingSnpt]("setConfSnippet", "/api/setting/setSnippet", JSONBody, ResponseOptions{}, "POST")+var SetBazaar = define[SetBazaarRequest, *SettingBazaar]("setBazaar", "/api/setting/setBazaar", JSONBody, ResponseOptions{}, "POST")+var SetAI = define[SetAIRequest, *SettingAI]("setAI", "/api/setting/setAI", JSONBody, ResponseOptions{}, "POST")+var SetSecrets = define[SetSecretsRequest, *SettingSecrets]("setSecrets", "/api/setting/setSecrets", JSONBody, ResponseOptions{}, "POST")+var SetVariables = define[SetVariablesRequest, *SettingVariables]("setVariables", "/api/setting/setVariables", JSONBody, ResponseOptions{}, "POST")+var SetFlashcard = define[SetFlashcardRequest, *SettingFlashcard]("setFlashcard", "/api/setting/setFlashcard", JSONBody, ResponseOptions{}, "POST")+var SetEditor = define[SetEditorRequest, *SettingEditor]("setEditor", "/api/setting/setEditor", JSONBody, ResponseOptions{}, "POST")+var SetExport = define[SetExportRequest, *SettingExport]("setExport", "/api/setting/setExport", JSONBody, ResponseOptions{}, "POST")+var SetFiletree = define[SetFiletreeRequest, *SettingFileTree]("setFiletree", "/api/setting/setFiletree", JSONBody, ResponseOptions{}, "POST")+var SetSearch = define[SetSearchRequest, *SettingSearch]("setSearch", "/api/setting/setSearch", JSONBody, ResponseOptions{}, "POST")+var SetAppearance = define[SetAppearanceRequest, *SettingAppearance]("setAppearance", "/api/setting/setAppearance", JSONBody, ResponseOptions{}, "POST")+var SetEntryVisibility = define[SetEntryVisibilityRequest, *SettingEntryVisibility]("setEntryVisibility", "/api/setting/setEntryVisibility", JSONBody, ResponseOptions{}, "POST")+var SetPublish = define[SetPublishRequest, SettingPublishData]("setPublish", "/api/setting/setPublish", JSONBody, ResponseOptions{}, "POST")+var GetBootAppearances = define[EmptyRequest, SettingBootAppearancesData]("getBootAppearances", "/api/setting/getBootAppearances", NoBody, ResponseOptions{}, "POST")+var SetBootAppearance = define[SettingBootAppearanceRequest, *SettingBootAppearanceSelection]("setBootAppearance", "/api/setting/setBootAppearance", JSONBody, ResponseOptions{}, "POST")+var SetBazaarPetalDisabled = define[SettingPetalDisabledRequest, SettingPetalDisabledData]("setBazaarPetalDisabled", "/api/setting/setBazaarPetalDisabled", JSONBody, ResponseOptions{}, "POST")+var SetKeymap = define[SettingKeymapRequest, Null]("setKeymap", "/api/setting/setKeymap", JSONBody, ResponseOptions{}, "POST")+var SetTheme = define[SettingThemeRequest, Null]("setTheme", "/api/setting/setTheme", JSONBody, ResponseOptions{}, "POST")+var SetIcon = define[SettingIconRequest, Null]("setIcon", "/api/setting/setIcon", JSONBody, ResponseOptions{}, "POST")+var GetPublish = define[EmptyRequest, SettingPublishData]("getPublish", "/api/setting/getPublish", NoBody, ResponseOptions{}, "POST")+var GetCloudUser = define[SettingCloudUserRequest, *SettingUser]("getCloudUser", "/api/setting/getCloudUser", JSONBody, ResponseOptions{AdditionalCodes: []int{1, 255}, DataOnError: true}, "POST")+var LogoutCloudUser = define[EmptyRequest, Null]("logoutCloudUser", "/api/setting/logoutCloudUser", NoBody, ResponseOptions{}, "POST")+var Login2faCloudUser = define[SettingLogin2faRequest, Login2faEnvelope]("login2faCloudUser", "/api/setting/login2faCloudUser", JSONBody, ResponseOptions{Output: DirectJSONOutput}, "POST")+var SetEmoji = define[SettingEmojiRequest, Null]("setEmoji", "/api/setting/setEmoji", JSONBody, ResponseOptions{}, "POST")diff --git a/kernel/apicontract/legacy_routes.json b/kernel/apicontract/legacy_routes.jsonindex 1b546bacef..d348cbf3e2 100644--- a/kernel/apicontract/legacy_routes.json+++ b/kernel/apicontract/legacy_routes.json@@ -96,30 +96,6 @@{"method":"POST","path":"/api/av/sortAttributeViewViewKey","handler":"sortAttributeViewViewKey"},{"method":"POST","path":"/api/extension/copy","handler":"extensionCopy"},{"method":"POST","path":"/api/network/forwardProxy","handler":"forwardProxy"},- {"method":"POST","path":"/api/setting/getBootAppearances","handler":"getBootAppearances"},- {"method":"POST","path":"/api/setting/getCloudUser","handler":"getCloudUser"},- {"method":"POST","path":"/api/setting/getPublish","handler":"getPublish"},- {"method":"POST","path":"/api/setting/login2faCloudUser","handler":"login2faCloudUser"},- {"method":"POST","path":"/api/setting/logoutCloudUser","handler":"logoutCloudUser"},- {"method":"POST","path":"/api/setting/setAI","handler":"setAI"},- {"method":"POST","path":"/api/setting/setAppearance","handler":"setAppearance"},- {"method":"POST","path":"/api/setting/setBazaar","handler":"setBazaar"},- {"method":"POST","path":"/api/setting/setBazaarPetalDisabled","handler":"setBazaarPetalDisabled"},- {"method":"POST","path":"/api/setting/setBootAppearance","handler":"setBootAppearance"},- {"method":"POST","path":"/api/setting/setEditor","handler":"setEditor"},- {"method":"POST","path":"/api/setting/setEmoji","handler":"setEmoji"},- {"method":"POST","path":"/api/setting/setEntryVisibility","handler":"setEntryVisibility"},- {"method":"POST","path":"/api/setting/setExport","handler":"setExport"},- {"method":"POST","path":"/api/setting/setFiletree","handler":"setFiletree"},- {"method":"POST","path":"/api/setting/setFlashcard","handler":"setFlashcard"},- {"method":"POST","path":"/api/setting/setIcon","handler":"setIcon"},- {"method":"POST","path":"/api/setting/setKeymap","handler":"setKeymap"},- {"method":"POST","path":"/api/setting/setPublish","handler":"setPublish"},- {"method":"POST","path":"/api/setting/setSearch","handler":"setSearch"},- {"method":"POST","path":"/api/setting/setSecrets","handler":"setSecrets"},- {"method":"POST","path":"/api/setting/setSnippet","handler":"setConfSnippet"},- {"method":"POST","path":"/api/setting/setTheme","handler":"setTheme"},- {"method":"POST","path":"/api/setting/setVariables","handler":"setVariables"},{"method":"POST","path":"/api/system/addCustomEmoji","handler":"addCustomEmoji"},{"method":"POST","path":"/api/system/checkUpdate","handler":"checkUpdate"},{"method":"POST","path":"/api/system/checkWorkspaceDir","handler":"checkWorkspaceDir"},diff --git a/kernel/apicontract/schema.go b/kernel/apicontract/schema.goindex 160480b8f0..e573440945 100644--- a/kernel/apicontract/schema.go+++ b/kernel/apicontract/schema.go@@ -263,6 +263,16 @@ func (b *schemaBuilder) schema(t reflect.Type, input bool) (*Schema, error) {if t == reflect.TypeFor[BlockOperationResult]() {return &Schema{AnyOf: []*Schema{{Type: "null"}, {Type: "string"}, {Type: "array", Items: &Schema{Type: "string"}}}}, nil}+ if t == reflect.TypeFor[*CloudLogin2faData]() {+ schema, err := b.cloudLogin2faDataSchema(input)+ if err != nil {+ return nil, err+ }+ return nullable(schema), nil+ }+ if t == reflect.TypeFor[CloudLogin2faData]() {+ return b.cloudLogin2faDataSchema(input)+ }if t == reflect.TypeFor[JSONValue]() {ref := &Schema{Ref: "#/$defs/JSONValue"}b.definitions["JSONValue"] = &Schema{AnyOf: []*Schema{diff --git a/kernel/apicontract/schema.json b/kernel/apicontract/schema.jsonindex fffb8e2c1f..ceeb5c7de1 100644--- a/kernel/apicontract/schema.json+++ b/kernel/apicontract/schema.json@@ -12801,6 +12801,48 @@],"additionalProperties": false},+ "Login2faEnvelope": {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer"+ },+ "data": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "number"+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg"+ ],+ "additionalProperties": {+ "$ref": "#/$defs/JSONValue"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "data",+ "msg"+ ],+ "additionalProperties": false+ },"MarkdownHTMLRequestInput": {"type": "object","properties": {@@ -17590,6 +17632,358 @@],"additionalProperties": false},+ "SetAIRequestInput": {+ "type": "object",+ "properties": {+ "agent": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingAgentInput"+ },+ {+ "type": "null"+ }+ ]+ },+ "editing": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingEditingInput"+ },+ {+ "type": "null"+ }+ ]+ },+ "embedding": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingEmbeddingInput"+ },+ {+ "type": "null"+ }+ ]+ },+ "imageGeneration": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingImageGenerationInput"+ },+ {+ "type": "null"+ }+ ]+ },+ "mcp": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingMCPInput"+ },+ {+ "type": "null"+ }+ ]+ },+ "providers": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingProviderInput"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "rerank": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingRerankInput"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SetAppearanceRequestInput": {+ "type": "object",+ "properties": {+ "bodyGradient": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingBodyGradientInput"+ },+ {+ "type": "null"+ }+ ]+ },+ "closeButtonBehavior": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "codeBlockThemeDark": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "codeBlockThemeLight": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "darkThemes": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingAppearanceThemeInput"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "entryVisibility": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingEntryVisibilityInput"+ },+ {+ "type": "null"+ }+ ]+ },+ "globalFontFamilies": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingEditorFontInput"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "hideStatusBar": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "hideToolbar": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "icon": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "iconVer": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "icons": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingAppearanceIconInput"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "lang": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "lightThemes": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingAppearanceThemeInput"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "mode": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "modeOS": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "notifications": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingNotificationsInput"+ },+ {+ "type": "null"+ }+ ]+ },+ "statusBar": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingStatusBarInput"+ },+ {+ "type": "null"+ }+ ]+ },+ "themeDark": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "themeJS": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "themeLight": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "themeVer": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },"SetAssetAnnotationRequestInput": {"type": "object","properties": {@@ -17642,6 +18036,32 @@],"additionalProperties": false},+ "SetBazaarRequestInput": {+ "type": "object",+ "properties": {+ "petalDisabled": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "trust": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },"SetBlockAttrsRequestInput": {"type": "object","properties": {@@ -17668,13 +18088,23 @@],"additionalProperties": false},- "SetCriterionRequestInput": {+ "SetConfSnippetRequestInput": {"type": "object","properties": {- "criterion": {+ "enabledCSS": {"anyOf": [{- "$ref": "#/$defs/CriterionInput"+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "enabledJS": {+ "anyOf": [+ {+ "type": "boolean"},{"type": "null"@@ -17682,135 +18112,91 @@]}},- "required": [- "criterion"- ],"additionalProperties": false},- "SetGraphConfRequestInput": {+ "SetCriterionRequestInput": {"type": "object","properties": {- "conf": {- "$ref": "#/$defs/GraphConfigurationFieldsInput"- },- "type": {- "type": "string"+ "criterion": {+ "anyOf": [+ {+ "$ref": "#/$defs/CriterionInput"+ },+ {+ "type": "null"+ }+ ]}},"required": [- "conf",- "type"+ "criterion"],"additionalProperties": false},- "SetInlineStylesRequestInput": {+ "SetEditorRequestInput": {"type": "object","properties": {- "app": {+ "allowHTMLBLockScript": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"}]},- "av": {+ "allowSVGScript": {"anyOf": [{- "$ref": "#/$defs/InlineStyleAVInput"+ "type": "boolean"},{"type": "null"}]},- "builtin": {+ "assetOpen": {"anyOf": [{- "$ref": "#/$defs/InlineStyleBuiltinInput"+ "$ref": "#/$defs/SettingAssetOpenInput"},{"type": "null"}]},- "order": {+ "backlinkContainChildren": {"anyOf": [{- "$ref": "#/$defs/InlineStyleOrderInput"+ "type": "boolean"},{"type": "null"}]},- "styles": {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/InlineStyleInput"- },- {- "type": "null"- }- ]- }- },- "version": {- "type": "number"- }- },- "required": [- "styles",- "version"- ],- "additionalProperties": false- },- "SetNotebookConfRequestInput": {- "type": "object",- "properties": {- "conf": {+ "backlinkExpandCount": {"anyOf": [{- "$ref": "#/$defs/NotebookConfPatchInput"+ "type": "integer"},{"type": "null"}]},- "notebook": {- "type": "string"- }- },- "required": [- "notebook"- ],- "additionalProperties": false- },- "SetNotebookIconRequestInput": {- "type": "object",- "properties": {- "icon": {- "type": "string"+ "backlinkHideReference": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]},- "notebook": {- "type": "string"- }- },- "required": [- "icon",- "notebook"- ],- "additionalProperties": false- },- "SetPetalEnabledRequestInput": {- "type": "object",- "properties": {- "app": {+ "backlinkMentionExclude": {"anyOf": [{"type": "string"@@ -17820,219 +18206,79 @@}]},- "enabled": {- "type": "boolean"- },- "packageName": {- "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"+ "backlinkShowBottom": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]},- "shorthandFrom": {- "type": "integer"+ "backlinkSort": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]},- "shorthandMd": {- "type": "string"+ "backmentionExpandCount": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]},- "shorthandTitle": {- "type": "string"+ "backmentionSort": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]},- "shorthandURL": {- "type": "string"- }- },- "required": [- "hCreated",- "oId",- "shorthandContent",- "shorthandDesc",- "shorthandFrom",- "shorthandMd",- "shorthandTitle",- "shorthandURL"- ],- "additionalProperties": false- },- "ShorthandPage": {- "type": "object",- "properties": {- "pagination": {- "$ref": "#/$defs/ShorthandPagination"+ "blockRefDynamicAnchorTextMaxLen": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]},- "shorthands": {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/Shorthand"- },- {- "type": "null"- }- ]- }- }- },- "required": [- "pagination",- "shorthands"- ],- "additionalProperties": false- },- "ShorthandPagination": {- "type": "object",- "properties": {- "paginationPageCount": {- "type": "integer"+ "checkBlockRef": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]},- "paginationPageNums": {+ "codeFontFamilies": {"anyOf": [{"type": "array","items": {- "type": "integer"+ "anyOf": [+ {+ "$ref": "#/$defs/SettingEditorFontInput"+ },+ {+ "type": "null"+ }+ ]}},{@@ -18040,88 +18286,17 @@}]},- "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"+ "codeLigatures": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]},- "disabledInPublish": {+ "codeLineWrap": {"anyOf": [{"type": "boolean"@@ -18131,371 +18306,117 @@}]},- "enabled": {- "type": "boolean"+ "codeSyntaxHighlightLineNum": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]},- "id": {- "type": "string"+ "codeTabSpaces": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]},- "name": {- "type": "string"+ "cursorSurroundingLines": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]},- "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": {+ "databaseAttrClickMode": {"anyOf": [{- "type": "string"+ "type": "integer"},{"type": "null"}]},- "keys": {- "type": "array",- "items": {- "type": "string"- }- }- },- "required": [- "keys"- ],- "additionalProperties": false- },- "StorageRemoveRequestInput": {- "type": "object",- "properties": {- "app": {+ "databaseAttrHideEmpty": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"}]},- "key": {- "type": "string"- }- },- "required": [- "key"- ],- "additionalProperties": false- },- "StorageSetKeysRequestInput": {- "type": "object",- "properties": {- "app": {+ "databaseAttrShow": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"}]},- "keyVals": {- "type": "object",- "additionalProperties": {- "$ref": "#/$defs/JSONValue"- }- }- },- "required": [- "keyVals"- ],- "additionalProperties": false- },- "StorageSetRequestInput": {- "type": "object",- "properties": {- "app": {+ "databaseAttrUseTabs": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"}]},- "key": {- "type": "string"- },- "val": {+ "databaseAttrViewMode": {"anyOf": [{- "$ref": "#/$defs/JSONValue"+ "type": "integer"},{"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": {+ "displayBookmarkIcon": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/SyncOnlineKernel"- },- {- "type": "null"- }- ]- }+ "type": "boolean"},{"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": {+ "displayNetImgMark": {"anyOf": [{- "type": "number"+ "type": "boolean"},{"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": {+ "dragHTMLFileToIframe": {"anyOf": [{- "$ref": "#/$defs/SyncLocal"+ "type": "boolean"},{"type": "null"}]- }- },- "required": [- "local"- ],- "additionalProperties": false- },- "SyncLocalInput": {- "type": "object",- "properties": {- "concurrentReqs": {+ },+ "dynamicLoadBlocks": {"anyOf": [{"type": "integer"@@ -18505,182 +18426,70 @@}]},- "endpoint": {+ "embedBlockBreadcrumb": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"}]},- "timeout": {+ "emoji": {"anyOf": [{- "type": "integer"+ "type": "array",+ "items": {+ "type": "string"+ }},{"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"+ "floatWindowDelay": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]},- "skipTlsVerify": {- "type": "boolean"+ "floatWindowMode": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]},- "timeout": {- "type": "integer"- }- },- "required": [- "accessKey",- "bucket",- "concurrentReqs",- "endpoint",- "pathStyle",- "region",- "secretKey",- "skipTlsVerify",- "timeout"- ],- "additionalProperties": false- },- "SyncS3Data": {- "type": "object",- "properties": {- "s3": {+ "fontFamilies": {"anyOf": [{- "$ref": "#/$defs/SyncS3"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingEditorFontInput"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"}]- }- },- "required": [- "s3"- ],- "additionalProperties": false- },- "SyncS3Input": {- "type": "object",- "properties": {- "accessKey": {+ },+ "fontFamily": {"anyOf": [{"type": "string"@@ -18690,7 +18499,7 @@}]},- "bucket": {+ "fontFamilyDisplay": {"anyOf": [{"type": "string"@@ -18700,7 +18509,7 @@}]},- "concurrentReqs": {+ "fontSize": {"anyOf": [{"type": "integer"@@ -18710,47 +18519,47 @@}]},- "endpoint": {+ "fontSizeScrollZoom": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"}]},- "pathStyle": {+ "fontWeight": {"anyOf": [{- "type": "boolean"+ "type": "integer"},{"type": "null"}]},- "region": {+ "fullWidth": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"}]},- "secretKey": {+ "generateHistoryInterval": {"anyOf": [{- "type": "string"+ "type": "integer"},{"type": "null"}]},- "skipTlsVerify": {+ "hashTagSearch": {"anyOf": [{"type": "boolean"@@ -18760,7 +18569,7 @@}]},- "timeout": {+ "headingEmbedMode": {"anyOf": [{"type": "integer"@@ -18769,65 +18578,28 @@"type": "null"}]- }- },- "additionalProperties": false- },- "SyncWebDAV": {- "type": "object",- "properties": {- "concurrentReqs": {- "type": "integer"},- "endpoint": {- "type": "string"- },- "password": {- "type": "string"- },- "skipTlsVerify": {- "type": "boolean"- },- "timeout": {- "type": "integer"+ "headingNumber": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]},- "username": {- "type": "string"- }- },- "required": [- "concurrentReqs",- "endpoint",- "password",- "skipTlsVerify",- "timeout",- "username"- ],- "additionalProperties": false- },- "SyncWebDAVData": {- "type": "object",- "properties": {- "webdav": {+ "headingNumberFormat": {"anyOf": [{- "$ref": "#/$defs/SyncWebDAV"+ "type": "string"},{"type": "null"}]- }- },- "required": [- "webdav"- ],- "additionalProperties": false- },- "SyncWebDAVInput": {- "type": "object",- "properties": {- "concurrentReqs": {+ },+ "historyRetentionDays": {"anyOf": [{"type": "integer"@@ -18837,17 +18609,17 @@}]},- "endpoint": {+ "justify": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"}]},- "password": {+ "katexMacros": {"anyOf": [{"type": "string"@@ -18857,7 +18629,7 @@}]},- "skipTlsVerify": {+ "keepLoadedContent": {"anyOf": [{"type": "boolean"@@ -18867,124 +18639,57 @@}]},- "timeout": {+ "listItemDotNumberClickFocus": {"anyOf": [{- "type": "integer"+ "type": "boolean"},{"type": "null"}]},- "username": {+ "listLogicalOutdent": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"}]- }- },- "additionalProperties": false- },- "TagData": {- "type": "object",- "properties": {- "children": {+ },+ "markdown": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/TagData"- },- {- "type": "null"- }- ]- }+ "$ref": "#/$defs/SettingMarkdownInput"},{"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": {+ "onlySearchForDoc": {"anyOf": [{- "type": "array",- "items": {- "type": "string"- }+ "type": "boolean"},{"type": "null"}]},- "n": {+ "pasteURLAutoConvert": {"anyOf": [{- "type": "number"+ "type": "boolean"},{"type": "null"}]},- "notebook": {+ "plantUMLServePath": {"anyOf": [{"type": "string"@@ -18993,204 +18698,38 @@"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": {+ "readOnly": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/TemplatePlanNode"- },- {- "type": "null"- }- ]- }+ "type": "boolean"},{"type": "null"}]- }- },- "required": [- "count",- "id",- "nodes"- ],- "additionalProperties": false- },- "TemplatePlanNode": {- "type": "object",- "properties": {- "depth": {- "type": "integer"- },- "hPath": {- "type": "string"- },- "id": {- "type": "string"},- "parentID": {- "type": "string"+ "rtl": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]},- "title": {- "type": "string"- }- },- "required": [- "depth",- "hPath",- "id",- "parentID",- "title"- ],- "additionalProperties": false- },- "TransferBlockRefRequestInput": {- "type": "object",- "properties": {- "fromID": {- "type": "string"+ "spellcheck": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]},- "refIDs": {+ "spellcheckLanguages": {"anyOf": [{"type": "array",@@ -19203,7 +18742,7 @@}]},- "reloadUI": {+ "virtualBlockRef": {"anyOf": [{"type": "boolean"@@ -19213,49 +18752,66 @@}]},- "toID": {- "type": "string"+ "virtualBlockRefExclude": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "virtualBlockRefInclude": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]}},- "required": [- "fromID",- "toID"- ],"additionalProperties": false},- "TreeStatData": {+ "SetEntryVisibilityRequestInput": {"type": "object","properties": {- "containsEmbed": {- "type": "boolean"- },- "embedStat": {+ "active": {"anyOf": [{- "$ref": "#/$defs/EmbedStat"+ "type": "string"},{"type": "null"}]},- "reqId": {- "$ref": "#/$defs/JSONValue"- },- "stat": {+ "profiles": {"anyOf": [{- "$ref": "#/$defs/BlockStat"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingEntryVisibilityProfileInput"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"}]},- "statWithEmbed": {+ "version": {"anyOf": [{- "$ref": "#/$defs/BlockStat"+ "type": "integer"},{"type": "null"@@ -19263,95 +18819,52 @@]}},- "required": [- "reqId",- "stat"- ],"additionalProperties": false},- "TreeStatRequestInput": {+ "SetExportRequestInput": {"type": "object","properties": {- "id": {- "type": "string"- },- "ids": {+ "addTitle": {"anyOf": [{- "type": "array",- "items": {- "type": "string"- }+ "type": "boolean"},{"type": "null"}]},- "includeEmbed": {+ "blockEmbedMode": {"anyOf": [{- "type": "boolean"+ "type": "integer"},{"type": "null"}]},- "notebook": {+ "blockRefMode": {"anyOf": [{- "type": "string"+ "type": "integer"},{"type": "null"}]},- "reqId": {+ "blockRefTextLeft": {"anyOf": [{- "$ref": "#/$defs/JSONValue"+ "type": "string"},{"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": {+ },+ "blockRefTextRight": {"anyOf": [{"type": "string"@@ -19361,19 +18874,7 @@}]},- "packageName": {- "type": "string"- }- },- "required": [- "packageName"- ],- "additionalProperties": false- },- "UninstallBazaarPluginRequestInput": {- "type": "object",- "properties": {- "frontend": {+ "docxTemplate": {"anyOf": [{"type": "string"@@ -19383,29 +18884,17 @@}]},- "keyword": {+ "fileAnnotationRefMode": {"anyOf": [{- "type": "string"+ "type": "integer"},{"type": "null"}]},- "packageName": {- "type": "string"- }- },- "required": [- "packageName"- ],- "additionalProperties": false- },- "UninstallBazaarTemplateRequestInput": {- "type": "object",- "properties": {- "keyword": {+ "imageWatermarkDesc": {"anyOf": [{"type": "string"@@ -19415,19 +18904,7 @@}]},- "packageName": {- "type": "string"- }- },- "required": [- "packageName"- ],- "additionalProperties": false- },- "UninstallBazaarThemeRequestInput": {- "type": "object",- "properties": {- "frontend": {+ "imageWatermarkStr": {"anyOf": [{"type": "string"@@ -19437,86 +18914,57 @@}]},- "keyword": {+ "includeRelatedDocs": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"}]},- "packageName": {- "type": "string"- }- },- "required": [- "packageName"- ],- "additionalProperties": false- },- "UninstallBazaarWidgetRequestInput": {- "type": "object",- "properties": {- "keyword": {+ "includeSubDocs": {"anyOf": [{- "type": "string"+ "type": "boolean"},{"type": "null"}]},- "packageName": {- "type": "string"- }- },- "required": [- "packageName"- ],- "additionalProperties": false- },- "UnlockNotebookRequestInput": {- "type": "object",- "properties": {- "notebook": {- "type": "string"+ "inlineMemo": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]},- "password": {- "type": "string"- }- },- "required": [- "notebook",- "password"- ],- "additionalProperties": false- },- "UnzipRequestInput": {- "type": "object",- "properties": {- "path": {- "type": "string"+ "markdownYFM": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]},- "zipPath": {- "type": "string"- }- },- "required": [- "path",- "zipPath"- ],- "additionalProperties": false- },- "UpdateBazaarPackageRequestInput": {- "type": "object",- "properties": {- "frontend": {- "type": "string"+ "pandocBin": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]},- "keyword": {+ "pandocParams": {"anyOf": [{"type": "string"@@ -19526,33 +18974,47 @@}]},- "packageName": {- "type": "string"+ "paragraphBeginningSpace": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]},- "packageType": {- "type": "string"- }- },- "required": [- "frontend",- "packageName",- "packageType"- ],- "additionalProperties": false- },- "UpdateBlockRequestInput": {- "type": "object",- "properties": {- "data": {- "type": "string"+ "pdfFooter": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]},- "dataType": {- "type": "string"+ "pdfWatermarkDesc": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]},- "id": {- "type": "string"+ "pdfWatermarkStr": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]},- "lockType": {+ "removeAssetsID": {"anyOf": [{"type": "boolean"@@ -19561,218 +19023,164 @@"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"+ "tagCloseMarker": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "tagOpenMarker": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]}},- "required": [- "content",- "id"- ],"additionalProperties": false},- "UpdatePinnedDocsRequestInput": {+ "SetFiletreeRequestInput": {"type": "object","properties": {- "action": {- "type": "string"+ "allowCreateDeeper": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]},- "after": {- "type": "boolean"+ "alwaysSelectOpenedFile": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]},- "ids": {- "type": "array",- "items": {- "type": "string"- }+ "boxDocEnabled": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]},- "targetID": {- "type": "string"- }- },- "required": [- "action",- "ids"- ],- "additionalProperties": false- },- "UploadAssetRequestInput": {- "type": "object",- "properties": {- "assetsDirPath": {- "type": "string"+ "closeTabOnDoubleClick": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]},- "file[]": {- "type": "array",- "items": {- "type": "string",- "format": "binary"- }+ "closeTabsOnStart": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]},- "id": {- "type": "string"- }- },- "additionalProperties": false- },- "UploadCloudSnapshotRequestInput": {- "type": "object",- "properties": {- "id": {- "type": "string"+ "createDocAtTop": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]},- "tag": {- "type": "string"- }- },- "required": [- "id",- "tag"- ],- "additionalProperties": false- },- "ViewStatePatchRequestInput": {- "type": "object",- "properties": {- "key": {- "type": "string"+ "docCreateSaveBox": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]},- "removeKeys": {+ "docCreateSavePath": {"anyOf": [{- "type": "array",- "items": {- "type": "string"- }+ "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"+ "docCreateTemplatePath": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]},- "dom": {- "type": "string"- }- },- "required": [- "converted",- "dom"- ],- "additionalProperties": false- },- "WPSPresentationRequestInput": {- "type": "object",- "properties": {- "data": {- "type": "string"+ "docIconClickExpand": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]},- "text": {+ "largeFileWarningSize": {"anyOf": [{- "type": "string"+ "type": "integer"},{"type": "null"}]},- "type": {- "type": "string"- }- },- "required": [- "data",- "type"- ],- "additionalProperties": false- },- "WordCountData": {- "type": "object",- "properties": {- "reqId": {- "$ref": "#/$defs/JSONValue"+ "maxListCount": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]},- "stat": {+ "maxOpenTabCount": {"anyOf": [{- "$ref": "#/$defs/BlockStat"+ "type": "integer"},{"type": "null"}]- }- },- "required": [- "reqId",- "stat"- ],- "additionalProperties": false- },- "WorkspaceAVBuiltinColorUpdateInput": {- "type": "object",- "properties": {- "customized": {+ },+ "noSplitScreenWhenOpenTab": {"anyOf": [{"type": "boolean"@@ -19782,17 +19190,17 @@}]},- "dark": {+ "openFilesUseCurrentTab": {"anyOf": [{- "$ref": "#/$defs/InlineStyleThemeInput"+ "type": "boolean"},{"type": "null"}]},- "hidden": {+ "parentDocClickExpand": {"anyOf": [{"type": "boolean"@@ -19802,7 +19210,7 @@}]},- "index": {+ "recentDocsMaxListCount": {"anyOf": [{"type": "integer"@@ -19812,116 +19220,8806 @@}]},- "light": {+ "refCreateSaveBox": {"anyOf": [{- "$ref": "#/$defs/InlineStyleThemeInput"+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "refCreateSavePath": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "removeDocWithoutConfirm": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "shorthandSaveBox": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "shorthandSavePath": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "sort": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "tabStartupMode": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "useSVGDefaultIcon": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "useSingleLineSave": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SetFlashcardRequestInput": {+ "type": "object",+ "properties": {+ "blockquote": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "callout": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "deck": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "heading": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "list": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "mark": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "maximumInterval": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "newCardLimit": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "requestRetention": {+ "anyOf": [+ {+ "type": "number"+ },+ {+ "type": "null"+ }+ ]+ },+ "reviewCardLimit": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "reviewMode": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "superBlock": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "weights": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SetGraphConfRequestInput": {+ "type": "object",+ "properties": {+ "conf": {+ "$ref": "#/$defs/GraphConfigurationFieldsInput"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "conf",+ "type"+ ],+ "additionalProperties": false+ },+ "SetInlineStylesRequestInput": {+ "type": "object",+ "properties": {+ "app": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "av": {+ "anyOf": [+ {+ "$ref": "#/$defs/InlineStyleAVInput"+ },+ {+ "type": "null"+ }+ ]+ },+ "builtin": {+ "anyOf": [+ {+ "$ref": "#/$defs/InlineStyleBuiltinInput"+ },+ {+ "type": "null"+ }+ ]+ },+ "order": {+ "anyOf": [+ {+ "$ref": "#/$defs/InlineStyleOrderInput"+ },+ {+ "type": "null"+ }+ ]+ },+ "styles": {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/InlineStyleInput"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "version": {+ "type": "number"+ }+ },+ "required": [+ "styles",+ "version"+ ],+ "additionalProperties": false+ },+ "SetNotebookConfRequestInput": {+ "type": "object",+ "properties": {+ "conf": {+ "anyOf": [+ {+ "$ref": "#/$defs/NotebookConfPatchInput"+ },+ {+ "type": "null"+ }+ ]+ },+ "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": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "enabled": {+ "type": "boolean"+ },+ "packageName": {+ "type": "string"+ }+ },+ "required": [+ "enabled",+ "packageName"+ ],+ "additionalProperties": false+ },+ "SetPetalPublishEnabledRequestInput": {+ "type": "object",+ "properties": {+ "enabled": {+ "type": "boolean"+ },+ "packageName": {+ "type": "string"+ }+ },+ "required": [+ "enabled",+ "packageName"+ ],+ "additionalProperties": false+ },+ "SetPublishRequestInput": {+ "type": "object",+ "properties": {+ "auth": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingBasicAuthInput"+ },+ {+ "type": "null"+ }+ ]+ },+ "enable": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "port": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "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+ },+ "SetSearchRequestInput": {+ "type": "object",+ "properties": {+ "alias": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "audioBlock": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "backlinkMentionAlias": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "backlinkMentionAnchor": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "backlinkMentionDoc": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "backlinkMentionKeywordsLimit": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "backlinkMentionName": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "blockquote": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "callout": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "caseSensitive": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "codeBlock": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "databaseBlock": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "document": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "embedBlock": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "hanSensitive": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "heading": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "htmlBlock": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "ial": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "iframeBlock": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "indexAssetPath": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "limit": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "list": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "listItem": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "mathBlock": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "memo": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "name": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "paragraph": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "superBlock": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "tabItem": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "table": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "tabs": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "videoBlock": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "virtualRefAlias": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "virtualRefAnchor": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "virtualRefDoc": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "virtualRefName": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "widgetBlock": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SetSecretsRequestInput": {+ "type": "object",+ "properties": {+ "items": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingSecretInput"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "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+ },+ "SetVariablesRequestInput": {+ "type": "object",+ "properties": {+ "items": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingVariableInput"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingAI": {+ "type": "object",+ "properties": {+ "agent": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingAgent"+ },+ {+ "type": "null"+ }+ ]+ },+ "editing": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingEditing"+ },+ {+ "type": "null"+ }+ ]+ },+ "embedding": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingEmbedding"+ },+ {+ "type": "null"+ }+ ]+ },+ "imageGeneration": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingImageGeneration"+ },+ {+ "type": "null"+ }+ ]+ },+ "mcp": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingMCP"+ },+ {+ "type": "null"+ }+ ]+ },+ "providers": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingProvider"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "rerank": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingRerank"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": [+ "agent",+ "editing",+ "embedding",+ "imageGeneration",+ "mcp",+ "providers",+ "rerank"+ ],+ "additionalProperties": false+ },+ "SettingAgent": {+ "type": "object",+ "properties": {+ "approvalPolicy": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingApprovalPolicy"+ },+ {+ "type": "null"+ }+ ]+ },+ "capabilityPolicy": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingCapabilityPolicy"+ },+ {+ "type": "null"+ }+ ]+ },+ "confirmTimeout": {+ "type": "integer"+ },+ "maxCompletionTokens": {+ "type": "integer"+ },+ "maxRetries": {+ "type": "integer"+ },+ "maxToolCallRounds": {+ "type": "integer"+ },+ "modelId": {+ "type": "string"+ },+ "sessionTimeout": {+ "type": "integer"+ },+ "skills": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingAgentSkills"+ },+ {+ "type": "null"+ }+ ]+ },+ "streamIdleTimeout": {+ "type": "integer"+ },+ "temperature": {+ "type": "number"+ }+ },+ "required": [+ "approvalPolicy",+ "capabilityPolicy",+ "confirmTimeout",+ "maxCompletionTokens",+ "maxRetries",+ "maxToolCallRounds",+ "modelId",+ "sessionTimeout",+ "skills",+ "streamIdleTimeout",+ "temperature"+ ],+ "additionalProperties": false+ },+ "SettingAgentInput": {+ "type": "object",+ "properties": {+ "approvalPolicy": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingApprovalPolicyInput"+ },+ {+ "type": "null"+ }+ ]+ },+ "capabilityPolicy": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingCapabilityPolicyInput"+ },+ {+ "type": "null"+ }+ ]+ },+ "confirmTimeout": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "maxCompletionTokens": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "maxRetries": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "maxToolCallRounds": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "modelId": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "sessionTimeout": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "skills": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingAgentSkillsInput"+ },+ {+ "type": "null"+ }+ ]+ },+ "streamIdleTimeout": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "temperature": {+ "anyOf": [+ {+ "type": "number"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingAgentSkills": {+ "type": "object",+ "properties": {+ "userEnabled": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": [+ "userEnabled"+ ],+ "additionalProperties": false+ },+ "SettingAgentSkillsInput": {+ "type": "object",+ "properties": {+ "userEnabled": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingAppearance": {+ "type": "object",+ "properties": {+ "bodyGradient": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingBodyGradient"+ },+ {+ "type": "null"+ }+ ]+ },+ "closeButtonBehavior": {+ "type": "integer"+ },+ "codeBlockThemeDark": {+ "type": "string"+ },+ "codeBlockThemeLight": {+ "type": "string"+ },+ "darkThemes": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingAppearanceTheme"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "entryVisibility": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingEntryVisibility"+ },+ {+ "type": "null"+ }+ ]+ },+ "globalFontFamilies": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingEditorFont"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "hideStatusBar": {+ "type": "boolean"+ },+ "hideToolbar": {+ "type": "boolean"+ },+ "icon": {+ "type": "string"+ },+ "iconVer": {+ "type": "string"+ },+ "icons": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingAppearanceIcon"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "lang": {+ "type": "string"+ },+ "lightThemes": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingAppearanceTheme"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "mode": {+ "type": "integer"+ },+ "modeOS": {+ "type": "boolean"+ },+ "notifications": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingNotifications"+ },+ {+ "type": "null"+ }+ ]+ },+ "statusBar": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingStatusBar"+ },+ {+ "type": "null"+ }+ ]+ },+ "themeDark": {+ "type": "string"+ },+ "themeJS": {+ "type": "boolean"+ },+ "themeLight": {+ "type": "string"+ },+ "themeVer": {+ "type": "string"+ }+ },+ "required": [+ "bodyGradient",+ "closeButtonBehavior",+ "codeBlockThemeDark",+ "codeBlockThemeLight",+ "darkThemes",+ "entryVisibility",+ "globalFontFamilies",+ "hideStatusBar",+ "hideToolbar",+ "icon",+ "iconVer",+ "icons",+ "lang",+ "lightThemes",+ "mode",+ "modeOS",+ "notifications",+ "statusBar",+ "themeDark",+ "themeJS",+ "themeLight",+ "themeVer"+ ],+ "additionalProperties": false+ },+ "SettingAppearanceIcon": {+ "type": "object",+ "properties": {+ "label": {+ "type": "string"+ },+ "name": {+ "type": "string"+ }+ },+ "required": [+ "label",+ "name"+ ],+ "additionalProperties": false+ },+ "SettingAppearanceIconInput": {+ "type": "object",+ "properties": {+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "name": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingAppearanceTheme": {+ "type": "object",+ "properties": {+ "frontends": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "label": {+ "type": "string"+ },+ "name": {+ "type": "string"+ }+ },+ "required": [+ "label",+ "name"+ ],+ "additionalProperties": false+ },+ "SettingAppearanceThemeInput": {+ "type": "object",+ "properties": {+ "frontends": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "label": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "name": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingApprovalPolicy": {+ "type": "object",+ "properties": {+ "default": {+ "type": "string"+ },+ "overrides": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingCapabilityApproval"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": [+ "default",+ "overrides"+ ],+ "additionalProperties": false+ },+ "SettingApprovalPolicyInput": {+ "type": "object",+ "properties": {+ "default": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "overrides": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingCapabilityApprovalInput"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingAssetOpen": {+ "type": "object",+ "properties": {+ "altClick": {+ "type": "string"+ },+ "click": {+ "type": "string"+ },+ "ctrlClick": {+ "type": "string"+ },+ "shiftClick": {+ "type": "string"+ }+ },+ "required": [+ "altClick",+ "click",+ "ctrlClick",+ "shiftClick"+ ],+ "additionalProperties": false+ },+ "SettingAssetOpenInput": {+ "type": "object",+ "properties": {+ "altClick": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "click": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "ctrlClick": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "shiftClick": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingBasicAuth": {+ "type": "object",+ "properties": {+ "accounts": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingBasicAuthAccount"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "enable": {+ "type": "boolean"+ }+ },+ "required": [+ "accounts",+ "enable"+ ],+ "additionalProperties": false+ },+ "SettingBasicAuthAccount": {+ "type": "object",+ "properties": {+ "memo": {+ "type": "string"+ },+ "password": {+ "type": "string"+ },+ "username": {+ "type": "string"+ }+ },+ "required": [+ "memo",+ "password",+ "username"+ ],+ "additionalProperties": false+ },+ "SettingBasicAuthAccountInput": {+ "type": "object",+ "properties": {+ "memo": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "password": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "username": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingBasicAuthInput": {+ "type": "object",+ "properties": {+ "accounts": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingBasicAuthAccountInput"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "enable": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingBazaar": {+ "type": "object",+ "properties": {+ "petalDisabled": {+ "type": "boolean"+ },+ "trust": {+ "type": "boolean"+ }+ },+ "required": [+ "petalDisabled",+ "trust"+ ],+ "additionalProperties": false+ },+ "SettingBodyGradient": {+ "type": "object",+ "properties": {+ "dark": {+ "$ref": "#/$defs/SettingBodyGradientColor"+ },+ "light": {+ "$ref": "#/$defs/SettingBodyGradientColor"+ },+ "mode": {+ "type": "string"+ }+ },+ "required": [+ "dark",+ "light",+ "mode"+ ],+ "additionalProperties": false+ },+ "SettingBodyGradientColor": {+ "type": "object",+ "properties": {+ "color": {+ "type": "string"+ },+ "opacity": {+ "type": "number"+ }+ },+ "required": [+ "color",+ "opacity"+ ],+ "additionalProperties": false+ },+ "SettingBodyGradientColorInput": {+ "type": "object",+ "properties": {+ "color": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "opacity": {+ "anyOf": [+ {+ "type": "number"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingBodyGradientInput": {+ "type": "object",+ "properties": {+ "dark": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingBodyGradientColorInput"+ },+ {+ "type": "null"+ }+ ]+ },+ "light": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingBodyGradientColorInput"+ },+ {+ "type": "null"+ }+ ]+ },+ "mode": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingBootAppearance": {+ "type": "object",+ "properties": {+ "appearance": {+ "type": "string"+ },+ "backgroundColor": {+ "type": "string"+ },+ "displayName": {+ "type": "string"+ },+ "enabled": {+ "type": "boolean"+ },+ "frontends": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "layers": {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingBootAppearanceLayer"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "officialUI": {+ "$ref": "#/$defs/SettingBootAppearanceOfficialUI"+ },+ "provider": {+ "type": "string"+ },+ "style": {+ "type": "string"+ }+ },+ "required": [+ "enabled"+ ],+ "additionalProperties": false+ },+ "SettingBootAppearanceCurrent": {+ "type": "object",+ "properties": {+ "appearance": {+ "type": "string"+ },+ "provider": {+ "type": "string"+ }+ },+ "required": [+ "appearance",+ "provider"+ ],+ "additionalProperties": false+ },+ "SettingBootAppearanceLayer": {+ "type": "object",+ "properties": {+ "fit": {+ "type": "string"+ },+ "id": {+ "type": "string"+ },+ "position": {+ "type": "string"+ },+ "poster": {+ "type": "string"+ },+ "src": {+ "type": "string"+ },+ "type": {+ "type": "string"+ }+ },+ "required": [+ "id",+ "src",+ "type"+ ],+ "additionalProperties": false+ },+ "SettingBootAppearanceOfficialUI": {+ "type": "object",+ "properties": {+ "progressColor": {+ "type": "string"+ },+ "showDetails": {+ "type": "boolean"+ },+ "showLogo": {+ "type": "boolean"+ },+ "textColor": {+ "type": "string"+ },+ "trackColor": {+ "type": "string"+ }+ },+ "required": [+ "showDetails",+ "showLogo"+ ],+ "additionalProperties": false+ },+ "SettingBootAppearanceRequestInput": {+ "type": "object",+ "properties": {+ "appearance": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "provider": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingBootAppearanceSelection": {+ "type": "object",+ "properties": {+ "appearance": {+ "type": "string"+ },+ "provider": {+ "type": "string"+ },+ "schemaVersion": {+ "type": "integer"+ }+ },+ "required": [+ "appearance",+ "provider",+ "schemaVersion"+ ],+ "additionalProperties": false+ },+ "SettingBootAppearancesData": {+ "type": "object",+ "properties": {+ "appearances": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingBootAppearance"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "current": {+ "$ref": "#/$defs/SettingBootAppearanceCurrent"+ }+ },+ "required": [+ "appearances",+ "current"+ ],+ "additionalProperties": false+ },+ "SettingCapabilityApproval": {+ "type": "object",+ "properties": {+ "actions": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "default": {+ "type": "string"+ }+ },+ "required": [+ "actions",+ "default"+ ],+ "additionalProperties": false+ },+ "SettingCapabilityApprovalInput": {+ "type": "object",+ "properties": {+ "actions": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "default": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingCapabilityPolicy": {+ "type": "object",+ "properties": {+ "default": {+ "type": "string"+ },+ "overrides": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": [+ "default",+ "overrides"+ ],+ "additionalProperties": false+ },+ "SettingCapabilityPolicyInput": {+ "type": "object",+ "properties": {+ "default": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "overrides": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingCloudUserRequestInput": {+ "type": "object",+ "properties": {+ "token": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingEditing": {+ "type": "object",+ "properties": {+ "maxCompletionTokens": {+ "type": "integer"+ },+ "maxHistoryMessages": {+ "type": "integer"+ },+ "modelId": {+ "type": "string"+ },+ "temperature": {+ "type": "number"+ }+ },+ "required": [+ "maxCompletionTokens",+ "maxHistoryMessages",+ "modelId",+ "temperature"+ ],+ "additionalProperties": false+ },+ "SettingEditingInput": {+ "type": "object",+ "properties": {+ "maxCompletionTokens": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "maxHistoryMessages": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "modelId": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "temperature": {+ "anyOf": [+ {+ "type": "number"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingEditor": {+ "type": "object",+ "properties": {+ "allowHTMLBLockScript": {+ "type": "boolean"+ },+ "allowSVGScript": {+ "type": "boolean"+ },+ "assetOpen": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingAssetOpen"+ },+ {+ "type": "null"+ }+ ]+ },+ "backlinkContainChildren": {+ "type": "boolean"+ },+ "backlinkExpandCount": {+ "type": "integer"+ },+ "backlinkHideReference": {+ "type": "boolean"+ },+ "backlinkMentionExclude": {+ "type": "string"+ },+ "backlinkShowBottom": {+ "type": "boolean"+ },+ "backlinkSort": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "backmentionExpandCount": {+ "type": "integer"+ },+ "backmentionSort": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "blockRefDynamicAnchorTextMaxLen": {+ "type": "integer"+ },+ "checkBlockRef": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "codeFontFamilies": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingEditorFont"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "codeLigatures": {+ "type": "boolean"+ },+ "codeLineWrap": {+ "type": "boolean"+ },+ "codeSyntaxHighlightLineNum": {+ "type": "boolean"+ },+ "codeTabSpaces": {+ "type": "integer"+ },+ "cursorSurroundingLines": {+ "type": "integer"+ },+ "databaseAttrClickMode": {+ "type": "integer"+ },+ "databaseAttrHideEmpty": {+ "type": "boolean"+ },+ "databaseAttrShow": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "databaseAttrUseTabs": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "databaseAttrViewMode": {+ "type": "integer"+ },+ "displayBookmarkIcon": {+ "type": "boolean"+ },+ "displayNetImgMark": {+ "type": "boolean"+ },+ "dragHTMLFileToIframe": {+ "type": "boolean"+ },+ "dynamicLoadBlocks": {+ "type": "integer"+ },+ "embedBlockBreadcrumb": {+ "type": "boolean"+ },+ "emoji": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "floatWindowDelay": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "floatWindowMode": {+ "type": "integer"+ },+ "fontFamilies": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingEditorFont"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "fontFamily": {+ "type": "string"+ },+ "fontFamilyDisplay": {+ "type": "string"+ },+ "fontSize": {+ "type": "integer"+ },+ "fontSizeScrollZoom": {+ "type": "boolean"+ },+ "fontWeight": {+ "type": "integer"+ },+ "fullWidth": {+ "type": "boolean"+ },+ "generateHistoryInterval": {+ "type": "integer"+ },+ "hashTagSearch": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "headingEmbedMode": {+ "type": "integer"+ },+ "headingNumber": {+ "type": "boolean"+ },+ "headingNumberFormat": {+ "type": "string"+ },+ "historyRetentionDays": {+ "type": "integer"+ },+ "justify": {+ "type": "boolean"+ },+ "katexMacros": {+ "type": "string"+ },+ "keepLoadedContent": {+ "type": "boolean"+ },+ "listItemDotNumberClickFocus": {+ "type": "boolean"+ },+ "listLogicalOutdent": {+ "type": "boolean"+ },+ "markdown": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingMarkdown"+ },+ {+ "type": "null"+ }+ ]+ },+ "onlySearchForDoc": {+ "type": "boolean"+ },+ "pasteURLAutoConvert": {+ "type": "boolean"+ },+ "plantUMLServePath": {+ "type": "string"+ },+ "readOnly": {+ "type": "boolean"+ },+ "rtl": {+ "type": "boolean"+ },+ "spellcheck": {+ "type": "boolean"+ },+ "spellcheckLanguages": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "virtualBlockRef": {+ "type": "boolean"+ },+ "virtualBlockRefExclude": {+ "type": "string"+ },+ "virtualBlockRefInclude": {+ "type": "string"+ }+ },+ "required": [+ "allowHTMLBLockScript",+ "allowSVGScript",+ "assetOpen",+ "backlinkContainChildren",+ "backlinkExpandCount",+ "backlinkHideReference",+ "backlinkMentionExclude",+ "backlinkShowBottom",+ "backlinkSort",+ "backmentionExpandCount",+ "backmentionSort",+ "blockRefDynamicAnchorTextMaxLen",+ "checkBlockRef",+ "codeFontFamilies",+ "codeLigatures",+ "codeLineWrap",+ "codeSyntaxHighlightLineNum",+ "codeTabSpaces",+ "cursorSurroundingLines",+ "databaseAttrClickMode",+ "databaseAttrHideEmpty",+ "databaseAttrShow",+ "databaseAttrUseTabs",+ "databaseAttrViewMode",+ "displayBookmarkIcon",+ "displayNetImgMark",+ "dragHTMLFileToIframe",+ "dynamicLoadBlocks",+ "embedBlockBreadcrumb",+ "emoji",+ "floatWindowDelay",+ "floatWindowMode",+ "fontFamilies",+ "fontFamily",+ "fontFamilyDisplay",+ "fontSize",+ "fontSizeScrollZoom",+ "fontWeight",+ "fullWidth",+ "generateHistoryInterval",+ "hashTagSearch",+ "headingEmbedMode",+ "headingNumber",+ "headingNumberFormat",+ "historyRetentionDays",+ "justify",+ "katexMacros",+ "keepLoadedContent",+ "listItemDotNumberClickFocus",+ "listLogicalOutdent",+ "markdown",+ "onlySearchForDoc",+ "pasteURLAutoConvert",+ "plantUMLServePath",+ "readOnly",+ "rtl",+ "spellcheck",+ "spellcheckLanguages",+ "virtualBlockRef",+ "virtualBlockRefExclude",+ "virtualBlockRefInclude"+ ],+ "additionalProperties": false+ },+ "SettingEditorFont": {+ "type": "object",+ "properties": {+ "displayName": {+ "type": "string"+ },+ "family": {+ "type": "string"+ },+ "weight": {+ "type": "integer"+ }+ },+ "required": [+ "displayName",+ "family",+ "weight"+ ],+ "additionalProperties": false+ },+ "SettingEditorFontInput": {+ "type": "object",+ "properties": {+ "displayName": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "family": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "weight": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingEmbedding": {+ "type": "object",+ "properties": {+ "apiKey": {+ "type": "string"+ },+ "baseURL": {+ "type": "string"+ },+ "dimensions": {+ "type": "integer"+ },+ "enabled": {+ "type": "boolean"+ },+ "id": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "timeout": {+ "type": "integer"+ }+ },+ "required": [+ "apiKey",+ "baseURL",+ "dimensions",+ "enabled",+ "id",+ "name",+ "timeout"+ ],+ "additionalProperties": false+ },+ "SettingEmbeddingInput": {+ "type": "object",+ "properties": {+ "apiKey": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "baseURL": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "dimensions": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "enabled": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "name": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "timeout": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingEmojiRequestInput": {+ "type": "object",+ "properties": {+ "emoji": {+ "type": "array",+ "items": {+ "type": "string"+ }+ }+ },+ "required": [+ "emoji"+ ],+ "additionalProperties": false+ },+ "SettingEntryVisibility": {+ "type": "object",+ "properties": {+ "active": {+ "type": "string"+ },+ "profiles": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingEntryVisibilityProfile"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "version": {+ "type": "integer"+ }+ },+ "required": [+ "active",+ "profiles",+ "version"+ ],+ "additionalProperties": false+ },+ "SettingEntryVisibilityInput": {+ "type": "object",+ "properties": {+ "active": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "profiles": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingEntryVisibilityProfileInput"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "version": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingEntryVisibilityProfile": {+ "type": "object",+ "properties": {+ "entries": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "boolean"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "orders": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": [+ "entries",+ "id",+ "name",+ "orders"+ ],+ "additionalProperties": false+ },+ "SettingEntryVisibilityProfileInput": {+ "type": "object",+ "properties": {+ "entries": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "boolean"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "name": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "orders": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingExport": {+ "type": "object",+ "properties": {+ "addTitle": {+ "type": "boolean"+ },+ "blockEmbedMode": {+ "type": "integer"+ },+ "blockRefMode": {+ "type": "integer"+ },+ "blockRefTextLeft": {+ "type": "string"+ },+ "blockRefTextRight": {+ "type": "string"+ },+ "docxTemplate": {+ "type": "string"+ },+ "fileAnnotationRefMode": {+ "type": "integer"+ },+ "imageWatermarkDesc": {+ "type": "string"+ },+ "imageWatermarkStr": {+ "type": "string"+ },+ "includeRelatedDocs": {+ "type": "boolean"+ },+ "includeSubDocs": {+ "type": "boolean"+ },+ "inlineMemo": {+ "type": "boolean"+ },+ "markdownYFM": {+ "type": "boolean"+ },+ "pandocBin": {+ "type": "string"+ },+ "pandocParams": {+ "type": "string"+ },+ "paragraphBeginningSpace": {+ "type": "boolean"+ },+ "pdfFooter": {+ "type": "string"+ },+ "pdfWatermarkDesc": {+ "type": "string"+ },+ "pdfWatermarkStr": {+ "type": "string"+ },+ "removeAssetsID": {+ "type": "boolean"+ },+ "tagCloseMarker": {+ "type": "string"+ },+ "tagOpenMarker": {+ "type": "string"+ }+ },+ "required": [+ "addTitle",+ "blockEmbedMode",+ "blockRefMode",+ "blockRefTextLeft",+ "blockRefTextRight",+ "docxTemplate",+ "fileAnnotationRefMode",+ "imageWatermarkDesc",+ "imageWatermarkStr",+ "includeRelatedDocs",+ "includeSubDocs",+ "inlineMemo",+ "markdownYFM",+ "pandocBin",+ "pandocParams",+ "paragraphBeginningSpace",+ "pdfFooter",+ "pdfWatermarkDesc",+ "pdfWatermarkStr",+ "removeAssetsID",+ "tagCloseMarker",+ "tagOpenMarker"+ ],+ "additionalProperties": false+ },+ "SettingFileTree": {+ "type": "object",+ "properties": {+ "allowCreateDeeper": {+ "type": "boolean"+ },+ "alwaysSelectOpenedFile": {+ "type": "boolean"+ },+ "boxDocEnabled": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "closeTabOnDoubleClick": {+ "type": "boolean"+ },+ "closeTabsOnStart": {+ "type": "boolean"+ },+ "createDocAtTop": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "docCreateSaveBox": {+ "type": "string"+ },+ "docCreateSavePath": {+ "type": "string"+ },+ "docCreateTemplatePath": {+ "type": "string"+ },+ "docIconClickExpand": {+ "type": "boolean"+ },+ "largeFileWarningSize": {+ "type": "integer"+ },+ "maxListCount": {+ "type": "integer"+ },+ "maxOpenTabCount": {+ "type": "integer"+ },+ "noSplitScreenWhenOpenTab": {+ "type": "boolean"+ },+ "openFilesUseCurrentTab": {+ "type": "boolean"+ },+ "parentDocClickExpand": {+ "type": "boolean"+ },+ "recentDocsMaxListCount": {+ "type": "integer"+ },+ "refCreateSaveBox": {+ "type": "string"+ },+ "refCreateSavePath": {+ "type": "string"+ },+ "removeDocWithoutConfirm": {+ "type": "boolean"+ },+ "shorthandSaveBox": {+ "type": "string"+ },+ "shorthandSavePath": {+ "type": "string"+ },+ "sort": {+ "type": "integer"+ },+ "tabStartupMode": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "useSVGDefaultIcon": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "useSingleLineSave": {+ "type": "boolean"+ }+ },+ "required": [+ "allowCreateDeeper",+ "alwaysSelectOpenedFile",+ "boxDocEnabled",+ "closeTabOnDoubleClick",+ "closeTabsOnStart",+ "createDocAtTop",+ "docCreateSaveBox",+ "docCreateSavePath",+ "docCreateTemplatePath",+ "docIconClickExpand",+ "largeFileWarningSize",+ "maxListCount",+ "maxOpenTabCount",+ "noSplitScreenWhenOpenTab",+ "openFilesUseCurrentTab",+ "parentDocClickExpand",+ "recentDocsMaxListCount",+ "refCreateSaveBox",+ "refCreateSavePath",+ "removeDocWithoutConfirm",+ "shorthandSaveBox",+ "shorthandSavePath",+ "sort",+ "tabStartupMode",+ "useSVGDefaultIcon",+ "useSingleLineSave"+ ],+ "additionalProperties": false+ },+ "SettingFlashcard": {+ "type": "object",+ "properties": {+ "blockquote": {+ "type": "boolean"+ },+ "callout": {+ "type": "boolean"+ },+ "deck": {+ "type": "boolean"+ },+ "heading": {+ "type": "boolean"+ },+ "list": {+ "type": "boolean"+ },+ "mark": {+ "type": "boolean"+ },+ "maximumInterval": {+ "type": "integer"+ },+ "newCardLimit": {+ "type": "integer"+ },+ "requestRetention": {+ "type": "number"+ },+ "reviewCardLimit": {+ "type": "integer"+ },+ "reviewMode": {+ "type": "integer"+ },+ "superBlock": {+ "type": "boolean"+ },+ "weights": {+ "type": "string"+ }+ },+ "required": [+ "blockquote",+ "callout",+ "deck",+ "heading",+ "list",+ "mark",+ "maximumInterval",+ "newCardLimit",+ "requestRetention",+ "reviewCardLimit",+ "reviewMode",+ "superBlock",+ "weights"+ ],+ "additionalProperties": false+ },+ "SettingIconRequestInput": {+ "type": "object",+ "properties": {+ "icon": {+ "type": "string"+ }+ },+ "required": [+ "icon"+ ],+ "additionalProperties": false+ },+ "SettingImageGeneration": {+ "type": "object",+ "properties": {+ "modelId": {+ "type": "string"+ },+ "outputFormat": {+ "type": "string"+ },+ "quality": {+ "type": "string"+ },+ "requestTimeout": {+ "type": "integer"+ },+ "size": {+ "type": "string"+ }+ },+ "required": [+ "modelId",+ "outputFormat",+ "quality",+ "requestTimeout",+ "size"+ ],+ "additionalProperties": false+ },+ "SettingImageGenerationInput": {+ "type": "object",+ "properties": {+ "modelId": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "outputFormat": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "quality": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "requestTimeout": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "size": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingKeymapRequestInput": {+ "type": "object",+ "properties": {+ "data": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "$ref": "#/$defs/JSONValue"+ }+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingLogin2faRequestInput": {+ "type": "object",+ "properties": {+ "code": {+ "type": "string"+ },+ "token": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "token"+ ],+ "additionalProperties": false+ },+ "SettingMCP": {+ "type": "object",+ "properties": {+ "exposurePolicy": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingCapabilityPolicy"+ },+ {+ "type": "null"+ }+ ]+ },+ "servers": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/SettingMCPServer"+ }+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": [+ "exposurePolicy",+ "servers"+ ],+ "additionalProperties": false+ },+ "SettingMCPInput": {+ "type": "object",+ "properties": {+ "exposurePolicy": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingCapabilityPolicyInput"+ },+ {+ "type": "null"+ }+ ]+ },+ "servers": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/SettingMCPServerInput"+ }+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingMCPServer": {+ "type": "object",+ "properties": {+ "args": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "command": {+ "type": "string"+ },+ "disableStandaloneSSE": {+ "type": "boolean"+ },+ "enabled": {+ "type": "boolean"+ },+ "env": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "headers": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "type": "string"+ },+ "inheritEnv": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "name": {+ "type": "string"+ },+ "timeout": {+ "type": "integer"+ },+ "trustToolAnnotations": {+ "type": "boolean"+ },+ "type": {+ "type": "string"+ },+ "url": {+ "type": "string"+ }+ },+ "required": [+ "args",+ "command",+ "disableStandaloneSSE",+ "enabled",+ "env",+ "headers",+ "id",+ "inheritEnv",+ "name",+ "timeout",+ "trustToolAnnotations",+ "type",+ "url"+ ],+ "additionalProperties": false+ },+ "SettingMCPServerInput": {+ "type": "object",+ "properties": {+ "args": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "command": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "disableStandaloneSSE": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "enabled": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "env": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "headers": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "inheritEnv": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "name": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "timeout": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "trustToolAnnotations": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "type": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "url": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingMarkdown": {+ "type": "object",+ "properties": {+ "blockFullWidthTaskList": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "codeBlockMiddleDot": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "inlineAsterisk": {+ "type": "boolean"+ },+ "inlineFullWidthStrikethrough": {+ "type": "boolean"+ },+ "inlineMark": {+ "type": "boolean"+ },+ "inlineMath": {+ "type": "boolean"+ },+ "inlineStrikethrough": {+ "type": "boolean"+ },+ "inlineSub": {+ "type": "boolean"+ },+ "inlineSup": {+ "type": "boolean"+ },+ "inlineTag": {+ "type": "boolean"+ },+ "inlineUnderscore": {+ "type": "boolean"+ }+ },+ "required": [+ "blockFullWidthTaskList",+ "codeBlockMiddleDot",+ "inlineAsterisk",+ "inlineFullWidthStrikethrough",+ "inlineMark",+ "inlineMath",+ "inlineStrikethrough",+ "inlineSub",+ "inlineSup",+ "inlineTag",+ "inlineUnderscore"+ ],+ "additionalProperties": false+ },+ "SettingMarkdownInput": {+ "type": "object",+ "properties": {+ "blockFullWidthTaskList": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "codeBlockMiddleDot": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "inlineAsterisk": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "inlineFullWidthStrikethrough": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "inlineMark": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "inlineMath": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "inlineStrikethrough": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "inlineSub": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "inlineSup": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "inlineTag": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "inlineUnderscore": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingModel": {+ "type": "object",+ "properties": {+ "contextLength": {+ "type": "integer"+ },+ "displayName": {+ "type": "string"+ },+ "enabled": {+ "type": "boolean"+ },+ "id": {+ "type": "string"+ },+ "name": {+ "type": "string"+ }+ },+ "required": [+ "enabled",+ "id",+ "name"+ ],+ "additionalProperties": false+ },+ "SettingModelInput": {+ "type": "object",+ "properties": {+ "contextLength": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "displayName": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "enabled": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "name": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingNotifications": {+ "type": "object",+ "properties": {+ "browserCompatibility": {+ "type": "boolean"+ },+ "docTreeMaxList": {+ "type": "boolean"+ },+ "formatPainterTip": {+ "type": "boolean"+ },+ "selectAllIncompleteTip": {+ "type": "boolean"+ },+ "selectAllTip": {+ "type": "boolean"+ },+ "tagMaxList": {+ "type": "boolean"+ },+ "workspaceNotSSD": {+ "type": "boolean"+ }+ },+ "required": [+ "browserCompatibility",+ "docTreeMaxList",+ "tagMaxList",+ "workspaceNotSSD"+ ],+ "additionalProperties": false+ },+ "SettingNotificationsInput": {+ "type": "object",+ "properties": {+ "browserCompatibility": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "docTreeMaxList": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "formatPainterTip": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "selectAllIncompleteTip": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "selectAllTip": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "tagMaxList": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "workspaceNotSSD": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingPetalDisabledData": {+ "type": "object",+ "properties": {+ "dataChangePlugins": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "globalPetalChanged": {+ "type": "boolean"+ },+ "globalPetalDisabled": {+ "type": "boolean"+ },+ "globalPetalEnabled": {+ "type": "boolean"+ },+ "globalPetalRevision": {+ "type": "integer"+ },+ "reloadPlugins": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "uninstallPlugins": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "unloadPlugins": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": [+ "dataChangePlugins",+ "globalPetalChanged",+ "globalPetalDisabled",+ "globalPetalEnabled",+ "globalPetalRevision",+ "reloadPlugins",+ "uninstallPlugins",+ "unloadPlugins"+ ],+ "additionalProperties": false+ },+ "SettingPetalDisabledRequestInput": {+ "type": "object",+ "properties": {+ "petalDisabled": {+ "type": "boolean"+ }+ },+ "required": [+ "petalDisabled"+ ],+ "additionalProperties": false+ },+ "SettingProvider": {+ "type": "object",+ "properties": {+ "apiKey": {+ "type": "string"+ },+ "baseURL": {+ "type": "string"+ },+ "displayName": {+ "type": "string"+ },+ "enabled": {+ "type": "boolean"+ },+ "headers": {+ "type": "object",+ "additionalProperties": {+ "type": "string"+ }+ },+ "id": {+ "type": "string"+ },+ "models": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingModel"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "protocol": {+ "type": "string"+ },+ "requestTimeout": {+ "type": "integer"+ }+ },+ "required": [+ "apiKey",+ "baseURL",+ "enabled",+ "id",+ "models",+ "requestTimeout"+ ],+ "additionalProperties": false+ },+ "SettingProviderInput": {+ "type": "object",+ "properties": {+ "apiKey": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "baseURL": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "displayName": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "enabled": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "headers": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "models": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingModelInput"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "protocol": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "requestTimeout": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingPublish": {+ "type": "object",+ "properties": {+ "auth": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingBasicAuth"+ },+ {+ "type": "null"+ }+ ]+ },+ "enable": {+ "type": "boolean"+ },+ "port": {+ "type": "integer"+ }+ },+ "required": [+ "auth",+ "enable",+ "port"+ ],+ "additionalProperties": false+ },+ "SettingPublishData": {+ "type": "object",+ "properties": {+ "port": {+ "type": "integer"+ },+ "publish": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingPublish"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": [+ "port",+ "publish"+ ],+ "additionalProperties": false+ },+ "SettingRerank": {+ "type": "object",+ "properties": {+ "apiKey": {+ "type": "string"+ },+ "candidateCount": {+ "type": "integer"+ },+ "enabled": {+ "type": "boolean"+ },+ "endpoint": {+ "type": "string"+ },+ "id": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "requestFormat": {+ "type": "string"+ },+ "timeout": {+ "type": "integer"+ }+ },+ "required": [+ "apiKey",+ "candidateCount",+ "enabled",+ "endpoint",+ "id",+ "name",+ "requestFormat",+ "timeout"+ ],+ "additionalProperties": false+ },+ "SettingRerankInput": {+ "type": "object",+ "properties": {+ "apiKey": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "candidateCount": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ },+ "enabled": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "endpoint": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "id": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "name": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "requestFormat": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "timeout": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingSearch": {+ "type": "object",+ "properties": {+ "alias": {+ "type": "boolean"+ },+ "audioBlock": {+ "type": "boolean"+ },+ "backlinkMentionAlias": {+ "type": "boolean"+ },+ "backlinkMentionAnchor": {+ "type": "boolean"+ },+ "backlinkMentionDoc": {+ "type": "boolean"+ },+ "backlinkMentionKeywordsLimit": {+ "type": "integer"+ },+ "backlinkMentionName": {+ "type": "boolean"+ },+ "blockquote": {+ "type": "boolean"+ },+ "callout": {+ "type": "boolean"+ },+ "caseSensitive": {+ "type": "boolean"+ },+ "codeBlock": {+ "type": "boolean"+ },+ "databaseBlock": {+ "type": "boolean"+ },+ "document": {+ "type": "boolean"+ },+ "embedBlock": {+ "type": "boolean"+ },+ "hanSensitive": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "heading": {+ "type": "boolean"+ },+ "htmlBlock": {+ "type": "boolean"+ },+ "ial": {+ "type": "boolean"+ },+ "iframeBlock": {+ "type": "boolean"+ },+ "indexAssetPath": {+ "type": "boolean"+ },+ "limit": {+ "type": "integer"+ },+ "list": {+ "type": "boolean"+ },+ "listItem": {+ "type": "boolean"+ },+ "mathBlock": {+ "type": "boolean"+ },+ "memo": {+ "type": "boolean"+ },+ "name": {+ "type": "boolean"+ },+ "paragraph": {+ "type": "boolean"+ },+ "superBlock": {+ "type": "boolean"+ },+ "tabItem": {+ "type": "boolean"+ },+ "table": {+ "type": "boolean"+ },+ "tabs": {+ "type": "boolean"+ },+ "videoBlock": {+ "type": "boolean"+ },+ "virtualRefAlias": {+ "type": "boolean"+ },+ "virtualRefAnchor": {+ "type": "boolean"+ },+ "virtualRefDoc": {+ "type": "boolean"+ },+ "virtualRefName": {+ "type": "boolean"+ },+ "widgetBlock": {+ "type": "boolean"+ }+ },+ "required": [+ "alias",+ "audioBlock",+ "backlinkMentionAlias",+ "backlinkMentionAnchor",+ "backlinkMentionDoc",+ "backlinkMentionKeywordsLimit",+ "backlinkMentionName",+ "blockquote",+ "callout",+ "caseSensitive",+ "codeBlock",+ "databaseBlock",+ "document",+ "embedBlock",+ "hanSensitive",+ "heading",+ "htmlBlock",+ "ial",+ "iframeBlock",+ "indexAssetPath",+ "limit",+ "list",+ "listItem",+ "mathBlock",+ "memo",+ "name",+ "paragraph",+ "superBlock",+ "tabItem",+ "table",+ "tabs",+ "videoBlock",+ "virtualRefAlias",+ "virtualRefAnchor",+ "virtualRefDoc",+ "virtualRefName",+ "widgetBlock"+ ],+ "additionalProperties": false+ },+ "SettingSecret": {+ "type": "object",+ "properties": {+ "allowedHosts": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "name": {+ "type": "string"+ },+ "value": {+ "type": "string"+ }+ },+ "required": [+ "allowedHosts",+ "name",+ "value"+ ],+ "additionalProperties": false+ },+ "SettingSecretInput": {+ "type": "object",+ "properties": {+ "allowedHosts": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "name": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "value": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingSecrets": {+ "type": "object",+ "properties": {+ "items": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingSecret"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": [+ "items"+ ],+ "additionalProperties": false+ },+ "SettingSnpt": {+ "type": "object",+ "properties": {+ "enabledCSS": {+ "type": "boolean"+ },+ "enabledJS": {+ "type": "boolean"+ }+ },+ "required": [+ "enabledCSS",+ "enabledJS"+ ],+ "additionalProperties": false+ },+ "SettingStatusBar": {+ "type": "object",+ "properties": {+ "msgDataSyncDisabled": {+ "type": "boolean"+ },+ "msgTaskAssetDatabaseIndexCommitDisabled": {+ "type": "boolean"+ },+ "msgTaskDatabaseIndexCommitDisabled": {+ "type": "boolean"+ },+ "msgTaskHistoryDatabaseIndexCommitDisabled": {+ "type": "boolean"+ },+ "msgTaskHistoryGenerateFileDisabled": {+ "type": "boolean"+ },+ "version": {+ "type": "integer"+ }+ },+ "required": [+ "msgDataSyncDisabled",+ "msgTaskAssetDatabaseIndexCommitDisabled",+ "msgTaskDatabaseIndexCommitDisabled",+ "msgTaskHistoryDatabaseIndexCommitDisabled",+ "msgTaskHistoryGenerateFileDisabled",+ "version"+ ],+ "additionalProperties": false+ },+ "SettingStatusBarInput": {+ "type": "object",+ "properties": {+ "msgDataSyncDisabled": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "msgTaskAssetDatabaseIndexCommitDisabled": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "msgTaskDatabaseIndexCommitDisabled": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "msgTaskHistoryDatabaseIndexCommitDisabled": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "msgTaskHistoryGenerateFileDisabled": {+ "anyOf": [+ {+ "type": "boolean"+ },+ {+ "type": "null"+ }+ ]+ },+ "version": {+ "anyOf": [+ {+ "type": "integer"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingThemeRequestInput": {+ "type": "object",+ "properties": {+ "appearanceMode": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "modes": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "number"+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "theme": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingUser": {+ "type": "object",+ "properties": {+ "userAvatarURL": {+ "type": "string"+ },+ "userCreateTime": {+ "type": "string"+ },+ "userHomeBImgURL": {+ "type": "string"+ },+ "userId": {+ "type": "string"+ },+ "userIntro": {+ "type": "string"+ },+ "userName": {+ "type": "string"+ },+ "userNickname": {+ "type": "string"+ },+ "userSiYuanAssetSize": {+ "type": "number"+ },+ "userSiYuanOneTimePayStatus": {+ "type": "number"+ },+ "userSiYuanPointExchangeRepoSize": {+ "type": "number"+ },+ "userSiYuanProExpireTime": {+ "type": "number"+ },+ "userSiYuanRepoSize": {+ "type": "number"+ },+ "userSiYuanSubscriptionPlan": {+ "type": "number"+ },+ "userSiYuanSubscriptionStatus": {+ "type": "number"+ },+ "userSiYuanSubscriptionType": {+ "type": "number"+ },+ "userTitles": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingUserTitle"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "userToken": {+ "type": "string"+ },+ "userTokenExpireTime": {+ "type": "string"+ },+ "userTrafficAPIGet": {+ "type": "number"+ },+ "userTrafficAPIPut": {+ "type": "number"+ },+ "userTrafficDownload": {+ "type": "number"+ },+ "userTrafficTime": {+ "type": "number"+ },+ "userTrafficUpload": {+ "type": "number"+ }+ },+ "required": [+ "userAvatarURL",+ "userCreateTime",+ "userHomeBImgURL",+ "userId",+ "userIntro",+ "userName",+ "userNickname",+ "userSiYuanAssetSize",+ "userSiYuanOneTimePayStatus",+ "userSiYuanPointExchangeRepoSize",+ "userSiYuanProExpireTime",+ "userSiYuanRepoSize",+ "userSiYuanSubscriptionPlan",+ "userSiYuanSubscriptionStatus",+ "userSiYuanSubscriptionType",+ "userTitles",+ "userToken",+ "userTokenExpireTime",+ "userTrafficAPIGet",+ "userTrafficAPIPut",+ "userTrafficDownload",+ "userTrafficTime",+ "userTrafficUpload"+ ],+ "additionalProperties": false+ },+ "SettingUserTitle": {+ "type": "object",+ "properties": {+ "desc": {+ "type": "string"+ },+ "icon": {+ "type": "string"+ },+ "name": {+ "type": "string"+ }+ },+ "required": [+ "desc",+ "icon",+ "name"+ ],+ "additionalProperties": false+ },+ "SettingVariable": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "value": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "value"+ ],+ "additionalProperties": false+ },+ "SettingVariableInput": {+ "type": "object",+ "properties": {+ "name": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ },+ "value": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "additionalProperties": false+ },+ "SettingVariables": {+ "type": "object",+ "properties": {+ "items": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingVariable"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "required": [+ "items"+ ],+ "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"+ }},- {- "type": "null"- }- ]- }- },- "additionalProperties": false+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": true+ }+ ]+ }},- "WorkspaceAVPaletteRequestInput": {- "type": "object",- "properties": {- "app": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]- },- "builtinColors": {- "anyOf": [- {- "type": "array",- "items": {+ {+ "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": [{- "$ref": "#/$defs/WorkspaceAVBuiltinColorUpdateInput"+ "type": "array",+ "items": {+ "type": "string"+ }},{"type": "null"}]+ },+ "msg": {+ "type": "string"}},- {- "type": "null"- }- ]- },- "colors": {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/AttributeViewCustomColorInput"+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": false+ },+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ -1+ ]},- {- "type": "null"+ "data": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "closeTimeout": {+ "type": "number"+ }+ },+ "required": [+ "closeTimeout"+ ],+ "additionalProperties": false+ },+ {+ "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/asset/getFileAnnotation",+ "handler": "getFileAnnotation",+ "body": "json",+ "request": {+ "$ref": "#/$defs/AssetPathRequestInput"},- "required": [- "siyuanVer",- "workspaceDir"- ],- "additionalProperties": false+ "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+ }+ ]+ }},- "ZipRequestInput": {- "type": "object",- "properties": {- "path": {- "type": "string"- },- "zipPath": {- "type": "string"- }+ {+ "method": "POST",+ "path": "/api/asset/getImageOCRText",+ "handler": "getImageOCRText",+ "body": "json",+ "request": {+ "$ref": "#/$defs/AssetOCRTextRequestInput"},- "required": [- "path",- "zipPath"- ],- "additionalProperties": false- }- },- "endpoints": [+ "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": "GET",- "path": "/api/plugin",- "handler": "listLoadedPluginsGET",+ "method": "POST",+ "path": "/api/asset/getMissingAssets",+ "handler": "getMissingAssets","body": "none","request": {"$ref": "#/$defs/EmptyRequestInput"@@ -19944,7 +28042,7 @@"items": {"anyOf": [{- "$ref": "#/$defs/LoadedPlugin"+ "$ref": "#/$defs/AssetUnusedItem"},{"type": "null"@@ -20011,12 +28109,12 @@}},{- "method": "GET",- "path": "/api/plugin/rpc",- "handler": "getLoadedPluginRPC",- "body": "json",+ "method": "POST",+ "path": "/api/asset/getUnusedAssets",+ "handler": "getUnusedAssets",+ "body": "none","request": {- "$ref": "#/$defs/LoadedPluginRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -20032,7 +28130,17 @@"data": {"anyOf": [{- "$ref": "#/$defs/LoadedPlugin"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/AssetUnusedItem"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"@@ -20056,11 +28164,7 @@"code": {"type": "integer","enum": [- -1,- 1,- 2,- 3,- 4+ -1]},"data": {@@ -20097,12 +28201,12 @@}},{- "method": "GET",- "path": "/api/plugin/rpc/:name",- "handler": "getLoadedPluginRPCByName",+ "method": "POST",+ "path": "/api/asset/insertCover",+ "handler": "insertCover","body": "json","request": {- "$ref": "#/$defs/LoadedPluginRequestInput"+ "$ref": "#/$defs/InsertCoverRequestInput"},"response": {"anyOf": [@@ -20115,10 +28219,42 @@0]},+ "data": {+ "$ref": "#/$defs/AssetInsertCoverData"+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": false+ },+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ -1+ ]+ },"data": {"anyOf": [{- "$ref": "#/$defs/LoadedPlugin"+ "type": "object",+ "properties": {+ "closeTimeout": {+ "type": "number"+ }+ },+ "required": [+ "closeTimeout"+ ],+ "additionalProperties": false},{"type": "null"@@ -20134,6 +28270,42 @@"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},{@@ -20142,11 +28314,7 @@"code": {"type": "integer","enum": [- -1,- 1,- 2,- 3,- 4+ -1]},"data": {@@ -20165,6 +28333,9 @@},{"type": "null"+ },+ {+ "$ref": "#/$defs/AssetUploadData"}]},@@ -20183,12 +28354,12 @@}},{- "method": "GET",- "path": "/api/system/bootProgress",- "handler": "bootProgress",- "body": "none",+ "method": "POST",+ "path": "/api/asset/ocr",+ "handler": "ocr",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/AssetPathRequestInput"},"response": {"anyOf": [@@ -20202,7 +28373,7 @@]},"data": {- "$ref": "#/$defs/BootProgressData"+ "$ref": "#/$defs/AssetOCRData"},"msg": {"type": "string"@@ -20258,12 +28429,12 @@}},{- "method": "GET",- "path": "/api/system/version",- "handler": "version",- "body": "none",+ "method": "POST",+ "path": "/api/asset/removeUnusedAsset",+ "handler": "removeUnusedAsset",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/AssetPathRequestInput"},"response": {"anyOf": [@@ -20277,7 +28448,7 @@]},"data": {- "type": "string"+ "$ref": "#/$defs/AssetPathData"},"msg": {"type": "string"@@ -20333,9 +28504,9 @@}},{- "method": "GET",- "path": "/ws/plugin/rpc",- "handler": "pluginJsonRpcWebSocket",+ "method": "POST",+ "path": "/api/asset/removeUnusedAssets",+ "handler": "removeUnusedAssets","body": "none","request": {"$ref": "#/$defs/EmptyRequestInput"@@ -20343,7 +28514,27 @@"response": {"anyOf": [{- "$ref": "#/$defs/PluginRPCFailure"+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "$ref": "#/$defs/AssetPathsData"+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": false},{"type": "object",@@ -20385,65 +28576,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/asset/renameAsset",+ "handler": "renameAsset",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/RenameAssetRequestInput"},"response": {"anyOf": [{- "$ref": "#/$defs/PluginRPCFailure"+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "$ref": "#/$defs/AssetRenameData"+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": false},{"type": "object",@@ -20485,60 +28651,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/asset/resolveAssetPath",+ "handler": "resolveAssetPath","body": "json","request": {- "$ref": "#/$defs/CheckActivationCodeRequestInput"+ "$ref": "#/$defs/AssetPathRequestInput"},"response": {"anyOf": [@@ -20552,7 +28673,7 @@]},"data": {- "type": "null"+ "type": "string"},"msg": {"type": "string"@@ -20571,8 +28692,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -20589,9 +28709,6 @@],"additionalProperties": false},- {- "type": "null"- },{"type": "null"}@@ -20613,11 +28730,11 @@},{"method": "POST",- "path": "/api/account/deactivate",- "handler": "deactivateUser",- "body": "none",+ "path": "/api/asset/setFileAnnotation",+ "handler": "setFileAnnotation",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/SetAssetAnnotationRequestInput"},"response": {"anyOf": [@@ -20688,11 +28805,11 @@},{"method": "POST",- "path": "/api/account/login",- "handler": "login",+ "path": "/api/asset/setImageOCRText",+ "handler": "setImageOCRText","body": "json","request": {- "$ref": "#/$defs/AccountLoginRequestInput"+ "$ref": "#/$defs/SetAssetOCRTextRequestInput"},"response": {"anyOf": [@@ -20706,14 +28823,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/AccountLoginData"- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -20732,9 +28842,7 @@"code": {"type": "integer","enum": [- -1,- 1,- 10+ -1]},"data": {@@ -20753,16 +28861,6 @@},{"type": "null"- },- {- "anyOf": [- {- "$ref": "#/$defs/AccountLoginData"- },- {- "type": "null"- }- ]}]},@@ -20782,11 +28880,11 @@},{"method": "POST",- "path": "/api/account/startFreeTrial",- "handler": "startFreeTrial",- "body": "none",+ "path": "/api/asset/statAsset",+ "handler": "statAsset",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/AssetPathRequestInput"},"response": {"anyOf": [@@ -20800,7 +28898,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/AssetStatData"},"msg": {"type": "string"@@ -20819,7 +28917,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -20857,11 +28956,11 @@},{"method": "POST",- "path": "/api/account/useActivationcode",- "handler": "useActivationcode",- "body": "json",+ "path": "/api/asset/upload",+ "handler": "uploadAsset",+ "body": "multipart","request": {- "$ref": "#/$defs/ActivationCodeRequestInput"+ "$ref": "#/$defs/UploadAssetRequestInput"},"response": {"anyOf": [@@ -20875,7 +28974,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/AssetUploadData"},"msg": {"type": "string"@@ -20932,11 +29031,11 @@},{"method": "POST",- "path": "/api/archive/unzip",- "handler": "unzip",+ "path": "/api/asset/uploadCloud",+ "handler": "uploadCloud","body": "json","request": {- "$ref": "#/$defs/UnzipRequestInput"+ "$ref": "#/$defs/AssetCloudUploadRequestInput"},"response": {"anyOf": [@@ -21007,11 +29106,11 @@},{"method": "POST",- "path": "/api/archive/zip",- "handler": "zip",+ "path": "/api/asset/uploadCloudByAssetsPaths",+ "handler": "uploadCloudByAssetsPaths","body": "json","request": {- "$ref": "#/$defs/ZipRequestInput"+ "$ref": "#/$defs/AssetPathsCloudUploadRequestInput"},"response": {"anyOf": [@@ -21082,11 +29181,11 @@},{"method": "POST",- "path": "/api/asset/fullReindexAssetContent",- "handler": "fullReindexAssetContent",- "body": "none",+ "path": "/api/attr/batchGetBlockAttrs",+ "handler": "batchGetBlockAttrs",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/BlockIDsRequestInput"},"response": {"anyOf": [@@ -21100,7 +29199,20 @@]},"data": {- "type": "null"+ "type": "object",+ "additionalProperties": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]+ }},"msg": {"type": "string"@@ -21157,11 +29269,11 @@},{"method": "POST",- "path": "/api/asset/getDocAssets",- "handler": "getDocAssets",+ "path": "/api/attr/batchSetBlockAttrs",+ "handler": "batchSetBlockAttrs","body": "json","request": {- "$ref": "#/$defs/AssetDocumentAssetsRequestInput"+ "$ref": "#/$defs/BatchSetBlockAttrsRequestInput"},"response": {"anyOf": [@@ -21175,17 +29287,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "type": "string"- }- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -21242,11 +29344,11 @@},{"method": "POST",- "path": "/api/asset/getDocImageAssets",- "handler": "getDocImageAssets",+ "path": "/api/attr/getBlockAttrs",+ "handler": "getBlockAttrs","body": "json","request": {- "$ref": "#/$defs/AssetDocumentRequestInput"+ "$ref": "#/$defs/BlockIDRequestInput"},"response": {"anyOf": [@@ -21260,17 +29362,10 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "type": "string"- }- },- {- "type": "null"- }- ]+ "type": "object",+ "additionalProperties": {+ "type": "string"+ }},"msg": {"type": "string"@@ -21327,11 +29422,11 @@},{"method": "POST",- "path": "/api/asset/getFileAnnotation",- "handler": "getFileAnnotation",- "body": "json",+ "path": "/api/attr/getBookmarkLabels",+ "handler": "getBookmarkLabels",+ "body": "none","request": {- "$ref": "#/$defs/AssetPathRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -21345,7 +29440,17 @@]},"data": {- "$ref": "#/$defs/AssetAnnotationData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -21364,9 +29469,7 @@"code": {"type": "integer","enum": [- -1,- 1,- 403+ -1]},"data": {@@ -21404,11 +29507,11 @@},{"method": "POST",- "path": "/api/asset/getImageOCRText",- "handler": "getImageOCRText",- "body": "json",+ "path": "/api/attr/resetBlockAttrs",+ "handler": "resetBlockAttrs",+ "body": "none","request": {- "$ref": "#/$defs/AssetOCRTextRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -21422,7 +29525,7 @@]},"data": {- "$ref": "#/$defs/AssetTextData"+ "type": "null"},"msg": {"type": "string"@@ -21479,11 +29582,11 @@},{"method": "POST",- "path": "/api/asset/getMissingAssets",- "handler": "getMissingAssets",- "body": "none",+ "path": "/api/attr/setBlockAttrs",+ "handler": "setBlockAttrs",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/SetBlockAttrsRequestInput"},"response": {"anyOf": [@@ -21497,24 +29600,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/AssetUnusedItem"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -21571,8 +29657,8 @@},{"method": "POST",- "path": "/api/asset/getUnusedAssets",- "handler": "getUnusedAssets",+ "path": "/api/av/searchAttributeViewNonRelationKey",+ "handler": "searchAttributeViewNonRelationKey","body": "none","request": {"$ref": "#/$defs/EmptyRequestInput"@@ -21588,20 +29674,42 @@0]},+ "data": {+ "type": "null"+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": false+ },+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ -1+ ]+ },"data": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/AssetUnusedItem"- },- {- "type": "null"- }- ]- }+ "type": "object",+ "properties": {+ "closeTimeout": {+ "type": "number"+ }+ },+ "required": [+ "closeTimeout"+ ],+ "additionalProperties": false},{"type": "null"@@ -21617,6 +29725,42 @@"msg","data"],+ "additionalProperties": true+ }+ ]+ }+ },+ {+ "method": "POST",+ "path": "/api/bazaar/batchUpdatePackage",+ "handler": "batchUpdatePackage",+ "body": "json",+ "request": {+ "$ref": "#/$defs/BatchUpdatePackageRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "type": "null"+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],"additionalProperties": false},{@@ -21625,7 +29769,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -21663,11 +29808,11 @@},{"method": "POST",- "path": "/api/asset/insertCover",- "handler": "insertCover",+ "path": "/api/bazaar/getBazaarIcon",+ "handler": "getBazaarIcon","body": "json","request": {- "$ref": "#/$defs/InsertCoverRequestInput"+ "$ref": "#/$defs/GetBazaarIconRequestInput"},"response": {"anyOf": [@@ -21681,7 +29826,7 @@]},"data": {- "$ref": "#/$defs/AssetInsertCoverData"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -21700,7 +29845,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -21738,11 +29884,11 @@},{"method": "POST",- "path": "/api/asset/insertLocalAssets",- "handler": "insertLocalAssets",+ "path": "/api/bazaar/getBazaarPackage",+ "handler": "getBazaarPackage","body": "json","request": {- "$ref": "#/$defs/InsertLocalAssetsRequestInput"+ "$ref": "#/$defs/GetBazaarPackageRequestInput"},"response": {"anyOf": [@@ -21756,7 +29902,7 @@]},"data": {- "$ref": "#/$defs/AssetUploadData"+ "$ref": "#/$defs/BazaarPackageDetail"},"msg": {"type": "string"@@ -21775,7 +29921,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -21794,9 +29941,6 @@},{"type": "null"- },- {- "$ref": "#/$defs/AssetUploadData"}]},@@ -21816,11 +29960,11 @@},{"method": "POST",- "path": "/api/asset/ocr",- "handler": "ocr",+ "path": "/api/bazaar/getBazaarPackageREADME",+ "handler": "getBazaarPackageREADME","body": "json","request": {- "$ref": "#/$defs/AssetPathRequestInput"+ "$ref": "#/$defs/GetBazaarPackageREADMERequestInput"},"response": {"anyOf": [@@ -21834,7 +29978,7 @@]},"data": {- "$ref": "#/$defs/AssetOCRData"+ "$ref": "#/$defs/BazaarREADMEData"},"msg": {"type": "string"@@ -21853,7 +29997,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -21891,11 +30036,11 @@},{"method": "POST",- "path": "/api/asset/removeUnusedAsset",- "handler": "removeUnusedAsset",+ "path": "/api/bazaar/getBazaarPackageRating",+ "handler": "getBazaarPackageRating","body": "json","request": {- "$ref": "#/$defs/AssetPathRequestInput"+ "$ref": "#/$defs/GetBazaarPackageRatingRequestInput"},"response": {"anyOf": [@@ -21909,7 +30054,7 @@]},"data": {- "$ref": "#/$defs/AssetPathData"+ "$ref": "#/$defs/BazaarRatingResult"},"msg": {"type": "string"@@ -21928,7 +30073,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -21947,6 +30093,9 @@},{"type": "null"+ },+ {+ "$ref": "#/$defs/BazaarRatingResult"}]},@@ -21966,11 +30115,11 @@},{"method": "POST",- "path": "/api/asset/removeUnusedAssets",- "handler": "removeUnusedAssets",- "body": "none",+ "path": "/api/bazaar/getBazaarPackageRatings",+ "handler": "getBazaarPackageRatings",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/GetBazaarPackageRatingsRequestInput"},"response": {"anyOf": [@@ -21984,7 +30133,7 @@]},"data": {- "$ref": "#/$defs/AssetPathsData"+ "$ref": "#/$defs/BazaarRatingsData"},"msg": {"type": "string"@@ -22003,7 +30152,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -22041,11 +30191,11 @@},{"method": "POST",- "path": "/api/asset/renameAsset",- "handler": "renameAsset",+ "path": "/api/bazaar/getBazaarPackageUserRatings",+ "handler": "getBazaarPackageUserRatings","body": "json","request": {- "$ref": "#/$defs/RenameAssetRequestInput"+ "$ref": "#/$defs/GetBazaarPackageUserRatingsRequestInput"},"response": {"anyOf": [@@ -22059,7 +30209,7 @@]},"data": {- "$ref": "#/$defs/AssetRenameData"+ "$ref": "#/$defs/BazaarUserRatingsResult"},"msg": {"type": "string"@@ -22078,7 +30228,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -22097,6 +30248,9 @@},{"type": "null"+ },+ {+ "$ref": "#/$defs/BazaarUserRatingsResult"}]},@@ -22116,11 +30270,11 @@},{"method": "POST",- "path": "/api/asset/resolveAssetPath",- "handler": "resolveAssetPath",+ "path": "/api/bazaar/getBazaarPlugin",+ "handler": "getBazaarPlugin","body": "json","request": {- "$ref": "#/$defs/AssetPathRequestInput"+ "$ref": "#/$defs/GetBazaarPluginRequestInput"},"response": {"anyOf": [@@ -22134,7 +30288,7 @@]},"data": {- "type": "string"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -22153,7 +30307,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -22191,11 +30346,11 @@},{"method": "POST",- "path": "/api/asset/setFileAnnotation",- "handler": "setFileAnnotation",+ "path": "/api/bazaar/getBazaarTemplate",+ "handler": "getBazaarTemplate","body": "json","request": {- "$ref": "#/$defs/SetAssetAnnotationRequestInput"+ "$ref": "#/$defs/GetBazaarTemplateRequestInput"},"response": {"anyOf": [@@ -22209,7 +30364,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -22228,7 +30383,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -22266,11 +30422,11 @@},{"method": "POST",- "path": "/api/asset/setImageOCRText",- "handler": "setImageOCRText",+ "path": "/api/bazaar/getBazaarTheme",+ "handler": "getBazaarTheme","body": "json","request": {- "$ref": "#/$defs/SetAssetOCRTextRequestInput"+ "$ref": "#/$defs/GetBazaarThemeRequestInput"},"response": {"anyOf": [@@ -22284,7 +30440,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -22303,7 +30459,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -22341,11 +30498,11 @@},{"method": "POST",- "path": "/api/asset/statAsset",- "handler": "statAsset",+ "path": "/api/bazaar/getBazaarWidget",+ "handler": "getBazaarWidget","body": "json","request": {- "$ref": "#/$defs/AssetPathRequestInput"+ "$ref": "#/$defs/GetBazaarWidgetRequestInput"},"response": {"anyOf": [@@ -22359,7 +30516,7 @@]},"data": {- "$ref": "#/$defs/AssetStatData"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -22417,11 +30574,11 @@},{"method": "POST",- "path": "/api/asset/upload",- "handler": "uploadAsset",- "body": "multipart",+ "path": "/api/bazaar/getInstalledIcon",+ "handler": "getInstalledIcon",+ "body": "json","request": {- "$ref": "#/$defs/UploadAssetRequestInput"+ "$ref": "#/$defs/GetInstalledIconRequestInput"},"response": {"anyOf": [@@ -22435,7 +30592,7 @@]},"data": {- "$ref": "#/$defs/AssetUploadData"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -22454,7 +30611,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -22492,11 +30650,11 @@},{"method": "POST",- "path": "/api/asset/uploadCloud",- "handler": "uploadCloud",+ "path": "/api/bazaar/getInstalledPackageSize",+ "handler": "getInstalledPackageSize","body": "json","request": {- "$ref": "#/$defs/AssetCloudUploadRequestInput"+ "$ref": "#/$defs/GetInstalledPackageSizeRequestInput"},"response": {"anyOf": [@@ -22510,7 +30668,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarPackageSizeData"},"msg": {"type": "string"@@ -22529,7 +30687,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -22567,11 +30726,11 @@},{"method": "POST",- "path": "/api/asset/uploadCloudByAssetsPaths",- "handler": "uploadCloudByAssetsPaths",+ "path": "/api/bazaar/getInstalledPlugin",+ "handler": "getInstalledPlugin","body": "json","request": {- "$ref": "#/$defs/AssetPathsCloudUploadRequestInput"+ "$ref": "#/$defs/GetInstalledPluginRequestInput"},"response": {"anyOf": [@@ -22585,7 +30744,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -22604,7 +30763,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -22642,11 +30802,11 @@},{"method": "POST",- "path": "/api/attr/batchGetBlockAttrs",- "handler": "batchGetBlockAttrs",+ "path": "/api/bazaar/getInstalledTemplate",+ "handler": "getInstalledTemplate","body": "json","request": {- "$ref": "#/$defs/BlockIDsRequestInput"+ "$ref": "#/$defs/GetInstalledTemplateRequestInput"},"response": {"anyOf": [@@ -22660,20 +30820,83 @@]},"data": {- "type": "object",- "additionalProperties": {- "anyOf": [- {- "type": "object",- "additionalProperties": {- "type": "string"+ "$ref": "#/$defs/BazaarPackagesData"+ },+ "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"}},- {- "type": "null"- }- ]- }+ "required": [+ "closeTimeout"+ ],+ "additionalProperties": false+ },+ {+ "type": "null"+ }+ ]+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": true+ }+ ]+ }+ },+ {+ "method": "POST",+ "path": "/api/bazaar/getInstalledTheme",+ "handler": "getInstalledTheme",+ "body": "json",+ "request": {+ "$ref": "#/$defs/GetInstalledThemeRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -22692,7 +30915,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -22730,11 +30954,11 @@},{"method": "POST",- "path": "/api/attr/batchSetBlockAttrs",- "handler": "batchSetBlockAttrs",+ "path": "/api/bazaar/getInstalledWidget",+ "handler": "getInstalledWidget","body": "json","request": {- "$ref": "#/$defs/BatchSetBlockAttrsRequestInput"+ "$ref": "#/$defs/GetInstalledWidgetRequestInput"},"response": {"anyOf": [@@ -22748,7 +30972,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -22767,7 +30991,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -22805,11 +31030,11 @@},{"method": "POST",- "path": "/api/attr/getBlockAttrs",- "handler": "getBlockAttrs",+ "path": "/api/bazaar/getUpdatedPackage",+ "handler": "getUpdatedPackage","body": "json","request": {- "$ref": "#/$defs/BlockIDRequestInput"+ "$ref": "#/$defs/GetUpdatedPackageRequestInput"},"response": {"anyOf": [@@ -22823,10 +31048,7 @@]},"data": {- "type": "object",- "additionalProperties": {- "type": "string"- }+ "$ref": "#/$defs/BazaarUpdatedData"},"msg": {"type": "string"@@ -22845,7 +31067,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -22883,11 +31106,11 @@},{"method": "POST",- "path": "/api/attr/getBookmarkLabels",- "handler": "getBookmarkLabels",- "body": "none",+ "path": "/api/bazaar/installBazaarIcon",+ "handler": "installBazaarIcon",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/InstallBazaarIconRequestInput"},"response": {"anyOf": [@@ -22900,13 +31123,43 @@0]},+ "data": {+ "$ref": "#/$defs/BazaarAppearancePackagesData"+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": false+ },+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ -1,+ 1+ ]+ },"data": {"anyOf": [{- "type": "array",- "items": {- "type": "string"- }+ "type": "object",+ "properties": {+ "closeTimeout": {+ "type": "number"+ }+ },+ "required": [+ "closeTimeout"+ ],+ "additionalProperties": false},{"type": "null"@@ -22922,6 +31175,42 @@"msg","data"],+ "additionalProperties": true+ }+ ]+ }+ },+ {+ "method": "POST",+ "path": "/api/bazaar/installBazaarPlugin",+ "handler": "installBazaarPlugin",+ "body": "json",+ "request": {+ "$ref": "#/$defs/InstallBazaarPluginRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "$ref": "#/$defs/BazaarPackagesData"+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],"additionalProperties": false},{@@ -22930,7 +31219,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -22968,11 +31258,11 @@},{"method": "POST",- "path": "/api/attr/resetBlockAttrs",- "handler": "resetBlockAttrs",- "body": "none",+ "path": "/api/bazaar/installBazaarTemplate",+ "handler": "installBazaarTemplate",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/InstallBazaarTemplateRequestInput"},"response": {"anyOf": [@@ -22986,7 +31276,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -23005,7 +31295,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -23043,11 +31334,11 @@},{"method": "POST",- "path": "/api/attr/setBlockAttrs",- "handler": "setBlockAttrs",+ "path": "/api/bazaar/installBazaarTheme",+ "handler": "installBazaarTheme","body": "json","request": {- "$ref": "#/$defs/SetBlockAttrsRequestInput"+ "$ref": "#/$defs/InstallBazaarThemeRequestInput"},"response": {"anyOf": [@@ -23061,7 +31352,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarAppearancePackagesData"},"msg": {"type": "string"@@ -23080,7 +31371,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -23118,11 +31410,11 @@},{"method": "POST",- "path": "/api/av/searchAttributeViewNonRelationKey",- "handler": "searchAttributeViewNonRelationKey",- "body": "none",+ "path": "/api/bazaar/installBazaarWidget",+ "handler": "installBazaarWidget",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/InstallBazaarWidgetRequestInput"},"response": {"anyOf": [@@ -23136,7 +31428,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -23155,7 +31447,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -23193,11 +31486,11 @@},{"method": "POST",- "path": "/api/bazaar/batchUpdatePackage",- "handler": "batchUpdatePackage",- "body": "json",+ "path": "/api/bazaar/installLocalBazaarPackage",+ "handler": "installLocalBazaarPackage",+ "body": "multipart","request": {- "$ref": "#/$defs/BatchUpdatePackageRequestInput"+ "$ref": "#/$defs/InstallLocalBazaarPackageRequestInput"},"response": {"anyOf": [@@ -23211,7 +31504,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BazaarLocalInstallResult"},"msg": {"type": "string"@@ -23250,6 +31543,9 @@},{"type": "null"+ },+ {+ "$ref": "#/$defs/BazaarLocalInstallResult"}]},@@ -23269,11 +31565,11 @@},{"method": "POST",- "path": "/api/bazaar/getBazaarIcon",- "handler": "getBazaarIcon",+ "path": "/api/bazaar/setBazaarPackageRating",+ "handler": "setBazaarPackageRating","body": "json","request": {- "$ref": "#/$defs/GetBazaarIconRequestInput"+ "$ref": "#/$defs/SetBazaarPackageRatingRequestInput"},"response": {"anyOf": [@@ -23287,7 +31583,7 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "$ref": "#/$defs/BazaarRatingResult"},"msg": {"type": "string"@@ -23326,6 +31622,9 @@},{"type": "null"+ },+ {+ "$ref": "#/$defs/BazaarRatingResult"}]},@@ -23345,11 +31644,11 @@},{"method": "POST",- "path": "/api/bazaar/getBazaarPackage",- "handler": "getBazaarPackage",+ "path": "/api/bazaar/uninstallBazaarIcon",+ "handler": "uninstallBazaarIcon","body": "json","request": {- "$ref": "#/$defs/GetBazaarPackageRequestInput"+ "$ref": "#/$defs/UninstallBazaarIconRequestInput"},"response": {"anyOf": [@@ -23363,7 +31662,7 @@]},"data": {- "$ref": "#/$defs/BazaarPackageDetail"+ "$ref": "#/$defs/BazaarAppearancePackagesData"},"msg": {"type": "string"@@ -23421,11 +31720,11 @@},{"method": "POST",- "path": "/api/bazaar/getBazaarPackageREADME",- "handler": "getBazaarPackageREADME",+ "path": "/api/bazaar/uninstallBazaarPlugin",+ "handler": "uninstallBazaarPlugin","body": "json","request": {- "$ref": "#/$defs/GetBazaarPackageREADMERequestInput"+ "$ref": "#/$defs/UninstallBazaarPluginRequestInput"},"response": {"anyOf": [@@ -23439,7 +31738,7 @@]},"data": {- "$ref": "#/$defs/BazaarREADMEData"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -23497,11 +31796,11 @@},{"method": "POST",- "path": "/api/bazaar/getBazaarPackageRating",- "handler": "getBazaarPackageRating",+ "path": "/api/bazaar/uninstallBazaarTemplate",+ "handler": "uninstallBazaarTemplate","body": "json","request": {- "$ref": "#/$defs/GetBazaarPackageRatingRequestInput"+ "$ref": "#/$defs/UninstallBazaarTemplateRequestInput"},"response": {"anyOf": [@@ -23515,7 +31814,7 @@]},"data": {- "$ref": "#/$defs/BazaarRatingResult"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -23554,9 +31853,6 @@},{"type": "null"- },- {- "$ref": "#/$defs/BazaarRatingResult"}]},@@ -23576,11 +31872,11 @@},{"method": "POST",- "path": "/api/bazaar/getBazaarPackageRatings",- "handler": "getBazaarPackageRatings",+ "path": "/api/bazaar/uninstallBazaarTheme",+ "handler": "uninstallBazaarTheme","body": "json","request": {- "$ref": "#/$defs/GetBazaarPackageRatingsRequestInput"+ "$ref": "#/$defs/UninstallBazaarThemeRequestInput"},"response": {"anyOf": [@@ -23594,7 +31890,7 @@]},"data": {- "$ref": "#/$defs/BazaarRatingsData"+ "$ref": "#/$defs/BazaarAppearancePackagesData"},"msg": {"type": "string"@@ -23652,11 +31948,11 @@},{"method": "POST",- "path": "/api/bazaar/getBazaarPackageUserRatings",- "handler": "getBazaarPackageUserRatings",+ "path": "/api/bazaar/uninstallBazaarWidget",+ "handler": "uninstallBazaarWidget","body": "json","request": {- "$ref": "#/$defs/GetBazaarPackageUserRatingsRequestInput"+ "$ref": "#/$defs/UninstallBazaarWidgetRequestInput"},"response": {"anyOf": [@@ -23670,7 +31966,7 @@]},"data": {- "$ref": "#/$defs/BazaarUserRatingsResult"+ "$ref": "#/$defs/BazaarPackagesData"},"msg": {"type": "string"@@ -23709,9 +32005,6 @@},{"type": "null"- },- {- "$ref": "#/$defs/BazaarUserRatingsResult"}]},@@ -23731,11 +32024,11 @@},{"method": "POST",- "path": "/api/bazaar/getBazaarPlugin",- "handler": "getBazaarPlugin",+ "path": "/api/bazaar/updateBazaarPackage",+ "handler": "updateBazaarPackage","body": "json","request": {- "$ref": "#/$defs/GetBazaarPluginRequestInput"+ "$ref": "#/$defs/UpdateBazaarPackageRequestInput"},"response": {"anyOf": [@@ -23807,11 +32100,11 @@},{"method": "POST",- "path": "/api/bazaar/getBazaarTemplate",- "handler": "getBazaarTemplate",+ "path": "/api/block/appendBlock",+ "handler": "appendBlock","body": "json","request": {- "$ref": "#/$defs/GetBazaarTemplateRequestInput"+ "$ref": "#/$defs/AppendBlockRequestInput"},"response": {"anyOf": [@@ -23825,7 +32118,24 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -23844,8 +32154,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -23883,11 +32192,11 @@},{"method": "POST",- "path": "/api/bazaar/getBazaarTheme",- "handler": "getBazaarTheme",+ "path": "/api/block/appendDailyNoteBlock",+ "handler": "appendDailyNoteBlock","body": "json","request": {- "$ref": "#/$defs/GetBazaarThemeRequestInput"+ "$ref": "#/$defs/DailyNoteBlockRequestInput"},"response": {"anyOf": [@@ -23901,7 +32210,24 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -23920,8 +32246,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -23959,11 +32284,11 @@},{"method": "POST",- "path": "/api/bazaar/getBazaarWidget",- "handler": "getBazaarWidget",+ "path": "/api/block/appendHeadingChildren",+ "handler": "appendHeadingChildren","body": "json","request": {- "$ref": "#/$defs/GetBazaarWidgetRequestInput"+ "$ref": "#/$defs/AppendHeadingChildrenRequestInput"},"response": {"anyOf": [@@ -23977,7 +32302,7 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "type": "null"},"msg": {"type": "string"@@ -23996,8 +32321,99 @@"code": {"type": "integer","enum": [- -1,- 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/block/batchAppendBlock",+ "handler": "batchAppendBlock",+ "body": "json",+ "request": {+ "$ref": "#/$defs/BatchParentBlockRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": false+ },+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ -1]},"data": {@@ -24035,11 +32451,11 @@},{"method": "POST",- "path": "/api/bazaar/getInstalledIcon",- "handler": "getInstalledIcon",+ "path": "/api/block/batchInsertBlock",+ "handler": "batchInsertBlock","body": "json","request": {- "$ref": "#/$defs/GetInstalledIconRequestInput"+ "$ref": "#/$defs/BatchInsertBlockRequestInput"},"response": {"anyOf": [@@ -24053,7 +32469,24 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -24072,8 +32505,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -24111,11 +32543,11 @@},{"method": "POST",- "path": "/api/bazaar/getInstalledPackageSize",- "handler": "getInstalledPackageSize",+ "path": "/api/block/batchPrependBlock",+ "handler": "batchPrependBlock","body": "json","request": {- "$ref": "#/$defs/GetInstalledPackageSizeRequestInput"+ "$ref": "#/$defs/BatchParentBlockRequestInput"},"response": {"anyOf": [@@ -24129,7 +32561,24 @@]},"data": {- "$ref": "#/$defs/BazaarPackageSizeData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -24148,8 +32597,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -24187,11 +32635,11 @@},{"method": "POST",- "path": "/api/bazaar/getInstalledPlugin",- "handler": "getInstalledPlugin",+ "path": "/api/block/batchUpdateBlock",+ "handler": "batchUpdateBlock","body": "json","request": {- "$ref": "#/$defs/GetInstalledPluginRequestInput"+ "$ref": "#/$defs/BatchUpdateBlockRequestInput"},"response": {"anyOf": [@@ -24205,7 +32653,24 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -24224,8 +32689,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -24263,11 +32727,11 @@},{"method": "POST",- "path": "/api/bazaar/getInstalledTemplate",- "handler": "getInstalledTemplate",+ "path": "/api/block/batchUpdateTaskListItemMarker",+ "handler": "batchUpdateTaskListItemMarker","body": "json","request": {- "$ref": "#/$defs/GetInstalledTemplateRequestInput"+ "$ref": "#/$defs/BatchTaskListMarkerRequestInput"},"response": {"anyOf": [@@ -24281,7 +32745,24 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -24300,8 +32781,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -24339,11 +32819,11 @@},{"method": "POST",- "path": "/api/bazaar/getInstalledTheme",- "handler": "getInstalledTheme",+ "path": "/api/block/checkBlockExist",+ "handler": "checkBlockExist","body": "json","request": {- "$ref": "#/$defs/GetInstalledThemeRequestInput"+ "$ref": "#/$defs/BlockQueryRequestInput"},"response": {"anyOf": [@@ -24357,7 +32837,7 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "type": "boolean"},"msg": {"type": "string"@@ -24376,8 +32856,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -24415,11 +32894,11 @@},{"method": "POST",- "path": "/api/bazaar/getInstalledWidget",- "handler": "getInstalledWidget",+ "path": "/api/block/checkBlockFold",+ "handler": "checkBlockFold","body": "json","request": {- "$ref": "#/$defs/GetInstalledWidgetRequestInput"+ "$ref": "#/$defs/BlockQueryRequestInput"},"response": {"anyOf": [@@ -24433,7 +32912,7 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "$ref": "#/$defs/BlockFoldData"},"msg": {"type": "string"@@ -24452,8 +32931,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -24491,11 +32969,11 @@},{"method": "POST",- "path": "/api/bazaar/getUpdatedPackage",- "handler": "getUpdatedPackage",+ "path": "/api/block/checkBlockRef",+ "handler": "checkBlockRef","body": "json","request": {- "$ref": "#/$defs/GetUpdatedPackageRequestInput"+ "$ref": "#/$defs/CheckBlockRefRequestInput"},"response": {"anyOf": [@@ -24509,7 +32987,7 @@]},"data": {- "$ref": "#/$defs/BazaarUpdatedData"+ "type": "boolean"},"msg": {"type": "string"@@ -24528,8 +33006,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -24548,6 +33025,9 @@},{"type": "null"+ },+ {+ "type": "boolean"}]},@@ -24567,11 +33047,11 @@},{"method": "POST",- "path": "/api/bazaar/installBazaarIcon",- "handler": "installBazaarIcon",+ "path": "/api/block/checkBlocksExist",+ "handler": "checkBlocksExist","body": "json","request": {- "$ref": "#/$defs/InstallBazaarIconRequestInput"+ "$ref": "#/$defs/CheckBlocksExistRequestInput"},"response": {"anyOf": [@@ -24584,43 +33064,13 @@0]},- "data": {- "$ref": "#/$defs/BazaarAppearancePackagesData"- },- "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+ "additionalProperties": {+ "type": "boolean"+ }},{"type": "null"@@ -24636,42 +33086,6 @@"msg","data"],- "additionalProperties": true- }- ]- }- },- {- "method": "POST",- "path": "/api/bazaar/installBazaarPlugin",- "handler": "installBazaarPlugin",- "body": "json",- "request": {- "$ref": "#/$defs/InstallBazaarPluginRequestInput"- },- "response": {- "anyOf": [- {- "type": "object",- "properties": {- "code": {- "type": "integer",- "enum": [- 0- ]- },- "data": {- "$ref": "#/$defs/BazaarPackagesData"- },- "msg": {- "type": "string"- }- },- "required": [- "code",- "msg",- "data"- ],"additionalProperties": false},{@@ -24680,8 +33094,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -24719,11 +33132,11 @@},{"method": "POST",- "path": "/api/bazaar/installBazaarTemplate",- "handler": "installBazaarTemplate",+ "path": "/api/block/deleteBlock",+ "handler": "deleteBlock","body": "json","request": {- "$ref": "#/$defs/InstallBazaarTemplateRequestInput"+ "$ref": "#/$defs/DeleteBlockRequestInput"},"response": {"anyOf": [@@ -24737,7 +33150,24 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -24756,8 +33186,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -24795,11 +33224,11 @@},{"method": "POST",- "path": "/api/bazaar/installBazaarTheme",- "handler": "installBazaarTheme",+ "path": "/api/block/foldBlock",+ "handler": "foldBlock","body": "json","request": {- "$ref": "#/$defs/InstallBazaarThemeRequestInput"+ "$ref": "#/$defs/BlockIDRequestInput"},"response": {"anyOf": [@@ -24813,7 +33242,7 @@]},"data": {- "$ref": "#/$defs/BazaarAppearancePackagesData"+ "type": "null"},"msg": {"type": "string"@@ -24832,8 +33261,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -24871,11 +33299,11 @@},{"method": "POST",- "path": "/api/bazaar/installBazaarWidget",- "handler": "installBazaarWidget",+ "path": "/api/block/getBlockBreadcrumb",+ "handler": "getBlockBreadcrumb","body": "json","request": {- "$ref": "#/$defs/InstallBazaarWidgetRequestInput"+ "$ref": "#/$defs/BlockBreadcrumbRequestInput"},"response": {"anyOf": [@@ -24888,43 +33316,20 @@0]},- "data": {- "$ref": "#/$defs/BazaarPackagesData"- },- "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": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockPath"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"@@ -24940,42 +33345,6 @@"msg","data"],- "additionalProperties": true- }- ]- }- },- {- "method": "POST",- "path": "/api/bazaar/installLocalBazaarPackage",- "handler": "installLocalBazaarPackage",- "body": "multipart",- "request": {- "$ref": "#/$defs/InstallLocalBazaarPackageRequestInput"- },- "response": {- "anyOf": [- {- "type": "object",- "properties": {- "code": {- "type": "integer",- "enum": [- 0- ]- },- "data": {- "$ref": "#/$defs/BazaarLocalInstallResult"- },- "msg": {- "type": "string"- }- },- "required": [- "code",- "msg",- "data"- ],"additionalProperties": false},{@@ -24984,8 +33353,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -25004,9 +33372,6 @@},{"type": "null"- },- {- "$ref": "#/$defs/BazaarLocalInstallResult"}]},@@ -25026,11 +33391,11 @@},{"method": "POST",- "path": "/api/bazaar/setBazaarPackageRating",- "handler": "setBazaarPackageRating",+ "path": "/api/block/getBlockBreadcrumbChildren",+ "handler": "getBlockBreadcrumbChildren","body": "json","request": {- "$ref": "#/$defs/SetBazaarPackageRatingRequestInput"+ "$ref": "#/$defs/BlockBreadcrumbChildrenRequestInput"},"response": {"anyOf": [@@ -25044,7 +33409,14 @@]},"data": {- "$ref": "#/$defs/BazaarRatingResult"+ "anyOf": [+ {+ "$ref": "#/$defs/BlockBreadcrumbChildren"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -25063,8 +33435,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -25083,9 +33454,6 @@},{"type": "null"- },- {- "$ref": "#/$defs/BazaarRatingResult"}]},@@ -25105,11 +33473,11 @@},{"method": "POST",- "path": "/api/bazaar/uninstallBazaarIcon",- "handler": "uninstallBazaarIcon",+ "path": "/api/block/getBlockDOM",+ "handler": "getBlockDOM","body": "json","request": {- "$ref": "#/$defs/UninstallBazaarIconRequestInput"+ "$ref": "#/$defs/BlockQueryRequestInput"},"response": {"anyOf": [@@ -25123,7 +33491,7 @@]},"data": {- "$ref": "#/$defs/BazaarAppearancePackagesData"+ "$ref": "#/$defs/BlockDOMData"},"msg": {"type": "string"@@ -25142,8 +33510,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -25181,11 +33548,11 @@},{"method": "POST",- "path": "/api/bazaar/uninstallBazaarPlugin",- "handler": "uninstallBazaarPlugin",+ "path": "/api/block/getBlockDOMWithEmbed",+ "handler": "getBlockDOMWithEmbed","body": "json","request": {- "$ref": "#/$defs/UninstallBazaarPluginRequestInput"+ "$ref": "#/$defs/BlockQueryRequestInput"},"response": {"anyOf": [@@ -25199,7 +33566,7 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "$ref": "#/$defs/BlockDOMData"},"msg": {"type": "string"@@ -25218,8 +33585,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -25257,11 +33623,11 @@},{"method": "POST",- "path": "/api/bazaar/uninstallBazaarTemplate",- "handler": "uninstallBazaarTemplate",+ "path": "/api/block/getBlockDOMs",+ "handler": "getBlockDOMs","body": "json","request": {- "$ref": "#/$defs/UninstallBazaarTemplateRequestInput"+ "$ref": "#/$defs/BlocksQueryRequestInput"},"response": {"anyOf": [@@ -25274,43 +33640,13 @@0]},- "data": {- "$ref": "#/$defs/BazaarPackagesData"- },- "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+ "additionalProperties": {+ "type": "string"+ }},{"type": "null"@@ -25326,42 +33662,6 @@"msg","data"],- "additionalProperties": true- }- ]- }- },- {- "method": "POST",- "path": "/api/bazaar/uninstallBazaarTheme",- "handler": "uninstallBazaarTheme",- "body": "json",- "request": {- "$ref": "#/$defs/UninstallBazaarThemeRequestInput"- },- "response": {- "anyOf": [- {- "type": "object",- "properties": {- "code": {- "type": "integer",- "enum": [- 0- ]- },- "data": {- "$ref": "#/$defs/BazaarAppearancePackagesData"- },- "msg": {- "type": "string"- }- },- "required": [- "code",- "msg",- "data"- ],"additionalProperties": false},{@@ -25370,8 +33670,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -25409,11 +33708,11 @@},{"method": "POST",- "path": "/api/bazaar/uninstallBazaarWidget",- "handler": "uninstallBazaarWidget",+ "path": "/api/block/getBlockDOMsWithEmbed",+ "handler": "getBlockDOMsWithEmbed","body": "json","request": {- "$ref": "#/$defs/UninstallBazaarWidgetRequestInput"+ "$ref": "#/$defs/BlocksQueryRequestInput"},"response": {"anyOf": [@@ -25427,7 +33726,17 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -25446,8 +33755,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -25485,11 +33793,11 @@},{"method": "POST",- "path": "/api/bazaar/updateBazaarPackage",- "handler": "updateBazaarPackage",+ "path": "/api/block/getBlockDefIDsByRefText",+ "handler": "getBlockDefIDsByRefText","body": "json","request": {- "$ref": "#/$defs/UpdateBazaarPackageRequestInput"+ "$ref": "#/$defs/RefTextQueryRequestInput"},"response": {"anyOf": [@@ -25503,7 +33811,7 @@]},"data": {- "$ref": "#/$defs/BazaarPackagesData"+ "$ref": "#/$defs/RefDefsData"},"msg": {"type": "string"@@ -25522,8 +33830,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -25561,11 +33868,11 @@},{"method": "POST",- "path": "/api/block/appendBlock",- "handler": "appendBlock",+ "path": "/api/block/getBlockIndex",+ "handler": "getBlockIndex","body": "json","request": {- "$ref": "#/$defs/AppendBlockRequestInput"+ "$ref": "#/$defs/BlockQueryRequestInput"},"response": {"anyOf": [@@ -25579,24 +33886,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "type": "integer"},"msg": {"type": "string"@@ -25653,11 +33943,11 @@},{"method": "POST",- "path": "/api/block/appendDailyNoteBlock",- "handler": "appendDailyNoteBlock",+ "path": "/api/block/getBlockInfo",+ "handler": "getBlockInfo","body": "json","request": {- "$ref": "#/$defs/DailyNoteBlockRequestInput"+ "$ref": "#/$defs/BlockInfoRequestInput"},"response": {"anyOf": [@@ -25671,24 +33961,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/BlockInfoData"},"msg": {"type": "string"@@ -25707,7 +33980,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 3]},"data": {@@ -25726,6 +34000,9 @@},{"type": "null"+ },+ {+ "type": "string"}]},@@ -25745,11 +34022,11 @@},{"method": "POST",- "path": "/api/block/appendHeadingChildren",- "handler": "appendHeadingChildren",+ "path": "/api/block/getBlockKramdown",+ "handler": "getBlockKramdown","body": "json","request": {- "$ref": "#/$defs/AppendHeadingChildrenRequestInput"+ "$ref": "#/$defs/BlockKramdownRequestInput"},"response": {"anyOf": [@@ -25763,7 +34040,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/BlockKramdownData"},"msg": {"type": "string"@@ -25820,11 +34097,11 @@},{"method": "POST",- "path": "/api/block/batchAppendBlock",- "handler": "batchAppendBlock",+ "path": "/api/block/getBlockKramdowns",+ "handler": "getBlockKramdowns","body": "json","request": {- "$ref": "#/$defs/BatchParentBlockRequestInput"+ "$ref": "#/$defs/BlocksKramdownRequestInput"},"response": {"anyOf": [@@ -25840,16 +34117,9 @@"data": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]+ "type": "object",+ "additionalProperties": {+ "type": "string"}},{@@ -25912,11 +34182,11 @@},{"method": "POST",- "path": "/api/block/batchInsertBlock",- "handler": "batchInsertBlock",+ "path": "/api/block/getBlockRelevantIDs",+ "handler": "getBlockRelevantIDs","body": "json","request": {- "$ref": "#/$defs/BatchInsertBlockRequestInput"+ "$ref": "#/$defs/BlockQueryRequestInput"},"response": {"anyOf": [@@ -25929,20 +34199,42 @@0]},+ "data": {+ "$ref": "#/$defs/BlockRelevantData"+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": false+ },+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ -1+ ]+ },"data": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }+ "type": "object",+ "properties": {+ "closeTimeout": {+ "type": "number"+ }+ },+ "required": [+ "closeTimeout"+ ],+ "additionalProperties": false},{"type": "null"@@ -25958,6 +34250,42 @@"msg","data"],+ "additionalProperties": true+ }+ ]+ }+ },+ {+ "method": "POST",+ "path": "/api/block/getBlockSiblingID",+ "handler": "getBlockSiblingID",+ "body": "json",+ "request": {+ "$ref": "#/$defs/BlockQueryRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "$ref": "#/$defs/BlockSiblingData"+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],"additionalProperties": false},{@@ -26004,11 +34332,11 @@},{"method": "POST",- "path": "/api/block/batchPrependBlock",- "handler": "batchPrependBlock",+ "path": "/api/block/getBlockTreeInfos",+ "handler": "getBlockTreeInfos","body": "json","request": {- "$ref": "#/$defs/BatchParentBlockRequestInput"+ "$ref": "#/$defs/BlocksQueryRequestInput"},"response": {"anyOf": [@@ -26024,11 +34352,11 @@"data": {"anyOf": [{- "type": "array",- "items": {+ "type": "object",+ "additionalProperties": {"anyOf": [{- "$ref": "#/$defs/BlockTransaction"+ "$ref": "#/$defs/BlockTreeInfo"},{"type": "null"@@ -26096,11 +34424,11 @@},{"method": "POST",- "path": "/api/block/batchUpdateBlock",- "handler": "batchUpdateBlock",+ "path": "/api/block/getBlocksIndexes",+ "handler": "getBlocksIndexes","body": "json","request": {- "$ref": "#/$defs/BatchUpdateBlockRequestInput"+ "$ref": "#/$defs/BlocksQueryRequestInput"},"response": {"anyOf": [@@ -26116,16 +34444,9 @@"data": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]+ "type": "object",+ "additionalProperties": {+ "type": "integer"}},{@@ -26188,11 +34509,11 @@},{"method": "POST",- "path": "/api/block/batchUpdateTaskListItemMarker",- "handler": "batchUpdateTaskListItemMarker",+ "path": "/api/block/getBlocksWordCount",+ "handler": "getBlocksWordCount","body": "json","request": {- "$ref": "#/$defs/BatchTaskListMarkerRequestInput"+ "$ref": "#/$defs/BlocksWordCountRequestInput"},"response": {"anyOf": [@@ -26206,24 +34527,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/WordCountData"},"msg": {"type": "string"@@ -26280,8 +34584,8 @@},{"method": "POST",- "path": "/api/block/checkBlockExist",- "handler": "checkBlockExist",+ "path": "/api/block/getChildBlocks",+ "handler": "getChildBlocks","body": "json","request": {"$ref": "#/$defs/BlockQueryRequestInput"@@ -26298,7 +34602,17 @@]},"data": {- "type": "boolean"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/ChildBlock"+ },+ {+ "type": "null"+ }+ ]+ }},"msg": {"type": "string"@@ -26355,11 +34669,11 @@},{"method": "POST",- "path": "/api/block/checkBlockFold",- "handler": "checkBlockFold",+ "path": "/api/block/getContentWordCount",+ "handler": "getContentWordCount","body": "json","request": {- "$ref": "#/$defs/BlockQueryRequestInput"+ "$ref": "#/$defs/ContentWordCountRequestInput"},"response": {"anyOf": [@@ -26373,7 +34687,7 @@]},"data": {- "$ref": "#/$defs/BlockFoldData"+ "$ref": "#/$defs/WordCountData"},"msg": {"type": "string"@@ -26430,11 +34744,11 @@},{"method": "POST",- "path": "/api/block/checkBlockRef",- "handler": "checkBlockRef",+ "path": "/api/block/getDOMText",+ "handler": "getDOMText","body": "json","request": {- "$ref": "#/$defs/CheckBlockRefRequestInput"+ "$ref": "#/$defs/DOMTextRequestInput"},"response": {"anyOf": [@@ -26448,7 +34762,7 @@]},"data": {- "type": "boolean"+ "type": "string"},"msg": {"type": "string"@@ -26486,9 +34800,6 @@},{"type": "null"- },- {- "type": "boolean"}]},@@ -26508,11 +34819,11 @@},{"method": "POST",- "path": "/api/block/checkBlocksExist",- "handler": "checkBlocksExist",+ "path": "/api/block/getDocBlocksOrders",+ "handler": "getDocBlocksOrders","body": "json","request": {- "$ref": "#/$defs/CheckBlocksExistRequestInput"+ "$ref": "#/$defs/DocOrdersRequestInput"},"response": {"anyOf": [@@ -26528,9 +34839,9 @@"data": {"anyOf": [{- "type": "object",- "additionalProperties": {- "type": "boolean"+ "type": "array",+ "items": {+ "type": "string"}},{@@ -26593,11 +34904,11 @@},{"method": "POST",- "path": "/api/block/deleteBlock",- "handler": "deleteBlock",- "body": "json",+ "path": "/api/block/getDocHeadingLevelTransaction",+ "handler": "getDocHeadingLevelTransaction",+ "body": "structJSON","request": {- "$ref": "#/$defs/DeleteBlockRequestInput"+ "$ref": "#/$defs/DocHeadingLevelRequestInput"},"response": {"anyOf": [@@ -26613,17 +34924,7 @@"data": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }+ "$ref": "#/$defs/DocHeadingLevelData"},{"type": "null"@@ -26685,11 +34986,11 @@},{"method": "POST",- "path": "/api/block/foldBlock",- "handler": "foldBlock",+ "path": "/api/block/getDocInfo",+ "handler": "getDocInfo","body": "json","request": {- "$ref": "#/$defs/BlockIDRequestInput"+ "$ref": "#/$defs/BlockQueryRequestInput"},"response": {"anyOf": [@@ -26703,7 +35004,14 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/DocInfo"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -26760,11 +35068,11 @@},{"method": "POST",- "path": "/api/block/getBlockBreadcrumb",- "handler": "getBlockBreadcrumb",+ "path": "/api/block/getDocsInfo",+ "handler": "getDocsInfo","body": "json","request": {- "$ref": "#/$defs/BlockBreadcrumbRequestInput"+ "$ref": "#/$defs/DocsInfoRequestInput"},"response": {"anyOf": [@@ -26784,7 +35092,7 @@"items": {"anyOf": [{- "$ref": "#/$defs/BlockPath"+ "$ref": "#/$defs/DocInfo"},{"type": "null"@@ -26852,11 +35160,11 @@},{"method": "POST",- "path": "/api/block/getBlockBreadcrumbChildren",- "handler": "getBlockBreadcrumbChildren",+ "path": "/api/block/getHeadingChildrenDOM",+ "handler": "getHeadingChildrenDOM","body": "json","request": {- "$ref": "#/$defs/BlockBreadcrumbChildrenRequestInput"+ "$ref": "#/$defs/HeadingChildrenRequestInput"},"response": {"anyOf": [@@ -26870,14 +35178,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/BlockBreadcrumbChildren"- },- {- "type": "null"- }- ]+ "type": "string"},"msg": {"type": "string"@@ -26934,11 +35235,11 @@},{"method": "POST",- "path": "/api/block/getBlockDOM",- "handler": "getBlockDOM",+ "path": "/api/block/getHeadingChildrenIDs",+ "handler": "getHeadingChildrenIDs","body": "json","request": {- "$ref": "#/$defs/BlockQueryRequestInput"+ "$ref": "#/$defs/BlockIDRequestInput"},"response": {"anyOf": [@@ -26952,7 +35253,17 @@]},"data": {- "$ref": "#/$defs/BlockDOMData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -27009,11 +35320,11 @@},{"method": "POST",- "path": "/api/block/getBlockDOMWithEmbed",- "handler": "getBlockDOMWithEmbed",+ "path": "/api/block/getHeadingDeleteTransaction",+ "handler": "getHeadingDeleteTransaction","body": "json","request": {- "$ref": "#/$defs/BlockQueryRequestInput"+ "$ref": "#/$defs/BlockIDRequestInput"},"response": {"anyOf": [@@ -27027,7 +35338,14 @@]},"data": {- "$ref": "#/$defs/BlockDOMData"+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -27084,11 +35402,11 @@},{"method": "POST",- "path": "/api/block/getBlockDOMs",- "handler": "getBlockDOMs",+ "path": "/api/block/getHeadingFoldTransaction",+ "handler": "getHeadingFoldTransaction","body": "json","request": {- "$ref": "#/$defs/BlocksQueryRequestInput"+ "$ref": "#/$defs/HeadingFoldRequestInput"},"response": {"anyOf": [@@ -27104,10 +35422,7 @@"data": {"anyOf": [{- "type": "object",- "additionalProperties": {- "type": "string"- }+ "$ref": "#/$defs/BlockTransaction"},{"type": "null"@@ -27169,11 +35484,11 @@},{"method": "POST",- "path": "/api/block/getBlockDOMsWithEmbed",- "handler": "getBlockDOMsWithEmbed",+ "path": "/api/block/getHeadingInsertTransaction",+ "handler": "getHeadingInsertTransaction","body": "json","request": {- "$ref": "#/$defs/BlocksQueryRequestInput"+ "$ref": "#/$defs/BlockIDRequestInput"},"response": {"anyOf": [@@ -27189,10 +35504,7 @@"data": {"anyOf": [{- "type": "object",- "additionalProperties": {- "type": "string"- }+ "$ref": "#/$defs/BlockTransaction"},{"type": "null"@@ -27254,11 +35566,11 @@},{"method": "POST",- "path": "/api/block/getBlockDefIDsByRefText",- "handler": "getBlockDefIDsByRefText",+ "path": "/api/block/getHeadingLevelTransaction",+ "handler": "getHeadingLevelTransaction","body": "json","request": {- "$ref": "#/$defs/RefTextQueryRequestInput"+ "$ref": "#/$defs/HeadingLevelRequestInput"},"response": {"anyOf": [@@ -27272,7 +35584,14 @@]},"data": {- "$ref": "#/$defs/RefDefsData"+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -27329,8 +35648,8 @@},{"method": "POST",- "path": "/api/block/getBlockIndex",- "handler": "getBlockIndex",+ "path": "/api/block/getOrderedListContinueStart",+ "handler": "getOrderedListContinueStart","body": "json","request": {"$ref": "#/$defs/BlockQueryRequestInput"@@ -27347,7 +35666,7 @@]},"data": {- "type": "integer"+ "$ref": "#/$defs/OrderedListStartData"},"msg": {"type": "string"@@ -27404,11 +35723,11 @@},{"method": "POST",- "path": "/api/block/getBlockInfo",- "handler": "getBlockInfo",- "body": "json",+ "path": "/api/block/getRecentUpdatedBlocks",+ "handler": "getRecentUpdatedBlocks",+ "body": "none","request": {- "$ref": "#/$defs/BlockInfoRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -27422,7 +35741,24 @@]},"data": {- "$ref": "#/$defs/BlockInfoData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SearchBlock"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -27441,8 +35777,7 @@"code": {"type": "integer","enum": [- -1,- 3+ -1]},"data": {@@ -27461,9 +35796,6 @@},{"type": "null"- },- {- "type": "string"}]},@@ -27483,11 +35815,11 @@},{"method": "POST",- "path": "/api/block/getBlockKramdown",- "handler": "getBlockKramdown",+ "path": "/api/block/getRefIDs",+ "handler": "getRefIDs","body": "json","request": {- "$ref": "#/$defs/BlockKramdownRequestInput"+ "$ref": "#/$defs/RefIDsRequestInput"},"response": {"anyOf": [@@ -27501,7 +35833,7 @@]},"data": {- "$ref": "#/$defs/BlockKramdownData"+ "$ref": "#/$defs/RefIDsData"},"msg": {"type": "string"@@ -27558,11 +35890,11 @@},{"method": "POST",- "path": "/api/block/getBlockKramdowns",- "handler": "getBlockKramdowns",+ "path": "/api/block/getRefIDsByFileAnnotationID",+ "handler": "getRefIDsByFileAnnotationID","body": "json","request": {- "$ref": "#/$defs/BlocksKramdownRequestInput"+ "$ref": "#/$defs/FileAnnotationRefRequestInput"},"response": {"anyOf": [@@ -27576,17 +35908,7 @@]},"data": {- "anyOf": [- {- "type": "object",- "additionalProperties": {- "type": "string"- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/RefDefsData"},"msg": {"type": "string"@@ -27643,8 +35965,8 @@},{"method": "POST",- "path": "/api/block/getBlockRelevantIDs",- "handler": "getBlockRelevantIDs",+ "path": "/api/block/getRefText",+ "handler": "getRefText","body": "json","request": {"$ref": "#/$defs/BlockQueryRequestInput"@@ -27661,7 +35983,7 @@]},"data": {- "$ref": "#/$defs/BlockRelevantData"+ "type": "string"},"msg": {"type": "string"@@ -27718,11 +36040,11 @@},{"method": "POST",- "path": "/api/block/getBlockSiblingID",- "handler": "getBlockSiblingID",+ "path": "/api/block/getTailChildBlocks",+ "handler": "getTailChildBlocks","body": "json","request": {- "$ref": "#/$defs/BlockQueryRequestInput"+ "$ref": "#/$defs/TailChildBlocksRequestInput"},"response": {"anyOf": [@@ -27736,7 +36058,17 @@]},"data": {- "$ref": "#/$defs/BlockSiblingData"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/ChildBlock"+ },+ {+ "type": "null"+ }+ ]+ }},"msg": {"type": "string"@@ -27793,11 +36125,11 @@},{"method": "POST",- "path": "/api/block/getBlockTreeInfos",- "handler": "getBlockTreeInfos",+ "path": "/api/block/getTreeStat",+ "handler": "getTreeStat","body": "json","request": {- "$ref": "#/$defs/BlocksQueryRequestInput"+ "$ref": "#/$defs/TreeStatRequestInput"},"response": {"anyOf": [@@ -27811,24 +36143,7 @@]},"data": {- "anyOf": [- {- "type": "object",- "additionalProperties": {- "anyOf": [- {- "$ref": "#/$defs/BlockTreeInfo"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/TreeStatData"},"msg": {"type": "string"@@ -27885,11 +36200,11 @@},{"method": "POST",- "path": "/api/block/getBlocksIndexes",- "handler": "getBlocksIndexes",+ "path": "/api/block/getUnfoldedParentID",+ "handler": "getUnfoldedParentID","body": "json","request": {- "$ref": "#/$defs/BlocksQueryRequestInput"+ "$ref": "#/$defs/BlockQueryRequestInput"},"response": {"anyOf": [@@ -27903,17 +36218,7 @@]},"data": {- "anyOf": [- {- "type": "object",- "additionalProperties": {- "type": "integer"- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/UnfoldedParentData"},"msg": {"type": "string"@@ -27970,11 +36275,11 @@},{"method": "POST",- "path": "/api/block/getBlocksWordCount",- "handler": "getBlocksWordCount",+ "path": "/api/block/insertBlock",+ "handler": "insertBlock","body": "json","request": {- "$ref": "#/$defs/BlocksWordCountRequestInput"+ "$ref": "#/$defs/InsertBlockRequestInput"},"response": {"anyOf": [@@ -27988,7 +36293,24 @@]},"data": {- "$ref": "#/$defs/WordCountData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -28045,11 +36367,11 @@},{"method": "POST",- "path": "/api/block/getChildBlocks",- "handler": "getChildBlocks",+ "path": "/api/block/moveBlock",+ "handler": "moveBlock","body": "json","request": {- "$ref": "#/$defs/BlockQueryRequestInput"+ "$ref": "#/$defs/MoveBlockRequestInput"},"response": {"anyOf": [@@ -28063,17 +36385,7 @@]},"data": {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/ChildBlock"- },- {- "type": "null"- }- ]- }+ "type": "null"},"msg": {"type": "string"@@ -28130,11 +36442,11 @@},{"method": "POST",- "path": "/api/block/getContentWordCount",- "handler": "getContentWordCount",+ "path": "/api/block/moveOutlineHeading",+ "handler": "moveOutlineHeading","body": "json","request": {- "$ref": "#/$defs/ContentWordCountRequestInput"+ "$ref": "#/$defs/MoveBlockRequestInput"},"response": {"anyOf": [@@ -28148,7 +36460,24 @@]},"data": {- "$ref": "#/$defs/WordCountData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -28205,11 +36534,11 @@},{"method": "POST",- "path": "/api/block/getDOMText",- "handler": "getDOMText",+ "path": "/api/block/prependBlock",+ "handler": "prependBlock","body": "json","request": {- "$ref": "#/$defs/DOMTextRequestInput"+ "$ref": "#/$defs/PrependBlockRequestInput"},"response": {"anyOf": [@@ -28223,7 +36552,24 @@]},"data": {- "type": "string"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -28280,11 +36626,11 @@},{"method": "POST",- "path": "/api/block/getDocBlocksOrders",- "handler": "getDocBlocksOrders",+ "path": "/api/block/prependDailyNoteBlock",+ "handler": "prependDailyNoteBlock","body": "json","request": {- "$ref": "#/$defs/DocOrdersRequestInput"+ "$ref": "#/$defs/DailyNoteBlockRequestInput"},"response": {"anyOf": [@@ -28302,7 +36648,14 @@{"type": "array","items": {- "type": "string"+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]}},{@@ -28365,11 +36718,11 @@},{"method": "POST",- "path": "/api/block/getDocHeadingLevelTransaction",- "handler": "getDocHeadingLevelTransaction",- "body": "structJSON",+ "path": "/api/block/setBlockReminder",+ "handler": "setBlockReminder",+ "body": "json","request": {- "$ref": "#/$defs/DocHeadingLevelRequestInput"+ "$ref": "#/$defs/BlockReminderRequestInput"},"response": {"anyOf": [@@ -28383,14 +36736,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/DocHeadingLevelData"- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -28447,11 +36793,11 @@},{"method": "POST",- "path": "/api/block/getDocInfo",- "handler": "getDocInfo",+ "path": "/api/block/swapBlockRef",+ "handler": "swapBlockRef","body": "json","request": {- "$ref": "#/$defs/BlockQueryRequestInput"+ "$ref": "#/$defs/SwapBlockRefRequestInput"},"response": {"anyOf": [@@ -28465,14 +36811,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/DocInfo"- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -28529,11 +36868,11 @@},{"method": "POST",- "path": "/api/block/getDocsInfo",- "handler": "getDocsInfo",+ "path": "/api/block/transferBlockRef",+ "handler": "transferBlockRef","body": "json","request": {- "$ref": "#/$defs/DocsInfoRequestInput"+ "$ref": "#/$defs/TransferBlockRefRequestInput"},"response": {"anyOf": [@@ -28547,24 +36886,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/DocInfo"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -28621,11 +36943,11 @@},{"method": "POST",- "path": "/api/block/getHeadingChildrenDOM",- "handler": "getHeadingChildrenDOM",+ "path": "/api/block/unfoldBlock",+ "handler": "unfoldBlock","body": "json","request": {- "$ref": "#/$defs/HeadingChildrenRequestInput"+ "$ref": "#/$defs/BlockIDRequestInput"},"response": {"anyOf": [@@ -28639,7 +36961,7 @@]},"data": {- "type": "string"+ "type": "null"},"msg": {"type": "string"@@ -28696,11 +37018,11 @@},{"method": "POST",- "path": "/api/block/getHeadingChildrenIDs",- "handler": "getHeadingChildrenIDs",+ "path": "/api/block/updateBlock",+ "handler": "updateBlock","body": "json","request": {- "$ref": "#/$defs/BlockIDRequestInput"+ "$ref": "#/$defs/UpdateBlockRequestInput"},"response": {"anyOf": [@@ -28718,7 +37040,14 @@{"type": "array","items": {- "type": "string"+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]}},{@@ -28781,11 +37110,11 @@},{"method": "POST",- "path": "/api/block/getHeadingDeleteTransaction",- "handler": "getHeadingDeleteTransaction",+ "path": "/api/block/updateTaskListItemMarker",+ "handler": "updateTaskListItemMarker","body": "json","request": {- "$ref": "#/$defs/BlockIDRequestInput"+ "$ref": "#/$defs/TaskListMarkerRequestInput"},"response": {"anyOf": [@@ -28801,7 +37130,17 @@"data": {"anyOf": [{- "$ref": "#/$defs/BlockTransaction"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/BlockTransaction"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"@@ -28863,11 +37202,11 @@},{"method": "POST",- "path": "/api/block/getHeadingFoldTransaction",- "handler": "getHeadingFoldTransaction",- "body": "json",+ "path": "/api/bookmark/getBookmark",+ "handler": "getBookmark",+ "body": "none","request": {- "$ref": "#/$defs/HeadingFoldRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -28883,7 +37222,17 @@"data": {"anyOf": [{- "$ref": "#/$defs/BlockTransaction"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/Bookmark"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"@@ -28945,11 +37294,11 @@},{"method": "POST",- "path": "/api/block/getHeadingInsertTransaction",- "handler": "getHeadingInsertTransaction",+ "path": "/api/bookmark/removeBookmark",+ "handler": "removeBookmark","body": "json","request": {- "$ref": "#/$defs/BlockIDRequestInput"+ "$ref": "#/$defs/RemoveBookmarkRequestInput"},"response": {"anyOf": [@@ -28963,14 +37312,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -29027,11 +37369,11 @@},{"method": "POST",- "path": "/api/block/getHeadingLevelTransaction",- "handler": "getHeadingLevelTransaction",+ "path": "/api/bookmark/renameBookmark",+ "handler": "renameBookmark","body": "json","request": {- "$ref": "#/$defs/HeadingLevelRequestInput"+ "$ref": "#/$defs/RenameBookmarkRequestInput"},"response": {"anyOf": [@@ -29045,14 +37387,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -29109,11 +37444,11 @@},{"method": "POST",- "path": "/api/block/getOrderedListContinueStart",- "handler": "getOrderedListContinueStart",+ "path": "/api/broadcast/getChannelInfo",+ "handler": "getChannelInfo","body": "json","request": {- "$ref": "#/$defs/BlockQueryRequestInput"+ "$ref": "#/$defs/BroadcastChannelRequestInput"},"response": {"anyOf": [@@ -29127,7 +37462,7 @@]},"data": {- "$ref": "#/$defs/OrderedListStartData"+ "$ref": "#/$defs/BroadcastChannelData"},"msg": {"type": "string"@@ -29184,8 +37519,8 @@},{"method": "POST",- "path": "/api/block/getRecentUpdatedBlocks",- "handler": "getRecentUpdatedBlocks",+ "path": "/api/broadcast/getChannels",+ "handler": "getChannels","body": "none","request": {"$ref": "#/$defs/EmptyRequestInput"@@ -29202,24 +37537,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/SearchBlock"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/BroadcastChannelsData"},"msg": {"type": "string"@@ -29276,11 +37594,11 @@},{"method": "POST",- "path": "/api/block/getRefIDs",- "handler": "getRefIDs",+ "path": "/api/broadcast/postMessage",+ "handler": "postMessage","body": "json","request": {- "$ref": "#/$defs/RefIDsRequestInput"+ "$ref": "#/$defs/BroadcastMessageRequestInput"},"response": {"anyOf": [@@ -29294,7 +37612,7 @@]},"data": {- "$ref": "#/$defs/RefIDsData"+ "$ref": "#/$defs/BroadcastChannelData"},"msg": {"type": "string"@@ -29313,7 +37631,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -29351,11 +37670,25 @@},{"method": "POST",- "path": "/api/block/getRefIDsByFileAnnotationID",- "handler": "getRefIDsByFileAnnotationID",- "body": "json",+ "path": "/api/broadcast/publish",+ "handler": "broadcastPublish",+ "body": "multipart","request": {- "$ref": "#/$defs/FileAnnotationRefRequestInput"+ "type": "object",+ "additionalProperties": {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "string",+ "format": "binary"+ }+ ]+ }+ }},"response": {"anyOf": [@@ -29369,7 +37702,7 @@]},"data": {- "$ref": "#/$defs/RefDefsData"+ "$ref": "#/$defs/BroadcastPublishData"},"msg": {"type": "string"@@ -29388,7 +37721,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -29426,11 +37760,11 @@},{"method": "POST",- "path": "/api/block/getRefText",- "handler": "getRefText",+ "path": "/api/clipboard/cleanupRichText",+ "handler": "cleanupRichText","body": "json","request": {- "$ref": "#/$defs/BlockQueryRequestInput"+ "$ref": "#/$defs/CleanupRichTextRequestInput"},"response": {"anyOf": [@@ -29444,7 +37778,7 @@]},"data": {- "type": "string"+ "type": "null"},"msg": {"type": "string"@@ -29501,11 +37835,11 @@},{"method": "POST",- "path": "/api/block/getTailChildBlocks",- "handler": "getTailChildBlocks",+ "path": "/api/clipboard/prepareRichText",+ "handler": "prepareRichText","body": "json","request": {- "$ref": "#/$defs/TailChildBlocksRequestInput"+ "$ref": "#/$defs/PrepareRichTextRequestInput"},"response": {"anyOf": [@@ -29519,17 +37853,14 @@]},"data": {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/ChildBlock"- },- {- "type": "null"- }- ]- }+ "anyOf": [+ {+ "$ref": "#/$defs/RichClipboardPrepared"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -29586,11 +37917,11 @@},{"method": "POST",- "path": "/api/block/getTreeStat",- "handler": "getTreeStat",- "body": "json",+ "path": "/api/clipboard/readFilePaths",+ "handler": "readFilePaths",+ "body": "none","request": {- "$ref": "#/$defs/TreeStatRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -29604,7 +37935,10 @@]},"data": {- "$ref": "#/$defs/TreeStatData"+ "type": "array",+ "items": {+ "$ref": "#/$defs/ClipboardFile"+ }},"msg": {"type": "string"@@ -29661,11 +37995,11 @@},{"method": "POST",- "path": "/api/block/getUnfoldedParentID",- "handler": "getUnfoldedParentID",+ "path": "/api/clipboard/writeFilePath",+ "handler": "writeFilePath","body": "json","request": {- "$ref": "#/$defs/BlockQueryRequestInput"+ "$ref": "#/$defs/ClipboardPathRequestInput"},"response": {"anyOf": [@@ -29679,7 +38013,7 @@]},"data": {- "$ref": "#/$defs/UnfoldedParentData"+ "type": "null"},"msg": {"type": "string"@@ -29736,11 +38070,11 @@},{"method": "POST",- "path": "/api/block/insertBlock",- "handler": "insertBlock",- "body": "json",+ "path": "/api/cloud/getCloudSpace",+ "handler": "getCloudSpace",+ "body": "none","request": {- "$ref": "#/$defs/InsertBlockRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -29754,24 +38088,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/CloudSpaceData"},"msg": {"type": "string"@@ -29790,7 +38107,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -29828,11 +38146,11 @@},{"method": "POST",- "path": "/api/block/moveBlock",- "handler": "moveBlock",+ "path": "/api/cloud/setCloudReminder",+ "handler": "setCloudReminder","body": "json","request": {- "$ref": "#/$defs/MoveBlockRequestInput"+ "$ref": "#/$defs/CloudReminderRequestInput"},"response": {"anyOf": [@@ -29903,11 +38221,11 @@},{"method": "POST",- "path": "/api/block/moveOutlineHeading",- "handler": "moveOutlineHeading",+ "path": "/api/convert/pandoc",+ "handler": "pandoc","body": "json","request": {- "$ref": "#/$defs/MoveBlockRequestInput"+ "$ref": "#/$defs/PandocRequestInput"},"response": {"anyOf": [@@ -29921,24 +38239,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/PandocData"},"msg": {"type": "string"@@ -29995,11 +38296,11 @@},{"method": "POST",- "path": "/api/block/prependBlock",- "handler": "prependBlock",+ "path": "/api/export/copyExportFile",+ "handler": "copyExportFile","body": "json","request": {- "$ref": "#/$defs/PrependBlockRequestInput"+ "$ref": "#/$defs/CopyExportFileRequestInput"},"response": {"anyOf": [@@ -30013,24 +38314,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -30049,7 +38333,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ -2]},"data": {@@ -30087,11 +38372,11 @@},{"method": "POST",- "path": "/api/block/prependDailyNoteBlock",- "handler": "prependDailyNoteBlock",+ "path": "/api/export/export2Liandi",+ "handler": "export2Liandi","body": "json","request": {- "$ref": "#/$defs/DailyNoteBlockRequestInput"+ "$ref": "#/$defs/ExportIDRequestInput"},"response": {"anyOf": [@@ -30105,24 +38390,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -30179,11 +38447,11 @@},{"method": "POST",- "path": "/api/block/setBlockReminder",- "handler": "setBlockReminder",- "body": "json",+ "path": "/api/export/exportAsFile",+ "handler": "exportAsFile",+ "body": "multipart","request": {- "$ref": "#/$defs/BlockReminderRequestInput"+ "$ref": "#/$defs/ExportAsFileRequestInput"},"response": {"anyOf": [@@ -30197,7 +38465,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/ExportFileData"},"msg": {"type": "string"@@ -30254,11 +38522,11 @@},{"method": "POST",- "path": "/api/block/swapBlockRef",- "handler": "swapBlockRef",+ "path": "/api/export/exportAsciiDoc",+ "handler": "exportAsciiDoc","body": "json","request": {- "$ref": "#/$defs/SwapBlockRefRequestInput"+ "$ref": "#/$defs/ExportIDRequestInput"},"response": {"anyOf": [@@ -30272,7 +38540,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/ExportNamedZipData"},"msg": {"type": "string"@@ -30329,11 +38597,11 @@},{"method": "POST",- "path": "/api/block/transferBlockRef",- "handler": "transferBlockRef",+ "path": "/api/export/exportAttributeView",+ "handler": "exportAttributeView","body": "json","request": {- "$ref": "#/$defs/TransferBlockRefRequestInput"+ "$ref": "#/$defs/ExportAttributeViewRequestInput"},"response": {"anyOf": [@@ -30347,7 +38615,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/ExportZipData"},"msg": {"type": "string"@@ -30366,7 +38634,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -30404,11 +38673,11 @@},{"method": "POST",- "path": "/api/block/unfoldBlock",- "handler": "unfoldBlock",+ "path": "/api/export/exportBrowserHTML",+ "handler": "exportBrowserHTML","body": "json","request": {- "$ref": "#/$defs/BlockIDRequestInput"+ "$ref": "#/$defs/ExportBrowserHTMLRequestInput"},"response": {"anyOf": [@@ -30422,7 +38691,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/ExportZipData"},"msg": {"type": "string"@@ -30479,11 +38748,11 @@},{"method": "POST",- "path": "/api/block/updateBlock",- "handler": "updateBlock",+ "path": "/api/export/exportCodeBlock",+ "handler": "exportCodeBlock","body": "json","request": {- "$ref": "#/$defs/UpdateBlockRequestInput"+ "$ref": "#/$defs/ExportIDRequestInput"},"response": {"anyOf": [@@ -30497,24 +38766,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/ExportPathData"},"msg": {"type": "string"@@ -30533,7 +38785,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -30571,11 +38824,11 @@},{"method": "POST",- "path": "/api/block/updateTaskListItemMarker",- "handler": "updateTaskListItemMarker",- "body": "json",+ "path": "/api/export/exportData",+ "handler": "exportData",+ "body": "none","request": {- "$ref": "#/$defs/TaskListMarkerRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -30589,24 +38842,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/BlockTransaction"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/ExportZipData"},"msg": {"type": "string"@@ -30625,7 +38861,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -30663,11 +38900,11 @@},{"method": "POST",- "path": "/api/bookmark/getBookmark",- "handler": "getBookmark",- "body": "none",+ "path": "/api/export/exportDataInFolder",+ "handler": "exportDataInFolder",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/ExportFolderRequestInput"},"response": {"anyOf": [@@ -30681,24 +38918,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/Bookmark"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/ExportNameData"},"msg": {"type": "string"@@ -30755,11 +38975,11 @@},{"method": "POST",- "path": "/api/bookmark/removeBookmark",- "handler": "removeBookmark",+ "path": "/api/export/exportDocx",+ "handler": "exportDocx","body": "json","request": {- "$ref": "#/$defs/RemoveBookmarkRequestInput"+ "$ref": "#/$defs/ExportDocxRequestInput"},"response": {"anyOf": [@@ -30773,7 +38993,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/ExportPathData"},"msg": {"type": "string"@@ -30792,7 +39012,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -30830,11 +39051,11 @@},{"method": "POST",- "path": "/api/bookmark/renameBookmark",- "handler": "renameBookmark",+ "path": "/api/export/exportEPUB",+ "handler": "exportEPUB","body": "json","request": {- "$ref": "#/$defs/RenameBookmarkRequestInput"+ "$ref": "#/$defs/ExportIDRequestInput"},"response": {"anyOf": [@@ -30848,7 +39069,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/ExportNamedZipData"},"msg": {"type": "string"@@ -30905,11 +39126,11 @@},{"method": "POST",- "path": "/api/broadcast/getChannelInfo",- "handler": "getChannelInfo",+ "path": "/api/export/exportHTML",+ "handler": "exportHTML","body": "json","request": {- "$ref": "#/$defs/BroadcastChannelRequestInput"+ "$ref": "#/$defs/ExportHTMLRequestInput"},"response": {"anyOf": [@@ -30923,7 +39144,7 @@]},"data": {- "$ref": "#/$defs/BroadcastChannelData"+ "$ref": "#/$defs/ExportHTMLData"},"msg": {"type": "string"@@ -30980,11 +39201,11 @@},{"method": "POST",- "path": "/api/broadcast/getChannels",- "handler": "getChannels",- "body": "none",+ "path": "/api/export/exportMd",+ "handler": "exportMd",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/ExportMarkdownRequestInput"},"response": {"anyOf": [@@ -30998,7 +39219,7 @@]},"data": {- "$ref": "#/$defs/BroadcastChannelsData"+ "$ref": "#/$defs/ExportNamedZipData"},"msg": {"type": "string"@@ -31055,11 +39276,11 @@},{"method": "POST",- "path": "/api/broadcast/postMessage",- "handler": "postMessage",+ "path": "/api/export/exportMdContent",+ "handler": "exportMdContent","body": "json","request": {- "$ref": "#/$defs/BroadcastMessageRequestInput"+ "$ref": "#/$defs/ExportMarkdownContentRequestInput"},"response": {"anyOf": [@@ -31073,7 +39294,7 @@]},"data": {- "$ref": "#/$defs/BroadcastChannelData"+ "$ref": "#/$defs/ExportMarkdownContentData"},"msg": {"type": "string"@@ -31092,8 +39313,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -31131,25 +39351,11 @@},{"method": "POST",- "path": "/api/broadcast/publish",- "handler": "broadcastPublish",- "body": "multipart",+ "path": "/api/export/exportMdHTML",+ "handler": "exportMdHTML",+ "body": "json","request": {- "type": "object",- "additionalProperties": {- "type": "array",- "items": {- "anyOf": [- {- "type": "string"- },- {- "type": "string",- "format": "binary"- }- ]- }- }+ "$ref": "#/$defs/ExportMarkdownHTMLRequestInput"},"response": {"anyOf": [@@ -31163,7 +39369,7 @@]},"data": {- "$ref": "#/$defs/BroadcastPublishData"+ "$ref": "#/$defs/ExportHTMLData"},"msg": {"type": "string"@@ -31182,8 +39388,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -31221,11 +39426,11 @@},{"method": "POST",- "path": "/api/clipboard/cleanupRichText",- "handler": "cleanupRichText",+ "path": "/api/export/exportMds",+ "handler": "exportMds","body": "json","request": {- "$ref": "#/$defs/CleanupRichTextRequestInput"+ "$ref": "#/$defs/ExportDocumentsMarkdownRequestInput"},"response": {"anyOf": [@@ -31239,7 +39444,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/ExportNamedZipData"},"msg": {"type": "string"@@ -31296,11 +39501,11 @@},{"method": "POST",- "path": "/api/clipboard/prepareRichText",- "handler": "prepareRichText",+ "path": "/api/export/exportMediaWiki",+ "handler": "exportMediaWiki","body": "json","request": {- "$ref": "#/$defs/PrepareRichTextRequestInput"+ "$ref": "#/$defs/ExportIDRequestInput"},"response": {"anyOf": [@@ -31314,14 +39519,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/RichClipboardPrepared"- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/ExportNamedZipData"},"msg": {"type": "string"@@ -31378,11 +39576,11 @@},{"method": "POST",- "path": "/api/clipboard/readFilePaths",- "handler": "readFilePaths",- "body": "none",+ "path": "/api/export/exportNotebookMd",+ "handler": "exportNotebookMd",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/ExportNotebookMarkdownRequestInput"},"response": {"anyOf": [@@ -31396,10 +39594,7 @@]},"data": {- "type": "array",- "items": {- "$ref": "#/$defs/ClipboardFile"- }+ "$ref": "#/$defs/ExportNamedZipData"},"msg": {"type": "string"@@ -31456,11 +39651,11 @@},{"method": "POST",- "path": "/api/clipboard/writeFilePath",- "handler": "writeFilePath",+ "path": "/api/export/exportNotebookSY",+ "handler": "exportNotebookSY","body": "json","request": {- "$ref": "#/$defs/ClipboardPathRequestInput"+ "$ref": "#/$defs/ExportIDRequestInput"},"response": {"anyOf": [@@ -31474,7 +39669,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/ExportZipData"},"msg": {"type": "string"@@ -31531,11 +39726,11 @@},{"method": "POST",- "path": "/api/cloud/getCloudSpace",- "handler": "getCloudSpace",- "body": "none",+ "path": "/api/export/exportNotebooksMd",+ "handler": "exportNotebooksMd",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/ExportNotebooksMarkdownRequestInput"},"response": {"anyOf": [@@ -31549,7 +39744,7 @@]},"data": {- "$ref": "#/$defs/CloudSpaceData"+ "$ref": "#/$defs/ExportNamedZipData"},"msg": {"type": "string"@@ -31568,8 +39763,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -31607,11 +39801,11 @@},{"method": "POST",- "path": "/api/cloud/setCloudReminder",- "handler": "setCloudReminder",+ "path": "/api/export/exportNotebooksSY",+ "handler": "exportNotebooksSY","body": "json","request": {- "$ref": "#/$defs/CloudReminderRequestInput"+ "$ref": "#/$defs/ExportNotebooksRequestInput"},"response": {"anyOf": [@@ -31625,7 +39819,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/ExportZipData"},"msg": {"type": "string"@@ -31682,11 +39876,11 @@},{"method": "POST",- "path": "/api/convert/pandoc",- "handler": "pandoc",+ "path": "/api/export/exportODT",+ "handler": "exportODT","body": "json","request": {- "$ref": "#/$defs/PandocRequestInput"+ "$ref": "#/$defs/ExportIDRequestInput"},"response": {"anyOf": [@@ -31700,7 +39894,7 @@]},"data": {- "$ref": "#/$defs/PandocData"+ "$ref": "#/$defs/ExportNamedZipData"},"msg": {"type": "string"@@ -31757,11 +39951,11 @@},{"method": "POST",- "path": "/api/export/copyExportFile",- "handler": "copyExportFile",+ "path": "/api/export/exportOPML",+ "handler": "exportOPML","body": "json","request": {- "$ref": "#/$defs/CopyExportFileRequestInput"+ "$ref": "#/$defs/ExportIDRequestInput"},"response": {"anyOf": [@@ -31775,7 +39969,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/ExportNamedZipData"},"msg": {"type": "string"@@ -31794,8 +39988,7 @@"code": {"type": "integer","enum": [- -1,- -2+ -1]},"data": {@@ -31833,8 +40026,8 @@},{"method": "POST",- "path": "/api/export/export2Liandi",- "handler": "export2Liandi",+ "path": "/api/export/exportOrgMode",+ "handler": "exportOrgMode","body": "json","request": {"$ref": "#/$defs/ExportIDRequestInput"@@ -31851,7 +40044,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/ExportNamedZipData"},"msg": {"type": "string"@@ -31908,11 +40101,11 @@},{"method": "POST",- "path": "/api/export/exportAsFile",- "handler": "exportAsFile",- "body": "multipart",+ "path": "/api/export/exportPreviewHTML",+ "handler": "exportPreviewHTML",+ "body": "json","request": {- "$ref": "#/$defs/ExportAsFileRequestInput"+ "$ref": "#/$defs/ExportPreviewHTMLRequestInput"},"response": {"anyOf": [@@ -31926,7 +40119,7 @@]},"data": {- "$ref": "#/$defs/ExportFileData"+ "$ref": "#/$defs/ExportPreviewHTMLData"},"msg": {"type": "string"@@ -31983,8 +40176,8 @@},{"method": "POST",- "path": "/api/export/exportAsciiDoc",- "handler": "exportAsciiDoc",+ "path": "/api/export/exportRTF",+ "handler": "exportRTF","body": "json","request": {"$ref": "#/$defs/ExportIDRequestInput"@@ -32058,87 +40251,11 @@},{"method": "POST",- "path": "/api/export/exportAttributeView",- "handler": "exportAttributeView",- "body": "json",- "request": {- "$ref": "#/$defs/ExportAttributeViewRequestInput"- },- "response": {- "anyOf": [- {- "type": "object",- "properties": {- "code": {- "type": "integer",- "enum": [- 0- ]- },- "data": {- "$ref": "#/$defs/ExportZipData"- },- "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/export/exportBrowserHTML",- "handler": "exportBrowserHTML",+ "path": "/api/export/exportReStructuredText",+ "handler": "exportReStructuredText","body": "json","request": {- "$ref": "#/$defs/ExportBrowserHTMLRequestInput"+ "$ref": "#/$defs/ExportIDRequestInput"},"response": {"anyOf": [@@ -32152,7 +40269,7 @@]},"data": {- "$ref": "#/$defs/ExportZipData"+ "$ref": "#/$defs/ExportNamedZipData"},"msg": {"type": "string"@@ -32209,11 +40326,11 @@},{"method": "POST",- "path": "/api/export/exportCodeBlock",- "handler": "exportCodeBlock",+ "path": "/api/export/exportResources",+ "handler": "exportResources","body": "json","request": {- "$ref": "#/$defs/ExportIDRequestInput"+ "$ref": "#/$defs/ExportResourcesRequestInput"},"response": {"anyOf": [@@ -32266,6 +40383,9 @@},{"type": "null"+ },+ {+ "type": "string"}]},@@ -32285,11 +40405,11 @@},{"method": "POST",- "path": "/api/export/exportData",- "handler": "exportData",- "body": "none",+ "path": "/api/export/exportSY",+ "handler": "exportSY",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/ExportIDRequestInput"},"response": {"anyOf": [@@ -32322,8 +40442,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -32361,11 +40480,11 @@},{"method": "POST",- "path": "/api/export/exportDataInFolder",- "handler": "exportDataInFolder",+ "path": "/api/export/exportSYs",+ "handler": "exportSYs","body": "json","request": {- "$ref": "#/$defs/ExportFolderRequestInput"+ "$ref": "#/$defs/ExportIDsRequestInput"},"response": {"anyOf": [@@ -32379,7 +40498,7 @@]},"data": {- "$ref": "#/$defs/ExportNameData"+ "$ref": "#/$defs/ExportZipData"},"msg": {"type": "string"@@ -32436,11 +40555,11 @@},{"method": "POST",- "path": "/api/export/exportDocx",- "handler": "exportDocx",+ "path": "/api/export/exportTempContent",+ "handler": "exportTempContent","body": "json","request": {- "$ref": "#/$defs/ExportDocxRequestInput"+ "$ref": "#/$defs/ExportTempContentRequestInput"},"response": {"anyOf": [@@ -32454,7 +40573,7 @@]},"data": {- "$ref": "#/$defs/ExportPathData"+ "$ref": "#/$defs/ExportURLData"},"msg": {"type": "string"@@ -32512,8 +40631,8 @@},{"method": "POST",- "path": "/api/export/exportEPUB",- "handler": "exportEPUB",+ "path": "/api/export/exportTextile",+ "handler": "exportTextile","body": "json","request": {"$ref": "#/$defs/ExportIDRequestInput"@@ -32587,86 +40706,11 @@},{"method": "POST",- "path": "/api/export/exportHTML",- "handler": "exportHTML",- "body": "json",- "request": {- "$ref": "#/$defs/ExportHTMLRequestInput"- },- "response": {- "anyOf": [- {- "type": "object",- "properties": {- "code": {- "type": "integer",- "enum": [- 0- ]- },- "data": {- "$ref": "#/$defs/ExportHTMLData"- },- "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/export/exportMd",- "handler": "exportMd",+ "path": "/api/export/preview",+ "handler": "exportPreview","body": "json","request": {- "$ref": "#/$defs/ExportMarkdownRequestInput"+ "$ref": "#/$defs/ExportIDRequestInput"},"response": {"anyOf": [@@ -32680,7 +40724,7 @@]},"data": {- "$ref": "#/$defs/ExportNamedZipData"+ "$ref": "#/$defs/ExportPreviewData"},"msg": {"type": "string"@@ -32737,11 +40781,11 @@},{"method": "POST",- "path": "/api/export/exportMdContent",- "handler": "exportMdContent",+ "path": "/api/export/processPDF",+ "handler": "processPDF","body": "json","request": {- "$ref": "#/$defs/ExportMarkdownContentRequestInput"+ "$ref": "#/$defs/ProcessPDFRequestInput"},"response": {"anyOf": [@@ -32755,7 +40799,7 @@]},"data": {- "$ref": "#/$defs/ExportMarkdownContentData"+ "type": "null"},"msg": {"type": "string"@@ -32812,11 +40856,11 @@},{"method": "POST",- "path": "/api/export/exportMdHTML",- "handler": "exportMdHTML",+ "path": "/api/file/copyFile",+ "handler": "copyFile","body": "json","request": {- "$ref": "#/$defs/ExportMarkdownHTMLRequestInput"+ "$ref": "#/$defs/CopyFileRequestInput"},"response": {"anyOf": [@@ -32830,7 +40874,7 @@]},"data": {- "$ref": "#/$defs/ExportHTMLData"+ "type": "null"},"msg": {"type": "string"@@ -32849,7 +40893,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ -2]},"data": {@@ -32887,11 +40932,75 @@},{"method": "POST",- "path": "/api/export/exportMds",- "handler": "exportMds",+ "path": "/api/file/getFile",+ "handler": "getFile","body": "json","request": {- "$ref": "#/$defs/ExportDocumentsMarkdownRequestInput"+ "$ref": "#/$defs/FilePathRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "string",+ "format": "binary"+ },+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ -1,+ -3,+ 403,+ 404,+ 409,+ 500,+ 503+ ]+ },+ "data": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "closeTimeout": {+ "type": "number"+ }+ },+ "required": [+ "closeTimeout"+ ],+ "additionalProperties": false+ },+ {+ "type": "null"+ }+ ]+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": true+ }+ ]+ },+ "output": "binary",+ "errorStatus": 202+ },+ {+ "method": "POST",+ "path": "/api/file/getUniqueFilename",+ "handler": "getUniqueFilename",+ "body": "json",+ "request": {+ "$ref": "#/$defs/FilePathRequestInput"},"response": {"anyOf": [@@ -32905,7 +41014,7 @@]},"data": {- "$ref": "#/$defs/ExportNamedZipData"+ "$ref": "#/$defs/FilePathData"},"msg": {"type": "string"@@ -32924,7 +41033,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ -3]},"data": {@@ -32962,11 +41072,11 @@},{"method": "POST",- "path": "/api/export/exportMediaWiki",- "handler": "exportMediaWiki",+ "path": "/api/file/globalCopyFiles",+ "handler": "globalCopyFiles","body": "json","request": {- "$ref": "#/$defs/ExportIDRequestInput"+ "$ref": "#/$defs/CopyFilesRequestInput"},"response": {"anyOf": [@@ -32980,7 +41090,7 @@]},"data": {- "$ref": "#/$defs/ExportNamedZipData"+ "type": "null"},"msg": {"type": "string"@@ -32999,7 +41109,10 @@"code": {"type": "integer","enum": [- -1+ -1,+ -2,+ -3,+ 403]},"data": {@@ -33037,11 +41150,11 @@},{"method": "POST",- "path": "/api/export/exportNotebookMd",- "handler": "exportNotebookMd",- "body": "json",+ "path": "/api/file/putFile",+ "handler": "putFile",+ "body": "form","request": {- "$ref": "#/$defs/ExportNotebookMarkdownRequestInput"+ "$ref": "#/$defs/PutFileRequestInput"},"response": {"anyOf": [@@ -33055,7 +41168,7 @@]},"data": {- "$ref": "#/$defs/ExportNamedZipData"+ "type": "null"},"msg": {"type": "string"@@ -33074,7 +41187,11 @@"code": {"type": "integer","enum": [- -1+ -1,+ -3,+ 400,+ 403,+ 500]},"data": {@@ -33112,11 +41229,11 @@},{"method": "POST",- "path": "/api/export/exportNotebookSY",- "handler": "exportNotebookSY",+ "path": "/api/file/readDir",+ "handler": "readDir","body": "json","request": {- "$ref": "#/$defs/ExportIDRequestInput"+ "$ref": "#/$defs/ReadDirectoryRequestInput"},"response": {"anyOf": [@@ -33130,7 +41247,10 @@]},"data": {- "$ref": "#/$defs/ExportZipData"+ "type": "array",+ "items": {+ "$ref": "#/$defs/DirectoryEntry"+ }},"msg": {"type": "string"@@ -33149,7 +41269,12 @@"code": {"type": "integer","enum": [- -1+ -1,+ -3,+ 403,+ 404,+ 409,+ 500]},"data": {@@ -33187,11 +41312,11 @@},{"method": "POST",- "path": "/api/export/exportNotebooksMd",- "handler": "exportNotebooksMd",+ "path": "/api/file/removeFile",+ "handler": "removeFile","body": "json","request": {- "$ref": "#/$defs/ExportNotebooksMarkdownRequestInput"+ "$ref": "#/$defs/RemoveFileRequestInput"},"response": {"anyOf": [@@ -33205,7 +41330,7 @@]},"data": {- "$ref": "#/$defs/ExportNamedZipData"+ "type": "null"},"msg": {"type": "string"@@ -33224,7 +41349,11 @@"code": {"type": "integer","enum": [- -1+ -1,+ -3,+ 403,+ 404,+ 500]},"data": {@@ -33262,11 +41391,11 @@},{"method": "POST",- "path": "/api/export/exportNotebooksSY",- "handler": "exportNotebooksSY",+ "path": "/api/file/renameFile",+ "handler": "renameFile","body": "json","request": {- "$ref": "#/$defs/ExportNotebooksRequestInput"+ "$ref": "#/$defs/RenameFileRequestInput"},"response": {"anyOf": [@@ -33280,7 +41409,7 @@]},"data": {- "$ref": "#/$defs/ExportZipData"+ "type": "null"},"msg": {"type": "string"@@ -33299,7 +41428,12 @@"code": {"type": "integer","enum": [- -1+ -1,+ -3,+ 403,+ 404,+ 409,+ 500]},"data": {@@ -33337,11 +41471,11 @@},{"method": "POST",- "path": "/api/export/exportODT",- "handler": "exportODT",+ "path": "/api/file/workspaceCopyFiles",+ "handler": "workspaceCopyFiles","body": "json","request": {- "$ref": "#/$defs/ExportIDRequestInput"+ "$ref": "#/$defs/CopyFilesRequestInput"},"response": {"anyOf": [@@ -33355,7 +41489,7 @@]},"data": {- "$ref": "#/$defs/ExportNamedZipData"+ "type": "null"},"msg": {"type": "string"@@ -33374,7 +41508,10 @@"code": {"type": "integer","enum": [- -1+ -1,+ -2,+ -3,+ 403]},"data": {@@ -33412,11 +41549,11 @@},{"method": "POST",- "path": "/api/export/exportOPML",- "handler": "exportOPML",+ "path": "/api/filetree/authFilePublishAccess",+ "handler": "authFilePublishAccess","body": "json","request": {- "$ref": "#/$defs/ExportIDRequestInput"+ "$ref": "#/$defs/FileTreeAuthPublishRequestInput"},"response": {"anyOf": [@@ -33430,7 +41567,7 @@]},"data": {- "$ref": "#/$defs/ExportNamedZipData"+ "type": "null"},"msg": {"type": "string"@@ -33483,15 +41620,18 @@"additionalProperties": true}]- }+ },+ "additionalErrorStatuses": [+ 429+ ]},{"method": "POST",- "path": "/api/export/exportOrgMode",- "handler": "exportOrgMode",+ "path": "/api/filetree/changeSort",+ "handler": "changeSort","body": "json","request": {- "$ref": "#/$defs/ExportIDRequestInput"+ "$ref": "#/$defs/FileTreeChangeSortRequestInput"},"response": {"anyOf": [@@ -33505,7 +41645,7 @@]},"data": {- "$ref": "#/$defs/ExportNamedZipData"+ "type": "null"},"msg": {"type": "string"@@ -33562,11 +41702,11 @@},{"method": "POST",- "path": "/api/export/exportPreviewHTML",- "handler": "exportPreviewHTML",+ "path": "/api/filetree/createDailyNote",+ "handler": "createDailyNote","body": "json","request": {- "$ref": "#/$defs/ExportPreviewHTMLRequestInput"+ "$ref": "#/$defs/FileTreeDailyNoteRequestInput"},"response": {"anyOf": [@@ -33580,7 +41720,7 @@]},"data": {- "$ref": "#/$defs/ExportPreviewHTMLData"+ "$ref": "#/$defs/FileTreeCreateData"},"msg": {"type": "string"@@ -33599,7 +41739,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -33637,11 +41778,11 @@},{"method": "POST",- "path": "/api/export/exportRTF",- "handler": "exportRTF",+ "path": "/api/filetree/createDoc",+ "handler": "createDoc","body": "json","request": {- "$ref": "#/$defs/ExportIDRequestInput"+ "$ref": "#/$defs/FileTreeCreateRequestInput"},"response": {"anyOf": [@@ -33655,7 +41796,7 @@]},"data": {- "$ref": "#/$defs/ExportNamedZipData"+ "$ref": "#/$defs/FileTreeCreateData"},"msg": {"type": "string"@@ -33712,11 +41853,11 @@},{"method": "POST",- "path": "/api/export/exportReStructuredText",- "handler": "exportReStructuredText",+ "path": "/api/filetree/createDocWithMd",+ "handler": "createDocWithMd","body": "json","request": {- "$ref": "#/$defs/ExportIDRequestInput"+ "$ref": "#/$defs/FileTreeCreateMarkdownRequestInput"},"response": {"anyOf": [@@ -33730,7 +41871,7 @@]},"data": {- "$ref": "#/$defs/ExportNamedZipData"+ "type": "string"},"msg": {"type": "string"@@ -33787,11 +41928,11 @@},{"method": "POST",- "path": "/api/export/exportResources",- "handler": "exportResources",+ "path": "/api/filetree/doc2Heading",+ "handler": "doc2Heading","body": "json","request": {- "$ref": "#/$defs/ExportResourcesRequestInput"+ "$ref": "#/$defs/FileTreeDocHeadingRequestInput"},"response": {"anyOf": [@@ -33805,7 +41946,7 @@]},"data": {- "$ref": "#/$defs/ExportPathData"+ "$ref": "#/$defs/FileTreeDocHeadingData"},"msg": {"type": "string"@@ -33824,8 +41965,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -33844,9 +41984,6 @@},{"type": "null"- },- {- "type": "string"}]},@@ -33866,11 +42003,11 @@},{"method": "POST",- "path": "/api/export/exportSY",- "handler": "exportSY",+ "path": "/api/filetree/duplicateDoc",+ "handler": "duplicateDoc","body": "json","request": {- "$ref": "#/$defs/ExportIDRequestInput"+ "$ref": "#/$defs/FileTreeIDRequestInput"},"response": {"anyOf": [@@ -33884,7 +42021,7 @@]},"data": {- "$ref": "#/$defs/ExportZipData"+ "$ref": "#/$defs/FileTreeDuplicateData"},"msg": {"type": "string"@@ -33941,11 +42078,11 @@},{"method": "POST",- "path": "/api/export/exportSYs",- "handler": "exportSYs",+ "path": "/api/filetree/getDoc",+ "handler": "getDoc","body": "json","request": {- "$ref": "#/$defs/ExportIDsRequestInput"+ "$ref": "#/$defs/FileTreeGetDocRequestInput"},"response": {"anyOf": [@@ -33959,7 +42096,7 @@]},"data": {- "$ref": "#/$defs/ExportZipData"+ "$ref": "#/$defs/FileTreeGetDocData"},"msg": {"type": "string"@@ -33978,7 +42115,9 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1,+ 3]},"data": {@@ -34016,11 +42155,11 @@},{"method": "POST",- "path": "/api/export/exportTempContent",- "handler": "exportTempContent",+ "path": "/api/filetree/getDocCreateSavePath",+ "handler": "getDocCreateSavePath","body": "json","request": {- "$ref": "#/$defs/ExportTempContentRequestInput"+ "$ref": "#/$defs/FileTreeNotebookRequestInput"},"response": {"anyOf": [@@ -34034,7 +42173,7 @@]},"data": {- "$ref": "#/$defs/ExportURLData"+ "$ref": "#/$defs/FileTreeCreateSavePathData"},"msg": {"type": "string"@@ -34053,8 +42192,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -34092,11 +42230,11 @@},{"method": "POST",- "path": "/api/export/exportTextile",- "handler": "exportTextile",+ "path": "/api/filetree/getFullHPathByID",+ "handler": "getFullHPathByID","body": "json","request": {- "$ref": "#/$defs/ExportIDRequestInput"+ "$ref": "#/$defs/FileTreeOptionalIDRequestInput"},"response": {"anyOf": [@@ -34110,7 +42248,14 @@]},"data": {- "$ref": "#/$defs/ExportNamedZipData"+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -34167,11 +42312,11 @@},{"method": "POST",- "path": "/api/export/preview",- "handler": "exportPreview",+ "path": "/api/filetree/getHPathByID",+ "handler": "getHPathByID","body": "json","request": {- "$ref": "#/$defs/ExportIDRequestInput"+ "$ref": "#/$defs/FileTreeIDRequestInput"},"response": {"anyOf": [@@ -34185,7 +42330,7 @@]},"data": {- "$ref": "#/$defs/ExportPreviewData"+ "type": "string"},"msg": {"type": "string"@@ -34242,11 +42387,11 @@},{"method": "POST",- "path": "/api/export/processPDF",- "handler": "processPDF",+ "path": "/api/filetree/getHPathByPath",+ "handler": "getHPathByPath","body": "json","request": {- "$ref": "#/$defs/ProcessPDFRequestInput"+ "$ref": "#/$defs/FileTreePathRequestInput"},"response": {"anyOf": [@@ -34260,7 +42405,7 @@]},"data": {- "type": "null"+ "type": "string"},"msg": {"type": "string"@@ -34317,11 +42462,11 @@},{"method": "POST",- "path": "/api/file/copyFile",- "handler": "copyFile",+ "path": "/api/filetree/getHPathsByPaths",+ "handler": "getHPathsByPaths","body": "json","request": {- "$ref": "#/$defs/CopyFileRequestInput"+ "$ref": "#/$defs/FileTreePathsRequestInput"},"response": {"anyOf": [@@ -34335,7 +42480,17 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -34354,8 +42509,7 @@"code": {"type": "integer","enum": [- -1,- -2+ -1]},"data": {@@ -34393,17 +42547,46 @@},{"method": "POST",- "path": "/api/file/getFile",- "handler": "getFile",+ "path": "/api/filetree/getIDsByHPath",+ "handler": "getIDsByHPath","body": "json","request": {- "$ref": "#/$defs/FilePathRequestInput"+ "$ref": "#/$defs/FileTreeOptionalPathRequestInput"},"response": {"anyOf": [{- "type": "string",- "format": "binary"+ "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",@@ -34411,13 +42594,7 @@"code": {"type": "integer","enum": [- -1,- -3,- 403,- 404,- 409,- 500,- 503+ -1]},"data": {@@ -34451,17 +42628,15 @@"additionalProperties": true}]- },- "output": "binary",- "errorStatus": 202+ }},{"method": "POST",- "path": "/api/file/getUniqueFilename",- "handler": "getUniqueFilename",+ "path": "/api/filetree/getPathByID",+ "handler": "getPathByID","body": "json","request": {- "$ref": "#/$defs/FilePathRequestInput"+ "$ref": "#/$defs/FileTreeTrimIDRequestInput"},"response": {"anyOf": [@@ -34475,7 +42650,7 @@]},"data": {- "$ref": "#/$defs/FilePathData"+ "$ref": "#/$defs/FileTreeDocPathData"},"msg": {"type": "string"@@ -34494,8 +42669,7 @@"code": {"type": "integer","enum": [- -1,- -3+ -1]},"data": {@@ -34533,11 +42707,89 @@},{"method": "POST",- "path": "/api/file/globalCopyFiles",- "handler": "globalCopyFiles",+ "path": "/api/filetree/getPinnedDocs",+ "handler": "getPinnedDocs",+ "body": "none",+ "request": {+ "$ref": "#/$defs/EmptyRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/PinnedDoc"+ }+ },+ "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/filetree/getPublishAccess",+ "handler": "getPublishAccess","body": "json","request": {- "$ref": "#/$defs/CopyFilesRequestInput"+ "$ref": "#/$defs/FileTreePublishIDsRequestInput"},"response": {"anyOf": [@@ -34551,7 +42803,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/FileTreePublishData"},"msg": {"type": "string"@@ -34570,10 +42822,7 @@"code": {"type": "integer","enum": [- -1,- -2,- -3,- 403+ -1]},"data": {@@ -34611,11 +42860,11 @@},{"method": "POST",- "path": "/api/file/putFile",- "handler": "putFile",- "body": "form",+ "path": "/api/filetree/getRefCreateSavePath",+ "handler": "getRefCreateSavePath",+ "body": "json","request": {- "$ref": "#/$defs/PutFileRequestInput"+ "$ref": "#/$defs/FileTreeNotebookRequestInput"},"response": {"anyOf": [@@ -34629,7 +42878,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/FileTreeSavePathData"},"msg": {"type": "string"@@ -34648,11 +42897,7 @@"code": {"type": "integer","enum": [- -1,- -3,- 400,- 403,- 500+ -1]},"data": {@@ -34690,11 +42935,11 @@},{"method": "POST",- "path": "/api/file/readDir",- "handler": "readDir",+ "path": "/api/filetree/getShorthandSavePath",+ "handler": "getShorthandSavePath","body": "json","request": {- "$ref": "#/$defs/ReadDirectoryRequestInput"+ "$ref": "#/$defs/FileTreeNotebookRequestInput"},"response": {"anyOf": [@@ -34708,10 +42953,7 @@]},"data": {- "type": "array",- "items": {- "$ref": "#/$defs/DirectoryEntry"- }+ "$ref": "#/$defs/FileTreeSavePathData"},"msg": {"type": "string"@@ -34730,12 +42972,7 @@"code": {"type": "integer","enum": [- -1,- -3,- 403,- 404,- 409,- 500+ -1]},"data": {@@ -34773,11 +43010,11 @@},{"method": "POST",- "path": "/api/file/removeFile",- "handler": "removeFile",+ "path": "/api/filetree/heading2Doc",+ "handler": "heading2Doc","body": "json","request": {- "$ref": "#/$defs/RemoveFileRequestInput"+ "$ref": "#/$defs/FileTreeHeadingDocRequestInput"},"response": {"anyOf": [@@ -34810,11 +43047,7 @@"code": {"type": "integer","enum": [- -1,- -3,- 403,- 404,- 500+ -1]},"data": {@@ -34852,11 +43085,11 @@},{"method": "POST",- "path": "/api/file/renameFile",- "handler": "renameFile",+ "path": "/api/filetree/li2Doc",+ "handler": "li2Doc","body": "json","request": {- "$ref": "#/$defs/RenameFileRequestInput"+ "$ref": "#/$defs/FileTreeListItemDocRequestInput"},"response": {"anyOf": [@@ -34889,12 +43122,7 @@"code": {"type": "integer","enum": [- -1,- -3,- 403,- 404,- 409,- 500+ -1]},"data": {@@ -34932,11 +43160,11 @@},{"method": "POST",- "path": "/api/file/workspaceCopyFiles",- "handler": "workspaceCopyFiles",+ "path": "/api/filetree/listDocTree",+ "handler": "listDocTree","body": "json","request": {- "$ref": "#/$defs/CopyFilesRequestInput"+ "$ref": "#/$defs/FileTreePathRequestInput"},"response": {"anyOf": [@@ -34950,7 +43178,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/FileTreeDocTreeData"},"msg": {"type": "string"@@ -34969,10 +43197,7 @@"code": {"type": "integer","enum": [- -1,- -2,- -3,- 403+ -1]},"data": {@@ -35010,11 +43235,11 @@},{"method": "POST",- "path": "/api/filetree/authFilePublishAccess",- "handler": "authFilePublishAccess",+ "path": "/api/filetree/listDocsByPath",+ "handler": "listDocsByPath","body": "json","request": {- "$ref": "#/$defs/FileTreeAuthPublishRequestInput"+ "$ref": "#/$defs/FileTreeListRequestInput"},"response": {"anyOf": [@@ -35028,7 +43253,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/FileTreeListData"},"msg": {"type": "string"@@ -35081,18 +43306,15 @@"additionalProperties": true}]- },- "additionalErrorStatuses": [- 429- ]+ }},{"method": "POST",- "path": "/api/filetree/changeSort",- "handler": "changeSort",+ "path": "/api/filetree/moveDocs",+ "handler": "moveDocs","body": "json","request": {- "$ref": "#/$defs/FileTreeChangeSortRequestInput"+ "$ref": "#/$defs/FileTreeMoveRequestInput"},"response": {"anyOf": [@@ -35163,11 +43385,11 @@},{"method": "POST",- "path": "/api/filetree/createDailyNote",- "handler": "createDailyNote",+ "path": "/api/filetree/moveDocsByID",+ "handler": "moveDocsByID","body": "json","request": {- "$ref": "#/$defs/FileTreeDailyNoteRequestInput"+ "$ref": "#/$defs/FileTreeMoveIDsRequestInput"},"response": {"anyOf": [@@ -35181,7 +43403,7 @@]},"data": {- "$ref": "#/$defs/FileTreeCreateData"+ "type": "null"},"msg": {"type": "string"@@ -35200,8 +43422,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -35239,11 +43460,11 @@},{"method": "POST",- "path": "/api/filetree/createDoc",- "handler": "createDoc",+ "path": "/api/filetree/moveLocalShorthands",+ "handler": "moveLocalShorthands","body": "json","request": {- "$ref": "#/$defs/FileTreeCreateRequestInput"+ "$ref": "#/$defs/FileTreeNotebookRequestInput"},"response": {"anyOf": [@@ -35257,7 +43478,17 @@]},"data": {- "$ref": "#/$defs/FileTreeCreateData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -35314,11 +43545,11 @@},{"method": "POST",- "path": "/api/filetree/createDocWithMd",- "handler": "createDocWithMd",+ "path": "/api/filetree/removeDoc",+ "handler": "removeDoc","body": "json","request": {- "$ref": "#/$defs/FileTreeCreateMarkdownRequestInput"+ "$ref": "#/$defs/FileTreePathRequestInput"},"response": {"anyOf": [@@ -35332,7 +43563,7 @@]},"data": {- "type": "string"+ "type": "null"},"msg": {"type": "string"@@ -35389,11 +43620,11 @@},{"method": "POST",- "path": "/api/filetree/doc2Heading",- "handler": "doc2Heading",+ "path": "/api/filetree/removeDocByID",+ "handler": "removeDocByID","body": "json","request": {- "$ref": "#/$defs/FileTreeDocHeadingRequestInput"+ "$ref": "#/$defs/FileTreeTrimIDRequestInput"},"response": {"anyOf": [@@ -35407,7 +43638,7 @@]},"data": {- "$ref": "#/$defs/FileTreeDocHeadingData"+ "type": "null"},"msg": {"type": "string"@@ -35464,11 +43695,11 @@},{"method": "POST",- "path": "/api/filetree/duplicateDoc",- "handler": "duplicateDoc",+ "path": "/api/filetree/removeDocs",+ "handler": "removeDocs","body": "json","request": {- "$ref": "#/$defs/FileTreeIDRequestInput"+ "$ref": "#/$defs/FileTreePathsRequestInput"},"response": {"anyOf": [@@ -35482,7 +43713,7 @@]},"data": {- "$ref": "#/$defs/FileTreeDuplicateData"+ "type": "null"},"msg": {"type": "string"@@ -35539,11 +43770,11 @@},{"method": "POST",- "path": "/api/filetree/getDoc",- "handler": "getDoc",+ "path": "/api/filetree/removeIndexes",+ "handler": "removeIndexes","body": "json","request": {- "$ref": "#/$defs/FileTreeGetDocRequestInput"+ "$ref": "#/$defs/FileTreePathsRequestInput"},"response": {"anyOf": [@@ -35557,7 +43788,7 @@]},"data": {- "$ref": "#/$defs/FileTreeGetDocData"+ "type": "null"},"msg": {"type": "string"@@ -35576,9 +43807,7 @@"code": {"type": "integer","enum": [- -1,- 1,- 3+ -1]},"data": {@@ -35616,11 +43845,11 @@},{"method": "POST",- "path": "/api/filetree/getDocCreateSavePath",- "handler": "getDocCreateSavePath",+ "path": "/api/filetree/renameDoc",+ "handler": "renameDoc","body": "json","request": {- "$ref": "#/$defs/FileTreeNotebookRequestInput"+ "$ref": "#/$defs/FileTreeRenameRequestInput"},"response": {"anyOf": [@@ -35634,7 +43863,7 @@]},"data": {- "$ref": "#/$defs/FileTreeCreateSavePathData"+ "type": "null"},"msg": {"type": "string"@@ -35691,11 +43920,11 @@},{"method": "POST",- "path": "/api/filetree/getFullHPathByID",- "handler": "getFullHPathByID",+ "path": "/api/filetree/renameDocByID",+ "handler": "renameDocByID","body": "json","request": {- "$ref": "#/$defs/FileTreeOptionalIDRequestInput"+ "$ref": "#/$defs/FileTreeRenameIDRequestInput"},"response": {"anyOf": [@@ -35709,14 +43938,7 @@]},"data": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -35773,11 +43995,11 @@},{"method": "POST",- "path": "/api/filetree/getHPathByID",- "handler": "getHPathByID",- "body": "json",+ "path": "/api/filetree/reorderDocs",+ "handler": "reorderDocs",+ "body": "structJSON","request": {- "$ref": "#/$defs/FileTreeIDRequestInput"+ "$ref": "#/$defs/FileTreeReorderRequestInput"},"response": {"anyOf": [@@ -35791,7 +44013,14 @@]},"data": {- "type": "string"+ "anyOf": [+ {+ "$ref": "#/$defs/FileTreeReorderData"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -35829,6 +44058,16 @@},{"type": "null"+ },+ {+ "anyOf": [+ {+ "$ref": "#/$defs/FileTreeReorderData"+ },+ {+ "type": "null"+ }+ ]}]},@@ -35848,11 +44087,11 @@},{"method": "POST",- "path": "/api/filetree/getHPathByPath",- "handler": "getHPathByPath",+ "path": "/api/filetree/searchDocs",+ "handler": "searchDocs","body": "json","request": {- "$ref": "#/$defs/FileTreePathRequestInput"+ "$ref": "#/$defs/FileTreeSearchRequestInput"},"response": {"anyOf": [@@ -35866,7 +44105,24 @@]},"data": {- "type": "string"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/FileTreeSearchDoc"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -35923,11 +44179,11 @@},{"method": "POST",- "path": "/api/filetree/getHPathsByPaths",- "handler": "getHPathsByPaths",- "body": "json",+ "path": "/api/filetree/setDocSortMode",+ "handler": "setDocSortMode",+ "body": "structJSON","request": {- "$ref": "#/$defs/FileTreePathsRequestInput"+ "$ref": "#/$defs/FileTreeSortModeRequestInput"},"response": {"anyOf": [@@ -35943,10 +44199,7 @@"data": {"anyOf": [{- "type": "array",- "items": {- "type": "string"- }+ "$ref": "#/$defs/FileTreeSortModeData"},{"type": "null"@@ -35989,6 +44242,16 @@},{"type": "null"+ },+ {+ "anyOf": [+ {+ "$ref": "#/$defs/FileTreeSortModeData"+ },+ {+ "type": "null"+ }+ ]}]},@@ -36008,11 +44271,11 @@},{"method": "POST",- "path": "/api/filetree/getIDsByHPath",- "handler": "getIDsByHPath",+ "path": "/api/filetree/setPublishAccess",+ "handler": "setPublishAccess","body": "json","request": {- "$ref": "#/$defs/FileTreeOptionalPathRequestInput"+ "$ref": "#/$defs/FileTreeSetPublishRequestInput"},"response": {"anyOf": [@@ -36026,17 +44289,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "type": "string"- }- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -36093,11 +44346,11 @@},{"method": "POST",- "path": "/api/filetree/getPathByID",- "handler": "getPathByID",- "body": "json",+ "path": "/api/filetree/setSort",+ "handler": "setSort",+ "body": "structJSON","request": {- "$ref": "#/$defs/FileTreeTrimIDRequestInput"+ "$ref": "#/$defs/FileTreeSetSortRequestInput"},"response": {"anyOf": [@@ -36111,7 +44364,14 @@]},"data": {- "$ref": "#/$defs/FileTreeDocPathData"+ "anyOf": [+ {+ "$ref": "#/$defs/FileTreeSetSortData"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -36149,6 +44409,16 @@},{"type": "null"+ },+ {+ "anyOf": [+ {+ "$ref": "#/$defs/FileTreeSetSortData"+ },+ {+ "type": "null"+ }+ ]}]},@@ -36168,11 +44438,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": [@@ -36186,10 +44456,7 @@]},"data": {- "type": "array",- "items": {- "$ref": "#/$defs/PinnedDoc"- }+ "type": "null"},"msg": {"type": "string"@@ -36246,11 +44513,11 @@},{"method": "POST",- "path": "/api/filetree/getPublishAccess",- "handler": "getPublishAccess",+ "path": "/api/filetree/upsertIndexes",+ "handler": "upsertIndexes","body": "json","request": {- "$ref": "#/$defs/FileTreePublishIDsRequestInput"+ "$ref": "#/$defs/FileTreePathsRequestInput"},"response": {"anyOf": [@@ -36264,7 +44531,7 @@]},"data": {- "$ref": "#/$defs/FileTreePublishData"+ "type": "null"},"msg": {"type": "string"@@ -36321,11 +44588,11 @@},{"method": "POST",- "path": "/api/filetree/getRefCreateSavePath",- "handler": "getRefCreateSavePath",+ "path": "/api/format/autoSpace",+ "handler": "autoSpace","body": "json","request": {- "$ref": "#/$defs/FileTreeNotebookRequestInput"+ "$ref": "#/$defs/TrimmedIDRequestInput"},"response": {"anyOf": [@@ -36339,7 +44606,7 @@]},"data": {- "$ref": "#/$defs/FileTreeSavePathData"+ "type": "null"},"msg": {"type": "string"@@ -36396,11 +44663,11 @@},{"method": "POST",- "path": "/api/filetree/getShorthandSavePath",- "handler": "getShorthandSavePath",+ "path": "/api/format/netAssets2LocalAssets",+ "handler": "netAssets2LocalAssets","body": "json","request": {- "$ref": "#/$defs/FileTreeNotebookRequestInput"+ "$ref": "#/$defs/TrimmedIDRequestInput"},"response": {"anyOf": [@@ -36414,7 +44681,7 @@]},"data": {- "$ref": "#/$defs/FileTreeSavePathData"+ "type": "null"},"msg": {"type": "string"@@ -36471,11 +44738,11 @@},{"method": "POST",- "path": "/api/filetree/heading2Doc",- "handler": "heading2Doc",+ "path": "/api/format/netImg2LocalAssets",+ "handler": "netImg2LocalAssets","body": "json","request": {- "$ref": "#/$defs/FileTreeHeadingDocRequestInput"+ "$ref": "#/$defs/NetImageAssetsRequestInput"},"response": {"anyOf": [@@ -36546,11 +44813,11 @@},{"method": "POST",- "path": "/api/filetree/li2Doc",- "handler": "li2Doc",+ "path": "/api/graph/getGraph",+ "handler": "getGraph","body": "json","request": {- "$ref": "#/$defs/FileTreeListItemDocRequestInput"+ "$ref": "#/$defs/GlobalGraphRequestInput"},"response": {"anyOf": [@@ -36563,45 +44830,13 @@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+ "$ref": "#/$defs/GlobalGraphResult"},{- "type": "null"+ "$ref": "#/$defs/GraphCorrelation"}]},@@ -36614,42 +44849,6 @@"msg","data"],- "additionalProperties": true- }- ]- }- },- {- "method": "POST",- "path": "/api/filetree/listDocTree",- "handler": "listDocTree",- "body": "json",- "request": {- "$ref": "#/$defs/FileTreePathRequestInput"- },- "response": {- "anyOf": [- {- "type": "object",- "properties": {- "code": {- "type": "integer",- "enum": [- 0- ]- },- "data": {- "$ref": "#/$defs/FileTreeDocTreeData"- },- "msg": {- "type": "string"- }- },- "required": [- "code",- "msg",- "data"- ],"additionalProperties": false},{@@ -36677,6 +44876,16 @@},{"type": "null"+ },+ {+ "anyOf": [+ {+ "$ref": "#/$defs/GlobalGraphResult"+ },+ {+ "$ref": "#/$defs/GraphCorrelation"+ }+ ]}]},@@ -36696,11 +44905,11 @@},{"method": "POST",- "path": "/api/filetree/listDocsByPath",- "handler": "listDocsByPath",+ "path": "/api/graph/getLocalGraph",+ "handler": "getLocalGraph","body": "json","request": {- "$ref": "#/$defs/FileTreeListRequestInput"+ "$ref": "#/$defs/LocalGraphRequestInput"},"response": {"anyOf": [@@ -36713,45 +44922,13 @@0]},- "data": {- "$ref": "#/$defs/FileTreeListData"- },- "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+ "$ref": "#/$defs/LocalGraphResult"},{- "type": "null"+ "$ref": "#/$defs/GraphCorrelation"}]},@@ -36764,42 +44941,6 @@"msg","data"],- "additionalProperties": true- }- ]- }- },- {- "method": "POST",- "path": "/api/filetree/moveDocs",- "handler": "moveDocs",- "body": "json",- "request": {- "$ref": "#/$defs/FileTreeMoveRequestInput"- },- "response": {- "anyOf": [- {- "type": "object",- "properties": {- "code": {- "type": "integer",- "enum": [- 0- ]- },- "data": {- "type": "null"- },- "msg": {- "type": "string"- }- },- "required": [- "code",- "msg",- "data"- ],"additionalProperties": false},{@@ -36827,6 +44968,16 @@},{"type": "null"+ },+ {+ "anyOf": [+ {+ "$ref": "#/$defs/LocalGraphResult"+ },+ {+ "$ref": "#/$defs/GraphCorrelation"+ }+ ]}]},@@ -36846,11 +44997,11 @@},{"method": "POST",- "path": "/api/filetree/moveDocsByID",- "handler": "moveDocsByID",- "body": "json",+ "path": "/api/graph/resetGraph",+ "handler": "resetGraph",+ "body": "none","request": {- "$ref": "#/$defs/FileTreeMoveIDsRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -36864,7 +45015,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/ResetGraphData"},"msg": {"type": "string"@@ -36921,11 +45072,11 @@},{"method": "POST",- "path": "/api/filetree/moveLocalShorthands",- "handler": "moveLocalShorthands",- "body": "json",+ "path": "/api/graph/resetLocalGraph",+ "handler": "resetLocalGraph",+ "body": "none","request": {- "$ref": "#/$defs/FileTreeNotebookRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -36939,17 +45090,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "type": "string"- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/ResetLocalGraphData"},"msg": {"type": "string"@@ -37006,11 +45147,11 @@},{"method": "POST",- "path": "/api/filetree/removeDoc",- "handler": "removeDoc",+ "path": "/api/graph/setGraphConf",+ "handler": "setGraphConf","body": "json","request": {- "$ref": "#/$defs/FileTreePathRequestInput"+ "$ref": "#/$defs/SetGraphConfRequestInput"},"response": {"anyOf": [@@ -37024,7 +45165,14 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/GlobalGraphConf"+ },+ {+ "$ref": "#/$defs/LocalGraphConf"+ }+ ]},"msg": {"type": "string"@@ -37081,11 +45229,11 @@},{"method": "POST",- "path": "/api/filetree/removeDocByID",- "handler": "removeDocByID",- "body": "json",+ "path": "/api/history/clearWorkspaceHistory",+ "handler": "clearWorkspaceHistory",+ "body": "none","request": {- "$ref": "#/$defs/FileTreeTrimIDRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -37156,11 +45304,11 @@},{"method": "POST",- "path": "/api/filetree/removeDocs",- "handler": "removeDocs",+ "path": "/api/history/createAssetHistory",+ "handler": "createAssetHistory","body": "json","request": {- "$ref": "#/$defs/FileTreePathsRequestInput"+ "$ref": "#/$defs/CreateAssetHistoryRequestInput"},"response": {"anyOf": [@@ -37231,11 +45379,11 @@},{"method": "POST",- "path": "/api/filetree/removeIndexes",- "handler": "removeIndexes",+ "path": "/api/history/createDocHistory",+ "handler": "createDocHistory","body": "json","request": {- "$ref": "#/$defs/FileTreePathsRequestInput"+ "$ref": "#/$defs/CreateDocHistoryRequestInput"},"response": {"anyOf": [@@ -37306,11 +45454,11 @@},{"method": "POST",- "path": "/api/filetree/renameDoc",- "handler": "renameDoc",+ "path": "/api/history/diffDocVersions",+ "handler": "diffDocVersions","body": "json","request": {- "$ref": "#/$defs/FileTreeRenameRequestInput"+ "$ref": "#/$defs/DiffDocVersionsRequestInput"},"response": {"anyOf": [@@ -37323,42 +45471,10 @@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+ "$ref": "#/$defs/DocVersionDiffResult"},{"type": "null"@@ -37374,42 +45490,6 @@"msg","data"],- "additionalProperties": true- }- ]- }- },- {- "method": "POST",- "path": "/api/filetree/renameDocByID",- "handler": "renameDocByID",- "body": "json",- "request": {- "$ref": "#/$defs/FileTreeRenameIDRequestInput"- },- "response": {- "anyOf": [- {- "type": "object",- "properties": {- "code": {- "type": "integer",- "enum": [- 0- ]- },- "data": {- "type": "null"- },- "msg": {- "type": "string"- }- },- "required": [- "code",- "msg",- "data"- ],"additionalProperties": false},{@@ -37456,11 +45536,11 @@},{"method": "POST",- "path": "/api/filetree/reorderDocs",- "handler": "reorderDocs",- "body": "structJSON",+ "path": "/api/history/getDocHistoryContent",+ "handler": "getDocHistoryContent",+ "body": "json","request": {- "$ref": "#/$defs/FileTreeReorderRequestInput"+ "$ref": "#/$defs/DocHistoryContentRequestInput"},"response": {"anyOf": [@@ -37474,14 +45554,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/FileTreeReorderData"- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/DocHistoryContentData"},"msg": {"type": "string"@@ -37519,16 +45592,6 @@},{"type": "null"- },- {- "anyOf": [- {- "$ref": "#/$defs/FileTreeReorderData"- },- {- "type": "null"- }- ]}]},@@ -37548,11 +45611,11 @@},{"method": "POST",- "path": "/api/filetree/searchDocs",- "handler": "searchDocs",+ "path": "/api/history/getHistoryItems",+ "handler": "getHistoryItems","body": "json","request": {- "$ref": "#/$defs/FileTreeSearchRequestInput"+ "$ref": "#/$defs/HistoryItemsRequestInput"},"response": {"anyOf": [@@ -37566,24 +45629,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/FileTreeSearchDoc"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/HistoryItemsData"},"msg": {"type": "string"@@ -37640,11 +45686,11 @@},{"method": "POST",- "path": "/api/filetree/setDocSortMode",- "handler": "setDocSortMode",- "body": "structJSON",+ "path": "/api/history/getNotebookHistory",+ "handler": "getNotebookHistory",+ "body": "none","request": {- "$ref": "#/$defs/FileTreeSortModeRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -37658,14 +45704,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/FileTreeSortModeData"- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/NotebookHistoryData"},"msg": {"type": "string"@@ -37703,16 +45742,6 @@},{"type": "null"- },- {- "anyOf": [- {- "$ref": "#/$defs/FileTreeSortModeData"- },- {- "type": "null"- }- ]}]},@@ -37732,11 +45761,11 @@},{"method": "POST",- "path": "/api/filetree/setPublishAccess",- "handler": "setPublishAccess",- "body": "json",+ "path": "/api/history/reindexHistory",+ "handler": "reindexHistory",+ "body": "none","request": {- "$ref": "#/$defs/FileTreeSetPublishRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -37788,98 +45817,81 @@},{"type": "null"- }- ]- },- "msg": {- "type": "string"- }- },- "required": [- "code",- "msg",- "data"- ],- "additionalProperties": true- }- ]- }- },- {- "method": "POST",- "path": "/api/filetree/setSort",- "handler": "setSort",- "body": "structJSON",- "request": {- "$ref": "#/$defs/FileTreeSetSortRequestInput"- },- "response": {- "anyOf": [- {- "type": "object",- "properties": {- "code": {- "type": "integer",- "enum": [- 0- ]- },- "data": {- "anyOf": [- {- "$ref": "#/$defs/FileTreeSetSortData"- },- {- "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/history/rollbackAssetsHistory",+ "handler": "rollbackAssetsHistory",+ "body": "json",+ "request": {+ "$ref": "#/$defs/HistoryPathRequestInput"+ },+ "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": [{- "anyOf": [- {- "$ref": "#/$defs/FileTreeSetSortData"- },- {- "type": "null"+ "type": "object",+ "properties": {+ "closeTimeout": {+ "type": "number"}- ]+ },+ "required": [+ "closeTimeout"+ ],+ "additionalProperties": false+ },+ {+ "type": "null"}]},@@ -37899,11 +45911,11 @@},{"method": "POST",- "path": "/api/filetree/updatePinnedDocs",- "handler": "updatePinnedDocs",+ "path": "/api/history/rollbackAttributeViewHistory",+ "handler": "rollbackAttributeViewHistory","body": "json","request": {- "$ref": "#/$defs/UpdatePinnedDocsRequestInput"+ "$ref": "#/$defs/HistoryPathRequestInput"},"response": {"anyOf": [@@ -37974,11 +45986,11 @@},{"method": "POST",- "path": "/api/filetree/upsertIndexes",- "handler": "upsertIndexes",+ "path": "/api/history/rollbackDocHistory",+ "handler": "rollbackDocHistory","body": "json","request": {- "$ref": "#/$defs/FileTreePathsRequestInput"+ "$ref": "#/$defs/HistoryPathRequestInput"},"response": {"anyOf": [@@ -38049,11 +46061,11 @@},{"method": "POST",- "path": "/api/format/autoSpace",- "handler": "autoSpace",+ "path": "/api/history/rollbackNotebookHistory",+ "handler": "rollbackNotebookHistory","body": "json","request": {- "$ref": "#/$defs/TrimmedIDRequestInput"+ "$ref": "#/$defs/HistoryPathRequestInput"},"response": {"anyOf": [@@ -38124,11 +46136,11 @@},{"method": "POST",- "path": "/api/format/netAssets2LocalAssets",- "handler": "netAssets2LocalAssets",+ "path": "/api/history/searchHistory",+ "handler": "searchHistory","body": "json","request": {- "$ref": "#/$defs/TrimmedIDRequestInput"+ "$ref": "#/$defs/SearchHistoryRequestInput"},"response": {"anyOf": [@@ -38142,7 +46154,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/SearchHistoryData"},"msg": {"type": "string"@@ -38199,11 +46211,11 @@},{"method": "POST",- "path": "/api/format/netImg2LocalAssets",- "handler": "netImg2LocalAssets",+ "path": "/api/import/cancelImportSY",+ "handler": "cancelImportSY","body": "json","request": {- "$ref": "#/$defs/NetImageAssetsRequestInput"+ "$ref": "#/$defs/ImportTokenRequestInput"},"response": {"anyOf": [@@ -38274,11 +46286,11 @@},{"method": "POST",- "path": "/api/graph/getGraph",- "handler": "getGraph",+ "path": "/api/import/cancelObsidianVaultTask",+ "handler": "cancelObsidianVaultTask","body": "json","request": {- "$ref": "#/$defs/GlobalGraphRequestInput"+ "$ref": "#/$defs/ObsidianTaskRequestInput"},"response": {"anyOf": [@@ -38294,10 +46306,10 @@"data": {"anyOf": [{- "$ref": "#/$defs/GlobalGraphResult"+ "$ref": "#/$defs/ObsidianVaultTask"},{- "$ref": "#/$defs/GraphCorrelation"+ "type": "null"}]},@@ -38341,10 +46353,10 @@{"anyOf": [{- "$ref": "#/$defs/GlobalGraphResult"+ "$ref": "#/$defs/ObsidianVaultTask"},{- "$ref": "#/$defs/GraphCorrelation"+ "type": "null"}]}@@ -38366,11 +46378,11 @@},{"method": "POST",- "path": "/api/graph/getLocalGraph",- "handler": "getLocalGraph",+ "path": "/api/import/continueImportSY",+ "handler": "continueImportSY","body": "json","request": {- "$ref": "#/$defs/LocalGraphRequestInput"+ "$ref": "#/$defs/ContinueImportSYRequestInput"},"response": {"anyOf": [@@ -38383,13 +46395,88 @@0]},+ "data": {+ "$ref": "#/$defs/ImportDocumentData"+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": false+ },+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ -1+ ]+ },"data": {"anyOf": [{- "$ref": "#/$defs/LocalGraphResult"+ "type": "object",+ "properties": {+ "closeTimeout": {+ "type": "number"+ }+ },+ "required": [+ "closeTimeout"+ ],+ "additionalProperties": false},{- "$ref": "#/$defs/GraphCorrelation"+ "type": "null"+ }+ ]+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": true+ }+ ]+ }+ },+ {+ "method": "POST",+ "path": "/api/import/getObsidianVaultTask",+ "handler": "getObsidianVaultTask",+ "body": "json",+ "request": {+ "$ref": "#/$defs/ObsidianTaskRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "anyOf": [+ {+ "$ref": "#/$defs/ObsidianVaultTask"+ },+ {+ "type": "null"}]},@@ -38429,16 +46516,6 @@},{"type": "null"- },- {- "anyOf": [- {- "$ref": "#/$defs/LocalGraphResult"- },- {- "$ref": "#/$defs/GraphCorrelation"- }- ]}]},@@ -38458,11 +46535,11 @@},{"method": "POST",- "path": "/api/graph/resetGraph",- "handler": "resetGraph",- "body": "none",+ "path": "/api/import/importData",+ "handler": "importData",+ "body": "multipart","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/ImportDataRequestInput"},"response": {"anyOf": [@@ -38476,7 +46553,7 @@]},"data": {- "$ref": "#/$defs/ResetGraphData"+ "type": "null"},"msg": {"type": "string"@@ -38533,11 +46610,11 @@},{"method": "POST",- "path": "/api/graph/resetLocalGraph",- "handler": "resetLocalGraph",- "body": "none",+ "path": "/api/import/importSY",+ "handler": "importSY",+ "body": "multipart","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/ImportSYRequestInput"},"response": {"anyOf": [@@ -38551,7 +46628,7 @@]},"data": {- "$ref": "#/$defs/ResetLocalGraphData"+ "type": "null"},"msg": {"type": "string"@@ -38608,11 +46685,11 @@},{"method": "POST",- "path": "/api/graph/setGraphConf",- "handler": "setGraphConf",- "body": "json",+ "path": "/api/import/importSYAuto",+ "handler": "importSYAuto",+ "body": "multipart","request": {- "$ref": "#/$defs/SetGraphConfRequestInput"+ "$ref": "#/$defs/ImportSYRequestInput"},"response": {"anyOf": [@@ -38628,10 +46705,13 @@"data": {"anyOf": [{- "$ref": "#/$defs/GlobalGraphConf"+ "$ref": "#/$defs/ImportAutoDocument"},{- "$ref": "#/$defs/LocalGraphConf"+ "$ref": "#/$defs/ImportAutoNotebook"+ },+ {+ "$ref": "#/$defs/ImportAutoNotebooks"}]},@@ -38671,6 +46751,19 @@},{"type": "null"+ },+ {+ "anyOf": [+ {+ "$ref": "#/$defs/ImportAutoDocument"+ },+ {+ "$ref": "#/$defs/ImportAutoNotebook"+ },+ {+ "$ref": "#/$defs/ImportAutoNotebooks"+ }+ ]}]},@@ -38690,11 +46783,11 @@},{"method": "POST",- "path": "/api/history/clearWorkspaceHistory",- "handler": "clearWorkspaceHistory",- "body": "none",+ "path": "/api/import/importSYNotebook",+ "handler": "importSYNotebook",+ "body": "multipart","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/ImportDataRequestInput"},"response": {"anyOf": [@@ -38708,7 +46801,14 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/ImportedNotebook"+ },+ {+ "$ref": "#/$defs/ImportedNotebooks"+ }+ ]},"msg": {"type": "string"@@ -38765,11 +46865,11 @@},{"method": "POST",- "path": "/api/history/createAssetHistory",- "handler": "createAssetHistory",+ "path": "/api/import/importStdMd",+ "handler": "importStdMd","body": "json","request": {- "$ref": "#/$defs/CreateAssetHistoryRequestInput"+ "$ref": "#/$defs/ImportMarkdownRequestInput"},"response": {"anyOf": [@@ -38840,11 +46940,11 @@},{"method": "POST",- "path": "/api/history/createDocHistory",- "handler": "createDocHistory",- "body": "json",+ "path": "/api/import/importZipMd",+ "handler": "importZipMd",+ "body": "multipart","request": {- "$ref": "#/$defs/CreateDocHistoryRequestInput"+ "$ref": "#/$defs/ImportZipMarkdownRequestInput"},"response": {"anyOf": [@@ -38915,11 +47015,11 @@},{"method": "POST",- "path": "/api/history/diffDocVersions",- "handler": "diffDocVersions",+ "path": "/api/import/startObsidianVaultAnalysis",+ "handler": "startObsidianVaultAnalysis","body": "json","request": {- "$ref": "#/$defs/DiffDocVersionsRequestInput"+ "$ref": "#/$defs/ObsidianAnalysisRequestInput"},"response": {"anyOf": [@@ -38935,7 +47035,7 @@"data": {"anyOf": [{- "$ref": "#/$defs/DocVersionDiffResult"+ "$ref": "#/$defs/ObsidianVaultTask"},{"type": "null"@@ -38997,11 +47097,11 @@},{"method": "POST",- "path": "/api/history/getDocHistoryContent",- "handler": "getDocHistoryContent",+ "path": "/api/import/startObsidianVaultImport",+ "handler": "startObsidianVaultImport","body": "json","request": {- "$ref": "#/$defs/DocHistoryContentRequestInput"+ "$ref": "#/$defs/ObsidianImportRequestInput"},"response": {"anyOf": [@@ -39015,7 +47115,14 @@]},"data": {- "$ref": "#/$defs/DocHistoryContentData"+ "anyOf": [+ {+ "$ref": "#/$defs/ObsidianVaultTask"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -39072,11 +47179,11 @@},{"method": "POST",- "path": "/api/history/getHistoryItems",- "handler": "getHistoryItems",+ "path": "/api/inbox/getShorthand",+ "handler": "getShorthand","body": "json","request": {- "$ref": "#/$defs/HistoryItemsRequestInput"+ "$ref": "#/$defs/TrimmedIDRequestInput"},"response": {"anyOf": [@@ -39090,7 +47197,14 @@]},"data": {- "$ref": "#/$defs/HistoryItemsData"+ "anyOf": [+ {+ "$ref": "#/$defs/Shorthand"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -39109,7 +47223,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -39147,11 +47262,11 @@},{"method": "POST",- "path": "/api/history/getNotebookHistory",- "handler": "getNotebookHistory",- "body": "none",+ "path": "/api/inbox/getShorthands",+ "handler": "getShorthands",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/ShorthandsRequestInput"},"response": {"anyOf": [@@ -39165,7 +47280,14 @@]},"data": {- "$ref": "#/$defs/NotebookHistoryData"+ "anyOf": [+ {+ "$ref": "#/$defs/ShorthandsData"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -39184,7 +47306,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -39222,11 +47345,11 @@},{"method": "POST",- "path": "/api/history/reindexHistory",- "handler": "reindexHistory",- "body": "none",+ "path": "/api/inbox/removeShorthands",+ "handler": "removeShorthands",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/RemoveShorthandsRequestInput"},"response": {"anyOf": [@@ -39259,7 +47382,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -39297,11 +47421,11 @@},{"method": "POST",- "path": "/api/history/rollbackAssetsHistory",- "handler": "rollbackAssetsHistory",+ "path": "/api/lute/copyStdMarkdown",+ "handler": "copyStdMarkdown","body": "json","request": {- "$ref": "#/$defs/HistoryPathRequestInput"+ "$ref": "#/$defs/CopyStdMarkdownRequestInput"},"response": {"anyOf": [@@ -39315,7 +47439,7 @@]},"data": {- "type": "null"+ "type": "string"},"msg": {"type": "string"@@ -39372,11 +47496,11 @@},{"method": "POST",- "path": "/api/history/rollbackAttributeViewHistory",- "handler": "rollbackAttributeViewHistory",+ "path": "/api/lute/html2BlockDOM",+ "handler": "html2BlockDOM","body": "json","request": {- "$ref": "#/$defs/HistoryPathRequestInput"+ "$ref": "#/$defs/HTMLClipboardRequestInput"},"response": {"anyOf": [@@ -39390,7 +47514,14 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "type": "string"+ },+ {+ "$ref": "#/$defs/HTMLClipboardPreflight"+ }+ ]},"msg": {"type": "string"@@ -39447,11 +47578,11 @@},{"method": "POST",- "path": "/api/history/rollbackDocHistory",- "handler": "rollbackDocHistory",+ "path": "/api/lute/md2html",+ "handler": "md2HTML","body": "json","request": {- "$ref": "#/$defs/HistoryPathRequestInput"+ "$ref": "#/$defs/MarkdownHTMLRequestInput"},"response": {"anyOf": [@@ -39465,7 +47596,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/HTMLData"},"msg": {"type": "string"@@ -39522,11 +47653,11 @@},{"method": "POST",- "path": "/api/history/rollbackNotebookHistory",- "handler": "rollbackNotebookHistory",+ "path": "/api/lute/spinBlockDOM",+ "handler": "spinBlockDOM","body": "json","request": {- "$ref": "#/$defs/HistoryPathRequestInput"+ "$ref": "#/$defs/DOMTextRequestInput"},"response": {"anyOf": [@@ -39540,7 +47671,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/DOMData"},"msg": {"type": "string"@@ -39559,7 +47690,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 413]},"data": {@@ -39597,11 +47729,11 @@},{"method": "POST",- "path": "/api/history/searchHistory",- "handler": "searchHistory",+ "path": "/api/lute/wpsPresentation2BlockDOM",+ "handler": "wpsPresentation2BlockDOM","body": "json","request": {- "$ref": "#/$defs/SearchHistoryRequestInput"+ "$ref": "#/$defs/WPSPresentationRequestInput"},"response": {"anyOf": [@@ -39615,7 +47747,7 @@]},"data": {- "$ref": "#/$defs/SearchHistoryData"+ "$ref": "#/$defs/WPSPresentationData"},"msg": {"type": "string"@@ -39653,6 +47785,9 @@},{"type": "null"+ },+ {+ "$ref": "#/$defs/WPSPresentationData"}]},@@ -39672,11 +47807,11 @@},{"method": "POST",- "path": "/api/import/cancelImportSY",- "handler": "cancelImportSY",+ "path": "/api/notebook/changeMasterPassword",+ "handler": "changeMasterPassword","body": "json","request": {- "$ref": "#/$defs/ImportTokenRequestInput"+ "$ref": "#/$defs/ChangeMasterPasswordRequestInput"},"response": {"anyOf": [@@ -39747,11 +47882,11 @@},{"method": "POST",- "path": "/api/import/cancelObsidianVaultTask",- "handler": "cancelObsidianVaultTask",+ "path": "/api/notebook/changeSortNotebook",+ "handler": "changeSortNotebook","body": "json","request": {- "$ref": "#/$defs/ObsidianTaskRequestInput"+ "$ref": "#/$defs/ChangeSortNotebookRequestInput"},"response": {"anyOf": [@@ -39765,14 +47900,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/ObsidianVaultTask"- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -39810,16 +47938,6 @@},{"type": "null"- },- {- "anyOf": [- {- "$ref": "#/$defs/ObsidianVaultTask"- },- {- "type": "null"- }- ]}]},@@ -39839,11 +47957,11 @@},{"method": "POST",- "path": "/api/import/continueImportSY",- "handler": "continueImportSY",+ "path": "/api/notebook/closeNotebook",+ "handler": "closeNotebook","body": "json","request": {- "$ref": "#/$defs/ContinueImportSYRequestInput"+ "$ref": "#/$defs/CloseNotebookRequestInput"},"response": {"anyOf": [@@ -39857,7 +47975,7 @@]},"data": {- "$ref": "#/$defs/ImportDocumentData"+ "type": "null"},"msg": {"type": "string"@@ -39914,11 +48032,11 @@},{"method": "POST",- "path": "/api/import/getObsidianVaultTask",- "handler": "getObsidianVaultTask",+ "path": "/api/notebook/createEncryptedNotebook",+ "handler": "createEncryptedNotebook","body": "json","request": {- "$ref": "#/$defs/ObsidianTaskRequestInput"+ "$ref": "#/$defs/CreateEncryptedNotebookRequestInput"},"response": {"anyOf": [@@ -39932,14 +48050,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/ObsidianVaultTask"- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/CreateNotebookData"},"msg": {"type": "string"@@ -39996,11 +48107,11 @@},{"method": "POST",- "path": "/api/import/importData",- "handler": "importData",- "body": "multipart",+ "path": "/api/notebook/createNotebook",+ "handler": "createNotebook",+ "body": "json","request": {- "$ref": "#/$defs/ImportDataRequestInput"+ "$ref": "#/$defs/CreateNotebookRequestInput"},"response": {"anyOf": [@@ -40014,7 +48125,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/CreateNotebookData"},"msg": {"type": "string"@@ -40071,11 +48182,11 @@},{"method": "POST",- "path": "/api/import/importSY",- "handler": "importSY",- "body": "multipart",+ "path": "/api/notebook/disableEncryptedNotebooks",+ "handler": "disableEncryptedNotebooks",+ "body": "none","request": {- "$ref": "#/$defs/ImportSYRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -40146,11 +48257,11 @@},{"method": "POST",- "path": "/api/import/importSYAuto",- "handler": "importSYAuto",- "body": "multipart",+ "path": "/api/notebook/enableEncryptedNotebooks",+ "handler": "enableEncryptedNotebooks",+ "body": "json","request": {- "$ref": "#/$defs/ImportSYRequestInput"+ "$ref": "#/$defs/NotebookPasswordRequestInput"},"response": {"anyOf": [@@ -40164,17 +48275,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/ImportAutoDocument"- },- {- "$ref": "#/$defs/ImportAutoNotebook"- },- {- "$ref": "#/$defs/ImportAutoNotebooks"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -40212,19 +48313,6 @@},{"type": "null"- },- {- "anyOf": [- {- "$ref": "#/$defs/ImportAutoDocument"- },- {- "$ref": "#/$defs/ImportAutoNotebook"- },- {- "$ref": "#/$defs/ImportAutoNotebooks"- }- ]}]},@@ -40244,11 +48332,11 @@},{"method": "POST",- "path": "/api/import/importSYNotebook",- "handler": "importSYNotebook",- "body": "multipart",+ "path": "/api/notebook/exportNotebookCryptoBackup",+ "handler": "exportNotebookCryptoBackup",+ "body": "none","request": {- "$ref": "#/$defs/ImportDataRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -40262,14 +48350,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/ImportedNotebook"- },- {- "$ref": "#/$defs/ImportedNotebooks"- }- ]+ "$ref": "#/$defs/NotebookCryptoBackupData"},"msg": {"type": "string"@@ -40326,11 +48407,11 @@},{"method": "POST",- "path": "/api/import/importStdMd",- "handler": "importStdMd",- "body": "json",+ "path": "/api/notebook/getEncryptedNotebookStatus",+ "handler": "getEncryptedNotebookStatus",+ "body": "none","request": {- "$ref": "#/$defs/ImportMarkdownRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -40344,7 +48425,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/EncryptedNotebookStatusData"},"msg": {"type": "string"@@ -40401,11 +48482,11 @@},{"method": "POST",- "path": "/api/import/importZipMd",- "handler": "importZipMd",- "body": "multipart",+ "path": "/api/notebook/getNotebookConf",+ "handler": "getNotebookConf",+ "body": "json","request": {- "$ref": "#/$defs/ImportZipMarkdownRequestInput"+ "$ref": "#/$defs/CloseNotebookRequestInput"},"response": {"anyOf": [@@ -40419,7 +48500,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/NotebookConfData"},"msg": {"type": "string"@@ -40476,11 +48557,11 @@},{"method": "POST",- "path": "/api/import/startObsidianVaultAnalysis",- "handler": "startObsidianVaultAnalysis",+ "path": "/api/notebook/getNotebookInfo",+ "handler": "getNotebookInfo","body": "json","request": {- "$ref": "#/$defs/ObsidianAnalysisRequestInput"+ "$ref": "#/$defs/NotebookIDRequestInput"},"response": {"anyOf": [@@ -40493,10 +48574,42 @@0]},+ "data": {+ "$ref": "#/$defs/NotebookInfoData"+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": false+ },+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ -1+ ]+ },"data": {"anyOf": [{- "$ref": "#/$defs/ObsidianVaultTask"+ "type": "object",+ "properties": {+ "closeTimeout": {+ "type": "number"+ }+ },+ "required": [+ "closeTimeout"+ ],+ "additionalProperties": false},{"type": "null"@@ -40512,6 +48625,42 @@"msg","data"],+ "additionalProperties": true+ }+ ]+ }+ },+ {+ "method": "POST",+ "path": "/api/notebook/importNotebookCryptoBackup",+ "handler": "importNotebookCryptoBackup",+ "body": "multipart",+ "request": {+ "$ref": "#/$defs/ImportNotebookCryptoBackupRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "type": "null"+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],"additionalProperties": false},{@@ -40558,11 +48707,11 @@},{"method": "POST",- "path": "/api/import/startObsidianVaultImport",- "handler": "startObsidianVaultImport",+ "path": "/api/notebook/lockNotebook",+ "handler": "lockNotebook","body": "json","request": {- "$ref": "#/$defs/ObsidianImportRequestInput"+ "$ref": "#/$defs/NotebookIDRequestInput"},"response": {"anyOf": [@@ -40576,14 +48725,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/ObsidianVaultTask"- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -40640,11 +48782,11 @@},{"method": "POST",- "path": "/api/inbox/getShorthand",- "handler": "getShorthand",- "body": "json",+ "path": "/api/notebook/lsNotebooks",+ "handler": "lsNotebooks",+ "body": "legacyOptional","request": {- "$ref": "#/$defs/TrimmedIDRequestInput"+ "$ref": "#/$defs/ListNotebooksRequestInput"},"response": {"anyOf": [@@ -40660,7 +48802,7 @@"data": {"anyOf": [{- "$ref": "#/$defs/Shorthand"+ "$ref": "#/$defs/ListNotebooksData"},{"type": "null"@@ -40684,8 +48826,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -40723,11 +48864,11 @@},{"method": "POST",- "path": "/api/inbox/getShorthands",- "handler": "getShorthands",+ "path": "/api/notebook/openNotebook",+ "handler": "openNotebook","body": "json","request": {- "$ref": "#/$defs/ShorthandsRequestInput"+ "$ref": "#/$defs/OpenNotebookRequestInput"},"response": {"anyOf": [@@ -40740,10 +48881,42 @@0]},+ "data": {+ "type": "null"+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": false+ },+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ -1+ ]+ },"data": {"anyOf": [{- "$ref": "#/$defs/ShorthandsData"+ "type": "object",+ "properties": {+ "closeTimeout": {+ "type": "number"+ }+ },+ "required": [+ "closeTimeout"+ ],+ "additionalProperties": false},{"type": "null"@@ -40759,6 +48932,42 @@"msg","data"],+ "additionalProperties": true+ }+ ]+ }+ },+ {+ "method": "POST",+ "path": "/api/notebook/removeNotebook",+ "handler": "removeNotebook",+ "body": "json",+ "request": {+ "$ref": "#/$defs/NotebookIDRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "type": "null"+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],"additionalProperties": false},{@@ -40767,8 +48976,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -40806,11 +49014,11 @@},{"method": "POST",- "path": "/api/inbox/removeShorthands",- "handler": "removeShorthands",+ "path": "/api/notebook/renameNotebook",+ "handler": "renameNotebook","body": "json","request": {- "$ref": "#/$defs/RemoveShorthandsRequestInput"+ "$ref": "#/$defs/RenameNotebookRequestInput"},"response": {"anyOf": [@@ -40843,8 +49051,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -40882,11 +49089,11 @@},{"method": "POST",- "path": "/api/lute/copyStdMarkdown",- "handler": "copyStdMarkdown",- "body": "json",+ "path": "/api/notebook/reorder",+ "handler": "reorderNotebooks",+ "body": "structJSON","request": {- "$ref": "#/$defs/CopyStdMarkdownRequestInput"+ "$ref": "#/$defs/ReorderNotebooksRequestInput"},"response": {"anyOf": [@@ -40900,7 +49107,14 @@]},"data": {- "type": "string"+ "anyOf": [+ {+ "$ref": "#/$defs/ReorderData"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -40938,6 +49152,16 @@},{"type": "null"+ },+ {+ "anyOf": [+ {+ "$ref": "#/$defs/ReorderData"+ },+ {+ "type": "null"+ }+ ]}]},@@ -40957,11 +49181,11 @@},{"method": "POST",- "path": "/api/lute/html2BlockDOM",- "handler": "html2BlockDOM",+ "path": "/api/notebook/setNotebookConf",+ "handler": "setNotebookConf","body": "json","request": {- "$ref": "#/$defs/HTMLClipboardRequestInput"+ "$ref": "#/$defs/SetNotebookConfRequestInput"},"response": {"anyOf": [@@ -40977,10 +49201,10 @@"data": {"anyOf": [{- "type": "string"+ "$ref": "#/$defs/NotebookConf"},{- "$ref": "#/$defs/HTMLClipboardPreflight"+ "type": "null"}]},@@ -41039,11 +49263,11 @@},{"method": "POST",- "path": "/api/lute/md2html",- "handler": "md2HTML",+ "path": "/api/notebook/setNotebookCryptoAutoLock",+ "handler": "setNotebookCryptoAutoLock","body": "json","request": {- "$ref": "#/$defs/MarkdownHTMLRequestInput"+ "$ref": "#/$defs/NotebookCryptoAutoLockRequestInput"},"response": {"anyOf": [@@ -41057,7 +49281,7 @@]},"data": {- "$ref": "#/$defs/HTMLData"+ "type": "null"},"msg": {"type": "string"@@ -41114,11 +49338,11 @@},{"method": "POST",- "path": "/api/lute/spinBlockDOM",- "handler": "spinBlockDOM",+ "path": "/api/notebook/setNotebookIcon",+ "handler": "setNotebookIcon","body": "json","request": {- "$ref": "#/$defs/DOMTextRequestInput"+ "$ref": "#/$defs/SetNotebookIconRequestInput"},"response": {"anyOf": [@@ -41132,7 +49356,7 @@]},"data": {- "$ref": "#/$defs/DOMData"+ "type": "null"},"msg": {"type": "string"@@ -41151,8 +49375,7 @@"code": {"type": "integer","enum": [- -1,- 413+ -1]},"data": {@@ -41190,11 +49413,11 @@},{"method": "POST",- "path": "/api/lute/wpsPresentation2BlockDOM",- "handler": "wpsPresentation2BlockDOM",- "body": "json",+ "path": "/api/notebook/touchEncryptedNotebooks",+ "handler": "touchEncryptedNotebooks",+ "body": "none","request": {- "$ref": "#/$defs/WPSPresentationRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -41208,7 +49431,7 @@]},"data": {- "$ref": "#/$defs/WPSPresentationData"+ "type": "null"},"msg": {"type": "string"@@ -41246,9 +49469,6 @@},{"type": "null"- },- {- "$ref": "#/$defs/WPSPresentationData"}]},@@ -41268,11 +49488,11 @@},{"method": "POST",- "path": "/api/notebook/changeMasterPassword",- "handler": "changeMasterPassword",+ "path": "/api/notebook/unlockAndOpenNotebook",+ "handler": "unlockAndOpenNotebook","body": "json","request": {- "$ref": "#/$defs/ChangeMasterPasswordRequestInput"+ "$ref": "#/$defs/UnlockNotebookRequestInput"},"response": {"anyOf": [@@ -41343,11 +49563,11 @@},{"method": "POST",- "path": "/api/notebook/changeSortNotebook",- "handler": "changeSortNotebook",+ "path": "/api/notebook/unlockNotebook",+ "handler": "unlockNotebook","body": "json","request": {- "$ref": "#/$defs/ChangeSortNotebookRequestInput"+ "$ref": "#/$defs/UnlockNotebookRequestInput"},"response": {"anyOf": [@@ -41418,11 +49638,11 @@},{"method": "POST",- "path": "/api/notebook/closeNotebook",- "handler": "closeNotebook",+ "path": "/api/notification/pushErrMsg",+ "handler": "pushErrMsg","body": "json","request": {- "$ref": "#/$defs/CloseNotebookRequestInput"+ "$ref": "#/$defs/NotificationRequestInput"},"response": {"anyOf": [@@ -41436,7 +49656,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/NotificationData"},"msg": {"type": "string"@@ -41493,11 +49713,11 @@},{"method": "POST",- "path": "/api/notebook/createEncryptedNotebook",- "handler": "createEncryptedNotebook",+ "path": "/api/notification/pushMsg",+ "handler": "pushMsg","body": "json","request": {- "$ref": "#/$defs/CreateEncryptedNotebookRequestInput"+ "$ref": "#/$defs/NotificationRequestInput"},"response": {"anyOf": [@@ -41511,7 +49731,7 @@]},"data": {- "$ref": "#/$defs/CreateNotebookData"+ "$ref": "#/$defs/NotificationData"},"msg": {"type": "string"@@ -41568,11 +49788,190 @@},{"method": "POST",- "path": "/api/notebook/createNotebook",- "handler": "createNotebook",+ "path": "/api/outline/getDocHeadingNumbers",+ "handler": "getDocHeadingNumbers",+ "body": "json",+ "request": {+ "$ref": "#/$defs/HeadingNumbersRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "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,+ 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/outline/getDocOutline",+ "handler": "getDocOutline",+ "body": "json",+ "request": {+ "$ref": "#/$defs/OutlineRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SearchPath"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "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"+ }+ ]+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": true+ }+ ]+ }+ },+ {+ "method": "POST",+ "path": "/api/petal/loadPetals",+ "handler": "loadPetals","body": "json","request": {- "$ref": "#/$defs/CreateNotebookRequestInput"+ "$ref": "#/$defs/LoadPetalsRequestInput"},"response": {"anyOf": [@@ -41586,7 +49985,24 @@]},"data": {- "$ref": "#/$defs/CreateNotebookData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/Petal"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -41643,11 +50059,11 @@},{"method": "POST",- "path": "/api/notebook/disableEncryptedNotebooks",- "handler": "disableEncryptedNotebooks",- "body": "none",+ "path": "/api/petal/setPetalEnabled",+ "handler": "setPetalEnabled",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/SetPetalEnabledRequestInput"},"response": {"anyOf": [@@ -41661,7 +50077,14 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/Petal"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -41718,11 +50141,11 @@},{"method": "POST",- "path": "/api/notebook/enableEncryptedNotebooks",- "handler": "enableEncryptedNotebooks",+ "path": "/api/petal/setPetalPublishEnabled",+ "handler": "setPetalPublishEnabled","body": "json","request": {- "$ref": "#/$defs/NotebookPasswordRequestInput"+ "$ref": "#/$defs/SetPetalPublishEnabledRequestInput"},"response": {"anyOf": [@@ -41736,7 +50159,14 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/Petal"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -41793,11 +50223,11 @@},{"method": "POST",- "path": "/api/notebook/exportNotebookCryptoBackup",- "handler": "exportNotebookCryptoBackup",- "body": "none",+ "path": "/api/plugin/getLoadedPlugin",+ "handler": "getLoadedPlugin",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/LoadedPluginRequestInput"},"response": {"anyOf": [@@ -41811,7 +50241,14 @@]},"data": {- "$ref": "#/$defs/NotebookCryptoBackupData"+ "anyOf": [+ {+ "$ref": "#/$defs/LoadedPlugin"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -41830,7 +50267,11 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1,+ 2,+ 3,+ 4]},"data": {@@ -41868,8 +50309,8 @@},{"method": "POST",- "path": "/api/notebook/getEncryptedNotebookStatus",- "handler": "getEncryptedNotebookStatus",+ "path": "/api/plugin/listLoadedPlugins",+ "handler": "listLoadedPlugins","body": "none","request": {"$ref": "#/$defs/EmptyRequestInput"@@ -41886,7 +50327,24 @@]},"data": {- "$ref": "#/$defs/EncryptedNotebookStatusData"+ "anyOf": [+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/LoadedPlugin"+ },+ {+ "type": "null"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -41943,36 +50401,52 @@},{"method": "POST",- "path": "/api/notebook/getNotebookConf",- "handler": "getNotebookConf",+ "path": "/api/plugin/rpc",+ "handler": "pluginJsonRpcHttp","body": "json","request": {- "$ref": "#/$defs/CloseNotebookRequestInput"+ "anyOf": [+ {+ "$ref": "#/$defs/PluginRPCRequestFieldsInput"+ },+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/PluginRPCRequestFieldsInput"+ },+ "minItems": 1+ }+ ]},"response": {"anyOf": [{- "type": "object",- "properties": {- "code": {- "type": "integer",- "enum": [- 0+ "anyOf": [+ {+ "anyOf": [+ {+ "$ref": "#/$defs/PluginRPCSuccess"+ },+ {+ "$ref": "#/$defs/PluginRPCFailure"+ }]},- "data": {- "$ref": "#/$defs/NotebookConfData"- },- "msg": {- "type": "string"+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/PluginRPCSuccess"+ },+ {+ "$ref": "#/$defs/PluginRPCFailure"+ }+ ]+ },+ "minItems": 1}- },- "required": [- "code",- "msg",- "data"- ],- "additionalProperties": false+ ]},{"type": "object",@@ -42014,40 +50488,58 @@"additionalProperties": true}]- }+ },+ "output": "directJSON",+ "noContent": true},{"method": "POST",- "path": "/api/notebook/getNotebookInfo",- "handler": "getNotebookInfo",+ "path": "/api/plugin/rpc/:name",+ "handler": "pluginJsonRpcHttpByName","body": "json","request": {- "$ref": "#/$defs/NotebookIDRequestInput"+ "anyOf": [+ {+ "$ref": "#/$defs/PluginRPCRequestFieldsInput"+ },+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/PluginRPCRequestFieldsInput"+ },+ "minItems": 1+ }+ ]},"response": {"anyOf": [{- "type": "object",- "properties": {- "code": {- "type": "integer",- "enum": [- 0+ "anyOf": [+ {+ "anyOf": [+ {+ "$ref": "#/$defs/PluginRPCSuccess"+ },+ {+ "$ref": "#/$defs/PluginRPCFailure"+ }]},- "data": {- "$ref": "#/$defs/NotebookInfoData"- },- "msg": {- "type": "string"+ {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/PluginRPCSuccess"+ },+ {+ "$ref": "#/$defs/PluginRPCFailure"+ }+ ]+ },+ "minItems": 1}- },- "required": [- "code",- "msg",- "data"- ],- "additionalProperties": false+ ]},{"type": "object",@@ -42089,15 +50581,17 @@"additionalProperties": true}]- }+ },+ "output": "directJSON",+ "noContent": true},{"method": "POST",- "path": "/api/notebook/importNotebookCryptoBackup",- "handler": "importNotebookCryptoBackup",- "body": "multipart",+ "path": "/api/query/sql",+ "handler": "SQL",+ "body": "json","request": {- "$ref": "#/$defs/ImportNotebookCryptoBackupRequestInput"+ "$ref": "#/$defs/SQLQueryRequestInput"},"response": {"anyOf": [@@ -42111,16 +50605,50 @@]},"data": {- "type": "null"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "type": "object",+ "additionalProperties": {+ "anyOf": [+ {+ "type": "null"+ },+ {+ "type": "string"+ },+ {+ "type": "number"+ },+ {+ "type": "boolean"+ }+ ]+ }+ },+ {+ "type": "null"+ }+ ]+ }+ },+ "limit": {+ "type": "integer"},"msg": {"type": "string"+ },+ "truncated": {+ "type": "boolean"}},"required": ["code","msg",- "data"+ "data",+ "limit",+ "truncated"],"additionalProperties": false},@@ -42130,7 +50658,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -42168,11 +50697,11 @@},{"method": "POST",- "path": "/api/notebook/lockNotebook",- "handler": "lockNotebook",+ "path": "/api/ref/getBacklink2",+ "handler": "getBacklink2","body": "json","request": {- "$ref": "#/$defs/NotebookIDRequestInput"+ "$ref": "#/$defs/BacklinkListRequestInput"},"response": {"anyOf": [@@ -42186,7 +50715,17 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/BacklinkList"+ },+ {+ "$ref": "#/$defs/BacklinkRefDefs"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -42205,7 +50744,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -42224,6 +50764,19 @@},{"type": "null"+ },+ {+ "anyOf": [+ {+ "$ref": "#/$defs/BacklinkList"+ },+ {+ "$ref": "#/$defs/BacklinkRefDefs"+ },+ {+ "type": "null"+ }+ ]}]},@@ -42243,11 +50796,11 @@},{"method": "POST",- "path": "/api/notebook/lsNotebooks",- "handler": "lsNotebooks",- "body": "legacyOptional",+ "path": "/api/ref/getBacklinkDoc",+ "handler": "getBacklinkDoc",+ "body": "json","request": {- "$ref": "#/$defs/ListNotebooksRequestInput"+ "$ref": "#/$defs/BacklinkDocumentRequestInput"},"response": {"anyOf": [@@ -42260,10 +50813,43 @@0]},+ "data": {+ "$ref": "#/$defs/BacklinkContextData"+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": false+ },+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ -1,+ 1+ ]+ },"data": {"anyOf": [{- "$ref": "#/$defs/ListNotebooksData"+ "type": "object",+ "properties": {+ "closeTimeout": {+ "type": "number"+ }+ },+ "required": [+ "closeTimeout"+ ],+ "additionalProperties": false},{"type": "null"@@ -42279,6 +50865,42 @@"msg","data"],+ "additionalProperties": true+ }+ ]+ }+ },+ {+ "method": "POST",+ "path": "/api/ref/getBackmentionDoc",+ "handler": "getBackmentionDoc",+ "body": "json",+ "request": {+ "$ref": "#/$defs/BackmentionDocumentRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "$ref": "#/$defs/BacklinkContextData"+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],"additionalProperties": false},{@@ -42287,7 +50909,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -42325,11 +50948,11 @@},{"method": "POST",- "path": "/api/notebook/openNotebook",- "handler": "openNotebook",+ "path": "/api/ref/refreshBacklink",+ "handler": "refreshBacklink","body": "json","request": {- "$ref": "#/$defs/OpenNotebookRequestInput"+ "$ref": "#/$defs/RefreshBacklinkRequestInput"},"response": {"anyOf": [@@ -42400,11 +51023,11 @@},{"method": "POST",- "path": "/api/notebook/removeNotebook",- "handler": "removeNotebook",- "body": "json",+ "path": "/api/repo/checkSnapshot",+ "handler": "checkSnapshot",+ "body": "none","request": {- "$ref": "#/$defs/NotebookIDRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -42418,7 +51041,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/CheckSnapshotData"},"msg": {"type": "string"@@ -42475,11 +51098,11 @@},{"method": "POST",- "path": "/api/notebook/renameNotebook",- "handler": "renameNotebook",+ "path": "/api/repo/checkoutRepo",+ "handler": "checkoutRepo","body": "json","request": {- "$ref": "#/$defs/RenameNotebookRequestInput"+ "$ref": "#/$defs/CheckoutRepoRequestInput"},"response": {"anyOf": [@@ -42550,11 +51173,11 @@},{"method": "POST",- "path": "/api/notebook/reorder",- "handler": "reorderNotebooks",- "body": "structJSON",+ "path": "/api/repo/createSnapshot",+ "handler": "createSnapshot",+ "body": "json","request": {- "$ref": "#/$defs/ReorderNotebooksRequestInput"+ "$ref": "#/$defs/CreateSnapshotRequestInput"},"response": {"anyOf": [@@ -42568,14 +51191,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/ReorderData"- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/CreateSnapshotData"},"msg": {"type": "string"@@ -42613,16 +51229,6 @@},{"type": "null"- },- {- "anyOf": [- {- "$ref": "#/$defs/ReorderData"- },- {- "type": "null"- }- ]}]},@@ -42642,11 +51248,11 @@},{"method": "POST",- "path": "/api/notebook/setNotebookConf",- "handler": "setNotebookConf",+ "path": "/api/repo/diffRepoSnapshots",+ "handler": "diffRepoSnapshots","body": "json","request": {- "$ref": "#/$defs/SetNotebookConfRequestInput"+ "$ref": "#/$defs/DiffRepoSnapshotsRequestInput"},"response": {"anyOf": [@@ -42659,10 +51265,42 @@0]},+ "data": {+ "$ref": "#/$defs/RepoDiffData"+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": false+ },+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ -1+ ]+ },"data": {"anyOf": [{- "$ref": "#/$defs/NotebookConf"+ "type": "object",+ "properties": {+ "closeTimeout": {+ "type": "number"+ }+ },+ "required": [+ "closeTimeout"+ ],+ "additionalProperties": false},{"type": "null"@@ -42678,6 +51316,42 @@"msg","data"],+ "additionalProperties": true+ }+ ]+ }+ },+ {+ "method": "POST",+ "path": "/api/repo/downloadCloudSnapshot",+ "handler": "downloadCloudSnapshot",+ "body": "json",+ "request": {+ "$ref": "#/$defs/DownloadCloudSnapshotRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "type": "null"+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],"additionalProperties": false},{@@ -42724,11 +51398,11 @@},{"method": "POST",- "path": "/api/notebook/setNotebookCryptoAutoLock",- "handler": "setNotebookCryptoAutoLock",+ "path": "/api/repo/exportRepoFile",+ "handler": "exportRepoFile","body": "json","request": {- "$ref": "#/$defs/NotebookCryptoAutoLockRequestInput"+ "$ref": "#/$defs/ExportRepoFileRequestInput"},"response": {"anyOf": [@@ -42742,7 +51416,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/RepoExportData"},"msg": {"type": "string"@@ -42799,11 +51473,11 @@},{"method": "POST",- "path": "/api/notebook/setNotebookIcon",- "handler": "setNotebookIcon",+ "path": "/api/repo/getCloudRepoSnapshots",+ "handler": "getCloudRepoSnapshots","body": "json","request": {- "$ref": "#/$defs/SetNotebookIconRequestInput"+ "$ref": "#/$defs/GetCloudRepoSnapshotsRequestInput"},"response": {"anyOf": [@@ -42817,7 +51491,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/RepoCloudSnapshotsData"},"msg": {"type": "string"@@ -42874,8 +51548,8 @@},{"method": "POST",- "path": "/api/notebook/touchEncryptedNotebooks",- "handler": "touchEncryptedNotebooks",+ "path": "/api/repo/getCloudRepoTagSnapshots",+ "handler": "getCloudRepoTagSnapshots","body": "none","request": {"$ref": "#/$defs/EmptyRequestInput"@@ -42892,7 +51566,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/RepoCloudTagsData"},"msg": {"type": "string"@@ -42949,11 +51623,11 @@},{"method": "POST",- "path": "/api/notebook/unlockAndOpenNotebook",- "handler": "unlockAndOpenNotebook",+ "path": "/api/repo/getRepoDocHistory",+ "handler": "getRepoDocHistory","body": "json","request": {- "$ref": "#/$defs/UnlockNotebookRequestInput"+ "$ref": "#/$defs/GetRepoDocHistoryRequestInput"},"response": {"anyOf": [@@ -42967,7 +51641,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/RepoDocHistoryData"},"msg": {"type": "string"@@ -43024,36 +51698,17 @@},{"method": "POST",- "path": "/api/notebook/unlockNotebook",- "handler": "unlockNotebook",+ "path": "/api/repo/getRepoFile",+ "handler": "getRepoFile","body": "json","request": {- "$ref": "#/$defs/UnlockNotebookRequestInput"+ "$ref": "#/$defs/GetRepoFileRequestInput"},"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",@@ -43095,90 +51750,17 @@"additionalProperties": true}]- }- },- {- "method": "POST",- "path": "/api/notification/pushErrMsg",- "handler": "pushErrMsg",- "body": "json",- "request": {- "$ref": "#/$defs/NotificationRequestInput"},- "response": {- "anyOf": [- {- "type": "object",- "properties": {- "code": {- "type": "integer",- "enum": [- 0- ]- },- "data": {- "$ref": "#/$defs/NotificationData"- },- "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- }- ]- }+ "output": "binary",+ "errorStatus": 200},{"method": "POST",- "path": "/api/notification/pushMsg",- "handler": "pushMsg",+ "path": "/api/repo/getRepoSnapshots",+ "handler": "getRepoSnapshots","body": "json","request": {- "$ref": "#/$defs/NotificationRequestInput"+ "$ref": "#/$defs/GetRepoSnapshotsRequestInput"},"response": {"anyOf": [@@ -43192,7 +51774,7 @@]},"data": {- "$ref": "#/$defs/NotificationData"+ "$ref": "#/$defs/RepoSnapshotsData"},"msg": {"type": "string"@@ -43249,11 +51831,11 @@},{"method": "POST",- "path": "/api/outline/getDocHeadingNumbers",- "handler": "getDocHeadingNumbers",- "body": "json",+ "path": "/api/repo/getRepoTagSnapshots",+ "handler": "getRepoTagSnapshots",+ "body": "none","request": {- "$ref": "#/$defs/HeadingNumbersRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -43267,17 +51849,7 @@]},"data": {- "anyOf": [- {- "type": "object",- "additionalProperties": {- "type": "string"- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/RepoTagsData"},"msg": {"type": "string"@@ -43296,8 +51868,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -43335,11 +51906,11 @@},{"method": "POST",- "path": "/api/outline/getDocOutline",- "handler": "getDocOutline",+ "path": "/api/repo/importRepoKey",+ "handler": "importRepoKey","body": "json","request": {- "$ref": "#/$defs/OutlineRequestInput"+ "$ref": "#/$defs/ImportRepoKeyRequestInput"},"response": {"anyOf": [@@ -43353,24 +51924,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/SearchPath"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/RepoKeyData"},"msg": {"type": "string"@@ -43389,8 +51943,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -43428,11 +51981,11 @@},{"method": "POST",- "path": "/api/petal/loadPetals",- "handler": "loadPetals",- "body": "json",+ "path": "/api/repo/initRepoKey",+ "handler": "initRepoKey",+ "body": "none","request": {- "$ref": "#/$defs/LoadPetalsRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -43446,24 +51999,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/Petal"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/RepoKeyData"},"msg": {"type": "string"@@ -43520,11 +52056,11 @@},{"method": "POST",- "path": "/api/petal/setPetalEnabled",- "handler": "setPetalEnabled",+ "path": "/api/repo/initRepoKeyFromPassphrase",+ "handler": "initRepoKeyFromPassphrase","body": "json","request": {- "$ref": "#/$defs/SetPetalEnabledRequestInput"+ "$ref": "#/$defs/InitRepoKeyFromPassphraseRequestInput"},"response": {"anyOf": [@@ -43538,14 +52074,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/Petal"- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/RepoKeyData"},"msg": {"type": "string"@@ -43602,11 +52131,11 @@},{"method": "POST",- "path": "/api/petal/setPetalPublishEnabled",- "handler": "setPetalPublishEnabled",+ "path": "/api/repo/openRepoSnapshotFile",+ "handler": "openRepoSnapshotFile","body": "json","request": {- "$ref": "#/$defs/SetPetalPublishEnabledRequestInput"+ "$ref": "#/$defs/OpenRepoSnapshotFileRequestInput"},"response": {"anyOf": [@@ -43620,14 +52149,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/Petal"- },- {- "type": "null"- }- ]+ "$ref": "#/$defs/RepoOpenFileData"},"msg": {"type": "string"@@ -43684,11 +52206,11 @@},{"method": "POST",- "path": "/api/plugin/getLoadedPlugin",- "handler": "getLoadedPlugin",- "body": "json",+ "path": "/api/repo/purgeCloudRepo",+ "handler": "purgeCloudRepo",+ "body": "none","request": {- "$ref": "#/$defs/LoadedPluginRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -43702,14 +52224,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/LoadedPlugin"- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -43728,11 +52243,7 @@"code": {"type": "integer","enum": [- -1,- 1,- 2,- 3,- 4+ -1]},"data": {@@ -43770,8 +52281,8 @@},{"method": "POST",- "path": "/api/plugin/listLoadedPlugins",- "handler": "listLoadedPlugins",+ "path": "/api/repo/purgeRepo",+ "handler": "purgeRepo","body": "none","request": {"$ref": "#/$defs/EmptyRequestInput"@@ -43788,24 +52299,7 @@]},"data": {- "anyOf": [- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/LoadedPlugin"- },- {- "type": "null"- }- ]- }- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -43862,52 +52356,36 @@},{"method": "POST",- "path": "/api/plugin/rpc",- "handler": "pluginJsonRpcHttp",+ "path": "/api/repo/removeCloudRepoTagSnapshot",+ "handler": "removeCloudRepoTagSnapshot","body": "json","request": {- "anyOf": [- {- "$ref": "#/$defs/PluginRPCRequestFieldsInput"- },- {- "type": "array",- "items": {- "$ref": "#/$defs/PluginRPCRequestFieldsInput"- },- "minItems": 1- }- ]+ "$ref": "#/$defs/RemoveCloudRepoTagSnapshotRequestInput"},"response": {"anyOf": [{- "anyOf": [- {- "anyOf": [- {- "$ref": "#/$defs/PluginRPCSuccess"- },- {- "$ref": "#/$defs/PluginRPCFailure"- }+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0]},- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/PluginRPCSuccess"- },- {- "$ref": "#/$defs/PluginRPCFailure"- }- ]- },- "minItems": 1+ "data": {+ "type": "null"+ },+ "msg": {+ "type": "string"}- ]+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": false},{"type": "object",@@ -43949,58 +52427,40 @@"additionalProperties": true}]- },- "output": "directJSON",- "noContent": true+ }},{"method": "POST",- "path": "/api/plugin/rpc/:name",- "handler": "pluginJsonRpcHttpByName",+ "path": "/api/repo/removeRepoTagSnapshot",+ "handler": "removeRepoTagSnapshot","body": "json","request": {- "anyOf": [- {- "$ref": "#/$defs/PluginRPCRequestFieldsInput"- },- {- "type": "array",- "items": {- "$ref": "#/$defs/PluginRPCRequestFieldsInput"- },- "minItems": 1- }- ]+ "$ref": "#/$defs/RemoveRepoTagSnapshotRequestInput"},"response": {"anyOf": [{- "anyOf": [- {- "anyOf": [- {- "$ref": "#/$defs/PluginRPCSuccess"- },- {- "$ref": "#/$defs/PluginRPCFailure"- }+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0]},- {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/PluginRPCSuccess"- },- {- "$ref": "#/$defs/PluginRPCFailure"- }- ]- },- "minItems": 1+ "data": {+ "type": "null"+ },+ "msg": {+ "type": "string"}- ]+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": false},{"type": "object",@@ -44042,17 +52502,15 @@"additionalProperties": true}]- },- "output": "directJSON",- "noContent": true+ }},{"method": "POST",- "path": "/api/query/sql",- "handler": "SQL",- "body": "json",+ "path": "/api/repo/resetRepo",+ "handler": "resetRepo",+ "body": "none","request": {- "$ref": "#/$defs/SQLQueryRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -44066,50 +52524,16 @@]},"data": {- "type": "array",- "items": {- "anyOf": [- {- "type": "object",- "additionalProperties": {- "anyOf": [- {- "type": "null"- },- {- "type": "string"- },- {- "type": "number"- },- {- "type": "boolean"- }- ]- }- },- {- "type": "null"- }- ]- }- },- "limit": {- "type": "integer"+ "type": "null"},"msg": {"type": "string"- },- "truncated": {- "type": "boolean"}},"required": ["code","msg",- "data",- "limit",- "truncated"+ "data"],"additionalProperties": false},@@ -44119,8 +52543,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -44158,11 +52581,11 @@},{"method": "POST",- "path": "/api/ref/getBacklink2",- "handler": "getBacklink2",+ "path": "/api/repo/rollbackRepoSnapshotFile",+ "handler": "rollbackRepoSnapshotFile","body": "json","request": {- "$ref": "#/$defs/BacklinkListRequestInput"+ "$ref": "#/$defs/RollbackRepoSnapshotFileRequestInput"},"response": {"anyOf": [@@ -44176,17 +52599,7 @@]},"data": {- "anyOf": [- {- "$ref": "#/$defs/BacklinkList"- },- {- "$ref": "#/$defs/BacklinkRefDefs"- },- {- "type": "null"- }- ]+ "type": "null"},"msg": {"type": "string"@@ -44205,8 +52618,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -44225,19 +52637,6 @@},{"type": "null"- },- {- "anyOf": [- {- "$ref": "#/$defs/BacklinkList"- },- {- "$ref": "#/$defs/BacklinkRefDefs"- },- {- "type": "null"- }- ]}]},@@ -44257,11 +52656,11 @@},{"method": "POST",- "path": "/api/ref/getBacklinkDoc",- "handler": "getBacklinkDoc",+ "path": "/api/repo/searchRepoFile",+ "handler": "searchRepoFile","body": "json","request": {- "$ref": "#/$defs/BacklinkDocumentRequestInput"+ "$ref": "#/$defs/SearchRepoFileRequestInput"},"response": {"anyOf": [@@ -44275,7 +52674,7 @@]},"data": {- "$ref": "#/$defs/BacklinkContextData"+ "$ref": "#/$defs/RepoSearchData"},"msg": {"type": "string"@@ -44294,8 +52693,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -44333,11 +52731,11 @@},{"method": "POST",- "path": "/api/ref/getBackmentionDoc",- "handler": "getBackmentionDoc",+ "path": "/api/repo/setRepoIndexRetentionDays",+ "handler": "setRepoIndexRetentionDays","body": "json","request": {- "$ref": "#/$defs/BackmentionDocumentRequestInput"+ "$ref": "#/$defs/SetRepoIndexRetentionDaysRequestInput"},"response": {"anyOf": [@@ -44351,7 +52749,7 @@]},"data": {- "$ref": "#/$defs/BacklinkContextData"+ "type": "null"},"msg": {"type": "string"@@ -44370,8 +52768,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -44409,11 +52806,11 @@},{"method": "POST",- "path": "/api/ref/refreshBacklink",- "handler": "refreshBacklink",+ "path": "/api/repo/setRetentionIndexesDaily",+ "handler": "setRetentionIndexesDaily","body": "json","request": {- "$ref": "#/$defs/RefreshBacklinkRequestInput"+ "$ref": "#/$defs/SetRetentionIndexesDailyRequestInput"},"response": {"anyOf": [@@ -44484,11 +52881,11 @@},{"method": "POST",- "path": "/api/repo/checkSnapshot",- "handler": "checkSnapshot",- "body": "none",+ "path": "/api/repo/setSnapshotMemo",+ "handler": "setSnapshotMemo",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/SetSnapshotMemoRequestInput"},"response": {"anyOf": [@@ -44502,7 +52899,7 @@]},"data": {- "$ref": "#/$defs/CheckSnapshotData"+ "type": "null"},"msg": {"type": "string"@@ -44559,11 +52956,11 @@},{"method": "POST",- "path": "/api/repo/checkoutRepo",- "handler": "checkoutRepo",+ "path": "/api/repo/tagSnapshot",+ "handler": "tagSnapshot","body": "json","request": {- "$ref": "#/$defs/CheckoutRepoRequestInput"+ "$ref": "#/$defs/TagSnapshotRequestInput"},"response": {"anyOf": [@@ -44634,11 +53031,11 @@},{"method": "POST",- "path": "/api/repo/createSnapshot",- "handler": "createSnapshot",+ "path": "/api/repo/uploadCloudSnapshot",+ "handler": "uploadCloudSnapshot","body": "json","request": {- "$ref": "#/$defs/CreateSnapshotRequestInput"+ "$ref": "#/$defs/UploadCloudSnapshotRequestInput"},"response": {"anyOf": [@@ -44652,7 +53049,7 @@]},"data": {- "$ref": "#/$defs/CreateSnapshotData"+ "type": "null"},"msg": {"type": "string"@@ -44709,11 +53106,11 @@},{"method": "POST",- "path": "/api/repo/diffRepoSnapshots",- "handler": "diffRepoSnapshots",+ "path": "/api/riff/addRiffCards",+ "handler": "addRiffCards","body": "json","request": {- "$ref": "#/$defs/DiffRepoSnapshotsRequestInput"+ "$ref": "#/$defs/RiffDeckCardsRequestInput"},"response": {"anyOf": [@@ -44726,42 +53123,10 @@0]},- "data": {- "$ref": "#/$defs/RepoDiffData"- },- "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+ "$ref": "#/$defs/RiffDeck"},{"type": "null"@@ -44777,42 +53142,6 @@"msg","data"],- "additionalProperties": true- }- ]- }- },- {- "method": "POST",- "path": "/api/repo/downloadCloudSnapshot",- "handler": "downloadCloudSnapshot",- "body": "json",- "request": {- "$ref": "#/$defs/DownloadCloudSnapshotRequestInput"- },- "response": {- "anyOf": [- {- "type": "object",- "properties": {- "code": {- "type": "integer",- "enum": [- 0- ]- },- "data": {- "type": "null"- },- "msg": {- "type": "string"- }- },- "required": [- "code",- "msg",- "data"- ],"additionalProperties": false},{@@ -44859,11 +53188,11 @@},{"method": "POST",- "path": "/api/repo/exportRepoFile",- "handler": "exportRepoFile",+ "path": "/api/riff/batchSetRiffCardsDueTime",+ "handler": "batchSetRiffCardsDueTime","body": "json","request": {- "$ref": "#/$defs/ExportRepoFileRequestInput"+ "$ref": "#/$defs/SetRiffCardsDueRequestInput"},"response": {"anyOf": [@@ -44877,7 +53206,7 @@]},"data": {- "$ref": "#/$defs/RepoExportData"+ "type": "null"},"msg": {"type": "string"@@ -44934,11 +53263,11 @@},{"method": "POST",- "path": "/api/repo/getCloudRepoSnapshots",- "handler": "getCloudRepoSnapshots",+ "path": "/api/riff/createRiffDeck",+ "handler": "createRiffDeck","body": "json","request": {- "$ref": "#/$defs/GetCloudRepoSnapshotsRequestInput"+ "$ref": "#/$defs/CreateRiffDeckRequestInput"},"response": {"anyOf": [@@ -44951,42 +53280,10 @@0]},- "data": {- "$ref": "#/$defs/RepoCloudSnapshotsData"- },- "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+ "$ref": "#/$defs/RiffDeck"},{"type": "null"@@ -45002,42 +53299,6 @@"msg","data"],- "additionalProperties": true- }- ]- }- },- {- "method": "POST",- "path": "/api/repo/getCloudRepoTagSnapshots",- "handler": "getCloudRepoTagSnapshots",- "body": "none",- "request": {- "$ref": "#/$defs/EmptyRequestInput"- },- "response": {- "anyOf": [- {- "type": "object",- "properties": {- "code": {- "type": "integer",- "enum": [- 0- ]- },- "data": {- "$ref": "#/$defs/RepoCloudTagsData"- },- "msg": {- "type": "string"- }- },- "required": [- "code",- "msg",- "data"- ],"additionalProperties": false},{@@ -45084,11 +53345,11 @@},{"method": "POST",- "path": "/api/repo/getRepoDocHistory",- "handler": "getRepoDocHistory",+ "path": "/api/riff/getNotebookRiffCards",+ "handler": "getNotebookRiffCards","body": "json","request": {- "$ref": "#/$defs/GetRepoDocHistoryRequestInput"+ "$ref": "#/$defs/RiffCardsRequestInput"},"response": {"anyOf": [@@ -45102,7 +53363,7 @@]},"data": {- "$ref": "#/$defs/RepoDocHistoryData"+ "$ref": "#/$defs/RiffCardsData"},"msg": {"type": "string"@@ -45159,69 +53420,11 @@},{"method": "POST",- "path": "/api/repo/getRepoFile",- "handler": "getRepoFile",- "body": "json",- "request": {- "$ref": "#/$defs/GetRepoFileRequestInput"- },- "response": {- "anyOf": [- {- "type": "string",- "format": "binary"- },- {- "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": "binary",- "errorStatus": 200- },- {- "method": "POST",- "path": "/api/repo/getRepoSnapshots",- "handler": "getRepoSnapshots",+ "path": "/api/riff/getNotebookRiffDueCards",+ "handler": "getNotebookRiffDueCards","body": "json","request": {- "$ref": "#/$defs/GetRepoSnapshotsRequestInput"+ "$ref": "#/$defs/RiffNotebookDueCardsRequestInput"},"response": {"anyOf": [@@ -45235,7 +53438,7 @@]},"data": {- "$ref": "#/$defs/RepoSnapshotsData"+ "$ref": "#/$defs/RiffDueCardsData"},"msg": {"type": "string"@@ -45292,11 +53495,11 @@},{"method": "POST",- "path": "/api/repo/getRepoTagSnapshots",- "handler": "getRepoTagSnapshots",- "body": "none",+ "path": "/api/riff/getRiffCards",+ "handler": "getRiffCards",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/RiffCardsRequestInput"},"response": {"anyOf": [@@ -45310,7 +53513,7 @@]},"data": {- "$ref": "#/$defs/RepoTagsData"+ "$ref": "#/$defs/RiffCardsData"},"msg": {"type": "string"@@ -45367,11 +53570,11 @@},{"method": "POST",- "path": "/api/repo/importRepoKey",- "handler": "importRepoKey",+ "path": "/api/riff/getRiffCardsByBlockIDs",+ "handler": "getRiffCardsByBlockIDs","body": "json","request": {- "$ref": "#/$defs/ImportRepoKeyRequestInput"+ "$ref": "#/$defs/RiffBlockIDsRequestInput"},"response": {"anyOf": [@@ -45385,7 +53588,7 @@]},"data": {- "$ref": "#/$defs/RepoKeyData"+ "$ref": "#/$defs/RiffBlocksData"},"msg": {"type": "string"@@ -45442,8 +53645,8 @@},{"method": "POST",- "path": "/api/repo/initRepoKey",- "handler": "initRepoKey",+ "path": "/api/riff/getRiffDecks",+ "handler": "getRiffDecks","body": "none","request": {"$ref": "#/$defs/EmptyRequestInput"@@ -45460,7 +53663,17 @@]},"data": {- "$ref": "#/$defs/RepoKeyData"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/RiffDeck"+ },+ {+ "type": "null"+ }+ ]+ }},"msg": {"type": "string"@@ -45517,11 +53730,11 @@},{"method": "POST",- "path": "/api/repo/initRepoKeyFromPassphrase",- "handler": "initRepoKeyFromPassphrase",+ "path": "/api/riff/getRiffDueCards",+ "handler": "getRiffDueCards","body": "json","request": {- "$ref": "#/$defs/InitRepoKeyFromPassphraseRequestInput"+ "$ref": "#/$defs/RiffDueCardsRequestInput"},"response": {"anyOf": [@@ -45535,7 +53748,7 @@]},"data": {- "$ref": "#/$defs/RepoKeyData"+ "$ref": "#/$defs/RiffDueCardsData"},"msg": {"type": "string"@@ -45592,11 +53805,11 @@},{"method": "POST",- "path": "/api/repo/openRepoSnapshotFile",- "handler": "openRepoSnapshotFile",+ "path": "/api/riff/getTreeRiffCards",+ "handler": "getTreeRiffCards","body": "json","request": {- "$ref": "#/$defs/OpenRepoSnapshotFileRequestInput"+ "$ref": "#/$defs/RiffCardsRequestInput"},"response": {"anyOf": [@@ -45610,7 +53823,7 @@]},"data": {- "$ref": "#/$defs/RepoOpenFileData"+ "$ref": "#/$defs/RiffCardsData"},"msg": {"type": "string"@@ -45667,11 +53880,11 @@},{"method": "POST",- "path": "/api/repo/purgeCloudRepo",- "handler": "purgeCloudRepo",- "body": "none",+ "path": "/api/riff/getTreeRiffDueCards",+ "handler": "getTreeRiffDueCards",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/RiffTreeDueCardsRequestInput"},"response": {"anyOf": [@@ -45685,7 +53898,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/RiffDueCardsData"},"msg": {"type": "string"@@ -45742,11 +53955,11 @@},{"method": "POST",- "path": "/api/repo/purgeRepo",- "handler": "purgeRepo",- "body": "none",+ "path": "/api/riff/removeRiffCards",+ "handler": "removeRiffCards",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/RiffDeckCardsRequestInput"},"response": {"anyOf": [@@ -45760,7 +53973,14 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/RiffDeck"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -45817,11 +54037,11 @@},{"method": "POST",- "path": "/api/repo/removeCloudRepoTagSnapshot",- "handler": "removeCloudRepoTagSnapshot",+ "path": "/api/riff/removeRiffDeck",+ "handler": "removeRiffDeck","body": "json","request": {- "$ref": "#/$defs/RemoveCloudRepoTagSnapshotRequestInput"+ "$ref": "#/$defs/RiffDeckRequestInput"},"response": {"anyOf": [@@ -45892,11 +54112,11 @@},{"method": "POST",- "path": "/api/repo/removeRepoTagSnapshot",- "handler": "removeRepoTagSnapshot",+ "path": "/api/riff/renameRiffDeck",+ "handler": "renameRiffDeck","body": "json","request": {- "$ref": "#/$defs/RemoveRepoTagSnapshotRequestInput"+ "$ref": "#/$defs/RenameRiffDeckRequestInput"},"response": {"anyOf": [@@ -45967,11 +54187,11 @@},{"method": "POST",- "path": "/api/repo/resetRepo",- "handler": "resetRepo",- "body": "none",+ "path": "/api/riff/resetRiffCards",+ "handler": "resetRiffCards",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/ResetRiffCardsRequestInput"},"response": {"anyOf": [@@ -46042,11 +54262,11 @@},{"method": "POST",- "path": "/api/repo/rollbackRepoSnapshotFile",- "handler": "rollbackRepoSnapshotFile",+ "path": "/api/riff/reviewRiffCard",+ "handler": "reviewRiffCard","body": "json","request": {- "$ref": "#/$defs/RollbackRepoSnapshotFileRequestInput"+ "$ref": "#/$defs/ReviewRiffCardRequestInput"},"response": {"anyOf": [@@ -46117,11 +54337,11 @@},{"method": "POST",- "path": "/api/repo/searchRepoFile",- "handler": "searchRepoFile",+ "path": "/api/riff/skipReviewRiffCard",+ "handler": "skipReviewRiffCard","body": "json","request": {- "$ref": "#/$defs/SearchRepoFileRequestInput"+ "$ref": "#/$defs/RiffCardRequestInput"},"response": {"anyOf": [@@ -46135,7 +54355,7 @@]},"data": {- "$ref": "#/$defs/RepoSearchData"+ "type": "null"},"msg": {"type": "string"@@ -46192,11 +54412,11 @@},{"method": "POST",- "path": "/api/repo/setRepoIndexRetentionDays",- "handler": "setRepoIndexRetentionDays",+ "path": "/api/search/findReplace",+ "handler": "findReplace","body": "json","request": {- "$ref": "#/$defs/SetRepoIndexRetentionDaysRequestInput"+ "$ref": "#/$defs/FindReplaceRequestInput"},"response": {"anyOf": [@@ -46229,7 +54449,8 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1]},"data": {@@ -46267,11 +54488,11 @@},{"method": "POST",- "path": "/api/repo/setRetentionIndexesDaily",- "handler": "setRetentionIndexesDaily",+ "path": "/api/search/fullTextSearchAssetContent",+ "handler": "fullTextSearchAssetContent","body": "json","request": {- "$ref": "#/$defs/SetRetentionIndexesDailyRequestInput"+ "$ref": "#/$defs/SearchAssetContentRequestInput"},"response": {"anyOf": [@@ -46285,7 +54506,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/SearchAssetContentData"},"msg": {"type": "string"@@ -46342,11 +54563,11 @@},{"method": "POST",- "path": "/api/repo/setSnapshotMemo",- "handler": "setSnapshotMemo",+ "path": "/api/search/fullTextSearchBlock",+ "handler": "fullTextSearchBlock","body": "json","request": {- "$ref": "#/$defs/SetSnapshotMemoRequestInput"+ "$ref": "#/$defs/FullTextSearchBlockRequestInput"},"response": {"anyOf": [@@ -46360,7 +54581,14 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/FullTextSearchBlockData"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -46417,11 +54645,11 @@},{"method": "POST",- "path": "/api/repo/tagSnapshot",- "handler": "tagSnapshot",+ "path": "/api/search/getAssetContent",+ "handler": "getAssetContent","body": "json","request": {- "$ref": "#/$defs/TagSnapshotRequestInput"+ "$ref": "#/$defs/AssetContentRequestInput"},"response": {"anyOf": [@@ -46435,7 +54663,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/AssetContentData"},"msg": {"type": "string"@@ -46492,11 +54720,11 @@},{"method": "POST",- "path": "/api/repo/uploadCloudSnapshot",- "handler": "uploadCloudSnapshot",+ "path": "/api/search/getAssetContentByPath",+ "handler": "getAssetContentByPath","body": "json","request": {- "$ref": "#/$defs/UploadCloudSnapshotRequestInput"+ "$ref": "#/$defs/SearchPathRequestInput"},"response": {"anyOf": [@@ -46510,7 +54738,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/AssetContentData"},"msg": {"type": "string"@@ -46567,11 +54795,11 @@},{"method": "POST",- "path": "/api/riff/addRiffCards",- "handler": "addRiffCards",+ "path": "/api/search/getEmbedBlock",+ "handler": "getEmbedBlock","body": "json","request": {- "$ref": "#/$defs/RiffDeckCardsRequestInput"+ "$ref": "#/$defs/GetEmbedBlockRequestInput"},"response": {"anyOf": [@@ -46584,10 +54812,42 @@0]},+ "data": {+ "$ref": "#/$defs/EmbedBlocksData"+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": false+ },+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ -1+ ]+ },"data": {"anyOf": [{- "$ref": "#/$defs/RiffDeck"+ "type": "object",+ "properties": {+ "closeTimeout": {+ "type": "number"+ }+ },+ "required": [+ "closeTimeout"+ ],+ "additionalProperties": false},{"type": "null"@@ -46603,6 +54863,42 @@"msg","data"],+ "additionalProperties": true+ }+ ]+ }+ },+ {+ "method": "POST",+ "path": "/api/search/listInvalidBlockRefs",+ "handler": "listInvalidBlockRefs",+ "body": "json",+ "request": {+ "$ref": "#/$defs/SearchPageRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "$ref": "#/$defs/SearchBlocksData"+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],"additionalProperties": false},{@@ -46649,11 +54945,11 @@},{"method": "POST",- "path": "/api/riff/batchSetRiffCardsDueTime",- "handler": "batchSetRiffCardsDueTime",+ "path": "/api/search/removeTemplate",+ "handler": "removeTemplate","body": "json","request": {- "$ref": "#/$defs/SetRiffCardsDueRequestInput"+ "$ref": "#/$defs/SearchPathRequestInput"},"response": {"anyOf": [@@ -46724,11 +55020,11 @@},{"method": "POST",- "path": "/api/riff/createRiffDeck",- "handler": "createRiffDeck",+ "path": "/api/search/searchAsset",+ "handler": "searchAsset","body": "json","request": {- "$ref": "#/$defs/CreateRiffDeckRequestInput"+ "$ref": "#/$defs/SearchAssetRequestInput"},"response": {"anyOf": [@@ -46744,7 +55040,17 @@"data": {"anyOf": [{- "$ref": "#/$defs/RiffDeck"+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/SearchAsset"+ },+ {+ "type": "null"+ }+ ]+ }},{"type": "null"@@ -46806,11 +55112,11 @@},{"method": "POST",- "path": "/api/riff/getNotebookRiffCards",- "handler": "getNotebookRiffCards",+ "path": "/api/search/searchEmbedBlock",+ "handler": "searchEmbedBlock","body": "json","request": {- "$ref": "#/$defs/RiffCardsRequestInput"+ "$ref": "#/$defs/SearchEmbedBlockRequestInput"},"response": {"anyOf": [@@ -46824,7 +55130,7 @@]},"data": {- "$ref": "#/$defs/RiffCardsData"+ "$ref": "#/$defs/EmbedBlocksData"},"msg": {"type": "string"@@ -46881,11 +55187,11 @@},{"method": "POST",- "path": "/api/riff/getNotebookRiffDueCards",- "handler": "getNotebookRiffDueCards",+ "path": "/api/search/searchRefBlock",+ "handler": "searchRefBlock","body": "json","request": {- "$ref": "#/$defs/RiffNotebookDueCardsRequestInput"+ "$ref": "#/$defs/SearchRefBlockRequestInput"},"response": {"anyOf": [@@ -46899,7 +55205,14 @@]},"data": {- "$ref": "#/$defs/RiffDueCardsData"+ "anyOf": [+ {+ "$ref": "#/$defs/SearchRefResult"+ },+ {+ "$ref": "#/$defs/SearchRefCorrelation"+ }+ ]},"msg": {"type": "string"@@ -46937,6 +55250,16 @@},{"type": "null"+ },+ {+ "anyOf": [+ {+ "$ref": "#/$defs/SearchRefResult"+ },+ {+ "$ref": "#/$defs/SearchRefCorrelation"+ }+ ]}]},@@ -46956,11 +55279,11 @@},{"method": "POST",- "path": "/api/riff/getRiffCards",- "handler": "getRiffCards",+ "path": "/api/search/searchTag",+ "handler": "searchTag","body": "json","request": {- "$ref": "#/$defs/RiffCardsRequestInput"+ "$ref": "#/$defs/SearchTagRequestInput"},"response": {"anyOf": [@@ -46974,7 +55297,7 @@]},"data": {- "$ref": "#/$defs/RiffCardsData"+ "$ref": "#/$defs/SearchTagData"},"msg": {"type": "string"@@ -47031,11 +55354,11 @@},{"method": "POST",- "path": "/api/riff/getRiffCardsByBlockIDs",- "handler": "getRiffCardsByBlockIDs",+ "path": "/api/search/searchTemplate",+ "handler": "searchTemplate","body": "json","request": {- "$ref": "#/$defs/RiffBlockIDsRequestInput"+ "$ref": "#/$defs/SearchKeywordRequestInput"},"response": {"anyOf": [@@ -47049,7 +55372,7 @@]},"data": {- "$ref": "#/$defs/RiffBlocksData"+ "$ref": "#/$defs/SearchTemplateData"},"msg": {"type": "string"@@ -47106,11 +55429,11 @@},{"method": "POST",- "path": "/api/riff/getRiffDecks",- "handler": "getRiffDecks",- "body": "none",+ "path": "/api/search/searchWidget",+ "handler": "searchWidget",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/SearchKeywordRequestInput"},"response": {"anyOf": [@@ -47124,17 +55447,7 @@]},"data": {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/RiffDeck"- },- {- "type": "null"- }- ]- }+ "$ref": "#/$defs/SearchWidgetData"},"msg": {"type": "string"@@ -47191,11 +55504,11 @@},{"method": "POST",- "path": "/api/riff/getRiffDueCards",- "handler": "getRiffDueCards",+ "path": "/api/search/semanticSearchBlock",+ "handler": "semanticSearchBlock","body": "json","request": {- "$ref": "#/$defs/RiffDueCardsRequestInput"+ "$ref": "#/$defs/SearchBlockRequestInput"},"response": {"anyOf": [@@ -47209,7 +55522,7 @@]},"data": {- "$ref": "#/$defs/RiffDueCardsData"+ "$ref": "#/$defs/SearchBlocksData"},"msg": {"type": "string"@@ -47266,11 +55579,11 @@},{"method": "POST",- "path": "/api/riff/getTreeRiffCards",- "handler": "getTreeRiffCards",+ "path": "/api/search/updateEmbedBlock",+ "handler": "updateEmbedBlock","body": "json","request": {- "$ref": "#/$defs/RiffCardsRequestInput"+ "$ref": "#/$defs/UpdateEmbedBlockRequestInput"},"response": {"anyOf": [@@ -47284,7 +55597,7 @@]},"data": {- "$ref": "#/$defs/RiffCardsData"+ "type": "null"},"msg": {"type": "string"@@ -47341,11 +55654,11 @@},{"method": "POST",- "path": "/api/riff/getTreeRiffDueCards",- "handler": "getTreeRiffDueCards",+ "path": "/api/setting/addVirtualBlockRefExclude",+ "handler": "addVirtualBlockRefExclude","body": "json","request": {- "$ref": "#/$defs/RiffTreeDueCardsRequestInput"+ "$ref": "#/$defs/VirtualBlockRefRequestInput"},"response": {"anyOf": [@@ -47359,7 +55672,7 @@]},"data": {- "$ref": "#/$defs/RiffDueCardsData"+ "type": "null"},"msg": {"type": "string"@@ -47416,11 +55729,11 @@},{"method": "POST",- "path": "/api/riff/removeRiffCards",- "handler": "removeRiffCards",+ "path": "/api/setting/addVirtualBlockRefInclude",+ "handler": "addVirtualBlockRefInclude","body": "json","request": {- "$ref": "#/$defs/RiffDeckCardsRequestInput"+ "$ref": "#/$defs/VirtualBlockRefRequestInput"},"response": {"anyOf": [@@ -47433,10 +55746,42 @@0]},+ "data": {+ "type": "null"+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],+ "additionalProperties": false+ },+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ -1+ ]+ },"data": {"anyOf": [{- "$ref": "#/$defs/RiffDeck"+ "type": "object",+ "properties": {+ "closeTimeout": {+ "type": "number"+ }+ },+ "required": [+ "closeTimeout"+ ],+ "additionalProperties": false},{"type": "null"@@ -47452,6 +55797,42 @@"msg","data"],+ "additionalProperties": true+ }+ ]+ }+ },+ {+ "method": "POST",+ "path": "/api/setting/getBootAppearances",+ "handler": "getBootAppearances",+ "body": "none",+ "request": {+ "$ref": "#/$defs/EmptyRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "type": "object",+ "properties": {+ "code": {+ "type": "integer",+ "enum": [+ 0+ ]+ },+ "data": {+ "$ref": "#/$defs/SettingBootAppearancesData"+ },+ "msg": {+ "type": "string"+ }+ },+ "required": [+ "code",+ "msg",+ "data"+ ],"additionalProperties": false},{@@ -47498,11 +55879,11 @@},{"method": "POST",- "path": "/api/riff/removeRiffDeck",- "handler": "removeRiffDeck",+ "path": "/api/setting/getCloudUser",+ "handler": "getCloudUser","body": "json","request": {- "$ref": "#/$defs/RiffDeckRequestInput"+ "$ref": "#/$defs/SettingCloudUserRequestInput"},"response": {"anyOf": [@@ -47516,7 +55897,14 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/SettingUser"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -47535,7 +55923,9 @@"code": {"type": "integer","enum": [- -1+ -1,+ 1,+ 255]},"data": {@@ -47554,6 +55944,16 @@},{"type": "null"+ },+ {+ "anyOf": [+ {+ "$ref": "#/$defs/SettingUser"+ },+ {+ "type": "null"+ }+ ]}]},@@ -47573,11 +55973,11 @@},{"method": "POST",- "path": "/api/riff/renameRiffDeck",- "handler": "renameRiffDeck",- "body": "json",+ "path": "/api/setting/getPandocBin",+ "handler": "getPandocBin",+ "body": "none","request": {- "$ref": "#/$defs/RenameRiffDeckRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -47591,7 +55991,7 @@]},"data": {- "type": "null"+ "type": "string"},"msg": {"type": "string"@@ -47648,11 +56048,11 @@},{"method": "POST",- "path": "/api/riff/resetRiffCards",- "handler": "resetRiffCards",- "body": "json",+ "path": "/api/setting/getPublish",+ "handler": "getPublish",+ "body": "none","request": {- "$ref": "#/$defs/ResetRiffCardsRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -47666,7 +56066,7 @@]},"data": {- "type": "null"+ "$ref": "#/$defs/SettingPublishData"},"msg": {"type": "string"@@ -47719,15 +56119,71 @@"additionalProperties": true}]- }+ }+ },+ {+ "method": "POST",+ "path": "/api/setting/login2faCloudUser",+ "handler": "login2faCloudUser",+ "body": "json",+ "request": {+ "$ref": "#/$defs/SettingLogin2faRequestInput"+ },+ "response": {+ "anyOf": [+ {+ "$ref": "#/$defs/Login2faEnvelope"+ },+ {+ "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": "directJSON"},{"method": "POST",- "path": "/api/riff/reviewRiffCard",- "handler": "reviewRiffCard",- "body": "json",+ "path": "/api/setting/logoutCloudUser",+ "handler": "logoutCloudUser",+ "body": "none","request": {- "$ref": "#/$defs/ReviewRiffCardRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -47798,11 +56254,11 @@},{"method": "POST",- "path": "/api/riff/skipReviewRiffCard",- "handler": "skipReviewRiffCard",- "body": "json",+ "path": "/api/setting/refreshVirtualBlockRef",+ "handler": "refreshVirtualBlockRef",+ "body": "none","request": {- "$ref": "#/$defs/RiffCardRequestInput"+ "$ref": "#/$defs/EmptyRequestInput"},"response": {"anyOf": [@@ -47873,11 +56329,11 @@},{"method": "POST",- "path": "/api/search/findReplace",- "handler": "findReplace",+ "path": "/api/setting/setAI",+ "handler": "setAI","body": "json","request": {- "$ref": "#/$defs/FindReplaceRequestInput"+ "$ref": "#/$defs/SetAIRequestInput"},"response": {"anyOf": [@@ -47891,7 +56347,14 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/SettingAI"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -47910,8 +56373,7 @@"code": {"type": "integer","enum": [- -1,- 1+ -1]},"data": {@@ -47949,11 +56411,11 @@},{"method": "POST",- "path": "/api/search/fullTextSearchAssetContent",- "handler": "fullTextSearchAssetContent",+ "path": "/api/setting/setAppearance",+ "handler": "setAppearance","body": "json","request": {- "$ref": "#/$defs/SearchAssetContentRequestInput"+ "$ref": "#/$defs/SetAppearanceRequestInput"},"response": {"anyOf": [@@ -47967,7 +56429,14 @@]},"data": {- "$ref": "#/$defs/SearchAssetContentData"+ "anyOf": [+ {+ "$ref": "#/$defs/SettingAppearance"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -48024,11 +56493,11 @@},{"method": "POST",- "path": "/api/search/fullTextSearchBlock",- "handler": "fullTextSearchBlock",+ "path": "/api/setting/setBazaar",+ "handler": "setBazaar","body": "json","request": {- "$ref": "#/$defs/FullTextSearchBlockRequestInput"+ "$ref": "#/$defs/SetBazaarRequestInput"},"response": {"anyOf": [@@ -48044,7 +56513,7 @@"data": {"anyOf": [{- "$ref": "#/$defs/FullTextSearchBlockData"+ "$ref": "#/$defs/SettingBazaar"},{"type": "null"@@ -48106,11 +56575,11 @@},{"method": "POST",- "path": "/api/search/getAssetContent",- "handler": "getAssetContent",+ "path": "/api/setting/setBazaarPetalDisabled",+ "handler": "setBazaarPetalDisabled","body": "json","request": {- "$ref": "#/$defs/AssetContentRequestInput"+ "$ref": "#/$defs/SettingPetalDisabledRequestInput"},"response": {"anyOf": [@@ -48124,7 +56593,7 @@]},"data": {- "$ref": "#/$defs/AssetContentData"+ "$ref": "#/$defs/SettingPetalDisabledData"},"msg": {"type": "string"@@ -48181,11 +56650,11 @@},{"method": "POST",- "path": "/api/search/getAssetContentByPath",- "handler": "getAssetContentByPath",+ "path": "/api/setting/setBootAppearance",+ "handler": "setBootAppearance","body": "json","request": {- "$ref": "#/$defs/SearchPathRequestInput"+ "$ref": "#/$defs/SettingBootAppearanceRequestInput"},"response": {"anyOf": [@@ -48199,7 +56668,14 @@]},"data": {- "$ref": "#/$defs/AssetContentData"+ "anyOf": [+ {+ "$ref": "#/$defs/SettingBootAppearanceSelection"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -48256,11 +56732,11 @@},{"method": "POST",- "path": "/api/search/getEmbedBlock",- "handler": "getEmbedBlock",+ "path": "/api/setting/setEditor",+ "handler": "setEditor","body": "json","request": {- "$ref": "#/$defs/GetEmbedBlockRequestInput"+ "$ref": "#/$defs/SetEditorRequestInput"},"response": {"anyOf": [@@ -48274,7 +56750,14 @@]},"data": {- "$ref": "#/$defs/EmbedBlocksData"+ "anyOf": [+ {+ "$ref": "#/$defs/SettingEditor"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -48331,11 +56814,11 @@},{"method": "POST",- "path": "/api/search/listInvalidBlockRefs",- "handler": "listInvalidBlockRefs",+ "path": "/api/setting/setEditorReadOnly",+ "handler": "setEditorReadOnly","body": "json","request": {- "$ref": "#/$defs/SearchPageRequestInput"+ "$ref": "#/$defs/EditorReadOnlyRequestInput"},"response": {"anyOf": [@@ -48349,7 +56832,7 @@]},"data": {- "$ref": "#/$defs/SearchBlocksData"+ "type": "null"},"msg": {"type": "string"@@ -48406,11 +56889,11 @@},{"method": "POST",- "path": "/api/search/removeTemplate",- "handler": "removeTemplate",+ "path": "/api/setting/setEmoji",+ "handler": "setEmoji","body": "json","request": {- "$ref": "#/$defs/SearchPathRequestInput"+ "$ref": "#/$defs/SettingEmojiRequestInput"},"response": {"anyOf": [@@ -48481,11 +56964,11 @@},{"method": "POST",- "path": "/api/search/searchAsset",- "handler": "searchAsset",+ "path": "/api/setting/setEntryVisibility",+ "handler": "setEntryVisibility","body": "json","request": {- "$ref": "#/$defs/SearchAssetRequestInput"+ "$ref": "#/$defs/SetEntryVisibilityRequestInput"},"response": {"anyOf": [@@ -48501,17 +56984,7 @@"data": {"anyOf": [{- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/SearchAsset"- },- {- "type": "null"- }- ]- }+ "$ref": "#/$defs/SettingEntryVisibility"},{"type": "null"@@ -48573,11 +57046,11 @@},{"method": "POST",- "path": "/api/search/searchEmbedBlock",- "handler": "searchEmbedBlock",+ "path": "/api/setting/setExport",+ "handler": "setExport","body": "json","request": {- "$ref": "#/$defs/SearchEmbedBlockRequestInput"+ "$ref": "#/$defs/SetExportRequestInput"},"response": {"anyOf": [@@ -48591,7 +57064,14 @@]},"data": {- "$ref": "#/$defs/EmbedBlocksData"+ "anyOf": [+ {+ "$ref": "#/$defs/SettingExport"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -48648,11 +57128,11 @@},{"method": "POST",- "path": "/api/search/searchRefBlock",- "handler": "searchRefBlock",+ "path": "/api/setting/setFiletree",+ "handler": "setFiletree","body": "json","request": {- "$ref": "#/$defs/SearchRefBlockRequestInput"+ "$ref": "#/$defs/SetFiletreeRequestInput"},"response": {"anyOf": [@@ -48668,10 +57148,10 @@"data": {"anyOf": [{- "$ref": "#/$defs/SearchRefResult"+ "$ref": "#/$defs/SettingFileTree"},{- "$ref": "#/$defs/SearchRefCorrelation"+ "type": "null"}]},@@ -48711,16 +57191,6 @@},{"type": "null"- },- {- "anyOf": [- {- "$ref": "#/$defs/SearchRefResult"- },- {- "$ref": "#/$defs/SearchRefCorrelation"- }- ]}]},@@ -48740,11 +57210,11 @@},{"method": "POST",- "path": "/api/search/searchTag",- "handler": "searchTag",+ "path": "/api/setting/setFlashcard",+ "handler": "setFlashcard","body": "json","request": {- "$ref": "#/$defs/SearchTagRequestInput"+ "$ref": "#/$defs/SetFlashcardRequestInput"},"response": {"anyOf": [@@ -48758,7 +57228,14 @@]},"data": {- "$ref": "#/$defs/SearchTagData"+ "anyOf": [+ {+ "$ref": "#/$defs/SettingFlashcard"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -48815,11 +57292,11 @@},{"method": "POST",- "path": "/api/search/searchTemplate",- "handler": "searchTemplate",+ "path": "/api/setting/setIcon",+ "handler": "setIcon","body": "json","request": {- "$ref": "#/$defs/SearchKeywordRequestInput"+ "$ref": "#/$defs/SettingIconRequestInput"},"response": {"anyOf": [@@ -48833,7 +57310,7 @@]},"data": {- "$ref": "#/$defs/SearchTemplateData"+ "type": "null"},"msg": {"type": "string"@@ -48890,11 +57367,11 @@},{"method": "POST",- "path": "/api/search/searchWidget",- "handler": "searchWidget",+ "path": "/api/setting/setKeymap",+ "handler": "setKeymap","body": "json","request": {- "$ref": "#/$defs/SearchKeywordRequestInput"+ "$ref": "#/$defs/SettingKeymapRequestInput"},"response": {"anyOf": [@@ -48908,7 +57385,7 @@]},"data": {- "$ref": "#/$defs/SearchWidgetData"+ "type": "null"},"msg": {"type": "string"@@ -48965,11 +57442,11 @@},{"method": "POST",- "path": "/api/search/semanticSearchBlock",- "handler": "semanticSearchBlock",+ "path": "/api/setting/setPublish",+ "handler": "setPublish","body": "json","request": {- "$ref": "#/$defs/SearchBlockRequestInput"+ "$ref": "#/$defs/SetPublishRequestInput"},"response": {"anyOf": [@@ -48983,7 +57460,7 @@]},"data": {- "$ref": "#/$defs/SearchBlocksData"+ "$ref": "#/$defs/SettingPublishData"},"msg": {"type": "string"@@ -49040,11 +57517,11 @@},{"method": "POST",- "path": "/api/search/updateEmbedBlock",- "handler": "updateEmbedBlock",+ "path": "/api/setting/setSearch",+ "handler": "setSearch","body": "json","request": {- "$ref": "#/$defs/UpdateEmbedBlockRequestInput"+ "$ref": "#/$defs/SetSearchRequestInput"},"response": {"anyOf": [@@ -49058,7 +57535,14 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/SettingSearch"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -49115,11 +57599,11 @@},{"method": "POST",- "path": "/api/setting/addVirtualBlockRefExclude",- "handler": "addVirtualBlockRefExclude",+ "path": "/api/setting/setSecrets",+ "handler": "setSecrets","body": "json","request": {- "$ref": "#/$defs/VirtualBlockRefRequestInput"+ "$ref": "#/$defs/SetSecretsRequestInput"},"response": {"anyOf": [@@ -49133,7 +57617,14 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/SettingSecrets"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"@@ -49190,11 +57681,11 @@},{"method": "POST",- "path": "/api/setting/addVirtualBlockRefInclude",- "handler": "addVirtualBlockRefInclude",+ "path": "/api/setting/setSnippet",+ "handler": "setConfSnippet","body": "json","request": {- "$ref": "#/$defs/VirtualBlockRefRequestInput"+ "$ref": "#/$defs/SetConfSnippetRequestInput"},"response": {"anyOf": [@@ -49207,42 +57698,10 @@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+ "$ref": "#/$defs/SettingSnpt"},{"type": "null"@@ -49258,42 +57717,6 @@"msg","data"],- "additionalProperties": true- }- ]- }- },- {- "method": "POST",- "path": "/api/setting/getPandocBin",- "handler": "getPandocBin",- "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},{@@ -49340,11 +57763,11 @@},{"method": "POST",- "path": "/api/setting/refreshVirtualBlockRef",- "handler": "refreshVirtualBlockRef",- "body": "none",+ "path": "/api/setting/setTheme",+ "handler": "setTheme",+ "body": "json","request": {- "$ref": "#/$defs/EmptyRequestInput"+ "$ref": "#/$defs/SettingThemeRequestInput"},"response": {"anyOf": [@@ -49415,11 +57838,11 @@},{"method": "POST",- "path": "/api/setting/setEditorReadOnly",- "handler": "setEditorReadOnly",+ "path": "/api/setting/setVariables",+ "handler": "setVariables","body": "json","request": {- "$ref": "#/$defs/EditorReadOnlyRequestInput"+ "$ref": "#/$defs/SetVariablesRequestInput"},"response": {"anyOf": [@@ -49433,7 +57856,14 @@]},"data": {- "type": "null"+ "anyOf": [+ {+ "$ref": "#/$defs/SettingVariables"+ },+ {+ "type": "null"+ }+ ]},"msg": {"type": "string"diff --git a/kernel/apicontract/setting.go b/kernel/apicontract/setting.gonew file mode 100644index 0000000000..1b8a8da981--- /dev/null+++ b/kernel/apicontract/setting.go@@ -0,0 +1,514 @@+package apicontract++type SettingSnpt struct {+ EnabledCSS bool `json:"enabledCSS" api:"optional,nullable"`+ EnabledJS bool `json:"enabledJS" api:"optional,nullable"`+}++type SettingBazaar struct {+ Trust bool `json:"trust" api:"optional,nullable"`+ PetalDisabled bool `json:"petalDisabled" api:"optional,nullable"`+}++type SettingAI struct {+ MCP *SettingMCP `json:"mcp" api:"optional,nullable"`+ Embedding *SettingEmbedding `json:"embedding" api:"optional,nullable"`+ Rerank *SettingRerank `json:"rerank" api:"optional,nullable"`+ Agent *SettingAgent `json:"agent" api:"optional,nullable"`+ Editing *SettingEditing `json:"editing" api:"optional,nullable"`+ ImageGeneration *SettingImageGeneration `json:"imageGeneration" api:"optional,nullable"`+ Providers []*SettingProvider `json:"providers" api:"optional,nullable"`+}++type SettingMCP struct {+ Servers []SettingMCPServer `json:"servers" api:"optional,nullable"`+ ExposurePolicy *SettingCapabilityPolicy `json:"exposurePolicy" api:"optional,nullable"`+}++type SettingMCPServer struct {+ ID string `json:"id" api:"optional,nullable"`+ Name string `json:"name" api:"optional,nullable"`+ Enabled bool `json:"enabled" api:"optional,nullable"`+ Type string `json:"type" api:"optional,nullable"`+ Command string `json:"command" api:"optional,nullable"`+ Args []string `json:"args" api:"optional,nullable"`+ InheritEnv []string `json:"inheritEnv" api:"optional,nullable"`+ Env map[string]string `json:"env" api:"optional,nullable"`+ URL string `json:"url" api:"optional,nullable"`+ Headers map[string]string `json:"headers" api:"optional,nullable"`+ Timeout int `json:"timeout" api:"optional,nullable"`+ DisableStandaloneSSE bool `json:"disableStandaloneSSE" api:"optional,nullable"`+ TrustToolAnnotations bool `json:"trustToolAnnotations" api:"optional,nullable"`+}++type SettingCapabilityPolicy struct {+ Default string `json:"default" api:"optional,nullable"`+ Overrides map[string]string `json:"overrides" api:"optional,nullable"`+}++type SettingEmbedding struct {+ ID string `json:"id" api:"optional,nullable"`+ Enabled bool `json:"enabled" api:"optional,nullable"`+ APIKey string `json:"apiKey" api:"optional,nullable"`+ BaseURL string `json:"baseURL" api:"optional,nullable"`+ Name string `json:"name" api:"optional,nullable"`+ Timeout int `json:"timeout" api:"optional,nullable"`+ Dimensions int `json:"dimensions" api:"optional,nullable"`+}++type SettingRerank struct {+ ID string `json:"id" api:"optional,nullable"`+ Enabled bool `json:"enabled" api:"optional,nullable"`+ APIKey string `json:"apiKey" api:"optional,nullable"`+ Endpoint string `json:"endpoint" api:"optional,nullable"`+ Name string `json:"name" api:"optional,nullable"`+ RequestFormat string `json:"requestFormat" api:"optional,nullable"`+ Timeout int `json:"timeout" api:"optional,nullable"`+ CandidateCount int `json:"candidateCount" api:"optional,nullable"`+}++type SettingAgent struct {+ ModelID string `json:"modelId" api:"optional,nullable"`+ SessionTimeout int `json:"sessionTimeout" api:"optional,nullable"`+ StreamIdleTimeout int `json:"streamIdleTimeout" api:"optional,nullable"`+ ConfirmTimeout int `json:"confirmTimeout" api:"optional,nullable"`+ MaxRetries int `json:"maxRetries" api:"optional,nullable"`+ Temperature float64 `json:"temperature" api:"optional,nullable"`+ MaxCompletionTokens int `json:"maxCompletionTokens" api:"optional,nullable"`+ MaxToolCallRounds int `json:"maxToolCallRounds" api:"optional,nullable"`+ CapabilityPolicy *SettingCapabilityPolicy `json:"capabilityPolicy" api:"optional,nullable"`+ ApprovalPolicy *SettingApprovalPolicy `json:"approvalPolicy" api:"optional,nullable"`+ Skills *SettingAgentSkills `json:"skills" api:"optional,nullable"`+}++type SettingApprovalPolicy struct {+ Default string `json:"default" api:"optional,nullable"`+ Overrides map[string]*SettingCapabilityApproval `json:"overrides" api:"optional,nullable"`+}++type SettingCapabilityApproval struct {+ Default string `json:"default" api:"optional,nullable"`+ Actions map[string]string `json:"actions" api:"optional,nullable"`+}++type SettingAgentSkills struct {+ UserEnabled []string `json:"userEnabled" api:"optional,nullable"`+}++type SettingEditing struct {+ ModelID string `json:"modelId" api:"optional,nullable"`+ MaxHistoryMessages int `json:"maxHistoryMessages" api:"optional,nullable"`+ Temperature float64 `json:"temperature" api:"optional,nullable"`+ MaxCompletionTokens int `json:"maxCompletionTokens" api:"optional,nullable"`+}++type SettingImageGeneration struct {+ ModelID string `json:"modelId" api:"optional,nullable"`+ RequestTimeout int `json:"requestTimeout" api:"optional,nullable"`+ Size string `json:"size" api:"optional,nullable"`+ Quality string `json:"quality" api:"optional,nullable"`+ OutputFormat string `json:"outputFormat" api:"optional,nullable"`+}++type SettingProvider struct {+ Headers map[string]string `json:"headers,omitempty" api:"optional,nullable"`+ ID string `json:"id" api:"optional,nullable"`+ DisplayName string `json:"displayName,omitempty" api:"optional,nullable"`+ Enabled bool `json:"enabled" api:"optional,nullable"`+ APIKey string `json:"apiKey" api:"optional,nullable"`+ BaseURL string `json:"baseURL" api:"optional,nullable"`+ Protocol string `json:"protocol,omitempty" api:"optional,nullable"`+ RequestTimeout int `json:"requestTimeout" api:"optional,nullable"`+ Models []*SettingModel `json:"models" api:"optional,nullable"`+}++type SettingModel struct {+ ID string `json:"id" api:"optional,nullable"`+ DisplayName string `json:"displayName,omitempty" api:"optional,nullable"`+ Enabled bool `json:"enabled" api:"optional,nullable"`+ Name string `json:"name" api:"optional,nullable"`+ ContextLength int `json:"contextLength,omitempty" api:"optional,nullable"`+}++type SettingSecrets struct {+ Items []*SettingSecret `json:"items" api:"optional,nullable"`+}++type SettingSecret struct {+ Name string `json:"name" api:"optional,nullable"`+ Value string `json:"value" api:"optional,nullable"`+ AllowedHosts []string `json:"allowedHosts" api:"optional,nullable"`+}++type SettingVariables struct {+ Items []*SettingVariable `json:"items" api:"optional,nullable"`+}++type SettingVariable struct {+ Name string `json:"name" api:"optional,nullable"`+ Value string `json:"value" api:"optional,nullable"`+}++type SettingFlashcard struct {+ NewCardLimit int `json:"newCardLimit" api:"optional,nullable"`+ ReviewCardLimit int `json:"reviewCardLimit" api:"optional,nullable"`+ Mark bool `json:"mark" api:"optional,nullable"`+ List bool `json:"list" api:"optional,nullable"`+ Blockquote bool `json:"blockquote" api:"optional,nullable"`+ Callout bool `json:"callout" api:"optional,nullable"`+ SuperBlock bool `json:"superBlock" api:"optional,nullable"`+ Heading bool `json:"heading" api:"optional,nullable"`+ Deck bool `json:"deck" api:"optional,nullable"`+ ReviewMode int `json:"reviewMode" api:"optional,nullable"`+ RequestRetention float64 `json:"requestRetention" api:"optional,nullable"`+ MaximumInterval int `json:"maximumInterval" api:"optional,nullable"`+ Weights string `json:"weights" api:"optional,nullable"`+}++type SettingEditor struct {+ AllowSVGScript bool `json:"allowSVGScript" api:"optional,nullable"`+ AllowHTMLBLockScript bool `json:"allowHTMLBLockScript" api:"optional,nullable"`+ CursorSurroundingLines int `json:"cursorSurroundingLines" api:"optional,nullable"`+ FontSize int `json:"fontSize" api:"optional,nullable"`+ FontSizeScrollZoom bool `json:"fontSizeScrollZoom" api:"optional,nullable"`+ FontFamily string `json:"fontFamily" api:"optional,nullable"`+ FontWeight int `json:"fontWeight" api:"optional,nullable"`+ FontFamilyDisplay string `json:"fontFamilyDisplay" api:"optional,nullable"`+ FontFamilies []*SettingEditorFont `json:"fontFamilies" api:"optional,nullable"`+ CodeFontFamilies []*SettingEditorFont `json:"codeFontFamilies" api:"optional,nullable"`+ CodeSyntaxHighlightLineNum bool `json:"codeSyntaxHighlightLineNum" api:"optional,nullable"`+ CodeTabSpaces int `json:"codeTabSpaces" api:"optional,nullable"`+ CodeLineWrap bool `json:"codeLineWrap" api:"optional,nullable"`+ CodeLigatures bool `json:"codeLigatures" api:"optional,nullable"`+ DisplayBookmarkIcon bool `json:"displayBookmarkIcon" api:"optional,nullable"`+ DisplayNetImgMark bool `json:"displayNetImgMark" api:"optional,nullable"`+ DatabaseAttrShow *bool `json:"databaseAttrShow" api:"optional,nullable"`+ DatabaseAttrClickMode int `json:"databaseAttrClickMode" api:"optional,nullable"`+ DatabaseAttrViewMode int `json:"databaseAttrViewMode" api:"optional,nullable"`+ DatabaseAttrHideEmpty bool `json:"databaseAttrHideEmpty" api:"optional,nullable"`+ DatabaseAttrUseTabs *bool `json:"databaseAttrUseTabs" api:"optional,nullable"`+ GenerateHistoryInterval int `json:"generateHistoryInterval" api:"optional,nullable"`+ HistoryRetentionDays int `json:"historyRetentionDays" api:"optional,nullable"`+ Emoji []string `json:"emoji" api:"optional,nullable"`+ VirtualBlockRef bool `json:"virtualBlockRef" api:"optional,nullable"`+ VirtualBlockRefExclude string `json:"virtualBlockRefExclude" api:"optional,nullable"`+ VirtualBlockRefInclude string `json:"virtualBlockRefInclude" api:"optional,nullable"`+ CheckBlockRef *bool `json:"checkBlockRef" api:"optional,nullable"`+ BlockRefDynamicAnchorTextMaxLen int `json:"blockRefDynamicAnchorTextMaxLen" api:"optional,nullable"`+ AssetOpen *SettingAssetOpen `json:"assetOpen" api:"optional,nullable"`+ PlantUMLServePath string `json:"plantUMLServePath" api:"optional,nullable"`+ FullWidth bool `json:"fullWidth" api:"optional,nullable"`+ KaTexMacros string `json:"katexMacros" api:"optional,nullable"`+ ReadOnly bool `json:"readOnly" api:"optional,nullable"`+ EmbedBlockBreadcrumb bool `json:"embedBlockBreadcrumb" api:"optional,nullable"`+ ListLogicalOutdent bool `json:"listLogicalOutdent" api:"optional,nullable"`+ ListItemDotNumberClickFocus bool `json:"listItemDotNumberClickFocus" api:"optional,nullable"`+ FloatWindowMode int `json:"floatWindowMode" api:"optional,nullable"`+ FloatWindowDelay *int `json:"floatWindowDelay" api:"optional,nullable"`+ KeepLoadedContent bool `json:"keepLoadedContent" api:"optional,nullable"`+ DynamicLoadBlocks int `json:"dynamicLoadBlocks" api:"optional,nullable"`+ Justify bool `json:"justify" api:"optional,nullable"`+ RTL bool `json:"rtl" api:"optional,nullable"`+ Spellcheck bool `json:"spellcheck" api:"optional,nullable"`+ SpellcheckLanguages []string `json:"spellcheckLanguages" api:"optional,nullable"`+ HashTagSearch *bool `json:"hashTagSearch" api:"optional,nullable"`+ OnlySearchForDoc bool `json:"onlySearchForDoc" api:"optional,nullable"`+ BacklinkExpandCount int `json:"backlinkExpandCount" api:"optional,nullable"`+ BackmentionExpandCount int `json:"backmentionExpandCount" api:"optional,nullable"`+ BacklinkMentionExclude string `json:"backlinkMentionExclude" api:"optional,nullable"`+ BacklinkContainChildren bool `json:"backlinkContainChildren" api:"optional,nullable"`+ BacklinkHideReference bool `json:"backlinkHideReference" api:"optional,nullable"`+ BacklinkShowBottom bool `json:"backlinkShowBottom" api:"optional,nullable"`+ BacklinkSort *int `json:"backlinkSort" api:"optional,nullable"`+ BackmentionSort *int `json:"backmentionSort" api:"optional,nullable"`+ HeadingNumber bool `json:"headingNumber" api:"optional,nullable"`+ HeadingNumberFormat string `json:"headingNumberFormat" api:"optional,nullable"`+ HeadingEmbedMode int `json:"headingEmbedMode" api:"optional,nullable"`+ PasteURLAutoConvert bool `json:"pasteURLAutoConvert" api:"optional,nullable"`+ DragHTMLFileToIframe bool `json:"dragHTMLFileToIframe" api:"optional,nullable"`+ Markdown *SettingMarkdown `json:"markdown" api:"optional,nullable"`+}++type SettingEditorFont struct {+ Family string `json:"family" api:"optional,nullable"`+ Weight int `json:"weight" api:"optional,nullable"`+ DisplayName string `json:"displayName" api:"optional,nullable"`+}++type SettingAssetOpen struct {+ Click string `json:"click" api:"optional,nullable"`+ CtrlClick string `json:"ctrlClick" api:"optional,nullable"`+ AltClick string `json:"altClick" api:"optional,nullable"`+ ShiftClick string `json:"shiftClick" api:"optional,nullable"`+}++type SettingMarkdown struct {+ InlineAsterisk bool `json:"inlineAsterisk" api:"optional,nullable"`+ InlineUnderscore bool `json:"inlineUnderscore" api:"optional,nullable"`+ InlineSup bool `json:"inlineSup" api:"optional,nullable"`+ InlineSub bool `json:"inlineSub" api:"optional,nullable"`+ InlineTag bool `json:"inlineTag" api:"optional,nullable"`+ InlineMath bool `json:"inlineMath" api:"optional,nullable"`+ InlineStrikethrough bool `json:"inlineStrikethrough" api:"optional,nullable"`+ InlineFullWidthStrikethrough bool `json:"inlineFullWidthStrikethrough" api:"optional,nullable"`+ BlockFullWidthTaskList *bool `json:"blockFullWidthTaskList" api:"optional,nullable"`+ InlineMark bool `json:"inlineMark" api:"optional,nullable"`+ CodeBlockMiddleDot *bool `json:"codeBlockMiddleDot" api:"optional,nullable"`+}++type SettingExport struct {+ ParagraphBeginningSpace bool `json:"paragraphBeginningSpace" api:"optional,nullable"`+ AddTitle bool `json:"addTitle" api:"optional,nullable"`+ BlockRefMode int `json:"blockRefMode" api:"optional,nullable"`+ BlockEmbedMode int `json:"blockEmbedMode" api:"optional,nullable"`+ BlockRefTextLeft string `json:"blockRefTextLeft" api:"optional,nullable"`+ BlockRefTextRight string `json:"blockRefTextRight" api:"optional,nullable"`+ TagOpenMarker string `json:"tagOpenMarker" api:"optional,nullable"`+ TagCloseMarker string `json:"tagCloseMarker" api:"optional,nullable"`+ FileAnnotationRefMode int `json:"fileAnnotationRefMode" api:"optional,nullable"`+ PandocBin string `json:"pandocBin" api:"optional,nullable"`+ PandocParams string `json:"pandocParams" api:"optional,nullable"`+ DocxTemplate string `json:"docxTemplate" api:"optional,nullable"`+ RemoveAssetsID bool `json:"removeAssetsID" api:"optional,nullable"`+ MarkdownYFM bool `json:"markdownYFM" api:"optional,nullable"`+ InlineMemo bool `json:"inlineMemo" api:"optional,nullable"`+ IncludeSubDocs bool `json:"includeSubDocs" api:"optional,nullable"`+ IncludeRelatedDocs bool `json:"includeRelatedDocs" api:"optional,nullable"`+ PDFFooter string `json:"pdfFooter" api:"optional,nullable"`+ PDFWatermarkStr string `json:"pdfWatermarkStr" api:"optional,nullable"`+ PDFWatermarkDesc string `json:"pdfWatermarkDesc" api:"optional,nullable"`+ ImageWatermarkStr string `json:"imageWatermarkStr" api:"optional,nullable"`+ ImageWatermarkDesc string `json:"imageWatermarkDesc" api:"optional,nullable"`+}++type SettingFileTree struct {+ AlwaysSelectOpenedFile bool `json:"alwaysSelectOpenedFile" api:"optional,nullable"`+ OpenFilesUseCurrentTab bool `json:"openFilesUseCurrentTab" api:"optional,nullable"`+ CloseTabOnDoubleClick bool `json:"closeTabOnDoubleClick" api:"optional,nullable"`+ DocIconClickExpand bool `json:"docIconClickExpand" api:"optional,nullable"`+ ParentDocClickExpand bool `json:"parentDocClickExpand" api:"optional,nullable"`+ BoxDocEnabled *bool `json:"boxDocEnabled" api:"optional,nullable"`+ UseSVGDefaultIcon *bool `json:"useSVGDefaultIcon" api:"optional,nullable"`+ RefCreateSaveBox string `json:"refCreateSaveBox" api:"optional,nullable"`+ RefCreateSavePath string `json:"refCreateSavePath" api:"optional,nullable"`+ DocCreateSaveBox string `json:"docCreateSaveBox" api:"optional,nullable"`+ DocCreateSavePath string `json:"docCreateSavePath" api:"optional,nullable"`+ DocCreateTemplatePath string `json:"docCreateTemplatePath" api:"optional,nullable"`+ ShorthandSaveBox string `json:"shorthandSaveBox" api:"optional,nullable"`+ ShorthandSavePath string `json:"shorthandSavePath" api:"optional,nullable"`+ MaxListCount int `json:"maxListCount" api:"optional,nullable"`+ MaxOpenTabCount int `json:"maxOpenTabCount" api:"optional,nullable"`+ AllowCreateDeeper bool `json:"allowCreateDeeper" api:"optional,nullable"`+ RemoveDocWithoutConfirm bool `json:"removeDocWithoutConfirm" api:"optional,nullable"`+ CloseTabsOnStart bool `json:"closeTabsOnStart" api:"optional,nullable"`+ TabStartupMode *int `json:"tabStartupMode" api:"optional,nullable"`+ UseSingleLineSave bool `json:"useSingleLineSave" api:"optional,nullable"`+ LargeFileWarningSize int `json:"largeFileWarningSize" api:"optional,nullable"`+ CreateDocAtTop *bool `json:"createDocAtTop" api:"optional,nullable"`+ Sort int `json:"sort" api:"optional,nullable"`+ RecentDocsMaxListCount int `json:"recentDocsMaxListCount" api:"optional,nullable"`+ NoSplitScreenWhenOpenTab bool `json:"noSplitScreenWhenOpenTab" api:"optional,nullable"`+}++type SettingSearch struct {+ Document bool `json:"document" api:"optional,nullable"`+ Heading bool `json:"heading" api:"optional,nullable"`+ List bool `json:"list" api:"optional,nullable"`+ ListItem bool `json:"listItem" api:"optional,nullable"`+ CodeBlock bool `json:"codeBlock" api:"optional,nullable"`+ MathBlock bool `json:"mathBlock" api:"optional,nullable"`+ Table bool `json:"table" api:"optional,nullable"`+ Blockquote bool `json:"blockquote" api:"optional,nullable"`+ SuperBlock bool `json:"superBlock" api:"optional,nullable"`+ Paragraph bool `json:"paragraph" api:"optional,nullable"`+ HTMLBlock bool `json:"htmlBlock" api:"optional,nullable"`+ EmbedBlock bool `json:"embedBlock" api:"optional,nullable"`+ DatabaseBlock bool `json:"databaseBlock" api:"optional,nullable"`+ AudioBlock bool `json:"audioBlock" api:"optional,nullable"`+ VideoBlock bool `json:"videoBlock" api:"optional,nullable"`+ IFrameBlock bool `json:"iframeBlock" api:"optional,nullable"`+ WidgetBlock bool `json:"widgetBlock" api:"optional,nullable"`+ Callout bool `json:"callout" api:"optional,nullable"`+ Tabs bool `json:"tabs" api:"optional,nullable"`+ TabItem bool `json:"tabItem" api:"optional,nullable"`+ Limit int `json:"limit" api:"optional,nullable"`+ CaseSensitive bool `json:"caseSensitive" api:"optional,nullable"`+ HanSensitive *bool `json:"hanSensitive" api:"optional,nullable"`+ Name bool `json:"name" api:"optional,nullable"`+ Alias bool `json:"alias" api:"optional,nullable"`+ Memo bool `json:"memo" api:"optional,nullable"`+ IAL bool `json:"ial" api:"optional,nullable"`+ IndexAssetPath bool `json:"indexAssetPath" api:"optional,nullable"`+ BacklinkMentionName bool `json:"backlinkMentionName" api:"optional,nullable"`+ BacklinkMentionAlias bool `json:"backlinkMentionAlias" api:"optional,nullable"`+ BacklinkMentionAnchor bool `json:"backlinkMentionAnchor" api:"optional,nullable"`+ BacklinkMentionDoc bool `json:"backlinkMentionDoc" api:"optional,nullable"`+ BacklinkMentionKeywordsLimit int `json:"backlinkMentionKeywordsLimit" api:"optional,nullable"`+ VirtualRefName bool `json:"virtualRefName" api:"optional,nullable"`+ VirtualRefAlias bool `json:"virtualRefAlias" api:"optional,nullable"`+ VirtualRefAnchor bool `json:"virtualRefAnchor" api:"optional,nullable"`+ VirtualRefDoc bool `json:"virtualRefDoc" api:"optional,nullable"`+}++type SettingAppearance struct {+ BodyGradient *SettingBodyGradient `json:"bodyGradient" api:"optional,nullable"`+ GlobalFontFamilies []*SettingEditorFont `json:"globalFontFamilies" api:"optional,nullable"`+ Mode int `json:"mode" api:"optional,nullable"`+ ModeOS bool `json:"modeOS" api:"optional,nullable"`+ DarkThemes []*SettingAppearanceTheme `json:"darkThemes" api:"optional,nullable"`+ LightThemes []*SettingAppearanceTheme `json:"lightThemes" api:"optional,nullable"`+ ThemeDark string `json:"themeDark" api:"optional,nullable"`+ ThemeLight string `json:"themeLight" api:"optional,nullable"`+ ThemeVer string `json:"themeVer" api:"optional,nullable"`+ Icons []*SettingAppearanceIcon `json:"icons" api:"optional,nullable"`+ Icon string `json:"icon" api:"optional,nullable"`+ IconVer string `json:"iconVer" api:"optional,nullable"`+ CodeBlockThemeLight string `json:"codeBlockThemeLight" api:"optional,nullable"`+ CodeBlockThemeDark string `json:"codeBlockThemeDark" api:"optional,nullable"`+ Lang string `json:"lang" api:"optional,nullable"`+ ThemeJS bool `json:"themeJS" api:"optional,nullable"`+ CloseButtonBehavior int `json:"closeButtonBehavior" api:"optional,nullable"`+ HideToolbar bool `json:"hideToolbar" api:"optional,nullable"`+ HideStatusBar bool `json:"hideStatusBar" api:"optional,nullable"`+ StatusBar *SettingStatusBar `json:"statusBar" api:"optional,nullable"`+ Notifications *SettingNotifications `json:"notifications" api:"optional,nullable"`+ EntryVisibility *SettingEntryVisibility `json:"entryVisibility" api:"optional,nullable"`+}++type SettingBodyGradient struct {+ Mode string `json:"mode" api:"optional,nullable"`+ Light SettingBodyGradientColor `json:"light" api:"optional,nullable"`+ Dark SettingBodyGradientColor `json:"dark" api:"optional,nullable"`+}++type SettingBodyGradientColor struct {+ Color string `json:"color" api:"optional,nullable"`+ Opacity float64 `json:"opacity" api:"optional,nullable"`+}++type SettingAppearanceTheme struct {+ Name string `json:"name" api:"optional,nullable"`+ Label string `json:"label" api:"optional,nullable"`+ Frontends []string `json:"frontends,omitempty" api:"optional,nullable"`+}++type SettingAppearanceIcon struct {+ Name string `json:"name" api:"optional,nullable"`+ Label string `json:"label" api:"optional,nullable"`+}++type SettingStatusBar struct {+ Version int `json:"version" api:"optional,nullable"`+ MsgTaskDatabaseIndexCommitDisabled bool `json:"msgTaskDatabaseIndexCommitDisabled" api:"optional,nullable"`+ MsgTaskHistoryDatabaseIndexCommitDisabled bool `json:"msgTaskHistoryDatabaseIndexCommitDisabled" api:"optional,nullable"`+ MsgTaskAssetDatabaseIndexCommitDisabled bool `json:"msgTaskAssetDatabaseIndexCommitDisabled" api:"optional,nullable"`+ MsgTaskHistoryGenerateFileDisabled bool `json:"msgTaskHistoryGenerateFileDisabled" api:"optional,nullable"`+ MsgDataSyncDisabled bool `json:"msgDataSyncDisabled" api:"optional,nullable"`+}++type SettingNotifications struct {+ DocTreeMaxList bool `json:"docTreeMaxList" api:"optional,nullable"`+ TagMaxList bool `json:"tagMaxList" api:"optional,nullable"`+ WorkspaceNotSSD bool `json:"workspaceNotSSD" api:"optional,nullable"`+ BrowserCompatibility bool `json:"browserCompatibility" api:"optional,nullable"`+ SelectAllTip *bool `json:"selectAllTip,omitempty" api:"optional,nullable"`+ SelectAllIncompleteTip *bool `json:"selectAllIncompleteTip,omitempty" api:"optional,nullable"`+ FormatPainterTip *bool `json:"formatPainterTip,omitempty" api:"optional,nullable"`+}++type SettingEntryVisibility struct {+ Version int `json:"version" api:"optional,nullable"`+ Active string `json:"active" api:"optional,nullable"`+ Profiles []*SettingEntryVisibilityProfile `json:"profiles" api:"optional,nullable"`+}++type SettingEntryVisibilityProfile struct {+ ID string `json:"id" api:"optional,nullable"`+ Name string `json:"name" api:"optional,nullable"`+ Entries map[string]bool `json:"entries" api:"optional,nullable"`+ Orders map[string][]string `json:"orders" api:"optional,nullable"`+}++type SettingPublish struct {+ Enable bool `json:"enable" api:"optional,nullable"`+ Port uint16 `json:"port" api:"optional,nullable"`+ Auth *SettingBasicAuth `json:"auth" api:"optional,nullable"`+}++type SettingBasicAuth struct {+ Enable bool `json:"enable" api:"optional,nullable"`+ Accounts []*SettingBasicAuthAccount `json:"accounts" api:"optional,nullable"`+}++type SettingBasicAuthAccount struct {+ Username string `json:"username" api:"optional,nullable"`+ Password string `json:"password" api:"optional,nullable"`+ Memo string `json:"memo" api:"optional,nullable"`+}++type SettingUser struct {+ UserId string `json:"userId" api:"optional,nullable"`+ UserName string `json:"userName" api:"optional,nullable"`+ UserAvatarURL string `json:"userAvatarURL" api:"optional,nullable"`+ UserHomeBImgURL string `json:"userHomeBImgURL" api:"optional,nullable"`+ UserTitles []*SettingUserTitle `json:"userTitles" api:"optional,nullable"`+ UserIntro string `json:"userIntro" api:"optional,nullable"`+ UserNickname string `json:"userNickname" api:"optional,nullable"`+ UserCreateTime string `json:"userCreateTime" api:"optional,nullable"`+ UserSiYuanProExpireTime float64 `json:"userSiYuanProExpireTime" api:"optional,nullable"`+ UserToken string `json:"userToken" api:"optional,nullable"`+ UserTokenExpireTime string `json:"userTokenExpireTime" api:"optional,nullable"`+ UserSiYuanRepoSize float64 `json:"userSiYuanRepoSize" api:"optional,nullable"`+ UserSiYuanPointExchangeRepoSize float64 `json:"userSiYuanPointExchangeRepoSize" api:"optional,nullable"`+ UserSiYuanAssetSize float64 `json:"userSiYuanAssetSize" api:"optional,nullable"`+ UserTrafficUpload float64 `json:"userTrafficUpload" api:"optional,nullable"`+ UserTrafficDownload float64 `json:"userTrafficDownload" api:"optional,nullable"`+ UserTrafficAPIGet float64 `json:"userTrafficAPIGet" api:"optional,nullable"`+ UserTrafficAPIPut float64 `json:"userTrafficAPIPut" api:"optional,nullable"`+ UserTrafficTime float64 `json:"userTrafficTime" api:"optional,nullable"`+ UserSiYuanSubscriptionPlan float64 `json:"userSiYuanSubscriptionPlan" api:"optional,nullable"`+ UserSiYuanSubscriptionStatus float64 `json:"userSiYuanSubscriptionStatus" api:"optional,nullable"`+ UserSiYuanSubscriptionType float64 `json:"userSiYuanSubscriptionType" api:"optional,nullable"`+ UserSiYuanOneTimePayStatus float64 `json:"userSiYuanOneTimePayStatus" api:"optional,nullable"`+}++type SettingUserTitle struct {+ Name string `json:"name" api:"optional,nullable"`+ Desc string `json:"desc" api:"optional,nullable"`+ Icon string `json:"icon" api:"optional,nullable"`+}++type SettingBootAppearance struct {+ Enabled bool `json:"enabled" api:"optional,nullable"`+ Provider string `json:"provider,omitempty" api:"optional,nullable"`+ Appearance string `json:"appearance,omitempty" api:"optional,nullable"`+ DisplayName string `json:"displayName,omitempty" api:"optional,nullable"`+ Frontends []string `json:"frontends,omitempty" api:"optional,nullable"`+ BackgroundColor string `json:"backgroundColor,omitempty" api:"optional,nullable"`+ Style string `json:"style,omitempty" api:"optional,nullable"`+ Layers []*SettingBootAppearanceLayer `json:"layers,omitempty" api:"optional,nullable"`+ OfficialUI *SettingBootAppearanceOfficialUI `json:"officialUI,omitempty" api:"optional,nullable"`+}++type SettingBootAppearanceLayer struct {+ ID string `json:"id" api:"optional,nullable"`+ Type string `json:"type" api:"optional,nullable"`+ Src string `json:"src" api:"optional,nullable"`+ Poster string `json:"poster,omitempty" api:"optional,nullable"`+ Fit string `json:"fit,omitempty" api:"optional,nullable"`+ Position string `json:"position,omitempty" api:"optional,nullable"`+}++type SettingBootAppearanceOfficialUI struct {+ ShowLogo bool `json:"showLogo" api:"optional,nullable"`+ ShowDetails bool `json:"showDetails" api:"optional,nullable"`+ TextColor string `json:"textColor,omitempty" api:"optional,nullable"`+ ProgressColor string `json:"progressColor,omitempty" api:"optional,nullable"`+ TrackColor string `json:"trackColor,omitempty" api:"optional,nullable"`+}++type SettingBootAppearanceSelection struct {+ SchemaVersion int `json:"schemaVersion" api:"optional,nullable"`+ Provider string `json:"provider" api:"optional,nullable"`+ Appearance string `json:"appearance" api:"optional,nullable"`+}diff --git a/kernel/apicontract/setting_cloud.go b/kernel/apicontract/setting_cloud.gonew file mode 100644index 0000000000..14c051719c--- /dev/null+++ b/kernel/apicontract/setting_cloud.go@@ -0,0 +1,80 @@+package apicontract++import (+ "bytes"+ "encoding/json"+ "errors"+ "reflect"+)++// CloudLogin2faData 保留云端双因素认证结果的固定字段和协议扩展字段。+type CloudLogin2faData struct {+ Code float64 `json:"code"`+ Msg string `json:"msg"`+ Extra map[string]JSONValue `json:"-"`+}++func (d CloudLogin2faData) MarshalJSON() ([]byte, error) {+ fields := make(map[string]json.RawMessage, len(d.Extra)+2)+ for key, value := range d.Extra {+ encoded, err := value.MarshalJSON()+ if err != nil {+ return nil, err+ }+ fields[key] = encoded+ }+ var err error+ if fields["code"], err = json.Marshal(d.Code); err != nil {+ return nil, err+ }+ if fields["msg"], err = json.Marshal(d.Msg); err != nil {+ return nil, err+ }+ return json.Marshal(fields)+}++func (d *CloudLogin2faData) UnmarshalJSON(raw []byte) error {+ var fields map[string]json.RawMessage+ if err := json.Unmarshal(raw, &fields); err != nil {+ return err+ }+ code, msg := fields["code"], fields["msg"]+ if len(code) == 0 || bytes.Equal(code, []byte("null")) || json.Unmarshal(code, &d.Code) != nil {+ return errors.New("invalid cloud login code")+ }+ if len(msg) == 0 || bytes.Equal(msg, []byte("null")) || json.Unmarshal(msg, &d.Msg) != nil {+ return errors.New("invalid cloud login message")+ }+ if d.Code == 0 {+ var token string+ if json.Unmarshal(fields["token"], &token) != nil || token == "" {+ return errors.New("invalid cloud login token")+ }+ }+ d.Extra = make(map[string]JSONValue, len(fields)-2)+ for key, raw := range fields {+ if key == "code" || key == "msg" {+ continue+ }+ value, err := EncodedJSONValue(raw)+ if err != nil {+ return err+ }+ d.Extra[key] = value+ }+ return nil+}++type Login2faEnvelope struct {+ Code int `json:"code"`+ Msg string `json:"msg"`+ Data *CloudLogin2faData `json:"data"`+}++func (b *schemaBuilder) cloudLogin2faDataSchema(input bool) (*Schema, error) {+ value, err := b.schema(reflect.TypeFor[JSONValue](), input)+ if err != nil {+ return nil, err+ }+ return &Schema{Type: "object", Properties: map[string]*Schema{"code": {Type: "number"}, "msg": {Type: "string"}}, Required: []string{"code", "msg"}, AdditionalProperties: value}, nil+}diff --git a/kernel/apicontract/setting_config.go b/kernel/apicontract/setting_config.gonew file mode 100644index 0000000000..a4c2e97dc5--- /dev/null+++ b/kernel/apicontract/setting_config.go@@ -0,0 +1,154 @@+package apicontract++import (+ "bytes"+ "encoding/json"+ "errors"+ "fmt"+ "io"+ "strings"+)++// settingConfig 保留配置合并所需的键存在性和数字归一化结果,公开字段仍由具体配置结构声明。+type settingConfig struct {+ raw json.RawMessage+ fields map[string]json.RawMessage+ configError error+}++func (r settingConfig) ConfigJSON() []byte { return append([]byte(nil), r.raw...) }+func (r settingConfig) ConfigError() error { return r.configError }+func (r settingConfig) HasField(name string) bool { _, ok := r.fields[name]; return ok }++func decodeSettingConfig(reader io.Reader, path string, removeApp bool) (r settingConfig, err error) {+ var raw json.RawMessage+ err = json.NewDecoder(reader).Decode(&raw)+ if err == nil {+ r.fields, err = legacyJSONValue[map[string]json.RawMessage](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(), "map[string]json.RawMessage", "map[string]interface {}")+ err = fmt.Errorf("Parses request [%s] failed: %s", path, detail)+ return+ }+ if removeApp {+ delete(r.fields, "app")+ }+ r.raw, err = json.Marshal(r.fields)+ return+}++func settingConfigError(err error) error {+ if err == nil {+ return nil+ }+ message := strings.ReplaceAll(err.Error(), "apicontract.Setting", "conf.")+ message = strings.ReplaceAll(message, "field Setting", "field ")+ for _, name := range []string{"Markdown", "StatusBar", "Notifications"} {+ message = strings.ReplaceAll(message, "conf."+name, "util."+name)+ }+ return errors.New(message)+}++type SettingPublishData struct {+ Port uint16 `json:"port"`+ Publish *SettingPublish `json:"publish"`+}+type SettingBootAppearanceCurrent struct {+ Provider string `json:"provider"`+ Appearance string `json:"appearance"`+}+type SettingBootAppearancesData struct {+ Appearances []*SettingBootAppearance `json:"appearances"`+ Current SettingBootAppearanceCurrent `json:"current"`+}+type SettingBootAppearanceRequest struct {+ Provider string `json:"provider" api:"optional,nullable"`+ Appearance string `json:"appearance" api:"optional,nullable"`+}+type SettingPetalDisabledRequest struct {+ PetalDisabled bool `json:"petalDisabled"`+}+type SettingPetalDisabledData struct {+ UninstallPlugins []string `json:"uninstallPlugins"`+ UnloadPlugins []string `json:"unloadPlugins"`+ ReloadPlugins []string `json:"reloadPlugins"`+ DataChangePlugins []string `json:"dataChangePlugins"`+ GlobalPetalEnabled bool `json:"globalPetalEnabled"`+ GlobalPetalDisabled bool `json:"globalPetalDisabled"`+ GlobalPetalRevision uint64 `json:"globalPetalRevision"`+ GlobalPetalChanged bool `json:"globalPetalChanged"`+}+type SettingKeymapRequest struct {+ Data map[string]JSONValue `json:"data" api:"optional,nullable"`+}+type SettingIconRequest struct {+ Icon string `json:"icon" api:"trim"`+}+type SettingCloudUserRequest struct {+ Token string `json:"token" api:"optional,nullable"`+}+type SettingLogin2faRequest struct {+ Token string `json:"token"`+ Code string `json:"code"`+}+type SettingEmojiRequest struct {+ Emoji []string `json:"emoji"`+}+type SettingThemeRequest struct {+ Theme string `json:"theme" api:"optional,nullable"`+ Modes []float64 `json:"modes" api:"optional,nullable"`+ AppearanceMode string `json:"appearanceMode" api:"optional,nullable"`+}++func init() {+ SetBazaarPetalDisabled.decodeRequest = func(reader io.Reader) (r SettingPetalDisabledRequest, err error) {+ fields, err := blockRequestFields(reader, SetBazaarPetalDisabled.Definition().Path)+ if err != nil {+ return r, err+ }+ r.PetalDisabled, err = legacyField[bool](fields, "petalDisabled", "Boolean", true)+ if err != nil {+ err = errors.New("invalid petalDisabled")+ }+ return+ }+ SetTheme.decodeRequest = func(reader io.Reader) (r SettingThemeRequest, err error) {+ fields, err := blockRequestFields(reader, SetTheme.Definition().Path)+ if err != nil {+ return r, err+ }+ if r.Theme, err = legacyField[string](fields, "theme", "String", false); err != nil {+ return+ }+ modes, err := legacyField[[]json.RawMessage](fields, "modes", "Array", false)+ if err != nil {+ return r, err+ }+ if r.AppearanceMode, err = legacyField[string](fields, "appearanceMode", "String", false); err != nil {+ return+ }+ r.Theme, r.AppearanceMode = strings.TrimSpace(r.Theme), strings.TrimSpace(r.AppearanceMode)+ r.Modes = make([]float64, 0, 2)+ if r.Theme == "" {+ return+ }+ for _, raw := range modes {+ var value float64+ if bytes.Equal(raw, []byte("null")) || json.Unmarshal(raw, &value) != nil {+ break+ }+ if mode := int(value); mode != 0 && mode != 1 {+ break+ }+ r.Modes = append(r.Modes, value)+ }+ if len(r.Modes) == 0 {+ err = errors.New("[modes] is required ([0] for light, [1] for dark, [0,1] for both)")+ }+ return+ }+}diff --git a/kernel/apicontract/setting_input.go b/kernel/apicontract/setting_input.gonew file mode 100644index 0000000000..dba44af7b3--- /dev/null+++ b/kernel/apicontract/setting_input.go@@ -0,0 +1,165 @@+package apicontract++import (+ "encoding/json"+ "io"+)++type SetConfSnippetRequest struct {+ SettingSnpt+ settingConfig+}++type SetBazaarRequest struct {+ SettingBazaar+ settingConfig+}++type SetAIRequest struct {+ SettingAI+ settingConfig+}++type SetSecretsRequest struct {+ SettingSecrets+ settingConfig+}++type SetVariablesRequest struct {+ SettingVariables+ settingConfig+}++type SetFlashcardRequest struct {+ SettingFlashcard+ settingConfig+}++type SetEditorRequest struct {+ SettingEditor+ settingConfig+}++type SetExportRequest struct {+ SettingExport+ settingConfig+}++type SetFiletreeRequest struct {+ SettingFileTree+ settingConfig+}++type SetSearchRequest struct {+ SettingSearch+ settingConfig+}++type SetAppearanceRequest struct {+ SettingAppearance+ settingConfig+}++type SetEntryVisibilityRequest struct {+ SettingEntryVisibility+ settingConfig+}++type SetPublishRequest struct {+ SettingPublish+ settingConfig+}++func init() {+ SetConfSnippet.decodeRequest = func(reader io.Reader) (r SetConfSnippetRequest, err error) {+ r.settingConfig, err = decodeSettingConfig(reader, SetConfSnippet.Definition().Path, false)+ if err == nil {+ r.configError = settingConfigError(json.Unmarshal(r.raw, &r.SettingSnpt))+ }+ return+ }+ SetBazaar.decodeRequest = func(reader io.Reader) (r SetBazaarRequest, err error) {+ r.settingConfig, err = decodeSettingConfig(reader, SetBazaar.Definition().Path, true)+ if err == nil {+ r.configError = settingConfigError(json.Unmarshal(r.raw, &r.SettingBazaar))+ }+ return+ }+ SetAI.decodeRequest = func(reader io.Reader) (r SetAIRequest, err error) {+ r.settingConfig, err = decodeSettingConfig(reader, SetAI.Definition().Path, false)+ if err == nil {+ r.configError = settingConfigError(json.Unmarshal(r.raw, &r.SettingAI))+ }+ return+ }+ SetSecrets.decodeRequest = func(reader io.Reader) (r SetSecretsRequest, err error) {+ r.settingConfig, err = decodeSettingConfig(reader, SetSecrets.Definition().Path, false)+ if err == nil {+ r.configError = settingConfigError(json.Unmarshal(r.raw, &r.SettingSecrets))+ }+ return+ }+ SetVariables.decodeRequest = func(reader io.Reader) (r SetVariablesRequest, err error) {+ r.settingConfig, err = decodeSettingConfig(reader, SetVariables.Definition().Path, false)+ if err == nil {+ r.configError = settingConfigError(json.Unmarshal(r.raw, &r.SettingVariables))+ }+ return+ }+ SetFlashcard.decodeRequest = func(reader io.Reader) (r SetFlashcardRequest, err error) {+ r.settingConfig, err = decodeSettingConfig(reader, SetFlashcard.Definition().Path, false)+ if err == nil {+ r.configError = settingConfigError(json.Unmarshal(r.raw, &r.SettingFlashcard))+ }+ return+ }+ SetEditor.decodeRequest = func(reader io.Reader) (r SetEditorRequest, err error) {+ r.settingConfig, err = decodeSettingConfig(reader, SetEditor.Definition().Path, false)+ if err == nil {+ r.configError = settingConfigError(json.Unmarshal(r.raw, &r.SettingEditor))+ }+ return+ }+ SetExport.decodeRequest = func(reader io.Reader) (r SetExportRequest, err error) {+ r.settingConfig, err = decodeSettingConfig(reader, SetExport.Definition().Path, false)+ if err == nil {+ r.configError = settingConfigError(json.Unmarshal(r.raw, &r.SettingExport))+ }+ return+ }+ SetFiletree.decodeRequest = func(reader io.Reader) (r SetFiletreeRequest, err error) {+ r.settingConfig, err = decodeSettingConfig(reader, SetFiletree.Definition().Path, false)+ if err == nil {+ r.configError = settingConfigError(json.Unmarshal(r.raw, &r.SettingFileTree))+ }+ return+ }+ SetSearch.decodeRequest = func(reader io.Reader) (r SetSearchRequest, err error) {+ r.settingConfig, err = decodeSettingConfig(reader, SetSearch.Definition().Path, false)+ if err == nil {+ r.configError = settingConfigError(json.Unmarshal(r.raw, &r.SettingSearch))+ }+ return+ }+ SetAppearance.decodeRequest = func(reader io.Reader) (r SetAppearanceRequest, err error) {+ r.settingConfig, err = decodeSettingConfig(reader, SetAppearance.Definition().Path, false)+ if err == nil {+ r.configError = settingConfigError(json.Unmarshal(r.raw, &r.SettingAppearance))+ }+ return+ }+ SetEntryVisibility.decodeRequest = func(reader io.Reader) (r SetEntryVisibilityRequest, err error) {+ r.settingConfig, err = decodeSettingConfig(reader, SetEntryVisibility.Definition().Path, false)+ if err == nil {+ r.configError = settingConfigError(json.Unmarshal(r.raw, &r.SettingEntryVisibility))+ }+ return+ }+ SetPublish.decodeRequest = func(reader io.Reader) (r SetPublishRequest, err error) {+ r.settingConfig, err = decodeSettingConfig(reader, SetPublish.Definition().Path, false)+ if err == nil {+ r.configError = settingConfigError(json.Unmarshal(r.raw, &r.SettingPublish))+ }+ return+ }+}diff --git a/kernel/apicontract/setting_test.go b/kernel/apicontract/setting_test.gonew file mode 100644index 0000000000..eb40df19aa--- /dev/null+++ b/kernel/apicontract/setting_test.go@@ -0,0 +1,93 @@+package apicontract++import (+ "encoding/json"+ "reflect"+ "strings"+ "testing"+)++func TestSettingThemeCompatibility(t *testing.T) {+ for _, entry := range []struct {+ body string+ modes []float64+ message string+ }{+ {`{}`, []float64{}, ""},+ {`{"theme":" t ","modes":[0.9,1.9,false,0],"appearanceMode":" dark "}`, []float64{0.9, 1.9}, ""},+ {`{"theme":"t","modes":[-0.9,0,0,1,2,0]}`, []float64{-0.9, 0, 0, 1}, ""},+ {`{"modes":[false,{},null]}`, []float64{}, ""},+ {`{"modes":false,"appearanceMode":false}`, nil, "Field [modes] should be of type [Array]"},+ {`{"theme":"t","modes":[false],"appearanceMode":false}`, nil, "Field [appearanceMode] should be of type [String]"},+ } {+ request, err := SetTheme.Decode(strings.NewReader(entry.body))+ if entry.message != "" {+ if err == nil || err.Error() != entry.message {+ t.Fatalf("theme error: %v", err)+ }+ continue+ }+ if err != nil || !reflect.DeepEqual(request.Modes, entry.modes) {+ t.Fatalf("theme modes: %+v %v", request, err)+ }+ }+}++func TestSettingKeymapOpaqueValues(t *testing.T) {+ request, err := SetKeymap.Decode(strings.NewReader(`{"data":{"custom":{"key":[null,false,1.5,"",{}]},"empty":null}}`))+ if err != nil {+ t.Fatal(err)+ }+ encoded, err := json.Marshal(request.Data)+ if err != nil || string(encoded) != `{"custom":{"key":[null,false,1.5,"",{}]},"empty":null}` {+ t.Fatalf("keymap payload: %s %v", encoded, err)+ }+ for _, body := range []string{`{}`, `{"data":null}`} {+ request, err = SetKeymap.Decode(strings.NewReader(body))+ if err != nil || request.Data != nil {+ t.Fatalf("keymap omission: %+v %v", request, err)+ }+ }+}++func TestSettingCloudLoginSerialization(t *testing.T) {+ bundle, err := BuildBundle()+ if err != nil {+ t.Fatal(err)+ }+ for _, payload := range []string{+ `{"code":0,"msg":"ok","data":{"code":0,"msg":"ok","token":"secret","extra":{"list":[null,false,1]}}}`,+ `{"code":1,"msg":"retry","data":{"code":-1,"msg":"retry","token":false,"wait":12}}`,+ `{"code":-8,"msg":"other","data":{"code":-8,"msg":"other","token":{"detail":"x"}}}`,+ `{"code":0,"msg":"fraction","data":{"code":0.5,"msg":"fraction"}}`,+ `{"code":-1,"msg":"network","data":null}`,+ } {+ var envelope Login2faEnvelope+ if err := json.Unmarshal([]byte(payload), &envelope); err != nil {+ t.Fatal(err)+ }+ encoded, err := json.Marshal(SuccessDirectJSON(envelope))+ if err != nil {+ t.Fatal(err)+ }+ var before, after map[string]JSONValue+ if err = json.Unmarshal([]byte(payload), &before); err != nil {+ t.Fatal(err)+ }+ if err = json.Unmarshal(encoded, &after); err != nil {+ t.Fatal(err)+ }+ if !reflect.DeepEqual(before, after) {+ t.Fatalf("cloud result changed: %s", encoded)+ }+ if err = bundle.ValidateHTTPResponse("POST", Login2faCloudUser.Definition().Path, 200, "application/json", encoded); err != nil {+ t.Fatal(err)+ }+ }+ for _, payload := range []string{`{}`, `{"code":null,"msg":""}`, `{"code":0,"msg":null,"token":"x"}`, `{"code":0,"msg":""}`, `{"code":0,"msg":"","token":false}`, `{"code":0,"msg":"","token":""}`} {+ var data CloudLogin2faData+ if json.Unmarshal([]byte(payload), &data) == nil {+ t.Fatalf("invalid cloud success accepted: %s", payload)+ }+ }+}